diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 1fc3af7c..ca67e812 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -54,6 +54,20 @@ jobs: echo "${{ secrets.AWS_PROPERTIES }}" > ./application.yml shell: bash +<<<<<<< HEAD + # Google Translation key 설정 + - name: Create Google Translation JSON file from secret + uses: jsdaniell/create-json@1.1.2 + with: + name: "./back-end/src/main/resources/service-account-file.json" + json: ${{ secrets.GOOGLE_TRANSLATION_KEY }} + + - name: Verify JSON file creation + run: cat ./back-end/src/main/resources/service-account-file.json + + +======= +>>>>>>> develop # gradlew 파일 실행권한 설정 - name: Grant execute permission for gradlew run: | diff --git a/.idea/SKYTeam.iml b/.idea/SKYTeam.iml new file mode 100644 index 00000000..d6ebd480 --- /dev/null +++ b/.idea/SKYTeam.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/back-end/.gitignore b/back-end/.gitignore index 0e09f120..ec34837b 100644 --- a/back-end/.gitignore +++ b/back-end/.gitignore @@ -38,4 +38,11 @@ out/ ### *.yml / *.properties ### *.yml -application.properties \ No newline at end of file +<<<<<<< HEAD +application.properties + +### google cloud translation api key ### +service-account-file.json +======= +application.properties +>>>>>>> develop diff --git a/back-end/build.gradle b/back-end/build.gradle index 8936c720..67bdd000 100644 --- a/back-end/build.gradle +++ b/back-end/build.gradle @@ -76,6 +76,16 @@ dependencies { // WebSocket implementation 'org.springframework.boot:spring-boot-starter-websocket' +<<<<<<< HEAD + + // ChatGpt + implementation 'com.squareup.okhttp3:okhttp:4.9.1' + implementation 'org.apache.commons:commons-io:1.3.2' + + // Google Cloud Translation + implementation 'com.google.cloud:google-cloud-translate:2.6.0' +======= +>>>>>>> develop } tasks.named('test') { diff --git a/back-end/lambda/EmbeddingCategory.py b/back-end/lambda/EmbeddingCategory.py new file mode 100644 index 00000000..eeaf0116 --- /dev/null +++ b/back-end/lambda/EmbeddingCategory.py @@ -0,0 +1,70 @@ +import os +import json +import urllib3 +from openai import OpenAI +from pymongo.mongo_client import MongoClient +from pymongo.server_api import ServerApi + +mongo_uri = os.environ.get("MONGO_URI") + +def lambda_handler(event, context): + # Fetch user's profile data + request_event = json.loads(event["body"]) + category_id = request_event["category_id"] + category = request_event["category"] + prompt = request_event["prompt"] + + # Create a new client and connect to the server + client = MongoClient(mongo_uri, server_api=ServerApi('1')) + + # Name of database + db = client.CategoryEmbedding + + # Name of collection + collection = db.Embedding + + embedding = getEmbedding(prompt) + document = {"category": category, "prompt": prompt, "embedding": embedding} + + # Insert document + result = collection.update_one({"category_id": category_id}, {"$set": document}, upsert=True) + + if result.acknowledged: + return { + "isBase64Encoded": False, + "statusCode": 200, + "headers": {}, + "multiValueHeaders": {}, + "body": "Successfully added the category." + } + else: + return { + "isBase64Encoded": False, + "statusCode": 502, + "headers": {}, + "multiValueHeaders": {}, + "body": "There was error during the insertion." + } + + +def getEmbedding(document): + open_ai_url = os.environ.get("OPENAI_URI") + open_ai_key = os.environ.get("OPENAI_KEY") + + header = { + 'Content-Type': 'application/json', + 'Authorization': f'Bearer {open_ai_key}' + } + + body = json.dumps({ + 'input': f'{document}', + 'model': "text-embedding-3-large", + 'format': "float" + }) + + http = urllib3.PoolManager() + response = http.request('POST', open_ai_url, body=body, headers=header) + + data = json.loads(response.data) + + return data['data'][0]['embedding'] \ No newline at end of file diff --git a/back-end/lambda/EmbeddingMeeting.py b/back-end/lambda/EmbeddingMeeting.py new file mode 100644 index 00000000..fbc5562a --- /dev/null +++ b/back-end/lambda/EmbeddingMeeting.py @@ -0,0 +1,74 @@ +import os +import json +import urllib3 +from openai import OpenAI +from pymongo.mongo_client import MongoClient +from pymongo.server_api import ServerApi + +mongo_uri = os.environ.get("MONGO_URI") + +def lambda_handler(event, context): + # Fetch user's profile data + event_body = json.loads(event["body"]) + moim_id = event_body['moimId'] + moimname = event_body['moimTitle'] + prompt = event_body['prompt'] + + # Create a new client and connect to the server + client = MongoClient(mongo_uri, server_api=ServerApi('1')) + + # Name of database + db = client.MoimEmbedding + + # Name of collection + collection = db.Embedding + + embedding = getEmbedding(prompt) + document = { + "moim_id": moim_id, + "moim_title": moimname, + "prompt": prompt, + "embedding": embedding} + + # Insert document + result = collection.update_one({"moim_id": moim_id}, {"$set": document}, upsert=True) + + if result.acknowledged: + return { + "isBase64Encoded": False, + "statusCode": 200, + "headers": {}, + "multiValueHeaders": {}, + "body": "Success" + } + else: + return { + "isBase64Encoded": False, + "statusCode": 400, + "headers": {}, + "multiValueHeaders": {}, + "body": "Failed" + } + + +def getEmbedding(document): + open_ai_url = os.environ.get("OPENAI_URI") + open_ai_key = os.environ.get("OPENAI_KEY") + + header = { + 'Content-Type': 'application/json', + 'Authorization': f'Bearer {open_ai_key}' + } + + body = json.dumps({ + 'input': f'{document}', + 'model': "text-embedding-3-large", + 'format': "float" + }) + + http = urllib3.PoolManager() + response = http.request('POST', open_ai_url, body=body, headers=header) + + data = json.loads(response.data) + + return data['data'][0]['embedding'] \ No newline at end of file diff --git a/back-end/lambda/EmbeddingSearchCategory.py b/back-end/lambda/EmbeddingSearchCategory.py new file mode 100644 index 00000000..d36e9db5 --- /dev/null +++ b/back-end/lambda/EmbeddingSearchCategory.py @@ -0,0 +1,78 @@ +import os +import json +import urllib3 +from openai import OpenAI +from pymongo.mongo_client import MongoClient +from pymongo.server_api import ServerApi + +mongo_uri = os.environ.get("MONGO_URI") + +def lambda_handler(event, context): + # Fetch user's profile data + user_id = int(event['queryStringParameters']['userID']) + + # Create a new client and connect to the server + client = MongoClient(mongo_uri, server_api=ServerApi('1')) + + # Name of database + db = client.UserEmbedding + + # Name of collection + collection = db.Embedding + + query = { "user_id": user_id } + projection = { "embedding": 1 } + + # Insert document + result = collection.find_one(query, projection) + if result == None: + return { + "isBase64Encoded": False, + "statusCode": 400, + "headers": {}, + "multiValueHeaders": {}, + "body": "There's no such user in DB." + } + + query_embedding = result['embedding'] + + pipeline = [ + { + '$vectorSearch': { + 'index': 'CategoryVectorIndex', + 'path': 'embedding', + 'queryVector': query_embedding, + 'numCandidates': 100, + 'limit': 100 + } + }, { + '$project': { + '_id': 0, + 'prompt': 0, + 'embedding': 0 + } + } + ] + + results = client['CategoryEmbedding']['Embedding'].aggregate(pipeline) + + moim_list = [] + for search_result in results: + moim_list.append(search_result['category_id']) + + if (len(moim_list) > 0): + return { + "isBase64Encoded": False, + "statusCode": 200, + "headers": {}, + "multiValueHeaders": {}, + "body": "[" + ','.join(str(e) for e in moim_list) + "]" + } + else: + return { + "isBase64Encoded": False, + "statusCode": 502, + "headers": {}, + "multiValueHeaders": {}, + "body": "Error occured during insertion." + } diff --git a/back-end/lambda/EmbeddingSearchMeeting.py b/back-end/lambda/EmbeddingSearchMeeting.py new file mode 100644 index 00000000..fe0b5c84 --- /dev/null +++ b/back-end/lambda/EmbeddingSearchMeeting.py @@ -0,0 +1,69 @@ +import os +import json +import urllib3 +from openai import OpenAI +from pymongo.mongo_client import MongoClient +from pymongo.server_api import ServerApi + +mongo_uri = os.environ.get("MONGO_URI") + +def lambda_handler(event, context): + # Fetch user's profile data + user_id = int(event['queryStringParameters']['userID']) + + # Create a new client and connect to the server + client = MongoClient(mongo_uri, server_api=ServerApi('1')) + + # Name of database + db = client.UserEmbedding + + # Name of collection + collection = db.Embedding + + query = { "user_id": user_id } + projection = { "embedding": 1 } + + # Insert document + result = collection.find_one(query, projection) + + query_embedding = result['embedding'] + + pipeline = [ + { + '$vectorSearch': { + 'index': 'MoimVectorIndex', + 'path': 'embedding', + 'queryVector': query_embedding, + 'numCandidates': 100, + 'limit': 50 + } + }, { + '$project': { + '_id': 0, + 'embedding': 0 + } + } + ] + + results = client['MoimEmbedding']['Embedding'].aggregate(pipeline) + + moim_list = [] + for search_result in results: + moim_list.append(search_result['moim_id']) + + if (len(moim_list) > 0): + return { + "isBase64Encoded": False, + "statusCode": 200, + "headers": {}, + "multiValueHeaders": {}, + "body": "[" + ','.join(str(e) for e in moim_list) + "]" + } + else: + return { + "isBase64Encoded": False, + "statusCode": 400, + "headers": {}, + "multiValueHeaders": {}, + "body": "Failed" + } diff --git a/back-end/lambda/EmbeddingUser.py b/back-end/lambda/EmbeddingUser.py new file mode 100644 index 00000000..7da4e262 --- /dev/null +++ b/back-end/lambda/EmbeddingUser.py @@ -0,0 +1,74 @@ +import os +import json +import urllib3 +from openai import OpenAI +from pymongo.mongo_client import MongoClient +from pymongo.server_api import ServerApi + +mongo_uri = os.environ.get("MONGO_URI") + +def lambda_handler(event, context): + # Fetch user's profile data + request_event = json.loads(event["body"]) + user_id = int(request_event["userId"]) + username = request_event["username"] + prompt = request_event["prompt"] + + # Create a new client and connect to the server + client = MongoClient(mongo_uri, server_api=ServerApi('1')) + + # Name of database + db = client.UserEmbedding + + # Name of collection + collection = db.Embedding + + embedding = getEmbedding(prompt) + document = { + "user_id": user_id, + "username": username, + "prompt": prompt, + "embedding": embedding} + + # Insert document + result = collection.update_one({"user_id": user_id}, {"$set": document}, upsert = True) + + if result.acknowledged: + return { + "isBase64Encoded": False, + "statusCode": 200, + "headers": {}, + "multiValueHeaders": {}, + "body": "Success" + } + else: + return { + "isBase64Encoded": False, + "statusCode": 400, + "headers": {}, + "multiValueHeaders": {}, + "body": "FAILED" + } + + +def getEmbedding(document): + open_ai_url = os.environ.get("OPENAI_URI") + open_ai_key = os.environ.get("OPENAI_KEY") + + header = { + 'Content-Type': 'application/json', + 'Authorization': f'Bearer {open_ai_key}' + } + + body = json.dumps({ + 'input': f'{document}', + 'model': "text-embedding-3-large", + 'format': "float" + }) + + http = urllib3.PoolManager() + response = http.request('POST', open_ai_url, body=body, headers=header) + + data = json.loads(response.data) + + return data['data'][0]['embedding'] \ No newline at end of file diff --git a/back-end/src/main/java/kr/co/ssalon/config/CorsMvcConfig.java b/back-end/src/main/java/kr/co/ssalon/config/CorsMvcConfig.java index c72aa630..2549bdb5 100644 --- a/back-end/src/main/java/kr/co/ssalon/config/CorsMvcConfig.java +++ b/back-end/src/main/java/kr/co/ssalon/config/CorsMvcConfig.java @@ -10,6 +10,11 @@ public class CorsMvcConfig implements WebMvcConfigurer { public void addCorsMappings(CorsRegistry corsRegistry) { corsRegistry.addMapping("/**") .exposedHeaders("Set-Cookie") +<<<<<<< HEAD + .allowedMethods("*") + .allowCredentials(true) +======= +>>>>>>> develop .allowedOrigins("http://localhost:3000", "https://ssalon.co.kr"); } } diff --git a/back-end/src/main/java/kr/co/ssalon/config/CustomLocalDateTimeSerializer.java b/back-end/src/main/java/kr/co/ssalon/config/CustomLocalDateTimeSerializer.java new file mode 100644 index 00000000..eeb7daa7 --- /dev/null +++ b/back-end/src/main/java/kr/co/ssalon/config/CustomLocalDateTimeSerializer.java @@ -0,0 +1,19 @@ +package kr.co.ssalon.config; + +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.databind.JsonSerializer; +import com.fasterxml.jackson.databind.SerializerProvider; + +import java.io.IOException; +import java.time.LocalDateTime; +import java.time.format.DateTimeFormatter; + +public class CustomLocalDateTimeSerializer extends JsonSerializer { + + private static final DateTimeFormatter FORMATTER = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSSSSSSSS"); + + @Override + public void serialize(LocalDateTime value, JsonGenerator gen, SerializerProvider serializers) throws IOException { + gen.writeString(value.format(FORMATTER)); + } +} \ No newline at end of file diff --git a/back-end/src/main/java/kr/co/ssalon/config/GoogleCredentialsConfig.java b/back-end/src/main/java/kr/co/ssalon/config/GoogleCredentialsConfig.java new file mode 100644 index 00000000..9a6bff6b --- /dev/null +++ b/back-end/src/main/java/kr/co/ssalon/config/GoogleCredentialsConfig.java @@ -0,0 +1,28 @@ +package kr.co.ssalon.config; + + +import com.google.auth.oauth2.GoogleCredentials; +import com.google.cloud.translate.Translate; +import com.google.cloud.translate.TranslateOptions; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.springframework.core.io.Resource; + +import java.io.IOException; +import java.io.InputStream; + +@Configuration +public class GoogleCredentialsConfig { + + @Value("${google.cloud.credentials.location}") + private Resource credentialsLocation; + + @Bean + public Translate translate() throws IOException { + try (InputStream inputStream = credentialsLocation.getInputStream()) { + GoogleCredentials credentials = GoogleCredentials.fromStream(inputStream); + return TranslateOptions.newBuilder().setCredentials(credentials).build().getService(); + } + } +} diff --git a/back-end/src/main/java/kr/co/ssalon/config/JacksonConfig.java b/back-end/src/main/java/kr/co/ssalon/config/JacksonConfig.java new file mode 100644 index 00000000..35b34a07 --- /dev/null +++ b/back-end/src/main/java/kr/co/ssalon/config/JacksonConfig.java @@ -0,0 +1,27 @@ +package kr.co.ssalon.config; + +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.SerializationFeature; +import com.fasterxml.jackson.databind.module.SimpleModule; +import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; + +import java.time.LocalDateTime; + +@Configuration +public class JacksonConfig { + + @Bean + public ObjectMapper objectMapper() { + ObjectMapper mapper = new ObjectMapper(); + + JavaTimeModule javaTimeModule = new JavaTimeModule(); + javaTimeModule.addSerializer(LocalDateTime.class, new CustomLocalDateTimeSerializer()); + + mapper.registerModule(javaTimeModule); + mapper.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false); + + return mapper; + } +} \ No newline at end of file diff --git a/back-end/src/main/java/kr/co/ssalon/domain/dto/MeetingDomainDTO.java b/back-end/src/main/java/kr/co/ssalon/domain/dto/MeetingDomainDTO.java index e1c2faf0..6211ea9a 100644 --- a/back-end/src/main/java/kr/co/ssalon/domain/dto/MeetingDomainDTO.java +++ b/back-end/src/main/java/kr/co/ssalon/domain/dto/MeetingDomainDTO.java @@ -1,5 +1,12 @@ package kr.co.ssalon.domain.dto; +<<<<<<< HEAD +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer; +import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer; +======= +>>>>>>> develop import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; @@ -20,10 +27,20 @@ public class MeetingDomainDTO { private String description; private String location; private Integer capacity; +<<<<<<< HEAD + + @JsonSerialize(using = LocalDateTimeSerializer.class) + @JsonDeserialize(using = LocalDateTimeDeserializer.class) +======= +>>>>>>> develop private LocalDateTime meetingDate; private Integer payment; private Boolean isSharable; +<<<<<<< HEAD +} +======= } +>>>>>>> develop diff --git a/back-end/src/main/java/kr/co/ssalon/domain/dto/MemberDomainDTO.java b/back-end/src/main/java/kr/co/ssalon/domain/dto/MemberDomainDTO.java index 50cc8721..eabb789b 100644 --- a/back-end/src/main/java/kr/co/ssalon/domain/dto/MemberDomainDTO.java +++ b/back-end/src/main/java/kr/co/ssalon/domain/dto/MemberDomainDTO.java @@ -16,6 +16,10 @@ @Builder public class MemberDomainDTO { +<<<<<<< HEAD + private Long id; +======= +>>>>>>> develop private String email; private String nickname; private String profilePictureUrl; @@ -28,6 +32,10 @@ public class MemberDomainDTO { private MemberDates memberDates; public MemberDomainDTO(Member member) { +<<<<<<< HEAD + this.id = member.getId(); +======= +>>>>>>> develop this.email = member.getEmail(); this.nickname = member.getNickname(); this.profilePictureUrl = member.getProfilePictureUrl(); diff --git a/back-end/src/main/java/kr/co/ssalon/domain/entity/AdvertisePayment.java b/back-end/src/main/java/kr/co/ssalon/domain/entity/AdvertisePayment.java new file mode 100644 index 00000000..62be1bb5 --- /dev/null +++ b/back-end/src/main/java/kr/co/ssalon/domain/entity/AdvertisePayment.java @@ -0,0 +1,25 @@ +package kr.co.ssalon.domain.entity; + +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; +import lombok.Getter; +import lombok.NoArgsConstructor; + +@Entity +@Getter +@DiscriminatorValue("A") +@NoArgsConstructor +public class AdvertisePayment extends Payment{ + + public AdvertisePayment(Member member, Meeting meeting, Integer amount, String purpose, String tid) { + super(member, meeting, amount, purpose, tid); + } + + public static Payment createAdvertisePayment(Member member, Meeting meeting, String purpose, Integer amount, String tid) { + AdvertisePayment advertisePayment = new AdvertisePayment(member, meeting, amount, purpose, tid); + advertisePayment.changeMemberByAdvertise(member); + advertisePayment.changeMeeting(meeting); + return advertisePayment; + } + +} diff --git a/back-end/src/main/java/kr/co/ssalon/domain/entity/Meeting.java b/back-end/src/main/java/kr/co/ssalon/domain/entity/Meeting.java index 5c1c9ebd..4bb0c38c 100644 --- a/back-end/src/main/java/kr/co/ssalon/domain/entity/Meeting.java +++ b/back-end/src/main/java/kr/co/ssalon/domain/entity/Meeting.java @@ -37,10 +37,21 @@ public class Meeting { @OneToMany(mappedBy = "meeting", cascade = CascadeType.ALL, orphanRemoval = true) private final List participants = new ArrayList<>(); +<<<<<<< HEAD + @OneToMany(mappedBy = "meeting", cascade = CascadeType.ALL, orphanRemoval = true) + private final List meetingOuts = new ArrayList<>(); + +======= +>>>>>>> develop @ElementCollection @CollectionTable(name = "meeting_picture", joinColumns = @JoinColumn(name = "meeting_id")) private final List meetingPictureUrls = new ArrayList<>(); +<<<<<<< HEAD + @OneToMany(mappedBy = "meeting", cascade = CascadeType.ALL, orphanRemoval = true) + private final List payments = new ArrayList<>(); +======= +>>>>>>> develop private String title; private String description; @@ -91,22 +102,38 @@ public void changeThumbnail(String thumbnail) { this.thumbnail = thumbnail != null ? thumbnail : this.thumbnail; } +<<<<<<< HEAD + public void changePayment(Integer payment) {this.payment = payment != null ? payment : this.payment;} + public void changeIsSharable(Boolean isSharable) {this.isSharable = isSharable != null ? isSharable : this.isSharable;} +======= + +>>>>>>> develop public void addMeetingPictureUrls(List meetingPictureUrls) { for (String meetingPictureUrl : meetingPictureUrls) { getMeetingPictureUrls().add(meetingPictureUrl); } } +<<<<<<< HEAD + public void updateMeeting(Category category, Integer payment, List meetingPictureUrls, String title, String description, String location, Integer capacity, LocalDateTime meetingDates, Boolean isSharable) { + changeCategory(category); + changePayment(payment); +======= public void updateMeeting(Category category, List meetingPictureUrls, String title, String description, String location, Integer capacity, LocalDateTime meetingDates) { changeCategory(category); +>>>>>>> develop addMeetingPictureUrls(meetingPictureUrls); changeTitle(title); changeDescription(description); changeLocation(location); changeCapacity(capacity); changeLocalDateTime(meetingDates); +<<<<<<< HEAD + changeIsSharable(isSharable); +======= +>>>>>>> develop } // ***** 연관 메서드 ***** diff --git a/back-end/src/main/java/kr/co/ssalon/domain/entity/Member.java b/back-end/src/main/java/kr/co/ssalon/domain/entity/Member.java index 350e5139..01baf234 100644 --- a/back-end/src/main/java/kr/co/ssalon/domain/entity/Member.java +++ b/back-end/src/main/java/kr/co/ssalon/domain/entity/Member.java @@ -24,8 +24,17 @@ public class Member { private final List joinedMeetings = new ArrayList<>(); @OneToMany(mappedBy = "member", cascade = CascadeType.ALL, orphanRemoval = true) +<<<<<<< HEAD + private final List meetingOuts = new ArrayList<>(); + + @OneToMany(mappedBy = "member", cascade = CascadeType.ALL, orphanRemoval = true) + private final List payments = new ArrayList<>(); + @OneToMany(mappedBy = "member", cascade = CascadeType.ALL, orphanRemoval = true) + private final List advertisements = new ArrayList<>(); +======= private final List payments = new ArrayList<>(); +>>>>>>> develop private String username; private String email; diff --git a/back-end/src/main/java/kr/co/ssalon/domain/entity/MemberMeeting.java b/back-end/src/main/java/kr/co/ssalon/domain/entity/MemberMeeting.java index 14078ab3..e2ba3de5 100644 --- a/back-end/src/main/java/kr/co/ssalon/domain/entity/MemberMeeting.java +++ b/back-end/src/main/java/kr/co/ssalon/domain/entity/MemberMeeting.java @@ -37,7 +37,11 @@ public class MemberMeeting { @JoinColumn(name = "qr_link_id") private QrLink qrLink; +<<<<<<< HEAD + @OneToMany(mappedBy = "memberMeeting", cascade = CascadeType.ALL) +======= @OneToMany(mappedBy = "memberMeeting") +>>>>>>> develop private final List messages = new ArrayList<>(); private boolean attendance; diff --git a/back-end/src/main/java/kr/co/ssalon/domain/entity/MoimPayment.java b/back-end/src/main/java/kr/co/ssalon/domain/entity/MoimPayment.java new file mode 100644 index 00000000..ba3cd01e --- /dev/null +++ b/back-end/src/main/java/kr/co/ssalon/domain/entity/MoimPayment.java @@ -0,0 +1,24 @@ +package kr.co.ssalon.domain.entity; + + +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; +import lombok.Getter; +import lombok.NoArgsConstructor; + +@Entity +@Getter +@DiscriminatorValue("M") +@NoArgsConstructor +public class MoimPayment extends Payment{ + + public MoimPayment(Member member, Meeting meeting, Integer amount, String purpose, String tid) { + super(member, meeting, amount, purpose, tid); + } + public static Payment createMoimPayment(Member member, Meeting meeting, String purpose, Integer amount, String tid) { + MoimPayment moimPayment = new MoimPayment(member, meeting, amount, purpose, tid); + moimPayment.changeMeeting(meeting); + moimPayment.changeMemberByMoim(member); + return moimPayment; + } +} diff --git a/back-end/src/main/java/kr/co/ssalon/domain/entity/Payment.java b/back-end/src/main/java/kr/co/ssalon/domain/entity/Payment.java index 4a68b644..3ddbf13c 100644 --- a/back-end/src/main/java/kr/co/ssalon/domain/entity/Payment.java +++ b/back-end/src/main/java/kr/co/ssalon/domain/entity/Payment.java @@ -5,11 +5,23 @@ import lombok.Builder; import lombok.Getter; +<<<<<<< HEAD +import java.math.BigDecimal; +import java.text.DecimalFormat; + +@Entity +@Inheritance(strategy = InheritanceType.SINGLE_TABLE) +@DiscriminatorColumn +@Getter +@AllArgsConstructor +public abstract class Payment { +======= @Entity @Getter @Builder @AllArgsConstructor public class Payment { +>>>>>>> develop @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @@ -21,12 +33,47 @@ public class Payment { @JoinColumn(name = "member_id") private Member member; +<<<<<<< HEAD + @ManyToOne(fetch = FetchType.LAZY) + @JoinColumn(name = "meeting_id") +======= @OneToOne(fetch = FetchType.LAZY) +>>>>>>> develop private Meeting meeting; private Integer amount; private String purpose; +<<<<<<< HEAD + private String tid; + @Column(insertable = false, updatable = false) + private String dtype; + + public Payment(Member member, Meeting meeting, Integer amount, String purpose, String tid) { + this.member = member; + this.meeting = meeting; + this.amount = amount; + this.purpose = purpose; + this.tid = tid; + } + + protected Payment() { + } + + // ***** 연관 메서드 ***** + public void changeMemberByMoim(Member member) { + this.member = member; + member.getPayments().add(this); + } + + public void changeMemberByAdvertise(Member member) { + this.member = member; + member.getAdvertisements().add(this); + } + + public void changeMeeting(Meeting meeting) { + this.meeting = meeting; +======= protected Payment() {} @@ -42,5 +89,6 @@ public static Payment createPayment(Member member, Integer amount) { payment.changeMember(member); return payment; +>>>>>>> develop } } diff --git a/back-end/src/main/java/kr/co/ssalon/domain/repository/MeetingRepository.java b/back-end/src/main/java/kr/co/ssalon/domain/repository/MeetingRepository.java index 08790207..83f25299 100644 --- a/back-end/src/main/java/kr/co/ssalon/domain/repository/MeetingRepository.java +++ b/back-end/src/main/java/kr/co/ssalon/domain/repository/MeetingRepository.java @@ -1,8 +1,16 @@ package kr.co.ssalon.domain.repository; import kr.co.ssalon.domain.entity.Meeting; +<<<<<<< HEAD +import org.springframework.data.domain.Page; +import org.springframework.data.domain.Pageable; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; +import org.springframework.data.repository.query.Param; +======= +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.Query; +>>>>>>> develop import org.springframework.stereotype.Repository; import java.util.List; @@ -12,4 +20,13 @@ public interface MeetingRepository extends JpaRepository, MeetingR @Query("SELECT m FROM Meeting m WHERE m.isFinished = false") List findAllUnfinishedMeetings(); +<<<<<<< HEAD + + + @Query("SELECT m FROM Meeting m WHERE m.title LIKE %:keyword% OR m.description LIKE %:keyword%") + Page searchByTitleOrDescription(@Param("keyword") String keyword, Pageable pageable); + + +======= +>>>>>>> develop } diff --git a/back-end/src/main/java/kr/co/ssalon/domain/repository/MeetingRepositoryCustomImpl.java b/back-end/src/main/java/kr/co/ssalon/domain/repository/MeetingRepositoryCustomImpl.java index 56ed4349..fcbc2f37 100644 --- a/back-end/src/main/java/kr/co/ssalon/domain/repository/MeetingRepositoryCustomImpl.java +++ b/back-end/src/main/java/kr/co/ssalon/domain/repository/MeetingRepositoryCustomImpl.java @@ -14,7 +14,10 @@ import kr.co.ssalon.domain.entity.Meeting; import kr.co.ssalon.domain.entity.Member; import kr.co.ssalon.domain.entity.MemberMeeting; +<<<<<<< HEAD +======= import kr.co.ssalon.domain.entity.QMemberMeeting; +>>>>>>> develop import kr.co.ssalon.domain.service.MeetingService; import kr.co.ssalon.web.dto.MeetingSearchCondition; import org.springframework.beans.factory.annotation.Autowired; @@ -23,7 +26,13 @@ import org.springframework.data.support.PageableExecutionUtils; import org.springframework.stereotype.Component; +<<<<<<< HEAD +import java.util.Arrays; import java.util.List; +import java.util.stream.Collectors; +======= +import java.util.List; +>>>>>>> develop import static com.querydsl.jpa.JPAExpressions.select; import static kr.co.ssalon.domain.entity.QMeeting.meeting; @@ -32,7 +41,10 @@ @Component public class MeetingRepositoryCustomImpl implements MeetingRepositoryCustom { +<<<<<<< HEAD +======= MeetingService meetingService; +>>>>>>> develop EntityManager em; JPAQueryFactory query; @@ -128,6 +140,17 @@ public List findMeetingsByCategoryId(Long categoryId) { } private Member findMemberByUsername(String username) { +<<<<<<< HEAD + System.out.println("Finding member by username: " + username); + Member member = em.createQuery("SELECT m FROM Member m WHERE m.username = :username", Member.class) + .setParameter("username", username) + .getSingleResult(); + System.out.println("Found member: " + member); + return member; + } + + +======= // Implement a method to find a Member entity by username // Example: return em.createQuery("SELECT m FROM Member m WHERE m.username = :username", Member.class) @@ -135,4 +158,5 @@ private Member findMemberByUsername(String username) { .getSingleResult(); } +>>>>>>> develop } diff --git a/back-end/src/main/java/kr/co/ssalon/domain/repository/PaymentRepository.java b/back-end/src/main/java/kr/co/ssalon/domain/repository/PaymentRepository.java index 2a9592c4..2b183b14 100644 --- a/back-end/src/main/java/kr/co/ssalon/domain/repository/PaymentRepository.java +++ b/back-end/src/main/java/kr/co/ssalon/domain/repository/PaymentRepository.java @@ -1,7 +1,26 @@ package kr.co.ssalon.domain.repository; +<<<<<<< HEAD +import kr.co.ssalon.domain.entity.Meeting; +import kr.co.ssalon.domain.entity.Member; +import kr.co.ssalon.domain.entity.Payment; +import org.springframework.data.jpa.repository.JpaRepository; + +import java.util.List; +import java.util.Optional; + +public interface PaymentRepository extends JpaRepository { + Optional findPaymentByMemberAndMeeting(Member member, Meeting meeting); + + List findAllByMeetingIdAndDtype(Long moimid, String dtype); + + List findAllByMemberIdAndDtype(Long memberId, String dtype); + List findAllByDtype(String dtype); + +======= import kr.co.ssalon.domain.entity.Payment; import org.springframework.data.jpa.repository.JpaRepository; public interface PaymentRepository extends JpaRepository { +>>>>>>> develop } diff --git a/back-end/src/main/java/kr/co/ssalon/domain/service/AwsLambdaService.java b/back-end/src/main/java/kr/co/ssalon/domain/service/AwsLambdaService.java index 718695b7..9565f555 100644 --- a/back-end/src/main/java/kr/co/ssalon/domain/service/AwsLambdaService.java +++ b/back-end/src/main/java/kr/co/ssalon/domain/service/AwsLambdaService.java @@ -49,6 +49,11 @@ public void updateUserEmbedding(Long userID, String username, String prompt) { jsonObject.addProperty("username", username); jsonObject.addProperty("prompt", prompt); +<<<<<<< HEAD + log.info("Sending request to update user embedding for userID: {}", userID); + +======= +>>>>>>> develop webClient.post() .uri(uriBuilder -> uriBuilder .path("/api/embedding/user") @@ -57,6 +62,11 @@ public void updateUserEmbedding(Long userID, String username, String prompt) { .retrieve() .bodyToMono(String.class) .timeout(Duration.ofSeconds(10)) +<<<<<<< HEAD + .doOnNext(response -> log.info("Response received: {}", response)) + .doOnError(error -> log.error("Error occurred: ", error)) +======= +>>>>>>> develop .block(); log.warn("UserEmbedding query sent."); diff --git a/back-end/src/main/java/kr/co/ssalon/domain/service/AwsS3Service.java b/back-end/src/main/java/kr/co/ssalon/domain/service/AwsS3Service.java index 19cdca4e..94f426e6 100644 --- a/back-end/src/main/java/kr/co/ssalon/domain/service/AwsS3Service.java +++ b/back-end/src/main/java/kr/co/ssalon/domain/service/AwsS3Service.java @@ -17,6 +17,10 @@ import java.util.ArrayList; import java.util.List; import java.util.Map; +<<<<<<< HEAD +import java.util.UUID; +======= +>>>>>>> develop @Slf4j @RequiredArgsConstructor @@ -109,6 +113,35 @@ public String uploadFileViaStream(Long moimId, String userEmail, String uploadFi return "200 OK"; } +<<<<<<< HEAD + public String uploadFileViaByteArray(Long moimId, byte[] byteArray) { + String keyName = "Images/" + moimId + "/" + UUID.randomUUID() + ".png"; + try { + // Byte -> InputStream 변환 + InputStream inputStream = new ByteArrayInputStream(byteArray); + + // PutObjectRequest 설정 + PutObjectRequest putObjectRequest = PutObjectRequest.builder() + .bucket(bucketStaticName) + .contentType("image/png") + .contentLength((long) byteArray.length) + .key(keyName) + .build(); + + // 업로드 실행 + s3Client.putObject(putObjectRequest, RequestBody.fromInputStream(inputStream, byteArray.length)); + } catch (Exception e) { + // 임시 에러 로깅 처리 + e.printStackTrace(); + return "502 Bad Gateway"; + } + + String imageUrl = "https://" + bucketStaticName + ".s3.ap-northeast-2.amazonaws.com/" + keyName; + return imageUrl; + } + +======= +>>>>>>> develop public int uploadMultiFilesViaMultipart(List multipartFiles, Map imageKeyMap) { int successfulUpload = 0; diff --git a/back-end/src/main/java/kr/co/ssalon/domain/service/ChatGptService.java b/back-end/src/main/java/kr/co/ssalon/domain/service/ChatGptService.java new file mode 100644 index 00000000..c34f0909 --- /dev/null +++ b/back-end/src/main/java/kr/co/ssalon/domain/service/ChatGptService.java @@ -0,0 +1,161 @@ +package kr.co.ssalon.domain.service; + +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; +import kr.co.ssalon.web.dto.ImageGenerationDTO; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import okhttp3.*; +import org.apache.commons.io.IOUtils; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.http.MediaType; +import org.springframework.stereotype.Service; + +import javax.imageio.ImageIO; +import java.awt.*; +import java.awt.image.BufferedImage; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; + +import org.springframework.http.*; +import org.springframework.web.client.RestTemplate; + +@Service +@RequiredArgsConstructor +@Slf4j +public class ChatGptService { + + @Value("${openai.api.key}") + private String apiKey; + + @Value("${karlo.api.key}") + private String karloApiKey; + + private static final String OPENAI_API_URL = "https://api.openai.com/v1/images/generations"; + private final ObjectMapper objectMapper; + private final TranslationService translationService; + private final AwsS3Service awsS3Service; + private static final OkHttpClient client = new OkHttpClient.Builder() + .connectTimeout(30, TimeUnit.SECONDS) + .writeTimeout(30, TimeUnit.SECONDS) + .readTimeout(30, TimeUnit.SECONDS) + .build(); + +// public String generateAndResizeImage(Long moimId, ImageGenerationDTO imageGenerationDTO) throws IOException { +// String prompt = imageGenerationDTO.getPrompt(); +// Boolean highQuality = imageGenerationDTO.getHighQuality(); +// Integer imageSize = highQuality ? 1024 : 512; +// +// String translatedText = translationService.translateText(prompt, "ko", "en"); +// log.info("translatedText = {}", translatedText); +// +// Map requestHashMap = new HashMap<>(); +// requestHashMap.put("prompt", translatedText); +// requestHashMap.put("n", 1); +// requestHashMap.put("size", String.format("%dx%d", imageSize, imageSize)); +// if (highQuality) { +// requestHashMap.put("model", "dall-e-3"); +// requestHashMap.put("quality", "hd"); +// } +// +// String requestBodyJson = objectMapper.writeValueAsString(requestHashMap); +// +// RequestBody body = RequestBody.create( +// requestBodyJson, +// MediaType.get("application/json; charset=utf-8") +// ); +// +// Request request = new Request.Builder() +// .url(OPENAI_API_URL) +// .post(body) +// .addHeader("Authorization", "Bearer " + apiKey) +// .addHeader("Content-Type", "application/json") +// .build(); +// Response response = client.newCall(request).execute(); +// +// if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); +// +// String jsonData = response.body().string(); +// log.info("openai api response = {}", jsonData); +// String imageUrl = extractImageUrlFromResponse(jsonData); +// +// byte[] imageBytes = downloadImage(imageUrl); +// +// return awsS3Service.uploadFileViaByteArray(moimId, imageBytes); +// } + + private String extractImageUrlFromResponse(String jsonData) throws IOException { + JsonNode rootNode = objectMapper.readTree(jsonData); + JsonNode dataNode = rootNode.path("data"); + if (dataNode.isArray() && dataNode.size() > 0) { + JsonNode firstImageNode = dataNode.get(0); + JsonNode urlNode = firstImageNode.path("url"); + if (urlNode.isTextual()) { + return urlNode.asText(); + } + } + throw new IOException("Invalid JSON response or missing URL"); + } + + private byte[] downloadImage(String imageUrl) throws IOException { + OkHttpClient client = new OkHttpClient(); + Request request = new Request.Builder().url(imageUrl).build(); + Response response = client.newCall(request).execute(); + + if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); + + return IOUtils.toByteArray(response.body().byteStream()); + } + + private byte[] resizeImage(byte[] originalImageBytes) throws IOException { + ByteArrayInputStream bais = new ByteArrayInputStream(originalImageBytes); + BufferedImage originalImage = ImageIO.read(bais); + + BufferedImage resizedImage = new BufferedImage(350, 600, BufferedImage.TYPE_INT_RGB); + Graphics2D g = resizedImage.createGraphics(); + g.drawImage(originalImage, 0, 0, 350, 600, null); + g.dispose(); + + ByteArrayOutputStream baos = new ByteArrayOutputStream(); + ImageIO.write(resizedImage, "png", baos); + return baos.toByteArray(); + } + + public String generateByKarlo(Long moimId, ImageGenerationDTO imageGenerationDTO) throws IOException { + String prompt = imageGenerationDTO.getPrompt(); + String translatedText = translationService.translateText(prompt, "ko", "en"); + log.info("translatedText = {}", translatedText); + + String url = "https://api.kakaobrain.com/v2/inference/karlo/t2i"; + RestTemplate restTemplate = new RestTemplate(); + + HttpHeaders headers = new HttpHeaders(); + headers.setContentType(MediaType.APPLICATION_JSON); + headers.set("Authorization", "KakaoAK " + karloApiKey); + + Map body = Map.of( + "version", "v2.1", + "prompt", translatedText, + "negative_prompt", "", + "height", 1024, + "width", 1024, + "image_quality", 100 + ); + + HttpEntity> entity = new HttpEntity<>(body, headers); + + ResponseEntity response = restTemplate.postForEntity(url, entity, Map.class); + + Map responseBody = response.getBody(); + List> images = (java.util.List>) responseBody.get("images"); + Map karloImage = images.get(0); + + byte[] imageBytes = downloadImage(karloImage.get("image")); + + return awsS3Service.uploadFileViaByteArray(moimId, imageBytes); + } +} diff --git a/back-end/src/main/java/kr/co/ssalon/domain/service/MeetingService.java b/back-end/src/main/java/kr/co/ssalon/domain/service/MeetingService.java index 518568df..b96f17a2 100644 --- a/back-end/src/main/java/kr/co/ssalon/domain/service/MeetingService.java +++ b/back-end/src/main/java/kr/co/ssalon/domain/service/MeetingService.java @@ -1,5 +1,23 @@ package kr.co.ssalon.domain.service; +<<<<<<< HEAD +import com.google.gson.Gson; +import kr.co.ssalon.domain.dto.MeetingDomainDTO; +import kr.co.ssalon.domain.entity.*; +import kr.co.ssalon.domain.repository.*; +import kr.co.ssalon.web.dto.*; +import lombok.RequiredArgsConstructor; +import org.apache.coyote.BadRequestException; +import org.springframework.data.domain.Page; +import org.springframework.data.domain.PageRequest; +import org.springframework.data.domain.Pageable; +import org.springframework.data.domain.Sort; +import org.springframework.scheduling.annotation.Async; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.util.ArrayList; +======= import kr.co.ssalon.domain.dto.MeetingDomainDTO; import kr.co.ssalon.domain.entity.*; import kr.co.ssalon.domain.repository.*; @@ -12,6 +30,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; +>>>>>>> develop import java.util.List; import java.util.Optional; import java.util.stream.Collectors; @@ -28,6 +47,11 @@ public class MeetingService { private final CategoryRepository categoryRepository; private final MeetingOutRepository meetingOutRepository; private final RecommendService recommendService; +<<<<<<< HEAD + private final AwsLambdaService awsLambdaService; + private final ValidationService validationService; +======= +>>>>>>> develop // 모임 개설 @Transactional @@ -103,12 +127,20 @@ public Boolean isCreator(String username, Long moimId) throws BadRequestExceptio Member member = findMember(username); Meeting meeting = findMeeting(moimId); +<<<<<<< HEAD + if (!isParticipant(moimId, member)) { +======= if(!isParticipant(moimId, member)) { +>>>>>>> develop throw new BadRequestException("모임의 참여자가 아닙니다."); } return member.equals(meeting.getCreator()); } +<<<<<<< HEAD + +======= +>>>>>>> develop // 모임 목록 조회 public Page getMoims(MeetingSearchCondition meetingSearchCondition, String username, Pageable pageable) { Page meetings = meetingRepository.searchMoims(meetingSearchCondition, username, pageable); @@ -116,9 +148,26 @@ public Page getMoims(MeetingSearchCondition meetingSearchCondition, Str } +<<<<<<< HEAD + public Page searchByKeyword(String keyword, Pageable pageable) { + if (keyword == null || keyword.isEmpty()) { + // keyword가 null이거나 빈 문자열인 경우 빈 페이지 반환 + return Page.empty(pageable); + } + + Page byKeywordContaining = meetingRepository.searchByTitleOrDescription(keyword, pageable); + return byKeywordContaining; + } + + + // 모임 정보 업데이트 + @Transactional + public Long editMoim(String username, Long moimId, MeetingInfoDTO meetingInfoDTO) throws BadRequestException { +======= // 모임 정보 업데이트 @Transactional public Long editMoim(String username, Long moimId, MeetingDomainDTO meetingDomainDTO) throws BadRequestException { +>>>>>>> develop // 모임 개최자 찾기 Member currentUser = findMember(username); @@ -127,6 +176,13 @@ public Long editMoim(String username, Long moimId, MeetingDomainDTO meetingDomai Meeting currentMeeting = findMeeting(moimId); // 개최자 검증 +<<<<<<< HEAD + ValidationService.validationCreatorMoim(currentMeeting, currentUser); + + // 카테고리 찾기 + Category category = findCategory(meetingInfoDTO.getCategory()); + currentMeeting.updateMeeting(category, meetingInfoDTO.getPayment(), meetingInfoDTO.getMeetingPictureUrls(), meetingInfoDTO.getTitle(), meetingInfoDTO.getDescription(), meetingInfoDTO.getLocation(), meetingInfoDTO.getCapacity(), meetingInfoDTO.getMeetingDate(), meetingInfoDTO.getIsSharable()); +======= if (!currentMeeting.getCreator().equals(currentUser)) { throw new BadRequestException("모임을 개설한 회원이 아닙니다."); } @@ -136,6 +192,7 @@ public Long editMoim(String username, Long moimId, MeetingDomainDTO meetingDomai // Dirty Checking currentMeeting.updateMeeting(category, meetingDomainDTO.getMeetingPictureUrls(), meetingDomainDTO.getTitle(), meetingDomainDTO.getDescription(), meetingDomainDTO.getLocation(), meetingDomainDTO.getCapacity(), meetingDomainDTO.getMeetingDate()); +>>>>>>> develop // 임베딩 업데이트 Meeting updatedMeeting = findMeeting(moimId); @@ -146,10 +203,17 @@ public Long editMoim(String username, Long moimId, MeetingDomainDTO meetingDomai // 모임 정보 업데이트 @Transactional +<<<<<<< HEAD + public Long editMoim(Long moimId, MeetingInfoDTO meetingInfoDTO) throws BadRequestException { + Meeting currentMeeting = findMeeting(moimId); + Category category = findCategory(meetingInfoDTO.getCategory()); + currentMeeting.updateMeeting(category, meetingInfoDTO.getPayment(), meetingInfoDTO.getMeetingPictureUrls(), meetingInfoDTO.getTitle(), meetingInfoDTO.getDescription(), meetingInfoDTO.getLocation(), meetingInfoDTO.getCapacity(), meetingInfoDTO.getMeetingDate(), meetingInfoDTO.getIsSharable()); +======= public Long editMoim(Long moimId, MeetingDomainDTO meetingDomainDTO) throws BadRequestException { Meeting currentMeeting = findMeeting(moimId); Category category = findCategory(meetingDomainDTO.getCategory()); currentMeeting.updateMeeting(category, meetingDomainDTO.getMeetingPictureUrls(), meetingDomainDTO.getTitle(), meetingDomainDTO.getDescription(), meetingDomainDTO.getLocation(), meetingDomainDTO.getCapacity(), meetingDomainDTO.getMeetingDate()); +>>>>>>> develop Meeting updatedMeeting = findMeeting(moimId); recommendService.updateMoimEmbedding(updatedMeeting); @@ -160,6 +224,26 @@ public Long editMoim(Long moimId, MeetingDomainDTO meetingDomainDTO) throws BadR // 모임 삭제 @Transactional public Long deleteMoim(String username, Long moimId) throws BadRequestException { +<<<<<<< HEAD +// // 멤버 찾기 +// Member currentUser = findMember(username); +// +// // 삭제할 미팅 찾기 +// Meeting currentMeeting = findMeeting(moimId); +// +// // 개최자 검증 +// ValidationService.validationCreatorMoim(currentMeeting, currentUser); +// // 모임 참여자 찾기 +// List participants = currentMeeting.getParticipants(); +// +// +// // 연관 관계 제거 +// // 내가 참여한 모임 중에서 해당 모임을 삭제 +// participants.forEach(participant -> participant.getMember().deleteMemberMeeting(participant)); +// +// // 해당 모임 참가자 삭제 +// memberMeetingRepository.deleteByMeetingId(moimId); +======= // 멤버 찾기 Member currentUser = findMember(username); @@ -181,6 +265,7 @@ public Long deleteMoim(String username, Long moimId) throws BadRequestException // 해당 모임 참가자 삭제 memberMeetingRepository.deleteByMeetingId(moimId); +>>>>>>> develop // 해당 모임 삭제 meetingRepository.deleteById(moimId); @@ -214,13 +299,23 @@ public MeetingOut deleteUserFromMoim(String username, Long moimId, Long userId, MemberMeeting targetMemberMeeting = findMemberMeeting(targetUser, meeting); // 요청자가 모임에 포함되어 있는지 검증 +<<<<<<< HEAD + if (!isParticipant(moimId, currentUser)) { + throw new BadRequestException("요청자가 모임에 참여자 목록에 존재하지 않습니다."); + } +======= if(!isParticipant(moimId, currentUser)) {throw new BadRequestException("요청자가 모임에 참여자 목록에 존재하지 않습니다.");} +>>>>>>> develop targetUser.deleteMemberMeeting(targetMemberMeeting); meeting.deleteMemberMeeting(targetMemberMeeting); // 요청자가 모임 개최자인 경우 -> 강퇴 +<<<<<<< HEAD + if (currentUser.equals(meeting.getCreator()) || !currentUser.equals(targetUser)) { +======= if(currentUser.equals(meeting.getCreator()) || !currentUser.equals(targetUser)) { +>>>>>>> develop MeetingOut meetingOut = MeetingOut.createMeetingOutReason(targetUser, meeting, "강퇴", reason); meetingOutRepository.save(meetingOut); @@ -235,10 +330,32 @@ else if (!currentUser.equals(meeting.getCreator()) || currentUser.equals(targetU meetingOutRepository.save(meetingOut); memberMeetingRepository.delete(targetMemberMeeting); return meetingOut; +<<<<<<< HEAD + } else { + throw new BadRequestException("요청자와 타겟의 관계가 잘못 설정되었습니다."); + } + } + + public void updateMoimEmbeddingAll() { + + List allMeetings = meetingRepository.findAll(); + + for (Meeting meeting : allMeetings) { + Long moimId = meeting.getId(); + String moimTitle = meeting.getTitle(); + StringBuilder prompt = new StringBuilder(); + + prompt.append("우리 모임은 ").append(meeting.getCategory().getName()).append(" 모임입니다. "); + prompt.append("우리 모임은 ").append(meeting.getLocation()).append("에서 열립니다. "); + prompt.append(meeting.getDescription()); + + awsLambdaService.updateMoimEmbedding(moimId, moimTitle, prompt.toString()); +======= } else { throw new BadRequestException("요청자와 타겟의 관계가 잘못 설정되었습니다."); +>>>>>>> develop } } diff --git a/back-end/src/main/java/kr/co/ssalon/domain/service/MemberService.java b/back-end/src/main/java/kr/co/ssalon/domain/service/MemberService.java index 847c3b27..a9c3568f 100644 --- a/back-end/src/main/java/kr/co/ssalon/domain/service/MemberService.java +++ b/back-end/src/main/java/kr/co/ssalon/domain/service/MemberService.java @@ -88,8 +88,14 @@ public Member signup(String username, MemberDomainDTO additionalInfo) throws Bad ); if (isRealSignup) { currentUser.initMemberDates(); +<<<<<<< HEAD + } + recommendService.updateMemberEmbedding(currentUser); + +======= recommendService.updateMemberEmbedding(currentUser); } +>>>>>>> develop return currentUser; } diff --git a/back-end/src/main/java/kr/co/ssalon/domain/service/PaymentService.java b/back-end/src/main/java/kr/co/ssalon/domain/service/PaymentService.java index 8d8c15f5..c9e3a51d 100644 --- a/back-end/src/main/java/kr/co/ssalon/domain/service/PaymentService.java +++ b/back-end/src/main/java/kr/co/ssalon/domain/service/PaymentService.java @@ -9,12 +9,106 @@ import java.util.Optional; +import kr.co.ssalon.domain.entity.*; +import kr.co.ssalon.domain.repository.MeetingRepository; +import kr.co.ssalon.domain.repository.MemberRepository; +import kr.co.ssalon.domain.repository.PaymentRepository; +import lombok.RequiredArgsConstructor; +import org.apache.coyote.BadRequestException; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; +import java.util.Optional; + @Service @Transactional(readOnly = true) @RequiredArgsConstructor public class PaymentService { private final PaymentRepository paymentRepository; + private final MemberRepository memberRepository; + private final MeetingRepository meetingRepository; + + + // 단건 결제 조회 + public Payment getPayment(Long paymentId) throws BadRequestException { + Payment payment = findPayment(paymentId); + return payment; + } + + // 모임 결제 완료 + @Transactional + public Long completeMoimPayment(String username, Long moimId, String purpose, Integer amount, String tid) throws BadRequestException { + Member currentMember = findMember(username); + Meeting meeting = findMeeting(moimId); + Payment payment = MoimPayment.createMoimPayment(currentMember, meeting, purpose, amount, tid); + Payment successPayment = paymentRepository.save(payment); + return successPayment.getId(); + } + // 광고 결제 완료 + @Transactional + public Long completeAdvertisePayment(String username, Long moimId, String purpose, Integer amount, String tid) throws BadRequestException { + Member currentMember = findMember(username); + Meeting meeting = findMeeting(moimId); + Payment payment = AdvertisePayment.createAdvertisePayment(currentMember, meeting, purpose, amount, tid); + Payment successPayment = paymentRepository.save(payment); + return successPayment.getId(); + } + // 모임 결제 취소 (환불) + @Transactional + public void completeMoimRefund(String username, Long moimId) throws BadRequestException { + Payment payment = findPayment(username, moimId); + Member member = findMember(username); + member.getPayments().remove(payment); + paymentRepository.delete(payment); + } + // 광고 결제 취소 (환불) + @Transactional + public void completeAdvertiseRefund(Long userId, Long paymentId) throws BadRequestException { + Payment payment = findPayment(paymentId); + Member member = findMember(userId); + member.getAdvertisements().remove(payment); + paymentRepository.delete(payment); + } + // 결제 내역 중복 방지 + public void checkPayment(String username, Long moimId) throws BadRequestException { + Member currentMember = findMember(username); + Meeting meeting = findMeeting(moimId); + Optional findPayment = paymentRepository.findPaymentByMemberAndMeeting(currentMember, meeting); + ValidationService.validationExistPayment(findPayment); + } + + // 모임 참가 비용 결제 내역 조회 -> 참가자의 금전 지불 여부 확인 + public List getMoimPaymentAll(Long moimId) { + List payments = paymentRepository.findAllByMeetingIdAndDtype(moimId,"M"); + return payments; + } + // 광고 게시 비용 결제 내역 조회 + public List getAdvertisePaymentAll(Long userId) { + List payments = paymentRepository.findAllByMemberIdAndDtype(userId,"A"); + return payments; + } + + // 모든 모임 결제 내역 조회 + public List getMoimsTotalPayment() { + return paymentRepository.findAllByDtype("M"); + } + + // 모든 광고 결제 내역 조회 + public List getAdvertiseTotalPayment() { + return paymentRepository.findAllByDtype("A"); + } + + + + public Payment findPayment(String username, Long moimId) throws BadRequestException { + Member member = findMember(username); + Meeting meeting = findMeeting(moimId); + Optional findPayment = paymentRepository.findPaymentByMemberAndMeeting(member, meeting); + Payment payment = ValidationService.validationPayment(findPayment); + return payment; + } public Payment findPayment(Long paymentId) throws BadRequestException { Optional findPayment = paymentRepository.findById(paymentId); @@ -22,5 +116,22 @@ public Payment findPayment(Long paymentId) throws BadRequestException { return payment; } + private Member findMember(String username) throws BadRequestException { + Optional findMember = memberRepository.findByUsername(username); + Member member = ValidationService.validationMember(findMember); + return member; + } + + private Member findMember(Long userId) throws BadRequestException { + Optional findMember = memberRepository.findById(userId); + Member member = ValidationService.validationMember(findMember); + return member; + } + + private Meeting findMeeting(Long moimId) throws BadRequestException { + Optional findMeeting = meetingRepository.findById(moimId); + Meeting meeting = ValidationService.validationMeeting(findMeeting); + return meeting; + } } diff --git a/back-end/src/main/java/kr/co/ssalon/domain/service/RecommendService.java b/back-end/src/main/java/kr/co/ssalon/domain/service/RecommendService.java index 45abb070..3bcc4279 100644 --- a/back-end/src/main/java/kr/co/ssalon/domain/service/RecommendService.java +++ b/back-end/src/main/java/kr/co/ssalon/domain/service/RecommendService.java @@ -4,12 +4,20 @@ import kr.co.ssalon.domain.entity.Member; import kr.co.ssalon.domain.repository.MeetingRepository; import kr.co.ssalon.domain.repository.MemberRepository; +<<<<<<< HEAD +import lombok.extern.slf4j.Slf4j; +======= +>>>>>>> develop import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.Async; import org.springframework.stereotype.Service; import java.util.List; +<<<<<<< HEAD +@Slf4j +======= +>>>>>>> develop @Service public class RecommendService { @@ -49,7 +57,14 @@ public void updateMemberEmbedding(Member member) { String moimResult = "1,2,3,4,5,6,7,8,9,10"; String categoryResult = "1,2,3,4,5,6,7,8,9,10"; try { +<<<<<<< HEAD + log.info("Trying to update user embedding"); awsLambdaService.updateUserEmbedding(memberId, memberName, prompt.toString()); + } catch (Exception e) { + log.error("Exception in updateMemberEmbedding", e); +======= + awsLambdaService.updateUserEmbedding(memberId, memberName, prompt.toString()); +>>>>>>> develop } finally { moimResult = awsLambdaService.fetchMoimRecommendation(memberId).block(); categoryResult = awsLambdaService.fetchCategoryRecommendation(memberId).block(); @@ -59,6 +74,11 @@ public void updateMemberEmbedding(Member member) { member.changeCategoryRecommendation(categoryResult); memberRepository.save(member); +<<<<<<< HEAD + + log.info("updateMemberEmbedding finished for member: {}", member.getId()); +======= +>>>>>>> develop } @Async @@ -74,6 +94,8 @@ public void updateMoimEmbedding(Meeting meeting) { awsLambdaService.updateMoimEmbedding(moimId, moimTitle, prompt.toString()); } +<<<<<<< HEAD +======= @Async public void updateMoimEmbeddingAll() { @@ -92,4 +114,5 @@ public void updateMoimEmbeddingAll() { awsLambdaService.updateMoimEmbedding(moimId, moimTitle, prompt.toString()); } } +>>>>>>> develop } diff --git a/back-end/src/main/java/kr/co/ssalon/domain/service/TranslationService.java b/back-end/src/main/java/kr/co/ssalon/domain/service/TranslationService.java new file mode 100644 index 00000000..09441061 --- /dev/null +++ b/back-end/src/main/java/kr/co/ssalon/domain/service/TranslationService.java @@ -0,0 +1,35 @@ +package kr.co.ssalon.domain.service; + +import com.google.cloud.translate.Translate; +import com.google.cloud.translate.Translation; +import lombok.RequiredArgsConstructor; +import org.springframework.stereotype.Service; + +@Service +@RequiredArgsConstructor +public class TranslationService { + + private final Translate translate; + + public String translateText(String text, String sourceLang, String targetLang) { + if (!containsKorean(text)) { + return text; + } + + Translation translation = translate.translate( + text, + Translate.TranslateOption.sourceLanguage(sourceLang), + Translate.TranslateOption.targetLanguage(targetLang) + ); + return translation.getTranslatedText(); + } + + public static boolean containsKorean(String text) { + for (char c : text.toCharArray()) { + if (c >= '\uAC00' && c <= '\uD7A3') { + return true; + } + } + return false; + } +} diff --git a/back-end/src/main/java/kr/co/ssalon/domain/service/ValidationService.java b/back-end/src/main/java/kr/co/ssalon/domain/service/ValidationService.java index 5400c706..2c146456 100644 --- a/back-end/src/main/java/kr/co/ssalon/domain/service/ValidationService.java +++ b/back-end/src/main/java/kr/co/ssalon/domain/service/ValidationService.java @@ -36,12 +36,28 @@ public static MemberMeeting validationMemberMeeting(Optional find throw new BadRequestException("회원이 참여하고 있는 모임을 찾을 수 없습니다."); } +<<<<<<< HEAD + public static void validationCreatorMoim(Meeting currentMeeting, Member currentUser) throws BadRequestException { + if (!currentMeeting.getCreator().equals(currentUser)) { + throw new BadRequestException("모임을 개설한 회원이 아닙니다."); + } + } +======= +>>>>>>> develop public static Ticket validationTicket(Optional ticket) throws BadRequestException { if (ticket.isPresent()) { return ticket.get(); } else throw new BadRequestException("해당 티켓을 찾을 수 없습니다"); } +<<<<<<< HEAD + public static void validationExistPayment(Optional checkPayment) throws BadRequestException { + if (checkPayment.isPresent()) { + throw new BadRequestException("이미 해당 결제 내역이 존재합니다."); + } + } +======= +>>>>>>> develop public static Payment validationPayment(Optional payment) throws BadRequestException { if (payment.isPresent()) { diff --git a/back-end/src/main/java/kr/co/ssalon/kakaopay/KakaoPayProperties.java b/back-end/src/main/java/kr/co/ssalon/kakaopay/KakaoPayProperties.java new file mode 100644 index 00000000..19e8ea20 --- /dev/null +++ b/back-end/src/main/java/kr/co/ssalon/kakaopay/KakaoPayProperties.java @@ -0,0 +1,35 @@ +package kr.co.ssalon.kakaopay; + +import lombok.Getter; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Component; + +@Component +@Getter +public class KakaoPayProperties { + public final String secretKey; + + public final String cid; + + public final String readyUrl; + + public final String approveUrl; + public final String cancelUrl; + public final String partnerUserId; + + @Autowired + public KakaoPayProperties(@Value("${kakaopay.secret_key}") String secretKey, @Value("${kakaopay.cid}") String cid, + @Value("${kakaopay.ready_url}") String readyUrl, + @Value("${kakaopay.approve_url}") String approveUrl, + @Value("${kakaopay.cancel_url}") String cancelUrl, + @Value("${kakaopay.partner_user_id}") String partnerUserId) { + this.secretKey = secretKey; + this.cid = cid; + this.readyUrl = readyUrl; + this.approveUrl = approveUrl; + this.cancelUrl = cancelUrl; + this.partnerUserId = partnerUserId; + + } +} diff --git a/back-end/src/main/java/kr/co/ssalon/kakaopay/PayService.java b/back-end/src/main/java/kr/co/ssalon/kakaopay/PayService.java new file mode 100644 index 00000000..267f94b3 --- /dev/null +++ b/back-end/src/main/java/kr/co/ssalon/kakaopay/PayService.java @@ -0,0 +1,93 @@ +package kr.co.ssalon.kakaopay; + +import kr.co.ssalon.kakaopay.dto.*; +import lombok.RequiredArgsConstructor; +import org.springframework.http.HttpEntity; +import org.springframework.http.HttpHeaders; +import org.springframework.web.client.RestTemplate; + +import java.util.LinkedHashMap; + +@RequiredArgsConstructor +public class PayService { + private final KakaoPayProperties kakaoPayProperties; + + public KakaopayReadyResponseDto kakaoPayReady(KakaopayReadyRequestDto request) { + + HttpEntity> requestEntity = new HttpEntity<>(this.getReadyParameters(request), this.getHeaders()); + RestTemplate restTemplate = new RestTemplate(); + KakaopayReadyResponseDto response = restTemplate.postForObject( + kakaoPayProperties.getReadyUrl(), + requestEntity, + KakaopayReadyResponseDto.class + ); + return response; + } + + public KakaopayApproveResponseDto kakaoPayApprove(KakaopayApproveRequestDto request) { + + HttpEntity> requestEntity = new HttpEntity<>(this.getApproveParameters(request), this.getHeaders()); + RestTemplate restTemplate = new RestTemplate(); + KakaopayApproveResponseDto response = restTemplate.postForObject( + kakaoPayProperties.getApproveUrl(), + requestEntity, + KakaopayApproveResponseDto.class + ); + return response; + } + + public KakaopayCancelResponseDto kakaoPayCancel(KakaopayCancelRequestDto request) { + + HttpEntity> requestEntity = new HttpEntity<>(this.getCancelParameters(request), this.getHeaders()); + RestTemplate restTemplate = new RestTemplate(); + KakaopayCancelResponseDto response = restTemplate.postForObject( + kakaoPayProperties.getCancelUrl(), + requestEntity, + KakaopayCancelResponseDto.class + ); + return response; + } + + private HttpHeaders getHeaders() { + HttpHeaders headers = new HttpHeaders(); + String auth = "SECRET_KEY " + kakaoPayProperties.getSecretKey(); + headers.set("Authorization", auth); + headers.set("Content-Type", "application/json"); + return headers; + } + + private LinkedHashMap getReadyParameters(KakaopayReadyRequestDto request) { + LinkedHashMap parameters = new LinkedHashMap<>(); + parameters.put("cid", kakaoPayProperties.getCid()); + parameters.put("partner_order_id", request.getPartnerOrderId()); + parameters.put("partner_user_id", request.getPartnerUserId()); + parameters.put("item_name", request.getItemName()); + parameters.put("quantity", String.valueOf(request.getQuantity())); + parameters.put("total_amount", String.valueOf(request.getTotalPayment())); + parameters.put("tax_free_amount", String.valueOf(request.getTaxFreeAmount())); + parameters.put("approval_url", request.getApprovalUrl()); + parameters.put("cancel_url", request.getCancelUrl()); + parameters.put("fail_url", request.getFailUrl()); + return parameters; + } + + private LinkedHashMap getApproveParameters(KakaopayApproveRequestDto request) { + LinkedHashMap parameters = new LinkedHashMap<>(); + parameters.put("tid", request.getTid()); + parameters.put("cid", kakaoPayProperties.getCid()); + parameters.put("partner_order_id", request.getPartnerOrderId()); + parameters.put("partner_user_id", request.getPartnerUserId()); + parameters.put("pg_token", request.getPgToken()); + return parameters; + } + + private LinkedHashMap getCancelParameters(KakaopayCancelRequestDto request) { + LinkedHashMap parameters = new LinkedHashMap<>(); + parameters.put("tid", request.getTid()); + parameters.put("cid", kakaoPayProperties.getCid()); + parameters.put("cancel_amount", String.valueOf(request.getCancelAmount())); + parameters.put("cancel_tax_free_amount", String.valueOf(request.getCancelTaxFreeAmount())); + + return parameters; + } +} diff --git a/back-end/src/main/java/kr/co/ssalon/kakaopay/dto/KakaopayApproveRequestDto.java b/back-end/src/main/java/kr/co/ssalon/kakaopay/dto/KakaopayApproveRequestDto.java new file mode 100644 index 00000000..3e3939d4 --- /dev/null +++ b/back-end/src/main/java/kr/co/ssalon/kakaopay/dto/KakaopayApproveRequestDto.java @@ -0,0 +1,18 @@ +package kr.co.ssalon.kakaopay.dto; + +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +@Data +@AllArgsConstructor +@NoArgsConstructor +@Builder +public class KakaopayApproveRequestDto { + private String tid; + private String cid; + private String partnerOrderId; + private String partnerUserId; + private String pgToken; +} diff --git a/back-end/src/main/java/kr/co/ssalon/kakaopay/dto/KakaopayApproveResponseDto.java b/back-end/src/main/java/kr/co/ssalon/kakaopay/dto/KakaopayApproveResponseDto.java new file mode 100644 index 00000000..5448a030 --- /dev/null +++ b/back-end/src/main/java/kr/co/ssalon/kakaopay/dto/KakaopayApproveResponseDto.java @@ -0,0 +1,35 @@ +package kr.co.ssalon.kakaopay.dto; + +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.time.LocalDateTime; + +@Data +@AllArgsConstructor +@NoArgsConstructor +public class KakaopayApproveResponseDto { + private String aid; + private String cid; + private String tid; + private String sid; + private String partner_order_id; + private String partner_user_id; + private String payment_method_type; + private Amount amount; + private String item_name; + private String item_code; + private LocalDateTime created_at; + private LocalDateTime approved_at; + + @Data + @AllArgsConstructor + @NoArgsConstructor + static class Amount { + private Integer total; + } + public Integer returnTotal(){ + return amount.getTotal(); + } +} diff --git a/back-end/src/main/java/kr/co/ssalon/kakaopay/dto/KakaopayCancelRequestDto.java b/back-end/src/main/java/kr/co/ssalon/kakaopay/dto/KakaopayCancelRequestDto.java new file mode 100644 index 00000000..15cc52f5 --- /dev/null +++ b/back-end/src/main/java/kr/co/ssalon/kakaopay/dto/KakaopayCancelRequestDto.java @@ -0,0 +1,19 @@ +package kr.co.ssalon.kakaopay.dto; + +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +@Data +@AllArgsConstructor +@NoArgsConstructor +@Builder +public class KakaopayCancelRequestDto { + private String cid; + private String tid; + private Integer cancelAmount; + private Integer cancelTaxFreeAmount; + + +} diff --git a/back-end/src/main/java/kr/co/ssalon/kakaopay/dto/KakaopayCancelResponseDto.java b/back-end/src/main/java/kr/co/ssalon/kakaopay/dto/KakaopayCancelResponseDto.java new file mode 100644 index 00000000..34a134f1 --- /dev/null +++ b/back-end/src/main/java/kr/co/ssalon/kakaopay/dto/KakaopayCancelResponseDto.java @@ -0,0 +1,43 @@ +package kr.co.ssalon.kakaopay.dto; + +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.time.LocalDateTime; + +@Data +@AllArgsConstructor +@NoArgsConstructor +public class KakaopayCancelResponseDto { + private String aid; + private String tid; + private String cid; + private String status; + private String partner_order_id; + private String partner_user_id; + private String payment_method_type; + private Amount amount; + private ApprovedCancelAmount approved_cancel_amount; + private String item_name; + private String item_code; + private LocalDateTime created_at; + private LocalDateTime approved_at; + private LocalDateTime canceled_at; + @Data + @AllArgsConstructor + @NoArgsConstructor + static class Amount{ + private Integer total; + private Integer texFree; + private Integer discount; + } + @Data + @AllArgsConstructor + @NoArgsConstructor + static class ApprovedCancelAmount { + private Integer total; + private Integer taxFree; + private Integer discount; + } +} diff --git a/back-end/src/main/java/kr/co/ssalon/kakaopay/dto/KakaopayReadyRequestDto.java b/back-end/src/main/java/kr/co/ssalon/kakaopay/dto/KakaopayReadyRequestDto.java new file mode 100644 index 00000000..6ed37b76 --- /dev/null +++ b/back-end/src/main/java/kr/co/ssalon/kakaopay/dto/KakaopayReadyRequestDto.java @@ -0,0 +1,24 @@ +package kr.co.ssalon.kakaopay.dto; + +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +@Data +@AllArgsConstructor +@NoArgsConstructor +@Builder +public class KakaopayReadyRequestDto { + private String cid; + private String partnerOrderId; + private String partnerUserId; + private String itemName; + private String itemCode; + private Integer quantity; + private Integer totalPayment; + private Integer taxFreeAmount; + private String approvalUrl; + private String cancelUrl; + private String failUrl; +} diff --git a/back-end/src/main/java/kr/co/ssalon/kakaopay/dto/KakaopayReadyResponseDto.java b/back-end/src/main/java/kr/co/ssalon/kakaopay/dto/KakaopayReadyResponseDto.java new file mode 100644 index 00000000..19516135 --- /dev/null +++ b/back-end/src/main/java/kr/co/ssalon/kakaopay/dto/KakaopayReadyResponseDto.java @@ -0,0 +1,23 @@ +package kr.co.ssalon.kakaopay.dto; + +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.time.LocalDateTime; + +@Data +@AllArgsConstructor +@NoArgsConstructor +public class KakaopayReadyResponseDto { + private String tid; + private String next_redirect_app_url; + private String next_redirect_mobile_url; + private String next_redirect_pc_url; + private String android_app_scheme; + private String ios_app_scheme; + private LocalDateTime created_at; + + + +} diff --git a/back-end/src/main/java/kr/co/ssalon/oauth2/handler/CustomLogoutFilter.java b/back-end/src/main/java/kr/co/ssalon/oauth2/handler/CustomLogoutFilter.java index 521780b9..58c956d9 100644 --- a/back-end/src/main/java/kr/co/ssalon/oauth2/handler/CustomLogoutFilter.java +++ b/back-end/src/main/java/kr/co/ssalon/oauth2/handler/CustomLogoutFilter.java @@ -5,6 +5,10 @@ import jakarta.servlet.ServletException; import jakarta.servlet.ServletRequest; import jakarta.servlet.ServletResponse; +<<<<<<< HEAD +import jakarta.servlet.http.Cookie; +======= +>>>>>>> develop import jakarta.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletResponse; import kr.co.ssalon.jwt.JWTUtil; @@ -45,6 +49,24 @@ private void doFilter(HttpServletRequest request, HttpServletResponse response, String refresh = null; refresh = request.getHeader("Refresh"); +<<<<<<< HEAD + + if (refresh == null) { + // 쿠키 토큰 사용 + Cookie[] cookies = request.getCookies(); + if (cookies != null) { + for (Cookie cookie : cookies) { + if ("refresh".equals(cookie.getName())) { + log.info("@@@@@@@@@@cookie: {}", cookie.getName()); + refresh = cookie.getValue(); + break; + } + } + } + } + +======= +>>>>>>> develop if (refresh == null) { sendResponse(response, "refresh token is null", HttpServletResponse.SC_BAD_REQUEST); return; @@ -73,9 +95,27 @@ private void doFilter(HttpServletRequest request, HttpServletResponse response, RedisRefreshToken deleteRefresh = redisRefreshTokenRepository.findByRefresh(refresh); redisRefreshTokenRepository.delete(deleteRefresh); +<<<<<<< HEAD + // 'access' 및 'refresh' 쿠키 제거 + clearCookie(response, "access"); + clearCookie(response, "refresh"); + + sendResponse(response, "logout success", HttpServletResponse.SC_OK); + } + + private void clearCookie(HttpServletResponse response, String name) { + Cookie cookie = new Cookie(name, null); + cookie.setPath("/"); + cookie.setHttpOnly(true); + cookie.setMaxAge(0); // 쿠키 만료 + response.addCookie(cookie); + } + +======= sendResponse(response, "logout success", HttpServletResponse.SC_OK); } +>>>>>>> develop private void sendResponse(HttpServletResponse response, String message, int status) { log.info(message); try (PrintWriter writer = response.getWriter()) { diff --git a/back-end/src/main/java/kr/co/ssalon/oauth2/handler/CustomSuccessHandler.java b/back-end/src/main/java/kr/co/ssalon/oauth2/handler/CustomSuccessHandler.java index 011295bf..950e4114 100644 --- a/back-end/src/main/java/kr/co/ssalon/oauth2/handler/CustomSuccessHandler.java +++ b/back-end/src/main/java/kr/co/ssalon/oauth2/handler/CustomSuccessHandler.java @@ -58,12 +58,23 @@ public void onAuthenticationSuccess(HttpServletRequest request, HttpServletRespo // redirect 경로 설정 if (Objects.equals(role, "ROLE_ADMIN")) { +<<<<<<< HEAD + response.sendRedirect("http://localhost:3000"); + } else { + String goMoimId = request.getParameter("goMoimId"); + if (goMoimId == null) { + response.sendRedirect("https://ssalon.co.kr/web/ssalon-login-redirect"); + } else { + response.sendRedirect("https://ssalon.co.kr/web/ssalon-login-redirect?goMoimId=" + goMoimId); + } +======= log.info("@@@@@@@@@@@@@@@@@if문 role: {}", role); log.info("#################" + request.getHeader("Host")); response.sendRedirect("http://localhost:3000"); } else { log.info("@@@@@@@@@@@@@@@@@else문 role: {}", role); response.sendRedirect("https://ssalon.co.kr/web/ssalon-login-redirect"); +>>>>>>> develop } // JSON 객체 생성 diff --git a/back-end/src/main/java/kr/co/ssalon/web/controller/CategoryController.java b/back-end/src/main/java/kr/co/ssalon/web/controller/CategoryController.java new file mode 100644 index 00000000..6afbdaec --- /dev/null +++ b/back-end/src/main/java/kr/co/ssalon/web/controller/CategoryController.java @@ -0,0 +1,101 @@ +package kr.co.ssalon.web.controller; + +import com.google.gson.Gson; +import com.google.gson.reflect.TypeToken; +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.media.Content; +import io.swagger.v3.oas.annotations.media.Schema; +import io.swagger.v3.oas.annotations.responses.ApiResponse; +import io.swagger.v3.oas.annotations.tags.Tag; +import kr.co.ssalon.domain.entity.Category; +import kr.co.ssalon.domain.entity.Meeting; +import kr.co.ssalon.domain.entity.Member; +import kr.co.ssalon.domain.repository.CategoryRepository; +import kr.co.ssalon.domain.service.CategoryService; +import kr.co.ssalon.domain.service.MemberService; +import kr.co.ssalon.oauth2.CustomOAuth2Member; +import kr.co.ssalon.web.dto.CategoryHomeDTO; +import kr.co.ssalon.web.dto.JsonResult; +import kr.co.ssalon.web.dto.MeetingListSearchDTO; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.http.HttpStatus; +import org.springframework.http.ResponseEntity; +import org.springframework.security.core.annotation.AuthenticationPrincipal; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RestController; + +import java.util.ArrayList; +import java.util.List; + +@Tag(name = "카테고리") +@Slf4j +@RestController +@RequiredArgsConstructor +public class CategoryController { + + private final CategoryService categoryService; + private final CategoryRepository categoryRepository; + private final MemberService memberService; + + @Operation(summary = "카테고리 전체 조회") + @ApiResponse(responseCode = "200", description = "카테고리 전체 조회 성공", content = { + @Content(schema = @Schema(implementation = Category.class)) + }) + @GetMapping("/api/category/all") + public ResponseEntity getCategories(@AuthenticationPrincipal CustomOAuth2Member customOAuth2Member) { + try { + List categories = categoryRepository.findAll(); + List categoryHomeDTOS = new ArrayList<>(); + + for (Category category : categories) { + CategoryHomeDTO categoryHomeDTO = new CategoryHomeDTO(category); + categoryHomeDTOS.add(categoryHomeDTO); + } + + return ResponseEntity.ok().body(categoryHomeDTOS); + } catch (Exception e) { + return new ResponseEntity<>(e.getMessage(), HttpStatus.BAD_REQUEST); + } + } + + @Operation(summary = "추천 카테고리 리스트 전체 조회") + @ApiResponse(responseCode = "200", description = "카테고리 전체 조회 성공", content = { + @Content(schema = @Schema(implementation = CategoryHomeDTO.class)) + }) + @GetMapping("/api/category/recommend") + public ResponseEntity getRecommendCategories(@AuthenticationPrincipal CustomOAuth2Member customOAuth2Member) { + try { + Gson gson = new Gson(); + + String username = customOAuth2Member.getUsername(); + Member member = memberService.findMember(username); + + List categoryRecommendList = gson.fromJson(member.getCategoryRecommendation(), new TypeToken>() {}); + + List categoryHomeDTOS = new ArrayList<>(); + + for (int i = 0; i < categoryRecommendList.size(); i++) { + Category category; + + if (member.getCategoryRecommendation() != null) { + // member.getMeetingRecommendation()이 null이 아닌 경우 + category = categoryService.findCategory(categoryRecommendList.get(i)); + } else { + // member.getMeetingRecommendation()이 null인 경우 + category = categoryService.findCategory((long) i); + } + + CategoryHomeDTO categoryHomeDTO = new CategoryHomeDTO(category); + categoryHomeDTOS.add(categoryHomeDTO); + } + return ResponseEntity.ok().body(new JsonResult<>(categoryHomeDTOS).getData()); + } catch (Exception e) { + return new ResponseEntity<>(e.getMessage(), HttpStatus.BAD_REQUEST); + } + } + + + + +} diff --git a/back-end/src/main/java/kr/co/ssalon/web/controller/ChatGptController.java b/back-end/src/main/java/kr/co/ssalon/web/controller/ChatGptController.java new file mode 100644 index 00000000..61d59b27 --- /dev/null +++ b/back-end/src/main/java/kr/co/ssalon/web/controller/ChatGptController.java @@ -0,0 +1,30 @@ +package kr.co.ssalon.web.controller; +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.media.Content; +import io.swagger.v3.oas.annotations.media.Schema; +import io.swagger.v3.oas.annotations.responses.ApiResponse; +import io.swagger.v3.oas.annotations.tags.Tag; +import kr.co.ssalon.domain.service.ChatGptService; +import kr.co.ssalon.web.dto.ImageGenerationDTO; +import lombok.RequiredArgsConstructor; +import org.springframework.web.bind.annotation.*; + +import java.io.IOException; + +@Tag(name = "AI 이미지") +@RestController +@RequiredArgsConstructor +public class ChatGptController { + + private final ChatGptService chatGptService; + + @Operation(summary = "AI를 통한 이미지 생성") + @ApiResponse(responseCode = "201", description = "이미지 생성 성공", content = { + @Content(schema = @Schema(implementation = String.class)) + }) + @PostMapping("/api/image/generate/{moimId}") + public String generateImage(@RequestBody ImageGenerationDTO imageGenerationDTO, @PathVariable Long moimId) throws IOException { +// return chatGptService.generateAndResizeImage(moimId, imageGenerationDTO); + return chatGptService.generateByKarlo(moimId, imageGenerationDTO); + } +} diff --git a/back-end/src/main/java/kr/co/ssalon/web/controller/MeetingController.java b/back-end/src/main/java/kr/co/ssalon/web/controller/MeetingController.java index f53c6e26..1204ea0e 100644 --- a/back-end/src/main/java/kr/co/ssalon/web/controller/MeetingController.java +++ b/back-end/src/main/java/kr/co/ssalon/web/controller/MeetingController.java @@ -2,6 +2,10 @@ import com.google.gson.Gson; import com.google.gson.reflect.TypeToken; +<<<<<<< HEAD +import com.sun.jdi.LongValue; +======= +>>>>>>> develop import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.media.Content; import io.swagger.v3.oas.annotations.media.Schema; @@ -83,12 +87,68 @@ public ResponseEntity getMoims(@AuthenticationPrincipa return ResponseEntity.ok().body(new JsonResult<>(meetingListSearchPageDTO).getData()); } +<<<<<<< HEAD + @Operation(summary = "추천 모임 리스트 조회") + @ApiResponse(responseCode = "200", description = "추천 모임 리스트 조회 성공", content = { + @Content(schema = @Schema(implementation = MeetingListSearchDTO.class)) + }) + @GetMapping("/api/moims/recommend") + public ResponseEntity getMoimsByRecommend(@AuthenticationPrincipal CustomOAuth2Member customOAuth2Member, MeetingSearchCondition meetingSearchCondition) { + try { + Gson gson = new Gson(); + + List meetingListSearchDTOs = new ArrayList<>(); + String username = customOAuth2Member.getUsername(); + Member member = memberService.findMember(username); + + List meetingRecommendList = gson.fromJson(member.getMeetingRecommendation(), new TypeToken>() {}); + + for (int i = 0; i < meetingRecommendList.size(); i++) { + Meeting meeting; + + try { + if (member.getMeetingRecommendation() != null) { + // member.getMeetingRecommendation()이 null이 아닌 경우 + meeting = meetingService.findMeeting(meetingRecommendList.get(i)); + } else { + // member.getMeetingRecommendation()이 null인 경우 + meeting = meetingService.findMeeting((long) i); + } + + Boolean isSearchForEnd = meetingSearchCondition.getIsEnd(); + + if (isSearchForEnd == null || + (meeting.getIsFinished() && isSearchForEnd) || + (!meeting.getIsFinished() && !isSearchForEnd)) { + // 검색 조건이 null이거나, 조건과 일치하는 미팅만 리스트에 추가 + MeetingListSearchDTO meetingListSearchDTO = new MeetingListSearchDTO(meeting, username); + meetingListSearchDTOs.add(meetingListSearchDTO); + } + } catch (BadRequestException e) { + // findMeeting 시 모임이 존재하지 않아 BadRequestException이 발생하면 continue + continue; + } + + } + + return ResponseEntity.ok().body(new JsonResult<>(meetingListSearchDTOs).getData()); + } catch (Exception e) { + return new ResponseEntity<>(e.getMessage(), HttpStatus.BAD_REQUEST); + } + } + +======= +>>>>>>> develop // 홈 화면 조회 // 모임 목록 필터 설정, 목록에 표시될 모임의 숫자 등 // 현재 개설된 모임 목록 @Operation(summary = "홈 화면 조회") @ApiResponse(responseCode = "200", description = "홈 화면 조회 성공", content = { +<<<<<<< HEAD + @Content(schema = @Schema(implementation = MeetingListSearchPageDTO.class)) +======= @Content(schema = @Schema(implementation = MeetingHomeDTO.class)) +>>>>>>> develop }) @GetMapping("/api/moims/home") public ResponseEntity getHomeMoims(@AuthenticationPrincipal CustomOAuth2Member customOAuth2Member, HomeMeetingSearchCondition homeMeetingSearchCondition) { @@ -97,6 +157,77 @@ public ResponseEntity getHomeMoims(@AuthenticationPrincipal CustomOAuth2Membe List categorizedMeetings = new ArrayList<>(); String username = customOAuth2Member.getUsername(); +<<<<<<< HEAD + Member member = memberService.findMember(username); + List categoryRecommendList = gson.fromJson(member.getCategoryRecommendation(), new TypeToken>() {}); + Integer index = homeMeetingSearchCondition.getCategoryLen() * (homeMeetingSearchCondition.getCategoryPage() - 1); + for (int i = 0; i < homeMeetingSearchCondition.getCategoryLen(); i++) { + try { + if (categoryRecommendList != null && index + i < categoryRecommendList.size()) { + + + String categoryName = categoryService.findCategory(categoryRecommendList.get(i + index)).getName(); + List meetings = meetingRepository.findMeetingsByCategoryId(categoryRecommendList.get(i + index)).stream() + .filter(meeting -> { + if (homeMeetingSearchCondition.getIsEnd() != null) { + return homeMeetingSearchCondition.getIsEnd().equals(meeting.getIsFinished()); + } + return true; // isEnd 필터가 없는 경우 모든 모임 포함 + }) + .sorted((meeting1, meeting2) -> { + if (homeMeetingSearchCondition.getOrder() != null) { + switch (homeMeetingSearchCondition.getOrder()) { + case CAPACITY: + return Integer.compare(meeting2.getCapacity(), meeting1.getCapacity()); + case NUMBER: + return Long.compare(meeting2.getId(), meeting1.getId()); + case RECENT: + return meeting2.getMeetingDate().compareTo(meeting1.getMeetingDate()); + default: + return 0; + } + } + return 0; + }) + .limit(homeMeetingSearchCondition.getMeetingLen()) // 각 카테고리당 모임 최대 개수 설정 + .collect(Collectors.toList()); + MeetingHomeDTO meetingHomeDTO = new MeetingHomeDTO(categoryName, meetings.stream() + .map(meeting -> new MeetingHomeSearchDTO(meeting, username)) + .collect(Collectors.toList())); + categorizedMeetings.add(meetingHomeDTO); + } else if (index + i < categoryRecommendList.size()){ + + String categoryName = categoryService.findCategory((long) (i + 1 + index)).getName(); + List meetings = meetingRepository.findMeetingsByCategoryId((long) (i + 1 + index)).stream() + .filter(meeting -> { + if (homeMeetingSearchCondition.getIsEnd() != null) { + return homeMeetingSearchCondition.getIsEnd().equals(meeting.getIsFinished()); + } + return true; // isEnd 필터가 없는 경우 모든 모임 포함 + }) + .sorted((meeting1, meeting2) -> { + if (homeMeetingSearchCondition.getOrder() != null) { + switch (homeMeetingSearchCondition.getOrder()) { + case CAPACITY: + return Integer.compare(meeting2.getCapacity(), meeting1.getCapacity()); + case NUMBER: + return Long.compare(meeting2.getId(), meeting1.getId()); + case RECENT: + return meeting2.getMeetingDate().compareTo(meeting1.getMeetingDate()); + default: + return 0; + } + } + return 0; + }) + .limit(homeMeetingSearchCondition.getMeetingLen()) // 각 카테고리당 모임 최대 개수 설정 + .collect(Collectors.toList()); + MeetingHomeDTO meetingHomeDTO = new MeetingHomeDTO(categoryName, meetings.stream() + .map(meeting -> new MeetingHomeSearchDTO(meeting, username)) + .collect(Collectors.toList())); + categorizedMeetings.add(meetingHomeDTO); + } +======= Member member = memberService.findMember(username); String meetingRecommendString = member.getMeetingRecommendation(); @@ -130,14 +261,21 @@ public ResponseEntity getHomeMoims(@AuthenticationPrincipal CustomOAuth2Membe .map(meeting -> new MeetingHomeSearchDTO(meeting, username)) .collect(Collectors.toList())); categorizedMeetings.add(meetingHomeDTO); +>>>>>>> develop } catch (BadRequestException e) { // 카테고리가 없는 경우 해당 카테고리를 무시하고 다음 카테고리를 조회 continue; } } +<<<<<<< HEAD + Boolean bool = categoryRepository.existsById((long) (homeMeetingSearchCondition.getCategoryLen() * homeMeetingSearchCondition.getCategoryPage())); + MeetingListSearchPageDTO meetingListSearchPageDTO = new MeetingListSearchPageDTO(categorizedMeetings, bool); + return ResponseEntity.ok().body(new JsonResult<>(meetingListSearchPageDTO).getData()); +======= return ResponseEntity.ok().body(new JsonResult<>(categorizedMeetings).getData()); +>>>>>>> develop } catch (Exception e) { return new ResponseEntity<>(e.getMessage(), HttpStatus.BAD_REQUEST); } @@ -190,10 +328,17 @@ public ResponseEntity getMoim(@PathVariable Long moimId, @AuthenticationPrinc @Content(schema = @Schema(implementation = Long.class)) }) @PatchMapping("/api/moims/{moimId}") +<<<<<<< HEAD + public ResponseEntity updateMoim(@PathVariable Long moimId, @AuthenticationPrincipal CustomOAuth2Member customOAuth2Member, @RequestBody MeetingInfoDTO meetingInfoDTO) { + try { + String username = customOAuth2Member.getUsername(); + return ResponseEntity.ok().body(meetingService.editMoim(username, moimId, meetingInfoDTO)); +======= public ResponseEntity updateMoim(@PathVariable Long moimId, @AuthenticationPrincipal CustomOAuth2Member customOAuth2Member, @RequestBody MeetingDomainDTO meetingDomainDTO) { try { String username = customOAuth2Member.getUsername(); return ResponseEntity.ok().body(meetingService.editMoim(username, moimId, meetingDomainDTO)); +>>>>>>> develop } catch (BadRequestException e) { return new ResponseEntity<>(e.getMessage(), HttpStatus.BAD_REQUEST); } @@ -291,7 +436,11 @@ public ResponseEntity updateMoimEmbeddingAll(@AuthenticationPrincipal Cu Member member = memberService.findMember(customOAuth2Member.getUsername()); if (member.getRole().equals("ROLE_ADMIN")) { +<<<<<<< HEAD + meetingService.updateMoimEmbeddingAll(); +======= recommendService.updateMoimEmbeddingAll(); +>>>>>>> develop return ResponseEntity.ok( "Request Sent"); } else { diff --git a/back-end/src/main/java/kr/co/ssalon/web/controller/PaymentController.java b/back-end/src/main/java/kr/co/ssalon/web/controller/PaymentController.java new file mode 100644 index 00000000..eb34810b --- /dev/null +++ b/back-end/src/main/java/kr/co/ssalon/web/controller/PaymentController.java @@ -0,0 +1,278 @@ +package kr.co.ssalon.web.controller; + +import io.swagger.v3.oas.annotations.Hidden; +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.Parameter; +import io.swagger.v3.oas.annotations.media.Content; +import io.swagger.v3.oas.annotations.media.Schema; +import io.swagger.v3.oas.annotations.responses.ApiResponse; +import io.swagger.v3.oas.annotations.tags.Tag; +import jakarta.servlet.http.HttpServletResponse; +import kr.co.ssalon.domain.entity.Meeting; +import kr.co.ssalon.domain.entity.Member; +import kr.co.ssalon.domain.entity.Payment; +import kr.co.ssalon.domain.service.MeetingService; +import kr.co.ssalon.domain.service.MemberService; +import kr.co.ssalon.domain.service.PaymentService; +import kr.co.ssalon.domain.service.ValidationService; +import kr.co.ssalon.kakaopay.KakaoPayProperties; +import kr.co.ssalon.kakaopay.PayService; +import kr.co.ssalon.kakaopay.dto.*; +import kr.co.ssalon.oauth2.CustomOAuth2Member; +import kr.co.ssalon.web.dto.ImageResponseDTO; +import kr.co.ssalon.web.dto.JsonResult; +import kr.co.ssalon.web.dto.MeetingDTO; +import kr.co.ssalon.web.dto.PaymentDTO; +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.apache.coyote.BadRequestException; +import org.springframework.http.ResponseEntity; +import org.springframework.security.core.annotation.AuthenticationPrincipal; +import org.springframework.web.bind.annotation.*; + +import java.util.List; +import java.util.stream.Collectors; + +@Tag(name = "결제") +@Slf4j +@RestController +@RequiredArgsConstructor +public class PaymentController { + private final PaymentService paymentService; + private final MeetingService meetingService; + private final MemberService memberService; + private final KakaoPayProperties kakaoPayProperties; + private final CommonPayInfo commonPayInfo = new CommonPayInfo(); + + // 개최자 광고 게시 비용 결제 +// @PostMapping("/advertisements/{moimId}") +// public ResponseEntity advertisePaymentReady(@AuthenticationPrincipal CustomOAuth2Member customOAuth2Member, @PathVariable("moimId") Long moimId) throws Exception { +// String username = customOAuth2Member.getUsername(); +// Member member = memberService.findMember(username); +// Meeting meeting = meetingService.findMeeting(moimId); +// // 개설자 검증 +// ValidationService.validationCreatorMoim(meeting, member); +// // 결제 중복 검증 +// paymentService.checkPayment(username, moimId); +// int advertiseTotalPaymentSize = paymentService.getAdvertiseTotalPayment().size(); +// PayService payService = new PayService(kakaoPayProperties); +// KakaopayReadyRequestDto dto = KakaopayReadyRequestDto.builder() +// .cid(kakaoPayProperties.getCid()) +// .partnerOrderId(String.valueOf(advertiseTotalPaymentSize)) +// .partnerUserId(kakaoPayProperties.getPartnerUserId()) +// .itemName("상단 광고") +// .quantity(1) +// .totalPayment(10000) +// .taxFreeAmount(0) +// .approvalUrl("http://localhost:8080/advertise/success") +// .cancelUrl("http://localhost:8080/advertise/fail") +// .failUrl("http://localhost:8080/advertise/cancel") +// .build(); +// KakaopayReadyResponseDto kakaopayReadyResponseDto = payService.kakaoPayReady(dto); +// commonPayInfo.setTid(kakaopayReadyResponseDto.getTid()); +// commonPayInfo.setMoimId(moimId); +// commonPayInfo.setUsername(username); +// log.info("{}", kakaopayReadyResponseDto); +// return ResponseEntity.ok().body(kakaopayReadyResponseDto); +// } + + // 광고 결제 승인 +// @GetMapping("/advertise/success") +// public void advertisePaymentApprove(@RequestParam("pg_token") String pgToken, HttpServletResponse response) throws Exception { +// log.info("{}", pgToken); +// // 결제 내역 저장 후 회원가입 -> 가입 후 바로 리다이렉트 << 프론트 처리 +// PayService payService = new PayService(kakaoPayProperties); +// int advertiseTotalPaymentSize = paymentService.getAdvertiseTotalPayment().size(); +// KakaopayApproveRequestDto dto = KakaopayApproveRequestDto.builder() +// .tid(commonPayInfo.getTid()) +// .cid(kakaoPayProperties.getCid()) +// .partnerOrderId(String.valueOf(advertiseTotalPaymentSize)) +// .partnerUserId(kakaoPayProperties.getPartnerUserId()) +// .pgToken(pgToken) +// .build(); +// KakaopayApproveResponseDto kakaopayApproveResponseDto = payService.kakaoPayApprove(dto); +// String username = commonPayInfo.getUsername(); +// +// // 프론트 도메인으로 변경 필요 +// String redirectUrl = "http://localhost:5173"; +// paymentService.checkPayment(username, commonPayInfo.getMoimId()); +// Long id = paymentService.completeAdvertisePayment(username, commonPayInfo.getMoimId(), "광고 가입 완료", kakaopayApproveResponseDto.returnTotal(), commonPayInfo.getTid()); +// response.sendRedirect(redirectUrl); +// } + + // 광고 게시 비용 환불 +// @PostMapping("/advertisements/billings/{userId}/{paymentId}") +// public ResponseEntity advertisePaymentCancel(@PathVariable("userId") Long userId, @PathVariable("paymentId") Long paymentId) throws Exception { +// Payment payment = paymentService.getPayment(paymentId); +// PayService payService = new PayService(kakaoPayProperties); +// KakaopayCancelRequestDto dto = KakaopayCancelRequestDto.builder() +// .cid(kakaoPayProperties.getCid()) +// .tid(payment.getTid()) +// .cancelAmount(payment.getAmount()) +// .cancelTaxFreeAmount(0) +// .build(); +// KakaopayCancelResponseDto kakaopayCancelResponseDto = payService.kakaoPayCancel(dto); +// paymentService.completeAdvertiseRefund(userId, paymentId); +// return ResponseEntity.ok().body(kakaopayCancelResponseDto); +// } +// +// // 광고 게시 비용 결제 내역 조회 +// @GetMapping("/advertisements/billings/{userId}") +// public ResponseEntity getAdvertisePayments(@PathVariable("userId") Long userId) { +// List paymentAll = paymentService.getAdvertisePaymentAll(userId); +// List collect = paymentAll.stream().map(PaymentDTO::new).collect(Collectors.toList()); +// return ResponseEntity.ok().body(new JsonResult<>(collect)); +// } + + + // 모임비가 있는 모임 참가 비용 결제 -> 결제 준비 + @Operation(summary = "모임 참가 비용 결제") + @ApiResponse(responseCode = "200", description = "모임 참가 비용 결제 성공", content = { + @Content(schema = @Schema(implementation = KakaopayReadyResponseDto.class)) + }) + @PostMapping("/api/moims/{moimId}/billings") + public ResponseEntity moimPaymentReady(@AuthenticationPrincipal CustomOAuth2Member customOAuth2Member, @PathVariable("moimId") Long moimId) throws Exception { + String username = customOAuth2Member.getUsername(); + Meeting meeting = meetingService.findMeeting(moimId); + paymentService.checkPayment(username, moimId); + int moimTotalPaymentsSize = paymentService.getMoimsTotalPayment().size(); + PayService payService = new PayService(kakaoPayProperties); + KakaopayReadyRequestDto dto = KakaopayReadyRequestDto.builder() + .cid(kakaoPayProperties.getCid()) + .partnerOrderId(String.valueOf(moimTotalPaymentsSize)) + .partnerUserId(kakaoPayProperties.getPartnerUserId()) + .itemName(meeting.getTitle()) + .quantity(1) + .totalPayment(meeting.getPayment()) + .taxFreeAmount(0) + .approvalUrl("https://ssalon.co.kr/api/payment/success") + .cancelUrl("https://ssalon.co.kr/api/payment/fail") + .failUrl("https://ssalon.co.kr/api/payment/cancel") + .build(); + KakaopayReadyResponseDto kakaopayReadyResponseDto = payService.kakaoPayReady(dto); + commonPayInfo.setTid(kakaopayReadyResponseDto.getTid()); + commonPayInfo.setMoimId(moimId); + commonPayInfo.setUsername(username); + log.info("{}", kakaopayReadyResponseDto); + return ResponseEntity.ok().body(kakaopayReadyResponseDto); + + } + + // 모임 결제 승인 + @GetMapping("/api/payment/success") + @Hidden + public void moimPaymentApprove(@RequestParam("pg_token") String pgToken, HttpServletResponse response) throws Exception { + log.info("{}", pgToken); + // 결제 내역 저장 후 회원가입 -> 가입 후 바로 리다이렉트 << 프론트 처리 + PayService payService = new PayService(kakaoPayProperties); + int moimTotalPaymentsSize = paymentService.getMoimsTotalPayment().size(); + KakaopayApproveRequestDto dto = KakaopayApproveRequestDto.builder() + .tid(commonPayInfo.getTid()) + .cid(kakaoPayProperties.getCid()) + .partnerOrderId(String.valueOf(moimTotalPaymentsSize)) + .partnerUserId(kakaoPayProperties.getPartnerUserId()) + .pgToken(pgToken) + .build(); + KakaopayApproveResponseDto kakaopayApproveResponseDto = payService.kakaoPayApprove(dto); + String username = commonPayInfo.getUsername(); + // 프론트 도메인으로 변경 필요 + String redirectUrl = "https://ssalon.co.kr/web/meeting-info?moimId=" + commonPayInfo.moimId; + paymentService.checkPayment(username, commonPayInfo.getMoimId()); + Long id = paymentService.completeMoimPayment(username, commonPayInfo.getMoimId(), "모임 가입 완료", kakaopayApproveResponseDto.returnTotal(), commonPayInfo.getTid()); + meetingService.join(username, commonPayInfo.getMoimId()); + response.sendRedirect(redirectUrl); + } + + // 모임 참가 비용 환불 (모임 참가 취소, 강튀, 모임 삭제 시 후에 작동되는 부분) + @Operation(summary = "모임 참가 비용 환불") + @ApiResponse(responseCode = "200", description = "모임 참가 비용 환불 성공", content = { + @Content(schema = @Schema(implementation = KakaopayCancelResponseDto.class)) + }) + @DeleteMapping("/api/moims/{moimId}/billings/{paymentId}") + public ResponseEntity moimPaymentCancel(@AuthenticationPrincipal CustomOAuth2Member customOAuth2Member, @PathVariable("moimId") Long moimid, @PathVariable("paymentId") Long paymentId) throws Exception { + Payment payment = paymentService.getPayment(paymentId); + PayService payService = new PayService(kakaoPayProperties); + String username = customOAuth2Member.getUsername(); + KakaopayCancelRequestDto dto = KakaopayCancelRequestDto.builder() + .cid(kakaoPayProperties.getCid()) + .tid(payment.getTid()) + .cancelAmount(payment.getAmount()) + .cancelTaxFreeAmount(0) + .build(); + KakaopayCancelResponseDto kakaopayCancelResponseDto = payService.kakaoPayCancel(dto); + // 환불 + paymentService.completeMoimRefund(username, moimid); + return ResponseEntity.ok().body(kakaopayCancelResponseDto); + } + + @Operation(summary = "특정 사용자의 모임 참가 비용 환불") + @ApiResponse(responseCode = "200", description = "특정 사용자의 모임 참가 비용 환불 성공", content = { + @Content(schema = @Schema(implementation = KakaopayCancelResponseDto.class)) + }) + @DeleteMapping("/api/moims/{moimId}/members/{userId}/billings/{paymentId}") + public ResponseEntity moimMemberPaymentCancel( + @AuthenticationPrincipal CustomOAuth2Member customOAuth2Member, + @PathVariable("moimId") Long moimid, + @PathVariable("paymentId") Long paymentId, + @PathVariable("userId") Long userId + ) throws Exception { + // 개최자인지 확인 + String username = customOAuth2Member.getUsername(); + Member currentUser = memberService.findMember(username); + Meeting meeting = meetingService.findMeeting(moimid); + ValidationService.validationCreatorMoim(meeting, currentUser); + + Payment payment = paymentService.getPayment(paymentId); + PayService payService = new PayService(kakaoPayProperties); + Member member = memberService.findMember(userId); + KakaopayCancelRequestDto dto = KakaopayCancelRequestDto.builder() + .cid(kakaoPayProperties.getCid()) + .tid(payment.getTid()) + .cancelAmount(payment.getAmount()) + .cancelTaxFreeAmount(0) + .build(); + KakaopayCancelResponseDto kakaopayCancelResponseDto = payService.kakaoPayCancel(dto); + // 환불 + paymentService.completeMoimRefund(member.getUsername(), moimid); + return ResponseEntity.ok().body(kakaopayCancelResponseDto); + } + + // 특정 모임에 대한 나의 결제 내역 조회 + @Operation(summary = "특정 모임에 대한 나의 결제 내역 조회") + @ApiResponse(responseCode = "200", description = "특정 모임에 대한 나의 결제 내역 조회 성공") + @GetMapping("/api/moims/{moimId}/me/payment") + public PaymentDTO getPayment(@AuthenticationPrincipal CustomOAuth2Member customOAuth2Member, @PathVariable("moimId") Long moimId) throws BadRequestException { + String username = customOAuth2Member.getUsername(); + Meeting meeting = meetingService.findMeeting(moimId); + + Payment payment = paymentService.findPayment(username, meeting.getId()); + + return new PaymentDTO(payment); + } + + // 해당 모임 참가 비용 결제 내역 조회 + @Operation(summary = "특정 모임에 결제한 참가 비용 조회") + @ApiResponse(responseCode = "200", description = "특정 모임에 결제한 참가 비용 조회 성공", content = { + @Content(schema = @Schema(implementation = PaymentDTO.class)) + }) + @GetMapping("/api/moims/{moimId}/billings") + public ResponseEntity getMoimPayments(@PathVariable("moimId") Long moimId) { + List paymentAll = paymentService.getMoimPaymentAll(moimId); + List collect = paymentAll.stream().map(PaymentDTO::new).collect(Collectors.toList()); + return ResponseEntity.ok().body(new JsonResult<>(collect).getData()); + } + + + @Data + @AllArgsConstructor + @NoArgsConstructor + static class CommonPayInfo { + private String tid; + private String username; + private Long moimId; + } + +} diff --git a/back-end/src/main/java/kr/co/ssalon/web/controller/SearchController.java b/back-end/src/main/java/kr/co/ssalon/web/controller/SearchController.java new file mode 100644 index 00000000..e1808cd9 --- /dev/null +++ b/back-end/src/main/java/kr/co/ssalon/web/controller/SearchController.java @@ -0,0 +1,48 @@ +package kr.co.ssalon.web.controller; + +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.media.Content; +import io.swagger.v3.oas.annotations.media.Schema; +import io.swagger.v3.oas.annotations.responses.ApiResponse; +import io.swagger.v3.oas.annotations.tags.Tag; +import kr.co.ssalon.domain.entity.Meeting; +import kr.co.ssalon.domain.service.MeetingService; +import kr.co.ssalon.oauth2.CustomOAuth2Member; +import kr.co.ssalon.web.dto.JsonResult; +import kr.co.ssalon.web.dto.MeetingListSearchDTO; +import kr.co.ssalon.web.dto.MeetingListSearchPageDTO; +import kr.co.ssalon.web.dto.MeetingSearchCondition; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.apache.coyote.BadRequestException; +import org.springframework.data.domain.Page; +import org.springframework.data.domain.Pageable; +import org.springframework.http.ResponseEntity; +import org.springframework.security.core.annotation.AuthenticationPrincipal; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + +@Tag(name = "검색") +@Slf4j +@RestController +@RequiredArgsConstructor +public class SearchController { + + private final MeetingService meetingService; + + + @Operation(summary = "키워드로 모임 리스트 조회") + @ApiResponse(responseCode = "200", description = "키워드로 모임 리스트 조회 성공", content = { + @Content(schema = @Schema(implementation = MeetingListSearchPageDTO.class)) + }) + @GetMapping("/api/moims/search/keyword") + public ResponseEntity searchTitleByKeyword(@AuthenticationPrincipal CustomOAuth2Member customOAuth2Member, @RequestParam(value ="keyword",required = false) String keyword, Pageable pageable){ + String username = customOAuth2Member.getUsername(); + Page moims = meetingService.searchByKeyword(keyword, pageable); + Page moimsDto = moims.map(meeting -> new MeetingListSearchDTO(meeting, username)); + MeetingListSearchPageDTO meetingListSearchPageDTO = new MeetingListSearchPageDTO(moimsDto); + return ResponseEntity.ok().body(new JsonResult<>(meetingListSearchPageDTO).getData()); + } + +} diff --git a/back-end/src/main/java/kr/co/ssalon/web/controller/UserController.java b/back-end/src/main/java/kr/co/ssalon/web/controller/UserController.java index 29312b7e..cc6cf02e 100644 --- a/back-end/src/main/java/kr/co/ssalon/web/controller/UserController.java +++ b/back-end/src/main/java/kr/co/ssalon/web/controller/UserController.java @@ -94,13 +94,22 @@ public MemberDomainDTO getUserInfoByEmail(@AuthenticationPrincipal CustomOAuth2M @ApiResponse(responseCode = "200", description = "회원 정보 수정 성공"), }) @PatchMapping("/api/users/me/profile") +<<<<<<< HEAD + public MemberDomainDTO update(@AuthenticationPrincipal CustomOAuth2Member customOAuth2Member, @RequestBody MemberDomainDTO additionalInfo) throws BadRequestException { +======= public MemberSignDTO update(@AuthenticationPrincipal CustomOAuth2Member customOAuth2Member, @RequestBody MemberDomainDTO additionalInfo) throws BadRequestException { +>>>>>>> develop String username = customOAuth2Member.getUsername(); // 회원가입(/api/auth/signup) 로직과 일치함 Member currentUser = memberService.signup(username, additionalInfo); +<<<<<<< HEAD + MemberDomainDTO memberDomainDTO = new MemberDomainDTO(currentUser); + return new JsonResult<>(memberDomainDTO).getData(); +======= MemberSignDTO memberSignDTO = new MemberSignDTO(currentUser); return new JsonResult<>(memberSignDTO).getData(); +>>>>>>> develop } /* diff --git a/back-end/src/main/java/kr/co/ssalon/web/controller/admin/AdminMeetingController.java b/back-end/src/main/java/kr/co/ssalon/web/controller/admin/AdminMeetingController.java index 866c406b..c3280fc1 100644 --- a/back-end/src/main/java/kr/co/ssalon/web/controller/admin/AdminMeetingController.java +++ b/back-end/src/main/java/kr/co/ssalon/web/controller/admin/AdminMeetingController.java @@ -15,10 +15,14 @@ import kr.co.ssalon.domain.service.MemberService; import kr.co.ssalon.domain.service.ValidationService; import kr.co.ssalon.oauth2.CustomOAuth2Member; +<<<<<<< HEAD +import kr.co.ssalon.web.dto.*; +======= import kr.co.ssalon.web.dto.JsonResult; import kr.co.ssalon.web.dto.MeetingListSearchDTO; import kr.co.ssalon.web.dto.MeetingListSearchPageDTO; import kr.co.ssalon.web.dto.MeetingSearchCondition; +>>>>>>> develop import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.apache.coyote.BadRequestException; @@ -94,11 +98,19 @@ public ResponseEntity getMoim(@AuthenticationPrincipal CustomOAuth2Member cus @Content(schema = @Schema(implementation = Long.class)) }) @PatchMapping("/api/admin/moims/{moimId}") +<<<<<<< HEAD + public ResponseEntity updateMoim(@PathVariable Long moimId, @AuthenticationPrincipal CustomOAuth2Member customOAuth2Member, @RequestBody MeetingInfoDTO meetingInfoDTO) { + try { + String username = customOAuth2Member.getUsername(); + validationAdmin(username); + return ResponseEntity.ok().body(meetingService.editMoim(moimId, meetingInfoDTO)); +======= public ResponseEntity updateMoim(@PathVariable Long moimId, @AuthenticationPrincipal CustomOAuth2Member customOAuth2Member, @RequestBody MeetingDomainDTO meetingDomainDTO) { try { String username = customOAuth2Member.getUsername(); validationAdmin(username); return ResponseEntity.ok().body(meetingService.editMoim(moimId, meetingDomainDTO)); +>>>>>>> develop } catch (BadRequestException e) { return new ResponseEntity<>(e.getMessage(), HttpStatus.BAD_REQUEST); } diff --git a/back-end/src/main/java/kr/co/ssalon/web/controller/exadvice/ExPaymentControllerAdvice.java b/back-end/src/main/java/kr/co/ssalon/web/controller/exadvice/ExPaymentControllerAdvice.java new file mode 100644 index 00000000..34ab46be --- /dev/null +++ b/back-end/src/main/java/kr/co/ssalon/web/controller/exadvice/ExPaymentControllerAdvice.java @@ -0,0 +1,25 @@ +package kr.co.ssalon.web.controller.exadvice; + +import kr.co.ssalon.web.controller.PaymentController; +import lombok.extern.slf4j.Slf4j; +import org.apache.coyote.BadRequestException; +import org.springframework.http.HttpStatus; +import org.springframework.http.ResponseEntity; +import org.springframework.web.bind.annotation.ExceptionHandler; +import org.springframework.web.bind.annotation.RestControllerAdvice; +import org.springframework.web.client.HttpClientErrorException; + +@Slf4j +@RestControllerAdvice(assignableTypes = PaymentController.class) +public class ExPaymentControllerAdvice { + + @ExceptionHandler(BadRequestException.class) + public ResponseEntity BadRequestExHandle(BadRequestException e) { + return new ResponseEntity<>(e.getMessage(), HttpStatus.BAD_REQUEST); + } + + @ExceptionHandler(HttpClientErrorException.class) + public ResponseEntity HttpClientErrorExHandle(HttpClientErrorException e) { + return new ResponseEntity<>(e.getMessage(), e.getStatusCode()); + } +} diff --git a/back-end/src/main/java/kr/co/ssalon/web/dto/CategoryHomeDTO.java b/back-end/src/main/java/kr/co/ssalon/web/dto/CategoryHomeDTO.java new file mode 100644 index 00000000..3cb15fe5 --- /dev/null +++ b/back-end/src/main/java/kr/co/ssalon/web/dto/CategoryHomeDTO.java @@ -0,0 +1,26 @@ +package kr.co.ssalon.web.dto; + +import jakarta.validation.constraints.NotBlank; +import jakarta.validation.constraints.NotNull; +import kr.co.ssalon.domain.entity.Category; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +@Data +@NoArgsConstructor +@AllArgsConstructor +@Builder +public class CategoryHomeDTO { + @NotNull + private Long id; + @NotBlank + private String name; + + public CategoryHomeDTO(Category category) { + this.id = category.getId(); + this.name = category.getName(); + } + +} diff --git a/back-end/src/main/java/kr/co/ssalon/web/dto/HomeMeetingSearchCondition.java b/back-end/src/main/java/kr/co/ssalon/web/dto/HomeMeetingSearchCondition.java index bba5e7f0..4331ac8a 100644 --- a/back-end/src/main/java/kr/co/ssalon/web/dto/HomeMeetingSearchCondition.java +++ b/back-end/src/main/java/kr/co/ssalon/web/dto/HomeMeetingSearchCondition.java @@ -2,6 +2,10 @@ import io.swagger.v3.oas.annotations.media.Schema; +<<<<<<< HEAD +import kr.co.ssalon.domain.dto.MeetingOrder; +======= +>>>>>>> develop import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; @@ -14,6 +18,21 @@ @Builder public class HomeMeetingSearchCondition { @Schema(description = "조회할 상위 카테고리 숫자", example = "1, 2, 3, 4, ... ") +<<<<<<< HEAD + private Integer categoryLen; + + @Schema(description = "조회할 카테고리 페이지 번호", example = "1, 2, 3, 4, ... ") + private Integer categoryPage; + + @Schema(description = "각 카테고리당 모임 개수") + private Integer meetingLen; + + @Schema(description = "isEnd 필터링", example = "true, false") + private Boolean isEnd; + + @Schema(description = "정렬", example = "CAPACITY, NUMBER, RECENT. 각각 수용인원수, 모임번호, 최신순. 추후 추가 가능성 있음") + private MeetingOrder order; +======= private Long categoryLen; @Schema(description = "각 카테고리당 모임 개수") @@ -21,4 +40,5 @@ public class HomeMeetingSearchCondition { @Schema(description = "isEnd 필터링", example = "true, false") private Boolean isEnd; +>>>>>>> develop } diff --git a/back-end/src/main/java/kr/co/ssalon/web/dto/ImageGenerationDTO.java b/back-end/src/main/java/kr/co/ssalon/web/dto/ImageGenerationDTO.java new file mode 100644 index 00000000..6c1f59e1 --- /dev/null +++ b/back-end/src/main/java/kr/co/ssalon/web/dto/ImageGenerationDTO.java @@ -0,0 +1,16 @@ +package kr.co.ssalon.web.dto; + +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +@Data +@NoArgsConstructor +@AllArgsConstructor +@Builder +public class ImageGenerationDTO { + + String prompt; + Boolean highQuality; +} diff --git a/back-end/src/main/java/kr/co/ssalon/web/dto/MeetingListSearchPageDTO.java b/back-end/src/main/java/kr/co/ssalon/web/dto/MeetingListSearchPageDTO.java index 978b0770..13165839 100644 --- a/back-end/src/main/java/kr/co/ssalon/web/dto/MeetingListSearchPageDTO.java +++ b/back-end/src/main/java/kr/co/ssalon/web/dto/MeetingListSearchPageDTO.java @@ -9,7 +9,10 @@ import java.util.List; @Data +<<<<<<< HEAD +======= @AllArgsConstructor +>>>>>>> develop @NoArgsConstructor @Builder public class MeetingListSearchPageDTO { @@ -20,4 +23,12 @@ public MeetingListSearchPageDTO(Page moims) { this.content = moims.getContent(); this.hasNext = moims.hasNext(); } +<<<<<<< HEAD + + public MeetingListSearchPageDTO(List content, Boolean hasNext) { + this.content = content; + this.hasNext = hasNext; + } +======= +>>>>>>> develop } diff --git a/back-end/src/main/java/kr/co/ssalon/web/dto/PaymentDTO.java b/back-end/src/main/java/kr/co/ssalon/web/dto/PaymentDTO.java index 571d9258..bd6efc3a 100644 --- a/back-end/src/main/java/kr/co/ssalon/web/dto/PaymentDTO.java +++ b/back-end/src/main/java/kr/co/ssalon/web/dto/PaymentDTO.java @@ -20,7 +20,11 @@ public class PaymentDTO { @NotBlank private Long meetingId; @NotBlank +<<<<<<< HEAD + private Integer payment; +======= private Integer amount; +>>>>>>> develop @NotBlank private String purpose; @@ -28,7 +32,11 @@ public PaymentDTO(Payment payment) { this.id = payment.getId(); this.memberId = payment.getMember().getId(); this.meetingId = payment.getMeeting().getId(); +<<<<<<< HEAD + this.payment = payment.getAmount(); +======= this.amount = payment.getAmount(); +>>>>>>> develop this.purpose = payment.getPurpose(); } } diff --git a/back-end/src/main/resources/static/assets/decoration.json b/back-end/src/main/resources/static/assets/decoration.json index 68d368d7..80e0612a 100644 --- a/back-end/src/main/resources/static/assets/decoration.json +++ b/back-end/src/main/resources/static/assets/decoration.json @@ -5,6 +5,54 @@ "version": "6.0.0-rc1", "objects": [ { +<<<<<<< HEAD + "cropX": 0, + "cropY": 0, + "type": "Image", + "version": "6.0.0-rc1", + "originX": "left", + "originY": "top", + "left": 63, + "top": 199.6022, + "width": 333, + "height": 357, + "fill": "#FFFFFF", + "stroke": null, + "strokeWidth": 0, + "strokeDashArray": null, + "strokeLineCap": "butt", + "strokeDashOffset": 0, + "strokeLineJoin": "miter", + "strokeUniform": false, + "strokeMiterLimit": 4, + "scaleX": 0.679, + "scaleY": 0.679, + "angle": 0, + "flipX": false, + "flipY": false, + "opacity": 1, + "shadow": null, + "visible": true, + "backgroundColor": "", + "fillRule": "nonzero", + "paintFirst": "fill", + "globalCompositeOperation": "source-over", + "skewX": 0, + "skewY": 0, + "src": "https://test-bukkit-240415.s3.ap-northeast-2.amazonaws.com/18/ee02fe5b-4f0d-41be-8dfb-5509248cbc51.png", + "crossOrigin": "anonymous", + "filters": [] + }, + { + "fontSize": 40, + "fontWeight": "normal", + "fontFamily": "Roboto", + "fontStyle": "normal", + "lineHeight": 1.16, + "text": "모임 후기를 작성해주세요.", + "charSpacing": 0, + "textAlign": "left", +======= "fontSize": 40, "fontWeight": "normal", "fontFamily": "Jersey 15", @@ -13,6 +61,7 @@ "text": "티켓을\n불러오지\n못했습니다", "charSpacing": 0, "textAlign": "center", +>>>>>>> develop "styles": [], "pathStartOffset": 0, "pathSide": "left", @@ -26,11 +75,19 @@ "version": "6.0.0-rc1", "originX": "left", "originY": "top", +<<<<<<< HEAD + "left": 24, + "top": 123, + "width": 410.932, + "height": 45.2, + "fill": "#FFFFFF", +======= "left": 100, "top": 100, "width": 173, "height": 150.064, "fill": "#FF0000", +>>>>>>> develop "stroke": null, "strokeWidth": 1, "strokeDashArray": null, @@ -39,8 +96,13 @@ "strokeLineJoin": "miter", "strokeUniform": false, "strokeMiterLimit": 4, +<<<<<<< HEAD + "scaleX": 0.75, + "scaleY": 0.75, +======= "scaleX": 1, "scaleY": 1, +>>>>>>> develop "angle": 0, "flipX": false, "flipY": false, diff --git a/back-end/src/main/resources/static/assets/icons/ai_generate.png b/back-end/src/main/resources/static/assets/icons/ai_generate.png new file mode 100644 index 00000000..de18bf55 Binary files /dev/null and b/back-end/src/main/resources/static/assets/icons/ai_generate.png differ diff --git a/back-end/src/main/resources/static/assets/icons/ai_generate_selected.png b/back-end/src/main/resources/static/assets/icons/ai_generate_selected.png new file mode 100644 index 00000000..de18bf55 Binary files /dev/null and b/back-end/src/main/resources/static/assets/icons/ai_generate_selected.png differ diff --git a/back-end/src/main/resources/static/assets/icons/feature-success.png b/back-end/src/main/resources/static/assets/icons/feature-success.png new file mode 100644 index 00000000..48109d8e Binary files /dev/null and b/back-end/src/main/resources/static/assets/icons/feature-success.png differ diff --git a/back-end/src/main/resources/static/assets/icons/settings.png b/back-end/src/main/resources/static/assets/icons/settings.png new file mode 100644 index 00000000..5c54c2ba Binary files /dev/null and b/back-end/src/main/resources/static/assets/icons/settings.png differ diff --git a/back-end/src/main/resources/static/assets/untitled.obj b/back-end/src/main/resources/static/assets/untitled.obj index 795671fa..87c6f573 100644 --- a/back-end/src/main/resources/static/assets/untitled.obj +++ b/back-end/src/main/resources/static/assets/untitled.obj @@ -2,6 +2,156 @@ # www.blender.org mtllib untitled.mtl o Cube +<<<<<<< HEAD +v 60.000000 30.000000 0.500000 +v 55.000000 35.000000 0.500000 +v 59.984589 30.392296 0.500000 +v 59.938442 30.782173 0.500000 +v 59.861851 31.167227 0.500000 +v 59.755283 31.545086 0.500000 +v 59.619396 31.913418 0.500000 +v 59.455032 32.269951 0.500000 +v 59.263199 32.612492 0.500000 +v 59.045086 32.938927 0.500000 +v 58.802029 33.247238 0.500000 +v 58.535534 33.535534 0.500000 +v 58.247238 33.802029 0.500000 +v 57.938927 34.045086 0.500000 +v 57.612492 34.263199 0.500000 +v 57.269951 34.455032 0.500000 +v 56.913418 34.619396 0.500000 +v 56.545086 34.755283 0.500000 +v 56.167229 34.861851 0.500000 +v 55.782173 34.938442 0.500000 +v 55.392296 34.984589 0.500000 +v 55.000000 35.000000 -0.500000 +v 60.000000 30.000000 -0.500000 +v 55.392296 34.984589 -0.500000 +v 55.782173 34.938442 -0.500000 +v 56.167229 34.861851 -0.500000 +v 56.545086 34.755283 -0.500000 +v 56.913418 34.619396 -0.500000 +v 57.269951 34.455032 -0.500000 +v 57.612492 34.263199 -0.500000 +v 57.938927 34.045086 -0.500000 +v 58.247238 33.802029 -0.500000 +v 58.535534 33.535534 -0.500000 +v 58.802029 33.247238 -0.500000 +v 59.045086 32.938927 -0.500000 +v 59.263199 32.612492 -0.500000 +v 59.455032 32.269951 -0.500000 +v 59.619396 31.913418 -0.500000 +v 59.755283 31.545086 -0.500000 +v 59.861851 31.167227 -0.500000 +v 59.938442 30.782173 -0.500000 +v 59.984589 30.392296 -0.500000 +v -55.000000 35.000000 0.500000 +v -60.000000 30.000000 0.500000 +v -55.392296 34.984589 0.500000 +v -55.782173 34.938442 0.500000 +v -56.167229 34.861851 0.500000 +v -56.545086 34.755283 0.500000 +v -56.913418 34.619396 0.500000 +v -57.269951 34.455032 0.500000 +v -57.612492 34.263199 0.500000 +v -57.938927 34.045086 0.500000 +v -58.247238 33.802029 0.500000 +v -58.535534 33.535534 0.500000 +v -58.802029 33.247238 0.500000 +v -59.045086 32.938927 0.500000 +v -59.263199 32.612492 0.500000 +v -59.455032 32.269951 0.500000 +v -59.619396 31.913418 0.500000 +v -59.755283 31.545086 0.500000 +v -59.861851 31.167227 0.500000 +v -59.938442 30.782173 0.500000 +v -59.984589 30.392296 0.500000 +v -60.000000 30.000000 -0.500000 +v -55.000000 35.000000 -0.500000 +v -59.984589 30.392296 -0.500000 +v -59.938442 30.782173 -0.500000 +v -59.861851 31.167227 -0.500000 +v -59.755283 31.545086 -0.500000 +v -59.619396 31.913418 -0.500000 +v -59.455032 32.269951 -0.500000 +v -59.263199 32.612492 -0.500000 +v -59.045086 32.938927 -0.500000 +v -58.802029 33.247238 -0.500000 +v -58.535534 33.535534 -0.500000 +v -58.247238 33.802029 -0.500000 +v -57.938927 34.045086 -0.500000 +v -57.612492 34.263199 -0.500000 +v -57.269951 34.455032 -0.500000 +v -56.913418 34.619396 -0.500000 +v -56.545086 34.755283 -0.500000 +v -56.167229 34.861851 -0.500000 +v -55.782173 34.938442 -0.500000 +v -55.392296 34.984589 -0.500000 +v -60.000000 -30.000000 0.500000 +v -55.000000 -35.000000 0.500000 +v -59.984589 -30.392296 0.500000 +v -59.938442 -30.782173 0.500000 +v -59.861851 -31.167227 0.500000 +v -59.755283 -31.545086 0.500000 +v -59.619396 -31.913418 0.500000 +v -59.455032 -32.269951 0.500000 +v -59.263199 -32.612492 0.500000 +v -59.045086 -32.938927 0.500000 +v -58.802029 -33.247238 0.500000 +v -58.535534 -33.535534 0.500000 +v -58.247238 -33.802029 0.500000 +v -57.938927 -34.045086 0.500000 +v -57.612492 -34.263199 0.500000 +v -57.269951 -34.455032 0.500000 +v -56.913418 -34.619396 0.500000 +v -56.545086 -34.755283 0.500000 +v -56.167229 -34.861851 0.500000 +v -55.782173 -34.938442 0.500000 +v -55.392296 -34.984589 0.500000 +v -55.000000 -35.000000 -0.500000 +v -60.000000 -30.000000 -0.500000 +v -55.392296 -34.984589 -0.500000 +v -55.782173 -34.938442 -0.500000 +v -56.167229 -34.861851 -0.500000 +v -56.545086 -34.755283 -0.500000 +v -56.913418 -34.619396 -0.500000 +v -57.269951 -34.455032 -0.500000 +v -57.612492 -34.263199 -0.500000 +v -57.938927 -34.045086 -0.500000 +v -58.247238 -33.802029 -0.500000 +v -58.535534 -33.535534 -0.500000 +v -58.802029 -33.247238 -0.500000 +v -59.045086 -32.938927 -0.500000 +v -59.263199 -32.612492 -0.500000 +v -59.455032 -32.269951 -0.500000 +v -59.619396 -31.913418 -0.500000 +v -59.755283 -31.545086 -0.500000 +v -59.861851 -31.167227 -0.500000 +v -59.938442 -30.782173 -0.500000 +v -59.984589 -30.392296 -0.500000 +v 55.000000 -35.000000 0.500000 +v 60.000000 -30.000000 0.500000 +v 55.782173 -34.938442 0.500000 +v 56.545086 -34.755283 0.500000 +v 57.269951 -34.455032 0.500000 +v 57.938927 -34.045086 0.500000 +v 58.535534 -33.535534 0.500000 +v 59.045086 -32.938927 0.500000 +v 59.455032 -32.269951 0.500000 +v 59.755283 -31.545086 0.500000 +v 59.938442 -30.782173 0.500000 +v 60.000000 -30.000000 -0.500000 +v 55.000000 -35.000000 -0.500000 +v 59.938442 -30.782173 -0.500000 +v 59.755283 -31.545086 -0.500000 +v 59.455032 -32.269951 -0.500000 +v 59.045086 -32.938927 -0.500000 +v 58.535534 -33.535534 -0.500000 +v 57.938927 -34.045086 -0.500000 +v 57.269951 -34.455032 -0.500000 +v 56.545086 -34.755283 -0.500000 +v 55.782173 -34.938442 -0.500000 +======= v 60.000000 30.000000 1.000000 v 55.000000 35.000000 1.000000 v 59.984589 30.392296 1.000000 @@ -150,6 +300,7 @@ v 57.938927 -34.045086 -1.000000 v 57.269951 -34.455032 -1.000000 v 56.545086 -34.755283 -1.000000 v 55.782173 -34.938442 -1.000000 +>>>>>>> develop vn -0.0000 -0.0000 -1.0000 vn -0.0000 -0.0000 1.0000 vn 0.9992 0.0393 -0.0000 diff --git a/back-end/src/main/resources/static/chunk-C5GF3Q27.js b/back-end/src/main/resources/static/chunk-C5GF3Q27.js new file mode 100644 index 00000000..a9e5ccd4 --- /dev/null +++ b/back-end/src/main/resources/static/chunk-C5GF3Q27.js @@ -0,0 +1,7 @@ +var Yc=Object.create;var Kt=Object.defineProperty,Qc=Object.defineProperties,Zc=Object.getOwnPropertyDescriptor,Kc=Object.getOwnPropertyDescriptors,Jc=Object.getOwnPropertyNames,Zt=Object.getOwnPropertySymbols,Xc=Object.getPrototypeOf,vr=Object.prototype.hasOwnProperty,Yi=Object.prototype.propertyIsEnumerable;var qi=(e,t,n)=>t in e?Kt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wt=(e,t)=>{for(var n in t||={})vr.call(t,n)&&qi(e,n,t[n]);if(Zt)for(var n of Zt(t))Yi.call(t,n)&&qi(e,n,t[n]);return e},Et=(e,t)=>Qc(e,Kc(t));var uy=(e,t)=>{var n={};for(var r in e)vr.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Zt)for(var r of Zt(e))t.indexOf(r)<0&&Yi.call(e,r)&&(n[r]=e[r]);return n};var cy=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ly=(e,t)=>{for(var n in t)Kt(e,n,{get:t[n],enumerable:!0})},el=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Jc(t))!vr.call(e,o)&&o!==n&&Kt(e,o,{get:()=>t[o],enumerable:!(r=Zc(t,o))||r.enumerable});return e};var dy=(e,t,n)=>(n=e!=null?Yc(Xc(e)):{},el(t||!e||!e.__esModule?Kt(n,"default",{value:e,enumerable:!0}):n,e));var tl=(e,t,n)=>new Promise((r,o)=>{var i=u=>{try{a(n.next(u))}catch(c){o(c)}},s=u=>{try{a(n.throw(u))}catch(c){o(c)}},a=u=>u.done?r(u.value):Promise.resolve(u.value).then(i,s);a((n=n.apply(e,t)).next())});var Qi=null;var Ir=1,wr=Symbol("SIGNAL");function C(e){let t=Qi;return Qi=e,t}var Zi={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function nl(e){if(!(br(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Ir)){if(!e.producerMustRecompute(e)&&!Er(e)){e.dirty=!1,e.lastCleanEpoch=Ir;return}e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=Ir}}function Ki(e){return e&&(e.nextProducerIndex=0),C(e)}function Ji(e,t){if(C(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(br(e))for(let n=e.nextProducerIndex;ne.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Er(e){Jt(e);for(let t=0;t0}function Jt(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function rl(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function ol(){throw new Error}var il=ol;function es(e){il=e}function m(e){return typeof e=="function"}function Je(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Xt=Je(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: +${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` + `)}`:"",this.name="UnsubscriptionError",this.errors=n});function Ct(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var P=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(m(r))try{r()}catch(i){t=i instanceof Xt?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{ts(i)}catch(s){t=t??[],s instanceof Xt?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Xt(t)}}add(t){var n;if(t&&t!==this)if(this.closed)ts(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Ct(n,t)}remove(t){let{_finalizers:n}=this;n&&Ct(n,t),t instanceof e&&t._removeParent(this)}};P.EMPTY=(()=>{let e=new P;return e.closed=!0,e})();var _r=P.EMPTY;function en(e){return e instanceof P||e&&"closed"in e&&m(e.remove)&&m(e.add)&&m(e.unsubscribe)}function ts(e){m(e)?e():e.unsubscribe()}var J={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Xe={setTimeout(e,t,...n){let{delegate:r}=Xe;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Xe;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function tn(e){Xe.setTimeout(()=>{let{onUnhandledError:t}=J;if(t)t(e);else throw e})}function bt(){}var ns=Mr("C",void 0,void 0);function rs(e){return Mr("E",void 0,e)}function os(e){return Mr("N",e,void 0)}function Mr(e,t,n){return{kind:e,value:t,error:n}}var Ne=null;function et(e){if(J.useDeprecatedSynchronousErrorHandling){let t=!Ne;if(t&&(Ne={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Ne;if(Ne=null,n)throw r}}else e()}function is(e){J.useDeprecatedSynchronousErrorHandling&&Ne&&(Ne.errorThrown=!0,Ne.error=e)}var Ae=class extends P{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,en(t)&&t.add(this)):this.destination=ul}static create(t,n,r){return new tt(t,n,r)}next(t){this.isStopped?Sr(os(t),this):this._next(t)}error(t){this.isStopped?Sr(rs(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Sr(ns,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},sl=Function.prototype.bind;function xr(e,t){return sl.call(e,t)}var Tr=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){nn(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){nn(r)}else nn(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){nn(n)}}},tt=class extends Ae{constructor(t,n,r){super();let o;if(m(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&J.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&xr(t.next,i),error:t.error&&xr(t.error,i),complete:t.complete&&xr(t.complete,i)}):o=t}this.destination=new Tr(o)}};function nn(e){J.useDeprecatedSynchronousErrorHandling?is(e):tn(e)}function al(e){throw e}function Sr(e,t){let{onStoppedNotification:n}=J;n&&Xe.setTimeout(()=>n(e,t))}var ul={closed:!0,next:bt,error:al,complete:bt};var nt=typeof Symbol=="function"&&Symbol.observable||"@@observable";function z(e){return e}function cl(...e){return Nr(e)}function Nr(e){return e.length===0?z:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var b=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=dl(n)?n:new tt(n,r,o);return et(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=ss(r),new r((o,i)=>{let s=new tt({next:a=>{try{n(a)}catch(u){i(u),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[nt](){return this}pipe(...n){return Nr(n)(this)}toPromise(n){return n=ss(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function ss(e){var t;return(t=e??J.Promise)!==null&&t!==void 0?t:Promise}function ll(e){return e&&m(e.next)&&m(e.error)&&m(e.complete)}function dl(e){return e&&e instanceof Ae||ll(e)&&en(e)}function Ar(e){return m(e?.lift)}function w(e){return t=>{if(Ar(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function v(e,t,n,r,o){return new Or(e,t,n,r,o)}var Or=class extends Ae{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){t.error(u)}}:super._next,this._error=o?function(a){try{o(a)}catch(u){t.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function Fr(){return w((e,t)=>{let n=null;e._refCount++;let r=v(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var Rr=class extends b{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Ar(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new P;let n=this.getSubject();t.add(this.source.subscribe(v(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=P.EMPTY)}return t}refCount(){return Fr()(this)}};var as=Je(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ye=(()=>{class e extends b{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new rn(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new as}next(n){et(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){et(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){et(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?_r:(this.currentObservers=null,i.push(n),new P(()=>{this.currentObservers=null,Ct(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new b;return n.source=this,n}}return e.create=(t,n)=>new rn(t,n),e})(),rn=class extends ye{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:_r}};var _t=class extends ye{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var Mt=new b(e=>e.complete());function us(e){return e&&m(e.schedule)}function cs(e){return e[e.length-1]}function on(e){return m(cs(e))?e.pop():void 0}function De(e){return us(cs(e))?e.pop():void 0}function ds(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(l){try{c(r.next(l))}catch(d){s(d)}}function u(l){try{c(r.throw(l))}catch(d){s(d)}}function c(l){l.done?i(l.value):o(l.value).then(a,u)}c((r=r.apply(e,t||[])).next())})}function ls(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Oe(e){return this instanceof Oe?(this.v=e,this):new Oe(e)}function fs(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){r[f]&&(o[f]=function(p){return new Promise(function(h,E){i.push([f,p,h,E])>1||a(f,p)})})}function a(f,p){try{u(r[f](p))}catch(h){d(i[0][3],h)}}function u(f){f.value instanceof Oe?Promise.resolve(f.value.v).then(c,l):d(i[0][2],f)}function c(f){a("next",f)}function l(f){a("throw",f)}function d(f,p){f(p),i.shift(),i.length&&a(i[0][0],i[0][1])}}function ps(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof ls=="function"?ls(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,u){s=e[i](s),o(a,u,s.done,s.value)})}}function o(i,s,a,u){Promise.resolve(u).then(function(c){i({value:c,done:a})},s)}}var sn=e=>e&&typeof e.length=="number"&&typeof e!="function";function an(e){return m(e?.then)}function un(e){return m(e[nt])}function cn(e){return Symbol.asyncIterator&&m(e?.[Symbol.asyncIterator])}function ln(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function fl(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var dn=fl();function fn(e){return m(e?.[dn])}function pn(e){return fs(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Oe(n.read());if(o)return yield Oe(void 0);yield yield Oe(r)}}finally{n.releaseLock()}})}function hn(e){return m(e?.getReader)}function O(e){if(e instanceof b)return e;if(e!=null){if(un(e))return pl(e);if(sn(e))return hl(e);if(an(e))return gl(e);if(cn(e))return hs(e);if(fn(e))return ml(e);if(hn(e))return yl(e)}throw ln(e)}function pl(e){return new b(t=>{let n=e[nt]();if(m(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function hl(e){return new b(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,tn)})}function ml(e){return new b(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function hs(e){return new b(t=>{Dl(e,t).catch(n=>t.error(n))})}function yl(e){return hs(pn(e))}function Dl(e,t){var n,r,o,i;return ds(this,void 0,void 0,function*(){try{for(n=ps(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function H(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function gn(e,t=0){return w((n,r)=>{n.subscribe(v(r,o=>H(r,e,()=>r.next(o),t),()=>H(r,e,()=>r.complete(),t),o=>H(r,e,()=>r.error(o),t)))})}function mn(e,t=0){return w((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function gs(e,t){return O(e).pipe(mn(t),gn(t))}function ms(e,t){return O(e).pipe(mn(t),gn(t))}function ys(e,t){return new b(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Ds(e,t){return new b(n=>{let r;return H(n,t,()=>{r=e[dn](),H(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>m(r?.return)&&r.return()})}function yn(e,t){if(!e)throw new Error("Iterable cannot be null");return new b(n=>{H(n,t,()=>{let r=e[Symbol.asyncIterator]();H(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function vs(e,t){return yn(pn(e),t)}function Is(e,t){if(e!=null){if(un(e))return gs(e,t);if(sn(e))return ys(e,t);if(an(e))return ms(e,t);if(cn(e))return yn(e,t);if(fn(e))return Ds(e,t);if(hn(e))return vs(e,t)}throw ln(e)}function ve(e,t){return t?Is(e,t):O(e)}function vl(...e){let t=De(e);return ve(e,t)}function Il(e,t){let n=m(e)?e:()=>e,r=o=>o.error(n());return new b(t?o=>t.schedule(r,0,o):r)}function wl(e){return!!e&&(e instanceof b||m(e.lift)&&m(e.subscribe))}var Fe=Je(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function le(e,t){return w((n,r)=>{let o=0;n.subscribe(v(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:El}=Array;function Cl(e,t){return El(t)?e(...t):e(t)}function Dn(e){return le(t=>Cl(e,t))}var{isArray:bl}=Array,{getPrototypeOf:_l,prototype:Ml,keys:xl}=Object;function vn(e){if(e.length===1){let t=e[0];if(bl(t))return{args:t,keys:null};if(Sl(t)){let n=xl(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function Sl(e){return e&&typeof e=="object"&&_l(e)===Ml}function In(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Tl(...e){let t=De(e),n=on(e),{args:r,keys:o}=vn(e);if(r.length===0)return ve([],t);let i=new b(Nl(r,t,o?s=>In(o,s):z));return n?i.pipe(Dn(n)):i}function Nl(e,t,n=z){return r=>{ws(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let u=0;u{let c=ve(e[u],t),l=!1;c.subscribe(v(r,d=>{i[u]=d,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function ws(e,t,n){e?H(n,e,t):t()}function Es(e,t,n,r,o,i,s,a){let u=[],c=0,l=0,d=!1,f=()=>{d&&!u.length&&!c&&t.complete()},p=E=>c{i&&t.next(E),c++;let R=!1;O(n(E,l++)).subscribe(v(t,N=>{o?.(N),i?p(N):t.next(N)},()=>{R=!0},void 0,()=>{if(R)try{for(c--;u.length&&ch(N)):h(N)}f()}catch(N){t.error(N)}}))};return e.subscribe(v(t,p,()=>{d=!0,f()})),()=>{a?.()}}function Re(e,t,n=1/0){return m(t)?Re((r,o)=>le((i,s)=>t(r,i,o,s))(O(e(r,o))),n):(typeof t=="number"&&(n=t),w((r,o)=>Es(r,o,e,n)))}function Cs(e=1/0){return Re(z,e)}function bs(){return Cs(1)}function wn(...e){return bs()(ve(e,De(e)))}function Al(e){return new b(t=>{O(e()).subscribe(t)})}function Ol(...e){let t=on(e),{args:n,keys:r}=vn(e),o=new b(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),u=s,c=s;for(let l=0;l{d||(d=!0,c--),a[l]=f},()=>u--,void 0,()=>{(!u||!d)&&(c||i.next(r?In(r,a):a),i.complete())}))}});return t?o.pipe(Dn(t)):o}function xt(e,t){return w((n,r)=>{let o=0;n.subscribe(v(r,i=>e.call(t,i,o++)&&r.next(i)))})}function _s(e){return w((t,n)=>{let r=null,o=!1,i;r=t.subscribe(v(n,void 0,void 0,s=>{i=O(e(s,_s(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function Ms(e,t,n,r,o){return(i,s)=>{let a=n,u=t,c=0;i.subscribe(v(s,l=>{let d=c++;u=a?e(u,l,d):(a=!0,l),r&&s.next(u)},o&&(()=>{a&&s.next(u),s.complete()})))}}function Fl(e,t){return m(t)?Re(e,t,1):Re(e,1)}function St(e){return w((t,n)=>{let r=!1;t.subscribe(v(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function Pr(e){return e<=0?()=>Mt:w((t,n)=>{let r=0;t.subscribe(v(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Rl(e){return le(()=>e)}function En(e=Pl){return w((t,n)=>{let r=!1;t.subscribe(v(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function Pl(){return new Fe}function kl(e){return w((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function xs(e,t){let n=arguments.length>=2;return r=>r.pipe(e?xt((o,i)=>e(o,i,r)):z,Pr(1),n?St(t):En(()=>new Fe))}function kr(e){return e<=0?()=>Mt:w((t,n)=>{let r=[];t.subscribe(v(n,o=>{r.push(o),e{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function Ll(e,t){let n=arguments.length>=2;return r=>r.pipe(e?xt((o,i)=>e(o,i,r)):z,kr(1),n?St(t):En(()=>new Fe))}function jl(e,t){return w(Ms(e,t,arguments.length>=2,!0))}function Vl(...e){let t=De(e);return w((n,r)=>{(t?wn(e,n,t):wn(e,n)).subscribe(r)})}function Bl(e,t){return w((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(v(r,u=>{o?.unsubscribe();let c=0,l=i++;O(e(u,l)).subscribe(o=v(r,d=>r.next(t?t(u,d,l,c++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function $l(e){return w((t,n)=>{O(e).subscribe(v(n,()=>n.complete(),bt)),!n.closed&&t.subscribe(n)})}function Hl(e,t,n){let r=m(e)||t||n?{next:e,error:t,complete:n}:e;return r?w((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(v(i,u=>{var c;(c=r.next)===null||c===void 0||c.call(r,u),i.next(u)},()=>{var u;a=!1,(u=r.complete)===null||u===void 0||u.call(r),i.complete()},u=>{var c;a=!1,(c=r.error)===null||c===void 0||c.call(r,u),i.error(u)},()=>{var u,c;a&&((u=r.unsubscribe)===null||u===void 0||u.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):z}var ma="https://g.co/ng/security#xss",x=class extends Error{constructor(t,n){super(ya(t,n)),this.code=t}};function ya(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function Bt(e){return{toString:e}.toString()}var Cn="__parameters__";function Ul(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function Da(e,t,n){return Bt(()=>{let r=Ul(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(u,c,l){let d=u.hasOwnProperty(Cn)?u[Cn]:Object.defineProperty(u,Cn,{value:[]})[Cn];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),u}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var we=globalThis;function S(e){for(let t in e)if(e[t]===S)return t;throw Error("Could not find renamed property on target object.")}function Gl(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function V(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(V).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(` +`);return n===-1?t:t.substring(0,n)}function Ss(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var zl=S({__forward_ref__:S});function va(e){return e.__forward_ref__=va,e.toString=function(){return V(this())},e}function j(e){return Ia(e)?e():e}function Ia(e){return typeof e=="function"&&e.hasOwnProperty(zl)&&e.__forward_ref__===va}function A(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function wa(e){return{providers:e.providers||[],imports:e.imports||[]}}function tr(e){return Ts(e,Ea)||Ts(e,Ca)}function sC(e){return tr(e)!==null}function Ts(e,t){return e.hasOwnProperty(t)?e[t]:null}function Wl(e){let t=e&&(e[Ea]||e[Ca]);return t||null}function Ns(e){return e&&(e.hasOwnProperty(As)||e.hasOwnProperty(ql))?e[As]:null}var Ea=S({\u0275prov:S}),As=S({\u0275inj:S}),Ca=S({ngInjectableDef:S}),ql=S({ngInjectorDef:S}),T=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=A({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function ba(e){return e&&!!e.\u0275providers}var Yl=S({\u0275cmp:S}),Ql=S({\u0275dir:S}),Zl=S({\u0275pipe:S}),Kl=S({\u0275mod:S}),Pn=S({\u0275fac:S}),Tt=S({__NG_ELEMENT_ID__:S}),Os=S({__NG_ENV_ID__:S});function $t(e){return typeof e=="string"?e:e==null?"":String(e)}function Jl(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():$t(e)}function Xl(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new x(-200,e)}function ti(e,t){throw new x(-201,!1)}var I=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(I||{}),Jr;function _a(){return Jr}function q(e){let t=Jr;return Jr=e,t}function Ma(e,t,n){let r=tr(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&I.Optional)return null;if(t!==void 0)return t;ti(e,"Injector")}var ed={},Nt=ed,Xr="__NG_DI_FLAG__",kn="ngTempTokenPath",td="ngTokenPath",nd=/\n/gm,rd="\u0275",Fs="__source",st;function od(){return st}function Ie(e){let t=st;return st=e,t}function id(e,t=I.Default){if(st===void 0)throw new x(-203,!1);return st===null?Ma(e,void 0,t):st.get(e,t&I.Optional?null:void 0,t)}function U(e,t=I.Default){return(_a()||id)(j(e),t)}function _(e,t=I.Default){return U(e,nr(t))}function nr(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function eo(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):V(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(nd,` + `)}`}var cd=xa(Da("Optional"),8);var ld=xa(Da("SkipSelf"),4);function ut(e,t){let n=e.hasOwnProperty(Pn);return n?e[Pn]:null}function dd(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rArray.isArray(n)?ni(n,t):t(n))}function Sa(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ln(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function pd(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function hd(e,t,n){let r=Ht(e,t);return r>=0?e[r|1]=n:(r=~r,pd(e,r,t,n)),r}function Lr(e,t){let n=Ht(e,t);if(n>=0)return e[n|1]}function Ht(e,t){return gd(e,t,1)}function gd(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<t){s=i-1;break}}}for(;i-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),r&2&&c!==d){if(X(r))return!1;s=!0}}}}return X(r)||s}function X(e){return(e&1)===0}function Ed(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!X(s)&&(t+=Ps(i,o),o=""),r=s,i=i||!X(r);n++}return o!==""&&(t+=Ps(i,o)),t}function xd(e){return e.map(Md).join(",")}function Sd(e){let t=[],n=[],r=1,o=2;for(;r{let t=La(e),n=Et(wt({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Aa.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||At.Emulated,styles:e.styles||Y,_:null,schemas:e.schemas||null,tView:null,id:""});ja(n);let r=e.dependencies;return n.directiveDefs=Ls(r,!1),n.pipeDefs=Ls(r,!0),n.id=Od(n),n})}function Td(e){return je(e)||Ra(e)}function Nd(e){return e!==null}function Fa(e){return Bt(()=>({type:e.type,bootstrap:e.bootstrap||Y,declarations:e.declarations||Y,imports:e.imports||Y,exports:e.exports||Y,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function ks(e,t){if(e==null)return ct;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=B.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==B.None?[r,a]:r,t[i]=s):n[i]=r}return n}function Ut(e){return Bt(()=>{let t=La(e);return ja(t),t})}function je(e){return e[Yl]||null}function Ra(e){return e[Ql]||null}function Pa(e){return e[Zl]||null}function Ad(e){let t=je(e)||Ra(e)||Pa(e);return t!==null?t.standalone:!1}function ka(e,t){let n=e[Kl]||null;if(!n&&t===!0)throw new Error(`Type ${V(e)} does not have '\u0275mod' property.`);return n}function La(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||ct,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||Y,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:ks(e.inputs,t),outputs:ks(e.outputs),debugInfo:null}}function ja(e){e.features?.forEach(t=>t(e))}function Ls(e,t){if(!e)return null;let n=t?Pa:Td;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(Nd)}function Od(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function Fd(e){return{\u0275providers:e}}function Rd(...e){return{\u0275providers:Va(!0,e),\u0275fromNgModule:!0}}function Va(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return ni(t,s=>{let a=s;no(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Ba(o,i),n}function Ba(e,t){for(let n=0;n{t(i,r)})}}function no(e,t,n,r){if(e=j(e),!e)return!1;let o=null,i=Ns(e),s=!i&&je(e);if(!i&&!s){let u=e.ngModule;if(i=Ns(u),i)o=u;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)no(c,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let c;try{ni(i.imports,l=>{no(l,t,n,r)&&(c||=[],c.push(l))})}finally{}c!==void 0&&Ba(c,t)}if(!a){let c=ut(o)||(()=>new o);t({provide:o,useFactory:c,deps:Y},o),t({provide:Na,useValue:o,multi:!0},o),t({provide:jn,useValue:()=>U(o),multi:!0},o)}let u=i.providers;if(u!=null&&!a){let c=e;oi(u,l=>{t(l,c)})}}else return!1;return o!==e&&e.providers!==void 0}function oi(e,t){for(let n of e)ba(n)&&(n=n.\u0275providers),Array.isArray(n)?oi(n,t):t(n)}var Pd=S({provide:String,useValue:S});function $a(e){return e!==null&&typeof e=="object"&&Pd in e}function kd(e){return!!(e&&e.useExisting)}function Ld(e){return!!(e&&e.useFactory)}function lt(e){return typeof e=="function"}function jd(e){return!!e.useClass}var Ha=new T(""),Tn={},Vd={},jr;function ii(){return jr===void 0&&(jr=new Vn),jr}var Ce=class{},Ft=class extends Ce{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,oo(t,s=>this.processProvider(s)),this.records.set(Ta,rt(void 0,this)),o.has("environment")&&this.records.set(Ce,rt(void 0,this));let i=this.records.get(Ha);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Na,Y,I.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=C(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),C(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=Ie(this),r=q(void 0),o;try{return t()}finally{Ie(n),q(r)}}get(t,n=Nt,r=I.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Os))return t[Os](this);r=nr(r);let o,i=Ie(this),s=q(void 0);try{if(!(r&I.SkipSelf)){let u=this.records.get(t);if(u===void 0){let c=Gd(t)&&tr(t);c&&this.injectableDefInScope(c)?u=rt(ro(t),Tn):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u)}let a=r&I.Self?ii():this.parent;return n=r&I.Optional&&n===Nt?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[kn]=a[kn]||[]).unshift(V(t)),i)throw a;return ad(a,t,"R3InjectorError",this.source)}else throw a}finally{q(s),Ie(i)}}resolveInjectorInitializers(){let t=C(null),n=Ie(this),r=q(void 0),o;try{let i=this.get(jn,Y,I.Self);for(let s of i)s()}finally{Ie(n),q(r),C(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(V(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new x(205,!1)}processProvider(t){t=j(t);let n=lt(t)?t:j(t&&t.provide),r=$d(t);if(!lt(t)&&t.multi===!0){let o=this.records.get(n);o||(o=rt(void 0,Tn,!0),o.factory=()=>eo(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=C(null);try{return n.value===Tn&&(n.value=Vd,n.value=n.factory()),typeof n.value=="object"&&n.value&&Ud(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{C(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=j(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function ro(e){let t=tr(e),n=t!==null?t.factory:ut(e);if(n!==null)return n;if(e instanceof T)throw new x(204,!1);if(e instanceof Function)return Bd(e);throw new x(204,!1)}function Bd(e){if(e.length>0)throw new x(204,!1);let n=Wl(e);return n!==null?()=>n.factory(e):()=>new e}function $d(e){if($a(e))return rt(void 0,e.useValue);{let t=Ua(e);return rt(t,Tn)}}function Ua(e,t,n){let r;if(lt(e)){let o=j(e);return ut(o)||ro(o)}else if($a(e))r=()=>j(e.useValue);else if(Ld(e))r=()=>e.useFactory(...eo(e.deps||[]));else if(kd(e))r=()=>U(j(e.useExisting));else{let o=j(e&&(e.useClass||e.provide));if(Hd(e))r=()=>new o(...eo(e.deps));else return ut(o)||ro(o)}return r}function rt(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Hd(e){return!!e.deps}function Ud(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Gd(e){return typeof e=="function"||typeof e=="object"&&e instanceof T}function oo(e,t){for(let n of e)Array.isArray(n)?oo(n,t):n&&ba(n)?oo(n.\u0275providers,t):t(n)}function uC(e,t){e instanceof Ft&&e.assertNotDestroyed();let n,r=Ie(e),o=q(void 0);try{return t()}finally{Ie(r),q(o)}}function zd(){return _a()!==void 0||od()!=null}function Wd(e){return typeof e=="function"}var he=0,D=1,g=2,k=3,ee=4,re=5,Bn=6,Rt=7,te=8,dt=9,ne=10,F=11,Pt=12,js=13,mt=14,ae=15,Gt=16,ot=17,de=18,rr=19,Ga=20,Ee=21,Vr=22,Ve=23,fe=25,za=1;var Be=7,$n=8,ft=9,W=10,si=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(si||{});function ke(e){return Array.isArray(e)&&typeof e[za]=="object"}function ge(e){return Array.isArray(e)&&e[za]===!0}function ai(e){return(e.flags&4)!==0}function or(e){return e.componentOffset>-1}function ir(e){return(e.flags&1)===1}function be(e){return!!e.template}function qd(e){return(e[g]&512)!==0}var io=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Wa(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function ui(){return qa}function qa(e){return e.type.prototype.ngOnChanges&&(e.setInput=Qd),Yd}ui.ngInherit=!0;function Yd(){let e=Qa(this),t=e?.current;if(t){let n=e.previous;if(n===ct)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Qd(e,t,n,r,o){let i=this.declaredInputs[r],s=Qa(e)||Zd(e,{previous:ct,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[i];a[i]=new io(c&&c.currentValue,n,u===ct),Wa(e,t,o,n)}var Ya="__ngSimpleChanges__";function Qa(e){return e[Ya]||null}function Zd(e,t){return e[Ya]=t}var Vs=null;var ie=function(e,t,n){Vs?.(e,t,n)},Za="svg",Kd="math",Jd=!1;function Xd(){return Jd}function ue(e){for(;Array.isArray(e);)e=e[he];return e}function Ka(e,t){return ue(t[e])}function Z(e,t){return ue(t[e.index])}function Ja(e,t){return e.data[t]}function xe(e,t){let n=t[e];return ke(n)?n:n[he]}function ef(e){return(e[g]&4)===4}function ci(e){return(e[g]&128)===128}function tf(e){return ge(e[k])}function pt(e,t){return t==null?null:e[t]}function Xa(e){e[ot]=0}function nf(e){e[g]&1024||(e[g]|=1024,ci(e)&&kt(e))}function rf(e,t){for(;e>0;)t=t[mt],e--;return t}function li(e){return!!(e[g]&9216||e[Ve]?.dirty)}function so(e){e[ne].changeDetectionScheduler?.notify(1),li(e)?kt(e):e[g]&64&&(Xd()?(e[g]|=1024,kt(e)):e[ne].changeDetectionScheduler?.notify())}function kt(e){e[ne].changeDetectionScheduler?.notify();let t=Lt(e);for(;t!==null&&!(t[g]&8192||(t[g]|=8192,!ci(t)));)t=Lt(t)}function eu(e,t){if((e[g]&256)===256)throw new x(911,!1);e[Ee]===null&&(e[Ee]=[]),e[Ee].push(t)}function of(e,t){if(e[Ee]===null)return;let n=e[Ee].indexOf(t);n!==-1&&e[Ee].splice(n,1)}function Lt(e){let t=e[k];return ge(t)?t[k]:t}var y={lFrame:au(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function sf(){return y.lFrame.elementDepthCount}function af(){y.lFrame.elementDepthCount++}function uf(){y.lFrame.elementDepthCount--}function tu(){return y.bindingsEnabled}function cf(){return y.skipHydrationRootTNode!==null}function lf(e){return y.skipHydrationRootTNode===e}function df(){y.skipHydrationRootTNode=null}function M(){return y.lFrame.lView}function L(){return y.lFrame.tView}function cC(e){return y.lFrame.contextLView=e,e[te]}function lC(e){return y.lFrame.contextLView=null,e}function G(){let e=nu();for(;e!==null&&e.type===64;)e=e.parent;return e}function nu(){return y.lFrame.currentTNode}function ff(){let e=y.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function qe(e,t){let n=y.lFrame;n.currentTNode=e,n.isParent=t}function di(){return y.lFrame.isParent}function ru(){y.lFrame.isParent=!1}function pf(){let e=y.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function hf(e){return y.lFrame.bindingIndex=e}function sr(){return y.lFrame.bindingIndex++}function gf(e){let t=y.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function mf(){return y.lFrame.inI18n}function yf(e,t){let n=y.lFrame;n.bindingIndex=n.bindingRootIndex=e,ao(t)}function Df(){return y.lFrame.currentDirectiveIndex}function ao(e){y.lFrame.currentDirectiveIndex=e}function vf(e){let t=y.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function ou(){return y.lFrame.currentQueryIndex}function fi(e){y.lFrame.currentQueryIndex=e}function If(e){let t=e[D];return t.type===2?t.declTNode:t.type===1?e[re]:null}function iu(e,t,n){if(n&I.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&I.Host);)if(o=If(i),o===null||(i=i[mt],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=y.lFrame=su();return r.currentTNode=t,r.lView=e,!0}function pi(e){let t=su(),n=e[D];y.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function su(){let e=y.lFrame,t=e===null?null:e.child;return t===null?au(e):t}function au(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function uu(){let e=y.lFrame;return y.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var cu=uu;function hi(){let e=uu();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function wf(e){return(y.lFrame.contextLView=rf(e,y.lFrame.contextLView))[te]}function yt(){return y.lFrame.selectedIndex}function $e(e){y.lFrame.selectedIndex=e}function gi(){let e=y.lFrame;return Ja(e.tView,e.selectedIndex)}function dC(){y.lFrame.currentNamespace=Za}function fC(){Ef()}function Ef(){y.lFrame.currentNamespace=null}function Cf(){return y.lFrame.currentNamespace}var lu=!0;function ar(){return lu}function ur(e){lu=e}function bf(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=qa(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function cr(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[u]<0&&(e[ot]+=65536),(a>14>16&&(e[g]&3)===t&&(e[g]+=16384,Bs(a,i)):Bs(a,i)}var at=-1,He=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function Mf(e){return e instanceof He}function xf(e){return(e.flags&8)!==0}function Sf(e){return(e.flags&16)!==0}function fu(e){return e!==at}function Hn(e){return e&32767}function Tf(e){return e>>16}function Un(e,t){let n=Tf(e),r=t;for(;n>0;)r=r[mt],n--;return r}var uo=!0;function $s(e){let t=uo;return uo=e,t}var Nf=256,pu=Nf-1,hu=5,Af=0,se={};function Of(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Tt)&&(r=n[Tt]),r==null&&(r=n[Tt]=Af++);let o=r&pu,i=1<>hu)]|=i}function Gn(e,t){let n=gu(e,t);if(n!==-1)return n;let r=t[D];r.firstCreatePass&&(e.injectorIndex=t.length,$r(r.data,e),$r(t,null),$r(r.blueprint,null));let o=mi(e,t),i=e.injectorIndex;if(fu(o)){let s=Hn(o),a=Un(o,t),u=a[D].data;for(let c=0;c<8;c++)t[i+c]=a[s+c]|u[s+c]}return t[i+8]=o,i}function $r(e,t){e.push(0,0,0,0,0,0,0,0,t)}function gu(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function mi(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=Iu(o),r===null)return at;if(n++,o=o[mt],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return at}function co(e,t,n){Of(e,t,n)}function mu(e,t,n){if(n&I.Optional||e!==void 0)return e;ti(t,"NodeInjector")}function yu(e,t,n,r){if(n&I.Optional&&r===void 0&&(r=null),!(n&(I.Self|I.Host))){let o=e[dt],i=q(void 0);try{return o?o.get(t,r,n&I.Optional):Ma(t,r,n&I.Optional)}finally{q(i)}}return mu(r,t,n)}function Du(e,t,n,r=I.Default,o){if(e!==null){if(t[g]&2048&&!(r&I.Self)){let s=kf(e,t,n,r,se);if(s!==se)return s}let i=vu(e,t,n,r,se);if(i!==se)return i}return yu(t,n,r,o)}function vu(e,t,n,r,o){let i=Rf(n);if(typeof i=="function"){if(!iu(t,e,r))return r&I.Host?mu(o,n,r):yu(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&I.Optional))ti(n);else return s}finally{cu()}}else if(typeof i=="number"){let s=null,a=gu(e,t),u=at,c=r&I.Host?t[ae][re]:null;for((a===-1||r&I.SkipSelf)&&(u=a===-1?mi(e,t):t[a+8],u===at||!Us(r,!1)?a=-1:(s=t[D],a=Hn(u),t=Un(u,t)));a!==-1;){let l=t[D];if(Hs(i,a,l.data)){let d=Ff(a,t,n,s,r,c);if(d!==se)return d}u=t[a+8],u!==at&&Us(r,t[D].data[a+8]===c)&&Hs(i,a,t)?(s=l,a=Hn(u),t=Un(u,t)):a=-1}}return o}function Ff(e,t,n,r,o,i){let s=t[D],a=s.data[e+8],u=r==null?or(a)&&uo:r!=s&&(a.type&3)!==0,c=o&I.Host&&i===a,l=On(a,s,n,u,c);return l!==null?Ue(t,s,l,a):se}function On(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,u=e.directiveStart,c=e.directiveEnd,l=i>>20,d=r?a:a+l,f=o?a+l:c;for(let p=d;p=u&&h.type===n)return p}if(o){let p=s[u];if(p&&be(p)&&p.type===n)return u}return null}function Ue(e,t,n,r){let o=e[n],i=t.data;if(Mf(o)){let s=o;s.resolving&&Xl(Jl(i[n]));let a=$s(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?q(s.injectImpl):null,l=iu(e,r,I.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&bf(n,i[n],t)}finally{c!==null&&q(c),$s(a),s.resolving=!1,cu()}}return o}function Rf(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Tt)?e[Tt]:void 0;return typeof t=="number"?t>=0?t&pu:Pf:t}function Hs(e,t,n){let r=1<>hu)]&r)}function Us(e,t){return!(e&I.Self)&&!(e&I.Host&&t)}var Le=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Du(this._tNode,this._lView,t,nr(r),n)}};function Pf(){return new Le(G(),M())}function pC(e){return Bt(()=>{let t=e.prototype.constructor,n=t[Pn]||lo(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Pn]||lo(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function lo(e){return Ia(e)?()=>{let t=lo(j(e));return t&&t()}:ut(e)}function kf(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[g]&2048&&!(s[g]&512);){let a=vu(i,s,n,r|I.Self,se);if(a!==se)return a;let u=i.parent;if(!u){let c=s[Ga];if(c){let l=c.get(n,se,r);if(l!==se)return l}u=Iu(s),s=s[mt]}i=u}return o}function Iu(e){let t=e[D],n=t.type;return n===2?t.declTNode:n===1?e[re]:null}function Gs(e,t=null,n=null,r){let o=wu(e,t,n,r);return o.resolveInjectorInitializers(),o}function wu(e,t=null,n=null,r,o=new Set){let i=[n||Y,Rd(e)];return r=r||(typeof e=="object"?void 0:V(e)),new Ft(i,t||ii(),r||null,o)}var lr=(()=>{let t=class t{static create(r,o){if(Array.isArray(r))return Gs({name:""},o,r,"");{let i=r.name??"";return Gs({name:i},r.parent,r.providers,i)}}};t.THROW_IF_NOT_FOUND=Nt,t.NULL=new Vn,t.\u0275prov=A({token:t,providedIn:"any",factory:()=>U(Ta)}),t.__NG_ELEMENT_ID__=-1;let e=t;return e})();var Lf="ngOriginalError";function Hr(e){return e[Lf]}var ht=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Hr(t);for(;n&&Hr(n);)n=Hr(n);return n||null}},Eu=new T("",{providedIn:"root",factory:()=>_(ht).handleError.bind(void 0)}),Cu=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=jf,t.__NG_ENV_ID__=r=>r;let e=t;return e})(),fo=class extends Cu{constructor(t){super(),this._lView=t}onDestroy(t){return eu(this._lView,t),()=>of(this._lView,t)}};function jf(){return new fo(M())}function Vf(){return Dt(G(),M())}function Dt(e,t){return new Se(Z(e,t))}var Se=(()=>{let t=class t{constructor(r){this.nativeElement=r}};t.__NG_ELEMENT_ID__=Vf;let e=t;return e})();function Bf(e){return e instanceof Se?e.nativeElement:e}var po=class extends ye{constructor(t=!1){super(),this.destroyRef=void 0,this.__isAsync=t,zd()&&(this.destroyRef=_(Cu,{optional:!0})??void 0)}emit(t){let n=C(null);try{super.next(t)}finally{C(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let u=t;o=u.next?.bind(u),i=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(i=Ur(i),o&&(o=Ur(o)),s&&(s=Ur(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof P&&t.add(a),a}};function Ur(e){return t=>{setTimeout(e,void 0,t)}}var Pe=po;function $f(){return this._results[Symbol.iterator]()}var ho=class e{get changes(){return this._changes??=new Pe}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let n=e.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=$f)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=fd(t);(this._changesDetected=!dd(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function bu(e){return(e.flags&128)===128}var _u=new Map,Hf=0;function Uf(){return Hf++}function Gf(e){_u.set(e[rr],e)}function zf(e){_u.delete(e[rr])}var zs="__ngContext__";function _e(e,t){ke(t)?(e[zs]=t[rr],Gf(t)):e[zs]=t}function Mu(e){return Su(e[Pt])}function xu(e){return Su(e[ee])}function Su(e){for(;e!==null&&!ge(e);)e=e[ee];return e}var go;function hC(e){go=e}function Tu(){if(go!==void 0)return go;if(typeof document<"u")return document;throw new x(210,!1)}var gC=new T("",{providedIn:"root",factory:()=>Wf}),Wf="ng",qf=new T(""),Nu=new T("",{providedIn:"platform",factory:()=>"unknown"});var mC=new T(""),yC=new T("",{providedIn:"root",factory:()=>Tu().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),yi={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840],placeholderResolution:30,disableImageSizeWarning:!1,disableImageLazyLoadWarning:!1},Au=new T("",{providedIn:"root",factory:()=>yi});var Yf="h",Qf="b";var Zf=()=>null;function Di(e,t,n=!1){return Zf(e,t,n)}var Ou=!1,Kf=new T("",{providedIn:"root",factory:()=>Ou});var bn;function Jf(){if(bn===void 0&&(bn=null,we.trustedTypes))try{bn=we.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return bn}function dr(e){return Jf()?.createHTML(e)||e}var _n;function Xf(){if(_n===void 0&&(_n=null,we.trustedTypes))try{_n=we.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return _n}function Ws(e){return Xf()?.createHTML(e)||e}var pe=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ma})`}},mo=class extends pe{getTypeName(){return"HTML"}},yo=class extends pe{getTypeName(){return"Style"}},Do=class extends pe{getTypeName(){return"Script"}},vo=class extends pe{getTypeName(){return"URL"}},Io=class extends pe{getTypeName(){return"ResourceURL"}};function zt(e){return e instanceof pe?e.changingThisBreaksApplicationSecurity:e}function Fu(e,t){let n=ep(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${ma})`)}return n===t}function ep(e){return e instanceof pe&&e.getTypeName()||null}function DC(e){return new mo(e)}function vC(e){return new yo(e)}function IC(e){return new Do(e)}function wC(e){return new vo(e)}function EC(e){return new Io(e)}function tp(e){let t=new Eo(e);return np()?new wo(t):t}var wo=class{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{let n=new window.DOMParser().parseFromString(dr(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}},Eo=class{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=dr(t),n}};function np(){try{return!!new window.DOMParser().parseFromString(dr(""),"text/html")}catch{return!1}}var rp=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Ru(e){return e=String(e),e.match(rp)?e:"unsafe:"+e}function me(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function Wt(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var Pu=me("area,br,col,hr,img,wbr"),ku=me("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Lu=me("rp,rt"),op=Wt(Lu,ku),ip=Wt(ku,me("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),sp=Wt(Lu,me("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),qs=Wt(Pu,ip,sp,op),ju=me("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ap=me("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),up=me("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),cp=Wt(ju,ap,up),lp=me("script,style,template"),Co=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){o.push(n),n=pp(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=fp(n);if(i){n=i;break}n=o.pop()}}return this.buf.join("")}startElement(t){let n=Ys(t).toLowerCase();if(!qs.hasOwnProperty(n))return this.sanitizedSomething=!0,!lp.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let o=0;o"),!0}endElement(t){let n=Ys(t).toLowerCase();qs.hasOwnProperty(n)&&!Pu.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(Qs(t))}};function dp(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function fp(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw Vu(t);return t}function pp(e){let t=e.firstChild;if(t&&dp(e,t))throw Vu(t);return t}function Ys(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function Vu(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var hp=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,gp=/([^\#-~ |!])/g;function Qs(e){return e.replace(/&/g,"&").replace(hp,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(gp,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}var Mn;function mp(e,t){let n=null;try{Mn=Mn||tp(e);let r=t?String(t):"";n=Mn.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=Mn.getInertBodyElement(r)}while(r!==i);let a=new Co().sanitizeChildren(Zs(n)||n);return dr(a)}finally{if(n){let r=Zs(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Zs(e){return"content"in e&&yp(e)?e.content:null}function yp(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var vi=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(vi||{});function CC(e){let t=Bu();return t?Ws(t.sanitize(vi.HTML,e)||""):Fu(e,"HTML")?Ws(zt(e)):mp(Tu(),$t(e))}function bC(e){let t=Bu();return t?t.sanitize(vi.URL,e)||"":Fu(e,"URL")?zt(e):Ru($t(e))}function Bu(){let e=M();return e&&e[ne].sanitizer}var Dp=/^>|^->||--!>|)/g,Ip="\u200B$1\u200B";function wp(e){return e.replace(Dp,t=>t.replace(vp,Ip))}function _C(e){return e.ownerDocument.defaultView}function $u(e){return e instanceof Function?e():e}var zn=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(zn||{}),Ep;function Ii(e,t){return Ep(e,t)}function it(e,t,n,r,o){if(r!=null){let i,s=!1;ge(r)?i=r:ke(r)&&(s=!0,r=r[he]);let a=ue(r);e===0&&n!==null?o==null?Wu(t,n,a):Wn(t,n,a,o||null,!0):e===1&&n!==null?Wn(t,n,a,o||null,!0):e===2?Bp(t,a,s):e===3&&t.destroyNode(a),i!=null&&Hp(t,e,i,n,o)}}function Cp(e,t){return e.createText(t)}function bp(e,t,n){e.setValue(t,n)}function _p(e,t){return e.createComment(wp(t))}function Hu(e,t,n){return e.createElement(t,n)}function Mp(e,t){Uu(e,t),t[he]=null,t[re]=null}function xp(e,t,n,r,o,i){r[he]=o,r[re]=t,pr(e,r,n,1,o,i)}function Uu(e,t){t[ne].changeDetectionScheduler?.notify(1),pr(e,t,t[F],2,null,null)}function Sp(e){let t=e[Pt];if(!t)return Gr(e[D],e);for(;t;){let n=null;if(ke(t))n=t[Pt];else{let r=t[W];r&&(n=r)}if(!n){for(;t&&!t[ee]&&t!==e;)ke(t)&&Gr(t[D],t),t=t[k];t===null&&(t=e),ke(t)&&Gr(t[D],t),n=t&&t[ee]}t=n}}function Tp(e,t,n,r){let o=W+r,i=n.length;r>0&&(n[o-1][ee]=t),r0&&(e[n-1][ee]=r[ee]);let i=Ln(e,W+t);Mp(r[D],r);let s=i[de];s!==null&&s.detachView(i[D]),r[k]=null,r[ee]=null,r[g]&=-129}return r}function zu(e,t){if(!(t[g]&256)){let n=t[F];n.destroyNode&&pr(e,t,n,3,null,null),Sp(t)}}function Gr(e,t){if(t[g]&256)return;let n=C(null);try{t[g]&=-129,t[g]|=256,t[Ve]&&Xi(t[Ve]),Op(e,t),Ap(e,t),t[D].type===1&&t[F].destroy();let r=t[Gt];if(r!==null&&ge(t[k])){r!==t[k]&&Gu(r,t);let o=t[de];o!==null&&o.detachView(e)}zf(t)}finally{C(n)}}function Ap(e,t){let n=e.cleanup,r=t[Rt];if(n!==null)for(let i=0;i=0?r[s]():r[-s].unsubscribe(),i+=2}else{let s=r[n[i+1]];n[i].call(s)}r!==null&&(t[Rt]=null);let o=t[Ee];if(o!==null){t[Ee]=null;for(let i=0;i-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===At.None||i===At.Emulated)return null}return Z(r,n)}}function Wn(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Wu(e,t,n){e.appendChild(t,n)}function Ks(e,t,n,r,o){r!==null?Wn(e,t,n,r,o):Wu(e,t,n)}function Pp(e,t,n,r){e.removeChild(t,n,r)}function wi(e,t){return e.parentNode(t)}function kp(e,t){return e.nextSibling(t)}function Lp(e,t,n){return Vp(e,t,n)}function jp(e,t,n){return e.type&40?Z(e,n):null}var Vp=jp,Js;function fr(e,t,n,r){let o=Fp(e,r,t),i=t[F],s=r.parent||t[re],a=Lp(s,r,t);if(o!=null)if(Array.isArray(n))for(let u=0;ufe&&Zu(e,t,fe,!1),ie(s?2:0,o),n(r,o)}finally{$e(i),ie(s?3:1,o)}}function Ci(e,t,n){if(ai(t)){let r=C(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function Kp(e,t,n,r){let o=sc(t);o.push(n),e.firstCreatePass&&ac(e).push(r,o.length-1)}function Jp(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return cf()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Xs(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let a,u=B.None;Array.isArray(s)?(a=s[0],u=s[1]):a=s;let c=i;if(o!==null){if(!o.hasOwnProperty(i))continue;c=o[i]}e===0?ea(r,n,c,a,u):ea(r,n,c,a)}return r}function ea(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],o!==void 0&&i.push(o)}function Xp(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],u=null,c=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function oh(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;or(n)&&dh(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||Gn(n,t),_e(r,t);let s=n.initialInputs;for(let a=o;a{kt(e.lView)},consumerOnSignalRead(){this.lView[Ve]=this}}),lc=100;function dc(e,t=!0,n=0){let r=e[ne],o=r.rendererFactory,i=!1;i||o.begin?.();try{xh(e,n)}catch(s){throw t&&uc(e,s),s}finally{i||(o.end?.(),r.inlineEffectRunner?.flush())}}function xh(e,t){So(e,t);let n=0;for(;li(e);){if(n===lc)throw new x(103,!1);n++,So(e,1)}}function Sh(e,t,n,r){let o=t[g];if((o&256)===256)return;let i=!1;!i&&t[ne].inlineEffectRunner?.flush(),pi(t);let s=null,a=null;!i&&Th(e)&&(a=Ch(t),s=Ki(a));try{Xa(t),hf(e.bindingStartIndex),n!==null&&Xu(e,t,n,2,r);let u=(o&3)===3;if(!i)if(u){let d=e.preOrderCheckHooks;d!==null&&Nn(t,d,null)}else{let d=e.preOrderHooks;d!==null&&An(t,d,0,null),Br(t,0)}if(Nh(t),fc(t,0),e.contentQueries!==null&&ic(e,t),!i)if(u){let d=e.contentCheckHooks;d!==null&&Nn(t,d)}else{let d=e.contentHooks;d!==null&&An(t,d,1),Br(t,1)}zp(e,t);let c=e.components;c!==null&&hc(t,c,0);let l=e.viewQuery;if(l!==null&&xo(2,l,r),!i)if(u){let d=e.viewCheckHooks;d!==null&&Nn(t,d)}else{let d=e.viewHooks;d!==null&&An(t,d,2),Br(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Vr]){for(let d of t[Vr])d();t[Vr]=null}i||(t[g]&=-73)}catch(u){throw kt(t),u}finally{a!==null&&(Ji(a,s),_h(a)),hi()}}function Th(e){return e.type!==2}function fc(e,t){for(let n=Mu(e);n!==null;n=xu(n))for(let r=W;r-1&&(bo(t,r),Ln(n,r))}this._attachedToViewContainer=!1}zu(this._lView[D],this._lView)}onDestroy(t){eu(this._lView,t)}markForCheck(){Ni(this._cdRefInjectingView||this._lView)}detach(){this._lView[g]&=-129}reattach(){so(this._lView),this._lView[g]|=128}detectChanges(){this._lView[g]|=1024,dc(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new x(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,Uu(this._lView[D],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new x(902,!1);this._appRef=t,so(this._lView)}},ze=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=Rh;let e=t;return e})(),Oh=ze,Fh=class extends Oh{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=Ih(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new Ge(o)}};function Rh(){return Ai(G(),M())}function Ai(e,t){return e.type&4?new Fh(t,e,Dt(e,t)):null}var TC=new RegExp(`^(\\d+)*(${Qf}|${Yf})*(.*)`);var Ph=()=>null;function na(e,t){return Ph(e,t)}var To=class{},No=class{},Yn=class{};function kh(e){let t=Error(`No component factory found for ${V(e)}.`);return t[Lh]=e,t}var Lh="ngComponent";var Ao=class{resolveComponentFactory(t){throw kh(t)}},mr=(()=>{let t=class t{};t.NULL=new Ao;let e=t;return e})(),Oo=class{},yr=(()=>{let t=class t{constructor(){this.destroyNode=null}};t.__NG_ELEMENT_ID__=()=>jh();let e=t;return e})();function jh(){let e=M(),t=G(),n=xe(t.index,e);return(ke(n)?n:e)[F]}var Vh=(()=>{let t=class t{};t.\u0275prov=A({token:t,providedIn:"root",factory:()=>null});let e=t;return e})(),zr={};var ra=new Set;function Oi(e){ra.has(e)||(ra.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function oa(...e){}function Bh(){let e=typeof we.requestAnimationFrame=="function",t=we[e?"requestAnimationFrame":"setTimeout"],n=we[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){let r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r);let o=n[Zone.__symbol__("OriginalDelegate")];o&&(n=o)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}var Q=class e{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Pe(!1),this.onMicrotaskEmpty=new Pe(!1),this.onStable=new Pe(!1),this.onError=new Pe(!1),typeof Zone>"u")throw new x(908,!1);Zone.assertZonePatched();let o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=Bh().nativeRequestAnimationFrame,Uh(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new x(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new x(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,$h,oa,oa);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},$h={};function Fi(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Hh(e){e.isCheckStableRunning||e.lastRequestAnimationFrameId!==-1||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(we,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Fo(e),e.isCheckStableRunning=!0,Fi(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Fo(e))}function Uh(e){let t=()=>{Hh(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{if(Gh(a))return n.invokeTask(o,i,s,a);try{return ia(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&i.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),sa(e)}},onInvoke:(n,r,o,i,s,a,u)=>{try{return ia(e),n.invoke(o,i,s,a,u)}finally{e.shouldCoalesceRunChangeDetection&&t(),sa(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&(i.change=="microTask"?(e._hasPendingMicrotasks=i.microTask,Fo(e),Fi(e)):i.change=="macroTask"&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}function Fo(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.lastRequestAnimationFrameId!==-1?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function ia(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function sa(e){e._nesting--,Fi(e)}function Gh(e){return!Array.isArray(e)||e.length!==1?!1:e[0].data?.__ignore_ng_zone__===!0}var gc=(()=>{let t=class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let r=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let o of r)o()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};t.\u0275prov=A({token:t,providedIn:"root",factory:()=>new t});let e=t;return e})();function Qn(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&Yu(e,n,i.join(" "))}}function Kh(e,t,n){let r=e.projection=[];for(let o=0;o{let t=class t{};t.__NG_ELEMENT_ID__=Xh;let e=t;return e})();function Xh(){let e=G();return yc(e,M())}var eg=vt,mc=class extends eg{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Dt(this._hostTNode,this._hostLView)}get injector(){return new Le(this._hostTNode,this._hostLView)}get parentInjector(){let t=mi(this._hostTNode,this._hostLView);if(fu(t)){let n=Un(t,this._hostLView),r=Hn(t),o=n[D].data[r+8];return new Le(o,n)}else return new Le(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=ua(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-W}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=na(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,ta(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!Wd(t),a;if(s)a=n;else{let h=n||{};a=h.index,r=h.injector,o=h.projectableNodes,i=h.environmentInjector||h.ngModuleRef}let u=s?t:new jt(je(t)),c=r||this.parentInjector;if(!i&&u.ngModule==null){let E=(s?c:this.parentInjector).get(Ce,null);E&&(i=E)}let l=je(u.componentType??{}),d=na(this._lContainer,l?.id??null),f=d?.firstChild??null,p=u.create(c,o,f,i);return this.insertImpl(p.hostView,a,ta(this._hostTNode,d)),p}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(tf(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let u=o[k],c=new mc(u,u[re],u[k]);c.detach(c.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return wh(s,o,i,r),t.attachToViewContainerRef(),Sa(Wr(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=ua(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=bo(this._lContainer,n);r&&(Ln(Wr(this._lContainer),n),zu(r[D],r))}detach(t){let n=this._adjustIndex(t,-1),r=bo(this._lContainer,n);return r&&Ln(Wr(this._lContainer),n)!=null?new Ge(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function ua(e){return e[$n]}function Wr(e){return e[$n]||(e[$n]=[])}function yc(e,t){let n,r=t[e.index];return ge(r)?n=r:(n=oc(r,t,null,e),t[e.index]=n,gr(t,n)),ng(n,t,e,r),new mc(n,e,t)}function tg(e,t){let n=e[F],r=n.createComment(""),o=Z(t,e),i=wi(n,o);return Wn(n,i,r,kp(n,o),!1),r}var ng=ig,rg=()=>!1;function og(e,t,n){return rg(e,t,n)}function ig(e,t,n,r){if(e[Be])return;let o;n.type&8?o=ue(r):o=tg(t,n),e[Be]=o}var ko=class e{constructor(t){this.queryList=t,this.matches=null}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Lo=class e{constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i0)r.push(s[a/2]);else{let c=i[a+1],l=t[-u];for(let d=W;dt.trim())}function hg(e,t,n){e.queries===null&&(e.queries=new Vo),e.queries.track(new Bo(t,n))}function Ri(e,t){return e.queries.getByIndex(t)}function gg(e,t){let n=e[D],r=Ri(n,t);return r.crossesNgTemplate?$o(n,e,t,[]):Dc(n,e,r,t)}function mg(e){return typeof e=="function"&&e[wr]!==void 0}function vc(e){return mg(e)&&typeof e.set=="function"}function yg(e){return Object.getPrototypeOf(e.prototype).constructor}function Dg(e){let t=yg(e.type),n=!0,r=[e];for(;t;){let o;if(be(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new x(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=xn(e.inputs),s.inputTransforms=xn(e.inputTransforms),s.declaredInputs=xn(e.declaredInputs),s.outputs=xn(e.outputs);let a=o.hostBindings;a&&Cg(e,a);let u=o.viewQuery,c=o.contentQueries;if(u&&wg(e,u),c&&Eg(e,c),vg(e,o),Gl(e.outputs,o.outputs),be(o)&&o.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Ot(o.hostAttrs,n=Ot(n,o.hostAttrs))}}function xn(e){return e===ct?{}:e===Y?[]:e}function wg(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function Eg(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function Cg(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function Ic(e){let t=e.inputConfig,n={};for(let r in t)if(t.hasOwnProperty(r)){let o=t[r];Array.isArray(o)&&o[3]&&(n[r]=o[3])}e.inputTransforms=n}var Me=class{},Ho=class{};var Uo=class extends Me{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Zn(this);let o=ka(t);this._bootstrapComponents=$u(o.bootstrap),this._r3Injector=wu(t,n,[{provide:Me,useValue:this},{provide:mr,useValue:this.componentFactoryResolver},...r],V(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},Go=class extends Ho{constructor(t){super(),this.moduleType=t}create(t){return new Uo(this.moduleType,t,[])}};var Kn=class extends Me{constructor(t){super(),this.componentFactoryResolver=new Zn(this),this.instance=null;let n=new Ft([...t.providers,{provide:Me,useValue:this},{provide:mr,useValue:this.componentFactoryResolver}],t.parent||ii(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function bg(e,t,n=null){return new Kn({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var wc=(()=>{let t=class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new _t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Ec(e){return Mg(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function _g(e,t){if(Array.isArray(e))for(let n=0;n>17&32767}function Pg(e){return(e&2)==2}function kg(e,t){return e&131071|t<<17}function zo(e){return e|2}function gt(e){return(e&131068)>>2}function qr(e,t){return e&-131069|t<<2}function Lg(e){return(e&1)===1}function Wo(e){return e|1}function jg(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=We(s),u=gt(s);e[r]=n;let c=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Ht(d,l)>0)&&(c=!0)}else l=n;if(o)if(u!==0){let f=We(e[a+1]);e[r+1]=Sn(f,a),f!==0&&(e[f+1]=qr(e[f+1],r)),e[a+1]=kg(e[a+1],r)}else e[r+1]=Sn(a,0),a!==0&&(e[a+1]=qr(e[a+1],r)),a=r;else e[r+1]=Sn(u,0),a===0?a=r:e[u+1]=qr(e[u+1],r),u=r;c&&(e[r+1]=zo(e[r+1])),ca(e,l,r,!0),ca(e,l,r,!1),Vg(t,l,e,r,i),s=Sn(a,u),i?t.classBindings=s:t.styleBindings=s}function Vg(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Ht(i,t)>=0&&(n[r+1]=Wo(n[r+1]))}function ca(e,t,n,r){let o=e[n+1],i=t===null,s=r?We(o):gt(o),a=!1;for(;s!==0&&(a===!1||i);){let u=e[s],c=e[s+1];Bg(u,t)&&(a=!0,e[s+1]=r?Wo(c):zo(c)),s=r?We(c):gt(c)}a&&(e[n+1]=r?zo(o):Wo(o))}function Bg(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Ht(e,t)>=0:!1}function $g(e,t,n){let r=M(),o=sr();if(It(r,o,t)){let i=L(),s=gi();tc(i,s,r,e,t,r[F],n,!1)}return $g}function la(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";Si(e,n,i[s],s,r)}function Pi(e,t,n){return Cc(e,t,n,!1),Pi}function Hg(e,t){return Cc(e,t,null,!0),Hg}function Cc(e,t,n,r){let o=M(),i=L(),s=gf(2);if(i.firstUpdatePass&&Gg(i,e,s,r),t!==Ye&&It(o,s,t)){let a=i.data[yt()];Qg(i,a,o,o[F],e,o[s+1]=Zg(t,n),r,s)}}function Ug(e,t){return t>=e.expandoStartIndex}function Gg(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[yt()],s=Ug(e,n);Kg(i,r)&&t===null&&!s&&(t=!1),t=zg(o,i,t,r),jg(o,i,t,n,s,r)}}function zg(e,t,n,r){let o=vf(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Yr(null,e,t,n,r),n=Vt(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Yr(o,e,t,n,r),i===null){let u=Wg(e,t,r);u!==void 0&&Array.isArray(u)&&(u=Yr(null,e,t,u[1],r),u=Vt(u,t.attrs,r),qg(e,t,r,u))}else i=Yg(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function Wg(e,t,n){let r=n?t.classBindings:t.styleBindings;if(gt(r)!==0)return e[We(r)]}function qg(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[We(o)]=r}function Yg(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let u=e[o],c=Array.isArray(u),l=c?u[1]:u,d=l===null,f=n[o+1];f===Ye&&(f=d?Y:void 0);let p=d?Lr(f,r):l===r?f:void 0;if(c&&!Jn(p)&&(p=Lr(u,r)),Jn(p)&&(a=p,s))return a;let h=e[o+1];o=s?We(h):gt(h)}if(t!==null){let u=i?t.residualClasses:t.residualStyles;u!=null&&(a=Lr(u,r))}return a}function Jn(e){return e!==void 0}function Zg(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=V(zt(e)))),e}function Kg(e,t){return(e.flags&(t?8:16))!==0}function Jg(e,t,n,r,o,i){let s=t.consts,a=pt(s,o),u=qt(t,e,2,r,a);return xi(t,n,u,pt(s,i)),u.attrs!==null&&Qn(u,u.attrs,!1),u.mergedAttrs!==null&&Qn(u,u.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,u),u}function bc(e,t,n,r){let o=M(),i=L(),s=fe+e,a=o[F],u=i.firstCreatePass?Jg(s,i,o,t,n,r):i.data[s],c=em(i,o,u,a,t,e);o[s]=c;let l=ir(u);return qe(u,!0),Qu(a,c,u),!Sg(u)&&ar()&&fr(i,o,c,u),sf()===0&&_e(c,o),af(),l&&(bi(i,o,u),Ci(i,u,o)),r!==null&&_i(o,u),bc}function _c(){let e=G();di()?ru():(e=e.parent,qe(e,!1));let t=e;lf(t)&&df(),uf();let n=L();return n.firstCreatePass&&(cr(n,e),ai(e)&&n.queries.elementEnd(e)),t.classesWithoutHost!=null&&xf(t)&&la(n,t,M(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&Sf(t)&&la(n,t,M(),t.stylesWithoutHost,!1),_c}function Xg(e,t,n,r){return bc(e,t,n,r),_c(),Xg}var em=(e,t,n,r,o,i)=>(ur(!0),Hu(r,o,Cf()));function tm(e,t,n,r,o){let i=t.consts,s=pt(i,r),a=qt(t,e,8,"ng-container",s);s!==null&&Qn(a,s,!0);let u=pt(i,o);return xi(t,n,a,u),t.queries!==null&&t.queries.elementStart(t,a),a}function nm(e,t,n){let r=M(),o=L(),i=e+fe,s=o.firstCreatePass?tm(i,o,r,t,n):o.data[i];qe(s,!0);let a=om(o,r,s,e);return r[i]=a,ar()&&fr(o,r,a,s),_e(a,r),ir(s)&&(bi(o,r,s),Ci(o,s,r)),n!=null&&_i(r,s),nm}function rm(){let e=G(),t=L();return di()?ru():(e=e.parent,qe(e,!1)),t.firstCreatePass&&(cr(t,e),ai(e)&&t.queries.elementEnd(e)),rm}var om=(e,t,n,r)=>(ur(!0),_p(t[F],""));function AC(){return M()}var Xn="en-US";var im=Xn;function sm(e){typeof e=="string"&&(im=e.toLowerCase().replace(/_/g,"-"))}function am(e,t,n,r){let o=M(),i=L(),s=G();return Mc(i,o,o[F],s,e,t,r),am}function um(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;iu?a[u]:null}typeof s=="string"&&(i+=2)}return null}function Mc(e,t,n,r,o,i,s){let a=ir(r),c=e.firstCreatePass&&ac(e),l=t[te],d=sc(t),f=!0;if(r.type&3||s){let E=Z(r,t),R=s?s(E):E,N=d.length,Te=s?ce=>s(ue(ce[r.index])):r.index,$=null;if(!s&&a&&($=um(e,t,o,r.index)),$!==null){let ce=$.__ngLastListenerFn__||$;ce.__ngNextListenerFn__=i,$.__ngLastListenerFn__=i,f=!1}else{i=pa(r,t,l,i,!1);let ce=n.listen(R,o,i);d.push(i,ce),c&&c.push(o,Te,N,N+1)}}else i=pa(r,t,l,i,!1);let p=r.outputs,h;if(f&&p!==null&&(h=p[o])){let E=h.length;if(E)for(let R=0;R-1?xe(e.index,t):t;Ni(a);let u=fa(t,n,r,s),c=i.__ngNextListenerFn__;for(;c;)u=fa(t,n,c,s)&&u,c=c.__ngNextListenerFn__;return o&&u===!1&&s.preventDefault(),u}}function OC(e=1){return wf(e)}function FC(e,t,n){fg(e,t,n)}function RC(e){let t=M(),n=L(),r=ou();fi(r+1);let o=Ri(n,r);if(e.dirty&&ef(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=gg(t,r);e.reset(i,Bf),e.notifyOnChanges()}return!0}return!1}function PC(){return lg(M(),ou())}function kC(e,t=""){let n=M(),r=L(),o=e+fe,i=r.firstCreatePass?qt(r,o,1,t,null):r.data[o],s=cm(r,n,i,t,e);n[o]=s,ar()&&fr(r,n,s,i),qe(i,!1)}var cm=(e,t,n,r,o)=>(ur(!0),Cp(t[F],r));function lm(e){return xc("",e,""),lm}function xc(e,t,n){let r=M(),o=Rg(r,e,t,n);return o!==Ye&&mh(r,yt(),o),xc}function dm(e,t,n){vc(t)&&(t=t());let r=M(),o=sr();if(It(r,o,t)){let i=L(),s=gi();tc(i,s,r,e,t,r[F],n,!1)}return dm}function LC(e,t){let n=vc(e);return n&&e.set(t),n}function fm(e,t){let n=M(),r=L(),o=G();return Mc(r,n,n[F],o,e,t),fm}function pm(e,t,n){let r=L();if(r.firstCreatePass){let o=be(e);qo(n,r.data,r.blueprint,o,!0),qo(t,r.data,r.blueprint,o,!1)}}function qo(e,t,n,r,o){if(e=j(e),Array.isArray(e))for(let i=0;i>20;if(lt(e)||!e.multi){let p=new He(c,o,oe),h=Zr(u,t,o?l:l+f,d);h===-1?(co(Gn(a,s),i,u),Qr(i,e,t.length),t.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(p),s.push(p)):(n[h]=p,s[h]=p)}else{let p=Zr(u,t,l+f,d),h=Zr(u,t,l,l+f),E=p>=0&&n[p],R=h>=0&&n[h];if(o&&!R||!o&&!E){co(Gn(a,s),i,u);let N=mm(o?gm:hm,n.length,o,r,c);!o&&R&&(n[h].providerFactory=N),Qr(i,e,t.length,0),t.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(N),s.push(N)}else{let N=Sc(n[o?h:p],c,!o&&r);Qr(i,e,p>-1?p:h,N)}!o&&r&&R&&n[h].componentProviders++}}}function Qr(e,t,n,r){let o=lt(t),i=jd(t);if(o||i){let u=(i?j(t.useClass):t).prototype.ngOnDestroy;if(u){let c=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let l=c.indexOf(n);l===-1?c.push(n,[r,u]):c[l+1].push(r,u)}else c.push(n,u)}}}function Sc(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Zr(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>pm(r,o?o(e):e,t)}}var ym=(()=>{let t=class t{constructor(r){this._injector=r,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){let o=Va(!1,r.type),i=o.length>0?bg([o],this._injector,`Standalone[${r.type.name}]`):null;this.cachedInjectors.set(r,i)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(let r of this.cachedInjectors.values())r!==null&&r.destroy()}finally{this.cachedInjectors.clear()}}};t.\u0275prov=A({token:t,providedIn:"environment",factory:()=>new t(U(Ce))});let e=t;return e})();function VC(e){Oi("NgStandalone"),e.getStandaloneInjector=t=>t.get(ym).getOrCreateStandaloneInjector(e)}function BC(e,t,n,r){return vm(M(),pf(),e,t,n,r)}function Dm(e,t){let n=e[t];return n===Ye?void 0:n}function vm(e,t,n,r,o,i){let s=t+n;return It(e,s,o)?xg(e,s+1,i?r.call(i,o):r(o)):Dm(e,s+1)}var $C=(()=>{let t=class t{log(r){console.log(r)}warn(r){console.warn(r)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})();var Im=new T("");function ki(e){return!!e&&typeof e.then=="function"}function Tc(e){return!!e&&typeof e.subscribe=="function"}var wm=new T(""),Nc=(()=>{let t=class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o}),this.appInits=_(wm,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let r=[];for(let i of this.appInits){let s=i();if(ki(s))r.push(s);else if(Tc(s)){let a=new Promise((u,c)=>{s.subscribe({complete:u,error:c})});r.push(a)}}let o=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{o()}).catch(i=>{this.reject(i)}),r.length===0&&o(),this.initialized=!0}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Em=new T("");function Cm(){es(()=>{throw new x(600,!1)})}function bm(e){return e.isBoundToModule}function _m(e,t,n){try{let r=n();return ki(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var Ac=(()=>{let t=class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=_(Eu),this.afterRenderEffectManager=_(gc),this.externalTestViews=new Set,this.beforeRender=new ye,this.afterTick=new ye,this.componentTypes=[],this.components=[],this.isStable=_(wc).hasPendingTasks.pipe(le(r=>!r)),this._injector=_(Ce)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(r,o){let i=r instanceof Yn;if(!this._injector.get(Nc).done){let p=!i&&Ad(r),h=!1;throw new x(405,h)}let a;i?a=r:a=this._injector.get(mr).resolveComponentFactory(r),this.componentTypes.push(a.componentType);let u=bm(a)?void 0:this._injector.get(Me),c=o||a.selector,l=a.create(lr.NULL,[],c,u),d=l.location.nativeElement,f=l.injector.get(Im,null);return f?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),Kr(this.components,l),f?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(r){if(this._runningTick)throw new x(101,!1);let o=C(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(r)}catch(i){this.internalErrorHandler(i)}finally{this.afterTick.next(),this._runningTick=!1,C(o)}}detectChangesInAttachedViews(r){let o=0,i=this.afterRenderEffectManager;for(;;){if(o===lc)throw new x(103,!1);if(r){let s=o===0;this.beforeRender.next(s);for(let{_lView:a,notifyErrorHandler:u}of this._views)Mm(a,s,u)}if(o++,i.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>Qo(s))&&(i.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>Qo(s))))break}}attachView(r){let o=r;this._views.push(o),o.attachToAppRef(this)}detachView(r){let o=r;Kr(this._views,o),o.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);let o=this._injector.get(Em,[]);[...this._bootstrapListeners,...o].forEach(i=>i(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>Kr(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new x(406,!1);let r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Kr(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Mm(e,t,n){!t&&!Qo(e)||xm(e,n,t)}function Qo(e){return li(e)}function xm(e,t,n){let r;n?(r=0,e[g]|=1024):e[g]&64?r=0:r=1,dc(e,t,r)}var Zo=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},HC=(()=>{let t=class t{compileModuleSync(r){return new Go(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){let o=this.compileModuleSync(r),i=ka(r),s=$u(i.declarations).reduce((a,u)=>{let c=je(u);return c&&a.push(new jt(c)),a},[]);return new Zo(o,s)}compileModuleAndAllComponentsAsync(r){return Promise.resolve(this.compileModuleAndAllComponentsSync(r))}clearCache(){}clearCacheFor(r){}getModuleId(r){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Sm=(()=>{let t=class t{constructor(){this.zone=_(Q),this.applicationRef=_(Ac)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Tm(e){return[{provide:Q,useFactory:e},{provide:jn,multi:!0,useFactory:()=>{let t=_(Sm,{optional:!0});return()=>t.initialize()}},{provide:jn,multi:!0,useFactory:()=>{let t=_(Fm);return()=>{t.initialize()}}},{provide:Eu,useFactory:Nm}]}function Nm(){let e=_(Q),t=_(ht);return n=>e.runOutsideAngular(()=>t.handleError(n))}function Am(e){let t=Tm(()=>new Q(Om(e)));return Fd([[],t])}function Om(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var Fm=(()=>{let t=class t{constructor(){this.subscription=new P,this.initialized=!1,this.zone=_(Q),this.pendingTasks=_(wc)}initialize(){if(this.initialized)return;this.initialized=!0;let r=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(r=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Q.assertNotInAngularZone(),queueMicrotask(()=>{r!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(r),r=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Q.assertInAngularZone(),r??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Rm(){return typeof $localize<"u"&&$localize.locale||Xn}var Li=new T("",{providedIn:"root",factory:()=>_(Li,I.Optional|I.SkipSelf)||Rm()});var Oc=new T("");var Rn=null;function Pm(e=[],t){return lr.create({name:t,providers:[{provide:Ha,useValue:"platform"},{provide:Oc,useValue:new Set([()=>Rn=null])},...e]})}function km(e=[]){if(Rn)return Rn;let t=Pm(e);return Rn=t,Cm(),Lm(t),t}function Lm(e){e.get(qf,null)?.forEach(n=>n())}var ji=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=jm;let e=t;return e})();function jm(e){return Vm(G(),M(),(e&16)===16)}function Vm(e,t,n){if(or(e)&&!n){let r=xe(e.index,t);return new Ge(r,r)}else if(e.type&47){let r=t[ae];return new Ge(r,t)}return null}var Ko=class{constructor(){}supports(t){return Ec(t)}create(t){return new Jo(t)}},Bm=(e,t)=>t,Jo=class{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Bm}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new Xo(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new er),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new er),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},Xo=class{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},ei=class{constructor(){this._head=null,this._tail=null}add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},er=class{constructor(){this.map=new Map}put(t){let n=t.trackById,r=this.map.get(n);r||(r=new ei,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function ha(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r{let t=class t{constructor(r){this.factories=r}static create(r,o){if(o!=null){let i=o.factories.slice();r=r.concat(i)}return new t(r)}static extend(r){return{provide:t,useFactory:o=>t.create(r,o||ga()),deps:[[t,new ld,new cd]]}}find(r){let o=this.factories.find(i=>i.supports(r));if(o!=null)return o;throw new x(901,!1)}};t.\u0275prov=A({token:t,providedIn:"root",factory:ga});let e=t;return e})();function UC(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=km(r),i=[Am(),...n||[]],a=new Kn({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1}).injector,u=a.get(Q);return u.run(()=>{a.resolveInjectorInitializers();let c=a.get(ht,null),l;u.runOutsideAngular(()=>{l=u.onError.subscribe({next:p=>{c.handleError(p)}})});let d=()=>a.destroy(),f=o.get(Oc);return f.add(d),a.onDestroy(()=>{l.unsubscribe(),f.delete(d)}),_m(c,u,()=>{let p=a.get(Nc);return p.runInitializers(),p.donePromise.then(()=>{let h=a.get(Li,Xn);sm(h||Xn);let E=a.get(Ac);return t!==void 0&&E.bootstrap(t),E})})})}catch(t){return Promise.reject(t)}}function Yt(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function Bi(e,t=NaN){return!isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}var Bc=null;function $i(){return Bc}function pb(e){Bc??=e}var Fc=class{};var zi=new T(""),$c=(()=>{let t=class t{historyGo(r){throw new Error("")}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:()=>_(Hm),providedIn:"platform"});let e=t;return e})();var Hm=(()=>{let t=class t extends $c{constructor(){super(),this._doc=_(zi),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return $i().getBaseHref(this._doc)}onPopState(r){let o=$i().getGlobalEventTarget(this._doc,"window");return o.addEventListener("popstate",r,!1),()=>o.removeEventListener("popstate",r)}onHashChange(r){let o=$i().getGlobalEventTarget(this._doc,"window");return o.addEventListener("hashchange",r,!1),()=>o.removeEventListener("hashchange",r)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(r){this._location.pathname=r}pushState(r,o,i){this._history.pushState(r,o,i)}replaceState(r,o,i){this._history.replaceState(r,o,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(r=0){this._history.go(r)}getState(){return this._history.state}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:()=>new t,providedIn:"platform"});let e=t;return e})();function Hc(e,t){if(e.length==0)return t;if(t.length==0)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,n==2?e+t.substring(1):n==1?e+t:e+"/"+t}function Rc(e){let t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-(e[n-1]==="/"?1:0);return e.slice(0,r)+e.slice(n)}function Qe(e){return e&&e[0]!=="?"?"?"+e:e}var Wi=(()=>{let t=class t{historyGo(r){throw new Error("")}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:()=>_(Gm),providedIn:"root"});let e=t;return e})(),Um=new T(""),Gm=(()=>{let t=class t extends Wi{constructor(r,o){super(),this._platformLocation=r,this._removeListenerFns=[],this._baseHref=o??this._platformLocation.getBaseHrefFromDOM()??_(zi).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(r){this._removeListenerFns.push(this._platformLocation.onPopState(r),this._platformLocation.onHashChange(r))}getBaseHref(){return this._baseHref}prepareExternalUrl(r){return Hc(this._baseHref,r)}path(r=!1){let o=this._platformLocation.pathname+Qe(this._platformLocation.search),i=this._platformLocation.hash;return i&&r?`${o}${i}`:o}pushState(r,o,i,s){let a=this.prepareExternalUrl(i+Qe(s));this._platformLocation.pushState(r,o,a)}replaceState(r,o,i,s){let a=this.prepareExternalUrl(i+Qe(s));this._platformLocation.replaceState(r,o,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(r=0){this._platformLocation.historyGo?.(r)}};t.\u0275fac=function(o){return new(o||t)(U($c),U(Um,8))},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var zm=(()=>{let t=class t{constructor(r){this._subject=new Pe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=r;let o=this._locationStrategy.getBaseHref();this._basePath=Ym(Rc(Pc(o))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(r=!1){return this.normalize(this._locationStrategy.path(r))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(r,o=""){return this.path()==this.normalize(r+Qe(o))}normalize(r){return t.stripTrailingSlash(qm(this._basePath,Pc(r)))}prepareExternalUrl(r){return r&&r[0]!=="/"&&(r="/"+r),this._locationStrategy.prepareExternalUrl(r)}go(r,o="",i=null){this._locationStrategy.pushState(i,"",r,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+Qe(o)),i)}replaceState(r,o="",i=null){this._locationStrategy.replaceState(i,"",r,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+Qe(o)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(r=0){this._locationStrategy.historyGo?.(r)}onUrlChange(r){return this._urlChangeListeners.push(r),this._urlChangeSubscription??=this.subscribe(o=>{this._notifyUrlChangeListeners(o.url,o.state)}),()=>{let o=this._urlChangeListeners.indexOf(r);this._urlChangeListeners.splice(o,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(r="",o){this._urlChangeListeners.forEach(i=>i(r,o))}subscribe(r,o,i){return this._subject.subscribe({next:r,error:o,complete:i})}};t.normalizeQueryParams=Qe,t.joinWithSlash=Hc,t.stripTrailingSlash=Rc,t.\u0275fac=function(o){return new(o||t)(U(Wi))},t.\u0275prov=A({token:t,factory:()=>Wm(),providedIn:"root"});let e=t;return e})();function Wm(){return new zm(U(Wi))}function qm(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Pc(e){return e.replace(/\/index.html$/,"")}function Ym(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}function hb(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var Hi=/\s+/,kc=[],gb=(()=>{let t=class t{constructor(r,o){this._ngEl=r,this._renderer=o,this.initialClasses=kc,this.stateMap=new Map}set klass(r){this.initialClasses=r!=null?r.trim().split(Hi):kc}set ngClass(r){this.rawClass=typeof r=="string"?r.trim().split(Hi):r}ngDoCheck(){for(let o of this.initialClasses)this._updateState(o,!0);let r=this.rawClass;if(Array.isArray(r)||r instanceof Set)for(let o of r)this._updateState(o,!0);else if(r!=null)for(let o of Object.keys(r))this._updateState(o,!!r[o]);this._applyStateDiff()}_updateState(r,o){let i=this.stateMap.get(r);i!==void 0?(i.enabled!==o&&(i.changed=!0,i.enabled=o),i.touched=!0):this.stateMap.set(r,{enabled:o,changed:!0,touched:!0})}_applyStateDiff(){for(let r of this.stateMap){let o=r[0],i=r[1];i.changed?(this._toggleClass(o,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(o,!1),this.stateMap.delete(o)),i.touched=!1}}_toggleClass(r,o){r=r.trim(),r.length>0&&r.split(Hi).forEach(i=>{o?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}};t.\u0275fac=function(o){return new(o||t)(oe(Se),oe(yr))},t.\u0275dir=Ut({type:t,selectors:[["","ngClass",""]],inputs:{klass:[B.None,"class","klass"],ngClass:"ngClass"},standalone:!0});let e=t;return e})();var Ui=class{constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},mb=(()=>{let t=class t{set ngForOf(r){this._ngForOf=r,this._ngForOfDirty=!0}set ngForTrackBy(r){this._trackByFn=r}get ngForTrackBy(){return this._trackByFn}constructor(r,o,i){this._viewContainer=r,this._template=o,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(r){r&&(this._template=r)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let r=this._ngForOf;if(!this._differ&&r)if(0)try{}catch{}else this._differ=this._differs.find(r).create(this.ngForTrackBy)}if(this._differ){let r=this._differ.diff(this._ngForOf);r&&this._applyChanges(r)}}_applyChanges(r){let o=this._viewContainer;r.forEachOperation((i,s,a)=>{if(i.previousIndex==null)o.createEmbeddedView(this._template,new Ui(i.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)o.remove(s===null?void 0:s);else if(s!==null){let u=o.get(s);o.move(u,a),Lc(u,i)}});for(let i=0,s=o.length;i{let s=o.get(i.currentIndex);Lc(s,i)})}static ngTemplateContextGuard(r,o){return!0}};t.\u0275fac=function(o){return new(o||t)(oe(vt),oe(ze),oe(Vi))},t.\u0275dir=Ut({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let e=t;return e})();function Lc(e,t){e.context.$implicit=t.item}var yb=(()=>{let t=class t{constructor(r,o){this._viewContainer=r,this._context=new Gi,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=o}set ngIf(r){this._context.$implicit=this._context.ngIf=r,this._updateView()}set ngIfThen(r){jc("ngIfThen",r),this._thenTemplateRef=r,this._thenViewRef=null,this._updateView()}set ngIfElse(r){jc("ngIfElse",r),this._elseTemplateRef=r,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(r,o){return!0}};t.\u0275fac=function(o){return new(o||t)(oe(vt),oe(ze))},t.\u0275dir=Ut({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let e=t;return e})(),Gi=class{constructor(){this.$implicit=null,this.ngIf=null}};function jc(e,t){if(!!!(!t||t.createEmbeddedView))throw new Error(`${e} must be a TemplateRef, but received '${V(t)}'.`)}var Db=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=Fa({type:t}),t.\u0275inj=wa({});let e=t;return e})(),vb="browser",Qm="server";function Zm(e){return e===Qm}var Vc=class{};var Uc=e=>e.src,Km=new T("",{providedIn:"root",factory:()=>Uc});var Jm=new T("NG_OPTIMIZED_PRELOADED_IMAGES",{providedIn:"root",factory:()=>new Set}),Xm=(()=>{let t=class t{constructor(){this.preloadedImages=_(Jm),this.document=_(zi)}createPreloadLinkTag(r,o,i,s){if(this.preloadedImages.has(o))return;this.preloadedImages.add(o);let a=r.createElement("link");r.setAttribute(a,"as","image"),r.setAttribute(a,"href",o),r.setAttribute(a,"rel","preload"),r.setAttribute(a,"fetchpriority","high"),s&&r.setAttribute(a,"imageSizes",s),i&&r.setAttribute(a,"imageSrcset",i),r.appendChild(this.document.head,a)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var ey=/^((\s*\d+w\s*(,|$)){1,})$/;var ty=[1,2],ny=640;var ry=1920,oy=1080;var Ib=(()=>{let t=class t{constructor(){this.imageLoader=_(Km),this.config=iy(_(Au)),this.renderer=_(yr),this.imgElement=_(Se).nativeElement,this.injector=_(lr),this.isServer=Zm(_(Nu)),this.preloadLinkCreator=_(Xm),this.lcpObserver=null,this._renderedSrc=null,this.priority=!1,this.disableOptimizedSrcset=!1,this.fill=!1}ngOnInit(){Oi("NgOptimizedImage"),this.placeholder&&this.removePlaceholderOnLoad(this.imgElement),this.setHostAttributes()}setHostAttributes(){this.fill?this.sizes||="100vw":(this.setHostAttribute("width",this.width.toString()),this.setHostAttribute("height",this.height.toString())),this.setHostAttribute("loading",this.getLoadingBehavior()),this.setHostAttribute("fetchpriority",this.getFetchPriority()),this.setHostAttribute("ng-img","true");let r=this.updateSrcAndSrcset();this.sizes&&this.setHostAttribute("sizes",this.sizes),this.isServer&&this.priority&&this.preloadLinkCreator.createPreloadLinkTag(this.renderer,this.getRewrittenSrc(),r,this.sizes)}ngOnChanges(r){if(r.ngSrc&&!r.ngSrc.isFirstChange()){let o=this._renderedSrc;this.updateSrcAndSrcset(!0);let i=this._renderedSrc;this.lcpObserver!==null&&o&&i&&o!==i&&this.injector.get(Q).runOutsideAngular(()=>{this.lcpObserver?.updateImage(o,i)})}}callImageLoader(r){let o=r;return this.loaderParams&&(o.loaderParams=this.loaderParams),this.imageLoader(o)}getLoadingBehavior(){return!this.priority&&this.loading!==void 0?this.loading:this.priority?"eager":"lazy"}getFetchPriority(){return this.priority?"high":"auto"}getRewrittenSrc(){if(!this._renderedSrc){let r={src:this.ngSrc};this._renderedSrc=this.callImageLoader(r)}return this._renderedSrc}getRewrittenSrcset(){let r=ey.test(this.ngSrcset);return this.ngSrcset.split(",").filter(i=>i!=="").map(i=>{i=i.trim();let s=r?parseFloat(i):parseFloat(i)*this.width;return`${this.callImageLoader({src:this.ngSrc,width:s})} ${i}`}).join(", ")}getAutomaticSrcset(){return this.sizes?this.getResponsiveSrcset():this.getFixedSrcset()}getResponsiveSrcset(){let{breakpoints:r}=this.config,o=r;return this.sizes?.trim()==="100vw"&&(o=r.filter(s=>s>=ny)),o.map(s=>`${this.callImageLoader({src:this.ngSrc,width:s})} ${s}w`).join(", ")}updateSrcAndSrcset(r=!1){r&&(this._renderedSrc=null);let o=this.getRewrittenSrc();this.setHostAttribute("src",o);let i;return this.ngSrcset?i=this.getRewrittenSrcset():this.shouldGenerateAutomaticSrcset()&&(i=this.getAutomaticSrcset()),i&&this.setHostAttribute("srcset",i),i}getFixedSrcset(){return ty.map(o=>`${this.callImageLoader({src:this.ngSrc,width:this.width*o})} ${o}x`).join(", ")}shouldGenerateAutomaticSrcset(){let r=!1;return this.sizes||(r=this.width>ry||this.height>oy),!this.disableOptimizedSrcset&&!this.srcset&&this.imageLoader!==Uc&&!r}generatePlaceholder(r){let{placeholderResolution:o}=this.config;return r===!0?`url(${this.callImageLoader({src:this.ngSrc,width:o,isPlaceholder:!0})})`:typeof r=="string"&&r.startsWith("data:")?`url(${r})`:null}shouldBlurPlaceholder(r){return!r||!r.hasOwnProperty("blur")?!0:!!r.blur}removePlaceholderOnLoad(r){let o=()=>{let a=this.injector.get(ji);i(),s(),this.placeholder=!1,a.markForCheck()},i=this.renderer.listen(r,"load",o),s=this.renderer.listen(r,"error",o)}ngOnDestroy(){}setHostAttribute(r,o){this.renderer.setAttribute(this.imgElement,r,o)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275dir=Ut({type:t,selectors:[["img","ngSrc",""]],hostVars:18,hostBindings:function(o,i){o&2&&Pi("position",i.fill?"absolute":null)("width",i.fill?"100%":null)("height",i.fill?"100%":null)("inset",i.fill?"0":null)("background-size",i.placeholder?"cover":null)("background-position",i.placeholder?"50% 50%":null)("background-repeat",i.placeholder?"no-repeat":null)("background-image",i.placeholder?i.generatePlaceholder(i.placeholder):null)("filter",i.placeholder&&i.shouldBlurPlaceholder(i.placeholderConfig)?"blur(15px)":null)},inputs:{ngSrc:[B.HasDecoratorInputTransform,"ngSrc","ngSrc",sy],ngSrcset:"ngSrcset",sizes:"sizes",width:[B.HasDecoratorInputTransform,"width","width",Bi],height:[B.HasDecoratorInputTransform,"height","height",Bi],loading:"loading",priority:[B.HasDecoratorInputTransform,"priority","priority",Yt],loaderParams:"loaderParams",disableOptimizedSrcset:[B.HasDecoratorInputTransform,"disableOptimizedSrcset","disableOptimizedSrcset",Yt],fill:[B.HasDecoratorInputTransform,"fill","fill",Yt],placeholder:[B.HasDecoratorInputTransform,"placeholder","placeholder",ay],placeholderConfig:"placeholderConfig",src:"src",srcset:"srcset"},standalone:!0,features:[Ic,ui]});let e=t;return e})();function iy(e){let t={};return e.breakpoints&&(t.breakpoints=e.breakpoints.sort((n,r)=>n-r)),Object.assign({},yi,e,t)}function sy(e){return typeof e=="string"?e:zt(e)}function ay(e){return typeof e=="string"&&e.startsWith("data:")?e:Yt(e)}var Qt=function(e){return e[e.State=0]="State",e[e.Transition=1]="Transition",e[e.Sequence=2]="Sequence",e[e.Group=3]="Group",e[e.Animate=4]="Animate",e[e.Keyframes=5]="Keyframes",e[e.Style=6]="Style",e[e.Trigger=7]="Trigger",e[e.Reference=8]="Reference",e[e.AnimateChild=9]="AnimateChild",e[e.AnimateRef=10]="AnimateRef",e[e.Query=11]="Query",e[e.Stagger=12]="Stagger",e}(Qt||{}),Cb="*";function bb(e,t){return{type:Qt.Trigger,name:e,definitions:t,options:{}}}function _b(e,t=null){return{type:Qt.Sequence,steps:e,options:t}}function Mb(e){return{type:Qt.Style,styles:e,offset:null}}function xb(e,t,n){return{type:Qt.State,name:e,styles:t,options:n}}var Gc=class{constructor(t=0,n=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+n}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){let n=t=="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},zc=class{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let n=0,r=0,o=0,i=this.players.length;i==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++n==i&&this._onFinish()}),s.onDestroy(()=>{++r==i&&this._onDestroy()}),s.onStart(()=>{++o==i&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){let n=t*this.totalTime;this.players.forEach(r=>{let o=r.totalTime?Math.min(1,n/r.totalTime):1;r.setPosition(o)})}getPosition(){let t=this.players.reduce((n,r)=>n===null||r.totalTime>n.totalTime?r:n,null);return t!=null?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){let n=t=="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},Sb="!";export{wt as a,Et as b,uy as c,cy as d,ly as e,dy as f,tl as g,P as h,cl as i,Fr as j,Rr as k,ye as l,_t as m,Mt as n,ve as o,vl as p,Il as q,wl as r,Fe as s,le as t,Tl as u,Re as v,wn as w,Al as x,Ol as y,xt as z,_s as A,Fl as B,St as C,Pr as D,Rl as E,kl as F,xs as G,kr as H,Ll as I,jl as J,Vl as K,Bl as L,$l as M,Hl as N,x as O,va as P,A as Q,wa as R,sC as S,T,I as U,U as V,_ as W,At as X,B as Y,aC as Z,Fa as _,Ut as $,Fd as aa,Ha as ba,Ce as ca,uC as da,ui as ea,cC as fa,lC as ga,dC as ha,fC as ia,pC as ja,lr as ka,ht as la,Se as ma,Pe as na,hC as oa,gC as pa,qf as qa,Nu as ra,mC as sa,yC as ta,zt as ua,Fu as va,DC as wa,vC as xa,IC as ya,wC as za,EC as Aa,Ru as Ba,mp as Ca,vi as Da,CC as Ea,bC as Fa,_C as Ga,zn as Ha,MC as Ia,oe as Ja,xC as Ka,To as La,Oo as Ma,yr as Na,Oi as Oa,Q as Pa,vt as Qa,Dg as Ra,Ho as Sa,bg as Ta,wc as Ua,Ng as Va,Fg as Wa,$g as Xa,Pi as Ya,Hg as Za,bc as _a,_c as $a,Xg as ab,nm as bb,rm as cb,AC as db,am as eb,OC as fb,FC as gb,RC as hb,PC as ib,kC as jb,lm as kb,xc as lb,dm as mb,LC as nb,fm as ob,jC as pb,VC as qb,BC as rb,$C as sb,ki as tb,Em as ub,Ac as vb,HC as wb,ji as xb,UC as yb,Yt as zb,$i as Ab,pb as Bb,Fc as Cb,zi as Db,zm as Eb,hb as Fb,gb as Gb,mb as Hb,yb as Ib,Db as Jb,vb as Kb,Zm as Lb,Vc as Mb,Ib as Nb,Qt as Ob,Cb as Pb,bb as Qb,_b as Rb,Mb as Sb,xb as Tb,Gc as Ub,zc as Vb,Sb as Wb}; diff --git a/back-end/src/main/resources/static/chunk-P76PD3QM.js b/back-end/src/main/resources/static/chunk-P76PD3QM.js new file mode 100644 index 00000000..5425da07 --- /dev/null +++ b/back-end/src/main/resources/static/chunk-P76PD3QM.js @@ -0,0 +1 @@ +import{O as E,Ob as S,Pb as B,Q as gt,Rb as yt,Sb as Me,Ub as x,Vb as Ce,Wb as ue,a as he,c as pt}from"./chunk-C5GF3Q27.js";function _t(n){return new E(3e3,!1)}function Ht(){return new E(3100,!1)}function Yt(){return new E(3101,!1)}function Xt(n){return new E(3001,!1)}function Zt(n){return new E(3003,!1)}function Jt(n){return new E(3004,!1)}function xt(n,e){return new E(3005,!1)}function es(){return new E(3006,!1)}function ts(){return new E(3007,!1)}function ss(n,e){return new E(3008,!1)}function is(n){return new E(3002,!1)}function ns(n,e,t,s,i){return new E(3010,!1)}function rs(){return new E(3011,!1)}function as(){return new E(3012,!1)}function os(){return new E(3200,!1)}function ls(){return new E(3202,!1)}function hs(){return new E(3013,!1)}function us(n){return new E(3014,!1)}function cs(n){return new E(3015,!1)}function fs(n){return new E(3016,!1)}function ds(n){return new E(3500,!1)}function ms(n){return new E(3501,!1)}function ps(n,e){return new E(3404,!1)}function gs(n){return new E(3502,!1)}function ys(n){return new E(3503,!1)}function _s(){return new E(3300,!1)}function Es(n){return new E(3504,!1)}function Ss(n){return new E(3301,!1)}function Ts(n,e){return new E(3302,!1)}function vs(n){return new E(3303,!1)}function ws(n,e){return new E(3400,!1)}function bs(n){return new E(3401,!1)}function As(n){return new E(3402,!1)}function Ps(n,e){return new E(3505,!1)}var Ns=new Set(["-moz-outline-radius","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius-topleft","-moz-outline-radius-topright","-ms-grid-columns","-ms-grid-rows","-webkit-line-clamp","-webkit-text-fill-color","-webkit-text-stroke","-webkit-text-stroke-color","accent-color","all","backdrop-filter","background","background-color","background-position","background-size","block-size","border","border-block-end","border-block-end-color","border-block-end-width","border-block-start","border-block-start-color","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-width","border-color","border-end-end-radius","border-end-start-radius","border-image-outset","border-image-slice","border-image-width","border-inline-end","border-inline-end-color","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-width","border-left","border-left-color","border-left-width","border-radius","border-right","border-right-color","border-right-width","border-start-end-radius","border-start-start-radius","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-width","border-width","bottom","box-shadow","caret-color","clip","clip-path","color","column-count","column-gap","column-rule","column-rule-color","column-rule-width","column-width","columns","filter","flex","flex-basis","flex-grow","flex-shrink","font","font-size","font-size-adjust","font-stretch","font-variation-settings","font-weight","gap","grid-column-gap","grid-gap","grid-row-gap","grid-template-columns","grid-template-rows","height","inline-size","input-security","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","left","letter-spacing","line-clamp","line-height","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","mask","mask-border","mask-position","mask-size","max-block-size","max-height","max-inline-size","max-lines","max-width","min-block-size","min-height","min-inline-size","min-width","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","outline","outline-color","outline-offset","outline-width","padding","padding-block-end","padding-block-start","padding-bottom","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","perspective","perspective-origin","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-coordinate","scroll-snap-destination","scrollbar-color","shape-image-threshold","shape-margin","shape-outside","tab-size","text-decoration","text-decoration-color","text-decoration-thickness","text-emphasis","text-emphasis-color","text-indent","text-shadow","text-underline-offset","top","transform","transform-origin","translate","vertical-align","visibility","width","word-spacing","z-index","zoom"]);function U(n){switch(n.length){case 0:return new x;case 1:return n[0];default:return new Ce(n)}}function It(n,e,t=new Map,s=new Map){let i=[],r=[],a=-1,o=null;if(e.forEach(l=>{let h=l.get("offset"),c=h==a,u=c&&o||new Map;l.forEach((_,y)=>{let d=y,g=_;if(y!=="offset")switch(d=n.normalizePropertyName(d,i),g){case ue:g=t.get(y);break;case B:g=s.get(y);break;default:g=n.normalizeStyleValue(y,d,g,i);break}u.set(d,g)}),c||r.push(u),o=u,a=h}),i.length)throw gs(i);return r}function tt(n,e,t,s){switch(e){case"start":n.onStart(()=>s(t&&ke(t,"start",n)));break;case"done":n.onDone(()=>s(t&&ke(t,"done",n)));break;case"destroy":n.onDestroy(()=>s(t&&ke(t,"destroy",n)));break}}function ke(n,e,t){let s=t.totalTime,i=!!t.disabled,r=st(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,s??n.totalTime,i),a=n._data;return a!=null&&(r._data=a),r}function st(n,e,t,s,i="",r=0,a){return{element:n,triggerName:e,fromState:t,toState:s,phaseName:i,totalTime:r,disabled:!!a}}function L(n,e,t){let s=n.get(e);return s||n.set(e,s=t),s}function Et(n){let e=n.indexOf(":"),t=n.substring(1,e),s=n.slice(e+1);return[t,s]}var Ms=typeof document>"u"?null:document.documentElement;function it(n){let e=n.parentNode||n.host||null;return e===Ms?null:e}function Cs(n){return n.substring(1,6)=="ebkit"}var H=null,St=!1;function ks(n){H||(H=Ds()||{},St=H.style?"WebkitAppearance"in H.style:!1);let e=!0;return H.style&&!Cs(n)&&(e=n in H.style,!e&&St&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in H.style)),e}function Ai(n){return Ns.has(n)}function Ds(){return typeof document<"u"?document.body:null}function zt(n,e){for(;e;){if(e===n)return!0;e=it(e)}return!1}function Kt(n,e,t){if(t)return Array.from(n.querySelectorAll(e));let s=n.querySelector(e);return s?[s]:[]}var qt=(()=>{let e=class e{validateStyleProperty(s){return ks(s)}matchesElement(s,i){return!1}containsElement(s,i){return zt(s,i)}getParentElement(s){return it(s)}query(s,i,r){return Kt(s,i,r)}computeStyle(s,i,r){return r||""}animate(s,i,r,a,o,l=[],h){return new x(r,a)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=gt({token:e,factory:e.\u0275fac});let n=e;return n})(),ut=class ut{};ut.NOOP=new qt;var Tt=ut,Ie=class{},ze=class{normalizePropertyName(e,t){return e}normalizeStyleValue(e,t,s,i){return s}},Rs=1e3,Bt="{{",Os="}}",nt="ng-enter",ge="ng-leave",ce="ng-trigger",ye=".ng-trigger",vt="ng-animating",Ke=".ng-animating";function $(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:qe(parseFloat(e[1]),e[2])}function qe(n,e){switch(e){case"s":return n*Rs;default:return n}}function _e(n,e,t){return n.hasOwnProperty("duration")?n:Ls(n,e,t)}function Ls(n,e,t){let s=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,i,r=0,a="";if(typeof n=="string"){let o=n.match(s);if(o===null)return e.push(_t(n)),{duration:0,delay:0,easing:""};i=qe(parseFloat(o[1]),o[2]);let l=o[3];l!=null&&(r=qe(parseFloat(l),o[4]));let h=o[5];h&&(a=h)}else i=n;if(!t){let o=!1,l=e.length;i<0&&(e.push(Ht()),o=!0),r<0&&(e.push(Yt()),o=!0),o&&e.splice(l,0,_t(n))}return{duration:i,delay:r,easing:a}}function Fs(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function wt(n){return Array.isArray(n)?new Map(...n):new Map(n)}function Q(n,e,t){e.forEach((s,i)=>{let r=rt(i);t&&!t.has(i)&&t.set(i,n.style[r]),n.style[r]=s})}function X(n,e){e.forEach((t,s)=>{let i=rt(s);n.style[i]=""})}function ie(n){return Array.isArray(n)?n.length==1?n[0]:yt(n):n}function Is(n,e,t){let s=e.params||{},i=Qt(n);i.length&&i.forEach(r=>{s.hasOwnProperty(r)||t.push(Xt(r))})}var Be=new RegExp(`${Bt}\\s*(.+?)\\s*${Os}`,"g");function Qt(n){let e=[];if(typeof n=="string"){let t;for(;t=Be.exec(n);)e.push(t[1]);Be.lastIndex=0}return e}function re(n,e,t){let s=`${n}`,i=s.replace(Be,(r,a)=>{let o=e[a];return o==null&&(t.push(Zt(a)),o=""),o.toString()});return i==s?n:i}var zs=/-+([a-z0-9])/g;function rt(n){return n.replace(zs,(...e)=>e[1].toUpperCase())}function Pi(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Ks(n,e){return n===0||e===0}function qs(n,e,t){if(t.size&&e.length){let s=e[0],i=[];if(t.forEach((r,a)=>{s.has(a)||i.push(a),s.set(a,r)}),i.length)for(let r=1;ra.set(o,at(n,o)))}}return e}function O(n,e,t){switch(e.type){case S.Trigger:return n.visitTrigger(e,t);case S.State:return n.visitState(e,t);case S.Transition:return n.visitTransition(e,t);case S.Sequence:return n.visitSequence(e,t);case S.Group:return n.visitGroup(e,t);case S.Animate:return n.visitAnimate(e,t);case S.Keyframes:return n.visitKeyframes(e,t);case S.Style:return n.visitStyle(e,t);case S.Reference:return n.visitReference(e,t);case S.AnimateChild:return n.visitAnimateChild(e,t);case S.AnimateRef:return n.visitAnimateRef(e,t);case S.Query:return n.visitQuery(e,t);case S.Stagger:return n.visitStagger(e,t);default:throw Jt(e.type)}}function at(n,e){return window.getComputedStyle(n)[e]}var Bs=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Qe=class extends Ie{normalizePropertyName(e,t){return rt(e)}normalizeStyleValue(e,t,s,i){let r="",a=s.toString().trim();if(Bs.has(t)&&s!==0&&s!=="0")if(typeof s=="number")r="px";else{let o=s.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&o[1].length==0&&i.push(xt(e,s))}return a+r}};var Ee="*";function Qs(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(s=>$s(s,t,e)):t.push(n),t}function $s(n,e,t){if(n[0]==":"){let l=Vs(n,t);if(typeof l=="function"){e.push(l);return}n=l}let s=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(s==null||s.length<4)return t.push(cs(n)),e;let i=s[1],r=s[2],a=s[3];e.push(bt(i,a));let o=i==Ee&&a==Ee;r[0]=="<"&&!o&&e.push(bt(a,i))}function Vs(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,s)=>parseFloat(s)>parseFloat(t);case":decrement":return(t,s)=>parseFloat(s) *"}}var fe=new Set(["true","1"]),de=new Set(["false","0"]);function bt(n,e){let t=fe.has(n)||de.has(n),s=fe.has(e)||de.has(e);return(i,r)=>{let a=n==Ee||n==i,o=e==Ee||e==r;return!a&&t&&typeof i=="boolean"&&(a=i?fe.has(n):de.has(n)),!o&&s&&typeof r=="boolean"&&(o=r?fe.has(e):de.has(e)),a&&o}}var $t=":self",Us=new RegExp(`s*${$t}s*,?`,"g");function ot(n,e,t,s){return new $e(n).build(e,t,s)}var At="",$e=class{constructor(e){this._driver=e}build(e,t,s){let i=new Ve(t);return this._resetContextStyleTimingState(i),O(this,ie(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector=At,e.collectedStyles=new Map,e.collectedStyles.set(At,new Map),e.currentTime=0}visitTrigger(e,t){let s=t.queryCount=0,i=t.depCount=0,r=[],a=[];return e.name.charAt(0)=="@"&&t.errors.push(es()),e.definitions.forEach(o=>{if(this._resetContextStyleTimingState(t),o.type==S.State){let l=o,h=l.name;h.toString().split(/\s*,\s*/).forEach(c=>{l.name=c,r.push(this.visitState(l,t))}),l.name=h}else if(o.type==S.Transition){let l=this.visitTransition(o,t);s+=l.queryCount,i+=l.depCount,a.push(l)}else t.errors.push(ts())}),{type:S.Trigger,name:e.name,states:r,transitions:a,queryCount:s,depCount:i,options:null}}visitState(e,t){let s=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(s.containsDynamicStyles){let r=new Set,a=i||{};s.styles.forEach(o=>{o instanceof Map&&o.forEach(l=>{Qt(l).forEach(h=>{a.hasOwnProperty(h)||r.add(h)})})}),r.size&&t.errors.push(ss(e.name,[...r.values()]))}return{type:S.State,name:e.name,style:s,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let s=O(this,ie(e.animation),t),i=Qs(e.expr,t.errors);return{type:S.Transition,matchers:i,animation:s,queryCount:t.queryCount,depCount:t.depCount,options:Y(e.options)}}visitSequence(e,t){return{type:S.Sequence,steps:e.steps.map(s=>O(this,s,t)),options:Y(e.options)}}visitGroup(e,t){let s=t.currentTime,i=0,r=e.steps.map(a=>{t.currentTime=s;let o=O(this,a,t);return i=Math.max(i,t.currentTime),o});return t.currentTime=i,{type:S.Group,steps:r,options:Y(e.options)}}visitAnimate(e,t){let s=Hs(e.timings,t.errors);t.currentAnimateTimings=s;let i,r=e.styles?e.styles:Me({});if(r.type==S.Keyframes)i=this.visitKeyframes(r,t);else{let a=e.styles,o=!1;if(!a){o=!0;let h={};s.easing&&(h.easing=s.easing),a=Me(h)}t.currentTime+=s.duration+s.delay;let l=this.visitStyle(a,t);l.isEmptyStep=o,i=l}return t.currentAnimateTimings=null,{type:S.Animate,timings:s,style:i,options:null}}visitStyle(e,t){let s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,t){let s=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let o of i)typeof o=="string"?o===B?s.push(o):t.errors.push(is(o)):s.push(new Map(Object.entries(o)));let r=!1,a=null;return s.forEach(o=>{if(o instanceof Map&&(o.has("easing")&&(a=o.get("easing"),o.delete("easing")),!r)){for(let l of o.values())if(l.toString().indexOf(Bt)>=0){r=!0;break}}}),{type:S.Style,styles:s,easing:a,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let s=t.currentAnimateTimings,i=t.currentTime,r=t.currentTime;s&&r>0&&(r-=s.duration+s.delay),e.styles.forEach(a=>{typeof a!="string"&&a.forEach((o,l)=>{let h=t.collectedStyles.get(t.currentQuerySelector),c=h.get(l),u=!0;c&&(r!=i&&r>=c.startTime&&i<=c.endTime&&(t.errors.push(ns(l,c.startTime,c.endTime,r,i)),u=!1),r=c.startTime),u&&h.set(l,{startTime:r,endTime:i}),t.options&&Is(o,t.options,t.errors)})})}visitKeyframes(e,t){let s={type:S.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(rs()),s;let i=1,r=0,a=[],o=!1,l=!1,h=0,c=e.steps.map(b=>{let A=this._makeStyleAst(b,t),C=A.offset!=null?A.offset:Gs(A.styles),N=0;return C!=null&&(r++,N=A.offset=C),l=l||N<0||N>1,o=o||N0&&r{let C=_>0?A==y?1:_*A:a[A],N=C*v;t.currentTime=d+g.delay+N,g.duration=N,this._validateStyleAst(b,t),b.offset=C,s.styles.push(b)}),s}visitReference(e,t){return{type:S.Reference,animation:O(this,ie(e.animation),t),options:Y(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:S.AnimateChild,options:Y(e.options)}}visitAnimateRef(e,t){return{type:S.AnimateRef,animation:this.visitReference(e.animation,t),options:Y(e.options)}}visitQuery(e,t){let s=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;let[r,a]=js(e.selector);t.currentQuerySelector=s.length?s+" "+r:r,L(t.collectedStyles,t.currentQuerySelector,new Map);let o=O(this,ie(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=s,{type:S.Query,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:o,originalSelector:e.selector,options:Y(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(hs());let s=e.timings==="full"?{duration:0,delay:0,easing:"full"}:_e(e.timings,t.errors,!0);return{type:S.Stagger,animation:O(this,ie(e.animation),t),timings:s,options:null}}};function js(n){let e=!!n.split(/\s*,\s*/).find(t=>t==$t);return e&&(n=n.replace(Us,"")),n=n.replace(/@\*/g,ye).replace(/@\w+/g,t=>ye+"-"+t.slice(1)).replace(/:animating/g,Ke),[n,e]}function Ws(n){return n?he({},n):null}var Ve=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function Gs(n){if(typeof n=="string")return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){let s=t;e=parseFloat(s.get("offset")),s.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function Hs(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let r=_e(n,e).duration;return De(r,0,"")}let t=n;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=De(0,0,"");return r.dynamic=!0,r.strValue=t,r}let i=_e(t,e);return De(i.duration,i.delay,i.easing)}function Y(n){return n?(n=he({},n),n.params&&(n.params=Ws(n.params))):n={},n}function De(n,e,t){return{duration:n,delay:e,easing:t}}function lt(n,e,t,s,i,r,a=null,o=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:s,duration:i,delay:r,totalTime:i+r,easing:a,subTimeline:o}}var se=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let s=this._map.get(e);s||this._map.set(e,s=[]),s.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Ys=1,Xs=":enter",Zs=new RegExp(Xs,"g"),Js=":leave",xs=new RegExp(Js,"g");function ht(n,e,t,s,i,r=new Map,a=new Map,o,l,h=[]){return new Ue().buildKeyframes(n,e,t,s,i,r,a,o,l,h)}var Ue=class{buildKeyframes(e,t,s,i,r,a,o,l,h,c=[]){h=h||new se;let u=new je(e,t,h,i,r,c,[]);u.options=l;let _=l.delay?$(l.delay):0;u.currentTimeline.delayNextStep(_),u.currentTimeline.setStyles([a],null,u.errors,l),O(this,s,u);let y=u.timelines.filter(d=>d.containsAnimation());if(y.length&&o.size){let d;for(let g=y.length-1;g>=0;g--){let v=y[g];if(v.element===t){d=v;break}}d&&!d.allowOnlyTimelineStyles()&&d.setStyles([o],null,u.errors,l)}return y.length?y.map(d=>d.buildKeyframes()):[lt(t,[],[],[],0,_,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let s=t.subInstructions.get(t.element);if(s){let i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,a=this._visitSubInstructions(s,i,i.options);r!=a&&t.transformIntoNewTimeline(a)}t.previousNode=e}visitAnimateRef(e,t){let s=t.createSubContext(e.options);s.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,s),this.visitReference(e.animation,s),t.transformIntoNewTimeline(s.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,s){for(let i of e){let r=i?.delay;if(r){let a=typeof r=="number"?r:$(re(r,i?.params??{},t.errors));s.delayNextStep(a)}}}_visitSubInstructions(e,t,s){let r=t.currentTimeline.currentTime,a=s.duration!=null?$(s.duration):null,o=s.delay!=null?$(s.delay):null;return a!==0&&e.forEach(l=>{let h=t.appendInstructionToTimeline(l,a,o);r=Math.max(r,h.duration+h.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),O(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let s=t.subContextCount,i=t,r=e.options;if(r&&(r.params||r.delay)&&(i=t.createSubContext(r),i.transformIntoNewTimeline(),r.delay!=null)){i.previousNode.type==S.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Se);let a=$(r.delay);i.delayNextStep(a)}e.steps.length&&(e.steps.forEach(a=>O(this,a,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>s&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let s=[],i=t.currentTimeline.currentTime,r=e.options&&e.options.delay?$(e.options.delay):0;e.steps.forEach(a=>{let o=t.createSubContext(e.options);r&&o.delayNextStep(r),O(this,a,o),i=Math.max(i,o.currentTimeline.currentTime),s.push(o.currentTimeline)}),s.forEach(a=>t.currentTimeline.mergeTimelineCollectedStyles(a)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let s=e.strValue,i=t.params?re(s,t.params,t.errors):s;return _e(i,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let s=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;s.delay&&(t.incrementTime(s.delay),i.snapshotCurrentStyles());let r=e.style;r.type==S.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(s.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let s=t.currentTimeline,i=t.currentAnimateTimings;!i&&s.hasCurrentStyleProperties()&&s.forwardFrame();let r=i&&i.easing||e.easing;e.isEmptyStep?s.applyEmptyStep(r):s.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let s=t.currentAnimateTimings,i=t.currentTimeline.duration,r=s.duration,o=t.createSubContext().currentTimeline;o.easing=s.easing,e.styles.forEach(l=>{let h=l.offset||0;o.forwardTime(h*r),o.setStyles(l.styles,l.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e}visitQuery(e,t){let s=t.currentTimeline.currentTime,i=e.options||{},r=i.delay?$(i.delay):0;r&&(t.previousNode.type===S.Style||s==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Se);let a=s,o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=o.length;let l=null;o.forEach((h,c)=>{t.currentQueryIndex=c;let u=t.createSubContext(e.options,h);r&&u.delayNextStep(r),h===t.element&&(l=u.currentTimeline),O(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let _=u.currentTimeline.currentTime;a=Math.max(a,_)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let s=t.parentContext,i=t.currentTimeline,r=e.timings,a=Math.abs(r.duration),o=a*(t.currentQueryTotal-1),l=a*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=o-l;break;case"full":l=s.currentStaggerTime;break}let c=t.currentTimeline;l&&c.delayNextStep(l);let u=c.currentTime;O(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=i.currentTime-u+(i.startTime-s.currentTimeline.startTime)}},Se={},je=class n{constructor(e,t,s,i,r,a,o,l){this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=i,this._leaveClassName=r,this.errors=a,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Se,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Te(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let s=e,i=this.options;s.duration!=null&&(i.duration=$(s.duration)),s.delay!=null&&(i.delay=$(s.delay));let r=s.params;if(r){let a=i.params;a||(a=this.options.params={}),Object.keys(r).forEach(o=>{(!t||!a.hasOwnProperty(o))&&(a[o]=re(r[o],a,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let s=e.params={};Object.keys(t).forEach(i=>{s[i]=t[i]})}}return e}createSubContext(e=null,t,s){let i=t||this.element,r=new n(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,s||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=Se,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){let i={duration:t??e.duration,delay:this.currentTimeline.currentTime+(s??0)+e.delay,easing:""},r=new We(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,s,i,r,a){let o=[];if(i&&o.push(this.element),e.length>0){e=e.replace(Zs,"."+this._enterClassName),e=e.replace(xs,"."+this._leaveClassName);let l=s!=1,h=this._driver.query(this.element,e,l);s!==0&&(h=s<0?h.slice(h.length+s,h.length):h.slice(0,s)),o.push(...h)}return!r&&o.length==0&&a.push(us(t)),o}},Te=class n{constructor(e,t,s,i){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=i,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new n(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Ys,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,s]of this._globalTimelineStyles)this._backFill.set(t,s||B),this._currentKeyframe.set(t,B);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,s,i){t&&this._previousKeyframe.set("easing",t);let r=i&&i.params||{},a=ei(e,this._globalTimelineStyles);for(let[o,l]of a){let h=re(l,r,s);this._pendingStyles.set(o,h),this._localTimelineStyles.has(o)||this._backFill.set(o,this._globalTimelineStyles.get(o)??B),this._updateStyle(o,h)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,s)=>{let i=this._styleSummary.get(s);(!i||t.time>i.time)&&this._updateStyle(s,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,s=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((o,l)=>{let h=new Map([...this._backFill,...o]);h.forEach((c,u)=>{c===ue?e.add(u):c===B&&t.add(u)}),s||h.set("offset",l/this.duration),i.push(h)});let r=[...e.values()],a=[...t.values()];if(s){let o=i[0],l=new Map(o);o.set("offset",0),l.set("offset",1),i=[o,l]}return lt(this.element,i,r,a,this.duration,this.startTime,this.easing,!1)}},We=class extends Te{constructor(e,t,s,i,r,a,o=!1){super(e,t,a.delay),this.keyframes=s,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:s,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],a=s+t,o=t/a,l=new Map(e[0]);l.set("offset",0),r.push(l);let h=new Map(e[0]);h.set("offset",Pt(o)),r.push(h);let c=e.length-1;for(let u=1;u<=c;u++){let _=new Map(e[u]),y=_.get("offset"),d=t+y*s;_.set("offset",Pt(d/a)),r.push(_)}s=a,t=0,i="",e=r}return lt(this.element,e,this.preStyleProps,this.postStyleProps,s,t,i,!0)}};function Pt(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function ei(n,e){let t=new Map,s;return n.forEach(i=>{if(i==="*"){s??=e.keys();for(let r of s)t.set(r,B)}else for(let[r,a]of i)t.set(r,a)}),t}function Nt(n,e,t,s,i,r,a,o,l,h,c,u,_){return{type:0,element:n,triggerName:e,isRemovalTransition:i,fromState:t,fromStyles:r,toState:s,toStyles:a,timelines:o,queriedElements:l,preStyleProps:h,postStyleProps:c,totalTime:u,errors:_}}var Re={},ve=class{constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s}match(e,t,s,i){return ti(this.ast.matchers,e,t,s,i)}buildStyles(e,t,s){let i=this._stateStyles.get("*");return e!==void 0&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(t,s):new Map}build(e,t,s,i,r,a,o,l,h,c){let u=[],_=this.ast.options&&this.ast.options.params||Re,y=o&&o.params||Re,d=this.buildStyles(s,y,u),g=l&&l.params||Re,v=this.buildStyles(i,g,u),b=new Set,A=new Map,C=new Map,N=i==="void",Z={params:Vt(g,_),delay:this.ast.options?.delay},K=c?[]:ht(e,t,this.ast.animation,r,a,d,v,Z,h,u),k=0;return K.forEach(D=>{k=Math.max(D.duration+D.delay,k)}),u.length?Nt(t,this._triggerName,s,i,N,d,v,[],[],A,C,k,u):(K.forEach(D=>{let j=D.element,J=L(A,j,new Set);D.preStyleProps.forEach(W=>J.add(W));let ct=L(C,j,new Set);D.postStyleProps.forEach(W=>ct.add(W)),j!==t&&b.add(j)}),Nt(t,this._triggerName,s,i,N,d,v,K,[...b.values()],A,C,k))}};function ti(n,e,t,s,i){return n.some(r=>r(e,t,s,i))}function Vt(n,e){let t=he({},e);return Object.entries(n).forEach(([s,i])=>{i!=null&&(t[s]=i)}),t}var Ge=class{constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){let s=new Map,i=Vt(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((a,o)=>{a&&(a=re(a,i,t));let l=this.normalizer.normalizePropertyName(o,t);a=this.normalizer.normalizeStyleValue(o,l,a,t),s.set(o,a)})}),s}};function si(n,e,t){return new He(n,e,t)}var He=class{constructor(e,t,s){this.name=e,this.ast=t,this._normalizer=s,this.transitionFactories=[],this.states=new Map,t.states.forEach(i=>{let r=i.options&&i.options.params||{};this.states.set(i.name,new Ge(i.style,r,s))}),Mt(this.states,"true","1"),Mt(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new ve(e,i,this.states))}),this.fallbackTransition=ii(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,i){return this.transitionFactories.find(a=>a.match(e,t,s,i))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}};function ii(n,e,t){let s=[(a,o)=>!0],i={type:S.Sequence,steps:[],options:null},r={type:S.Transition,animation:i,matchers:s,options:null,queryCount:0,depCount:0};return new ve(n,r,e)}function Mt(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}var ni=new se,Ye=class{constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let s=[],i=[],r=ot(this._driver,t,s,i);if(s.length)throw ys(s);i.length&&void 0,this._animations.set(e,r)}_buildPlayer(e,t,s){let i=e.element,r=It(this._normalizer,e.keyframes,t,s);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,s={}){let i=[],r=this._animations.get(e),a,o=new Map;if(r?(a=ht(this._driver,t,r,nt,ge,new Map,new Map,s,ni,i),a.forEach(c=>{let u=L(o,c.element,new Map);c.postStyleProps.forEach(_=>u.set(_,null))})):(i.push(_s()),a=[]),i.length)throw Es(i);o.forEach((c,u)=>{c.forEach((_,y)=>{c.set(y,this._driver.computeStyle(u,y,B))})});let l=a.map(c=>{let u=o.get(c.element);return this._buildPlayer(c,new Map,u)}),h=U(l);return this._playersById.set(e,h),h.onDestroy(()=>this.destroy(e)),this.players.push(h),h}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let s=this.players.indexOf(t);s>=0&&this.players.splice(s,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Ss(e);return t}listen(e,t,s,i){let r=st(t,"","","");return tt(this._getPlayer(e),s,r,i),()=>{}}command(e,t,s,i){if(s=="register"){this.register(e,i[0]);return}if(s=="create"){let a=i[0]||{};this.create(e,t,a);return}let r=this._getPlayer(e);switch(s){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e);break}}},Ct="ng-animate-queued",ri=".ng-animate-queued",Oe="ng-animate-disabled",ai=".ng-animate-disabled",oi="ng-star-inserted",li=".ng-star-inserted",hi=[],Ut={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ui={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},z="__ng_removed",ae=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let s=e&&e.hasOwnProperty("value"),i=s?e.value:e;if(this.value=fi(i),s){let r=e,{value:a}=r,o=pt(r,["value"]);this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let s=this.options.params;Object.keys(t).forEach(i=>{s[i]==null&&(s[i]=t[i])})}}},ne="void",Le=new ae(ne),Xe=class{constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,I(t,this._hostClassName)}listen(e,t,s,i){if(!this._triggers.has(t))throw Ts(s,t);if(s==null||s.length==0)throw vs(t);if(!di(s))throw ws(s,t);let r=L(this._elementListeners,e,[]),a={name:t,phase:s,callback:i};r.push(a);let o=L(this._engine.statesByElement,e,new Map);return o.has(t)||(I(e,ce),I(e,ce+"-"+t),o.set(t,Le)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(a);l>=0&&r.splice(l,1),this._triggers.has(t)||o.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw bs(e);return t}trigger(e,t,s,i=!0){let r=this._getTrigger(t),a=new oe(this.id,t,e),o=this._engine.statesByElement.get(e);o||(I(e,ce),I(e,ce+"-"+t),this._engine.statesByElement.set(e,o=new Map));let l=o.get(t),h=new ae(s,this.id);if(!(s&&s.hasOwnProperty("value"))&&l&&h.absorbOptions(l.options),o.set(t,h),l||(l=Le),!(h.value===ne)&&l.value===h.value){if(!gi(l.params,h.params)){let g=[],v=r.matchStyles(l.value,l.params,g),b=r.matchStyles(h.value,h.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{X(e,v),Q(e,b)})}return}let _=L(this._engine.playersByElement,e,[]);_.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let y=r.matchTransition(l.value,h.value,e,h.params),d=!1;if(!y){if(!i)return;y=r.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:h,player:a,isFallbackTransition:d}),d||(I(e,Ct),a.onStart(()=>{ee(e,Ct)})),a.onDone(()=>{let g=this.players.indexOf(a);g>=0&&this.players.splice(g,1);let v=this._engine.playersByElement.get(e);if(v){let b=v.indexOf(a);b>=0&&v.splice(b,1)}}),this.players.push(a),_.push(a),a}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,s)=>{this._elementListeners.set(s,t.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(s=>s.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let s=this._engine.driver.query(e,ye,!0);s.forEach(i=>{if(i[z])return;let r=this._engine.fetchNamespacesByElement(i);r.size?r.forEach(a=>a.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>s.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,t,s,i){let r=this._engine.statesByElement.get(e),a=new Map;if(r){let o=[];if(r.forEach((l,h)=>{if(a.set(h,l.value),this._triggers.has(h)){let c=this.trigger(e,h,ne,i);c&&o.push(c)}}),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,a),s&&U(o).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),s=this._engine.statesByElement.get(e);if(t&&s){let i=new Set;t.forEach(r=>{let a=r.name;if(i.has(a))return;i.add(a);let l=this._triggers.get(a).fallbackTransition,h=s.get(a)||Le,c=new ae(ne),u=new oe(this.id,a,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:a,transition:l,fromState:h,toState:c,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let s=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(s.totalAnimations){let r=s.players.length?s.playersByQueriedElement.get(e):[];if(r&&r.length)i=!0;else{let a=e;for(;a=a.parentNode;)if(s.statesByElement.get(a)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)s.markElementAsRemoved(this.id,e,!1,t);else{let r=e[z];(!r||r===Ut)&&(s.afterFlush(()=>this.clearElementCache(e)),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){I(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(s=>{let i=s.player;if(i.destroyed)return;let r=s.element,a=this._elementListeners.get(r);a&&a.forEach(o=>{if(o.name==s.triggerName){let l=st(r,s.triggerName,s.fromState.value,s.toState.value);l._data=e,tt(s.player,o.phase,l,o.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(s)}),this._queue=[],t.sort((s,i)=>{let r=s.transition.ast.depCount,a=i.transition.ast.depCount;return r==0||a==0?r-a:this._engine.driver.containsElement(s.element,i.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Ze=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,s,i){this.bodyNode=e,this.driver=t,this._normalizer=s,this.scheduler=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,a)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(s=>{s.queued&&e.push(s)})}),e}createNamespace(e,t){let s=new Xe(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(s,t):(this.newHostElements.set(t,s),this.collectEnterElement(t)),this._namespaceLookup[e]=s}_balanceNamespaceList(e,t){let s=this._namespaceList,i=this.namespacesByHostElement;if(s.length-1>=0){let a=!1,o=this.driver.getParentElement(t);for(;o;){let l=i.get(o);if(l){let h=s.indexOf(l);s.splice(h+1,0,e),a=!0;break}o=this.driver.getParentElement(o)}a||s.unshift(e)}else s.push(e);return i.set(t,e),e}register(e,t){let s=this._namespaceLookup[e];return s||(s=this.createNamespace(e,t)),s}registerTrigger(e,t,s){let i=this._namespaceLookup[e];i&&i.register(t,s)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let s=this._fetchNamespace(e);this.namespacesByHostElement.delete(s.hostElement);let i=this._namespaceList.indexOf(s);i>=0&&this._namespaceList.splice(i,1),s.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,s=this.statesByElement.get(e);if(s){for(let i of s.values())if(i.namespaceId){let r=this._fetchNamespace(i.namespaceId);r&&t.add(r)}}return t}trigger(e,t,s,i){if(me(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,s,i),!0}return!1}insertNode(e,t,s,i){if(!me(t))return;let r=t[z];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let a=this.collectedLeaveElements.indexOf(t);a>=0&&this.collectedLeaveElements.splice(a,1)}if(e){let a=this._fetchNamespace(e);a&&a.insertNode(t,s)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),I(e,Oe)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ee(e,Oe))}removeNode(e,t,s){if(me(t)){this.scheduler?.notify();let i=e?this._fetchNamespace(e):null;i?i.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,s)}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,s,i,r){this.collectedLeaveElements.push(t),t[z]={namespaceId:e,setForRemoval:i,hasAnimation:s,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,s,i,r){return me(t)?this._fetchNamespace(e).listen(t,s,i,r):()=>{}}_buildInstruction(e,t,s,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,i,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,ye,!0);t.forEach(s=>this.destroyActiveAnimationsForElement(s)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Ke,!0),t.forEach(s=>this.finishActiveQueriedAnimationOnElement(s)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(s=>{s.queued?s.markedForDestroy=!0:s.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(s=>s.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return U(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[z];if(t&&t.setForRemoval){if(e[z]=Ut,t.namespaceId){this.destroyInnerAnimations(e);let s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Oe)&&this.markElementAsDisabled(e,!1),this.driver.query(e,ai,!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((s,i)=>this._balanceNamespaceList(s,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let s=0;ss()),this._flushFns=[],this._whenQuietFns.length){let s=this._whenQuietFns;this._whenQuietFns=[],t.length?U(t).onDone(()=>{s.forEach(i=>i())}):s.forEach(i=>i())}}reportError(e){throw As(e)}_flushAnimations(e,t){let s=new se,i=[],r=new Map,a=[],o=new Map,l=new Map,h=new Map,c=new Set;this.disabledNodes.forEach(f=>{c.add(f);let m=this.driver.query(f,ri,!0);for(let p=0;p{let p=nt+g++;d.set(m,p),f.forEach(T=>I(T,p))});let v=[],b=new Set,A=new Set;for(let f=0;fb.add(T)):A.add(m))}let C=new Map,N=Rt(_,Array.from(b));N.forEach((f,m)=>{let p=ge+g++;C.set(m,p),f.forEach(T=>I(T,p))}),e.push(()=>{y.forEach((f,m)=>{let p=d.get(m);f.forEach(T=>ee(T,p))}),N.forEach((f,m)=>{let p=C.get(m);f.forEach(T=>ee(T,p))}),v.forEach(f=>{this.processLeaveNode(f)})});let Z=[],K=[];for(let f=this._namespaceList.length-1;f>=0;f--)this._namespaceList[f].drainQueuedTransitions(t).forEach(p=>{let T=p.player,P=p.element;if(Z.push(T),this.collectedEnterElements.length){let M=P[z];if(M&&M.setForMove){if(M.previousTriggersValues&&M.previousTriggersValues.has(p.triggerName)){let G=M.previousTriggersValues.get(p.triggerName),F=this.statesByElement.get(p.element);if(F&&F.has(p.triggerName)){let le=F.get(p.triggerName);le.value=G,F.set(p.triggerName,le)}}T.destroy();return}}let q=!u||!this.driver.containsElement(u,P),R=C.get(P),V=d.get(P),w=this._buildInstruction(p,s,V,R,q);if(w.errors&&w.errors.length){K.push(w);return}if(q){T.onStart(()=>X(P,w.fromStyles)),T.onDestroy(()=>Q(P,w.toStyles)),i.push(T);return}if(p.isFallbackTransition){T.onStart(()=>X(P,w.fromStyles)),T.onDestroy(()=>Q(P,w.toStyles)),i.push(T);return}let mt=[];w.timelines.forEach(M=>{M.stretchStartingKeyframe=!0,this.disabledNodes.has(M.element)||mt.push(M)}),w.timelines=mt,s.append(P,w.timelines);let Gt={instruction:w,player:T,element:P};a.push(Gt),w.queriedElements.forEach(M=>L(o,M,[]).push(T)),w.preStyleProps.forEach((M,G)=>{if(M.size){let F=l.get(G);F||l.set(G,F=new Set),M.forEach((le,Ne)=>F.add(Ne))}}),w.postStyleProps.forEach((M,G)=>{let F=h.get(G);F||h.set(G,F=new Set),M.forEach((le,Ne)=>F.add(Ne))})});if(K.length){let f=[];K.forEach(m=>{f.push(Ps(m.triggerName,m.errors))}),Z.forEach(m=>m.destroy()),this.reportError(f)}let k=new Map,D=new Map;a.forEach(f=>{let m=f.element;s.has(m)&&(D.set(m,m),this._beforeAnimationBuild(f.player.namespaceId,f.instruction,k))}),i.forEach(f=>{let m=f.element;this._getPreviousPlayers(m,!1,f.namespaceId,f.triggerName,null).forEach(T=>{L(k,m,[]).push(T),T.destroy()})});let j=v.filter(f=>Ot(f,l,h)),J=new Map;Dt(J,this.driver,A,h,B).forEach(f=>{Ot(f,l,h)&&j.push(f)});let W=new Map;y.forEach((f,m)=>{Dt(W,this.driver,new Set(f),l,ue)}),j.forEach(f=>{let m=J.get(f),p=W.get(f);J.set(f,new Map([...m?.entries()??[],...p?.entries()??[]]))});let Pe=[],ft=[],dt={};a.forEach(f=>{let{element:m,player:p,instruction:T}=f;if(s.has(m)){if(c.has(m)){p.onDestroy(()=>Q(m,T.toStyles)),p.disabled=!0,p.overrideTotalTime(T.totalTime),i.push(p);return}let P=dt;if(D.size>1){let R=m,V=[];for(;R=R.parentNode;){let w=D.get(R);if(w){P=w;break}V.push(R)}V.forEach(w=>D.set(w,P))}let q=this._buildAnimation(p.namespaceId,T,k,r,W,J);if(p.setRealPlayer(q),P===dt)Pe.push(p);else{let R=this.playersByElement.get(P);R&&R.length&&(p.parentPlayer=U(R)),i.push(p)}}else X(m,T.fromStyles),p.onDestroy(()=>Q(m,T.toStyles)),ft.push(p),c.has(m)&&i.push(p)}),ft.forEach(f=>{let m=r.get(f.element);if(m&&m.length){let p=U(m);f.setRealPlayer(p)}}),i.forEach(f=>{f.parentPlayer?f.syncPlayerEvents(f.parentPlayer):f.destroy()});for(let f=0;f!q.destroyed);P.length?mi(this,m,P):this.processLeaveNode(m)}return v.length=0,Pe.forEach(f=>{this.players.push(f),f.onDone(()=>{f.destroy();let m=this.players.indexOf(f);this.players.splice(m,1)}),f.play()}),Pe}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,s,i,r){let a=[];if(t){let o=this.playersByQueriedElement.get(e);o&&(a=o)}else{let o=this.playersByElement.get(e);if(o){let l=!r||r==ne;o.forEach(h=>{h.queued||!l&&h.triggerName!=i||a.push(h)})}}return(s||i)&&(a=a.filter(o=>!(s&&s!=o.namespaceId||i&&i!=o.triggerName))),a}_beforeAnimationBuild(e,t,s){let i=t.triggerName,r=t.element,a=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:i;for(let l of t.timelines){let h=l.element,c=h!==r,u=L(s,h,[]);this._getPreviousPlayers(h,c,a,o,t.toState).forEach(y=>{let d=y.getRealPlayer();d.beforeDestroy&&d.beforeDestroy(),y.destroy(),u.push(y)})}X(r,t.fromStyles)}_buildAnimation(e,t,s,i,r,a){let o=t.triggerName,l=t.element,h=[],c=new Set,u=new Set,_=t.timelines.map(d=>{let g=d.element;c.add(g);let v=g[z];if(v&&v.removedBeforeQueried)return new x(d.duration,d.delay);let b=g!==l,A=pi((s.get(g)||hi).map(k=>k.getRealPlayer())).filter(k=>{let D=k;return D.element?D.element===g:!1}),C=r.get(g),N=a.get(g),Z=It(this._normalizer,d.keyframes,C,N),K=this._buildPlayer(d,Z,A);if(d.subTimeline&&i&&u.add(g),b){let k=new oe(e,o,g);k.setRealPlayer(K),h.push(k)}return K});h.forEach(d=>{L(this.playersByQueriedElement,d.element,[]).push(d),d.onDone(()=>ci(this.playersByQueriedElement,d.element,d))}),c.forEach(d=>I(d,vt));let y=U(_);return y.onDestroy(()=>{c.forEach(d=>ee(d,vt)),Q(l,t.toStyles)}),u.forEach(d=>{L(i,d,[]).push(y)}),y}_buildPlayer(e,t,s){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,s):new x(e.duration,e.delay)}},oe=class{constructor(e,t,s){this.namespaceId=e,this.triggerName=t,this.element=s,this._player=new x,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,s)=>{t.forEach(i=>tt(e,s,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){L(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function ci(n,e,t){let s=n.get(e);if(s){if(s.length){let i=s.indexOf(t);s.splice(i,1)}s.length==0&&n.delete(e)}return s}function fi(n){return n??null}function me(n){return n&&n.nodeType===1}function di(n){return n=="start"||n=="done"}function kt(n,e){let t=n.style.display;return n.style.display=e??"none",t}function Dt(n,e,t,s,i){let r=[];t.forEach(l=>r.push(kt(l)));let a=[];s.forEach((l,h)=>{let c=new Map;l.forEach(u=>{let _=e.computeStyle(h,u,i);c.set(u,_),(!_||_.length==0)&&(h[z]=ui,a.push(h))}),n.set(h,c)});let o=0;return t.forEach(l=>kt(l,r[o++])),a}function Rt(n,e){let t=new Map;if(n.forEach(o=>t.set(o,[])),e.length==0)return t;let s=1,i=new Set(e),r=new Map;function a(o){if(!o)return s;let l=r.get(o);if(l)return l;let h=o.parentNode;return t.has(h)?l=h:i.has(h)?l=s:l=a(h),r.set(o,l),l}return e.forEach(o=>{let l=a(o);l!==s&&t.get(l).push(o)}),t}function I(n,e){n.classList?.add(e)}function ee(n,e){n.classList?.remove(e)}function mi(n,e,t){U(t).onDone(()=>n.processLeaveNode(e))}function pi(n){let e=[];return jt(n,e),e}function jt(n,e){for(let t=0;ti.add(r)):e.set(n,s),t.delete(n),!0}var we=class{constructor(e,t,s,i){this._driver=t,this._normalizer=s,this._triggerCache={},this.onRemovalComplete=(r,a)=>{},this._transitionEngine=new Ze(e.body,t,s,i),this._timelineEngine=new Ye(e.body,t,s),this._transitionEngine.onRemovalComplete=(r,a)=>this.onRemovalComplete(r,a)}registerTrigger(e,t,s,i,r){let a=e+"-"+i,o=this._triggerCache[a];if(!o){let l=[],h=[],c=ot(this._driver,r,l,h);if(l.length)throw ps(i,l);h.length&&void 0,o=si(i,c,this._normalizer),this._triggerCache[a]=o}this._transitionEngine.registerTrigger(t,i,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,s,i){this._transitionEngine.insertNode(e,t,s,i)}onRemove(e,t,s){this._transitionEngine.removeNode(e,t,s)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,s,i){if(s.charAt(0)=="@"){let[r,a]=Et(s),o=i;this._timelineEngine.command(r,t,a,o)}else this._transitionEngine.trigger(e,t,s,i)}listen(e,t,s,i,r){if(s.charAt(0)=="@"){let[a,o]=Et(s);return this._timelineEngine.listen(a,t,o,r)}return this._transitionEngine.listen(e,t,s,i,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function yi(n,e){let t=null,s=null;return Array.isArray(e)&&e.length?(t=Fe(e[0]),e.length>1&&(s=Fe(e[e.length-1]))):e instanceof Map&&(t=Fe(e)),t||s?new Je(n,t,s):null}var te=class te{constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let i=te.initialStylesByElement.get(e);i||te.initialStylesByElement.set(e,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&Q(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Q(this._element,this._initialStyles),this._endStyles&&(Q(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(te.initialStylesByElement.delete(this._element),this._startStyles&&(X(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(X(this._element,this._endStyles),this._endStyles=null),Q(this._element,this._initialStyles),this._state=3)}};te.initialStylesByElement=new WeakMap;var Je=te;function Fe(n){let e=null;return n.forEach((t,s)=>{_i(s)&&(e=e||new Map,e.set(s,t))}),e}function _i(n){return n==="display"||n==="position"}var be=class{constructor(e,t,s,i){this.element=e,this.keyframes=t,this.options=s,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=s.duration,this._delay=s.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(s=>{t.push(Object.fromEntries(s))}),t}_triggerWebAnimation(e,t,s){return e.animate(this._convertKeyframesToObject(t),s)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((s,i)=>{i!=="offset"&&e.set(i,this._finished?s:at(this.element,i))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},xe=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,t){return!1}containsElement(e,t){return zt(e,t)}getParentElement(e){return it(e)}query(e,t,s){return Kt(e,t,s)}computeStyle(e,t,s){return at(e,t)}animate(e,t,s,i,r,a=[]){let o=i==0?"both":"forwards",l={duration:s,delay:i,fill:o};r&&(l.easing=r);let h=new Map,c=a.filter(y=>y instanceof be);Ks(s,i)&&c.forEach(y=>{y.currentSnapshot.forEach((d,g)=>h.set(g,d))});let u=Fs(t).map(y=>new Map(y));u=qs(e,u,h);let _=yi(e,u);return new be(e,u,l,_)}};function Ni(n,e,t){return n==="noop"?new we(e,new qt,new ze,t):new we(e,new xe,new Qe,t)}var Lt=class{constructor(e,t){this._driver=e;let s=[],i=[],r=ot(e,t,s,i);if(s.length)throw ds(s);i.length&&void 0,this._animationAst=r}buildTimelines(e,t,s,i,r){let a=Array.isArray(t)?wt(t):t,o=Array.isArray(s)?wt(s):s,l=[];r=r||new se;let h=ht(this._driver,e,this._animationAst,nt,ge,a,o,i,r,l);if(l.length)throw ms(l);return h}},pe="@",Wt="@.disabled",Ae=class{constructor(e,t,s,i){this.namespaceId=e,this.delegate=t,this.engine=s,this._onDestroy=i,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,s,i=!0){this.delegate.insertBefore(e,t,s),this.engine.onInsert(this.namespaceId,t,e,i)}removeChild(e,t,s){this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,s,i){this.delegate.setAttribute(e,t,s,i)}removeAttribute(e,t,s){this.delegate.removeAttribute(e,t,s)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,s,i){this.delegate.setStyle(e,t,s,i)}removeStyle(e,t,s){this.delegate.removeStyle(e,t,s)}setProperty(e,t,s){t.charAt(0)==pe&&t==Wt?this.disableAnimations(e,!!s):this.delegate.setProperty(e,t,s)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,s){return this.delegate.listen(e,t,s)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},et=class extends Ae{constructor(e,t,s,i,r){super(t,s,i,r),this.factory=e,this.namespaceId=t}setProperty(e,t,s){t.charAt(0)==pe?t.charAt(1)=="."&&t==Wt?(s=s===void 0?!0:!!s,this.disableAnimations(e,s)):this.engine.process(this.namespaceId,e,t.slice(1),s):this.delegate.setProperty(e,t,s)}listen(e,t,s){if(t.charAt(0)==pe){let i=Ei(e),r=t.slice(1),a="";return r.charAt(0)!=pe&&([r,a]=Si(r)),this.engine.listen(this.namespaceId,i,r,a,o=>{let l=o._data||-1;this.factory.scheduleListenerCallback(l,s,o)})}return this.delegate.listen(e,t,s)}};function Ei(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function Si(n){let e=n.indexOf("."),t=n.substring(0,e),s=n.slice(e+1);return[t,s]}var Ft=class{constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(i,r)=>{let a=r?.parentNode(i);a&&r.removeChild(a,i)}}createRenderer(e,t){let s="",i=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let h=this._rendererCache,c=h.get(i);if(!c){let u=()=>h.delete(i);c=new Ae(s,i,this.engine,u),h.set(i,c)}return c}let r=t.id,a=t.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);let o=h=>{Array.isArray(h)?h.forEach(o):this.engine.registerTrigger(r,a,e,h.name,h)};return t.data.animation.forEach(o),new et(this,a,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,s){if(e>=0&&et(s));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(r=>{let[a,o]=r;a(o)}),this._animationCallbacksBuffer=[]})}),i.push([t,s])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};export{Tt as AnimationDriver,qt as NoopAnimationDriver,Lt as \u0275Animation,we as \u0275AnimationEngine,et as \u0275AnimationRenderer,Ft as \u0275AnimationRendererFactory,Ie as \u0275AnimationStyleNormalizer,Ae as \u0275BaseAnimationRenderer,ze as \u0275NoopAnimationStyleNormalizer,xe as \u0275WebAnimationsDriver,be as \u0275WebAnimationsPlayer,Qe as \u0275WebAnimationsStyleNormalizer,Ks as \u0275allowPreviousPlayerStylesMerge,Pi as \u0275camelCaseToDashCase,zt as \u0275containsElement,Ni as \u0275createEngine,it as \u0275getParentElement,Kt as \u0275invokeQuery,Fs as \u0275normalizeKeyframes,ks as \u0275validateStyleProperty,Ai as \u0275validateWebAnimatableStyleProperty}; diff --git a/back-end/src/main/resources/static/index.html b/back-end/src/main/resources/static/index.html index 8a8ee995..9455177a 100644 --- a/back-end/src/main/resources/static/index.html +++ b/back-end/src/main/resources/static/index.html @@ -29,10 +29,18 @@ + + + + +======= +>>>>>>> develop \ No newline at end of file diff --git a/back-end/src/main/resources/static/main-24RVZE4V.js b/back-end/src/main/resources/static/main-24RVZE4V.js new file mode 100644 index 00000000..72eb01cc --- /dev/null +++ b/back-end/src/main/resources/static/main-24RVZE4V.js @@ -0,0 +1,4387 @@ +import{$ as is,$a as I,A as Mo,Aa as P2,Ab as Ro,B as bu,Ba as I2,Bb as X2,C as T1,Ca as R2,Cb as q2,D as To,Da as Gs,Db as di,E as g2,Ea as pc,Eb as Ai,F as lc,Fa as Zt,Fb as Y2,G as ns,Ga as O2,Gb as Oo,H as k1,Ha as Pu,Hb as cn,I as E2,Ia as A,Ib as qe,J as F2,Ja as se,Jb as Ru,K as _2,Ka as U1,Kb as $2,L as fr,La as L2,Lb as j1,M as v2,Ma as xc,Mb as Z2,N as zn,Na as mc,Nb as K2,O as nn,Oa as N2,P as P1,Pa as Wi,Q as bt,Qa as U2,Qb as J2,R as Bu,Ra as Iu,S as y2,Sa as V2,Sb as Q2,T as An,Ta as z2,Tb as ex,U as I1,Ua as H2,V as Lt,Va as me,W as lt,Wa as ri,X as Au,Xa as S,Y as wu,Ya as Te,Z as Ee,Za as G2,_ as Su,_a as k,a as Me,aa as Mu,ab as de,b as Ot,ba as b2,bb as rn,ca as hc,cb as sn,d as B1,da as Hs,db as ye,e as mE,ea as dc,eb as K,f as vu,fa as ae,fb as N,g as $,ga as ue,gb as Ie,h as d2,ha as hi,hb as ke,i as D2,ia as ji,ib as Pe,j as A1,ja as Tu,jb as ze,k as w1,ka as R1,kb as Ht,l as zs,la as O1,lb as Nt,m as bi,ma as Dc,mb as Cc,n as ts,na as Ve,nb as gc,o as li,oa as B2,ob as Ec,p as Dt,pa as L1,pb as V1,q as yu,qa as A2,qb as Fe,r as p2,ra as ku,rb as Io,s as x2,sa as w2,sb as Fc,t as Yt,ta as N1,tb as _c,u as S1,ua as ko,ub as j2,v as Bi,va as Po,vb as z1,w as m2,wa as S2,wb as H1,x as M1,xa as M2,xb as Tr,y as C2,ya as T2,yb as W2,z as So,za as k2,zb as G1}from"./chunk-C5GF3Q27.js";var Qc=B1((Kc,Jc)=>{"use strict";(function(){var r=this,e=r.EmojiConvertor,t=function(){var n=this;return n.img_set="apple",n.img_sets={apple:{path:"/emoji-data/img-apple-64/",sheet:"/emoji-data/sheet_apple_64.png",sheet_size:64,mask:1},google:{path:"/emoji-data/img-google-64/",sheet:"/emoji-data/sheet_google_64.png",sheet_size:64,mask:2},twitter:{path:"/emoji-data/img-twitter-64/",sheet:"/emoji-data/sheet_twitter_64.png",sheet_size:64,mask:4},facebook:{path:"/emoji-data/img-facebook-64/",sheet:"/emoji-data/sheet_facebook_64.png",sheet_size:64,mask:8}},n.use_css_imgs=!1,n.colons_mode=!1,n.text_mode=!1,n.include_title=!1,n.include_text=!1,n.allow_native=!0,n.wrap_native=!1,n.use_sheet=!1,n.avoid_ms_emoji=!0,n.allow_caps=!1,n.img_suffix="",n.inits={},n.map={},n.init_env(),n};t.prototype.noConflict=function(){return r.EmojiConvertor=e,t},t.prototype.replace_emoticons=function(n){var i=this,s=i.replace_emoticons_with_colons(n);return i.replace_colons(s)},t.prototype.replace_emoticons_with_colons=function(n){var i=this;i.init_emoticons();var s=0,o=[],a=n.replace(i.rx_emoticons,function(f,l,h,d){var x=s;s=d+f.length;var m=h.indexOf("(")!==-1,D=h.indexOf(")")!==-1;if((m||D)&&o.indexOf(h)==-1&&o.push(h),D&&!m){var p=n.substring(x,d);if(p.indexOf("(")!==-1&&p.indexOf(")")===-1)return f}if(f===` +8)`){var C=n.substring(0,d);if(/\n?(6\)|7\))/.test(C))return f}var g=i.data[i.map.emoticons[h]][3][0];return g?l+":"+g+":":f});if(o.length){var u=o.map(i.escape_rx),c=new RegExp("(\\(.+)("+u.join("|")+")(.+\\))","g");a=a.replace(c,function(f,l,h,d){var x=i.data[i.map.emoticons[h]][3][0];return x?l+":"+x+":"+d:f})}return a},t.prototype.replace_colons=function(n){var i=this;return i.init_colons(),n.replace(i.rx_colons,function(s){var o=s.substr(1,s.length-2);if(i.allow_caps&&(o=o.toLowerCase()),o.indexOf("::skin-tone-")>-1){var a=o.substr(-1,1),u="skin-tone-"+a,c=i.map.colons[u];o=o.substr(0,o.length-13);var f=i.map.colons[o];return f?i.replacement(f,o,":",{idx:c,actual:u,wrapper:":"}):":"+o+":"+i.replacement(c,u,":")}else{var f=i.map.colons[o];return f?i.replacement(f,o,":"):s}})},t.prototype.replace_unified=function(n){var i=this;return i.init_unified(),n.replace(i.rx_unified,function(s,o,a){var u=i.map.unified[o];if(u){var c=null;return a=="\u{1F3FB}"&&(c="1f3fb"),a=="\u{1F3FC}"&&(c="1f3fc"),a=="\u{1F3FD}"&&(c="1f3fd"),a=="\u{1F3FE}"&&(c="1f3fe"),a=="\u{1F3FF}"&&(c="1f3ff"),c?i.replacement(u,null,null,{idx:c,actual:a,wrapper:""}):i.replacement(u)}return u=i.map.unified_vars[o],u?i.replacement(u[0],null,null,{idx:u[1],actual:"",wrapper:""}):s})},t.prototype.addAliases=function(n){var i=this;i.init_colons();for(var s in n)i.map.colons[s]=n[s]},t.prototype.removeAliases=function(n){for(var i=this,s=0;s'+m+""+f}else return u.use_css_imgs?''+m+""+f:''+m+""+f;return'"+f},t.prototype.format_native=function(n,i){var s=this;return s.wrap_native&&i?''+n+"":n},t.prototype.find_image=function(n,i){var s=this,o={path:"",sheet:"",sheet_size:0,px:s.data[n][4],py:s.data[n][5],full_idx:n,is_var:!1,unified:s.data[n][0][0]},a=s.data[n][6];if(i&&s.variations_data[n]&&s.variations_data[n][i]){var u=s.variations_data[n][i];o.px=u[1],o.py=u[2],o.full_idx=u[0],o.is_var=!0,o.unified=u[4][0],a=u[3]}for(var c=[s.img_set,"apple","google","twitter","facebook","messenger"],f=0;f/g,">");n.map.colons[n.emoticons_data[s]]&&(n.map.emoticons[o]=n.map.colons[n.emoticons_data[s]],i.push(n.escape_rx(o)))}n.rx_emoticons=new RegExp("(^|\\s)("+i.join("|")+")(?=$|[\\s|\\?\\.,!])","g")}},t.prototype.init_colons=function(){var n=this;if(!n.inits.colons){n.inits.colons=1,n.rx_colons=new RegExp(":[a-zA-Z0-9-_+]+:(:skin-tone-[2-6]:)?","g"),n.map.colons={};for(var i in n.data)for(var s=0;s":"laughing",":->":"laughing",";)":"wink",";-)":"wink","8)":"sunglasses",":|":"neutral_face",":-|":"neutral_face",":\\":"confused",":-\\":"confused",":/":"confused",":-/":"confused",":*":"kissing_heart",":-*":"kissing_heart",":p":"stuck_out_tongue",":-p":"stuck_out_tongue",":P":"stuck_out_tongue",":-P":"stuck_out_tongue",":b":"stuck_out_tongue",":-b":"stuck_out_tongue",";p":"stuck_out_tongue_winking_eye",";-p":"stuck_out_tongue_winking_eye",";b":"stuck_out_tongue_winking_eye",";-b":"stuck_out_tongue_winking_eye",";P":"stuck_out_tongue_winking_eye",";-P":"stuck_out_tongue_winking_eye","):":"disappointed",":(":"disappointed",":-(":"disappointed",">:(":"angry",">:-(":"angry",":'(":"cry","D:":"anguished",":o":"open_mouth",":-o":"open_mouth",":O":"open_mouth",":-O":"open_mouth",":)":"slightly_smiling_face","(:":"slightly_smiling_face",":-)":"slightly_smiling_face","<3":"heart"},t.prototype.variations_data={"1f385":{"1f3fb":["1f385-1f3fb",7,9,15,["\u{1F385}\u{1F3FB}"]],"1f3fc":["1f385-1f3fc",7,10,15,["\u{1F385}\u{1F3FC}"]],"1f3fd":["1f385-1f3fd",7,11,15,["\u{1F385}\u{1F3FD}"]],"1f3fe":["1f385-1f3fe",7,12,15,["\u{1F385}\u{1F3FE}"]],"1f3ff":["1f385-1f3ff",7,13,15,["\u{1F385}\u{1F3FF}"]]},"1f3c2":{"1f3fb":["1f3c2-1f3fb",8,9,15,["\u{1F3C2}\u{1F3FB}"]],"1f3fc":["1f3c2-1f3fc",8,10,15,["\u{1F3C2}\u{1F3FC}"]],"1f3fd":["1f3c2-1f3fd",8,11,15,["\u{1F3C2}\u{1F3FD}"]],"1f3fe":["1f3c2-1f3fe",8,12,15,["\u{1F3C2}\u{1F3FE}"]],"1f3ff":["1f3c2-1f3ff",8,13,15,["\u{1F3C2}\u{1F3FF}"]]},"1f3c3-200d-2640-fe0f":{"1f3fb":["1f3c3-1f3fb-200d-2640-fe0f",8,15,15,["\u{1F3C3}\u{1F3FB}\u200D\u2640\uFE0F"]],"1f3fc":["1f3c3-1f3fc-200d-2640-fe0f",8,16,15,["\u{1F3C3}\u{1F3FC}\u200D\u2640\uFE0F"]],"1f3fd":["1f3c3-1f3fd-200d-2640-fe0f",8,17,15,["\u{1F3C3}\u{1F3FD}\u200D\u2640\uFE0F"]],"1f3fe":["1f3c3-1f3fe-200d-2640-fe0f",8,18,15,["\u{1F3C3}\u{1F3FE}\u200D\u2640\uFE0F"]],"1f3ff":["1f3c3-1f3ff-200d-2640-fe0f",8,19,15,["\u{1F3C3}\u{1F3FF}\u200D\u2640\uFE0F"]]},"1f3c3-200d-2642-fe0f":{"1f3fb":["1f3c3-1f3fb-200d-2642-fe0f",8,21,15,["\u{1F3C3}\u{1F3FB}\u200D\u2642\uFE0F","\u{1F3C3}\u{1F3FB}"]],"1f3fc":["1f3c3-1f3fc-200d-2642-fe0f",8,22,15,["\u{1F3C3}\u{1F3FC}\u200D\u2642\uFE0F","\u{1F3C3}\u{1F3FC}"]],"1f3fd":["1f3c3-1f3fd-200d-2642-fe0f",8,23,15,["\u{1F3C3}\u{1F3FD}\u200D\u2642\uFE0F","\u{1F3C3}\u{1F3FD}"]],"1f3fe":["1f3c3-1f3fe-200d-2642-fe0f",8,24,15,["\u{1F3C3}\u{1F3FE}\u200D\u2642\uFE0F","\u{1F3C3}\u{1F3FE}"]],"1f3ff":["1f3c3-1f3ff-200d-2642-fe0f",8,25,15,["\u{1F3C3}\u{1F3FF}\u200D\u2642\uFE0F","\u{1F3C3}\u{1F3FF}"]]},"1f3c4-200d-2640-fe0f":{"1f3fb":["1f3c4-1f3fb-200d-2640-fe0f",8,33,15,["\u{1F3C4}\u{1F3FB}\u200D\u2640\uFE0F"]],"1f3fc":["1f3c4-1f3fc-200d-2640-fe0f",8,34,15,["\u{1F3C4}\u{1F3FC}\u200D\u2640\uFE0F"]],"1f3fd":["1f3c4-1f3fd-200d-2640-fe0f",8,35,15,["\u{1F3C4}\u{1F3FD}\u200D\u2640\uFE0F"]],"1f3fe":["1f3c4-1f3fe-200d-2640-fe0f",8,36,15,["\u{1F3C4}\u{1F3FE}\u200D\u2640\uFE0F"]],"1f3ff":["1f3c4-1f3ff-200d-2640-fe0f",8,37,15,["\u{1F3C4}\u{1F3FF}\u200D\u2640\uFE0F"]]},"1f3c4-200d-2642-fe0f":{"1f3fb":["1f3c4-1f3fb-200d-2642-fe0f",8,39,15,["\u{1F3C4}\u{1F3FB}\u200D\u2642\uFE0F","\u{1F3C4}\u{1F3FB}"]],"1f3fc":["1f3c4-1f3fc-200d-2642-fe0f",8,40,15,["\u{1F3C4}\u{1F3FC}\u200D\u2642\uFE0F","\u{1F3C4}\u{1F3FC}"]],"1f3fd":["1f3c4-1f3fd-200d-2642-fe0f",8,41,15,["\u{1F3C4}\u{1F3FD}\u200D\u2642\uFE0F","\u{1F3C4}\u{1F3FD}"]],"1f3fe":["1f3c4-1f3fe-200d-2642-fe0f",8,42,15,["\u{1F3C4}\u{1F3FE}\u200D\u2642\uFE0F","\u{1F3C4}\u{1F3FE}"]],"1f3ff":["1f3c4-1f3ff-200d-2642-fe0f",8,43,15,["\u{1F3C4}\u{1F3FF}\u200D\u2642\uFE0F","\u{1F3C4}\u{1F3FF}"]]},"1f3c7":{"1f3fb":["1f3c7-1f3fb",8,53,15,["\u{1F3C7}\u{1F3FB}"]],"1f3fc":["1f3c7-1f3fc",8,54,15,["\u{1F3C7}\u{1F3FC}"]],"1f3fd":["1f3c7-1f3fd",8,55,15,["\u{1F3C7}\u{1F3FD}"]],"1f3fe":["1f3c7-1f3fe",8,56,15,["\u{1F3C7}\u{1F3FE}"]],"1f3ff":["1f3c7-1f3ff",8,57,15,["\u{1F3C7}\u{1F3FF}"]]},"1f3ca-200d-2640-fe0f":{"1f3fb":["1f3ca-1f3fb-200d-2640-fe0f",9,0,15,["\u{1F3CA}\u{1F3FB}\u200D\u2640\uFE0F"]],"1f3fc":["1f3ca-1f3fc-200d-2640-fe0f",9,1,15,["\u{1F3CA}\u{1F3FC}\u200D\u2640\uFE0F"]],"1f3fd":["1f3ca-1f3fd-200d-2640-fe0f",9,2,15,["\u{1F3CA}\u{1F3FD}\u200D\u2640\uFE0F"]],"1f3fe":["1f3ca-1f3fe-200d-2640-fe0f",9,3,15,["\u{1F3CA}\u{1F3FE}\u200D\u2640\uFE0F"]],"1f3ff":["1f3ca-1f3ff-200d-2640-fe0f",9,4,15,["\u{1F3CA}\u{1F3FF}\u200D\u2640\uFE0F"]]},"1f3ca-200d-2642-fe0f":{"1f3fb":["1f3ca-1f3fb-200d-2642-fe0f",9,6,15,["\u{1F3CA}\u{1F3FB}\u200D\u2642\uFE0F","\u{1F3CA}\u{1F3FB}"]],"1f3fc":["1f3ca-1f3fc-200d-2642-fe0f",9,7,15,["\u{1F3CA}\u{1F3FC}\u200D\u2642\uFE0F","\u{1F3CA}\u{1F3FC}"]],"1f3fd":["1f3ca-1f3fd-200d-2642-fe0f",9,8,15,["\u{1F3CA}\u{1F3FD}\u200D\u2642\uFE0F","\u{1F3CA}\u{1F3FD}"]],"1f3fe":["1f3ca-1f3fe-200d-2642-fe0f",9,9,15,["\u{1F3CA}\u{1F3FE}\u200D\u2642\uFE0F","\u{1F3CA}\u{1F3FE}"]],"1f3ff":["1f3ca-1f3ff-200d-2642-fe0f",9,10,15,["\u{1F3CA}\u{1F3FF}\u200D\u2642\uFE0F","\u{1F3CA}\u{1F3FF}"]]},"1f3cb-fe0f-200d-2640-fe0f":{"1f3fb":["1f3cb-1f3fb-200d-2640-fe0f",9,18,15,["\u{1F3CB}\u{1F3FB}\u200D\u2640\uFE0F"]],"1f3fc":["1f3cb-1f3fc-200d-2640-fe0f",9,19,15,["\u{1F3CB}\u{1F3FC}\u200D\u2640\uFE0F"]],"1f3fd":["1f3cb-1f3fd-200d-2640-fe0f",9,20,15,["\u{1F3CB}\u{1F3FD}\u200D\u2640\uFE0F"]],"1f3fe":["1f3cb-1f3fe-200d-2640-fe0f",9,21,15,["\u{1F3CB}\u{1F3FE}\u200D\u2640\uFE0F"]],"1f3ff":["1f3cb-1f3ff-200d-2640-fe0f",9,22,15,["\u{1F3CB}\u{1F3FF}\u200D\u2640\uFE0F"]]},"1f3cb-fe0f-200d-2642-fe0f":{"1f3fb":["1f3cb-1f3fb-200d-2642-fe0f",9,24,15,["\u{1F3CB}\u{1F3FB}\u200D\u2642\uFE0F","\u{1F3CB}\u{1F3FB}"]],"1f3fc":["1f3cb-1f3fc-200d-2642-fe0f",9,25,15,["\u{1F3CB}\u{1F3FC}\u200D\u2642\uFE0F","\u{1F3CB}\u{1F3FC}"]],"1f3fd":["1f3cb-1f3fd-200d-2642-fe0f",9,26,15,["\u{1F3CB}\u{1F3FD}\u200D\u2642\uFE0F","\u{1F3CB}\u{1F3FD}"]],"1f3fe":["1f3cb-1f3fe-200d-2642-fe0f",9,27,15,["\u{1F3CB}\u{1F3FE}\u200D\u2642\uFE0F","\u{1F3CB}\u{1F3FE}"]],"1f3ff":["1f3cb-1f3ff-200d-2642-fe0f",9,28,15,["\u{1F3CB}\u{1F3FF}\u200D\u2642\uFE0F","\u{1F3CB}\u{1F3FF}"]]},"1f3cc-fe0f-200d-2640-fe0f":{"1f3fb":["1f3cc-1f3fb-200d-2640-fe0f",9,36,15,["\u{1F3CC}\u{1F3FB}\u200D\u2640\uFE0F"]],"1f3fc":["1f3cc-1f3fc-200d-2640-fe0f",9,37,15,["\u{1F3CC}\u{1F3FC}\u200D\u2640\uFE0F"]],"1f3fd":["1f3cc-1f3fd-200d-2640-fe0f",9,38,15,["\u{1F3CC}\u{1F3FD}\u200D\u2640\uFE0F"]],"1f3fe":["1f3cc-1f3fe-200d-2640-fe0f",9,39,15,["\u{1F3CC}\u{1F3FE}\u200D\u2640\uFE0F"]],"1f3ff":["1f3cc-1f3ff-200d-2640-fe0f",9,40,15,["\u{1F3CC}\u{1F3FF}\u200D\u2640\uFE0F"]]},"1f3cc-fe0f-200d-2642-fe0f":{"1f3fb":["1f3cc-1f3fb-200d-2642-fe0f",9,42,15,["\u{1F3CC}\u{1F3FB}\u200D\u2642\uFE0F","\u{1F3CC}\u{1F3FB}"]],"1f3fc":["1f3cc-1f3fc-200d-2642-fe0f",9,43,15,["\u{1F3CC}\u{1F3FC}\u200D\u2642\uFE0F","\u{1F3CC}\u{1F3FC}"]],"1f3fd":["1f3cc-1f3fd-200d-2642-fe0f",9,44,15,["\u{1F3CC}\u{1F3FD}\u200D\u2642\uFE0F","\u{1F3CC}\u{1F3FD}"]],"1f3fe":["1f3cc-1f3fe-200d-2642-fe0f",9,45,15,["\u{1F3CC}\u{1F3FE}\u200D\u2642\uFE0F","\u{1F3CC}\u{1F3FE}"]],"1f3ff":["1f3cc-1f3ff-200d-2642-fe0f",9,46,15,["\u{1F3CC}\u{1F3FF}\u200D\u2642\uFE0F","\u{1F3CC}\u{1F3FF}"]]},"1f442":{"1f3fb":["1f442-1f3fb",11,57,15,["\u{1F442}\u{1F3FB}"]],"1f3fc":["1f442-1f3fc",11,58,15,["\u{1F442}\u{1F3FC}"]],"1f3fd":["1f442-1f3fd",11,59,15,["\u{1F442}\u{1F3FD}"]],"1f3fe":["1f442-1f3fe",11,60,15,["\u{1F442}\u{1F3FE}"]],"1f3ff":["1f442-1f3ff",12,0,15,["\u{1F442}\u{1F3FF}"]]},"1f443":{"1f3fb":["1f443-1f3fb",12,2,15,["\u{1F443}\u{1F3FB}"]],"1f3fc":["1f443-1f3fc",12,3,15,["\u{1F443}\u{1F3FC}"]],"1f3fd":["1f443-1f3fd",12,4,15,["\u{1F443}\u{1F3FD}"]],"1f3fe":["1f443-1f3fe",12,5,15,["\u{1F443}\u{1F3FE}"]],"1f3ff":["1f443-1f3ff",12,6,15,["\u{1F443}\u{1F3FF}"]]},"1f446":{"1f3fb":["1f446-1f3fb",12,10,15,["\u{1F446}\u{1F3FB}"]],"1f3fc":["1f446-1f3fc",12,11,15,["\u{1F446}\u{1F3FC}"]],"1f3fd":["1f446-1f3fd",12,12,15,["\u{1F446}\u{1F3FD}"]],"1f3fe":["1f446-1f3fe",12,13,15,["\u{1F446}\u{1F3FE}"]],"1f3ff":["1f446-1f3ff",12,14,15,["\u{1F446}\u{1F3FF}"]]},"1f447":{"1f3fb":["1f447-1f3fb",12,16,15,["\u{1F447}\u{1F3FB}"]],"1f3fc":["1f447-1f3fc",12,17,15,["\u{1F447}\u{1F3FC}"]],"1f3fd":["1f447-1f3fd",12,18,15,["\u{1F447}\u{1F3FD}"]],"1f3fe":["1f447-1f3fe",12,19,15,["\u{1F447}\u{1F3FE}"]],"1f3ff":["1f447-1f3ff",12,20,15,["\u{1F447}\u{1F3FF}"]]},"1f448":{"1f3fb":["1f448-1f3fb",12,22,15,["\u{1F448}\u{1F3FB}"]],"1f3fc":["1f448-1f3fc",12,23,15,["\u{1F448}\u{1F3FC}"]],"1f3fd":["1f448-1f3fd",12,24,15,["\u{1F448}\u{1F3FD}"]],"1f3fe":["1f448-1f3fe",12,25,15,["\u{1F448}\u{1F3FE}"]],"1f3ff":["1f448-1f3ff",12,26,15,["\u{1F448}\u{1F3FF}"]]},"1f449":{"1f3fb":["1f449-1f3fb",12,28,15,["\u{1F449}\u{1F3FB}"]],"1f3fc":["1f449-1f3fc",12,29,15,["\u{1F449}\u{1F3FC}"]],"1f3fd":["1f449-1f3fd",12,30,15,["\u{1F449}\u{1F3FD}"]],"1f3fe":["1f449-1f3fe",12,31,15,["\u{1F449}\u{1F3FE}"]],"1f3ff":["1f449-1f3ff",12,32,15,["\u{1F449}\u{1F3FF}"]]},"1f44a":{"1f3fb":["1f44a-1f3fb",12,34,15,["\u{1F44A}\u{1F3FB}"]],"1f3fc":["1f44a-1f3fc",12,35,15,["\u{1F44A}\u{1F3FC}"]],"1f3fd":["1f44a-1f3fd",12,36,15,["\u{1F44A}\u{1F3FD}"]],"1f3fe":["1f44a-1f3fe",12,37,15,["\u{1F44A}\u{1F3FE}"]],"1f3ff":["1f44a-1f3ff",12,38,15,["\u{1F44A}\u{1F3FF}"]]},"1f44b":{"1f3fb":["1f44b-1f3fb",12,40,15,["\u{1F44B}\u{1F3FB}"]],"1f3fc":["1f44b-1f3fc",12,41,15,["\u{1F44B}\u{1F3FC}"]],"1f3fd":["1f44b-1f3fd",12,42,15,["\u{1F44B}\u{1F3FD}"]],"1f3fe":["1f44b-1f3fe",12,43,15,["\u{1F44B}\u{1F3FE}"]],"1f3ff":["1f44b-1f3ff",12,44,15,["\u{1F44B}\u{1F3FF}"]]},"1f44c":{"1f3fb":["1f44c-1f3fb",12,46,15,["\u{1F44C}\u{1F3FB}"]],"1f3fc":["1f44c-1f3fc",12,47,15,["\u{1F44C}\u{1F3FC}"]],"1f3fd":["1f44c-1f3fd",12,48,15,["\u{1F44C}\u{1F3FD}"]],"1f3fe":["1f44c-1f3fe",12,49,15,["\u{1F44C}\u{1F3FE}"]],"1f3ff":["1f44c-1f3ff",12,50,15,["\u{1F44C}\u{1F3FF}"]]},"1f44d":{"1f3fb":["1f44d-1f3fb",12,52,15,["\u{1F44D}\u{1F3FB}"]],"1f3fc":["1f44d-1f3fc",12,53,15,["\u{1F44D}\u{1F3FC}"]],"1f3fd":["1f44d-1f3fd",12,54,15,["\u{1F44D}\u{1F3FD}"]],"1f3fe":["1f44d-1f3fe",12,55,15,["\u{1F44D}\u{1F3FE}"]],"1f3ff":["1f44d-1f3ff",12,56,15,["\u{1F44D}\u{1F3FF}"]]},"1f44e":{"1f3fb":["1f44e-1f3fb",12,58,15,["\u{1F44E}\u{1F3FB}"]],"1f3fc":["1f44e-1f3fc",12,59,15,["\u{1F44E}\u{1F3FC}"]],"1f3fd":["1f44e-1f3fd",12,60,15,["\u{1F44E}\u{1F3FD}"]],"1f3fe":["1f44e-1f3fe",13,0,15,["\u{1F44E}\u{1F3FE}"]],"1f3ff":["1f44e-1f3ff",13,1,15,["\u{1F44E}\u{1F3FF}"]]},"1f44f":{"1f3fb":["1f44f-1f3fb",13,3,15,["\u{1F44F}\u{1F3FB}"]],"1f3fc":["1f44f-1f3fc",13,4,15,["\u{1F44F}\u{1F3FC}"]],"1f3fd":["1f44f-1f3fd",13,5,15,["\u{1F44F}\u{1F3FD}"]],"1f3fe":["1f44f-1f3fe",13,6,15,["\u{1F44F}\u{1F3FE}"]],"1f3ff":["1f44f-1f3ff",13,7,15,["\u{1F44F}\u{1F3FF}"]]},"1f450":{"1f3fb":["1f450-1f3fb",13,9,15,["\u{1F450}\u{1F3FB}"]],"1f3fc":["1f450-1f3fc",13,10,15,["\u{1F450}\u{1F3FC}"]],"1f3fd":["1f450-1f3fd",13,11,15,["\u{1F450}\u{1F3FD}"]],"1f3fe":["1f450-1f3fe",13,12,15,["\u{1F450}\u{1F3FE}"]],"1f3ff":["1f450-1f3ff",13,13,15,["\u{1F450}\u{1F3FF}"]]},"1f466":{"1f3fb":["1f466-1f3fb",13,36,15,["\u{1F466}\u{1F3FB}"]],"1f3fc":["1f466-1f3fc",13,37,15,["\u{1F466}\u{1F3FC}"]],"1f3fd":["1f466-1f3fd",13,38,15,["\u{1F466}\u{1F3FD}"]],"1f3fe":["1f466-1f3fe",13,39,15,["\u{1F466}\u{1F3FE}"]],"1f3ff":["1f466-1f3ff",13,40,15,["\u{1F466}\u{1F3FF}"]]},"1f467":{"1f3fb":["1f467-1f3fb",13,42,15,["\u{1F467}\u{1F3FB}"]],"1f3fc":["1f467-1f3fc",13,43,15,["\u{1F467}\u{1F3FC}"]],"1f3fd":["1f467-1f3fd",13,44,15,["\u{1F467}\u{1F3FD}"]],"1f3fe":["1f467-1f3fe",13,45,15,["\u{1F467}\u{1F3FE}"]],"1f3ff":["1f467-1f3ff",13,46,15,["\u{1F467}\u{1F3FF}"]]},"1f468-200d-1f33e":{"1f3fb":["1f468-1f3fb-200d-1f33e",13,48,15,["\u{1F468}\u{1F3FB}\u200D\u{1F33E}"]],"1f3fc":["1f468-1f3fc-200d-1f33e",13,49,15,["\u{1F468}\u{1F3FC}\u200D\u{1F33E}"]],"1f3fd":["1f468-1f3fd-200d-1f33e",13,50,15,["\u{1F468}\u{1F3FD}\u200D\u{1F33E}"]],"1f3fe":["1f468-1f3fe-200d-1f33e",13,51,15,["\u{1F468}\u{1F3FE}\u200D\u{1F33E}"]],"1f3ff":["1f468-1f3ff-200d-1f33e",13,52,15,["\u{1F468}\u{1F3FF}\u200D\u{1F33E}"]]},"1f468-200d-1f373":{"1f3fb":["1f468-1f3fb-200d-1f373",13,54,15,["\u{1F468}\u{1F3FB}\u200D\u{1F373}"]],"1f3fc":["1f468-1f3fc-200d-1f373",13,55,15,["\u{1F468}\u{1F3FC}\u200D\u{1F373}"]],"1f3fd":["1f468-1f3fd-200d-1f373",13,56,15,["\u{1F468}\u{1F3FD}\u200D\u{1F373}"]],"1f3fe":["1f468-1f3fe-200d-1f373",13,57,15,["\u{1F468}\u{1F3FE}\u200D\u{1F373}"]],"1f3ff":["1f468-1f3ff-200d-1f373",13,58,15,["\u{1F468}\u{1F3FF}\u200D\u{1F373}"]]},"1f468-200d-1f37c":{"1f3fb":["1f468-1f3fb-200d-1f37c",13,60,15,["\u{1F468}\u{1F3FB}\u200D\u{1F37C}"]],"1f3fc":["1f468-1f3fc-200d-1f37c",14,0,15,["\u{1F468}\u{1F3FC}\u200D\u{1F37C}"]],"1f3fd":["1f468-1f3fd-200d-1f37c",14,1,15,["\u{1F468}\u{1F3FD}\u200D\u{1F37C}"]],"1f3fe":["1f468-1f3fe-200d-1f37c",14,2,15,["\u{1F468}\u{1F3FE}\u200D\u{1F37C}"]],"1f3ff":["1f468-1f3ff-200d-1f37c",14,3,15,["\u{1F468}\u{1F3FF}\u200D\u{1F37C}"]]},"1f468-200d-1f393":{"1f3fb":["1f468-1f3fb-200d-1f393",14,5,15,["\u{1F468}\u{1F3FB}\u200D\u{1F393}"]],"1f3fc":["1f468-1f3fc-200d-1f393",14,6,15,["\u{1F468}\u{1F3FC}\u200D\u{1F393}"]],"1f3fd":["1f468-1f3fd-200d-1f393",14,7,15,["\u{1F468}\u{1F3FD}\u200D\u{1F393}"]],"1f3fe":["1f468-1f3fe-200d-1f393",14,8,15,["\u{1F468}\u{1F3FE}\u200D\u{1F393}"]],"1f3ff":["1f468-1f3ff-200d-1f393",14,9,15,["\u{1F468}\u{1F3FF}\u200D\u{1F393}"]]},"1f468-200d-1f3a4":{"1f3fb":["1f468-1f3fb-200d-1f3a4",14,11,15,["\u{1F468}\u{1F3FB}\u200D\u{1F3A4}"]],"1f3fc":["1f468-1f3fc-200d-1f3a4",14,12,15,["\u{1F468}\u{1F3FC}\u200D\u{1F3A4}"]],"1f3fd":["1f468-1f3fd-200d-1f3a4",14,13,15,["\u{1F468}\u{1F3FD}\u200D\u{1F3A4}"]],"1f3fe":["1f468-1f3fe-200d-1f3a4",14,14,15,["\u{1F468}\u{1F3FE}\u200D\u{1F3A4}"]],"1f3ff":["1f468-1f3ff-200d-1f3a4",14,15,15,["\u{1F468}\u{1F3FF}\u200D\u{1F3A4}"]]},"1f468-200d-1f3a8":{"1f3fb":["1f468-1f3fb-200d-1f3a8",14,17,15,["\u{1F468}\u{1F3FB}\u200D\u{1F3A8}"]],"1f3fc":["1f468-1f3fc-200d-1f3a8",14,18,15,["\u{1F468}\u{1F3FC}\u200D\u{1F3A8}"]],"1f3fd":["1f468-1f3fd-200d-1f3a8",14,19,15,["\u{1F468}\u{1F3FD}\u200D\u{1F3A8}"]],"1f3fe":["1f468-1f3fe-200d-1f3a8",14,20,15,["\u{1F468}\u{1F3FE}\u200D\u{1F3A8}"]],"1f3ff":["1f468-1f3ff-200d-1f3a8",14,21,15,["\u{1F468}\u{1F3FF}\u200D\u{1F3A8}"]]},"1f468-200d-1f3eb":{"1f3fb":["1f468-1f3fb-200d-1f3eb",14,23,15,["\u{1F468}\u{1F3FB}\u200D\u{1F3EB}"]],"1f3fc":["1f468-1f3fc-200d-1f3eb",14,24,15,["\u{1F468}\u{1F3FC}\u200D\u{1F3EB}"]],"1f3fd":["1f468-1f3fd-200d-1f3eb",14,25,15,["\u{1F468}\u{1F3FD}\u200D\u{1F3EB}"]],"1f3fe":["1f468-1f3fe-200d-1f3eb",14,26,15,["\u{1F468}\u{1F3FE}\u200D\u{1F3EB}"]],"1f3ff":["1f468-1f3ff-200d-1f3eb",14,27,15,["\u{1F468}\u{1F3FF}\u200D\u{1F3EB}"]]},"1f468-200d-1f3ed":{"1f3fb":["1f468-1f3fb-200d-1f3ed",14,29,15,["\u{1F468}\u{1F3FB}\u200D\u{1F3ED}"]],"1f3fc":["1f468-1f3fc-200d-1f3ed",14,30,15,["\u{1F468}\u{1F3FC}\u200D\u{1F3ED}"]],"1f3fd":["1f468-1f3fd-200d-1f3ed",14,31,15,["\u{1F468}\u{1F3FD}\u200D\u{1F3ED}"]],"1f3fe":["1f468-1f3fe-200d-1f3ed",14,32,15,["\u{1F468}\u{1F3FE}\u200D\u{1F3ED}"]],"1f3ff":["1f468-1f3ff-200d-1f3ed",14,33,15,["\u{1F468}\u{1F3FF}\u200D\u{1F3ED}"]]},"1f468-200d-1f4bb":{"1f3fb":["1f468-1f3fb-200d-1f4bb",14,50,15,["\u{1F468}\u{1F3FB}\u200D\u{1F4BB}"]],"1f3fc":["1f468-1f3fc-200d-1f4bb",14,51,15,["\u{1F468}\u{1F3FC}\u200D\u{1F4BB}"]],"1f3fd":["1f468-1f3fd-200d-1f4bb",14,52,15,["\u{1F468}\u{1F3FD}\u200D\u{1F4BB}"]],"1f3fe":["1f468-1f3fe-200d-1f4bb",14,53,15,["\u{1F468}\u{1F3FE}\u200D\u{1F4BB}"]],"1f3ff":["1f468-1f3ff-200d-1f4bb",14,54,15,["\u{1F468}\u{1F3FF}\u200D\u{1F4BB}"]]},"1f468-200d-1f4bc":{"1f3fb":["1f468-1f3fb-200d-1f4bc",14,56,15,["\u{1F468}\u{1F3FB}\u200D\u{1F4BC}"]],"1f3fc":["1f468-1f3fc-200d-1f4bc",14,57,15,["\u{1F468}\u{1F3FC}\u200D\u{1F4BC}"]],"1f3fd":["1f468-1f3fd-200d-1f4bc",14,58,15,["\u{1F468}\u{1F3FD}\u200D\u{1F4BC}"]],"1f3fe":["1f468-1f3fe-200d-1f4bc",14,59,15,["\u{1F468}\u{1F3FE}\u200D\u{1F4BC}"]],"1f3ff":["1f468-1f3ff-200d-1f4bc",14,60,15,["\u{1F468}\u{1F3FF}\u200D\u{1F4BC}"]]},"1f468-200d-1f527":{"1f3fb":["1f468-1f3fb-200d-1f527",15,1,15,["\u{1F468}\u{1F3FB}\u200D\u{1F527}"]],"1f3fc":["1f468-1f3fc-200d-1f527",15,2,15,["\u{1F468}\u{1F3FC}\u200D\u{1F527}"]],"1f3fd":["1f468-1f3fd-200d-1f527",15,3,15,["\u{1F468}\u{1F3FD}\u200D\u{1F527}"]],"1f3fe":["1f468-1f3fe-200d-1f527",15,4,15,["\u{1F468}\u{1F3FE}\u200D\u{1F527}"]],"1f3ff":["1f468-1f3ff-200d-1f527",15,5,15,["\u{1F468}\u{1F3FF}\u200D\u{1F527}"]]},"1f468-200d-1f52c":{"1f3fb":["1f468-1f3fb-200d-1f52c",15,7,15,["\u{1F468}\u{1F3FB}\u200D\u{1F52C}"]],"1f3fc":["1f468-1f3fc-200d-1f52c",15,8,15,["\u{1F468}\u{1F3FC}\u200D\u{1F52C}"]],"1f3fd":["1f468-1f3fd-200d-1f52c",15,9,15,["\u{1F468}\u{1F3FD}\u200D\u{1F52C}"]],"1f3fe":["1f468-1f3fe-200d-1f52c",15,10,15,["\u{1F468}\u{1F3FE}\u200D\u{1F52C}"]],"1f3ff":["1f468-1f3ff-200d-1f52c",15,11,15,["\u{1F468}\u{1F3FF}\u200D\u{1F52C}"]]},"1f468-200d-1f680":{"1f3fb":["1f468-1f3fb-200d-1f680",15,13,15,["\u{1F468}\u{1F3FB}\u200D\u{1F680}"]],"1f3fc":["1f468-1f3fc-200d-1f680",15,14,15,["\u{1F468}\u{1F3FC}\u200D\u{1F680}"]],"1f3fd":["1f468-1f3fd-200d-1f680",15,15,15,["\u{1F468}\u{1F3FD}\u200D\u{1F680}"]],"1f3fe":["1f468-1f3fe-200d-1f680",15,16,15,["\u{1F468}\u{1F3FE}\u200D\u{1F680}"]],"1f3ff":["1f468-1f3ff-200d-1f680",15,17,15,["\u{1F468}\u{1F3FF}\u200D\u{1F680}"]]},"1f468-200d-1f692":{"1f3fb":["1f468-1f3fb-200d-1f692",15,19,15,["\u{1F468}\u{1F3FB}\u200D\u{1F692}"]],"1f3fc":["1f468-1f3fc-200d-1f692",15,20,15,["\u{1F468}\u{1F3FC}\u200D\u{1F692}"]],"1f3fd":["1f468-1f3fd-200d-1f692",15,21,15,["\u{1F468}\u{1F3FD}\u200D\u{1F692}"]],"1f3fe":["1f468-1f3fe-200d-1f692",15,22,15,["\u{1F468}\u{1F3FE}\u200D\u{1F692}"]],"1f3ff":["1f468-1f3ff-200d-1f692",15,23,15,["\u{1F468}\u{1F3FF}\u200D\u{1F692}"]]},"1f468-200d-1f9af":{"1f3fb":["1f468-1f3fb-200d-1f9af",15,25,15,["\u{1F468}\u{1F3FB}\u200D\u{1F9AF}"]],"1f3fc":["1f468-1f3fc-200d-1f9af",15,26,15,["\u{1F468}\u{1F3FC}\u200D\u{1F9AF}"]],"1f3fd":["1f468-1f3fd-200d-1f9af",15,27,15,["\u{1F468}\u{1F3FD}\u200D\u{1F9AF}"]],"1f3fe":["1f468-1f3fe-200d-1f9af",15,28,15,["\u{1F468}\u{1F3FE}\u200D\u{1F9AF}"]],"1f3ff":["1f468-1f3ff-200d-1f9af",15,29,15,["\u{1F468}\u{1F3FF}\u200D\u{1F9AF}"]]},"1f468-200d-1f9b0":{"1f3fb":["1f468-1f3fb-200d-1f9b0",15,31,15,["\u{1F468}\u{1F3FB}\u200D\u{1F9B0}"]],"1f3fc":["1f468-1f3fc-200d-1f9b0",15,32,15,["\u{1F468}\u{1F3FC}\u200D\u{1F9B0}"]],"1f3fd":["1f468-1f3fd-200d-1f9b0",15,33,15,["\u{1F468}\u{1F3FD}\u200D\u{1F9B0}"]],"1f3fe":["1f468-1f3fe-200d-1f9b0",15,34,15,["\u{1F468}\u{1F3FE}\u200D\u{1F9B0}"]],"1f3ff":["1f468-1f3ff-200d-1f9b0",15,35,15,["\u{1F468}\u{1F3FF}\u200D\u{1F9B0}"]]},"1f468-200d-1f9b1":{"1f3fb":["1f468-1f3fb-200d-1f9b1",15,37,15,["\u{1F468}\u{1F3FB}\u200D\u{1F9B1}"]],"1f3fc":["1f468-1f3fc-200d-1f9b1",15,38,15,["\u{1F468}\u{1F3FC}\u200D\u{1F9B1}"]],"1f3fd":["1f468-1f3fd-200d-1f9b1",15,39,15,["\u{1F468}\u{1F3FD}\u200D\u{1F9B1}"]],"1f3fe":["1f468-1f3fe-200d-1f9b1",15,40,15,["\u{1F468}\u{1F3FE}\u200D\u{1F9B1}"]],"1f3ff":["1f468-1f3ff-200d-1f9b1",15,41,15,["\u{1F468}\u{1F3FF}\u200D\u{1F9B1}"]]},"1f468-200d-1f9b2":{"1f3fb":["1f468-1f3fb-200d-1f9b2",15,43,15,["\u{1F468}\u{1F3FB}\u200D\u{1F9B2}"]],"1f3fc":["1f468-1f3fc-200d-1f9b2",15,44,15,["\u{1F468}\u{1F3FC}\u200D\u{1F9B2}"]],"1f3fd":["1f468-1f3fd-200d-1f9b2",15,45,15,["\u{1F468}\u{1F3FD}\u200D\u{1F9B2}"]],"1f3fe":["1f468-1f3fe-200d-1f9b2",15,46,15,["\u{1F468}\u{1F3FE}\u200D\u{1F9B2}"]],"1f3ff":["1f468-1f3ff-200d-1f9b2",15,47,15,["\u{1F468}\u{1F3FF}\u200D\u{1F9B2}"]]},"1f468-200d-1f9b3":{"1f3fb":["1f468-1f3fb-200d-1f9b3",15,49,15,["\u{1F468}\u{1F3FB}\u200D\u{1F9B3}"]],"1f3fc":["1f468-1f3fc-200d-1f9b3",15,50,15,["\u{1F468}\u{1F3FC}\u200D\u{1F9B3}"]],"1f3fd":["1f468-1f3fd-200d-1f9b3",15,51,15,["\u{1F468}\u{1F3FD}\u200D\u{1F9B3}"]],"1f3fe":["1f468-1f3fe-200d-1f9b3",15,52,15,["\u{1F468}\u{1F3FE}\u200D\u{1F9B3}"]],"1f3ff":["1f468-1f3ff-200d-1f9b3",15,53,15,["\u{1F468}\u{1F3FF}\u200D\u{1F9B3}"]]},"1f468-200d-1f9bc":{"1f3fb":["1f468-1f3fb-200d-1f9bc",15,55,15,["\u{1F468}\u{1F3FB}\u200D\u{1F9BC}"]],"1f3fc":["1f468-1f3fc-200d-1f9bc",15,56,15,["\u{1F468}\u{1F3FC}\u200D\u{1F9BC}"]],"1f3fd":["1f468-1f3fd-200d-1f9bc",15,57,15,["\u{1F468}\u{1F3FD}\u200D\u{1F9BC}"]],"1f3fe":["1f468-1f3fe-200d-1f9bc",15,58,15,["\u{1F468}\u{1F3FE}\u200D\u{1F9BC}"]],"1f3ff":["1f468-1f3ff-200d-1f9bc",15,59,15,["\u{1F468}\u{1F3FF}\u200D\u{1F9BC}"]]},"1f468-200d-1f9bd":{"1f3fb":["1f468-1f3fb-200d-1f9bd",16,0,15,["\u{1F468}\u{1F3FB}\u200D\u{1F9BD}"]],"1f3fc":["1f468-1f3fc-200d-1f9bd",16,1,15,["\u{1F468}\u{1F3FC}\u200D\u{1F9BD}"]],"1f3fd":["1f468-1f3fd-200d-1f9bd",16,2,15,["\u{1F468}\u{1F3FD}\u200D\u{1F9BD}"]],"1f3fe":["1f468-1f3fe-200d-1f9bd",16,3,15,["\u{1F468}\u{1F3FE}\u200D\u{1F9BD}"]],"1f3ff":["1f468-1f3ff-200d-1f9bd",16,4,15,["\u{1F468}\u{1F3FF}\u200D\u{1F9BD}"]]},"1f468-200d-2695-fe0f":{"1f3fb":["1f468-1f3fb-200d-2695-fe0f",16,6,15,["\u{1F468}\u{1F3FB}\u200D\u2695\uFE0F"]],"1f3fc":["1f468-1f3fc-200d-2695-fe0f",16,7,15,["\u{1F468}\u{1F3FC}\u200D\u2695\uFE0F"]],"1f3fd":["1f468-1f3fd-200d-2695-fe0f",16,8,15,["\u{1F468}\u{1F3FD}\u200D\u2695\uFE0F"]],"1f3fe":["1f468-1f3fe-200d-2695-fe0f",16,9,15,["\u{1F468}\u{1F3FE}\u200D\u2695\uFE0F"]],"1f3ff":["1f468-1f3ff-200d-2695-fe0f",16,10,15,["\u{1F468}\u{1F3FF}\u200D\u2695\uFE0F"]]},"1f468-200d-2696-fe0f":{"1f3fb":["1f468-1f3fb-200d-2696-fe0f",16,12,15,["\u{1F468}\u{1F3FB}\u200D\u2696\uFE0F"]],"1f3fc":["1f468-1f3fc-200d-2696-fe0f",16,13,15,["\u{1F468}\u{1F3FC}\u200D\u2696\uFE0F"]],"1f3fd":["1f468-1f3fd-200d-2696-fe0f",16,14,15,["\u{1F468}\u{1F3FD}\u200D\u2696\uFE0F"]],"1f3fe":["1f468-1f3fe-200d-2696-fe0f",16,15,15,["\u{1F468}\u{1F3FE}\u200D\u2696\uFE0F"]],"1f3ff":["1f468-1f3ff-200d-2696-fe0f",16,16,15,["\u{1F468}\u{1F3FF}\u200D\u2696\uFE0F"]]},"1f468-200d-2708-fe0f":{"1f3fb":["1f468-1f3fb-200d-2708-fe0f",16,18,15,["\u{1F468}\u{1F3FB}\u200D\u2708\uFE0F"]],"1f3fc":["1f468-1f3fc-200d-2708-fe0f",16,19,15,["\u{1F468}\u{1F3FC}\u200D\u2708\uFE0F"]],"1f3fd":["1f468-1f3fd-200d-2708-fe0f",16,20,15,["\u{1F468}\u{1F3FD}\u200D\u2708\uFE0F"]],"1f3fe":["1f468-1f3fe-200d-2708-fe0f",16,21,15,["\u{1F468}\u{1F3FE}\u200D\u2708\uFE0F"]],"1f3ff":["1f468-1f3ff-200d-2708-fe0f",16,22,15,["\u{1F468}\u{1F3FF}\u200D\u2708\uFE0F"]]},"1f468-200d-2764-fe0f-200d-1f468":{"1f3fb-1f3fb":["1f468-1f3fb-200d-2764-fe0f-200d-1f468-1f3fb",16,24,15,["\u{1F468}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FB}"]],"1f3fb-1f3fc":["1f468-1f3fb-200d-2764-fe0f-200d-1f468-1f3fc",16,25,15,["\u{1F468}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FC}"]],"1f3fb-1f3fd":["1f468-1f3fb-200d-2764-fe0f-200d-1f468-1f3fd",16,26,15,["\u{1F468}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FD}"]],"1f3fb-1f3fe":["1f468-1f3fb-200d-2764-fe0f-200d-1f468-1f3fe",16,27,15,["\u{1F468}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FE}"]],"1f3fb-1f3ff":["1f468-1f3fb-200d-2764-fe0f-200d-1f468-1f3ff",16,28,15,["\u{1F468}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FF}"]],"1f3fc-1f3fb":["1f468-1f3fc-200d-2764-fe0f-200d-1f468-1f3fb",16,29,15,["\u{1F468}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FB}"]],"1f3fc-1f3fc":["1f468-1f3fc-200d-2764-fe0f-200d-1f468-1f3fc",16,30,15,["\u{1F468}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FC}"]],"1f3fc-1f3fd":["1f468-1f3fc-200d-2764-fe0f-200d-1f468-1f3fd",16,31,15,["\u{1F468}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FD}"]],"1f3fc-1f3fe":["1f468-1f3fc-200d-2764-fe0f-200d-1f468-1f3fe",16,32,15,["\u{1F468}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FE}"]],"1f3fc-1f3ff":["1f468-1f3fc-200d-2764-fe0f-200d-1f468-1f3ff",16,33,15,["\u{1F468}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FF}"]],"1f3fd-1f3fb":["1f468-1f3fd-200d-2764-fe0f-200d-1f468-1f3fb",16,34,15,["\u{1F468}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FB}"]],"1f3fd-1f3fc":["1f468-1f3fd-200d-2764-fe0f-200d-1f468-1f3fc",16,35,15,["\u{1F468}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FC}"]],"1f3fd-1f3fd":["1f468-1f3fd-200d-2764-fe0f-200d-1f468-1f3fd",16,36,15,["\u{1F468}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FD}"]],"1f3fd-1f3fe":["1f468-1f3fd-200d-2764-fe0f-200d-1f468-1f3fe",16,37,15,["\u{1F468}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FE}"]],"1f3fd-1f3ff":["1f468-1f3fd-200d-2764-fe0f-200d-1f468-1f3ff",16,38,15,["\u{1F468}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FF}"]],"1f3fe-1f3fb":["1f468-1f3fe-200d-2764-fe0f-200d-1f468-1f3fb",16,39,15,["\u{1F468}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FB}"]],"1f3fe-1f3fc":["1f468-1f3fe-200d-2764-fe0f-200d-1f468-1f3fc",16,40,15,["\u{1F468}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FC}"]],"1f3fe-1f3fd":["1f468-1f3fe-200d-2764-fe0f-200d-1f468-1f3fd",16,41,15,["\u{1F468}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FD}"]],"1f3fe-1f3fe":["1f468-1f3fe-200d-2764-fe0f-200d-1f468-1f3fe",16,42,15,["\u{1F468}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FE}"]],"1f3fe-1f3ff":["1f468-1f3fe-200d-2764-fe0f-200d-1f468-1f3ff",16,43,15,["\u{1F468}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FF}"]],"1f3ff-1f3fb":["1f468-1f3ff-200d-2764-fe0f-200d-1f468-1f3fb",16,44,15,["\u{1F468}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FB}"]],"1f3ff-1f3fc":["1f468-1f3ff-200d-2764-fe0f-200d-1f468-1f3fc",16,45,15,["\u{1F468}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FC}"]],"1f3ff-1f3fd":["1f468-1f3ff-200d-2764-fe0f-200d-1f468-1f3fd",16,46,15,["\u{1F468}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FD}"]],"1f3ff-1f3fe":["1f468-1f3ff-200d-2764-fe0f-200d-1f468-1f3fe",16,47,15,["\u{1F468}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FE}"]],"1f3ff-1f3ff":["1f468-1f3ff-200d-2764-fe0f-200d-1f468-1f3ff",16,48,15,["\u{1F468}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FF}"]]},"1f468-200d-2764-fe0f-200d-1f48b-200d-1f468":{"1f3fb-1f3fb":["1f468-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb",16,50,15,["\u{1F468}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FB}"]],"1f3fb-1f3fc":["1f468-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc",16,51,15,["\u{1F468}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FC}"]],"1f3fb-1f3fd":["1f468-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd",16,52,15,["\u{1F468}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FD}"]],"1f3fb-1f3fe":["1f468-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe",16,53,15,["\u{1F468}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FE}"]],"1f3fb-1f3ff":["1f468-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff",16,54,15,["\u{1F468}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FF}"]],"1f3fc-1f3fb":["1f468-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb",16,55,15,["\u{1F468}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FB}"]],"1f3fc-1f3fc":["1f468-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc",16,56,15,["\u{1F468}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FC}"]],"1f3fc-1f3fd":["1f468-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd",16,57,15,["\u{1F468}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FD}"]],"1f3fc-1f3fe":["1f468-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe",16,58,15,["\u{1F468}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FE}"]],"1f3fc-1f3ff":["1f468-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff",16,59,15,["\u{1F468}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FF}"]],"1f3fd-1f3fb":["1f468-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb",16,60,15,["\u{1F468}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FB}"]],"1f3fd-1f3fc":["1f468-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc",17,0,15,["\u{1F468}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FC}"]],"1f3fd-1f3fd":["1f468-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd",17,1,15,["\u{1F468}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FD}"]],"1f3fd-1f3fe":["1f468-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe",17,2,15,["\u{1F468}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FE}"]],"1f3fd-1f3ff":["1f468-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff",17,3,15,["\u{1F468}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FF}"]],"1f3fe-1f3fb":["1f468-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb",17,4,15,["\u{1F468}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FB}"]],"1f3fe-1f3fc":["1f468-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc",17,5,15,["\u{1F468}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FC}"]],"1f3fe-1f3fd":["1f468-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd",17,6,15,["\u{1F468}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FD}"]],"1f3fe-1f3fe":["1f468-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe",17,7,15,["\u{1F468}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FE}"]],"1f3fe-1f3ff":["1f468-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff",17,8,15,["\u{1F468}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FF}"]],"1f3ff-1f3fb":["1f468-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb",17,9,15,["\u{1F468}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FB}"]],"1f3ff-1f3fc":["1f468-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc",17,10,15,["\u{1F468}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FC}"]],"1f3ff-1f3fd":["1f468-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd",17,11,15,["\u{1F468}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FD}"]],"1f3ff-1f3fe":["1f468-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe",17,12,15,["\u{1F468}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FE}"]],"1f3ff-1f3ff":["1f468-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff",17,13,15,["\u{1F468}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FF}"]]},"1f468":{"1f3fb":["1f468-1f3fb",17,15,15,["\u{1F468}\u{1F3FB}"]],"1f3fc":["1f468-1f3fc",17,16,15,["\u{1F468}\u{1F3FC}"]],"1f3fd":["1f468-1f3fd",17,17,15,["\u{1F468}\u{1F3FD}"]],"1f3fe":["1f468-1f3fe",17,18,15,["\u{1F468}\u{1F3FE}"]],"1f3ff":["1f468-1f3ff",17,19,15,["\u{1F468}\u{1F3FF}"]]},"1f469-200d-1f33e":{"1f3fb":["1f469-1f3fb-200d-1f33e",17,21,15,["\u{1F469}\u{1F3FB}\u200D\u{1F33E}"]],"1f3fc":["1f469-1f3fc-200d-1f33e",17,22,15,["\u{1F469}\u{1F3FC}\u200D\u{1F33E}"]],"1f3fd":["1f469-1f3fd-200d-1f33e",17,23,15,["\u{1F469}\u{1F3FD}\u200D\u{1F33E}"]],"1f3fe":["1f469-1f3fe-200d-1f33e",17,24,15,["\u{1F469}\u{1F3FE}\u200D\u{1F33E}"]],"1f3ff":["1f469-1f3ff-200d-1f33e",17,25,15,["\u{1F469}\u{1F3FF}\u200D\u{1F33E}"]]},"1f469-200d-1f373":{"1f3fb":["1f469-1f3fb-200d-1f373",17,27,15,["\u{1F469}\u{1F3FB}\u200D\u{1F373}"]],"1f3fc":["1f469-1f3fc-200d-1f373",17,28,15,["\u{1F469}\u{1F3FC}\u200D\u{1F373}"]],"1f3fd":["1f469-1f3fd-200d-1f373",17,29,15,["\u{1F469}\u{1F3FD}\u200D\u{1F373}"]],"1f3fe":["1f469-1f3fe-200d-1f373",17,30,15,["\u{1F469}\u{1F3FE}\u200D\u{1F373}"]],"1f3ff":["1f469-1f3ff-200d-1f373",17,31,15,["\u{1F469}\u{1F3FF}\u200D\u{1F373}"]]},"1f469-200d-1f37c":{"1f3fb":["1f469-1f3fb-200d-1f37c",17,33,15,["\u{1F469}\u{1F3FB}\u200D\u{1F37C}"]],"1f3fc":["1f469-1f3fc-200d-1f37c",17,34,15,["\u{1F469}\u{1F3FC}\u200D\u{1F37C}"]],"1f3fd":["1f469-1f3fd-200d-1f37c",17,35,15,["\u{1F469}\u{1F3FD}\u200D\u{1F37C}"]],"1f3fe":["1f469-1f3fe-200d-1f37c",17,36,15,["\u{1F469}\u{1F3FE}\u200D\u{1F37C}"]],"1f3ff":["1f469-1f3ff-200d-1f37c",17,37,15,["\u{1F469}\u{1F3FF}\u200D\u{1F37C}"]]},"1f469-200d-1f393":{"1f3fb":["1f469-1f3fb-200d-1f393",17,39,15,["\u{1F469}\u{1F3FB}\u200D\u{1F393}"]],"1f3fc":["1f469-1f3fc-200d-1f393",17,40,15,["\u{1F469}\u{1F3FC}\u200D\u{1F393}"]],"1f3fd":["1f469-1f3fd-200d-1f393",17,41,15,["\u{1F469}\u{1F3FD}\u200D\u{1F393}"]],"1f3fe":["1f469-1f3fe-200d-1f393",17,42,15,["\u{1F469}\u{1F3FE}\u200D\u{1F393}"]],"1f3ff":["1f469-1f3ff-200d-1f393",17,43,15,["\u{1F469}\u{1F3FF}\u200D\u{1F393}"]]},"1f469-200d-1f3a4":{"1f3fb":["1f469-1f3fb-200d-1f3a4",17,45,15,["\u{1F469}\u{1F3FB}\u200D\u{1F3A4}"]],"1f3fc":["1f469-1f3fc-200d-1f3a4",17,46,15,["\u{1F469}\u{1F3FC}\u200D\u{1F3A4}"]],"1f3fd":["1f469-1f3fd-200d-1f3a4",17,47,15,["\u{1F469}\u{1F3FD}\u200D\u{1F3A4}"]],"1f3fe":["1f469-1f3fe-200d-1f3a4",17,48,15,["\u{1F469}\u{1F3FE}\u200D\u{1F3A4}"]],"1f3ff":["1f469-1f3ff-200d-1f3a4",17,49,15,["\u{1F469}\u{1F3FF}\u200D\u{1F3A4}"]]},"1f469-200d-1f3a8":{"1f3fb":["1f469-1f3fb-200d-1f3a8",17,51,15,["\u{1F469}\u{1F3FB}\u200D\u{1F3A8}"]],"1f3fc":["1f469-1f3fc-200d-1f3a8",17,52,15,["\u{1F469}\u{1F3FC}\u200D\u{1F3A8}"]],"1f3fd":["1f469-1f3fd-200d-1f3a8",17,53,15,["\u{1F469}\u{1F3FD}\u200D\u{1F3A8}"]],"1f3fe":["1f469-1f3fe-200d-1f3a8",17,54,15,["\u{1F469}\u{1F3FE}\u200D\u{1F3A8}"]],"1f3ff":["1f469-1f3ff-200d-1f3a8",17,55,15,["\u{1F469}\u{1F3FF}\u200D\u{1F3A8}"]]},"1f469-200d-1f3eb":{"1f3fb":["1f469-1f3fb-200d-1f3eb",17,57,15,["\u{1F469}\u{1F3FB}\u200D\u{1F3EB}"]],"1f3fc":["1f469-1f3fc-200d-1f3eb",17,58,15,["\u{1F469}\u{1F3FC}\u200D\u{1F3EB}"]],"1f3fd":["1f469-1f3fd-200d-1f3eb",17,59,15,["\u{1F469}\u{1F3FD}\u200D\u{1F3EB}"]],"1f3fe":["1f469-1f3fe-200d-1f3eb",17,60,15,["\u{1F469}\u{1F3FE}\u200D\u{1F3EB}"]],"1f3ff":["1f469-1f3ff-200d-1f3eb",18,0,15,["\u{1F469}\u{1F3FF}\u200D\u{1F3EB}"]]},"1f469-200d-1f3ed":{"1f3fb":["1f469-1f3fb-200d-1f3ed",18,2,15,["\u{1F469}\u{1F3FB}\u200D\u{1F3ED}"]],"1f3fc":["1f469-1f3fc-200d-1f3ed",18,3,15,["\u{1F469}\u{1F3FC}\u200D\u{1F3ED}"]],"1f3fd":["1f469-1f3fd-200d-1f3ed",18,4,15,["\u{1F469}\u{1F3FD}\u200D\u{1F3ED}"]],"1f3fe":["1f469-1f3fe-200d-1f3ed",18,5,15,["\u{1F469}\u{1F3FE}\u200D\u{1F3ED}"]],"1f3ff":["1f469-1f3ff-200d-1f3ed",18,6,15,["\u{1F469}\u{1F3FF}\u200D\u{1F3ED}"]]},"1f469-200d-1f4bb":{"1f3fb":["1f469-1f3fb-200d-1f4bb",18,18,15,["\u{1F469}\u{1F3FB}\u200D\u{1F4BB}"]],"1f3fc":["1f469-1f3fc-200d-1f4bb",18,19,15,["\u{1F469}\u{1F3FC}\u200D\u{1F4BB}"]],"1f3fd":["1f469-1f3fd-200d-1f4bb",18,20,15,["\u{1F469}\u{1F3FD}\u200D\u{1F4BB}"]],"1f3fe":["1f469-1f3fe-200d-1f4bb",18,21,15,["\u{1F469}\u{1F3FE}\u200D\u{1F4BB}"]],"1f3ff":["1f469-1f3ff-200d-1f4bb",18,22,15,["\u{1F469}\u{1F3FF}\u200D\u{1F4BB}"]]},"1f469-200d-1f4bc":{"1f3fb":["1f469-1f3fb-200d-1f4bc",18,24,15,["\u{1F469}\u{1F3FB}\u200D\u{1F4BC}"]],"1f3fc":["1f469-1f3fc-200d-1f4bc",18,25,15,["\u{1F469}\u{1F3FC}\u200D\u{1F4BC}"]],"1f3fd":["1f469-1f3fd-200d-1f4bc",18,26,15,["\u{1F469}\u{1F3FD}\u200D\u{1F4BC}"]],"1f3fe":["1f469-1f3fe-200d-1f4bc",18,27,15,["\u{1F469}\u{1F3FE}\u200D\u{1F4BC}"]],"1f3ff":["1f469-1f3ff-200d-1f4bc",18,28,15,["\u{1F469}\u{1F3FF}\u200D\u{1F4BC}"]]},"1f469-200d-1f527":{"1f3fb":["1f469-1f3fb-200d-1f527",18,30,15,["\u{1F469}\u{1F3FB}\u200D\u{1F527}"]],"1f3fc":["1f469-1f3fc-200d-1f527",18,31,15,["\u{1F469}\u{1F3FC}\u200D\u{1F527}"]],"1f3fd":["1f469-1f3fd-200d-1f527",18,32,15,["\u{1F469}\u{1F3FD}\u200D\u{1F527}"]],"1f3fe":["1f469-1f3fe-200d-1f527",18,33,15,["\u{1F469}\u{1F3FE}\u200D\u{1F527}"]],"1f3ff":["1f469-1f3ff-200d-1f527",18,34,15,["\u{1F469}\u{1F3FF}\u200D\u{1F527}"]]},"1f469-200d-1f52c":{"1f3fb":["1f469-1f3fb-200d-1f52c",18,36,15,["\u{1F469}\u{1F3FB}\u200D\u{1F52C}"]],"1f3fc":["1f469-1f3fc-200d-1f52c",18,37,15,["\u{1F469}\u{1F3FC}\u200D\u{1F52C}"]],"1f3fd":["1f469-1f3fd-200d-1f52c",18,38,15,["\u{1F469}\u{1F3FD}\u200D\u{1F52C}"]],"1f3fe":["1f469-1f3fe-200d-1f52c",18,39,15,["\u{1F469}\u{1F3FE}\u200D\u{1F52C}"]],"1f3ff":["1f469-1f3ff-200d-1f52c",18,40,15,["\u{1F469}\u{1F3FF}\u200D\u{1F52C}"]]},"1f469-200d-1f680":{"1f3fb":["1f469-1f3fb-200d-1f680",18,42,15,["\u{1F469}\u{1F3FB}\u200D\u{1F680}"]],"1f3fc":["1f469-1f3fc-200d-1f680",18,43,15,["\u{1F469}\u{1F3FC}\u200D\u{1F680}"]],"1f3fd":["1f469-1f3fd-200d-1f680",18,44,15,["\u{1F469}\u{1F3FD}\u200D\u{1F680}"]],"1f3fe":["1f469-1f3fe-200d-1f680",18,45,15,["\u{1F469}\u{1F3FE}\u200D\u{1F680}"]],"1f3ff":["1f469-1f3ff-200d-1f680",18,46,15,["\u{1F469}\u{1F3FF}\u200D\u{1F680}"]]},"1f469-200d-1f692":{"1f3fb":["1f469-1f3fb-200d-1f692",18,48,15,["\u{1F469}\u{1F3FB}\u200D\u{1F692}"]],"1f3fc":["1f469-1f3fc-200d-1f692",18,49,15,["\u{1F469}\u{1F3FC}\u200D\u{1F692}"]],"1f3fd":["1f469-1f3fd-200d-1f692",18,50,15,["\u{1F469}\u{1F3FD}\u200D\u{1F692}"]],"1f3fe":["1f469-1f3fe-200d-1f692",18,51,15,["\u{1F469}\u{1F3FE}\u200D\u{1F692}"]],"1f3ff":["1f469-1f3ff-200d-1f692",18,52,15,["\u{1F469}\u{1F3FF}\u200D\u{1F692}"]]},"1f469-200d-1f9af":{"1f3fb":["1f469-1f3fb-200d-1f9af",18,54,15,["\u{1F469}\u{1F3FB}\u200D\u{1F9AF}"]],"1f3fc":["1f469-1f3fc-200d-1f9af",18,55,15,["\u{1F469}\u{1F3FC}\u200D\u{1F9AF}"]],"1f3fd":["1f469-1f3fd-200d-1f9af",18,56,15,["\u{1F469}\u{1F3FD}\u200D\u{1F9AF}"]],"1f3fe":["1f469-1f3fe-200d-1f9af",18,57,15,["\u{1F469}\u{1F3FE}\u200D\u{1F9AF}"]],"1f3ff":["1f469-1f3ff-200d-1f9af",18,58,15,["\u{1F469}\u{1F3FF}\u200D\u{1F9AF}"]]},"1f469-200d-1f9b0":{"1f3fb":["1f469-1f3fb-200d-1f9b0",18,60,15,["\u{1F469}\u{1F3FB}\u200D\u{1F9B0}"]],"1f3fc":["1f469-1f3fc-200d-1f9b0",19,0,15,["\u{1F469}\u{1F3FC}\u200D\u{1F9B0}"]],"1f3fd":["1f469-1f3fd-200d-1f9b0",19,1,15,["\u{1F469}\u{1F3FD}\u200D\u{1F9B0}"]],"1f3fe":["1f469-1f3fe-200d-1f9b0",19,2,15,["\u{1F469}\u{1F3FE}\u200D\u{1F9B0}"]],"1f3ff":["1f469-1f3ff-200d-1f9b0",19,3,15,["\u{1F469}\u{1F3FF}\u200D\u{1F9B0}"]]},"1f469-200d-1f9b1":{"1f3fb":["1f469-1f3fb-200d-1f9b1",19,5,15,["\u{1F469}\u{1F3FB}\u200D\u{1F9B1}"]],"1f3fc":["1f469-1f3fc-200d-1f9b1",19,6,15,["\u{1F469}\u{1F3FC}\u200D\u{1F9B1}"]],"1f3fd":["1f469-1f3fd-200d-1f9b1",19,7,15,["\u{1F469}\u{1F3FD}\u200D\u{1F9B1}"]],"1f3fe":["1f469-1f3fe-200d-1f9b1",19,8,15,["\u{1F469}\u{1F3FE}\u200D\u{1F9B1}"]],"1f3ff":["1f469-1f3ff-200d-1f9b1",19,9,15,["\u{1F469}\u{1F3FF}\u200D\u{1F9B1}"]]},"1f469-200d-1f9b2":{"1f3fb":["1f469-1f3fb-200d-1f9b2",19,11,15,["\u{1F469}\u{1F3FB}\u200D\u{1F9B2}"]],"1f3fc":["1f469-1f3fc-200d-1f9b2",19,12,15,["\u{1F469}\u{1F3FC}\u200D\u{1F9B2}"]],"1f3fd":["1f469-1f3fd-200d-1f9b2",19,13,15,["\u{1F469}\u{1F3FD}\u200D\u{1F9B2}"]],"1f3fe":["1f469-1f3fe-200d-1f9b2",19,14,15,["\u{1F469}\u{1F3FE}\u200D\u{1F9B2}"]],"1f3ff":["1f469-1f3ff-200d-1f9b2",19,15,15,["\u{1F469}\u{1F3FF}\u200D\u{1F9B2}"]]},"1f469-200d-1f9b3":{"1f3fb":["1f469-1f3fb-200d-1f9b3",19,17,15,["\u{1F469}\u{1F3FB}\u200D\u{1F9B3}"]],"1f3fc":["1f469-1f3fc-200d-1f9b3",19,18,15,["\u{1F469}\u{1F3FC}\u200D\u{1F9B3}"]],"1f3fd":["1f469-1f3fd-200d-1f9b3",19,19,15,["\u{1F469}\u{1F3FD}\u200D\u{1F9B3}"]],"1f3fe":["1f469-1f3fe-200d-1f9b3",19,20,15,["\u{1F469}\u{1F3FE}\u200D\u{1F9B3}"]],"1f3ff":["1f469-1f3ff-200d-1f9b3",19,21,15,["\u{1F469}\u{1F3FF}\u200D\u{1F9B3}"]]},"1f469-200d-1f9bc":{"1f3fb":["1f469-1f3fb-200d-1f9bc",19,23,15,["\u{1F469}\u{1F3FB}\u200D\u{1F9BC}"]],"1f3fc":["1f469-1f3fc-200d-1f9bc",19,24,15,["\u{1F469}\u{1F3FC}\u200D\u{1F9BC}"]],"1f3fd":["1f469-1f3fd-200d-1f9bc",19,25,15,["\u{1F469}\u{1F3FD}\u200D\u{1F9BC}"]],"1f3fe":["1f469-1f3fe-200d-1f9bc",19,26,15,["\u{1F469}\u{1F3FE}\u200D\u{1F9BC}"]],"1f3ff":["1f469-1f3ff-200d-1f9bc",19,27,15,["\u{1F469}\u{1F3FF}\u200D\u{1F9BC}"]]},"1f469-200d-1f9bd":{"1f3fb":["1f469-1f3fb-200d-1f9bd",19,29,15,["\u{1F469}\u{1F3FB}\u200D\u{1F9BD}"]],"1f3fc":["1f469-1f3fc-200d-1f9bd",19,30,15,["\u{1F469}\u{1F3FC}\u200D\u{1F9BD}"]],"1f3fd":["1f469-1f3fd-200d-1f9bd",19,31,15,["\u{1F469}\u{1F3FD}\u200D\u{1F9BD}"]],"1f3fe":["1f469-1f3fe-200d-1f9bd",19,32,15,["\u{1F469}\u{1F3FE}\u200D\u{1F9BD}"]],"1f3ff":["1f469-1f3ff-200d-1f9bd",19,33,15,["\u{1F469}\u{1F3FF}\u200D\u{1F9BD}"]]},"1f469-200d-2695-fe0f":{"1f3fb":["1f469-1f3fb-200d-2695-fe0f",19,35,15,["\u{1F469}\u{1F3FB}\u200D\u2695\uFE0F"]],"1f3fc":["1f469-1f3fc-200d-2695-fe0f",19,36,15,["\u{1F469}\u{1F3FC}\u200D\u2695\uFE0F"]],"1f3fd":["1f469-1f3fd-200d-2695-fe0f",19,37,15,["\u{1F469}\u{1F3FD}\u200D\u2695\uFE0F"]],"1f3fe":["1f469-1f3fe-200d-2695-fe0f",19,38,15,["\u{1F469}\u{1F3FE}\u200D\u2695\uFE0F"]],"1f3ff":["1f469-1f3ff-200d-2695-fe0f",19,39,15,["\u{1F469}\u{1F3FF}\u200D\u2695\uFE0F"]]},"1f469-200d-2696-fe0f":{"1f3fb":["1f469-1f3fb-200d-2696-fe0f",19,41,15,["\u{1F469}\u{1F3FB}\u200D\u2696\uFE0F"]],"1f3fc":["1f469-1f3fc-200d-2696-fe0f",19,42,15,["\u{1F469}\u{1F3FC}\u200D\u2696\uFE0F"]],"1f3fd":["1f469-1f3fd-200d-2696-fe0f",19,43,15,["\u{1F469}\u{1F3FD}\u200D\u2696\uFE0F"]],"1f3fe":["1f469-1f3fe-200d-2696-fe0f",19,44,15,["\u{1F469}\u{1F3FE}\u200D\u2696\uFE0F"]],"1f3ff":["1f469-1f3ff-200d-2696-fe0f",19,45,15,["\u{1F469}\u{1F3FF}\u200D\u2696\uFE0F"]]},"1f469-200d-2708-fe0f":{"1f3fb":["1f469-1f3fb-200d-2708-fe0f",19,47,15,["\u{1F469}\u{1F3FB}\u200D\u2708\uFE0F"]],"1f3fc":["1f469-1f3fc-200d-2708-fe0f",19,48,15,["\u{1F469}\u{1F3FC}\u200D\u2708\uFE0F"]],"1f3fd":["1f469-1f3fd-200d-2708-fe0f",19,49,15,["\u{1F469}\u{1F3FD}\u200D\u2708\uFE0F"]],"1f3fe":["1f469-1f3fe-200d-2708-fe0f",19,50,15,["\u{1F469}\u{1F3FE}\u200D\u2708\uFE0F"]],"1f3ff":["1f469-1f3ff-200d-2708-fe0f",19,51,15,["\u{1F469}\u{1F3FF}\u200D\u2708\uFE0F"]]},"1f469-200d-2764-fe0f-200d-1f468":{"1f3fb-1f3fb":["1f469-1f3fb-200d-2764-fe0f-200d-1f468-1f3fb",19,53,15,["\u{1F469}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FB}"]],"1f3fb-1f3fc":["1f469-1f3fb-200d-2764-fe0f-200d-1f468-1f3fc",19,54,15,["\u{1F469}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FC}"]],"1f3fb-1f3fd":["1f469-1f3fb-200d-2764-fe0f-200d-1f468-1f3fd",19,55,15,["\u{1F469}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FD}"]],"1f3fb-1f3fe":["1f469-1f3fb-200d-2764-fe0f-200d-1f468-1f3fe",19,56,15,["\u{1F469}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FE}"]],"1f3fb-1f3ff":["1f469-1f3fb-200d-2764-fe0f-200d-1f468-1f3ff",19,57,15,["\u{1F469}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FF}"]],"1f3fc-1f3fb":["1f469-1f3fc-200d-2764-fe0f-200d-1f468-1f3fb",19,58,15,["\u{1F469}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FB}"]],"1f3fc-1f3fc":["1f469-1f3fc-200d-2764-fe0f-200d-1f468-1f3fc",19,59,15,["\u{1F469}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FC}"]],"1f3fc-1f3fd":["1f469-1f3fc-200d-2764-fe0f-200d-1f468-1f3fd",19,60,15,["\u{1F469}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FD}"]],"1f3fc-1f3fe":["1f469-1f3fc-200d-2764-fe0f-200d-1f468-1f3fe",20,0,15,["\u{1F469}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FE}"]],"1f3fc-1f3ff":["1f469-1f3fc-200d-2764-fe0f-200d-1f468-1f3ff",20,1,15,["\u{1F469}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FF}"]],"1f3fd-1f3fb":["1f469-1f3fd-200d-2764-fe0f-200d-1f468-1f3fb",20,2,15,["\u{1F469}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FB}"]],"1f3fd-1f3fc":["1f469-1f3fd-200d-2764-fe0f-200d-1f468-1f3fc",20,3,15,["\u{1F469}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FC}"]],"1f3fd-1f3fd":["1f469-1f3fd-200d-2764-fe0f-200d-1f468-1f3fd",20,4,15,["\u{1F469}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FD}"]],"1f3fd-1f3fe":["1f469-1f3fd-200d-2764-fe0f-200d-1f468-1f3fe",20,5,15,["\u{1F469}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FE}"]],"1f3fd-1f3ff":["1f469-1f3fd-200d-2764-fe0f-200d-1f468-1f3ff",20,6,15,["\u{1F469}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FF}"]],"1f3fe-1f3fb":["1f469-1f3fe-200d-2764-fe0f-200d-1f468-1f3fb",20,7,15,["\u{1F469}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FB}"]],"1f3fe-1f3fc":["1f469-1f3fe-200d-2764-fe0f-200d-1f468-1f3fc",20,8,15,["\u{1F469}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FC}"]],"1f3fe-1f3fd":["1f469-1f3fe-200d-2764-fe0f-200d-1f468-1f3fd",20,9,15,["\u{1F469}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FD}"]],"1f3fe-1f3fe":["1f469-1f3fe-200d-2764-fe0f-200d-1f468-1f3fe",20,10,15,["\u{1F469}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FE}"]],"1f3fe-1f3ff":["1f469-1f3fe-200d-2764-fe0f-200d-1f468-1f3ff",20,11,15,["\u{1F469}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FF}"]],"1f3ff-1f3fb":["1f469-1f3ff-200d-2764-fe0f-200d-1f468-1f3fb",20,12,15,["\u{1F469}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FB}"]],"1f3ff-1f3fc":["1f469-1f3ff-200d-2764-fe0f-200d-1f468-1f3fc",20,13,15,["\u{1F469}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FC}"]],"1f3ff-1f3fd":["1f469-1f3ff-200d-2764-fe0f-200d-1f468-1f3fd",20,14,15,["\u{1F469}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FD}"]],"1f3ff-1f3fe":["1f469-1f3ff-200d-2764-fe0f-200d-1f468-1f3fe",20,15,15,["\u{1F469}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FE}"]],"1f3ff-1f3ff":["1f469-1f3ff-200d-2764-fe0f-200d-1f468-1f3ff",20,16,15,["\u{1F469}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FF}"]]},"1f469-200d-2764-fe0f-200d-1f469":{"1f3fb-1f3fb":["1f469-1f3fb-200d-2764-fe0f-200d-1f469-1f3fb",20,18,15,["\u{1F469}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FB}"]],"1f3fb-1f3fc":["1f469-1f3fb-200d-2764-fe0f-200d-1f469-1f3fc",20,19,15,["\u{1F469}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FC}"]],"1f3fb-1f3fd":["1f469-1f3fb-200d-2764-fe0f-200d-1f469-1f3fd",20,20,15,["\u{1F469}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FD}"]],"1f3fb-1f3fe":["1f469-1f3fb-200d-2764-fe0f-200d-1f469-1f3fe",20,21,15,["\u{1F469}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FE}"]],"1f3fb-1f3ff":["1f469-1f3fb-200d-2764-fe0f-200d-1f469-1f3ff",20,22,15,["\u{1F469}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FF}"]],"1f3fc-1f3fb":["1f469-1f3fc-200d-2764-fe0f-200d-1f469-1f3fb",20,23,15,["\u{1F469}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FB}"]],"1f3fc-1f3fc":["1f469-1f3fc-200d-2764-fe0f-200d-1f469-1f3fc",20,24,15,["\u{1F469}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FC}"]],"1f3fc-1f3fd":["1f469-1f3fc-200d-2764-fe0f-200d-1f469-1f3fd",20,25,15,["\u{1F469}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FD}"]],"1f3fc-1f3fe":["1f469-1f3fc-200d-2764-fe0f-200d-1f469-1f3fe",20,26,15,["\u{1F469}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FE}"]],"1f3fc-1f3ff":["1f469-1f3fc-200d-2764-fe0f-200d-1f469-1f3ff",20,27,15,["\u{1F469}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FF}"]],"1f3fd-1f3fb":["1f469-1f3fd-200d-2764-fe0f-200d-1f469-1f3fb",20,28,15,["\u{1F469}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FB}"]],"1f3fd-1f3fc":["1f469-1f3fd-200d-2764-fe0f-200d-1f469-1f3fc",20,29,15,["\u{1F469}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FC}"]],"1f3fd-1f3fd":["1f469-1f3fd-200d-2764-fe0f-200d-1f469-1f3fd",20,30,15,["\u{1F469}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FD}"]],"1f3fd-1f3fe":["1f469-1f3fd-200d-2764-fe0f-200d-1f469-1f3fe",20,31,15,["\u{1F469}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FE}"]],"1f3fd-1f3ff":["1f469-1f3fd-200d-2764-fe0f-200d-1f469-1f3ff",20,32,15,["\u{1F469}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FF}"]],"1f3fe-1f3fb":["1f469-1f3fe-200d-2764-fe0f-200d-1f469-1f3fb",20,33,15,["\u{1F469}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FB}"]],"1f3fe-1f3fc":["1f469-1f3fe-200d-2764-fe0f-200d-1f469-1f3fc",20,34,15,["\u{1F469}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FC}"]],"1f3fe-1f3fd":["1f469-1f3fe-200d-2764-fe0f-200d-1f469-1f3fd",20,35,15,["\u{1F469}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FD}"]],"1f3fe-1f3fe":["1f469-1f3fe-200d-2764-fe0f-200d-1f469-1f3fe",20,36,15,["\u{1F469}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FE}"]],"1f3fe-1f3ff":["1f469-1f3fe-200d-2764-fe0f-200d-1f469-1f3ff",20,37,15,["\u{1F469}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FF}"]],"1f3ff-1f3fb":["1f469-1f3ff-200d-2764-fe0f-200d-1f469-1f3fb",20,38,15,["\u{1F469}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FB}"]],"1f3ff-1f3fc":["1f469-1f3ff-200d-2764-fe0f-200d-1f469-1f3fc",20,39,15,["\u{1F469}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FC}"]],"1f3ff-1f3fd":["1f469-1f3ff-200d-2764-fe0f-200d-1f469-1f3fd",20,40,15,["\u{1F469}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FD}"]],"1f3ff-1f3fe":["1f469-1f3ff-200d-2764-fe0f-200d-1f469-1f3fe",20,41,15,["\u{1F469}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FE}"]],"1f3ff-1f3ff":["1f469-1f3ff-200d-2764-fe0f-200d-1f469-1f3ff",20,42,15,["\u{1F469}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FF}"]]},"1f469-200d-2764-fe0f-200d-1f48b-200d-1f468":{"1f3fb-1f3fb":["1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb",20,44,15,["\u{1F469}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FB}"]],"1f3fb-1f3fc":["1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc",20,45,15,["\u{1F469}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FC}"]],"1f3fb-1f3fd":["1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd",20,46,15,["\u{1F469}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FD}"]],"1f3fb-1f3fe":["1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe",20,47,15,["\u{1F469}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FE}"]],"1f3fb-1f3ff":["1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff",20,48,15,["\u{1F469}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FF}"]],"1f3fc-1f3fb":["1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb",20,49,15,["\u{1F469}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FB}"]],"1f3fc-1f3fc":["1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc",20,50,15,["\u{1F469}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FC}"]],"1f3fc-1f3fd":["1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd",20,51,15,["\u{1F469}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FD}"]],"1f3fc-1f3fe":["1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe",20,52,15,["\u{1F469}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FE}"]],"1f3fc-1f3ff":["1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff",20,53,15,["\u{1F469}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FF}"]],"1f3fd-1f3fb":["1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb",20,54,15,["\u{1F469}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FB}"]],"1f3fd-1f3fc":["1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc",20,55,15,["\u{1F469}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FC}"]],"1f3fd-1f3fd":["1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd",20,56,15,["\u{1F469}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FD}"]],"1f3fd-1f3fe":["1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe",20,57,15,["\u{1F469}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FE}"]],"1f3fd-1f3ff":["1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff",20,58,15,["\u{1F469}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FF}"]],"1f3fe-1f3fb":["1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb",20,59,15,["\u{1F469}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FB}"]],"1f3fe-1f3fc":["1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc",20,60,15,["\u{1F469}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FC}"]],"1f3fe-1f3fd":["1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd",21,0,15,["\u{1F469}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FD}"]],"1f3fe-1f3fe":["1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe",21,1,15,["\u{1F469}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FE}"]],"1f3fe-1f3ff":["1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff",21,2,15,["\u{1F469}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FF}"]],"1f3ff-1f3fb":["1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb",21,3,15,["\u{1F469}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FB}"]],"1f3ff-1f3fc":["1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc",21,4,15,["\u{1F469}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FC}"]],"1f3ff-1f3fd":["1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd",21,5,15,["\u{1F469}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FD}"]],"1f3ff-1f3fe":["1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe",21,6,15,["\u{1F469}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FE}"]],"1f3ff-1f3ff":["1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff",21,7,15,["\u{1F469}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FF}"]]},"1f469-200d-2764-fe0f-200d-1f48b-200d-1f469":{"1f3fb-1f3fb":["1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fb",21,9,15,["\u{1F469}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FB}"]],"1f3fb-1f3fc":["1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fc",21,10,15,["\u{1F469}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FC}"]],"1f3fb-1f3fd":["1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fd",21,11,15,["\u{1F469}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FD}"]],"1f3fb-1f3fe":["1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fe",21,12,15,["\u{1F469}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FE}"]],"1f3fb-1f3ff":["1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3ff",21,13,15,["\u{1F469}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FF}"]],"1f3fc-1f3fb":["1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fb",21,14,15,["\u{1F469}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FB}"]],"1f3fc-1f3fc":["1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fc",21,15,15,["\u{1F469}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FC}"]],"1f3fc-1f3fd":["1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fd",21,16,15,["\u{1F469}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FD}"]],"1f3fc-1f3fe":["1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fe",21,17,15,["\u{1F469}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FE}"]],"1f3fc-1f3ff":["1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3ff",21,18,15,["\u{1F469}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FF}"]],"1f3fd-1f3fb":["1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fb",21,19,15,["\u{1F469}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FB}"]],"1f3fd-1f3fc":["1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fc",21,20,15,["\u{1F469}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FC}"]],"1f3fd-1f3fd":["1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fd",21,21,15,["\u{1F469}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FD}"]],"1f3fd-1f3fe":["1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fe",21,22,15,["\u{1F469}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FE}"]],"1f3fd-1f3ff":["1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3ff",21,23,15,["\u{1F469}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FF}"]],"1f3fe-1f3fb":["1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fb",21,24,15,["\u{1F469}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FB}"]],"1f3fe-1f3fc":["1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fc",21,25,15,["\u{1F469}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FC}"]],"1f3fe-1f3fd":["1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fd",21,26,15,["\u{1F469}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FD}"]],"1f3fe-1f3fe":["1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fe",21,27,15,["\u{1F469}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FE}"]],"1f3fe-1f3ff":["1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3ff",21,28,15,["\u{1F469}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FF}"]],"1f3ff-1f3fb":["1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fb",21,29,15,["\u{1F469}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FB}"]],"1f3ff-1f3fc":["1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fc",21,30,15,["\u{1F469}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FC}"]],"1f3ff-1f3fd":["1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fd",21,31,15,["\u{1F469}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FD}"]],"1f3ff-1f3fe":["1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fe",21,32,15,["\u{1F469}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FE}"]],"1f3ff-1f3ff":["1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3ff",21,33,15,["\u{1F469}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FF}"]]},"1f469":{"1f3fb":["1f469-1f3fb",21,35,15,["\u{1F469}\u{1F3FB}"]],"1f3fc":["1f469-1f3fc",21,36,15,["\u{1F469}\u{1F3FC}"]],"1f3fd":["1f469-1f3fd",21,37,15,["\u{1F469}\u{1F3FD}"]],"1f3fe":["1f469-1f3fe",21,38,15,["\u{1F469}\u{1F3FE}"]],"1f3ff":["1f469-1f3ff",21,39,15,["\u{1F469}\u{1F3FF}"]]},"1f46b":{"1f3fb":["1f46b-1f3fb",21,42,15,["\u{1F46B}\u{1F3FB}"]],"1f3fc":["1f46b-1f3fc",21,43,15,["\u{1F46B}\u{1F3FC}"]],"1f3fd":["1f46b-1f3fd",21,44,15,["\u{1F46B}\u{1F3FD}"]],"1f3fe":["1f46b-1f3fe",21,45,15,["\u{1F46B}\u{1F3FE}"]],"1f3ff":["1f46b-1f3ff",21,46,15,["\u{1F46B}\u{1F3FF}"]],"1f3fb-1f3fc":["1f469-1f3fb-200d-1f91d-200d-1f468-1f3fc",21,47,15,["\u{1F469}\u{1F3FB}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FC}"]],"1f3fb-1f3fd":["1f469-1f3fb-200d-1f91d-200d-1f468-1f3fd",21,48,15,["\u{1F469}\u{1F3FB}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FD}"]],"1f3fb-1f3fe":["1f469-1f3fb-200d-1f91d-200d-1f468-1f3fe",21,49,15,["\u{1F469}\u{1F3FB}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FE}"]],"1f3fb-1f3ff":["1f469-1f3fb-200d-1f91d-200d-1f468-1f3ff",21,50,15,["\u{1F469}\u{1F3FB}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FF}"]],"1f3fc-1f3fb":["1f469-1f3fc-200d-1f91d-200d-1f468-1f3fb",21,51,15,["\u{1F469}\u{1F3FC}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FB}"]],"1f3fc-1f3fd":["1f469-1f3fc-200d-1f91d-200d-1f468-1f3fd",21,52,15,["\u{1F469}\u{1F3FC}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FD}"]],"1f3fc-1f3fe":["1f469-1f3fc-200d-1f91d-200d-1f468-1f3fe",21,53,15,["\u{1F469}\u{1F3FC}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FE}"]],"1f3fc-1f3ff":["1f469-1f3fc-200d-1f91d-200d-1f468-1f3ff",21,54,15,["\u{1F469}\u{1F3FC}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FF}"]],"1f3fd-1f3fb":["1f469-1f3fd-200d-1f91d-200d-1f468-1f3fb",21,55,15,["\u{1F469}\u{1F3FD}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FB}"]],"1f3fd-1f3fc":["1f469-1f3fd-200d-1f91d-200d-1f468-1f3fc",21,56,15,["\u{1F469}\u{1F3FD}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FC}"]],"1f3fd-1f3fe":["1f469-1f3fd-200d-1f91d-200d-1f468-1f3fe",21,57,15,["\u{1F469}\u{1F3FD}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FE}"]],"1f3fd-1f3ff":["1f469-1f3fd-200d-1f91d-200d-1f468-1f3ff",21,58,15,["\u{1F469}\u{1F3FD}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FF}"]],"1f3fe-1f3fb":["1f469-1f3fe-200d-1f91d-200d-1f468-1f3fb",21,59,15,["\u{1F469}\u{1F3FE}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FB}"]],"1f3fe-1f3fc":["1f469-1f3fe-200d-1f91d-200d-1f468-1f3fc",21,60,15,["\u{1F469}\u{1F3FE}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FC}"]],"1f3fe-1f3fd":["1f469-1f3fe-200d-1f91d-200d-1f468-1f3fd",22,0,15,["\u{1F469}\u{1F3FE}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FD}"]],"1f3fe-1f3ff":["1f469-1f3fe-200d-1f91d-200d-1f468-1f3ff",22,1,15,["\u{1F469}\u{1F3FE}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FF}"]],"1f3ff-1f3fb":["1f469-1f3ff-200d-1f91d-200d-1f468-1f3fb",22,2,15,["\u{1F469}\u{1F3FF}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FB}"]],"1f3ff-1f3fc":["1f469-1f3ff-200d-1f91d-200d-1f468-1f3fc",22,3,15,["\u{1F469}\u{1F3FF}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FC}"]],"1f3ff-1f3fd":["1f469-1f3ff-200d-1f91d-200d-1f468-1f3fd",22,4,15,["\u{1F469}\u{1F3FF}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FD}"]],"1f3ff-1f3fe":["1f469-1f3ff-200d-1f91d-200d-1f468-1f3fe",22,5,15,["\u{1F469}\u{1F3FF}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FE}"]]},"1f46c":{"1f3fb":["1f46c-1f3fb",22,7,15,["\u{1F46C}\u{1F3FB}"]],"1f3fc":["1f46c-1f3fc",22,8,15,["\u{1F46C}\u{1F3FC}"]],"1f3fd":["1f46c-1f3fd",22,9,15,["\u{1F46C}\u{1F3FD}"]],"1f3fe":["1f46c-1f3fe",22,10,15,["\u{1F46C}\u{1F3FE}"]],"1f3ff":["1f46c-1f3ff",22,11,15,["\u{1F46C}\u{1F3FF}"]],"1f3fb-1f3fc":["1f468-1f3fb-200d-1f91d-200d-1f468-1f3fc",22,12,15,["\u{1F468}\u{1F3FB}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FC}"]],"1f3fb-1f3fd":["1f468-1f3fb-200d-1f91d-200d-1f468-1f3fd",22,13,15,["\u{1F468}\u{1F3FB}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FD}"]],"1f3fb-1f3fe":["1f468-1f3fb-200d-1f91d-200d-1f468-1f3fe",22,14,15,["\u{1F468}\u{1F3FB}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FE}"]],"1f3fb-1f3ff":["1f468-1f3fb-200d-1f91d-200d-1f468-1f3ff",22,15,15,["\u{1F468}\u{1F3FB}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FF}"]],"1f3fc-1f3fb":["1f468-1f3fc-200d-1f91d-200d-1f468-1f3fb",22,16,15,["\u{1F468}\u{1F3FC}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FB}"]],"1f3fc-1f3fd":["1f468-1f3fc-200d-1f91d-200d-1f468-1f3fd",22,17,15,["\u{1F468}\u{1F3FC}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FD}"]],"1f3fc-1f3fe":["1f468-1f3fc-200d-1f91d-200d-1f468-1f3fe",22,18,15,["\u{1F468}\u{1F3FC}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FE}"]],"1f3fc-1f3ff":["1f468-1f3fc-200d-1f91d-200d-1f468-1f3ff",22,19,15,["\u{1F468}\u{1F3FC}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FF}"]],"1f3fd-1f3fb":["1f468-1f3fd-200d-1f91d-200d-1f468-1f3fb",22,20,15,["\u{1F468}\u{1F3FD}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FB}"]],"1f3fd-1f3fc":["1f468-1f3fd-200d-1f91d-200d-1f468-1f3fc",22,21,15,["\u{1F468}\u{1F3FD}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FC}"]],"1f3fd-1f3fe":["1f468-1f3fd-200d-1f91d-200d-1f468-1f3fe",22,22,15,["\u{1F468}\u{1F3FD}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FE}"]],"1f3fd-1f3ff":["1f468-1f3fd-200d-1f91d-200d-1f468-1f3ff",22,23,15,["\u{1F468}\u{1F3FD}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FF}"]],"1f3fe-1f3fb":["1f468-1f3fe-200d-1f91d-200d-1f468-1f3fb",22,24,15,["\u{1F468}\u{1F3FE}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FB}"]],"1f3fe-1f3fc":["1f468-1f3fe-200d-1f91d-200d-1f468-1f3fc",22,25,15,["\u{1F468}\u{1F3FE}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FC}"]],"1f3fe-1f3fd":["1f468-1f3fe-200d-1f91d-200d-1f468-1f3fd",22,26,15,["\u{1F468}\u{1F3FE}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FD}"]],"1f3fe-1f3ff":["1f468-1f3fe-200d-1f91d-200d-1f468-1f3ff",22,27,15,["\u{1F468}\u{1F3FE}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FF}"]],"1f3ff-1f3fb":["1f468-1f3ff-200d-1f91d-200d-1f468-1f3fb",22,28,15,["\u{1F468}\u{1F3FF}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FB}"]],"1f3ff-1f3fc":["1f468-1f3ff-200d-1f91d-200d-1f468-1f3fc",22,29,15,["\u{1F468}\u{1F3FF}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FC}"]],"1f3ff-1f3fd":["1f468-1f3ff-200d-1f91d-200d-1f468-1f3fd",22,30,15,["\u{1F468}\u{1F3FF}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FD}"]],"1f3ff-1f3fe":["1f468-1f3ff-200d-1f91d-200d-1f468-1f3fe",22,31,15,["\u{1F468}\u{1F3FF}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FE}"]]},"1f46d":{"1f3fb":["1f46d-1f3fb",22,33,15,["\u{1F46D}\u{1F3FB}"]],"1f3fc":["1f46d-1f3fc",22,34,15,["\u{1F46D}\u{1F3FC}"]],"1f3fd":["1f46d-1f3fd",22,35,15,["\u{1F46D}\u{1F3FD}"]],"1f3fe":["1f46d-1f3fe",22,36,15,["\u{1F46D}\u{1F3FE}"]],"1f3ff":["1f46d-1f3ff",22,37,15,["\u{1F46D}\u{1F3FF}"]],"1f3fb-1f3fc":["1f469-1f3fb-200d-1f91d-200d-1f469-1f3fc",22,38,15,["\u{1F469}\u{1F3FB}\u200D\u{1F91D}\u200D\u{1F469}\u{1F3FC}"]],"1f3fb-1f3fd":["1f469-1f3fb-200d-1f91d-200d-1f469-1f3fd",22,39,15,["\u{1F469}\u{1F3FB}\u200D\u{1F91D}\u200D\u{1F469}\u{1F3FD}"]],"1f3fb-1f3fe":["1f469-1f3fb-200d-1f91d-200d-1f469-1f3fe",22,40,15,["\u{1F469}\u{1F3FB}\u200D\u{1F91D}\u200D\u{1F469}\u{1F3FE}"]],"1f3fb-1f3ff":["1f469-1f3fb-200d-1f91d-200d-1f469-1f3ff",22,41,15,["\u{1F469}\u{1F3FB}\u200D\u{1F91D}\u200D\u{1F469}\u{1F3FF}"]],"1f3fc-1f3fb":["1f469-1f3fc-200d-1f91d-200d-1f469-1f3fb",22,42,15,["\u{1F469}\u{1F3FC}\u200D\u{1F91D}\u200D\u{1F469}\u{1F3FB}"]],"1f3fc-1f3fd":["1f469-1f3fc-200d-1f91d-200d-1f469-1f3fd",22,43,15,["\u{1F469}\u{1F3FC}\u200D\u{1F91D}\u200D\u{1F469}\u{1F3FD}"]],"1f3fc-1f3fe":["1f469-1f3fc-200d-1f91d-200d-1f469-1f3fe",22,44,15,["\u{1F469}\u{1F3FC}\u200D\u{1F91D}\u200D\u{1F469}\u{1F3FE}"]],"1f3fc-1f3ff":["1f469-1f3fc-200d-1f91d-200d-1f469-1f3ff",22,45,15,["\u{1F469}\u{1F3FC}\u200D\u{1F91D}\u200D\u{1F469}\u{1F3FF}"]],"1f3fd-1f3fb":["1f469-1f3fd-200d-1f91d-200d-1f469-1f3fb",22,46,15,["\u{1F469}\u{1F3FD}\u200D\u{1F91D}\u200D\u{1F469}\u{1F3FB}"]],"1f3fd-1f3fc":["1f469-1f3fd-200d-1f91d-200d-1f469-1f3fc",22,47,15,["\u{1F469}\u{1F3FD}\u200D\u{1F91D}\u200D\u{1F469}\u{1F3FC}"]],"1f3fd-1f3fe":["1f469-1f3fd-200d-1f91d-200d-1f469-1f3fe",22,48,15,["\u{1F469}\u{1F3FD}\u200D\u{1F91D}\u200D\u{1F469}\u{1F3FE}"]],"1f3fd-1f3ff":["1f469-1f3fd-200d-1f91d-200d-1f469-1f3ff",22,49,15,["\u{1F469}\u{1F3FD}\u200D\u{1F91D}\u200D\u{1F469}\u{1F3FF}"]],"1f3fe-1f3fb":["1f469-1f3fe-200d-1f91d-200d-1f469-1f3fb",22,50,15,["\u{1F469}\u{1F3FE}\u200D\u{1F91D}\u200D\u{1F469}\u{1F3FB}"]],"1f3fe-1f3fc":["1f469-1f3fe-200d-1f91d-200d-1f469-1f3fc",22,51,15,["\u{1F469}\u{1F3FE}\u200D\u{1F91D}\u200D\u{1F469}\u{1F3FC}"]],"1f3fe-1f3fd":["1f469-1f3fe-200d-1f91d-200d-1f469-1f3fd",22,52,15,["\u{1F469}\u{1F3FE}\u200D\u{1F91D}\u200D\u{1F469}\u{1F3FD}"]],"1f3fe-1f3ff":["1f469-1f3fe-200d-1f91d-200d-1f469-1f3ff",22,53,15,["\u{1F469}\u{1F3FE}\u200D\u{1F91D}\u200D\u{1F469}\u{1F3FF}"]],"1f3ff-1f3fb":["1f469-1f3ff-200d-1f91d-200d-1f469-1f3fb",22,54,15,["\u{1F469}\u{1F3FF}\u200D\u{1F91D}\u200D\u{1F469}\u{1F3FB}"]],"1f3ff-1f3fc":["1f469-1f3ff-200d-1f91d-200d-1f469-1f3fc",22,55,15,["\u{1F469}\u{1F3FF}\u200D\u{1F91D}\u200D\u{1F469}\u{1F3FC}"]],"1f3ff-1f3fd":["1f469-1f3ff-200d-1f91d-200d-1f469-1f3fd",22,56,15,["\u{1F469}\u{1F3FF}\u200D\u{1F91D}\u200D\u{1F469}\u{1F3FD}"]],"1f3ff-1f3fe":["1f469-1f3ff-200d-1f91d-200d-1f469-1f3fe",22,57,15,["\u{1F469}\u{1F3FF}\u200D\u{1F91D}\u200D\u{1F469}\u{1F3FE}"]]},"1f46e-200d-2640-fe0f":{"1f3fb":["1f46e-1f3fb-200d-2640-fe0f",22,59,15,["\u{1F46E}\u{1F3FB}\u200D\u2640\uFE0F"]],"1f3fc":["1f46e-1f3fc-200d-2640-fe0f",22,60,15,["\u{1F46E}\u{1F3FC}\u200D\u2640\uFE0F"]],"1f3fd":["1f46e-1f3fd-200d-2640-fe0f",23,0,15,["\u{1F46E}\u{1F3FD}\u200D\u2640\uFE0F"]],"1f3fe":["1f46e-1f3fe-200d-2640-fe0f",23,1,15,["\u{1F46E}\u{1F3FE}\u200D\u2640\uFE0F"]],"1f3ff":["1f46e-1f3ff-200d-2640-fe0f",23,2,15,["\u{1F46E}\u{1F3FF}\u200D\u2640\uFE0F"]]},"1f46e-200d-2642-fe0f":{"1f3fb":["1f46e-1f3fb-200d-2642-fe0f",23,4,15,["\u{1F46E}\u{1F3FB}\u200D\u2642\uFE0F","\u{1F46E}\u{1F3FB}"]],"1f3fc":["1f46e-1f3fc-200d-2642-fe0f",23,5,15,["\u{1F46E}\u{1F3FC}\u200D\u2642\uFE0F","\u{1F46E}\u{1F3FC}"]],"1f3fd":["1f46e-1f3fd-200d-2642-fe0f",23,6,15,["\u{1F46E}\u{1F3FD}\u200D\u2642\uFE0F","\u{1F46E}\u{1F3FD}"]],"1f3fe":["1f46e-1f3fe-200d-2642-fe0f",23,7,15,["\u{1F46E}\u{1F3FE}\u200D\u2642\uFE0F","\u{1F46E}\u{1F3FE}"]],"1f3ff":["1f46e-1f3ff-200d-2642-fe0f",23,8,15,["\u{1F46E}\u{1F3FF}\u200D\u2642\uFE0F","\u{1F46E}\u{1F3FF}"]]},"1f470-200d-2640-fe0f":{"1f3fb":["1f470-1f3fb-200d-2640-fe0f",23,19,15,["\u{1F470}\u{1F3FB}\u200D\u2640\uFE0F"]],"1f3fc":["1f470-1f3fc-200d-2640-fe0f",23,20,15,["\u{1F470}\u{1F3FC}\u200D\u2640\uFE0F"]],"1f3fd":["1f470-1f3fd-200d-2640-fe0f",23,21,15,["\u{1F470}\u{1F3FD}\u200D\u2640\uFE0F"]],"1f3fe":["1f470-1f3fe-200d-2640-fe0f",23,22,15,["\u{1F470}\u{1F3FE}\u200D\u2640\uFE0F"]],"1f3ff":["1f470-1f3ff-200d-2640-fe0f",23,23,15,["\u{1F470}\u{1F3FF}\u200D\u2640\uFE0F"]]},"1f470-200d-2642-fe0f":{"1f3fb":["1f470-1f3fb-200d-2642-fe0f",23,25,15,["\u{1F470}\u{1F3FB}\u200D\u2642\uFE0F"]],"1f3fc":["1f470-1f3fc-200d-2642-fe0f",23,26,15,["\u{1F470}\u{1F3FC}\u200D\u2642\uFE0F"]],"1f3fd":["1f470-1f3fd-200d-2642-fe0f",23,27,15,["\u{1F470}\u{1F3FD}\u200D\u2642\uFE0F"]],"1f3fe":["1f470-1f3fe-200d-2642-fe0f",23,28,15,["\u{1F470}\u{1F3FE}\u200D\u2642\uFE0F"]],"1f3ff":["1f470-1f3ff-200d-2642-fe0f",23,29,15,["\u{1F470}\u{1F3FF}\u200D\u2642\uFE0F"]]},"1f470":{"1f3fb":["1f470-1f3fb",23,31,15,["\u{1F470}\u{1F3FB}"]],"1f3fc":["1f470-1f3fc",23,32,15,["\u{1F470}\u{1F3FC}"]],"1f3fd":["1f470-1f3fd",23,33,15,["\u{1F470}\u{1F3FD}"]],"1f3fe":["1f470-1f3fe",23,34,15,["\u{1F470}\u{1F3FE}"]],"1f3ff":["1f470-1f3ff",23,35,15,["\u{1F470}\u{1F3FF}"]]},"1f471-200d-2640-fe0f":{"1f3fb":["1f471-1f3fb-200d-2640-fe0f",23,37,15,["\u{1F471}\u{1F3FB}\u200D\u2640\uFE0F"]],"1f3fc":["1f471-1f3fc-200d-2640-fe0f",23,38,15,["\u{1F471}\u{1F3FC}\u200D\u2640\uFE0F"]],"1f3fd":["1f471-1f3fd-200d-2640-fe0f",23,39,15,["\u{1F471}\u{1F3FD}\u200D\u2640\uFE0F"]],"1f3fe":["1f471-1f3fe-200d-2640-fe0f",23,40,15,["\u{1F471}\u{1F3FE}\u200D\u2640\uFE0F"]],"1f3ff":["1f471-1f3ff-200d-2640-fe0f",23,41,15,["\u{1F471}\u{1F3FF}\u200D\u2640\uFE0F"]]},"1f471-200d-2642-fe0f":{"1f3fb":["1f471-1f3fb-200d-2642-fe0f",23,43,15,["\u{1F471}\u{1F3FB}\u200D\u2642\uFE0F","\u{1F471}\u{1F3FB}"]],"1f3fc":["1f471-1f3fc-200d-2642-fe0f",23,44,15,["\u{1F471}\u{1F3FC}\u200D\u2642\uFE0F","\u{1F471}\u{1F3FC}"]],"1f3fd":["1f471-1f3fd-200d-2642-fe0f",23,45,15,["\u{1F471}\u{1F3FD}\u200D\u2642\uFE0F","\u{1F471}\u{1F3FD}"]],"1f3fe":["1f471-1f3fe-200d-2642-fe0f",23,46,15,["\u{1F471}\u{1F3FE}\u200D\u2642\uFE0F","\u{1F471}\u{1F3FE}"]],"1f3ff":["1f471-1f3ff-200d-2642-fe0f",23,47,15,["\u{1F471}\u{1F3FF}\u200D\u2642\uFE0F","\u{1F471}\u{1F3FF}"]]},"1f472":{"1f3fb":["1f472-1f3fb",23,55,15,["\u{1F472}\u{1F3FB}"]],"1f3fc":["1f472-1f3fc",23,56,15,["\u{1F472}\u{1F3FC}"]],"1f3fd":["1f472-1f3fd",23,57,15,["\u{1F472}\u{1F3FD}"]],"1f3fe":["1f472-1f3fe",23,58,15,["\u{1F472}\u{1F3FE}"]],"1f3ff":["1f472-1f3ff",23,59,15,["\u{1F472}\u{1F3FF}"]]},"1f473-200d-2640-fe0f":{"1f3fb":["1f473-1f3fb-200d-2640-fe0f",24,0,15,["\u{1F473}\u{1F3FB}\u200D\u2640\uFE0F"]],"1f3fc":["1f473-1f3fc-200d-2640-fe0f",24,1,15,["\u{1F473}\u{1F3FC}\u200D\u2640\uFE0F"]],"1f3fd":["1f473-1f3fd-200d-2640-fe0f",24,2,15,["\u{1F473}\u{1F3FD}\u200D\u2640\uFE0F"]],"1f3fe":["1f473-1f3fe-200d-2640-fe0f",24,3,15,["\u{1F473}\u{1F3FE}\u200D\u2640\uFE0F"]],"1f3ff":["1f473-1f3ff-200d-2640-fe0f",24,4,15,["\u{1F473}\u{1F3FF}\u200D\u2640\uFE0F"]]},"1f473-200d-2642-fe0f":{"1f3fb":["1f473-1f3fb-200d-2642-fe0f",24,6,15,["\u{1F473}\u{1F3FB}\u200D\u2642\uFE0F","\u{1F473}\u{1F3FB}"]],"1f3fc":["1f473-1f3fc-200d-2642-fe0f",24,7,15,["\u{1F473}\u{1F3FC}\u200D\u2642\uFE0F","\u{1F473}\u{1F3FC}"]],"1f3fd":["1f473-1f3fd-200d-2642-fe0f",24,8,15,["\u{1F473}\u{1F3FD}\u200D\u2642\uFE0F","\u{1F473}\u{1F3FD}"]],"1f3fe":["1f473-1f3fe-200d-2642-fe0f",24,9,15,["\u{1F473}\u{1F3FE}\u200D\u2642\uFE0F","\u{1F473}\u{1F3FE}"]],"1f3ff":["1f473-1f3ff-200d-2642-fe0f",24,10,15,["\u{1F473}\u{1F3FF}\u200D\u2642\uFE0F","\u{1F473}\u{1F3FF}"]]},"1f474":{"1f3fb":["1f474-1f3fb",24,18,15,["\u{1F474}\u{1F3FB}"]],"1f3fc":["1f474-1f3fc",24,19,15,["\u{1F474}\u{1F3FC}"]],"1f3fd":["1f474-1f3fd",24,20,15,["\u{1F474}\u{1F3FD}"]],"1f3fe":["1f474-1f3fe",24,21,15,["\u{1F474}\u{1F3FE}"]],"1f3ff":["1f474-1f3ff",24,22,15,["\u{1F474}\u{1F3FF}"]]},"1f475":{"1f3fb":["1f475-1f3fb",24,24,15,["\u{1F475}\u{1F3FB}"]],"1f3fc":["1f475-1f3fc",24,25,15,["\u{1F475}\u{1F3FC}"]],"1f3fd":["1f475-1f3fd",24,26,15,["\u{1F475}\u{1F3FD}"]],"1f3fe":["1f475-1f3fe",24,27,15,["\u{1F475}\u{1F3FE}"]],"1f3ff":["1f475-1f3ff",24,28,15,["\u{1F475}\u{1F3FF}"]]},"1f476":{"1f3fb":["1f476-1f3fb",24,30,15,["\u{1F476}\u{1F3FB}"]],"1f3fc":["1f476-1f3fc",24,31,15,["\u{1F476}\u{1F3FC}"]],"1f3fd":["1f476-1f3fd",24,32,15,["\u{1F476}\u{1F3FD}"]],"1f3fe":["1f476-1f3fe",24,33,15,["\u{1F476}\u{1F3FE}"]],"1f3ff":["1f476-1f3ff",24,34,15,["\u{1F476}\u{1F3FF}"]]},"1f477-200d-2640-fe0f":{"1f3fb":["1f477-1f3fb-200d-2640-fe0f",24,36,15,["\u{1F477}\u{1F3FB}\u200D\u2640\uFE0F"]],"1f3fc":["1f477-1f3fc-200d-2640-fe0f",24,37,15,["\u{1F477}\u{1F3FC}\u200D\u2640\uFE0F"]],"1f3fd":["1f477-1f3fd-200d-2640-fe0f",24,38,15,["\u{1F477}\u{1F3FD}\u200D\u2640\uFE0F"]],"1f3fe":["1f477-1f3fe-200d-2640-fe0f",24,39,15,["\u{1F477}\u{1F3FE}\u200D\u2640\uFE0F"]],"1f3ff":["1f477-1f3ff-200d-2640-fe0f",24,40,15,["\u{1F477}\u{1F3FF}\u200D\u2640\uFE0F"]]},"1f477-200d-2642-fe0f":{"1f3fb":["1f477-1f3fb-200d-2642-fe0f",24,42,15,["\u{1F477}\u{1F3FB}\u200D\u2642\uFE0F","\u{1F477}\u{1F3FB}"]],"1f3fc":["1f477-1f3fc-200d-2642-fe0f",24,43,15,["\u{1F477}\u{1F3FC}\u200D\u2642\uFE0F","\u{1F477}\u{1F3FC}"]],"1f3fd":["1f477-1f3fd-200d-2642-fe0f",24,44,15,["\u{1F477}\u{1F3FD}\u200D\u2642\uFE0F","\u{1F477}\u{1F3FD}"]],"1f3fe":["1f477-1f3fe-200d-2642-fe0f",24,45,15,["\u{1F477}\u{1F3FE}\u200D\u2642\uFE0F","\u{1F477}\u{1F3FE}"]],"1f3ff":["1f477-1f3ff-200d-2642-fe0f",24,46,15,["\u{1F477}\u{1F3FF}\u200D\u2642\uFE0F","\u{1F477}\u{1F3FF}"]]},"1f478":{"1f3fb":["1f478-1f3fb",24,54,15,["\u{1F478}\u{1F3FB}"]],"1f3fc":["1f478-1f3fc",24,55,15,["\u{1F478}\u{1F3FC}"]],"1f3fd":["1f478-1f3fd",24,56,15,["\u{1F478}\u{1F3FD}"]],"1f3fe":["1f478-1f3fe",24,57,15,["\u{1F478}\u{1F3FE}"]],"1f3ff":["1f478-1f3ff",24,58,15,["\u{1F478}\u{1F3FF}"]]},"1f47c":{"1f3fb":["1f47c-1f3fb",25,2,15,["\u{1F47C}\u{1F3FB}"]],"1f3fc":["1f47c-1f3fc",25,3,15,["\u{1F47C}\u{1F3FC}"]],"1f3fd":["1f47c-1f3fd",25,4,15,["\u{1F47C}\u{1F3FD}"]],"1f3fe":["1f47c-1f3fe",25,5,15,["\u{1F47C}\u{1F3FE}"]],"1f3ff":["1f47c-1f3ff",25,6,15,["\u{1F47C}\u{1F3FF}"]]},"1f481-200d-2640-fe0f":{"1f3fb":["1f481-1f3fb-200d-2640-fe0f",25,12,15,["\u{1F481}\u{1F3FB}\u200D\u2640\uFE0F","\u{1F481}\u{1F3FB}"]],"1f3fc":["1f481-1f3fc-200d-2640-fe0f",25,13,15,["\u{1F481}\u{1F3FC}\u200D\u2640\uFE0F","\u{1F481}\u{1F3FC}"]],"1f3fd":["1f481-1f3fd-200d-2640-fe0f",25,14,15,["\u{1F481}\u{1F3FD}\u200D\u2640\uFE0F","\u{1F481}\u{1F3FD}"]],"1f3fe":["1f481-1f3fe-200d-2640-fe0f",25,15,15,["\u{1F481}\u{1F3FE}\u200D\u2640\uFE0F","\u{1F481}\u{1F3FE}"]],"1f3ff":["1f481-1f3ff-200d-2640-fe0f",25,16,15,["\u{1F481}\u{1F3FF}\u200D\u2640\uFE0F","\u{1F481}\u{1F3FF}"]]},"1f481-200d-2642-fe0f":{"1f3fb":["1f481-1f3fb-200d-2642-fe0f",25,18,15,["\u{1F481}\u{1F3FB}\u200D\u2642\uFE0F"]],"1f3fc":["1f481-1f3fc-200d-2642-fe0f",25,19,15,["\u{1F481}\u{1F3FC}\u200D\u2642\uFE0F"]],"1f3fd":["1f481-1f3fd-200d-2642-fe0f",25,20,15,["\u{1F481}\u{1F3FD}\u200D\u2642\uFE0F"]],"1f3fe":["1f481-1f3fe-200d-2642-fe0f",25,21,15,["\u{1F481}\u{1F3FE}\u200D\u2642\uFE0F"]],"1f3ff":["1f481-1f3ff-200d-2642-fe0f",25,22,15,["\u{1F481}\u{1F3FF}\u200D\u2642\uFE0F"]]},"1f482-200d-2640-fe0f":{"1f3fb":["1f482-1f3fb-200d-2640-fe0f",25,30,15,["\u{1F482}\u{1F3FB}\u200D\u2640\uFE0F"]],"1f3fc":["1f482-1f3fc-200d-2640-fe0f",25,31,15,["\u{1F482}\u{1F3FC}\u200D\u2640\uFE0F"]],"1f3fd":["1f482-1f3fd-200d-2640-fe0f",25,32,15,["\u{1F482}\u{1F3FD}\u200D\u2640\uFE0F"]],"1f3fe":["1f482-1f3fe-200d-2640-fe0f",25,33,15,["\u{1F482}\u{1F3FE}\u200D\u2640\uFE0F"]],"1f3ff":["1f482-1f3ff-200d-2640-fe0f",25,34,15,["\u{1F482}\u{1F3FF}\u200D\u2640\uFE0F"]]},"1f482-200d-2642-fe0f":{"1f3fb":["1f482-1f3fb-200d-2642-fe0f",25,36,15,["\u{1F482}\u{1F3FB}\u200D\u2642\uFE0F","\u{1F482}\u{1F3FB}"]],"1f3fc":["1f482-1f3fc-200d-2642-fe0f",25,37,15,["\u{1F482}\u{1F3FC}\u200D\u2642\uFE0F","\u{1F482}\u{1F3FC}"]],"1f3fd":["1f482-1f3fd-200d-2642-fe0f",25,38,15,["\u{1F482}\u{1F3FD}\u200D\u2642\uFE0F","\u{1F482}\u{1F3FD}"]],"1f3fe":["1f482-1f3fe-200d-2642-fe0f",25,39,15,["\u{1F482}\u{1F3FE}\u200D\u2642\uFE0F","\u{1F482}\u{1F3FE}"]],"1f3ff":["1f482-1f3ff-200d-2642-fe0f",25,40,15,["\u{1F482}\u{1F3FF}\u200D\u2642\uFE0F","\u{1F482}\u{1F3FF}"]]},"1f483":{"1f3fb":["1f483-1f3fb",25,48,15,["\u{1F483}\u{1F3FB}"]],"1f3fc":["1f483-1f3fc",25,49,15,["\u{1F483}\u{1F3FC}"]],"1f3fd":["1f483-1f3fd",25,50,15,["\u{1F483}\u{1F3FD}"]],"1f3fe":["1f483-1f3fe",25,51,15,["\u{1F483}\u{1F3FE}"]],"1f3ff":["1f483-1f3ff",25,52,15,["\u{1F483}\u{1F3FF}"]]},"1f485":{"1f3fb":["1f485-1f3fb",25,55,15,["\u{1F485}\u{1F3FB}"]],"1f3fc":["1f485-1f3fc",25,56,15,["\u{1F485}\u{1F3FC}"]],"1f3fd":["1f485-1f3fd",25,57,15,["\u{1F485}\u{1F3FD}"]],"1f3fe":["1f485-1f3fe",25,58,15,["\u{1F485}\u{1F3FE}"]],"1f3ff":["1f485-1f3ff",25,59,15,["\u{1F485}\u{1F3FF}"]]},"1f486-200d-2640-fe0f":{"1f3fb":["1f486-1f3fb-200d-2640-fe0f",26,0,15,["\u{1F486}\u{1F3FB}\u200D\u2640\uFE0F","\u{1F486}\u{1F3FB}"]],"1f3fc":["1f486-1f3fc-200d-2640-fe0f",26,1,15,["\u{1F486}\u{1F3FC}\u200D\u2640\uFE0F","\u{1F486}\u{1F3FC}"]],"1f3fd":["1f486-1f3fd-200d-2640-fe0f",26,2,15,["\u{1F486}\u{1F3FD}\u200D\u2640\uFE0F","\u{1F486}\u{1F3FD}"]],"1f3fe":["1f486-1f3fe-200d-2640-fe0f",26,3,15,["\u{1F486}\u{1F3FE}\u200D\u2640\uFE0F","\u{1F486}\u{1F3FE}"]],"1f3ff":["1f486-1f3ff-200d-2640-fe0f",26,4,15,["\u{1F486}\u{1F3FF}\u200D\u2640\uFE0F","\u{1F486}\u{1F3FF}"]]},"1f486-200d-2642-fe0f":{"1f3fb":["1f486-1f3fb-200d-2642-fe0f",26,6,15,["\u{1F486}\u{1F3FB}\u200D\u2642\uFE0F"]],"1f3fc":["1f486-1f3fc-200d-2642-fe0f",26,7,15,["\u{1F486}\u{1F3FC}\u200D\u2642\uFE0F"]],"1f3fd":["1f486-1f3fd-200d-2642-fe0f",26,8,15,["\u{1F486}\u{1F3FD}\u200D\u2642\uFE0F"]],"1f3fe":["1f486-1f3fe-200d-2642-fe0f",26,9,15,["\u{1F486}\u{1F3FE}\u200D\u2642\uFE0F"]],"1f3ff":["1f486-1f3ff-200d-2642-fe0f",26,10,15,["\u{1F486}\u{1F3FF}\u200D\u2642\uFE0F"]]},"1f487-200d-2640-fe0f":{"1f3fb":["1f487-1f3fb-200d-2640-fe0f",26,18,15,["\u{1F487}\u{1F3FB}\u200D\u2640\uFE0F","\u{1F487}\u{1F3FB}"]],"1f3fc":["1f487-1f3fc-200d-2640-fe0f",26,19,15,["\u{1F487}\u{1F3FC}\u200D\u2640\uFE0F","\u{1F487}\u{1F3FC}"]],"1f3fd":["1f487-1f3fd-200d-2640-fe0f",26,20,15,["\u{1F487}\u{1F3FD}\u200D\u2640\uFE0F","\u{1F487}\u{1F3FD}"]],"1f3fe":["1f487-1f3fe-200d-2640-fe0f",26,21,15,["\u{1F487}\u{1F3FE}\u200D\u2640\uFE0F","\u{1F487}\u{1F3FE}"]],"1f3ff":["1f487-1f3ff-200d-2640-fe0f",26,22,15,["\u{1F487}\u{1F3FF}\u200D\u2640\uFE0F","\u{1F487}\u{1F3FF}"]]},"1f487-200d-2642-fe0f":{"1f3fb":["1f487-1f3fb-200d-2642-fe0f",26,24,15,["\u{1F487}\u{1F3FB}\u200D\u2642\uFE0F"]],"1f3fc":["1f487-1f3fc-200d-2642-fe0f",26,25,15,["\u{1F487}\u{1F3FC}\u200D\u2642\uFE0F"]],"1f3fd":["1f487-1f3fd-200d-2642-fe0f",26,26,15,["\u{1F487}\u{1F3FD}\u200D\u2642\uFE0F"]],"1f3fe":["1f487-1f3fe-200d-2642-fe0f",26,27,15,["\u{1F487}\u{1F3FE}\u200D\u2642\uFE0F"]],"1f3ff":["1f487-1f3ff-200d-2642-fe0f",26,28,15,["\u{1F487}\u{1F3FF}\u200D\u2642\uFE0F"]]},"1f48f":{"1f3fb":["1f48f-1f3fb",26,43,15,["\u{1F48F}\u{1F3FB}"]],"1f3fc":["1f48f-1f3fc",26,44,15,["\u{1F48F}\u{1F3FC}"]],"1f3fd":["1f48f-1f3fd",26,45,15,["\u{1F48F}\u{1F3FD}"]],"1f3fe":["1f48f-1f3fe",26,46,15,["\u{1F48F}\u{1F3FE}"]],"1f3ff":["1f48f-1f3ff",26,47,15,["\u{1F48F}\u{1F3FF}"]],"1f3fb-1f3fc":["1f9d1-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fc",26,48,15,["\u{1F9D1}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F9D1}\u{1F3FC}"]],"1f3fb-1f3fd":["1f9d1-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fd",26,49,15,["\u{1F9D1}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F9D1}\u{1F3FD}"]],"1f3fb-1f3fe":["1f9d1-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fe",26,50,15,["\u{1F9D1}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F9D1}\u{1F3FE}"]],"1f3fb-1f3ff":["1f9d1-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3ff",26,51,15,["\u{1F9D1}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F9D1}\u{1F3FF}"]],"1f3fc-1f3fb":["1f9d1-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fb",26,52,15,["\u{1F9D1}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F9D1}\u{1F3FB}"]],"1f3fc-1f3fd":["1f9d1-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fd",26,53,15,["\u{1F9D1}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F9D1}\u{1F3FD}"]],"1f3fc-1f3fe":["1f9d1-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fe",26,54,15,["\u{1F9D1}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F9D1}\u{1F3FE}"]],"1f3fc-1f3ff":["1f9d1-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3ff",26,55,15,["\u{1F9D1}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F9D1}\u{1F3FF}"]],"1f3fd-1f3fb":["1f9d1-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fb",26,56,15,["\u{1F9D1}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F9D1}\u{1F3FB}"]],"1f3fd-1f3fc":["1f9d1-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fc",26,57,15,["\u{1F9D1}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F9D1}\u{1F3FC}"]],"1f3fd-1f3fe":["1f9d1-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fe",26,58,15,["\u{1F9D1}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F9D1}\u{1F3FE}"]],"1f3fd-1f3ff":["1f9d1-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3ff",26,59,15,["\u{1F9D1}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F9D1}\u{1F3FF}"]],"1f3fe-1f3fb":["1f9d1-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fb",26,60,15,["\u{1F9D1}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F9D1}\u{1F3FB}"]],"1f3fe-1f3fc":["1f9d1-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fc",27,0,15,["\u{1F9D1}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F9D1}\u{1F3FC}"]],"1f3fe-1f3fd":["1f9d1-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fd",27,1,15,["\u{1F9D1}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F9D1}\u{1F3FD}"]],"1f3fe-1f3ff":["1f9d1-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3ff",27,2,15,["\u{1F9D1}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F9D1}\u{1F3FF}"]],"1f3ff-1f3fb":["1f9d1-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fb",27,3,15,["\u{1F9D1}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F9D1}\u{1F3FB}"]],"1f3ff-1f3fc":["1f9d1-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fc",27,4,15,["\u{1F9D1}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F9D1}\u{1F3FC}"]],"1f3ff-1f3fd":["1f9d1-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fd",27,5,15,["\u{1F9D1}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F9D1}\u{1F3FD}"]],"1f3ff-1f3fe":["1f9d1-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fe",27,6,15,["\u{1F9D1}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F9D1}\u{1F3FE}"]]},"1f491":{"1f3fb":["1f491-1f3fb",27,9,15,["\u{1F491}\u{1F3FB}"]],"1f3fc":["1f491-1f3fc",27,10,15,["\u{1F491}\u{1F3FC}"]],"1f3fd":["1f491-1f3fd",27,11,15,["\u{1F491}\u{1F3FD}"]],"1f3fe":["1f491-1f3fe",27,12,15,["\u{1F491}\u{1F3FE}"]],"1f3ff":["1f491-1f3ff",27,13,15,["\u{1F491}\u{1F3FF}"]],"1f3fb-1f3fc":["1f9d1-1f3fb-200d-2764-fe0f-200d-1f9d1-1f3fc",27,14,15,["\u{1F9D1}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F9D1}\u{1F3FC}"]],"1f3fb-1f3fd":["1f9d1-1f3fb-200d-2764-fe0f-200d-1f9d1-1f3fd",27,15,15,["\u{1F9D1}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F9D1}\u{1F3FD}"]],"1f3fb-1f3fe":["1f9d1-1f3fb-200d-2764-fe0f-200d-1f9d1-1f3fe",27,16,15,["\u{1F9D1}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F9D1}\u{1F3FE}"]],"1f3fb-1f3ff":["1f9d1-1f3fb-200d-2764-fe0f-200d-1f9d1-1f3ff",27,17,15,["\u{1F9D1}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F9D1}\u{1F3FF}"]],"1f3fc-1f3fb":["1f9d1-1f3fc-200d-2764-fe0f-200d-1f9d1-1f3fb",27,18,15,["\u{1F9D1}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F9D1}\u{1F3FB}"]],"1f3fc-1f3fd":["1f9d1-1f3fc-200d-2764-fe0f-200d-1f9d1-1f3fd",27,19,15,["\u{1F9D1}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F9D1}\u{1F3FD}"]],"1f3fc-1f3fe":["1f9d1-1f3fc-200d-2764-fe0f-200d-1f9d1-1f3fe",27,20,15,["\u{1F9D1}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F9D1}\u{1F3FE}"]],"1f3fc-1f3ff":["1f9d1-1f3fc-200d-2764-fe0f-200d-1f9d1-1f3ff",27,21,15,["\u{1F9D1}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F9D1}\u{1F3FF}"]],"1f3fd-1f3fb":["1f9d1-1f3fd-200d-2764-fe0f-200d-1f9d1-1f3fb",27,22,15,["\u{1F9D1}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F9D1}\u{1F3FB}"]],"1f3fd-1f3fc":["1f9d1-1f3fd-200d-2764-fe0f-200d-1f9d1-1f3fc",27,23,15,["\u{1F9D1}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F9D1}\u{1F3FC}"]],"1f3fd-1f3fe":["1f9d1-1f3fd-200d-2764-fe0f-200d-1f9d1-1f3fe",27,24,15,["\u{1F9D1}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F9D1}\u{1F3FE}"]],"1f3fd-1f3ff":["1f9d1-1f3fd-200d-2764-fe0f-200d-1f9d1-1f3ff",27,25,15,["\u{1F9D1}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F9D1}\u{1F3FF}"]],"1f3fe-1f3fb":["1f9d1-1f3fe-200d-2764-fe0f-200d-1f9d1-1f3fb",27,26,15,["\u{1F9D1}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F9D1}\u{1F3FB}"]],"1f3fe-1f3fc":["1f9d1-1f3fe-200d-2764-fe0f-200d-1f9d1-1f3fc",27,27,15,["\u{1F9D1}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F9D1}\u{1F3FC}"]],"1f3fe-1f3fd":["1f9d1-1f3fe-200d-2764-fe0f-200d-1f9d1-1f3fd",27,28,15,["\u{1F9D1}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F9D1}\u{1F3FD}"]],"1f3fe-1f3ff":["1f9d1-1f3fe-200d-2764-fe0f-200d-1f9d1-1f3ff",27,29,15,["\u{1F9D1}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F9D1}\u{1F3FF}"]],"1f3ff-1f3fb":["1f9d1-1f3ff-200d-2764-fe0f-200d-1f9d1-1f3fb",27,30,15,["\u{1F9D1}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F9D1}\u{1F3FB}"]],"1f3ff-1f3fc":["1f9d1-1f3ff-200d-2764-fe0f-200d-1f9d1-1f3fc",27,31,15,["\u{1F9D1}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F9D1}\u{1F3FC}"]],"1f3ff-1f3fd":["1f9d1-1f3ff-200d-2764-fe0f-200d-1f9d1-1f3fd",27,32,15,["\u{1F9D1}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F9D1}\u{1F3FD}"]],"1f3ff-1f3fe":["1f9d1-1f3ff-200d-2764-fe0f-200d-1f9d1-1f3fe",27,33,15,["\u{1F9D1}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F9D1}\u{1F3FE}"]]},"1f4aa":{"1f3fb":["1f4aa-1f3fb",27,59,15,["\u{1F4AA}\u{1F3FB}"]],"1f3fc":["1f4aa-1f3fc",27,60,15,["\u{1F4AA}\u{1F3FC}"]],"1f3fd":["1f4aa-1f3fd",28,0,15,["\u{1F4AA}\u{1F3FD}"]],"1f3fe":["1f4aa-1f3fe",28,1,15,["\u{1F4AA}\u{1F3FE}"]],"1f3ff":["1f4aa-1f3ff",28,2,15,["\u{1F4AA}\u{1F3FF}"]]},"1f574-fe0f":{"1f3fb":["1f574-1f3fb",31,0,15,["\u{1F574}\u{1F3FB}"]],"1f3fc":["1f574-1f3fc",31,1,15,["\u{1F574}\u{1F3FC}"]],"1f3fd":["1f574-1f3fd",31,2,15,["\u{1F574}\u{1F3FD}"]],"1f3fe":["1f574-1f3fe",31,3,15,["\u{1F574}\u{1F3FE}"]],"1f3ff":["1f574-1f3ff",31,4,15,["\u{1F574}\u{1F3FF}"]]},"1f575-fe0f-200d-2640-fe0f":{"1f3fb":["1f575-1f3fb-200d-2640-fe0f",31,6,15,["\u{1F575}\u{1F3FB}\u200D\u2640\uFE0F"]],"1f3fc":["1f575-1f3fc-200d-2640-fe0f",31,7,15,["\u{1F575}\u{1F3FC}\u200D\u2640\uFE0F"]],"1f3fd":["1f575-1f3fd-200d-2640-fe0f",31,8,15,["\u{1F575}\u{1F3FD}\u200D\u2640\uFE0F"]],"1f3fe":["1f575-1f3fe-200d-2640-fe0f",31,9,15,["\u{1F575}\u{1F3FE}\u200D\u2640\uFE0F"]],"1f3ff":["1f575-1f3ff-200d-2640-fe0f",31,10,15,["\u{1F575}\u{1F3FF}\u200D\u2640\uFE0F"]]},"1f575-fe0f-200d-2642-fe0f":{"1f3fb":["1f575-1f3fb-200d-2642-fe0f",31,12,15,["\u{1F575}\u{1F3FB}\u200D\u2642\uFE0F","\u{1F575}\u{1F3FB}"]],"1f3fc":["1f575-1f3fc-200d-2642-fe0f",31,13,15,["\u{1F575}\u{1F3FC}\u200D\u2642\uFE0F","\u{1F575}\u{1F3FC}"]],"1f3fd":["1f575-1f3fd-200d-2642-fe0f",31,14,15,["\u{1F575}\u{1F3FD}\u200D\u2642\uFE0F","\u{1F575}\u{1F3FD}"]],"1f3fe":["1f575-1f3fe-200d-2642-fe0f",31,15,15,["\u{1F575}\u{1F3FE}\u200D\u2642\uFE0F","\u{1F575}\u{1F3FE}"]],"1f3ff":["1f575-1f3ff-200d-2642-fe0f",31,16,15,["\u{1F575}\u{1F3FF}\u200D\u2642\uFE0F","\u{1F575}\u{1F3FF}"]]},"1f57a":{"1f3fb":["1f57a-1f3fb",31,28,15,["\u{1F57A}\u{1F3FB}"]],"1f3fc":["1f57a-1f3fc",31,29,15,["\u{1F57A}\u{1F3FC}"]],"1f3fd":["1f57a-1f3fd",31,30,15,["\u{1F57A}\u{1F3FD}"]],"1f3fe":["1f57a-1f3fe",31,31,15,["\u{1F57A}\u{1F3FE}"]],"1f3ff":["1f57a-1f3ff",31,32,15,["\u{1F57A}\u{1F3FF}"]]},"1f590-fe0f":{"1f3fb":["1f590-1f3fb",31,39,15,["\u{1F590}\u{1F3FB}"]],"1f3fc":["1f590-1f3fc",31,40,15,["\u{1F590}\u{1F3FC}"]],"1f3fd":["1f590-1f3fd",31,41,15,["\u{1F590}\u{1F3FD}"]],"1f3fe":["1f590-1f3fe",31,42,15,["\u{1F590}\u{1F3FE}"]],"1f3ff":["1f590-1f3ff",31,43,15,["\u{1F590}\u{1F3FF}"]]},"1f595":{"1f3fb":["1f595-1f3fb",31,45,15,["\u{1F595}\u{1F3FB}"]],"1f3fc":["1f595-1f3fc",31,46,15,["\u{1F595}\u{1F3FC}"]],"1f3fd":["1f595-1f3fd",31,47,15,["\u{1F595}\u{1F3FD}"]],"1f3fe":["1f595-1f3fe",31,48,15,["\u{1F595}\u{1F3FE}"]],"1f3ff":["1f595-1f3ff",31,49,15,["\u{1F595}\u{1F3FF}"]]},"1f596":{"1f3fb":["1f596-1f3fb",31,51,15,["\u{1F596}\u{1F3FB}"]],"1f3fc":["1f596-1f3fc",31,52,15,["\u{1F596}\u{1F3FC}"]],"1f3fd":["1f596-1f3fd",31,53,15,["\u{1F596}\u{1F3FD}"]],"1f3fe":["1f596-1f3fe",31,54,15,["\u{1F596}\u{1F3FE}"]],"1f3ff":["1f596-1f3ff",31,55,15,["\u{1F596}\u{1F3FF}"]]},"1f645-200d-2640-fe0f":{"1f3fb":["1f645-1f3fb-200d-2640-fe0f",33,33,15,["\u{1F645}\u{1F3FB}\u200D\u2640\uFE0F","\u{1F645}\u{1F3FB}"]],"1f3fc":["1f645-1f3fc-200d-2640-fe0f",33,34,15,["\u{1F645}\u{1F3FC}\u200D\u2640\uFE0F","\u{1F645}\u{1F3FC}"]],"1f3fd":["1f645-1f3fd-200d-2640-fe0f",33,35,15,["\u{1F645}\u{1F3FD}\u200D\u2640\uFE0F","\u{1F645}\u{1F3FD}"]],"1f3fe":["1f645-1f3fe-200d-2640-fe0f",33,36,15,["\u{1F645}\u{1F3FE}\u200D\u2640\uFE0F","\u{1F645}\u{1F3FE}"]],"1f3ff":["1f645-1f3ff-200d-2640-fe0f",33,37,15,["\u{1F645}\u{1F3FF}\u200D\u2640\uFE0F","\u{1F645}\u{1F3FF}"]]},"1f645-200d-2642-fe0f":{"1f3fb":["1f645-1f3fb-200d-2642-fe0f",33,39,15,["\u{1F645}\u{1F3FB}\u200D\u2642\uFE0F"]],"1f3fc":["1f645-1f3fc-200d-2642-fe0f",33,40,15,["\u{1F645}\u{1F3FC}\u200D\u2642\uFE0F"]],"1f3fd":["1f645-1f3fd-200d-2642-fe0f",33,41,15,["\u{1F645}\u{1F3FD}\u200D\u2642\uFE0F"]],"1f3fe":["1f645-1f3fe-200d-2642-fe0f",33,42,15,["\u{1F645}\u{1F3FE}\u200D\u2642\uFE0F"]],"1f3ff":["1f645-1f3ff-200d-2642-fe0f",33,43,15,["\u{1F645}\u{1F3FF}\u200D\u2642\uFE0F"]]},"1f646-200d-2640-fe0f":{"1f3fb":["1f646-1f3fb-200d-2640-fe0f",33,51,15,["\u{1F646}\u{1F3FB}\u200D\u2640\uFE0F","\u{1F646}\u{1F3FB}"]],"1f3fc":["1f646-1f3fc-200d-2640-fe0f",33,52,15,["\u{1F646}\u{1F3FC}\u200D\u2640\uFE0F","\u{1F646}\u{1F3FC}"]],"1f3fd":["1f646-1f3fd-200d-2640-fe0f",33,53,15,["\u{1F646}\u{1F3FD}\u200D\u2640\uFE0F","\u{1F646}\u{1F3FD}"]],"1f3fe":["1f646-1f3fe-200d-2640-fe0f",33,54,15,["\u{1F646}\u{1F3FE}\u200D\u2640\uFE0F","\u{1F646}\u{1F3FE}"]],"1f3ff":["1f646-1f3ff-200d-2640-fe0f",33,55,15,["\u{1F646}\u{1F3FF}\u200D\u2640\uFE0F","\u{1F646}\u{1F3FF}"]]},"1f646-200d-2642-fe0f":{"1f3fb":["1f646-1f3fb-200d-2642-fe0f",33,57,15,["\u{1F646}\u{1F3FB}\u200D\u2642\uFE0F"]],"1f3fc":["1f646-1f3fc-200d-2642-fe0f",33,58,15,["\u{1F646}\u{1F3FC}\u200D\u2642\uFE0F"]],"1f3fd":["1f646-1f3fd-200d-2642-fe0f",33,59,15,["\u{1F646}\u{1F3FD}\u200D\u2642\uFE0F"]],"1f3fe":["1f646-1f3fe-200d-2642-fe0f",33,60,15,["\u{1F646}\u{1F3FE}\u200D\u2642\uFE0F"]],"1f3ff":["1f646-1f3ff-200d-2642-fe0f",34,0,15,["\u{1F646}\u{1F3FF}\u200D\u2642\uFE0F"]]},"1f647-200d-2640-fe0f":{"1f3fb":["1f647-1f3fb-200d-2640-fe0f",34,8,15,["\u{1F647}\u{1F3FB}\u200D\u2640\uFE0F"]],"1f3fc":["1f647-1f3fc-200d-2640-fe0f",34,9,15,["\u{1F647}\u{1F3FC}\u200D\u2640\uFE0F"]],"1f3fd":["1f647-1f3fd-200d-2640-fe0f",34,10,15,["\u{1F647}\u{1F3FD}\u200D\u2640\uFE0F"]],"1f3fe":["1f647-1f3fe-200d-2640-fe0f",34,11,15,["\u{1F647}\u{1F3FE}\u200D\u2640\uFE0F"]],"1f3ff":["1f647-1f3ff-200d-2640-fe0f",34,12,15,["\u{1F647}\u{1F3FF}\u200D\u2640\uFE0F"]]},"1f647-200d-2642-fe0f":{"1f3fb":["1f647-1f3fb-200d-2642-fe0f",34,14,15,["\u{1F647}\u{1F3FB}\u200D\u2642\uFE0F"]],"1f3fc":["1f647-1f3fc-200d-2642-fe0f",34,15,15,["\u{1F647}\u{1F3FC}\u200D\u2642\uFE0F"]],"1f3fd":["1f647-1f3fd-200d-2642-fe0f",34,16,15,["\u{1F647}\u{1F3FD}\u200D\u2642\uFE0F"]],"1f3fe":["1f647-1f3fe-200d-2642-fe0f",34,17,15,["\u{1F647}\u{1F3FE}\u200D\u2642\uFE0F"]],"1f3ff":["1f647-1f3ff-200d-2642-fe0f",34,18,15,["\u{1F647}\u{1F3FF}\u200D\u2642\uFE0F"]]},"1f647":{"1f3fb":["1f647-1f3fb",34,20,15,["\u{1F647}\u{1F3FB}"]],"1f3fc":["1f647-1f3fc",34,21,15,["\u{1F647}\u{1F3FC}"]],"1f3fd":["1f647-1f3fd",34,22,15,["\u{1F647}\u{1F3FD}"]],"1f3fe":["1f647-1f3fe",34,23,15,["\u{1F647}\u{1F3FE}"]],"1f3ff":["1f647-1f3ff",34,24,15,["\u{1F647}\u{1F3FF}"]]},"1f64b-200d-2640-fe0f":{"1f3fb":["1f64b-1f3fb-200d-2640-fe0f",34,29,15,["\u{1F64B}\u{1F3FB}\u200D\u2640\uFE0F","\u{1F64B}\u{1F3FB}"]],"1f3fc":["1f64b-1f3fc-200d-2640-fe0f",34,30,15,["\u{1F64B}\u{1F3FC}\u200D\u2640\uFE0F","\u{1F64B}\u{1F3FC}"]],"1f3fd":["1f64b-1f3fd-200d-2640-fe0f",34,31,15,["\u{1F64B}\u{1F3FD}\u200D\u2640\uFE0F","\u{1F64B}\u{1F3FD}"]],"1f3fe":["1f64b-1f3fe-200d-2640-fe0f",34,32,15,["\u{1F64B}\u{1F3FE}\u200D\u2640\uFE0F","\u{1F64B}\u{1F3FE}"]],"1f3ff":["1f64b-1f3ff-200d-2640-fe0f",34,33,15,["\u{1F64B}\u{1F3FF}\u200D\u2640\uFE0F","\u{1F64B}\u{1F3FF}"]]},"1f64b-200d-2642-fe0f":{"1f3fb":["1f64b-1f3fb-200d-2642-fe0f",34,35,15,["\u{1F64B}\u{1F3FB}\u200D\u2642\uFE0F"]],"1f3fc":["1f64b-1f3fc-200d-2642-fe0f",34,36,15,["\u{1F64B}\u{1F3FC}\u200D\u2642\uFE0F"]],"1f3fd":["1f64b-1f3fd-200d-2642-fe0f",34,37,15,["\u{1F64B}\u{1F3FD}\u200D\u2642\uFE0F"]],"1f3fe":["1f64b-1f3fe-200d-2642-fe0f",34,38,15,["\u{1F64B}\u{1F3FE}\u200D\u2642\uFE0F"]],"1f3ff":["1f64b-1f3ff-200d-2642-fe0f",34,39,15,["\u{1F64B}\u{1F3FF}\u200D\u2642\uFE0F"]]},"1f64c":{"1f3fb":["1f64c-1f3fb",34,47,15,["\u{1F64C}\u{1F3FB}"]],"1f3fc":["1f64c-1f3fc",34,48,15,["\u{1F64C}\u{1F3FC}"]],"1f3fd":["1f64c-1f3fd",34,49,15,["\u{1F64C}\u{1F3FD}"]],"1f3fe":["1f64c-1f3fe",34,50,15,["\u{1F64C}\u{1F3FE}"]],"1f3ff":["1f64c-1f3ff",34,51,15,["\u{1F64C}\u{1F3FF}"]]},"1f64d-200d-2640-fe0f":{"1f3fb":["1f64d-1f3fb-200d-2640-fe0f",34,53,15,["\u{1F64D}\u{1F3FB}\u200D\u2640\uFE0F","\u{1F64D}\u{1F3FB}"]],"1f3fc":["1f64d-1f3fc-200d-2640-fe0f",34,54,15,["\u{1F64D}\u{1F3FC}\u200D\u2640\uFE0F","\u{1F64D}\u{1F3FC}"]],"1f3fd":["1f64d-1f3fd-200d-2640-fe0f",34,55,15,["\u{1F64D}\u{1F3FD}\u200D\u2640\uFE0F","\u{1F64D}\u{1F3FD}"]],"1f3fe":["1f64d-1f3fe-200d-2640-fe0f",34,56,15,["\u{1F64D}\u{1F3FE}\u200D\u2640\uFE0F","\u{1F64D}\u{1F3FE}"]],"1f3ff":["1f64d-1f3ff-200d-2640-fe0f",34,57,15,["\u{1F64D}\u{1F3FF}\u200D\u2640\uFE0F","\u{1F64D}\u{1F3FF}"]]},"1f64d-200d-2642-fe0f":{"1f3fb":["1f64d-1f3fb-200d-2642-fe0f",34,59,15,["\u{1F64D}\u{1F3FB}\u200D\u2642\uFE0F"]],"1f3fc":["1f64d-1f3fc-200d-2642-fe0f",34,60,15,["\u{1F64D}\u{1F3FC}\u200D\u2642\uFE0F"]],"1f3fd":["1f64d-1f3fd-200d-2642-fe0f",35,0,15,["\u{1F64D}\u{1F3FD}\u200D\u2642\uFE0F"]],"1f3fe":["1f64d-1f3fe-200d-2642-fe0f",35,1,15,["\u{1F64D}\u{1F3FE}\u200D\u2642\uFE0F"]],"1f3ff":["1f64d-1f3ff-200d-2642-fe0f",35,2,15,["\u{1F64D}\u{1F3FF}\u200D\u2642\uFE0F"]]},"1f64e-200d-2640-fe0f":{"1f3fb":["1f64e-1f3fb-200d-2640-fe0f",35,10,15,["\u{1F64E}\u{1F3FB}\u200D\u2640\uFE0F","\u{1F64E}\u{1F3FB}"]],"1f3fc":["1f64e-1f3fc-200d-2640-fe0f",35,11,15,["\u{1F64E}\u{1F3FC}\u200D\u2640\uFE0F","\u{1F64E}\u{1F3FC}"]],"1f3fd":["1f64e-1f3fd-200d-2640-fe0f",35,12,15,["\u{1F64E}\u{1F3FD}\u200D\u2640\uFE0F","\u{1F64E}\u{1F3FD}"]],"1f3fe":["1f64e-1f3fe-200d-2640-fe0f",35,13,15,["\u{1F64E}\u{1F3FE}\u200D\u2640\uFE0F","\u{1F64E}\u{1F3FE}"]],"1f3ff":["1f64e-1f3ff-200d-2640-fe0f",35,14,15,["\u{1F64E}\u{1F3FF}\u200D\u2640\uFE0F","\u{1F64E}\u{1F3FF}"]]},"1f64e-200d-2642-fe0f":{"1f3fb":["1f64e-1f3fb-200d-2642-fe0f",35,16,15,["\u{1F64E}\u{1F3FB}\u200D\u2642\uFE0F"]],"1f3fc":["1f64e-1f3fc-200d-2642-fe0f",35,17,15,["\u{1F64E}\u{1F3FC}\u200D\u2642\uFE0F"]],"1f3fd":["1f64e-1f3fd-200d-2642-fe0f",35,18,15,["\u{1F64E}\u{1F3FD}\u200D\u2642\uFE0F"]],"1f3fe":["1f64e-1f3fe-200d-2642-fe0f",35,19,15,["\u{1F64E}\u{1F3FE}\u200D\u2642\uFE0F"]],"1f3ff":["1f64e-1f3ff-200d-2642-fe0f",35,20,15,["\u{1F64E}\u{1F3FF}\u200D\u2642\uFE0F"]]},"1f64f":{"1f3fb":["1f64f-1f3fb",35,28,15,["\u{1F64F}\u{1F3FB}"]],"1f3fc":["1f64f-1f3fc",35,29,15,["\u{1F64F}\u{1F3FC}"]],"1f3fd":["1f64f-1f3fd",35,30,15,["\u{1F64F}\u{1F3FD}"]],"1f3fe":["1f64f-1f3fe",35,31,15,["\u{1F64F}\u{1F3FE}"]],"1f3ff":["1f64f-1f3ff",35,32,15,["\u{1F64F}\u{1F3FF}"]]},"1f6a3-200d-2640-fe0f":{"1f3fb":["1f6a3-1f3fb-200d-2640-fe0f",36,8,15,["\u{1F6A3}\u{1F3FB}\u200D\u2640\uFE0F"]],"1f3fc":["1f6a3-1f3fc-200d-2640-fe0f",36,9,15,["\u{1F6A3}\u{1F3FC}\u200D\u2640\uFE0F"]],"1f3fd":["1f6a3-1f3fd-200d-2640-fe0f",36,10,15,["\u{1F6A3}\u{1F3FD}\u200D\u2640\uFE0F"]],"1f3fe":["1f6a3-1f3fe-200d-2640-fe0f",36,11,15,["\u{1F6A3}\u{1F3FE}\u200D\u2640\uFE0F"]],"1f3ff":["1f6a3-1f3ff-200d-2640-fe0f",36,12,15,["\u{1F6A3}\u{1F3FF}\u200D\u2640\uFE0F"]]},"1f6a3-200d-2642-fe0f":{"1f3fb":["1f6a3-1f3fb-200d-2642-fe0f",36,14,15,["\u{1F6A3}\u{1F3FB}\u200D\u2642\uFE0F","\u{1F6A3}\u{1F3FB}"]],"1f3fc":["1f6a3-1f3fc-200d-2642-fe0f",36,15,15,["\u{1F6A3}\u{1F3FC}\u200D\u2642\uFE0F","\u{1F6A3}\u{1F3FC}"]],"1f3fd":["1f6a3-1f3fd-200d-2642-fe0f",36,16,15,["\u{1F6A3}\u{1F3FD}\u200D\u2642\uFE0F","\u{1F6A3}\u{1F3FD}"]],"1f3fe":["1f6a3-1f3fe-200d-2642-fe0f",36,17,15,["\u{1F6A3}\u{1F3FE}\u200D\u2642\uFE0F","\u{1F6A3}\u{1F3FE}"]],"1f3ff":["1f6a3-1f3ff-200d-2642-fe0f",36,18,15,["\u{1F6A3}\u{1F3FF}\u200D\u2642\uFE0F","\u{1F6A3}\u{1F3FF}"]]},"1f6b4-200d-2640-fe0f":{"1f3fb":["1f6b4-1f3fb-200d-2640-fe0f",36,42,15,["\u{1F6B4}\u{1F3FB}\u200D\u2640\uFE0F"]],"1f3fc":["1f6b4-1f3fc-200d-2640-fe0f",36,43,15,["\u{1F6B4}\u{1F3FC}\u200D\u2640\uFE0F"]],"1f3fd":["1f6b4-1f3fd-200d-2640-fe0f",36,44,15,["\u{1F6B4}\u{1F3FD}\u200D\u2640\uFE0F"]],"1f3fe":["1f6b4-1f3fe-200d-2640-fe0f",36,45,15,["\u{1F6B4}\u{1F3FE}\u200D\u2640\uFE0F"]],"1f3ff":["1f6b4-1f3ff-200d-2640-fe0f",36,46,15,["\u{1F6B4}\u{1F3FF}\u200D\u2640\uFE0F"]]},"1f6b4-200d-2642-fe0f":{"1f3fb":["1f6b4-1f3fb-200d-2642-fe0f",36,48,15,["\u{1F6B4}\u{1F3FB}\u200D\u2642\uFE0F","\u{1F6B4}\u{1F3FB}"]],"1f3fc":["1f6b4-1f3fc-200d-2642-fe0f",36,49,15,["\u{1F6B4}\u{1F3FC}\u200D\u2642\uFE0F","\u{1F6B4}\u{1F3FC}"]],"1f3fd":["1f6b4-1f3fd-200d-2642-fe0f",36,50,15,["\u{1F6B4}\u{1F3FD}\u200D\u2642\uFE0F","\u{1F6B4}\u{1F3FD}"]],"1f3fe":["1f6b4-1f3fe-200d-2642-fe0f",36,51,15,["\u{1F6B4}\u{1F3FE}\u200D\u2642\uFE0F","\u{1F6B4}\u{1F3FE}"]],"1f3ff":["1f6b4-1f3ff-200d-2642-fe0f",36,52,15,["\u{1F6B4}\u{1F3FF}\u200D\u2642\uFE0F","\u{1F6B4}\u{1F3FF}"]]},"1f6b5-200d-2640-fe0f":{"1f3fb":["1f6b5-1f3fb-200d-2640-fe0f",36,60,15,["\u{1F6B5}\u{1F3FB}\u200D\u2640\uFE0F"]],"1f3fc":["1f6b5-1f3fc-200d-2640-fe0f",37,0,15,["\u{1F6B5}\u{1F3FC}\u200D\u2640\uFE0F"]],"1f3fd":["1f6b5-1f3fd-200d-2640-fe0f",37,1,15,["\u{1F6B5}\u{1F3FD}\u200D\u2640\uFE0F"]],"1f3fe":["1f6b5-1f3fe-200d-2640-fe0f",37,2,15,["\u{1F6B5}\u{1F3FE}\u200D\u2640\uFE0F"]],"1f3ff":["1f6b5-1f3ff-200d-2640-fe0f",37,3,15,["\u{1F6B5}\u{1F3FF}\u200D\u2640\uFE0F"]]},"1f6b5-200d-2642-fe0f":{"1f3fb":["1f6b5-1f3fb-200d-2642-fe0f",37,5,15,["\u{1F6B5}\u{1F3FB}\u200D\u2642\uFE0F","\u{1F6B5}\u{1F3FB}"]],"1f3fc":["1f6b5-1f3fc-200d-2642-fe0f",37,6,15,["\u{1F6B5}\u{1F3FC}\u200D\u2642\uFE0F","\u{1F6B5}\u{1F3FC}"]],"1f3fd":["1f6b5-1f3fd-200d-2642-fe0f",37,7,15,["\u{1F6B5}\u{1F3FD}\u200D\u2642\uFE0F","\u{1F6B5}\u{1F3FD}"]],"1f3fe":["1f6b5-1f3fe-200d-2642-fe0f",37,8,15,["\u{1F6B5}\u{1F3FE}\u200D\u2642\uFE0F","\u{1F6B5}\u{1F3FE}"]],"1f3ff":["1f6b5-1f3ff-200d-2642-fe0f",37,9,15,["\u{1F6B5}\u{1F3FF}\u200D\u2642\uFE0F","\u{1F6B5}\u{1F3FF}"]]},"1f6b6-200d-2640-fe0f":{"1f3fb":["1f6b6-1f3fb-200d-2640-fe0f",37,17,15,["\u{1F6B6}\u{1F3FB}\u200D\u2640\uFE0F"]],"1f3fc":["1f6b6-1f3fc-200d-2640-fe0f",37,18,15,["\u{1F6B6}\u{1F3FC}\u200D\u2640\uFE0F"]],"1f3fd":["1f6b6-1f3fd-200d-2640-fe0f",37,19,15,["\u{1F6B6}\u{1F3FD}\u200D\u2640\uFE0F"]],"1f3fe":["1f6b6-1f3fe-200d-2640-fe0f",37,20,15,["\u{1F6B6}\u{1F3FE}\u200D\u2640\uFE0F"]],"1f3ff":["1f6b6-1f3ff-200d-2640-fe0f",37,21,15,["\u{1F6B6}\u{1F3FF}\u200D\u2640\uFE0F"]]},"1f6b6-200d-2642-fe0f":{"1f3fb":["1f6b6-1f3fb-200d-2642-fe0f",37,23,15,["\u{1F6B6}\u{1F3FB}\u200D\u2642\uFE0F","\u{1F6B6}\u{1F3FB}"]],"1f3fc":["1f6b6-1f3fc-200d-2642-fe0f",37,24,15,["\u{1F6B6}\u{1F3FC}\u200D\u2642\uFE0F","\u{1F6B6}\u{1F3FC}"]],"1f3fd":["1f6b6-1f3fd-200d-2642-fe0f",37,25,15,["\u{1F6B6}\u{1F3FD}\u200D\u2642\uFE0F","\u{1F6B6}\u{1F3FD}"]],"1f3fe":["1f6b6-1f3fe-200d-2642-fe0f",37,26,15,["\u{1F6B6}\u{1F3FE}\u200D\u2642\uFE0F","\u{1F6B6}\u{1F3FE}"]],"1f3ff":["1f6b6-1f3ff-200d-2642-fe0f",37,27,15,["\u{1F6B6}\u{1F3FF}\u200D\u2642\uFE0F","\u{1F6B6}\u{1F3FF}"]]},"1f6c0":{"1f3fb":["1f6c0-1f3fb",37,44,15,["\u{1F6C0}\u{1F3FB}"]],"1f3fc":["1f6c0-1f3fc",37,45,15,["\u{1F6C0}\u{1F3FC}"]],"1f3fd":["1f6c0-1f3fd",37,46,15,["\u{1F6C0}\u{1F3FD}"]],"1f3fe":["1f6c0-1f3fe",37,47,15,["\u{1F6C0}\u{1F3FE}"]],"1f3ff":["1f6c0-1f3ff",37,48,15,["\u{1F6C0}\u{1F3FF}"]]},"1f6cc":{"1f3fb":["1f6cc-1f3fb",37,56,15,["\u{1F6CC}\u{1F3FB}"]],"1f3fc":["1f6cc-1f3fc",37,57,15,["\u{1F6CC}\u{1F3FC}"]],"1f3fd":["1f6cc-1f3fd",37,58,15,["\u{1F6CC}\u{1F3FD}"]],"1f3fe":["1f6cc-1f3fe",37,59,15,["\u{1F6CC}\u{1F3FE}"]],"1f3ff":["1f6cc-1f3ff",37,60,15,["\u{1F6CC}\u{1F3FF}"]]},"1f90c":{"1f3fb":["1f90c-1f3fb",38,47,15,["\u{1F90C}\u{1F3FB}"]],"1f3fc":["1f90c-1f3fc",38,48,15,["\u{1F90C}\u{1F3FC}"]],"1f3fd":["1f90c-1f3fd",38,49,15,["\u{1F90C}\u{1F3FD}"]],"1f3fe":["1f90c-1f3fe",38,50,15,["\u{1F90C}\u{1F3FE}"]],"1f3ff":["1f90c-1f3ff",38,51,15,["\u{1F90C}\u{1F3FF}"]]},"1f90f":{"1f3fb":["1f90f-1f3fb",38,55,15,["\u{1F90F}\u{1F3FB}"]],"1f3fc":["1f90f-1f3fc",38,56,15,["\u{1F90F}\u{1F3FC}"]],"1f3fd":["1f90f-1f3fd",38,57,15,["\u{1F90F}\u{1F3FD}"]],"1f3fe":["1f90f-1f3fe",38,58,15,["\u{1F90F}\u{1F3FE}"]],"1f3ff":["1f90f-1f3ff",38,59,15,["\u{1F90F}\u{1F3FF}"]]},"1f918":{"1f3fb":["1f918-1f3fb",39,8,15,["\u{1F918}\u{1F3FB}"]],"1f3fc":["1f918-1f3fc",39,9,15,["\u{1F918}\u{1F3FC}"]],"1f3fd":["1f918-1f3fd",39,10,15,["\u{1F918}\u{1F3FD}"]],"1f3fe":["1f918-1f3fe",39,11,15,["\u{1F918}\u{1F3FE}"]],"1f3ff":["1f918-1f3ff",39,12,15,["\u{1F918}\u{1F3FF}"]]},"1f919":{"1f3fb":["1f919-1f3fb",39,14,15,["\u{1F919}\u{1F3FB}"]],"1f3fc":["1f919-1f3fc",39,15,15,["\u{1F919}\u{1F3FC}"]],"1f3fd":["1f919-1f3fd",39,16,15,["\u{1F919}\u{1F3FD}"]],"1f3fe":["1f919-1f3fe",39,17,15,["\u{1F919}\u{1F3FE}"]],"1f3ff":["1f919-1f3ff",39,18,15,["\u{1F919}\u{1F3FF}"]]},"1f91a":{"1f3fb":["1f91a-1f3fb",39,20,15,["\u{1F91A}\u{1F3FB}"]],"1f3fc":["1f91a-1f3fc",39,21,15,["\u{1F91A}\u{1F3FC}"]],"1f3fd":["1f91a-1f3fd",39,22,15,["\u{1F91A}\u{1F3FD}"]],"1f3fe":["1f91a-1f3fe",39,23,15,["\u{1F91A}\u{1F3FE}"]],"1f3ff":["1f91a-1f3ff",39,24,15,["\u{1F91A}\u{1F3FF}"]]},"1f91b":{"1f3fb":["1f91b-1f3fb",39,26,15,["\u{1F91B}\u{1F3FB}"]],"1f3fc":["1f91b-1f3fc",39,27,15,["\u{1F91B}\u{1F3FC}"]],"1f3fd":["1f91b-1f3fd",39,28,15,["\u{1F91B}\u{1F3FD}"]],"1f3fe":["1f91b-1f3fe",39,29,15,["\u{1F91B}\u{1F3FE}"]],"1f3ff":["1f91b-1f3ff",39,30,15,["\u{1F91B}\u{1F3FF}"]]},"1f91c":{"1f3fb":["1f91c-1f3fb",39,32,15,["\u{1F91C}\u{1F3FB}"]],"1f3fc":["1f91c-1f3fc",39,33,15,["\u{1F91C}\u{1F3FC}"]],"1f3fd":["1f91c-1f3fd",39,34,15,["\u{1F91C}\u{1F3FD}"]],"1f3fe":["1f91c-1f3fe",39,35,15,["\u{1F91C}\u{1F3FE}"]],"1f3ff":["1f91c-1f3ff",39,36,15,["\u{1F91C}\u{1F3FF}"]]},"1f91d":{"1f3fb":["1f91d-1f3fb",39,38,15,["\u{1F91D}\u{1F3FB}"]],"1f3fc":["1f91d-1f3fc",39,39,15,["\u{1F91D}\u{1F3FC}"]],"1f3fd":["1f91d-1f3fd",39,40,15,["\u{1F91D}\u{1F3FD}"]],"1f3fe":["1f91d-1f3fe",39,41,15,["\u{1F91D}\u{1F3FE}"]],"1f3ff":["1f91d-1f3ff",39,42,15,["\u{1F91D}\u{1F3FF}"]],"1f3fb-1f3fc":["1faf1-1f3fb-200d-1faf2-1f3fc",39,43,15,["\u{1FAF1}\u{1F3FB}\u200D\u{1FAF2}\u{1F3FC}"]],"1f3fb-1f3fd":["1faf1-1f3fb-200d-1faf2-1f3fd",39,44,15,["\u{1FAF1}\u{1F3FB}\u200D\u{1FAF2}\u{1F3FD}"]],"1f3fb-1f3fe":["1faf1-1f3fb-200d-1faf2-1f3fe",39,45,15,["\u{1FAF1}\u{1F3FB}\u200D\u{1FAF2}\u{1F3FE}"]],"1f3fb-1f3ff":["1faf1-1f3fb-200d-1faf2-1f3ff",39,46,15,["\u{1FAF1}\u{1F3FB}\u200D\u{1FAF2}\u{1F3FF}"]],"1f3fc-1f3fb":["1faf1-1f3fc-200d-1faf2-1f3fb",39,47,15,["\u{1FAF1}\u{1F3FC}\u200D\u{1FAF2}\u{1F3FB}"]],"1f3fc-1f3fd":["1faf1-1f3fc-200d-1faf2-1f3fd",39,48,15,["\u{1FAF1}\u{1F3FC}\u200D\u{1FAF2}\u{1F3FD}"]],"1f3fc-1f3fe":["1faf1-1f3fc-200d-1faf2-1f3fe",39,49,15,["\u{1FAF1}\u{1F3FC}\u200D\u{1FAF2}\u{1F3FE}"]],"1f3fc-1f3ff":["1faf1-1f3fc-200d-1faf2-1f3ff",39,50,15,["\u{1FAF1}\u{1F3FC}\u200D\u{1FAF2}\u{1F3FF}"]],"1f3fd-1f3fb":["1faf1-1f3fd-200d-1faf2-1f3fb",39,51,15,["\u{1FAF1}\u{1F3FD}\u200D\u{1FAF2}\u{1F3FB}"]],"1f3fd-1f3fc":["1faf1-1f3fd-200d-1faf2-1f3fc",39,52,15,["\u{1FAF1}\u{1F3FD}\u200D\u{1FAF2}\u{1F3FC}"]],"1f3fd-1f3fe":["1faf1-1f3fd-200d-1faf2-1f3fe",39,53,15,["\u{1FAF1}\u{1F3FD}\u200D\u{1FAF2}\u{1F3FE}"]],"1f3fd-1f3ff":["1faf1-1f3fd-200d-1faf2-1f3ff",39,54,15,["\u{1FAF1}\u{1F3FD}\u200D\u{1FAF2}\u{1F3FF}"]],"1f3fe-1f3fb":["1faf1-1f3fe-200d-1faf2-1f3fb",39,55,15,["\u{1FAF1}\u{1F3FE}\u200D\u{1FAF2}\u{1F3FB}"]],"1f3fe-1f3fc":["1faf1-1f3fe-200d-1faf2-1f3fc",39,56,15,["\u{1FAF1}\u{1F3FE}\u200D\u{1FAF2}\u{1F3FC}"]],"1f3fe-1f3fd":["1faf1-1f3fe-200d-1faf2-1f3fd",39,57,15,["\u{1FAF1}\u{1F3FE}\u200D\u{1FAF2}\u{1F3FD}"]],"1f3fe-1f3ff":["1faf1-1f3fe-200d-1faf2-1f3ff",39,58,15,["\u{1FAF1}\u{1F3FE}\u200D\u{1FAF2}\u{1F3FF}"]],"1f3ff-1f3fb":["1faf1-1f3ff-200d-1faf2-1f3fb",39,59,15,["\u{1FAF1}\u{1F3FF}\u200D\u{1FAF2}\u{1F3FB}"]],"1f3ff-1f3fc":["1faf1-1f3ff-200d-1faf2-1f3fc",39,60,15,["\u{1FAF1}\u{1F3FF}\u200D\u{1FAF2}\u{1F3FC}"]],"1f3ff-1f3fd":["1faf1-1f3ff-200d-1faf2-1f3fd",40,0,15,["\u{1FAF1}\u{1F3FF}\u200D\u{1FAF2}\u{1F3FD}"]],"1f3ff-1f3fe":["1faf1-1f3ff-200d-1faf2-1f3fe",40,1,15,["\u{1FAF1}\u{1F3FF}\u200D\u{1FAF2}\u{1F3FE}"]]},"1f91e":{"1f3fb":["1f91e-1f3fb",40,3,15,["\u{1F91E}\u{1F3FB}"]],"1f3fc":["1f91e-1f3fc",40,4,15,["\u{1F91E}\u{1F3FC}"]],"1f3fd":["1f91e-1f3fd",40,5,15,["\u{1F91E}\u{1F3FD}"]],"1f3fe":["1f91e-1f3fe",40,6,15,["\u{1F91E}\u{1F3FE}"]],"1f3ff":["1f91e-1f3ff",40,7,15,["\u{1F91E}\u{1F3FF}"]]},"1f91f":{"1f3fb":["1f91f-1f3fb",40,9,15,["\u{1F91F}\u{1F3FB}"]],"1f3fc":["1f91f-1f3fc",40,10,15,["\u{1F91F}\u{1F3FC}"]],"1f3fd":["1f91f-1f3fd",40,11,15,["\u{1F91F}\u{1F3FD}"]],"1f3fe":["1f91f-1f3fe",40,12,15,["\u{1F91F}\u{1F3FE}"]],"1f3ff":["1f91f-1f3ff",40,13,15,["\u{1F91F}\u{1F3FF}"]]},"1f926-200d-2640-fe0f":{"1f3fb":["1f926-1f3fb-200d-2640-fe0f",40,21,15,["\u{1F926}\u{1F3FB}\u200D\u2640\uFE0F"]],"1f3fc":["1f926-1f3fc-200d-2640-fe0f",40,22,15,["\u{1F926}\u{1F3FC}\u200D\u2640\uFE0F"]],"1f3fd":["1f926-1f3fd-200d-2640-fe0f",40,23,15,["\u{1F926}\u{1F3FD}\u200D\u2640\uFE0F"]],"1f3fe":["1f926-1f3fe-200d-2640-fe0f",40,24,15,["\u{1F926}\u{1F3FE}\u200D\u2640\uFE0F"]],"1f3ff":["1f926-1f3ff-200d-2640-fe0f",40,25,15,["\u{1F926}\u{1F3FF}\u200D\u2640\uFE0F"]]},"1f926-200d-2642-fe0f":{"1f3fb":["1f926-1f3fb-200d-2642-fe0f",40,27,15,["\u{1F926}\u{1F3FB}\u200D\u2642\uFE0F"]],"1f3fc":["1f926-1f3fc-200d-2642-fe0f",40,28,15,["\u{1F926}\u{1F3FC}\u200D\u2642\uFE0F"]],"1f3fd":["1f926-1f3fd-200d-2642-fe0f",40,29,15,["\u{1F926}\u{1F3FD}\u200D\u2642\uFE0F"]],"1f3fe":["1f926-1f3fe-200d-2642-fe0f",40,30,15,["\u{1F926}\u{1F3FE}\u200D\u2642\uFE0F"]],"1f3ff":["1f926-1f3ff-200d-2642-fe0f",40,31,15,["\u{1F926}\u{1F3FF}\u200D\u2642\uFE0F"]]},"1f926":{"1f3fb":["1f926-1f3fb",40,33,15,["\u{1F926}\u{1F3FB}"]],"1f3fc":["1f926-1f3fc",40,34,15,["\u{1F926}\u{1F3FC}"]],"1f3fd":["1f926-1f3fd",40,35,15,["\u{1F926}\u{1F3FD}"]],"1f3fe":["1f926-1f3fe",40,36,15,["\u{1F926}\u{1F3FE}"]],"1f3ff":["1f926-1f3ff",40,37,15,["\u{1F926}\u{1F3FF}"]]},"1f930":{"1f3fb":["1f930-1f3fb",40,48,15,["\u{1F930}\u{1F3FB}"]],"1f3fc":["1f930-1f3fc",40,49,15,["\u{1F930}\u{1F3FC}"]],"1f3fd":["1f930-1f3fd",40,50,15,["\u{1F930}\u{1F3FD}"]],"1f3fe":["1f930-1f3fe",40,51,15,["\u{1F930}\u{1F3FE}"]],"1f3ff":["1f930-1f3ff",40,52,15,["\u{1F930}\u{1F3FF}"]]},"1f931":{"1f3fb":["1f931-1f3fb",40,54,15,["\u{1F931}\u{1F3FB}"]],"1f3fc":["1f931-1f3fc",40,55,15,["\u{1F931}\u{1F3FC}"]],"1f3fd":["1f931-1f3fd",40,56,15,["\u{1F931}\u{1F3FD}"]],"1f3fe":["1f931-1f3fe",40,57,15,["\u{1F931}\u{1F3FE}"]],"1f3ff":["1f931-1f3ff",40,58,15,["\u{1F931}\u{1F3FF}"]]},"1f932":{"1f3fb":["1f932-1f3fb",40,60,15,["\u{1F932}\u{1F3FB}"]],"1f3fc":["1f932-1f3fc",41,0,15,["\u{1F932}\u{1F3FC}"]],"1f3fd":["1f932-1f3fd",41,1,15,["\u{1F932}\u{1F3FD}"]],"1f3fe":["1f932-1f3fe",41,2,15,["\u{1F932}\u{1F3FE}"]],"1f3ff":["1f932-1f3ff",41,3,15,["\u{1F932}\u{1F3FF}"]]},"1f933":{"1f3fb":["1f933-1f3fb",41,5,15,["\u{1F933}\u{1F3FB}"]],"1f3fc":["1f933-1f3fc",41,6,15,["\u{1F933}\u{1F3FC}"]],"1f3fd":["1f933-1f3fd",41,7,15,["\u{1F933}\u{1F3FD}"]],"1f3fe":["1f933-1f3fe",41,8,15,["\u{1F933}\u{1F3FE}"]],"1f3ff":["1f933-1f3ff",41,9,15,["\u{1F933}\u{1F3FF}"]]},"1f934":{"1f3fb":["1f934-1f3fb",41,11,15,["\u{1F934}\u{1F3FB}"]],"1f3fc":["1f934-1f3fc",41,12,15,["\u{1F934}\u{1F3FC}"]],"1f3fd":["1f934-1f3fd",41,13,15,["\u{1F934}\u{1F3FD}"]],"1f3fe":["1f934-1f3fe",41,14,15,["\u{1F934}\u{1F3FE}"]],"1f3ff":["1f934-1f3ff",41,15,15,["\u{1F934}\u{1F3FF}"]]},"1f935-200d-2640-fe0f":{"1f3fb":["1f935-1f3fb-200d-2640-fe0f",41,17,15,["\u{1F935}\u{1F3FB}\u200D\u2640\uFE0F"]],"1f3fc":["1f935-1f3fc-200d-2640-fe0f",41,18,15,["\u{1F935}\u{1F3FC}\u200D\u2640\uFE0F"]],"1f3fd":["1f935-1f3fd-200d-2640-fe0f",41,19,15,["\u{1F935}\u{1F3FD}\u200D\u2640\uFE0F"]],"1f3fe":["1f935-1f3fe-200d-2640-fe0f",41,20,15,["\u{1F935}\u{1F3FE}\u200D\u2640\uFE0F"]],"1f3ff":["1f935-1f3ff-200d-2640-fe0f",41,21,15,["\u{1F935}\u{1F3FF}\u200D\u2640\uFE0F"]]},"1f935-200d-2642-fe0f":{"1f3fb":["1f935-1f3fb-200d-2642-fe0f",41,23,15,["\u{1F935}\u{1F3FB}\u200D\u2642\uFE0F"]],"1f3fc":["1f935-1f3fc-200d-2642-fe0f",41,24,15,["\u{1F935}\u{1F3FC}\u200D\u2642\uFE0F"]],"1f3fd":["1f935-1f3fd-200d-2642-fe0f",41,25,15,["\u{1F935}\u{1F3FD}\u200D\u2642\uFE0F"]],"1f3fe":["1f935-1f3fe-200d-2642-fe0f",41,26,15,["\u{1F935}\u{1F3FE}\u200D\u2642\uFE0F"]],"1f3ff":["1f935-1f3ff-200d-2642-fe0f",41,27,15,["\u{1F935}\u{1F3FF}\u200D\u2642\uFE0F"]]},"1f935":{"1f3fb":["1f935-1f3fb",41,29,15,["\u{1F935}\u{1F3FB}"]],"1f3fc":["1f935-1f3fc",41,30,15,["\u{1F935}\u{1F3FC}"]],"1f3fd":["1f935-1f3fd",41,31,15,["\u{1F935}\u{1F3FD}"]],"1f3fe":["1f935-1f3fe",41,32,15,["\u{1F935}\u{1F3FE}"]],"1f3ff":["1f935-1f3ff",41,33,15,["\u{1F935}\u{1F3FF}"]]},"1f936":{"1f3fb":["1f936-1f3fb",41,35,15,["\u{1F936}\u{1F3FB}"]],"1f3fc":["1f936-1f3fc",41,36,15,["\u{1F936}\u{1F3FC}"]],"1f3fd":["1f936-1f3fd",41,37,15,["\u{1F936}\u{1F3FD}"]],"1f3fe":["1f936-1f3fe",41,38,15,["\u{1F936}\u{1F3FE}"]],"1f3ff":["1f936-1f3ff",41,39,15,["\u{1F936}\u{1F3FF}"]]},"1f937-200d-2640-fe0f":{"1f3fb":["1f937-1f3fb-200d-2640-fe0f",41,41,15,["\u{1F937}\u{1F3FB}\u200D\u2640\uFE0F"]],"1f3fc":["1f937-1f3fc-200d-2640-fe0f",41,42,15,["\u{1F937}\u{1F3FC}\u200D\u2640\uFE0F"]],"1f3fd":["1f937-1f3fd-200d-2640-fe0f",41,43,15,["\u{1F937}\u{1F3FD}\u200D\u2640\uFE0F"]],"1f3fe":["1f937-1f3fe-200d-2640-fe0f",41,44,15,["\u{1F937}\u{1F3FE}\u200D\u2640\uFE0F"]],"1f3ff":["1f937-1f3ff-200d-2640-fe0f",41,45,15,["\u{1F937}\u{1F3FF}\u200D\u2640\uFE0F"]]},"1f937-200d-2642-fe0f":{"1f3fb":["1f937-1f3fb-200d-2642-fe0f",41,47,15,["\u{1F937}\u{1F3FB}\u200D\u2642\uFE0F"]],"1f3fc":["1f937-1f3fc-200d-2642-fe0f",41,48,15,["\u{1F937}\u{1F3FC}\u200D\u2642\uFE0F"]],"1f3fd":["1f937-1f3fd-200d-2642-fe0f",41,49,15,["\u{1F937}\u{1F3FD}\u200D\u2642\uFE0F"]],"1f3fe":["1f937-1f3fe-200d-2642-fe0f",41,50,15,["\u{1F937}\u{1F3FE}\u200D\u2642\uFE0F"]],"1f3ff":["1f937-1f3ff-200d-2642-fe0f",41,51,15,["\u{1F937}\u{1F3FF}\u200D\u2642\uFE0F"]]},"1f937":{"1f3fb":["1f937-1f3fb",41,53,15,["\u{1F937}\u{1F3FB}"]],"1f3fc":["1f937-1f3fc",41,54,15,["\u{1F937}\u{1F3FC}"]],"1f3fd":["1f937-1f3fd",41,55,15,["\u{1F937}\u{1F3FD}"]],"1f3fe":["1f937-1f3fe",41,56,15,["\u{1F937}\u{1F3FE}"]],"1f3ff":["1f937-1f3ff",41,57,15,["\u{1F937}\u{1F3FF}"]]},"1f938-200d-2640-fe0f":{"1f3fb":["1f938-1f3fb-200d-2640-fe0f",41,59,15,["\u{1F938}\u{1F3FB}\u200D\u2640\uFE0F"]],"1f3fc":["1f938-1f3fc-200d-2640-fe0f",41,60,15,["\u{1F938}\u{1F3FC}\u200D\u2640\uFE0F"]],"1f3fd":["1f938-1f3fd-200d-2640-fe0f",42,0,15,["\u{1F938}\u{1F3FD}\u200D\u2640\uFE0F"]],"1f3fe":["1f938-1f3fe-200d-2640-fe0f",42,1,15,["\u{1F938}\u{1F3FE}\u200D\u2640\uFE0F"]],"1f3ff":["1f938-1f3ff-200d-2640-fe0f",42,2,15,["\u{1F938}\u{1F3FF}\u200D\u2640\uFE0F"]]},"1f938-200d-2642-fe0f":{"1f3fb":["1f938-1f3fb-200d-2642-fe0f",42,4,15,["\u{1F938}\u{1F3FB}\u200D\u2642\uFE0F"]],"1f3fc":["1f938-1f3fc-200d-2642-fe0f",42,5,15,["\u{1F938}\u{1F3FC}\u200D\u2642\uFE0F"]],"1f3fd":["1f938-1f3fd-200d-2642-fe0f",42,6,15,["\u{1F938}\u{1F3FD}\u200D\u2642\uFE0F"]],"1f3fe":["1f938-1f3fe-200d-2642-fe0f",42,7,15,["\u{1F938}\u{1F3FE}\u200D\u2642\uFE0F"]],"1f3ff":["1f938-1f3ff-200d-2642-fe0f",42,8,15,["\u{1F938}\u{1F3FF}\u200D\u2642\uFE0F"]]},"1f938":{"1f3fb":["1f938-1f3fb",42,10,15,["\u{1F938}\u{1F3FB}"]],"1f3fc":["1f938-1f3fc",42,11,15,["\u{1F938}\u{1F3FC}"]],"1f3fd":["1f938-1f3fd",42,12,15,["\u{1F938}\u{1F3FD}"]],"1f3fe":["1f938-1f3fe",42,13,15,["\u{1F938}\u{1F3FE}"]],"1f3ff":["1f938-1f3ff",42,14,15,["\u{1F938}\u{1F3FF}"]]},"1f939-200d-2640-fe0f":{"1f3fb":["1f939-1f3fb-200d-2640-fe0f",42,16,15,["\u{1F939}\u{1F3FB}\u200D\u2640\uFE0F"]],"1f3fc":["1f939-1f3fc-200d-2640-fe0f",42,17,15,["\u{1F939}\u{1F3FC}\u200D\u2640\uFE0F"]],"1f3fd":["1f939-1f3fd-200d-2640-fe0f",42,18,15,["\u{1F939}\u{1F3FD}\u200D\u2640\uFE0F"]],"1f3fe":["1f939-1f3fe-200d-2640-fe0f",42,19,15,["\u{1F939}\u{1F3FE}\u200D\u2640\uFE0F"]],"1f3ff":["1f939-1f3ff-200d-2640-fe0f",42,20,15,["\u{1F939}\u{1F3FF}\u200D\u2640\uFE0F"]]},"1f939-200d-2642-fe0f":{"1f3fb":["1f939-1f3fb-200d-2642-fe0f",42,22,15,["\u{1F939}\u{1F3FB}\u200D\u2642\uFE0F"]],"1f3fc":["1f939-1f3fc-200d-2642-fe0f",42,23,15,["\u{1F939}\u{1F3FC}\u200D\u2642\uFE0F"]],"1f3fd":["1f939-1f3fd-200d-2642-fe0f",42,24,15,["\u{1F939}\u{1F3FD}\u200D\u2642\uFE0F"]],"1f3fe":["1f939-1f3fe-200d-2642-fe0f",42,25,15,["\u{1F939}\u{1F3FE}\u200D\u2642\uFE0F"]],"1f3ff":["1f939-1f3ff-200d-2642-fe0f",42,26,15,["\u{1F939}\u{1F3FF}\u200D\u2642\uFE0F"]]},"1f939":{"1f3fb":["1f939-1f3fb",42,28,15,["\u{1F939}\u{1F3FB}"]],"1f3fc":["1f939-1f3fc",42,29,15,["\u{1F939}\u{1F3FC}"]],"1f3fd":["1f939-1f3fd",42,30,15,["\u{1F939}\u{1F3FD}"]],"1f3fe":["1f939-1f3fe",42,31,15,["\u{1F939}\u{1F3FE}"]],"1f3ff":["1f939-1f3ff",42,32,15,["\u{1F939}\u{1F3FF}"]]},"1f93d-200d-2640-fe0f":{"1f3fb":["1f93d-1f3fb-200d-2640-fe0f",42,38,15,["\u{1F93D}\u{1F3FB}\u200D\u2640\uFE0F"]],"1f3fc":["1f93d-1f3fc-200d-2640-fe0f",42,39,15,["\u{1F93D}\u{1F3FC}\u200D\u2640\uFE0F"]],"1f3fd":["1f93d-1f3fd-200d-2640-fe0f",42,40,15,["\u{1F93D}\u{1F3FD}\u200D\u2640\uFE0F"]],"1f3fe":["1f93d-1f3fe-200d-2640-fe0f",42,41,15,["\u{1F93D}\u{1F3FE}\u200D\u2640\uFE0F"]],"1f3ff":["1f93d-1f3ff-200d-2640-fe0f",42,42,15,["\u{1F93D}\u{1F3FF}\u200D\u2640\uFE0F"]]},"1f93d-200d-2642-fe0f":{"1f3fb":["1f93d-1f3fb-200d-2642-fe0f",42,44,15,["\u{1F93D}\u{1F3FB}\u200D\u2642\uFE0F"]],"1f3fc":["1f93d-1f3fc-200d-2642-fe0f",42,45,15,["\u{1F93D}\u{1F3FC}\u200D\u2642\uFE0F"]],"1f3fd":["1f93d-1f3fd-200d-2642-fe0f",42,46,15,["\u{1F93D}\u{1F3FD}\u200D\u2642\uFE0F"]],"1f3fe":["1f93d-1f3fe-200d-2642-fe0f",42,47,15,["\u{1F93D}\u{1F3FE}\u200D\u2642\uFE0F"]],"1f3ff":["1f93d-1f3ff-200d-2642-fe0f",42,48,15,["\u{1F93D}\u{1F3FF}\u200D\u2642\uFE0F"]]},"1f93d":{"1f3fb":["1f93d-1f3fb",42,50,15,["\u{1F93D}\u{1F3FB}"]],"1f3fc":["1f93d-1f3fc",42,51,15,["\u{1F93D}\u{1F3FC}"]],"1f3fd":["1f93d-1f3fd",42,52,15,["\u{1F93D}\u{1F3FD}"]],"1f3fe":["1f93d-1f3fe",42,53,15,["\u{1F93D}\u{1F3FE}"]],"1f3ff":["1f93d-1f3ff",42,54,15,["\u{1F93D}\u{1F3FF}"]]},"1f93e-200d-2640-fe0f":{"1f3fb":["1f93e-1f3fb-200d-2640-fe0f",42,56,15,["\u{1F93E}\u{1F3FB}\u200D\u2640\uFE0F"]],"1f3fc":["1f93e-1f3fc-200d-2640-fe0f",42,57,15,["\u{1F93E}\u{1F3FC}\u200D\u2640\uFE0F"]],"1f3fd":["1f93e-1f3fd-200d-2640-fe0f",42,58,15,["\u{1F93E}\u{1F3FD}\u200D\u2640\uFE0F"]],"1f3fe":["1f93e-1f3fe-200d-2640-fe0f",42,59,15,["\u{1F93E}\u{1F3FE}\u200D\u2640\uFE0F"]],"1f3ff":["1f93e-1f3ff-200d-2640-fe0f",42,60,15,["\u{1F93E}\u{1F3FF}\u200D\u2640\uFE0F"]]},"1f93e-200d-2642-fe0f":{"1f3fb":["1f93e-1f3fb-200d-2642-fe0f",43,1,15,["\u{1F93E}\u{1F3FB}\u200D\u2642\uFE0F"]],"1f3fc":["1f93e-1f3fc-200d-2642-fe0f",43,2,15,["\u{1F93E}\u{1F3FC}\u200D\u2642\uFE0F"]],"1f3fd":["1f93e-1f3fd-200d-2642-fe0f",43,3,15,["\u{1F93E}\u{1F3FD}\u200D\u2642\uFE0F"]],"1f3fe":["1f93e-1f3fe-200d-2642-fe0f",43,4,15,["\u{1F93E}\u{1F3FE}\u200D\u2642\uFE0F"]],"1f3ff":["1f93e-1f3ff-200d-2642-fe0f",43,5,15,["\u{1F93E}\u{1F3FF}\u200D\u2642\uFE0F"]]},"1f93e":{"1f3fb":["1f93e-1f3fb",43,7,15,["\u{1F93E}\u{1F3FB}"]],"1f3fc":["1f93e-1f3fc",43,8,15,["\u{1F93E}\u{1F3FC}"]],"1f3fd":["1f93e-1f3fd",43,9,15,["\u{1F93E}\u{1F3FD}"]],"1f3fe":["1f93e-1f3fe",43,10,15,["\u{1F93E}\u{1F3FE}"]],"1f3ff":["1f93e-1f3ff",43,11,15,["\u{1F93E}\u{1F3FF}"]]},"1f977":{"1f3fb":["1f977-1f3fb",44,7,15,["\u{1F977}\u{1F3FB}"]],"1f3fc":["1f977-1f3fc",44,8,15,["\u{1F977}\u{1F3FC}"]],"1f3fd":["1f977-1f3fd",44,9,15,["\u{1F977}\u{1F3FD}"]],"1f3fe":["1f977-1f3fe",44,10,15,["\u{1F977}\u{1F3FE}"]],"1f3ff":["1f977-1f3ff",44,11,15,["\u{1F977}\u{1F3FF}"]]},"1f9b5":{"1f3fb":["1f9b5-1f3fb",45,9,15,["\u{1F9B5}\u{1F3FB}"]],"1f3fc":["1f9b5-1f3fc",45,10,15,["\u{1F9B5}\u{1F3FC}"]],"1f3fd":["1f9b5-1f3fd",45,11,15,["\u{1F9B5}\u{1F3FD}"]],"1f3fe":["1f9b5-1f3fe",45,12,15,["\u{1F9B5}\u{1F3FE}"]],"1f3ff":["1f9b5-1f3ff",45,13,15,["\u{1F9B5}\u{1F3FF}"]]},"1f9b6":{"1f3fb":["1f9b6-1f3fb",45,15,15,["\u{1F9B6}\u{1F3FB}"]],"1f3fc":["1f9b6-1f3fc",45,16,15,["\u{1F9B6}\u{1F3FC}"]],"1f3fd":["1f9b6-1f3fd",45,17,15,["\u{1F9B6}\u{1F3FD}"]],"1f3fe":["1f9b6-1f3fe",45,18,15,["\u{1F9B6}\u{1F3FE}"]],"1f3ff":["1f9b6-1f3ff",45,19,15,["\u{1F9B6}\u{1F3FF}"]]},"1f9b8-200d-2640-fe0f":{"1f3fb":["1f9b8-1f3fb-200d-2640-fe0f",45,22,15,["\u{1F9B8}\u{1F3FB}\u200D\u2640\uFE0F"]],"1f3fc":["1f9b8-1f3fc-200d-2640-fe0f",45,23,15,["\u{1F9B8}\u{1F3FC}\u200D\u2640\uFE0F"]],"1f3fd":["1f9b8-1f3fd-200d-2640-fe0f",45,24,15,["\u{1F9B8}\u{1F3FD}\u200D\u2640\uFE0F"]],"1f3fe":["1f9b8-1f3fe-200d-2640-fe0f",45,25,15,["\u{1F9B8}\u{1F3FE}\u200D\u2640\uFE0F"]],"1f3ff":["1f9b8-1f3ff-200d-2640-fe0f",45,26,15,["\u{1F9B8}\u{1F3FF}\u200D\u2640\uFE0F"]]},"1f9b8-200d-2642-fe0f":{"1f3fb":["1f9b8-1f3fb-200d-2642-fe0f",45,28,15,["\u{1F9B8}\u{1F3FB}\u200D\u2642\uFE0F"]],"1f3fc":["1f9b8-1f3fc-200d-2642-fe0f",45,29,15,["\u{1F9B8}\u{1F3FC}\u200D\u2642\uFE0F"]],"1f3fd":["1f9b8-1f3fd-200d-2642-fe0f",45,30,15,["\u{1F9B8}\u{1F3FD}\u200D\u2642\uFE0F"]],"1f3fe":["1f9b8-1f3fe-200d-2642-fe0f",45,31,15,["\u{1F9B8}\u{1F3FE}\u200D\u2642\uFE0F"]],"1f3ff":["1f9b8-1f3ff-200d-2642-fe0f",45,32,15,["\u{1F9B8}\u{1F3FF}\u200D\u2642\uFE0F"]]},"1f9b8":{"1f3fb":["1f9b8-1f3fb",45,34,15,["\u{1F9B8}\u{1F3FB}"]],"1f3fc":["1f9b8-1f3fc",45,35,15,["\u{1F9B8}\u{1F3FC}"]],"1f3fd":["1f9b8-1f3fd",45,36,15,["\u{1F9B8}\u{1F3FD}"]],"1f3fe":["1f9b8-1f3fe",45,37,15,["\u{1F9B8}\u{1F3FE}"]],"1f3ff":["1f9b8-1f3ff",45,38,15,["\u{1F9B8}\u{1F3FF}"]]},"1f9b9-200d-2640-fe0f":{"1f3fb":["1f9b9-1f3fb-200d-2640-fe0f",45,40,15,["\u{1F9B9}\u{1F3FB}\u200D\u2640\uFE0F"]],"1f3fc":["1f9b9-1f3fc-200d-2640-fe0f",45,41,15,["\u{1F9B9}\u{1F3FC}\u200D\u2640\uFE0F"]],"1f3fd":["1f9b9-1f3fd-200d-2640-fe0f",45,42,15,["\u{1F9B9}\u{1F3FD}\u200D\u2640\uFE0F"]],"1f3fe":["1f9b9-1f3fe-200d-2640-fe0f",45,43,15,["\u{1F9B9}\u{1F3FE}\u200D\u2640\uFE0F"]],"1f3ff":["1f9b9-1f3ff-200d-2640-fe0f",45,44,15,["\u{1F9B9}\u{1F3FF}\u200D\u2640\uFE0F"]]},"1f9b9-200d-2642-fe0f":{"1f3fb":["1f9b9-1f3fb-200d-2642-fe0f",45,46,15,["\u{1F9B9}\u{1F3FB}\u200D\u2642\uFE0F"]],"1f3fc":["1f9b9-1f3fc-200d-2642-fe0f",45,47,15,["\u{1F9B9}\u{1F3FC}\u200D\u2642\uFE0F"]],"1f3fd":["1f9b9-1f3fd-200d-2642-fe0f",45,48,15,["\u{1F9B9}\u{1F3FD}\u200D\u2642\uFE0F"]],"1f3fe":["1f9b9-1f3fe-200d-2642-fe0f",45,49,15,["\u{1F9B9}\u{1F3FE}\u200D\u2642\uFE0F"]],"1f3ff":["1f9b9-1f3ff-200d-2642-fe0f",45,50,15,["\u{1F9B9}\u{1F3FF}\u200D\u2642\uFE0F"]]},"1f9b9":{"1f3fb":["1f9b9-1f3fb",45,52,15,["\u{1F9B9}\u{1F3FB}"]],"1f3fc":["1f9b9-1f3fc",45,53,15,["\u{1F9B9}\u{1F3FC}"]],"1f3fd":["1f9b9-1f3fd",45,54,15,["\u{1F9B9}\u{1F3FD}"]],"1f3fe":["1f9b9-1f3fe",45,55,15,["\u{1F9B9}\u{1F3FE}"]],"1f3ff":["1f9b9-1f3ff",45,56,15,["\u{1F9B9}\u{1F3FF}"]]},"1f9bb":{"1f3fb":["1f9bb-1f3fb",45,59,15,["\u{1F9BB}\u{1F3FB}"]],"1f3fc":["1f9bb-1f3fc",45,60,15,["\u{1F9BB}\u{1F3FC}"]],"1f3fd":["1f9bb-1f3fd",46,0,15,["\u{1F9BB}\u{1F3FD}"]],"1f3fe":["1f9bb-1f3fe",46,1,15,["\u{1F9BB}\u{1F3FE}"]],"1f3ff":["1f9bb-1f3ff",46,2,15,["\u{1F9BB}\u{1F3FF}"]]},"1f9cd-200d-2640-fe0f":{"1f3fb":["1f9cd-1f3fb-200d-2640-fe0f",46,21,15,["\u{1F9CD}\u{1F3FB}\u200D\u2640\uFE0F"]],"1f3fc":["1f9cd-1f3fc-200d-2640-fe0f",46,22,15,["\u{1F9CD}\u{1F3FC}\u200D\u2640\uFE0F"]],"1f3fd":["1f9cd-1f3fd-200d-2640-fe0f",46,23,15,["\u{1F9CD}\u{1F3FD}\u200D\u2640\uFE0F"]],"1f3fe":["1f9cd-1f3fe-200d-2640-fe0f",46,24,15,["\u{1F9CD}\u{1F3FE}\u200D\u2640\uFE0F"]],"1f3ff":["1f9cd-1f3ff-200d-2640-fe0f",46,25,15,["\u{1F9CD}\u{1F3FF}\u200D\u2640\uFE0F"]]},"1f9cd-200d-2642-fe0f":{"1f3fb":["1f9cd-1f3fb-200d-2642-fe0f",46,27,15,["\u{1F9CD}\u{1F3FB}\u200D\u2642\uFE0F"]],"1f3fc":["1f9cd-1f3fc-200d-2642-fe0f",46,28,15,["\u{1F9CD}\u{1F3FC}\u200D\u2642\uFE0F"]],"1f3fd":["1f9cd-1f3fd-200d-2642-fe0f",46,29,15,["\u{1F9CD}\u{1F3FD}\u200D\u2642\uFE0F"]],"1f3fe":["1f9cd-1f3fe-200d-2642-fe0f",46,30,15,["\u{1F9CD}\u{1F3FE}\u200D\u2642\uFE0F"]],"1f3ff":["1f9cd-1f3ff-200d-2642-fe0f",46,31,15,["\u{1F9CD}\u{1F3FF}\u200D\u2642\uFE0F"]]},"1f9cd":{"1f3fb":["1f9cd-1f3fb",46,33,15,["\u{1F9CD}\u{1F3FB}"]],"1f3fc":["1f9cd-1f3fc",46,34,15,["\u{1F9CD}\u{1F3FC}"]],"1f3fd":["1f9cd-1f3fd",46,35,15,["\u{1F9CD}\u{1F3FD}"]],"1f3fe":["1f9cd-1f3fe",46,36,15,["\u{1F9CD}\u{1F3FE}"]],"1f3ff":["1f9cd-1f3ff",46,37,15,["\u{1F9CD}\u{1F3FF}"]]},"1f9ce-200d-2640-fe0f":{"1f3fb":["1f9ce-1f3fb-200d-2640-fe0f",46,39,15,["\u{1F9CE}\u{1F3FB}\u200D\u2640\uFE0F"]],"1f3fc":["1f9ce-1f3fc-200d-2640-fe0f",46,40,15,["\u{1F9CE}\u{1F3FC}\u200D\u2640\uFE0F"]],"1f3fd":["1f9ce-1f3fd-200d-2640-fe0f",46,41,15,["\u{1F9CE}\u{1F3FD}\u200D\u2640\uFE0F"]],"1f3fe":["1f9ce-1f3fe-200d-2640-fe0f",46,42,15,["\u{1F9CE}\u{1F3FE}\u200D\u2640\uFE0F"]],"1f3ff":["1f9ce-1f3ff-200d-2640-fe0f",46,43,15,["\u{1F9CE}\u{1F3FF}\u200D\u2640\uFE0F"]]},"1f9ce-200d-2642-fe0f":{"1f3fb":["1f9ce-1f3fb-200d-2642-fe0f",46,45,15,["\u{1F9CE}\u{1F3FB}\u200D\u2642\uFE0F"]],"1f3fc":["1f9ce-1f3fc-200d-2642-fe0f",46,46,15,["\u{1F9CE}\u{1F3FC}\u200D\u2642\uFE0F"]],"1f3fd":["1f9ce-1f3fd-200d-2642-fe0f",46,47,15,["\u{1F9CE}\u{1F3FD}\u200D\u2642\uFE0F"]],"1f3fe":["1f9ce-1f3fe-200d-2642-fe0f",46,48,15,["\u{1F9CE}\u{1F3FE}\u200D\u2642\uFE0F"]],"1f3ff":["1f9ce-1f3ff-200d-2642-fe0f",46,49,15,["\u{1F9CE}\u{1F3FF}\u200D\u2642\uFE0F"]]},"1f9ce":{"1f3fb":["1f9ce-1f3fb",46,51,15,["\u{1F9CE}\u{1F3FB}"]],"1f3fc":["1f9ce-1f3fc",46,52,15,["\u{1F9CE}\u{1F3FC}"]],"1f3fd":["1f9ce-1f3fd",46,53,15,["\u{1F9CE}\u{1F3FD}"]],"1f3fe":["1f9ce-1f3fe",46,54,15,["\u{1F9CE}\u{1F3FE}"]],"1f3ff":["1f9ce-1f3ff",46,55,15,["\u{1F9CE}\u{1F3FF}"]]},"1f9cf-200d-2640-fe0f":{"1f3fb":["1f9cf-1f3fb-200d-2640-fe0f",46,57,15,["\u{1F9CF}\u{1F3FB}\u200D\u2640\uFE0F"]],"1f3fc":["1f9cf-1f3fc-200d-2640-fe0f",46,58,15,["\u{1F9CF}\u{1F3FC}\u200D\u2640\uFE0F"]],"1f3fd":["1f9cf-1f3fd-200d-2640-fe0f",46,59,15,["\u{1F9CF}\u{1F3FD}\u200D\u2640\uFE0F"]],"1f3fe":["1f9cf-1f3fe-200d-2640-fe0f",46,60,15,["\u{1F9CF}\u{1F3FE}\u200D\u2640\uFE0F"]],"1f3ff":["1f9cf-1f3ff-200d-2640-fe0f",47,0,15,["\u{1F9CF}\u{1F3FF}\u200D\u2640\uFE0F"]]},"1f9cf-200d-2642-fe0f":{"1f3fb":["1f9cf-1f3fb-200d-2642-fe0f",47,2,15,["\u{1F9CF}\u{1F3FB}\u200D\u2642\uFE0F"]],"1f3fc":["1f9cf-1f3fc-200d-2642-fe0f",47,3,15,["\u{1F9CF}\u{1F3FC}\u200D\u2642\uFE0F"]],"1f3fd":["1f9cf-1f3fd-200d-2642-fe0f",47,4,15,["\u{1F9CF}\u{1F3FD}\u200D\u2642\uFE0F"]],"1f3fe":["1f9cf-1f3fe-200d-2642-fe0f",47,5,15,["\u{1F9CF}\u{1F3FE}\u200D\u2642\uFE0F"]],"1f3ff":["1f9cf-1f3ff-200d-2642-fe0f",47,6,15,["\u{1F9CF}\u{1F3FF}\u200D\u2642\uFE0F"]]},"1f9cf":{"1f3fb":["1f9cf-1f3fb",47,8,15,["\u{1F9CF}\u{1F3FB}"]],"1f3fc":["1f9cf-1f3fc",47,9,15,["\u{1F9CF}\u{1F3FC}"]],"1f3fd":["1f9cf-1f3fd",47,10,15,["\u{1F9CF}\u{1F3FD}"]],"1f3fe":["1f9cf-1f3fe",47,11,15,["\u{1F9CF}\u{1F3FE}"]],"1f3ff":["1f9cf-1f3ff",47,12,15,["\u{1F9CF}\u{1F3FF}"]]},"1f9d1-200d-1f33e":{"1f3fb":["1f9d1-1f3fb-200d-1f33e",47,15,15,["\u{1F9D1}\u{1F3FB}\u200D\u{1F33E}"]],"1f3fc":["1f9d1-1f3fc-200d-1f33e",47,16,15,["\u{1F9D1}\u{1F3FC}\u200D\u{1F33E}"]],"1f3fd":["1f9d1-1f3fd-200d-1f33e",47,17,15,["\u{1F9D1}\u{1F3FD}\u200D\u{1F33E}"]],"1f3fe":["1f9d1-1f3fe-200d-1f33e",47,18,15,["\u{1F9D1}\u{1F3FE}\u200D\u{1F33E}"]],"1f3ff":["1f9d1-1f3ff-200d-1f33e",47,19,15,["\u{1F9D1}\u{1F3FF}\u200D\u{1F33E}"]]},"1f9d1-200d-1f373":{"1f3fb":["1f9d1-1f3fb-200d-1f373",47,21,15,["\u{1F9D1}\u{1F3FB}\u200D\u{1F373}"]],"1f3fc":["1f9d1-1f3fc-200d-1f373",47,22,15,["\u{1F9D1}\u{1F3FC}\u200D\u{1F373}"]],"1f3fd":["1f9d1-1f3fd-200d-1f373",47,23,15,["\u{1F9D1}\u{1F3FD}\u200D\u{1F373}"]],"1f3fe":["1f9d1-1f3fe-200d-1f373",47,24,15,["\u{1F9D1}\u{1F3FE}\u200D\u{1F373}"]],"1f3ff":["1f9d1-1f3ff-200d-1f373",47,25,15,["\u{1F9D1}\u{1F3FF}\u200D\u{1F373}"]]},"1f9d1-200d-1f37c":{"1f3fb":["1f9d1-1f3fb-200d-1f37c",47,27,15,["\u{1F9D1}\u{1F3FB}\u200D\u{1F37C}"]],"1f3fc":["1f9d1-1f3fc-200d-1f37c",47,28,15,["\u{1F9D1}\u{1F3FC}\u200D\u{1F37C}"]],"1f3fd":["1f9d1-1f3fd-200d-1f37c",47,29,15,["\u{1F9D1}\u{1F3FD}\u200D\u{1F37C}"]],"1f3fe":["1f9d1-1f3fe-200d-1f37c",47,30,15,["\u{1F9D1}\u{1F3FE}\u200D\u{1F37C}"]],"1f3ff":["1f9d1-1f3ff-200d-1f37c",47,31,15,["\u{1F9D1}\u{1F3FF}\u200D\u{1F37C}"]]},"1f9d1-200d-1f384":{"1f3fb":["1f9d1-1f3fb-200d-1f384",47,33,15,["\u{1F9D1}\u{1F3FB}\u200D\u{1F384}"]],"1f3fc":["1f9d1-1f3fc-200d-1f384",47,34,15,["\u{1F9D1}\u{1F3FC}\u200D\u{1F384}"]],"1f3fd":["1f9d1-1f3fd-200d-1f384",47,35,15,["\u{1F9D1}\u{1F3FD}\u200D\u{1F384}"]],"1f3fe":["1f9d1-1f3fe-200d-1f384",47,36,15,["\u{1F9D1}\u{1F3FE}\u200D\u{1F384}"]],"1f3ff":["1f9d1-1f3ff-200d-1f384",47,37,15,["\u{1F9D1}\u{1F3FF}\u200D\u{1F384}"]]},"1f9d1-200d-1f393":{"1f3fb":["1f9d1-1f3fb-200d-1f393",47,39,15,["\u{1F9D1}\u{1F3FB}\u200D\u{1F393}"]],"1f3fc":["1f9d1-1f3fc-200d-1f393",47,40,15,["\u{1F9D1}\u{1F3FC}\u200D\u{1F393}"]],"1f3fd":["1f9d1-1f3fd-200d-1f393",47,41,15,["\u{1F9D1}\u{1F3FD}\u200D\u{1F393}"]],"1f3fe":["1f9d1-1f3fe-200d-1f393",47,42,15,["\u{1F9D1}\u{1F3FE}\u200D\u{1F393}"]],"1f3ff":["1f9d1-1f3ff-200d-1f393",47,43,15,["\u{1F9D1}\u{1F3FF}\u200D\u{1F393}"]]},"1f9d1-200d-1f3a4":{"1f3fb":["1f9d1-1f3fb-200d-1f3a4",47,45,15,["\u{1F9D1}\u{1F3FB}\u200D\u{1F3A4}"]],"1f3fc":["1f9d1-1f3fc-200d-1f3a4",47,46,15,["\u{1F9D1}\u{1F3FC}\u200D\u{1F3A4}"]],"1f3fd":["1f9d1-1f3fd-200d-1f3a4",47,47,15,["\u{1F9D1}\u{1F3FD}\u200D\u{1F3A4}"]],"1f3fe":["1f9d1-1f3fe-200d-1f3a4",47,48,15,["\u{1F9D1}\u{1F3FE}\u200D\u{1F3A4}"]],"1f3ff":["1f9d1-1f3ff-200d-1f3a4",47,49,15,["\u{1F9D1}\u{1F3FF}\u200D\u{1F3A4}"]]},"1f9d1-200d-1f3a8":{"1f3fb":["1f9d1-1f3fb-200d-1f3a8",47,51,15,["\u{1F9D1}\u{1F3FB}\u200D\u{1F3A8}"]],"1f3fc":["1f9d1-1f3fc-200d-1f3a8",47,52,15,["\u{1F9D1}\u{1F3FC}\u200D\u{1F3A8}"]],"1f3fd":["1f9d1-1f3fd-200d-1f3a8",47,53,15,["\u{1F9D1}\u{1F3FD}\u200D\u{1F3A8}"]],"1f3fe":["1f9d1-1f3fe-200d-1f3a8",47,54,15,["\u{1F9D1}\u{1F3FE}\u200D\u{1F3A8}"]],"1f3ff":["1f9d1-1f3ff-200d-1f3a8",47,55,15,["\u{1F9D1}\u{1F3FF}\u200D\u{1F3A8}"]]},"1f9d1-200d-1f3eb":{"1f3fb":["1f9d1-1f3fb-200d-1f3eb",47,57,15,["\u{1F9D1}\u{1F3FB}\u200D\u{1F3EB}"]],"1f3fc":["1f9d1-1f3fc-200d-1f3eb",47,58,15,["\u{1F9D1}\u{1F3FC}\u200D\u{1F3EB}"]],"1f3fd":["1f9d1-1f3fd-200d-1f3eb",47,59,15,["\u{1F9D1}\u{1F3FD}\u200D\u{1F3EB}"]],"1f3fe":["1f9d1-1f3fe-200d-1f3eb",47,60,15,["\u{1F9D1}\u{1F3FE}\u200D\u{1F3EB}"]],"1f3ff":["1f9d1-1f3ff-200d-1f3eb",48,0,15,["\u{1F9D1}\u{1F3FF}\u200D\u{1F3EB}"]]},"1f9d1-200d-1f3ed":{"1f3fb":["1f9d1-1f3fb-200d-1f3ed",48,2,15,["\u{1F9D1}\u{1F3FB}\u200D\u{1F3ED}"]],"1f3fc":["1f9d1-1f3fc-200d-1f3ed",48,3,15,["\u{1F9D1}\u{1F3FC}\u200D\u{1F3ED}"]],"1f3fd":["1f9d1-1f3fd-200d-1f3ed",48,4,15,["\u{1F9D1}\u{1F3FD}\u200D\u{1F3ED}"]],"1f3fe":["1f9d1-1f3fe-200d-1f3ed",48,5,15,["\u{1F9D1}\u{1F3FE}\u200D\u{1F3ED}"]],"1f3ff":["1f9d1-1f3ff-200d-1f3ed",48,6,15,["\u{1F9D1}\u{1F3FF}\u200D\u{1F3ED}"]]},"1f9d1-200d-1f4bb":{"1f3fb":["1f9d1-1f3fb-200d-1f4bb",48,8,15,["\u{1F9D1}\u{1F3FB}\u200D\u{1F4BB}"]],"1f3fc":["1f9d1-1f3fc-200d-1f4bb",48,9,15,["\u{1F9D1}\u{1F3FC}\u200D\u{1F4BB}"]],"1f3fd":["1f9d1-1f3fd-200d-1f4bb",48,10,15,["\u{1F9D1}\u{1F3FD}\u200D\u{1F4BB}"]],"1f3fe":["1f9d1-1f3fe-200d-1f4bb",48,11,15,["\u{1F9D1}\u{1F3FE}\u200D\u{1F4BB}"]],"1f3ff":["1f9d1-1f3ff-200d-1f4bb",48,12,15,["\u{1F9D1}\u{1F3FF}\u200D\u{1F4BB}"]]},"1f9d1-200d-1f4bc":{"1f3fb":["1f9d1-1f3fb-200d-1f4bc",48,14,15,["\u{1F9D1}\u{1F3FB}\u200D\u{1F4BC}"]],"1f3fc":["1f9d1-1f3fc-200d-1f4bc",48,15,15,["\u{1F9D1}\u{1F3FC}\u200D\u{1F4BC}"]],"1f3fd":["1f9d1-1f3fd-200d-1f4bc",48,16,15,["\u{1F9D1}\u{1F3FD}\u200D\u{1F4BC}"]],"1f3fe":["1f9d1-1f3fe-200d-1f4bc",48,17,15,["\u{1F9D1}\u{1F3FE}\u200D\u{1F4BC}"]],"1f3ff":["1f9d1-1f3ff-200d-1f4bc",48,18,15,["\u{1F9D1}\u{1F3FF}\u200D\u{1F4BC}"]]},"1f9d1-200d-1f527":{"1f3fb":["1f9d1-1f3fb-200d-1f527",48,20,15,["\u{1F9D1}\u{1F3FB}\u200D\u{1F527}"]],"1f3fc":["1f9d1-1f3fc-200d-1f527",48,21,15,["\u{1F9D1}\u{1F3FC}\u200D\u{1F527}"]],"1f3fd":["1f9d1-1f3fd-200d-1f527",48,22,15,["\u{1F9D1}\u{1F3FD}\u200D\u{1F527}"]],"1f3fe":["1f9d1-1f3fe-200d-1f527",48,23,15,["\u{1F9D1}\u{1F3FE}\u200D\u{1F527}"]],"1f3ff":["1f9d1-1f3ff-200d-1f527",48,24,15,["\u{1F9D1}\u{1F3FF}\u200D\u{1F527}"]]},"1f9d1-200d-1f52c":{"1f3fb":["1f9d1-1f3fb-200d-1f52c",48,26,15,["\u{1F9D1}\u{1F3FB}\u200D\u{1F52C}"]],"1f3fc":["1f9d1-1f3fc-200d-1f52c",48,27,15,["\u{1F9D1}\u{1F3FC}\u200D\u{1F52C}"]],"1f3fd":["1f9d1-1f3fd-200d-1f52c",48,28,15,["\u{1F9D1}\u{1F3FD}\u200D\u{1F52C}"]],"1f3fe":["1f9d1-1f3fe-200d-1f52c",48,29,15,["\u{1F9D1}\u{1F3FE}\u200D\u{1F52C}"]],"1f3ff":["1f9d1-1f3ff-200d-1f52c",48,30,15,["\u{1F9D1}\u{1F3FF}\u200D\u{1F52C}"]]},"1f9d1-200d-1f680":{"1f3fb":["1f9d1-1f3fb-200d-1f680",48,32,15,["\u{1F9D1}\u{1F3FB}\u200D\u{1F680}"]],"1f3fc":["1f9d1-1f3fc-200d-1f680",48,33,15,["\u{1F9D1}\u{1F3FC}\u200D\u{1F680}"]],"1f3fd":["1f9d1-1f3fd-200d-1f680",48,34,15,["\u{1F9D1}\u{1F3FD}\u200D\u{1F680}"]],"1f3fe":["1f9d1-1f3fe-200d-1f680",48,35,15,["\u{1F9D1}\u{1F3FE}\u200D\u{1F680}"]],"1f3ff":["1f9d1-1f3ff-200d-1f680",48,36,15,["\u{1F9D1}\u{1F3FF}\u200D\u{1F680}"]]},"1f9d1-200d-1f692":{"1f3fb":["1f9d1-1f3fb-200d-1f692",48,38,15,["\u{1F9D1}\u{1F3FB}\u200D\u{1F692}"]],"1f3fc":["1f9d1-1f3fc-200d-1f692",48,39,15,["\u{1F9D1}\u{1F3FC}\u200D\u{1F692}"]],"1f3fd":["1f9d1-1f3fd-200d-1f692",48,40,15,["\u{1F9D1}\u{1F3FD}\u200D\u{1F692}"]],"1f3fe":["1f9d1-1f3fe-200d-1f692",48,41,15,["\u{1F9D1}\u{1F3FE}\u200D\u{1F692}"]],"1f3ff":["1f9d1-1f3ff-200d-1f692",48,42,15,["\u{1F9D1}\u{1F3FF}\u200D\u{1F692}"]]},"1f9d1-200d-1f91d-200d-1f9d1":{"1f3fb-1f3fb":["1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3fb",48,44,15,["\u{1F9D1}\u{1F3FB}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FB}"]],"1f3fb-1f3fc":["1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3fc",48,45,15,["\u{1F9D1}\u{1F3FB}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FC}"]],"1f3fb-1f3fd":["1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3fd",48,46,15,["\u{1F9D1}\u{1F3FB}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FD}"]],"1f3fb-1f3fe":["1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3fe",48,47,15,["\u{1F9D1}\u{1F3FB}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FE}"]],"1f3fb-1f3ff":["1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3ff",48,48,15,["\u{1F9D1}\u{1F3FB}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FF}"]],"1f3fc-1f3fb":["1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3fb",48,49,15,["\u{1F9D1}\u{1F3FC}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FB}"]],"1f3fc-1f3fc":["1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3fc",48,50,15,["\u{1F9D1}\u{1F3FC}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FC}"]],"1f3fc-1f3fd":["1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3fd",48,51,15,["\u{1F9D1}\u{1F3FC}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FD}"]],"1f3fc-1f3fe":["1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3fe",48,52,15,["\u{1F9D1}\u{1F3FC}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FE}"]],"1f3fc-1f3ff":["1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3ff",48,53,15,["\u{1F9D1}\u{1F3FC}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FF}"]],"1f3fd-1f3fb":["1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3fb",48,54,15,["\u{1F9D1}\u{1F3FD}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FB}"]],"1f3fd-1f3fc":["1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3fc",48,55,15,["\u{1F9D1}\u{1F3FD}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FC}"]],"1f3fd-1f3fd":["1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3fd",48,56,15,["\u{1F9D1}\u{1F3FD}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FD}"]],"1f3fd-1f3fe":["1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3fe",48,57,15,["\u{1F9D1}\u{1F3FD}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FE}"]],"1f3fd-1f3ff":["1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3ff",48,58,15,["\u{1F9D1}\u{1F3FD}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FF}"]],"1f3fe-1f3fb":["1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3fb",48,59,15,["\u{1F9D1}\u{1F3FE}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FB}"]],"1f3fe-1f3fc":["1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3fc",48,60,15,["\u{1F9D1}\u{1F3FE}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FC}"]],"1f3fe-1f3fd":["1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3fd",49,0,15,["\u{1F9D1}\u{1F3FE}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FD}"]],"1f3fe-1f3fe":["1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3fe",49,1,15,["\u{1F9D1}\u{1F3FE}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FE}"]],"1f3fe-1f3ff":["1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3ff",49,2,15,["\u{1F9D1}\u{1F3FE}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FF}"]],"1f3ff-1f3fb":["1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3fb",49,3,15,["\u{1F9D1}\u{1F3FF}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FB}"]],"1f3ff-1f3fc":["1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3fc",49,4,15,["\u{1F9D1}\u{1F3FF}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FC}"]],"1f3ff-1f3fd":["1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3fd",49,5,15,["\u{1F9D1}\u{1F3FF}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FD}"]],"1f3ff-1f3fe":["1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3fe",49,6,15,["\u{1F9D1}\u{1F3FF}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FE}"]],"1f3ff-1f3ff":["1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3ff",49,7,15,["\u{1F9D1}\u{1F3FF}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FF}"]]},"1f9d1-200d-1f9af":{"1f3fb":["1f9d1-1f3fb-200d-1f9af",49,9,15,["\u{1F9D1}\u{1F3FB}\u200D\u{1F9AF}"]],"1f3fc":["1f9d1-1f3fc-200d-1f9af",49,10,15,["\u{1F9D1}\u{1F3FC}\u200D\u{1F9AF}"]],"1f3fd":["1f9d1-1f3fd-200d-1f9af",49,11,15,["\u{1F9D1}\u{1F3FD}\u200D\u{1F9AF}"]],"1f3fe":["1f9d1-1f3fe-200d-1f9af",49,12,15,["\u{1F9D1}\u{1F3FE}\u200D\u{1F9AF}"]],"1f3ff":["1f9d1-1f3ff-200d-1f9af",49,13,15,["\u{1F9D1}\u{1F3FF}\u200D\u{1F9AF}"]]},"1f9d1-200d-1f9b0":{"1f3fb":["1f9d1-1f3fb-200d-1f9b0",49,15,15,["\u{1F9D1}\u{1F3FB}\u200D\u{1F9B0}"]],"1f3fc":["1f9d1-1f3fc-200d-1f9b0",49,16,15,["\u{1F9D1}\u{1F3FC}\u200D\u{1F9B0}"]],"1f3fd":["1f9d1-1f3fd-200d-1f9b0",49,17,15,["\u{1F9D1}\u{1F3FD}\u200D\u{1F9B0}"]],"1f3fe":["1f9d1-1f3fe-200d-1f9b0",49,18,15,["\u{1F9D1}\u{1F3FE}\u200D\u{1F9B0}"]],"1f3ff":["1f9d1-1f3ff-200d-1f9b0",49,19,15,["\u{1F9D1}\u{1F3FF}\u200D\u{1F9B0}"]]},"1f9d1-200d-1f9b1":{"1f3fb":["1f9d1-1f3fb-200d-1f9b1",49,21,15,["\u{1F9D1}\u{1F3FB}\u200D\u{1F9B1}"]],"1f3fc":["1f9d1-1f3fc-200d-1f9b1",49,22,15,["\u{1F9D1}\u{1F3FC}\u200D\u{1F9B1}"]],"1f3fd":["1f9d1-1f3fd-200d-1f9b1",49,23,15,["\u{1F9D1}\u{1F3FD}\u200D\u{1F9B1}"]],"1f3fe":["1f9d1-1f3fe-200d-1f9b1",49,24,15,["\u{1F9D1}\u{1F3FE}\u200D\u{1F9B1}"]],"1f3ff":["1f9d1-1f3ff-200d-1f9b1",49,25,15,["\u{1F9D1}\u{1F3FF}\u200D\u{1F9B1}"]]},"1f9d1-200d-1f9b2":{"1f3fb":["1f9d1-1f3fb-200d-1f9b2",49,27,15,["\u{1F9D1}\u{1F3FB}\u200D\u{1F9B2}"]],"1f3fc":["1f9d1-1f3fc-200d-1f9b2",49,28,15,["\u{1F9D1}\u{1F3FC}\u200D\u{1F9B2}"]],"1f3fd":["1f9d1-1f3fd-200d-1f9b2",49,29,15,["\u{1F9D1}\u{1F3FD}\u200D\u{1F9B2}"]],"1f3fe":["1f9d1-1f3fe-200d-1f9b2",49,30,15,["\u{1F9D1}\u{1F3FE}\u200D\u{1F9B2}"]],"1f3ff":["1f9d1-1f3ff-200d-1f9b2",49,31,15,["\u{1F9D1}\u{1F3FF}\u200D\u{1F9B2}"]]},"1f9d1-200d-1f9b3":{"1f3fb":["1f9d1-1f3fb-200d-1f9b3",49,33,15,["\u{1F9D1}\u{1F3FB}\u200D\u{1F9B3}"]],"1f3fc":["1f9d1-1f3fc-200d-1f9b3",49,34,15,["\u{1F9D1}\u{1F3FC}\u200D\u{1F9B3}"]],"1f3fd":["1f9d1-1f3fd-200d-1f9b3",49,35,15,["\u{1F9D1}\u{1F3FD}\u200D\u{1F9B3}"]],"1f3fe":["1f9d1-1f3fe-200d-1f9b3",49,36,15,["\u{1F9D1}\u{1F3FE}\u200D\u{1F9B3}"]],"1f3ff":["1f9d1-1f3ff-200d-1f9b3",49,37,15,["\u{1F9D1}\u{1F3FF}\u200D\u{1F9B3}"]]},"1f9d1-200d-1f9bc":{"1f3fb":["1f9d1-1f3fb-200d-1f9bc",49,39,15,["\u{1F9D1}\u{1F3FB}\u200D\u{1F9BC}"]],"1f3fc":["1f9d1-1f3fc-200d-1f9bc",49,40,15,["\u{1F9D1}\u{1F3FC}\u200D\u{1F9BC}"]],"1f3fd":["1f9d1-1f3fd-200d-1f9bc",49,41,15,["\u{1F9D1}\u{1F3FD}\u200D\u{1F9BC}"]],"1f3fe":["1f9d1-1f3fe-200d-1f9bc",49,42,15,["\u{1F9D1}\u{1F3FE}\u200D\u{1F9BC}"]],"1f3ff":["1f9d1-1f3ff-200d-1f9bc",49,43,15,["\u{1F9D1}\u{1F3FF}\u200D\u{1F9BC}"]]},"1f9d1-200d-1f9bd":{"1f3fb":["1f9d1-1f3fb-200d-1f9bd",49,45,15,["\u{1F9D1}\u{1F3FB}\u200D\u{1F9BD}"]],"1f3fc":["1f9d1-1f3fc-200d-1f9bd",49,46,15,["\u{1F9D1}\u{1F3FC}\u200D\u{1F9BD}"]],"1f3fd":["1f9d1-1f3fd-200d-1f9bd",49,47,15,["\u{1F9D1}\u{1F3FD}\u200D\u{1F9BD}"]],"1f3fe":["1f9d1-1f3fe-200d-1f9bd",49,48,15,["\u{1F9D1}\u{1F3FE}\u200D\u{1F9BD}"]],"1f3ff":["1f9d1-1f3ff-200d-1f9bd",49,49,15,["\u{1F9D1}\u{1F3FF}\u200D\u{1F9BD}"]]},"1f9d1-200d-2695-fe0f":{"1f3fb":["1f9d1-1f3fb-200d-2695-fe0f",49,51,15,["\u{1F9D1}\u{1F3FB}\u200D\u2695\uFE0F"]],"1f3fc":["1f9d1-1f3fc-200d-2695-fe0f",49,52,15,["\u{1F9D1}\u{1F3FC}\u200D\u2695\uFE0F"]],"1f3fd":["1f9d1-1f3fd-200d-2695-fe0f",49,53,15,["\u{1F9D1}\u{1F3FD}\u200D\u2695\uFE0F"]],"1f3fe":["1f9d1-1f3fe-200d-2695-fe0f",49,54,15,["\u{1F9D1}\u{1F3FE}\u200D\u2695\uFE0F"]],"1f3ff":["1f9d1-1f3ff-200d-2695-fe0f",49,55,15,["\u{1F9D1}\u{1F3FF}\u200D\u2695\uFE0F"]]},"1f9d1-200d-2696-fe0f":{"1f3fb":["1f9d1-1f3fb-200d-2696-fe0f",49,57,15,["\u{1F9D1}\u{1F3FB}\u200D\u2696\uFE0F"]],"1f3fc":["1f9d1-1f3fc-200d-2696-fe0f",49,58,15,["\u{1F9D1}\u{1F3FC}\u200D\u2696\uFE0F"]],"1f3fd":["1f9d1-1f3fd-200d-2696-fe0f",49,59,15,["\u{1F9D1}\u{1F3FD}\u200D\u2696\uFE0F"]],"1f3fe":["1f9d1-1f3fe-200d-2696-fe0f",49,60,15,["\u{1F9D1}\u{1F3FE}\u200D\u2696\uFE0F"]],"1f3ff":["1f9d1-1f3ff-200d-2696-fe0f",50,0,15,["\u{1F9D1}\u{1F3FF}\u200D\u2696\uFE0F"]]},"1f9d1-200d-2708-fe0f":{"1f3fb":["1f9d1-1f3fb-200d-2708-fe0f",50,2,15,["\u{1F9D1}\u{1F3FB}\u200D\u2708\uFE0F"]],"1f3fc":["1f9d1-1f3fc-200d-2708-fe0f",50,3,15,["\u{1F9D1}\u{1F3FC}\u200D\u2708\uFE0F"]],"1f3fd":["1f9d1-1f3fd-200d-2708-fe0f",50,4,15,["\u{1F9D1}\u{1F3FD}\u200D\u2708\uFE0F"]],"1f3fe":["1f9d1-1f3fe-200d-2708-fe0f",50,5,15,["\u{1F9D1}\u{1F3FE}\u200D\u2708\uFE0F"]],"1f3ff":["1f9d1-1f3ff-200d-2708-fe0f",50,6,15,["\u{1F9D1}\u{1F3FF}\u200D\u2708\uFE0F"]]},"1f9d1":{"1f3fb":["1f9d1-1f3fb",50,8,15,["\u{1F9D1}\u{1F3FB}"]],"1f3fc":["1f9d1-1f3fc",50,9,15,["\u{1F9D1}\u{1F3FC}"]],"1f3fd":["1f9d1-1f3fd",50,10,15,["\u{1F9D1}\u{1F3FD}"]],"1f3fe":["1f9d1-1f3fe",50,11,15,["\u{1F9D1}\u{1F3FE}"]],"1f3ff":["1f9d1-1f3ff",50,12,15,["\u{1F9D1}\u{1F3FF}"]]},"1f9d2":{"1f3fb":["1f9d2-1f3fb",50,14,15,["\u{1F9D2}\u{1F3FB}"]],"1f3fc":["1f9d2-1f3fc",50,15,15,["\u{1F9D2}\u{1F3FC}"]],"1f3fd":["1f9d2-1f3fd",50,16,15,["\u{1F9D2}\u{1F3FD}"]],"1f3fe":["1f9d2-1f3fe",50,17,15,["\u{1F9D2}\u{1F3FE}"]],"1f3ff":["1f9d2-1f3ff",50,18,15,["\u{1F9D2}\u{1F3FF}"]]},"1f9d3":{"1f3fb":["1f9d3-1f3fb",50,20,15,["\u{1F9D3}\u{1F3FB}"]],"1f3fc":["1f9d3-1f3fc",50,21,15,["\u{1F9D3}\u{1F3FC}"]],"1f3fd":["1f9d3-1f3fd",50,22,15,["\u{1F9D3}\u{1F3FD}"]],"1f3fe":["1f9d3-1f3fe",50,23,15,["\u{1F9D3}\u{1F3FE}"]],"1f3ff":["1f9d3-1f3ff",50,24,15,["\u{1F9D3}\u{1F3FF}"]]},"1f9d4-200d-2640-fe0f":{"1f3fb":["1f9d4-1f3fb-200d-2640-fe0f",50,26,15,["\u{1F9D4}\u{1F3FB}\u200D\u2640\uFE0F"]],"1f3fc":["1f9d4-1f3fc-200d-2640-fe0f",50,27,15,["\u{1F9D4}\u{1F3FC}\u200D\u2640\uFE0F"]],"1f3fd":["1f9d4-1f3fd-200d-2640-fe0f",50,28,15,["\u{1F9D4}\u{1F3FD}\u200D\u2640\uFE0F"]],"1f3fe":["1f9d4-1f3fe-200d-2640-fe0f",50,29,15,["\u{1F9D4}\u{1F3FE}\u200D\u2640\uFE0F"]],"1f3ff":["1f9d4-1f3ff-200d-2640-fe0f",50,30,15,["\u{1F9D4}\u{1F3FF}\u200D\u2640\uFE0F"]]},"1f9d4-200d-2642-fe0f":{"1f3fb":["1f9d4-1f3fb-200d-2642-fe0f",50,32,15,["\u{1F9D4}\u{1F3FB}\u200D\u2642\uFE0F"]],"1f3fc":["1f9d4-1f3fc-200d-2642-fe0f",50,33,15,["\u{1F9D4}\u{1F3FC}\u200D\u2642\uFE0F"]],"1f3fd":["1f9d4-1f3fd-200d-2642-fe0f",50,34,15,["\u{1F9D4}\u{1F3FD}\u200D\u2642\uFE0F"]],"1f3fe":["1f9d4-1f3fe-200d-2642-fe0f",50,35,15,["\u{1F9D4}\u{1F3FE}\u200D\u2642\uFE0F"]],"1f3ff":["1f9d4-1f3ff-200d-2642-fe0f",50,36,15,["\u{1F9D4}\u{1F3FF}\u200D\u2642\uFE0F"]]},"1f9d4":{"1f3fb":["1f9d4-1f3fb",50,38,15,["\u{1F9D4}\u{1F3FB}"]],"1f3fc":["1f9d4-1f3fc",50,39,15,["\u{1F9D4}\u{1F3FC}"]],"1f3fd":["1f9d4-1f3fd",50,40,15,["\u{1F9D4}\u{1F3FD}"]],"1f3fe":["1f9d4-1f3fe",50,41,15,["\u{1F9D4}\u{1F3FE}"]],"1f3ff":["1f9d4-1f3ff",50,42,15,["\u{1F9D4}\u{1F3FF}"]]},"1f9d5":{"1f3fb":["1f9d5-1f3fb",50,44,15,["\u{1F9D5}\u{1F3FB}"]],"1f3fc":["1f9d5-1f3fc",50,45,15,["\u{1F9D5}\u{1F3FC}"]],"1f3fd":["1f9d5-1f3fd",50,46,15,["\u{1F9D5}\u{1F3FD}"]],"1f3fe":["1f9d5-1f3fe",50,47,15,["\u{1F9D5}\u{1F3FE}"]],"1f3ff":["1f9d5-1f3ff",50,48,15,["\u{1F9D5}\u{1F3FF}"]]},"1f9d6-200d-2640-fe0f":{"1f3fb":["1f9d6-1f3fb-200d-2640-fe0f",50,50,15,["\u{1F9D6}\u{1F3FB}\u200D\u2640\uFE0F"]],"1f3fc":["1f9d6-1f3fc-200d-2640-fe0f",50,51,15,["\u{1F9D6}\u{1F3FC}\u200D\u2640\uFE0F"]],"1f3fd":["1f9d6-1f3fd-200d-2640-fe0f",50,52,15,["\u{1F9D6}\u{1F3FD}\u200D\u2640\uFE0F"]],"1f3fe":["1f9d6-1f3fe-200d-2640-fe0f",50,53,15,["\u{1F9D6}\u{1F3FE}\u200D\u2640\uFE0F"]],"1f3ff":["1f9d6-1f3ff-200d-2640-fe0f",50,54,15,["\u{1F9D6}\u{1F3FF}\u200D\u2640\uFE0F"]]},"1f9d6-200d-2642-fe0f":{"1f3fb":["1f9d6-1f3fb-200d-2642-fe0f",50,56,15,["\u{1F9D6}\u{1F3FB}\u200D\u2642\uFE0F","\u{1F9D6}\u{1F3FB}"]],"1f3fc":["1f9d6-1f3fc-200d-2642-fe0f",50,57,15,["\u{1F9D6}\u{1F3FC}\u200D\u2642\uFE0F","\u{1F9D6}\u{1F3FC}"]],"1f3fd":["1f9d6-1f3fd-200d-2642-fe0f",50,58,15,["\u{1F9D6}\u{1F3FD}\u200D\u2642\uFE0F","\u{1F9D6}\u{1F3FD}"]],"1f3fe":["1f9d6-1f3fe-200d-2642-fe0f",50,59,15,["\u{1F9D6}\u{1F3FE}\u200D\u2642\uFE0F","\u{1F9D6}\u{1F3FE}"]],"1f3ff":["1f9d6-1f3ff-200d-2642-fe0f",50,60,15,["\u{1F9D6}\u{1F3FF}\u200D\u2642\uFE0F","\u{1F9D6}\u{1F3FF}"]]},"1f9d7-200d-2640-fe0f":{"1f3fb":["1f9d7-1f3fb-200d-2640-fe0f",51,7,15,["\u{1F9D7}\u{1F3FB}\u200D\u2640\uFE0F","\u{1F9D7}\u{1F3FB}"]],"1f3fc":["1f9d7-1f3fc-200d-2640-fe0f",51,8,15,["\u{1F9D7}\u{1F3FC}\u200D\u2640\uFE0F","\u{1F9D7}\u{1F3FC}"]],"1f3fd":["1f9d7-1f3fd-200d-2640-fe0f",51,9,15,["\u{1F9D7}\u{1F3FD}\u200D\u2640\uFE0F","\u{1F9D7}\u{1F3FD}"]],"1f3fe":["1f9d7-1f3fe-200d-2640-fe0f",51,10,15,["\u{1F9D7}\u{1F3FE}\u200D\u2640\uFE0F","\u{1F9D7}\u{1F3FE}"]],"1f3ff":["1f9d7-1f3ff-200d-2640-fe0f",51,11,15,["\u{1F9D7}\u{1F3FF}\u200D\u2640\uFE0F","\u{1F9D7}\u{1F3FF}"]]},"1f9d7-200d-2642-fe0f":{"1f3fb":["1f9d7-1f3fb-200d-2642-fe0f",51,13,15,["\u{1F9D7}\u{1F3FB}\u200D\u2642\uFE0F"]],"1f3fc":["1f9d7-1f3fc-200d-2642-fe0f",51,14,15,["\u{1F9D7}\u{1F3FC}\u200D\u2642\uFE0F"]],"1f3fd":["1f9d7-1f3fd-200d-2642-fe0f",51,15,15,["\u{1F9D7}\u{1F3FD}\u200D\u2642\uFE0F"]],"1f3fe":["1f9d7-1f3fe-200d-2642-fe0f",51,16,15,["\u{1F9D7}\u{1F3FE}\u200D\u2642\uFE0F"]],"1f3ff":["1f9d7-1f3ff-200d-2642-fe0f",51,17,15,["\u{1F9D7}\u{1F3FF}\u200D\u2642\uFE0F"]]},"1f9d8-200d-2640-fe0f":{"1f3fb":["1f9d8-1f3fb-200d-2640-fe0f",51,25,15,["\u{1F9D8}\u{1F3FB}\u200D\u2640\uFE0F","\u{1F9D8}\u{1F3FB}"]],"1f3fc":["1f9d8-1f3fc-200d-2640-fe0f",51,26,15,["\u{1F9D8}\u{1F3FC}\u200D\u2640\uFE0F","\u{1F9D8}\u{1F3FC}"]],"1f3fd":["1f9d8-1f3fd-200d-2640-fe0f",51,27,15,["\u{1F9D8}\u{1F3FD}\u200D\u2640\uFE0F","\u{1F9D8}\u{1F3FD}"]],"1f3fe":["1f9d8-1f3fe-200d-2640-fe0f",51,28,15,["\u{1F9D8}\u{1F3FE}\u200D\u2640\uFE0F","\u{1F9D8}\u{1F3FE}"]],"1f3ff":["1f9d8-1f3ff-200d-2640-fe0f",51,29,15,["\u{1F9D8}\u{1F3FF}\u200D\u2640\uFE0F","\u{1F9D8}\u{1F3FF}"]]},"1f9d8-200d-2642-fe0f":{"1f3fb":["1f9d8-1f3fb-200d-2642-fe0f",51,31,15,["\u{1F9D8}\u{1F3FB}\u200D\u2642\uFE0F"]],"1f3fc":["1f9d8-1f3fc-200d-2642-fe0f",51,32,15,["\u{1F9D8}\u{1F3FC}\u200D\u2642\uFE0F"]],"1f3fd":["1f9d8-1f3fd-200d-2642-fe0f",51,33,15,["\u{1F9D8}\u{1F3FD}\u200D\u2642\uFE0F"]],"1f3fe":["1f9d8-1f3fe-200d-2642-fe0f",51,34,15,["\u{1F9D8}\u{1F3FE}\u200D\u2642\uFE0F"]],"1f3ff":["1f9d8-1f3ff-200d-2642-fe0f",51,35,15,["\u{1F9D8}\u{1F3FF}\u200D\u2642\uFE0F"]]},"1f9d9-200d-2640-fe0f":{"1f3fb":["1f9d9-1f3fb-200d-2640-fe0f",51,43,15,["\u{1F9D9}\u{1F3FB}\u200D\u2640\uFE0F","\u{1F9D9}\u{1F3FB}"]],"1f3fc":["1f9d9-1f3fc-200d-2640-fe0f",51,44,15,["\u{1F9D9}\u{1F3FC}\u200D\u2640\uFE0F","\u{1F9D9}\u{1F3FC}"]],"1f3fd":["1f9d9-1f3fd-200d-2640-fe0f",51,45,15,["\u{1F9D9}\u{1F3FD}\u200D\u2640\uFE0F","\u{1F9D9}\u{1F3FD}"]],"1f3fe":["1f9d9-1f3fe-200d-2640-fe0f",51,46,15,["\u{1F9D9}\u{1F3FE}\u200D\u2640\uFE0F","\u{1F9D9}\u{1F3FE}"]],"1f3ff":["1f9d9-1f3ff-200d-2640-fe0f",51,47,15,["\u{1F9D9}\u{1F3FF}\u200D\u2640\uFE0F","\u{1F9D9}\u{1F3FF}"]]},"1f9d9-200d-2642-fe0f":{"1f3fb":["1f9d9-1f3fb-200d-2642-fe0f",51,49,15,["\u{1F9D9}\u{1F3FB}\u200D\u2642\uFE0F"]],"1f3fc":["1f9d9-1f3fc-200d-2642-fe0f",51,50,15,["\u{1F9D9}\u{1F3FC}\u200D\u2642\uFE0F"]],"1f3fd":["1f9d9-1f3fd-200d-2642-fe0f",51,51,15,["\u{1F9D9}\u{1F3FD}\u200D\u2642\uFE0F"]],"1f3fe":["1f9d9-1f3fe-200d-2642-fe0f",51,52,15,["\u{1F9D9}\u{1F3FE}\u200D\u2642\uFE0F"]],"1f3ff":["1f9d9-1f3ff-200d-2642-fe0f",51,53,15,["\u{1F9D9}\u{1F3FF}\u200D\u2642\uFE0F"]]},"1f9da-200d-2640-fe0f":{"1f3fb":["1f9da-1f3fb-200d-2640-fe0f",52,0,15,["\u{1F9DA}\u{1F3FB}\u200D\u2640\uFE0F","\u{1F9DA}\u{1F3FB}"]],"1f3fc":["1f9da-1f3fc-200d-2640-fe0f",52,1,15,["\u{1F9DA}\u{1F3FC}\u200D\u2640\uFE0F","\u{1F9DA}\u{1F3FC}"]],"1f3fd":["1f9da-1f3fd-200d-2640-fe0f",52,2,15,["\u{1F9DA}\u{1F3FD}\u200D\u2640\uFE0F","\u{1F9DA}\u{1F3FD}"]],"1f3fe":["1f9da-1f3fe-200d-2640-fe0f",52,3,15,["\u{1F9DA}\u{1F3FE}\u200D\u2640\uFE0F","\u{1F9DA}\u{1F3FE}"]],"1f3ff":["1f9da-1f3ff-200d-2640-fe0f",52,4,15,["\u{1F9DA}\u{1F3FF}\u200D\u2640\uFE0F","\u{1F9DA}\u{1F3FF}"]]},"1f9da-200d-2642-fe0f":{"1f3fb":["1f9da-1f3fb-200d-2642-fe0f",52,6,15,["\u{1F9DA}\u{1F3FB}\u200D\u2642\uFE0F"]],"1f3fc":["1f9da-1f3fc-200d-2642-fe0f",52,7,15,["\u{1F9DA}\u{1F3FC}\u200D\u2642\uFE0F"]],"1f3fd":["1f9da-1f3fd-200d-2642-fe0f",52,8,15,["\u{1F9DA}\u{1F3FD}\u200D\u2642\uFE0F"]],"1f3fe":["1f9da-1f3fe-200d-2642-fe0f",52,9,15,["\u{1F9DA}\u{1F3FE}\u200D\u2642\uFE0F"]],"1f3ff":["1f9da-1f3ff-200d-2642-fe0f",52,10,15,["\u{1F9DA}\u{1F3FF}\u200D\u2642\uFE0F"]]},"1f9db-200d-2640-fe0f":{"1f3fb":["1f9db-1f3fb-200d-2640-fe0f",52,18,15,["\u{1F9DB}\u{1F3FB}\u200D\u2640\uFE0F","\u{1F9DB}\u{1F3FB}"]],"1f3fc":["1f9db-1f3fc-200d-2640-fe0f",52,19,15,["\u{1F9DB}\u{1F3FC}\u200D\u2640\uFE0F","\u{1F9DB}\u{1F3FC}"]],"1f3fd":["1f9db-1f3fd-200d-2640-fe0f",52,20,15,["\u{1F9DB}\u{1F3FD}\u200D\u2640\uFE0F","\u{1F9DB}\u{1F3FD}"]],"1f3fe":["1f9db-1f3fe-200d-2640-fe0f",52,21,15,["\u{1F9DB}\u{1F3FE}\u200D\u2640\uFE0F","\u{1F9DB}\u{1F3FE}"]],"1f3ff":["1f9db-1f3ff-200d-2640-fe0f",52,22,15,["\u{1F9DB}\u{1F3FF}\u200D\u2640\uFE0F","\u{1F9DB}\u{1F3FF}"]]},"1f9db-200d-2642-fe0f":{"1f3fb":["1f9db-1f3fb-200d-2642-fe0f",52,24,15,["\u{1F9DB}\u{1F3FB}\u200D\u2642\uFE0F"]],"1f3fc":["1f9db-1f3fc-200d-2642-fe0f",52,25,15,["\u{1F9DB}\u{1F3FC}\u200D\u2642\uFE0F"]],"1f3fd":["1f9db-1f3fd-200d-2642-fe0f",52,26,15,["\u{1F9DB}\u{1F3FD}\u200D\u2642\uFE0F"]],"1f3fe":["1f9db-1f3fe-200d-2642-fe0f",52,27,15,["\u{1F9DB}\u{1F3FE}\u200D\u2642\uFE0F"]],"1f3ff":["1f9db-1f3ff-200d-2642-fe0f",52,28,15,["\u{1F9DB}\u{1F3FF}\u200D\u2642\uFE0F"]]},"1f9dc-200d-2640-fe0f":{"1f3fb":["1f9dc-1f3fb-200d-2640-fe0f",52,36,15,["\u{1F9DC}\u{1F3FB}\u200D\u2640\uFE0F"]],"1f3fc":["1f9dc-1f3fc-200d-2640-fe0f",52,37,15,["\u{1F9DC}\u{1F3FC}\u200D\u2640\uFE0F"]],"1f3fd":["1f9dc-1f3fd-200d-2640-fe0f",52,38,15,["\u{1F9DC}\u{1F3FD}\u200D\u2640\uFE0F"]],"1f3fe":["1f9dc-1f3fe-200d-2640-fe0f",52,39,15,["\u{1F9DC}\u{1F3FE}\u200D\u2640\uFE0F"]],"1f3ff":["1f9dc-1f3ff-200d-2640-fe0f",52,40,15,["\u{1F9DC}\u{1F3FF}\u200D\u2640\uFE0F"]]},"1f9dc-200d-2642-fe0f":{"1f3fb":["1f9dc-1f3fb-200d-2642-fe0f",52,42,15,["\u{1F9DC}\u{1F3FB}\u200D\u2642\uFE0F","\u{1F9DC}\u{1F3FB}"]],"1f3fc":["1f9dc-1f3fc-200d-2642-fe0f",52,43,15,["\u{1F9DC}\u{1F3FC}\u200D\u2642\uFE0F","\u{1F9DC}\u{1F3FC}"]],"1f3fd":["1f9dc-1f3fd-200d-2642-fe0f",52,44,15,["\u{1F9DC}\u{1F3FD}\u200D\u2642\uFE0F","\u{1F9DC}\u{1F3FD}"]],"1f3fe":["1f9dc-1f3fe-200d-2642-fe0f",52,45,15,["\u{1F9DC}\u{1F3FE}\u200D\u2642\uFE0F","\u{1F9DC}\u{1F3FE}"]],"1f3ff":["1f9dc-1f3ff-200d-2642-fe0f",52,46,15,["\u{1F9DC}\u{1F3FF}\u200D\u2642\uFE0F","\u{1F9DC}\u{1F3FF}"]]},"1f9dd-200d-2640-fe0f":{"1f3fb":["1f9dd-1f3fb-200d-2640-fe0f",52,54,15,["\u{1F9DD}\u{1F3FB}\u200D\u2640\uFE0F"]],"1f3fc":["1f9dd-1f3fc-200d-2640-fe0f",52,55,15,["\u{1F9DD}\u{1F3FC}\u200D\u2640\uFE0F"]],"1f3fd":["1f9dd-1f3fd-200d-2640-fe0f",52,56,15,["\u{1F9DD}\u{1F3FD}\u200D\u2640\uFE0F"]],"1f3fe":["1f9dd-1f3fe-200d-2640-fe0f",52,57,15,["\u{1F9DD}\u{1F3FE}\u200D\u2640\uFE0F"]],"1f3ff":["1f9dd-1f3ff-200d-2640-fe0f",52,58,15,["\u{1F9DD}\u{1F3FF}\u200D\u2640\uFE0F"]]},"1f9dd-200d-2642-fe0f":{"1f3fb":["1f9dd-1f3fb-200d-2642-fe0f",52,60,15,["\u{1F9DD}\u{1F3FB}\u200D\u2642\uFE0F","\u{1F9DD}\u{1F3FB}"]],"1f3fc":["1f9dd-1f3fc-200d-2642-fe0f",53,0,15,["\u{1F9DD}\u{1F3FC}\u200D\u2642\uFE0F","\u{1F9DD}\u{1F3FC}"]],"1f3fd":["1f9dd-1f3fd-200d-2642-fe0f",53,1,15,["\u{1F9DD}\u{1F3FD}\u200D\u2642\uFE0F","\u{1F9DD}\u{1F3FD}"]],"1f3fe":["1f9dd-1f3fe-200d-2642-fe0f",53,2,15,["\u{1F9DD}\u{1F3FE}\u200D\u2642\uFE0F","\u{1F9DD}\u{1F3FE}"]],"1f3ff":["1f9dd-1f3ff-200d-2642-fe0f",53,3,15,["\u{1F9DD}\u{1F3FF}\u200D\u2642\uFE0F","\u{1F9DD}\u{1F3FF}"]]},"1fac3":{"1f3fb":["1fac3-1f3fb",54,60,15,["\u{1FAC3}\u{1F3FB}"]],"1f3fc":["1fac3-1f3fc",55,0,15,["\u{1FAC3}\u{1F3FC}"]],"1f3fd":["1fac3-1f3fd",55,1,15,["\u{1FAC3}\u{1F3FD}"]],"1f3fe":["1fac3-1f3fe",55,2,15,["\u{1FAC3}\u{1F3FE}"]],"1f3ff":["1fac3-1f3ff",55,3,15,["\u{1FAC3}\u{1F3FF}"]]},"1fac4":{"1f3fb":["1fac4-1f3fb",55,5,15,["\u{1FAC4}\u{1F3FB}"]],"1f3fc":["1fac4-1f3fc",55,6,15,["\u{1FAC4}\u{1F3FC}"]],"1f3fd":["1fac4-1f3fd",55,7,15,["\u{1FAC4}\u{1F3FD}"]],"1f3fe":["1fac4-1f3fe",55,8,15,["\u{1FAC4}\u{1F3FE}"]],"1f3ff":["1fac4-1f3ff",55,9,15,["\u{1FAC4}\u{1F3FF}"]]},"1fac5":{"1f3fb":["1fac5-1f3fb",55,11,15,["\u{1FAC5}\u{1F3FB}"]],"1f3fc":["1fac5-1f3fc",55,12,15,["\u{1FAC5}\u{1F3FC}"]],"1f3fd":["1fac5-1f3fd",55,13,15,["\u{1FAC5}\u{1F3FD}"]],"1f3fe":["1fac5-1f3fe",55,14,15,["\u{1FAC5}\u{1F3FE}"]],"1f3ff":["1fac5-1f3ff",55,15,15,["\u{1FAC5}\u{1F3FF}"]]},"1faf0":{"1f3fb":["1faf0-1f3fb",55,40,15,["\u{1FAF0}\u{1F3FB}"]],"1f3fc":["1faf0-1f3fc",55,41,15,["\u{1FAF0}\u{1F3FC}"]],"1f3fd":["1faf0-1f3fd",55,42,15,["\u{1FAF0}\u{1F3FD}"]],"1f3fe":["1faf0-1f3fe",55,43,15,["\u{1FAF0}\u{1F3FE}"]],"1f3ff":["1faf0-1f3ff",55,44,15,["\u{1FAF0}\u{1F3FF}"]]},"1faf1":{"1f3fb":["1faf1-1f3fb",55,46,15,["\u{1FAF1}\u{1F3FB}"]],"1f3fc":["1faf1-1f3fc",55,47,15,["\u{1FAF1}\u{1F3FC}"]],"1f3fd":["1faf1-1f3fd",55,48,15,["\u{1FAF1}\u{1F3FD}"]],"1f3fe":["1faf1-1f3fe",55,49,15,["\u{1FAF1}\u{1F3FE}"]],"1f3ff":["1faf1-1f3ff",55,50,15,["\u{1FAF1}\u{1F3FF}"]]},"1faf2":{"1f3fb":["1faf2-1f3fb",55,52,15,["\u{1FAF2}\u{1F3FB}"]],"1f3fc":["1faf2-1f3fc",55,53,15,["\u{1FAF2}\u{1F3FC}"]],"1f3fd":["1faf2-1f3fd",55,54,15,["\u{1FAF2}\u{1F3FD}"]],"1f3fe":["1faf2-1f3fe",55,55,15,["\u{1FAF2}\u{1F3FE}"]],"1f3ff":["1faf2-1f3ff",55,56,15,["\u{1FAF2}\u{1F3FF}"]]},"1faf3":{"1f3fb":["1faf3-1f3fb",55,58,15,["\u{1FAF3}\u{1F3FB}"]],"1f3fc":["1faf3-1f3fc",55,59,15,["\u{1FAF3}\u{1F3FC}"]],"1f3fd":["1faf3-1f3fd",55,60,15,["\u{1FAF3}\u{1F3FD}"]],"1f3fe":["1faf3-1f3fe",56,0,15,["\u{1FAF3}\u{1F3FE}"]],"1f3ff":["1faf3-1f3ff",56,1,15,["\u{1FAF3}\u{1F3FF}"]]},"1faf4":{"1f3fb":["1faf4-1f3fb",56,3,15,["\u{1FAF4}\u{1F3FB}"]],"1f3fc":["1faf4-1f3fc",56,4,15,["\u{1FAF4}\u{1F3FC}"]],"1f3fd":["1faf4-1f3fd",56,5,15,["\u{1FAF4}\u{1F3FD}"]],"1f3fe":["1faf4-1f3fe",56,6,15,["\u{1FAF4}\u{1F3FE}"]],"1f3ff":["1faf4-1f3ff",56,7,15,["\u{1FAF4}\u{1F3FF}"]]},"1faf5":{"1f3fb":["1faf5-1f3fb",56,9,15,["\u{1FAF5}\u{1F3FB}"]],"1f3fc":["1faf5-1f3fc",56,10,15,["\u{1FAF5}\u{1F3FC}"]],"1f3fd":["1faf5-1f3fd",56,11,15,["\u{1FAF5}\u{1F3FD}"]],"1f3fe":["1faf5-1f3fe",56,12,15,["\u{1FAF5}\u{1F3FE}"]],"1f3ff":["1faf5-1f3ff",56,13,15,["\u{1FAF5}\u{1F3FF}"]]},"1faf6":{"1f3fb":["1faf6-1f3fb",56,15,15,["\u{1FAF6}\u{1F3FB}"]],"1f3fc":["1faf6-1f3fc",56,16,15,["\u{1FAF6}\u{1F3FC}"]],"1f3fd":["1faf6-1f3fd",56,17,15,["\u{1FAF6}\u{1F3FD}"]],"1f3fe":["1faf6-1f3fe",56,18,15,["\u{1FAF6}\u{1F3FE}"]],"1f3ff":["1faf6-1f3ff",56,19,15,["\u{1FAF6}\u{1F3FF}"]]},"1faf7":{"1f3fb":["1faf7-1f3fb",56,21,3,["\u{1FAF7}\u{1F3FB}"]],"1f3fc":["1faf7-1f3fc",56,22,3,["\u{1FAF7}\u{1F3FC}"]],"1f3fd":["1faf7-1f3fd",56,23,3,["\u{1FAF7}\u{1F3FD}"]],"1f3fe":["1faf7-1f3fe",56,24,3,["\u{1FAF7}\u{1F3FE}"]],"1f3ff":["1faf7-1f3ff",56,25,3,["\u{1FAF7}\u{1F3FF}"]]},"1faf8":{"1f3fb":["1faf8-1f3fb",56,27,3,["\u{1FAF8}\u{1F3FB}"]],"1f3fc":["1faf8-1f3fc",56,28,3,["\u{1FAF8}\u{1F3FC}"]],"1f3fd":["1faf8-1f3fd",56,29,3,["\u{1FAF8}\u{1F3FD}"]],"1f3fe":["1faf8-1f3fe",56,30,3,["\u{1FAF8}\u{1F3FE}"]],"1f3ff":["1faf8-1f3ff",56,31,3,["\u{1FAF8}\u{1F3FF}"]]},"261d-fe0f":{"1f3fb":["261d-1f3fb",57,21,15,["\u261D\u{1F3FB}"]],"1f3fc":["261d-1f3fc",57,22,15,["\u261D\u{1F3FC}"]],"1f3fd":["261d-1f3fd",57,23,15,["\u261D\u{1F3FD}"]],"1f3fe":["261d-1f3fe",57,24,15,["\u261D\u{1F3FE}"]],"1f3ff":["261d-1f3ff",57,25,15,["\u261D\u{1F3FF}"]]},"26f9-fe0f-200d-2640-fe0f":{"1f3fb":["26f9-1f3fb-200d-2640-fe0f",58,35,15,["\u26F9\u{1F3FB}\u200D\u2640\uFE0F"]],"1f3fc":["26f9-1f3fc-200d-2640-fe0f",58,36,15,["\u26F9\u{1F3FC}\u200D\u2640\uFE0F"]],"1f3fd":["26f9-1f3fd-200d-2640-fe0f",58,37,15,["\u26F9\u{1F3FD}\u200D\u2640\uFE0F"]],"1f3fe":["26f9-1f3fe-200d-2640-fe0f",58,38,15,["\u26F9\u{1F3FE}\u200D\u2640\uFE0F"]],"1f3ff":["26f9-1f3ff-200d-2640-fe0f",58,39,15,["\u26F9\u{1F3FF}\u200D\u2640\uFE0F"]]},"26f9-fe0f-200d-2642-fe0f":{"1f3fb":["26f9-1f3fb-200d-2642-fe0f",58,41,15,["\u26F9\u{1F3FB}\u200D\u2642\uFE0F","\u26F9\u{1F3FB}"]],"1f3fc":["26f9-1f3fc-200d-2642-fe0f",58,42,15,["\u26F9\u{1F3FC}\u200D\u2642\uFE0F","\u26F9\u{1F3FC}"]],"1f3fd":["26f9-1f3fd-200d-2642-fe0f",58,43,15,["\u26F9\u{1F3FD}\u200D\u2642\uFE0F","\u26F9\u{1F3FD}"]],"1f3fe":["26f9-1f3fe-200d-2642-fe0f",58,44,15,["\u26F9\u{1F3FE}\u200D\u2642\uFE0F","\u26F9\u{1F3FE}"]],"1f3ff":["26f9-1f3ff-200d-2642-fe0f",58,45,15,["\u26F9\u{1F3FF}\u200D\u2642\uFE0F","\u26F9\u{1F3FF}"]]},"270a":{"1f3fb":["270a-1f3fb",58,59,15,["\u270A\u{1F3FB}"]],"1f3fc":["270a-1f3fc",58,60,15,["\u270A\u{1F3FC}"]],"1f3fd":["270a-1f3fd",59,0,15,["\u270A\u{1F3FD}"]],"1f3fe":["270a-1f3fe",59,1,15,["\u270A\u{1F3FE}"]],"1f3ff":["270a-1f3ff",59,2,15,["\u270A\u{1F3FF}"]]},"270b":{"1f3fb":["270b-1f3fb",59,4,15,["\u270B\u{1F3FB}"]],"1f3fc":["270b-1f3fc",59,5,15,["\u270B\u{1F3FC}"]],"1f3fd":["270b-1f3fd",59,6,15,["\u270B\u{1F3FD}"]],"1f3fe":["270b-1f3fe",59,7,15,["\u270B\u{1F3FE}"]],"1f3ff":["270b-1f3ff",59,8,15,["\u270B\u{1F3FF}"]]},"270c-fe0f":{"1f3fb":["270c-1f3fb",59,10,15,["\u270C\u{1F3FB}"]],"1f3fc":["270c-1f3fc",59,11,15,["\u270C\u{1F3FC}"]],"1f3fd":["270c-1f3fd",59,12,15,["\u270C\u{1F3FD}"]],"1f3fe":["270c-1f3fe",59,13,15,["\u270C\u{1F3FE}"]],"1f3ff":["270c-1f3ff",59,14,15,["\u270C\u{1F3FF}"]]},"270d-fe0f":{"1f3fb":["270d-1f3fb",59,16,15,["\u270D\u{1F3FB}"]],"1f3fc":["270d-1f3fc",59,17,15,["\u270D\u{1F3FC}"]],"1f3fd":["270d-1f3fd",59,18,15,["\u270D\u{1F3FD}"]],"1f3fe":["270d-1f3fe",59,19,15,["\u270D\u{1F3FE}"]],"1f3ff":["270d-1f3ff",59,20,15,["\u270D\u{1F3FF}"]]}},t.prototype.obsoletes_data={"1f3c3-200d-2642-fe0f":["1f3c3",8,26,15],"1f3c3-1f3fb-200d-2642-fe0f":["1f3c3-1f3fb",8,27,15],"1f3c3-1f3fc-200d-2642-fe0f":["1f3c3-1f3fc",8,28,15],"1f3c3-1f3fd-200d-2642-fe0f":["1f3c3-1f3fd",8,29,15],"1f3c3-1f3fe-200d-2642-fe0f":["1f3c3-1f3fe",8,30,15],"1f3c3-1f3ff-200d-2642-fe0f":["1f3c3-1f3ff",8,31,15],"1f3c4-200d-2642-fe0f":["1f3c4",8,44,15],"1f3c4-1f3fb-200d-2642-fe0f":["1f3c4-1f3fb",8,45,15],"1f3c4-1f3fc-200d-2642-fe0f":["1f3c4-1f3fc",8,46,15],"1f3c4-1f3fd-200d-2642-fe0f":["1f3c4-1f3fd",8,47,15],"1f3c4-1f3fe-200d-2642-fe0f":["1f3c4-1f3fe",8,48,15],"1f3c4-1f3ff-200d-2642-fe0f":["1f3c4-1f3ff",8,49,15],"1f3ca-200d-2642-fe0f":["1f3ca",9,11,15],"1f3ca-1f3fb-200d-2642-fe0f":["1f3ca-1f3fb",9,12,15],"1f3ca-1f3fc-200d-2642-fe0f":["1f3ca-1f3fc",9,13,15],"1f3ca-1f3fd-200d-2642-fe0f":["1f3ca-1f3fd",9,14,15],"1f3ca-1f3fe-200d-2642-fe0f":["1f3ca-1f3fe",9,15,15],"1f3ca-1f3ff-200d-2642-fe0f":["1f3ca-1f3ff",9,16,15],"1f3cb-fe0f-200d-2642-fe0f":["1f3cb-fe0f",9,29,15],"1f3cb-1f3fb-200d-2642-fe0f":["1f3cb-1f3fb",9,30,15],"1f3cb-1f3fc-200d-2642-fe0f":["1f3cb-1f3fc",9,31,15],"1f3cb-1f3fd-200d-2642-fe0f":["1f3cb-1f3fd",9,32,15],"1f3cb-1f3fe-200d-2642-fe0f":["1f3cb-1f3fe",9,33,15],"1f3cb-1f3ff-200d-2642-fe0f":["1f3cb-1f3ff",9,34,15],"1f3cc-fe0f-200d-2642-fe0f":["1f3cc-fe0f",9,47,15],"1f3cc-1f3fb-200d-2642-fe0f":["1f3cc-1f3fb",9,48,15],"1f3cc-1f3fc-200d-2642-fe0f":["1f3cc-1f3fc",9,49,15],"1f3cc-1f3fd-200d-2642-fe0f":["1f3cc-1f3fd",9,50,15],"1f3cc-1f3fe-200d-2642-fe0f":["1f3cc-1f3fe",9,51,15],"1f3cc-1f3ff-200d-2642-fe0f":["1f3cc-1f3ff",9,52,15],"1f468-200d-1f469-200d-1f466":["1f46a",21,40,15],"1f46e-200d-2642-fe0f":["1f46e",23,9,15],"1f46e-1f3fb-200d-2642-fe0f":["1f46e-1f3fb",23,10,15],"1f46e-1f3fc-200d-2642-fe0f":["1f46e-1f3fc",23,11,15],"1f46e-1f3fd-200d-2642-fe0f":["1f46e-1f3fd",23,12,15],"1f46e-1f3fe-200d-2642-fe0f":["1f46e-1f3fe",23,13,15],"1f46e-1f3ff-200d-2642-fe0f":["1f46e-1f3ff",23,14,15],"1f46f-200d-2640-fe0f":["1f46f",23,17,15],"1f471-200d-2642-fe0f":["1f471",23,48,15],"1f471-1f3fb-200d-2642-fe0f":["1f471-1f3fb",23,49,15],"1f471-1f3fc-200d-2642-fe0f":["1f471-1f3fc",23,50,15],"1f471-1f3fd-200d-2642-fe0f":["1f471-1f3fd",23,51,15],"1f471-1f3fe-200d-2642-fe0f":["1f471-1f3fe",23,52,15],"1f471-1f3ff-200d-2642-fe0f":["1f471-1f3ff",23,53,15],"1f473-200d-2642-fe0f":["1f473",24,11,15],"1f473-1f3fb-200d-2642-fe0f":["1f473-1f3fb",24,12,15],"1f473-1f3fc-200d-2642-fe0f":["1f473-1f3fc",24,13,15],"1f473-1f3fd-200d-2642-fe0f":["1f473-1f3fd",24,14,15],"1f473-1f3fe-200d-2642-fe0f":["1f473-1f3fe",24,15,15],"1f473-1f3ff-200d-2642-fe0f":["1f473-1f3ff",24,16,15],"1f477-200d-2642-fe0f":["1f477",24,47,15],"1f477-1f3fb-200d-2642-fe0f":["1f477-1f3fb",24,48,15],"1f477-1f3fc-200d-2642-fe0f":["1f477-1f3fc",24,49,15],"1f477-1f3fd-200d-2642-fe0f":["1f477-1f3fd",24,50,15],"1f477-1f3fe-200d-2642-fe0f":["1f477-1f3fe",24,51,15],"1f477-1f3ff-200d-2642-fe0f":["1f477-1f3ff",24,52,15],"1f481-200d-2640-fe0f":["1f481",25,23,15],"1f481-1f3fb-200d-2640-fe0f":["1f481-1f3fb",25,24,15],"1f481-1f3fc-200d-2640-fe0f":["1f481-1f3fc",25,25,15],"1f481-1f3fd-200d-2640-fe0f":["1f481-1f3fd",25,26,15],"1f481-1f3fe-200d-2640-fe0f":["1f481-1f3fe",25,27,15],"1f481-1f3ff-200d-2640-fe0f":["1f481-1f3ff",25,28,15],"1f482-200d-2642-fe0f":["1f482",25,41,15],"1f482-1f3fb-200d-2642-fe0f":["1f482-1f3fb",25,42,15],"1f482-1f3fc-200d-2642-fe0f":["1f482-1f3fc",25,43,15],"1f482-1f3fd-200d-2642-fe0f":["1f482-1f3fd",25,44,15],"1f482-1f3fe-200d-2642-fe0f":["1f482-1f3fe",25,45,15],"1f482-1f3ff-200d-2642-fe0f":["1f482-1f3ff",25,46,15],"1f486-200d-2640-fe0f":["1f486",26,11,15],"1f486-1f3fb-200d-2640-fe0f":["1f486-1f3fb",26,12,15],"1f486-1f3fc-200d-2640-fe0f":["1f486-1f3fc",26,13,15],"1f486-1f3fd-200d-2640-fe0f":["1f486-1f3fd",26,14,15],"1f486-1f3fe-200d-2640-fe0f":["1f486-1f3fe",26,15,15],"1f486-1f3ff-200d-2640-fe0f":["1f486-1f3ff",26,16,15],"1f487-200d-2640-fe0f":["1f487",26,29,15],"1f487-1f3fb-200d-2640-fe0f":["1f487-1f3fb",26,30,15],"1f487-1f3fc-200d-2640-fe0f":["1f487-1f3fc",26,31,15],"1f487-1f3fd-200d-2640-fe0f":["1f487-1f3fd",26,32,15],"1f487-1f3fe-200d-2640-fe0f":["1f487-1f3fe",26,33,15],"1f487-1f3ff-200d-2640-fe0f":["1f487-1f3ff",26,34,15],"1f575-fe0f-200d-2642-fe0f":["1f575-fe0f",31,17,15],"1f575-1f3fb-200d-2642-fe0f":["1f575-1f3fb",31,18,15],"1f575-1f3fc-200d-2642-fe0f":["1f575-1f3fc",31,19,15],"1f575-1f3fd-200d-2642-fe0f":["1f575-1f3fd",31,20,15],"1f575-1f3fe-200d-2642-fe0f":["1f575-1f3fe",31,21,15],"1f575-1f3ff-200d-2642-fe0f":["1f575-1f3ff",31,22,15],"1f645-200d-2640-fe0f":["1f645",33,44,15],"1f645-1f3fb-200d-2640-fe0f":["1f645-1f3fb",33,45,15],"1f645-1f3fc-200d-2640-fe0f":["1f645-1f3fc",33,46,15],"1f645-1f3fd-200d-2640-fe0f":["1f645-1f3fd",33,47,15],"1f645-1f3fe-200d-2640-fe0f":["1f645-1f3fe",33,48,15],"1f645-1f3ff-200d-2640-fe0f":["1f645-1f3ff",33,49,15],"1f646-200d-2640-fe0f":["1f646",34,1,15],"1f646-1f3fb-200d-2640-fe0f":["1f646-1f3fb",34,2,15],"1f646-1f3fc-200d-2640-fe0f":["1f646-1f3fc",34,3,15],"1f646-1f3fd-200d-2640-fe0f":["1f646-1f3fd",34,4,15],"1f646-1f3fe-200d-2640-fe0f":["1f646-1f3fe",34,5,15],"1f646-1f3ff-200d-2640-fe0f":["1f646-1f3ff",34,6,15],"1f64b-200d-2640-fe0f":["1f64b",34,40,15],"1f64b-1f3fb-200d-2640-fe0f":["1f64b-1f3fb",34,41,15],"1f64b-1f3fc-200d-2640-fe0f":["1f64b-1f3fc",34,42,15],"1f64b-1f3fd-200d-2640-fe0f":["1f64b-1f3fd",34,43,15],"1f64b-1f3fe-200d-2640-fe0f":["1f64b-1f3fe",34,44,15],"1f64b-1f3ff-200d-2640-fe0f":["1f64b-1f3ff",34,45,15],"1f64d-200d-2640-fe0f":["1f64d",35,3,15],"1f64d-1f3fb-200d-2640-fe0f":["1f64d-1f3fb",35,4,15],"1f64d-1f3fc-200d-2640-fe0f":["1f64d-1f3fc",35,5,15],"1f64d-1f3fd-200d-2640-fe0f":["1f64d-1f3fd",35,6,15],"1f64d-1f3fe-200d-2640-fe0f":["1f64d-1f3fe",35,7,15],"1f64d-1f3ff-200d-2640-fe0f":["1f64d-1f3ff",35,8,15],"1f64e-200d-2640-fe0f":["1f64e",35,21,15],"1f64e-1f3fb-200d-2640-fe0f":["1f64e-1f3fb",35,22,15],"1f64e-1f3fc-200d-2640-fe0f":["1f64e-1f3fc",35,23,15],"1f64e-1f3fd-200d-2640-fe0f":["1f64e-1f3fd",35,24,15],"1f64e-1f3fe-200d-2640-fe0f":["1f64e-1f3fe",35,25,15],"1f64e-1f3ff-200d-2640-fe0f":["1f64e-1f3ff",35,26,15],"1f6a3-200d-2642-fe0f":["1f6a3",36,19,15],"1f6a3-1f3fb-200d-2642-fe0f":["1f6a3-1f3fb",36,20,15],"1f6a3-1f3fc-200d-2642-fe0f":["1f6a3-1f3fc",36,21,15],"1f6a3-1f3fd-200d-2642-fe0f":["1f6a3-1f3fd",36,22,15],"1f6a3-1f3fe-200d-2642-fe0f":["1f6a3-1f3fe",36,23,15],"1f6a3-1f3ff-200d-2642-fe0f":["1f6a3-1f3ff",36,24,15],"1f6b4-200d-2642-fe0f":["1f6b4",36,53,15],"1f6b4-1f3fb-200d-2642-fe0f":["1f6b4-1f3fb",36,54,15],"1f6b4-1f3fc-200d-2642-fe0f":["1f6b4-1f3fc",36,55,15],"1f6b4-1f3fd-200d-2642-fe0f":["1f6b4-1f3fd",36,56,15],"1f6b4-1f3fe-200d-2642-fe0f":["1f6b4-1f3fe",36,57,15],"1f6b4-1f3ff-200d-2642-fe0f":["1f6b4-1f3ff",36,58,15],"1f6b5-200d-2642-fe0f":["1f6b5",37,10,15],"1f6b5-1f3fb-200d-2642-fe0f":["1f6b5-1f3fb",37,11,15],"1f6b5-1f3fc-200d-2642-fe0f":["1f6b5-1f3fc",37,12,15],"1f6b5-1f3fd-200d-2642-fe0f":["1f6b5-1f3fd",37,13,15],"1f6b5-1f3fe-200d-2642-fe0f":["1f6b5-1f3fe",37,14,15],"1f6b5-1f3ff-200d-2642-fe0f":["1f6b5-1f3ff",37,15,15],"1f6b6-200d-2642-fe0f":["1f6b6",37,28,15],"1f6b6-1f3fb-200d-2642-fe0f":["1f6b6-1f3fb",37,29,15],"1f6b6-1f3fc-200d-2642-fe0f":["1f6b6-1f3fc",37,30,15],"1f6b6-1f3fd-200d-2642-fe0f":["1f6b6-1f3fd",37,31,15],"1f6b6-1f3fe-200d-2642-fe0f":["1f6b6-1f3fe",37,32,15],"1f6b6-1f3ff-200d-2642-fe0f":["1f6b6-1f3ff",37,33,15],"1f9d6-200d-2642-fe0f":["1f9d6",51,0,15],"1f9d6-1f3fb-200d-2642-fe0f":["1f9d6-1f3fb",51,1,15],"1f9d6-1f3fc-200d-2642-fe0f":["1f9d6-1f3fc",51,2,15],"1f9d6-1f3fd-200d-2642-fe0f":["1f9d6-1f3fd",51,3,15],"1f9d6-1f3fe-200d-2642-fe0f":["1f9d6-1f3fe",51,4,15],"1f9d6-1f3ff-200d-2642-fe0f":["1f9d6-1f3ff",51,5,15],"1f9d7-200d-2640-fe0f":["1f9d7",51,18,15],"1f9d7-1f3fb-200d-2640-fe0f":["1f9d7-1f3fb",51,19,15],"1f9d7-1f3fc-200d-2640-fe0f":["1f9d7-1f3fc",51,20,15],"1f9d7-1f3fd-200d-2640-fe0f":["1f9d7-1f3fd",51,21,15],"1f9d7-1f3fe-200d-2640-fe0f":["1f9d7-1f3fe",51,22,15],"1f9d7-1f3ff-200d-2640-fe0f":["1f9d7-1f3ff",51,23,15],"1f9d8-200d-2640-fe0f":["1f9d8",51,36,15],"1f9d8-1f3fb-200d-2640-fe0f":["1f9d8-1f3fb",51,37,15],"1f9d8-1f3fc-200d-2640-fe0f":["1f9d8-1f3fc",51,38,15],"1f9d8-1f3fd-200d-2640-fe0f":["1f9d8-1f3fd",51,39,15],"1f9d8-1f3fe-200d-2640-fe0f":["1f9d8-1f3fe",51,40,15],"1f9d8-1f3ff-200d-2640-fe0f":["1f9d8-1f3ff",51,41,15],"1f9d9-200d-2640-fe0f":["1f9d9",51,54,15],"1f9d9-1f3fb-200d-2640-fe0f":["1f9d9-1f3fb",51,55,15],"1f9d9-1f3fc-200d-2640-fe0f":["1f9d9-1f3fc",51,56,15],"1f9d9-1f3fd-200d-2640-fe0f":["1f9d9-1f3fd",51,57,15],"1f9d9-1f3fe-200d-2640-fe0f":["1f9d9-1f3fe",51,58,15],"1f9d9-1f3ff-200d-2640-fe0f":["1f9d9-1f3ff",51,59,15],"1f9da-200d-2640-fe0f":["1f9da",52,11,15],"1f9da-1f3fb-200d-2640-fe0f":["1f9da-1f3fb",52,12,15],"1f9da-1f3fc-200d-2640-fe0f":["1f9da-1f3fc",52,13,15],"1f9da-1f3fd-200d-2640-fe0f":["1f9da-1f3fd",52,14,15],"1f9da-1f3fe-200d-2640-fe0f":["1f9da-1f3fe",52,15,15],"1f9da-1f3ff-200d-2640-fe0f":["1f9da-1f3ff",52,16,15],"1f9db-200d-2640-fe0f":["1f9db",52,29,15],"1f9db-1f3fb-200d-2640-fe0f":["1f9db-1f3fb",52,30,15],"1f9db-1f3fc-200d-2640-fe0f":["1f9db-1f3fc",52,31,15],"1f9db-1f3fd-200d-2640-fe0f":["1f9db-1f3fd",52,32,15],"1f9db-1f3fe-200d-2640-fe0f":["1f9db-1f3fe",52,33,15],"1f9db-1f3ff-200d-2640-fe0f":["1f9db-1f3ff",52,34,15],"1f9dc-200d-2642-fe0f":["1f9dc",52,47,15],"1f9dc-1f3fb-200d-2642-fe0f":["1f9dc-1f3fb",52,48,15],"1f9dc-1f3fc-200d-2642-fe0f":["1f9dc-1f3fc",52,49,15],"1f9dc-1f3fd-200d-2642-fe0f":["1f9dc-1f3fd",52,50,15],"1f9dc-1f3fe-200d-2642-fe0f":["1f9dc-1f3fe",52,51,15],"1f9dc-1f3ff-200d-2642-fe0f":["1f9dc-1f3ff",52,52,15],"1f9dd-200d-2642-fe0f":["1f9dd",53,4,15],"1f9dd-1f3fb-200d-2642-fe0f":["1f9dd-1f3fb",53,5,15],"1f9dd-1f3fc-200d-2642-fe0f":["1f9dd-1f3fc",53,6,15],"1f9dd-1f3fd-200d-2642-fe0f":["1f9dd-1f3fd",53,7,15],"1f9dd-1f3fe-200d-2642-fe0f":["1f9dd-1f3fe",53,8,15],"1f9dd-1f3ff-200d-2642-fe0f":["1f9dd-1f3ff",53,9,15],"1f9de-200d-2642-fe0f":["1f9de",53,12,15],"1f9df-200d-2642-fe0f":["1f9df",53,15,15],"26f9-fe0f-200d-2642-fe0f":["26f9-fe0f",58,46,15],"26f9-1f3fb-200d-2642-fe0f":["26f9-1f3fb",58,47,15],"26f9-1f3fc-200d-2642-fe0f":["26f9-1f3fc",58,48,15],"26f9-1f3fd-200d-2642-fe0f":["26f9-1f3fd",58,49,15],"26f9-1f3fe-200d-2642-fe0f":["26f9-1f3fe",58,50,15],"26f9-1f3ff-200d-2642-fe0f":["26f9-1f3ff",58,51,15]},typeof Kc<"u"?(typeof Jc<"u"&&Jc.exports&&(Kc=Jc.exports=t),Kc.EmojiConvertor=t):typeof define=="function"&&define.amd?define(function(){return t}):r.EmojiConvertor=t}).call(function(){return this||(typeof window<"u"?window:global)}())});var V8=B1((uc,i2)=>{"use strict";(function(e,t){typeof uc=="object"&&typeof i2=="object"?i2.exports=t():typeof define=="function"&&define.amd?define([],t):typeof uc=="object"?uc.jsQR=t():e.jsQR=t()})(typeof self<"u"?self:uc,function(){return function(r){var e={};function t(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return r[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=r,t.c=e,t.d=function(n,i,s){t.o(n,i)||Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:s})},t.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(i,"a",i),i},t.o=function(n,i){return Object.prototype.hasOwnProperty.call(n,i)},t.p="",t(t.s=3)}([function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function i(s,o){this.width=o,this.height=s.length/o,this.data=s}return i.createEmpty=function(s,o){return new i(new Uint8ClampedArray(s*o),s)},i.prototype.get=function(s,o){return s<0||s>=this.width||o<0||o>=this.height?!1:!!this.data[o*this.width+s]},i.prototype.set=function(s,o,a){this.data[o*this.width+s]=a?1:0},i.prototype.setRegion=function(s,o,a,u,c){for(var f=o;f=this.size&&(f=(f^this.primitive)&this.size-1);for(var l=0;l1&&a[0]===0){for(var c=1;cc.length&&(a=[c,u],u=a[0],c=a[1]);for(var f=new Uint8ClampedArray(c.length),l=c.length-u.length,h=0;hl?l:c}var a=function(){function c(f,l){this.width=f,this.data=new Uint8ClampedArray(f*l)}return c.prototype.get=function(f,l){return this.data[l*this.width+f]},c.prototype.set=function(f,l,h){this.data[l*this.width+f]=h},c}();function u(c,f,l,h){if(c.length!==f*l*4)throw new Error("Malformed data passed to binarizer.");for(var d=new a(f,l),x=0;x0&&b>0)){var P=(y.get(b,v-1)+2*y.get(b-1,v)+y.get(b-1,v-1))/4;F6&&(E.setRegion(g-11,0,3,6,!0),E.setRegion(0,g-11,6,3,!0)),E}function h(C,g,E){for(var y=f[E.dataMask],v=C.height,b=l(g),B=[],F=0,_=0,M=!0,R=v-1;R>0;R-=2){R===6&&R--;for(var P=0;P=0;v--)for(var b=g-9;b>=g-11;b--)y=u(C.get(b,v),y);for(var B=0,b=5;b>=0;b--)for(var v=g-9;v>=g-11;v--)B=u(C.get(b,v),B);for(var F=1/0,_,M=0,R=o.VERSIONS;M=0;y--)y!==6&&(g=u(C.get(8,y),g));for(var v=C.height,b=0,y=v-1;y>=v-7;y--)b=u(C.get(8,y),b);for(var E=v-8;E1)for(var P=y.ecBlocks[0].numBlocks,H=y.ecBlocks[1].numBlocks,F=0;F0;)for(var G=0,ie=v;G=3;){var g=d.readBits(10);if(g>=1e3)throw new Error("Invalid numeric value above 999");var E=Math.floor(g/100),y=Math.floor(g/10)%10,v=g%10;m.push(48+E,48+y,48+v),D+=E.toString()+y.toString()+v.toString(),C-=3}if(C===2){var g=d.readBits(7);if(g>=100)throw new Error("Invalid numeric value above 99");var E=Math.floor(g/10),y=g%10;m.push(48+E,48+y),D+=E.toString()+y.toString()}else if(C===1){var g=d.readBits(4);if(g>=10)throw new Error("Invalid numeric value above 9");m.push(48+g),D+=g.toString()}return{bytes:m,text:D}}var u=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function c(d,x){for(var m=[],D="",p=[9,11,13][x],C=d.readBits(p);C>=2;){var g=d.readBits(11),E=Math.floor(g/45),y=g%45;m.push(u[E].charCodeAt(0),u[y].charCodeAt(0)),D+=u[E]+u[y],C-=2}if(C===1){var E=d.readBits(6);m.push(u[E].charCodeAt(0)),D+=u[E]}return{bytes:m,text:D}}function f(d,x){for(var m=[],D="",p=[8,16,16][x],C=d.readBits(p),g=0;g>8,y&255),D+=String.fromCharCode(i.shiftJISTable[y])}return{bytes:m,text:D}}function h(d,x){for(var m,D,p,C,g=new n.BitStream(d),E=x<=9?0:x<=26?1:2,y={text:"",bytes:[],chunks:[],version:x};g.available()>=4;){var v=g.readBits(4);if(v===o.Terminator)return y;if(v===o.ECI)g.readBits(1)===0?y.chunks.push({type:s.ECI,assignmentNumber:g.readBits(7)}):g.readBits(1)===0?y.chunks.push({type:s.ECI,assignmentNumber:g.readBits(14)}):g.readBits(1)===0?y.chunks.push({type:s.ECI,assignmentNumber:g.readBits(21)}):y.chunks.push({type:s.ECI,assignmentNumber:-1});else if(v===o.Numeric){var b=a(g,E);y.text+=b.text,(m=y.bytes).push.apply(m,b.bytes),y.chunks.push({type:s.Numeric,text:b.text})}else if(v===o.Alphanumeric){var B=c(g,E);y.text+=B.text,(D=y.bytes).push.apply(D,B.bytes),y.chunks.push({type:s.Alphanumeric,text:B.text})}else if(v===o.Byte){var F=f(g,E);y.text+=F.text,(p=y.bytes).push.apply(p,F.bytes),y.chunks.push({type:s.Byte,bytes:F.bytes,text:F.text})}else if(v===o.Kanji){var _=l(g,E);y.text+=_.text,(C=y.bytes).push.apply(C,_.bytes),y.chunks.push({type:s.Kanji,bytes:_.bytes,text:_.text})}}if(g.available()===0||g.readBits(g.available())===0)return y}e.decode=h},function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function i(s){this.byteOffset=0,this.bitOffset=0,this.bytes=s}return i.prototype.readBits=function(s){if(s<1||s>32||s>this.available())throw new Error("Cannot read "+s.toString()+" bits");var o=0;if(this.bitOffset>0){var a=8-this.bitOffset,u=s>8-u<>c,s-=u,this.bitOffset+=u,this.bitOffset===8&&(this.bitOffset=0,this.byteOffset++)}if(s>0){for(;s>=8;)o=o<<8|this.bytes[this.byteOffset]&255,this.byteOffset++,s-=8;if(s>0){var c=8-s,f=255>>c<>c,this.bitOffset+=s}}return o},i.prototype.available=function(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset},i}();e.BitStream=n},function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.shiftJISTable={32:32,33:33,34:34,35:35,36:36,37:37,38:38,39:39,40:40,41:41,42:42,43:43,44:44,45:45,46:46,47:47,48:48,49:49,50:50,51:51,52:52,53:53,54:54,55:55,56:56,57:57,58:58,59:59,60:60,61:61,62:62,63:63,64:64,65:65,66:66,67:67,68:68,69:69,70:70,71:71,72:72,73:73,74:74,75:75,76:76,77:77,78:78,79:79,80:80,81:81,82:82,83:83,84:84,85:85,86:86,87:87,88:88,89:89,90:90,91:91,92:165,93:93,94:94,95:95,96:96,97:97,98:98,99:99,100:100,101:101,102:102,103:103,104:104,105:105,106:106,107:107,108:108,109:109,110:110,111:111,112:112,113:113,114:114,115:115,116:116,117:117,118:118,119:119,120:120,121:121,122:122,123:123,124:124,125:125,126:8254,33088:12288,33089:12289,33090:12290,33091:65292,33092:65294,33093:12539,33094:65306,33095:65307,33096:65311,33097:65281,33098:12443,33099:12444,33100:180,33101:65344,33102:168,33103:65342,33104:65507,33105:65343,33106:12541,33107:12542,33108:12445,33109:12446,33110:12291,33111:20189,33112:12293,33113:12294,33114:12295,33115:12540,33116:8213,33117:8208,33118:65295,33119:92,33120:12316,33121:8214,33122:65372,33123:8230,33124:8229,33125:8216,33126:8217,33127:8220,33128:8221,33129:65288,33130:65289,33131:12308,33132:12309,33133:65339,33134:65341,33135:65371,33136:65373,33137:12296,33138:12297,33139:12298,33140:12299,33141:12300,33142:12301,33143:12302,33144:12303,33145:12304,33146:12305,33147:65291,33148:8722,33149:177,33150:215,33152:247,33153:65309,33154:8800,33155:65308,33156:65310,33157:8806,33158:8807,33159:8734,33160:8756,33161:9794,33162:9792,33163:176,33164:8242,33165:8243,33166:8451,33167:65509,33168:65284,33169:162,33170:163,33171:65285,33172:65283,33173:65286,33174:65290,33175:65312,33176:167,33177:9734,33178:9733,33179:9675,33180:9679,33181:9678,33182:9671,33183:9670,33184:9633,33185:9632,33186:9651,33187:9650,33188:9661,33189:9660,33190:8251,33191:12306,33192:8594,33193:8592,33194:8593,33195:8595,33196:12307,33208:8712,33209:8715,33210:8838,33211:8839,33212:8834,33213:8835,33214:8746,33215:8745,33224:8743,33225:8744,33226:172,33227:8658,33228:8660,33229:8704,33230:8707,33242:8736,33243:8869,33244:8978,33245:8706,33246:8711,33247:8801,33248:8786,33249:8810,33250:8811,33251:8730,33252:8765,33253:8733,33254:8757,33255:8747,33256:8748,33264:8491,33265:8240,33266:9839,33267:9837,33268:9834,33269:8224,33270:8225,33271:182,33276:9711,33359:65296,33360:65297,33361:65298,33362:65299,33363:65300,33364:65301,33365:65302,33366:65303,33367:65304,33368:65305,33376:65313,33377:65314,33378:65315,33379:65316,33380:65317,33381:65318,33382:65319,33383:65320,33384:65321,33385:65322,33386:65323,33387:65324,33388:65325,33389:65326,33390:65327,33391:65328,33392:65329,33393:65330,33394:65331,33395:65332,33396:65333,33397:65334,33398:65335,33399:65336,33400:65337,33401:65338,33409:65345,33410:65346,33411:65347,33412:65348,33413:65349,33414:65350,33415:65351,33416:65352,33417:65353,33418:65354,33419:65355,33420:65356,33421:65357,33422:65358,33423:65359,33424:65360,33425:65361,33426:65362,33427:65363,33428:65364,33429:65365,33430:65366,33431:65367,33432:65368,33433:65369,33434:65370,33439:12353,33440:12354,33441:12355,33442:12356,33443:12357,33444:12358,33445:12359,33446:12360,33447:12361,33448:12362,33449:12363,33450:12364,33451:12365,33452:12366,33453:12367,33454:12368,33455:12369,33456:12370,33457:12371,33458:12372,33459:12373,33460:12374,33461:12375,33462:12376,33463:12377,33464:12378,33465:12379,33466:12380,33467:12381,33468:12382,33469:12383,33470:12384,33471:12385,33472:12386,33473:12387,33474:12388,33475:12389,33476:12390,33477:12391,33478:12392,33479:12393,33480:12394,33481:12395,33482:12396,33483:12397,33484:12398,33485:12399,33486:12400,33487:12401,33488:12402,33489:12403,33490:12404,33491:12405,33492:12406,33493:12407,33494:12408,33495:12409,33496:12410,33497:12411,33498:12412,33499:12413,33500:12414,33501:12415,33502:12416,33503:12417,33504:12418,33505:12419,33506:12420,33507:12421,33508:12422,33509:12423,33510:12424,33511:12425,33512:12426,33513:12427,33514:12428,33515:12429,33516:12430,33517:12431,33518:12432,33519:12433,33520:12434,33521:12435,33600:12449,33601:12450,33602:12451,33603:12452,33604:12453,33605:12454,33606:12455,33607:12456,33608:12457,33609:12458,33610:12459,33611:12460,33612:12461,33613:12462,33614:12463,33615:12464,33616:12465,33617:12466,33618:12467,33619:12468,33620:12469,33621:12470,33622:12471,33623:12472,33624:12473,33625:12474,33626:12475,33627:12476,33628:12477,33629:12478,33630:12479,33631:12480,33632:12481,33633:12482,33634:12483,33635:12484,33636:12485,33637:12486,33638:12487,33639:12488,33640:12489,33641:12490,33642:12491,33643:12492,33644:12493,33645:12494,33646:12495,33647:12496,33648:12497,33649:12498,33650:12499,33651:12500,33652:12501,33653:12502,33654:12503,33655:12504,33656:12505,33657:12506,33658:12507,33659:12508,33660:12509,33661:12510,33662:12511,33664:12512,33665:12513,33666:12514,33667:12515,33668:12516,33669:12517,33670:12518,33671:12519,33672:12520,33673:12521,33674:12522,33675:12523,33676:12524,33677:12525,33678:12526,33679:12527,33680:12528,33681:12529,33682:12530,33683:12531,33684:12532,33685:12533,33686:12534,33695:913,33696:914,33697:915,33698:916,33699:917,33700:918,33701:919,33702:920,33703:921,33704:922,33705:923,33706:924,33707:925,33708:926,33709:927,33710:928,33711:929,33712:931,33713:932,33714:933,33715:934,33716:935,33717:936,33718:937,33727:945,33728:946,33729:947,33730:948,33731:949,33732:950,33733:951,33734:952,33735:953,33736:954,33737:955,33738:956,33739:957,33740:958,33741:959,33742:960,33743:961,33744:963,33745:964,33746:965,33747:966,33748:967,33749:968,33750:969,33856:1040,33857:1041,33858:1042,33859:1043,33860:1044,33861:1045,33862:1025,33863:1046,33864:1047,33865:1048,33866:1049,33867:1050,33868:1051,33869:1052,33870:1053,33871:1054,33872:1055,33873:1056,33874:1057,33875:1058,33876:1059,33877:1060,33878:1061,33879:1062,33880:1063,33881:1064,33882:1065,33883:1066,33884:1067,33885:1068,33886:1069,33887:1070,33888:1071,33904:1072,33905:1073,33906:1074,33907:1075,33908:1076,33909:1077,33910:1105,33911:1078,33912:1079,33913:1080,33914:1081,33915:1082,33916:1083,33917:1084,33918:1085,33920:1086,33921:1087,33922:1088,33923:1089,33924:1090,33925:1091,33926:1092,33927:1093,33928:1094,33929:1095,33930:1096,33931:1097,33932:1098,33933:1099,33934:1100,33935:1101,33936:1102,33937:1103,33951:9472,33952:9474,33953:9484,33954:9488,33955:9496,33956:9492,33957:9500,33958:9516,33959:9508,33960:9524,33961:9532,33962:9473,33963:9475,33964:9487,33965:9491,33966:9499,33967:9495,33968:9507,33969:9523,33970:9515,33971:9531,33972:9547,33973:9504,33974:9519,33975:9512,33976:9527,33977:9535,33978:9501,33979:9520,33980:9509,33981:9528,33982:9538,34975:20124,34976:21782,34977:23043,34978:38463,34979:21696,34980:24859,34981:25384,34982:23030,34983:36898,34984:33909,34985:33564,34986:31312,34987:24746,34988:25569,34989:28197,34990:26093,34991:33894,34992:33446,34993:39925,34994:26771,34995:22311,34996:26017,34997:25201,34998:23451,34999:22992,35e3:34427,35001:39156,35002:32098,35003:32190,35004:39822,35005:25110,35006:31903,35007:34999,35008:23433,35009:24245,35010:25353,35011:26263,35012:26696,35013:38343,35014:38797,35015:26447,35016:20197,35017:20234,35018:20301,35019:20381,35020:20553,35021:22258,35022:22839,35023:22996,35024:23041,35025:23561,35026:24799,35027:24847,35028:24944,35029:26131,35030:26885,35031:28858,35032:30031,35033:30064,35034:31227,35035:32173,35036:32239,35037:32963,35038:33806,35039:34915,35040:35586,35041:36949,35042:36986,35043:21307,35044:20117,35045:20133,35046:22495,35047:32946,35048:37057,35049:30959,35050:19968,35051:22769,35052:28322,35053:36920,35054:31282,35055:33576,35056:33419,35057:39983,35058:20801,35059:21360,35060:21693,35061:21729,35062:22240,35063:23035,35064:24341,35065:39154,35066:28139,35067:32996,35068:34093,35136:38498,35137:38512,35138:38560,35139:38907,35140:21515,35141:21491,35142:23431,35143:28879,35144:32701,35145:36802,35146:38632,35147:21359,35148:40284,35149:31418,35150:19985,35151:30867,35152:33276,35153:28198,35154:22040,35155:21764,35156:27421,35157:34074,35158:39995,35159:23013,35160:21417,35161:28006,35162:29916,35163:38287,35164:22082,35165:20113,35166:36939,35167:38642,35168:33615,35169:39180,35170:21473,35171:21942,35172:23344,35173:24433,35174:26144,35175:26355,35176:26628,35177:27704,35178:27891,35179:27945,35180:29787,35181:30408,35182:31310,35183:38964,35184:33521,35185:34907,35186:35424,35187:37613,35188:28082,35189:30123,35190:30410,35191:39365,35192:24742,35193:35585,35194:36234,35195:38322,35196:27022,35197:21421,35198:20870,35200:22290,35201:22576,35202:22852,35203:23476,35204:24310,35205:24616,35206:25513,35207:25588,35208:27839,35209:28436,35210:28814,35211:28948,35212:29017,35213:29141,35214:29503,35215:32257,35216:33398,35217:33489,35218:34199,35219:36960,35220:37467,35221:40219,35222:22633,35223:26044,35224:27738,35225:29989,35226:20985,35227:22830,35228:22885,35229:24448,35230:24540,35231:25276,35232:26106,35233:27178,35234:27431,35235:27572,35236:29579,35237:32705,35238:35158,35239:40236,35240:40206,35241:40644,35242:23713,35243:27798,35244:33659,35245:20740,35246:23627,35247:25014,35248:33222,35249:26742,35250:29281,35251:20057,35252:20474,35253:21368,35254:24681,35255:28201,35256:31311,35257:38899,35258:19979,35259:21270,35260:20206,35261:20309,35262:20285,35263:20385,35264:20339,35265:21152,35266:21487,35267:22025,35268:22799,35269:23233,35270:23478,35271:23521,35272:31185,35273:26247,35274:26524,35275:26550,35276:27468,35277:27827,35278:28779,35279:29634,35280:31117,35281:31166,35282:31292,35283:31623,35284:33457,35285:33499,35286:33540,35287:33655,35288:33775,35289:33747,35290:34662,35291:35506,35292:22057,35293:36008,35294:36838,35295:36942,35296:38686,35297:34442,35298:20420,35299:23784,35300:25105,35301:29273,35302:30011,35303:33253,35304:33469,35305:34558,35306:36032,35307:38597,35308:39187,35309:39381,35310:20171,35311:20250,35312:35299,35313:22238,35314:22602,35315:22730,35316:24315,35317:24555,35318:24618,35319:24724,35320:24674,35321:25040,35322:25106,35323:25296,35324:25913,35392:39745,35393:26214,35394:26800,35395:28023,35396:28784,35397:30028,35398:30342,35399:32117,35400:33445,35401:34809,35402:38283,35403:38542,35404:35997,35405:20977,35406:21182,35407:22806,35408:21683,35409:23475,35410:23830,35411:24936,35412:27010,35413:28079,35414:30861,35415:33995,35416:34903,35417:35442,35418:37799,35419:39608,35420:28012,35421:39336,35422:34521,35423:22435,35424:26623,35425:34510,35426:37390,35427:21123,35428:22151,35429:21508,35430:24275,35431:25313,35432:25785,35433:26684,35434:26680,35435:27579,35436:29554,35437:30906,35438:31339,35439:35226,35440:35282,35441:36203,35442:36611,35443:37101,35444:38307,35445:38548,35446:38761,35447:23398,35448:23731,35449:27005,35450:38989,35451:38990,35452:25499,35453:31520,35454:27179,35456:27263,35457:26806,35458:39949,35459:28511,35460:21106,35461:21917,35462:24688,35463:25324,35464:27963,35465:28167,35466:28369,35467:33883,35468:35088,35469:36676,35470:19988,35471:39993,35472:21494,35473:26907,35474:27194,35475:38788,35476:26666,35477:20828,35478:31427,35479:33970,35480:37340,35481:37772,35482:22107,35483:40232,35484:26658,35485:33541,35486:33841,35487:31909,35488:21e3,35489:33477,35490:29926,35491:20094,35492:20355,35493:20896,35494:23506,35495:21002,35496:21208,35497:21223,35498:24059,35499:21914,35500:22570,35501:23014,35502:23436,35503:23448,35504:23515,35505:24178,35506:24185,35507:24739,35508:24863,35509:24931,35510:25022,35511:25563,35512:25954,35513:26577,35514:26707,35515:26874,35516:27454,35517:27475,35518:27735,35519:28450,35520:28567,35521:28485,35522:29872,35523:29976,35524:30435,35525:30475,35526:31487,35527:31649,35528:31777,35529:32233,35530:32566,35531:32752,35532:32925,35533:33382,35534:33694,35535:35251,35536:35532,35537:36011,35538:36996,35539:37969,35540:38291,35541:38289,35542:38306,35543:38501,35544:38867,35545:39208,35546:33304,35547:20024,35548:21547,35549:23736,35550:24012,35551:29609,35552:30284,35553:30524,35554:23721,35555:32747,35556:36107,35557:38593,35558:38929,35559:38996,35560:39e3,35561:20225,35562:20238,35563:21361,35564:21916,35565:22120,35566:22522,35567:22855,35568:23305,35569:23492,35570:23696,35571:24076,35572:24190,35573:24524,35574:25582,35575:26426,35576:26071,35577:26082,35578:26399,35579:26827,35580:26820,35648:27231,35649:24112,35650:27589,35651:27671,35652:27773,35653:30079,35654:31048,35655:23395,35656:31232,35657:32e3,35658:24509,35659:35215,35660:35352,35661:36020,35662:36215,35663:36556,35664:36637,35665:39138,35666:39438,35667:39740,35668:20096,35669:20605,35670:20736,35671:22931,35672:23452,35673:25135,35674:25216,35675:25836,35676:27450,35677:29344,35678:30097,35679:31047,35680:32681,35681:34811,35682:35516,35683:35696,35684:25516,35685:33738,35686:38816,35687:21513,35688:21507,35689:21931,35690:26708,35691:27224,35692:35440,35693:30759,35694:26485,35695:40653,35696:21364,35697:23458,35698:33050,35699:34384,35700:36870,35701:19992,35702:20037,35703:20167,35704:20241,35705:21450,35706:21560,35707:23470,35708:24339,35709:24613,35710:25937,35712:26429,35713:27714,35714:27762,35715:27875,35716:28792,35717:29699,35718:31350,35719:31406,35720:31496,35721:32026,35722:31998,35723:32102,35724:26087,35725:29275,35726:21435,35727:23621,35728:24040,35729:25298,35730:25312,35731:25369,35732:28192,35733:34394,35734:35377,35735:36317,35736:37624,35737:28417,35738:31142,35739:39770,35740:20136,35741:20139,35742:20140,35743:20379,35744:20384,35745:20689,35746:20807,35747:31478,35748:20849,35749:20982,35750:21332,35751:21281,35752:21375,35753:21483,35754:21932,35755:22659,35756:23777,35757:24375,35758:24394,35759:24623,35760:24656,35761:24685,35762:25375,35763:25945,35764:27211,35765:27841,35766:29378,35767:29421,35768:30703,35769:33016,35770:33029,35771:33288,35772:34126,35773:37111,35774:37857,35775:38911,35776:39255,35777:39514,35778:20208,35779:20957,35780:23597,35781:26241,35782:26989,35783:23616,35784:26354,35785:26997,35786:29577,35787:26704,35788:31873,35789:20677,35790:21220,35791:22343,35792:24062,35793:37670,35794:26020,35795:27427,35796:27453,35797:29748,35798:31105,35799:31165,35800:31563,35801:32202,35802:33465,35803:33740,35804:34943,35805:35167,35806:35641,35807:36817,35808:37329,35809:21535,35810:37504,35811:20061,35812:20534,35813:21477,35814:21306,35815:29399,35816:29590,35817:30697,35818:33510,35819:36527,35820:39366,35821:39368,35822:39378,35823:20855,35824:24858,35825:34398,35826:21936,35827:31354,35828:20598,35829:23507,35830:36935,35831:38533,35832:20018,35833:27355,35834:37351,35835:23633,35836:23624,35904:25496,35905:31391,35906:27795,35907:38772,35908:36705,35909:31402,35910:29066,35911:38536,35912:31874,35913:26647,35914:32368,35915:26705,35916:37740,35917:21234,35918:21531,35919:34219,35920:35347,35921:32676,35922:36557,35923:37089,35924:21350,35925:34952,35926:31041,35927:20418,35928:20670,35929:21009,35930:20804,35931:21843,35932:22317,35933:29674,35934:22411,35935:22865,35936:24418,35937:24452,35938:24693,35939:24950,35940:24935,35941:25001,35942:25522,35943:25658,35944:25964,35945:26223,35946:26690,35947:28179,35948:30054,35949:31293,35950:31995,35951:32076,35952:32153,35953:32331,35954:32619,35955:33550,35956:33610,35957:34509,35958:35336,35959:35427,35960:35686,35961:36605,35962:38938,35963:40335,35964:33464,35965:36814,35966:39912,35968:21127,35969:25119,35970:25731,35971:28608,35972:38553,35973:26689,35974:20625,35975:27424,35976:27770,35977:28500,35978:31348,35979:32080,35980:34880,35981:35363,35982:26376,35983:20214,35984:20537,35985:20518,35986:20581,35987:20860,35988:21048,35989:21091,35990:21927,35991:22287,35992:22533,35993:23244,35994:24314,35995:25010,35996:25080,35997:25331,35998:25458,35999:26908,36e3:27177,36001:29309,36002:29356,36003:29486,36004:30740,36005:30831,36006:32121,36007:30476,36008:32937,36009:35211,36010:35609,36011:36066,36012:36562,36013:36963,36014:37749,36015:38522,36016:38997,36017:39443,36018:40568,36019:20803,36020:21407,36021:21427,36022:24187,36023:24358,36024:28187,36025:28304,36026:29572,36027:29694,36028:32067,36029:33335,36030:35328,36031:35578,36032:38480,36033:20046,36034:20491,36035:21476,36036:21628,36037:22266,36038:22993,36039:23396,36040:24049,36041:24235,36042:24359,36043:25144,36044:25925,36045:26543,36046:28246,36047:29392,36048:31946,36049:34996,36050:32929,36051:32993,36052:33776,36053:34382,36054:35463,36055:36328,36056:37431,36057:38599,36058:39015,36059:40723,36060:20116,36061:20114,36062:20237,36063:21320,36064:21577,36065:21566,36066:23087,36067:24460,36068:24481,36069:24735,36070:26791,36071:27278,36072:29786,36073:30849,36074:35486,36075:35492,36076:35703,36077:37264,36078:20062,36079:39881,36080:20132,36081:20348,36082:20399,36083:20505,36084:20502,36085:20809,36086:20844,36087:21151,36088:21177,36089:21246,36090:21402,36091:21475,36092:21521,36160:21518,36161:21897,36162:22353,36163:22434,36164:22909,36165:23380,36166:23389,36167:23439,36168:24037,36169:24039,36170:24055,36171:24184,36172:24195,36173:24218,36174:24247,36175:24344,36176:24658,36177:24908,36178:25239,36179:25304,36180:25511,36181:25915,36182:26114,36183:26179,36184:26356,36185:26477,36186:26657,36187:26775,36188:27083,36189:27743,36190:27946,36191:28009,36192:28207,36193:28317,36194:30002,36195:30343,36196:30828,36197:31295,36198:31968,36199:32005,36200:32024,36201:32094,36202:32177,36203:32789,36204:32771,36205:32943,36206:32945,36207:33108,36208:33167,36209:33322,36210:33618,36211:34892,36212:34913,36213:35611,36214:36002,36215:36092,36216:37066,36217:37237,36218:37489,36219:30783,36220:37628,36221:38308,36222:38477,36224:38917,36225:39321,36226:39640,36227:40251,36228:21083,36229:21163,36230:21495,36231:21512,36232:22741,36233:25335,36234:28640,36235:35946,36236:36703,36237:40633,36238:20811,36239:21051,36240:21578,36241:22269,36242:31296,36243:37239,36244:40288,36245:40658,36246:29508,36247:28425,36248:33136,36249:29969,36250:24573,36251:24794,36252:39592,36253:29403,36254:36796,36255:27492,36256:38915,36257:20170,36258:22256,36259:22372,36260:22718,36261:23130,36262:24680,36263:25031,36264:26127,36265:26118,36266:26681,36267:26801,36268:28151,36269:30165,36270:32058,36271:33390,36272:39746,36273:20123,36274:20304,36275:21449,36276:21766,36277:23919,36278:24038,36279:24046,36280:26619,36281:27801,36282:29811,36283:30722,36284:35408,36285:37782,36286:35039,36287:22352,36288:24231,36289:25387,36290:20661,36291:20652,36292:20877,36293:26368,36294:21705,36295:22622,36296:22971,36297:23472,36298:24425,36299:25165,36300:25505,36301:26685,36302:27507,36303:28168,36304:28797,36305:37319,36306:29312,36307:30741,36308:30758,36309:31085,36310:25998,36311:32048,36312:33756,36313:35009,36314:36617,36315:38555,36316:21092,36317:22312,36318:26448,36319:32618,36320:36001,36321:20916,36322:22338,36323:38442,36324:22586,36325:27018,36326:32948,36327:21682,36328:23822,36329:22524,36330:30869,36331:40442,36332:20316,36333:21066,36334:21643,36335:25662,36336:26152,36337:26388,36338:26613,36339:31364,36340:31574,36341:32034,36342:37679,36343:26716,36344:39853,36345:31545,36346:21273,36347:20874,36348:21047,36416:23519,36417:25334,36418:25774,36419:25830,36420:26413,36421:27578,36422:34217,36423:38609,36424:30352,36425:39894,36426:25420,36427:37638,36428:39851,36429:30399,36430:26194,36431:19977,36432:20632,36433:21442,36434:23665,36435:24808,36436:25746,36437:25955,36438:26719,36439:29158,36440:29642,36441:29987,36442:31639,36443:32386,36444:34453,36445:35715,36446:36059,36447:37240,36448:39184,36449:26028,36450:26283,36451:27531,36452:20181,36453:20180,36454:20282,36455:20351,36456:21050,36457:21496,36458:21490,36459:21987,36460:22235,36461:22763,36462:22987,36463:22985,36464:23039,36465:23376,36466:23629,36467:24066,36468:24107,36469:24535,36470:24605,36471:25351,36472:25903,36473:23388,36474:26031,36475:26045,36476:26088,36477:26525,36478:27490,36480:27515,36481:27663,36482:29509,36483:31049,36484:31169,36485:31992,36486:32025,36487:32043,36488:32930,36489:33026,36490:33267,36491:35222,36492:35422,36493:35433,36494:35430,36495:35468,36496:35566,36497:36039,36498:36060,36499:38604,36500:39164,36501:27503,36502:20107,36503:20284,36504:20365,36505:20816,36506:23383,36507:23546,36508:24904,36509:25345,36510:26178,36511:27425,36512:28363,36513:27835,36514:29246,36515:29885,36516:30164,36517:30913,36518:31034,36519:32780,36520:32819,36521:33258,36522:33940,36523:36766,36524:27728,36525:40575,36526:24335,36527:35672,36528:40235,36529:31482,36530:36600,36531:23437,36532:38635,36533:19971,36534:21489,36535:22519,36536:22833,36537:23241,36538:23460,36539:24713,36540:28287,36541:28422,36542:30142,36543:36074,36544:23455,36545:34048,36546:31712,36547:20594,36548:26612,36549:33437,36550:23649,36551:34122,36552:32286,36553:33294,36554:20889,36555:23556,36556:25448,36557:36198,36558:26012,36559:29038,36560:31038,36561:32023,36562:32773,36563:35613,36564:36554,36565:36974,36566:34503,36567:37034,36568:20511,36569:21242,36570:23610,36571:26451,36572:28796,36573:29237,36574:37196,36575:37320,36576:37675,36577:33509,36578:23490,36579:24369,36580:24825,36581:20027,36582:21462,36583:23432,36584:25163,36585:26417,36586:27530,36587:29417,36588:29664,36589:31278,36590:33131,36591:36259,36592:37202,36593:39318,36594:20754,36595:21463,36596:21610,36597:23551,36598:25480,36599:27193,36600:32172,36601:38656,36602:22234,36603:21454,36604:21608,36672:23447,36673:23601,36674:24030,36675:20462,36676:24833,36677:25342,36678:27954,36679:31168,36680:31179,36681:32066,36682:32333,36683:32722,36684:33261,36685:33311,36686:33936,36687:34886,36688:35186,36689:35728,36690:36468,36691:36655,36692:36913,36693:37195,36694:37228,36695:38598,36696:37276,36697:20160,36698:20303,36699:20805,36700:21313,36701:24467,36702:25102,36703:26580,36704:27713,36705:28171,36706:29539,36707:32294,36708:37325,36709:37507,36710:21460,36711:22809,36712:23487,36713:28113,36714:31069,36715:32302,36716:31899,36717:22654,36718:29087,36719:20986,36720:34899,36721:36848,36722:20426,36723:23803,36724:26149,36725:30636,36726:31459,36727:33308,36728:39423,36729:20934,36730:24490,36731:26092,36732:26991,36733:27529,36734:28147,36736:28310,36737:28516,36738:30462,36739:32020,36740:24033,36741:36981,36742:37255,36743:38918,36744:20966,36745:21021,36746:25152,36747:26257,36748:26329,36749:28186,36750:24246,36751:32210,36752:32626,36753:26360,36754:34223,36755:34295,36756:35576,36757:21161,36758:21465,36759:22899,36760:24207,36761:24464,36762:24661,36763:37604,36764:38500,36765:20663,36766:20767,36767:21213,36768:21280,36769:21319,36770:21484,36771:21736,36772:21830,36773:21809,36774:22039,36775:22888,36776:22974,36777:23100,36778:23477,36779:23558,36780:23567,36781:23569,36782:23578,36783:24196,36784:24202,36785:24288,36786:24432,36787:25215,36788:25220,36789:25307,36790:25484,36791:25463,36792:26119,36793:26124,36794:26157,36795:26230,36796:26494,36797:26786,36798:27167,36799:27189,36800:27836,36801:28040,36802:28169,36803:28248,36804:28988,36805:28966,36806:29031,36807:30151,36808:30465,36809:30813,36810:30977,36811:31077,36812:31216,36813:31456,36814:31505,36815:31911,36816:32057,36817:32918,36818:33750,36819:33931,36820:34121,36821:34909,36822:35059,36823:35359,36824:35388,36825:35412,36826:35443,36827:35937,36828:36062,36829:37284,36830:37478,36831:37758,36832:37912,36833:38556,36834:38808,36835:19978,36836:19976,36837:19998,36838:20055,36839:20887,36840:21104,36841:22478,36842:22580,36843:22732,36844:23330,36845:24120,36846:24773,36847:25854,36848:26465,36849:26454,36850:27972,36851:29366,36852:30067,36853:31331,36854:33976,36855:35698,36856:37304,36857:37664,36858:22065,36859:22516,36860:39166,36928:25325,36929:26893,36930:27542,36931:29165,36932:32340,36933:32887,36934:33394,36935:35302,36936:39135,36937:34645,36938:36785,36939:23611,36940:20280,36941:20449,36942:20405,36943:21767,36944:23072,36945:23517,36946:23529,36947:24515,36948:24910,36949:25391,36950:26032,36951:26187,36952:26862,36953:27035,36954:28024,36955:28145,36956:30003,36957:30137,36958:30495,36959:31070,36960:31206,36961:32051,36962:33251,36963:33455,36964:34218,36965:35242,36966:35386,36967:36523,36968:36763,36969:36914,36970:37341,36971:38663,36972:20154,36973:20161,36974:20995,36975:22645,36976:22764,36977:23563,36978:29978,36979:23613,36980:33102,36981:35338,36982:36805,36983:38499,36984:38765,36985:31525,36986:35535,36987:38920,36988:37218,36989:22259,36990:21416,36992:36887,36993:21561,36994:22402,36995:24101,36996:25512,36997:27700,36998:28810,36999:30561,37e3:31883,37001:32736,37002:34928,37003:36930,37004:37204,37005:37648,37006:37656,37007:38543,37008:29790,37009:39620,37010:23815,37011:23913,37012:25968,37013:26530,37014:36264,37015:38619,37016:25454,37017:26441,37018:26905,37019:33733,37020:38935,37021:38592,37022:35070,37023:28548,37024:25722,37025:23544,37026:19990,37027:28716,37028:30045,37029:26159,37030:20932,37031:21046,37032:21218,37033:22995,37034:24449,37035:24615,37036:25104,37037:25919,37038:25972,37039:26143,37040:26228,37041:26866,37042:26646,37043:27491,37044:28165,37045:29298,37046:29983,37047:30427,37048:31934,37049:32854,37050:22768,37051:35069,37052:35199,37053:35488,37054:35475,37055:35531,37056:36893,37057:37266,37058:38738,37059:38745,37060:25993,37061:31246,37062:33030,37063:38587,37064:24109,37065:24796,37066:25114,37067:26021,37068:26132,37069:26512,37070:30707,37071:31309,37072:31821,37073:32318,37074:33034,37075:36012,37076:36196,37077:36321,37078:36447,37079:30889,37080:20999,37081:25305,37082:25509,37083:25666,37084:25240,37085:35373,37086:31363,37087:31680,37088:35500,37089:38634,37090:32118,37091:33292,37092:34633,37093:20185,37094:20808,37095:21315,37096:21344,37097:23459,37098:23554,37099:23574,37100:24029,37101:25126,37102:25159,37103:25776,37104:26643,37105:26676,37106:27849,37107:27973,37108:27927,37109:26579,37110:28508,37111:29006,37112:29053,37113:26059,37114:31359,37115:31661,37116:32218,37184:32330,37185:32680,37186:33146,37187:33307,37188:33337,37189:34214,37190:35438,37191:36046,37192:36341,37193:36984,37194:36983,37195:37549,37196:37521,37197:38275,37198:39854,37199:21069,37200:21892,37201:28472,37202:28982,37203:20840,37204:31109,37205:32341,37206:33203,37207:31950,37208:22092,37209:22609,37210:23720,37211:25514,37212:26366,37213:26365,37214:26970,37215:29401,37216:30095,37217:30094,37218:30990,37219:31062,37220:31199,37221:31895,37222:32032,37223:32068,37224:34311,37225:35380,37226:38459,37227:36961,37228:40736,37229:20711,37230:21109,37231:21452,37232:21474,37233:20489,37234:21930,37235:22766,37236:22863,37237:29245,37238:23435,37239:23652,37240:21277,37241:24803,37242:24819,37243:25436,37244:25475,37245:25407,37246:25531,37248:25805,37249:26089,37250:26361,37251:24035,37252:27085,37253:27133,37254:28437,37255:29157,37256:20105,37257:30185,37258:30456,37259:31379,37260:31967,37261:32207,37262:32156,37263:32865,37264:33609,37265:33624,37266:33900,37267:33980,37268:34299,37269:35013,37270:36208,37271:36865,37272:36973,37273:37783,37274:38684,37275:39442,37276:20687,37277:22679,37278:24974,37279:33235,37280:34101,37281:36104,37282:36896,37283:20419,37284:20596,37285:21063,37286:21363,37287:24687,37288:25417,37289:26463,37290:28204,37291:36275,37292:36895,37293:20439,37294:23646,37295:36042,37296:26063,37297:32154,37298:21330,37299:34966,37300:20854,37301:25539,37302:23384,37303:23403,37304:23562,37305:25613,37306:26449,37307:36956,37308:20182,37309:22810,37310:22826,37311:27760,37312:35409,37313:21822,37314:22549,37315:22949,37316:24816,37317:25171,37318:26561,37319:33333,37320:26965,37321:38464,37322:39364,37323:39464,37324:20307,37325:22534,37326:23550,37327:32784,37328:23729,37329:24111,37330:24453,37331:24608,37332:24907,37333:25140,37334:26367,37335:27888,37336:28382,37337:32974,37338:33151,37339:33492,37340:34955,37341:36024,37342:36864,37343:36910,37344:38538,37345:40667,37346:39899,37347:20195,37348:21488,37349:22823,37350:31532,37351:37261,37352:38988,37353:40441,37354:28381,37355:28711,37356:21331,37357:21828,37358:23429,37359:25176,37360:25246,37361:25299,37362:27810,37363:28655,37364:29730,37365:35351,37366:37944,37367:28609,37368:35582,37369:33592,37370:20967,37371:34552,37372:21482,37440:21481,37441:20294,37442:36948,37443:36784,37444:22890,37445:33073,37446:24061,37447:31466,37448:36799,37449:26842,37450:35895,37451:29432,37452:40008,37453:27197,37454:35504,37455:20025,37456:21336,37457:22022,37458:22374,37459:25285,37460:25506,37461:26086,37462:27470,37463:28129,37464:28251,37465:28845,37466:30701,37467:31471,37468:31658,37469:32187,37470:32829,37471:32966,37472:34507,37473:35477,37474:37723,37475:22243,37476:22727,37477:24382,37478:26029,37479:26262,37480:27264,37481:27573,37482:30007,37483:35527,37484:20516,37485:30693,37486:22320,37487:24347,37488:24677,37489:26234,37490:27744,37491:30196,37492:31258,37493:32622,37494:33268,37495:34584,37496:36933,37497:39347,37498:31689,37499:30044,37500:31481,37501:31569,37502:33988,37504:36880,37505:31209,37506:31378,37507:33590,37508:23265,37509:30528,37510:20013,37511:20210,37512:23449,37513:24544,37514:25277,37515:26172,37516:26609,37517:27880,37518:34411,37519:34935,37520:35387,37521:37198,37522:37619,37523:39376,37524:27159,37525:28710,37526:29482,37527:33511,37528:33879,37529:36015,37530:19969,37531:20806,37532:20939,37533:21899,37534:23541,37535:24086,37536:24115,37537:24193,37538:24340,37539:24373,37540:24427,37541:24500,37542:25074,37543:25361,37544:26274,37545:26397,37546:28526,37547:29266,37548:30010,37549:30522,37550:32884,37551:33081,37552:33144,37553:34678,37554:35519,37555:35548,37556:36229,37557:36339,37558:37530,37559:38263,37560:38914,37561:40165,37562:21189,37563:25431,37564:30452,37565:26389,37566:27784,37567:29645,37568:36035,37569:37806,37570:38515,37571:27941,37572:22684,37573:26894,37574:27084,37575:36861,37576:37786,37577:30171,37578:36890,37579:22618,37580:26626,37581:25524,37582:27131,37583:20291,37584:28460,37585:26584,37586:36795,37587:34086,37588:32180,37589:37716,37590:26943,37591:28528,37592:22378,37593:22775,37594:23340,37595:32044,37596:29226,37597:21514,37598:37347,37599:40372,37600:20141,37601:20302,37602:20572,37603:20597,37604:21059,37605:35998,37606:21576,37607:22564,37608:23450,37609:24093,37610:24213,37611:24237,37612:24311,37613:24351,37614:24716,37615:25269,37616:25402,37617:25552,37618:26799,37619:27712,37620:30855,37621:31118,37622:31243,37623:32224,37624:33351,37625:35330,37626:35558,37627:36420,37628:36883,37696:37048,37697:37165,37698:37336,37699:40718,37700:27877,37701:25688,37702:25826,37703:25973,37704:28404,37705:30340,37706:31515,37707:36969,37708:37841,37709:28346,37710:21746,37711:24505,37712:25764,37713:36685,37714:36845,37715:37444,37716:20856,37717:22635,37718:22825,37719:23637,37720:24215,37721:28155,37722:32399,37723:29980,37724:36028,37725:36578,37726:39003,37727:28857,37728:20253,37729:27583,37730:28593,37731:3e4,37732:38651,37733:20814,37734:21520,37735:22581,37736:22615,37737:22956,37738:23648,37739:24466,37740:26007,37741:26460,37742:28193,37743:30331,37744:33759,37745:36077,37746:36884,37747:37117,37748:37709,37749:30757,37750:30778,37751:21162,37752:24230,37753:22303,37754:22900,37755:24594,37756:20498,37757:20826,37758:20908,37760:20941,37761:20992,37762:21776,37763:22612,37764:22616,37765:22871,37766:23445,37767:23798,37768:23947,37769:24764,37770:25237,37771:25645,37772:26481,37773:26691,37774:26812,37775:26847,37776:30423,37777:28120,37778:28271,37779:28059,37780:28783,37781:29128,37782:24403,37783:30168,37784:31095,37785:31561,37786:31572,37787:31570,37788:31958,37789:32113,37790:21040,37791:33891,37792:34153,37793:34276,37794:35342,37795:35588,37796:35910,37797:36367,37798:36867,37799:36879,37800:37913,37801:38518,37802:38957,37803:39472,37804:38360,37805:20685,37806:21205,37807:21516,37808:22530,37809:23566,37810:24999,37811:25758,37812:27934,37813:30643,37814:31461,37815:33012,37816:33796,37817:36947,37818:37509,37819:23776,37820:40199,37821:21311,37822:24471,37823:24499,37824:28060,37825:29305,37826:30563,37827:31167,37828:31716,37829:27602,37830:29420,37831:35501,37832:26627,37833:27233,37834:20984,37835:31361,37836:26932,37837:23626,37838:40182,37839:33515,37840:23493,37841:37193,37842:28702,37843:22136,37844:23663,37845:24775,37846:25958,37847:27788,37848:35930,37849:36929,37850:38931,37851:21585,37852:26311,37853:37389,37854:22856,37855:37027,37856:20869,37857:20045,37858:20970,37859:34201,37860:35598,37861:28760,37862:25466,37863:37707,37864:26978,37865:39348,37866:32260,37867:30071,37868:21335,37869:26976,37870:36575,37871:38627,37872:27741,37873:20108,37874:23612,37875:24336,37876:36841,37877:21250,37878:36049,37879:32905,37880:34425,37881:24319,37882:26085,37883:20083,37884:20837,37952:22914,37953:23615,37954:38894,37955:20219,37956:22922,37957:24525,37958:35469,37959:28641,37960:31152,37961:31074,37962:23527,37963:33905,37964:29483,37965:29105,37966:24180,37967:24565,37968:25467,37969:25754,37970:29123,37971:31896,37972:20035,37973:24316,37974:20043,37975:22492,37976:22178,37977:24745,37978:28611,37979:32013,37980:33021,37981:33075,37982:33215,37983:36786,37984:35223,37985:34468,37986:24052,37987:25226,37988:25773,37989:35207,37990:26487,37991:27874,37992:27966,37993:29750,37994:30772,37995:23110,37996:32629,37997:33453,37998:39340,37999:20467,38e3:24259,38001:25309,38002:25490,38003:25943,38004:26479,38005:30403,38006:29260,38007:32972,38008:32954,38009:36649,38010:37197,38011:20493,38012:22521,38013:23186,38014:26757,38016:26995,38017:29028,38018:29437,38019:36023,38020:22770,38021:36064,38022:38506,38023:36889,38024:34687,38025:31204,38026:30695,38027:33833,38028:20271,38029:21093,38030:21338,38031:25293,38032:26575,38033:27850,38034:30333,38035:31636,38036:31893,38037:33334,38038:34180,38039:36843,38040:26333,38041:28448,38042:29190,38043:32283,38044:33707,38045:39361,38046:40614,38047:20989,38048:31665,38049:30834,38050:31672,38051:32903,38052:31560,38053:27368,38054:24161,38055:32908,38056:30033,38057:30048,38058:20843,38059:37474,38060:28300,38061:30330,38062:37271,38063:39658,38064:20240,38065:32624,38066:25244,38067:31567,38068:38309,38069:40169,38070:22138,38071:22617,38072:34532,38073:38588,38074:20276,38075:21028,38076:21322,38077:21453,38078:21467,38079:24070,38080:25644,38081:26001,38082:26495,38083:27710,38084:27726,38085:29256,38086:29359,38087:29677,38088:30036,38089:32321,38090:33324,38091:34281,38092:36009,38093:31684,38094:37318,38095:29033,38096:38930,38097:39151,38098:25405,38099:26217,38100:30058,38101:30436,38102:30928,38103:34115,38104:34542,38105:21290,38106:21329,38107:21542,38108:22915,38109:24199,38110:24444,38111:24754,38112:25161,38113:25209,38114:25259,38115:26e3,38116:27604,38117:27852,38118:30130,38119:30382,38120:30865,38121:31192,38122:32203,38123:32631,38124:32933,38125:34987,38126:35513,38127:36027,38128:36991,38129:38750,38130:39131,38131:27147,38132:31800,38133:20633,38134:23614,38135:24494,38136:26503,38137:27608,38138:29749,38139:30473,38140:32654,38208:40763,38209:26570,38210:31255,38211:21305,38212:30091,38213:39661,38214:24422,38215:33181,38216:33777,38217:32920,38218:24380,38219:24517,38220:30050,38221:31558,38222:36924,38223:26727,38224:23019,38225:23195,38226:32016,38227:30334,38228:35628,38229:20469,38230:24426,38231:27161,38232:27703,38233:28418,38234:29922,38235:31080,38236:34920,38237:35413,38238:35961,38239:24287,38240:25551,38241:30149,38242:31186,38243:33495,38244:37672,38245:37618,38246:33948,38247:34541,38248:39981,38249:21697,38250:24428,38251:25996,38252:27996,38253:28693,38254:36007,38255:36051,38256:38971,38257:25935,38258:29942,38259:19981,38260:20184,38261:22496,38262:22827,38263:23142,38264:23500,38265:20904,38266:24067,38267:24220,38268:24598,38269:25206,38270:25975,38272:26023,38273:26222,38274:28014,38275:29238,38276:31526,38277:33104,38278:33178,38279:33433,38280:35676,38281:36e3,38282:36070,38283:36212,38284:38428,38285:38468,38286:20398,38287:25771,38288:27494,38289:33310,38290:33889,38291:34154,38292:37096,38293:23553,38294:26963,38295:39080,38296:33914,38297:34135,38298:20239,38299:21103,38300:24489,38301:24133,38302:26381,38303:31119,38304:33145,38305:35079,38306:35206,38307:28149,38308:24343,38309:25173,38310:27832,38311:20175,38312:29289,38313:39826,38314:20998,38315:21563,38316:22132,38317:22707,38318:24996,38319:25198,38320:28954,38321:22894,38322:31881,38323:31966,38324:32027,38325:38640,38326:25991,38327:32862,38328:19993,38329:20341,38330:20853,38331:22592,38332:24163,38333:24179,38334:24330,38335:26564,38336:20006,38337:34109,38338:38281,38339:38491,38340:31859,38341:38913,38342:20731,38343:22721,38344:30294,38345:30887,38346:21029,38347:30629,38348:34065,38349:31622,38350:20559,38351:22793,38352:29255,38353:31687,38354:32232,38355:36794,38356:36820,38357:36941,38358:20415,38359:21193,38360:23081,38361:24321,38362:38829,38363:20445,38364:33303,38365:37610,38366:22275,38367:25429,38368:27497,38369:29995,38370:35036,38371:36628,38372:31298,38373:21215,38374:22675,38375:24917,38376:25098,38377:26286,38378:27597,38379:31807,38380:33769,38381:20515,38382:20472,38383:21253,38384:21574,38385:22577,38386:22857,38387:23453,38388:23792,38389:23791,38390:23849,38391:24214,38392:25265,38393:25447,38394:25918,38395:26041,38396:26379,38464:27861,38465:27873,38466:28921,38467:30770,38468:32299,38469:32990,38470:33459,38471:33804,38472:34028,38473:34562,38474:35090,38475:35370,38476:35914,38477:37030,38478:37586,38479:39165,38480:40179,38481:40300,38482:20047,38483:20129,38484:20621,38485:21078,38486:22346,38487:22952,38488:24125,38489:24536,38490:24537,38491:25151,38492:26292,38493:26395,38494:26576,38495:26834,38496:20882,38497:32033,38498:32938,38499:33192,38500:35584,38501:35980,38502:36031,38503:37502,38504:38450,38505:21536,38506:38956,38507:21271,38508:20693,38509:21340,38510:22696,38511:25778,38512:26420,38513:29287,38514:30566,38515:31302,38516:37350,38517:21187,38518:27809,38519:27526,38520:22528,38521:24140,38522:22868,38523:26412,38524:32763,38525:20961,38526:30406,38528:25705,38529:30952,38530:39764,38531:40635,38532:22475,38533:22969,38534:26151,38535:26522,38536:27598,38537:21737,38538:27097,38539:24149,38540:33180,38541:26517,38542:39850,38543:26622,38544:40018,38545:26717,38546:20134,38547:20451,38548:21448,38549:25273,38550:26411,38551:27819,38552:36804,38553:20397,38554:32365,38555:40639,38556:19975,38557:24930,38558:28288,38559:28459,38560:34067,38561:21619,38562:26410,38563:39749,38564:24051,38565:31637,38566:23724,38567:23494,38568:34588,38569:28234,38570:34001,38571:31252,38572:33032,38573:22937,38574:31885,38575:27665,38576:30496,38577:21209,38578:22818,38579:28961,38580:29279,38581:30683,38582:38695,38583:40289,38584:26891,38585:23167,38586:23064,38587:20901,38588:21517,38589:21629,38590:26126,38591:30431,38592:36855,38593:37528,38594:40180,38595:23018,38596:29277,38597:28357,38598:20813,38599:26825,38600:32191,38601:32236,38602:38754,38603:40634,38604:25720,38605:27169,38606:33538,38607:22916,38608:23391,38609:27611,38610:29467,38611:30450,38612:32178,38613:32791,38614:33945,38615:20786,38616:26408,38617:40665,38618:30446,38619:26466,38620:21247,38621:39173,38622:23588,38623:25147,38624:31870,38625:36016,38626:21839,38627:24758,38628:32011,38629:38272,38630:21249,38631:20063,38632:20918,38633:22812,38634:29242,38635:32822,38636:37326,38637:24357,38638:30690,38639:21380,38640:24441,38641:32004,38642:34220,38643:35379,38644:36493,38645:38742,38646:26611,38647:34222,38648:37971,38649:24841,38650:24840,38651:27833,38652:30290,38720:35565,38721:36664,38722:21807,38723:20305,38724:20778,38725:21191,38726:21451,38727:23461,38728:24189,38729:24736,38730:24962,38731:25558,38732:26377,38733:26586,38734:28263,38735:28044,38736:29494,38737:29495,38738:30001,38739:31056,38740:35029,38741:35480,38742:36938,38743:37009,38744:37109,38745:38596,38746:34701,38747:22805,38748:20104,38749:20313,38750:19982,38751:35465,38752:36671,38753:38928,38754:20653,38755:24188,38756:22934,38757:23481,38758:24248,38759:25562,38760:25594,38761:25793,38762:26332,38763:26954,38764:27096,38765:27915,38766:28342,38767:29076,38768:29992,38769:31407,38770:32650,38771:32768,38772:33865,38773:33993,38774:35201,38775:35617,38776:36362,38777:36965,38778:38525,38779:39178,38780:24958,38781:25233,38782:27442,38784:27779,38785:28020,38786:32716,38787:32764,38788:28096,38789:32645,38790:34746,38791:35064,38792:26469,38793:33713,38794:38972,38795:38647,38796:27931,38797:32097,38798:33853,38799:37226,38800:20081,38801:21365,38802:23888,38803:27396,38804:28651,38805:34253,38806:34349,38807:35239,38808:21033,38809:21519,38810:23653,38811:26446,38812:26792,38813:29702,38814:29827,38815:30178,38816:35023,38817:35041,38818:37324,38819:38626,38820:38520,38821:24459,38822:29575,38823:31435,38824:33870,38825:25504,38826:30053,38827:21129,38828:27969,38829:28316,38830:29705,38831:30041,38832:30827,38833:31890,38834:38534,38835:31452,38836:40845,38837:20406,38838:24942,38839:26053,38840:34396,38841:20102,38842:20142,38843:20698,38844:20001,38845:20940,38846:23534,38847:26009,38848:26753,38849:28092,38850:29471,38851:30274,38852:30637,38853:31260,38854:31975,38855:33391,38856:35538,38857:36988,38858:37327,38859:38517,38860:38936,38861:21147,38862:32209,38863:20523,38864:21400,38865:26519,38866:28107,38867:29136,38868:29747,38869:33256,38870:36650,38871:38563,38872:40023,38873:40607,38874:29792,38875:22593,38876:28057,38877:32047,38878:39006,38879:20196,38880:20278,38881:20363,38882:20919,38883:21169,38884:23994,38885:24604,38886:29618,38887:31036,38888:33491,38889:37428,38890:38583,38891:38646,38892:38666,38893:40599,38894:40802,38895:26278,38896:27508,38897:21015,38898:21155,38899:28872,38900:35010,38901:24265,38902:24651,38903:24976,38904:28451,38905:29001,38906:31806,38907:32244,38908:32879,38976:34030,38977:36899,38978:37676,38979:21570,38980:39791,38981:27347,38982:28809,38983:36034,38984:36335,38985:38706,38986:21172,38987:23105,38988:24266,38989:24324,38990:26391,38991:27004,38992:27028,38993:28010,38994:28431,38995:29282,38996:29436,38997:31725,38998:32769,38999:32894,39e3:34635,39001:37070,39002:20845,39003:40595,39004:31108,39005:32907,39006:37682,39007:35542,39008:20525,39009:21644,39010:35441,39011:27498,39012:36036,39013:33031,39014:24785,39015:26528,39016:40434,39017:20121,39018:20120,39019:39952,39020:35435,39021:34241,39022:34152,39023:26880,39024:28286,39025:30871,39026:33109,39071:24332,39072:19984,39073:19989,39074:20010,39075:20017,39076:20022,39077:20028,39078:20031,39079:20034,39080:20054,39081:20056,39082:20098,39083:20101,39084:35947,39085:20106,39086:33298,39087:24333,39088:20110,39089:20126,39090:20127,39091:20128,39092:20130,39093:20144,39094:20147,39095:20150,39096:20174,39097:20173,39098:20164,39099:20166,39100:20162,39101:20183,39102:20190,39103:20205,39104:20191,39105:20215,39106:20233,39107:20314,39108:20272,39109:20315,39110:20317,39111:20311,39112:20295,39113:20342,39114:20360,39115:20367,39116:20376,39117:20347,39118:20329,39119:20336,39120:20369,39121:20335,39122:20358,39123:20374,39124:20760,39125:20436,39126:20447,39127:20430,39128:20440,39129:20443,39130:20433,39131:20442,39132:20432,39133:20452,39134:20453,39135:20506,39136:20520,39137:20500,39138:20522,39139:20517,39140:20485,39141:20252,39142:20470,39143:20513,39144:20521,39145:20524,39146:20478,39147:20463,39148:20497,39149:20486,39150:20547,39151:20551,39152:26371,39153:20565,39154:20560,39155:20552,39156:20570,39157:20566,39158:20588,39159:20600,39160:20608,39161:20634,39162:20613,39163:20660,39164:20658,39232:20681,39233:20682,39234:20659,39235:20674,39236:20694,39237:20702,39238:20709,39239:20717,39240:20707,39241:20718,39242:20729,39243:20725,39244:20745,39245:20737,39246:20738,39247:20758,39248:20757,39249:20756,39250:20762,39251:20769,39252:20794,39253:20791,39254:20796,39255:20795,39256:20799,39257:20800,39258:20818,39259:20812,39260:20820,39261:20834,39262:31480,39263:20841,39264:20842,39265:20846,39266:20864,39267:20866,39268:22232,39269:20876,39270:20873,39271:20879,39272:20881,39273:20883,39274:20885,39275:20886,39276:20900,39277:20902,39278:20898,39279:20905,39280:20906,39281:20907,39282:20915,39283:20913,39284:20914,39285:20912,39286:20917,39287:20925,39288:20933,39289:20937,39290:20955,39291:20960,39292:34389,39293:20969,39294:20973,39296:20976,39297:20981,39298:20990,39299:20996,39300:21003,39301:21012,39302:21006,39303:21031,39304:21034,39305:21038,39306:21043,39307:21049,39308:21071,39309:21060,39310:21067,39311:21068,39312:21086,39313:21076,39314:21098,39315:21108,39316:21097,39317:21107,39318:21119,39319:21117,39320:21133,39321:21140,39322:21138,39323:21105,39324:21128,39325:21137,39326:36776,39327:36775,39328:21164,39329:21165,39330:21180,39331:21173,39332:21185,39333:21197,39334:21207,39335:21214,39336:21219,39337:21222,39338:39149,39339:21216,39340:21235,39341:21237,39342:21240,39343:21241,39344:21254,39345:21256,39346:30008,39347:21261,39348:21264,39349:21263,39350:21269,39351:21274,39352:21283,39353:21295,39354:21297,39355:21299,39356:21304,39357:21312,39358:21318,39359:21317,39360:19991,39361:21321,39362:21325,39363:20950,39364:21342,39365:21353,39366:21358,39367:22808,39368:21371,39369:21367,39370:21378,39371:21398,39372:21408,39373:21414,39374:21413,39375:21422,39376:21424,39377:21430,39378:21443,39379:31762,39380:38617,39381:21471,39382:26364,39383:29166,39384:21486,39385:21480,39386:21485,39387:21498,39388:21505,39389:21565,39390:21568,39391:21548,39392:21549,39393:21564,39394:21550,39395:21558,39396:21545,39397:21533,39398:21582,39399:21647,39400:21621,39401:21646,39402:21599,39403:21617,39404:21623,39405:21616,39406:21650,39407:21627,39408:21632,39409:21622,39410:21636,39411:21648,39412:21638,39413:21703,39414:21666,39415:21688,39416:21669,39417:21676,39418:21700,39419:21704,39420:21672,39488:21675,39489:21698,39490:21668,39491:21694,39492:21692,39493:21720,39494:21733,39495:21734,39496:21775,39497:21780,39498:21757,39499:21742,39500:21741,39501:21754,39502:21730,39503:21817,39504:21824,39505:21859,39506:21836,39507:21806,39508:21852,39509:21829,39510:21846,39511:21847,39512:21816,39513:21811,39514:21853,39515:21913,39516:21888,39517:21679,39518:21898,39519:21919,39520:21883,39521:21886,39522:21912,39523:21918,39524:21934,39525:21884,39526:21891,39527:21929,39528:21895,39529:21928,39530:21978,39531:21957,39532:21983,39533:21956,39534:21980,39535:21988,39536:21972,39537:22036,39538:22007,39539:22038,39540:22014,39541:22013,39542:22043,39543:22009,39544:22094,39545:22096,39546:29151,39547:22068,39548:22070,39549:22066,39550:22072,39552:22123,39553:22116,39554:22063,39555:22124,39556:22122,39557:22150,39558:22144,39559:22154,39560:22176,39561:22164,39562:22159,39563:22181,39564:22190,39565:22198,39566:22196,39567:22210,39568:22204,39569:22209,39570:22211,39571:22208,39572:22216,39573:22222,39574:22225,39575:22227,39576:22231,39577:22254,39578:22265,39579:22272,39580:22271,39581:22276,39582:22281,39583:22280,39584:22283,39585:22285,39586:22291,39587:22296,39588:22294,39589:21959,39590:22300,39591:22310,39592:22327,39593:22328,39594:22350,39595:22331,39596:22336,39597:22351,39598:22377,39599:22464,39600:22408,39601:22369,39602:22399,39603:22409,39604:22419,39605:22432,39606:22451,39607:22436,39608:22442,39609:22448,39610:22467,39611:22470,39612:22484,39613:22482,39614:22483,39615:22538,39616:22486,39617:22499,39618:22539,39619:22553,39620:22557,39621:22642,39622:22561,39623:22626,39624:22603,39625:22640,39626:27584,39627:22610,39628:22589,39629:22649,39630:22661,39631:22713,39632:22687,39633:22699,39634:22714,39635:22750,39636:22715,39637:22712,39638:22702,39639:22725,39640:22739,39641:22737,39642:22743,39643:22745,39644:22744,39645:22757,39646:22748,39647:22756,39648:22751,39649:22767,39650:22778,39651:22777,39652:22779,39653:22780,39654:22781,39655:22786,39656:22794,39657:22800,39658:22811,39659:26790,39660:22821,39661:22828,39662:22829,39663:22834,39664:22840,39665:22846,39666:31442,39667:22869,39668:22864,39669:22862,39670:22874,39671:22872,39672:22882,39673:22880,39674:22887,39675:22892,39676:22889,39744:22904,39745:22913,39746:22941,39747:20318,39748:20395,39749:22947,39750:22962,39751:22982,39752:23016,39753:23004,39754:22925,39755:23001,39756:23002,39757:23077,39758:23071,39759:23057,39760:23068,39761:23049,39762:23066,39763:23104,39764:23148,39765:23113,39766:23093,39767:23094,39768:23138,39769:23146,39770:23194,39771:23228,39772:23230,39773:23243,39774:23234,39775:23229,39776:23267,39777:23255,39778:23270,39779:23273,39780:23254,39781:23290,39782:23291,39783:23308,39784:23307,39785:23318,39786:23346,39787:23248,39788:23338,39789:23350,39790:23358,39791:23363,39792:23365,39793:23360,39794:23377,39795:23381,39796:23386,39797:23387,39798:23397,39799:23401,39800:23408,39801:23411,39802:23413,39803:23416,39804:25992,39805:23418,39806:23424,39808:23427,39809:23462,39810:23480,39811:23491,39812:23495,39813:23497,39814:23508,39815:23504,39816:23524,39817:23526,39818:23522,39819:23518,39820:23525,39821:23531,39822:23536,39823:23542,39824:23539,39825:23557,39826:23559,39827:23560,39828:23565,39829:23571,39830:23584,39831:23586,39832:23592,39833:23608,39834:23609,39835:23617,39836:23622,39837:23630,39838:23635,39839:23632,39840:23631,39841:23409,39842:23660,39843:23662,39844:20066,39845:23670,39846:23673,39847:23692,39848:23697,39849:23700,39850:22939,39851:23723,39852:23739,39853:23734,39854:23740,39855:23735,39856:23749,39857:23742,39858:23751,39859:23769,39860:23785,39861:23805,39862:23802,39863:23789,39864:23948,39865:23786,39866:23819,39867:23829,39868:23831,39869:23900,39870:23839,39871:23835,39872:23825,39873:23828,39874:23842,39875:23834,39876:23833,39877:23832,39878:23884,39879:23890,39880:23886,39881:23883,39882:23916,39883:23923,39884:23926,39885:23943,39886:23940,39887:23938,39888:23970,39889:23965,39890:23980,39891:23982,39892:23997,39893:23952,39894:23991,39895:23996,39896:24009,39897:24013,39898:24019,39899:24018,39900:24022,39901:24027,39902:24043,39903:24050,39904:24053,39905:24075,39906:24090,39907:24089,39908:24081,39909:24091,39910:24118,39911:24119,39912:24132,39913:24131,39914:24128,39915:24142,39916:24151,39917:24148,39918:24159,39919:24162,39920:24164,39921:24135,39922:24181,39923:24182,39924:24186,39925:40636,39926:24191,39927:24224,39928:24257,39929:24258,39930:24264,39931:24272,39932:24271,4e4:24278,40001:24291,40002:24285,40003:24282,40004:24283,40005:24290,40006:24289,40007:24296,40008:24297,40009:24300,40010:24305,40011:24307,40012:24304,40013:24308,40014:24312,40015:24318,40016:24323,40017:24329,40018:24413,40019:24412,40020:24331,40021:24337,40022:24342,40023:24361,40024:24365,40025:24376,40026:24385,40027:24392,40028:24396,40029:24398,40030:24367,40031:24401,40032:24406,40033:24407,40034:24409,40035:24417,40036:24429,40037:24435,40038:24439,40039:24451,40040:24450,40041:24447,40042:24458,40043:24456,40044:24465,40045:24455,40046:24478,40047:24473,40048:24472,40049:24480,40050:24488,40051:24493,40052:24508,40053:24534,40054:24571,40055:24548,40056:24568,40057:24561,40058:24541,40059:24755,40060:24575,40061:24609,40062:24672,40064:24601,40065:24592,40066:24617,40067:24590,40068:24625,40069:24603,40070:24597,40071:24619,40072:24614,40073:24591,40074:24634,40075:24666,40076:24641,40077:24682,40078:24695,40079:24671,40080:24650,40081:24646,40082:24653,40083:24675,40084:24643,40085:24676,40086:24642,40087:24684,40088:24683,40089:24665,40090:24705,40091:24717,40092:24807,40093:24707,40094:24730,40095:24708,40096:24731,40097:24726,40098:24727,40099:24722,40100:24743,40101:24715,40102:24801,40103:24760,40104:24800,40105:24787,40106:24756,40107:24560,40108:24765,40109:24774,40110:24757,40111:24792,40112:24909,40113:24853,40114:24838,40115:24822,40116:24823,40117:24832,40118:24820,40119:24826,40120:24835,40121:24865,40122:24827,40123:24817,40124:24845,40125:24846,40126:24903,40127:24894,40128:24872,40129:24871,40130:24906,40131:24895,40132:24892,40133:24876,40134:24884,40135:24893,40136:24898,40137:24900,40138:24947,40139:24951,40140:24920,40141:24921,40142:24922,40143:24939,40144:24948,40145:24943,40146:24933,40147:24945,40148:24927,40149:24925,40150:24915,40151:24949,40152:24985,40153:24982,40154:24967,40155:25004,40156:24980,40157:24986,40158:24970,40159:24977,40160:25003,40161:25006,40162:25036,40163:25034,40164:25033,40165:25079,40166:25032,40167:25027,40168:25030,40169:25018,40170:25035,40171:32633,40172:25037,40173:25062,40174:25059,40175:25078,40176:25082,40177:25076,40178:25087,40179:25085,40180:25084,40181:25086,40182:25088,40183:25096,40184:25097,40185:25101,40186:25100,40187:25108,40188:25115,40256:25118,40257:25121,40258:25130,40259:25134,40260:25136,40261:25138,40262:25139,40263:25153,40264:25166,40265:25182,40266:25187,40267:25179,40268:25184,40269:25192,40270:25212,40271:25218,40272:25225,40273:25214,40274:25234,40275:25235,40276:25238,40277:25300,40278:25219,40279:25236,40280:25303,40281:25297,40282:25275,40283:25295,40284:25343,40285:25286,40286:25812,40287:25288,40288:25308,40289:25292,40290:25290,40291:25282,40292:25287,40293:25243,40294:25289,40295:25356,40296:25326,40297:25329,40298:25383,40299:25346,40300:25352,40301:25327,40302:25333,40303:25424,40304:25406,40305:25421,40306:25628,40307:25423,40308:25494,40309:25486,40310:25472,40311:25515,40312:25462,40313:25507,40314:25487,40315:25481,40316:25503,40317:25525,40318:25451,40320:25449,40321:25534,40322:25577,40323:25536,40324:25542,40325:25571,40326:25545,40327:25554,40328:25590,40329:25540,40330:25622,40331:25652,40332:25606,40333:25619,40334:25638,40335:25654,40336:25885,40337:25623,40338:25640,40339:25615,40340:25703,40341:25711,40342:25718,40343:25678,40344:25898,40345:25749,40346:25747,40347:25765,40348:25769,40349:25736,40350:25788,40351:25818,40352:25810,40353:25797,40354:25799,40355:25787,40356:25816,40357:25794,40358:25841,40359:25831,40360:33289,40361:25824,40362:25825,40363:25260,40364:25827,40365:25839,40366:25900,40367:25846,40368:25844,40369:25842,40370:25850,40371:25856,40372:25853,40373:25880,40374:25884,40375:25861,40376:25892,40377:25891,40378:25899,40379:25908,40380:25909,40381:25911,40382:25910,40383:25912,40384:30027,40385:25928,40386:25942,40387:25941,40388:25933,40389:25944,40390:25950,40391:25949,40392:25970,40393:25976,40394:25986,40395:25987,40396:35722,40397:26011,40398:26015,40399:26027,40400:26039,40401:26051,40402:26054,40403:26049,40404:26052,40405:26060,40406:26066,40407:26075,40408:26073,40409:26080,40410:26081,40411:26097,40412:26482,40413:26122,40414:26115,40415:26107,40416:26483,40417:26165,40418:26166,40419:26164,40420:26140,40421:26191,40422:26180,40423:26185,40424:26177,40425:26206,40426:26205,40427:26212,40428:26215,40429:26216,40430:26207,40431:26210,40432:26224,40433:26243,40434:26248,40435:26254,40436:26249,40437:26244,40438:26264,40439:26269,40440:26305,40441:26297,40442:26313,40443:26302,40444:26300,40512:26308,40513:26296,40514:26326,40515:26330,40516:26336,40517:26175,40518:26342,40519:26345,40520:26352,40521:26357,40522:26359,40523:26383,40524:26390,40525:26398,40526:26406,40527:26407,40528:38712,40529:26414,40530:26431,40531:26422,40532:26433,40533:26424,40534:26423,40535:26438,40536:26462,40537:26464,40538:26457,40539:26467,40540:26468,40541:26505,40542:26480,40543:26537,40544:26492,40545:26474,40546:26508,40547:26507,40548:26534,40549:26529,40550:26501,40551:26551,40552:26607,40553:26548,40554:26604,40555:26547,40556:26601,40557:26552,40558:26596,40559:26590,40560:26589,40561:26594,40562:26606,40563:26553,40564:26574,40565:26566,40566:26599,40567:27292,40568:26654,40569:26694,40570:26665,40571:26688,40572:26701,40573:26674,40574:26702,40576:26803,40577:26667,40578:26713,40579:26723,40580:26743,40581:26751,40582:26783,40583:26767,40584:26797,40585:26772,40586:26781,40587:26779,40588:26755,40589:27310,40590:26809,40591:26740,40592:26805,40593:26784,40594:26810,40595:26895,40596:26765,40597:26750,40598:26881,40599:26826,40600:26888,40601:26840,40602:26914,40603:26918,40604:26849,40605:26892,40606:26829,40607:26836,40608:26855,40609:26837,40610:26934,40611:26898,40612:26884,40613:26839,40614:26851,40615:26917,40616:26873,40617:26848,40618:26863,40619:26920,40620:26922,40621:26906,40622:26915,40623:26913,40624:26822,40625:27001,40626:26999,40627:26972,40628:27e3,40629:26987,40630:26964,40631:27006,40632:26990,40633:26937,40634:26996,40635:26941,40636:26969,40637:26928,40638:26977,40639:26974,40640:26973,40641:27009,40642:26986,40643:27058,40644:27054,40645:27088,40646:27071,40647:27073,40648:27091,40649:27070,40650:27086,40651:23528,40652:27082,40653:27101,40654:27067,40655:27075,40656:27047,40657:27182,40658:27025,40659:27040,40660:27036,40661:27029,40662:27060,40663:27102,40664:27112,40665:27138,40666:27163,40667:27135,40668:27402,40669:27129,40670:27122,40671:27111,40672:27141,40673:27057,40674:27166,40675:27117,40676:27156,40677:27115,40678:27146,40679:27154,40680:27329,40681:27171,40682:27155,40683:27204,40684:27148,40685:27250,40686:27190,40687:27256,40688:27207,40689:27234,40690:27225,40691:27238,40692:27208,40693:27192,40694:27170,40695:27280,40696:27277,40697:27296,40698:27268,40699:27298,40700:27299,40768:27287,40769:34327,40770:27323,40771:27331,40772:27330,40773:27320,40774:27315,40775:27308,40776:27358,40777:27345,40778:27359,40779:27306,40780:27354,40781:27370,40782:27387,40783:27397,40784:34326,40785:27386,40786:27410,40787:27414,40788:39729,40789:27423,40790:27448,40791:27447,40792:30428,40793:27449,40794:39150,40795:27463,40796:27459,40797:27465,40798:27472,40799:27481,40800:27476,40801:27483,40802:27487,40803:27489,40804:27512,40805:27513,40806:27519,40807:27520,40808:27524,40809:27523,40810:27533,40811:27544,40812:27541,40813:27550,40814:27556,40815:27562,40816:27563,40817:27567,40818:27570,40819:27569,40820:27571,40821:27575,40822:27580,40823:27590,40824:27595,40825:27603,40826:27615,40827:27628,40828:27627,40829:27635,40830:27631,40832:40638,40833:27656,40834:27667,40835:27668,40836:27675,40837:27684,40838:27683,40839:27742,40840:27733,40841:27746,40842:27754,40843:27778,40844:27789,40845:27802,40846:27777,40847:27803,40848:27774,40849:27752,40850:27763,40851:27794,40852:27792,40853:27844,40854:27889,40855:27859,40856:27837,40857:27863,40858:27845,40859:27869,40860:27822,40861:27825,40862:27838,40863:27834,40864:27867,40865:27887,40866:27865,40867:27882,40868:27935,40869:34893,40870:27958,40871:27947,40872:27965,40873:27960,40874:27929,40875:27957,40876:27955,40877:27922,40878:27916,40879:28003,40880:28051,40881:28004,40882:27994,40883:28025,40884:27993,40885:28046,40886:28053,40887:28644,40888:28037,40889:28153,40890:28181,40891:28170,40892:28085,40893:28103,40894:28134,40895:28088,40896:28102,40897:28140,40898:28126,40899:28108,40900:28136,40901:28114,40902:28101,40903:28154,40904:28121,40905:28132,40906:28117,40907:28138,40908:28142,40909:28205,40910:28270,40911:28206,40912:28185,40913:28274,40914:28255,40915:28222,40916:28195,40917:28267,40918:28203,40919:28278,40920:28237,40921:28191,40922:28227,40923:28218,40924:28238,40925:28196,40926:28415,40927:28189,40928:28216,40929:28290,40930:28330,40931:28312,40932:28361,40933:28343,40934:28371,40935:28349,40936:28335,40937:28356,40938:28338,40939:28372,40940:28373,40941:28303,40942:28325,40943:28354,40944:28319,40945:28481,40946:28433,40947:28748,40948:28396,40949:28408,40950:28414,40951:28479,40952:28402,40953:28465,40954:28399,40955:28466,40956:28364,161:65377,162:65378,163:65379,164:65380,165:65381,166:65382,167:65383,168:65384,169:65385,170:65386,171:65387,172:65388,173:65389,174:65390,175:65391,176:65392,177:65393,178:65394,179:65395,180:65396,181:65397,182:65398,183:65399,184:65400,185:65401,186:65402,187:65403,188:65404,189:65405,190:65406,191:65407,192:65408,193:65409,194:65410,195:65411,196:65412,197:65413,198:65414,199:65415,200:65416,201:65417,202:65418,203:65419,204:65420,205:65421,206:65422,207:65423,208:65424,209:65425,210:65426,211:65427,212:65428,213:65429,214:65430,215:65431,216:65432,217:65433,218:65434,219:65435,220:65436,221:65437,222:65438,223:65439,57408:28478,57409:28435,57410:28407,57411:28550,57412:28538,57413:28536,57414:28545,57415:28544,57416:28527,57417:28507,57418:28659,57419:28525,57420:28546,57421:28540,57422:28504,57423:28558,57424:28561,57425:28610,57426:28518,57427:28595,57428:28579,57429:28577,57430:28580,57431:28601,57432:28614,57433:28586,57434:28639,57435:28629,57436:28652,57437:28628,57438:28632,57439:28657,57440:28654,57441:28635,57442:28681,57443:28683,57444:28666,57445:28689,57446:28673,57447:28687,57448:28670,57449:28699,57450:28698,57451:28532,57452:28701,57453:28696,57454:28703,57455:28720,57456:28734,57457:28722,57458:28753,57459:28771,57460:28825,57461:28818,57462:28847,57463:28913,57464:28844,57465:28856,57466:28851,57467:28846,57468:28895,57469:28875,57470:28893,57472:28889,57473:28937,57474:28925,57475:28956,57476:28953,57477:29029,57478:29013,57479:29064,57480:29030,57481:29026,57482:29004,57483:29014,57484:29036,57485:29071,57486:29179,57487:29060,57488:29077,57489:29096,57490:29100,57491:29143,57492:29113,57493:29118,57494:29138,57495:29129,57496:29140,57497:29134,57498:29152,57499:29164,57500:29159,57501:29173,57502:29180,57503:29177,57504:29183,57505:29197,57506:29200,57507:29211,57508:29224,57509:29229,57510:29228,57511:29232,57512:29234,57513:29243,57514:29244,57515:29247,57516:29248,57517:29254,57518:29259,57519:29272,57520:29300,57521:29310,57522:29314,57523:29313,57524:29319,57525:29330,57526:29334,57527:29346,57528:29351,57529:29369,57530:29362,57531:29379,57532:29382,57533:29380,57534:29390,57535:29394,57536:29410,57537:29408,57538:29409,57539:29433,57540:29431,57541:20495,57542:29463,57543:29450,57544:29468,57545:29462,57546:29469,57547:29492,57548:29487,57549:29481,57550:29477,57551:29502,57552:29518,57553:29519,57554:40664,57555:29527,57556:29546,57557:29544,57558:29552,57559:29560,57560:29557,57561:29563,57562:29562,57563:29640,57564:29619,57565:29646,57566:29627,57567:29632,57568:29669,57569:29678,57570:29662,57571:29858,57572:29701,57573:29807,57574:29733,57575:29688,57576:29746,57577:29754,57578:29781,57579:29759,57580:29791,57581:29785,57582:29761,57583:29788,57584:29801,57585:29808,57586:29795,57587:29802,57588:29814,57589:29822,57590:29835,57591:29854,57592:29863,57593:29898,57594:29903,57595:29908,57596:29681,57664:29920,57665:29923,57666:29927,57667:29929,57668:29934,57669:29938,57670:29936,57671:29937,57672:29944,57673:29943,57674:29956,57675:29955,57676:29957,57677:29964,57678:29966,57679:29965,57680:29973,57681:29971,57682:29982,57683:29990,57684:29996,57685:30012,57686:30020,57687:30029,57688:30026,57689:30025,57690:30043,57691:30022,57692:30042,57693:30057,57694:30052,57695:30055,57696:30059,57697:30061,57698:30072,57699:30070,57700:30086,57701:30087,57702:30068,57703:30090,57704:30089,57705:30082,57706:30100,57707:30106,57708:30109,57709:30117,57710:30115,57711:30146,57712:30131,57713:30147,57714:30133,57715:30141,57716:30136,57717:30140,57718:30129,57719:30157,57720:30154,57721:30162,57722:30169,57723:30179,57724:30174,57725:30206,57726:30207,57728:30204,57729:30209,57730:30192,57731:30202,57732:30194,57733:30195,57734:30219,57735:30221,57736:30217,57737:30239,57738:30247,57739:30240,57740:30241,57741:30242,57742:30244,57743:30260,57744:30256,57745:30267,57746:30279,57747:30280,57748:30278,57749:30300,57750:30296,57751:30305,57752:30306,57753:30312,57754:30313,57755:30314,57756:30311,57757:30316,57758:30320,57759:30322,57760:30326,57761:30328,57762:30332,57763:30336,57764:30339,57765:30344,57766:30347,57767:30350,57768:30358,57769:30355,57770:30361,57771:30362,57772:30384,57773:30388,57774:30392,57775:30393,57776:30394,57777:30402,57778:30413,57779:30422,57780:30418,57781:30430,57782:30433,57783:30437,57784:30439,57785:30442,57786:34351,57787:30459,57788:30472,57789:30471,57790:30468,57791:30505,57792:30500,57793:30494,57794:30501,57795:30502,57796:30491,57797:30519,57798:30520,57799:30535,57800:30554,57801:30568,57802:30571,57803:30555,57804:30565,57805:30591,57806:30590,57807:30585,57808:30606,57809:30603,57810:30609,57811:30624,57812:30622,57813:30640,57814:30646,57815:30649,57816:30655,57817:30652,57818:30653,57819:30651,57820:30663,57821:30669,57822:30679,57823:30682,57824:30684,57825:30691,57826:30702,57827:30716,57828:30732,57829:30738,57830:31014,57831:30752,57832:31018,57833:30789,57834:30862,57835:30836,57836:30854,57837:30844,57838:30874,57839:30860,57840:30883,57841:30901,57842:30890,57843:30895,57844:30929,57845:30918,57846:30923,57847:30932,57848:30910,57849:30908,57850:30917,57851:30922,57852:30956,57920:30951,57921:30938,57922:30973,57923:30964,57924:30983,57925:30994,57926:30993,57927:31001,57928:31020,57929:31019,57930:31040,57931:31072,57932:31063,57933:31071,57934:31066,57935:31061,57936:31059,57937:31098,57938:31103,57939:31114,57940:31133,57941:31143,57942:40779,57943:31146,57944:31150,57945:31155,57946:31161,57947:31162,57948:31177,57949:31189,57950:31207,57951:31212,57952:31201,57953:31203,57954:31240,57955:31245,57956:31256,57957:31257,57958:31264,57959:31263,57960:31104,57961:31281,57962:31291,57963:31294,57964:31287,57965:31299,57966:31319,57967:31305,57968:31329,57969:31330,57970:31337,57971:40861,57972:31344,57973:31353,57974:31357,57975:31368,57976:31383,57977:31381,57978:31384,57979:31382,57980:31401,57981:31432,57982:31408,57984:31414,57985:31429,57986:31428,57987:31423,57988:36995,57989:31431,57990:31434,57991:31437,57992:31439,57993:31445,57994:31443,57995:31449,57996:31450,57997:31453,57998:31457,57999:31458,58e3:31462,58001:31469,58002:31472,58003:31490,58004:31503,58005:31498,58006:31494,58007:31539,58008:31512,58009:31513,58010:31518,58011:31541,58012:31528,58013:31542,58014:31568,58015:31610,58016:31492,58017:31565,58018:31499,58019:31564,58020:31557,58021:31605,58022:31589,58023:31604,58024:31591,58025:31600,58026:31601,58027:31596,58028:31598,58029:31645,58030:31640,58031:31647,58032:31629,58033:31644,58034:31642,58035:31627,58036:31634,58037:31631,58038:31581,58039:31641,58040:31691,58041:31681,58042:31692,58043:31695,58044:31668,58045:31686,58046:31709,58047:31721,58048:31761,58049:31764,58050:31718,58051:31717,58052:31840,58053:31744,58054:31751,58055:31763,58056:31731,58057:31735,58058:31767,58059:31757,58060:31734,58061:31779,58062:31783,58063:31786,58064:31775,58065:31799,58066:31787,58067:31805,58068:31820,58069:31811,58070:31828,58071:31823,58072:31808,58073:31824,58074:31832,58075:31839,58076:31844,58077:31830,58078:31845,58079:31852,58080:31861,58081:31875,58082:31888,58083:31908,58084:31917,58085:31906,58086:31915,58087:31905,58088:31912,58089:31923,58090:31922,58091:31921,58092:31918,58093:31929,58094:31933,58095:31936,58096:31941,58097:31938,58098:31960,58099:31954,58100:31964,58101:31970,58102:39739,58103:31983,58104:31986,58105:31988,58106:31990,58107:31994,58108:32006,58176:32002,58177:32028,58178:32021,58179:32010,58180:32069,58181:32075,58182:32046,58183:32050,58184:32063,58185:32053,58186:32070,58187:32115,58188:32086,58189:32078,58190:32114,58191:32104,58192:32110,58193:32079,58194:32099,58195:32147,58196:32137,58197:32091,58198:32143,58199:32125,58200:32155,58201:32186,58202:32174,58203:32163,58204:32181,58205:32199,58206:32189,58207:32171,58208:32317,58209:32162,58210:32175,58211:32220,58212:32184,58213:32159,58214:32176,58215:32216,58216:32221,58217:32228,58218:32222,58219:32251,58220:32242,58221:32225,58222:32261,58223:32266,58224:32291,58225:32289,58226:32274,58227:32305,58228:32287,58229:32265,58230:32267,58231:32290,58232:32326,58233:32358,58234:32315,58235:32309,58236:32313,58237:32323,58238:32311,58240:32306,58241:32314,58242:32359,58243:32349,58244:32342,58245:32350,58246:32345,58247:32346,58248:32377,58249:32362,58250:32361,58251:32380,58252:32379,58253:32387,58254:32213,58255:32381,58256:36782,58257:32383,58258:32392,58259:32393,58260:32396,58261:32402,58262:32400,58263:32403,58264:32404,58265:32406,58266:32398,58267:32411,58268:32412,58269:32568,58270:32570,58271:32581,58272:32588,58273:32589,58274:32590,58275:32592,58276:32593,58277:32597,58278:32596,58279:32600,58280:32607,58281:32608,58282:32616,58283:32617,58284:32615,58285:32632,58286:32642,58287:32646,58288:32643,58289:32648,58290:32647,58291:32652,58292:32660,58293:32670,58294:32669,58295:32666,58296:32675,58297:32687,58298:32690,58299:32697,58300:32686,58301:32694,58302:32696,58303:35697,58304:32709,58305:32710,58306:32714,58307:32725,58308:32724,58309:32737,58310:32742,58311:32745,58312:32755,58313:32761,58314:39132,58315:32774,58316:32772,58317:32779,58318:32786,58319:32792,58320:32793,58321:32796,58322:32801,58323:32808,58324:32831,58325:32827,58326:32842,58327:32838,58328:32850,58329:32856,58330:32858,58331:32863,58332:32866,58333:32872,58334:32883,58335:32882,58336:32880,58337:32886,58338:32889,58339:32893,58340:32895,58341:32900,58342:32902,58343:32901,58344:32923,58345:32915,58346:32922,58347:32941,58348:20880,58349:32940,58350:32987,58351:32997,58352:32985,58353:32989,58354:32964,58355:32986,58356:32982,58357:33033,58358:33007,58359:33009,58360:33051,58361:33065,58362:33059,58363:33071,58364:33099,58432:38539,58433:33094,58434:33086,58435:33107,58436:33105,58437:33020,58438:33137,58439:33134,58440:33125,58441:33126,58442:33140,58443:33155,58444:33160,58445:33162,58446:33152,58447:33154,58448:33184,58449:33173,58450:33188,58451:33187,58452:33119,58453:33171,58454:33193,58455:33200,58456:33205,58457:33214,58458:33208,58459:33213,58460:33216,58461:33218,58462:33210,58463:33225,58464:33229,58465:33233,58466:33241,58467:33240,58468:33224,58469:33242,58470:33247,58471:33248,58472:33255,58473:33274,58474:33275,58475:33278,58476:33281,58477:33282,58478:33285,58479:33287,58480:33290,58481:33293,58482:33296,58483:33302,58484:33321,58485:33323,58486:33336,58487:33331,58488:33344,58489:33369,58490:33368,58491:33373,58492:33370,58493:33375,58494:33380,58496:33378,58497:33384,58498:33386,58499:33387,58500:33326,58501:33393,58502:33399,58503:33400,58504:33406,58505:33421,58506:33426,58507:33451,58508:33439,58509:33467,58510:33452,58511:33505,58512:33507,58513:33503,58514:33490,58515:33524,58516:33523,58517:33530,58518:33683,58519:33539,58520:33531,58521:33529,58522:33502,58523:33542,58524:33500,58525:33545,58526:33497,58527:33589,58528:33588,58529:33558,58530:33586,58531:33585,58532:33600,58533:33593,58534:33616,58535:33605,58536:33583,58537:33579,58538:33559,58539:33560,58540:33669,58541:33690,58542:33706,58543:33695,58544:33698,58545:33686,58546:33571,58547:33678,58548:33671,58549:33674,58550:33660,58551:33717,58552:33651,58553:33653,58554:33696,58555:33673,58556:33704,58557:33780,58558:33811,58559:33771,58560:33742,58561:33789,58562:33795,58563:33752,58564:33803,58565:33729,58566:33783,58567:33799,58568:33760,58569:33778,58570:33805,58571:33826,58572:33824,58573:33725,58574:33848,58575:34054,58576:33787,58577:33901,58578:33834,58579:33852,58580:34138,58581:33924,58582:33911,58583:33899,58584:33965,58585:33902,58586:33922,58587:33897,58588:33862,58589:33836,58590:33903,58591:33913,58592:33845,58593:33994,58594:33890,58595:33977,58596:33983,58597:33951,58598:34009,58599:33997,58600:33979,58601:34010,58602:34e3,58603:33985,58604:33990,58605:34006,58606:33953,58607:34081,58608:34047,58609:34036,58610:34071,58611:34072,58612:34092,58613:34079,58614:34069,58615:34068,58616:34044,58617:34112,58618:34147,58619:34136,58620:34120,58688:34113,58689:34306,58690:34123,58691:34133,58692:34176,58693:34212,58694:34184,58695:34193,58696:34186,58697:34216,58698:34157,58699:34196,58700:34203,58701:34282,58702:34183,58703:34204,58704:34167,58705:34174,58706:34192,58707:34249,58708:34234,58709:34255,58710:34233,58711:34256,58712:34261,58713:34269,58714:34277,58715:34268,58716:34297,58717:34314,58718:34323,58719:34315,58720:34302,58721:34298,58722:34310,58723:34338,58724:34330,58725:34352,58726:34367,58727:34381,58728:20053,58729:34388,58730:34399,58731:34407,58732:34417,58733:34451,58734:34467,58735:34473,58736:34474,58737:34443,58738:34444,58739:34486,58740:34479,58741:34500,58742:34502,58743:34480,58744:34505,58745:34851,58746:34475,58747:34516,58748:34526,58749:34537,58750:34540,58752:34527,58753:34523,58754:34543,58755:34578,58756:34566,58757:34568,58758:34560,58759:34563,58760:34555,58761:34577,58762:34569,58763:34573,58764:34553,58765:34570,58766:34612,58767:34623,58768:34615,58769:34619,58770:34597,58771:34601,58772:34586,58773:34656,58774:34655,58775:34680,58776:34636,58777:34638,58778:34676,58779:34647,58780:34664,58781:34670,58782:34649,58783:34643,58784:34659,58785:34666,58786:34821,58787:34722,58788:34719,58789:34690,58790:34735,58791:34763,58792:34749,58793:34752,58794:34768,58795:38614,58796:34731,58797:34756,58798:34739,58799:34759,58800:34758,58801:34747,58802:34799,58803:34802,58804:34784,58805:34831,58806:34829,58807:34814,58808:34806,58809:34807,58810:34830,58811:34770,58812:34833,58813:34838,58814:34837,58815:34850,58816:34849,58817:34865,58818:34870,58819:34873,58820:34855,58821:34875,58822:34884,58823:34882,58824:34898,58825:34905,58826:34910,58827:34914,58828:34923,58829:34945,58830:34942,58831:34974,58832:34933,58833:34941,58834:34997,58835:34930,58836:34946,58837:34967,58838:34962,58839:34990,58840:34969,58841:34978,58842:34957,58843:34980,58844:34992,58845:35007,58846:34993,58847:35011,58848:35012,58849:35028,58850:35032,58851:35033,58852:35037,58853:35065,58854:35074,58855:35068,58856:35060,58857:35048,58858:35058,58859:35076,58860:35084,58861:35082,58862:35091,58863:35139,58864:35102,58865:35109,58866:35114,58867:35115,58868:35137,58869:35140,58870:35131,58871:35126,58872:35128,58873:35148,58874:35101,58875:35168,58876:35166,58944:35174,58945:35172,58946:35181,58947:35178,58948:35183,58949:35188,58950:35191,58951:35198,58952:35203,58953:35208,58954:35210,58955:35219,58956:35224,58957:35233,58958:35241,58959:35238,58960:35244,58961:35247,58962:35250,58963:35258,58964:35261,58965:35263,58966:35264,58967:35290,58968:35292,58969:35293,58970:35303,58971:35316,58972:35320,58973:35331,58974:35350,58975:35344,58976:35340,58977:35355,58978:35357,58979:35365,58980:35382,58981:35393,58982:35419,58983:35410,58984:35398,58985:35400,58986:35452,58987:35437,58988:35436,58989:35426,58990:35461,58991:35458,58992:35460,58993:35496,58994:35489,58995:35473,58996:35493,58997:35494,58998:35482,58999:35491,59e3:35524,59001:35533,59002:35522,59003:35546,59004:35563,59005:35571,59006:35559,59008:35556,59009:35569,59010:35604,59011:35552,59012:35554,59013:35575,59014:35550,59015:35547,59016:35596,59017:35591,59018:35610,59019:35553,59020:35606,59021:35600,59022:35607,59023:35616,59024:35635,59025:38827,59026:35622,59027:35627,59028:35646,59029:35624,59030:35649,59031:35660,59032:35663,59033:35662,59034:35657,59035:35670,59036:35675,59037:35674,59038:35691,59039:35679,59040:35692,59041:35695,59042:35700,59043:35709,59044:35712,59045:35724,59046:35726,59047:35730,59048:35731,59049:35734,59050:35737,59051:35738,59052:35898,59053:35905,59054:35903,59055:35912,59056:35916,59057:35918,59058:35920,59059:35925,59060:35938,59061:35948,59062:35960,59063:35962,59064:35970,59065:35977,59066:35973,59067:35978,59068:35981,59069:35982,59070:35988,59071:35964,59072:35992,59073:25117,59074:36013,59075:36010,59076:36029,59077:36018,59078:36019,59079:36014,59080:36022,59081:36040,59082:36033,59083:36068,59084:36067,59085:36058,59086:36093,59087:36090,59088:36091,59089:36100,59090:36101,59091:36106,59092:36103,59093:36111,59094:36109,59095:36112,59096:40782,59097:36115,59098:36045,59099:36116,59100:36118,59101:36199,59102:36205,59103:36209,59104:36211,59105:36225,59106:36249,59107:36290,59108:36286,59109:36282,59110:36303,59111:36314,59112:36310,59113:36300,59114:36315,59115:36299,59116:36330,59117:36331,59118:36319,59119:36323,59120:36348,59121:36360,59122:36361,59123:36351,59124:36381,59125:36382,59126:36368,59127:36383,59128:36418,59129:36405,59130:36400,59131:36404,59132:36426,59200:36423,59201:36425,59202:36428,59203:36432,59204:36424,59205:36441,59206:36452,59207:36448,59208:36394,59209:36451,59210:36437,59211:36470,59212:36466,59213:36476,59214:36481,59215:36487,59216:36485,59217:36484,59218:36491,59219:36490,59220:36499,59221:36497,59222:36500,59223:36505,59224:36522,59225:36513,59226:36524,59227:36528,59228:36550,59229:36529,59230:36542,59231:36549,59232:36552,59233:36555,59234:36571,59235:36579,59236:36604,59237:36603,59238:36587,59239:36606,59240:36618,59241:36613,59242:36629,59243:36626,59244:36633,59245:36627,59246:36636,59247:36639,59248:36635,59249:36620,59250:36646,59251:36659,59252:36667,59253:36665,59254:36677,59255:36674,59256:36670,59257:36684,59258:36681,59259:36678,59260:36686,59261:36695,59262:36700,59264:36706,59265:36707,59266:36708,59267:36764,59268:36767,59269:36771,59270:36781,59271:36783,59272:36791,59273:36826,59274:36837,59275:36834,59276:36842,59277:36847,59278:36999,59279:36852,59280:36869,59281:36857,59282:36858,59283:36881,59284:36885,59285:36897,59286:36877,59287:36894,59288:36886,59289:36875,59290:36903,59291:36918,59292:36917,59293:36921,59294:36856,59295:36943,59296:36944,59297:36945,59298:36946,59299:36878,59300:36937,59301:36926,59302:36950,59303:36952,59304:36958,59305:36968,59306:36975,59307:36982,59308:38568,59309:36978,59310:36994,59311:36989,59312:36993,59313:36992,59314:37002,59315:37001,59316:37007,59317:37032,59318:37039,59319:37041,59320:37045,59321:37090,59322:37092,59323:25160,59324:37083,59325:37122,59326:37138,59327:37145,59328:37170,59329:37168,59330:37194,59331:37206,59332:37208,59333:37219,59334:37221,59335:37225,59336:37235,59337:37234,59338:37259,59339:37257,59340:37250,59341:37282,59342:37291,59343:37295,59344:37290,59345:37301,59346:37300,59347:37306,59348:37312,59349:37313,59350:37321,59351:37323,59352:37328,59353:37334,59354:37343,59355:37345,59356:37339,59357:37372,59358:37365,59359:37366,59360:37406,59361:37375,59362:37396,59363:37420,59364:37397,59365:37393,59366:37470,59367:37463,59368:37445,59369:37449,59370:37476,59371:37448,59372:37525,59373:37439,59374:37451,59375:37456,59376:37532,59377:37526,59378:37523,59379:37531,59380:37466,59381:37583,59382:37561,59383:37559,59384:37609,59385:37647,59386:37626,59387:37700,59388:37678,59456:37657,59457:37666,59458:37658,59459:37667,59460:37690,59461:37685,59462:37691,59463:37724,59464:37728,59465:37756,59466:37742,59467:37718,59468:37808,59469:37804,59470:37805,59471:37780,59472:37817,59473:37846,59474:37847,59475:37864,59476:37861,59477:37848,59478:37827,59479:37853,59480:37840,59481:37832,59482:37860,59483:37914,59484:37908,59485:37907,59486:37891,59487:37895,59488:37904,59489:37942,59490:37931,59491:37941,59492:37921,59493:37946,59494:37953,59495:37970,59496:37956,59497:37979,59498:37984,59499:37986,59500:37982,59501:37994,59502:37417,59503:38e3,59504:38005,59505:38007,59506:38013,59507:37978,59508:38012,59509:38014,59510:38017,59511:38015,59512:38274,59513:38279,59514:38282,59515:38292,59516:38294,59517:38296,59518:38297,59520:38304,59521:38312,59522:38311,59523:38317,59524:38332,59525:38331,59526:38329,59527:38334,59528:38346,59529:28662,59530:38339,59531:38349,59532:38348,59533:38357,59534:38356,59535:38358,59536:38364,59537:38369,59538:38373,59539:38370,59540:38433,59541:38440,59542:38446,59543:38447,59544:38466,59545:38476,59546:38479,59547:38475,59548:38519,59549:38492,59550:38494,59551:38493,59552:38495,59553:38502,59554:38514,59555:38508,59556:38541,59557:38552,59558:38549,59559:38551,59560:38570,59561:38567,59562:38577,59563:38578,59564:38576,59565:38580,59566:38582,59567:38584,59568:38585,59569:38606,59570:38603,59571:38601,59572:38605,59573:35149,59574:38620,59575:38669,59576:38613,59577:38649,59578:38660,59579:38662,59580:38664,59581:38675,59582:38670,59583:38673,59584:38671,59585:38678,59586:38681,59587:38692,59588:38698,59589:38704,59590:38713,59591:38717,59592:38718,59593:38724,59594:38726,59595:38728,59596:38722,59597:38729,59598:38748,59599:38752,59600:38756,59601:38758,59602:38760,59603:21202,59604:38763,59605:38769,59606:38777,59607:38789,59608:38780,59609:38785,59610:38778,59611:38790,59612:38795,59613:38799,59614:38800,59615:38812,59616:38824,59617:38822,59618:38819,59619:38835,59620:38836,59621:38851,59622:38854,59623:38856,59624:38859,59625:38876,59626:38893,59627:40783,59628:38898,59629:31455,59630:38902,59631:38901,59632:38927,59633:38924,59634:38968,59635:38948,59636:38945,59637:38967,59638:38973,59639:38982,59640:38991,59641:38987,59642:39019,59643:39023,59644:39024,59712:39025,59713:39028,59714:39027,59715:39082,59716:39087,59717:39089,59718:39094,59719:39108,59720:39107,59721:39110,59722:39145,59723:39147,59724:39171,59725:39177,59726:39186,59727:39188,59728:39192,59729:39201,59730:39197,59731:39198,59732:39204,59733:39200,59734:39212,59735:39214,59736:39229,59737:39230,59738:39234,59739:39241,59740:39237,59741:39248,59742:39243,59743:39249,59744:39250,59745:39244,59746:39253,59747:39319,59748:39320,59749:39333,59750:39341,59751:39342,59752:39356,59753:39391,59754:39387,59755:39389,59756:39384,59757:39377,59758:39405,59759:39406,59760:39409,59761:39410,59762:39419,59763:39416,59764:39425,59765:39439,59766:39429,59767:39394,59768:39449,59769:39467,59770:39479,59771:39493,59772:39490,59773:39488,59774:39491,59776:39486,59777:39509,59778:39501,59779:39515,59780:39511,59781:39519,59782:39522,59783:39525,59784:39524,59785:39529,59786:39531,59787:39530,59788:39597,59789:39600,59790:39612,59791:39616,59792:39631,59793:39633,59794:39635,59795:39636,59796:39646,59797:39647,59798:39650,59799:39651,59800:39654,59801:39663,59802:39659,59803:39662,59804:39668,59805:39665,59806:39671,59807:39675,59808:39686,59809:39704,59810:39706,59811:39711,59812:39714,59813:39715,59814:39717,59815:39719,59816:39720,59817:39721,59818:39722,59819:39726,59820:39727,59821:39730,59822:39748,59823:39747,59824:39759,59825:39757,59826:39758,59827:39761,59828:39768,59829:39796,59830:39827,59831:39811,59832:39825,59833:39830,59834:39831,59835:39839,59836:39840,59837:39848,59838:39860,59839:39872,59840:39882,59841:39865,59842:39878,59843:39887,59844:39889,59845:39890,59846:39907,59847:39906,59848:39908,59849:39892,59850:39905,59851:39994,59852:39922,59853:39921,59854:39920,59855:39957,59856:39956,59857:39945,59858:39955,59859:39948,59860:39942,59861:39944,59862:39954,59863:39946,59864:39940,59865:39982,59866:39963,59867:39973,59868:39972,59869:39969,59870:39984,59871:40007,59872:39986,59873:40006,59874:39998,59875:40026,59876:40032,59877:40039,59878:40054,59879:40056,59880:40167,59881:40172,59882:40176,59883:40201,59884:40200,59885:40171,59886:40195,59887:40198,59888:40234,59889:40230,59890:40367,59891:40227,59892:40223,59893:40260,59894:40213,59895:40210,59896:40257,59897:40255,59898:40254,59899:40262,59900:40264,59968:40285,59969:40286,59970:40292,59971:40273,59972:40272,59973:40281,59974:40306,59975:40329,59976:40327,59977:40363,59978:40303,59979:40314,59980:40346,59981:40356,59982:40361,59983:40370,59984:40388,59985:40385,59986:40379,59987:40376,59988:40378,59989:40390,59990:40399,59991:40386,59992:40409,59993:40403,59994:40440,59995:40422,59996:40429,59997:40431,59998:40445,59999:40474,6e4:40475,60001:40478,60002:40565,60003:40569,60004:40573,60005:40577,60006:40584,60007:40587,60008:40588,60009:40594,60010:40597,60011:40593,60012:40605,60013:40613,60014:40617,60015:40632,60016:40618,60017:40621,60018:38753,60019:40652,60020:40654,60021:40655,60022:40656,60023:40660,60024:40668,60025:40670,60026:40669,60027:40672,60028:40677,60029:40680,60030:40687,60032:40692,60033:40694,60034:40695,60035:40697,60036:40699,60037:40700,60038:40701,60039:40711,60040:40712,60041:30391,60042:40725,60043:40737,60044:40748,60045:40766,60046:40778,60047:40786,60048:40788,60049:40803,60050:40799,60051:40800,60052:40801,60053:40806,60054:40807,60055:40812,60056:40810,60057:40823,60058:40818,60059:40822,60060:40853,60061:40860,60062:40864,60063:22575,60064:27079,60065:36953,60066:29796,60067:20956,60068:29081}},function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=t(1),i=t(2);function s(c,f,l,h){var d;f.degree()=h/2;){var C=x,g=D;if(x=m,D=p,x.isZero())return null;m=C;for(var E=c.zero,y=x.getCoefficient(x.degree()),v=c.inverse(y);m.degree()>=x.degree()&&!m.isZero();){var b=m.degree()-x.degree(),B=c.multiply(m.getCoefficient(m.degree()),v);E=E.addOrSubtract(c.buildMonomial(b,B)),m=m.addOrSubtract(x.multiplyByMonomial(b,B))}if(p=E.multiplyPoly(D).addOrSubtract(g),m.degree()>=x.degree())return null}var F=p.getCoefficient(0);if(F===0)return null;var _=c.inverse(F);return[p.multiply(_),m.multiply(_)]}function o(c,f){var l=f.degree();if(l===1)return[f.getCoefficient(1)];for(var h=new Array(l),d=0,x=1;x=B&&F>=_?(E=[C,p,g],M=E[0],R=E[1],P=E[2]):_>=F&&_>=B?(y=[p,C,g],M=y[0],R=y[1],P=y[2]):(v=[p,g,C],M=v[0],R=v[1],P=v[2]),(P.x-R.x)*(M.y-R.y)-(P.y-R.y)*(M.x-R.x)<0&&(b=[P,M],M=b[0],P=b[1]),{bottomLeft:M,topLeft:R,topRight:P}}function c(p,C,g,E){var y=(a(l(p,g,E,5))/7+a(l(p,C,E,5))/7+a(l(g,p,E,5))/7+a(l(C,p,E,5))/7)/4;if(y<1)throw new Error("Invalid module size");var v=Math.round(o(p,C)/y),b=Math.round(o(p,g)/y),B=Math.floor((v+b)/2)+7;switch(B%4){case 0:B++;break;case 2:B--;break}return{dimension:B,moduleSize:y}}function f(p,C,g,E){var y=[{x:Math.floor(p.x),y:Math.floor(p.y)}],v=Math.abs(C.y-p.y)>Math.abs(C.x-p.x),b,B,F,_;v?(b=Math.floor(p.y),B=Math.floor(p.x),F=Math.floor(C.y),_=Math.floor(C.x)):(b=Math.floor(p.x),B=Math.floor(p.y),F=Math.floor(C.x),_=Math.floor(C.y));for(var M=Math.abs(F-b),R=Math.abs(_-B),P=Math.floor(-M/2),H=b0){if(Y===_)break;Y+=G,P-=M}}for(var be=[],Ae=0;Ae=Ye.bottom.startX&&Ce<=Ye.bottom.endX||we>=Ye.bottom.startX&&Ce<=Ye.bottom.endX||Ce<=Ye.bottom.startX&&we>=Ye.bottom.endX&&Ae[2]/(Ye.bottom.endX-Ye.bottom.startX)i});Oe.length>0?Oe[0].bottom=Xe:g.push({top:Xe,bottom:Xe})}if(L){var Be=V-Ae[4],Ke=Be-Ae[3],Xe={startX:Ke,y:J,endX:Be},Oe=y.filter(function(O){return Ke>=O.bottom.startX&&Ke<=O.bottom.endX||Be>=O.bottom.startX&&Ke<=O.bottom.endX||Ke<=O.bottom.startX&&Be>=O.bottom.endX&&Ae[2]/(O.bottom.endX-O.bottom.startX)i});Oe.length>0?Oe[0].bottom=Xe:y.push({top:Xe,bottom:Xe})}}},ee=-1;ee<=p.width;ee++)at(ee);C.push.apply(C,g.filter(function(V){return V.bottom.y!==J&&V.bottom.y-V.top.y>=2})),g=g.filter(function(V){return V.bottom.y===J}),E.push.apply(E,y.filter(function(V){return V.bottom.y!==J})),y=y.filter(function(V){return V.bottom.y===J})},b=0;b<=p.height;b++)v(b);C.push.apply(C,g.filter(function(J){return J.bottom.y-J.top.y>=2})),E.push.apply(E,y);var B=C.filter(function(J){return J.bottom.y-J.top.y>=2}).map(function(J){var De=(J.top.startX+J.top.endX+J.bottom.startX+J.bottom.endX)/4,be=(J.top.y+J.bottom.y+1)/2;if(p.get(Math.round(De),Math.round(be))){var Ae=[J.top.endX-J.top.startX,J.bottom.endX-J.bottom.startX,J.bottom.y-J.top.y+1],at=a(Ae)/Ae.length,ee=d({x:Math.round(De),y:Math.round(be)},[1,1,3,1,1],p);return{score:ee,x:De,y:be,size:at}}}).filter(function(J){return!!J}).sort(function(J,De){return J.score-De.score}).map(function(J,De,be){if(De>n)return null;var Ae=be.filter(function(ee,V){return De!==V}).map(function(ee){return{x:ee.x,y:ee.y,score:ee.score+Math.pow(ee.size-J.size,2)/J.size,size:ee.size}}).sort(function(ee,V){return ee.score-V.score});if(Ae.length<2)return null;var at=J.score+Ae[0].score+Ae[1].score;return{points:[J].concat(Ae.slice(0,2)),score:at}}).filter(function(J){return!!J}).sort(function(J,De){return J.score-De.score});if(B.length===0)return null;var F=u(B[0].points[0],B[0].points[1],B[0].points[2]),_=F.topRight,M=F.topLeft,R=F.bottomLeft,P=D(p,E,_,M,R),H=[];P&&H.push({alignmentPattern:{x:P.alignmentPattern.x,y:P.alignmentPattern.y},bottomLeft:{x:R.x,y:R.y},dimension:P.dimension,topLeft:{x:M.x,y:M.y},topRight:{x:_.x,y:_.y}});var G=x(p,_),ie=x(p,M),ce=x(p,R),Y=D(p,E,G,ie,ce);return Y&&H.push({alignmentPattern:{x:Y.alignmentPattern.x,y:Y.alignmentPattern.y},bottomLeft:{x:ce.x,y:ce.y},topLeft:{x:ie.x,y:ie.y},topRight:{x:G.x,y:G.y},dimension:Y.dimension}),H.length===0?null:H}e.locate=m;function D(p,C,g,E,y){var v,b,B;try{v=c(E,g,y,p),b=v.dimension,B=v.moduleSize}catch{return null}var F={x:g.x-E.x+y.x,y:g.y-E.y+y.y},_=(o(E,y)+o(E,g))/2/B,M=1-3/_,R={x:E.x+M*(F.x-E.x),y:E.y+M*(F.y-E.y)},P=C.map(function(G){var ie=(G.top.startX+G.top.endX+G.bottom.startX+G.bottom.endX)/4,ce=(G.top.y+G.bottom.y+1)/2;if(p.get(Math.floor(ie),Math.floor(ce))){var Y=[G.top.endX-G.top.startX,G.bottom.endX-G.bottom.startX,G.bottom.y-G.top.y+1],J=a(Y)/Y.length,De=d({x:Math.floor(ie),y:Math.floor(ce)},[1,1,1],p),be=De+o({x:ie,y:ce},R);return{x:ie,y:ce,score:be}}}).filter(function(G){return!!G}).sort(function(G,ie){return G.score-ie.score}),H=_>=15&&P.length?P[0]:R;return{alignmentPattern:H,dimension:b}}}]).default})});var X8=B1((j8,W8)=>{"use strict";var G8=function(){var r=function(C,g){var E=236,y=17,v=C,b=t[g],B=null,F=0,_=null,M=[],R={},P=function(V,X){F=v*4+17,B=function(U){for(var re=new Array(U),Q=0;Q=7&&Y(V),_==null&&(_=Ae(v,b,M)),De(_,X)},H=function(V,X){for(var U=-1;U<=7;U+=1)if(!(V+U<=-1||F<=V+U))for(var re=-1;re<=7;re+=1)X+re<=-1||F<=X+re||(0<=U&&U<=6&&(re==0||re==6)||0<=re&&re<=6&&(U==0||U==6)||2<=U&&U<=4&&2<=re&&re<=4?B[V+U][X+re]=!0:B[V+U][X+re]=!1)},G=function(){for(var V=0,X=0,U=0;U<8;U+=1){P(!0,U);var re=i.getLostPoint(R);(U==0||V>re)&&(V=re,X=U)}return X},ie=function(){for(var V=8;V>U&1)==1;B[Math.floor(U/3)][U%3+F-8-3]=re}for(var U=0;U<18;U+=1){var re=!V&&(X>>U&1)==1;B[U%3+F-8-3][Math.floor(U/3)]=re}},J=function(V,X){for(var U=b<<3|X,re=i.getBCHTypeInfo(U),Q=0;Q<15;Q+=1){var L=!V&&(re>>Q&1)==1;Q<6?B[Q][8]=L:Q<8?B[Q+1][8]=L:B[F-15+Q][8]=L}for(var Q=0;Q<15;Q+=1){var L=!V&&(re>>Q&1)==1;Q<8?B[8][F-Q-1]=L:Q<9?B[8][15-Q-1+1]=L:B[8][15-Q-1]=L}B[F-8][8]=!V},De=function(V,X){for(var U=-1,re=F-1,Q=7,L=0,we=i.getMaskFunction(X),Ce=F-1;Ce>0;Ce-=2)for(Ce==6&&(Ce-=1);;){for(var Xe=0;Xe<2;Xe+=1)if(B[re][Ce-Xe]==null){var Oe=!1;L>>Q&1)==1);var Be=we(re,Ce-Xe);Be&&(Oe=!Oe),B[re][Ce-Xe]=Oe,Q-=1,Q==-1&&(L+=1,Q=7)}if(re+=U,re<0||F<=re){re-=U,U=-U;break}}},be=function(V,X){for(var U=0,re=0,Q=0,L=new Array(X.length),we=new Array(X.length),Ce=0;Ce=0?Jt.getAt(O):0}}for(var w=0,Be=0;BeCe*8)throw"code length overflow. ("+Q.getLengthInBits()+">"+Ce*8+")";for(Q.getLengthInBits()+4<=Ce*8&&Q.put(0,4);Q.getLengthInBits()%8!=0;)Q.putBit(!1);for(;!(Q.getLengthInBits()>=Ce*8||(Q.put(E,8),Q.getLengthInBits()>=Ce*8));)Q.put(y,8);return be(Q,re)};R.addData=function(V,X){X=X||"Byte";var U=null;switch(X){case"Numeric":U=c(V);break;case"Alphanumeric":U=f(V);break;case"Byte":U=l(V);break;case"Kanji":U=h(V);break;default:throw"mode:"+X}M.push(U),_=null},R.isDark=function(V,X){if(V<0||F<=V||X<0||F<=X)throw V+","+X;return B[V][X]},R.getModuleCount=function(){return F},R.make=function(){if(v<1){for(var V=1;V<40;V++){for(var X=a.getRSBlocks(V,b),U=u(),re=0;re"u"?V*4:X;var U="";U+='";for(var Q=0;Q';U+=""}return U+="",U+="
",U},R.createSvgTag=function(V,X,U,re){var Q={};typeof arguments[0]=="object"&&(Q=arguments[0],V=Q.cellSize,X=Q.margin,U=Q.alt,re=Q.title),V=V||2,X=typeof X>"u"?V*4:X,U=typeof U=="string"?{text:U}:U||{},U.text=U.text||null,U.id=U.text?U.id||"qrcode-description":null,re=typeof re=="string"?{text:re}:re||{},re.text=re.text||null,re.id=re.text?re.id||"qrcode-title":null;var L=R.getModuleCount()*V+X*2,we,Ce,Xe,Oe,Be="",Ke;for(Ke="l"+V+",0 0,"+V+" -"+V+",0 0,-"+V+"z ",Be+=''+at(re.text)+"":"",Be+=U.text?''+at(U.text)+"":"",Be+='',Be+='"u"?V*4:X;var U=R.getModuleCount()*V+X*2,re=X,Q=U-X;return p(U,U,function(L,we){if(re<=L&&L"u"?V*4:X;var re=R.getModuleCount()*V+X*2,Q="";return Q+="",Q};var at=function(V){for(var X="",U=0;U":X+=">";break;case"&":X+="&";break;case'"':X+=""";break;default:X+=re;break}}return X},ee=function(V){var X=1;V=typeof V>"u"?X*2:V;var U=R.getModuleCount()*X+V*2,re=V,Q=U-V,L,we,Ce,Xe,Oe,Be={"\u2588\u2588":"\u2588","\u2588 ":"\u2580"," \u2588":"\u2584"," ":" "},Ke={"\u2588\u2588":"\u2580","\u2588 ":"\u2580"," \u2588":" "," ":" "},Ye="";for(L=0;L=Q?Ke[Oe]:Be[Oe];Ye+=` +`}return U%2&&V>0?Ye.substring(0,Ye.length-U-1)+Array(U+1).join("\u2580"):Ye.substring(0,Ye.length-1)};return R.createASCII=function(V,X){if(V=V||1,V<2)return ee(X);V-=1,X=typeof X>"u"?V*2:X;var U=R.getModuleCount()*V+X*2,re=X,Q=U-X,L,we,Ce,Xe,Oe=Array(V+1).join("\u2588\u2588"),Be=Array(V+1).join(" "),Ke="",Ye="";for(L=0;L>>8),b.push(_&255)):b.push(y)}}return b}};var e={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},t={L:1,M:0,Q:3,H:2},n={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},i=function(){var C=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],g=1335,E=7973,y=21522,v={},b=function(B){for(var F=0;B!=0;)F+=1,B>>>=1;return F};return v.getBCHTypeInfo=function(B){for(var F=B<<10;b(F)-b(g)>=0;)F^=g<=0;)F^=E<5&&(_+=3+P-5)}for(var M=0;M=256;)v-=255;return C[v]},y}();function o(C,g){if(typeof C.length>"u")throw C.length+"/"+g;var E=function(){for(var v=0;v"u")throw"bad rs block @ typeNumber:"+v+"/errorCorrectionLevel:"+b;for(var F=B.length/3,_=[],M=0;M>>7-y%8&1)==1},E.put=function(y,v){for(var b=0;b>>v-b-1&1)==1)},E.getLengthInBits=function(){return g},E.putBit=function(y){var v=Math.floor(g/8);C.length<=v&&C.push(0),y&&(C[v]|=128>>>g%8),g+=1},E},c=function(C){var g=e.MODE_NUMBER,E=C,y={};y.getMode=function(){return g},y.getLength=function(B){return E.length},y.write=function(B){for(var F=E,_=0;_+2>>8&255)*192+(M&255),B.put(M,13),_+=2}if(_>>8)},g.writeBytes=function(E,y,v){y=y||0,v=v||E.length;for(var b=0;b0&&(E+=","),E+=C[y];return E+="]",E},g},x=function(){var C=0,g=0,E=0,y="",v={},b=function(F){y+=String.fromCharCode(B(F&63))},B=function(F){if(!(F<0)){if(F<26)return 65+F;if(F<52)return 97+(F-26);if(F<62)return 48+(F-52);if(F==62)return 43;if(F==63)return 47}throw"n:"+F};return v.writeByte=function(F){for(C=C<<8|F&255,g+=8,E+=1;g>=6;)b(C>>>g-6),g-=6},v.flush=function(){if(g>0&&(b(C<<6-g),C=0,g=0),E%3!=0)for(var F=3-E%3,_=0;_=g.length){if(v==0)return-1;throw"unexpected end of file./"+v}var F=g.charAt(E);if(E+=1,F=="=")return v=0,-1;if(F.match(/^\s$/))continue;y=y<<6|B(F.charCodeAt(0)),v+=6}var _=y>>>v-8&255;return v-=8,_};var B=function(F){if(65<=F&&F<=90)return F-65;if(97<=F&&F<=122)return F-97+26;if(48<=F&&F<=57)return F-48+52;if(F==43)return 62;if(F==47)return 63;throw"c:"+F};return b},D=function(C,g){var E=C,y=g,v=new Array(C*g),b={};b.setPixel=function(M,R,P){v[R*E+M]=P},b.write=function(M){M.writeString("GIF87a"),M.writeShort(E),M.writeShort(y),M.writeByte(128),M.writeByte(0),M.writeByte(0),M.writeByte(0),M.writeByte(0),M.writeByte(0),M.writeByte(255),M.writeByte(255),M.writeByte(255),M.writeString(","),M.writeShort(0),M.writeShort(0),M.writeShort(E),M.writeShort(y),M.writeByte(0);var R=2,P=F(R);M.writeByte(R);for(var H=0;P.length-H>255;)M.writeByte(255),M.writeBytes(P,H,255),H+=255;M.writeByte(P.length-H),M.writeBytes(P,H,P.length-H),M.writeByte(0),M.writeString(";")};var B=function(M){var R=M,P=0,H=0,G={};return G.write=function(ie,ce){if(ie>>>ce)throw"length over";for(;P+ce>=8;)R.writeByte(255&(ie<>>=8-P,H=0,P=0;H=ie<0&&R.writeByte(H)},G},F=function(M){for(var R=1<>6,128|s&63):s<55296||s>=57344?n.push(224|s>>12,128|s>>6&63,128|s&63):(i++,s=65536+((s&1023)<<10|t.charCodeAt(i)&1023),n.push(240|s>>18,128|s>>12&63,128|s>>6&63,128|s&63))}return n}return e(r)}})();(function(r){typeof define=="function"&&define.amd?define([],r):typeof j8=="object"&&(W8.exports=r())})(function(){return G8})});var q1=class extends q2{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Y1=class r extends q1{static makeCurrent(){X2(new r)}onAndCancel(e,t,n){return e.addEventListener(t,n),()=>{e.removeEventListener(t,n)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,t){return t=t||this.getDefaultDocument(),t.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return t==="window"?window:t==="document"?e:t==="body"?e.body:null}getBaseHref(e){let t=EE();return t==null?null:FE(t)}resetBaseElement(){Ou=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Y2(document.cookie,e)}},Ou=null;function EE(){return Ou=Ou||document.querySelector("base"),Ou?Ou.getAttribute("href"):null}function FE(r){return new URL(r,document.baseURI).pathname}var _E=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=bt({token:e,factory:e.\u0275fac});let r=e;return r})(),$1=new An(""),rx=(()=>{let e=class e{constructor(n,i){this._zone=i,this._eventNameToPlugin=new Map,n.forEach(s=>{s.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,i,s){return this._findPluginFor(i).addEventListener(n,i,s)}getZone(){return this._zone}_findPluginFor(n){let i=this._eventNameToPlugin.get(n);if(i)return i;if(i=this._plugins.find(o=>o.supports(n)),!i)throw new nn(5101,!1);return this._eventNameToPlugin.set(n,i),i}};e.\u0275fac=function(i){return new(i||e)(Lt($1),Lt(Wi))},e.\u0275prov=bt({token:e,factory:e.\u0275fac});let r=e;return r})(),vc=class{constructor(e){this._doc=e}},W1="ng-app-id",sx=(()=>{let e=class e{constructor(n,i,s,o={}){this.doc=n,this.appId=i,this.nonce=s,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=j1(o),this.resetHostNodes()}addStyles(n){for(let i of n)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(n){for(let i of n)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(i=>i.remove()),n.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let i of this.getAllStyles())this.addStyleToHost(n,i)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let i of this.hostNodes)this.addStyleToHost(i,n)}onStyleRemoved(n){let i=this.styleRef;i.get(n)?.elements?.forEach(s=>s.remove()),i.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${W1}="${this.appId}"]`);if(n?.length){let i=new Map;return n.forEach(s=>{s.textContent!=null&&i.set(s.textContent,s)}),i}return null}changeUsageCount(n,i){let s=this.styleRef;if(s.has(n)){let o=s.get(n);return o.usage+=i,o.usage}return s.set(n,{usage:i,elements:[]}),i}getStyleElement(n,i){let s=this.styleNodesInDOM,o=s?.get(i);if(o?.parentNode===n)return s.delete(i),o.removeAttribute(W1),o;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(W1,this.appId),n.appendChild(a),a}}addStyleToHost(n,i){let s=this.getStyleElement(n,i),o=this.styleRef,a=o.get(i)?.elements;a?a.push(s):o.set(i,{elements:[s],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(i){return new(i||e)(Lt(di),Lt(L1),Lt(N1,8),Lt(ku))},e.\u0275prov=bt({token:e,factory:e.\u0275fac});let r=e;return r})(),X1={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},K1=/%COMP%/g,ox="%COMP%",vE=`_nghost-${ox}`,yE=`_ngcontent-${ox}`,bE=!0,BE=new An("",{providedIn:"root",factory:()=>bE});function AE(r){return yE.replace(K1,r)}function wE(r){return vE.replace(K1,r)}function ax(r,e){return e.map(t=>t.replace(K1,r))}var yc=(()=>{let e=class e{constructor(n,i,s,o,a,u,c,f=null){this.eventManager=n,this.sharedStylesHost=i,this.appId=s,this.removeStylesOnCompDestroy=o,this.doc=a,this.platformId=u,this.ngZone=c,this.nonce=f,this.rendererByCompId=new Map,this.platformIsServer=j1(u),this.defaultRenderer=new Lu(n,a,c,this.platformIsServer)}createRenderer(n,i){if(!n||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Au.ShadowDom&&(i=Ot(Me({},i),{encapsulation:Au.Emulated}));let s=this.getOrCreateRenderer(n,i);return s instanceof bc?s.applyToHost(n):s instanceof Nu&&s.applyStyles(),s}getOrCreateRenderer(n,i){let s=this.rendererByCompId,o=s.get(i.id);if(!o){let a=this.doc,u=this.ngZone,c=this.eventManager,f=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(i.encapsulation){case Au.Emulated:o=new bc(c,f,i,this.appId,l,a,u,h);break;case Au.ShadowDom:return new Z1(c,f,n,i,a,u,this.nonce,h);default:o=new Nu(c,f,i,l,a,u,h);break}s.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(i){return new(i||e)(Lt(rx),Lt(sx),Lt(L1),Lt(BE),Lt(di),Lt(ku),Lt(Wi),Lt(N1))},e.\u0275prov=bt({token:e,factory:e.\u0275fac});let r=e;return r})(),Lu=class{constructor(e,t,n,i){this.eventManager=e,this.doc=t,this.ngZone=n,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,t){return t?this.doc.createElementNS(X1[t]||t,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,t){(tx(e)?e.content:e).appendChild(t)}insertBefore(e,t,n){e&&(tx(e)?e.content:e).insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new nn(-5104,!1);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,i){if(i){t=i+":"+t;let s=X1[i];s?e.setAttributeNS(s,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){let i=X1[n];i?e.removeAttributeNS(i,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,i){i&(Pu.DashCase|Pu.Important)?e.style.setProperty(t,n,i&Pu.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&Pu.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e!=null&&(e[t]=n)}setValue(e,t){e.nodeValue=t}listen(e,t,n){if(typeof e=="string"&&(e=Ro().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${t}`);return this.eventManager.addEventListener(e,t,this.decoratePreventDefault(n))}decoratePreventDefault(e){return t=>{if(t==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(t)):e(t))===!1&&t.preventDefault()}}};function tx(r){return r.tagName==="TEMPLATE"&&r.content!==void 0}var Z1=class extends Lu{constructor(e,t,n,i,s,o,a,u){super(e,s,o,u),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=ax(i.id,i.styles);for(let f of c){let l=document.createElement("style");a&&l.setAttribute("nonce",a),l.textContent=f,this.shadowRoot.appendChild(l)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Nu=class extends Lu{constructor(e,t,n,i,s,o,a,u){super(e,s,o,a),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=i,this.styles=u?ax(u,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},bc=class extends Nu{constructor(e,t,n,i,s,o,a,u){let c=i+"-"+n.id;super(e,t,n,s,o,a,u,c),this.contentAttr=AE(c),this.hostAttr=wE(c)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,t){let n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}},SE=(()=>{let e=class e extends vc{constructor(n){super(n)}supports(n){return!0}addEventListener(n,i,s){return n.addEventListener(i,s,!1),()=>this.removeEventListener(n,i,s)}removeEventListener(n,i,s){return n.removeEventListener(i,s)}};e.\u0275fac=function(i){return new(i||e)(Lt(di))},e.\u0275prov=bt({token:e,factory:e.\u0275fac});let r=e;return r})(),nx=["alt","control","meta","shift"],ME={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},TE={alt:r=>r.altKey,control:r=>r.ctrlKey,meta:r=>r.metaKey,shift:r=>r.shiftKey},kE=(()=>{let e=class e extends vc{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,i,s){let o=e.parseEventName(i),a=e.eventCallback(o.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ro().onAndCancel(n,o.domEventName,a))}static parseEventName(n){let i=n.toLowerCase().split("."),s=i.shift();if(i.length===0||!(s==="keydown"||s==="keyup"))return null;let o=e._normalizeKey(i.pop()),a="",u=i.indexOf("code");if(u>-1&&(i.splice(u,1),a="code."),nx.forEach(f=>{let l=i.indexOf(f);l>-1&&(i.splice(l,1),a+=f+".")}),a+=o,i.length!=0||o.length===0)return null;let c={};return c.domEventName=s,c.fullKey=a,c}static matchEventFullKeyCode(n,i){let s=ME[n.key]||n.key,o="";return i.indexOf("code.")>-1&&(s=n.code,o="code."),s==null||!s?!1:(s=s.toLowerCase(),s===" "?s="space":s==="."&&(s="dot"),nx.forEach(a=>{if(a!==s){let u=TE[a];u(n)&&(o+=a+".")}}),o+=s,o===i)}static eventCallback(n,i,s){return o=>{e.matchEventFullKeyCode(o,n)&&s.runGuarded(()=>i(o))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(i){return new(i||e)(Lt(di))},e.\u0275prov=bt({token:e,factory:e.\u0275fac});let r=e;return r})();function ux(r,e){return W2(Me({rootComponent:r},PE(e)))}function PE(r){return{appProviders:[...NE,...r?.providers??[]],platformProviders:LE}}function IE(){Y1.makeCurrent()}function RE(){return new O1}function OE(){return B2(document),document}var LE=[{provide:ku,useValue:$2},{provide:A2,useValue:IE,multi:!0},{provide:di,useFactory:OE,deps:[]}];var NE=[{provide:b2,useValue:"root"},{provide:O1,useFactory:RE,deps:[]},{provide:$1,useClass:SE,multi:!0,deps:[di,Wi,ku]},{provide:$1,useClass:kE,multi:!0,deps:[di]},yc,sx,rx,{provide:xc,useExisting:yc},{provide:Z2,useClass:_E,deps:[]},[]];var cx=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(i){return new(i||e)(Lt(di))},e.\u0275prov=bt({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})();var J1=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=bt({token:e,factory:function(i){let s=null;return i?s=new(i||e):s=Lt(UE),s},providedIn:"root"});let r=e;return r})(),UE=(()=>{let e=class e extends J1{constructor(n){super(),this._doc=n}sanitize(n,i){if(i==null)return null;switch(n){case Gs.NONE:return i;case Gs.HTML:return Po(i,"HTML")?ko(i):R2(this._doc,String(i)).toString();case Gs.STYLE:return Po(i,"Style")?ko(i):i;case Gs.SCRIPT:if(Po(i,"Script"))return ko(i);throw new nn(5200,!1);case Gs.URL:return Po(i,"URL")?ko(i):I2(String(i));case Gs.RESOURCE_URL:if(Po(i,"ResourceURL"))return ko(i);throw new nn(5201,!1);default:throw new nn(5202,!1)}}bypassSecurityTrustHtml(n){return S2(n)}bypassSecurityTrustStyle(n){return M2(n)}bypassSecurityTrustScript(n){return T2(n)}bypassSecurityTrustUrl(n){return k2(n)}bypassSecurityTrustResourceUrl(n){return P2(n)}};e.\u0275fac=function(i){return new(i||e)(Lt(di))},e.\u0275prov=bt({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})();var pt="primary",Qu=Symbol("RouteTitle"),ih=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){let t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}};function zo(r){return new ih(r)}function VE(r,e,t){let n=t.path.split("/");if(n.length>r.length||t.pathMatch==="full"&&(e.hasChildren()||n.lengthn[s]===i)}else return r===e}function mx(r){return r.length>0?r[r.length-1]:null}function os(r){return p2(r)?r:_c(r)?li(Promise.resolve(r)):Dt(r)}var HE={exact:gx,subset:Ex},Cx={exact:GE,subset:jE,ignored:()=>!0};function lx(r,e,t){return HE[t.paths](r.root,e.root,t.matrixParams)&&Cx[t.queryParams](r.queryParams,e.queryParams)&&!(t.fragment==="exact"&&r.fragment!==e.fragment)}function GE(r,e){return lr(r,e)}function gx(r,e,t){if(!Ws(r.segments,e.segments)||!wc(r.segments,e.segments,t)||r.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!r.children[n]||!gx(r.children[n],e.children[n],t))return!1;return!0}function jE(r,e){return Object.keys(e).length<=Object.keys(r).length&&Object.keys(e).every(t=>xx(r[t],e[t]))}function Ex(r,e,t){return Fx(r,e,e.segments,t)}function Fx(r,e,t,n){if(r.segments.length>t.length){let i=r.segments.slice(0,t.length);return!(!Ws(i,t)||e.hasChildren()||!wc(i,t,n))}else if(r.segments.length===t.length){if(!Ws(r.segments,t)||!wc(r.segments,t,n))return!1;for(let i in e.children)if(!r.children[i]||!Ex(r.children[i],e.children[i],n))return!1;return!0}else{let i=t.slice(0,r.segments.length),s=t.slice(r.segments.length);return!Ws(r.segments,i)||!wc(r.segments,i,n)||!r.children[pt]?!1:Fx(r.children[pt],e,s,n)}}function wc(r,e,t){return e.every((n,i)=>Cx[t](r[i].parameters,n.parameters))}var rs=class{constructor(e=new Ut([],{}),t={},n=null){this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap??=zo(this.queryParams),this._queryParamMap}toString(){return qE.serialize(this)}},Ut=class{constructor(e,t){this.segments=e,this.children=t,this.parent=null,Object.values(t).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Sc(this)}},js=class{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap??=zo(this.parameters),this._parameterMap}toString(){return vx(this)}};function WE(r,e){return Ws(r,e)&&r.every((t,n)=>lr(t.parameters,e[n].parameters))}function Ws(r,e){return r.length!==e.length?!1:r.every((t,n)=>t.path===e[n].path)}function XE(r,e){let t=[];return Object.entries(r.children).forEach(([n,i])=>{n===pt&&(t=t.concat(e(i,n)))}),Object.entries(r.children).forEach(([n,i])=>{n!==pt&&(t=t.concat(e(i,n)))}),t}var Mh=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=bt({token:e,factory:()=>new Tc,providedIn:"root"});let r=e;return r})(),Tc=class{parse(e){let t=new oh(e);return new rs(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){let t=`/${Uu(e.root,!0)}`,n=ZE(e.queryParams),i=typeof e.fragment=="string"?`#${YE(e.fragment)}`:"";return`${t}${n}${i}`}},qE=new Tc;function Sc(r){return r.segments.map(e=>vx(e)).join("/")}function Uu(r,e){if(!r.hasChildren())return Sc(r);if(e){let t=r.children[pt]?Uu(r.children[pt],!1):"",n=[];return Object.entries(r.children).forEach(([i,s])=>{i!==pt&&n.push(`${i}:${Uu(s,!1)}`)}),n.length>0?`${t}(${n.join("//")})`:t}else{let t=XE(r,(n,i)=>i===pt?[Uu(r.children[pt],!1)]:[`${i}:${Uu(n,!1)}`]);return Object.keys(r.children).length===1&&r.children[pt]!=null?`${Sc(r)}/${t[0]}`:`${Sc(r)}/(${t.join("//")})`}}function _x(r){return encodeURIComponent(r).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Bc(r){return _x(r).replace(/%3B/gi,";")}function YE(r){return encodeURI(r)}function sh(r){return _x(r).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Mc(r){return decodeURIComponent(r)}function hx(r){return Mc(r.replace(/\+/g,"%20"))}function vx(r){return`${sh(r.path)}${$E(r.parameters)}`}function $E(r){return Object.entries(r).map(([e,t])=>`;${sh(e)}=${sh(t)}`).join("")}function ZE(r){let e=Object.entries(r).map(([t,n])=>Array.isArray(n)?n.map(i=>`${Bc(t)}=${Bc(i)}`).join("&"):`${Bc(t)}=${Bc(n)}`).filter(t=>t);return e.length?`?${e.join("&")}`:""}var KE=/^[^\/()?;#]+/;function Q1(r){let e=r.match(KE);return e?e[0]:""}var JE=/^[^\/()?;=#]+/;function QE(r){let e=r.match(JE);return e?e[0]:""}var eF=/^[^=?&#]+/;function tF(r){let e=r.match(eF);return e?e[0]:""}var nF=/^[^&#]+/;function iF(r){let e=r.match(nF);return e?e[0]:""}var oh=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ut([],{}):new Ut([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[pt]=new Ut(e,t)),n}parseSegment(){let e=Q1(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new nn(4009,!1);return this.capture(e),new js(Mc(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let t=QE(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){let i=Q1(this.remaining);i&&(n=i,this.capture(n))}e[Mc(t)]=Mc(n)}parseQueryParam(e){let t=tF(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){let o=iF(this.remaining);o&&(n=o,this.capture(n))}let i=hx(t),s=hx(n);if(e.hasOwnProperty(i)){let o=e[i];Array.isArray(o)||(o=[o],e[i]=o),o.push(s)}else e[i]=s}parseParens(e){let t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Q1(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new nn(4010,!1);let s;n.indexOf(":")>-1?(s=n.slice(0,n.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=pt);let o=this.parseChildren();t[s]=Object.keys(o).length===1?o[pt]:new Ut([],o),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new nn(4011,!1)}};function yx(r){return r.segments.length>0?new Ut([],{[pt]:r}):r}function bx(r){let e={};for(let[n,i]of Object.entries(r.children)){let s=bx(i);if(n===pt&&s.segments.length===0&&s.hasChildren())for(let[o,a]of Object.entries(s.children))e[o]=a;else(s.segments.length>0||s.hasChildren())&&(e[n]=s)}let t=new Ut(r.segments,e);return rF(t)}function rF(r){if(r.numberOfChildren===1&&r.children[pt]){let e=r.children[pt];return new Ut(r.segments.concat(e.segments),e.children)}return r}function Ho(r){return r instanceof rs}function sF(r,e,t=null,n=null){let i=Bx(r);return Ax(i,e,t,n)}function Bx(r){let e;function t(s){let o={};for(let u of s.children){let c=t(u);o[u.outlet]=c}let a=new Ut(s.url,o);return s===r&&(e=a),a}let n=t(r.root),i=yx(n);return e??i}function Ax(r,e,t,n){let i=r;for(;i.parent;)i=i.parent;if(e.length===0)return eh(i,i,i,t,n);let s=oF(e);if(s.toRoot())return eh(i,i,new Ut([],{}),t,n);let o=aF(s,i,r),a=o.processChildren?Hu(o.segmentGroup,o.index,s.commands):Sx(o.segmentGroup,o.index,s.commands);return eh(i,o.segmentGroup,a,t,n)}function kc(r){return typeof r=="object"&&r!=null&&!r.outlets&&!r.segmentPath}function Wu(r){return typeof r=="object"&&r!=null&&r.outlets}function eh(r,e,t,n,i){let s={};n&&Object.entries(n).forEach(([u,c])=>{s[u]=Array.isArray(c)?c.map(f=>`${f}`):`${c}`});let o;r===e?o=t:o=wx(r,e,t);let a=yx(bx(o));return new rs(a,s,i)}function wx(r,e,t){let n={};return Object.entries(r.children).forEach(([i,s])=>{s===e?n[i]=t:n[i]=wx(s,e,t)}),new Ut(r.segments,n)}var Pc=class{constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&kc(n[0]))throw new nn(4003,!1);let i=n.find(Wu);if(i&&i!==mx(n))throw new nn(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function oF(r){if(typeof r[0]=="string"&&r.length===1&&r[0]==="/")return new Pc(!0,0,r);let e=0,t=!1,n=r.reduce((i,s,o)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let a={};return Object.entries(s.outlets).forEach(([u,c])=>{a[u]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(s.segmentPath)return[...i,s.segmentPath]}return typeof s!="string"?[...i,s]:o===0?(s.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?t=!0:a===".."?e++:a!=""&&i.push(a))}),i):[...i,s]},[]);return new Pc(t,e,n)}var Uo=class{constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}};function aF(r,e,t){if(r.isAbsolute)return new Uo(e,!0,0);if(!t)return new Uo(e,!1,NaN);if(t.parent===null)return new Uo(t,!0,0);let n=kc(r.commands[0])?0:1,i=t.segments.length-1+n;return uF(t,i,r.numberOfDoubleDots)}function uF(r,e,t){let n=r,i=e,s=t;for(;s>i;){if(s-=i,n=n.parent,!n)throw new nn(4005,!1);i=n.segments.length}return new Uo(n,!1,i-s)}function cF(r){return Wu(r[0])?r[0].outlets:{[pt]:r}}function Sx(r,e,t){if(r??=new Ut([],{}),r.segments.length===0&&r.hasChildren())return Hu(r,e,t);let n=fF(r,e,t),i=t.slice(n.commandIndex);if(n.match&&n.pathIndexs!==pt)&&r.children[pt]&&r.numberOfChildren===1&&r.children[pt].segments.length===0){let s=Hu(r.children[pt],e,t);return new Ut(r.segments,s.children)}return Object.entries(n).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(i[s]=Sx(r.children[s],e,o))}),Object.entries(r.children).forEach(([s,o])=>{n[s]===void 0&&(i[s]=o)}),new Ut(r.segments,i)}}function fF(r,e,t){let n=0,i=e,s={match:!1,pathIndex:0,commandIndex:0};for(;i=t.length)return s;let o=r.segments[i],a=t[n];if(Wu(a))break;let u=`${a}`,c=n0&&u===void 0)break;if(u&&c&&typeof c=="object"&&c.outlets===void 0){if(!Dx(u,c,o))return s;n+=2}else{if(!Dx(u,{},o))return s;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function ah(r,e,t){let n=r.segments.slice(0,e),i=0;for(;i{typeof n=="string"&&(n=[n]),n!==null&&(e[t]=ah(new Ut([],{}),0,n))}),e}function dx(r){let e={};return Object.entries(r).forEach(([t,n])=>e[t]=`${n}`),e}function Dx(r,e,t){return r==t.path&&lr(e,t.parameters)}var Gu="imperative",kn=function(r){return r[r.NavigationStart=0]="NavigationStart",r[r.NavigationEnd=1]="NavigationEnd",r[r.NavigationCancel=2]="NavigationCancel",r[r.NavigationError=3]="NavigationError",r[r.RoutesRecognized=4]="RoutesRecognized",r[r.ResolveStart=5]="ResolveStart",r[r.ResolveEnd=6]="ResolveEnd",r[r.GuardsCheckStart=7]="GuardsCheckStart",r[r.GuardsCheckEnd=8]="GuardsCheckEnd",r[r.RouteConfigLoadStart=9]="RouteConfigLoadStart",r[r.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",r[r.ChildActivationStart=11]="ChildActivationStart",r[r.ChildActivationEnd=12]="ChildActivationEnd",r[r.ActivationStart=13]="ActivationStart",r[r.ActivationEnd=14]="ActivationEnd",r[r.Scroll=15]="Scroll",r[r.NavigationSkipped=16]="NavigationSkipped",r}(kn||{}),wi=class{constructor(e,t){this.id=e,this.url=t}},Xu=class extends wi{constructor(e,t,n="imperative",i=null){super(e,t),this.type=kn.NavigationStart,this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Xs=class extends wi{constructor(e,t,n){super(e,t),this.urlAfterRedirects=n,this.type=kn.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},pi=function(r){return r[r.Redirect=0]="Redirect",r[r.SupersededByNewNavigation=1]="SupersededByNewNavigation",r[r.NoDataFromResolver=2]="NoDataFromResolver",r[r.GuardRejected=3]="GuardRejected",r}(pi||{}),uh=function(r){return r[r.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",r[r.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",r}(uh||{}),ss=class extends wi{constructor(e,t,n,i){super(e,t),this.reason=n,this.code=i,this.type=kn.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},qs=class extends wi{constructor(e,t,n,i){super(e,t),this.reason=n,this.code=i,this.type=kn.NavigationSkipped}},qu=class extends wi{constructor(e,t,n,i){super(e,t),this.error=n,this.target=i,this.type=kn.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Ic=class extends wi{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i,this.type=kn.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ch=class extends wi{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i,this.type=kn.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},fh=class extends wi{constructor(e,t,n,i,s){super(e,t),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=s,this.type=kn.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},lh=class extends wi{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i,this.type=kn.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},hh=class extends wi{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i,this.type=kn.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},dh=class{constructor(e){this.route=e,this.type=kn.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Dh=class{constructor(e){this.route=e,this.type=kn.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},ph=class{constructor(e){this.snapshot=e,this.type=kn.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},xh=class{constructor(e){this.snapshot=e,this.type=kn.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},mh=class{constructor(e){this.snapshot=e,this.type=kn.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ch=class{constructor(e){this.snapshot=e,this.type=kn.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Yu=class{},$u=class{constructor(e){this.url=e}};var gh=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Vc,this.attachRef=null}},Vc=(()=>{let e=class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,i){let s=this.getOrCreateContext(n);s.outlet=i,this.contexts.set(n,s)}onChildOutletDestroyed(n){let i=this.getContext(n);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let i=this.getContext(n);return i||(i=new gh,this.contexts.set(n,i)),i}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=bt({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})(),Rc=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){let t=Eh(e,this._root);return t?t.children.map(n=>n.value):[]}firstChild(e){let t=Eh(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){let t=Fh(e,this._root);return t.length<2?[]:t[t.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return Fh(e,this._root).map(t=>t.value)}};function Eh(r,e){if(r===e.value)return e;for(let t of e.children){let n=Eh(r,t);if(n)return n}return null}function Fh(r,e){if(r===e.value)return[e];for(let t of e.children){let n=Fh(r,t);if(n.length)return n.unshift(e),n}return[]}var Di=class{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}};function No(r){let e={};return r&&r.children.forEach(t=>e[t.value.outlet]=t),e}var Oc=class extends Rc{constructor(e,t){super(e),this.snapshot=t,kh(this,e)}toString(){return this.snapshot.toString()}};function Mx(r){let e=hF(r),t=new bi([new js("",{})]),n=new bi({}),i=new bi({}),s=new bi({}),o=new bi(""),a=new Vt(t,n,s,o,i,pt,r,e.root);return a.snapshot=e.root,new Oc(new Di(a,[]),e)}function hF(r){let e={},t={},n={},i="",s=new Zu([],e,n,i,t,pt,r,null,{});return new Lc("",new Di(s,[]))}var Vt=class{constructor(e,t,n,i,s,o,a,u){this.urlSubject=e,this.paramsSubject=t,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=s,this.outlet=o,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(Yt(c=>c[Qu]))??Dt(void 0),this.url=e,this.params=t,this.queryParams=n,this.fragment=i,this.data=s}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(Yt(e=>zo(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Yt(e=>zo(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Th(r,e,t="emptyOnly"){let n,{routeConfig:i}=r;return e!==null&&(t==="always"||i?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:Me(Me({},e.params),r.params),data:Me(Me({},e.data),r.data),resolve:Me(Me(Me(Me({},r.data),e.data),i?.data),r._resolvedData)}:n={params:Me({},r.params),data:Me({},r.data),resolve:Me(Me({},r.data),r._resolvedData??{})},i&&kx(i)&&(n.resolve[Qu]=i.title),n}var Zu=class{get title(){return this.data?.[Qu]}constructor(e,t,n,i,s,o,a,u,c){this.url=e,this.params=t,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=o,this.component=a,this.routeConfig=u,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=zo(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=zo(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),t=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${t}')`}},Lc=class extends Rc{constructor(e,t){super(t),this.url=e,kh(this,t)}toString(){return Tx(this._root)}};function kh(r,e){e.value._routerState=r,e.children.forEach(t=>kh(r,t))}function Tx(r){let e=r.children.length>0?` { ${r.children.map(Tx).join(", ")} } `:"";return`${r.value}${e}`}function th(r){if(r.snapshot){let e=r.snapshot,t=r._futureSnapshot;r.snapshot=t,lr(e.queryParams,t.queryParams)||r.queryParamsSubject.next(t.queryParams),e.fragment!==t.fragment&&r.fragmentSubject.next(t.fragment),lr(e.params,t.params)||r.paramsSubject.next(t.params),zE(e.url,t.url)||r.urlSubject.next(t.url),lr(e.data,t.data)||r.dataSubject.next(t.data)}else r.snapshot=r._futureSnapshot,r.dataSubject.next(r._futureSnapshot.data)}function _h(r,e){let t=lr(r.params,e.params)&&WE(r.url,e.url),n=!r.parent!=!e.parent;return t&&!n&&(!r.parent||_h(r.parent,e.parent))}function kx(r){return typeof r.title=="string"||r.title===null}var Ph=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=pt,this.activateEvents=new Ve,this.deactivateEvents=new Ve,this.attachEvents=new Ve,this.detachEvents=new Ve,this.parentContexts=lt(Vc),this.location=lt(U2),this.changeDetector=lt(Tr),this.environmentInjector=lt(hc),this.inputBinder=lt(Ih,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:i,previousValue:s}=n.name;if(i)return;this.isTrackedInParentContexts(s)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(s)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new nn(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new nn(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new nn(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,i){this.activated=n,this._activatedRoute=i,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,i){if(this.isActivated)throw new nn(4013,!1);this._activatedRoute=n;let s=this.location,a=n.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,c=new vh(n,u,s.injector);this.activated=s.createComponent(a,{index:s.length,injector:c,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=is({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[dc]});let r=e;return r})(),vh=class r{__ngOutletInjector(e){return new r(this.route,this.childContexts,e)}constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===Vt?this.route:e===Vc?this.childContexts:this.parent.get(e,t)}},Ih=new An("");function dF(r,e,t){let n=Ku(r,e._root,t?t._root:void 0);return new Oc(n,e)}function Ku(r,e,t){if(t&&r.shouldReuseRoute(e.value,t.value.snapshot)){let n=t.value;n._futureSnapshot=e.value;let i=DF(r,e,t);return new Di(n,i)}else{if(r.shouldAttach(e.value)){let s=r.retrieve(e.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=e.value,o.children=e.children.map(a=>Ku(r,a)),o}}let n=pF(e.value),i=e.children.map(s=>Ku(r,s));return new Di(n,i)}}function DF(r,e,t){return e.children.map(n=>{for(let i of t.children)if(r.shouldReuseRoute(n.value,i.value.snapshot))return Ku(r,n,i);return Ku(r,n)})}function pF(r){return new Vt(new bi(r.url),new bi(r.params),new bi(r.queryParams),new bi(r.fragment),new bi(r.data),r.outlet,r.component,r)}var Px="ngNavigationCancelingError";function Ix(r,e){let{redirectTo:t,navigationBehaviorOptions:n}=Ho(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,i=Rx(!1,pi.Redirect);return i.url=t,i.navigationBehaviorOptions=n,i}function Rx(r,e){let t=new Error(`NavigationCancelingError: ${r||""}`);return t[Px]=!0,t.cancellationCode=e,t}function xF(r){return Ox(r)&&Ho(r.url)}function Ox(r){return!!r&&r[Px]}var mF=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=Ee({type:e,selectors:[["ng-component"]],standalone:!0,features:[Fe],decls:1,vars:0,template:function(i,s){i&1&&de(0,"router-outlet")},dependencies:[Ph],encapsulation:2});let r=e;return r})();function CF(r,e){return r.providers&&!r._injector&&(r._injector=z2(r.providers,e,`Route: ${r.path}`)),r._injector??e}function Rh(r){let e=r.children&&r.children.map(Rh),t=e?Ot(Me({},r),{children:e}):Me({},r);return!t.component&&!t.loadComponent&&(e||t.loadChildren)&&t.outlet&&t.outlet!==pt&&(t.component=mF),t}function hr(r){return r.outlet||pt}function gF(r,e){let t=r.filter(n=>hr(n)===e);return t.push(...r.filter(n=>hr(n)!==e)),t}function e0(r){if(!r)return null;if(r.routeConfig?._injector)return r.routeConfig._injector;for(let e=r.parent;e;e=e.parent){let t=e.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}var EF=(r,e,t,n)=>Yt(i=>(new yh(e,i.targetRouterState,i.currentRouterState,t,n).activate(r),i)),yh=class{constructor(e,t,n,i,s){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=s}activate(e){let t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),th(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){let i=No(t);e.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,i[o],n),delete i[o]}),Object.values(i).forEach(s=>{this.deactivateRouteAndItsChildren(s,n)})}deactivateRoutes(e,t,n){let i=e.value,s=t?t.value:null;if(i===s)if(i.component){let o=n.getContext(i.outlet);o&&this.deactivateChildRoutes(e,t,o.children)}else this.deactivateChildRoutes(e,t,n);else s&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(e,t){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){let n=t.getContext(e.value.outlet),i=n&&e.value.component?n.children:t,s=No(e);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,i);if(n&&n.outlet){let o=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:o,route:e,contexts:a})}}deactivateRouteAndOutlet(e,t){let n=t.getContext(e.value.outlet),i=n&&e.value.component?n.children:t,s=No(e);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,t,n){let i=No(t);e.children.forEach(s=>{this.activateRoutes(s,i[s.value.outlet],n),this.forwardEvent(new Ch(s.value.snapshot))}),e.children.length&&this.forwardEvent(new xh(e.value.snapshot))}activateRoutes(e,t,n){let i=e.value,s=t?t.value:null;if(th(i),i===s)if(i.component){let o=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,t,o.children)}else this.activateChildRoutes(e,t,n);else if(i.component){let o=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),th(a.route.value),this.activateChildRoutes(e,null,o.children)}else{let a=e0(i.snapshot);o.attachRef=null,o.route=i,o.injector=a,o.outlet&&o.outlet.activateWith(i,o.injector),this.activateChildRoutes(e,null,o.children)}}else this.activateChildRoutes(e,null,n)}},Nc=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},Vo=class{constructor(e,t){this.component=e,this.route=t}};function FF(r,e,t){let n=r._root,i=e?e._root:null;return Vu(n,i,t,[n.value])}function _F(r){let e=r.routeConfig?r.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:r,guards:e}}function jo(r,e){let t=Symbol(),n=e.get(r,t);return n===t?typeof r=="function"&&!y2(r)?r:e.get(r):n}function Vu(r,e,t,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=No(e);return r.children.forEach(o=>{vF(o,s[o.value.outlet],t,n.concat([o.value]),i),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,a])=>ju(a,t.getContext(o),i)),i}function vF(r,e,t,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=r.value,o=e?e.value:null,a=t?t.getContext(r.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let u=yF(o,s,s.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new Nc(n)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?Vu(r,e,a?a.children:null,n,i):Vu(r,e,t,n,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Vo(a.outlet.component,o))}else o&&ju(e,a,i),i.canActivateChecks.push(new Nc(n)),s.component?Vu(r,null,a?a.children:null,n,i):Vu(r,null,t,n,i);return i}function yF(r,e,t){if(typeof t=="function")return t(r,e);switch(t){case"pathParamsChange":return!Ws(r.url,e.url);case"pathParamsOrQueryParamsChange":return!Ws(r.url,e.url)||!lr(r.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!_h(r,e)||!lr(r.queryParams,e.queryParams);case"paramsChange":default:return!_h(r,e)}}function ju(r,e,t){let n=No(r),i=r.value;Object.entries(n).forEach(([s,o])=>{i.component?e?ju(o,e.children.getContext(s),t):ju(o,null,t):ju(o,e,t)}),i.component?e&&e.outlet&&e.outlet.isActivated?t.canDeactivateChecks.push(new Vo(e.outlet.component,i)):t.canDeactivateChecks.push(new Vo(null,i)):t.canDeactivateChecks.push(new Vo(null,i))}function t0(r){return typeof r=="function"}function bF(r){return typeof r=="boolean"}function BF(r){return r&&t0(r.canLoad)}function AF(r){return r&&t0(r.canActivate)}function wF(r){return r&&t0(r.canActivateChild)}function SF(r){return r&&t0(r.canDeactivate)}function MF(r){return r&&t0(r.canMatch)}function Lx(r){return r instanceof x2||r?.name==="EmptyError"}var Ac=Symbol("INITIAL_VALUE");function Go(){return fr(r=>S1(r.map(e=>e.pipe(To(1),_2(Ac)))).pipe(Yt(e=>{for(let t of e)if(t!==!0){if(t===Ac)return Ac;if(t===!1||t instanceof rs)return t}return!0}),So(e=>e!==Ac),To(1)))}function TF(r,e){return Bi(t=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:s,canDeactivateChecks:o}}=t;return o.length===0&&s.length===0?Dt(Ot(Me({},t),{guardsResult:!0})):kF(o,n,i,r).pipe(Bi(a=>a&&bF(a)?PF(n,s,r,e):Dt(a)),Yt(a=>Ot(Me({},t),{guardsResult:a})))})}function kF(r,e,t,n){return li(r).pipe(Bi(i=>NF(i.component,i.route,t,e,n)),ns(i=>i!==!0,!0))}function PF(r,e,t,n){return li(e).pipe(bu(i=>m2(RF(i.route.parent,n),IF(i.route,n),LF(r,i.path,t),OF(r,i.route,t))),ns(i=>i!==!0,!0))}function IF(r,e){return r!==null&&e&&e(new mh(r)),Dt(!0)}function RF(r,e){return r!==null&&e&&e(new ph(r)),Dt(!0)}function OF(r,e,t){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return Dt(!0);let i=n.map(s=>M1(()=>{let o=e0(e)??t,a=jo(s,o),u=AF(a)?a.canActivate(e,r):Hs(o,()=>a(e,r));return os(u).pipe(ns())}));return Dt(i).pipe(Go())}function LF(r,e,t){let n=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(o=>_F(o)).filter(o=>o!==null).map(o=>M1(()=>{let a=o.guards.map(u=>{let c=e0(o.node)??t,f=jo(u,c),l=wF(f)?f.canActivateChild(n,r):Hs(c,()=>f(n,r));return os(l).pipe(ns())});return Dt(a).pipe(Go())}));return Dt(s).pipe(Go())}function NF(r,e,t,n,i){let s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!s||s.length===0)return Dt(!0);let o=s.map(a=>{let u=e0(e)??i,c=jo(a,u),f=SF(c)?c.canDeactivate(r,e,t,n):Hs(u,()=>c(r,e,t,n));return os(f).pipe(ns())});return Dt(o).pipe(Go())}function UF(r,e,t,n){let i=e.canLoad;if(i===void 0||i.length===0)return Dt(!0);let s=i.map(o=>{let a=jo(o,r),u=BF(a)?a.canLoad(e,t):Hs(r,()=>a(e,t));return os(u)});return Dt(s).pipe(Go(),Nx(n))}function Nx(r){return D2(zn(e=>{if(Ho(e))throw Ix(r,e)}),Yt(e=>e===!0))}function VF(r,e,t,n){let i=e.canMatch;if(!i||i.length===0)return Dt(!0);let s=i.map(o=>{let a=jo(o,r),u=MF(a)?a.canMatch(e,t):Hs(r,()=>a(e,t));return os(u)});return Dt(s).pipe(Go(),Nx(n))}var Ju=class{constructor(e){this.segmentGroup=e||null}},Uc=class extends Error{constructor(e){super(),this.urlTree=e}};function Lo(r){return yu(new Ju(r))}function zF(r){return yu(new nn(4e3,!1))}function HF(r){return yu(Rx(!1,pi.GuardRejected))}var bh=class{constructor(e,t){this.urlSerializer=e,this.urlTree=t}lineralizeSegments(e,t){let n=[],i=t.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return Dt(n);if(i.numberOfChildren>1||!i.children[pt])return zF(e.redirectTo);i=i.children[pt]}}applyRedirectCommands(e,t,n){let i=this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),e,n);if(t.startsWith("/"))throw new Uc(i);return i}applyRedirectCreateUrlTree(e,t,n,i){let s=this.createSegmentGroup(e,t.root,n,i);return new rs(s,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){let n={};return Object.entries(e).forEach(([i,s])=>{if(typeof s=="string"&&s.startsWith(":")){let a=s.substring(1);n[i]=t[a]}else n[i]=s}),n}createSegmentGroup(e,t,n,i){let s=this.createSegments(e,t.segments,n,i),o={};return Object.entries(t.children).forEach(([a,u])=>{o[a]=this.createSegmentGroup(e,u,n,i)}),new Ut(s,o)}createSegments(e,t,n,i){return t.map(s=>s.path.startsWith(":")?this.findPosParam(e,s,i):this.findOrReturn(s,n))}findPosParam(e,t,n){let i=n[t.path.substring(1)];if(!i)throw new nn(4001,!1);return i}findOrReturn(e,t){let n=0;for(let i of t){if(i.path===e.path)return t.splice(n),i;n++}return e}},Bh={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function GF(r,e,t,n,i){let s=Oh(r,e,t);return s.matched?(n=CF(e,n),VF(n,e,t,i).pipe(Yt(o=>o===!0?s:Me({},Bh)))):Dt(s)}function Oh(r,e,t){if(e.path==="**")return jF(t);if(e.path==="")return e.pathMatch==="full"&&(r.hasChildren()||t.length>0)?Me({},Bh):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};let i=(e.matcher||VE)(t,r,e);if(!i)return Me({},Bh);let s={};Object.entries(i.posParams??{}).forEach(([a,u])=>{s[a]=u.path});let o=i.consumed.length>0?Me(Me({},s),i.consumed[i.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:i.consumed,remainingSegments:t.slice(i.consumed.length),parameters:o,positionalParamSegments:i.posParams??{}}}function jF(r){return{matched:!0,parameters:r.length>0?mx(r).parameters:{},consumedSegments:r,remainingSegments:[],positionalParamSegments:{}}}function px(r,e,t,n){return t.length>0&&qF(r,t,n)?{segmentGroup:new Ut(e,XF(n,new Ut(t,r.children))),slicedSegments:[]}:t.length===0&&YF(r,t,n)?{segmentGroup:new Ut(r.segments,WF(r,t,n,r.children)),slicedSegments:t}:{segmentGroup:new Ut(r.segments,r.children),slicedSegments:t}}function WF(r,e,t,n){let i={};for(let s of t)if(zc(r,e,s)&&!n[hr(s)]){let o=new Ut([],{});i[hr(s)]=o}return Me(Me({},n),i)}function XF(r,e){let t={};t[pt]=e;for(let n of r)if(n.path===""&&hr(n)!==pt){let i=new Ut([],{});t[hr(n)]=i}return t}function qF(r,e,t){return t.some(n=>zc(r,e,n)&&hr(n)!==pt)}function YF(r,e,t){return t.some(n=>zc(r,e,n))}function zc(r,e,t){return(r.hasChildren()||e.length>0)&&t.pathMatch==="full"?!1:t.path===""}function $F(r,e,t,n){return hr(r)!==n&&(n===pt||!zc(e,t,r))?!1:Oh(e,r,t).matched}function ZF(r,e,t){return e.length===0&&!r.children[t]}var Ah=class{};function KF(r,e,t,n,i,s,o="emptyOnly"){return new wh(r,e,t,n,i,o,s).recognize()}var JF=31,wh=class{constructor(e,t,n,i,s,o,a){this.injector=e,this.configLoader=t,this.rootComponentType=n,this.config=i,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=a,this.applyRedirects=new bh(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new nn(4002,`'${e.segmentGroup}'`)}recognize(){let e=px(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(Yt(t=>{let n=new Zu([],Object.freeze({}),Object.freeze(Me({},this.urlTree.queryParams)),this.urlTree.fragment,{},pt,this.rootComponentType,null,{}),i=new Di(n,t),s=new Lc("",i),o=sF(n,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),this.inheritParamsAndData(s._root,null),{state:s,tree:o}}))}match(e){return this.processSegmentGroup(this.injector,this.config,e,pt).pipe(Mo(n=>{if(n instanceof Uc)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Ju?this.noMatchError(n):n}))}inheritParamsAndData(e,t){let n=e.value,i=Th(n,t,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach(s=>this.inheritParamsAndData(s,n))}processSegmentGroup(e,t,n,i){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,t,n):this.processSegment(e,t,n,n.segments,i,!0).pipe(Yt(s=>s instanceof Di?[s]:[]))}processChildren(e,t,n){let i=[];for(let s of Object.keys(n.children))s==="primary"?i.unshift(s):i.push(s);return li(i).pipe(bu(s=>{let o=n.children[s],a=gF(t,s);return this.processSegmentGroup(e,a,o,s)}),F2((s,o)=>(s.push(...o),s)),T1(null),E2(),Bi(s=>{if(s===null)return Lo(n);let o=Ux(s);return QF(o),Dt(o)}))}processSegment(e,t,n,i,s,o){return li(t).pipe(bu(a=>this.processSegmentAgainstRoute(a._injector??e,t,a,n,i,s,o).pipe(Mo(u=>{if(u instanceof Ju)return Dt(null);throw u}))),ns(a=>!!a),Mo(a=>{if(Lx(a))return ZF(n,i,s)?Dt(new Ah):Lo(n);throw a}))}processSegmentAgainstRoute(e,t,n,i,s,o,a){return $F(n,i,s,o)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,i,n,s,o):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,i,t,n,s,o):Lo(i):Lo(i)}expandSegmentAgainstRouteUsingRedirect(e,t,n,i,s,o){let{matched:a,consumedSegments:u,positionalParamSegments:c,remainingSegments:f}=Oh(t,i,s);if(!a)return Lo(t);i.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>JF&&(this.allowRedirects=!1));let l=this.applyRedirects.applyRedirectCommands(u,i.redirectTo,c);return this.applyRedirects.lineralizeSegments(i,l).pipe(Bi(h=>this.processSegment(e,n,t,h.concat(f),o,!1)))}matchSegmentAgainstRoute(e,t,n,i,s){let o=GF(t,n,i,e,this.urlSerializer);return n.path==="**"&&(t.children={}),o.pipe(fr(a=>a.matched?(e=n._injector??e,this.getChildConfig(e,n,i).pipe(fr(({routes:u})=>{let c=n._loadedInjector??e,{consumedSegments:f,remainingSegments:l,parameters:h}=a,d=new Zu(f,h,Object.freeze(Me({},this.urlTree.queryParams)),this.urlTree.fragment,t_(n),hr(n),n.component??n._loadedComponent??null,n,n_(n)),{segmentGroup:x,slicedSegments:m}=px(t,f,l,u);if(m.length===0&&x.hasChildren())return this.processChildren(c,u,x).pipe(Yt(p=>p===null?null:new Di(d,p)));if(u.length===0&&m.length===0)return Dt(new Di(d,[]));let D=hr(n)===s;return this.processSegment(c,u,x,m,D?pt:s,!0).pipe(Yt(p=>new Di(d,p instanceof Di?[p]:[])))}))):Lo(t)))}getChildConfig(e,t,n){return t.children?Dt({routes:t.children,injector:e}):t.loadChildren?t._loadedRoutes!==void 0?Dt({routes:t._loadedRoutes,injector:t._loadedInjector}):UF(e,t,n,this.urlSerializer).pipe(Bi(i=>i?this.configLoader.loadChildren(e,t).pipe(zn(s=>{t._loadedRoutes=s.routes,t._loadedInjector=s.injector})):HF(t))):Dt({routes:[],injector:e})}};function QF(r){r.sort((e,t)=>e.value.outlet===pt?-1:t.value.outlet===pt?1:e.value.outlet.localeCompare(t.value.outlet))}function e_(r){let e=r.value.routeConfig;return e&&e.path===""}function Ux(r){let e=[],t=new Set;for(let n of r){if(!e_(n)){e.push(n);continue}let i=e.find(s=>n.value.routeConfig===s.value.routeConfig);i!==void 0?(i.children.push(...n.children),t.add(i)):e.push(n)}for(let n of t){let i=Ux(n.children);e.push(new Di(n.value,i))}return e.filter(n=>!t.has(n))}function t_(r){return r.data||{}}function n_(r){return r.resolve||{}}function i_(r,e,t,n,i,s){return Bi(o=>KF(r,e,t,n,o.extractedUrl,i,s).pipe(Yt(({state:a,tree:u})=>Ot(Me({},o),{targetSnapshot:a,urlAfterRedirects:u}))))}function r_(r,e){return Bi(t=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=t;if(!i.length)return Dt(t);let s=new Set(i.map(u=>u.route)),o=new Set;for(let u of s)if(!o.has(u))for(let c of Vx(u))o.add(c);let a=0;return li(o).pipe(bu(u=>s.has(u)?s_(u,n,r,e):(u.data=Th(u,u.parent,r).resolve,Dt(void 0))),zn(()=>a++),k1(1),Bi(u=>a===o.size?Dt(t):ts))})}function Vx(r){let e=r.children.map(t=>Vx(t)).flat();return[r,...e]}function s_(r,e,t,n){let i=r.routeConfig,s=r._resolve;return i?.title!==void 0&&!kx(i)&&(s[Qu]=i.title),o_(s,r,e,n).pipe(Yt(o=>(r._resolvedData=o,r.data=Th(r,r.parent,t).resolve,null)))}function o_(r,e,t,n){let i=rh(r);if(i.length===0)return Dt({});let s={};return li(i).pipe(Bi(o=>a_(r[o],e,t,n).pipe(ns(),zn(a=>{s[o]=a}))),k1(1),g2(s),Mo(o=>Lx(o)?ts:yu(o)))}function a_(r,e,t,n){let i=e0(e)??n,s=jo(r,i),o=s.resolve?s.resolve(e,t):Hs(i,()=>s(e,t));return os(o)}function nh(r){return fr(e=>{let t=r(e);return t?li(t).pipe(Yt(()=>e)):Dt(e)})}var zx=(()=>{let e=class e{buildTitle(n){let i,s=n.root;for(;s!==void 0;)i=this.getResolvedTitleForRoute(s)??i,s=s.children.find(o=>o.outlet===pt);return i}getResolvedTitleForRoute(n){return n.data[Qu]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=bt({token:e,factory:()=>lt(u_),providedIn:"root"});let r=e;return r})(),u_=(()=>{let e=class e extends zx{constructor(n){super(),this.title=n}updateTitle(n){let i=this.buildTitle(n);i!==void 0&&this.title.setTitle(i)}};e.\u0275fac=function(i){return new(i||e)(Lt(cx))},e.\u0275prov=bt({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})(),Lh=new An("",{providedIn:"root",factory:()=>({})}),Nh=new An(""),c_=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=lt(H1)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return Dt(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=os(n.loadComponent()).pipe(Yt(Hx),zn(o=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=o}),lc(()=>{this.componentLoaders.delete(n)})),s=new w1(i,()=>new zs).pipe(A1());return this.componentLoaders.set(n,s),s}loadChildren(n,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Dt({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let o=f_(i,this.compiler,n,this.onLoadEndListener).pipe(lc(()=>{this.childrenLoaders.delete(i)})),a=new w1(o,()=>new zs).pipe(A1());return this.childrenLoaders.set(i,a),a}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=bt({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})();function f_(r,e,t,n){return os(r.loadChildren()).pipe(Yt(Hx),Bi(i=>i instanceof V2||Array.isArray(i)?Dt(i):li(e.compileModuleAsync(i))),Yt(i=>{n&&n(r);let s,o,a=!1;return Array.isArray(i)?(o=i,a=!0):(s=i.create(t).injector,o=s.get(Nh,[],{optional:!0,self:!0}).flat()),{routes:o.map(Rh),injector:s}}))}function l_(r){return r&&typeof r=="object"&&"default"in r}function Hx(r){return l_(r)?r.default:r}var Uh=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=bt({token:e,factory:()=>lt(h_),providedIn:"root"});let r=e;return r})(),h_=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,i){return n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=bt({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})(),d_=new An("");var D_=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new zs,this.transitionAbortSubject=new zs,this.configLoader=lt(c_),this.environmentInjector=lt(hc),this.urlSerializer=lt(Mh),this.rootContexts=lt(Vc),this.location=lt(Ai),this.inputBindingEnabled=lt(Ih,{optional:!0})!==null,this.titleStrategy=lt(zx),this.options=lt(Lh,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=lt(Uh),this.createViewTransition=lt(d_,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>Dt(void 0),this.rootComponentType=null;let n=s=>this.events.next(new dh(s)),i=s=>this.events.next(new Dh(s));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let i=++this.navigationId;this.transitions?.next(Ot(Me(Me({},this.transitions.value),n),{id:i}))}setupNavigations(n,i,s){return this.transitions=new bi({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Gu,restoredState:null,currentSnapshot:s.snapshot,targetSnapshot:null,currentRouterState:s,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(So(o=>o.id!==0),Yt(o=>Ot(Me({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),fr(o=>{let a=!1,u=!1;return Dt(o).pipe(fr(c=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",pi.SupersededByNewNavigation),ts;this.currentTransition=o,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?Ot(Me({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let f=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),l=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!f&&l!=="reload"){let h="";return this.events.next(new qs(c.id,this.urlSerializer.serialize(c.rawUrl),h,uh.IgnoredSameUrlNavigation)),c.resolve(null),ts}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return Dt(c).pipe(fr(h=>{let d=this.transitions?.getValue();return this.events.next(new Xu(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),d!==this.transitions?.getValue()?ts:Promise.resolve(h)}),i_(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),zn(h=>{o.targetSnapshot=h.targetSnapshot,o.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation=Ot(Me({},this.currentNavigation),{finalUrl:h.urlAfterRedirects});let d=new Ic(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(d)}));if(f&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:h,extractedUrl:d,source:x,restoredState:m,extras:D}=c,p=new Xu(h,this.urlSerializer.serialize(d),x,m);this.events.next(p);let C=Mx(this.rootComponentType).snapshot;return this.currentTransition=o=Ot(Me({},c),{targetSnapshot:C,urlAfterRedirects:d,extras:Ot(Me({},D),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=d,Dt(o)}else{let h="";return this.events.next(new qs(c.id,this.urlSerializer.serialize(c.extractedUrl),h,uh.IgnoredByUrlHandlingStrategy)),c.resolve(null),ts}}),zn(c=>{let f=new ch(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(f)}),Yt(c=>(this.currentTransition=o=Ot(Me({},c),{guards:FF(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),o)),TF(this.environmentInjector,c=>this.events.next(c)),zn(c=>{if(o.guardsResult=c.guardsResult,Ho(c.guardsResult))throw Ix(this.urlSerializer,c.guardsResult);let f=new fh(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(f)}),So(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",pi.GuardRejected),!1)),nh(c=>{if(c.guards.canActivateChecks.length)return Dt(c).pipe(zn(f=>{let l=new lh(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(l)}),fr(f=>{let l=!1;return Dt(f).pipe(r_(this.paramsInheritanceStrategy,this.environmentInjector),zn({next:()=>l=!0,complete:()=>{l||this.cancelNavigationTransition(f,"",pi.NoDataFromResolver)}}))}),zn(f=>{let l=new hh(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(l)}))}),nh(c=>{let f=l=>{let h=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(l.routeConfig).pipe(zn(d=>{l.component=d}),Yt(()=>{})));for(let d of l.children)h.push(...f(d));return h};return S1(f(c.targetSnapshot.root)).pipe(T1(null),To(1))}),nh(()=>this.afterPreactivation()),fr(()=>{let{currentSnapshot:c,targetSnapshot:f}=o,l=this.createViewTransition?.(this.environmentInjector,c.root,f.root);return l?li(l).pipe(Yt(()=>o)):Dt(o)}),Yt(c=>{let f=dF(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=o=Ot(Me({},c),{targetRouterState:f}),this.currentNavigation.targetRouterState=f,o}),zn(()=>{this.events.next(new Yu)}),EF(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),To(1),zn({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Xs(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),v2(this.transitionAbortSubject.pipe(zn(c=>{throw c}))),lc(()=>{!a&&!u&&this.cancelNavigationTransition(o,"",pi.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),Mo(c=>{if(u=!0,Ox(c))this.events.next(new ss(o.id,this.urlSerializer.serialize(o.extractedUrl),c.message,c.cancellationCode)),xF(c)?this.events.next(new $u(c.url)):o.resolve(!1);else{this.events.next(new qu(o.id,this.urlSerializer.serialize(o.extractedUrl),c,o.targetSnapshot??void 0));try{o.resolve(n.errorHandler(c))}catch(f){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(f)}}return ts}))}))}cancelNavigationTransition(n,i,s){let o=new ss(n.id,this.urlSerializer.serialize(n.extractedUrl),i,s);this.events.next(o),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=bt({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})();function p_(r){return r!==Gu}var x_=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=bt({token:e,factory:()=>lt(m_),providedIn:"root"});let r=e;return r})(),Sh=class{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}},m_=(()=>{let e=class e extends Sh{};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=Tu(e)))(s||e)}})(),e.\u0275prov=bt({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})(),Gx=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=bt({token:e,factory:()=>lt(C_),providedIn:"root"});let r=e;return r})(),C_=(()=>{let e=class e extends Gx{constructor(){super(...arguments),this.location=lt(Ai),this.urlSerializer=lt(Mh),this.options=lt(Lh,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=lt(Uh),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new rs,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Mx(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(i=>{i.type==="popstate"&&n(i.url,i.state)})}handleRouterEvent(n,i){if(n instanceof Xu)this.stateMemento=this.createStateMemento();else if(n instanceof qs)this.rawUrlTree=i.initialUrl;else if(n instanceof Ic){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let s=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(s,i)}}else n instanceof Yu?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):n instanceof ss&&(n.code===pi.GuardRejected||n.code===pi.NoDataFromResolver)?this.restoreHistory(i):n instanceof qu?this.restoreHistory(i,!0):n instanceof Xs&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,i){let s=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(s)||i.extras.replaceUrl){let o=this.browserPageId,a=Me(Me({},i.extras.state),this.generateNgRouterState(i.id,o));this.location.replaceState(s,"",a)}else{let o=Me(Me({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(s,"",o)}}restoreHistory(n,i=!1){if(this.canceledNavigationResolution==="computed"){let s=this.browserPageId,o=this.currentPageId-s;o!==0?this.location.historyGo(o):this.currentUrlTree===n.finalUrl&&o===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,i){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:i}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=Tu(e)))(s||e)}})(),e.\u0275prov=bt({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})(),zu=function(r){return r[r.COMPLETE=0]="COMPLETE",r[r.FAILED=1]="FAILED",r[r.REDIRECTING=2]="REDIRECTING",r}(zu||{});function g_(r,e){r.events.pipe(So(t=>t instanceof Xs||t instanceof ss||t instanceof qu||t instanceof qs),Yt(t=>t instanceof Xs||t instanceof qs?zu.COMPLETE:(t instanceof ss?t.code===pi.Redirect||t.code===pi.SupersededByNewNavigation:!1)?zu.REDIRECTING:zu.FAILED),So(t=>t!==zu.REDIRECTING),To(1)).subscribe(()=>{e()})}function E_(r){throw r}var F_={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},__={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},At=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=lt(Fc),this.stateManager=lt(Gx),this.options=lt(Lh,{optional:!0})||{},this.pendingTasks=lt(H2),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=lt(D_),this.urlSerializer=lt(Mh),this.location=lt(Ai),this.urlHandlingStrategy=lt(Uh),this._events=new zs,this.errorHandler=this.options.errorHandler||E_,this.navigated=!1,this.routeReuseStrategy=lt(x_),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=lt(Nh,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!lt(Ih,{optional:!0}),this.eventsSubscription=new d2,this.isNgZoneEnabled=lt(Wi)instanceof Wi&&Wi.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(i=>{try{let s=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(s!==null&&o!==null){if(this.stateManager.handleRouterEvent(i,o),i instanceof ss&&i.code!==pi.Redirect&&i.code!==pi.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof Xs)this.navigated=!0;else if(i instanceof $u){let a=this.urlHandlingStrategy.merge(i.url,s.currentRawUrl),u={info:s.extras.info,skipLocationChange:s.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||p_(s.source)};this.scheduleNavigation(a,Gu,null,u,{resolve:s.resolve,reject:s.reject,promise:s.promise})}}y_(i)&&this._events.next(i)}catch(s){this.navigationTransitions.transitionAbortSubject.next(s)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Gu,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",i)},0)})}navigateToSyncWithBrowser(n,i,s){let o={replaceUrl:!0},a=s?.navigationId?s:null;if(s){let c=Me({},s);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(o.state=c)}let u=this.parseUrl(n);this.scheduleNavigation(u,i,a,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Rh),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,i={}){let{relativeTo:s,queryParams:o,fragment:a,queryParamsHandling:u,preserveFragment:c}=i,f=c?this.currentUrlTree.fragment:a,l=null;switch(u){case"merge":l=Me(Me({},this.currentUrlTree.queryParams),o);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=o||null}l!==null&&(l=this.removeEmptyProps(l));let h;try{let d=s?s.snapshot:this.routerState.snapshot.root;h=Bx(d)}catch{(typeof n[0]!="string"||!n[0].startsWith("/"))&&(n=[]),h=this.currentUrlTree.root}return Ax(h,n,l,f??null)}navigateByUrl(n,i={skipLocationChange:!1}){let s=Ho(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(o,Gu,null,i)}navigate(n,i={skipLocationChange:!1}){return v_(n),this.navigateByUrl(this.createUrlTree(n,i),i)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,i){let s;if(i===!0?s=Me({},F_):i===!1?s=Me({},__):s=i,Ho(n))return lx(this.currentUrlTree,n,s);let o=this.parseUrl(n);return lx(this.currentUrlTree,o,s)}removeEmptyProps(n){return Object.entries(n).reduce((i,[s,o])=>(o!=null&&(i[s]=o),i),{})}scheduleNavigation(n,i,s,o,a){if(this.disposed)return Promise.resolve(!1);let u,c,f;a?(u=a.resolve,c=a.reject,f=a.promise):f=new Promise((h,d)=>{u=h,c=d});let l=this.pendingTasks.add();return g_(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:o,resolve:u,reject:c,promise:f,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),f.catch(h=>Promise.reject(h))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=bt({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})();function v_(r){for(let e=0;et.\u0275providers)])}function B_(r){return r.routerState.root}function A_(){let r=lt(R1);return e=>{let t=r.get(z1);if(e!==t.components[0])return;let n=r.get(At),i=r.get(w_);r.get(S_)===1&&n.initialNavigation(),r.get(M_,null,I1.Optional)?.setUpPreloading(),r.get(b_,null,I1.Optional)?.init(),n.resetRootComponentType(t.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var w_=new An("",{factory:()=>new zs}),S_=new An("",{providedIn:"root",factory:()=>1});var M_=new An("");var Jx=(()=>{let e=class e{constructor(n,i){this._renderer=n,this._elementRef=i,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(n,i){this._renderer.setProperty(this._elementRef.nativeElement,n,i)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};e.\u0275fac=function(i){return new(i||e)(se(mc),se(Dc))},e.\u0275dir=is({type:e});let r=e;return r})(),T_=(()=>{let e=class e extends Jx{};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=Tu(e)))(s||e)}})(),e.\u0275dir=is({type:e,features:[Iu]});let r=e;return r})(),Qx=new An("");var k_={provide:Qx,useExisting:P1(()=>Wc),multi:!0};function P_(){let r=Ro()?Ro().getUserAgent():"";return/android (\d+)/.test(r.toLowerCase())}var I_=new An(""),Wc=(()=>{let e=class e extends Jx{constructor(n,i,s){super(n,i),this._compositionMode=s,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!P_())}writeValue(n){let i=n??"";this.setProperty("value",i)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}};e.\u0275fac=function(i){return new(i||e)(se(mc),se(Dc),se(I_,8))},e.\u0275dir=is({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,s){i&1&&K("input",function(a){return s._handleInput(a.target.value)})("blur",function(){return s.onTouched()})("compositionstart",function(){return s._compositionStart()})("compositionend",function(a){return s._compositionEnd(a.target.value)})},features:[V1([k_]),Iu]});let r=e;return r})();var R_=new An(""),O_=new An("");function em(r){return r!=null}function tm(r){return _c(r)?li(r):r}function nm(r){let e={};return r.forEach(t=>{e=t!=null?Me(Me({},e),t):e}),Object.keys(e).length===0?null:e}function im(r,e){return e.map(t=>t(r))}function L_(r){return!r.validate}function rm(r){return r.map(e=>L_(e)?e:t=>e.validate(t))}function N_(r){if(!r)return null;let e=r.filter(em);return e.length==0?null:function(t){return nm(im(t,e))}}function sm(r){return r!=null?N_(rm(r)):null}function U_(r){if(!r)return null;let e=r.filter(em);return e.length==0?null:function(t){let n=im(t,e).map(tm);return C2(n).pipe(Yt(nm))}}function om(r){return r!=null?U_(rm(r)):null}function Wx(r,e){return r===null?[e]:Array.isArray(r)?[...r,e]:[r,e]}function V_(r){return r._rawValidators}function z_(r){return r._rawAsyncValidators}function Vh(r){return r?Array.isArray(r)?r:[r]:[]}function Gc(r,e){return Array.isArray(r)?r.includes(e):r===e}function Xx(r,e){let t=Vh(e);return Vh(r).forEach(i=>{Gc(t,i)||t.push(i)}),t}function qx(r,e){return Vh(e).filter(t=>!Gc(r,t))}var jc=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=sm(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=om(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,t){return this.control?this.control.hasError(e,t):!1}getError(e,t){return this.control?this.control.getError(e,t):null}},zh=class extends jc{get formDirective(){return null}get path(){return null}},r0=class extends jc{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Hh=class{constructor(e){this._cd=e}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},H_={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},aI=Ot(Me({},H_),{"[class.ng-submitted]":"isSubmitted"}),am=(()=>{let e=class e extends Hh{constructor(n){super(n)}};e.\u0275fac=function(i){return new(i||e)(se(r0,2))},e.\u0275dir=is({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,s){i&2&&G2("ng-untouched",s.isUntouched)("ng-touched",s.isTouched)("ng-pristine",s.isPristine)("ng-dirty",s.isDirty)("ng-valid",s.isValid)("ng-invalid",s.isInvalid)("ng-pending",s.isPending)},features:[Iu]});let r=e;return r})();var n0="VALID",Hc="INVALID",Wo="PENDING",i0="DISABLED";function G_(r){return(Xc(r)?r.validators:r)||null}function j_(r){return Array.isArray(r)?sm(r):r||null}function W_(r,e){return(Xc(e)?e.asyncValidators:r)||null}function X_(r){return Array.isArray(r)?om(r):r||null}function Xc(r){return r!=null&&!Array.isArray(r)&&typeof r=="object"}var Gh=class{constructor(e,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===n0}get invalid(){return this.status===Hc}get pending(){return this.status==Wo}get disabled(){return this.status===i0}get enabled(){return this.status!==i0}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(Xx(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Xx(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(qx(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(qx(e,this._rawAsyncValidators))}hasValidator(e){return Gc(this._rawValidators,e)}hasAsyncValidator(e){return Gc(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=Wo,e.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=i0,this.errors=null,this._forEachChild(n=>{n.disable(Ot(Me({},e),{onlySelf:!0}))}),this._updateValue(),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Ot(Me({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(n=>n(!0))}enable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=n0,this._forEachChild(n=>{n.enable(Ot(Me({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Ot(Me({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===n0||this.status===Wo)&&this._runAsyncValidator(e.emitEvent)),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?i0:n0}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=Wo,this._hasOwnPendingAsyncValidator=!0;let t=tm(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(t.emitEvent!==!1)}get(e){let t=e;return t==null||(Array.isArray(t)||(t=t.split(".")),t.length===0)?null:t.reduce((n,i)=>n&&n._find(i),this)}getError(e,t){let n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new Ve,this.statusChanges=new Ve}_calculateStatus(){return this._allControlsDisabled()?i0:this.errors?Hc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Wo)?Wo:this._anyControlsHaveStatus(Hc)?Hc:n0}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Xc(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let t=this._parent&&this._parent.dirty;return!e&&!!t&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=j_(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=X_(this._rawAsyncValidators)}};var um=new An("CallSetDisabledState",{providedIn:"root",factory:()=>jh}),jh="always";function q_(r,e){return[...e.path,r]}function Y_(r,e,t=jh){Z_(r,e),e.valueAccessor.writeValue(r.value),(r.disabled||t==="always")&&e.valueAccessor.setDisabledState?.(r.disabled),K_(r,e),Q_(r,e),J_(r,e),$_(r,e)}function Yx(r,e){r.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function $_(r,e){if(e.valueAccessor.setDisabledState){let t=n=>{e.valueAccessor.setDisabledState(n)};r.registerOnDisabledChange(t),e._registerOnDestroy(()=>{r._unregisterOnDisabledChange(t)})}}function Z_(r,e){let t=V_(r);e.validator!==null?r.setValidators(Wx(t,e.validator)):typeof t=="function"&&r.setValidators([t]);let n=z_(r);e.asyncValidator!==null?r.setAsyncValidators(Wx(n,e.asyncValidator)):typeof n=="function"&&r.setAsyncValidators([n]);let i=()=>r.updateValueAndValidity();Yx(e._rawValidators,i),Yx(e._rawAsyncValidators,i)}function K_(r,e){e.valueAccessor.registerOnChange(t=>{r._pendingValue=t,r._pendingChange=!0,r._pendingDirty=!0,r.updateOn==="change"&&cm(r,e)})}function J_(r,e){e.valueAccessor.registerOnTouched(()=>{r._pendingTouched=!0,r.updateOn==="blur"&&r._pendingChange&&cm(r,e),r.updateOn!=="submit"&&r.markAsTouched()})}function cm(r,e){r._pendingDirty&&r.markAsDirty(),r.setValue(r._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(r._pendingValue),r._pendingChange=!1}function Q_(r,e){let t=(n,i)=>{e.valueAccessor.writeValue(n),i&&e.viewToModelUpdate(n)};r.registerOnChange(t),e._registerOnDestroy(()=>{r._unregisterOnChange(t)})}function ev(r,e){if(!r.hasOwnProperty("model"))return!1;let t=r.model;return t.isFirstChange()?!0:!Object.is(e,t.currentValue)}function tv(r){return Object.getPrototypeOf(r.constructor)===T_}function nv(r,e){if(!e)return null;Array.isArray(e);let t,n,i;return e.forEach(s=>{s.constructor===Wc?t=s:tv(s)?n=s:i=s}),i||n||t||null}function $x(r,e){let t=r.indexOf(e);t>-1&&r.splice(t,1)}function Zx(r){return typeof r=="object"&&r!==null&&Object.keys(r).length===2&&"value"in r&&"disabled"in r}var iv=class extends Gh{constructor(e=null,t,n){super(G_(t),W_(n,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Xc(t)&&(t.nonNullable||t.initialValueIsDefault)&&(Zx(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&t.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,t.emitViewToModelChange!==!1)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=this.defaultValue,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){$x(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){$x(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){Zx(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var rv={provide:r0,useExisting:P1(()=>Wh)},Kx=Promise.resolve(),Wh=(()=>{let e=class e extends r0{constructor(n,i,s,o,a,u){super(),this._changeDetectorRef=a,this.callSetDisabledState=u,this.control=new iv,this._registered=!1,this.name="",this.update=new Ve,this._parent=n,this._setValidators(i),this._setAsyncValidators(s),this.valueAccessor=nv(this,o)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let i=n.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),ev(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Y_(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){Kx.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let i=n.isDisabled.currentValue,s=i!==0&&G1(i);Kx.then(()=>{s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?q_(n,this._parent):[n]}};e.\u0275fac=function(i){return new(i||e)(se(zh,9),se(R_,10),se(O_,10),se(Qx,10),se(Tr,8),se(um,8))},e.\u0275dir=is({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[wu.None,"disabled","isDisabled"],model:[wu.None,"ngModel","model"],options:[wu.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[V1([rv]),Iu,dc]});let r=e;return r})();var sv=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Su({type:e}),e.\u0275inj=Bu({});let r=e;return r})();var Xo=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:um,useValue:n.callSetDisabledState??jh}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Su({type:e}),e.\u0275inj=Bu({imports:[sv]});let r=e;return r})();function Yh(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var $s=Yh();function pm(r){$s=r}var xm=/[&<>"']/,av=new RegExp(xm.source,"g"),mm=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,uv=new RegExp(mm.source,"g"),cv={"&":"&","<":"<",">":">",'"':""","'":"'"},fm=r=>cv[r];function xi(r,e){if(e){if(xm.test(r))return r.replace(av,fm)}else if(mm.test(r))return r.replace(uv,fm);return r}var fv=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function lv(r){return r.replace(fv,(e,t)=>(t=t.toLowerCase(),t==="colon"?":":t.charAt(0)==="#"?t.charAt(1)==="x"?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}var hv=/(^|[^\[])\^/g;function Xt(r,e){let t=typeof r=="string"?r:r.source;e=e||"";let n={replace:(i,s)=>{let o=typeof s=="string"?s:s.source;return o=o.replace(hv,"$1"),t=t.replace(i,o),n},getRegex:()=>new RegExp(t,e)};return n}function lm(r){try{r=encodeURI(r).replace(/%25/g,"%")}catch{return null}return r}var o0={exec:()=>null};function hm(r,e){let t=r.replace(/\|/g,(s,o,a)=>{let u=!1,c=o;for(;--c>=0&&a[c]==="\\";)u=!u;return u?"|":" |"}),n=t.split(/ \|/),i=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length{let s=i.match(/^\s+/);if(s===null)return i;let[o]=s;return o.length>=n.length?i.slice(n.length):i}).join(` +`)}var Yo=class{options;rules;lexer;constructor(e){this.options=e||$s}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:qc(n,` +`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],i=Dv(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:i}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(/#$/.test(n)){let i=qc(n,"#");(this.options.pedantic||!i||/ $/.test(i))&&(n=i.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=t[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,` + $1`);n=qc(n.replace(/^ *>[ \t]?/gm,""),` +`);let i=this.lexer.state.top;this.lexer.state.top=!0;let s=this.lexer.blockTokens(n);return this.lexer.state.top=i,{type:"blockquote",raw:t[0],tokens:s,text:n}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),i=n.length>1,s={type:"list",raw:"",ordered:i,start:i?+n.slice(0,-1):"",loose:!1,items:[]};n=i?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=i?n:"[*+-]");let o=new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`),a="",u="",c=!1;for(;e;){let f=!1;if(!(t=o.exec(e))||this.rules.block.hr.test(e))break;a=t[0],e=e.substring(a.length);let l=t[2].split(` +`,1)[0].replace(/^\t+/,p=>" ".repeat(3*p.length)),h=e.split(` +`,1)[0],d=0;this.options.pedantic?(d=2,u=l.trimStart()):(d=t[2].search(/[^ ]/),d=d>4?1:d,u=l.slice(d),d+=t[1].length);let x=!1;if(!l&&/^ *$/.test(h)&&(a+=h+` +`,e=e.substring(h.length+1),f=!0),!f){let p=new RegExp(`^ {0,${Math.min(3,d-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),C=new RegExp(`^ {0,${Math.min(3,d-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),g=new RegExp(`^ {0,${Math.min(3,d-1)}}(?:\`\`\`|~~~)`),E=new RegExp(`^ {0,${Math.min(3,d-1)}}#`);for(;e;){let y=e.split(` +`,1)[0];if(h=y,this.options.pedantic&&(h=h.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),g.test(h)||E.test(h)||p.test(h)||C.test(e))break;if(h.search(/[^ ]/)>=d||!h.trim())u+=` +`+h.slice(d);else{if(x||l.search(/[^ ]/)>=4||g.test(l)||E.test(l)||C.test(l))break;u+=` +`+h}!x&&!h.trim()&&(x=!0),a+=y+` +`,e=e.substring(y.length+1),l=h.slice(d)}}s.loose||(c?s.loose=!0:/\n *\n *$/.test(a)&&(c=!0));let m=null,D;this.options.gfm&&(m=/^\[[ xX]\] /.exec(u),m&&(D=m[0]!=="[ ] ",u=u.replace(/^\[[ xX]\] +/,""))),s.items.push({type:"list_item",raw:a,task:!!m,checked:D,loose:!1,text:u,tokens:[]}),s.raw+=a}s.items[s.items.length-1].raw=a.trimEnd(),s.items[s.items.length-1].text=u.trimEnd(),s.raw=s.raw.trimEnd();for(let f=0;fd.type==="space"),h=l.length>0&&l.some(d=>/\n.*\n/.test(d.raw));s.loose=h}if(s.loose)for(let f=0;f$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:i,title:s}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!/[:|]/.test(t[2]))return;let n=hm(t[1]),i=t[2].replace(/^\||\| *$/g,"").split("|"),s=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split(` +`):[],o={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===i.length){for(let a of i)/^ *-+: *$/.test(a)?o.align.push("right"):/^ *:-+: *$/.test(a)?o.align.push("center"):/^ *:-+ *$/.test(a)?o.align.push("left"):o.align.push(null);for(let a of n)o.header.push({text:a,tokens:this.lexer.inline(a)});for(let a of s)o.rows.push(hm(a,o.header.length).map(u=>({text:u,tokens:this.lexer.inline(u)})));return o}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===` +`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:xi(t[1])}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;let o=qc(n.slice(0,-1),"\\");if((n.length-o.length)%2===0)return}else{let o=dv(t[2],"()");if(o>-1){let u=(t[0].indexOf("!")===0?5:4)+t[1].length+o;t[2]=t[2].substring(0,o),t[0]=t[0].substring(0,u).trim(),t[3]=""}}let i=t[2],s="";if(this.options.pedantic){let o=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);o&&(i=o[1],s=o[3])}else s=t[3]?t[3].slice(1,-1):"";return i=i.trim(),/^$/.test(n)?i=i.slice(1):i=i.slice(1,-1)),dm(t,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let i=(n[2]||n[1]).replace(/\s+/g," "),s=t[i.toLowerCase()];if(!s){let o=n[0].charAt(0);return{type:"text",raw:o,text:o}}return dm(n,s,n[0],this.lexer)}}emStrong(e,t,n=""){let i=this.rules.inline.emStrongLDelim.exec(e);if(!i||i[3]&&n.match(/[\p{L}\p{N}]/u))return;if(!(i[1]||i[2]||"")||!n||this.rules.inline.punctuation.exec(n)){let o=[...i[0]].length-1,a,u,c=o,f=0,l=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+o);(i=l.exec(t))!=null;){if(a=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!a)continue;if(u=[...a].length,i[3]||i[4]){c+=u;continue}else if((i[5]||i[6])&&o%3&&!((o+u)%3)){f+=u;continue}if(c-=u,c>0)continue;u=Math.min(u,u+c+f);let h=[...i[0]][0].length,d=e.slice(0,o+i.index+h+u);if(Math.min(o,u)%2){let m=d.slice(1,-1);return{type:"em",raw:d,text:m,tokens:this.lexer.inlineTokens(m)}}let x=d.slice(2,-2);return{type:"strong",raw:d,text:x,tokens:this.lexer.inlineTokens(x)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(/\n/g," "),i=/[^ ]/.test(n),s=/^ /.test(n)&&/ $/.test(n);return i&&s&&(n=n.substring(1,n.length-1)),n=xi(n,!0),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,i;return t[2]==="@"?(n=xi(t[1]),i="mailto:"+n):(n=xi(t[1]),i=n),{type:"link",raw:t[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let n,i;if(t[2]==="@")n=xi(t[0]),i="mailto:"+n;else{let s;do s=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(s!==t[0]);n=xi(t[0]),t[1]==="www."?i="http://"+t[0]:i=t[0]}return{type:"link",raw:t[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n;return this.lexer.state.inRawBlock?n=t[0]:n=xi(t[0]),{type:"text",raw:t[0],text:n}}}},pv=/^(?: *(?:\n|$))+/,xv=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,mv=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,u0=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Cv=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Cm=/(?:[*+-]|\d{1,9}[.)])/,gm=Xt(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Cm).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),$h=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,gv=/^[^\n]+/,Zh=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Ev=Xt(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",Zh).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Fv=Xt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Cm).getRegex(),Zc="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Kh=/|$))/,_v=Xt("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",Kh).replace("tag",Zc).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Em=Xt($h).replace("hr",u0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Zc).getRegex(),vv=Xt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Em).getRegex(),Jh={blockquote:vv,code:xv,def:Ev,fences:mv,heading:Cv,hr:u0,html:_v,lheading:gm,list:Fv,newline:pv,paragraph:Em,table:o0,text:gv},Dm=Xt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",u0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Zc).getRegex(),yv=Ot(Me({},Jh),{table:Dm,paragraph:Xt($h).replace("hr",u0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Dm).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Zc).getRegex()}),bv=Ot(Me({},Jh),{html:Xt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Kh).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:o0,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Xt($h).replace("hr",u0).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",gm).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),Fm=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Bv=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,_m=/^( {2,}|\\)\n(?!\s*$)/,Av=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g,Mv=Xt(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,c0).getRegex(),Tv=Xt("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,c0).getRegex(),kv=Xt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,c0).getRegex(),Pv=Xt(/\\([punct])/,"gu").replace(/punct/g,c0).getRegex(),Iv=Xt(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Rv=Xt(Kh).replace("(?:-->|$)","-->").getRegex(),Ov=Xt("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",Rv).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),$c=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Lv=Xt(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",$c).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),vm=Xt(/^!?\[(label)\]\[(ref)\]/).replace("label",$c).replace("ref",Zh).getRegex(),ym=Xt(/^!?\[(ref)\](?:\[\])?/).replace("ref",Zh).getRegex(),Nv=Xt("reflink|nolink(?!\\()","g").replace("reflink",vm).replace("nolink",ym).getRegex(),Qh={_backpedal:o0,anyPunctuation:Pv,autolink:Iv,blockSkip:Sv,br:_m,code:Bv,del:o0,emStrongLDelim:Mv,emStrongRDelimAst:Tv,emStrongRDelimUnd:kv,escape:Fm,link:Lv,nolink:ym,punctuation:wv,reflink:vm,reflinkSearch:Nv,tag:Ov,text:Av,url:o0},Uv=Ot(Me({},Qh),{link:Xt(/^!?\[(label)\]\((.*?)\)/).replace("label",$c).getRegex(),reflink:Xt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",$c).getRegex()}),Xh=Ot(Me({},Qh),{escape:Xt(Fm).replace("])","~|])").getRegex(),url:Xt(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\u+" ".repeat(c.length));let n,i,s,o;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>(n=a.call({lexer:this},e,t))?(e=e.substring(n.raw.length),t.push(n),!0):!1))){if(n=this.tokenizer.space(e)){e=e.substring(n.raw.length),n.raw.length===1&&t.length>0?t[t.length-1].raw+=` +`:t.push(n);continue}if(n=this.tokenizer.code(e)){e=e.substring(n.raw.length),i=t[t.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=` +`+n.raw,i.text+=` +`+n.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(n);continue}if(n=this.tokenizer.fences(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.heading(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.hr(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.blockquote(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.list(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.html(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.def(e)){e=e.substring(n.raw.length),i=t[t.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=` +`+n.raw,i.text+=` +`+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if(n=this.tokenizer.table(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.lheading(e)){e=e.substring(n.raw.length),t.push(n);continue}if(s=e,this.options.extensions&&this.options.extensions.startBlock){let a=1/0,u=e.slice(1),c;this.options.extensions.startBlock.forEach(f=>{c=f.call({lexer:this},u),typeof c=="number"&&c>=0&&(a=Math.min(a,c))}),a<1/0&&a>=0&&(s=e.substring(0,a+1))}if(this.state.top&&(n=this.tokenizer.paragraph(s))){i=t[t.length-1],o&&i.type==="paragraph"?(i.raw+=` +`+n.raw,i.text+=` +`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(n),o=s.length!==e.length,e=e.substring(n.raw.length);continue}if(n=this.tokenizer.text(e)){e=e.substring(n.raw.length),i=t[t.length-1],i&&i.type==="text"?(i.raw+=` +`+n.raw,i.text+=` +`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(n);continue}if(e){let a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,i,s,o=e,a,u,c;if(this.tokens.links){let f=Object.keys(this.tokens.links);if(f.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(o))!=null;)f.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.blockSkip.exec(o))!=null;)o=o.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(a=this.tokenizer.rules.inline.anyPunctuation.exec(o))!=null;)o=o.slice(0,a.index)+"++"+o.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(u||(c=""),u=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(f=>(n=f.call({lexer:this},e,t))?(e=e.substring(n.raw.length),t.push(n),!0):!1))){if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),i=t[t.length-1],i&&n.type==="text"&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length),i=t[t.length-1],i&&n.type==="text"&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):t.push(n);continue}if(n=this.tokenizer.emStrong(e,o,c)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.del(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.autolink(e)){e=e.substring(n.raw.length),t.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}if(s=e,this.options.extensions&&this.options.extensions.startInline){let f=1/0,l=e.slice(1),h;this.options.extensions.startInline.forEach(d=>{h=d.call({lexer:this},l),typeof h=="number"&&h>=0&&(f=Math.min(f,h))}),f<1/0&&f>=0&&(s=e.substring(0,f+1))}if(n=this.tokenizer.inlineText(s)){e=e.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(c=n.raw.slice(-1)),u=!0,i=t[t.length-1],i&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):t.push(n);continue}if(e){let f="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return t}},$o=class{options;constructor(e){this.options=e||$s}code(e,t,n){let i=(t||"").match(/^\S*/)?.[0];return e=e.replace(/\n$/,"")+` +`,i?'
'+(n?e:xi(e,!0))+`
+`:"
"+(n?e:xi(e,!0))+`
+`}blockquote(e){return`
+${e}
+`}html(e,t){return e}heading(e,t,n){return`${e} +`}hr(){return`
+`}list(e,t,n){let i=t?"ol":"ul",s=t&&n!==1?' start="'+n+'"':"";return"<"+i+s+`> +`+e+" +`}listitem(e,t,n){return`
  • ${e}
  • +`}checkbox(e){return"'}paragraph(e){return`

    ${e}

    +`}table(e,t){return t&&(t=`${t}`),` + +`+e+` +`+t+`
    +`}tablerow(e){return` +${e} +`}tablecell(e,t){let n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+` +`}strong(e){return`${e}`}em(e){return`${e}`}codespan(e){return`${e}`}br(){return"
    "}del(e){return`${e}`}link(e,t,n){let i=lm(e);if(i===null)return n;e=i;let s='",s}image(e,t,n){let i=lm(e);if(i===null)return n;e=i;let s=`${n}0&&h.tokens[0].type==="paragraph"?(h.tokens[0].text=D+" "+h.tokens[0].text,h.tokens[0].tokens&&h.tokens[0].tokens.length>0&&h.tokens[0].tokens[0].type==="text"&&(h.tokens[0].tokens[0].text=D+" "+h.tokens[0].tokens[0].text)):h.tokens.unshift({type:"text",text:D+" "}):m+=D+" "}m+=this.parse(h.tokens,c),f+=this.renderer.listitem(m,x,!!d)}n+=this.renderer.list(f,a,u);continue}case"html":{let o=s;n+=this.renderer.html(o.text,o.block);continue}case"paragraph":{let o=s;n+=this.renderer.paragraph(this.parseInline(o.tokens));continue}case"text":{let o=s,a=o.tokens?this.parseInline(o.tokens):o.text;for(;i+1{let a=s[o].flat(1/0);n=n.concat(this.walkTokens(a,t))}):s.tokens&&(n=n.concat(this.walkTokens(s.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let i=Me({},n);if(i.async=this.defaults.async||i.async||!1,n.extensions&&(n.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){let o=t.renderers[s.name];o?t.renderers[s.name]=function(...a){let u=s.renderer.apply(this,a);return u===!1&&(u=o.apply(this,a)),u}:t.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let o=t[s.level];o?o.unshift(s.tokenizer):t[s.level]=[s.tokenizer],s.start&&(s.level==="block"?t.startBlock?t.startBlock.push(s.start):t.startBlock=[s.start]:s.level==="inline"&&(t.startInline?t.startInline.push(s.start):t.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(t.childTokens[s.name]=s.childTokens)}),i.extensions=t),n.renderer){let s=this.defaults.renderer||new $o(this.defaults);for(let o in n.renderer){if(!(o in s))throw new Error(`renderer '${o}' does not exist`);if(o==="options")continue;let a=o,u=n.renderer[a],c=s[a];s[a]=(...f)=>{let l=u.apply(s,f);return l===!1&&(l=c.apply(s,f)),l||""}}i.renderer=s}if(n.tokenizer){let s=this.defaults.tokenizer||new Yo(this.defaults);for(let o in n.tokenizer){if(!(o in s))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;let a=o,u=n.tokenizer[a],c=s[a];s[a]=(...f)=>{let l=u.apply(s,f);return l===!1&&(l=c.apply(s,f)),l}}i.tokenizer=s}if(n.hooks){let s=this.defaults.hooks||new qo;for(let o in n.hooks){if(!(o in s))throw new Error(`hook '${o}' does not exist`);if(o==="options")continue;let a=o,u=n.hooks[a],c=s[a];qo.passThroughHooks.has(o)?s[a]=f=>{if(this.defaults.async)return Promise.resolve(u.call(s,f)).then(h=>c.call(s,h));let l=u.call(s,f);return c.call(s,l)}:s[a]=(...f)=>{let l=u.apply(s,f);return l===!1&&(l=c.apply(s,f)),l}}i.hooks=s}if(n.walkTokens){let s=this.defaults.walkTokens,o=n.walkTokens;i.walkTokens=function(a){let u=[];return u.push(o.call(this,a)),s&&(u=u.concat(s.call(this,a))),u}}this.defaults=Me(Me({},this.defaults),i)}),this}setOptions(e){return this.defaults=Me(Me({},this.defaults),e),this}lexer(e,t){return kr.lex(e,t??this.defaults)}parser(e,t){return Pr.parse(e,t??this.defaults)}#e(e,t){return(n,i)=>{let s=Me({},i),o=Me(Me({},this.defaults),s);this.defaults.async===!0&&s.async===!1&&(o.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),o.async=!0);let a=this.#t(!!o.silent,!!o.async);if(typeof n>"u"||n===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(o.hooks&&(o.hooks.options=o),o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(n):n).then(u=>e(u,o)).then(u=>o.hooks?o.hooks.processAllTokens(u):u).then(u=>o.walkTokens?Promise.all(this.walkTokens(u,o.walkTokens)).then(()=>u):u).then(u=>t(u,o)).then(u=>o.hooks?o.hooks.postprocess(u):u).catch(a);try{o.hooks&&(n=o.hooks.preprocess(n));let u=e(n,o);o.hooks&&(u=o.hooks.processAllTokens(u)),o.walkTokens&&this.walkTokens(u,o.walkTokens);let c=t(u,o);return o.hooks&&(c=o.hooks.postprocess(c)),c}catch(u){return a(u)}}}#t(e,t){return n=>{if(n.message+=` +Please report this to https://github.com/markedjs/marked.`,e){let i="

    An error occurred:

    "+xi(n.message+"",!0)+"
    ";return t?Promise.resolve(i):i}if(t)return Promise.reject(n);throw n}}},Ys=new qh;function Mt(r,e){return Ys.parse(r,e)}Mt.options=Mt.setOptions=function(r){return Ys.setOptions(r),Mt.defaults=Ys.defaults,pm(Mt.defaults),Mt};Mt.getDefaults=Yh;Mt.defaults=$s;Mt.use=function(...r){return Ys.use(...r),Mt.defaults=Ys.defaults,pm(Mt.defaults),Mt};Mt.walkTokens=function(r,e){return Ys.walkTokens(r,e)};Mt.parseInline=Ys.parseInline;Mt.Parser=Pr;Mt.parser=Pr.parse;Mt.Renderer=$o;Mt.TextRenderer=a0;Mt.Lexer=kr;Mt.lexer=kr.lex;Mt.Tokenizer=Yo;Mt.Hooks=qo;Mt.parse=Mt;var fI=Mt.options,lI=Mt.setOptions,hI=Mt.use,dI=Mt.walkTokens,DI=Mt.parseInline;var pI=Pr.parse,xI=kr.lex;var bm=vu(Qc());var zv=["textDiv"];function Hv(r,e){if(r&1&&(k(0,"div",16),ze(1),I()),r&2){let t=N(2);Te("color",t.extraLabelColor),A(),Nt(" ",t.extraLabel,"")}}function Gv(r,e){if(r&1&&(k(0,"div",17),ze(1),I()),r&2){let t=N(2);A(),Ht(t.checkBoxLabel)}}function jv(r,e){if(r&1){let t=ye();k(0,"div")(1,"input",18),K("click",function(i){ae(t);let s=N(2);return ue(s.onClickCheckbox(i))}),I()()}}function Wv(r,e){if(r&1&&(k(0,"div",11)(1,"div")(2,"div"),ze(3),I(),me(4,Hv,2,3,"div",12),I(),k(5,"div",13),me(6,Gv,2,1,"div",14)(7,jv,2,0,"div",15),I()()),r&2){let t=N();A(),Te("display","flex"),A(2),Ht(t.label),A(),S("ngIf",t.extraLabel!==""),A(2),S("ngIf",t.enableCheckbox===!0),A(),S("ngIf",t.enableCheckbox===!0)}}function Xv(r,e){if(r&1){let t=ye();k(0,"input",19,0),K("click",function(){ae(t);let i=N();return ue(i.onClickInput())})("keyup",function(i){ae(t);let s=N();return ue(s.onChangeInput(i))})("input",function(i){ae(t);let s=N();return ue(s.onChangeInput(i))}),Ec("ngModelChange",function(i){ae(t);let s=N();return gc(s.innerText,i)||(s.innerText=i),ue(i)}),I()}if(r&2){let t=N();Te("padding-left",t.type==="chat-input"?40:10,"px")("padding-right",t.type==="chat-input"?40:10,"px"),S("type",t.type)("placeholder",t.placeholder),Cc("ngModel",t.innerText)}}function qv(r,e){if(r&1){let t=ye();k(0,"input",20,0),K("click",function(){ae(t);let i=N();return ue(i.onClickInput())})("keyup",function(i){ae(t);let s=N();return ue(s.onChangeInput(i))})("input",function(i){ae(t);let s=N();return ue(s.onChangeInput(i))}),Ec("ngModelChange",function(i){ae(t);let s=N();return gc(s.innerText,i)||(s.innerText=i),ue(i)}),I()}if(r&2){let t=N();S("type",t.type)("placeholder",t.placeholder),Cc("ngModel",t.innerText)}}function Yv(r,e){if(r&1){let t=ye();k(0,"img",21),K("click",function(){ae(t);let i=N();return ue(i.onClickImgSendButton())}),I()}}function $v(r,e){if(r&1){let t=ye();k(0,"img",22),K("click",function(){ae(t);let i=N();return ue(i.onClickChatSendButton())}),I()}}function Zv(r,e){if(r&1){let t=ye();k(0,"img",23),K("click",function(){ae(t);let i=N();return ue(i.onClickSearchButton())}),I()}}function Kv(r,e){if(r&1){let t=ye();k(0,"textarea",24,0),K("click",function(){ae(t);let i=N();return ue(i.onClickInput())})("keyup",function(i){ae(t);let s=N();return ue(s.onChangeInput(i))})("input",function(i){ae(t);let s=N();return ue(s.onChangeInput(i))}),Ec("ngModelChange",function(i){ae(t);let s=N();return gc(s.innerText,i)||(s.innerText=i),ue(i)}),I()}if(r&2){let t=N();Te("height",t.longTextHeight,"px"),S("placeholder",t.placeholder),Cc("ngModel",t.innerText)}}function Jv(r,e){if(r&1&&de(0,"div",25),r&2){let t=N();S("innerHTML",t.convertedHTML,pc)}}var Hn=(()=>{let e=class e{constructor(n){this.cd=n,this.textDiv=null,this.label="",this.extraLabel="",this.extraLabelColor="",this.placeholder="",this.maxWidth=300,this.longTextHeight=300,this.type="text",this.innerText="",this.enableCheckbox=!1,this.checkBoxLabel="",this.onChangeEvent=new Ve,this.onClickEvent=new Ve,this.onClickCheckboxEvent=new Ve,this.onClickChatSendButtonEvent=new Ve,this.onClickImgSendButtonEvent=new Ve,this.onClickSearchButtonEvent=new Ve,this.isChecked=!1,this.convertedHTML="",this.showGeneralHTML=!0}ngOnInit(){this.textDiv!=null&&this.textDiv.nativeElement.type==="datetime-local"&&(this.today=new Date().toISOString().split("T")[0],this.textDiv.nativeElement.setAttribute("min",this.today))}onClickInput(){this.onClickEvent.emit(this.innerText)}onChangeInput(n){this.innerText=n.target.value,this.cd.detectChanges(),this.onChangeEvent.emit(this.innerText)}onClickCheckbox(n){this.isChecked=n.target.checked,this.type==="longText"&&(this.isChecked?(this.showGeneralHTML=!1,this.convertedHTML=this.convertMarkdown(this.innerText).replace(/]*>/g,"").replace(/<\/p>/g,"")):this.showGeneralHTML=!0),this.onClickCheckboxEvent.emit(this.isChecked)}onClickChatSendButton(){this.onClickChatSendButtonEvent.emit()}onClickImgSendButton(){this.onClickImgSendButtonEvent.emit()}onClickSearchButton(){this.onClickSearchButtonEvent.emit()}onClickMarkdown(){this.showGeneralHTML=!1,this.convertedHTML=this.convertMarkdown(this.innerText).replace(/]*>/g,"").replace(/<\/p>/g,"")}onClickGeneralHTML(){this.showGeneralHTML=!0}convertMarkdown(n){let i=new bm.EmojiConvertor;i.replace_mode="unified",i.allow_native=!0;let s=Mt.parse(n);return i.replace_colons(s)}};e.\u0275fac=function(i){return new(i||e)(se(Tr))},e.\u0275cmp=Ee({type:e,selectors:[["app-simple-input"]],viewQuery:function(i,s){if(i&1&&Ie(zv,5),i&2){let o;ke(o=Pe())&&(s.textDiv=o.first)}},inputs:{label:"label",extraLabel:"extraLabel",extraLabelColor:"extraLabelColor",placeholder:"placeholder",maxWidth:"maxWidth",longTextHeight:"longTextHeight",type:"type",innerText:"innerText",enableCheckbox:"enableCheckbox",checkBoxLabel:"checkBoxLabel"},outputs:{onChangeEvent:"onChangeEvent",onClickEvent:"onClickEvent",onClickCheckboxEvent:"onClickCheckboxEvent",onClickChatSendButtonEvent:"onClickChatSendButtonEvent",onClickImgSendButtonEvent:"onClickImgSendButtonEvent",onClickSearchButtonEvent:"onClickSearchButtonEvent"},standalone:!0,features:[Fe],decls:10,vars:10,consts:[["textDiv",""],["id","simple-input-component-container"],["id","label-container",4,"ngIf"],["id","input-container"],["id","input","autocomplete","off",3,"type","placeholder","padding-left","padding-right","ngModel","click","keyup","input","ngModelChange",4,"ngIf"],["id","input","inputmode","none","autocomplete","off",3,"type","placeholder","ngModel","click","keyup","input","ngModelChange",4,"ngIf"],["id","chat-send-image","src","assets/icons/add.png",3,"click",4,"ngIf"],["id","chat-send-button","src","assets/icons/send_message.png",3,"click",4,"ngIf"],["id","chat-send-button","src","assets/navigator_icons/search.svg",3,"click",4,"ngIf"],["id","text",3,"placeholder","ngModel","height","click","keyup","input","ngModelChange",4,"ngIf"],["id","markdown",3,"innerHTML",4,"ngIf"],["id","label-container"],["id","extra-label-container",3,"color",4,"ngIf"],["id","checkbox-container"],["id","checkbox-label-container",4,"ngIf"],[4,"ngIf"],["id","extra-label-container"],["id","checkbox-label-container"],["type","checkbox","id","check",3,"click"],["id","input","autocomplete","off",3,"click","keyup","input","ngModelChange","type","placeholder","ngModel"],["id","input","inputmode","none","autocomplete","off",3,"click","keyup","input","ngModelChange","type","placeholder","ngModel"],["id","chat-send-image","src","assets/icons/add.png",3,"click"],["id","chat-send-button","src","assets/icons/send_message.png",3,"click"],["id","chat-send-button","src","assets/navigator_icons/search.svg",3,"click"],["id","text",3,"click","keyup","input","ngModelChange","placeholder","ngModel"],["id","markdown",3,"innerHTML"]],template:function(i,s){i&1&&(k(0,"div",1),me(1,Wv,8,6,"div",2),k(2,"div",3),me(3,Xv,2,7,"input",4)(4,qv,2,3,"input",5)(5,Yv,1,0,"img",6)(6,$v,1,0,"img",7)(7,Zv,1,0,"img",8)(8,Kv,2,4,"textarea",9)(9,Jv,1,1,"div",10),I()()),i&2&&(Te("height",s.type==="longText"?28+s.longTextHeight:77,"px"),A(),S("ngIf",s.label!==""),A(2),S("ngIf",s.type!=="longText"&&s.type!=="category"),A(),S("ngIf",s.type==="category"),A(),S("ngIf",s.type==="chat-input"),A(),S("ngIf",s.type==="chat-input"),A(),S("ngIf",s.type==="search-input"),A(),S("ngIf",s.type==="longText"&&s.showGeneralHTML),A(),S("ngIf",s.type==="longText"&&!s.showGeneralHTML))},dependencies:[qe,Xo,Wc,am,Wh],styles:['#simple-input-component-container[_ngcontent-%COMP%]{margin-top:6px;margin-bottom:6px;height:77px;width:350px}#extra-label-container[_ngcontent-%COMP%]{font-size:14px;font-family:Pretendard Variable,Pretendard,-apple-system,BlinkMacSystemFont,system-ui,Roboto,Helvetica Neue,Segoe UI,Apple SD Gothic Neo,Noto Sans KR,Malgun Gothic,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,sans-serif}#label-container[_ngcontent-%COMP%]{font-size:14px;margin-bottom:6px;font-family:Pretendard Variable,Pretendard,-apple-system,BlinkMacSystemFont,system-ui,Roboto,Helvetica Neue,Segoe UI,Apple SD Gothic Neo,Noto Sans KR,Malgun Gothic,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,sans-serif;width:100%}#input-container[_ngcontent-%COMP%]{height:48px;width:100%;margin-top:6px;position:relative}#input[_ngcontent-%COMP%]{font-family:Pretendard Variable,Pretendard,-apple-system,BlinkMacSystemFont,system-ui,Roboto,Helvetica Neue,Segoe UI,Apple SD Gothic Neo,Noto Sans KR,Malgun Gothic,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,sans-serif;font-size:16px;width:100%;height:48px;border:solid;border-width:1.5px;border-color:#d8d8da;border-radius:10px;border-spacing:0px;margin:0;padding:0 10px;box-sizing:border-box}#input[_ngcontent-%COMP%]:focus{border-color:#2c2c2c}#input[_ngcontent-%COMP%]::placeholder{color:#5c5c5c}#input[type=datetime-local][_ngcontent-%COMP%]{width:350px;text-align:left}#text[_ngcontent-%COMP%]{font-family:Pretendard Variable,Pretendard,-apple-system,BlinkMacSystemFont,system-ui,Roboto,Helvetica Neue,Segoe UI,Apple SD Gothic Neo,Noto Sans KR,Malgun Gothic,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,sans-serif;font-size:16px;width:100%;height:300px;border:solid;border-width:1.5px;border-color:#d8d8da;border-radius:10px;border-spacing:0px;margin:0;padding:10px;box-sizing:border-box;resize:none}#text[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}#markdown[_ngcontent-%COMP%]{font-family:Pretendard Variable,Pretendard,-apple-system,BlinkMacSystemFont,system-ui,Roboto,Helvetica Neue,Segoe UI,Apple SD Gothic Neo,Noto Sans KR,Malgun Gothic,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,sans-serif;font-size:16px;width:calc(100% - 23px);height:277px;border:solid;border-width:1.5px;border-color:#d8d8da;border-radius:10px;border-spacing:0px;margin:0;padding:10px;overflow-y:scroll}#markdown[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}#text[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;display:none}#text[_ngcontent-%COMP%]:focus{border-color:#2c2c2c}#text[_ngcontent-%COMP%]::placeholder{color:#5c5c5c}#label-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;font-family:Pretendard Variable,Pretendard,-apple-system,BlinkMacSystemFont,system-ui,Roboto,Helvetica Neue,Segoe UI,Apple SD Gothic Neo,Noto Sans KR,Malgun Gothic,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,sans-serif}#checkbox-container[_ngcontent-%COMP%]{font-family:Pretendard Variable,Pretendard,-apple-system,BlinkMacSystemFont,system-ui,Roboto,Helvetica Neue,Segoe UI,Apple SD Gothic Neo,Noto Sans KR,Malgun Gothic,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,sans-serif;font-size:14px;display:flex;align-items:center;margin-left:20px}#chat-send-button[_ngcontent-%COMP%]{position:absolute;top:14px;right:10px;height:20px}#chat-send-button[_ngcontent-%COMP%]:hover{background-color:#0000001a;border-radius:50%;cursor:pointer}#chat-send-image[_ngcontent-%COMP%]{position:absolute;top:15px;left:12px;height:18px}#chat-send-image[_ngcontent-%COMP%]:hover{background-color:#0000001a;border-radius:50%;cursor:pointer}']});let r=e;return r})();function f0(r,e){return function(){return r.apply(e,arguments)}}var{toString:Qv}=Object.prototype,{getPrototypeOf:nd}=Object,tf=(r=>e=>{let t=Qv.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),dr=r=>(r=r.toLowerCase(),e=>tf(e)===r),nf=r=>e=>typeof e===r,{isArray:Zo}=Array,l0=nf("undefined");function e4(r){return r!==null&&!l0(r)&&r.constructor!==null&&!l0(r.constructor)&&Si(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}var wm=dr("ArrayBuffer");function t4(r){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(r):e=r&&r.buffer&&wm(r.buffer),e}var n4=nf("string"),Si=nf("function"),Sm=nf("number"),rf=r=>r!==null&&typeof r=="object",i4=r=>r===!0||r===!1,ef=r=>{if(tf(r)!=="object")return!1;let e=nd(r);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in r)&&!(Symbol.iterator in r)},r4=dr("Date"),s4=dr("File"),o4=dr("Blob"),a4=dr("FileList"),u4=r=>rf(r)&&Si(r.pipe),c4=r=>{let e;return r&&(typeof FormData=="function"&&r instanceof FormData||Si(r.append)&&((e=tf(r))==="formdata"||e==="object"&&Si(r.toString)&&r.toString()==="[object FormData]"))},f4=dr("URLSearchParams"),l4=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function h0(r,e,{allOwnKeys:t=!1}={}){if(r===null||typeof r>"u")return;let n,i;if(typeof r!="object"&&(r=[r]),Zo(r))for(n=0,i=r.length;n0;)if(i=t[n],e===i.toLowerCase())return i;return null}var Tm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,km=r=>!l0(r)&&r!==Tm;function td(){let{caseless:r}=km(this)&&this||{},e={},t=(n,i)=>{let s=r&&Mm(e,i)||i;ef(e[s])&&ef(n)?e[s]=td(e[s],n):ef(n)?e[s]=td({},n):Zo(n)?e[s]=n.slice():e[s]=n};for(let n=0,i=arguments.length;n(h0(e,(i,s)=>{t&&Si(i)?r[s]=f0(i,t):r[s]=i},{allOwnKeys:n}),r),d4=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),D4=(r,e,t,n)=>{r.prototype=Object.create(e.prototype,n),r.prototype.constructor=r,Object.defineProperty(r,"super",{value:e.prototype}),t&&Object.assign(r.prototype,t)},p4=(r,e,t,n)=>{let i,s,o,a={};if(e=e||{},r==null)return e;do{for(i=Object.getOwnPropertyNames(r),s=i.length;s-- >0;)o=i[s],(!n||n(o,r,e))&&!a[o]&&(e[o]=r[o],a[o]=!0);r=t!==!1&&nd(r)}while(r&&(!t||t(r,e))&&r!==Object.prototype);return e},x4=(r,e,t)=>{r=String(r),(t===void 0||t>r.length)&&(t=r.length),t-=e.length;let n=r.indexOf(e,t);return n!==-1&&n===t},m4=r=>{if(!r)return null;if(Zo(r))return r;let e=r.length;if(!Sm(e))return null;let t=new Array(e);for(;e-- >0;)t[e]=r[e];return t},C4=(r=>e=>r&&e instanceof r)(typeof Uint8Array<"u"&&nd(Uint8Array)),g4=(r,e)=>{let n=(r&&r[Symbol.iterator]).call(r),i;for(;(i=n.next())&&!i.done;){let s=i.value;e.call(r,s[0],s[1])}},E4=(r,e)=>{let t,n=[];for(;(t=r.exec(e))!==null;)n.push(t);return n},F4=dr("HTMLFormElement"),_4=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,i){return n.toUpperCase()+i}),Bm=(({hasOwnProperty:r})=>(e,t)=>r.call(e,t))(Object.prototype),v4=dr("RegExp"),Pm=(r,e)=>{let t=Object.getOwnPropertyDescriptors(r),n={};h0(t,(i,s)=>{let o;(o=e(i,s,r))!==!1&&(n[s]=o||i)}),Object.defineProperties(r,n)},y4=r=>{Pm(r,(e,t)=>{if(Si(r)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;let n=r[t];if(Si(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},b4=(r,e)=>{let t={},n=i=>{i.forEach(s=>{t[s]=!0})};return Zo(r)?n(r):n(String(r).split(e)),t},B4=()=>{},A4=(r,e)=>(r=+r,Number.isFinite(r)?r:e),ed="abcdefghijklmnopqrstuvwxyz",Am="0123456789",Im={DIGIT:Am,ALPHA:ed,ALPHA_DIGIT:ed+ed.toUpperCase()+Am},w4=(r=16,e=Im.ALPHA_DIGIT)=>{let t="",{length:n}=e;for(;r--;)t+=e[Math.random()*n|0];return t};function S4(r){return!!(r&&Si(r.append)&&r[Symbol.toStringTag]==="FormData"&&r[Symbol.iterator])}var M4=r=>{let e=new Array(10),t=(n,i)=>{if(rf(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[i]=n;let s=Zo(n)?[]:{};return h0(n,(o,a)=>{let u=t(o,i+1);!l0(u)&&(s[a]=u)}),e[i]=void 0,s}}return n};return t(r,0)},T4=dr("AsyncFunction"),k4=r=>r&&(rf(r)||Si(r))&&Si(r.then)&&Si(r.catch),he={isArray:Zo,isArrayBuffer:wm,isBuffer:e4,isFormData:c4,isArrayBufferView:t4,isString:n4,isNumber:Sm,isBoolean:i4,isObject:rf,isPlainObject:ef,isUndefined:l0,isDate:r4,isFile:s4,isBlob:o4,isRegExp:v4,isFunction:Si,isStream:u4,isURLSearchParams:f4,isTypedArray:C4,isFileList:a4,forEach:h0,merge:td,extend:h4,trim:l4,stripBOM:d4,inherits:D4,toFlatObject:p4,kindOf:tf,kindOfTest:dr,endsWith:x4,toArray:m4,forEachEntry:g4,matchAll:E4,isHTMLForm:F4,hasOwnProperty:Bm,hasOwnProp:Bm,reduceDescriptors:Pm,freezeMethods:y4,toObjectSet:b4,toCamelCase:_4,noop:B4,toFiniteNumber:A4,findKey:Mm,global:Tm,isContextDefined:km,ALPHABET:Im,generateString:w4,isSpecCompliantForm:S4,toJSONObject:M4,isAsyncFn:T4,isThenable:k4};function Ko(r,e,t,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=r,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),n&&(this.request=n),i&&(this.response=i)}he.inherits(Ko,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:he.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var Rm=Ko.prototype,Om={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(r=>{Om[r]={value:r}});Object.defineProperties(Ko,Om);Object.defineProperty(Rm,"isAxiosError",{value:!0});Ko.from=(r,e,t,n,i,s)=>{let o=Object.create(Rm);return he.toFlatObject(r,o,function(u){return u!==Error.prototype},a=>a!=="isAxiosError"),Ko.call(o,r.message,e,t,n,i),o.cause=r,o.name=r.name,s&&Object.assign(o,s),o};var Bt=Ko;var sf=null;function id(r){return he.isPlainObject(r)||he.isArray(r)}function Nm(r){return he.endsWith(r,"[]")?r.slice(0,-2):r}function Lm(r,e,t){return r?r.concat(e).map(function(i,s){return i=Nm(i),!t&&s?"["+i+"]":i}).join(t?".":""):e}function P4(r){return he.isArray(r)&&!r.some(id)}var I4=he.toFlatObject(he,{},null,function(e){return/^is[A-Z]/.test(e)});function R4(r,e,t){if(!he.isObject(r))throw new TypeError("target must be an object");e=e||new(sf||FormData),t=he.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,D){return!he.isUndefined(D[m])});let n=t.metaTokens,i=t.visitor||f,s=t.dots,o=t.indexes,u=(t.Blob||typeof Blob<"u"&&Blob)&&he.isSpecCompliantForm(e);if(!he.isFunction(i))throw new TypeError("visitor must be a function");function c(x){if(x===null)return"";if(he.isDate(x))return x.toISOString();if(!u&&he.isBlob(x))throw new Bt("Blob is not supported. Use a Buffer instead.");return he.isArrayBuffer(x)||he.isTypedArray(x)?u&&typeof Blob=="function"?new Blob([x]):Buffer.from(x):x}function f(x,m,D){let p=x;if(x&&!D&&typeof x=="object"){if(he.endsWith(m,"{}"))m=n?m:m.slice(0,-2),x=JSON.stringify(x);else if(he.isArray(x)&&P4(x)||(he.isFileList(x)||he.endsWith(m,"[]"))&&(p=he.toArray(x)))return m=Nm(m),p.forEach(function(g,E){!(he.isUndefined(g)||g===null)&&e.append(o===!0?Lm([m],E,s):o===null?m:m+"[]",c(g))}),!1}return id(x)?!0:(e.append(Lm(D,m,s),c(x)),!1)}let l=[],h=Object.assign(I4,{defaultVisitor:f,convertValue:c,isVisitable:id});function d(x,m){if(!he.isUndefined(x)){if(l.indexOf(x)!==-1)throw Error("Circular reference detected in "+m.join("."));l.push(x),he.forEach(x,function(p,C){(!(he.isUndefined(p)||p===null)&&i.call(e,p,he.isString(C)?C.trim():C,m,h))===!0&&d(p,m?m.concat(C):[C])}),l.pop()}}if(!he.isObject(r))throw new TypeError("data must be an object");return d(r),e}var as=R4;function Um(r){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Vm(r,e){this._pairs=[],r&&as(r,this,e)}var zm=Vm.prototype;zm.append=function(e,t){this._pairs.push([e,t])};zm.toString=function(e){let t=e?function(n){return e.call(this,n,Um)}:Um;return this._pairs.map(function(i){return t(i[0])+"="+t(i[1])},"").join("&")};var of=Vm;function O4(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function d0(r,e,t){if(!e)return r;let n=t&&t.encode||O4,i=t&&t.serialize,s;if(i?s=i(e,t):s=he.isURLSearchParams(e)?e.toString():new of(e,t).toString(n),s){let o=r.indexOf("#");o!==-1&&(r=r.slice(0,o)),r+=(r.indexOf("?")===-1?"?":"&")+s}return r}var rd=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){he.forEach(this.handlers,function(n){n!==null&&e(n)})}},sd=rd;var af={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var Hm=typeof URLSearchParams<"u"?URLSearchParams:of;var Gm=typeof FormData<"u"?FormData:null;var jm=typeof Blob<"u"?Blob:null;var Wm={isBrowser:!0,classes:{URLSearchParams:Hm,FormData:Gm,Blob:jm},protocols:["http","https","file","blob","url","data"]};var od={};mE(od,{hasBrowserEnv:()=>Xm,hasStandardBrowserEnv:()=>L4,hasStandardBrowserWebWorkerEnv:()=>N4});var Xm=typeof window<"u"&&typeof document<"u",L4=(r=>Xm&&["ReactNative","NativeScript","NS"].indexOf(r)<0)(typeof navigator<"u"&&navigator.product),N4=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function";var $n=Me(Me({},od),Wm);function ad(r,e){return as(r,new $n.classes.URLSearchParams,Object.assign({visitor:function(t,n,i,s){return $n.isNode&&he.isBuffer(t)?(this.append(n,t.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function U4(r){return he.matchAll(/\w+|\[(\w*)]/g,r).map(e=>e[0]==="[]"?"":e[1]||e[0])}function V4(r){let e={},t=Object.keys(r),n,i=t.length,s;for(n=0;n=t.length;return o=!o&&he.isArray(i)?i.length:o,u?(he.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!a):((!i[o]||!he.isObject(i[o]))&&(i[o]=[]),e(t,n,i[o],s)&&he.isArray(i[o])&&(i[o]=V4(i[o])),!a)}if(he.isFormData(r)&&he.isFunction(r.entries)){let t={};return he.forEachEntry(r,(n,i)=>{e(U4(n),i,t,0)}),t}return null}var uf=z4;function H4(r,e,t){if(he.isString(r))try{return(e||JSON.parse)(r),he.trim(r)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(r)}var ud={transitional:af,adapter:["xhr","http"],transformRequest:[function(e,t){let n=t.getContentType()||"",i=n.indexOf("application/json")>-1,s=he.isObject(e);if(s&&he.isHTMLForm(e)&&(e=new FormData(e)),he.isFormData(e))return i?JSON.stringify(uf(e)):e;if(he.isArrayBuffer(e)||he.isBuffer(e)||he.isStream(e)||he.isFile(e)||he.isBlob(e))return e;if(he.isArrayBufferView(e))return e.buffer;if(he.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return ad(e,this.formSerializer).toString();if((a=he.isFileList(e))||n.indexOf("multipart/form-data")>-1){let u=this.env&&this.env.FormData;return as(a?{"files[]":e}:e,u&&new u,this.formSerializer)}}return s||i?(t.setContentType("application/json",!1),H4(e)):e}],transformResponse:[function(e){let t=this.transitional||ud.transitional,n=t&&t.forcedJSONParsing,i=this.responseType==="json";if(e&&he.isString(e)&&(n&&!this.responseType||i)){let o=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(a){if(o)throw a.name==="SyntaxError"?Bt.from(a,Bt.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:$n.classes.FormData,Blob:$n.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};he.forEach(["delete","get","head","post","put","patch"],r=>{ud.headers[r]={}});var Jo=ud;var G4=he.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),qm=r=>{let e={},t,n,i;return r&&r.split(` +`).forEach(function(o){i=o.indexOf(":"),t=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!t||e[t]&&G4[t])&&(t==="set-cookie"?e[t]?e[t].push(n):e[t]=[n]:e[t]=e[t]?e[t]+", "+n:n)}),e};var Ym=Symbol("internals");function D0(r){return r&&String(r).trim().toLowerCase()}function cf(r){return r===!1||r==null?r:he.isArray(r)?r.map(cf):String(r)}function j4(r){let e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=t.exec(r);)e[n[1]]=n[2];return e}var W4=r=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());function cd(r,e,t,n,i){if(he.isFunction(n))return n.call(this,e,t);if(i&&(e=t),!!he.isString(e)){if(he.isString(n))return e.indexOf(n)!==-1;if(he.isRegExp(n))return n.test(e)}}function X4(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function q4(r,e){let t=he.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(r,n+t,{value:function(i,s,o){return this[n].call(this,e,i,s,o)},configurable:!0})})}var Qo=class{constructor(e){e&&this.set(e)}set(e,t,n){let i=this;function s(a,u,c){let f=D0(u);if(!f)throw new Error("header name must be a non-empty string");let l=he.findKey(i,f);(!l||i[l]===void 0||c===!0||c===void 0&&i[l]!==!1)&&(i[l||u]=cf(a))}let o=(a,u)=>he.forEach(a,(c,f)=>s(c,f,u));return he.isPlainObject(e)||e instanceof this.constructor?o(e,t):he.isString(e)&&(e=e.trim())&&!W4(e)?o(qm(e),t):e!=null&&s(t,e,n),this}get(e,t){if(e=D0(e),e){let n=he.findKey(this,e);if(n){let i=this[n];if(!t)return i;if(t===!0)return j4(i);if(he.isFunction(t))return t.call(this,i,n);if(he.isRegExp(t))return t.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=D0(e),e){let n=he.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||cd(this,this[n],n,t)))}return!1}delete(e,t){let n=this,i=!1;function s(o){if(o=D0(o),o){let a=he.findKey(n,o);a&&(!t||cd(n,n[a],a,t))&&(delete n[a],i=!0)}}return he.isArray(e)?e.forEach(s):s(e),i}clear(e){let t=Object.keys(this),n=t.length,i=!1;for(;n--;){let s=t[n];(!e||cd(this,this[s],s,e,!0))&&(delete this[s],i=!0)}return i}normalize(e){let t=this,n={};return he.forEach(this,(i,s)=>{let o=he.findKey(n,s);if(o){t[o]=cf(i),delete t[s];return}let a=e?X4(s):String(s).trim();a!==s&&delete t[s],t[a]=cf(i),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return he.forEach(this,(n,i)=>{n!=null&&n!==!1&&(t[i]=e&&he.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(i=>n.set(i)),n}static accessor(e){let n=(this[Ym]=this[Ym]={accessors:{}}).accessors,i=this.prototype;function s(o){let a=D0(o);n[a]||(q4(i,o),n[a]=!0)}return he.isArray(e)?e.forEach(s):s(e),this}};Qo.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);he.reduceDescriptors(Qo.prototype,({value:r},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>r,set(n){this[t]=n}}});he.freezeMethods(Qo);var Zn=Qo;function p0(r,e){let t=this||Jo,n=e||t,i=Zn.from(n.headers),s=n.data;return he.forEach(r,function(a){s=a.call(t,s,i.normalize(),e?e.status:void 0)}),i.normalize(),s}function x0(r){return!!(r&&r.__CANCEL__)}function $m(r,e,t){Bt.call(this,r??"canceled",Bt.ERR_CANCELED,e,t),this.name="CanceledError"}he.inherits($m,Bt,{__CANCEL__:!0});var us=$m;function fd(r,e,t){let n=t.config.validateStatus;!t.status||!n||n(t.status)?r(t):e(new Bt("Request failed with status code "+t.status,[Bt.ERR_BAD_REQUEST,Bt.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}var Zm=$n.hasStandardBrowserEnv?{write(r,e,t,n,i,s){let o=[r+"="+encodeURIComponent(e)];he.isNumber(t)&&o.push("expires="+new Date(t).toGMTString()),he.isString(n)&&o.push("path="+n),he.isString(i)&&o.push("domain="+i),s===!0&&o.push("secure"),document.cookie=o.join("; ")},read(r){let e=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(r){this.write(r,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function ld(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function hd(r,e){return e?r.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):r}function m0(r,e){return r&&!ld(e)?hd(r,e):e}var Km=$n.hasStandardBrowserEnv?function(){let e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a"),n;function i(s){let o=s;return e&&(t.setAttribute("href",o),o=t.href),t.setAttribute("href",o),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return n=i(window.location.href),function(o){let a=he.isString(o)?i(o):o;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}();function dd(r){let e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return e&&e[1]||""}function Y4(r,e){r=r||10;let t=new Array(r),n=new Array(r),i=0,s=0,o;return e=e!==void 0?e:1e3,function(u){let c=Date.now(),f=n[s];o||(o=c),t[i]=u,n[i]=c;let l=s,h=0;for(;l!==i;)h+=t[l++],l=l%r;if(i=(i+1)%r,i===s&&(s=(s+1)%r),c-o{let s=i.loaded,o=i.lengthComputable?i.total:void 0,a=s-t,u=n(a),c=s<=o;t=s;let f={loaded:s,total:o,progress:o?s/o:void 0,bytes:a,rate:u||void 0,estimated:u&&o&&c?(o-s)/u:void 0,event:i};f[e?"download":"upload"]=!0,r(f)}}var $4=typeof XMLHttpRequest<"u",e3=$4&&function(r){return new Promise(function(t,n){let i=r.data,s=Zn.from(r.headers).normalize(),{responseType:o,withXSRFToken:a}=r,u;function c(){r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}let f;if(he.isFormData(i)){if($n.hasStandardBrowserEnv||$n.hasStandardBrowserWebWorkerEnv)s.setContentType(!1);else if((f=s.getContentType())!==!1){let[m,...D]=f?f.split(";").map(p=>p.trim()).filter(Boolean):[];s.setContentType([m||"multipart/form-data",...D].join("; "))}}let l=new XMLHttpRequest;if(r.auth){let m=r.auth.username||"",D=r.auth.password?unescape(encodeURIComponent(r.auth.password)):"";s.set("Authorization","Basic "+btoa(m+":"+D))}let h=m0(r.baseURL,r.url);l.open(r.method.toUpperCase(),d0(h,r.params,r.paramsSerializer),!0),l.timeout=r.timeout;function d(){if(!l)return;let m=Zn.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),p={data:!o||o==="text"||o==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:m,config:r,request:l};fd(function(g){t(g),c()},function(g){n(g),c()},p),l=null}if("onloadend"in l?l.onloadend=d:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(d)},l.onabort=function(){l&&(n(new Bt("Request aborted",Bt.ECONNABORTED,r,l)),l=null)},l.onerror=function(){n(new Bt("Network Error",Bt.ERR_NETWORK,r,l)),l=null},l.ontimeout=function(){let D=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded",p=r.transitional||af;r.timeoutErrorMessage&&(D=r.timeoutErrorMessage),n(new Bt(D,p.clarifyTimeoutError?Bt.ETIMEDOUT:Bt.ECONNABORTED,r,l)),l=null},$n.hasStandardBrowserEnv&&(a&&he.isFunction(a)&&(a=a(r)),a||a!==!1&&Km(h))){let m=r.xsrfHeaderName&&r.xsrfCookieName&&Zm.read(r.xsrfCookieName);m&&s.set(r.xsrfHeaderName,m)}i===void 0&&s.setContentType(null),"setRequestHeader"in l&&he.forEach(s.toJSON(),function(D,p){l.setRequestHeader(p,D)}),he.isUndefined(r.withCredentials)||(l.withCredentials=!!r.withCredentials),o&&o!=="json"&&(l.responseType=r.responseType),typeof r.onDownloadProgress=="function"&&l.addEventListener("progress",Qm(r.onDownloadProgress,!0)),typeof r.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",Qm(r.onUploadProgress)),(r.cancelToken||r.signal)&&(u=m=>{l&&(n(!m||m.type?new us(null,r,l):m),l.abort(),l=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));let x=dd(h);if(x&&$n.protocols.indexOf(x)===-1){n(new Bt("Unsupported protocol "+x+":",Bt.ERR_BAD_REQUEST,r));return}l.send(i||null)})};var Dd={http:sf,xhr:e3};he.forEach(Dd,(r,e)=>{if(r){try{Object.defineProperty(r,"name",{value:e})}catch{}Object.defineProperty(r,"adapterName",{value:e})}});var t3=r=>`- ${r}`,Z4=r=>he.isFunction(r)||r===null||r===!1,ff={getAdapter:r=>{r=he.isArray(r)?r:[r];let{length:e}=r,t,n,i={};for(let s=0;s`adapter ${a} `+(u===!1?"is not supported by the environment":"is not available in the build")),o=e?s.length>1?`since : +`+s.map(t3).join(` +`):" "+t3(s[0]):"as no adapter specified";throw new Bt("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:Dd};function pd(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new us(null,r)}function lf(r){return pd(r),r.headers=Zn.from(r.headers),r.data=p0.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),ff.getAdapter(r.adapter||Jo.adapter)(r).then(function(n){return pd(r),n.data=p0.call(r,r.transformResponse,n),n.headers=Zn.from(n.headers),n},function(n){return x0(n)||(pd(r),n&&n.response&&(n.response.data=p0.call(r,r.transformResponse,n.response),n.response.headers=Zn.from(n.response.headers))),Promise.reject(n)})}var n3=r=>r instanceof Zn?Me({},r):r;function Ir(r,e){e=e||{};let t={};function n(c,f,l){return he.isPlainObject(c)&&he.isPlainObject(f)?he.merge.call({caseless:l},c,f):he.isPlainObject(f)?he.merge({},f):he.isArray(f)?f.slice():f}function i(c,f,l){if(he.isUndefined(f)){if(!he.isUndefined(c))return n(void 0,c,l)}else return n(c,f,l)}function s(c,f){if(!he.isUndefined(f))return n(void 0,f)}function o(c,f){if(he.isUndefined(f)){if(!he.isUndefined(c))return n(void 0,c)}else return n(void 0,f)}function a(c,f,l){if(l in e)return n(c,f);if(l in r)return n(void 0,c)}let u={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(c,f)=>i(n3(c),n3(f),!0)};return he.forEach(Object.keys(Object.assign({},r,e)),function(f){let l=u[f]||i,h=l(r[f],e[f],f);he.isUndefined(h)&&l!==a||(t[f]=h)}),t}var hf="1.6.8";var xd={};["object","boolean","number","function","string","symbol"].forEach((r,e)=>{xd[r]=function(n){return typeof n===r||"a"+(e<1?"n ":" ")+r}});var i3={};xd.transitional=function(e,t,n){function i(s,o){return"[Axios v"+hf+"] Transitional option '"+s+"'"+o+(n?". "+n:"")}return(s,o,a)=>{if(e===!1)throw new Bt(i(o," has been removed"+(t?" in "+t:"")),Bt.ERR_DEPRECATED);return t&&!i3[o]&&(i3[o]=!0,console.warn(i(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(s,o,a):!0}};function K4(r,e,t){if(typeof r!="object")throw new Bt("options must be an object",Bt.ERR_BAD_OPTION_VALUE);let n=Object.keys(r),i=n.length;for(;i-- >0;){let s=n[i],o=e[s];if(o){let a=r[s],u=a===void 0||o(a,s,r);if(u!==!0)throw new Bt("option "+s+" must be "+u,Bt.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new Bt("Unknown option "+s,Bt.ERR_BAD_OPTION)}}var df={assertOptions:K4,validators:xd};var cs=df.validators,ea=class{constructor(e){this.defaults=e,this.interceptors={request:new sd,response:new sd}}request(e,t){return $(this,null,function*(){try{return yield this._request(e,t)}catch(n){if(n instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;let s=i.stack?i.stack.replace(/^.+\n/,""):"";n.stack?s&&!String(n.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(n.stack+=` +`+s):n.stack=s}throw n}})}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Ir(this.defaults,t);let{transitional:n,paramsSerializer:i,headers:s}=t;n!==void 0&&df.assertOptions(n,{silentJSONParsing:cs.transitional(cs.boolean),forcedJSONParsing:cs.transitional(cs.boolean),clarifyTimeoutError:cs.transitional(cs.boolean)},!1),i!=null&&(he.isFunction(i)?t.paramsSerializer={serialize:i}:df.assertOptions(i,{encode:cs.function,serialize:cs.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=s&&he.merge(s.common,s[t.method]);s&&he.forEach(["delete","get","head","post","put","patch","common"],x=>{delete s[x]}),t.headers=Zn.concat(o,s);let a=[],u=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(t)===!1||(u=u&&m.synchronous,a.unshift(m.fulfilled,m.rejected))});let c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let f,l=0,h;if(!u){let x=[lf.bind(this),void 0];for(x.unshift.apply(x,a),x.push.apply(x,c),h=x.length,f=Promise.resolve(t);l{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](i);n._listeners=null}),this.promise.then=i=>{let s,o=new Promise(a=>{n.subscribe(a),s=a}).then(i);return o.cancel=function(){n.unsubscribe(s)},o},e(function(s,o,a){n.reason||(n.reason=new us(s,o,a),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}static source(){let e;return{token:new r(function(i){e=i}),cancel:e}}},r3=md;function Cd(r){return function(t){return r.apply(null,t)}}function gd(r){return he.isObject(r)&&r.isAxiosError===!0}var Ed={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ed).forEach(([r,e])=>{Ed[e]=r});var s3=Ed;function o3(r){let e=new C0(r),t=f0(C0.prototype.request,e);return he.extend(t,C0.prototype,e,{allOwnKeys:!0}),he.extend(t,e,null,{allOwnKeys:!0}),t.create=function(i){return o3(Ir(r,i))},t}var gn=o3(Jo);gn.Axios=C0;gn.CanceledError=us;gn.CancelToken=r3;gn.isCancel=x0;gn.VERSION=hf;gn.toFormData=as;gn.AxiosError=Bt;gn.Cancel=gn.CanceledError;gn.all=function(e){return Promise.all(e)};gn.spread=Cd;gn.isAxiosError=gd;gn.mergeConfig=Ir;gn.AxiosHeaders=Zn;gn.formToJSON=r=>uf(he.isHTMLForm(r)?new FormData(r):r);gn.getAdapter=ff.getAdapter;gn.HttpStatusCode=s3;gn.default=gn;var Kn=gn;var{Axios:oL,AxiosError:aL,CanceledError:uL,isCancel:cL,CancelToken:fL,VERSION:lL,all:hL,Cancel:dL,isAxiosError:DL,spread:pL,toFormData:xL,AxiosHeaders:mL,HttpStatusCode:CL,formToJSON:gL,getAdapter:EL,mergeConfig:FL}=Kn;var fs=(()=>{let e=class e{constructor(){this.SCENE_BACKGROUND_COLOR="#FFFFFF",this.MOIM_ID="",this.DIARY_ID="",this.FACE_TYPE="",this.VIEW_TYPE="",this.TOP_NAVIGATOR_HEIGHT=60,this.BOTTOM_BUTTON_HEIGHT=80}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=bt({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})();var Ze=(()=>{let e=class e{constructor(n){this._ssalonConfigService=n,this.apiExecutor=null,this.apiExecutorJson=null,this.apiURL="https://ssalon.co.kr/api",this.tokens={},this.token="",this.refreshToken="",this.myProfile=void 0,this.token="",this.initApiExecutor()}setToken(){let i=`; ${document.cookie}`.split("; access=");this.token=i.pop().split(";").shift()}initApiExecutor(){this.apiExecutor=Kn.create({baseURL:this.apiURL,headers:{"Content-Type":"multipart/form-data","Access-Control-Allow-Origin":"*",withCredentials:!0}}),this.apiExecutorJson=Kn.create({baseURL:this.apiURL,headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*",withCredentials:!0}})}getMyProfile(){return $(this,null,function*(){try{let n=yield this.apiExecutorJson?.get("/users/me/profile");this.myProfile=n.data}catch{}})}updateMyProfile(n){return $(this,null,function*(){try{let i=yield this.apiExecutorJson?.patch("/users/me/profile",n);this.myProfile=i.data}catch{}})}getLastMessages(n){return $(this,null,function*(){try{let i=yield this.apiExecutor?.get(`/chat-history/${n}`);return console.log(i.data),i.data}catch{return!1}})}getChattingParticipants(n){return $(this,null,function*(){try{return(yield this.apiExecutorJson?.get(`/chat/${n}/users`)).data}catch{return!1}})}getTicket(n){return $(this,null,function*(){try{let i=yield this.apiExecutor?.get(`/tickets/${n}`);return console.log(i.data),i.data}catch{return!1}})}createTicket(n,i){return $(this,null,function*(){try{return console.log("post"),(yield this.apiExecutorJson?.post(`/tickets/${n}?template=${i}`)).data}catch{return(yield Kn.get("assets/decoration.json")).data}})}editTicket(n,i){return $(this,null,function*(){try{return(yield this.apiExecutor?.put(`/tickets/${n}`,i)).data}catch(s){return console.log(s),(yield Kn.get("assets/decoration.json")).data}})}generateImage(n,i){return $(this,null,function*(){try{return(yield this.apiExecutorJson?.post(`/image/generate/${n}`,i)).data}catch(s){console.log(s)}})}uploadTicketImages(n,i){return $(this,null,function*(){try{return(yield this.apiExecutor?.post(`/tickets/${n}/image`,i)).data}catch(s){return console.log(s),(yield Kn.get("assets/decoration.json")).data}})}createMoimReview(n,i){return $(this,null,function*(){try{return(yield this.apiExecutorJson?.post(`/diary/${n}/info`,i)).data}catch{return!1}})}getMoimReview(n){return $(this,null,function*(){try{let i=yield this.apiExecutorJson?.get(`/diary/${n}/info`);return console.log(i.data),i.data}catch{return!1}})}editMoimReview(n,i){return $(this,null,function*(){try{return(yield this.apiExecutorJson?.post(`/diary/${n}/info`,i)).data}catch{return!1}})}getDiary(n){return $(this,null,function*(){try{let i=yield this.apiExecutor?.get(`/diary/${n}`);return JSON.parse(i.data.resultJSON)}catch{return!1}})}createDiary(n,i){return $(this,null,function*(){try{return(yield this.apiExecutorJson?.post(`/diary/${n}?template=${i}`)).data}catch(s){return console.log(s),(yield Kn.get("assets/decoration.json")).data}})}editDiary(n,i){return $(this,null,function*(){try{return(yield this.apiExecutor?.put(`/diary/${n}`,i)).data}catch(s){return console.log(s),(yield Kn.get("assets/decoration.json")).data}})}uploadDiaryImages(n,i){return $(this,null,function*(){try{return(yield this.apiExecutor?.post(`/diary/${n}/image`,i)).data}catch(s){return console.log(s),(yield Kn.get("assets/decoration.json")).data}})}uploadGeneralImage(n){return $(this,null,function*(){try{return(yield this.apiExecutor?.post("/image-upload/general",n)).data}catch(i){return console.log(i),(yield Kn.get("assets/decoration.json")).data}})}getCategorys(){return $(this,null,function*(){try{return(yield this.apiExecutorJson?.get("/category/all")).data}catch(n){console.log(n)}})}getRecommendedCategorys(){return $(this,null,function*(){try{return(yield this.apiExecutorJson?.get("category/recommend")).data}catch(n){console.log(n)}})}getBarcode(n){return $(this,null,function*(){try{return(yield this.apiExecutorJson?.get(`/tickets/${n}/link`)).data}catch{return"asdfo7a809sd7fwae9089iafa"}})}checkQR(n,i){return $(this,null,function*(){try{let s={qrKey:i};return(yield this.apiExecutorJson?.post(`/tickets/${n}/link`,s)).data}catch{}})}changeAttendanceStatus(n,i,s=!1){return $(this,null,function*(){try{return(yield this.apiExecutorJson?.post(`/moims/${n}/attendance/${i}`)).data}catch{}})}getJoiningUsers(n){return $(this,null,function*(){try{return(yield this.apiExecutorJson?.get(`/moims/${n}/users`)).data}catch{}})}getMoimInfo(n){return $(this,null,function*(){try{return(yield this.apiExecutorJson?.get(`/moims/${n}`)).data}catch(i){console.log(i)}})}editMoimInfo(n,i){return $(this,null,function*(){try{return(yield this.apiExecutorJson?.patch(`/moims/${n}`,i)).data}catch(s){console.log(s)}})}getMoims(n=""){return $(this,null,function*(){try{let i=n===""?"/moims/home?categoryLen=10&meetingLen=10&categoryPage=1&isEnd=false":`/moims?isEnd=false&category=${n}&size=1000`;return(yield this.apiExecutorJson?.get(i)).data}catch(i){console.log(i)}})}getRecommendedMoims(n=""){return $(this,null,function*(){try{return(yield this.apiExecutorJson?.get("/moims/recommend?isEnd=false")).data}catch(i){console.log(i)}})}getRunningMoims(){return $(this,null,function*(){try{return(yield this.apiExecutorJson?.get("/moims?isParticipant=true&isEnd=false&size=100")).data}catch(n){console.log(n)}})}getEndedMoims(){return $(this,null,function*(){try{return(yield this.apiExecutorJson?.get("/moims?isParticipant=true&isEnd=true&size=100")).data}catch(n){console.log(n)}})}searchMoims(n){return $(this,null,function*(){try{return(yield this.apiExecutorJson?.get(`/moims/search/keyword?keyword=${n}`)).data}catch(i){console.log(i)}})}joinMoim(n){return $(this,null,function*(){try{return(yield this.apiExecutorJson?.post(`moims/${n}/users`))?.data}catch{return!1}})}getPaymentinfo(n){return $(this,null,function*(){try{return(yield this.apiExecutorJson?.get(`moims/${n}/me/payment`))?.data}catch{return!1}})}getRefund(n,i){return $(this,null,function*(){try{return(yield this.apiExecutorJson?.post(`moims/${n}/billings/${i}`))?.data}catch{return!1}})}payFee(n){return $(this,null,function*(){try{return(yield this.apiExecutorJson?.post(`moims/${n}/billings`))?.data}catch{return!1}})}leaveMoim(n,i){return $(this,null,function*(){try{return(yield this.apiExecutorJson?.delete(`moims/${n}/users/${i}`))?.data}catch{return!1}})}kickParticipant(n,i,s){return $(this,null,function*(){try{let o={reason:s};return(yield this.apiExecutorJson?.delete(`moims/${n}/users/${i}`,{data:o}))?.data}catch{return!1}})}reportParticipant(n,i,s){return $(this,null,function*(){try{let o={id:0,reporterId:n,reportedUserId:i,reportPictureUrls:[],reason:s,isSolved:!1,reportDate:new Date,solvedDate:""};return(yield this.apiExecutorJson?.post("report",o))?.data}catch{return!1}})}exitSsalon(){return $(this,null,function*(){try{return(yield this.apiExecutorJson?.delete("users/me"))?.data}catch{return!1}})}checkParticipant(n){return $(this,null,function*(){try{return(yield this.apiExecutorJson?.get(`moims/${n}/participant`)).data}catch{return!1}})}checkCreator(n){return $(this,null,function*(){try{return(yield this.apiExecutorJson?.get(`moims/${n}/creator`)).data}catch{return!1}})}getProfile(){return $(this,null,function*(){try{return(yield this.apiExecutorJson?.get("/users/me/profile")).data}catch{return!1}})}getIsRegister(){return $(this,null,function*(){try{return(yield this.apiExecutorJson?.get("/users/me/signup-verify")).data.isRegistered}catch{return!1}})}createMeeting(n){return $(this,null,function*(){try{return(yield this.apiExecutorJson?.post("/moims",n)).data}catch(i){console.log(i)}})}removeMeeting(n){return $(this,null,function*(){try{return(yield this.apiExecutorJson?.delete(`/moims/${n}`)).data}catch(i){console.log(i)}})}registerUser(n){return $(this,null,function*(){try{return(yield this.apiExecutorJson?.post("/auth/signup",n)).data}catch(i){console.log(i)}})}getUserInfoByEmail(n){return $(this,null,function*(){try{return(yield this.apiExecutorJson?.get(`/users/email/profile?email=${n}`)).data}catch(i){console.log(i)}})}removeAccount(){return $(this,null,function*(){try{return(yield this.apiExecutorJson?.delete("/users/me")).data}catch(n){console.log(n)}})}logout(){return $(this,null,function*(){try{return(yield this.apiExecutorJson?.delete("/auth/logout")).data}catch(n){console.log(n)}})}};e.\u0275fac=function(i){return new(i||e)(Lt(fs))},e.\u0275prov=bt({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})();function J4(r,e){if(r&1){let t=ye();k(0,"img",3),K("click",function(){ae(t);let i=N();return ue(i.onClickEditButton())}),I()}}var ta=(()=>{let e=class e{constructor(n){this._apiExecutorService=n,this.imgSize=96,this.imgSrc="assets/default_profile.png",this.isEditable=!0,this.onImgClickEvent=new Ve}onClickEditButton(){let n=document.createElement("input");n.type="file",n.accept="image/*",n.multiple=!0;let i=[];n.onchange=(function(){return $(this,null,function*(){if(i=[],n.files&&n.files.length>0){let s=Array.from(n.files),o=0;s.forEach((a,u)=>{let c=new FileReader;c.onload=(function(f){return $(this,null,function*(){i.push(f.target.result),o++,o===s.length&&(yield this.getImageUrl(i))})}).bind(this),c.readAsDataURL(a)})}})}).bind(this),n.click(),this.onImgClickEvent.emit()}getImageUrl(n){return $(this,null,function*(){let i=new FormData;function s(u){for(var c=atob(u.split(",")[1]),f=u.split(",")[0].split(":")[1].split(";")[0],l=new ArrayBuffer(c.length),h=new Uint8Array(l),d=0;d{i.append("files",s(u),`${c}.png`)});try{let u=yield this._apiExecutorService.uploadGeneralImage(i),c=Object.keys(u.mapURI);console.log(c);for(var o=0;o1?16:0,"px")("width",t.length*n.buttonWidth+(t.length-1)*10,"px"),A(),S("ngForOf",t)}}var wn=(()=>{let e=class e{constructor(){this.label="",this.extraLabel="",this.extraLabelColor="",this.componentWidth=350,this.buttonElements=[],this.buttonWidth=350,this.buttonHeight=48,this.fontSize=16,this.columnNum=3,this.multiSelection=!1,this.align="center",this.onClickToggleButtonEvent=new Ve,this.modifiedButtonElements=[]}ngOnInit(){this._setButtonLayout()}_setButtonLayout(){if(this.columnNum!==-1){let n=[];for(let i=0;ii.value===n).selected=!this.buttonElements.find(i=>i.value===n).selected:(this.buttonElements.forEach(i=>i.selected=!1),this.buttonElements.find(i=>i.value===n).selected=!0),this.onClickToggleButtonEvent.emit(n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=Ee({type:e,selectors:[["app-simple-toggle"]],inputs:{label:"label",extraLabel:"extraLabel",extraLabelColor:"extraLabelColor",componentWidth:"componentWidth",buttonElements:"buttonElements",buttonWidth:"buttonWidth",buttonHeight:"buttonHeight",fontSize:"fontSize",columnNum:"columnNum",multiSelection:"multiSelection",align:"align"},outputs:{onClickToggleButtonEvent:"onClickToggleButtonEvent"},standalone:!0,features:[Fe],decls:4,vars:2,consts:[["toggleButton",""],[1,"container"],["id","label-container",4,"ngIf"],["id","row-container"],[4,"ngFor","ngForOf"],["id","label-container"],["id","extra-label-container",3,"color",4,"ngIf"],["id","extra-label-container"],[1,"toggle-group-row-container"],[3,"click","ngClass"],["class","img","height","24px",3,"src",4,"ngIf"],[1,"label"],["height","24px",1,"img",3,"src"]],template:function(i,s){i&1&&(k(0,"div",1),me(1,e9,3,2,"div",2),k(2,"div",3),me(3,i9,3,5,"ng-container",4),I()()),i&2&&(A(),S("ngIf",s.label!==""),A(2),S("ngForOf",s.modifiedButtonElements))},dependencies:[Ru,Oo,cn,qe],styles:['.container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;width:100%}.container[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}#extra-label-container[_ngcontent-%COMP%]{font-size:14px;font-family:Pretendard Variable,Pretendard,-apple-system,BlinkMacSystemFont,system-ui,Roboto,Helvetica Neue,Segoe UI,Apple SD Gothic Neo,Noto Sans KR,Malgun Gothic,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,sans-serif}#label-container[_ngcontent-%COMP%]{font-size:14px;font-family:Pretendard Variable,Pretendard,-apple-system,BlinkMacSystemFont,system-ui,Roboto,Helvetica Neue,Segoe UI,Apple SD Gothic Neo,Noto Sans KR,Malgun Gothic,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,sans-serif;margin-bottom:6px;width:100%}#row-container[_ngcontent-%COMP%]{width:100%}#row-container[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.toggle-group-row-container[_ngcontent-%COMP%]{display:flex;margin-bottom:16px}.label[_ngcontent-%COMP%]{font-size:16px;font-family:Pretendard Variable,Pretendard,-apple-system,BlinkMacSystemFont,system-ui,Roboto,Helvetica Neue,Segoe UI,Apple SD Gothic Neo,Noto Sans KR,Malgun Gothic,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,sans-serif}.img[_ngcontent-%COMP%]{margin-right:8px}.unselected-button[_ngcontent-%COMP%]{width:110px;height:48px;border-width:1.5px;border-radius:10px;border-color:#d8d8da;border-style:solid;box-sizing:border-box;display:flex;justify-content:center;align-items:center;padding:0 10px;margin-right:10px;font-family:Pretendard Variable,Pretendard,-apple-system,BlinkMacSystemFont,system-ui,Roboto,Helvetica Neue,Segoe UI,Apple SD Gothic Neo,Noto Sans KR,Malgun Gothic,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,sans-serif;font-size:16px;font-weight:500}.selected-button[_ngcontent-%COMP%]{width:110px;height:48px;border-width:1.5px;border-radius:10px;border-color:#2c2c2c;border-style:solid;box-sizing:border-box;display:flex;justify-content:center;align-items:center;padding:0 10px;margin-right:10px;font-family:Pretendard Variable,Pretendard,-apple-system,BlinkMacSystemFont,system-ui,Roboto,Helvetica Neue,Segoe UI,Apple SD Gothic Neo,Noto Sans KR,Malgun Gothic,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,sans-serif;font-size:16px;font-weight:500}.unselected-button-solid[_ngcontent-%COMP%]{width:110px;height:48px;background-color:#f8f8f8;display:flex;justify-content:center;align-items:center;padding:0 10px;margin-right:10px;border-radius:10px;font-family:Pretendard Variable,Pretendard,-apple-system,BlinkMacSystemFont,system-ui,Roboto,Helvetica Neue,Segoe UI,Apple SD Gothic Neo,Noto Sans KR,Malgun Gothic,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,sans-serif;font-size:16px;font-weight:500}.selected-button-solid[_ngcontent-%COMP%]{width:110px;height:48px;display:flex;background-color:#000;color:#fff;justify-content:center;align-items:center;padding:0 10px;margin-right:10px;border-radius:10px;font-family:Pretendard Variable,Pretendard,-apple-system,BlinkMacSystemFont,system-ui,Roboto,Helvetica Neue,Segoe UI,Apple SD Gothic Neo,Noto Sans KR,Malgun Gothic,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,sans-serif;font-size:16px;font-weight:500}.button-hover[_ngcontent-%COMP%]:hover{cursor:pointer}']});let r=e;return r})();function r9(r,e){if(r&1&&de(0,"img",3),r&2){let t=N();S("src",t.buttonElement.imgSrc,Zt)("height",t.heightSize)}}function s9(r,e){if(r&1&&(k(0,"div",4),ze(1),I()),r&2){let t=N();Te("font-size",t.heightSize,"px")("color",t.highContrast?"#f0f0f0":"black"),A(),Nt(" ",t.buttonElement.label," ")}}var xf=(()=>{let e=class e{constructor(){this.heightSize=20,this.buttonElement=null,this.type="img",this.highContrast=!1,this.onClickEvent=new Ve}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=Ee({type:e,selectors:[["app-simple-button"]],inputs:{heightSize:"heightSize",buttonElement:"buttonElement",type:"type",highContrast:"highContrast"},outputs:{onClickEvent:"onClickEvent"},standalone:!0,features:[Fe],decls:3,vars:2,consts:[["id","simple-button",3,"click"],[3,"src","height",4,"ngIf"],["id","text-div",3,"font-size","color",4,"ngIf"],[3,"src","height"],["id","text-div"]],template:function(i,s){i&1&&(k(0,"div",0),K("click",function(){return s.onClickEvent.emit()}),me(1,r9,1,2,"img",1)(2,s9,2,5,"div",2),I()),i&2&&(A(),S("ngIf",s.type==="img"),A(),S("ngIf",s.type==="text"))},dependencies:[qe],styles:["#simple-button[_ngcontent-%COMP%]{margin:10px;display:flex;justify-content:center;align-items:center;border-radius:10px}#simple-button[_ngcontent-%COMP%]:hover{cursor:pointer}#text-div[_ngcontent-%COMP%]{text-align:center}"]});let r=e;return r})();function o9(r,e){if(r&1){let t=ye();rn(0),k(1,"div",2),K("click",function(){let i=ae(t).$implicit,s=N();return ue(s.onClickButton(i.value))}),ze(2),I(),sn()}if(r&2){let t=e.$implicit,n=N();A(),Te("width",(350-10*n.buttonElements.length)/n.buttonElements.length,"px"),S("ngClass",n.getClass(t.value)),A(),Ht(t.label)}}var En=(()=>{let e=class e{constructor(){this.buttonElements=[{selected:!0,value:0,label:"\uB2E4\uC74C"}],this.onClickEvent=new Ve}onClickButton(n){this.onClickEvent.emit(n)}getClass(n){return this.buttonElements.find(i=>i.value===n).selected?"ready-button hover-button":"wait-button hover-button"}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=Ee({type:e,selectors:[["app-square-button"]],inputs:{buttonElements:"buttonElements"},outputs:{onClickEvent:"onClickEvent"},standalone:!0,features:[Fe],decls:2,vars:1,consts:[["id","container"],[4,"ngFor","ngForOf"],[3,"click","ngClass"]],template:function(i,s){i&1&&(k(0,"div",0),me(1,o9,3,4,"ng-container",1),I()),i&2&&(A(),S("ngForOf",s.buttonElements))},dependencies:[cn,Oo],styles:['#container[_ngcontent-%COMP%]{width:350px;height:48px;display:flex;justify-content:space-between;align-items:center}.ready-button[_ngcontent-%COMP%]{width:350px;height:48px;border-radius:10px;background-color:#006bff;font-size:16px;font-weight:500;font-family:Pretendard Variable,Pretendard,-apple-system,BlinkMacSystemFont,system-ui,Roboto,Helvetica Neue,Segoe UI,Apple SD Gothic Neo,Noto Sans KR,Malgun Gothic,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,sans-serif;color:#fff;display:flex;justify-content:center;align-items:center}.wait-button[_ngcontent-%COMP%]{width:350px;height:48px;border-radius:10px;background-color:#bcbcbc;font-size:16px;font-weight:500;font-family:Pretendard Variable,Pretendard,-apple-system,BlinkMacSystemFont,system-ui,Roboto,Helvetica Neue,Segoe UI,Apple SD Gothic Neo,Noto Sans KR,Malgun Gothic,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,sans-serif;color:#fff;display:flex;justify-content:center;align-items:center}.hover-button[_ngcontent-%COMP%]:hover{cursor:pointer}']});let r=e;return r})();var ht=(()=>{let e=class e{constructor(n){this._apiExecutorService=n,this.mainCategoryTab=["\uCD94\uCC9C","\uC6B4\uB3D9","\uB3C5\uC11C","\uC694\uB9AC","\uC5EC\uD589","\uC74C\uC545","\uC2A4\uD130\uB514","\uC1FC\uD551","\uC608\uC220","\uC0AC\uC9C4","\uAC8C\uC784"],this.category=["\uC6B4\uB3D9","\uB3C5\uC11C","\uC694\uB9AC","\uC5EC\uD589","\uC74C\uC545","\uC2A4\uD130\uB514","\uC1FC\uD551","\uC608\uC220","\uC0AC\uC9C4","\uAC8C\uC784"],this.categoryEnglish=["exercise","book","food","travel","music","study","shopping","art","photography","game"],this.joinButtonElements=[{selected:!0,value:0,label:"\uCC38\uAC00\uD558\uAE30"}],this.createDiaryButtonElements=[{selected:!0,value:0,label:"\uD6C4\uAE30 \uC791\uC131\uD558\uAE30"}],this.loginButtonElements=[{selected:!1,value:0,label:"Google\uB85C \uC2DC\uC791\uD558\uAE30",solid:!1,imgSrc:"assets/login-icons/google.png"},{selected:!1,value:1,label:"Kakao\uB85C \uC2DC\uC791\uD558\uAE30",solid:!0,unselectedBackgroundColor:"#FEE500",unselectedFontColor:"#000000",selectedBackgroundColor:"#FEE500",selectedFontColor:"#000000",imgSrc:"assets/login-icons/kakao.png"},{selected:!1,value:2,label:"Naver\uB85C \uC2DC\uC791\uD558\uAE30",solid:!0,unselectedBackgroundColor:"#03C75A",unselectedFontColor:"#ffffff",selectedBackgroundColor:"#03C75A",selectedFontColor:"#ffffff",imgSrc:"assets/login-icons/naver.png"}],this.genderSelectionButtons=[{selected:!1,value:0,label:"\uB0A8\uC790"},{selected:!1,value:1,label:"\uC5EC\uC790"},{selected:!1,value:2,label:"\uAE30\uD0C0"}],this.locationSelectionButtons=[{selected:!1,value:0,label:"\uC11C\uC6B8\uD2B9\uBCC4\uC2DC"},{selected:!1,value:1,label:"\uACBD\uAE30\uB3C4"},{selected:!1,value:2,label:"\uAC15\uC6D0\uB3C4"},{selected:!1,value:3,label:"\uCDA9\uCCAD\uBD81\uB3C4"},{selected:!1,value:4,label:"\uCDA9\uCCAD\uB0A8\uB3C4"},{selected:!1,value:5,label:"\uC804\uB77C\uB0A8\uB3C4"},{selected:!1,value:6,label:"\uC804\uB77C\uBD81\uB3C4"},{selected:!1,value:7,label:"\uACBD\uC0C1\uBD81\uB3C4"},{selected:!1,value:8,label:"\uACBD\uC0C1\uB0A8\uB3C4"},{selected:!1,value:9,label:"\uC778\uCC9C\uAD11\uC5ED\uC2DC"}],this.interestSelectionButtons=[],this.categorySelectionButtons=[],this.createTicketButtons=[{selected:!1,value:0,label:"\uD2F0\uCF13\uB9CC\uB4E4\uAE30"}],this.createTicketTypeButtons=[{selected:!1,value:0,label:"\uCC98\uC74C\uBD80\uD130 \uB9CC\uB4E4\uAE30",imgSrc:"assets/create-ticket-type-icons/create.png"},{selected:!1,value:1,label:"\uD15C\uD50C\uB9BF\uC73C\uB85C \uB9CC\uB4E4\uAE30",imgSrc:"assets/create-ticket-type-icons/template.png"}],this.nextButtons=[{selected:!1,value:0,label:"\uB2E4\uC74C"}],this.shareJoinButtons=[{selected:!0,value:0,label:"\uBAA8\uC784 \uCC38\uC5EC\uD574\uBCF4\uAE30"}],this.editCompleteButtons=[{selected:!0,value:0,label:"\uC218\uC815 \uC644\uB8CC"}],this.editTicketButtons=[{selected:!1,value:0,label:"\uC99D\uD45C \uC55E\uBA74 \uC218\uC815\uD558\uAE30"},{selected:!1,value:1,label:"\uC99D\uD45C \uB4B7\uBA74 \uC218\uC815\uD558\uAE30"}],this.editProfileButton=[{selected:!1,value:0,label:"\uD504\uB85C\uD544 \uC218\uC815\uD558\uAE30"},{selected:!1,value:1,label:"\uB85C\uADF8\uC544\uC6C3"}],this.manageParticipantsButtons=[{selected:!1,value:0,label:"\uC2E0\uACE0\uD558\uAE30"},{selected:!1,value:1,label:"\uAC15\uD1F4\uD558\uAE30"}],this.removeAccountButtons=[{selected:!0,value:0,label:"\uCDE8\uC18C\uD558\uAE30"},{selected:!1,value:1,label:"\uD0C8\uD1F4\uD558\uAE30"}],this.removeMOimButtons=[{selected:!0,value:0,label:"\uCDE8\uC18C\uD558\uAE30"},{selected:!1,value:1,label:"\uC0AD\uC81C\uD558\uAE30"}];for(let i=0;i<10;i++)this.interestSelectionButtons.push({selected:!1,value:i,label:this.category[i],imgSrc:`assets/interest-icons/${this.categoryEnglish[i]}.png`});for(let i=0;i<11;i++)this.categorySelectionButtons.push({selected:i===0,value:i,label:this.mainCategoryTab[i],solid:!0,unselectedBackgroundColor:"#F8F8F8",unselectedFontColor:"#000000",selectedBackgroundColor:"#000000",selectedFontColor:"#ffffff"})}updateCategoryOrder(){return $(this,null,function*(){return this.categorySelectionButtons=[],(yield this._apiExecutorService.getRecommendedCategorys()).forEach(i=>{this.categorySelectionButtons.push({selected:!1,value:i.id,label:this.category[i.id-1],solid:!0,unselectedBackgroundColor:"#F8F8F8",unselectedFontColor:"#000000",selectedBackgroundColor:"#000000",selectedFontColor:"#ffffff"})}),this.categorySelectionButtons.unshift({selected:!0,value:0,label:"\uCD94\uCC9C",solid:!0,unselectedBackgroundColor:"#F8F8F8",unselectedFontColor:"#000000",selectedBackgroundColor:"#000000",selectedFontColor:"#ffffff"}),!0})}getLabelByValue(n,i){return n.find(s=>s.value===i)?.label}getValueByLabel(n,i){return n.find(s=>s.label===i)?.value}inintButtons(){this.joinButtonElements=[{selected:!0,value:0,label:"\uCC38\uAC00\uD558\uAE30"}],this.loginButtonElements=[{selected:!1,value:0,label:"Google\uB85C \uC2DC\uC791\uD558\uAE30",solid:!1,imgSrc:"assets/login-icons/google.png"},{selected:!1,value:1,label:"Kakao\uB85C \uC2DC\uC791\uD558\uAE30",solid:!0,unselectedBackgroundColor:"#FEE500",unselectedFontColor:"#000000",selectedBackgroundColor:"#FEE500",selectedFontColor:"#000000",imgSrc:"assets/login-icons/kakao.png"},{selected:!1,value:2,label:"Naver\uB85C \uC2DC\uC791\uD558\uAE30",solid:!0,unselectedBackgroundColor:"#03C75A",unselectedFontColor:"#ffffff",selectedBackgroundColor:"#03C75A",selectedFontColor:"#ffffff",imgSrc:"assets/login-icons/naver.png"}],this.genderSelectionButtons=[{selected:!1,value:0,label:"\uB0A8\uC790"},{selected:!1,value:1,label:"\uC5EC\uC790"},{selected:!1,value:2,label:"\uAE30\uD0C0"}],this.locationSelectionButtons=[{selected:!1,value:0,label:"\uC11C\uC6B8\uD2B9\uBCC4\uC2DC"},{selected:!1,value:1,label:"\uACBD\uAE30\uB3C4"},{selected:!1,value:2,label:"\uAC15\uC6D0\uB3C4"},{selected:!1,value:3,label:"\uCDA9\uCCAD\uBD81\uB3C4"},{selected:!1,value:4,label:"\uCDA9\uCCAD\uB0A8\uB3C4"},{selected:!1,value:5,label:"\uC804\uB77C\uB0A8\uB3C4"},{selected:!1,value:6,label:"\uC804\uB77C\uBD81\uB3C4"},{selected:!1,value:7,label:"\uACBD\uC0C1\uBD81\uB3C4"},{selected:!1,value:8,label:"\uACBD\uC0C1\uB0A8\uB3C4"},{selected:!1,value:9,label:"\uC778\uCC9C\uAD11\uC5ED\uC2DC"}],this.interestSelectionButtons=[{selected:!1,value:0,label:"\uC6B4\uB3D9",imgSrc:"assets/interest-icons/excersize.png"},{selected:!1,value:1,label:"\uAC8C\uC784",imgSrc:"assets/interest-icons/game.png"},{selected:!1,value:2,label:"\uC74C\uC545",imgSrc:"assets/interest-icons/music.png"},{selected:!1,value:3,label:"\uC694\uB9AC",imgSrc:"assets/interest-icons/food.png"},{selected:!1,value:4,label:"\uB3C5\uC11C",imgSrc:"assets/interest-icons/book.png"}],this.categorySelectionButtons=[{selected:!0,value:0,label:"\uC804\uCCB4",solid:!0,unselectedBackgroundColor:"#F8F8F8",unselectedFontColor:"#000000",selectedBackgroundColor:"#000000",selectedFontColor:"#ffffff"},{selected:!1,value:1,label:"\uC6B4\uB3D9",solid:!0,unselectedBackgroundColor:"#F8F8F8",unselectedFontColor:"#000000",selectedBackgroundColor:"#000000",selectedFontColor:"#ffffff"},{selected:!1,value:2,label:"\uAC8C\uC784",solid:!0,unselectedBackgroundColor:"#F8F8F8",unselectedFontColor:"#000000",selectedBackgroundColor:"#000000",selectedFontColor:"#ffffff"},{selected:!1,value:3,label:"\uC74C\uC545",solid:!0,unselectedBackgroundColor:"#F8F8F8",unselectedFontColor:"#000000",selectedBackgroundColor:"#000000",selectedFontColor:"#ffffff"},{selected:!1,value:4,label:"\uC694\uB9AC",solid:!0,unselectedBackgroundColor:"#F8F8F8",unselectedFontColor:"#000000",selectedBackgroundColor:"#000000",selectedFontColor:"#ffffff"},{selected:!1,value:5,label:"\uB3C5\uC11C",solid:!0,unselectedBackgroundColor:"#F8F8F8",unselectedFontColor:"#000000",selectedBackgroundColor:"#000000",selectedFontColor:"#ffffff"},{selected:!1,value:6,label:"\uC601\uD654",solid:!0,unselectedBackgroundColor:"#F8F8F8",unselectedFontColor:"#000000",selectedBackgroundColor:"#000000",selectedFontColor:"#ffffff"}],this.createTicketButtons=[{selected:!1,value:0,label:"\uD2F0\uCF13\uB9CC\uB4E4\uAE30"}],this.createTicketTypeButtons=[{selected:!1,value:0,label:"\uCC98\uC74C\uBD80\uD130 \uB9CC\uB4E4\uAE30",imgSrc:"assets/create-ticket-type-icons/create.png"},{selected:!1,value:1,label:"\uD15C\uD50C\uB9BF\uC73C\uB85C \uB9CC\uB4E4\uAE30",imgSrc:"assets/create-ticket-type-icons/template.png"}],this.nextButtons=[{selected:!1,value:0,label:"\uB2E4\uC74C"}]}};e.\u0275fac=function(i){return new(i||e)(Lt(Ze))},e.\u0275prov=bt({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})();var a9=["progressBar"],u9=["nextButton"],c9=["profileImg"];function f9(r,e){if(r&1){let t=ye();k(0,"div",3),de(1,"app-profile-img",10,2),k(3,"app-simple-input",11),K("onChangeEvent",function(i){ae(t);let s=N();return ue(s.onChangeUserInfo("nickname",i))}),I(),k(4,"app-simple-toggle",12),K("onClickToggleButtonEvent",function(i){ae(t);let s=N();return ue(s.onChangeUserInfo("gender",i))}),I(),k(5,"app-simple-input",13),K("onChangeEvent",function(i){ae(t);let s=N();return ue(s.onChangeUserInfo("introduction",i))}),I()()}if(r&2){let t=N();A(3),S("label","\uB2C9\uB124\uC784")("extraLabel","(\uD544\uC218)")("extraLabelColor","#0090f2")("placeholder","\uB2C9\uB124\uC784\uC744 \uC785\uB825\uD574\uC8FC\uC138\uC694"),A(),S("label","\uC131\uBCC4")("extraLabel","(\uD544\uC218)")("extraLabelColor","#0090f2")("buttonElements",t.buttonElementsService.genderSelectionButtons)("buttonWidth",110),A(),S("label","\uC18C\uAC1C")("placeholder","\uAC04\uB2E8\uD55C \uC18C\uAC1C\uB97C \uD574\uC8FC\uC138\uC694")}}function l9(r,e){if(r&1){let t=ye();k(0,"div",3)(1,"app-simple-toggle",14),K("onClickToggleButtonEvent",function(i){ae(t);let s=N();return ue(s.onChangeUserInfo("address",i))}),I()()}if(r&2){let t=N();A(),S("buttonElements",t.buttonElementsService.locationSelectionButtons)("columnNum",1)("buttonWidth",350)("align","left")}}function h9(r,e){if(r&1){let t=ye();k(0,"div",3)(1,"app-simple-toggle",15),K("onClickToggleButtonEvent",function(i){ae(t);let s=N();return ue(s.onChangeUserInfo("interests",i))}),I()()}if(r&2){let t=N();A(),S("buttonElements",t.buttonElementsService.interestSelectionButtons)("columnNum",1)("buttonWidth",350)("align","left")("multiSelection",!0)}}var a3=(()=>{let e=class e{constructor(n,i,s,o){this._router=n,this._apiExecutorService=i,this.buttonElementsService=s,this._route=o,this.progressBar=null,this.nextButton=null,this.profileImg=null,this.onBoardingStep=[{label:"\uD504\uB85C\uD544\uC744 \uC791\uC131\uD574\uC8FC\uC138\uC694",value:0},{label:"\uBAA8\uC784\uC744 \uD560 \uC7A5\uC18C\uB97C \uC120\uD0DD\uD574\uC8FC\uC138\uC694",value:1},{label:"\uAD00\uC2EC \uC788\uB294 \uCE74\uD14C\uACE0\uB9AC\uB97C \uC120\uD0DD\uD574\uC8FC\uC138\uC694",value:2}],this.nowOnboardingStep=this.onBoardingStep[0],this._userInfo={nickname:"",profilePictureUrl:"",gender:"M",address:"",introduction:"",interests:[]},this._goMoimId=void 0,sessionStorage.getItem("goMoimId")?this._goMoimId=sessionStorage.getItem("goMoimId"):this._goMoimId="undefined"}ngOnInit(){}onChangeUserInfo(n,i){switch(n){case"nickname":this._userInfo.nickname=i;break;case"introduction":this._userInfo.introduction=i;break;case"gender":this._userInfo.gender=this.getStringFromGenderEnum(this.buttonElementsService.genderSelectionButtons.find(s=>s.selected===!0).value);break;case"address":this._userInfo.address=this.buttonElementsService.locationSelectionButtons.find(s=>s.selected===!0).label;break;case"interests":this._userInfo.interests=[...this.buttonElementsService.interestSelectionButtons].filter(s=>s.selected==!0).map(s=>s.label)}this.nowOnboardingStep===this.onBoardingStep[0]?this._userInfo.nickname!==""&&(this.buttonElementsService.nextButtons[0].selected=!0):this.nowOnboardingStep===this.onBoardingStep[1]?this._userInfo.address!==""&&(this.buttonElementsService.nextButtons[0].selected=!0):this.nowOnboardingStep===this.onBoardingStep[2]&&this._userInfo.interests.length>0&&(this.buttonElementsService.nextButtons[0].selected=!0)}getStringFromGenderEnum(n){return n===0?"M":n===1?"F":"G"}onClickEditProfileImageButton(){}onClickNextButton(n){return $(this,null,function*(){if(this.buttonElementsService.nextButtons[0].selected){let i=this.nowOnboardingStep.value+1;i>=this.onBoardingStep.length?(this.buttonElementsService.interestSelectionButtons.forEach(s=>{s.selected=!1}),yield this._apiExecutorService.registerUser(this._userInfo),this._goMoimId==="undefined"?this._router.navigate(["/web/main"]):this._router.navigate(["/web/meeting-info"],{queryParams:{moimId:this._goMoimId}})):(this.nowOnboardingStep===this.onBoardingStep[0]&&(this._userInfo.profilePictureUrl=this.profileImg.imgSrc),this.nowOnboardingStep=this.onBoardingStep[i]),this.buttonElementsService.nextButtons[0].selected=!1}})}};e.\u0275fac=function(i){return new(i||e)(se(At),se(Ze),se(ht),se(Vt))},e.\u0275cmp=Ee({type:e,selectors:[["app-onboarding"]],viewQuery:function(i,s){if(i&1&&(Ie(a9,7),Ie(u9,7),Ie(c9,5)),i&2){let o;ke(o=Pe())&&(s.progressBar=o.first),ke(o=Pe())&&(s.nextButton=o.first),ke(o=Pe())&&(s.profileImg=o.first)}},standalone:!0,features:[Fe],decls:12,vars:7,consts:[["progressBar",""],["nextButton",""],["profileImg",""],[1,"container"],["id","progress-bar",3,"value","max"],["id","onboarding-label"],["class","container",4,"ngIf"],["class"," container",4,"ngIf"],["id","next-button-container"],[3,"onClickEvent","buttonElements"],["id","profile-img"],[3,"onChangeEvent","label","extraLabel","extraLabelColor","placeholder"],[3,"onClickToggleButtonEvent","label","extraLabel","extraLabelColor","buttonElements","buttonWidth"],[3,"onChangeEvent","label","placeholder"],[3,"onClickToggleButtonEvent","buttonElements","columnNum","buttonWidth","align"],[3,"onClickToggleButtonEvent","buttonElements","columnNum","buttonWidth","align","multiSelection"]],template:function(i,s){if(i&1){let o=ye();k(0,"div",3),de(1,"progress",4,0),k(3,"div",5)(4,"span"),ze(5),I()(),me(6,f9,6,11,"div",6)(7,l9,2,4,"div",7)(8,h9,2,5,"div",6),k(9,"div",8)(10,"app-square-button",9,1),K("onClickEvent",function(u){return ae(o),ue(s.onClickNextButton(u))}),I()()()}i&2&&(A(),S("value",s.nowOnboardingStep.value+1)("max",s.onBoardingStep.length),A(4),Ht(s.nowOnboardingStep.label),A(),S("ngIf",s.nowOnboardingStep.value===0),A(),S("ngIf",s.nowOnboardingStep.value===1),A(),S("ngIf",s.nowOnboardingStep.value===2),A(2),S("buttonElements",s.buttonElementsService.nextButtons))},dependencies:[qe,Hn,ta,wn,En],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;overflow-y:scroll;height:100%;width:100%;position:relative}.container[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}#progress-bar[_ngcontent-%COMP%]{width:350px;height:10px;margin-top:28px;margin-bottom:28px;appearance:none}#progress-bar[_ngcontent-%COMP%]::-webkit-progress-bar{background-color:#efefef;border-radius:12px;overflow:hidden}#progress-bar[_ngcontent-%COMP%]::-webkit-progress-value{background-color:#006bff}#onboarding-label[_ngcontent-%COMP%]{width:350px;font-size:24px;font-weight:600;margin-bottom:16px;display:flex;align-items:left}#profile-img[_ngcontent-%COMP%]{margin-bottom:24px}#next-button-container[_ngcontent-%COMP%]{margin-bottom:20px}"]});let r=e;return r})();function d9(r,e){if(r&1&&(k(0,"span",5),ze(1),I()),r&2){let t=N(2);Te("color",t.extraLabelColor),A(),Ht(t.extraLabel)}}function D9(r,e){if(r&1&&(k(0,"div",3),ze(1),me(2,d9,2,3,"span",4),I()),r&2){let t=N();A(),Nt(" ",t.label," "),A(),S("ngIf",t.extraLabel!=="")}}function p9(r,e){r&1&&(k(0,"div",14),hi(),k(1,"svg",15),de(2,"path",16)(3,"path",17),I()())}function x9(r,e){if(r&1){let t=ye();rn(0),k(1,"div",8),K("click",function(){let i=ae(t).$implicit,s=N(3);return ue(s.onClickTicket(i.moimId))}),hi(),k(2,"svg",9),de(3,"rect",10),I(),ji(),de(4,"img",11),me(5,p9,4,0,"div",12),k(6,"div",13),ze(7),I()(),sn()}if(r&2){let t=e.$implicit,n=N(3);A(3),ri("fill",t.backgroundColor),A(),S("ngSrc",n.getThumbSrc(t.moimId)),A(),S("ngIf",t.isCreator),A(2),Ht(t.meetingTitle)}}function m9(r,e){if(r&1&&(rn(0),k(1,"div",7),me(2,x9,8,4,"ng-container",6),I(),sn()),r&2){let t=e.$implicit,n=N(2);A(),Te("margin-bottom",n.modifiedTickets.length>1?16:0,"px")("width",n.ticketRowContainerWidth,"px"),A(),S("ngForOf",t)}}function C9(r,e){if(r&1&&(k(0,"div"),me(1,m9,3,5,"ng-container",6),I()),r&2){let t=N();A(),S("ngForOf",t.modifiedTickets)}}function g9(r,e){if(r&1){let t=ye();rn(0),k(1,"img",18),K("click",function(){let i=ae(t).$implicit,s=N(2);return ue(s.onClickImage(i.value))}),I(),sn()}if(r&2){let t=e.$implicit,n=N(2);A(),Te("border-radius",n.circleImage?"50%":"10px"),S("src",t.imgSrc,Zt)("height",n.imageHeight)}}function E9(r,e){if(r&1&&(k(0,"div",7),me(1,g9,2,4,"ng-container",6),I()),r&2){let t=N();A(),S("ngForOf",t.images)}}var si=(()=>{let e=class e{constructor(n,i){this._router=n,this._cd=i,this.label="",this.extraLabel="",this.extraLabelColor="",this.moreButton=!1,this.imageHeight=200,this.isTicketContainer=!0,this.images=[{imgSrc:"assets/heart.png",value:0,label:"heart",selected:!1}],this.circleImage=!1,this.tickets=[],this.modifiedTickets=[],this.columnType=!1,this.columnNum=-1,this.isTicketsLoaded=!1,this.filter="",this.ticketRowContainerWidth=350,this.onClickImageEvent=new Ve}ngOnInit(){this.isTicketContainer&&(this._setLayout(),this.columnType&&this.getColumnNum(),this.ticketRowContainerWidth=window.innerWidth*.95)}ngAfterViewInit(){this._cd.detectChanges()}ngAfterViewChecked(){}_setLayout(){if(this.columnNum!==-1){let n=[];for(let i=0;i{let e=class e{constructor(){this.onClickNavigatorButtonEvent=new Ve,this.navigatorButtons=[{selected:!0,value:Jn.MAIN,label:"\uBA54\uC778"},{selected:!1,value:Jn.SEARCH,label:"\uAC80\uC0C9"},{selected:!1,value:Jn.CREATE,label:"\uAC1C\uCD5C"},{selected:!1,value:Jn.MINE,label:"\uC99D\uD45C"},{selected:!1,value:Jn.PROFILE,label:"\uD504\uB85C\uD544"}]}consturctor(){}ngAfterViewInit(){}onClickNavigatorButton(n){this.onClickNavigatorButtonEvent.emit(n),this.navigatorButtons.forEach(i=>{i.selected=i.value===n})}getColor(n){return this.navigatorButtons.find(i=>i.value===n).selected?"#000000":"#BCBCBC"}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=Ee({type:e,selectors:[["app-bottom-navigator"]],outputs:{onClickNavigatorButtonEvent:"onClickNavigatorButtonEvent"},standalone:!0,features:[Fe],decls:20,vars:7,consts:[["id","navigator-button-container"],[1,"navigator-button",3,"click"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M12.5467 2.28456C12.224 2.0378 11.776 2.0378 11.4533 2.28456L2.95328 8.7845C2.7306 8.95478 2.59998 9.2191 2.59998 9.49943L2.59998 18.9292C2.59995 19.1836 2.59993 19.4256 2.61659 19.6296C2.63476 19.852 2.67715 20.1071 2.80707 20.3621C2.98923 20.7196 3.27989 21.0102 3.6374 21.1924C3.89237 21.3223 4.14748 21.3647 4.36989 21.3829C4.57384 21.3995 4.81586 21.3995 5.07016 21.3995H18.9297C19.184 21.3995 19.4261 21.3995 19.6301 21.3829C19.8525 21.3647 20.1076 21.3223 20.3626 21.1924C20.7201 21.0102 21.0107 20.7196 21.1929 20.3621C21.3228 20.1071 21.3652 19.852 21.3834 19.6296C21.4 19.4256 21.4 19.1836 21.4 18.9293L21.4 9.49943C21.4 9.2191 21.2694 8.95478 21.0467 8.7845L12.5467 2.28456ZM11.9392 4.17898C11.9751 4.15156 12.0249 4.15156 12.0607 4.17898L19.5607 9.91422C19.5855 9.93314 19.6 9.96251 19.6 9.99365V19.4995C19.6 19.5548 19.5552 19.5995 19.5 19.5995H12.9003V13.9995H11.1003V19.5995H4.49998C4.44475 19.5995 4.39998 19.5548 4.39998 19.4995V9.99365C4.39998 9.96251 4.4145 9.93314 4.43924 9.91422L11.9392 4.17898Z"],["fill-rule","evenodd","clip-rule","evenodd","d","M9.99972 2.1001C5.63668 2.1001 2.09973 5.63705 2.09973 10.0001C2.09973 14.3631 5.63668 17.9001 9.99972 17.9001C11.857 17.9001 13.5646 17.2592 14.9134 16.1864L19.8635 21.1365C20.2149 21.4879 20.7848 21.4879 21.1363 21.1365C21.4877 20.785 21.4877 20.2151 21.1363 19.8637L16.1862 14.9136C17.2588 13.5648 17.8997 11.8573 17.8997 10.0001C17.8997 5.63705 14.3628 2.1001 9.99972 2.1001ZM3.89973 10.0001C3.89973 6.63116 6.63079 3.9001 9.99972 3.9001C13.3687 3.9001 16.0997 6.63116 16.0997 10.0001C16.0997 13.369 13.3687 16.1001 9.99972 16.1001C6.63079 16.1001 3.89973 13.369 3.89973 10.0001Z"],["d","M12.8997 7.10029H11.0997V11.1003H7.09975V12.9003H11.0997V16.9003H12.8997V12.9003H16.8997V11.1003H12.8997V7.10029Z"],["fill-rule","evenodd","clip-rule","evenodd","d","M9.61084 2.3501C8.52377 2.35009 7.65308 2.35008 6.94931 2.40758C6.22665 2.46663 5.60108 2.59076 5.02524 2.88417C4.10325 3.35395 3.35364 4.10355 2.88386 5.02554C2.59045 5.60139 2.46632 6.22695 2.40728 6.94962C2.34978 7.65339 2.34978 8.52407 2.34979 9.61114L2.34979 14.389C2.34978 15.4761 2.34978 16.3468 2.40728 17.0506C2.46632 17.7732 2.59045 18.3988 2.88386 18.9746C3.35364 19.8966 4.10325 20.6462 5.02524 21.116C5.60108 21.4094 6.22665 21.5336 6.94931 21.5926C7.65307 21.6501 8.52372 21.6501 9.61075 21.6501H14.3887C15.4758 21.6501 16.3465 21.6501 17.0503 21.5926C17.7729 21.5336 18.3985 21.4094 18.9743 21.116C19.8963 20.6462 20.6459 19.8966 21.1157 18.9746C21.4091 18.3988 21.5333 17.7732 21.5923 17.0506C21.6498 16.3468 21.6498 15.4762 21.6498 14.3891V9.61115C21.6498 8.52411 21.6498 7.65337 21.5923 6.94962C21.5333 6.22695 21.4091 5.60139 21.1157 5.02554C20.6459 4.10355 19.8963 3.35395 18.9743 2.88417C18.3985 2.59076 17.7729 2.46663 17.0503 2.40758C16.3465 2.35008 15.4758 2.35009 14.3887 2.3501H9.61084ZM5.84242 4.48798C6.12222 4.34541 6.48454 4.25156 7.09589 4.20161C7.71775 4.1508 8.51484 4.1501 9.64979 4.1501H14.3498C15.4847 4.1501 16.2818 4.1508 16.9037 4.20161C17.515 4.25156 17.8774 4.34541 18.1572 4.48798C18.7405 4.78519 19.2147 5.25942 19.5119 5.84273C19.6545 6.12253 19.7483 6.48484 19.7983 7.09619C19.8491 7.71805 19.8498 8.51514 19.8498 9.6501V14.3501C19.8498 15.4851 19.8491 16.2821 19.7983 16.904C19.7483 17.5154 19.6545 17.8777 19.5119 18.1575C19.2147 18.7408 18.7405 19.215 18.1572 19.5122C17.8774 19.6548 17.515 19.7486 16.9037 19.7986C16.2818 19.8494 15.4847 19.8501 14.3498 19.8501H9.64979C8.51484 19.8501 7.71775 19.8494 7.09589 19.7986C6.48454 19.7486 6.12222 19.6548 5.84242 19.5122C5.25912 19.215 4.78488 18.7408 4.48767 18.1575C4.34511 17.8777 4.25125 17.5154 4.2013 16.904C4.15049 16.2821 4.14979 15.4851 4.14979 14.3501V9.6501C4.14979 8.51514 4.15049 7.71805 4.2013 7.09619C4.25125 6.48484 4.34511 6.12253 4.48767 5.84273C4.78488 5.25942 5.25912 4.78519 5.84242 4.48798Z"],["width","16","height","20","viewBox","0 0 16 20","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M15 11V11.9H15.9V11H15ZM15 15H15.9V14.1H15V15ZM1 15V14.1H0.1V15H1ZM1 11H0.1V11.9H1V11ZM3 0.1C1.39837 0.1 0.1 1.39837 0.1 3H1.9C1.9 2.39249 2.39249 1.9 3 1.9V0.1ZM13 0.1H3V1.9H13V0.1ZM15.9 3C15.9 1.39837 14.6016 0.1 13 0.1V1.9C13.6075 1.9 14.1 2.39249 14.1 3H15.9ZM15.9 11V3H14.1V11H15.9ZM13.9 13C13.9 12.3925 14.3925 11.9 15 11.9V10.1C13.3984 10.1 12.1 11.3984 12.1 13H13.9ZM15 14.1C14.3925 14.1 13.9 13.6075 13.9 13H12.1C12.1 14.6016 13.3984 15.9 15 15.9V14.1ZM15.9 17V15H14.1V17H15.9ZM13 19.9C14.6016 19.9 15.9 18.6016 15.9 17H14.1C14.1 17.6075 13.6075 18.1 13 18.1V19.9ZM3 19.9H13V18.1H3V19.9ZM0.1 17C0.1 18.6016 1.39837 19.9 3 19.9V18.1C2.39249 18.1 1.9 17.6075 1.9 17H0.1ZM0.1 15V17H1.9V15H0.1ZM2.1 13C2.1 13.6075 1.60751 14.1 1 14.1V15.9C2.60163 15.9 3.9 14.6016 3.9 13H2.1ZM1 11.9C1.60751 11.9 2.1 12.3925 2.1 13H3.9C3.9 11.3984 2.60163 10.1 1 10.1V11.9ZM0.1 3V11H1.9V3H0.1Z"],["width","20","height","20","viewBox","0 0 20 20","fill","none","xmlns","http://www.w3.org/2000/svg"],["cx","10","cy","5","r","4","stroke","black","stroke-width","2"],["id","path-2-inside-1_108_111","fill","white"],["fill-rule","evenodd","clip-rule","evenodd","d","M20 15V19C20 19.5523 19.5523 20 19 20H1C0.447715 20 0 19.5523 0 19V15C0 15 0 15 0 15C3.28568e-05 13.1591 4.47717 11.6667 10 11.6667C15.5228 11.6667 20 13.1591 20 15C20 15 20 15 20 15Z"],["d","M0 15L-2 15V15H0ZM20 15L22 15L22 15L20 15ZM18 15V19H22V15H18ZM18 19C18 18.4477 18.4477 18 19 18V22C20.6569 22 22 20.6569 22 19H18ZM19 18H1V22H19V18ZM1 18C1.55228 18 2 18.4477 2 19H-2C-2 20.6569 -0.656853 22 1 22V18ZM2 19V15H-2V19H2ZM2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15C2 15 2 15 2 15H-2C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15C-2 15 -2 15 -2 15H2ZM2 15C1.99999 15.4153 1.74572 15.4925 2.0238 15.2734C2.27934 15.072 2.77305 14.8031 3.5614 14.5404C5.1172 14.0218 7.39373 13.6667 10 13.6667V9.66669C7.08344 9.66669 4.35999 10.0578 2.2965 10.7456C1.27521 11.0861 0.30445 11.5355 -0.452072 12.1317C-1.18604 12.7101 -1.99998 13.6643 -2 15L2 15ZM10 13.6667C12.6063 13.6667 14.8828 14.0218 16.4386 14.5404C17.2269 14.8031 17.7207 15.072 17.9762 15.2734C18.2543 15.4925 18 15.4153 18 15L22 15C22 13.6643 21.186 12.7101 20.4521 12.1317C19.6956 11.5355 18.7248 11.0861 17.7035 10.7456C15.64 10.0578 12.9166 9.66669 10 9.66669V13.6667ZM18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15C18 15 18 15 18 15H22C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15C22 15 22 15 22 15H18Z","mask","url(#path-2-inside-1_108_111)"]],template:function(i,s){i&1&&(k(0,"div",0)(1,"div",1),K("click",function(){return s.onClickNavigatorButton(0)}),hi(),k(2,"svg",2),de(3,"path",3),I()(),ji(),k(4,"div",1),K("click",function(){return s.onClickNavigatorButton(1)}),hi(),k(5,"svg",2),de(6,"path",4),I()(),ji(),k(7,"div",1),K("click",function(){return s.onClickNavigatorButton(2)}),hi(),k(8,"svg",2),de(9,"path",5)(10,"path",6),I()(),ji(),k(11,"div",1),K("click",function(){return s.onClickNavigatorButton(3)}),hi(),k(12,"svg",7),de(13,"path",8),I()(),ji(),k(14,"div",1),K("click",function(){return s.onClickNavigatorButton(4)}),hi(),k(15,"svg",9),de(16,"circle",10),k(17,"mask",11),de(18,"path",12),I(),de(19,"path",13),I()()()),i&2&&(A(3),ri("fill",s.getColor(0)),A(3),ri("fill",s.getColor(1)),A(3),ri("fill",s.getColor(2)),A(),ri("fill",s.getColor(2)),A(3),ri("fill",s.getColor(3)),A(3),ri("stroke",s.getColor(4)),A(3),ri("fill",s.getColor(4)))},styles:["#navigator-button-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-around;height:50px;width:100%;background-color:#fff}.selected-navigator-button[_ngcontent-%COMP%]{fill:#000}.unselected-navigator-icon[_ngcontent-%COMP%]{fill:#bcbcbc}.navigator-button[_ngcontent-%COMP%]:hover{cursor:pointer}"]});let r=e;return r})();var F9=["ticketContainer"],_9=["rowContainers"];function v9(r,e){if(r&1){let t=ye();k(0,"div",4)(1,"app-simple-toggle",5),K("onClickToggleButtonEvent",function(i){ae(t);let s=N();return ue(s.onClickCategoryButton(i))}),I()()}if(r&2){let t=N();A(),S("buttonElements",t.buttonElementsService.categorySelectionButtons)("columnNum",-1)("buttonWidth",60)("buttonHeight",30)("componentWidth",430)("fontSize",14)}}function y9(r,e){if(r&1&&(rn(0),k(1,"div",8,1),de(3,"app-image-row-container",9),I(),sn()),r&2){let t=e.$implicit,n=N(2);A(),S("id",n.buttonElementsService.getValueByLabel(n.buttonElementsService.categorySelectionButtons,t.categoryName)),A(2),S("tickets",t.meetingList)("isTicketContainer",!0)("label",t.categoryName)}}function b9(r,e){if(r&1&&(k(0,"div",6,0),me(2,y9,4,4,"ng-container",7),I()),r&2){let t=N();A(2),S("ngForOf",t.ticketThumbnails)}}var c3=(()=>{let e=class e{constructor(n,i){this._apiExecutorService=n,this.buttonElementsService=i,this.ticketContainer=null,this.isCategoryOrderUpdated=!1,this.ticketThumbnails=[]}ngOnInit(){return $(this,null,function*(){let n=yield this._apiExecutorService.getRecommendedMoims();this.isCategoryOrderUpdated=yield this.buttonElementsService.updateCategoryOrder();let i=yield this._apiExecutorService.getMoims();this.ticketThumbnails=i.content,this.ticketThumbnails.unshift({categoryName:"\uCD94\uCC9C",meetingList:n})})}ngOnDestroy(){this.isCategoryOrderUpdated=!1}onClickCategoryButton(n){let i=this.rowContainers.toArray().find(s=>s.nativeElement.id===n.toString());this.ticketContainer?.nativeElement.scrollTo({top:i?.nativeElement.offsetTop-50,behavior:"smooth"})}isLoadedTickets(){return!!(this.ticketThumbnails.length>0&&this.isCategoryOrderUpdated)}};e.\u0275fac=function(i){return new(i||e)(se(Ze),se(ht))},e.\u0275cmp=Ee({type:e,selectors:[["app-moim-list"]],viewQuery:function(i,s){if(i&1&&(Ie(F9,5),Ie(_9,5)),i&2){let o;ke(o=Pe())&&(s.ticketContainer=o.first),ke(o=Pe())&&(s.rowContainers=o)}},standalone:!0,features:[Fe],decls:2,vars:2,consts:[["ticketContainer",""],["rowContainers",""],["id","category-container",4,"ngIf"],["id","ticket-container",4,"ngIf"],["id","category-container"],[3,"onClickToggleButtonEvent","buttonElements","columnNum","buttonWidth","buttonHeight","componentWidth","fontSize"],["id","ticket-container"],[4,"ngFor","ngForOf"],[1,"tickets-row-container",3,"id"],[3,"tickets","isTicketContainer","label"]],template:function(i,s){i&1&&me(0,v9,2,6,"div",2)(1,b9,3,1,"div",3),i&2&&(S("ngIf",s.isLoadedTickets()),A(),S("ngIf",s.isLoadedTickets()))},dependencies:[qe,cn,wn,si],styles:["#category-container[_ngcontent-%COMP%]{position:fixed;top:50px;display:flex;align-items:center;width:100%;height:50px;overflow-x:scroll;background-color:#fff;z-index:10}#category-container[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}#ticket-container[_ngcontent-%COMP%]{width:100%;height:100%;background-color:#fff;margin-top:40px;overflow-y:scroll}#ticket-container[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.tickets-row-container[_ngcontent-%COMP%]{margin-bottom:40px}"]});let r=e;return r})();function B9(r,e){if(r&1&&de(0,"app-image-row-container",4),r&2){let t=N();S("isTicketContainer",!0)("tickets",t.runningTickets)("columnType",!0)}}function A9(r,e){r&1&&de(0,"div",5)}var f3=(()=>{let e=class e{constructor(n){this._apiExecutorService=n,this.runningTickets=[],this.isSearching=!1}ngOnInit(){return $(this,null,function*(){})}isLoaded(){return this.runningTickets.length>0}onInput(n){return $(this,null,function*(){this.runningTickets=[],this.isSearching=!0,yield this.onFindRelativeMoim(n),this.isSearching=!1})}onFindRelativeMoim(n){return $(this,null,function*(){this.runningTickets=(yield this._apiExecutorService.searchMoims(n)).content})}};e.\u0275fac=function(i){return new(i||e)(se(Ze))},e.\u0275cmp=Ee({type:e,selectors:[["app-moim-search"]],standalone:!0,features:[Fe],decls:4,vars:4,consts:[[1,"container"],[3,"onChangeEvent","type","placeholder"],[3,"isTicketContainer","tickets","columnType",4,"ngIf"],["id","spinner",4,"ngIf"],[3,"isTicketContainer","tickets","columnType"],["id","spinner"]],template:function(i,s){i&1&&(k(0,"div",0)(1,"app-simple-input",1),K("onChangeEvent",function(a){return s.onInput(a)}),I(),me(2,B9,1,3,"app-image-row-container",2)(3,A9,1,0,"div",3),I()),i&2&&(A(),S("type","search-input")("placeholder","\uBAA8\uC784 \uAC80\uC0C9"),A(),S("ngIf",!s.isSearching),A(),S("ngIf",s.isSearching))},dependencies:[qe,Hn,si],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;height:100%;width:100%}#spinner[_ngcontent-%COMP%]{width:100px;height:100px;border:16px solid #f3f3f3;border-top:16px solid #3498db;border-radius:50%;animation:_ngcontent-%COMP%_spin 2s linear infinite}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]});let r=e;return r})();function w9(r,e){if(r&1){let t=ye();rn(0),k(1,"div",2),K("click",function(){let i=ae(t).$implicit,s=N();return ue(s.onClickTab(i.value))}),ze(2),I(),sn()}if(r&2){let t=e.$implicit,n=N();A(),Te("width",n.getButtonWidth(),"px"),S("ngClass",n.getClass(t.value)),A(),Ht(t.label)}}var mf=(()=>{let e=class e{constructor(){this.tabs=[{selected:!0,value:0,label:"Tab 1"},{selected:!1,value:1,label:"Tab 2"},{selected:!1,value:2,label:"Tab 3"}],this.onClickTabEvent=new Ve}onClickTab(n){this.onClickTabEvent.emit(n),this.tabs=this.tabs.map(i=>Ot(Me({},i),{selected:i.value===n}))}getClass(n){return this.tabs.find(i=>i.value===n).selected?"selected-tab":"unselected-tab"}getButtonWidth(){return window.innerWidth/this.tabs.length}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=Ee({type:e,selectors:[["app-tab-group"]],inputs:{tabs:"tabs"},outputs:{onClickTabEvent:"onClickTabEvent"},standalone:!0,features:[Fe],decls:2,vars:1,consts:[[1,"container"],[4,"ngFor","ngForOf"],[3,"click","ngClass"]],template:function(i,s){i&1&&(k(0,"div",0),me(1,w9,3,4,"ng-container",1),I()),i&2&&(A(),S("ngForOf",s.tabs))},dependencies:[cn,Oo],styles:['.container[_ngcontent-%COMP%]{width:100%;height:30px;display:flex;flex-direction:row}.unselected-tab[_ngcontent-%COMP%]{border-bottom:2px solid #BCBCBC;display:flex;justify-content:center;align-items:center;font-family:Pretendard Variable,Pretendard,-apple-system,BlinkMacSystemFont,system-ui,Roboto,Helvetica Neue,Segoe UI,Apple SD Gothic Neo,Noto Sans KR,Malgun Gothic,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,sans-serif;font-weight:500;font-size:14px;color:#bcbcbc}.selected-tab[_ngcontent-%COMP%]{border-bottom:2px solid black;display:flex;justify-content:center;align-items:center;font-family:Pretendard Variable,Pretendard,-apple-system,BlinkMacSystemFont,system-ui,Roboto,Helvetica Neue,Segoe UI,Apple SD Gothic Neo,Noto Sans KR,Malgun Gothic,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,sans-serif;font-weight:500;font-size:14px}']});let r=e;return r})();function S9(r,e){if(r&1&&(k(0,"div"),de(1,"app-image-row-container",5),I()),r&2){let t=N();A(),S("isTicketContainer",!0)("tickets",t.runningTickets)("columnType",!0)}}function M9(r,e){if(r&1&&(k(0,"div"),de(1,"app-image-row-container",5),I()),r&2){let t=N();A(),S("isTicketContainer",!0)("tickets",t.endedTickets)("columnType",!0)}}var ls=function(r){return r[r.RUNNING=0]="RUNNING",r[r.ENDED=1]="ENDED",r}(ls||{}),l3=(()=>{let e=class e{constructor(n,i){this.buttonElementsService=n,this._apiExecutorService=i,this.tabElements=[{selected:!0,value:ls.RUNNING,label:"\uC9C4\uD589\uC911\uC778 \uBAA8\uC784"},{selected:!1,value:ls.ENDED,label:"\uB05D\uB09C \uBAA8\uC784"}],this.runningTickets=[],this.endedTickets=[],this.nowTab=ls.RUNNING,this.ticketListTabEnum=ls}ngOnInit(){return $(this,null,function*(){let n=yield this._apiExecutorService.getRunningMoims();this.runningTickets=n.content;let i=yield this._apiExecutorService.getEndedMoims();this.endedTickets=i.content})}isLoaded(){let n=!1;return this.nowTab===ls.RUNNING?this.runningTickets!==void 0?n=this.runningTickets.length>0:n=!1:this.nowTab===ls.ENDED&&this.endedTickets!==void 0?n=this.endedTickets.length>0:n=!1,n}onCickTabButton(n){return $(this,null,function*(){this.nowTab=n,this.nowTab===ls.RUNNING?(this.runningTickets=(yield this._apiExecutorService.getRunningMoims()).content,console.log(yield this._apiExecutorService.getRunningMoims())):this.endedTickets=(yield this._apiExecutorService.getEndedMoims()).content})}getMoimInfos(n){return $(this,null,function*(){})}};e.\u0275fac=function(i){return new(i||e)(se(ht),se(Ze))},e.\u0275cmp=Ee({type:e,selectors:[["app-my-ticket-list"]],standalone:!0,features:[Fe],decls:6,vars:3,consts:[[1,"container"],["id","tab-container"],[3,"onClickTabEvent","tabs"],[1,"tab-content-container"],[4,"ngIf"],[3,"isTicketContainer","tickets","columnType"]],template:function(i,s){i&1&&(k(0,"div",0)(1,"div",1)(2,"app-tab-group",2),K("onClickTabEvent",function(a){return s.onCickTabButton(a)}),I()(),k(3,"div",3),me(4,S9,2,3,"div",4)(5,M9,2,3,"div",4),I()()),i&2&&(A(2),S("tabs",s.tabElements),A(2),S("ngIf",s.nowTab===s.ticketListTabEnum.RUNNING&&s.isLoaded()),A(),S("ngIf",s.nowTab===s.ticketListTabEnum.ENDED&&s.isLoaded()))},dependencies:[qe,mf,si],styles:[".container[_ngcontent-%COMP%]{height:100%;width:100%;position:relative;overflow-y:scroll}.container[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}#tab-container[_ngcontent-%COMP%]{position:fixed;top:50px;display:flex;align-items:center;width:100%;background-color:#fff;z-index:10}.tab-content-container[_ngcontent-%COMP%]{height:100%;width:100%;margin-top:40px;display:flex;justify-content:center}"]});let r=e;return r})();var h3=vu(Qc());var T9=["contentContainer"];function k9(r,e){if(r&1&&(k(0,"span",7),ze(1),I()),r&2){let t=N();A(),Ht(t.extraLabel)}}function P9(r,e){if(r&1){let t=ye();k(0,"div",8),K("click",function(){ae(t);let i=N();return ue(i.onClickExtraButton())}),ze(1),I()}if(r&2){let t=N();A(),Nt(" ",t.extraButtonLabel,"")}}function I9(r,e){if(r&1&&(k(0,"div"),de(1,"app-image-row-container",9),I()),r&2){let t=N();Te("margin-top",16,"px"),A(),S("images",t.images)("imageHeight",t.imageHeight)("isTicketContainer",!1)}}var na=(()=>{let e=class e{constructor(){this.contentContainer=void 0,this.title="",this.extraLabel="",this.extraButtonLabel="",this.content="",this.images=[],this.imageHeight=200,this.onClickExtraButtonEvent=new Ve}ngOnInit(){this.contentContainer.nativeElement.innerHTML=this.convertMarkdown(this.content)}convertMarkdown(n){let i=new h3.default;i.replace_mode="unified",i.allow_native=!0;let s=Mt.parse(n);return i.replace_colons(s).replace(/]*>/g,"").replace(/<\/p>/g,"")}onClickExtraButton(){this.onClickExtraButtonEvent.emit()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=Ee({type:e,selectors:[["app-simple-content"]],viewQuery:function(i,s){if(i&1&&Ie(T9,7),i&2){let o;ke(o=Pe())&&(s.contentContainer=o.first)}},inputs:{title:"title",extraLabel:"extraLabel",extraButtonLabel:"extraButtonLabel",content:"content",images:"images",imageHeight:"imageHeight"},outputs:{onClickExtraButtonEvent:"onClickExtraButtonEvent"},standalone:!0,features:[Fe],decls:9,vars:4,consts:[["contentContainer",""],[1,"container"],["id","title-container"],["class","extra-label",4,"ngIf"],["class","extra-button-label",3,"click",4,"ngIf"],[3,"margin-top",4,"ngIf"],["id","content-container"],[1,"extra-label"],[1,"extra-button-label",3,"click"],[3,"images","imageHeight","isTicketContainer"]],template:function(i,s){i&1&&(k(0,"div",1)(1,"div",2)(2,"div"),ze(3),me(4,k9,2,1,"span",3),I(),me(5,P9,2,1,"div",4),I(),me(6,I9,2,5,"div",5),de(7,"div",6,0),I()),i&2&&(A(3),Nt(" ",s.title," "),A(),S("ngIf",s.extraLabel!==""),A(),S("ngIf",s.extraButtonLabel!==""),A(),S("ngIf",s.images.length>0))},dependencies:[qe,si],styles:['.container[_ngcontent-%COMP%]{width:350px;display:flex;flex-direction:column}#title-container[_ngcontent-%COMP%]{width:100%;font-size:18px;font-weight:600;font-family:Pretendard Variable,Pretendard,-apple-system,BlinkMacSystemFont,system-ui,Roboto,Helvetica Neue,Segoe UI,Apple SD Gothic Neo,Noto Sans KR,Malgun Gothic,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,sans-serif;display:flex;justify-content:space-between}#content-container[_ngcontent-%COMP%]{width:100%;height:auto;word-wrap:break-word;margin-top:16px;font-size:16px;font-weight:400;font-family:Pretendard Variable,Pretendard,-apple-system,BlinkMacSystemFont,system-ui,Roboto,Helvetica Neue,Segoe UI,Apple SD Gothic Neo,Noto Sans KR,Malgun Gothic,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,sans-serif;margin-bottom:16px}.extra-label[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#8e8e93}.extra-button-label[_ngcontent-%COMP%]{font-size:12px;font-weight:400;display:flex;align-items:center;color:#8e8e93;cursor:pointer;background-color:transparent}']});let r=e;return r})();var Mi=(()=>{let e=class e{constructor(n){this._location=n,this.title="",this.shareButton=!1,this.backButton=!0,this.defaultBack=!0,this.backButtonClickEvent=new Ve,this.shareButtonClickEvent=new Ve,this.comeFrom=""}onClickBackButton(){this.defaultBack===!0?this._location.back():this.backButtonClickEvent.emit()}onClickShareButton(){this.shareButtonClickEvent.emit()}};e.\u0275fac=function(i){return new(i||e)(se(Ai))},e.\u0275cmp=Ee({type:e,selectors:[["app-top-navigator"]],inputs:{title:"title",shareButton:"shareButton",backButton:"backButton",defaultBack:"defaultBack"},outputs:{backButtonClickEvent:"backButtonClickEvent",shareButtonClickEvent:"shareButtonClickEvent"},standalone:!0,features:[Fe],decls:5,vars:5,consts:[[1,"container"],["id","back-container","src","assets/icons/go-back.png","height","40",3,"click"],["id","title-container"],["id","share-container","src","assets/icons/share.svg","height","24",3,"click"]],template:function(i,s){i&1&&(k(0,"div",0)(1,"img",1),K("click",function(){return s.onClickBackButton()}),I(),k(2,"div",2),ze(3),I(),k(4,"img",3),K("click",function(){return s.onClickShareButton()}),I()()),i&2&&(A(),Te("visibility",s.backButton?"visible":"hidden"),A(2),Ht(s.title),A(),Te("visibility",s.shareButton?"visible":"hidden"))},styles:['.container[_ngcontent-%COMP%]{width:100%;height:60px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;background-color:#fff}#back-container[_ngcontent-%COMP%]{margin-left:10px;cursor:pointer}#title-container[_ngcontent-%COMP%]{font-size:18px;font-weight:600;font-family:Pretendard Variable,Pretendard,-apple-system,BlinkMacSystemFont,system-ui,Roboto,Helvetica Neue,Segoe UI,Apple SD Gothic Neo,Noto Sans KR,Malgun Gothic,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,sans-serif}#share-container[_ngcontent-%COMP%]{margin-right:10px;cursor:pointer}']});let r=e;return r})();var d3=(()=>{let e=class e{constructor(n){this.buttonElementsService=n,this.onCategorySelectedEvent=new Ve,this.interestSelectionButtons=[{selected:!1,value:0,label:"\uC6B4\uB3D9",imgSrc:"assets/interest-icons/excersize.png"},{selected:!1,value:1,label:"\uAC8C\uC784",imgSrc:"assets/interest-icons/game.png"},{selected:!1,value:2,label:"\uC74C\uC545",imgSrc:"assets/interest-icons/music.png"},{selected:!1,value:3,label:"\uC694\uB9AC",imgSrc:"assets/interest-icons/food.png"},{selected:!1,value:4,label:"\uB3C5\uC11C",imgSrc:"assets/interest-icons/book.png"}]}onClilckButton(n){this.onCategorySelectedEvent.emit(n)}};e.\u0275fac=function(i){return new(i||e)(se(ht))},e.\u0275cmp=Ee({type:e,selectors:[["app-meeting-category"]],outputs:{onCategorySelectedEvent:"onCategorySelectedEvent"},standalone:!0,features:[Fe],decls:2,vars:4,consts:[[1,"content-container"],[3,"onClickToggleButtonEvent","buttonElements","columnNum","align","multiSelection"]],template:function(i,s){i&1&&(k(0,"div",0)(1,"app-simple-toggle",1),K("onClickToggleButtonEvent",function(a){return s.onClilckButton(a)}),I()()),i&2&&(A(),S("buttonElements",s.buttonElementsService.interestSelectionButtons)("columnNum",1)("align","left")("multiSelection",!0))},dependencies:[wn],styles:['#title[_ngcontent-%COMP%]{font-family:Pretendard Variable,Pretendard,-apple-system,BlinkMacSystemFont,system-ui,Roboto,Helvetica Neue,Segoe UI,Apple SD Gothic Neo,Noto Sans KR,Malgun Gothic,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,sans-serif;font-size:18px;font-weight:600;margin-top:24px;margin-bottom:24px}.content-container[_ngcontent-%COMP%]{width:100%;height:390px;display:flex;flex-direction:column;align-items:center}']});let r=e;return r})();var D3=(()=>{let e=class e{constructor(n){this.buttonElementsService=n,this.onCategorySelectedEvent=new Ve}onClilckButton(n){this.onCategorySelectedEvent.emit(n)}};e.\u0275fac=function(i){return new(i||e)(se(ht))},e.\u0275cmp=Ee({type:e,selectors:[["app-meeting-location"]],outputs:{onCategorySelectedEvent:"onCategorySelectedEvent"},standalone:!0,features:[Fe],decls:2,vars:3,consts:[[1,"content-container"],[3,"onClickToggleButtonEvent","buttonElements","columnNum","align"]],template:function(i,s){i&1&&(k(0,"div",0)(1,"app-simple-toggle",1),K("onClickToggleButtonEvent",function(a){return s.onClilckButton(a)}),I()()),i&2&&(A(),S("buttonElements",s.buttonElementsService.locationSelectionButtons)("columnNum",1)("align","left"))},dependencies:[wn],styles:['#title[_ngcontent-%COMP%]{font-family:Pretendard Variable,Pretendard,-apple-system,BlinkMacSystemFont,system-ui,Roboto,Helvetica Neue,Segoe UI,Apple SD Gothic Neo,Noto Sans KR,Malgun Gothic,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,sans-serif;font-size:18px;font-weight:600;margin-top:24px;margin-bottom:24px}.content-container[_ngcontent-%COMP%]{width:100%;height:390px;display:flex;flex-direction:column;align-items:center}']});let r=e;return r})();function R9(r,e){if(r&1){let t=ye();k(0,"div")(1,"app-meeting-category",5),K("onCategorySelectedEvent",function(i){ae(t);let s=N();return ue(s.onClickButton(i))}),I()()}}function O9(r,e){if(r&1){let t=ye();k(0,"div")(1,"app-meeting-location",5),K("onCategorySelectedEvent",function(i){ae(t);let s=N();return ue(s.onClickButton(i))}),I()()}}function L9(r,e){r&1&&(k(0,"div")(1,"div",6),de(2,"img",7),ze(3," \uC644\uB8CC\uD558\uC600\uC2B5\uB2C8\uB2E4! "),I()())}function N9(r,e){r&1&&(k(0,"div")(1,"div",6),ze(2," \uD68C\uC6D0 \uD0C8\uD1F4\uB97C \uC9C4\uD589\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?"),de(3,"br"),ze(4," \uC774 \uC791\uC5C5\uC740 \uB418\uB3CC\uB9B4 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. "),I()())}function U9(r,e){r&1&&(k(0,"div")(1,"div",6),ze(2," \uBAA8\uC784\uC744 \uC0AD\uC81C\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C? "),de(3,"br"),ze(4," \uC774 \uC791\uC5C5\uC740 \uB418\uB3CC\uB9B4 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. "),I()())}function V9(r,e){if(r&1){let t=ye();k(0,"div",8)(1,"app-square-button",9),K("onClickEvent",function(i){ae(t);let s=N();return ue(s.onClickCompleteButton(i))}),I()()}}function z9(r,e){if(r&1){let t=ye();k(0,"div",8)(1,"app-square-button",10),K("onClickEvent",function(i){ae(t);let s=N();return ue(s.onClickCompleteButton(i))}),I()()}if(r&2){let t=N();A(),S("buttonElements",t.buttonElementsService.removeAccountButtons)}}function H9(r,e){if(r&1){let t=ye();k(0,"div",8)(1,"app-square-button",10),K("onClickEvent",function(i){ae(t);let s=N();return ue(s.onClickCompleteButton(i))}),I()()}if(r&2){let t=N();A(),S("buttonElements",t.buttonElementsService.removeMOimButtons)}}var mi=function(r){return r[r.MEETING_CATEGORY=0]="MEETING_CATEGORY",r[r.MEETING_JOIN_CANCEL=1]="MEETING_JOIN_CANCEL",r[r.MEETING_JOIN=2]="MEETING_JOIN",r[r.MEETING_EDIT_COMPLETE=3]="MEETING_EDIT_COMPLETE",r[r.MEETING_KICKOUT=4]="MEETING_KICKOUT",r[r.TICKET_MAKE_COMPLETE=5]="TICKET_MAKE_COMPLETE",r[r.TICKET_EDIT_COMPLETE=6]="TICKET_EDIT_COMPLETE",r[r.DIARY_MAKE_COMPLETE=7]="DIARY_MAKE_COMPLETE",r[r.MEETING_LOCATION=8]="MEETING_LOCATION",r[r.FEATURE_SUCCESS=9]="FEATURE_SUCCESS",r[r.DELETE_ACCOUNT=10]="DELETE_ACCOUNT",r[r.REMOVE_MOIM=11]="REMOVE_MOIM",r}(mi||{}),Dr=(()=>{let e=class e{constructor(n){this.buttonElementsService=n,this.title="",this.buttonElements=[],this.content=mi.MEETING_CATEGORY,this.completeButton=!0,this.onClickEvent=new Ve,this.onClickCompleteButtonEvent=new Ve,this.bottomDialogType=mi}onClickButton(n){this.onClickEvent.emit({contentType:this.content,value:n})}onClickCompleteButton(n){this.onClickCompleteButtonEvent.emit(n)}};e.\u0275fac=function(i){return new(i||e)(se(ht))},e.\u0275cmp=Ee({type:e,selectors:[["app-bottom-dialog"]],inputs:{title:"title",buttonElements:"buttonElements",content:"content",completeButton:"completeButton"},outputs:{onClickEvent:"onClickEvent",onClickCompleteButtonEvent:"onClickCompleteButtonEvent"},standalone:!0,features:[Fe],decls:11,vars:10,consts:[[1,"container"],["id","bottom-container"],[1,"content-container"],[4,"ngIf"],["class","complete-button",4,"ngIf"],[3,"onCategorySelectedEvent"],[1,"feature-success-container"],["src","assets/icons/feature-success.png","width","90","height","90"],[1,"complete-button"],[3,"onClickEvent"],[3,"onClickEvent","buttonElements"]],template:function(i,s){i&1&&(k(0,"div",0)(1,"div",1)(2,"div",2),me(3,R9,2,0,"div",3)(4,O9,2,0,"div",3)(5,L9,4,0,"div",3)(6,N9,5,0,"div",3)(7,U9,5,0,"div",3),I(),me(8,V9,2,0,"div",4)(9,z9,2,1,"div",4)(10,H9,2,1,"div",4),I()()),i&2&&(A(2),Te("height",s.completeButton?280:380,"px"),A(),S("ngIf",s.content===s.bottomDialogType.MEETING_CATEGORY),A(),S("ngIf",s.content===s.bottomDialogType.MEETING_LOCATION),A(),S("ngIf",s.content===s.bottomDialogType.FEATURE_SUCCESS),A(),S("ngIf",s.content===s.bottomDialogType.DELETE_ACCOUNT),A(),S("ngIf",s.content===s.bottomDialogType.REMOVE_MOIM),A(),S("ngIf",s.completeButton&&s.content!==s.bottomDialogType.DELETE_ACCOUNT&&s.content!==s.bottomDialogType.REMOVE_MOIM),A(),S("ngIf",s.completeButton&&s.content===s.bottomDialogType.DELETE_ACCOUNT),A(),S("ngIf",s.completeButton&&s.content===s.bottomDialogType.REMOVE_MOIM))},dependencies:[qe,d3,D3,En],styles:['.container[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;width:100%;height:100%;background-color:#000c}#bottom-container[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;width:100%;height:420px;border-top-left-radius:40px;border-top-right-radius:40px;background-color:#fff;display:flex;flex-direction:column;align-items:center}#title[_ngcontent-%COMP%]{font-family:Pretendard Variable,Pretendard,-apple-system,BlinkMacSystemFont,system-ui,Roboto,Helvetica Neue,Segoe UI,Apple SD Gothic Neo,Noto Sans KR,Malgun Gothic,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,sans-serif;font-size:18px;font-weight:600;margin-top:24px;margin-bottom:24px}.content-container[_ngcontent-%COMP%]{width:100%;height:380px;display:flex;flex-direction:column;align-items:center;overflow-y:scroll;margin-top:20px}.content-container[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.complete-button[_ngcontent-%COMP%]{position:absolute;bottom:20px}.feature-success-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;font-family:Pretendard Variable,Pretendard,-apple-system,BlinkMacSystemFont,system-ui,Roboto,Helvetica Neue,Segoe UI,Apple SD Gothic Neo,Noto Sans KR,Malgun Gothic,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,sans-serif;font-size:20px;font-weight:600;margin-top:100px;text-align:center}']});let r=e;return r})();var G9=["profileImg"];function j9(r,e){if(r&1){let t=ye();k(0,"div")(1,"app-bottom-dialog",8),K("onClickEvent",function(i){ae(t);let s=N();return ue(s.onInterestSelectedEvent(i))})("onClickCompleteButtonEvent",function(){ae(t);let i=N();return ue(i.popUpInterestsDialog())}),I()()}if(r&2){let t=N();A(),S("content",t.bottomDialogType.MEETING_CATEGORY)}}function W9(r,e){if(r&1){let t=ye();k(0,"div")(1,"app-bottom-dialog",8),K("onClickEvent",function(i){ae(t);let s=N();return ue(s.onLocationSelectedEvent(i))})("onClickCompleteButtonEvent",function(){ae(t);let i=N();return ue(i.popUpLocationDialog())}),I()()}if(r&2){let t=N();A(),S("content",t.bottomDialogType.MEETING_LOCATION)}}var Cf=(()=>{let e=class e{constructor(n,i,s){this._router=n,this._apiExecutorService=i,this.buttonElementsService=s,this.profileImg=null,this.onUpdatedEvent=new Ve,this.bottomDialogType=mi,this.isInterestPopUp=!1,this.isLocationPopUp=!1,this._userInfo={nickname:"",profilePictureUrl:"",gender:"M",address:"",introduction:"",interests:[]},this.genderMap={M:0,F:1,G:2}}get userInfo(){return this._userInfo}ngOnInit(){return $(this,null,function*(){this._userInfo=yield this._apiExecutorService.getProfile();let n=this.buttonElementsService.genderSelectionButtons.find(s=>s.value===this.genderMap[this._userInfo.gender]);n.selected=!0;let i=this.buttonElementsService.locationSelectionButtons.find(s=>s.label===this._userInfo.address);i.selected=!0,this.buttonElementsService.interestSelectionButtons.forEach(s=>{this._userInfo.interests.forEach(o=>{s.label===o?s.selected=!0:s.selected=!1})})})}ngOnDestroy(){this.buttonElementsService.interestSelectionButtons.forEach(n=>{n.selected=!1}),this.buttonElementsService.locationSelectionButtons.forEach(n=>{n.selected=!1})}onChangeUserInfo(n,i){switch(n){case"nickname":this._userInfo.nickname=i;break;case"introduction":this._userInfo.introduction=i;break;case"gender":let s=this.buttonElementsService.genderSelectionButtons.find(o=>o.selected===!0).value;this._userInfo.gender=this.getStringFromGenderEnum(s);break;case"address":this._userInfo.address=this.buttonElementsService.locationSelectionButtons.find(o=>o.selected===!0).label;break;case"interests":this._userInfo.interests=[...this.buttonElementsService.interestSelectionButtons].filter(o=>o.selected==!0).map(o=>o.label)}}getStringFromGenderEnum(n){return n===0?"M":n===1?"F":"G"}getInterestString(){return this._userInfo.interests.join(", ")}onInterestSelectedEvent(n){this._userInfo.interests=this.buttonElementsService.interestSelectionButtons.filter(i=>i.selected).map(i=>i.label)}onLocationSelectedEvent(n){this._userInfo.address=this.buttonElementsService.locationSelectionButtons.find(i=>i.selected).label}popUpInterestsDialog(){this.isInterestPopUp=!this.isInterestPopUp}popUpLocationDialog(){this.isLocationPopUp=!this.isLocationPopUp}onClickUpdate(){return $(this,null,function*(){this._userInfo.profilePictureUrl=this.profileImg.imgSrc,yield this._apiExecutorService.updateMyProfile(this._userInfo),this.onUpdatedEvent.emit()})}};e.\u0275fac=function(i){return new(i||e)(se(At),se(Ze),se(ht))},e.\u0275cmp=Ee({type:e,selectors:[["app-profile-update"]],viewQuery:function(i,s){if(i&1&&Ie(G9,5),i&2){let o;ke(o=Pe())&&(s.profileImg=o.first)}},outputs:{onUpdatedEvent:"onUpdatedEvent"},standalone:!0,features:[Fe],decls:10,vars:22,consts:[["profileImg",""],[1,"profile-update-container"],["id","profile-img",3,"imgSrc"],[3,"onChangeEvent","label","innerText","extraLabel","extraLabelColor","placeholder"],[3,"onClickToggleButtonEvent","label","extraLabel","extraLabelColor","buttonElements","buttonWidth"],[3,"onChangeEvent","innerText","label","placeholder"],[3,"onClickEvent","label","innerText","type"],[4,"ngIf"],[3,"onClickEvent","onClickCompleteButtonEvent","content"]],template:function(i,s){if(i&1){let o=ye();k(0,"div",1),de(1,"app-profile-img",2,0),k(3,"app-simple-input",3),K("onChangeEvent",function(u){return ae(o),ue(s.onChangeUserInfo("nickname",u))}),I(),k(4,"app-simple-toggle",4),K("onClickToggleButtonEvent",function(u){return ae(o),ue(s.onChangeUserInfo("gender",u))}),I(),k(5,"app-simple-input",5),K("onChangeEvent",function(u){return ae(o),ue(s.onChangeUserInfo("introduction",u))}),I(),k(6,"app-simple-input",6),K("onClickEvent",function(){return ae(o),ue(s.popUpInterestsDialog())}),I(),k(7,"app-simple-input",6),K("onClickEvent",function(){return ae(o),ue(s.popUpLocationDialog())}),I()(),me(8,j9,2,1,"div",7)(9,W9,2,1,"div",7)}i&2&&(A(),S("imgSrc",s.userInfo.profilePictureUrl),A(2),S("label","\uB2C9\uB124\uC784")("innerText",s.userInfo.nickname)("extraLabel","(\uD544\uC218)")("extraLabelColor","#0090f2")("placeholder","\uB2C9\uB124\uC784\uC744 \uC785\uB825\uD574\uC8FC\uC138\uC694."),A(),S("label","\uC131\uBCC4")("extraLabel","(\uD544\uC218)")("extraLabelColor","#0090f2")("buttonElements",s.buttonElementsService.genderSelectionButtons)("buttonWidth",110),A(),S("innerText",s.userInfo.introduction)("label","\uC18C\uAC1C")("placeholder","\uAC04\uB2E8\uD55C \uC18C\uAC1C\uB97C \uD574\uC8FC\uC138\uC694."),A(),S("label","\uAD00\uC2EC\uC0AC")("innerText",s.getInterestString())("type","category"),A(),S("label","\uC9C0\uC5ED")("innerText",s.userInfo.address)("type","category"),A(),S("ngIf",s.isInterestPopUp),A(),S("ngIf",s.isLocationPopUp))},dependencies:[qe,Hn,ta,wn,Dr],styles:[".profile-update-container[_ngcontent-%COMP%]{height:100%;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow-y:scroll}.profile-update-container[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.container[_ngcontent-%COMP%]{margin-top:30px;width:400px;height:300px;overflow-y:scroll}"]});let r=e;return r})();var X9=["profileUpdate"];function q9(r,e){if(r&1&&(k(0,"div",1),de(1,"app-top-navigator",8),k(2,"div",9),de(3,"app-profile-img",10),I(),de(4,"app-simple-content",11)(5,"app-simple-content",11)(6,"app-simple-content",11)(7,"app-simple-content",11)(8,"app-simple-content",11)(9,"app-simple-content",11),I()),r&2){let t=N();A(),S("title","\uD504\uB85C\uD544")("backButton",!1),A(2),S("imgSrc",t.myProfile.profilePictureUrl)("isEditable",!1),A(),S("title","\uB2C9\uB124\uC784")("content",t.myProfile.nickname),A(),S("title","\uC774\uBA54\uC77C")("content",t.myProfile.email),A(),S("title","\uC131\uBCC4")("content",t.getGender(t.myProfile.gender)),A(),S("title","\uAD00\uC2EC\uBD84\uC57C")("content",t.myProfile.interests.join(",")),A(),S("title","\uC9C0\uC5ED")("content",t.myProfile.address),A(),S("title","\uC18C\uAC1C")("content",t.myProfile.introduction)}}function Y9(r,e){r&1&&(k(0,"div"),de(1,"app-profile-update",null,0),I())}function $9(r,e){if(r&1){let t=ye();k(0,"div")(1,"app-bottom-dialog",12),K("onClickCompleteButtonEvent",function(i){ae(t);let s=N();return ue(s.removeAccount(i))}),I()()}if(r&2){let t=N();A(),S("content",t.bottomDialogType.DELETE_ACCOUNT)}}var p3=(()=>{let e=class e{constructor(n,i,s){this._router=n,this._apiExecutorService=i,this.buttonElementsService=s,this.profileUpdate=null,this.myProfile=void 0,this.mode="info",this.bottomDialogType=mi,this.isPopUpBottomDialog=!1}ngOnInit(){this.myProfile=this._apiExecutorService.myProfile}getGender(n){return n==="M"?"\uB0A8\uC790":n==="F"?"\uC5EC\uC790":"\uAE30\uD0C0"}onClickProfile(n){return $(this,null,function*(){n===0?this.mode==="info"?(this.buttonElementsService.editProfileButton[0].label="\uC218\uC815\uC644\uB8CC",this.buttonElementsService.editProfileButton[0].selected=!0,this.mode="edit"):(yield this.profileUpdate.onClickUpdate(),yield this._apiExecutorService.getMyProfile(),this.myProfile=this._apiExecutorService.myProfile,this.buttonElementsService.editProfileButton[0].label="\uD504\uB85C\uD544 \uC218\uC815",this.buttonElementsService.editProfileButton[0].selected=!1,this.mode="info"):(yield this._apiExecutorService.logout(),this._router.navigate(["/"]))})}onClickRemoveAccount(){this.isPopUpBottomDialog=!0}onClickCSButton(){location.href="https://pf.kakao.com/_xjxatUG"}removeAccount(n){return $(this,null,function*(){n===0?this.isPopUpBottomDialog=!1:(yield this._apiExecutorService.removeAccount(),this._router.navigate(["/"]))})}};e.\u0275fac=function(i){return new(i||e)(se(At),se(Ze),se(ht))},e.\u0275cmp=Ee({type:e,selectors:[["app-profile"]],viewQuery:function(i,s){if(i&1&&Ie(X9,5),i&2){let o;ke(o=Pe())&&(s.profileUpdate=o.first)}},inputs:{myProfile:"myProfile"},standalone:!0,features:[Fe],decls:10,vars:4,consts:[["profileUpdate",""],[1,"container"],["class","container",4,"ngIf"],[4,"ngIf"],["id","profile-update-button"],[3,"onClickEvent","buttonElements"],["id","cs-button",3,"click"],["id","remove-account-button",3,"click"],[3,"title","backButton"],["id","profile-img-container"],[3,"imgSrc","isEditable"],[3,"title","content"],[3,"onClickCompleteButtonEvent","content"]],template:function(i,s){i&1&&(k(0,"div",1),me(1,q9,10,16,"div",2)(2,Y9,3,0,"div",3),k(3,"div",4)(4,"app-square-button",5),K("onClickEvent",function(a){return s.onClickProfile(a)}),I()(),k(5,"div",6),K("click",function(){return s.onClickCSButton()}),ze(6,"\uACE0\uAC1D\uC13C\uD130"),I(),k(7,"div",7),K("click",function(){return s.onClickRemoveAccount()}),ze(8,"\uD68C\uC6D0\uD0C8\uD1F4"),I(),me(9,$9,2,1,"div",3),I()),i&2&&(A(),S("ngIf",s.mode==="info"),A(),S("ngIf",s.mode==="edit"),A(2),S("buttonElements",s.buttonElementsService.editProfileButton),A(5),S("ngIf",s.isPopUpBottomDialog))},dependencies:[ta,na,Mi,Cf,qe,En,Dr],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;height:100%;width:100%;overflow-y:scroll}.container[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}#profile-img-container[_ngcontent-%COMP%]{margin-bottom:20px}#cs-button[_ngcontent-%COMP%]{margin-top:50px;color:#000;font-size:14px;border:none;padding:10px;cursor:pointer}#remove-account-button[_ngcontent-%COMP%]{margin-top:50px;color:red;font-size:12px;border:none;padding:10px;cursor:pointer}"]});let r=e;return r})();var x3=(()=>{let e=class e{constructor(){}getThumbnail(n,i,s){return` + + +`}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=bt({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})();function K9(r,e){r&1&&(rn(0),de(1,"app-moim-list"),sn())}function J9(r,e){r&1&&(k(0,"div"),de(1,"app-moim-search"),I())}function Q9(r,e){r&1&&(k(0,"div"),de(1,"app-my-ticket-list"),I())}function e6(r,e){r&1&&(k(0,"div"),de(1,"app-profile"),I())}var Jn=function(r){return r[r.MAIN=0]="MAIN",r[r.SEARCH=1]="SEARCH",r[r.CREATE=2]="CREATE",r[r.MINE=3]="MINE",r[r.PROFILE=4]="PROFILE",r}(Jn||{}),m3=(()=>{let e=class e{constructor(n,i){this._router=n,this.thumbnailMakerService=i,this.navigatorSelectionButtons=[{selected:!0,value:Jn.MAIN,label:"\uBA54\uC778"},{selected:!1,value:Jn.SEARCH,label:"\uAC80\uC0C9"},{selected:!1,value:Jn.CREATE,label:"\uAC1C\uCD5C"},{selected:!1,value:Jn.MINE,label:"\uC99D\uD45C"},{selected:!1,value:Jn.PROFILE,label:"\uD504\uB85C\uD544"}],this.mainTabEnum=Jn,this.nowTab=Jn.MAIN}ngOnInit(){}onClickNavigatorButton(n){this.nowTab=n,console.log(n),n===Jn.CREATE&&this._router.navigate(["/web/meeting-create"])}getNavigatorButtonClass(n){return n?"navigator-button-selected":"navigator-button"}};e.\u0275fac=function(i){return new(i||e)(se(At),se(x3))},e.\u0275cmp=Ee({type:e,selectors:[["app-main"]],standalone:!0,features:[Fe],decls:10,vars:6,consts:[[1,"container"],["id","logo-container"],["src","assets/ssalon_logo_hand.svg","height","30px"],["id","tab-container"],[4,"ngIf"],["id","navigator-container"],[3,"onClickNavigatorButtonEvent"]],template:function(i,s){i&1&&(k(0,"div",0)(1,"div",1),de(2,"img",2),I(),k(3,"div",3),me(4,K9,2,0,"ng-container",4)(5,J9,2,0,"div",4)(6,Q9,2,0,"div",4)(7,e6,2,0,"div",4),I(),k(8,"div",5)(9,"app-bottom-navigator",6),K("onClickNavigatorButtonEvent",function(a){return s.onClickNavigatorButton(a)}),I()()()),i&2&&(A(2),Te("margin-left",20,"px"),A(2),S("ngIf",s.nowTab===s.mainTabEnum.MAIN),A(),S("ngIf",s.nowTab===s.mainTabEnum.SEARCH),A(),S("ngIf",s.nowTab===s.mainTabEnum.MINE),A(),S("ngIf",s.nowTab===s.mainTabEnum.PROFILE))},dependencies:[qe,u3,c3,f3,l3,p3],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;overflow-y:scroll;height:100%;width:100%;position:relative}.container[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}#logo-container[_ngcontent-%COMP%]{display:flex;align-items:center;margin-top:14px;width:100%}#tab-container[_ngcontent-%COMP%]{height:calc(100% - 80px);width:95%;margin-top:20px;overflow-y:scroll;position:relative;padding-left:10px;padding-right:10px}#tab-container[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}#navigator-container[_ngcontent-%COMP%]{width:100%}.navigator-button[_ngcontent-%COMP%]{height:20px}.navigator-button[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{fill:#bcbcbc}.navigator-button-selected[_ngcontent-%COMP%]{height:20px;fill:#000;stroke:#0000}.navigator-button-selected[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{fill:#2c2c2c}"]});let r=e;return r})();var VD="164";var t6=0,C3=1,n6=2;var QC=1,i6=2,zr=3,Cr=0,ai=1,Gr=2,Es=0,va=1,g3=2,E3=3,F3=4,r6=5,io=100,s6=101,o6=102,a6=103,u6=104,c6=200,f6=201,l6=202,h6=203,tD=204,nD=205,d6=206,D6=207,p6=208,x6=209,m6=210,C6=211,g6=212,E6=213,F6=214,_6=0,v6=1,y6=2,Xf=3,b6=4,B6=5,A6=6,w6=7,zD=0,S6=1,M6=2,Fs=0,T6=1,k6=2,P6=3,I6=4,R6=5,O6=6,L6=7;var _3=300,Aa=301,wa=302,iD=303,rD=304,gl=306,S0=1e3,so=1001,sD=1002,Pi=1003,N6=1004;var gf=1005;var $i=1006,Fd=1007;var oo=1008;var _s=1009,U6=1010,V6=1011,eg=1012,tg=1013,Sa=1014,gs=1015,El=1016,ng=1017,ig=1018,L0=1020,z6=35902,H6=1021,G6=1022,xr=1023,j6=1024,W6=1025,ya=1026,M0=1027,X6=1028,rg=1029,q6=1030,sg=1031,og=1033,_d=33776,vd=33777,yd=33778,bd=33779,v3=35840,y3=35841,b3=35842,B3=35843,A3=36196,w3=37492,S3=37496,M3=37808,T3=37809,k3=37810,P3=37811,I3=37812,R3=37813,O3=37814,L3=37815,N3=37816,U3=37817,V3=37818,z3=37819,H3=37820,G3=37821,Bd=36492,j3=36494,W3=36495,Y6=36283,X3=36284,q3=36285,Y3=36286;var qf=2300,Yf=2301,Ad=2302,$3=2400,Z3=2401,K3=2402;var $6=3200,Z6=3201,ag=0,K6=1,Cs="",ki="srgb",ys="srgb-linear",HD="display-p3",Fl="display-p3-linear",$f="linear",en="srgb",Zf="rec709",Kf="p3";var ia=7680;var J3=519,J6=512,Q6=513,ey=514,ug=515,ty=516,ny=517,iy=518,ry=519,Q3=35044;var eC="300 es",jr=2e3,Jf=2001,gr=class{addEventListener(e,t){this._listeners===void 0&&(this._listeners={});let n=this._listeners;n[e]===void 0&&(n[e]=[]),n[e].indexOf(t)===-1&&n[e].push(t)}hasEventListener(e,t){if(this._listeners===void 0)return!1;let n=this._listeners;return n[e]!==void 0&&n[e].indexOf(t)!==-1}removeEventListener(e,t){if(this._listeners===void 0)return;let i=this._listeners[e];if(i!==void 0){let s=i.indexOf(t);s!==-1&&i.splice(s,1)}}dispatchEvent(e){if(this._listeners===void 0)return;let n=this._listeners[e.type];if(n!==void 0){e.target=this;let i=n.slice(0);for(let s=0,o=i.length;s>8&255]+Gn[r>>16&255]+Gn[r>>24&255]+"-"+Gn[e&255]+Gn[e>>8&255]+"-"+Gn[e>>16&15|64]+Gn[e>>24&255]+"-"+Gn[t&63|128]+Gn[t>>8&255]+"-"+Gn[t>>16&255]+Gn[t>>24&255]+Gn[n&255]+Gn[n>>8&255]+Gn[n>>16&255]+Gn[n>>24&255]).toLowerCase()}function Pn(r,e,t){return Math.max(e,Math.min(t,r))}function GD(r,e){return(r%e+e)%e}function sy(r,e,t,n,i){return n+(r-e)*(i-n)/(t-e)}function oy(r,e,t){return r!==e?(t-r)/(e-r):0}function A0(r,e,t){return(1-t)*r+t*e}function ay(r,e,t,n){return A0(r,e,1-Math.exp(-t*n))}function uy(r,e=1){return e-Math.abs(GD(r,e*2)-e)}function cy(r,e,t){return r<=e?0:r>=t?1:(r=(r-e)/(t-e),r*r*(3-2*r))}function fy(r,e,t){return r<=e?0:r>=t?1:(r=(r-e)/(t-e),r*r*r*(r*(r*6-15)+10))}function ly(r,e){return r+Math.floor(Math.random()*(e-r+1))}function hy(r,e){return r+Math.random()*(e-r)}function dy(r){return r*(.5-Math.random())}function Dy(r){r!==void 0&&(tC=r);let e=tC+=1831565813;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}function py(r){return r*B0}function xy(r){return r*T0}function my(r){return(r&r-1)===0&&r!==0}function Cy(r){return Math.pow(2,Math.ceil(Math.log(r)/Math.LN2))}function gy(r){return Math.pow(2,Math.floor(Math.log(r)/Math.LN2))}function Ey(r,e,t,n,i){let s=Math.cos,o=Math.sin,a=s(t/2),u=o(t/2),c=s((e+n)/2),f=o((e+n)/2),l=s((e-n)/2),h=o((e-n)/2),d=s((n-e)/2),x=o((n-e)/2);switch(i){case"XYX":r.set(a*f,u*l,u*h,a*c);break;case"YZY":r.set(u*h,a*f,u*l,a*c);break;case"ZXZ":r.set(u*l,u*h,a*f,a*c);break;case"XZX":r.set(a*f,u*x,u*d,a*c);break;case"YXY":r.set(u*d,a*f,u*x,a*c);break;case"ZYZ":r.set(u*x,u*d,a*f,a*c);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+i)}}function Ea(r,e){switch(e.constructor){case Float32Array:return r;case Uint32Array:return r/4294967295;case Uint16Array:return r/65535;case Uint8Array:return r/255;case Int32Array:return Math.max(r/2147483647,-1);case Int16Array:return Math.max(r/32767,-1);case Int8Array:return Math.max(r/127,-1);default:throw new Error("Invalid component type.")}}function Qn(r,e){switch(e.constructor){case Float32Array:return r;case Uint32Array:return Math.round(r*4294967295);case Uint16Array:return Math.round(r*65535);case Uint8Array:return Math.round(r*255);case Int32Array:return Math.round(r*2147483647);case Int16Array:return Math.round(r*32767);case Int8Array:return Math.round(r*127);default:throw new Error("Invalid component type.")}}var an={DEG2RAD:B0,RAD2DEG:T0,generateUUID:La,clamp:Pn,euclideanModulo:GD,mapLinear:sy,inverseLerp:oy,lerp:A0,damp:ay,pingpong:uy,smoothstep:cy,smootherstep:fy,randInt:ly,randFloat:hy,randFloatSpread:dy,seededRandom:Dy,degToRad:py,radToDeg:xy,isPowerOfTwo:my,ceilPowerOfTwo:Cy,floorPowerOfTwo:gy,setQuaternionFromProperEuler:Ey,normalize:Qn,denormalize:Ea},ot=class r{constructor(e=0,t=0){r.prototype.isVector2=!0,this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){let t=this.x,n=this.y,i=e.elements;return this.x=i[0]*t+i[3]*n+i[6],this.y=i[1]*t+i[4]*n+i[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){let t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;let n=this.dot(e)/t;return Math.acos(Pn(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){let t=this.x-e.x,n=this.y-e.y;return t*t+n*n}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){let n=Math.cos(t),i=Math.sin(t),s=this.x-e.x,o=this.y-e.y;return this.x=s*n-o*i+e.x,this.y=s*i+o*n+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}},gt=class r{constructor(e,t,n,i,s,o,a,u,c){r.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,t,n,i,s,o,a,u,c)}set(e,t,n,i,s,o,a,u,c){let f=this.elements;return f[0]=e,f[1]=i,f[2]=a,f[3]=t,f[4]=s,f[5]=u,f[6]=n,f[7]=o,f[8]=c,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){let t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}extractBasis(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(e){let t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){let n=e.elements,i=t.elements,s=this.elements,o=n[0],a=n[3],u=n[6],c=n[1],f=n[4],l=n[7],h=n[2],d=n[5],x=n[8],m=i[0],D=i[3],p=i[6],C=i[1],g=i[4],E=i[7],y=i[2],v=i[5],b=i[8];return s[0]=o*m+a*C+u*y,s[3]=o*D+a*g+u*v,s[6]=o*p+a*E+u*b,s[1]=c*m+f*C+l*y,s[4]=c*D+f*g+l*v,s[7]=c*p+f*E+l*b,s[2]=h*m+d*C+x*y,s[5]=h*D+d*g+x*v,s[8]=h*p+d*E+x*b,this}multiplyScalar(e){let t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){let e=this.elements,t=e[0],n=e[1],i=e[2],s=e[3],o=e[4],a=e[5],u=e[6],c=e[7],f=e[8];return t*o*f-t*a*c-n*s*f+n*a*u+i*s*c-i*o*u}invert(){let e=this.elements,t=e[0],n=e[1],i=e[2],s=e[3],o=e[4],a=e[5],u=e[6],c=e[7],f=e[8],l=f*o-a*c,h=a*u-f*s,d=c*s-o*u,x=t*l+n*h+i*d;if(x===0)return this.set(0,0,0,0,0,0,0,0,0);let m=1/x;return e[0]=l*m,e[1]=(i*c-f*n)*m,e[2]=(a*n-i*o)*m,e[3]=h*m,e[4]=(f*t-i*u)*m,e[5]=(i*s-a*t)*m,e[6]=d*m,e[7]=(n*u-c*t)*m,e[8]=(o*t-n*s)*m,this}transpose(){let e,t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){let t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,n,i,s,o,a){let u=Math.cos(s),c=Math.sin(s);return this.set(n*u,n*c,-n*(u*o+c*a)+o+e,-i*c,i*u,-i*(-c*o+u*a)+a+t,0,0,1),this}scale(e,t){return this.premultiply(wd.makeScale(e,t)),this}rotate(e){return this.premultiply(wd.makeRotation(-e)),this}translate(e,t){return this.premultiply(wd.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){let t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,n,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){let t=this.elements,n=e.elements;for(let i=0;i<9;i++)if(t[i]!==n[i])return!1;return!0}fromArray(e,t=0){for(let n=0;n<9;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){let n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}clone(){return new this.constructor().fromArray(this.elements)}},wd=new gt;function cg(r){for(let e=r.length-1;e>=0;--e)if(r[e]>=65535)return!0;return!1}function k0(r){return document.createElementNS("http://www.w3.org/1999/xhtml",r)}function Fy(){let r=k0("canvas");return r.style.display="block",r}var nC={};function _y(r){r in nC||(nC[r]=!0,console.warn(r))}var iC=new gt().set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),rC=new gt().set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),Ef={[ys]:{transfer:$f,primaries:Zf,toReference:r=>r,fromReference:r=>r},[ki]:{transfer:en,primaries:Zf,toReference:r=>r.convertSRGBToLinear(),fromReference:r=>r.convertLinearToSRGB()},[Fl]:{transfer:$f,primaries:Kf,toReference:r=>r.applyMatrix3(rC),fromReference:r=>r.applyMatrix3(iC)},[HD]:{transfer:en,primaries:Kf,toReference:r=>r.convertSRGBToLinear().applyMatrix3(rC),fromReference:r=>r.applyMatrix3(iC).convertLinearToSRGB()}},vy=new Set([ys,Fl]),qt={enabled:!0,_workingColorSpace:ys,get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(r){if(!vy.has(r))throw new Error(`Unsupported working color space, "${r}".`);this._workingColorSpace=r},convert:function(r,e,t){if(this.enabled===!1||e===t||!e||!t)return r;let n=Ef[e].toReference,i=Ef[t].fromReference;return i(n(r))},fromWorkingColorSpace:function(r,e){return this.convert(r,this._workingColorSpace,e)},toWorkingColorSpace:function(r,e){return this.convert(r,e,this._workingColorSpace)},getPrimaries:function(r){return Ef[r].primaries},getTransfer:function(r){return r===Cs?$f:Ef[r].transfer}};function ba(r){return r<.04045?r*.0773993808:Math.pow(r*.9478672986+.0521327014,2.4)}function Sd(r){return r<.0031308?r*12.92:1.055*Math.pow(r,.41666)-.055}var ra,oD=class{static getDataURL(e){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>"u")return e.src;let t;if(e instanceof HTMLCanvasElement)t=e;else{ra===void 0&&(ra=k0("canvas")),ra.width=e.width,ra.height=e.height;let n=ra.getContext("2d");e instanceof ImageData?n.putImageData(e,0,0):n.drawImage(e,0,0,e.width,e.height),t=ra}return t.width>2048||t.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),t.toDataURL("image/jpeg",.6)):t.toDataURL("image/png")}static sRGBToLinear(e){if(typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&e instanceof ImageBitmap){let t=k0("canvas");t.width=e.width,t.height=e.height;let n=t.getContext("2d");n.drawImage(e,0,0,e.width,e.height);let i=n.getImageData(0,0,e.width,e.height),s=i.data;for(let o=0;o{class r extends gr{constructor(t=r.DEFAULT_IMAGE,n=r.DEFAULT_MAPPING,i=so,s=so,o=$i,a=oo,u=xr,c=_s,f=r.DEFAULT_ANISOTROPY,l=Cs){super(),this.isTexture=!0,Object.defineProperty(this,"id",{value:by++}),this.uuid=La(),this.name="",this.source=new Qf(t),this.mipmaps=[],this.mapping=n,this.channel=0,this.wrapS=i,this.wrapT=s,this.magFilter=o,this.minFilter=a,this.anisotropy=f,this.format=u,this.internalFormat=null,this.type=c,this.offset=new ot(0,0),this.repeat=new ot(1,1),this.center=new ot(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new gt,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.colorSpace=l,this.userData={},this.version=0,this.onUpdate=null,this.isRenderTargetTexture=!1,this.pmremVersion=0}get image(){return this.source.data}set image(t=null){this.source.data=t}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}clone(){return new this.constructor().copy(this)}copy(t){return this.name=t.name,this.source=t.source,this.mipmaps=t.mipmaps.slice(0),this.mapping=t.mapping,this.channel=t.channel,this.wrapS=t.wrapS,this.wrapT=t.wrapT,this.magFilter=t.magFilter,this.minFilter=t.minFilter,this.anisotropy=t.anisotropy,this.format=t.format,this.internalFormat=t.internalFormat,this.type=t.type,this.offset.copy(t.offset),this.repeat.copy(t.repeat),this.center.copy(t.center),this.rotation=t.rotation,this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrix.copy(t.matrix),this.generateMipmaps=t.generateMipmaps,this.premultiplyAlpha=t.premultiplyAlpha,this.flipY=t.flipY,this.unpackAlignment=t.unpackAlignment,this.colorSpace=t.colorSpace,this.userData=JSON.parse(JSON.stringify(t.userData)),this.needsUpdate=!0,this}toJSON(t){let n=t===void 0||typeof t=="string";if(!n&&t.textures[this.uuid]!==void 0)return t.textures[this.uuid];let i={metadata:{version:4.6,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,image:this.source.toJSON(t).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(i.userData=this.userData),n||(t.textures[this.uuid]=i),i}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(t){if(this.mapping!==_3)return t;if(t.applyMatrix3(this.matrix),t.x<0||t.x>1)switch(this.wrapS){case S0:t.x=t.x-Math.floor(t.x);break;case so:t.x=t.x<0?0:1;break;case sD:Math.abs(Math.floor(t.x)%2)===1?t.x=Math.ceil(t.x)-t.x:t.x=t.x-Math.floor(t.x);break}if(t.y<0||t.y>1)switch(this.wrapT){case S0:t.y=t.y-Math.floor(t.y);break;case so:t.y=t.y<0?0:1;break;case sD:Math.abs(Math.floor(t.y)%2)===1?t.y=Math.ceil(t.y)-t.y:t.y=t.y-Math.floor(t.y);break}return this.flipY&&(t.y=1-t.y),t}set needsUpdate(t){t===!0&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(t){t===!0&&this.pmremVersion++}}return r.DEFAULT_IMAGE=null,r.DEFAULT_MAPPING=_3,r.DEFAULT_ANISOTROPY=1,r})(),on=class r{constructor(e=0,t=0,n=0,i=1){r.prototype.isVector4=!0,this.x=e,this.y=t,this.z=n,this.w=i}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,n,i){return this.x=e,this.y=t,this.z=n,this.w=i,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w!==void 0?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){let t=this.x,n=this.y,i=this.z,s=this.w,o=e.elements;return this.x=o[0]*t+o[4]*n+o[8]*i+o[12]*s,this.y=o[1]*t+o[5]*n+o[9]*i+o[13]*s,this.z=o[2]*t+o[6]*n+o[10]*i+o[14]*s,this.w=o[3]*t+o[7]*n+o[11]*i+o[15]*s,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);let t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,n,i,s,u=e.elements,c=u[0],f=u[4],l=u[8],h=u[1],d=u[5],x=u[9],m=u[2],D=u[6],p=u[10];if(Math.abs(f-h)<.01&&Math.abs(l-m)<.01&&Math.abs(x-D)<.01){if(Math.abs(f+h)<.1&&Math.abs(l+m)<.1&&Math.abs(x+D)<.1&&Math.abs(c+d+p-3)<.1)return this.set(1,0,0,0),this;t=Math.PI;let g=(c+1)/2,E=(d+1)/2,y=(p+1)/2,v=(f+h)/4,b=(l+m)/4,B=(x+D)/4;return g>E&&g>y?g<.01?(n=0,i=.707106781,s=.707106781):(n=Math.sqrt(g),i=v/n,s=b/n):E>y?E<.01?(n=.707106781,i=0,s=.707106781):(i=Math.sqrt(E),n=v/i,s=B/i):y<.01?(n=.707106781,i=.707106781,s=0):(s=Math.sqrt(y),n=b/s,i=B/s),this.set(n,i,s,t),this}let C=Math.sqrt((D-x)*(D-x)+(l-m)*(l-m)+(h-f)*(h-f));return Math.abs(C)<.001&&(C=1),this.x=(D-x)/C,this.y=(l-m)/C,this.z=(h-f)/C,this.w=Math.acos((c+d+p-1)/2),this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this.w=Math.max(e.w,Math.min(t.w,this.w)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this.w=Math.max(e,Math.min(t,this.w)),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this.w=e.w+(t.w-e.w)*n,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}},aD=class extends gr{constructor(e=1,t=1,n={}){super(),this.isRenderTarget=!0,this.width=e,this.height=t,this.depth=1,this.scissor=new on(0,0,e,t),this.scissorTest=!1,this.viewport=new on(0,0,e,t);let i={width:e,height:t,depth:1};n=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:$i,depthBuffer:!0,stencilBuffer:!1,resolveDepthBuffer:!0,resolveStencilBuffer:!0,depthTexture:null,samples:0,count:1},n);let s=new bs(i,n.mapping,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.colorSpace);s.flipY=!1,s.generateMipmaps=n.generateMipmaps,s.internalFormat=n.internalFormat,this.textures=[];let o=n.count;for(let a=0;a=0?1:-1,g=1-p*p;if(g>Number.EPSILON){let y=Math.sqrt(g),v=Math.atan2(y,p*C);D=Math.sin(D*v)/y,a=Math.sin(a*v)/y}let E=a*C;if(u=u*D+h*E,c=c*D+d*E,f=f*D+x*E,l=l*D+m*E,D===1-a){let y=1/Math.sqrt(u*u+c*c+f*f+l*l);u*=y,c*=y,f*=y,l*=y}}e[t]=u,e[t+1]=c,e[t+2]=f,e[t+3]=l}static multiplyQuaternionsFlat(e,t,n,i,s,o){let a=n[i],u=n[i+1],c=n[i+2],f=n[i+3],l=s[o],h=s[o+1],d=s[o+2],x=s[o+3];return e[t]=a*x+f*l+u*d-c*h,e[t+1]=u*x+f*h+c*l-a*d,e[t+2]=c*x+f*d+a*h-u*l,e[t+3]=f*x-a*l-u*h-c*d,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,n,i){return this._x=e,this._y=t,this._z=n,this._w=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t=!0){let n=e._x,i=e._y,s=e._z,o=e._order,a=Math.cos,u=Math.sin,c=a(n/2),f=a(i/2),l=a(s/2),h=u(n/2),d=u(i/2),x=u(s/2);switch(o){case"XYZ":this._x=h*f*l+c*d*x,this._y=c*d*l-h*f*x,this._z=c*f*x+h*d*l,this._w=c*f*l-h*d*x;break;case"YXZ":this._x=h*f*l+c*d*x,this._y=c*d*l-h*f*x,this._z=c*f*x-h*d*l,this._w=c*f*l+h*d*x;break;case"ZXY":this._x=h*f*l-c*d*x,this._y=c*d*l+h*f*x,this._z=c*f*x+h*d*l,this._w=c*f*l-h*d*x;break;case"ZYX":this._x=h*f*l-c*d*x,this._y=c*d*l+h*f*x,this._z=c*f*x-h*d*l,this._w=c*f*l+h*d*x;break;case"YZX":this._x=h*f*l+c*d*x,this._y=c*d*l+h*f*x,this._z=c*f*x-h*d*l,this._w=c*f*l-h*d*x;break;case"XZY":this._x=h*f*l-c*d*x,this._y=c*d*l-h*f*x,this._z=c*f*x+h*d*l,this._w=c*f*l+h*d*x;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}return t===!0&&this._onChangeCallback(),this}setFromAxisAngle(e,t){let n=t/2,i=Math.sin(n);return this._x=e.x*i,this._y=e.y*i,this._z=e.z*i,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(e){let t=e.elements,n=t[0],i=t[4],s=t[8],o=t[1],a=t[5],u=t[9],c=t[2],f=t[6],l=t[10],h=n+a+l;if(h>0){let d=.5/Math.sqrt(h+1);this._w=.25/d,this._x=(f-u)*d,this._y=(s-c)*d,this._z=(o-i)*d}else if(n>a&&n>l){let d=2*Math.sqrt(1+n-a-l);this._w=(f-u)/d,this._x=.25*d,this._y=(i+o)/d,this._z=(s+c)/d}else if(a>l){let d=2*Math.sqrt(1+a-n-l);this._w=(s-c)/d,this._x=(i+o)/d,this._y=.25*d,this._z=(u+f)/d}else{let d=2*Math.sqrt(1+l-n-a);this._w=(o-i)/d,this._x=(s+c)/d,this._y=(u+f)/d,this._z=.25*d}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let n=e.dot(t)+1;return nMath.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=n),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(Pn(this.dot(e),-1,1)))}rotateTowards(e,t){let n=this.angleTo(e);if(n===0)return this;let i=Math.min(1,t/n);return this.slerp(e,i),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){let n=e._x,i=e._y,s=e._z,o=e._w,a=t._x,u=t._y,c=t._z,f=t._w;return this._x=n*f+o*a+i*c-s*u,this._y=i*f+o*u+s*a-n*c,this._z=s*f+o*c+n*u-i*a,this._w=o*f-n*a-i*u-s*c,this._onChangeCallback(),this}slerp(e,t){if(t===0)return this;if(t===1)return this.copy(e);let n=this._x,i=this._y,s=this._z,o=this._w,a=o*e._w+n*e._x+i*e._y+s*e._z;if(a<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,a=-a):this.copy(e),a>=1)return this._w=o,this._x=n,this._y=i,this._z=s,this;let u=1-a*a;if(u<=Number.EPSILON){let d=1-t;return this._w=d*o+t*this._w,this._x=d*n+t*this._x,this._y=d*i+t*this._y,this._z=d*s+t*this._z,this.normalize(),this}let c=Math.sqrt(u),f=Math.atan2(c,a),l=Math.sin((1-t)*f)/c,h=Math.sin(t*f)/c;return this._w=o*l+this._w*h,this._x=n*l+this._x*h,this._y=i*l+this._y*h,this._z=s*l+this._z*h,this._onChangeCallback(),this}slerpQuaternions(e,t,n){return this.copy(e).slerp(t,n)}random(){let e=2*Math.PI*Math.random(),t=2*Math.PI*Math.random(),n=Math.random(),i=Math.sqrt(1-n),s=Math.sqrt(n);return this.set(i*Math.sin(e),i*Math.cos(e),s*Math.sin(t),s*Math.cos(t))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}},z=class r{constructor(e=0,t=0,n=0){r.prototype.isVector3=!0,this.x=e,this.y=t,this.z=n}set(e,t,n){return n===void 0&&(n=this.z),this.x=e,this.y=t,this.z=n,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(sC.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(sC.setFromAxisAngle(e,t))}applyMatrix3(e){let t=this.x,n=this.y,i=this.z,s=e.elements;return this.x=s[0]*t+s[3]*n+s[6]*i,this.y=s[1]*t+s[4]*n+s[7]*i,this.z=s[2]*t+s[5]*n+s[8]*i,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){let t=this.x,n=this.y,i=this.z,s=e.elements,o=1/(s[3]*t+s[7]*n+s[11]*i+s[15]);return this.x=(s[0]*t+s[4]*n+s[8]*i+s[12])*o,this.y=(s[1]*t+s[5]*n+s[9]*i+s[13])*o,this.z=(s[2]*t+s[6]*n+s[10]*i+s[14])*o,this}applyQuaternion(e){let t=this.x,n=this.y,i=this.z,s=e.x,o=e.y,a=e.z,u=e.w,c=2*(o*i-a*n),f=2*(a*t-s*i),l=2*(s*n-o*t);return this.x=t+u*c+o*l-a*f,this.y=n+u*f+a*c-s*l,this.z=i+u*l+s*f-o*c,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){let t=this.x,n=this.y,i=this.z,s=e.elements;return this.x=s[0]*t+s[4]*n+s[8]*i,this.y=s[1]*t+s[5]*n+s[9]*i,this.z=s[2]*t+s[6]*n+s[10]*i,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){let n=e.x,i=e.y,s=e.z,o=t.x,a=t.y,u=t.z;return this.x=i*u-s*a,this.y=s*o-n*u,this.z=n*a-i*o,this}projectOnVector(e){let t=e.lengthSq();if(t===0)return this.set(0,0,0);let n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}projectOnPlane(e){return Td.copy(this).projectOnVector(e),this.sub(Td)}reflect(e){return this.sub(Td.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){let t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;let n=this.dot(e)/t;return Math.acos(Pn(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){let t=this.x-e.x,n=this.y-e.y,i=this.z-e.z;return t*t+n*n+i*i}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,n){let i=Math.sin(t)*e;return this.x=i*Math.sin(n),this.y=Math.cos(t)*e,this.z=i*Math.cos(n),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){let t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){let t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),i=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=i,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,t*4)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,t*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){let e=Math.random()*Math.PI*2,t=Math.random()*2-1,n=Math.sqrt(1-t*t);return this.x=n*Math.cos(e),this.y=t,this.z=n*Math.sin(e),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}},Td=new z,sC=new Ri,Xr=class{constructor(e=new z(1/0,1/0,1/0),t=new z(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,n=e.length;tthis.max.x||e.ythis.max.y||e.zthis.max.z)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return!(e.max.xthis.max.x||e.max.ythis.max.y||e.max.zthis.max.z)}intersectsSphere(e){return this.clampPoint(e.center,Xi),Xi.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(g0),_f.subVectors(this.max,g0),sa.subVectors(e.a,g0),oa.subVectors(e.b,g0),aa.subVectors(e.c,g0),hs.subVectors(oa,sa),ds.subVectors(aa,oa),Zs.subVectors(sa,aa);let t=[0,-hs.z,hs.y,0,-ds.z,ds.y,0,-Zs.z,Zs.y,hs.z,0,-hs.x,ds.z,0,-ds.x,Zs.z,0,-Zs.x,-hs.y,hs.x,0,-ds.y,ds.x,0,-Zs.y,Zs.x,0];return!kd(t,sa,oa,aa,_f)||(t=[1,0,0,0,1,0,0,0,1],!kd(t,sa,oa,aa,_f))?!1:(vf.crossVectors(hs,ds),t=[vf.x,vf.y,vf.z],kd(t,sa,oa,aa,_f))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,Xi).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(Xi).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()?this:(Rr[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),Rr[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),Rr[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),Rr[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),Rr[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),Rr[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),Rr[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),Rr[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(Rr),this)}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}},Rr=[new z,new z,new z,new z,new z,new z,new z,new z],Xi=new z,Ff=new Xr,sa=new z,oa=new z,aa=new z,hs=new z,ds=new z,Zs=new z,g0=new z,_f=new z,vf=new z,Ks=new z;function kd(r,e,t,n,i){for(let s=0,o=r.length-3;s<=o;s+=3){Ks.fromArray(r,s);let a=i.x*Math.abs(Ks.x)+i.y*Math.abs(Ks.y)+i.z*Math.abs(Ks.z),u=e.dot(Ks),c=t.dot(Ks),f=n.dot(Ks);if(Math.max(-Math.max(u,c,f),Math.min(u,c,f))>a)return!1}return!0}var By=new Xr,E0=new z,Pd=new z,qr=class{constructor(e=new z,t=-1){this.isSphere=!0,this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){let n=this.center;t!==void 0?n.copy(t):By.setFromPoints(e).getCenter(n);let i=0;for(let s=0,o=e.length;sthis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;E0.subVectors(e,this.center);let t=E0.lengthSq();if(t>this.radius*this.radius){let n=Math.sqrt(t),i=(n-this.radius)*.5;this.center.addScaledVector(E0,i/n),this.radius+=i}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(Pd.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(E0.copy(e.center).add(Pd)),this.expandByPoint(E0.copy(e.center).sub(Pd))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}},Or=new z,Id=new z,yf=new z,Ds=new z,Rd=new z,bf=new z,Od=new z,Ma=class{constructor(e=new z,t=new z(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,Or)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);let n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,n)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){let t=Or.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(Or.copy(this.origin).addScaledVector(this.direction,t),Or.distanceToSquared(e))}distanceSqToSegment(e,t,n,i){Id.copy(e).add(t).multiplyScalar(.5),yf.copy(t).sub(e).normalize(),Ds.copy(this.origin).sub(Id);let s=e.distanceTo(t)*.5,o=-this.direction.dot(yf),a=Ds.dot(this.direction),u=-Ds.dot(yf),c=Ds.lengthSq(),f=Math.abs(1-o*o),l,h,d,x;if(f>0)if(l=o*u-a,h=o*a-u,x=s*f,l>=0)if(h>=-x)if(h<=x){let m=1/f;l*=m,h*=m,d=l*(l+o*h+2*a)+h*(o*l+h+2*u)+c}else h=s,l=Math.max(0,-(o*h+a)),d=-l*l+h*(h+2*u)+c;else h=-s,l=Math.max(0,-(o*h+a)),d=-l*l+h*(h+2*u)+c;else h<=-x?(l=Math.max(0,-(-o*s+a)),h=l>0?-s:Math.min(Math.max(-s,-u),s),d=-l*l+h*(h+2*u)+c):h<=x?(l=0,h=Math.min(Math.max(-s,-u),s),d=h*(h+2*u)+c):(l=Math.max(0,-(o*s+a)),h=l>0?s:Math.min(Math.max(-s,-u),s),d=-l*l+h*(h+2*u)+c);else h=o>0?-s:s,l=Math.max(0,-(o*h+a)),d=-l*l+h*(h+2*u)+c;return n&&n.copy(this.origin).addScaledVector(this.direction,l),i&&i.copy(Id).addScaledVector(yf,h),d}intersectSphere(e,t){Or.subVectors(e.center,this.origin);let n=Or.dot(this.direction),i=Or.dot(Or)-n*n,s=e.radius*e.radius;if(i>s)return null;let o=Math.sqrt(s-i),a=n-o,u=n+o;return u<0?null:a<0?this.at(u,t):this.at(a,t)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){let t=e.normal.dot(this.direction);if(t===0)return e.distanceToPoint(this.origin)===0?0:null;let n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null}intersectPlane(e,t){let n=this.distanceToPlane(e);return n===null?null:this.at(n,t)}intersectsPlane(e){let t=e.distanceToPoint(this.origin);return t===0||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let n,i,s,o,a,u,c=1/this.direction.x,f=1/this.direction.y,l=1/this.direction.z,h=this.origin;return c>=0?(n=(e.min.x-h.x)*c,i=(e.max.x-h.x)*c):(n=(e.max.x-h.x)*c,i=(e.min.x-h.x)*c),f>=0?(s=(e.min.y-h.y)*f,o=(e.max.y-h.y)*f):(s=(e.max.y-h.y)*f,o=(e.min.y-h.y)*f),n>o||s>i||((s>n||isNaN(n))&&(n=s),(o=0?(a=(e.min.z-h.z)*l,u=(e.max.z-h.z)*l):(a=(e.max.z-h.z)*l,u=(e.min.z-h.z)*l),n>u||a>i)||((a>n||n!==n)&&(n=a),(u=0?n:i,t)}intersectsBox(e){return this.intersectBox(e,Or)!==null}intersectTriangle(e,t,n,i,s){Rd.subVectors(t,e),bf.subVectors(n,e),Od.crossVectors(Rd,bf);let o=this.direction.dot(Od),a;if(o>0){if(i)return null;a=1}else if(o<0)a=-1,o=-o;else return null;Ds.subVectors(this.origin,e);let u=a*this.direction.dot(bf.crossVectors(Ds,bf));if(u<0)return null;let c=a*this.direction.dot(Rd.cross(Ds));if(c<0||u+c>o)return null;let f=-a*Ds.dot(Od);return f<0?null:this.at(f/o,s)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}},ut=class r{constructor(e,t,n,i,s,o,a,u,c,f,l,h,d,x,m,D){r.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],e!==void 0&&this.set(e,t,n,i,s,o,a,u,c,f,l,h,d,x,m,D)}set(e,t,n,i,s,o,a,u,c,f,l,h,d,x,m,D){let p=this.elements;return p[0]=e,p[4]=t,p[8]=n,p[12]=i,p[1]=s,p[5]=o,p[9]=a,p[13]=u,p[2]=c,p[6]=f,p[10]=l,p[14]=h,p[3]=d,p[7]=x,p[11]=m,p[15]=D,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new r().fromArray(this.elements)}copy(e){let t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],this}copyPosition(e){let t=this.elements,n=e.elements;return t[12]=n[12],t[13]=n[13],t[14]=n[14],this}setFromMatrix3(e){let t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,n){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}makeBasis(e,t,n){return this.set(e.x,t.x,n.x,0,e.y,t.y,n.y,0,e.z,t.z,n.z,0,0,0,0,1),this}extractRotation(e){let t=this.elements,n=e.elements,i=1/ua.setFromMatrixColumn(e,0).length(),s=1/ua.setFromMatrixColumn(e,1).length(),o=1/ua.setFromMatrixColumn(e,2).length();return t[0]=n[0]*i,t[1]=n[1]*i,t[2]=n[2]*i,t[3]=0,t[4]=n[4]*s,t[5]=n[5]*s,t[6]=n[6]*s,t[7]=0,t[8]=n[8]*o,t[9]=n[9]*o,t[10]=n[10]*o,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){let t=this.elements,n=e.x,i=e.y,s=e.z,o=Math.cos(n),a=Math.sin(n),u=Math.cos(i),c=Math.sin(i),f=Math.cos(s),l=Math.sin(s);if(e.order==="XYZ"){let h=o*f,d=o*l,x=a*f,m=a*l;t[0]=u*f,t[4]=-u*l,t[8]=c,t[1]=d+x*c,t[5]=h-m*c,t[9]=-a*u,t[2]=m-h*c,t[6]=x+d*c,t[10]=o*u}else if(e.order==="YXZ"){let h=u*f,d=u*l,x=c*f,m=c*l;t[0]=h+m*a,t[4]=x*a-d,t[8]=o*c,t[1]=o*l,t[5]=o*f,t[9]=-a,t[2]=d*a-x,t[6]=m+h*a,t[10]=o*u}else if(e.order==="ZXY"){let h=u*f,d=u*l,x=c*f,m=c*l;t[0]=h-m*a,t[4]=-o*l,t[8]=x+d*a,t[1]=d+x*a,t[5]=o*f,t[9]=m-h*a,t[2]=-o*c,t[6]=a,t[10]=o*u}else if(e.order==="ZYX"){let h=o*f,d=o*l,x=a*f,m=a*l;t[0]=u*f,t[4]=x*c-d,t[8]=h*c+m,t[1]=u*l,t[5]=m*c+h,t[9]=d*c-x,t[2]=-c,t[6]=a*u,t[10]=o*u}else if(e.order==="YZX"){let h=o*u,d=o*c,x=a*u,m=a*c;t[0]=u*f,t[4]=m-h*l,t[8]=x*l+d,t[1]=l,t[5]=o*f,t[9]=-a*f,t[2]=-c*f,t[6]=d*l+x,t[10]=h-m*l}else if(e.order==="XZY"){let h=o*u,d=o*c,x=a*u,m=a*c;t[0]=u*f,t[4]=-l,t[8]=c*f,t[1]=h*l+m,t[5]=o*f,t[9]=d*l-x,t[2]=x*l-d,t[6]=a*f,t[10]=m*l+h}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(Ay,e,wy)}lookAt(e,t,n){let i=this.elements;return Ci.subVectors(e,t),Ci.lengthSq()===0&&(Ci.z=1),Ci.normalize(),ps.crossVectors(n,Ci),ps.lengthSq()===0&&(Math.abs(n.z)===1?Ci.x+=1e-4:Ci.z+=1e-4,Ci.normalize(),ps.crossVectors(n,Ci)),ps.normalize(),Bf.crossVectors(Ci,ps),i[0]=ps.x,i[4]=Bf.x,i[8]=Ci.x,i[1]=ps.y,i[5]=Bf.y,i[9]=Ci.y,i[2]=ps.z,i[6]=Bf.z,i[10]=Ci.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){let n=e.elements,i=t.elements,s=this.elements,o=n[0],a=n[4],u=n[8],c=n[12],f=n[1],l=n[5],h=n[9],d=n[13],x=n[2],m=n[6],D=n[10],p=n[14],C=n[3],g=n[7],E=n[11],y=n[15],v=i[0],b=i[4],B=i[8],F=i[12],_=i[1],M=i[5],R=i[9],P=i[13],H=i[2],G=i[6],ie=i[10],ce=i[14],Y=i[3],J=i[7],De=i[11],be=i[15];return s[0]=o*v+a*_+u*H+c*Y,s[4]=o*b+a*M+u*G+c*J,s[8]=o*B+a*R+u*ie+c*De,s[12]=o*F+a*P+u*ce+c*be,s[1]=f*v+l*_+h*H+d*Y,s[5]=f*b+l*M+h*G+d*J,s[9]=f*B+l*R+h*ie+d*De,s[13]=f*F+l*P+h*ce+d*be,s[2]=x*v+m*_+D*H+p*Y,s[6]=x*b+m*M+D*G+p*J,s[10]=x*B+m*R+D*ie+p*De,s[14]=x*F+m*P+D*ce+p*be,s[3]=C*v+g*_+E*H+y*Y,s[7]=C*b+g*M+E*G+y*J,s[11]=C*B+g*R+E*ie+y*De,s[15]=C*F+g*P+E*ce+y*be,this}multiplyScalar(e){let t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){let e=this.elements,t=e[0],n=e[4],i=e[8],s=e[12],o=e[1],a=e[5],u=e[9],c=e[13],f=e[2],l=e[6],h=e[10],d=e[14],x=e[3],m=e[7],D=e[11],p=e[15];return x*(+s*u*l-i*c*l-s*a*h+n*c*h+i*a*d-n*u*d)+m*(+t*u*d-t*c*h+s*o*h-i*o*d+i*c*f-s*u*f)+D*(+t*c*l-t*a*d-s*o*l+n*o*d+s*a*f-n*c*f)+p*(-i*a*f-t*u*l+t*a*h+i*o*l-n*o*h+n*u*f)}transpose(){let e=this.elements,t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,n){let i=this.elements;return e.isVector3?(i[12]=e.x,i[13]=e.y,i[14]=e.z):(i[12]=e,i[13]=t,i[14]=n),this}invert(){let e=this.elements,t=e[0],n=e[1],i=e[2],s=e[3],o=e[4],a=e[5],u=e[6],c=e[7],f=e[8],l=e[9],h=e[10],d=e[11],x=e[12],m=e[13],D=e[14],p=e[15],C=l*D*c-m*h*c+m*u*d-a*D*d-l*u*p+a*h*p,g=x*h*c-f*D*c-x*u*d+o*D*d+f*u*p-o*h*p,E=f*m*c-x*l*c+x*a*d-o*m*d-f*a*p+o*l*p,y=x*l*u-f*m*u-x*a*h+o*m*h+f*a*D-o*l*D,v=t*C+n*g+i*E+s*y;if(v===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);let b=1/v;return e[0]=C*b,e[1]=(m*h*s-l*D*s-m*i*d+n*D*d+l*i*p-n*h*p)*b,e[2]=(a*D*s-m*u*s+m*i*c-n*D*c-a*i*p+n*u*p)*b,e[3]=(l*u*s-a*h*s-l*i*c+n*h*c+a*i*d-n*u*d)*b,e[4]=g*b,e[5]=(f*D*s-x*h*s+x*i*d-t*D*d-f*i*p+t*h*p)*b,e[6]=(x*u*s-o*D*s-x*i*c+t*D*c+o*i*p-t*u*p)*b,e[7]=(o*h*s-f*u*s+f*i*c-t*h*c-o*i*d+t*u*d)*b,e[8]=E*b,e[9]=(x*l*s-f*m*s-x*n*d+t*m*d+f*n*p-t*l*p)*b,e[10]=(o*m*s-x*a*s+x*n*c-t*m*c-o*n*p+t*a*p)*b,e[11]=(f*a*s-o*l*s-f*n*c+t*l*c+o*n*d-t*a*d)*b,e[12]=y*b,e[13]=(f*m*i-x*l*i+x*n*h-t*m*h-f*n*D+t*l*D)*b,e[14]=(x*a*i-o*m*i-x*n*u+t*m*u+o*n*D-t*a*D)*b,e[15]=(o*l*i-f*a*i+f*n*u-t*l*u-o*n*h+t*a*h)*b,this}scale(e){let t=this.elements,n=e.x,i=e.y,s=e.z;return t[0]*=n,t[4]*=i,t[8]*=s,t[1]*=n,t[5]*=i,t[9]*=s,t[2]*=n,t[6]*=i,t[10]*=s,t[3]*=n,t[7]*=i,t[11]*=s,this}getMaxScaleOnAxis(){let e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],n=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],i=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,n,i))}makeTranslation(e,t,n){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,t,0,0,1,n,0,0,0,1),this}makeRotationX(e){let t=Math.cos(e),n=Math.sin(e);return this.set(1,0,0,0,0,t,-n,0,0,n,t,0,0,0,0,1),this}makeRotationY(e){let t=Math.cos(e),n=Math.sin(e);return this.set(t,0,n,0,0,1,0,0,-n,0,t,0,0,0,0,1),this}makeRotationZ(e){let t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,0,n,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){let n=Math.cos(t),i=Math.sin(t),s=1-n,o=e.x,a=e.y,u=e.z,c=s*o,f=s*a;return this.set(c*o+n,c*a-i*u,c*u+i*a,0,c*a+i*u,f*a+n,f*u-i*o,0,c*u-i*a,f*u+i*o,s*u*u+n,0,0,0,0,1),this}makeScale(e,t,n){return this.set(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1),this}makeShear(e,t,n,i,s,o){return this.set(1,n,s,0,e,1,o,0,t,i,1,0,0,0,0,1),this}compose(e,t,n){let i=this.elements,s=t._x,o=t._y,a=t._z,u=t._w,c=s+s,f=o+o,l=a+a,h=s*c,d=s*f,x=s*l,m=o*f,D=o*l,p=a*l,C=u*c,g=u*f,E=u*l,y=n.x,v=n.y,b=n.z;return i[0]=(1-(m+p))*y,i[1]=(d+E)*y,i[2]=(x-g)*y,i[3]=0,i[4]=(d-E)*v,i[5]=(1-(h+p))*v,i[6]=(D+C)*v,i[7]=0,i[8]=(x+g)*b,i[9]=(D-C)*b,i[10]=(1-(h+m))*b,i[11]=0,i[12]=e.x,i[13]=e.y,i[14]=e.z,i[15]=1,this}decompose(e,t,n){let i=this.elements,s=ua.set(i[0],i[1],i[2]).length(),o=ua.set(i[4],i[5],i[6]).length(),a=ua.set(i[8],i[9],i[10]).length();this.determinant()<0&&(s=-s),e.x=i[12],e.y=i[13],e.z=i[14],qi.copy(this);let c=1/s,f=1/o,l=1/a;return qi.elements[0]*=c,qi.elements[1]*=c,qi.elements[2]*=c,qi.elements[4]*=f,qi.elements[5]*=f,qi.elements[6]*=f,qi.elements[8]*=l,qi.elements[9]*=l,qi.elements[10]*=l,t.setFromRotationMatrix(qi),n.x=s,n.y=o,n.z=a,this}makePerspective(e,t,n,i,s,o,a=jr){let u=this.elements,c=2*s/(t-e),f=2*s/(n-i),l=(t+e)/(t-e),h=(n+i)/(n-i),d,x;if(a===jr)d=-(o+s)/(o-s),x=-2*o*s/(o-s);else if(a===Jf)d=-o/(o-s),x=-o*s/(o-s);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+a);return u[0]=c,u[4]=0,u[8]=l,u[12]=0,u[1]=0,u[5]=f,u[9]=h,u[13]=0,u[2]=0,u[6]=0,u[10]=d,u[14]=x,u[3]=0,u[7]=0,u[11]=-1,u[15]=0,this}makeOrthographic(e,t,n,i,s,o,a=jr){let u=this.elements,c=1/(t-e),f=1/(n-i),l=1/(o-s),h=(t+e)*c,d=(n+i)*f,x,m;if(a===jr)x=(o+s)*l,m=-2*l;else if(a===Jf)x=s*l,m=-1*l;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+a);return u[0]=2*c,u[4]=0,u[8]=0,u[12]=-h,u[1]=0,u[5]=2*f,u[9]=0,u[13]=-d,u[2]=0,u[6]=0,u[10]=m,u[14]=-x,u[3]=0,u[7]=0,u[11]=0,u[15]=1,this}equals(e){let t=this.elements,n=e.elements;for(let i=0;i<16;i++)if(t[i]!==n[i])return!1;return!0}fromArray(e,t=0){for(let n=0;n<16;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){let n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e[t+9]=n[9],e[t+10]=n[10],e[t+11]=n[11],e[t+12]=n[12],e[t+13]=n[13],e[t+14]=n[14],e[t+15]=n[15],e}},ua=new z,qi=new ut,Ay=new z(0,0,0),wy=new z(1,1,1),ps=new z,Bf=new z,Ci=new z,oC=new ut,aC=new Ri,ao=(()=>{class r{constructor(t=0,n=0,i=0,s=r.DEFAULT_ORDER){this.isEuler=!0,this._x=t,this._y=n,this._z=i,this._order=s}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get order(){return this._order}set order(t){this._order=t,this._onChangeCallback()}set(t,n,i,s=this._order){return this._x=t,this._y=n,this._z=i,this._order=s,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(t){return this._x=t._x,this._y=t._y,this._z=t._z,this._order=t._order,this._onChangeCallback(),this}setFromRotationMatrix(t,n=this._order,i=!0){let s=t.elements,o=s[0],a=s[4],u=s[8],c=s[1],f=s[5],l=s[9],h=s[2],d=s[6],x=s[10];switch(n){case"XYZ":this._y=Math.asin(Pn(u,-1,1)),Math.abs(u)<.9999999?(this._x=Math.atan2(-l,x),this._z=Math.atan2(-a,o)):(this._x=Math.atan2(d,f),this._z=0);break;case"YXZ":this._x=Math.asin(-Pn(l,-1,1)),Math.abs(l)<.9999999?(this._y=Math.atan2(u,x),this._z=Math.atan2(c,f)):(this._y=Math.atan2(-h,o),this._z=0);break;case"ZXY":this._x=Math.asin(Pn(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(-h,x),this._z=Math.atan2(-a,f)):(this._y=0,this._z=Math.atan2(c,o));break;case"ZYX":this._y=Math.asin(-Pn(h,-1,1)),Math.abs(h)<.9999999?(this._x=Math.atan2(d,x),this._z=Math.atan2(c,o)):(this._x=0,this._z=Math.atan2(-a,f));break;case"YZX":this._z=Math.asin(Pn(c,-1,1)),Math.abs(c)<.9999999?(this._x=Math.atan2(-l,f),this._y=Math.atan2(-h,o)):(this._x=0,this._y=Math.atan2(u,x));break;case"XZY":this._z=Math.asin(-Pn(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(d,f),this._y=Math.atan2(u,o)):(this._x=Math.atan2(-l,x),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+n)}return this._order=n,i===!0&&this._onChangeCallback(),this}setFromQuaternion(t,n,i){return oC.makeRotationFromQuaternion(t),this.setFromRotationMatrix(oC,n,i)}setFromVector3(t,n=this._order){return this.set(t.x,t.y,t.z,n)}reorder(t){return aC.setFromEuler(this),this.setFromQuaternion(aC,t)}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._order===this._order}fromArray(t){return this._x=t[0],this._y=t[1],this._z=t[2],t[3]!==void 0&&(this._order=t[3]),this._onChangeCallback(),this}toArray(t=[],n=0){return t[n]=this._x,t[n+1]=this._y,t[n+2]=this._z,t[n+3]=this._order,t}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}return r.DEFAULT_ORDER="XYZ",r})(),P0=class{constructor(){this.mask=1}set(e){this.mask=(1<>>0}enable(e){this.mask|=1<{class r extends gr{constructor(){super(),this.isObject3D=!0,Object.defineProperty(this,"id",{value:Sy++}),this.uuid=La(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=r.DEFAULT_UP.clone();let t=new z,n=new ao,i=new Ri,s=new z(1,1,1);function o(){i.setFromEuler(n,!1)}function a(){n.setFromQuaternion(i,void 0,!1)}n._onChange(o),i._onChange(a),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:t},rotation:{configurable:!0,enumerable:!0,value:n},quaternion:{configurable:!0,enumerable:!0,value:i},scale:{configurable:!0,enumerable:!0,value:s},modelViewMatrix:{value:new ut},normalMatrix:{value:new gt}}),this.matrix=new ut,this.matrixWorld=new ut,this.matrixAutoUpdate=r.DEFAULT_MATRIX_AUTO_UPDATE,this.matrixWorldAutoUpdate=r.DEFAULT_MATRIX_WORLD_AUTO_UPDATE,this.matrixWorldNeedsUpdate=!1,this.layers=new P0,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.userData={}}onBeforeShadow(){}onAfterShadow(){}onBeforeRender(){}onAfterRender(){}applyMatrix4(t){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(t),this.matrix.decompose(this.position,this.quaternion,this.scale)}applyQuaternion(t){return this.quaternion.premultiply(t),this}setRotationFromAxisAngle(t,n){this.quaternion.setFromAxisAngle(t,n)}setRotationFromEuler(t){this.quaternion.setFromEuler(t,!0)}setRotationFromMatrix(t){this.quaternion.setFromRotationMatrix(t)}setRotationFromQuaternion(t){this.quaternion.copy(t)}rotateOnAxis(t,n){return ca.setFromAxisAngle(t,n),this.quaternion.multiply(ca),this}rotateOnWorldAxis(t,n){return ca.setFromAxisAngle(t,n),this.quaternion.premultiply(ca),this}rotateX(t){return this.rotateOnAxis(cC,t)}rotateY(t){return this.rotateOnAxis(fC,t)}rotateZ(t){return this.rotateOnAxis(lC,t)}translateOnAxis(t,n){return uC.copy(t).applyQuaternion(this.quaternion),this.position.add(uC.multiplyScalar(n)),this}translateX(t){return this.translateOnAxis(cC,t)}translateY(t){return this.translateOnAxis(fC,t)}translateZ(t){return this.translateOnAxis(lC,t)}localToWorld(t){return this.updateWorldMatrix(!0,!1),t.applyMatrix4(this.matrixWorld)}worldToLocal(t){return this.updateWorldMatrix(!0,!1),t.applyMatrix4(Lr.copy(this.matrixWorld).invert())}lookAt(t,n,i){t.isVector3?Af.copy(t):Af.set(t,n,i);let s=this.parent;this.updateWorldMatrix(!0,!1),F0.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?Lr.lookAt(F0,Af,this.up):Lr.lookAt(Af,F0,this.up),this.quaternion.setFromRotationMatrix(Lr),s&&(Lr.extractRotation(s.matrixWorld),ca.setFromRotationMatrix(Lr),this.quaternion.premultiply(ca.invert()))}add(t){if(arguments.length>1){for(let n=0;n1){for(let i=0;i0&&(s.userData=this.userData),s.layers=this.layers.mask,s.matrix=this.matrix.toArray(),s.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(s.matrixAutoUpdate=!1),this.isInstancedMesh&&(s.type="InstancedMesh",s.count=this.count,s.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(s.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(s.type="BatchedMesh",s.perObjectFrustumCulled=this.perObjectFrustumCulled,s.sortObjects=this.sortObjects,s.drawRanges=this._drawRanges,s.reservedRanges=this._reservedRanges,s.visibility=this._visibility,s.active=this._active,s.bounds=this._bounds.map(u=>({boxInitialized:u.boxInitialized,boxMin:u.box.min.toArray(),boxMax:u.box.max.toArray(),sphereInitialized:u.sphereInitialized,sphereRadius:u.sphere.radius,sphereCenter:u.sphere.center.toArray()})),s.maxGeometryCount=this._maxGeometryCount,s.maxVertexCount=this._maxVertexCount,s.maxIndexCount=this._maxIndexCount,s.geometryInitialized=this._geometryInitialized,s.geometryCount=this._geometryCount,s.matricesTexture=this._matricesTexture.toJSON(t),this.boundingSphere!==null&&(s.boundingSphere={center:s.boundingSphere.center.toArray(),radius:s.boundingSphere.radius}),this.boundingBox!==null&&(s.boundingBox={min:s.boundingBox.min.toArray(),max:s.boundingBox.max.toArray()}));function o(u,c){return u[c.uuid]===void 0&&(u[c.uuid]=c.toJSON(t)),c.uuid}if(this.isScene)this.background&&(this.background.isColor?s.background=this.background.toJSON():this.background.isTexture&&(s.background=this.background.toJSON(t).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(s.environment=this.environment.toJSON(t).uuid);else if(this.isMesh||this.isLine||this.isPoints){s.geometry=o(t.geometries,this.geometry);let u=this.geometry.parameters;if(u!==void 0&&u.shapes!==void 0){let c=u.shapes;if(Array.isArray(c))for(let f=0,l=c.length;f0){s.children=[];for(let u=0;u0){s.animations=[];for(let u=0;u0&&(i.geometries=u),c.length>0&&(i.materials=c),f.length>0&&(i.textures=f),l.length>0&&(i.images=l),h.length>0&&(i.shapes=h),d.length>0&&(i.skeletons=d),x.length>0&&(i.animations=x),m.length>0&&(i.nodes=m)}return i.object=s,i;function a(u){let c=[];for(let f in u){let l=u[f];delete l.metadata,c.push(l)}return c}}clone(t){return new this.constructor().copy(this,t)}copy(t,n=!0){if(this.name=t.name,this.up.copy(t.up),this.position.copy(t.position),this.rotation.order=t.rotation.order,this.quaternion.copy(t.quaternion),this.scale.copy(t.scale),this.matrix.copy(t.matrix),this.matrixWorld.copy(t.matrixWorld),this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrixWorldAutoUpdate=t.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=t.matrixWorldNeedsUpdate,this.layers.mask=t.layers.mask,this.visible=t.visible,this.castShadow=t.castShadow,this.receiveShadow=t.receiveShadow,this.frustumCulled=t.frustumCulled,this.renderOrder=t.renderOrder,this.animations=t.animations.slice(),this.userData=JSON.parse(JSON.stringify(t.userData)),n===!0)for(let i=0;i0?i.multiplyScalar(1/Math.sqrt(s)):i.set(0,0,0)}static getBarycoord(e,t,n,i,s){Yi.subVectors(i,t),Nr.subVectors(n,t),Nd.subVectors(e,t);let o=Yi.dot(Yi),a=Yi.dot(Nr),u=Yi.dot(Nd),c=Nr.dot(Nr),f=Nr.dot(Nd),l=o*c-a*a;if(l===0)return s.set(0,0,0),null;let h=1/l,d=(c*u-a*f)*h,x=(o*f-a*u)*h;return s.set(1-d-x,x,d)}static containsPoint(e,t,n,i){return this.getBarycoord(e,t,n,i,Ur)===null?!1:Ur.x>=0&&Ur.y>=0&&Ur.x+Ur.y<=1}static getInterpolation(e,t,n,i,s,o,a,u){return this.getBarycoord(e,t,n,i,Ur)===null?(u.x=0,u.y=0,"z"in u&&(u.z=0),"w"in u&&(u.w=0),null):(u.setScalar(0),u.addScaledVector(s,Ur.x),u.addScaledVector(o,Ur.y),u.addScaledVector(a,Ur.z),u)}static isFrontFacing(e,t,n,i){return Yi.subVectors(n,t),Nr.subVectors(e,t),Yi.cross(Nr).dot(i)<0}set(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this}setFromPointsAndIndices(e,t,n,i){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[i]),this}setFromAttributeAndIndices(e,t,n,i){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,n),this.c.fromBufferAttribute(e,i),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return Yi.subVectors(this.c,this.b),Nr.subVectors(this.a,this.b),Yi.cross(Nr).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return r.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return r.getBarycoord(e,this.a,this.b,this.c,t)}getInterpolation(e,t,n,i,s){return r.getInterpolation(e,this.a,this.b,this.c,t,n,i,s)}containsPoint(e){return r.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return r.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){let n=this.a,i=this.b,s=this.c,o,a;la.subVectors(i,n),ha.subVectors(s,n),Ud.subVectors(e,n);let u=la.dot(Ud),c=ha.dot(Ud);if(u<=0&&c<=0)return t.copy(n);Vd.subVectors(e,i);let f=la.dot(Vd),l=ha.dot(Vd);if(f>=0&&l<=f)return t.copy(i);let h=u*l-f*c;if(h<=0&&u>=0&&f<=0)return o=u/(u-f),t.copy(n).addScaledVector(la,o);zd.subVectors(e,s);let d=la.dot(zd),x=ha.dot(zd);if(x>=0&&d<=x)return t.copy(s);let m=d*c-u*x;if(m<=0&&c>=0&&x<=0)return a=c/(c-x),t.copy(n).addScaledVector(ha,a);let D=f*x-d*l;if(D<=0&&l-f>=0&&d-x>=0)return dC.subVectors(s,i),a=(l-f)/(l-f+(d-x)),t.copy(i).addScaledVector(dC,a);let p=1/(D+m+h);return o=m*p,a=h*p,t.copy(n).addScaledVector(la,o).addScaledVector(ha,a)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}},fg={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},xs={h:0,s:0,l:0},wf={h:0,s:0,l:0};function Hd(r,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?r+(e-r)*6*t:t<1/2?e:t<2/3?r+(e-r)*6*(2/3-t):r}var st=class{constructor(e,t,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,n)}set(e,t,n){if(t===void 0&&n===void 0){let i=e;i&&i.isColor?this.copy(i):typeof i=="number"?this.setHex(i):typeof i=="string"&&this.setStyle(i)}else this.setRGB(e,t,n);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=ki){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,qt.toWorkingColorSpace(this,t),this}setRGB(e,t,n,i=qt.workingColorSpace){return this.r=e,this.g=t,this.b=n,qt.toWorkingColorSpace(this,i),this}setHSL(e,t,n,i=qt.workingColorSpace){if(e=GD(e,1),t=Pn(t,0,1),n=Pn(n,0,1),t===0)this.r=this.g=this.b=n;else{let s=n<=.5?n*(1+t):n+t-n*t,o=2*n-s;this.r=Hd(o,s,e+1/3),this.g=Hd(o,s,e),this.b=Hd(o,s,e-1/3)}return qt.toWorkingColorSpace(this,i),this}setStyle(e,t=ki){function n(s){s!==void 0&&parseFloat(s)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let i;if(i=/^(\w+)\(([^\)]*)\)/.exec(e)){let s,o=i[1],a=i[2];switch(o){case"rgb":case"rgba":if(s=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return n(s[4]),this.setRGB(Math.min(255,parseInt(s[1],10))/255,Math.min(255,parseInt(s[2],10))/255,Math.min(255,parseInt(s[3],10))/255,t);if(s=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return n(s[4]),this.setRGB(Math.min(100,parseInt(s[1],10))/100,Math.min(100,parseInt(s[2],10))/100,Math.min(100,parseInt(s[3],10))/100,t);break;case"hsl":case"hsla":if(s=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return n(s[4]),this.setHSL(parseFloat(s[1])/360,parseFloat(s[2])/100,parseFloat(s[3])/100,t);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(i=/^\#([A-Fa-f\d]+)$/.exec(e)){let s=i[1],o=s.length;if(o===3)return this.setRGB(parseInt(s.charAt(0),16)/15,parseInt(s.charAt(1),16)/15,parseInt(s.charAt(2),16)/15,t);if(o===6)return this.setHex(parseInt(s,16),t);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=ki){let n=fg[e.toLowerCase()];return n!==void 0?this.setHex(n,t):console.warn("THREE.Color: Unknown color "+e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=ba(e.r),this.g=ba(e.g),this.b=ba(e.b),this}copyLinearToSRGB(e){return this.r=Sd(e.r),this.g=Sd(e.g),this.b=Sd(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=ki){return qt.fromWorkingColorSpace(jn.copy(this),e),Math.round(Pn(jn.r*255,0,255))*65536+Math.round(Pn(jn.g*255,0,255))*256+Math.round(Pn(jn.b*255,0,255))}getHexString(e=ki){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=qt.workingColorSpace){qt.fromWorkingColorSpace(jn.copy(this),t);let n=jn.r,i=jn.g,s=jn.b,o=Math.max(n,i,s),a=Math.min(n,i,s),u,c,f=(a+o)/2;if(a===o)u=0,c=0;else{let l=o-a;switch(c=f<=.5?l/(o+a):l/(2-o-a),o){case n:u=(i-s)/l+(i0!=e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(let t in e){let n=e[t];if(n===void 0){console.warn(`THREE.Material: parameter '${t}' has value of undefined.`);continue}let i=this[t];if(i===void 0){console.warn(`THREE.Material: '${t}' is not a property of THREE.${this.type}.`);continue}i&&i.isColor?i.set(n):i&&i.isVector3&&n&&n.isVector3?i.copy(n):this[t]=n}}toJSON(e){let t=e===void 0||typeof e=="string";t&&(e={textures:{},images:{}});let n={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};n.uuid=this.uuid,n.type=this.type,this.name!==""&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),this.roughness!==void 0&&(n.roughness=this.roughness),this.metalness!==void 0&&(n.metalness=this.metalness),this.sheen!==void 0&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity!==void 0&&this.emissiveIntensity!==1&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(n.shininess=this.shininess),this.clearcoat!==void 0&&(n.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.dispersion!==void 0&&(n.dispersion=this.dispersion),this.iridescence!==void 0&&(n.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(n.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(n.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(n.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(n.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(n.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(e).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(e).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(e).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(e).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(e).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(n.combine=this.combine)),this.envMapRotation!==void 0&&(n.envMapRotation=this.envMapRotation.toArray()),this.envMapIntensity!==void 0&&(n.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(n.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(n.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(n.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(n.size=this.size),this.shadowSide!==null&&(n.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==va&&(n.blending=this.blending),this.side!==Cr&&(n.side=this.side),this.vertexColors===!0&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),this.transparent===!0&&(n.transparent=!0),this.blendSrc!==tD&&(n.blendSrc=this.blendSrc),this.blendDst!==nD&&(n.blendDst=this.blendDst),this.blendEquation!==io&&(n.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(n.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(n.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(n.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(n.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(n.blendAlpha=this.blendAlpha),this.depthFunc!==Xf&&(n.depthFunc=this.depthFunc),this.depthTest===!1&&(n.depthTest=this.depthTest),this.depthWrite===!1&&(n.depthWrite=this.depthWrite),this.colorWrite===!1&&(n.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(n.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==J3&&(n.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(n.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(n.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==ia&&(n.stencilFail=this.stencilFail),this.stencilZFail!==ia&&(n.stencilZFail=this.stencilZFail),this.stencilZPass!==ia&&(n.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(n.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(n.rotation=this.rotation),this.polygonOffset===!0&&(n.polygonOffset=!0),this.polygonOffsetFactor!==0&&(n.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(n.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(n.linewidth=this.linewidth),this.dashSize!==void 0&&(n.dashSize=this.dashSize),this.gapSize!==void 0&&(n.gapSize=this.gapSize),this.scale!==void 0&&(n.scale=this.scale),this.dithering===!0&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),this.alphaHash===!0&&(n.alphaHash=!0),this.alphaToCoverage===!0&&(n.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(n.premultipliedAlpha=!0),this.forceSinglePass===!0&&(n.forceSinglePass=!0),this.wireframe===!0&&(n.wireframe=!0),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(n.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(n.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(n.flatShading=!0),this.visible===!1&&(n.visible=!1),this.toneMapped===!1&&(n.toneMapped=!1),this.fog===!1&&(n.fog=!1),Object.keys(this.userData).length>0&&(n.userData=this.userData);function i(s){let o=[];for(let a in s){let u=s[a];delete u.metadata,o.push(u)}return o}if(t){let s=i(e.textures),o=i(e.images);s.length>0&&(n.textures=s),o.length>0&&(n.images=o)}return n}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;let t=e.clippingPlanes,n=null;if(t!==null){let i=t.length;n=new Array(i);for(let s=0;s!==i;++s)n[s]=t[s].clone()}return this.clippingPlanes=n,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){e===!0&&this.version++}},tl=class extends Oi{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new st(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new ao,this.combine=zD,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}};var Fn=new z,Sf=new ot,Ii=class{constructor(e,t,n=!1){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=e,this.itemSize=t,this.count=e!==void 0?e.length/t:0,this.normalized=n,this.usage=Q3,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=gs,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return _y("THREE.BufferAttribute: updateRange() is deprecated and will be removed in r169. Use addUpdateRange() instead."),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,n){e*=this.itemSize,n*=t.itemSize;for(let i=0,s=this.itemSize;i0&&(e.userData=this.userData),this.parameters!==void 0){let u=this.parameters;for(let c in u)u[c]!==void 0&&(e[c]=u[c]);return e}e.data={attributes:{}};let t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});let n=this.attributes;for(let u in n){let c=n[u];e.data.attributes[u]=c.toJSON(e.data)}let i={},s=!1;for(let u in this.morphAttributes){let c=this.morphAttributes[u],f=[];for(let l=0,h=c.length;l0&&(i[u]=f,s=!0)}s&&(e.data.morphAttributes=i,e.data.morphTargetsRelative=this.morphTargetsRelative);let o=this.groups;o.length>0&&(e.data.groups=JSON.parse(JSON.stringify(o)));let a=this.boundingSphere;return a!==null&&(e.data.boundingSphere={center:a.center.toArray(),radius:a.radius}),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;let t={};this.name=e.name;let n=e.index;n!==null&&this.setIndex(n.clone(t));let i=e.attributes;for(let c in i){let f=i[c];this.setAttribute(c,f.clone(t))}let s=e.morphAttributes;for(let c in s){let f=[],l=s[c];for(let h=0,d=l.length;h0){let i=t[n[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let s=0,o=i.length;s(e.far-e.near)**2))&&(DC.copy(s).invert(),Js.copy(e.ray).applyMatrix4(DC),!(n.boundingBox!==null&&Js.intersectsBox(n.boundingBox)===!1)&&this._computeIntersections(e,t,Js)))}_computeIntersections(e,t,n){let i,s=this.geometry,o=this.material,a=s.index,u=s.attributes.position,c=s.attributes.uv,f=s.attributes.uv1,l=s.attributes.normal,h=s.groups,d=s.drawRange;if(a!==null)if(Array.isArray(o))for(let x=0,m=h.length;xt.far?null:{distance:c,point:Of.clone(),object:r}}function Lf(r,e,t,n,i,s,o,a,u,c){r.getVertexPosition(a,Da),r.getVertexPosition(u,pa),r.getVertexPosition(c,xa);let f=Ry(r,e,t,n,Da,pa,xa,Rf);if(f){i&&(kf.fromBufferAttribute(i,a),Pf.fromBufferAttribute(i,u),If.fromBufferAttribute(i,c),f.uv=Fa.getInterpolation(Rf,Da,pa,xa,kf,Pf,If,new ot)),s&&(kf.fromBufferAttribute(s,a),Pf.fromBufferAttribute(s,u),If.fromBufferAttribute(s,c),f.uv1=Fa.getInterpolation(Rf,Da,pa,xa,kf,Pf,If,new ot)),o&&(xC.fromBufferAttribute(o,a),mC.fromBufferAttribute(o,u),CC.fromBufferAttribute(o,c),f.normal=Fa.getInterpolation(Rf,Da,pa,xa,xC,mC,CC,new z),f.normal.dot(n.direction)>0&&f.normal.multiplyScalar(-1));let l={a,b:u,c,normal:new z,materialIndex:0};Fa.getNormal(Da,pa,xa,l.normal),f.face=l}return f}var I0=class r extends Mn{constructor(e=1,t=1,n=1,i=1,s=1,o=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:n,widthSegments:i,heightSegments:s,depthSegments:o};let a=this;i=Math.floor(i),s=Math.floor(s),o=Math.floor(o);let u=[],c=[],f=[],l=[],h=0,d=0;x("z","y","x",-1,-1,n,t,e,o,s,0),x("z","y","x",1,-1,n,t,-e,o,s,1),x("x","z","y",1,1,e,n,t,i,o,2),x("x","z","y",1,-1,e,n,-t,i,o,3),x("x","y","z",1,-1,e,t,n,i,s,4),x("x","y","z",-1,-1,e,t,-n,i,s,5),this.setIndex(u),this.setAttribute("position",new _n(c,3)),this.setAttribute("normal",new _n(f,3)),this.setAttribute("uv",new _n(l,2));function x(m,D,p,C,g,E,y,v,b,B,F){let _=E/b,M=y/B,R=E/2,P=y/2,H=v/2,G=b+1,ie=B+1,ce=0,Y=0,J=new z;for(let De=0;De0?1:-1,f.push(J.x,J.y,J.z),l.push(Ae/b),l.push(1-De/B),ce+=1}}for(let De=0;De0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;let n={};for(let i in this.extensions)this.extensions[i]===!0&&(n[i]=!0);return Object.keys(n).length>0&&(t.extensions=n),t}},rl=class extends Ki{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new ut,this.projectionMatrix=new ut,this.projectionMatrixInverse=new ut,this.coordinateSystem=jr}copy(e,t){return super.copy(e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){return super.getWorldDirection(e).negate()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}},ms=new z,gC=new ot,EC=new ot,Wn=class extends rl{constructor(e=50,t=1,n=.1,i=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=n,this.far=i,this.focus=10,this.aspect=t,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=e.view===null?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){let t=.5*this.getFilmHeight()/e;this.fov=T0*2*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){let e=Math.tan(B0*.5*this.fov);return .5*this.getFilmHeight()/e}getEffectiveFOV(){return T0*2*Math.atan(Math.tan(B0*.5*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}getViewBounds(e,t,n){ms.set(-1,-1,.5).applyMatrix4(this.projectionMatrixInverse),t.set(ms.x,ms.y).multiplyScalar(-e/ms.z),ms.set(1,1,.5).applyMatrix4(this.projectionMatrixInverse),n.set(ms.x,ms.y).multiplyScalar(-e/ms.z)}getViewSize(e,t){return this.getViewBounds(e,gC,EC),t.subVectors(EC,gC)}setViewOffset(e,t,n,i,s,o){this.aspect=e/t,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=i,this.view.width=s,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){let e=this.near,t=e*Math.tan(B0*.5*this.fov)/this.zoom,n=2*t,i=this.aspect*n,s=-.5*i,o=this.view;if(this.view!==null&&this.view.enabled){let u=o.fullWidth,c=o.fullHeight;s+=o.offsetX*i/u,t-=o.offsetY*n/c,i*=o.width/u,n*=o.height/c}let a=this.filmOffset;a!==0&&(s+=e*a/this.getFilmWidth()),this.projectionMatrix.makePerspective(s,s+i,t,t-n,e,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){let t=super.toJSON(e);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,this.view!==null&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}},ma=-90,Ca=1,cD=class extends Ki{constructor(e,t,n){super(),this.type="CubeCamera",this.renderTarget=n,this.coordinateSystem=null,this.activeMipmapLevel=0;let i=new Wn(ma,Ca,e,t);i.layers=this.layers,this.add(i);let s=new Wn(ma,Ca,e,t);s.layers=this.layers,this.add(s);let o=new Wn(ma,Ca,e,t);o.layers=this.layers,this.add(o);let a=new Wn(ma,Ca,e,t);a.layers=this.layers,this.add(a);let u=new Wn(ma,Ca,e,t);u.layers=this.layers,this.add(u);let c=new Wn(ma,Ca,e,t);c.layers=this.layers,this.add(c)}updateCoordinateSystem(){let e=this.coordinateSystem,t=this.children.concat(),[n,i,s,o,a,u]=t;for(let c of t)this.remove(c);if(e===jr)n.up.set(0,1,0),n.lookAt(1,0,0),i.up.set(0,1,0),i.lookAt(-1,0,0),s.up.set(0,0,-1),s.lookAt(0,1,0),o.up.set(0,0,1),o.lookAt(0,-1,0),a.up.set(0,1,0),a.lookAt(0,0,1),u.up.set(0,1,0),u.lookAt(0,0,-1);else if(e===Jf)n.up.set(0,-1,0),n.lookAt(-1,0,0),i.up.set(0,-1,0),i.lookAt(1,0,0),s.up.set(0,0,1),s.lookAt(0,1,0),o.up.set(0,0,-1),o.lookAt(0,-1,0),a.up.set(0,-1,0),a.lookAt(0,0,1),u.up.set(0,-1,0),u.lookAt(0,0,-1);else throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);for(let c of t)this.add(c),c.updateMatrixWorld()}update(e,t){this.parent===null&&this.updateMatrixWorld();let{renderTarget:n,activeMipmapLevel:i}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());let[s,o,a,u,c,f]=this.children,l=e.getRenderTarget(),h=e.getActiveCubeFace(),d=e.getActiveMipmapLevel(),x=e.xr.enabled;e.xr.enabled=!1;let m=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,e.setRenderTarget(n,0,i),e.render(t,s),e.setRenderTarget(n,1,i),e.render(t,o),e.setRenderTarget(n,2,i),e.render(t,a),e.setRenderTarget(n,3,i),e.render(t,u),e.setRenderTarget(n,4,i),e.render(t,c),n.texture.generateMipmaps=m,e.setRenderTarget(n,5,i),e.render(t,f),e.setRenderTarget(l,h,d),e.xr.enabled=x,n.texture.needsPMREMUpdate=!0}},sl=class extends bs{constructor(e,t,n,i,s,o,a,u,c,f){e=e!==void 0?e:[],t=t!==void 0?t:Aa,super(e,t,n,i,s,o,a,u,c,f),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}},fD=class extends Wr{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;let n={width:e,height:e,depth:1},i=[n,n,n,n,n,n];this.texture=new sl(i,t.mapping,t.wrapS,t.wrapT,t.magFilter,t.minFilter,t.format,t.type,t.anisotropy,t.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=t.generateMipmaps!==void 0?t.generateMipmaps:!1,this.texture.minFilter=t.minFilter!==void 0?t.minFilter:$i}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;let n={uniforms:{tEquirect:{value:null}},vertexShader:` + + varying vec3 vWorldDirection; + + vec3 transformDirection( in vec3 dir, in mat4 matrix ) { + + return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); + + } + + void main() { + + vWorldDirection = transformDirection( position, modelMatrix ); + + #include + #include + + } + `,fragmentShader:` + + uniform sampler2D tEquirect; + + varying vec3 vWorldDirection; + + #include + + void main() { + + vec3 direction = normalize( vWorldDirection ); + + vec2 sampleUV = equirectUv( direction ); + + gl_FragColor = texture2D( tEquirect, sampleUV ); + + } + `},i=new I0(5,5,5),s=new Er({name:"CubemapFromEquirect",uniforms:Ta(n.uniforms),vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,side:ai,blending:Es});s.uniforms.tEquirect.value=t;let o=new oi(i,s),a=t.minFilter;return t.minFilter===oo&&(t.minFilter=$i),new cD(1,10,this).update(e,o),t.minFilter=a,o.geometry.dispose(),o.material.dispose(),this}clear(e,t,n,i){let s=e.getRenderTarget();for(let o=0;o<6;o++)e.setRenderTarget(this,o),e.clear(t,n,i);e.setRenderTarget(s)}},Wd=new z,Vy=new z,zy=new gt,Hr=class{constructor(e=new z(1,0,0),t=0){this.isPlane=!0,this.normal=e,this.constant=t}set(e,t){return this.normal.copy(e),this.constant=t,this}setComponents(e,t,n,i){return this.normal.set(e,t,n),this.constant=i,this}setFromNormalAndCoplanarPoint(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}setFromCoplanarPoints(e,t,n){let i=Wd.subVectors(n,t).cross(Vy.subVectors(e,t)).normalize();return this.setFromNormalAndCoplanarPoint(i,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){let e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,t){return t.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}intersectLine(e,t){let n=e.delta(Wd),i=this.normal.dot(n);if(i===0)return this.distanceToPoint(e.start)===0?t.copy(e.start):null;let s=-(e.start.dot(this.normal)+this.constant)/i;return s<0||s>1?null:t.copy(e.start).addScaledVector(n,s)}intersectsLine(e){let t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){let n=t||zy.getNormalMatrix(e),i=this.coplanarPoint(Wd).applyMatrix4(e),s=this.normal.applyMatrix3(n).normalize();return this.constant=-i.dot(s),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}},Qs=new qr,Nf=new z,R0=class{constructor(e=new Hr,t=new Hr,n=new Hr,i=new Hr,s=new Hr,o=new Hr){this.planes=[e,t,n,i,s,o]}set(e,t,n,i,s,o){let a=this.planes;return a[0].copy(e),a[1].copy(t),a[2].copy(n),a[3].copy(i),a[4].copy(s),a[5].copy(o),this}copy(e){let t=this.planes;for(let n=0;n<6;n++)t[n].copy(e.planes[n]);return this}setFromProjectionMatrix(e,t=jr){let n=this.planes,i=e.elements,s=i[0],o=i[1],a=i[2],u=i[3],c=i[4],f=i[5],l=i[6],h=i[7],d=i[8],x=i[9],m=i[10],D=i[11],p=i[12],C=i[13],g=i[14],E=i[15];if(n[0].setComponents(u-s,h-c,D-d,E-p).normalize(),n[1].setComponents(u+s,h+c,D+d,E+p).normalize(),n[2].setComponents(u+o,h+f,D+x,E+C).normalize(),n[3].setComponents(u-o,h-f,D-x,E-C).normalize(),n[4].setComponents(u-a,h-l,D-m,E-g).normalize(),t===jr)n[5].setComponents(u+a,h+l,D+m,E+g).normalize();else if(t===Jf)n[5].setComponents(a,l,m,g).normalize();else throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+t);return this}intersectsObject(e){if(e.boundingSphere!==void 0)e.boundingSphere===null&&e.computeBoundingSphere(),Qs.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{let t=e.geometry;t.boundingSphere===null&&t.computeBoundingSphere(),Qs.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(Qs)}intersectsSprite(e){return Qs.center.set(0,0,0),Qs.radius=.7071067811865476,Qs.applyMatrix4(e.matrixWorld),this.intersectsSphere(Qs)}intersectsSphere(e){let t=this.planes,n=e.center,i=-e.radius;for(let s=0;s<6;s++)if(t[s].distanceToPoint(n)0?e.max.x:e.min.x,Nf.y=i.normal.y>0?e.max.y:e.min.y,Nf.z=i.normal.z>0?e.max.z:e.min.z,i.distanceToPoint(Nf)<0)return!1}return!0}containsPoint(e){let t=this.planes;for(let n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}};function hg(){let r=null,e=!1,t=null,n=null;function i(s,o){t(s,o),n=r.requestAnimationFrame(i)}return{start:function(){e!==!0&&t!==null&&(n=r.requestAnimationFrame(i),e=!0)},stop:function(){r.cancelAnimationFrame(n),e=!1},setAnimationLoop:function(s){t=s},setContext:function(s){r=s}}}function Hy(r){let e=new WeakMap;function t(a,u){let c=a.array,f=a.usage,l=c.byteLength,h=r.createBuffer();r.bindBuffer(u,h),r.bufferData(u,c,f),a.onUploadCallback();let d;if(c instanceof Float32Array)d=r.FLOAT;else if(c instanceof Uint16Array)a.isFloat16BufferAttribute?d=r.HALF_FLOAT:d=r.UNSIGNED_SHORT;else if(c instanceof Int16Array)d=r.SHORT;else if(c instanceof Uint32Array)d=r.UNSIGNED_INT;else if(c instanceof Int32Array)d=r.INT;else if(c instanceof Int8Array)d=r.BYTE;else if(c instanceof Uint8Array)d=r.UNSIGNED_BYTE;else if(c instanceof Uint8ClampedArray)d=r.UNSIGNED_BYTE;else throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+c);return{buffer:h,type:d,bytesPerElement:c.BYTES_PER_ELEMENT,version:a.version,size:l}}function n(a,u,c){let f=u.array,l=u._updateRange,h=u.updateRanges;if(r.bindBuffer(c,a),l.count===-1&&h.length===0&&r.bufferSubData(c,0,f),h.length!==0){for(let d=0,x=h.length;d 0 + vec4 plane; + #ifdef ALPHA_TO_COVERAGE + float distanceToPlane, distanceGradient; + float clipOpacity = 1.0; + #pragma unroll_loop_start + for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) { + plane = clippingPlanes[ i ]; + distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w; + distanceGradient = fwidth( distanceToPlane ) / 2.0; + clipOpacity *= smoothstep( - distanceGradient, distanceGradient, distanceToPlane ); + if ( clipOpacity == 0.0 ) discard; + } + #pragma unroll_loop_end + #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES + float unionClipOpacity = 1.0; + #pragma unroll_loop_start + for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) { + plane = clippingPlanes[ i ]; + distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w; + distanceGradient = fwidth( distanceToPlane ) / 2.0; + unionClipOpacity *= 1.0 - smoothstep( - distanceGradient, distanceGradient, distanceToPlane ); + } + #pragma unroll_loop_end + clipOpacity *= 1.0 - unionClipOpacity; + #endif + diffuseColor.a *= clipOpacity; + if ( diffuseColor.a == 0.0 ) discard; + #else + #pragma unroll_loop_start + for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) { + plane = clippingPlanes[ i ]; + if ( dot( vClipPosition, plane.xyz ) > plane.w ) discard; + } + #pragma unroll_loop_end + #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES + bool clipped = true; + #pragma unroll_loop_start + for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) { + plane = clippingPlanes[ i ]; + clipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped; + } + #pragma unroll_loop_end + if ( clipped ) discard; + #endif + #endif +#endif`,sb=`#if NUM_CLIPPING_PLANES > 0 + varying vec3 vClipPosition; + uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ]; +#endif`,ob=`#if NUM_CLIPPING_PLANES > 0 + varying vec3 vClipPosition; +#endif`,ab=`#if NUM_CLIPPING_PLANES > 0 + vClipPosition = - mvPosition.xyz; +#endif`,ub=`#if defined( USE_COLOR_ALPHA ) + diffuseColor *= vColor; +#elif defined( USE_COLOR ) + diffuseColor.rgb *= vColor; +#endif`,cb=`#if defined( USE_COLOR_ALPHA ) + varying vec4 vColor; +#elif defined( USE_COLOR ) + varying vec3 vColor; +#endif`,fb=`#if defined( USE_COLOR_ALPHA ) + varying vec4 vColor; +#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) + varying vec3 vColor; +#endif`,lb=`#if defined( USE_COLOR_ALPHA ) + vColor = vec4( 1.0 ); +#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) + vColor = vec3( 1.0 ); +#endif +#ifdef USE_COLOR + vColor *= color; +#endif +#ifdef USE_INSTANCING_COLOR + vColor.xyz *= instanceColor.xyz; +#endif`,hb=`#define PI 3.141592653589793 +#define PI2 6.283185307179586 +#define PI_HALF 1.5707963267948966 +#define RECIPROCAL_PI 0.3183098861837907 +#define RECIPROCAL_PI2 0.15915494309189535 +#define EPSILON 1e-6 +#ifndef saturate +#define saturate( a ) clamp( a, 0.0, 1.0 ) +#endif +#define whiteComplement( a ) ( 1.0 - saturate( a ) ) +float pow2( const in float x ) { return x*x; } +vec3 pow2( const in vec3 x ) { return x*x; } +float pow3( const in float x ) { return x*x*x; } +float pow4( const in float x ) { float x2 = x*x; return x2*x2; } +float max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); } +float average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); } +highp float rand( const in vec2 uv ) { + const highp float a = 12.9898, b = 78.233, c = 43758.5453; + highp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI ); + return fract( sin( sn ) * c ); +} +#ifdef HIGH_PRECISION + float precisionSafeLength( vec3 v ) { return length( v ); } +#else + float precisionSafeLength( vec3 v ) { + float maxComponent = max3( abs( v ) ); + return length( v / maxComponent ) * maxComponent; + } +#endif +struct IncidentLight { + vec3 color; + vec3 direction; + bool visible; +}; +struct ReflectedLight { + vec3 directDiffuse; + vec3 directSpecular; + vec3 indirectDiffuse; + vec3 indirectSpecular; +}; +#ifdef USE_ALPHAHASH + varying vec3 vPosition; +#endif +vec3 transformDirection( in vec3 dir, in mat4 matrix ) { + return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); +} +vec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) { + return normalize( ( vec4( dir, 0.0 ) * matrix ).xyz ); +} +mat3 transposeMat3( const in mat3 m ) { + mat3 tmp; + tmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x ); + tmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y ); + tmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z ); + return tmp; +} +float luminance( const in vec3 rgb ) { + const vec3 weights = vec3( 0.2126729, 0.7151522, 0.0721750 ); + return dot( weights, rgb ); +} +bool isPerspectiveMatrix( mat4 m ) { + return m[ 2 ][ 3 ] == - 1.0; +} +vec2 equirectUv( in vec3 dir ) { + float u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5; + float v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5; + return vec2( u, v ); +} +vec3 BRDF_Lambert( const in vec3 diffuseColor ) { + return RECIPROCAL_PI * diffuseColor; +} +vec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) { + float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH ); + return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel ); +} +float F_Schlick( const in float f0, const in float f90, const in float dotVH ) { + float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH ); + return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel ); +} // validated`,db=`#ifdef ENVMAP_TYPE_CUBE_UV + #define cubeUV_minMipLevel 4.0 + #define cubeUV_minTileSize 16.0 + float getFace( vec3 direction ) { + vec3 absDirection = abs( direction ); + float face = - 1.0; + if ( absDirection.x > absDirection.z ) { + if ( absDirection.x > absDirection.y ) + face = direction.x > 0.0 ? 0.0 : 3.0; + else + face = direction.y > 0.0 ? 1.0 : 4.0; + } else { + if ( absDirection.z > absDirection.y ) + face = direction.z > 0.0 ? 2.0 : 5.0; + else + face = direction.y > 0.0 ? 1.0 : 4.0; + } + return face; + } + vec2 getUV( vec3 direction, float face ) { + vec2 uv; + if ( face == 0.0 ) { + uv = vec2( direction.z, direction.y ) / abs( direction.x ); + } else if ( face == 1.0 ) { + uv = vec2( - direction.x, - direction.z ) / abs( direction.y ); + } else if ( face == 2.0 ) { + uv = vec2( - direction.x, direction.y ) / abs( direction.z ); + } else if ( face == 3.0 ) { + uv = vec2( - direction.z, direction.y ) / abs( direction.x ); + } else if ( face == 4.0 ) { + uv = vec2( - direction.x, direction.z ) / abs( direction.y ); + } else { + uv = vec2( direction.x, direction.y ) / abs( direction.z ); + } + return 0.5 * ( uv + 1.0 ); + } + vec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) { + float face = getFace( direction ); + float filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 ); + mipInt = max( mipInt, cubeUV_minMipLevel ); + float faceSize = exp2( mipInt ); + highp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0; + if ( face > 2.0 ) { + uv.y += faceSize; + face -= 3.0; + } + uv.x += face * faceSize; + uv.x += filterInt * 3.0 * cubeUV_minTileSize; + uv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize ); + uv.x *= CUBEUV_TEXEL_WIDTH; + uv.y *= CUBEUV_TEXEL_HEIGHT; + #ifdef texture2DGradEXT + return texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb; + #else + return texture2D( envMap, uv ).rgb; + #endif + } + #define cubeUV_r0 1.0 + #define cubeUV_m0 - 2.0 + #define cubeUV_r1 0.8 + #define cubeUV_m1 - 1.0 + #define cubeUV_r4 0.4 + #define cubeUV_m4 2.0 + #define cubeUV_r5 0.305 + #define cubeUV_m5 3.0 + #define cubeUV_r6 0.21 + #define cubeUV_m6 4.0 + float roughnessToMip( float roughness ) { + float mip = 0.0; + if ( roughness >= cubeUV_r1 ) { + mip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0; + } else if ( roughness >= cubeUV_r4 ) { + mip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1; + } else if ( roughness >= cubeUV_r5 ) { + mip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4; + } else if ( roughness >= cubeUV_r6 ) { + mip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5; + } else { + mip = - 2.0 * log2( 1.16 * roughness ); } + return mip; + } + vec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) { + float mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP ); + float mipF = fract( mip ); + float mipInt = floor( mip ); + vec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt ); + if ( mipF == 0.0 ) { + return vec4( color0, 1.0 ); + } else { + vec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 ); + return vec4( mix( color0, color1, mipF ), 1.0 ); + } + } +#endif`,Db=`vec3 transformedNormal = objectNormal; +#ifdef USE_TANGENT + vec3 transformedTangent = objectTangent; +#endif +#ifdef USE_BATCHING + mat3 bm = mat3( batchingMatrix ); + transformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) ); + transformedNormal = bm * transformedNormal; + #ifdef USE_TANGENT + transformedTangent = bm * transformedTangent; + #endif +#endif +#ifdef USE_INSTANCING + mat3 im = mat3( instanceMatrix ); + transformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) ); + transformedNormal = im * transformedNormal; + #ifdef USE_TANGENT + transformedTangent = im * transformedTangent; + #endif +#endif +transformedNormal = normalMatrix * transformedNormal; +#ifdef FLIP_SIDED + transformedNormal = - transformedNormal; +#endif +#ifdef USE_TANGENT + transformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz; + #ifdef FLIP_SIDED + transformedTangent = - transformedTangent; + #endif +#endif`,pb=`#ifdef USE_DISPLACEMENTMAP + uniform sampler2D displacementMap; + uniform float displacementScale; + uniform float displacementBias; +#endif`,xb=`#ifdef USE_DISPLACEMENTMAP + transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias ); +#endif`,mb=`#ifdef USE_EMISSIVEMAP + vec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv ); + totalEmissiveRadiance *= emissiveColor.rgb; +#endif`,Cb=`#ifdef USE_EMISSIVEMAP + uniform sampler2D emissiveMap; +#endif`,gb="gl_FragColor = linearToOutputTexel( gl_FragColor );",Eb=` +const mat3 LINEAR_SRGB_TO_LINEAR_DISPLAY_P3 = mat3( + vec3( 0.8224621, 0.177538, 0.0 ), + vec3( 0.0331941, 0.9668058, 0.0 ), + vec3( 0.0170827, 0.0723974, 0.9105199 ) +); +const mat3 LINEAR_DISPLAY_P3_TO_LINEAR_SRGB = mat3( + vec3( 1.2249401, - 0.2249404, 0.0 ), + vec3( - 0.0420569, 1.0420571, 0.0 ), + vec3( - 0.0196376, - 0.0786361, 1.0982735 ) +); +vec4 LinearSRGBToLinearDisplayP3( in vec4 value ) { + return vec4( value.rgb * LINEAR_SRGB_TO_LINEAR_DISPLAY_P3, value.a ); +} +vec4 LinearDisplayP3ToLinearSRGB( in vec4 value ) { + return vec4( value.rgb * LINEAR_DISPLAY_P3_TO_LINEAR_SRGB, value.a ); +} +vec4 LinearTransferOETF( in vec4 value ) { + return value; +} +vec4 sRGBTransferOETF( in vec4 value ) { + return vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a ); +} +vec4 LinearToLinear( in vec4 value ) { + return value; +} +vec4 LinearTosRGB( in vec4 value ) { + return sRGBTransferOETF( value ); +}`,Fb=`#ifdef USE_ENVMAP + #ifdef ENV_WORLDPOS + vec3 cameraToFrag; + if ( isOrthographic ) { + cameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) ); + } else { + cameraToFrag = normalize( vWorldPosition - cameraPosition ); + } + vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); + #ifdef ENVMAP_MODE_REFLECTION + vec3 reflectVec = reflect( cameraToFrag, worldNormal ); + #else + vec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio ); + #endif + #else + vec3 reflectVec = vReflect; + #endif + #ifdef ENVMAP_TYPE_CUBE + vec4 envColor = textureCube( envMap, envMapRotation * vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) ); + #else + vec4 envColor = vec4( 0.0 ); + #endif + #ifdef ENVMAP_BLENDING_MULTIPLY + outgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity ); + #elif defined( ENVMAP_BLENDING_MIX ) + outgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity ); + #elif defined( ENVMAP_BLENDING_ADD ) + outgoingLight += envColor.xyz * specularStrength * reflectivity; + #endif +#endif`,_b=`#ifdef USE_ENVMAP + uniform float envMapIntensity; + uniform float flipEnvMap; + uniform mat3 envMapRotation; + #ifdef ENVMAP_TYPE_CUBE + uniform samplerCube envMap; + #else + uniform sampler2D envMap; + #endif + +#endif`,vb=`#ifdef USE_ENVMAP + uniform float reflectivity; + #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) + #define ENV_WORLDPOS + #endif + #ifdef ENV_WORLDPOS + varying vec3 vWorldPosition; + uniform float refractionRatio; + #else + varying vec3 vReflect; + #endif +#endif`,yb=`#ifdef USE_ENVMAP + #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) + #define ENV_WORLDPOS + #endif + #ifdef ENV_WORLDPOS + + varying vec3 vWorldPosition; + #else + varying vec3 vReflect; + uniform float refractionRatio; + #endif +#endif`,bb=`#ifdef USE_ENVMAP + #ifdef ENV_WORLDPOS + vWorldPosition = worldPosition.xyz; + #else + vec3 cameraToVertex; + if ( isOrthographic ) { + cameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) ); + } else { + cameraToVertex = normalize( worldPosition.xyz - cameraPosition ); + } + vec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); + #ifdef ENVMAP_MODE_REFLECTION + vReflect = reflect( cameraToVertex, worldNormal ); + #else + vReflect = refract( cameraToVertex, worldNormal, refractionRatio ); + #endif + #endif +#endif`,Bb=`#ifdef USE_FOG + vFogDepth = - mvPosition.z; +#endif`,Ab=`#ifdef USE_FOG + varying float vFogDepth; +#endif`,wb=`#ifdef USE_FOG + #ifdef FOG_EXP2 + float fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth ); + #else + float fogFactor = smoothstep( fogNear, fogFar, vFogDepth ); + #endif + gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor ); +#endif`,Sb=`#ifdef USE_FOG + uniform vec3 fogColor; + varying float vFogDepth; + #ifdef FOG_EXP2 + uniform float fogDensity; + #else + uniform float fogNear; + uniform float fogFar; + #endif +#endif`,Mb=`#ifdef USE_GRADIENTMAP + uniform sampler2D gradientMap; +#endif +vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) { + float dotNL = dot( normal, lightDirection ); + vec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 ); + #ifdef USE_GRADIENTMAP + return vec3( texture2D( gradientMap, coord ).r ); + #else + vec2 fw = fwidth( coord ) * 0.5; + return mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) ); + #endif +}`,Tb=`#ifdef USE_LIGHTMAP + uniform sampler2D lightMap; + uniform float lightMapIntensity; +#endif`,kb=`LambertMaterial material; +material.diffuseColor = diffuseColor.rgb; +material.specularStrength = specularStrength;`,Pb=`varying vec3 vViewPosition; +struct LambertMaterial { + vec3 diffuseColor; + float specularStrength; +}; +void RE_Direct_Lambert( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) { + float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); + vec3 irradiance = dotNL * directLight.color; + reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +void RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) { + reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +#define RE_Direct RE_Direct_Lambert +#define RE_IndirectDiffuse RE_IndirectDiffuse_Lambert`,Ib=`uniform bool receiveShadow; +uniform vec3 ambientLightColor; +#if defined( USE_LIGHT_PROBES ) + uniform vec3 lightProbe[ 9 ]; +#endif +vec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) { + float x = normal.x, y = normal.y, z = normal.z; + vec3 result = shCoefficients[ 0 ] * 0.886227; + result += shCoefficients[ 1 ] * 2.0 * 0.511664 * y; + result += shCoefficients[ 2 ] * 2.0 * 0.511664 * z; + result += shCoefficients[ 3 ] * 2.0 * 0.511664 * x; + result += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y; + result += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z; + result += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 ); + result += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z; + result += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y ); + return result; +} +vec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) { + vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); + vec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe ); + return irradiance; +} +vec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) { + vec3 irradiance = ambientLightColor; + return irradiance; +} +float getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) { + #if defined ( LEGACY_LIGHTS ) + if ( cutoffDistance > 0.0 && decayExponent > 0.0 ) { + return pow( saturate( - lightDistance / cutoffDistance + 1.0 ), decayExponent ); + } + return 1.0; + #else + float distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 ); + if ( cutoffDistance > 0.0 ) { + distanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) ); + } + return distanceFalloff; + #endif +} +float getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) { + return smoothstep( coneCosine, penumbraCosine, angleCosine ); +} +#if NUM_DIR_LIGHTS > 0 + struct DirectionalLight { + vec3 direction; + vec3 color; + }; + uniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ]; + void getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) { + light.color = directionalLight.color; + light.direction = directionalLight.direction; + light.visible = true; + } +#endif +#if NUM_POINT_LIGHTS > 0 + struct PointLight { + vec3 position; + vec3 color; + float distance; + float decay; + }; + uniform PointLight pointLights[ NUM_POINT_LIGHTS ]; + void getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) { + vec3 lVector = pointLight.position - geometryPosition; + light.direction = normalize( lVector ); + float lightDistance = length( lVector ); + light.color = pointLight.color; + light.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay ); + light.visible = ( light.color != vec3( 0.0 ) ); + } +#endif +#if NUM_SPOT_LIGHTS > 0 + struct SpotLight { + vec3 position; + vec3 direction; + vec3 color; + float distance; + float decay; + float coneCos; + float penumbraCos; + }; + uniform SpotLight spotLights[ NUM_SPOT_LIGHTS ]; + void getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) { + vec3 lVector = spotLight.position - geometryPosition; + light.direction = normalize( lVector ); + float angleCos = dot( light.direction, spotLight.direction ); + float spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos ); + if ( spotAttenuation > 0.0 ) { + float lightDistance = length( lVector ); + light.color = spotLight.color * spotAttenuation; + light.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay ); + light.visible = ( light.color != vec3( 0.0 ) ); + } else { + light.color = vec3( 0.0 ); + light.visible = false; + } + } +#endif +#if NUM_RECT_AREA_LIGHTS > 0 + struct RectAreaLight { + vec3 color; + vec3 position; + vec3 halfWidth; + vec3 halfHeight; + }; + uniform sampler2D ltc_1; uniform sampler2D ltc_2; + uniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ]; +#endif +#if NUM_HEMI_LIGHTS > 0 + struct HemisphereLight { + vec3 direction; + vec3 skyColor; + vec3 groundColor; + }; + uniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ]; + vec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) { + float dotNL = dot( normal, hemiLight.direction ); + float hemiDiffuseWeight = 0.5 * dotNL + 0.5; + vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight ); + return irradiance; + } +#endif`,Rb=`#ifdef USE_ENVMAP + vec3 getIBLIrradiance( const in vec3 normal ) { + #ifdef ENVMAP_TYPE_CUBE_UV + vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); + vec4 envMapColor = textureCubeUV( envMap, envMapRotation * worldNormal, 1.0 ); + return PI * envMapColor.rgb * envMapIntensity; + #else + return vec3( 0.0 ); + #endif + } + vec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) { + #ifdef ENVMAP_TYPE_CUBE_UV + vec3 reflectVec = reflect( - viewDir, normal ); + reflectVec = normalize( mix( reflectVec, normal, roughness * roughness) ); + reflectVec = inverseTransformDirection( reflectVec, viewMatrix ); + vec4 envMapColor = textureCubeUV( envMap, envMapRotation * reflectVec, roughness ); + return envMapColor.rgb * envMapIntensity; + #else + return vec3( 0.0 ); + #endif + } + #ifdef USE_ANISOTROPY + vec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) { + #ifdef ENVMAP_TYPE_CUBE_UV + vec3 bentNormal = cross( bitangent, viewDir ); + bentNormal = normalize( cross( bentNormal, bitangent ) ); + bentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) ); + return getIBLRadiance( viewDir, bentNormal, roughness ); + #else + return vec3( 0.0 ); + #endif + } + #endif +#endif`,Ob=`ToonMaterial material; +material.diffuseColor = diffuseColor.rgb;`,Lb=`varying vec3 vViewPosition; +struct ToonMaterial { + vec3 diffuseColor; +}; +void RE_Direct_Toon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) { + vec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color; + reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +void RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) { + reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +#define RE_Direct RE_Direct_Toon +#define RE_IndirectDiffuse RE_IndirectDiffuse_Toon`,Nb=`BlinnPhongMaterial material; +material.diffuseColor = diffuseColor.rgb; +material.specularColor = specular; +material.specularShininess = shininess; +material.specularStrength = specularStrength;`,Ub=`varying vec3 vViewPosition; +struct BlinnPhongMaterial { + vec3 diffuseColor; + vec3 specularColor; + float specularShininess; + float specularStrength; +}; +void RE_Direct_BlinnPhong( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) { + float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); + vec3 irradiance = dotNL * directLight.color; + reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); + reflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength; +} +void RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) { + reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +#define RE_Direct RE_Direct_BlinnPhong +#define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong`,Vb=`PhysicalMaterial material; +material.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor ); +vec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) ); +float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z ); +material.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness; +material.roughness = min( material.roughness, 1.0 ); +#ifdef IOR + material.ior = ior; + #ifdef USE_SPECULAR + float specularIntensityFactor = specularIntensity; + vec3 specularColorFactor = specularColor; + #ifdef USE_SPECULAR_COLORMAP + specularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb; + #endif + #ifdef USE_SPECULAR_INTENSITYMAP + specularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a; + #endif + material.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor ); + #else + float specularIntensityFactor = 1.0; + vec3 specularColorFactor = vec3( 1.0 ); + material.specularF90 = 1.0; + #endif + material.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor ); +#else + material.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor ); + material.specularF90 = 1.0; +#endif +#ifdef USE_CLEARCOAT + material.clearcoat = clearcoat; + material.clearcoatRoughness = clearcoatRoughness; + material.clearcoatF0 = vec3( 0.04 ); + material.clearcoatF90 = 1.0; + #ifdef USE_CLEARCOATMAP + material.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x; + #endif + #ifdef USE_CLEARCOAT_ROUGHNESSMAP + material.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y; + #endif + material.clearcoat = saturate( material.clearcoat ); material.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 ); + material.clearcoatRoughness += geometryRoughness; + material.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 ); +#endif +#ifdef USE_DISPERSION + material.dispersion = dispersion; +#endif +#ifdef USE_IRIDESCENCE + material.iridescence = iridescence; + material.iridescenceIOR = iridescenceIOR; + #ifdef USE_IRIDESCENCEMAP + material.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r; + #endif + #ifdef USE_IRIDESCENCE_THICKNESSMAP + material.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum; + #else + material.iridescenceThickness = iridescenceThicknessMaximum; + #endif +#endif +#ifdef USE_SHEEN + material.sheenColor = sheenColor; + #ifdef USE_SHEEN_COLORMAP + material.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb; + #endif + material.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 ); + #ifdef USE_SHEEN_ROUGHNESSMAP + material.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a; + #endif +#endif +#ifdef USE_ANISOTROPY + #ifdef USE_ANISOTROPYMAP + mat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x ); + vec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb; + vec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b; + #else + vec2 anisotropyV = anisotropyVector; + #endif + material.anisotropy = length( anisotropyV ); + if( material.anisotropy == 0.0 ) { + anisotropyV = vec2( 1.0, 0.0 ); + } else { + anisotropyV /= material.anisotropy; + material.anisotropy = saturate( material.anisotropy ); + } + material.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) ); + material.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y; + material.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y; +#endif`,zb=`struct PhysicalMaterial { + vec3 diffuseColor; + float roughness; + vec3 specularColor; + float specularF90; + float dispersion; + #ifdef USE_CLEARCOAT + float clearcoat; + float clearcoatRoughness; + vec3 clearcoatF0; + float clearcoatF90; + #endif + #ifdef USE_IRIDESCENCE + float iridescence; + float iridescenceIOR; + float iridescenceThickness; + vec3 iridescenceFresnel; + vec3 iridescenceF0; + #endif + #ifdef USE_SHEEN + vec3 sheenColor; + float sheenRoughness; + #endif + #ifdef IOR + float ior; + #endif + #ifdef USE_TRANSMISSION + float transmission; + float transmissionAlpha; + float thickness; + float attenuationDistance; + vec3 attenuationColor; + #endif + #ifdef USE_ANISOTROPY + float anisotropy; + float alphaT; + vec3 anisotropyT; + vec3 anisotropyB; + #endif +}; +vec3 clearcoatSpecularDirect = vec3( 0.0 ); +vec3 clearcoatSpecularIndirect = vec3( 0.0 ); +vec3 sheenSpecularDirect = vec3( 0.0 ); +vec3 sheenSpecularIndirect = vec3(0.0 ); +vec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) { + float x = clamp( 1.0 - dotVH, 0.0, 1.0 ); + float x2 = x * x; + float x5 = clamp( x * x2 * x2, 0.0, 0.9999 ); + return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 ); +} +float V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) { + float a2 = pow2( alpha ); + float gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) ); + float gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) ); + return 0.5 / max( gv + gl, EPSILON ); +} +float D_GGX( const in float alpha, const in float dotNH ) { + float a2 = pow2( alpha ); + float denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0; + return RECIPROCAL_PI * a2 / pow2( denom ); +} +#ifdef USE_ANISOTROPY + float V_GGX_SmithCorrelated_Anisotropic( const in float alphaT, const in float alphaB, const in float dotTV, const in float dotBV, const in float dotTL, const in float dotBL, const in float dotNV, const in float dotNL ) { + float gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) ); + float gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) ); + float v = 0.5 / ( gv + gl ); + return saturate(v); + } + float D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) { + float a2 = alphaT * alphaB; + highp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH ); + highp float v2 = dot( v, v ); + float w2 = a2 / v2; + return RECIPROCAL_PI * a2 * pow2 ( w2 ); + } +#endif +#ifdef USE_CLEARCOAT + vec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) { + vec3 f0 = material.clearcoatF0; + float f90 = material.clearcoatF90; + float roughness = material.clearcoatRoughness; + float alpha = pow2( roughness ); + vec3 halfDir = normalize( lightDir + viewDir ); + float dotNL = saturate( dot( normal, lightDir ) ); + float dotNV = saturate( dot( normal, viewDir ) ); + float dotNH = saturate( dot( normal, halfDir ) ); + float dotVH = saturate( dot( viewDir, halfDir ) ); + vec3 F = F_Schlick( f0, f90, dotVH ); + float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV ); + float D = D_GGX( alpha, dotNH ); + return F * ( V * D ); + } +#endif +vec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) { + vec3 f0 = material.specularColor; + float f90 = material.specularF90; + float roughness = material.roughness; + float alpha = pow2( roughness ); + vec3 halfDir = normalize( lightDir + viewDir ); + float dotNL = saturate( dot( normal, lightDir ) ); + float dotNV = saturate( dot( normal, viewDir ) ); + float dotNH = saturate( dot( normal, halfDir ) ); + float dotVH = saturate( dot( viewDir, halfDir ) ); + vec3 F = F_Schlick( f0, f90, dotVH ); + #ifdef USE_IRIDESCENCE + F = mix( F, material.iridescenceFresnel, material.iridescence ); + #endif + #ifdef USE_ANISOTROPY + float dotTL = dot( material.anisotropyT, lightDir ); + float dotTV = dot( material.anisotropyT, viewDir ); + float dotTH = dot( material.anisotropyT, halfDir ); + float dotBL = dot( material.anisotropyB, lightDir ); + float dotBV = dot( material.anisotropyB, viewDir ); + float dotBH = dot( material.anisotropyB, halfDir ); + float V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL ); + float D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH ); + #else + float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV ); + float D = D_GGX( alpha, dotNH ); + #endif + return F * ( V * D ); +} +vec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) { + const float LUT_SIZE = 64.0; + const float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE; + const float LUT_BIAS = 0.5 / LUT_SIZE; + float dotNV = saturate( dot( N, V ) ); + vec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) ); + uv = uv * LUT_SCALE + LUT_BIAS; + return uv; +} +float LTC_ClippedSphereFormFactor( const in vec3 f ) { + float l = length( f ); + return max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 ); +} +vec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) { + float x = dot( v1, v2 ); + float y = abs( x ); + float a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y; + float b = 3.4175940 + ( 4.1616724 + y ) * y; + float v = a / b; + float theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v; + return cross( v1, v2 ) * theta_sintheta; +} +vec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) { + vec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ]; + vec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ]; + vec3 lightNormal = cross( v1, v2 ); + if( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 ); + vec3 T1, T2; + T1 = normalize( V - N * dot( V, N ) ); + T2 = - cross( N, T1 ); + mat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) ); + vec3 coords[ 4 ]; + coords[ 0 ] = mat * ( rectCoords[ 0 ] - P ); + coords[ 1 ] = mat * ( rectCoords[ 1 ] - P ); + coords[ 2 ] = mat * ( rectCoords[ 2 ] - P ); + coords[ 3 ] = mat * ( rectCoords[ 3 ] - P ); + coords[ 0 ] = normalize( coords[ 0 ] ); + coords[ 1 ] = normalize( coords[ 1 ] ); + coords[ 2 ] = normalize( coords[ 2 ] ); + coords[ 3 ] = normalize( coords[ 3 ] ); + vec3 vectorFormFactor = vec3( 0.0 ); + vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] ); + vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] ); + vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] ); + vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] ); + float result = LTC_ClippedSphereFormFactor( vectorFormFactor ); + return vec3( result ); +} +#if defined( USE_SHEEN ) +float D_Charlie( float roughness, float dotNH ) { + float alpha = pow2( roughness ); + float invAlpha = 1.0 / alpha; + float cos2h = dotNH * dotNH; + float sin2h = max( 1.0 - cos2h, 0.0078125 ); + return ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI ); +} +float V_Neubelt( float dotNV, float dotNL ) { + return saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) ); +} +vec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) { + vec3 halfDir = normalize( lightDir + viewDir ); + float dotNL = saturate( dot( normal, lightDir ) ); + float dotNV = saturate( dot( normal, viewDir ) ); + float dotNH = saturate( dot( normal, halfDir ) ); + float D = D_Charlie( sheenRoughness, dotNH ); + float V = V_Neubelt( dotNV, dotNL ); + return sheenColor * ( D * V ); +} +#endif +float IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) { + float dotNV = saturate( dot( normal, viewDir ) ); + float r2 = roughness * roughness; + float a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95; + float b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72; + float DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) ); + return saturate( DG * RECIPROCAL_PI ); +} +vec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) { + float dotNV = saturate( dot( normal, viewDir ) ); + const vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 ); + const vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 ); + vec4 r = roughness * c0 + c1; + float a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y; + vec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw; + return fab; +} +vec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) { + vec2 fab = DFGApprox( normal, viewDir, roughness ); + return specularColor * fab.x + specularF90 * fab.y; +} +#ifdef USE_IRIDESCENCE +void computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) { +#else +void computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) { +#endif + vec2 fab = DFGApprox( normal, viewDir, roughness ); + #ifdef USE_IRIDESCENCE + vec3 Fr = mix( specularColor, iridescenceF0, iridescence ); + #else + vec3 Fr = specularColor; + #endif + vec3 FssEss = Fr * fab.x + specularF90 * fab.y; + float Ess = fab.x + fab.y; + float Ems = 1.0 - Ess; + vec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619; vec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg ); + singleScatter += FssEss; + multiScatter += Fms * Ems; +} +#if NUM_RECT_AREA_LIGHTS > 0 + void RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { + vec3 normal = geometryNormal; + vec3 viewDir = geometryViewDir; + vec3 position = geometryPosition; + vec3 lightPos = rectAreaLight.position; + vec3 halfWidth = rectAreaLight.halfWidth; + vec3 halfHeight = rectAreaLight.halfHeight; + vec3 lightColor = rectAreaLight.color; + float roughness = material.roughness; + vec3 rectCoords[ 4 ]; + rectCoords[ 0 ] = lightPos + halfWidth - halfHeight; rectCoords[ 1 ] = lightPos - halfWidth - halfHeight; + rectCoords[ 2 ] = lightPos - halfWidth + halfHeight; + rectCoords[ 3 ] = lightPos + halfWidth + halfHeight; + vec2 uv = LTC_Uv( normal, viewDir, roughness ); + vec4 t1 = texture2D( ltc_1, uv ); + vec4 t2 = texture2D( ltc_2, uv ); + mat3 mInv = mat3( + vec3( t1.x, 0, t1.y ), + vec3( 0, 1, 0 ), + vec3( t1.z, 0, t1.w ) + ); + vec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y ); + reflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords ); + reflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords ); + } +#endif +void RE_Direct_Physical( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { + float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); + vec3 irradiance = dotNL * directLight.color; + #ifdef USE_CLEARCOAT + float dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) ); + vec3 ccIrradiance = dotNLcc * directLight.color; + clearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material ); + #endif + #ifdef USE_SHEEN + sheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness ); + #endif + reflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometryViewDir, geometryNormal, material ); + reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +void RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { + reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +void RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) { + #ifdef USE_CLEARCOAT + clearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness ); + #endif + #ifdef USE_SHEEN + sheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness ); + #endif + vec3 singleScattering = vec3( 0.0 ); + vec3 multiScattering = vec3( 0.0 ); + vec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI; + #ifdef USE_IRIDESCENCE + computeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering ); + #else + computeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering ); + #endif + vec3 totalScattering = singleScattering + multiScattering; + vec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) ); + reflectedLight.indirectSpecular += radiance * singleScattering; + reflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance; + reflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance; +} +#define RE_Direct RE_Direct_Physical +#define RE_Direct_RectArea RE_Direct_RectArea_Physical +#define RE_IndirectDiffuse RE_IndirectDiffuse_Physical +#define RE_IndirectSpecular RE_IndirectSpecular_Physical +float computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) { + return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion ); +}`,Hb=` +vec3 geometryPosition = - vViewPosition; +vec3 geometryNormal = normal; +vec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition ); +vec3 geometryClearcoatNormal = vec3( 0.0 ); +#ifdef USE_CLEARCOAT + geometryClearcoatNormal = clearcoatNormal; +#endif +#ifdef USE_IRIDESCENCE + float dotNVi = saturate( dot( normal, geometryViewDir ) ); + if ( material.iridescenceThickness == 0.0 ) { + material.iridescence = 0.0; + } else { + material.iridescence = saturate( material.iridescence ); + } + if ( material.iridescence > 0.0 ) { + material.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor ); + material.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi ); + } +#endif +IncidentLight directLight; +#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct ) + PointLight pointLight; + #if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0 + PointLightShadow pointLightShadow; + #endif + #pragma unroll_loop_start + for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) { + pointLight = pointLights[ i ]; + getPointLightInfo( pointLight, geometryPosition, directLight ); + #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS ) + pointLightShadow = pointLightShadows[ i ]; + directLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0; + #endif + RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); + } + #pragma unroll_loop_end +#endif +#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct ) + SpotLight spotLight; + vec4 spotColor; + vec3 spotLightCoord; + bool inSpotLightMap; + #if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0 + SpotLightShadow spotLightShadow; + #endif + #pragma unroll_loop_start + for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) { + spotLight = spotLights[ i ]; + getSpotLightInfo( spotLight, geometryPosition, directLight ); + #if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS ) + #define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX + #elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) + #define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS + #else + #define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS ) + #endif + #if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS ) + spotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w; + inSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) ); + spotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy ); + directLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color; + #endif + #undef SPOT_LIGHT_MAP_INDEX + #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) + spotLightShadow = spotLightShadows[ i ]; + directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0; + #endif + RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); + } + #pragma unroll_loop_end +#endif +#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct ) + DirectionalLight directionalLight; + #if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0 + DirectionalLightShadow directionalLightShadow; + #endif + #pragma unroll_loop_start + for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) { + directionalLight = directionalLights[ i ]; + getDirectionalLightInfo( directionalLight, directLight ); + #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS ) + directionalLightShadow = directionalLightShadows[ i ]; + directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; + #endif + RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); + } + #pragma unroll_loop_end +#endif +#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea ) + RectAreaLight rectAreaLight; + #pragma unroll_loop_start + for ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) { + rectAreaLight = rectAreaLights[ i ]; + RE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); + } + #pragma unroll_loop_end +#endif +#if defined( RE_IndirectDiffuse ) + vec3 iblIrradiance = vec3( 0.0 ); + vec3 irradiance = getAmbientLightIrradiance( ambientLightColor ); + #if defined( USE_LIGHT_PROBES ) + irradiance += getLightProbeIrradiance( lightProbe, geometryNormal ); + #endif + #if ( NUM_HEMI_LIGHTS > 0 ) + #pragma unroll_loop_start + for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) { + irradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal ); + } + #pragma unroll_loop_end + #endif +#endif +#if defined( RE_IndirectSpecular ) + vec3 radiance = vec3( 0.0 ); + vec3 clearcoatRadiance = vec3( 0.0 ); +#endif`,Gb=`#if defined( RE_IndirectDiffuse ) + #ifdef USE_LIGHTMAP + vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); + vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity; + irradiance += lightMapIrradiance; + #endif + #if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV ) + iblIrradiance += getIBLIrradiance( geometryNormal ); + #endif +#endif +#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular ) + #ifdef USE_ANISOTROPY + radiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy ); + #else + radiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness ); + #endif + #ifdef USE_CLEARCOAT + clearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness ); + #endif +#endif`,jb=`#if defined( RE_IndirectDiffuse ) + RE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); +#endif +#if defined( RE_IndirectSpecular ) + RE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); +#endif`,Wb=`#if defined( USE_LOGDEPTHBUF ) + gl_FragDepth = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5; +#endif`,Xb=`#if defined( USE_LOGDEPTHBUF ) + uniform float logDepthBufFC; + varying float vFragDepth; + varying float vIsPerspective; +#endif`,qb=`#ifdef USE_LOGDEPTHBUF + varying float vFragDepth; + varying float vIsPerspective; +#endif`,Yb=`#ifdef USE_LOGDEPTHBUF + vFragDepth = 1.0 + gl_Position.w; + vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) ); +#endif`,$b=`#ifdef USE_MAP + vec4 sampledDiffuseColor = texture2D( map, vMapUv ); + #ifdef DECODE_VIDEO_TEXTURE + sampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w ); + + #endif + diffuseColor *= sampledDiffuseColor; +#endif`,Zb=`#ifdef USE_MAP + uniform sampler2D map; +#endif`,Kb=`#if defined( USE_MAP ) || defined( USE_ALPHAMAP ) + #if defined( USE_POINTS_UV ) + vec2 uv = vUv; + #else + vec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy; + #endif +#endif +#ifdef USE_MAP + diffuseColor *= texture2D( map, uv ); +#endif +#ifdef USE_ALPHAMAP + diffuseColor.a *= texture2D( alphaMap, uv ).g; +#endif`,Jb=`#if defined( USE_POINTS_UV ) + varying vec2 vUv; +#else + #if defined( USE_MAP ) || defined( USE_ALPHAMAP ) + uniform mat3 uvTransform; + #endif +#endif +#ifdef USE_MAP + uniform sampler2D map; +#endif +#ifdef USE_ALPHAMAP + uniform sampler2D alphaMap; +#endif`,Qb=`float metalnessFactor = metalness; +#ifdef USE_METALNESSMAP + vec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv ); + metalnessFactor *= texelMetalness.b; +#endif`,eB=`#ifdef USE_METALNESSMAP + uniform sampler2D metalnessMap; +#endif`,tB=`#ifdef USE_INSTANCING_MORPH + float morphTargetInfluences[MORPHTARGETS_COUNT]; + float morphTargetBaseInfluence = texelFetch( morphTexture, ivec2( 0, gl_InstanceID ), 0 ).r; + for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { + morphTargetInfluences[i] = texelFetch( morphTexture, ivec2( i + 1, gl_InstanceID ), 0 ).r; + } +#endif`,nB=`#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE ) + vColor *= morphTargetBaseInfluence; + for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { + #if defined( USE_COLOR_ALPHA ) + if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ]; + #elif defined( USE_COLOR ) + if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ]; + #endif + } +#endif`,iB=`#ifdef USE_MORPHNORMALS + objectNormal *= morphTargetBaseInfluence; + #ifdef MORPHTARGETS_TEXTURE + for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { + if ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ]; + } + #else + objectNormal += morphNormal0 * morphTargetInfluences[ 0 ]; + objectNormal += morphNormal1 * morphTargetInfluences[ 1 ]; + objectNormal += morphNormal2 * morphTargetInfluences[ 2 ]; + objectNormal += morphNormal3 * morphTargetInfluences[ 3 ]; + #endif +#endif`,rB=`#ifdef USE_MORPHTARGETS + #ifndef USE_INSTANCING_MORPH + uniform float morphTargetBaseInfluence; + #endif + #ifdef MORPHTARGETS_TEXTURE + #ifndef USE_INSTANCING_MORPH + uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ]; + #endif + uniform sampler2DArray morphTargetsTexture; + uniform ivec2 morphTargetsTextureSize; + vec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) { + int texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset; + int y = texelIndex / morphTargetsTextureSize.x; + int x = texelIndex - y * morphTargetsTextureSize.x; + ivec3 morphUV = ivec3( x, y, morphTargetIndex ); + return texelFetch( morphTargetsTexture, morphUV, 0 ); + } + #else + #ifndef USE_MORPHNORMALS + uniform float morphTargetInfluences[ 8 ]; + #else + uniform float morphTargetInfluences[ 4 ]; + #endif + #endif +#endif`,sB=`#ifdef USE_MORPHTARGETS + transformed *= morphTargetBaseInfluence; + #ifdef MORPHTARGETS_TEXTURE + for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { + if ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ]; + } + #else + transformed += morphTarget0 * morphTargetInfluences[ 0 ]; + transformed += morphTarget1 * morphTargetInfluences[ 1 ]; + transformed += morphTarget2 * morphTargetInfluences[ 2 ]; + transformed += morphTarget3 * morphTargetInfluences[ 3 ]; + #ifndef USE_MORPHNORMALS + transformed += morphTarget4 * morphTargetInfluences[ 4 ]; + transformed += morphTarget5 * morphTargetInfluences[ 5 ]; + transformed += morphTarget6 * morphTargetInfluences[ 6 ]; + transformed += morphTarget7 * morphTargetInfluences[ 7 ]; + #endif + #endif +#endif`,oB=`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0; +#ifdef FLAT_SHADED + vec3 fdx = dFdx( vViewPosition ); + vec3 fdy = dFdy( vViewPosition ); + vec3 normal = normalize( cross( fdx, fdy ) ); +#else + vec3 normal = normalize( vNormal ); + #ifdef DOUBLE_SIDED + normal *= faceDirection; + #endif +#endif +#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) + #ifdef USE_TANGENT + mat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal ); + #else + mat3 tbn = getTangentFrame( - vViewPosition, normal, + #if defined( USE_NORMALMAP ) + vNormalMapUv + #elif defined( USE_CLEARCOAT_NORMALMAP ) + vClearcoatNormalMapUv + #else + vUv + #endif + ); + #endif + #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED ) + tbn[0] *= faceDirection; + tbn[1] *= faceDirection; + #endif +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + #ifdef USE_TANGENT + mat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal ); + #else + mat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv ); + #endif + #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED ) + tbn2[0] *= faceDirection; + tbn2[1] *= faceDirection; + #endif +#endif +vec3 nonPerturbedNormal = normal;`,aB=`#ifdef USE_NORMALMAP_OBJECTSPACE + normal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; + #ifdef FLIP_SIDED + normal = - normal; + #endif + #ifdef DOUBLE_SIDED + normal = normal * faceDirection; + #endif + normal = normalize( normalMatrix * normal ); +#elif defined( USE_NORMALMAP_TANGENTSPACE ) + vec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; + mapN.xy *= normalScale; + normal = normalize( tbn * mapN ); +#elif defined( USE_BUMPMAP ) + normal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection ); +#endif`,uB=`#ifndef FLAT_SHADED + varying vec3 vNormal; + #ifdef USE_TANGENT + varying vec3 vTangent; + varying vec3 vBitangent; + #endif +#endif`,cB=`#ifndef FLAT_SHADED + varying vec3 vNormal; + #ifdef USE_TANGENT + varying vec3 vTangent; + varying vec3 vBitangent; + #endif +#endif`,fB=`#ifndef FLAT_SHADED + vNormal = normalize( transformedNormal ); + #ifdef USE_TANGENT + vTangent = normalize( transformedTangent ); + vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w ); + #endif +#endif`,lB=`#ifdef USE_NORMALMAP + uniform sampler2D normalMap; + uniform vec2 normalScale; +#endif +#ifdef USE_NORMALMAP_OBJECTSPACE + uniform mat3 normalMatrix; +#endif +#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) ) + mat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) { + vec3 q0 = dFdx( eye_pos.xyz ); + vec3 q1 = dFdy( eye_pos.xyz ); + vec2 st0 = dFdx( uv.st ); + vec2 st1 = dFdy( uv.st ); + vec3 N = surf_norm; + vec3 q1perp = cross( q1, N ); + vec3 q0perp = cross( N, q0 ); + vec3 T = q1perp * st0.x + q0perp * st1.x; + vec3 B = q1perp * st0.y + q0perp * st1.y; + float det = max( dot( T, T ), dot( B, B ) ); + float scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det ); + return mat3( T * scale, B * scale, N ); + } +#endif`,hB=`#ifdef USE_CLEARCOAT + vec3 clearcoatNormal = nonPerturbedNormal; +#endif`,dB=`#ifdef USE_CLEARCOAT_NORMALMAP + vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0; + clearcoatMapN.xy *= clearcoatNormalScale; + clearcoatNormal = normalize( tbn2 * clearcoatMapN ); +#endif`,DB=`#ifdef USE_CLEARCOATMAP + uniform sampler2D clearcoatMap; +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + uniform sampler2D clearcoatNormalMap; + uniform vec2 clearcoatNormalScale; +#endif +#ifdef USE_CLEARCOAT_ROUGHNESSMAP + uniform sampler2D clearcoatRoughnessMap; +#endif`,pB=`#ifdef USE_IRIDESCENCEMAP + uniform sampler2D iridescenceMap; +#endif +#ifdef USE_IRIDESCENCE_THICKNESSMAP + uniform sampler2D iridescenceThicknessMap; +#endif`,xB=`#ifdef OPAQUE +diffuseColor.a = 1.0; +#endif +#ifdef USE_TRANSMISSION +diffuseColor.a *= material.transmissionAlpha; +#endif +gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,mB=`vec3 packNormalToRGB( const in vec3 normal ) { + return normalize( normal ) * 0.5 + 0.5; +} +vec3 unpackRGBToNormal( const in vec3 rgb ) { + return 2.0 * rgb.xyz - 1.0; +} +const float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.; +const vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. ); +const vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. ); +const float ShiftRight8 = 1. / 256.; +vec4 packDepthToRGBA( const in float v ) { + vec4 r = vec4( fract( v * PackFactors ), v ); + r.yzw -= r.xyz * ShiftRight8; return r * PackUpscale; +} +float unpackRGBAToDepth( const in vec4 v ) { + return dot( v, UnpackFactors ); +} +vec2 packDepthToRG( in highp float v ) { + return packDepthToRGBA( v ).yx; +} +float unpackRGToDepth( const in highp vec2 v ) { + return unpackRGBAToDepth( vec4( v.xy, 0.0, 0.0 ) ); +} +vec4 pack2HalfToRGBA( vec2 v ) { + vec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) ); + return vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w ); +} +vec2 unpackRGBATo2Half( vec4 v ) { + return vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) ); +} +float viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) { + return ( viewZ + near ) / ( near - far ); +} +float orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) { + return depth * ( near - far ) - near; +} +float viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) { + return ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ ); +} +float perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) { + return ( near * far ) / ( ( far - near ) * depth - far ); +}`,CB=`#ifdef PREMULTIPLIED_ALPHA + gl_FragColor.rgb *= gl_FragColor.a; +#endif`,gB=`vec4 mvPosition = vec4( transformed, 1.0 ); +#ifdef USE_BATCHING + mvPosition = batchingMatrix * mvPosition; +#endif +#ifdef USE_INSTANCING + mvPosition = instanceMatrix * mvPosition; +#endif +mvPosition = modelViewMatrix * mvPosition; +gl_Position = projectionMatrix * mvPosition;`,EB=`#ifdef DITHERING + gl_FragColor.rgb = dithering( gl_FragColor.rgb ); +#endif`,FB=`#ifdef DITHERING + vec3 dithering( vec3 color ) { + float grid_position = rand( gl_FragCoord.xy ); + vec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 ); + dither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position ); + return color + dither_shift_RGB; + } +#endif`,_B=`float roughnessFactor = roughness; +#ifdef USE_ROUGHNESSMAP + vec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv ); + roughnessFactor *= texelRoughness.g; +#endif`,vB=`#ifdef USE_ROUGHNESSMAP + uniform sampler2D roughnessMap; +#endif`,yB=`#if NUM_SPOT_LIGHT_COORDS > 0 + varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; +#endif +#if NUM_SPOT_LIGHT_MAPS > 0 + uniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ]; +#endif +#ifdef USE_SHADOWMAP + #if NUM_DIR_LIGHT_SHADOWS > 0 + uniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ]; + varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ]; + struct DirectionalLightShadow { + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + }; + uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ]; + #endif + #if NUM_SPOT_LIGHT_SHADOWS > 0 + uniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ]; + struct SpotLightShadow { + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + }; + uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ]; + #endif + #if NUM_POINT_LIGHT_SHADOWS > 0 + uniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ]; + varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ]; + struct PointLightShadow { + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + float shadowCameraNear; + float shadowCameraFar; + }; + uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; + #endif + float texture2DCompare( sampler2D depths, vec2 uv, float compare ) { + return step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) ); + } + vec2 texture2DDistribution( sampler2D shadow, vec2 uv ) { + return unpackRGBATo2Half( texture2D( shadow, uv ) ); + } + float VSMShadow (sampler2D shadow, vec2 uv, float compare ){ + float occlusion = 1.0; + vec2 distribution = texture2DDistribution( shadow, uv ); + float hard_shadow = step( compare , distribution.x ); + if (hard_shadow != 1.0 ) { + float distance = compare - distribution.x ; + float variance = max( 0.00000, distribution.y * distribution.y ); + float softness_probability = variance / (variance + distance * distance ); softness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 ); occlusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 ); + } + return occlusion; + } + float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) { + float shadow = 1.0; + shadowCoord.xyz /= shadowCoord.w; + shadowCoord.z += shadowBias; + bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0; + bool frustumTest = inFrustum && shadowCoord.z <= 1.0; + if ( frustumTest ) { + #if defined( SHADOWMAP_TYPE_PCF ) + vec2 texelSize = vec2( 1.0 ) / shadowMapSize; + float dx0 = - texelSize.x * shadowRadius; + float dy0 = - texelSize.y * shadowRadius; + float dx1 = + texelSize.x * shadowRadius; + float dy1 = + texelSize.y * shadowRadius; + float dx2 = dx0 / 2.0; + float dy2 = dy0 / 2.0; + float dx3 = dx1 / 2.0; + float dy3 = dy1 / 2.0; + shadow = ( + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) + + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z ) + ) * ( 1.0 / 17.0 ); + #elif defined( SHADOWMAP_TYPE_PCF_SOFT ) + vec2 texelSize = vec2( 1.0 ) / shadowMapSize; + float dx = texelSize.x; + float dy = texelSize.y; + vec2 uv = shadowCoord.xy; + vec2 f = fract( uv * shadowMapSize + 0.5 ); + uv -= f * texelSize; + shadow = ( + texture2DCompare( shadowMap, uv, shadowCoord.z ) + + texture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) + + texture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) + + texture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) + + mix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ), + texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ), + f.x ) + + mix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ), + texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ), + f.x ) + + mix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ), + texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ), + f.y ) + + mix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ), + texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ), + f.y ) + + mix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ), + texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ), + f.x ), + mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ), + texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ), + f.x ), + f.y ) + ) * ( 1.0 / 9.0 ); + #elif defined( SHADOWMAP_TYPE_VSM ) + shadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z ); + #else + shadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ); + #endif + } + return shadow; + } + vec2 cubeToUV( vec3 v, float texelSizeY ) { + vec3 absV = abs( v ); + float scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) ); + absV *= scaleToCube; + v *= scaleToCube * ( 1.0 - 2.0 * texelSizeY ); + vec2 planar = v.xy; + float almostATexel = 1.5 * texelSizeY; + float almostOne = 1.0 - almostATexel; + if ( absV.z >= almostOne ) { + if ( v.z > 0.0 ) + planar.x = 4.0 - v.x; + } else if ( absV.x >= almostOne ) { + float signX = sign( v.x ); + planar.x = v.z * signX + 2.0 * signX; + } else if ( absV.y >= almostOne ) { + float signY = sign( v.y ); + planar.x = v.x + 2.0 * signY + 2.0; + planar.y = v.z * signY - 2.0; + } + return vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 ); + } + float getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) { + float shadow = 1.0; + vec3 lightToPosition = shadowCoord.xyz; + + float lightToPositionLength = length( lightToPosition ); + if ( lightToPositionLength - shadowCameraFar <= 0.0 && lightToPositionLength - shadowCameraNear >= 0.0 ) { + float dp = ( lightToPositionLength - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear ); dp += shadowBias; + vec3 bd3D = normalize( lightToPosition ); + vec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) ); + #if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM ) + vec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y; + shadow = ( + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) + + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp ) + ) * ( 1.0 / 9.0 ); + #else + shadow = texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ); + #endif + } + return shadow; + } +#endif`,bB=`#if NUM_SPOT_LIGHT_COORDS > 0 + uniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ]; + varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; +#endif +#ifdef USE_SHADOWMAP + #if NUM_DIR_LIGHT_SHADOWS > 0 + uniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ]; + varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ]; + struct DirectionalLightShadow { + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + }; + uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ]; + #endif + #if NUM_SPOT_LIGHT_SHADOWS > 0 + struct SpotLightShadow { + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + }; + uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ]; + #endif + #if NUM_POINT_LIGHT_SHADOWS > 0 + uniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ]; + varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ]; + struct PointLightShadow { + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + float shadowCameraNear; + float shadowCameraFar; + }; + uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; + #endif +#endif`,BB=`#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 ) + vec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); + vec4 shadowWorldPosition; +#endif +#if defined( USE_SHADOWMAP ) + #if NUM_DIR_LIGHT_SHADOWS > 0 + #pragma unroll_loop_start + for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) { + shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 ); + vDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition; + } + #pragma unroll_loop_end + #endif + #if NUM_POINT_LIGHT_SHADOWS > 0 + #pragma unroll_loop_start + for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) { + shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 ); + vPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition; + } + #pragma unroll_loop_end + #endif +#endif +#if NUM_SPOT_LIGHT_COORDS > 0 + #pragma unroll_loop_start + for ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) { + shadowWorldPosition = worldPosition; + #if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) + shadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias; + #endif + vSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition; + } + #pragma unroll_loop_end +#endif`,AB=`float getShadowMask() { + float shadow = 1.0; + #ifdef USE_SHADOWMAP + #if NUM_DIR_LIGHT_SHADOWS > 0 + DirectionalLightShadow directionalLight; + #pragma unroll_loop_start + for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) { + directionalLight = directionalLightShadows[ i ]; + shadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; + } + #pragma unroll_loop_end + #endif + #if NUM_SPOT_LIGHT_SHADOWS > 0 + SpotLightShadow spotLight; + #pragma unroll_loop_start + for ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) { + spotLight = spotLightShadows[ i ]; + shadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0; + } + #pragma unroll_loop_end + #endif + #if NUM_POINT_LIGHT_SHADOWS > 0 + PointLightShadow pointLight; + #pragma unroll_loop_start + for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) { + pointLight = pointLightShadows[ i ]; + shadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0; + } + #pragma unroll_loop_end + #endif + #endif + return shadow; +}`,wB=`#ifdef USE_SKINNING + mat4 boneMatX = getBoneMatrix( skinIndex.x ); + mat4 boneMatY = getBoneMatrix( skinIndex.y ); + mat4 boneMatZ = getBoneMatrix( skinIndex.z ); + mat4 boneMatW = getBoneMatrix( skinIndex.w ); +#endif`,SB=`#ifdef USE_SKINNING + uniform mat4 bindMatrix; + uniform mat4 bindMatrixInverse; + uniform highp sampler2D boneTexture; + mat4 getBoneMatrix( const in float i ) { + int size = textureSize( boneTexture, 0 ).x; + int j = int( i ) * 4; + int x = j % size; + int y = j / size; + vec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 ); + vec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 ); + vec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 ); + vec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 ); + return mat4( v1, v2, v3, v4 ); + } +#endif`,MB=`#ifdef USE_SKINNING + vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 ); + vec4 skinned = vec4( 0.0 ); + skinned += boneMatX * skinVertex * skinWeight.x; + skinned += boneMatY * skinVertex * skinWeight.y; + skinned += boneMatZ * skinVertex * skinWeight.z; + skinned += boneMatW * skinVertex * skinWeight.w; + transformed = ( bindMatrixInverse * skinned ).xyz; +#endif`,TB=`#ifdef USE_SKINNING + mat4 skinMatrix = mat4( 0.0 ); + skinMatrix += skinWeight.x * boneMatX; + skinMatrix += skinWeight.y * boneMatY; + skinMatrix += skinWeight.z * boneMatZ; + skinMatrix += skinWeight.w * boneMatW; + skinMatrix = bindMatrixInverse * skinMatrix * bindMatrix; + objectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz; + #ifdef USE_TANGENT + objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz; + #endif +#endif`,kB=`float specularStrength; +#ifdef USE_SPECULARMAP + vec4 texelSpecular = texture2D( specularMap, vSpecularMapUv ); + specularStrength = texelSpecular.r; +#else + specularStrength = 1.0; +#endif`,PB=`#ifdef USE_SPECULARMAP + uniform sampler2D specularMap; +#endif`,IB=`#if defined( TONE_MAPPING ) + gl_FragColor.rgb = toneMapping( gl_FragColor.rgb ); +#endif`,RB=`#ifndef saturate +#define saturate( a ) clamp( a, 0.0, 1.0 ) +#endif +uniform float toneMappingExposure; +vec3 LinearToneMapping( vec3 color ) { + return saturate( toneMappingExposure * color ); +} +vec3 ReinhardToneMapping( vec3 color ) { + color *= toneMappingExposure; + return saturate( color / ( vec3( 1.0 ) + color ) ); +} +vec3 OptimizedCineonToneMapping( vec3 color ) { + color *= toneMappingExposure; + color = max( vec3( 0.0 ), color - 0.004 ); + return pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) ); +} +vec3 RRTAndODTFit( vec3 v ) { + vec3 a = v * ( v + 0.0245786 ) - 0.000090537; + vec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081; + return a / b; +} +vec3 ACESFilmicToneMapping( vec3 color ) { + const mat3 ACESInputMat = mat3( + vec3( 0.59719, 0.07600, 0.02840 ), vec3( 0.35458, 0.90834, 0.13383 ), + vec3( 0.04823, 0.01566, 0.83777 ) + ); + const mat3 ACESOutputMat = mat3( + vec3( 1.60475, -0.10208, -0.00327 ), vec3( -0.53108, 1.10813, -0.07276 ), + vec3( -0.07367, -0.00605, 1.07602 ) + ); + color *= toneMappingExposure / 0.6; + color = ACESInputMat * color; + color = RRTAndODTFit( color ); + color = ACESOutputMat * color; + return saturate( color ); +} +const mat3 LINEAR_REC2020_TO_LINEAR_SRGB = mat3( + vec3( 1.6605, - 0.1246, - 0.0182 ), + vec3( - 0.5876, 1.1329, - 0.1006 ), + vec3( - 0.0728, - 0.0083, 1.1187 ) +); +const mat3 LINEAR_SRGB_TO_LINEAR_REC2020 = mat3( + vec3( 0.6274, 0.0691, 0.0164 ), + vec3( 0.3293, 0.9195, 0.0880 ), + vec3( 0.0433, 0.0113, 0.8956 ) +); +vec3 agxDefaultContrastApprox( vec3 x ) { + vec3 x2 = x * x; + vec3 x4 = x2 * x2; + return + 15.5 * x4 * x2 + - 40.14 * x4 * x + + 31.96 * x4 + - 6.868 * x2 * x + + 0.4298 * x2 + + 0.1191 * x + - 0.00232; +} +vec3 AgXToneMapping( vec3 color ) { + const mat3 AgXInsetMatrix = mat3( + vec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ), + vec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ), + vec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 ) + ); + const mat3 AgXOutsetMatrix = mat3( + vec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ), + vec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ), + vec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 ) + ); + const float AgxMinEv = - 12.47393; const float AgxMaxEv = 4.026069; + color *= toneMappingExposure; + color = LINEAR_SRGB_TO_LINEAR_REC2020 * color; + color = AgXInsetMatrix * color; + color = max( color, 1e-10 ); color = log2( color ); + color = ( color - AgxMinEv ) / ( AgxMaxEv - AgxMinEv ); + color = clamp( color, 0.0, 1.0 ); + color = agxDefaultContrastApprox( color ); + color = AgXOutsetMatrix * color; + color = pow( max( vec3( 0.0 ), color ), vec3( 2.2 ) ); + color = LINEAR_REC2020_TO_LINEAR_SRGB * color; + color = clamp( color, 0.0, 1.0 ); + return color; +} +vec3 NeutralToneMapping( vec3 color ) { + const float StartCompression = 0.8 - 0.04; + const float Desaturation = 0.15; + color *= toneMappingExposure; + float x = min( color.r, min( color.g, color.b ) ); + float offset = x < 0.08 ? x - 6.25 * x * x : 0.04; + color -= offset; + float peak = max( color.r, max( color.g, color.b ) ); + if ( peak < StartCompression ) return color; + float d = 1. - StartCompression; + float newPeak = 1. - d * d / ( peak + d - StartCompression ); + color *= newPeak / peak; + float g = 1. - 1. / ( Desaturation * ( peak - newPeak ) + 1. ); + return mix( color, vec3( newPeak ), g ); +} +vec3 CustomToneMapping( vec3 color ) { return color; }`,OB=`#ifdef USE_TRANSMISSION + material.transmission = transmission; + material.transmissionAlpha = 1.0; + material.thickness = thickness; + material.attenuationDistance = attenuationDistance; + material.attenuationColor = attenuationColor; + #ifdef USE_TRANSMISSIONMAP + material.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r; + #endif + #ifdef USE_THICKNESSMAP + material.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g; + #endif + vec3 pos = vWorldPosition; + vec3 v = normalize( cameraPosition - pos ); + vec3 n = inverseTransformDirection( normal, viewMatrix ); + vec4 transmitted = getIBLVolumeRefraction( + n, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90, + pos, modelMatrix, viewMatrix, projectionMatrix, material.dispersion, material.ior, material.thickness, + material.attenuationColor, material.attenuationDistance ); + material.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission ); + totalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission ); +#endif`,LB=`#ifdef USE_TRANSMISSION + uniform float transmission; + uniform float thickness; + uniform float attenuationDistance; + uniform vec3 attenuationColor; + #ifdef USE_TRANSMISSIONMAP + uniform sampler2D transmissionMap; + #endif + #ifdef USE_THICKNESSMAP + uniform sampler2D thicknessMap; + #endif + uniform vec2 transmissionSamplerSize; + uniform sampler2D transmissionSamplerMap; + uniform mat4 modelMatrix; + uniform mat4 projectionMatrix; + varying vec3 vWorldPosition; + float w0( float a ) { + return ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 ); + } + float w1( float a ) { + return ( 1.0 / 6.0 ) * ( a * a * ( 3.0 * a - 6.0 ) + 4.0 ); + } + float w2( float a ){ + return ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 ); + } + float w3( float a ) { + return ( 1.0 / 6.0 ) * ( a * a * a ); + } + float g0( float a ) { + return w0( a ) + w1( a ); + } + float g1( float a ) { + return w2( a ) + w3( a ); + } + float h0( float a ) { + return - 1.0 + w1( a ) / ( w0( a ) + w1( a ) ); + } + float h1( float a ) { + return 1.0 + w3( a ) / ( w2( a ) + w3( a ) ); + } + vec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) { + uv = uv * texelSize.zw + 0.5; + vec2 iuv = floor( uv ); + vec2 fuv = fract( uv ); + float g0x = g0( fuv.x ); + float g1x = g1( fuv.x ); + float h0x = h0( fuv.x ); + float h1x = h1( fuv.x ); + float h0y = h0( fuv.y ); + float h1y = h1( fuv.y ); + vec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy; + vec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy; + vec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy; + vec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy; + return g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) + + g1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) ); + } + vec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) { + vec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) ); + vec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) ); + vec2 fLodSizeInv = 1.0 / fLodSize; + vec2 cLodSizeInv = 1.0 / cLodSize; + vec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) ); + vec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) ); + return mix( fSample, cSample, fract( lod ) ); + } + vec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) { + vec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior ); + vec3 modelScale; + modelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) ); + modelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) ); + modelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) ); + return normalize( refractionVector ) * thickness * modelScale; + } + float applyIorToRoughness( const in float roughness, const in float ior ) { + return roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 ); + } + vec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) { + float lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior ); + return textureBicubic( transmissionSamplerMap, fragCoord.xy, lod ); + } + vec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) { + if ( isinf( attenuationDistance ) ) { + return vec3( 1.0 ); + } else { + vec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance; + vec3 transmittance = exp( - attenuationCoefficient * transmissionDistance ); return transmittance; + } + } + vec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor, + const in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix, + const in mat4 viewMatrix, const in mat4 projMatrix, const in float dispersion, const in float ior, const in float thickness, + const in vec3 attenuationColor, const in float attenuationDistance ) { + vec4 transmittedLight; + vec3 transmittance; + #ifdef USE_DISPERSION + float halfSpread = ( ior - 1.0 ) * 0.025 * dispersion; + vec3 iors = vec3( ior - halfSpread, ior, ior + halfSpread ); + for ( int i = 0; i < 3; i ++ ) { + vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, iors[ i ], modelMatrix ); + vec3 refractedRayExit = position + transmissionRay; + + vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 ); + vec2 refractionCoords = ndcPos.xy / ndcPos.w; + refractionCoords += 1.0; + refractionCoords /= 2.0; + + vec4 transmissionSample = getTransmissionSample( refractionCoords, roughness, iors[ i ] ); + transmittedLight[ i ] = transmissionSample[ i ]; + transmittedLight.a += transmissionSample.a; + transmittance[ i ] = diffuseColor[ i ] * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance )[ i ]; + } + transmittedLight.a /= 3.0; + + #else + + vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix ); + vec3 refractedRayExit = position + transmissionRay; + vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 ); + vec2 refractionCoords = ndcPos.xy / ndcPos.w; + refractionCoords += 1.0; + refractionCoords /= 2.0; + transmittedLight = getTransmissionSample( refractionCoords, roughness, ior ); + transmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance ); + + #endif + vec3 attenuatedColor = transmittance * transmittedLight.rgb; + vec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness ); + float transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0; + return vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor ); + } +#endif`,NB=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) + varying vec2 vUv; +#endif +#ifdef USE_MAP + varying vec2 vMapUv; +#endif +#ifdef USE_ALPHAMAP + varying vec2 vAlphaMapUv; +#endif +#ifdef USE_LIGHTMAP + varying vec2 vLightMapUv; +#endif +#ifdef USE_AOMAP + varying vec2 vAoMapUv; +#endif +#ifdef USE_BUMPMAP + varying vec2 vBumpMapUv; +#endif +#ifdef USE_NORMALMAP + varying vec2 vNormalMapUv; +#endif +#ifdef USE_EMISSIVEMAP + varying vec2 vEmissiveMapUv; +#endif +#ifdef USE_METALNESSMAP + varying vec2 vMetalnessMapUv; +#endif +#ifdef USE_ROUGHNESSMAP + varying vec2 vRoughnessMapUv; +#endif +#ifdef USE_ANISOTROPYMAP + varying vec2 vAnisotropyMapUv; +#endif +#ifdef USE_CLEARCOATMAP + varying vec2 vClearcoatMapUv; +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + varying vec2 vClearcoatNormalMapUv; +#endif +#ifdef USE_CLEARCOAT_ROUGHNESSMAP + varying vec2 vClearcoatRoughnessMapUv; +#endif +#ifdef USE_IRIDESCENCEMAP + varying vec2 vIridescenceMapUv; +#endif +#ifdef USE_IRIDESCENCE_THICKNESSMAP + varying vec2 vIridescenceThicknessMapUv; +#endif +#ifdef USE_SHEEN_COLORMAP + varying vec2 vSheenColorMapUv; +#endif +#ifdef USE_SHEEN_ROUGHNESSMAP + varying vec2 vSheenRoughnessMapUv; +#endif +#ifdef USE_SPECULARMAP + varying vec2 vSpecularMapUv; +#endif +#ifdef USE_SPECULAR_COLORMAP + varying vec2 vSpecularColorMapUv; +#endif +#ifdef USE_SPECULAR_INTENSITYMAP + varying vec2 vSpecularIntensityMapUv; +#endif +#ifdef USE_TRANSMISSIONMAP + uniform mat3 transmissionMapTransform; + varying vec2 vTransmissionMapUv; +#endif +#ifdef USE_THICKNESSMAP + uniform mat3 thicknessMapTransform; + varying vec2 vThicknessMapUv; +#endif`,UB=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) + varying vec2 vUv; +#endif +#ifdef USE_MAP + uniform mat3 mapTransform; + varying vec2 vMapUv; +#endif +#ifdef USE_ALPHAMAP + uniform mat3 alphaMapTransform; + varying vec2 vAlphaMapUv; +#endif +#ifdef USE_LIGHTMAP + uniform mat3 lightMapTransform; + varying vec2 vLightMapUv; +#endif +#ifdef USE_AOMAP + uniform mat3 aoMapTransform; + varying vec2 vAoMapUv; +#endif +#ifdef USE_BUMPMAP + uniform mat3 bumpMapTransform; + varying vec2 vBumpMapUv; +#endif +#ifdef USE_NORMALMAP + uniform mat3 normalMapTransform; + varying vec2 vNormalMapUv; +#endif +#ifdef USE_DISPLACEMENTMAP + uniform mat3 displacementMapTransform; + varying vec2 vDisplacementMapUv; +#endif +#ifdef USE_EMISSIVEMAP + uniform mat3 emissiveMapTransform; + varying vec2 vEmissiveMapUv; +#endif +#ifdef USE_METALNESSMAP + uniform mat3 metalnessMapTransform; + varying vec2 vMetalnessMapUv; +#endif +#ifdef USE_ROUGHNESSMAP + uniform mat3 roughnessMapTransform; + varying vec2 vRoughnessMapUv; +#endif +#ifdef USE_ANISOTROPYMAP + uniform mat3 anisotropyMapTransform; + varying vec2 vAnisotropyMapUv; +#endif +#ifdef USE_CLEARCOATMAP + uniform mat3 clearcoatMapTransform; + varying vec2 vClearcoatMapUv; +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + uniform mat3 clearcoatNormalMapTransform; + varying vec2 vClearcoatNormalMapUv; +#endif +#ifdef USE_CLEARCOAT_ROUGHNESSMAP + uniform mat3 clearcoatRoughnessMapTransform; + varying vec2 vClearcoatRoughnessMapUv; +#endif +#ifdef USE_SHEEN_COLORMAP + uniform mat3 sheenColorMapTransform; + varying vec2 vSheenColorMapUv; +#endif +#ifdef USE_SHEEN_ROUGHNESSMAP + uniform mat3 sheenRoughnessMapTransform; + varying vec2 vSheenRoughnessMapUv; +#endif +#ifdef USE_IRIDESCENCEMAP + uniform mat3 iridescenceMapTransform; + varying vec2 vIridescenceMapUv; +#endif +#ifdef USE_IRIDESCENCE_THICKNESSMAP + uniform mat3 iridescenceThicknessMapTransform; + varying vec2 vIridescenceThicknessMapUv; +#endif +#ifdef USE_SPECULARMAP + uniform mat3 specularMapTransform; + varying vec2 vSpecularMapUv; +#endif +#ifdef USE_SPECULAR_COLORMAP + uniform mat3 specularColorMapTransform; + varying vec2 vSpecularColorMapUv; +#endif +#ifdef USE_SPECULAR_INTENSITYMAP + uniform mat3 specularIntensityMapTransform; + varying vec2 vSpecularIntensityMapUv; +#endif +#ifdef USE_TRANSMISSIONMAP + uniform mat3 transmissionMapTransform; + varying vec2 vTransmissionMapUv; +#endif +#ifdef USE_THICKNESSMAP + uniform mat3 thicknessMapTransform; + varying vec2 vThicknessMapUv; +#endif`,VB=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) + vUv = vec3( uv, 1 ).xy; +#endif +#ifdef USE_MAP + vMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy; +#endif +#ifdef USE_ALPHAMAP + vAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_LIGHTMAP + vLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_AOMAP + vAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_BUMPMAP + vBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_NORMALMAP + vNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_DISPLACEMENTMAP + vDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_EMISSIVEMAP + vEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_METALNESSMAP + vMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_ROUGHNESSMAP + vRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_ANISOTROPYMAP + vAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_CLEARCOATMAP + vClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + vClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_CLEARCOAT_ROUGHNESSMAP + vClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_IRIDESCENCEMAP + vIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_IRIDESCENCE_THICKNESSMAP + vIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SHEEN_COLORMAP + vSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SHEEN_ROUGHNESSMAP + vSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SPECULARMAP + vSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SPECULAR_COLORMAP + vSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SPECULAR_INTENSITYMAP + vSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_TRANSMISSIONMAP + vTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_THICKNESSMAP + vThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy; +#endif`,zB=`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0 + vec4 worldPosition = vec4( transformed, 1.0 ); + #ifdef USE_BATCHING + worldPosition = batchingMatrix * worldPosition; + #endif + #ifdef USE_INSTANCING + worldPosition = instanceMatrix * worldPosition; + #endif + worldPosition = modelMatrix * worldPosition; +#endif`,HB=`varying vec2 vUv; +uniform mat3 uvTransform; +void main() { + vUv = ( uvTransform * vec3( uv, 1 ) ).xy; + gl_Position = vec4( position.xy, 1.0, 1.0 ); +}`,GB=`uniform sampler2D t2D; +uniform float backgroundIntensity; +varying vec2 vUv; +void main() { + vec4 texColor = texture2D( t2D, vUv ); + #ifdef DECODE_VIDEO_TEXTURE + texColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w ); + #endif + texColor.rgb *= backgroundIntensity; + gl_FragColor = texColor; + #include + #include +}`,jB=`varying vec3 vWorldDirection; +#include +void main() { + vWorldDirection = transformDirection( position, modelMatrix ); + #include + #include + gl_Position.z = gl_Position.w; +}`,WB=`#ifdef ENVMAP_TYPE_CUBE + uniform samplerCube envMap; +#elif defined( ENVMAP_TYPE_CUBE_UV ) + uniform sampler2D envMap; +#endif +uniform float flipEnvMap; +uniform float backgroundBlurriness; +uniform float backgroundIntensity; +uniform mat3 backgroundRotation; +varying vec3 vWorldDirection; +#include +void main() { + #ifdef ENVMAP_TYPE_CUBE + vec4 texColor = textureCube( envMap, backgroundRotation * vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) ); + #elif defined( ENVMAP_TYPE_CUBE_UV ) + vec4 texColor = textureCubeUV( envMap, backgroundRotation * vWorldDirection, backgroundBlurriness ); + #else + vec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 ); + #endif + texColor.rgb *= backgroundIntensity; + gl_FragColor = texColor; + #include + #include +}`,XB=`varying vec3 vWorldDirection; +#include +void main() { + vWorldDirection = transformDirection( position, modelMatrix ); + #include + #include + gl_Position.z = gl_Position.w; +}`,qB=`uniform samplerCube tCube; +uniform float tFlip; +uniform float opacity; +varying vec3 vWorldDirection; +void main() { + vec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) ); + gl_FragColor = texColor; + gl_FragColor.a *= opacity; + #include + #include +}`,YB=`#include +#include +#include +#include +#include +#include +#include +#include +varying vec2 vHighPrecisionZW; +void main() { + #include + #include + #include + #include + #ifdef USE_DISPLACEMENTMAP + #include + #include + #include + #endif + #include + #include + #include + #include + #include + #include + #include + vHighPrecisionZW = gl_Position.zw; +}`,$B=`#if DEPTH_PACKING == 3200 + uniform float opacity; +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +varying vec2 vHighPrecisionZW; +void main() { + vec4 diffuseColor = vec4( 1.0 ); + #include + #if DEPTH_PACKING == 3200 + diffuseColor.a = opacity; + #endif + #include + #include + #include + #include + #include + float fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5; + #if DEPTH_PACKING == 3200 + gl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity ); + #elif DEPTH_PACKING == 3201 + gl_FragColor = packDepthToRGBA( fragCoordZ ); + #endif +}`,ZB=`#define DISTANCE +varying vec3 vWorldPosition; +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #ifdef USE_DISPLACEMENTMAP + #include + #include + #include + #endif + #include + #include + #include + #include + #include + #include + #include + vWorldPosition = worldPosition.xyz; +}`,KB=`#define DISTANCE +uniform vec3 referencePosition; +uniform float nearDistance; +uniform float farDistance; +varying vec3 vWorldPosition; +#include +#include +#include +#include +#include +#include +#include +#include +void main () { + vec4 diffuseColor = vec4( 1.0 ); + #include + #include + #include + #include + #include + float dist = length( vWorldPosition - referencePosition ); + dist = ( dist - nearDistance ) / ( farDistance - nearDistance ); + dist = saturate( dist ); + gl_FragColor = packDepthToRGBA( dist ); +}`,JB=`varying vec3 vWorldDirection; +#include +void main() { + vWorldDirection = transformDirection( position, modelMatrix ); + #include + #include +}`,QB=`uniform sampler2D tEquirect; +varying vec3 vWorldDirection; +#include +void main() { + vec3 direction = normalize( vWorldDirection ); + vec2 sampleUV = equirectUv( direction ); + gl_FragColor = texture2D( tEquirect, sampleUV ); + #include + #include +}`,eA=`uniform float scale; +attribute float lineDistance; +varying float vLineDistance; +#include +#include +#include +#include +#include +#include +#include +void main() { + vLineDistance = scale * lineDistance; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include +}`,tA=`uniform vec3 diffuse; +uniform float opacity; +uniform float dashSize; +uniform float totalSize; +varying float vLineDistance; +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + if ( mod( vLineDistance, totalSize ) > dashSize ) { + discard; + } + vec3 outgoingLight = vec3( 0.0 ); + #include + #include + #include + outgoingLight = diffuseColor.rgb; + #include + #include + #include + #include + #include +}`,nA=`#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #if defined ( USE_ENVMAP ) || defined ( USE_SKINNING ) + #include + #include + #include + #include + #include + #endif + #include + #include + #include + #include + #include + #include + #include + #include + #include +}`,iA=`uniform vec3 diffuse; +uniform float opacity; +#ifndef FLAT_SHADED + varying vec3 vNormal; +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + #include + #include + #include + #include + #include + #include + #include + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + #ifdef USE_LIGHTMAP + vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); + reflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI; + #else + reflectedLight.indirectDiffuse += vec3( 1.0 ); + #endif + #include + reflectedLight.indirectDiffuse *= diffuseColor.rgb; + vec3 outgoingLight = reflectedLight.indirectDiffuse; + #include + #include + #include + #include + #include + #include + #include +}`,rA=`#define LAMBERT +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; + #include + #include + #include + #include +}`,sA=`#define LAMBERT +uniform vec3 diffuse; +uniform vec3 emissive; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + vec3 totalEmissiveRadiance = emissive; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance; + #include + #include + #include + #include + #include + #include + #include +}`,oA=`#define MATCAP +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; +}`,aA=`#define MATCAP +uniform vec3 diffuse; +uniform float opacity; +uniform sampler2D matcap; +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 viewDir = normalize( vViewPosition ); + vec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) ); + vec3 y = cross( viewDir, x ); + vec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5; + #ifdef USE_MATCAP + vec4 matcapColor = texture2D( matcap, uv ); + #else + vec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 ); + #endif + vec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb; + #include + #include + #include + #include + #include + #include +}`,uA=`#define NORMAL +#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) + varying vec3 vViewPosition; +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include +#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) + vViewPosition = - mvPosition.xyz; +#endif +}`,cA=`#define NORMAL +uniform float opacity; +#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) + varying vec3 vViewPosition; +#endif +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( 0.0, 0.0, 0.0, opacity ); + #include + #include + #include + #include + gl_FragColor = vec4( packNormalToRGB( normal ), diffuseColor.a ); + #ifdef OPAQUE + gl_FragColor.a = 1.0; + #endif +}`,fA=`#define PHONG +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; + #include + #include + #include + #include +}`,lA=`#define PHONG +uniform vec3 diffuse; +uniform vec3 emissive; +uniform vec3 specular; +uniform float shininess; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + vec3 totalEmissiveRadiance = emissive; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance; + #include + #include + #include + #include + #include + #include + #include +}`,hA=`#define STANDARD +varying vec3 vViewPosition; +#ifdef USE_TRANSMISSION + varying vec3 vWorldPosition; +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; + #include + #include + #include +#ifdef USE_TRANSMISSION + vWorldPosition = worldPosition.xyz; +#endif +}`,dA=`#define STANDARD +#ifdef PHYSICAL + #define IOR + #define USE_SPECULAR +#endif +uniform vec3 diffuse; +uniform vec3 emissive; +uniform float roughness; +uniform float metalness; +uniform float opacity; +#ifdef IOR + uniform float ior; +#endif +#ifdef USE_SPECULAR + uniform float specularIntensity; + uniform vec3 specularColor; + #ifdef USE_SPECULAR_COLORMAP + uniform sampler2D specularColorMap; + #endif + #ifdef USE_SPECULAR_INTENSITYMAP + uniform sampler2D specularIntensityMap; + #endif +#endif +#ifdef USE_CLEARCOAT + uniform float clearcoat; + uniform float clearcoatRoughness; +#endif +#ifdef USE_DISPERSION + uniform float dispersion; +#endif +#ifdef USE_IRIDESCENCE + uniform float iridescence; + uniform float iridescenceIOR; + uniform float iridescenceThicknessMinimum; + uniform float iridescenceThicknessMaximum; +#endif +#ifdef USE_SHEEN + uniform vec3 sheenColor; + uniform float sheenRoughness; + #ifdef USE_SHEEN_COLORMAP + uniform sampler2D sheenColorMap; + #endif + #ifdef USE_SHEEN_ROUGHNESSMAP + uniform sampler2D sheenRoughnessMap; + #endif +#endif +#ifdef USE_ANISOTROPY + uniform vec2 anisotropyVector; + #ifdef USE_ANISOTROPYMAP + uniform sampler2D anisotropyMap; + #endif +#endif +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + vec3 totalEmissiveRadiance = emissive; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse; + vec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular; + #include + vec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance; + #ifdef USE_SHEEN + float sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor ); + outgoingLight = outgoingLight * sheenEnergyComp + sheenSpecularDirect + sheenSpecularIndirect; + #endif + #ifdef USE_CLEARCOAT + float dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) ); + vec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc ); + outgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat; + #endif + #include + #include + #include + #include + #include + #include +}`,DA=`#define TOON +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; + #include + #include + #include +}`,pA=`#define TOON +uniform vec3 diffuse; +uniform vec3 emissive; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + vec3 totalEmissiveRadiance = emissive; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance; + #include + #include + #include + #include + #include + #include +}`,xA=`uniform float size; +uniform float scale; +#include +#include +#include +#include +#include +#include +#ifdef USE_POINTS_UV + varying vec2 vUv; + uniform mat3 uvTransform; +#endif +void main() { + #ifdef USE_POINTS_UV + vUv = ( uvTransform * vec3( uv, 1 ) ).xy; + #endif + #include + #include + #include + #include + #include + #include + gl_PointSize = size; + #ifdef USE_SIZEATTENUATION + bool isPerspective = isPerspectiveMatrix( projectionMatrix ); + if ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z ); + #endif + #include + #include + #include + #include +}`,mA=`uniform vec3 diffuse; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + vec3 outgoingLight = vec3( 0.0 ); + #include + #include + #include + #include + #include + outgoingLight = diffuseColor.rgb; + #include + #include + #include + #include + #include +}`,CA=`#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include +}`,gA=`uniform vec3 color; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + gl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) ); + #include + #include + #include +}`,EA=`uniform float rotation; +uniform vec2 center; +#include +#include +#include +#include +#include +void main() { + #include + vec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 ); + vec2 scale; + scale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) ); + scale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) ); + #ifndef USE_SIZEATTENUATION + bool isPerspective = isPerspectiveMatrix( projectionMatrix ); + if ( isPerspective ) scale *= - mvPosition.z; + #endif + vec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale; + vec2 rotatedPosition; + rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y; + rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y; + mvPosition.xy += rotatedPosition; + gl_Position = projectionMatrix * mvPosition; + #include + #include + #include +}`,FA=`uniform vec3 diffuse; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + vec3 outgoingLight = vec3( 0.0 ); + #include + #include + #include + #include + #include + outgoingLight = diffuseColor.rgb; + #include + #include + #include + #include +}`,Ct={alphahash_fragment:Gy,alphahash_pars_fragment:jy,alphamap_fragment:Wy,alphamap_pars_fragment:Xy,alphatest_fragment:qy,alphatest_pars_fragment:Yy,aomap_fragment:$y,aomap_pars_fragment:Zy,batching_pars_vertex:Ky,batching_vertex:Jy,begin_vertex:Qy,beginnormal_vertex:eb,bsdfs:tb,iridescence_fragment:nb,bumpmap_pars_fragment:ib,clipping_planes_fragment:rb,clipping_planes_pars_fragment:sb,clipping_planes_pars_vertex:ob,clipping_planes_vertex:ab,color_fragment:ub,color_pars_fragment:cb,color_pars_vertex:fb,color_vertex:lb,common:hb,cube_uv_reflection_fragment:db,defaultnormal_vertex:Db,displacementmap_pars_vertex:pb,displacementmap_vertex:xb,emissivemap_fragment:mb,emissivemap_pars_fragment:Cb,colorspace_fragment:gb,colorspace_pars_fragment:Eb,envmap_fragment:Fb,envmap_common_pars_fragment:_b,envmap_pars_fragment:vb,envmap_pars_vertex:yb,envmap_physical_pars_fragment:Rb,envmap_vertex:bb,fog_vertex:Bb,fog_pars_vertex:Ab,fog_fragment:wb,fog_pars_fragment:Sb,gradientmap_pars_fragment:Mb,lightmap_pars_fragment:Tb,lights_lambert_fragment:kb,lights_lambert_pars_fragment:Pb,lights_pars_begin:Ib,lights_toon_fragment:Ob,lights_toon_pars_fragment:Lb,lights_phong_fragment:Nb,lights_phong_pars_fragment:Ub,lights_physical_fragment:Vb,lights_physical_pars_fragment:zb,lights_fragment_begin:Hb,lights_fragment_maps:Gb,lights_fragment_end:jb,logdepthbuf_fragment:Wb,logdepthbuf_pars_fragment:Xb,logdepthbuf_pars_vertex:qb,logdepthbuf_vertex:Yb,map_fragment:$b,map_pars_fragment:Zb,map_particle_fragment:Kb,map_particle_pars_fragment:Jb,metalnessmap_fragment:Qb,metalnessmap_pars_fragment:eB,morphinstance_vertex:tB,morphcolor_vertex:nB,morphnormal_vertex:iB,morphtarget_pars_vertex:rB,morphtarget_vertex:sB,normal_fragment_begin:oB,normal_fragment_maps:aB,normal_pars_fragment:uB,normal_pars_vertex:cB,normal_vertex:fB,normalmap_pars_fragment:lB,clearcoat_normal_fragment_begin:hB,clearcoat_normal_fragment_maps:dB,clearcoat_pars_fragment:DB,iridescence_pars_fragment:pB,opaque_fragment:xB,packing:mB,premultiplied_alpha_fragment:CB,project_vertex:gB,dithering_fragment:EB,dithering_pars_fragment:FB,roughnessmap_fragment:_B,roughnessmap_pars_fragment:vB,shadowmap_pars_fragment:yB,shadowmap_pars_vertex:bB,shadowmap_vertex:BB,shadowmask_pars_fragment:AB,skinbase_vertex:wB,skinning_pars_vertex:SB,skinning_vertex:MB,skinnormal_vertex:TB,specularmap_fragment:kB,specularmap_pars_fragment:PB,tonemapping_fragment:IB,tonemapping_pars_fragment:RB,transmission_fragment:OB,transmission_pars_fragment:LB,uv_pars_fragment:NB,uv_pars_vertex:UB,uv_vertex:VB,worldpos_vertex:zB,background_vert:HB,background_frag:GB,backgroundCube_vert:jB,backgroundCube_frag:WB,cube_vert:XB,cube_frag:qB,depth_vert:YB,depth_frag:$B,distanceRGBA_vert:ZB,distanceRGBA_frag:KB,equirect_vert:JB,equirect_frag:QB,linedashed_vert:eA,linedashed_frag:tA,meshbasic_vert:nA,meshbasic_frag:iA,meshlambert_vert:rA,meshlambert_frag:sA,meshmatcap_vert:oA,meshmatcap_frag:aA,meshnormal_vert:uA,meshnormal_frag:cA,meshphong_vert:fA,meshphong_frag:lA,meshphysical_vert:hA,meshphysical_frag:dA,meshtoon_vert:DA,meshtoon_frag:pA,points_vert:xA,points_frag:mA,shadow_vert:CA,shadow_frag:gA,sprite_vert:EA,sprite_frag:FA},Re={common:{diffuse:{value:new st(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new gt},alphaMap:{value:null},alphaMapTransform:{value:new gt},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new gt}},envmap:{envMap:{value:null},envMapRotation:{value:new gt},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new gt}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new gt}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new gt},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new gt},normalScale:{value:new ot(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new gt},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new gt}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new gt}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new gt}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new st(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new st(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new gt},alphaTest:{value:0},uvTransform:{value:new gt}},sprite:{diffuse:{value:new st(16777215)},opacity:{value:1},center:{value:new ot(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new gt},alphaMap:{value:null},alphaMapTransform:{value:new gt},alphaTest:{value:0}}},pr={basic:{uniforms:ei([Re.common,Re.specularmap,Re.envmap,Re.aomap,Re.lightmap,Re.fog]),vertexShader:Ct.meshbasic_vert,fragmentShader:Ct.meshbasic_frag},lambert:{uniforms:ei([Re.common,Re.specularmap,Re.envmap,Re.aomap,Re.lightmap,Re.emissivemap,Re.bumpmap,Re.normalmap,Re.displacementmap,Re.fog,Re.lights,{emissive:{value:new st(0)}}]),vertexShader:Ct.meshlambert_vert,fragmentShader:Ct.meshlambert_frag},phong:{uniforms:ei([Re.common,Re.specularmap,Re.envmap,Re.aomap,Re.lightmap,Re.emissivemap,Re.bumpmap,Re.normalmap,Re.displacementmap,Re.fog,Re.lights,{emissive:{value:new st(0)},specular:{value:new st(1118481)},shininess:{value:30}}]),vertexShader:Ct.meshphong_vert,fragmentShader:Ct.meshphong_frag},standard:{uniforms:ei([Re.common,Re.envmap,Re.aomap,Re.lightmap,Re.emissivemap,Re.bumpmap,Re.normalmap,Re.displacementmap,Re.roughnessmap,Re.metalnessmap,Re.fog,Re.lights,{emissive:{value:new st(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Ct.meshphysical_vert,fragmentShader:Ct.meshphysical_frag},toon:{uniforms:ei([Re.common,Re.aomap,Re.lightmap,Re.emissivemap,Re.bumpmap,Re.normalmap,Re.displacementmap,Re.gradientmap,Re.fog,Re.lights,{emissive:{value:new st(0)}}]),vertexShader:Ct.meshtoon_vert,fragmentShader:Ct.meshtoon_frag},matcap:{uniforms:ei([Re.common,Re.bumpmap,Re.normalmap,Re.displacementmap,Re.fog,{matcap:{value:null}}]),vertexShader:Ct.meshmatcap_vert,fragmentShader:Ct.meshmatcap_frag},points:{uniforms:ei([Re.points,Re.fog]),vertexShader:Ct.points_vert,fragmentShader:Ct.points_frag},dashed:{uniforms:ei([Re.common,Re.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Ct.linedashed_vert,fragmentShader:Ct.linedashed_frag},depth:{uniforms:ei([Re.common,Re.displacementmap]),vertexShader:Ct.depth_vert,fragmentShader:Ct.depth_frag},normal:{uniforms:ei([Re.common,Re.bumpmap,Re.normalmap,Re.displacementmap,{opacity:{value:1}}]),vertexShader:Ct.meshnormal_vert,fragmentShader:Ct.meshnormal_frag},sprite:{uniforms:ei([Re.sprite,Re.fog]),vertexShader:Ct.sprite_vert,fragmentShader:Ct.sprite_frag},background:{uniforms:{uvTransform:{value:new gt},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:Ct.background_vert,fragmentShader:Ct.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new gt}},vertexShader:Ct.backgroundCube_vert,fragmentShader:Ct.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:Ct.cube_vert,fragmentShader:Ct.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Ct.equirect_vert,fragmentShader:Ct.equirect_frag},distanceRGBA:{uniforms:ei([Re.common,Re.displacementmap,{referencePosition:{value:new z},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Ct.distanceRGBA_vert,fragmentShader:Ct.distanceRGBA_frag},shadow:{uniforms:ei([Re.lights,Re.fog,{color:{value:new st(0)},opacity:{value:1}}]),vertexShader:Ct.shadow_vert,fragmentShader:Ct.shadow_frag}};pr.physical={uniforms:ei([pr.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new gt},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new gt},clearcoatNormalScale:{value:new ot(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new gt},dispersion:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new gt},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new gt},sheen:{value:0},sheenColor:{value:new st(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new gt},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new gt},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new gt},transmissionSamplerSize:{value:new ot},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new gt},attenuationDistance:{value:0},attenuationColor:{value:new st(0)},specularColor:{value:new st(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new gt},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new gt},anisotropyVector:{value:new ot},anisotropyMap:{value:null},anisotropyMapTransform:{value:new gt}}]),vertexShader:Ct.meshphysical_vert,fragmentShader:Ct.meshphysical_frag};var Uf={r:0,b:0,g:0},eo=new ao,_A=new ut;function vA(r,e,t,n,i,s,o){let a=new st(0),u=s===!0?0:1,c,f,l=null,h=0,d=null;function x(C){let g=C.isScene===!0?C.background:null;return g&&g.isTexture&&(g=(C.backgroundBlurriness>0?t:e).get(g)),g}function m(C){let g=!1,E=x(C);E===null?p(a,u):E&&E.isColor&&(p(E,1),g=!0);let y=r.xr.getEnvironmentBlendMode();y==="additive"?n.buffers.color.setClear(0,0,0,1,o):y==="alpha-blend"&&n.buffers.color.setClear(0,0,0,0,o),(r.autoClear||g)&&r.clear(r.autoClearColor,r.autoClearDepth,r.autoClearStencil)}function D(C,g){let E=x(g);E&&(E.isCubeTexture||E.mapping===gl)?(f===void 0&&(f=new oi(new I0(1,1,1),new Er({name:"BackgroundCubeMaterial",uniforms:Ta(pr.backgroundCube.uniforms),vertexShader:pr.backgroundCube.vertexShader,fragmentShader:pr.backgroundCube.fragmentShader,side:ai,depthTest:!1,depthWrite:!1,fog:!1})),f.geometry.deleteAttribute("normal"),f.geometry.deleteAttribute("uv"),f.onBeforeRender=function(y,v,b){this.matrixWorld.copyPosition(b.matrixWorld)},Object.defineProperty(f.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),i.update(f)),eo.copy(g.backgroundRotation),eo.x*=-1,eo.y*=-1,eo.z*=-1,E.isCubeTexture&&E.isRenderTargetTexture===!1&&(eo.y*=-1,eo.z*=-1),f.material.uniforms.envMap.value=E,f.material.uniforms.flipEnvMap.value=E.isCubeTexture&&E.isRenderTargetTexture===!1?-1:1,f.material.uniforms.backgroundBlurriness.value=g.backgroundBlurriness,f.material.uniforms.backgroundIntensity.value=g.backgroundIntensity,f.material.uniforms.backgroundRotation.value.setFromMatrix4(_A.makeRotationFromEuler(eo)),f.material.toneMapped=qt.getTransfer(E.colorSpace)!==en,(l!==E||h!==E.version||d!==r.toneMapping)&&(f.material.needsUpdate=!0,l=E,h=E.version,d=r.toneMapping),f.layers.enableAll(),C.unshift(f,f.geometry,f.material,0,0,null)):E&&E.isTexture&&(c===void 0&&(c=new oi(new ol(2,2),new Er({name:"BackgroundMaterial",uniforms:Ta(pr.background.uniforms),vertexShader:pr.background.vertexShader,fragmentShader:pr.background.fragmentShader,side:Cr,depthTest:!1,depthWrite:!1,fog:!1})),c.geometry.deleteAttribute("normal"),Object.defineProperty(c.material,"map",{get:function(){return this.uniforms.t2D.value}}),i.update(c)),c.material.uniforms.t2D.value=E,c.material.uniforms.backgroundIntensity.value=g.backgroundIntensity,c.material.toneMapped=qt.getTransfer(E.colorSpace)!==en,E.matrixAutoUpdate===!0&&E.updateMatrix(),c.material.uniforms.uvTransform.value.copy(E.matrix),(l!==E||h!==E.version||d!==r.toneMapping)&&(c.material.needsUpdate=!0,l=E,h=E.version,d=r.toneMapping),c.layers.enableAll(),C.unshift(c,c.geometry,c.material,0,0,null))}function p(C,g){C.getRGB(Uf,lg(r)),n.buffers.color.setClear(Uf.r,Uf.g,Uf.b,g,o)}return{getClearColor:function(){return a},setClearColor:function(C,g=1){a.set(C),u=g,p(a,u)},getClearAlpha:function(){return u},setClearAlpha:function(C){u=C,p(a,u)},render:m,addToRenderList:D}}function yA(r,e){let t=r.getParameter(r.MAX_VERTEX_ATTRIBS),n={},i=h(null),s=i,o=!1;function a(_,M,R,P,H){let G=!1,ie=l(P,R,M);s!==ie&&(s=ie,c(s.object)),G=d(_,P,R,H),G&&x(_,P,R,H),H!==null&&e.update(H,r.ELEMENT_ARRAY_BUFFER),(G||o)&&(o=!1,E(_,M,R,P),H!==null&&r.bindBuffer(r.ELEMENT_ARRAY_BUFFER,e.get(H).buffer))}function u(){return r.createVertexArray()}function c(_){return r.bindVertexArray(_)}function f(_){return r.deleteVertexArray(_)}function l(_,M,R){let P=R.wireframe===!0,H=n[_.id];H===void 0&&(H={},n[_.id]=H);let G=H[M.id];G===void 0&&(G={},H[M.id]=G);let ie=G[P];return ie===void 0&&(ie=h(u()),G[P]=ie),ie}function h(_){let M=[],R=[],P=[];for(let H=0;H=0){let De=H[Y],be=G[Y];if(be===void 0&&(Y==="instanceMatrix"&&_.instanceMatrix&&(be=_.instanceMatrix),Y==="instanceColor"&&_.instanceColor&&(be=_.instanceColor)),De===void 0||De.attribute!==be||be&&De.data!==be.data)return!0;ie++}return s.attributesNum!==ie||s.index!==P}function x(_,M,R,P){let H={},G=M.attributes,ie=0,ce=R.getAttributes();for(let Y in ce)if(ce[Y].location>=0){let De=G[Y];De===void 0&&(Y==="instanceMatrix"&&_.instanceMatrix&&(De=_.instanceMatrix),Y==="instanceColor"&&_.instanceColor&&(De=_.instanceColor));let be={};be.attribute=De,De&&De.data&&(be.data=De.data),H[Y]=be,ie++}s.attributes=H,s.attributesNum=ie,s.index=P}function m(){let _=s.newAttributes;for(let M=0,R=_.length;M=0){let J=H[ce];if(J===void 0&&(ce==="instanceMatrix"&&_.instanceMatrix&&(J=_.instanceMatrix),ce==="instanceColor"&&_.instanceColor&&(J=_.instanceColor)),J!==void 0){let De=J.normalized,be=J.itemSize,Ae=e.get(J);if(Ae===void 0)continue;let at=Ae.buffer,ee=Ae.type,V=Ae.bytesPerElement,X=ee===r.INT||ee===r.UNSIGNED_INT||J.gpuType===tg;if(J.isInterleavedBufferAttribute){let U=J.data,re=U.stride,Q=J.offset;if(U.isInstancedInterleavedBuffer){for(let L=0;L0&&r.getShaderPrecisionFormat(r.FRAGMENT_SHADER,r.HIGH_FLOAT).precision>0)return"highp";v="mediump"}return v==="mediump"&&r.getShaderPrecisionFormat(r.VERTEX_SHADER,r.MEDIUM_FLOAT).precision>0&&r.getShaderPrecisionFormat(r.FRAGMENT_SHADER,r.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}let c=t.precision!==void 0?t.precision:"highp",f=u(c);f!==c&&(console.warn("THREE.WebGLRenderer:",c,"not supported, using",f,"instead."),c=f);let l=t.logarithmicDepthBuffer===!0,h=r.getParameter(r.MAX_TEXTURE_IMAGE_UNITS),d=r.getParameter(r.MAX_VERTEX_TEXTURE_IMAGE_UNITS),x=r.getParameter(r.MAX_TEXTURE_SIZE),m=r.getParameter(r.MAX_CUBE_MAP_TEXTURE_SIZE),D=r.getParameter(r.MAX_VERTEX_ATTRIBS),p=r.getParameter(r.MAX_VERTEX_UNIFORM_VECTORS),C=r.getParameter(r.MAX_VARYING_VECTORS),g=r.getParameter(r.MAX_FRAGMENT_UNIFORM_VECTORS),E=d>0,y=r.getParameter(r.MAX_SAMPLES);return{isWebGL2:!0,getMaxAnisotropy:s,getMaxPrecision:u,textureFormatReadable:o,textureTypeReadable:a,precision:c,logarithmicDepthBuffer:l,maxTextures:h,maxVertexTextures:d,maxTextureSize:x,maxCubemapSize:m,maxAttributes:D,maxVertexUniforms:p,maxVaryings:C,maxFragmentUniforms:g,vertexTextures:E,maxSamples:y}}function AA(r){let e=this,t=null,n=0,i=!1,s=!1,o=new Hr,a=new gt,u={value:null,needsUpdate:!1};this.uniform=u,this.numPlanes=0,this.numIntersection=0,this.init=function(l,h){let d=l.length!==0||h||n!==0||i;return i=h,n=l.length,d},this.beginShadows=function(){s=!0,f(null)},this.endShadows=function(){s=!1},this.setGlobalState=function(l,h){t=f(l,h,0)},this.setState=function(l,h,d){let x=l.clippingPlanes,m=l.clipIntersection,D=l.clipShadows,p=r.get(l);if(!i||x===null||x.length===0||s&&!D)s?f(null):c();else{let C=s?0:n,g=C*4,E=p.clippingState||null;u.value=E,E=f(x,h,g,d);for(let y=0;y!==g;++y)E[y]=t[y];p.clippingState=E,this.numIntersection=m?this.numPlanes:0,this.numPlanes+=C}};function c(){u.value!==t&&(u.value=t,u.needsUpdate=n>0),e.numPlanes=n,e.numIntersection=0}function f(l,h,d,x){let m=l!==null?l.length:0,D=null;if(m!==0){if(D=u.value,x!==!0||D===null){let p=d+m*4,C=h.matrixWorldInverse;a.getNormalMatrix(C),(D===null||D.length0){let c=new fD(u.height);return c.fromEquirectangularTexture(r,o),e.set(o,c),o.addEventListener("dispose",i),t(c.texture,o.mapping)}else return null}}return o}function i(o){let a=o.target;a.removeEventListener("dispose",i);let u=e.get(a);u!==void 0&&(e.delete(a),u.dispose())}function s(){e=new WeakMap}return{get:n,dispose:s}}var lD=class extends rl{constructor(e=-1,t=1,n=1,i=-1,s=.1,o=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=n,this.bottom=i,this.near=s,this.far=o,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=e.view===null?null:Object.assign({},e.view),this}setViewOffset(e,t,n,i,s,o){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=i,this.view.width=s,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){let e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),n=(this.right+this.left)/2,i=(this.top+this.bottom)/2,s=n-e,o=n+e,a=i+t,u=i-t;if(this.view!==null&&this.view.enabled){let c=(this.right-this.left)/this.view.fullWidth/this.zoom,f=(this.top-this.bottom)/this.view.fullHeight/this.zoom;s+=c*this.view.offsetX,o=s+c*this.view.width,a-=f*this.view.offsetY,u=a-f*this.view.height}this.projectionMatrix.makeOrthographic(s,o,a,u,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){let t=super.toJSON(e);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,this.view!==null&&(t.object.view=Object.assign({},this.view)),t}},_a=4,FC=[.125,.215,.35,.446,.526,.582],ro=20,Xd=new lD,_C=new st,qd=null,Yd=0,$d=0,Zd=!1,no=(1+Math.sqrt(5))/2,ga=1/no,vC=[new z(-no,ga,0),new z(no,ga,0),new z(-ga,0,no),new z(ga,0,no),new z(0,no,-ga),new z(0,no,ga),new z(-1,1,-1),new z(1,1,-1),new z(-1,1,1),new z(1,1,1)],al=class{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,t=0,n=.1,i=100){qd=this._renderer.getRenderTarget(),Yd=this._renderer.getActiveCubeFace(),$d=this._renderer.getActiveMipmapLevel(),Zd=this._renderer.xr.enabled,this._renderer.xr.enabled=!1,this._setSize(256);let s=this._allocateTargets();return s.depthBuffer=!0,this._sceneToCubeUV(e,n,i,s),t>0&&this._blur(s,0,0,t),this._applyPMREM(s),this._cleanup(s),s}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=BC(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=bC(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e2?g:0,g,g),f.setRenderTarget(i),m&&f.render(x,a),f.render(e,a)}x.geometry.dispose(),x.material.dispose(),f.toneMapping=h,f.autoClear=l,e.background=D}_textureToCubeUV(e,t){let n=this._renderer,i=e.mapping===Aa||e.mapping===wa;i?(this._cubemapMaterial===null&&(this._cubemapMaterial=BC()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=bC());let s=i?this._cubemapMaterial:this._equirectMaterial,o=new oi(this._lodPlanes[0],s),a=s.uniforms;a.envMap.value=e;let u=this._cubeSize;Vf(t,0,0,3*u,2*u),n.setRenderTarget(t),n.render(o,Xd)}_applyPMREM(e){let t=this._renderer,n=t.autoClear;t.autoClear=!1;let i=this._lodPlanes.length;for(let s=1;sro&&console.warn(`sigmaRadians, ${s}, is too large and will clip, as it requested ${D} samples when the maximum is set to ${ro}`);let p=[],C=0;for(let b=0;bg-_a?i-g+_a:0),v=4*(this._cubeSize-E);Vf(t,y,v,3*E,2*E),u.setRenderTarget(t),u.render(l,Xd)}};function SA(r){let e=[],t=[],n=[],i=r,s=r-_a+1+FC.length;for(let o=0;or-_a?u=FC[o-r+_a-1]:o===0&&(u=0),n.push(u);let c=1/(a-2),f=-c,l=1+c,h=[f,f,l,f,l,l,f,f,l,l,f,l],d=6,x=6,m=3,D=2,p=1,C=new Float32Array(m*x*d),g=new Float32Array(D*x*d),E=new Float32Array(p*x*d);for(let v=0;v2?0:-1,F=[b,B,0,b+2/3,B,0,b+2/3,B+1,0,b,B,0,b+2/3,B+1,0,b,B+1,0];C.set(F,m*x*v),g.set(h,D*x*v);let _=[v,v,v,v,v,v];E.set(_,p*x*v)}let y=new Mn;y.setAttribute("position",new Ii(C,m)),y.setAttribute("uv",new Ii(g,D)),y.setAttribute("faceIndex",new Ii(E,p)),e.push(y),i>_a&&i--}return{lodPlanes:e,sizeLods:t,sigmas:n}}function yC(r,e,t){let n=new Wr(r,e,t);return n.texture.mapping=gl,n.texture.name="PMREM.cubeUv",n.scissorTest=!0,n}function Vf(r,e,t,n,i){r.viewport.set(e,t,n,i),r.scissor.set(e,t,n,i)}function MA(r,e,t){let n=new Float32Array(ro),i=new z(0,1,0);return new Er({name:"SphericalGaussianBlur",defines:{n:ro,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/t,CUBEUV_MAX_MIP:`${r}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:n},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:i}},vertexShader:jD(),fragmentShader:` + + precision mediump float; + precision mediump int; + + varying vec3 vOutputDirection; + + uniform sampler2D envMap; + uniform int samples; + uniform float weights[ n ]; + uniform bool latitudinal; + uniform float dTheta; + uniform float mipInt; + uniform vec3 poleAxis; + + #define ENVMAP_TYPE_CUBE_UV + #include + + vec3 getSample( float theta, vec3 axis ) { + + float cosTheta = cos( theta ); + // Rodrigues' axis-angle rotation + vec3 sampleDirection = vOutputDirection * cosTheta + + cross( axis, vOutputDirection ) * sin( theta ) + + axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta ); + + return bilinearCubeUV( envMap, sampleDirection, mipInt ); + + } + + void main() { + + vec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection ); + + if ( all( equal( axis, vec3( 0.0 ) ) ) ) { + + axis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x ); + + } + + axis = normalize( axis ); + + gl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 ); + gl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis ); + + for ( int i = 1; i < n; i++ ) { + + if ( i >= samples ) { + + break; + + } + + float theta = dTheta * float( i ); + gl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis ); + gl_FragColor.rgb += weights[ i ] * getSample( theta, axis ); + + } + + } + `,blending:Es,depthTest:!1,depthWrite:!1})}function bC(){return new Er({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:jD(),fragmentShader:` + + precision mediump float; + precision mediump int; + + varying vec3 vOutputDirection; + + uniform sampler2D envMap; + + #include + + void main() { + + vec3 outputDirection = normalize( vOutputDirection ); + vec2 uv = equirectUv( outputDirection ); + + gl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 ); + + } + `,blending:Es,depthTest:!1,depthWrite:!1})}function BC(){return new Er({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:jD(),fragmentShader:` + + precision mediump float; + precision mediump int; + + uniform float flipEnvMap; + + varying vec3 vOutputDirection; + + uniform samplerCube envMap; + + void main() { + + gl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) ); + + } + `,blending:Es,depthTest:!1,depthWrite:!1})}function jD(){return` + + precision mediump float; + precision mediump int; + + attribute float faceIndex; + + varying vec3 vOutputDirection; + + // RH coordinate system; PMREM face-indexing convention + vec3 getDirection( vec2 uv, float face ) { + + uv = 2.0 * uv - 1.0; + + vec3 direction = vec3( uv, 1.0 ); + + if ( face == 0.0 ) { + + direction = direction.zyx; // ( 1, v, u ) pos x + + } else if ( face == 1.0 ) { + + direction = direction.xzy; + direction.xz *= -1.0; // ( -u, 1, -v ) pos y + + } else if ( face == 2.0 ) { + + direction.x *= -1.0; // ( -u, v, 1 ) pos z + + } else if ( face == 3.0 ) { + + direction = direction.zyx; + direction.xz *= -1.0; // ( -1, v, -u ) neg x + + } else if ( face == 4.0 ) { + + direction = direction.xzy; + direction.xy *= -1.0; // ( -u, -1, v ) neg y + + } else if ( face == 5.0 ) { + + direction.z *= -1.0; // ( u, v, -1 ) neg z + + } + + return direction; + + } + + void main() { + + vOutputDirection = getDirection( uv, faceIndex ); + gl_Position = vec4( position, 1.0 ); + + } + `}function TA(r){let e=new WeakMap,t=null;function n(a){if(a&&a.isTexture){let u=a.mapping,c=u===iD||u===rD,f=u===Aa||u===wa;if(c||f){let l=e.get(a),h=l!==void 0?l.texture.pmremVersion:0;if(a.isRenderTargetTexture&&a.pmremVersion!==h)return t===null&&(t=new al(r)),l=c?t.fromEquirectangular(a,l):t.fromCubemap(a,l),l.texture.pmremVersion=a.pmremVersion,e.set(a,l),l.texture;if(l!==void 0)return l.texture;{let d=a.image;return c&&d&&d.height>0||f&&d&&i(d)?(t===null&&(t=new al(r)),l=c?t.fromEquirectangular(a):t.fromCubemap(a),l.texture.pmremVersion=a.pmremVersion,e.set(a,l),a.addEventListener("dispose",s),l.texture):null}}}return a}function i(a){let u=0,c=6;for(let f=0;fe.maxTextureSize&&(v=Math.ceil(y/e.maxTextureSize),y=e.maxTextureSize);let b=new Float32Array(y*v*4*l),B=new el(b,y,v,l);B.type=gs,B.needsUpdate=!0;let F=E*4;for(let M=0;M0)return r;let i=e*t,s=AC[i];if(s===void 0&&(s=new Float32Array(i),AC[i]=s),e!==0){n.toArray(s,0);for(let o=1,a=0;o!==e;++o)a+=t,r[o].toArray(s,a)}return s}function yn(r,e){if(r.length!==e.length)return!1;for(let t=0,n=r.length;t":" "} ${a}: ${t[o]}`)}return n.join(` +`)}function ww(r){let e=qt.getPrimaries(qt.workingColorSpace),t=qt.getPrimaries(r),n;switch(e===t?n="":e===Kf&&t===Zf?n="LinearDisplayP3ToLinearSRGB":e===Zf&&t===Kf&&(n="LinearSRGBToLinearDisplayP3"),r){case ys:case Fl:return[n,"LinearTransferOETF"];case ki:case HD:return[n,"sRGBTransferOETF"];default:return console.warn("THREE.WebGLProgram: Unsupported color space:",r),[n,"LinearTransferOETF"]}}function IC(r,e,t){let n=r.getShaderParameter(e,r.COMPILE_STATUS),i=r.getShaderInfoLog(e).trim();if(n&&i==="")return"";let s=/ERROR: 0:(\d+)/.exec(i);if(s){let o=parseInt(s[1]);return t.toUpperCase()+` + +`+i+` + +`+Aw(r.getShaderSource(e),o)}else return i}function Sw(r,e){let t=ww(e);return`vec4 ${r}( vec4 value ) { return ${t[0]}( ${t[1]}( value ) ); }`}function Mw(r,e){let t;switch(e){case T6:t="Linear";break;case k6:t="Reinhard";break;case P6:t="OptimizedCineon";break;case I6:t="ACESFilmic";break;case O6:t="AgX";break;case L6:t="Neutral";break;case R6:t="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",e),t="Linear"}return"vec3 "+r+"( vec3 color ) { return "+t+"ToneMapping( color ); }"}function Tw(r){return[r.extensionClipCullDistance?"#extension GL_ANGLE_clip_cull_distance : require":"",r.extensionMultiDraw?"#extension GL_ANGLE_multi_draw : require":""].filter(b0).join(` +`)}function kw(r){let e=[];for(let t in r){let n=r[t];n!==!1&&e.push("#define "+t+" "+n)}return e.join(` +`)}function Pw(r,e){let t={},n=r.getProgramParameter(e,r.ACTIVE_ATTRIBUTES);for(let i=0;i/gm;function pD(r){return r.replace(Iw,Ow)}var Rw=new Map;function Ow(r,e){let t=Ct[e];if(t===void 0){let n=Rw.get(e);if(n!==void 0)t=Ct[n],console.warn('THREE.WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.',e,n);else throw new Error("Can not resolve #include <"+e+">")}return pD(t)}var Lw=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function LC(r){return r.replace(Lw,Nw)}function Nw(r,e,t,n){let i="";for(let s=parseInt(e);s0&&(D+=` +`),p=["#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,x].filter(b0).join(` +`),p.length>0&&(p+=` +`)):(D=[NC(t),"#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,x,t.extensionClipCullDistance?"#define USE_CLIP_DISTANCE":"",t.batching?"#define USE_BATCHING":"",t.instancing?"#define USE_INSTANCING":"",t.instancingColor?"#define USE_INSTANCING_COLOR":"",t.instancingMorph?"#define USE_INSTANCING_MORPH":"",t.useFog&&t.fog?"#define USE_FOG":"",t.useFog&&t.fogExp2?"#define FOG_EXP2":"",t.map?"#define USE_MAP":"",t.envMap?"#define USE_ENVMAP":"",t.envMap?"#define "+f:"",t.lightMap?"#define USE_LIGHTMAP":"",t.aoMap?"#define USE_AOMAP":"",t.bumpMap?"#define USE_BUMPMAP":"",t.normalMap?"#define USE_NORMALMAP":"",t.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",t.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",t.displacementMap?"#define USE_DISPLACEMENTMAP":"",t.emissiveMap?"#define USE_EMISSIVEMAP":"",t.anisotropy?"#define USE_ANISOTROPY":"",t.anisotropyMap?"#define USE_ANISOTROPYMAP":"",t.clearcoatMap?"#define USE_CLEARCOATMAP":"",t.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",t.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",t.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",t.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",t.specularMap?"#define USE_SPECULARMAP":"",t.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",t.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",t.roughnessMap?"#define USE_ROUGHNESSMAP":"",t.metalnessMap?"#define USE_METALNESSMAP":"",t.alphaMap?"#define USE_ALPHAMAP":"",t.alphaHash?"#define USE_ALPHAHASH":"",t.transmission?"#define USE_TRANSMISSION":"",t.transmissionMap?"#define USE_TRANSMISSIONMAP":"",t.thicknessMap?"#define USE_THICKNESSMAP":"",t.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",t.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",t.mapUv?"#define MAP_UV "+t.mapUv:"",t.alphaMapUv?"#define ALPHAMAP_UV "+t.alphaMapUv:"",t.lightMapUv?"#define LIGHTMAP_UV "+t.lightMapUv:"",t.aoMapUv?"#define AOMAP_UV "+t.aoMapUv:"",t.emissiveMapUv?"#define EMISSIVEMAP_UV "+t.emissiveMapUv:"",t.bumpMapUv?"#define BUMPMAP_UV "+t.bumpMapUv:"",t.normalMapUv?"#define NORMALMAP_UV "+t.normalMapUv:"",t.displacementMapUv?"#define DISPLACEMENTMAP_UV "+t.displacementMapUv:"",t.metalnessMapUv?"#define METALNESSMAP_UV "+t.metalnessMapUv:"",t.roughnessMapUv?"#define ROUGHNESSMAP_UV "+t.roughnessMapUv:"",t.anisotropyMapUv?"#define ANISOTROPYMAP_UV "+t.anisotropyMapUv:"",t.clearcoatMapUv?"#define CLEARCOATMAP_UV "+t.clearcoatMapUv:"",t.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+t.clearcoatNormalMapUv:"",t.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+t.clearcoatRoughnessMapUv:"",t.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+t.iridescenceMapUv:"",t.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+t.iridescenceThicknessMapUv:"",t.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+t.sheenColorMapUv:"",t.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+t.sheenRoughnessMapUv:"",t.specularMapUv?"#define SPECULARMAP_UV "+t.specularMapUv:"",t.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+t.specularColorMapUv:"",t.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+t.specularIntensityMapUv:"",t.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+t.transmissionMapUv:"",t.thicknessMapUv?"#define THICKNESSMAP_UV "+t.thicknessMapUv:"",t.vertexTangents&&t.flatShading===!1?"#define USE_TANGENT":"",t.vertexColors?"#define USE_COLOR":"",t.vertexAlphas?"#define USE_COLOR_ALPHA":"",t.vertexUv1s?"#define USE_UV1":"",t.vertexUv2s?"#define USE_UV2":"",t.vertexUv3s?"#define USE_UV3":"",t.pointsUvs?"#define USE_POINTS_UV":"",t.flatShading?"#define FLAT_SHADED":"",t.skinning?"#define USE_SKINNING":"",t.morphTargets?"#define USE_MORPHTARGETS":"",t.morphNormals&&t.flatShading===!1?"#define USE_MORPHNORMALS":"",t.morphColors?"#define USE_MORPHCOLORS":"",t.morphTargetsCount>0?"#define MORPHTARGETS_TEXTURE":"",t.morphTargetsCount>0?"#define MORPHTARGETS_TEXTURE_STRIDE "+t.morphTextureStride:"",t.morphTargetsCount>0?"#define MORPHTARGETS_COUNT "+t.morphTargetsCount:"",t.doubleSided?"#define DOUBLE_SIDED":"",t.flipSided?"#define FLIP_SIDED":"",t.shadowMapEnabled?"#define USE_SHADOWMAP":"",t.shadowMapEnabled?"#define "+u:"",t.sizeAttenuation?"#define USE_SIZEATTENUATION":"",t.numLightProbes>0?"#define USE_LIGHT_PROBES":"",t.useLegacyLights?"#define LEGACY_LIGHTS":"",t.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING"," attribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR"," attribute vec3 instanceColor;","#endif","#ifdef USE_INSTANCING_MORPH"," uniform sampler2D morphTexture;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_UV1"," attribute vec2 uv1;","#endif","#ifdef USE_UV2"," attribute vec2 uv2;","#endif","#ifdef USE_UV3"," attribute vec2 uv3;","#endif","#ifdef USE_TANGENT"," attribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )"," attribute vec4 color;","#elif defined( USE_COLOR )"," attribute vec3 color;","#endif","#if ( defined( USE_MORPHTARGETS ) && ! defined( MORPHTARGETS_TEXTURE ) )"," attribute vec3 morphTarget0;"," attribute vec3 morphTarget1;"," attribute vec3 morphTarget2;"," attribute vec3 morphTarget3;"," #ifdef USE_MORPHNORMALS"," attribute vec3 morphNormal0;"," attribute vec3 morphNormal1;"," attribute vec3 morphNormal2;"," attribute vec3 morphNormal3;"," #else"," attribute vec3 morphTarget4;"," attribute vec3 morphTarget5;"," attribute vec3 morphTarget6;"," attribute vec3 morphTarget7;"," #endif","#endif","#ifdef USE_SKINNING"," attribute vec4 skinIndex;"," attribute vec4 skinWeight;","#endif",` +`].filter(b0).join(` +`),p=[NC(t),"#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,x,t.useFog&&t.fog?"#define USE_FOG":"",t.useFog&&t.fogExp2?"#define FOG_EXP2":"",t.alphaToCoverage?"#define ALPHA_TO_COVERAGE":"",t.map?"#define USE_MAP":"",t.matcap?"#define USE_MATCAP":"",t.envMap?"#define USE_ENVMAP":"",t.envMap?"#define "+c:"",t.envMap?"#define "+f:"",t.envMap?"#define "+l:"",h?"#define CUBEUV_TEXEL_WIDTH "+h.texelWidth:"",h?"#define CUBEUV_TEXEL_HEIGHT "+h.texelHeight:"",h?"#define CUBEUV_MAX_MIP "+h.maxMip+".0":"",t.lightMap?"#define USE_LIGHTMAP":"",t.aoMap?"#define USE_AOMAP":"",t.bumpMap?"#define USE_BUMPMAP":"",t.normalMap?"#define USE_NORMALMAP":"",t.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",t.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",t.emissiveMap?"#define USE_EMISSIVEMAP":"",t.anisotropy?"#define USE_ANISOTROPY":"",t.anisotropyMap?"#define USE_ANISOTROPYMAP":"",t.clearcoat?"#define USE_CLEARCOAT":"",t.clearcoatMap?"#define USE_CLEARCOATMAP":"",t.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",t.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",t.dispersion?"#define USE_DISPERSION":"",t.iridescence?"#define USE_IRIDESCENCE":"",t.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",t.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",t.specularMap?"#define USE_SPECULARMAP":"",t.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",t.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",t.roughnessMap?"#define USE_ROUGHNESSMAP":"",t.metalnessMap?"#define USE_METALNESSMAP":"",t.alphaMap?"#define USE_ALPHAMAP":"",t.alphaTest?"#define USE_ALPHATEST":"",t.alphaHash?"#define USE_ALPHAHASH":"",t.sheen?"#define USE_SHEEN":"",t.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",t.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",t.transmission?"#define USE_TRANSMISSION":"",t.transmissionMap?"#define USE_TRANSMISSIONMAP":"",t.thicknessMap?"#define USE_THICKNESSMAP":"",t.vertexTangents&&t.flatShading===!1?"#define USE_TANGENT":"",t.vertexColors||t.instancingColor?"#define USE_COLOR":"",t.vertexAlphas?"#define USE_COLOR_ALPHA":"",t.vertexUv1s?"#define USE_UV1":"",t.vertexUv2s?"#define USE_UV2":"",t.vertexUv3s?"#define USE_UV3":"",t.pointsUvs?"#define USE_POINTS_UV":"",t.gradientMap?"#define USE_GRADIENTMAP":"",t.flatShading?"#define FLAT_SHADED":"",t.doubleSided?"#define DOUBLE_SIDED":"",t.flipSided?"#define FLIP_SIDED":"",t.shadowMapEnabled?"#define USE_SHADOWMAP":"",t.shadowMapEnabled?"#define "+u:"",t.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",t.numLightProbes>0?"#define USE_LIGHT_PROBES":"",t.useLegacyLights?"#define LEGACY_LIGHTS":"",t.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",t.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",t.toneMapping!==Fs?"#define TONE_MAPPING":"",t.toneMapping!==Fs?Ct.tonemapping_pars_fragment:"",t.toneMapping!==Fs?Mw("toneMapping",t.toneMapping):"",t.dithering?"#define DITHERING":"",t.opaque?"#define OPAQUE":"",Ct.colorspace_pars_fragment,Sw("linearToOutputTexel",t.outputColorSpace),t.useDepthPacking?"#define DEPTH_PACKING "+t.depthPacking:"",` +`].filter(b0).join(` +`)),o=pD(o),o=RC(o,t),o=OC(o,t),a=pD(a),a=RC(a,t),a=OC(a,t),o=LC(o),a=LC(a),t.isRawShaderMaterial!==!0&&(C=`#version 300 es +`,D=[d,"#define attribute in","#define varying out","#define texture2D texture"].join(` +`)+` +`+D,p=["#define varying in",t.glslVersion===eC?"":"layout(location = 0) out highp vec4 pc_fragColor;",t.glslVersion===eC?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join(` +`)+` +`+p);let g=C+D+o,E=C+p+a,y=PC(i,i.VERTEX_SHADER,g),v=PC(i,i.FRAGMENT_SHADER,E);i.attachShader(m,y),i.attachShader(m,v),t.index0AttributeName!==void 0?i.bindAttribLocation(m,0,t.index0AttributeName):t.morphTargets===!0&&i.bindAttribLocation(m,0,"position"),i.linkProgram(m);function b(M){if(r.debug.checkShaderErrors){let R=i.getProgramInfoLog(m).trim(),P=i.getShaderInfoLog(y).trim(),H=i.getShaderInfoLog(v).trim(),G=!0,ie=!0;if(i.getProgramParameter(m,i.LINK_STATUS)===!1)if(G=!1,typeof r.debug.onShaderError=="function")r.debug.onShaderError(i,m,y,v);else{let ce=IC(i,y,"vertex"),Y=IC(i,v,"fragment");console.error("THREE.WebGLProgram: Shader Error "+i.getError()+" - VALIDATE_STATUS "+i.getProgramParameter(m,i.VALIDATE_STATUS)+` + +Material Name: `+M.name+` +Material Type: `+M.type+` + +Program Info Log: `+R+` +`+ce+` +`+Y)}else R!==""?console.warn("THREE.WebGLProgram: Program Info Log:",R):(P===""||H==="")&&(ie=!1);ie&&(M.diagnostics={runnable:G,programLog:R,vertexShader:{log:P,prefix:D},fragmentShader:{log:H,prefix:p}})}i.deleteShader(y),i.deleteShader(v),B=new Ba(i,m),F=Pw(i,m)}let B;this.getUniforms=function(){return B===void 0&&b(this),B};let F;this.getAttributes=function(){return F===void 0&&b(this),F};let _=t.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return _===!1&&(_=i.getProgramParameter(m,bw)),_},this.destroy=function(){n.releaseStatesOfProgram(this),i.deleteProgram(m),this.program=void 0},this.type=t.shaderType,this.name=t.shaderName,this.id=Bw++,this.cacheKey=e,this.usedTimes=1,this.program=m,this.vertexShader=y,this.fragmentShader=v,this}var Ww=0,xD=class{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){let t=e.vertexShader,n=e.fragmentShader,i=this._getShaderStage(t),s=this._getShaderStage(n),o=this._getShaderCacheForMaterial(e);return o.has(i)===!1&&(o.add(i),i.usedTimes++),o.has(s)===!1&&(o.add(s),s.usedTimes++),this}remove(e){let t=this.materialCache.get(e);for(let n of t)n.usedTimes--,n.usedTimes===0&&this.shaderCache.delete(n.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){let t=this.materialCache,n=t.get(e);return n===void 0&&(n=new Set,t.set(e,n)),n}_getShaderStage(e){let t=this.shaderCache,n=t.get(e);return n===void 0&&(n=new mD(e),t.set(e,n)),n}},mD=class{constructor(e){this.id=Ww++,this.code=e,this.usedTimes=0}};function Xw(r,e,t,n,i,s,o){let a=new P0,u=new xD,c=new Set,f=[],l=i.logarithmicDepthBuffer,h=i.vertexTextures,d=i.precision,x={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function m(F){return c.add(F),F===0?"uv":`uv${F}`}function D(F,_,M,R,P){let H=R.fog,G=P.geometry,ie=F.isMeshStandardMaterial?R.environment:null,ce=(F.isMeshStandardMaterial?t:e).get(F.envMap||ie),Y=ce&&ce.mapping===gl?ce.image.height:null,J=x[F.type];F.precision!==null&&(d=i.getMaxPrecision(F.precision),d!==F.precision&&console.warn("THREE.WebGLProgram.getParameters:",F.precision,"not supported, using",d,"instead."));let De=G.morphAttributes.position||G.morphAttributes.normal||G.morphAttributes.color,be=De!==void 0?De.length:0,Ae=0;G.morphAttributes.position!==void 0&&(Ae=1),G.morphAttributes.normal!==void 0&&(Ae=2),G.morphAttributes.color!==void 0&&(Ae=3);let at,ee,V,X;if(J){let zt=pr[J];at=zt.vertexShader,ee=zt.fragmentShader}else at=F.vertexShader,ee=F.fragmentShader,u.update(F),V=u.getVertexShaderID(F),X=u.getFragmentShaderID(F);let U=r.getRenderTarget(),re=P.isInstancedMesh===!0,Q=P.isBatchedMesh===!0,L=!!F.map,we=!!F.matcap,Ce=!!ce,Xe=!!F.aoMap,Oe=!!F.lightMap,Be=!!F.bumpMap,Ke=!!F.normalMap,Ye=!!F.displacementMap,Jt=!!F.emissiveMap,O=!!F.metalnessMap,w=!!F.roughnessMap,le=F.anisotropy>0,xe=F.clearcoat>0,_e=F.dispersion>0,ve=F.iridescence>0,nt=F.sheen>0,He=F.transmission>0,Ue=le&&!!F.anisotropyMap,Et=xe&&!!F.clearcoatMap,Se=xe&&!!F.clearcoatNormalMap,tt=xe&&!!F.clearcoatRoughnessMap,kt=ve&&!!F.iridescenceMap,it=ve&&!!F.iridescenceThicknessMap,We=nt&&!!F.sheenColorMap,Ft=nt&&!!F.sheenRoughnessMap,wt=!!F.specularMap,ln=!!F.specularColorMap,_t=!!F.specularIntensityMap,q=He&&!!F.transmissionMap,ge=He&&!!F.thicknessMap,pe=!!F.gradientMap,Le=!!F.alphaMap,je=F.alphaTest>0,Pt=!!F.alphaHash,Qt=!!F.extensions,un=Fs;F.toneMapped&&(U===null||U.isXRRenderTarget===!0)&&(un=r.toneMapping);let Nn={shaderID:J,shaderType:F.type,shaderName:F.name,vertexShader:at,fragmentShader:ee,defines:F.defines,customVertexShaderID:V,customFragmentShaderID:X,isRawShaderMaterial:F.isRawShaderMaterial===!0,glslVersion:F.glslVersion,precision:d,batching:Q,instancing:re,instancingColor:re&&P.instanceColor!==null,instancingMorph:re&&P.morphTexture!==null,supportsVertexTextures:h,outputColorSpace:U===null?r.outputColorSpace:U.isXRRenderTarget===!0?U.texture.colorSpace:ys,alphaToCoverage:!!F.alphaToCoverage,map:L,matcap:we,envMap:Ce,envMapMode:Ce&&ce.mapping,envMapCubeUVHeight:Y,aoMap:Xe,lightMap:Oe,bumpMap:Be,normalMap:Ke,displacementMap:h&&Ye,emissiveMap:Jt,normalMapObjectSpace:Ke&&F.normalMapType===K6,normalMapTangentSpace:Ke&&F.normalMapType===ag,metalnessMap:O,roughnessMap:w,anisotropy:le,anisotropyMap:Ue,clearcoat:xe,clearcoatMap:Et,clearcoatNormalMap:Se,clearcoatRoughnessMap:tt,dispersion:_e,iridescence:ve,iridescenceMap:kt,iridescenceThicknessMap:it,sheen:nt,sheenColorMap:We,sheenRoughnessMap:Ft,specularMap:wt,specularColorMap:ln,specularIntensityMap:_t,transmission:He,transmissionMap:q,thicknessMap:ge,gradientMap:pe,opaque:F.transparent===!1&&F.blending===va&&F.alphaToCoverage===!1,alphaMap:Le,alphaTest:je,alphaHash:Pt,combine:F.combine,mapUv:L&&m(F.map.channel),aoMapUv:Xe&&m(F.aoMap.channel),lightMapUv:Oe&&m(F.lightMap.channel),bumpMapUv:Be&&m(F.bumpMap.channel),normalMapUv:Ke&&m(F.normalMap.channel),displacementMapUv:Ye&&m(F.displacementMap.channel),emissiveMapUv:Jt&&m(F.emissiveMap.channel),metalnessMapUv:O&&m(F.metalnessMap.channel),roughnessMapUv:w&&m(F.roughnessMap.channel),anisotropyMapUv:Ue&&m(F.anisotropyMap.channel),clearcoatMapUv:Et&&m(F.clearcoatMap.channel),clearcoatNormalMapUv:Se&&m(F.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:tt&&m(F.clearcoatRoughnessMap.channel),iridescenceMapUv:kt&&m(F.iridescenceMap.channel),iridescenceThicknessMapUv:it&&m(F.iridescenceThicknessMap.channel),sheenColorMapUv:We&&m(F.sheenColorMap.channel),sheenRoughnessMapUv:Ft&&m(F.sheenRoughnessMap.channel),specularMapUv:wt&&m(F.specularMap.channel),specularColorMapUv:ln&&m(F.specularColorMap.channel),specularIntensityMapUv:_t&&m(F.specularIntensityMap.channel),transmissionMapUv:q&&m(F.transmissionMap.channel),thicknessMapUv:ge&&m(F.thicknessMap.channel),alphaMapUv:Le&&m(F.alphaMap.channel),vertexTangents:!!G.attributes.tangent&&(Ke||le),vertexColors:F.vertexColors,vertexAlphas:F.vertexColors===!0&&!!G.attributes.color&&G.attributes.color.itemSize===4,pointsUvs:P.isPoints===!0&&!!G.attributes.uv&&(L||Le),fog:!!H,useFog:F.fog===!0,fogExp2:!!H&&H.isFogExp2,flatShading:F.flatShading===!0,sizeAttenuation:F.sizeAttenuation===!0,logarithmicDepthBuffer:l,skinning:P.isSkinnedMesh===!0,morphTargets:G.morphAttributes.position!==void 0,morphNormals:G.morphAttributes.normal!==void 0,morphColors:G.morphAttributes.color!==void 0,morphTargetsCount:be,morphTextureStride:Ae,numDirLights:_.directional.length,numPointLights:_.point.length,numSpotLights:_.spot.length,numSpotLightMaps:_.spotLightMap.length,numRectAreaLights:_.rectArea.length,numHemiLights:_.hemi.length,numDirLightShadows:_.directionalShadowMap.length,numPointLightShadows:_.pointShadowMap.length,numSpotLightShadows:_.spotShadowMap.length,numSpotLightShadowsWithMaps:_.numSpotLightShadowsWithMaps,numLightProbes:_.numLightProbes,numClippingPlanes:o.numPlanes,numClipIntersection:o.numIntersection,dithering:F.dithering,shadowMapEnabled:r.shadowMap.enabled&&M.length>0,shadowMapType:r.shadowMap.type,toneMapping:un,useLegacyLights:r._useLegacyLights,decodeVideoTexture:L&&F.map.isVideoTexture===!0&&qt.getTransfer(F.map.colorSpace)===en,premultipliedAlpha:F.premultipliedAlpha,doubleSided:F.side===Gr,flipSided:F.side===ai,useDepthPacking:F.depthPacking>=0,depthPacking:F.depthPacking||0,index0AttributeName:F.index0AttributeName,extensionClipCullDistance:Qt&&F.extensions.clipCullDistance===!0&&n.has("WEBGL_clip_cull_distance"),extensionMultiDraw:Qt&&F.extensions.multiDraw===!0&&n.has("WEBGL_multi_draw"),rendererExtensionParallelShaderCompile:n.has("KHR_parallel_shader_compile"),customProgramCacheKey:F.customProgramCacheKey()};return Nn.vertexUv1s=c.has(1),Nn.vertexUv2s=c.has(2),Nn.vertexUv3s=c.has(3),c.clear(),Nn}function p(F){let _=[];if(F.shaderID?_.push(F.shaderID):(_.push(F.customVertexShaderID),_.push(F.customFragmentShaderID)),F.defines!==void 0)for(let M in F.defines)_.push(M),_.push(F.defines[M]);return F.isRawShaderMaterial===!1&&(C(_,F),g(_,F),_.push(r.outputColorSpace)),_.push(F.customProgramCacheKey),_.join()}function C(F,_){F.push(_.precision),F.push(_.outputColorSpace),F.push(_.envMapMode),F.push(_.envMapCubeUVHeight),F.push(_.mapUv),F.push(_.alphaMapUv),F.push(_.lightMapUv),F.push(_.aoMapUv),F.push(_.bumpMapUv),F.push(_.normalMapUv),F.push(_.displacementMapUv),F.push(_.emissiveMapUv),F.push(_.metalnessMapUv),F.push(_.roughnessMapUv),F.push(_.anisotropyMapUv),F.push(_.clearcoatMapUv),F.push(_.clearcoatNormalMapUv),F.push(_.clearcoatRoughnessMapUv),F.push(_.iridescenceMapUv),F.push(_.iridescenceThicknessMapUv),F.push(_.sheenColorMapUv),F.push(_.sheenRoughnessMapUv),F.push(_.specularMapUv),F.push(_.specularColorMapUv),F.push(_.specularIntensityMapUv),F.push(_.transmissionMapUv),F.push(_.thicknessMapUv),F.push(_.combine),F.push(_.fogExp2),F.push(_.sizeAttenuation),F.push(_.morphTargetsCount),F.push(_.morphAttributeCount),F.push(_.numDirLights),F.push(_.numPointLights),F.push(_.numSpotLights),F.push(_.numSpotLightMaps),F.push(_.numHemiLights),F.push(_.numRectAreaLights),F.push(_.numDirLightShadows),F.push(_.numPointLightShadows),F.push(_.numSpotLightShadows),F.push(_.numSpotLightShadowsWithMaps),F.push(_.numLightProbes),F.push(_.shadowMapType),F.push(_.toneMapping),F.push(_.numClippingPlanes),F.push(_.numClipIntersection),F.push(_.depthPacking)}function g(F,_){a.disableAll(),_.supportsVertexTextures&&a.enable(0),_.instancing&&a.enable(1),_.instancingColor&&a.enable(2),_.instancingMorph&&a.enable(3),_.matcap&&a.enable(4),_.envMap&&a.enable(5),_.normalMapObjectSpace&&a.enable(6),_.normalMapTangentSpace&&a.enable(7),_.clearcoat&&a.enable(8),_.iridescence&&a.enable(9),_.alphaTest&&a.enable(10),_.vertexColors&&a.enable(11),_.vertexAlphas&&a.enable(12),_.vertexUv1s&&a.enable(13),_.vertexUv2s&&a.enable(14),_.vertexUv3s&&a.enable(15),_.vertexTangents&&a.enable(16),_.anisotropy&&a.enable(17),_.alphaHash&&a.enable(18),_.batching&&a.enable(19),_.dispersion&&a.enable(20),F.push(a.mask),a.disableAll(),_.fog&&a.enable(0),_.useFog&&a.enable(1),_.flatShading&&a.enable(2),_.logarithmicDepthBuffer&&a.enable(3),_.skinning&&a.enable(4),_.morphTargets&&a.enable(5),_.morphNormals&&a.enable(6),_.morphColors&&a.enable(7),_.premultipliedAlpha&&a.enable(8),_.shadowMapEnabled&&a.enable(9),_.useLegacyLights&&a.enable(10),_.doubleSided&&a.enable(11),_.flipSided&&a.enable(12),_.useDepthPacking&&a.enable(13),_.dithering&&a.enable(14),_.transmission&&a.enable(15),_.sheen&&a.enable(16),_.opaque&&a.enable(17),_.pointsUvs&&a.enable(18),_.decodeVideoTexture&&a.enable(19),_.alphaToCoverage&&a.enable(20),F.push(a.mask)}function E(F){let _=x[F.type],M;if(_){let R=pr[_];M=Ly.clone(R.uniforms)}else M=F.uniforms;return M}function y(F,_){let M;for(let R=0,P=f.length;R0?n.push(p):d.transparent===!0?i.push(p):t.push(p)}function u(l,h,d,x,m,D){let p=o(l,h,d,x,m,D);d.transmission>0?n.unshift(p):d.transparent===!0?i.unshift(p):t.unshift(p)}function c(l,h){t.length>1&&t.sort(l||Yw),n.length>1&&n.sort(h||UC),i.length>1&&i.sort(h||UC)}function f(){for(let l=e,h=r.length;l=s.length?(o=new VC,s.push(o)):o=s[i],o}function t(){r=new WeakMap}return{get:e,dispose:t}}function Zw(){let r={};return{get:function(e){if(r[e.id]!==void 0)return r[e.id];let t;switch(e.type){case"DirectionalLight":t={direction:new z,color:new st};break;case"SpotLight":t={position:new z,direction:new z,color:new st,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":t={position:new z,color:new st,distance:0,decay:0};break;case"HemisphereLight":t={direction:new z,skyColor:new st,groundColor:new st};break;case"RectAreaLight":t={color:new st,position:new z,halfWidth:new z,halfHeight:new z};break}return r[e.id]=t,t}}}function Kw(){let r={};return{get:function(e){if(r[e.id]!==void 0)return r[e.id];let t;switch(e.type){case"DirectionalLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new ot};break;case"SpotLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new ot};break;case"PointLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new ot,shadowCameraNear:1,shadowCameraFar:1e3};break}return r[e.id]=t,t}}}var Jw=0;function Qw(r,e){return(e.castShadow?2:0)-(r.castShadow?2:0)+(e.map?1:0)-(r.map?1:0)}function eS(r){let e=new Zw,t=Kw(),n={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let c=0;c<9;c++)n.probe.push(new z);let i=new z,s=new ut,o=new ut;function a(c,f){let l=0,h=0,d=0;for(let M=0;M<9;M++)n.probe[M].set(0,0,0);let x=0,m=0,D=0,p=0,C=0,g=0,E=0,y=0,v=0,b=0,B=0;c.sort(Qw);let F=f===!0?Math.PI:1;for(let M=0,R=c.length;M0&&(r.has("OES_texture_float_linear")===!0?(n.rectAreaLTC1=Re.LTC_FLOAT_1,n.rectAreaLTC2=Re.LTC_FLOAT_2):(n.rectAreaLTC1=Re.LTC_HALF_1,n.rectAreaLTC2=Re.LTC_HALF_2)),n.ambient[0]=l,n.ambient[1]=h,n.ambient[2]=d;let _=n.hash;(_.directionalLength!==x||_.pointLength!==m||_.spotLength!==D||_.rectAreaLength!==p||_.hemiLength!==C||_.numDirectionalShadows!==g||_.numPointShadows!==E||_.numSpotShadows!==y||_.numSpotMaps!==v||_.numLightProbes!==B)&&(n.directional.length=x,n.spot.length=D,n.rectArea.length=p,n.point.length=m,n.hemi.length=C,n.directionalShadow.length=g,n.directionalShadowMap.length=g,n.pointShadow.length=E,n.pointShadowMap.length=E,n.spotShadow.length=y,n.spotShadowMap.length=y,n.directionalShadowMatrix.length=g,n.pointShadowMatrix.length=E,n.spotLightMatrix.length=y+v-b,n.spotLightMap.length=v,n.numSpotLightShadowsWithMaps=b,n.numLightProbes=B,_.directionalLength=x,_.pointLength=m,_.spotLength=D,_.rectAreaLength=p,_.hemiLength=C,_.numDirectionalShadows=g,_.numPointShadows=E,_.numSpotShadows=y,_.numSpotMaps=v,_.numLightProbes=B,n.version=Jw++)}function u(c,f){let l=0,h=0,d=0,x=0,m=0,D=f.matrixWorldInverse;for(let p=0,C=c.length;p=o.length?(a=new zC(r),o.push(a)):a=o[s],a}function n(){e=new WeakMap}return{get:t,dispose:n}}var CD=class extends Oi{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=$6,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}},gD=class extends Oi{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}},nS=`void main() { + gl_Position = vec4( position, 1.0 ); +}`,iS=`uniform sampler2D shadow_pass; +uniform vec2 resolution; +uniform float radius; +#include +void main() { + const float samples = float( VSM_SAMPLES ); + float mean = 0.0; + float squared_mean = 0.0; + float uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 ); + float uvStart = samples <= 1.0 ? 0.0 : - 1.0; + for ( float i = 0.0; i < samples; i ++ ) { + float uvOffset = uvStart + i * uvStride; + #ifdef HORIZONTAL_PASS + vec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) ); + mean += distribution.x; + squared_mean += distribution.y * distribution.y + distribution.x * distribution.x; + #else + float depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) ); + mean += depth; + squared_mean += depth * depth; + #endif + } + mean = mean / samples; + squared_mean = squared_mean / samples; + float std_dev = sqrt( squared_mean - mean * mean ); + gl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) ); +}`;function rS(r,e,t){let n=new R0,i=new ot,s=new ot,o=new on,a=new CD({depthPacking:Z6}),u=new gD,c={},f=t.maxTextureSize,l={[Cr]:ai,[ai]:Cr,[Gr]:Gr},h=new Er({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new ot},radius:{value:4}},vertexShader:nS,fragmentShader:iS}),d=h.clone();d.defines.HORIZONTAL_PASS=1;let x=new Mn;x.setAttribute("position",new Ii(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));let m=new oi(x,h),D=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=QC;let p=this.type;this.render=function(v,b,B){if(D.enabled===!1||D.autoUpdate===!1&&D.needsUpdate===!1||v.length===0)return;let F=r.getRenderTarget(),_=r.getActiveCubeFace(),M=r.getActiveMipmapLevel(),R=r.state;R.setBlending(Es),R.buffers.color.setClear(1,1,1,1),R.buffers.depth.setTest(!0),R.setScissorTest(!1);let P=p!==zr&&this.type===zr,H=p===zr&&this.type!==zr;for(let G=0,ie=v.length;Gf||i.y>f)&&(i.x>f&&(s.x=Math.floor(f/J.x),i.x=s.x*J.x,Y.mapSize.x=s.x),i.y>f&&(s.y=Math.floor(f/J.y),i.y=s.y*J.y,Y.mapSize.y=s.y)),Y.map===null||P===!0||H===!0){let be=this.type!==zr?{minFilter:Pi,magFilter:Pi}:{};Y.map!==null&&Y.map.dispose(),Y.map=new Wr(i.x,i.y,be),Y.map.texture.name=ce.name+".shadowMap",Y.camera.updateProjectionMatrix()}r.setRenderTarget(Y.map),r.clear();let De=Y.getViewportCount();for(let be=0;be0||b.map&&b.alphaTest>0){let R=_.uuid,P=b.uuid,H=c[R];H===void 0&&(H={},c[R]=H);let G=H[P];G===void 0&&(G=_.clone(),H[P]=G,b.addEventListener("dispose",y)),_=G}if(_.visible=b.visible,_.wireframe=b.wireframe,F===zr?_.side=b.shadowSide!==null?b.shadowSide:b.side:_.side=b.shadowSide!==null?b.shadowSide:l[b.side],_.alphaMap=b.alphaMap,_.alphaTest=b.alphaTest,_.map=b.map,_.clipShadows=b.clipShadows,_.clippingPlanes=b.clippingPlanes,_.clipIntersection=b.clipIntersection,_.displacementMap=b.displacementMap,_.displacementScale=b.displacementScale,_.displacementBias=b.displacementBias,_.wireframeLinewidth=b.wireframeLinewidth,_.linewidth=b.linewidth,B.isPointLight===!0&&_.isMeshDistanceMaterial===!0){let R=r.properties.get(_);R.light=B}return _}function E(v,b,B,F,_){if(v.visible===!1)return;if(v.layers.test(b.layers)&&(v.isMesh||v.isLine||v.isPoints)&&(v.castShadow||v.receiveShadow&&_===zr)&&(!v.frustumCulled||n.intersectsObject(v))){v.modelViewMatrix.multiplyMatrices(B.matrixWorldInverse,v.matrixWorld);let P=e.update(v),H=v.material;if(Array.isArray(H)){let G=P.groups;for(let ie=0,ce=G.length;ie=1):ce.indexOf("OpenGL ES")!==-1&&(ie=parseFloat(/^OpenGL ES (\d)/.exec(ce)[1]),G=ie>=2);let Y=null,J={},De=r.getParameter(r.SCISSOR_BOX),be=r.getParameter(r.VIEWPORT),Ae=new on().fromArray(De),at=new on().fromArray(be);function ee(q,ge,pe,Le){let je=new Uint8Array(4),Pt=r.createTexture();r.bindTexture(q,Pt),r.texParameteri(q,r.TEXTURE_MIN_FILTER,r.NEAREST),r.texParameteri(q,r.TEXTURE_MAG_FILTER,r.NEAREST);for(let Qt=0;Qt"u"?!1:/OculusBrowser/g.test(navigator.userAgent),c=new ot,f=new WeakMap,l,h=new WeakMap,d=!1;try{d=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch{}function x(O,w){return d?new OffscreenCanvas(O,w):k0("canvas")}function m(O,w,le){let xe=1,_e=Jt(O);if((_e.width>le||_e.height>le)&&(xe=le/Math.max(_e.width,_e.height)),xe<1)if(typeof HTMLImageElement<"u"&&O instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&O instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&O instanceof ImageBitmap||typeof VideoFrame<"u"&&O instanceof VideoFrame){let ve=Math.floor(xe*_e.width),nt=Math.floor(xe*_e.height);l===void 0&&(l=x(ve,nt));let He=w?x(ve,nt):l;return He.width=ve,He.height=nt,He.getContext("2d").drawImage(O,0,0,ve,nt),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+_e.width+"x"+_e.height+") to ("+ve+"x"+nt+")."),He}else return"data"in O&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+_e.width+"x"+_e.height+")."),O;return O}function D(O){return O.generateMipmaps&&O.minFilter!==Pi&&O.minFilter!==$i}function p(O){r.generateMipmap(O)}function C(O,w,le,xe,_e=!1){if(O!==null){if(r[O]!==void 0)return r[O];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+O+"'")}let ve=w;if(w===r.RED&&(le===r.FLOAT&&(ve=r.R32F),le===r.HALF_FLOAT&&(ve=r.R16F),le===r.UNSIGNED_BYTE&&(ve=r.R8)),w===r.RED_INTEGER&&(le===r.UNSIGNED_BYTE&&(ve=r.R8UI),le===r.UNSIGNED_SHORT&&(ve=r.R16UI),le===r.UNSIGNED_INT&&(ve=r.R32UI),le===r.BYTE&&(ve=r.R8I),le===r.SHORT&&(ve=r.R16I),le===r.INT&&(ve=r.R32I)),w===r.RG&&(le===r.FLOAT&&(ve=r.RG32F),le===r.HALF_FLOAT&&(ve=r.RG16F),le===r.UNSIGNED_BYTE&&(ve=r.RG8)),w===r.RG_INTEGER&&(le===r.UNSIGNED_BYTE&&(ve=r.RG8UI),le===r.UNSIGNED_SHORT&&(ve=r.RG16UI),le===r.UNSIGNED_INT&&(ve=r.RG32UI),le===r.BYTE&&(ve=r.RG8I),le===r.SHORT&&(ve=r.RG16I),le===r.INT&&(ve=r.RG32I)),w===r.RGB&&le===r.UNSIGNED_INT_5_9_9_9_REV&&(ve=r.RGB9_E5),w===r.RGBA){let nt=_e?$f:qt.getTransfer(xe);le===r.FLOAT&&(ve=r.RGBA32F),le===r.HALF_FLOAT&&(ve=r.RGBA16F),le===r.UNSIGNED_BYTE&&(ve=nt===en?r.SRGB8_ALPHA8:r.RGBA8),le===r.UNSIGNED_SHORT_4_4_4_4&&(ve=r.RGBA4),le===r.UNSIGNED_SHORT_5_5_5_1&&(ve=r.RGB5_A1)}return(ve===r.R16F||ve===r.R32F||ve===r.RG16F||ve===r.RG32F||ve===r.RGBA16F||ve===r.RGBA32F)&&e.get("EXT_color_buffer_float"),ve}function g(O,w){return D(O)===!0||O.isFramebufferTexture&&O.minFilter!==Pi&&O.minFilter!==$i?Math.log2(Math.max(w.width,w.height))+1:O.mipmaps!==void 0&&O.mipmaps.length>0?O.mipmaps.length:O.isCompressedTexture&&Array.isArray(O.image)?w.mipmaps.length:1}function E(O){let w=O.target;w.removeEventListener("dispose",E),v(w),w.isVideoTexture&&f.delete(w)}function y(O){let w=O.target;w.removeEventListener("dispose",y),B(w)}function v(O){let w=n.get(O);if(w.__webglInit===void 0)return;let le=O.source,xe=h.get(le);if(xe){let _e=xe[w.__cacheKey];_e.usedTimes--,_e.usedTimes===0&&b(O),Object.keys(xe).length===0&&h.delete(le)}n.remove(O)}function b(O){let w=n.get(O);r.deleteTexture(w.__webglTexture);let le=O.source,xe=h.get(le);delete xe[w.__cacheKey],o.memory.textures--}function B(O){let w=n.get(O);if(O.depthTexture&&O.depthTexture.dispose(),O.isWebGLCubeRenderTarget)for(let xe=0;xe<6;xe++){if(Array.isArray(w.__webglFramebuffer[xe]))for(let _e=0;_e=i.maxTextures&&console.warn("THREE.WebGLTextures: Trying to use "+O+" texture units while this GPU supports only "+i.maxTextures),F+=1,O}function R(O){let w=[];return w.push(O.wrapS),w.push(O.wrapT),w.push(O.wrapR||0),w.push(O.magFilter),w.push(O.minFilter),w.push(O.anisotropy),w.push(O.internalFormat),w.push(O.format),w.push(O.type),w.push(O.generateMipmaps),w.push(O.premultiplyAlpha),w.push(O.flipY),w.push(O.unpackAlignment),w.push(O.colorSpace),w.join()}function P(O,w){let le=n.get(O);if(O.isVideoTexture&&Ke(O),O.isRenderTargetTexture===!1&&O.version>0&&le.__version!==O.version){let xe=O.image;if(xe===null)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else if(xe.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{Ae(le,O,w);return}}t.bindTexture(r.TEXTURE_2D,le.__webglTexture,r.TEXTURE0+w)}function H(O,w){let le=n.get(O);if(O.version>0&&le.__version!==O.version){Ae(le,O,w);return}t.bindTexture(r.TEXTURE_2D_ARRAY,le.__webglTexture,r.TEXTURE0+w)}function G(O,w){let le=n.get(O);if(O.version>0&&le.__version!==O.version){Ae(le,O,w);return}t.bindTexture(r.TEXTURE_3D,le.__webglTexture,r.TEXTURE0+w)}function ie(O,w){let le=n.get(O);if(O.version>0&&le.__version!==O.version){at(le,O,w);return}t.bindTexture(r.TEXTURE_CUBE_MAP,le.__webglTexture,r.TEXTURE0+w)}let ce={[S0]:r.REPEAT,[so]:r.CLAMP_TO_EDGE,[sD]:r.MIRRORED_REPEAT},Y={[Pi]:r.NEAREST,[N6]:r.NEAREST_MIPMAP_NEAREST,[gf]:r.NEAREST_MIPMAP_LINEAR,[$i]:r.LINEAR,[Fd]:r.LINEAR_MIPMAP_NEAREST,[oo]:r.LINEAR_MIPMAP_LINEAR},J={[J6]:r.NEVER,[ry]:r.ALWAYS,[Q6]:r.LESS,[ug]:r.LEQUAL,[ey]:r.EQUAL,[iy]:r.GEQUAL,[ty]:r.GREATER,[ny]:r.NOTEQUAL};function De(O,w){if(w.type===gs&&e.has("OES_texture_float_linear")===!1&&(w.magFilter===$i||w.magFilter===Fd||w.magFilter===gf||w.magFilter===oo||w.minFilter===$i||w.minFilter===Fd||w.minFilter===gf||w.minFilter===oo)&&console.warn("THREE.WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."),r.texParameteri(O,r.TEXTURE_WRAP_S,ce[w.wrapS]),r.texParameteri(O,r.TEXTURE_WRAP_T,ce[w.wrapT]),(O===r.TEXTURE_3D||O===r.TEXTURE_2D_ARRAY)&&r.texParameteri(O,r.TEXTURE_WRAP_R,ce[w.wrapR]),r.texParameteri(O,r.TEXTURE_MAG_FILTER,Y[w.magFilter]),r.texParameteri(O,r.TEXTURE_MIN_FILTER,Y[w.minFilter]),w.compareFunction&&(r.texParameteri(O,r.TEXTURE_COMPARE_MODE,r.COMPARE_REF_TO_TEXTURE),r.texParameteri(O,r.TEXTURE_COMPARE_FUNC,J[w.compareFunction])),e.has("EXT_texture_filter_anisotropic")===!0){if(w.magFilter===Pi||w.minFilter!==gf&&w.minFilter!==oo||w.type===gs&&e.has("OES_texture_float_linear")===!1)return;if(w.anisotropy>1||n.get(w).__currentAnisotropy){let le=e.get("EXT_texture_filter_anisotropic");r.texParameterf(O,le.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(w.anisotropy,i.getMaxAnisotropy())),n.get(w).__currentAnisotropy=w.anisotropy}}}function be(O,w){let le=!1;O.__webglInit===void 0&&(O.__webglInit=!0,w.addEventListener("dispose",E));let xe=w.source,_e=h.get(xe);_e===void 0&&(_e={},h.set(xe,_e));let ve=R(w);if(ve!==O.__cacheKey){_e[ve]===void 0&&(_e[ve]={texture:r.createTexture(),usedTimes:0},o.memory.textures++,le=!0),_e[ve].usedTimes++;let nt=_e[O.__cacheKey];nt!==void 0&&(_e[O.__cacheKey].usedTimes--,nt.usedTimes===0&&b(w)),O.__cacheKey=ve,O.__webglTexture=_e[ve].texture}return le}function Ae(O,w,le){let xe=r.TEXTURE_2D;(w.isDataArrayTexture||w.isCompressedArrayTexture)&&(xe=r.TEXTURE_2D_ARRAY),w.isData3DTexture&&(xe=r.TEXTURE_3D);let _e=be(O,w),ve=w.source;t.bindTexture(xe,O.__webglTexture,r.TEXTURE0+le);let nt=n.get(ve);if(ve.version!==nt.__version||_e===!0){t.activeTexture(r.TEXTURE0+le);let He=qt.getPrimaries(qt.workingColorSpace),Ue=w.colorSpace===Cs?null:qt.getPrimaries(w.colorSpace),Et=w.colorSpace===Cs||He===Ue?r.NONE:r.BROWSER_DEFAULT_WEBGL;r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,w.flipY),r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,w.premultiplyAlpha),r.pixelStorei(r.UNPACK_ALIGNMENT,w.unpackAlignment),r.pixelStorei(r.UNPACK_COLORSPACE_CONVERSION_WEBGL,Et);let Se=m(w.image,!1,i.maxTextureSize);Se=Ye(w,Se);let tt=s.convert(w.format,w.colorSpace),kt=s.convert(w.type),it=C(w.internalFormat,tt,kt,w.colorSpace,w.isVideoTexture);De(xe,w);let We,Ft=w.mipmaps,wt=w.isVideoTexture!==!0,ln=nt.__version===void 0||_e===!0,_t=ve.dataReady,q=g(w,Se);if(w.isDepthTexture)it=r.DEPTH_COMPONENT16,w.type===gs?it=r.DEPTH_COMPONENT32F:w.type===Sa?it=r.DEPTH_COMPONENT24:w.type===L0&&(it=r.DEPTH24_STENCIL8),ln&&(wt?t.texStorage2D(r.TEXTURE_2D,1,it,Se.width,Se.height):t.texImage2D(r.TEXTURE_2D,0,it,Se.width,Se.height,0,tt,kt,null));else if(w.isDataTexture)if(Ft.length>0){wt&&ln&&t.texStorage2D(r.TEXTURE_2D,q,it,Ft[0].width,Ft[0].height);for(let ge=0,pe=Ft.length;ge>=1,pe>>=1}}else if(Ft.length>0){if(wt&&ln){let ge=Jt(Ft[0]);t.texStorage2D(r.TEXTURE_2D,q,it,ge.width,ge.height)}for(let ge=0,pe=Ft.length;ge0&&q++;let pe=Jt(tt[0]);t.texStorage2D(r.TEXTURE_CUBE_MAP,q,Ft,pe.width,pe.height)}for(let pe=0;pe<6;pe++)if(Se){wt?_t&&t.texSubImage2D(r.TEXTURE_CUBE_MAP_POSITIVE_X+pe,0,0,0,tt[pe].width,tt[pe].height,it,We,tt[pe].data):t.texImage2D(r.TEXTURE_CUBE_MAP_POSITIVE_X+pe,0,Ft,tt[pe].width,tt[pe].height,0,it,We,tt[pe].data);for(let Le=0;Le>ve),tt=Math.max(1,w.height>>ve);_e===r.TEXTURE_3D||_e===r.TEXTURE_2D_ARRAY?t.texImage3D(_e,ve,Ue,Se,tt,w.depth,0,nt,He,null):t.texImage2D(_e,ve,Ue,Se,tt,0,nt,He,null)}t.bindFramebuffer(r.FRAMEBUFFER,O),Be(w)?a.framebufferTexture2DMultisampleEXT(r.FRAMEBUFFER,xe,_e,n.get(le).__webglTexture,0,Oe(w)):(_e===r.TEXTURE_2D||_e>=r.TEXTURE_CUBE_MAP_POSITIVE_X&&_e<=r.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&r.framebufferTexture2D(r.FRAMEBUFFER,xe,_e,n.get(le).__webglTexture,ve),t.bindFramebuffer(r.FRAMEBUFFER,null)}function V(O,w,le){if(r.bindRenderbuffer(r.RENDERBUFFER,O),w.depthBuffer&&!w.stencilBuffer){let xe=r.DEPTH_COMPONENT24;if(le||Be(w)){let _e=w.depthTexture;_e&&_e.isDepthTexture&&(_e.type===gs?xe=r.DEPTH_COMPONENT32F:_e.type===Sa&&(xe=r.DEPTH_COMPONENT24));let ve=Oe(w);Be(w)?a.renderbufferStorageMultisampleEXT(r.RENDERBUFFER,ve,xe,w.width,w.height):r.renderbufferStorageMultisample(r.RENDERBUFFER,ve,xe,w.width,w.height)}else r.renderbufferStorage(r.RENDERBUFFER,xe,w.width,w.height);r.framebufferRenderbuffer(r.FRAMEBUFFER,r.DEPTH_ATTACHMENT,r.RENDERBUFFER,O)}else if(w.depthBuffer&&w.stencilBuffer){let xe=Oe(w);le&&Be(w)===!1?r.renderbufferStorageMultisample(r.RENDERBUFFER,xe,r.DEPTH24_STENCIL8,w.width,w.height):Be(w)?a.renderbufferStorageMultisampleEXT(r.RENDERBUFFER,xe,r.DEPTH24_STENCIL8,w.width,w.height):r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,w.width,w.height),r.framebufferRenderbuffer(r.FRAMEBUFFER,r.DEPTH_STENCIL_ATTACHMENT,r.RENDERBUFFER,O)}else{let xe=w.textures;for(let _e=0;_e1;if(nt||(xe.__webglTexture===void 0&&(xe.__webglTexture=r.createTexture()),xe.__version=w.version,o.memory.textures++),ve){le.__webglFramebuffer=[];for(let He=0;He<6;He++)if(w.mipmaps&&w.mipmaps.length>0){le.__webglFramebuffer[He]=[];for(let Ue=0;Ue0){le.__webglFramebuffer=[];for(let He=0;He0&&Be(O)===!1){le.__webglMultisampledFramebuffer=r.createFramebuffer(),le.__webglColorRenderbuffer=[],t.bindFramebuffer(r.FRAMEBUFFER,le.__webglMultisampledFramebuffer);for(let He=0;He<_e.length;He++){let Ue=_e[He];le.__webglColorRenderbuffer[He]=r.createRenderbuffer(),r.bindRenderbuffer(r.RENDERBUFFER,le.__webglColorRenderbuffer[He]);let Et=s.convert(Ue.format,Ue.colorSpace),Se=s.convert(Ue.type),tt=C(Ue.internalFormat,Et,Se,Ue.colorSpace,O.isXRRenderTarget===!0),kt=Oe(O);r.renderbufferStorageMultisample(r.RENDERBUFFER,kt,tt,O.width,O.height),r.framebufferRenderbuffer(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0+He,r.RENDERBUFFER,le.__webglColorRenderbuffer[He])}r.bindRenderbuffer(r.RENDERBUFFER,null),O.depthBuffer&&(le.__webglDepthRenderbuffer=r.createRenderbuffer(),V(le.__webglDepthRenderbuffer,O,!0)),t.bindFramebuffer(r.FRAMEBUFFER,null)}}if(ve){t.bindTexture(r.TEXTURE_CUBE_MAP,xe.__webglTexture),De(r.TEXTURE_CUBE_MAP,w);for(let He=0;He<6;He++)if(w.mipmaps&&w.mipmaps.length>0)for(let Ue=0;Ue0)for(let Ue=0;Ue0){if(Be(O)===!1){let w=O.textures,le=O.width,xe=O.height,_e=r.COLOR_BUFFER_BIT,ve=O.stencilBuffer?r.DEPTH_STENCIL_ATTACHMENT:r.DEPTH_ATTACHMENT,nt=n.get(O),He=w.length>1;if(He)for(let Ue=0;Ue0&&e.has("WEBGL_multisampled_render_to_texture")===!0&&w.__useRenderToTexture!==!1}function Ke(O){let w=o.render.frame;f.get(O)!==w&&(f.set(O,w),O.update())}function Ye(O,w){let le=O.colorSpace,xe=O.format,_e=O.type;return O.isCompressedTexture===!0||O.isVideoTexture===!0||le!==ys&&le!==Cs&&(qt.getTransfer(le)===en?(xe!==xr||_e!==_s)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",le)),w}function Jt(O){return typeof HTMLImageElement<"u"&&O instanceof HTMLImageElement?(c.width=O.naturalWidth||O.width,c.height=O.naturalHeight||O.height):typeof VideoFrame<"u"&&O instanceof VideoFrame?(c.width=O.displayWidth,c.height=O.displayHeight):(c.width=O.width,c.height=O.height),c}this.allocateTextureUnit=M,this.resetTextureUnits=_,this.setTexture2D=P,this.setTexture2DArray=H,this.setTexture3D=G,this.setTextureCube=ie,this.rebindTextures=re,this.setupRenderTarget=Q,this.updateRenderTargetMipmap=L,this.updateMultisampleRenderTarget=Xe,this.setupDepthRenderbuffer=U,this.setupFrameBufferTexture=ee,this.useMultisampledRTT=Be}function aS(r,e){function t(n,i=Cs){let s,o=qt.getTransfer(i);if(n===_s)return r.UNSIGNED_BYTE;if(n===ng)return r.UNSIGNED_SHORT_4_4_4_4;if(n===ig)return r.UNSIGNED_SHORT_5_5_5_1;if(n===z6)return r.UNSIGNED_INT_5_9_9_9_REV;if(n===U6)return r.BYTE;if(n===V6)return r.SHORT;if(n===eg)return r.UNSIGNED_SHORT;if(n===tg)return r.INT;if(n===Sa)return r.UNSIGNED_INT;if(n===gs)return r.FLOAT;if(n===El)return r.HALF_FLOAT;if(n===H6)return r.ALPHA;if(n===G6)return r.RGB;if(n===xr)return r.RGBA;if(n===j6)return r.LUMINANCE;if(n===W6)return r.LUMINANCE_ALPHA;if(n===ya)return r.DEPTH_COMPONENT;if(n===M0)return r.DEPTH_STENCIL;if(n===X6)return r.RED;if(n===rg)return r.RED_INTEGER;if(n===q6)return r.RG;if(n===sg)return r.RG_INTEGER;if(n===og)return r.RGBA_INTEGER;if(n===_d||n===vd||n===yd||n===bd)if(o===en)if(s=e.get("WEBGL_compressed_texture_s3tc_srgb"),s!==null){if(n===_d)return s.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(n===vd)return s.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(n===yd)return s.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(n===bd)return s.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(s=e.get("WEBGL_compressed_texture_s3tc"),s!==null){if(n===_d)return s.COMPRESSED_RGB_S3TC_DXT1_EXT;if(n===vd)return s.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(n===yd)return s.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(n===bd)return s.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(n===v3||n===y3||n===b3||n===B3)if(s=e.get("WEBGL_compressed_texture_pvrtc"),s!==null){if(n===v3)return s.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(n===y3)return s.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(n===b3)return s.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(n===B3)return s.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(n===A3||n===w3||n===S3)if(s=e.get("WEBGL_compressed_texture_etc"),s!==null){if(n===A3||n===w3)return o===en?s.COMPRESSED_SRGB8_ETC2:s.COMPRESSED_RGB8_ETC2;if(n===S3)return o===en?s.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:s.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(n===M3||n===T3||n===k3||n===P3||n===I3||n===R3||n===O3||n===L3||n===N3||n===U3||n===V3||n===z3||n===H3||n===G3)if(s=e.get("WEBGL_compressed_texture_astc"),s!==null){if(n===M3)return o===en?s.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:s.COMPRESSED_RGBA_ASTC_4x4_KHR;if(n===T3)return o===en?s.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:s.COMPRESSED_RGBA_ASTC_5x4_KHR;if(n===k3)return o===en?s.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:s.COMPRESSED_RGBA_ASTC_5x5_KHR;if(n===P3)return o===en?s.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:s.COMPRESSED_RGBA_ASTC_6x5_KHR;if(n===I3)return o===en?s.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:s.COMPRESSED_RGBA_ASTC_6x6_KHR;if(n===R3)return o===en?s.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:s.COMPRESSED_RGBA_ASTC_8x5_KHR;if(n===O3)return o===en?s.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:s.COMPRESSED_RGBA_ASTC_8x6_KHR;if(n===L3)return o===en?s.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:s.COMPRESSED_RGBA_ASTC_8x8_KHR;if(n===N3)return o===en?s.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:s.COMPRESSED_RGBA_ASTC_10x5_KHR;if(n===U3)return o===en?s.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:s.COMPRESSED_RGBA_ASTC_10x6_KHR;if(n===V3)return o===en?s.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:s.COMPRESSED_RGBA_ASTC_10x8_KHR;if(n===z3)return o===en?s.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:s.COMPRESSED_RGBA_ASTC_10x10_KHR;if(n===H3)return o===en?s.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:s.COMPRESSED_RGBA_ASTC_12x10_KHR;if(n===G3)return o===en?s.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:s.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(n===Bd||n===j3||n===W3)if(s=e.get("EXT_texture_compression_bptc"),s!==null){if(n===Bd)return o===en?s.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:s.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(n===j3)return s.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(n===W3)return s.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(n===Y6||n===X3||n===q3||n===Y3)if(s=e.get("EXT_texture_compression_rgtc"),s!==null){if(n===Bd)return s.COMPRESSED_RED_RGTC1_EXT;if(n===X3)return s.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(n===q3)return s.COMPRESSED_RED_GREEN_RGTC2_EXT;if(n===Y3)return s.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return n===L0?r.UNSIGNED_INT_24_8:r[n]!==void 0?r[n]:null}return{convert:t}}var ED=class extends Wn{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e}},mr=class extends Ki{constructor(){super(),this.isGroup=!0,this.type="Group"}},uS={type:"move"},w0=class{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new mr,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return this._targetRay===null&&(this._targetRay=new mr,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new z,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new z),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new mr,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new z,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new z),this._grip}dispatchEvent(e){return this._targetRay!==null&&this._targetRay.dispatchEvent(e),this._grip!==null&&this._grip.dispatchEvent(e),this._hand!==null&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){let t=this._hand;if(t)for(let n of e.hand.values())this._getHandJoint(t,n)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),this._targetRay!==null&&(this._targetRay.visible=!1),this._grip!==null&&(this._grip.visible=!1),this._hand!==null&&(this._hand.visible=!1),this}update(e,t,n){let i=null,s=null,o=null,a=this._targetRay,u=this._grip,c=this._hand;if(e&&t.session.visibilityState!=="visible-blurred"){if(c&&e.hand){o=!0;for(let m of e.hand.values()){let D=t.getJointPose(m,n),p=this._getHandJoint(c,m);D!==null&&(p.matrix.fromArray(D.transform.matrix),p.matrix.decompose(p.position,p.rotation,p.scale),p.matrixWorldNeedsUpdate=!0,p.jointRadius=D.radius),p.visible=D!==null}let f=c.joints["index-finger-tip"],l=c.joints["thumb-tip"],h=f.position.distanceTo(l.position),d=.02,x=.005;c.inputState.pinching&&h>d+x?(c.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!c.inputState.pinching&&h<=d-x&&(c.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else u!==null&&e.gripSpace&&(s=t.getPose(e.gripSpace,n),s!==null&&(u.matrix.fromArray(s.transform.matrix),u.matrix.decompose(u.position,u.rotation,u.scale),u.matrixWorldNeedsUpdate=!0,s.linearVelocity?(u.hasLinearVelocity=!0,u.linearVelocity.copy(s.linearVelocity)):u.hasLinearVelocity=!1,s.angularVelocity?(u.hasAngularVelocity=!0,u.angularVelocity.copy(s.angularVelocity)):u.hasAngularVelocity=!1));a!==null&&(i=t.getPose(e.targetRaySpace,n),i===null&&s!==null&&(i=s),i!==null&&(a.matrix.fromArray(i.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale),a.matrixWorldNeedsUpdate=!0,i.linearVelocity?(a.hasLinearVelocity=!0,a.linearVelocity.copy(i.linearVelocity)):a.hasLinearVelocity=!1,i.angularVelocity?(a.hasAngularVelocity=!0,a.angularVelocity.copy(i.angularVelocity)):a.hasAngularVelocity=!1,this.dispatchEvent(uS)))}return a!==null&&(a.visible=i!==null),u!==null&&(u.visible=s!==null),c!==null&&(c.visible=o!==null),this}_getHandJoint(e,t){if(e.joints[t.jointName]===void 0){let n=new mr;n.matrixAutoUpdate=!1,n.visible=!1,e.joints[t.jointName]=n,e.add(n)}return e.joints[t.jointName]}},cS=` +void main() { + + gl_Position = vec4( position, 1.0 ); + +}`,fS=` +uniform sampler2DArray depthColor; +uniform float depthWidth; +uniform float depthHeight; + +void main() { + + vec2 coord = vec2( gl_FragCoord.x / depthWidth, gl_FragCoord.y / depthHeight ); + + if ( coord.x >= 1.0 ) { + + gl_FragDepth = texture( depthColor, vec3( coord.x - 1.0, coord.y, 1 ) ).r; + + } else { + + gl_FragDepth = texture( depthColor, vec3( coord.x, coord.y, 0 ) ).r; + + } + +}`,FD=class{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(e,t,n){if(this.texture===null){let i=new bs,s=e.properties.get(i);s.__webglTexture=t.texture,(t.depthNear!=n.depthNear||t.depthFar!=n.depthFar)&&(this.depthNear=t.depthNear,this.depthFar=t.depthFar),this.texture=i}}render(e,t){if(this.texture!==null){if(this.mesh===null){let n=t.cameras[0].viewport,i=new Er({vertexShader:cS,fragmentShader:fS,uniforms:{depthColor:{value:this.texture},depthWidth:{value:n.z},depthHeight:{value:n.w}}});this.mesh=new oi(new ol(20,20),i)}e.render(this.mesh,t)}}reset(){this.texture=null,this.mesh=null}},_D=class extends gr{constructor(e,t){super();let n=this,i=null,s=1,o=null,a="local-floor",u=1,c=null,f=null,l=null,h=null,d=null,x=null,m=new FD,D=t.getContextAttributes(),p=null,C=null,g=[],E=[],y=new ot,v=null,b=new Wn;b.layers.enable(1),b.viewport=new on;let B=new Wn;B.layers.enable(2),B.viewport=new on;let F=[b,B],_=new ED;_.layers.enable(1),_.layers.enable(2);let M=null,R=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(ee){let V=g[ee];return V===void 0&&(V=new w0,g[ee]=V),V.getTargetRaySpace()},this.getControllerGrip=function(ee){let V=g[ee];return V===void 0&&(V=new w0,g[ee]=V),V.getGripSpace()},this.getHand=function(ee){let V=g[ee];return V===void 0&&(V=new w0,g[ee]=V),V.getHandSpace()};function P(ee){let V=E.indexOf(ee.inputSource);if(V===-1)return;let X=g[V];X!==void 0&&(X.update(ee.inputSource,ee.frame,c||o),X.dispatchEvent({type:ee.type,data:ee.inputSource}))}function H(){i.removeEventListener("select",P),i.removeEventListener("selectstart",P),i.removeEventListener("selectend",P),i.removeEventListener("squeeze",P),i.removeEventListener("squeezestart",P),i.removeEventListener("squeezeend",P),i.removeEventListener("end",H),i.removeEventListener("inputsourceschange",G);for(let ee=0;ee=0&&(E[U]=null,g[U].disconnect(X))}for(let V=0;V=E.length){E.push(X),U=Q;break}else if(E[Q]===null){E[Q]=X,U=Q;break}if(U===-1)break}let re=g[U];re&&re.connect(X)}}let ie=new z,ce=new z;function Y(ee,V,X){ie.setFromMatrixPosition(V.matrixWorld),ce.setFromMatrixPosition(X.matrixWorld);let U=ie.distanceTo(ce),re=V.projectionMatrix.elements,Q=X.projectionMatrix.elements,L=re[14]/(re[10]-1),we=re[14]/(re[10]+1),Ce=(re[9]+1)/re[5],Xe=(re[9]-1)/re[5],Oe=(re[8]-1)/re[0],Be=(Q[8]+1)/Q[0],Ke=L*Oe,Ye=L*Be,Jt=U/(-Oe+Be),O=Jt*-Oe;V.matrixWorld.decompose(ee.position,ee.quaternion,ee.scale),ee.translateX(O),ee.translateZ(Jt),ee.matrixWorld.compose(ee.position,ee.quaternion,ee.scale),ee.matrixWorldInverse.copy(ee.matrixWorld).invert();let w=L+Jt,le=we+Jt,xe=Ke-O,_e=Ye+(U-O),ve=Ce*we/le*w,nt=Xe*we/le*w;ee.projectionMatrix.makePerspective(xe,_e,ve,nt,w,le),ee.projectionMatrixInverse.copy(ee.projectionMatrix).invert()}function J(ee,V){V===null?ee.matrixWorld.copy(ee.matrix):ee.matrixWorld.multiplyMatrices(V.matrixWorld,ee.matrix),ee.matrixWorldInverse.copy(ee.matrixWorld).invert()}this.updateCamera=function(ee){if(i===null)return;m.texture!==null&&(ee.near=m.depthNear,ee.far=m.depthFar),_.near=B.near=b.near=ee.near,_.far=B.far=b.far=ee.far,(M!==_.near||R!==_.far)&&(i.updateRenderState({depthNear:_.near,depthFar:_.far}),M=_.near,R=_.far,b.near=M,b.far=R,B.near=M,B.far=R,b.updateProjectionMatrix(),B.updateProjectionMatrix(),ee.updateProjectionMatrix());let V=ee.parent,X=_.cameras;J(_,V);for(let U=0;U0&&(D.alphaTest.value=p.alphaTest);let C=e.get(p),g=C.envMap,E=C.envMapRotation;if(g&&(D.envMap.value=g,to.copy(E),to.x*=-1,to.y*=-1,to.z*=-1,g.isCubeTexture&&g.isRenderTargetTexture===!1&&(to.y*=-1,to.z*=-1),D.envMapRotation.value.setFromMatrix4(lS.makeRotationFromEuler(to)),D.flipEnvMap.value=g.isCubeTexture&&g.isRenderTargetTexture===!1?-1:1,D.reflectivity.value=p.reflectivity,D.ior.value=p.ior,D.refractionRatio.value=p.refractionRatio),p.lightMap){D.lightMap.value=p.lightMap;let y=r._useLegacyLights===!0?Math.PI:1;D.lightMapIntensity.value=p.lightMapIntensity*y,t(p.lightMap,D.lightMapTransform)}p.aoMap&&(D.aoMap.value=p.aoMap,D.aoMapIntensity.value=p.aoMapIntensity,t(p.aoMap,D.aoMapTransform))}function o(D,p){D.diffuse.value.copy(p.color),D.opacity.value=p.opacity,p.map&&(D.map.value=p.map,t(p.map,D.mapTransform))}function a(D,p){D.dashSize.value=p.dashSize,D.totalSize.value=p.dashSize+p.gapSize,D.scale.value=p.scale}function u(D,p,C,g){D.diffuse.value.copy(p.color),D.opacity.value=p.opacity,D.size.value=p.size*C,D.scale.value=g*.5,p.map&&(D.map.value=p.map,t(p.map,D.uvTransform)),p.alphaMap&&(D.alphaMap.value=p.alphaMap,t(p.alphaMap,D.alphaMapTransform)),p.alphaTest>0&&(D.alphaTest.value=p.alphaTest)}function c(D,p){D.diffuse.value.copy(p.color),D.opacity.value=p.opacity,D.rotation.value=p.rotation,p.map&&(D.map.value=p.map,t(p.map,D.mapTransform)),p.alphaMap&&(D.alphaMap.value=p.alphaMap,t(p.alphaMap,D.alphaMapTransform)),p.alphaTest>0&&(D.alphaTest.value=p.alphaTest)}function f(D,p){D.specular.value.copy(p.specular),D.shininess.value=Math.max(p.shininess,1e-4)}function l(D,p){p.gradientMap&&(D.gradientMap.value=p.gradientMap)}function h(D,p){D.metalness.value=p.metalness,p.metalnessMap&&(D.metalnessMap.value=p.metalnessMap,t(p.metalnessMap,D.metalnessMapTransform)),D.roughness.value=p.roughness,p.roughnessMap&&(D.roughnessMap.value=p.roughnessMap,t(p.roughnessMap,D.roughnessMapTransform)),p.envMap&&(D.envMapIntensity.value=p.envMapIntensity)}function d(D,p,C){D.ior.value=p.ior,p.sheen>0&&(D.sheenColor.value.copy(p.sheenColor).multiplyScalar(p.sheen),D.sheenRoughness.value=p.sheenRoughness,p.sheenColorMap&&(D.sheenColorMap.value=p.sheenColorMap,t(p.sheenColorMap,D.sheenColorMapTransform)),p.sheenRoughnessMap&&(D.sheenRoughnessMap.value=p.sheenRoughnessMap,t(p.sheenRoughnessMap,D.sheenRoughnessMapTransform))),p.clearcoat>0&&(D.clearcoat.value=p.clearcoat,D.clearcoatRoughness.value=p.clearcoatRoughness,p.clearcoatMap&&(D.clearcoatMap.value=p.clearcoatMap,t(p.clearcoatMap,D.clearcoatMapTransform)),p.clearcoatRoughnessMap&&(D.clearcoatRoughnessMap.value=p.clearcoatRoughnessMap,t(p.clearcoatRoughnessMap,D.clearcoatRoughnessMapTransform)),p.clearcoatNormalMap&&(D.clearcoatNormalMap.value=p.clearcoatNormalMap,t(p.clearcoatNormalMap,D.clearcoatNormalMapTransform),D.clearcoatNormalScale.value.copy(p.clearcoatNormalScale),p.side===ai&&D.clearcoatNormalScale.value.negate())),p.dispersion>0&&(D.dispersion.value=p.dispersion),p.iridescence>0&&(D.iridescence.value=p.iridescence,D.iridescenceIOR.value=p.iridescenceIOR,D.iridescenceThicknessMinimum.value=p.iridescenceThicknessRange[0],D.iridescenceThicknessMaximum.value=p.iridescenceThicknessRange[1],p.iridescenceMap&&(D.iridescenceMap.value=p.iridescenceMap,t(p.iridescenceMap,D.iridescenceMapTransform)),p.iridescenceThicknessMap&&(D.iridescenceThicknessMap.value=p.iridescenceThicknessMap,t(p.iridescenceThicknessMap,D.iridescenceThicknessMapTransform))),p.transmission>0&&(D.transmission.value=p.transmission,D.transmissionSamplerMap.value=C.texture,D.transmissionSamplerSize.value.set(C.width,C.height),p.transmissionMap&&(D.transmissionMap.value=p.transmissionMap,t(p.transmissionMap,D.transmissionMapTransform)),D.thickness.value=p.thickness,p.thicknessMap&&(D.thicknessMap.value=p.thicknessMap,t(p.thicknessMap,D.thicknessMapTransform)),D.attenuationDistance.value=p.attenuationDistance,D.attenuationColor.value.copy(p.attenuationColor)),p.anisotropy>0&&(D.anisotropyVector.value.set(p.anisotropy*Math.cos(p.anisotropyRotation),p.anisotropy*Math.sin(p.anisotropyRotation)),p.anisotropyMap&&(D.anisotropyMap.value=p.anisotropyMap,t(p.anisotropyMap,D.anisotropyMapTransform))),D.specularIntensity.value=p.specularIntensity,D.specularColor.value.copy(p.specularColor),p.specularColorMap&&(D.specularColorMap.value=p.specularColorMap,t(p.specularColorMap,D.specularColorMapTransform)),p.specularIntensityMap&&(D.specularIntensityMap.value=p.specularIntensityMap,t(p.specularIntensityMap,D.specularIntensityMapTransform))}function x(D,p){p.matcap&&(D.matcap.value=p.matcap)}function m(D,p){let C=e.get(p).light;D.referencePosition.value.setFromMatrixPosition(C.matrixWorld),D.nearDistance.value=C.shadow.camera.near,D.farDistance.value=C.shadow.camera.far}return{refreshFogUniforms:n,refreshMaterialUniforms:i}}function dS(r,e,t,n){let i={},s={},o=[],a=r.getParameter(r.MAX_UNIFORM_BUFFER_BINDINGS);function u(C,g){let E=g.program;n.uniformBlockBinding(C,E)}function c(C,g){let E=i[C.id];E===void 0&&(x(C),E=f(C),i[C.id]=E,C.addEventListener("dispose",D));let y=g.program;n.updateUBOMapping(C,y);let v=e.render.frame;s[C.id]!==v&&(h(C),s[C.id]=v)}function f(C){let g=l();C.__bindingPointIndex=g;let E=r.createBuffer(),y=C.__size,v=C.usage;return r.bindBuffer(r.UNIFORM_BUFFER,E),r.bufferData(r.UNIFORM_BUFFER,y,v),r.bindBuffer(r.UNIFORM_BUFFER,null),r.bindBufferBase(r.UNIFORM_BUFFER,g,E),E}function l(){for(let C=0;C0&&(E+=y-v),C.__size=E,C.__cache={},this}function m(C){let g={boundary:0,storage:0};return typeof C=="number"||typeof C=="boolean"?(g.boundary=4,g.storage=4):C.isVector2?(g.boundary=8,g.storage=8):C.isVector3||C.isColor?(g.boundary=16,g.storage=12):C.isVector4?(g.boundary=16,g.storage=16):C.isMatrix3?(g.boundary=48,g.storage=48):C.isMatrix4?(g.boundary=64,g.storage=64):C.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",C),g}function D(C){let g=C.target;g.removeEventListener("dispose",D);let E=o.indexOf(g.__bindingPointIndex);o.splice(E,1),r.deleteBuffer(i[g.id]),delete i[g.id],delete s[g.id]}function p(){for(let C in i)r.deleteBuffer(i[C]);o=[],i={},s={}}return{bind:u,update:c,dispose:p}}var cl=class{constructor(e={}){let{canvas:t=Fy(),context:n=null,depth:i=!0,stencil:s=!1,alpha:o=!1,antialias:a=!1,premultipliedAlpha:u=!0,preserveDrawingBuffer:c=!1,powerPreference:f="default",failIfMajorPerformanceCaveat:l=!1}=e;this.isWebGLRenderer=!0;let h;if(n!==null){if(typeof WebGLRenderingContext<"u"&&n instanceof WebGLRenderingContext)throw new Error("THREE.WebGLRenderer: WebGL 1 is not supported since r163.");h=n.getContextAttributes().alpha}else h=o;let d=new Uint32Array(4),x=new Int32Array(4),m=null,D=null,p=[],C=[];this.domElement=t,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this._outputColorSpace=ki,this._useLegacyLights=!1,this.toneMapping=Fs,this.toneMappingExposure=1;let g=this,E=!1,y=0,v=0,b=null,B=-1,F=null,_=new on,M=new on,R=null,P=new st(0),H=0,G=t.width,ie=t.height,ce=1,Y=null,J=null,De=new on(0,0,G,ie),be=new on(0,0,G,ie),Ae=!1,at=new R0,ee=!1,V=!1,X=new ut,U=new z,re={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function Q(){return b===null?ce:1}let L=n;function we(T,Z){return t.getContext(T,Z)}try{let T={alpha:!0,depth:i,stencil:s,antialias:a,premultipliedAlpha:u,preserveDrawingBuffer:c,powerPreference:f,failIfMajorPerformanceCaveat:l};if("setAttribute"in t&&t.setAttribute("data-engine",`three.js r${VD}`),t.addEventListener("webglcontextlost",q,!1),t.addEventListener("webglcontextrestored",ge,!1),t.addEventListener("webglcontextcreationerror",pe,!1),L===null){let Z="webgl2";if(L=we(Z,T),L===null)throw we(Z)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}}catch(T){throw console.error("THREE.WebGLRenderer: "+T.message),T}let Ce,Xe,Oe,Be,Ke,Ye,Jt,O,w,le,xe,_e,ve,nt,He,Ue,Et,Se,tt,kt,it,We,Ft,wt;function ln(){Ce=new kA(L),Ce.init(),We=new aS(L,Ce),Xe=new BA(L,Ce,e,We),Oe=new sS(L),Be=new RA(L),Ke=new qw,Ye=new oS(L,Ce,Oe,Ke,Xe,We,Be),Jt=new wA(g),O=new TA(g),w=new Hy(L),Ft=new yA(L,w),le=new PA(L,w,Be,Ft),xe=new LA(L,le,w,Be),tt=new OA(L,Xe,Ye),Ue=new AA(Ke),_e=new Xw(g,Jt,O,Ce,Xe,Ft,Ue),ve=new hS(g,Ke),nt=new $w,He=new tS(Ce),Se=new vA(g,Jt,O,Oe,xe,h,u),Et=new rS(g,xe,Xe),wt=new dS(L,Be,Xe,Oe),kt=new bA(L,Ce,Be),it=new IA(L,Ce,Be),Be.programs=_e.programs,g.capabilities=Xe,g.extensions=Ce,g.properties=Ke,g.renderLists=nt,g.shadowMap=Et,g.state=Oe,g.info=Be}ln();let _t=new _D(g,L);this.xr=_t,this.getContext=function(){return L},this.getContextAttributes=function(){return L.getContextAttributes()},this.forceContextLoss=function(){let T=Ce.get("WEBGL_lose_context");T&&T.loseContext()},this.forceContextRestore=function(){let T=Ce.get("WEBGL_lose_context");T&&T.restoreContext()},this.getPixelRatio=function(){return ce},this.setPixelRatio=function(T){T!==void 0&&(ce=T,this.setSize(G,ie,!1))},this.getSize=function(T){return T.set(G,ie)},this.setSize=function(T,Z,fe=!0){if(_t.isPresenting){console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting.");return}G=T,ie=Z,t.width=Math.floor(T*ce),t.height=Math.floor(Z*ce),fe===!0&&(t.style.width=T+"px",t.style.height=Z+"px"),this.setViewport(0,0,T,Z)},this.getDrawingBufferSize=function(T){return T.set(G*ce,ie*ce).floor()},this.setDrawingBufferSize=function(T,Z,fe){G=T,ie=Z,ce=fe,t.width=Math.floor(T*fe),t.height=Math.floor(Z*fe),this.setViewport(0,0,T,Z)},this.getCurrentViewport=function(T){return T.copy(_)},this.getViewport=function(T){return T.copy(De)},this.setViewport=function(T,Z,fe,te){T.isVector4?De.set(T.x,T.y,T.z,T.w):De.set(T,Z,fe,te),Oe.viewport(_.copy(De).multiplyScalar(ce).round())},this.getScissor=function(T){return T.copy(be)},this.setScissor=function(T,Z,fe,te){T.isVector4?be.set(T.x,T.y,T.z,T.w):be.set(T,Z,fe,te),Oe.scissor(M.copy(be).multiplyScalar(ce).round())},this.getScissorTest=function(){return Ae},this.setScissorTest=function(T){Oe.setScissorTest(Ae=T)},this.setOpaqueSort=function(T){Y=T},this.setTransparentSort=function(T){J=T},this.getClearColor=function(T){return T.copy(Se.getClearColor())},this.setClearColor=function(){Se.setClearColor.apply(Se,arguments)},this.getClearAlpha=function(){return Se.getClearAlpha()},this.setClearAlpha=function(){Se.setClearAlpha.apply(Se,arguments)},this.clear=function(T=!0,Z=!0,fe=!0){let te=0;if(T){let ne=!1;if(b!==null){let Ne=b.texture.format;ne=Ne===og||Ne===sg||Ne===rg}if(ne){let Ne=b.texture.type,$e=Ne===_s||Ne===Sa||Ne===eg||Ne===L0||Ne===ng||Ne===ig,Je=Se.getClearColor(),rt=Se.getClearAlpha(),ct=Je.r,mt=Je.g,yt=Je.b;$e?(d[0]=ct,d[1]=mt,d[2]=yt,d[3]=rt,L.clearBufferuiv(L.COLOR,0,d)):(x[0]=ct,x[1]=mt,x[2]=yt,x[3]=rt,L.clearBufferiv(L.COLOR,0,x))}else te|=L.COLOR_BUFFER_BIT}Z&&(te|=L.DEPTH_BUFFER_BIT),fe&&(te|=L.STENCIL_BUFFER_BIT,this.state.buffers.stencil.setMask(4294967295)),L.clear(te)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){t.removeEventListener("webglcontextlost",q,!1),t.removeEventListener("webglcontextrestored",ge,!1),t.removeEventListener("webglcontextcreationerror",pe,!1),nt.dispose(),He.dispose(),Ke.dispose(),Jt.dispose(),O.dispose(),xe.dispose(),Ft.dispose(),wt.dispose(),_e.dispose(),_t.dispose(),_t.removeEventListener("sessionstart",zt),_t.removeEventListener("sessionend",cr),Yn.stop()};function q(T){T.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),E=!0}function ge(){console.log("THREE.WebGLRenderer: Context Restored."),E=!1;let T=Be.autoReset,Z=Et.enabled,fe=Et.autoUpdate,te=Et.needsUpdate,ne=Et.type;ln(),Be.autoReset=T,Et.enabled=Z,Et.autoUpdate=fe,Et.needsUpdate=te,Et.type=ne}function pe(T){console.error("THREE.WebGLRenderer: A WebGL context could not be created. Reason: ",T.statusMessage)}function Le(T){let Z=T.target;Z.removeEventListener("dispose",Le),je(Z)}function je(T){Pt(T),Ke.remove(T)}function Pt(T){let Z=Ke.get(T).programs;Z!==void 0&&(Z.forEach(function(fe){_e.releaseProgram(fe)}),T.isShaderMaterial&&_e.releaseShaderCache(T))}this.renderBufferDirect=function(T,Z,fe,te,ne,Ne){Z===null&&(Z=re);let $e=ne.isMesh&&ne.matrixWorld.determinant()<0,Je=dE(T,Z,fe,te,ne);Oe.setMaterial(te,$e);let rt=fe.index,ct=1;if(te.wireframe===!0){if(rt=le.getWireframeAttribute(fe),rt===void 0)return;ct=2}let mt=fe.drawRange,yt=fe.attributes.position,mn=mt.start*ct,Un=(mt.start+mt.count)*ct;Ne!==null&&(mn=Math.max(mn,Ne.start*ct),Un=Math.min(Un,(Ne.start+Ne.count)*ct)),rt!==null?(mn=Math.max(mn,0),Un=Math.min(Un,rt.count)):yt!=null&&(mn=Math.max(mn,0),Un=Math.min(Un,yt.count));let fi=Un-mn;if(fi<0||fi===1/0)return;Ft.setup(ne,te,Je,fe,rt);let Mr,Rt=kt;if(rt!==null&&(Mr=w.get(rt),Rt=it,Rt.setIndex(Mr)),ne.isMesh)te.wireframe===!0?(Oe.setLineWidth(te.wireframeLinewidth*Q()),Rt.setMode(L.LINES)):Rt.setMode(L.TRIANGLES);else if(ne.isLine){let ft=te.linewidth;ft===void 0&&(ft=1),Oe.setLineWidth(ft*Q()),ne.isLineSegments?Rt.setMode(L.LINES):ne.isLineLoop?Rt.setMode(L.LINE_LOOP):Rt.setMode(L.LINE_STRIP)}else ne.isPoints?Rt.setMode(L.POINTS):ne.isSprite&&Rt.setMode(L.TRIANGLES);if(ne.isBatchedMesh)ne._multiDrawInstances!==null?Rt.renderMultiDrawInstances(ne._multiDrawStarts,ne._multiDrawCounts,ne._multiDrawCount,ne._multiDrawInstances):Rt.renderMultiDraw(ne._multiDrawStarts,ne._multiDrawCounts,ne._multiDrawCount);else if(ne.isInstancedMesh)Rt.renderInstances(mn,fi,ne.count);else if(fe.isInstancedBufferGeometry){let ft=fe._maxInstanceCount!==void 0?fe._maxInstanceCount:1/0,Fu=Math.min(fe.instanceCount,ft);Rt.renderInstances(mn,fi,Fu)}else Rt.render(mn,fi)};function Qt(T,Z,fe){T.transparent===!0&&T.side===Gr&&T.forceSinglePass===!1?(T.side=ai,T.needsUpdate=!0,fc(T,Z,fe),T.side=Cr,T.needsUpdate=!0,fc(T,Z,fe),T.side=Gr):fc(T,Z,fe)}this.compile=function(T,Z,fe=null){fe===null&&(fe=T),D=He.get(fe),D.init(Z),C.push(D),fe.traverseVisible(function(ne){ne.isLight&&ne.layers.test(Z.layers)&&(D.pushLight(ne),ne.castShadow&&D.pushShadow(ne))}),T!==fe&&T.traverseVisible(function(ne){ne.isLight&&ne.layers.test(Z.layers)&&(D.pushLight(ne),ne.castShadow&&D.pushShadow(ne))}),D.setupLights(g._useLegacyLights);let te=new Set;return T.traverse(function(ne){let Ne=ne.material;if(Ne)if(Array.isArray(Ne))for(let $e=0;$e{function Ne(){if(te.forEach(function($e){Ke.get($e).currentProgram.isReady()&&te.delete($e)}),te.size===0){ne(T);return}setTimeout(Ne,10)}Ce.get("KHR_parallel_shader_compile")!==null?Ne():setTimeout(Ne,10)})};let un=null;function Nn(T){un&&un(T)}function zt(){Yn.stop()}function cr(){Yn.start()}let Yn=new hg;Yn.setAnimationLoop(Nn),typeof self<"u"&&Yn.setContext(self),this.setAnimationLoop=function(T){un=T,_t.setAnimationLoop(T),T===null?Yn.stop():Yn.start()},_t.addEventListener("sessionstart",zt),_t.addEventListener("sessionend",cr),this.render=function(T,Z){if(Z!==void 0&&Z.isCamera!==!0){console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(E===!0)return;T.matrixWorldAutoUpdate===!0&&T.updateMatrixWorld(),Z.parent===null&&Z.matrixWorldAutoUpdate===!0&&Z.updateMatrixWorld(),_t.enabled===!0&&_t.isPresenting===!0&&(_t.cameraAutoUpdate===!0&&_t.updateCamera(Z),Z=_t.getCamera()),T.isScene===!0&&T.onBeforeRender(g,T,Z,b),D=He.get(T,C.length),D.init(Z),C.push(D),X.multiplyMatrices(Z.projectionMatrix,Z.matrixWorldInverse),at.setFromProjectionMatrix(X),V=this.localClippingEnabled,ee=Ue.init(this.clippingPlanes,V),m=nt.get(T,p.length),m.init(),p.push(m),s2(T,Z,0,g.sortObjects),m.finish(),g.sortObjects===!0&&m.sort(Y,J);let fe=_t.enabled===!1||_t.isPresenting===!1||_t.hasDepthSensing()===!1;fe&&Se.addToRenderList(m,T),this.info.render.frame++,ee===!0&&Ue.beginShadows();let te=D.state.shadowsArray;Et.render(te,T,Z),ee===!0&&Ue.endShadows(),this.info.autoReset===!0&&this.info.reset();let ne=m.opaque,Ne=m.transmissive;if(D.setupLights(g._useLegacyLights),Z.isArrayCamera){let $e=Z.cameras;if(Ne.length>0)for(let Je=0,rt=$e.length;Je0&&a2(ne,Ne,T,Z),fe&&Se.render(T),o2(m,T,Z);b!==null&&(Ye.updateMultisampleRenderTarget(b),Ye.updateRenderTargetMipmap(b)),T.isScene===!0&&T.onAfterRender(g,T,Z),Ft.resetDefaultState(),B=-1,F=null,C.pop(),C.length>0?(D=C[C.length-1],ee===!0&&Ue.setGlobalState(g.clippingPlanes,D.state.camera)):D=null,p.pop(),p.length>0?m=p[p.length-1]:m=null};function s2(T,Z,fe,te){if(T.visible===!1)return;if(T.layers.test(Z.layers)){if(T.isGroup)fe=T.renderOrder;else if(T.isLOD)T.autoUpdate===!0&&T.update(Z);else if(T.isLight)D.pushLight(T),T.castShadow&&D.pushShadow(T);else if(T.isSprite){if(!T.frustumCulled||at.intersectsSprite(T)){te&&U.setFromMatrixPosition(T.matrixWorld).applyMatrix4(X);let $e=xe.update(T),Je=T.material;Je.visible&&m.push(T,$e,Je,fe,U.z,null)}}else if((T.isMesh||T.isLine||T.isPoints)&&(!T.frustumCulled||at.intersectsObject(T))){let $e=xe.update(T),Je=T.material;if(te&&(T.boundingSphere!==void 0?(T.boundingSphere===null&&T.computeBoundingSphere(),U.copy(T.boundingSphere.center)):($e.boundingSphere===null&&$e.computeBoundingSphere(),U.copy($e.boundingSphere.center)),U.applyMatrix4(T.matrixWorld).applyMatrix4(X)),Array.isArray(Je)){let rt=$e.groups;for(let ct=0,mt=rt.length;ct0&&cc(ne,Z,fe),Ne.length>0&&cc(Ne,Z,fe),$e.length>0&&cc($e,Z,fe),Oe.buffers.depth.setTest(!0),Oe.buffers.depth.setMask(!0),Oe.buffers.color.setMask(!0),Oe.setPolygonOffset(!1)}function a2(T,Z,fe,te){if((fe.isScene===!0?fe.overrideMaterial:null)!==null)return;D.state.transmissionRenderTarget[te.id]===void 0&&(D.state.transmissionRenderTarget[te.id]=new Wr(1,1,{generateMipmaps:!0,type:Ce.has("EXT_color_buffer_half_float")||Ce.has("EXT_color_buffer_float")?El:_s,minFilter:oo,samples:4,stencilBuffer:s,resolveDepthBuffer:!1,resolveStencilBuffer:!1}));let Ne=D.state.transmissionRenderTarget[te.id],$e=te.viewport||_;Ne.setSize($e.z,$e.w);let Je=g.getRenderTarget();g.setRenderTarget(Ne),g.getClearColor(P),H=g.getClearAlpha(),H<1&&g.setClearColor(16777215,.5),g.clear();let rt=g.toneMapping;g.toneMapping=Fs;let ct=te.viewport;if(te.viewport!==void 0&&(te.viewport=void 0),D.setupLightsView(te),ee===!0&&Ue.setGlobalState(g.clippingPlanes,te),cc(T,fe,te),Ye.updateMultisampleRenderTarget(Ne),Ye.updateRenderTargetMipmap(Ne),Ce.has("WEBGL_multisampled_render_to_texture")===!1){let mt=!1;for(let yt=0,mn=Z.length;yt0),yt=!!fe.morphAttributes.position,mn=!!fe.morphAttributes.normal,Un=!!fe.morphAttributes.color,fi=Fs;te.toneMapped&&(b===null||b.isXRRenderTarget===!0)&&(fi=g.toneMapping);let Mr=fe.morphAttributes.position||fe.morphAttributes.normal||fe.morphAttributes.color,Rt=Mr!==void 0?Mr.length:0,ft=Ke.get(te),Fu=D.state.lights;if(ee===!0&&(V===!0||T!==F)){let yi=T===F&&te.id===B;Ue.setState(te,T,yi)}let tn=!1;te.version===ft.__version?(ft.needsLights&&ft.lightsStateVersion!==Fu.state.version||ft.outputColorSpace!==Je||ne.isBatchedMesh&&ft.batching===!1||!ne.isBatchedMesh&&ft.batching===!0||ne.isInstancedMesh&&ft.instancing===!1||!ne.isInstancedMesh&&ft.instancing===!0||ne.isSkinnedMesh&&ft.skinning===!1||!ne.isSkinnedMesh&&ft.skinning===!0||ne.isInstancedMesh&&ft.instancingColor===!0&&ne.instanceColor===null||ne.isInstancedMesh&&ft.instancingColor===!1&&ne.instanceColor!==null||ne.isInstancedMesh&&ft.instancingMorph===!0&&ne.morphTexture===null||ne.isInstancedMesh&&ft.instancingMorph===!1&&ne.morphTexture!==null||ft.envMap!==rt||te.fog===!0&&ft.fog!==Ne||ft.numClippingPlanes!==void 0&&(ft.numClippingPlanes!==Ue.numPlanes||ft.numIntersection!==Ue.numIntersection)||ft.vertexAlphas!==ct||ft.vertexTangents!==mt||ft.morphTargets!==yt||ft.morphNormals!==mn||ft.morphColors!==Un||ft.toneMapping!==fi||ft.morphTargetsCount!==Rt)&&(tn=!0):(tn=!0,ft.__version=te.version);let Vs=ft.currentProgram;tn===!0&&(Vs=fc(te,Z,ne));let l2=!1,_u=!1,v1=!1,Vn=Vs.getUniforms(),es=ft.uniforms;if(Oe.useProgram(Vs.program)&&(l2=!0,_u=!0,v1=!0),te.id!==B&&(B=te.id,_u=!0),l2||F!==T){Vn.setValue(L,"projectionMatrix",T.projectionMatrix),Vn.setValue(L,"viewMatrix",T.matrixWorldInverse);let yi=Vn.map.cameraPosition;yi!==void 0&&yi.setValue(L,U.setFromMatrixPosition(T.matrixWorld)),Xe.logarithmicDepthBuffer&&Vn.setValue(L,"logDepthBufFC",2/(Math.log(T.far+1)/Math.LN2)),(te.isMeshPhongMaterial||te.isMeshToonMaterial||te.isMeshLambertMaterial||te.isMeshBasicMaterial||te.isMeshStandardMaterial||te.isShaderMaterial)&&Vn.setValue(L,"isOrthographic",T.isOrthographicCamera===!0),F!==T&&(F=T,_u=!0,v1=!0)}if(ne.isSkinnedMesh){Vn.setOptional(L,ne,"bindMatrix"),Vn.setOptional(L,ne,"bindMatrixInverse");let yi=ne.skeleton;yi&&(yi.boneTexture===null&&yi.computeBoneTexture(),Vn.setValue(L,"boneTexture",yi.boneTexture,Ye))}ne.isBatchedMesh&&(Vn.setOptional(L,ne,"batchingTexture"),Vn.setValue(L,"batchingTexture",ne._matricesTexture,Ye));let y1=fe.morphAttributes;if((y1.position!==void 0||y1.normal!==void 0||y1.color!==void 0)&&tt.update(ne,fe,Vs),(_u||ft.receiveShadow!==ne.receiveShadow)&&(ft.receiveShadow=ne.receiveShadow,Vn.setValue(L,"receiveShadow",ne.receiveShadow)),te.isMeshGouraudMaterial&&te.envMap!==null&&(es.envMap.value=rt,es.flipEnvMap.value=rt.isCubeTexture&&rt.isRenderTargetTexture===!1?-1:1),te.isMeshStandardMaterial&&te.envMap===null&&Z.environment!==null&&(es.envMapIntensity.value=Z.environmentIntensity),_u&&(Vn.setValue(L,"toneMappingExposure",g.toneMappingExposure),ft.needsLights&&DE(es,v1),Ne&&te.fog===!0&&ve.refreshFogUniforms(es,Ne),ve.refreshMaterialUniforms(es,te,ce,ie,D.state.transmissionRenderTarget[T.id]),Ba.upload(L,c2(ft),es,Ye)),te.isShaderMaterial&&te.uniformsNeedUpdate===!0&&(Ba.upload(L,c2(ft),es,Ye),te.uniformsNeedUpdate=!1),te.isSpriteMaterial&&Vn.setValue(L,"center",ne.center),Vn.setValue(L,"modelViewMatrix",ne.modelViewMatrix),Vn.setValue(L,"normalMatrix",ne.normalMatrix),Vn.setValue(L,"modelMatrix",ne.matrixWorld),te.isShaderMaterial||te.isRawShaderMaterial){let yi=te.uniformsGroups;for(let b1=0,xE=yi.length;b10&&Ye.useMultisampledRTT(T)===!1?ne=Ke.get(T).__webglMultisampledFramebuffer:Array.isArray(mt)?ne=mt[fe]:ne=mt,_.copy(T.viewport),M.copy(T.scissor),R=T.scissorTest}else _.copy(De).multiplyScalar(ce).floor(),M.copy(be).multiplyScalar(ce).floor(),R=Ae;if(Oe.bindFramebuffer(L.FRAMEBUFFER,ne)&&te&&Oe.drawBuffers(T,ne),Oe.viewport(_),Oe.scissor(M),Oe.setScissorTest(R),Ne){let rt=Ke.get(T.texture);L.framebufferTexture2D(L.FRAMEBUFFER,L.COLOR_ATTACHMENT0,L.TEXTURE_CUBE_MAP_POSITIVE_X+Z,rt.__webglTexture,fe)}else if($e){let rt=Ke.get(T.texture),ct=Z||0;L.framebufferTextureLayer(L.FRAMEBUFFER,L.COLOR_ATTACHMENT0,rt.__webglTexture,fe||0,ct)}B=-1},this.readRenderTargetPixels=function(T,Z,fe,te,ne,Ne,$e){if(!(T&&T.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let Je=Ke.get(T).__webglFramebuffer;if(T.isWebGLCubeRenderTarget&&$e!==void 0&&(Je=Je[$e]),Je){Oe.bindFramebuffer(L.FRAMEBUFFER,Je);try{let rt=T.texture,ct=rt.format,mt=rt.type;if(!Xe.textureFormatReadable(ct)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}if(!Xe.textureTypeReadable(mt)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}Z>=0&&Z<=T.width-te&&fe>=0&&fe<=T.height-ne&&L.readPixels(Z,fe,te,ne,We.convert(ct),We.convert(mt),Ne)}finally{let rt=b!==null?Ke.get(b).__webglFramebuffer:null;Oe.bindFramebuffer(L.FRAMEBUFFER,rt)}}},this.copyFramebufferToTexture=function(T,Z,fe=0){let te=Math.pow(2,-fe),ne=Math.floor(Z.image.width*te),Ne=Math.floor(Z.image.height*te);Ye.setTexture2D(Z,0),L.copyTexSubImage2D(L.TEXTURE_2D,fe,0,0,T.x,T.y,ne,Ne),Oe.unbindTexture()},this.copyTextureToTexture=function(T,Z,fe,te=0){let ne=Z.image.width,Ne=Z.image.height,$e=We.convert(fe.format),Je=We.convert(fe.type);Ye.setTexture2D(fe,0),L.pixelStorei(L.UNPACK_FLIP_Y_WEBGL,fe.flipY),L.pixelStorei(L.UNPACK_PREMULTIPLY_ALPHA_WEBGL,fe.premultiplyAlpha),L.pixelStorei(L.UNPACK_ALIGNMENT,fe.unpackAlignment),Z.isDataTexture?L.texSubImage2D(L.TEXTURE_2D,te,T.x,T.y,ne,Ne,$e,Je,Z.image.data):Z.isCompressedTexture?L.compressedTexSubImage2D(L.TEXTURE_2D,te,T.x,T.y,Z.mipmaps[0].width,Z.mipmaps[0].height,$e,Z.mipmaps[0].data):L.texSubImage2D(L.TEXTURE_2D,te,T.x,T.y,$e,Je,Z.image),te===0&&fe.generateMipmaps&&L.generateMipmap(L.TEXTURE_2D),Oe.unbindTexture()},this.copyTextureToTexture3D=function(T,Z,fe,te,ne=0){let Ne=T.max.x-T.min.x,$e=T.max.y-T.min.y,Je=T.max.z-T.min.z,rt=We.convert(te.format),ct=We.convert(te.type),mt;if(te.isData3DTexture)Ye.setTexture3D(te,0),mt=L.TEXTURE_3D;else if(te.isDataArrayTexture||te.isCompressedArrayTexture)Ye.setTexture2DArray(te,0),mt=L.TEXTURE_2D_ARRAY;else{console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");return}L.pixelStorei(L.UNPACK_FLIP_Y_WEBGL,te.flipY),L.pixelStorei(L.UNPACK_PREMULTIPLY_ALPHA_WEBGL,te.premultiplyAlpha),L.pixelStorei(L.UNPACK_ALIGNMENT,te.unpackAlignment);let yt=L.getParameter(L.UNPACK_ROW_LENGTH),mn=L.getParameter(L.UNPACK_IMAGE_HEIGHT),Un=L.getParameter(L.UNPACK_SKIP_PIXELS),fi=L.getParameter(L.UNPACK_SKIP_ROWS),Mr=L.getParameter(L.UNPACK_SKIP_IMAGES),Rt=fe.isCompressedTexture?fe.mipmaps[ne]:fe.image;L.pixelStorei(L.UNPACK_ROW_LENGTH,Rt.width),L.pixelStorei(L.UNPACK_IMAGE_HEIGHT,Rt.height),L.pixelStorei(L.UNPACK_SKIP_PIXELS,T.min.x),L.pixelStorei(L.UNPACK_SKIP_ROWS,T.min.y),L.pixelStorei(L.UNPACK_SKIP_IMAGES,T.min.z),fe.isDataTexture||fe.isData3DTexture?L.texSubImage3D(mt,ne,Z.x,Z.y,Z.z,Ne,$e,Je,rt,ct,Rt.data):te.isCompressedArrayTexture?L.compressedTexSubImage3D(mt,ne,Z.x,Z.y,Z.z,Ne,$e,Je,rt,Rt.data):L.texSubImage3D(mt,ne,Z.x,Z.y,Z.z,Ne,$e,Je,rt,ct,Rt),L.pixelStorei(L.UNPACK_ROW_LENGTH,yt),L.pixelStorei(L.UNPACK_IMAGE_HEIGHT,mn),L.pixelStorei(L.UNPACK_SKIP_PIXELS,Un),L.pixelStorei(L.UNPACK_SKIP_ROWS,fi),L.pixelStorei(L.UNPACK_SKIP_IMAGES,Mr),ne===0&&te.generateMipmaps&&L.generateMipmap(mt),Oe.unbindTexture()},this.initTexture=function(T){T.isCubeTexture?Ye.setTextureCube(T,0):T.isData3DTexture?Ye.setTexture3D(T,0):T.isDataArrayTexture||T.isCompressedArrayTexture?Ye.setTexture2DArray(T,0):Ye.setTexture2D(T,0),Oe.unbindTexture()},this.resetState=function(){y=0,v=0,b=null,Oe.reset(),Ft.reset()},typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return jr}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;let t=this.getContext();t.drawingBufferColorSpace=e===HD?"display-p3":"srgb",t.unpackColorSpace=qt.workingColorSpace===Fl?"display-p3":"srgb"}get useLegacyLights(){return console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights}set useLegacyLights(e){console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights=e}};var fl=class extends Ki{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.backgroundRotation=new ao,this.environmentIntensity=1,this.environmentRotation=new ao,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,t){return super.copy(e,t),e.background!==null&&(this.background=e.background.clone()),e.environment!==null&&(this.environment=e.environment.clone()),e.fog!==null&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,this.backgroundRotation.copy(e.backgroundRotation),this.environmentIntensity=e.environmentIntensity,this.environmentRotation.copy(e.environmentRotation),e.overrideMaterial!==null&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){let t=super.toJSON(e);return this.fog!==null&&(t.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(t.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(t.object.backgroundIntensity=this.backgroundIntensity),t.object.backgroundRotation=this.backgroundRotation.toArray(),this.environmentIntensity!==1&&(t.object.environmentIntensity=this.environmentIntensity),t.object.environmentRotation=this.environmentRotation.toArray(),t}};var Li=class extends Oi{constructor(e){super(),this.isLineBasicMaterial=!0,this.type="LineBasicMaterial",this.color=new st(16777215),this.map=null,this.linewidth=1,this.linecap="round",this.linejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.linewidth=e.linewidth,this.linecap=e.linecap,this.linejoin=e.linejoin,this.fog=e.fog,this}},ll=new z,hl=new z,HC=new ut,v0=new Ma,zf=new qr,Jd=new z,GC=new z,uo=class extends Ki{constructor(e=new Mn,t=new Li){super(),this.isLine=!0,this.type="Line",this.geometry=e,this.material=t,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}computeLineDistances(){let e=this.geometry;if(e.index===null){let t=e.attributes.position,n=[0];for(let i=1,s=t.count;i0){let i=t[n[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let s=0,o=i.length;sn)return;Jd.applyMatrix4(r.matrixWorld);let u=e.ray.origin.distanceTo(Jd);if(!(ue.far))return{distance:u,point:GC.clone().applyMatrix4(r.matrixWorld),index:i,face:null,faceIndex:null,object:r}}var jC=new z,WC=new z,ka=class extends uo{constructor(e,t){super(e,t),this.isLineSegments=!0,this.type="LineSegments"}computeLineDistances(){let e=this.geometry;if(e.index===null){let t=e.attributes.position,n=[];for(let i=0,s=t.count;i0){let i=t[n[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let s=0,o=i.length;si.far)return;s.push({distance:c,distanceToRay:Math.sqrt(a),point:u,index:e,face:null,object:o})}}var yD=class{constructor(){this.type="Curve",this.arcLengthDivisions=200}getPoint(){return console.warn("THREE.Curve: .getPoint() not implemented."),null}getPointAt(e,t){let n=this.getUtoTmapping(e);return this.getPoint(n,t)}getPoints(e=5){let t=[];for(let n=0;n<=e;n++)t.push(this.getPoint(n/e));return t}getSpacedPoints(e=5){let t=[];for(let n=0;n<=e;n++)t.push(this.getPointAt(n/e));return t}getLength(){let e=this.getLengths();return e[e.length-1]}getLengths(e=this.arcLengthDivisions){if(this.cacheArcLengths&&this.cacheArcLengths.length===e+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;let t=[],n,i=this.getPoint(0),s=0;t.push(0);for(let o=1;o<=e;o++)n=this.getPoint(o/e),s+=n.distanceTo(i),t.push(s),i=n;return this.cacheArcLengths=t,t}updateArcLengths(){this.needsUpdate=!0,this.getLengths()}getUtoTmapping(e,t){let n=this.getLengths(),i=0,s=n.length,o;t?o=t:o=e*n[s-1];let a=0,u=s-1,c;for(;a<=u;)if(i=Math.floor(a+(u-a)/2),c=n[i]-o,c<0)a=i+1;else if(c>0)u=i-1;else{u=i;break}if(i=u,n[i]===o)return i/(s-1);let f=n[i],h=n[i+1]-f,d=(o-f)/h;return(i+d)/(s-1)}getTangent(e,t){let i=e-1e-4,s=e+1e-4;i<0&&(i=0),s>1&&(s=1);let o=this.getPoint(i),a=this.getPoint(s),u=t||(o.isVector2?new ot:new z);return u.copy(a).sub(o).normalize(),u}getTangentAt(e,t){let n=this.getUtoTmapping(e);return this.getTangent(n,t)}computeFrenetFrames(e,t){let n=new z,i=[],s=[],o=[],a=new z,u=new ut;for(let d=0;d<=e;d++){let x=d/e;i[d]=this.getTangentAt(x,new z)}s[0]=new z,o[0]=new z;let c=Number.MAX_VALUE,f=Math.abs(i[0].x),l=Math.abs(i[0].y),h=Math.abs(i[0].z);f<=c&&(c=f,n.set(1,0,0)),l<=c&&(c=l,n.set(0,1,0)),h<=c&&n.set(0,0,1),a.crossVectors(i[0],n).normalize(),s[0].crossVectors(i[0],a),o[0].crossVectors(i[0],s[0]);for(let d=1;d<=e;d++){if(s[d]=s[d-1].clone(),o[d]=o[d-1].clone(),a.crossVectors(i[d-1],i[d]),a.length()>Number.EPSILON){a.normalize();let x=Math.acos(Pn(i[d-1].dot(i[d]),-1,1));s[d].applyMatrix4(u.makeRotationAxis(a,x))}o[d].crossVectors(i[d],s[d])}if(t===!0){let d=Math.acos(Pn(s[0].dot(s[e]),-1,1));d/=e,i[0].dot(a.crossVectors(s[0],s[e]))>0&&(d=-d);for(let x=1;x<=e;x++)s[x].applyMatrix4(u.makeRotationAxis(i[x],d*x)),o[x].crossVectors(i[x],s[x])}return{tangents:i,normals:s,binormals:o}}clone(){return new this.constructor().copy(this)}copy(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}toJSON(){let e={metadata:{version:4.6,type:"Curve",generator:"Curve.toJSON"}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.type,e}fromJSON(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}},co=class extends yD{constructor(e=0,t=0,n=1,i=1,s=0,o=Math.PI*2,a=!1,u=0){super(),this.isEllipseCurve=!0,this.type="EllipseCurve",this.aX=e,this.aY=t,this.xRadius=n,this.yRadius=i,this.aStartAngle=s,this.aEndAngle=o,this.aClockwise=a,this.aRotation=u}getPoint(e,t=new ot){let n=t,i=Math.PI*2,s=this.aEndAngle-this.aStartAngle,o=Math.abs(s)i;)s-=i;s=s)){let a=t[1];e=s)break t}o=n,n=0;break n}break e}for(;n>>1;et;)--o;if(++o,s!==0||o!==i){s>=o&&(o=Math.max(o,1),s=o-1);let a=this.getValueSize();this.times=n.slice(s,o),this.values=this.values.slice(s*a,o*a)}return this}validate(){let e=!0,t=this.getValueSize();t-Math.floor(t)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);let n=this.times,i=this.values,s=n.length;s===0&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);let o=null;for(let a=0;a!==s;a++){let u=n[a];if(typeof u=="number"&&isNaN(u)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,a,u),e=!1;break}if(o!==null&&o>u){console.error("THREE.KeyframeTrack: Out of order keys.",this,a,u,o),e=!1;break}o=u}if(i!==void 0&&DS(i))for(let a=0,u=i.length;a!==u;++a){let c=i[a];if(isNaN(c)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,a,c),e=!1;break}}return e}optimize(){let e=this.times.slice(),t=this.values.slice(),n=this.getValueSize(),i=this.getInterpolation()===Ad,s=e.length-1,o=1;for(let a=1;a0){e[o]=e[s];for(let a=s*n,u=o*n,c=0;c!==n;++c)t[u+c]=t[a+c];++o}return o!==e.length?(this.times=e.slice(0,o),this.values=t.slice(0,o*n)):(this.times=e,this.values=t),this}clone(){let e=this.times.slice(),t=this.values.slice(),n=this.constructor,i=new n(this.name,e,t);return i.createInterpolant=this.createInterpolant,i}};Zi.prototype.TimeBufferType=Float32Array;Zi.prototype.ValueBufferType=Float32Array;Zi.prototype.DefaultInterpolation=Yf;var fo=class extends Zi{};fo.prototype.ValueTypeName="bool";fo.prototype.ValueBufferType=Array;fo.prototype.DefaultInterpolation=qf;fo.prototype.InterpolantFactoryMethodLinear=void 0;fo.prototype.InterpolantFactoryMethodSmooth=void 0;var wD=class extends Zi{};wD.prototype.ValueTypeName="color";var SD=class extends Zi{};SD.prototype.ValueTypeName="number";var MD=class extends Ra{constructor(e,t,n,i){super(e,t,n,i)}interpolate_(e,t,n,i){let s=this.resultBuffer,o=this.sampleValues,a=this.valueSize,u=(n-t)/(i-t),c=e*a;for(let f=c+a;c!==f;c+=4)Ri.slerpFlat(s,0,o,c-a,o,c,u);return s}},O0=class extends Zi{InterpolantFactoryMethodLinear(e){return new MD(this.times,this.values,this.getValueSize(),e)}};O0.prototype.ValueTypeName="quaternion";O0.prototype.DefaultInterpolation=Yf;O0.prototype.InterpolantFactoryMethodSmooth=void 0;var lo=class extends Zi{};lo.prototype.ValueTypeName="string";lo.prototype.ValueBufferType=Array;lo.prototype.DefaultInterpolation=qf;lo.prototype.InterpolantFactoryMethodLinear=void 0;lo.prototype.InterpolantFactoryMethodSmooth=void 0;var TD=class extends Zi{};TD.prototype.ValueTypeName="vector";var dl={enabled:!1,files:{},add:function(r,e){this.enabled!==!1&&(this.files[r]=e)},get:function(r){if(this.enabled!==!1)return this.files[r]},remove:function(r){delete this.files[r]},clear:function(){this.files={}}},kD=class{constructor(e,t,n){let i=this,s=!1,o=0,a=0,u,c=[];this.onStart=void 0,this.onLoad=e,this.onProgress=t,this.onError=n,this.itemStart=function(f){a++,s===!1&&i.onStart!==void 0&&i.onStart(f,o,a),s=!0},this.itemEnd=function(f){o++,i.onProgress!==void 0&&i.onProgress(f,o,a),o===a&&(s=!1,i.onLoad!==void 0&&i.onLoad())},this.itemError=function(f){i.onError!==void 0&&i.onError(f)},this.resolveURL=function(f){return u?u(f):f},this.setURLModifier=function(f){return u=f,this},this.addHandler=function(f,l){return c.push(f,l),this},this.removeHandler=function(f){let l=c.indexOf(f);return l!==-1&&c.splice(l,2),this},this.getHandler=function(f){for(let l=0,h=c.length;l{class r{constructor(t){this.manager=t!==void 0?t:WD,this.crossOrigin="anonymous",this.withCredentials=!1,this.path="",this.resourcePath="",this.requestHeader={}}load(){}loadAsync(t,n){let i=this;return new Promise(function(s,o){i.load(t,s,n,o)})}parse(){}setCrossOrigin(t){return this.crossOrigin=t,this}setWithCredentials(t){return this.withCredentials=t,this}setPath(t){return this.path=t,this}setResourcePath(t){return this.resourcePath=t,this}setRequestHeader(t){return this.requestHeader=t,this}}return r.DEFAULT_MATERIAL_NAME="__DEFAULT",r})(),Vr={},PD=class extends Error{constructor(e,t){super(e),this.response=t}},Oa=class extends ho{constructor(e){super(e)}load(e,t,n,i){e===void 0&&(e=""),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);let s=dl.get(e);if(s!==void 0)return this.manager.itemStart(e),setTimeout(()=>{t&&t(s),this.manager.itemEnd(e)},0),s;if(Vr[e]!==void 0){Vr[e].push({onLoad:t,onProgress:n,onError:i});return}Vr[e]=[],Vr[e].push({onLoad:t,onProgress:n,onError:i});let o=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),a=this.mimeType,u=this.responseType;fetch(o).then(c=>{if(c.status===200||c.status===0){if(c.status===0&&console.warn("THREE.FileLoader: HTTP Status 0 received."),typeof ReadableStream>"u"||c.body===void 0||c.body.getReader===void 0)return c;let f=Vr[e],l=c.body.getReader(),h=c.headers.get("X-File-Size")||c.headers.get("Content-Length"),d=h?parseInt(h):0,x=d!==0,m=0,D=new ReadableStream({start(p){C();function C(){l.read().then(({done:g,value:E})=>{if(g)p.close();else{m+=E.byteLength;let y=new ProgressEvent("progress",{lengthComputable:x,loaded:m,total:d});for(let v=0,b=f.length;v{switch(u){case"arraybuffer":return c.arrayBuffer();case"blob":return c.blob();case"document":return c.text().then(f=>new DOMParser().parseFromString(f,a));case"json":return c.json();default:if(a===void 0)return c.text();{let l=/charset="?([^;"\s]*)"?/i.exec(a),h=l&&l[1]?l[1].toLowerCase():void 0,d=new TextDecoder(h);return c.arrayBuffer().then(x=>d.decode(x))}}}).then(c=>{dl.add(e,c);let f=Vr[e];delete Vr[e];for(let l=0,h=f.length;l{let f=Vr[e];if(f===void 0)throw this.manager.itemError(e),c;delete Vr[e];for(let l=0,h=f.length;l{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}};var ID=class extends ho{constructor(e){super(e)}load(e,t,n,i){this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);let s=this,o=dl.get(e);if(o!==void 0)return s.manager.itemStart(e),setTimeout(function(){t&&t(o),s.manager.itemEnd(e)},0),o;let a=k0("img");function u(){f(),dl.add(e,this),t&&t(this),s.manager.itemEnd(e)}function c(l){f(),i&&i(l),s.manager.itemError(e),s.manager.itemEnd(e)}function f(){a.removeEventListener("load",u,!1),a.removeEventListener("error",c,!1)}return a.addEventListener("load",u,!1),a.addEventListener("error",c,!1),e.slice(0,5)!=="data:"&&this.crossOrigin!==void 0&&(a.crossOrigin=this.crossOrigin),s.manager.itemStart(e),a.src=e,a}};var Dl=class extends ho{constructor(e){super(e)}load(e,t,n,i){let s=new bs,o=new ID(this.manager);return o.setCrossOrigin(this.crossOrigin),o.setPath(this.path),o.load(e,function(a){s.image=a,s.needsUpdate=!0,t!==void 0&&t(s)},n,i),s}},RD=class extends Ki{constructor(e,t=1){super(),this.isLight=!0,this.type="Light",this.color=new st(e),this.intensity=t}dispose(){}copy(e,t){return super.copy(e,t),this.color.copy(e.color),this.intensity=e.intensity,this}toJSON(e){let t=super.toJSON(e);return t.object.color=this.color.getHex(),t.object.intensity=this.intensity,this.groundColor!==void 0&&(t.object.groundColor=this.groundColor.getHex()),this.distance!==void 0&&(t.object.distance=this.distance),this.angle!==void 0&&(t.object.angle=this.angle),this.decay!==void 0&&(t.object.decay=this.decay),this.penumbra!==void 0&&(t.object.penumbra=this.penumbra),this.shadow!==void 0&&(t.object.shadow=this.shadow.toJSON()),t}};var Qd=new ut,YC=new z,$C=new z,OD=class{constructor(e){this.camera=e,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new ot(512,512),this.map=null,this.mapPass=null,this.matrix=new ut,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new R0,this._frameExtents=new ot(1,1),this._viewportCount=1,this._viewports=[new on(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(e){let t=this.camera,n=this.matrix;YC.setFromMatrixPosition(e.matrixWorld),t.position.copy(YC),$C.setFromMatrixPosition(e.target.matrixWorld),t.lookAt($C),t.updateMatrixWorld(),Qd.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),this._frustum.setFromProjectionMatrix(Qd),n.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),n.multiply(Qd)}getViewport(e){return this._viewports[e]}getFrameExtents(){return this._frameExtents}dispose(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}copy(e){return this.camera=e.camera.clone(),this.bias=e.bias,this.radius=e.radius,this.mapSize.copy(e.mapSize),this}clone(){return new this.constructor().copy(this)}toJSON(){let e={};return this.bias!==0&&(e.bias=this.bias),this.normalBias!==0&&(e.normalBias=this.normalBias),this.radius!==1&&(e.radius=this.radius),(this.mapSize.x!==512||this.mapSize.y!==512)&&(e.mapSize=this.mapSize.toArray()),e.camera=this.camera.toJSON(!1).object,delete e.camera.matrix,e}};var ZC=new ut,y0=new z,eD=new z,LD=class extends OD{constructor(){super(new Wn(90,1,.5,500)),this.isPointLightShadow=!0,this._frameExtents=new ot(4,2),this._viewportCount=6,this._viewports=[new on(2,1,1,1),new on(0,1,1,1),new on(3,1,1,1),new on(1,1,1,1),new on(3,0,1,1),new on(1,0,1,1)],this._cubeDirections=[new z(1,0,0),new z(-1,0,0),new z(0,0,1),new z(0,0,-1),new z(0,1,0),new z(0,-1,0)],this._cubeUps=[new z(0,1,0),new z(0,1,0),new z(0,1,0),new z(0,1,0),new z(0,0,1),new z(0,0,-1)]}updateMatrices(e,t=0){let n=this.camera,i=this.matrix,s=e.distance||n.far;s!==n.far&&(n.far=s,n.updateProjectionMatrix()),y0.setFromMatrixPosition(e.matrixWorld),n.position.copy(y0),eD.copy(n.position),eD.add(this._cubeDirections[t]),n.up.copy(this._cubeUps[t]),n.lookAt(eD),n.updateMatrixWorld(),i.makeTranslation(-y0.x,-y0.y,-y0.z),ZC.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse),this._frustum.setFromProjectionMatrix(ZC)}},pl=class extends RD{constructor(e,t,n=0,i=2){super(e,t),this.isPointLight=!0,this.type="PointLight",this.distance=n,this.decay=i,this.shadow=new LD}get power(){return this.intensity*4*Math.PI}set power(e){this.intensity=e/(4*Math.PI)}dispose(){this.shadow.dispose()}copy(e,t){return super.copy(e,t),this.distance=e.distance,this.decay=e.decay,this.shadow=e.shadow.clone(),this}};var xl=class{static decodeText(e){if(typeof TextDecoder<"u")return new TextDecoder().decode(e);let t="";for(let n=0,i=e.length;n{class r{constructor(t,n,i){this.path=n,this.parsedPath=i||r.parseTrackName(n),this.node=r.findNode(t,this.parsedPath.nodeName),this.rootNode=t,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(t,n,i){return t&&t.isAnimationObjectGroup?new r.Composite(t,n,i):new r(t,n,i)}static sanitizeNodeName(t){return t.replace(/\s/g,"_").replace(pS,"")}static parseTrackName(t){let n=FS.exec(t);if(n===null)throw new Error("PropertyBinding: Cannot parse trackName: "+t);let i={nodeName:n[2],objectName:n[3],objectIndex:n[4],propertyName:n[5],propertyIndex:n[6]},s=i.nodeName&&i.nodeName.lastIndexOf(".");if(s!==void 0&&s!==-1){let o=i.nodeName.substring(s+1);_S.indexOf(o)!==-1&&(i.nodeName=i.nodeName.substring(0,s),i.objectName=o)}if(i.propertyName===null||i.propertyName.length===0)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+t);return i}static findNode(t,n){if(n===void 0||n===""||n==="."||n===-1||n===t.name||n===t.uuid)return t;if(t.skeleton){let i=t.skeleton.getBoneByName(n);if(i!==void 0)return i}if(t.children){let i=function(o){for(let a=0;a0&&(o=Math.pow(this.scaleFactor,s*8)),this._v3_1.setFromMatrixPosition(this._gizmoMatrixState),this.applyTransformMatrix(this.scale(o,this._v3_1))}break;case et.FOV:if(this.enableZoom&&this.camera.isPerspectiveCamera)if(n)this.dispatchEvent(Ni),this.dispatchEvent(Qi),this.updateTbState(t,!0),this._startCursorPosition.setY(this.getCursorNDC(dt.x,dt.y,this.domElement).y*.5),this._currentCursorPosition.copy(this._startCursorPosition),this.enableGrid&&this.disposeGrid(),this.activateGizmos(!1);else{this._currentCursorPosition.setY(this.getCursorNDC(dt.x,dt.y,this.domElement).y*.5);let s=this._currentCursorPosition.y-this._startCursorPosition.y,o=1;s<0?o=1/Math.pow(this.scaleFactor,-s*8):s>0&&(o=Math.pow(this.scaleFactor,s*8)),this._v3_1.setFromMatrixPosition(this._cameraMatrixState);let a=this._v3_1.distanceTo(this._gizmos.position),u=a/o;u=an.clamp(u,this.minDistance,this.maxDistance);let c=a*Math.tan(an.DEG2RAD*this._fovState*.5),f=an.RAD2DEG*(Math.atan(c/u)*2);f=an.clamp(f,this.minFov,this.maxFov);let l=c/Math.tan(an.DEG2RAD*(f/2));o=a/l,this._v3_2.setFromMatrixPosition(this._gizmoMatrixState),this.setFov(f),this.applyTransformMatrix(this.scale(o,this._v3_2,!1)),vn.copy(this._gizmos.position).sub(this.camera.position).normalize().multiplyScalar(l/a),this._m4_1.makeTranslation(vn.x,vn.y,vn.z)}break}this.dispatchEvent(Kt)}}onSinglePanEnd(){if(this._state==et.ROTATE){if(!this.enableRotate)return;if(this.enableAnimations)if(performance.now()-this._timeCurrent<120){let t=Math.abs((this._wPrev+this._wCurr)/2),n=this;this._animationId=window.requestAnimationFrame(function(i){n.updateTbState(et.ANIMATION_ROTATE,!0);let s=n.calculateRotationAxis(n._cursorPosPrev,n._cursorPosCurr);n.onRotationAnim(i,s,Math.min(t,n.wMax))})}else this.updateTbState(et.IDLE,!1),this.activateGizmos(!1),this.dispatchEvent(Kt);else this.updateTbState(et.IDLE,!1),this.activateGizmos(!1),this.dispatchEvent(Kt)}else(this._state==et.PAN||this._state==et.IDLE)&&(this.updateTbState(et.IDLE,!1),this.enableGrid&&this.disposeGrid(),this.activateGizmos(!1),this.dispatchEvent(Kt));this.dispatchEvent(Ni)}onDoubleTap(e){if(this.enabled&&this.enablePan&&this.scene!=null){this.dispatchEvent(Qi),this.setCenter(e.clientX,e.clientY);let t=this.unprojectOnObj(this.getCursorNDC(dt.x,dt.y,this.domElement),this.camera);if(t!=null&&this.enableAnimations){let n=this;this._animationId!=-1&&window.cancelAnimationFrame(this._animationId),this._timeStart=-1,this._animationId=window.requestAnimationFrame(function(i){n.updateTbState(et.ANIMATION_FOCUS,!0),n.onFocusAnim(i,t,n._cameraMatrixState,n._gizmoMatrixState)})}else t!=null&&!this.enableAnimations&&(this.updateTbState(et.FOCUS,!0),this.focus(t,this.scaleFactor),this.updateTbState(et.IDLE,!1),this.dispatchEvent(Kt))}this.dispatchEvent(Ni)}onDoublePanStart(){this.enabled&&this.enablePan&&(this.dispatchEvent(Qi),this.updateTbState(et.PAN,!0),this.setCenter((this._touchCurrent[0].clientX+this._touchCurrent[1].clientX)/2,(this._touchCurrent[0].clientY+this._touchCurrent[1].clientY)/2),this._startCursorPosition.copy(this.unprojectOnTbPlane(this.camera,dt.x,dt.y,this.domElement,!0)),this._currentCursorPosition.copy(this._startCursorPosition),this.activateGizmos(!1))}onDoublePanMove(){this.enabled&&this.enablePan&&(this.setCenter((this._touchCurrent[0].clientX+this._touchCurrent[1].clientX)/2,(this._touchCurrent[0].clientY+this._touchCurrent[1].clientY)/2),this._state!=et.PAN&&(this.updateTbState(et.PAN,!0),this._startCursorPosition.copy(this._currentCursorPosition)),this._currentCursorPosition.copy(this.unprojectOnTbPlane(this.camera,dt.x,dt.y,this.domElement,!0)),this.applyTransformMatrix(this.pan(this._startCursorPosition,this._currentCursorPosition,!0)),this.dispatchEvent(Kt))}onDoublePanEnd(){this.updateTbState(et.IDLE,!1),this.dispatchEvent(Ni)}onRotateStart(){this.enabled&&this.enableRotate&&(this.dispatchEvent(Qi),this.updateTbState(et.ZROTATE,!0),this._startFingerRotation=this.getAngle(this._touchCurrent[1],this._touchCurrent[0])+this.getAngle(this._touchStart[1],this._touchStart[0]),this._currentFingerRotation=this._startFingerRotation,this.camera.getWorldDirection(this._rotationAxis),!this.enablePan&&!this.enableZoom&&this.activateGizmos(!0))}onRotateMove(){if(this.enabled&&this.enableRotate){this.setCenter((this._touchCurrent[0].clientX+this._touchCurrent[1].clientX)/2,(this._touchCurrent[0].clientY+this._touchCurrent[1].clientY)/2);let e;this._state!=et.ZROTATE&&(this.updateTbState(et.ZROTATE,!0),this._startFingerRotation=this._currentFingerRotation),this._currentFingerRotation=this.getAngle(this._touchCurrent[1],this._touchCurrent[0])+this.getAngle(this._touchStart[1],this._touchStart[0]),this.enablePan?(this._v3_2.setFromMatrixPosition(this._gizmoMatrixState),e=this.unprojectOnTbPlane(this.camera,dt.x,dt.y,this.domElement).applyQuaternion(this.camera.quaternion).multiplyScalar(1/this.camera.zoom).add(this._v3_2)):e=new z().setFromMatrixPosition(this._gizmoMatrixState);let t=an.DEG2RAD*(this._startFingerRotation-this._currentFingerRotation);this.applyTransformMatrix(this.zRotate(e,t)),this.dispatchEvent(Kt)}}onRotateEnd(){this.updateTbState(et.IDLE,!1),this.activateGizmos(!1),this.dispatchEvent(Ni)}onPinchStart(){this.enabled&&this.enableZoom&&(this.dispatchEvent(Qi),this.updateTbState(et.SCALE,!0),this._startFingerDistance=this.calculatePointersDistance(this._touchCurrent[0],this._touchCurrent[1]),this._currentFingerDistance=this._startFingerDistance,this.activateGizmos(!1))}onPinchMove(){if(this.enabled&&this.enableZoom){this.setCenter((this._touchCurrent[0].clientX+this._touchCurrent[1].clientX)/2,(this._touchCurrent[0].clientY+this._touchCurrent[1].clientY)/2);let e=12;this._state!=et.SCALE&&(this._startFingerDistance=this._currentFingerDistance,this.updateTbState(et.SCALE,!0)),this._currentFingerDistance=Math.max(this.calculatePointersDistance(this._touchCurrent[0],this._touchCurrent[1]),e*this._devPxRatio);let t=this._currentFingerDistance/this._startFingerDistance,n;this.enablePan?this.camera.isOrthographicCamera?n=this.unprojectOnTbPlane(this.camera,dt.x,dt.y,this.domElement).applyQuaternion(this.camera.quaternion).multiplyScalar(1/this.camera.zoom).add(this._gizmos.position):this.camera.isPerspectiveCamera&&(n=this.unprojectOnTbPlane(this.camera,dt.x,dt.y,this.domElement).applyQuaternion(this.camera.quaternion).add(this._gizmos.position)):n=this._gizmos.position,this.applyTransformMatrix(this.scale(t,n)),this.dispatchEvent(Kt)}}onPinchEnd(){this.updateTbState(et.IDLE,!1),this.dispatchEvent(Ni)}onTriplePanStart(){if(this.enabled&&this.enableZoom){this.dispatchEvent(Qi),this.updateTbState(et.SCALE,!0);let e=0,t=0,n=this._touchCurrent.length;for(let i=0;i0&&(o=Math.pow(this.scaleFactor,s*i)),this._v3_1.setFromMatrixPosition(this._cameraMatrixState);let a=this._v3_1.distanceTo(this._gizmos.position),u=a/o;u=an.clamp(u,this.minDistance,this.maxDistance);let c=a*Math.tan(an.DEG2RAD*this._fovState*.5),f=an.RAD2DEG*(Math.atan(c/u)*2);f=an.clamp(f,this.minFov,this.maxFov);let l=c/Math.tan(an.DEG2RAD*(f/2));o=a/l,this._v3_2.setFromMatrixPosition(this._gizmoMatrixState),this.setFov(f),this.applyTransformMatrix(this.scale(o,this._v3_2,!1)),vn.copy(this._gizmos.position).sub(this.camera.position).normalize().multiplyScalar(l/a),this._m4_1.makeTranslation(vn.x,vn.y,vn.z),this.dispatchEvent(Kt)}}onTriplePanEnd(){this.updateTbState(et.IDLE,!1),this.dispatchEvent(Ni)}setCenter(e,t){dt.x=e,dt.y=t}initializeMouseActions(){this.setMouseAction("PAN",0,"CTRL"),this.setMouseAction("PAN",2),this.setMouseAction("ROTATE",0),this.setMouseAction("ZOOM","WHEEL"),this.setMouseAction("ZOOM",1),this.setMouseAction("FOV","WHEEL","SHIFT"),this.setMouseAction("FOV",1,"SHIFT")}compareMouseAction(e,t){return e.operation==t.operation?e.mouse==t.mouse&&e.key==t.key:!1}setMouseAction(e,t,n=null){let i=["PAN","ROTATE","ZOOM","FOV"],s=[0,1,2,"WHEEL"],o=["CTRL","SHIFT",null],a;if(!i.includes(e)||!s.includes(t)||!o.includes(n)||t=="WHEEL"&&e!="ZOOM"&&e!="FOV")return!1;switch(e){case"PAN":a=et.PAN;break;case"ROTATE":a=et.ROTATE;break;case"ZOOM":a=et.SCALE;break;case"FOV":a=et.FOV;break}let u={operation:e,mouse:t,key:n,state:a};for(let c=0;c=1)this._gizmoMatrixState.decompose(this._gizmos.position,this._gizmos.quaternion,this._gizmos.scale),this.focus(t,this.scaleFactor),this._timeStart=-1,this.updateTbState(et.IDLE,!1),this.activateGizmos(!1),this.dispatchEvent(Kt);else{let a=this.easeOutCubic(o),u=1-a+this.scaleFactor*a;this._gizmoMatrixState.decompose(this._gizmos.position,this._gizmos.quaternion,this._gizmos.scale),this.focus(t,u,a),this.dispatchEvent(Kt);let c=this;this._animationId=window.requestAnimationFrame(function(f){c.onFocusAnim(f,t,n,i.clone())})}}else this._animationId=-1,this._timeStart=-1}onRotationAnim(e,t,n){if(this._timeStart==-1&&(this._anglePrev=0,this._angleCurrent=0,this._timeStart=e),this._state==et.ANIMATION_ROTATE){let i=(e-this._timeStart)/1e3;if(n+-this.dampingFactor*i>0){this._angleCurrent=.5*-this.dampingFactor*Math.pow(i,2)+n*i+0,this.applyTransformMatrix(this.rotate(t,this._angleCurrent)),this.dispatchEvent(Kt);let o=this;this._animationId=window.requestAnimationFrame(function(a){o.onRotationAnim(a,t,n)})}else this._animationId=-1,this._timeStart=-1,this.updateTbState(et.IDLE,!1),this.activateGizmos(!1),this.dispatchEvent(Kt)}else this._animationId=-1,this._timeStart=-1,this._state!=et.ROTATE&&(this.activateGizmos(!1),this.dispatchEvent(Kt))}pan(e,t,n=!1){let i=e.clone().sub(t);if(this.camera.isOrthographicCamera)i.multiplyScalar(1/this.camera.zoom);else if(this.camera.isPerspectiveCamera&&n){this._v3_1.setFromMatrixPosition(this._cameraMatrixState0),this._v3_2.setFromMatrixPosition(this._gizmoMatrixState0);let s=this._v3_1.distanceTo(this._v3_2)/this.camera.position.distanceTo(this._gizmos.position);i.multiplyScalar(1/s)}return this._v3_1.set(i.x,i.y,0).applyQuaternion(this.camera.quaternion),this._m4_1.makeTranslation(this._v3_1.x,this._v3_1.y,this._v3_1.z),this.setTransformationMatrices(this._m4_1,this._m4_1),Ei}reset(){this.camera.zoom=this._zoom0,this.camera.isPerspectiveCamera&&(this.camera.fov=this._fov0),this.camera.near=this._nearPos,this.camera.far=this._farPos,this._cameraMatrixState.copy(this._cameraMatrixState0),this._cameraMatrixState.decompose(this.camera.position,this.camera.quaternion,this.camera.scale),this.camera.up.copy(this._up0),this.camera.updateMatrix(),this.camera.updateProjectionMatrix(),this._gizmoMatrixState.copy(this._gizmoMatrixState0),this._gizmoMatrixState0.decompose(this._gizmos.position,this._gizmos.quaternion,this._gizmos.scale),this._gizmos.updateMatrix(),this._tbRadius=this.calculateTbRadius(this.camera),this.makeGizmos(this._gizmos.position,this._tbRadius),this.camera.lookAt(this._gizmos.position),this.updateTbState(et.IDLE,!1),this.dispatchEvent(Kt)}rotate(e,t){let n=this._gizmos.position;return this._translationMatrix.makeTranslation(-n.x,-n.y,-n.z),this._rotationMatrix.makeRotationAxis(e,-t),this._m4_1.makeTranslation(n.x,n.y,n.z),this._m4_1.multiply(this._rotationMatrix),this._m4_1.multiply(this._translationMatrix),this.setTransformationMatrices(this._m4_1),Ei}copyState(){let e;this.camera.isOrthographicCamera?e=JSON.stringify({arcballState:{cameraFar:this.camera.far,cameraMatrix:this.camera.matrix,cameraNear:this.camera.near,cameraUp:this.camera.up,cameraZoom:this.camera.zoom,gizmoMatrix:this._gizmos.matrix}}):this.camera.isPerspectiveCamera&&(e=JSON.stringify({arcballState:{cameraFar:this.camera.far,cameraFov:this.camera.fov,cameraMatrix:this.camera.matrix,cameraNear:this.camera.near,cameraUp:this.camera.up,cameraZoom:this.camera.zoom,gizmoMatrix:this._gizmos.matrix}})),navigator.clipboard.writeText(e)}pasteState(){let e=this;navigator.clipboard.readText().then(function(n){e.setStateFromJSON(n)})}saveState(){this._cameraMatrixState0.copy(this.camera.matrix),this._gizmoMatrixState0.copy(this._gizmos.matrix),this._nearPos=this.camera.near,this._farPos=this.camera.far,this._zoom0=this.camera.zoom,this._up0.copy(this.camera.up),this.camera.isPerspectiveCamera&&(this._fov0=this.camera.fov)}scale(e,t,n=!0){Ji.copy(t);let i=1/e;if(this.camera.isOrthographicCamera){this.camera.zoom=this._zoomState,this.camera.zoom*=e,this.camera.zoom>this.maxZoom?(this.camera.zoom=this.maxZoom,i=this._zoomState/this.maxZoom):this.camera.zoomthis.maxDistance&&(i=this.maxDistance/s,o=s-s*i),vn.copy(Ji).sub(this._v3_1).normalize().multiplyScalar(o),this._m4_1.makeTranslation(vn.x,vn.y,vn.z),n){let u=this._v3_2;s=u.distanceTo(Ji),o=s-s*i,vn.copy(Ji).sub(this._v3_2).normalize().multiplyScalar(o),this._translationMatrix.makeTranslation(u.x,u.y,u.z),this._scaleMatrix.makeScale(i,i,i),this._m4_2.makeTranslation(vn.x,vn.y,vn.z).multiply(this._translationMatrix),this._m4_2.multiply(this._scaleMatrix),this._translationMatrix.makeTranslation(-u.x,-u.y,-u.z),this._m4_2.multiply(this._translationMatrix),this.setTransformationMatrices(this._m4_1,this._m4_2)}else this.setTransformationMatrices(this._m4_1);return Ei}}setFov(e){this.camera.isPerspectiveCamera&&(this.camera.fov=an.clamp(e,this.minFov,this.maxFov),this.camera.updateProjectionMatrix())}setTransformationMatrices(e=null,t=null){e!=null?Ei.camera!=null?Ei.camera.copy(e):Ei.camera=e.clone():Ei.camera=null,t!=null?Ei.gizmos!=null?Ei.gizmos.copy(t):Ei.gizmos=t.clone():Ei.gizmos=null}zRotate(e,t){return this._rotationMatrix.makeRotationAxis(this._rotationAxis,t),this._translationMatrix.makeTranslation(-e.x,-e.y,-e.z),this._m4_1.makeTranslation(e.x,e.y,e.z),this._m4_1.multiply(this._rotationMatrix),this._m4_1.multiply(this._translationMatrix),this._v3_1.setFromMatrixPosition(this._gizmoMatrixState).sub(e),this._v3_2.copy(this._v3_1).applyAxisAngle(this._rotationAxis,t),this._v3_2.sub(this._v3_1),this._m4_2.makeTranslation(this._v3_2.x,this._v3_2.y,this._v3_2.z),this.setTransformationMatrices(this._m4_1,this._m4_2),Ei}getRaycaster(){return BS}unprojectOnObj(e,t){let n=this.getRaycaster();n.near=t.near,n.far=t.far,n.setFromCamera(e,t);let i=n.intersectObjects(this.scene.children,!0);for(let s=0;s=0&&(this._v2_1.setX((-x-Math.sqrt(D))/(2*d)),this._v2_1.setY(l*this._v2_1.x+h),an.RAD2DEG*this._v2_1.angle()>=45)){let g=Math.sqrt(Math.pow(this._v2_1.x,2)+Math.pow(a-this._v2_1.y,2));return o.multiplyScalar(g),o.z+=a,o}d=l,x=h,m=-u*.5,D=Math.pow(x,2)-4*d*m,this._v2_1.setX((-x-Math.sqrt(D))/(2*d)),this._v2_1.setY(l*this._v2_1.x+h);let p=Math.sqrt(Math.pow(this._v2_1.x,2)+Math.pow(a-this._v2_1.y,2));return o.multiplyScalar(p),o.z+=a,o}}unprojectOnTbPlane(e,t,n,i,s=!1){if(e.type=="OrthographicCamera")return this._v2_1.copy(this.getCursorPosition(t,n,i)),this._v3_1.set(this._v2_1.x,this._v2_1.y,0),this._v3_1.clone();if(e.type=="PerspectiveCamera"){this._v2_1.copy(this.getCursorNDC(t,n,i)),this._v3_1.set(this._v2_1.x,this._v2_1.y,-1),this._v3_1.applyMatrix4(e.projectionMatrixInverse);let o=this._v3_1.clone().normalize(),a=this._v3_1.z,u=Math.sqrt(Math.pow(this._v3_1.x,2)+Math.pow(this._v3_1.y,2)),c;if(s?c=this._v3_1.setFromMatrixPosition(this._cameraMatrixState0).distanceTo(this._v3_2.setFromMatrixPosition(this._gizmoMatrixState0)):c=e.position.distanceTo(this._gizmos.position),u==0)return o.set(0,0,0),o;let f=a/u,l=c,h=-l/f,d=Math.sqrt(Math.pow(l,2)+Math.pow(h,2));return o.multiplyScalar(d),o.z=0,o}}updateMatrixState(){this._cameraMatrixState.copy(this.camera.matrix),this._gizmoMatrixState.copy(this._gizmos.matrix),this.camera.isOrthographicCamera?(this._cameraProjectionState.copy(this.camera.projectionMatrix),this.camera.updateProjectionMatrix(),this._zoomState=this.camera.zoom):this.camera.isPerspectiveCamera&&(this._fovState=this.camera.fov)}updateTbState(e,t){this._state=e,t&&this.updateMatrixState()}update(){if(this.target.equals(this._currentTarget)===!1&&(this._gizmos.position.copy(this.target),this._tbRadius=this.calculateTbRadius(this.camera),this.makeGizmos(this.target,this._tbRadius),this._currentTarget.copy(this.target)),this.camera.isOrthographicCamera){if(this.camera.zoom>this.maxZoom||this.camera.zoomthis.maxDistance+1e-6||tthis.maxFov)&&(this.camera.fov=an.clamp(this.camera.fov,this.minFov,this.maxFov),this.camera.updateProjectionMatrix());let n=this._tbRadius;if(this._tbRadius=this.calculateTbRadius(this.camera),nthis._tbRadius+1e-6){let i=(this._gizmos.scale.x+this._gizmos.scale.y+this._gizmos.scale.z)/3,s=this._tbRadius/i,a=new co(0,0,s,s).getPoints(this._curvePts),u=new Mn().setFromPoints(a);for(let c in this._gizmos.children)this._gizmos.children[c].geometry=u}}this.camera.lookAt(this._gizmos.position)}setStateFromJSON(e){let t=JSON.parse(e);if(t.arcballState!=null){this._cameraMatrixState.fromArray(t.arcballState.cameraMatrix.elements),this._cameraMatrixState.decompose(this.camera.position,this.camera.quaternion,this.camera.scale),this.camera.up.copy(t.arcballState.cameraUp),this.camera.near=t.arcballState.cameraNear,this.camera.far=t.arcballState.cameraFar,this.camera.zoom=t.arcballState.cameraZoom,this.camera.isPerspectiveCamera&&(this.camera.fov=t.arcballState.cameraFov),this._gizmoMatrixState.fromArray(t.arcballState.gizmoMatrix.elements),this._gizmoMatrixState.decompose(this._gizmos.position,this._gizmos.quaternion,this._gizmos.scale),this.camera.updateMatrix(),this.camera.updateProjectionMatrix(),this._gizmos.updateMatrix(),this._tbRadius=this.calculateTbRadius(this.camera);let n=new ut().copy(this._gizmoMatrixState0);this.makeGizmos(this._gizmos.position,this._tbRadius),this._gizmoMatrixState0.copy(n),this.camera.lookAt(this._gizmos.position),this.updateTbState(et.IDLE,!1),this.dispatchEvent(Kt)}}};function AS(){let r=(this._gizmos.scale.x+this._gizmos.scale.y+this._gizmos.scale.z)/3;this._tbRadius=this.calculateTbRadius(this.camera);let e=this._tbRadius/r,n=new co(0,0,e,e).getPoints(this._curvePts),i=new Mn().setFromPoints(n);for(let s in this._gizmos.children)this._gizmos.children[s].geometry=i;this.dispatchEvent(Kt)}function wS(r){if(this.enabled){for(let e=0;e=this._switchSensibility){this._input=jt.ONE_FINGER,this.updateTouchEvent(r),this.onSinglePanStart(r,"ROTATE");break}break;case jt.TWO_FINGER:this.updateTouchEvent(r),this.onRotateMove(),this.onPinchMove(),this.onDoublePanMove();break;case jt.MULT_FINGER:this.updateTouchEvent(r),this.onTriplePanMove(r);break}else if(r.pointerType!="touch"&&this._input==jt.CURSOR){let e=null;r.ctrlKey||r.metaKey?e="CTRL":r.shiftKey&&(e="SHIFT");let t=this.getOpStateFromAction(this._button,e);t!=null&&this.onSinglePanMove(r,t)}this._downValid&&this.calculatePointersDistance(this._downEvents[this._downEvents.length-1],r)*this._devPxRatio>this._movementThreshold&&(this._downValid=!1)}function kS(r){if(r.pointerType=="touch"&&this._input!=jt.CURSOR){let e=this._touchCurrent.length;for(let t=0;t0?s=1/this.scaleFactor:i<0&&(s=this.scaleFactor),t){case"ZOOM":if(this.updateTbState(et.SCALE,!0),i>0?s=1/Math.pow(this.scaleFactor,i):i<0&&(s=Math.pow(this.scaleFactor,-i)),this.cursorZoom&&this.enablePan){let o;this.camera.isOrthographicCamera?o=this.unprojectOnTbPlane(this.camera,r.clientX,r.clientY,this.domElement).applyQuaternion(this.camera.quaternion).multiplyScalar(1/this.camera.zoom).add(this._gizmos.position):this.camera.isPerspectiveCamera&&(o=this.unprojectOnTbPlane(this.camera,r.clientX,r.clientY,this.domElement).applyQuaternion(this.camera.quaternion).add(this._gizmos.position)),this.applyTransformMatrix(this.scale(s,o))}else this.applyTransformMatrix(this.scale(s,this._gizmos.position));this._grid!=null&&(this.disposeGrid(),this.drawGrid()),this.updateTbState(et.IDLE,!1),this.dispatchEvent(Kt),this.dispatchEvent(Ni);break;case"FOV":if(this.camera.isPerspectiveCamera){this.updateTbState(et.FOV,!0),r.deltaX!=0&&(i=r.deltaX/n,s=1,i>0?s=1/Math.pow(this.scaleFactor,i):i<0&&(s=Math.pow(this.scaleFactor,-i))),this._v3_1.setFromMatrixPosition(this._cameraMatrixState);let o=this._v3_1.distanceTo(this._gizmos.position),a=o/s;a=an.clamp(a,this.minDistance,this.maxDistance);let u=o*Math.tan(an.DEG2RAD*this.camera.fov*.5),c=an.RAD2DEG*(Math.atan(u/a)*2);c>this.maxFov?c=this.maxFov:c=0?c.substring(0,f):c;l=l.toLowerCase();let h=f>=0?c.substring(f+1):"";if(h=h.trim(),l==="newmtl")i={name:h},o[h]=i;else if(l==="ka"||l==="kd"||l==="ks"||l==="ke"){let d=h.split(s,3);i[l]=[parseFloat(d[0]),parseFloat(d[1]),parseFloat(d[2])]}else i[l]=h}let a=new YD(this.resourcePath||t,this.materialOptions);return a.setCrossOrigin(this.crossOrigin),a.setManager(this.manager),a.setMaterials(o),a}},YD=class{constructor(e="",t={}){this.baseUrl=e,this.options=t,this.materialsInfo={},this.materials={},this.materialsArray=[],this.nameLookup={},this.crossOrigin="anonymous",this.side=this.options.side!==void 0?this.options.side:Cr,this.wrap=this.options.wrap!==void 0?this.options.wrap:S0}setCrossOrigin(e){return this.crossOrigin=e,this}setManager(e){this.manager=e}setMaterials(e){this.materialsInfo=this.convert(e),this.materials={},this.materialsArray=[],this.nameLookup={}}convert(e){if(!this.options)return e;let t={};for(let n in e){let i=e[n],s={};t[n]=s;for(let o in i){let a=!0,u=i[o],c=o.toLowerCase();switch(c){case"kd":case"ka":case"ks":this.options&&this.options.normalizeRGB&&(u=[u[0]/255,u[1]/255,u[2]/255]),this.options&&this.options.ignoreZeroRGBs&&u[0]===0&&u[1]===0&&u[2]===0&&(a=!1);break;default:break}a&&(s[c]=u)}}return t}preload(){for(let e in this.materialsInfo)this.create(e)}getIndex(e){return this.nameLookup[e]}getAsArray(){let e=0;for(let t in this.materialsInfo)this.materialsArray[e]=this.create(t),this.nameLookup[t]=e,e++;return this.materialsArray}create(e){return this.materials[e]===void 0&&this.createMaterial_(e),this.materials[e]}createMaterial_(e){let t=this,n=this.materialsInfo[e],i={name:e,side:this.side};function s(a,u){return typeof u!="string"||u===""?"":/^https?:\/\//i.test(u)?u:a+u}function o(a,u){if(i[a])return;let c=t.getTextureParams(u,i),f=t.loadTexture(s(t.baseUrl,c.url));f.repeat.copy(c.scale),f.offset.copy(c.offset),f.wrapS=t.wrap,f.wrapT=t.wrap,(a==="map"||a==="emissiveMap")&&(f.colorSpace=ki),i[a]=f}for(let a in n){let u=n[a],c;if(u!=="")switch(a.toLowerCase()){case"kd":i.color=new st().fromArray(u).convertSRGBToLinear();break;case"ks":i.specular=new st().fromArray(u).convertSRGBToLinear();break;case"ke":i.emissive=new st().fromArray(u).convertSRGBToLinear();break;case"map_kd":o("map",u);break;case"map_ks":o("specularMap",u);break;case"map_ke":o("emissiveMap",u);break;case"norm":o("normalMap",u);break;case"map_bump":case"bump":o("bumpMap",u);break;case"map_d":o("alphaMap",u),i.transparent=!0;break;case"ns":i.shininess=parseFloat(u);break;case"d":c=parseFloat(u),c<1&&(i.opacity=c,i.transparent=!0);break;case"tr":c=parseFloat(u),this.options&&this.options.invertTrProperty&&(c=1-c),c>0&&(i.opacity=1-c,i.transparent=!0);break;default:break}}return this.materials[e]=new Ia(i),this.materials[e]}getTextureParams(e,t){let n={scale:new ot(1,1),offset:new ot(0,0)},i=e.split(/\s+/),s;return s=i.indexOf("-bm"),s>=0&&(t.bumpScale=parseFloat(i[s+1]),i.splice(s,2)),s=i.indexOf("-s"),s>=0&&(n.scale.set(parseFloat(i[s+1]),parseFloat(i[s+2])),i.splice(s,4)),s=i.indexOf("-o"),s>=0&&(n.offset.set(parseFloat(i[s+1]),parseFloat(i[s+2])),i.splice(s,4)),n.url=i.join(" ").trim(),n}loadTexture(e,t,n,i,s){let o=this.manager!==void 0?this.manager:WD,a=o.getHandler(e);a===null&&(a=new Dl(o)),a.setCrossOrigin&&a.setCrossOrigin(this.crossOrigin);let u=a.load(e,n,i,s);return t!==void 0&&(u.mapping=t),u}};var IS=/^[og]\s*(.+)?/,RS=/^mtllib /,OS=/^usemtl /,LS=/^usemap /,_g=/\s+/,vg=new z,$D=new z,yg=new z,bg=new z,Ui=new z,Al=new st;function NS(){let r={objects:[],object:{},vertices:[],normals:[],colors:[],uvs:[],materials:{},materialLibraries:[],startObject:function(e,t){if(this.object&&this.object.fromDeclaration===!1){this.object.name=e,this.object.fromDeclaration=t!==!1;return}let n=this.object&&typeof this.object.currentMaterial=="function"?this.object.currentMaterial():void 0;if(this.object&&typeof this.object._finalize=="function"&&this.object._finalize(!0),this.object={name:e||"",fromDeclaration:t!==!1,geometry:{vertices:[],normals:[],colors:[],uvs:[],hasUVIndices:!1},materials:[],smooth:!0,startMaterial:function(i,s){let o=this._finalize(!1);o&&(o.inherited||o.groupCount<=0)&&this.materials.splice(o.index,1);let a={index:this.materials.length,name:i||"",mtllib:Array.isArray(s)&&s.length>0?s[s.length-1]:"",smooth:o!==void 0?o.smooth:this.smooth,groupStart:o!==void 0?o.groupEnd:0,groupEnd:-1,groupCount:-1,inherited:!1,clone:function(u){let c={index:typeof u=="number"?u:this.index,name:this.name,mtllib:this.mtllib,smooth:this.smooth,groupStart:0,groupEnd:-1,groupCount:-1,inherited:!1};return c.clone=this.clone.bind(c),c}};return this.materials.push(a),a},currentMaterial:function(){if(this.materials.length>0)return this.materials[this.materials.length-1]},_finalize:function(i){let s=this.currentMaterial();if(s&&s.groupEnd===-1&&(s.groupEnd=this.geometry.vertices.length/3,s.groupCount=s.groupEnd-s.groupStart,s.inherited=!1),i&&this.materials.length>1)for(let o=this.materials.length-1;o>=0;o--)this.materials[o].groupCount<=0&&this.materials.splice(o,1);return i&&this.materials.length===0&&this.materials.push({name:"",smooth:this.smooth}),s}},n&&n.name&&typeof n.clone=="function"){let i=n.clone(0);i.inherited=!0,this.object.materials.push(i)}this.objects.push(this.object)},finalize:function(){this.object&&typeof this.object._finalize=="function"&&this.object._finalize(!0)},parseVertexIndex:function(e,t){let n=parseInt(e,10);return(n>=0?n-1:n+t/3)*3},parseNormalIndex:function(e,t){let n=parseInt(e,10);return(n>=0?n-1:n+t/3)*3},parseUVIndex:function(e,t){let n=parseInt(e,10);return(n>=0?n-1:n+t/2)*2},addVertex:function(e,t,n){let i=this.vertices,s=this.object.geometry.vertices;s.push(i[e+0],i[e+1],i[e+2]),s.push(i[t+0],i[t+1],i[t+2]),s.push(i[n+0],i[n+1],i[n+2])},addVertexPoint:function(e){let t=this.vertices;this.object.geometry.vertices.push(t[e+0],t[e+1],t[e+2])},addVertexLine:function(e){let t=this.vertices;this.object.geometry.vertices.push(t[e+0],t[e+1],t[e+2])},addNormal:function(e,t,n){let i=this.normals,s=this.object.geometry.normals;s.push(i[e+0],i[e+1],i[e+2]),s.push(i[t+0],i[t+1],i[t+2]),s.push(i[n+0],i[n+1],i[n+2])},addFaceNormal:function(e,t,n){let i=this.vertices,s=this.object.geometry.normals;vg.fromArray(i,e),$D.fromArray(i,t),yg.fromArray(i,n),Ui.subVectors(yg,$D),bg.subVectors(vg,$D),Ui.cross(bg),Ui.normalize(),s.push(Ui.x,Ui.y,Ui.z),s.push(Ui.x,Ui.y,Ui.z),s.push(Ui.x,Ui.y,Ui.z)},addColor:function(e,t,n){let i=this.colors,s=this.object.geometry.colors;i[e]!==void 0&&s.push(i[e+0],i[e+1],i[e+2]),i[t]!==void 0&&s.push(i[t+0],i[t+1],i[t+2]),i[n]!==void 0&&s.push(i[n+0],i[n+1],i[n+2])},addUV:function(e,t,n){let i=this.uvs,s=this.object.geometry.uvs;s.push(i[e+0],i[e+1]),s.push(i[t+0],i[t+1]),s.push(i[n+0],i[n+1])},addDefaultUV:function(){let e=this.object.geometry.uvs;e.push(0,0),e.push(0,0),e.push(0,0)},addUVLine:function(e){let t=this.uvs;this.object.geometry.uvs.push(t[e+0],t[e+1])},addFace:function(e,t,n,i,s,o,a,u,c){let f=this.vertices.length,l=this.parseVertexIndex(e,f),h=this.parseVertexIndex(t,f),d=this.parseVertexIndex(n,f);if(this.addVertex(l,h,d),this.addColor(l,h,d),a!==void 0&&a!==""){let x=this.normals.length;l=this.parseNormalIndex(a,x),h=this.parseNormalIndex(u,x),d=this.parseNormalIndex(c,x),this.addNormal(l,h,d)}else this.addFaceNormal(l,h,d);if(i!==void 0&&i!==""){let x=this.uvs.length;l=this.parseUVIndex(i,x),h=this.parseUVIndex(s,x),d=this.parseUVIndex(o,x),this.addUV(l,h,d),this.object.geometry.hasUVIndices=!0}else this.addDefaultUV()},addPointGeometry:function(e){this.object.geometry.type="Points";let t=this.vertices.length;for(let n=0,i=e.length;n=7?(Al.setRGB(parseFloat(l[4]),parseFloat(l[5]),parseFloat(l[6])).convertSRGBToLinear(),t.colors.push(Al.r,Al.g,Al.b)):t.colors.push(void 0,void 0,void 0);break;case"vn":t.normals.push(parseFloat(l[1]),parseFloat(l[2]),parseFloat(l[3]));break;case"vt":t.uvs.push(parseFloat(l[1]),parseFloat(l[2]));break}}else if(f==="f"){let h=c.slice(1).trim().split(_g),d=[];for(let m=0,D=h.length;m0){let C=p.split("/");d.push(C)}}let x=d[0];for(let m=1,D=d.length-1;m1){let h=i[1].trim().toLowerCase();t.object.smooth=h!=="0"&&h!=="off"}else t.object.smooth=!0;let l=t.object.currentMaterial();l&&(l.smooth=t.object.smooth)}else{if(c==="\0")continue;console.warn('THREE.OBJLoader: Unexpected line: "'+c+'"')}}t.finalize();let s=new mr;if(s.materialLibraries=[].concat(t.materialLibraries),!(t.objects.length===1&&t.objects[0].geometry.vertices.length===0)===!0)for(let a=0,u=t.objects.length;a0&&m.setAttribute("normal",new _n(f.normals,3)),f.colors.length>0&&(x=!0,m.setAttribute("color",new _n(f.colors,3))),f.hasUVIndices===!0&&m.setAttribute("uv",new _n(f.uvs,2));let D=[];for(let C=0,g=l.length;C1){for(let C=0,g=l.length;C0){let a=new vs({size:1,sizeAttenuation:!1}),u=new Mn;u.setAttribute("position",new _n(t.vertices,3)),t.colors.length>0&&t.colors[0]!==void 0&&(u.setAttribute("color",new _n(t.colors,3)),a.vertexColors=!0);let c=new Pa(u,a);s.add(c)}return s}};function Bg(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function j(r){for(var e=1;e=0||(f[u]=o[u]);return f}(r,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(r,t)&&(i[t]=r[t])}return i}function Ar(r,e){return e||(e=r.slice(0)),Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(e)}}))}function i5(r){var e=function(t,n){if(typeof t!="object"||t===null)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var s=i.call(t,n||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(t)}(r,"string");return typeof e=="symbol"?e:String(e)}var Ol=class{constructor(){W(this,"browserShadowBlurConstant",1),W(this,"DPI",96),W(this,"devicePixelRatio",typeof window<"u"?window.devicePixelRatio:1),W(this,"perfLimitSizeTotal",2097152),W(this,"maxCacheSideLimit",4096),W(this,"minCacheSideLimit",256),W(this,"disableStyleCopyPaste",!1),W(this,"enableGLFiltering",!0),W(this,"textureSize",4096),W(this,"forceGLPutImageData",!1),W(this,"cachesBoundsOfCurve",!0),W(this,"fontPaths",{}),W(this,"NUM_FRACTION_DIGITS",4)}},Tt=new class extends Ol{constructor(r){super(),this.configure(r)}configure(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Object.assign(this,r)}addFonts(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.fontPaths=j(j({},this.fontPaths),r)}removeFonts(){(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).forEach(r=>{delete this.fontPaths[r]})}clearFonts(){this.fontPaths={}}restoreDefaults(r){let e=new Ol,t=r?.reduce((n,i)=>(n[i]=e[i],n),{})||e;this.configure(t)}},Rs=function(r){for(var e=arguments.length,t=new Array(e>1?e-1:0),n=1;nthis.testPrecision(t,n)),t.getExtension("WEBGL_lose_context").loseContext(),Rs("log","WebGL: max texture size ".concat(this.maxTextureSize)))}isSupported(e){return!!this.maxTextureSize&&this.maxTextureSize>=e}},US={},Ag;var br=()=>Ag||(Ag={document,window,isTouchSupported:"ontouchstart"in window||"ontouchstart"in document||window&&window.navigator&&window.navigator.maxTouchPoints>0,WebGLProbe:new cp,dispose(){},copyPasteData:US}),pu=()=>br().document,a1=()=>br().window,r5=()=>{var r;return Math.max((r=Tt.devicePixelRatio)!==null&&r!==void 0?r:a1().devicePixelRatio,1)},z0=new class{constructor(){W(this,"charWidthsCache",{}),W(this,"boundsOfCurveCache",{})}getFontCache(r){let{fontFamily:e,fontStyle:t,fontWeight:n}=r;e=e.toLowerCase(),this.charWidthsCache[e]||(this.charWidthsCache[e]={});let i=this.charWidthsCache[e],s="".concat(t.toLowerCase(),"_").concat((n+"").toLowerCase());return i[s]||(i[s]={}),i[s]}clearFontCache(r){(r=(r||"").toLowerCase())?this.charWidthsCache[r]&&delete this.charWidthsCache[r]:this.charWidthsCache={}}limitDimsByArea(r){let{perfLimitSizeTotal:e}=Tt,t=Math.sqrt(e*r);return[Math.floor(t),Math.floor(e/t)]}},fp="6.0.0-rc1";function Co(){}var Os=Math.PI/2,Kr=2*Math.PI,Vp=Math.PI/180,ni=Object.freeze([1,0,0,1,0,0]),zp=16,Bs=.4477152502,vt="center",It="left",qn="top",lp="bottom",Dn="right",ci="none",Hp=/\r?\n/,N0="json",ZD="svg",Ge=new class{constructor(){this[N0]=new Map,this[ZD]=new Map}getClass(r){let e=this[N0].get(r);if(!e)throw new Gi("No class registered for ".concat(r));return e}setClass(r,e){e?this[N0].set(e,r):(this[N0].set(r.type,r),this[N0].set(r.type.toLowerCase(),r))}getSVGClass(r){return this[ZD].get(r)}setSVGClass(r,e){this[ZD].set(e??r.type.toLowerCase(),r)}},Nl=new class extends Array{remove(r){let e=this.indexOf(r);e>-1&&this.splice(e,1)}cancelAll(){let r=this.splice(0);return r.forEach(e=>e.abort()),r}cancelByCanvas(r){if(!r)return[];let e=this.filter(t=>{var n;return t.target===r||typeof t.target=="object"&&((n=t.target)===null||n===void 0?void 0:n.canvas)===r});return e.forEach(t=>t.abort()),e}cancelByTarget(r){if(!r)return[];let e=this.filter(t=>t.target===r);return e.forEach(t=>t.abort()),e}},hp=class{constructor(){W(this,"__eventListeners",{})}on(e,t){if(this.__eventListeners||(this.__eventListeners={}),typeof e=="object")return Object.entries(e).forEach(n=>{let[i,s]=n;this.on(i,s)}),()=>this.off(e);if(t){let n=e;return this.__eventListeners[n]||(this.__eventListeners[n]=[]),this.__eventListeners[n].push(t),()=>this.off(n,t)}return()=>!1}once(e,t){if(typeof e=="object"){let n=[];return Object.entries(e).forEach(i=>{let[s,o]=i;n.push(this.once(s,o))}),()=>n.forEach(i=>i())}if(t){let n=this.on(e,function(){for(var i=arguments.length,s=new Array(i),o=0;o!1}_removeEventListener(e,t){if(this.__eventListeners[e])if(t){let n=this.__eventListeners[e],i=n.indexOf(t);i>-1&&n.splice(i,1)}else this.__eventListeners[e]=[]}off(e,t){if(this.__eventListeners)if(e===void 0)for(let n in this.__eventListeners)this._removeEventListener(n);else typeof e=="object"?Object.entries(e).forEach(n=>{let[i,s]=n;this._removeEventListener(i,s)}):this._removeEventListener(e,t)}fire(e,t){var n;if(!this.__eventListeners)return;let i=(n=this.__eventListeners[e])===null||n===void 0?void 0:n.concat();if(i)for(let s=0;sMath.floor(Math.random()*(e-r+1))+r,Va=(r,e)=>isNaN(r)&&typeof e=="number"?e:r,po=(r,e)=>{let t=r.indexOf(e);return t!==-1&&r.splice(t,1),r},rr=r=>{if(r===0)return 1;switch(Math.abs(r)/Os){case 1:case 3:return 0;case 2:return-1}return Math.cos(r)},sr=r=>{if(r===0)return 0;let e=r/Os,t=Math.sign(r);switch(e){case 1:return t;case 2:return 0;case 3:return-t}return Math.sin(r)},oe=class r{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;typeof e=="object"?(this.x=e.x,this.y=e.y):(this.x=e,this.y=t)}add(e){return new r(this.x+e.x,this.y+e.y)}addEquals(e){return this.x+=e.x,this.y+=e.y,this}scalarAdd(e){return new r(this.x+e,this.y+e)}scalarAddEquals(e){return this.x+=e,this.y+=e,this}subtract(e){return new r(this.x-e.x,this.y-e.y)}subtractEquals(e){return this.x-=e.x,this.y-=e.y,this}scalarSubtract(e){return new r(this.x-e,this.y-e)}scalarSubtractEquals(e){return this.x-=e,this.y-=e,this}multiply(e){return new r(this.x*e.x,this.y*e.y)}scalarMultiply(e){return new r(this.x*e,this.y*e)}scalarMultiplyEquals(e){return this.x*=e,this.y*=e,this}divide(e){return new r(this.x/e.x,this.y/e.y)}scalarDivide(e){return new r(this.x/e,this.y/e)}scalarDivideEquals(e){return this.x/=e,this.y/=e,this}eq(e){return this.x===e.x&&this.y===e.y}lt(e){return this.xe.x&&this.y>e.y}gte(e){return this.x>=e.x&&this.y>=e.y}lerp(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.5;return t=Math.max(Math.min(1,t),0),new r(this.x+(e.x-this.x)*t,this.y+(e.y-this.y)*t)}distanceFrom(e){let t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)}midPointFrom(e){return this.lerp(e)}min(e){return new r(Math.min(this.x,e.x),Math.min(this.y,e.y))}max(e){return new r(Math.max(this.x,e.x),Math.max(this.y,e.y))}toString(){return"".concat(this.x,",").concat(this.y)}setXY(e,t){return this.x=e,this.y=t,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setFromPoint(e){return this.x=e.x,this.y=e.y,this}swap(e){let t=this.x,n=this.y;this.x=e.x,this.y=e.y,e.x=t,e.y=n}clone(){return new r(this.x,this.y)}rotate(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gp,n=sr(e),i=rr(e),s=this.subtract(t);return new r(s.x*i-s.y*n,s.x*n+s.y*i).add(t)}transform(e){let t=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return new r(e[0]*this.x+e[2]*this.y+(t?0:e[4]),e[1]*this.x+e[3]*this.y+(t?0:e[5]))}},Gp=new oe(0,0),Rl=r=>!!r&&Array.isArray(r._objects);function s5(r){class e extends r{constructor(){super(...arguments),W(this,"_objects",[])}_onObjectAdded(n){}_onObjectRemoved(n){}_onStackOrderChanged(n){}add(){for(var n=arguments.length,i=new Array(n),s=0;sthis._onObjectAdded(a)),o}insertAt(n){for(var i=arguments.length,s=new Array(i>1?i-1:0),o=1;othis._onObjectAdded(a)),this._objects.length}remove(){let n=this._objects,i=[];for(var s=arguments.length,o=new Array(s),a=0;a{let c=n.indexOf(u);c!==-1&&(n.splice(c,1),i.push(u),this._onObjectRemoved(u))}),i}forEachObject(n){this.getObjects().forEach((i,s,o)=>n(i,s,o))}getObjects(){for(var n=arguments.length,i=new Array(n),s=0;so.isType(...i))}item(n){return this._objects[n]}isEmpty(){return this._objects.length===0}size(){return this._objects.length}contains(n,i){return!!this._objects.includes(n)||!!i&&this._objects.some(s=>s instanceof e&&s.contains(n,!0))}complexity(){return this._objects.reduce((n,i)=>n+=i.complexity?i.complexity():0,0)}sendObjectToBack(n){return!(!n||n===this._objects[0])&&(po(this._objects,n),this._objects.unshift(n),this._onStackOrderChanged(n),!0)}bringObjectToFront(n){return!(!n||n===this._objects[this._objects.length-1])&&(po(this._objects,n),this._objects.push(n),this._onStackOrderChanged(n),!0)}sendObjectBackwards(n,i){if(!n)return!1;let s=this._objects.indexOf(n);if(s!==0){let o=this.findNewLowerIndex(n,s,i);return po(this._objects,n),this._objects.splice(o,0,n),this._onStackOrderChanged(n),!0}return!1}bringObjectForward(n,i){if(!n)return!1;let s=this._objects.indexOf(n);if(s!==this._objects.length-1){let o=this.findNewUpperIndex(n,s,i);return po(this._objects,n),this._objects.splice(o,0,n),this._onStackOrderChanged(n),!0}return!1}moveObjectTo(n,i){return n!==this._objects[i]&&(po(this._objects,n),this._objects.splice(i,0,n),this._onStackOrderChanged(n),!0)}findNewLowerIndex(n,i,s){let o;if(s){o=i;for(let a=i-1;a>=0;--a)if(n.isOverlapping(this._objects[a])){o=a;break}}else o=i-1;return o}findNewUpperIndex(n,i,s){let o;if(s){o=i;for(let a=i+1;a1&&arguments[1]!==void 0?arguments[1]:{},c=[],f=new oe(i,s),l=f.add(new oe(o,a));for(let h=this._objects.length-1;h>=0;h--){let d=this._objects[h];d.selectable&&d.visible&&(u&&d.intersectsWithRect(f,l)||d.isContainedWithinRect(f,l)||u&&d.containsPoint(f)||u&&d.containsPoint(l))&&c.push(d)}return c}}return e}var Ul=class extends hp{_setOptions(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};for(let t in e)this.set(t,e[t])}_setObject(e){for(let t in e)this._set(t,e[t])}set(e,t){return typeof e=="object"?this._setObject(e):this._set(e,t),this}_set(e,t){this[e]=t}toggle(e){let t=this.get(e);return typeof t=="boolean"&&this.set(e,!t),this}get(e){return this[e]}};function H0(r){return a1().requestAnimationFrame(r)}function o5(r){return a1().cancelAnimationFrame(r)}var zS=0,Ls=()=>zS++,pn=()=>{let r=pu().createElement("canvas");if(!r||r.getContext===void 0)throw new Gi("Failed to create `canvas` element");return r},a5=()=>pu().createElement("img"),jp=(r,e,t)=>r.toDataURL("image/".concat(e),t),fn=r=>r*Vp,_o=r=>r/Vp,HS=["translateX","translateY","angle"],Xn=(r,e,t)=>new oe(r).transform(e,t),_i=r=>{let e=1/(r[0]*r[3]-r[1]*r[2]),t=[e*r[3],-e*r[1],-e*r[2],e*r[0],0,0],{x:n,y:i}=new oe(r[4],r[5]).transform(t,!0);return t[4]=-n,t[5]=-i,t},Rn=(r,e,t)=>[r[0]*e[0]+r[2]*e[1],r[1]*e[0]+r[3]*e[1],r[0]*e[2]+r[2]*e[3],r[1]*e[2]+r[3]*e[3],t?0:r[0]*e[4]+r[2]*e[5]+r[4],t?0:r[1]*e[4]+r[3]*e[5]+r[5]],xu=(r,e)=>r.reduceRight((t,n)=>n?Rn(n,t,e):t,ni),u5=r=>{let[e,t]=r;return Math.atan2(t,e)},lu=r=>{let e=u5(r),t=Math.pow(r[0],2)+Math.pow(r[1],2),n=Math.sqrt(t),i=(r[0]*r[3]-r[2]*r[1])/n,s=Math.atan2(r[0]*r[2]+r[1]*r[3],t);return{angle:_o(e),scaleX:n,scaleY:i,skewX:_o(s),skewY:0,translateX:r[4]||0,translateY:r[5]||0}},mu=function(r){return[1,0,0,1,r,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0]};function Cu(){let{angle:r=0}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{x:e=0,y:t=0}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=fn(r),i=rr(n),s=sr(n);return[i,s,-s,i,e?e-(i*e-s*t):0,t?t-(s*e+i*t):0]}var u1=function(r){return[r,0,0,arguments.length>1&&arguments[1]!==void 0?arguments[1]:r,0,0]},c5=r=>Math.tan(fn(r)),Wp=r=>[1,0,c5(r),1,0,0],Xp=r=>[1,c5(r),0,1,0,0],ec=r=>{let{scaleX:e=1,scaleY:t=1,flipX:n=!1,flipY:i=!1,skewX:s=0,skewY:o=0}=r;return xu([u1(n?-e:e,i?-t:t),s&&Wp(s),o&&Xp(o)],!0)},f5=r=>{let{translateX:e=0,translateY:t=0,angle:n=0}=r,i=Wt(r,HS);return xu([mu(e,t),n&&Cu({angle:n}),ec(i)])},G0=function(r){let{signal:e,crossOrigin:t=null}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new Promise(function(n,i){if(e&&e.aborted)return i(new Ll("loadImage"));let s=a5(),o;e&&(o=function(u){s.src="",i(u)},e.addEventListener("abort",o,{once:!0}));let a=function(){s.onload=s.onerror=null,o&&e?.removeEventListener("abort",o),n(s)};r?(s.onload=a,s.onerror=function(){o&&e?.removeEventListener("abort",o),i(new Gi("Error loading ".concat(s.src)))},t&&(s.crossOrigin=t),s.src=r):a()})},hu=function(r){let{signal:e,reviver:t=Co}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new Promise((n,i)=>{let s=[];e&&e.addEventListener("abort",i,{once:!0}),Promise.all(r.map(o=>Ge.getClass(o.type).fromObject(o,{signal:e}).then(a=>(t(o,a),s.push(a),a)))).then(n).catch(o=>{s.forEach(a=>{a.dispose&&a.dispose()}),i(o)}).finally(()=>{e&&e.removeEventListener("abort",i)})})},tc=function(r){let{signal:e}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new Promise((t,n)=>{let i=[];e&&e.addEventListener("abort",n,{once:!0});let s=Object.values(r).map(a=>a&&(a.type?hu([a],{signal:e}).then(u=>{let[c]=u;return i.push(c),c}):a.source?Ge.getClass("pattern").fromObject(a,{signal:e}).then(u=>(i.push(u),u)):a)),o=Object.keys(r);Promise.all(s).then(a=>a.reduce((u,c,f)=>(u[o[f]]=c,u),{})).then(t).catch(a=>{i.forEach(u=>{u.dispose&&u.dispose()}),n(a)}).finally(()=>{e&&e.removeEventListener("abort",n)})})},bo=function(r){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:[]).reduce((e,t)=>(t in r&&(e[t]=r[t]),e),{})},qp=(r,e)=>Object.keys(r).reduce((t,n)=>(e(r[n],n,r)&&(t[n]=r[n]),t),{}),wg={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#0FF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000",blanchedalmond:"#FFEBCD",blue:"#00F",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#0FF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#F0F",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#789",lightslategrey:"#789",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#0F0",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#F0F",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#639",red:"#F00",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFF",whitesmoke:"#F5F5F5",yellow:"#FF0",yellowgreen:"#9ACD32"},KD=(r,e,t)=>(t<0&&(t+=1),t>1&&(t-=1),t<1/6?r+6*(e-r)*t:t<.5?e:t<2/3?r+(e-r)*(2/3-t)*6:r),Sg=(r,e,t,n)=>{r/=255,e/=255,t/=255;let i=Math.max(r,e,t),s=Math.min(r,e,t),o,a,u=(i+s)/2;if(i===s)o=a=0;else{let c=i-s;switch(a=u>.5?c/(2-i-s):c/(i+s),i){case r:o=(e-t)/c+(e0&&arguments[0]!==void 0?arguments[0]:"1";return parseFloat(r)/(r.endsWith("%")?100:1)},Sl=r=>Math.min(Math.round(r),255).toString(16).toUpperCase().padStart(2,"0"),Tg=r=>{let[e,t,n,i=1]=r,s=Math.round(.3*e+.59*t+.11*n);return[s,s,s,i]},ii=class r{constructor(e){if(e)if(e instanceof r)this.setSource([...e._source]);else if(Array.isArray(e)){let[t,n,i,s=1]=e;this.setSource([t,n,i,s])}else this.setSource(this._tryParsingColor(e));else this.setSource([0,0,0,1])}_tryParsingColor(e){return e in wg&&(e=wg[e]),e==="transparent"?[255,255,255,0]:r.sourceFromHex(e)||r.sourceFromRgb(e)||r.sourceFromHsl(e)||[0,0,0,1]}getSource(){return this._source}setSource(e){this._source=e}toRgb(){let[e,t,n]=this.getSource();return"rgb(".concat(e,",").concat(t,",").concat(n,")")}toRgba(){return"rgba(".concat(this.getSource().join(","),")")}toHsl(){let[e,t,n]=Sg(...this.getSource());return"hsl(".concat(e,",").concat(t,"%,").concat(n,"%)")}toHsla(){let[e,t,n,i]=Sg(...this.getSource());return"hsla(".concat(e,",").concat(t,"%,").concat(n,"%,").concat(i,")")}toHex(){return this.toHexa().slice(0,6)}toHexa(){let[e,t,n,i]=this.getSource();return"".concat(Sl(e)).concat(Sl(t)).concat(Sl(n)).concat(Sl(Math.round(255*i)))}getAlpha(){return this.getSource()[3]}setAlpha(e){return this._source[3]=e,this}toGrayscale(){return this.setSource(Tg(this.getSource())),this}toBlackWhite(e){let[t,,,n]=Tg(this.getSource()),i=t<(e||127)?0:255;return this.setSource([i,i,i,n]),this}overlayWith(e){e instanceof r||(e=new r(e));let t=this.getSource(),n=e.getSource(),[i,s,o]=t.map((a,u)=>Math.round(.5*a+.5*n[u]));return this.setSource([i,s,o,t[3]]),this}static fromRgb(e){return r.fromRgba(e)}static fromRgba(e){return new r(r.sourceFromRgb(e))}static sourceFromRgb(e){let t=e.match(/^rgba?\(\s*(\d{0,3}(?:\.\d+)?%?)\s*[\s|,]\s*(\d{0,3}(?:\.\d+)?%?)\s*[\s|,]\s*(\d{0,3}(?:\.\d+)?%?)\s*(?:\s*[,/]\s*(\d{0,3}(?:\.\d+)?%?)\s*)?\)$/i);if(t){let[n,i,s]=t.slice(1,4).map(o=>{let a=parseFloat(o);return o.endsWith("%")?Math.round(2.55*a):a});return[n,i,s,Mg(t[4])]}}static fromHsl(e){return r.fromHsla(e)}static fromHsla(e){return new r(r.sourceFromHsl(e))}static sourceFromHsl(e){let t=e.match(/^hsla?\(\s*([+-]?\d{1,3})\s*[\s|,]\s*(\d{1,3}%)\s*[\s|,]\s*(\d{1,3}%)\s*(?:\s*[,/]\s*(\d*(?:\.\d+)?%?)\s*)?\)$/i);if(!t)return;let n=(parseFloat(t[1])%360+360)%360/360,i=parseFloat(t[2])/100,s=parseFloat(t[3])/100,o,a,u;if(i===0)o=a=u=s;else{let c=s<=.5?s*(i+1):s+i-s*i,f=2*s-c;o=KD(f,c,n+1/3),a=KD(f,c,n),u=KD(f,c,n-1/3)}return[Math.round(255*o),Math.round(255*a),Math.round(255*u),Mg(t[4])]}static fromHex(e){return new r(r.sourceFromHex(e))}static sourceFromHex(e){if(e.match(/^#?(([0-9a-f]){3,4}|([0-9a-f]{2}){3,4})$/i)){let t=e.slice(e.indexOf("#")+1),n;n=t.length<=4?t.split("").map(u=>u+u):t.match(/.{2}/g);let[i,s,o,a=255]=n.map(u=>parseInt(u,16));return[i,s,o,a/255]}}},St=(r,e)=>parseFloat(Number(r).toFixed(e)),go=function(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:zp,t=/\D{0,2}$/.exec(r),n=parseFloat(r),i=Tt.DPI;switch(t?.[0]){case"mm":return n*i/25.4;case"cm":return n*i/2.54;case"in":return n*i;case"pt":return n*i/72;case"pc":return n*i/72*12;case"em":return n*e;default:return n}},l5=r=>{let[e,t]=r.trim().split(" "),[n,i]=(s=e)&&s!==ci?[s.slice(1,4),s.slice(5,8)]:s===ci?[s,s]:["Mid","Mid"];var s;return{meetOrSlice:t||"meet",alignX:n,alignY:i}},Y0=r=>"matrix("+r.map(e=>St(e,Tt.NUM_FRACTION_DIGITS)).join(" ")+")",$0=function(r,e){let t,n,i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];if(e)if(e.toLive)t="url(#SVGID_".concat(e.id,")");else{let s=new ii(e),o=s.getAlpha();t=s.toRgb(),o!==1&&(n=o.toString())}else t="none";return i?"".concat(r,": ").concat(t,"; ").concat(n?"".concat(r,"-opacity: ").concat(n,"; "):""):"".concat(r,'="').concat(t,'" ').concat(n?"".concat(r,'-opacity="').concat(n,'" '):"")},Hi=r=>!!r&&r.toLive!==void 0,kg=r=>!!r&&typeof r.toObject=="function",Pg=r=>!!r&&r.offsetX!==void 0&&Object.hasOwn(r,"source"),h5=r=>!!r&&typeof r._renderText=="function",za=r=>!!r&&Object.hasOwn(r,"multiSelectionStacking");function d5(r){let e=r&&nr(r),t=0,n=0;if(!r||!e)return{left:t,top:n};let i=e.documentElement,s=e.body||{scrollLeft:0,scrollTop:0};for(;r&&(r.parentNode||r.host)&&((r=r.parentNode||r.host)===e?(t=s.scrollLeft||i.scrollLeft||0,n=s.scrollTop||i.scrollTop||0):(t+=r.scrollLeft||0,n+=r.scrollTop||0),r.nodeType!==1||r.style.position!=="fixed"););return{left:t,top:n}}var nr=r=>r.ownerDocument||null,D5=r=>{var e;return((e=r.ownerDocument)===null||e===void 0?void 0:e.defaultView)||null};function j0(r,e){let t=r.style;t&&(typeof e=="string"?r.style.cssText+=";"+e:Object.entries(e).forEach(n=>{let[i,s]=n;return t.setProperty(i,s)}))}var p5=function(r,e,t){let{width:n,height:i}=t,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;r.width=n,r.height=i,s>1&&(r.setAttribute("width",(n*s).toString()),r.setAttribute("height",(i*s).toString()),e.scale(s,s))},dp=(r,e)=>{let{width:t,height:n}=e;t&&(r.style.width=typeof t=="number"?"".concat(t,"px"):t),n&&(r.style.height=typeof n=="number"?"".concat(n,"px"):n)};function Ig(r){return r.onselectstart!==void 0&&(r.onselectstart=()=>!1),r.style.userSelect=ci,r}var Vl=class{constructor(e){W(this,"_originalCanvasStyle",void 0),W(this,"lower",void 0);let t=this.createLowerCanvas(e);this.lower={el:t,ctx:t.getContext("2d")}}createLowerCanvas(e){let t=(n=e)&&n.getContext!==void 0?e:e&&pu().getElementById(e)||pn();var n;if(t.hasAttribute("data-fabric"))throw new Gi("Trying to initialize a canvas that has already been initialized. Did you forget to dispose the canvas?");return this._originalCanvasStyle=t.style.cssText,t.setAttribute("data-fabric","main"),t.classList.add("lower-canvas"),t}cleanupDOM(e){let{width:t,height:n}=e,{el:i}=this.lower;i.classList.remove("lower-canvas"),i.removeAttribute("data-fabric"),i.setAttribute("width","".concat(t)),i.setAttribute("height","".concat(n)),i.style.cssText=this._originalCanvasStyle||"",this._originalCanvasStyle=void 0}setDimensions(e,t){let{el:n,ctx:i}=this.lower;p5(n,i,e,t)}setCSSDimensions(e){dp(this.lower.el,e)}calcOffset(){return function(e){var t;let n={left:0,top:0},i=e&&nr(e),s={left:0,top:0},o={borderLeftWidth:It,borderTopWidth:qn,paddingLeft:It,paddingTop:qn};if(!i)return s;let a=((t=D5(e))===null||t===void 0?void 0:t.getComputedStyle(e,null))||{};for(let f in o)s[o[f]]+=parseInt(a[f],10)||0;let u=i.documentElement;e.getBoundingClientRect!==void 0&&(n=e.getBoundingClientRect());let c=d5(e);return{left:n.left+c.left-(u.clientLeft||0)+s.left,top:n.top+c.top-(u.clientTop||0)+s.top}}(this.lower.el)}dispose(){br().dispose(this.lower.el),delete this.lower}},GS={backgroundVpt:!0,backgroundColor:"",overlayVpt:!0,overlayColor:"",includeDefaultValues:!0,svgViewportTransformation:!0,renderOnAddRemove:!0,skipOffscreen:!0,enableRetinaScaling:!0,imageSmoothingEnabled:!0,controlsAboveOverlay:!1,allowTouchScrolling:!1,viewportTransform:[...ni]},Z0=class r extends s5(Ul){get lowerCanvasEl(){var e;return(e=this.elements.lower)===null||e===void 0?void 0:e.el}get contextContainer(){var e;return(e=this.elements.lower)===null||e===void 0?void 0:e.ctx}static getDefaults(){return r.ownDefaults}constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Object.assign(this,this.constructor.getDefaults()),this.set(t),this.initElements(e),this._setDimensionsImpl({width:this.width||this.elements.lower.el.width||0,height:this.height||this.elements.lower.el.height||0}),this.viewportTransform=[...this.viewportTransform],this.calcViewportBoundaries()}initElements(e){this.elements=new Vl(e)}add(){let e=super.add(...arguments);return arguments.length>0&&this.renderOnAddRemove&&this.requestRenderAll(),e}insertAt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i0&&this.renderOnAddRemove&&this.requestRenderAll(),s}remove(){let e=super.remove(...arguments);return e.length>0&&this.renderOnAddRemove&&this.requestRenderAll(),e}_onObjectAdded(e){e.canvas&&e.canvas!==this&&(Rs("warn",`Canvas is trying to add an object that belongs to a different canvas. +Resulting to default behavior: removing object from previous canvas and adding to new canvas`),e.canvas.remove(e)),e._set("canvas",this),e.setCoords(),this.fire("object:added",{target:e}),e.fire("added",{target:this})}_onObjectRemoved(e){e._set("canvas",void 0),this.fire("object:removed",{target:e}),e.fire("removed",{target:this})}_onStackOrderChanged(){this.renderOnAddRemove&&this.requestRenderAll()}getRetinaScaling(){return this.enableRetinaScaling?r5():1}calcOffset(){return this._offset=this.elements.calcOffset()}getWidth(){return this.width}getHeight(){return this.height}setWidth(e,t){return this.setDimensions({width:e},t)}setHeight(e,t){return this.setDimensions({height:e},t)}_setDimensionsImpl(e){let{cssOnly:t=!1,backstoreOnly:n=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!t){let i=j({width:this.width,height:this.height},e);this.elements.setDimensions(i,this.getRetinaScaling()),this.hasLostContext=!0,this.width=i.width,this.height=i.height}n||this.elements.setCSSDimensions(e),this.calcOffset()}setDimensions(e,t){this._setDimensionsImpl(e,t),t&&t.cssOnly||this.requestRenderAll()}getZoom(){return this.viewportTransform[0]}setViewportTransform(e){let t=this.backgroundImage,n=this.overlayImage,i=this._objects.length;this.viewportTransform=e;for(let s=0;sthis.renderAndReset()))}calcViewportBoundaries(){let e=this.width,t=this.height,n=_i(this.viewportTransform),i=Xn({x:0,y:0},n),s=Xn({x:e,y:t},n),o=i.min(s),a=i.max(s);return this.vptCoords={tl:o,tr:new oe(a.x,o.y),bl:new oe(o.x,a.y),br:a}}cancelRequestedRender(){this.nextRenderHandle&&(o5(this.nextRenderHandle),this.nextRenderHandle=0)}drawControls(e){}renderCanvas(e,t){if(this.destroyed)return;let n=this.viewportTransform,i=this.clipPath;this.calcViewportBoundaries(),this.clearContext(e),e.imageSmoothingEnabled=this.imageSmoothingEnabled,e.patternQuality="best",this.fire("before:render",{ctx:e}),this._renderBackground(e),e.save(),e.transform(n[0],n[1],n[2],n[3],n[4],n[5]),this._renderObjects(e,t),e.restore(),this.controlsAboveOverlay||this.drawControls(e),i&&(i._set("canvas",this),i.shouldCache(),i._transformDone=!0,i.renderCache({forClipping:!0}),this.drawClipPathOnCanvas(e,i)),this._renderOverlay(e),this.controlsAboveOverlay&&this.drawControls(e),this.fire("after:render",{ctx:e}),this.__cleanupTask&&(this.__cleanupTask(),this.__cleanupTask=void 0)}drawClipPathOnCanvas(e,t){let n=this.viewportTransform;e.save(),e.transform(...n),e.globalCompositeOperation="destination-in",t.transform(e),e.scale(1/t.zoomX,1/t.zoomY),e.drawImage(t._cacheCanvas,-t.cacheTranslationX,-t.cacheTranslationY),e.restore()}_renderObjects(e,t){for(let n=0,i=t.length;n!s.excludeFromExport).map(s=>this._toObject(s,e,t))},this.__serializeBgOverlay(e,t)),i?{clipPath:i}:null)}_toObject(e,t,n){let i;this.includeDefaultValues||(i=e.includeDefaultValues,e.includeDefaultValues=!1);let s=e[t](n);return this.includeDefaultValues||(e.includeDefaultValues=!!i),s}__serializeBgOverlay(e,t){let n={},i=this.backgroundImage,s=this.overlayImage,o=this.backgroundColor,a=this.overlayColor;return Hi(o)?o.excludeFromExport||(n.background=o.toObject(t)):o&&(n.background=o),Hi(a)?a.excludeFromExport||(n.overlay=a.toObject(t)):a&&(n.overlay=a),i&&!i.excludeFromExport&&(n.backgroundImage=this._toObject(i,e,t)),s&&!s.excludeFromExport&&(n.overlayImage=this._toObject(s,e,t)),n}toSVG(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;e.reviver=t;let n=[];return this._setSVGPreamble(n,e),this._setSVGHeader(n,e),this.clipPath&&n.push(' +`)),this._setSVGBgOverlayColor(n,"background"),this._setSVGBgOverlayImage(n,"backgroundImage",t),this._setSVGObjects(n,t),this.clipPath&&n.push(` +`),this._setSVGBgOverlayColor(n,"overlay"),this._setSVGBgOverlayImage(n,"overlayImage",t),n.push(""),n.join("")}_setSVGPreamble(e,t){t.suppressPreamble||e.push(' +`,' +`)}_setSVGHeader(e,t){let n=t.width||"".concat(this.width),i=t.height||"".concat(this.height),s=Tt.NUM_FRACTION_DIGITS,o=t.viewBox,a;if(o)a='viewBox="'.concat(o.x," ").concat(o.y," ").concat(o.width," ").concat(o.height,'" ');else if(this.svgViewportTransformation){let u=this.viewportTransform;a='viewBox="'.concat(St(-u[4]/u[0],s)," ").concat(St(-u[5]/u[3],s)," ").concat(St(this.width/u[0],s)," ").concat(St(this.height/u[3],s),'" ')}else a='viewBox="0 0 '.concat(this.width," ").concat(this.height,'" ');e.push(" +`,"Created with Fabric.js ",fp,` +`,` +`,this.createSVGFontFacesMarkup(),this.createSVGRefElementsMarkup(),this.createSVGClipPathMarkup(t),` +`)}createSVGClipPathMarkup(e){let t=this.clipPath;return t?(t.clipPathId="CLIPPATH_".concat(Ls()),' +`).concat(t.toClipPathSVG(e.reviver),` +`)):""}createSVGRefElementsMarkup(){return["background","overlay"].map(e=>{let t=this["".concat(e,"Color")];if(Hi(t)){let n=this["".concat(e,"Vpt")],i=this.viewportTransform,s={isType:()=>!1,width:this.width/(n?i[0]:1),height:this.height/(n?i[3]:1)};return t.toSVG(s,{additionalTransform:n?Y0(i):""})}}).join("")}createSVGFontFacesMarkup(){let e=[],t={},n=Tt.fontPaths;this._objects.forEach(function s(o){e.push(o),Rl(o)&&o._objects.forEach(s)}),e.forEach(s=>{if(!h5(s))return;let{styles:o,fontFamily:a}=s;!t[a]&&n[a]&&(t[a]=!0,o&&Object.values(o).forEach(u=>{Object.values(u).forEach(c=>{let{fontFamily:f=""}=c;!t[f]&&n[f]&&(t[f]=!0)})}))});let i=Object.keys(t).map(s=>` @font-face { + font-family: '`.concat(s,`'; + src: url('`).concat(n[s],`'); + } +`)).join("");return i?` +`):""}_setSVGObjects(e,t){this.forEachObject(n=>{n.excludeFromExport||this._setSVGObject(e,n,t)})}_setSVGObject(e,t,n){e.push(t.toSVG(n))}_setSVGBgOverlayImage(e,t,n){let i=this[t];i&&!i.excludeFromExport&&i.toSVG&&e.push(i.toSVG(n))}_setSVGBgOverlayColor(e,t){let n=this["".concat(t,"Color")];if(n)if(Hi(n)){let i=n.repeat||"",s=this.width,o=this.height,a=this["".concat(t,"Vpt")]?Y0(_i(this.viewportTransform)):"";e.push(' +`))}else e.push(' +`)}loadFromJSON(e,t){let{signal:n}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!e)return Promise.reject(new Gi("`json` is undefined"));let i=typeof e=="string"?JSON.parse(e):e,{objects:s=[],backgroundImage:o,background:a,overlayImage:u,overlay:c,clipPath:f}=i,l=this.renderOnAddRemove;return this.renderOnAddRemove=!1,Promise.all([hu(s,{reviver:t,signal:n}),tc({backgroundImage:o,backgroundColor:a,overlayImage:u,overlayColor:c,clipPath:f},{signal:n})]).then(h=>{let[d,x]=h;return this.clear(),this.add(...d),this.set(i),this.set(x),this.renderOnAddRemove=l,this})}clone(e){let t=this.toObject(e);return this.cloneWithoutData().loadFromJSON(t)}cloneWithoutData(){let e=pn();return e.width=this.width,e.height=this.height,new this.constructor(e)}toDataURL(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{format:t="png",quality:n=1,multiplier:i=1,enableRetinaScaling:s=!1}=e,o=i*(s?this.getRetinaScaling():1);return jp(this.toCanvasElement(o,e),t,n)}toCanvasElement(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,{width:t,height:n,left:i,top:s,filter:o}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=(t||this.width)*e,u=(n||this.height)*e,c=this.getZoom(),f=this.width,l=this.height,h=c*e,d=this.viewportTransform,x=[h,0,0,h,(d[4]-(i||0))*e,(d[5]-(s||0))*e],m=this.enableRetinaScaling,D=pn(),p=o?this._objects.filter(C=>o(C)):this._objects;return D.width=a,D.height=u,this.enableRetinaScaling=!1,this.viewportTransform=x,this.width=a,this.height=u,this.calcViewportBoundaries(),this.renderCanvas(D.getContext("2d"),p),this.viewportTransform=d,this.width=f,this.height=l,this.calcViewportBoundaries(),this.enableRetinaScaling=m,D}dispose(){return!this.disposed&&this.elements.cleanupDOM({width:this.width,height:this.height}),Nl.cancelByCanvas(this),this.disposed=!0,new Promise((e,t)=>{let n=()=>{this.destroy(),e(!0)};n.kill=t,this.__cleanupTask&&this.__cleanupTask.kill("aborted"),this.destroyed?e(!1):this.nextRenderHandle?this.__cleanupTask=n:n()})}destroy(){this.destroyed=!0,this.cancelRequestedRender(),this.forEachObject(e=>e.dispose()),this._objects=[],this.backgroundImage&&this.backgroundImage.dispose(),this.backgroundImage=void 0,this.overlayImage&&this.overlayImage.dispose(),this.overlayImage=void 0,this.elements.dispose()}toString(){return"#")}};W(Z0,"ownDefaults",GS);var jS=["touchstart","touchmove","touchend"],x5=r=>{let e=d5(r.target),t=function(n){let i=n.changedTouches;return i&&i[0]?i[0]:n}(r);return new oe(t.clientX+e.left,t.clientY+e.top)},zl=r=>jS.includes(r.type)||r.pointerType==="touch",Dp=r=>{r.preventDefault(),r.stopPropagation()},yr=r=>{if(r.length===0)return{left:0,top:0,width:0,height:0};let{min:e,max:t}=r.reduce((i,s)=>{let{min:o,max:a}=i;return{min:o.min(s),max:a.max(s)}},{min:new oe(r[0]),max:new oe(r[0])}),n=t.subtract(e);return{left:e.x,top:e.y,width:n.x,height:n.y}},WS=["translateX","translateY","scaleX","scaleY"],m5=(r,e)=>du(r,Rn(e,r.calcOwnMatrix())),du=(r,e)=>{let t=lu(e),{translateX:n,translateY:i,scaleX:s,scaleY:o}=t,a=Wt(t,WS),u=new oe(n,i);r.flipX=!1,r.flipY=!1,Object.assign(r,a),r.set({scaleX:s,scaleY:o}),r.setPositionByOrigin(u,vt,vt)},C5=r=>{r.scaleX=1,r.scaleY=1,r.skewX=0,r.skewY=0,r.flipX=!1,r.flipY=!1,r.rotate(0)},Yp=r=>({scaleX:r.scaleX,scaleY:r.scaleY,skewX:r.skewX,skewY:r.skewY,angle:r.angle,left:r.left,flipX:r.flipX,flipY:r.flipY,top:r.top}),c1=(r,e,t)=>{let n=r/2,i=e/2,s=[new oe(-n,-i),new oe(n,-i),new oe(-n,i),new oe(n,i)].map(a=>a.transform(t)),o=yr(s);return new oe(o.width,o.height)},nc=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ni;return Rn(_i(arguments.length>1&&arguments[1]!==void 0?arguments[1]:ni),r)},ks=function(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ni,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ni;return r.transform(nc(e,t))},g5=function(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ni,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ni;return r.transform(nc(e,t),!0)},pp=(r,e,t)=>{let n=nc(e,t);return du(r,Rn(n,r.calcOwnMatrix())),n},E5=(r,e)=>{var t;let{transform:{target:n}}=e;(t=n.canvas)===null||t===void 0||t.fire("object:".concat(r),j(j({},e),{},{target:n})),n.fire(r,e)},XS={left:-.5,top:-.5,center:0,bottom:.5,right:.5},Ms=r=>typeof r=="string"?XS[r]:r-.5,Hl="not-allowed";function F5(r){return r.originX===vt&&r.originY===vt}function Rg(r){return .5-Ms(r)}var ir=(r,e)=>r[e],_5=(r,e,t,n)=>({e:r,transform:e,pointer:new oe(t,n)});function v5(r,e){let t=r.getTotalAngle()+_o(Math.atan2(e.y,e.x))+360;return Math.round(t%360/45)}function f1(r,e,t,n,i){var s;let{target:o,corner:a}=r,u=o.controls[a],c=((s=o.canvas)===null||s===void 0?void 0:s.getZoom())||1,f=o.padding/c,l=function(h,d,x,m){let D=h.getRelativeCenterPoint(),p=x!==void 0&&m!==void 0?h.translateToGivenOrigin(D,vt,vt,x,m):new oe(h.left,h.top);return(h.angle?d.rotate(-fn(h.angle),D):d).subtract(p)}(o,new oe(n,i),e,t);return l.x>=f&&(l.x-=f),l.x<=-f&&(l.x+=f),l.y>=f&&(l.y-=f),l.y<=f&&(l.y+=f),l.x-=u.offsetX,l.y-=u.offsetY,l}var y5=(r,e,t,n)=>{let{target:i,offsetX:s,offsetY:o}=e,a=t-s,u=n-o,c=!ir(i,"lockMovementX")&&i.left!==a,f=!ir(i,"lockMovementY")&&i.top!==u;return c&&i.set(It,a),f&&i.set(qn,u),(c||f)&&E5("moving",_5(r,e,t,n)),c||f},Gl=class{getSvgStyles(e){let t=this.fillRule?this.fillRule:"nonzero",n=this.strokeWidth?this.strokeWidth:"0",i=this.strokeDashArray?this.strokeDashArray.join(" "):ci,s=this.strokeDashOffset?this.strokeDashOffset:"0",o=this.strokeLineCap?this.strokeLineCap:"butt",a=this.strokeLineJoin?this.strokeLineJoin:"miter",u=this.strokeMiterLimit?this.strokeMiterLimit:"4",c=this.opacity!==void 0?this.opacity:"1",f=this.visible?"":" visibility: hidden;",l=e?"":this.getSvgFilter(),h=$0("fill",this.fill);return[$0("stroke",this.stroke),"stroke-width: ",n,"; ","stroke-dasharray: ",i,"; ","stroke-linecap: ",o,"; ","stroke-dashoffset: ",s,"; ","stroke-linejoin: ",a,"; ","stroke-miterlimit: ",u,"; ",h,"fill-rule: ",t,"; ","opacity: ",c,";",l,f].join("")}getSvgFilter(){return this.shadow?"filter: url(#SVGID_".concat(this.shadow.id,");"):""}getSvgCommons(){return[this.id?'id="'.concat(this.id,'" '):"",this.clipPath?'clip-path="url(#'.concat(this.clipPath.clipPathId,')" '):""].join("")}getSvgTransform(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=e?this.calcTransformMatrix():this.calcOwnMatrix(),i='transform="'.concat(Y0(n));return"".concat(i).concat(t,'" ')}_toSVG(e){return[""]}toSVG(e){return this._createBaseSVGMarkup(this._toSVG(e),{reviver:e})}toClipPathSVG(e){return" "+this._createBaseClipPathSVGMarkup(this._toSVG(e),{reviver:e})}_createBaseClipPathSVGMarkup(e){let{reviver:t,additionalTransform:n=""}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=[this.getSvgTransform(!0,n),this.getSvgCommons()].join(""),s=e.indexOf("COMMON_PARTS");return e[s]=i,t?t(e.join("")):e.join("")}_createBaseSVGMarkup(e){let{noStyle:t,reviver:n,withShadow:i,additionalTransform:s}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=t?"":'style="'.concat(this.getSvgStyles(),'" '),a=i?'style="'.concat(this.getSvgFilter(),'" '):"",u=this.clipPath,c=this.strokeUniform?'vector-effect="non-scaling-stroke" ':"",f=u&&u.absolutePositioned,l=this.stroke,h=this.fill,d=this.shadow,x=[],m=e.indexOf("COMMON_PARTS"),D;u&&(u.clipPathId="CLIPPATH_".concat(Ls()),D=' +`).concat(u.toClipPathSVG(n),` +`)),f&&x.push(" +`),x.push(" +`);let p=[o,c,t?"":this.addPaintOrder()," ",s?'transform="'.concat(s,'" '):""].join("");return e[m]=p,Hi(h)&&x.push(h.toSVG(this)),Hi(l)&&x.push(l.toSVG(this)),d&&x.push(d.toSVG(this)),u&&x.push(D),x.push(e.join("")),x.push(` +`),f&&x.push(` +`),n?n(x.join("")):x.join("")}addPaintOrder(){return this.paintFirst!=="fill"?' paint-order="'.concat(this.paintFirst,'" '):""}},JD=(r,e,t,n)=>(rr*Math.pow(2,10*(n-=1))*Math.sin((n*i-e)*Kr/t),b5=(r,e,t,n)=>-t*Math.cos(r/n*Os)+t+e,xp=(r,e,t,n)=>(r/=n)<1/2.75?t*(7.5625*r*r)+e:r<2/2.75?t*(7.5625*(r-=1.5/2.75)*r+.75)+e:r<2.5/2.75?t*(7.5625*(r-=2.25/2.75)*r+.9375)+e:t*(7.5625*(r-=2.625/2.75)*r+.984375)+e,Lg=(r,e,t,n)=>t-xp(n-r,0,t,n)+e,qS=Object.freeze({__proto__:null,defaultEasing:b5,easeInBack:function(r,e,t,n){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1.70158;return t*(r/=n)*r*((i+1)*r-i)+e},easeInBounce:Lg,easeInCirc:(r,e,t,n)=>-t*(Math.sqrt(1-(r/=n)*r)-1)+e,easeInCubic:(r,e,t,n)=>t*(r/n)**3+e,easeInElastic:(r,e,t,n)=>{let i=t,s=0;if(r===0)return e;if((r/=n)===1)return e+t;s||(s=.3*n);let{a:o,s:a,p:u}=JD(i,t,s,1.70158);return-Og(o,a,u,r,n)+e},easeInExpo:(r,e,t,n)=>r===0?e:t*2**(10*(r/n-1))+e,easeInOutBack:function(r,e,t,n){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1.70158;return(r/=n/2)<1?t/2*(r*r*((1+(i*=1.525))*r-i))+e:t/2*((r-=2)*r*((1+(i*=1.525))*r+i)+2)+e},easeInOutBounce:(r,e,t,n)=>r(r/=n/2)<1?-t/2*(Math.sqrt(1-r**2)-1)+e:t/2*(Math.sqrt(1-(r-=2)*r)+1)+e,easeInOutCubic:(r,e,t,n)=>(r/=n/2)<1?t/2*r**3+e:t/2*((r-2)**3+2)+e,easeInOutElastic:(r,e,t,n)=>{let i=t,s=0;if(r===0)return e;if((r/=n/2)===2)return e+t;s||(s=n*(.3*1.5));let{a:o,s:a,p:u,c}=JD(i,t,s,1.70158);return r<1?-.5*Og(o,a,u,r,n)+e:o*Math.pow(2,-10*(r-=1))*Math.sin((r*n-a)*Kr/u)*.5+c+e},easeInOutExpo:(r,e,t,n)=>r===0?e:r===n?e+t:(r/=n/2)<1?t/2*2**(10*(r-1))+e:t/2*-(2**(-10*--r)+2)+e,easeInOutQuad:(r,e,t,n)=>(r/=n/2)<1?t/2*r**2+e:-t/2*(--r*(r-2)-1)+e,easeInOutQuart:(r,e,t,n)=>(r/=n/2)<1?t/2*r**4+e:-t/2*((r-=2)*r**3-2)+e,easeInOutQuint:(r,e,t,n)=>(r/=n/2)<1?t/2*r**5+e:t/2*((r-2)**5+2)+e,easeInOutSine:(r,e,t,n)=>-t/2*(Math.cos(Math.PI*r/n)-1)+e,easeInQuad:(r,e,t,n)=>t*(r/=n)*r+e,easeInQuart:(r,e,t,n)=>t*(r/=n)*r**3+e,easeInQuint:(r,e,t,n)=>t*(r/n)**5+e,easeInSine:(r,e,t,n)=>-t*Math.cos(r/n*Os)+t+e,easeOutBack:function(r,e,t,n){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1.70158;return t*((r=r/n-1)*r*((i+1)*r+i)+1)+e},easeOutBounce:xp,easeOutCirc:(r,e,t,n)=>t*Math.sqrt(1-(r=r/n-1)*r)+e,easeOutCubic:(r,e,t,n)=>t*((r/n-1)**3+1)+e,easeOutElastic:(r,e,t,n)=>{let i=t,s=0;if(r===0)return e;if((r/=n)===1)return e+t;s||(s=.3*n);let{a:o,s:a,p:u,c}=JD(i,t,s,1.70158);return o*2**(-10*r)*Math.sin((r*n-a)*Kr/u)+c+e},easeOutExpo:(r,e,t,n)=>r===n?e+t:t*-(2**(-10*r/n)+1)+e,easeOutQuad:(r,e,t,n)=>-t*(r/=n)*(r-2)+e,easeOutQuart:(r,e,t,n)=>-t*((r=r/n-1)*r**3-1)+e,easeOutQuint:(r,e,t,n)=>t*((r/n-1)**5+1)+e,easeOutSine:(r,e,t,n)=>t*Math.sin(r/n*Os)+e}),YS=()=>!1,K0=class{constructor(e){let{startValue:t,byValue:n,duration:i=500,delay:s=0,easing:o=b5,onStart:a=Co,onChange:u=Co,onComplete:c=Co,abort:f=YS,target:l}=e;W(this,"_state","pending"),W(this,"durationProgress",0),W(this,"valueProgress",0),this.tick=this.tick.bind(this),this.duration=i,this.delay=s,this.easing=o,this._onStart=a,this._onChange=u,this._onComplete=c,this._abort=f,this.target=l,this.startValue=t,this.byValue=n,this.value=this.startValue,this.endValue=Object.freeze(this.calculate(this.duration).value)}get state(){return this._state}isDone(){return this._state==="aborted"||this._state==="completed"}start(){let e=t=>{this._state==="pending"&&(this.startTime=t||+new Date,this._state="running",this._onStart(),this.tick(this.startTime))};this.register(),this.delay>0?setTimeout(()=>H0(e),this.delay):H0(e)}tick(e){let t=(e||+new Date)-this.startTime,n=Math.min(t,this.duration);this.durationProgress=n/this.duration;let{value:i,valueProgress:s}=this.calculate(n);this.value=Object.freeze(i),this.valueProgress=s,this._state!=="aborted"&&(this._abort(this.value,this.valueProgress,this.durationProgress)?(this._state="aborted",this.unregister()):t>=this.duration?(this.durationProgress=this.valueProgress=1,this._onChange(this.endValue,this.valueProgress,this.durationProgress),this._state="completed",this._onComplete(this.endValue,this.valueProgress,this.durationProgress),this.unregister()):(this._onChange(this.value,this.valueProgress,this.durationProgress),H0(this.tick)))}register(){Nl.push(this)}unregister(){Nl.remove(this)}abort(){this._state="aborted",this.unregister()}},$S=["startValue","endValue"],mp=class extends K0{constructor(e){let{startValue:t=0,endValue:n=100}=e;super(j(j({},Wt(e,$S)),{},{startValue:t,byValue:n-t}))}calculate(e){let t=this.easing(e,this.startValue,this.byValue,this.duration);return{value:t,valueProgress:Math.abs((t-this.startValue)/this.byValue)}}},ZS=["startValue","endValue"],Cp=class extends K0{constructor(e){let{startValue:t=[0],endValue:n=[100]}=e;super(j(j({},Wt(e,ZS)),{},{startValue:t,byValue:n.map((i,s)=>i-t[s])}))}calculate(e){let t=this.startValue.map((n,i)=>this.easing(e,n,this.byValue[i],this.duration,i));return{value:t,valueProgress:Math.abs((t[0]-this.startValue[0])/this.byValue[0])}}},vo=(r,e,t)=>Math.max(r,Math.min(e,t)),KS=["startValue","endValue","easing","onChange","onComplete","abort"],JS=(r,e,t,n)=>e+t*(1-Math.cos(r/n*Os)),QD=r=>r&&((e,t,n)=>r(new ii(e).toRgba(),t,n)),gp=class extends K0{constructor(e){let{startValue:t,endValue:n,easing:i=JS,onChange:s,onComplete:o,abort:a}=e,u=Wt(e,KS),c=new ii(t).getSource(),f=new ii(n).getSource();super(j(j({},u),{},{startValue:c,byValue:f.map((l,h)=>l-c[h]),easing:i,onChange:QD(s),onComplete:QD(o),abort:QD(a)}))}calculate(e){let[t,n,i,s]=this.startValue.map((a,u)=>this.easing(e,a,this.byValue[u],this.duration,u)),o=[...[t,n,i].map(Math.round),vo(0,s,1)];return{value:o,valueProgress:o.map((a,u)=>this.byValue[u]!==0?Math.abs((a-this.startValue[u])/this.byValue[u]):0).find(a=>a!==0)||0}}};function $p(r){let e=(t=>Array.isArray(t.startValue)||Array.isArray(t.endValue))(r)?new Cp(r):new mp(r);return e.start(),e}function B5(r){let e=new gp(r);return e.start(),e}var QS=new oe(1,0),A5=new oe,Zp=(r,e)=>r.rotate(e),jl=(r,e)=>new oe(e).subtract(r),Wl=r=>r.distanceFrom(A5),Xl=(r,e)=>Math.atan2(Ya(r,e),S5(r,e)),w5=r=>Xl(QS,r),l1=r=>r.eq(A5)?r:r.scalarDivide(Wl(r)),Kp=function(r){let e=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return l1(new oe(-r.y,r.x).scalarMultiply(e?1:-1))},Ya=(r,e)=>r.x*e.y-r.y*e.x,S5=(r,e)=>r.x*e.x+r.y*e.y,Ep=(r,e,t)=>{if(r.eq(e)||r.eq(t))return!0;let n=Ya(e,t),i=Ya(e,r),s=Ya(t,r);return n>=0?i>=0&&s<=0:!(i<=0&&s>=0)},Eo=class r{constructor(e){this.status=e,this.points=[]}includes(e){return this.points.some(t=>t.eq(e))}append(){for(var e=arguments.length,t=new Array(e),n=0;n!this.includes(i))),this}static isPointContained(e,t,n){let i=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(t.eq(n))return e.eq(t);if(t.x===n.x)return e.x===t.x&&(i||e.y>=Math.min(t.y,n.y)&&e.y<=Math.max(t.y,n.y));if(t.y===n.y)return e.y===t.y&&(i||e.x>=Math.min(t.x,n.x)&&e.x<=Math.max(t.x,n.x));{let s=jl(t,n),o=jl(t,e).divide(s);return i?Math.abs(o.x)===Math.abs(o.y):o.x===o.y&&o.x>=0&&o.x<=1}}static isPointInPolygon(e,t){let n=new oe(e).setX(Math.min(e.x-1,...t.map(s=>s.x))),i=0;for(let s=0;s4&&arguments[4]!==void 0)||arguments[4],o=!(arguments.length>5&&arguments[5]!==void 0)||arguments[5],a=t.x-e.x,u=t.y-e.y,c=i.x-n.x,f=i.y-n.y,l=e.x-n.x,h=e.y-n.y,d=c*h-f*l,x=a*h-u*l,m=f*a-c*u;if(m!==0){let D=d/m,p=x/m;return(s||0<=D&&D<=1)&&(o||0<=p&&p<=1)?new r("Intersection").append(new oe(e.x+D*a,e.y+D*u)):new r}if(d===0||x===0){let D=s||o||r.isPointContained(e,n,i)||r.isPointContained(t,n,i)||r.isPointContained(n,e,t)||r.isPointContained(i,e,t);return new r(D?"Coincident":void 0)}return new r("Parallel")}static intersectSegmentLine(e,t,n,i){return r.intersectLineLine(e,t,n,i,!1,!0)}static intersectSegmentSegment(e,t,n,i){return r.intersectLineLine(e,t,n,i,!1,!1)}static intersectLinePolygon(e,t,n){let i=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],s=new r,o=n.length;for(let a,u,c,f=0;f0&&(s.status="Intersection"),s}static intersectSegmentPolygon(e,t,n){return r.intersectLinePolygon(e,t,n,!1)}static intersectPolygonPolygon(e,t){let n=new r,i=e.length,s=[];for(let o=0;o0&&s.length===e.length?new r("Coincident"):(n.points.length>0&&(n.status="Intersection"),n)}static intersectPolygonRectangle(e,t,n){let i=t.min(n),s=t.max(n),o=new oe(s.x,i.y),a=new oe(i.x,s.y);return r.intersectPolygonPolygon(e,[i,o,s,a])}},Fp=class extends Ul{_getTransformedDimensions(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=j({scaleX:this.scaleX,scaleY:this.scaleY,skewX:this.skewX,skewY:this.skewY,width:this.width,height:this.height,strokeWidth:this.strokeWidth},e),n=t.strokeWidth,i=n,s=0;this.strokeUniform&&(i=0,s=n);let o=t.width+i,a=t.height+i,u;return u=t.skewX===0&&t.skewY===0?new oe(o*t.scaleX,a*t.scaleY):c1(o,a,ec(t)),u.scalarAdd(s)}translateToGivenOrigin(e,t,n,i,s){let o=e.x,a=e.y,u=Ms(i)-Ms(t),c=Ms(s)-Ms(n);if(u||c){let f=this._getTransformedDimensions();o+=u*f.x,a+=c*f.y}return new oe(o,a)}translateToCenterPoint(e,t,n){let i=this.translateToGivenOrigin(e,t,n,vt,vt);return this.angle?i.rotate(fn(this.angle),e):i}translateToOriginPoint(e,t,n){let i=this.translateToGivenOrigin(e,vt,vt,t,n);return this.angle?i.rotate(fn(this.angle),e):i}getCenterPoint(){let e=this.getRelativeCenterPoint();return this.group?Xn(e,this.group.calcTransformMatrix()):e}getRelativeCenterPoint(){return this.translateToCenterPoint(new oe(this.left,this.top),this.originX,this.originY)}getPointByOrigin(e,t){return this.translateToOriginPoint(this.getRelativeCenterPoint(),e,t)}setPositionByOrigin(e,t,n){let i=this.translateToCenterPoint(e,t,n),s=this.translateToOriginPoint(i,this.originX,this.originY);this.set({left:s.x,top:s.y})}_getLeftTopCoords(){return this.translateToOriginPoint(this.getRelativeCenterPoint(),It,qn)}},_p=class extends Fp{getX(){return this.getXY().x}setX(e){this.setXY(this.getXY().setX(e))}getY(){return this.getXY().y}setY(e){this.setXY(this.getXY().setY(e))}getRelativeX(){return this.left}setRelativeX(e){this.left=e}getRelativeY(){return this.top}setRelativeY(e){this.top=e}getXY(){let e=this.getRelativeXY();return this.group?Xn(e,this.group.calcTransformMatrix()):e}setXY(e,t,n){this.group&&(e=Xn(e,_i(this.group.calcTransformMatrix()))),this.setRelativeXY(e,t,n)}getRelativeXY(){return new oe(this.left,this.top)}setRelativeXY(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.originX,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.originY;this.setPositionByOrigin(e,t,n)}isStrokeAccountedForInDimensions(){return!1}getCoords(){let{tl:e,tr:t,br:n,bl:i}=this.aCoords||(this.aCoords=this.calcACoords()),s=[e,t,n,i];if(this.group){let o=this.group.calcTransformMatrix();return s.map(a=>Xn(a,o))}return s}intersectsWithRect(e,t){return Eo.intersectPolygonRectangle(this.getCoords(),e,t).status==="Intersection"}intersectsWithObject(e){let t=Eo.intersectPolygonPolygon(this.getCoords(),e.getCoords());return t.status==="Intersection"||t.status==="Coincident"||e.isContainedWithinObject(this)||this.isContainedWithinObject(e)}isContainedWithinObject(e){return this.getCoords().every(t=>e.containsPoint(t))}isContainedWithinRect(e,t){let{left:n,top:i,width:s,height:o}=this.getBoundingRect();return n>=e.x&&n+s<=t.x&&i>=e.y&&i+o<=t.y}isOverlapping(e){return this.intersectsWithObject(e)||this.isContainedWithinObject(e)||e.isContainedWithinObject(this)}containsPoint(e){return Eo.isPointInPolygon(e,this.getCoords())}isOnScreen(){if(!this.canvas)return!1;let{tl:e,br:t}=this.canvas.vptCoords;return!!this.getCoords().some(n=>n.x<=t.x&&n.x>=e.x&&n.y<=t.y&&n.y>=e.y)||!!this.intersectsWithRect(e,t)||this.containsPoint(e.midPointFrom(t))}isPartiallyOnScreen(){if(!this.canvas)return!1;let{tl:e,br:t}=this.canvas.vptCoords;return this.intersectsWithRect(e,t)?!0:this.getCoords().every(n=>(n.x>=t.x||n.x<=e.x)&&(n.y>=t.y||n.y<=e.y))&&this.containsPoint(e.midPointFrom(t))}getBoundingRect(){return yr(this.getCoords())}getScaledWidth(){return this._getTransformedDimensions().x}getScaledHeight(){return this._getTransformedDimensions().y}scale(e){this._set("scaleX",e),this._set("scaleY",e),this.setCoords()}scaleToWidth(e){let t=this.getBoundingRect().width/this.getScaledWidth();return this.scale(e/this.width/t)}scaleToHeight(e){let t=this.getBoundingRect().height/this.getScaledHeight();return this.scale(e/this.height/t)}getCanvasRetinaScaling(){var e;return((e=this.canvas)===null||e===void 0?void 0:e.getRetinaScaling())||1}getTotalAngle(){return this.group?_o(u5(this.calcTransformMatrix())):this.angle}getViewportTransform(){var e;return((e=this.canvas)===null||e===void 0?void 0:e.viewportTransform)||ni.concat()}calcACoords(){let e=Cu({angle:this.angle}),{x:t,y:n}=this.getRelativeCenterPoint(),i=mu(t,n),s=Rn(i,e),o=this._getTransformedDimensions(),a=o.x/2,u=o.y/2;return{tl:Xn({x:-a,y:-u},s),tr:Xn({x:a,y:-u},s),bl:Xn({x:-a,y:u},s),br:Xn({x:a,y:u},s)}}setCoords(){this.aCoords=this.calcACoords()}transformMatrixKey(){let e=arguments.length>0&&arguments[0]!==void 0&&arguments[0],t="_",n="";return!e&&this.group&&(n=this.group.transformMatrixKey(e)+t),n+this.top+t+this.left+t+this.scaleX+t+this.scaleY+t+this.skewX+t+this.skewY+t+this.angle+t+this.originX+t+this.originY+t+this.width+t+this.height+t+this.strokeWidth+this.flipX+this.flipY}calcTransformMatrix(){let e=arguments.length>0&&arguments[0]!==void 0&&arguments[0],t=this.calcOwnMatrix();if(e||!this.group)return t;let n=this.transformMatrixKey(e),i=this.matrixCache;return i&&i.key===n?i.value:(this.group&&(t=Rn(this.group.calcTransformMatrix(!1),t)),this.matrixCache={key:n,value:t},t)}calcOwnMatrix(){let e=this.transformMatrixKey(!0),t=this.ownMatrixCache;if(t&&t.key===e)return t.value;let n=this.getRelativeCenterPoint(),i={angle:this.angle,translateX:n.x,translateY:n.y,scaleX:this.scaleX,scaleY:this.scaleY,skewX:this.skewX,skewY:this.skewY,flipX:this.flipX,flipY:this.flipY},s=f5(i);return this.ownMatrixCache={key:e,value:s},s}_getNonTransformedDimensions(){return new oe(this.width,this.height).scalarAdd(this.strokeWidth)}_calculateCurrentDimensions(e){return this._getTransformedDimensions(e).transform(this.getViewportTransform(),!0).scalarAdd(2*this.padding)}},vp=class r extends _p{isDescendantOf(e){let{parent:t,group:n}=this;return t===e||n===e||this.canvas===e||!!t&&t.isDescendantOf(e)||!!n&&n!==t&&n.isDescendantOf(e)}getAncestors(e){let t=[],n=this;do{var i;n=n instanceof r?(i=n.parent)!==null&&i!==void 0?i:e?void 0:n.canvas:void 0,n&&t.push(n)}while(n);return t}findCommonAncestors(e,t){if(this===e)return{fork:[],otherFork:[],common:[this,...this.getAncestors(t)]};let n=this.getAncestors(t),i=e.getAncestors(t);if(n.length===0&&i.length>0&&this===i[i.length-1])return{fork:[],otherFork:[e,...i.slice(0,i.length-1)],common:[this]};for(let s,o=0;o-1&&o>a}},ql=class extends vp{animate(e,t){return Object.entries(e).reduce((n,i)=>{let[s,o]=i;return n[s]=this._animate(s,o,t),n},{})}_animate(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=e.split("."),s=this.constructor.colorProperties.includes(i[i.length-1]),{easing:o,duration:a,abort:u,startValue:c,onChange:f,onComplete:l}=n,h={target:this,startValue:c??i.reduce((d,x)=>d[x],this),endValue:t,easing:o,duration:a,abort:u?.bind(this),onChange:(d,x,m)=>{i.reduce((D,p,C)=>(C===i.length-1&&(D[p]=d),D[p]),this),f&&f(d,x,m)},onComplete:(d,x,m)=>{this.setCoords(),l&&l(d,x,m)}};return s?B5(h):$p(h)}};function h1(r){return new RegExp("^("+r.join("|")+")\\b","i")}var Ng,Ug;W(ql,"colorProperties",["fill","stroke","backgroundColor"]);var vr=String.raw(Ng||(Ng=Ar(["(?:[-+]?(?:d*.d+|d+.?)(?:[eE][-+]?d+)?)"],["(?:[-+]?(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][-+]?\\d+)?)"])));String.raw(Ug||(Ug=Ar(["(?:s+,?s*|,s*|$)"],["(?:\\s+,?\\s*|,\\s*|$)"])));var e7=new RegExp("(normal|italic)?\\s*(normal|small-caps)?\\s*(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)?\\s*("+vr+"(?:px|cm|mm|em|pt|pc|in)*)(?:\\/(normal|"+vr+"))?\\s+(.*)"),t7={cx:It,x:It,r:"radius",cy:qn,y:qn,display:"visible",visibility:"visible",transform:"transformMatrix","fill-opacity":"fillOpacity","fill-rule":"fillRule","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","letter-spacing":"charSpacing","paint-order":"paintFirst","stroke-dasharray":"strokeDashArray","stroke-dashoffset":"strokeDashOffset","stroke-linecap":"strokeLineCap","stroke-linejoin":"strokeLineJoin","stroke-miterlimit":"strokeMiterLimit","stroke-opacity":"strokeOpacity","stroke-width":"strokeWidth","text-decoration":"textDecoration","text-anchor":"textAnchor",opacity:"opacity","clip-path":"clipPath","clip-rule":"clipRule","vector-effect":"strokeUniform","image-rendering":"imageSmoothing"},ep="font-size",tp="clip-path",DV=h1(["path","circle","polygon","polyline","ellipse","rect","line","image","text"]),pV=h1(["symbol","image","marker","pattern","view","svg"]),Vg=h1(["symbol","g","a","svg","clipPath","defs"]),xV=new RegExp("^\\s*("+vr+"+)\\s*,?\\s*("+vr+"+)\\s*,?\\s*("+vr+"+)\\s*,?\\s*("+vr+"+)\\s*$"),zg="(-?\\d+(?:\\.\\d*)?(?:px)?(?:\\s?|$))?",Fo=class r{constructor(e){let t=typeof e=="string"?r.parseShadow(e):e;Object.assign(this,this.constructor.ownDefaults);for(let n in t)this[n]=t[n];this.id=Ls()}static parseShadow(e){let t=e.trim(),n=new RegExp("(?:\\s|^)"+zg+zg+"("+vr+"?(?:px)?)?(?:\\s?|$)(?:$|\\s)"),[,i=0,s=0,o=0]=(n.exec(t)||[]).map(a=>parseFloat(a)||0);return{color:(t.replace(n,"")||"rgb(0,0,0)").trim(),offsetX:i,offsetY:s,blur:o}}toString(){return[this.offsetX,this.offsetY,this.blur,this.color].join("px ")}toSVG(e){let t=Zp(new oe(this.offsetX,this.offsetY),fn(-e.angle)),n=new ii(this.color),i=40,s=40;return e.width&&e.height&&(i=100*St((Math.abs(t.x)+this.blur)/e.width,Tt.NUM_FRACTION_DIGITS)+20,s=100*St((Math.abs(t.y)+this.blur)/e.height,Tt.NUM_FRACTION_DIGITS)+20),e.flipX&&(t.x*=-1),e.flipY&&(t.y*=-1),' + + + + + + + + + +`)}toObject(){let e={color:this.color,blur:this.blur,offsetX:this.offsetX,offsetY:this.offsetY,affectStroke:this.affectStroke,nonScaling:this.nonScaling,type:this.constructor.type},t=r.ownDefaults;return this.includeDefaultValues?e:qp(e,(n,i)=>n!==t[i])}static fromObject(e){return $(this,null,function*(){return new this(e)})}};W(Fo,"ownDefaults",{color:"rgb(0,0,0)",blur:0,offsetX:0,offsetY:0,affectStroke:!1,includeDefaultValues:!0,nonScaling:!1}),W(Fo,"type","shadow"),Ge.setClass(Fo,"shadow");var ic=r=>JSON.parse(JSON.stringify(r)),n7=[qn,It,"scaleX","scaleY","flipX","flipY","originX","originY","angle","opacity","globalCompositeOperation","shadow","visible","skewX","skewY"],Jr=["fill","stroke","strokeWidth","strokeDashArray","width","height","paintFirst","strokeUniform","strokeLineCap","strokeDashOffset","strokeLineJoin","strokeMiterLimit","backgroundColor","clipPath"],i7={top:0,left:0,width:0,height:0,angle:0,flipX:!1,flipY:!1,scaleX:1,scaleY:1,minScaleLimit:0,skewX:0,skewY:0,originX:It,originY:qn,strokeWidth:1,strokeUniform:!1,padding:0,opacity:1,paintFirst:"fill",fill:"rgb(0,0,0)",fillRule:"nonzero",stroke:null,strokeDashArray:null,strokeDashOffset:0,strokeLineCap:"butt",strokeLineJoin:"miter",strokeMiterLimit:4,globalCompositeOperation:"source-over",backgroundColor:"",shadow:null,visible:!0,includeDefaultValues:!0,excludeFromExport:!1,objectCaching:!0,clipPath:void 0,inverted:!1,absolutePositioned:!1,centeredRotation:!0,centeredScaling:!1,dirty:!0},r7=["type"],s7=["extraParam"],Do=class M5 extends ql{static getDefaults(){return j({},M5.ownDefaults)}get type(){let e=this.constructor.type;return e==="FabricObject"?"object":e.toLowerCase()}set type(e){Rs("warn","Setting type has no effect",e)}constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(),W(this,"_cacheContext",null),Object.assign(this,this.constructor.getDefaults()),this.setOptions(e)}_createCacheCanvas(){this._cacheCanvas=pn(),this._cacheContext=this._cacheCanvas.getContext("2d"),this._updateCacheCanvas(),this.dirty=!0}_limitCacheSize(e){let t=e.width,n=e.height,i=Tt.maxCacheSideLimit,s=Tt.minCacheSideLimit;if(t<=i&&n<=i&&t*n<=Tt.perfLimitSizeTotal)return tc&&(e.zoomX/=t/c,e.width=c,e.capped=!0),n>f&&(e.zoomY/=n/f,e.height=f,e.capped=!0),e}_getCacheCanvasDimensions(){let e=this.getTotalObjectScaling(),t=this._getTransformedDimensions({skewX:0,skewY:0}),n=t.x*e.x/this.scaleX,i=t.y*e.y/this.scaleY;return{width:n+2,height:i+2,zoomX:e.x,zoomY:e.y,x:n,y:i}}_updateCacheCanvas(){let e=this._cacheCanvas,t=this._cacheContext,n=this._limitCacheSize(this._getCacheCanvasDimensions()),i=Tt.minCacheSideLimit,s=n.width,o=n.height,a=n.zoomX,u=n.zoomY,c=s!==this.cacheWidth||o!==this.cacheHeight,f=this.zoomX!==a||this.zoomY!==u;if(!e||!t)return!1;let l,h,d=c||f,x=0,m=0,D=!1;if(c){let p=this._cacheCanvas.width,C=this._cacheCanvas.height,g=s>p||o>C;D=g||(s<.9*p||o<.9*C)&&p>i&&C>i,g&&!n.capped&&(s>i||o>i)&&(x=.1*s,m=.1*o)}return h5(this)&&this.path&&(d=!0,D=!0,x+=this.getHeightOfLine(0)*this.zoomX,m+=this.getHeightOfLine(0)*this.zoomY),!!d&&(D?(e.width=Math.ceil(s+x),e.height=Math.ceil(o+m)):(t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,e.width,e.height)),l=n.x/2,h=n.y/2,this.cacheTranslationX=Math.round(e.width/2-l)+l,this.cacheTranslationY=Math.round(e.height/2-h)+h,this.cacheWidth=s,this.cacheHeight=o,t.translate(this.cacheTranslationX,this.cacheTranslationY),t.scale(a,u),this.zoomX=a,this.zoomY=u,!0)}setOptions(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this._setOptions(e)}transform(e){let t=this.group&&!this.group._transformDone||this.group&&this.canvas&&e===this.canvas.contextTop,n=this.calcTransformMatrix(!t);e.transform(n[0],n[1],n[2],n[3],n[4],n[5])}toObject(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=Tt.NUM_FRACTION_DIGITS,n=this.clipPath&&!this.clipPath.excludeFromExport?j(j({},this.clipPath.toObject(e)),{},{inverted:this.clipPath.inverted,absolutePositioned:this.clipPath.absolutePositioned}):null,i=j(j({},bo(this,e)),{},{type:this.constructor.type,version:fp,originX:this.originX,originY:this.originY,left:St(this.left,t),top:St(this.top,t),width:St(this.width,t),height:St(this.height,t),fill:kg(this.fill)?this.fill.toObject():this.fill,stroke:kg(this.stroke)?this.stroke.toObject():this.stroke,strokeWidth:St(this.strokeWidth,t),strokeDashArray:this.strokeDashArray?this.strokeDashArray.concat():this.strokeDashArray,strokeLineCap:this.strokeLineCap,strokeDashOffset:this.strokeDashOffset,strokeLineJoin:this.strokeLineJoin,strokeUniform:this.strokeUniform,strokeMiterLimit:St(this.strokeMiterLimit,t),scaleX:St(this.scaleX,t),scaleY:St(this.scaleY,t),angle:St(this.angle,t),flipX:this.flipX,flipY:this.flipY,opacity:St(this.opacity,t),shadow:this.shadow&&this.shadow.toObject?this.shadow.toObject():this.shadow,visible:this.visible,backgroundColor:this.backgroundColor,fillRule:this.fillRule,paintFirst:this.paintFirst,globalCompositeOperation:this.globalCompositeOperation,skewX:St(this.skewX,t),skewY:St(this.skewY,t)},n?{clipPath:n}:null);return this.includeDefaultValues?i:this._removeDefaultValues(i)}toDatalessObject(e){return this.toObject(e)}_removeDefaultValues(e){let t=this.constructor.getDefaults(),n=Object.keys(t).length>0?t:Object.getPrototypeOf(this);return qp(e,(i,s)=>{if(s===It||s===qn||s==="type")return!0;let o=n[s];return i!==o&&!(Array.isArray(i)&&Array.isArray(o)&&i.length===0&&o.length===0)})}toString(){return"#<".concat(this.constructor.type,">")}getObjectScaling(){if(!this.group)return new oe(Math.abs(this.scaleX),Math.abs(this.scaleY));let e=lu(this.calcTransformMatrix());return new oe(Math.abs(e.scaleX),Math.abs(e.scaleY))}getTotalObjectScaling(){let e=this.getObjectScaling();if(this.canvas){let t=this.canvas.getZoom(),n=this.getCanvasRetinaScaling();return e.scalarMultiply(t*n)}return e}getObjectOpacity(){let e=this.opacity;return this.group&&(e*=this.group.getObjectOpacity()),e}_constrainScale(e){return Math.abs(e)0&&arguments[0]!==void 0&&arguments[0];if(this.isNotVisible())return!1;if(this._cacheCanvas&&this._cacheContext&&!e&&this._updateCacheCanvas())return!0;if(this.dirty||this.clipPath&&this.clipPath.absolutePositioned){if(this._cacheCanvas&&this._cacheContext&&!e){let t=this.cacheWidth/this.zoomX,n=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-t/2,-n/2,t,n)}return!0}return!1}_renderBackground(e){if(!this.backgroundColor)return;let t=this._getNonTransformedDimensions();e.fillStyle=this.backgroundColor,e.fillRect(-t.x/2,-t.y/2,t.x,t.y),this._removeShadow(e)}_setOpacity(e){this.group&&!this.group._transformDone?e.globalAlpha=this.getObjectOpacity():e.globalAlpha*=this.opacity}_setStrokeStyles(e,t){let n=t.stroke;n&&(e.lineWidth=t.strokeWidth,e.lineCap=t.strokeLineCap,e.lineDashOffset=t.strokeDashOffset,e.lineJoin=t.strokeLineJoin,e.miterLimit=t.strokeMiterLimit,Hi(n)?n.gradientUnits==="percentage"||n.gradientTransform||n.patternTransform?this._applyPatternForTransformedGradient(e,n):(e.strokeStyle=n.toLive(e),this._applyPatternGradientTransform(e,n)):e.strokeStyle=t.stroke)}_setFillStyles(e,t){let{fill:n}=t;n&&(Hi(n)?(e.fillStyle=n.toLive(e),this._applyPatternGradientTransform(e,n)):e.fillStyle=n)}_setClippingProperties(e){e.globalAlpha=1,e.strokeStyle="transparent",e.fillStyle="#000000"}_setLineDash(e,t){t&&t.length!==0&&(1&t.length&&t.push(...t),e.setLineDash(t))}_setShadow(e){if(!this.shadow)return;let t=this.shadow,n=this.canvas,i=this.getCanvasRetinaScaling(),[s,,,o]=n?.viewportTransform||ni,a=s*i,u=o*i,c=t.nonScaling?new oe(1,1):this.getObjectScaling();e.shadowColor=t.color,e.shadowBlur=t.blur*Tt.browserShadowBlurConstant*(a+u)*(c.x+c.y)/4,e.shadowOffsetX=t.offsetX*a*c.x,e.shadowOffsetY=t.offsetY*u*c.y}_removeShadow(e){this.shadow&&(e.shadowColor="",e.shadowBlur=e.shadowOffsetX=e.shadowOffsetY=0)}_applyPatternGradientTransform(e,t){if(!Hi(t))return{offsetX:0,offsetY:0};let n=t.gradientTransform||t.patternTransform,i=-this.width/2+t.offsetX||0,s=-this.height/2+t.offsetY||0;return t.gradientUnits==="percentage"?e.transform(this.width,0,0,this.height,i,s):e.transform(1,0,0,1,i,s),n&&e.transform(n[0],n[1],n[2],n[3],n[4],n[5]),{offsetX:i,offsetY:s}}_renderPaintInOrder(e){this.paintFirst==="stroke"?(this._renderStroke(e),this._renderFill(e)):(this._renderFill(e),this._renderStroke(e))}_render(e){}_renderFill(e){this.fill&&(e.save(),this._setFillStyles(e,this),this.fillRule==="evenodd"?e.fill("evenodd"):e.fill(),e.restore())}_renderStroke(e){if(this.stroke&&this.strokeWidth!==0){if(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(e),e.save(),this.strokeUniform){let t=this.getObjectScaling();e.scale(1/t.x,1/t.y)}this._setLineDash(e,this.strokeDashArray),this._setStrokeStyles(e,this),e.stroke(),e.restore()}}_applyPatternForTransformedGradient(e,t){var n;let i=this._limitCacheSize(this._getCacheCanvasDimensions()),s=pn(),o=this.getCanvasRetinaScaling(),a=i.x/this.scaleX/o,u=i.y/this.scaleY/o;s.width=Math.ceil(a),s.height=Math.ceil(u);let c=s.getContext("2d");c&&(c.beginPath(),c.moveTo(0,0),c.lineTo(a,0),c.lineTo(a,u),c.lineTo(0,u),c.closePath(),c.translate(a/2,u/2),c.scale(i.zoomX/this.scaleX/o,i.zoomY/this.scaleY/o),this._applyPatternGradientTransform(c,t),c.fillStyle=t.toLive(e),c.fill(),e.translate(-this.width/2-this.strokeWidth/2,-this.height/2-this.strokeWidth/2),e.scale(o*this.scaleX/i.zoomX,o*this.scaleY/i.zoomY),e.strokeStyle=(n=c.createPattern(s,"no-repeat"))!==null&&n!==void 0?n:"")}_findCenterFromElement(){return new oe(this.left+this.width/2,this.top+this.height/2)}clone(e){let t=this.toObject(e);return this.constructor.fromObject(t)}cloneAsImage(e){let t=this.toCanvasElement(e);return new(Ge.getClass("image"))(t)}toCanvasElement(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Yp(this),n=this.group,i=this.shadow,s=Math.abs,o=e.enableRetinaScaling?r5():1,a=(e.multiplier||1)*o,u=e.canvasProvider||(C=>new Z0(C,{enableRetinaScaling:!1,renderOnAddRemove:!1,skipOffscreen:!1}));delete this.group,e.withoutTransform&&C5(this),e.withoutShadow&&(this.shadow=null),e.viewportTransform&&pp(this,this.getViewportTransform()),this.setCoords();let c=pn(),f=this.getBoundingRect(),l=this.shadow,h=new oe;if(l){let C=l.blur,g=l.nonScaling?new oe(1,1):this.getObjectScaling();h.x=2*Math.round(s(l.offsetX)+C)*s(g.x),h.y=2*Math.round(s(l.offsetY)+C)*s(g.y)}let d=f.width+h.x,x=f.height+h.y;c.width=Math.ceil(d),c.height=Math.ceil(x);let m=u(c);e.format==="jpeg"&&(m.backgroundColor="#fff"),this.setPositionByOrigin(new oe(m.width/2,m.height/2),vt,vt);let D=this.canvas;m._objects=[this],this.set("canvas",m),this.setCoords();let p=m.toCanvasElement(a||1,e);return this.set("canvas",D),this.shadow=i,n&&(this.group=n),this.set(t),this.setCoords(),m._objects=[],m.destroy(),p}toDataURL(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return jp(this.toCanvasElement(e),e.format||"png",e.quality||1)}isType(){for(var e=arguments.length,t=new Array(e),n=0;n1&&arguments[1]!==void 0?arguments[1]:{},{extraParam:i}=n,s=Wt(n,s7);return tc(ic(t),s).then(o=>{let a=j(j({},s),o);if(i){let{[i]:u}=a;return new this(u,Wt(a,[i].map(i5)))}return new this(a)})}static fromObject(e,t){return this._fromObject(e,t)}};W(Do,"stateProperties",n7),W(Do,"cacheProperties",Jr),W(Do,"ownDefaults",i7),W(Do,"type","FabricObject"),Ge.setClass(Do),Ge.setClass(Do,"object");var Ns=(r,e)=>(t,n,i,s)=>{let o=e(t,n,i,s);return o&&E5(r,_5(t,n,i,s)),o};function Bo(r){return(e,t,n,i)=>{let{target:s,originX:o,originY:a}=t,u=s.getRelativeCenterPoint(),c=s.translateToOriginPoint(u,o,a),f=r(e,t,n,i);return s.setPositionByOrigin(c,t.originX,t.originY),f}}var yp=Ns("resizing",Bo((r,e,t,n)=>{let i=f1(e,e.originX,e.originY,t,n);if(e.originX===vt||e.originX===Dn&&i.x<0||e.originX===It&&i.x>0){let{target:s}=e,o=s.strokeWidth/(s.strokeUniform?s.scaleX:1),a=F5(e)?2:1,u=s.width,c=Math.ceil(Math.abs(i.x*a/s.scaleX)-o);return s.set("width",Math.max(c,0)),u!==s.width}return!1}));function T5(r,e,t,n,i){n=n||{};let s=this.sizeX||n.cornerSize||i.cornerSize,o=this.sizeY||n.cornerSize||i.cornerSize,a=n.transparentCorners!==void 0?n.transparentCorners:i.transparentCorners,u=a?"stroke":"fill",c=!a&&(n.cornerStrokeColor||i.cornerStrokeColor),f,l=e,h=t;r.save(),r.fillStyle=n.cornerColor||i.cornerColor||"",r.strokeStyle=n.cornerStrokeColor||i.cornerStrokeColor||"",s>o?(f=s,r.scale(1,o/s),h=t*s/o):o>s?(f=o,r.scale(s/o,1),l=e*o/s):f=s,r.lineWidth=1,r.beginPath(),r.arc(l,h,f/2,0,Kr,!1),r[u](),c&&r.stroke(),r.restore()}function k5(r,e,t,n,i){n=n||{};let s=this.sizeX||n.cornerSize||i.cornerSize,o=this.sizeY||n.cornerSize||i.cornerSize,a=n.transparentCorners!==void 0?n.transparentCorners:i.transparentCorners,u=a?"stroke":"fill",c=!a&&(n.cornerStrokeColor||i.cornerStrokeColor),f=s/2,l=o/2;r.save(),r.fillStyle=n.cornerColor||i.cornerColor||"",r.strokeStyle=n.cornerStrokeColor||i.cornerStrokeColor||"",r.lineWidth=1,r.translate(e,t);let h=i.getTotalAngle();r.rotate(fn(h)),r["".concat(u,"Rect")](-f,-l,s,o),c&&r.strokeRect(-f,-l,s,o),r.restore()}var ui=class{constructor(e){W(this,"visible",!0),W(this,"actionName","scale"),W(this,"angle",0),W(this,"x",0),W(this,"y",0),W(this,"offsetX",0),W(this,"offsetY",0),W(this,"sizeX",0),W(this,"sizeY",0),W(this,"touchSizeX",0),W(this,"touchSizeY",0),W(this,"cursorStyle","crosshair"),W(this,"withConnection",!1),Object.assign(this,e)}shouldActivate(e,t,n,i){var s;let{tl:o,tr:a,br:u,bl:c}=i;return((s=t.canvas)===null||s===void 0?void 0:s.getActiveObject())===t&&t.isControlVisible(e)&&Eo.isPointInPolygon(n,[o,a,u,c])}getActionHandler(e,t,n){return this.actionHandler}getMouseDownHandler(e,t,n){return this.mouseDownHandler}getMouseUpHandler(e,t,n){return this.mouseUpHandler}cursorStyleHandler(e,t,n){return t.cursorStyle}getActionName(e,t,n){return t.actionName}getVisibility(e,t){var n,i;return(n=(i=e._controlsVisibility)===null||i===void 0?void 0:i[t])!==null&&n!==void 0?n:this.visible}setVisibility(e,t,n){this.visible=e}positionHandler(e,t,n,i){return new oe(this.x*e.x+this.offsetX,this.y*e.y+this.offsetY).transform(t)}calcCornerCoords(e,t,n,i,s,o){let a=xu([mu(n,i),Cu({angle:e}),u1((s?this.touchSizeX:this.sizeX)||t,(s?this.touchSizeY:this.sizeY)||t)]);return{tl:new oe(-.5,-.5).transform(a),tr:new oe(.5,-.5).transform(a),bl:new oe(-.5,.5).transform(a),br:new oe(.5,.5).transform(a)}}render(e,t,n,i,s){((i=i||{}).cornerStyle||s.cornerStyle)==="circle"?T5.call(this,e,t,n,i,s):k5.call(this,e,t,n,i,s)}},P5=(r,e,t)=>t.lockRotation?Hl:e.cursorStyle,I5=Ns("rotating",Bo((r,e,t,n)=>{let{target:i,ex:s,ey:o,theta:a,originX:u,originY:c}=e,f=i.translateToOriginPoint(i.getRelativeCenterPoint(),u,c);if(ir(i,"lockRotation"))return!1;let l=Math.atan2(o-f.y,s-f.x),h=Math.atan2(n-f.y,t-f.x),d=_o(h-l+a);if(i.snapAngle&&i.snapAngle>0){let m=i.snapAngle,D=i.snapThreshold||m,p=Math.ceil(d/m)*m,C=Math.floor(d/m)*m;Math.abs(d-C){let n=R5(r,t);if(O5(t,e.x!==0&&e.y===0?"x":e.x===0&&e.y!==0?"y":"",n))return Hl;let i=v5(t,e);return"".concat(o7[i],"-resize")};function Jp(r,e,t,n){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},s=e.target,o=i.by,a=R5(r,s),u,c,f,l,h,d;if(O5(s,o,a))return!1;if(e.gestureScale)c=e.scaleX*e.gestureScale,f=e.scaleY*e.gestureScale;else{if(u=f1(e,e.originX,e.originY,t,n),h=o!=="y"?Math.sign(u.x||e.signX||1):1,d=o!=="x"?Math.sign(u.y||e.signY||1):1,e.signX||(e.signX=h),e.signY||(e.signY=d),ir(s,"lockScalingFlip")&&(e.signX!==h||e.signY!==d))return!1;if(l=s._getTransformedDimensions(),a&&!o){let D=Math.abs(u.x)+Math.abs(u.y),{original:p}=e,C=D/(Math.abs(l.x*p.scaleX/s.scaleX)+Math.abs(l.y*p.scaleY/s.scaleY));c=p.scaleX*C,f=p.scaleY*C}else c=Math.abs(u.x*s.scaleX/l.x),f=Math.abs(u.y*s.scaleY/l.y);F5(e)&&(c*=2,f*=2),e.signX!==h&&o!=="y"&&(e.originX=Rg(e.originX),c*=-1,e.signX=h),e.signY!==d&&o!=="x"&&(e.originY=Rg(e.originY),f*=-1,e.signY=d)}let x=s.scaleX,m=s.scaleY;return o?(o==="x"&&s.set("scaleX",c),o==="y"&&s.set("scaleY",f)):(!ir(s,"lockScalingX")&&s.set("scaleX",c),!ir(s,"lockScalingY")&&s.set("scaleY",f)),x!==s.scaleX||m!==s.scaleY}var U0=Ns("scaling",Bo((r,e,t,n)=>Jp(r,e,t,n))),L5=Ns("scaling",Bo((r,e,t,n)=>Jp(r,e,t,n,{by:"x"}))),N5=Ns("scaling",Bo((r,e,t,n)=>Jp(r,e,t,n,{by:"y"}))),a7=["target","ex","ey","skewingSide"],np={x:{counterAxis:"y",scale:"scaleX",skew:"skewX",lockSkewing:"lockSkewingX",origin:"originX",flip:"flipX"},y:{counterAxis:"x",scale:"scaleY",skew:"skewY",lockSkewing:"lockSkewingY",origin:"originY",flip:"flipY"}},u7=["ns","nesw","ew","nwse"],U5=(r,e,t)=>{if(e.x!==0&&ir(t,"lockSkewingY")||e.y!==0&&ir(t,"lockSkewingX"))return Hl;let n=v5(t,e)%4;return"".concat(u7[n],"-resize")};function V5(r,e,t,n,i){let{target:s}=t,{counterAxis:o,origin:a,lockSkewing:u,skew:c,flip:f}=np[r];if(ir(s,u))return!1;let{origin:l,flip:h}=np[o],d=Ms(t[l])*(s[h]?-1:1),x=-Math.sign(d)*(s[f]?-1:1),m=.5*-((s[c]===0&&f1(t,vt,vt,n,i)[r]>0||s[c]>0?1:-1)*x)+.5;return Ns("skewing",Bo((p,C,g,E)=>function(y,v,b){let{target:B,ex:F,ey:_,skewingSide:M}=v,R=Wt(v,a7),{skew:P}=np[y],H=b.subtract(new oe(F,_)).divide(new oe(B.scaleX,B.scaleY))[y],G=B[P],ie=R[P],ce=Math.tan(fn(ie)),Y=y==="y"?B._getTransformedDimensions({scaleX:1,scaleY:1,skewX:0}).x:B._getTransformedDimensions({scaleX:1,scaleY:1}).y,J=2*H*M/Math.max(Y,1)+ce,De=_o(Math.atan(J));B.set(P,De);let be=G!==B[P];if(be&&y==="y"){let{skewX:Ae,scaleX:at}=B,ee=B._getTransformedDimensions({skewY:G}),V=B._getTransformedDimensions(),X=Ae!==0?ee.x/V.x:1;X!==1&&B.set("scaleX",X*at)}return be}(r,C,new oe(g,E))))(e,j(j({},t),{},{[a]:m,skewingSide:x}),n,i)}var z5=(r,e,t,n)=>V5("x",r,e,t,n),H5=(r,e,t,n)=>V5("y",r,e,t,n);function d1(r,e){return r[e.canvas.altActionKey]}var V0=(r,e,t)=>{let n=d1(r,t);return e.x===0?n?"skewX":"scaleY":e.y===0?n?"skewY":"scaleX":""},mo=(r,e,t)=>d1(r,t)?U5(0,e,t):Ha(r,e,t),bp=(r,e,t,n)=>d1(r,e.target)?H5(r,e,t,n):L5(r,e,t,n),Bp=(r,e,t,n)=>d1(r,e.target)?z5(r,e,t,n):N5(r,e,t,n),Qp=()=>({ml:new ui({x:-.5,y:0,cursorStyleHandler:mo,actionHandler:bp,getActionName:V0}),mr:new ui({x:.5,y:0,cursorStyleHandler:mo,actionHandler:bp,getActionName:V0}),mb:new ui({x:0,y:.5,cursorStyleHandler:mo,actionHandler:Bp,getActionName:V0}),mt:new ui({x:0,y:-.5,cursorStyleHandler:mo,actionHandler:Bp,getActionName:V0}),tl:new ui({x:-.5,y:-.5,cursorStyleHandler:Ha,actionHandler:U0}),tr:new ui({x:.5,y:-.5,cursorStyleHandler:Ha,actionHandler:U0}),bl:new ui({x:-.5,y:.5,cursorStyleHandler:Ha,actionHandler:U0}),br:new ui({x:.5,y:.5,cursorStyleHandler:Ha,actionHandler:U0}),mtr:new ui({x:0,y:-.5,actionHandler:I5,cursorStyleHandler:P5,offsetY:-40,withConnection:!0,actionName:"rotate"})}),G5=()=>({mr:new ui({x:.5,y:0,actionHandler:yp,cursorStyleHandler:mo,actionName:"resizing"}),ml:new ui({x:-.5,y:0,actionHandler:yp,cursorStyleHandler:mo,actionName:"resizing"})}),j5=()=>j(j({},Qp()),G5()),Yl=class r extends Do{static getDefaults(){return j(j({},super.getDefaults()),{},{controls:Qp()},r.ownDefaults)}_updateCacheCanvas(){let e=this.canvas;if(this.noScaleCache&&e&&e._currentTransform){let t=e._currentTransform,n=t.target,i=t.action;if(this===n&&i&&i.startsWith("scale"))return!1}return super._updateCacheCanvas()}getActiveControl(){let e=this.__corner;return e?{key:e,control:this.controls[e],coord:this.oCoords[e]}:void 0}findControl(e){let t=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(!this.hasControls||!this.canvas)return;this.__corner=void 0;let n=Object.entries(this.oCoords);for(let i=n.length-1;i>=0;i--){let[s,o]=n[i],a=this.controls[s];if(a.shouldActivate(s,this,e,t?o.touchCorner:o.corner))return this.__corner=s,{key:s,control:a,coord:this.oCoords[s]}}}calcOCoords(){let e=this.getViewportTransform(),t=this.getCenterPoint(),n=mu(t.x,t.y),i=Cu({angle:this.getTotalAngle()-(this.group&&this.flipX?180:0)}),s=Rn(n,i),o=Rn(e,s),a=Rn(o,[1/e[0],0,0,1/e[3],0,0]),u=this.group?lu(this.calcTransformMatrix()):void 0,c=this._calculateCurrentDimensions(u),f={};return this.forEachControl((l,h)=>{let d=l.positionHandler(c,a,this,l);f[h]=Object.assign(d,this._calcCornerCoords(l,d))}),f}_calcCornerCoords(e,t){let n=this.getTotalAngle();return{corner:e.calcCornerCoords(n,this.cornerSize,t.x,t.y,!1,this),touchCorner:e.calcCornerCoords(n,this.touchCornerSize,t.x,t.y,!0,this)}}setCoords(){super.setCoords(),this.canvas&&(this.oCoords=this.calcOCoords())}forEachControl(e){for(let t in this.controls)e(this.controls[t],t,this)}drawSelectionBackground(e){if(!this.selectionBackgroundColor||this.canvas&&this.canvas._activeObject!==this)return;e.save();let t=this.getRelativeCenterPoint(),n=this._calculateCurrentDimensions(),i=this.getViewportTransform();e.translate(t.x,t.y),e.scale(1/i[0],1/i[3]),e.rotate(fn(this.angle)),e.fillStyle=this.selectionBackgroundColor,e.fillRect(-n.x/2,-n.y/2,n.x,n.y),e.restore()}strokeBorders(e,t){e.strokeRect(-t.x/2,-t.y/2,t.x,t.y)}_drawBorders(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=j({hasControls:this.hasControls,borderColor:this.borderColor,borderDashArray:this.borderDashArray},n);e.save(),e.strokeStyle=i.borderColor,this._setLineDash(e,i.borderDashArray),this.strokeBorders(e,t),i.hasControls&&this.drawControlsConnectingLines(e,t),e.restore()}_renderControls(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{hasBorders:n,hasControls:i}=this,s=j({hasBorders:n,hasControls:i},t),o=this.getViewportTransform(),a=s.hasBorders,u=s.hasControls,c=Rn(o,this.calcTransformMatrix()),f=lu(c);e.save(),e.translate(f.translateX,f.translateY),e.lineWidth=1*this.borderScaleFactor,this.group===this.parent&&(e.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1),this.flipX&&(f.angle-=180),e.rotate(fn(this.group?f.angle:this.angle)),a&&this.drawBorders(e,f,t),u&&this.drawControls(e,t),e.restore()}drawBorders(e,t,n){let i;if(n&&n.forActiveSelection||this.group){let s=c1(this.width,this.height,ec(t)),o=this.isStrokeAccountedForInDimensions()?Gp:(this.strokeUniform?new oe().scalarAdd(this.canvas?this.canvas.getZoom():1):new oe(t.scaleX,t.scaleY)).scalarMultiply(this.strokeWidth);i=s.add(o).scalarAdd(this.borderScaleFactor).scalarAdd(2*this.padding)}else i=this._calculateCurrentDimensions().scalarAdd(this.borderScaleFactor);this._drawBorders(e,i,n)}drawControlsConnectingLines(e,t){let n=!1;e.beginPath(),this.forEachControl((i,s)=>{i.withConnection&&i.getVisibility(this,s)&&(n=!0,e.moveTo(i.x*t.x,i.y*t.y),e.lineTo(i.x*t.x+i.offsetX,i.y*t.y+i.offsetY))}),n&&e.stroke()}drawControls(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};e.save();let n=this.getCanvasRetinaScaling(),{cornerStrokeColor:i,cornerDashArray:s,cornerColor:o}=this,a=j({cornerStrokeColor:i,cornerDashArray:s,cornerColor:o},t);e.setTransform(n,0,0,n,0,0),e.strokeStyle=e.fillStyle=a.cornerColor,this.transparentCorners||(e.strokeStyle=a.cornerStrokeColor),this._setLineDash(e,a.cornerDashArray),this.setCoords(),this.forEachControl((u,c)=>{if(u.getVisibility(this,c)){let f=this.oCoords[c];u.render(e,f.x,f.y,a,this)}}),e.restore()}isControlVisible(e){return this.controls[e]&&this.controls[e].getVisibility(this,e)}setControlVisible(e,t){this._controlsVisibility||(this._controlsVisibility={}),this._controlsVisibility[e]=t}setControlsVisibility(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Object.entries(e).forEach(t=>{let[n,i]=t;return this.setControlVisible(n,i)})}clearContextTop(e){if(!this.canvas)return;let t=this.canvas.contextTop;if(!t)return;let n=this.canvas.viewportTransform;t.save(),t.transform(n[0],n[1],n[2],n[3],n[4],n[5]),this.transform(t);let i=this.width+4,s=this.height+4;return t.clearRect(-i/2,-s/2,i,s),e||t.restore(),t}onDeselect(e){return!1}onSelect(e){return!1}shouldStartDragging(){return!1}onDragStart(e){return!1}canDrop(e){return!1}renderDragSourceEffect(e){}renderDropTargetEffect(e){}};function W5(r,e){return e.forEach(t=>{Object.getOwnPropertyNames(t.prototype).forEach(n=>{n!=="constructor"&&Object.defineProperty(r.prototype,n,Object.getOwnPropertyDescriptor(t.prototype,n)||Object.create(null))})}),r}W(Yl,"ownDefaults",{noScaleCache:!0,lockMovementX:!1,lockMovementY:!1,lockRotation:!1,lockScalingX:!1,lockScalingY:!1,lockSkewingX:!1,lockSkewingY:!1,lockScalingFlip:!1,cornerSize:13,touchCornerSize:24,transparentCorners:!0,cornerColor:"rgb(178,204,255)",cornerStrokeColor:"",cornerStyle:"rect",cornerDashArray:null,hasControls:!0,borderColor:"rgb(178,204,255)",borderDashArray:null,borderOpacityWhenMoving:.4,borderScaleFactor:1,hasBorders:!0,selectionBackgroundColor:"",selectable:!0,evented:!0,perPixelTargetFind:!1,activeOn:"down",hoverCursor:null,moveCursor:null});var Tn=class extends Yl{};W5(Tn,[Gl]),Ge.setClass(Tn),Ge.setClass(Tn,"object");var X5=(r,e,t,n)=>{let i=2*(n=Math.round(n))+1,{data:s}=r.getImageData(e-n,t-n,i,i);for(let o=3;o0)return!1;return!0},$l=class{constructor(e){this.options=e,this.strokeProjectionMagnitude=this.options.strokeWidth/2,this.scale=new oe(this.options.scaleX,this.options.scaleY),this.strokeUniformScalar=this.options.strokeUniform?new oe(1/this.options.scaleX,1/this.options.scaleY):new oe(1,1)}createSideVector(e,t){let n=jl(e,t);return this.options.strokeUniform?n.multiply(this.scale):n}projectOrthogonally(e,t,n){return this.applySkew(e.add(this.calcOrthogonalProjection(e,t,n)))}isSkewed(){return this.options.skewX!==0||this.options.skewY!==0}applySkew(e){let t=new oe(e);return t.y+=t.x*Math.tan(fn(this.options.skewY)),t.x+=t.y*Math.tan(fn(this.options.skewX)),t}scaleUnitVector(e,t){return e.multiply(this.strokeUniformScalar).scalarMultiply(t)}},c7=new oe,Zl=class r extends $l{static getOrthogonalRotationFactor(e,t){let n=t?Xl(e,t):w5(e);return Math.abs(n)2&&arguments[2]!==void 0?arguments[2]:this.strokeProjectionMagnitude,i=this.createSideVector(e,t),s=Kp(i),o=r.getOrthogonalRotationFactor(s,this.bisector);return this.scaleUnitVector(s,n*o)}projectBevel(){let e=[];return(this.alpha%Kr==0?[this.B]:[this.B,this.C]).forEach(t=>{e.push(this.projectOrthogonally(this.A,t)),e.push(this.projectOrthogonally(this.A,t,-this.strokeProjectionMagnitude))}),e}projectMiter(){let e=[],t=Math.abs(this.alpha),n=1/Math.sin(t/2),i=this.scaleUnitVector(this.bisector,-this.strokeProjectionMagnitude*n),s=this.options.strokeUniform?Wl(this.scaleUnitVector(this.bisector,this.options.strokeMiterLimit)):this.options.strokeMiterLimit;return Wl(i)/this.strokeProjectionMagnitude<=s&&e.push(this.applySkew(this.A.add(i))),e.push(...this.projectBevel()),e}projectRoundNoSkew(e,t){let n=[],i=new oe(r.getOrthogonalRotationFactor(this.bisector),r.getOrthogonalRotationFactor(new oe(this.bisector.y,this.bisector.x)));return[new oe(1,0).scalarMultiply(this.strokeProjectionMagnitude).multiply(this.strokeUniformScalar).multiply(i),new oe(0,1).scalarMultiply(this.strokeProjectionMagnitude).multiply(this.strokeUniformScalar).multiply(i)].forEach(s=>{Ep(s,e,t)&&n.push(this.A.add(s))}),n}projectRoundWithSkew(e,t){let n=[],{skewX:i,skewY:s,scaleX:o,scaleY:a,strokeUniform:u}=this.options,c=new oe(Math.tan(fn(i)),Math.tan(fn(s))),f=this.strokeProjectionMagnitude,l=u?f/a/Math.sqrt(1/a**2+1/o**2*c.y**2):f/Math.sqrt(1+c.y**2),h=new oe(Math.sqrt(Math.max(f**2-l**2,0)),l),d=u?f/Math.sqrt(1+c.x**2*(1/a)**2/(1/o+1/o*c.x*c.y)**2):f/Math.sqrt(1+c.x**2/(1+c.x*c.y)**2),x=new oe(d,Math.sqrt(Math.max(f**2-d**2,0)));return[x,x.scalarMultiply(-1),h,h.scalarMultiply(-1)].map(m=>this.applySkew(u?m.multiply(this.strokeUniformScalar):m)).forEach(m=>{Ep(m,e,t)&&n.push(this.applySkew(this.A).add(m))}),n}projectRound(){let e=[];e.push(...this.projectBevel());let t=this.alpha%Kr==0,n=this.applySkew(this.A),i=e[t?0:2].subtract(n),s=e[t?1:0].subtract(n),o=t?this.applySkew(this.AB.scalarMultiply(-1)):this.applySkew(this.bisector.multiply(this.strokeUniformScalar).scalarMultiply(-1)),a=Ya(i,o)>0,u=a?i:s,c=a?s:i;return this.isSkewed()?e.push(...this.projectRoundWithSkew(u,c)):e.push(...this.projectRoundNoSkew(u,c)),e}projectPoints(){switch(this.options.strokeLineJoin){case"miter":return this.projectMiter();case"round":return this.projectRound();default:return this.projectBevel()}}project(){return this.projectPoints().map(e=>({originPoint:this.A,projectedPoint:e,angle:this.alpha,bisector:this.bisector}))}},Kl=class extends $l{constructor(e,t,n){super(n),this.A=new oe(e),this.T=new oe(t)}calcOrthogonalProjection(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.strokeProjectionMagnitude,i=this.createSideVector(e,t);return this.scaleUnitVector(Kp(i),n)}projectButt(){return[this.projectOrthogonally(this.A,this.T,this.strokeProjectionMagnitude),this.projectOrthogonally(this.A,this.T,-this.strokeProjectionMagnitude)]}projectRound(){let e=[];if(!this.isSkewed()&&this.A.eq(this.T)){let t=new oe(1,1).scalarMultiply(this.strokeProjectionMagnitude).multiply(this.strokeUniformScalar);e.push(this.applySkew(this.A.add(t)),this.applySkew(this.A.subtract(t)))}else e.push(...new Zl(this.A,this.T,this.T,this.options).projectRound());return e}projectSquare(){let e=[];if(this.A.eq(this.T)){let t=new oe(1,1).scalarMultiply(this.strokeProjectionMagnitude).multiply(this.strokeUniformScalar);e.push(this.A.add(t),this.A.subtract(t))}else{let t=this.calcOrthogonalProjection(this.A,this.T,this.strokeProjectionMagnitude),n=this.scaleUnitVector(l1(this.createSideVector(this.A,this.T)),-this.strokeProjectionMagnitude),i=this.A.add(n);e.push(i.add(t),i.subtract(t))}return e.map(t=>this.applySkew(t))}projectPoints(){switch(this.options.strokeLineCap){case"round":return this.projectRound();case"square":return this.projectSquare();default:return this.projectButt()}}project(){return this.projectPoints().map(e=>({originPoint:this.A,projectedPoint:e}))}},q5=function(r,e){let t=arguments.length>2&&arguments[2]!==void 0&&arguments[2],n=[];if(r.length===0)return n;let i=r.reduce((s,o)=>(s[s.length-1].eq(o)||s.push(new oe(o)),s),[new oe(r[0])]);if(i.length===1)t=!0;else if(!t){let s=i[0],o=((a,u)=>{for(let c=a.length-1;c>=0;c--)if(u(a[c],c,a))return c;return-1})(i,a=>!a.eq(s));i.splice(o+1)}return i.forEach((s,o,a)=>{let u,c;o===0?(c=a[1],u=t?s:a[a.length-1]):o===a.length-1?(u=a[o-1],c=t?s:a[0]):(u=a[o-1],c=a[o+1]),t&&a.length===1?n.push(...new Kl(s,s,e).project()):!t||o!==0&&o!==a.length-1?n.push(...new Zl(s,u,c,e).project()):n.push(...new Kl(s,o===0?c:u,e).project())}),n},Y5=r=>r.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">"),D1=r=>{let e=[];for(let t,n=0;n{let t=r.charCodeAt(e);if(isNaN(t))return"";if(t<55296||t>57343)return r.charAt(e);if(55296<=t&&t<=56319){if(r.length<=e+1)throw"High surrogate without following low surrogate";let i=r.charCodeAt(e+1);if(56320>i||i>57343)throw"High surrogate without following low surrogate";return r.charAt(e)+r.charAt(e+1)}if(e===0)throw"Low surrogate without preceding high surrogate";let n=r.charCodeAt(e-1);if(55296>n||n>56319)throw"Low surrogate without preceding high surrogate";return!1},l7=Object.freeze({__proto__:null,capitalize:function(r){let e=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return"".concat(r.charAt(0).toUpperCase()).concat(e?r.slice(1):r.slice(1).toLowerCase())},escapeXml:Y5,graphemeSplit:D1}),p1=function(r,e){let t=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return r.fill!==e.fill||r.stroke!==e.stroke||r.strokeWidth!==e.strokeWidth||r.fontSize!==e.fontSize||r.fontFamily!==e.fontFamily||r.fontWeight!==e.fontWeight||r.fontStyle!==e.fontStyle||r.textBackgroundColor!==e.textBackgroundColor||r.deltaY!==e.deltaY||t&&(r.overline!==e.overline||r.underline!==e.underline||r.linethrough!==e.linethrough)},$5=(r,e)=>{let t=e.split(` +`),n=[],i=-1,s={};r=ic(r);for(let o=0;o0&&(p1(s,c,!0)?n.push({start:i,end:i+1,style:c}):n[n.length-1].end++),s=c||{}}else i+=a.length,s={}}return n},Z5=(r,e)=>{if(!Array.isArray(r))return ic(r);let t=e.split(Hp),n={},i=-1,s=0;for(let o=0;o{var e;return(e=t7[r])!==null&&e!==void 0?e:r},K5=r=>r.replace(new RegExp("(".concat(vr,")"),"gi")," $1 ").replace(/,/gi," ").replace(/\s+/gi," "),Gg,jg,Wg,Xg,qg,Yg,$g,ti="(".concat(vr,")"),D7=String.raw(Gg||(Gg=Ar(["(skewX)(",")"],["(skewX)\\(","\\)"])),ti),p7=String.raw(jg||(jg=Ar(["(skewY)(",")"],["(skewY)\\(","\\)"])),ti),x7=String.raw(Wg||(Wg=Ar(["(rotate)(","(?: "," ",")?)"],["(rotate)\\(","(?: "," ",")?\\)"])),ti,ti,ti),m7=String.raw(Xg||(Xg=Ar(["(scale)(","(?: ",")?)"],["(scale)\\(","(?: ",")?\\)"])),ti,ti),C7=String.raw(qg||(qg=Ar(["(translate)(","(?: ",")?)"],["(translate)\\(","(?: ",")?\\)"])),ti,ti),g7=String.raw(Yg||(Yg=Ar(["(matrix)("," "," "," "," "," ",")"],["(matrix)\\("," "," "," "," "," ","\\)"])),ti,ti,ti,ti,ti,ti),e2="(?:".concat(g7,"|").concat(C7,"|").concat(x7,"|").concat(m7,"|").concat(D7,"|").concat(p7,")"),E7="(?:".concat(e2,"*)"),F7=String.raw($g||($g=Ar(["^s*(?:","?)s*$"],["^\\s*(?:","?)\\s*$"])),E7),_7=new RegExp(F7),v7=new RegExp(e2,"g");function Ap(r){let e=[];if(!(r=K5(r).replace(/\s*([()])\s*/gi,"$1"))||r&&!_7.test(r))return[...ni];for(let t of r.matchAll(v7)){let n=new RegExp(e2).exec(t[0]);if(!n)continue;let i=ni,s=n.filter(x=>!!x),[,o,...a]=s,[u,c,f,l,h,d]=a.map(x=>parseFloat(x));switch(o){case"translate":i=mu(u,c);break;case"rotate":i=Cu({angle:u},{x:c,y:f});break;case"scale":i=u1(u,c);break;case"skewX":i=Wp(u);break;case"skewY":i=Xp(u);break;case"matrix":i=[u,c,f,l,h,d]}e.push(i)}return xu(e)}function y7(r,e,t,n){let i=Array.isArray(e),s,o=e;if(r!=="fill"&&r!=="stroke"||e!==ci){if(r==="strokeUniform")return e==="non-scaling-stroke";if(r==="strokeDashArray")o=e===ci?null:e.replace(/,/g," ").split(/\s+/).map(parseFloat);else if(r==="transformMatrix")o=t&&t.transformMatrix?Rn(t.transformMatrix,Ap(e)):Ap(e);else if(r==="visible")o=e!==ci&&e!=="hidden",t&&t.visible===!1&&(o=!1);else if(r==="opacity")o=parseFloat(e),t&&t.opacity!==void 0&&(o*=t.opacity);else if(r==="textAnchor")o=e==="start"?It:e==="end"?Dn:vt;else if(r==="charSpacing")s=go(e,n)/n*1e3;else if(r==="paintFirst"){let a=e.indexOf("fill"),u=e.indexOf("stroke");o="fill",(a>-1&&u>-1&&u-1)&&(o="stroke")}else{if(r==="href"||r==="xlink:href"||r==="font")return e;if(r==="imageSmoothing")return e==="optimizeQuality";s=i?e.map(go):go(e,n)}}else o="";return!i&&isNaN(s)?o:s}function b7(r,e){let t=r.match(e7);if(!t)return;let n=t[1],i=t[3],s=t[4],o=t[5],a=t[6];n&&(e.fontStyle=n),i&&(e.fontWeight=isNaN(parseFloat(i))?i:parseFloat(i)),s&&(e.fontSize=go(s)),a&&(e.fontFamily=a),o&&(e.lineHeight=o==="normal"?1:o)}function B7(r){let e={},t=r.getAttribute("style");return t&&(typeof t=="string"?function(n,i){n.replace(/;\s*$/,"").split(";").forEach(s=>{let[o,a]=s.split(":");i[o.trim().toLowerCase()]=a.trim()})}(t,e):function(n,i){Object.entries(n).forEach(s=>{let[o,a]=s;a!==void 0&&(i[o.toLowerCase()]=a)})}(t,e)),e}var A7={stroke:"strokeOpacity",fill:"fillOpacity"};function Qr(r,e,t){if(!r)return{};let n,i={},s=zp;r.parentNode&&Vg.test(r.parentNode.nodeName)&&(i=Qr(r.parentElement,e,t),i.fontSize&&(n=s=go(i.fontSize)));let o=j(j(j({},e.reduce((c,f)=>{let l=r.getAttribute(f);return l&&(c[f]=l),c},{})),function(c){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l={};for(let h in f)h7(c,h.split(" "))&&(l=j(j({},l),f[h]));return l}(r,t)),B7(r));o[tp]&&r.setAttribute(tp,o[tp]),o[ep]&&(n=go(o[ep],s),o[ep]="".concat(n));let a={};for(let c in o){let f=d7(c),l=y7(f,o[c],i,n);a[f]=l}a&&a.font&&b7(a.font,a);let u=j(j({},i),a);return Vg.test(r.nodeName)?u:function(c){let f=Tn.getDefaults();return Object.entries(A7).forEach(l=>{let[h,d]=l;if(c[d]===void 0||c[h]==="")return;if(c[h]===void 0){if(!f[h])return;c[h]=f[h]}if(c[h].indexOf("url(")===0)return;let x=new ii(c[h]);c[h]=x.setAlpha(St(x.getAlpha()*c[d],2)).toRgba()}),c}(u)}var w7=["left","top","width","height","visible"],J5=["rx","ry"],Yr=class r extends Tn{static getDefaults(){return j(j({},super.getDefaults()),r.ownDefaults)}constructor(e){super(e),this._initRxRy()}_initRxRy(){let{rx:e,ry:t}=this;e&&!t?this.ry=e:t&&!e&&(this.rx=t)}_render(e){let{width:t,height:n}=this,i=-t/2,s=-n/2,o=this.rx?Math.min(this.rx,t/2):0,a=this.ry?Math.min(this.ry,n/2):0,u=o!==0||a!==0;e.beginPath(),e.moveTo(i+o,s),e.lineTo(i+t-o,s),u&&e.bezierCurveTo(i+t-Bs*o,s,i+t,s+Bs*a,i+t,s+a),e.lineTo(i+t,s+n-a),u&&e.bezierCurveTo(i+t,s+n-Bs*a,i+t-Bs*o,s+n,i+t-o,s+n),e.lineTo(i+o,s+n),u&&e.bezierCurveTo(i+Bs*o,s+n,i,s+n-Bs*a,i,s+n-a),e.lineTo(i,s+a),u&&e.bezierCurveTo(i,s+Bs*a,i+Bs*o,s,i+o,s),e.closePath(),this._renderPaintInOrder(e)}toObject(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return super.toObject([...J5,...e])}_toSVG(){let{width:e,height:t,rx:n,ry:i}=this;return[" +`)]}static fromElement(e,t,n){return $(this,null,function*(){let i=Qr(e,this.ATTRIBUTE_NAMES,n),{left:s=0,top:o=0,width:a=0,height:u=0,visible:c=!0}=i,f=Wt(i,w7);return new this(j(j(j({},t),f),{},{left:s,top:o,width:a,height:u,visible:!!(c&&a&&u)}))})}};W(Yr,"type","Rect"),W(Yr,"cacheProperties",[...Jr,...J5]),W(Yr,"ownDefaults",{rx:0,ry:0}),W(Yr,"ATTRIBUTE_NAMES",[...Us,"x","y","rx","ry","width","height"]),Ge.setClass(Yr),Ge.setSVGClass(Yr);var Zr="initialization",Jl="added",t2="removed",Ql="imperative",Q5=(r,e)=>{let{strokeUniform:t,strokeWidth:n,width:i,height:s,group:o}=e,a=o&&o!==r?nc(o.calcTransformMatrix(),r.calcTransformMatrix()):null,u=a?e.getRelativeCenterPoint().transform(a):e.getRelativeCenterPoint(),c=!e.isStrokeAccountedForInDimensions(),f=t&&c?g5(new oe(n,n),void 0,r.calcTransformMatrix()):Gp,l=!t&&c?n:0,h=c1(i+l,s+l,xu([a,e.calcOwnMatrix()],!0)).add(f).scalarDivide(2);return[u.subtract(h),u.add(h)]},Du=class{calcLayoutResult(e,t){if(this.shouldPerformLayout(e))return this.calcBoundingBox(t,e)}shouldPerformLayout(e){return e.type===Zr||e.type===Ql||!!e.prevStrategy&&e.strategy!==e.prevStrategy}shouldLayoutClipPath(e){let{type:t,target:{clipPath:n}}=e;return t!==Zr&&n&&!n.absolutePositioned}getInitialSize(e,t){return t.size}calcBoundingBox(e,t){if(t.type===Ql&&t.overrides)return t.overrides;if(e.length===0)return;let{target:n}=t,{left:i,top:s,width:o,height:a}=yr(e.map(f=>Q5(n,f)).reduce((f,l)=>f.concat(l),[])),u=new oe(o,a),c=new oe(i,s).add(u.scalarDivide(2));if(t.type===Zr){let f=this.getInitialSize(t,{size:u,center:c});return{center:c,relativeCorrection:new oe(0,0),size:f}}return{center:c.transform(n.calcOwnMatrix()),size:u}}};W(Du,"type","strategy");var J0=class extends Du{shouldPerformLayout(e){return!0}};W(J0,"type","fit-content"),Ge.setClass(J0);var S7=["strategy"],M7=["target","strategy","bubbles","prevStrategy"],e8="layoutManager",yo=class{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new J0;W(this,"strategy",void 0),this.strategy=e,this._subscriptions=new Map}performLayout(e){let t=j(j({bubbles:!0,strategy:this.strategy},e),{},{prevStrategy:this._prevLayoutStrategy,stopPropagation(){this.bubbles=!1}});this.onBeforeLayout(t);let n=this.getLayoutResult(t);n&&this.commitLayout(t,n),this.onAfterLayout(t,n),this._prevLayoutStrategy=t.strategy}attachHandlers(e,t){let{target:n}=t;return["modified","moving","resizing","rotating","scaling","skewing","changed","modifyPoly"].map(i=>e.on(i,s=>this.performLayout(i==="modified"?{type:"object_modified",trigger:i,e:s,target:n}:{type:"object_modifying",trigger:i,e:s,target:n})))}subscribe(e,t){this.unsubscribe(e,t);let n=this.attachHandlers(e,t);this._subscriptions.set(e,n)}unsubscribe(e,t){(this._subscriptions.get(e)||[]).forEach(n=>n()),this._subscriptions.delete(e)}unsubscribeTargets(e){e.targets.forEach(t=>this.unsubscribe(t,e))}subscribeTargets(e){e.targets.forEach(t=>this.subscribe(t,e))}onBeforeLayout(e){let{target:t,type:n}=e,{canvas:i}=t;if(n===Zr||n===Jl?this.subscribeTargets(e):n===t2&&this.unsubscribeTargets(e),t.fire("layout:before",{context:e}),i&&i.fire("object:layout:before",{target:t,context:e}),n===Ql&&e.deep){let s=Wt(e,S7);t.forEachObject(o=>o.layoutManager&&o.layoutManager.performLayout(j(j({},s),{},{bubbles:!1,target:o})))}}getLayoutResult(e){let{target:t}=e,n=e.strategy.calcLayoutResult(e,t.getObjects());if(!n)return;let i=e.type===Zr?new oe:t.getRelativeCenterPoint(),{center:s,correction:o=new oe,relativeCorrection:a=new oe}=n,u=i.subtract(s).add(o).transform(e.type===Zr?ni:_i(t.calcOwnMatrix()),!0).add(a);return{result:n,prevCenter:i,nextCenter:s,offset:u}}commitLayout(e,t){let{target:n}=e,{result:{size:i},nextCenter:s}=t;var o,a;n.set({width:i.x,height:i.y}),this.layoutObjects(e,t),e.type===Zr?n.set({left:(o=e.x)!==null&&o!==void 0?o:s.x+i.x*Ms(n.originX),top:(a=e.y)!==null&&a!==void 0?a:s.y+i.y*Ms(n.originY)}):(n.setPositionByOrigin(s,vt,vt),n.setCoords(),n.set("dirty",!0))}layoutObjects(e,t){let{target:n}=e;n.forEachObject(i=>{i.group===n&&this.layoutObject(e,t,i)}),e.strategy.shouldLayoutClipPath(e)&&this.layoutObject(e,t,n.clipPath)}layoutObject(e,t,n){let{offset:i}=t;n.set({left:n.left+i.x,top:n.top+i.y})}onAfterLayout(e,t){let{target:n,strategy:i,bubbles:s,prevStrategy:o}=e,a=Wt(e,M7),{canvas:u}=n;n.fire("layout:after",{context:e,result:t}),u&&u.fire("object:layout:after",{context:e,result:t,target:n});let c=n.parent;s&&c!=null&&c.layoutManager&&((a.path||(a.path=[])).push(n),c.layoutManager.performLayout(j(j({},a),{},{target:c}))),n.set("dirty",!0)}dispose(){this._subscriptions.forEach(e=>e.forEach(t=>t())),this._subscriptions.clear()}toObject(){return{type:e8,strategy:this.strategy.constructor.type}}toJSON(){return this.toObject()}};Ge.setClass(yo,e8);var T7=["type","objects","layoutManager"],wp=class extends yo{performLayout(){}},Ps=class r extends s5(Tn){static getDefaults(){return j(j({},super.getDefaults()),r.ownDefaults)}constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(t),W(this,"_activeObjects",[]),W(this,"__objectSelectionTracker",void 0),W(this,"__objectSelectionDisposer",void 0),this._objects=[...e],this.__objectSelectionTracker=this.__objectSelectionMonitor.bind(this,!0),this.__objectSelectionDisposer=this.__objectSelectionMonitor.bind(this,!1),this.forEachObject(n=>{this.enterGroup(n,!1)}),this.layoutManager=t.layoutManager||new yo,this.layoutManager.performLayout({type:Zr,target:this,targets:[...e],x:t.left,y:t.top})}canEnterGroup(e){return e===this||this.isDescendantOf(e)?(Rs("error","Group: circular object trees are not supported, this call has no effect"),!1):this._objects.indexOf(e)===-1||(Rs("error","Group: duplicate objects are not supported inside group, this call has no effect"),!1)}_filterObjectsBeforeEnteringGroup(e){return e.filter((t,n,i)=>this.canEnterGroup(t)&&i.indexOf(t)===n)}add(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),i=1;i{i._set(e,t)}),this}_shouldSetNestedCoords(){return this.subTargetCheck}removeAll(){return this._activeObjects=[],this.remove(...this._objects)}__objectSelectionMonitor(e,t){let{target:n}=t,i=this._activeObjects;if(e)i.push(n),this._set("dirty",!0);else if(i.length>0){let s=i.indexOf(n);s>-1&&(i.splice(s,1),this._set("dirty",!0))}}_watchObject(e,t){e&&this._watchObject(!1,t),e?(t.on("selected",this.__objectSelectionTracker),t.on("deselected",this.__objectSelectionDisposer)):(t.off("selected",this.__objectSelectionTracker),t.off("deselected",this.__objectSelectionDisposer))}enterGroup(e,t){e.group&&e.group.remove(e),e._set("parent",this),this._enterGroup(e,t)}_enterGroup(e,t){t&&du(e,Rn(_i(this.calcTransformMatrix()),e.calcTransformMatrix())),this._shouldSetNestedCoords()&&e.setCoords(),e._set("group",this),e._set("canvas",this.canvas),this._watchObject(!0,e);let n=this.canvas&&this.canvas.getActiveObject&&this.canvas.getActiveObject();n&&(n===e||e.isDescendantOf(n))&&this._activeObjects.push(e)}exitGroup(e,t){this._exitGroup(e,t),e._set("parent",void 0),e._set("canvas",void 0)}_exitGroup(e,t){e._set("group",void 0),t||(du(e,Rn(this.calcTransformMatrix(),e.calcTransformMatrix())),e.setCoords()),this._watchObject(!1,e);let n=this._activeObjects.length>0?this._activeObjects.indexOf(e):-1;n>-1&&this._activeObjects.splice(n,1)}shouldCache(){let e=Tn.prototype.shouldCache.call(this);if(e){for(let t=0;te.setCoords())}triggerLayout(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.layoutManager.performLayout(j({target:this,type:Ql},e))}render(e){this._transformDone=!0,super.render(e),this._transformDone=!1}__serializeObjects(e,t){let n=this.includeDefaultValues;return this._objects.filter(function(i){return!i.excludeFromExport}).map(function(i){let s=i.includeDefaultValues;i.includeDefaultValues=n;let o=i[e||"toObject"](t);return i.includeDefaultValues=s,o})}toObject(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=this.layoutManager.toObject();return j(j(j({},super.toObject(["subTargetCheck","interactive",...e])),t.strategy!=="fit-content"||this.includeDefaultValues?{layoutManager:t}:{}),{},{objects:this.__serializeObjects("toObject",e)})}toString(){return"#")}dispose(){this.layoutManager.unsubscribeTargets({targets:this.getObjects(),target:this}),this._activeObjects=[],this.forEachObject(e=>{this._watchObject(!1,e),e.dispose()}),super.dispose()}_createSVGBgRect(e){if(!this.backgroundColor)return"";let t=Yr.prototype._toSVG.call(this),n=t.indexOf("COMMON_PARTS");t[n]='for="group" ';let i=t.join("");return e?e(i):i}_toSVG(e){let t=[" +`],n=this._createSVGBgRect(e);n&&t.push(" ",n);for(let i=0;i +`),t}getSvgStyles(){let e=this.opacity!==void 0&&this.opacity!==1?"opacity: ".concat(this.opacity,";"):"",t=this.visible?"":" visibility: hidden;";return[e,this.getSvgFilter(),t].join("")}toClipPathSVG(e){let t=[],n=this._createSVGBgRect(e);n&&t.push(" ",n);for(let i=0;i{let[a,u]=o,c=new this(a,j(j(j({},s),u),{},{layoutManager:new wp}));if(i){let f=Ge.getClass(i.type),l=Ge.getClass(i.strategy);c.layoutManager=new f(new l)}else c.layoutManager=new yo;return c.layoutManager.subscribeTargets({type:Zr,target:c,targets:c.getObjects()}),c.setCoords(),c})}};W(Ps,"type","Group"),W(Ps,"ownDefaults",{strokeWidth:0,subTargetCheck:!1,interactive:!1}),Ge.setClass(Ps);var t8=(r,e)=>Math.min(e.width/r.width,e.height/r.height),n8=(r,e)=>Math.max(e.width/r.width,e.height/r.height),Zg,$t="(".concat(vr,")"),k7="(M) (?:".concat($t," ").concat($t," ?)+"),P7="(L) (?:".concat($t," ").concat($t," ?)+"),I7="(H) (?:".concat($t," ?)+"),R7="(V) (?:".concat($t," ?)+"),O7=String.raw(Zg||(Zg=Ar(["(Z)s*"],["(Z)\\s*"]))),L7="(C) (?:".concat($t," ").concat($t," ").concat($t," ").concat($t," ").concat($t," ").concat($t," ?)+"),N7="(S) (?:".concat($t," ").concat($t," ").concat($t," ").concat($t," ?)+"),U7="(Q) (?:".concat($t," ").concat($t," ").concat($t," ").concat($t," ?)+"),V7="(T) (?:".concat($t," ").concat($t," ?)+"),z7="(A) (?:".concat($t," ").concat($t," ").concat($t," ([01]) ?([01]) ").concat($t," ").concat($t," ?)+"),Kg="(?:(?:".concat(k7,")")+"|(?:".concat(P7,")")+"|(?:".concat(I7,")")+"|(?:".concat(R7,")")+"|(?:".concat(O7,")")+"|(?:".concat(L7,")")+"|(?:".concat(N7,")")+"|(?:".concat(U7,")")+"|(?:".concat(V7,")")+"|(?:".concat(z7,"))"),H7={m:"l",M:"L"},G7=(r,e,t,n,i,s,o,a,u,c,f)=>{let l=rr(r),h=sr(r),d=rr(e),x=sr(e),m=t*i*d-n*s*x+o,D=n*i*d+t*s*x+a;return["C",c+u*(-t*i*h-n*s*l),f+u*(-n*i*h+t*s*l),m+u*(t*i*x+n*s*d),D+u*(n*i*x-t*s*d),m,D]},Jg=(r,e,t,n)=>{let i=Math.atan2(e,r),s=Math.atan2(n,t);return s>=i?s-i:2*Math.PI-(i-s)};function Sp(r,e,t,n,i,s,o,a){let u;if(Tt.cachesBoundsOfCurve&&(u=[...arguments].join(),z0.boundsOfCurveCache[u]))return z0.boundsOfCurveCache[u];let c=Math.sqrt,f=Math.abs,l=[],h=[[0,0],[0,0]],d=6*r-12*t+6*i,x=-3*r+9*t-9*i+3*o,m=3*t-3*r;for(let E=0;E<2;++E){if(E>0&&(d=6*e-12*n+6*s,x=-3*e+9*n-9*s+3*a,m=3*n-3*e),f(x)<1e-12){if(f(d)<1e-12)continue;let F=-m/d;0{let[n,i,s,o,a,u,c,f]=t,l=((h,d,x,m,D,p,C)=>{if(x===0||m===0)return[];let g=0,E=0,y=0,v=Math.PI,b=C*Vp,B=sr(b),F=rr(b),_=.5*(-F*h-B*d),M=.5*(-F*d+B*h),R=x**2,P=m**2,H=M**2,G=_**2,ie=R*P-R*H-P*G,ce=Math.abs(x),Y=Math.abs(m);if(ie<0){let L=Math.sqrt(1-ie/(R*P));ce*=L,Y*=L}else y=(D===p?-1:1)*Math.sqrt(ie/(R*H+P*G));let J=y*ce*M/Y,De=-y*Y*_/ce,be=F*J-B*De+.5*h,Ae=B*J+F*De+.5*d,at=Jg(1,0,(_-J)/ce,(M-De)/Y),ee=Jg((_-J)/ce,(M-De)/Y,(-_-J)/ce,(-M-De)/Y);p===0&&ee>0?ee-=2*v:p===1&&ee<0&&(ee+=2*v);let V=Math.ceil(Math.abs(ee/v*2)),X=new Array(V),U=ee/V,re=8/3*Math.sin(U/4)*Math.sin(U/4)/Math.sin(U/2),Q=at+U;for(let L=0;L{let e=0,t=0,n=0,i=0,s=[],o,a=0,u=0;for(let c of r){let f=[...c],l;switch(f[0]){case"l":f[1]+=e,f[2]+=t;case"L":e=f[1],t=f[2],l=["L",e,t];break;case"h":f[1]+=e;case"H":e=f[1],l=["L",e,t];break;case"v":f[1]+=t;case"V":t=f[1],l=["L",e,t];break;case"m":f[1]+=e,f[2]+=t;case"M":e=f[1],t=f[2],n=f[1],i=f[2],l=["M",e,t];break;case"c":f[1]+=e,f[2]+=t,f[3]+=e,f[4]+=t,f[5]+=e,f[6]+=t;case"C":a=f[3],u=f[4],e=f[5],t=f[6],l=["C",f[1],f[2],a,u,e,t];break;case"s":f[1]+=e,f[2]+=t,f[3]+=e,f[4]+=t;case"S":o==="C"?(a=2*e-a,u=2*t-u):(a=e,u=t),e=f[3],t=f[4],l=["C",a,u,f[1],f[2],e,t],a=l[3],u=l[4];break;case"q":f[1]+=e,f[2]+=t,f[3]+=e,f[4]+=t;case"Q":a=f[1],u=f[2],e=f[3],t=f[4],l=["Q",a,u,e,t];break;case"t":f[1]+=e,f[2]+=t;case"T":o==="Q"?(a=2*e-a,u=2*t-u):(a=e,u=t),e=f[1],t=f[2],l=["Q",a,u,e,t];break;case"a":f[6]+=e,f[7]+=t;case"A":j7(e,t,f).forEach(h=>s.push(h)),e=f[6],t=f[7];break;case"z":case"Z":e=n,t=i,l=["Z"]}l?(s.push(l),o=l[0]):o=""}return s},e1=(r,e,t,n)=>Math.sqrt((t-r)**2+(n-e)**2),r8=(r,e,t,n,i,s,o,a)=>u=>{let c=u**3,f=(d=>3*d**2*(1-d))(u),l=(d=>3*d*(1-d)**2)(u),h=(d=>(1-d)**3)(u);return new oe(o*c+i*f+t*l+r*h,a*c+s*f+n*l+e*h)},s8=r=>r**2,o8=r=>2*r*(1-r),a8=r=>(1-r)**2,W7=(r,e,t,n,i,s,o,a)=>u=>{let c=s8(u),f=o8(u),l=a8(u),h=3*(l*(t-r)+f*(i-t)+c*(o-i)),d=3*(l*(n-e)+f*(s-n)+c*(a-s));return Math.atan2(d,h)},X7=(r,e,t,n,i,s)=>o=>{let a=s8(o),u=o8(o),c=a8(o);return new oe(i*a+t*u+r*c,s*a+n*u+e*c)},q7=(r,e,t,n,i,s)=>o=>{let a=1-o,u=2*(a*(t-r)+o*(i-t)),c=2*(a*(n-e)+o*(s-n));return Math.atan2(c,u)},Qg=(r,e,t)=>{let n=new oe(e,t),i=0;for(let s=1;s<=100;s+=1){let o=r(s/100);i+=e1(n.x,n.y,o.x,o.y),n=o}return i},Y7=(r,e)=>{let t,n=0,i=0,s={x:r.x,y:r.y},o=j({},s),a=.01,u=0,c=r.iterator,f=r.angleFinder;for(;i1e-4;)o=c(n),u=n,t=e1(s.x,s.y,o.x,o.y),t+i>e?(n-=a,a/=2):(s=o,n+=a,i+=t);return j(j({},o),{},{angle:f(u)})},n2=r=>{let e,t,n=0,i=0,s=0,o=0,a=0,u=[];for(let c of r){let f={x:i,y:s,command:c[0],length:0};switch(c[0]){case"M":t=f,t.x=o=i=c[1],t.y=a=s=c[2];break;case"L":t=f,t.length=e1(i,s,c[1],c[2]),i=c[1],s=c[2];break;case"C":e=r8(i,s,c[1],c[2],c[3],c[4],c[5],c[6]),t=f,t.iterator=e,t.angleFinder=W7(i,s,c[1],c[2],c[3],c[4],c[5],c[6]),t.length=Qg(e,i,s),i=c[5],s=c[6];break;case"Q":e=X7(i,s,c[1],c[2],c[3],c[4]),t=f,t.iterator=e,t.angleFinder=q7(i,s,c[1],c[2],c[3],c[4]),t.length=Qg(e,i,s),i=c[3],s=c[4];break;case"Z":t=f,t.destX=o,t.destY=a,t.length=e1(i,s,o,a),i=o,s=a}n+=t.length,u.push(t)}return u.push({length:n,x:i,y:s}),u},u8=function(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:n2(r),n=0;for(;e-t[n].length>0&&n{r=K5(r);let e=[];for(let t of r.matchAll(new RegExp(Kg,"gi"))){let n=t[0],i=[],s;do{if(s=new RegExp(Kg,"i").exec(n),!s)break;let o=s.filter(u=>u);o.shift();let a=o.map(u=>{let c=Number.parseFloat(u);return Number.isNaN(c)?u:c});if(i.push(a),o.length<=1)break;o.shift(),n=n.replace(new RegExp("".concat(o.join(" ?")," ?$")),"")}while(s);i.reverse().forEach((o,a)=>{let u=H7[o[0]];a>0&&(u=="l"||u=="L")&&(o[0]=u),e.push(o)})}return e},$7=function(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=new oe(r[0]),n=new oe(r[1]),i=1,s=0,o=[],a=r.length,u=a>2,c;for(u&&(i=r[2].xr[c-2].x?1:t.x===r[c-2].x?0:-1,s=t.y>r[c-2].y?1:t.y===r[c-2].y?0:-1),o.push(["L",t.x+i*e,t.y+s*e]),o},f8=(r,e)=>r.map(t=>t.map((n,i)=>i===0||e===void 0?n:St(n,e)).join(" ")).join(" ");function Z7(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=e.onComplete||Co,n=new(a1()).XMLHttpRequest,i=e.signal,s=function(){n.abort()},o=function(){i&&i.removeEventListener("abort",s),n.onerror=n.ontimeout=Co};if(i&&i.aborted)throw new Ll("request");return i&&i.addEventListener("abort",s,{once:!0}),n.onreadystatechange=function(){n.readyState===4&&(o(),t(n),n.onreadystatechange=Co)},n.onerror=n.ontimeout=o,n.open("get",r,!0),n.send(),n}var K7=(r,e)=>{let t=r._findCenterFromElement();r.transformMatrix&&((n=>{if(n.transformMatrix){let{scaleX:i,scaleY:s,angle:o,skewX:a}=lu(n.transformMatrix);n.flipX=!1,n.flipY=!1,n.set("scaleX",i),n.set("scaleY",s),n.angle=o,n.skewX=a,n.skewY=0}})(r),t=t.transform(r.transformMatrix)),delete r.transformMatrix,e&&(r.scaleX*=e.scaleX,r.scaleY*=e.scaleY,r.cropX=e.cropX,r.cropY=e.cropY,t.x+=e.offsetLeft,t.y+=e.offsetTop,r.width=e.width,r.height=e.height),r.setPositionByOrigin(t,vt,vt)},mV=Object.freeze({__proto__:null,addTransformToObject:m5,animate:$p,animateColor:B5,applyTransformToObject:du,calcAngleBetweenVectors:Xl,calcDimensionsMatrix:ec,calcPlaneChangeMatrix:nc,calcVectorRotation:w5,cancelAnimFrame:o5,capValue:vo,composeMatrix:f5,copyCanvasElement:r=>{var e;let t=pn();return t.width=r.width,t.height=r.height,(e=t.getContext("2d"))===null||e===void 0||e.drawImage(r,0,0),t},cos:rr,createCanvasElement:pn,createImage:a5,createRotateMatrix:Cu,createScaleMatrix:u1,createSkewXMatrix:Wp,createSkewYMatrix:Xp,createTranslateMatrix:mu,createVector:jl,crossProduct:Ya,degreesToRadians:fn,dotProduct:S5,ease:qS,enlivenObjectEnlivables:tc,enlivenObjects:hu,findScaleToCover:n8,findScaleToFit:t8,getBoundsOfCurve:Sp,getOrthonormalVector:Kp,getPathSegmentsInfo:n2,getPointOnPath:u8,getPointer:x5,getRandomInt:VS,getRegularPolygonPath:(r,e)=>{let t=2*Math.PI/r,n=-Os;r%2==0&&(n+=t/2);let i=new Array(r+1);for(let s=0;s{let e=["instantiated_by_use","style","id","class"];switch(r){case"linearGradient":return e.concat(["x1","y1","x2","y2","gradientUnits","gradientTransform"]);case"radialGradient":return e.concat(["gradientUnits","gradientTransform","cx","cy","r","fx","fy","fr"]);case"stop":return e.concat(["offset","stop-color","stop-opacity"])}return e},getUnitVector:l1,groupSVGElements:(r,e)=>r&&r.length===1?r[0]:new Ps(r,e),hasStyleChanged:p1,invertTransform:_i,isBetweenVectors:Ep,isIdentityMatrix:r=>r.every((e,t)=>e===ni[t]),isTouchEvent:zl,isTransparent:X5,joinPath:f8,loadImage:G0,magnitude:Wl,makeBoundingBoxFromPoints:yr,makePathSimpler:i8,matrixToSVG:Y0,mergeClipPaths:(r,e)=>{var t;let n=r,i=e;n.inverted&&!i.inverted&&(n=e,i=r),pp(i,(t=i.group)===null||t===void 0?void 0:t.calcTransformMatrix(),n.calcTransformMatrix());let s=n.inverted&&i.inverted;return s&&(n.inverted=i.inverted=!1),new Ps([n],{clipPath:i,inverted:s})},multiplyTransformMatrices:Rn,multiplyTransformMatrixArray:xu,parsePath:c8,parsePreserveAspectRatioAttribute:l5,parseUnit:go,pick:bo,projectStrokeOnPoints:q5,qrDecompose:lu,radiansToDegrees:_o,removeFromArray:po,removeTransformFromObject:(r,e)=>{let t=_i(e),n=Rn(t,r.calcOwnMatrix());du(r,n)},removeTransformMatrixForSvgParsing:K7,request:Z7,requestAnimFrame:H0,resetObjectTransform:C5,rotatePoint:(r,e,t)=>r.rotate(t,e),rotateVector:Zp,saveObjectTransform:Yp,sendObjectToPlane:pp,sendPointToPlane:ks,sendVectorToPlane:g5,setStyle:j0,sin:sr,sizeAfterTransform:c1,string:l7,stylesFromArray:Z5,stylesToArray:$5,toDataURL:jp,toFixed:St,transformPath:(r,e,t)=>(t&&(e=Rn(e,[1,0,0,1,-t.x,-t.y])),r.map(n=>{let i=[...n];for(let s=1;s1&&arguments[1]!==void 0?arguments[1]:{};super(e),W(this,"upper",void 0),W(this,"container",void 0);let{el:i}=this.lower,s=this.createUpperCanvas();this.upper={el:s,ctx:s.getContext("2d")},this.applyCanvasStyle(i,{allowTouchScrolling:t}),this.applyCanvasStyle(s,{allowTouchScrolling:t});let o=this.createContainerElement();o.classList.add(n),i.parentNode&&i.parentNode.replaceChild(o,i),o.append(i,s),this.container=o}createUpperCanvas(){let{el:e}=this.lower,t=pn();return t.className=e.className,t.classList.remove("lower-canvas"),t.classList.add("upper-canvas"),t.setAttribute("data-fabric","top"),t.style.cssText=e.style.cssText,t.setAttribute("draggable","true"),t}createContainerElement(){let e=pu().createElement("div");return e.setAttribute("data-fabric","wrapper"),j0(e,{position:"relative"}),Ig(e),e}applyCanvasStyle(e,t){let{allowTouchScrolling:n}=t;j0(e,{position:"absolute",left:"0",top:"0"}),function(i,s){let o=s?"manipulation":ci;j0(i,{"touch-action":o,"-ms-touch-action":o})}(e,n),Ig(e)}setDimensions(e,t){super.setDimensions(e,t);let{el:n,ctx:i}=this.upper;p5(n,i,e,t)}setCSSDimensions(e){super.setCSSDimensions(e),dp(this.upper.el,e),dp(this.container,e)}cleanupDOM(e){let t=this.container,{el:n}=this.lower,{el:i}=this.upper;super.cleanupDOM(e),t.removeChild(i),t.removeChild(n),t.parentNode&&t.parentNode.replaceChild(n,t)}dispose(){super.dispose(),br().dispose(this.upper.el),delete this.upper,delete this.container}},t1=class r extends Z0{constructor(){super(...arguments),W(this,"targets",[]),W(this,"_hoveredTargets",[]),W(this,"_objectsToRender",void 0),W(this,"_currentTransform",null),W(this,"_groupSelector",null),W(this,"contextTopDirty",!1)}static getDefaults(){return j(j({},super.getDefaults()),r.ownDefaults)}get upperCanvasEl(){var e;return(e=this.elements.upper)===null||e===void 0?void 0:e.el}get contextTop(){var e;return(e=this.elements.upper)===null||e===void 0?void 0:e.ctx}get wrapperEl(){return this.elements.container}initElements(e){this.elements=new Mp(e,{allowTouchScrolling:this.allowTouchScrolling,containerClass:this.containerClass}),this._createCacheCanvas()}_onObjectAdded(e){this._objectsToRender=void 0,super._onObjectAdded(e)}_onObjectRemoved(e){this._objectsToRender=void 0,e===this._activeObject&&(this.fire("before:selection:cleared",{deselected:[e]}),this._discardActiveObject(),this.fire("selection:cleared",{deselected:[e]}),e.fire("deselected",{target:e})),e===this._hoveredTarget&&(this._hoveredTarget=void 0,this._hoveredTargets=[]),super._onObjectRemoved(e)}_onStackOrderChanged(){this._objectsToRender=void 0,super._onStackOrderChanged()}_chooseObjectsToRender(){let e=this._activeObject;return!this.preserveObjectStacking&&e?this._objects.filter(t=>!t.group&&t!==e).concat(e):this._objects}renderAll(){this.cancelRequestedRender(),this.destroyed||(!this.contextTopDirty||this._groupSelector||this.isDrawingMode||(this.clearContext(this.contextTop),this.contextTopDirty=!1),this.hasLostContext&&(this.renderTopLayer(this.contextTop),this.hasLostContext=!1),!this._objectsToRender&&(this._objectsToRender=this._chooseObjectsToRender()),this.renderCanvas(this.getContext(),this._objectsToRender))}renderTopLayer(e){e.save(),this.isDrawingMode&&this._isCurrentlyDrawing&&(this.freeDrawingBrush&&this.freeDrawingBrush._render(),this.contextTopDirty=!0),this.selection&&this._groupSelector&&(this._drawSelection(e),this.contextTopDirty=!0),e.restore()}renderTop(){let e=this.contextTop;this.clearContext(e),this.renderTopLayer(e),this.fire("after:render",{ctx:e})}setTargetFindTolerance(e){e=Math.round(e),this.targetFindTolerance=e;let t=this.getRetinaScaling(),n=Math.ceil((2*e+1)*t);this.pixelFindCanvasEl.width=this.pixelFindCanvasEl.height=n,this.pixelFindContext.scale(t,t)}isTargetTransparent(e,t,n){let i=this.targetFindTolerance,s=this.pixelFindContext;this.clearContext(s),s.save(),s.translate(-t+i,-n+i),s.transform(...this.viewportTransform);let o=e.selectionBackgroundColor;e.selectionBackgroundColor="",e.render(s),e.selectionBackgroundColor=o,s.restore();let a=Math.round(i*this.getRetinaScaling());return X5(s,a,a,a)}_isSelectionKeyPressed(e){let t=this.selectionKey;return!!t&&(Array.isArray(t)?!!t.find(n=>!!n&&e[n]===!0):e[t])}_shouldClearSelection(e,t){let n=this.getActiveObjects(),i=this._activeObject;return!!(!t||t&&i&&n.length>1&&n.indexOf(t)===-1&&i!==t&&!this._isSelectionKeyPressed(e)||t&&!t.evented||t&&!t.selectable&&i&&i!==t)}_shouldCenterTransform(e,t,n){if(!e)return;let i;return t==="scale"||t==="scaleX"||t==="scaleY"||t==="resizing"?i=this.centeredScaling||e.centeredScaling:t==="rotate"&&(i=this.centeredRotation||e.centeredRotation),i?!n:n}_getOriginFromCorner(e,t){let n={x:e.originX,y:e.originY};return t&&(["ml","tl","bl"].includes(t)?n.x=Dn:["mr","tr","br"].includes(t)&&(n.x=It),["tl","mt","tr"].includes(t)?n.y=lp:["bl","mb","br"].includes(t)&&(n.y=qn)),n}_setupCurrentTransform(e,t,n){var i;let s=t.group?ks(this.getScenePoint(e),void 0,t.group.calcTransformMatrix()):this.getScenePoint(e),{key:o="",control:a}=t.getActiveControl()||{},u=n&&a?(i=a.getActionHandler(e,t,a))===null||i===void 0?void 0:i.bind(a):y5,c=((d,x,m,D)=>{if(!x||!d)return"drag";let p=D.controls[x];return p.getActionName(m,p,D)})(n,o,e,t),f=e[this.centeredKey],l=this._shouldCenterTransform(t,c,f)?{x:vt,y:vt}:this._getOriginFromCorner(t,o),h={target:t,action:c,actionHandler:u,actionPerformed:!1,corner:o,scaleX:t.scaleX,scaleY:t.scaleY,skewX:t.skewX,skewY:t.skewY,offsetX:s.x-t.left,offsetY:s.y-t.top,originX:l.x,originY:l.y,ex:s.x,ey:s.y,lastX:s.x,lastY:s.y,theta:fn(t.angle),width:t.width,height:t.height,shiftKey:e.shiftKey,altKey:f,original:j(j({},Yp(t)),{},{originX:l.x,originY:l.y})};this._currentTransform=h,this.fire("before:transform",{e,transform:h})}setCursor(e){this.upperCanvasEl.style.cursor=e}_drawSelection(e){let{x:t,y:n,deltaX:i,deltaY:s}=this._groupSelector,o=new oe(t,n).transform(this.viewportTransform),a=new oe(t+i,n+s).transform(this.viewportTransform),u=this.selectionLineWidth/2,c=Math.min(o.x,a.x),f=Math.min(o.y,a.y),l=Math.max(o.x,a.x),h=Math.max(o.y,a.y);this.selectionColor&&(e.fillStyle=this.selectionColor,e.fillRect(c,f,l-c,h-f)),this.selectionLineWidth&&this.selectionBorderColor&&(e.lineWidth=this.selectionLineWidth,e.strokeStyle=this.selectionBorderColor,c+=u,f+=u,l-=u,h-=u,Tn.prototype._setLineDash.call(this,e,this.selectionDashArray),e.strokeRect(c,f,l-c,h-f))}findTarget(e){if(this.skipTargetFind)return;let t=this.getViewportPoint(e),n=this._activeObject,i=this.getActiveObjects();if(this.targets=[],n&&i.length>=1){if(n.findControl(t,zl(e))||i.length>1&&this.searchPossibleTargets([n],t))return n;if(n===this.searchPossibleTargets([n],t)){if(this.preserveObjectStacking){let s=this.targets;this.targets=[];let o=this.searchPossibleTargets(this._objects,t);return e[this.altSelectionKey]&&o&&o!==n?(this.targets=s,n):o}return n}}return this.searchPossibleTargets(this._objects,t)}_pointIsInObjectSelectionArea(e,t){let n=e.getCoords(),i=this.getZoom(),s=e.padding/i;if(s){let[o,a,u,c]=n,f=Math.atan2(a.y-o.y,a.x-o.x),l=rr(f)*s,h=sr(f)*s,d=l+h,x=l-h;n=[new oe(o.x-x,o.y-d),new oe(a.x+d,a.y-x),new oe(u.x+x,u.y+d),new oe(c.x-d,c.y+x)]}return Eo.isPointInPolygon(t,n)}_checkTarget(e,t){return!!(e&&e.visible&&e.evented&&this._pointIsInObjectSelectionArea(e,ks(t,void 0,this.viewportTransform))&&(!this.perPixelTargetFind&&!e.perPixelTargetFind||e.isEditing||!this.isTargetTransparent(e,t.x,t.y)))}_searchPossibleTargets(e,t){let n=e.length;for(;n--;){let i=e[n];if(this._checkTarget(i,t)){if(Rl(i)&&i.subTargetCheck){let s=this._searchPossibleTargets(i._objects,t);s&&this.targets.push(s)}return i}}}searchPossibleTargets(e,t){let n=this._searchPossibleTargets(e,t);if(n&&Rl(n)&&n.interactive&&this.targets[0]){let i=this.targets;for(let s=i.length-1;s>0;s--){let o=i[s];if(!Rl(o)||!o.interactive)return o}return i[0]}return n}getViewportPoint(e){return this._pointer?this._pointer:this.getPointer(e,!0)}getScenePoint(e){return this._absolutePointer?this._absolutePointer:this.getPointer(e)}getPointer(e){let t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=this.upperCanvasEl,i=n.getBoundingClientRect(),s=x5(e),o=i.width||0,a=i.height||0;o&&a||(qn in i&&lp in i&&(a=Math.abs(i.top-i.bottom)),Dn in i&&It in i&&(o=Math.abs(i.right-i.left))),this.calcOffset(),s.x=s.x-this._offset.left,s.y=s.y-this._offset.top,t||(s=ks(s,void 0,this.viewportTransform));let u=this.getRetinaScaling();u!==1&&(s.x/=u,s.y/=u);let c=o===0||a===0?new oe(1,1):new oe(n.width/o,n.height/a);return s.multiply(c)}_setDimensionsImpl(e,t){this._resetTransformEventData(),super._setDimensionsImpl(e,t),this._isCurrentlyDrawing&&this.freeDrawingBrush&&this.freeDrawingBrush._setBrushStyles(this.contextTop)}_createCacheCanvas(){this.pixelFindCanvasEl=pn(),this.pixelFindContext=this.pixelFindCanvasEl.getContext("2d",{willReadFrequently:!0}),this.setTargetFindTolerance(this.targetFindTolerance)}getTopContext(){return this.elements.upper.ctx}getSelectionContext(){return this.elements.upper.ctx}getSelectionElement(){return this.elements.upper.el}getActiveObject(){return this._activeObject}getActiveObjects(){let e=this._activeObject;return za(e)?e.getObjects():e?[e]:[]}_fireSelectionEvents(e,t){let n=!1,i=!1,s=this.getActiveObjects(),o=[],a=[];e.forEach(u=>{s.includes(u)||(n=!0,u.fire("deselected",{e:t,target:u}),a.push(u))}),s.forEach(u=>{e.includes(u)||(n=!0,u.fire("selected",{e:t,target:u}),o.push(u))}),e.length>0&&s.length>0?(i=!0,n&&this.fire("selection:updated",{e:t,selected:o,deselected:a})):s.length>0?(i=!0,this.fire("selection:created",{e:t,selected:o})):e.length>0&&(i=!0,this.fire("selection:cleared",{e:t,deselected:a})),i&&(this._objectsToRender=void 0)}setActiveObject(e,t){let n=this.getActiveObjects(),i=this._setActiveObject(e,t);return this._fireSelectionEvents(n,t),i}_setActiveObject(e,t){let n=this._activeObject;return n!==e&&!(!this._discardActiveObject(t,e)&&this._activeObject)&&!e.onSelect({e:t})&&(this._activeObject=e,za(e)&&n!==e&&(e.set("canvas",this),e.setCoords()),!0)}_discardActiveObject(e,t){let n=this._activeObject;return!!n&&!n.onDeselect({e,object:t})&&(this._currentTransform&&this._currentTransform.target===n&&this.endCurrentTransform(e),this._activeObject=void 0,!0)}discardActiveObject(e){let t=this.getActiveObjects(),n=this.getActiveObject();t.length&&this.fire("before:selection:cleared",{e,deselected:[n]});let i=this._discardActiveObject(e);return this._fireSelectionEvents(t,e),i}endCurrentTransform(e){let t=this._currentTransform;this._finalizeCurrentTransform(e),t&&t.target&&(t.target.isMoving=!1),this._currentTransform=null}_finalizeCurrentTransform(e){let t=this._currentTransform,n=t.target,i={e,target:n,transform:t,action:t.action};n._scaling&&(n._scaling=!1),n.setCoords(),t.actionPerformed&&(this.fire("object:modified",i),n.fire("modified",i))}setViewportTransform(e){super.setViewportTransform(e);let t=this._activeObject;t&&t.setCoords()}destroy(){let e=this._activeObject;za(e)&&(e.removeAll(),e.dispose()),delete this._activeObject,super.destroy(),this.pixelFindContext=null,this.pixelFindCanvasEl=void 0}clear(){this.discardActiveObject(),this._activeObject=void 0,this.clearContext(this.contextTop),super.clear()}drawControls(e){let t=this._activeObject;t&&t._renderControls(e)}_toObject(e,t,n){let i=this._realizeGroupTransformOnObject(e),s=super._toObject(e,t,n);return e.set(i),s}_realizeGroupTransformOnObject(e){let{group:t}=e;if(t&&za(t)&&this._activeObject===t){let n=bo(e,["angle","flipX","flipY",It,"scaleX","scaleY","skewX","skewY",qn]);return m5(e,t.calcOwnMatrix()),n}return{}}_setSVGObject(e,t,n){let i=this._realizeGroupTransformOnObject(t);super._setSVGObject(e,t,n),t.set(i)}};W(t1,"ownDefaults",{uniformScaling:!0,uniScaleKey:"shiftKey",centeredScaling:!1,centeredRotation:!1,centeredKey:"altKey",altActionKey:"shiftKey",selection:!0,selectionKey:"shiftKey",selectionColor:"rgba(100, 100, 255, 0.3)",selectionDashArray:[],selectionBorderColor:"rgba(255, 255, 255, 0.3)",selectionLineWidth:1,selectionFullyContained:!1,hoverCursor:"move",moveCursor:"move",defaultCursor:"default",freeDrawingCursor:"crosshair",notAllowedCursor:"not-allowed",perPixelTargetFind:!1,targetFindTolerance:0,skipTargetFind:!1,stopContextMenu:!1,fireRightClick:!1,fireMiddleClick:!1,enablePointerEvents:!1,containerClass:"canvas-container",preserveObjectStacking:!1});var Tp=class{constructor(e){W(this,"targets",[]),W(this,"__disposer",void 0);let t=()=>{let{hiddenTextarea:i}=e.getActiveObject()||{};i&&i.focus()},n=e.upperCanvasEl;n.addEventListener("click",t),this.__disposer=()=>n.removeEventListener("click",t)}exitTextEditing(){this.target=void 0,this.targets.forEach(e=>{e.isEditing&&e.exitEditing()})}add(e){this.targets.push(e)}remove(e){this.unregister(e),po(this.targets,e)}register(e){this.target=e}unregister(e){e===this.target&&(this.target=void 0)}onMouseMove(e){var t;!((t=this.target)===null||t===void 0)&&t.isEditing&&this.target.updateSelectionOnMouseMove(e)}clear(){this.targets=[],this.target=void 0}dispose(){this.clear(),this.__disposer(),delete this.__disposer}},J7=["target","oldTarget","fireCanvas","e"],Fi={passive:!1},Ua=(r,e)=>{let t=r.getViewportPoint(e),n=r.getScenePoint(e);return{viewportPoint:t,scenePoint:n,pointer:t,absolutePointer:n}},As=function(r){for(var e=arguments.length,t=new Array(e>1?e-1:0),n=1;n1?e-1:0),n=1;n1&&arguments[1]!==void 0?arguments[1]:{}),W(this,"_isClick",void 0),W(this,"textEditingManager",new Tp(this)),["_onMouseDown","_onTouchStart","_onMouseMove","_onMouseUp","_onTouchEnd","_onResize","_onMouseWheel","_onMouseOut","_onMouseEnter","_onContextMenu","_onDoubleClick","_onDragStart","_onDragEnd","_onDragProgress","_onDragOver","_onDragEnter","_onDragLeave","_onDrop"].forEach(t=>{this[t]=this[t].bind(this)}),this.addOrRemove(As,"add")}_getEventPrefix(){return this.enablePointerEvents?"pointer":"mouse"}addOrRemove(e,t){let n=this.upperCanvasEl,i=this._getEventPrefix();e(D5(n),"resize",this._onResize),e(n,i+"down",this._onMouseDown),e(n,"".concat(i,"move"),this._onMouseMove,Fi),e(n,"".concat(i,"out"),this._onMouseOut),e(n,"".concat(i,"enter"),this._onMouseEnter),e(n,"wheel",this._onMouseWheel),e(n,"contextmenu",this._onContextMenu),e(n,"dblclick",this._onDoubleClick),e(n,"dragstart",this._onDragStart),e(n,"dragend",this._onDragEnd),e(n,"dragover",this._onDragOver),e(n,"dragenter",this._onDragEnter),e(n,"dragleave",this._onDragLeave),e(n,"drop",this._onDrop),this.enablePointerEvents||e(n,"touchstart",this._onTouchStart,Fi)}removeListeners(){this.addOrRemove(Vi,"remove");let e=this._getEventPrefix(),t=nr(this.upperCanvasEl);Vi(t,"".concat(e,"up"),this._onMouseUp),Vi(t,"touchend",this._onTouchEnd,Fi),Vi(t,"".concat(e,"move"),this._onMouseMove,Fi),Vi(t,"touchmove",this._onMouseMove,Fi)}_onMouseWheel(e){this.__onMouseWheel(e)}_onMouseOut(e){let t=this._hoveredTarget,n=j({e},Ua(this,e));this.fire("mouse:out",j(j({},n),{},{target:t})),this._hoveredTarget=void 0,t&&t.fire("mouseout",j({},n)),this._hoveredTargets.forEach(i=>{this.fire("mouse:out",j(j({},n),{},{target:i})),i&&i.fire("mouseout",j({},n))}),this._hoveredTargets=[]}_onMouseEnter(e){this._currentTransform||this.findTarget(e)||(this.fire("mouse:over",j({e},Ua(this,e))),this._hoveredTarget=void 0,this._hoveredTargets=[])}_onDragStart(e){this._isClick=!1;let t=this.getActiveObject();if(t&&t.onDragStart(e)){this._dragSource=t;let n={e,target:t};return this.fire("dragstart",n),t.fire("dragstart",n),void As(this.upperCanvasEl,"drag",this._onDragProgress)}Dp(e)}_renderDragEffects(e,t,n){let i=!1,s=this._dropTarget;s&&s!==t&&s!==n&&(s.clearContextTop(),i=!0),t?.clearContextTop(),n!==t&&n?.clearContextTop();let o=this.contextTop;o.save(),o.transform(...this.viewportTransform),t&&(o.save(),t.transform(o),t.renderDragSourceEffect(e),o.restore(),i=!0),n&&(o.save(),n.transform(o),n.renderDropTargetEffect(e),o.restore(),i=!0),o.restore(),i&&(this.contextTopDirty=!0)}_onDragEnd(e){let t=!!e.dataTransfer&&e.dataTransfer.dropEffect!==ci,n=t?this._activeObject:void 0,i={e,target:this._dragSource,subTargets:this.targets,dragSource:this._dragSource,didDrop:t,dropTarget:n};Vi(this.upperCanvasEl,"drag",this._onDragProgress),this.fire("dragend",i),this._dragSource&&this._dragSource.fire("dragend",i),delete this._dragSource,this._onMouseUp(e)}_onDragProgress(e){let t={e,target:this._dragSource,dragSource:this._dragSource,dropTarget:this._draggedoverTarget};this.fire("drag",t),this._dragSource&&this._dragSource.fire("drag",t)}findDragTargets(e){return this.targets=[],{target:this._searchPossibleTargets(this._objects,this.getViewportPoint(e)),targets:[...this.targets]}}_onDragOver(e){let t="dragover",{target:n,targets:i}=this.findDragTargets(e),s=this._dragSource,o={e,target:n,subTargets:i,dragSource:s,canDrop:!1,dropTarget:void 0},a;this.fire(t,o),this._fireEnterLeaveEvents(n,o),n&&(n.canDrop(e)&&(a=n),n.fire(t,o));for(let u=0;u0)return;this.__onMouseUp(e),this._resetTransformEventData(),delete this.mainTouchId;let t=this._getEventPrefix(),n=nr(this.upperCanvasEl);Vi(n,"touchend",this._onTouchEnd,Fi),Vi(n,"touchmove",this._onMouseMove,Fi),this._willAddMouseDown&&clearTimeout(this._willAddMouseDown),this._willAddMouseDown=setTimeout(()=>{As(this.upperCanvasEl,"".concat(t,"down"),this._onMouseDown),this._willAddMouseDown=0},400)}_onMouseUp(e){this.__onMouseUp(e),this._resetTransformEventData();let t=this.upperCanvasEl,n=this._getEventPrefix();if(this._isMainEvent(e)){let i=nr(this.upperCanvasEl);Vi(i,"".concat(n,"up"),this._onMouseUp),Vi(i,"".concat(n,"move"),this._onMouseMove,Fi),As(t,"".concat(n,"move"),this._onMouseMove,Fi)}}_onMouseMove(e){let t=this.getActiveObject();!this.allowTouchScrolling&&(!t||!t.shouldStartDragging())&&e.preventDefault&&e.preventDefault(),this.__onMouseMove(e)}_onResize(){this.calcOffset(),this._resetTransformEventData()}_shouldRender(e){let t=this.getActiveObject();return!!t!=!!e||t&&e&&t!==e}__onMouseUp(e){var t;this._cacheTransformEventData(e),this._handleEvent(e,"up:before");let n=this._currentTransform,i=this._isClick,s=this._target,{button:o}=e;if(o)return(this.fireMiddleClick&&o===1||this.fireRightClick&&o===2)&&this._handleEvent(e,"up"),void this._resetTransformEventData();if(this.isDrawingMode&&this._isCurrentlyDrawing)return void this._onMouseUpInDrawingMode(e);if(!this._isMainEvent(e))return;let a,u,c=!1;if(n&&(this._finalizeCurrentTransform(e),c=n.actionPerformed),!i){let f=s===this._activeObject;this.handleSelection(e),c||(c=this._shouldRender(s)||!f&&s===this._activeObject)}if(s){let f=s.findControl(this.getViewportPoint(e),zl(e)),{key:l,control:h}=f||{};if(u=l,s.selectable&&s!==this._activeObject&&s.activeOn==="up")this.setActiveObject(s,e),c=!0;else if(h){let d=h.getMouseUpHandler(e,s,h);d&&(a=this.getScenePoint(e),d.call(h,e,n,a.x,a.y))}s.isMoving=!1}if(n&&(n.target!==s||n.corner!==u)){let f=n.target&&n.target.controls[n.corner],l=f&&f.getMouseUpHandler(e,n.target,f);a=a||this.getScenePoint(e),l&&l.call(f,e,n,a.x,a.y)}this._setCursorFromEvent(e,s),this._handleEvent(e,"up"),this._groupSelector=null,this._currentTransform=null,s&&(s.__corner=void 0),c?this.requestRenderAll():i||(t=this._activeObject)!==null&&t!==void 0&&t.isEditing||this.renderTop()}_basicEventHandler(e,t){let{target:n,subTargets:i=[]}=t;this.fire(e,t),n&&n.fire(e,t);for(let s=0;s{n=o.hoverCursor||n}),this.setCursor(n)}handleMultiSelection(e,t){let n=this._activeObject,i=za(n);if(n&&this._isSelectionKeyPressed(e)&&this.selection&&t&&t.selectable&&(n!==t||i)&&(i||!t.isDescendantOf(n)&&!n.isDescendantOf(t))&&!t.onSelect({e})&&!n.getActiveControl()){if(i){let s=n.getObjects();if(t===n){let o=this.getViewportPoint(e);if(!(t=this.searchPossibleTargets(s,o)||this.searchPossibleTargets(this._objects,o))||!t.selectable)return!1}t.group===n?(n.remove(t),this._hoveredTarget=t,this._hoveredTargets=[...this.targets],n.size()===1&&this._setActiveObject(n.item(0),e)):(n.multiSelectAdd(t),this._hoveredTarget=n,this._hoveredTargets=[...this.targets]),this._fireSelectionEvents(s,e)}else{n.exitEditing&&n.exitEditing();let s=new(Ge.getClass("ActiveSelection"))([],{canvas:this});s.multiSelectAdd(n,t),this._hoveredTarget=s,this._setActiveObject(s,e),this._fireSelectionEvents([n],e)}return!0}return!1}handleSelection(e){if(!this.selection||!this._groupSelector)return!1;let{x:t,y:n,deltaX:i,deltaY:s}=this._groupSelector,o=new oe(t,n),a=o.add(new oe(i,s)),u=o.min(a),c=o.max(a).subtract(u),f=this.collectObjects({left:u.x,top:u.y,width:c.x,height:c.y},{includeIntersecting:!this.selectionFullyContained}),l=o.eq(a)?f[0]?[f[0]]:[]:f.length>1?f.filter(h=>!h.onSelect({e})).reverse():f;if(l.length===1)this.setActiveObject(l[0],e);else if(l.length>1){let h=Ge.getClass("ActiveSelection");this.setActiveObject(new h(l,{canvas:this}),e)}return this._groupSelector=null,!0}clear(){this.textEditingManager.clear(),super.clear()}destroy(){this.removeListeners(),this.textEditingManager.dispose(),super.destroy()}},l8={x1:0,y1:0,x2:0,y2:0},eM=j(j({},l8),{},{r1:0,r2:0}),tM=/^(\d+\.\d+)%|(\d+)%$/;function h8(r){return r&&tM.test(r)}function d8(r,e){let t=typeof r=="number"?r:typeof r=="string"?parseFloat(r)/(h8(r)?100:1):NaN;return vo(0,Va(t,e),1)}var nM=/\s*;\s*/,iM=/\s*:\s*/;function rM(r,e){let t,n,i=r.getAttribute("style");if(i){let o=i.split(nM);o[o.length-1]===""&&o.pop();for(let a=o.length;a--;){let[u,c]=o[a].split(iM).map(f=>f.trim());u==="stop-color"?t=c:u==="stop-opacity"&&(n=c)}}let s=new ii(t||r.getAttribute("stop-color")||"rgb(0,0,0)");return{offset:d8(r.getAttribute("offset"),0),color:s.toRgb(),opacity:Va(parseFloat(n||r.getAttribute("stop-opacity")||""),1)*s.getAlpha()*e}}function sM(r,e){let t=[],n=r.getElementsByTagName("stop"),i=d8(e,1);for(let s=n.length;s--;)t.push(rM(n[s],i));return t}function D8(r){return r.nodeName==="linearGradient"||r.nodeName==="LINEARGRADIENT"?"linear":"radial"}function p8(r){return r.getAttribute("gradientUnits")==="userSpaceOnUse"?"pixels":"percentage"}function er(r,e){return r.getAttribute(e)}function oM(r,e){return function(t,n){let i,{width:s,height:o,gradientUnits:a}=n;return Object.keys(t).reduce((u,c)=>{let f=t[c];return f==="Infinity"?i=1:f==="-Infinity"?i=0:(i=typeof f=="string"?parseFloat(f):f,typeof f=="string"&&h8(f)&&(i*=.01,a==="pixels"&&(c!=="x1"&&c!=="x2"&&c!=="r2"||(i*=s),c!=="y1"&&c!=="y2"||(i*=o)))),u[c]=i,u},{})}(D8(r)==="linear"?function(t){return{x1:er(t,"x1")||0,y1:er(t,"y1")||0,x2:er(t,"x2")||"100%",y2:er(t,"y2")||0}}(r):function(t){return{x1:er(t,"fx")||er(t,"cx")||"50%",y1:er(t,"fy")||er(t,"cy")||"50%",r1:0,x2:er(t,"cx")||"50%",y2:er(t,"cy")||"50%",r2:er(t,"r")||"50%"}}(r),j(j({},e),{},{gradientUnits:p8(r)}))}var Ga=class{constructor(e){let{type:t="linear",gradientUnits:n="pixels",coords:i={},colorStops:s=[],offsetX:o=0,offsetY:a=0,gradientTransform:u,id:c}=e;this.id=c?"".concat(c,"_").concat(Ls()):Ls(),this.type=t,this.gradientUnits=n,this.gradientTransform=u,this.offsetX=o,this.offsetY=a,this.coords=j(j({},this.type==="radial"?eM:l8),i),this.colorStops=s.slice()}addColorStop(e){for(let t in e){let n=new ii(e[t]);this.colorStops.push({offset:parseFloat(t),color:n.toRgb(),opacity:n.getAlpha()})}return this}toObject(e){return j(j({},bo(this,e)),{},{type:this.type,coords:this.coords,colorStops:this.colorStops,offsetX:this.offsetX,offsetY:this.offsetY,gradientUnits:this.gradientUnits,gradientTransform:this.gradientTransform?[...this.gradientTransform]:void 0})}toSVG(e){let{additionalTransform:t}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],i=this.gradientTransform?this.gradientTransform.concat():ni.concat(),s=this.gradientUnits==="pixels"?"userSpaceOnUse":"objectBoundingBox",o=this.colorStops.map(l=>j({},l)).sort((l,h)=>l.offset-h.offset),a=-this.offsetX,u=-this.offsetY;var c;s==="objectBoundingBox"?(a/=e.width,u/=e.height):(a+=e.width/2,u+=e.height/2),(c=e)&&typeof c._renderPathCommands=="function"&&this.gradientUnits!=="percentage"&&(a-=e.pathOffset.x,u-=e.pathOffset.y),i[4]-=a,i[5]-=u;let f=['id="SVGID_'.concat(this.id,'"'),'gradientUnits="'.concat(s,'"'),'gradientTransform="'.concat(t?t+" ":"").concat(Y0(i),'"'),""].join(" ");if(this.type==="linear"){let{x1:l,y1:h,x2:d,y2:x}=this.coords;n.push(" +`)}else if(this.type==="radial"){let{x1:l,y1:h,x2:d,y2:x,r1:m,r2:D}=this.coords,p=m>D;n.push(" +`),p&&(o.reverse(),o.forEach(g=>{g.offset=1-g.offset}));let C=Math.min(m,D);if(C>0){let g=C/Math.max(m,D);o.forEach(E=>{E.offset+=g*(1-E.offset)})}}return o.forEach(l=>{let{color:h,offset:d,opacity:x}=l;n.push(" +`)}),n.push(this.type==="linear"?"":"",` +`),n.join("")}toLive(e){let t=this.coords,n=this.type==="linear"?e.createLinearGradient(t.x1,t.y1,t.x2,t.y2):e.createRadialGradient(t.x1,t.y1,t.r1,t.x2,t.y2,t.r2);return this.colorStops.forEach(i=>{let{color:s,opacity:o,offset:a}=i;n.addColorStop(a,o!==void 0?new ii(s).setAlpha(o).toRgba():s)}),n}static fromObject(e){return $(this,null,function*(){return new this(e)})}static fromElement(e,t,n){let i=p8(e),s=t._findCenterFromElement();return new this(j({id:e.getAttribute("id")||void 0,type:D8(e),coords:oM(e,{width:n.viewBoxWidth||n.width,height:n.viewBoxHeight||n.height}),colorStops:sM(e,n.opacity),gradientUnits:i,gradientTransform:Ap(e.getAttribute("gradientTransform")||"")},i==="pixels"?{offsetX:t.width/2-s.x,offsetY:t.height/2-s.y}:{offsetX:0,offsetY:0}))}};W(Ga,"type","Gradient"),Ge.setClass(Ga,"gradient"),Ge.setClass(Ga,"linear"),Ge.setClass(Ga,"radial");var aM=["type","source"],W0=class{get type(){return"pattern"}set type(e){Rs("warn","Setting type has no effect",e)}constructor(e){W(this,"repeat","repeat"),W(this,"offsetX",0),W(this,"offsetY",0),W(this,"crossOrigin",""),W(this,"patternTransform",null),this.id=Ls(),Object.assign(this,e)}isImageSource(){return!!this.source&&typeof this.source.src=="string"}isCanvasSource(){return!!this.source&&!!this.source.toDataURL}sourceToString(){return this.isImageSource()?this.source.src:this.isCanvasSource()?this.source.toDataURL():""}toLive(e){return this.source&&(!this.isImageSource()||this.source.complete&&this.source.naturalWidth!==0&&this.source.naturalHeight!==0)?e.createPattern(this.source,this.repeat):null}toObject(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],{repeat:t,crossOrigin:n}=this;return j(j({},bo(this,e)),{},{type:"pattern",source:this.sourceToString(),repeat:t,crossOrigin:n,offsetX:St(this.offsetX,Tt.NUM_FRACTION_DIGITS),offsetY:St(this.offsetY,Tt.NUM_FRACTION_DIGITS),patternTransform:this.patternTransform?[...this.patternTransform]:null})}toSVG(e){let{width:t,height:n}=e,{source:i,repeat:s,id:o}=this,a=Va(this.offsetX/t,0),u=Va(this.offsetY/n,0),c=s==="repeat-y"||s==="no-repeat"?1+Math.abs(a||0):Va(i.width/t,0),f=s==="repeat-x"||s==="no-repeat"?1+Math.abs(u||0):Va(i.height/n,0);return[''),''),"",""].join(` +`)}static fromObject(e,t){return $(this,null,function*(){let{type:n,source:i}=e,s=Wt(e,aM),o=yield G0(i,j(j({},t),{},{crossOrigin:s.crossOrigin}));return new this(j(j({},s),{},{source:o}))})}};W(W0,"type","Pattern"),Ge.setClass(W0),Ge.setClass(W0,"pattern");var uM=["path","left","top"],cM=["d"],$r=class extends Tn{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{path:n,left:i,top:s}=t;super(Wt(t,uM)),this._setPath(e||[],!0),typeof i=="number"&&this.set(It,i),typeof s=="number"&&this.set(qn,s)}_setPath(e,t){this.path=i8(Array.isArray(e)?e:c8(e)),this.setBoundingBox(t)}_findCenterFromElement(){let e=this._calcBoundsFromPath();return new oe(e.left+e.width/2,e.top+e.height/2)}_renderPathCommands(e){let t=-this.pathOffset.x,n=-this.pathOffset.y;e.beginPath();for(let i of this.path)switch(i[0]){case"L":e.lineTo(i[1]+t,i[2]+n);break;case"M":e.moveTo(i[1]+t,i[2]+n);break;case"C":e.bezierCurveTo(i[1]+t,i[2]+n,i[3]+t,i[4]+n,i[5]+t,i[6]+n);break;case"Q":e.quadraticCurveTo(i[1]+t,i[2]+n,i[3]+t,i[4]+n);break;case"Z":e.closePath()}}_render(e){this._renderPathCommands(e),this._renderPaintInOrder(e)}toString(){return"#")}toObject(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return j(j({},super.toObject(e)),{},{path:this.path.map(t=>t.slice())})}toDatalessObject(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=this.toObject(e);return this.sourcePath&&(delete t.path,t.sourcePath=this.sourcePath),t}_toSVG(){let e=f8(this.path,Tt.NUM_FRACTION_DIGITS);return[" +`)]}_getOffsetTransform(){let e=Tt.NUM_FRACTION_DIGITS;return" translate(".concat(St(-this.pathOffset.x,e),", ").concat(St(-this.pathOffset.y,e),")")}toClipPathSVG(e){let t=this._getOffsetTransform();return" "+this._createBaseClipPathSVGMarkup(this._toSVG(),{reviver:e,additionalTransform:t})}toSVG(e){let t=this._getOffsetTransform();return this._createBaseSVGMarkup(this._toSVG(),{reviver:e,additionalTransform:t})}complexity(){return this.path.length}setDimensions(){this.setBoundingBox()}setBoundingBox(e){let{width:t,height:n,pathOffset:i}=this._calcDimensions();this.set({width:t,height:n,pathOffset:i}),e&&this.setPositionByOrigin(i,vt,vt)}_calcBoundsFromPath(){let e=[],t=0,n=0,i=0,s=0;for(let o of this.path)switch(o[0]){case"L":i=o[1],s=o[2],e.push(new oe(t,n),new oe(i,s));break;case"M":i=o[1],s=o[2],t=i,n=s;break;case"C":e.push(...Sp(i,s,o[1],o[2],o[3],o[4],o[5],o[6])),i=o[5],s=o[6];break;case"Q":e.push(...Sp(i,s,o[1],o[2],o[1],o[2],o[3],o[4])),i=o[3],s=o[4];break;case"Z":i=t,s=n}return yr(e)}_calcDimensions(){let e=this._calcBoundsFromPath();return j(j({},e),{},{pathOffset:new oe(e.left+e.width/2,e.top+e.height/2)})}static fromObject(e){return this._fromObject(e,{extraParam:"path"})}static fromElement(e,t,n){return $(this,null,function*(){let i=Qr(e,this.ATTRIBUTE_NAMES,n),{d:s}=i;return new this(s,j(j(j({},Wt(i,cM)),t),{},{left:void 0,top:void 0}))})}};W($r,"type","Path"),W($r,"cacheProperties",[...Jr,"path","fillRule"]),W($r,"ATTRIBUTE_NAMES",[...Us,"d"]),Ge.setClass($r),Ge.setSVGClass($r);var fM=["left","top","radius"],x8=["radius","startAngle","endAngle","counterClockwise"],ws=class r extends Tn{static getDefaults(){return j(j({},super.getDefaults()),r.ownDefaults)}_set(e,t){return super._set(e,t),e==="radius"&&this.setRadius(t),this}_render(e){e.beginPath(),e.arc(0,0,this.radius,fn(this.startAngle),fn(this.endAngle),this.counterClockwise),this._renderPaintInOrder(e)}getRadiusX(){return this.get("radius")*this.get("scaleX")}getRadiusY(){return this.get("radius")*this.get("scaleY")}setRadius(e){this.radius=e,this.set({width:2*e,height:2*e})}toObject(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return super.toObject([...x8,...e])}_toSVG(){let e=(this.endAngle-this.startAngle)%360;if(e===0)return[" +`];{let{radius:t}=this,n=fn(this.startAngle),i=fn(this.endAngle),s=rr(n)*t,o=sr(n)*t,a=rr(i)*t,u=sr(i)*t,c=e>180?1:0,f=this.counterClockwise?0:1;return[' +`]}}static fromElement(e,t,n){return $(this,null,function*(){let i=Qr(e,this.ATTRIBUTE_NAMES,n),{left:s=0,top:o=0,radius:a=0}=i;return new this(j(j({},Wt(i,fM)),{},{radius:a,left:s-a,top:o-a}))})}static fromObject(e){return super._fromObject(e)}};W(ws,"type","Circle"),W(ws,"cacheProperties",[...Jr,...x8]),W(ws,"ownDefaults",{radius:0,startAngle:0,endAngle:360,counterClockwise:!1}),W(ws,"ATTRIBUTE_NAMES",["cx","cy","r",...Us]),Ge.setClass(ws),Ge.setSVGClass(ws);var lM=["x1","y1","x2","y2"],hM=["x1","y1","x2","y2"],kp=["x1","x2","y1","y2"],xo=class extends Tn{constructor(){let[e,t,n,i]=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[0,0,0,0],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(j(j({},s),{},{x1:e,y1:t,x2:n,y2:i})),this._setWidthHeight();let{left:o,top:a}=s;typeof o=="number"&&this.set(It,o),typeof a=="number"&&this.set(qn,a)}_setWidthHeight(){let{x1:e,y1:t,x2:n,y2:i}=this;this.width=Math.abs(n-e),this.height=Math.abs(i-t);let{left:s,top:o,width:a,height:u}=yr([{x:e,y:t},{x:n,y:i}]),c=new oe(s+a/2,o+u/2);this.setPositionByOrigin(c,vt,vt)}_set(e,t){return super._set(e,t),kp.includes(e)&&this._setWidthHeight(),this}_render(e){e.beginPath();let t=this.calcLinePoints();e.moveTo(t.x1,t.y1),e.lineTo(t.x2,t.y2),e.lineWidth=this.strokeWidth;let n=e.strokeStyle;var i;Hi(this.stroke)?e.strokeStyle=this.stroke.toLive(e):e.strokeStyle=(i=this.stroke)!==null&&i!==void 0?i:e.fillStyle,this.stroke&&this._renderStroke(e),e.strokeStyle=n}_findCenterFromElement(){return new oe((this.x1+this.x2)/2,(this.y1+this.y2)/2)}toObject(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return j(j({},super.toObject(e)),this.calcLinePoints())}_getNonTransformedDimensions(){let e=super._getNonTransformedDimensions();return this.strokeLineCap==="butt"&&(this.width===0&&(e.y-=this.strokeWidth),this.height===0&&(e.x-=this.strokeWidth)),e}calcLinePoints(){let{x1:e,x2:t,y1:n,y2:i,width:s,height:o}=this,a=e<=t?-1:1,u=n<=i?-1:1;return{x1:a*s/2,x2:a*-s/2,y1:u*o/2,y2:u*-o/2}}_toSVG(){let{x1:e,x2:t,y1:n,y2:i}=this.calcLinePoints();return[" +`)]}static fromElement(e,t,n){return $(this,null,function*(){let i=Qr(e,this.ATTRIBUTE_NAMES,n),{x1:s=0,y1:o=0,x2:a=0,y2:u=0}=i;return new this([s,o,a,u],Wt(i,lM))})}static fromObject(e){let{x1:t,y1:n,x2:i,y2:s}=e,o=Wt(e,hM);return this._fromObject(j(j({},o),{},{points:[t,n,i,s]}),{extraParam:"points"})}};W(xo,"type","Line"),W(xo,"cacheProperties",[...Jr,...kp]),W(xo,"ATTRIBUTE_NAMES",Us.concat(kp)),Ge.setClass(xo),Ge.setSVGClass(xo);var ja=class r extends Tn{static getDefaults(){return j(j({},super.getDefaults()),r.ownDefaults)}_render(e){let t=this.width/2,n=this.height/2;e.beginPath(),e.moveTo(-t,n),e.lineTo(0,-n),e.lineTo(t,n),e.closePath(),this._renderPaintInOrder(e)}_toSVG(){let e=this.width/2,t=this.height/2;return["']}};W(ja,"type","Triangle"),W(ja,"ownDefaults",{width:100,height:100}),Ge.setClass(ja),Ge.setSVGClass(ja);var m8=["rx","ry"],Ss=class r extends Tn{static getDefaults(){return j(j({},super.getDefaults()),r.ownDefaults)}_set(e,t){switch(super._set(e,t),e){case"rx":this.rx=t,this.set("width",2*t);break;case"ry":this.ry=t,this.set("height",2*t)}return this}getRx(){return this.get("rx")*this.get("scaleX")}getRy(){return this.get("ry")*this.get("scaleY")}toObject(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return super.toObject([...m8,...e])}_toSVG(){return[" +`)]}_render(e){e.beginPath(),e.save(),e.transform(1,0,0,this.ry/this.rx,0,0),e.arc(0,0,this.rx,0,Kr,!1),e.restore(),this._renderPaintInOrder(e)}static fromElement(e,t,n){return $(this,null,function*(){let i=Qr(e,this.ATTRIBUTE_NAMES,n);return i.left=(i.left||0)-i.rx,i.top=(i.top||0)-i.ry,new this(i)})}};function dM(r){if(!r)return[];let e=r.replace(/,/g," ").trim().split(/\s+/),t=[];for(let n=0;n1&&arguments[1]!==void 0?arguments[1]:{};super(j({points:arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]},e)),W(this,"strokeDiff",void 0);let{left:t,top:n}=e;this.initialized=!0,this.setBoundingBox(!0),typeof t=="number"&&this.set(It,t),typeof n=="number"&&this.set(qn,n)}isOpen(){return!0}_projectStrokeOnPoints(e){return q5(this.points,e,this.isOpen())}_calcDimensions(e){e=j({scaleX:this.scaleX,scaleY:this.scaleY,skewX:this.skewX,skewY:this.skewY,strokeLineCap:this.strokeLineCap,strokeLineJoin:this.strokeLineJoin,strokeMiterLimit:this.strokeMiterLimit,strokeUniform:this.strokeUniform,strokeWidth:this.strokeWidth},e||{});let t=this.exactBoundingBox?this._projectStrokeOnPoints(e).map(c=>c.projectedPoint):this.points;if(t.length===0)return{left:0,top:0,width:0,height:0,pathOffset:new oe,strokeOffset:new oe,strokeDiff:new oe};let n=yr(t),i=ec(j(j({},e),{},{scaleX:1,scaleY:1})),s=yr(this.points.map(c=>Xn(c,i,!0))),o=new oe(this.scaleX,this.scaleY),a=n.left+n.width/2,u=n.top+n.height/2;return this.exactBoundingBox&&(a-=u*Math.tan(fn(this.skewX)),u-=a*Math.tan(fn(this.skewY))),j(j({},n),{},{pathOffset:new oe(a,u),strokeOffset:new oe(s.left,s.top).subtract(new oe(n.left,n.top)).multiply(o),strokeDiff:new oe(n.width,n.height).subtract(new oe(s.width,s.height)).multiply(o)})}_findCenterFromElement(){let e=yr(this.points);return new oe(e.left+e.width/2,e.top+e.height/2)}setDimensions(){this.setBoundingBox()}setBoundingBox(e){let{left:t,top:n,width:i,height:s,pathOffset:o,strokeOffset:a,strokeDiff:u}=this._calcDimensions();this.set({width:i,height:s,pathOffset:o,strokeOffset:a,strokeDiff:u}),e&&this.setPositionByOrigin(new oe(t+i/2,n+s/2),vt,vt)}isStrokeAccountedForInDimensions(){return this.exactBoundingBox}_getNonTransformedDimensions(){return this.exactBoundingBox?new oe(this.width,this.height):super._getNonTransformedDimensions()}_getTransformedDimensions(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(this.exactBoundingBox){let o;if(Object.keys(e).some(a=>this.strokeUniform||this.constructor.layoutProperties.includes(a))){var t,n;let{width:a,height:u}=this._calcDimensions(e);o=new oe((t=e.width)!==null&&t!==void 0?t:a,(n=e.height)!==null&&n!==void 0?n:u)}else{var i,s;o=new oe((i=e.width)!==null&&i!==void 0?i:this.width,(s=e.height)!==null&&s!==void 0?s:this.height)}return o.multiply(new oe(e.scaleX||this.scaleX,e.scaleY||this.scaleY))}return super._getTransformedDimensions(e)}_set(e,t){let n=this.initialized&&this[e]!==t,i=super._set(e,t);return this.exactBoundingBox&&n&&((e==="scaleX"||e==="scaleY")&&this.strokeUniform&&this.constructor.layoutProperties.includes("strokeUniform")||this.constructor.layoutProperties.includes(e))&&this.setDimensions(),i}toObject(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return j(j({},super.toObject(e)),{},{points:ic(this.points)})}_toSVG(){let e=[],t=this.pathOffset.x,n=this.pathOffset.y,i=Tt.NUM_FRACTION_DIGITS;for(let s=0,o=this.points.length;s +`)]}_render(e){let t=this.points.length,n=this.pathOffset.x,i=this.pathOffset.y;if(t&&!isNaN(this.points[t-1].y)){e.beginPath(),e.moveTo(this.points[0].x-n,this.points[0].y-i);for(let s=0;so!==void 0);this._setStyleDeclaration(n,i,s)}getSelectionStyles(e,t,n){let i=[];for(let s=e;s<(t||e);s++)i.push(this.getStyleAtPosition(s,n));return i}getStyleAtPosition(e,t){let{lineIndex:n,charIndex:i}=this.get2DCursorLocation(e);return t?this.getCompleteStyleDeclaration(n,i):this._getStyleDeclaration(n,i)}setSelectionStyles(e,t,n){for(let i=t;i<(n||t);i++)this._extendStyles(i,e);this._forceClearCache=!0}_getStyleDeclaration(e,t){var n;let i=this.styles&&this.styles[e];return i&&(n=i[t])!==null&&n!==void 0?n:{}}getCompleteStyleDeclaration(e,t){return j(j({},bo(this,this.constructor._styleProperties)),this._getStyleDeclaration(e,t))}_setStyleDeclaration(e,t,n){this.styles[e][t]=n}_deleteStyleDeclaration(e,t){delete this.styles[e][t]}_getLineStyle(e){return!!this.styles[e]}_setLineStyle(e){this.styles[e]={}}_deleteLineStyle(e){delete this.styles[e]}};W(i1,"_styleProperties",pM);var mM=/ +/g,CM=/"/g;function ip(r,e,t,n,i){return" ".concat(function(s,o){let{left:a,top:u,width:c,height:f}=o,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Tt.NUM_FRACTION_DIGITS,h=$0("fill",s,!1),[d,x,m,D]=[a,u,c,f].map(p=>St(p,l));return"')}(r,{left:e,top:t,width:n,height:i}),` +`)}var gM=["textAnchor","textDecoration","dx","dy","top","left","fontSize","strokeWidth"],rp,In=class r extends i1{static getDefaults(){return j(j({},super.getDefaults()),r.ownDefaults)}constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(j(j({},t),{},{text:e,styles:t?.styles||{}})),W(this,"__charBounds",[]),this.initialized=!0,this.path&&this.setPathInfo(),this.initDimensions(),this.setCoords()}setPathInfo(){let e=this.path;e&&(e.segmentsInfo=n2(e.path))}_splitText(){let e=this._splitTextIntoLines(this.text);return this.textLines=e.lines,this._textLines=e.graphemeLines,this._unwrappedTextLines=e._unwrappedLines,this._text=e.graphemeText,e}initDimensions(){this._splitText(),this._clearCache(),this.dirty=!0,this.path?(this.width=this.path.width,this.height=this.path.height):(this.width=this.calcTextWidth()||this.cursorWidth||this.MIN_TEXT_WIDTH,this.height=this.calcTextHeight()),this.textAlign.includes(_r)&&this.enlargeSpaces()}enlargeSpaces(){let e,t,n,i,s,o,a;for(let u=0,c=this._textLines.length;u')}_getCacheCanvasDimensions(){let e=super._getCacheCanvasDimensions(),t=this.fontSize;return e.width+=t*e.zoomX,e.height+=t*e.zoomY,e}_render(e){let t=this.path;t&&!t.isNotVisible()&&t._render(e),this._setTextStyles(e),this._renderTextLinesBackground(e),this._renderTextDecoration(e,"underline"),this._renderText(e),this._renderTextDecoration(e,"overline"),this._renderTextDecoration(e,"linethrough")}_renderText(e){this.paintFirst==="stroke"?(this._renderTextStroke(e),this._renderTextFill(e)):(this._renderTextFill(e),this._renderTextStroke(e))}_setTextStyles(e,t,n){if(e.textBaseline="alphabetic",this.path)switch(this.pathAlign){case vt:e.textBaseline="middle";break;case"ascender":e.textBaseline=qn;break;case"descender":e.textBaseline=lp}e.font=this._getFontDeclaration(t,n)}calcTextWidth(){let e=this.getLineWidth(0);for(let t=1,n=this._textLines.length;te&&(e=i)}return e}_renderTextLine(e,t,n,i,s,o){this._renderChars(e,t,n,i,s,o)}_renderTextLinesBackground(e){if(!this.textBackgroundColor&&!this.styleHas("textBackgroundColor"))return;let t=e.fillStyle,n=this._getLeftOffset(),i=this._getTopOffset();for(let s=0,o=this._textLines.length;s=0:hl?f%=l:f<0&&(f+=l),this._setGraphemeOnPath(f,n),f+=n.kernedWidth}return{width:i,numOfSpaces:0}}_setGraphemeOnPath(e,t){let n=e+t.kernedWidth/2,i=this.path,s=u8(i.path,n,i.segmentsInfo);t.renderLeft=s.x-i.pathOffset.x,t.renderTop=s.y-i.pathOffset.y,t.angle=s.angle+(this.pathSide===Dn?Math.PI:0)}_getGraphemeBox(e,t,n,i,s){let o=this.getCompleteStyleDeclaration(t,n),a=i?this.getCompleteStyleDeclaration(t,n-1):{},u=this._measureChar(e,o,i,a),c,f=u.kernedWidth,l=u.width;this.charSpacing!==0&&(c=this._getWidthOfCharSpacing(),l+=c,f+=c);let h={width:l,left:0,height:o.fontSize,kernedWidth:f,deltaY:o.deltaY};if(n>0&&!s){let d=this.__charBounds[t][n-1];h.left=d.left+d.width+u.kernedWidth-u.width}return h}getHeightOfLine(e){if(this.__lineHeights[e])return this.__lineHeights[e];let t=this.getHeightOfChar(e,0);for(let n=1,i=this._textLines[e].length;n0){let P=i+d+D;this.direction==="rtl"&&(P=this.width-P-p),C&&g&&(e.fillStyle=g,e.fillRect(P,E+a*y+v,p,this.fontSize/15)),D=_.left,p=_.width,C=x,g=m,y=M,v=R}else p+=_.kernedWidth}let b=i+d+D;this.direction==="rtl"&&(b=this.width-b-p),e.fillStyle=m,x&&m&&e.fillRect(b,E+a*y+v,p-o,this.fontSize/15),n+=f}this._removeShadow(e)}_getFontDeclaration(){let{fontFamily:e=this.fontFamily,fontStyle:t=this.fontStyle,fontWeight:n=this.fontWeight,fontSize:i=this.fontSize}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0,o=e.includes("'")||e.includes('"')||e.includes(",")||r.genericFonts.includes(e.toLowerCase())?e:'"'.concat(e,'"');return[t,n,"".concat(s?this.CACHE_FONT_SIZE:i,"px"),o].join(" ")}render(e){this.visible&&(this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(this._forceClearCache&&this.initDimensions(),super.render(e)))}graphemeSplit(e){return D1(e)}_splitTextIntoLines(e){let t=e.split(this._reNewline),n=new Array(t.length),i=[` +`],s=[];for(let o=0;o0&&arguments[0]!==void 0?arguments[0]:[];return j(j({},super.toObject([..._8,...e])),{},{styles:$5(this.styles,this.text)},this.path?{path:this.path.toObject()}:{})}set(e,t){let{textLayoutProperties:n}=this.constructor;super.set(e,t);let i=!1,s=!1;if(typeof e=="object")for(let o in e)o==="path"&&this.setPathInfo(),i=i||n.includes(o),s=s||o==="path";else i=n.includes(e),s=e==="path";return s&&this.setPathInfo(),i&&this.initialized&&(this.initDimensions(),this.setCoords()),this}complexity(){return 1}static fromElement(e,t,n){return $(this,null,function*(){let i=Qr(e,r.ATTRIBUTE_NAMES,n),s=j(j({},t),i),{textAnchor:o=It,textDecoration:a="",dx:u=0,dy:c=0,top:f=0,left:l=0,fontSize:h=zp,strokeWidth:d=1}=s,x=Wt(s,gM),m=new this((e.textContent||"").replace(/^\s+|\s+$|\n+/g,"").replace(/\s+/g," "),j({left:l+u,top:f+c,underline:a.includes("underline"),overline:a.includes("overline"),linethrough:a.includes("line-through"),strokeWidth:0,fontSize:h},x)),D=m.getScaledHeight()/m.height,p=((m.height+m.strokeWidth)*m.lineHeight-m.height)*D,C=m.getScaledHeight()+p,g=0;return o===vt&&(g=m.getScaledWidth()/2),o===Dn&&(g=m.getScaledWidth()),m.set({left:m.left-g,top:m.top-(C-m.fontSize*(.07+m._fontSizeFraction))/m.lineHeight,strokeWidth:d}),m})}static fromObject(e){return this._fromObject(j(j({},e),{},{styles:Z5(e.styles||{},e.text)}),{extraParam:"text"})}};W(In,"textLayoutProperties",F8),W(In,"cacheProperties",[...Jr,..._8]),W(In,"ownDefaults",xM),W(In,"type","Text"),W(In,"genericFonts",["sans-serif","serif","cursive","fantasy","monospace"]),W(In,"ATTRIBUTE_NAMES",Us.concat("x","y","dx","dy","font-family","font-style","font-weight","font-size","letter-spacing","text-decoration","text-anchor")),W5(In,[class extends Gl{_toSVG(){let r=this._getSVGLeftTopOffsets(),e=this._getSVGTextAndBg(r.textTop,r.textLeft);return this._wrapSVGTextAndBg(e)}toSVG(r){return this._createBaseSVGMarkup(this._toSVG(),{reviver:r,noStyle:!0,withShadow:!0})}_getSVGLeftTopOffsets(){return{textLeft:-this.width/2,textTop:-this.height/2,lineTop:this.getHeightOfLine(0)}}_wrapSVGTextAndBg(r){let{textBgRects:e,textSpans:t}=r,n=this.getSvgTextDecoration(this);return[e.join(""),' ",t.join(""),` +`]}_getSVGTextAndBg(r,e){let t=[],n=[],i,s=r;this.backgroundColor&&n.push(...ip(this.backgroundColor,-this.width/2,-this.height/2,this.width,this.height));for(let o=0,a=this._textLines.length;o").concat(Y5(r),"")}_setSVGTextLineText(r,e,t,n){let i=this.getHeightOfLine(e),s=this.textAlign.includes(_r),o=this._textLines[e],a,u,c,f,l,h="",d=0;n+=i*(1-this._fontSizeFraction)/this.lineHeight;for(let x=0,m=o.length-1;x<=m;x++)l=x===m||this.charSpacing,h+=o[x],c=this.__charBounds[e][x],d===0?(t+=c.kernedWidth-c.width,d+=c.width):d+=c.kernedWidth,s&&!l&&this._reSpaceAndTab.test(o[x])&&(l=!0),l||(a=a||this.getCompleteStyleDeclaration(e,x),u=this.getCompleteStyleDeclaration(e,x+1),l=p1(a,u,!0)),l&&(f=this._getStyleDeclaration(e,x),r.push(this._createTextCharSpan(h,f,t,n)),h="",a=u,this.direction==="rtl"?t-=d:t+=d,d=0)}_setSVGTextLineBg(r,e,t,n){let i=this._textLines[e],s=this.getHeightOfLine(e)/this.lineHeight,o,a=0,u=0,c=this.getValueOfPropertyAt(e,0,"textBackgroundColor");for(let f=0;fr[e.replace("-","")]).join(" ")}}]),Ge.setClass(In),Ge.setSVGClass(In);var Pp=class{constructor(e){W(this,"target",void 0),W(this,"__mouseDownInPlace",!1),W(this,"__dragStartFired",!1),W(this,"__isDraggingOver",!1),W(this,"__dragStartSelection",void 0),W(this,"__dragImageDisposer",void 0),W(this,"_dispose",void 0),this.target=e;let t=[this.target.on("dragenter",this.dragEnterHandler.bind(this)),this.target.on("dragover",this.dragOverHandler.bind(this)),this.target.on("dragleave",this.dragLeaveHandler.bind(this)),this.target.on("dragend",this.dragEndHandler.bind(this)),this.target.on("drop",this.dropHandler.bind(this))];this._dispose=()=>{t.forEach(n=>n()),this._dispose=void 0}}isPointerOverSelection(e){let t=this.target,n=t.getSelectionStartFromPointer(e);return t.isEditing&&n>=t.selectionStart&&n<=t.selectionEnd&&t.selectionStart{E.remove()},nr(e.target||this.target.hiddenTextarea).body.appendChild(E),(n=e.dataTransfer)===null||n===void 0||n.setDragImage(E,D.x,D.y)}onDragStart(e){this.__dragStartFired=!0;let t=this.target,n=this.isActive();if(n&&e.dataTransfer){let i=this.__dragStartSelection={selectionStart:t.selectionStart,selectionEnd:t.selectionEnd},s=t._text.slice(i.selectionStart,i.selectionEnd).join(""),o=j({text:t.text,value:s},i);e.dataTransfer.setData("text/plain",s),e.dataTransfer.setData("application/fabric",JSON.stringify({value:s,styles:t.getSelectionStyles(i.selectionStart,i.selectionEnd,!0)})),e.dataTransfer.effectAllowed="copyMove",this.setDragImage(e,o)}return t.abortCursorAnimation(),n}canDrop(e){if(this.target.editable&&!this.target.getActiveControl()&&!e.defaultPrevented){if(this.isActive()&&this.__dragStartSelection){let t=this.target.getSelectionStartFromPointer(e),n=this.__dragStartSelection;return tn.selectionEnd}return!0}return!1}targetCanDrop(e){return this.target.canDrop(e)}dragEnterHandler(e){let{e:t}=e,n=this.targetCanDrop(t);!this.__isDraggingOver&&n&&(this.__isDraggingOver=!0)}dragOverHandler(e){let{e:t}=e,n=this.targetCanDrop(t);!this.__isDraggingOver&&n?this.__isDraggingOver=!0:this.__isDraggingOver&&!n&&(this.__isDraggingOver=!1),this.__isDraggingOver&&(t.preventDefault(),e.canDrop=!0,e.dropTarget=this.target)}dragLeaveHandler(){(this.__isDraggingOver||this.isActive())&&(this.__isDraggingOver=!1)}dropHandler(e){var t;let{e:n}=e,i=n.defaultPrevented;this.__isDraggingOver=!1,n.preventDefault();let s=(t=n.dataTransfer)===null||t===void 0?void 0:t.getData("text/plain");if(s&&!i){let o=this.target,a=o.canvas,u=o.getSelectionStartFromPointer(n),{styles:c}=n.dataTransfer.types.includes("application/fabric")?JSON.parse(n.dataTransfer.getData("application/fabric")):{},f=s[Math.max(0,s.length-1)],l=0;if(this.__dragStartSelection){let h=this.__dragStartSelection.selectionStart,d=this.__dragStartSelection.selectionEnd;u>h&&u<=d?u=h:u>d&&(u-=d-h),o.removeChars(h,d),delete this.__dragStartSelection}o._reNewline.test(f)&&(o._reNewline.test(o._text[u])||u===o._text.length)&&(s=s.trimEnd()),e.didDrop=!0,e.dropTarget=o,o.insertChars(s,c,u),a.setActiveObject(o),o.enterEditing(n),o.selectionStart=Math.min(u+l,o._text.length),o.selectionEnd=Math.min(o.selectionStart+s.length,o._text.length),o.hiddenTextarea.value=o.text,o._updateTextarea(),o.hiddenTextarea.focus(),o.fire("changed",{index:u+l,action:"drop"}),a.fire("text:changed",{target:o}),a.contextTopDirty=!0,a.requestRenderAll()}}dragEndHandler(e){let{e:t}=e;if(this.isActive()&&this.__dragStartFired&&this.__dragStartSelection){var n;let i=this.target,s=this.target.canvas,{selectionStart:o,selectionEnd:a}=this.__dragStartSelection,u=((n=t.dataTransfer)===null||n===void 0?void 0:n.dropEffect)||ci;u===ci?(i.selectionStart=o,i.selectionEnd=a,i._updateTextarea(),i.hiddenTextarea.focus()):(i.clearContextTop(),u==="move"&&(i.removeChars(o,a),i.selectionStart=i.selectionEnd=o,i.hiddenTextarea&&(i.hiddenTextarea.value=i.text),i._updateTextarea(),i.fire("changed",{index:o,action:"dragend"}),s.fire("text:changed",{target:i}),s.requestRenderAll()),i.exitEditing())}this.__dragImageDisposer&&this.__dragImageDisposer(),delete this.__dragImageDisposer,delete this.__dragStartSelection,this.__isDraggingOver=!1}dispose(){this._dispose&&this._dispose()}},e5=/[ \n\.,;!\?\-]/,Ip=class extends In{constructor(){super(...arguments),W(this,"_currentCursorOpacity",1)}initBehavior(){this._tick=this._tick.bind(this),this._onTickComplete=this._onTickComplete.bind(this),this.updateSelectionOnMouseMove=this.updateSelectionOnMouseMove.bind(this)}onDeselect(e){return this.isEditing&&this.exitEditing(),this.selected=!1,super.onDeselect(e)}_animateCursor(e){let{toValue:t,duration:n,delay:i,onComplete:s}=e;return $p({startValue:this._currentCursorOpacity,endValue:t,duration:n,delay:i,onComplete:s,abort:()=>!this.canvas||this.selectionStart!==this.selectionEnd,onChange:o=>{this._currentCursorOpacity=o,this.renderCursorOrSelection()}})}_tick(e){this._currentTickState=this._animateCursor({toValue:1,duration:this.cursorDuration,delay:e,onComplete:this._onTickComplete})}_onTickComplete(){var e;(e=this._currentTickCompleteState)===null||e===void 0||e.abort(),this._currentTickCompleteState=this._animateCursor({toValue:0,duration:this.cursorDuration/2,delay:100,onComplete:this._tick})}initDelayedCursor(e){this.abortCursorAnimation(),this._tick(e?0:this.cursorDelay)}abortCursorAnimation(){let e=!1;[this._currentTickState,this._currentTickCompleteState].forEach(t=>{t&&!t.isDone()&&(e=!0,t.abort())}),this._currentCursorOpacity=1,e&&this.clearContextTop()}restartCursorIfNeeded(){[this._currentTickState,this._currentTickCompleteState].some(e=>!e||e.isDone())&&this.initDelayedCursor()}selectAll(){return this.selectionStart=0,this.selectionEnd=this._text.length,this._fireSelectionChanged(),this._updateTextarea(),this}getSelectedText(){return this._text.slice(this.selectionStart,this.selectionEnd).join("")}findWordBoundaryLeft(e){let t=0,n=e-1;if(this._reSpace.test(this._text[n]))for(;this._reSpace.test(this._text[n]);)t++,n--;for(;/\S/.test(this._text[n])&&n>-1;)t++,n--;return e-t}findWordBoundaryRight(e){let t=0,n=e;if(this._reSpace.test(this._text[n]))for(;this._reSpace.test(this._text[n]);)t++,n++;for(;/\S/.test(this._text[n])&&n-1;)t++,n--;return e-t}findLineBoundaryRight(e){let t=0,n=e;for(;!/\n/.test(this._text[n])&&n0&&this._reSpace.test(n[e])&&(t===-1||!Hp.test(n[e-1]))?e-1:e,s=n[i];for(;i>0&&ithis.__selectionStartOnMouseDown?(this.selectionStart=this.__selectionStartOnMouseDown,this.selectionEnd=n):(this.selectionStart=n,this.selectionEnd=this.__selectionStartOnMouseDown),this.selectionStart===i&&this.selectionEnd===s||(this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()))}_setEditingProps(){this.hoverCursor="text",this.canvas&&(this.canvas.defaultCursor=this.canvas.moveCursor="text"),this.borderColor=this.editingBorderColor,this.hasControls=this.selectable=!1,this.lockMovementX=this.lockMovementY=!0}fromStringToGraphemeSelection(e,t,n){let i=n.slice(0,e),s=this.graphemeSplit(i).length;if(e===t)return{selectionStart:s,selectionEnd:s};let o=n.slice(e,t);return{selectionStart:s,selectionEnd:s+this.graphemeSplit(o).length}}fromGraphemeToStringSelection(e,t,n){let i=n.slice(0,e).join("").length;return e===t?{selectionStart:i,selectionEnd:i}:{selectionStart:i,selectionEnd:i+n.slice(e,t).join("").length}}_updateTextarea(){if(this.cursorOffsetCache={},this.hiddenTextarea){if(!this.inCompositionMode){let e=this.fromGraphemeToStringSelection(this.selectionStart,this.selectionEnd,this._text);this.hiddenTextarea.selectionStart=e.selectionStart,this.hiddenTextarea.selectionEnd=e.selectionEnd}this.updateTextareaPosition()}}updateFromTextArea(){if(!this.hiddenTextarea)return;this.cursorOffsetCache={};let e=this.hiddenTextarea;this.text=e.value,this.set("dirty",!0),this.initDimensions(),this.setCoords();let t=this.fromStringToGraphemeSelection(e.selectionStart,e.selectionEnd,e.value);this.selectionEnd=this.selectionStart=t.selectionEnd,this.inCompositionMode||(this.selectionStart=t.selectionStart),this.updateTextareaPosition()}updateTextareaPosition(){if(this.selectionStart===this.selectionEnd){let e=this._calcTextareaPosition();this.hiddenTextarea.style.left=e.left,this.hiddenTextarea.style.top=e.top}}_calcTextareaPosition(){if(!this.canvas)return{left:"1px",top:"1px"};let e=this.inCompositionMode?this.compositionStart:this.selectionStart,t=this._getCursorBoundaries(e),n=this.get2DCursorLocation(e),i=n.lineIndex,s=n.charIndex,o=this.getValueOfPropertyAt(i,s,"fontSize")*this.lineHeight,a=t.leftOffset,u=this.getCanvasRetinaScaling(),c=this.canvas.upperCanvasEl,f=c.width/u,l=c.height/u,h=f-o,d=l-o,x=new oe(t.left+a,t.top+t.topOffset+o).transform(this.calcTransformMatrix()).transform(this.canvas.viewportTransform).multiply(new oe(c.clientWidth/f,c.clientHeight/l));return x.x<0&&(x.x=0),x.x>h&&(x.x=h),x.y<0&&(x.y=0),x.y>d&&(x.y=d),x.x+=this.canvas._offset.left,x.y+=this.canvas._offset.top,{left:"".concat(x.x,"px"),top:"".concat(x.y,"px"),fontSize:"".concat(o,"px"),charHeight:o}}_saveEditingProps(){this._savedProps={hasControls:this.hasControls,borderColor:this.borderColor,lockMovementX:this.lockMovementX,lockMovementY:this.lockMovementY,hoverCursor:this.hoverCursor,selectable:this.selectable,defaultCursor:this.canvas&&this.canvas.defaultCursor,moveCursor:this.canvas&&this.canvas.moveCursor}}_restoreEditingProps(){this._savedProps&&(this.hoverCursor=this._savedProps.hoverCursor,this.hasControls=this._savedProps.hasControls,this.borderColor=this._savedProps.borderColor,this.selectable=this._savedProps.selectable,this.lockMovementX=this._savedProps.lockMovementX,this.lockMovementY=this._savedProps.lockMovementY,this.canvas&&(this.canvas.defaultCursor=this._savedProps.defaultCursor||this.canvas.defaultCursor,this.canvas.moveCursor=this._savedProps.moveCursor||this.canvas.moveCursor),delete this._savedProps)}_exitEditing(){let e=this.hiddenTextarea;this.selected=!1,this.isEditing=!1,e&&(e.blur&&e.blur(),e.parentNode&&e.parentNode.removeChild(e)),this.hiddenTextarea=null,this.abortCursorAnimation(),this.selectionStart!==this.selectionEnd&&this.clearContextTop()}exitEditing(){let e=this._textBeforeEdit!==this.text;return this._exitEditing(),this.selectionEnd=this.selectionStart,this._restoreEditingProps(),this._forceClearCache&&(this.initDimensions(),this.setCoords()),this.fire("editing:exited"),e&&this.fire("modified"),this.canvas&&(this.canvas.fire("text:editing:exited",{target:this}),e&&this.canvas.fire("object:modified",{target:this})),this}_removeExtraneousStyles(){for(let e in this.styles)this._textLines[e]||delete this.styles[e]}removeStyleFromTo(e,t){let{lineIndex:n,charIndex:i}=this.get2DCursorLocation(e,!0),{lineIndex:s,charIndex:o}=this.get2DCursorLocation(t,!0);if(n!==s){if(this.styles[n])for(let a=i;a=o&&(a[f-u]=a[c],delete a[c])}}}shiftLineStyles(e,t){let n=Object.assign({},this.styles);for(let i in this.styles){let s=parseInt(i,10);s>e&&(this.styles[s+t]=n[s],n[s-t]||delete this.styles[s])}}insertNewlineStyleObject(e,t,n,i){let s={},o=this._unwrappedTextLines[e].length,a=o===t,u=!1;n||(n=1),this.shiftLineStyles(e,n);let c=this.styles[e]?this.styles[e][t===0?t:t-1]:void 0;for(let l in this.styles[e]){let h=parseInt(l,10);h>=t&&(u=!0,s[h-t]=this.styles[e][l],a&&t===0||delete this.styles[e][l])}let f=!1;for(u&&!a&&(this.styles[e+n]=s,f=!0),(f||o>t)&&n--;n>0;)i&&i[n-1]?this.styles[e+n]={0:j({},i[n-1])}:c?this.styles[e+n]={0:j({},c)}:delete this.styles[e+n],n--;this._forceClearCache=!0}insertCharStyleObject(e,t,n,i){this.styles||(this.styles={});let s=this.styles[e],o=s?j({},s):{};n||(n=1);for(let u in o){let c=parseInt(u,10);c>=t&&(s[c+n]=o[c],o[c-n]||delete s[c])}if(this._forceClearCache=!0,i){for(;n--;)Object.keys(i[n]).length&&(this.styles[e]||(this.styles[e]={}),this.styles[e][t+n]=j({},i[n]));return}if(!s)return;let a=s[t?t-1:1];for(;a&&n--;)this.styles[e][t+n]=j({},a)}insertNewStyleBlock(e,t,n){let i=this.get2DCursorLocation(t,!0),s=[0],o,a=0;for(let u=0;u0&&(this.insertCharStyleObject(i.lineIndex,i.charIndex,s[0],n),n=n&&n.slice(s[0]+1)),a&&this.insertNewlineStyleObject(i.lineIndex,i.charIndex+s[0],a),o=1;o0?this.insertCharStyleObject(i.lineIndex+o,0,s[o],n):n&&this.styles[i.lineIndex+o]&&n[0]&&(this.styles[i.lineIndex+o][0]=n[0]),n=n&&n.slice(s[o]+1);s[o]>0&&this.insertCharStyleObject(i.lineIndex+o,0,s[o],n)}removeChars(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e+1;this.removeStyleFromTo(e,t),this._text.splice(e,t-e),this.text=this._text.join(""),this.set("dirty",!0),this.initDimensions(),this.setCoords(),this._removeExtraneousStyles()}insertChars(e,t,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:n;i>n&&this.removeStyleFromTo(n,i);let s=this.graphemeSplit(e);this.insertNewStyleBlock(s,n,t),this._text=[...this._text.slice(0,n),...s,...this._text.slice(i)],this.text=this._text.join(""),this.set("dirty",!0),this.initDimensions(),this.setCoords(),this._removeExtraneousStyles()}setSelectionStartEndWithShift(e,t,n){n<=e?(t===e?this._selectionDirection=It:this._selectionDirection===Dn&&(this._selectionDirection=It,this.selectionEnd=e),this.selectionStart=n):n>e&&n{let[a,u]=o;return t.setAttribute(a,u)});let{top:n,left:i,fontSize:s}=this._calcTextareaPosition();t.style.cssText="position: absolute; top: ".concat(n,"; left: ").concat(i,"; z-index: -999; opacity: 0; width: 1px; height: 1px; font-size: 1px; padding-top: ").concat(s,";"),(this.hiddenTextareaContainer||e.body).appendChild(t),Object.entries({blur:"blur",keydown:"onKeyDown",keyup:"onKeyUp",input:"onInput",copy:"copy",cut:"copy",paste:"paste",compositionstart:"onCompositionStart",compositionupdate:"onCompositionUpdate",compositionend:"onCompositionEnd"}).map(o=>{let[a,u]=o;return t.addEventListener(a,this[u].bind(this))}),this.hiddenTextarea=t}blur(){this.abortCursorAnimation()}onKeyDown(e){if(!this.isEditing)return;let t=this.direction==="rtl"?this.keysMapRtl:this.keysMap;if(e.keyCode in t)this[t[e.keyCode]](e);else{if(!(e.keyCode in this.ctrlKeysMapDown)||!e.ctrlKey&&!e.metaKey)return;this[this.ctrlKeysMapDown[e.keyCode]](e)}e.stopImmediatePropagation(),e.preventDefault(),e.keyCode>=33&&e.keyCode<=40?(this.inCompositionMode=!1,this.clearContextTop(),this.renderCursorOrSelection()):this.canvas&&this.canvas.requestRenderAll()}onKeyUp(e){!this.isEditing||this._copyDone||this.inCompositionMode?this._copyDone=!1:e.keyCode in this.ctrlKeysMapUp&&(e.ctrlKey||e.metaKey)&&(this[this.ctrlKeysMapUp[e.keyCode]](e),e.stopImmediatePropagation(),e.preventDefault(),this.canvas&&this.canvas.requestRenderAll())}onInput(e){let t=this.fromPaste;if(this.fromPaste=!1,e&&e.stopPropagation(),!this.isEditing)return;let n=()=>{this.updateFromTextArea(),this.fire("changed"),this.canvas&&(this.canvas.fire("text:changed",{target:this}),this.canvas.requestRenderAll())};if(this.hiddenTextarea.value==="")return this.styles={},void n();let i=this._splitTextIntoLines(this.hiddenTextarea.value).graphemeText,s=this._text.length,o=i.length,a=this.selectionStart,u=this.selectionEnd,c=a!==u,f,l,h,d,x=o-s,m=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value),D=a>m.selectionStart;c?(l=this._text.slice(a,u),x+=u-a):of[0])),c?(h=a,d=u):D?(h=u-l.length,d=u):(h=u,d=u+l.length),this.removeStyleFromTo(h,d)),p.length){let{copyPasteData:C}=br();t&&p.join("")===C.copiedText&&!Tt.disableStyleCopyPaste&&(f=C.copiedTextStyle),this.insertNewStyleBlock(p,a,f)}n()}onCompositionStart(){this.inCompositionMode=!0}onCompositionEnd(){this.inCompositionMode=!1}onCompositionUpdate(e){let{target:t}=e,{selectionStart:n,selectionEnd:i}=t;this.compositionStart=n,this.compositionEnd=i,this.updateTextareaPosition()}copy(){if(this.selectionStart===this.selectionEnd)return;let{copyPasteData:e}=br();e.copiedText=this.getSelectedText(),Tt.disableStyleCopyPaste?e.copiedTextStyle=void 0:e.copiedTextStyle=this.getSelectionStyles(this.selectionStart,this.selectionEnd,!0),this._copyDone=!0}paste(){this.fromPaste=!0}_getWidthBeforeCursor(e,t){let n,i=this._getLineLeftOffset(e);return t>0&&(n=this.__charBounds[e][t-1],i+=n.left+n.width),i}getDownCursorOffset(e,t){let n=this._getSelectionForOffset(e,t),i=this.get2DCursorLocation(n),s=i.lineIndex;if(s===this._textLines.length-1||e.metaKey||e.keyCode===34)return this._text.length-n;let o=i.charIndex,a=this._getWidthBeforeCursor(s,o),u=this._getIndexOnLine(s+1,a);return this._textLines[s].slice(o).length+u+1+this.missingNewlineOffset(s)}_getSelectionForOffset(e,t){return e.shiftKey&&this.selectionStart!==this.selectionEnd&&t?this.selectionEnd:this.selectionStart}getUpCursorOffset(e,t){let n=this._getSelectionForOffset(e,t),i=this.get2DCursorLocation(n),s=i.lineIndex;if(s===0||e.metaKey||e.keyCode===33)return-n;let o=i.charIndex,a=this._getWidthBeforeCursor(s,o),u=this._getIndexOnLine(s-1,a),c=this._textLines[s].slice(0,o),f=this.missingNewlineOffset(s-1);return-this._textLines[s-1].length+u-c.length+(1-f)}_getIndexOnLine(e,t){let n=this._textLines[e],i,s,o=this._getLineLeftOffset(e),a=0;for(let u=0,c=n.length;ut){s=!0;let f=o-i,l=o,h=Math.abs(f-t);a=Math.abs(l-t)=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorUpOrDown("Down",e)}moveCursorUp(e){this.selectionStart===0&&this.selectionEnd===0||this._moveCursorUpOrDown("Up",e)}_moveCursorUpOrDown(e,t){let n=this["get".concat(e,"CursorOffset")](t,this._selectionDirection===Dn);if(t.shiftKey?this.moveCursorWithShift(n):this.moveCursorWithoutShift(n),n!==0){let i=this.text.length;this.selectionStart=vo(0,this.selectionStart,i),this.selectionEnd=vo(0,this.selectionEnd,i),this.abortCursorAnimation(),this._currentCursorOpacity=1,this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea()}}moveCursorWithShift(e){let t=this._selectionDirection===It?this.selectionStart+e:this.selectionEnd+e;return this.setSelectionStartEndWithShift(this.selectionStart,this.selectionEnd,t),e!==0}moveCursorWithoutShift(e){return e<0?(this.selectionStart+=e,this.selectionEnd=this.selectionStart):(this.selectionEnd+=e,this.selectionStart=this.selectionEnd),e!==0}moveCursorLeft(e){this.selectionStart===0&&this.selectionEnd===0||this._moveCursorLeftOrRight("Left",e)}_move(e,t,n){let i;if(e.altKey)i=this["findWordBoundary".concat(n)](this[t]);else{if(!e.metaKey&&e.keyCode!==35&&e.keyCode!==36)return this[t]+=n==="Left"?-1:1,!0;i=this["findLineBoundary".concat(n)](this[t])}return i!==void 0&&this[t]!==i&&(this[t]=i,!0)}_moveLeft(e,t){return this._move(e,t,"Left")}_moveRight(e,t){return this._move(e,t,"Right")}moveCursorLeftWithoutShift(e){let t=!0;return this._selectionDirection=It,this.selectionEnd===this.selectionStart&&this.selectionStart!==0&&(t=this._moveLeft(e,"selectionStart")),this.selectionEnd=this.selectionStart,t}moveCursorLeftWithShift(e){return this._selectionDirection===Dn&&this.selectionStart!==this.selectionEnd?this._moveLeft(e,"selectionEnd"):this.selectionStart!==0?(this._selectionDirection=It,this._moveLeft(e,"selectionStart")):void 0}moveCursorRight(e){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorLeftOrRight("Right",e)}_moveCursorLeftOrRight(e,t){let n="moveCursor".concat(e).concat(t.shiftKey?"WithShift":"WithoutShift");this._currentCursorOpacity=1,this[n](t)&&(this.abortCursorAnimation(),this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())}moveCursorRightWithShift(e){return this._selectionDirection===It&&this.selectionStart!==this.selectionEnd?this._moveRight(e,"selectionStart"):this.selectionEnd!==this._text.length?(this._selectionDirection=Dn,this._moveRight(e,"selectionEnd")):void 0}moveCursorRightWithoutShift(e){let t=!0;return this._selectionDirection=Dn,this.selectionStart===this.selectionEnd?(t=this._moveRight(e,"selectionStart"),this.selectionEnd=this.selectionStart):this.selectionStart=this.selectionEnd,t}},sp=r=>!!r.button,Op=class extends Rp{constructor(){super(...arguments),W(this,"draggableTextDelegate",void 0)}initBehavior(){this.on("mousedown",this._mouseDownHandler),this.on("mousedown:before",this._mouseDownHandlerBefore),this.on("mouseup",this.mouseUpHandler),this.on("mousedblclick",this.doubleClickHandler),this.on("tripleclick",this.tripleClickHandler),this.__lastClickTime=+new Date,this.__lastLastClickTime=+new Date,this.__lastPointer={},this.on("mousedown",this.onMouseDown),this.draggableTextDelegate=new Pp(this),super.initBehavior()}shouldStartDragging(){return this.draggableTextDelegate.isActive()}onDragStart(e){return this.draggableTextDelegate.onDragStart(e)}canDrop(e){return this.draggableTextDelegate.canDrop(e)}onMouseDown(e){if(!this.canvas)return;this.__newClickTime=+new Date;let t=e.pointer;this.isTripleClick(t)&&(this.fire("tripleclick",e),Dp(e.e)),this.__lastLastClickTime=this.__lastClickTime,this.__lastClickTime=this.__newClickTime,this.__lastPointer=t,this.__lastSelected=this.selected&&!this.getActiveControl()}isTripleClick(e){return this.__newClickTime-this.__lastClickTime<500&&this.__lastClickTime-this.__lastLastClickTime<500&&this.__lastPointer.x===e.x&&this.__lastPointer.y===e.y}doubleClickHandler(e){this.isEditing&&this.selectWord(this.getSelectionStartFromPointer(e.e))}tripleClickHandler(e){this.isEditing&&this.selectLine(this.getSelectionStartFromPointer(e.e))}_mouseDownHandler(e){let{e:t}=e;this.canvas&&this.editable&&!sp(t)&&!this.getActiveControl()&&(this.draggableTextDelegate.start(t)||(this.canvas.textEditingManager.register(this),this.selected&&(this.inCompositionMode=!1,this.setCursorByClick(t)),this.isEditing&&(this.__selectionStartOnMouseDown=this.selectionStart,this.selectionStart===this.selectionEnd&&this.abortCursorAnimation(),this.renderCursorOrSelection())))}_mouseDownHandlerBefore(e){let{e:t}=e;this.canvas&&this.editable&&!sp(t)&&(this.selected=this===this.canvas._activeObject)}mouseUpHandler(e){let{e:t,transform:n}=e,i=this.draggableTextDelegate.end(t);if(this.canvas){this.canvas.textEditingManager.unregister(this);let s=this.canvas._activeObject;if(s&&s!==this)return}!this.editable||this.group&&!this.group.interactive||n&&n.actionPerformed||sp(t)||i||(this.__lastSelected&&!this.getActiveControl()?(this.selected=!1,this.__lastSelected=!1,this.enterEditing(t),this.selectionStart===this.selectionEnd?this.initDelayedCursor(!0):this.renderCursorOrSelection()):this.selected=!0)}setCursorByClick(e){let t=this.getSelectionStartFromPointer(e),n=this.selectionStart,i=this.selectionEnd;e.shiftKey?this.setSelectionStartEndWithShift(n,i,t):(this.selectionStart=t,this.selectionEnd=t),this.isEditing&&(this._fireSelectionChanged(),this._updateTextarea())}getSelectionStartFromPointer(e){let t=this.canvas.getScenePoint(e).transform(_i(this.calcTransformMatrix())).add(new oe(-this._getLeftOffset(),-this._getTopOffset())),n=0,i=0,s=0;for(let c=0;c0&&(i+=this._textLines[c-1].length+this.missingNewlineOffset(c-1));let o=Math.abs(this._getLineLeftOffset(s)),a=this._textLines[s].length,u=this.__charBounds[s];for(let c=0;c0&&arguments[0]!==void 0?arguments[0]:this.selectionStart||0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selectionEnd,n=arguments.length>2?arguments[2]:void 0;return super.getSelectionStyles(e,t,n)}setSelectionStyles(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selectionStart||0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.selectionEnd;return super.setSelectionStyles(e,t,n)}get2DCursorLocation(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.selectionStart,t=arguments.length>1?arguments[1]:void 0;return super.get2DCursorLocation(e,t)}render(e){super.render(e),this.cursorOffsetCache={},this.renderCursorOrSelection()}toCanvasElement(e){let t=this.isEditing;this.isEditing=!1;let n=super.toCanvasElement(e);return this.isEditing=t,n}renderCursorOrSelection(){if(!this.isEditing)return;let e=this.clearContextTop(!0);if(!e)return;let t=this._getCursorBoundaries();this.selectionStart===this.selectionEnd?this.renderCursor(e,t):this.renderSelection(e,t),this.canvas.contextTopDirty=!0,e.restore()}_getCursorBoundaries(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.selectionStart,t=arguments.length>1?arguments[1]:void 0,n=this._getLeftOffset(),i=this._getTopOffset(),s=this._getCursorBoundariesOffsets(e,t);return{left:n,top:i,leftOffset:s.left,topOffset:s.top}}_getCursorBoundariesOffsets(e,t){return t?this.__getCursorBoundariesOffsets(e):this.cursorOffsetCache&&"top"in this.cursorOffsetCache?this.cursorOffsetCache:this.cursorOffsetCache=this.__getCursorBoundariesOffsets(e)}__getCursorBoundariesOffsets(e){let t=0,n=0,{charIndex:i,lineIndex:s}=this.get2DCursorLocation(e);for(let c=0;c0?n:0)};return this.direction==="rtl"&&(this.textAlign===Dn||this.textAlign===_r||this.textAlign===X0?u.left*=-1:this.textAlign===It||this.textAlign===n1?u.left=o-(n>0?n:0):this.textAlign!==vt&&this.textAlign!==q0||(u.left=o-(n>0?n:0))),u}renderCursorAt(e){let t=this._getCursorBoundaries(e,!0);this._renderCursor(this.canvas.contextTop,t,e)}renderCursor(e,t){this._renderCursor(e,t,this.selectionStart)}_renderCursor(e,t,n){let i=this.get2DCursorLocation(n),s=i.lineIndex,o=i.charIndex>0?i.charIndex-1:0,a=this.getValueOfPropertyAt(s,o,"fontSize"),u=this.getObjectScaling().x*this.canvas.getZoom(),c=this.cursorWidth/u,f=this.getValueOfPropertyAt(s,o,"deltaY"),l=t.topOffset+(1-this._fontSizeFraction)*this.getHeightOfLine(s)/this.lineHeight-a*(1-this._fontSizeFraction);this.inCompositionMode&&this.renderSelection(e,t),e.fillStyle=this.cursorColor||this.getValueOfPropertyAt(s,o,"fill"),e.globalAlpha=this._currentCursorOpacity,e.fillRect(t.left+t.leftOffset-c/2,l+t.top+f,c,a)}renderSelection(e,t){let n={selectionStart:this.inCompositionMode?this.hiddenTextarea.selectionStart:this.selectionStart,selectionEnd:this.inCompositionMode?this.hiddenTextarea.selectionEnd:this.selectionEnd};this._renderSelection(e,n,t)}renderDragSourceEffect(){let e=this.draggableTextDelegate.getDragStartSelection();this._renderSelection(this.canvas.contextTop,e,this._getCursorBoundaries(e.selectionStart,!0))}renderDropTargetEffect(e){let t=this.getSelectionStartFromPointer(e);this.renderCursorAt(t)}_renderSelection(e,t,n){let i=t.selectionStart,s=t.selectionEnd,o=this.textAlign.includes(_r),a=this.get2DCursorLocation(i),u=this.get2DCursorLocation(s),c=a.lineIndex,f=u.lineIndex,l=a.charIndex<0?0:a.charIndex,h=u.charIndex<0?0:u.charIndex;for(let d=c;d<=f;d++){let x=this._getLineLeftOffset(d)||0,m=this.getHeightOfLine(d),D=0,p=0,C=0;if(d===c&&(p=this.__charBounds[c][l].left),d>=c&&d1)&&(m/=this.lineHeight);let g=n.left+x+p,E=m,y=0,v=C-p;this.inCompositionMode?(e.fillStyle=this.compositionColor||"black",E=1,y=m):e.fillStyle=this.selectionColor,this.direction==="rtl"&&(this.textAlign===Dn||this.textAlign===_r||this.textAlign===X0?g=this.width-g-v:this.textAlign===It||this.textAlign===n1?g=n.left+x-C:this.textAlign!==vt&&this.textAlign!==q0||(g=n.left+x-C)),e.fillRect(g,n.top+n.topOffset+y,v,E),n.topOffset+=D}}getCurrentCharFontSize(){let e=this._getCurrentCharIndex();return this.getValueOfPropertyAt(e.l,e.c,"fontSize")}getCurrentCharColor(){let e=this._getCurrentCharIndex();return this.getValueOfPropertyAt(e.l,e.c,"fill")}_getCurrentCharIndex(){let e=this.get2DCursorLocation(this.selectionStart,!0),t=e.charIndex>0?e.charIndex-1:0;return{l:e.lineIndex,c:t}}dispose(){this._exitEditing(),this.draggableTextDelegate.dispose(),super.dispose()}};W(Ts,"ownDefaults",EM),W(Ts,"type","IText"),Ge.setClass(Ts),Ge.setClass(Ts,"i-text");var Xa=class r extends Ts{static getDefaults(){return j(j({},super.getDefaults()),{},{controls:j5()},r.ownDefaults)}initDimensions(){this.initialized&&(this.isEditing&&this.initDelayedCursor(),this._clearCache(),this.dynamicMinWidth=0,this._styleMap=this._generateStyleMap(this._splitText()),this.dynamicMinWidth>this.width&&this._set("width",this.dynamicMinWidth),this.textAlign.includes(_r)&&this.enlargeSpaces(),this.height=this.calcTextHeight())}_generateStyleMap(e){let t=0,n=0,i=0,s={};for(let o=0;o0?(n=0,i++,t++):!this.splitByGrapheme&&this._reSpaceAndTab.test(e.graphemeText[i])&&o>0&&(n++,i++),s[o]={line:t,offset:n},i+=e.graphemeLines[o].length,n+=e.graphemeLines[o].length;return s}styleHas(e,t){if(this._styleMap&&!this.isWrapping){let n=this._styleMap[t];n&&(t=n.line)}return super.styleHas(e,t)}isEmptyStyles(e){if(!this.styles)return!0;let t,n=0,i=e+1,s=!1,o=this._styleMap[e],a=this._styleMap[e+1];o&&(e=o.line,n=o.offset),a&&(i=a.line,s=i===e,t=a.offset);let u=e===void 0?this.styles:{line:this.styles[e]};for(let c in u)for(let f in u[c]){let l=parseInt(f,10);if(l>=n&&(!s||l{let a=0,u=t?this.graphemeSplit(s):this.wordSplit(s);return u.length===0?[{word:[],width:0}]:u.map(c=>{let f=t?[c]:this.graphemeSplit(c),l=this._measureWord(f,o,a);return i=Math.max(l,i),a+=f.length+n.length,{word:f,width:l}})}),largestWordWidth:i}}_measureWord(e,t){let n,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,s=0;for(let o=0,a=e.length;o3&&arguments[3]!==void 0?arguments[3]:0,a=this._getWidthOfCharSpacing(),u=this.splitByGrapheme,c=[],f=u?"":" ",l=0,h=[],d=0,x=0,m=!0;t-=o;let D=Math.max(t,i,this.dynamicMinWidth),p=s[e],C;for(d=0,C=0;CD&&!m?(c.push(h),h=[],l=E,m=!0):l+=a,m||u||h.push(f),h=h.concat(g),x=u?0:this._measureWord([f],e,d),d++,m=!1}return C&&c.push(h),i+o>this.dynamicMinWidth&&(this.dynamicMinWidth=i-a+o),c}isEndOfWrapping(e){return!this._styleMap[e+1]||this._styleMap[e+1].line!==this._styleMap[e].line}missingNewlineOffset(e,t){return this.splitByGrapheme&&!t?this.isEndOfWrapping(e)?1:0:1}_splitTextIntoLines(e){let t=super._splitTextIntoLines(e),n=this._wrapText(t.lines,this.width),i=new Array(n.length);for(let s=0;s0&&arguments[0]!==void 0?arguments[0]:[];return super.toObject(["minWidth","splitByGrapheme",...e])}};W(Xa,"type","Textbox"),W(Xa,"textLayoutProperties",[...Ts.textLayoutProperties,"width"]),W(Xa,"ownDefaults",{minWidth:20,dynamicMinWidth:2,lockScalingFlip:!0,noScaleCache:!1,_wordJoiners:/[ \t\r]/,splitByGrapheme:!1}),Ge.setClass(Xa);var r1=class extends Du{shouldPerformLayout(e){return!!e.target.clipPath&&super.shouldPerformLayout(e)}shouldLayoutClipPath(){return!1}calcLayoutResult(e,t){let{target:n}=e,{clipPath:i}=n;if(!i||!this.shouldPerformLayout(e))return;let{width:s,height:o}=yr(Q5(n,i)),a=new oe(s,o);if(i.absolutePositioned){var u;return{center:ks(i.getRelativeCenterPoint(),void 0,(u=n.group)===null||u===void 0?void 0:u.calcTransformMatrix()),size:a}}{let c=i.getRelativeCenterPoint().transform(n.calcOwnMatrix(),!0);if(this.shouldPerformLayout(e)){let{center:f=new oe,correction:l=new oe}=this.calcBoundingBox(t,e)||{};return{center:f.add(c),correction:l.subtract(c),size:a}}return{center:n.getRelativeCenterPoint().add(c),size:a}}}};W(r1,"type","clip-path"),Ge.setClass(r1);var s1=class extends Du{getInitialSize(e,t){let{target:n}=e,{size:i}=t;return new oe(n.width||i.x,n.height||i.y)}};W(s1,"type","fixed"),Ge.setClass(s1);var Lp=class extends yo{subscribeTargets(e){let t=e.target;e.targets.reduce((n,i)=>(i.parent&&n.add(i.parent),n),new Set).forEach(n=>{n.layoutManager.subscribeTargets({target:n,targets:[t]})})}unsubscribeTargets(e){let t=e.target,n=t.getObjects();e.targets.reduce((i,s)=>(s.parent&&i.add(s.parent),i),new Set).forEach(i=>{!n.some(s=>s.parent===i)&&i.layoutManager.unsubscribeTargets({target:i,targets:[t]})})}},qa=class r extends Ps{static getDefaults(){return j(j({},super.getDefaults()),r.ownDefaults)}constructor(){var e;let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],j(j({},t),{},{layoutManager:(e=t.layoutManager)!==null&&e!==void 0?e:new Lp}))}_shouldSetNestedCoords(){return!0}__objectSelectionMonitor(){}multiSelectAdd(){for(var e=arguments.length,t=new Array(e),n=0;n{let s=this._objects.findIndex(a=>a.isInFrontOf(i)),o=s===-1?this.size():s;this.insertAt(o,i)})}canEnterGroup(e){return this.getObjects().some(t=>t.isDescendantOf(e)||e.isDescendantOf(t))?(Rs("error","ActiveSelection: circular object trees are not supported, this call has no effect"),!1):super.canEnterGroup(e)}enterGroup(e,t){e.parent&&e.parent===e.group?e.parent._exitGroup(e):e.group&&e.parent!==e.group&&e.group.remove(e),this._enterGroup(e,t)}exitGroup(e,t){this._exitGroup(e,t),e.parent&&e.parent._enterGroup(e,!0)}_onAfterObjectsChange(e,t){super._onAfterObjectsChange(e,t);let n=new Set;t.forEach(i=>{let{parent:s}=i;s&&n.add(s)}),e===t2?n.forEach(i=>{i._onAfterObjectsChange(Jl,t)}):n.forEach(i=>{i._set("dirty",!0)})}onDeselect(){return this.removeAll(),!1}toString(){return"#")}shouldCache(){return!1}isOnACache(){return!1}_renderControls(e,t,n){e.save(),e.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1,super._renderControls(e,t);let i=j(j({hasControls:!1},n),{},{forActiveSelection:!0});for(let s=0;s{c.applyTo(a)});let{imageData:u}=a;return u.width===n&&u.height===i||(s.width=u.width,s.height=u.height),o.putImageData(u,0,0),a}},o1=class{constructor(){let{tileSize:e=Tt.textureSize}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};W(this,"aPosition",new Float32Array([0,0,0,1,1,0,1,1])),W(this,"resources",{}),this.tileSize=e,this.setupGLContext(e,e),this.captureGPUInfo()}setupGLContext(e,t){this.dispose(),this.createWebGLCanvas(e,t)}createWebGLCanvas(e,t){let n=pn();n.width=e,n.height=t;let i=n.getContext("webgl",{alpha:!0,premultipliedAlpha:!1,depth:!1,stencil:!1,antialias:!1});i&&(i.clearColor(0,0,0,0),this.canvas=n,this.gl=i)}applyFilters(e,t,n,i,s,o){let a=this.gl,u=s.getContext("2d");if(!a||!u)return;let c;o&&(c=this.getCachedTexture(o,t));let f={originalWidth:t.width||t.originalWidth||0,originalHeight:t.height||t.originalHeight||0,sourceWidth:n,sourceHeight:i,destinationWidth:n,destinationHeight:i,context:a,sourceTexture:this.createTexture(a,n,i,c?void 0:t),targetTexture:this.createTexture(a,n,i),originalTexture:c||this.createTexture(a,n,i,c?void 0:t),passes:e.length,webgl:!0,aPosition:this.aPosition,programCache:this.programCache,pass:0,filterBackend:this,targetCanvas:s},l=a.createFramebuffer();return a.bindFramebuffer(a.FRAMEBUFFER,l),e.forEach(h=>{h&&h.applyTo(f)}),function(h){let d=h.targetCanvas,x=d.width,m=d.height,D=h.destinationWidth,p=h.destinationHeight;x===D&&m===p||(d.width=D,d.height=p)}(f),this.copyGLTo2D(a,f),a.bindTexture(a.TEXTURE_2D,null),a.deleteTexture(f.sourceTexture),a.deleteTexture(f.targetTexture),a.deleteFramebuffer(l),u.setTransform(1,0,0,1,0,0),f}dispose(){this.canvas&&(this.canvas=null,this.gl=null),this.clearWebGLCaches()}clearWebGLCaches(){this.programCache={},this.textureCache={}}createTexture(e,t,n,i,s){let{NEAREST:o,TEXTURE_2D:a,RGBA:u,UNSIGNED_BYTE:c,CLAMP_TO_EDGE:f,TEXTURE_MAG_FILTER:l,TEXTURE_MIN_FILTER:h,TEXTURE_WRAP_S:d,TEXTURE_WRAP_T:x}=e,m=e.createTexture();return e.bindTexture(a,m),e.texParameteri(a,l,s||o),e.texParameteri(a,h,s||o),e.texParameteri(a,d,f),e.texParameteri(a,x,f),i?e.texImage2D(a,0,u,u,c,i):e.texImage2D(a,0,u,t,n,0,u,c,null),m}getCachedTexture(e,t,n){let{textureCache:i}=this;if(i[e])return i[e];{let s=this.createTexture(this.gl,t.width,t.height,t,n);return s&&(i[e]=s),s}}evictCachesForKey(e){this.textureCache[e]&&(this.gl.deleteTexture(this.textureCache[e]),delete this.textureCache[e])}copyGLTo2D(e,t){let n=e.canvas,i=t.targetCanvas,s=i.getContext("2d");if(!s)return;s.translate(0,i.height),s.scale(1,-1);let o=n.height-i.height;s.drawImage(n,0,o,i.width,i.height,0,0,i.width,i.height)}copyGLTo2DPutImageData(e,t){let n=t.targetCanvas.getContext("2d"),i=t.destinationWidth,s=t.destinationHeight,o=i*s*4;if(!n)return;let a=new Uint8Array(this.imageBuffer,0,o),u=new Uint8ClampedArray(this.imageBuffer,0,o);e.readPixels(0,0,i,s,e.RGBA,e.UNSIGNED_BYTE,a);let c=new ImageData(u,i,s);n.putImageData(c,0,0)}captureGPUInfo(){if(this.gpuInfo)return this.gpuInfo;let e=this.gl,t={renderer:"",vendor:""};if(!e)return t;let n=e.getExtension("WEBGL_debug_renderer_info");if(n){let i=e.getParameter(n.UNMASKED_RENDERER_WEBGL),s=e.getParameter(n.UNMASKED_VENDOR_WEBGL);i&&(t.renderer=i.toLowerCase()),s&&(t.vendor=s.toLowerCase())}return this.gpuInfo=t,t}},op;function FM(){let{WebGLProbe:r}=br();return r.queryWebGL(pn()),Tt.enableGLFiltering&&r.isSupported(Tt.textureSize)?new o1({tileSize:Tt.textureSize}):new Np}function ap(){return!op&&(!(arguments.length>0&&arguments[0]!==void 0)||arguments[0])&&(op=FM()),op}var _M=["filters","resizeFilter","src","crossOrigin","type"],v8=["cropX","cropY"],zi=class r extends Tn{static getDefaults(){return j(j({},super.getDefaults()),r.ownDefaults)}constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(j({filters:[]},t)),W(this,"_lastScaleX",1),W(this,"_lastScaleY",1),W(this,"_filterScalingX",1),W(this,"_filterScalingY",1),this.cacheKey="texture".concat(Ls()),this.setElement(typeof e=="string"?(this.canvas&&nr(this.canvas.getElement())||pu()).getElementById(e):e,t)}getElement(){return this._element}setElement(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.removeTexture(this.cacheKey),this.removeTexture("".concat(this.cacheKey,"_filtered")),this._element=e,this._originalElement=e,this._setWidthHeight(t),e.classList.add(r.CSS_CANVAS),this.filters.length!==0&&this.applyFilters(),this.resizeFilter&&this.applyResizeFilters()}removeTexture(e){let t=ap(!1);t instanceof o1&&t.evictCachesForKey(e)}dispose(){super.dispose(),this.removeTexture(this.cacheKey),this.removeTexture("".concat(this.cacheKey,"_filtered")),this._cacheContext=null,["_originalElement","_element","_filteredEl","_cacheCanvas"].forEach(e=>{let t=this[e];t&&br().dispose(t),this[e]=void 0})}getCrossOrigin(){return this._originalElement&&(this._originalElement.crossOrigin||null)}getOriginalSize(){let e=this.getElement();return e?{width:e.naturalWidth||e.width,height:e.naturalHeight||e.height}:{width:0,height:0}}_stroke(e){if(!this.stroke||this.strokeWidth===0)return;let t=this.width/2,n=this.height/2;e.beginPath(),e.moveTo(-t,-n),e.lineTo(t,-n),e.lineTo(t,n),e.lineTo(-t,n),e.lineTo(-t,-n),e.closePath()}toObject(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=[];return this.filters.forEach(n=>{n&&t.push(n.toObject())}),j(j({},super.toObject([...v8,...e])),{},{src:this.getSrc(),crossOrigin:this.getCrossOrigin(),filters:t},this.resizeFilter?{resizeFilter:this.resizeFilter.toObject()}:{})}hasCrop(){return!!this.cropX||!!this.cropY||this.width +`,' +`,` +`),a=' clip-path="url(#imageCrop_'+c+')" '}if(this.imageSmoothing||(u=' image-rendering="optimizeSpeed"'),e.push(" +`)),this.stroke||this.strokeDashArray){let c=this.fill;this.fill=null,o=[' +`)],this.fill=c}return s=this.paintFirst!=="fill"?s.concat(o,e):s.concat(e,o),s}getSrc(e){let t=e?this._element:this._originalElement;return t?t.toDataURL?t.toDataURL():this.srcFromAttribute?t.getAttribute("src")||"":t.src:this.src||""}getSvgSrc(e){return this.getSrc(e)}setSrc(e){let{crossOrigin:t,signal:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return G0(e,{crossOrigin:t,signal:n}).then(i=>{t!==void 0&&this.set({crossOrigin:t}),this.setElement(i)})}toString(){return'#')}applyResizeFilters(){let e=this.resizeFilter,t=this.minimumScaleTrigger,n=this.getTotalObjectScaling(),i=n.x,s=n.y,o=this._filteredEl||this._originalElement;if(this.group&&this.set("dirty",!0),!e||i>t&&s>t)return this._element=o,this._filterScalingX=1,this._filterScalingY=1,this._lastScaleX=i,void(this._lastScaleY=s);let a=pn(),u=o.width,c=o.height;a.width=u,a.height=c,this._element=a,this._lastScaleX=e.scaleX=i,this._lastScaleY=e.scaleY=s,ap().applyFilters([e],o,u,c,this._element),this._filterScalingX=a.width/this._originalElement.width,this._filterScalingY=a.height/this._originalElement.height}applyFilters(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.filters||[];if(e=e.filter(s=>s&&!s.isNeutralState()),this.set("dirty",!0),this.removeTexture("".concat(this.cacheKey,"_filtered")),e.length===0)return this._element=this._originalElement,this._filteredEl=void 0,this._filterScalingX=1,void(this._filterScalingY=1);let t=this._originalElement,n=t.naturalWidth||t.width,i=t.naturalHeight||t.height;if(this._element===this._originalElement){let s=pn();s.width=n,s.height=i,this._element=s,this._filteredEl=s}else this._filteredEl&&(this._element=this._filteredEl,this._filteredEl.getContext("2d").clearRect(0,0,n,i),this._lastScaleX=1,this._lastScaleY=1);ap().applyFilters(e,this._originalElement,n,i,this._element),this._originalElement.width===this._element.width&&this._originalElement.height===this._element.height||(this._filterScalingX=this._element.width/this._originalElement.width,this._filterScalingY=this._element.height/this._originalElement.height)}_render(e){e.imageSmoothingEnabled=this.imageSmoothing,this.isMoving!==!0&&this.resizeFilter&&this._needsResize()&&this.applyResizeFilters(),this._stroke(e),this._renderPaintInOrder(e)}drawCacheOnCanvas(e){e.imageSmoothingEnabled=this.imageSmoothing,super.drawCacheOnCanvas(e)}shouldCache(){return this.needsItsOwnCache()}_renderFill(e){let t=this._element;if(!t)return;let n=this._filterScalingX,i=this._filterScalingY,s=this.width,o=this.height,a=Math.max(this.cropX,0),u=Math.max(this.cropY,0),c=t.naturalWidth||t.width,f=t.naturalHeight||t.height,l=a*n,h=u*i,d=Math.min(s*n,c-l),x=Math.min(o*i,f-h),m=-s/2,D=-o/2,p=Math.min(s,c/n-a),C=Math.min(o,f/i-u);t&&e.drawImage(t,l,h,d,x,m,D,p,C)}_needsResize(){let e=this.getTotalObjectScaling();return e.x!==this._lastScaleX||e.y!==this._lastScaleY}_resetWidthHeight(){this.set(this.getOriginalSize())}_setWidthHeight(){let{width:e,height:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=this.getOriginalSize();this.width=e||n.width,this.height=t||n.height}parsePreserveAspectRatioAttribute(){let e=l5(this.preserveAspectRatio||""),t=this.width,n=this.height,i={width:t,height:n},s,o=this._element.width,a=this._element.height,u=1,c=1,f=0,l=0,h=0,d=0;return!e||e.alignX===ci&&e.alignY===ci?(u=t/o,c=n/a):(e.meetOrSlice==="meet"&&(u=c=t8(this._element,i),s=(t-o*u)/2,e.alignX==="Min"&&(f=-s),e.alignX==="Max"&&(f=s),s=(n-a*c)/2,e.alignY==="Min"&&(l=-s),e.alignY==="Max"&&(l=s)),e.meetOrSlice==="slice"&&(u=c=n8(this._element,i),s=o-t/u,e.alignX==="Mid"&&(h=s/2),e.alignX==="Max"&&(h=s),s=a-n/c,e.alignY==="Mid"&&(d=s/2),e.alignY==="Max"&&(d=s),o=t/u,a=n/c)),{width:o,height:a,scaleX:u,scaleY:c,offsetLeft:f,offsetTop:l,cropX:h,cropY:d}}static fromObject(e){let{filters:t,resizeFilter:n,src:i,crossOrigin:s,type:o}=e,a=Wt(e,_M),u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Promise.all([G0(i,j(j({},u),{},{crossOrigin:s})),t&&hu(t,u),n&&hu([n],u),tc(a,u)]).then(c=>{let[f,l=[],[h]=[],d={}]=c;return new this(f,j(j({},a),{},{src:i,filters:l,resizeFilter:h},d))})}static fromURL(e){let{crossOrigin:t=null,signal:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;return G0(e,{crossOrigin:t,signal:n}).then(s=>new this(s,i))}static fromElement(t){return $(this,arguments,function*(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0,s=Qr(e,this.ATTRIBUTE_NAMES,i);return this.fromURL(s["xlink:href"],n,s).catch(o=>(Rs("log","Unable to parse Image",o),null))})}};W(zi,"type","Image"),W(zi,"cacheProperties",[...Jr,...v8]),W(zi,"ownDefaults",{strokeWidth:0,srcFromAttribute:!1,minimumScaleTrigger:.5,cropX:0,cropY:0,imageSmoothing:!0}),W(zi,"CSS_CANVAS","canvas-img"),W(zi,"ATTRIBUTE_NAMES",[...Us,"x","y","width","height","preserveAspectRatio","xlink:href","crossOrigin","image-rendering"]),Ge.setClass(zi),Ge.setSVGClass(zi);var CV=h1(["pattern","defs","symbol","metadata","clipPath","mask","desc"]);var y8="modifyPoly",t5=r=>function(e,t,n){let{points:i,pathOffset:s}=n;return new oe(i[r]).subtract(s).transform(Rn(n.getViewportTransform(),n.calcTransformMatrix()))},b8=(r,e,t,n)=>{let{target:i,pointIndex:s}=e,o=i,a=ks(new oe(t,n),void 0,o.calcOwnMatrix());return o.points[s]=a.add(o.pathOffset),o.setDimensions(),!0},B8=(r,e)=>function(t,n,i,s){let o=n.target,a=new oe(o.points[(r>0?r:o.points.length)-1]),u=a.subtract(o.pathOffset).transform(o.calcOwnMatrix()),c=e(t,j(j({},n),{},{pointIndex:r}),i,s),f=a.subtract(o.pathOffset).transform(o.calcOwnMatrix()).subtract(u);return o.left-=f.x,o.top-=f.y,c},n5=r=>Ns(y8,B8(r,b8)),gV=Object.freeze({__proto__:null,changeWidth:yp,createObjectDefaultControls:Qp,createPolyActionHandler:n5,createPolyControls:function(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t={};for(let n=0;n<(typeof r=="number"?r:r.points.length);n++)t["p".concat(n)]=new ui(j({actionName:y8,positionHandler:t5(n),actionHandler:n5(n)},e));return t},createPolyPositionHandler:t5,createResizeControls:G5,createTextboxDefaultControls:j5,dragHandler:y5,factoryPolyActionHandler:B8,getLocalPoint:f1,polyActionHandler:b8,renderCircleControl:T5,renderSquareControl:k5,rotationStyleHandler:P5,rotationWithSnapping:I5,scaleCursorStyleHandler:Ha,scaleOrSkewActionName:V0,scaleSkewCursorStyleHandler:mo,scalingEqually:U0,scalingX:L5,scalingXOrSkewingY:bp,scalingY:N5,scalingYOrSkewingX:Bp,skewCursorStyleHandler:U5,skewHandlerX:z5,skewHandlerY:H5,wrapWithFireEvent:Ns,wrapWithFixedAnchor:Bo}),x1=r=>r.webgl!==void 0;var Up="precision highp float",vM=` + `.concat(Up,`; + varying vec2 vTexCoord; + uniform sampler2D uTexture; + void main() { + gl_FragColor = texture2D(uTexture, vTexCoord); + }`),yM=["type"],bM=["type"],xn=class{get type(){return this.constructor.type}constructor(){let e=Wt(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},yM);W(this,"vertexSource",` + attribute vec2 aPosition; + varying vec2 vTexCoord; + void main() { + vTexCoord = aPosition; + gl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0); + }`),Object.assign(this,this.constructor.defaults,e)}getFragmentSource(){return vM}createProgram(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getFragmentSource(),n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.vertexSource,{WebGLProbe:{GLPrecision:i="highp"}}=br();i!=="highp"&&(t=t.replace(new RegExp(Up,"g"),Up.replace("highp",i)));let s=e.createShader(e.VERTEX_SHADER),o=e.createShader(e.FRAGMENT_SHADER),a=e.createProgram();if(!s||!o||!a)throw new Gi("Vertex, fragment shader or program creation error");if(e.shaderSource(s,n),e.compileShader(s),!e.getShaderParameter(s,e.COMPILE_STATUS))throw new Gi("Vertex shader compile error for ".concat(this.type,": ").concat(e.getShaderInfoLog(s)));if(e.shaderSource(o,t),e.compileShader(o),!e.getShaderParameter(o,e.COMPILE_STATUS))throw new Gi("Fragment shader compile error for ".concat(this.type,": ").concat(e.getShaderInfoLog(o)));if(e.attachShader(a,s),e.attachShader(a,o),e.linkProgram(a),!e.getProgramParameter(a,e.LINK_STATUS))throw new Gi('Shader link error for "'.concat(this.type,'" ').concat(e.getProgramInfoLog(a)));let u=this.getUniformLocations(e,a)||{};return u.uStepW=e.getUniformLocation(a,"uStepW"),u.uStepH=e.getUniformLocation(a,"uStepH"),{program:a,attributeLocations:this.getAttributeLocations(e,a),uniformLocations:u}}getAttributeLocations(e,t){return{aPosition:e.getAttribLocation(t,"aPosition")}}getUniformLocations(e,t){return{}}sendAttributeData(e,t,n){let i=t.aPosition,s=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,s),e.enableVertexAttribArray(i),e.vertexAttribPointer(i,2,e.FLOAT,!1,0,0),e.bufferData(e.ARRAY_BUFFER,n,e.STATIC_DRAW)}_setupFrameBuffer(e){let t=e.context;if(e.passes>1){let n=e.destinationWidth,i=e.destinationHeight;e.sourceWidth===n&&e.sourceHeight===i||(t.deleteTexture(e.targetTexture),e.targetTexture=e.filterBackend.createTexture(t,n,i)),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,e.targetTexture,0)}else t.bindFramebuffer(t.FRAMEBUFFER,null),t.finish()}_swapTextures(e){e.passes--,e.pass++;let t=e.targetTexture;e.targetTexture=e.sourceTexture,e.sourceTexture=t}isNeutralState(e){let t=this.mainParameter,n=this.constructor.defaults[t];if(t){let i=this[t];return Array.isArray(n)&&Array.isArray(i)?n.every((s,o)=>s===i[o]):n===i}return!1}applyTo(e){x1(e)?(this._setupFrameBuffer(e),this.applyToWebGL(e),this._swapTextures(e)):this.applyTo2d(e)}applyTo2d(e){}getCacheKey(){return this.type}retrieveShader(e){let t=this.getCacheKey();return e.programCache[t]||(e.programCache[t]=this.createProgram(e.context)),e.programCache[t]}applyToWebGL(e){let t=e.context,n=this.retrieveShader(e);e.pass===0&&e.originalTexture?t.bindTexture(t.TEXTURE_2D,e.originalTexture):t.bindTexture(t.TEXTURE_2D,e.sourceTexture),t.useProgram(n.program),this.sendAttributeData(t,n.attributeLocations,e.aPosition),t.uniform1f(n.uniformLocations.uStepW,1/e.sourceWidth),t.uniform1f(n.uniformLocations.uStepH,1/e.sourceHeight),this.sendUniformData(t,n.uniformLocations),t.viewport(0,0,e.destinationWidth,e.destinationHeight),t.drawArrays(t.TRIANGLE_STRIP,0,4)}bindAdditionalTexture(e,t,n){e.activeTexture(n),e.bindTexture(e.TEXTURE_2D,t),e.activeTexture(e.TEXTURE0)}unbindAdditionalTexture(e,t){e.activeTexture(t),e.bindTexture(e.TEXTURE_2D,null),e.activeTexture(e.TEXTURE0)}getMainParameter(){return this.mainParameter?this[this.mainParameter]:void 0}setMainParameter(e){this.mainParameter&&(this[this.mainParameter]=e)}sendUniformData(e,t){}createHelpLayer(e){if(!e.helpLayer){let t=pn();t.width=e.sourceWidth,t.height=e.sourceHeight,e.helpLayer=t}}toObject(){let e=this.mainParameter;return j({type:this.type},e?{[e]:this[e]}:{})}toJSON(){return this.toObject()}static fromObject(e,t){return $(this,null,function*(){return new this(Wt(e,bM))})}};W(xn,"type","BaseFilter");var BM={multiply:`gl_FragColor.rgb *= uColor.rgb; +`,screen:`gl_FragColor.rgb = 1.0 - (1.0 - gl_FragColor.rgb) * (1.0 - uColor.rgb); +`,add:`gl_FragColor.rgb += uColor.rgb; +`,difference:`gl_FragColor.rgb = abs(gl_FragColor.rgb - uColor.rgb); +`,subtract:`gl_FragColor.rgb -= uColor.rgb; +`,lighten:`gl_FragColor.rgb = max(gl_FragColor.rgb, uColor.rgb); +`,darken:`gl_FragColor.rgb = min(gl_FragColor.rgb, uColor.rgb); +`,exclusion:`gl_FragColor.rgb += uColor.rgb - 2.0 * (uColor.rgb * gl_FragColor.rgb); +`,overlay:` + if (uColor.r < 0.5) { + gl_FragColor.r *= 2.0 * uColor.r; + } else { + gl_FragColor.r = 1.0 - 2.0 * (1.0 - gl_FragColor.r) * (1.0 - uColor.r); + } + if (uColor.g < 0.5) { + gl_FragColor.g *= 2.0 * uColor.g; + } else { + gl_FragColor.g = 1.0 - 2.0 * (1.0 - gl_FragColor.g) * (1.0 - uColor.g); + } + if (uColor.b < 0.5) { + gl_FragColor.b *= 2.0 * uColor.b; + } else { + gl_FragColor.b = 1.0 - 2.0 * (1.0 - gl_FragColor.b) * (1.0 - uColor.b); + } + `,tint:` + gl_FragColor.rgb *= (1.0 - uColor.a); + gl_FragColor.rgb += uColor.rgb; + `},$a=class extends xn{getCacheKey(){return"".concat(this.type,"_").concat(this.mode)}getFragmentSource(){return` + precision highp float; + uniform sampler2D uTexture; + uniform vec4 uColor; + varying vec2 vTexCoord; + void main() { + vec4 color = texture2D(uTexture, vTexCoord); + gl_FragColor = color; + if (color.a > 0.0) { + `.concat(BM[this.mode],` + } + } + `)}applyTo2d(e){let{imageData:{data:t}}=e,n=new ii(this.color).getSource(),i=n[0]*this.alpha,s=n[1]*this.alpha,o=n[2]*this.alpha,a=1-this.alpha;for(let u=0;unew this(j(j({},s),{},{image:o})))}};W(Za,"type","BlendImage"),W(Za,"defaults",{mode:"multiply",alpha:1,vertexSource:` + attribute vec2 aPosition; + varying vec2 vTexCoord; + varying vec2 vTexCoord2; + uniform mat3 uTransformMatrix; + void main() { + vTexCoord = aPosition; + vTexCoord2 = (uTransformMatrix * vec3(aPosition, 1.0)).xy; + gl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0); + } + `}),Ge.setClass(Za);var Ka=class extends xn{getFragmentSource(){return` + precision highp float; + uniform sampler2D uTexture; + uniform vec2 uDelta; + varying vec2 vTexCoord; + const float nSamples = 15.0; + vec3 v3offset = vec3(12.9898, 78.233, 151.7182); + float random(vec3 scale) { + /* use the fragment position for a different seed per-pixel */ + return fract(sin(dot(gl_FragCoord.xyz, scale)) * 43758.5453); + } + void main() { + vec4 color = vec4(0.0); + float total = 0.0; + float offset = random(v3offset); + for (float t = -nSamples; t <= nSamples; t++) { + float percent = (t + offset - 0.5) / nSamples; + float weight = 1.0 - abs(percent); + color += texture2D(uTexture, vTexCoord + uDelta * percent) * weight; + total += weight; + } + gl_FragColor = color / total; + } + `}applyTo(e){x1(e)?(this.aspectRatio=e.sourceWidth/e.sourceHeight,e.passes++,this._setupFrameBuffer(e),this.horizontal=!0,this.applyToWebGL(e),this._swapTextures(e),this._setupFrameBuffer(e),this.horizontal=!1,this.applyToWebGL(e),this._swapTextures(e)):this.applyTo2d(e)}applyTo2d(e){e.imageData=this.simpleBlur(e)}simpleBlur(e){let{ctx:t,imageData:n,filterBackend:{resources:i}}=e,{width:s,height:o}=n;i.blurLayer1||(i.blurLayer1=pn(),i.blurLayer2=pn());let a=i.blurLayer1,u=i.blurLayer2;a.width===s&&a.height===o||(u.width=a.width=s,u.height=a.height=o);let c=a.getContext("2d"),f=u.getContext("2d"),l=15,h=.06*this.blur*.5,d,x,m,D;for(c.putImageData(n,0,0),f.clearRect(0,0,s,o),D=-15;D<=l;D++)d=(Math.random()-.5)/4,x=D/l,m=h*x*s+d,f.globalAlpha=1-Math.abs(x),f.drawImage(a,m,d),c.drawImage(u,0,0),f.globalAlpha=1,f.clearRect(0,0,u.width,u.height);for(D=-15;D<=l;D++)d=(Math.random()-.5)/4,x=D/l,m=h*x*o+d,f.globalAlpha=1-Math.abs(x),f.drawImage(a,d,m),c.drawImage(u,0,0),f.globalAlpha=1,f.clearRect(0,0,u.width,u.height);t.drawImage(a,0,0);let p=t.getImageData(0,0,a.width,a.height);return c.globalAlpha=1,c.clearRect(0,0,a.width,a.height),p}getUniformLocations(e,t){return{delta:e.getUniformLocation(t,"uDelta")}}sendUniformData(e,t){let n=this.chooseRightDelta();e.uniform2fv(t.delta,n)}chooseRightDelta(){let e=1,t=[0,0];this.horizontal?this.aspectRatio>1&&(e=1/this.aspectRatio):this.aspectRatio<1&&(e=this.aspectRatio);let n=e*this.blur*.12;return this.horizontal?t[0]=n:t[1]=n,t}};W(Ka,"type","Blur"),W(Ka,"defaults",{blur:0,mainParameter:"blur"}),Ge.setClass(Ka);var Ja=class extends xn{getFragmentSource(){return` + precision highp float; + uniform sampler2D uTexture; + uniform float uBrightness; + varying vec2 vTexCoord; + void main() { + vec4 color = texture2D(uTexture, vTexCoord); + color.rgb += uBrightness; + gl_FragColor = color; + } +`}applyTo2d(e){let{imageData:{data:t}}=e;if(this.brightness===0)return;let n=Math.round(255*this.brightness);for(let i=0;i0&&arguments[0]!==void 0?arguments[0]:{},{subFilters:t=[]}=e;super(Wt(e,LM)),this.subFilters=t}applyTo(e){x1(e)&&(e.passes+=this.subFilters.length-1),this.subFilters.forEach(t=>{t.applyTo(e)})}toObject(){return j(j({},super.toObject()),{},{subFilters:this.subFilters.map(e=>e.toObject())})}isNeutralState(){return!this.subFilters.some(e=>!e.isNeutralState())}static fromObject(e,t){return Promise.all((e.subFilters||[]).map(n=>Ge.getClass(n.type).fromObject(n,t))).then(n=>new this({subFilters:n}))}};W(Q0,"type","Composed"),Ge.setClass(Q0);var Qa=class extends xn{getFragmentSource(){return` + precision highp float; + uniform sampler2D uTexture; + uniform float uContrast; + varying vec2 vTexCoord; + void main() { + vec4 color = texture2D(uTexture, vTexCoord); + float contrastF = 1.015 * (uContrast + 1.0) / (1.0 * (1.015 - uContrast)); + color.rgb = contrastF * (color.rgb - 0.5) + 0.5; + gl_FragColor = color; + }`}applyTo2d(e){let{imageData:{data:t}}=e;if(this.contrast===0)return;let n=Math.floor(255*this.contrast),i=259*(n+255)/(255*(259-n));for(let s=0;s=u||p<0||p>=a||(g=4*(C*a+p),E=i[B*s+b],h+=n[g]*E,d+=n[g+1]*E,x+=n[g+2]*E,l||(m+=n[g+3]*E));f[D]=h,f[D+1]=d,f[D+2]=x,f[D+3]=l?n[D+3]:m}e.imageData=c}getUniformLocations(e,t){return{uMatrix:e.getUniformLocation(t,"uMatrix"),uOpaque:e.getUniformLocation(t,"uOpaque"),uHalfSize:e.getUniformLocation(t,"uHalfSize"),uSize:e.getUniformLocation(t,"uSize")}}sendUniformData(e,t){e.uniform1fv(t.uMatrix,this.matrix)}toObject(){return j(j({},super.toObject()),{},{opaque:this.opaque,matrix:[...this.matrix]})}};W(eu,"type","Convolute"),W(eu,"defaults",{opaque:!1,matrix:[0,0,0,0,1,0,0,0,0]}),Ge.setClass(eu);var UM=["gamma"],tu=class extends xn{getFragmentSource(){return` + precision highp float; + uniform sampler2D uTexture; + uniform vec3 uGamma; + varying vec2 vTexCoord; + void main() { + vec4 color = texture2D(uTexture, vTexCoord); + vec3 correction = (1.0 / uGamma); + color.r = pow(color.r, correction.r); + color.g = pow(color.g, correction.g); + color.b = pow(color.b, correction.b); + gl_FragColor = color; + gl_FragColor.rgb *= color.a; + } +`}constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{gamma:t=[1,1,1]}=e;super(Wt(e,UM)),this.gamma=t}applyTo2d(e){let{imageData:{data:t}}=e,n=this.gamma,i=1/n[0],s=1/n[1],o=1/n[2];this.rgbValues||(this.rgbValues={r:new Uint8Array(256),g:new Uint8Array(256),b:new Uint8Array(256)});let a=this.rgbValues;for(let u=0;u<256;u++)a.r[u]=255*Math.pow(u/255,i),a.g[u]=255*Math.pow(u/255,s),a.b[u]=255*Math.pow(u/255,o);for(let u=0;us[0]&&c>s[1]&&f>s[2]&&u` + color += texture2D(uTexture, vTexCoord + `.concat(n,") * uTaps[").concat(i,"] + texture2D(uTexture, vTexCoord - ").concat(n,") * uTaps[").concat(i,`]; + sum += 2.0 * uTaps[`).concat(i,`]; + `)).join(` +`),` + gl_FragColor = color / sum; + } + `)}applyToForWebgl(e){e.passes++,this.width=e.sourceWidth,this.horizontal=!0,this.dW=Math.round(this.width*this.scaleX),this.dH=e.sourceHeight,this.tempScale=this.dW/this.width,this.taps=this.getTaps(),e.destinationWidth=this.dW,super.applyTo(e),e.sourceWidth=e.destinationWidth,this.height=e.sourceHeight,this.horizontal=!1,this.dH=Math.round(this.height*this.scaleY),this.tempScale=this.dH/this.height,this.taps=this.getTaps(),e.destinationHeight=this.dH,super.applyTo(e),e.sourceHeight=e.destinationHeight}applyTo(e){x1(e)?this.applyToForWebgl(e):this.applyTo2d(e)}isNeutralState(){return this.scaleX===1&&this.scaleY===1}lanczosCreate(e){return t=>{if(t>=e||t<=-e)return 0;if(t<11920929e-14&&t>-11920929e-14)return 1;let n=(t*=Math.PI)/e;return Math.sin(t)/t*Math.sin(n)/n}}applyTo2d(e){let t=e.imageData,n=this.scaleX,i=this.scaleY;this.rcpScaleX=1/n,this.rcpScaleY=1/i;let s=t.width,o=t.height,a=Math.round(s*n),u=Math.round(o*i),c;c=this.resizeType==="sliceHack"?this.sliceByTwo(e,s,o,a,u):this.resizeType==="hermite"?this.hermiteFastResize(e,s,o,a,u):this.resizeType==="bilinear"?this.bilinearFiltering(e,s,o,a,u):this.resizeType==="lanczos"?this.lanczosResize(e,s,o,a,u):new ImageData(a,u),e.imageData=c}sliceByTwo(e,t,n,i,s){let o=e.imageData,a=.5,u=!1,c=!1,f=t*a,l=n*a,h=e.filterBackend.resources,d=0,x=0,m=t,D=0;h.sliceByTwo||(h.sliceByTwo=pn());let p=h.sliceByTwo;(p.width<1.5*t||p.height=t)){H=Math.floor(1e3*Math.abs(v-p.x)),D[H]||(D[H]={});for(let ie=C.y-m;ie<=C.y+m;ie++)ie<0||ie>=n||(G=Math.floor(1e3*Math.abs(ie-p.y)),D[H][G]||(D[H][G]=c(Math.sqrt(Math.pow(H*h,2)+Math.pow(G*d,2))/1e3)),b=D[H][G],b>0&&(B=4*(ie*t+v),F+=b,_+=b*o[B],M+=b*o[B+1],R+=b*o[B+2],P+=b*o[B+3]))}B=4*(y*i+E),u[B]=_/F,u[B+1]=M/F,u[B+2]=R/F,u[B+3]=P/F}return++E1&&H<-1||(D=2*H*H*H-3*H*H+1,D>0&&(P=4*(R+B*t),v+=D*f[P+3],C+=D,f[P+3]<255&&(D=D*f[P+3]/250),g+=D*f[P],E+=D*f[P+1],y+=D*f[P+2],p+=D))}}h[m]=g/p,h[m+1]=E/p,h[m+2]=y/p,h[m+3]=v/C}return l}toObject(){return{type:this.type,scaleX:this.scaleX,scaleY:this.scaleY,resizeType:this.resizeType,lanczosLobes:this.lanczosLobes}}};W(uu,"type","Resize"),W(uu,"defaults",{resizeType:"hermite",scaleX:1,scaleY:1,lanczosLobes:3,fragmentSourceTOP:` + precision highp float; + uniform sampler2D uTexture; + uniform vec2 uDelta; + varying vec2 vTexCoord; + `}),Ge.setClass(uu);var cu=class extends xn{getFragmentSource(){return` + precision highp float; + uniform sampler2D uTexture; + uniform float uSaturation; + varying vec2 vTexCoord; + void main() { + vec4 color = texture2D(uTexture, vTexCoord); + float rgMax = max(color.r, color.g); + float rgbMax = max(rgMax, color.b); + color.r += rgbMax != color.r ? (rgbMax - color.r) * uSaturation : 0.00; + color.g += rgbMax != color.g ? (rgbMax - color.g) * uSaturation : 0.00; + color.b += rgbMax != color.b ? (rgbMax - color.b) * uSaturation : 0.00; + gl_FragColor = color; + } +`}applyTo2d(e){let{imageData:{data:t}}=e;if(this.saturation===0)return;let n=-this.saturation;for(let i=0;i{t.preload(),this.loadObject(t)})}loadObject(e){let t=new wl;t.setMaterials(e),t.load("assets/untitled.obj",n=>{this.initCardObject(n)})}initCardObject(e){this.mobileTicket=e.children[0],this.mobileTicket.scale.multiplyScalar(5);let t=this.frontDecorationInfo.backgroundColor;this.mobileTicket.material.color.set(parseInt(t?.slice(1),16)),this.mobileTicket.rotateOnAxis(new z(0,0,1),Math.PI/2),this.mobileTicket.rotateOnAxis(new z(1,0,0),Math.PI/10),this.mobileTicket.rotateOnAxis(new z(0,1,0),Math.PI/10),this._sceneGraphService.scene.add(this.mobileTicket),this.initSide("front"),this.initSide("back"),this.checkFaceVisible()}initSide(e){e==="front"?(this.frontSide=new rc(new ot(350,600),"front",this.frontDecorationInfo.fabric),this.frontSide.rotateZ(-Math.PI/2),this.frontSide.position.add(new z(0,0,.6)),this.mobileTicket?.add(this.frontSide),this.frontSide.scale.multiplyScalar(.2)):e==="back"&&(this.backSide=new rc(new ot(350,600),"back",this.backDecorationinfo.fabric),this.backSide.rotateZ(-Math.PI/2),this.backSide.rotateY(-Math.PI),this.backSide.position.add(new z(0,0,-.6)),this.mobileTicket?.add(this.backSide),this.backSide.scale.multiplyScalar(.2))}checkFaceVisible(){let e=this._sceneGraphService.camera?.getWorldDirection(new z(0,0,0)),t=new z(0,0,1).applyQuaternion(this.mobileTicket.quaternion);e.dot(t)>=0?(this.frontSide.visible=!1,this.backSide.visible=!0):(this.frontSide.visible=!0,this.backSide.visible=!1)}};var wr=(()=>{let e=class e{constructor(n,i,s){this._route=n,this._apiExecutorService=i,this._ssalonConfigService=s,this.scene=null,this.camera=null,this.lights={},this.nativeElement=null,this.webGLRenderer=null,this.css3dRenderer=null,this.arcballControls=null,this.mobileTicket=null,this.mobileTicketAutoRotate=!1,this.animationId=null}initThree(n){let i=this.nativeElement.clientWidth,s=this.nativeElement.clientHeight;this.scene=new fl,this.scene.background=new st(16777215),this.camera=new Wn(75,i/s,.1,2e3),this.camera.position.z=600,this.createLight("pointLight1",new z(0,0,300)),this.createLight("pointLight2",new z(0,0,-300)),this.createLight("pointLight3",new z(0,400,300)),this.initCss3dRenderer(i,s),this.initWebGLRenderer(i,s),this.createArcballControls(),this.mobileTicket=new m1(this._apiExecutorService,this),this.mobileTicket.initMobileTicket(n),zM(this)}createLight(n,i){this.lights[n]=new pl(16777215),this.lights[n].position.copy(i),this.lights[n].intensity=10,this.lights[n].decay=.3,this.lights[n].lookAt(0,0,0),this.scene.add(this.lights[n])}initWebGLRenderer(n,i){this.webGLRenderer=new cl({antialias:!0}),this.webGLRenderer.setPixelRatio(window.devicePixelRatio),this.webGLRenderer.autoClear=!1,this.webGLRenderer.domElement.style.touchAction="none",this.webGLRenderer.setSize(n,i),this.nativeElement.appendChild(this.webGLRenderer.domElement)}initCss3dRenderer(n,i){this.css3dRenderer=new yl,this.css3dRenderer.domElement.style.touchAction="none",this.css3dRenderer.domElement.style.position="absolute",this.css3dRenderer.setSize(n,i),this.nativeElement.appendChild(this.css3dRenderer.domElement)}destroy(){this.webGLRenderer.dispose(),this.scene.children.forEach(n=>{n.geometry&&n.geometry.dispose(),this.scene.remove(n)}),this.webGLRenderer.domElement.parentNode&&this.webGLRenderer.domElement.parentNode.removeChild(this.webGLRenderer.domElement),this.css3dRenderer.domElement.parentNode&&this.css3dRenderer.domElement.parentNode.removeChild(this.css3dRenderer.domElement),cancelAnimationFrame(this.animationId)}createArcballControls(){this.arcballControls=new bl(this.camera,this.css3dRenderer.domElement,this.scene),this.arcballControls.setGizmosVisible(!1),this.arcballControls.enableAnimations=!0,this.arcballControls.dampingFactor=2,this.arcballControls.addEventListener("change",()=>{this.css3dRenderer.render(this.scene,this.camera),this.mobileTicket?.checkFaceVisible(),this.mobileTicketAutoRotate=!1}),this.arcballControls.addEventListener("end",()=>{this.mobileTicketAutoRotate=!0}),this.arcballControls.enabled=!0}onRender(){this.webGLRenderer.render(this.scene,this.camera),this.css3dRenderer.render(this.scene,this.camera)}focusFront(){this.arcballControls.reset()}rotateCard(){this.mobileTicket.mobileTicket?.rotateX(.001),this.mobileTicket.mobileTicket?.rotateY(.001),this.mobileTicket.mobileTicket?.rotateZ(.001),this.mobileTicket?.frontSide!==null&&this.mobileTicket?.backSide!==null&&this.mobileTicket?.checkFaceVisible()}};e.\u0275fac=function(i){return new(i||e)(Lt(Vt),Lt(Ze),Lt(fs))},e.\u0275prov=bt({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})(),zM=function(r){let e=function(){r.mobileTicketAutoRotate&&r.rotateCard(),r.onRender(),r.animationId=requestAnimationFrame(e)};e()};var HM=["rendererContainer"],w8=(()=>{let e=class e{constructor(n){this._sceneGraphService=n,this.rendererContainer=null,this.moimId="",this.majorFace="front",this.isEditing=!1}ngOnInit(){}ngAfterViewInit(){this._sceneGraphService.nativeElement=this.rendererContainer.nativeElement,this._sceneGraphService.initThree(this.moimId)}ngOnDestroy(){this._sceneGraphService.destroy()}};e.\u0275fac=function(i){return new(i||e)(se(wr))},e.\u0275cmp=Ee({type:e,selectors:[["app-mobile-ticket-viewer"]],viewQuery:function(i,s){if(i&1&&Ie(HM,5),i&2){let o;ke(o=Pe())&&(s.rendererContainer=o.first)}},inputs:{moimId:"moimId"},standalone:!0,features:[Fe],decls:2,vars:0,consts:[["rendererContainer",""],["id","viewport"]],template:function(i,s){i&1&&de(0,"div",1,0)},styles:["#viewport[_ngcontent-%COMP%]{width:100%;height:100%}"]});let r=e;return r})();var GM=["toggleButton"];function jM(r,e){if(r&1){let t=ye();k(0,"div",8,1),K("click",function(){ae(t);let i=N().$implicit,s=N(2);return ue(s.onClickToggleButton(i.value))}),de(2,"img",9),I()}if(r&2){let t=N().$implicit,n=N(2);Te("width",n.outerSize)("height",n.outerSize),A(2),S("src",n.getImgSrc(t.imgSrc,t.value),Zt)("width",n.innerSize)("height",n.innerSize)}}function WM(r,e){if(r&1&&(k(0,"h4"),ze(1),I()),r&2){let t=N().$implicit,n=N(2);Te("width",n.innerSize+10,"px"),A(),Ht(t.label)}}function XM(r,e){if(r&1&&(rn(0,5),k(1,"div"),me(2,jM,3,7,"div",6)(3,WM,2,3,"h4",7),I(),sn()),r&2){let t=e.$implicit,n=N(2);A(2),S("ngIf",t.value!==n.noneStatusValue),A(),S("ngIf",!1)}}function qM(r,e){if(r&1&&(rn(0),me(1,XM,4,2,"ng-container",4),sn()),r&2){let t=e.$implicit;A(),S("ngForOf",t)}}var S8=(()=>{let e=class e{constructor(){this.buttons=null,this.elements=[],this.selectedValues=[],this.noneStatusValue=-1,this.outerSize="40px",this.innerSize=20,this.enableMultipleSelection=!1,this.columnNum=10,this.isLabelVisible=!0,this.onClickToggleButtonEvent=new Ve,this.modifiedElements=[]}ngOnInit(){let n=[];for(let i=0;it.value===e).color}getSsalonColorObjectByValue(e){return this.SsalonColors.find(t=>t.value===e)}getSsalonColorObjectByColor(e){return this.SsalonColors.find(t=>t.color===e)}},On=function(r){return r[r.BLACK=0]="BLACK",r[r.WHITE=1]="WHITE",r[r.RED=2]="RED",r[r.GREEN=3]="GREEN",r[r.BLUE=4]="BLUE",r[r.YELLOW=5]="YELLOW",r[r.CYAN=6]="CYAN",r[r.MAGENTA=7]="MAGENTA",r[r.GRAY=8]="GRAY",r[r.LIGHT_GRAY=9]="LIGHT_GRAY",r[r.DARK_GRAY=10]="DARK_GRAY",r[r.ORANGE=11]="ORANGE",r[r.PINK=12]="PINK",r[r.PURPLE=13]="PURPLE",r[r.BROWN=14]="BROWN",r[r.SSALON=15]="SSALON",r}(On||{}),M8=(()=>{let e=class e{constructor(){this.buttons=null,this.selectedValue=0,this.noneStatusValue=0,this.outerSize="30px",this.innerSize="20px",this.columnNum=10,this.onClickToggleButtonEvent=new Ve,this.ssalonColor=new oc,this.modifiedSsalonColors=[]}ngOnInit(){for(var n=[],i=0;i{let e=class e{constructor(){this.buttons=null,this.elements=[],this.selectedValue=0,this.onClickToggleButtonEvent=new Ve,this.buttonWidth="30%"}ngOnInit(){this.buttonWidth=`${100/this.elements.length}%`}ngAfterViewInit(){this.buttons.toArray()[this.selectedValue].nativeElement.classList.add("selected")}onClickToggleButton(n){if(this.selectedValue===n)return;let i=this.buttons.toArray();for(let s in i)Number(s)!==n?i[Number(s)].nativeElement.classList.remove("selected"):i[n].nativeElement.classList.add("selected");this.selectedValue=n,this.onClickToggleButtonEvent.emit(this.elements[n].imgSrc)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=Ee({type:e,selectors:[["app-simple-toggle-button-group"]],viewQuery:function(i,s){if(i&1&&Ie(KM,5),i&2){let o;ke(o=Pe())&&(s.buttons=o)}},inputs:{elements:"elements",selectedValue:"selectedValue"},outputs:{onClickToggleButtonEvent:"onClickToggleButtonEvent"},standalone:!0,features:[Fe],decls:3,vars:1,consts:[["toggleButtonContainer",""],["toggleButton",""],[1,"container"],["class","toggle-button",3,"width","font-family","click",4,"ngFor","ngForOf"],[1,"toggle-button",3,"click"]],template:function(i,s){i&1&&(k(0,"div",2,0),me(2,JM,3,5,"div",3),I()),i&2&&(A(2),S("ngForOf",s.elements))},dependencies:[cn],styles:[".container[_ngcontent-%COMP%]{width:auto;display:flex;flex-direction:row;overflow-x:auto}.toggle-button[_ngcontent-%COMP%]{height:100%;min-width:50px;display:flex;justify-content:center;align-items:center;border-radius:5px;margin:5px;color:#efefef;background-color:transparent}.toggle-button[_ngcontent-%COMP%]:hover{cursor:pointer}.selected[_ngcontent-%COMP%]{background-color:#0090f2}"]});let r=e;return r})();var QM=["editFeatureButtons"],eT=["backgroundPath"],tT=["textEditInput"],nT=["drawCanvas"],iT=["selectedPhotoContainer"],rT=["generatedImageContainer"],sT=["prompt"],oT=["generatedImage"],aT=r=>[r];function uT(r,e){if(r&1){let t=ye();k(0,"div")(1,"app-simple-button",23),K("onClickEvent",function(){ae(t);let i=N();return ue(i.onClickPreviewButton())}),I()()}if(r&2){let t=N();A(),S("buttonElement",t.previewButtonElement)("heightSize",15)("type","text")}}function cT(r,e){if(r&1){let t=ye();k(0,"div",24),K("mouseup",function(){ae(t);let i=N();return ue(i.onClickPreviewButton())}),de(1,"img",25),I()}}function fT(r,e){r&1&&de(0,"div",32)}function lT(r,e){if(r&1){let t=ye();k(0,"div")(1,"div",26),de(2,"img",27,2),k(4,"div",28),de(5,"textarea",29,3),k(7,"div")(8,"button",30),K("click",function(){ae(t);let i=N();return ue(i.generateImage())}),ze(9,"\uC0DD\uC131"),I(),me(10,fT,1,0,"div",31),I()()()()}if(r&2){let t=N();A(5),Te("height","100px")("width","300px"),S("placeholder","\uC0DD\uC131\uD558\uACE0 \uC2F6\uC740 \uC0AC\uC9C4\uC758 \uC124\uBA85\uC744 \uC785\uB825\uD574\uC8FC\uC138\uC694"),A(2),Te("display","flex")("justify-content","center"),A(3),S("ngIf",t.generatingImage)}}function hT(r,e){if(r&1){let t=ye();k(0,"div",33),hi(),k(1,"svg",34,4),de(3,"rect",35),I(),ji(),k(4,"app-color-board",36),K("onClickToggleButtonEvent",function(i){ae(t);let s=N();return ue(s.changeBackgroundColor(i))}),I()()}if(r&2){let t=N();A(4),S("outerSize","30px")("innerSize","24px")("selectedValue",t.backgroundColor.value)}}function dT(r,e){if(r&1){let t=ye();k(0,"div")(1,"div",37,5)(3,"textarea",38,6),K("input",function(i){ae(t);let s=N();return ue(s.onChangeSsalonTextAttribute("text",i))}),I()(),k(5,"div",39)(6,"app-circle-toggle-button-group",40),K("onClickToggleButtonEvent",function(i){ae(t);let s=N();return ue(s.onChangeSsalonTextAttribute("textAlign",i))}),I()(),k(7,"app-simple-toggle-button-group",41),K("onClickToggleButtonEvent",function(i){ae(t);let s=N();return ue(s.onChangeSsalonTextAttribute("fontFamily",i))}),I(),k(8,"app-color-board",36),K("onClickToggleButtonEvent",function(i){ae(t);let s=N();return ue(s.onChangeSsalonTextAttribute("color",i))}),I()()}if(r&2){let t=N();A(3),Te("text-align",t.ssalonTextAttribute.textAlign)("color",t.ssalonTextAttribute.color)("font-family",t.ssalonTextAttribute.fontFamily),A(2),Te("justify-content","center"),A(),S("elements",t.textAlignButtons)("outerSize","30px")("selectedValues",Io(15,aT,t.getSsalonTextEnumByString(t.ssalonTextAttribute.textAlign))),A(),S("elements",t.fonts),A(),S("outerSize","30px")("innerSize","24px")("selectedValue",t.ssalonColor.getSsalonColorObjectByColor(t.ssalonTextAttribute.color).value)}}function DT(r,e){if(r&1&&(k(0,"div",42)(1,"div",43),ze(2),I(),de(3,"img",44,7),I()),r&2){let t=N();A(2),Ht(t.uploadPhotoNum)}}function pT(r,e){r&1&&de(0,"div",51)}function xT(r,e){if(r&1){let t=ye();k(0,"div")(1,"div",48),K("mouseup",function(){let i=ae(t).$implicit,s=N(3);return ue(s.selectSticker(i.value))}),de(2,"img",49),me(3,pT,1,0,"div",50),I()()}if(r&2){let t=e.$implicit;A(),Te("width","100px")("height","150px"),A(),S("src",t.imgSrc,Zt),A(),S("ngIf",t.selected)}}function mT(r,e){if(r&1&&(k(0,"div"),me(1,xT,4,6,"div",47),I()),r&2){let t=e.$implicit;Te("display","flex")("justify-content","space-evenly")("margin-bottom","20px"),A(),S("ngForOf",t)}}function CT(r,e){if(r&1&&(k(0,"div",45,8),me(2,mT,2,7,"div",46),I()),r&2){let t=N();A(2),S("ngForOf",t.getStickerArray())}}function gT(r,e){if(r&1){let t=ye();k(0,"div")(1,"div",52),de(2,"canvas",53,9),I(),k(4,"app-color-board",54),K("onClickToggleButtonEvent",function(i){ae(t);let s=N();return ue(s.onChangePencilColor(i))}),I()()}r&2&&(A(4),S("outerSize","30px")("innerSize","24px"))}var xt=function(r){return r[r.AI_GENERATE=0]="AI_GENERATE",r[r.BACKGROUND_COLOR_CHANGE=1]="BACKGROUND_COLOR_CHANGE",r[r.PHOTO=2]="PHOTO",r[r.STICKER=3]="STICKER",r[r.TEXT=4]="TEXT",r[r.DRAW=5]="DRAW",r[r.NONE=6]="NONE",r}(xt||{}),or=function(r){return r[r.LEFT=0]="LEFT",r[r.CENTER=1]="CENTER",r[r.RIGHT=2]="RIGHT",r}(or||{}),k8=(()=>{let e=class e{constructor(n,i,s,o){this._apiExecutorService=n,this._router=i,this._sceneGraphService=s,this._buttonElementsService=o,this.editFeatureButtons=null,this.backgroundPath=null,this.textEditInput=null,this.drawCanvas=null,this.selectedPhotoContainer=null,this.generatedImageContainer=null,this.prompt=null,this.generatedImage=null,this.moimId="",this.face="front",this.onChangeViewer=new Ve,this.onObjectEditEnded=new Ve,this.onBackgroundColorEditEnded=new Ve,this.onClickPreview=new Ve,this.editMode=xt.NONE,this.ssalonColor=new oc,this.mobileTicketEditMode=xt,this.goBackButtonElement={selected:!1,imgSrc:"assets/icons/go-back.png",label:"\uB4A4\uB85C\uAC00\uAE30",value:0},this.previewButtonElement={selected:!1,imgSrc:"assets/icons/view.png",label:"\uC800\uC7A5 \uBC0F \uBBF8\uB9AC\uBCF4\uAE30",value:0},this.completeButtonElement={selected:!1,imgSrc:"",label:"\uC644\uB8CC",value:0},this.editFeatures=[{imgSrc:"assets/icons/ai_generate.png",label:"ai",value:xt.AI_GENERATE},{imgSrc:"assets/icons/color-board.png",label:"\uBC30\uACBD\uC0C9 \uBCC0\uACBD",value:xt.BACKGROUND_COLOR_CHANGE},{imgSrc:"assets/icons/photo.png",label:"\uC0AC\uC9C4",value:xt.PHOTO},{imgSrc:"assets/icons/sticker.png",label:"\uC2A4\uD2F0\uCEE4",value:xt.STICKER},{imgSrc:"assets/icons/text.png",label:"\uD14D\uC2A4\uD2B8",value:xt.TEXT},{imgSrc:"assets/icons/draw.png",label:"\uADF8\uB9AC\uAE30",value:xt.DRAW},{imgSrc:"assets/icons/view.png",label:"\uADF8\uB9AC\uAE30",value:xt.NONE}],this.generatingImage=!1,this._backgroundColorViewLoaded=!1,this.uploadPhotoNum=0,this.stickers=[],this.editingSticker=null,this.editingStickerSrc="",this.textFocused=!1,this.textAlign="left",this.textAlignButtons=[{imgSrc:"assets/text-aligns/textalign-left.png",label:"\uC88C",value:or.LEFT},{imgSrc:"assets/text-aligns/textalign-center.png",label:"\uC911",value:or.CENTER},{imgSrc:"assets/text-aligns/textalign-right.png",label:"\uC6B0",value:or.RIGHT}],this.fonts=[{imgSrc:"Ariel",label:"Aa",value:0},{imgSrc:"Josefin Sans",label:"Aa",value:1},{imgSrc:"Jersey 15",label:"Aa",value:2},{imgSrc:"Roboto",label:"Aa",value:3},{imgSrc:"Jacquarda Bastarda 9 Charted",label:"Aa",value:4}],this.fontFamily="Josefin Sans",this.isTextAddMode=!0,this.textColor=this.ssalonColor.WHITE,this.editingText=null,this.colorBoard=[],this.drawingFabricCanvas=null,this._isDrawing=!1,this._drawingPoints=[],this._isDrawingFabricCanvasLoaded=!1,this.drawingFabricPaths=[],this.ssalonGenAIImageAttribute={src:[]},this.backgroundColor=this.ssalonColor.LIGHT_GRAY,this.ssalonTextAttribute={text:"",fontFamily:"Josefin Sans",color:"#000000",textAlign:"left"},this.ssalonPhotoAttribute={src:[]},this.ssalonStickerAttribute={src:[]},this.ssalonPathAttribute={color:"#000000",strokeWidth:1},this.fabricObjects=[],this.lastUsedFeature=xt.NONE}ngAfterViewInit(){this.loadDecorationInfo(),this.getStickers()}ngAfterViewChecked(){this.prompt&&!this.textFocused&&(this.prompt.nativeElement.focus(),this.textFocused=!0),this.backgroundPath&&!this._backgroundColorViewLoaded&&(this.backgroundPath.nativeElement.setAttribute("fill",this.backgroundColor.color),this._backgroundColorViewLoaded=!0),this.textEditInput&&!this.textFocused&&(this.fabricObjects.length===1&&(this.textEditInput.nativeElement.value=this.ssalonTextAttribute.text),this.textEditInput.nativeElement.focus(),this.textFocused=!0),this.drawCanvas&&!this._isDrawingFabricCanvasLoaded&&(this.initDrawingCanvas(),this._isDrawingFabricCanvasLoaded=!0)}loadDecorationInfo(){return $(this,null,function*(){let n=yield this._apiExecutorService.getTicket(this.moimId);this.backgroundColor=this.ssalonColor.getSsalonColorObjectByColor(n.backgroundColor),this.onBackgroundColorEditEnded.emit(this.backgroundColor.color)})}generateImage(){return $(this,null,function*(){let n={prompt:this.prompt?.nativeElement.value,highQuality:!0};this.generatingImage=!0;let i=yield this._apiExecutorService.generateImage(this.moimId,n);this.generatingImage=!1,this.ssalonGenAIImageAttribute.src.push(i),this.generatedImage.nativeElement.setAttribute("src",i),this.generatedImage.nativeElement.src=i})}uploadImage(){let n=document.createElement("input");n.type="file",n.accept="image/*",n.multiple=!0;let i=[];n.onchange=(function(){return $(this,null,function*(){if(i=[],n.files&&n.files.length>0){let s=Array.from(n.files),o=0;s.forEach((a,u)=>{let c=new FileReader;c.onload=(function(f){return $(this,null,function*(){if(i.push(f.target.result),u===0){let l=document.getElementById("selected-photo-container");l||(l=document.createElement("img"),l.id="selected-photo-container",document.body.appendChild(l)),l.src=f.target.result,l.width=80}o++,o===s.length&&(this.uploadPhotoNum=s.length,yield this.getImageUrl(i))})}).bind(this),c.readAsDataURL(a)})}})}).bind(this),n.click()}onClickChangeEditMode(n){return $(this,null,function*(){switch(n){case xt.AI_GENERATE:break;case xt.BACKGROUND_COLOR_CHANGE:break;case xt.PHOTO:this.uploadImage();break;case xt.STICKER:break;case xt.TEXT:this.textFocused=!1;break;case xt.DRAW:break;case xt.NONE:break}this.editMode=n,this.onChangeViewer.emit(n)})}onClickPreviewButton(){this.onClickPreview.emit()}onClickEndDetailedEditViewer(){this.lastUsedFeature=this.editMode,this.editMode=xt.NONE,this.editFeatureButtons.setUnselectedStatus(),this.onChangeViewer.emit(xt.NONE),this.onEndEditObject()}changeBackgroundColor(n){this.backgroundPath?.nativeElement.setAttribute("fill",this.ssalonColor.getSsalonColorObjectByValue(n).color),this.backgroundColor=this.ssalonColor.getSsalonColorObjectByValue(n)}getStickers(){let n=50;for(let i=0;i{i.append("files",s(u),`${c}.png`)});try{let u=this.face==="front"?yield this._apiExecutorService.uploadTicketImages(this.moimId,i):yield this._apiExecutorService.uploadDiaryImages(this.moimId,i),c=Object.keys(u.mapURI);for(var o=0;o{f="https://dokcohci6rkid.cloudfront.net"+f.substring(58)})}catch(u){console.log(u)}})}onEndEditObject(){return $(this,null,function*(){if(this.lastUsedFeature===xt.BACKGROUND_COLOR_CHANGE)this.onBackgroundColorEditEnded.emit(this.backgroundColor.color),this._backgroundColorViewLoaded=!1;else{switch(this.lastUsedFeature){case xt.AI_GENERATE:this.textFocused=!1,this.loadImageRecursive(0);return;case xt.PHOTO:case xt.STICKER:this.loadImageRecursive(0);return;case xt.TEXT:this.fabricObjects.length===0?this.fabricObjects.push(new In(this.ssalonTextAttribute.text,{top:100,left:100,fill:this.ssalonTextAttribute.color,textAlign:this.ssalonTextAttribute.textAlign,fontFamily:this.ssalonTextAttribute.fontFamily})):(this.fabricObjects[0].set("text",this.ssalonTextAttribute.text),this.fabricObjects[0].set("fill",this.ssalonTextAttribute.color),this.fabricObjects[0].set("textAlign",this.ssalonTextAttribute.textAlign),this.fabricObjects[0].set("fontFamily",this.ssalonTextAttribute.fontFamily),this.lastUsedFeature=xt.NONE),this.textFocused=!1;break;case xt.DRAW:this._isDrawingFabricCanvasLoaded=!1,this.drawingFabricCanvas?.clear(),this.fabricObjects=[];return;case xt.NONE:this.lastUsedFeature=xt.NONE;break}this.onObjectEditEnded.emit(this.lastUsedFeature===xt.NONE?null:this.fabricObjects)}this.fabricObjects=[]})}onClickCompletedEditing(){}initDrawingCanvas(){this.drawingFabricCanvas=new Br(this.drawCanvas.nativeElement),this.drawingFabricCanvas.renderAll(),this.drawingFabricCanvas.on("mouse:down",n=>{this._isDrawing=!0,this.fabricObjects.length=0,this.addPoint(n.e),this.drawPath()}),this.drawingFabricCanvas.on("mouse:move",n=>{this._isDrawing&&(this.addPoint(n.e),this.drawPath())}),this.drawingFabricCanvas.on("mouse:up",()=>{this._isDrawing=!1,this._drawingPoints.length=0,this.onObjectEditEnded.emit(this.fabricObjects)})}addPoint(n){let i=this.drawingFabricCanvas.getPointer(n);this._drawingPoints.push(new ot(i.x,i.y))}drawPath(){let n=this._drawingPoints.map(s=>`${s.x} ${s.y}`).join(" "),i=new $r(`M ${n}`,{fill:"transparent",stroke:this.ssalonPathAttribute.color,strokeWidth:2});this.fabricObjects.length=0,this.fabricObjects.push(i),this.drawingFabricCanvas.clear(),this.drawingFabricCanvas.renderAll(),this.drawingFabricCanvas.add(i)}onChangePencilColor(n){this.ssalonPathAttribute.color=this.ssalonColor.getSsalonColorObjectByValue(n).color}endTicketWebView(){this._router.navigate(["/web/main"])}getBackgroundColor(){return this.editMode===xt.BACKGROUND_COLOR_CHANGE||this.editMode===xt.DRAW?"rgba(0, 0, 0, 0.2)":"rgba(0, 0, 0, 0.7)"}isLowerWidth(){return window.innerWidth<800}};e.\u0275fac=function(i){return new(i||e)(se(Ze),se(At),se(wr),se(ht))},e.\u0275cmp=Ee({type:e,selectors:[["app-mobile-ticket-editor"]],viewQuery:function(i,s){if(i&1&&(Ie(QM,5),Ie(eT,5),Ie(tT,5),Ie(nT,5),Ie(iT,5),Ie(rT,5),Ie(sT,5),Ie(oT,5)),i&2){let o;ke(o=Pe())&&(s.editFeatureButtons=o.first),ke(o=Pe())&&(s.backgroundPath=o.first),ke(o=Pe())&&(s.textEditInput=o.first),ke(o=Pe())&&(s.drawCanvas=o.first),ke(o=Pe())&&(s.selectedPhotoContainer=o.first),ke(o=Pe())&&(s.generatedImageContainer=o.first),ke(o=Pe())&&(s.prompt=o.first),ke(o=Pe())&&(s.generatedImage=o.first)}},inputs:{moimId:"moimId",face:"face"},outputs:{onChangeViewer:"onChangeViewer",onObjectEditEnded:"onObjectEditEnded",onBackgroundColorEditEnded:"onBackgroundColorEditEnded",onClickPreview:"onClickPreview"},standalone:!0,features:[Fe],decls:20,vars:23,consts:[["editFeatureButtons",""],["detailedEditor",""],["generatedImage",""],["prompt",""],["backgroundPath",""],["textEditFeatureContainer",""],["textEditInput",""],["selectedPhotoContainer",""],["stickerEditFeatureContainer",""],["drawCanvas",""],[1,"container"],[1,"horizontal-container"],["id","edit-feature-buttons"],[3,"onClickToggleButtonEvent","elements","innerSize","outerSize","noneStatusValue"],[4,"ngIf"],["class","complete-button",3,"mouseup",4,"ngIf"],["id","detail-editor",3,"hidden"],[1,"back-button",3,"onClickEvent","buttonElement","heightSize"],[1,"complete-button-container"],[1,"complete-button",3,"onClickEvent","buttonElement","heightSize","type","highContrast"],["class","color-board-container",4,"ngIf"],["id","photo-edit-feature-container",4,"ngIf"],["id","sticker-edit-feature-container",4,"ngIf"],[1,"complete-button",3,"onClickEvent","buttonElement","heightSize","type"],[1,"complete-button",3,"mouseup"],["src","assets/icons/view.png","width","20","height","20"],["id","generate-container"],["width","300","height","300"],["id","generator"],["id","prompt","autocomplete","off","type","text",3,"placeholder"],["id","generate-button",3,"click"],["id","spinner",4,"ngIf"],["id","spinner"],[1,"color-board-container"],["width","350","height","600","viewBox","0 0 350 600","fill","none","xmlns","http://www.w3.org/2000/svg",1,"ticket-background"],["width","350","height","600","rx","25"],[1,"color-board",3,"onClickToggleButtonEvent","outerSize","innerSize","selectedValue"],["id","text-edit-feature-container"],["autocomplete","off","type","text",1,"text-edit-input",3,"input"],["id","text-align",1,"horizontal-container"],[3,"onClickToggleButtonEvent","elements","outerSize","selectedValues"],[1,"fonts",3,"onClickToggleButtonEvent","elements"],["id","photo-edit-feature-container"],["id","upload-photo-num"],["id","selected-photo-container"],["id","sticker-edit-feature-container"],[3,"display","justify-content","margin-bottom",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"sticker",3,"mouseup"],["width","80px",3,"src"],["class","selected-status",4,"ngIf"],[1,"selected-status"],[1,"ticket-background"],["width","350","height","600"],[1,"color-board",3,"onClickToggleButtonEvent","outerSize","innerSize"]],template:function(i,s){if(i&1){let o=ye();k(0,"div",10)(1,"div",11)(2,"div",12)(3,"app-circle-toggle-button-group",13,0),K("onClickToggleButtonEvent",function(u){return ae(o),ue(s.onClickChangeEditMode(u))}),I()(),me(5,uT,2,3,"div",14)(6,cT,2,0,"div",15),I(),k(7,"div",16,1)(9,"div",11)(10,"div")(11,"app-simple-button",17),K("onClickEvent",function(){return ae(o),ue(s.onClickEndDetailedEditViewer())}),I()(),k(12,"div",18)(13,"app-simple-button",19),K("onClickEvent",function(){return ae(o),ue(s.onClickEndDetailedEditViewer())}),I()()(),me(14,lT,11,10,"div",14)(15,hT,5,3,"div",20)(16,dT,9,17,"div",14)(17,DT,5,1,"div",21)(18,CT,3,1,"div",22)(19,gT,5,2,"div",14),I()()}i&2&&(A(),Te("justify-content","right"),A(2),S("elements",s.editFeatures)("innerSize",20)("outerSize","36px")("noneStatusValue",s.mobileTicketEditMode.NONE),A(2),S("ngIf",!s.isLowerWidth()),A(),S("ngIf",s.isLowerWidth()),A(),Te("background-color",s.getBackgroundColor()),S("hidden",s.editMode===s.mobileTicketEditMode.NONE),A(4),S("buttonElement",s.goBackButtonElement)("heightSize",40),A(2),S("buttonElement",s.completeButtonElement)("heightSize",15)("type","text")("highContrast",!0),A(),S("ngIf",s.editMode===s.mobileTicketEditMode.AI_GENERATE),A(),S("ngIf",s.editMode===s.mobileTicketEditMode.BACKGROUND_COLOR_CHANGE),A(),S("ngIf",s.editMode===s.mobileTicketEditMode.TEXT),A(),S("ngIf",s.editMode===s.mobileTicketEditMode.PHOTO),A(),S("ngIf",s.editMode===s.mobileTicketEditMode.STICKER),A(),S("ngIf",s.editMode===s.mobileTicketEditMode.DRAW))},dependencies:[xf,T8,S8,M8,cn,qe],styles:[".editor-button[_ngcontent-%COMP%]{width:50px;height:50px;margin:10px}.feature-button-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;width:100%}.container[_ngcontent-%COMP%]{width:100%;height:100%;margin-top:10px;position:relative}.color-board-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;width:100%}.horizontal-container[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.complete-button[_ngcontent-%COMP%]{margin-right:10px;cursor:pointer}.complete-button-container[_ngcontent-%COMP%]{background-color:#000000b3;border-radius:10px}#detail-editor[_ngcontent-%COMP%]{position:fixed;top:0;left:0;background-color:#000000b3;width:100%;height:100%}.text-edit-input[_ngcontent-%COMP%]{font-size:30px;font-family:Courier New,Courier,monospace;-webkit-text-size-adjust:100%;background-color:transparent;caret-color:#006bff;color:#efefef;width:70%;height:400px;border:none;outline:none;text-align:center}#text-edit-feature-container[_ngcontent-%COMP%]{position:absolute;width:100%;top:30%;left:50%;transform:translate(-50%,-30%);display:flex;justify-content:center}.fonts[_ngcontent-%COMP%]{position:absolute;bottom:120px;left:0;width:100%;height:20px}.color-board[_ngcontent-%COMP%]{position:absolute;width:100%;bottom:20px}#text-align[_ngcontent-%COMP%]{position:absolute;bottom:180px;left:0;width:100%}#preview[_ngcontent-%COMP%]{position:absolute;top:0;right:0}.sticker[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;position:relative}.sticker[_ngcontent-%COMP%]:hover{cursor:pointer}.selected[_ngcontent-%COMP%]{border:2px solid #006BFF}.ticket-background[_ngcontent-%COMP%]{position:absolute;top:70px;left:50%;transform:translate(-50%)}#sticker-edit-feature-container[_ngcontent-%COMP%]{overflow-y:auto;height:100%}#selected-photo-container[_ngcontent-%COMP%]{position:absolute;width:200px;top:40%;left:50%;transform:translate(-50%,-30%);display:flex;justify-content:center}#upload-photo-num[_ngcontent-%COMP%]{position:absolute;height:20px;width:20px;top:calc(40% - 100px);left:calc(50% - 100px);display:flex;justify-content:center;background-color:#fff;color:#000;border-radius:50%}.selected-status[_ngcontent-%COMP%]{width:20px;height:20px;border-radius:50%;position:absolute;top:0;left:0;background-color:green}#edit-feature-buttons[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}#generator[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;height:auto;margin-top:20px}#generate-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center}#generate-button[_ngcontent-%COMP%]{background-color:transparent;width:auto;height:auto;border:none;outline:none;color:#fff;cursor:pointer}#prompt[_ngcontent-%COMP%]{font-size:20px;-webkit-text-size-adjust:100%;background-color:#000000b3;caret-color:#006bff;color:#efefef;width:70%;height:400px;border:none;outline:none;text-align:left}#spinner[_ngcontent-%COMP%]{width:20px;height:20px;border:2px solid transparent;border-top-color:#3498db;border-radius:50%;box-sizing:border-box;animation:_ngcontent-%COMP%_spin 2s linear infinite}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]});let r=e;return r})();var ET=["backgroundPath"],FT=["editCanvas"],P8=(()=>{let e=class e{constructor(n){this._apiExecutorService=n,this.backgroundPath=null,this.editCanvas=null,this.moimId=void 0,this.createTemplate=void 0,this.face=void 0,this.onClickText=new Ve,this.canvas=null,this.isCursorDown=!1,this.decorationInfo=void 0,this.backgroundColor="#ffffff"}ngOnInit(){return $(this,null,function*(){console.log(this.moimId,this.createTemplate,this.face)})}ngAfterViewInit(){return $(this,null,function*(){yield this.loadDecorationInfo(),yield this.initFabric()})}initFabric(){return $(this,null,function*(){this.canvas=new Br(this.editCanvas?.nativeElement),this.canvas.selection=!1,this.canvas.on("mouse:down",n=>{n.target!==null&&n.target instanceof In&&(this.isCursorDown=!0)}),this.canvas.on("mouse:up",n=>{n.target!==null&&n.target instanceof In&&(this.isCursorDown&&this.onClickText?.emit(n.target),this.isCursorDown=!1)}),this.canvas.on("object:moving",n=>{this.isCursorDown=!1}),this.canvas.on("object:scaling",n=>{this.isCursorDown=!1}),this.canvas.on("object:rotating",n=>{this.isCursorDown=!1}),this.canvas.on("object:modified",n=>{this.canvas?.moveObjectTo(n.target,this.canvas.getObjects().length-1)}),yield this.canvas?.loadFromJSON(this.decorationInfo.fabric),this.canvas?.renderAll()})}loadDecorationInfo(){return $(this,null,function*(){let n=null;this.createTemplate!==void 0&&(this.face==="front"?(this.createTemplate!=="edit"&&(yield this._apiExecutorService.createTicket(this.moimId,this.createTemplate)),console.log(yield this._apiExecutorService.getTicket(this.moimId)),this.decorationInfo=yield this._apiExecutorService.getTicket(this.moimId)):this.face==="back"&&(this.createTemplate!=="edit"&&(yield this._apiExecutorService.createDiary(this.moimId,this.createTemplate)),this.decorationInfo=yield this._apiExecutorService.getDiary(this.moimId)))})}updateCanvas(n){if(console.log(n),n!==null)for(let i=0;i{let e=class e{constructor(){this.buttons=null,this.elements=[],this.outerSize=40,this.columnNum=10,this.isLabelVisible=!0,this.onClickToggleButtonEvent=new Ve,this.modifiedElements=[]}ngOnInit(){let n=[];for(let i=0;is.value===n).status=i}getBorderColor(n){return n?"#4DAF50":"#F44336"}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=Ee({type:e,selectors:[["app-circle-toggle-status-group"]],viewQuery:function(i,s){if(i&1&&Ie(_T,5),i&2){let o;ke(o=Pe())&&(s.buttons=o)}},inputs:{elements:"elements",outerSize:"outerSize",columnNum:"columnNum",isLabelVisible:"isLabelVisible"},outputs:{onClickToggleButtonEvent:"onClickToggleButtonEvent"},standalone:!0,features:[Fe],decls:3,vars:1,consts:[["toggleButtonContainer",""],["circleStatus",""],["id","container"],[4,"ngFor","ngForOf"],["class","color-row",4,"ngFor","ngForOf"],[1,"color-row"],[1,"status-container"],[1,"img-container"],[1,"circle-status",3,"src","width","height"],["class","nickname-container",3,"width",4,"ngIf"],[1,"nickname-container"]],template:function(i,s){i&1&&(k(0,"div",2,0),me(2,bT,2,1,"ng-container",3),I()),i&2&&(A(2),S("ngForOf",s.modifiedElements))},dependencies:[cn,qe],styles:["#container[_ngcontent-%COMP%]{display:flex}#container[_ngcontent-%COMP%]::-webkil-scrollbar{display:none}#feature-buttons[_ngcontent-%COMP%]{position:absolute;display:flex;right:0}.status-container[_ngcontent-%COMP%]{margin:5px;display:flex;flex-direction:column;align-items:center}.circle-status[_ngcontent-%COMP%]{border-radius:50%}.img-container[_ngcontent-%COMP%]{border-radius:50%;background-color:#efefef;border-width:2px;display:flex;justify-content:center;align-items:center;margin:8px;flex:0 0 auto}.nickname-container[_ngcontent-%COMP%]{text-align:center;text-overflow:ellipsis;font-weight:500}.toggle-button[_ngcontent-%COMP%]:hover{cursor:pointer}.selected[_ngcontent-%COMP%]{background-color:#000!important}.color-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-evenly;margin-bottom:10px}"]});let r=e;return r})();var BT=["mobileTicketEditViewer"],AT=["mobileTicketEditor"],wT=["barcodeContainer"],ST=["qrVideo"],MT=["qrCanvas"],TT=["joiningUsersComponent"];function kT(r,e){if(r&1){let t=ye();k(0,"div",7)(1,"app-simple-button",8),K("onClickEvent",function(){ae(t);let i=N();return ue(i.onClickBackButton())}),I(),k(2,"app-simple-button",9),K("onClickEvent",function(){ae(t);let i=N();return ue(i.onClickQuitButton())}),I()()}if(r&2){let t=N();A(),S("buttonElement",t.topNavigatorButton)("heightSize",40),A(),S("buttonElement",t.quitFeatureButton)("heightSize",15)("type","text")}}function PT(r,e){if(r&1&&(k(0,"div",10,0)(2,"div"),de(3,"app-mobile-ticket-viewer",11),I()()),r&2){let t=N();A(2),Te("height","100%")("width","100%"),A(),S("moimId",t.moimId)}}function IT(r,e){if(r&1){let t=ye();k(0,"div",10,1)(2,"div",12)(3,"app-mobile-ticket-edit-viewer",13,2),K("onClickText",function(i){ae(t);let s=N();return ue(s.openTextEditor(i))}),I()(),k(5,"div",14)(6,"app-mobile-ticket-editor",15,3),K("onChangeViewer",function(i){ae(t);let s=N();return ue(s.changeEditMode(i))})("onClickPreview",function(){ae(t);let i=N();return ue(i.onClickPreviewButton())})("onObjectEditEnded",function(i){ae(t);let s=N();return ue(s.applyEdit(i))})("onBackgroundColorEditEnded",function(i){ae(t);let s=N();return ue(s.applyBackgroundColorEdit(i))}),I()()()}if(r&2){let t=N();A(3),S("moimId",t.moimId)("createTemplate",t.createTemplate)("face",t.face),A(3),Te("height",t.editMode===t.mobileTicketEditMode.NONE?"60px":"100%"),S("moimId",t.moimId)("face",t.face)}}function RT(r,e){if(r&1&&(k(0,"div",10,4)(2,"div"),de(3,"app-mobile-ticket-viewer",11),I(),k(4,"div"),de(5,"app-simple-button",16),I()()),r&2){let t=N();A(2),Te("height","100%"),A(),S("moimId",t.moimId),A(2),S("buttonElement",t.joinButtonElement)}}var ar=function(r){return r[r.APPVIEW=0]="APPVIEW",r[r.APPEDITVIEW=1]="APPEDITVIEW",r[r.WEBVIEW=2]="WEBVIEW",r}(ar||{}),Sr=(()=>{let e=class e{constructor(n,i,s,o,a,u){this._apiExecutorService=n,this._ssalonConfigService=i,this._sceneGraphService=s,this._route=o,this._router=a,this._location=u,this.mobileTicketEditViewer=null,this.mobileTicketEditor=null,this.barcodeContainer=null,this.qrVideo=null,this.qrCanvas=null,this.joiningUsersComponent=null,this.topNavigatorButton={selected:!1,label:"\uC800\uC7A5 \uBC0F \uBBF8\uB9AC\uBCF4\uAE30",imgSrc:"assets/icons/go-back.png",value:0},this.quitFeatureButton={selected:!1,label:"\uC0DD\uC131 \uC644\uB8CC",value:0},this.mobileTicketViewMode=ar,this.mode=ar.APPEDITVIEW,this.mobileTicketEditMode=xt,this.editMode=xt.NONE,this.goBackButtonElement={imgSrc:"assets/icons/go-back.png",label:"\uB4A4\uB85C\uAC00\uAE30",value:0},this.joinButtonElement={selected:!1,imgSrc:"assets/icons/view.png",label:"\uCC38\uC5EC\uD558\uAE30",value:0},this.isDetectingQRCode=!1,this.isCameraLoaded=!1,this.qrStream=null,this.qrCodeSrc="",this.joiningUsers=[],this.checkStatus={checkStatus:null,color:"#006BFF",text:"QR\uCF54\uB4DC\uB97C \uC778\uC2DD\uD574\uC8FC\uC138\uC694."},this.prompt="",this.imageUrl="",this.moimId=void 0,this.viewType=void 0,this.createTemplate=void 0,this.face="front",this.isFromUrl=!1}ngOnInit(){this.viewType===void 0?this._route.queryParams.subscribe(n=>{this.moimId=n.moimId,this.viewType=n.viewType,this.createTemplate=n.createTemplate,this.face=n.face,this.isFromUrl=!0,this.setFirstPage()}):(this.isFromUrl=!1,this.setFirstPage())}ngOnDestroy(){this._sceneGraphService.destroy()}onChangeInput(n){this.prompt=n}setFirstPage(){this.viewType==="edit"?(this._sceneGraphService.mobileTicketAutoRotate=!1,this.changeViewMode(ar.APPEDITVIEW)):this.viewType==="view"?(this._sceneGraphService.mobileTicketAutoRotate=!0,this.changeViewMode(ar.APPVIEW)):(this._sceneGraphService.mobileTicketAutoRotate=!0,this.changeViewMode(ar.WEBVIEW))}changeEditMode(n){this.editMode=n}changeViewMode(n){return $(this,null,function*(){this.mode=n})}onClickBackButton(){this.mode===ar.APPVIEW&&this.isFromUrl===!0&&this.changeViewMode(ar.APPEDITVIEW)}getBackButtonVisibility(){return!this.isFromUrl&&this.mode===ar.APPVIEW?!1:this.mode!==ar.APPEDITVIEW}applyEdit(n){this.mobileTicketEditViewer?.updateCanvas(n)}applyBackgroundColorEdit(n){this.mobileTicketEditViewer?.updateBackgroundColor(n)}onClickPreviewButton(){return $(this,null,function*(){yield this.updateServer(),this.createTemplate="edit",this.changeViewMode(ar.APPVIEW)})}onClickQuitButton(){return $(this,null,function*(){this._router.navigate(["/web/meeting-info"],{queryParams:{moimId:this.moimId}})})}updateServer(){return $(this,null,function*(){if(this.mobileTicketEditViewer!==null&&this.mobileTicketEditor!==null){let o=function(u){for(var c=atob(u.split(",")[1]),f=u.split(",")[0].split(":")[1].split(";")[0],l=new ArrayBuffer(c.length),h=new Uint8Array(l),d=0;d{let e=class e{constructor(n){this._apiExecutorService=n,this.contentOnly=!1,this.content=void 0,this.message=void 0,this.align="left",this.convertedHTML=""}ngOnInit(){this.convertedHTML=this.convertMarkdown(this.message.message).replace(/]*>/g,"").replace(/<\/p>/g,""),console.log(this.convertedHTML)}getTime(n){let i=new Date(n),s=9*60,o=new Date(i.getTime()+s*60*1e3),a=o.getHours().toString().padStart(2,"0"),u=o.getMinutes().toString().padStart(2,"0");return`${a} : ${u}`}convertMarkdown(n){let i=new R8.EmojiConvertor;i.replace_mode="unified",i.allow_native=!0;let s=Mt.parse(n);return i.replace_colons(s)}};e.\u0275fac=function(i){return new(i||e)(se(Ze))},e.\u0275cmp=Ee({type:e,selectors:[["app-chat-container"]],inputs:{contentOnly:"contentOnly",content:"content",message:"message",align:"align"},standalone:!0,features:[Fe],decls:7,vars:11,consts:[[1,"container"],["id","profile-container",3,"justify-content",4,"ngIf"],["id","content-container"],["id","date-container",3,"margin-right",4,"ngIf"],["id","text-container",3,"innerHTML",4,"ngIf"],["id","chat-image-container","width","100%",3,"src",4,"ngIf"],["id","date-container",3,"margin-left",4,"ngIf"],["id","profile-container"],["id","profile-img-container",3,"src",4,"ngIf"],["id","name-container"],["id","profile-img-container",3,"src"],["id","date-container"],["id","text-container",3,"innerHTML"],["id","chat-image-container","width","100%",3,"src"]],template:function(i,s){i&1&&(k(0,"div",0),me(1,NT,5,5,"div",1),k(2,"div",2),me(3,UT,2,3,"div",3)(4,VT,1,1,"div",4)(5,zT,1,1,"img",5)(6,HT,2,3,"div",6),I()()),i&2&&(A(),S("ngIf",!s.contentOnly),A(),Te("justify-content",s.align)("margin-left",s.align==="left"?45:0,"px")("margin-right",s.align==="right"?45:0,"px"),A(),S("ngIf",s.align==="right"),A(),S("ngIf",(s.message.imageUrl==null?null:s.message.imageUrl.length)===0),A(),S("ngIf",(s.message.imageUrl==null?null:s.message.imageUrl.length)>0),A(),S("ngIf",s.align==="left"))},dependencies:[qe,Xo],styles:['.container[_ngcontent-%COMP%]{width:100%;margin-top:8px}#profile-container[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:left;align-items:center}#profile-img-container[_ngcontent-%COMP%]{width:36px;height:36px;border-radius:50%}#chat-image-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;max-width:200px;border-radius:10px}#name-container[_ngcontent-%COMP%]{margin-left:12px;margin-right:12px;font-family:Pretendard Variable,Pretendard,-apple-system,BlinkMacSystemFont,system-ui,Roboto,Helvetica Neue,Segoe UI,Apple SD Gothic Neo,Noto Sans KR,Malgun Gothic,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,sans-serif;font-size:14px;font-weight:500}#content-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:flex-end}#text-container[_ngcontent-%COMP%]{border-radius:10px;padding:10px;max-width:300px;border:solid #D8D8DA 1px;font-family:Pretendard Variable,Pretendard,-apple-system,BlinkMacSystemFont,system-ui,Roboto,Helvetica Neue,Segoe UI,Apple SD Gothic Neo,Noto Sans KR,Malgun Gothic,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,sans-serif;font-size:14px;font-weight:400;word-break:break-word}#date-container[_ngcontent-%COMP%]{font-family:Pretendard Variable,Pretendard,-apple-system,BlinkMacSystemFont,system-ui,Roboto,Helvetica Neue,Segoe UI,Apple SD Gothic Neo,Noto Sans KR,Malgun Gothic,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,sans-serif;font-size:11px;font-weight:500}']});let r=e;return r})();var GT=["capacity"],jT=["fee"];function WT(r,e){if(r&1&&de(0,"app-simple-content",9),r&2){let t=N();S("title","\uC0AC\uC9C4")("images",t.getImageUrlsToNewButtonElements(t.moimInfo.meetingPictureUrls))("imageHeight",300)}}var L8=(()=>{let e=class e{constructor(n,i){this._apiExecutorService=n,this._router=i,this.capacity=null,this.fee=null,this.moimId="",this.moimInfo={},this.participants=[],this.isCreator=!1,this.isParticipant=!1,this.photos=[{imgSrc:"assets/add_photo.png",value:-1,label:"\uC0AC\uC9C4\uCD94\uAC00",selected:!1}]}ngOnInit(){return $(this,null,function*(){})}getDate(){let n=new Date(this.moimInfo.meetingDate),i=n.getFullYear(),s=n.getMonth()+1,o=n.getDate(),a=n.getHours(),u=n.getMinutes();return`${`${i}\uB144 ${s}\uC6D4 ${o}\uC77C ${a}\uC2DC ${u}\uBD84`}`}getBill(){let n=this.moimInfo.payment!==void 0?this.moimInfo.payment:"1000";return`${Number(n).toLocaleString("en-US")} \uC6D0`}getImageUrlsToNewButtonElements(n){return n.map((s,o)=>({imgSrc:s,value:o,label:"",selected:!1}))}getParticipantImages(){return this.getImageUrlsToNewButtonElements(this.participants.map(n=>n.profilePictureUrl))}onClickParticipantButton(){this._router.navigate(["/web/meeting-participants"],{queryParams:{id:this.moimId}})}};e.\u0275fac=function(i){return new(i||e)(se(Ze),se(At))},e.\u0275cmp=Ee({type:e,selectors:[["app-moim-info"]],viewQuery:function(i,s){if(i&1&&(Ie(GT,7),Ie(jT,7)),i&2){let o;ke(o=Pe())&&(s.capacity=o.first),ke(o=Pe())&&(s.fee=o.first)}},inputs:{moimId:"moimId",moimInfo:"moimInfo",participants:"participants",isCreator:"isCreator",isParticipant:"isParticipant"},standalone:!0,features:[Fe],decls:14,vars:16,consts:[[1,"container"],["id","creator-container"],["id","title-container"],["id","profile-container"],["id","profile-img-container",3,"src"],["id","name-container"],[3,"title","content"],[3,"onClickExtraButtonEvent","title","extraLabel","extraButtonLabel","images","imageHeight"],[3,"title","images","imageHeight",4,"ngIf"],[3,"title","images","imageHeight"]],template:function(i,s){i&1&&(k(0,"div",0)(1,"div",1)(2,"div",2),ze(3," \uAC1C\uCD5C\uC790 "),I(),k(4,"div",3),de(5,"img",4),k(6,"div",5),ze(7),I()()(),de(8,"app-simple-content",6)(9,"app-simple-content",6)(10,"app-simple-content",6),k(11,"app-simple-content",7),K("onClickExtraButtonEvent",function(){return s.onClickParticipantButton()}),I(),de(12,"app-simple-content",6),me(13,WT,1,3,"app-simple-content",8),I()),i&2&&(A(5),S("src",s.moimInfo.creatorProfilePictureUrl,Zt),A(2),Ht(s.moimInfo.creator),A(),S("title","\uBAA8\uC784 \uB0A0\uC9DC")("content",s.getDate()),A(),S("title","\uBAA8\uC784 \uC7A5\uC18C")("content",s.moimInfo.location),A(),S("title","\uCC38\uAC00\uBE44")("content",s.getBill()),A(),S("title","\uCC38\uAC00\uC790")("extraLabel",s.participants.length+"\uBA85 / "+s.moimInfo.capacity+"\uBA85")("extraButtonLabel",s.isParticipant?"\uAD00\uB9AC":"")("images",s.getParticipantImages())("imageHeight",30),A(),S("title","\uBAA8\uC784\uC18C\uAC1C")("content",s.moimInfo.description),A(),S("ngIf",s.moimInfo.meetingPictureUrls.length>0))},dependencies:[qe,na],styles:['.container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;overflow-y:scroll;height:100%;width:100%;position:relative}.container[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}#profile-container[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:left;align-items:center;margin-top:16px}#profile-img-container[_ngcontent-%COMP%]{width:36px;height:36px;border-radius:50%}#name-container[_ngcontent-%COMP%]{margin-left:12px;font-family:Pretendard Variable,Pretendard,-apple-system,BlinkMacSystemFont,system-ui,Roboto,Helvetica Neue,Segoe UI,Apple SD Gothic Neo,Noto Sans KR,Malgun Gothic,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,sans-serif;font-size:14px;font-weight:500}#creator-container[_ngcontent-%COMP%]{width:350px;display:flex;flex-direction:column;margin-bottom:16px}#title-container[_ngcontent-%COMP%]{width:100%;font-size:18px;font-weight:600;font-family:Pretendard Variable,Pretendard,-apple-system,BlinkMacSystemFont,system-ui,Roboto,Helvetica Neue,Segoe UI,Apple SD Gothic Neo,Noto Sans KR,Malgun Gothic,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,sans-serif}']});let r=e;return r})();var wo={LF:` +`,NULL:"\0"};var ac=class r{constructor(e){let{command:t,headers:n,body:i,binaryBody:s,escapeHeaderValues:o,skipContentLengthHeader:a}=e;this.command=t,this.headers=Object.assign({},n||{}),s?(this._binaryBody=s,this.isBinaryBody=!0):(this._body=i||"",this.isBinaryBody=!1),this.escapeHeaderValues=o||!1,this.skipContentLengthHeader=a||!1}get body(){return!this._body&&this.isBinaryBody&&(this._body=new TextDecoder().decode(this._binaryBody)),this._body||""}get binaryBody(){return!this._binaryBody&&!this.isBinaryBody&&(this._binaryBody=new TextEncoder().encode(this._body)),this._binaryBody}static fromRawFrame(e,t){let n={},i=s=>s.replace(/^\s+|\s+$/g,"");for(let s of e.headers.reverse()){let o=s.indexOf(":"),a=i(s[0]),u=i(s[1]);t&&e.command!=="CONNECT"&&e.command!=="CONNECTED"&&(u=r.hdrValueUnEscape(u)),n[a]=u}return new r({command:e.command,headers:n,binaryBody:e.binaryBody,escapeHeaderValues:t})}toString(){return this.serializeCmdAndHeaders()}serialize(){let e=this.serializeCmdAndHeaders();return this.isBinaryBody?r.toUnit8Array(e,this._binaryBody).buffer:e+this._body+wo.NULL}serializeCmdAndHeaders(){let e=[this.command];this.skipContentLengthHeader&&delete this.headers["content-length"];for(let t of Object.keys(this.headers||{})){let n=this.headers[t];this.escapeHeaderValues&&this.command!=="CONNECT"&&this.command!=="CONNECTED"?e.push(`${t}:${r.hdrValueEscape(`${n}`)}`):e.push(`${t}:${n}`)}return(this.isBinaryBody||!this.isBodyEmpty()&&!this.skipContentLengthHeader)&&e.push(`content-length:${this.bodyLength()}`),e.join(wo.LF)+wo.LF+wo.LF}isBodyEmpty(){return this.bodyLength()===0}bodyLength(){let e=this.binaryBody;return e?e.length:0}static sizeOfUTF8(e){return e?new TextEncoder().encode(e).length:0}static toUnit8Array(e,t){let n=new TextEncoder().encode(e),i=new Uint8Array([0]),s=new Uint8Array(n.length+t.length+i.length);return s.set(n),s.set(t,n.length),s.set(i,n.length+t.length),s}static marshall(e){return new r(e).serialize()}static hdrValueEscape(e){return e.replace(/\\/g,"\\\\").replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/:/g,"\\c")}static hdrValueUnEscape(e){return e.replace(/\\r/g,"\r").replace(/\\n/g,` +`).replace(/\\c/g,":").replace(/\\\\/g,"\\")}};var C1=class{constructor(e,t){this.onFrame=e,this.onIncomingPing=t,this._encoder=new TextEncoder,this._decoder=new TextDecoder,this._token=[],this._initState()}parseChunk(e,t=!1){let n;if(typeof e=="string"?n=this._encoder.encode(e):n=new Uint8Array(e),t&&n[n.length-1]!==0){let i=new Uint8Array(n.length+1);i.set(n,0),i[n.length]=0,n=i}for(let i=0;it[0]==="content-length")[0];e?(this._bodyBytesRemaining=parseInt(e[1],10),this._onByte=this._collectBodyFixedSize):this._onByte=this._collectBodyNullTerminated}_collectBodyNullTerminated(e){if(e===0){this._retrievedBody();return}this._consumeByte(e)}_collectBodyFixedSize(e){if(this._bodyBytesRemaining--===0){this._retrievedBody();return}this._consumeByte(e)}_retrievedBody(){this._results.binaryBody=this._consumeTokenAsRaw();try{this.onFrame(this._results)}catch(e){console.log("Ignoring an exception thrown by a frame handler. Original exception: ",e)}this._initState()}_consumeByte(e){this._token.push(e)}_consumeTokenAsUTF8(){return this._decoder.decode(this._consumeTokenAsRaw())}_consumeTokenAsRaw(){let e=new Uint8Array(this._token);return this._token=[],e}_initState(){this._results={command:void 0,headers:[],binaryBody:void 0},this._token=[],this._headerKey=void 0,this._onByte=this._collectFrame}};var ur;(function(r){r[r.CONNECTING=0]="CONNECTING",r[r.OPEN=1]="OPEN",r[r.CLOSING=2]="CLOSING",r[r.CLOSED=3]="CLOSED"})(ur=ur||(ur={}));var vi;(function(r){r[r.ACTIVE=0]="ACTIVE",r[r.DEACTIVATING=1]="DEACTIVATING",r[r.INACTIVE=2]="INACTIVE"})(vi=vi||(vi={}));var Bn=class{constructor(e){this.versions=e}supportedVersions(){return this.versions.join(",")}protocolVersions(){return this.versions.map(e=>`v${e.replace(".","")}.stomp`)}};Bn.V1_0="1.0";Bn.V1_1="1.1";Bn.V1_2="1.2";Bn.default=new Bn([Bn.V1_2,Bn.V1_1,Bn.V1_0]);function N8(r,e){r.terminate=function(){let t=()=>{};this.onerror=t,this.onmessage=t,this.onopen=t;let n=new Date,i=Math.random().toString().substring(2,8),s=this.onclose;this.onclose=o=>{let a=new Date().getTime()-n.getTime();e(`Discarded socket (#${i}) closed after ${a}ms, with code/reason: ${o.code}/${o.reason}`)},this.close(),s?.call(r,{code:4001,reason:`Quick discarding socket (#${i}) without waiting for the shutdown sequence.`,wasClean:!1})}}var g1=class{constructor(e,t,n){this._client=e,this._webSocket=t,this._connected=!1,this._serverFrameHandlers={CONNECTED:i=>{this.debug(`connected to server ${i.headers.server}`),this._connected=!0,this._connectedVersion=i.headers.version,this._connectedVersion===Bn.V1_2&&(this._escapeHeaderValues=!0),this._setupHeartbeat(i.headers),this.onConnect(i)},MESSAGE:i=>{let s=i.headers.subscription,o=this._subscriptions[s]||this.onUnhandledMessage,a=i,u=this,c=this._connectedVersion===Bn.V1_2?a.headers.ack:a.headers["message-id"];a.ack=(f={})=>u.ack(c,s,f),a.nack=(f={})=>u.nack(c,s,f),o(a)},RECEIPT:i=>{let s=this._receiptWatchers[i.headers["receipt-id"]];s?(s(i),delete this._receiptWatchers[i.headers["receipt-id"]]):this.onUnhandledReceipt(i)},ERROR:i=>{this.onStompError(i)}},this._counter=0,this._subscriptions={},this._receiptWatchers={},this._partialData="",this._escapeHeaderValues=!1,this._lastServerActivityTS=Date.now(),this.debug=n.debug,this.stompVersions=n.stompVersions,this.connectHeaders=n.connectHeaders,this.disconnectHeaders=n.disconnectHeaders,this.heartbeatIncoming=n.heartbeatIncoming,this.heartbeatOutgoing=n.heartbeatOutgoing,this.splitLargeFrames=n.splitLargeFrames,this.maxWebSocketChunkSize=n.maxWebSocketChunkSize,this.forceBinaryWSFrames=n.forceBinaryWSFrames,this.logRawCommunication=n.logRawCommunication,this.appendMissingNULLonIncoming=n.appendMissingNULLonIncoming,this.discardWebsocketOnCommFailure=n.discardWebsocketOnCommFailure,this.onConnect=n.onConnect,this.onDisconnect=n.onDisconnect,this.onStompError=n.onStompError,this.onWebSocketClose=n.onWebSocketClose,this.onWebSocketError=n.onWebSocketError,this.onUnhandledMessage=n.onUnhandledMessage,this.onUnhandledReceipt=n.onUnhandledReceipt,this.onUnhandledFrame=n.onUnhandledFrame}get connectedVersion(){return this._connectedVersion}get connected(){return this._connected}start(){let e=new C1(t=>{let n=ac.fromRawFrame(t,this._escapeHeaderValues);this.logRawCommunication||this.debug(`<<< ${n}`),(this._serverFrameHandlers[n.command]||this.onUnhandledFrame)(n)},()=>{this.debug("<<< PONG")});this._webSocket.onmessage=t=>{if(this.debug("Received data"),this._lastServerActivityTS=Date.now(),this.logRawCommunication){let n=t.data instanceof ArrayBuffer?new TextDecoder().decode(t.data):t.data;this.debug(`<<< ${n}`)}e.parseChunk(t.data,this.appendMissingNULLonIncoming)},this._webSocket.onclose=t=>{this.debug(`Connection closed to ${this._webSocket.url}`),this._cleanUp(),this.onWebSocketClose(t)},this._webSocket.onerror=t=>{this.onWebSocketError(t)},this._webSocket.onopen=()=>{let t=Object.assign({},this.connectHeaders);this.debug("Web Socket Opened..."),t["accept-version"]=this.stompVersions.supportedVersions(),t["heart-beat"]=[this.heartbeatOutgoing,this.heartbeatIncoming].join(","),this._transmit({command:"CONNECT",headers:t})}}_setupHeartbeat(e){if(e.version!==Bn.V1_1&&e.version!==Bn.V1_2||!e["heart-beat"])return;let[t,n]=e["heart-beat"].split(",").map(i=>parseInt(i,10));if(this.heartbeatOutgoing!==0&&n!==0){let i=Math.max(this.heartbeatOutgoing,n);this.debug(`send PING every ${i}ms`),this._pinger=setInterval(()=>{this._webSocket.readyState===ur.OPEN&&(this._webSocket.send(wo.LF),this.debug(">>> PING"))},i)}if(this.heartbeatIncoming!==0&&t!==0){let i=Math.max(this.heartbeatIncoming,t);this.debug(`check PONG every ${i}ms`),this._ponger=setInterval(()=>{let s=Date.now()-this._lastServerActivityTS;s>i*2&&(this.debug(`did not receive server activity for the last ${s}ms`),this._closeOrDiscardWebsocket())},i)}}_closeOrDiscardWebsocket(){this.discardWebsocketOnCommFailure?(this.debug("Discarding websocket, the underlying socket may linger for a while"),this.discardWebsocket()):(this.debug("Issuing close on the websocket"),this._closeWebsocket())}forceDisconnect(){this._webSocket&&(this._webSocket.readyState===ur.CONNECTING||this._webSocket.readyState===ur.OPEN)&&this._closeOrDiscardWebsocket()}_closeWebsocket(){this._webSocket.onmessage=()=>{},this._webSocket.close()}discardWebsocket(){typeof this._webSocket.terminate!="function"&&N8(this._webSocket,e=>this.debug(e)),this._webSocket.terminate()}_transmit(e){let{command:t,headers:n,body:i,binaryBody:s,skipContentLengthHeader:o}=e,a=new ac({command:t,headers:n,body:i,binaryBody:s,escapeHeaderValues:this._escapeHeaderValues,skipContentLengthHeader:o}),u=a.serialize();if(this.logRawCommunication?this.debug(`>>> ${u}`):this.debug(`>>> ${a}`),this.forceBinaryWSFrames&&typeof u=="string"&&(u=new TextEncoder().encode(u)),typeof u!="string"||!this.splitLargeFrames)this._webSocket.send(u);else{let c=u;for(;c.length>0;){let f=c.substring(0,this.maxWebSocketChunkSize);c=c.substring(this.maxWebSocketChunkSize),this._webSocket.send(f),this.debug(`chunk sent = ${f.length}, remaining = ${c.length}`)}}}dispose(){if(this.connected)try{let e=Object.assign({},this.disconnectHeaders);e.receipt||(e.receipt=`close-${this._counter++}`),this.watchForReceipt(e.receipt,t=>{this._closeWebsocket(),this._cleanUp(),this.onDisconnect(t)}),this._transmit({command:"DISCONNECT",headers:e})}catch(e){this.debug(`Ignoring error during disconnect ${e}`)}else(this._webSocket.readyState===ur.CONNECTING||this._webSocket.readyState===ur.OPEN)&&this._closeWebsocket()}_cleanUp(){this._connected=!1,this._pinger&&(clearInterval(this._pinger),this._pinger=void 0),this._ponger&&(clearInterval(this._ponger),this._ponger=void 0)}publish(e){let{destination:t,headers:n,body:i,binaryBody:s,skipContentLengthHeader:o}=e,a=Object.assign({destination:t},n);this._transmit({command:"SEND",headers:a,body:i,binaryBody:s,skipContentLengthHeader:o})}watchForReceipt(e,t){this._receiptWatchers[e]=t}subscribe(e,t,n={}){n=Object.assign({},n),n.id||(n.id=`sub-${this._counter++}`),n.destination=e,this._subscriptions[n.id]=t,this._transmit({command:"SUBSCRIBE",headers:n});let i=this;return{id:n.id,unsubscribe(s){return i.unsubscribe(n.id,s)}}}unsubscribe(e,t={}){t=Object.assign({},t),delete this._subscriptions[e],t.id=e,this._transmit({command:"UNSUBSCRIBE",headers:t})}begin(e){let t=e||`tx-${this._counter++}`;this._transmit({command:"BEGIN",headers:{transaction:t}});let n=this;return{id:t,commit(){n.commit(t)},abort(){n.abort(t)}}}commit(e){this._transmit({command:"COMMIT",headers:{transaction:e}})}abort(e){this._transmit({command:"ABORT",headers:{transaction:e}})}ack(e,t,n={}){n=Object.assign({},n),this._connectedVersion===Bn.V1_2?n.id=e:n["message-id"]=e,n.subscription=t,this._transmit({command:"ACK",headers:n})}nack(e,t,n={}){return n=Object.assign({},n),this._connectedVersion===Bn.V1_2?n.id=e:n["message-id"]=e,n.subscription=t,this._transmit({command:"NACK",headers:n})}};var E1=class{constructor(e={}){this.stompVersions=Bn.default,this.connectionTimeout=0,this.reconnectDelay=5e3,this.heartbeatIncoming=1e4,this.heartbeatOutgoing=1e4,this.splitLargeFrames=!1,this.maxWebSocketChunkSize=8*1024,this.forceBinaryWSFrames=!1,this.appendMissingNULLonIncoming=!1,this.discardWebsocketOnCommFailure=!1,this.state=vi.INACTIVE;let t=()=>{};this.debug=t,this.beforeConnect=t,this.onConnect=t,this.onDisconnect=t,this.onUnhandledMessage=t,this.onUnhandledReceipt=t,this.onUnhandledFrame=t,this.onStompError=t,this.onWebSocketClose=t,this.onWebSocketError=t,this.logRawCommunication=!1,this.onChangeState=t,this.connectHeaders={},this._disconnectHeaders={},this.configure(e)}get webSocket(){return this._stompHandler?._webSocket}get disconnectHeaders(){return this._disconnectHeaders}set disconnectHeaders(e){this._disconnectHeaders=e,this._stompHandler&&(this._stompHandler.disconnectHeaders=this._disconnectHeaders)}get connected(){return!!this._stompHandler&&this._stompHandler.connected}get connectedVersion(){return this._stompHandler?this._stompHandler.connectedVersion:void 0}get active(){return this.state===vi.ACTIVE}_changeState(e){this.state=e,this.onChangeState(e)}configure(e){Object.assign(this,e)}activate(){let e=()=>{if(this.active){this.debug("Already ACTIVE, ignoring request to activate");return}this._changeState(vi.ACTIVE),this._connect()};this.state===vi.DEACTIVATING?(this.debug("Waiting for deactivation to finish before activating"),this.deactivate().then(()=>{e()})):e()}_connect(){return $(this,null,function*(){if(yield this.beforeConnect(),this._stompHandler){this.debug("There is already a stompHandler, skipping the call to connect");return}if(!this.active){this.debug("Client has been marked inactive, will not attempt to connect");return}this.connectionTimeout>0&&(this._connectionWatcher&&clearTimeout(this._connectionWatcher),this._connectionWatcher=setTimeout(()=>{this.connected||(this.debug(`Connection not established in ${this.connectionTimeout}ms, closing socket`),this.forceDisconnect())},this.connectionTimeout)),this.debug("Opening Web Socket...");let e=this._createWebSocket();this._stompHandler=new g1(this,e,{debug:this.debug,stompVersions:this.stompVersions,connectHeaders:this.connectHeaders,disconnectHeaders:this._disconnectHeaders,heartbeatIncoming:this.heartbeatIncoming,heartbeatOutgoing:this.heartbeatOutgoing,splitLargeFrames:this.splitLargeFrames,maxWebSocketChunkSize:this.maxWebSocketChunkSize,forceBinaryWSFrames:this.forceBinaryWSFrames,logRawCommunication:this.logRawCommunication,appendMissingNULLonIncoming:this.appendMissingNULLonIncoming,discardWebsocketOnCommFailure:this.discardWebsocketOnCommFailure,onConnect:t=>{if(this._connectionWatcher&&(clearTimeout(this._connectionWatcher),this._connectionWatcher=void 0),!this.active){this.debug("STOMP got connected while deactivate was issued, will disconnect now"),this._disposeStompHandler();return}this.onConnect(t)},onDisconnect:t=>{this.onDisconnect(t)},onStompError:t=>{this.onStompError(t)},onWebSocketClose:t=>{this._stompHandler=void 0,this.state===vi.DEACTIVATING&&this._changeState(vi.INACTIVE),this.onWebSocketClose(t),this.active&&this._schedule_reconnect()},onWebSocketError:t=>{this.onWebSocketError(t)},onUnhandledMessage:t=>{this.onUnhandledMessage(t)},onUnhandledReceipt:t=>{this.onUnhandledReceipt(t)},onUnhandledFrame:t=>{this.onUnhandledFrame(t)}}),this._stompHandler.start()})}_createWebSocket(){let e;if(this.webSocketFactory)e=this.webSocketFactory();else if(this.brokerURL)e=new WebSocket(this.brokerURL,this.stompVersions.protocolVersions());else throw new Error("Either brokerURL or webSocketFactory must be provided");return e.binaryType="arraybuffer",e}_schedule_reconnect(){this.reconnectDelay>0&&(this.debug(`STOMP: scheduling reconnection in ${this.reconnectDelay}ms`),this._reconnector=setTimeout(()=>{this._connect()},this.reconnectDelay))}deactivate(){return $(this,arguments,function*(e={}){let t=e.force||!1,n=this.active,i;if(this.state===vi.INACTIVE)return this.debug("Already INACTIVE, nothing more to do"),Promise.resolve();if(this._changeState(vi.DEACTIVATING),this._reconnector&&(clearTimeout(this._reconnector),this._reconnector=void 0),this._stompHandler&&this.webSocket.readyState!==ur.CLOSED){let s=this._stompHandler.onWebSocketClose;i=new Promise((o,a)=>{this._stompHandler.onWebSocketClose=u=>{s(u),o()}})}else return this._changeState(vi.INACTIVE),Promise.resolve();return t?this._stompHandler?.discardWebsocket():n&&this._disposeStompHandler(),i})}forceDisconnect(){this._stompHandler&&this._stompHandler.forceDisconnect()}_disposeStompHandler(){this._stompHandler&&this._stompHandler.dispose()}publish(e){this._checkConnection(),this._stompHandler.publish(e)}_checkConnection(){if(!this.connected)throw new TypeError("There is no underlying STOMP connection")}watchForReceipt(e,t){this._checkConnection(),this._stompHandler.watchForReceipt(e,t)}subscribe(e,t,n={}){return this._checkConnection(),this._stompHandler.subscribe(e,t,n)}unsubscribe(e,t={}){this._checkConnection(),this._stompHandler.unsubscribe(e,t)}begin(e){return this._checkConnection(),this._stompHandler.begin(e)}commit(e){this._checkConnection(),this._stompHandler.commit(e)}abort(e){this._checkConnection(),this._stompHandler.abort(e)}ack(e,t,n={}){this._checkConnection(),this._stompHandler.ack(e,t,n)}nack(e,t,n={}){this._checkConnection(),this._stompHandler.nack(e,t,n)}};var XT=["simpleInput"],qT=["msgContainer"],YT=["fileInput"],$T=["msgComponents"];function ZT(r,e){if(r&1&&(rn(0),de(1,"app-chat-container",11,2),sn()),r&2){let t=e.$implicit,n=e.index,i=N();A(),S("message",t)("contentOnly",i.isSameSender(t,n))("align",i.isMyMsg(t))}}function KT(r,e){if(r&1&&(rn(0),de(1,"img",12),sn()),r&2){let t=e.$implicit;A(),S("src",t.profilePictureUrl,Zt)}}var U8=(()=>{let e=class e{constructor(n){this._apiExecutorService=n,this.simpleInput=null,this.msgContainer=null,this.moimId=void 0,this.myProfile=void 0,this.participants=[],this.message="",this.isConnected=!1,this.isEntered=!1,this.messages=[],this._imageUrl="",this._file=void 0,this._stompClient=void 0,window.addEventListener("beforeunload",()=>{this.disconnect()}),this._apiExecutorService.setToken()}ngOnInit(){return $(this,null,function*(){this.myProfile=this._apiExecutorService.myProfile;let n=yield this._apiExecutorService.getLastMessages(this.moimId);this.messages=n.filter(i=>i.messageType==="TALK"),this._stompClient=new E1({brokerURL:"wss://ssalon.co.kr/ws-stomp",connectHeaders:{Authorization:`Bearer ${this._apiExecutorService.token}`,moimId:this.moimId}}),this._stompClient.onConnect=i=>{console.log("Connected: "+i),this.isConnected=!0,this.isEntered||(this._stompClient.publish({destination:`/send/${this.moimId}`,body:JSON.stringify({message:this.simpleInput.innerText}),headers:{Authorization:`Bearer ${this._apiExecutorService.token}`,MessageType:"ENTER"}}),this.isEntered=!0,console.log("\uC785\uC7A5")),this._stompClient.subscribe(`/room/${this.moimId}`,s=>$(this,null,function*(){let o=JSON.parse(s.body);console.log(o),o.messageType==="TALK"?this.messages.push(JSON.parse(s.body)):o.messageType==="ENTER"?yield this.updateParticipants():yield this.updateParticipants()}))},this._stompClient.onStompError=i=>{console.error("Broker reported error: "+i.headers.message),console.error("Additional details: "+i.body)},this.connect()})}ngAfterViewInit(){this.msgContainer.nativeElement.scrollTop=this.msgContainer.nativeElement.scrollHeight}ngAfterViewChecked(){this.msgComponents.changes.subscribe(()=>{this.msgContainer.nativeElement.scrollTop=this.msgContainer.nativeElement.scrollHeight})}ngOnDestroy(){this.disconnect()}connect(){this._stompClient.activate()}disconnect(){this._stompClient&&(this._stompClient.publish({destination:`/send/${this.moimId}`,body:JSON.stringify({message:this.simpleInput.innerText}),headers:{Authorization:`Bearer ${this._apiExecutorService.token}`,MessageType:"LEAVE"}}),this._stompClient.publish({destination:"/send/disconnect",body:JSON.stringify({message:this.simpleInput.innerText}),headers:{Authorization:`Bearer ${this._apiExecutorService.token}`,MessageType:"LEAVE"}}),this._stompClient.deactivate(),this.isConnected=!1,this.isEntered=!1,this.messages=[])}sendMessage(){this._stompClient&&this._stompClient.connected&&(this._file?this.uploadFile(this._file).then(()=>{this.publishMessage(),this.flushAfterSendMessage()}).catch(n=>{console.error("File upload error:",n)}):(this.publishMessage(),this.flushAfterSendMessage()))}publishMessage(){this._stompClient.publish({destination:`/send/${this.moimId}`,body:JSON.stringify({message:this.simpleInput.innerText,imageUrl:this._imageUrl}),headers:{Authorization:`Bearer ${this._apiExecutorService.token}`,MessageType:"TALK"}})}flushAfterSendMessage(){this.simpleInput.innerText="",this._imageUrl=""}isMyMsg(n){return this.myProfile.nickname===n.nickname&&this.myProfile.email===n.email?"right":"left"}isSameSender(n,i){return i===0?!1:this.messages[i-1].nickname===n.nickname}updateParticipants(){return $(this,null,function*(){this.participants=yield this._apiExecutorService.getChattingParticipants(this.moimId)})}onKeyUpEnter(n){this.simpleInput?.innerText!==""&&this.sendMessage()}sendImage(){let n=document.createElement("input");n.type="file",n.accept="image/*",n.onchange=(function(){return $(this,null,function*(){this._imageUrl="",n.files&&n.files.length>0&&(this._file=n.files[0],this._imageUrl=yield this.uploadFile(this._file),this.sendMessage())})}).bind(this),n.click()}uploadFile(n){return $(this,null,function*(){let i=new FormData;i.append("files",n);let s=yield this._apiExecutorService.uploadGeneralImage(i),o=Object.keys(s.mapURI)[0];return s.mapURI[o]})}};e.\u0275fac=function(i){return new(i||e)(se(Ze))},e.\u0275cmp=Ee({type:e,selectors:[["app-chatting"]],viewQuery:function(i,s){if(i&1&&(Ie(XT,5),Ie(qT,5),Ie(YT,5),Ie($T,5)),i&2){let o;ke(o=Pe())&&(s.simpleInput=o.first),ke(o=Pe())&&(s.msgContainer=o.first),ke(o=Pe())&&(s.fileInput=o.first),ke(o=Pe())&&(s.msgComponents=o)}},hostBindings:function(i,s){i&1&&K("keyup.enter",function(a){return s.onKeyUpEnter(a)})},inputs:{moimId:"moimId"},standalone:!0,features:[Fe],decls:12,vars:4,consts:[["msgContainer",""],["simpleInput",""],["msgComponents",""],[1,"container"],["id","msg-container"],[4,"ngFor","ngForOf"],["id","send-input"],[3,"onClickChatSendButtonEvent","onClickImgSendButtonEvent","type"],["id","participants-container"],["id","participant-profile-imgs"],["id","participant-nums"],[3,"message","contentOnly","align"],["id","profile-img","width","50px","height","50px",3,"src"]],template:function(i,s){if(i&1){let o=ye();k(0,"div",3)(1,"div",4,0),me(3,ZT,3,3,"ng-container",5),I(),k(4,"div",6)(5,"app-simple-input",7,1),K("onClickChatSendButtonEvent",function(){return ae(o),ue(s.sendMessage())})("onClickImgSendButtonEvent",function(){return ae(o),ue(s.sendImage())}),I()(),k(7,"div",8)(8,"div",9),me(9,KT,2,1,"ng-container",5),I(),k(10,"div",10),ze(11),I()()()}i&2&&(A(3),S("ngForOf",s.messages),A(2),S("type","chat-input"),A(4),S("ngForOf",s.participants),A(2),Nt("",s.participants.length,"\uBA85 \uCC38\uAC00 \uC911"))},dependencies:[cn,Xo,Hn,O8],styles:['.container[_ngcontent-%COMP%]{width:100%;height:100%;position:relative}#msg-container[_ngcontent-%COMP%]{width:100%;height:calc(100% - 100px);overflow:scroll}#msg-container[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}#send-input[_ngcontent-%COMP%]{position:absolute;width:350px;left:50%;bottom:0;transform:translate(-50%)}#participants-container[_ngcontent-%COMP%]{position:absolute;width:350px;overflow-x:hidden;bottom:10px;left:50%;transform:translate(-50%);display:flex;justify-content:right;align-items:center}#participant-profile-imgs[_ngcontent-%COMP%]{display:flex;justify-content:right;align-items:center;margin-right:10px}#profile-img[_ngcontent-%COMP%]{width:20px;height:20px;border-radius:50%;display:flex;justify-content:center;align-items:center}#participant-nums[_ngcontent-%COMP%]{font-family:Pretendard Variable,Pretendard,-apple-system,BlinkMacSystemFont,system-ui,Roboto,Helvetica Neue,Segoe UI,Apple SD Gothic Neo,Noto Sans KR,Malgun Gothic,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,sans-serif;font-size:11px;font-weight:500;margin-right:10px}']});let r=e;return r})();var z8=vu(V8());var JT=["barcodeContainer"],QT=["qrVideo"],ek=["qrCanvas"],tk=["joiningUsersComponent"];function nk(r,e){if(r&1&&(k(0,"div",10)(1,"div",11)(2,"div",12)(3,"div",13),de(4,"img",14),I(),k(5,"div",15)(6,"div",16),ze(7),I(),k(8,"div",16),ze(9),I()()()(),k(10,"div",17),de(11,"app-circle-toggle-status-group",18,3),I()()),r&2){let t=N();Te("margin-top","30px"),A(),Te("justify-content","center"),A(2),Te("width",52,"px")("height",52,"px"),A(),S("src",t.checkStatus.checkingUser?t.checkStatus.checkingUser.profilePictureUrl:"assets/data_error.png",Zt),A(2),Te("font-size","20px"),A(),Nt(" ",t.checkStatus.checkingUser?t.checkStatus.checkingUser.nickname:"\uC54C\uC218\uC5C6\uC74C",""),A(),Te("color",t.checkStatus.color),A(),Ht(t.checkStatus.text),A(2),S("elements",t.joiningUsers)}}var H8=(()=>{let e=class e{constructor(n){this._apiExecutorService=n,this.barcodeContainer=null,this.qrVideo=null,this.qrCanvas=null,this.joiningUsersComponent=null,this.moimId="",this.isDetectingQRCode=!1,this.isCameraLoaded=!1,this.qrStream=null,this.qrCodeSrc="",this.joiningUsers=[],this.checkStatus={checkStatus:null,color:"#006BFF",text:"QR\uCF54\uB4DC\uB97C \uC778\uC2DD\uD574\uC8FC\uC138\uC694."}}ngOnInit(){return $(this,null,function*(){this.joiningUsers=[],(yield this._apiExecutorService.getJoiningUsers(this.moimId)).forEach((i,s)=>{this.joiningUsers.push({imgSrc:i.profilePictureUrl,label:i.nickname,value:i.userId,status:i.attendance})})})}ngAfterViewChecked(){return $(this,null,function*(){this.startQRCodeDetection()})}ngOnDestroy(){this.stopDetectQRCode()}startQRCodeDetection(){return $(this,null,function*(){if(this.qrVideo&&this.qrCanvas&&!this.isCameraLoaded)try{this.isCameraLoaded=!0,this.qrCanvas.nativeElement.setAttribute("willReadFrequently","true"),this.qrStream=yield navigator.mediaDevices.getUserMedia({video:{facingMode:"environment"}}),this.qrVideo.nativeElement.srcObject=this.qrStream,this.qrVideo.nativeElement.play(),this.detectQRCode()}catch(n){console.error(n)}})}detectQRCode(){return $(this,null,function*(){if(this.qrVideo&&this.qrCanvas)for(;;){if(this.qrVideo.nativeElement.readyState===this.qrVideo.nativeElement.HAVE_ENOUGH_DATA){let n=this.qrCanvas.nativeElement.getContext("2d",{willReadFrequently:!0});this.qrCanvas.nativeElement.height=this.qrVideo.nativeElement.videoHeight,this.qrCanvas.nativeElement.width=this.qrVideo.nativeElement.videoWidth,n?.drawImage(this.qrVideo?.nativeElement,0,0,this.qrCanvas.nativeElement?.width,this.qrCanvas.nativeElement?.height);let i=n?.getImageData(0,0,this.qrCanvas.nativeElement?.width,this.qrCanvas.nativeElement?.height),s=(0,z8.default)(i.data,i.width,i.height);if(s){try{let o=yield this._apiExecutorService.checkQR(this.moimId,s.data);this.checkStatus={checkStatus:o.attendance,checkingUser:{nickname:o.nickname,profilePictureUrl:o.profilePictureUrl,attendance:o.attendance,userId:o.userId},color:"#4DAF50",text:"\uD658\uC601\uD569\uB2C8\uB2E4."},this.checkStatus.checkingUser.attendance&&this.joiningUsersComponent?.changeStatus(this.checkStatus.checkingUser.userId,!0)}catch{this.checkStatus={checkStatus:!1,color:"#F44336",text:"\uCC38\uAC00\uC790\uAC00 \uC544\uB2D9\uB2C8\uB2E4."}}yield new Promise(o=>setTimeout(o,1e3)),this.checkStatus={checkStatus:null,color:"#006BFF",text:"QR\uCF54\uB4DC\uB97C \uC778\uC2DD\uD574\uC8FC\uC138\uC694."}}}yield new Promise(n=>setTimeout(n,100))}})}stopDetectQRCode(){this.qrStream&&(this.qrStream.getTracks().forEach(n=>n.stop()),this.qrStream=null,this.qrVideo&&(this.qrVideo.nativeElement.pause(),this.qrVideo.nativeElement.srcObject=null),this.qrCanvas&&this.qrCanvas.nativeElement.getContext("2d")?.clearRect(0,0,this.qrCanvas.nativeElement.width,this.qrCanvas.nativeElement.height),this.isDetectingQRCode=!1,this.isCameraLoaded=!1)}isLoadedJoiningUsers(){return this.joiningUsers.length>0}};e.\u0275fac=function(i){return new(i||e)(se(Ze))},e.\u0275cmp=Ee({type:e,selectors:[["app-qr-check"]],viewQuery:function(i,s){if(i&1&&(Ie(JT,5),Ie(QT,5),Ie(ek,5),Ie(tk,5)),i&2){let o;ke(o=Pe())&&(s.barcodeContainer=o.first),ke(o=Pe())&&(s.qrVideo=o.first),ke(o=Pe())&&(s.qrCanvas=o.first),ke(o=Pe())&&(s.joiningUsersComponent=o.first)}},inputs:{moimId:"moimId",joiningUsers:"joiningUsers"},standalone:!0,features:[Fe],decls:10,vars:9,consts:[["qrCheckView",""],["qrVideo",""],["qrCanvas",""],["joiningUsersComponent",""],[1,"container"],["id","qr-detector"],["autoplay","","playsInline",""],["id","qr-canvas"],["id","qr-guide-container"],["id","join-user-container",3,"margin-top",4,"ngIf"],["id","join-user-container"],[1,"horizontal-container"],["id","qr-checking-user-container"],["id","qr-checking-user-profile-container"],["id","qr-checking-user-profile-img","height","50px",3,"src"],["id","qr-check-info-container"],[1,"qr-check-info"],["id","join-user-list"],[3,"elements"]],template:function(i,s){i&1&&(k(0,"div",4,0)(2,"div",5),de(3,"video",6,1)(5,"canvas",7,2),k(7,"div",8),ze(8," \uCE74\uBA54\uB77C \uC548\uC5D0 \uB4E4\uC5B4\uC624\uBA74 \uC790\uB3D9\uC73C\uB85C QR\uCF54\uB4DC\uB97C \uC778\uC2DD\uD569\uB2C8\uB2E4. "),I()(),me(9,nk,13,16,"div",9),I()),i&2&&(A(3),Te("width","100%")("height","100%")("object-fit","cover"),A(2),Te("display","none"),A(4),S("ngIf",s.isLoadedJoiningUsers()))},dependencies:[qe,I8],styles:['.container[_ngcontent-%COMP%]{height:100%;width:100%;display:flex;flex-direction:column;position:relative}.horizontal-container[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center}#qrcode-overay[_ngcontent-%COMP%]{width:100%;height:100%;position:absolute;top:0;left:0;background-color:#000c;display:flex;justify-content:center;align-items:center}#qrcode-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:150px;height:150px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background-color:#fff;border-radius:10px}#qrcode[_ngcontent-%COMP%]{width:130px;height:130px}#qr-detector[_ngcontent-%COMP%]{width:100%;height:300px;position:relative}#qr-guide-container[_ngcontent-%COMP%]{position:absolute;font-family:Pretendard Variable,Pretendard,-apple-system,BlinkMacSystemFont,system-ui,Roboto,Helvetica Neue,Segoe UI,Apple SD Gothic Neo,Noto Sans KR,Malgun Gothic,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,sans-serif;font-size:12px;font-weight:600;color:#fff;top:20px;left:50%;transform:translate(-50%);padding:5px;border-radius:10px;background-color:#000000b3;word-break:break-all}#qr-guide[_ngcontent-%COMP%]{position:absolute;top:0;left:50%;transform:translate(-50%)}#qr-checking-user-container[_ngcontent-%COMP%]{display:flex;align-items:center}#qr-checking-user-profile-container[_ngcontent-%COMP%]{margin:5px;border-radius:50%;display:flex;justify-content:center;align-items:center}#qr-checking-user-profile-img[_ngcontent-%COMP%]{border-radius:50%}#qr-check-info-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex-direction:column;margin-left:20px}.qr-check-info[_ngcontent-%COMP%]{font-family:Pretendard Variable,Pretendard,-apple-system,BlinkMacSystemFont,system-ui,Roboto,Helvetica Neue,Segoe UI,Apple SD Gothic Neo,Noto Sans KR,Malgun Gothic,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,sans-serif;font-size:17px;margin:5px}#join-user-list[_ngcontent-%COMP%]{margin-top:50px;height:100px;overflow-y:scroll}#join-user-list[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}']});let r=e;return r})();var q8=vu(X8());var Y8=(()=>{let e=class e{constructor(n,i,s){this._sceneGraphService=n,this._apiExecutorService=i,this.sanitizer=s,this.moimId="",this.participants=void 0,this.qrCodeSrc="",this.ticketViewerSrc=""}ngOnInit(){return $(this,null,function*(){let n=`https://ssalon.co.kr/web/ticket?moimId=${this.moimId}&viewType=view`;this.ticketViewerSrc=this.sanitizer.bypassSecurityTrustResourceUrl(n),yield this.setQrCodeImgSrc()})}setQrCodeImgSrc(){return $(this,null,function*(){let n=(0,q8.default)(0,"L");n.addData(yield this._apiExecutorService.getBarcode(this.moimId)),n.make(),this.qrCodeSrc=n.createDataURL(5,0)})}getAttendance(){return this.participants.find(n=>{if(n.id===this._apiExecutorService.myProfile.id)return n.attendance})?"\uCD9C\uC11D\uC644\uB8CC":"\uCD9C\uC11D\uC548\uD568"}};e.\u0275fac=function(i){return new(i||e)(se(wr),se(Ze),se(J1))},e.\u0275cmp=Ee({type:e,selectors:[["app-qr-show"]],inputs:{moimId:"moimId",participants:"participants"},standalone:!0,features:[Fe],decls:9,vars:4,consts:[["qrShowView",""],[1,"container"],["id","ticket-viewer-container"],[3,"moimId","viewType"],["id","qrcode-overay"],["id","qrcode-container"],["id","qrcode","alt","\uC774\uBBF8\uC9C0",3,"src"],["id","attendance-status-container"]],template:function(i,s){i&1&&(k(0,"div",1,0)(2,"div",2),de(3,"app-ticket",3),I(),k(4,"div",4)(5,"div",5),de(6,"img",6),I()(),k(7,"div",7),ze(8),I()()),i&2&&(A(3),S("moimId",s.moimId)("viewType","view"),A(3),S("src",s.qrCodeSrc,Zt),A(2),Nt(" ",s.getAttendance()," "))},dependencies:[Sr],styles:[".container[_ngcontent-%COMP%]{height:100%;width:100%;display:flex;flex-direction:column;position:relative}.horizontal-container[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center}#qr-show-container[_ngcontent-%COMP%]{width:350px;height:calc(100% - 20px)}#qr-show[_ngcontent-%COMP%]{border:none;padding:0;margin:0;outline:none;width:100%;height:100%}#qrcode-overay[_ngcontent-%COMP%]{width:100%;height:calc(100% - 20px);position:absolute;top:0;left:0;background-color:#000c;display:flex;justify-content:center;align-items:center}#qrcode-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:150px;height:150px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background-color:#fff;border-radius:10px}#ticket-viewer-container[_ngcontent-%COMP%]{width:100%;height:calc(100% - 20px)}#attendance-status-container[_ngcontent-%COMP%]{position:absolute;top:20px;left:50%;transform:translate(-50%);color:#fff}"]});let r=e;return r})();var $8=(()=>{let e=class e{constructor(n,i){this.buttonElementsService=n,this._apiExecutorService=i,this.reviewInfo={description:"",diaryPictureUrls:[]},this.moimId=void 0,this.photos=[{imgSrc:"assets/add_photo.png",value:-1,label:"\uC0AC\uC9C4\uCD94\uAC00",selected:!1}],this.onCreateButtonReadyEvent=new Ve}ngAfterViewChecked(){this.isAllTyped()&&this.onCreateButtonReadyEvent.emit(!0)}onInput(n,i){this.reviewInfo[n]=i}isAllTyped(){return this.reviewInfo.description!==""}onClickImage(n){if(n===-1){let i=document.createElement("input");i.type="file",i.accept="image/*",i.multiple=!0;let s=[];i.onchange=(function(){return $(this,null,function*(){if(s=[],i.files&&i.files.length>0){let o=Array.from(i.files),a=0;o.forEach((u,c)=>{let f=new FileReader;f.onload=(function(l){return $(this,null,function*(){s.push(l.target.result),a++,a===o.length&&(yield this.getImageUrl(s))})}).bind(this),f.readAsDataURL(u)})}})}).bind(this),i.click()}}getImageUrl(n){return $(this,null,function*(){let i=new FormData;function s(u){for(var c=atob(u.split(",")[1]),f=u.split(",")[0].split(":")[1].split(";")[0],l=new ArrayBuffer(c.length),h=new Uint8Array(l),d=0;d{i.append("files",s(u),`${c}.png`)});try{let u=yield this._apiExecutorService.uploadGeneralImage(i),c=Object.keys(u.mapURI);console.log(c);for(var o=0;o{let e=class e{constructor(n){this.buttonElementsService=n,this.onClickToggleButtonEvent=new Ve}onClickToggleButton(){let n=this.buttonElementsService.createTicketTypeButtons.find(i=>i.selected===!0);n!==void 0?this.onClickToggleButtonEvent.emit(n.value):this.onClickToggleButtonEvent.emit(!1)}};e.\u0275fac=function(i){return new(i||e)(se(ht))},e.\u0275cmp=Ee({type:e,selectors:[["app-create-diary"]],outputs:{onClickToggleButtonEvent:"onClickToggleButtonEvent"},standalone:!0,features:[Fe],decls:1,vars:3,consts:[[3,"onClickToggleButtonEvent","buttonElements","columnNum","multiSelection"]],template:function(i,s){i&1&&(k(0,"app-simple-toggle",0),K("onClickToggleButtonEvent",function(){return s.onClickToggleButton()}),I()),i&2&&S("buttonElements",s.buttonElementsService.createTicketTypeButtons)("columnNum",1)("multiSelection",!1)},dependencies:[wn]});let r=e;return r})();var ik=["createMoimReviewInfoComponent"];function rk(r,e){if(r&1){let t=ye();k(0,"div")(1,"app-create-moim-review-info",7,0),K("onCreateButtonReadyEvent",function(){ae(t);let i=N();return ue(i.changeCreateDiaryTypeButtonState(!0))}),I()()}if(r&2){let t=N();A(),S("reviewInfo",t.reviewInfo)("moimId",t.moimId)}}function sk(r,e){if(r&1){let t=ye();k(0,"div")(1,"app-create-diary",8),K("onClickToggleButtonEvent",function(i){ae(t);let s=N();return ue(s.changeCreateTicketButtonState(i))}),I()()}}var gu=function(r){return r[r.INFO=0]="INFO",r[r.DIARY=1]="DIARY",r}(gu||{}),F1=function(r){return r[r.EMPTY=0]="EMPTY",r[r.TEMPLATE=1]="TEMPLATE",r[r.AI=2]="AI",r}(F1||{}),K8=(()=>{let e=class e{constructor(n,i,s,o,a){this._apiExecutorService=n,this.buttonElementsService=i,this._location=s,this._router=o,this._route=a,this.createMoimReviewInfoComponent=null,this.moimId="",this.moimTitle="",this.createDiaryStep=gu,this.nowStep=gu.INFO,this.reviewInfo={description:"",diaryPictureUrls:[]},this.resultMeetingInfo={},this.createDiaryMode=F1.EMPTY}ngOnInit(){this._route.queryParams.subscribe(n=>{this.moimId=n.moimId,this.moimTitle=n.title})}onClickBackButton(){this.nowStep===gu.DIARY?this.nowStep=gu.INFO:(this.reviewInfo={description:"",diaryPictureUrls:[""]},this._location.back())}changeCreateDiaryTypeButtonState(n){this.buttonElementsService.nextButtons[0].selected=n}changeCreateTicketButtonState(n){n===0?this.createDiaryMode=F1.EMPTY:n===1&&(this.createDiaryMode=F1.TEMPLATE),this.buttonElementsService.createTicketButtons[0].selected=!0}onClickCreateTicketButton(){this._router.navigate(["/web/ticket"],{queryParams:{moimId:this.moimId,viewType:"edit",createTemplate:this.createDiaryMode===0?"N":"A",face:"back"}})}onClickNextButton(){return $(this,null,function*(){this.reviewInfo=this.createMoimReviewInfoComponent.reviewInfo,this.buttonElementsService.nextButtons[0].selected&&(yield this._apiExecutorService.createMoimReview(this.moimId,this.reviewInfo),this.buttonElementsService.createTicketTypeButtons.every(n=>n.selected=!1),this.nowStep=gu.DIARY)})}};e.\u0275fac=function(i){return new(i||e)(se(Ze),se(ht),se(Ai),se(At),se(Vt))},e.\u0275cmp=Ee({type:e,selectors:[["app-moim-review-create"]],viewQuery:function(i,s){if(i&1&&Ie(ik,5),i&2){let o;ke(o=Pe())&&(s.createMoimReviewInfoComponent=o.first)}},standalone:!0,features:[Fe],decls:7,vars:8,consts:[["createMoimReviewInfoComponent",""],[1,"container"],[3,"backButtonClickEvent","title","shareButton","defaultBack"],[1,"content-container"],[4,"ngIf"],[1,"bottom-button"],[3,"onClickEvent","buttonElements"],[3,"onCreateButtonReadyEvent","reviewInfo","moimId"],[3,"onClickToggleButtonEvent"]],template:function(i,s){i&1&&(k(0,"div",1)(1,"app-top-navigator",2),K("backButtonClickEvent",function(){return s.onClickBackButton()}),I(),k(2,"div",3),me(3,rk,3,2,"div",4)(4,sk,2,0,"div",4),I(),k(5,"div",5)(6,"app-square-button",6),K("onClickEvent",function(){return s.nowStep===s.createDiaryStep.INFO?s.onClickNextButton():s.onClickCreateTicketButton()}),I()()()),i&2&&(A(),Te("width","100%"),S("title",s.moimTitle)("shareButton",!1)("defaultBack",!1),A(2),S("ngIf",s.nowStep===s.createDiaryStep.INFO),A(),S("ngIf",s.nowStep===s.createDiaryStep.DIARY),A(2),S("buttonElements",s.nowStep===s.createDiaryStep.INFO?s.buttonElementsService.nextButtons:s.buttonElementsService.createTicketButtons))},dependencies:[qe,Mi,$8,Z8,En],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;height:100%;width:100%}.content-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;height:calc(100% - 140px);width:100%;position:relative;overflow:scroll}.content-container[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}"]});let r=e;return r})();function ok(r,e){if(r&1&&(k(0,"div",1),de(1,"app-simple-content",2)(2,"app-simple-content",3),I()),r&2){let t=N();A(),S("title","\uD6C4\uAE30")("content",t.reviewInfo.description),A(),S("title","\uC0AC\uC9C4")("images",t.getImagesToNewButtonElements(t.reviewInfo.diaryPictureUrls))("imageHeight",300)}}var J8=(()=>{let e=class e{constructor(n){this._apiExecutorService=n,this.moimId=void 0,this.reviewInfo=void 0}ngOnInit(){return $(this,null,function*(){this.reviewInfo=yield this._apiExecutorService.getMoimReview(this.moimId)})}getImagesToNewButtonElements(n){let i=[];for(let s=0;s{let e=class e{constructor(n,i,s){this._apiExecutorService=n,this._router=i,this.buttonElementService=s,this.moimId="",this.moimTitle="",this.isReviewCreated=!1}ngOnInit(){}onClickCreateDiaryButton(){this._router.navigate(["/web/meeting-review-create"],{queryParams:{moimId:this.moimId,title:this.moimTitle}})}};e.\u0275fac=function(i){return new(i||e)(se(Ze),se(At),se(ht))},e.\u0275cmp=Ee({type:e,selectors:[["app-moim-review"]],inputs:{moimId:"moimId",moimTitle:"moimTitle",isReviewCreated:"isReviewCreated"},standalone:!0,features:[Fe],decls:2,vars:2,consts:[["class","container",4,"ngIf"],[1,"container"],[3,"moimId"],["id","explanation"],["src","assets/create_diary.png","width","150px"],[3,"onClickEvent","buttonElements"]],template:function(i,s){i&1&&me(0,ak,2,1,"div",0)(1,uk,8,2,"div",0),i&2&&(S("ngIf",s.isReviewCreated),A(),S("ngIf",!s.isReviewCreated))},dependencies:[qe,J8,En],styles:['.container[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;margin-top:20px}#explanation[_ngcontent-%COMP%]{margin-top:150px;width:300px;text-align:center;font-weight:600;font-family:Pretendard Variable,Pretendard,-apple-system,BlinkMacSystemFont,system-ui,Roboto,Helvetica Neue,Segoe UI,Apple SD Gothic Neo,Noto Sans KR,Malgun Gothic,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,sans-serif;font-size:24px}']});let r=e;return r})();var ck=["ticket"],fk=r=>[r];function lk(r,e){if(r&1){let t=ye();k(0,"app-top-navigator",8),K("shareButtonClickEvent",function(){ae(t);let i=N();return ue(i.onClickShareButton())})("backButtonClickEvent",function(){ae(t);let i=N();return ue(i.onClickBackButton())}),I()}if(r&2){let t=N();Te("width","100%"),S("title",t.moimInfo.title)("shareButton",!0)("defaultBack",!1)}}function hk(r,e){if(r&1&&(k(0,"div",9),ze(1,"\uB9C1\uD06C \uBCF5\uC0AC \uC644\uB8CC! "),I()),r&2){let t=N();S("@copiedAnim",t.isCopyButtonClicked)}}function dk(r,e){if(r&1&&(k(0,"div",10),de(1,"app-qr-check",11),I()),r&2){let t=N();A(),S("moimId",t.moimId)}}function Dk(r,e){if(r&1&&(k(0,"div",10),de(1,"app-qr-show",12),I()),r&2){let t=N();A(),S("moimId",t.moimId)("participants",t.participants)}}function pk(r,e){if(r&1&&(k(0,"div",10),de(1,"app-ticket",13),I()),r&2){let t=N();A(),S("moimId",t.moimId)("viewType","view")}}function xk(r,e){if(r&1&&(k(0,"div",10),de(1,"app-moim-info",14),I()),r&2){let t=N();Te("margin-top",20,"px"),A(),S("moimId",t.moimId)("moimInfo",t.moimInfo)("participants",t.participants)("isCreator",t.isCreator)("isParticipant",t.isParticipant)}}function mk(r,e){if(r&1&&(k(0,"div",10),de(1,"app-chatting",11),I()),r&2){let t=N();A(),S("moimId",t.moimId)}}function Ck(r,e){if(r&1&&(k(0,"div",10),de(1,"app-moim-review",15),I()),r&2){let t=N();A(),S("moimId",t.moimId)("moimTitle",t.moimInfo.title)("isReviewCreated",t.isReviewCreated)}}function gk(r,e){if(r&1){let t=ye();k(0,"div")(1,"app-square-button",19),K("onClickEvent",function(i){ae(t);let s=N(2);return ue(s.onClickEditTicketButton(i))}),I()()}if(r&2){let t=N(2);A(),S("buttonElements",t.isCreator?t.buttonElementsService.editTicketButtons:Io(1,fk,t.buttonElementsService.editTicketButtons[1]))}}function Ek(r,e){if(r&1){let t=ye();k(0,"app-square-button",19),K("onClickEvent",function(){ae(t);let i=N(2);return ue(i.onClickJoinButton())}),I()}if(r&2){let t=N(2);S("buttonElements",t.buttonElementsService.joinButtonElements)}}function Fk(r,e){if(r&1&&(k(0,"div",16),me(1,gk,2,3,"div",17)(2,Ek,1,1,"app-square-button",18),I()),r&2){let t=N();A(),S("ngIf",t.nowTab===t.meetingInfoTabEnum.TICKET&&t.isParticipant),A(),S("ngIf",t.nowTab!==t.meetingInfoTabEnum.TICKET||!t.isParticipant)}}var Ln=function(r){return r[r.TICKET=0]="TICKET",r[r.INFO=1]="INFO",r[r.CHATTING=2]="CHATTING",r[r.DIARY=3]="DIARY",r[r.QRCHECK=4]="QRCHECK",r[r.QRSHOW=5]="QRSHOW",r}(Ln||{}),eE=(()=>{let e=class e{constructor(n,i,s,o,a){this._route=n,this._router=i,this._apiExecutorService=s,this.buttonElementsService=o,this.sceneGraphService=a,this.ticket=null,this.nowTab=Ln.INFO,this.moimId="",this.moimInfo=void 0,this.participants=void 0,this.ticketInfo=void 0,this.joined=!1,this.meetingInfoTabEnum=Ln,this.tabs=[],this.isCreator=!1,this.isParticipant=!1,this.joiningUsers=[],this.isReviewCreated=!1,this.isCopyButtonClicked=!1,this._route.queryParams.subscribe(u=>{this.moimId=u.moimId})}ngOnInit(){return $(this,null,function*(){this.moimInfo=yield this._apiExecutorService.getMoimInfo(this.moimId),this.participants=yield this._apiExecutorService.getJoiningUsers(this.moimId),this.ticketInfo=yield this._apiExecutorService.getTicket(this.moimId),yield this.checkDiaryCreated(),this.tabs=yield this.getTabs(),this.nowTab=this.tabs.find(i=>i.selected).value,this.changeButtonLabel(this.nowTab),(yield this._apiExecutorService.getJoiningUsers(this.moimId)).forEach((i,s)=>{this.joiningUsers.push({imgSrc:i.profilePictureUrl,label:i.nickname,value:i.userId,status:i.attendance})}),console.log(this.moimInfo)})}onClickTab(n){return $(this,null,function*(){this.moimInfo=yield this._apiExecutorService.getMoimInfo(this.moimId),this.ticketInfo=yield this._apiExecutorService.getTicket(this.moimId),yield this.checkDiaryCreated(),(yield this._apiExecutorService.getJoiningUsers(this.moimId)).forEach((s,o)=>{this.joiningUsers.push({imgSrc:s.profilePictureUrl,label:s.nickname,value:s.userId,status:s.attendance})}),this.nowTab=n,this.changeButtonLabel(this.nowTab)})}checkDiaryCreated(){return $(this,null,function*(){(yield this._apiExecutorService.getMoimReview(this.moimId))===!1?this.isReviewCreated=!1:this.isReviewCreated=!0})}changeButtonLabel(n){n===Ln.INFO?this.isParticipant?(this.buttonElementsService.joinButtonElements[0].selected=!1,this.buttonElementsService.joinButtonElements[0].label=this.isCreator?"\uBAA8\uC784 \uC815\uBCF4 \uC218\uC815\uD558\uAE30":this.excededMaxParticipants()?"\uCC38\uAC00 \uBD88\uAC00":"\uCC38\uAC00 \uCDE8\uC18C"):(this.buttonElementsService.joinButtonElements[0].selected=!0,this.buttonElementsService.joinButtonElements[0].label="\uCC38\uAC00 \uD558\uAE30"):n===Ln.DIARY&&this.isReviewCreated&&(this.buttonElementsService.joinButtonElements[0].selected=!1,this.buttonElementsService.joinButtonElements[0].label="\uBAA8\uC784 \uD6C4\uAE30 \uC218\uC815\uD558\uAE30")}excededMaxParticipants(){return this.moimInfo.capacity<=this.participants.length}getTabs(){return $(this,null,function*(){return this.isCreator=yield this._apiExecutorService.checkCreator(this.moimId),this.isParticipant=yield this._apiExecutorService.checkParticipant(this.moimId),this.isCreator?[{selected:!1,value:Ln.QRCHECK,label:"QR\uAC80\uC99D"},{selected:!1,value:Ln.TICKET,label:"\uC99D\uD45C \uBCF4\uAE30"},{selected:!0,value:Ln.INFO,label:"\uBAA8\uC784 \uC815\uBCF4"},{selected:!1,value:Ln.CHATTING,label:"\uCC44\uD305"},{selected:!1,value:Ln.DIARY,label:"\uBAA8\uC784 \uD6C4\uAE30"}]:this.isParticipant?[{selected:!1,value:Ln.QRSHOW,label:"QR"},{selected:!1,value:Ln.TICKET,label:"\uC99D\uD45C \uBCF4\uAE30"},{selected:!0,value:Ln.INFO,label:"\uBAA8\uC784 \uC815\uBCF4"},{selected:!1,value:Ln.CHATTING,label:"\uCC44\uD305"},{selected:!1,value:Ln.DIARY,label:"\uBAA8\uC784 \uD6C4\uAE30"}]:[{selected:!1,value:Ln.TICKET,label:"\uC99D\uD45C \uBCF4\uAE30"},{selected:!0,value:Ln.INFO,label:"\uBAA8\uC784 \uC815\uBCF4"}]})}onClickTicket(){this._router.navigate(["/web/ticket"],{queryParams:{moimId:this.moimId,viewType:"view"}})}onClickEditTicketButton(n){this.nowTab===this.meetingInfoTabEnum.TICKET&&(n===0?this._router.navigate(["/web/ticket"],{queryParams:{moimId:this.moimId,viewType:"edit",createTemplate:"edit",face:"front"}}):this._router.navigate(["/web/ticket"],{queryParams:{moimId:this.moimId,viewType:"edit",createTemplate:"edit",face:"back"}}))}onClickJoinButton(){return $(this,null,function*(){if(this.buttonElementsService.joinButtonElements[0].selected&&!this.isParticipant&&!this.excededMaxParticipants())if(this.moimInfo.payment){let s=function(){let o=navigator.userAgent;return/android|avantgo|blackberry|bada|bb|meego|palm|ipad|playbook|plucker|series60|symbian|webos|windows phone|windows ce|ipod|iphone/i.test(o)};var n=s;let i=yield this._apiExecutorService.payFee(this.moimId);s()?location.href=i.next_redirect_mobile_url:location.href=i.next_redirect_pc_url}else yield this._apiExecutorService.joinMoim(this.moimId),location.reload();else if(this.nowTab===this.meetingInfoTabEnum.INFO&&this.isCreator)this._router.navigate(["/web/meeting-edit"],{queryParams:{editType:"moimInfo",moimId:this.moimId}});else if(this.nowTab===this.meetingInfoTabEnum.INFO&&this.isParticipant){let i=yield this._apiExecutorService.getPaymentinfo(this.moimId);i?(yield this._apiExecutorService.getRefund(this.moimId,i.id))&&(yield this._apiExecutorService.kickParticipant(this.moimId,this._apiExecutorService.myProfile.id,"\uCC38\uAC00 \uCDE8\uC18C"),alert("\uD658\uBD88\uC774 \uC644\uB8CC\uB418\uC5C8\uC2B5\uB2C8\uB2E4.")):yield this._apiExecutorService.kickParticipant(this.moimId,this._apiExecutorService.myProfile.id,"\uCC38\uAC00 \uCDE8\uC18C"),location.reload()}else this.nowTab===this.meetingInfoTabEnum.DIARY&&this._router.navigate(["/web/meeting-edit"],{queryParams:{editType:"reviewInfo",moimId:this.moimId}})})}onClickShareButton(){return $(this,null,function*(){yield navigator.clipboard.writeText(`ssalon.co.kr/web/share?id=${this.moimId}&title=${this.moimInfo.title}`),console.log("Text copied to clipboard"),this.isCopyButtonClicked=!0,setTimeout(()=>{this.isCopyButtonClicked=!1},2e3)})}onClickBackButton(){return $(this,null,function*(){this._router.navigate(["/web/main"])})}getThumbSrc(n){return"https://test-bukkit-240415.s3.ap-northeast-2.amazonaws.com/Thumbnails/"+n+"/Thumb-"+n+".png"}showButton(){return!(this.nowTab===this.meetingInfoTabEnum.QRCHECK||this.nowTab===this.meetingInfoTabEnum.QRSHOW||this.nowTab===this.meetingInfoTabEnum.CHATTING||this.nowTab===this.meetingInfoTabEnum.DIARY&&!this.isReviewCreated)}isLoadedMoimInfo(){return this.moimInfo!==void 0}};e.\u0275fac=function(i){return new(i||e)(se(Vt),se(At),se(Ze),se(ht),se(wr))},e.\u0275cmp=Ee({type:e,selectors:[["app-meeting-info"]],viewQuery:function(i,s){if(i&1&&Ie(ck,5),i&2){let o;ke(o=Pe())&&(s.ticket=o.first)}},inputs:{nowTab:"nowTab"},standalone:!0,features:[Fe],decls:12,vars:10,consts:[[1,"container"],[3,"width","title","shareButton","defaultBack","shareButtonClickEvent","backButtonClickEvent",4,"ngIf"],["id","copy-alert-container",4,"ngIf"],[3,"onClickTabEvent","tabs"],["id","tab-container"],["class","content",4,"ngIf"],["class","content",3,"margin-top",4,"ngIf"],["id","join-button-container",4,"ngIf"],[3,"shareButtonClickEvent","backButtonClickEvent","title","shareButton","defaultBack"],["id","copy-alert-container"],[1,"content"],[3,"moimId"],[3,"moimId","participants"],[3,"moimId","viewType"],[3,"moimId","moimInfo","participants","isCreator","isParticipant"],[3,"moimId","moimTitle","isReviewCreated"],["id","join-button-container"],[4,"ngIf"],[3,"buttonElements","onClickEvent",4,"ngIf"],[3,"onClickEvent","buttonElements"]],template:function(i,s){i&1&&(k(0,"div",0),me(1,lk,1,5,"app-top-navigator",1)(2,hk,2,1,"div",2),k(3,"app-tab-group",3),K("onClickTabEvent",function(a){return s.onClickTab(a)}),I(),k(4,"div",4),me(5,dk,2,1,"div",5)(6,Dk,2,2,"div",5)(7,pk,2,2,"div",5)(8,xk,2,7,"div",6)(9,mk,2,1,"div",5)(10,Ck,2,3,"div",5),I(),me(11,Fk,3,2,"div",7),I()),i&2&&(A(),S("ngIf",s.isLoadedMoimInfo()),A(),S("ngIf",s.isCopyButtonClicked),A(),S("tabs",s.tabs),A(2),S("ngIf",s.nowTab===s.meetingInfoTabEnum.QRCHECK),A(),S("ngIf",s.nowTab===s.meetingInfoTabEnum.QRSHOW),A(),S("ngIf",s.nowTab===s.meetingInfoTabEnum.TICKET),A(),S("ngIf",s.nowTab===s.meetingInfoTabEnum.INFO&&s.isLoadedMoimInfo()),A(),S("ngIf",s.nowTab===s.meetingInfoTabEnum.CHATTING),A(),S("ngIf",s.nowTab===s.meetingInfoTabEnum.DIARY),A(),S("ngIf",s.showButton()))},dependencies:[qe,Mi,mf,L8,U8,En,H8,Y8,Sr,Q8],styles:['.container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;height:100%;width:100%;position:relative}.container[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}#tab-container[_ngcontent-%COMP%]{height:100%;width:100%;display:flex;flex-direction:row;justify-content:center;overflow-y:scroll}#tab-container[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.image-container[_ngcontent-%COMP%]{position:relative;display:flex;justify-content:center}.deco-container[_ngcontent-%COMP%]{position:absolute;left:0;top:0}svg[_ngcontent-%COMP%]{filter:drop-shadow(2px 2px 1px rgba(0,0,0,.4))}#join-button-container[_ngcontent-%COMP%]{margin-bottom:20px}.content[_ngcontent-%COMP%]{width:100%;height:100%}#copy-alert-container[_ngcontent-%COMP%]{position:absolute;right:10px;display:flex;justify-content:center;font-family:Pretendard Variable,Pretendard,-apple-system,BlinkMacSystemFont,system-ui,Roboto,Helvetica Neue,Segoe UI,Apple SD Gothic Neo,Noto Sans KR,Malgun Gothic,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,sans-serif;font-size:12px;font-weight:500;background-color:#fff;border-radius:10px;border:solid 1px #D8D8DA;padding:10px;z-index:10}#auto-rotate-checkbox[_ngcontent-%COMP%]{position:absolute;left:50%;transform:translate(-50%);top:120px;display:flex;align-items:center}'],data:{animation:[J2("copiedAnim",[ex("1",Q2({top:"50px"}))])]}});let r=e;return r})();function _k(r,e){if(r&1){let t=ye();k(0,"div",2)(1,"div",3),de(2,"img",4),k(3,"div",5)(4,"app-simple-toggle",6),K("onClickToggleButtonEvent",function(i){ae(t);let s=N();return ue(s.onClickLoginButton(i))}),I()()(),k(5,"div",7),de(6,"app-ticket",8),I()()}if(r&2){let t=N();A(4),S("align","center")("columnNum",1)("buttonElements",t.buttonElementsService.loginButtonElements),A(2),S("moimId","2")("viewType","view")}}function vk(r,e){if(r&1){let t=ye();k(0,"div",9),de(1,"div",3)(2,"div",7),k(3,"div",10),de(4,"app-ticket",8),I(),de(5,"img",11),k(6,"div",12)(7,"app-simple-toggle",6),K("onClickToggleButtonEvent",function(i){ae(t);let s=N();return ue(s.onClickLoginButton(i))}),I()()()}if(r&2){let t=N();A(4),S("moimId","2")("viewType","view"),A(3),S("align","center")("columnNum",1)("buttonElements",t.buttonElementsService.loginButtonElements)}}var tE=(()=>{let e=class e{constructor(n,i,s){this._router=n,this._route=i,this.buttonElementsService=s,this.defaultUrl="https://ssalon.co.kr/oauth2/authorization",this.goMoimId="",this._route.queryParams.subscribe(o=>{this.goMoimId=o.moimId,sessionStorage.setItem("goMoimId",this.goMoimId)})}onClickLoginButton(n){console.log(this.goMoimId);let i;n===0?i=`${this.defaultUrl}/google`:n===1?i=`${this.defaultUrl}/kakao`:i=`${this.defaultUrl}/naver`,window.location.href=i}isLowerWidth(){return window.innerWidth<800}};e.\u0275fac=function(i){return new(i||e)(se(At),se(Vt),se(ht))},e.\u0275cmp=Ee({type:e,selectors:[["app-ssalon-login"]],standalone:!0,features:[Fe],decls:2,vars:2,consts:[["class","new-container",4,"ngIf"],["class","container",4,"ngIf"],[1,"new-container"],[1,"left-container"],["id","new-logo-container","src","assets/ssalon_logo_hand.svg","height","65"],["id","new-login-buttons-container"],[3,"onClickToggleButtonEvent","align","columnNum","buttonElements"],[1,"right-container"],[3,"moimId","viewType"],[1,"container"],["id","background"],["id","logo-container","src","assets/ssalon_logo_hand.svg","height","65"],["id","login-buttons-container"]],template:function(i,s){i&1&&me(0,_k,7,5,"div",0)(1,vk,8,5,"div",1),i&2&&(S("ngIf",!s.isLowerWidth()),A(),S("ngIf",s.isLowerWidth()))},dependencies:[wn,Sr,qe],styles:[".container[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;position:relative}.new-container[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;align-items:center;position:relative}#background[_ngcontent-%COMP%]{position:absolute;top:175px;left:50%;transform:translate(-50%);width:300px;height:300px;background-color:#f5f5f5}#logo-container[_ngcontent-%COMP%]{position:absolute;top:120px;left:50%;transform:translate(-50%);width:350px}#login-buttons-container[_ngcontent-%COMP%]{position:absolute;bottom:20px;width:350px}.login-button-container[_ngcontent-%COMP%]{margin-bottom:10px}#new-logo-container[_ngcontent-%COMP%]{position:absolute;top:120px;left:50%;transform:translate(-50%);width:350px}#new-login-buttons-container[_ngcontent-%COMP%]{position:absolute;bottom:100px;width:350px;left:50%;transform:translate(-50%)}.new-login-button-container[_ngcontent-%COMP%]{margin-bottom:10px}.left-container[_ngcontent-%COMP%]{position:relative;height:100%;width:50%}.right-container[_ngcontent-%COMP%]{width:50%;height:100%}"]});let r=e;return r})();var nE=(()=>{let e=class e{constructor(n,i,s){this._apiExecutorService=n,this._router=i,this._route=s,this.ts="",this.goMoimId=void 0,sessionStorage.getItem("goMoimId")?this.goMoimId=sessionStorage.getItem("goMoimId"):this.goMoimId="undefined"}ngOnInit(){return $(this,null,function*(){let i=`; ${document.cookie}`.split("; access=");this._apiExecutorService.setToken(),(yield this._apiExecutorService.getIsRegister())!==!1?this.goMoimId==="undefined"?this._router.navigate(["/web/main"]):this._router.navigate(["/web/meeting-info"],{queryParams:{moimId:this.goMoimId}}):this._router.navigate(["/web/onboarding"])})}};e.\u0275fac=function(i){return new(i||e)(se(Ze),se(At),se(Vt))},e.\u0275cmp=Ee({type:e,selectors:[["app-ssalon-login-redirect"]],standalone:!0,features:[Fe],decls:3,vars:1,template:function(i,s){i&1&&(k(0,"p"),ze(1,"ssalon-login-redirect works!"),I(),ze(2)),i&2&&(A(2),Nt(` +`,s.ts,""))}});let r=e;return r})();var yk=["capacity"],bk=["fee"];function Bk(r,e){if(r&1){let t=ye();k(0,"div")(1,"app-bottom-dialog",10),K("onClickEvent",function(i){ae(t);let s=N();return ue(s.onCategorySelectedEvent(i))}),I()()}if(r&2){let t=N();A(),S("content",t.bottomDialogType.MEETING_CATEGORY)("completeButton",!1)}}var iE=(()=>{let e=class e{constructor(n,i,s){this.buttonElementsService=n,this._apiExecutorService=i,this._route=s,this.capacity=null,this.fee=null,this.bottomDialogType=mi,this.isPopUpBottomNavigator=!1,this.meetingInfo={title:"",description:"",category:"",capacity:0,location:"",meetingDate:"",payment:-1,meetingPictureUrls:[],isSharable:!0},this.photos=[{imgSrc:"assets/add_photo.png",value:-1,label:"\uC0AC\uC9C4\uCD94\uAC00",selected:!1}],this.onCreateButtonReadyEvent=new Ve}ngAfterViewChecked(){this.onCreateButtonReadyEvent.emit(this.isAllTyped())}ngOnDestroy(){this.buttonElementsService.interestSelectionButtons.forEach(n=>{n.selected=!1})}popUpBottomNavigator(){this.isPopUpBottomNavigator=!0}onCategorySelectedEvent(n){this.meetingInfo.category=this.buttonElementsService.getLabelByValue(this.buttonElementsService.interestSelectionButtons,n.value),this.isPopUpBottomNavigator=!1,this.buttonElementsService.interestSelectionButtons.forEach(i=>{i.selected=!1})}onClickNoLimitCapacity(n){this.capacity.innerText=n?99999:"",this.meetingInfo.capacity=n?99999:0}onClickFree(n){this.fee.innerText=n?0:"",this.meetingInfo.payment=n?0:-1}onInput(n,i){this.meetingInfo[n]=i}isAllTyped(){return this.meetingInfo.title!==""&&this.meetingInfo.description!==""&&this.meetingInfo.category!==""&&this.meetingInfo.capacity!==0&&this.meetingInfo.location!==""&&this.meetingInfo.meetingDate!==""&&this.meetingInfo.payment!==-1}onClickImage(n){if(n===-1){let i=document.createElement("input");i.type="file",i.accept="image/*",i.multiple=!0;let s=[];i.onchange=(function(){return $(this,null,function*(){if(s=[],i.files&&i.files.length>0){let o=Array.from(i.files),a=0;o.forEach((u,c)=>{let f=new FileReader;f.onload=(function(l){return $(this,null,function*(){s.push(l.target.result),a++,a===o.length&&(yield this.getImageUrl(s))})}).bind(this),f.readAsDataURL(u)})}})}).bind(this),i.click()}}getImageUrl(n){return $(this,null,function*(){let i=new FormData;function s(u){for(var c=atob(u.split(",")[1]),f=u.split(",")[0].split(":")[1].split(";")[0],l=new ArrayBuffer(c.length),h=new Uint8Array(l),d=0;d{i.append("files",s(u),`${c}.png`)});try{let u=yield this._apiExecutorService.uploadGeneralImage(i),c=Object.keys(u.mapURI);console.log(c);for(var o=0;o{let e=class e{constructor(n){this.buttonElementsService=n,this.onClickToggleButtonEvent=new Ve}onClickToggleButton(){let n=this.buttonElementsService.createTicketTypeButtons.find(i=>i.selected===!0);console.log(n),n!==void 0?this.onClickToggleButtonEvent.emit(n.value):this.onClickToggleButtonEvent.emit(!1)}};e.\u0275fac=function(i){return new(i||e)(se(ht))},e.\u0275cmp=Ee({type:e,selectors:[["app-create-ticket"]],outputs:{onClickToggleButtonEvent:"onClickToggleButtonEvent"},standalone:!0,features:[Fe],decls:1,vars:3,consts:[[3,"onClickToggleButtonEvent","buttonElements","columnNum","multiSelection"]],template:function(i,s){i&1&&(k(0,"app-simple-toggle",0),K("onClickToggleButtonEvent",function(){return s.onClickToggleButton()}),I()),i&2&&S("buttonElements",s.buttonElementsService.createTicketTypeButtons)("columnNum",1)("multiSelection",!1)},dependencies:[wn]});let r=e;return r})();var Ak=["createMeetingInfoComponent"];function wk(r,e){if(r&1){let t=ye();k(0,"div")(1,"app-create-meeting-info",7,0),K("onCreateButtonReadyEvent",function(i){ae(t);let s=N();return ue(s.changeCreateTicketTypeButtonState(i))}),I()()}if(r&2){let t=N();A(),S("meetingInfo",t.meetingInfo)}}function Sk(r,e){if(r&1){let t=ye();k(0,"div")(1,"app-create-ticket",8),K("onClickToggleButtonEvent",function(i){ae(t);let s=N();return ue(s.changeCreateTicketButtonState(i))}),I()()}}var Eu=function(r){return r[r.INFO=0]="INFO",r[r.TICKET=1]="TICKET",r}(Eu||{}),_1=function(r){return r[r.EMPTY=0]="EMPTY",r[r.TEMPLATE=1]="TEMPLATE",r[r.AI=2]="AI",r}(_1||{}),sE=(()=>{let e=class e{constructor(n,i,s,o){this._apiExecutorService=n,this.buttonElementsService=i,this._location=s,this._router=o,this.createMeetingInfoComponent=null,this.createMeetingStep=Eu,this.nowStep=Eu.INFO,this.meetingId=null,this.meetingInfo={title:"",description:"",category:"",capacity:0,location:"",meetingDate:"",payment:-1,meetingPictureUrls:[""],isSharable:!0},this.resultMeetingInfo={},this.createTicketMode=_1.EMPTY}ngOnInit(){return $(this,null,function*(){})}onClickBackButton(){this.nowStep===Eu.TICKET?this.nowStep=Eu.INFO:(this.meetingInfo={title:"",description:"",category:"",capacity:0,location:"",meetingDate:"",payment:-1,meetingPictureUrls:[""],isSharable:!0},this._location.back())}changeCreateTicketTypeButtonState(n){this.buttonElementsService.nextButtons[0].selected=n}changeCreateTicketButtonState(n){n===0?this.createTicketMode=_1.EMPTY:n===1&&(this.createTicketMode=_1.TEMPLATE),this.buttonElementsService.createTicketButtons[0].selected=!0}onClickCreateTicketButton(){this._router.navigate(["/web/ticket"],{queryParams:{moimId:this.resultMeetingInfo.id,viewType:"edit",createTemplate:this.createTicketMode===0?"N":"A",face:"front"}})}onClickNextButton(){return $(this,null,function*(){this.meetingInfo=this.createMeetingInfoComponent.meetingInfo,this.buttonElementsService.nextButtons[0].selected&&(this.resultMeetingInfo=yield this._apiExecutorService.createMeeting(this.meetingInfo),this.nowStep=Eu.TICKET)})}};e.\u0275fac=function(i){return new(i||e)(se(Ze),se(ht),se(Ai),se(At))},e.\u0275cmp=Ee({type:e,selectors:[["app-meeting-create"]],viewQuery:function(i,s){if(i&1&&Ie(Ak,5),i&2){let o;ke(o=Pe())&&(s.createMeetingInfoComponent=o.first)}},standalone:!0,features:[Fe],decls:7,vars:8,consts:[["createMeetingInfoComponent",""],[1,"container"],[3,"backButtonClickEvent","title","shareButton","defaultBack"],[1,"content-container"],[4,"ngIf"],[1,"bottom-button"],[3,"onClickEvent","buttonElements"],[3,"onCreateButtonReadyEvent","meetingInfo"],[3,"onClickToggleButtonEvent"]],template:function(i,s){i&1&&(k(0,"div",1)(1,"app-top-navigator",2),K("backButtonClickEvent",function(){return s.onClickBackButton()}),I(),k(2,"div",3),me(3,wk,3,1,"div",4)(4,Sk,2,0,"div",4),I(),k(5,"div",5)(6,"app-square-button",6),K("onClickEvent",function(){return s.nowStep===s.createMeetingStep.INFO?s.onClickNextButton():s.onClickCreateTicketButton()}),I()()()),i&2&&(A(),Te("width","100%"),S("title","\uBAA8\uC784\uB9CC\uB4E4\uAE30")("shareButton",!1)("defaultBack",!1),A(2),S("ngIf",s.nowStep===s.createMeetingStep.INFO),A(),S("ngIf",s.nowStep===s.createMeetingStep.TICKET),A(2),S("buttonElements",s.nowStep===s.createMeetingStep.INFO?s.buttonElementsService.nextButtons:s.buttonElementsService.createTicketButtons))},dependencies:[qe,Mi,En,iE,rE],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;height:100%;width:100%}.content-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;height:calc(100% - 140px);width:100%;position:relative;overflow:scroll}.content-container[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}"],data:{animation:[]}});let r=e;return r})();var oE=(()=>{let e=class e{constructor(n,i,s,o){this._apiExecutorService=n,this._route=i,this._router=s,this.buttonElementsService=o,this.moimId="",this.title="",this._route.queryParams.subscribe(a=>{this.moimId=a.id,this.title=a.title})}ngOnInit(){}joinMoim(){this._router.navigate(["/"],{queryParams:{moimId:this.moimId}})}};e.\u0275fac=function(i){return new(i||e)(se(Ze),se(Vt),se(At),se(ht))},e.\u0275cmp=Ee({type:e,selectors:[["app-meeting-share"]],standalone:!0,features:[Fe],decls:6,vars:4,consts:[[1,"container"],[3,"moimId","viewType"],["id","join-button-container"],[3,"onClickEvent","buttonElements"],["id","title-container"]],template:function(i,s){i&1&&(k(0,"div",0),de(1,"app-ticket",1),I(),k(2,"div",2)(3,"app-square-button",3),K("onClickEvent",function(){return s.joinMoim()}),I()(),k(4,"div",4),ze(5),I()),i&2&&(A(),S("moimId",s.moimId)("viewType","view"),A(2),S("buttonElements",s.buttonElementsService.shareJoinButtons),A(2),Nt(" ",s.title,` +`))},dependencies:[Sr,En],styles:['.container[_ngcontent-%COMP%]{width:100%;height:90%}#join-button-container[_ngcontent-%COMP%]{position:absolute;bottom:20px;width:350px;left:50%;transform:translate(-50%)}#title-container[_ngcontent-%COMP%]{position:absolute;top:50px;left:50%;transform:translate(-50%);width:auto;height:auto;font-size:20px;font-weight:700;font-family:Pretendard Variable,Pretendard,-apple-system,BlinkMacSystemFont,system-ui,Roboto,Helvetica Neue,Segoe UI,Apple SD Gothic Neo,Noto Sans KR,Malgun Gothic,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,sans-serif}']});let r=e;return r})();var Mk=["date"],Tk=["location"],kk=["description"],Pk=["photo"],Ik=["capacity"],Rk=["fee"];function Ok(r,e){if(r&1){let t=ye();k(0,"div")(1,"app-simple-input",10),K("onClickEvent",function(){ae(t);let i=N();return ue(i.popUpBottomNavigator())}),I(),k(2,"app-simple-input",11),K("onChangeEvent",function(i){ae(t);let s=N();return ue(s.onInput("title",i))}),I(),k(3,"app-simple-input",12,0),K("onChangeEvent",function(i){ae(t);let s=N();return ue(s.onInput("meetingDate",i))}),I(),k(5,"app-simple-input",11,1),K("onChangeEvent",function(i){ae(t);let s=N();return ue(s.onInput("location",i))}),I(),k(7,"app-simple-input",13,2),K("onChangeEvent",function(i){ae(t);let s=N();return ue(s.onInput("description",i))}),I(),k(9,"app-image-row-container",14,3),K("onClickImageEvent",function(i){ae(t);let s=N();return ue(s.onClickImage(i))}),I(),k(11,"app-simple-input",15,4),K("onClickCheckboxEvent",function(i){ae(t);let s=N();return ue(s.onClickNoLimitCapacity(i))})("onChangeEvent",function(i){ae(t);let s=N();return ue(s.onInput("capacity",i))}),I(),k(13,"app-simple-input",15,5),K("onClickCheckboxEvent",function(i){ae(t);let s=N();return ue(s.onClickFree(i))})("onChangeEvent",function(i){ae(t);let s=N();return ue(s.onInput("payment",i))}),I()()}if(r&2){let t=N();A(),S("label","\uBAA8\uC784 \uCE74\uD14C\uACE0\uB9AC")("placeholder","\uBAA8\uC784 \uCE74\uD14C\uACE0\uB9AC\uB97C \uC124\uC815\uD574\uC8FC\uC138\uC694")("innerText",t.moimInfo.category),A(),S("label","\uBAA8\uC784 \uC774\uB984")("placeholder","\uBAA8\uC784\uBA85\uC744 \uC785\uB825\uD574\uC8FC\uC138\uC694")("innerText",t.moimInfo.title),A(),S("type","datetime-local")("label","\uB0A0\uC9DC")("placeholder","\uBAA8\uC784\uC774 \uC9C4\uD589\uB420 \uB0A0\uC9DC\uB97C \uC120\uD0DD\uD574\uC8FC\uC138\uC694")("innerText",t.moimInfo.meetingDate),A(2),S("label","\uC7A5\uC18C")("placeholder","\uBAA8\uC784\uC774 \uC9C4\uD589\uB420 \uC790\uC138\uD55C \uC7A5\uC18C\uB97C \uC785\uB825\uD574\uC8FC\uC138\uC694")("innerText",t.moimInfo.location),A(2),S("type","longText")("label","\uBAA8\uC784 \uC18C\uAC1C")("placeholder","\uC5B4\uB5A4 \uD65C\uB3D9\uC744 \uD558\uB294\uC9C0 \uBAA8\uC784\uC5D0 \uB300\uD574 \uC18C\uAC1C\uD574\uC8FC\uC138\uC694")("checkBoxLabel","\uB9C8\uD06C\uB2E4\uC6B4 \uBBF8\uB9AC\uBCF4\uAE30")("enableCheckbox",!0)("innerText",t.moimInfo.description),A(2),S("label","\uC0AC\uC9C4")("extraLabel","(\uC120\uD0DD)")("extraLabelColor","#006BFF")("isTicketContainer",!1)("imageHeight",100)("images",t.photos),A(2),S("type","number")("checkBoxLabel","\uC778\uC6D0 \uC81C\uD55C \uC5C6\uC74C")("enableCheckbox",!0)("label","\uCD5C\uB300 \uC778\uC6D0\uC218")("placeholder","\uC6D0\uD558\uB294 \uCD5C\uB300 \uC778\uC6D0 \uC218\uB97C \uC785\uB825\uD574\uC8FC\uC138\uC694")("innerText",t.moimInfo.capacity),A(2),S("type","number")("checkBoxLabel","\uBB34\uB8CC")("enableCheckbox",!0)("label","\uCC38\uAC00\uBE44")("placeholder","\uCC38\uAC00\uBE44\uB97C \uC785\uB825\uD574\uC8FC\uC138\uC694")("innerText",t.moimInfo.payment)}}function Lk(r,e){if(r&1){let t=ye();k(0,"div")(1,"app-simple-input",13),K("onChangeEvent",function(i){ae(t);let s=N();return ue(s.onInput("description",i))}),I(),k(2,"app-image-row-container",14),K("onClickImageEvent",function(i){ae(t);let s=N();return ue(s.onClickImage(i))}),I()()}if(r&2){let t=N();A(),S("type","longText")("label","\uD6C4\uAE30")("placeholder","\uC7AC\uBC0C\uC5C8\uB358 \uC810\uC744 \uC791\uC131\uD574\uC8FC\uC138\uC694!")("checkBoxLabel","\uB9C8\uD06C\uB2E4\uC6B4 \uBBF8\uB9AC\uBCF4\uAE30")("enableCheckbox",!0)("innerText",t.reviewInfo.description),A(),S("label","\uC0AC\uC9C4")("extraLabel","(\uC120\uD0DD)")("extraLabelColor","#006BFF")("isTicketContainer",!1)("imageHeight",100)("images",t.photos)}}function Nk(r,e){if(r&1){let t=ye();k(0,"div")(1,"app-bottom-dialog",16),K("onClickEvent",function(i){ae(t);let s=N();return ue(s.onCategorySelectedEvent(i))}),I()()}if(r&2){let t=N();A(),S("content",t.bottomDialogType.MEETING_CATEGORY)}}function Uk(r,e){if(r&1){let t=ye();k(0,"div",17)(1,"app-square-button",18),K("onClickEvent",function(){ae(t);let i=N();return ue(i.editInfo())}),I(),k(2,"div",19),K("click",function(){ae(t);let i=N();return ue(i.onClickRemoveButton())}),ze(3,"\uBAA8\uC784\uC0AD\uC81C"),I()()}if(r&2){let t=N();A(),S("buttonElements",t.buttonElementsService.editCompleteButtons)}}function Vk(r,e){if(r&1){let t=ye();k(0,"div")(1,"app-bottom-dialog",20),K("onClickCompleteButtonEvent",function(i){ae(t);let s=N();return ue(s.onClickRemoveMoimDialogButton(i))}),I()()}if(r&2){let t=N();A(),S("content",t.bottomDialogType.REMOVE_MOIM)}}var aE=(()=>{let e=class e{constructor(n,i,s,o){this._apiExecutorService=n,this._route=i,this.buttonElementsService=s,this._router=o,this.date=null,this.location=null,this.description=null,this.photo=null,this.capacity=null,this.fee=null,this.bottomDialogType=mi,this.isPopUpBottomDialog=!1,this.isPopUpRemoveMoimDialog=!1,this.photos=[{imgSrc:"assets/add_photo.png",value:-1,label:"\uC0AC\uC9C4\uCD94\uAC00",selected:!1}],this.editType="moimInfo",this.moimId="",this.onCreateButtonReadyEvent=new Ve,this.moimInfo=void 0,this.reviewInfo=void 0,this.title="\uBAA8\uC784 \uC815\uBCF4 \uC218\uC815\uD558\uAE30",this._route.queryParams.subscribe(a=>{this.editType=a.editType,this.title=this.editType==="moimInfo"?"\uBAA8\uC784 \uC815\uBCF4 \uC218\uC815\uD558\uAE30":"\uBAA8\uC784 \uD6C4\uAE30 \uC218\uC815\uD558\uAE30",this.moimId=a.moimId})}ngOnInit(){return $(this,null,function*(){this.editType==="moimInfo"?(this.moimInfo=yield this._apiExecutorService.getMoimInfo(this.moimId),this.moimInfo.meetingPictureUrls.forEach((n,i)=>{let s={imgSrc:n,value:i,label:`\uC0AC\uC9C4_${i}`,selected:!1};this.photos.unshift(s)}),this.moimInfo.meetingPictureUrls=[]):(this.reviewInfo=yield this._apiExecutorService.getMoimReview(this.moimId),this.reviewInfo.diaryPictureUrls.forEach((n,i)=>{let s={imgSrc:n,value:i,label:`\uC0AC\uC9C4_${i}`,selected:!1};this.photos.unshift(s)}),this.reviewInfo.diaryPictureUrls=[])})}ngAfterViewInit(){}isMoimInfoLoaded(){return this.moimInfo!==void 0}isReviewInfoLoaded(){return this.reviewInfo!==void 0}ngAfterViewChecked(){}popUpBottomNavigator(){this.isPopUpBottomDialog=!0}onCategorySelectedEvent(n){this.moimInfo.category=this.buttonElementsService.getLabelByValue(this.buttonElementsService.interestSelectionButtons,n.value),this.isPopUpBottomDialog=!1}onClickNoLimitCapacity(n){this.capacity.innerText=n?99999:"",this.moimInfo.capacity=n?99999:0}onClickFree(n){this.fee.innerText=n?0:"",this.moimInfo.payment=n?0:-1}onInput(n,i){this.editType==="moimInfo"?this.moimInfo[n]=i:this.reviewInfo[n]=i}onClickImage(n){if(n===-1){let i=document.createElement("input");i.type="file",i.accept="image/*",i.multiple=!0;let s=[];i.onchange=(function(){return $(this,null,function*(){if(s=[],i.files&&i.files.length>0){let o=Array.from(i.files),a=0;o.forEach((u,c)=>{let f=new FileReader;f.onload=(function(l){return $(this,null,function*(){s.push(l.target.result),a++,a===o.length&&(yield this.getImageUrl(s))})}).bind(this),f.readAsDataURL(u)})}})}).bind(this),i.click()}}getImageUrl(n){return $(this,null,function*(){let i=new FormData;function s(u){for(var c=atob(u.split(",")[1]),f=u.split(",")[0].split(":")[1].split(";")[0],l=new ArrayBuffer(c.length),h=new Uint8Array(l),d=0;d{i.append("files",s(u),`${c}.png`)});try{let u=yield this._apiExecutorService.uploadGeneralImage(i),c=Object.keys(u.mapURI);console.log(c);for(var o=0;o[r];function Gk(r,e){if(r&1){let t=ye();k(0,"div")(1,"app-bottom-dialog",8),K("onClickCompleteButtonEvent",function(){ae(t);let i=N(2);return ue(i.onClickCloseBottomDialog())}),I()()}if(r&2){let t=N(2);A(),S("content",t.bottomDialogType.FEATURE_SUCCESS)}}function jk(r,e){if(r&1){let t=ye();k(0,"div",2)(1,"app-top-navigator",3),K("backButtonClickEvent",function(){ae(t);let i=N();return ue(i.onClickBackButton())}),I(),k(2,"div",2)(3,"app-simple-toggle",4),K("onClickToggleButtonEvent",function(){ae(t);let i=N();return ue(i.onClickParticipantButton())}),I()(),k(4,"div"),de(5,"app-simple-input",5,0),k(7,"app-square-button",6),K("onClickEvent",function(i){ae(t);let s=N();return ue(s.onClickManageButton(i))}),I()(),me(8,Gk,2,1,"div",7),I()}if(r&2){let t=N();A(),Te("width","100%"),S("title","\uCC38\uAC00\uC790\uAD00\uB9AC")("defaultBack",!1),A(2),S("buttonElements",t.participantButtonElements)("columnNum",1)("buttonWidth",350)("align","left")("multiSelection",!0),A(),Te("margin-bottom",20,"px"),A(),S("type","longText")("label","\uC2E0\uACE0 / \uAC15\uD1F4 \uC0AC\uC720")("longTextHeight",200)("placeholder","\uCC38\uAC00\uC790\uB97C \uC120\uD0DD \uD6C4 \uC785\uB825\uD574\uC8FC\uC138\uC694."),A(2),S("buttonElements",t.isCreator?t.buttonElementsService.manageParticipantsButtons:Io(17,Hk,t.buttonElementsService.manageParticipantsButtons[0])),A(),S("ngIf",t.isPopUpBottomDialog)}}var uE=(()=>{let e=class e{constructor(n,i,s,o){this._apiExecutorService=n,this.buttonElementsService=i,this._route=s,this._router=o,this.reasonContainer=null,this._moimId="",this._participants=void 0,this.isCreator=!1,this.participantButtonElements=[],this.bottomDialogType=mi,this.isPopUpBottomDialog=!1,this.onBackButtonClickEvent=new Ve,this._route.queryParams.subscribe(a=>{this._moimId=a.id})}ngOnInit(){return $(this,null,function*(){this.isCreator=yield this._apiExecutorService.checkCreator(this._moimId),this._participants=yield this._apiExecutorService.getJoiningUsers(this._moimId),this.participantButtonElements=this.getParticipantsButtonElements()})}getParticipantsButtonElements(){return this._participants.map((n,i)=>({imgSrc:n.profilePictureUrl,value:n.userId,label:n.nickname,selected:!1}))}isParticipantsLoaded(){return this._participants!==void 0}checkButtonState(){this.participantButtonElements.filter(n=>n.selected===!0).length===0?this.buttonElementsService.manageParticipantsButtons.forEach(n=>{n.selected=!1}):this.buttonElementsService.manageParticipantsButtons.forEach(n=>{n.selected=!0})}onClickBackButton(){this._router.navigate(["/web/meeting-info"],{queryParams:{moimId:this._moimId}})}onClickParticipantButton(){this.checkButtonState()}onClickManageButton(n){return $(this,null,function*(){if(console.log(n),this.buttonElementsService.manageParticipantsButtons.every(i=>i.selected===!0)){let i=this.participantButtonElements.filter(s=>s.selected===!0).map(s=>s.value);if(n===0)for(let s=0;s{let e=class e{constructor(n,i,s,o,a){this.doc=n,this.delegate=i,this.zone=s,this.animationType=o,this.moduleImpl=a,this._rendererFactoryPromise=null,this.scheduler=lt(L2,{optional:!0})}ngOnDestroy(){this._engine?.flush()}loadImpl(){return(this.moduleImpl??import("./chunk-P76PD3QM.js")).catch(i=>{throw new nn(5300,!1)}).then(({\u0275createEngine:i,\u0275AnimationRendererFactory:s})=>{this._engine=i(this.animationType,this.doc,this.scheduler);let o=new s(this.delegate,this._engine,this.zone);return this.delegate=o,o})}createRenderer(n,i){let s=this.delegate.createRenderer(n,i);if(s.\u0275type===0)return s;typeof s.throwOnSyntheticProps=="boolean"&&(s.throwOnSyntheticProps=!1);let o=new r2(s);return i?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(a=>{let u=a.createRenderer(n,i);o.use(u)}).catch(a=>{o.use(s)}),o}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}};e.\u0275fac=function(i){U1()},e.\u0275prov=bt({token:e,factory:e.\u0275fac});let r=e;return r})(),r2=class{constructor(e){this.delegate=e,this.replay=[],this.\u0275type=1}use(e){if(this.delegate=e,this.replay!==null){for(let t of this.replay)t(e);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}get destroyNode(){return this.delegate.destroyNode}appendChild(e,t){this.delegate.appendChild(e,t)}insertBefore(e,t,n,i){this.delegate.insertBefore(e,t,n,i)}removeChild(e,t,n){this.delegate.removeChild(e,t,n)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,i){this.delegate.setStyle(e,t,n,i)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){this.shouldReplay(t)&&this.replay.push(i=>i.setProperty(e,t,n)),this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.shouldReplay(t)&&this.replay.push(i=>i.listen(e,t,n)),this.delegate.listen(e,t,n)}shouldReplay(e){return this.replay!==null&&e.startsWith(Wk)}};function fE(r="animations"){return N2("NgAsyncAnimations"),Mu([{provide:xc,useFactory:(e,t,n)=>new Xk(e,t,n,r),deps:[di,yc,Wi]},{provide:w2,useValue:r==="noop"?"NoopAnimations":"BrowserAnimations"}])}var lE={providers:[jx(cE),fE()]};var hE=(()=>{let e=class e{constructor(n,i,s){this._route=n,this._ssalonConfigService=i,this._apiExecutorService=s}ngOnInit(){this._apiExecutorService.getMyProfile()}};e.\u0275fac=function(i){return new(i||e)(se(Vt),se(fs),se(Ze))},e.\u0275cmp=Ee({type:e,selectors:[["app-root"]],standalone:!0,features:[Fe],decls:1,vars:0,consts:[["id","page-container"]],template:function(i,s){i&1&&de(0,"router-outlet",0)},dependencies:[Ph,Ru]});let r=e;return r})();ux(hE,lE).catch(r=>console.error(r)); diff --git a/back-end/src/main/resources/static/styles-HM7X5DFL.css b/back-end/src/main/resources/static/styles-HM7X5DFL.css new file mode 100644 index 00000000..a8ef5ad4 --- /dev/null +++ b/back-end/src/main/resources/static/styles-HM7X5DFL.css @@ -0,0 +1 @@ +@charset "UTF-8";.mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active .mat-ripple-element{display:none}.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:1}.cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.6}.cdk-overlay-dark-backdrop{background:#00000052}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes cdk-text-field-autofill-start{}@keyframes cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator{position:relative}.mat-focus-indicator:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus:before{content:""}.cdk-high-contrast-active{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator{position:relative}.mat-mdc-focus-indicator:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator:focus:before{content:""}.cdk-high-contrast-active{--mat-mdc-focus-indicator-display: block}.mat-app-background{background-color:var(--mat-app-background-color, transparent);color:var(--mat-app-text-color, inherit)}html{--mat-ripple-color:rgba(255, 255, 255, .1)}html{--mat-option-selected-state-label-text-color:#7b1fa2;--mat-option-label-text-color:white;--mat-option-hover-state-layer-color:rgba(255, 255, 255, .08);--mat-option-focus-state-layer-color:rgba(255, 255, 255, .08);--mat-option-selected-state-layer-color:rgba(255, 255, 255, .08)}.mat-accent{--mat-option-selected-state-label-text-color:#69f0ae;--mat-option-label-text-color:white;--mat-option-hover-state-layer-color:rgba(255, 255, 255, .08);--mat-option-focus-state-layer-color:rgba(255, 255, 255, .08);--mat-option-selected-state-layer-color:rgba(255, 255, 255, .08)}.mat-warn{--mat-option-selected-state-label-text-color:#f44336;--mat-option-label-text-color:white;--mat-option-hover-state-layer-color:rgba(255, 255, 255, .08);--mat-option-focus-state-layer-color:rgba(255, 255, 255, .08);--mat-option-selected-state-layer-color:rgba(255, 255, 255, .08)}html{--mat-optgroup-label-text-color:white}.mat-primary{--mat-full-pseudo-checkbox-selected-icon-color:#7b1fa2;--mat-full-pseudo-checkbox-selected-checkmark-color:#303030;--mat-full-pseudo-checkbox-unselected-icon-color:rgba(255, 255, 255, .7);--mat-full-pseudo-checkbox-disabled-selected-checkmark-color:#303030;--mat-full-pseudo-checkbox-disabled-unselected-icon-color:#686868;--mat-full-pseudo-checkbox-disabled-selected-icon-color:#686868;--mat-minimal-pseudo-checkbox-selected-checkmark-color:#7b1fa2;--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color:#686868}html,.mat-accent{--mat-full-pseudo-checkbox-selected-icon-color:#69f0ae;--mat-full-pseudo-checkbox-selected-checkmark-color:#303030;--mat-full-pseudo-checkbox-unselected-icon-color:rgba(255, 255, 255, .7);--mat-full-pseudo-checkbox-disabled-selected-checkmark-color:#303030;--mat-full-pseudo-checkbox-disabled-unselected-icon-color:#686868;--mat-full-pseudo-checkbox-disabled-selected-icon-color:#686868;--mat-minimal-pseudo-checkbox-selected-checkmark-color:#69f0ae;--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color:#686868}.mat-warn{--mat-full-pseudo-checkbox-selected-icon-color:#f44336;--mat-full-pseudo-checkbox-selected-checkmark-color:#303030;--mat-full-pseudo-checkbox-unselected-icon-color:rgba(255, 255, 255, .7);--mat-full-pseudo-checkbox-disabled-selected-checkmark-color:#303030;--mat-full-pseudo-checkbox-disabled-unselected-icon-color:#686868;--mat-full-pseudo-checkbox-disabled-selected-icon-color:#686868;--mat-minimal-pseudo-checkbox-selected-checkmark-color:#f44336;--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color:#686868}html{--mat-app-background-color:#303030;--mat-app-text-color:white}.mat-elevation-z0,.mat-mdc-elevation-specific.mat-elevation-z0{box-shadow:0 0 #0003,0 0 #00000024,0 0 #0000001f}.mat-elevation-z1,.mat-mdc-elevation-specific.mat-elevation-z1{box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}.mat-elevation-z2,.mat-mdc-elevation-specific.mat-elevation-z2{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}.mat-elevation-z3,.mat-mdc-elevation-specific.mat-elevation-z3{box-shadow:0 3px 3px -2px #0003,0 3px 4px #00000024,0 1px 8px #0000001f}.mat-elevation-z4,.mat-mdc-elevation-specific.mat-elevation-z4{box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}.mat-elevation-z5,.mat-mdc-elevation-specific.mat-elevation-z5{box-shadow:0 3px 5px -1px #0003,0 5px 8px #00000024,0 1px 14px #0000001f}.mat-elevation-z6,.mat-mdc-elevation-specific.mat-elevation-z6{box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f}.mat-elevation-z7,.mat-mdc-elevation-specific.mat-elevation-z7{box-shadow:0 4px 5px -2px #0003,0 7px 10px 1px #00000024,0 2px 16px 1px #0000001f}.mat-elevation-z8,.mat-mdc-elevation-specific.mat-elevation-z8{box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.mat-elevation-z9,.mat-mdc-elevation-specific.mat-elevation-z9{box-shadow:0 5px 6px -3px #0003,0 9px 12px 1px #00000024,0 3px 16px 2px #0000001f}.mat-elevation-z10,.mat-mdc-elevation-specific.mat-elevation-z10{box-shadow:0 6px 6px -3px #0003,0 10px 14px 1px #00000024,0 4px 18px 3px #0000001f}.mat-elevation-z11,.mat-mdc-elevation-specific.mat-elevation-z11{box-shadow:0 6px 7px -4px #0003,0 11px 15px 1px #00000024,0 4px 20px 3px #0000001f}.mat-elevation-z12,.mat-mdc-elevation-specific.mat-elevation-z12{box-shadow:0 7px 8px -4px #0003,0 12px 17px 2px #00000024,0 5px 22px 4px #0000001f}.mat-elevation-z13,.mat-mdc-elevation-specific.mat-elevation-z13{box-shadow:0 7px 8px -4px #0003,0 13px 19px 2px #00000024,0 5px 24px 4px #0000001f}.mat-elevation-z14,.mat-mdc-elevation-specific.mat-elevation-z14{box-shadow:0 7px 9px -4px #0003,0 14px 21px 2px #00000024,0 5px 26px 4px #0000001f}.mat-elevation-z15,.mat-mdc-elevation-specific.mat-elevation-z15{box-shadow:0 8px 9px -5px #0003,0 15px 22px 2px #00000024,0 6px 28px 5px #0000001f}.mat-elevation-z16,.mat-mdc-elevation-specific.mat-elevation-z16{box-shadow:0 8px 10px -5px #0003,0 16px 24px 2px #00000024,0 6px 30px 5px #0000001f}.mat-elevation-z17,.mat-mdc-elevation-specific.mat-elevation-z17{box-shadow:0 8px 11px -5px #0003,0 17px 26px 2px #00000024,0 6px 32px 5px #0000001f}.mat-elevation-z18,.mat-mdc-elevation-specific.mat-elevation-z18{box-shadow:0 9px 11px -5px #0003,0 18px 28px 2px #00000024,0 7px 34px 6px #0000001f}.mat-elevation-z19,.mat-mdc-elevation-specific.mat-elevation-z19{box-shadow:0 9px 12px -6px #0003,0 19px 29px 2px #00000024,0 7px 36px 6px #0000001f}.mat-elevation-z20,.mat-mdc-elevation-specific.mat-elevation-z20{box-shadow:0 10px 13px -6px #0003,0 20px 31px 3px #00000024,0 8px 38px 7px #0000001f}.mat-elevation-z21,.mat-mdc-elevation-specific.mat-elevation-z21{box-shadow:0 10px 13px -6px #0003,0 21px 33px 3px #00000024,0 8px 40px 7px #0000001f}.mat-elevation-z22,.mat-mdc-elevation-specific.mat-elevation-z22{box-shadow:0 10px 14px -6px #0003,0 22px 35px 3px #00000024,0 8px 42px 7px #0000001f}.mat-elevation-z23,.mat-mdc-elevation-specific.mat-elevation-z23{box-shadow:0 11px 14px -7px #0003,0 23px 36px 3px #00000024,0 9px 44px 8px #0000001f}.mat-elevation-z24,.mat-mdc-elevation-specific.mat-elevation-z24{box-shadow:0 11px 15px -7px #0003,0 24px 38px 3px #00000024,0 9px 46px 8px #0000001f}.mat-theme-loaded-marker{display:none}html{--mat-option-label-text-font:Roboto, sans-serif;--mat-option-label-text-line-height:24px;--mat-option-label-text-size:16px;--mat-option-label-text-tracking:.03125em;--mat-option-label-text-weight:400}html{--mat-optgroup-label-text-font:Roboto, sans-serif;--mat-optgroup-label-text-line-height:24px;--mat-optgroup-label-text-size:16px;--mat-optgroup-label-text-tracking:.03125em;--mat-optgroup-label-text-weight:400}html{--mdc-elevated-card-container-shape:4px;--mdc-outlined-card-container-shape:4px;--mdc-outlined-card-outline-width:1px}html{--mdc-elevated-card-container-color:#424242;--mdc-elevated-card-container-elevation:0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mdc-outlined-card-container-color:#424242;--mdc-outlined-card-outline-color:rgba(255, 255, 255, .12);--mdc-outlined-card-container-elevation:0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mat-card-subtitle-text-color:rgba(255, 255, 255, .7)}html{--mat-card-title-text-font:Roboto, sans-serif;--mat-card-title-text-line-height:32px;--mat-card-title-text-size:20px;--mat-card-title-text-tracking:.0125em;--mat-card-title-text-weight:500;--mat-card-subtitle-text-font:Roboto, sans-serif;--mat-card-subtitle-text-line-height:22px;--mat-card-subtitle-text-size:14px;--mat-card-subtitle-text-tracking:.0071428571em;--mat-card-subtitle-text-weight:500}html{--mdc-linear-progress-active-indicator-height:4px;--mdc-linear-progress-track-height:4px;--mdc-linear-progress-track-shape:0}.mat-mdc-progress-bar{--mdc-linear-progress-active-indicator-color:#7b1fa2;--mdc-linear-progress-track-color:rgba(123, 31, 162, .25)}.mat-mdc-progress-bar.mat-accent{--mdc-linear-progress-active-indicator-color:#69f0ae;--mdc-linear-progress-track-color:rgba(105, 240, 174, .25)}.mat-mdc-progress-bar.mat-warn{--mdc-linear-progress-active-indicator-color:#f44336;--mdc-linear-progress-track-color:rgba(244, 67, 54, .25)}html{--mdc-plain-tooltip-container-shape:4px;--mdc-plain-tooltip-supporting-text-line-height:16px}html{--mdc-plain-tooltip-container-color:#616161;--mdc-plain-tooltip-supporting-text-color:#fff}html{--mdc-plain-tooltip-supporting-text-font:Roboto, sans-serif;--mdc-plain-tooltip-supporting-text-size:12px;--mdc-plain-tooltip-supporting-text-weight:400;--mdc-plain-tooltip-supporting-text-tracking:.0333333333em}html{--mdc-filled-text-field-active-indicator-height:1px;--mdc-filled-text-field-focus-active-indicator-height:2px;--mdc-filled-text-field-container-shape:4px;--mdc-outlined-text-field-outline-width:1px;--mdc-outlined-text-field-focus-outline-width:2px;--mdc-outlined-text-field-container-shape:4px}html{--mdc-filled-text-field-caret-color:#7b1fa2;--mdc-filled-text-field-focus-active-indicator-color:#7b1fa2;--mdc-filled-text-field-focus-label-text-color:rgba(123, 31, 162, .87);--mdc-filled-text-field-container-color:#4a4a4a;--mdc-filled-text-field-disabled-container-color:#464646;--mdc-filled-text-field-label-text-color:rgba(255, 255, 255, .6);--mdc-filled-text-field-hover-label-text-color:rgba(255, 255, 255, .6);--mdc-filled-text-field-disabled-label-text-color:rgba(255, 255, 255, .38);--mdc-filled-text-field-input-text-color:rgba(255, 255, 255, .87);--mdc-filled-text-field-disabled-input-text-color:rgba(255, 255, 255, .38);--mdc-filled-text-field-input-text-placeholder-color:rgba(255, 255, 255, .6);--mdc-filled-text-field-error-hover-label-text-color:#f44336;--mdc-filled-text-field-error-focus-label-text-color:#f44336;--mdc-filled-text-field-error-label-text-color:#f44336;--mdc-filled-text-field-error-caret-color:#f44336;--mdc-filled-text-field-active-indicator-color:rgba(255, 255, 255, .42);--mdc-filled-text-field-disabled-active-indicator-color:rgba(255, 255, 255, .06);--mdc-filled-text-field-hover-active-indicator-color:rgba(255, 255, 255, .87);--mdc-filled-text-field-error-active-indicator-color:#f44336;--mdc-filled-text-field-error-focus-active-indicator-color:#f44336;--mdc-filled-text-field-error-hover-active-indicator-color:#f44336;--mdc-outlined-text-field-caret-color:#7b1fa2;--mdc-outlined-text-field-focus-outline-color:#7b1fa2;--mdc-outlined-text-field-focus-label-text-color:rgba(123, 31, 162, .87);--mdc-outlined-text-field-label-text-color:rgba(255, 255, 255, .6);--mdc-outlined-text-field-hover-label-text-color:rgba(255, 255, 255, .6);--mdc-outlined-text-field-disabled-label-text-color:rgba(255, 255, 255, .38);--mdc-outlined-text-field-input-text-color:rgba(255, 255, 255, .87);--mdc-outlined-text-field-disabled-input-text-color:rgba(255, 255, 255, .38);--mdc-outlined-text-field-input-text-placeholder-color:rgba(255, 255, 255, .6);--mdc-outlined-text-field-error-caret-color:#f44336;--mdc-outlined-text-field-error-focus-label-text-color:#f44336;--mdc-outlined-text-field-error-label-text-color:#f44336;--mdc-outlined-text-field-error-hover-label-text-color:#f44336;--mdc-outlined-text-field-outline-color:rgba(255, 255, 255, .38);--mdc-outlined-text-field-disabled-outline-color:rgba(255, 255, 255, .06);--mdc-outlined-text-field-hover-outline-color:rgba(255, 255, 255, .87);--mdc-outlined-text-field-error-focus-outline-color:#f44336;--mdc-outlined-text-field-error-hover-outline-color:#f44336;--mdc-outlined-text-field-error-outline-color:#f44336;--mat-form-field-focus-select-arrow-color:rgba(123, 31, 162, .87);--mat-form-field-disabled-input-text-placeholder-color:rgba(255, 255, 255, .38);--mat-form-field-state-layer-color:rgba(255, 255, 255, .87);--mat-form-field-error-text-color:#f44336;--mat-form-field-select-option-text-color:rgba(0, 0, 0, .87);--mat-form-field-select-disabled-option-text-color:rgba(0, 0, 0, .38);--mat-form-field-leading-icon-color:unset;--mat-form-field-disabled-leading-icon-color:unset;--mat-form-field-trailing-icon-color:unset;--mat-form-field-disabled-trailing-icon-color:unset;--mat-form-field-error-focus-trailing-icon-color:unset;--mat-form-field-error-hover-trailing-icon-color:unset;--mat-form-field-error-trailing-icon-color:unset;--mat-form-field-enabled-select-arrow-color:rgba(255, 255, 255, .54);--mat-form-field-disabled-select-arrow-color:rgba(255, 255, 255, .38);--mat-form-field-hover-state-layer-opacity:.08;--mat-form-field-focus-state-layer-opacity:.24}.mat-mdc-form-field.mat-accent{--mdc-filled-text-field-caret-color:#69f0ae;--mdc-filled-text-field-focus-active-indicator-color:#69f0ae;--mdc-filled-text-field-focus-label-text-color:rgba(105, 240, 174, .87);--mdc-outlined-text-field-caret-color:#69f0ae;--mdc-outlined-text-field-focus-outline-color:#69f0ae;--mdc-outlined-text-field-focus-label-text-color:rgba(105, 240, 174, .87);--mat-form-field-focus-select-arrow-color:rgba(105, 240, 174, .87)}.mat-mdc-form-field.mat-warn{--mdc-filled-text-field-caret-color:#f44336;--mdc-filled-text-field-focus-active-indicator-color:#f44336;--mdc-filled-text-field-focus-label-text-color:rgba(244, 67, 54, .87);--mdc-outlined-text-field-caret-color:#f44336;--mdc-outlined-text-field-focus-outline-color:#f44336;--mdc-outlined-text-field-focus-label-text-color:rgba(244, 67, 54, .87);--mat-form-field-focus-select-arrow-color:rgba(244, 67, 54, .87)}html{--mat-form-field-container-height:56px;--mat-form-field-filled-label-display:block;--mat-form-field-container-vertical-padding:16px;--mat-form-field-filled-with-label-container-padding-top:24px;--mat-form-field-filled-with-label-container-padding-bottom:8px}html{--mdc-filled-text-field-label-text-font:Roboto, sans-serif;--mdc-filled-text-field-label-text-size:16px;--mdc-filled-text-field-label-text-tracking:.03125em;--mdc-filled-text-field-label-text-weight:400;--mdc-outlined-text-field-label-text-font:Roboto, sans-serif;--mdc-outlined-text-field-label-text-size:16px;--mdc-outlined-text-field-label-text-tracking:.03125em;--mdc-outlined-text-field-label-text-weight:400;--mat-form-field-container-text-font:Roboto, sans-serif;--mat-form-field-container-text-line-height:24px;--mat-form-field-container-text-size:16px;--mat-form-field-container-text-tracking:.03125em;--mat-form-field-container-text-weight:400;--mat-form-field-outlined-label-text-populated-size:16px;--mat-form-field-subscript-text-font:Roboto, sans-serif;--mat-form-field-subscript-text-line-height:20px;--mat-form-field-subscript-text-size:12px;--mat-form-field-subscript-text-tracking:.0333333333em;--mat-form-field-subscript-text-weight:400}html{--mat-select-container-elevation-shadow:0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12)}html{--mat-select-panel-background-color:#424242;--mat-select-enabled-trigger-text-color:rgba(255, 255, 255, .87);--mat-select-disabled-trigger-text-color:rgba(255, 255, 255, .38);--mat-select-placeholder-text-color:rgba(255, 255, 255, .6);--mat-select-enabled-arrow-color:rgba(255, 255, 255, .54);--mat-select-disabled-arrow-color:rgba(255, 255, 255, .38);--mat-select-focused-arrow-color:rgba(123, 31, 162, .87);--mat-select-invalid-arrow-color:rgba(244, 67, 54, .87)}html .mat-mdc-form-field.mat-accent{--mat-select-panel-background-color:#424242;--mat-select-enabled-trigger-text-color:rgba(255, 255, 255, .87);--mat-select-disabled-trigger-text-color:rgba(255, 255, 255, .38);--mat-select-placeholder-text-color:rgba(255, 255, 255, .6);--mat-select-enabled-arrow-color:rgba(255, 255, 255, .54);--mat-select-disabled-arrow-color:rgba(255, 255, 255, .38);--mat-select-focused-arrow-color:rgba(105, 240, 174, .87);--mat-select-invalid-arrow-color:rgba(244, 67, 54, .87)}html .mat-mdc-form-field.mat-warn{--mat-select-panel-background-color:#424242;--mat-select-enabled-trigger-text-color:rgba(255, 255, 255, .87);--mat-select-disabled-trigger-text-color:rgba(255, 255, 255, .38);--mat-select-placeholder-text-color:rgba(255, 255, 255, .6);--mat-select-enabled-arrow-color:rgba(255, 255, 255, .54);--mat-select-disabled-arrow-color:rgba(255, 255, 255, .38);--mat-select-focused-arrow-color:rgba(244, 67, 54, .87);--mat-select-invalid-arrow-color:rgba(244, 67, 54, .87)}html{--mat-select-arrow-transform:translateY(-8px)}html{--mat-select-trigger-text-font:Roboto, sans-serif;--mat-select-trigger-text-line-height:24px;--mat-select-trigger-text-size:16px;--mat-select-trigger-text-tracking:.03125em;--mat-select-trigger-text-weight:400}html{--mat-autocomplete-container-shape:4px;--mat-autocomplete-container-elevation-shadow:0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12)}html{--mat-autocomplete-background-color:#424242}html{--mdc-dialog-container-elevation-shadow:0px 11px 15px -7px rgba(0, 0, 0, .2), 0px 24px 38px 3px rgba(0, 0, 0, .14), 0px 9px 46px 8px rgba(0, 0, 0, .12);--mdc-dialog-container-shadow-color:#000;--mdc-dialog-container-shape:4px;--mat-dialog-container-max-width:80vw;--mat-dialog-container-small-max-width:80vw;--mat-dialog-container-min-width:0;--mat-dialog-actions-alignment:start;--mat-dialog-actions-padding:8px;--mat-dialog-content-padding:20px 24px;--mat-dialog-with-actions-content-padding:20px 24px;--mat-dialog-headline-padding:0 24px 9px}html{--mdc-dialog-container-color:#424242;--mdc-dialog-subhead-color:rgba(255, 255, 255, .87);--mdc-dialog-supporting-text-color:rgba(255, 255, 255, .6)}html{--mdc-dialog-subhead-font:Roboto, sans-serif;--mdc-dialog-subhead-line-height:32px;--mdc-dialog-subhead-size:20px;--mdc-dialog-subhead-weight:500;--mdc-dialog-subhead-tracking:.0125em;--mdc-dialog-supporting-text-font:Roboto, sans-serif;--mdc-dialog-supporting-text-line-height:24px;--mdc-dialog-supporting-text-size:16px;--mdc-dialog-supporting-text-weight:400;--mdc-dialog-supporting-text-tracking:.03125em}.mat-mdc-standard-chip{--mdc-chip-container-shape-family:rounded;--mdc-chip-container-shape-radius:16px 16px 16px 16px;--mdc-chip-with-avatar-avatar-shape-family:rounded;--mdc-chip-with-avatar-avatar-shape-radius:14px 14px 14px 14px;--mdc-chip-with-avatar-avatar-size:28px;--mdc-chip-with-icon-icon-size:18px;--mdc-chip-outline-width:0;--mdc-chip-outline-color:transparent;--mdc-chip-disabled-outline-color:transparent;--mdc-chip-focus-outline-color:transparent;--mdc-chip-hover-state-layer-opacity:.04;--mdc-chip-with-avatar-disabled-avatar-opacity:1;--mdc-chip-flat-selected-outline-width:0;--mdc-chip-selected-hover-state-layer-opacity:.04;--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity:1;--mdc-chip-with-icon-disabled-icon-opacity:1;--mat-chip-disabled-container-opacity:.4;--mat-chip-trailing-action-opacity:.54;--mat-chip-trailing-action-focus-opacity:1;--mat-chip-trailing-action-state-layer-color:transparent;--mat-chip-selected-trailing-action-state-layer-color:transparent;--mat-chip-trailing-action-hover-state-layer-opacity:0;--mat-chip-trailing-action-focus-state-layer-opacity:0}.mat-mdc-standard-chip{--mdc-chip-disabled-label-text-color:#fafafa;--mdc-chip-elevated-container-color:#595959;--mdc-chip-elevated-selected-container-color:#595959;--mdc-chip-elevated-disabled-container-color:#595959;--mdc-chip-flat-disabled-selected-container-color:#595959;--mdc-chip-focus-state-layer-color:white;--mdc-chip-hover-state-layer-color:white;--mdc-chip-selected-hover-state-layer-color:white;--mdc-chip-focus-state-layer-opacity:.12;--mdc-chip-selected-focus-state-layer-color:white;--mdc-chip-selected-focus-state-layer-opacity:.12;--mdc-chip-label-text-color:#fafafa;--mdc-chip-selected-label-text-color:#fafafa;--mdc-chip-with-icon-icon-color:#fafafa;--mdc-chip-with-icon-disabled-icon-color:#fafafa;--mdc-chip-with-icon-selected-icon-color:#fafafa;--mdc-chip-with-trailing-icon-disabled-trailing-icon-color:#fafafa;--mdc-chip-with-trailing-icon-trailing-icon-color:#fafafa;--mat-chip-selected-disabled-trailing-icon-color:#fafafa;--mat-chip-selected-trailing-icon-color:#fafafa}.mat-mdc-standard-chip.mat-mdc-chip-selected.mat-primary,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-primary{--mdc-chip-disabled-label-text-color:white;--mdc-chip-elevated-container-color:#7b1fa2;--mdc-chip-elevated-selected-container-color:#7b1fa2;--mdc-chip-elevated-disabled-container-color:#7b1fa2;--mdc-chip-flat-disabled-selected-container-color:#7b1fa2;--mdc-chip-focus-state-layer-color:white;--mdc-chip-hover-state-layer-color:white;--mdc-chip-selected-hover-state-layer-color:white;--mdc-chip-focus-state-layer-opacity:.12;--mdc-chip-selected-focus-state-layer-color:white;--mdc-chip-selected-focus-state-layer-opacity:.12;--mdc-chip-label-text-color:white;--mdc-chip-selected-label-text-color:white;--mdc-chip-with-icon-icon-color:white;--mdc-chip-with-icon-disabled-icon-color:white;--mdc-chip-with-icon-selected-icon-color:white;--mdc-chip-with-trailing-icon-disabled-trailing-icon-color:white;--mdc-chip-with-trailing-icon-trailing-icon-color:white;--mat-chip-selected-disabled-trailing-icon-color:white;--mat-chip-selected-trailing-icon-color:white}.mat-mdc-standard-chip.mat-mdc-chip-selected.mat-accent,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-accent{--mdc-chip-disabled-label-text-color:rgba(0, 0, 0, .87);--mdc-chip-elevated-container-color:#69f0ae;--mdc-chip-elevated-selected-container-color:#69f0ae;--mdc-chip-elevated-disabled-container-color:#69f0ae;--mdc-chip-flat-disabled-selected-container-color:#69f0ae;--mdc-chip-focus-state-layer-color:white;--mdc-chip-hover-state-layer-color:white;--mdc-chip-selected-hover-state-layer-color:white;--mdc-chip-focus-state-layer-opacity:.12;--mdc-chip-selected-focus-state-layer-color:white;--mdc-chip-selected-focus-state-layer-opacity:.12;--mdc-chip-label-text-color:rgba(0, 0, 0, .87);--mdc-chip-selected-label-text-color:rgba(0, 0, 0, .87);--mdc-chip-with-icon-icon-color:rgba(0, 0, 0, .87);--mdc-chip-with-icon-disabled-icon-color:rgba(0, 0, 0, .87);--mdc-chip-with-icon-selected-icon-color:rgba(0, 0, 0, .87);--mdc-chip-with-trailing-icon-disabled-trailing-icon-color:rgba(0, 0, 0, .87);--mdc-chip-with-trailing-icon-trailing-icon-color:rgba(0, 0, 0, .87);--mat-chip-selected-disabled-trailing-icon-color:rgba(0, 0, 0, .87);--mat-chip-selected-trailing-icon-color:rgba(0, 0, 0, .87)}.mat-mdc-standard-chip.mat-mdc-chip-selected.mat-warn,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-warn{--mdc-chip-disabled-label-text-color:white;--mdc-chip-elevated-container-color:#f44336;--mdc-chip-elevated-selected-container-color:#f44336;--mdc-chip-elevated-disabled-container-color:#f44336;--mdc-chip-flat-disabled-selected-container-color:#f44336;--mdc-chip-focus-state-layer-color:white;--mdc-chip-hover-state-layer-color:white;--mdc-chip-selected-hover-state-layer-color:white;--mdc-chip-focus-state-layer-opacity:.12;--mdc-chip-selected-focus-state-layer-color:white;--mdc-chip-selected-focus-state-layer-opacity:.12;--mdc-chip-label-text-color:white;--mdc-chip-selected-label-text-color:white;--mdc-chip-with-icon-icon-color:white;--mdc-chip-with-icon-disabled-icon-color:white;--mdc-chip-with-icon-selected-icon-color:white;--mdc-chip-with-trailing-icon-disabled-trailing-icon-color:white;--mdc-chip-with-trailing-icon-trailing-icon-color:white;--mat-chip-selected-disabled-trailing-icon-color:white;--mat-chip-selected-trailing-icon-color:white}.mat-mdc-chip.mat-mdc-standard-chip{--mdc-chip-container-height:32px}.mat-mdc-standard-chip{--mdc-chip-label-text-font:Roboto, sans-serif;--mdc-chip-label-text-line-height:20px;--mdc-chip-label-text-size:14px;--mdc-chip-label-text-tracking:.0178571429em;--mdc-chip-label-text-weight:400}html{--mdc-switch-disabled-selected-icon-opacity:.38;--mdc-switch-disabled-track-opacity:.12;--mdc-switch-disabled-unselected-icon-opacity:.38;--mdc-switch-handle-height:20px;--mdc-switch-handle-shape:10px;--mdc-switch-handle-width:20px;--mdc-switch-selected-icon-size:18px;--mdc-switch-track-height:14px;--mdc-switch-track-shape:7px;--mdc-switch-track-width:36px;--mdc-switch-unselected-icon-size:18px;--mdc-switch-selected-focus-state-layer-opacity:.12;--mdc-switch-selected-hover-state-layer-opacity:.04;--mdc-switch-selected-pressed-state-layer-opacity:.1;--mdc-switch-unselected-focus-state-layer-opacity:.12;--mdc-switch-unselected-hover-state-layer-opacity:.04;--mdc-switch-unselected-pressed-state-layer-opacity:.1;--mat-switch-disabled-selected-handle-opacity:.38;--mat-switch-disabled-unselected-handle-opacity:.38;--mat-switch-unselected-handle-size:20px;--mat-switch-selected-handle-size:20px;--mat-switch-pressed-handle-size:20px;--mat-switch-with-icon-handle-size:20px;--mat-switch-selected-handle-horizontal-margin:0;--mat-switch-selected-with-icon-handle-horizontal-margin:0;--mat-switch-selected-pressed-handle-horizontal-margin:0;--mat-switch-unselected-handle-horizontal-margin:0;--mat-switch-unselected-with-icon-handle-horizontal-margin:0;--mat-switch-unselected-pressed-handle-horizontal-margin:0;--mat-switch-visible-track-opacity:1;--mat-switch-hidden-track-opacity:1;--mat-switch-visible-track-transition:transform 75ms 0ms cubic-bezier(0, 0, .2, 1);--mat-switch-hidden-track-transition:transform 75ms 0ms cubic-bezier(.4, 0, .6, 1);--mat-switch-track-outline-width:1px;--mat-switch-track-outline-color:transparent;--mat-switch-selected-track-outline-width:1px;--mat-switch-disabled-unselected-track-outline-width:1px;--mat-switch-disabled-unselected-track-outline-color:transparent}html{--mdc-switch-selected-focus-state-layer-color:#ba68c8;--mdc-switch-selected-handle-color:#ba68c8;--mdc-switch-selected-hover-state-layer-color:#ba68c8;--mdc-switch-selected-pressed-state-layer-color:#ba68c8;--mdc-switch-selected-focus-handle-color:#ce93d8;--mdc-switch-selected-hover-handle-color:#ce93d8;--mdc-switch-selected-pressed-handle-color:#ce93d8;--mdc-switch-selected-focus-track-color:#8e24aa;--mdc-switch-selected-hover-track-color:#8e24aa;--mdc-switch-selected-pressed-track-color:#8e24aa;--mdc-switch-selected-track-color:#8e24aa;--mdc-switch-disabled-selected-handle-color:#000;--mdc-switch-disabled-selected-icon-color:#212121;--mdc-switch-disabled-selected-track-color:#f5f5f5;--mdc-switch-disabled-unselected-handle-color:#000;--mdc-switch-disabled-unselected-icon-color:#212121;--mdc-switch-disabled-unselected-track-color:#f5f5f5;--mdc-switch-handle-surface-color:var(--mdc-theme-surface, #fff);--mdc-switch-handle-elevation-shadow:0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mdc-switch-handle-shadow-color:black;--mdc-switch-disabled-handle-elevation-shadow:0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mdc-switch-selected-icon-color:#212121;--mdc-switch-unselected-focus-handle-color:#fafafa;--mdc-switch-unselected-focus-state-layer-color:#f5f5f5;--mdc-switch-unselected-focus-track-color:#616161;--mdc-switch-unselected-handle-color:#9e9e9e;--mdc-switch-unselected-hover-handle-color:#fafafa;--mdc-switch-unselected-hover-state-layer-color:#f5f5f5;--mdc-switch-unselected-hover-track-color:#616161;--mdc-switch-unselected-icon-color:#212121;--mdc-switch-unselected-pressed-handle-color:#fafafa;--mdc-switch-unselected-pressed-state-layer-color:#f5f5f5;--mdc-switch-unselected-pressed-track-color:#616161;--mdc-switch-unselected-track-color:#616161;--mdc-switch-disabled-label-text-color: rgba(255, 255, 255, .5)}html .mat-mdc-slide-toggle{--mdc-form-field-label-text-color:white}html .mat-mdc-slide-toggle.mat-accent{--mdc-switch-selected-focus-state-layer-color:#81c784;--mdc-switch-selected-handle-color:#81c784;--mdc-switch-selected-hover-state-layer-color:#81c784;--mdc-switch-selected-pressed-state-layer-color:#81c784;--mdc-switch-selected-focus-handle-color:#a5d6a7;--mdc-switch-selected-hover-handle-color:#a5d6a7;--mdc-switch-selected-pressed-handle-color:#a5d6a7;--mdc-switch-selected-focus-track-color:#43a047;--mdc-switch-selected-hover-track-color:#43a047;--mdc-switch-selected-pressed-track-color:#43a047;--mdc-switch-selected-track-color:#43a047}html .mat-mdc-slide-toggle.mat-warn{--mdc-switch-selected-focus-state-layer-color:#e57373;--mdc-switch-selected-handle-color:#e57373;--mdc-switch-selected-hover-state-layer-color:#e57373;--mdc-switch-selected-pressed-state-layer-color:#e57373;--mdc-switch-selected-focus-handle-color:#ef9a9a;--mdc-switch-selected-hover-handle-color:#ef9a9a;--mdc-switch-selected-pressed-handle-color:#ef9a9a;--mdc-switch-selected-focus-track-color:#e53935;--mdc-switch-selected-hover-track-color:#e53935;--mdc-switch-selected-pressed-track-color:#e53935;--mdc-switch-selected-track-color:#e53935}html{--mdc-switch-state-layer-size:40px}html .mat-mdc-slide-toggle{--mdc-form-field-label-text-font:Roboto, sans-serif;--mdc-form-field-label-text-line-height:20px;--mdc-form-field-label-text-size:14px;--mdc-form-field-label-text-tracking:.0178571429em;--mdc-form-field-label-text-weight:400}html{--mdc-radio-disabled-selected-icon-opacity:.38;--mdc-radio-disabled-unselected-icon-opacity:.38;--mdc-radio-state-layer-size:40px}.mat-mdc-radio-button{--mdc-form-field-label-text-color:white}.mat-mdc-radio-button.mat-primary{--mdc-radio-disabled-selected-icon-color:white;--mdc-radio-disabled-unselected-icon-color:white;--mdc-radio-unselected-hover-icon-color:#eeeeee;--mdc-radio-unselected-icon-color:rgba(255, 255, 255, .54);--mdc-radio-unselected-pressed-icon-color:rgba(255, 255, 255, .54);--mdc-radio-selected-focus-icon-color:#7b1fa2;--mdc-radio-selected-hover-icon-color:#7b1fa2;--mdc-radio-selected-icon-color:#7b1fa2;--mdc-radio-selected-pressed-icon-color:#7b1fa2;--mat-radio-ripple-color:white;--mat-radio-checked-ripple-color:#7b1fa2;--mat-radio-disabled-label-color:rgba(255, 255, 255, .5)}.mat-mdc-radio-button.mat-accent{--mdc-radio-disabled-selected-icon-color:white;--mdc-radio-disabled-unselected-icon-color:white;--mdc-radio-unselected-hover-icon-color:#eeeeee;--mdc-radio-unselected-icon-color:rgba(255, 255, 255, .54);--mdc-radio-unselected-pressed-icon-color:rgba(255, 255, 255, .54);--mdc-radio-selected-focus-icon-color:#69f0ae;--mdc-radio-selected-hover-icon-color:#69f0ae;--mdc-radio-selected-icon-color:#69f0ae;--mdc-radio-selected-pressed-icon-color:#69f0ae;--mat-radio-ripple-color:white;--mat-radio-checked-ripple-color:#69f0ae;--mat-radio-disabled-label-color:rgba(255, 255, 255, .5)}.mat-mdc-radio-button.mat-warn{--mdc-radio-disabled-selected-icon-color:white;--mdc-radio-disabled-unselected-icon-color:white;--mdc-radio-unselected-hover-icon-color:#eeeeee;--mdc-radio-unselected-icon-color:rgba(255, 255, 255, .54);--mdc-radio-unselected-pressed-icon-color:rgba(255, 255, 255, .54);--mdc-radio-selected-focus-icon-color:#f44336;--mdc-radio-selected-hover-icon-color:#f44336;--mdc-radio-selected-icon-color:#f44336;--mdc-radio-selected-pressed-icon-color:#f44336;--mat-radio-ripple-color:white;--mat-radio-checked-ripple-color:#f44336;--mat-radio-disabled-label-color:rgba(255, 255, 255, .5)}html{--mdc-radio-state-layer-size:40px;--mat-radio-touch-target-display:block}.mat-mdc-radio-button{--mdc-form-field-label-text-font:Roboto, sans-serif;--mdc-form-field-label-text-line-height:20px;--mdc-form-field-label-text-size:14px;--mdc-form-field-label-text-tracking:.0178571429em;--mdc-form-field-label-text-weight:400}html{--mat-slider-value-indicator-width:auto;--mat-slider-value-indicator-height:32px;--mat-slider-value-indicator-caret-display:block;--mat-slider-value-indicator-border-radius:4px;--mat-slider-value-indicator-padding:0 12px;--mat-slider-value-indicator-text-transform:none;--mat-slider-value-indicator-container-transform:translateX(-50%);--mdc-slider-active-track-height:6px;--mdc-slider-active-track-shape:9999px;--mdc-slider-handle-height:20px;--mdc-slider-handle-shape:50%;--mdc-slider-handle-width:20px;--mdc-slider-inactive-track-height:4px;--mdc-slider-inactive-track-shape:9999px;--mdc-slider-with-overlap-handle-outline-width:1px;--mdc-slider-with-tick-marks-active-container-opacity:.6;--mdc-slider-with-tick-marks-container-shape:50%;--mdc-slider-with-tick-marks-container-size:2px;--mdc-slider-with-tick-marks-inactive-container-opacity:.6}html{--mdc-slider-handle-color:#7b1fa2;--mdc-slider-focus-handle-color:#7b1fa2;--mdc-slider-hover-handle-color:#7b1fa2;--mdc-slider-active-track-color:#7b1fa2;--mdc-slider-inactive-track-color:#7b1fa2;--mdc-slider-with-tick-marks-inactive-container-color:#7b1fa2;--mdc-slider-with-tick-marks-active-container-color:white;--mdc-slider-disabled-active-track-color:#fff;--mdc-slider-disabled-handle-color:#fff;--mdc-slider-disabled-inactive-track-color:#fff;--mdc-slider-label-container-color:#fff;--mdc-slider-label-label-text-color:#000;--mdc-slider-with-overlap-handle-outline-color:#fff;--mdc-slider-with-tick-marks-disabled-container-color:#fff;--mdc-slider-handle-elevation:0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mat-slider-ripple-color:#7b1fa2;--mat-slider-hover-state-layer-color:rgba(123, 31, 162, .05);--mat-slider-focus-state-layer-color:rgba(123, 31, 162, .2);--mat-slider-value-indicator-opacity:.9}html .mat-accent{--mat-slider-ripple-color:#69f0ae;--mat-slider-hover-state-layer-color:rgba(105, 240, 174, .05);--mat-slider-focus-state-layer-color:rgba(105, 240, 174, .2);--mdc-slider-handle-color:#69f0ae;--mdc-slider-focus-handle-color:#69f0ae;--mdc-slider-hover-handle-color:#69f0ae;--mdc-slider-active-track-color:#69f0ae;--mdc-slider-inactive-track-color:#69f0ae;--mdc-slider-with-tick-marks-inactive-container-color:#69f0ae;--mdc-slider-with-tick-marks-active-container-color:rgba(0, 0, 0, .87)}html .mat-warn{--mat-slider-ripple-color:#f44336;--mat-slider-hover-state-layer-color:rgba(244, 67, 54, .05);--mat-slider-focus-state-layer-color:rgba(244, 67, 54, .2);--mdc-slider-handle-color:#f44336;--mdc-slider-focus-handle-color:#f44336;--mdc-slider-hover-handle-color:#f44336;--mdc-slider-active-track-color:#f44336;--mdc-slider-inactive-track-color:#f44336;--mdc-slider-with-tick-marks-inactive-container-color:#f44336;--mdc-slider-with-tick-marks-active-container-color:white}html{--mdc-slider-label-label-text-font:Roboto, sans-serif;--mdc-slider-label-label-text-size:14px;--mdc-slider-label-label-text-line-height:22px;--mdc-slider-label-label-text-tracking:.0071428571em;--mdc-slider-label-label-text-weight:500}html{--mat-menu-container-shape:4px;--mat-menu-divider-bottom-spacing:0;--mat-menu-divider-top-spacing:0;--mat-menu-item-spacing:16px;--mat-menu-item-icon-size:24px;--mat-menu-item-leading-spacing:16px;--mat-menu-item-trailing-spacing:16px;--mat-menu-item-with-icon-leading-spacing:16px;--mat-menu-item-with-icon-trailing-spacing:16px}html{--mat-menu-item-label-text-color:white;--mat-menu-item-icon-color:white;--mat-menu-item-hover-state-layer-color:rgba(255, 255, 255, .08);--mat-menu-item-focus-state-layer-color:rgba(255, 255, 255, .08);--mat-menu-container-color:#424242;--mat-menu-divider-color:rgba(255, 255, 255, .12)}html{--mat-menu-item-label-text-font:Roboto, sans-serif;--mat-menu-item-label-text-size:16px;--mat-menu-item-label-text-tracking:.03125em;--mat-menu-item-label-text-line-height:24px;--mat-menu-item-label-text-weight:400}html{--mdc-list-list-item-container-shape:0;--mdc-list-list-item-leading-avatar-shape:50%;--mdc-list-list-item-container-color:transparent;--mdc-list-list-item-selected-container-color:transparent;--mdc-list-list-item-leading-avatar-color:transparent;--mdc-list-list-item-leading-icon-size:24px;--mdc-list-list-item-leading-avatar-size:40px;--mdc-list-list-item-trailing-icon-size:24px;--mdc-list-list-item-disabled-state-layer-color:transparent;--mdc-list-list-item-disabled-state-layer-opacity:0;--mdc-list-list-item-disabled-label-text-opacity:.38;--mdc-list-list-item-disabled-leading-icon-opacity:.38;--mdc-list-list-item-disabled-trailing-icon-opacity:.38;--mat-list-active-indicator-color:transparent;--mat-list-active-indicator-shape:4px}html{--mdc-list-list-item-label-text-color:white;--mdc-list-list-item-supporting-text-color:rgba(255, 255, 255, .7);--mdc-list-list-item-leading-icon-color:rgba(255, 255, 255, .5);--mdc-list-list-item-trailing-supporting-text-color:rgba(255, 255, 255, .5);--mdc-list-list-item-trailing-icon-color:rgba(255, 255, 255, .5);--mdc-list-list-item-selected-trailing-icon-color:rgba(255, 255, 255, .5);--mdc-list-list-item-disabled-label-text-color:white;--mdc-list-list-item-disabled-leading-icon-color:white;--mdc-list-list-item-disabled-trailing-icon-color:white;--mdc-list-list-item-hover-label-text-color:white;--mdc-list-list-item-hover-leading-icon-color:rgba(255, 255, 255, .5);--mdc-list-list-item-hover-trailing-icon-color:rgba(255, 255, 255, .5);--mdc-list-list-item-focus-label-text-color:white;--mdc-list-list-item-hover-state-layer-color:white;--mdc-list-list-item-hover-state-layer-opacity:.08;--mdc-list-list-item-focus-state-layer-color:white;--mdc-list-list-item-focus-state-layer-opacity:.24}.mdc-list-item__start,.mdc-list-item__end{--mdc-radio-disabled-selected-icon-color:white;--mdc-radio-disabled-unselected-icon-color:white;--mdc-radio-unselected-hover-icon-color:#eeeeee;--mdc-radio-unselected-icon-color:rgba(255, 255, 255, .54);--mdc-radio-unselected-pressed-icon-color:rgba(255, 255, 255, .54);--mdc-radio-selected-focus-icon-color:#7b1fa2;--mdc-radio-selected-hover-icon-color:#7b1fa2;--mdc-radio-selected-icon-color:#7b1fa2;--mdc-radio-selected-pressed-icon-color:#7b1fa2}.mat-accent .mdc-list-item__start,.mat-accent .mdc-list-item__end{--mdc-radio-disabled-selected-icon-color:white;--mdc-radio-disabled-unselected-icon-color:white;--mdc-radio-unselected-hover-icon-color:#eeeeee;--mdc-radio-unselected-icon-color:rgba(255, 255, 255, .54);--mdc-radio-unselected-pressed-icon-color:rgba(255, 255, 255, .54);--mdc-radio-selected-focus-icon-color:#69f0ae;--mdc-radio-selected-hover-icon-color:#69f0ae;--mdc-radio-selected-icon-color:#69f0ae;--mdc-radio-selected-pressed-icon-color:#69f0ae}.mat-warn .mdc-list-item__start,.mat-warn .mdc-list-item__end{--mdc-radio-disabled-selected-icon-color:white;--mdc-radio-disabled-unselected-icon-color:white;--mdc-radio-unselected-hover-icon-color:#eeeeee;--mdc-radio-unselected-icon-color:rgba(255, 255, 255, .54);--mdc-radio-unselected-pressed-icon-color:rgba(255, 255, 255, .54);--mdc-radio-selected-focus-icon-color:#f44336;--mdc-radio-selected-hover-icon-color:#f44336;--mdc-radio-selected-icon-color:#f44336;--mdc-radio-selected-pressed-icon-color:#f44336}.mat-mdc-list-option{--mdc-checkbox-disabled-selected-icon-color:rgba(255, 255, 255, .38);--mdc-checkbox-disabled-unselected-icon-color:rgba(255, 255, 255, .38);--mdc-checkbox-selected-checkmark-color:white;--mdc-checkbox-selected-focus-icon-color:#7b1fa2;--mdc-checkbox-selected-hover-icon-color:#7b1fa2;--mdc-checkbox-selected-icon-color:#7b1fa2;--mdc-checkbox-selected-pressed-icon-color:#7b1fa2;--mdc-checkbox-unselected-focus-icon-color:#eeeeee;--mdc-checkbox-unselected-hover-icon-color:#eeeeee;--mdc-checkbox-unselected-icon-color:rgba(255, 255, 255, .54);--mdc-checkbox-unselected-pressed-icon-color:rgba(255, 255, 255, .54);--mdc-checkbox-selected-focus-state-layer-color:#7b1fa2;--mdc-checkbox-selected-hover-state-layer-color:#7b1fa2;--mdc-checkbox-selected-pressed-state-layer-color:#7b1fa2;--mdc-checkbox-unselected-focus-state-layer-color:white;--mdc-checkbox-unselected-hover-state-layer-color:white;--mdc-checkbox-unselected-pressed-state-layer-color:white}.mat-mdc-list-option.mat-accent{--mdc-checkbox-disabled-selected-icon-color:rgba(255, 255, 255, .38);--mdc-checkbox-disabled-unselected-icon-color:rgba(255, 255, 255, .38);--mdc-checkbox-selected-checkmark-color:black;--mdc-checkbox-selected-focus-icon-color:#69f0ae;--mdc-checkbox-selected-hover-icon-color:#69f0ae;--mdc-checkbox-selected-icon-color:#69f0ae;--mdc-checkbox-selected-pressed-icon-color:#69f0ae;--mdc-checkbox-unselected-focus-icon-color:#eeeeee;--mdc-checkbox-unselected-hover-icon-color:#eeeeee;--mdc-checkbox-unselected-icon-color:rgba(255, 255, 255, .54);--mdc-checkbox-unselected-pressed-icon-color:rgba(255, 255, 255, .54);--mdc-checkbox-selected-focus-state-layer-color:#69f0ae;--mdc-checkbox-selected-hover-state-layer-color:#69f0ae;--mdc-checkbox-selected-pressed-state-layer-color:#69f0ae;--mdc-checkbox-unselected-focus-state-layer-color:white;--mdc-checkbox-unselected-hover-state-layer-color:white;--mdc-checkbox-unselected-pressed-state-layer-color:white}.mat-mdc-list-option.mat-warn{--mdc-checkbox-disabled-selected-icon-color:rgba(255, 255, 255, .38);--mdc-checkbox-disabled-unselected-icon-color:rgba(255, 255, 255, .38);--mdc-checkbox-selected-checkmark-color:white;--mdc-checkbox-selected-focus-icon-color:#f44336;--mdc-checkbox-selected-hover-icon-color:#f44336;--mdc-checkbox-selected-icon-color:#f44336;--mdc-checkbox-selected-pressed-icon-color:#f44336;--mdc-checkbox-unselected-focus-icon-color:#eeeeee;--mdc-checkbox-unselected-hover-icon-color:#eeeeee;--mdc-checkbox-unselected-icon-color:rgba(255, 255, 255, .54);--mdc-checkbox-unselected-pressed-icon-color:rgba(255, 255, 255, .54);--mdc-checkbox-selected-focus-state-layer-color:#f44336;--mdc-checkbox-selected-hover-state-layer-color:#f44336;--mdc-checkbox-selected-pressed-state-layer-color:#f44336;--mdc-checkbox-unselected-focus-state-layer-color:white;--mdc-checkbox-unselected-hover-state-layer-color:white;--mdc-checkbox-unselected-pressed-state-layer-color:white}.mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--selected .mdc-list-item__primary-text,.mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--activated .mdc-list-item__primary-text,.mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--selected.mdc-list-item--with-leading-icon .mdc-list-item__start,.mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--activated.mdc-list-item--with-leading-icon .mdc-list-item__start{color:#7b1fa2}.mat-mdc-list-base .mdc-list-item--disabled .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item--disabled .mdc-list-item__content,.mat-mdc-list-base .mdc-list-item--disabled .mdc-list-item__end{opacity:1}html{--mdc-list-list-item-one-line-container-height:48px;--mdc-list-list-item-two-line-container-height:64px;--mdc-list-list-item-three-line-container-height:88px;--mat-list-list-item-leading-icon-start-space:16px;--mat-list-list-item-leading-icon-end-space:32px}.mdc-list-item__start,.mdc-list-item__end{--mdc-radio-state-layer-size:40px}.mat-mdc-list-item.mdc-list-item--with-leading-avatar.mdc-list-item--with-one-line,.mat-mdc-list-item.mdc-list-item--with-leading-checkbox.mdc-list-item--with-one-line,.mat-mdc-list-item.mdc-list-item--with-leading-icon.mdc-list-item--with-one-line{height:56px}.mat-mdc-list-item.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines,.mat-mdc-list-item.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines,.mat-mdc-list-item.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines{height:72px}html{--mdc-list-list-item-label-text-font:Roboto, sans-serif;--mdc-list-list-item-label-text-line-height:24px;--mdc-list-list-item-label-text-size:16px;--mdc-list-list-item-label-text-tracking:.03125em;--mdc-list-list-item-label-text-weight:400;--mdc-list-list-item-supporting-text-font:Roboto, sans-serif;--mdc-list-list-item-supporting-text-line-height:20px;--mdc-list-list-item-supporting-text-size:14px;--mdc-list-list-item-supporting-text-tracking:.0178571429em;--mdc-list-list-item-supporting-text-weight:400;--mdc-list-list-item-trailing-supporting-text-font:Roboto, sans-serif;--mdc-list-list-item-trailing-supporting-text-line-height:20px;--mdc-list-list-item-trailing-supporting-text-size:12px;--mdc-list-list-item-trailing-supporting-text-tracking:.0333333333em;--mdc-list-list-item-trailing-supporting-text-weight:400}.mdc-list-group__subheader{font:400 16px/28px Roboto,sans-serif;letter-spacing:.009375em}html{--mat-paginator-container-text-color:rgba(255, 255, 255, .87);--mat-paginator-container-background-color:#424242;--mat-paginator-enabled-icon-color:rgba(255, 255, 255, .54);--mat-paginator-disabled-icon-color:rgba(255, 255, 255, .12)}html{--mat-paginator-container-size:56px;--mat-paginator-form-field-container-height:40px;--mat-paginator-form-field-container-vertical-padding:8px}html{--mat-paginator-container-text-font:Roboto, sans-serif;--mat-paginator-container-text-line-height:20px;--mat-paginator-container-text-size:12px;--mat-paginator-container-text-tracking:.0333333333em;--mat-paginator-container-text-weight:400;--mat-paginator-select-trigger-text-size:12px}html{--mdc-tab-indicator-active-indicator-height:2px;--mdc-tab-indicator-active-indicator-shape:0;--mdc-secondary-navigation-tab-container-height:48px;--mat-tab-header-divider-color:transparent;--mat-tab-header-divider-height:0}.mat-mdc-tab-group,.mat-mdc-tab-nav-bar{--mdc-tab-indicator-active-indicator-color:#7b1fa2;--mat-tab-header-disabled-ripple-color:rgba(255, 255, 255, .5);--mat-tab-header-pagination-icon-color:white;--mat-tab-header-inactive-label-text-color:rgba(255, 255, 255, .6);--mat-tab-header-active-label-text-color:#7b1fa2;--mat-tab-header-active-ripple-color:#7b1fa2;--mat-tab-header-inactive-ripple-color:#7b1fa2;--mat-tab-header-inactive-focus-label-text-color:rgba(255, 255, 255, .6);--mat-tab-header-inactive-hover-label-text-color:rgba(255, 255, 255, .6);--mat-tab-header-active-focus-label-text-color:#7b1fa2;--mat-tab-header-active-hover-label-text-color:#7b1fa2;--mat-tab-header-active-focus-indicator-color:#7b1fa2;--mat-tab-header-active-hover-indicator-color:#7b1fa2}.mat-mdc-tab-group.mat-accent,.mat-mdc-tab-nav-bar.mat-accent{--mdc-tab-indicator-active-indicator-color:#69f0ae;--mat-tab-header-disabled-ripple-color:rgba(255, 255, 255, .5);--mat-tab-header-pagination-icon-color:white;--mat-tab-header-inactive-label-text-color:rgba(255, 255, 255, .6);--mat-tab-header-active-label-text-color:#69f0ae;--mat-tab-header-active-ripple-color:#69f0ae;--mat-tab-header-inactive-ripple-color:#69f0ae;--mat-tab-header-inactive-focus-label-text-color:rgba(255, 255, 255, .6);--mat-tab-header-inactive-hover-label-text-color:rgba(255, 255, 255, .6);--mat-tab-header-active-focus-label-text-color:#69f0ae;--mat-tab-header-active-hover-label-text-color:#69f0ae;--mat-tab-header-active-focus-indicator-color:#69f0ae;--mat-tab-header-active-hover-indicator-color:#69f0ae}.mat-mdc-tab-group.mat-warn,.mat-mdc-tab-nav-bar.mat-warn{--mdc-tab-indicator-active-indicator-color:#f44336;--mat-tab-header-disabled-ripple-color:rgba(255, 255, 255, .5);--mat-tab-header-pagination-icon-color:white;--mat-tab-header-inactive-label-text-color:rgba(255, 255, 255, .6);--mat-tab-header-active-label-text-color:#f44336;--mat-tab-header-active-ripple-color:#f44336;--mat-tab-header-inactive-ripple-color:#f44336;--mat-tab-header-inactive-focus-label-text-color:rgba(255, 255, 255, .6);--mat-tab-header-inactive-hover-label-text-color:rgba(255, 255, 255, .6);--mat-tab-header-active-focus-label-text-color:#f44336;--mat-tab-header-active-hover-label-text-color:#f44336;--mat-tab-header-active-focus-indicator-color:#f44336;--mat-tab-header-active-hover-indicator-color:#f44336}.mat-mdc-tab-group.mat-background-primary,.mat-mdc-tab-nav-bar.mat-background-primary{--mat-tab-header-with-background-background-color:#7b1fa2;--mat-tab-header-with-background-foreground-color:white}.mat-mdc-tab-group.mat-background-accent,.mat-mdc-tab-nav-bar.mat-background-accent{--mat-tab-header-with-background-background-color:#69f0ae;--mat-tab-header-with-background-foreground-color:rgba(0, 0, 0, .87)}.mat-mdc-tab-group.mat-background-warn,.mat-mdc-tab-nav-bar.mat-background-warn{--mat-tab-header-with-background-background-color:#f44336;--mat-tab-header-with-background-foreground-color:white}.mat-mdc-tab-header{--mdc-secondary-navigation-tab-container-height:48px}.mat-mdc-tab-header{--mat-tab-header-label-text-font:Roboto, sans-serif;--mat-tab-header-label-text-size:14px;--mat-tab-header-label-text-tracking:.0892857143em;--mat-tab-header-label-text-line-height:36px;--mat-tab-header-label-text-weight:500}html{--mdc-checkbox-disabled-selected-checkmark-color:#fff;--mdc-checkbox-selected-focus-state-layer-opacity:.16;--mdc-checkbox-selected-hover-state-layer-opacity:.04;--mdc-checkbox-selected-pressed-state-layer-opacity:.16;--mdc-checkbox-unselected-focus-state-layer-opacity:.16;--mdc-checkbox-unselected-hover-state-layer-opacity:.04;--mdc-checkbox-unselected-pressed-state-layer-opacity:.16}html{--mdc-checkbox-disabled-selected-icon-color:rgba(255, 255, 255, .38);--mdc-checkbox-disabled-unselected-icon-color:rgba(255, 255, 255, .38);--mdc-checkbox-selected-checkmark-color:black;--mdc-checkbox-selected-focus-icon-color:#69f0ae;--mdc-checkbox-selected-hover-icon-color:#69f0ae;--mdc-checkbox-selected-icon-color:#69f0ae;--mdc-checkbox-selected-pressed-icon-color:#69f0ae;--mdc-checkbox-unselected-focus-icon-color:#eeeeee;--mdc-checkbox-unselected-hover-icon-color:#eeeeee;--mdc-checkbox-unselected-icon-color:rgba(255, 255, 255, .54);--mdc-checkbox-unselected-pressed-icon-color:rgba(255, 255, 255, .54);--mdc-checkbox-selected-focus-state-layer-color:#69f0ae;--mdc-checkbox-selected-hover-state-layer-color:#69f0ae;--mdc-checkbox-selected-pressed-state-layer-color:#69f0ae;--mdc-checkbox-unselected-focus-state-layer-color:white;--mdc-checkbox-unselected-hover-state-layer-color:white;--mdc-checkbox-unselected-pressed-state-layer-color:white;--mat-checkbox-disabled-label-color:rgba(255, 255, 255, .5)}.mat-mdc-checkbox{--mdc-form-field-label-text-color:white}.mat-mdc-checkbox.mat-primary{--mdc-checkbox-disabled-selected-icon-color:rgba(255, 255, 255, .38);--mdc-checkbox-disabled-unselected-icon-color:rgba(255, 255, 255, .38);--mdc-checkbox-selected-checkmark-color:white;--mdc-checkbox-selected-focus-icon-color:#7b1fa2;--mdc-checkbox-selected-hover-icon-color:#7b1fa2;--mdc-checkbox-selected-icon-color:#7b1fa2;--mdc-checkbox-selected-pressed-icon-color:#7b1fa2;--mdc-checkbox-unselected-focus-icon-color:#eeeeee;--mdc-checkbox-unselected-hover-icon-color:#eeeeee;--mdc-checkbox-unselected-icon-color:rgba(255, 255, 255, .54);--mdc-checkbox-unselected-pressed-icon-color:rgba(255, 255, 255, .54);--mdc-checkbox-selected-focus-state-layer-color:#7b1fa2;--mdc-checkbox-selected-hover-state-layer-color:#7b1fa2;--mdc-checkbox-selected-pressed-state-layer-color:#7b1fa2;--mdc-checkbox-unselected-focus-state-layer-color:white;--mdc-checkbox-unselected-hover-state-layer-color:white;--mdc-checkbox-unselected-pressed-state-layer-color:white}.mat-mdc-checkbox.mat-warn{--mdc-checkbox-disabled-selected-icon-color:rgba(255, 255, 255, .38);--mdc-checkbox-disabled-unselected-icon-color:rgba(255, 255, 255, .38);--mdc-checkbox-selected-checkmark-color:white;--mdc-checkbox-selected-focus-icon-color:#f44336;--mdc-checkbox-selected-hover-icon-color:#f44336;--mdc-checkbox-selected-icon-color:#f44336;--mdc-checkbox-selected-pressed-icon-color:#f44336;--mdc-checkbox-unselected-focus-icon-color:#eeeeee;--mdc-checkbox-unselected-hover-icon-color:#eeeeee;--mdc-checkbox-unselected-icon-color:rgba(255, 255, 255, .54);--mdc-checkbox-unselected-pressed-icon-color:rgba(255, 255, 255, .54);--mdc-checkbox-selected-focus-state-layer-color:#f44336;--mdc-checkbox-selected-hover-state-layer-color:#f44336;--mdc-checkbox-selected-pressed-state-layer-color:#f44336;--mdc-checkbox-unselected-focus-state-layer-color:white;--mdc-checkbox-unselected-hover-state-layer-color:white;--mdc-checkbox-unselected-pressed-state-layer-color:white}html{--mdc-checkbox-state-layer-size:40px;--mat-checkbox-touch-target-display:block}.mat-mdc-checkbox{--mdc-form-field-label-text-font:Roboto, sans-serif;--mdc-form-field-label-text-line-height:20px;--mdc-form-field-label-text-size:14px;--mdc-form-field-label-text-tracking:.0178571429em;--mdc-form-field-label-text-weight:400}html{--mdc-text-button-container-shape:4px;--mdc-text-button-keep-touch-target:false;--mdc-filled-button-container-shape:4px;--mdc-filled-button-keep-touch-target:false;--mdc-protected-button-container-shape:4px;--mdc-protected-button-keep-touch-target:false;--mdc-outlined-button-keep-touch-target:false;--mdc-outlined-button-outline-width:1px;--mdc-outlined-button-container-shape:4px;--mat-text-button-horizontal-padding:8px;--mat-text-button-with-icon-horizontal-padding:8px;--mat-text-button-icon-spacing:8px;--mat-text-button-icon-offset:0;--mat-filled-button-horizontal-padding:16px;--mat-filled-button-icon-spacing:8px;--mat-filled-button-icon-offset:-4px;--mat-protected-button-horizontal-padding:16px;--mat-protected-button-icon-spacing:8px;--mat-protected-button-icon-offset:-4px;--mat-outlined-button-horizontal-padding:15px;--mat-outlined-button-icon-spacing:8px;--mat-outlined-button-icon-offset:-4px}html{--mdc-text-button-label-text-color:white;--mdc-text-button-disabled-label-text-color:rgba(255, 255, 255, .5);--mat-text-button-state-layer-color:white;--mat-text-button-disabled-state-layer-color:white;--mat-text-button-ripple-color:rgba(255, 255, 255, .1);--mat-text-button-hover-state-layer-opacity:.08;--mat-text-button-focus-state-layer-opacity:.24;--mat-text-button-pressed-state-layer-opacity:.24;--mdc-filled-button-container-color:#424242;--mdc-filled-button-label-text-color:white;--mdc-filled-button-disabled-container-color:rgba(255, 255, 255, .12);--mdc-filled-button-disabled-label-text-color:rgba(255, 255, 255, .5);--mat-filled-button-state-layer-color:white;--mat-filled-button-disabled-state-layer-color:white;--mat-filled-button-ripple-color:rgba(255, 255, 255, .1);--mat-filled-button-hover-state-layer-opacity:.08;--mat-filled-button-focus-state-layer-opacity:.24;--mat-filled-button-pressed-state-layer-opacity:.24;--mdc-protected-button-container-color:#424242;--mdc-protected-button-label-text-color:white;--mdc-protected-button-disabled-container-color:rgba(255, 255, 255, .12);--mdc-protected-button-disabled-label-text-color:rgba(255, 255, 255, .5);--mdc-protected-button-container-elevation-shadow:0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12);--mdc-protected-button-disabled-container-elevation-shadow:0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mdc-protected-button-focus-container-elevation-shadow:0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mdc-protected-button-hover-container-elevation-shadow:0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mdc-protected-button-pressed-container-elevation-shadow:0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-protected-button-container-shadow-color:#000;--mat-protected-button-state-layer-color:white;--mat-protected-button-disabled-state-layer-color:white;--mat-protected-button-ripple-color:rgba(255, 255, 255, .1);--mat-protected-button-hover-state-layer-opacity:.08;--mat-protected-button-focus-state-layer-opacity:.24;--mat-protected-button-pressed-state-layer-opacity:.24;--mdc-outlined-button-disabled-outline-color:rgba(255, 255, 255, .12);--mdc-outlined-button-disabled-label-text-color:rgba(255, 255, 255, .5);--mdc-outlined-button-label-text-color:white;--mdc-outlined-button-outline-color:rgba(255, 255, 255, .12);--mat-outlined-button-state-layer-color:white;--mat-outlined-button-disabled-state-layer-color:white;--mat-outlined-button-ripple-color:rgba(255, 255, 255, .1);--mat-outlined-button-hover-state-layer-opacity:.08;--mat-outlined-button-focus-state-layer-opacity:.24;--mat-outlined-button-pressed-state-layer-opacity:.24}.mat-mdc-button.mat-primary{--mdc-text-button-label-text-color:#7b1fa2;--mat-text-button-state-layer-color:#7b1fa2;--mat-text-button-ripple-color:rgba(123, 31, 162, .1)}.mat-mdc-button.mat-accent{--mdc-text-button-label-text-color:#69f0ae;--mat-text-button-state-layer-color:#69f0ae;--mat-text-button-ripple-color:rgba(105, 240, 174, .1)}.mat-mdc-button.mat-warn{--mdc-text-button-label-text-color:#f44336;--mat-text-button-state-layer-color:#f44336;--mat-text-button-ripple-color:rgba(244, 67, 54, .1)}.mat-mdc-unelevated-button.mat-primary{--mdc-filled-button-container-color:#7b1fa2;--mdc-filled-button-label-text-color:white;--mat-filled-button-state-layer-color:white;--mat-filled-button-ripple-color:rgba(255, 255, 255, .1)}.mat-mdc-unelevated-button.mat-accent{--mdc-filled-button-container-color:#69f0ae;--mdc-filled-button-label-text-color:black;--mat-filled-button-state-layer-color:black;--mat-filled-button-ripple-color:rgba(0, 0, 0, .1)}.mat-mdc-unelevated-button.mat-warn{--mdc-filled-button-container-color:#f44336;--mdc-filled-button-label-text-color:white;--mat-filled-button-state-layer-color:white;--mat-filled-button-ripple-color:rgba(255, 255, 255, .1)}.mat-mdc-raised-button.mat-primary{--mdc-protected-button-container-color:#7b1fa2;--mdc-protected-button-label-text-color:white;--mat-protected-button-state-layer-color:white;--mat-protected-button-ripple-color:rgba(255, 255, 255, .1)}.mat-mdc-raised-button.mat-accent{--mdc-protected-button-container-color:#69f0ae;--mdc-protected-button-label-text-color:black;--mat-protected-button-state-layer-color:black;--mat-protected-button-ripple-color:rgba(0, 0, 0, .1)}.mat-mdc-raised-button.mat-warn{--mdc-protected-button-container-color:#f44336;--mdc-protected-button-label-text-color:white;--mat-protected-button-state-layer-color:white;--mat-protected-button-ripple-color:rgba(255, 255, 255, .1)}.mat-mdc-outlined-button.mat-primary{--mdc-outlined-button-label-text-color:#7b1fa2;--mdc-outlined-button-outline-color:rgba(255, 255, 255, .12);--mat-outlined-button-state-layer-color:#7b1fa2;--mat-outlined-button-ripple-color:rgba(123, 31, 162, .1)}.mat-mdc-outlined-button.mat-accent{--mdc-outlined-button-label-text-color:#69f0ae;--mdc-outlined-button-outline-color:rgba(255, 255, 255, .12);--mat-outlined-button-state-layer-color:#69f0ae;--mat-outlined-button-ripple-color:rgba(105, 240, 174, .1)}.mat-mdc-outlined-button.mat-warn{--mdc-outlined-button-label-text-color:#f44336;--mdc-outlined-button-outline-color:rgba(255, 255, 255, .12);--mat-outlined-button-state-layer-color:#f44336;--mat-outlined-button-ripple-color:rgba(244, 67, 54, .1)}html{--mdc-text-button-container-height:36px;--mdc-filled-button-container-height:36px;--mdc-outlined-button-container-height:36px;--mdc-protected-button-container-height:36px;--mat-text-button-touch-target-display:block;--mat-filled-button-touch-target-display:block;--mat-protected-button-touch-target-display:block;--mat-outlined-button-touch-target-display:block}html{--mdc-text-button-label-text-font:Roboto, sans-serif;--mdc-text-button-label-text-size:14px;--mdc-text-button-label-text-tracking:.0892857143em;--mdc-text-button-label-text-weight:500;--mdc-text-button-label-text-transform:none;--mdc-filled-button-label-text-font:Roboto, sans-serif;--mdc-filled-button-label-text-size:14px;--mdc-filled-button-label-text-tracking:.0892857143em;--mdc-filled-button-label-text-weight:500;--mdc-filled-button-label-text-transform:none;--mdc-outlined-button-label-text-font:Roboto, sans-serif;--mdc-outlined-button-label-text-size:14px;--mdc-outlined-button-label-text-tracking:.0892857143em;--mdc-outlined-button-label-text-weight:500;--mdc-outlined-button-label-text-transform:none;--mdc-protected-button-label-text-font:Roboto, sans-serif;--mdc-protected-button-label-text-size:14px;--mdc-protected-button-label-text-tracking:.0892857143em;--mdc-protected-button-label-text-weight:500;--mdc-protected-button-label-text-transform:none}html{--mdc-icon-button-icon-size:24px}html{--mdc-icon-button-icon-color:inherit;--mdc-icon-button-disabled-icon-color:rgba(255, 255, 255, .5);--mat-icon-button-state-layer-color:white;--mat-icon-button-disabled-state-layer-color:white;--mat-icon-button-ripple-color:rgba(255, 255, 255, .1);--mat-icon-button-hover-state-layer-opacity:.08;--mat-icon-button-focus-state-layer-opacity:.24;--mat-icon-button-pressed-state-layer-opacity:.24}html .mat-mdc-icon-button.mat-primary{--mdc-icon-button-icon-color:#7b1fa2;--mat-icon-button-state-layer-color:#7b1fa2;--mat-icon-button-ripple-color:rgba(123, 31, 162, .1)}html .mat-mdc-icon-button.mat-accent{--mdc-icon-button-icon-color:#69f0ae;--mat-icon-button-state-layer-color:#69f0ae;--mat-icon-button-ripple-color:rgba(105, 240, 174, .1)}html .mat-mdc-icon-button.mat-warn{--mdc-icon-button-icon-color:#f44336;--mat-icon-button-state-layer-color:#f44336;--mat-icon-button-ripple-color:rgba(244, 67, 54, .1)}html{--mat-icon-button-touch-target-display:block}.mat-mdc-icon-button.mat-mdc-button-base{--mdc-icon-button-state-layer-size:48px;width:var(--mdc-icon-button-state-layer-size);height:var(--mdc-icon-button-state-layer-size);padding:12px}html{--mdc-fab-container-shape:50%;--mdc-fab-icon-size:24px;--mdc-fab-small-container-shape:50%;--mdc-fab-small-icon-size:24px;--mdc-extended-fab-container-height:48px;--mdc-extended-fab-container-shape:24px}html{--mdc-fab-container-color:#424242;--mdc-fab-container-elevation-shadow:0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mdc-fab-focus-container-elevation-shadow:0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-fab-hover-container-elevation-shadow:0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-fab-pressed-container-elevation-shadow:0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mdc-fab-container-shadow-color:#000;--mat-fab-foreground-color:white;--mat-fab-state-layer-color:white;--mat-fab-disabled-state-layer-color:white;--mat-fab-ripple-color:rgba(255, 255, 255, .1);--mat-fab-hover-state-layer-opacity:.08;--mat-fab-focus-state-layer-opacity:.24;--mat-fab-pressed-state-layer-opacity:.24;--mat-fab-disabled-state-container-color:rgba(255, 255, 255, .12);--mat-fab-disabled-state-foreground-color:rgba(255, 255, 255, .5);--mdc-fab-small-container-color:#424242;--mdc-fab-small-container-elevation-shadow:0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mdc-fab-small-focus-container-elevation-shadow:0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-fab-small-hover-container-elevation-shadow:0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-fab-small-pressed-container-elevation-shadow:0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mdc-fab-small-container-shadow-color:#000;--mat-fab-small-foreground-color:white;--mat-fab-small-state-layer-color:white;--mat-fab-small-disabled-state-layer-color:white;--mat-fab-small-ripple-color:rgba(255, 255, 255, .1);--mat-fab-small-hover-state-layer-opacity:.08;--mat-fab-small-focus-state-layer-opacity:.24;--mat-fab-small-pressed-state-layer-opacity:.24;--mat-fab-small-disabled-state-container-color:rgba(255, 255, 255, .12);--mat-fab-small-disabled-state-foreground-color:rgba(255, 255, 255, .5);--mdc-extended-fab-container-elevation-shadow:0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mdc-extended-fab-focus-container-elevation-shadow:0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-extended-fab-hover-container-elevation-shadow:0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-extended-fab-pressed-container-elevation-shadow:0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mdc-extended-fab-container-shadow-color:#000}html .mat-mdc-fab.mat-primary{--mdc-fab-container-color:#7b1fa2;--mat-fab-foreground-color:white;--mat-fab-state-layer-color:white;--mat-fab-ripple-color:rgba(255, 255, 255, .1)}html .mat-mdc-fab.mat-accent{--mdc-fab-container-color:#69f0ae;--mat-fab-foreground-color:black;--mat-fab-state-layer-color:black;--mat-fab-ripple-color:rgba(0, 0, 0, .1)}html .mat-mdc-fab.mat-warn{--mdc-fab-container-color:#f44336;--mat-fab-foreground-color:white;--mat-fab-state-layer-color:white;--mat-fab-ripple-color:rgba(255, 255, 255, .1)}html .mat-mdc-mini-fab.mat-primary{--mdc-fab-small-container-color:#7b1fa2;--mat-fab-small-foreground-color:white;--mat-fab-small-state-layer-color:white;--mat-fab-small-ripple-color:rgba(255, 255, 255, .1)}html .mat-mdc-mini-fab.mat-accent{--mdc-fab-small-container-color:#69f0ae;--mat-fab-small-foreground-color:black;--mat-fab-small-state-layer-color:black;--mat-fab-small-ripple-color:rgba(0, 0, 0, .1)}html .mat-mdc-mini-fab.mat-warn{--mdc-fab-small-container-color:#f44336;--mat-fab-small-foreground-color:white;--mat-fab-small-state-layer-color:white;--mat-fab-small-ripple-color:rgba(255, 255, 255, .1)}html{--mat-fab-touch-target-display:block;--mat-fab-small-touch-target-display:block}html{--mdc-extended-fab-label-text-font:Roboto, sans-serif;--mdc-extended-fab-label-text-size:14px;--mdc-extended-fab-label-text-tracking:.0892857143em;--mdc-extended-fab-label-text-weight:500}html{--mdc-snackbar-container-shape:4px}html{--mdc-snackbar-container-color:#d9d9d9;--mdc-snackbar-supporting-text-color:rgba(66, 66, 66, .87);--mat-snack-bar-button-color:rgba(0, 0, 0, .87)}html{--mdc-snackbar-supporting-text-font:Roboto, sans-serif;--mdc-snackbar-supporting-text-line-height:20px;--mdc-snackbar-supporting-text-size:14px;--mdc-snackbar-supporting-text-weight:400}html{--mat-table-row-item-outline-width:1px}html{--mat-table-background-color:#424242;--mat-table-header-headline-color:white;--mat-table-row-item-label-text-color:white;--mat-table-row-item-outline-color:rgba(255, 255, 255, .12)}html{--mat-table-header-container-height:56px;--mat-table-footer-container-height:52px;--mat-table-row-item-container-height:52px}html{--mat-table-header-headline-font:Roboto, sans-serif;--mat-table-header-headline-line-height:22px;--mat-table-header-headline-size:14px;--mat-table-header-headline-weight:500;--mat-table-header-headline-tracking:.0071428571em;--mat-table-row-item-label-text-font:Roboto, sans-serif;--mat-table-row-item-label-text-line-height:20px;--mat-table-row-item-label-text-size:14px;--mat-table-row-item-label-text-weight:400;--mat-table-row-item-label-text-tracking:.0178571429em;--mat-table-footer-supporting-text-font:Roboto, sans-serif;--mat-table-footer-supporting-text-line-height:20px;--mat-table-footer-supporting-text-size:14px;--mat-table-footer-supporting-text-weight:400;--mat-table-footer-supporting-text-tracking:.0178571429em}html{--mdc-circular-progress-active-indicator-width:4px;--mdc-circular-progress-size:48px}html{--mdc-circular-progress-active-indicator-color:#7b1fa2}html .mat-accent{--mdc-circular-progress-active-indicator-color:#69f0ae}html .mat-warn{--mdc-circular-progress-active-indicator-color:#f44336}html{--mat-badge-container-shape:50%;--mat-badge-container-size:unset;--mat-badge-small-size-container-size:unset;--mat-badge-large-size-container-size:unset;--mat-badge-legacy-container-size:22px;--mat-badge-legacy-small-size-container-size:16px;--mat-badge-legacy-large-size-container-size:28px;--mat-badge-container-offset:-11px 0;--mat-badge-small-size-container-offset:-8px 0;--mat-badge-large-size-container-offset:-14px 0;--mat-badge-container-overlap-offset:-11px;--mat-badge-small-size-container-overlap-offset:-8px;--mat-badge-large-size-container-overlap-offset:-14px;--mat-badge-container-padding:0;--mat-badge-small-size-container-padding:0;--mat-badge-large-size-container-padding:0}html{--mat-badge-background-color:#7b1fa2;--mat-badge-text-color:white;--mat-badge-disabled-state-background-color:#6e6e6e;--mat-badge-disabled-state-text-color:rgba(255, 255, 255, .5)}.mat-badge-accent{--mat-badge-background-color:#69f0ae;--mat-badge-text-color:rgba(0, 0, 0, .87)}.mat-badge-warn{--mat-badge-background-color:#f44336;--mat-badge-text-color:white}html{--mat-badge-text-font:Roboto, sans-serif;--mat-badge-text-size:12px;--mat-badge-text-weight:600;--mat-badge-small-size-text-size:9px;--mat-badge-large-size-text-size:24px}html{--mat-bottom-sheet-container-shape:4px}html{--mat-bottom-sheet-container-text-color:white;--mat-bottom-sheet-container-background-color:#424242}html{--mat-bottom-sheet-container-text-font:Roboto, sans-serif;--mat-bottom-sheet-container-text-line-height:20px;--mat-bottom-sheet-container-text-size:14px;--mat-bottom-sheet-container-text-tracking:.0178571429em;--mat-bottom-sheet-container-text-weight:400}html{--mat-legacy-button-toggle-height:36px;--mat-legacy-button-toggle-shape:2px;--mat-legacy-button-toggle-focus-state-layer-opacity:1;--mat-standard-button-toggle-shape:4px;--mat-standard-button-toggle-hover-state-layer-opacity:.04;--mat-standard-button-toggle-focus-state-layer-opacity:.12}html{--mat-legacy-button-toggle-text-color:rgba(255, 255, 255, .5);--mat-legacy-button-toggle-state-layer-color:rgba(255, 255, 255, .12);--mat-legacy-button-toggle-selected-state-text-color:rgba(255, 255, 255, .7);--mat-legacy-button-toggle-selected-state-background-color:#212121;--mat-legacy-button-toggle-disabled-state-text-color:rgba(255, 255, 255, .3);--mat-legacy-button-toggle-disabled-state-background-color:black;--mat-legacy-button-toggle-disabled-selected-state-background-color:#424242;--mat-standard-button-toggle-text-color:white;--mat-standard-button-toggle-background-color:#424242;--mat-standard-button-toggle-state-layer-color:white;--mat-standard-button-toggle-selected-state-background-color:#212121;--mat-standard-button-toggle-selected-state-text-color:white;--mat-standard-button-toggle-disabled-state-text-color:rgba(255, 255, 255, .3);--mat-standard-button-toggle-disabled-state-background-color:#424242;--mat-standard-button-toggle-disabled-selected-state-text-color:white;--mat-standard-button-toggle-disabled-selected-state-background-color:#424242;--mat-standard-button-toggle-divider-color:#595959}html{--mat-standard-button-toggle-height:48px}html{--mat-legacy-button-toggle-label-text-font:Roboto, sans-serif;--mat-legacy-button-toggle-label-text-line-height:24px;--mat-legacy-button-toggle-label-text-size:16px;--mat-legacy-button-toggle-label-text-tracking:.03125em;--mat-legacy-button-toggle-label-text-weight:400;--mat-standard-button-toggle-label-text-font:Roboto, sans-serif;--mat-standard-button-toggle-label-text-line-height:24px;--mat-standard-button-toggle-label-text-size:16px;--mat-standard-button-toggle-label-text-tracking:.03125em;--mat-standard-button-toggle-label-text-weight:400}html{--mat-datepicker-calendar-container-shape:4px;--mat-datepicker-calendar-container-touch-shape:4px;--mat-datepicker-calendar-container-elevation-shadow:0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mat-datepicker-calendar-container-touch-elevation-shadow:0px 11px 15px -7px rgba(0, 0, 0, .2), 0px 24px 38px 3px rgba(0, 0, 0, .14), 0px 9px 46px 8px rgba(0, 0, 0, .12)}html{--mat-datepicker-calendar-date-selected-state-text-color:white;--mat-datepicker-calendar-date-selected-state-background-color:#7b1fa2;--mat-datepicker-calendar-date-selected-disabled-state-background-color:rgba(123, 31, 162, .4);--mat-datepicker-calendar-date-today-selected-state-outline-color:white;--mat-datepicker-calendar-date-focus-state-background-color:rgba(123, 31, 162, .3);--mat-datepicker-calendar-date-hover-state-background-color:rgba(123, 31, 162, .3);--mat-datepicker-toggle-active-state-icon-color:#7b1fa2;--mat-datepicker-calendar-date-in-range-state-background-color:rgba(123, 31, 162, .2);--mat-datepicker-calendar-date-in-comparison-range-state-background-color:rgba(249, 171, 0, .2);--mat-datepicker-calendar-date-in-overlap-range-state-background-color:#a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color:#46a35e;--mat-datepicker-toggle-icon-color:white;--mat-datepicker-calendar-body-label-text-color:rgba(255, 255, 255, .7);--mat-datepicker-calendar-period-button-text-color:white;--mat-datepicker-calendar-period-button-icon-color:white;--mat-datepicker-calendar-navigation-button-icon-color:white;--mat-datepicker-calendar-header-divider-color:rgba(255, 255, 255, .12);--mat-datepicker-calendar-header-text-color:rgba(255, 255, 255, .7);--mat-datepicker-calendar-date-today-outline-color:rgba(255, 255, 255, .5);--mat-datepicker-calendar-date-today-disabled-state-outline-color:rgba(255, 255, 255, .3);--mat-datepicker-calendar-date-text-color:white;--mat-datepicker-calendar-date-outline-color:transparent;--mat-datepicker-calendar-date-disabled-state-text-color:rgba(255, 255, 255, .5);--mat-datepicker-calendar-date-preview-state-outline-color:rgba(255, 255, 255, .24);--mat-datepicker-range-input-separator-color:white;--mat-datepicker-range-input-disabled-state-separator-color:rgba(255, 255, 255, .5);--mat-datepicker-range-input-disabled-state-text-color:rgba(255, 255, 255, .5);--mat-datepicker-calendar-container-background-color:#424242;--mat-datepicker-calendar-container-text-color:white}.mat-datepicker-content.mat-accent{--mat-datepicker-calendar-date-selected-state-text-color:rgba(0, 0, 0, .87);--mat-datepicker-calendar-date-selected-state-background-color:#69f0ae;--mat-datepicker-calendar-date-selected-disabled-state-background-color:rgba(105, 240, 174, .4);--mat-datepicker-calendar-date-today-selected-state-outline-color:rgba(0, 0, 0, .87);--mat-datepicker-calendar-date-focus-state-background-color:rgba(105, 240, 174, .3);--mat-datepicker-calendar-date-hover-state-background-color:rgba(105, 240, 174, .3);--mat-datepicker-calendar-date-in-range-state-background-color:rgba(105, 240, 174, .2);--mat-datepicker-calendar-date-in-comparison-range-state-background-color:rgba(249, 171, 0, .2);--mat-datepicker-calendar-date-in-overlap-range-state-background-color:#a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color:#46a35e}.mat-datepicker-content.mat-warn{--mat-datepicker-calendar-date-selected-state-text-color:white;--mat-datepicker-calendar-date-selected-state-background-color:#f44336;--mat-datepicker-calendar-date-selected-disabled-state-background-color:rgba(244, 67, 54, .4);--mat-datepicker-calendar-date-today-selected-state-outline-color:white;--mat-datepicker-calendar-date-focus-state-background-color:rgba(244, 67, 54, .3);--mat-datepicker-calendar-date-hover-state-background-color:rgba(244, 67, 54, .3);--mat-datepicker-calendar-date-in-range-state-background-color:rgba(244, 67, 54, .2);--mat-datepicker-calendar-date-in-comparison-range-state-background-color:rgba(249, 171, 0, .2);--mat-datepicker-calendar-date-in-overlap-range-state-background-color:#a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color:#46a35e}.mat-datepicker-toggle-active.mat-accent{--mat-datepicker-toggle-active-state-icon-color:#69f0ae}.mat-datepicker-toggle-active.mat-warn{--mat-datepicker-toggle-active-state-icon-color:#f44336}.mat-calendar-controls{--mat-icon-button-touch-target-display:none}.mat-calendar-controls .mat-mdc-icon-button.mat-mdc-button-base{--mdc-icon-button-state-layer-size:40px;width:var(--mdc-icon-button-state-layer-size);height:var(--mdc-icon-button-state-layer-size);padding:8px}html{--mat-datepicker-calendar-text-font:Roboto, sans-serif;--mat-datepicker-calendar-text-size:13px;--mat-datepicker-calendar-body-label-text-size:14px;--mat-datepicker-calendar-body-label-text-weight:500;--mat-datepicker-calendar-period-button-text-size:14px;--mat-datepicker-calendar-period-button-text-weight:500;--mat-datepicker-calendar-header-text-size:11px;--mat-datepicker-calendar-header-text-weight:400}html{--mat-divider-width:1px}html{--mat-divider-color:rgba(255, 255, 255, .12)}html{--mat-expansion-container-shape:4px;--mat-expansion-legacy-header-indicator-display:inline-block;--mat-expansion-header-indicator-display:none}html{--mat-expansion-container-background-color:#424242;--mat-expansion-container-text-color:white;--mat-expansion-actions-divider-color:rgba(255, 255, 255, .12);--mat-expansion-header-hover-state-layer-color:rgba(255, 255, 255, .04);--mat-expansion-header-focus-state-layer-color:rgba(255, 255, 255, .04);--mat-expansion-header-disabled-state-text-color:rgba(255, 255, 255, .3);--mat-expansion-header-text-color:white;--mat-expansion-header-description-color:rgba(255, 255, 255, .7);--mat-expansion-header-indicator-color:rgba(255, 255, 255, .7)}html{--mat-expansion-header-collapsed-state-height:48px;--mat-expansion-header-expanded-state-height:64px}html{--mat-expansion-header-text-font:Roboto, sans-serif;--mat-expansion-header-text-size:14px;--mat-expansion-header-text-weight:500;--mat-expansion-header-text-line-height:inherit;--mat-expansion-header-text-tracking:inherit;--mat-expansion-container-text-font:Roboto, sans-serif;--mat-expansion-container-text-line-height:20px;--mat-expansion-container-text-size:14px;--mat-expansion-container-text-tracking:.0178571429em;--mat-expansion-container-text-weight:400}html{--mat-grid-list-tile-header-primary-text-size:14px;--mat-grid-list-tile-header-secondary-text-size:12px;--mat-grid-list-tile-footer-primary-text-size:14px;--mat-grid-list-tile-footer-secondary-text-size:12px}html{--mat-icon-color:inherit}.mat-icon.mat-primary{--mat-icon-color:#7b1fa2}.mat-icon.mat-accent{--mat-icon-color:#69f0ae}.mat-icon.mat-warn{--mat-icon-color:#f44336}html{--mat-sidenav-container-shape:0;--mat-sidenav-container-elevation-shadow:0px 8px 10px -5px rgba(0, 0, 0, .2), 0px 16px 24px 2px rgba(0, 0, 0, .14), 0px 6px 30px 5px rgba(0, 0, 0, .12);--mat-sidenav-container-width:auto}html{--mat-sidenav-container-divider-color:rgba(255, 255, 255, .12);--mat-sidenav-container-background-color:#424242;--mat-sidenav-container-text-color:white;--mat-sidenav-content-background-color:#303030;--mat-sidenav-content-text-color:white;--mat-sidenav-scrim-color:rgba(189, 189, 189, .6)}html{--mat-stepper-header-icon-foreground-color:white;--mat-stepper-header-selected-state-icon-background-color:#7b1fa2;--mat-stepper-header-selected-state-icon-foreground-color:white;--mat-stepper-header-done-state-icon-background-color:#7b1fa2;--mat-stepper-header-done-state-icon-foreground-color:white;--mat-stepper-header-edit-state-icon-background-color:#7b1fa2;--mat-stepper-header-edit-state-icon-foreground-color:white;--mat-stepper-container-color:#424242;--mat-stepper-line-color:rgba(255, 255, 255, .12);--mat-stepper-header-hover-state-layer-color:rgba(255, 255, 255, .04);--mat-stepper-header-focus-state-layer-color:rgba(255, 255, 255, .04);--mat-stepper-header-label-text-color:rgba(255, 255, 255, .7);--mat-stepper-header-optional-label-text-color:rgba(255, 255, 255, .7);--mat-stepper-header-selected-state-label-text-color:white;--mat-stepper-header-error-state-label-text-color:#f44336;--mat-stepper-header-icon-background-color:rgba(255, 255, 255, .7);--mat-stepper-header-error-state-icon-foreground-color:#f44336;--mat-stepper-header-error-state-icon-background-color:transparent}html .mat-step-header.mat-accent{--mat-stepper-header-icon-foreground-color:rgba(0, 0, 0, .87);--mat-stepper-header-selected-state-icon-background-color:#69f0ae;--mat-stepper-header-selected-state-icon-foreground-color:rgba(0, 0, 0, .87);--mat-stepper-header-done-state-icon-background-color:#69f0ae;--mat-stepper-header-done-state-icon-foreground-color:rgba(0, 0, 0, .87);--mat-stepper-header-edit-state-icon-background-color:#69f0ae;--mat-stepper-header-edit-state-icon-foreground-color:rgba(0, 0, 0, .87)}html .mat-step-header.mat-warn{--mat-stepper-header-icon-foreground-color:white;--mat-stepper-header-selected-state-icon-background-color:#f44336;--mat-stepper-header-selected-state-icon-foreground-color:white;--mat-stepper-header-done-state-icon-background-color:#f44336;--mat-stepper-header-done-state-icon-foreground-color:white;--mat-stepper-header-edit-state-icon-background-color:#f44336;--mat-stepper-header-edit-state-icon-foreground-color:white}html{--mat-stepper-header-height:72px}html{--mat-stepper-container-text-font:Roboto, sans-serif;--mat-stepper-header-label-text-font:Roboto, sans-serif;--mat-stepper-header-label-text-size:14px;--mat-stepper-header-label-text-weight:400;--mat-stepper-header-error-state-label-text-size:16px;--mat-stepper-header-selected-state-label-text-size:16px;--mat-stepper-header-selected-state-label-text-weight:400}html{--mat-sort-arrow-color:#c6c6c6}html{--mat-toolbar-container-background-color:#212121;--mat-toolbar-container-text-color:white}.mat-toolbar.mat-primary{--mat-toolbar-container-background-color:#7b1fa2;--mat-toolbar-container-text-color:white}.mat-toolbar.mat-accent{--mat-toolbar-container-background-color:#69f0ae;--mat-toolbar-container-text-color:rgba(0, 0, 0, .87)}.mat-toolbar.mat-warn{--mat-toolbar-container-background-color:#f44336;--mat-toolbar-container-text-color:white}html{--mat-toolbar-standard-height:64px;--mat-toolbar-mobile-height:56px}html{--mat-toolbar-title-text-font:Roboto, sans-serif;--mat-toolbar-title-text-line-height:32px;--mat-toolbar-title-text-size:20px;--mat-toolbar-title-text-tracking:.0125em;--mat-toolbar-title-text-weight:500}html{--mat-tree-container-background-color:#424242;--mat-tree-node-text-color:white}html{--mat-tree-node-min-height:48px}html{--mat-tree-node-text-font:Roboto, sans-serif;--mat-tree-node-text-size:14px;--mat-tree-node-text-weight:400}.mat-h1,.mat-headline-5,.mat-typography .mat-h1,.mat-typography .mat-headline-5,.mat-typography h1{font:400 24px/32px Roboto,sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h2,.mat-headline-6,.mat-typography .mat-h2,.mat-typography .mat-headline-6,.mat-typography h2{font:500 20px/32px Roboto,sans-serif;letter-spacing:.0125em;margin:0 0 16px}.mat-h3,.mat-subtitle-1,.mat-typography .mat-h3,.mat-typography .mat-subtitle-1,.mat-typography h3{font:400 16px/28px Roboto,sans-serif;letter-spacing:.009375em;margin:0 0 16px}.mat-h4,.mat-body-1,.mat-typography .mat-h4,.mat-typography .mat-body-1,.mat-typography h4{font:400 16px/24px Roboto,sans-serif;letter-spacing:.03125em;margin:0 0 16px}.mat-h5,.mat-typography .mat-h5,.mat-typography h5{font:400 11.62px/20px Roboto,sans-serif;margin:0 0 12px}.mat-h6,.mat-typography .mat-h6,.mat-typography h6{font:400 9.38px/20px Roboto,sans-serif;margin:0 0 12px}.mat-body-strong,.mat-subtitle-2,.mat-typography .mat-body-strong,.mat-typography .mat-subtitle-2{font:500 14px/22px Roboto,sans-serif;letter-spacing:.0071428571em}.mat-body,.mat-body-2,.mat-typography .mat-body,.mat-typography .mat-body-2,.mat-typography{font:400 14px/20px Roboto,sans-serif;letter-spacing:.0178571429em}.mat-body p,.mat-body-2 p,.mat-typography .mat-body p,.mat-typography .mat-body-2 p,.mat-typography p{margin:0 0 12px}.mat-small,.mat-caption,.mat-typography .mat-small,.mat-typography .mat-caption{font:400 12px/20px Roboto,sans-serif;letter-spacing:.0333333333em}.mat-headline-1,.mat-typography .mat-headline-1{font:300 96px/96px Roboto,sans-serif;letter-spacing:-.015625em;margin:0 0 56px}.mat-headline-2,.mat-typography .mat-headline-2{font:300 60px/60px Roboto,sans-serif;letter-spacing:-.0083333333em;margin:0 0 64px}.mat-headline-3,.mat-typography .mat-headline-3{font:400 48px/50px Roboto,sans-serif;letter-spacing:normal;margin:0 0 64px}.mat-headline-4,.mat-typography .mat-headline-4{font:400 34px/40px Roboto,sans-serif;letter-spacing:.0073529412em;margin:0 0 64px}body{margin:0;overflow:hidden}html,body{height:100%}body{margin:0;font-family:Pretendard Variable,Pretendard,-apple-system,BlinkMacSystemFont,system-ui,Roboto,Helvetica Neue,Segoe UI,Apple SD Gothic Neo,Noto Sans KR,Malgun Gothic,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,sans-serif}p,h1,h2,h3,h4,h5,h6{margin:0}ul,ol{margin:0;padding-left:20px}li{margin:0}.lower-canvas{border-radius:25px!important} diff --git a/back-end/src/test/java/kr/co/ssalon/domain/repository/MeetingRepositoryTest.java b/back-end/src/test/java/kr/co/ssalon/domain/repository/MeetingRepositoryTest.java index 279feae0..92271808 100644 --- a/back-end/src/test/java/kr/co/ssalon/domain/repository/MeetingRepositoryTest.java +++ b/back-end/src/test/java/kr/co/ssalon/domain/repository/MeetingRepositoryTest.java @@ -4,17 +4,29 @@ import kr.co.ssalon.domain.entity.Meeting; import kr.co.ssalon.domain.entity.Member; import kr.co.ssalon.domain.entity.Region; +<<<<<<< HEAD +import kr.co.ssalon.domain.service.MeetingService; +======= +>>>>>>> develop import kr.co.ssalon.web.dto.MeetingSearchCondition; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.jdbc.AutoConfigureTestDatabase; import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest; +<<<<<<< HEAD +import org.springframework.boot.test.mock.mockito.MockBean; +======= +>>>>>>> develop import org.springframework.data.domain.Page; import org.springframework.data.domain.PageRequest; import org.springframework.security.core.Authentication; import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.security.test.context.support.WithMockUser; +<<<<<<< HEAD +import org.springframework.test.web.servlet.MockMvc; +======= +>>>>>>> develop import org.springframework.transaction.annotation.Transactional; @@ -28,6 +40,18 @@ @AutoConfigureTestDatabase(replace = AutoConfigureTestDatabase.Replace.NONE) public class MeetingRepositoryTest { +<<<<<<< HEAD + @MockBean + private MeetingRepository meetingRepository; + + @MockBean + private MemberRepository memberRepository; + + @MockBean + private CategoryRepository categoryRepository; + +/* +======= @Autowired MeetingRepository meetingRepository; @@ -37,6 +61,7 @@ public class MeetingRepositoryTest { @Autowired CategoryRepository categoryRepository; +>>>>>>> develop @Test @DisplayName("MeetingRepository.searchMoims 메소드 테스트") @WithMockUser(username = "test") @@ -82,4 +107,10 @@ public class MeetingRepositoryTest { assertThat(result.getContent()).hasSize(1); assertThat(result.getContent().get(0).getCategory().getName()).isEqualTo("운동"); } +<<<<<<< HEAD + + */ +} +======= } +>>>>>>> develop diff --git a/back-end/src/test/java/kr/co/ssalon/domain/service/MeetingServiceIntegrationTest.java b/back-end/src/test/java/kr/co/ssalon/domain/service/MeetingServiceIntegrationTest.java index ede4d42c..463e0816 100644 --- a/back-end/src/test/java/kr/co/ssalon/domain/service/MeetingServiceIntegrationTest.java +++ b/back-end/src/test/java/kr/co/ssalon/domain/service/MeetingServiceIntegrationTest.java @@ -212,6 +212,10 @@ public void set() { @Test public void 모임수정() throws Exception { +<<<<<<< HEAD + /* +======= +>>>>>>> develop //given String creatorName = "creator"; memberService.register("creator", "create@test.com", role); @@ -241,6 +245,11 @@ public void set() { assertThrows(BadRequestException.class,()->{ meetingService.editMoim("notCreatorName", moimId, meetingDomainDTO); }); +<<<<<<< HEAD + + */ +======= +>>>>>>> develop } @Test public void 모임삭제() throws Exception{ diff --git a/back-end/src/test/java/kr/co/ssalon/domain/service/MeetingServiceTest.java b/back-end/src/test/java/kr/co/ssalon/domain/service/MeetingServiceTest.java index 776d511a..bf702742 100644 --- a/back-end/src/test/java/kr/co/ssalon/domain/service/MeetingServiceTest.java +++ b/back-end/src/test/java/kr/co/ssalon/domain/service/MeetingServiceTest.java @@ -234,6 +234,10 @@ public void getUsernameAndEmailAndRole() { @DisplayName("MeetingService.editMoim 메소드 테스트") @WithCustomMockUser(username = "username", email = "email@email.com", role = "ROLE_USER") public void 모임수정() throws Exception { +<<<<<<< HEAD + /* +======= +>>>>>>> develop //given Member member = Member.createMember(username, email, role); Category category = mock(Category.class); @@ -262,6 +266,11 @@ public void getUsernameAndEmailAndRole() { //then assertThat(moimId).isEqualTo(meeting.getId()); +<<<<<<< HEAD + + */ +======= +>>>>>>> develop } @Test diff --git a/back-end/src/test/java/kr/co/ssalon/web/controller/AttendanceControllerTest.java b/back-end/src/test/java/kr/co/ssalon/web/controller/AttendanceControllerTest.java new file mode 100644 index 00000000..144154a8 --- /dev/null +++ b/back-end/src/test/java/kr/co/ssalon/web/controller/AttendanceControllerTest.java @@ -0,0 +1,70 @@ +package kr.co.ssalon.web.controller; + +import kr.co.ssalon.domain.service.AttendanceService; +import kr.co.ssalon.web.controller.annotation.WithCustomMockUser; +import kr.co.ssalon.web.dto.AttendanceDTO; +import org.apache.coyote.BadRequestException; +import org.junit.jupiter.api.DisplayName; +import org.junit.jupiter.api.Test; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest; +import org.springframework.boot.test.mock.mockito.MockBean; +import org.springframework.test.web.servlet.MockMvc; +import org.springframework.test.web.servlet.ResultActions; +import org.springframework.test.web.servlet.request.MockMvcRequestBuilders; + +import java.util.ArrayList; +import java.util.List; + +import static org.springframework.security.test.web.servlet.request.SecurityMockMvcRequestPostProcessors.csrf; +import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; + + +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.when; + +@WebMvcTest(AttendanceController.class) +public class AttendanceControllerTest { + + @MockBean + private AttendanceService attendanceService; + + @Autowired + private MockMvc mockMvc; + @Autowired + private AttendanceController attendanceController; + + @Test + @DisplayName("모임 출석자 목록 조회 API(GET /api/moims/{moimId}/attendance) 테스트") + @WithCustomMockUser(username = "test") + public void 모임출석자목록조회API() throws Exception { + // given + + Long moimId = 1L; + + // when + ResultActions resultActions = mockMvc.perform(MockMvcRequestBuilders.get("/api/moims/"+moimId+"/attendance").with(csrf())); + + // then + resultActions.andExpect(status().isOk()); + + } + + @Test + @DisplayName("출석 상태 변경 API(POST /api/moims/{moimId}/attendance/{userId}/{attendance}) 테스트") + @WithCustomMockUser(username = "test") + public void 출석상태변경API() throws Exception { + // given + Long moimId = 1L; + Long userId = 2L; + Boolean attendance = true; + + when(attendanceService.changeAttendance(moimId, userId, attendance)).thenReturn(attendance); + // when + ResultActions resultActions = mockMvc.perform(MockMvcRequestBuilders.post("/api/moims/"+moimId+"/attendance/"+userId+"/"+attendance).with(csrf())); + + // then + resultActions.andExpect(status().isOk()); + } + +} \ No newline at end of file diff --git a/back-end/src/test/java/kr/co/ssalon/web/controller/MeetingControllerTest.java b/back-end/src/test/java/kr/co/ssalon/web/controller/MeetingControllerTest.java index 8ecbe228..3a7dcc19 100644 --- a/back-end/src/test/java/kr/co/ssalon/web/controller/MeetingControllerTest.java +++ b/back-end/src/test/java/kr/co/ssalon/web/controller/MeetingControllerTest.java @@ -1,14 +1,30 @@ package kr.co.ssalon.web.controller; +<<<<<<< HEAD +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.jayway.jsonpath.JsonPath; +import io.swagger.v3.oas.annotations.responses.ApiResponses; +import kr.co.ssalon.config.JacksonConfig; +import kr.co.ssalon.domain.dto.MeetingDomainDTO; +======= +>>>>>>> develop import kr.co.ssalon.domain.entity.*; import kr.co.ssalon.domain.repository.CategoryRepository; import kr.co.ssalon.domain.repository.MeetingRepository; import kr.co.ssalon.domain.service.CategoryService; import kr.co.ssalon.domain.service.MeetingService; import kr.co.ssalon.domain.service.MemberService; +<<<<<<< HEAD +import kr.co.ssalon.domain.service.RecommendService; +import kr.co.ssalon.oauth2.CustomOAuth2Member; +import kr.co.ssalon.web.controller.annotation.WithCustomMockUser; +import kr.co.ssalon.web.dto.*; +======= import kr.co.ssalon.oauth2.CustomOAuth2Member; import kr.co.ssalon.web.controller.annotation.WithCustomMockUser; import kr.co.ssalon.web.dto.MeetingSearchCondition; +>>>>>>> develop import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; @@ -16,7 +32,13 @@ import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.mock.mockito.MockBean; +<<<<<<< HEAD +import org.springframework.context.annotation.Import; +import org.springframework.data.domain.*; +import org.springframework.http.converter.HttpMessageNotWritableException; +======= import org.springframework.data.domain.*; +>>>>>>> develop import org.springframework.security.core.Authentication; import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.security.core.userdetails.User; @@ -24,6 +46,26 @@ import org.springframework.test.context.ActiveProfiles; import org.springframework.test.web.servlet.MockMvc; import org.springframework.test.web.servlet.ResultActions; +<<<<<<< HEAD +import org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder; +import org.springframework.test.web.servlet.request.MockMvcRequestBuilders; + +import java.time.LocalDate; +import java.time.LocalDateTime; +import java.time.LocalTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.List; +import java.util.stream.Collectors; + +import static org.hamcrest.Matchers.hasSize; +import static org.hamcrest.Matchers.is; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.when; +import static org.springframework.security.test.web.servlet.request.SecurityMockMvcRequestPostProcessors.csrf; +======= import org.springframework.test.web.servlet.request.MockMvcRequestBuilders; import java.util.Collections; @@ -32,11 +74,16 @@ import static org.hamcrest.Matchers.is; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; +>>>>>>> develop import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.log; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; @WebMvcTest(MeetingController.class) +<<<<<<< HEAD +@Import(JacksonConfig.class) +======= +>>>>>>> develop public class MeetingControllerTest { @MockBean @@ -54,9 +101,50 @@ public class MeetingControllerTest { @MockBean private CategoryService categoryService; +<<<<<<< HEAD + @MockBean + private RecommendService recommendService; + @Autowired private MockMvc mockMvc; + private final ObjectMapper objectMapper = new ObjectMapper(); + + @Test + @DisplayName("모욈 참가 API(POST /api/moims/{moimId}/users) 테스트") + @WithCustomMockUser(username = "test") + public void 모임참가API() throws Exception { + // given + Long moimId = 1L; + + Meeting meeting = mock(Meeting.class); + + Category category = mock(Category.class); + when(meeting.getCategory()).thenReturn(category); + + Member creator = mock(Member.class); + when(meeting.getCreator()).thenReturn(creator); + + when(meetingService.findMeeting(moimId)).thenReturn(meeting); + + // when + ResultActions resultActions = mockMvc.perform(MockMvcRequestBuilders.post("/api/moims/"+moimId+"/users").with(csrf())); + + // then + resultActions.andExpect(status().isOk()) + .andExpect(jsonPath("$.id", is(meeting.getId().intValue()))) + .andExpect(jsonPath("$.categoryId", is(meeting.getCategory().getId().intValue()))) + .andExpect(jsonPath("$.creatorId", is(meeting.getCreator().getId().intValue()))) + ; + } + + + +======= + @Autowired + private MockMvc mockMvc; + +>>>>>>> develop @Test @DisplayName("모임 목록 조회 API(GET /api/moims) 테스트") @WithCustomMockUser(username = "test") @@ -110,4 +198,309 @@ public class MeetingControllerTest { resultActions.andExpect(status().isOk()) .andExpect(jsonPath("$.content[0].categoryName",is("운동"))); } +<<<<<<< HEAD + + @Test + @DisplayName("모임 개설 API(POST /api/moims) 테스트") + @WithCustomMockUser(username = "test") + public void 모임개설API() throws Exception { + + + // give + String username = "test"; + Member member = mock(Member.class); + + List meetingPictureUrls = Arrays.asList("testMeetingPictureUrl1.com", "testMeetingPictureUrl2.com"); + String title = "testTitle"; + String description = "testDescription"; + String location = "testLocation"; + Integer capacity = 10; + LocalDateTime meetingDate = LocalDateTime.now(); + Integer payment = 1000; + Boolean isSharable = false; + + Long moimId = 1L; + + // Category 객체 생성 + Category category = Category.builder() + .id(1L) + .name("testCategory") + .description("testCategoryDescription") + .imageUrl("testCategoryImageUrl") + .build(); + + MeetingDomainDTO meetingDomainDTO = MeetingDomainDTO.builder() + .category(category.getName()) + .meetingPictureUrls(meetingPictureUrls) + .title(title) + .description(description) + .location(location) + .capacity(capacity) + .meetingDate(meetingDate) + .payment(payment) + .isSharable(isSharable) + .build(); + + Meeting meeting = Meeting.createMeeting( + category, + member, + meetingDomainDTO.getMeetingPictureUrls(), + meetingDomainDTO.getTitle(), + meetingDomainDTO.getDescription(), + meetingDomainDTO.getLocation(), + meetingDomainDTO.getCapacity(), + meetingDomainDTO.getPayment(), + meetingDomainDTO.getMeetingDate(), + meetingDomainDTO.getIsSharable() + ); + + when(meetingService.createMoim(username, meetingDomainDTO)).thenReturn(moimId); + when(meetingService.findMeeting(moimId)).thenReturn(meeting); + + // When + MockHttpServletRequestBuilder requestBuilder = MockMvcRequestBuilders.post("/api/moims") + .contentType("application/json") // Set the content type to application/json + .content(objectMapper.writeValueAsString(meetingDomainDTO)) + .with(csrf()); + + ResultActions resultActions = mockMvc.perform(requestBuilder); + + // Then + resultActions.andExpect(status().isOk()) + .andExpect(jsonPath("$.categoryId", is(category.getId().intValue()))) + .andExpect(jsonPath("$.meetingPictureUrls", is(meetingPictureUrls))) + .andExpect(jsonPath("$.title", is(title))) + .andExpect(jsonPath("$.description", is(description))) + .andExpect(jsonPath("$.location", is(location))) + .andExpect(jsonPath("$.capacity", is(capacity))) + .andExpect(jsonPath("$.meetingDate", is(meetingDate.toString()))) + ; + } + + @Test + @DisplayName("모욈 정보 조회 API(GET /api/moims/{moimId}) 테스트") + @WithCustomMockUser(username = "test") + public void 모임정보조회API() throws Exception { + // given + Long moimId = 1L; + + Meeting meeting = mock(Meeting.class); + when(meeting.getId()).thenReturn(moimId); + + Category category = mock(Category.class); + when(meeting.getCategory()).thenReturn(category); + + Member creator = mock(Member.class); + when(meeting.getCreator()).thenReturn(creator); + + when(meetingService.findMeeting(moimId)).thenReturn(meeting); + + // when + ResultActions resultActions = mockMvc.perform(MockMvcRequestBuilders.get("/api/moims/"+moimId).with(csrf())); + + // then + resultActions.andExpect(status().isOk()); + } + + @Test + @DisplayName("모욈 정보 수정 API(PATCH /api/moims/{moimId}) 테스트") + @WithCustomMockUser(username = "test") + public void 모임정보수정API() throws Exception { + /* + // given + Long moimId = 1L; + String username = "test";; + + List meetingPictureUrls = Arrays.asList("testMeetingPictureUrl1.com", "testMeetingPictureUrl2.com"); + String title = "testTitle"; + String description = "testDescription"; + String location = "testLocation"; + Integer capacity = 10; + LocalDateTime meetingDate = LocalDateTime.now(); + Integer payment = 1000; + Boolean isSharable = false; + + // Category 객체 생성 + Category category = Category.builder() + .id(1L) + .name("testCategory") + .description("testCategoryDescription") + .imageUrl("testCategoryImageUrl") + .build(); + + MeetingDomainDTO meetingDomainDTO = MeetingDomainDTO.builder() + .category(category.getName()) + .meetingPictureUrls(meetingPictureUrls) + .title(title) + .description(description) + .location(location) + .capacity(capacity) + .meetingDate(meetingDate) + .payment(payment) + .isSharable(isSharable) + .build(); + + when(meetingService.editMoim(username, moimId, meetingDomainDTO)).thenReturn(moimId); + + // When + MockHttpServletRequestBuilder requestBuilder = MockMvcRequestBuilders.patch("/api/moims/"+moimId) + .contentType("application/json") // Set the content type to application/json + .content(objectMapper.writeValueAsString(meetingDomainDTO)) + .with(csrf()); + + ResultActions resultActions = mockMvc.perform(requestBuilder); + + // Then + resultActions.andExpect(status().isOk()) + .andExpect(jsonPath("$", is(moimId.intValue()))); + + */ + } + + @Test + @DisplayName("모욈 해산 API(DELETE /api/moims/{moimId}) 테스트") + @WithCustomMockUser(username = "test") + public void 모임해산API() throws Exception { + // given + Long moimId = 1L; + String username = "test"; + + when(meetingService.deleteMoim(username, moimId)).thenReturn(moimId); + + // When + MockHttpServletRequestBuilder requestBuilder = MockMvcRequestBuilders.delete("/api/moims/"+moimId) + .with(csrf()); + + ResultActions resultActions = mockMvc.perform(requestBuilder); + + // Then + resultActions.andExpect(status().isOk()) + .andExpect(jsonPath("$", is(moimId.intValue()))); + ; + } + + @Test + @DisplayName("모욈 참가자 목록 조회 API(GET /api/moims/{moimId}/users) 테스트") + @WithCustomMockUser(username = "test") + public void 모임참가자목록조회API() throws Exception { + // given + Long moimId = 1L; + + List participantsDto = new ArrayList<>(); + + ParticipantDTO participantDTO1 = ParticipantDTO.builder() + .userId(1L) + .nickname("testNickname1") + .profilePictureUrl("testProfilePictureUrl1") + .attendance(true) + .build(); + + ParticipantDTO participantDTO2 = ParticipantDTO.builder() + .userId(2L) + .nickname("testNickname2") + .profilePictureUrl("testProfilePictureUrl2") + .attendance(false) + .build(); + + participantsDto.add(participantDTO1); + participantsDto.add(participantDTO2); + + when(meetingService.getUsers(moimId)).thenReturn(participantsDto); + + // When + MockHttpServletRequestBuilder requestBuilder = MockMvcRequestBuilders.get("/api/moims/"+moimId+"/users") + .with(csrf()); + + ResultActions resultActions = mockMvc.perform(requestBuilder); + + // Then + resultActions.andExpect(status().isOk()) + .andExpect(jsonPath("$[0].userId", is(participantDTO1.getUserId().intValue()))); + ; + } + + @Test + @DisplayName("모임 강퇴 및 탈퇴 API(DELETE /api/moims/{moimId}/users/{userId}) 테스트") + @WithCustomMockUser(username = "test") + public void 모임강퇴및탈퇴API() throws Exception { + // Given + String username = "test"; + Long moimId = 1L; + Long userId = 2L; + String reason = "testReason"; + + Member member = mock(Member.class); + Meeting meeting = mock(Meeting.class); + String type = "강퇴"; + + MeetingOutReasonDTO meetingOutReasonDTO = new MeetingOutReasonDTO(reason); + MeetingOut meetingOut = MeetingOut.createMeetingOutReason(member, meeting, type, reason); + when(meetingService.deleteUserFromMoim(username, moimId, userId, reason)).thenReturn(meetingOut); + + // When + MockHttpServletRequestBuilder requestBuilder = MockMvcRequestBuilders.delete("/api/moims/"+moimId+"/users/"+userId) + .contentType("application/json") // Set the content type to application/json + .content(objectMapper.writeValueAsString(meetingOutReasonDTO)) + .with(csrf()); + + ResultActions resultActions = mockMvc.perform(requestBuilder); + + // Then + resultActions.andExpect(status().isOk()) + .andExpect(jsonPath("$.type", is(type))) + .andExpect(jsonPath("$.reason", is(reason))) + ; + } + + @Test + @DisplayName("모임 개최자 검증 API(GET /api/moims/{moimId}/creator) 테스트") + @WithCustomMockUser(username = "test") + public void 모임개최자검증API() throws Exception { + // Given + String username = "test"; + Long moimId = 1L; + + when(meetingService.isCreator(username, moimId)).thenReturn(true); + + // When + MockHttpServletRequestBuilder requestBuilder = MockMvcRequestBuilders.get("/api/moims/"+moimId+"/creator") + .with(csrf()); + + ResultActions resultActions = mockMvc.perform(requestBuilder); + + // Then + resultActions.andExpect(status().isOk()) + .andExpect(jsonPath("$", is(true))) + ; + } + + @Test + @DisplayName("모임 참여자 여부 검증 API(GET /api/moims/{moimId}/participant") + @WithCustomMockUser(username = "test") + public void 모임참여자여부검증API() throws Exception { + // Given + String username = "test"; + Long moimId = 1L; + + Member member = mock(Member.class); + + when(memberService.findMember(username)).thenReturn(member); + when(meetingService.isParticipant(moimId, member)).thenReturn(true); + + // When + MockHttpServletRequestBuilder requestBuilder = MockMvcRequestBuilders.get("/api/moims/"+moimId+"/participant") + .with(csrf()); + + ResultActions resultActions = mockMvc.perform(requestBuilder); + + // Then + resultActions.andExpect(status().isOk()) + .andExpect(jsonPath("$", is(true))) + ; + } + + +} +======= } +>>>>>>> develop