├── gradle.properties ├── settings.gradle ├── .travis.yml ├── src ├── main │ ├── resources │ │ ├── application.properties │ │ ├── static │ │ │ └── resources │ │ │ │ ├── images │ │ │ │ ├── bg.jpg │ │ │ │ ├── pets.png │ │ │ │ ├── loader-large.gif │ │ │ │ ├── loader-mini.gif │ │ │ │ ├── loader-small.gif │ │ │ │ ├── loader-medium.gif │ │ │ │ ├── loader-large-inverted.gif │ │ │ │ ├── loader-medium-inverted.gif │ │ │ │ ├── loader-mini-inverted.gif │ │ │ │ └── loader-small-inverted.gif │ │ │ │ ├── fonts │ │ │ │ ├── icons.eot │ │ │ │ ├── icons.otf │ │ │ │ ├── icons.ttf │ │ │ │ ├── icons.woff │ │ │ │ ├── basic.icons.eot │ │ │ │ ├── basic.icons.ttf │ │ │ │ ├── basic.icons.woff │ │ │ │ └── basic.icons.svg │ │ │ │ └── css │ │ │ │ └── default.css │ │ └── templates │ │ │ ├── welcome.html │ │ │ ├── fragments │ │ │ ├── bodyFooter.html │ │ │ ├── bodyHeader.html │ │ │ └── headTag.html │ │ │ ├── specialities │ │ │ ├── index.html │ │ │ ├── add.html │ │ │ └── edit.html │ │ │ ├── petTypes │ │ │ ├── add.html │ │ │ ├── edit.html │ │ │ └── index.html │ │ │ ├── vets │ │ │ ├── index.html │ │ │ ├── add.html │ │ │ └── edit.html │ │ │ ├── owners │ │ │ ├── index.html │ │ │ ├── add.html │ │ │ ├── view.html │ │ │ └── edit.html │ │ │ ├── visits │ │ │ ├── add.html │ │ │ └── edit.html │ │ │ └── pets │ │ │ ├── add.html │ │ │ └── edit.html │ └── kotlin │ │ └── com │ │ └── yetanotherdevblog │ │ ├── petclinic │ │ ├── model │ │ │ ├── PetType.kt │ │ │ ├── Speciality.kt │ │ │ ├── Vet.kt │ │ │ ├── Visit.kt │ │ │ ├── Owner.kt │ │ │ └── Pet.kt │ │ ├── repositories │ │ │ ├── VetRepository.kt │ │ │ ├── OwnersRepository.kt │ │ │ ├── PetTypeRepository.kt │ │ │ ├── PetRepository.kt │ │ │ ├── VisitRepository.kt │ │ │ └── SpecialityRepository.kt │ │ ├── handlers │ │ │ ├── WelcomeHandler.kt │ │ │ ├── api │ │ │ │ ├── OwnersApiHandler.kt │ │ │ │ └── PetsApiHandler.kt │ │ │ ├── PetTypeHandler.kt │ │ │ ├── SpecialitiesHandler.kt │ │ │ ├── VetsHandler.kt │ │ │ ├── PetsHandler.kt │ │ │ ├── VisitHandler.kt │ │ │ └── OwnersHandler.kt │ │ ├── Extensions.kt │ │ └── PetClinicRoutes.kt │ │ ├── ReactiveApplication.kt │ │ └── DbInitializer.kt └── test │ └── kotlin │ └── com │ └── yetanotherdevblog │ ├── OwnersHandlerTest.kt │ ├── VariousTests.kt │ ├── ApiTest.kt │ ├── WebsiteTest.kt │ └── CollectionTests.kt ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── README.md ├── gradlew.bat └── gradlew /gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.script.lang.kotlin.accessors.auto=true -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'petclinic-spring5-kotlin' 2 | rootProject.buildFileName = 'build.gradle.kts' 3 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: java 2 | jdk: 3 | - oraclejdk8 4 | script: 5 | - ./gradlew build 6 | branches: 7 | only: 8 | - master -------------------------------------------------------------------------------- /src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | logging.level.root=INFO 2 | server.port=${PORT:8082} 3 | 4 | custom.property=Lorem Ipsum -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssouris/petclinic-spring5-reactive/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /src/main/resources/static/resources/images/bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssouris/petclinic-spring5-reactive/HEAD/src/main/resources/static/resources/images/bg.jpg -------------------------------------------------------------------------------- /src/main/resources/static/resources/fonts/icons.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssouris/petclinic-spring5-reactive/HEAD/src/main/resources/static/resources/fonts/icons.eot -------------------------------------------------------------------------------- /src/main/resources/static/resources/fonts/icons.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssouris/petclinic-spring5-reactive/HEAD/src/main/resources/static/resources/fonts/icons.otf -------------------------------------------------------------------------------- /src/main/resources/static/resources/fonts/icons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssouris/petclinic-spring5-reactive/HEAD/src/main/resources/static/resources/fonts/icons.ttf -------------------------------------------------------------------------------- /src/main/resources/static/resources/images/pets.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssouris/petclinic-spring5-reactive/HEAD/src/main/resources/static/resources/images/pets.png -------------------------------------------------------------------------------- /src/main/resources/static/resources/fonts/icons.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssouris/petclinic-spring5-reactive/HEAD/src/main/resources/static/resources/fonts/icons.woff -------------------------------------------------------------------------------- /src/main/resources/static/resources/fonts/basic.icons.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssouris/petclinic-spring5-reactive/HEAD/src/main/resources/static/resources/fonts/basic.icons.eot -------------------------------------------------------------------------------- /src/main/resources/static/resources/fonts/basic.icons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssouris/petclinic-spring5-reactive/HEAD/src/main/resources/static/resources/fonts/basic.icons.ttf -------------------------------------------------------------------------------- /src/main/resources/static/resources/fonts/basic.icons.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssouris/petclinic-spring5-reactive/HEAD/src/main/resources/static/resources/fonts/basic.icons.woff -------------------------------------------------------------------------------- /src/main/resources/static/resources/images/loader-large.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssouris/petclinic-spring5-reactive/HEAD/src/main/resources/static/resources/images/loader-large.gif -------------------------------------------------------------------------------- /src/main/resources/static/resources/images/loader-mini.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssouris/petclinic-spring5-reactive/HEAD/src/main/resources/static/resources/images/loader-mini.gif -------------------------------------------------------------------------------- /src/main/resources/static/resources/images/loader-small.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssouris/petclinic-spring5-reactive/HEAD/src/main/resources/static/resources/images/loader-small.gif -------------------------------------------------------------------------------- /src/main/resources/static/resources/images/loader-medium.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssouris/petclinic-spring5-reactive/HEAD/src/main/resources/static/resources/images/loader-medium.gif -------------------------------------------------------------------------------- /src/main/resources/static/resources/images/loader-large-inverted.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssouris/petclinic-spring5-reactive/HEAD/src/main/resources/static/resources/images/loader-large-inverted.gif -------------------------------------------------------------------------------- /src/main/resources/static/resources/images/loader-medium-inverted.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssouris/petclinic-spring5-reactive/HEAD/src/main/resources/static/resources/images/loader-medium-inverted.gif -------------------------------------------------------------------------------- /src/main/resources/static/resources/images/loader-mini-inverted.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssouris/petclinic-spring5-reactive/HEAD/src/main/resources/static/resources/images/loader-mini-inverted.gif -------------------------------------------------------------------------------- /src/main/resources/static/resources/images/loader-small-inverted.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ssouris/petclinic-spring5-reactive/HEAD/src/main/resources/static/resources/images/loader-small-inverted.gif -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | build/ 2 | .idea/ 3 | *.iml 4 | *.ipr 5 | *.iws 6 | *.log 7 | .gradle/ 8 | classes/ 9 | out/ 10 | node/ 11 | node_modules/ 12 | src/main/resources/static/css/ 13 | src/main/resources/static/images/ 14 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Jun 14 18:24:53 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.0-bin.zip -------------------------------------------------------------------------------- /src/main/kotlin/com/yetanotherdevblog/petclinic/model/PetType.kt: -------------------------------------------------------------------------------- 1 | package com.yetanotherdevblog.petclinic.model 2 | 3 | import org.springframework.data.annotation.Id 4 | import org.springframework.data.mongodb.core.mapping.Document 5 | import java.util.UUID 6 | 7 | @Document 8 | data class PetType( 9 | @Id val id:String = UUID.randomUUID().toString(), 10 | val name: String) -------------------------------------------------------------------------------- /src/main/kotlin/com/yetanotherdevblog/petclinic/repositories/VetRepository.kt: -------------------------------------------------------------------------------- 1 | package com.yetanotherdevblog.petclinic.repositories 2 | 3 | import com.yetanotherdevblog.petclinic.model.Vet 4 | import org.springframework.data.mongodb.repository.ReactiveMongoRepository 5 | import org.springframework.stereotype.Repository 6 | 7 | @Repository interface VetRepository : ReactiveMongoRepository -------------------------------------------------------------------------------- /src/main/kotlin/com/yetanotherdevblog/petclinic/model/Speciality.kt: -------------------------------------------------------------------------------- 1 | package com.yetanotherdevblog.petclinic.model 2 | 3 | import org.springframework.data.annotation.Id 4 | import org.springframework.data.mongodb.core.mapping.Document 5 | import java.util.UUID 6 | 7 | @Document 8 | data class Speciality( 9 | @Id val id: String = UUID.randomUUID().toString(), 10 | val name: String) -------------------------------------------------------------------------------- /src/main/kotlin/com/yetanotherdevblog/petclinic/repositories/OwnersRepository.kt: -------------------------------------------------------------------------------- 1 | package com.yetanotherdevblog.petclinic.repositories 2 | 3 | import com.yetanotherdevblog.petclinic.model.Owner 4 | import org.springframework.data.mongodb.repository.ReactiveMongoRepository 5 | import org.springframework.stereotype.Repository 6 | 7 | @Repository interface OwnersRepository : ReactiveMongoRepository -------------------------------------------------------------------------------- /src/main/kotlin/com/yetanotherdevblog/ReactiveApplication.kt: -------------------------------------------------------------------------------- 1 | package com.yetanotherdevblog 2 | 3 | import org.springframework.boot.SpringApplication 4 | import org.springframework.boot.autoconfigure.SpringBootApplication 5 | 6 | 7 | @SpringBootApplication 8 | class ReactiveApplication 9 | 10 | fun main(args: Array) { 11 | SpringApplication.run(ReactiveApplication::class.java, *args) 12 | } 13 | -------------------------------------------------------------------------------- /src/main/kotlin/com/yetanotherdevblog/petclinic/repositories/PetTypeRepository.kt: -------------------------------------------------------------------------------- 1 | package com.yetanotherdevblog.petclinic.repositories 2 | 3 | import com.yetanotherdevblog.petclinic.model.PetType 4 | import org.springframework.data.mongodb.repository.ReactiveMongoRepository 5 | import org.springframework.stereotype.Repository 6 | 7 | @Repository interface PetTypeRepository : ReactiveMongoRepository -------------------------------------------------------------------------------- /src/main/kotlin/com/yetanotherdevblog/petclinic/model/Vet.kt: -------------------------------------------------------------------------------- 1 | package com.yetanotherdevblog.petclinic.model 2 | 3 | import org.springframework.data.annotation.Id 4 | import org.springframework.data.mongodb.core.mapping.Document 5 | import java.util.UUID 6 | 7 | @Document 8 | data class Vet( 9 | @Id val id:String = UUID.randomUUID().toString(), 10 | val firstName: String, 11 | val lastName : String, 12 | val specialities: Set = emptySet()) 13 | -------------------------------------------------------------------------------- /src/main/kotlin/com/yetanotherdevblog/petclinic/model/Visit.kt: -------------------------------------------------------------------------------- 1 | package com.yetanotherdevblog.petclinic.model 2 | 3 | import org.springframework.data.annotation.Id 4 | import org.springframework.data.mongodb.core.mapping.Document 5 | import java.time.LocalDate 6 | import java.util.* 7 | 8 | @Document 9 | data class Visit( 10 | @Id val id:String = UUID.randomUUID().toString(), 11 | val visitDate: LocalDate, 12 | val description: String, 13 | val petId: String) -------------------------------------------------------------------------------- /src/main/kotlin/com/yetanotherdevblog/petclinic/model/Owner.kt: -------------------------------------------------------------------------------- 1 | package com.yetanotherdevblog.petclinic.model 2 | 3 | import org.springframework.data.annotation.Id 4 | import org.springframework.data.mongodb.core.mapping.Document 5 | 6 | @Document 7 | data class Owner(@Id val id:String, 8 | val firstName: String, 9 | val lastName: String, 10 | val address: String, 11 | val city: String, 12 | val telephone: String) 13 | 14 | -------------------------------------------------------------------------------- /src/main/kotlin/com/yetanotherdevblog/petclinic/repositories/PetRepository.kt: -------------------------------------------------------------------------------- 1 | package com.yetanotherdevblog.petclinic.repositories 2 | 3 | import com.yetanotherdevblog.petclinic.model.Pet 4 | import org.springframework.data.mongodb.repository.ReactiveMongoRepository 5 | import org.springframework.stereotype.Repository 6 | import reactor.core.publisher.Flux 7 | 8 | @Repository interface PetRepository : ReactiveMongoRepository { 9 | 10 | fun findAllByOwner(id: String): Flux 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/main/kotlin/com/yetanotherdevblog/petclinic/repositories/VisitRepository.kt: -------------------------------------------------------------------------------- 1 | package com.yetanotherdevblog.petclinic.repositories 2 | 3 | import com.yetanotherdevblog.petclinic.model.Visit 4 | import org.springframework.data.mongodb.repository.ReactiveMongoRepository 5 | import org.springframework.stereotype.Repository 6 | import reactor.core.publisher.Flux 7 | 8 | @Repository interface VisitRepository : ReactiveMongoRepository { 9 | 10 | fun findByPetId(petId: String) : Flux 11 | 12 | } -------------------------------------------------------------------------------- /src/main/kotlin/com/yetanotherdevblog/petclinic/handlers/WelcomeHandler.kt: -------------------------------------------------------------------------------- 1 | package com.yetanotherdevblog.petclinic.handlers 2 | 3 | import com.yetanotherdevblog.petclinic.html 4 | import org.springframework.stereotype.Component 5 | import org.springframework.web.reactive.function.server.ServerRequest 6 | import org.springframework.web.reactive.function.server.ServerResponse.ok 7 | 8 | @Component 9 | class WelcomeHandler { 10 | 11 | fun welcome(serverRequest: ServerRequest) = ok().html().render("welcome") 12 | 13 | } -------------------------------------------------------------------------------- /src/main/kotlin/com/yetanotherdevblog/petclinic/repositories/SpecialityRepository.kt: -------------------------------------------------------------------------------- 1 | package com.yetanotherdevblog.petclinic.repositories 2 | 3 | import com.yetanotherdevblog.petclinic.model.Speciality 4 | import org.springframework.data.mongodb.repository.ReactiveMongoRepository 5 | import org.springframework.stereotype.Repository 6 | import reactor.core.publisher.Flux 7 | 8 | @Repository interface SpecialityRepository : ReactiveMongoRepository { 9 | 10 | fun findAllByName(nameList: Iterable) : Flux 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/main/kotlin/com/yetanotherdevblog/petclinic/model/Pet.kt: -------------------------------------------------------------------------------- 1 | package com.yetanotherdevblog.petclinic.model 2 | 3 | import org.springframework.data.annotation.Id 4 | import org.springframework.data.mongodb.core.mapping.DBRef 5 | import org.springframework.data.mongodb.core.mapping.Document 6 | import java.time.LocalDate 7 | import java.util.Date 8 | import java.util.UUID 9 | 10 | @Document 11 | data class Pet( 12 | @Id val id:String = UUID.randomUUID().toString(), 13 | val name: String, 14 | val birthDate: LocalDate, 15 | val type: String, 16 | val owner: String) 17 | -------------------------------------------------------------------------------- /src/main/resources/templates/welcome.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 |

Welcome

11 |
12 |
13 | 14 |
15 |
16 | 17 |
18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /src/main/resources/templates/fragments/bodyFooter.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 | 6 |
7 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /src/main/resources/static/resources/css/default.css: -------------------------------------------------------------------------------- 1 | html, body { 2 | font-size: 15px; 3 | height: 100%; 4 | } 5 | 6 | body { 7 | font-family: "Open Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif; 8 | background: #FFFFFF; 9 | background-image: url("../images/bg.jpg"); 10 | margin: 0px; 11 | padding: 0px; 12 | color: #555555; 13 | text-rendering: optimizeLegibility; 14 | min-width: 320px; 15 | } 16 | 17 | #example .container { 18 | width: auto; 19 | margin: 0 200px; 20 | } 21 | 22 | #example .ui.menu { 23 | padding: 0 200px; 24 | } 25 | 26 | #example .ui.footer.list { 27 | display: block; 28 | text-align: center; 29 | margin-bottom: 1.5rem; 30 | } -------------------------------------------------------------------------------- /src/main/kotlin/com/yetanotherdevblog/petclinic/handlers/api/OwnersApiHandler.kt: -------------------------------------------------------------------------------- 1 | package com.yetanotherdevblog.petclinic.handlers.api 2 | 3 | import com.yetanotherdevblog.petclinic.model.Owner 4 | import com.yetanotherdevblog.petclinic.repositories.OwnersRepository 5 | import org.springframework.stereotype.Component 6 | import org.springframework.web.reactive.function.server.ServerRequest 7 | import org.springframework.web.reactive.function.server.ServerResponse.ok 8 | 9 | @Component 10 | class OwnersApiHandler(val ownersRepository: OwnersRepository) { 11 | 12 | fun getOwners(serverRequest: ServerRequest) = 13 | ok().body(ownersRepository.findAll(), Owner::class.java) 14 | 15 | fun getOwner(serverRequest: ServerRequest) = 16 | ok().body(ownersRepository.findById(serverRequest.pathVariable("id")), Owner::class.java) 17 | 18 | } -------------------------------------------------------------------------------- /src/test/kotlin/com/yetanotherdevblog/OwnersHandlerTest.kt: -------------------------------------------------------------------------------- 1 | package com.yetanotherdevblog 2 | 3 | import com.yetanotherdevblog.petclinic.handlers.OwnersHandler 4 | import org.junit.Assert 5 | import org.junit.Test 6 | import org.junit.runner.RunWith 7 | import org.springframework.beans.factory.annotation.Autowired 8 | import org.springframework.boot.test.context.SpringBootTest 9 | import org.springframework.test.context.junit4.SpringRunner 10 | import reactor.core.publisher.test 11 | import reactor.core.publisher.toMono 12 | 13 | @RunWith(SpringRunner::class) 14 | @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.NONE) 15 | class OwnersHandlerTest { 16 | 17 | @Autowired 18 | lateinit var ownersHandler: OwnersHandler 19 | 20 | @Test 21 | fun `findByNameLike returns no result`() { 22 | ownersHandler.findByNameLike("No Result") 23 | .test() 24 | .expectNextCount(0) 25 | .verifyComplete() 26 | } 27 | 28 | } -------------------------------------------------------------------------------- /src/main/resources/templates/fragments/bodyHeader.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /src/main/resources/templates/fragments/headTag.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | <script type="text/javascript"> 19 | $("document").ready(function() { 20 | $('.ui.radio.checkbox').checkbox(); 21 | $('.ui.checkbox').checkbox(); 22 | }) 23 | </script> 24 | </head> 25 | <body> 26 | </body> 27 | </html> -------------------------------------------------------------------------------- /src/main/kotlin/com/yetanotherdevblog/petclinic/Extensions.kt: -------------------------------------------------------------------------------- 1 | package com.yetanotherdevblog.petclinic 2 | 3 | import org.springframework.data.mongodb.core.ReactiveMongoOperations 4 | import org.springframework.http.MediaType.APPLICATION_JSON_UTF8 5 | import org.springframework.http.MediaType.TEXT_EVENT_STREAM 6 | import org.springframework.http.MediaType.TEXT_HTML 7 | import org.springframework.web.reactive.function.server.ServerResponse 8 | import reactor.core.publisher.Flux 9 | import java.time.LocalDate 10 | import java.time.format.DateTimeFormatter 11 | 12 | inline fun <reified T : Any> ReactiveMongoOperations.findAll(): Flux<T> = findAll(T::class.java) 13 | 14 | fun ServerResponse.BodyBuilder.json() = contentType(APPLICATION_JSON_UTF8) 15 | 16 | fun ServerResponse.BodyBuilder.textEventStream() = contentType(TEXT_EVENT_STREAM) 17 | 18 | fun ServerResponse.BodyBuilder.html() = contentType(TEXT_HTML) 19 | 20 | // Date Extension methods 21 | 22 | fun LocalDate.toStr(format:String = "dd/MM/yyyy") = DateTimeFormatter.ofPattern(format).format(this) 23 | 24 | fun String.toLocalDate(format:String = "dd/MM/yyyy") = LocalDate.parse(this, DateTimeFormatter.ofPattern(format)) -------------------------------------------------------------------------------- /src/main/kotlin/com/yetanotherdevblog/petclinic/handlers/api/PetsApiHandler.kt: -------------------------------------------------------------------------------- 1 | package com.yetanotherdevblog.petclinic.handlers.api 2 | 3 | import com.yetanotherdevblog.petclinic.model.Pet 4 | import com.yetanotherdevblog.petclinic.model.Visit 5 | import com.yetanotherdevblog.petclinic.repositories.PetRepository 6 | import com.yetanotherdevblog.petclinic.repositories.VisitRepository 7 | import org.springframework.stereotype.Component 8 | import org.springframework.web.reactive.function.server.ServerRequest 9 | import org.springframework.web.reactive.function.server.ServerResponse.ok 10 | 11 | @Component 12 | class PetsApiHandler(val petRepository: PetRepository, 13 | val visitRepository: VisitRepository) { 14 | 15 | fun getPets(serverRequest: ServerRequest) = 16 | ok().body(petRepository.findAll(), Pet::class.java) 17 | 18 | fun getPet(serverRequest: ServerRequest) = 19 | ok().body(petRepository.findById(serverRequest.pathVariable("id")), Pet::class.java) 20 | 21 | fun getPetVisits(serverRequest: ServerRequest) = 22 | ok().body(visitRepository.findByPetId(serverRequest.pathVariable("id")), Visit::class.java) 23 | 24 | } -------------------------------------------------------------------------------- /src/main/resources/templates/specialities/index.html: -------------------------------------------------------------------------------- 1 | <!doctype html> 2 | <html xmlns:th="http://www.thymeleaf.org" lang="en-US"> 3 | <head th:replace="fragments/headTag :: headTag (title='Specialities')"></head> 4 | <body> 5 | 6 | <div th:include="fragments/bodyHeader (tab='specialities')" th:remove="tag"></div> 7 | 8 | <div class="container"> 9 | <div class="ui grid"> 10 | <div class="nine wide column"> 11 | <h1 class="ui header">Specialities</h1> 12 | </div> 13 | <div class="seven wide column"> 14 | <a href="add" class="ui button green" style="float: right; margin-left: 1em;">Add Speciality</a> 15 | </div> 16 | </div> 17 | 18 | <table class="ui table segment" th:if="${not specialities.isEmpty()}"> 19 | <thead> 20 | <tr> 21 | <th>Name</th> 22 | </tr> 23 | </thead> 24 | <tbody> 25 | <tr th:each="speciality: ${specialities}"> 26 | <td> <a th:text="${speciality.name}" th:href="@{edit(id=${speciality.id})}"></a></td> 27 | </tr> 28 | </tbody> 29 | </table> 30 | </div> 31 | 32 | <div th:include="fragments/bodyFooter" th:remove="tag"></div> 33 | </body> 34 | </html> -------------------------------------------------------------------------------- /src/main/resources/templates/petTypes/add.html: -------------------------------------------------------------------------------- 1 | <!doctype html> 2 | <html xmlns:th="http://www.thymeleaf.org" lang="en-US"> 3 | <head th:replace="fragments/headTag :: headTag (title='Add Pet Type')"></head> 4 | <body> 5 | 6 | <script type="text/javascript"> 7 | $(document).ready(function(){ 8 | $(".ui.form").form({ 9 | name : { 10 | identifier : 'name', 11 | rules : [ 12 | { 13 | type : 'empty', 14 | prompt : 'Please enter name' 15 | } 16 | ] 17 | } 18 | }) 19 | }) 20 | </script> 21 | 22 | <div th:include="fragments/bodyHeader (tab='add petType')" th:remove="tag"></div> 23 | 24 | <div class="container"> 25 | <h1 class="ui header">Add Pet Type</h1> 26 | 27 | <form method="post" action="add" role="form" class="ui form"> 28 | <div class="field"> 29 | <label for="name">Name</label> 30 | <input type="text" id="name" name="name" placeholder="Name"/> 31 | </div> 32 | <button type="submit" class="ui blue submit button">Save</button> 33 | </form> 34 | </div> 35 | 36 | <div th:include="fragments/bodyFooter" th:remove="tag"></div> 37 | </body> 38 | </html> -------------------------------------------------------------------------------- /src/main/resources/templates/specialities/add.html: -------------------------------------------------------------------------------- 1 | <!doctype html> 2 | <html xmlns:th="http://www.thymeleaf.org" lang="en-US"> 3 | <head th:replace="fragments/headTag :: headTag (title='Add Speciality')"></head> 4 | <body> 5 | 6 | <script type="text/javascript"> 7 | $(document).ready(function(){ 8 | $(".ui.form").form({ 9 | name : { 10 | identifier : 'name', 11 | rules : [ 12 | { 13 | type : 'empty', 14 | prompt : 'Please enter name' 15 | } 16 | ] 17 | } 18 | }) 19 | }) 20 | </script> 21 | 22 | <div th:include="fragments/bodyHeader (tab='add speciality')" th:remove="tag"></div> 23 | 24 | <div class="container"> 25 | <h1 class="ui header">Add Speciality</h1> 26 | 27 | <form method="post" action="add" role="form" class="ui form"> 28 | <div class="field"> 29 | <label for="name">Name</label> 30 | <input type="text" id="name" name="name" placeholder="Name"/> 31 | </div> 32 | <button type="submit" class="ui blue submit button">Save</button> 33 | </form> 34 | </div> 35 | 36 | <div th:include="fragments/bodyFooter" th:remove="tag"></div> 37 | </body> 38 | </html> -------------------------------------------------------------------------------- /src/main/resources/templates/petTypes/edit.html: -------------------------------------------------------------------------------- 1 | <!doctype html> 2 | <html xmlns:th="http://www.thymeleaf.org" lang="en-US"> 3 | <head th:replace="fragments/headTag :: headTag (title='Edit Pet Type')"></head> 4 | <body> 5 | 6 | <script type="text/javascript"> 7 | $(document).ready(function(){ 8 | $(".ui.form").form({ 9 | name : { 10 | identifier : 'name', 11 | rules : [ 12 | { 13 | type : 'empty', 14 | prompt : 'Please enter name' 15 | } 16 | ] 17 | } 18 | }) 19 | }) 20 | </script> 21 | 22 | <div th:include="fragments/bodyHeader (tab='edit petType')" th:remove="tag"></div> 23 | 24 | <div class="container"> 25 | <h1 class="ui header">Edit Pet Type</h1> 26 | 27 | <form method="post" action="edit" role="form" class="ui form"> 28 | <input type="hidden" id="id" name="id" th:value="${id}"/> 29 | <div class="field"> 30 | <label for="name">Name</label> 31 | <input type="text" id="name" name="name" placeholder="Name" 32 | th:value="${name}"/> 33 | </div> 34 | <button type="submit" class="ui blue submit button">Save</button> 35 | </form> 36 | </div> 37 | 38 | <div th:include="fragments/bodyFooter" th:remove="tag"></div> 39 | </body> 40 | </html> -------------------------------------------------------------------------------- /src/main/resources/templates/specialities/edit.html: -------------------------------------------------------------------------------- 1 | <!doctype html> 2 | <html xmlns:th="http://www.thymeleaf.org" lang="en-US"> 3 | <head th:replace="fragments/headTag :: headTag (title='Edit Speciality')"></head> 4 | <body> 5 | 6 | <script type="text/javascript"> 7 | $(document).ready(function(){ 8 | $(".ui.form").form({ 9 | name : { 10 | identifier : 'name', 11 | rules : [ 12 | { 13 | type : 'empty', 14 | prompt : 'Please enter name' 15 | } 16 | ] 17 | } 18 | }) 19 | }) 20 | </script> 21 | 22 | <div th:include="fragments/bodyHeader (tab='edit speciality')" th:remove="tag"></div> 23 | 24 | <div class="container"> 25 | <h1 class="ui header">Edit Speciality</h1> 26 | 27 | <form method="post" action="edit" role="form" class="ui form"> 28 | <input type="hidden" id="id" name="id" th:value="${id}"/> 29 | <div class="field"> 30 | <label for="name">Name</label> 31 | <input type="text" id="name" name="name" placeholder="Name" 32 | th:value="${name}"/> 33 | </div> 34 | <button type="submit" class="ui blue submit button">Save</button> 35 | </form> 36 | </div> 37 | 38 | <div th:include="fragments/bodyFooter" th:remove="tag"></div> 39 | </body> 40 | </html> -------------------------------------------------------------------------------- /src/test/kotlin/com/yetanotherdevblog/VariousTests.kt: -------------------------------------------------------------------------------- 1 | package com.yetanotherdevblog 2 | 3 | import com.yetanotherdevblog.petclinic.toLocalDate 4 | import com.yetanotherdevblog.petclinic.toStr 5 | import org.junit.Assert 6 | import org.junit.Test 7 | import org.junit.runner.RunWith 8 | import org.springframework.beans.factory.annotation.Value 9 | import org.springframework.boot.test.context.SpringBootTest 10 | import org.springframework.test.context.junit4.SpringRunner 11 | import java.time.LocalDate 12 | 13 | @RunWith(SpringRunner::class) 14 | @SpringBootTest 15 | class VariousTests { 16 | 17 | /** 18 | * @Value injection need escaping of the `$` char 19 | * Or you can instead use ConfigurationProperties 20 | * Or change that special character 21 | */ 22 | @Value("\${custom.property}") 23 | lateinit var customProperty : String 24 | 25 | /** 26 | * Method names can be free text by wrapping them around `...` 27 | */ 28 | @Test 29 | fun `@Value properties needs escaping`() { 30 | Assert.assertEquals(customProperty, "Lorem Ipsum") 31 | } 32 | 33 | @Test 34 | fun `Test LocalDate#toStr extension method`() { 35 | Assert.assertEquals(LocalDate.of(1970, 1, 1).toStr(), "01/01/1970") 36 | } 37 | 38 | @Test 39 | fun `Test String#toLocalDate extension method`() { 40 | Assert.assertEquals("01/01/1970".toLocalDate(), LocalDate.of(1970, 1, 1)) 41 | } 42 | 43 | } 44 | -------------------------------------------------------------------------------- /src/main/resources/templates/vets/index.html: -------------------------------------------------------------------------------- 1 | <!doctype html> 2 | <html xmlns:th="http://www.thymeleaf.org" lang="en-US"> 3 | <head th:replace="fragments/headTag :: headTag (title='Veterinarians')"></head> 4 | <body> 5 | 6 | <div th:include="fragments/bodyHeader (tab='vets')" th:remove="tag"></div> 7 | 8 | <div class="container"> 9 | <div class="ui grid"> 10 | <div class="nine wide column"> 11 | <h1 class="ui header">Veterinarians</h1> 12 | </div> 13 | <div class="seven wide column"> 14 | <a href="add" class="ui button green" style="float: right; margin-left: 1em;">Add Veterinarian</a> 15 | </div> 16 | </div> 17 | 18 | <table class="ui table segment" th:if="${not vets.isEmpty()}"> 19 | <thead> 20 | <tr> 21 | <th>Name</th> 22 | <th>Specialities</th> 23 | </tr> 24 | </thead> 25 | <tbody> 26 | <tr th:each="vet: ${vets}"> 27 | <td> <a th:text="${vet.firstName} + ' ' + ${vet.lastName}" th:href="@{edit(id=${vet.id})}"></a></td> 28 | <td> 29 | <div th:if="${not vet.specialities.isEmpty()}"> 30 | <span class="ui small teal label" th:each="speciality: ${vet.specialities}" th:text="${speciality}"/> 31 | </div> 32 | </td> 33 | </tr> 34 | </tbody> 35 | </table> 36 | </div> 37 | 38 | <div th:include="fragments/bodyFooter" th:remove="tag"></div> 39 | </body> 40 | </html> -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # [PetClinic (Kotlin/Spring 5/Reactive)](https://ssouris.github.io/2017/06/02/petclinic-spring-5-kotlin-reactive-mongodb.html) 2 | [![Build Status](https://travis-ci.org/ssouris/petclinic-spring5-reactive.svg)](https://travis-ci.org/ssouris/petclinic-spring5-reactive) 3 | 4 | ### Description 5 | PetClinic application using Kotlin, Spring 5 with the reactive APIs (Reactor). 6 | You can find the related blog [here](https://ssouris.github.io/2017/06/02/petclinic-spring-5-kotlin-reactive-mongodb.html). 7 | 8 | ### Technologies used 9 | 10 | - Language: [Kotlin](https://kotlin.link/) 11 | - Web framework: [Spring Boot](https://projects.spring.io/spring-boot/) and [Spring Web Reactive Functional](https://spring.io/blog/2016/09/22/new-in-spring-5-functional-web-framework) 12 | - Engine: [Netty](http://netty.io/) used for client and server 13 | - Reactive API: [Reactor](http://projectreactor.io/) 14 | - Persistence : [Spring Data Reactive MongoDB](https://spring.io/blog/2016/11/28/going-reactive-with-spring-data) 15 | - Build: [Gradle Script Kotlin](https://github.com/gradle/gradle-script-kotlin) 16 | - Testing: [Junit](http://junit.org/) 17 | 18 | ### Run the app in dev mod using command line 19 | - Run `./gradlew bootRun` in another terminal 20 | - Open `http://localhost:8080/` in your browser 21 | - If you want to debug the app, add `--debug-jvm` parameter to Gradle command line 22 | 23 | ### Package and run the application from the executable JAR: 24 | ``` 25 | ./gradlew clean build 26 | java -jar build/libs/petclinic-spring5-kotlin-1.0.0-SNAPSHOT.jar 27 | ``` 28 | 29 | ### TODO 30 | 31 | - Validation on save/edit 32 | - Error handling (what happens when an entity is not present in the db) 33 | 34 | -------------------------------------------------------------------------------- /src/main/resources/templates/petTypes/index.html: -------------------------------------------------------------------------------- 1 | <!doctype html> 2 | <html xmlns:th="http://www.thymeleaf.org" lang="en-US"> 3 | <head th:replace="fragments/headTag :: headTag (title='Pet Types')"></head> 4 | <body> 5 | 6 | <div th:include="fragments/bodyHeader (tab='petTypes')" th:remove="tag"></div> 7 | 8 | <div class="container"> 9 | <div class="ui grid"> 10 | <div class="nine wide column"> 11 | <h1 class="ui header">Pet Types</h1> 12 | </div> 13 | <div class="seven wide column"> 14 | <a href="add" class="ui button green" style="float: right; margin-left: 1em;">Add Pet Type</a> 15 | </div> 16 | </div> 17 | 18 | <table class="ui table segment" th:if="${not petTypes.isEmpty()}"> 19 | <thead> 20 | <tr> 21 | <th>Name</th> 22 | <!--<th style="width: 30%"></th>--> 23 | </tr> 24 | </thead> 25 | <tbody> 26 | <tr th:each="petType: ${petTypes}"> 27 | <td> <a th:text="${petType.name}" th:href="@{edit(id=${petType.id})}"></a></td> 28 | <!--<td> 29 | <a href="@{edit(id=${petType.id})}" class="ui mini button blue" style="float: left; margin-right: 1em;">Edit</a> 30 | <form th:action="@{delete(id=${petType.id})}" method="post" style="float: left; margin-right: 1em;"><input type="submit" 31 | class="ui mini button red" 32 | value="Delete"/> 33 | </form> 34 | </td>--> 35 | </tr> 36 | </tbody> 37 | </table> 38 | </div> 39 | 40 | <div th:include="fragments/bodyFooter" th:remove="tag"></div> 41 | </body> 42 | </html> -------------------------------------------------------------------------------- /src/main/kotlin/com/yetanotherdevblog/petclinic/handlers/PetTypeHandler.kt: -------------------------------------------------------------------------------- 1 | package com.yetanotherdevblog.petclinic.handlers 2 | 3 | import com.yetanotherdevblog.petclinic.html 4 | import com.yetanotherdevblog.petclinic.model.PetType 5 | import com.yetanotherdevblog.petclinic.repositories.PetTypeRepository 6 | import org.springframework.http.MediaType 7 | import org.springframework.stereotype.Component 8 | import org.springframework.web.reactive.function.BodyExtractors 9 | import org.springframework.web.reactive.function.server.ServerRequest 10 | import org.springframework.web.reactive.function.server.ServerResponse.ok 11 | 12 | @Component 13 | class PetTypeHandler(val petTypeRepository: PetTypeRepository) { 14 | 15 | fun indexPage(serverRequest: ServerRequest) = indexPage() 16 | 17 | fun addPage(serverRequest: ServerRequest) = 18 | ok().contentType(MediaType.TEXT_HTML).render("petTypes/add") 19 | 20 | fun add(serverRequest: ServerRequest) = serverRequest.body(BodyExtractors.toFormData()) 21 | .flatMap { 22 | val formData = it.toSingleValueMap() 23 | petTypeRepository.save(PetType(name = formData["name"]!!)) 24 | } 25 | .then(indexPage()) 26 | 27 | fun editPage(serverRequest: ServerRequest) = 28 | petTypeRepository.findById(serverRequest.queryParam("id").orElseThrow{ IllegalArgumentException() }) 29 | .map { mapOf("id" to it.id, "name" to it.name) } 30 | .flatMap { ok().html().render("petTypes/edit", it) } 31 | 32 | fun edit(serverRequest: ServerRequest) = 33 | serverRequest.body(BodyExtractors.toFormData()) 34 | .flatMap { 35 | val formData = it.toSingleValueMap() 36 | petTypeRepository.save(PetType(id = formData["id"]!!, name = formData["name"]!!)) 37 | } 38 | .then(indexPage()) 39 | 40 | fun indexPage() = ok().html().render("petTypes/index", mapOf("petTypes" to petTypeRepository.findAll())) 41 | 42 | } 43 | -------------------------------------------------------------------------------- /src/main/resources/templates/owners/index.html: -------------------------------------------------------------------------------- 1 | <!doctype html> 2 | <html xmlns:th="http://www.thymeleaf.org" lang="en-US"> 3 | <head th:replace="fragments/headTag :: headTag (title='Owners')"></head> 4 | <body> 5 | 6 | <div th:include="fragments/bodyHeader (tab='owners')" th:remove="tag"></div> 7 | 8 | <div class="container"> 9 | <div class="ui grid"> 10 | <div class="seven wide column"> 11 | <h1 class="ui header">Owners</h1> 12 | </div> 13 | <div class="nine wide column"> 14 | <div class="ui icon input" style="float: right; margin-left: 1em;"> 15 | <form action="" method="get"> 16 | <input name="q" type="text" placeholder="Find owners..." th:value="${searchQuery}"/> 17 | </form> 18 | <i class="circular search icon"></i> 19 | </div> 20 | <a href="add" class="ui button green" style="float: right; margin-left: 1em;">Add Owner</a> 21 | </div> 22 | </div> 23 | 24 | <table class="ui table segment" th:if="${not owners.isEmpty()}"> 25 | <thead> 26 | <tr> 27 | <th>Name</th> 28 | <th>City</th> 29 | <th>Address</th> 30 | <th>Telephone</th> 31 | <th>Pets</th> 32 | </tr> 33 | </thead> 34 | <tbody> 35 | <tr th:each="owner: ${owners}"> 36 | <td><a th:href="@{/owners/view(id=${owner.first.id})}" 37 | th:text="${owner.first.firstName} + ' ' + ${owner.first.lastName}"></a></td> 38 | <td th:text="${owner.first.city}"></td> 39 | <td th:text="${owner.first.address}"></td> 40 | <td th:text="${owner.first.telephone}"></td> 41 | <td> 42 | <div th:if="${pets[owner.first.id] != null && not pets[owner.first.id].isEmpty()}"> 43 | <span class="ui small label teal" th:each="pet: ${pets[owner.first.id]}" th:text="${pet.name}"/> 44 | </div> 45 | </td> 46 | </tr> 47 | </tbody> 48 | </table> 49 | </div> 50 | 51 | <div th:include="fragments/bodyFooter" th:remove="tag"></div> 52 | </body> 53 | </html> 54 | -------------------------------------------------------------------------------- /src/test/kotlin/com/yetanotherdevblog/ApiTest.kt: -------------------------------------------------------------------------------- 1 | package com.yetanotherdevblog 2 | 3 | import com.yetanotherdevblog.petclinic.model.Owner 4 | import com.yetanotherdevblog.petclinic.repositories.PetRepository 5 | import org.junit.Assert.assertEquals 6 | import org.junit.Before 7 | import org.junit.Test 8 | import org.junit.runner.RunWith 9 | import org.springframework.beans.factory.annotation.Autowired 10 | import org.springframework.boot.test.context.SpringBootTest 11 | import org.springframework.boot.web.server.LocalServerPort 12 | import org.springframework.http.HttpStatus 13 | import org.springframework.http.MediaType 14 | import org.springframework.test.context.junit4.SpringRunner 15 | import org.springframework.web.reactive.function.client.ClientResponse 16 | import org.springframework.web.reactive.function.client.WebClient 17 | import reactor.core.publisher.test 18 | import reactor.core.publisher.toMono 19 | import java.time.Duration 20 | 21 | @RunWith(SpringRunner::class) 22 | @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) 23 | class ApiTest { 24 | 25 | @LocalServerPort 26 | var port: Int? = null 27 | 28 | lateinit var client: WebClient 29 | 30 | @Autowired 31 | lateinit var petRepository: PetRepository 32 | 33 | @Before 34 | fun setup() { 35 | client = WebClient.create("http://localhost:$port") 36 | } 37 | 38 | @Test 39 | fun `API call for Owners`() { 40 | client.get().uri("/api/owners").accept(MediaType.APPLICATION_JSON) 41 | .retrieve() 42 | .bodyToFlux(Owner::class.java) 43 | .test() 44 | .consumeNextWith { 45 | assertEquals("James", it.firstName) 46 | } 47 | .verifyComplete() 48 | 49 | client.get().uri("/api/owners/5bead0d3-cd7b-41e5-b064-09f48e5e6a08").accept(MediaType.APPLICATION_JSON) 50 | .retrieve() 51 | .bodyToFlux(Owner::class.java) 52 | .test() 53 | .consumeNextWith { 54 | assertEquals("James", it.firstName) 55 | assertEquals("Owner", it.lastName) 56 | } 57 | .verifyComplete() 58 | } 59 | } -------------------------------------------------------------------------------- /src/main/resources/templates/vets/add.html: -------------------------------------------------------------------------------- 1 | <!doctype html> 2 | <html xmlns:th="http://www.thymeleaf.org" lang="en-US"> 3 | <head th:replace="fragments/headTag :: headTag (title='Add Veterinarian')"> 4 | </head> 5 | <body> 6 | 7 | <script type="text/javascript"> 8 | $(document).ready(function(){ 9 | $(".ui.form").form({ 10 | firstName : { 11 | identifier : 'firstName', 12 | rules : [ 13 | { 14 | type : 'empty', 15 | prompt : 'Please first name' 16 | } 17 | ] 18 | }, 19 | lastName : { 20 | identifier : 'lastName', 21 | rules : [ 22 | { 23 | type : 'empty', 24 | prompt : 'Please last name' 25 | } 26 | ] 27 | } 28 | }) 29 | }) 30 | </script> 31 | 32 | <div th:include="fragments/bodyHeader (tab='add vet')" th:remove="tag"></div> 33 | 34 | <div class="container"> 35 | <h1 class="ui header">Add Veterinarian</h1> 36 | 37 | <form method="post" action="add" role="form" class="ui form"> 38 | <div class="field"> 39 | <label for="firstName">First Name</label> 40 | <input type="text" id="firstName" name="firstName" placeholder="First Name"/> 41 | </div> 42 | <div class="field"> 43 | <label for="lastName">Last Name</label> 44 | <input type="text" id="lastName" name="lastName" placeholder="Last Name"/> 45 | </div> 46 | <div class="field"> 47 | <label>Specialities</label> 48 | </div> 49 | <div class="ui segment"> 50 | <div th:each="speciality : ${specialities}" class="field"> 51 | <div class="ui checkbox"> 52 | <input type="checkbox" th:name="${speciality.name}"/> 53 | <label th:text="${speciality.name}"/> 54 | </div> 55 | </div> 56 | </div> 57 | <button type="submit" class="ui green submit button">Add</button> 58 | </form> 59 | </div> 60 | 61 | <div th:include="fragments/bodyFooter" th:remove="tag"></div> 62 | </body> 63 | </html> -------------------------------------------------------------------------------- /src/main/kotlin/com/yetanotherdevblog/petclinic/handlers/SpecialitiesHandler.kt: -------------------------------------------------------------------------------- 1 | package com.yetanotherdevblog.petclinic.handlers 2 | 3 | import com.yetanotherdevblog.petclinic.html 4 | import com.yetanotherdevblog.petclinic.model.Speciality 5 | import com.yetanotherdevblog.petclinic.repositories.SpecialityRepository 6 | import org.springframework.stereotype.Component 7 | import org.springframework.web.reactive.function.BodyExtractors 8 | import org.springframework.web.reactive.function.server.ServerRequest 9 | import org.springframework.web.reactive.function.server.ServerResponse.ok 10 | import java.util.UUID 11 | 12 | @Component 13 | class SpecialitiesHandler(val specialityRepository: SpecialityRepository) { 14 | 15 | fun indexPage(serverRequest: ServerRequest) = indexPage() 16 | 17 | fun addPage(serverRequest: ServerRequest) = ok().html().render("specialities/add") 18 | 19 | fun add(serverRequest: ServerRequest) = 20 | serverRequest.body(BodyExtractors.toFormData()) 21 | .flatMap { 22 | val formData = it.toSingleValueMap() 23 | specialityRepository.save(Speciality( 24 | id = UUID.randomUUID().toString(), name = formData["name"]!!)) 25 | } 26 | .then(indexPage()) 27 | 28 | fun editPage(serverRequest: ServerRequest) = 29 | specialityRepository.findById( 30 | serverRequest.queryParam("id").orElseThrow {IllegalArgumentException()}) 31 | .map { mapOf("id" to it.id, "name" to it.name) } 32 | .flatMap { ok().html().render("specialities/edit", it) } 33 | 34 | fun edit(serverRequest: ServerRequest) = 35 | serverRequest.body(BodyExtractors.toFormData()) 36 | .flatMap { 37 | val formData = it.toSingleValueMap() 38 | specialityRepository.save(Speciality( 39 | id = formData["id"]!!, 40 | name = formData["name"]!!)) 41 | } 42 | .then(indexPage()) 43 | 44 | fun indexPage() = ok().html().render("specialities/index", 45 | mapOf("specialities" to specialityRepository.findAll())) 46 | 47 | } 48 | -------------------------------------------------------------------------------- /src/main/resources/templates/vets/edit.html: -------------------------------------------------------------------------------- 1 | <!doctype html> 2 | <html xmlns:th="http://www.thymeleaf.org" lang="en-US"> 3 | <head th:replace="fragments/headTag :: headTag (title='Edit Veterinarian')"> 4 | </head> 5 | <body> 6 | 7 | <script type="text/javascript"> 8 | $(document).ready(function(){ 9 | $(".ui.form").form({ 10 | firstName : { 11 | identifier : 'firstName', 12 | rules : [ 13 | { 14 | type : 'empty', 15 | prompt : 'Please first name' 16 | } 17 | ] 18 | }, 19 | lastName : { 20 | identifier : 'lastName', 21 | rules : [ 22 | { 23 | type : 'empty', 24 | prompt : 'Please last name' 25 | } 26 | ] 27 | } 28 | }) 29 | }) 30 | </script> 31 | 32 | <div th:include="fragments/bodyHeader (tab='edit vet')" th:remove="tag"></div> 33 | 34 | <div class="container"> 35 | <h1 class="ui header">Edit Veterinarian</h1> 36 | 37 | <form method="post" action="edit" role="form" class="ui form"> 38 | <input name="id" type="hidden" th:value="${vet.id}"/> 39 | 40 | <div class="field"> 41 | <label for="firstName">First Name</label> 42 | <input type="text" id="firstName" name="firstName" placeholder="First Name" th:value="${vet.firstName}"/> 43 | </div> 44 | <div class="field"> 45 | <label for="lastName">Last Name</label> 46 | <input type="text" id="lastName" name="lastName" placeholder="Last Name" th:value="${vet.lastName}"/> 47 | </div> 48 | <div class="field"> 49 | <label>Specialities</label> 50 | </div> 51 | <div class="ui segment"> 52 | <div th:each="speciality : ${specialities}" class="field"> 53 | <div class="ui checkbox"> 54 | <input type="checkbox" th:name="${speciality.name}" th:checked="${vet.specialities.contains(speciality.name)}"/> 55 | <label th:text="${speciality.name}"/> 56 | </div> 57 | </div> 58 | </div> 59 | <button type="submit" class="ui green submit button">Save</button> 60 | </form> 61 | </div> 62 | 63 | <div th:include="fragments/bodyFooter" th:remove="tag"></div> 64 | </body> 65 | </html> -------------------------------------------------------------------------------- /src/main/resources/templates/visits/add.html: -------------------------------------------------------------------------------- 1 | <!doctype html> 2 | <html xmlns:th="http://www.thymeleaf.org" lang="en-US"> 3 | <head th:replace="fragments/headTag :: headTag (title='Add Pet Visit')"></head> 4 | <body> 5 | 6 | <script type="text/javascript"> 7 | $(document).ready(function(){ 8 | $(".ui.form").form({ 9 | date : { 10 | identifier : 'date', 11 | rules : [ 12 | { 13 | type : 'empty', 14 | prompt : 'Please date' 15 | } 16 | ] 17 | }, 18 | description : { 19 | identifier : 'description', 20 | rules : [ 21 | { 22 | type : 'empty', 23 | prompt : 'Please description' 24 | } 25 | ] 26 | } 27 | }) 28 | }) 29 | </script> 30 | 31 | <div th:include="fragments/bodyHeader (tab='add visit')" th:remove="tag"></div> 32 | 33 | <div class="container"> 34 | <h1 class="ui header">Add Pet Visit</h1> 35 | 36 | <form method="post" action="add" role="form" class="ui form"> 37 | <input name="petId" type="hidden" th:value="${pet.id}"/> 38 | 39 | <div class="field"> 40 | <label for="ownerName">Owner</label> 41 | <input type="text" id="ownerName" th:value="${owner.firstName + ' ' + owner.lastName}" readonly="true"/> 42 | </div> 43 | <div class="field"> 44 | <label for="petName">Pet</label> 45 | <input type="text" id="petName" th:value="${pet.name}" readonly="true"/> 46 | </div> 47 | <div class="field"> 48 | <label for="petBirthDate">Birth Date</label> 49 | <input type="text" id="petBirthDate" th:value="${#temporals.format(pet.birthDate, 'dd/MM/yyyy')}" readonly="true"/> 50 | </div> 51 | <div class="date field"> 52 | <label for="date">Date</label> 53 | <input type="text" id="date" name="date" placeholder="dd/MM/yyyy"/> 54 | </div> 55 | <div class="field"> 56 | <label for="description">Description</label> 57 | <input type="text" id="description" name="description" placeholder="Description"/> 58 | </div> 59 | <button type="submit" class="ui blue submit button">Add</button> 60 | </form> 61 | </div> 62 | 63 | <div th:include="fragments/bodyFooter" th:remove="tag"></div> 64 | </body> 65 | </html> 66 | -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | set DIRNAME=%~dp0 12 | if "%DIRNAME%" == "" set DIRNAME=. 13 | set APP_BASE_NAME=%~n0 14 | set APP_HOME=%DIRNAME% 15 | 16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 17 | set DEFAULT_JVM_OPTS= 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windows variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | 53 | :win9xME_args 54 | @rem Slurp the command line arguments. 55 | set CMD_LINE_ARGS= 56 | set _SKIP=2 57 | 58 | :win9xME_args_slurp 59 | if "x%~1" == "x" goto execute 60 | 61 | set CMD_LINE_ARGS=%* 62 | 63 | :execute 64 | @rem Setup the command line 65 | 66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 67 | 68 | @rem Execute Gradle 69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 70 | 71 | :end 72 | @rem End local scope for the variables with windows NT shell 73 | if "%ERRORLEVEL%"=="0" goto mainEnd 74 | 75 | :fail 76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 77 | rem the _cmd.exe /c_ return code! 78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 79 | exit /b 1 80 | 81 | :mainEnd 82 | if "%OS%"=="Windows_NT" endlocal 83 | 84 | :omega 85 | -------------------------------------------------------------------------------- /src/main/resources/templates/pets/add.html: -------------------------------------------------------------------------------- 1 | <!doctype html> 2 | <html xmlns:th="http://www.thymeleaf.org" lang="en-US"> 3 | <head th:replace="fragments/headTag :: headTag (title='Add Pet')"></head> 4 | <body> 5 | 6 | <script type="text/javascript"> 7 | $(document).ready(function(){ 8 | $(".ui.form").form({ 9 | name : { 10 | identifier : 'name', 11 | rules : [ 12 | { 13 | type : 'empty', 14 | prompt : 'Please enter pet name' 15 | } 16 | ] 17 | }, 18 | birthDate : { 19 | identifier : 'birthDate', 20 | rules : [ 21 | { 22 | type : 'empty', 23 | prompt : 'Please enter birth date' 24 | } 25 | ] 26 | } 27 | }) 28 | }) 29 | </script> 30 | 31 | <div th:include="fragments/bodyHeader (tab='add pet')" th:remove="tag"></div> 32 | 33 | <div class="container"> 34 | <h1 class="ui header">Add Pet</h1> 35 | 36 | <form method="post" action="add" role="form" class="ui form"> 37 | <input name="ownerId" type="hidden" th:value="${owner.id}"/> 38 | 39 | <div class="field"> 40 | <label for="ownerName">Owner</label> 41 | <input type="text" id="ownerName" th:value="${owner.firstName + ' ' + owner.lastName}" readonly="true"/> 42 | </div> 43 | <div class="field"> 44 | <label for="name">Name</label> 45 | <input type="text" id="name" name="name" placeholder="Name"/> 46 | </div> 47 | <div class="date field"> 48 | <label for="birthDate">Birth Date</label> 49 | <input type="text" id="birthDate" name="birthDate" placeholder="dd/MM/yyyy"/> 50 | </div> 51 | <div class="field"> 52 | <label>Type</label> 53 | </div> 54 | <div class="grouped inline fields ui segment"> 55 | <div th:each="petType : ${petTypes}" class="field"> 56 | <div class="ui radio checkbox"> 57 | <input type="radio" name="typeId" 58 | th:value="${petType.id}"/> 59 | <label th:text="${petType.name}"/> 60 | </div> 61 | </div> 62 | </div> 63 | <button type="submit" class="ui blue submit button">Save</button> 64 | </form> 65 | </div> 66 | 67 | <div th:include="fragments/bodyFooter" th:remove="tag"></div> 68 | </body> 69 | </html> -------------------------------------------------------------------------------- /src/main/kotlin/com/yetanotherdevblog/petclinic/handlers/VetsHandler.kt: -------------------------------------------------------------------------------- 1 | package com.yetanotherdevblog.petclinic.handlers 2 | 3 | import com.yetanotherdevblog.petclinic.html 4 | import com.yetanotherdevblog.petclinic.model.Vet 5 | import com.yetanotherdevblog.petclinic.repositories.SpecialityRepository 6 | import com.yetanotherdevblog.petclinic.repositories.VetRepository 7 | import org.springframework.stereotype.Component 8 | import org.springframework.web.reactive.function.BodyExtractors 9 | import org.springframework.web.reactive.function.server.ServerRequest 10 | import org.springframework.web.reactive.function.server.ServerResponse.ok 11 | import java.util.UUID 12 | 13 | @Component 14 | class VetsHandler(val vetRepository: VetRepository, 15 | val specialityRepository: SpecialityRepository) { 16 | 17 | fun indexPage(serverRequest: ServerRequest) = indexPage() 18 | 19 | fun addPage(serverRequest: ServerRequest) = 20 | ok().html().render("vets/add", mapOf("specialities" to specialityRepository.findAll())) 21 | 22 | fun add(serverRequest: ServerRequest) = serverRequest.body(BodyExtractors.toFormData()) 23 | .flatMap { 24 | formData -> 25 | vetRepository.save(Vet( 26 | id = UUID.randomUUID().toString(), 27 | firstName = formData["firstName"]?.get(0)!!, 28 | lastName = formData["lastName"]?.get(0)!!, 29 | specialities = formData["specialities"]?.toCollection(HashSet())!!)) 30 | } 31 | .then(indexPage()) 32 | 33 | fun editPage(serverRequest: ServerRequest) = 34 | vetRepository.findById( 35 | serverRequest.queryParam("id").orElseThrow({IllegalArgumentException()})) 36 | .map { mapOf("vet" to it, "specialities" to specialityRepository.findAll()) } 37 | .flatMap { ok().html().render("vets/edit", it) } 38 | 39 | fun edit(serverRequest: ServerRequest) = serverRequest.body(BodyExtractors.toFormData()) 40 | .flatMap { formData -> 41 | vetRepository.save(Vet( 42 | id = formData["id"]?.get(0)!!, 43 | firstName = formData["firstName"]?.get(0)!!, 44 | lastName = formData["lastName"]?.get(0)!!, 45 | specialities = formData["specialities"]?.toCollection(HashSet<String>())!!)) 46 | } 47 | .then(indexPage()) 48 | 49 | fun indexPage() = ok().html().render("vets/index", mapOf("vets" to vetRepository.findAll())) 50 | 51 | } 52 | -------------------------------------------------------------------------------- /src/main/resources/templates/visits/edit.html: -------------------------------------------------------------------------------- 1 | <!doctype html> 2 | <html xmlns:th="http://www.thymeleaf.org" lang="en-US"> 3 | <head th:replace="fragments/headTag :: headTag (title='Add Pet Visit')"></head> 4 | <body> 5 | 6 | <script type="text/javascript"> 7 | $(document).ready(function(){ 8 | $(".ui.form").form({ 9 | date : { 10 | identifier : 'date', 11 | rules : [ 12 | { 13 | type : 'empty', 14 | prompt : 'Please date' 15 | } 16 | ] 17 | }, 18 | description : { 19 | identifier : 'description', 20 | rules : [ 21 | { 22 | type : 'empty', 23 | prompt : 'Please description' 24 | } 25 | ] 26 | } 27 | }) 28 | }) 29 | </script> 30 | 31 | <div th:include="fragments/bodyHeader (tab='edit visit')" th:remove="tag"></div> 32 | 33 | <div class="container"> 34 | <h1 class="ui header">Edit Pet Visit</h1> 35 | 36 | <form method="post" action="edit" role="form" class="ui form"> 37 | <input name="id" type="hidden" th:value="${id}"/> 38 | <input name="petId" type="hidden" th:value="${pet.id}"/> 39 | 40 | <div class="field"> 41 | <label for="ownerName">Owner</label> 42 | <input type="text" id="ownerName" th:value="${owner.firstName + ' ' + owner.lastName}" readonly="true"/> 43 | </div> 44 | <div class="field"> 45 | <label for="petName">Pet</label> 46 | <input type="text" id="petName" th:value="${pet.name}" readonly="true"/> 47 | </div> 48 | <div class="field"> 49 | <label for="petBirthDate">Birth Date</label> 50 | <input type="text" id="petBirthDate" th:value="${pet.birthDate}" readonly="true"/> 51 | </div> 52 | <div class="date field"> 53 | <label for="date">Date</label> 54 | <input type="text" id="date" name="date" th:value="${date}" placeholder="dd/MM/yyyy"/> 55 | </div> 56 | <div class="field"> 57 | <label for="description">Description</label> 58 | <input type="text" id="description" name="description" th:value="${description}" placeholder="Description" 59 | required="true"/> 60 | </div> 61 | <button type="submit" class="ui blue submit button">Save</button> 62 | </form> 63 | </div> 64 | 65 | <div th:include="fragments/bodyFooter" th:remove="tag"></div> 66 | </body> 67 | </html> 68 | -------------------------------------------------------------------------------- /src/main/resources/templates/pets/edit.html: -------------------------------------------------------------------------------- 1 | <!doctype html> 2 | <html xmlns:th="http://www.thymeleaf.org" lang="en-US"> 3 | <head th:replace="fragments/headTag :: headTag (title='Edit Pet')"></head> 4 | <body> 5 | 6 | <script type="text/javascript"> 7 | $(document).ready(function(){ 8 | $(".ui.form").form({ 9 | name : { 10 | identifier : 'name', 11 | rules : [ 12 | { 13 | type : 'empty', 14 | prompt : 'Please enter pet name' 15 | } 16 | ] 17 | }, 18 | birthDate : { 19 | identifier : 'birthDate', 20 | rules : [ 21 | { 22 | type : 'empty', 23 | prompt : 'Please enter birth date' 24 | } 25 | ] 26 | } 27 | }) 28 | }) 29 | </script> 30 | 31 | <div th:include="fragments/bodyHeader (tab='edit pet')" th:remove="tag"></div> 32 | 33 | <div class="container"> 34 | <h1 class="ui header">Edit Pet</h1> 35 | 36 | <form method="post" action="edit" role="form" class="ui form"> 37 | <input name="id" type="hidden" th:value="${pet.id}"/> 38 | <input name="ownerId" type="hidden" th:value="${owner.id}"/> 39 | 40 | <div class="field"> 41 | <label for="ownerName">Owner</label> 42 | <input type="text" id="ownerName" th:value="${owner.firstName + ' ' + owner.lastName}" readonly="true"/> 43 | </div> 44 | <div class="field"> 45 | <label for="name">Name</label> 46 | <input type="text" id="name" name="name" placeholder="Name" th:value="${pet.name}"/> 47 | </div> 48 | <div class="date field"> 49 | <label for="birthDate">Birth Date</label> 50 | <input type="text" id="birthDate" name="birthDate" placeholder="dd/MM/yyyy" 51 | th:value="${#temporals.format(pet.birthDate, 'dd/MM/yyyy')}"/> 52 | </div> 53 | <div class="field"> 54 | <label>Type</label> 55 | </div> 56 | <div class="grouped inline fields ui segment"> 57 | <div th:each="petType : ${petTypes}" class="field"> 58 | <div class="ui radio checkbox"> 59 | <input type="radio" th:field="*{pet.type}" name="typeId" 60 | th:value="${petType.id}"/> 61 | <label th:text="${petType.name}"/> 62 | </div> 63 | </div> 64 | </div> 65 | <button type="submit" class="ui blue submit button">Save</button> 66 | </form> 67 | </div> 68 | 69 | <div th:include="fragments/bodyFooter" th:remove="tag"></div> 70 | </body> 71 | </html> 72 | -------------------------------------------------------------------------------- /src/main/kotlin/com/yetanotherdevblog/petclinic/handlers/PetsHandler.kt: -------------------------------------------------------------------------------- 1 | package com.yetanotherdevblog.petclinic.handlers 2 | 3 | import com.yetanotherdevblog.petclinic.html 4 | import com.yetanotherdevblog.petclinic.model.Pet 5 | import com.yetanotherdevblog.petclinic.repositories.OwnersRepository 6 | import com.yetanotherdevblog.petclinic.repositories.PetRepository 7 | import com.yetanotherdevblog.petclinic.repositories.PetTypeRepository 8 | import com.yetanotherdevblog.petclinic.toLocalDate 9 | import org.springframework.stereotype.Component 10 | import org.springframework.web.reactive.function.BodyExtractors 11 | import org.springframework.web.reactive.function.server.ServerRequest 12 | import org.springframework.web.reactive.function.server.ServerResponse.ok 13 | 14 | @Component 15 | class PetsHandler(val petRepository: PetRepository, 16 | val ownersRepository: OwnersRepository, 17 | val petTypeRepository: PetTypeRepository, 18 | val ownersHandler: OwnersHandler) { 19 | 20 | fun addPage(serverRequest: ServerRequest) = 21 | ok().html().render("pets/add", mapOf( 22 | "owner" to ownersRepository.findById( 23 | serverRequest.queryParam("ownerId").orElseThrow({IllegalArgumentException()})), 24 | "petTypes" to petTypeRepository.findAll())) 25 | 26 | fun add(serverRequest: ServerRequest) = serverRequest.body(BodyExtractors.toFormData()) 27 | .flatMap { 28 | val formData = it.toSingleValueMap() 29 | petRepository.save(Pet( 30 | name = formData["name"]!!, 31 | birthDate = formData["birthDate"]!!.toLocalDate(), 32 | owner = formData["ownerId"]!!, 33 | type = formData["typeId"]!!)) 34 | } 35 | .then(ownersHandler.indexPage()) 36 | 37 | fun editPage(serverRequest: ServerRequest) = 38 | petRepository.findById(serverRequest.queryParam("id").orElseThrow({IllegalArgumentException()})) 39 | .map { mapOf("pet" to it, 40 | "petTypes" to petTypeRepository.findAll(), 41 | "owner" to ownersRepository.findById(it.owner)) 42 | } 43 | .flatMap { ok().html().render("pets/edit", it) } 44 | 45 | fun edit(serverRequest: ServerRequest) = serverRequest.body(BodyExtractors.toFormData()) 46 | .flatMap { 47 | val formData = it.toSingleValueMap() 48 | petRepository.save(Pet( 49 | id = formData["id"]!!, 50 | name = formData["name"]!!, 51 | birthDate = formData["birthDate"]!!.toLocalDate(), 52 | owner = formData["ownerId"]!!, 53 | type = formData["type"]!!)) 54 | } 55 | .then(ownersHandler.indexPage()) 56 | 57 | } 58 | -------------------------------------------------------------------------------- /src/main/resources/templates/owners/add.html: -------------------------------------------------------------------------------- 1 | <!doctype html> 2 | <html xmlns:th="http://www.thymeleaf.org" lang="en-US"> 3 | <head th:replace="fragments/headTag :: headTag (title='Add Owner')"> 4 | </head> 5 | <body> 6 | <script type="text/javascript"> 7 | $(document).ready(function(){ 8 | $(".ui.form").form({ 9 | firstName : { 10 | identifier : 'firstName', 11 | rules : [ 12 | { 13 | type : 'empty', 14 | prompt : 'Please enter first name' 15 | } 16 | ] 17 | }, 18 | lastName : { 19 | identifier : 'lastName', 20 | rules : [ 21 | { 22 | type : 'empty', 23 | prompt : 'Please enter last name' 24 | } 25 | ] 26 | }, 27 | address : { 28 | identifier : 'address', 29 | rules : [ 30 | { 31 | type : 'empty', 32 | prompt : 'Please enter address' 33 | } 34 | ] 35 | }, 36 | city : { 37 | identifier : 'city', 38 | rules : [ 39 | { 40 | type : 'empty', 41 | prompt : 'Please enter city' 42 | } 43 | ] 44 | }, 45 | telephone : { 46 | identifier : 'telephone', 47 | rules : [ 48 | { 49 | type : 'empty', 50 | prompt : 'Please enter telephone' 51 | } 52 | ] 53 | } 54 | }) 55 | }) 56 | </script> 57 | 58 | <div th:include="fragments/bodyHeader (tab='add owner')" th:remove="tag"></div> 59 | 60 | <div class="container"> 61 | <h1 class="ui header">Add Owner</h1> 62 | 63 | <form method="post" action="add" role="form" class="ui form"> 64 | <div class="field"> 65 | <label for="firstName">First Name</label> 66 | <input type="text" id="firstName" name="firstName" placeholder="First Name"/> 67 | </div> 68 | <div class="field"> 69 | <label for="lastName">Last Name</label> 70 | <input type="text" id="lastName" name="lastName" placeholder="Last Name"/> 71 | </div> 72 | <div class="field"> 73 | <label for="address">Address</label> 74 | <input type="text" id="address" name="address" placeholder="Address"/> 75 | </div> 76 | <div class="field"> 77 | <label for="city">City</label> 78 | <input type="text" id="city" name="city" placeholder="City"/> 79 | </div> 80 | <div class="field"> 81 | <label for="telephone">Telephone</label> 82 | <input type="text" id="telephone" name="telephone" placeholder="Telephone"/> 83 | </div> 84 | <button type="submit" class="ui green submit button">Add</button> 85 | </form> 86 | </div> 87 | 88 | <div th:include="fragments/bodyFooter" th:remove="tag"></div> 89 | </body> 90 | </html> -------------------------------------------------------------------------------- /src/main/resources/templates/owners/view.html: -------------------------------------------------------------------------------- 1 | <!doctype html> 2 | <html xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/html" lang="en-US"> 3 | <head th:replace="fragments/headTag :: headTag (title='Owner')"></head> 4 | <body> 5 | 6 | <div th:include="fragments/bodyHeader (tab='view owner')" th:remove="tag"></div> 7 | 8 | <div class="container"> 9 | <div class="ui grid"> 10 | <div class="twelve wide column"> 11 | <h1 class="ui header">Owner</h1> 12 | </div> 13 | <div class="four wide column"> 14 | <a th:href="@{/owners/edit(id=${owner.id})}" class="small ui right floated button blue">Edit Owner</a> 15 | </div> 16 | </div> 17 | 18 | <table class="ui table segment"> 19 | <tr> 20 | <th>Name</th> 21 | <td><i class="user icon"></i> <span th:text="${owner.firstName + ' ' + owner.lastName}"></span></td> 22 | </tr> 23 | <tr> 24 | <th>Address</th> 25 | <td><i class="map marker icon"></i> <span th:text="${owner.city + ', ' + owner.address}"></span></td> 26 | </tr> 27 | <tr> 28 | <th>Telephone</th> 29 | <td><i class="phone icon"></i> <span th:text="${owner.telephone}"></span></td> 30 | </tr> 31 | </table> 32 | 33 | <div class="ui grid"> 34 | <div class="twelve wide column"> 35 | <h2 class="ui header">Pets and Visits</h2> 36 | </div> 37 | <div class="four wide column"> 38 | <a th:href="@{/pets/add(ownerId=${owner.id})}" class="small ui right floated button green">Add Pet</a> 39 | </div> 40 | </div> 41 | 42 | <table class="ui table segment" th:if="${not pets.isEmpty()}"> 43 | <thead> 44 | <tr> 45 | <th style="width: 25%">Name</th> 46 | <th style="width: 25%">Type</th> 47 | <th style="width: 25%">Visit Date</th> 48 | <th style="width: 25%">Description</th> 49 | </tr> 50 | </thead> 51 | <tbody> 52 | <tr th:each="pet: ${pets}"> 53 | <td style="vertical-align: top"><a th:href="@{/pets/edit(id=${pet.id})}" th:text="${pet.name}"></a></td> 54 | <td style="vertical-align: top" th:text="${petTypes.get(pet.type)}"></td> 55 | <td colspan="2" style="padding: 0"> 56 | <table class="ui table small " style="width: 100%"> 57 | <tr th:each="visit: ${petVisits.get(pet.id)}"> 58 | <td style="width: 50%"> 59 | <a th:text="${#temporals.format(visit.visitDate, 'dd/MM/yyyy')}" th:href="@{/visits/edit(id=${visit.id})}"></a> 60 | </td> 61 | <td th:text="${visit.description}" style="width: 50%"/> 62 | </tr> 63 | <tr> 64 | <td colspan="2"> 65 | <a class="mini ui green button" th:href="@{/visits/add(petId=${pet.id})}">Add Visit</a> 66 | </td> 67 | </tr> 68 | </table> 69 | </td> 70 | </tr> 71 | </tbody> 72 | </table> 73 | </div> 74 | 75 | <div th:include="fragments/bodyFooter" th:remove="tag"></div> 76 | </body> 77 | </html> 78 | -------------------------------------------------------------------------------- /src/main/resources/templates/owners/edit.html: -------------------------------------------------------------------------------- 1 | <!doctype html> 2 | <html xmlns:th="http://www.thymeleaf.org" lang="en-US"> 3 | <head th:replace="fragments/headTag :: headTag (title='Owner')"></head> 4 | <body> 5 | 6 | <script type="text/javascript"> 7 | $(document).ready(function(){ 8 | $(".ui.form").form({ 9 | firstName : { 10 | identifier : 'firstName', 11 | rules : [ 12 | { 13 | type : 'empty', 14 | prompt : 'Please enter first name' 15 | } 16 | ] 17 | }, 18 | lastName : { 19 | identifier : 'lastName', 20 | rules : [ 21 | { 22 | type : 'empty', 23 | prompt : 'Please enter last name' 24 | } 25 | ] 26 | }, 27 | address : { 28 | identifier : 'address', 29 | rules : [ 30 | { 31 | type : 'empty', 32 | prompt : 'Please enter address' 33 | } 34 | ] 35 | }, 36 | city : { 37 | identifier : 'city', 38 | rules : [ 39 | { 40 | type : 'empty', 41 | prompt : 'Please enter city' 42 | } 43 | ] 44 | }, 45 | telephone : { 46 | identifier : 'telephone', 47 | rules : [ 48 | { 49 | type : 'empty', 50 | prompt : 'Please enter telephone' 51 | } 52 | ] 53 | } 54 | }) 55 | }) 56 | </script> 57 | 58 | <div th:include="fragments/bodyHeader (tab='edit owner')" th:remove="tag"></div> 59 | 60 | <div class="container"> 61 | <h1 class="ui header">Edit Owner</h1> 62 | 63 | <form method="post" action="edit" role="form" class="ui form"> 64 | <input type="hidden" id="id" name="id" th:value="${id}"/> 65 | <div class="field"> 66 | <label for="firstName">First Name</label> 67 | <input type="text" id="firstName" name="firstName" placeholder="First Name" th:value="${firstName}"/> 68 | </div> 69 | <div class="field"> 70 | <label for="lastName">Last Name:</label> 71 | <input type="text" id="lastName" name="lastName" placeholder="Last Name" th:value="${lastName}"/> 72 | </div> 73 | <div class="field"> 74 | <label for="address">Address:</label> 75 | <input type="text" id="address" name="address" placeholder="Address" th:value="${address}"/> 76 | </div> 77 | <div class="field"> 78 | <label for="city">City:</label> 79 | <input type="text" id="city" name="city" placeholder="City" th:value="${city}"/> 80 | </div> 81 | <div class="field"> 82 | <label for="telephone">Telephone:</label> 83 | <input type="text" id="telephone" name="telephone" placeholder="Telephone" th:value="${telephone}"/> 84 | </div> 85 | <button type="submit" class="ui blue submit button">Save</button> 86 | </form> 87 | </div> 88 | 89 | <div th:include="fragments/bodyFooter" th:remove="tag"></div> 90 | </body> 91 | </html> -------------------------------------------------------------------------------- /src/main/kotlin/com/yetanotherdevblog/petclinic/handlers/VisitHandler.kt: -------------------------------------------------------------------------------- 1 | package com.yetanotherdevblog.petclinic.handlers 2 | 3 | import com.yetanotherdevblog.petclinic.html 4 | import com.yetanotherdevblog.petclinic.model.Visit 5 | import com.yetanotherdevblog.petclinic.repositories.OwnersRepository 6 | import com.yetanotherdevblog.petclinic.repositories.PetRepository 7 | import com.yetanotherdevblog.petclinic.repositories.VisitRepository 8 | import com.yetanotherdevblog.petclinic.toLocalDate 9 | import com.yetanotherdevblog.petclinic.toStr 10 | import org.springframework.stereotype.Component 11 | import org.springframework.web.reactive.function.BodyExtractors 12 | import org.springframework.web.reactive.function.server.ServerRequest 13 | import org.springframework.web.reactive.function.server.ServerResponse.ok 14 | import java.util.UUID 15 | 16 | @Component 17 | class VisitHandler(val visitRepository: VisitRepository, 18 | val petRepository: PetRepository, 19 | val ownersRepository: OwnersRepository, 20 | val ownersHandler: OwnersHandler) { 21 | 22 | fun addPage(serverRequest: ServerRequest) = 23 | petRepository.findById( 24 | serverRequest.queryParam("petId").orElseThrow { IllegalArgumentException() }) 25 | .flatMap { pet -> 26 | ok().html().render("visits/add", mapOf( 27 | "owner" to ownersRepository.findById(pet.owner), 28 | "pet" to pet)) 29 | } 30 | 31 | fun add(serverRequest: ServerRequest) = 32 | serverRequest.body(BodyExtractors.toFormData()) 33 | .flatMap { 34 | val formData = it.toSingleValueMap() 35 | visitRepository.save(Visit( 36 | id = UUID.randomUUID().toString(), 37 | description = formData["description"]!!, 38 | petId = formData["petId"]!!, 39 | visitDate = formData["date"]!!.toLocalDate())) 40 | } 41 | .then(ownersHandler.indexPage()) 42 | 43 | 44 | fun editPage(serverRequest: ServerRequest) = 45 | visitRepository.findById( 46 | serverRequest.queryParam("id").orElseThrow({ IllegalArgumentException() })) 47 | .and { petRepository.findById(it.petId) } 48 | .map { 49 | val (visit, pet) = Pair(it.t1, it.t2) 50 | mapOf( 51 | Pair("id", visit.id), 52 | Pair("date", visit.visitDate.toStr()), 53 | Pair("description", visit.description), 54 | Pair("pet", pet), 55 | Pair("owner", ownersRepository.findById(pet.owner))) 56 | } 57 | .flatMap { ok().html().render("visits/edit", it) } 58 | 59 | 60 | fun edit(serverRequest: ServerRequest) = 61 | serverRequest.body(BodyExtractors.toFormData()) 62 | .flatMap { 63 | val formData = it.toSingleValueMap() 64 | visitRepository.save(Visit( 65 | id = formData["id"]!!, 66 | visitDate = formData["date"]!!.toLocalDate(), 67 | petId = formData["petId"]!!, 68 | description = formData["description"]!!)) 69 | } 70 | .then(ownersHandler.indexPage()) 71 | 72 | } 73 | -------------------------------------------------------------------------------- /src/test/kotlin/com/yetanotherdevblog/WebsiteTest.kt: -------------------------------------------------------------------------------- 1 | package com.yetanotherdevblog 2 | 3 | import com.yetanotherdevblog.petclinic.model.Owner 4 | import com.yetanotherdevblog.petclinic.repositories.OwnersRepository 5 | import org.junit.Assert 6 | import org.junit.Before 7 | import org.junit.Test 8 | import org.junit.runner.RunWith 9 | import org.springframework.beans.factory.annotation.Autowired 10 | import org.springframework.beans.factory.annotation.Value 11 | import org.springframework.boot.test.context.SpringBootTest 12 | import org.springframework.boot.web.server.LocalServerPort 13 | import org.springframework.http.HttpStatus 14 | import org.springframework.http.MediaType 15 | import org.springframework.test.context.junit4.SpringRunner 16 | import org.springframework.web.reactive.function.client.WebClient 17 | import reactor.core.publisher.test 18 | import java.time.Duration 19 | import java.util.* 20 | 21 | @RunWith(SpringRunner::class) 22 | @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) 23 | class WebsiteTest { 24 | 25 | @LocalServerPort 26 | var port: Int? = null 27 | 28 | lateinit var client: WebClient 29 | 30 | @Autowired 31 | lateinit var ownerRepository: OwnersRepository 32 | 33 | @Before 34 | fun setup() { 35 | client = WebClient.create("http://localhost:$port") 36 | } 37 | 38 | @Test 39 | fun home() { 40 | client.get().uri("/").accept(MediaType.TEXT_HTML) 41 | .exchange() 42 | .test() 43 | .expectNextMatches { it.statusCode() == HttpStatus.OK } 44 | .verifyComplete() 45 | } 46 | 47 | @Test 48 | fun owners() { 49 | client.get().uri("/owners").accept(MediaType.TEXT_HTML) 50 | .exchange() 51 | .test() 52 | .expectNextMatches { it.statusCode() == HttpStatus.OK } 53 | .verifyComplete() 54 | } 55 | 56 | @Test 57 | fun pets() { 58 | 59 | val ownerId = UUID.randomUUID().toString() 60 | 61 | ownerRepository.save(Owner( 62 | id=ownerId, 63 | firstName = "Lorem", 64 | lastName = "Ipsum", 65 | address = "LoremIpsum", 66 | city = "IpsumLorem", 67 | telephone = "1111" 68 | )).block(Duration.ofSeconds(2)) 69 | 70 | client.get().uri("/pets/add?ownerId=$ownerId").accept(MediaType.TEXT_HTML) 71 | .exchange() 72 | .test() 73 | .expectNextMatches { it.statusCode() == HttpStatus.OK } 74 | .verifyComplete() 75 | } 76 | 77 | @Test 78 | fun vets() { 79 | client.get().uri("/vets").accept(MediaType.TEXT_HTML) 80 | .exchange() 81 | .test() 82 | .expectNextMatches { it.statusCode() == HttpStatus.OK } 83 | .verifyComplete() 84 | } 85 | 86 | @Test 87 | fun specialities() { 88 | client.get().uri("/specialities").accept(MediaType.TEXT_HTML) 89 | .exchange() 90 | .test() 91 | .expectNextMatches { it.statusCode() == HttpStatus.OK } 92 | .verifyComplete() 93 | } 94 | 95 | @Test 96 | fun petTypes() { 97 | client.get().uri("/petTypes").accept(MediaType.TEXT_HTML) 98 | .exchange() 99 | .test() 100 | .expectNextMatches { it.statusCode() == HttpStatus.OK } 101 | .verifyComplete() 102 | } 103 | 104 | } -------------------------------------------------------------------------------- /src/main/kotlin/com/yetanotherdevblog/DbInitializer.kt: -------------------------------------------------------------------------------- 1 | package com.yetanotherdevblog 2 | 3 | import com.yetanotherdevblog.petclinic.model.* 4 | import com.yetanotherdevblog.petclinic.repositories.* 5 | import org.springframework.boot.CommandLineRunner 6 | import org.springframework.stereotype.Component 7 | import reactor.core.Disposable 8 | import reactor.core.publisher.Flux 9 | import reactor.core.publisher.Mono 10 | import java.time.LocalDate 11 | import java.util.* 12 | 13 | @Component 14 | class DbInitializer(val petTypeRepository: PetTypeRepository, 15 | val specialityRepository: SpecialityRepository, 16 | val vetRepository: VetRepository, 17 | val ownersRepository: OwnersRepository, 18 | val petRepository: PetRepository, 19 | val visitRepository: VisitRepository): CommandLineRunner { 20 | 21 | override fun run(vararg args: String?) { 22 | 23 | val ownerId = UUID.fromString("5bead0d3-cd7b-41e5-b064-09f48e5e6a08").toString() 24 | val petId = UUID.fromString("6bead0d3-cd7b-41e5-b064-09f48e5e6a08").toString() 25 | val secondPetId = UUID.fromString("6bead0d2-cd7b-41e5-b064-09f48e5e6a08").toString() 26 | val thirdPetId = UUID.fromString("6bead0a3-cd7b-41e5-b064-09f48e5e6a08").toString() 27 | val dogId = UUID.randomUUID().toString() 28 | 29 | petTypeRepository.deleteAll().subscribeOnComplete { 30 | val petTypes = listOf("cat", "lizard", "snake", "bird", "hamster", "dog") 31 | .map { if (it == "dog") PetType(name=it, id = dogId) else PetType(name = it) } 32 | petTypeRepository.saveAll(petTypes) 33 | .subscribeOnComplete { println("Added PetTypes") } 34 | } 35 | 36 | 37 | specialityRepository.deleteAll().subscribeOnComplete { 38 | val specialities = listOf("radiology", "dentistry", "surgery") 39 | .map {Speciality(name = it)} 40 | specialityRepository.saveAll(specialities) 41 | .subscribeOnComplete { println("Added Specialities") } 42 | } 43 | 44 | vetRepository.deleteAll().subscribeOnComplete { 45 | vetRepository.saveAll(listOf( 46 | Vet(firstName = "James", lastName="Carter"), 47 | Vet(firstName = "Helen", lastName="Leary", specialities = setOf("radiology")), 48 | Vet(firstName = "Linda", lastName="Douglas", specialities = setOf("dentistry", "surgery")), 49 | Vet(firstName = "Rafael", lastName="Ortega", specialities = setOf("surgery")), 50 | Vet(firstName = "Henry", lastName="Stevens", specialities = setOf("radiology")), 51 | Vet(firstName = "Sharon", lastName="Jenkins"))) 52 | .subscribeOnComplete { println("Added Vets") } 53 | } 54 | 55 | ownersRepository.deleteAll().subscribeOnComplete { 56 | ownersRepository.saveAll(listOf( 57 | Owner(firstName = "James", lastName="Owner", 58 | telephone = "+44 4444444", address = "Road St", 59 | city = "Serverless", 60 | id = ownerId))) 61 | .subscribeOnComplete { println("Added Owners") } 62 | } 63 | 64 | petRepository.deleteAll().subscribeOnComplete { 65 | petRepository.saveAll(listOf( 66 | Pet(id = petId, name = "Pet 1", birthDate = LocalDate.now(), type = dogId, owner = ownerId), 67 | Pet(id = secondPetId, name = "Pet 2", birthDate = LocalDate.now(), type = dogId, owner = ownerId), 68 | Pet(id = thirdPetId, name = "Pet 3", birthDate = LocalDate.now(), type = dogId, owner = ownerId))) 69 | .subscribeOnComplete { println("Added Pets") } 70 | } 71 | 72 | visitRepository.deleteAll().subscribeOnComplete { 73 | visitRepository.saveAll(listOf( 74 | Visit(visitDate= LocalDate.now(), description = "Visit description ${Random().nextInt()}", petId= petId), 75 | Visit(visitDate= LocalDate.now(), description = "Visit description ${Random().nextInt()}", petId= petId), 76 | Visit(visitDate= LocalDate.now(), description = "Visit description ${Random().nextInt()}", petId= petId), 77 | Visit(visitDate= LocalDate.now(), description = "Visit description ${Random().nextInt()}", petId= secondPetId))) 78 | .subscribeOnComplete { println("Added Visits") } 79 | } 80 | 81 | } 82 | 83 | /** 84 | * Subscribe onComplete only. Used by db populators. 85 | */ 86 | private fun <T> Mono<T>.subscribeOnComplete(completeConsumer: () -> Unit) : Disposable { 87 | return this.subscribe(null, null, completeConsumer) 88 | } 89 | 90 | private fun <T> Flux<T>.subscribeOnComplete(completeConsumer: () -> Unit) : Disposable { 91 | return this.subscribe(null, null, completeConsumer) 92 | } 93 | } 94 | 95 | 96 | -------------------------------------------------------------------------------- /src/main/kotlin/com/yetanotherdevblog/petclinic/PetClinicRoutes.kt: -------------------------------------------------------------------------------- 1 | package com.yetanotherdevblog.petclinic 2 | 3 | import com.yetanotherdevblog.petclinic.handlers.* 4 | import com.yetanotherdevblog.petclinic.handlers.api.OwnersApiHandler 5 | import com.yetanotherdevblog.petclinic.handlers.api.PetsApiHandler 6 | import org.springframework.context.annotation.Bean 7 | import org.springframework.context.annotation.Configuration 8 | import org.springframework.context.annotation.DependsOn 9 | import org.springframework.core.io.ClassPathResource 10 | import org.springframework.http.MediaType 11 | import org.springframework.web.reactive.function.server.RouterFunctions.resources 12 | import org.springframework.web.reactive.function.server.router 13 | 14 | 15 | @Configuration 16 | class PetClinicRoutes() { 17 | 18 | @Bean 19 | @DependsOn("petClinicRouter") 20 | fun resourceRouter() = resources("/**", ClassPathResource("static/")) 21 | 22 | @Bean 23 | fun apiRouter(ownersApiHandler: OwnersApiHandler, petsApiHandler: PetsApiHandler) = 24 | router { 25 | (accept(MediaType.APPLICATION_JSON) and "/api").nest { 26 | "/owners".nest { 27 | GET("/", ownersApiHandler::getOwners) 28 | GET("/{id}", ownersApiHandler::getOwner) 29 | } 30 | "/pets".nest { 31 | GET("/", petsApiHandler::getPets) 32 | GET("/{id}", petsApiHandler::getPet) 33 | GET("/{id}/visits", petsApiHandler::getPetVisits) 34 | } 35 | } 36 | } 37 | 38 | @Bean 39 | fun petClinicRouter(welcomeHandler: WelcomeHandler, 40 | ownersHandler: OwnersHandler, 41 | specialitiesHandler: SpecialitiesHandler, 42 | vetsHandler: VetsHandler, 43 | petsHandler: PetsHandler, 44 | petTypeHandler: PetTypeHandler, 45 | visitHandler: VisitHandler) = 46 | router { 47 | GET("/", welcomeHandler::welcome) 48 | "/owners".nest { 49 | GET("/", ownersHandler::indexPage) 50 | "/add".nest { 51 | GET("/", ownersHandler::addPage) 52 | POST("/", ownersHandler::add) 53 | } 54 | "/edit".nest { 55 | GET("/", ownersHandler::editPage) 56 | POST("/", ownersHandler::edit) 57 | } 58 | "/view".nest { 59 | GET("/", ownersHandler::view) 60 | } 61 | } 62 | "/vets".nest { 63 | GET("/", vetsHandler::indexPage) 64 | "/add".nest { 65 | GET("/", vetsHandler::addPage) 66 | POST("/", vetsHandler::add) 67 | } 68 | "/edit".nest { 69 | GET("/", vetsHandler::editPage) 70 | POST("/", vetsHandler::edit) 71 | } 72 | } 73 | "/pets".nest { 74 | "/add".nest { 75 | GET("/", petsHandler::addPage) 76 | POST("/", petsHandler::add) 77 | } 78 | "/edit".nest { 79 | GET("/", petsHandler::editPage) 80 | POST("/", petsHandler::edit) 81 | } 82 | } 83 | "/visits".nest { 84 | "/add".nest { 85 | GET("/", visitHandler::addPage) 86 | POST("/", visitHandler::add) 87 | } 88 | "/edit".nest { 89 | GET("/", visitHandler::editPage) 90 | POST("/", visitHandler::edit) 91 | } 92 | } 93 | "/specialities".nest { 94 | GET("/", specialitiesHandler::indexPage) 95 | "/add".nest { 96 | GET("/", specialitiesHandler::addPage) 97 | POST("/", specialitiesHandler::add) 98 | } 99 | "/edit".nest { 100 | GET("/", specialitiesHandler::editPage) 101 | POST("/", specialitiesHandler::edit) 102 | } 103 | } 104 | "/petTypes".nest { 105 | GET("/", petTypeHandler::indexPage) 106 | "/add".nest { 107 | GET("/", petTypeHandler::addPage) 108 | POST("/", petTypeHandler::add) 109 | } 110 | "/edit".nest { 111 | GET("/", petTypeHandler::editPage) 112 | POST("/", petTypeHandler::edit) 113 | } 114 | } 115 | 116 | } 117 | 118 | } 119 | 120 | -------------------------------------------------------------------------------- /src/main/kotlin/com/yetanotherdevblog/petclinic/handlers/OwnersHandler.kt: -------------------------------------------------------------------------------- 1 | package com.yetanotherdevblog.petclinic.handlers 2 | 3 | import com.yetanotherdevblog.petclinic.html 4 | import com.yetanotherdevblog.petclinic.repositories.OwnersRepository 5 | 6 | import com.yetanotherdevblog.petclinic.model.Owner 7 | import com.yetanotherdevblog.petclinic.model.Pet 8 | import com.yetanotherdevblog.petclinic.model.Visit 9 | import com.yetanotherdevblog.petclinic.repositories.PetRepository 10 | import com.yetanotherdevblog.petclinic.repositories.PetTypeRepository 11 | import org.springframework.data.mongodb.core.ReactiveMongoTemplate 12 | import org.springframework.data.mongodb.core.query.Criteria 13 | import org.springframework.data.mongodb.core.query.Criteria.* 14 | import org.springframework.data.mongodb.core.query.Query 15 | import org.springframework.stereotype.Component 16 | import org.springframework.web.reactive.function.BodyExtractors 17 | import org.springframework.web.reactive.function.server.ServerRequest 18 | import org.springframework.web.reactive.function.server.ServerResponse 19 | import org.springframework.web.reactive.function.server.ServerResponse.ok 20 | import reactor.core.publisher.Mono 21 | import reactor.util.function.component1 22 | import reactor.util.function.component2 23 | import java.util.UUID 24 | 25 | @Component 26 | class OwnersHandler(val ownersRepository: OwnersRepository, 27 | val petRepository: PetRepository, 28 | val petTypeRepository: PetTypeRepository, 29 | val mongoTemplate: ReactiveMongoTemplate) { 30 | 31 | fun indexPage(serverRequest: ServerRequest) = 32 | serverRequest.queryParam("q").filter { it.trim().isNotEmpty() } 33 | .map { indexPageWithQuery(it) } 34 | .orElse(indexPage()) 35 | 36 | fun addPage(serverRequest: ServerRequest) = ok().html().render("owners/add") 37 | 38 | fun editPage(serverRequest: ServerRequest) = 39 | serverRequest.queryParam("id") 40 | .map { ownersRepository.findById(it) } 41 | .orElse(Mono.empty<Owner>()) 42 | .map { mapOf("id" to it.id, 43 | "firstName" to it.firstName, 44 | "lastName" to it.lastName, 45 | "address" to it.address, 46 | "city" to it.city, 47 | "telephone" to it.telephone) 48 | } 49 | .flatMap { ok().html().render("owners/edit", it) } 50 | 51 | fun view(serverRequest: ServerRequest) = 52 | serverRequest.queryParam("id").map { ownersRepository.findById(it) }.orElse(Mono.empty<Owner>()) 53 | .and({ (id) -> petRepository.findAllByOwner(id).collectList() }) 54 | .flatMap { (owner, pets) -> 55 | val model = mapOf<String, Any>( 56 | "owner" to owner, 57 | "pets" to pets, 58 | "petTypes" to petTypeRepository.findAll().collectMap({ it.id }, {it.name}), 59 | "petVisits" to petVisits(pets.map { it.id })) 60 | ok().html().render("owners/view", model) 61 | } 62 | .switchIfEmpty(ServerResponse.notFound().build()) 63 | 64 | fun petVisits(petIds: List<String>) = 65 | mongoTemplate.find(Query(where("petId").`in`(petIds) ), Visit::class.java) 66 | .collectMultimap { it.petId } 67 | 68 | fun add(serverRequest: ServerRequest) = serverRequest.body(BodyExtractors.toFormData()) 69 | .flatMap { 70 | val formData = it.toSingleValueMap() 71 | ownersRepository.save(Owner( 72 | id = formData["id"] ?: UUID.randomUUID().toString(), 73 | firstName = formData["firstName"]!!, 74 | lastName = formData["lastName"]!!, 75 | address = formData["address"]!!, 76 | telephone = formData["telephone"]!!, 77 | city = formData["city"]!!)) 78 | } 79 | .then(indexPage()) 80 | 81 | fun edit(serverRequest: ServerRequest) = 82 | serverRequest.queryParam("id").map { ownersRepository.findById(it) }.orElse(Mono.empty<Owner>()) 83 | .flatMap { ownersRepository.save(it) } 84 | .flatMap { ok().render("owners/edit", it) } 85 | 86 | fun indexPageWithQuery(query:String) = ok().html().render("owners/index", 87 | mapOf("owners" to findByNameLike(query) 88 | .map { Pair(it, emptySet<Pet>()) }, 89 | "pets" to petRepository.findAll().collectMultimap { it.owner })) 90 | 91 | fun indexPage(): Mono<ServerResponse> = ok().html().render("owners/index", 92 | mapOf("owners" to ownersRepository.findAll().map { Pair(it, emptySet<Pet>()) }, 93 | "pets" to petRepository.findAll().collectMultimap { it.owner })) 94 | 95 | fun findByNameLike(query:String) = mongoTemplate.find( 96 | Query(Criteria().orOperator( 97 | where("firstName").regex(query, "i"), 98 | where("lastName").regex(query, "i"))), Owner::class.java) 99 | 100 | } -------------------------------------------------------------------------------- /src/test/kotlin/com/yetanotherdevblog/CollectionTests.kt: -------------------------------------------------------------------------------- 1 | package com.yetanotherdevblog 2 | 3 | import com.yetanotherdevblog.petclinic.model.Owner 4 | import org.junit.Assert.* 5 | import org.junit.Test 6 | import java.util.* 7 | 8 | class CollectionTests { 9 | 10 | val orderedList = listOf(1, 2, 3, 4, 5, 6, 7, 8, 9, 10) 11 | val unOrderedList = mutableListOf(orderedList).shuffle() 12 | 13 | 14 | @Test 15 | fun `any`() { 16 | assertTrue(orderedList.any()) 17 | assertFalse(orderedList.any( { it == 0 } )) 18 | } 19 | 20 | @Test 21 | fun `all`() { 22 | assertTrue(orderedList.all( { it > 0 } )) 23 | assertFalse(orderedList.all( { it > 10 } )) 24 | } 25 | 26 | @Test 27 | fun `count`() { 28 | assertEquals(10, orderedList.count()) 29 | assertEquals(0, orderedList.count( { it > 10 } )) 30 | } 31 | 32 | @Test 33 | fun `fold`() { 34 | assertEquals(55, orderedList.fold(0) { 35 | acc, next -> acc + next 36 | }) 37 | assertEquals(97, orderedList.fold (42) { 38 | acc, next -> acc + next 39 | }) 40 | 41 | // compress list of chars 42 | assertEquals("abcdefgh".toList(), 43 | "aaaabbbbcccddddeeeeffffggghh".toList() 44 | .fold(emptyList<Char>()) { result, value -> 45 | if (result.isNotEmpty() && result.last() == value) result 46 | else result + value 47 | }) 48 | } 49 | 50 | @Test 51 | fun `foldRight`() { 52 | // compress list of chars and reverse 53 | assertEquals("hgfedcba".toList(), 54 | "aaaabbbbcccddddeeeeffffggghh".toList() 55 | .foldRight(emptyList<Char>(), { value: Char, result: List<Char> -> 56 | if (result.isNotEmpty() && result.last() == value) result 57 | else result + value 58 | })) 59 | } 60 | 61 | @Test 62 | fun `forEach`() { 63 | orderedList.forEach { println(it) } 64 | orderedList.forEachIndexed { index, i -> println("$index -> $i") } 65 | unOrderedList.forEachIndexed { index, i -> println("$index -> $i") } 66 | } 67 | 68 | @Test 69 | fun `max`() { 70 | assertEquals(orderedList.last(), orderedList.max()) 71 | assertEquals(orderedList.first(), orderedList.maxBy({ -it})) 72 | } 73 | 74 | @Test 75 | fun `min`() { 76 | assertEquals(orderedList.first(), orderedList.min()) 77 | assertEquals(orderedList.last(), orderedList.minBy({ -it})) 78 | } 79 | 80 | @Test 81 | fun `none`() { 82 | assertTrue(orderedList.none { it == Int.MAX_VALUE }) 83 | } 84 | 85 | @Test 86 | fun `reduce,reduceRight`() { 87 | assertEquals(55, orderedList.reduce { total, next -> total + next }) 88 | assertEquals(10, listOf(1, 2, 3, 4).reduceRight { total, next -> total + next }) 89 | 90 | } 91 | 92 | // Filtering 93 | 94 | @Test 95 | fun `drop`() { 96 | orderedList.drop(1) 97 | } 98 | 99 | @Test 100 | fun `dropWhile`() { 101 | orderedList.dropWhile { it < 10 } 102 | } 103 | 104 | @Test 105 | fun `dropLastWhile`() { 106 | orderedList.dropLastWhile { it < 10 } 107 | } 108 | 109 | 110 | @Test 111 | fun `filter`() { 112 | orderedList.filter { it < 10 } 113 | orderedList.filterNot { it < 10 } 114 | orderedList.filterNotNull() 115 | orderedList.filterIsInstance(Owner::class.java) 116 | } 117 | 118 | @Test 119 | fun `slice`() { 120 | orderedList.slice(1..3) 121 | orderedList.slice(listOf(1, 2, 3)) 122 | } 123 | 124 | @Test 125 | fun `take`() { 126 | orderedList.take(2) 127 | orderedList.takeLast(2) 128 | orderedList.takeWhile { it > 0 } 129 | orderedList.takeLastWhile { it > 0 } 130 | } 131 | 132 | // mapping functions 133 | 134 | // @Test 135 | // fun `flatMap`() { 136 | // 137 | // assertEquals(listOf(1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7), 138 | // list.flatMap { listOf(it, it + 1) }) 139 | // 140 | // } 141 | // ``` 142 | // 143 | // ### groupBy 144 | // 145 | // Returns a map of the elements in original collection grouped by the result of given 146 | // function 147 | // 148 | // ```kotlin 149 | // assertEquals(mapOf("odd" to listOf(1, 3, 5), "even" to listOf(2, 4, 6)), 150 | // list.groupBy { if (it % 2 == 0) "even" else "odd" }) 151 | // ``` 152 | // 153 | // ### map 154 | // 155 | // Returns a list containing the results of applying the given transform function to each 156 | // element of the original collection. 157 | // 158 | // ```kotlin 159 | // assertEquals(listOf(2, 4, 6, 8, 10, 12), list.map { it * 2 }) 160 | // ``` 161 | // 162 | // ### mapIndexed 163 | // 164 | // Returns a list containing the results of applying the given transform function to each 165 | // element and its index of the original collection. 166 | // 167 | // ```kotlin 168 | // assertEquals(listOf (0, 2, 6, 12, 20, 30), list.mapIndexed { index, it 169 | // -> index * it }) 170 | // ``` 171 | // 172 | // ### mapNotNull 173 | // 174 | // Returns a list containing the results of applying the given transform function to each 175 | // non-null element of the original collection. 176 | // 177 | // ```kotlin 178 | // assertEquals(listOf(2, 4, 6, 8), listWithNull.mapNotNull { it * 2 }) 179 | 180 | } 181 | 182 | private fun <E> MutableList<E>.shuffle(): MutableList<E> { 183 | val rg : Random = Random() 184 | for (i in 0..this.count() - 1) { 185 | val randomPosition = rg.nextInt(this.size) 186 | val tmp : E = this[i] 187 | this[i] = this[randomPosition] 188 | this[randomPosition] = tmp 189 | } 190 | return this 191 | } 192 | 193 | -------------------------------------------------------------------------------- /gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Attempt to set APP_HOME 10 | # Resolve links: $0 may be a link 11 | PRG="$0" 12 | # Need this for relative symlinks. 13 | while [ -h "$PRG" ] ; do 14 | ls=`ls -ld "$PRG"` 15 | link=`expr "$ls" : '.*-> \(.*\)$'` 16 | if expr "$link" : '/.*' > /dev/null; then 17 | PRG="$link" 18 | else 19 | PRG=`dirname "$PRG"`"/$link" 20 | fi 21 | done 22 | SAVED="`pwd`" 23 | cd "`dirname \"$PRG\"`/" >/dev/null 24 | APP_HOME="`pwd -P`" 25 | cd "$SAVED" >/dev/null 26 | 27 | APP_NAME="Gradle" 28 | APP_BASE_NAME=`basename "$0"` 29 | 30 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 31 | DEFAULT_JVM_OPTS="" 32 | 33 | # Use the maximum available, or set MAX_FD != -1 to use that value. 34 | MAX_FD="maximum" 35 | 36 | warn ( ) { 37 | echo "$*" 38 | } 39 | 40 | die ( ) { 41 | echo 42 | echo "$*" 43 | echo 44 | exit 1 45 | } 46 | 47 | # OS specific support (must be 'true' or 'false'). 48 | cygwin=false 49 | msys=false 50 | darwin=false 51 | nonstop=false 52 | case "`uname`" in 53 | CYGWIN* ) 54 | cygwin=true 55 | ;; 56 | Darwin* ) 57 | darwin=true 58 | ;; 59 | MINGW* ) 60 | msys=true 61 | ;; 62 | NONSTOP* ) 63 | nonstop=true 64 | ;; 65 | esac 66 | 67 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 68 | 69 | # Determine the Java command to use to start the JVM. 70 | if [ -n "$JAVA_HOME" ] ; then 71 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 72 | # IBM's JDK on AIX uses strange locations for the executables 73 | JAVACMD="$JAVA_HOME/jre/sh/java" 74 | else 75 | JAVACMD="$JAVA_HOME/bin/java" 76 | fi 77 | if [ ! -x "$JAVACMD" ] ; then 78 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 79 | 80 | Please set the JAVA_HOME variable in your environment to match the 81 | location of your Java installation." 82 | fi 83 | else 84 | JAVACMD="java" 85 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 86 | 87 | Please set the JAVA_HOME variable in your environment to match the 88 | location of your Java installation." 89 | fi 90 | 91 | # Increase the maximum file descriptors if we can. 92 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then 93 | MAX_FD_LIMIT=`ulimit -H -n` 94 | if [ $? -eq 0 ] ; then 95 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 96 | MAX_FD="$MAX_FD_LIMIT" 97 | fi 98 | ulimit -n $MAX_FD 99 | if [ $? -ne 0 ] ; then 100 | warn "Could not set maximum file descriptor limit: $MAX_FD" 101 | fi 102 | else 103 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 104 | fi 105 | fi 106 | 107 | # For Darwin, add options to specify how the application appears in the dock 108 | if $darwin; then 109 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 110 | fi 111 | 112 | # For Cygwin, switch paths to Windows format before running java 113 | if $cygwin ; then 114 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 115 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 116 | JAVACMD=`cygpath --unix "$JAVACMD"` 117 | 118 | # We build the pattern for arguments to be converted via cygpath 119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 120 | SEP="" 121 | for dir in $ROOTDIRSRAW ; do 122 | ROOTDIRS="$ROOTDIRS$SEP$dir" 123 | SEP="|" 124 | done 125 | OURCYGPATTERN="(^($ROOTDIRS))" 126 | # Add a user-defined pattern to the cygpath arguments 127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 129 | fi 130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 131 | i=0 132 | for arg in "$@" ; do 133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 135 | 136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 138 | else 139 | eval `echo args$i`="\"$arg\"" 140 | fi 141 | i=$((i+1)) 142 | done 143 | case $i in 144 | (0) set -- ;; 145 | (1) set -- "$args0" ;; 146 | (2) set -- "$args0" "$args1" ;; 147 | (3) set -- "$args0" "$args1" "$args2" ;; 148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 154 | esac 155 | fi 156 | 157 | # Escape application args 158 | save ( ) { 159 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done 160 | echo " " 161 | } 162 | APP_ARGS=$(save "$@") 163 | 164 | # Collect all arguments for the java command, following the shell quoting and substitution rules 165 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" 166 | 167 | # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong 168 | if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then 169 | cd "$(dirname "$0")" 170 | fi 171 | 172 | exec "$JAVACMD" "$@" 173 | -------------------------------------------------------------------------------- /src/main/resources/static/resources/fonts/basic.icons.svg: -------------------------------------------------------------------------------- 1 | <?xml version="1.0" standalone="no"?> 2 | <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" > 3 | <svg xmlns="http://www.w3.org/2000/svg"> 4 | <metadata> 5 | Created by FontForge 20100429 at Thu Sep 20 22:09:47 2012 6 | By root 7 | Copyright (C) 2012 by original authors @ fontello.com 8 | </metadata> 9 | <defs> 10 | <font id="icons" horiz-adv-x="947" > 11 | <font-face 12 | font-family="icons" 13 | font-weight="500" 14 | font-stretch="normal" 15 | units-per-em="1000" 16 | panose-1="2 0 6 3 0 0 0 0 0 0" 17 | ascent="800" 18 | descent="-200" 19 | bbox="-0.666667 -200.023 1350 801.8" 20 | underline-thickness="50" 21 | underline-position="-100" 22 | unicode-range="U+002B-1F6AB" 23 | /> 24 | <missing-glyph horiz-adv-x="364" 25 | d="M33 0v666h265v-666h-265zM66 33h199v600h-199v-600z" /> 26 | <glyph glyph-name=".notdef" horiz-adv-x="364" 27 | d="M33 0v666h265v-666h-265zM66 33h199v600h-199v-600z" /> 28 | <glyph glyph-name=".null" horiz-adv-x="0" 29 | /> 30 | <glyph glyph-name="nonmarkingreturn" horiz-adv-x="333" 31 | /> 32 | <glyph glyph-name="plus" unicode="+" horiz-adv-x="610" 33 | d="M565 350q19 0 24.5 -12.5t5.5 -37.5q0 -17 -1.5 -26t-8.5 -16.5t-20 -7.5h-210v-210q0 -19 -12.5 -24.5t-37.5 -5.5q-17 0 -26 1.5t-16.5 8.5t-7.5 20v210h-210q-19 0 -24.5 12.5t-5.5 37.5q0 17 1.5 26t8.5 16.5t20 7.5h210v210q0 19 12.5 24.5t37.5 5.5q17 0 26 -1.5 34 | t16.5 -8.5t7.5 -20v-210h210z" /> 35 | <glyph glyph-name="hyphen" unicode="-" horiz-adv-x="610" 36 | d="M565 350q19 0 24.5 -12.5t5.5 -37.5q0 -17 -1.5 -26t-8.5 -16.5t-20 -7.5h-520q-19 0 -24.5 12.5t-5.5 37.5q0 17 1.5 26t8.5 16.5t20 7.5h520z" /> 37 | <glyph glyph-name="at" unicode="@" horiz-adv-x="923" 38 | d="M849 516q25 -64 25 -138q0 -103 -46 -182q-59 -92 -163 -92q-43 0 -70 21q-21 15 -30 36q-43 -55 -114 -55q-81 0 -122 58q-41 52 -41 141q0 91 48 147q53 64 142 64q52 0 90 -37l7 26h85l-18 -259q-2 -32 9 -44q7 -7 20 -7q35 0 60 34.5t34 73.5t9 75q0 108 -68 176 39 | q-75 76 -208 76q-128 0 -214 -76q-102 -92 -102 -245q0 -133 86 -221q81 -82 204 -82q137 0 242 46l15 8v-96l-7 -3q-101 -50 -251 -50q-165 0 -269 97q-123 112 -123 308q0 182 116 294q57 56 133 84q77 31 168 31q178 0 284 -106q46 -44 69 -103zM465 199q46 0 69 40 40 | q17 31 17 85q0 45 -16 74q-20 28 -60 28q-44 0 -64 -38q-19 -33 -19 -83q0 -23 4 -43.5t21.5 -41.5t47.5 -21z" /> 41 | <glyph glyph-name="h" unicode="h" horiz-adv-x="1228" 42 | d="M281 54q0 56 32 138q56 164 76 215q31 82 51 144h-25h-31h-26q-51 10 -51 51q0 51 51 51h564q51 0 51 -51q0 -41 -36 -47q-15 -5 -31 -4h-15h-20h-32q11 -41 52 -144q61 -164 77 -210q30 -92 30 -143q0 -46 -40 -87q-31 -31 -87 -31h-461q-51 0 -93 31q-36 46 -36 87z 43 | M481 345h318l-67 206h-184z" /> 44 | <glyph glyph-name="uni2139" unicode="ℹ" horiz-adv-x="490" 45 | d="M367 800q48 0 74 -28t26 -70q0 -50 -39 -88t-95 -38q-47 0 -73.5 27t-25.5 73q0 45 36 84.5t97 39.5zM160 -200q-29 0 -45.5 13.5t-22.5 52.5t14 110l60 255q15 57 0 57q-13 0 -54.5 -18t-70.5 -38l-26 44q91 77 190 125t150 48q26 0 38.5 -20t11 -55.5t-14.5 -85.5 46 | l-69 -268q-16 -63 5 -63q15 0 49.5 16t69.5 44l30 -41q-84 -86 -175 -131t-140 -45z" /> 47 | <glyph glyph-name="arrowleft" unicode="←" horiz-adv-x="789" 48 | d="M0 329q0 20 15 35l345 346q15 15 35 15t34 -15l52 -52q15 -14 15 -34t-15 -35l-174 -174h433q21 0 35 -14t14 -35v-74q0 -20 -14 -34t-34 -14h-434l174 -174q15 -15 15 -35t-15 -34l-52 -52q-14 -15 -34 -15t-35 15l-345 345q-15 15 -15 35z" /> 49 | <glyph glyph-name="arrowup" unicode="↑" horiz-adv-x="789" 50 | d="M-0.5 329q-0.5 20 14.5 35l346 345q15 15 35 15t34 -15l346 -345q14 -15 14 -35t-14 -35l-52 -51q-15 -15 -34.5 -15t-33.5 15l-175 173v-433q0 -20 -14 -34.5t-34 -14.5h-74q-21 0 -35 14.5t-14 34.5v433l-173 -173q-15 -15 -35 -15t-35 15l-51 51q-15 15 -15.5 35z" /> 51 | <glyph glyph-name="arrowright" unicode="→" horiz-adv-x="789" 52 | d="M0 293v74q0 20 14 34t34 14h434l-174 174q-14 15 -14 35t14 34l52 52q15 15 35 15t34 -15l346 -346q14 -15 14 -34.5t-14 -34.5l-346 -346q-14 -15 -34 -15t-35 15l-52 52q-14 14 -14 34t14 35l174 174h-434q-20 0 -34 14t-14 35z" /> 53 | <glyph glyph-name="arrowdown" unicode="↓" horiz-adv-x="789" 54 | d="M0 328q0 20 15 35l51 51q15 15 35 15t35 -15l173 -173v433q0 20 14.5 34.5t34.5 14.5h74q21 0 34.5 -14.5t13.5 -34.5v-433l175 173q14 15 33.5 15t34.5 -15l53 -51q15 -15 15 -35t-15 -35l-347 -345q-14 -15 -34 -15t-35 15l-345 345q-15 15 -15 35z" /> 55 | <glyph glyph-name="house" unicode="⌂" horiz-adv-x="930" 56 | d="M903 285q16 -16 11 -27.5t-28 -11.5h-83v-308q0 -14 -1.5 -21t-8.5 -13.5t-22 -6.5h-204v310h-204v-310h-195q-19 0 -28.5 6.5t-11 13.5t-1.5 21v308h-83q-23 0 -28 11.5t11 27.5l401 401q16 16 37 16t37 -16z" /> 57 | <glyph glyph-name="uni25B4" unicode="▴" horiz-adv-x="490" 58 | d="M15 100l230 400l230 -400h-460z" /> 59 | <glyph glyph-name="uni25B8" unicode="▸" horiz-adv-x="430" 60 | d="M15 530l400 -230l-400 -230v460z" /> 61 | <glyph glyph-name="uni25BE" unicode="▾" horiz-adv-x="490" 62 | d="M475 500l-230 -400l-230 400h460z" /> 63 | <glyph glyph-name="uni25C2" unicode="◂" horiz-adv-x="430" 64 | d="M415 530v-460l-400 230z" /> 65 | <glyph glyph-name="uni2601" unicode="☁" horiz-adv-x="1291" 66 | d="M1292 155q0 -100 -68 -173.5t-167 -80.5v-1h-783v1q-7 -1 -19 -1q-106 0 -180.5 74.5t-74.5 180.5q0 66 33.5 124.5t90.5 92.5q-7 29 -7 56q0 106 74.5 180.5t180.5 74.5q92 0 167 -63q39 82 116 131t167 49q129 0 221 -92t92 -221q0 -50 -15 -93q77 -26 124.5 -92.5 67 | t47.5 -146.5z" /> 68 | <glyph glyph-name="uni2611" unicode="☑" 69 | d="M0 92v474q0 32 12.5 61t33.5 50t50 34t62 13h553q13 0 26 -3l-96 -96h-483q-24 0 -41.5 -17.5t-17.5 -41.5v-474q0 -24 17.5 -41.5t41.5 -17.5h553q24 0 41 17.5t17 41.5v167l99 99v-266q0 -33 -12.5 -61t-34 -50t-50 -34.5t-60.5 -12.5h-553q-33 0 -62 12.5t-50 34.5 70 | t-33.5 50t-12.5 61zM198 431q0 17 11 28l51 51q12 12 28.5 12t28.5 -12l175 -175l335 337q12 12 29.5 12t28.5 -12l51 -50q11 -12 11 -29t-11 -28l-365 -366l-51 -50q-12 -12 -28.5 -12t-28.5 12l-51 50l-203 204q-11 11 -11 28z" /> 71 | <glyph glyph-name="uni2661" unicode="♡" horiz-adv-x="880" 72 | d="M795 591q70 -65 70 -156t-70 -156l-355 -330l-355 330q-70 65 -70 156t70 156q62 58 149.5 58t149.5 -58l56 -52l56 52q62 58 149.5 58t149.5 -58zM743 330q42 38 42 105t-37 100q-42 39 -102 39q-49 0 -102 -49l-104 -91l-104 91q-53 49 -102 49q-60 0 -102 -39 73 | q-37 -33 -37 -100t42 -105l303 -286z" /> 74 | <glyph glyph-name="heart" unicode="♥" horiz-adv-x="890" 75 | d="M804 591q70 -65 70 -156t-70 -156l-359 -330l-359 330q-70 65 -70 156t70 156q63 58 151 58t151 -58l57 -52l57 52q63 58 151 58t151 -58z" /> 76 | <glyph glyph-name="uni2691" unicode="⚑" 77 | d="M0 645q0 32 23 55.5t56 23.5t56 -23.5t23 -55.5q0 -21 -10.5 -38.5t-28.5 -29.5v-623q0 -8 -6 -14t-14 -6h-40q-8 0 -13.5 6t-5.5 14v623q-18 12 -29 29.5t-11 38.5zM158 148v383q0 17 10 34t25 25q53 28 96.5 44t73.5 23q36 9 64 10q35 0 64 -6t55.5 -15.5t51.5 -21.5 78 | l50 -27q33 -14 75 -16q36 -3 84.5 7t106.5 45q14 9 23.5 3.5t9.5 -22.5v-384q0 -16 -9.5 -33.5t-23.5 -25.5q-58 -35 -106.5 -45t-84.5 -8q-42 3 -75 17l-50 27q-25 12 -51.5 21.5t-55.5 15.5t-64 6q-28 -1 -64 -10q-30 -7 -73.5 -23t-96.5 -45q-15 -9 -25 -2.5t-10 23.5z 79 | " /> 80 | <glyph glyph-name="uni2699" unicode="⚙" horiz-adv-x="787" 81 | d="M0 271v117q0 7 7 9q20 6 42 9t43 5q4 0 8 0.5t9 1.5l11 29q6 14 14 29l-28 39q-15 20 -32 39q-6 5 0 13q20 24 42 46t46 42q5 5 13 0q11 -12 23.5 -21.5t24.5 -17.5q8 -5 15 -11t15 -11q27 15 58 24q3 30 6 54.5t8 47.5q2 9 10 9h117q9 0 9 -9q4 -20 7 -40l6 -41l3 -21 82 | q15 -5 29 -10.5t28 -13.5l14 10l12 10l28 19q13 10 26 22q6 6 12 -1l12 -12q5 -5 11 -10l32 -31l31 -34q4 -7 0 -13q-14 -16 -28 -35l-31 -42q15 -30 25 -61q13 -3 26 -4.5t27 -3.5q11 -2 24 -4l25 -4q7 -2 7 -9v-117q0 -7 -7 -10q-19 -5 -40 -7.5t-42 -4.5q-5 -1 -10 -1.5 83 | t-10 -1.5q-5 -15 -11 -29l-13 -29q12 -18 27.5 -38.5t32.5 -39.5q5 -5 0 -13q-40 -49 -89 -88q-5 -5 -12 0q-12 11 -24 20.5t-25 18.5q-7 5 -14.5 11t-14.5 11q-28 -15 -58 -24q-2 -25 -6 -51t-10 -51q-2 -9 -9 -9h-117q-8 0 -10 9q-3 20 -5.5 40t-5.5 41l-3 21l-29 10 84 | q-15 5 -28 14l-14 -10l-13 -10q-27 -19 -53 -41q-7 -6 -13 1l-11 11l-12 11l-32 31q-15 16 -30 34q-5 7 0 13q16 19 30 39l29 38q-16 30 -26 61q-12 3 -25 4.5t-26 3.5t-26 3.5t-25 4.5q-7 2 -7 9zM275 329q0 -25 9.5 -46.5t25.5 -37.5t37.5 -25.5t46 -9.5t46 9.5t37.5 25.5 85 | t25.5 37.5t9.5 46.5q0 24 -9.5 45.5t-25.5 37.5t-37.5 25.5t-46 9.5t-46 -9.5t-37.5 -25.5t-25.5 -37.5t-9.5 -45.5z" /> 86 | <glyph glyph-name="uni26A0" unicode="⚠" horiz-adv-x="894" 87 | d="M5.5 -41q-14.5 25 6.5 59l387 671q19 35 48 35q28 0 49 -35l387 -671q20 -34 6 -59t-54 -25h-775q-40 0 -54.5 25zM168 53h558l-279 483zM389 391q0 6 4.5 10.5t9.5 4.5h89q5 0 9 -4.5t4 -10.5l-7 -192q0 -12 -14 -12h-73q-14 0 -14 12zM392 133q0 14 13 14h82 88 | q14 0 14 -14l1 -51q0 -14 -14 -14h-82q-13 0 -13 14z" /> 89 | <glyph glyph-name="uni26A1" unicode="⚡" horiz-adv-x="430" 90 | d="M55 -150q-4 3 35 92l79 182q40 93 38 99t-94.5 45t-97.5 54q-4 12 84 120.5t179.5 210t96.5 97.5t-74.5 -186t-77.5 -188q1 -3 95 -42.5t97 -56.5q3 -20 -174 -226t-186 -201z" /> 91 | <glyph glyph-name="uni26EF" unicode="⛯" 92 | d="M0 346v88q0 7 5 7q15 4 31 6l32 4q5 0 8 0.5t7 0.5q6 22 18 44q-9 15 -21 30l-24 29q-5 6 0 10q15 18 31.5 35t34.5 32q6 4 10 -1q8 -8 18 -15l18 -14l23 -16q22 11 44 18q2 22 4.5 41t6.5 37q0 5 7 5h88q7 0 7 -6q3 -15 5.5 -30.5t4.5 -31.5l2 -15q21 -7 43 -18l20 15 93 | l21 15q10 8 19 16q6 4 10 -1q5 -4 9 -8l9 -9l23 -23l24 -26q3 -6 0 -10q-11 -11 -22 -25l-23 -33q6 -11 11 -23l9 -23q8 -2 18 -3t21 -3l19 -2q9 -1 17 -4q7 -2 7 -7v-88q0 -6 -6 -8q-14 -3 -31 -5l-32 -4q-4 0 -14 -2q-7 -21 -18 -43q9 -15 20.5 -30t24.5 -29q4 -6 0 -10 94 | q-15 -18 -31.5 -35t-34.5 -32q-7 -4 -10 1q-8 7 -17.5 14.5t-19.5 13.5q-5 6 -11 9.5t-11 7.5q-22 -11 -44 -18q-2 -18 -4 -38.5t-8 -39.5q-2 -5 -7 -5h-88q-7 0 -7 5q-3 15 -5 31l-4 31l-2 16q-21 7 -43 18l-10 -7q-5 -3 -10 -8l-21 -15q-10 -8 -19 -16q-7 -4 -10 1 95 | q-5 4 -8 8l-10 9l-24 22q-12 12 -23 27q-4 4 0 9q12 14 23.5 29.5t20.5 29.5q-10 21 -19 46q-8 2 -18 3t-21 3l-19 2q-9 1 -19 3q-5 3 -5 8zM207 389q0 -37 26.5 -63.5t63.5 -26.5t63 26.5t26 63.5t-26 63t-63 26t-63.5 -26t-26.5 -63zM552 132q-3 6 4 9l22 8q10 4 22 8 96 | q1 6 1.5 10t2.5 9.5t3.5 9t4.5 8.5q-8 11 -14 21t-13 20q-3 6 2 9l66 59q4 4 9 1l18 -15l19 -16q19 8 37 9q5 11 11 21.5t11 20.5q3 5 8 3l85 -26q5 -3 5 -9q-2 -11 -4.5 -22.5t-4.5 -22.5q9 -6 15 -13.5t12 -16.5q12 1 23.5 1.5t23.5 0.5q5 0 7 -5l19 -87q2 -5 -4 -8 97 | q-11 -5 -21 -9l-23 -7q-1 -6 -1.5 -10t-2.5 -9.5t-4 -9t-4 -7.5l15 -21l12 -20q2 -5 -2 -9l-66 -60q-4 -4 -9 0q-9 8 -18.5 15t-17.5 15q-21 -8 -39 -9l-10 -22l-11 -20q-3 -5 -8 -3l-85 26q-5 3 -5 9q2 11 3.5 23t4.5 23q-15 13 -26 29q-12 -2 -24.5 -3t-23.5 1q-5 0 -8 5z 98 | M589 573q0 5 6 8q10 2 20.5 4.5t21.5 4.5q2 4 3 8.5t3 8.5t5 7t5 8q-6 10 -10 20l-8 20q-2 4 2 8l67 44q5 3 9 -1q8 -7 15 -15l14 -16q17 3 35 3q12 19 25 34q3 4 9 3l72 -36q5 -3 3 -9q-2 -10 -5.5 -19.5t-6.5 -20.5q10 -13 19 -30q11 -1 22 -1.5t22 -2.5q5 -2 5 -7l5 -81 99 | q0 -4 -5 -6q-10 -2 -20 -5l-22 -5q-2 -4 -3 -7.5t-3 -7.5q-3 -8 -9 -15q6 -11 10 -21t8 -19q2 -5 -3 -8l-66 -45q-6 -3 -9 1q-13 13 -29 32q-9 -2 -18 -3t-18 0q-6 -10 -12 -19l-13 -17q-3 -3 -9 -1l-72 36q-6 2 -3 7l6 21q3 10 7 20q-6 6 -11 13.5t-9 16.5q-11 1 -22 1.5 100 | t-22 2.5q-5 0 -5 6zM693 148q-8 -23 3 -44.5t36 -29.5q23 -8 44.5 3t28.5 35q9 23 -2 44.5t-36 30.5q-23 7 -44.5 -4t-29.5 -35zM716.5 528q7.5 -21 27.5 -32q21 -9 42 -2t31 27q10 21 3 42t-27 30q-20 11 -41 3.5t-32 -27.5t-3.5 -41z" /> 101 | <glyph glyph-name="uni2708" unicode="✈" horiz-adv-x="1030" 102 | d="M282 -170l125 400h-179l-113 -100h-100l80 170l-80 170h100l113 -100h179l-125 400h100l225 -400h258q6 0 16 -0.5t36 -4t46 -10.5t36 -21t16 -34q0 -31 -37.5 -48.5t-75.5 -19.5l-37 -2h-258l-225 -400h-100z" /> 103 | <glyph glyph-name="uni2709" unicode="✉" horiz-adv-x="930" 104 | d="M45 536q-23 12 -28 33q1 19 25 21h846q33 0 23 -25q-7 -19 -26 -29l-375 -202q-19 -10 -45 -10t-45 10zM896 436q15 4 17 1.5t2 -12.5v-367q0 -16 -17 -32t-33 -16h-800q-16 0 -33 16t-17 32v367q0 10 2 12.5t17 -1.5l386 -202q19 -10 45 -10t45 10z" /> 105 | <glyph glyph-name="uni270D" unicode="✍" 106 | d="M0 92v474q0 32 12.5 61t33.5 50t50 34t62 13h553q2 0 5 -0.5t5 -0.5l-98 -98h-465q-24 0 -41.5 -17.5t-17.5 -41.5v-474q0 -24 17.5 -41.5t41.5 -17.5h553q24 0 41 17.5t17 41.5v229l99 98v-327q0 -33 -12.5 -61t-34 -50t-50 -34.5t-60.5 -12.5h-553q-33 0 -62 12.5 107 | t-50 34.5t-33.5 50t-12.5 61zM324 101l56 169l335 335l113 -114l-334 -335zM445 257q3 -4 8.5 -4t8.5 4l263 262q10 10 0.5 18.5t-18.5 -0.5l-262 -262q-9 -9 0 -18zM772 662l47 48q15 15 35 15t33 -15l24 -23l23 -23q13 -15 13.5 -34.5t-13.5 -34.5l-49 -47z" /> 108 | <glyph glyph-name="uni2715" unicode="✕" horiz-adv-x="500" 109 | d="M467 142q17 -17 17 -42t-17 -42t-42 -17t-42 17l-133 151l-133 -151q-17 -17 -42 -17t-42 17t-17 42t17 42l137 158l-137 158q-17 17 -17 42t17 42t42 17t42 -17l133 -151l133 151q17 17 42 17t42 -17t17 -42t-17 -42l-137 -158z" /> 110 | <glyph glyph-name="uni2716" unicode="✖" horiz-adv-x="870" 111 | d="M435 720q174 0 297 -123t123 -297t-123 -297t-297 -123t-297 123t-123 297t123 297t297 123zM521 300l153 153l-86 86l-153 -153l-153 153l-86 -86l153 -153l-153 -153l86 -87l153 154l153 -153l86 86z" /> 112 | <glyph glyph-name="uni2731" unicode="✱" horiz-adv-x="733" 113 | d="M1 457q-5 19 5 37l37 64q11 18 30.5 23t37.5 -5l170 -99v197q0 21 14 35.5t36 14.5h72q21 0 35.5 -14.5t14.5 -34.5v-198l170 99q18 10 37.5 5t30.5 -23l35 -64q11 -18 6 -37t-23 -29l-171 -99l171 -99q18 -11 23 -29.5t-5 -36.5l-36 -65q-11 -17 -30.5 -22t-37.5 5 114 | l-170 99v-197q0 -21 -14.5 -35.5t-35.5 -14.5h-72q-22 0 -36 14.5t-14 34.5v198l-170 -99q-18 -11 -37.5 -5.5t-30.5 22.5l-37 65q-9 18 -4.5 36.5t22.5 29.5l172 99l-172 99q-18 10 -23 29z" /> 115 | <glyph glyph-name="uni2753" unicode="❓" horiz-adv-x="610" 116 | d="M15 476q5 130 77 202t203 72q128 0 214 -62t86 -183q0 -68 -42 -125q-13 -19 -88 -78l-46 -32q-29 -22 -42 -43.5t-14 -60.5q0 -13 -15 -13h-129q-16 0 -16 12q2 52 6.5 79.5t20.5 45.5q17 20 49.5 46t56.5 42l23 16q61 46 61 102q0 44 -25 79q-25 36 -93 36 117 | q-67 0 -94 -44q-28 -45 -28 -91h-165zM292 54q45 -2 73.5 -31t27.5 -75t-31.5 -73t-75.5 -25q-44 2 -72.5 30.5t-27.5 73.5q1 46 31.5 74t74.5 26z" /> 118 | <glyph glyph-name="uni2757" unicode="❗" horiz-adv-x="789" 119 | d="M0 329q0 82 31 153.5t84.5 125.5t125.5 85t154 31t153.5 -31t125 -85t84.5 -125.5t31 -153.5t-31 -153.5t-84.5 -125.5t-125 -85t-153.5 -31t-154 31t-125.5 85t-84.5 125.5t-31 153.5zM333 579l6 -365q2 -15 16 -15h80q14 0 14 15l8 365q1 6 -4 11q-4 4 -11 4h-95 120 | q-7 0 -10 -4q-4 -4 -4 -11zM336 66q0 -15 15 -15h89q5 0 10 4t5 11v86q0 6 -5 10.5t-10 4.5h-89q-15 0 -15 -15v-86z" /> 121 | <glyph glyph-name="uni2795" unicode="➕" horiz-adv-x="870" 122 | d="M435 720q174 0 297 -123t123 -297t-123 -297t-297 -123t-297 123t-123 297t123 297t297 123zM486 249h202l-1 102h-201v201h-102v-201h-202v-102h202v-202h102v202z" /> 123 | <glyph glyph-name="uni27A2" unicode="➢" horiz-adv-x="890" 124 | d="M863 717q6 -6 9 -12t2.5 -14.5t-2 -15.5t-7.5 -19.5t-12 -23.5l-16 -30l-18 -37q-54 -113 -147 -287l-158 -292l-65 -117l-54 380l-380 54q442 248 696 370l37 18l30 16q11 6 23.5 12t19.5 7.5t15.5 2t14.5 -2.5t12 -9zM772 619l-304 -279l28 -233z" /> 125 | <glyph glyph-name="uni27A6" unicode="➦" 126 | d="M0 4q0 107 37 202t112 166t190.5 112.5t273.5 42.5v150q0 37 18 45t46 -18l252 -254q18 -17 18 -42q0 -24 -18 -42l-252 -254q-26 -26 -45 -18t-19 44v170q-135 -1 -237 -29t-172.5 -76t-110.5 -112.5t-51 -139.5q-2 -17 -19 -17h-1q-17 0 -19 17q-3 26 -3 53z" /> 127 | <glyph glyph-name="uni27F2" unicode="⟲" horiz-adv-x="970" 128 | d="M546 710q169 0 289 -120t120 -290t-120 -290t-289 -120q-140 0 -251 87l70 75q83 -60 181 -60q127 0 217 90.5t90 217.5t-90 217t-217 90q-124 0 -213 -86.5t-93 -210.5h143l-184 -205l-184 205h123q4 167 123 283.5t285 116.5z" /> 129 | <glyph glyph-name="uni27F3" unicode="⟳" horiz-adv-x="970" 130 | d="M424 710q166 0 285 -116.5t123 -283.5h123l-184 -205l-184 205h143q-4 124 -93 210.5t-213 86.5q-127 0 -217 -90t-90 -217t90 -217.5t217 -90.5q98 0 181 60l70 -75q-111 -87 -251 -87q-169 0 -289 120t-120 290t120 290t289 120z" /> 131 | <glyph glyph-name="uni2B0C" unicode="⬌" horiz-adv-x="394" 132 | d="M0.5 131q4.5 12 28.5 12h100v372h-100q-24 0 -28.5 11t12.5 28l158 159q10 11 27 11q16 0 26 -11l158 -159q17 -16 12 -27.5t-29 -11.5h-100v-372h100q24 0 29 -11t-12 -28l-158 -159q-10 -11 -27 -11q-16 0 -26 11l-158 159q-17 15 -12.5 27z" /> 133 | <glyph glyph-name="uni2B0D" unicode="⬍" horiz-adv-x="789" 134 | d="M0 310q0 16 11 26l158 159q16 16 27.5 11.5t11.5 -28.5v-101h373v101q0 24 11 28.5t28 -12.5l159 -158q10 -10 10 -26t-10 -26l-159 -159q-16 -17 -27.5 -12t-11.5 29v101h-373v-101q0 -24 -11 -28.5t-28 12.5l-158 158q-11 10 -11 26z" /> 135 | <glyph glyph-name="uni2ECF" unicode="⻏" horiz-adv-x="789" 136 | d="M0 -30v102q0 15 10.5 25.5t25.5 10.5h718q14 0 24.5 -10.5t10.5 -25.5v-102q0 -15 -10.5 -25.5t-24.5 -10.5h-718q-15 0 -25.5 10.5t-10.5 25.5zM3 239q-9 23 8 39l358 359q11 11 25.5 11t25.5 -11l359 -359q17 -16 7 -39q-8 -22 -32 -22h-718q-24 0 -33 22z" /> 137 | <glyph glyph-name="uniE700" unicode="" horiz-adv-x="1030" 138 | d="M634 78q89 -32 135 -65t46 -58v-105h-800v201q13 6 29.5 11.5t32 10t19.5 5.5q94 34 129.5 69t35.5 95q0 20 -10 31.5t-24 31.5t-21 58q-2 12 -9.5 17.5t-14.5 8t-14 17t-9 43.5q0 15 4.5 25.5t8.5 13.5l5 3q-9 50 -13 88q-2 21 5.5 47.5t27.5 55.5t63.5 48.5t104.5 19.5 139 | t104.5 -19.5t63.5 -48.5t27.5 -55.5t5.5 -47.5l-13 -88q18 -8 18 -42q-2 -29 -9 -43.5t-14 -17t-14.5 -8t-9.5 -17.5q-7 -38 -21 -58t-24 -31.5t-10 -31.5q0 -60 35.5 -95t129.5 -69zM865 350h150v-100h-150v-150h-100v150h-150v100h150v150h100v-150z" /> 140 | <glyph glyph-name="uniE701" unicode="" horiz-adv-x="413" 141 | d="M0.5 423.5q4.5 13.5 26.5 17.5l251 35l111 228q10 20 25 20v-667l-223 -118q-22 -10 -33.5 -1.5t-6.5 31.5l43 248l-181 177q-17 16 -12.5 29.5z" /> 142 | <glyph glyph-name="uniE704" unicode="" horiz-adv-x="950" 143 | d="M469 760q94 1 179.5 -34.5t148 -96t100 -145t38.5 -178.5t-34.5 -179.5t-96 -148t-145 -100t-178.5 -38.5t-179.5 34.5t-148 96t-100 145t-38.5 178.5t34.5 179.5t96 148t145 100t178.5 38.5zM535 84q1 31 -18 50t-50 20q-29 0 -48 -19t-20 -47q-1 -30 18 -48.5t50 -19.5 144 | q29 0 48 18t20 46zM475 486q67 0 67 -66q0 -14 -11 -31.5t-24 -27.5q-3 -1 -16 -10.5t-33 -25.5t-31 -28q-16 -19 -18 -87h107q0 21 5 34q6 16 28 34l28 19q30 23 43.5 36t26 37.5t12.5 55.5q0 74 -53.5 114t-135.5 40q-84 0 -128 -46.5t-48 -130.5h111v5q0 28 16 53 145 | q15 25 54 25z" /> 146 | <glyph glyph-name="uniE705" unicode="" horiz-adv-x="950" 147 | d="M469 760q94 1 179.5 -34.5t148 -96t100 -145t38.5 -178.5t-34.5 -179.5t-96 -148t-145 -100t-178.5 -38.5t-179.5 34.5t-148 96t-100 145t-38.5 178.5t34.5 179.5t96 148t145 100t178.5 38.5zM520 607q-43 0 -65.5 -23.5t-22.5 -50.5q-1 -28 15.5 -43.5t48.5 -15.5 148 | q38 0 61 21.5t23 52.5q0 59 -60 59zM400 12q30 0 84.5 27t105.5 78l-18 24q-46 -36 -72 -36q-12 0 -3 38l42 159q26 96 -21 96q-31 0 -91 -28.5t-115 -74.5l16 -26q17 11 42.5 22t33.5 11t0 -34l-37 -151q-27 -105 33 -105z" /> 149 | <glyph glyph-name="uniE708" unicode="" 150 | d="M0 -26v276q0 17 11.5 28.5t28.5 11.5h355q17 0 28.5 -11.5t11.5 -28.5v-276q0 -17 -11.5 -28.5t-28.5 -11.5h-355q-17 0 -28.5 11.5t-11.5 28.5zM0 408v277q0 16 11.5 27.5t28.5 11.5h355q17 0 28.5 -11.5t11.5 -27.5v-277q0 -17 -11.5 -28t-28.5 -11h-355 151 | q-17 0 -28.5 11t-11.5 28zM514 -26v276q0 17 11 28.5t28 11.5h355q16 0 27.5 -11.5t11.5 -28.5v-276q0 -17 -11.5 -28.5t-27.5 -11.5h-355q-17 0 -28 11.5t-11 28.5zM514 408v277q0 16 11 27.5t28 11.5h355q16 0 27.5 -11.5t11.5 -27.5v-277q0 -17 -11.5 -28t-27.5 -11h-355 152 | q-17 0 -28 11t-11 28z" /> 153 | <glyph glyph-name="uniE70B" unicode="" 154 | d="M0 328.5q0 22.5 13 42.5q40 64 91.5 115t111 86.5t124.5 54t134 18.5q27 0 54 -4t53 -9l45 81q5 8 13 10q6 3 15 -1l68 -39q7 -5 10 -12.5t-1 -15.5l-398 -710q-4 -8 -12 -10q-2 -1 -5 -1t-10 2l-69 39q-8 4 -10 12t2 16l34 59q-75 34 -138.5 91t-111.5 134 155 | q-13 19 -13 41.5zM79 329q42 -67 98.5 -117.5t123.5 -81.5l30 54q-45 32 -71.5 81.5t-26.5 109.5q0 40 13 76.5t35 66.5q-60 -31 -111.5 -78.5t-90.5 -110.5zM316 375q0 -11 8.5 -20t21 -9t21 9t8.5 20q0 40 27 67.5t67 27.5q13 0 21.5 9t8.5 20q0 13 -8.5 21.5t-21.5 8.5 156 | q-31 0 -59.5 -12t-49 -32.5t-32.5 -49t-12 -60.5zM477 13l45 82q107 13 196 74.5t150 159.5q-55 87 -134 145l39 71q47 -34 88 -77t75 -97q11 -20 11 -42.5t-11 -41.5q-82 -131 -201.5 -202t-257.5 -72zM556 155l146 262q2 -10 3 -20t1 -22q0 -38 -11 -72t-31 -62.5 157 | t-48 -50.5t-60 -35z" /> 158 | <glyph glyph-name="uniE70D" unicode="" horiz-adv-x="945" 159 | d="M0 434v229q0 25 18 43t43 18h228q26 0 57 -12.5t48 -30.5l338 -377q16 -18 16.5 -43.5t-16.5 -43.5l-266 -264q-18 -18 -43 -18.5t-43 18.5l-337 377q-17 19 -30 49t-13 55zM99 566q0 -24 17.5 -41.5t41.5 -17.5t41.5 17.5t17.5 41.5t-17.5 41.5t-41.5 17.5t-41.5 -17.5 160 | t-17.5 -41.5zM399 723h87q26 0 57 -13t48 -31l337 -376q17 -19 17.5 -44t-17.5 -43l-265 -264q-18 -18 -43 -18.5t-43 18.5l-6 7l258 258q18 18 17.5 43.5t-17.5 43.5l-336 377q-16 16 -43 28t-51 14z" /> 161 | <glyph glyph-name="uniE711" unicode="" horiz-adv-x="1030" 162 | d="M776 443q99 0 169 -68.5t70 -165.5t-70 -165.5t-169 -68.5h-191v190h105l-175 230l-175 -230h105v-190h-249q-75 0 -128 52t-53 125t53 125t128 52q7 0 21 -2q-3 18 -3 38q0 108 78 184t188 76q89 0 159.5 -52t95.5 -133q19 3 41 3z" /> 163 | <glyph glyph-name="uniE714" unicode="" horiz-adv-x="1350" 164 | d="M277 350l312 -311l-139 -139l-450 450l450 450l139 -139zM900 800l450 -450l-450 -450l-139 139l312 311l-312 311z" /> 165 | <glyph glyph-name="uniE715" unicode="" 166 | d="M0 92v474q0 32 12.5 61t33.5 50t50 34t62 13h429q-3 -16 -3 -33v-26q-84 -11 -159 -40h-267q-24 0 -41.5 -17.5t-17.5 -41.5v-474q0 -24 17.5 -41.5t41.5 -17.5h553q24 0 41 17.5t17 41.5v57q9 5 17 11t16 14l66 65v-147q0 -33 -12.5 -61t-34 -50t-50 -34.5t-60.5 -12.5 167 | h-553q-33 0 -62 12.5t-50 34.5t-33.5 50t-12.5 61zM198 134v19q0 85 29 160.5t89 132t151 89t215 33.5v119q0 29 15 35.5t36 -14.5l201 -201q13 -13 13 -34q0 -20 -13 -32l-201 -202q-21 -21 -36 -14.5t-15 36.5v133q-106 0 -187 -22t-137 -60t-87.5 -89.5t-39.5 -110.5 168 | q-3 -14 -16 -14t-15 14q-2 12 -2 22z" /> 169 | <glyph glyph-name="uniE716" unicode="" 170 | d="M0 -46v178q0 24 9.5 45.5t26 37.5t38 25.5t45.5 9.5h710q25 0 46.5 -9.5t37 -25.5t25 -37.5t9.5 -45.5v-178q0 -20 -20 -20h-907q-20 0 -20 20zM138 33q0 -8 5.5 -13.5t14.5 -5.5h631q9 0 14.5 5.5t5.5 13.5v20q0 9 -5.5 14.5t-14.5 5.5h-631q-9 0 -14.5 -5.5t-5.5 -14.5 171 | v-20zM158 309v376q0 16 11.5 27.5t28.5 11.5h335v-197q0 -25 17 -42.5t42 -17.5h197v-158h-631zM592 527v197l197 -197h-197z" /> 172 | <glyph glyph-name="uniE718" unicode="" horiz-adv-x="830" 173 | d="M715 650q41 0 70.5 -29.5t29.5 -70.5v-350q0 -41 -29.5 -70.5t-70.5 -29.5h-200v-150l-200 150h-200q-41 0 -70.5 29.5t-29.5 70.5v350q0 41 29.5 70.5t70.5 29.5h600z" /> 174 | <glyph glyph-name="uniE720" unicode="" 175 | d="M0 443q0 58 30.5 109t82.5 89t122 60.5t150 22.5t150 -22.5t122 -60.5t82 -89t30 -109q0 -59 -30 -110t-82 -89t-122 -60t-150 -22q-19 0 -36.5 1.5t-35.5 3.5q-36 -28 -77 -48t-89 -30q-21 -5 -42 -6q-12 -2 -17 11v1q-2 6 2 10l8 8q18 18 31.5 39t22.5 67 176 | q-70 38 -111 96t-41 128zM321 77l13 8q13 -2 26 -2h25q98 0 182.5 27.5t147 76t98 114.5t35.5 142q0 20 -3 41q48 -38 75 -86t27 -104q0 -69 -41 -126.5t-110 -96.5q8 -46 22 -66.5t31 -38.5q5 -5 8.5 -9.5t1.5 -9.5q-1 -6 -6.5 -10t-10.5 -3q-11 2 -21 3.5t-21 4.5 177 | q-93 20 -165 76q-18 -2 -36 -3.5t-37 -1.5q-69 0 -129.5 17t-111.5 47z" /> 178 | <glyph glyph-name="uniE722" unicode="" horiz-adv-x="1030" 179 | d="M915 700q41 0 70.5 -29.5t29.5 -70.5v-600q0 -41 -29.5 -70.5t-70.5 -29.5h-800q-41 0 -70.5 29.5t-29.5 70.5v600q0 41 29.5 70.5t70.5 29.5h800zM915 0v600h-800v-600h800zM465 195v-90h-250v90h250zM465 345v-90h-250v90h250zM465 495v-90h-250v90h250zM810 175 180 | q2 0 3.5 -17.5t1.5 -35.5v-17h-250q0 70 5 70q10 2 24 7t37.5 22t23.5 37q0 16 -13.5 34.5t-27.5 45.5t-14 64q0 55 20.5 82.5t69.5 27.5t69.5 -27.5t20.5 -82.5q0 -37 -14 -64t-27.5 -45.5t-13.5 -34.5q0 -20 21.5 -36.5t42.5 -22.5z" /> 181 | <glyph glyph-name="uniE724" unicode="" horiz-adv-x="557" 182 | d="M0 445q0 58 22 108.5t60 88t88.5 60t108.5 22.5t108.5 -22.5t88.5 -60t60 -88t22 -108.5q0 -42 -12.5 -79t-31.5 -71l-189 -327q-19 -34 -46 -34t-46 34l-189 327q-19 34 -31.5 71.5t-12.5 78.5zM141 444.5q0 -28.5 10.5 -53.5t29.5 -44t44.5 -29.5t53.5 -10.5t53.5 10.5 183 | t44 29.5t29.5 44t11 53.5t-11 54t-29.5 44t-44 29.5t-53.5 11t-53.5 -11t-44.5 -29.5t-29.5 -44t-10.5 -54z" /> 184 | <glyph glyph-name="uniE729" unicode="" horiz-adv-x="682" 185 | d="M0 546.5q0 8.5 0.5 17t0.5 18.5q12 6 34.5 10t49.5 7.5t55 5.5t52 3q-3 17 -1.5 33.5t7.5 34.5q1 5 6 12.5t19.5 15.5t42.5 14t75 6t75 -6t42.5 -14t19.5 -16l6 -13q7 -18 8 -34t-1 -33q23 -1 51.5 -3t55.5 -5.5t49 -7.5t34 -10q1 -10 1 -18v-17v-17q0 -8 -1 -18 186 | q-10 -6 -32 -10.5t-48 -7.5t-53.5 -5t-50.5 -3t-39 -1.5t-17 -0.5l-100 -1h-14h-29q-20 0 -57 1q-2 0 -17.5 0.5t-38.5 1.5t-50.5 3t-53.5 5t-47.5 7.5t-32.5 10.5q0 10 -0.5 18t-0.5 16.5zM71 444q43 -6 88.5 -8.5t79.5 -3.5q9 -1 24 -1h78h77q15 0 24 1q35 1 80.5 3.5 187 | t89.5 8.5q-6 -80 -9 -163t-7 -163q-1 -20 -1.5 -44.5t-2 -47.5t-6.5 -42.5t-15 -30.5q-13 -11 -44.5 -15t-61.5 -4h-248q-31 0 -62 4t-43 15q-11 11 -15.5 30.5t-6.5 42.5t-2.5 47.5t-1.5 44.5q-4 80 -7.5 163t-7.5 163zM155 337q1 -15 1 -29t1 -23q0 -12 1 -20 188 | q2 -36 3.5 -72t3.5 -70q1 -9 1 -18v-21v-13q0 -6 0.5 -14.5t1.5 -20.5q1 -8 10 -14.5t15 -6.5q5 -1 10 -1t9 -1h11q5 0 5 20v301q0 9 -5.5 14.5t-14.5 5.5l-34 2q-9 0 -14 -5t-5 -14zM268.5 625.5q0.5 -6.5 2.5 -15.5q9 1 21 1h49l71 -1q1 9 1.5 15.5t-0.5 11.5 189 | q-12 4 -31.5 5.5t-40.5 1.5t-40.5 -1.5t-31.5 -5.5q-1 -5 -0.5 -11.5zM307 33q0 -8 5.5 -14t13.5 -6h30q8 0 14 6t6 14v300q0 9 -11.5 14t-15.5 5h-15q-3 0 -15 -5t-12 -14v-300zM455 33q0 -20 4 -20h12q3 1 13.5 1.5t15.5 0.5q5 1 9 7t5 14q0 12 0.5 20.5t0.5 14.5 190 | q0 7 1 13v21q0 9 1 18q2 34 3 69.5t3 71.5q0 9 1 21q1 9 1.5 23t1.5 29q0 9 -5 14t-14 5l-34 -2q-9 0 -14 -5.5t-5 -14.5v-301z" /> 191 | <glyph glyph-name="uniE730" unicode="" horiz-adv-x="730" 192 | d="M615 750q41 0 70.5 -29.5t29.5 -70.5v-700q0 -41 -29.5 -70.5t-70.5 -29.5h-500q-41 0 -70.5 29.5t-29.5 70.5v700q0 41 29.5 70.5t70.5 29.5h500zM615 -50v700h-500v-700h500z" /> 193 | <glyph glyph-name="uniE736" unicode="" horiz-adv-x="730" 194 | d="M665 550q21 0 35.5 -14.5t14.5 -35.5v-600q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v150h-150q-21 0 -35.5 14.5t-14.5 35.5v600q0 21 14.5 35.5t35.5 14.5h400q21 0 35.5 -14.5t14.5 -35.5v-150h150zM115 150h100v351q0 21 14 35t35 14h151v100 195 | h-300v-500zM615 -50v500h-300v-500h300z" /> 196 | <glyph glyph-name="uniE73A" unicode="" horiz-adv-x="790" 197 | d="M15 680q155 0 295.5 -60t242.5 -162t162 -242.5t60 -295.5h-118q0 130 -51 249t-137 205t-205 137t-249 51v118zM15 443q142 0 262.5 -70t190.5 -190.5t70 -262.5h-118q0 167 -119 286t-286 119v118zM128 147q47 0 80.5 -33.5t33.5 -80.5t-33.5 -80t-80.5 -33t-80 33 198 | t-33 80t33 80.5t80 33.5z" /> 199 | <glyph glyph-name="uniE73D" unicode="" horiz-adv-x="1006" 200 | d="M209 74q33 0 56 -23t23 -56t-23 -55t-56 -22q-31 0 -54.5 22t-23.5 55t22.5 56t55.5 23zM738.5 74q32.5 0 55 -23t22.5 -56t-22.5 -55t-55 -22t-55.5 22t-23 55t23 56t55.5 23zM261 662h565q26 0 40.5 -13.5t14.5 -36.5v-233q0 -20 -13 -34t-33 -16l-505 -57 201 | q-20 -2 -29 -16.5t0 -28t31 -13.5h479q27 0 37.5 -21t0 -41t-37.5 -20h-489q-52 0 -84 33t-27 77t47 76l43 32l-155 339h-76q-28 0 -39 22.5t0 45t39 22.5h89q31 0 45 -12.5t26 -41.5zM606 592h-130l26 -84h124zM294 592l38 -84h127l-28 84h-137zM402 351l100 10l-32 101 202 | h-119zM546 366l113 12l-25 84h-119zM812 395v67h-132l20 -78zM812 508v84h-161l19 -84h142z" /> 203 | <glyph glyph-name="uniE744" unicode="" horiz-adv-x="789" 204 | d="M0 -22v269q0 27 13.5 33t33.5 -13l86 -85l141 141q6 6 15.5 6t16.5 -6l82 -82q7 -8 7 -17.5t-7 -15.5l-141 -141l86 -85q20 -20 13.5 -34t-33.5 -14h-268q-19 0 -31 13q-14 14 -14 31zM395 434.5q0 9.5 6 15.5l141 141l-85 85q-20 20 -14 34t34 14h267q19 0 32 -13 205 | q13 -14 13 -32v-268q0 -27 -13.5 -33t-33.5 13l-85 85l-141 -140q-7 -7 -16 -7t-17 7l-82 81q-6 8 -6 17.5z" /> 206 | <glyph glyph-name="uniE746" unicode="" horiz-adv-x="789" 207 | d="M0 38.5q0 9.5 6 16.5l141 140l-85 86q-20 20 -13.5 33.5t33.5 13.5h267q20 0 32 -13q14 -13 14 -31v-269q0 -27 -14 -33t-34 14l-85 86l-141 -141q-6 -8 -15.5 -8t-17.5 8l-82 82q-6 6 -6 15.5zM395 373v269q0 27 13.5 33t33.5 -14l85 -86l141 141q7 8 16.5 8t16.5 -8 208 | l82 -82q6 -6 6 -15.5t-6 -16.5l-141 -140l85 -86q20 -20 14 -33.5t-34 -13.5h-267q-21 0 -32 13q-13 13 -13 31z" /> 209 | <glyph glyph-name="uniE750" unicode="" horiz-adv-x="789" 210 | d="M0 394.5q0 68.5 26 128.5t70.5 104.5t104.5 70.5t128 26t128 -26t104.5 -70.5t70.5 -104.5t26 -129q0 -50 -14.5 -95.5t-40.5 -85.5l177 -176q9 -10 9 -24t-9 -23l-46 -46q-10 -10 -23.5 -10t-23.5 10l-176 177q-40 -27 -85.5 -41t-96.5 -14q-68 0 -128 25.5t-104.5 70.5 211 | t-70.5 104.5t-26 128zM132 394q0 -41 15 -76.5t42 -62.5t63 -42.5t77.5 -15.5t77 15.5t62.5 42.5t42 62.5t15 76.5t-15 77t-42 63t-62.5 42.5t-77 15.5t-77.5 -15.5t-63 -42.5t-42 -63t-15 -77zM198 378v33q0 7 4.5 12t11.5 5h82v82q0 6 4.5 11t12.5 5h32q8 0 12.5 -5 212 | t4.5 -11v-82h82q17 0 17 -17v-33q0 -16 -17 -16h-82v-83q0 -16 -17 -16h-32q-17 0 -17 16v83h-82q-7 0 -11.5 4.5t-4.5 11.5z" /> 213 | <glyph glyph-name="uniE751" unicode="" horiz-adv-x="789" 214 | d="M0 394.5q0 68.5 26 128.5t70.5 104.5t104.5 70.5t128 26t128 -26t104.5 -70.5t70.5 -104.5t26 -129q0 -50 -14.5 -95.5t-40.5 -85.5l177 -176q9 -10 9 -24t-9 -23l-46 -46q-10 -10 -23.5 -10t-23.5 10l-176 177q-40 -27 -85.5 -41t-96.5 -14q-68 0 -128 25.5t-104.5 70.5 215 | t-70.5 104.5t-26 128zM132 394q0 -41 15 -76.5t42 -62.5t63 -42.5t77.5 -15.5t77 15.5t62.5 42.5t42 62.5t15 76.5t-15 77t-42 63t-62.5 42.5t-77 15.5t-77.5 -15.5t-63 -42.5t-42 -63t-15 -77zM198 378v33q0 7 4.5 12t11.5 5h230q17 0 17 -17v-33q0 -16 -17 -16h-230 216 | q-7 0 -11.5 4.5t-4.5 11.5z" /> 217 | <glyph glyph-name="uniE75C" unicode="" horiz-adv-x="789" 218 | d="M0 406.5q0 19.5 15 34.5l51 52q15 15 35 15t35 -15l261 -262l257 262q14 15 34 15t35 -15l52 -52q14 -15 15 -34.5t-14 -34.5l-347 -346q-14 -15 -34 -15t-35 15l-345 346q-15 15 -15 34.5z" /> 219 | <glyph glyph-name="uniE75D" unicode="" horiz-adv-x="495" 220 | d="M0 327.5q0 19.5 15 34.5l345 346q15 15 35 15t34 -15l52 -52q15 -14 15 -34t-15 -35l-261 -262l261 -257q15 -15 15 -34.5t-15 -34.5l-52 -52q-14 -15 -34 -15t-35 15l-345 346q-15 15 -15 34.5z" /> 221 | <glyph glyph-name="uniE75E" unicode="" horiz-adv-x="495" 222 | d="M0 34q0 20 15 35l261 261l-261 258q-15 15 -15 34.5t15 33.5l51 53q15 15 35 15t35 -15l345 -346q15 -15 15 -35t-15 -35l-345 -345q-15 -15 -35 -15t-35 15l-51 51q-15 15 -15 35z" /> 223 | <glyph glyph-name="uniE75F" unicode="" horiz-adv-x="789" 224 | d="M-0.5 116.5q-0.5 19.5 14.5 34.5l346 346q15 15 35 15t34 -15l346 -346q14 -15 14 -34.5t-14 -33.5l-52 -53q-15 -15 -35 -15t-34 15l-261 262l-257 -262q-15 -15 -35 -15t-35 15l-51 53q-15 14 -15.5 33.5z" /> 225 | <glyph glyph-name="uniE762" unicode="" 226 | d="M0 -34v726q0 20 18 30q20 7 33 -8l335 -362q9 -9 9 -23t-9 -23l-335 -362q-9 -10 -22 -10q-3 0 -11 2q-18 9 -18 30zM395 -34v726q0 20 18 30q20 7 32 -8l336 -362q8 -9 8 -23t-8 -23l-336 -362q-8 -10 -21 -10q-3 0 -11 2q-18 9 -18 30zM789 -27q0 -16 12 -27.5 227 | t27 -11.5h79q17 0 28.5 11.5t11.5 27.5v711q0 17 -11.5 28.5t-28.5 11.5h-79q-15 0 -27 -11.5t-12 -28.5v-711z" /> 228 | <glyph glyph-name="uniE763" unicode="" 229 | d="M0 -27q0 -16 11.5 -27.5t27.5 -11.5h79q17 0 28.5 11.5t11.5 27.5v711q0 17 -11.5 28.5t-28.5 11.5h-79q-16 0 -27.5 -11.5t-11.5 -28.5v-711zM158 329q0 14 8 22l336 363q7 10 21 10q3 0 12 -2q18 -10 18 -31v-725q0 -21 -18 -30q-20 -7 -33 8l-336 362q-8 9 -8 23z 230 | M553 329q0 14 8 22l336 363q7 10 21 10q3 0 11 -2q18 -10 18 -31v-725q0 -21 -18 -30q-20 -7 -32 8l-336 362q-8 9 -8 23z" /> 231 | <glyph glyph-name="uniE782" unicode="" horiz-adv-x="1228" 232 | d="M256 38.5q0 41.5 30.5 72t71.5 30.5h513q40 0 71 -30.5t31 -72t-31 -72t-71 -30.5h-513q-41 0 -71.5 30.5t-30.5 72zM256 294.5q0 40.5 30.5 71.5t71.5 31h513q40 0 71 -31t31 -71.5t-31 -71.5t-71 -31h-513q-41 0 -71.5 31t-30.5 71.5zM256 550q0 41 30.5 72t71.5 31 233 | h513q40 0 71 -31t31 -72t-31 -71.5t-71 -30.5h-513q-41 0 -71.5 30.5t-30.5 71.5z" /> 234 | <glyph glyph-name="uniE78E" unicode="" horiz-adv-x="750" 235 | d="M0 309q0 94 43 175.5t121 134.5q7 4 15 4q7 -1 13 -9l44 -65q10 -17 -5 -27q-54 -37 -83 -93t-29 -120q0 -53 20 -99.5t54.5 -81.5t81.5 -55t100 -20t100 20t82 55t55 81.5t20 99.5q0 64 -29.5 120t-83.5 93q-6 3 -8 12q-2 7 3 15l45 65q5 7 12.5 8.5t14.5 -3.5 236 | q77 -53 121 -134.5t44 -175.5q0 -78 -29.5 -146t-81 -119t-119.5 -80.5t-146 -29.5t-146 29.5t-119 80.5t-80.5 119t-29.5 146zM316 349v355q0 20 20 20h79q8 0 14 -6t6 -14v-355q0 -8 -6 -14t-14 -6h-79q-20 0 -20 20z" /> 237 | <glyph glyph-name="uniE792" unicode="" 238 | d="M0 -66v790h79v-790h-79zM117 -66v790h19v-790h-19zM183 -66v790h60v-790h-60zM280 -66v790h40v-790h-40zM367 -66v790h39v-790h-39zM464 -66v790h19v-790h-19zM521 -66v790h79v-790h-79zM627 -66v790h40v-790h-40zM724 -66v790h20v-790h-20zM812 -66v790h19v-790h-19z 239 | M868 -66v790h79v-790h-79z" /> 240 | <glyph glyph-name="uniE794" unicode="" horiz-adv-x="558" 241 | d="M0 214q0 41 11.5 79t32.5 71q11 17 35 49.5t53 76t56.5 95t44.5 107.5q5 18 18 26t28 6q16 2 29 -6t18 -26q17 -56 44.5 -107.5t56.5 -95t53 -76t35 -49.5q21 -33 32.5 -71t11.5 -79q0 -58 -22 -109t-60 -89t-89 -60t-109 -22t-108.5 22t-88.5 60t-60 89t-22 109z 242 | M122 152q0 -29 20.5 -49t50.5 -20q28 0 48.5 20t20.5 49q0 19 -10 38q-4 4 -10 12t-13 19t-14 24t-11 27q-4 10 -11 7q-10 3 -12 -7q-4 -14 -11.5 -27t-14.5 -24t-13 -19t-8 -12q-12 -18 -12 -38z" /> 243 | <glyph glyph-name="uniE7A2" unicode="" horiz-adv-x="917" 244 | d="M842 355h-331v335q138 0 234.5 -97t96.5 -234v-4zM406 250h333v4q0 -138 -97.5 -235t-235 -97t-234.5 97t-97 234.5t97 235t234 97.5v-336z" /> 245 | <glyph glyph-name="uniE7AC" unicode="" horiz-adv-x="1224" 246 | d="M144 329l285 122v86l-285 121v-89l188 -76l-188 -75v-89zM470 260h286v69h-286v-69zM1224 800v-900h-1224v900h1224z" /> 247 | <glyph glyph-name="uniE7B5" unicode="" horiz-adv-x="1021" 248 | d="M475 -139v115l-150 -57l-15 26l165 101v58h-317q-19 0 -32.5 13t-13.5 32q0 17 12 29.5t30 15.5v414q-18 1 -30 13.5t-12 29.5q0 19 13.5 32t32.5 13h326l18 49h12l18 -49h332q18 0 31.5 -13t13.5 -32t-13.5 -32t-31.5 -13v-412q18 0 31.5 -13t13.5 -32t-13.5 -32 249 | t-31.5 -13h-328v-58l166 -101l-14 -26l-152 57v-115q0 -13 -9 -22.5t-22 -9.5q-14 0 -22 9.5t-8 22.5zM806 198v404h-595v-404h595z" /> 250 | <glyph glyph-name="uniE800" unicode="" horiz-adv-x="828" 251 | d="M0.5 423.5q4.5 13.5 26.5 17.5l251 35l111 228q10 20 24.5 20t24.5 -20l113 -228l249 -35q23 -4 27.5 -17.5t-11.5 -29.5l-181 -177l42 -248q3 -17 -2.5 -26t-16.5 -9q-7 0 -20 5l-224 118l-223 -118q-13 -5 -20 -5q-12 0 -17.5 9t-2.5 26l43 248l-181 177 252 | q-17 16 -12.5 29.5zM143 377l105 -103l31 -28l-7 -41l-26 -147l131 70l37 19l37 -19l130 -70l-24 147l-8 41l30 28l106 103l-146 21l-41 7l-19 37l-65 132l-66 -132l-17 -37l-42 -7z" /> 253 | <glyph glyph-name="uniE801" unicode="" horiz-adv-x="828" 254 | d="M0.5 423.5q4.5 13.5 26.5 17.5l251 36l111 227q11 21 25 21t24 -21l113 -227l249 -36q23 -4 27.5 -17.5t-11.5 -29.5l-181 -177l42 -248q4 -23 -7.5 -31.5t-31.5 3.5l-224 116l-223 -116q-22 -12 -33.5 -3.5t-6.5 31.5l43 248l-181 177q-17 16 -12.5 29.5z" /> 255 | <glyph glyph-name="uniE802" unicode="" 256 | d="M0 377q0 72 37.5 135t101.5 110t150.5 74.5t184.5 27.5t184 -27.5t150.5 -74.5t101.5 -110t37 -134.5t-37 -135t-101.5 -110t-150.5 -74t-184 -27.5q-47 0 -89 6q-44 -33 -95 -57.5t-109 -36.5l-25 -5l-27 -4q-16 -2 -21 15v1q-2 7 4 12l9 10l21 23q10 11 17.5 25.5 257 | t14.5 34t12 48.5q-85 47 -135.5 118t-50.5 156z" /> 258 | <glyph glyph-name="uniE803" unicode="" 259 | d="M0 63v79q0 20 20 20h113q26 0 50.5 16t48 43t46.5 61l46 72l60 90q30 45 64.5 79.5t75.5 56.5t93 22h104v94q0 21 12.5 25.5t30.5 -10.5l172 -142q11 -10 11 -24t-11 -23l-172 -144q-18 -14 -30.5 -10t-12.5 25v91h-104q-28 0 -52 -16.5t-47.5 -43.5t-47.5 -62l-46 -71 260 | q-28 -46 -58 -90.5t-65 -79t-76.5 -56t-91.5 -21.5h-113q-8 0 -14 5t-6 14zM0 504v79q0 8 6 14t14 6h113q54 0 98 -25t81 -65q-19 -26 -36 -52l-33 -50q-26 33 -53 53t-57 20h-113q-8 0 -14 5.5t-6 14.5zM439 134l35 51l32 51q27 -32 53.5 -52t57.5 -20h104v99q0 21 12.5 25 261 | t30.5 -11l172 -143q11 -9 11 -23q0 -15 -11 -24l-172 -142q-18 -15 -30.5 -11t-12.5 25v87h-104q-56 0 -98.5 24t-79.5 64z" /> 262 | <glyph glyph-name="uniE804" unicode="" horiz-adv-x="789" 263 | d="M0 -34v726q0 20 18 30q20 7 33 -8l335 -362q9 -9 9 -23t-9 -23l-335 -362q-9 -10 -22 -10q-3 0 -11 2q-18 9 -18 30zM395 -34v726q0 20 18 30q20 7 32 -8l336 -362q8 -9 8 -23t-8 -23l-336 -362q-8 -10 -21 -10q-3 0 -11 2q-18 9 -18 30z" /> 264 | <glyph glyph-name="uniE805" unicode="" horiz-adv-x="552" 265 | d="M0 -27q0 -16 11.5 -27.5t27.5 -11.5h79q17 0 28.5 11.5t11.5 27.5v711q0 17 -11.5 28.5t-28.5 11.5h-79q-16 0 -27.5 -11.5t-11.5 -28.5v-711zM158 329q0 14 8 22l336 363q7 10 21 10q3 0 12 -2q18 -10 18 -31v-725q0 -21 -18 -30q-20 -7 -33 8l-336 362q-8 9 -8 23z" /> 266 | <glyph glyph-name="uniE806" unicode="" horiz-adv-x="552" 267 | d="M0 -34v726q0 20 18 30q20 7 33 -8l335 -362q9 -9 9 -23t-9 -23l-335 -362q-9 -10 -22 -10q-3 0 -11 2q-18 9 -18 30zM395 -27q0 -16 11.5 -27.5t27.5 -11.5h79q16 0 28 11.5t12 27.5v711q0 17 -12 28.5t-28 11.5h-79q-16 0 -27.5 -11.5t-11.5 -28.5v-711z" /> 268 | <glyph glyph-name="uniE807" unicode="" horiz-adv-x="789" 269 | d="M0 -30v718q0 15 10.5 25.5t25.5 10.5h718q14 0 24.5 -10.5t10.5 -25.5v-718q0 -15 -10.5 -25.5t-24.5 -10.5h-718q-15 0 -25.5 10.5t-10.5 25.5z" /> 270 | <glyph glyph-name="uniE808" unicode="" horiz-adv-x="789" 271 | d="M0 -30v718q0 15 10.5 25.5t25.5 10.5h251q15 0 25.5 -10.5t10.5 -25.5v-718q0 -15 -10.5 -25.5t-25.5 -10.5h-251q-15 0 -25.5 10.5t-10.5 25.5zM466 -30v718q0 15 10.5 25.5t25.5 10.5h252q14 0 24.5 -10.5t10.5 -25.5v-718q0 -15 -10.5 -25.5t-24.5 -10.5h-252 272 | q-15 0 -25.5 10.5t-10.5 25.5z" /> 273 | <glyph glyph-name="uniE809" unicode="" horiz-adv-x="693" 274 | d="M0 -30v718q0 20 18 30q19 12 36 0l622 -357q18 -13 18 -32t-18 -32l-622 -358q-9 -5 -18.5 -5t-17.5 5q-18 11 -18 31z" /> 275 | <glyph glyph-name="uniE80A" unicode="" horiz-adv-x="789" 276 | d="M0 433v230q0 25 18 43t43 18h230q25 0 55.5 -13t48.5 -30l377 -377q17 -18 17 -43.5t-17 -43.5l-266 -265q-18 -18 -43 -18t-43 18l-377 377q-18 18 -30.5 48.5t-12.5 55.5zM99 566q0 -24 17.5 -41.5t41.5 -17.5t41.5 17.5t17.5 41.5t-17.5 41.5t-41.5 17.5t-41.5 -17.5 277 | t-17.5 -41.5z" /> 278 | <glyph glyph-name="uniE80B" unicode="" 279 | d="M0 -26v139q0 17 11.5 28t28.5 11h153q15 0 27 -11t12 -28v-139q0 -17 -12 -28.5t-27 -11.5h-153q-17 0 -28.5 11.5t-11.5 28.5zM0 271v116q0 17 11.5 28t28.5 11h153q15 0 27 -11t12 -28v-116q0 -17 -12 -28.5t-27 -11.5h-153q-17 0 -28.5 11.5t-11.5 28.5zM0 545v140 280 | q0 16 11.5 27.5t28.5 11.5h153q15 0 27 -11.5t12 -27.5v-140q0 -17 -12 -28.5t-27 -11.5h-153q-17 0 -28.5 11.5t-11.5 28.5zM311 -26v139q0 17 11.5 28t28.5 11h557q16 0 27.5 -11t11.5 -28v-139q0 -17 -11.5 -28.5t-27.5 -11.5h-557q-17 0 -28.5 11.5t-11.5 28.5zM311 271 281 | v116q0 17 11.5 28t28.5 11h557q16 0 27.5 -11t11.5 -28v-116q0 -17 -11.5 -28.5t-27.5 -11.5h-557q-17 0 -28.5 11.5t-11.5 28.5zM311 545v140q0 16 11.5 27.5t28.5 11.5h557q16 0 27.5 -11.5t11.5 -27.5v-140q0 -17 -11.5 -28.5t-27.5 -11.5h-557q-17 0 -28.5 11.5 282 | t-11.5 28.5z" /> 283 | <glyph glyph-name="uniE80C" unicode="" 284 | d="M0 -26v139q0 17 11.5 28t28.5 11h184q16 0 27.5 -11t11.5 -28v-139q0 -17 -11.5 -28.5t-27.5 -11.5h-184q-17 0 -28.5 11.5t-11.5 28.5zM0 271v116q0 17 11.5 28t28.5 11h184q16 0 27.5 -11t11.5 -28v-116q0 -17 -11.5 -28.5t-27.5 -11.5h-184q-17 0 -28.5 11.5 285 | t-11.5 28.5zM0 545v140q0 16 11.5 27.5t28.5 11.5h184q16 0 27.5 -11.5t11.5 -27.5v-140q0 -17 -11.5 -28.5t-27.5 -11.5h-184q-17 0 -28.5 11.5t-11.5 28.5zM342 -26v139q0 17 11.5 28t28.5 11h184q16 0 27.5 -11t11.5 -28v-139q0 -17 -11.5 -28.5t-27.5 -11.5h-184 286 | q-17 0 -28.5 11.5t-11.5 28.5zM342 271v116q0 17 11.5 28t28.5 11h184q16 0 27.5 -11t11.5 -28v-116q0 -17 -11.5 -28.5t-27.5 -11.5h-184q-17 0 -28.5 11.5t-11.5 28.5zM342 545v140q0 16 11.5 27.5t28.5 11.5h184q16 0 27.5 -11.5t11.5 -27.5v-140q0 -17 -11.5 -28.5 287 | t-27.5 -11.5h-184q-17 0 -28.5 11.5t-11.5 28.5zM684 -26v139q0 17 11.5 28t28.5 11h184q16 0 27.5 -11t11.5 -28v-139q0 -17 -11.5 -28.5t-27.5 -11.5h-184q-17 0 -28.5 11.5t-11.5 28.5zM684 271v116q0 17 11.5 28t28.5 11h184q16 0 27.5 -11t11.5 -28v-116 288 | q0 -17 -11.5 -28.5t-27.5 -11.5h-184q-17 0 -28.5 11.5t-11.5 28.5zM684 545v140q0 16 11.5 27.5t28.5 11.5h184q16 0 27.5 -11.5t11.5 -27.5v-140q0 -17 -11.5 -28.5t-27.5 -11.5h-184q-17 0 -28.5 11.5t-11.5 28.5z" /> 289 | <glyph glyph-name="uniE80D" unicode="" horiz-adv-x="789" 290 | d="M0 33q0 20 15 35l261 262l-261 257q-15 15 -15 35t15 34l51 52q15 15 35 15t35 -15l259 -259l259 259q14 15 34 15t35 -15l52 -52q14 -14 14 -34t-14 -35l-261 -262l261 -257q14 -15 14 -34.5t-14 -34.5l-52 -52q-15 -15 -35 -15t-34 15l-259 260l-260 -260 291 | q-15 -15 -34.5 -15t-34.5 15l-51 51q-15 15 -15 35z" /> 292 | <glyph glyph-name="uniE80E" unicode="" 293 | d="M1 339q3 12 14 20l433 356q12 9 25.5 9t25.5 -9l133 -109v61q0 20 20 20h117q20 0 20 -20v-190l144 -118q10 -8 13 -20t-1 -24q-10 -25 -38 -25h-79v-316q0 -17 -11 -28.5t-28 -11.5h-216v237h-198v-237h-217q-17 0 -28.5 11.5t-11.5 28.5v316h-79q-26 0 -37 25 294 | q-4 12 -1 24z" /> 295 | <glyph glyph-name="uniE80F" unicode="" 296 | d="M0 305.5q0 22.5 13 42.5q40 64 91.5 115t111 86.5t124.5 54t134 18.5t134.5 -18.5t124.5 -53.5t110.5 -86t92.5 -116q11 -20 11 -42.5t-11 -41.5q-41 -66 -92.5 -117t-110.5 -85.5t-124.5 -53t-134.5 -18.5t-134 18.5t-124.5 53.5t-111 86t-91.5 116q-13 19 -13 41.5z 297 | M79 306q34 -54 77 -98t93.5 -74.5t107 -47.5t117.5 -17t117 17t106.5 47.5t94 74.5t76.5 98q-41 66 -96 116t-121 81q26 -31 40.5 -69t14.5 -82q0 -49 -18.5 -92t-51 -75.5t-75.5 -51t-92 -18.5t-91.5 18.5t-75.5 51t-51 75.5t-18 92q0 40 13 76.5t35 65.5 298 | q-60 -30 -111.5 -78t-90.5 -110zM316 352q0 -11 8.5 -20t21 -9t21 9t8.5 20q0 40 27 67.5t67 27.5q13 0 21.5 9t8.5 20q0 13 -8.5 21.5t-21.5 8.5q-31 0 -59.5 -12t-49 -32.5t-32.5 -49t-12 -60.5z" /> 299 | <glyph glyph-name="uniE810" unicode="" 300 | d="M0 -7v672q0 24 17.5 41.5t41.5 17.5h356q24 0 41.5 -17.5t17.5 -41.5t17 -41.5t42 -17.5h355q25 0 42 -18t17 -42v-553q0 -24 -17 -41.5t-42 -17.5h-829q-24 0 -41.5 17.5t-17.5 41.5z" /> 301 | <glyph glyph-name="uniE811" unicode="" horiz-adv-x="530" 302 | d="M265 700q103 0 176.5 -73t73.5 -177q0 -67 -25.5 -148t-62.5 -149.5t-74 -127t-63 -91.5l-25 -34l-27 35q-17 22 -60 89t-76 130t-60 146t-27 150q0 104 73.5 177t176.5 73zM265 312q56 0 95.5 39.5t39.5 95.5t-39.5 95.5t-95.5 39.5t-95.5 -39.5t-39.5 -95.5t39.5 -95.5 303 | t95.5 -39.5z" /> 304 | <glyph glyph-name="uniE812" unicode="" horiz-adv-x="1030" 305 | d="M871 466h-100l-124 151l-214 -151h-180q-53 0 -90.5 -38t-37.5 -92v-159l-107 297q-6 16 0.5 31t21.5 20l680 248q15 5 29 -2t20 -23zM977 376q16 0 27 -11.5t11 -28.5v-471q0 -17 -11 -28.5t-27 -11.5h-724q-16 0 -27 11.5t-11 28.5v471q0 17 11 28.5t27 11.5h724z 306 | M922 -75v161l-73 161l-167 -60l-129 -133l-139 172l-92 -215v-86h600z" /> 307 | <glyph glyph-name="uniE813" unicode="" 308 | d="M0 665v39q0 20 20 20h119q8 0 19 -2.5t19 -4.5q3 -2 7 -7t8 -12t6.5 -14t3.5 -11l14 -64h692q18 0 29.5 -13.5t8.5 -30.5l-55 -297q-4 -13 -14.5 -22t-24.5 -9h-557l18 -86q2 -8 8.5 -13.5t15.5 -5.5h440q8 0 14 -5.5t6 -14.5v-40q0 -8 -6 -13.5t-14 -5.5h-84h-335h-54 309 | q-8 0 -18.5 1.5t-18.5 4.5q-3 2 -7 7.5t-8 12.5t-6.5 13.5t-3.5 11.5l-110 522q-3 8 -9.5 13.5t-15.5 5.5h-87q-20 0 -20 20zM299 -7q0 24 17.5 42t41.5 18q25 0 42.5 -18t17.5 -42t-17.5 -41.5t-42.5 -17.5q-24 0 -41.5 17.5t-17.5 41.5zM634 -7q0 24 17 42t41.5 18t42 -18 310 | t17.5 -42t-17.5 -41.5t-42 -17.5t-41.5 17.5t-17 41.5z" /> 311 | <glyph glyph-name="uniE814" unicode="" horiz-adv-x="1228" 312 | d="M31 151q0 46 82 97q66 36 143 46v51q-77 77 -77 190q0 194 154 194q77 0 97 -20q26 -20 36 -92q-97 -66 -98 -246q0 -159 67 -230q-26 0 -71 -31l-36 -20l-11 -10q-15 -11 -25 -21l-26 -26q-25 0 -138 31q-97 31 -97 87zM281 -43.5q0 40.5 93 97.5q87 46 158 51v56 313 | q-82 77 -81 205q0 210 163.5 210t163.5 -210q0 -128 -81 -205v-56q71 -6 158 -51.5t87 -96.5q0 -41 -71 -62q-77 -21 -149 -31q-46 -5 -107.5 -5t-107.5 5q-71 10 -148.5 31t-77.5 61.5zM763 617q10 72 36 92q20 20 97 20q153 0 153 -194q0 -113 -76 -190v-51 314 | q76 -10 143 -46q87 -46 87 -97t-102 -87q-113 -31 -139 -31l-25 26q-10 10 -26 21l-10 10q-20 10 -36 20q-46 31 -71 31q66 71 66 230q0 180 -97 246z" /> 315 | <glyph glyph-name="uniE815" unicode="" horiz-adv-x="1228" 316 | d="M358 341l384 414l-128 -358l257 -149l-384 -414l127 358z" /> 317 | <glyph glyph-name="uniE817" unicode="" horiz-adv-x="961" 318 | d="M481 722q169 0 287 -117t118 -286q0 -170 -117.5 -288.5t-287.5 -118.5q-169 0 -287.5 118.5t-118.5 288.5q0 167 118.5 285t287.5 118zM504 -11q67 0 116 169q-58 -6 -116 -8v-161zM375 70q34 -81 81 -81v161q-58 2 -115 8q11 -48 34 -88zM152 272q34 -40 133 -57 319 | q-7 46 -7 100q0 33 3 69q-82 16 -117 31q-14 -47 -14 -96q0 -33 2 -47zM322 315q0 -57 8 -109q60 -10 126 -12v176q-76 2 -132 9q0 -11 -1 -32t-1 -32zM454 646q-43 -16 -76 -77t-48 -148q61 -5 126 -7v232h-2zM536 629q-26 17 -32 17v-232q62 1 127 7q-26 145 -95 208z 320 | M504 194q64 1 126 11q8 40 8 110q0 41 -2 63q-64 -7 -132 -8v-176zM680 384q2 -24 2 -69q0 -49 -6 -101q90 15 112.5 36.5t22.5 68.5q0 50 -15 95q-57 -24 -116 -30zM779 458q-57 123 -179 167q54 -70 74 -199q84 15 105 32zM248 550q-40 -36 -66 -91q6 -5 104 -31 321 | q22 124 75 196q-80 -38 -113 -74zM248 85q40 -44 106 -71q-40 56 -60 151q-84 19 -125 41q31 -77 79 -121zM714 85q48 45 75 116q-47 -21 -121 -37q-23 -96 -62 -150q68 28 108 71z" /> 322 | <glyph glyph-name="uniF301" unicode="" horiz-adv-x="978" 323 | d="M188 800h602q73 0 123.5 -51t50.5 -123v-602q0 -72 -50.5 -123t-123.5 -51h-602q-72 0 -123 51t-51 123v602q0 72 51 123t123 51zM515 -150h141v371h139l6 134h-145v97q0 32 10.5 46t45.5 14l85 -1l4 126q-41 4 -95 4q-95 0 -143 -49t-48 -123v-114h-99v-134h99v-371z 324 | " /> 325 | <glyph glyph-name="uniF303" unicode="" horiz-adv-x="1332" 326 | d="M1318 385q-35 -5 -77.5 -0.5t-69.5 15.5q53 4 90.5 27t51.5 57q-22 -14 -69.5 -21t-84.5 4q-1 4 -3 14.5t-4 16.5q-26 97 -105.5 161.5t-170.5 54.5l29 11q2 1 14.5 4t24 6.5t23.5 9t17.5 12t1.5 14.5q-2 7 -14.5 7.5t-29.5 -4t-32.5 -9.5t-31 -11t-18.5 -7q64 24 69 53 327 | q-59 -8 -103 -49q17 19 20 39q-68 -43 -115 -122.5t-89 -192.5q-62 59 -99 79q-136 73 -335 148q-4 -42 23.5 -87.5t88.5 -77.5q-27 4 -81 -9q9 -48 43 -81t104 -49q-61 -4 -90 -35q19 -37 59.5 -61.5t101.5 -18.5q-35 -15 -46.5 -36.5t-2 -39t34.5 -28.5t55 -6 328 | q-68 -71 -158.5 -94.5t-177 -1.5t-148.5 82q79 -108 191.5 -172.5t229 -80t237 6.5t219.5 77.5t172.5 142.5t99.5 193q101 -1 155 59z" /> 329 | <glyph glyph-name="uniF308" unicode="" horiz-adv-x="1132" 330 | d="M456 224q0 51 -22 87.5t-52.5 36.5t-52 -36.5t-21.5 -87.5t21.5 -87t52.5 -36t52.5 36t21.5 87zM856 224q0 51 -22 87.5t-52.5 36.5t-53 -36.5t-22.5 -87.5t22 -87t53.5 -36t53 36t21.5 87zM933 238q0 -37 -4.5 -68.5t-14.5 -55t-21 -42.5t-29.5 -32.5t-35 -23.5 331 | t-42.5 -16t-46.5 -10t-52 -6t-54.5 -2.5t-58 -0.5q-65 0 -114 5.5t-97 21.5t-78 43.5t-49 74.5t-19 112q0 78 61 142q23 24 58.5 33.5t65.5 8.5t84.5 -5.5t87.5 -4.5t87 4.5t85 5.5t66.5 -8.5t57.5 -32.5q62 -67 62 -143zM724 -99q156 15 239.5 64.5t120.5 136.5q6 12 19 59 332 | q16 52 16 174q0 146 -102 248q31 101 -15 216q-3 1 -9 2t-27 -1t-45.5 -9t-65.5 -27t-85 -50q-91 23 -198 23q-115 0 -218 -28q-47 32 -89 53t-68.5 28t-46.5 10t-28 1l-9 -2q-21 -54 -24 -108.5t2.5 -79.5t12.5 -43q-90 -98 -90 -233q0 -115 27 -193q2 -8 22 -48 333 | q87 -162 364 -193h297z" /> 334 | <glyph glyph-name="u1D30D" unicode="𝌍" horiz-adv-x="1228" 335 | d="M154 294q0 190 133 323q138 138 327 138q195 0 323 -138q138 -128 138 -323q0 -189 -138 -327q-133 -133 -323 -133q-184 0 -327 133q-133 143 -133 327zM251 494h30q26 -30 32 -30q25 -93 55 -108l26 -15q16 0 16 25q0 20 -10 31q0 20 4 25q11 21 21 26q10 20 15 20 336 | l11 -15q15 -30 30 -36v-10q6 -15 6 -20v-10q0 -6 -6 -6q0 -5 -8 -5h-12q5 0 5 -10q6 -11 10 -15l11 -26l15 -26q5 -10 15 -20q16 -31 36 -36q21 -15 56 -15v-21l11 -5q5 0 5 -5q20 0 30 5l6 -5q-6 -20 -47 -41l-40 -15v-11q0 -5 -3 -15t-3 -25q-10 -57 -15 -62q26 -6 41 -5 337 | q10 0 41 10l41 10q15 -10 25 -25v-15l16 -6v-20l-5 -6l5 -10h15q31 0 36 36q41 16 61 46q21 26 21 72l-5 5q-21 36 -21 46q-15 31 -15 41q10 -15 30 -15h6l26 5l-16 25v6l20 -21l-10 -26l26 16l15 -5q16 5 26 30h-10v26l-16 -10l-5 5v5q-15 0 -20 5q-6 0 -6 11v4 338 | q-36 21 -46 21v-21v-10h-5q-25 31 -56 31h-20q-11 10 -21 10h-10v16l-10 5q0 5 -3 15t-3 20q-5 21 -15 32l5 10h-20q-10 36 -21 35l5 26v20l-15 6q-26 0 -26 -26l16 -31q-10 -20 -10 -25q0 -16 5 -21l-5 -10q-10 -10 -11 -20v-6l-46 -35q-5 0 -5 10v10v10q0 16 -15 36l15 -5 339 | q16 0 26 36v20q0 21 -6 26q11 0 11 25q56 11 56 72q0 16 -15 46l-10 10h5q15 -26 30 -25q6 0 16 10q5 10 5 21q0 15 -11 25l-4 5v6q20 10 20 15q5 5 5 15v31q-51 10 -72 10q-225 0 -363 -215zM650 305v20q0 -5 11 -15zM676 238v16q0 10 5 15v-31h20v5v-5h6q10 0 15 5l10 -5 340 | q16 -5 16 -15q0 -5 -6 -11h-10q-20 0 -30.5 -10t-15.5 -10l-5 5q20 0 20 21v15h-15l-5 5h-5zM758 207q5 -5 10 -5v-10q-5 -10 -5 -15v10q-5 5 -5 20zM891 141q0 -16 15 -31q10 -10 26 -10l10 -5q10 0 10 -5q-15 51 -25 56q-16 16 -31 25q0 -10 -5 -20v-10z" /> 341 | <glyph glyph-name="u1F304" unicode="🌄" 342 | d="M0 -7v672q0 24 17.5 41.5t41.5 17.5h829q25 0 42 -17.5t17 -41.5v-672q0 -24 -17 -41.5t-42 -17.5h-829q-24 0 -41.5 17.5t-17.5 41.5zM79 13h789v632h-789v-632zM158 92v54l142 185l97 -80l182 276l210 -218v-217h-631zM158 486q0 33 23 56.5t57 23.5q33 0 56 -23.5 343 | t23 -56.5t-23 -56t-56 -23q-34 0 -57 23t-23 56z" /> 344 | <glyph glyph-name="u1F310" unicode="🌐" horiz-adv-x="1228" 345 | d="M307 -115q0 51 51 51h205v61q-127 16 -235 113q-11 10 -11 36q0 21 11 31q15 15 30 15q21 0 36 -15q72 -72 169 -87h102q98 15 170 87q92 92 92 220t-92 220l-31 36l138 133q10 15 30.5 15t31.5 -15q15 -10 15 -30.5t-15 -30.5l-72 -77q87 -113 87 -251q0 -159 -118 -287 346 | q-107 -97 -236 -113v-61h206q51 0 51 -51t-51 -51h-513q-51 0 -51 51zM364 396.5q0 102.5 74 177t176.5 74.5t176.5 -74.5t74 -177t-74 -176.5t-176.5 -74t-176.5 74t-74 176.5z" /> 347 | <glyph glyph-name="u1F381" unicode="🎁" 348 | d="M0 230v198q0 8 6 14t14 6h272q-29 0 -54 10.5t-44 29.5t-30 44t-11 53.5t11 54t30 44t44 29.5t54 11q30 0 57.5 -12.5t45.5 -35.5l79 -102l79 102q18 23 45 35.5t58 12.5q28 0 53.5 -11t44.5 -29.5t30 -44t11 -54t-11 -53.5t-30 -44t-44.5 -29.5t-53.5 -10.5h271 349 | q9 0 14.5 -6t5.5 -14v-198q0 -8 -5.5 -13.5t-14.5 -5.5h-59v-218q0 -24 -17 -41.5t-42 -17.5h-671q-24 0 -41.5 17.5t-17.5 41.5v218h-59q-8 0 -14 5.5t-6 13.5zM232 586q0 -24 17.5 -41.5t42.5 -17.5h119l-77 99q-6 5 -16.5 12t-25.5 7q-25 0 -42.5 -17.5t-17.5 -41.5z 350 | M375 45q0 -16 11.5 -27.5t28.5 -11.5h118q16 0 28 11.5t12 27.5v403h-198v-403zM536 527h120q24 0 42 17.5t18 41.5t-18 41.5t-42 17.5q-16 0 -26.5 -7t-15.5 -12z" /> 351 | <glyph glyph-name="u1F3A4" unicode="🎤" horiz-adv-x="670" 352 | d="M635 438q8 0 14 -6t6 -14v-138q0 -93 -69 -165t-201 -83v-132h130q8 0 14 -6t6 -14v-60q0 -8 -6 -14t-14 -6h-360q-8 0 -14 6t-6 14v60q0 8 6 14t14 6h130v132q-132 11 -201 83t-69 165v138q0 8 6 14t14 6h30q8 0 14 -6t6 -14v-138q0 -28 12 -57t38.5 -58t78 -47 353 | t121.5 -18t121.5 18t78 47t38.5 58t12 57v138q0 8 6 14t14 6h30zM335 200q-79 0 -114.5 25t-35.5 55v158h300v-158q0 -30 -35.5 -55t-114.5 -25zM485 720v-212h-300v212q0 30 35.5 55t114.5 25t114.5 -25t35.5 -55z" /> 354 | <glyph glyph-name="u1F3A7" unicode="🎧" 355 | d="M0 309q0 57 19.5 110t52.5 99t79 83.5t98.5 65t110 42.5t114.5 15t114 -15t110 -42.5t98.5 -65t78.5 -83.5t52.5 -99t19.5 -110q0 -92 -38 -174l-13 -29l-85 -13q-14 -51 -55.5 -85t-97.5 -34v-20q0 -8 -6 -14t-14 -6h-40q-9 0 -14 6t-5 14v355q0 8 5 14t14 6h40 356 | q8 0 14 -6t6 -14v-19q44 0 79.5 -22t56.5 -57l20 2q15 45 15 96q0 61 -32.5 115t-84 94t-114.5 64t-124 24t-124.5 -24t-114.5 -64t-83.5 -94t-32.5 -115q0 -48 15 -96l20 -2q21 35 56 57t79 22v19q0 8 6 14t14 6h40q9 0 14 -6t5 -14v-355q0 -8 -5 -14t-14 -6h-40 357 | q-8 0 -14 6t-6 14v20q-55 0 -96.5 34t-55.5 85l-85 13l-14 29q-38 82 -38 174z" /> 358 | <glyph glyph-name="u1F3C6" unicode="🏆" horiz-adv-x="930" 359 | d="M524 82v-65q71 -8 117 -32t46 -55q0 -37 -65 -63.5t-157 -26.5t-157 26.5t-65 63.5q0 31 46 55t117 32v65q0 50 -33 85t-112 87q-45 30 -69 47.5t-63.5 54.5t-60 72t-37 88.5t-16.5 115.5q0 14 10 24.5t25 10.5h172q21 39 81.5 66t161.5 27t161.5 -27t81.5 -66h172 360 | q15 0 25 -10.5t10 -24.5q0 -62 -16.5 -115.5t-37 -88.5t-60 -72t-63.5 -54.5t-69 -47.5q-79 -52 -112 -87t-33 -85zM663 335q80 54 126 112t54 150h-126q-5 -157 -54 -262zM465 699q-39 0 -72 -6t-54 -15t-36 -20t-21.5 -20t-6.5 -16t6.5 -16t21.5 -20t36 -20t54 -15t72 -6 361 | t72 6t54 15t36 20t21.5 20t6.5 16t-6.5 16t-21.5 20t-36 20t-54 15t-72 6zM87 597q8 -92 54 -150t126 -112q-49 105 -54 262h-126z" /> 362 | <glyph glyph-name="u1F3C9" unicode="🏉" horiz-adv-x="868" 363 | d="M0 470v96q0 17 11.5 28t28.5 11h166q-1 6 -1 13v12v2q0 27 2 45t8 28t16.5 14.5t28.5 4.5h348q17 0 28 -4.5t17 -14.5t8 -28t2 -45v-14q0 -6 -1 -13h166q17 0 28.5 -11t11.5 -28v-96q0 -33 -23 -67.5t-62.5 -65.5t-92.5 -55t-114 -33q-27 -5 -47.5 -21.5t-20.5 -36.5 364 | q0 -18 9 -26.5t20 -15.5t20.5 -16t11.5 -27q3 -12 -1 -24q-2 -8 12.5 -12.5t35 -9.5t42 -11.5t33.5 -17.5q6 -5 9.5 -20.5t4.5 -33.5q1 -16 -3 -29.5t-15 -13.5h-506q-10 0 -14.5 13.5t-3.5 29.5q1 18 5 33.5t10 20.5q11 11 32.5 17.5t42 11.5t35 9.5t12.5 12t-2 12.5v12 365 | q1 18 11 27t21.5 16t20.5 15.5t9 26.5q0 20 -20.5 36.5t-47.5 21.5q-60 10 -113.5 34t-93 54.5t-62.5 65t-23 67.5zM79 470q0 -11 12 -28t34.5 -36t55 -37t72.5 -31q-13 41 -23 90t-17 98h-134v-56zM616 338q40 13 72 31t54.5 37t34.5 36t12 28v56h-134q-7 -49 -17 -98 366 | t-22 -90z" /> 367 | <glyph glyph-name="u1F44D" unicode="👍" horiz-adv-x="824" 368 | d="M0.5 168q-1.5 59 2 118t13.5 110q47 3 98.5 3t94.5 -10q7 -40 11 -96t5.5 -116t0.5 -116.5t-5 -98.5q-19 -3 -43.5 -3.5t-51.5 1t-53 2t-47 0.5q-10 40 -17 93.5t-8.5 112.5zM96 41q0 -17 11.5 -28.5t28.5 -11.5t28 11.5t11 28.5q0 15 -11 26.5t-28 11.5t-28.5 -11.5 369 | t-11.5 -26.5zM253 368q23 10 37 20t25.5 22.5t24 27.5t32.5 36q16 17 29.5 28t24.5 21t20 21t18 27q17 31 22.5 68.5t13.5 71.5q0 7 7 12q20 3 37 -4t29.5 -18.5t20.5 -27.5t11 -29q7 -35 -1 -63t-20 -53l-24 -49q-11 -24 -12 -50q23 -10 55 -10.5t66.5 1.5t67 2t55 -9 370 | t30 -30.5t-5.5 -63.5q0 -2 -2 -5l-6 -8q-3 -5 -5 -10l-2 -3q12 -11 17 -24t5 -21q1 -41 -34 -72q11 -15 12 -32.5t-4 -33.5t-15 -28t-23 -18q6 -36 -6.5 -61.5t-37 -40.5t-59.5 -21.5t-73 -6.5t-76.5 5.5t-70.5 14.5q-21 7 -41 15l-41 15q-20 8 -43 12.5t-48 -0.5 371 | q2 41 2.5 89.5t-1 98.5t-4.5 97.5t-7 86.5z" /> 372 | <glyph glyph-name="u1F44E" unicode="👎" horiz-adv-x="824" 373 | d="M1 410q-1 22 8 39.5t26 32.5q-10 15 -11 32.5t4 33.5t15 28t22 18q-6 36 6.5 61.5t37.5 40.5t59.5 21.5t72.5 6.5t76.5 -5.5t70.5 -14.5q21 -7 41 -15t41 -15.5t43.5 -11.5t47.5 1q-2 -41 -2.5 -90t1 -99t4 -97.5t8.5 -86.5q-24 -11 -38 -21t-25 -22t-23.5 -27t-32.5 -35 374 | q-16 -18 -29 -29l-24 -21q-12 -10 -21.5 -20.5t-18.5 -27.5q-17 -31 -21.5 -68.5t-14.5 -71.5q0 -9 -7 -12q-21 -3 -37.5 4t-29 18.5t-20.5 26.5t-11 30q-6 35 1.5 63t20 53t23.5 49.5t12 50.5q-22 9 -54.5 9t-67 -1.5t-66.5 -1.5t-54.5 9t-30.5 30.5t5 62.5q1 1 4 6l6 9 375 | q2 4 3 9l2 3q-11 11 -16.5 24t-5.5 21zM598 597.5q1 56.5 5 98.5q19 2 44.5 2.5t52 0t52.5 -1.5t47 -1q10 -40 16.5 -93.5t8 -112t-2 -118t-13.5 -110.5q-47 -4 -98 -4t-95 11q-7 40 -11 96t-5.5 116t-0.5 116.5zM649 618q0 -16 12 -28t28 -12t27.5 12t11.5 28t-11.5 27.5 376 | t-27.5 11.5t-28 -11.5t-12 -27.5z" /> 377 | <glyph glyph-name="u1F464" unicode="👤" horiz-adv-x="970" 378 | d="M751 78q94 -34 149 -67t55 -56v-105h-940v105q0 23 55 56t149 67q93 34 128 69t35 95q0 20 -10 31.5t-24 31.5t-21 58q-2 12 -9 17.5t-14.5 8t-14 17t-8.5 43.5q0 15 4.5 25.5t8.5 13.5l5 3q-9 50 -13 88q-2 21 6 47.5t27.5 55.5t62.5 48.5t103 19.5t103 -19.5 379 | t62.5 -48.5t27.5 -55.5t6 -47.5l-13 -88q18 -8 18 -42q-2 -29 -8.5 -43.5t-14 -17t-14.5 -8t-9 -17.5q-7 -38 -21 -58t-24 -31.5t-10 -31.5q0 -60 35 -95t128 -69z" /> 380 | <glyph glyph-name="u1F465" unicode="👥" horiz-adv-x="1030" 381 | d="M1015 -125h-225v144q0 52 -30 78.5t-154 85.5q41 29 41 81q0 14 -13.5 31.5t-18.5 49.5q-1 8 -5.5 11.5t-8.5 5t-8.5 11.5t-5.5 29q0 10 2.5 17t5.5 9l3 2q-6 33 -8 59q-1 14 3.5 31.5t16.5 37t38 32.5t62 13t62 -13t37.5 -32.5t16 -37t3.5 -31.5l-7 -59q10 -6 10 -28 382 | q-1 -19 -5.5 -29t-8.5 -11.5t-8.5 -5t-5.5 -11.5q-5 -32 -18.5 -49.5t-13.5 -31.5q0 -40 21 -63.5t77 -46.5q61 -25 90 -41t41 -36q5 -8 8.5 -58.5t4.5 -96.5zM526 127q89 -36 136.5 -64t47.5 -56v-132h-695v176q0 20 15.5 36t28.5 22.5t35 15.5q3 1 5 2q75 30 103 61t28 85 383 | q0 19 -18.5 42t-25.5 66q-2 10 -7.5 15t-11.5 7t-11 15t-7 39q0 13 3.5 22.5t7.5 12.5l4 2q-8 45 -11 79q-2 19 4.5 42t22 49t50.5 43.5t83 17.5t82.5 -17.5t50 -43.5t22 -49t4.5 -42l-10 -79q14 -7 14 -37q-2 -26 -7.5 -39t-11 -15t-11 -7t-7.5 -15q-7 -43 -25 -66t-18 -42 384 | q0 -54 28 -85t102 -61z" /> 385 | <glyph glyph-name="u1F4A1" unicode="💡" horiz-adv-x="670" 386 | d="M473 10h-265q0 59 -21.5 114.5t-50.5 97.5l-59 86q-29 43 -47 97t-14 112q3 43 14.5 81.5t36 76t59 64.5t88.5 44t121 17t121 -17t88.5 -44t59 -64.5t36 -76t14.5 -81.5q4 -59 -12.5 -113t-43.5 -98l-56 -86q-29 -44 -49 -98t-20 -112zM203 -159v99h264v-99 387 | q-60 -42 -132 -41q-72 -1 -132 41z" /> 388 | <glyph glyph-name="u1F4B0" unicode="💰" horiz-adv-x="803" 389 | d="M312 349q17 20 66 23v-84q-43 3 -59.5 10t-16.5 28q0 13 10 23zM420 108v91q48 -4 63 -10.5t15 -24.5q0 -45 -78 -56zM490 351q22 -12 29 -19.5t7 -17.5l8 -4l45 90l-7 5q-10 -7 -13 -7q-8 0 -13 3q-90 35 -126 35v18q0 14 20 18v9h-79v-9q17 -4 17 -18v-15 390 | q-73 -3 -113 -35.5t-40 -87.5t33.5 -78.5t119.5 -31.5v-96q-56 5 -86.5 23.5t-30.5 40.5l-7 4l-42 -94l7 -4q9 5 12 5q7 0 9 -3q72 -36 138 -40v-18q0 -15 -17 -20v-9h79v9q-20 5 -20 20v18q72 4 115.5 38.5t43.5 88.5q0 101 -149 115h-10v87q36 -2 70 -20zM531 532 391 | q89 -37 143.5 -118.5t54.5 -181.5q0 -136 -95.5 -231.5t-231.5 -95.5t-231.5 95.5t-95.5 231.5q0 100 54.5 181.5t142.5 118.5l-81 179q0 25 28 25h366q27 0 27 -25z" /> 392 | <glyph glyph-name="u1F4B5" unicode="💵" horiz-adv-x="1293" 393 | d="M79 291q76 0 149 24t134.5 62t121.5 85l120 92q61 46 122.5 84t134.5 62.5t149 24.5l105 -227l90 -192q-103 0 -199.5 -42t-176.5 -102l-160 -122q-80 -62 -182.5 -110.5t-212.5 -57.5l-98 210zM199 225l63 -137l64 -136q132 26 283 137q-70 27 -107 103q-32 72 -20 168 394 | q-154 -112 -283 -135zM1085 372l-68 145l-59 128q-136 -25 -284 -137q67 -24 106 -103q34 -75 20 -167q151 111 285 134zM428 68q-4 6 -10 18t-8 18q-5 -3 -10 -3q1 -11 6 -40q15 3 22 7zM455 90q4 6 11 21q-24 7 -38 13q0 -2 -1.5 -3.5t-3 -3.5t-1.5 -3zM371 68q1 3 6 15.5 395 | t8 18.5q-5 3 -9 6q-4 -6 -13 -15t-13 -14q12 -10 21 -11zM468 148q-3 14 -6 22h-1q-15 -10 -35 -20v-1q3 -3 3 -10q21 3 39 9zM329 106q27 10 37 15q-2 8 -2 9q-14 -1 -43 -1q1 -11 8 -23zM416 161q4 5 12 17l12 17q-10 9 -19 10q-10 -25 -13 -39q1 0 4 -2t4 -3zM365 145 396 | q3 3 5 10l-16 13l-15 12q-8 -8 -11 -20q3 -1 11.5 -4.5t14.5 -5.5t11 -5zM392 168q0 7 -2 20t-2 20q-8 -2 -23 -7q3 -3 5 -9t4 -10q-2 4 -4 10t-5 9q3 -6 8.5 -18.5t8.5 -18.5q2 1 10 4zM872 404q-8 22 -43 94q-13 -7 -19 -12q8 -16 22 -47l20 -47q12 8 20 12zM960 446 397 | q-5 13 -20.5 44t-23.5 49q-4 -1 -10.5 -4.5t-9.5 -4.5l44 -91q11 3 20 7zM916 426q-6 15 -14 30l-16 35l-15 29q-3 -2 -9 -5l-10 -5q26 -51 44 -92q4 1 11 4t9 4z" /> 398 | <glyph glyph-name="u1F4C2" unicode="📂" 399 | d="M0 129v536q0 24 17.5 41.5t41.5 17.5h356q24 0 41.5 -17.5t17.5 -41.5t17 -41.5t42 -17.5h227q24 0 41.5 -18t17.5 -42v-114h-632q-19 0 -36.5 -6.5t-33.5 -17.5t-27.5 -26t-17.5 -33zM22 -66l126 391q4 11 16.5 19.5t23.5 8.5h759l-133 -389q-3 -12 -16 -21t-24 -9h-752 400 | z" /> 401 | <glyph glyph-name="u1F4C4" unicode="📄" horiz-adv-x="631" 402 | d="M0 -7v672q0 24 17.5 41.5t41.5 17.5h230v-283q0 -25 17.5 -42t41.5 -17h284v-389q0 -24 -17.5 -41.5t-41.5 -17.5h-514q-24 0 -41.5 17.5t-17.5 41.5zM348 441v280h4l276 -277v-3h-280z" /> 403 | <glyph glyph-name="u1F4C5" unicode="📅" horiz-adv-x="789" 404 | d="M0 -7v578q0 24 17.5 41.5t41.5 17.5h38v-73q0 -29 20.5 -49.5t49.5 -20.5h16q30 0 51 20.5t21 49.5v73h61v-73q0 -29 20.5 -49.5t49.5 -20.5h17q30 0 50.5 20.5t20.5 49.5v73h61v-73q0 -29 21 -49.5t50 -20.5h16q30 0 50.5 20.5t20.5 49.5v73h38q24 0 41 -17.5t17 -41.5 405 | v-578q0 -24 -17 -41.5t-41 -17.5h-672q-24 0 -41.5 17.5t-17.5 41.5zM79 13h632v419h-632v-419zM136 557v135q0 13 9.5 22.5t21.5 9.5h16q14 0 23 -9.5t9 -22.5v-135q0 -12 -9 -21t-23 -9h-16q-12 0 -21.5 9t-9.5 21zM186 101q0 37 21 61t46 42l46 33q21 16 21 38 406 | q0 21 -12 30.5t-30 9.5q-12 0 -22 -4.5t-17 -12.5q-4 -4 -7.5 -8t-6.5 -9l-36 24q8 14 22 28q11 12 28.5 20.5t42.5 8.5q37 0 64.5 -22t27.5 -62q0 -22 -9.5 -38t-24.5 -29.5t-32 -24.5l-31 -20q-15 -11 -25 -22.5t-10 -26.5h97v36h44v-77h-195q-1 7 -1.5 13t-0.5 12z 407 | M356 557v135q0 13 9 22.5t21 9.5h17q13 0 22.5 -9.5t9.5 -22.5v-135q0 -12 -9.5 -21t-22.5 -9h-17q-12 0 -21 9t-9 21zM418 282v74h197v-35l-123 -245h-54l113 223q3 9 6 12l3 4v1q-3 0 -5 -1h-14h-79v-33h-44zM575 557v135q0 13 9 22.5t22 9.5h16q13 0 22.5 -9.5t9.5 -22.5 408 | v-135q0 -12 -9.5 -21t-22.5 -9h-16q-13 0 -22 9t-9 21z" /> 409 | <glyph glyph-name="u1F4C8" unicode="📈" horiz-adv-x="1228" 410 | d="M205 -64v666h102v-374l251 358l220 -276l113 77l61 -82l-194 -134l-195 246l-256 -363v-16h666v-102h-768z" /> 411 | <glyph glyph-name="u1F4CA" unicode="📊" horiz-adv-x="1228" 412 | d="M256 -64v307h205v-307h-205zM512 -59v712h205v-712h-205zM768 -59v507h205v-507h-205z" /> 413 | <glyph glyph-name="u1F4CC" unicode="📌" 414 | d="M1 419q4 40 22 85t49.5 87t69 72t75.5 45.5t72 15t59 -19.5q27 -19 37 -52.5t6 -74.5l148 -110q55 30 107 35t89 -23q26 -20 39 -53t12 -74t-15 -88t-42 -93l212 -203q5 -5 6 -12.5t-4 -12.5q-5 -9 -16 -9q-3 0 -9 2l-255 146q-37 -39 -77.5 -66.5t-79.5 -40t-74.5 -10 415 | t-63.5 23.5q-36 27 -46.5 78t3.5 112l-148 112q-38 -16 -73 -16t-61 19q-25 19 -35.5 52t-6.5 73zM84 374q1 -8 9 -13q8 -8 23 -8q16 0 33 8.5t35 23t35.5 33t33.5 39.5q5 7 4 14.5t-9 13.5q-6 5 -14 4t-13 -8q-39 -52 -69 -71.5t-36 -17.5q-7 5 -14.5 4t-13.5 -8 416 | q-5 -6 -4 -14zM231 322l178 -134q7 -4 12 -4q11 0 16 8q5 6 4 14t-7 13l-172 128q-16 -15 -31 -25zM414 83q-11 -17 4 -29q14 -10 35 -10q20 0 43 10.5t46.5 28.5t47 41t43.5 49q5 8 4 15.5t-9 13.5q-6 5 -14 3.5t-13 -8.5q-25 -33 -50.5 -57t-47.5 -37.5t-38.5 -17.5 417 | t-23.5 2q-6 5 -14 3.5t-13 -7.5z" /> 418 | <glyph glyph-name="u1F4CE" unicode="📎" horiz-adv-x="965" 419 | d="M259 -192q-58 0 -110 26.5t-84.5 72t-45.5 100t6.5 116t72.5 114.5l222 222l273 274q37 37 83.5 51t92.5 2q45 -12 79 -46t46 -79q12 -46 -2 -92.5t-51 -83.5l-474 -473q-24 -24 -52 -37t-60 -10t-56 27q-19 19 -25.5 46t4.5 60t40 62l333 332q11 10 25 10t24 -10t10 -24 420 | t-10 -25l-332 -333q-21 -21 -25.5 -40.5t5.5 -27.5q9 -9 23 -7q25 3 47 26l473 474q50 52 35 108q-8 27 -28 47t-47 28q-57 16 -108 -35l-274 -273l-222 -222q-44 -44 -56.5 -94t1 -91t45.5 -73t73 -45.5t91 -1t94 56.5l495 496q10 10 25 10t25 -10t10 -25t-10 -25 421 | l-496 -495q-83 -83 -185 -83z" /> 422 | <glyph glyph-name="u1F4D6" unicode="📖" horiz-adv-x="930" 423 | d="M355 186v-67l-200 80v67zM355 394v-68l-200 80v68zM846 746q26 10 47.5 -6t21.5 -40v-640q0 -33 -31 -46l-400 -160q-2 0 -5.5 -1.5t-7 -2t-6.5 -0.5t-6.5 0.5t-7 2t-5.5 1.5l-400 160q-31 13 -31 46v640q0 24 21.5 40t47.5 6l381 -152zM415 -48v561l-320 128v-561z 424 | M835 80v561l-320 -128v-561zM775 266v-67l-200 -80v67zM775 474v-68l-200 -80v68z" /> 425 | <glyph glyph-name="u1F50D" unicode="🔍" horiz-adv-x="820" 426 | d="M787 27q34 -34 7 -61l-47 -47q-14 -14 -33.5 -14t-33.5 14l-190 190q-72 -42 -156 -42q-128 0 -223.5 95.5t-95.5 223.5t90.5 218.5t218.5 90.5t223.5 -95.5t95.5 -223.5q0 -84 -45 -160zM110 386q0 -88 68 -156t156 -68t151 63t63 151t-68 156t-156 68t-151 -63 427 | t-63 -151z" /> 428 | <glyph glyph-name="u1F512" unicode="🔒" horiz-adv-x="730" 429 | d="M655 425q21 0 40.5 -19.5t19.5 -40.5v-390q0 -21 -14 -40t-34 -25l-59 -20q-49 -15 -98 -15h-290q-49 0 -98 15l-59 20q-20 6 -34 25t-14 40v390q0 22 15 41t35 19h100v70q0 110 51 170t149 60t149 -60t51 -170v-70h90zM265 515v-90h200v90q0 53 -27 81.5t-73 28.5 430 | t-73 -28.5t-27 -81.5z" /> 431 | <glyph glyph-name="u1F513" unicode="🔓" horiz-adv-x="730" 432 | d="M655 400q21 0 40.5 -19.5t19.5 -40.5v-390q0 -21 -14 -40t-34 -25l-59 -20q-49 -15 -98 -15h-290q-49 0 -98 15l-59 20q-20 6 -34 25t-14 40v390q0 22 15 41t35 19h400v140q0 53 -27 81.5t-73 28.5t-73 -28.5t-27 -81.5v-40h-100v20q0 110 51 170t149 60t149 -60t51 -170 433 | v-120h90z" /> 434 | <glyph glyph-name="u1F516" unicode="🔖" horiz-adv-x="631" 435 | d="M0 -9v675q0 18 9.5 32t26.5 21q5 3 10.5 4t11.5 1h516q5 0 11 -1t11 -4q17 -7 26.5 -21t9.5 -32v-675q0 -18 -9.5 -32t-26.5 -21q-16 -7 -33.5 -3.5t-28.5 16.5l-218 218l-218 -218q-12 -13 -29 -16.5t-33 3.5q-17 8 -26.5 21.5t-9.5 31.5z" /> 436 | <glyph glyph-name="u1F517" unicode="🔗" 437 | d="M0 92v474q0 32 12.5 61t33.5 50t50 34t62 13h299q-1 -8 -2 -14.5t-1 -15.5v-45q0 -12 3 -24h-299q-24 0 -41.5 -17.5t-17.5 -41.5v-474q0 -24 17.5 -41.5t41.5 -17.5h553q24 0 41 17.5t17 41.5v175q22 -16 47 -25.5t52 -10.5v-139q0 -33 -12.5 -61t-34 -50t-50 -34.5 438 | t-60.5 -12.5h-553q-33 0 -62 12.5t-50 34.5t-33.5 50t-12.5 61zM356 202.5q0 12.5 8 21.5l396 397h-138q-13 0 -21 8t-8 21v44q-1 12 7.5 21t21.5 9h296q11 0 20 -9t9 -21v-44v-252q0 -12 -9 -21t-20 -8h-44q-13 0 -21.5 8.5t-8.5 20.5v138l-397 -395q-8 -9 -20.5 -9 439 | t-21.5 9l-41 41q-8 8 -8 20.5z" /> 440 | <glyph glyph-name="u1F525" unicode="🔥" horiz-adv-x="710" 441 | d="M0 159q0 62 32 126.5t87 117.5q-12 -79 0.5 -127t32.5 -75q23 -32 55 -47q-25 111 -14 215q4 44 16 92t35.5 95t61.5 90t94 78q-24 -52 -23 -95t11 -75q12 -37 36 -67l32 -39q16 -20 27 -45.5t17 -59.5t6 -82q-9 21 -28 33.5t-43 12.5q-34 0 -56.5 -23t-22.5 -56 442 | q0 -17 5.5 -31.5t18 -26.5t32 -18t46.5 -6q46 4 81 32q14 13 27 31.5t21.5 45.5t10.5 63t-5 85h-1q54 -53 86.5 -117.5t32.5 -126.5q0 -56 -28 -98.5t-76.5 -70t-113 -42t-138 -14.5t-138 14.5t-113 42t-76.5 70t-28 98.5z" /> 443 | <glyph glyph-name="u1F554" unicode="🕔" horiz-adv-x="950" 444 | d="M475 760q125 0 231 -61.5t167.5 -167.5t61.5 -231t-61.5 -231t-167.5 -167.5t-231 -61.5t-231 61.5t-167.5 167.5t-61.5 231t61.5 231t167.5 167.5t231 61.5zM475 -60q149 0 254.5 105.5t105.5 254.5t-105.5 254.5t-254.5 105.5t-254.5 -105.5t-105.5 -254.5 445 | t105.5 -254.5t254.5 -105.5zM510 560v-246l150 -149l-50 -50l-170 170v275h70z" /> 446 | <glyph glyph-name="u1F6AB" unicode="🚫" horiz-adv-x="950" 447 | d="M475 760q125 0 231 -61.5t167.5 -167.5t61.5 -231t-61.5 -231t-167.5 -167.5t-231 -61.5t-231 61.5t-167.5 167.5t-61.5 231t61.5 231t167.5 167.5t231 61.5zM723 547h-1h1zM125 300q0 -125 79 -222l492 493q-97 79 -221 79q-145 0 -247.5 -102.5t-102.5 -247.5zM227 53 448 | l1 -1zM475 -50q145 0 247.5 102.5t102.5 247.5q0 124 -79 221l-492 -492q97 -79 221 -79z" /> 449 | </font> 450 | </defs></svg> 451 | --------------------------------------------------------------------------------