diff --git a/.gitignore b/.gitignore index b4a4af92ddaabde3c2a0ac4ea0c0a73b54c9a98f..c85e9bb8eabb93556b3e3ad7d041f8250232b46b 100644 --- a/.gitignore +++ b/.gitignore @@ -242,7 +242,6 @@ $RECYCLE.BIN/ **/nbproject/Package-*.bash build/ nbbuild/ -dist/ nbdist/ .nb-gradle/ diff --git a/.idea/minerva.iml b/.idea/minerva.iml index 136bc5b3df4e1e957bbfd75e3b710534eb10bd75..14758e8a8096a7df7c5445d419d79d2453bc00a7 100644 --- a/.idea/minerva.iml +++ b/.idea/minerva.iml @@ -1,6 +1,15 @@ <?xml version="1.0" encoding="UTF-8"?> <module type="JAVA_MODULE" version="4"> - <component name="Go" enabled="true" /> + <component name="Go" enabled="true"> + <buildTags> + <option name="cgo" value="NO" /> + <option name="customFlags"> + <array> + <option value="debug" /> + </array> + </option> + </buildTags> + </component> <component name="NewModuleRootManager" inherit-compiler-output="true"> <exclude-output /> <content url="file://$MODULE_DIR$"> diff --git a/.idea/runConfigurations/minerva_serve_silicon.xml b/.idea/runConfigurations/minerva_serve_silicon.xml new file mode 100644 index 0000000000000000000000000000000000000000..2d6d38d7ac1c39c0654f6abc42143ea23f7155a5 --- /dev/null +++ b/.idea/runConfigurations/minerva_serve_silicon.xml @@ -0,0 +1,13 @@ +<component name="ProjectRunConfigurationManager"> + <configuration default="false" name="minerva serve silicon" type="GoApplicationRunConfiguration" factoryName="Go Application" activateToolWindowBeforeRun="false"> + <module name="minerva" /> + <working_directory value="$PROJECT_DIR$/application/source" /> + <useCustomBuildTags value="true" /> + <parameters value="serve --config=../../development/examples/theme1/config.yaml --path=$PROJECT_DIR$/../../alvine/application/platform-themes/silicon/application/web/" /> + <kind value="DIRECTORY" /> + <directory value="$PROJECT_DIR$/application/source" /> + <filePath value="$PROJECT_DIR$" /> + <output_directory value="$PROJECT_DIR$/development/build" /> + <method v="2" /> + </configuration> +</component> \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..594baa94045517b9685ce83c8500ca4ea34b8bd7 --- /dev/null +++ b/Makefile @@ -0,0 +1,239 @@ +############################################################################################# +############################################################################################# +## +## PROJECT-DEFINITIONS +## +############################################################################################# +############################################################################################# + +COPYRIGHT_TEXT := © schukai GmbH, Released under the AGPL 3.0 License. +COMPONENTNAME := Minerva +COMPONENTSLUG := $(shell echo "$COMPONENTNAME" | tr '[:upper:]' '[:lower:]') + +############################################################################################# +############################################################################################# +## +## more general block with standard definitions +## +############################################################################################# +############################################################################################# + +# get Makefile directory name: http://stackoverflow.com/a/5982798/376773 +THIS_MAKEFILE_PATH:=$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)) +THIS_DIR:=$(shell cd $(dir $(THIS_MAKEFILE_PATH));pwd)/ +THIS_MAKEFILE:=$(THIS_DIR)$(THIS_MAKEFILE_PATH) + +# colors +BLACK := $(shell tput -Txterm setaf 0) +RED := $(shell tput -Txterm setaf 1) +GREEN := $(shell tput -Txterm setaf 2) +YELLOW := $(shell tput -Txterm setaf 3) +LIGHTPURPLE := $(shell tput -Txterm setaf 4) +PURPLE := $(shell tput -Txterm setaf 5) +BLUE := $(shell tput -Txterm setaf 6) +WHITE := $(shell tput -Txterm setaf 7) +RESET := $(shell tput -Txterm sgr0) + +INFO := $(GREEN) +COMMENT := $(YELLOW) + +# Output control and standard outputs +MARKER := $(BLUE)[+]$(RESET) +ERRORMARKER := $(RED)[-]$(RESET) +## Deactivate the quite mode by overwriting the value with space + +ifndef DEBUG + QUIET = @ +else + QUIET = +endif + +ifndef DONTOPENBROWSER + OPENBROWSER = false +else + OPENBROWSER = true +endif + +ECHO := @echo +ECHOMARKER := @echo "$(MARKER) $0" +ECHOERRORMARKER := @echo "$(ERRORMARKER) $0" + +# Use bash instead of sh +## Sets the shell used +SHELL = bash + +# path and binaries +AWK := awk +GO := go +CP := cp +CD := cd +KILL := /bin/kill +M4 := m4 +MV := mv +RM := rm -f +MKDIR := mkdir -p +SED := sed +FIND := find +SORT := sort +TOUCH := touch +WGET := wget +CHMOD := chmod +RSYNC := rsync +DOCKER := docker +NPX := npx +AWS := aws +XARGS := xargs +GREP := grep +NPM := npm +make := make +GIT := git +NPX := npx +NODE := node +LN := ln -s + +# Executable Programs the Installed be have to +EXECUTABLES = $(AWK) $(CP) $(KILL) $(M4) $(MV) rm mkdir $(SED) $(SORT) $(TOUCH) $(WGET) $(CHMOD) $(NPX) $(FIND) $(XARGS) $(GREP) $(NPM) $(GIT) $(NPX) $(NODE) $(GO) ln; +K := $(foreach exec,$(EXECUTABLES),\ + $(if $(shell which $(exec)),some string,$(error "Missing $(exec) in PATH; please install"))) + +check_defined = \ + $(strip $(foreach 1,$1, \ + $(call __check_defined,$1,$(strip $(value 2)),$3))) +__check_defined = \ + $(if $(value $1),, \ + $(ECHOERRORMARKER) $(if $2, $2, $1)) + +############################################################################################# +############################################################################################# +## +## DEFAULT-TARGETS +## +############################################################################################# +############################################################################################# + +# @see .PHONY https://www.gnu.org/software/make/manual/html_node/Phony-Targets.html#Phony-Targets + +.DEFAULT_GOAL := help + +.PHONY: print +print: + $(ECHO) "THIS_MAKEFILE: $(THIS_MAKEFILE)" + $(ECHO) "THIS_MAKEFILE_PATH: $(THIS_MAKEFILE_PATH)" + $(ECHO) "THIS_DIR: $(THIS_DIR)" + +# Add a comment to the public targets so that it appears +# in this help Use two # characters for a help comment +.PHONY: help +help: + @printf "${COMMENT}Usage:${RESET}\n" + @printf " make [target] [arg=\"val\"...]\n\n" + @printf "${COMMENT}Available targets:${RESET}\n" + @awk '/^[a-zA-Z\-\_0-9\.@]+:/ { \ + helpMessage = match(lastLine, /^## (.*)/); \ + if (helpMessage) { \ + helpCommand = substr($$1, 0, index($$1, ":")); \ + helpMessage = substr(lastLine, RSTART + 3, RLENGTH); \ + printf " ${INFO}%-22s${RESET} %s\n", helpCommand, helpMessage; \ + } \ + } \ + { lastLine = $$0 }' $(MAKEFILE_LIST) + @printf "\n${COMMENT}Available arguments:${RESET}\n\n" + @awk '/^(([a-zA-Z\-\_0-9\.@]+)\s=)/ { \ + helpMessage = match(lastLine, /^## (.*)/); \ + if (helpMessage) { \ + helpMessage = substr(lastLine, RSTART + 3, RLENGTH); \ + printf " ${INFO}%-22s${RESET} %s (Default: %s)\n", $$1, helpMessage, $$3; \ + } \ + } \ + { lastLine = $$0 }' $(MAKEFILE_LIST) + +.PHONY: variables +## Print all Variables +variables: + @$(foreach v, $(.VARIABLES), $(if $(filter file,$(origin $(v))), $(info $(INFO)$(v)$(RESET)=$($(v))$(RESET)))) + +check_defined = \ + $(strip $(foreach 1,$1, \ + $(call __check_defined,$1,$(strip $(value 2))))) +__check_defined = \ + $(if $(value $1),, \ + $(error Undefined $1$(if $2, ($2)))) + + + +############################################################################################# +############################################################################################# +## +## DIRECTORIES +## +############################################################################################# +############################################################################################# + +APPLICATION_PATH := $(THIS_DIR)application/ +RESOURCE_PATH := $(THIS_DIR)application/resource/ +SOURCE_PATH := $(THIS_DIR)application/source/ +WEB_PATH := $(THIS_DIR)application/web/ +DEPLOYMENT_PATH := $(THIS_DIR)deployment/ +VENDOR_PATH := $(THIS_DIR)deployment/vendor/ +DEVELOPMENT_PATH := $(THIS_DIR)development/ +SCRIPTS_PATH := $(THIS_DIR)development/scripts/ +DOCUMENTATION_PATH := $(THIS_DIR)documentation/ + +## Build path +BUILD_PATH = $(DEPLOYMENT_PATH)build/ + + + +############################################################################################# +############################################################################################# +## +## DEPENDENCIES (JEKYLL, MINERVA, ...) +## +############################################################################################# +############################################################################################# + + +############################################################################################# +############################################################################################# +## +## PROJECT-DEFINITIONS +## +############################################################################################# +############################################################################################# + + + +############################################################################################# +############################################################################################# +## +## PROJECT-TARGETS +## +############################################################################################# +############################################################################################# + +############################################################################################# +############################################################################################# +## +## PROJECT-TARGETS +## +############################################################################################# +############################################################################################# + +## Compiling for every OS and Platform +compile: + echo "Compiling for every OS and Platform" + + cd $(SOURCE_PATH); GOOS=linux GOARCH=arm $(GO) build -o $(BUILD_PATH)$(COMPONENTSLUG)-linux-arm; cd - + cd $(SOURCE_PATH); GOOS=linux GOARCH=amd64 $(GO) build -o $(BUILD_PATH)$(COMPONENTSLUG)-linux-amd64; cd - + cd $(SOURCE_PATH); GOOS=linux GOARCH=arm64 $(GO) build -o $(BUILD_PATH)$(COMPONENTSLUG)-linux-arm64; cd - + cd $(SOURCE_PATH); GOOS=linux GOARCH=386 $(GO) build -o $(BUILD_PATH)$(COMPONENTSLUG)-linux-386; cd - + cd $(SOURCE_PATH); GOOS=windows GOARCH=amd64 $(GO) build -o $(BUILD_PATH)$(COMPONENTSLUG)-windows; cd - + +## compile and deplay to aws +deploy: compile + find $(BUILD_PATH) -iname $(COMPONENTSLUG)-* -exec aws s3 cp {} s3://download.schukai.com/tools/$(COMPONENTSLUG)/ \; + +## overview-to-aws +overview-to-aws: + aws s3 cp $(WEB_PATH)/index.html s3://download.schukai.com/tools/$(COMPONENTSLUG)/ + \ No newline at end of file diff --git a/README.md b/README.md index b06b237b0cb9103ee18fc6b5b7f6b8be8376821a..fa9bfc1b0dc4be51d52a9de86b35b1f725ae75a9 100644 --- a/README.md +++ b/README.md @@ -2,91 +2,10 @@ -## Getting started +## Components -To make it easy for you to get started with GitLab, here's a list of recommended next steps. +* [grapesjs](https://grapesjs.com/); BSD 3-Clause +* [grapesjs-component-code-editor](https://github.com/Ju99ernaut/grapesjs-component-code-editor); MIT +* [grapesjs-plugin-export](https://www.npmjs.com/package/grapesjs-plugin-export); BSD 3-Clause -Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)! - -## Add your files - -- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files -- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command: - -``` -cd existing_repo -git remote add origin https://gitlab.schukai.com/oss/minerva.git -git branch -M master -git push -uf origin master -``` - -## Integrate with your tools - -- [ ] [Set up project integrations](https://gitlab.schukai.com/oss/minerva/-/settings/integrations) - -## Collaborate with your team - -- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/) -- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html) -- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically) -- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/) -- [ ] [Automatically merge when pipeline succeeds](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html) - -## Test and Deploy - -Use the built-in continuous integration in GitLab. - -- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html) -- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing(SAST)](https://docs.gitlab.com/ee/user/application_security/sast/) -- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html) -- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/) -- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html) - -*** - -# Editing this README - -When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thank you to [makeareadme.com](https://www.makeareadme.com/) for this template. - -## Suggestions for a good README -Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information. - -## Name -Choose a self-explaining name for your project. - -## Description -Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors. - -## Badges -On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge. - -## Visuals -Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method. - -## Installation -Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection. - -## Usage -Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README. - -## Support -Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc. - -## Roadmap -If you have ideas for releases in the future, it is a good idea to list them in the README. - -## Contributing -State if you are open to contributions and what your requirements are for accepting them. - -For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self. - -You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser. - -## Authors and acknowledgment -Show your appreciation to those who have contributed to the project. - -## License -For open source projects, say how it is licensed. - -## Project status -If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers. + \ No newline at end of file diff --git a/application/source/go.mod b/application/source/go.mod index fba07f4f2743d4c4660e83cbba00f4d31a1b7a8e..8f78bd13d6370f2d280c470f388d9c16afc29aaf 100644 --- a/application/source/go.mod +++ b/application/source/go.mod @@ -13,11 +13,16 @@ require ( ) require ( + gitea.com/go-chi/session v0.0.0-20211218221615-e3605d8b28b8 // indirect github.com/creasty/defaults v1.6.0 // indirect + github.com/evanw/esbuild v0.14.39 // indirect + github.com/fsnotify/fsnotify v1.5.4 // indirect github.com/go-chi/chi/v5 v5.0.7 // indirect github.com/google/uuid v1.3.0 // indirect + github.com/gorilla/websocket v1.5.0 // indirect + github.com/unknwon/com v1.0.1 // indirect github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778 // indirect go.uber.org/atomic v1.9.0 // indirect go.uber.org/multierr v1.8.0 // indirect - golang.org/x/sys v0.0.0-20210510120138-977fb7262007 // indirect + golang.org/x/sys v0.0.0-20220412211240-33da011f77ad // indirect ) diff --git a/application/source/go.sum b/application/source/go.sum index fb3e1b75ed282b37d5a4d44548516dae93876e26..0cd79db577f8efdfdd3e11869dc544a947feaf90 100644 --- a/application/source/go.sum +++ b/application/source/go.sum @@ -1,22 +1,61 @@ +gitea.com/go-chi/session v0.0.0-20211218221615-e3605d8b28b8 h1:tJQRXgZigkLeeW9LPlps9G9aMoE6LAmqigLA+wxmd1Q= +gitea.com/go-chi/session v0.0.0-20211218221615-e3605d8b28b8/go.mod h1:fc/pjt5EqNKgqQXYzcas1Z5L5whkZHyOvTA7OzWVJck= github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8= github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= +github.com/bradfitz/gomemcache v0.0.0-20190329173943-551aad21a668/go.mod h1:H0wQNHz2YrLsuXOZozoeDmnHXkNCRmMW0gwFWDfEZDA= +github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/couchbase/go-couchbase v0.0.0-20201026062457-7b3be89bbd89/go.mod h1:+/bddYDxXsf9qt0xpDUtRR47A2GjaXmGGAqQ/k3GJ8A= +github.com/couchbase/gomemcached v0.1.1/go.mod h1:mxliKQxOv84gQ0bJWbI+w9Wxdpt9HjDvgW9MjCym5Vo= +github.com/couchbase/goutils v0.0.0-20201030094643-5e82bb967e67/go.mod h1:BQwMFlJzDjFDG3DJUdU0KORxn88UlsOULuxLExMh3Hs= github.com/creasty/defaults v1.6.0 h1:ltuE9cfphUtlrBeomuu8PEyISTXnxqkBIoQfXgv7BSc= github.com/creasty/defaults v1.6.0/go.mod h1:iGzKe6pbEHnpMPtfDXZEr0NVxWnPTjb1bbDy08fPzYM= +github.com/cupcake/rdb v0.0.0-20161107195141-43ba34106c76/go.mod h1:vYwsqCOLxGiisLwp9rITslkFNpZD5rz43tf41QFkTWY= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f/go.mod h1:cuUVRXasLTGF7a8hSLbxyZXjz+1KgoB3wDUb6vlszIc= +github.com/edsrzf/mmap-go v1.0.0/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M= +github.com/evanw/esbuild v0.14.39 h1:1TMZtCXOY4ctAbGY4QT9sjT203I/cQ16vXt2F9rLT58= +github.com/evanw/esbuild v0.14.39/go.mod h1:GG+zjdi59yh3ehDn4ZWfPcATxjPDUH53iU4ZJbp7dkY= +github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= +github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= +github.com/fsnotify/fsnotify v1.5.4 h1:jRbGcIw6P2Meqdwuo0H1p6JVLbL5DHKAKlYndzMwVZI= +github.com/fsnotify/fsnotify v1.5.4/go.mod h1:OVB6XrOHzAwXMpEM7uPOzcehqUV2UqJxmVXmkdnm1bU= +github.com/go-chi/chi/v5 v5.0.4/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8= github.com/go-chi/chi/v5 v5.0.7 h1:rDTPXLDHGATaeHvVlLcR4Qe0zftYethFucbjVQ1PxU8= github.com/go-chi/chi/v5 v5.0.7/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8= github.com/go-playground/locales v0.14.0 h1:u50s323jtVGugKlcYeyzC0etD1HifMjqmJqb8WugfUU= github.com/go-playground/locales v0.14.0/go.mod h1:sawfccIbzZTqEDETgFXqTho0QybSa7l++s0DH+LDiLs= github.com/go-playground/universal-translator v0.18.0 h1:82dyy6p4OuJq4/CByFNOn/jYrnRPArHwAcmLoJZxyho= github.com/go-playground/universal-translator v0.18.0/go.mod h1:UvRDBj+xPUEGrFYl+lu/H90nyDXpg0fqeB/AQUGNTVA= +github.com/go-redis/redis/v8 v8.4.0/go.mod h1:A1tbYoHSa1fXwN+//ljcCYYJeLmVrwL9hbQN45Jdy0M= +github.com/go-sql-driver/mysql v1.4.1/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= +github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= +github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= +github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= +github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= +github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gookit/color v1.5.0 h1:1Opow3+BWDwqor78DcJkJCIwnkviFi+rrOANki9BUFw= github.com/gookit/color v1.5.0/go.mod h1:43aQb+Zerm/BWh2GnrgOQm7ffz7tvQXEKV6BFMl7wAo= +github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= +github.com/gopherjs/gopherjs v0.0.0-20181103185306-d547d1d9531e/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= +github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc= +github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= github.com/jessevdk/go-flags v1.5.0 h1:1jKYvbxEjfUl0fmqTCOfonvskHHXMjBySTLW4y9LFvc= github.com/jessevdk/go-flags v1.5.0/go.mod h1:Fw0T6WPc1dYxT4mKEZRfG5kJhaTDP9pj1c2EWnYs/m4= +github.com/jtolds/gls v4.2.1+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= +github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= github.com/kelseyhightower/envconfig v1.4.0 h1:Im6hONhd3pLkfDFsbRgu68RDNkGF1r3dvMUtDTo2cv8= github.com/kelseyhightower/envconfig v1.4.0/go.mod h1:cccZRl6mQpaq41TPp5QxidR+Sa3axMbJDNb//FQX6Gg= github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI= @@ -24,17 +63,41 @@ github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORN github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/lib/pq v1.2.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= +github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= +github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= +github.com/onsi/ginkgo v1.14.2/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY= +github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= +github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= +github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= +github.com/onsi/gomega v1.10.3/go.mod h1:V9xEwhxec5O8UDM77eCW8vLymOMltsqPVYWrpDsH8xc= +github.com/pelletier/go-toml v1.8.1/go.mod h1:T2/BmBdy8dvIRq1a/8aqjN41wvWlN4lrapLU/GW4pbc= github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/siddontang/go v0.0.0-20180604090527-bdc77568d726/go.mod h1:3yhqj7WBBfRhbBlzyOC3gUxftwsU0u8gqevxwIHQpMw= +github.com/siddontang/ledisdb v0.0.0-20190202134119-8ceb77e66a92/go.mod h1:mF1DpOSOUiJRMR+FDqaqu3EBqrybQtrDDszLUZ6oxPg= +github.com/siddontang/rdb v0.0.0-20150307021120-fc89ed2e418d/go.mod h1:AMEsy7v5z92TR1JKMkLLoaOQk++LVnOKL3ScbJ8GNGA= +github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= +github.com/smartystreets/assertions v0.0.0-20190116191733-b6c0e53d7304/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= +github.com/smartystreets/goconvey v0.0.0-20181108003508-044398e4856c/go.mod h1:XDJAKZRPZ1CvBcN2aX5YOUTYGHki24fSF0Iv48Ibg0s= +github.com/smartystreets/goconvey v0.0.0-20190731233626-505e41936337/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/syndtr/goleveldb v1.0.0/go.mod h1:ZVVdQEZoIme9iO1Ch2Jdy24qqXrMMOU6lpPAyBWyWuQ= +github.com/unknwon/com v1.0.1 h1:3d1LTxD+Lnf3soQiD4Cp/0BRB+Rsa/+RTvz8GMMzIXs= +github.com/unknwon/com v1.0.1/go.mod h1:tOOxU81rwgoCLoOVVPHb6T/wt8HZygqH5id+GNnlCXM= github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778 h1:QldyIu/L63oPpyvQmHgvgickp1Yw510KJOqX7H24mg8= github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778/go.mod h1:2MuV+tbUrU1zIOPMxZ5EncGwgmMJsa+9ucAQZXxsObs= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= +go.opentelemetry.io/otel v0.14.0/go.mod h1:vH5xEuwy7Rts0GNtsCW3HYQoZDY+OmBJ6t1bFGGlxgw= go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/atomic v1.9.0 h1:ECmE8Bn/WFTYwEW/bpKD3M8VtR/zQVbavAoalC1PYyE= go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= @@ -47,37 +110,70 @@ go.uber.org/zap v1.21.0 h1:WefMeulhovoZ2sYXz7st6K0sLj7bBhpiFaud4r4zST8= go.uber.org/zap v1.21.0/go.mod h1:wjWOCqI0f2ZZrJF/UufIOkiC8ii6tm1iqIsLo76RfJw= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20201006153459-a7d1128ccaa0/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= +golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200519105757-fe76b779f299/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007 h1:gG67DSER+11cZvqIMb8S8bt0vZtiN6xWYARwirrOSfE= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210908233432-aa78b53d3365 h1:6wSTsvPddg9gc/mVEEyk9oOAoxn+bT4Z9q1zx+4RwA4= +golang.org/x/sys v0.0.0-20210908233432-aa78b53d3365/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220412211240-33da011f77ad h1:ntjMns5wyP/fN65tdBD4g8J5w8n015+iIIs9rtjXkY0= +golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= +google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= +google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= +google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= +google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= +google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= +gopkg.in/ini.v1 v1.62.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= +gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= +gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20220512140231-539c8e751b99 h1:dbuHpmKjkDzSOMKAWl10QNlgaZUd3V1q99xc81tt2Kc= diff --git a/application/source/main.go b/application/source/main.go index 1bb60e82bd6ab534dcfb1b4848904553113ac6bb..3e27733fbed33368c744b66460131be428af2839 100644 --- a/application/source/main.go +++ b/application/source/main.go @@ -2,6 +2,7 @@ package main import ( "gitlab.schukai.com/oss/minerva/command" + "gitlab.schukai.com/oss/minerva/server" "gitlab.schukai.com/oss/minerva/utils" ) @@ -10,4 +11,6 @@ func main() { utils.Setup() command.Do() + server.ClearHttpFileResources() + } diff --git a/application/source/server/app.go b/application/source/server/app.go index 35ee8edfcb5fa3abdee47c68637714614b267696..5cd00b40c5a0548741bfa1bcfd49485aef93b382 100644 --- a/application/source/server/app.go +++ b/application/source/server/app.go @@ -1,31 +1,28 @@ package server -import ( - "github.com/go-chi/chi/v5" - "github.com/go-chi/chi/v5/middleware" - "net/http" -) - -func appHandler() http.Handler { - - r := chi.NewRouter() - r.Use(middleware.NoCache) - - r.Get("/editor", renderEditor) - - r.Handle("/web/node_modules/*", - http.StripPrefix("/app", http.FileServer(http.FS(embeddedFiles)))) - - //r.Get("/node_modules/*", serveNodeModules) - - //r.Route("/node_modules/*", http.StripPrefix("/assets/", - // http.FileServer(http.Dir("assets/")))) - // - //http.Handle("/assets/", http.StripPrefix("/assets/", - // http.FileServer(http.Dir("assets/")))) - - //r.Post("/convert", doV1Convert) - //r.Post("/create", doV1Create) - - return r -} +//func appHandler() http.Handler { +// +// r := chi.NewRouter() +// r.Use(middleware.NoCache) +// +// //r.Get("/editor", renderEditor) +// +// //r.Handle("/web/app/scripts/*", +// // http.StripPrefix("/app", getFileserver())) +// +// r.Handle("/*", +// http.StripPrefix("/__app/", getFileserver())) +// +// //r.Get("/node_modules/*", serveNodeModules) +// +// //r.Route("/node_modules/*", http.StripPrefix("/assets/", +// // http.FileServer(http.Dir("assets/")))) +// // +// //http.Handle("/assets/", http.StripPrefix("/assets/", +// // http.FileServer(http.Dir("assets/")))) +// +// //r.Post("/convert", doV1Convert) +// //r.Post("/create", doV1Create) +// +// return r +//} diff --git a/application/source/server/config.go b/application/source/server/config.go new file mode 100644 index 0000000000000000000000000000000000000000..0ad2957ff526d1ad5cd498662e0c587fb3ace69b --- /dev/null +++ b/application/source/server/config.go @@ -0,0 +1,76 @@ +package server + +import ( + "encoding/json" + "net/http" +) + +type frontendConfig struct { + Messages struct { + URL string `json:"url"` + } `json:"messages"` + Editor struct { + Storage struct { + StoreUrl string `json:"storeUrl"` + LoadUrl string `json:"loadUrl"` + DeleteUrl string `json:"deleteUrl"` + } `json:"storage"` + NoticeOnUnload bool `json:"noticeOnUnload"` + } `json:"editor"` + Assets struct { + Url string `json:"url"` + } `json:"assets"` +} + +//func getSession(w http.ResponseWriter, r *http.Request) string { +// +// name := "SESSION" +// +// cookie, err := r.Cookie(name) +// if err != nil { +// +// // cookie will get expired after 1 year +// expires := time.Now().AddDate(1, 0, 0) +// +// ck := http.Cookie{ +// Name: name, +// Path: "/", +// Expires: expires, +// } +// +// // value of cookie +// ck.Value = "value of this awesome cookie" +// +// // write the cookie to response +// http.SetCookie(w, &ck) +// +// } +// +// return cookie.Value +// +//} + +func getConfig() func(http.ResponseWriter, *http.Request) { + return func(w http.ResponseWriter, r *http.Request) { + + //session := getSession(w, r) + + conf := frontendConfig{} + + conf.Messages.URL = "ws://localhost:1212/messages" + conf.Editor.Storage.StoreUrl = "http://localhost:1212" + storagePath + conf.Editor.Storage.LoadUrl = "http://localhost:1212" + storagePath + conf.Editor.Storage.DeleteUrl = "http://localhost:1212" + storagePath + conf.Assets.Url = "http://localhost:1212" + assetsPath + conf.Editor.NoticeOnUnload = false + + data, err := json.Marshal(conf) + if err != nil { + logError("%s", err.Error()) + w.WriteHeader(500) + return + } + + w.Write(data) + } +} diff --git a/application/source/server/editor.go b/application/source/server/editor.go index e01b3aedf7b2c444382d9baf47926df2b8eac11b..ddefabd7044201fc3d4586195e796ff1fc7d481e 100644 --- a/application/source/server/editor.go +++ b/application/source/server/editor.go @@ -1,49 +1,20 @@ package server -import ( - "net/http" -) - -func serveNodeModules(w http.ResponseWriter, r *http.Request) { - - content := lookUp(r.URL.Path) - if content != nil { - - //w.Header().Add("Content-Type", "application/json") - - //mimeType := "" - // - //ext := filepath.Ext(r.URL.Path) - //switch ext { - //case ".htm", ".html": - // return "text/html" - //case ".css": - // return "text/css" - //case ".js": - // return "application/javascript" - // - // - // - //filetype := http.DetectContentType(content) - //fmt.Println(filetype) - - w.Write(content) - return - } - - w.WriteHeader(404) - -} - -func renderEditor(w http.ResponseWriter, r *http.Request) { - - content, err := embeddedFiles.ReadFile("web/app/editor.html") - if err != nil { - logError("something went wrong: %s", err.Error()) - w.WriteHeader(500) - return - } - - w.Write(content) - -} +//func renderEditor(w http.ResponseWriter, r *http.Request) { +// +// var ( +// content []byte +// err error +// ) +// +// content, err = readContentFile("web/app/editor.html") +// +// if err != nil { +// logError("something went wrong: %s", err.Error()) +// w.WriteHeader(500) +// return +// } +// +// w.Write(content) +// +//} diff --git a/application/source/server/fileserver.go b/application/source/server/fileserver.go index 496e3c633ed3924cbbc841885165a9ef699f3081..db3b27b0527659a668ab11b0f2dcf66e5ddf2e35 100644 --- a/application/source/server/fileserver.go +++ b/application/source/server/fileserver.go @@ -1,65 +1,59 @@ package server -import ( - "net/http" - "path" - "strings" -) - //// FSHandler404 provides the function signature for passing to the FileServerWith404 //type handler404 = func(w http.ResponseWriter, r *http.Request) (doDefaultFileServe bool) - -func fileServer(root string) http.Handler { - - fs := http.FileServer(http.Dir(root)) - - return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - //make sure the url path starts with / - upath := r.URL.Path - if !strings.HasPrefix(upath, "/") { - upath = "/" + upath - r.URL.Path = upath - } - - upath = path.Clean(upath) - // - ////// attempt to open the file via the http.FileSystem - ////f, err := root.Open(upath) - ////// close if successfully opened - ////if f != nil { - //// defer f.Close() - ////} - //if !utils.DirectoryExists(root) { - // if os.IsNotExist(err) { - // // call handler - // if h404 != nil { - // doDefault := h404(w, r) - // if !doDefault { - // return - // } - // } - // } - //} - // - //s, err := f.Stat() - // - //if err != nil { - // if os.IsNotExist(err) { - // // call handler - // if h404 != nil { - // doDefault := h404(w, r) - // if !doDefault { - // return - // } - // } - // } - //} - // - //if s.IsDir() && false { - // return - //} - - // default serve - fs.ServeHTTP(w, r) - }) -} +// +//func fileServer(root string) http.Handler { +// +// fs := http.FileServer(http.Dir(root)) +// +// return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { +// //make sure the url path starts with / +// upath := r.URL.Path +// if !strings.HasPrefix(upath, "/") { +// upath = "/" + upath +// r.URL.Path = upath +// } +// +// upath = path.Clean(upath) +// // +// ////// attempt to open the file via the http.FileSystem +// ////f, err := root.Open(upath) +// ////// close if successfully opened +// ////if f != nil { +// //// defer f.Close() +// ////} +// //if !utils.DirectoryExists(root) { +// // if os.IsNotExist(err) { +// // // call handler +// // if h404 != nil { +// // doDefault := h404(w, r) +// // if !doDefault { +// // return +// // } +// // } +// // } +// //} +// // +// //s, err := f.Stat() +// // +// //if err != nil { +// // if os.IsNotExist(err) { +// // // call handler +// // if h404 != nil { +// // doDefault := h404(w, r) +// // if !doDefault { +// // return +// // } +// // } +// // } +// //} +// // +// //if s.IsDir() && false { +// // return +// //} +// +// // default serve +// fs.ServeHTTP(w, r) +// }) +//} diff --git a/application/source/server/http-fs-debug.go b/application/source/server/http-fs-debug.go new file mode 100644 index 0000000000000000000000000000000000000000..8dc8f8751bb27413e9de2089ae172d98e6b29b8d --- /dev/null +++ b/application/source/server/http-fs-debug.go @@ -0,0 +1,224 @@ +//go:build debug + +package server + +import ( + "github.com/evanw/esbuild/pkg/api" + "github.com/fsnotify/fsnotify" + "gitlab.schukai.com/oss/minerva/config" + "gitlab.schukai.com/oss/minerva/utils" + "log" + "net/http" + "os" + "path" + "path/filepath" + "runtime" +) + +var appFiles http.FileSystem +var webDistPath string +var webSourcePath string + +func init() { + + _, p, _, ok := runtime.Caller(0) + if !ok { + utils.PrintErrorAndExit("unable to get the current filename") + } + + var ( + err error + ) + + p, err = filepath.Abs(path.Dir(p)) + if err != nil { + utils.PrintErrorAndExit("unable to get the current directory") + } + + webSourcePath = path.Clean(path.Join(p, "web/source/")) + webDistPath = path.Clean(path.Join(p, "web/dist/")) + + appFiles = http.Dir(webDistPath) + + startWatching() + +} + +func startWatching() { + + err := filepath.Walk(webSourcePath, + func(p string, info os.FileInfo, err error) error { + if err != nil { + return err + } + + if f, err := os.Stat(p); err == nil { + if f.Mode().IsDir() { + watchDirectory(p) + } + + } + + return nil + }) + if err != nil { + log.Println(err) + } + +} + +const debugFrontendCode = true + +func getEditor() http.Handler { + return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + editor := path.Clean(path.Join(webDistPath, "editor/index.html")) + + data, err := os.ReadFile(editor) + if err != nil { + utils.PrintError("%s", err.Error()) + } + + // w.Header().Set(ContentType, "text/css;charset=UTF-8") + w.Write(data) + //w.WriteHeader(200) + return + + }) +} + +func getEditorStyle() http.Handler { + return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + + stylesSources := []string{path.Clean(path.Join(webSourcePath, "styles/main.css"))} + stylesDist := path.Clean(path.Join(webDistPath, "styles/main.css")) + + result := api.Build(api.BuildOptions{ + EntryPoints: stylesSources, + Outfile: stylesDist, + Write: true, + Bundle: true, + MinifyWhitespace: !debugFrontendCode, + MinifyIdentifiers: !debugFrontendCode, + MinifySyntax: !debugFrontendCode, + + Loader: map[string]api.Loader{ + ".eot": api.LoaderBinary, + ".ttf": api.LoaderBinary, + ".woff": api.LoaderBinary, + ".woff2": api.LoaderBinary, + ".svg": api.LoaderBinary, + }, + }) + + if len(result.Errors) > 0 { + utils.PrintError("%s", result.Errors) + w.WriteHeader(500) + return + } + + data, err := os.ReadFile(stylesDist) + if err != nil { + utils.PrintError("%s", err.Error()) + } + + w.Header().Set(ContentType, "text/css;charset=UTF-8") + w.Write(data) + w.WriteHeader(200) + return + + }) +} + +func getEditorScript() http.Handler { + return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + + scriptSources := []string{path.Clean(path.Join(webSourcePath, "scripts/main.js"))} + scriptDist := path.Clean(path.Join(webDistPath, "scripts/main.js")) + + result := api.Build(api.BuildOptions{ + // Plugins: []api.Plugin{exampleOnResolvePlugin}, + EntryPoints: scriptSources, + Outfile: scriptDist, + Write: true, + Bundle: true, + MinifyWhitespace: !debugFrontendCode, + MinifyIdentifiers: !debugFrontendCode, + MinifySyntax: !debugFrontendCode, + }) + + if len(result.Errors) > 0 { + utils.PrintError("%s", result.Errors) + w.WriteHeader(500) + return + } + + data, err := os.ReadFile(scriptDist) + if err != nil { + utils.PrintError("%s", err.Error()) + } + + w.Header().Set(ContentType, "application/javascript;charset=UTF-8") + w.Write(data) + w.WriteHeader(200) + return + + }) +} + +func getFileserver() http.Handler { + c := config.GetConfiguration() + return http.FileServer(http.Dir(c.Server.Path)) +} + +var allWatcher []*fsnotify.Watcher + +func closeAllWatchers() { + for _, w := range allWatcher { + w.Close() + } +} + +func watchDirectory(toWatch string) { + watcher, err := fsnotify.NewWatcher() + if err != nil { + log.Fatal(err) + } + + allWatcher = append(allWatcher, watcher) + + //defer watcher.Close() + + //done := make(chan bool) + go func() { + for { + select { + case event, ok := <-watcher.Events: + if !ok { + return + } + log.Println("event:", event) + if event.Op&fsnotify.Write == fsnotify.Write { + + sendMessage([]byte("script-changed")) // ->reload page + + log.Println("modified file:", event.Name) + } + case err, ok := <-watcher.Errors: + if !ok { + return + } + log.Println("error:", err) + } + } + }() + + err = watcher.Add(toWatch) + if err != nil { + log.Fatal(err) + } + +} + +func ClearHttpFileResources() { + closeAllWatchers() +} diff --git a/application/source/server/http-fs.go b/application/source/server/http-fs.go new file mode 100644 index 0000000000000000000000000000000000000000..2aaaae595dd926b0f76d8aa2e28f16edfcfd8799 --- /dev/null +++ b/application/source/server/http-fs.go @@ -0,0 +1,36 @@ +//go:build !debug + +package server + +import "net/http" + +//go:embed web/* +var appFiles embed.FS + +func readContentFromFile(name string) ([]byte, error) { + var ( + content []byte + err error + ) + + content, err = appFiles.ReadFile(name) + + if err != nil { + return []byte{}, err + } + + return conten, nil + +} + +func getEditorScript() http.Handler { + return http.FileServer(http.FS(appFiles)) +} + +func getFileserver() http.Handler { + return http.FileServer(http.FS(appFiles)) +} + +func ClearHttpFileResources() { + +} diff --git a/application/source/server/serve.go b/application/source/server/serve.go index 4307837aac6e10fd4f3e71fcd4700c816e5c3b3d..31a05ccd993de3d9197a7c431b3b4b2db870fcc5 100644 --- a/application/source/server/serve.go +++ b/application/source/server/serve.go @@ -3,46 +3,50 @@ package server import ( "context" "crypto/tls" - "embed" + "encoding/json" + "fmt" + "gitea.com/go-chi/session" "github.com/go-chi/chi/v5" "github.com/go-chi/chi/v5/middleware" "gitlab.schukai.com/oss/minerva/config" + "gitlab.schukai.com/oss/minerva/utils" + "io" + "mime/multipart" "net/http" "os" "path" - "path/filepath" "strconv" "sync" ) -var ( - server http.Server - //go:embed web/* - embeddedFiles embed.FS -) - -func lookUp(p string) (content []byte) { - - c, _ := embeddedFiles.ReadFile("web" + p) - if len(c) > 0 { - return c - } - - base, err := filepath.Abs(config.GetServerPath()) - if err != nil { - logError("%s", err.Error()) - return nil - } - - filename := path.Clean(path.Join(base, p)) +var server http.Server - data, _ := os.ReadFile(filename) - if len(data) > 0 { - return data - } - - return nil -} +//func lookUp(p string) (content []byte) { +// +// if !utils.IsSnapshot() { +// c, _ := embeddedFiles.readContentFile("web" + p) +// if len(c) > 0 { +// return c +// } +// } else { +// +// } +// +// webDistPath, err := filepath.Abs(config.GetServerPath()) +// if err != nil { +// logError("%s", err.Error()) +// return nil +// } +// +// filename := path.Clean(path.Join(webDistPath, p)) +// +// data, _ := os.readContentFile(filename) +// if len(data) > 0 { +// return data +// } +// +// return nil +//} //func serveStaticFiles() func(http.ResponseWriter, *http.Request) { // return func(w http.ResponseWriter, r *http.Request) { @@ -59,7 +63,7 @@ func lookUp(p string) (content []byte) { //} func redirectToApp() func(http.ResponseWriter, *http.Request) { return func(w http.ResponseWriter, r *http.Request) { - http.Redirect(w, r, "app/editor", http.StatusTemporaryRedirect) + http.Redirect(w, r, "/editor/", http.StatusTemporaryRedirect) } } @@ -75,6 +79,9 @@ func waitGroupMiddleware() func(next http.Handler) http.Handler { } } +const storagePath = "/storage" +const assetsPath = "/assets" + func initRouting() *chi.Mux { /** x509: certificate signed by unknown authority */ @@ -88,60 +95,138 @@ func initRouting() *chi.Mux { router.Use(middleware.RealIP) router.Use(middleware.Heartbeat("/ping")) + router.Use(session.Sessioner(session.Options{ + Provider: "memory", + ProviderConfig: "", + CookieName: "SESSION", + CookiePath: "/", + Gclifetime: 0, + Maxlifetime: 0, + Secure: false, + CookieLifeTime: 0, + SameSite: 0, + Domain: "", + IDLength: 0, + IgnoreReleaseForWebSocket: false, + FlashEncryptionKey: "", + })) + router.Use(middleware.Compress(5)) - router.Use(middleware.AllowContentType("application/json", "text/html")) + //router.Use(middleware.AllowContentType("application/json", "text/html", "multipart/form-data")) router.Use(loggerMiddleware) - router.Mount("/app", appHandler()) - - //router.Get("/", func(w http.ResponseWriter, r *http.Request) { - // if negotiator.New(r.Header).Type("text/html") == "text/html" { - // http.Redirect(w, r, "https://www.alvine.cloud/en/products/media-services/juno/", http.StatusPermanentRedirect) - // } else { - // error2.StandardErrorResponse(w, r, - // error2.ErrorResponse{ - // Status: http.StatusNotFound, - // Hint: "did you want to call the juno-api? have a look at https://www.alvine.cloud/en/products/media-services/juno/documentation/", - // }) - // } - // - //}) - // - //p := cfg.Paths.Web - //zap.S().Info("use webpath " + p + "for static-file-server") - // - //if cfg.Server.Port == "" { - // zap.S().Error("missing server address") - // return nil - //} - - //router.Get("/*", redirectToApp()) - // - //router.Path("/whatever").Handler(func(writer http.ResponseWriter, req *http.Request) { - // http.Redirect(writer, req, "localhost:8080/whatever", http.StatusMovedPermanently) - // )) - // - - //d := http.Dir(p) - // router.Get("/*", - //serveStaticFiles( - // func(w http.ResponseWriter, r *http.Request) (doDefaultFileServe bool) { - // - // } - // - // ) - // //serveStaticFiles(fileServerWith404("/tmp", func(w http.ResponseWriter, r *http.Request) (doDefaultFileServe bool) { - // // error2.StandardErrorResponse(w, r, error2.ErrorResponse{ - // // Status: 404, - // // }) - // // return false - // // - // //}))) + router.Handle("/messages", getWebsocketHandler()) + + router.Get("/config.json", getConfig()) + + router.Get(storagePath+"*", loadData()) + router.Post(storagePath+"*", storeData()) + router.Delete(storagePath+"*", deleteData()) + router.Post(assetsPath, uploadFile) + //router.Handle(assetsPath+"/*", getAssetsFiles()) + + router.Handle("/editor/", getEditor()) + router.Handle("/scripts/main.js", getEditorScript()) + router.Handle("/styles/main.css", getEditorStyle()) + + router.Handle("/*", getFileserver()) + router.Get("/", redirectToApp()) return router } +func getAssetsPath() (string, error) { + c := path.Join(config.GetServerPath(), "assets") + if !utils.DirectoryExists(c) { + + if err := os.MkdirAll(c, 0755); err != nil { + return "", err + } + } + return c, nil +} + +type AssetDetail struct { + Src string `json:"src"` + Type string `json:"type"` + Height int `json:"height"` + Width int `json:"width"` +} + +type AssetsResponseCollection struct { + Data []AssetDetail `json:"data"` +} + +func copyUploadedFile(name string, header *multipart.FileHeader) (err error) { + + d, err := getAssetsPath() + if err != nil { + return + } + + p := path.Join(d, name) + + inFile, err := header.Open() + if err != nil { + return + } + + outFile, err := os.Create(p) + if err != nil { + return + } + + io.Copy(outFile, inFile) + + defer outFile.Close() + defer inFile.Close() + + return +} + +//func getAssetsFiles() http.Handler { +// +// c := config.GetConfiguration() +// return http.FileServer(http.Dir(c.Server.Path)) +//} + +func uploadFile(w http.ResponseWriter, r *http.Request) { + fmt.Println("File Upload Endpoint Hit") + + // Parse our multipart form, 10 << 20 specifies a maximum + // upload of 10 MB files. + r.ParseMultipartForm(10 << 20) + // FormFile returns the first file for the given key `myFile` + // it also returns the FileHeader so we can get the Filename, + // the Header and the size of the file + + m := r.MultipartForm.File + + collection := AssetsResponseCollection{} + + for _, files := range m { + for _, mpHeader := range files { + copyUploadedFile(mpHeader.Filename, mpHeader) + + model := AssetDetail{} + model.Src = assetsPath + "/" + mpHeader.Filename + model.Type = "image" + + collection.Data = append(collection.Data, model) + } + } + + data, err := json.Marshal(collection) + if err != nil { + logError("%s", err.Error()) + w.WriteHeader(500) + return + } + w.Write(data) + +} + func Serve() { initLogger() diff --git a/application/source/server/storage.go b/application/source/server/storage.go new file mode 100644 index 0000000000000000000000000000000000000000..482b0692268634dab66264bcb54fc558b58ee58f --- /dev/null +++ b/application/source/server/storage.go @@ -0,0 +1,263 @@ +package server + +import ( + "encoding/json" + "github.com/google/uuid" + "gitlab.schukai.com/oss/minerva/config" + "gitlab.schukai.com/oss/minerva/utils" + "io/ioutil" + "net/http" + "os" + "path" + "path/filepath" + "strings" +) + +type ProjectModels []ProjectModel + +type ProjectModel struct { + Id string `json:"id"` + Name string `json:"name"` + Template bool `json:"template"` + Thumbnail string `json:"thumbnail"` + Description string `json:"description"` + GjsAssets string `json:"gjs-assets"` + GjsPages string `json:"gjs-pages"` + GjsStyles string `json:"gjs-styles"` + UpdatedAt string `json:"updated_at"` +} + +//{ +//"id": "UUIDv4", +//"name": "Page name", +//"template": false, +//"thumbnail": "", +//"description": "No description", +//"gjs-assets": "[]", +//"gjs-pages": "[]", +//"gjs-styles": "[]", +//"updated_at": "" +//} + +func newPageModel() ProjectModel { + + m := ProjectModel{} + + m.Id = uuid.New().String() + m.Name = m.Id + m.GjsAssets = "[]" + m.GjsPages = "[]" + m.GjsStyles = "[]" + + return m + +} + +func writeAndGetDefaultProject() (model ProjectModel, err error) { + + model = newPageModel() + data, err := json.Marshal(model) + if err != nil { + return + } + + err = saveJson(data) + if err != nil { + return + } + return +} + +func loadModel(id string) (ProjectModel, error) { + + model := newPageModel() + + f, err := getStorageFilename(id) + if err != nil { + return model, err + } + + bytes, err := os.ReadFile(f) + if err != nil { + return model, err + } + + err = json.Unmarshal(bytes, &model) + //if err != nil { + return model, err + //} + + //data, err := json.Marshal(ProjectModel{}) + //if err != nil { + // logError("%s", err.Error()) + // w.WriteHeader(500) + // return + //} + // + //w.Write(data) +} + +func writeDefault(w http.ResponseWriter) { + collection := ProjectModels{} + + model, err := writeAndGetDefaultProject() + if err != nil { + logError("%s", err.Error()) + w.WriteHeader(500) + return + } + + collection = append(collection, model) + data, err := json.Marshal(collection) + if err != nil { + logError("%s", err.Error()) + w.WriteHeader(500) + return + } + w.Write(data) +} + +func loadData() func(http.ResponseWriter, *http.Request) { + return func(w http.ResponseWriter, r *http.Request) { + + uri := strings.Split(r.RequestURI, "/") + uuid := uri[len(uri)-1] + + //if uuid == "uuidv4" { + // writeDefault(w) + // + // return + //} + + if uuid == "storage" || uuid == "uuidv4" { + + collection := ProjectModels{} + + p, err := getStoragePath() + if err != nil { + logError("%s", err.Error()) + w.WriteHeader(500) + } + + files, err := ioutil.ReadDir(p) + if err != nil { + logError("%s", err.Error()) + w.WriteHeader(500) + } + + for _, file := range files { + fn := strings.TrimSuffix(filepath.Base(file.Name()), filepath.Ext(file.Name())) + m, err := loadModel(fn) + if err != nil { + logError("%s", err.Error()) + w.WriteHeader(500) + return + } + + collection = append(collection, m) + + } + + if len(collection) == 0 { + writeDefault(w) + return + } + + data, err := json.Marshal(collection) + if err != nil { + logError("%s", err.Error()) + w.WriteHeader(500) + return + } + + w.Write(data) + return + + } + + m, err := loadModel(uuid) + if err != nil { + logError("%s", err.Error()) + w.WriteHeader(500) + return + } + + data, err := json.Marshal(m) + if err != nil { + logError("%s", err.Error()) + w.WriteHeader(500) + return + } + + w.Write(data) + + } +} + +func getStoragePath() (string, error) { + c := path.Join(config.GetServerPath(), "storage") + if !utils.DirectoryExists(c) { + + if err := os.MkdirAll(c, 0755); err != nil { + return "", err + } + } + return c, nil +} + +func getStorageFilename(id string) (string, error) { + c, err := getStoragePath() + if err != nil { + return "", err + } + + p := path.Join(c, id+".json") + + return p, nil +} + +func saveJson(data []byte) (err error) { + + model := ProjectModel{} + err = json.Unmarshal(data, &model) + if err != nil { + return + } + + p, err := getStorageFilename(model.Id) + if err != nil { + return + } + + err = os.WriteFile(p, data, 0644) + if err != nil { + return + } + + return + +} + +func storeData() func(http.ResponseWriter, *http.Request) { + return func(w http.ResponseWriter, r *http.Request) { + + body, err := ioutil.ReadAll(r.Body) + if err != nil { + w.WriteHeader(400) + return + } + + err = saveJson(body) + if err != nil { + w.WriteHeader(400) + return + } + + w.WriteHeader(200) + } +} +func deleteData() func(http.ResponseWriter, *http.Request) { + return func(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(200) + } +} diff --git a/application/source/server/web/app/editor.html b/application/source/server/web/app/editor.html deleted file mode 100644 index 44ee6c41f95dfe820920ae7284e75c201ea6dc64..0000000000000000000000000000000000000000 --- a/application/source/server/web/app/editor.html +++ /dev/null @@ -1,236 +0,0 @@ -<!DOCTYPE html> -<html lang="en"> -<head> - <meta charset="UTF-8"> - <title>Title</title> - - - - - - - - <link rel="stylesheet" href="/app/web/node_modules/grapesjs/dist/css/grapes.min.css"> - <link rel="stylesheet" href="/app/web/node_modules/grapesjs-preset-webpage/dist/grapesjs-preset-webpage.min.css"> - - <script src="/app/web/node_modules/grapesjs/dist/grapes.min.js"></script> - <script src="/app/web/node_modules/grapesjs-preset-webpage/dist/grapesjs-preset-webpage.min.js"></script> - - <style> - body, - html {< - height: 100%; - margin: 0; - overflow: hidden; - } - - #toast-container { - font-size: 13px; - font-weight: lighter; - } - - #toast-container > div { - opacity: 0.95; - } - - #toast-container > div, - #toast-container > div:hover { - box-shadow: 0 0 12px rgba(0, 0, 0, 0.1); - font-family: Helvetica, sans-serif; - } - - /* LOGO VERSION */ - - .gjs-pn-commands .gjs-pn-buttons, - #gjs-pn-commands .gjs-pn-buttons { - display: none; - } - - .gjs-logo { - height: 25px; - } - - .gjs-logo-cont { - position: relative; - display: inline-block; - top: 3px; - } - - .gjs-logo-version { - position: absolute; - font-size: 10px; - padding: 1px 7px; - border-radius: 15px; - bottom: 2px; - right: -43px; - } - - /* INFO PANEL */ - - .gjs-mdl-dialog-sm { - width: 300px; - } - - #info-panel { - line-height: 17px; - } - - .info-panel-logo { - display: block; - height: 90px; - margin: 0 auto; - width: 90px; - } - - .info-panel-logo path { - stroke: #eee !important; - stroke-width: 8 !important; - } - - .info-panel-label { - margin-bottom: 10px; - font-size: 13px; - } - - .info-panel-link { - text-decoration: none; - } - - /* ADS */ - - .gjs-pn-panel#gjs-pn-views-container, - .gjs-pn-panel.gjs-pn-views-container { - height: calc(100% - 150px); - } - - .ad-cont { - position: absolute; - right: 0; - bottom: 0; - z-index: 2; - width: 15%; - height: 150px; - } - - #carbonads { - font: caption; - padding: 20px 10px; - } - - .carbon-link { - text-decoration: none; - font: caption; - } - - .carbon-img { - float: right; - margin-left: 10px; - } - - .carbon-img img { - border-radius: 3px; - max-width: 100px !important; - max-height: 77px; - } - - .carbon-text { - color: rgba(255, 255, 255, 0.75); - text-decoration: none; - font-weight: lighter; - } - - .carbon-poweredby { - color: rgba(255, 255, 255, 0.55); - text-decoration: none; - float: right; - } - - .carbon-cta-c { - text-align: right; - padding-top: 5px; - } - - .carbon-cta { - display: inline-block; - padding: 4px 10px; - border-radius: 3px; - font-weight: bold; - font-size: 12px; - } - - .gjs-block-label svg, - .gjs-block__media svg { - width: 54px; - } - - /* Temporary fix #2490 */ - .gjs-clm-tag-status, - .gjs-clm-tag-close { - width: 12px; - height: 12px; - } - .gjs-clm-tags-btn { - width: 24px; - } - - </style> - - -</head> -<body> - - -<div id="gjs"></div> -<div id="blocks"></div> - -<script type="text/javascript"> - const editor = grapesjs.init({ - // Indicate where to init the editor. You can also pass an HTMLElement - container: '#gjs', - // Get the content for the canvas directly from the element - // As an alternative we could use: `components: '<h1>Hello World Component!</h1>'`, - fromElement: true, - // Size of the editor - height: '300px', - width: 'auto', - // Disable the storage manager for the moment - storageManager: false, - // Avoid any default panel - panels: {defaults: []}, - blockManager: { - appendTo: '#blocks', - blocks: [ - { - id: 'section', // id is mandatory - label: '<b>Section</b>', // You can use HTML/SVG inside labels - attributes: {class: 'gjs-block-section'}, - content: `<section> - <h1>This is a simple title</h1> - <div>This is just a Lorem text: Lorem ipsum dolor sit amet</div> - </section>`, - }, { - id: 'text', - label: 'Text', - content: '<div data-gjs-type="text">Insert your text here</div>', - }, { - id: 'image', - label: 'Image', - // Select the component once it's dropped - select: true, - // You can pass components as a JSON instead of a simple HTML string, - // in this case we also use a defined component type `image` - content: {type: 'image'}, - // This triggers `active` event on dropped components and the `image` - // reacts by opening the AssetManager - activate: true, - } - ] - }, - }); -</script> - -</body> -</html> - - - diff --git a/application/source/server/web/dist/editor/android-chrome-192x192.png b/application/source/server/web/dist/editor/android-chrome-192x192.png new file mode 100644 index 0000000000000000000000000000000000000000..91d325b1af0e41bc3bb7f4e7ba07b825b7e1f232 Binary files /dev/null and b/application/source/server/web/dist/editor/android-chrome-192x192.png differ diff --git a/application/source/server/web/dist/editor/android-chrome-512x512.png b/application/source/server/web/dist/editor/android-chrome-512x512.png new file mode 100644 index 0000000000000000000000000000000000000000..cfc81706a453071bcdc9ccce4812414e8db52b24 Binary files /dev/null and b/application/source/server/web/dist/editor/android-chrome-512x512.png differ diff --git a/application/source/server/web/dist/editor/apple-touch-icon.png b/application/source/server/web/dist/editor/apple-touch-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..84a5814d9008819c9b706657435a39b330bad7fb Binary files /dev/null and b/application/source/server/web/dist/editor/apple-touch-icon.png differ diff --git a/application/source/server/web/dist/editor/browserconfig.xml b/application/source/server/web/dist/editor/browserconfig.xml new file mode 100644 index 0000000000000000000000000000000000000000..b3930d0f047184047cb81d620436d91653438b8b --- /dev/null +++ b/application/source/server/web/dist/editor/browserconfig.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8"?> +<browserconfig> + <msapplication> + <tile> + <square150x150logo src="/mstile-150x150.png"/> + <TileColor>#da532c</TileColor> + </tile> + </msapplication> +</browserconfig> diff --git a/application/source/server/web/dist/editor/favicon-16x16.png b/application/source/server/web/dist/editor/favicon-16x16.png new file mode 100644 index 0000000000000000000000000000000000000000..f9cd0ace01d77f363c194a383b51ad8014e7e279 Binary files /dev/null and b/application/source/server/web/dist/editor/favicon-16x16.png differ diff --git a/application/source/server/web/dist/editor/favicon-32x32.png b/application/source/server/web/dist/editor/favicon-32x32.png new file mode 100644 index 0000000000000000000000000000000000000000..daf4c5f7eb15b8c11485d2c616c29c5984d239b1 Binary files /dev/null and b/application/source/server/web/dist/editor/favicon-32x32.png differ diff --git a/application/source/server/web/dist/editor/favicon.ico b/application/source/server/web/dist/editor/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..06c426a951bef5cb714b7a97eed4e77ae553e09b Binary files /dev/null and b/application/source/server/web/dist/editor/favicon.ico differ diff --git a/application/source/server/web/dist/editor/favicon.png b/application/source/server/web/dist/editor/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..b004a7adf1c605ac6a473d8adaa6bcce78543d78 Binary files /dev/null and b/application/source/server/web/dist/editor/favicon.png differ diff --git a/application/source/server/web/dist/editor/favicon.svg b/application/source/server/web/dist/editor/favicon.svg new file mode 100644 index 0000000000000000000000000000000000000000..6460f77c006c845acd31df9570a648b9d8b26121 --- /dev/null +++ b/application/source/server/web/dist/editor/favicon.svg @@ -0,0 +1,2 @@ +<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.com/svgjs" width="652.43866" height="768.61469"><svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 652.43866 768.61469" height="768.61469" width="652.43866" xml:space="preserve" id="SvgjsSvg1405" version="1.1"><metadata id="SvgjsMetadata1404"><rdf:rdf><cc:work rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"></dc:type><dc:title></dc:title></cc:work></rdf:rdf></metadata><defs id="SvgjsDefs1403"><clipPath id="SvgjsClipPath1402" clipPathUnits="userSpaceOnUse"><path id="SvgjsPath1401" d="M 0,576.461 H 489.329 V 0 H 0 Z"></path></clipPath></defs><g transform="matrix(1.3333333,0,0,-1.3333333,0,768.61467)" id="SvgjsG1400"><g id="SvgjsG1399"><g clip-path="url(#clipPath18)" id="SvgjsG1398"><g transform="translate(475.3814,241.53)" id="SvgjsG1397"><path id="SvgjsPath1396" style="fill:#935ac6;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,-128.89 -104.483,-233.373 -233.372,-233.373 -128.885,0 -233.37,104.483 -233.37,233.373 0,128.89 104.485,233.373 233.37,233.373 C -104.483,233.373 0,128.89 0,0"></path></g><g transform="translate(459.2799,218.7185)" id="SvgjsG1395"><path id="SvgjsPath1394" style="fill:#480c19;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 H -9.005 V 24.566 H -20.47 v 37.665 h -7.37 -14.74 v -68.78 h -15.553 v 58.135 h -26.205 v -83.015 h -11.459 v 132.961 h -46.669 V -37.926 h -14.74 v 97.701 h -77.542 V -9.823 h -14.979 v 88.429 h -31.116 v -27.02 h -46.045 v -96.617 h -7.995 V 7.37 22.108 h -39.302 v -40.117 h -6.549 v 11.46 h -22.929 v -32.75 h -23.742 l 0.818,-43.396 h 8.397 c 16.56,-30.147 78.818,-126.958 207.413,-126.958 123.742,0 186.892,97.943 202.883,126.958 H 0 V 0"></path></g><g transform="translate(344.607,112.3708)" id="SvgjsG1393"><path id="SvgjsPath1392" style="fill:#dedddb;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -0.768,3.632 -3.017,6.377 -5.232,6.377 -0.189,0 -0.386,-0.022 -0.575,-0.063 -1.319,-0.278 -2.485,-1.498 -3.2,-3.339 -0.789,-2.05 -0.934,-4.555 -0.403,-7.057 0.793,-3.761 2.935,-6.386 5.206,-6.386 l 0.03,0.003 c 0,0.053 -0.013,0.11 -0.013,0.161 0.004,2.096 2.554,5.101 4.474,7.068 C 0.316,-2.18 0.231,-1.086 0,0"></path></g><g transform="translate(350.5396,120.2224)" id="SvgjsG1391"><path id="SvgjsPath1390" style="fill:#dedddb;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 C 1.195,1.647 1.576,4.496 0.827,7.241 0.078,9.974 -1.641,12.027 -3.42,12.439 -2.662,10.394 -1.502,7.013 -0.645,3.396 -0.39,2.313 -0.186,1.165 0,0"></path></g><g transform="translate(299.2096,469.3083)" id="SvgjsG1389"><path id="SvgjsPath1388" style="fill:#fab67d;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 0.187,0.786 -0.749,0.308 -0.094,0.04 c -0.099,0.041 -0.193,0.085 -0.295,0.121 l -0.366,0.12 V 1.402 L -1.492,1.434 -2.185,1.666 V 1.559 c -0.526,0.089 -1.089,0.134 -1.674,0.134 -1.514,0 -3.203,-0.291 -5.025,-0.867 -2.804,-0.888 -4.564,-2.286 -5.668,-3.684 0.089,0.276 0.205,0.549 0.344,0.826 0.862,1.706 2.56,2.97 5.043,3.756 1.93,0.612 3.716,0.92 5.324,0.92 1.264,0 2.421,-0.196 3.435,-0.576 L 0.478,1.733 0.809,2.617 0.885,2.823 C 0.916,2.912 0.947,3.006 0.982,3.1 1.8,5.141 1.456,10.335 1.022,14.333 L 1.01,14.48 0.965,14.878 0.916,15.315 H 0.911 L 0.907,15.387 C -0.009,23.136 -1.732,31.52 -3.488,36.75 l -0.415,1.238 -1.046,-0.786 c -0.737,-0.555 -1.496,-0.961 -2.22,-1.264 4.547,4.028 11.287,13.288 10.791,32.551 -0.276,10.559 -4.176,19.666 -11.296,26.344 -7.074,6.642 -17.271,10.447 -27.986,10.447 -0.456,0 -0.916,-0.009 -1.376,-0.022 -12.278,-0.362 -21.775,-3.953 -27.706,-7.004 l 1.018,0.845 -3.202,-0.398 C -70.816,98.214 -78.11,96.16 -83.215,87.865 -87.28,81.268 -87.235,70.799 -83.358,63 c -2.471,4.837 -3.707,10.707 -3.319,16.169 l 0.219,2.993 -1.89,-2.332 c -1.442,-1.782 -4.006,-5.507 -5.051,-10.487 -1.487,-7.098 0.656,-13.82 6.369,-19.984 l 0.009,-0.008 -0.004,0.004 c -6.611,6.481 -8.915,13.712 -6.848,21.493 l 0.389,1.447 -1.474,-0.277 c -6.459,-1.219 -11.09,-4.243 -13.761,-8.987 -3.725,-6.615 -3.019,-15.552 -1.126,-21.711 l 0.009,-0.027 0.009,-0.031 c 1.001,-2.604 2.43,-4.846 4.257,-6.669 -0.822,0.813 -1.581,1.679 -2.256,2.568 l -1.063,1.399 -0.581,-1.658 c -0.741,-2.117 -1.925,-6.784 -1.563,-14.279 v -0.049 l 0.009,-0.045 c 0.197,-1.313 2.854,-7.982 9.545,-11.559 -3.725,1.858 -6.025,4.555 -7.289,6.476 l -1.72,-0.648 c 0.527,-3.85 1.411,-7.968 2.626,-12.242 l 0.371,-1.313 1.099,0.813 c 1.036,0.768 2.148,1.156 3.309,1.156 0.255,0 0.523,-0.018 0.787,-0.053 1.755,-0.263 3.104,-1.264 4.127,-2.573 -1.157,0.791 -2.573,1.407 -4.279,1.64 -0.201,0.031 -0.411,0.044 -0.612,0.044 -1.295,0 -2.502,-0.563 -3.587,-1.675 -2.8,-2.863 -4.176,-8.785 -3.265,-14.083 1.291,-7.531 4.444,-10.241 7.227,-12.636 l 0.603,-0.522 c 0.759,-0.661 1.603,-1.528 2.501,-2.443 2.644,-2.712 5.668,-5.601 8.263,-5.798 0.206,-0.013 0.402,-0.022 0.594,-0.022 1.438,0 2.546,0.41 3.391,1.032 -0.045,-0.072 -0.09,-0.139 -0.139,-0.206 -0.348,-0.464 -0.978,-1.099 -2.001,-1.456 l -0.822,-0.29 0.219,-0.84 c 0.308,-1.175 1.867,-7.406 2.452,-14.855 2.001,-18.675 -2.332,-27.519 -3.225,-29.104 l -0.33,-0.59 0.451,-0.505 c 7.682,-8.49 16.915,-13.212 21.734,-15.275 0.947,-0.407 10.827,-3.837 11.957,-4.114 l 2.425,-0.598 -0.085,0.125 c 3.685,-0.675 7.759,-1.05 11.515,-1.05 5.074,0 11.984,0.688 16.057,3.944 0.076,0.063 0.147,0.134 0.219,0.206 l 0.04,0.04 0.38,0.37 -0.117,0.514 c -1.344,6.048 -1.125,13.962 -1.041,16.941 0.041,1.559 0.064,2.269 -0.906,2.301 -14.619,0.415 -30.85,8.741 -38.318,13.055 0.371,-0.205 0.75,-0.406 1.139,-0.607 0.647,-0.339 1.327,-0.697 2.037,-1.072 7.982,-4.212 20.037,-10.581 34.7,-10.581 0.237,0 0.478,0 0.723,0.004 l 0.84,0.014 0.009,0.089 0.371,0.036 c 2.988,0.277 11.019,1.514 12.27,3.841 0.755,1.398 2.291,6.142 4.734,13.766 l 0.018,0.058 c 2.207,6.883 4.958,15.454 7.477,22.167 0.402,1.076 0.786,2.086 1.148,3.037 l 0.048,0.134 c 4.002,10.505 5.208,13.677 1.39,24.066 C 0.014,-8.254 -1.215,-5.047 0,0"></path></g><g transform="translate(76.7335,138.6022)" id="SvgjsG1387"><path id="SvgjsPath1386" style="fill:#e31e25;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -8.052,-14.315 -12,-27.445 -11.423,-37.98 l 0.178,-3.294 1.589,2.892 c 5.69,10.366 16.675,23.575 36.711,27.631 l 0.481,0.098 0.193,0.453 c 3.663,8.521 35.944,84.875 41.972,140.962 l 0.021,0.215 -0.074,0.208 c -3.021,8.267 -5.527,16.549 -7.453,24.619 l -1.853,-0.123 C 56.354,116.998 36.738,66.646 29.229,52.169 20.512,35.359 0.206,0.352 0,0"></path></g><g transform="translate(40.191,473.8015)" id="SvgjsG1385"><path id="SvgjsPath1384" style="fill:#e31e25;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 0.189,-3.434 c 0.114,-2.073 0.42,-4.128 0.908,-6.109 0.409,-1.685 1.046,-3.919 1.883,-6.646 l 1.839,0.205 c 0.087,1.143 0.59,1.972 1.198,2.57 -0.303,-1.043 -0.45,-2.335 -0.172,-3.818 0.226,-1.231 0.961,-2.732 2.221,-4.547 -0.739,0.567 -1.457,1.226 -2.027,1.968 l -1.643,-0.864 c 2.721,-8.422 5.954,-17.486 6.246,-18.297 l 0.006,-0.022 0.019,-0.092 0.038,-0.082 c 0.262,-0.607 0.573,-1.27 0.931,-1.973 l -0.917,1.418 0.188,-3.543 0.257,-4.739 0.002,-0.118 0.039,-0.113 c 0.007,-0.031 0.076,-0.227 0.185,-0.555 1.864,-5.463 3.195,-9.565 3.965,-12.192 1.585,-5.441 2.005,-7.078 2.082,-7.497 0.09,-0.497 0.008,-2.819 -0.131,-6.667 -0.382,-10.713 -1.095,-30.643 0.758,-41.875 l 0.009,-0.039 0.008,-0.035 c 0.123,-0.524 1.397,-5.354 7.512,-10.87 4.93,-4.442 11.97,-7.938 15.253,-9.094 6.949,-2.452 14.149,-2.819 17.819,-2.819 0.245,0 0.467,0 0.672,0.004 8.505,0.109 18.297,8.344 22.779,19.148 3.967,9.561 4.407,15.989 4.071,19.698 -0.187,2.174 -1.749,5.922 -3.788,9.116 -2.125,3.325 -5.795,8.439 -9.107,13.004 -5.328,7.344 -10.839,14.941 -13.226,19.554 -3.569,6.895 -5.882,14.697 -6.707,17.734 l -1.841,-0.087 c -0.271,-1.576 -1.14,-4.189 -3.731,-7.681 -0.882,-1.186 -2.187,-2.072 -3.644,-2.727 1.278,0.847 2.321,1.794 3.089,2.819 2.261,3.007 3.068,5.769 3.347,7.558 l 0.184,1.165 -1.179,-0.078 c -1.086,-0.075 -2.352,-0.114 -3.757,-0.114 -0.851,0 -1.754,0.014 -2.71,0.039 3.273,0.35 6.511,0.773 8.732,1.257 l 0.122,0.027 0.114,0.061 c 4.638,2.43 4.935,5.459 5.223,8.387 l 0.026,0.275 c 0.206,2.02 -0.105,3.874 -0.305,5.101 -0.035,0.205 -0.066,0.388 -0.088,0.55 l -0.117,0.772 -0.786,0.03 c -0.785,0.031 -1.702,0.044 -2.718,0.044 -2.021,0 -4.377,-0.057 -6.904,-0.157 4.028,0.506 7.815,0.868 10.46,0.886 h 0.179 l 0.161,0.065 0.585,0.232 c 0.044,0.017 4.355,2.334 5.481,7.034 0.641,2.67 1.095,5.786 -1.68,9.068 l -0.227,0.266 -0.336,0.057 c -1.122,0.183 -2.828,0.274 -5.075,0.274 -2.5,0 -5.625,-0.113 -9.094,-0.314 4.726,0.589 9.107,0.995 12.166,0.995 0.812,0 1.514,-0.026 2.09,-0.087 l 0.559,-0.057 0.318,0.472 c 0.773,1.152 1.637,3.931 1.776,7.016 0.131,2.841 0.022,5.804 -2.832,8.104 L 60.655,9.879 60.589,9.932 60.52,9.971 c -1.663,0.969 -3.862,1.436 -6.711,1.436 -1.886,0 -3.767,-0.197 -5.429,-0.371 l -0.812,-0.083 c -0.698,-0.07 -1.422,-0.144 -2.055,-0.187 -1.68,-0.123 -6.555,-0.594 -11.917,-1.126 5.337,1.051 10.197,1.946 11.851,2.064 0.607,0.043 1.283,0.109 2.012,0.183 0.515,0.057 1.034,0.113 1.558,0.175 1.566,0.183 3.181,0.371 4.835,0.371 2.112,0 3.932,-0.319 5.572,-0.978 l 1.135,-0.454 0.153,1.218 c 0.24,1.946 0.798,6.502 -2.972,11.834 l -0.022,0.022 -0.017,0.022 c -0.127,0.161 -0.253,0.318 -0.38,0.471 l -0.026,0.026 -0.026,0.031 -0.013,0.008 -0.083,0.105 c -3.378,3.962 -7.1,6.053 -10.77,6.053 -0.589,0 -1.187,-0.053 -1.772,-0.162 -1.387,-0.257 -5.171,-0.72 -9.384,-1.204 4.944,1.226 8.154,1.963 9.336,2.147 0.694,0.109 1.388,0.165 2.056,0.165 3.129,0 5.961,-1.169 8.653,-3.573 l 1.802,-1.615 -0.236,2.409 c -0.588,5.913 -1.068,14.483 -0.047,21.727 1.549,11.018 1.322,25.383 -8.571,31.257 -2.334,1.388 -4.468,2.09 -6.335,2.09 -1.171,0 -2.227,-0.275 -3.147,-0.825 C 36.36,81.785 35.195,78.7 35.285,76.396 35.354,74.615 35.129,71.43 34.892,68.061 34.583,63.715 34.237,58.788 34.499,56.323 34.955,52.085 34.3,44.549 30.962,37.262 l -0.474,-1.034 1.105,-0.275 c 0.251,-0.061 0.511,-0.14 0.767,-0.223 -0.958,-0.017 -1.945,-0.105 -2.953,-0.253 l -0.03,-0.004 -0.032,-0.009 c -2.036,-0.445 -8.999,-2.23 -13.134,-6.497 l -0.12,-0.123 -0.172,-0.017 C 15.821,28.818 6.214,27.78 2.407,21.024 L 2.391,20.994 2.374,20.963 C 1.842,19.829 1.547,18.664 1.501,17.494 1.469,16.73 1.581,15.889 1.848,14.929 L 0.623,16.595 0.287,14.331 C -0.42,9.565 0.895,6.886 1.048,6.594 L 1.144,6.415 1.083,6.21 C 1.073,6.175 0.77,5.163 0.511,3.46 L 0.096,0.751 2.088,2.631 C 2.123,2.667 2.162,2.701 2.2,2.736 1.894,2.003 1.716,1.279 1.733,0.585 1.788,-1.252 2.473,-2.998 3.313,-4.468 2.8,-3.997 2.317,-3.46 1.913,-2.858 L 0,0 m 14.277,-34.482 c 0.366,-0.943 1.023,-1.916 2.002,-2.95 -1.446,0.777 -2.556,1.576 -2.818,2.252 -0.669,1.737 -0.319,3.094 0.294,4.08 -0.057,-1 0.053,-2.16 0.522,-3.382 m 13.709,63.863 c 0.726,0.092 1.416,0.135 2.068,0.135 1.064,0 2.006,-0.122 2.805,-0.362 -1.023,-0.113 -2.054,-0.227 -3.058,-0.341 z"></path></g><g transform="translate(74.3648,79.9655)" id="SvgjsG1383"><path id="SvgjsPath1382" style="fill:#e31e25;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 -1.138,0.957 c -2.226,1.883 -5.29,5.305 -7.21,10.918 -0.198,0.581 -0.352,1.069 -0.484,1.542 -0.235,0.837 -0.442,1.746 -0.647,2.859 -2.152,11.583 1.562,25.994 11.032,42.829 l 0.021,0.037 c 2.113,3.645 20.882,36.081 29.187,52.098 8.564,16.513 30.373,73.822 31.649,112.256 l 0.207,-0.006 -0.162,1.135 -0.058,0.352 -0.183,1.131 -1.074,-0.4 -0.118,-0.042 -0.132,-0.046 -0.045,-0.015 -0.042,-0.021 -0.012,-0.006 -0.621,-0.213 c -1.017,-0.349 -1.959,-0.623 -2.891,-0.843 l -0.596,-0.142 -0.112,-0.604 c -0.55,-2.943 -3.493,-18.107 -9.743,-38.717 0.655,2.361 1.302,4.769 1.934,7.225 l -1.808,0.529 C 40.595,173.496 31.609,155.297 20.259,138.715 15.239,131.385 9.777,123.994 3.99,116.17 -23.596,78.854 -54.835,36.603 -42.575,-9.45 l 0.156,-0.578 0.59,-0.107 c 0.861,-0.155 2.347,-0.344 4.511,-0.344 6.635,0 18.266,1.711 35.97,9.859 L 0,0"></path></g><g transform="translate(331.1012,98.5339)" id="SvgjsG1381"><path id="SvgjsPath1380" style="fill:#ea2a22;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0.582,-3.572 -0.216,-7.663 -2.316,-11.843 l 1.427,-1.162 c 0.768,0.61 1.51,1.228 2.208,1.833 l 0.1,0.082 0.068,0.11 c 1.692,2.55 5.387,5.784 5.422,5.817 0.638,0.54 1.402,1.162 2.281,1.845 l 0.065,0.051 0.06,0.066 c 0.6,0.68 1.204,1.372 1.782,2.057 l 0.388,0.458 -0.251,0.543 c -0.293,0.636 -0.53,1.296 -0.702,1.911 L 10.329,2.51 9.562,2.458 C 9.488,2.455 9.424,2.441 9.354,2.434 L 9.29,2.425 C 6.538,2.428 4.075,5.293 3.17,9.561 c -0.566,2.676 -0.405,5.373 0.453,7.588 0.827,2.148 2.242,3.578 3.881,3.924 0.255,0.055 0.509,0.082 0.767,0.082 2.74,0 5.267,-2.93 6.155,-7.128 0.074,-0.335 0.134,-0.698 0.185,-1.131 l 0.393,-3.043 1.385,2.734 0.336,0.666 0.026,0.049 0.021,0.052 c 0.354,0.962 0.798,1.754 1.311,2.352 l 0.276,0.321 -0.055,0.421 c -0.32,2.314 -0.751,4.745 -1.203,7.321 L 16.91,24.877 C 14.31,39.756 6.672,42.774 6.349,42.897 L 4.805,43.476 5.089,41.85 C 5.477,39.652 5.499,38.572 5.499,38.559 6.201,28.039 -6.013,18.98 -11.291,15.572 l -1.462,-0.941 1.587,-0.713 C -4.744,11.04 -0.885,6.229 0,0"></path></g><g transform="translate(160.7188,396.0022)" id="SvgjsG1379"><path id="SvgjsPath1378" style="fill:#e31e25;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 8.083,0 16.426,-3.99 16.778,-4.16 l 0.071,-0.04 c 0.087,-0.051 0.237,-0.138 0.42,-0.241 1.3,-0.735 4.009,-2.266 7.106,-5.528 l 1.269,0.989 c 2.21,-2.808 4.634,-6.992 6.517,-13.105 l 0.015,-0.051 0.02,-0.048 c 0.055,-0.127 0.111,-0.249 0.166,-0.376 0.079,-0.173 0.159,-0.348 0.233,-0.533 8.087,-19.63 31.691,-27.768 50.074,-31.133 5.635,-1.036 11.131,-1.554 16.343,-1.554 11.314,0 20.318,2.507 25.356,7.067 3.753,3.388 5.939,10.34 4.99,15.825 l -0.008,0.047 -0.012,0.044 c -1.396,5.053 -3.305,8.336 -4.67,10.198 l -1.277,1.756 -0.407,-2.132 c -0.241,-1.265 -0.613,-2.621 -1.108,-4.037 l -0.185,-0.538 -0.044,-0.118 -0.083,-0.238 -1.036,-1.328 c -0.585,-0.752 -1.27,-1.444 -2.032,-2.06 l -0.037,-0.024 0.029,0.02 c 1.241,1.127 2.254,2.396 3.009,3.776 l 0.036,0.067 0.023,0.071 c 2.653,7.474 1.309,11.531 1.143,11.966 l -0.051,0.143 -0.096,0.118 c -2.708,3.401 -7.655,5.833 -9.66,6.722 l -1.333,0.59 0.009,-1.456 c 0.008,-1.807 0.099,-3.847 0.253,-6.07 l 0.054,-0.739 0.729,-0.122 c 0.237,-0.04 0.462,-0.08 0.688,-0.119 0.086,-0.032 0.368,-0.285 0.415,-1.04 0.158,-2.325 -1.112,-4.796 -2.068,-5.813 -2.986,-3.171 -8.55,-4.785 -16.529,-4.785 -17.336,0.656 -41.489,11.112 -52.044,29.183 L 42.687,1.839 41.975,1.617 C 41.014,1.321 39.812,0.993 39.484,0.953 l -1.712,0.217 0.814,-1.589 c 0.19,-0.368 0.558,-1.297 0.882,-2.12 0.36,-0.909 0.7,-1.767 0.929,-2.23 l 0.178,-0.364 c -0.063,0.123 -0.118,0.245 -0.178,0.368 -1.158,2.337 -2.253,4.544 -3.483,6.382 -2.326,3.678 -3.911,5.434 -3.978,5.509 L 32.619,7.474 32.149,7.43 C 30.065,7.232 27.107,6.24 24.727,5.441 24.094,5.231 23.497,5.03 22.959,4.86 L 21.1,4.267 22.722,3.179 c 2.527,-1.7 4.519,-3.724 6.081,-5.773 -3.558,3.591 -7.24,5.809 -9.249,6.873 l -0.039,0.019 -0.04,0.016 C 12.915,7.066 8.296,7.794 6.77,7.794 6.422,7.794 6.181,7.758 5.983,7.684 2.313,6.268 -2.191,3.29 -4.259,1.341 l -2.274,-2.136 3.077,0.522 C -2.38,-0.091 -1.218,0 0,0"></path></g><g transform="translate(285.0191,346.9992)" id="SvgjsG1377"><path id="SvgjsPath1376" style="fill:#e31e25;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -0.054,-0.045 -0.103,-0.085 -0.159,-0.13 -0.053,-0.041 -0.106,-0.086 -0.158,-0.13 l 0.821,-1.294 c -2.615,-1.175 -5.15,-1.981 -7.166,-2.513 l -0.066,-0.016 -0.061,-0.029 c -5.372,-2.274 -12.237,-3.473 -19.856,-3.473 -0.24,0 -0.48,0.008 -0.719,0.016 -0.184,0.008 -0.366,0.012 -0.55,0.016 l -0.146,-1.875 c 4.299,-0.606 8.423,-0.907 12.258,-0.907 7.333,0 13.743,1.11 19.051,3.303 16.013,6.617 20.015,13.914 20.991,16.744 l 0.162,0.476 -0.3,0.399 c -2.306,3.075 -5.825,7.219 -5.861,7.26 l -0.227,0.268 -0.346,0.053 c -0.24,0.037 -0.509,0.053 -0.781,0.053 -2.266,0 -5.614,-1.204 -9.493,-2.599 L 6.397,15.26 5.727,15.02 5.775,14.313 C 6.146,8.63 3.078,2.701 0,0"></path></g><g transform="translate(263.4049,68.2468)" id="SvgjsG1375"><path id="SvgjsPath1374" style="fill:#ea2a22;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -6.021,3.049 -10.722,7.548 -12.891,12.345 -2.582,5.706 -1.737,11.622 2.317,16.238 1.396,1.709 3.061,3.34 4.976,4.879 l 2.124,1.706 -2.729,-0.03 c -0.791,-0.011 -1.669,-0.017 -2.642,-0.017 -8.959,0 -22.845,0.475 -38.113,2.724 -23.107,3.408 -34.628,10.188 -40.223,15.275 -0.215,0.196 -0.367,0.417 -0.454,0.657 l -0.374,1.027 -0.962,-0.522 c -0.254,-0.138 -0.416,-0.243 -0.533,-0.349 -4.679,-4.486 -10.31,-19.287 -11.821,-25.857 -0.246,-1.072 -0.518,-3.195 0.439,-5.359 l 0.156,-0.347 0.03,-0.07 0.045,-0.07 c 1.439,-2.166 7.051,-8.032 28.088,-15.596 19.681,-7.078 45.013,-8.563 62.795,-8.563 3.187,0 6.343,0.049 9.375,0.145 L 0,0 m -30.093,18.446 c -0.174,-4.672 -3.921,-8.328 -8.532,-8.328 -0.128,0 -0.257,0 -0.385,0.009 -2.286,0.103 -4.402,1.097 -5.962,2.794 -1.586,1.725 -2.407,3.968 -2.32,6.314 0.174,4.669 3.929,8.325 8.543,8.325 0.124,0 0.253,-0.002 0.378,-0.008 4.746,-0.213 8.463,-4.3 8.278,-9.106 m -44.677,9.985 c -0.605,-3.891 -3.633,-6.825 -7.043,-6.825 -0.307,0 -0.618,0.025 -0.916,0.071 -1.806,0.278 -3.373,1.351 -4.421,3.023 -1.049,1.67 -1.45,3.738 -1.124,5.821 0.598,3.891 3.629,6.827 7.043,6.827 0.303,0 0.613,-0.025 0.912,-0.071 3.725,-0.576 6.215,-4.543 5.549,-8.846"></path></g><g transform="translate(399.8277,169.1882)" id="SvgjsG1373"><path id="SvgjsPath1372" style="fill:#e31e25;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 v 0.026 l -0.005,0.026 c -0.476,3.631 -1.854,5.965 -2.636,7.028 -2.474,3.062 -11.668,13 -27.285,13.936 -0.574,0.033 -1.156,0.048 -1.734,0.048 -11.867,0 -20.686,-7.254 -23.693,-11.091 l -0.249,-0.314 0.014,-0.071 -0.098,-0.148 c -0.018,-0.021 -1.525,-2.294 -1.415,-3.46 0.232,-2.439 0.556,-5.323 0.889,-8.376 1.179,-10.642 2.441,-24.839 1.789,-32.03 l -0.022,-0.229 0.088,-0.215 0.083,-0.205 0.235,-0.581 0.629,-0.006 c 2.377,-0.022 4.694,-2.458 5.642,-5.927 0.962,-3.517 0.213,-7.217 -1.78,-8.794 l -0.426,-0.336 0.078,-0.54 0.066,-0.47 c 0.056,-0.368 0.106,-0.736 0.161,-1.096 l 0.153,-1.037 1.018,0.267 c 0.541,0.139 1.086,0.183 1.554,0.215 0.101,0.009 0.208,0.012 0.314,0.012 1.378,0 2.83,-0.56 4.083,-1.572 2.34,-1.886 2.965,-5.223 3.126,-7.042 l 0.047,-0.528 0.477,-0.234 c 1.29,-0.642 5.447,-3.19 4.832,-9.095 l -0.051,-0.469 0.346,-0.32 c 0.713,-0.662 2.438,-2.477 3.077,-5.05 l 0.61,-2.475 1.146,2.278 c 4.08,8.123 12.02,24.569 19.304,43.454 C 0.453,-8.293 0.005,-0.083 0,0"></path></g><g transform="translate(356.6187,113.2878)" id="SvgjsG1371"><path id="SvgjsPath1370" style="fill:#e31e25;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -0.816,0.788 -1.846,1.206 -2.955,1.206 -0.937,0 -1.74,-0.286 -2.255,-0.521 L -5.321,0.63 -5.419,0.549 c -0.843,-0.71 -1.464,-1.48 -1.851,-2.29 L -8.609,-4.57 -8.716,-4.672 c -1.562,-1.47 -4.847,-4.993 -5.002,-6.48 v -0.046 -0.05 c -0.005,-0.423 0.08,-0.902 0.244,-1.468 l 0.027,-0.084 0.04,-0.082 c 1.348,-2.606 2.752,-4.224 4.167,-4.808 0.502,-0.207 1.025,-0.309 1.571,-0.309 0.094,0 0.191,0 0.284,0.009 -0.594,-0.292 -1.176,-0.44 -1.721,-0.44 -1.092,0 -1.865,0.582 -2.322,1.073 l -0.572,0.606 -0.675,-0.492 c -0.914,-0.668 -3.222,-2.379 -4.935,-3.844 -0.44,-0.377 -0.919,-0.816 -1.469,-1.349 -0.275,-0.278 -0.546,-0.543 -0.817,-0.81 -1.283,-1.313 -2.903,-3.141 -3.28,-4.014 l -0.071,-0.175 -0.004,-0.184 c -0.026,-1.782 1.966,-6.266 4.247,-7.058 0.2,-0.07 0.422,-0.102 0.661,-0.102 0.875,0 1.94,0.447 2.681,0.823 l 0.04,0.022 0.04,0.025 c 1.078,0.689 3.741,2.409 5.295,3.446 0.63,0.42 1.309,0.987 1.971,1.536 0.927,0.773 1.974,1.649 2.591,1.825 0.196,0.058 0.44,0.14 0.728,0.241 -0.794,-0.448 -1.336,-0.729 -1.354,-0.735 l -0.092,-0.051 -0.08,-0.071 c -1.811,-1.534 -10.852,-9.236 -11.628,-10.208 -1.656,-2.068 -1.856,-3.998 -0.626,-6.074 1.011,-1.725 2.037,-2.724 3.04,-2.972 0.284,-0.071 0.586,-0.106 0.892,-0.106 0.901,0 1.86,0.306 2.84,0.911 0.08,0.047 2.233,1.318 2.965,1.779 0.905,0.578 2.543,1.662 3.865,2.543 l 0.023,0.014 0.022,0.019 c 2.032,1.531 4.589,3.196 6.453,4.413 0.236,0.149 0.448,0.289 0.648,0.42 -0.55,-0.614 -1.061,-0.944 -1.664,-1.343 -0.231,-0.15 -0.48,-0.311 -0.742,-0.491 -1.917,-1.332 -6.275,-4.892 -7.567,-5.952 l -0.058,-0.048 -0.052,-0.058 c 0,-0.002 -0.036,-0.038 -0.182,-0.139 l -0.79,-0.543 0.021,-0.032 c -1.308,-0.955 -3.918,-2.958 -5.094,-4.55 -0.941,-1.279 -1.962,-3.168 -1.465,-4.922 0.368,-1.301 1.549,-2.415 3.511,-3.307 l 0.195,-0.087 0.209,0.003 c 3.102,0.043 9.076,4.603 14.433,8.873 0.502,0.401 0.95,0.756 1.327,1.054 3.701,2.9 8.082,9.293 8.867,11.389 0.351,0.936 0.31,2.581 0.279,3.244 -0.208,3.627 -1.89,6.287 -2.689,7.355 l 0.013,0.024 c 2.499,5.109 -2.511,8.999 -2.724,9.16 l -0.382,0.289 0.084,0.469 c 1.181,6.533 -4.052,8.489 -4.655,8.692 L 2.3,-7.72 2.309,-7.146 c 0,0.196 0.022,4.917 -2.308,7.146"></path></g><g transform="translate(395.5631,199.2839)" id="SvgjsG1369"><path id="SvgjsPath1368" style="fill:#fabd09;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -0.516,1.82 -9.425,26.899 -19.84,43.943 -10.019,16.397 -20.79,40.709 -21.384,42.058 -1.166,8.644 -3.001,17.253 -4.337,22.957 -0.552,2.355 -2.023,7.834 -2.608,9.512 -1.839,5.226 -12.264,31.671 -36.796,38.805 l -1.387,0.401 -0.752,-1.231 c -3.027,-4.949 -15.696,-18.504 -38.459,-18.504 -0.391,0 -0.7,-0.244 -1.884,-0.234 -12.559,0.124 -24.02,4.272 -28.509,5.889 l -0.235,0.236 c -15.333,3.34 -37.15,10.281 -45.552,29.61 -4.309,9.913 -12.356,22.771 -31.491,22.776 -1.871,0 -3.111,0.47 -5.12,0.217 l -0.115,-0.015 -0.111,-0.027 c -4.001,-1.018 -17.633,-5.171 -25.062,-15.868 l -1.848,-2.659 c -1.018,-0.253 -1.889,-0.502 -2.599,-0.719 l -1.595,-0.488 0.286,-1.641 c 0.193,-1.097 0.29,-2.346 0.281,-3.714 v -0.715 l 0.134,-0.152 -0.434,-3.235 c -0.557,-4.093 -1.848,-8.609 -3.838,-13.411 -4.558,-10.983 -14.135,-19.034 -22.779,-19.149 -0.202,-0.005 -0.423,-0.005 -0.657,-0.005 -3.982,0 -11.75,0.429 -19.071,3.3 -0.813,0.323 -3.302,1.581 -6.052,3.129 l -2.527,-2.636 c 2.813,-4.539 6.503,-10.931 8.11,-14.365 2.613,-5.581 8.052,-17.198 26.989,-17.539 6.405,-0.115 10.631,-0.74 14.023,-1.245 2.387,-0.352 4.443,-0.657 6.512,-0.657 2.641,0 5.098,0.483 8.227,1.615 l 0.097,0.033 0.091,0.046 c 0.342,0.167 0.775,0.385 1.282,0.65 l 0.051,-0.342 c 0.58,-3.806 3.009,-17.679 9.871,-36.375 l 0.401,-1.105 h 0.005 c 1.032,-2.773 2.12,-5.526 3.226,-8.195 6.046,-14.533 17.296,-33.235 27.223,-49.736 8.116,-13.495 15.126,-25.151 16.826,-30.569 2.484,-7.918 2.282,-16.324 -0.627,-25.702 l -0.023,-0.079 -0.018,-0.079 c -0.175,-0.805 -0.65,-2.401 -1.917,-5.432 0,0 -0.198,-0.443 -0.539,-1.193 l -0.01,-0.022 -0.009,-0.025 c -1.032,-2.439 -2.249,-4.987 -3.613,-7.577 -2.558,-5.127 -6.277,-12.107 -9.595,-16.451 l -1.088,-1.433 1.378,-1.154 c 8.683,-7.274 21.587,-12.219 38.353,-14.691 15.273,-2.248 29.145,-2.723 38.095,-2.723 3.544,0 5.964,0.079 6.839,0.111 l 0.507,0.02 0.429,0.272 c 9.558,6.053 23.141,9.903 38.257,10.83 0.746,0.025 1.456,0.038 2.161,0.038 5.171,0 9.775,-0.625 13.697,-1.855 l 0.802,-0.251 0.724,0.426 c 3.069,1.826 18.337,11.517 17.54,23.491 -1.277,16.62 -10.798,36.581 -12.163,39.364 l -0.086,0.776 c -0.019,0.138 -1.627,14.054 -0.476,26.762 1.06,11.6 0.977,21.352 0.95,23.107 0.438,0.272 1.438,0.922 2.765,1.934 l 0.24,-0.51 c 0.732,-1.552 3.364,-7.032 6.401,-12.333 5.019,-8.751 7.641,-11.003 9.512,-11.458 l -0.092,-0.075 -0.018,-0.891 c -0.078,-4.236 -0.175,-14.88 0.516,-22.196 l 0.396,-4.183 2.862,3.078 c 4.263,4.587 12.232,9.488 21.809,9.488 0.571,0 1.156,-0.019 1.727,-0.051 12.513,-0.751 20.716,-7.33 24.491,-11.188 l 3.162,-3.228 0.073,4.518 C 2.116,-12.593 0.378,-1.32 0,0.001"></path></g><g transform="translate(154.5064,36.5876)" id="SvgjsG1367"><path id="SvgjsPath1366" style="fill:#fabd09;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 C -0.179,-0.306 -0.363,-0.604 -0.533,-0.89 L -0.546,-0.914 -0.56,-0.937 c -0.354,-0.625 -0.778,-1.405 -1.263,-2.31 7.717,-2.792 15.749,-4.713 23.776,-6.52 h 7.017 v -1.571 c 0.512,-0.117 1.028,-0.234 1.535,-0.35 11.783,-2.693 22.329,-4.745 33.513,-5.585 22.849,-1.713 47.434,-0.699 68.39,3.602 10.532,2.161 20.912,4.98 31.174,8.181 v 1.751 h 5.522 c 9.444,3.029 20.331,6.604 27.602,9.851 2.653,1.184 5.294,2.415 7.927,3.67 -0.307,1.856 -0.644,3.725 -1.024,5.621 l -1.207,5.993 -0.559,2.786 -2.348,-1.597 c -3.48,-2.365 -6.217,-3.945 -7.918,-4.573 -0.332,-0.079 -0.686,-0.123 -1.045,-0.123 -0.678,0 -1.202,0.15 -1.373,0.208 -0.42,0.215 -0.769,0.423 -1.066,0.624 -1.163,0.802 -1.872,1.703 -2.174,2.759 -0.56,1.975 0.52,4.022 1.526,5.397 l 1.753,2.388 -2.907,0.573 c -0.048,0.014 -0.097,0.024 -0.145,0.033 -1.364,0.338 -2.575,1.26 -3.322,2.529 -1.194,2.016 -0.94,3.804 0.879,6.164 l 1.556,2.028 -2.396,0.889 c -1.932,0.715 -3.782,3.798 -4.389,6.247 l -0.704,2.823 -2.291,-1.795 c -1.859,-1.457 -3.7,-2.726 -5.47,-3.771 l -0.288,-0.167 -0.21,-0.261 c -7.949,-9.706 -21.157,-15.974 -35.332,-16.768 -0.862,-0.036 -1.727,-0.055 -2.615,-0.055 -5.933,0 -11.429,0.794 -16.338,2.363 l -2.637,0.838 0.061,-0.887 c -2.47,-0.126 -7.245,-0.314 -13.445,-0.314 -17.821,0 -43.197,1.485 -62.872,8.56 C 18.036,44.876 11.442,50.183 9.134,52.762 L 7.297,54.824 6.047,52.357 C 2.79,45.929 -4.359,28.211 -0.411,2.69 L 0,0"></path></g><g transform="translate(224.4293,79.4929)" id="SvgjsG1365"><path id="SvgjsPath1364" style="fill:#dedddb;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 4.26,-0.19 7.788,3.063 7.946,7.251 0.158,4.188 -3.15,7.749 -7.374,7.94 -0.115,0.003 -0.234,0.008 -0.353,0.008 -4.102,0 -7.435,-3.189 -7.59,-7.258 C -7.446,5.928 -6.731,3.995 -5.361,2.5 -3.962,0.98 -2.061,0.093 0,0"></path></g><g transform="translate(329.2398,98.2419)" id="SvgjsG1363"><path id="SvgjsPath1362" style="fill:#ececbe;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -1.979,13.952 -19.189,15.456 -26.499,15.456 -0.701,0 -1.405,-0.012 -2.118,-0.033 -20.809,-1.277 -38.15,-8.023 -46.344,-18.042 -3.627,-4.132 -4.344,-9.18 -2.046,-14.252 3.367,-7.428 14.241,-16.105 33.838,-16.108 0.852,0 1.711,0.019 2.588,0.055 14.06,0.788 27.107,7.031 34.865,16.699 4.42,5.507 6.5,11.42 5.716,16.225"></path></g><g transform="translate(180.8189,90.8552)" id="SvgjsG1361"><path id="SvgjsPath1360" style="fill:#dedddb;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0.259,-0.038 0.515,-0.061 0.774,-0.061 2.952,0 5.578,2.593 6.11,6.032 0.589,3.784 -1.549,7.271 -4.757,7.767 -0.255,0.039 -0.515,0.061 -0.771,0.061 -2.955,0 -5.581,-2.592 -6.113,-6.03 C -5.042,5.91 -4.693,4.071 -3.763,2.592 -2.865,1.157 -1.529,0.237 0,0"></path></g><g transform="translate(245.9727,461.4768)" id="SvgjsG1359"><path id="SvgjsPath1358" style="fill:#f2f2f2;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,0 3.768,3.453 9.424,3.848 5.653,0.391 6.203,-0.08 6.203,-0.08 0,0 1.884,-2.826 -0.55,-4.949 0,0 -5.417,-1.805 -8.953,-1.805 C 2.59,-2.986 0.391,-0.551 0,0"></path></g><g transform="translate(285.0797,466.4992)" id="SvgjsG1357"><path id="SvgjsPath1356" style="fill:#f2f2f2;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,0 -0.468,-2.279 2.123,-2.671 2.592,-0.392 6.519,-0.94 8.794,2.355 2.279,3.299 1.18,5.107 1.18,5.107 C 12.097,4.791 3.303,5.574 0,0"></path></g><g transform="translate(246.9889,460.6858)" id="SvgjsG1355"><path id="SvgjsPath1354" style="fill:#e2e4ed;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,0 6.205,3.376 12.961,3.456 0,0 1.022,-2.513 -1.258,-4.319 -2.277,-1.806 0,-0.392 0,-0.392 0,0 4.163,0.628 3.455,5.262 l -1.494,1.491 c 0,0 -8.477,0.08 -14.998,-4.555 L 0,0"></path></g><g transform="translate(289.0855,463.5925)" id="SvgjsG1353"><path id="SvgjsPath1352" style="fill:#e2e4ed;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,0 -1.727,1.963 -1.415,3.218 0,0 4.873,3.066 10.134,3.222 l 0.235,1.175 c 0,0 -8.878,0.552 -13.039,-4.237 L -2.985,0.312 0,0"></path></g><g transform="translate(291.2057,100.7878)" id="SvgjsG1351"><path id="SvgjsPath1350" style="fill:#c9c59d;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,0 15.435,1.53 15.435,-10.721 l 7.304,-0.825 C 22.739,-11.546 20.971,7.067 0,0"></path></g><g transform="translate(313.5894,90.3034)" id="SvgjsG1349"><path id="SvgjsPath1348" style="fill:#b3af8b;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 -6.004,0.587 c 0,0 -12.136,-16.258 -25.449,-9.308 0,0 5.775,-10.011 19.322,-5.771 0,0 12.012,3.768 12.131,14.492"></path></g><g transform="translate(308.1676,89.3161)" id="SvgjsG1347"><path id="SvgjsPath1346" style="fill:#6d1417;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -0.548,-7.23 -7.468,-12.885 -15.077,-12.885 -7.2,0 -12.758,5.109 -12.758,11.611 0,6.746 5.94,12.959 13.668,13.69 C -5.972,13.19 0.569,7.523 0.001,0"></path></g><g transform="translate(306.7555,89.5339)" id="SvgjsG1345"><path id="SvgjsPath1344" style="fill:#bc1f24;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -0.507,-6.678 -6.9,-11.902 -13.934,-11.902 -6.649,0 -11.781,4.717 -11.781,10.728 0,6.231 5.489,11.971 12.624,12.645 C -5.521,12.187 0.527,6.955 0,0"></path></g><g transform="translate(281.0406,88.361)" id="SvgjsG1343"><path id="SvgjsPath1342" style="fill:#ea2a22;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,-0.292 0.021,-0.576 0.045,-0.859 2.413,-2.372 6.09,-3.862 10.305,-3.862 6.819,0 13.103,3.869 15.091,9.199 -1.267,5.219 -6.506,8.764 -12.815,8.167 C 5.487,11.971 0,6.229 0,0"></path></g><g transform="translate(249.9957,86.9616)" id="SvgjsG1341"><path id="SvgjsPath1340" style="fill:#c9c59d;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 C -0.004,0.095 -0.019,0.183 -0.019,0.277 -0.019,0.277 -0.03,0.174 0,0"></path></g><g transform="translate(329.1393,102.5524)" id="SvgjsG1339"><path id="SvgjsPath1338" style="fill:#c9c59d;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,-2.093 -1.081,-3.896 -2.61,-5.416 0.671,-6.65 -3.989,-11.548 -3.989,-11.548 3.773,5.539 2.476,11.663 2.476,11.663 l 0.131,0.065 C -4.824,-0.785 -8.753,8.885 -27.213,8.249 -51.127,7.423 -64.438,-3.181 -67.149,-6.36 c -2.143,-2.516 -4.487,-7.097 -3.284,-11.815 2.954,-8.694 11.06,-12.688 11.06,-12.688 -8.719,2.709 -11.697,9.157 -12.479,11.367 -6.201,1.048 -7.16,3.151 -7.291,3.905 0.685,-14.174 17.65,-20.457 17.65,-20.457 29.451,-5.889 45.238,3.064 56.313,14.844 C 5.893,-9.425 0,0 0,0 m -27.327,-29.216 c -18.38,-5.181 -23.445,9.779 -23.445,9.779 -7.709,-0.744 -13.311,-0.809 -17.405,-0.499 -0.908,1.788 -2.957,7.663 4.681,14.517 9.188,8.249 24.742,11.665 35.345,12.135 10.316,0.458 22.524,-2.988 23.065,-14.144 -3.676,-2.477 -7.988,-3.761 -7.988,-3.761 -0.469,-12.018 -8.728,-16.466 -14.253,-18.027"></path></g><g transform="translate(257.2848,83.0564)" id="SvgjsG1337"><path id="SvgjsPath1336" style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 C 0,0 -3.457,7.183 1.877,13.96 6.825,20.244 20.146,27.091 35.222,29.038 48.886,30.81 58.351,29 64.787,23.66 c 0,0 3.297,-2.278 4.454,-9.58 0,0 2.929,2.196 2.695,5.733 -0.236,3.534 -0.081,-0.317 -0.081,-0.317 0,0 -5.103,14.293 -28.823,12.41 C 19.315,30.021 9.029,23.816 0.858,17.849 -7.308,11.878 -7.148,4.89 -6.445,2.532 -6.445,2.532 -5.1,0.526 0,0"></path></g><g transform="translate(260.9654,82.6179)" id="SvgjsG1335"><path id="SvgjsPath1334" style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,0 9.63,-0.68 17.405,0.499 0,0 -2.477,7.07 3.062,13.549 0,0 -3.888,-2.476 -4.947,-8.249 0,0 -11.309,0.472 -15.555,2.474 0,0 -2.174,-3.942 0.035,-8.273"></path></g><g transform="translate(309.9391,101.7292)" id="SvgjsG1333"><path id="SvgjsPath1332" style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,0 5.184,-2.944 6.128,-10.366 0,0 5.845,2.223 7.989,3.762 0,0 0.022,3.542 -2.098,6.724 L 5.891,-4.83 C 5.891,-4.83 4.24,-1.886 0,0"></path></g><g transform="translate(183.4942,102.3005)" id="SvgjsG1331"><path id="SvgjsPath1330" style="fill:#feffff;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 C 0.567,-1.092 0.066,-2.48 -1.125,-3.103 -2.318,-3.728 -3.743,-3.349 -4.317,-2.26 -4.888,-1.171 -4.386,0.218 -3.192,0.843 -2.002,1.468 -0.574,1.089 0,0"></path></g><g transform="translate(225.1163,92.0886)" id="SvgjsG1329"><path id="SvgjsPath1328" style="fill:#feffff;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0.572,-1.089 0.067,-2.48 -1.126,-3.103 -1.187,-0.625 -2.62,-0.249 -3.188,0.843 -0.572,1.092 -0.068,2.481 1.123,3.106 C -2.001,1.468 -0.572,1.091 0,0"></path></g><g transform="translate(341.1021,116.8239)" id="SvgjsG1327"><path id="SvgjsPath1326" style="fill:#feffff;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0.593,-0.852 0.542,-1.91 -0.111,-2.369 -0.657,-0.452 -1.667,-0.134 -2.26,0.715 -0.594,0.854 -0.542,1.913 0.11,2.369 C -1.604,1.171 -0.593,0.851 0,0"></path></g><g transform="translate(176.4605,101.7282)" id="SvgjsG1325"><path id="SvgjsPath1324" style="fill:#bbbab8;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,0 -2,-5.064 3.656,-6.243 5.652,-1.177 8.361,3.416 8.127,5.536 0,0 1.413,-6.243 -1.769,-8.835 -3.179,-2.59 -9.307,-2.355 -10.721,0.94 C -2.12,-5.302 -1.06,-1.648 0,0"></path></g><g transform="translate(217.106,90.5378)" id="SvgjsG1323"><path id="SvgjsPath1322" style="fill:#bbbab8;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,0 0.47,-5.773 5.891,-6.243 5.42,-0.472 9.425,4.477 7.067,8.953 0,0 5.067,-3.651 2.828,-9.073 C 13.55,-11.779 4.121,-14.137 0.589,-8.718 -2.947,-3.299 -0.354,-1.766 0,0"></path></g><g transform="translate(334.2066,111.8601)" id="SvgjsG1321"><path id="SvgjsPath1320" style="fill:#bbbab8;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,0 2.236,-4.123 6.48,-4.006 4.241,0.12 4.004,6.126 3.065,8.246 l 2.235,-7.891 c 0,0 -2.004,-6.481 -4.475,-7.305 C 4.832,-11.779 0.116,-7.422 0,0"></path></g><g transform="translate(347.9889,127.7663)" id="SvgjsG1319"><path id="SvgjsPath1318" style="fill:#bbbab8;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 C 0,0 2.479,-3.417 4.714,-2.121 L 2.357,-7.54 c 0,0 -1.884,4.241 -2.357,7.54"></path></g><g transform="translate(349.5172,131.2292)" id="SvgjsG1317"><path id="SvgjsPath1316" style="fill:#feffff;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 C 0.428,-0.445 0.553,-1.026 0.272,-1.297 -0.009,-1.569 -0.587,-1.433 -1.014,-0.988 -1.445,-0.546 -1.571,0.032 -1.29,0.306 -1.01,0.578 -0.436,0.439 0,0"></path></g><g transform="translate(246.0533,462.5759)" id="SvgjsG1315"><path id="SvgjsPath1314" style="fill:#d25938;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,0 2.832,-2.547 4.63,-2.908 2.356,-0.471 7.933,0.236 10.135,1.494 2.193,1.254 0.311,5.026 -0.787,5.026 L 16.41,1.886 c 0,0 0.392,-3.3 -1.493,-4.242 0,0 -4.003,-1.415 -7.303,-1.495 -3.296,-0.076 -6.911,1.57 -8.09,2.984 L 0,0"></path></g><g transform="translate(284.9254,466.1877)" id="SvgjsG1313"><path id="SvgjsPath1312" style="fill:#d25938;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,0 0.474,-2.121 1.57,-2.436 0,0 4.086,0.08 5.733,0.236 1.65,0.159 3.065,1.179 3.536,1.965 0.47,0.785 0.155,0.315 0.155,0.315 0,0 -4.007,-2.83 -9.579,-1.495 0,0 -1.65,2.28 -0.471,3.221 L 0,0"></path></g><g transform="translate(257.8961,464.3967)" id="SvgjsG1311"><path id="SvgjsPath1310" style="fill:#4b521e;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0.436,-2.519 -1.416,-4.957 -4.137,-5.442 -2.72,-0.488 -5.281,1.164 -5.723,3.687 -0.436,2.522 1.412,4.961 4.132,5.445 C -3.007,4.175 -0.446,2.522 0,0"></path></g><g transform="translate(257.192,464.3869)" id="SvgjsG1309"><path id="SvgjsPath1308" style="fill:#789b29;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0.446,-2.161 -1.09,-4.3 -3.423,-4.78 -2.333,-0.477 -4.586,0.884 -5.028,3.046 -0.446,2.161 1.09,4.303 3.423,4.78 C -2.695,3.526 -0.442,2.162 0,0"></path></g><g transform="translate(252.1637,467.4338)" id="SvgjsG1307"><path id="SvgjsPath1306" style="fill:#586824;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -1.715,-0.351 -2.991,-1.601 -3.377,-3.091 0.671,-1.631 2.535,-2.596 4.46,-2.199 1.928,0.393 3.259,2.012 3.235,3.777 C 3.377,-0.293 1.712,0.351 0,0"></path></g><g transform="translate(254.8014,463.8474)" id="SvgjsG1305"><path id="SvgjsPath1304" style="fill:#371714;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0.164,-0.941 -0.523,-1.849 -1.541,-2.027 -1.01,-0.182 -1.967,0.432 -2.13,1.37 -0.163,0.942 0.527,1.849 1.538,2.032 C -1.119,1.553 -0.167,0.938 0.001,0"></path></g><g transform="translate(252.1021,464.9514)" id="SvgjsG1303"><path id="SvgjsPath1302" style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0.125,-0.696 -0.384,-1.365 -1.137,-1.498 -0.749,-0.136 -1.455,0.32 -1.577,1.015 -0.118,0.696 0.392,1.369 1.141,1.502 C -0.825,1.152 -0.114,0.695 0,0"></path></g><g transform="translate(255.9732,462.1379)" id="SvgjsG1301"><path id="SvgjsPath1300" style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0.064,-0.39 -0.22,-0.764 -0.639,-0.839 -0.42,-0.076 -0.817,0.177 -0.884,0.567 -0.069,0.389 0.214,0.763 0.638,0.839 C -0.465,0.643 -0.072,0.389 0,0"></path></g><g transform="translate(293.1627,467.6687)" id="SvgjsG1299"><path id="SvgjsPath1298" style="fill:#4b521e;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 C 0.345,-2.148 -1.111,-4.224 -3.255,-4.641 -5.398,-5.054 -7.419,-3.648 -7.765,-1.5 -8.11,0.647 -6.649,2.727 -4.51,3.14 -2.366,3.553 -0.35,2.147 0,0"></path></g><g transform="translate(292.6119,467.6589)" id="SvgjsG1297"><path id="SvgjsPath1296" style="fill:#789b29;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0.349,-1.844 -0.861,-3.665 -2.697,-4.073 -1.84,-0.405 -3.614,0.753 -3.962,2.594 -0.354,1.844 0.856,3.665 2.696,4.073 C -2.122,3.002 -0.35,1.84 0,0"></path></g><g transform="translate(288.649,470.2541)" id="SvgjsG1295"><path id="SvgjsPath1294" style="fill:#586824;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -1.351,-0.301 -2.356,-1.363 -2.657,-2.634 0.526,-1.39 1.996,-2.21 3.512,-1.873 1.517,0.336 2.567,1.715 2.551,3.215 C 2.662,-0.253 1.351,0.297 0,0"></path></g><g transform="translate(290.7262,467.1989)" id="SvgjsG1293"><path id="SvgjsPath1292" style="fill:#371714;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0.131,-0.802 -0.411,-1.573 -1.214,-1.728 -0.798,-0.153 -1.549,0.368 -1.68,1.171 -0.127,0.798 0.419,1.573 1.218,1.727 C -0.878,1.325 -0.13,0.799 0,0"></path></g><g transform="translate(288.6051,468.1399)" id="SvgjsG1291"><path id="SvgjsPath1290" style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0.095,-0.595 -0.308,-1.167 -0.898,-1.277 -0.591,-0.118 -1.151,0.272 -1.242,0.863 -0.094,0.591 0.304,1.166 0.899,1.277 C -0.654,0.977 -0.095,0.591 0,0"></path></g><g transform="translate(291.651,465.7409)" id="SvgjsG1289"><path id="SvgjsPath1288" style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 C 0.051,-0.333 -0.175,-0.649 -0.503,-0.716 -0.832,-0.78 -1.145,-0.562 -1.2,-0.229 -1.251,0.099 -1.029,0.42 -0.697,0.483 -0.364,0.55 -0.056,0.333 0,0"></path></g><g transform="translate(280.9977,434.9299)" id="SvgjsG1287"><path id="SvgjsPath1286" style="fill:#f79163;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -0.471,-1.885 0.943,-8.012 0.866,-8.561 -0.077,-0.552 -0.471,-1.101 -1.02,-1.259 -0.548,-0.155 -1.808,0.788 -2.12,1.101 -0.314,0.313 -1.256,7.776 -1.256,7.776 L 0,0 m 14.688,73.591 c 0,0 0.203,0.276 -0.772,-0.122 0.264,-0.106 0.553,-0.219 0.853,-0.337 l -0.081,0.459 M -9.108,-42.1 c 0,0 -29.059,2.515 -38.013,12.254 l 15.861,-35.969 c 0,0 18.539,-2.673 23.724,4.713 0,0 -2.044,16.333 -1.572,19.002 m -1.414,7.228 c -3.771,-1.727 -8.166,-2.044 -8.166,-2.044 8.511,-2.645 15.333,-1.54 18.66,-0.609 1.252,0.349 2.247,1.085 2.722,2.007 0.268,0.508 0.422,1.276 0.642,2.206 0.28,1.914 -10.271,0.082 -13.858,-1.56 m -65.384,49.677 c -3.34,2.222 -3.413,3.766 -2.239,5.887 1.178,2.121 1.885,3.063 1.532,4.713 0,0 -2.239,4.831 -4.36,7.07 -2.121,2.238 -5.066,3.416 -6.83,-0.707 -1.771,-4.124 -2.031,-12.518 3.3,-17.435 3.059,-2.827 5.297,-3.124 7.772,-3.124 2.182,0 4.185,1.357 0.825,3.596 m 8.365,-10.604 -4.4,-4.047 c 0,0 3.733,-19.193 2.828,-27.956 -0.943,-9.114 -3.925,-15.082 -3.925,-15.082 0,0 10.523,-15.866 28.741,-20.262 0,0 -15.679,29.497 -20.534,55.804 -0.48,2.584 -2.71,11.543 -2.71,11.543 m 38.049,-16.845 c 0,0 -1.65,3.884 1.064,7.537 0,0 -5.184,-3.182 -1.064,-7.537 M -72.315,7.029 c 1.003,0.235 4.303,3.416 2.653,6.833 -1.65,3.413 -2.592,4.945 -2.121,6.481 0.471,1.527 -1.414,13.253 -1.588,13.428 -0.179,0.174 -4.774,1.824 -5.538,1.706 l -0.036,-0.017 c -0.309,0.317 -0.638,0.626 -1.004,0.903 -1.617,1.222 -3.185,1.674 -4.542,1.674 -1.41,0.121 -2.857,-0.256 -4.002,-1.841 -2.076,-2.889 -3.523,-8.203 -2.592,-12.026 l 0.768,-0.086 c 0,0 -0.131,6.331 1.657,9.093 1.256,1.943 3.783,3.783 5.948,2.934 2.036,-0.8 4.555,-2.938 6.297,-6.757 0.22,-0.589 0.561,-1.527 0.85,-2.36 0.333,-1.536 1.105,-4.441 0.365,-5.888 -1.413,-2.766 -1.238,-3.238 0.533,-5.301 1.763,-2.06 2.828,-4.77 1.946,-6.127 -0.89,-1.353 -0.593,-2.885 0.406,-2.649 m 88.888,3.652 C 14.452,3.494 12.214,-3.576 9.625,-11.234 7.813,-16.581 3.629,-31.642 3.697,-31.028 c 0.346,3.156 0.196,6.362 -1.202,7.313 -2.766,1.885 -12.416,-0.764 -12.416,-0.764 -2.475,2.121 -3.449,5.208 -3.449,5.208 0,0 9.726,-6.155 16.783,0 0.354,0.313 0.463,1.471 0.487,1.813 -1.787,-2.43 -7.718,-4.213 -13.715,-2.491 -4.474,1.284 -9.633,5.148 -12.677,7.675 -0.764,0.479 -1.49,0.894 -1.698,0.926 -0.411,0.057 -0.151,-1.909 -0.151,-1.909 -2.709,2.181 -2.315,3.461 -1.555,4.322 1.555,1.756 3.258,0.131 3.258,0.131 0,0 1.767,-1.215 2.397,-1.544 1.804,-0.939 6.183,-0.707 6.42,-0.646 l -0.809,-1.418 c 1.812,0.04 3.73,0.093 4.892,0.158 2.751,0.159 9.426,-2.198 9.426,-2.198 l 4.396,3.218 c 0,0 0.145,-0.357 0.288,-0.963 l 0.069,0.788 -0.293,1.569 -4.03,-2.767 -0.902,0.983 c 0,0 2.081,1.223 3.027,2.808 -0.118,0.207 -0.235,0.459 -0.337,0.763 -0.411,1.24 -1.117,6.834 -1.117,6.834 L 3.438,-0.687 5.384,1.21 C 3.482,0.735 1.126,1.04 -0.077,1.255 -2.274,1.649 -3.75,3.445 -0.45,2.815 1.861,2.376 3.186,2.523 3.966,3.437 4.189,3.693 4.547,4.335 4.555,4.672 4.636,6.675 0.077,8.089 -0.548,9.974 c -1.17,3.515 -0.118,3.316 -1.886,8.561 -1.621,4.81 -3.924,9.503 -3.924,9.503 -1.454,1.905 -5.928,-3.576 -5.928,-3.576 0,0 -1.3,-1.588 -1.653,-1.588 -0.578,0 -0.533,0.175 -1.061,1.061 -2.531,4.221 -5.298,7.597 -5.298,7.597 L -30.707,30.63 -34.908,27.172 V 26.23 c 0,0 1.06,-4.124 5.416,-4.831 4.359,-0.707 8.13,0.589 8.13,0.589 0,0 -4.945,-3.648 -10.836,-2.121 -3.214,0.837 -6.757,5.246 -7.07,5.42 -3.14,1.727 -7.069,-0.784 -7.069,-0.784 -0.942,3.299 -2.356,14.452 10.999,16.337 0.121,0.016 0.268,0.024 0.422,0.029 -4.343,8.617 -3.864,19.452 -3.006,25.921 -2.17,-4.603 -8.894,-14.891 -27.734,-22.415 0,0 8.565,4.631 15.317,11.148 6.753,6.521 11.933,15.476 11.933,15.476 0,0 0.37,-0.106 1.125,-0.281 0.216,1.077 0.37,1.695 0.37,1.695 l 5.891,-0.354 c 0,0 -0.3,-0.845 -0.667,-2.385 1.935,-0.304 4.307,-0.63 7.184,-0.954 9.82,-1.097 27.412,-1.178 33.616,2.279 1.166,0.65 2.093,1.146 2.828,1.527 1.206,-5.31 4.535,-20.229 4.632,-23.796 0,0 1.296,-6.83 -0.118,-11.778 0,0 -0.008,-0.065 -0.024,-0.179 h -1.503 c -0.24,0 -5.66,-0.825 -5.66,-0.825 0,0 -4.063,-1.824 -4.945,-3.827 -0.885,-2.003 0.529,-3.002 0.529,-3.002 0,0 -1.236,-0.236 2.238,-0.476 2.791,-0.187 5.602,0.544 7.281,1.906 0.877,1.129 2.125,3.01 2.125,4.636 l 0.431,-0.472 c 0,0 -0.156,-4.339 -2.3,-6.31 0.04,-0.837 0.186,-1.803 0.532,-2.88 1.178,-3.653 3.282,-8.512 1.414,-14.842 m -41.104,28.635 -0.602,0.699 -3.144,0.345 c 0.743,-0.398 1.259,-0.463 1.259,-0.463 l -3.169,0.289 c 2.088,-0.406 4.274,-0.845 5.656,-0.87 M 3.641,35.798 1.731,32.515 c 0,0 -1.731,-4.4 -1.885,-4.636 -0.053,-0.077 0.59,-2.019 1.459,-4.554 l -0.459,1.552 -0.41,2.474 c 0,0 0,0.293 1.352,4.124 0.406,1.158 1.097,2.714 1.853,4.323 m 2.888,7.756 c 0.158,0.459 0.297,0.939 0.386,1.446 0.691,4.071 -3.355,19.803 -3.38,20.579 -2.511,-0.866 -16.024,-1.308 -23.09,-0.784 -4.241,0.312 -9.068,0.979 -12.053,1.844 0,0 -1.886,-22.5 3.765,-23.56 5.234,-0.984 14.85,-1.65 16.495,-1.061 1.651,0.589 2.706,2.357 2.706,3.181 0,0 0.85,-2.523 0.224,-5.318 l 0.017,0.016 c 8.393,-2.055 13.13,1.711 14.93,3.657 M 6.018,10.641 c -0.399,0.922 -0.862,1.978 -1.3,2.982 0.56,-1.577 0.938,-2.629 0.938,-2.629 0,0 0.146,-0.122 0.362,-0.353 M 8.207,3.965 c 0,0 -0.004,0.016 -0.012,0.045 L 8.188,3.945 8.207,3.965 M -12.879,1.962 c 0,0 1.67,2.275 3.108,4.157 0.447,0.402 0.78,0.731 0.78,0.731 0.057,0.025 0.118,0.041 0.175,0.065 -2.434,0.487 -4.424,-0.394 -5.676,-1.231 -0.975,-1.085 -1.893,-2.397 -2.507,-3.957 0,0 2.589,0.824 4.12,0.235 m -25.21,-17.198 c -6.208,10.994 -1.65,16.02 -1.65,16.02 -12.249,0.158 1.65,-16.02 1.65,-16.02"></path></g><g transform="translate(269.1783,437.1252)" id="SvgjsG1285"><path id="SvgjsPath1284" style="fill:#f3764b;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,0 7.303,1.121 11.308,0.239 0,0 5.951,-2.181 8.541,1.177 0,0 -0.874,-4.256 -8.695,-4.806 C 9.771,-3.669 9.386,-10.6 9.386,-10.6 8.913,-9.394 8.443,-4.753 8.318,-3.427 1.735,-3.135 -2.253,-0.312 0,0 m -23.562,23.562 c 0,0 2.354,7.776 16.138,5.891 l 4.24,-7.776 -0.704,8.128 c 0,0 1.954,1.962 3.079,4.681 3.293,0.19 3.928,7.218 3.928,7.218 -0.89,-2.602 -2.921,-3.99 -4.39,-4.685 l -0.869,0.109 -15.887,1.513 c 0,0 -4.475,0.825 -5.297,14.14 -0.708,11.409 2.355,15.313 2.355,15.313 l -4.284,0.785 c 0,-0.352 -4.552,-18.691 1.929,-29.999 l 1.687,-3.067 c 0,0 -10.527,-2.355 -8.403,-10.482 0,0 4.944,0.469 6.478,-1.769 m 38.171,2.298 1.707,0.826 c -0.647,0.413 -0.825,1.355 -0.825,1.355 L 14.609,25.86 M -6.068,25.508 c 0,0 -0.591,-2.298 -1.239,-2.593 l 4.123,-1.238 -2.471,4.301 -0.413,-0.47 m -63.713,5.596 -2.67,1.254 -1.885,-0.469 c 0,0 -2.517,-2.043 -2.666,-6.757 0,0 1.331,4.398 3.058,4.871 0.433,0.118 1.109,-0.129 1.861,-0.582 -0.955,-0.635 -2.577,-2.015 -3.119,-4.289 -0.785,-3.297 0.158,-3.77 0.866,-2.435 0.623,1.181 3.564,3.208 6.352,2.917 0.416,-0.623 0.578,-1.125 0.323,-1.343 0,0 -4.086,-1.178 -4.79,-3.144 -0.708,-1.962 0.55,-8.245 6.756,-7.618 0,0 -1.493,2.043 -0.947,3.613 0.551,1.569 1.494,4.398 1.494,4.398 l 0.157,2.277 c 0,0 -1.492,3.143 -1.727,3.302 -0.235,0.157 -3.063,4.005 -3.063,4.005 m -6.72,0.983 c 2.338,3.143 4.717,2.549 4.717,2.549 l 1.06,0.679 c 0,0 -3.612,1.955 -5.906,-1.488 -2.294,-3.439 -3.443,-7.817 -2.464,-13.129 l 0.38,1.57 c 0,0 -0.125,6.671 2.213,9.819 m 10.333,0.821 c 0.138,-0.206 2.355,-6.36 3.22,-8.795 0,0 2.59,4.555 -0.08,8.876 -2.667,4.317 -5.102,2.824 -3.14,-0.081 m 66.051,-77.201 c 0,0 -28.749,5.183 -46.494,19.634 0,0 9.58,-13.197 29.215,-20.892 0,0 3.349,-12.619 6.776,-20.37 -9.56,0.878 -17.89,5.134 -17.89,5.134 l 0.356,-1.534 c -20.265,10.604 -22.389,15.908 -22.389,15.908 0,0 0.133,2.233 0.355,15.665 0.235,14.14 -5.534,32.476 -5.534,32.476 l -5.07,-3.14 c 1.417,-2.472 3.302,-23.797 3.067,-30.982 -0.234,-7.189 -2.593,-14.492 -2.593,-14.492 4.123,-6.481 18.849,-16.377 33.576,-20.144 9.851,-2.525 18.748,-1.303 23.562,-0.214 2.181,0.335 4.094,0.667 4.163,0.801 l 0.158,0.315 c 0,0 -2.832,13.351 -1.258,21.835 M 21.167,67.151 c 3.298,-9.188 4.317,-21.988 4.317,-21.988 l 2.986,1.335 C 27.686,54.035 24.307,68.41 24.307,68.41 l -3.14,-1.259 m 6.91,-46.259 c -1.099,3.22 -1.411,5.498 -1.411,5.498 -4.729,-2.565 -11.264,-1.404 -12.117,-1.238 v 1.708 l 0.825,1.885 c 0,0 1.647,2.532 4.592,4.418 2.945,1.885 8.428,1.829 8.428,1.829 1.176,4.434 0.391,6.712 -1.773,7.068 -0.417,0.068 -1.031,-0.065 -1.731,-0.304 1.363,1.266 3.168,2.824 3.815,2.933 l -0.235,1.809 -4.398,-2.675 c 0,0 -2.435,-1.962 -2.593,-2.197 -0.101,-0.153 -0.688,-1.27 -1.092,-2.055 -1.125,-0.647 -1.93,-1.165 -1.93,-1.165 l 0.093,1.412 c -1.352,-1.647 -6.065,-13.112 -6.065,-13.112 -0.942,-1.182 0.121,-2.435 0.121,-2.435 0.114,-0.049 0.223,-0.082 0.336,-0.126 l -0.1,-0.073 c 5.551,-1.934 10.158,-0.449 12.412,0.603 0.259,-1.116 0.797,-3.314 1.25,-4.568 0.631,-1.727 1.731,-6.517 0.865,-9.738 -0.865,-3.22 -6.833,-7.068 -6.833,-7.068 0,0 -0.077,-3.851 -2.12,-4.794 0,0 1.493,-5.065 1.404,-7.339 L 17.627,-11.7 16.22,-12.958 c 0,0 -0.158,0.392 0.153,-0.551 0.315,-0.942 -0.077,-4.79 -1.646,-6.91 -1.57,-2.12 -8.092,-2.12 -8.092,-2.12 1.068,-0.113 4.884,-1.339 8.269,1.097 l -0.177,-0.235 c 0,0 3.532,-0.392 3.139,-3.767 0,0 3.536,11.701 5.106,16.491 1.57,4.794 5.575,16.021 6.206,19.791 0.627,3.771 0,6.834 -1.101,10.054 M -30.274,-3.063 c -3.771,-1.885 0.469,-7.419 0.469,-7.419 -2.003,4.474 -0.469,7.419 -0.469,7.419"></path></g><g transform="translate(254.9225,469.7209)" id="SvgjsG1283"><path id="SvgjsPath1282" style="fill:#d25938;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 C -4.162,-0.946 -8.952,-3.927 -8.952,-3.927 0.159,4.79 6.285,0.863 6.285,0.863 8.559,1.256 13.039,3.614 13.039,3.614 11.938,0.549 8.718,-2.83 8.718,-2.83 L 8.324,-5.657 7.462,-2.75 5.892,-2.516 C 3.928,1.256 0,0 0,0 m 28.745,-7.386 c 0,0 -0.234,6.44 3.3,7.7 0,0 -0.708,5.812 7.461,4.162 0,0 -4.241,1.964 -7.855,-0.393 0,0 3.065,2.357 4.082,4.082 l -2.67,-0.234 c 0,0 -5.101,-10.523 -5.415,-11.389 -0.314,-0.863 -1.26,-4.003 -0.787,-4.397 0,0 4.869,-2.123 11.23,0.235 0,0 -7.148,-0.708 -9.346,0.234 M 14.609,-76.654 c 0,0 -14.843,1.765 -26.51,7.422 -11.66,5.652 -18.024,9.779 -18.024,9.779 0,0 15.317,-14.847 41.119,-19.204 0,0 -0.238,-14.609 2.473,-20.028 l 1.646,0.708 c 0,0 -2.946,16.374 -0.704,21.323 M -56.133,-1.26 c -0.18,0 -2.95,0.767 -2.95,0.767 0,0 -1.94,-0.175 -2.707,-2.945 -0.048,-0.171 1.471,2.178 2.826,2.063 1.356,-0.12 2.771,-0.942 3.594,-2.238 0,0 -3.005,-1.65 -4.182,-4.007 0,0 3.419,2.532 5.656,2.122 0,0 1.65,-2.297 1.177,-3.005 l 1.356,-0.648 c 0,0 -4.48,0.295 -5.657,-0.767 -1.177,-1.061 -2.178,-2.767 -0.942,-5.124 0.306,-0.584 0.504,-0.97 0.628,-1.216 -0.262,0.922 -0.998,4.15 1.32,5.104 2.703,1.121 4.591,-1.471 4.591,-1.471 l 1.062,3.355 -2.239,4.301 c 0,0 -3.358,3.709 -3.534,3.709 z m -1.201,-14.998 c 0.048,-0.159 0.08,-0.255 0.08,-0.255 0,0 0.301,-0.501 -0.08,0.255 m 19.28,-63.342 c 0,0 0.826,6.949 0.592,20.028 -0.234,12.959 -4.4,27.997 -4.4,27.997 -0.47,1.18 -4.556,-2.433 -4.556,-2.433 0,0 4.126,-18.616 3.772,-28.391 -0.354,-9.779 -4.002,-17.081 -4.002,-17.081 12.835,-15.436 34.162,-20.031 34.162,-20.031 l 0.585,0.592 c -18.727,6.241 -26.153,19.319 -26.153,19.319 m 72.332,48.832 c 0,0 -0.643,2.298 -0.643,2.532 0,0.235 -3.3,7.601 -3.36,8.245 -0.059,0.648 -3.534,9.31 -3.593,9.898 -0.06,0.589 -1.415,2.576 -0.997,3.359 4.71,8.853 7.771,15.766 7.771,15.766 -6.36,-10.447 -10.578,-13.079 -12.045,-14.736 -0.47,-0.529 3.327,-7.414 4.349,-11.89 0.647,-2.839 0.472,-4.003 1.256,-6.126 0.798,-2.151 4.87,-4.241 4.734,-6.519 -0.079,-1.324 -1.236,-2.532 -1.236,-2.532 0.215,-0.004 0.418,0.023 0.616,0.051 -1.809,-1.037 -3.677,-2.369 -4.36,-2.409 -1.062,-0.059 -1.885,0.942 -3.594,1.857 -1.705,0.914 -4.472,-0.621 -5.418,-0.708 -0.943,-0.087 -2.68,0.68 -2.68,0.68 0.887,-0.708 2.767,-1.384 2.767,-1.384 l 2.743,-0.504 c 1.384,-0.056 1.972,-0.911 1.972,-0.911 -0.028,-0.855 0.648,-5.008 0.648,-5.008 -0.056,2.15 0.44,4.949 0.44,4.949 l 1.651,0.147 c 7.274,0.529 8.57,4.476 8.57,4.476 -0.127,-0.02 -0.263,-0.052 -0.401,-0.091 0.52,0.444 0.81,0.858 0.81,0.858"></path></g><g transform="translate(280.5533,420.5212)" id="SvgjsG1281"><path id="SvgjsPath1280" style="fill:#ce503e;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -0.286,0.098 -1.042,0.353 -2.015,0.655 -1.83,0.713 -4.73,1.654 -7.262,1.654 h -0.098 c -0.702,-0.004 -1.442,-0.028 -2.184,-0.055 l -2.524,-0.066 0.702,1.222 c -0.087,-0.023 -0.753,-0.066 -1.654,-0.066 -0.635,0 -1.392,0.023 -2.132,0.094 1.979,0.023 4.703,0.164 6.769,0.678 1.214,0.301 3.296,0.725 5.335,0.725 2.045,0 4.048,-0.427 5.075,-1.823 0,0 0.106,0.071 0.286,0.185 -0.38,-0.267 -0.639,-0.42 -0.639,-0.42 L 0.561,1.799 4.59,4.566 4.802,3.43 C 4.68,3.32 4.559,3.214 4.437,3.108 L 4.249,2.971 C 4.241,2.999 4.237,3.026 4.229,3.058 4.229,3.058 2.83,1.972 1.592,1.07 0.858,0.568 0.278,0.185 0,0"></path></g><g transform="translate(284.8053,423.4763)" id="SvgjsG1279"><path id="SvgjsPath1278" style="fill:#ce4938;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 C 0,0.008 0,0.012 -0.004,0.016 L 0.188,0.157 C 0.126,0.102 0.062,0.051 0,0 m -23.345,-0.898 -4.97,3.064 0.162,0.095 4.132,-1.745 c 0,0 0.771,-0.036 1.925,-0.036 0.213,0 0.442,0 0.678,0.004 0.744,-0.075 1.496,-0.098 2.135,-0.098 0.897,0 1.567,0.047 1.653,0.071 l -0.7,-1.225 -5.015,-0.13 m 19.655,-0.256 -0.903,0.981 c 0,0 0.26,0.153 0.638,0.421 0.556,0.355 1.828,1.127 3.014,1.544 1.555,0.543 3.493,1.354 4.6,2.324 L 2.269,2.292 C 2.135,2.138 2.001,1.977 1.854,1.819 L 0.591,0.693 c 0,0 -0.032,0.079 -0.04,0.079 C 0.547,0.772 0.559,0.721 0.618,0.54 0.595,0.516 0.571,0.496 0.551,0.477 L 0.339,1.615 -3.69,-1.154 m -0.749,-1.922 c 0,0 -0.717,0.346 -1.828,0.78 0.977,-0.304 1.73,-0.56 2.017,-0.658 -0.122,-0.083 -0.189,-0.122 -0.189,-0.122"></path></g><g transform="translate(287.0738,425.7688)" id="SvgjsG1277"><path id="SvgjsPath1276" style="fill:#cb4333;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 1.391,1.824 C 1.402,1.832 1.414,1.843 1.426,1.855 1.426,1.855 0.851,1.012 0,0 m -1.65,-1.753 c -0.06,0.182 -0.072,0.232 -0.068,0.232 0.008,0 0.04,-0.082 0.04,-0.082 l 1.264,1.126 c -0.378,-0.429 -0.799,-0.87 -1.236,-1.276"></path></g><g transform="translate(256.2477,425.342)" id="SvgjsG1275"><path id="SvgjsPath1274" style="fill:#ce4938;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 C -0.038,0.03 -0.071,0.056 -0.105,0.086 L 0.086,0.202 0,0"></path></g><g transform="translate(273.6754,422.4372)" id="SvgjsG1273"><path id="SvgjsPath1272" style="fill:#df523a;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -0.801,0.152 -1.539,0.246 -2.137,0.246 -0.101,0 -0.191,-0.004 -0.281,-0.008 -1.164,-0.066 -3.078,-0.121 -4.894,-0.16 l 0.07,0.125 c 0.824,0.051 1.691,0.098 2.562,0.133 l 2.184,0.059 C -1.789,0.359 -0.922,0.207 0,0 m 7.007,-1.961 c 0,0 -0.035,0.012 -0.098,0.031 0.332,0.2 0.926,0.618 1.563,1.082 0.304,0.207 0.636,0.438 0.984,0.68 L 7.007,-1.961"></path></g><g transform="translate(256.3336,425.5432)" id="SvgjsG1271"><path id="SvgjsPath1270" style="fill:#e04934;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 0.062,0.157 0.161,0.098 0,0 m 20.274,-9.958 c -3.476,0.003 -7.439,1.071 -10.551,2.574 -3.653,1.769 -9.954,6.835 -9.954,6.835 l 0.145,0.345 c 1.232,-0.949 5.626,-3.057 5.626,-3.057 0,0 2.037,0.2 4.564,0.362 l -0.071,-0.126 c 1.813,0.039 3.728,0.09 4.893,0.157 0.087,0.008 0.18,0.008 0.279,0.008 0.596,0 1.338,-0.095 2.138,-0.244 3.064,-0.694 6.694,-2.04 6.694,-2.04 0.043,0.016 0.121,0.055 0.216,0.11 0.062,-0.02 0.098,-0.031 0.098,-0.031 l 2.449,1.793 c 0.395,0.274 0.815,0.572 1.239,0.875 0.146,0.105 0.291,0.215 0.432,0.333 1.24,-6.447 -2.511,-7.326 -6.435,-7.792 -0.569,-0.067 -1.158,-0.102 -1.762,-0.102"></path></g><g transform="translate(282.148,421.5925)" id="SvgjsG1269"><path id="SvgjsPath1268" style="fill:#d33d2b;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 C 1.237,0.904 2.64,1.989 2.64,1.989 2.644,1.958 2.651,1.931 2.655,1.903 L 0.987,0.677 C 0.635,0.435 0.306,0.208 0,0"></path></g><g transform="translate(283.1314,422.2658)" id="SvgjsG1267"><path id="SvgjsPath1266" style="fill:#d33b2a;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 1.668,1.226 C 1.672,1.222 1.672,1.214 1.672,1.21 1.531,1.093 1.386,0.983 1.241,0.881 0.814,0.576 0.396,0.278 0,0"></path></g><g transform="translate(266.4332,422.6404)" id="SvgjsG1265"><path id="SvgjsPath1264" style="fill:#d33d2b;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 0.038,0.069 2.563,0.134 C 1.692,0.1 0.821,0.05 0,0"></path></g><g transform="translate(261.8756,422.2849)" id="SvgjsG1263"><path id="SvgjsPath1262" style="fill:#d33b2a;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,0 -4.397,2.103 -5.63,3.054 l 0.088,0.202 0.16,0.098 L -0.415,0.292 4.599,0.426 4.561,0.357 C 2.035,0.198 0,0 0,0"></path></g><g transform="translate(253.1539,422.9919)" id="SvgjsG1261"><path id="SvgjsPath1260" style="fill:#fcdba6;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 C 0,0 -2.589,3.651 1.297,4.83 1.297,4.83 -0.7,3.651 0,0 m 21.443,-16.492 c -0.943,-1.535 4.478,-1.061 6.127,-0.944 1.65,0.118 3.651,1.649 0.941,2.829 -2.707,1.174 -7.068,-1.885 -7.068,-1.885 m 10.232,32.907 c 0.077,0.863 -2.593,2.982 -3.298,2.119 -0.709,-0.863 -1.856,-2.431 -0.867,-2.67 1.024,-0.243 4.084,-0.312 4.165,0.551 M 32.246,0.628 31.221,-0.316 c 0,0 0.158,-3.768 -1.491,-4.948 -1.649,-1.179 -6.398,-2.512 -12.84,-1.098 0,0 8.719,-2.905 14.177,0.705 0,0 2.278,3.692 1.179,6.285 m -8.092,-4.947 c -4.712,-0.081 -9.66,1.649 -9.66,1.649 4.166,-2.829 9.66,-1.649 9.66,-1.649 M -9.83,25.009 c 2.103,-3.667 20.455,3.967 13.57,4.267 -2.589,0.113 -6.252,-1.163 -10.373,0.097 -4.117,1.26 -4.352,-2.342 -3.197,-4.364 M 23.562,14.648 c 2.675,0 3.42,-0.275 4.758,-0.628 0.956,-0.255 3.031,-0.596 4.701,-0.263 -0.986,-0.77 -2.967,-2.18 -5.07,-2.889 0,0 2.566,0.263 4.538,1.588 1.354,0.912 2.221,1.714 2.647,2.131 0.611,0.304 0.717,0.726 0.717,0.726 l 0.081,2.2 c 0,0 -6.982,16.082 -8.481,21.715 -0.308,1.163 6.28,13.08 6.28,13.08 -4.084,-5.815 -8.793,-11.314 -8.793,-11.314 2.355,-6.831 3.846,-9.814 5.418,-17.432 0.397,-1.924 3.736,-4.193 4.162,-6.442 0.413,-2.16 -2.638,-2.954 -3.218,-2.946 -2.2,0.04 -4.518,1.143 -7.934,0.985 C 19.952,15 16.812,14.45 16.812,14.45 c 0,0 0.393,2.159 2.079,4.319 0,0 -3.456,-3.339 -2.472,-4.631 0,0 4.477,0.51 7.143,0.51 m -4.594,2.196 c 6.127,-0.47 4.008,0.827 2.358,1.179 -1.649,0.353 -3.011,-1.126 -2.358,-1.179 m -66.94,2.889 c 1.654,0.329 2.318,2.975 1.212,2.314 -1.102,-0.66 -4.413,-0.11 -4.413,-0.11 -1.102,0.333 1.544,-2.536 3.201,-2.204 m 88.618,38.815 3.89,1.888 c 0,0 0.701,-7.776 -0.352,-11.544 l 2.824,0.113 c 0,0 0.709,3.537 0.592,10.134 -0.122,6.597 -5.187,24.503 -5.187,24.503 l -2.59,-1.532 c 0,0 3.181,-12.131 4.004,-19.79 z m 5.11,-18.769 c 0,0.158 -0.239,4.947 -0.203,5.065 0.045,0.117 0.904,3.063 0.904,3.063 l -1.763,-0.823 c 0,0 0,-3.93 -1.965,-6.325 0,0 -0.985,-0.664 -2.001,-1.057 l 2.042,0.194 c 0,0 0.153,-1.062 0.903,-3.614 0.746,-2.549 1.804,-5.458 1.649,-8.323 C 45.164,25.09 44.734,22.226 42.453,15.706 40.176,9.186 38.094,2.63 38.017,2.472 37.939,2.313 35.346,-6.402 34.912,-7.5 c -0.429,-1.103 -1.333,-4.437 -2.042,-6.638 -0.705,-2.2 -1.568,-5.968 -1.803,-6.872 -0.235,-0.903 -0.235,-3.533 -3.457,-4.554 -3.12,-0.989 -5.66,-1.24 -11.836,-1.366 -4.967,0.406 -10.182,1.536 -14.319,3.683 -21.204,10.994 -26.229,16.492 -28.587,39.268 -1.6,15.447 9.113,20.261 9.113,20.261 -4.4,12.452 10.993,17.124 10.993,17.124 -5.576,9.737 -2.042,28.275 -2.042,28.275 -0.944,2.354 -1.884,1.098 -1.884,1.098 -1.888,-4.713 -11.938,-14.766 -16.18,-18.534 -4.239,-3.773 -11.155,-7.229 -11.155,-7.229 -1.41,-8.323 -7.853,-11.779 -7.853,-11.779 0,0 2.2,-8.169 1.73,-10.365 -0.47,-2.201 -0.786,-5.187 2.354,-8.797 2.464,-2.837 2.464,-6.865 2.35,-8.477 -0.048,0.47 -0.149,0.778 -0.149,0.778 -1.099,-2.67 -4.709,-3.298 -7.225,-2.196 -2.516,1.098 -6.755,6.596 -6.755,6.596 -6.285,3.611 -7.524,6.824 -8.169,10.102 -2.763,14.02 4.247,16.784 5.734,16.232 l 1.649,1.151 c -1.256,0.945 -2.67,0.786 -3.14,0.633 -0.47,-0.159 -2.043,-0.787 -2.671,-1.261 -0.628,-0.47 -2.2,-2.512 -2.2,-2.512 l -2.196,-7.067 0.47,-7.699 2.828,-6.908 4.709,-3.773 4.084,-4.554 c 0,0 4.559,-5.025 8.481,-4.555 0,0 3.302,-17.906 3.145,-27.489 -0.142,-8.635 -3.299,-18.064 -3.299,-18.064 l 4.83,-4.003 c 5.183,25.447 -0.798,47.567 -1.649,51.128 1.033,0.705 1.406,1.641 1.511,2.46 0.515,-2.488 4.385,-20.702 8.185,-25.236 4.089,-4.871 14.924,-11.309 25.922,-15.868 10.992,-4.554 27.172,-4.866 27.172,-4.866 l 4.437,1.9 c 2.046,0.462 3.805,1.074 4.441,1.868 1.884,2.358 1.807,2.553 1.807,2.553 l 4.238,12.683 4.912,14.214 4.36,12.922 c 0,0 2.508,9.543 2.508,9.701 0,0.154 0.117,4.907 0.117,4.907 0,0 -2.625,8.246 -2.625,8.404 m -96.212,-9.231 c 0.078,-1.491 1.333,-3.845 2.509,-4.238 1.183,-0.393 1.653,-1.884 1.653,-1.884 0.786,1.414 -1.414,3.063 -2.435,4.789 -1.021,1.73 0.312,2.906 0.782,5.106 0.474,2.2 -0.705,4.396 -0.705,4.396 -1.726,3.615 -1.257,1.337 -1.414,1.572 -0.155,0.235 1.255,-4.4 1.255,-4.4 l -0.624,-1.492 c 0,0 -1.102,-2.354 -1.021,-3.849 m 24.896,-49.398 15.787,-26.508 -9.425,22.266 z"></path></g><g transform="translate(303.2252,537.8928)" id="SvgjsG1259"><path id="SvgjsPath1258" style="fill:#edc46a;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -0.264,10.299 -4.696,19.808 -11.623,26.31 -7.323,6.872 -18.293,10.692 -29.214,10.366 -21.18,-0.625 -31.81,-9.893 -31.81,-9.893 0.106,0.156 0.594,0.858 3.534,3.298 -4.035,-0.505 -13.168,-2.851 -17.985,-10.68 -4.465,-7.252 -3.575,-19.517 1.099,-26.863 2.489,-3.906 8.646,-8.513 17.042,-8.401 -1.756,1.796 -3.704,4.562 -5.026,6.988 -3.736,6.886 -3.549,13.915 0,21.364 4.379,9.191 13.887,14.433 22.855,16.099 8.485,1.582 21.167,1.761 28.745,-5.969 4.903,-5 6.207,-10.747 4.714,-17.986 -2.229,-10.804 -10.214,-17.113 -17.592,-22.855 -3.941,-3.061 -7.404,-5.487 -9.629,-8.575 1.645,2.779 4.308,5.894 8.606,8.892 -4.87,-1.966 -14.384,-4.782 -21.283,-3.378 -3.789,0.768 -7.279,2.44 -10.21,4.87 -7.038,0.045 -13.888,0.858 -18.772,8.562 -3.338,5.259 -4.942,13.892 -4.472,20.42 -3.379,-2.672 -12.825,-17.73 0.232,-31.81 11.899,-12.833 36.283,-8.066 36.519,-8.026 0,0 -9.731,-1.867 -17.671,-0.929 -7.432,0.881 -13.571,3.159 -19.161,8.642 -8.079,7.923 -8.481,16.752 -6.752,23.244 -6.157,-1.157 -12.225,-4.593 -14.768,-9.11 -3.659,-6.497 -2.824,-16.158 -1.104,-21.752 0.908,-2.36 2.31,-5.215 4.322,-7.07 12.172,-11.229 34.067,-8.798 50.099,0.733 0,0 24.009,-7.114 44.595,-0.929 -0.456,-0.027 -0.728,-0.014 -0.728,-0.014 C -13.039,-33.848 0.687,-26.659 0,0 m -47.518,-35.832 c 0,0 -0.044,0.482 0.019,1.318 -0.019,-0.429 -0.031,-0.862 -0.019,-1.318 m -41.756,-23.526 c 0.924,0.326 1.827,0.692 2.69,1.086 -0.47,-1.685 -0.983,-3.128 -1.52,-4.371 -0.004,-0.188 -0.004,-0.375 -0.018,-0.581 -0.545,-8.793 -5.022,-14.45 -6.439,-13.664 -1.059,0.59 -2.028,5.242 -2.453,7.534 -1.09,0.214 -2.046,0.67 -2.757,1.099 -1.112,2.507 -3.056,5.264 -6.403,5.764 -1.702,0.25 -3.333,-0.196 -4.795,-1.278 -1.286,4.527 -2.113,8.562 -2.6,12.114 2.037,-3.083 7.176,-8.995 17.543,-9.031 0.446,0 0.894,0.027 1.34,0.063 1.957,1.533 4.12,2.216 5.412,1.265 m 2.962,17.498 c 14.795,0.398 27.007,8.351 27.007,8.351 -3.405,-9.089 -13.481,-16.479 -20.358,-20.653 -25.908,-13.749 -34.728,6.01 -35.001,7.825 -0.357,7.346 1.256,13.061 1.962,15.08 0.723,-0.956 2.015,-2.279 2.985,-3.221 5.344,-5.175 13.802,-7.382 23.405,-7.382 m 27.843,52.097 c -0.26,-5.326 2.069,-10.188 6.073,-12.677 4.141,-2.578 8.163,-2.27 10.804,-1.56 3.668,0.988 7.109,3.486 8.552,6.216 0.898,1.689 1.108,3.289 0.63,4.754 -0.443,1.354 -1.38,2.297 -2.113,2.864 1.497,0.139 3.034,-0.397 4.137,-1.496 1.676,-1.671 2.082,-4.312 1.117,-7.248 -1.058,-3.199 -4.253,-6.198 -8.552,-8.016 -5.389,-2.283 -11.466,-2.27 -16.242,0.049 -5.193,2.511 -9.049,7.028 -10.591,12.391 -1.336,4.669 -0.715,9.401 1.752,13.32 4.37,6.939 12.757,9.021 17.592,9.643 7.414,-0.049 16.243,-0.934 21.846,-6.645 4.504,-4.593 6.09,-10.317 4.714,-17.006 -0.607,-2.963 -1.738,-5.591 -3.199,-7.972 2.225,5.92 3.065,13.986 -1.072,19.759 -5.715,7.972 -18.352,10.505 -28.156,5.644 -4.24,-2.1 -7.038,-6.707 -7.292,-12.02 m 5.661,17.4 c -3.995,-1.466 -8.177,-3.982 -10.889,-8.298 -2.615,-4.151 -3.276,-9.151 -1.864,-14.085 1.613,-5.621 5.653,-10.348 11.086,-12.98 2.534,-1.229 5.407,-1.841 8.361,-1.841 2.895,0 5.871,0.59 8.664,1.774 4.545,1.921 7.935,5.134 9.075,8.588 1.082,3.285 0.59,6.278 -1.345,8.208 -1.622,1.618 -4.044,2.204 -6.162,1.497 l -1.095,-0.366 1.038,-0.505 c 0.017,-0.009 1.997,-0.996 2.635,-2.958 0.394,-1.211 0.201,-2.565 -0.571,-4.012 -1.108,-2.092 -3.995,-4.679 -7.959,-5.747 -2.471,-0.666 -6.211,-0.952 -10.066,1.448 -3.714,2.31 -5.868,6.846 -5.626,11.828 0.241,4.973 2.828,9.276 6.764,11.225 9.415,4.664 21.516,2.265 26.976,-5.35 5.197,-7.247 2.118,-18.342 -1.362,-23.517 -1.614,-1.845 -3.401,-3.539 -5.247,-5.125 5.863,6.654 9.478,15.814 5.658,21.189 -3.928,5.528 -9.254,2.954 -9.254,2.954 0.187,0.031 4.553,1.207 7.68,-3.552 3.423,-5.206 -1.049,-16.426 -9.383,-23.062 -4.624,-3.682 -13.392,-6.872 -21.721,-5.179 -6.6,1.341 -11.761,5.362 -15.344,11.962 -4.352,8.003 -2.538,15.403 -0.25,20.202 4.329,9.084 13.226,13.928 20.201,15.702"></path></g><g transform="translate(205.7594,535.7707)" id="SvgjsG1257"><path id="SvgjsPath1256" style="fill:#caa552;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 C -0.013,-0.372 0,-0.731 0,-1.095 -0.026,-0.408 0,0 0,0 m -6.596,-61.733 c 0,0 2.195,-2.039 2.669,-3.453 0,0 9.583,-9.583 15.235,9.269 l -4.238,-1.1 c 0,0 -3.142,-11.467 -13.666,-4.716 m 63.418,27.176 c -0.474,3.928 1.649,8.6 8.249,14.136 6.773,5.687 18.493,16.259 18.648,27.961 0.218,15.869 -11.622,19.951 -11.622,19.951 0.514,-0.408 0.993,-0.82 1.449,-1.237 -10.491,7.039 -23.972,5.089 -32.619,-0.979 -9.424,-6.609 -3.91,-17.434 -3.91,-17.434 -0.031,0.102 -3.285,10.08 4.991,15.891 8.83,6.197 23.032,7.833 33.081,-1.032 l 0.887,1.006 C 81.1,17.425 80.754,10.63 79.322,5.027 77.598,-1.729 68.644,-11.467 62.203,-15.235 c -1.086,-0.634 -2.168,-1.329 -3.235,-2.057 l 1.346,1.583 -1.098,-0.071 c 0.873,0.506 1.711,1.042 2.504,1.622 1.777,0.727 4.411,1.907 4.411,1.907 0,0 0.292,0.416 0.762,1.13 -0.301,-0.173 -0.603,-0.341 -0.922,-0.501 -1.121,-0.559 -2.031,-1.024 -2.797,-1.414 4.26,3.484 7.327,7.877 8.923,11.937 1.134,2.886 1.449,5.12 1.347,6.849 1.02,-4.748 -4.481,-13.72 -6.551,-16.871 12.145,6.977 9.76,24.472 9.76,24.472 C 71.786,25.603 61.104,26.547 53.564,26.077 46.024,25.603 36.281,18.538 40.368,6.596 44.455,-5.341 59.689,-2.828 63.617,3.768 c 3.923,6.6 -2.043,8.329 -2.043,8.329 2.921,3.355 6.596,1.932 9.157,-1.126 -0.026,0.013 -0.048,0.027 -0.048,0.027 1.897,-3.737 1.21,-7.589 -0.909,-11.086 l -0.04,0.026 C 65,-6.321 57.983,-9.77 49.965,-9.77 h -0.023 c -7.313,0.005 -14.521,3.055 -17.934,7.589 -6.414,8.515 -2.744,17.952 -2.704,18.05 0,0 -5.873,-9.796 1.201,-19.184 3.808,-5.058 11.441,-8.33 19.437,-8.338 h 0.023 c 2.416,0 4.738,0.301 6.955,0.869 -1.126,-0.519 -2.257,-0.962 -3.356,-1.312 -9.898,-3.139 -22.146,0.159 -27.181,11.467 -5.022,11.312 1.729,21.055 1.259,20.735 -5.496,-3.772 -6.126,-13.98 -6.126,-13.98 0.085,-3.861 0.621,-9.876 3.613,-15.12 L 23.09,-6.44 c -0.093,0.035 -0.177,0.075 -0.271,0.106 -14.437,17.615 -1.83,29.947 -1.693,30.062 L 21.06,23.679 c 0,0 -5.847,-3.311 -6.84,-10.252 C 13.365,7.465 15.036,1.414 19.158,-4.605 6.184,3.023 9.739,19.792 9.739,19.792 7.851,16.494 4.397,5.812 10.838,-4.867 c 6.441,-10.682 18.537,-9.428 18.537,-9.428 l -0.323,0.403 c 0.766,-0.695 1.622,-1.343 2.557,-1.937 C 25.976,-16.919 15.98,-17.801 9.73,-12.292 2.239,-5.678 4.238,4.854 4.26,4.96 c 0,0 -4.096,-11.32 4.224,-18.666 4.233,-3.731 9.956,-4.8 15.12,-4.8 4.3,0 8.2,0.74 10.536,1.299 0.164,-0.076 0.337,-0.151 0.506,-0.222 l -0.089,-0.004 c 0,0 -7.54,-5.186 -21.52,-0.315 C 1.525,-13.741 0.133,-4.299 0,-1.095 c 0.058,-12.393 8.879,-18.812 15.9,-21.946 -5.975,0.577 -11.01,2.749 -14.769,6.446 -3.759,3.692 -5.235,7.872 -5.546,9.481 0.275,-2.066 1.574,-9.193 6.822,-13.041 3.768,-2.757 9.136,-4.942 16.689,-4.942 0.722,0 1.467,0.026 2.234,0.066 1.835,-0.527 3.019,-0.731 3.019,-0.731 1.201,-0.102 2.354,-0.169 3.484,-0.217 -15.058,-2.558 -31.658,-0.151 -36.259,9.042 -4.229,8.462 -0.568,14.251 -0.408,14.495 l -0.789,0.519 0.789,-0.519 c 0,0 -6.015,-5.86 -1.276,-15.337 3.807,-7.611 14.915,-11.002 26.976,-11.002 5.962,0 12.159,0.829 17.824,2.385 l -0.115,0.408 c 1.507,0.071 2.912,0.195 4.255,0.345 l -0.505,-0.119 c 0,0 -25.762,-10.053 -40.683,-4.552 -14.92,5.496 -14.765,21.045 -14.765,21.045 0,0 -2.669,-6.91 0.16,-15.549 2.828,-8.639 16.649,-18.063 37.225,-13.666 2.735,0.586 5.164,1.268 7.327,2.004 -3.542,-1.915 -8.125,-3.764 -13.967,-5.049 -17.846,-3.927 -25.12,5.918 -25.421,6.339 0,0 4.335,-9.149 17.393,-9.149 2.527,0 5.328,0.288 8.431,0.97 5.515,1.215 9.947,2.904 13.48,4.699 -1.787,-2.225 -4.198,-4.255 -6.946,-6.006 -18.307,-10.044 -30.342,1.937 -30.918,2.531 0,0 5.616,-8.32 16.711,-8.32 0.12,0 0.253,0.009 0.377,0.009 -4.823,-1.126 -9.339,-1.277 -12.385,-0.125 -9.109,3.458 -10.997,15.081 -10.997,15.081 -1.095,-2.669 -0.94,-8.325 -0.94,-8.325 4.552,-18.693 27.642,-12.252 27.642,-12.252 19.082,8.125 26.294,19.814 28.524,24.495 3.258,-0.816 11.179,-2.66 16.458,-2.735 z m 18.733,21.441 c 15.314,11.897 9.893,26.862 9.893,26.862 2.239,-14.491 -9.893,-26.862 -9.893,-26.862 M 47.987,-6.4 c 0,0 6.246,-2.359 14.256,2.358 8.01,4.711 7.301,11.072 6.121,13.546 -1.175,2.473 -4.592,3.652 -5.886,2.358 0,0 4.947,-1.064 4.711,-6.011 C 66.95,0.904 58.706,-7.345 47.987,-6.4 m 18.144,-17.319 c 3.612,4.038 7.535,8.365 7.535,8.365 0,0 -5.182,-4.123 -8.715,-7.656 -3.887,-3.887 -5.421,-8.484 -4.831,-11.781 l 2.593,-0.12 c 0,0 -0.59,6.715 3.418,11.192 m 9.578,-7.854 c 0,0 12.566,8.799 13.666,22.15 0,0 -3.143,-10.524 -13.666,-22.15 m 0.315,8.014 c 8.954,10.053 10.523,19.317 10.523,19.317 0,0 -2.579,-9.383 -10.993,-16.649 -10.367,-8.954 -9.739,-13.98 -9.739,-13.98 l 3.614,0.159 c 0,0 -2.359,1.1 6.595,11.153"></path></g><g transform="translate(219.1065,528.0734)" id="SvgjsG1255"><path id="SvgjsPath1254" style="fill:#b08d4b;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -5.771,7.187 -5.651,17.201 -5.651,17.201 0,0 2.071,-15.459 13.637,-19.382 C 3.998,0.189 -0.801,5.73 0.629,18.612 0.646,18.766 0.866,4.477 10.603,-0.866 l 1.548,-2.155 c 0.159,-0.014 0.299,-0.036 0.458,-0.04 l 3.061,-3.655 c 0,0 -9.896,-0.47 -15.67,6.716 m 34.796,-9.033 c 9.267,0.079 19.747,8.444 19.747,8.444 l 1.452,2.225 C 55.805,1.302 55.661,1.012 55.608,0.822 55.371,0 53.131,-2.828 53.131,-2.828 c 0,0 -0.822,-1.768 -0.232,-1.297 0.589,0.47 7.542,5.418 9.306,12.02 1.767,6.596 2.234,16.606 -5.067,22.029 -7.301,5.418 -23.327,4.829 -28.156,-1.887 -4.833,-6.716 -2.709,-7.776 -2.709,-11.307 0,0 0.119,6.83 6.008,10.599 5.093,3.259 21.558,5.419 25.802,-8.479 0,0 1.056,-4.178 1.544,-6.637 C 59.552,11.949 59.469,11.65 59.376,11.307 57.727,5.181 48.892,-6.597 34.638,-7.424 21.308,-8.193 15.811,-1.552 15.151,-0.686 19.087,-6.311 25.578,-9.112 34.796,-9.033 M 65.221,9.434 C 64.769,8.721 64.06,7.617 63.251,6.412 l -3.167,-3.94 c 0,0 -0.778,-1.069 -1.622,-2.168 -1.786,-1.575 -6.148,-5.331 -8.699,-7.464 -0.708,-0.545 -1.403,-1.09 -1.918,-1.46 -0.237,0.137 -0.523,0.141 -0.585,0.137 0.304,0.298 0.453,0.47 0.453,0.47 0,0 -3.298,-1.06 -7.186,-2.353 -3.888,-1.298 -14.487,-1.649 -14.487,-1.649 -22.504,-9.073 -34.999,5.176 -34.752,4.829 7.771,-11.312 25.917,-11.312 25.917,-11.312 3.197,-0.088 6.135,0.097 8.813,0.475 -5.031,-2.362 -15.335,-6.566 -26.133,-8.013 -14.962,-2.005 -22.033,3.65 -22.033,3.65 0,0 5.774,-6.126 22.267,-5.062 7.498,0.48 14.724,2.837 20.38,5.265 -7.024,-3.409 -15.789,-6.769 -23.798,-7.27 -16.963,-1.06 -25.09,9.543 -25.09,9.543 4.358,-8.954 24.739,-14.61 39.819,-9.895 2.023,0.634 4.09,1.443 6.149,2.37 -9.795,-7.533 -18.411,-9.209 -23.877,-9.293 9.508,-0.294 17.222,2.93 22.575,6.232 -2.046,-2.321 -4.447,-4.78 -7.121,-7.107 -5.251,-3.703 -14.175,-8.32 -25.882,-8.105 0,0 6.923,-1.997 16.409,1.46 -2.428,-1.293 -4.961,-2.348 -7.573,-2.995 -12.372,-3.061 -20.851,6.716 -20.851,6.716 6.333,-11.707 17.93,-10.063 23.393,-8.484 -0.589,-2.757 -2.986,-10.502 -11.263,-8.36 0,0 1.297,-3.185 5.541,-2.595 2.049,0.286 4.103,1.794 5.81,3.936 -0.343,-1.755 -1.03,-4.908 -1.839,-6.593 -1.156,-2.405 -3.324,-4.626 -4.094,-3.465 0,0 0.479,-1.302 0.77,-1.979 0,0 2.889,1.35 4.912,6.218 1.328,3.198 1.746,6.404 1.874,8.234 1.024,1.812 1.812,3.848 2.225,5.902 l -0.559,-0.053 c 17.302,8.031 25.768,19.373 27.536,23.894 1.9,-0.532 6.096,-1.645 10.238,-2.252 l 0.014,-0.031 0.91,-0.096 c 0.59,-0.075 1.175,-0.141 1.75,-0.189 l 1.698,-0.185 c 0,0 -0.119,6.597 5.77,12.252 4.851,4.658 12.411,10.591 16.572,17.544 1.464,2.274 2.608,4.649 3.219,7.077 0,0 -0.194,-0.309 -0.51,-0.806 0.563,1.703 1.535,4.654 -0.005,-0.008 M 51.412,21.726 c 0.637,0.053 1.447,-0.127 1.447,-0.127 0,0 -0.471,1.411 -3.378,3.848 -1.495,1.249 -3.826,1.913 -6.359,2.049 -5.115,0.589 -14.316,-1.728 -14.769,-10.845 -0.466,-9.504 6.522,-9.742 6.522,-9.742 4.241,-0.862 7.693,2.516 7.306,6.127 -0.335,3.047 -4.244,4.868 -6.127,3.456 -1.887,-1.411 -0.787,-3.219 -0.787,-3.219 0,0 -0.158,2.199 2.432,1.961 2.595,-0.233 3.223,-4.477 0.708,-5.497 -2.511,-1.02 -6.126,-0.629 -6.989,3.695 -0.755,3.769 2.121,12.248 10.495,10.067 4.964,-1.293 6.851,-4.825 6.671,-8.52 -0.079,-1.693 -1.196,-3.738 -3.114,-5.4 3.572,7.217 -2.537,12.406 -7.296,11.549 -4.196,-0.761 -4.604,-5.265 -4.715,-5.815 3.409,7.952 10.502,2.419 10.3,-2 C 43.544,8.523 39.81,7.019 37.756,6.553 37.061,6.513 36.349,6.509 35.601,6.579 l 0.594,-0.712 c 0,0 1.302,-0.027 3.074,0.198 2.674,0.035 6.526,0.765 9.623,4.063 0,0 6.008,4.477 -0.233,9.544 l -0.127,0.519 c 0.307,0.44 1.081,1.192 2.88,1.535 M 32.751,15.279 c -0.04,-0.102 -0.087,-0.194 -0.127,-0.3 l 0.114,0.238 z m -11.074,-25.883 -1.807,1.1 c 0,0 -15.943,-5.418 -27.017,5.968 0,0 9.346,-12.877 28.824,-7.068 M -6.298,-36.728 c -1.988,0.063 -4.051,0.278 -6.188,0.678 0,0 2.3,-0.735 6.188,-0.678"></path></g><g transform="translate(199.7887,532.1579)" id="SvgjsG1253"><path id="SvgjsPath1252" style="fill:#fddf9b;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,0 -4.083,-11.309 9.268,-19.476 0,0 -16.494,6.912 -9.268,19.476 m -7.698,-4.556 c 0,0 -6.544,-17.78 19.062,-21.168 -2.356,0.382 -20.381,3.842 -19.062,21.168 m 19.062,-21.168 c 0.164,-0.023 0.259,-0.037 0.259,-0.037 -0.086,0.014 -0.168,0.028 -0.259,0.037 M 4.871,5.812 5.812,10.209 c 0,0 -20.422,-0.627 -17.435,-26.861 0,0 -1.728,22.309 16.494,22.464 m 5.811,5.97 c 0,0 0,-14.765 12.723,-20.262 0,0 -13.51,13.191 -10.367,27.329 0,0 -11.469,-10.055 -5.03,-25.915 0,0 -3.451,13.191 2.674,18.848 m 14.297,16.02 c 0,0 -11.787,-3.142 -6.13,-19.635 0,0 -3.138,14.292 6.13,19.635 m 5.024,4.712 5.339,3.769 c 0,0 -22.15,0.314 -21.991,-24.501 0,0 0.787,16.175 16.652,20.732 M 101.001,20.263 C 95.817,30.945 68.643,55.605 32.045,33.141 l -3.147,-2.355 c 0,0 11.628,8.167 29.222,9.112 2.164,0.114 4.316,0.06 6.42,-0.141 5.148,-0.682 14.675,-2.719 21.378,-8.753 17.048,-15.534 4.911,-41.449 4.911,-41.449 5.42,10.132 7.707,17.002 5.066,29.216 -0.582,2.697 -1.342,4.989 -2.674,7.021 1.3,-1.855 2.268,-3.71 3.069,-5.688 4.238,-10.522 4.865,-36.597 -12.569,-49.793 0,0 7.699,0.314 13.51,7.853 5.812,7.544 8.954,31.418 3.77,42.099 z M 24.665,11.309 c 0,0 2.351,18.849 22.146,24.506 0,0 -21.678,-1.101 -22.146,-24.506 m -25.292,-50.58 c 13.505,-10.049 26.702,-0.154 26.702,-0.154 -14.452,-6.126 -26.702,0.154 -26.702,0.154 M 36.165,12.528 C 35.105,-1.492 50.775,-3.729 50.775,-3.729 35.579,1.923 36.165,12.528 36.165,12.528 M 40.28,20.5 C 36.311,4.979 52.304,0.391 52.304,0.391 37.698,7.353 40.117,19.731 40.28,20.5"></path></g><g transform="translate(187.2276,241.5681)" id="SvgjsG1251"><path id="SvgjsPath1250" style="fill:#eaa211;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 5.022,5.656 -5.966,8.796 c -16.337,10.996 -17.593,40.21 -17.593,40.21 -17.595,8.482 -13.51,0.941 -13.51,0.941 C -37.073,21.363 0,0.001 0,0.001"></path></g><g transform="translate(167.1266,40.5075)" id="SvgjsG1249"><path id="SvgjsPath1248" style="fill:#eaa211;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 -2.835,-2.827 c 0,0 -2.043,-3.11 -4.453,-6.68 5.472,-1.618 11.047,-2.925 16.622,-4.181 h 3.363 c 2.187,4.07 12.022,16.043 29.28,13.11 -1.089,-2.099 -4.456,-8.675 -8.899,-18.193 6.12,-1.11 12.118,-1.958 18.317,-2.422 12.871,-0.966 26.295,-1.065 39.306,-0.197 0.288,0.104 0.58,0.21 0.876,0.328 0.013,-0.075 0.043,-0.162 0.083,-0.257 9.748,0.685 19.266,1.91 28.125,3.727 7.379,1.515 14.684,3.351 21.928,5.417 1.376,4.647 3.55,11.431 6.873,20.5 1.917,-6.172 0.95,-8.923 2.374,-16.726 v 0.742 h 5.523 c 4.469,1.432 9.252,2.987 13.83,4.573 -1.045,9.198 -2.6,18.44 -4.809,27.5 1.485,-1.96 4.169,-4.071 4.169,-4.071 0,0 -0.706,-6.599 4.831,-9.66 5.017,-2.778 14.84,7.184 14.84,7.184 l -2.357,0.59 -8.48,-4.713 -4.714,2.827 -1.647,3.772 3.063,4.24 -3.297,2.354 c 0,0 -2.827,4.009 -2.592,4.715 0.231,0.707 0.941,4.713 0.941,4.713 l -1.886,1.649 -3.063,5.181 -5.653,-5.181 c 0.048,-0.143 0.461,-1.267 1.128,-2.972 -6.564,-2.344 -12.079,-7.805 -15.106,-11.305 l -0.445,1.575 c 8.507,9.157 15.917,16.784 15.917,16.784 -0.945,1.885 -11.312,-9.423 -18.225,-13.194 -6.908,-3.771 -16.961,-5.967 -16.961,-5.967 l -6.221,-12.44 c 2.919,8.281 2.923,12.911 2.923,12.911 0,0 -5.598,-0.242 -12.593,0.666 l -8.615,1.69 -17.532,-0.42 c 0,0 0.004,-0.14 0.008,-0.38 -16.348,-0.09 -41.394,1.44 -63.042,9.834 l -7.466,3.315 c 0,0 -17.419,9.957 -18.525,11.063 0,0 -12.719,-16.866 -7.466,-53.09 0,0 4.691,2.112 12.562,3.916 m 15.459,10.918 c 4.012,5.413 9.408,11.665 13.246,14.287 6.756,-2.316 26.697,-7.613 55.053,-6.783 -0.187,-8.476 -1.276,-23.121 -8.215,-26.589 0,0 -25.917,15.551 -61.966,14.606 -0.078,1.022 0.283,2.317 1.882,4.479"></path></g><g transform="translate(330.4742,231.5134)" id="SvgjsG1247"><path id="SvgjsPath1246" style="fill:#eaa211;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 16.967,-25.448 1.257,-22.932 c 5.339,5.026 12.096,6.126 12.096,6.126 -0.312,13.038 3.927,22.462 7.379,22.776 3.457,0.314 7.227,-2.199 7.227,-2.199 C 38.643,-4.085 25.884,-10.655 18.85,-8.795 12.62,-7.149 8.483,14.138 8.483,14.138 7.54,7.226 0,0 0,0"></path></g><g transform="translate(87.4015,310.8381)" id="SvgjsG1245"><path id="SvgjsPath1244" style="fill:#eaa211;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 C 2.357,-1.649 18.847,-4.477 23.324,-4.947 27.8,-5.422 44.058,-6.13 44.058,-6.13 l 6.894,2.974 0.176,-0.613 1.49,1.334 3.458,1.489 4.753,5.867 8.439,7.567 9.661,3.532 c 0.747,0 8.754,-0.346 17.163,1.523 -0.716,-1.368 -1.079,-2.43 -0.669,-2.702 0.324,-0.212 1.149,-0.945 2.228,-1.943 -0.488,-0.833 -0.924,-1.731 -1.287,-2.689 -3.768,-10.054 17.712,-61.945 17.712,-61.945 l -0.431,-1.2 0.733,-0.578 c 3.583,-18.752 17.98,-30.873 30.054,-31.778 18.847,-1.417 37.229,21.204 37.229,21.204 l 16.49,-12.724 c 0,0 28.745,-17.905 46.651,3.299 17.906,21.205 4.71,39.582 4.71,39.582 -0.492,-0.423 -1.018,-0.797 -1.562,-1.149 -14.614,12.3 -41.002,18.27 -51.682,19.841 -10.403,13.805 -11.996,27.347 -13.261,35.148 4.948,0.812 10.158,2.215 16.084,4.122 14.311,4.598 22.383,19.793 22.383,19.793 0,0 -8.716,-11.31 -24.973,-16.257 -5.784,-1.761 -11.681,-2.12 -16.891,-1.86 l -16.568,3 -7.304,2.391 -13.249,3.756 c -8.465,2.875 -16.2,5.672 -16.2,5.672 l -0.29,-0.276 -12.018,9.329 -0.025,0.055 c 0,0 -6.282,8.328 -7.853,11.781 -1.338,2.944 -7.248,19.344 -24.131,22.474 -0.264,0.051 -0.527,0.09 -0.79,0.133 -0.255,0.043 -0.505,0.086 -0.768,0.117 C 71.845,85.374 61.709,82.96 54.893,78.38 45.313,71.939 42.961,65.499 42.961,65.499 l 2.366,0.444 -0.208,-0.444 c 0,0 15.787,1.649 24.032,-3.182 2.607,-1.528 14.371,-11.189 3.768,-18.963 -5.348,-3.929 -9.98,-3.743 -14.387,-3.821 -5.098,16.205 -16.046,15.912 -16.046,15.912 l 0.289,-1.049 c -0.544,0.932 -1.13,1.813 -1.782,2.62 0,0 -6.83,-21.204 -12.955,-26.151 -6.126,-4.951 -12.959,-8.72 -19.322,-8.012 -6.359,0.708 -15.079,2.594 -15.079,2.594 l -10.602,4.948 0.624,-1.317 c -0.545,0.233 -0.859,0.371 -0.859,0.371 0,0 14.843,-27.8 17.2,-29.449 m 126.682,32.751 c 15.665,-7.58 27.446,-11.103 37.18,-12.803 3.096,-6.333 4.969,-13.369 3.083,-17.479 3.068,-4.93 11.176,-19.214 10.161,-31.215 -0.319,-3.691 -1.955,-8.83 -1.955,-8.83 0,0 -12.183,27.367 -53.654,29.564 -1.325,13.317 -2.905,19.352 -5.793,25.18 0.811,3.285 3.065,11.979 10.978,15.583 M 58.683,72.764 c 5.897,6.911 12.696,9.052 19.305,9.229 4.727,-0.28 11.664,-1.295 16.805,-7.697 14.876,-18.506 5.893,-38.052 2.279,-44.023 -2.49,-4.113 -6.915,-5.996 -8.128,-6.949 l 8.128,18.497 C 99.425,64.087 80.03,69.742 80.03,69.742 98.091,56.075 87.727,27.645 87.727,27.645 L 86.47,25.132 c 0,0 0.044,0.017 0.099,0.043 l -1.51,-1.459 -0.229,-0.168 c 1.364,2.102 2.568,4.36 3.056,6.371 0.928,3.873 2.038,10.918 2.038,10.918 -0.052,1.018 -0.147,1.981 -0.263,2.918 -0.018,0.142 0.108,0.427 0.09,0.57 -0.047,0.345 0.35,0.621 0.311,0.867 -3.548,25.211 -20.393,27.214 -31.379,27.572 m -6.57,-42.201 -3.998,4.153 c -0.431,4.623 -1.23,9.263 -2.581,13.412 3.622,-3.264 6.454,-12.64 6.579,-17.565"></path></g><g transform="translate(248.4869,142.9245)" id="SvgjsG1243"><path id="SvgjsPath1242" style="fill:#eaa211;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,0 -7.855,-9.428 -3.772,-39.585 l 16.807,1.1 55.136,22.618 c 6.908,18.222 -9.9,57.491 -9.9,57.491 L 54.504,73.667 27.96,76.024 23.167,74.374 C 12.803,57.412 -0.515,57.527 -0.515,57.527 c -24.737,1.178 -26.506,25.41 -26.506,25.41 L -51.526,99.9 c -7.851,-8.483 -6.281,-41.467 4.088,-54.664 10.368,-13.192 26.701,-17.591 26.701,-17.591 -1.57,-20.105 8.171,-42.098 8.171,-42.098 1.255,27.96 8.794,43.039 8.794,43.039 8.977,-2.112 18.252,-1.462 24.67,-0.48 C 19.158,20.733 16.333,-1.258 0,0 m -24.517,40.704 c -10.314,-0.412 -17.978,14.419 -9.741,9.621 8.237,-4.794 19.059,-2.681 19.059,-2.681 2.679,-0.759 0.996,-6.528 -9.318,-6.94 m 8.121,10.397 c -14.397,-1.214 -27.478,11.094 -25.023,18.869 2.455,7.768 7.494,1.367 10.082,-1.092 5.379,-5.106 7.028,-8.759 19.909,-13.39 4.366,-1.571 1.949,-3.806 -4.968,-4.387 M 3.141,38.325 c 0,0 2.824,10.996 18.218,20.421 0,0 1.886,-17.594 -18.218,-20.421"></path></g><g transform="translate(315.7154,314.6091)" id="SvgjsG1241"><path id="SvgjsPath1240" style="fill:#eaa211;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 C -0.944,16.965 -8.955,21.207 -8.955,21.207 -5.896,16.259 0,0 0,0"></path></g><g transform="translate(317.2838,312.5647)" id="SvgjsG1239"><path id="SvgjsPath1238" style="fill:#eaa211;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 5.027,-23.562 29.53,-27.331 29.53,-27.331 0,0 -4.713,32.671 -15.713,44.612 C 2.822,29.217 -9.423,29.217 -9.423,29.217 -0.632,20.108 0,0 0,0"></path></g><g transform="translate(388.7545,183.6062)" id="SvgjsG1237"><path id="SvgjsPath1236" style="fill:#eaa211;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,0 1.177,13.665 -10.605,22.146 0,0 4.711,-9.422 5.181,-19.084 L 0,0"></path></g><g transform="translate(233.7208,105.2282)" id="SvgjsG1235"><path id="SvgjsPath1234" style="fill:#eaa211;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,0 -2.198,16.02 -10.996,32.354 0,0 0.631,-16.961 -4.399,-30.471 0,0 13.511,-2.199 15.395,-1.883"></path></g><g transform="translate(70.045,340.2087)" id="SvgjsG1233"><path id="SvgjsPath1232" style="fill:#d5721b;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,0 12.877,-25.761 17.906,-29.842 5.026,-4.088 20.105,-4.402 25.758,-5.029 5.656,-0.63 16.651,-1.885 22.621,1.258 5.966,3.14 18.533,14.449 18.846,15.707 0.318,1.255 12.881,6.597 14.766,9.11 0.904,1.204 3.69,4.445 5.545,9.217 l 0.388,-3.288 c 0,0 7.95,6.793 6.476,19.555 -1.457,12.614 -8.935,17.255 -8.935,17.255 0,0 5.801,-9.76 4.166,-23.052 0.047,1.211 0.03,2.472 -0.061,3.797 -1.197,17.414 -17.275,28.014 -31.805,27.046 1.126,1.68 4.024,5.498 8.304,7.707 5.595,2.884 14.078,5.005 25.093,0.705 0,0 -5.656,4.064 -13.312,5.008 C 88.1,56.095 76.551,51.62 76.551,51.62 c 0,0 -12.604,-7.069 -14.786,-14.432 l 12.614,0.674 c 6.486,-0.681 14.692,-2.57 20.257,-7.508 5.076,-4.505 3.926,-12.408 2.749,-14.647 C 93.256,7.865 87.384,5.201 72.878,3.454 c -0.401,8.863 -4.553,17.751 -13.504,21.993 0,0 1.652,-3.224 2.826,-6.84 2.446,-1.797 7.049,-6.644 7.225,-17.703 0,0 -1.916,7.035 -5.589,9.993 1.278,-7.703 2.02,-14.907 1.349,-18.435 -0.893,-4.681 -3.153,-11.238 -6.752,-13.039 -1.889,-0.941 -8.331,-1.727 -11.94,-0.314 -5.662,2.213 -10.368,8.324 -12.725,11.397 25.299,5.747 24.665,35.724 24.665,35.724 l -1.241,4.131 C 58.291,24.496 48.375,-6.921 28.271,-7.225 8.125,-7.528 -2.813,5.015 -3.568,5.916 -3.289,5.413 -1.852,2.671 1.062,-0.435 L 0,0 m 100.056,13.036 c 0.28,0.883 0.486,1.73 0.634,2.549 0.934,-1.369 3.825,-6.232 2.425,-12.206 -0.614,-2.64 -2.081,-5.143 -3.926,-7.325 C 90.1,-10.85 86.949,-6.351 83.523,-4.907 90.768,-2.479 96.1,0.685 100.056,13.036 M 25.913,-10.523 c 1.491,-3.403 7.325,-13.326 14.543,-16.833 -5.13,-1.066 -9.818,-0.058 -13.126,1.595 -3.771,1.886 -8.304,10.425 -11.576,16.462 3.235,-0.877 5.97,-1.433 10.159,-1.224"></path></g><g transform="translate(152.1563,33.5358)" id="SvgjsG1231"><path id="SvgjsPath1230" style="fill:#d5721b;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 C 5.933,-2.183 12.059,-3.839 18.232,-5.312 29.36,5.651 42.686,9.881 42.686,9.881 32.082,11.529 18.887,9.171 18.887,9.171 c 7.908,15.188 14.75,23.355 18.398,27.088 7.803,-2.42 34.476,-9.682 68.231,-7.572 l 11.822,0.581 c 0,0 5.41,-2.248 14.108,-2.393 -0.14,-2.208 -0.55,-5.703 -1.712,-9.93 -0.839,-3.067 -2.071,-6.515 -3.876,-10.129 -0.655,-1.303 -1.406,-2.6 -2.224,-3.869 -3.836,-4.5 -8.86,-9.141 -14.741,-11.681 -3.115,-1.346 -5.588,-2.499 -7.601,-3.599 -12.509,14.442 -37.64,18.991 -37.64,18.991 0,0 12.648,-4.006 14.85,-13.744 0.516,-2.298 0.621,-4.964 0.455,-7.793 15.082,-0.456 30.474,0.278 44.734,2.343 0.275,0.173 0.555,0.349 0.839,0.536 0.017,-0.129 0.035,-0.268 0.056,-0.401 2.413,0.359 4.793,0.758 7.131,1.192 0.599,2.546 1.258,4.893 1.94,7.026 2.534,2.715 5.155,6.022 7.751,10.055 5.505,8.566 9.218,13.485 16.96,20.267 1.084,-4.792 4.317,-14.016 7.563,-27.604 v 0.778 h 1.512 c 1.017,8.448 3.01,26.195 3.093,36.657 3.726,2.886 7.047,5.189 9.529,6.718 0.336,-0.415 0.682,-0.767 1.044,-1.001 0,0 -2.006,-3.182 0.353,-7.305 1.609,-2.82 3.278,-4.372 4.168,-5.07 -0.72,-1.318 -1.319,-3.138 -1.105,-5.414 0.433,-4.647 4.727,-9.581 13.256,-6.099 0.328,-2.027 0.738,-4.966 1.088,-8.715 0.061,0.024 0.127,0.052 0.183,0.079 2.482,1.105 4.95,2.254 7.41,3.425 -0.642,3.778 -1.372,7.007 -2.163,9.37 l -0.533,4.181 -2.39,-1.824 -4.364,-1.006 c 0,0 0.11,-0.41 0.288,-1.176 l -4.295,-1.652 -4.71,2.475 c 0,0 -0.943,4.123 -0.589,4.476 0.354,0.354 2.001,3.181 2.001,3.181 l 0.354,1.414 -0.996,-0.095 c -0.521,0.231 -5.457,2.507 -5.012,5.631 0.472,3.299 2.591,6.598 2.591,6.598 l -3.888,2.944 -2.709,5.185 -7.541,-4.477 c 0,0 -2.822,-2.828 -7.069,-7.305 -2.119,-2.24 -7.012,-4.655 -11.372,-6.511 0.034,0.09 0.065,0.149 0.065,0.149 -3.683,-2.01 -13.552,-3.541 -18.953,-4.261 v 0.742 l -19.001,2.325 c 0,0 -46.718,-2.132 -70.952,5.624 C 36.302,41.43 31.177,43.203 28.241,44.312 18.678,49.619 9.463,56.296 9.463,56.296 -1.376,44.985 1.922,3.518 1.922,3.518 1.311,2.499 0.668,1.312 0,0"></path></g><g transform="translate(178.9005,332.2805)" id="SvgjsG1229"><path id="SvgjsPath1228" style="fill:#d5721b;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -3.281,-1.394 -7.223,-2.761 -9.426,-2.435 l -3.612,-3.145 0.168,-0.263 -10.065,-5.231 -11.78,-10.368 -6.598,-3.769 0.946,-3.3 c 0,0 7.064,-50.893 44.762,-103.199 3.561,-4.939 6.923,-9.24 10.114,-12.972 2.638,-8.658 4.503,-18.569 2.611,-26.141 -4.24,-16.964 -19.794,-39.583 -19.794,-39.583 0,0 13.667,-9.425 26.859,-12.723 0,0 0.013,0.038 0.031,0.095 18.17,-4.428 55.102,-5.277 55.102,-5.277 l 0.159,0.289 0.258,0.014 c -0.136,-0.101 -0.272,-0.204 -0.417,-0.303 l 3.304,0.47 c 0,0 15.079,8.01 24.971,9.426 l 23.565,1.412 6.123,-1.886 c 0,0 20.264,7.54 19.794,23.562 0,0 -8.481,30.63 -13.667,39.114 l 0.941,50.892 c 0,0 1.914,0.612 4.508,2.327 -0.579,-0.548 -0.937,-0.929 -0.969,-1.148 -1.357,-8.118 16.251,-24.741 16.251,-24.741 l 0.24,-24.739 c 10.364,10.132 10.915,8.088 10.915,8.088 0.159,25.604 11.704,25.841 11.704,25.841 1.054,-0.193 2.647,-0.461 4.24,-0.791 1.045,-0.751 8.757,-6.862 7.657,-23.126 l 3.534,-1.293 c 0,0 2.792,18.178 -11.092,24.4 1.765,-0.369 3.512,-0.816 4.512,-1.327 -10.408,12.703 -26.759,4.727 -26.759,4.727 -9.191,3.77 -12.721,23.327 -12.721,23.327 6.363,6.833 5.887,20.971 5.887,27.566 0,6.598 -9.186,21.441 -9.186,21.441 4.444,-1.195 9.621,-1.276 12.128,-1.23 -17.016,8.314 -29.565,41.994 -29.565,41.994 3.064,-10.608 2.122,-16.02 2.122,-16.02 0,0 6.07,-12.296 12.007,-21.455 -1.127,1.323 -1.874,2.131 -1.874,2.131 0,-4.006 7.775,-8.484 10.599,-26.39 2.172,-13.747 -8.291,-20.129 -13.269,-22.355 -4.073,-0.686 -8.987,-0.694 -14.847,0.365 -27.248,4.917 -35.34,34.87 -40.997,53.72 0,0 4.784,-20.217 0.628,-36.283 -4.71,-18.223 -32.786,-14.411 -43.349,-8.798 -30.162,16.023 -28.908,39.269 -28.908,39.269 -0.652,1.643 2.556,19.189 -3.051,27.38 0.408,0.806 0.815,1.697 1.227,2.661 4.503,18.234 19.228,24.194 19.228,24.194 0,0 22.397,-11.395 47.473,-14.808 0,0 27.488,1.57 41.937,16.179 0,0 -10.996,-8.639 -26.388,-10.839 C 98.13,4.942 98.085,4.937 98.044,4.928 94.962,4.887 83.717,4.869 73.937,6.697 71.575,7.372 70.213,7.933 70.213,7.933 l -4.24,1.1 c 0,0 -0.557,0.149 -1.503,0.416 -0.321,0.145 -0.638,0.29 -0.932,0.448 0,0 -0.525,0.068 -1.444,0.222 -6.91,1.955 -20.957,5.987 -24.238,7.394 l -0.023,0.005 c -6.24,2.883 -12.472,6.761 -17.179,11.934 -0.253,0.276 2.517,-3.82 3.173,-9.585 C 23.832,15.481 22.732,9.517 17.433,6.046 12.346,2.715 9.223,2.027 7.449,2.068 23.601,10.3 18.129,27.375 18.129,27.375 17.559,13.001 4.395,3.023 0,0 m 127.859,-197.681 c 0,0 -6.128,7.067 -9.423,13.192 -3.299,6.126 -2.832,20.736 -6.127,28.744 0,0 7.539,0 12.25,2.359 0,0 13.196,-28.744 3.3,-44.295 m -6.173,50.349 c 0,0 -11.59,4.748 -11.486,11.237 0.104,6.489 -0.765,18.089 -0.765,18.089 16.654,-9.122 12.251,-29.326 12.251,-29.326 m -103.425,47.31 c 4.326,-5.174 12.472,-11.761 26.818,-13.937 20.668,-3.141 39.796,5.92 49.069,16.838 -0.14,-2.705 -0.371,-5.698 -0.887,-8.901 -4.199,-19.562 -16.06,-27.809 -16.06,-27.809 9.245,4.473 16.549,10.923 19.459,15.407 0.923,-4.489 5.308,-32.392 -26.288,-40.617 0,0 12.72,-2.827 26.387,0.942 0,0 1.222,-7.992 1.196,-18.798 -1.512,-11.354 -5.603,-23.647 -15.971,-27.5 0,0 -4.897,-5.93 -5.277,-20.684 -26.582,-0.547 -44.77,3.772 -51.468,5.699 2.909,10.774 10.512,42.239 5.34,59.441 19.871,-13.87 30.728,-0.129 39.317,13.624 0,0 -23.089,-21.68 -40.055,1.413 -12.481,16.992 -12.459,36.011 -11.581,44.882 z m -5.078,12.888 0.045,-0.347 -2.235,2.893 c 0,0 -23.089,-6.126 -30.629,48.066 0,0 9.187,-3.534 18.614,-5.419 0,0 0.981,-25.825 14.205,-45.193"></path></g><g transform="translate(133.1856,338.323)" id="SvgjsG1227"><path id="SvgjsPath1226" style="fill:#d5721b;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,0 -0.486,-10.668 -4.399,-15.863 0,0 6.915,5.97 4.399,15.863"></path></g><g transform="translate(182.0904,344.8528)" id="SvgjsG1225"><path id="SvgjsPath1224" style="fill:#d5721b;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -5.583,-8.938 -7.957,-8.24 -7.957,-8.24 l -3.09,-6.338 c 0,0 12.579,1.535 16.61,19.674 C 8.38,17.769 3.481,27.177 2.373,28.989 3.054,26.372 5.157,8.25 0,0"></path></g><g transform="translate(66.4771,346.1252)" id="SvgjsG1223"><path id="SvgjsPath1222" style="fill:#d5721b;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 C -0.027,0.034 -0.046,0.055 -0.046,0.055 -0.061,0.11 -0.049,0.086 0,0"></path></g><g transform="translate(127.2398,370.5739)" id="SvgjsG1221"><path id="SvgjsPath1220" style="fill:#d5721b;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 C -0.045,0.232 -0.1,0.435 -0.177,0.583 L 0,0"></path></g><g transform="translate(313.5611,210.4509)" id="SvgjsG1219"><path id="SvgjsPath1218" style="fill:#f5f014;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 -6.564,3.55 c 0,0 5.417,-5.891 7.298,-11.545 1.887,-5.656 2.361,-20.5 2.361,-20.5 l -8.955,-2.121 c 0,0 5.766,-1.888 7.303,-3.299 5.656,-5.185 13.429,-32.512 14.372,-52.775 0,0 10.369,7.539 5.187,19.319 -5.187,11.779 -11.312,32.515 -11.312,32.515 0,0 -1.413,42.881 0.474,51.365 0,0 11.776,8.953 15.546,18.378 0,0 -0.277,-0.333 -0.798,-0.893 0.606,1.544 1.148,3.307 1.562,5.308 2.207,7.932 1.464,15.196 0.653,18.909 -0.431,1.965 -1.233,4.107 -2.177,6.2 -1.024,2.847 -2.331,5.092 -3.829,7.222 -1.519,2.54 -2.711,4.247 -2.711,4.247 0,0 0.594,-0.909 1.44,-2.51 -0.735,0.974 -1.469,1.981 -2.306,2.984 -8.012,9.583 -16.182,28.902 -19.319,38.016 0,0 3.296,-19.008 10.526,-31.89 C 12.717,75.406 19.9,67.873 22.099,60.332 23.602,55.193 24.613,46.666 21.002,36.928 18.27,29.568 10.146,23.483 4.884,21.153 1.127,20.075 -2.962,19.614 -7.273,20.28 c 0,0 4.58,-3.206 9.224,-4.65 C 2.254,12.176 2.421,5.452 0,0"></path></g><g transform="translate(250.11,18.7194)" id="SvgjsG1217"><path id="SvgjsPath1216" style="fill:#f5f014;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 5.117,0.194 10.198,0.529 15.192,1.013 0.05,0.12 0.099,0.24 0.149,0.357 3.738,1.512 5.031,1.962 7.221,3.144 4.089,2.199 13.823,10.679 19.48,19.791 0.708,1.14 1.396,2.254 2.055,3.342 0.386,0.448 0.794,0.95 1.243,1.526 7.304,9.307 22.147,19.791 22.147,19.791 -6.712,-2.936 -11.137,-6.491 -15.078,-9.542 1.956,3.367 2.071,5.896 4.085,9.387 0,0 -10.681,-2.83 -15.708,-3.772 0,0 -4.048,-18.789 -10.478,-28.637 C 27.289,13.278 21.892,8.32 16.279,6.241 7.798,3.098 3.088,0.898 3.088,0.898 c 0,0 -3.772,4.399 -6.597,5.657 0,0 2.973,-1.567 3.509,-6.554"></path></g><g transform="translate(347.1285,298.7434)" id="SvgjsG1215"><path id="SvgjsPath1214" style="fill:#f5f014;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 2.042,-13.196 -12.726,0.944 13.979,-6.284 c 0,0 15.241,-32.202 19.952,-40.84 2.664,-4.887 7.296,-14.152 11.439,-23.096 -3.226,3.391 -7.268,6.439 -12.227,8.176 0,0 15.513,-10.503 20.578,-28.118 1.305,-4.518 2.429,-9.203 2.12,-15.432 l 4.166,-3.261 c 0,0 1.254,13.667 -1.728,22.775 -2.987,9.112 -14.453,32.36 -14.453,32.36 0,0 -16.96,32.671 -19.638,37.542 -2.664,4.868 -7.066,15.551 -7.066,15.551 0,0 -4.553,31.731 -10.208,41.935 -5.655,10.213 -22.306,26.547 -33.456,27.648 l -3.142,-3.613 c 0,0 7.852,-0.783 20.107,-10.836 C -8.01,32.199 -2.042,13.192 0,0"></path></g><g transform="translate(153.7852,35.9235)" id="SvgjsG1213"><path id="SvgjsPath1212" style="fill:#f5f014;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 -1.04,-2.605 C 1.626,-3.569 4.338,-4.429 7.07,-5.218 15.48,11.114 24.014,24.375 24.014,24.375 19.18,22.228 13.013,17.388 9.854,15.251 8.032,32.193 14.431,47.779 14.431,47.779 L 7.836,53.673 C -1.773,40.729 -0.121,14.746 0.704,6.388 L 0.482,1.798 0,0"></path></g><g transform="translate(359.108,46.3562)" id="SvgjsG1211"><path id="SvgjsPath1210" style="fill:#f5f014;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -1.347,6.726 -2.873,12.609 -2.873,12.609 l -3.532,-2.592 c 0,0 0.883,-4.939 1.675,-12.233 C -3.148,-1.487 -1.574,-0.751 0,0"></path></g><g transform="translate(139.4713,378.6916)" id="SvgjsG1209"><path id="SvgjsPath1208" style="fill:#f5f014;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,0 2.517,6.441 11.309,11.312 8.795,4.868 21.833,4.474 29.374,-0.237 0,0 -15.081,9.66 -28.432,3.85 C -1.099,9.111 -9.11,-1.411 -9.11,-1.411 l 2.041,0.468 C -6.597,-0.943 0,0 0,0"></path></g><g transform="translate(380.858,187.4939)" id="SvgjsG1207"><path id="SvgjsPath1206" style="fill:#f5f014;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 2.082,-0.434 c 0,0 0.354,0 0.982,-0.628 0,0 0.471,6.009 -2.593,14.373 -3.518,9.61 -12.215,11.389 -12.215,11.389 0,0 5.343,-1.099 8.797,-7.619 C -0.209,11.916 0,0 0,0"></path></g><g transform="translate(151.0943,376.9675)" id="SvgjsG1205"><path id="SvgjsPath1204" style="fill:#f5f014;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,0 -13.037,2.827 -24.032,-1.417 v -5.338 c 0,0 8.797,7.069 24.032,6.755"></path></g><g transform="translate(99.2584,305.3391)" id="SvgjsG1203"><path id="SvgjsPath1202" style="fill:#f5f014;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 3.926,-1.885 19.008,0 22.303,-0.472 3.302,-0.472 8.486,-0.631 14.61,1.885 1.852,0.76 3.885,1.992 5.826,3.343 0.099,-0.022 0.247,-0.063 0.435,-0.118 L 37.072,0.627 c 0,0 4.398,-24.188 10.684,-37.699 6.276,-13.511 20.1,-42.723 34.866,-65.343 14.765,-22.618 15.079,-29.843 12.883,-46.18 -2.202,-16.337 -18.849,-35.497 -18.849,-35.497 l 9.423,-5.344 c 22.303,34.245 14.138,64.717 14.138,64.717 l 7.537,-5.027 c -10.88,10.879 -24.793,39.168 -38.215,64.538 7.815,-3.711 15.913,-1.154 15.913,-1.154 -13.729,1.246 -23.41,18.27 -25.494,22.251 -1.321,3.472 -2.506,6.873 -3.55,10.161 -5.136,16.152 -7.142,29.681 -7.903,36.677 7.339,-2.756 19.809,-7.667 27.657,-10.77 1.457,-11.02 6.84,-43.251 21.539,-59.499 17.904,-19.794 50.892,-9.424 50.892,-9.424 0,0 -38.477,-6.361 -53.088,21.912 -8.611,16.669 -7.796,34.81 -9.271,44.059 0,0 -0.133,0.059 -0.395,0.188 l 4.951,0.126 C 66.916,-0.159 56.537,16.444 56.537,16.444 L 50.579,9.736 c 0,0 -2.236,-1.18 -4.365,-2.386 2.882,2.283 4.996,4.272 4.996,4.272 C 41.783,5.184 33.773,1.568 27.332,2.826 20.89,4.084 14.138,5.184 4.711,4.711 -4.711,4.239 -10.995,11.78 -13.507,17.433 c -2.513,5.659 -6.597,13.038 -6.597,13.038 l -9.271,5.184 c 0,0 9.898,-20.104 14.296,-26.232 C -10.681,3.298 -3.926,1.882 0,0"></path></g><g transform="translate(349.6373,113.7458)" id="SvgjsG1201"><path id="SvgjsPath1200" style="fill:#c71e25;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 -4.342,-7.927 c -0.631,-0.489 -1.157,-0.909 -1.313,-1.064 -0.47,-0.473 -1.571,-2.516 -1.571,-2.516 l 0.788,-3.61 c 0,0 4.084,-3.144 5.811,-3.299 1.727,-0.158 5.342,3.454 5.812,5.023 0.473,1.573 -0.47,4.873 -2.354,6.913 -0.186,0.199 -0.374,0.357 -0.56,0.499 3.575,5.067 2.213,6.469 2.327,6.805 L -0.001,0"></path></g><g transform="translate(338.0152,75.2233)" id="SvgjsG1199"><path id="SvgjsPath1198" style="fill:#c71e25;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 -1.414,-2.672 0.475,-2.827 2.512,-3.613 2.671,-1.097 c 0,0 -1.573,-2.513 -1.726,-2.984 -0.159,-0.473 -0.317,-3.772 -0.317,-3.772 l 2.355,-3.299 3.457,0.314 2.983,1.258 4.085,2.671 5.342,3.452 3.611,4.243 c 0.47,3.768 -3.141,6.757 -3.141,6.757 l 3.141,7.381 -2.671,-3.927 -2.201,-1.886 -0.153,1.414 c -0.317,4.87 -5.342,8.483 -5.342,8.483 l -1.257,0.945 c 0,0 0.786,1.097 4.872,2.666 4.081,1.574 4.709,5.184 4.709,5.184 -1.41,-3.61 -9.581,-4.871 -9.581,-4.871 -1.256,4.715 -5.183,6.756 -5.183,6.756 L 4.872,20.104 2.829,19.163 0.944,17.75 -2.354,14.765 -4.239,12.724 c 0,0 -0.317,-1.573 -0.317,-2.201 V 7.069 c 0,-0.471 2.043,-3.143 2.043,-3.143 0,0 2.988,-2.983 2.513,-3.926"></path></g><g transform="translate(360.6217,105.5212)" id="SvgjsG1197"><path id="SvgjsPath1196" style="fill:#c71e25;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 3.466,-1.869 -0.626,-1.255 1.256,-4.085 1.571,-3.454 1.571,-4.713 1.571,-1.886 c 0,0 23.563,46.809 29.846,71.628 0,0 2.512,7.539 0.626,12.566 -1.404,3.747 -8.045,9.409 -12.248,11.531 0.024,0.424 0.037,0.681 0.037,0.681 l -6.126,2.946 c 0,0 -0.125,-8.012 -1.885,-20.736 -2.002,-14.489 -3.165,-21 -7.187,-33.69 C 4.889,5.621 0.973,0.786 0,0"></path></g><g transform="translate(345.2408,133.4987)" id="SvgjsG1195"><path id="SvgjsPath1194" style="fill:#c71e25;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 0.628,-1.258 c 0,0 0.945,3.772 5.341,-1.883 4.4,-5.656 -1.254,-12.252 -1.254,-12.252 v -3.457 l 2.514,0.315 H 8.346 C 16.404,-7.105 20.01,8.912 21.37,16.716 16.096,15.723 10.957,21.341 9.896,32.984 8.483,48.535 8.956,53.248 8.956,53.248 -2.827,47.28 -3.141,42.409 -3.141,42.409 0.314,24.817 0,0 0,0"></path></g><g transform="translate(264.3932,340.0217)" id="SvgjsG1193"><path id="SvgjsPath1192" style="fill:#c71e25;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 C -4.659,-0.398 -8.291,-0.436 -8.291,-0.436 -5.573,-0.554 -2.794,-0.383 0,0"></path></g><g transform="translate(168.9254,394.4802)" id="SvgjsG1191"><path id="SvgjsPath1190" style="fill:#c71e25;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 0.159,0.11 c 6.131,-1.278 12.795,-3.912 16.805,-9.298 0,0 6.359,-8.245 8.716,-15.552 2.358,-7.303 17.437,-19.081 28.038,-22.615 10.605,-3.534 28.274,-8.012 33.461,-7.54 2.271,0.208 6.998,0.412 12.042,1.075 -1.254,-0.248 -2.504,-0.468 -3.754,-0.639 6.851,0.59 15.927,1.958 18.959,5.138 -0.138,-0.054 -0.28,-0.102 -0.419,-0.155 0.306,0.207 0.586,0.419 0.854,0.643 -0.113,-0.138 -0.231,-0.277 -0.353,-0.407 -0.025,-0.029 -0.058,-0.053 -0.082,-0.081 2.117,0.789 4.193,1.612 6.209,2.434 5.398,2.211 8.618,6.844 10.47,10.776 l 2.016,-2.312 c -1.515,-3.395 -4.397,-7.462 -9.893,-11.053 -12.254,-8.012 -32.988,-7.54 -32.988,-7.54 0,0 14.139,-1.652 29.214,2.826 15.079,4.478 21.679,16.964 21.679,16.964 l -2.733,2.63 0.143,0.199 -4.01,6.127 -8.008,-2.829 0.163,-0.179 c -2.584,-0.704 -5.06,-1.368 -5.585,-1.47 -0.786,-0.159 -1.262,-5.093 -2.98,-9.958 -5.496,-4.185 -18.735,-11.37 -40.842,-6.534 -30.158,6.595 -43.589,17.197 -49.008,29.214 -3.786,8.399 -9.766,18.748 -19.862,23.657 l 4.075,0.611 6.835,-3.534 c 0,0 7.116,-9.729 11.778,-21.678 3.774,-9.657 24.504,-16.728 29.218,-17.905 0,0 -19.557,9.425 -24.976,18.613 -5.419,9.189 -8.952,17.673 -8.952,17.673 l 4.95,-0.236 c 0,0 7.3,-13.903 13.19,-19.086 1.433,-1.262 4.251,-3.411 8.061,-5.74 l -1.461,0.322 c 0,0 3.635,-2.317 9.367,-4.841 l -0.728,-0.11 c 0,0 3.704,-1.522 9.306,-3.143 3.294,-1.046 6.876,-1.946 10.614,-2.508 9.147,-1.652 19.833,-2.173 28.367,1.393 -1.119,-2.219 -3.074,-4.568 -6.506,-6.107 -13.662,-6.127 -33.22,1.177 -33.22,1.177 0,0 14.31,-7.348 27.695,-6.31 18.597,0.952 21.663,11.236 21.386,18.727 l 3.693,-3.697 c 0,0 -1.649,10.601 -6.124,12.958 l -0.174,-0.606 c -0.017,0.96 -0.081,1.901 -0.175,2.752 0.293,2.17 0.586,4.45 0.586,4.45 l -12.018,7.539 -0.236,-8.48 1.889,-3.298 0.048,0.029 c -0.394,-1.934 -0.964,-4.092 -1.624,-4.665 -1.254,-1.099 -13.504,-4.084 -14.29,-4.084 -0.785,0 -3.614,-0.94 -3.614,-0.94 0,0 18.804,-3.24 24.882,10.385 -0.314,-4.332 -1.982,-7.328 -3.729,-9.282 -5.101,-3.611 -12.938,-5.394 -24.533,-4.873 -13.975,0.627 -27.316,8.264 -34.665,13.292 -5.101,3.961 -8.288,7.926 -11.749,13.569 l 3.298,0.94 -4.002,6.6 L 29.922,2.829 24.74,9.661 12.958,5.891 -1.413,10.133 -7.157,6.334 c -0.676,-0.219 -5.211,-1.783 -6.652,-4.4 L -16.02,0.472 -7.54,0.944 0,0"></path></g><g transform="translate(41.4561,458.3347)" id="SvgjsG1189"><path id="SvgjsPath1188" style="fill:#c71e25;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 C 0.237,-0.708 2.592,-1.18 2.592,-1.18 5.657,8.638 20.029,5.418 20.029,5.418 28.296,7.314 43.838,8.384 52.764,8.725 47.888,3.023 52.777,-2.044 52.777,-2.044 43.353,-1.416 17.123,-4.557 17.123,-4.557 l 3.612,3.771 C 11.625,1.411 4.712,-2.517 4.712,-2.517 c -5.181,0.63 2.83,-17.117 2.83,-17.117 l 0.368,0.052 c 0.02,-0.031 0.049,-0.07 0.071,-0.101 -0.284,0.031 -0.439,0.049 -0.439,0.049 l 1.49,-2.687 -0.235,0.175 c 0,0 0.188,-0.813 0.784,-2.172 l -0.863,-7.257 7.07,-21.203 c 0,0 -1.179,-42.41 -0.944,-47.125 0.238,-4.71 12.724,-15.313 12.724,-15.313 l 14.605,-7.541 c 0,0 -4.992,7.296 -9.027,26.31 -3.321,15.637 -0.322,32.419 0.548,40.37 2.592,-47.361 18.851,-69.035 18.851,-69.035 l 1.39,0.052 7.012,-0.288 c 0,0 -0.197,0.218 -0.542,0.651 l 9.809,5.474 c 0,0 -11.779,11.548 -21.208,36.757 -7.11,19.028 -8.051,31.073 -8.081,35.84 0.521,0.376 1.047,0.777 1.576,1.214 2.39,1.979 4.78,4.575 6.305,7.825 2.599,-10.289 7.27,-16.371 7.27,-16.371 0,0 8.148,-4.613 16.965,-17.201 7.794,-11.119 10.411,-19.171 10.761,-24.825 l 0.786,3.15 -0.236,7.069 -0.472,4.946 c 0,0 -3.534,6.126 -7.305,10.84 -3.77,4.714 -14.134,20.735 -17.673,27.333 -3.53,6.597 -6.907,18.455 -6.907,18.455 l -1.101,-2.906 c -0.131,-0.791 -0.289,-1.547 -0.472,-2.267 -0.03,0.563 -0.074,1.131 -0.153,1.717 0,0 0.048,-2.416 -1.11,-5.457 -1.254,-2.893 -2.874,-4.99 -4.421,-6.484 -1.569,-1.429 -3.584,-2.731 -6.176,-3.736 -12.159,-3.941 -19.006,3.741 -19.006,3.741 0,0 3.299,-1.888 10.369,-2.355 7.068,-0.473 14.371,5.181 14.371,5.181 0,0 -0.362,0.341 -0.895,0.813 2.735,2.162 5.457,5.728 7.178,11.595 0.057,0.018 0.105,0.039 0.162,0.053 0.795,0.065 1.254,0.105 1.254,0.105 l -0.048,0.379 c 6.628,3.4 4.129,15.485 4.129,15.485 9.738,5.658 5.028,16.965 5.028,16.965 l -1.861,0.048 c 0.686,0.022 1.075,0.03 1.075,0.03 l 2.359,8.249 -2.831,8.952 c 0,0 0.944,2.355 0.236,7.07 -0.707,4.709 -12.487,12.722 -12.487,12.722 0.472,0.311 6.283,-3.298 6.283,-3.298 l 1.726,1.568 -0.939,20.106 1.101,8.485 -0.162,2.355 c 0,0 -0.625,-5.811 -4.238,-7.384 -3.614,-1.568 -11.467,0.315 -11.939,4.715 -0.472,4.395 -0.314,16.65 -1.1,20.106 0,0 6.442,6.593 13.353,-0.629 0,0 -1.411,4.553 -1.883,4.867 -0.471,0.315 -8.329,3.771 -8.329,3.771 l -5.496,-1.416 c 0,0 -1.258,-2.984 -1.73,-3.923 -0.469,-0.944 -0.938,-2.202 -0.938,-3.141 0,-0.944 -0.158,-1.416 -0.158,-3.146 0,-1.726 -0.159,-2.041 -0.476,-4.238 -0.311,-2.198 -0.469,-2.512 -0.311,-3.456 0.159,-0.944 0.628,-4.4 0.628,-4.4 0,0 0,-2.04 -0.158,-2.67 -0.159,-0.628 -0.311,-2.669 -0.311,-2.669 0,0 0,-1.416 -0.159,-2.512 -0.158,-1.101 0,-3.299 0,-3.299 v -1.258 c 0,-1.101 -0.158,-2.984 -0.313,-3.77 -0.158,-0.783 -0.472,-1.101 -0.786,-2.198 -0.314,-1.101 0.313,-0.63 -0.628,-2.198 -0.944,-1.573 0.941,0.782 -0.944,-1.573 -1.886,-2.355 -2.358,-2.983 -2.358,-2.983 l -1.099,-0.63 -2.197,-0.939 -11.466,-5.815 c 0,0 -0.944,-0.158 -5.812,-2.355 l 9.266,-0.472 18.692,4.085 c 0,0 9.98,0 12.379,0.227 C 42.571,44.49 44.026,36.919 44.026,36.919 27.767,34.8 12.02,27.329 12.02,27.329 c 2.589,2.831 6.83,7.069 6.83,7.069 C 5.891,35.813 0,33.458 0,33.458 h -1.883 c 0,0 1.097,-15.71 1.097,-16.65 0,-0.944 3.457,5.496 8.17,5.653 4.595,0.154 7.225,-0.157 7.225,-0.157 9.66,2.119 40.339,4.343 40.339,4.343 -3.385,-3.172 -2.293,-9.944 -2.293,-9.944 -18.137,1.529 -37.216,-3.001 -37.887,-3.036 l 3.454,4.552 C 0.627,19.478 1.179,13.667 1.179,13.667 L -2.12,12.959 C -2.12,12.959 -0.234,0.708 0,0 m 22.307,-18.853 4.082,2.985 c -5.711,1.061 -10.56,-0.232 -13.122,-1.189 l -0.229,0.249 -0.628,0.162 c 0.483,2.691 1.847,5.483 5.967,6.278 4.086,0.783 7.071,-0.629 7.071,-0.629 l 24.821,2.04 c 0,0 -0.952,-5.168 0.184,-8.925 -18.811,-3.255 -28.146,-0.971 -28.146,-0.971"></path></g><g transform="translate(61.2481,74.28)" id="SvgjsG1187"><path id="SvgjsPath1186" style="fill:#c71e25;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,0 -13.669,12.252 -9.424,37.228 5.095,30.026 24.546,45.726 51.36,93.773 22.62,40.524 31.101,98.955 31.101,98.955 0.473,2.357 -5.656,0 -5.656,0 C 59.844,178.122 26.859,135.713 15.077,120.633 3.295,105.553 -23.09,69.271 -29.693,42.409 -36.286,15.551 -29.219,-4.712 -29.219,-4.712 -21.209,-7.07 0,0 0,0"></path></g><g transform="translate(90.9356,165.697)" id="SvgjsG1185"><path id="SvgjsPath1184" style="fill:#c71e25;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -11.973,-18.197 -31.101,-56.546 -25.917,-67.856 0,0 16.023,26.861 40.525,30.16 0,0 21.677,58.433 30.631,90.474 8.952,32.044 10.837,50.426 10.837,50.426 l -10.367,32.041 c 0,0 -1.413,-28.743 -9.897,-53.252 C 27.333,57.491 11.783,17.909 0,0"></path></g><g transform="translate(123.2135,354.1892)" id="SvgjsG1183"><path id="SvgjsPath1182" style="fill:#c71e25;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 -1.886,-3.297 c 0,0 4.44,3.104 3.927,11.458 L 0.943,3.769 0,0"></path></g><g transform="translate(360.5982,105.4978)" id="SvgjsG1181"><path id="SvgjsPath1180" style="fill:#c71e25;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 0.026,0.024 -0.004,0.04 Z"></path></g><g transform="translate(334.7945,80.2868)" id="SvgjsG1179"><path id="SvgjsPath1178" style="fill:#a91c22;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 0.826,-2.354 c 0,0 1.886,-1.415 2.475,-1.532 0.589,-0.12 -0.114,-1.061 -0.114,-1.061 0,0 -0.712,-1.883 -1.064,-2.472 -0.356,-0.59 -0.471,-2.24 -0.356,-3.064 0.119,-0.825 1.652,-2.71 1.885,-3.062 0.238,-0.355 2.123,-1.061 2.475,-1.061 0.355,0 0.707,-1.06 0.589,-1.649 -0.119,-0.59 -1.178,-2.593 -1.178,-2.593 0,0 0.352,-2.943 0.352,-3.416 0,-0.471 2.478,-3.65 2.478,-3.65 0,0 3.886,1.059 4.237,1.059 0.356,0 7.542,4.829 7.542,4.829 0,0 6.932,6.129 7.706,6.778 -0.788,-0.608 -8.91,-5.6 -9.829,-5.6 -0.94,0 -2.707,1.414 -3.533,3.535 -0.822,2.12 0.707,4.24 0.707,4.24 l 2,2.24 5.187,3.651 c 0,0 2.355,2.12 2.944,2.592 0.427,0.339 1.943,3.229 2.761,4.83 -2.571,-3.44 -6.057,-4.712 -6.057,-4.712 l -8.839,-5.184 c -2.589,1.65 -4.592,6.715 -4.592,6.715 l 2.474,2.592 4.479,3.064 c 0,0 4.473,2.944 6.592,4.24 2.124,1.297 2.945,4.593 2.945,4.593 -2,-3.179 -9.537,-4.83 -9.537,-4.83 L 7.305,2.947 C 5.187,3.771 3.652,8.012 3.652,8.601 c 0,0.589 2.123,2.71 2.123,2.71 3.182,-0.118 6.716,2.591 6.716,2.591 l 1.767,0.707 c 0,0 1.648,0.942 2.589,1.651 0.945,0.704 1.766,2.121 1.766,2.121 -1.999,-1.534 -3.177,-1.062 -4.355,0.354 -1.178,1.411 -1.534,4.12 -1.534,5.536 0,1.412 2.237,3.18 2.237,3.18 1.178,4.24 3.301,6.598 3.301,6.598 l -1.767,-0.12 -1.652,-1.414 -1.411,-1.648 -1.53,-3.651 -1.648,-1.182 -1.652,-1.058 -1.297,-2.121 -0.47,-1.293 c 0,0 0.589,-2.358 0.589,-2.712 0,-0.352 1.533,-1.413 1.533,-1.413 0,0 -0.826,-0.825 -1.415,-1.415 -0.589,-0.585 -1.767,-1.178 -2.83,-2 C 3.652,13.196 2.355,12.017 2.355,12.017 L -0.471,8.718 c 0,0 -0.826,-1.176 -1.296,-1.766 -0.47,-0.589 -0.47,-2.236 -0.47,-2.236 0,0 0.47,-1.417 1.177,-2.003 C -0.352,2.123 0,0 0,0"></path></g><g transform="translate(283.8277,345.0822)" id="SvgjsG1177"><path id="SvgjsPath1176" style="fill:#a91c22;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,0 12.092,3.77 16.806,15.395 0,0 3.77,-3.93 3.77,-4.084 0,-0.159 -3.299,-10.839 -18.535,-16.651 0,0 14.61,2.041 23.562,17.118 l -5.971,8.639 c 0,0 -10.05,-1.256 -13.507,-3.611 0,0 2.2,-8.798 -6.125,-16.806"></path></g><g transform="translate(381.3287,187.4948)" id="SvgjsG1175"><path id="SvgjsPath1174" style="fill:#a91c22;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 -3.649,1.647 c 0,0 0.351,-6.597 -1.06,-14.726 -2.616,-15.038 -4.912,-19.278 -5.508,-20.173 5.544,7.373 7.758,15.752 9.161,21.586 C 0.355,-5.774 0,0 0,0"></path></g><g transform="translate(268.1187,369.5837)" id="SvgjsG1173"><path id="SvgjsPath1172" style="fill:#a91c22;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,0 8.795,3.143 10.994,11.464 0,0 3.613,-4.239 3.14,-10.681 0,0 2.199,7.855 1.417,10.681 0,0 -4.713,6.599 -10.999,7.229 L 4.869,6.751 V 4.712 L 0,0"></path></g><g transform="translate(344.7691,135.8532)" id="SvgjsG1171"><path id="SvgjsPath1170" style="fill:#a91c22;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 0.315,-2.513 2.829,-0.628 c 2.352,20.419 -0.32,49.48 -0.32,49.48 -3.135,-1.886 -5.963,-7.07 -5.963,-7.07 0,0 0.315,-2.513 1.256,-8.167 C -0.941,25.445 0,0 0,0"></path></g><g transform="translate(365.6646,96.6647)" id="SvgjsG1169"><path id="SvgjsPath1168" style="fill:#a91c22;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,0 26.623,50.187 27.566,82.936 0,0 -2.519,2.39 -4.7,4.043 -0.046,-0.509 -0.105,-1.033 -0.17,-1.577 0.051,0.123 0.101,0.239 0.157,0.361 C 21.084,68.329 9.708,25.686 -1.177,5.428 -1.25,5.522 -1.347,5.635 -1.182,5.419 0.014,3.687 0.349,2.219 0,0"></path></g><g transform="translate(363.4234,83.5856)" id="SvgjsG1167"><path id="SvgjsPath1166" style="fill:#a91c22;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,0 -0.221,-0.435 -0.543,-1.06 0.146,0.192 0.287,0.385 0.424,0.59 C 2.472,3.419 0,0 0,0"></path></g><g transform="translate(277.856,360.6316)" id="SvgjsG1165"><path id="SvgjsPath1164" style="fill:#a91c22;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,0 1.568,0.784 2.668,1.41 0,0 -0.942,-8.167 -5.812,-12.407 0,0 8.333,4.299 8.4,14.909 L 5.812,2.667 6.753,7.537 10.839,5.023 6.596,14.605 3.929,6.911 4.231,6.213 c -1.973,-2.151 -8.12,-7.001 -23.395,-7.001 0,0 8.482,-2.514 19.164,0.788"></path></g><g transform="translate(39.4142,470.4255)" id="SvgjsG1163"><path id="SvgjsPath1162" style="fill:#a91c22;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 0.159,-2.197 v -1.886 c 0,-0.472 0.468,-2.04 0.468,-2.04 0,0 1.573,-4.712 1.259,-5.183 -0.314,-0.472 1.727,-4.241 1.727,-4.241 0,0 2.829,-6.755 2.829,-7.227 0,-0.472 1.725,-7.227 1.725,-7.227 l 2.204,-5.494 0.31,-2.987 c 0,0 0.629,-3.455 0.629,-3.926 0,-0.472 2.826,-10.053 2.826,-10.053 l 2.987,-10.524 -0.158,-6.756 -0.157,-23.089 -0.786,-13.979 1.729,-8.484 12.093,-13.979 3.535,-0.629 c 0,0 -0.093,0.193 -0.254,0.556 l 4.732,-2.443 c -14.253,20.788 -8.582,66.815 -7.917,71.809 2.681,0.009 8.296,0.569 11.448,4.769 0,0 -17.196,-4.95 -23.089,8.247 0,0 6.833,-6.599 19.32,-4.24 0,0 7.933,2.197 10.134,5.026 0,0 -10.053,-5.969 -16.651,2.197 0,0 8.638,0.629 10.681,6.755 l 12.092,1.258 4.245,3.298 0.472,5.498 -0.472,6.283 -3.769,-0.157 c 0,0 -1.729,-4.397 0.468,-10.996 0,0 -9.267,-1.886 -20.259,-2.201 -10.996,-0.314 -13.668,1.73 -13.668,1.73 l 7.223,4.397 c 0,0 -9.892,0.157 -12.564,-3.612 l -1.101,4.398 c 0,0 1.729,3.297 5.813,4.712 0,0 5.969,-0.629 13.039,0.472 7.066,1.1 25.29,2.354 25.29,2.354 l 4.24,3.773 2.358,5.651 -0.79,4.559 -1.854,3.406 c 0.633,0.121 0.915,0.205 0.915,0.205 0,0 2.197,3.14 2.197,3.926 0,0.787 -0.315,6.127 -0.315,6.127 l -0.943,3.455 -2.668,2.043 -2.774,0.653 c 0,0 -2.74,-3.829 -1.64,-12.785 0,0 -28.256,0.193 -41.767,-3.262 0,0 1.729,5.184 5.498,8.01 0,0 -13.195,-0.943 -16.65,-6.28 L 3.141,3.616 c 0,0 0.786,5.027 4.399,6.441 l 9.111,0.315 c 0,0 29.372,3.611 30.001,3.611 0.629,0 11.625,0.629 11.625,0.629 0,0 4.394,-0.315 4.241,0.629 -0.158,0.939 -2.987,12.721 -2.987,12.721 l -6.752,4.555 -2.043,0.629 c 0,0 -4.563,-1.871 -2.157,-10.831 0,0 -29.255,-6.917 -35.701,-9.432 0,0 3.458,6.284 7.856,9.424 0,0 -8.952,-1.101 -14.922,-4.083 0,0 -3.77,1.571 -2.826,5.183 L 0,18.852 c 0,0 0.159,-3.93 0.314,-4.397 0.159,-0.472 0.314,-2.987 0.472,-3.616 0.158,-0.629 0.469,-3.14 0.469,-3.14 L 0.628,5.184 c 0,0 0.158,-1.411 0,-1.883 C 0.473,2.83 0,0 0,0 m 7.226,-9.424 c 0,0 2.513,4.555 13.666,2.83 0,0 24.66,3.297 32.355,3.454 4.571,0.093 7.308,0.407 8.779,0.649 l -3.434,-0.963 -1.274,0.306 c 0,0 -3.713,-4.917 0.33,-12.56 0,0 -29.844,-1.725 -40.997,-4.083 l 5.966,6.913 c 0,0 -7.852,0.471 -13.506,-4.398 l -2.829,3.14 z"></path></g><g transform="translate(54.9625,72.5495)" id="SvgjsG1161"><path id="SvgjsPath1160" style="fill:#a91c22;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -15.549,20.267 -16.805,52.623 23.721,102.101 40.523,49.476 51.832,128.174 51.832,128.174 l -2.827,0.472 c -1.883,-25.919 -29.684,-79.639 -29.684,-79.639 0,0 -39.113,-49.476 -57.02,-83.879 C -31.888,32.832 -24.348,-2.04 -24.348,-2.04 -19.163,-5.34 0,0 0,0"></path></g><g transform="translate(76.1681,390.3176)" id="SvgjsG1159"><path id="SvgjsPath1158" style="fill:#a91c22;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,0 2.909,-39.819 17.357,-57.096 l 15.316,2.589 c 0,0 -19.319,10.368 -32.673,54.507"></path></g><g transform="translate(187.2257,383.8767)" id="SvgjsG1157"><path id="SvgjsPath1156" style="fill:#a91c22;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,0 -5.032,10.72 -13.708,14.728 0,0 2.885,1.059 5.852,1.294 l 7.539,-3.769 c 0,0 5.813,-6.283 9.896,-16.179 0,0 -2.946,11.172 -3.73,13.055 l 6.95,-0.235 1.961,-3.082 c 0,0 5.656,-13.194 13.983,-19.007 8.323,-5.812 11.779,-7.852 11.779,-7.852 0,0 -18.063,11.936 -24.817,28.903 l 3.613,0.941 -2.514,5.653 -5.813,-1.256 -4.868,6.755 -11.469,-3.142 -8.48,2.357 -5.969,0.471 c 0,0 -9.896,-2.043 -13.038,-8.798 0,0 21.657,4.066 32.833,-10.837"></path></g><g transform="translate(105.5435,191.6179)" id="SvgjsG1155"><path id="SvgjsPath1154" style="fill:#a91c22;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -8.012,-15.081 -44.766,-65.972 -41.468,-93.777 0,0 18.379,28.274 41.938,29.687 0,0 35.815,94.718 40.998,139.957 L 32.514,106.025 24.505,66.442 C 24.505,66.442 8.012,15.077 0,0"></path></g><g transform="translate(71.9303,502.6301)" id="SvgjsG1153"><path id="SvgjsPath1152" style="fill:#a91c22;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,0 2.044,0.157 10.524,2.042 8.482,1.884 15.236,-5.186 15.236,-5.186 0,0 -0.629,2.829 -0.314,3.458 0.314,0.626 -0.941,2.515 -0.783,3.297 0.153,0.787 -0.158,3.143 0,4.556 0.153,1.412 -0.787,4.398 -0.787,4.398 0,0 0,3.454 0.315,4.241 0.314,0.787 0.94,5.185 0.94,5.185 l 0.629,4.555 -0.314,7.852 C 24.978,29.686 24.348,27.801 21.205,24.662 18.066,21.519 8.953,24.505 9.742,32.199 10.524,39.898 8.404,44.056 9.7,47.711 12.072,54.413 21.205,47.75 21.205,47.75 18.376,53.561 11.936,56.232 9.738,56.389 7.542,56.547 5.498,55.603 3.768,53.403 2.044,51.204 2.513,33.301 2.513,32.514 c 0,-0.787 -0.159,-6.44 -0.159,-6.44 L 0.472,13.194 -1.414,7.069 2.044,6.597 3.613,5.968 C -4.399,6.125 -12.565,-1.102 -12.565,-1.102 -5.97,2.356 0,0 0,0"></path></g><g transform="translate(362.7154,67.0935)" id="SvgjsG1151"><path id="SvgjsPath1150" style="fill:#a91c22;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 -0.07,-0.055 C -0.009,0 0.026,0.027 0,0"></path></g><g transform="translate(370.9615,154.0349)" id="SvgjsG1149"><path id="SvgjsPath1148" style="fill:#a91c22;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 C 0.053,0.067 0.098,0.139 0.15,0.207 0.053,0.06 0,0 0,0"></path></g><g transform="translate(146.38,270.7815)" id="SvgjsG1147"><path id="SvgjsPath1146" style="fill:#8a191d;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 -0.941,-6.597 -6.598,4.398 c 0,0 -6.909,-29.216 -20.732,-64.087 -13.826,-34.871 -28.59,-53.091 -37.07,-71.311 -8.483,-18.222 -7.538,-23.876 -7.538,-23.876 l -8.171,-12.566 c 0,0 -2.825,16.021 5.34,31.099 8.17,15.082 28.274,50.579 28.274,50.579 0,0 13.826,27.646 18.224,41.784 4.395,14.136 14.132,42.723 16.65,58.116 2.512,15.396 3.766,25.133 3.766,25.133 L 0,0"></path></g><g transform="translate(212.1598,360.0837)" id="SvgjsG1145"><path id="SvgjsPath1144" style="fill:#ee2834;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 C 12.837,-8.837 32.516,-12.489 32.516,-12.489 19.792,-7.659 0,0 0,0"></path></g><g transform="translate(251.9742,366.5573)" id="SvgjsG1143"><path id="SvgjsPath1142" style="fill:#ee2834;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 C -23.091,2.24 -37.225,14.373 -37.225,14.373 -22.262,-1.296 0,0 0,0"></path></g><g transform="translate(217.2267,365.6179)" id="SvgjsG1141"><path id="SvgjsPath1140" style="fill:#ee2834;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,0 10.994,-10.289 30.864,-13.078 4.903,-0.689 12.956,-1.059 19.317,1.178 0,0 -8.716,-2.237 -29.45,2.944 C 8.83,-5.981 0,0 0,0"></path></g><g transform="translate(187.8277,395.299)" id="SvgjsG1139"><path id="SvgjsPath1138" style="fill:#ee2834;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 5.726,-7.28 c -0.745,2.92 -1.894,5.606 -2.439,6.813 h 7.729 l 1.887,-2.12 4.947,1.177 -2.237,4.243 -5.303,-1.18 -4.828,7.305 c 0,0 -8.484,-0.471 -11.311,-4.241 C -6.065,4.405 -1.691,1.214 0,0"></path></g><g transform="translate(306.2076,356.467)" id="SvgjsG1137"><path id="SvgjsPath1136" style="fill:#ee2834;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,0 -2.197,-7.146 -7.541,-10.447 0,0 7.228,2.828 11.151,11.155 l -6.044,9.03 c 0,0 -7.858,-0.471 -12.725,-3.532 l -0.077,-2.043 c 0,0 9.974,1.726 10.051,1.726 C -5.107,5.889 0,0 0,0"></path></g><g transform="translate(356.2379,102.5534)" id="SvgjsG1135"><path id="SvgjsPath1134" style="fill:#ee2834;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 1.417,1.651 c 0,0 5.772,-3.651 2.588,-9.777 l 2.124,0.824 c 0,0 3.06,-4.006 2.473,-6.363 -0.588,-2.356 -2.121,-6.36 -2.121,-6.36 0,0 2.121,3.178 2.356,3.178 0.236,0 2.476,-5.534 2.476,-7.42 0,-1.884 -2.24,-6.952 -4.716,-10.368 -2.472,-3.417 4.716,3.654 4.716,3.654 l 2.473,4.123 c 0,0 0.472,2.591 0.352,3.651 -0.117,1.061 -0.825,3.77 -1.176,4.595 -0.352,0.824 -1.296,2.003 -1.181,2.591 0.098,0.47 0.561,1.535 0.745,2.247 l 0.2,-0.598 c 0,0 15.785,29.688 20.497,43.826 4.713,14.137 11.545,34.869 11.309,37.462 -0.125,1.375 -2.111,4.145 -4.194,6.511 l 0.306,1.028 c 0,0 -9.777,8.601 -14.605,9.898 l -0.005,-0.06 -1.296,0.649 C 22.854,59.808 13.351,50.266 13.351,50.266 25.349,60.105 27.571,77.367 27.96,82.068 29.205,81.364 32.589,79.323 35.645,76.371 35.464,71.039 31.69,50.775 25.562,32.87 19.78,15.952 10.018,-6.24 10.018,-6.243 l 0.893,-2.691 -0.542,0.454 c 0,0 -0.235,0.824 -0.708,1.178 -0.472,0.352 -0.472,0.824 -0.472,0.824 l 0.236,1.176 c 0,0 -0.467,0.59 -0.236,1.534 C 9.425,-2.827 8.722,-2 8.485,-1.53 8.249,-1.059 8.129,0.827 7.069,1.062 6.009,1.299 2.829,3.654 2.829,3.654 l 0.352,2.003 c 0,0 -0.352,0.469 -0.588,1.296 C 2.356,7.777 1.885,9.19 1.885,9.19 l -2.237,1.179 C -0.352,10.369 1.417,4.36 0,0"></path></g><g transform="translate(287.9879,367.9367)" id="SvgjsG1133"><path id="SvgjsPath1132" style="fill:#ee2834;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 -3.612,6.203 -4.475,2.511 C -4.238,2.511 0,0 0,0"></path></g><g transform="translate(280.8404,380.5036)" id="SvgjsG1131"><path id="SvgjsPath1130" style="fill:#ee2834;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,0 1.962,-3.455 2.2,-8.012 0.235,-4.557 0.473,8.872 0.473,8.872 0,0 -10.525,8.012 -10.446,5.577 C -7.766,6.191 -2.669,3.139 0,0"></path></g><g transform="translate(163.9781,395.7361)" id="SvgjsG1129"><path id="SvgjsPath1128" style="fill:#ee2834;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 4.71,-0.468 14.371,-3.77 14.371,-3.77 -3.329,3.257 -8.494,5.871 -9.479,6.353 0.93,0.944 1.86,1.83 2.175,1.933 0.688,0.229 5.799,0.9 7.827,0.4 C 12.89,5.501 3.181,8.405 3.181,8.405 L -4.006,4.872 -11.309,-0.667 0.007,0.007 0,0"></path></g><g transform="translate(41.4552,471.0564)" id="SvgjsG1127"><path id="SvgjsPath1126" style="fill:#ee2834;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -1.883,-4.397 2.831,-15.864 2.831,-15.864 l 0.94,3.14 c 1.261,5.028 8.327,5.968 8.327,5.968 C 11.784,-2.042 19.635,5.89 19.635,5.89 12.341,3.632 7.82,0.336 5.55,-1.678 2.815,0.074 1.416,2.355 1.416,2.355 1.814,-0.437 2.835,-2.25 3.817,-3.403 3.794,-3.43 3.771,-3.458 3.771,-3.458 3.771,-3.458 0.228,0.522 0,0"></path></g><g transform="translate(39.7271,475.6101)" id="SvgjsG1125"><path id="SvgjsPath1124" style="fill:#ee2834;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 0.63,-0.157 c 0.47,0.313 4.869,4.395 6.596,5.181 1.726,0.787 5.024,2.674 5.024,2.674 0,0 4.086,6.75 9.741,9.893 0,0 -9.853,-2.922 -15.644,-6.406 -0.581,2.095 -1.714,7.71 1.822,10.491 L 21.361,22.933 10.055,25.132 5.812,23.246 3.141,20.577 c 0,0 -0.183,-0.923 -0.36,-1.766 C 2.249,17.687 2,16.254 2.278,14.372 2.353,13.862 2.461,13.385 2.592,12.927 l -0.706,1.365 -2.2,-5.025 c 0,0 0.944,-3.299 0.944,-3.929 C 0.63,4.711 0,0 0,0"></path></g><g transform="translate(48.3678,70.6657)" id="SvgjsG1123"><path id="SvgjsPath1122" style="fill:#ee2834;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,0 -13.193,14.453 -9.738,38.644 2.345,16.42 5.97,31.65 27.645,63.457 21.495,31.543 46.807,62.518 52.227,84.115 5.226,20.817 5.182,22.15 5.182,22.15 0,0 -16.019,-39.821 -26.152,-54.431 C 39.033,139.33 14.529,105.4 5.578,92.204 -3.376,79.011 -16.338,51.443 -17.986,39.898 -19.635,28.356 -19.872,8.093 -16.81,-0.391 c 0,0 12.099,-1.257 16.81,0.391"></path></g><g transform="translate(67.8419,442.3073)" id="SvgjsG1121"><path id="SvgjsPath1120" style="fill:#ee2834;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -5.469,-0.965 -9.281,-2.705 -10.842,-3.714 -1.042,0.818 -2.124,2.043 -2.588,3.794 0,0 -0.154,-4.792 4.086,-6.912 l 0.169,0.318 c 1.663,-1.323 3.524,-2.753 3.524,-2.753 -1.258,1.177 -1.495,3.926 -1.495,3.926 C -6.832,-4.397 0,0 0,0"></path></g><g transform="translate(92.3497,334.0857)" id="SvgjsG1119"><path id="SvgjsPath1118" style="fill:#ee2834;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 6.909,-0.158 C -8.641,16.02 -15.554,48.222 -15.554,48.222 -12.253,17.907 0,0 0,0"></path></g><g transform="translate(46.7203,459.4328)" id="SvgjsG1117"><path id="SvgjsPath1116" style="fill:#ee2834;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -0.73,-2.37 -0.177,-4.476 0.775,-6.176 l -1.17,0.992 c 0,0 -1.256,-0.628 -1.098,-1.102 0.158,-0.47 2.2,-9.422 2.2,-9.422 0,0 2.197,-5.97 2.355,-6.598 0.158,-0.628 0.944,-4.243 1.098,-4.871 0.023,-0.091 0.241,-0.448 0.621,-0.978 L 4.16,-32.91 10.525,-52.937 9.581,-70.135 c 0,0 0.944,-31.574 1.41,-34.399 0.474,-2.829 10.134,-11.074 10.134,-11.074 -9.426,17.905 -5.654,62.201 -5.654,62.201 l -1.651,9.897 5.183,-0.474 c -5.653,2.359 -8.012,8.249 -8.012,8.249 l -1.678,2.257 c 3.488,-3.506 8.299,-7.196 13.068,-7.361 0,0 -8.956,6.123 -10.525,15.862 0,0 -7.696,2.983 -5.183,8.953 0,0 3.066,8.64 8.877,14.139 0,0 -6.3,-2.087 -10.024,-4.972 C 1.181,-4.804 0.075,0.252 0,0"></path></g><g transform="translate(78.0562,527.7599)" id="SvgjsG1115"><path id="SvgjsPath1114" style="fill:#ee2834;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 C -0.786,8.483 0.314,12.727 0.158,15.553 0,18.379 -0.494,25.155 2.513,26.704 7.381,29.22 13.979,26.232 17.12,19.792 c 0,0 -2.984,6.129 -6.435,9.113 -3.461,2.983 -8.8,2.511 -10.213,1.255 -1.413,-1.255 -2.985,-1.885 -2.985,-3.924 0,-2.043 -0.472,-4.874 -0.472,-5.814 0,-0.941 0.158,-3.771 0.158,-3.771 V 6.597 c 0,-0.783 -0.469,-9.265 -0.469,-9.265 0,0 -1.259,-5.185 -1.416,-5.968 -0.159,-0.787 -1.886,-5.027 -2.042,-5.499 -0.158,-0.472 -1.571,-2.826 -1.571,-2.826 l -1.57,-2.043 5.496,0.783 c 0,0 5.185,9.742 4.399,18.221"></path></g><g transform="translate(366.2506,96.3093)" id="SvgjsG1113"><path id="SvgjsPath1112" style="fill:#ee2834;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 -0.825,2.475 Z"></path></g><g transform="translate(178.8697,400.6496)" id="SvgjsG1111"><path id="SvgjsPath1110" style="fill:#ee2834;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 C 0.381,-0.112 0.486,-0.139 0.187,-0.044 0.126,-0.027 0.058,-0.014 0,0"></path></g><g transform="translate(174.8136,100.4333)" id="SvgjsG1109"><path id="SvgjsPath1108" style="fill:#bc1f24;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,0 -1.411,-10.287 5.5,-10.601 6.912,-0.314 9.229,8.718 9.229,8.718 C 14.019,-13.311 7.766,-14.642 4.244,-13.428 -2.941,-10.955 0,0 0,0 m 49.126,-25.447 c 3.894,-0.558 10.37,1.887 10.015,12.136 0,0 -1.415,-5.891 -5.655,-7.893 -4.24,-2.004 -12.84,-0.235 -12.369,10.603 0,0 -4.437,-13.054 8.009,-14.846 m 43.472,-8.599 c 0,0 -36.522,-1.058 -50.067,2.003 -13.549,3.064 -35.107,7.067 -48.656,16.847 0,0 -3.411,1.356 -5.573,4.022 -1.496,1.848 -2.398,4.32 -1.142,7.405 0,0 5.197,-10.115 27.295,-18.142 23.99,-8.719 50.892,-8.915 63.616,-8.798 0,0 -11.938,14.451 -1.142,26.94 0,0 -2.944,-5.067 -2.004,-10.366 0.945,-5.302 7.074,-14.726 17.673,-19.911 m 74.169,34.649 c 0,0 -5.339,-0.524 -8.377,8.273 0,0 -0.107,-9.425 8.163,-12.044 l 1.782,0.628 z"></path></g><g transform="translate(162.7789,89.4987)" id="SvgjsG1107"><path id="SvgjsPath1106" style="fill:#bc1f24;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 C -0.133,0.099 -0.152,0.115 0,0"></path></g><g transform="translate(167.2848,86.2478)" id="SvgjsG1105"><path id="SvgjsPath1104" style="fill:#bc1f24;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 C -0.422,0.304 -0.805,0.582 -1.16,0.838 -0.751,0.541 -0.355,0.257 0,0"></path></g><g transform="translate(163.1124,89.2585)" id="SvgjsG1103"><path id="SvgjsPath1102" style="fill:#bc1f24;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 C -0.146,0.106 -0.256,0.187 -0.336,0.24 -0.263,0.19 -0.146,0.106 0,0"></path></g><g transform="translate(231.1246,104.9099)" id="SvgjsG1101"><path id="SvgjsPath1100" style="fill:#ef3728;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 11.782,-0.707 30.395,-1.413 30.395,-1.413 0,0 -1.653,-1.414 -3.77,-2.593 -2.122,-1.179 -31.102,-1.883 -56.075,4.479 -9.703,2.471 -16.267,5.26 -20.678,7.749 -1.988,-1.927 -5.952,-7.223 -11.523,-24.244 0,0 -8.875,5.735 -7.62,9.896 2.846,9.42 11.074,23.091 11.074,23.091 l 0.488,-0.404 c 1.276,1.341 2.341,1.345 2.341,1.345 C -42.176,5.182 -11.777,0.707 0,0 m 104.716,37.187 c -0.398,0.166 -0.76,0.275 -1.048,0.275 0,0 1.889,-7.539 -0.471,-12.014 C 100.843,20.971 85.762,7.539 85.762,7.539 l 4.951,-1.885 c 0,0 18.742,13.608 18.729,24.905 2.157,-2.685 5.679,-9.106 6.952,-23.254 l 1.884,2.827 c 0,0 -2.661,23.483 -13.562,27.055"></path></g><g transform="translate(178.7418,328.1154)" id="SvgjsG1099"><path id="SvgjsPath1098" style="fill:#f5f014;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,0 8.167,-11.781 11.624,-18.218 3.456,-6.44 10.523,-19.636 14.138,-29.376 3.614,-9.739 8.23,-33.813 1.316,-48.263 l 1.138,-1.138 c 0,0 10.36,18.95 -1.828,51.128 C 16.204,-18.971 1.727,0.315 1.727,0.315 L 0,0"></path></g><g transform="translate(163.6134,235.9177)" id="SvgjsG1097"><path id="SvgjsPath1096" style="fill:#f5f014;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,0 15.544,-16.926 37.403,-1.766 l -1.136,1.136 c 0,0 -13.027,-11.155 -26.785,-4.041 -2.803,1.445 -8.468,4.8 -10.366,7.198 L 0,0"></path></g><g transform="translate(189.7701,192.2028)" id="SvgjsG1095"><path id="SvgjsPath1094" style="fill:#f5f014;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,0 13.897,0.885 27.166,-9.349 13.267,-10.234 21.605,-26.408 27.042,-41.317 5.429,-14.909 8.334,-37.904 8.334,-37.904 l 1.139,0.126 c 0,0 -2.022,20.592 -8.591,38.663 C 48.518,-31.712 31.716,2.15 -1.136,1.392 L 0,0"></path></g><g transform="translate(317.9137,114.3356)" id="SvgjsG1093"><path id="SvgjsPath1092" style="fill:#f5f014;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,0 5.022,46.338 4.238,56.547 l 0.158,5.025 0.785,-0.941 c 0,0 0,-38.799 -4.243,-60.947 L 0,0"></path></g><g transform="translate(256.5934,19.0437)" id="SvgjsG1091"><path id="SvgjsPath1090" style="fill:#f5f014;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 C 0.539,0.033 1.078,0.062 1.613,0.102 2.111,4.579 4.236,26.312 0.995,46.83 L 0.128,45.79 C 0.128,45.79 2.491,13.347 0,0"></path></g><g transform="translate(286.4762,22.8337)" id="SvgjsG1089"><path id="SvgjsPath1088" style="fill:#f5f014;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 -0.766,10.606 -2.65,9.035 -1.9,-0.368 c 0.635,0.12 1.267,0.24 1.9,0.368"></path></g><g transform="translate(204.9352,230.906)" id="SvgjsG1087"><path id="SvgjsPath1086" style="fill:#713b19;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 0.25,0.315 c 5.334,6.665 6.252,20.942 2.526,39.17 -4.925,24.058 -27.413,56.57 -27.641,56.896 l -0.77,-0.537 C -25.413,95.518 -3.033,63.166 1.851,39.295 5.462,21.632 4.7,7.802 -0.239,1.224 L -4.579,3.702 -4.832,3.473 C -5.001,3.317 -22.339,-11.743 -42.213,6.298 l -0.634,-0.7 c 7.642,-6.933 14.925,-9.113 21.074,-9.113 9.253,0.004 15.926,4.953 17.305,6.066 L 0,0"></path></g><g transform="translate(256.0953,19.0144)" id="SvgjsG1085"><path id="SvgjsPath1084" style="fill:#713b19;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 C 0.319,0.019 0.643,0.035 0.962,0.057 2.229,7.389 2.942,20.909 0.95,45.765 L 0.011,45.687 C 2.033,20.479 1.232,7.072 0,0"></path></g><g transform="translate(216.5582,183.5915)" id="SvgjsG1083"><path id="SvgjsPath1082" style="fill:#713b19;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -14.041,10.355 -26.75,9.136 -26.872,9.122 l 0.101,-0.938 c 0.126,0.01 12.519,1.186 26.276,-8.989 12.728,-9.414 29.26,-30.744 35.721,-78.881 l 0.933,0.125 C 29.646,-31.039 12.902,-9.513 0,0"></path></g><g transform="translate(295.5406,47.6999)" id="SvgjsG1081"><path id="SvgjsPath1080" style="fill:#713b19;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 0.758,-0.559 c 3.954,5.368 7.528,12.077 10.624,19.947 l -0.875,0.346 C 7.443,11.938 3.906,5.3 0,0"></path></g><g transform="translate(322.1529,194.153)" id="SvgjsG1079"><path id="SvgjsPath1078" style="fill:#713b19;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 -0.939,-0.044 c 0.016,-0.406 1.862,-40.81 -3.945,-80.94 l 0.931,-0.134 C 1.871,-40.9 0.017,-0.403 0,0"></path></g><g transform="translate(286.9146,22.9167)" id="SvgjsG1077"><path id="SvgjsPath1076" style="fill:#713b19;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 C 0.027,0.008 0.055,0.014 0.086,0.019 -0.472,7.002 -0.873,11.458 -0.889,11.624 L -1.828,8.912 C -1.815,8.762 -1.494,5.326 -1.026,-0.199 -0.685,-0.128 -0.338,-0.071 0,0"></path></g><g transform="translate(267.8453,437.5617)" id="SvgjsG1075"><path id="SvgjsPath1074" style="fill:#8e1c1e;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 C -0.477,-2.294 5.064,-2.506 5.064,-2.506 2.437,-1.534 1.645,-0.431 1.729,0 2.125,2.087 4.396,4.32 4.396,4.32 4.296,4.235 0.588,2.825 0,0"></path></g><g transform="translate(265.3502,459.0998)" id="SvgjsG1073"><path id="SvgjsPath1072" style="fill:#371714;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 -4.367,1.48 -4.482,1.434 c -0.031,-0.012 -2.83,-1.153 -7.512,-1.496 -3.384,-0.247 -5.912,1.638 -6.987,2.621 2.597,3.511 7.688,4.764 14.398,3.477 1.673,-1.6 5.601,-7.1 5.601,-7.1 0,0 -1.785,4.556 -2.953,7.192 -0.124,0.266 -0.266,0.551 -0.419,0.825 1.576,0.901 2.608,2.015 2.608,2.015 -0.721,-0.447 -2.339,-0.535 -3.596,-0.531 -0.335,0.952 -3.137,7.226 -16.04,-1.666 0,0 6.833,3.924 10.367,4.082 2.602,0.12 3.711,-1.38 4.117,-2.182 -4.706,1.87 -11.078,-0.396 -14.129,-2.37 -3.177,-2.058 -5.897,-0.947 -6.009,-1.063 l 3.064,-2.945 c 0.844,-0.867 5.495,-3.322 9.354,-3.322 0.227,0 0.459,0.008 0.693,0.027 4.356,0.32 7.092,1.287 7.686,1.519 L 0,0"></path></g><g transform="translate(204.0948,456.6135)" id="SvgjsG1071"><path id="SvgjsPath1070" style="fill:#8e1c1e;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0.918,1.366 1.194,3.057 0.551,4.652 -1.171,2.92 -3.248,6.987 -6.528,8.38 -1.308,0.558 -2.635,0.386 -3.749,-0.482 -2.238,-1.76 -2.958,-6.596 -2.273,-10.828 0,0 -0.222,7.756 2.985,10.189 0.581,0.443 1.392,0.348 2.119,0.176 3.004,-0.704 5.135,-5.081 6.184,-7.538 -1.707,0.528 -4.397,0.54 -6.421,-1.534 -3.336,-3.417 1.84,-7.859 1.84,-7.859 -0.038,0.046 -3.611,4.653 -1.243,7.086 1.986,2.036 5.23,1.378 6.08,1.091 C -0.111,1.955 -0.754,1.14 -0.869,0.953 -2.085,-1.044 -2.644,-2.682 -1.924,-4.614 -1.297,-6.29 2.23,-8.039 2.23,-8.039 1.68,-7.384 -0.551,-5.398 -0.83,-4.17 -1.175,-2.659 -1.021,-1.523 0,0"></path></g><g transform="translate(279.5816,434.6892)" id="SvgjsG1069"><path id="SvgjsPath1068" style="fill:#8e1c1e;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -2.404,3.208 -5.608,0.668 -5.608,0.668 l 1.534,-0.866 C -3.608,1.138 0,0 0,0"></path></g><g transform="translate(247.0699,474.9851)" id="SvgjsG1067"><path id="SvgjsPath1066" style="fill:#4a1b16;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 2.67,-0.317 19.635,-2.356 21.206,-1.729 1.57,0.626 3.142,3.768 3.142,3.768 C 23.721,1.253 21.519,0.94 21.519,0.94 16.965,0.468 2.828,2.197 -0.468,1.884 -3.768,1.571 -8.326,-2.829 -8.326,-2.829 -5.026,-0.786 -2.666,0.313 0,0"></path></g><g transform="translate(280.2086,421.031)" id="SvgjsG1065"><path id="SvgjsPath1064" style="fill:#ac2322;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 C -2.609,1.159 -5.774,2.121 -8.68,2.191 L -8.743,2.2 -8.802,2.188 c -3.879,-0.134 -9.141,-0.249 -9.209,-0.245 -1.722,0.481 -3.745,1.518 -5.152,2.618 0.193,0.193 0.437,0.386 0.65,0.418 0,0 -2.179,0.749 -2.553,-1.246 0,0 0.066,-0.993 0.875,-1.49 0,0 -0.155,0.887 0.122,1.463 1.525,-1.23 3.847,-2.299 5.882,-2.685 0.216,-0.043 5.265,0.016 9.499,0.229 0.572,0.027 5.176,-0.454 8.172,-2.153 C 0,-1.198 0.478,-1.041 0.726,-0.899 1.42,-0.505 2.854,0.386 4.518,1.864 4.738,0.481 4.767,-2.464 3.383,-3.702 1.159,-5.685 -6.2,-8.251 -16.567,-2.283 c 0,0 7.382,-5.183 13.268,-5.309 3.823,0 6.524,1.23 7.935,2.487 C 7.018,-2.98 6.272,2.282 6.079,3.374 7.656,5.109 8.807,7.273 8.807,7.273 5.57,3.292 0.557,-0.245 0,0"></path></g><g transform="translate(286.4908,444.4631)" id="SvgjsG1063"><path id="SvgjsPath1062" style="fill:#8e1c1e;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 1.598,-2.27 2.479,-4.505 2.021,-5.798 -1.72,-3.599 -5.391,-4.461 -8.413,-4.964 0,0 7.183,-0.735 10.038,4.015 1.009,1.669 -1.055,5.897 -1.945,7.558 -2.654,6.217 -6.324,15.67 -6.174,17.212 0.182,1.914 2.223,7.171 2.994,9.034 0,0 -4.624,-6.269 -4.869,-8.856 C -6.597,15.619 -1.131,2.646 0,0"></path></g><g transform="translate(288.6441,67.5524)" id="SvgjsG1061"><path id="SvgjsPath1060" style="fill:#a19e6f;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 h 0.004 c 0.725,0 1.456,0.014 2.215,0.044 12.088,0.677 22.857,5.847 29.548,14.184 4.058,5.053 5.948,10.622 5.189,15.251 -1.318,9.306 -9.586,14.431 -23.287,14.431 -0.593,0 -1.197,-0.014 -1.832,-0.033 -17.668,-1.086 -32.446,-6.903 -39.5,-15.531 -3.475,-3.957 -4.2,-9.024 -1.989,-13.908 C -26.637,7.776 -17.06,0 0,0 m -26.921,27.249 c 6.912,8.45 21.524,14.143 39.055,15.221 0.604,0.021 1.197,0.029 1.785,0.029 7.499,0 20.313,-1.702 21.932,-13.133 0.692,-4.221 -1.098,-9.367 -4.91,-14.112 C 24.438,7.144 13.919,2.114 2.106,1.452 1.372,1.422 0.646,1.408 -0.071,1.408 h -0.004 c -16.547,0.002 -25.744,7.354 -28.598,13.646 -1.964,4.342 -1.35,8.664 1.752,12.195"></path></g><g transform="translate(224.3507,77.4294)" id="SvgjsG1059"><path id="SvgjsPath1058" style="fill:#3d4352;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0.145,-0.003 0.289,-0.008 0.429,-0.008 5.119,0 9.282,4.058 9.477,9.237 0.198,5.324 -3.918,9.845 -9.177,10.083 -5.285,0.231 -9.711,-3.9 -9.906,-9.224 C -9.274,7.493 -8.365,5.01 -6.612,3.103 -4.884,1.218 -2.532,0.114 0,0 m 0.296,17.262 c 0.119,0 0.234,-0.005 0.353,-0.008 C 4.874,17.062 8.182,13.502 8.023,9.313 7.864,5.125 4.336,1.872 0.076,2.063 c -2.06,0.093 -3.961,0.98 -5.361,2.499 -1.37,1.496 -2.085,3.427 -2.009,5.442 0.152,4.068 3.488,7.258 7.59,7.258"></path></g><g transform="translate(212.3946,229.4812)" id="SvgjsG1057"><path id="SvgjsPath1056" style="fill:#713b19;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -19.7,7.844 -27.985,30.228 -27.985,30.228 0.229,-0.997 5.837,-24.453 26.936,-32.856 5.981,-2.384 12.471,-3.664 18.939,-3.664 29.981,1.1 35.954,25.854 35.954,25.854 C 43.71,-3.325 19.087,-7.604 0,0"></path></g><g transform="translate(180.5318,88.9919)" id="SvgjsG1055"><path id="SvgjsPath1054" style="fill:#3d4352;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0.35,-0.056 0.707,-0.083 1.061,-0.083 3.874,0 7.303,3.28 7.977,7.625 0.741,4.815 -2.099,9.264 -6.336,9.921 -0.35,0.055 -0.707,0.082 -1.061,0.082 -3.873,0 -7.3,-3.277 -7.974,-7.624 -0.36,-2.306 0.09,-4.604 1.258,-6.467 C -3.88,1.55 -2.079,0.321 0,0 m -4.471,9.632 c 0.534,3.438 3.159,6.03 6.112,6.03 0.257,0 0.518,-0.021 0.775,-0.059 C 5.622,15.105 7.76,11.618 7.17,7.834 6.639,4.396 4.014,1.804 1.061,1.804 0.801,1.804 0.543,1.825 0.29,1.863 -1.241,2.101 -2.576,3.02 -3.477,4.455 -4.408,5.935 -4.758,7.773 -4.471,9.632"></path></g><g transform="translate(295.0611,73.6237)" id="SvgjsG1053"><path id="SvgjsPath1052" style="fill:#a19e6f;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 C 1.207,0 2.434,0.109 3.652,0.322 13.311,2.017 20.428,9.987 19.521,18.095 18.736,25.074 12.165,30.139 3.887,30.139 2.68,30.139 1.453,30.029 0.233,29.814 -9.424,28.122 -16.545,20.149 -15.634,12.045 -14.85,5.067 -8.278,0 0,0 m 0.558,27.959 c 1.117,0.193 2.233,0.294 3.329,0.294 7.301,0 13.089,-4.36 13.761,-10.368 C 18.445,10.749 12.021,3.706 3.328,2.178 2.216,1.983 1.096,1.886 0,1.886 c -7.302,0 -13.089,4.36 -13.763,10.366 -0.796,7.136 5.628,14.181 14.321,15.707"></path></g><g transform="translate(87.5626,419.615)" id="SvgjsG1051"><path id="SvgjsPath1050" style="fill:#481616;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,0 -4.637,-4.004 -12.094,-4.634 -7.464,-0.629 -12.569,1.962 -12.569,1.962 0,0 5.418,-4.711 12.878,-3.769 C -4.321,-5.499 0,0 0,0"></path></g><g transform="translate(55.3487,439.6584)" id="SvgjsG1049"><path id="SvgjsPath1048" style="fill:#481616;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -1.19,3.083 0.228,5.732 0.287,5.843 0,0 -4.715,-2.418 -2.863,-7.218 C -1.554,-4.016 6.868,-6.68 6.868,-6.68 2.984,-4.09 0.735,-1.903 0,0"></path></g><g transform="translate(145.5982,270.0163)" id="SvgjsG1047"><path id="SvgjsPath1046" style="fill:#481616;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 C -0.185,-1.704 -0.495,-3.983 -0.726,-5.721 -8.074,-61.17 -38.664,-133.476 -42,-141.244 c -20.431,-4.134 -31.596,-17.616 -37.348,-28.1 -0.569,10.391 3.267,23.177 11.298,37.456 0.206,0.353 20.537,35.408 29.248,52.208 7.693,14.834 25.997,62.388 30.765,99.981 0.166,1.304 0.421,3.869 0.554,5.146 -0.342,2.199 -2.12,10.307 -2.12,10.307 0.169,0.984 0,0 0,0 -0.006,-0.148 -0.141,-1.63 -0.147,-1.778 -0.077,-2.713 -0.265,-5.527 -0.539,-8.406 -3.598,-37.831 -23.056,-88.589 -31.023,-103.949 -8.68,-16.739 -28.98,-51.737 -29.189,-52.106 -9.601,-17.065 -13.332,-31.661 -11.142,-43.462 0.182,-0.999 0.397,-1.985 0.668,-2.945 0.157,-0.551 0.326,-1.075 0.498,-1.59 2.034,-5.941 5.346,-9.518 7.496,-11.335 -24.314,-11.188 -36.919,-9.985 -39.915,-9.442 -12.144,45.613 18.938,87.66 46.384,124.783 5.798,7.843 11.276,15.253 16.314,22.608 13.503,19.72 21.79,39.079 26.812,54.332 -11.55,-44.741 -26.898,-74.07 -26.898,-74.07 24.075,45.504 34.324,93.746 36.289,103.823 0.111,0.562 0.504,2.276 0.563,2.593 -2.076,-0.514 -5.469,-1.864 -5.469,-1.864 -0.049,-0.366 -0.126,-0.963 -0.246,-1.732 -1.363,-9.012 -8.089,-44.541 -33.385,-81.483 -5.005,-7.314 -10.47,-14.706 -16.253,-22.527 -27.994,-37.861 -59.721,-80.776 -46.615,-128.032 l 0.203,-0.734 0.726,-0.232 c 0.203,-0.068 2.135,-0.649 6.004,-0.649 6.73,0 19.317,1.765 38.861,11.087 l 2.469,1.175 -2.389,1.335 c -0.062,0.033 -6.131,3.509 -8.73,12.724 -0.166,0.6 -0.307,1.22 -0.44,1.842 4.801,10.281 15.669,26.187 37.963,30.403 l 0.729,0.139 0.301,0.684 c 0.345,0.786 32.838,75.545 41.358,133.915 0.138,0.97 0.455,3.288 0.581,4.248 C 1.901,-3.768 0,0 0,0"></path></g><g transform="translate(356.2662,51.6169)" id="SvgjsG1045"><path id="SvgjsPath1044" style="fill:#713b19;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0.417,-2.052 0.775,-4.079 1.096,-6.085 1.139,0.538 2.278,1.078 3.409,1.624 C 4.207,-2.66 3.874,-0.843 3.506,0.988 L 2.375,5.869 1.7,8.958 -1.323,6.798 -0.867,4.325 0,0"></path></g><g transform="translate(178.9459,211.4685)" id="SvgjsG1043"><path id="SvgjsPath1042" style="fill:#713b19;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -9.897,16.447 -21.104,35.089 -27.096,49.49 -1.266,3.048 -2.418,6.005 -3.471,8.861 0.013,0.114 -0.139,0.365 -0.139,0.365 -0.257,0.704 -0.508,1.399 -0.755,2.09 -6.307,17.707 -8.539,30.777 -9.017,33.92 4.465,2.432 12.085,7.163 17.176,13.409 1.1,1.345 3.214,2.733 5.9,3.837 1.812,0.742 3.424,1.626 4.86,2.618 1.294,-0.077 2.561,-0.125 3.78,-0.125 19.827,0 27.898,11.824 27.898,11.824 -0.098,-0.102 -9.087,-9.474 -28.538,-9.087 0.19,0.183 0.382,0.369 0.559,0.555 17.347,0.322 24.819,21.108 24.819,21.108 -0.081,-0.187 -8.058,-17.609 -23.136,-19.12 0.995,1.311 1.832,2.686 2.527,4.092 l 0.044,-0.068 c 12.565,7.492 10.824,24.372 10.824,24.372 0,-0.149 -0.125,-13.71 -9.544,-21.192 3.065,8.59 1.778,17.111 1.778,17.111 -0.013,-0.081 -0.363,-6.405 -1.402,-11.004 -2.547,-11.244 -9.588,-15.367 -15.773,-18.574 -2.852,-1.483 -5.318,-2.764 -6.788,-4.562 -6.025,-7.387 -16.213,-12.718 -19.014,-14.097 -5.686,-2.055 -8.575,-1.639 -13.808,-0.86 -3.452,0.508 -7.743,1.145 -14.273,1.264 -16.796,0.301 -22.062,9.5 -25.317,16.453 -1.433,3.055 -4.319,8.109 -6.723,12.112 -0.529,0.877 -1.528,2.52 -1.989,3.261 l -5.646,3.414 c 0.526,-0.887 1.796,-2.994 2.771,-4.67 2.689,-4.647 6.55,-11.472 8.603,-15.855 3.37,-7.197 8.46,-18.072 27.014,-18.407 6.351,-0.112 11.776,0.128 15.147,-0.373 2.401,-0.352 4.416,-0.65 6.482,-0.667 0,0 3.085,0.091 5.158,0.606 0.928,0.213 3.326,0.941 3.719,1.128 0.085,0.03 0.166,0.058 0.254,0.091 0,0 1.839,-8.403 2.178,-10.604 1.527,-6.391 3.902,-14.913 7.488,-24.725 0,0 1.826,-4.562 2.161,-5.686 0.508,-1.281 1.033,-2.584 1.582,-3.902 6.073,-14.594 17.338,-33.328 27.282,-49.859 8.084,-13.442 15.065,-25.051 16.731,-30.364 2.991,-9.523 4.054,-23.843 -13.409,-50.729 -0.585,-0.897 -1.185,-1.811 -1.812,-2.739 -1.05,-2.025 1.016,-4.243 1.016,-4.243 0.939,1.235 2.168,2.957 3.14,4.502 2.452,3.91 4.901,8.541 6.879,12.503 1.399,2.652 2.625,5.225 3.681,7.721 0.363,0.792 0.563,1.244 0.563,1.244 1.178,2.82 1.771,4.623 2.022,5.764 3.051,9.854 3.207,18.591 0.619,26.822 C 15.241,-25.341 8.176,-13.599 0,0"></path></g><g transform="translate(346.4488,112.7585)" id="SvgjsG1041"><path id="SvgjsPath1040" style="fill:#3d4352;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -0.06,0.283 -0.124,0.562 -0.201,0.834 -1.135,4.184 -3.884,7.038 -6.874,7.038 -0.322,0 -0.649,-0.033 -0.966,-0.101 -1.951,-0.413 -3.617,-2.057 -4.566,-4.508 -0.92,-2.382 -1.092,-5.269 -0.491,-8.12 0.67,-3.161 2.161,-5.614 4.038,-6.899 0.928,-0.633 1.951,-0.984 3.012,-0.984 0.111,0 0.451,0.133 0.559,0.141 0,0 -0.121,0.568 -0.156,0.784 -0.038,0.251 0.04,0.941 0.04,0.941 l -0.443,0.019 c -0.764,0 -1.516,0.305 -2.208,0.845 -1.353,1.065 -2.474,3.051 -2.999,5.539 -0.528,2.503 -0.382,5.008 0.404,7.057 0.717,1.842 1.881,3.061 3.201,3.34 0.189,0.041 0.386,0.063 0.575,0.063 2.131,0 4.301,-2.554 5.142,-5.995 0.026,-0.129 0.065,-0.254 0.09,-0.382 0.228,-1.086 0.392,-2.478 0.362,-3.534 0,0 1.335,1.256 1.726,2.356 C 0.198,-1.163 0.086,-0.404 0.001,0"></path></g><g transform="translate(132.8502,361.029)" id="SvgjsG1039"><path id="SvgjsPath1038" style="fill:#713b19;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -0.741,2.769 -1.732,5.39 -3.059,7.537 -0.447,0.728 -1.433,2.173 -1.964,2.782 l 0.184,-5.113 c 0.206,-0.345 0.412,-0.702 0.608,-1.069 4.862,-8.986 6.362,-24.128 6.381,-24.305 0,0 0.242,7.824 -1.2,15.863 1.806,-2.472 6.442,-10.071 5.199,-21.62 0,0 3.709,15.67 -6.149,25.925"></path></g><g transform="translate(151.0655,394.7751)" id="SvgjsG1037"><path id="SvgjsPath1036" style="fill:#713b19;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -0.692,-0.277 -2.444,-0.986 -3.186,-1.32 -6.14,-2.764 -13.589,-7.479 -18.031,-15.138 l -0.533,-0.094 -2.852,-0.547 c 0,0 0.965,-2.397 1.046,-3.277 0.554,0.168 1.809,0.607 2.677,0.83 5.073,1.31 15.101,3.142 25.412,0.671 0,0 -8.954,4.473 -22.132,2.833 4.685,6.747 11.983,10.753 17.535,12.984 2.754,1.107 5.086,1.786 6.443,2.13 6.477,0.82 11.817,0.229 16.272,-1.347 C 11.084,1.934 0,0 0,0"></path></g><g transform="translate(398.942,181.7312)" id="SvgjsG1035"><path id="SvgjsPath1034" style="fill:#713b19;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -0.115,4.745 -0.438,11.752 -1.395,17.58 -0.489,2.983 -10.563,27.296 -21.016,44.407 -9.742,15.936 -20.255,39.523 -21.276,41.826 -1.731,12.759 -4.867,25.188 -5.984,29.422 l 0.028,0.019 c -1.676,7.66 -9.899,32.694 -34.591,41.374 -1.099,0.383 -2.697,0.9 -3.86,1.219 l -1.252,-2.674 c 0.897,-0.263 2.244,-0.715 3.103,-1.029 19.609,-7.152 29.665,-27.518 32.916,-36.748 0.549,-1.561 1.999,-6.953 2.549,-9.312 1.393,-5.937 3.175,-14.377 4.316,-22.847 l 0.028,-0.199 0.079,-0.183 c 0.11,-0.251 11.233,-25.491 21.529,-42.343 10.301,-16.862 19.124,-41.673 19.641,-43.477 0.287,-1.01 1.5,-8.571 1.842,-15.204 0.074,-1.353 0.107,-2.671 0.088,-3.884 0,0 0.873,-0.651 1.741,-1.434 0.531,-0.478 1.63,-1.78 1.593,-1.766 C 0.065,-4.631 0.065,-2.674 0,0"></path></g><g transform="translate(268.649,20.0808)" id="SvgjsG1033"><path id="SvgjsPath1032" style="fill:#713b19;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 8.088,3.285 17.04,9.638 27.929,26.312 2.833,4.345 5.755,8.255 8.68,11.626 0,0 -6.838,-5.51 -11.126,-11.072 C 10.529,7.484 2.369,3.242 -7.315,0.543 -8.803,0.128 -10.063,-0.391 -11.126,-0.984 -7.376,-0.739 -3.661,-0.406 0,0"></path></g><g transform="translate(151.1754,33.8962)" id="SvgjsG1031"><path id="SvgjsPath1030" style="fill:#713b19;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 1.096,-0.418 2.202,-0.808 3.312,-1.189 0.441,0.829 0.816,1.511 1.103,2.021 3.283,5.48 8.937,14.422 8.937,14.422 0,0 -5.772,-6.563 -8.575,-9.584 -3.439,22.258 1.821,38.529 5.072,45.954 0.452,1.031 1.055,2.24 1.399,2.923 -0.894,0.764 -1.894,2.406 -1.894,2.406 C 9.02,56.378 8.257,55.145 7.644,54.03 4.068,47.556 -2.915,31.693 1.608,3.04 1.325,2.502 0.766,1.468 0,0"></path></g><g transform="translate(352.9693,127.8483)" id="SvgjsG1029"><path id="SvgjsPath1028" style="fill:#3d4352;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 C -1.059,3.877 -3.741,6.587 -6.537,6.619 L -5.569,3.98 c 1.78,-0.414 2.965,-1.743 3.712,-4.477 0.751,-2.742 0.507,-4.77 -0.686,-6.421 l 0.434,-2.864 C 0.17,-7.981 1.077,-3.938 0,0"></path></g><g transform="translate(371.6012,211.5075)" id="SvgjsG1027"><path id="SvgjsPath1026" style="fill:#713b19;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0,0 -11.272,7.172 -27.946,-5.618 -4.093,-0.546 -14.204,20.65 -15.219,22.802 4.258,3.487 10.356,9.787 12.821,18.783 l 0.027,-0.025 c 0.249,1.147 0.418,2.039 0.506,2.533 l 0.041,-0.011 c 4.542,20.001 -4.533,31.784 -11.158,40.388 -0.978,1.272 -1.903,2.473 -2.735,3.63 -2.865,3.986 -6.558,10.957 -9.778,17.479 0.351,9.369 -5.606,22.043 -5.606,22.043 0.027,-0.111 3.684,-10.001 3.893,-18.533 -3.176,6.602 -5.561,11.998 -5.601,12.118 0,0 8.163,-25.518 14.792,-34.753 0.863,-1.198 1.802,-2.419 2.794,-3.709 6.299,-8.178 14.049,-18.255 11.188,-35.255 l -0.027,0.03 -0.529,-2.868 C -35.206,24.569 -48.913,16.522 -49.055,16.443 l -0.725,-0.42 0.022,-0.837 c 0,-0.104 0.218,-10.446 -0.938,-23.167 -1.179,-12.956 0.458,-27.014 0.475,-27.156 l 0.129,-1.097 c 0,0 5.442,-10.915 9.071,-23.454 1.473,-5.104 2.652,-10.475 3.039,-15.493 0.071,-1.012 0.116,-1.46 -0.063,-2.436 0.926,3.471 1.713,6.303 1.65,14.019 -0.493,1.772 -1.08,3.723 -1.81,5.895 -1.739,5.174 -4.288,11.627 -8.367,20.08 -0.219,0.45 -0.86,2.112 -0.86,2.112 -0.341,2.352 -0.373,4.884 -0.373,4.884 -0.387,5.065 -0.841,13.969 -0.076,22.39 0.984,10.824 0.984,19.96 0.957,22.67 0.373,0.237 0.872,0.57 1.464,0.99 1.397,-2.908 8.955,-18.328 13.238,-22.168 0.712,-0.654 1.495,-1.135 2.225,-1.075 -0.071,-3.331 -0.204,-12.391 0.329,-19.805 0.099,-1.299 0.214,-2.554 0.352,-3.711 0,0 0.863,1.042 1.174,1.354 0.516,0.52 1.33,1.252 1.33,1.252 -0.066,0.793 -0.115,1.618 -0.165,2.456 -0.373,6.712 -0.266,14.432 -0.204,17.862 3.995,3.157 16.077,11.656 27.182,8.412"></path></g><g transform="translate(402.4146,169.154)" id="SvgjsG1025"><path id="SvgjsPath1024" style="fill:#481616;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -0.482,3.711 -3.396,7.324 -3.396,7.324 0.038,-0.013 -1.057,1.582 -1.548,2.101 -1.215,1.277 -1.689,1.746 -1.689,1.746 -4.095,4.183 -12.74,10.509 -25.801,11.292 -0.264,0.014 -0.514,0.011 -0.774,0.018 -12.258,0.874 -21.145,-5.56 -24.516,-8.657 0,0 -0.812,-0.731 -1.332,-1.253 -0.31,-0.31 -1.075,-1.555 -1.075,-1.555 -0.594,-0.955 -2.514,-3.73 -2.375,-5.182 0.232,-2.412 0.547,-5.291 0.891,-8.404 0.997,-9.03 3.07,-19.753 3.139,-27.09 0,-0.47 0,-0.923 -0.013,-1.362 0,0 1.558,-2.014 2.5,-3.666 -0.056,0.132 -0.084,0.211 -0.084,0.211 0.055,0.655 0.097,1.389 0.126,2.154 0.301,7.656 -0.831,20.246 -1.916,30.061 -0.343,3.103 -0.658,5.965 -0.891,8.366 -0.046,0.492 0.631,1.905 1.257,2.843 l 0.302,0.446 -0.005,0.032 c 3.497,4.462 12.755,11.384 24.628,10.682 15.379,-0.919 24.423,-10.878 26.58,-13.55 0.69,-0.941 2.013,-3.129 2.467,-6.592 0.004,-0.079 0.44,-8.071 -9.573,-34.014 -7.309,-18.942 -15.287,-35.439 -19.27,-43.369 -0.58,2.355 -2.032,4.295 -3.345,5.515 0.58,5.569 -2.75,8.742 -5.356,10.036 -0.167,1.893 -0.835,5.575 -3.474,7.694 -1.684,1.362 -3.534,1.867 -5.051,1.769 -0.524,-0.035 -1.118,-0.085 -1.73,-0.245 -1.924,-0.405 -2.625,-1.652 -2.625,-1.652 -0.542,-0.636 -1.053,-1.481 -1.48,-2.638 l -0.338,-0.665 c -0.389,-1.103 -1.754,-2.416 -1.754,-2.416 -1.923,-1.967 -4.47,-4.972 -4.475,-7.067 0,-0.052 0.015,-0.109 0.015,-0.161 0,0 0.05,-0.795 0.092,-1.046 0.033,-0.212 0.2,-0.807 0.2,-0.807 0.204,-0.737 0.477,-1.446 0.755,-2.054 -0.565,-0.666 -1.155,-1.346 -1.771,-2.039 -0.774,-0.606 -1.586,-1.255 -2.31,-1.874 -0.051,-0.041 -3.826,-3.335 -5.598,-6.015 0,0 -0.844,-1.937 -0.658,-4.213 0.723,-2.895 2.898,-6.57 5.57,-7.558 -1.601,-2.08 -3.025,-4.857 -1.007,-8.271 1.002,-1.702 2.64,-2.941 4.489,-3.397 0.074,-0.019 0.158,-0.039 0.238,-0.054 -1.8,-2.454 -2.431,-4.882 -1.824,-7.022 0.418,-1.481 1.397,-2.753 2.917,-3.8 0.418,-0.288 0.887,-0.557 1.383,-0.808 0,0 1.684,-0.685 3.724,-0.156 2.147,0.769 5.357,2.737 8.427,4.819 l 3.057,2.145 c 1.623,1.17 3.066,2.262 4.081,3.061 4.081,3.198 8.771,10.097 9.66,12.471 0.72,1.926 0.079,4.99 -0.444,6.876 l 0.051,0.024 c -0.121,0.306 -0.237,0.59 -0.344,0.862 -0.148,0.415 -0.353,0.966 -0.69,1.679 -0.154,0.371 -0.256,0.612 -0.279,0.662 l -0.037,-0.018 c -0.023,0.046 -0.055,0.1 -0.079,0.15 0.923,1.743 12.022,22.932 21.919,48.565 C -0.094,-8.205 0.036,-0.385 -0.001,0 M -33.76,-92.669 c -0.678,-1.801 -4.926,-8.12 -8.566,-10.979 -3.279,-2.566 -11.757,-9.68 -15.195,-9.726 -1.265,0.576 -2.643,1.468 -2.995,2.707 -0.413,1.46 0.649,3.198 1.317,4.106 1.248,1.687 4.509,4.105 5.658,4.89 l -0.019,0.02 c 0.205,0.139 0.293,0.217 0.358,0.292 1.262,1.034 5.635,4.605 7.509,5.905 2.314,1.603 3.126,1.393 6.687,9.67 0,0 -2.806,-4.412 -3.636,-5.113 -0.728,-0.612 -5.496,-3.494 -8.853,-6.031 -1.493,-0.994 -3.006,-1.995 -3.845,-2.53 -0.728,-0.458 -2.955,-1.773 -2.955,-1.773 -0.969,-0.598 -2.036,-0.936 -3.015,-0.691 -0.963,0.237 -1.919,1.618 -2.458,2.535 -0.88,1.498 -1.052,2.996 0.557,5.005 0.756,0.949 11.498,10.079 11.498,10.079 0,0 3.928,2.026 6.363,4.042 2.43,2.022 3.029,5.413 3.029,5.413 -0.408,-1.102 -1.201,-2.75 -2.612,-3.97 -1.419,-1.214 -5.556,-2.868 -6.854,-3.242 -1.294,-0.378 -3.261,-2.447 -4.819,-3.487 -1.429,-0.949 -3.84,-2.508 -5.283,-3.435 -1.094,-0.557 -2.096,-0.849 -2.602,-0.674 -1.809,0.63 -3.636,4.649 -3.613,6.156 0.26,0.605 1.549,2.161 3.071,3.716 0.273,0.267 0.542,0.538 0.811,0.805 0.478,0.461 0.96,0.906 1.429,1.31 1.674,1.433 3.933,3.107 4.879,3.798 1.437,-1.53 3.821,-2.166 6.701,0.183 3.688,3.004 5.464,7.43 5.464,7.43 0,0 -0.538,-0.783 -2.068,-2.841 -1.536,-2.059 -4.346,-4.627 -6.86,-3.588 -1.511,0.625 -2.857,2.765 -3.687,4.372 -0.13,0.425 -0.213,0.84 -0.213,1.201 0.088,0.843 2.333,3.653 4.712,5.89 l 0.231,0.225 1.42,2.987 c 0.38,0.8 0.992,1.457 1.605,1.973 0.751,0.35 2.615,0.977 4.16,-0.508 1.748,-1.675 2.026,-5.264 2.012,-6.461 l -0.004,-1.255 1.192,-0.398 c 0.52,-0.175 5.064,-1.867 4.02,-7.636 l -0.175,-1.033 0.835,-0.636 c 0.185,-0.142 4.61,-3.58 2.448,-7.996 l -0.274,-0.559 c 0,0 2.603,-2.9 2.853,-7.277 0.061,-1.212 -0.019,-2.328 -0.218,-2.871"></path></g><g transform="translate(79.1139,335.467)" id="SvgjsG1023"><path id="SvgjsPath1022" style="fill:#481616;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 7.699,-3.018 15.906,-3.43 19.758,-3.43 0.245,0 0.473,0.004 0.684,0.004 9.361,0.128 19.66,8.668 24.494,20.31 2.334,5.632 3.47,10.238 3.961,13.887 l 0.325,4.339 c 0.004,1.706 -0.136,3.057 -0.312,4.053 -0.078,0.881 -1.061,3.171 -1.061,3.171 -2.101,5.159 -7.089,11.48 -7.299,11.743 -1.426,2 -2.996,4.172 -4.65,6.452 -5.049,6.953 -10.76,14.831 -13.085,19.319 -3.378,6.518 -5.632,14.006 -6.523,17.23 -0.114,0.368 -0.158,0.5 -0.215,0.93 1.413,0.803 2.996,2.035 4.067,4.671 1.504,3.698 1.136,8.365 0.399,10.923 l 1.803,1.263 c 2.039,1.338 3.605,3.628 4.399,6.9 0.755,3.123 0.75,6.413 -1.934,9.865 1.465,1.347 2.54,4.439 2.719,8.041 0.158,3.237 -0.785,6.755 -3.447,8.992 0.877,2.145 0.552,7.742 -2.527,13.037 l 0.044,0.039 c -0.176,0.263 -0.355,0.518 -0.535,0.772 -0.254,0.404 -0.526,0.803 -0.82,1.198 -0.303,2.908 -1.878,15.195 -0.487,25.047 1.632,11.584 0.908,27.595 -9.879,33.999 -5.601,3.326 -9.295,2.523 -11.41,1.268 -3.171,-1.886 -4.497,-5.733 -4.393,-8.509 0.065,-1.681 0.248,-5.668 0.013,-8.984 -0.33,-4.641 -0.668,-9.444 -0.387,-12.072 0.428,-4.004 -0.221,-11.44 -3.73,-18.822 -2.246,-0.491 -9.166,-2.29 -13.677,-6.663 -2.39,-0.338 -13.354,-1.382 -16.544,-9.589 -2.895,-7.44 -0.185,-13.191 0.465,-14.801 -0.478,-1.864 -2.645,-8.851 -0.702,-16.769 2.11,-8.589 9.624,-26.832 10.391,-28.973 0,0 -0.188,-6.685 0.15,-8.883 0.022,-0.135 1.062,-2.881 2.385,-6.07 0.772,-1.86 3.692,-10.778 4.216,-14.335 0.054,-0.474 -0.05,-3.303 -0.156,-6.3 -0.384,-10.773 -1.795,-30.823 0.096,-42.29 0.073,-0.359 1.626,-7.242 11.422,-14.194 L -6.29,3.242 C -3.597,1.724 -0.969,0.382 0,0 m -12.699,11.072 c -6.132,5.527 -7.22,10.365 -7.229,10.396 -1.836,11.141 -1.127,31.012 -0.745,41.685 0.167,4.662 0.215,6.303 0.115,6.873 -0.137,0.742 -1.053,3.974 -2.109,7.589 -1.354,4.65 -4.085,12.55 -4.153,12.765 l -0.254,4.742 c 1.416,-2.194 3.021,-4.321 4.731,-6.067 5.419,-5.536 12.842,-5.891 12.842,-5.891 -3.417,1.062 -6.361,1.649 -11.545,6.834 -3.193,3.189 -5.218,7.049 -6.309,9.545 l -0.02,0.079 c -0.049,0.14 -3.416,9.545 -6.256,18.327 2.276,-2.952 6.56,-4.654 6.56,-4.654 -3.029,3.474 -4.74,6.159 -5.078,7.983 -0.669,3.571 1.407,5.834 1.497,5.927 0,0 -4.1,-0.917 -4.39,-4.782 -0.77,2.5 -1.427,4.79 -1.869,6.589 -0.519,2.114 -0.78,4.118 -0.881,5.939 2.12,-3.172 6.136,-4.593 6.136,-4.593 -0.044,0.04 -4.467,4.071 -4.589,8.585 -0.044,1.666 1.432,3.776 2.725,5.426 0,0 -2.322,-1.167 -3.961,-2.716 0.248,1.637 0.54,2.602 0.545,2.624 l 0.169,0.57 -0.272,0.522 c -0.071,0.136 -1.335,2.636 -0.664,7.159 1.687,-2.299 4.099,-4.615 4.099,-4.615 -2.068,3.61 -2.955,6.04 -2.876,7.878 0.052,1.215 0.387,2.259 0.786,3.106 3.569,6.33 12.686,7.316 12.781,7.33 l 0.518,0.048 0.361,0.373 c 3.962,4.088 10.716,5.808 12.659,6.233 2.25,0.333 5.298,0.456 8.158,-0.535 0,0 -3.114,2.171 -5.886,2.86 3.463,7.558 4.074,15.287 3.619,19.55 -0.257,2.382 0.089,7.264 0.392,11.572 0.24,3.395 0.47,6.606 0.399,8.44 -0.079,1.978 0.952,4.742 3.012,5.965 2.085,1.242 5.032,0.803 8.521,-1.267 9.444,-5.611 9.628,-19.582 8.115,-30.316 -1.075,-7.641 -0.474,-16.716 0.044,-21.949 -3.058,2.728 -6.782,4.373 -11.487,3.64 -1.594,-0.25 -6.292,-1.382 -10.977,-2.553 -2.129,0.746 -6.391,1.088 -14.285,-2.07 0,0 5.547,1.531 8.508,0.61 -3.261,-0.834 -5.678,-1.466 -5.678,-1.466 0.191,0.022 19.248,2.018 22.797,2.672 4.436,0.82 8.498,-1.869 11.661,-5.571 v -0.031 l 0.136,-0.136 c 0.127,-0.149 0.25,-0.302 0.373,-0.451 3.544,-5.014 3.053,-9.181 2.807,-11.177 -4.32,1.728 -8.698,0.873 -12.396,0.496 -0.724,-0.075 -1.395,-0.145 -2,-0.185 -4.371,-0.311 -30.069,-5.803 -30.069,-5.803 0.259,0.026 25.944,2.671 30.271,2.983 0.627,0.044 1.329,0.113 2.083,0.193 3.755,0.377 8.997,1.105 12.379,-0.86 l 0.316,-0.263 c 2.557,-2.058 2.601,-4.76 2.478,-7.321 -0.14,-3.01 -0.996,-5.611 -1.619,-6.536 -9.001,0.895 -41.259,-5.159 -41.259,-5.159 13.78,1.558 35.131,3.373 40.922,2.417 2.553,-3.018 2.07,-5.795 1.487,-8.237 -1.009,-4.19 -4.865,-6.361 -4.917,-6.383 l -0.579,-0.228 c -9.138,-0.053 -31.368,-4.141 -31.368,-4.141 9.526,0.86 23.783,1.737 30.499,1.483 0.167,-1.102 0.614,-3.185 0.395,-5.418 -0.298,-2.965 -0.43,-5.654 -4.755,-7.917 -6.207,-1.36 -20.747,-2.25 -20.9,-2.259 0,0 2.295,-0.255 5.479,-0.492 -0.625,-0.916 -3.219,-4.351 -6.764,-3.939 0,0 5.417,-1.465 8.819,3.795 3.667,-0.233 8.001,-0.387 11.37,-0.154 -0.254,-1.614 -1,-4.246 -3.171,-7.137 C 5.477,86.827 1.187,84.655 -4.519,83.488 -4.77,83.44 -4.92,83.401 -4.969,83.383 c 0,0 10.743,-0.18 14.59,5.005 2.53,3.408 3.575,6.168 3.903,8.08 0.891,-3.255 3.198,-11.006 6.782,-17.923 2.417,-4.672 7.953,-12.3 13.304,-19.674 3.637,-5.014 7.076,-9.826 9.072,-12.957 2.167,-3.395 3.491,-6.922 3.649,-8.69 C 46.629,33.851 46.296,27.543 42.322,17.967 37.979,7.492 28.557,-0.491 20.402,-0.597 17.271,-0.636 9.577,-0.425 2.238,2.163 -0.813,3.237 -7.766,6.624 -12.699,11.072"></path></g><g transform="translate(304.7125,537.8503)" id="SvgjsG1021"><path id="SvgjsPath1020" style="fill:#7b5c2f;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -0.282,11.072 -4.395,20.64 -11.883,27.667 -7.87,7.391 -19.072,11.117 -30.735,10.938 -10.58,-0.166 -18.199,-2.562 -23.52,-5.33 -5.061,0.183 -17.155,-0.699 -24.295,-13.128 -0.64,-1.115 -1.155,-2.32 -1.567,-3.574 -1.048,-1.075 -4.936,-5.2 -7.261,-10.969 -7.82,-1.098 -13.414,-4.52 -16.604,-10.19 -4.654,-8.265 -2.915,-19.467 -0.506,-25.419 -1.129,-2.62 -4.564,-13.41 0.918,-33.58 0.229,-0.842 0.431,-1.393 0.69,-2.266 0,0 1.013,1.554 2.226,2.374 -0.148,0.497 -0.174,0.707 -0.3,1.191 -1.061,3.937 -1.787,7.507 -2.221,10.669 2.037,-3.081 7.18,-8.994 17.544,-9.025 8.022,-0.027 17.424,7.081 17.424,7.081 -26.758,-14.893 -35.228,5.85 -35.506,7.691 -0.354,7.346 0.811,11.901 1.514,13.921 0.726,-0.959 1.568,-1.913 2.535,-2.853 5.344,-5.174 14.154,-7.772 23.757,-7.772 14.794,0.404 26.996,9.106 26.996,9.106 -16.031,-9.531 -39.595,-9.518 -49.445,0.023 -1.962,1.904 -3.305,4.147 -4.206,6.504 -1.724,5.594 -2.616,14.467 1.044,20.97 2.544,4.511 6.965,7.36 13.119,8.519 -1.729,-6.494 -0.985,-14.485 7.095,-22.408 5.59,-5.483 12.322,-7.883 19.757,-8.765 7.941,-0.941 17.67,1.401 17.67,1.401 -0.237,-0.04 -24.178,-4.152 -36.079,8.681 -13.057,14.082 -2.893,27.241 -1.276,29.239 -0.462,-6.526 1.321,-13.603 4.658,-18.866 4.882,-7.7 12.021,-8.976 19.058,-9.021 2.934,-2.432 6.338,-4.076 10.123,-4.846 6.902,-1.402 13.939,0.228 19.143,2.92 -12.563,-8.017 -8.873,-16.675 -8.873,-16.675 -0.434,7.068 5.626,11.775 12.636,17.226 7.382,5.738 15.748,12.246 17.978,23.049 1.488,7.239 -0.313,13.711 -5.217,18.709 -7.583,7.731 -20.694,8.336 -29.177,6.755 -8.971,-1.666 -19.036,-7.973 -23.412,-17.164 -3.548,-7.444 -3.449,-15.023 0.291,-21.911 1.322,-2.428 2.876,-4.538 4.632,-6.338 -8.394,-0.112 -13.106,4.398 -15.592,8.308 -4.672,7.342 -5.509,18.741 -1.048,25.988 4.815,7.829 11.569,9.89 15.605,10.396 -2.939,-2.441 -4.233,-4.443 -4.336,-4.6 0,0 12.958,10.521 34.135,11.153 10.924,0.322 21.369,-3.301 28.693,-10.173 6.924,-6.499 10.732,-15.38 10.996,-25.682 0.685,-26.655 -12.59,-33.629 -14.105,-34.337 0,0 3.709,-0.183 7.041,2.32 0,0 1.174,0.937 2.249,2.267 C -3.574,-24.335 0.39,-15.077 0,0 m -46.802,28.518 c 7.404,0.453 16.245,-0.936 21.849,-6.647 4.506,-4.591 6.092,-10.315 4.712,-17.007 -0.61,-2.961 -1.738,-5.59 -3.198,-7.968 2.226,5.921 3.068,13.988 -1.071,19.757 -5.715,7.973 -18.35,10.508 -28.16,5.644 -4.236,-2.101 -7.032,-6.706 -7.287,-12.022 -0.26,-5.326 2.064,-10.186 6.069,-12.676 4.143,-2.58 8.165,-2.271 10.808,-1.558 3.669,0.989 7.108,3.489 8.551,6.216 0.895,1.689 1.11,3.288 0.632,4.753 -0.444,1.352 -1.38,2.297 -2.115,2.862 1.496,0.143 3.033,-0.394 4.139,-1.497 1.675,-1.666 2.078,-4.308 1.115,-7.242 -1.057,-3.202 -4.251,-6.199 -8.551,-8.017 -5.392,-2.285 -11.466,-2.271 -16.245,0.044 -5.191,2.518 -9.048,7.032 -10.589,12.394 -1.335,4.672 -0.712,9.402 1.752,13.321 4.371,6.937 12.729,9.348 17.589,9.643 M -74.25,-8.228 c -4.349,8.004 -2.535,15.403 -0.246,20.201 4.327,9.083 13.226,13.934 20.201,15.708 -3.996,-1.47 -8.179,-3.987 -10.893,-8.305 -2.612,-4.147 -3.275,-9.15 -1.859,-14.082 1.608,-5.617 5.652,-10.351 11.081,-12.98 2.535,-1.228 5.41,-1.841 8.362,-1.841 2.898,0 5.868,0.591 8.667,1.774 4.542,1.926 7.933,5.137 9.075,8.59 1.08,3.284 0.591,6.276 -1.348,8.206 -1.622,1.617 -4.045,2.204 -6.159,1.496 l -1.098,-0.363 1.035,-0.506 c 0.023,-0.009 2.002,-0.994 2.638,-2.961 0.395,-1.209 0.202,-2.562 -0.568,-4.013 -1.107,-2.087 -3.995,-4.676 -7.964,-5.746 -2.464,-0.663 -6.208,-0.95 -10.06,1.451 -3.718,2.311 -5.872,6.844 -5.63,11.829 0.242,4.972 2.83,9.272 6.768,11.225 9.41,4.662 21.513,2.262 26.973,-5.353 5.2,-7.247 2.118,-18.337 -1.362,-23.515 -1.613,-1.845 -3.4,-3.538 -5.245,-5.124 5.859,6.651 9.478,15.811 5.656,21.186 -3.927,5.527 -9.253,2.952 -9.253,2.952 0.184,0.036 4.551,1.209 7.682,-3.548 3.422,-5.204 -1.053,-16.425 -9.384,-23.062 -4.627,-3.682 -13.392,-6.871 -21.723,-5.183 -6.598,1.344 -11.763,5.366 -15.346,11.964"></path></g><g transform="translate(350.9498,117.4509)" id="SvgjsG1019"><path id="SvgjsPath1018" style="fill:#6d1417;fill-opacity:1;fill-rule:nonzero;stroke:none" d="M 0,0 C -0.03,0.204 -0.056,0.406 -0.091,0.614 L -0.527,3.479 -0.652,4.24 c -0.118,0.663 -0.216,1.116 -0.407,1.927 -0.856,3.615 -1.738,6.164 -2.49,8.21 l -0.972,2.639 c -3.727,9.048 -9.333,12.691 -11.222,13.441 -0.424,-7.702 -1.249,-12.304 -1.764,-14.562 -1.327,-7.45 -9.056,-13.775 -13.552,-16.894 -1.327,-0.92 -2.671,-1.743 -3.19,-2.049 l 3.242,-1.299 c 0.574,0.368 1.612,1.026 2.33,1.528 4.405,3.078 11.062,8.557 13.915,15.22 1.258,2.683 1.846,6.746 2.261,9.928 2.113,-1.332 6.674,-5.308 8.633,-16.531 0.401,-2.297 0.795,-4.513 1.124,-6.627 0.095,-0.598 0.181,-1.191 0.259,-1.769 0,0 0.933,1.032 2.624,1.651 C 0.096,-0.639 0.048,-0.319 0,0"></path></g><g transform="translate(330.7896,87.2321)" id="SvgjsG1017"><path id="SvgjsPath1016" style="fill:#6d1417;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -0.387,-0.322 -1.253,-0.975 -1.644,-1.285 0,0 -2.144,-3.779 -4.015,-6.187 1.526,0.901 3.359,2.099 4.81,3.177 0.404,0.303 0.862,0.636 1.266,0.949 C 0.224,-1.073 1.098,0.922 1.098,0.922 0.762,0.633 0.341,0.281 0,0"></path></g><g transform="translate(263.735,67.3933)" id="SvgjsG1015"><path id="SvgjsPath1014" style="fill:#6d1417;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -1.277,-0.041 -3.487,-0.065 -5.105,-0.093 -15.473,-0.257 -45.237,0.472 -67.472,8.467 -20.987,7.545 -26.341,13.295 -27.622,15.231 l -0.157,0.347 c -0.849,1.916 -0.601,3.807 -0.382,4.765 1.399,6.074 6.669,20.025 11.04,24.858 0.169,0.186 0.677,0.718 0.834,0.802 0.137,-0.373 1.27,-1.593 1.549,-1.83 5.973,-5.079 17.629,-11.496 39.887,-14.779 13.052,-1.924 25.106,-2.536 33.531,-2.691 1.732,-0.029 3.323,-0.044 4.723,-0.044 0.975,0 2.363,0.023 3.162,0.03 l 4.142,2.934 c -1.288,-0.046 -6.478,-0.221 -13.209,-0.068 -8.245,0.188 -19.641,0.824 -31.932,2.635 -21.906,3.231 -32.403,10.07 -37.421,14.269 0,0 -2.137,2.137 -1.273,3.954 -0.39,0.229 -3.098,0.818 -5.496,-1.479 -4.906,-4.706 -11.32,-21.077 -13.037,-27.803 -0.741,-2.908 0.712,-6.289 0.784,-6.44 0.337,-0.69 1.06,-1.601 1.954,-2.365 2.831,-3.168 9.967,-8.513 27.963,-14.986 20.43,-7.346 46.997,-8.672 63.514,-8.672 2.409,0 4.6,0.03 6.536,0.071 5.437,0.117 9.453,0.458 9.576,0.466 C 3.438,-1.659 0,0 0,0"></path></g><g transform="translate(302.7379,116.5261)" id="SvgjsG1013"><path id="SvgjsPath1012" style="fill:#4a4230;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -0.728,0 -1.465,-0.014 -2.248,-0.038 -15.659,-0.963 -29.468,-4.969 -39.18,-11.125 l -4.095,-2.922 c -1.941,-1.559 -3.65,-3.226 -5.094,-4.991 -4.307,-4.903 -5.203,-11.191 -2.463,-17.245 2.008,-4.446 6.399,-9.291 13.324,-12.798 0,0 3.524,-1.76 6.176,-2.521 4.769,-1.52 10.393,-2.448 16.91,-2.448 0.888,0 1.785,0.017 2.72,0.055 14.729,0.827 28.402,7.345 36.682,17.456 1.878,2.409 4.156,6.319 4.156,6.319 2.16,4.3 3.027,8.617 2.408,12.399 -0.947,6.674 -5.048,11.66 -11.712,14.648 l -3.325,1.269 C 10.209,-0.671 5.431,0 0,0 m 26.496,-18.285 c 0.787,-4.805 -1.292,-10.718 -5.712,-16.225 -7.759,-9.667 -20.805,-15.91 -34.865,-16.699 -0.876,-0.035 -1.738,-0.055 -2.589,-0.055 -19.597,0.003 -30.47,8.68 -33.834,16.108 -2.298,5.073 -1.582,10.121 2.042,14.252 8.196,10.019 25.536,16.764 46.345,18.042 0.716,0.022 1.419,0.033 2.117,0.033 7.309,0 24.522,-1.504 26.496,-15.456"></path></g><g transform="translate(302.2965,473.0417)" id="SvgjsG1011"><path id="SvgjsPath1010" style="fill:#8e1c1e;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 1.088,6.036 -1.352,21.662 -4.01,31.054 -0.312,1.1 -0.807,2.752 -1.221,4.039 l -2.205,-2.298 c 0.277,-0.945 0.557,-1.96 0.731,-2.581 1.534,-5.382 2.866,-12.554 3.589,-18.671 0.755,-0.223 0.921,-1.059 0.921,-1.059 -0.471,0.706 -0.825,0.179 -0.825,0.179 0.548,-5.061 0.544,-10.058 -0.072,-11.604 -0.02,-0.049 0.016,0.048 0,0 0,0 1.725,0.255 3.093,0.941"></path></g><g transform="translate(301.0074,461.674)" id="SvgjsG1009"><path id="SvgjsPath1008" style="fill:#8e1c1e;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -0.016,0.041 -1.475,4 0.937,10.033 0.078,0.194 0.146,0.416 0.207,0.651 0,0 -1.439,-2.114 -3.838,-2.562 -1.285,-5.322 -0.005,-8.987 0.048,-9.124 3.697,-10.061 2.622,-12.889 -1.382,-23.407 -0.38,-0.989 -0.784,-2.044 -1.204,-3.175 -2.534,-6.748 -5.293,-15.351 -7.507,-22.264 -2.102,-6.562 -3.92,-12.222 -4.667,-13.612 -0.768,-1.431 -6.582,-2.885 -11.532,-3.346 l -1.139,-0.109 -0.005,-0.028 c -14.707,-0.206 -26.76,6.133 -34.97,10.468 -0.707,0.376 -1.39,0.736 -2.041,1.076 -8,4.161 -12.533,8.626 -14.259,14.056 -1.539,4.837 -5.762,17.484 -6.149,18.643 0.238,1.103 0.218,2.291 -0.11,3.39 0,0 -0.254,-5.394 -5.434,-5.002 -2.267,0.174 -5.249,3.051 -7.641,5.5 -0.917,0.937 -1.782,1.822 -2.578,2.517 l -0.606,0.521 c -2.788,2.4 -5.677,4.885 -6.913,12.081 -0.861,5.023 0.408,10.603 3.014,13.265 1.055,1.079 2.194,1.519 3.398,1.358 6.138,-0.841 8.178,-7.281 8.178,-7.281 -0.125,0.299 -1.503,9.143 -7.765,10.077 -1.702,0.251 -3.419,0.166 -4.874,-0.917 -1.212,-0.821 -2.271,-2.425 -2.271,-2.425 -2.387,-3.547 -3.345,-9.422 -2.464,-14.553 1.406,-8.203 4.982,-11.278 7.855,-13.747 l 0.594,-0.513 c 0.707,-0.618 1.535,-1.463 2.408,-2.36 2.723,-2.787 5.79,-5.931 9.014,-6.311 0.461,-1.672 1.055,-4.012 1.58,-6.78 1.386,-8.505 2.396,-21.843 0.029,-30.57 -0.34,-1.253 -1.047,-2.885 -1.532,-3.92 0,0 0.081,-1.422 0.295,-1.77 0.242,-0.396 1.818,-0.719 1.818,-0.719 0.19,0.336 0.562,1.059 0.998,2.202 1.451,3.786 3.596,12.219 2.029,26.842 -0.526,6.687 -1.847,12.594 -2.481,15.018 1.18,0.417 1.963,1.14 2.444,1.79 0.485,0.651 0.82,1.439 1.006,2.275 0.287,-1.479 2.776,-14.203 4.36,-19.185 0.663,-2.084 1.697,-4.028 3.119,-5.866 4.077,-9.891 12.825,-30.09 20.874,-41.973 0.181,-0.271 0.76,-1.269 0.937,-1.528 l 2.004,-0.355 c -0.21,0.347 -0.872,1.422 -1.151,1.883 -4.207,6.925 -15.637,26.166 -22.53,41.795 1.648,-2.089 3.806,-4.04 6.525,-5.903 1.604,-1.099 23.755,-15.213 42.995,-15.766 0.102,0 -0.258,-5.019 0.069,-10.696 0.15,-2.602 0.638,-6.024 1.188,-8.485 1.685,1.37 1.592,7.835 1.592,7.835 -0.033,0.453 -0.065,0.921 -0.093,1.402 -0.089,1.467 -0.15,3.038 -0.157,4.602 l 0.072,2.95 c 0.037,1.191 0.06,1.446 0.194,2.521 3.568,0.416 10.946,1.628 12.595,4.699 0.832,1.544 2.314,6.126 4.872,14.09 2.206,6.884 4.954,15.45 7.459,22.133 0.425,1.128 0.824,2.179 1.2,3.168 C 2.695,-14.691 4.069,-11.079 0,0"></path></g><g transform="translate(297.8062,472.6389)" id="SvgjsG1007"><path id="SvgjsPath1006" style="fill:#371714;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -0.253,0.052 -0.507,0.092 -0.765,0.133 -2.102,0.294 -4.547,0.028 -7.278,-0.838 -1.595,-0.503 -2.804,-1.168 -3.714,-1.917 1.632,4.761 7.041,4.422 7.81,4.35 -7.378,1.115 -8.716,-3.827 -8.953,-5.506 -2.486,-3.138 -1.161,-6.952 -1.161,-6.952 0,0.052 0.21,5.224 6.868,7.331 2.468,0.777 4.648,1.003 6.396,0.676 0.044,-0.511 0,-2.207 -1.962,-4.31 -2.324,-2.488 -9.159,-1.228 -9.227,-1.216 l -0.097,0.02 -1.716,-1.353 1.736,0.391 c 0.915,-0.162 7.452,-1.205 9.993,1.514 1.905,2.042 2.212,3.818 2.219,4.708 0.118,-0.04 0.226,-0.092 0.338,-0.14 3.062,0.491 4.697,3.882 4.697,3.882 C 5.019,0.616 1.941,-0.492 0,0"></path></g><g transform="translate(298.356,483.2307)" id="SvgjsG1005"><path id="SvgjsPath1004" style="fill:#4a1b16;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c 0.353,0.168 0.666,0.269 0.942,0.313 0,0 0.719,0.177 1.188,-0.529 0,0 -0.493,1.544 -1.247,1.769 C 0.569,1.505 0.217,1.404 -0.152,1.288 -3.808,0.101 -9.975,-4.478 -9.975,-4.478 l -1.765,-3.691 c 4.654,1.826 7.891,5.733 11.034,7.776 C -0.449,-0.229 -0.221,-0.104 0,0"></path></g><g transform="translate(311.0338,358.1809)" id="SvgjsG1003"><path id="SvgjsPath1002" style="fill:#481616;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -6.29,8.435 -6.641,8.961 -7.158,9.088 -3.325,0.816 -9.236,-1.856 -12.507,-3.329 -1.938,7.563 -5.344,10.896 -6.38,11.785 0.192,3.544 -0.375,6.269 -0.375,6.269 -2.166,2.782 -5.853,5.001 -8.476,6.343 -1.333,0.681 -2.403,1.138 -2.834,1.314 l -0.075,-2.946 c 1.967,-0.872 6.727,-3.213 9.305,-6.448 0.212,-0.572 1.334,-4.345 -1.146,-11.324 C -30.242,9.663 -31.123,8.436 -32.461,7.224 -40.794,-0.339 -62.739,3.1 -62.739,3.1 c 5.751,-1.191 10.866,-1.787 15.325,-1.787 7.068,0 12.481,1.493 16.185,4.479 0.889,0.718 1.607,1.469 2.186,2.215 0.616,-2.982 0.196,-6.041 -1.199,-8.762 -1.321,-2.924 -3.948,-6.375 -9.027,-9.696 4.492,1.673 7.204,4.014 8.779,5.915 3.422,4.124 4.47,9.688 2.818,14.677 0.032,0.089 0.062,0.175 0.094,0.265 0.008,0.028 0.024,0.057 0.037,0.089 L -27.55,10.5 c 0.539,1.533 0.905,2.924 1.143,4.168 1.244,-1.701 3.144,-4.903 4.523,-9.896 0.89,-5.143 -1.118,-11.731 -4.695,-14.965 -7.509,-6.792 -23.703,-8.436 -40.896,-5.283 -18.148,3.325 -41.451,11.324 -49.373,30.56 -0.131,0.322 -0.273,0.616 -0.408,0.926 -4.809,15.639 -13.044,18.968 -13.044,18.968 0.04,-0.037 2.361,-2.236 5.045,-6.474 -3.165,3.325 -5.979,4.936 -7.33,5.699 -0.171,0.098 -0.314,0.179 -0.432,0.249 l -0.11,0.061 c -0.474,0.224 -11.377,5.363 -20.542,4.201 2.121,1.994 6.314,4.614 9.675,5.914 0.563,0.217 5.364,-0.248 12.792,-3.36 3.459,-1.828 11.854,-7.094 15.871,-16.896 0,0 -2.112,10.94 -11.739,17.414 2.546,0.807 6.482,2.292 8.994,2.525 0,0 1.571,-1.726 3.892,-5.397 1.175,-1.754 2.231,-3.879 3.418,-6.278 2.823,-5.694 6.335,-12.78 13.82,-19.424 13.052,-11.576 27.578,-13.444 29.687,-13.901 0,0 -15.586,3.189 -28.272,14.452 -7.212,6.396 -10.797,14.162 -13.542,19.71 -0.432,0.872 -1.404,3.561 -1.815,4.36 0.387,-0.049 2.826,0.706 2.826,0.706 11.075,-18.968 36.435,-29.027 52.857,-29.647 8.26,0 14.031,1.697 17.217,5.083 1.159,1.232 2.497,3.977 2.321,6.518 -0.09,1.391 -0.815,1.836 -1.191,1.905 -0.224,0.04 -0.456,0.081 -0.694,0.123 0,0 -0.105,-5.785 -1.79,-7.155 -0.065,-0.062 -0.123,-0.135 -0.196,-0.192 -5.886,-4.712 -19.017,-4.181 -27.117,-2.643 l -1.979,0.404 c -1.048,0.256 -10.874,3.663 -11.812,4.066 -6.968,2.978 -14.673,8.546 -21.085,15.635 0,0 -0.734,1.077 -0.979,1.473 -0.212,0.343 -0.84,1.485 -0.84,1.485 -0.257,0.428 -2.913,5.253 -3.769,6.008 l -4.777,-1.028 c -2.488,4.446 -4.45,6.253 -5.237,6.722 -0.661,0.4 -7.893,-1.864 -12.05,-3.226 -0.318,-0.102 -0.579,-0.192 -0.779,-0.253 -6.469,2.725 -13.873,4.266 -15.521,3.557 -6.065,-2.599 -15.512,-11.173 -15.512,-11.173 0,0 12.115,2.329 23.683,-1.876 0.024,-0.012 0.057,-0.025 0.081,-0.033 0.327,-0.118 0.645,-0.245 0.967,-0.371 0.118,-0.049 0.241,-0.094 0.359,-0.143 l 0.041,-0.016 c 0.281,-0.118 0.53,-0.232 0.766,-0.346 8.46,-3.876 13.388,-11.524 16.786,-19.339 8.248,-18.968 28.382,-26.506 46.419,-30.434 7.188,-2.594 18.409,-5.556 29.451,-5.776 23.916,-0.469 37.984,12.984 41.479,18.702 L 0.298,-0.75 0.318,-0.428 0,0 m -23.12,-17.34 c -9.369,-3.871 -20.816,-3.741 -30.825,-2.337 0.424,-0.005 0.865,-0.029 1.285,-0.029 7.763,0 14.722,1.22 20.227,3.549 6.352,1.676 17.059,5.804 20.78,15.076 0,0 -4.896,-6.861 -14.074,-11.079 0.111,0.09 0.229,0.18 0.331,0.269 3.035,2.66 6.514,8.725 6.094,15.085 4.557,1.631 8.64,3.189 10.814,2.859 0,0 3.504,-4.128 5.825,-7.212 -0.596,-1.725 -3.684,-9.251 -20.457,-16.181"></path></g><g transform="translate(95.4063,432.5417)" id="SvgjsG1001"><path id="SvgjsPath1000" style="fill:#800000;fill-opacity:1;fill-rule:nonzero;stroke:none" d="m 0,0 c -0.115,0.373 -0.159,0.502 -0.216,0.931 1.413,0.801 2.996,2.037 4.069,4.674 0.515,1.268 0.807,2.653 0.944,4.029 26.201,19.251 55.752,32.923 87.175,40.431 0.461,-2.58 1.071,-5.357 1.882,-8.34 0.218,-0.812 0.414,-1.361 0.663,-2.183 L 94.501,39.517 C 92.365,36.347 91.377,31.326 91.817,26.636 60.131,18.14 31.224,2.803 6.775,-17.7 6.69,-17.54 6.597,-17.379 6.521,-17.229 3.146,-10.709 0.889,-3.221 0,0 m -62.905,-309.909 c 2.986,8.977 7.059,17.761 11.799,26.343 -13.902,28.992 -21.696,61.444 -21.696,95.686 0,42.372 11.935,82.003 32.608,115.725 -1.102,11.697 0.06,28.714 0.401,38.332 0.017,0.455 0.033,0.9 0.049,1.34 -36.048,-43.684 -55.662,-98.031 -55.662,-155.397 0,-43.527 11.305,-85.314 32.501,-122.029 z m 385.164,295.033 c -32.313,32.313 -72.077,54.459 -115.41,64.863 0.362,-3.857 0.43,-7.223 0.058,-9.4 0.372,0.129 0.631,0.238 0.676,0.279 0,0 -0.335,-0.682 -0.976,-1.479 -0.026,-0.072 -0.042,-0.155 -0.073,-0.222 -2.409,-6.035 -0.951,-9.996 -0.936,-10.037 0.316,-0.848 0.59,-1.655 0.843,-2.425 94.819,-25.291 164.88,-111.903 164.88,-214.583 0,-80.522 -43.084,-151.169 -107.41,-190.107 -33.488,-20.272 -72.729,-31.952 -114.65,-31.952 -33.068,0 -64.455,7.277 -92.679,20.29 -31.135,14.358 -58.4,35.712 -79.773,62.039 -2.282,-3.244 -4.019,-6.423 -5.313,-9.196 0.133,-0.622 0.273,-1.241 0.442,-1.841 2.598,-9.215 8.666,-12.692 8.729,-12.724 l 2.388,-1.335 -2.47,-1.176 c -2.726,-1.302 -5.313,-2.45 -7.774,-3.473 1.138,-1.182 2.278,-2.364 3.443,-3.526 21.543,-21.546 46.399,-38.57 73.415,-50.614 30.933,-13.791 64.704,-21.047 99.592,-21.047 41.942,0 82.27,10.5 118,30.231 19.94,11.008 38.451,24.877 54.998,41.43 46.213,46.208 71.664,107.65 71.664,173.001 0,65.353 -25.451,126.796 -71.664,173.004"></path></g></g></g></g></svg><style>@media (prefers-color-scheme: light) { :root { filter: none; } } +</style></svg> \ No newline at end of file diff --git a/application/source/server/web/dist/editor/index.html b/application/source/server/web/dist/editor/index.html new file mode 100644 index 0000000000000000000000000000000000000000..1ef7f30f13167325786773906016abdd039a8935 --- /dev/null +++ b/application/source/server/web/dist/editor/index.html @@ -0,0 +1,22 @@ +<!DOCTYPE html><html lang="en"> +<head> + <meta charset="UTF-8"> + <title>Minerva Editor</title> + + <link rel="icon" type="image/svg+xml" href="/editor/favicon.svg"> + <link rel="icon" type="image/png" sizes="32x32" href="/editor/favicon-32x32.png"> + <link rel="icon" type="image/png" sizes="16x16" href="/editor/favicon-16x16.png"> + <link rel="icon" type="image/png" href="/editor/favicon.png"> + <link rel="apple-touch-icon" sizes="180x180" href="/editor/apple-touch-icon.png"> + + <link rel="manifest" href="/editor/site.webmanifest"> + <meta name="msapplication-TileColor" content="#da532c"> + <meta name="theme-color" content="#ffffff"> + + <link rel="stylesheet" href="/styles/main.css"> + <script type="module" src="/scripts/main.js"></script> + + + +</head> +<body> \ No newline at end of file diff --git a/application/source/server/web/dist/editor/mstile-150x150.png b/application/source/server/web/dist/editor/mstile-150x150.png new file mode 100644 index 0000000000000000000000000000000000000000..d309229ca3e858c505bcd43226008c65a1192a62 Binary files /dev/null and b/application/source/server/web/dist/editor/mstile-150x150.png differ diff --git a/application/source/server/web/dist/editor/robots.txt b/application/source/server/web/dist/editor/robots.txt new file mode 100644 index 0000000000000000000000000000000000000000..52fa3ebe81884e654c5b8de0249de8a542291cf9 --- /dev/null +++ b/application/source/server/web/dist/editor/robots.txt @@ -0,0 +1,5 @@ +# www.robotstxt.org/ + +# Allow crawling of all content +User-agent: * +Disallow: \ No newline at end of file diff --git a/application/source/server/web/dist/editor/scripts/main.js b/application/source/server/web/dist/editor/scripts/main.js new file mode 100644 index 0000000000000000000000000000000000000000..1a15be4616a616766d61b53e969dcec54d9ed7be --- /dev/null +++ b/application/source/server/web/dist/editor/scripts/main.js @@ -0,0 +1,461 @@ +(()=>{var gc=Object.create;var Ua=Object.defineProperty;var mc=Object.getOwnPropertyDescriptor;var vc=Object.getOwnPropertyNames;var yc=Object.getPrototypeOf,bc=Object.prototype.hasOwnProperty;var Wa=(rr,Vn)=>()=>(Vn||rr((Vn={exports:{}}).exports,Vn),Vn.exports);var wc=(rr,Vn,Wt,ri)=>{if(Vn&&typeof Vn=="object"||typeof Vn=="function")for(let Je of vc(Vn))!bc.call(rr,Je)&&Je!==Wt&&Ua(rr,Je,{get:()=>Vn[Je],enumerable:!(ri=mc(Vn,Je))||ri.enumerable});return rr};var xc=(rr,Vn,Wt)=>(Wt=rr!=null?gc(yc(rr)):{},wc(Vn||!rr||!rr.__esModule?Ua(Wt,"default",{value:rr,enumerable:!0}):Wt,rr));var $a=Wa((eo,vs)=>{(function(rr,Vn){typeof eo=="object"&&typeof vs=="object"?vs.exports=Vn():typeof define=="function"&&define.amd?define([],Vn):typeof eo=="object"?eo.grapesjs=Vn():rr.grapesjs=Vn()})(typeof globalThis<"u"?globalThis:typeof window<"u"?window:eo,function(){return(()=>{var rr={7757:(Je,Se,b)=>{Je.exports=b(5666)},3410:(Je,Se,b)=>{var ye,we,J;we=[b(9050),b(2316)],ye=function(Y,N){var te=Array.prototype.slice;function $(p,d,f){return f.length<=4?p.call(d,f[0],f[1],f[2],f[3]):p.apply(d,f)}function L(p,d){return te.call(p,d)}function w(p,d){return p!=null&&(Y.isArray(d)||(d=L(arguments,1)),Y.all(d,function(f){return f in p}))}var y=function(){var p=!1,d=-1;function f(){d++,p=!0,Y.defer(function(){p=!1})}return function(){return p||f(),d}}();function P(){this.registeredObjects=[],this.cidIndexes=[]}function A(p,d,f,v){for(var D,g=0,T=d.length;g<T;g++)if(D=d[g]){if(p==="on"){if(!v.objectRegistry.register(D))continue}else if(!v.objectRegistry.unregister(D))continue;Y.isFunction(D[p])&&D[p]("all",f,v)}}function k(p,d){var f=d.type,v=d.undoTypes,D=!v[f]||v[f][p];Y.isFunction(D)&&D(d.object,d.before,d.after,d.options)}function B(p,d,f,v,D){if(!(f.isCurrentlyUndoRedoing||p==="undo"&&f.pointer===-1||p==="redo"&&f.pointer===f.length-1)){f.isCurrentlyUndoRedoing=!0;var g,T,u=p==="undo";for(D?T=u&&f.pointer===f.length-1||!u&&f.pointer===-1?Y.clone(f.models):te.apply(f.models,u?[0,f.pointer]:[f.pointer,f.length-1]):(g=f.at(u?f.pointer:f.pointer+1),T=v?f.where({magicFusionIndex:g.get("magicFusionIndex")}):[g]),f.pointer+=(u?-1:1)*T.length;g=u?T.pop():T.shift();)g[p]();f.isCurrentlyUndoRedoing=!1,d.trigger(p,d)}}function G(p,d){var f=p.condition,v=typeof f;return v==="function"?!!$(f,p,d):v!=="boolean"||f}function M(p,d,f,v){if(p.track&&!p.isCurrentlyUndoRedoing&&d in v&&G(v[d],f)){var D=$(v[d].on,v[d],f);if(w(D,"object","before","after")){if(D.type=d,D.magicFusionIndex=y(),D.undoTypes=v,p.pointer<p.length-1)for(var g=p.length-p.pointer-1;g--;)p.pop();p.pointer=p.length,p.add(D),p.length>p.maximumStackLength&&(p.shift(),p.pointer--)}}}P.prototype={isRegistered:function(p){return p&&p.cid?this.registeredObjects[p.cid]:Y.contains(this.registeredObjects,p)},register:function(p){return!this.isRegistered(p)&&(p&&p.cid?(this.registeredObjects[p.cid]=p,this.cidIndexes.push(p.cid)):this.registeredObjects.push(p),!0)},unregister:function(p){if(this.isRegistered(p)){if(p&&p.cid)delete this.registeredObjects[p.cid],this.cidIndexes.splice(Y.indexOf(this.cidIndexes,p.cid),1);else{var d=Y.indexOf(this.registeredObjects,p);this.registeredObjects.splice(d,1)}return!0}return!1},get:function(){return Y.map(this.cidIndexes,function(p){return this.registeredObjects[p]},this).concat(this.registeredObjects)}};var H={add:{undo:function(p,d,f,v){p.remove(f,v)},redo:function(p,d,f,v){v.index&&(v.at=v.index),p.add(f,v)},on:function(p,d,f){return{object:d,before:void 0,after:p,options:Y.clone(f)}}},remove:{undo:function(p,d,f,v){"index"in v&&(v.at=v.index),p.add(d,v)},redo:function(p,d,f,v){p.remove(d,v)},on:function(p,d,f){return{object:d,before:p,after:void 0,options:Y.clone(f)}}},change:{undo:function(p,d,f,v){Y.isEmpty(d)?Y.each(Y.keys(f),p.unset,p):(p.set(d),v&&v.unsetData&&v.unsetData.before&&v.unsetData.before.length&&Y.each(v.unsetData.before,p.unset,p))},redo:function(p,d,f,v){Y.isEmpty(f)?Y.each(Y.keys(d),p.unset,p):(p.set(f),v&&v.unsetData&&v.unsetData.after&&v.unsetData.after.length&&Y.each(v.unsetData.after,p.unset,p))},on:function(p,d){var f=p.changedAttributes(),v=Y.keys(f),D=Y.pick(p.previousAttributes(),v),g=Y.keys(D),T=(d||(d={})).unsetData={after:[],before:[]};return v.length!=g.length&&(v.length>g.length?Y.each(v,function(u){u in D||T.before.push(u)},this):Y.each(g,function(u){u in f||T.after.push(u)})),{object:p,before:D,after:f,options:Y.clone(d)}}},reset:{undo:function(p,d,f){p.reset(d)},redo:function(p,d,f){p.reset(f)},on:function(p,d){return{object:p,before:d.previousModels,after:Y.clone(p.models)}}}};function Z(){}function _(p,d,f,v){if(typeof d=="object")return Y.each(d,function(D,g){p===2?_(p,D,f,v):_(p,g,D,f)});switch(p){case 0:w(f,"undo","redo","on")&&Y.all(Y.pick(f,"undo","redo","on"),Y.isFunction)&&(v[d]=f);break;case 1:v[d]&&Y.isObject(f)&&(v[d]=Y.extend({},v[d],f));break;case 2:delete v[d]}return this}Z.prototype=H;var C=N.Model.extend({defaults:{type:null,object:null,before:null,after:null,magicFusionIndex:null},undo:function(p){k("undo",this.attributes)},redo:function(p){k("redo",this.attributes)}}),z=N.Collection.extend({model:C,pointer:-1,track:!1,isCurrentlyUndoRedoing:!1,maximumStackLength:1/0,setMaxLength:function(p){this.maximumStackLength=p}}),I=N.Model.extend({defaults:{maximumStackLength:1/0,track:!1},initialize:function(p){this.stack=new z,this.objectRegistry=new P,this.undoTypes=new Z,this.stack.setMaxLength(this.get("maximumStackLength")),this.on("change:maximumStackLength",function(d,f){this.stack.setMaxLength(f)},this),p&&p.track&&this.startTracking(),p&&p.register&&(Y.isArray(p.register)||Y.isArguments(p.register)?$(this.register,this,p.register):this.register(p.register))},startTracking:function(){this.set("track",!0),this.stack.track=!0},stopTracking:function(){this.set("track",!1),this.stack.track=!1},isTracking:function(){return this.get("track")},_addToStack:function(p){M(this.stack,p,L(arguments,1),this.undoTypes)},register:function(){A("on",arguments,this._addToStack,this)},unregister:function(){A("off",arguments,this._addToStack,this)},unregisterAll:function(){$(this.unregister,this,this.objectRegistry.get())},undo:function(p){B("undo",this,this.stack,p)},undoAll:function(){B("undo",this,this.stack,!1,!0)},redo:function(p){B("redo",this,this.stack,p)},redoAll:function(){B("redo",this,this.stack,!1,!0)},isAvailable:function(p){var d=this.stack,f=d.length;switch(p){case"undo":return f>0&&d.pointer>-1;case"redo":return f>0&&d.pointer<f-1;default:return!1}},merge:function(p){for(var d,f=Y.isArray(p)?p:L(arguments);d=f.pop();)d instanceof I&&d.stack instanceof z&&(d.stack=this.stack)},addUndoType:function(p,d){_(0,p,d,this.undoTypes)},changeUndoType:function(p,d){_(1,p,d,this.undoTypes)},removeUndoType:function(p){_(2,p,void 0,this.undoTypes)},clear:function(){this.stack.reset(),this.stack.pointer=-1}});return Y.extend(I,{defaults:function(p){Y.extend(I.prototype.defaults,p)},addUndoType:function(p,d){_(0,p,d,H)},changeUndoType:function(p,d){_(1,p,d,H)},removeUndoType:function(p){_(2,p,void 0,H)}}),N.UndoManager=I},(J=typeof ye=="function"?ye.apply(Se,we):ye)===void 0||(Je.exports=J)},2316:(Je,Se,b)=>{var ye,we,J;J=typeof self=="object"&&self.self===self&&self||typeof b.g=="object"&&b.g.global===b.g&&b.g,ye=[b(9050),b(2579),Se],we=function(Y,N,te){J.Backbone=function($,L,w,y){var P=$.Backbone,A=Array.prototype.slice;L.VERSION="1.3.3",L.$=y,L.noConflict=function(){return $.Backbone=P,this},L.emulateHTTP=!1,L.emulateJSON=!1;var k=function(E,q,ue){switch(E){case 1:return function(){return w[q](this[ue])};case 2:return function(ke){return w[q](this[ue],ke)};case 3:return function(ke,Ee){return w[q](this[ue],G(ke,this),Ee)};case 4:return function(ke,Ee,pe){return w[q](this[ue],G(ke,this),Ee,pe)};default:return function(){var ke=A.call(arguments);return ke.unshift(this[ue]),w[q].apply(w,ke)}}},B=function(E,q,ue){w.each(q,function(ke,Ee){w[Ee]&&(E.prototype[Ee]=k(ke,Ee,ue))})},G=function(E,q){return w.isFunction(E)?E:w.isObject(E)&&!q._isModel(E)?M(E):w.isString(E)?function(ue){return ue.get(E)}:E},M=function(E){var q=w.matches(E);return function(ue){return q(ue.attributes)}},H=L.Events={},Z=/\s+/,_=function(E,q,ue,ke,Ee){var pe,Ae=0;if(ue&&typeof ue=="object")for(ke!==void 0&&("context"in Ee)&&Ee.context===void 0&&(Ee.context=ke),pe=w.keys(ue);Ae<pe.length;Ae++)q=_(E,q,pe[Ae],ue[pe[Ae]],Ee);else if(ue&&Z.test(ue))for(pe=ue.split(Z);Ae<pe.length;Ae++)q=E(q,pe[Ae],ke,Ee);else q=E(q,ue,ke,Ee);return q};H.on=function(E,q,ue){return C(this,E,q,ue)};var C=function(E,q,ue,ke,Ee){return E._events=_(z,E._events||{},q,ue,{context:ke,ctx:E,listening:Ee}),Ee&&((E._listeners||(E._listeners={}))[Ee.id]=Ee),E};H.listenTo=function(E,q,ue){if(!E)return this;var ke=E._listenId||(E._listenId=w.uniqueId("l")),Ee=this._listeningTo||(this._listeningTo={}),pe=Ee[ke];if(!pe){var Ae=this._listenId||(this._listenId=w.uniqueId("l"));pe=Ee[ke]={obj:E,objId:ke,id:Ae,listeningTo:Ee,count:0}}return C(E,q,ue,this,pe),this};var z=function(E,q,ue,ke){if(ue){var Ee=E[q]||(E[q]=[]),pe=ke.context,Ae=ke.ctx,Ne=ke.listening;Ne&&Ne.count++,Ee.push({callback:ue,context:pe,ctx:pe||Ae,listening:Ne})}return E};H.off=function(E,q,ue){return this._events?(this._events=_(I,this._events,E,q,{context:ue,listeners:this._listeners}),this):this},H.stopListening=function(E,q,ue){var ke=this._listeningTo;if(!ke)return this;for(var Ee=E?[E._listenId]:w.keys(ke),pe=0;pe<Ee.length;pe++){var Ae=ke[Ee[pe]];if(!Ae)break;Ae.obj.off(q,ue,this)}return this};var I=function(E,q,ue,ke){if(E){var Ee,pe=0,Ae=ke.context,Ne=ke.listeners;if(q||ue||Ae){for(var Oe=q?[q]:w.keys(E);pe<Oe.length;pe++){var Ie=E[q=Oe[pe]];if(!Ie)break;for(var Le=[],$e=0;$e<Ie.length;$e++){var tt=Ie[$e];ue&&ue!==tt.callback&&ue!==tt.callback._callback||Ae&&Ae!==tt.context?Le.push(tt):(Ee=tt.listening)&&--Ee.count==0&&(delete Ne[Ee.id],delete Ee.listeningTo[Ee.objId])}Le.length?E[q]=Le:delete E[q]}return E}for(var ht=w.keys(Ne);pe<ht.length;pe++)delete Ne[(Ee=Ne[ht[pe]]).id],delete Ee.listeningTo[Ee.objId]}};H.once=function(E,q,ue){var ke=_(p,{},E,q,w.bind(this.off,this));return typeof E=="string"&&ue==null&&(q=void 0),this.on(ke,q,ue)},H.listenToOnce=function(E,q,ue){var ke=_(p,{},q,ue,w.bind(this.stopListening,this,E));return this.listenTo(E,ke)};var p=function(E,q,ue,ke){if(ue){var Ee=E[q]=w.once(function(){ke(q,Ee),ue.apply(this,arguments)});Ee._callback=ue}return E};H.trigger=function(E){if(!this._events)return this;for(var q=Math.max(0,arguments.length-1),ue=Array(q),ke=0;ke<q;ke++)ue[ke]=arguments[ke+1];return _(d,this._events,E,void 0,ue),this};var d=function(E,q,ue,ke){if(E){var Ee=E[q],pe=E.all;Ee&&pe&&(pe=pe.slice()),Ee&&f(Ee,ke),pe&&f(pe,[q].concat(ke))}return E},f=function(E,q){var ue,ke=-1,Ee=E.length,pe=q[0],Ae=q[1],Ne=q[2];switch(q.length){case 0:for(;++ke<Ee;)(ue=E[ke]).callback.call(ue.ctx);return;case 1:for(;++ke<Ee;)(ue=E[ke]).callback.call(ue.ctx,pe);return;case 2:for(;++ke<Ee;)(ue=E[ke]).callback.call(ue.ctx,pe,Ae);return;case 3:for(;++ke<Ee;)(ue=E[ke]).callback.call(ue.ctx,pe,Ae,Ne);return;default:for(;++ke<Ee;)(ue=E[ke]).callback.apply(ue.ctx,q);return}};H.bind=H.on,H.unbind=H.off,w.extend(L,H);var v=L.Model=function(E,q){var ue=E||{};q||(q={}),this.cid=w.uniqueId(this.cidPrefix),this.attributes={},q.collection&&(this.collection=q.collection),q.parse&&(ue=this.parse(ue,q)||{});var ke=w.result(this,"defaults");ue=w.defaults(w.extend({},ke,ue),ke),this.set(ue,q),this.changed={},this.initialize.apply(this,arguments)};w.extend(v.prototype,H,{changed:null,validationError:null,idAttribute:"id",cidPrefix:"c",initialize:function(){},toJSON:function(E){return w.clone(this.attributes)},sync:function(){return L.sync.apply(this,arguments)},get:function(E){return this.attributes[E]},escape:function(E){return w.escape(this.get(E))},has:function(E){return this.get(E)!=null},matches:function(E){return!!w.iteratee(E,this)(this.attributes)},set:function(E,q,ue){if(E==null)return this;var ke;if(typeof E=="object"?(ke=E,ue=q):(ke={})[E]=q,ue||(ue={}),!this._validate(ke,ue))return!1;var Ee=ue.unset,pe=ue.silent,Ae=[],Ne=this._changing;this._changing=!0,Ne||(this._previousAttributes=w.clone(this.attributes),this.changed={});var Oe=this.attributes,Ie=this.changed,Le=this._previousAttributes;for(var $e in ke)q=ke[$e],w.isEqual(Oe[$e],q)||Ae.push($e),w.isEqual(Le[$e],q)?delete Ie[$e]:Ie[$e]=q,Ee?delete Oe[$e]:Oe[$e]=q;if(this.idAttribute in ke&&(this.id=this.get(this.idAttribute)),!pe){Ae.length&&(this._pending=ue);for(var tt=0;tt<Ae.length;tt++)this.trigger("change:"+Ae[tt],this,Oe[Ae[tt]],ue)}if(Ne)return this;if(!pe)for(;this._pending;)ue=this._pending,this._pending=!1,this.trigger("change",this,ue);return this._pending=!1,this._changing=!1,this},unset:function(E,q){return this.set(E,void 0,w.extend({},q,{unset:!0}))},clear:function(E){var q={};for(var ue in this.attributes)q[ue]=void 0;return this.set(q,w.extend({},E,{unset:!0}))},hasChanged:function(E){return E==null?!w.isEmpty(this.changed):w.has(this.changed,E)},changedAttributes:function(E){if(!E)return!!this.hasChanged()&&w.clone(this.changed);var q=this._changing?this._previousAttributes:this.attributes,ue={};for(var ke in E){var Ee=E[ke];w.isEqual(q[ke],Ee)||(ue[ke]=Ee)}return!!w.size(ue)&&ue},previous:function(E){return E!=null&&this._previousAttributes?this._previousAttributes[E]:null},previousAttributes:function(){return w.clone(this._previousAttributes)},fetch:function(E){E=w.extend({parse:!0},E);var q=this,ue=E.success;return E.success=function(ke){var Ee=E.parse?q.parse(ke,E):ke;if(!q.set(Ee,E))return!1;ue&&ue.call(E.context,q,ke,E),q.trigger("sync",q,ke,E)},ve(this,E),this.sync("read",this,E)},save:function(E,q,ue){var ke;E==null||typeof E=="object"?(ke=E,ue=q):(ke={})[E]=q;var Ee=(ue=w.extend({validate:!0,parse:!0},ue)).wait;if(ke&&!Ee){if(!this.set(ke,ue))return!1}else if(!this._validate(ke,ue))return!1;var pe=this,Ae=ue.success,Ne=this.attributes;ue.success=function(Le){pe.attributes=Ne;var $e=ue.parse?pe.parse(Le,ue):Le;if(Ee&&($e=w.extend({},ke,$e)),$e&&!pe.set($e,ue))return!1;Ae&&Ae.call(ue.context,pe,Le,ue),pe.trigger("sync",pe,Le,ue)},ve(this,ue),ke&&Ee&&(this.attributes=w.extend({},Ne,ke));var Oe=this.isNew()?"create":ue.patch?"patch":"update";Oe!=="patch"||ue.attrs||(ue.attrs=ke);var Ie=this.sync(Oe,this,ue);return this.attributes=Ne,Ie},destroy:function(E){E=E?w.clone(E):{};var q=this,ue=E.success,ke=E.wait,Ee=function(){q.stopListening(),q.trigger("destroy",q,q.collection,E)};E.success=function(Ae){ke&&Ee(),ue&&ue.call(E.context,q,Ae,E),q.isNew()||q.trigger("sync",q,Ae,E)};var pe=!1;return this.isNew()?w.defer(E.success):(ve(this,E),pe=this.sync("delete",this,E)),ke||Ee(),pe},url:function(){var E=w.result(this,"urlRoot")||w.result(this.collection,"url")||K();if(this.isNew())return E;var q=this.get(this.idAttribute);return E.replace(/[^\/]$/,"$&/")+encodeURIComponent(q)},parse:function(E,q){return E},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(E){return this._validate({},w.extend({},E,{validate:!0}))},_validate:function(E,q){if(!q.validate||!this.validate)return!0;E=w.extend({},this.attributes,E);var ue=this.validationError=this.validate(E,q)||null;return!ue||(this.trigger("invalid",this,ue,w.extend(q,{validationError:ue})),!1)}}),B(v,{keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1},"attributes");var D=L.Collection=function(E,q){q||(q={}),q.model&&(this.model=q.model),q.comparator!==void 0&&(this.comparator=q.comparator),this._reset(),this.initialize.apply(this,arguments),E&&this.reset(E,w.extend({silent:!0},q))},g={add:!0,remove:!0,merge:!0},T={add:!0,remove:!1},u=function(E,q,ue){ue=Math.min(Math.max(ue,0),E.length);var ke,Ee=Array(E.length-ue),pe=q.length;for(ke=0;ke<Ee.length;ke++)Ee[ke]=E[ke+ue];for(ke=0;ke<pe;ke++)E[ke+ue]=q[ke];for(ke=0;ke<Ee.length;ke++)E[ke+pe+ue]=Ee[ke]};w.extend(D.prototype,H,{model:v,initialize:function(){},toJSON:function(E){return this.map(function(q){return q.toJSON(E)})},sync:function(){return L.sync.apply(this,arguments)},add:function(E,q){return this.set(E,w.extend({merge:!1},q,T))},remove:function(E,q){q=w.extend({},q);var ue=!w.isArray(E);E=ue?[E]:E.slice();var ke=this._removeModels(E,q);return!q.silent&&ke.length&&(q.changes={added:[],merged:[],removed:ke},this.trigger("update",this,q)),ue?ke[0]:ke},set:function(E,q){if(E!=null){(q=w.extend({},g,q)).parse&&!this._isModel(E)&&(E=this.parse(E,q)||[]);var ue=!w.isArray(E);E=ue?[E]:E.slice();var ke=q.at;ke!=null&&(ke=+ke),ke>this.length&&(ke=this.length),ke<0&&(ke+=this.length+1);var Ee,pe,Ae=[],Ne=[],Oe=[],Ie=[],Le={},$e=q.add,tt=q.merge,ht=q.remove,Vt=!1,rt=this.comparator&&ke==null&&q.sort!==!1,Ht=w.isString(this.comparator)?this.comparator:null;for(pe=0;pe<E.length;pe++){Ee=E[pe];var Zt=this.get(Ee);if(Zt){if(tt&&Ee!==Zt){var Ct=this._isModel(Ee)?Ee.attributes:Ee;q.parse&&(Ct=Zt.parse(Ct,q)),Zt.set(Ct,q),Oe.push(Zt),rt&&!Vt&&(Vt=Zt.hasChanged(Ht))}Le[Zt.cid]||(Le[Zt.cid]=!0,Ae.push(Zt)),E[pe]=Zt}else $e&&(Ee=E[pe]=this._prepareModel(Ee,q))&&(Ne.push(Ee),this._addReference(Ee,q),Le[Ee.cid]=!0,Ae.push(Ee))}if(ht){for(pe=0;pe<this.length;pe++)Le[(Ee=this.models[pe]).cid]||Ie.push(Ee);Ie.length&&this._removeModels(Ie,q)}var nn=!1,fe=!rt&&$e&&ht;if(Ae.length&&fe?(nn=this.length!==Ae.length||w.some(this.models,function(se,be){return se!==Ae[be]}),this.models.length=0,u(this.models,Ae,0),this.length=this.models.length):Ne.length&&(rt&&(Vt=!0),u(this.models,Ne,ke??this.length),this.length=this.models.length),Vt&&this.sort({silent:!0}),!q.silent){for(pe=0;pe<Ne.length;pe++)ke!=null&&(q.index=ke+pe),(Ee=Ne[pe]).trigger("add",Ee,this,q);(Vt||nn)&&this.trigger("sort",this,q),(Ne.length||Ie.length||Oe.length)&&(q.changes={added:Ne,removed:Ie,merged:Oe},this.trigger("update",this,q))}return ue?E[0]:E}},reset:function(E,q){q=q?w.clone(q):{};for(var ue=0;ue<this.models.length;ue++)this._removeReference(this.models[ue],q);return q.previousModels=this.models,this._reset(),E=this.add(E,w.extend({silent:!0},q)),q.silent||this.trigger("reset",this,q),E},push:function(E,q){return this.add(E,w.extend({at:this.length},q))},pop:function(E){var q=this.at(this.length-1);return this.remove(q,E)},unshift:function(E,q){return this.add(E,w.extend({at:0},q))},shift:function(E){var q=this.at(0);return this.remove(q,E)},slice:function(){return A.apply(this.models,arguments)},get:function(E){if(E!=null)return this._byId[E]||this._byId[this.modelId(E.attributes||E)]||E.cid&&this._byId[E.cid]},has:function(E){return this.get(E)!=null},at:function(E){return E<0&&(E+=this.length),this.models[E]},where:function(E,q){return this[q?"find":"filter"](E)},findWhere:function(E){return this.where(E,!0)},sort:function(E){var q=this.comparator;if(!q)throw new Error("Cannot sort a set without a comparator");E||(E={});var ue=q.length;return w.isFunction(q)&&(q=w.bind(q,this)),ue===1||w.isString(q)?this.models=this.sortBy(q):this.models.sort(q),E.silent||this.trigger("sort",this,E),this},pluck:function(E){return this.map(E+"")},fetch:function(E){var q=(E=w.extend({parse:!0},E)).success,ue=this;return E.success=function(ke){var Ee=E.reset?"reset":"set";ue[Ee](ke,E),q&&q.call(E.context,ue,ke,E),ue.trigger("sync",ue,ke,E)},ve(this,E),this.sync("read",this,E)},create:function(E,q){var ue=(q=q?w.clone(q):{}).wait;if(!(E=this._prepareModel(E,q)))return!1;ue||this.add(E,q);var ke=this,Ee=q.success;return q.success=function(pe,Ae,Ne){ue&&ke.add(pe,Ne),Ee&&Ee.call(Ne.context,pe,Ae,Ne)},E.save(null,q),E},parse:function(E,q){return E},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(E){return E[this.model.prototype.idAttribute||"id"]},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(E,q){if(this._isModel(E))return E.collection||(E.collection=this),E;(q=q?w.clone(q):{}).collection=this;var ue=new this.model(E,q);return ue.validationError?(this.trigger("invalid",this,ue.validationError,q),!1):ue},_removeModels:function(E,q){for(var ue=[],ke=0;ke<E.length;ke++){var Ee=this.get(E[ke]);if(Ee){var pe=this.indexOf(Ee);this.models.splice(pe,1),this.length--,delete this._byId[Ee.cid];var Ae=this.modelId(Ee.attributes);Ae!=null&&delete this._byId[Ae],q.silent||(q.index=pe,Ee.trigger("remove",Ee,this,q)),ue.push(Ee),this._removeReference(Ee,q)}}return ue},_isModel:function(E){return E instanceof v},_addReference:function(E,q){this._byId[E.cid]=E;var ue=this.modelId(E.attributes);ue!=null&&(this._byId[ue]=E),E.on("all",this._onModelEvent,this)},_removeReference:function(E,q){delete this._byId[E.cid];var ue=this.modelId(E.attributes);ue!=null&&delete this._byId[ue],this===E.collection&&delete E.collection,E.off("all",this._onModelEvent,this)},_onModelEvent:function(E,q,ue,ke){if(q){if((E==="add"||E==="remove")&&ue!==this)return;if(E==="destroy"&&this.remove(q,ke),E==="change"){var Ee=this.modelId(q.previousAttributes()),pe=this.modelId(q.attributes);Ee!==pe&&(Ee!=null&&delete this._byId[Ee],pe!=null&&(this._byId[pe]=q))}}this.trigger.apply(this,arguments)}}),B(D,{forEach:3,each:3,map:3,collect:3,reduce:0,foldl:0,inject:0,reduceRight:0,foldr:0,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:3,includes:3,contains:3,invoke:0,max:3,min:3,toArray:1,size:1,first:3,head:3,take:3,initial:3,rest:3,tail:3,drop:3,last:3,without:0,difference:0,indexOf:3,shuffle:1,lastIndexOf:3,isEmpty:1,chain:1,sample:3,partition:3,groupBy:3,countBy:3,sortBy:3,indexBy:3,findIndex:3,findLastIndex:3},"models");var x=L.View=function(E){this.cid=w.uniqueId("view"),w.extend(this,w.pick(E,W)),this._ensureElement(),this.initialize.apply(this,arguments)},O=/^(\S+)\s*(.*)$/,W=["model","collection","el","id","attributes","className","tagName","events"];w.extend(x.prototype,H,{tagName:"div",$:function(E){return this.$el.find(E)},initialize:function(){},render:function(){return this},remove:function(){return this._removeElement(),this.stopListening(),this},_removeElement:function(){this.$el.remove()},setElement:function(E){return this.undelegateEvents(),this._setElement(E),this.delegateEvents(),this},_setElement:function(E){this.$el=E instanceof L.$?E:L.$(E),this.el=this.$el[0]},delegateEvents:function(E){if(E||(E=w.result(this,"events")),!E)return this;for(var q in this.undelegateEvents(),E){var ue=E[q];if(w.isFunction(ue)||(ue=this[ue]),ue){var ke=q.match(O);this.delegate(ke[1],ke[2],w.bind(ue,this))}}return this},delegate:function(E,q,ue){return this.$el.on(E+".delegateEvents"+this.cid,q,ue),this},undelegateEvents:function(){return this.$el&&this.$el.off(".delegateEvents"+this.cid),this},undelegate:function(E,q,ue){return this.$el.off(E+".delegateEvents"+this.cid,q,ue),this},_createElement:function(E){return document.createElement(E)},_ensureElement:function(){if(this.el)this.setElement(w.result(this,"el"));else{var E=w.extend({},w.result(this,"attributes"));this.id&&(E.id=w.result(this,"id")),this.className&&(E.class=w.result(this,"className")),this.setElement(this._createElement(w.result(this,"tagName"))),this._setAttributes(E)}},_setAttributes:function(E){this.$el.attr(E)}}),L.sync=function(E,q,ue){var ke=X[E];w.defaults(ue||(ue={}),{emulateHTTP:L.emulateHTTP,emulateJSON:L.emulateJSON});var Ee={type:ke,dataType:"json"};if(ue.url||(Ee.url=w.result(q,"url")||K()),ue.data!=null||!q||E!=="create"&&E!=="update"&&E!=="patch"||(Ee.contentType="application/json",Ee.data=JSON.stringify(ue.attrs||q.toJSON(ue))),ue.emulateJSON&&(Ee.contentType="application/x-www-form-urlencoded",Ee.data=Ee.data?{model:Ee.data}:{}),ue.emulateHTTP&&(ke==="PUT"||ke==="DELETE"||ke==="PATCH")){Ee.type="POST",ue.emulateJSON&&(Ee.data._method=ke);var pe=ue.beforeSend;ue.beforeSend=function(Oe){if(Oe.setRequestHeader("X-HTTP-Method-Override",ke),pe)return pe.apply(this,arguments)}}Ee.type==="GET"||ue.emulateJSON||(Ee.processData=!1);var Ae=ue.error;ue.error=function(Oe,Ie,Le){ue.textStatus=Ie,ue.errorThrown=Le,Ae&&Ae.call(ue.context,Oe,Ie,Le)};var Ne=ue.xhr=L.ajax(w.extend(Ee,ue));return q.trigger("request",q,Ne,ue),Ne};var X={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};L.ajax=function(){return L.$.ajax.apply(L.$,arguments)};var ie=L.Router=function(E){E||(E={}),E.routes&&(this.routes=E.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},le=/\((.*?)\)/g,ce=/(\(\?)?:\w+/g,F=/\*\w+/g,l=/[\-{}\[\]+?.,\\\^$|#\s]/g;w.extend(ie.prototype,H,{initialize:function(){},route:function(E,q,ue){w.isRegExp(E)||(E=this._routeToRegExp(E)),w.isFunction(q)&&(ue=q,q=""),ue||(ue=this[q]);var ke=this;return L.history.route(E,function(Ee){var pe=ke._extractParameters(E,Ee);ke.execute(ue,pe,q)!==!1&&(ke.trigger.apply(ke,["route:"+q].concat(pe)),ke.trigger("route",q,pe),L.history.trigger("route",ke,q,pe))}),this},execute:function(E,q,ue){E&&E.apply(this,q)},navigate:function(E,q){return L.history.navigate(E,q),this},_bindRoutes:function(){if(this.routes){this.routes=w.result(this,"routes");for(var E,q=w.keys(this.routes);(E=q.pop())!=null;)this.route(E,this.routes[E])}},_routeToRegExp:function(E){return E=E.replace(l,"\\$&").replace(le,"(?:$1)?").replace(ce,function(q,ue){return ue?q:"([^/?]+)"}).replace(F,"([^?]*?)"),new RegExp("^"+E+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(E,q){var ue=E.exec(q).slice(1);return w.map(ue,function(ke,Ee){return Ee===ue.length-1?ke||null:ke?decodeURIComponent(ke):null})}});var s=L.History=function(){this.handlers=[],this.checkUrl=w.bind(this.checkUrl,this),typeof window<"u"&&(this.location=window.location,this.history=window.history)},o=/^[#\/]|\s+$/g,h=/^\/+|\/+$/g,m=/#.*$/;s.started=!1,w.extend(s.prototype,H,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root&&!this.getSearch()},matchRoot:function(){return this.decodeFragment(this.location.pathname).slice(0,this.root.length-1)+"/"===this.root},decodeFragment:function(E){return decodeURI(E.replace(/%25/g,"%2525"))},getSearch:function(){var E=this.location.href.replace(/#.*/,"").match(/\?.+/);return E?E[0]:""},getHash:function(E){var q=(E||this).location.href.match(/#(.*)$/);return q?q[1]:""},getPath:function(){var E=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return E.charAt(0)==="/"?E.slice(1):E},getFragment:function(E){return E==null&&(E=this._usePushState||!this._wantsHashChange?this.getPath():this.getHash()),E.replace(o,"")},start:function(E){if(s.started)throw new Error("Backbone.history has already been started");if(s.started=!0,this.options=w.extend({root:"/"},this.options,E),this.root=this.options.root,this._wantsHashChange=this.options.hashChange!==!1,this._hasHashChange="onhashchange"in window&&(document.documentMode===void 0||document.documentMode>7),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(h,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var q=this.root.slice(0,-1)||"/";return this.location.replace(q+"#"+this.getPath()),!0}this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1;var ue=document.body,ke=ue.insertBefore(this.iframe,ue.firstChild).contentWindow;ke.document.open(),ke.document.close(),ke.location.hash="#"+this.fragment}var Ee=window.addEventListener||function(pe,Ae){return attachEvent("on"+pe,Ae)};if(this._usePushState?Ee("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?Ee("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var E=window.removeEventListener||function(q,ue){return detachEvent("on"+q,ue)};this._usePushState?E("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&E("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),s.started=!1},route:function(E,q){this.handlers.unshift({route:E,callback:q})},checkUrl:function(E){var q=this.getFragment();if(q===this.fragment&&this.iframe&&(q=this.getHash(this.iframe.contentWindow)),q===this.fragment)return!1;this.iframe&&this.navigate(q),this.loadUrl()},loadUrl:function(E){return!!this.matchRoot()&&(E=this.fragment=this.getFragment(E),w.some(this.handlers,function(q){if(q.route.test(E))return q.callback(E),!0}))},navigate:function(E,q){if(!s.started)return!1;q&&q!==!0||(q={trigger:!!q}),E=this.getFragment(E||"");var ue=this.root;E!==""&&E.charAt(0)!=="?"||(ue=ue.slice(0,-1)||"/");var ke=ue+E;if(E=this.decodeFragment(E.replace(m,"")),this.fragment!==E){if(this.fragment=E,this._usePushState)this.history[q.replace?"replaceState":"pushState"]({},document.title,ke);else{if(!this._wantsHashChange)return this.location.assign(ke);if(this._updateHash(this.location,E,q.replace),this.iframe&&E!==this.getHash(this.iframe.contentWindow)){var Ee=this.iframe.contentWindow;q.replace||(Ee.document.open(),Ee.document.close()),this._updateHash(Ee.location,E,q.replace)}}return q.trigger?this.loadUrl(E):void 0}},_updateHash:function(E,q,ue){if(ue){var ke=E.href.replace(/(javascript:|#).*$/,"");E.replace(ke+"#"+q)}else E.hash="#"+q}}),L.history=new s;var j=function(E,q){var ue,ke=this;return ue=E&&w.has(E,"constructor")?E.constructor:function(){return ke.apply(this,arguments)},w.extend(ue,ke,q),ue.prototype=w.create(ke.prototype,E),ue.prototype.constructor=ue,ue.__super__=ke.prototype,ue};v.extend=D.extend=ie.extend=x.extend=s.extend=j;var K=function(){throw new Error('A "url" property or function must be specified')},ve=function(E,q){var ue=q.error;q.error=function(ke){ue&&ue.call(q.context,E,ke,q),E.trigger("error",E,ke,q)}};return L}(J,te,Y,N)}.apply(Se,ye),we===void 0||(Je.exports=we)},9210:(Je,Se,b)=>{(function(ye){ye.extendMode("css",{commentStart:"/*",commentEnd:"*/",newlineAfterToken:function(J,Y){return/^[;{}]$/.test(Y)}}),ye.extendMode("javascript",{commentStart:"/*",commentEnd:"*/",newlineAfterToken:function(J,Y,N,te){return this.jsonMode?/^[\[,{]$/.test(Y)||/^}/.test(N):(Y!=";"||!te.lexical||te.lexical.type!=")")&&/^[;{}]$/.test(Y)&&!/^;/.test(N)}});var we=/^(a|abbr|acronym|area|base|bdo|big|br|button|caption|cite|code|col|colgroup|dd|del|dfn|em|frame|hr|iframe|img|input|ins|kbd|label|legend|link|map|object|optgroup|option|param|q|samp|script|select|small|span|strong|sub|sup|textarea|tt|var)$/;ye.extendMode("xml",{commentStart:"<!--",commentEnd:"-->",newlineAfterToken:function(J,Y,N,te){var $=!1;return this.configuration=="html"&&($=!!te.context&&we.test(te.context.tagName)),!$&&(J=="tag"&&/>$/.test(Y)&&te.context||/^</.test(N))}}),ye.defineExtension("commentRange",function(J,Y,N){var te=this,$=ye.innerMode(te.getMode(),te.getTokenAt(Y).state).mode;te.operation(function(){if(J)te.replaceRange($.commentEnd,N),te.replaceRange($.commentStart,Y),Y.line==N.line&&Y.ch==N.ch&&te.setCursor(Y.line,Y.ch+$.commentStart.length);else{var L=te.getRange(Y,N),w=L.indexOf($.commentStart),y=L.lastIndexOf($.commentEnd);w>-1&&y>-1&&y>w&&(L=L.substr(0,w)+L.substring(w+$.commentStart.length,y)+L.substr(y+$.commentEnd.length)),te.replaceRange(L,Y,N)}})}),ye.defineExtension("autoIndentRange",function(J,Y){var N=this;this.operation(function(){for(var te=J.line;te<=Y.line;te++)N.indentLine(te,"smart")})}),ye.defineExtension("autoFormatRange",function(J,Y){var N=this,te=N.getMode(),$=N.getRange(J,Y).split(` +`),L=ye.copyState(te,N.getTokenAt(J).state),w=N.getOption("tabSize"),y="",P=0,A=J.ch===0;function k(){y+=` +`,A=!0,++P}for(var B=0;B<$.length;++B){for(var G=new ye.StringStream($[B],w);!G.eol();){var M=ye.innerMode(te,L),H=te.token(G,L),Z=G.current();G.start=G.pos,A&&!/\S/.test(Z)||(y+=Z,A=!1),!A&&M.mode.newlineAfterToken&&M.mode.newlineAfterToken(H,Z,G.string.slice(G.pos)||$[B+1]||"",M.state)&&k()}!G.pos&&te.blankLine&&te.blankLine(L),!A&&B<$.length-1&&k()}N.operation(function(){N.replaceRange(y,J,Y);for(var _=J.line+1,C=J.line+P;_<=C;++_)N.indentLine(_,"smart");N.setSelection(J,N.getCursor(!1))})})})(b(4631))},4631:function(Je){Je.exports=function(){"use strict";var Se=navigator.userAgent,b=navigator.platform,ye=/gecko\/\d/i.test(Se),we=/MSIE \d/.test(Se),J=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Se),Y=/Edge\/(\d+)/.exec(Se),N=we||J||Y,te=N&&(we?document.documentMode||6:+(Y||J)[1]),$=!Y&&/WebKit\//.test(Se),L=$&&/Qt\/\d+\.\d+/.test(Se),w=!Y&&/Chrome\//.test(Se),y=/Opera\//.test(Se),P=/Apple Computer/.test(navigator.vendor),A=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Se),k=/PhantomJS/.test(Se),B=P&&(/Mobile\/\w+/.test(Se)||navigator.maxTouchPoints>2),G=/Android/.test(Se),M=B||G||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Se),H=B||/Mac/.test(b),Z=/\bCrOS\b/.test(Se),_=/win/i.test(b),C=y&&Se.match(/Version\/(\d*\.\d*)/);C&&(C=Number(C[1])),C&&C>=15&&(y=!1,$=!0);var z=H&&(L||y&&(C==null||C<12.11)),I=ye||N&&te>=9;function p(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var d,f=function(e,t){var r=e.className,n=p(t).exec(r);if(n){var i=r.slice(n.index+n[0].length);e.className=r.slice(0,n.index)+(i?n[1]+i:"")}};function v(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function D(e,t){return v(e).appendChild(t)}function g(e,t,r,n){var i=document.createElement(e);if(r&&(i.className=r),n&&(i.style.cssText=n),typeof t=="string")i.appendChild(document.createTextNode(t));else if(t)for(var a=0;a<t.length;++a)i.appendChild(t[a]);return i}function T(e,t,r,n){var i=g(e,t,r,n);return i.setAttribute("role","presentation"),i}function u(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function x(){var e;try{e=document.activeElement}catch{e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function O(e,t){var r=e.className;p(t).test(r)||(e.className+=(r?" ":"")+t)}function W(e,t){for(var r=e.split(" "),n=0;n<r.length;n++)r[n]&&!p(r[n]).test(t)&&(t+=" "+r[n]);return t}d=document.createRange?function(e,t,r,n){var i=document.createRange();return i.setEnd(n||e,r),i.setStart(e,t),i}:function(e,t,r){var n=document.body.createTextRange();try{n.moveToElementText(e.parentNode)}catch{return n}return n.collapse(!0),n.moveEnd("character",r),n.moveStart("character",t),n};var X=function(e){e.select()};function ie(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function le(e,t,r){for(var n in t||(t={}),e)!e.hasOwnProperty(n)||r===!1&&t.hasOwnProperty(n)||(t[n]=e[n]);return t}function ce(e,t,r,n,i){t==null&&(t=e.search(/[^\s\u00a0]/))==-1&&(t=e.length);for(var a=n||0,S=i||0;;){var R=e.indexOf(" ",a);if(R<0||R>=t)return S+(t-a);S+=R-a,S+=r-S%r,a=R+1}}B?X=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:N&&(X=function(e){try{e.select()}catch{}});var F=function(){this.id=null,this.f=null,this.time=0,this.handler=ie(this.onTimeout,this)};function l(e,t){for(var r=0;r<e.length;++r)if(e[r]==t)return r;return-1}F.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},F.prototype.set=function(e,t){this.f=t;var r=+new Date+e;(!this.id||r<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=r)};var s=50,o={toString:function(){return"CodeMirror.Pass"}},h={scroll:!1},m={origin:"*mouse"},j={origin:"+move"};function K(e,t,r){for(var n=0,i=0;;){var a=e.indexOf(" ",n);a==-1&&(a=e.length);var S=a-n;if(a==e.length||i+S>=t)return n+Math.min(S,t-i);if(i+=a-n,n=a+1,(i+=r-i%r)>=t)return n}}var ve=[""];function E(e){for(;ve.length<=e;)ve.push(q(ve)+" ");return ve[e]}function q(e){return e[e.length-1]}function ue(e,t){for(var r=[],n=0;n<e.length;n++)r[n]=t(e[n],n);return r}function ke(e,t,r){for(var n=0,i=r(t);n<e.length&&r(e[n])<=i;)n++;e.splice(n,0,t)}function Ee(){}function pe(e,t){var r;return Object.create?r=Object.create(e):(Ee.prototype=e,r=new Ee),t&&le(t,r),r}var Ae=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ne(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Ae.test(e))}function Oe(e,t){return t?!!(t.source.indexOf("\\w")>-1&&Ne(e))||t.test(e):Ne(e)}function Ie(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Le=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function $e(e){return e.charCodeAt(0)>=768&&Le.test(e)}function tt(e,t,r){for(;(r<0?t>0:t<e.length)&&$e(e.charAt(t));)t+=r;return t}function ht(e,t,r){for(var n=t>r?-1:1;;){if(t==r)return t;var i=(t+r)/2,a=n<0?Math.ceil(i):Math.floor(i);if(a==t)return e(a)?t:r;e(a)?r=a:t=a+n}}function Vt(e,t,r,n){if(!e)return n(t,r,"ltr",0);for(var i=!1,a=0;a<e.length;++a){var S=e[a];(S.from<r&&S.to>t||t==r&&S.to==t)&&(n(Math.max(S.from,t),Math.min(S.to,r),S.level==1?"rtl":"ltr",a),i=!0)}i||n(t,r,"ltr")}var rt=null;function Ht(e,t,r){var n;rt=null;for(var i=0;i<e.length;++i){var a=e[i];if(a.from<t&&a.to>t)return i;a.to==t&&(a.from!=a.to&&r=="before"?n=i:rt=i),a.from==t&&(a.from!=a.to&&r!="before"?n=i:rt=i)}return n??rt}var Zt=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function r(ae){return ae<=247?e.charAt(ae):1424<=ae&&ae<=1524?"R":1536<=ae&&ae<=1785?t.charAt(ae-1536):1774<=ae&&ae<=2220?"r":8192<=ae&&ae<=8203?"w":ae==8204?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,a=/[LRr]/,S=/[Lb1n]/,R=/[1n]/;function re(ae,je,De){this.level=ae,this.from=je,this.to=De}return function(ae,je){var De=je=="ltr"?"L":"R";if(ae.length==0||je=="ltr"&&!n.test(ae))return!1;for(var Be=ae.length,ze=[],qe=0;qe<Be;++qe)ze.push(r(ae.charCodeAt(qe)));for(var st=0,ft=De;st<Be;++st){var bt=ze[st];bt=="m"?ze[st]=ft:ft=bt}for(var Ot=0,pt=De;Ot<Be;++Ot){var Et=ze[Ot];Et=="1"&&pt=="r"?ze[Ot]="n":a.test(Et)&&(pt=Et,Et=="r"&&(ze[Ot]="R"))}for(var Pt=1,It=ze[0];Pt<Be-1;++Pt){var xn=ze[Pt];xn=="+"&&It=="1"&&ze[Pt+1]=="1"?ze[Pt]="1":xn!=","||It!=ze[Pt+1]||It!="1"&&It!="n"||(ze[Pt]=It),It=xn}for(var On=0;On<Be;++On){var vr=ze[On];if(vr==",")ze[On]="N";else if(vr=="%"){var _n=void 0;for(_n=On+1;_n<Be&&ze[_n]=="%";++_n);for(var Cr=On&&ze[On-1]=="!"||_n<Be&&ze[_n]=="1"?"1":"N",yr=On;yr<_n;++yr)ze[yr]=Cr;On=_n-1}}for(var Ln=0,hr=De;Ln<Be;++Ln){var sr=ze[Ln];hr=="L"&&sr=="1"?ze[Ln]="L":a.test(sr)&&(hr=sr)}for(var Wn=0;Wn<Be;++Wn)if(i.test(ze[Wn])){var Fn=void 0;for(Fn=Wn+1;Fn<Be&&i.test(ze[Fn]);++Fn);for(var $n=(Wn?ze[Wn-1]:De)=="L",fr=$n==((Fn<Be?ze[Fn]:De)=="L")?$n?"L":"R":De,Wr=Wn;Wr<Fn;++Wr)ze[Wr]=fr;Wn=Fn-1}for(var Er,nr=[],qn=0;qn<Be;)if(S.test(ze[qn])){var gs=qn;for(++qn;qn<Be&&S.test(ze[qn]);++qn);nr.push(new re(0,gs,qn))}else{var Nr=qn,ti=nr.length,ni=je=="rtl"?1:0;for(++qn;qn<Be&&ze[qn]!="L";++qn);for(var ar=Nr;ar<qn;)if(R.test(ze[ar])){Nr<ar&&(nr.splice(ti,0,new re(1,Nr,ar)),ti+=ni);var ki=ar;for(++ar;ar<qn&&R.test(ze[ar]);++ar);nr.splice(ti,0,new re(2,ki,ar)),ti+=ni,Nr=ar}else++ar;Nr<qn&&nr.splice(ti,0,new re(1,Nr,qn))}return je=="ltr"&&(nr[0].level==1&&(Er=ae.match(/^\s+/))&&(nr[0].from=Er[0].length,nr.unshift(new re(0,0,Er[0].length))),q(nr).level==1&&(Er=ae.match(/\s+$/))&&(q(nr).to-=Er[0].length,nr.push(new re(0,Be-Er[0].length,Be)))),je=="rtl"?nr.reverse():nr}}();function Ct(e,t){var r=e.order;return r==null&&(r=e.order=Zt(e.text,t)),r}var nn=[],fe=function(e,t,r){if(e.addEventListener)e.addEventListener(t,r,!1);else if(e.attachEvent)e.attachEvent("on"+t,r);else{var n=e._handlers||(e._handlers={});n[t]=(n[t]||nn).concat(r)}};function se(e,t){return e._handlers&&e._handlers[t]||nn}function be(e,t,r){if(e.removeEventListener)e.removeEventListener(t,r,!1);else if(e.detachEvent)e.detachEvent("on"+t,r);else{var n=e._handlers,i=n&&n[t];if(i){var a=l(i,r);a>-1&&(n[t]=i.slice(0,a).concat(i.slice(a+1)))}}}function _e(e,t){var r=se(e,t);if(r.length)for(var n=Array.prototype.slice.call(arguments,2),i=0;i<r.length;++i)r[i].apply(null,n)}function Fe(e,t,r){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),_e(e,r||t.type,e,t),dn(t)||t.codemirrorIgnore}function He(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var r=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),n=0;n<t.length;++n)l(r,t[n])==-1&&r.push(t[n])}function at(e,t){return se(e,t).length>0}function Ye(e){e.prototype.on=function(t,r){fe(this,t,r)},e.prototype.off=function(t,r){be(this,t,r)}}function gt(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ut(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function dn(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==0}function rn(e){gt(e),Ut(e)}function Qt(e){return e.target||e.srcElement}function Ft(e){var t=e.which;return t==null&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),H&&e.ctrlKey&&t==1&&(t=3),t}var ct,kt,qt=function(){if(N&&te<9)return!1;var e=g("div");return"draggable"in e||"dragDrop"in e}();function Kt(e){if(ct==null){var t=g("span","\u200B");D(e,g("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(ct=t.offsetWidth<=1&&t.offsetHeight>2&&!(N&&te<8))}var r=ct?g("span","\u200B"):g("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}function sn(e){if(kt!=null)return kt;var t=D(e,document.createTextNode("A\u062EA")),r=d(t,0,1).getBoundingClientRect(),n=d(t,1,2).getBoundingClientRect();return v(e),!(!r||r.left==r.right)&&(kt=n.right-r.right<3)}var an,ln=` + +b`.split(/\n/).length!=3?function(e){for(var t=0,r=[],n=e.length;t<=n;){var i=e.indexOf(` +`,t);i==-1&&(i=e.length);var a=e.slice(t,e.charAt(i-1)=="\r"?i-1:i),S=a.indexOf("\r");S!=-1?(r.push(a.slice(0,S)),t+=S+1):(r.push(a),t=i+1)}return r}:function(e){return e.split(/\r\n?|\n/)},Rn=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!(!t||t.parentElement()!=e)&&t.compareEndPoints("StartToEnd",t)!=0},Hn="oncopy"in(an=g("div"))||(an.setAttribute("oncopy","return;"),typeof an.oncopy=="function"),Mn=null;function wn(e){if(Mn!=null)return Mn;var t=D(e,g("span","x")),r=t.getBoundingClientRect(),n=d(t,0,1).getBoundingClientRect();return Mn=Math.abs(r.left-n.left)>1}var Sn={},pn={};function vn(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Sn[e]=t}function Qn(e,t){pn[e]=t}function kn(e){if(typeof e=="string"&&pn.hasOwnProperty(e))e=pn[e];else if(e&&typeof e.name=="string"&&pn.hasOwnProperty(e.name)){var t=pn[e.name];typeof t=="string"&&(t={name:t}),(e=pe(t,e)).name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return kn("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return kn("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Bn(e,t){t=kn(t);var r=Sn[t.name];if(!r)return Bn(e,"text/plain");var n=r(e,t);if(fn.hasOwnProperty(t.name)){var i=fn[t.name];for(var a in i)i.hasOwnProperty(a)&&(n.hasOwnProperty(a)&&(n["_"+a]=n[a]),n[a]=i[a])}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var S in t.modeProps)n[S]=t.modeProps[S];return n}var fn={};function Gn(e,t){le(t,fn.hasOwnProperty(e)?fn[e]:fn[e]={})}function gn(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var r={};for(var n in t){var i=t[n];i instanceof Array&&(i=i.concat([])),r[n]=i}return r}function Pn(e,t){for(var r;e.innerMode&&(r=e.innerMode(t))&&r.mode!=e;)t=r.state,e=r.mode;return r||{mode:e,state:t}}function Kn(e,t,r){return!e.startState||e.startState(t,r)}var At=function(e,t,r){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=r};function xt(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var r=e;!r.lines;)for(var n=0;;++n){var i=r.children[n],a=i.chunkSize();if(t<a){r=i;break}t-=a}return r.lines[t]}function Rt(e,t,r){var n=[],i=t.line;return e.iter(t.line,r.line+1,function(a){var S=a.text;i==r.line&&(S=S.slice(0,r.ch)),i==t.line&&(S=S.slice(t.ch)),n.push(S),++i}),n}function ir(e,t,r){var n=[];return e.iter(t,r,function(i){n.push(i.text)}),n}function Cn(e,t){var r=t-e.height;if(r)for(var n=e;n;n=n.parent)n.height+=r}function $t(e){if(e.parent==null)return null;for(var t=e.parent,r=l(t.lines,e),n=t.parent;n;t=n,n=n.parent)for(var i=0;n.children[i]!=t;++i)r+=n.children[i].chunkSize();return r+t.first}function Jt(e,t){var r=e.first;e:do{for(var n=0;n<e.children.length;++n){var i=e.children[n],a=i.height;if(t<a){e=i;continue e}t-=a,r+=i.chunkSize()}return r}while(!e.lines);for(var S=0;S<e.lines.length;++S){var R=e.lines[S].height;if(t<R)break;t-=R}return r+S}function Nn(e,t){return t>=e.first&&t<e.first+e.size}function Xn(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function ot(e,t,r){if(r===void 0&&(r=null),!(this instanceof ot))return new ot(e,t,r);this.line=e,this.ch=t,this.sticky=r}function Nt(e,t){return e.line-t.line||e.ch-t.ch}function he(e,t){return e.sticky==t.sticky&&Nt(e,t)==0}function Te(e){return ot(e.line,e.ch)}function Ke(e,t){return Nt(e,t)<0?t:e}function U(e,t){return Nt(e,t)<0?e:t}function oe(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function ne(e,t){if(t.line<e.first)return ot(e.first,0);var r=e.first+e.size-1;return t.line>r?ot(r,xt(e,r).text.length):ge(t,xt(e,t.line).text.length)}function ge(e,t){var r=e.ch;return r==null||r>t?ot(e.line,t):r<0?ot(e.line,0):e}function Ge(e,t){for(var r=[],n=0;n<t.length;n++)r[n]=ne(e,t[n]);return r}At.prototype.eol=function(){return this.pos>=this.string.length},At.prototype.sol=function(){return this.pos==this.lineStart},At.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},At.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},At.prototype.eat=function(e){var t=this.string.charAt(this.pos);if(typeof e=="string"?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},At.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},At.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},At.prototype.skipToEnd=function(){this.pos=this.string.length},At.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},At.prototype.backUp=function(e){this.pos-=e},At.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ce(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ce(this.string,this.lineStart,this.tabSize):0)},At.prototype.indentation=function(){return ce(this.string,null,this.tabSize)-(this.lineStart?ce(this.string,this.lineStart,this.tabSize):0)},At.prototype.match=function(e,t,r){if(typeof e!="string"){var n=this.string.slice(this.pos).match(e);return n&&n.index>0?null:(n&&t!==!1&&(this.pos+=n[0].length),n)}var i=function(a){return r?a.toLowerCase():a};if(i(this.string.substr(this.pos,e.length))==i(e))return t!==!1&&(this.pos+=e.length),!0},At.prototype.current=function(){return this.string.slice(this.start,this.pos)},At.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},At.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},At.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var yt=function(e,t){this.state=e,this.lookAhead=t},nt=function(e,t,r,n){this.state=t,this.doc=e,this.line=r,this.maxLookAhead=n||0,this.baseTokens=null,this.baseTokenPos=1};function Qe(e,t,r,n){var i=[e.state.modeGen],a={};zn(e,t.text,e.doc.mode,r,function(ae,je){return i.push(ae,je)},a,n);for(var S=r.state,R=function(ae){r.baseTokens=i;var je=e.state.overlays[ae],De=1,Be=0;r.state=!0,zn(e,t.text,je.mode,r,function(ze,qe){for(var st=De;Be<ze;){var ft=i[De];ft>ze&&i.splice(De,1,ze,i[De+1],ft),De+=2,Be=Math.min(ze,ft)}if(qe)if(je.opaque)i.splice(st,De-st,ze,"overlay "+qe),De=st+2;else for(;st<De;st+=2){var bt=i[st+1];i[st+1]=(bt?bt+" ":"")+"overlay "+qe}},a),r.state=S,r.baseTokens=null,r.baseTokenPos=1},re=0;re<e.state.overlays.length;++re)R(re);return{styles:i,classes:a.bgClass||a.textClass?a:null}}function wt(e,t,r){if(!t.styles||t.styles[0]!=e.state.modeGen){var n=jt(e,$t(t)),i=t.text.length>e.options.maxHighlightLength&&gn(e.doc.mode,n.state),a=Qe(e,t,n);i&&(n.state=i),t.stateAfter=n.save(!i),t.styles=a.styles,a.classes?t.styleClasses=a.classes:t.styleClasses&&(t.styleClasses=null),r===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function jt(e,t,r){var n=e.doc,i=e.display;if(!n.mode.startState)return new nt(n,!0,t);var a=xe(e,t,r),S=a>n.first&&xt(n,a-1).stateAfter,R=S?nt.fromSaved(n,S,a):new nt(n,Kn(n.mode),a);return n.iter(a,t,function(re){Mt(e,re.text,R);var ae=R.line;re.stateAfter=ae==t-1||ae%5==0||ae>=i.viewFrom&&ae<i.viewTo?R.save():null,R.nextLine()}),r&&(n.modeFrontier=R.line),R}function Mt(e,t,r,n){var i=e.doc.mode,a=new At(t,e.options.tabSize,r);for(a.start=a.pos=n||0,t==""&&en(i,r.state);!a.eol();)Gt(i,a,r.state),a.start=a.pos}function en(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var r=Pn(e,t);return r.mode.blankLine?r.mode.blankLine(r.state):void 0}}function Gt(e,t,r,n){for(var i=0;i<10;i++){n&&(n[0]=Pn(e,r).mode);var a=e.token(t,r);if(t.pos>t.start)return a}throw new Error("Mode "+e.name+" failed to advance stream.")}nt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},nt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},nt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},nt.fromSaved=function(e,t,r){return t instanceof yt?new nt(e,gn(e.mode,t.state),r,t.lookAhead):new nt(e,gn(e.mode,t),r)},nt.prototype.save=function(e){var t=e!==!1?gn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new yt(t,this.maxLookAhead):t};var tn=function(e,t,r){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=r};function Dn(e,t,r,n){var i,a,S=e.doc,R=S.mode,re=xt(S,(t=ne(S,t)).line),ae=jt(e,t.line,r),je=new At(re.text,e.options.tabSize,ae);for(n&&(a=[]);(n||je.pos<t.ch)&&!je.eol();)je.start=je.pos,i=Gt(R,je,ae.state),n&&a.push(new tn(je,i,gn(S.mode,ae.state)));return n?a:new tn(je,i,ae.state)}function cn(e,t){if(e)for(;;){var r=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!r)break;e=e.slice(0,r.index)+e.slice(r.index+r[0].length);var n=r[1]?"bgClass":"textClass";t[n]==null?t[n]=r[2]:new RegExp("(?:^|\\s)"+r[2]+"(?:$|\\s)").test(t[n])||(t[n]+=" "+r[2])}return e}function zn(e,t,r,n,i,a,S){var R=r.flattenSpans;R==null&&(R=e.options.flattenSpans);var re,ae=0,je=null,De=new At(t,e.options.tabSize,n),Be=e.options.addModeClass&&[null];for(t==""&&cn(en(r,n.state),a);!De.eol();){if(De.pos>e.options.maxHighlightLength?(R=!1,S&&Mt(e,t,n,De.pos),De.pos=t.length,re=null):re=cn(Gt(r,De,n.state,Be),a),Be){var ze=Be[0].name;ze&&(re="m-"+(re?ze+" "+re:ze))}if(!R||je!=re){for(;ae<De.start;)i(ae=Math.min(De.start,ae+5e3),je);je=re}De.start=De.pos}for(;ae<De.pos;){var qe=Math.min(De.pos,ae+5e3);i(qe,je),ae=qe}}function xe(e,t,r){for(var n,i,a=e.doc,S=r?-1:t-(e.doc.mode.innerMode?1e3:100),R=t;R>S;--R){if(R<=a.first)return a.first;var re=xt(a,R-1),ae=re.stateAfter;if(ae&&(!r||R+(ae instanceof yt?ae.lookAhead:0)<=a.modeFrontier))return R;var je=ce(re.text,null,e.options.tabSize);(i==null||n>je)&&(i=R-1,n=je)}return i}function Pe(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var r=e.first,n=t-1;n>r;n--){var i=xt(e,n).stateAfter;if(i&&(!(i instanceof yt)||n+i.lookAhead<t)){r=n+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,r)}}var Q=!1,c=!1;function V(){Q=!0}function me(){c=!0}function Ce(e,t,r){this.marker=e,this.from=t,this.to=r}function Ze(e,t){if(e)for(var r=0;r<e.length;++r){var n=e[r];if(n.marker==t)return n}}function We(e,t){for(var r,n=0;n<e.length;++n)e[n]!=t&&(r||(r=[])).push(e[n]);return r}function it(e,t,r){var n=r&&window.WeakSet&&(r.markedSpans||(r.markedSpans=new WeakSet));n&&n.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],n&&n.add(e.markedSpans)),t.marker.attachLine(e)}function Xe(e,t,r){var n;if(e)for(var i=0;i<e.length;++i){var a=e[i],S=a.marker;if(a.from==null||(S.inclusiveLeft?a.from<=t:a.from<t)||a.from==t&&S.type=="bookmark"&&(!r||!a.marker.insertLeft)){var R=a.to==null||(S.inclusiveRight?a.to>=t:a.to>t);(n||(n=[])).push(new Ce(S,a.from,R?null:a.to))}}return n}function lt(e,t,r){var n;if(e)for(var i=0;i<e.length;++i){var a=e[i],S=a.marker;if(a.to==null||(S.inclusiveRight?a.to>=t:a.to>t)||a.from==t&&S.type=="bookmark"&&(!r||a.marker.insertLeft)){var R=a.from==null||(S.inclusiveLeft?a.from<=t:a.from<t);(n||(n=[])).push(new Ce(S,R?null:a.from-t,a.to==null?null:a.to-t))}}return n}function ut(e,t){if(t.full)return null;var r=Nn(e,t.from.line)&&xt(e,t.from.line).markedSpans,n=Nn(e,t.to.line)&&xt(e,t.to.line).markedSpans;if(!r&&!n)return null;var i=t.from.ch,a=t.to.ch,S=Nt(t.from,t.to)==0,R=Xe(r,i,S),re=lt(n,a,S),ae=t.text.length==1,je=q(t.text).length+(ae?i:0);if(R)for(var De=0;De<R.length;++De){var Be=R[De];if(Be.to==null){var ze=Ze(re,Be.marker);ze?ae&&(Be.to=ze.to==null?null:ze.to+je):Be.to=i}}if(re)for(var qe=0;qe<re.length;++qe){var st=re[qe];st.to!=null&&(st.to+=je),st.from==null?Ze(R,st.marker)||(st.from=je,ae&&(R||(R=[])).push(st)):(st.from+=je,ae&&(R||(R=[])).push(st))}R&&(R=mt(R)),re&&re!=R&&(re=mt(re));var ft=[R];if(!ae){var bt,Ot=t.text.length-2;if(Ot>0&&R)for(var pt=0;pt<R.length;++pt)R[pt].to==null&&(bt||(bt=[])).push(new Ce(R[pt].marker,null,null));for(var Et=0;Et<Ot;++Et)ft.push(bt);ft.push(re)}return ft}function mt(e){for(var t=0;t<e.length;++t){var r=e[t];r.from!=null&&r.from==r.to&&r.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function _t(e,t,r){var n=null;if(e.iter(t.line,r.line+1,function(ze){if(ze.markedSpans)for(var qe=0;qe<ze.markedSpans.length;++qe){var st=ze.markedSpans[qe].marker;!st.readOnly||n&&l(n,st)!=-1||(n||(n=[])).push(st)}}),!n)return null;for(var i=[{from:t,to:r}],a=0;a<n.length;++a)for(var S=n[a],R=S.find(0),re=0;re<i.length;++re){var ae=i[re];if(!(Nt(ae.to,R.from)<0||Nt(ae.from,R.to)>0)){var je=[re,1],De=Nt(ae.from,R.from),Be=Nt(ae.to,R.to);(De<0||!S.inclusiveLeft&&!De)&&je.push({from:ae.from,to:R.from}),(Be>0||!S.inclusiveRight&&!Be)&&je.push({from:R.to,to:ae.to}),i.splice.apply(i,je),re+=je.length-3}}return i}function Dt(e){var t=e.markedSpans;if(t){for(var r=0;r<t.length;++r)t[r].marker.detachLine(e);e.markedSpans=null}}function Bt(e,t){if(t){for(var r=0;r<t.length;++r)t[r].marker.attachLine(e);e.markedSpans=t}}function Xt(e){return e.inclusiveLeft?-1:0}function un(e){return e.inclusiveRight?1:0}function on(e,t){var r=e.lines.length-t.lines.length;if(r!=0)return r;var n=e.find(),i=t.find(),a=Nt(n.from,i.from)||Xt(e)-Xt(t);if(a)return-a;var S=Nt(n.to,i.to)||un(e)-un(t);return S||t.id-e.id}function yn(e,t){var r,n=c&&e.markedSpans;if(n)for(var i=void 0,a=0;a<n.length;++a)(i=n[a]).marker.collapsed&&(t?i.from:i.to)==null&&(!r||on(r,i.marker)<0)&&(r=i.marker);return r}function An(e){return yn(e,!0)}function vt(e){return yn(e,!1)}function Tt(e,t){var r,n=c&&e.markedSpans;if(n)for(var i=0;i<n.length;++i){var a=n[i];a.marker.collapsed&&(a.from==null||a.from<t)&&(a.to==null||a.to>t)&&(!r||on(r,a.marker)<0)&&(r=a.marker)}return r}function Lt(e,t,r,n,i){var a=xt(e,t),S=c&&a.markedSpans;if(S)for(var R=0;R<S.length;++R){var re=S[R];if(re.marker.collapsed){var ae=re.marker.find(0),je=Nt(ae.from,r)||Xt(re.marker)-Xt(i),De=Nt(ae.to,n)||un(re.marker)-un(i);if(!(je>=0&&De<=0||je<=0&&De>=0)&&(je<=0&&(re.marker.inclusiveRight&&i.inclusiveLeft?Nt(ae.to,r)>=0:Nt(ae.to,r)>0)||je>=0&&(re.marker.inclusiveRight&&i.inclusiveLeft?Nt(ae.from,n)<=0:Nt(ae.from,n)<0)))return!0}}}function St(e){for(var t;t=An(e);)e=t.find(-1,!0).line;return e}function hn(e){for(var t;t=vt(e);)e=t.find(1,!0).line;return e}function er(e){for(var t,r;t=vt(e);)e=t.find(1,!0).line,(r||(r=[])).push(e);return r}function Tn(e,t){var r=xt(e,t),n=St(r);return r==n?t:$t(n)}function dr(e,t){if(t>e.lastLine())return t;var r,n=xt(e,t);if(!Un(e,n))return t;for(;r=vt(n);)n=r.find(1,!0).line;return $t(n)+1}function Un(e,t){var r=c&&t.markedSpans;if(r){for(var n=void 0,i=0;i<r.length;++i)if((n=r[i]).marker.collapsed&&(n.from==null||!n.marker.widgetNode&&n.from==0&&n.marker.inclusiveLeft&&jr(e,t,n)))return!0}}function jr(e,t,r){if(r.to==null){var n=r.marker.find(1,!0);return jr(e,n.line,Ze(n.line.markedSpans,r.marker))}if(r.marker.inclusiveRight&&r.to==t.text.length)return!0;for(var i=void 0,a=0;a<t.markedSpans.length;++a)if((i=t.markedSpans[a]).marker.collapsed&&!i.marker.widgetNode&&i.from==r.to&&(i.to==null||i.to!=r.from)&&(i.marker.inclusiveLeft||r.marker.inclusiveRight)&&jr(e,t,i))return!0}function lr(e){for(var t=0,r=(e=St(e)).parent,n=0;n<r.lines.length;++n){var i=r.lines[n];if(i==e)break;t+=i.height}for(var a=r.parent;a;a=(r=a).parent)for(var S=0;S<a.children.length;++S){var R=a.children[S];if(R==r)break;t+=R.height}return t}function Mr(e){if(e.height==0)return 0;for(var t,r=e.text.length,n=e;t=An(n);){var i=t.find(0,!0);n=i.from.line,r+=i.from.ch-i.to.ch}for(n=e;t=vt(n);){var a=t.find(0,!0);r-=n.text.length-a.from.ch,r+=(n=a.to.line).text.length-a.to.ch}return r}function kr(e){var t=e.display,r=e.doc;t.maxLine=xt(r,r.first),t.maxLineLength=Mr(t.maxLine),t.maxLineChanged=!0,r.iter(function(n){var i=Mr(n);i>t.maxLineLength&&(t.maxLineLength=i,t.maxLine=n)})}var Or=function(e,t,r){this.text=e,Bt(this,t),this.height=r?r(this):1};function pr(e,t,r,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Dt(e),Bt(e,r);var i=n?n(e):1;i!=e.height&&Cn(e,i)}function ii(e){e.parent=null,Dt(e)}Or.prototype.lineNo=function(){return $t(this)},Ye(Or);var to={},no={};function Si(e,t){if(!e||/^\s*$/.test(e))return null;var r=t.addModeClass?no:to;return r[e]||(r[e]=e.replace(/\S+/g,"cm-$&"))}function Pi(e,t){var r=T("span",null,null,$?"padding-right: .1px":null),n={pre:T("pre",[r],"CodeMirror-line"),content:r,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var a=i?t.rest[i-1]:t.line,S=void 0;n.pos=0,n.addToken=ro,sn(e.display.measure)&&(S=Ct(a,e.doc.direction))&&(n.addToken=Ro(n.addToken,S)),n.map=[],oo(a,n,wt(e,a,t!=e.display.externalMeasured&&$t(a))),a.styleClasses&&(a.styleClasses.bgClass&&(n.bgClass=W(a.styleClasses.bgClass,n.bgClass||"")),a.styleClasses.textClass&&(n.textClass=W(a.styleClasses.textClass,n.textClass||""))),n.map.length==0&&n.map.push(0,0,n.content.appendChild(Kt(e.display.measure))),i==0?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if($){var R=n.content.lastChild;(/\bcm-tab\b/.test(R.className)||R.querySelector&&R.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return _e(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=W(n.pre.className,n.textClass||"")),n}function Lo(e){var t=g("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function ro(e,t,r,n,i,a,S){if(t){var R,re=e.splitSpaces?io(t,e.trailingSpace):t,ae=e.cm.state.specialChars,je=!1;if(ae.test(t)){R=document.createDocumentFragment();for(var De=0;;){ae.lastIndex=De;var Be=ae.exec(t),ze=Be?Be.index-De:t.length-De;if(ze){var qe=document.createTextNode(re.slice(De,De+ze));N&&te<9?R.appendChild(g("span",[qe])):R.appendChild(qe),e.map.push(e.pos,e.pos+ze,qe),e.col+=ze,e.pos+=ze}if(!Be)break;De+=ze+1;var st=void 0;if(Be[0]==" "){var ft=e.cm.options.tabSize,bt=ft-e.col%ft;(st=R.appendChild(g("span",E(bt),"cm-tab"))).setAttribute("role","presentation"),st.setAttribute("cm-text"," "),e.col+=bt}else Be[0]=="\r"||Be[0]==` +`?((st=R.appendChild(g("span",Be[0]=="\r"?"\u240D":"\u2424","cm-invalidchar"))).setAttribute("cm-text",Be[0]),e.col+=1):((st=e.cm.options.specialCharPlaceholder(Be[0])).setAttribute("cm-text",Be[0]),N&&te<9?R.appendChild(g("span",[st])):R.appendChild(st),e.col+=1);e.map.push(e.pos,e.pos+1,st),e.pos++}}else e.col+=t.length,R=document.createTextNode(re),e.map.push(e.pos,e.pos+t.length,R),N&&te<9&&(je=!0),e.pos+=t.length;if(e.trailingSpace=re.charCodeAt(t.length-1)==32,r||n||i||je||a||S){var Ot=r||"";n&&(Ot+=n),i&&(Ot+=i);var pt=g("span",[R],Ot,a);if(S)for(var Et in S)S.hasOwnProperty(Et)&&Et!="style"&&Et!="class"&&pt.setAttribute(Et,S[Et]);return e.content.appendChild(pt)}e.content.appendChild(R)}}function io(e,t){if(e.length>1&&!/ /.test(e))return e;for(var r=t,n="",i=0;i<e.length;i++){var a=e.charAt(i);a!=" "||!r||i!=e.length-1&&e.charCodeAt(i+1)!=32||(a="\xA0"),n+=a,r=a==" "}return n}function Ro(e,t){return function(r,n,i,a,S,R,re){i=i?i+" cm-force-border":"cm-force-border";for(var ae=r.pos,je=ae+n.length;;){for(var De=void 0,Be=0;Be<t.length&&!((De=t[Be]).to>ae&&De.from<=ae);Be++);if(De.to>=je)return e(r,n,i,a,S,R,re);e(r,n.slice(0,De.to-ae),i,a,null,R,re),a=null,n=n.slice(De.to-ae),ae=De.to}}}function oi(e,t,r,n){var i=!n&&r.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!n&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",r.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function oo(e,t,r){var n=e.markedSpans,i=e.text,a=0;if(n)for(var S,R,re,ae,je,De,Be,ze=i.length,qe=0,st=1,ft="",bt=0;;){if(bt==qe){re=ae=je=R="",Be=null,De=null,bt=1/0;for(var Ot=[],pt=void 0,Et=0;Et<n.length;++Et){var Pt=n[Et],It=Pt.marker;if(It.type=="bookmark"&&Pt.from==qe&&It.widgetNode)Ot.push(It);else if(Pt.from<=qe&&(Pt.to==null||Pt.to>qe||It.collapsed&&Pt.to==qe&&Pt.from==qe)){if(Pt.to!=null&&Pt.to!=qe&&bt>Pt.to&&(bt=Pt.to,ae=""),It.className&&(re+=" "+It.className),It.css&&(R=(R?R+";":"")+It.css),It.startStyle&&Pt.from==qe&&(je+=" "+It.startStyle),It.endStyle&&Pt.to==bt&&(pt||(pt=[])).push(It.endStyle,Pt.to),It.title&&((Be||(Be={})).title=It.title),It.attributes)for(var xn in It.attributes)(Be||(Be={}))[xn]=It.attributes[xn];It.collapsed&&(!De||on(De.marker,It)<0)&&(De=Pt)}else Pt.from>qe&&bt>Pt.from&&(bt=Pt.from)}if(pt)for(var On=0;On<pt.length;On+=2)pt[On+1]==bt&&(ae+=" "+pt[On]);if(!De||De.from==qe)for(var vr=0;vr<Ot.length;++vr)oi(t,0,Ot[vr]);if(De&&(De.from||0)==qe){if(oi(t,(De.to==null?ze+1:De.to)-qe,De.marker,De.from==null),De.to==null)return;De.to==qe&&(De=!1)}}if(qe>=ze)break;for(var _n=Math.min(ze,bt);;){if(ft){var Cr=qe+ft.length;if(!De){var yr=Cr>_n?ft.slice(0,_n-qe):ft;t.addToken(t,yr,S?S+re:re,je,qe+yr.length==bt?ae:"",R,Be)}if(Cr>=_n){ft=ft.slice(_n-qe),qe=_n;break}qe=Cr,je=""}ft=i.slice(a,a=r[st++]),S=Si(r[st++],t.cm.options)}}else for(var Ln=1;Ln<r.length;Ln+=2)t.addToken(t,i.slice(a,a=r[Ln]),Si(r[Ln+1],t.cm.options))}function si(e,t,r){this.line=t,this.rest=er(t),this.size=this.rest?$t(q(this.rest))-r+1:1,this.node=this.text=null,this.hidden=Un(e,t)}function Sr(e,t,r){for(var n,i=[],a=t;a<r;a=n){var S=new si(e.doc,xt(e.doc,a),a);n=a+S.size,i.push(S)}return i}var gr=null;function so(e){gr?gr.ops.push(e):e.ownsGroup=gr={ops:[e],delayedCallbacks:[]}}function ao(e){var t=e.delayedCallbacks,r=0;do{for(;r<t.length;r++)t[r].call(null);for(var n=0;n<e.ops.length;n++){var i=e.ops[n];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(r<t.length)}function lo(e,t){var r=e.ownsGroup;if(r)try{ao(r)}finally{gr=null,t(r)}}var Ar=null;function In(e,t){var r=se(e,t);if(r.length){var n,i=Array.prototype.slice.call(arguments,2);gr?n=gr.delayedCallbacks:Ar?n=Ar:(n=Ar=[],setTimeout($r,0));for(var a=function(R){n.push(function(){return r[R].apply(null,i)})},S=0;S<r.length;++S)a(S)}}function $r(){var e=Ar;Ar=null;for(var t=0;t<e.length;++t)e[t]()}function _i(e,t,r,n){for(var i=0;i<t.changes.length;i++){var a=t.changes[i];a=="text"?co(e,t):a=="gutter"?Ei(e,t,r,n):a=="class"?ai(e,t):a=="widget"&&ji(e,t,n)}t.changes=null}function Ir(e){return e.node==e.text&&(e.node=g("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),N&&te<8&&(e.node.style.zIndex=2)),e.node}function qr(e,t){var r=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(r&&(r+=" CodeMirror-linebackground"),t.background)r?t.background.className=r:(t.background.parentNode.removeChild(t.background),t.background=null);else if(r){var n=Ir(t);t.background=n.insertBefore(g("div",null,r),n.firstChild),e.display.input.setUneditable(t.background)}}function Ti(e,t){var r=e.display.externalMeasured;return r&&r.line==t.line?(e.display.externalMeasured=null,t.measure=r.measure,r.built):Pi(e,t)}function co(e,t){var r=t.text.className,n=Ti(e,t);t.text==t.node&&(t.node=n.pre),t.text.parentNode.replaceChild(n.pre,t.text),t.text=n.pre,n.bgClass!=t.bgClass||n.textClass!=t.textClass?(t.bgClass=n.bgClass,t.textClass=n.textClass,ai(e,t)):r&&(t.text.className=r)}function ai(e,t){qr(e,t),t.line.wrapClass?Ir(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var r=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=r||""}function Ei(e,t,r,n){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=Ir(t);t.gutterBackground=g("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px; width: "+n.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var a=t.line.gutterMarkers;if(e.options.lineNumbers||a){var S=Ir(t),R=t.gutter=g("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px");if(R.setAttribute("aria-hidden","true"),e.display.input.setUneditable(R),S.insertBefore(R,t.text),t.line.gutterClass&&(R.className+=" "+t.line.gutterClass),!e.options.lineNumbers||a&&a["CodeMirror-linenumbers"]||(t.lineNumber=R.appendChild(g("div",Xn(e.options,r),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+n.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),a)for(var re=0;re<e.display.gutterSpecs.length;++re){var ae=e.display.gutterSpecs[re].className,je=a.hasOwnProperty(ae)&&a[ae];je&&R.appendChild(g("div",[je],"CodeMirror-gutter-elt","left: "+n.gutterLeft[ae]+"px; width: "+n.gutterWidth[ae]+"px"))}}}function ji(e,t,r){t.alignable&&(t.alignable=null);for(var n=p("CodeMirror-linewidget"),i=t.node.firstChild,a=void 0;i;i=a)a=i.nextSibling,n.test(i.className)&&t.node.removeChild(i);uo(e,t,r)}function Di(e,t,r,n){var i=Ti(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),ai(e,t),Ei(e,t,r,n),uo(e,t,n),t.node}function uo(e,t,r){if(li(e,t.line,t,r,!0),t.rest)for(var n=0;n<t.rest.length;n++)li(e,t.rest[n],t,r,!1)}function li(e,t,r,n,i){if(t.widgets)for(var a=Ir(r),S=0,R=t.widgets;S<R.length;++S){var re=R[S],ae=g("div",[re.node],"CodeMirror-linewidget"+(re.className?" "+re.className:""));re.handleMouseEvents||ae.setAttribute("cm-ignore-events","true"),No(re,ae,r,n),e.display.input.setUneditable(ae),i&&re.above?a.insertBefore(ae,r.gutter||r.text):a.appendChild(ae),In(re,"redraw")}}function No(e,t,r,n){if(e.noHScroll){(r.alignable||(r.alignable=[])).push(t);var i=n.wrapperWidth;t.style.left=n.fixedPos+"px",e.coverGutter||(i-=n.gutterTotalWidth,t.style.paddingLeft=n.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-n.gutterTotalWidth+"px"))}function ee(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!u(document.body,e.node)){var r="position: relative;";e.coverGutter&&(r+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(r+="width: "+t.display.wrapper.clientWidth+"px;"),D(t.display.measure,g("div",[e.node],null,r))}return e.height=e.node.parentNode.offsetHeight}function de(e,t){for(var r=Qt(t);r!=e.wrapper;r=r.parentNode)if(!r||r.nodeType==1&&r.getAttribute("cm-ignore-events")=="true"||r.parentNode==e.sizer&&r!=e.mover)return!0}function Me(e){return e.lineSpace.offsetTop}function Re(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Ue(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=D(e.measure,g("pre","x","CodeMirror-line-like")),r=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,n={left:parseInt(r.paddingLeft),right:parseInt(r.paddingRight)};return isNaN(n.left)||isNaN(n.right)||(e.cachedPaddingH=n),n}function Ve(e){return s-e.display.nativeBarWidth}function et(e){return e.display.scroller.clientWidth-Ve(e)-e.display.barWidth}function dt(e){return e.display.scroller.clientHeight-Ve(e)-e.display.barHeight}function zt(e,t,r){var n=e.options.lineWrapping,i=n&&et(e);if(!t.measure.heights||n&&t.measure.width!=i){var a=t.measure.heights=[];if(n){t.measure.width=i;for(var S=t.text.firstChild.getClientRects(),R=0;R<S.length-1;R++){var re=S[R],ae=S[R+1];Math.abs(re.bottom-ae.bottom)>2&&a.push((re.bottom+ae.top)/2-r.top)}}a.push(r.bottom-r.top)}}function Yt(e,t,r){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var n=0;n<e.rest.length;n++)if(e.rest[n]==t)return{map:e.measure.maps[n],cache:e.measure.caches[n]};for(var i=0;i<e.rest.length;i++)if($t(e.rest[i])>r)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function En(e,t){var r=$t(t=St(t)),n=e.display.externalMeasured=new si(e.doc,t,r);n.lineN=r;var i=n.built=Pi(e,n);return n.text=i.pre,D(e.display.lineMeasure,i.pre),n}function br(e,t,r,n){return Dr(e,Lr(e,t),r,n)}function ci(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Yr(e,t)];var r=e.display.externalMeasured;return r&&t>=r.lineN&&t<r.lineN+r.size?r:void 0}function Lr(e,t){var r=$t(t),n=ci(e,r);n&&!n.text?n=null:n&&n.changes&&(_i(e,n,r,Ho(e)),e.curOp.forceUpdate=!0),n||(n=En(e,t));var i=Yt(n,t,r);return{line:t,view:n,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function Dr(e,t,r,n,i){t.before&&(r=-1);var a,S=r+(n||"");return t.cache.hasOwnProperty(S)?a=t.cache[S]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(zt(e,t.view,t.rect),t.hasHeights=!0),(a=Ya(e,t,r,n)).bogus||(t.cache[S]=a)),{left:a.left,right:a.right,top:i?a.rtop:a.top,bottom:i?a.rbottom:a.bottom}}var Gr,ys={left:0,right:0,top:0,bottom:0};function bs(e,t,r){for(var n,i,a,S,R,re,ae=0;ae<e.length;ae+=3)if(R=e[ae],re=e[ae+1],t<R?(i=0,a=1,S="left"):t<re?a=1+(i=t-R):(ae==e.length-3||t==re&&e[ae+3]>t)&&(i=(a=re-R)-1,t>=re&&(S="right")),i!=null){if(n=e[ae+2],R==re&&r==(n.insertLeft?"left":"right")&&(S=r),r=="left"&&i==0)for(;ae&&e[ae-2]==e[ae-3]&&e[ae-1].insertLeft;)n=e[2+(ae-=3)],S="left";if(r=="right"&&i==re-R)for(;ae<e.length-3&&e[ae+3]==e[ae+4]&&!e[ae+5].insertLeft;)n=e[(ae+=3)+2],S="right";break}return{node:n,start:i,end:a,collapse:S,coverStart:R,coverEnd:re}}function Ka(e,t){var r=ys;if(t=="left")for(var n=0;n<e.length&&(r=e[n]).left==r.right;n++);else for(var i=e.length-1;i>=0&&(r=e[i]).left==r.right;i--);return r}function Ya(e,t,r,n){var i,a=bs(t.map,r,n),S=a.node,R=a.start,re=a.end,ae=a.collapse;if(S.nodeType==3){for(var je=0;je<4;je++){for(;R&&$e(t.line.text.charAt(a.coverStart+R));)--R;for(;a.coverStart+re<a.coverEnd&&$e(t.line.text.charAt(a.coverStart+re));)++re;if((i=N&&te<9&&R==0&&re==a.coverEnd-a.coverStart?S.parentNode.getBoundingClientRect():Ka(d(S,R,re).getClientRects(),n)).left||i.right||R==0)break;re=R,R-=1,ae="right"}N&&te<11&&(i=Ja(e.display.measure,i))}else{var De;R>0&&(ae=n="right"),i=e.options.lineWrapping&&(De=S.getClientRects()).length>1?De[n=="right"?De.length-1:0]:S.getBoundingClientRect()}if(N&&te<9&&!R&&(!i||!i.left&&!i.right)){var Be=S.parentNode.getClientRects()[0];i=Be?{left:Be.left,right:Be.left+hi(e.display),top:Be.top,bottom:Be.bottom}:ys}for(var ze=i.top-t.rect.top,qe=i.bottom-t.rect.top,st=(ze+qe)/2,ft=t.view.measure.heights,bt=0;bt<ft.length-1&&!(st<ft[bt]);bt++);var Ot=bt?ft[bt-1]:0,pt=ft[bt],Et={left:(ae=="right"?i.right:i.left)-t.rect.left,right:(ae=="left"?i.left:i.right)-t.rect.left,top:Ot,bottom:pt};return i.left||i.right||(Et.bogus=!0),e.options.singleCursorHeightPerLine||(Et.rtop=ze,Et.rbottom=qe),Et}function Ja(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!wn(e))return t;var r=screen.logicalXDPI/screen.deviceXDPI,n=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*r,right:t.right*r,top:t.top*n,bottom:t.bottom*n}}function ws(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function xs(e){e.display.externalMeasure=null,v(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)ws(e.display.view[t])}function Mi(e){xs(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Os(){return w&&G?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Cs(){return w&&G?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Io(e){var t=0;if(e.widgets)for(var r=0;r<e.widgets.length;++r)e.widgets[r].above&&(t+=ee(e.widgets[r]));return t}function ho(e,t,r,n,i){if(!i){var a=Io(t);r.top+=a,r.bottom+=a}if(n=="line")return r;n||(n="local");var S=lr(t);if(n=="local"?S+=Me(e.display):S-=e.display.viewOffset,n=="page"||n=="window"){var R=e.display.lineSpace.getBoundingClientRect();S+=R.top+(n=="window"?0:Cs());var re=R.left+(n=="window"?0:Os());r.left+=re,r.right+=re}return r.top+=S,r.bottom+=S,r}function ks(e,t,r){if(r=="div")return t;var n=t.left,i=t.top;if(r=="page")n-=Os(),i-=Cs();else if(r=="local"||!r){var a=e.display.sizer.getBoundingClientRect();n+=a.left,i+=a.top}var S=e.display.lineSpace.getBoundingClientRect();return{left:n-S.left,top:i-S.top}}function fo(e,t,r,n,i){return n||(n=xt(e.doc,t.line)),ho(e,n,br(e,n,t.ch,i),r)}function Pr(e,t,r,n,i,a){function S(qe,st){var ft=Dr(e,i,qe,st?"right":"left",a);return st?ft.left=ft.right:ft.right=ft.left,ho(e,n,ft,r)}n=n||xt(e.doc,t.line),i||(i=Lr(e,n));var R=Ct(n,e.doc.direction),re=t.ch,ae=t.sticky;if(re>=n.text.length?(re=n.text.length,ae="before"):re<=0&&(re=0,ae="after"),!R)return S(ae=="before"?re-1:re,ae=="before");function je(qe,st,ft){return S(ft?qe-1:qe,R[st].level==1!=ft)}var De=Ht(R,re,ae),Be=rt,ze=je(re,De,ae=="before");return Be!=null&&(ze.other=je(re,Be,ae!="before")),ze}function Ss(e,t){var r=0;t=ne(e.doc,t),e.options.lineWrapping||(r=hi(e.display)*t.ch);var n=xt(e.doc,t.line),i=lr(n)+Me(e.display);return{left:r,right:r,top:i,bottom:i+n.height}}function Zo(e,t,r,n,i){var a=ot(e,t,r);return a.xRel=i,n&&(a.outside=n),a}function Fo(e,t,r){var n=e.doc;if((r+=e.display.viewOffset)<0)return Zo(n.first,0,null,-1,-1);var i=Jt(n,r),a=n.first+n.size-1;if(i>a)return Zo(n.first+n.size-1,xt(n,a).text.length,null,1,1);t<0&&(t=0);for(var S=xt(n,i);;){var R=Xa(e,S,i,t,r),re=Tt(S,R.ch+(R.xRel>0||R.outside>0?1:0));if(!re)return R;var ae=re.find(1);if(ae.line==i)return ae;S=xt(n,i=ae.line)}}function Ps(e,t,r,n){n-=Io(t);var i=t.text.length,a=ht(function(S){return Dr(e,r,S-1).bottom<=n},i,0);return{begin:a,end:i=ht(function(S){return Dr(e,r,S).top>n},a,i)}}function _s(e,t,r,n){return r||(r=Lr(e,t)),Ps(e,t,r,ho(e,t,Dr(e,r,n),"line").top)}function Vo(e,t,r,n){return!(e.bottom<=r)&&(e.top>r||(n?e.left:e.right)>t)}function Xa(e,t,r,n,i){i-=lr(t);var a=Lr(e,t),S=Io(t),R=0,re=t.text.length,ae=!0,je=Ct(t,e.doc.direction);if(je){var De=(e.options.lineWrapping?el:Qa)(e,t,r,a,je,n,i);R=(ae=De.level!=1)?De.from:De.to-1,re=ae?De.to:De.from-1}var Be,ze,qe=null,st=null,ft=ht(function(Pt){var It=Dr(e,a,Pt);return It.top+=S,It.bottom+=S,!!Vo(It,n,i,!1)&&(It.top<=i&&It.left<=n&&(qe=Pt,st=It),!0)},R,re),bt=!1;if(st){var Ot=n-st.left<st.right-n,pt=Ot==ae;ft=qe+(pt?0:1),ze=pt?"after":"before",Be=Ot?st.left:st.right}else{ae||ft!=re&&ft!=R||ft++,ze=ft==0?"after":ft==t.text.length?"before":Dr(e,a,ft-(ae?1:0)).bottom+S<=i==ae?"after":"before";var Et=Pr(e,ot(r,ft,ze),"line",t,a);Be=Et.left,bt=i<Et.top?-1:i>=Et.bottom?1:0}return Zo(r,ft=tt(t.text,ft,1),ze,bt,n-Be)}function Qa(e,t,r,n,i,a,S){var R=ht(function(De){var Be=i[De],ze=Be.level!=1;return Vo(Pr(e,ot(r,ze?Be.to:Be.from,ze?"before":"after"),"line",t,n),a,S,!0)},0,i.length-1),re=i[R];if(R>0){var ae=re.level!=1,je=Pr(e,ot(r,ae?re.from:re.to,ae?"after":"before"),"line",t,n);Vo(je,a,S,!0)&&je.top>S&&(re=i[R-1])}return re}function el(e,t,r,n,i,a,S){var R=Ps(e,t,n,S),re=R.begin,ae=R.end;/\s/.test(t.text.charAt(ae-1))&&ae--;for(var je=null,De=null,Be=0;Be<i.length;Be++){var ze=i[Be];if(!(ze.from>=ae||ze.to<=re)){var qe=Dr(e,n,ze.level!=1?Math.min(ae,ze.to)-1:Math.max(re,ze.from)).right,st=qe<a?a-qe+1e9:qe-a;(!je||De>st)&&(je=ze,De=st)}}return je||(je=i[i.length-1]),je.from<re&&(je={from:re,to:je.to,level:je.level}),je.to>ae&&(je={from:je.from,to:ae,level:je.level}),je}function ui(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Gr==null){Gr=g("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Gr.appendChild(document.createTextNode("x")),Gr.appendChild(g("br"));Gr.appendChild(document.createTextNode("x"))}D(e.measure,Gr);var r=Gr.offsetHeight/50;return r>3&&(e.cachedTextHeight=r),v(e.measure),r||1}function hi(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=g("span","xxxxxxxxxx"),r=g("pre",[t],"CodeMirror-line-like");D(e.measure,r);var n=t.getBoundingClientRect(),i=(n.right-n.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Ho(e){for(var t=e.display,r={},n={},i=t.gutters.clientLeft,a=t.gutters.firstChild,S=0;a;a=a.nextSibling,++S){var R=e.display.gutterSpecs[S].className;r[R]=a.offsetLeft+a.clientLeft+i,n[R]=a.clientWidth}return{fixedPos:Bo(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:r,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function Bo(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Ts(e){var t=ui(e.display),r=e.options.lineWrapping,n=r&&Math.max(5,e.display.scroller.clientWidth/hi(e.display)-3);return function(i){if(Un(e.doc,i))return 0;var a=0;if(i.widgets)for(var S=0;S<i.widgets.length;S++)i.widgets[S].height&&(a+=i.widgets[S].height);return r?a+(Math.ceil(i.text.length/n)||1)*t:a+t}}function zo(e){var t=e.doc,r=Ts(e);t.iter(function(n){var i=r(n);i!=n.height&&Cn(n,i)})}function Kr(e,t,r,n){var i=e.display;if(!r&&Qt(t).getAttribute("cm-not-content")=="true")return null;var a,S,R=i.lineSpace.getBoundingClientRect();try{a=t.clientX-R.left,S=t.clientY-R.top}catch{return null}var re,ae=Fo(e,a,S);if(n&&ae.xRel>0&&(re=xt(e.doc,ae.line).text).length==ae.ch){var je=ce(re,re.length,e.options.tabSize)-re.length;ae=ot(ae.line,Math.max(0,Math.round((a-Ue(e.display).left)/hi(e.display))-je))}return ae}function Yr(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom)<0)return null;for(var r=e.display.view,n=0;n<r.length;n++)if((t-=r[n].size)<0)return n}function cr(e,t,r,n){t==null&&(t=e.doc.first),r==null&&(r=e.doc.first+e.doc.size),n||(n=0);var i=e.display;if(n&&r<i.viewTo&&(i.updateLineNumbers==null||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)c&&Tn(e.doc,t)<i.viewTo&&Fr(e);else if(r<=i.viewFrom)c&&dr(e.doc,r+n)>i.viewFrom?Fr(e):(i.viewFrom+=n,i.viewTo+=n);else if(t<=i.viewFrom&&r>=i.viewTo)Fr(e);else if(t<=i.viewFrom){var a=po(e,r,r+n,1);a?(i.view=i.view.slice(a.index),i.viewFrom=a.lineN,i.viewTo+=n):Fr(e)}else if(r>=i.viewTo){var S=po(e,t,t,-1);S?(i.view=i.view.slice(0,S.index),i.viewTo=S.lineN):Fr(e)}else{var R=po(e,t,t,-1),re=po(e,r,r+n,1);R&&re?(i.view=i.view.slice(0,R.index).concat(Sr(e,R.lineN,re.lineN)).concat(i.view.slice(re.index)),i.viewTo+=n):Fr(e)}var ae=i.externalMeasured;ae&&(r<ae.lineN?ae.lineN+=n:t<ae.lineN+ae.size&&(i.externalMeasured=null))}function Zr(e,t,r){e.curOp.viewChanged=!0;var n=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(n.externalMeasured=null),!(t<n.viewFrom||t>=n.viewTo)){var a=n.view[Yr(e,t)];if(a.node!=null){var S=a.changes||(a.changes=[]);l(S,r)==-1&&S.push(r)}}}function Fr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function po(e,t,r,n){var i,a=Yr(e,t),S=e.display.view;if(!c||r==e.doc.first+e.doc.size)return{index:a,lineN:r};for(var R=e.display.viewFrom,re=0;re<a;re++)R+=S[re].size;if(R!=t){if(n>0){if(a==S.length-1)return null;i=R+S[a].size-t,a++}else i=R-t;t+=i,r+=i}for(;Tn(e.doc,r)!=r;){if(a==(n<0?0:S.length-1))return null;r+=n*S[a-(n<0?1:0)].size,a+=n}return{index:a,lineN:r}}function tl(e,t,r){var n=e.display;n.view.length==0||t>=n.viewTo||r<=n.viewFrom?(n.view=Sr(e,t,r),n.viewFrom=t):(n.viewFrom>t?n.view=Sr(e,t,n.viewFrom).concat(n.view):n.viewFrom<t&&(n.view=n.view.slice(Yr(e,t))),n.viewFrom=t,n.viewTo<r?n.view=n.view.concat(Sr(e,n.viewTo,r)):n.viewTo>r&&(n.view=n.view.slice(0,Yr(e,r)))),n.viewTo=r}function Es(e){for(var t=e.display.view,r=0,n=0;n<t.length;n++){var i=t[n];i.hidden||i.node&&!i.changes||++r}return r}function Ai(e){e.display.input.showSelection(e.display.input.prepareSelection())}function js(e,t){t===void 0&&(t=!0);for(var r=e.doc,n={},i=n.cursors=document.createDocumentFragment(),a=n.selection=document.createDocumentFragment(),S=0;S<r.sel.ranges.length;S++)if(t||S!=r.sel.primIndex){var R=r.sel.ranges[S];if(!(R.from().line>=e.display.viewTo||R.to().line<e.display.viewFrom)){var re=R.empty();(re||e.options.showCursorWhenSelecting)&&Ds(e,R.head,i),re||nl(e,R,a)}}return n}function Ds(e,t,r){var n=Pr(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=r.appendChild(g("div","\xA0","CodeMirror-cursor"));if(i.style.left=n.left+"px",i.style.top=n.top+"px",i.style.height=Math.max(0,n.bottom-n.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var a=fo(e,t,"div",null,null);a.right-a.left>0&&(i.style.width=a.right-a.left+"px")}if(n.other){var S=r.appendChild(g("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));S.style.display="",S.style.left=n.other.left+"px",S.style.top=n.other.top+"px",S.style.height=.85*(n.other.bottom-n.other.top)+"px"}}function go(e,t){return e.top-t.top||e.left-t.left}function nl(e,t,r){var n=e.display,i=e.doc,a=document.createDocumentFragment(),S=Ue(e.display),R=S.left,re=Math.max(n.sizerWidth,et(e)-n.sizer.offsetLeft)-S.right,ae=i.direction=="ltr";function je(pt,Et,Pt,It){Et<0&&(Et=0),Et=Math.round(Et),It=Math.round(It),a.appendChild(g("div",null,"CodeMirror-selected","position: absolute; left: "+pt+`px; + top: `+Et+"px; width: "+(Pt??re-pt)+`px; + height: `+(It-Et)+"px"))}function De(pt,Et,Pt){var It,xn,On=xt(i,pt),vr=On.text.length;function _n(Ln,hr){return fo(e,ot(pt,Ln),"div",On,hr)}function Cr(Ln,hr,sr){var Wn=_s(e,On,null,Ln),Fn=hr=="ltr"==(sr=="after")?"left":"right";return _n(sr=="after"?Wn.begin:Wn.end-(/\s/.test(On.text.charAt(Wn.end-1))?2:1),Fn)[Fn]}var yr=Ct(On,i.direction);return Vt(yr,Et||0,Pt??vr,function(Ln,hr,sr,Wn){var Fn=sr=="ltr",$n=_n(Ln,Fn?"left":"right"),fr=_n(hr-1,Fn?"right":"left"),Wr=Et==null&&Ln==0,Er=Pt==null&&hr==vr,nr=Wn==0,qn=!yr||Wn==yr.length-1;if(fr.top-$n.top<=3){var gs=(ae?Er:Wr)&&qn,Nr=(ae?Wr:Er)&&nr?R:(Fn?$n:fr).left,ti=gs?re:(Fn?fr:$n).right;je(Nr,$n.top,ti-Nr,$n.bottom)}else{var ni,ar,ki,ms;Fn?(ni=ae&&Wr&&nr?R:$n.left,ar=ae?re:Cr(Ln,sr,"before"),ki=ae?R:Cr(hr,sr,"after"),ms=ae&&Er&&qn?re:fr.right):(ni=ae?Cr(Ln,sr,"before"):R,ar=!ae&&Wr&&nr?re:$n.right,ki=!ae&&Er&&qn?R:fr.left,ms=ae?Cr(hr,sr,"after"):re),je(ni,$n.top,ar-ni,$n.bottom),$n.bottom<fr.top&&je(R,$n.bottom,null,fr.top),je(ki,fr.top,ms-ki,fr.bottom)}(!It||go($n,It)<0)&&(It=$n),go(fr,It)<0&&(It=fr),(!xn||go($n,xn)<0)&&(xn=$n),go(fr,xn)<0&&(xn=fr)}),{start:It,end:xn}}var Be=t.from(),ze=t.to();if(Be.line==ze.line)De(Be.line,Be.ch,ze.ch);else{var qe=xt(i,Be.line),st=xt(i,ze.line),ft=St(qe)==St(st),bt=De(Be.line,Be.ch,ft?qe.text.length+1:null).end,Ot=De(ze.line,ft?0:null,ze.ch).start;ft&&(bt.top<Ot.top-2?(je(bt.right,bt.top,null,bt.bottom),je(R,Ot.top,Ot.left,Ot.bottom)):je(bt.right,bt.top,Ot.left-bt.right,bt.bottom)),bt.bottom<Ot.top&&je(R,bt.bottom,null,Ot.top)}r.appendChild(a)}function Uo(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var r=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||fi(e),t.cursorDiv.style.visibility=(r=!r)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Ms(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||$o(e))}function Wo(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&fi(e))},100)}function $o(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(_e(e,"focus",e,t),e.state.focused=!0,O(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),$&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Uo(e))}function fi(e,t){e.state.delayingBlurEvent||(e.state.focused&&(_e(e,"blur",e,t),e.state.focused=!1,f(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function mo(e){for(var t=e.display,r=t.lineDiv.offsetTop,n=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,a=0,S=0;S<t.view.length;S++){var R=t.view[S],re=e.options.lineWrapping,ae=void 0,je=0;if(!R.hidden){if(i+=R.line.height,N&&te<8){var De=R.node.offsetTop+R.node.offsetHeight;ae=De-r,r=De}else{var Be=R.node.getBoundingClientRect();ae=Be.bottom-Be.top,!re&&R.text.firstChild&&(je=R.text.firstChild.getBoundingClientRect().right-Be.left-1)}var ze=R.line.height-ae;if((ze>.005||ze<-.005)&&(i<n&&(a-=ze),Cn(R.line,ae),As(R.line),R.rest))for(var qe=0;qe<R.rest.length;qe++)As(R.rest[qe]);if(je>e.display.sizerWidth){var st=Math.ceil(je/hi(e.display));st>e.display.maxLineLength&&(e.display.maxLineLength=st,e.display.maxLine=R.line,e.display.maxLineChanged=!0)}}}Math.abs(a)>2&&(t.scroller.scrollTop+=a)}function As(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var r=e.widgets[t],n=r.node.parentNode;n&&(r.height=n.offsetHeight)}}function vo(e,t,r){var n=r&&r.top!=null?Math.max(0,r.top):e.scroller.scrollTop;n=Math.floor(n-Me(e));var i=r&&r.bottom!=null?r.bottom:n+e.wrapper.clientHeight,a=Jt(t,n),S=Jt(t,i);if(r&&r.ensure){var R=r.ensure.from.line,re=r.ensure.to.line;R<a?(a=R,S=Jt(t,lr(xt(t,R))+e.wrapper.clientHeight)):Math.min(re,t.lastLine())>=S&&(a=Jt(t,lr(xt(t,re))-e.wrapper.clientHeight),S=re)}return{from:a,to:Math.max(S,a+1)}}function rl(e,t){if(!Fe(e,"scrollCursorIntoView")){var r=e.display,n=r.sizer.getBoundingClientRect(),i=null;if(t.top+n.top<0?i=!0:t.bottom+n.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),i!=null&&!k){var a=g("div","\u200B",null,`position: absolute; + top: `+(t.top-r.viewOffset-Me(e.display))+`px; + height: `+(t.bottom-t.top+Ve(e)+r.barHeight)+`px; + left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(i),e.display.lineSpace.removeChild(a)}}}function il(e,t,r,n){var i;n==null&&(n=0),e.options.lineWrapping||t!=r||(r=t.sticky=="before"?ot(t.line,t.ch+1,"before"):t,t=t.ch?ot(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var a=0;a<5;a++){var S=!1,R=Pr(e,t),re=r&&r!=t?Pr(e,r):R,ae=qo(e,i={left:Math.min(R.left,re.left),top:Math.min(R.top,re.top)-n,right:Math.max(R.left,re.left),bottom:Math.max(R.bottom,re.bottom)+n}),je=e.doc.scrollTop,De=e.doc.scrollLeft;if(ae.scrollTop!=null&&(Ri(e,ae.scrollTop),Math.abs(e.doc.scrollTop-je)>1&&(S=!0)),ae.scrollLeft!=null&&(Jr(e,ae.scrollLeft),Math.abs(e.doc.scrollLeft-De)>1&&(S=!0)),!S)break}return i}function ol(e,t){var r=qo(e,t);r.scrollTop!=null&&Ri(e,r.scrollTop),r.scrollLeft!=null&&Jr(e,r.scrollLeft)}function qo(e,t){var r=e.display,n=ui(e.display);t.top<0&&(t.top=0);var i=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:r.scroller.scrollTop,a=dt(e),S={};t.bottom-t.top>a&&(t.bottom=t.top+a);var R=e.doc.height+Re(r),re=t.top<n,ae=t.bottom>R-n;if(t.top<i)S.scrollTop=re?0:t.top;else if(t.bottom>i+a){var je=Math.min(t.top,(ae?R:t.bottom)-a);je!=i&&(S.scrollTop=je)}var De=e.options.fixedGutter?0:r.gutters.offsetWidth,Be=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:r.scroller.scrollLeft-De,ze=et(e)-r.gutters.offsetWidth,qe=t.right-t.left>ze;return qe&&(t.right=t.left+ze),t.left<10?S.scrollLeft=0:t.left<Be?S.scrollLeft=Math.max(0,t.left+De-(qe?0:10)):t.right>ze+Be-3&&(S.scrollLeft=t.right+(qe?0:10)-ze),S}function Go(e,t){t!=null&&(yo(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function di(e){yo(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Li(e,t,r){t==null&&r==null||yo(e),t!=null&&(e.curOp.scrollLeft=t),r!=null&&(e.curOp.scrollTop=r)}function sl(e,t){yo(e),e.curOp.scrollToPos=t}function yo(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Ls(e,Ss(e,t.from),Ss(e,t.to),t.margin))}function Ls(e,t,r,n){var i=qo(e,{left:Math.min(t.left,r.left),top:Math.min(t.top,r.top)-n,right:Math.max(t.right,r.right),bottom:Math.max(t.bottom,r.bottom)+n});Li(e,i.scrollLeft,i.scrollTop)}function Ri(e,t){Math.abs(e.doc.scrollTop-t)<2||(ye||Yo(e,{top:t}),Rs(e,t,!0),ye&&Yo(e),Zi(e,100))}function Rs(e,t,r){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||r)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Jr(e,t,r,n){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(r?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n||(e.doc.scrollLeft=t,Vs(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Ni(e){var t=e.display,r=t.gutters.offsetWidth,n=Math.round(e.doc.height+Re(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?r:0,docHeight:n,scrollHeight:n+Ve(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:r}}var Xr=function(e,t,r){this.cm=r;var n=this.vert=g("div",[g("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=g("div",[g("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=i.tabIndex=-1,e(n),e(i),fe(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),fe(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,N&&te<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Xr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(r){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var i=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=r?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var a=e.viewWidth-e.barLeft-(r?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+a)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(n==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:r?n:0,bottom:t?n:0}},Xr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Xr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Xr.prototype.zeroWidthHack=function(){var e=H&&!A?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new F,this.disableVert=new F},Xr.prototype.enableZeroWidthBar=function(e,t,r){function n(){var i=e.getBoundingClientRect();(r=="vert"?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,n)}e.style.pointerEvents="auto",t.set(1e3,n)},Xr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Ii=function(){};function pi(e,t){t||(t=Ni(e));var r=e.display.barWidth,n=e.display.barHeight;Ns(e,t);for(var i=0;i<4&&r!=e.display.barWidth||n!=e.display.barHeight;i++)r!=e.display.barWidth&&e.options.lineWrapping&&mo(e),Ns(e,Ni(e)),r=e.display.barWidth,n=e.display.barHeight}function Ns(e,t){var r=e.display,n=r.scrollbars.update(t);r.sizer.style.paddingRight=(r.barWidth=n.right)+"px",r.sizer.style.paddingBottom=(r.barHeight=n.bottom)+"px",r.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(r.scrollbarFiller.style.display="block",r.scrollbarFiller.style.height=n.bottom+"px",r.scrollbarFiller.style.width=n.right+"px"):r.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(r.gutterFiller.style.display="block",r.gutterFiller.style.height=n.bottom+"px",r.gutterFiller.style.width=t.gutterWidth+"px"):r.gutterFiller.style.display=""}Ii.prototype.update=function(){return{bottom:0,right:0}},Ii.prototype.setScrollLeft=function(){},Ii.prototype.setScrollTop=function(){},Ii.prototype.clear=function(){};var Is={native:Xr,null:Ii};function Zs(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&f(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Is[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),fe(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,r){r=="horizontal"?Jr(e,t):Ri(e,t)},e),e.display.scrollbars.addClass&&O(e.display.wrapper,e.display.scrollbars.addClass)}var al=0;function Qr(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++al,markArrays:null},so(e.curOp)}function ei(e){var t=e.curOp;t&&lo(t,function(r){for(var n=0;n<r.ops.length;n++)r.ops[n].cm.curOp=null;ll(r)})}function ll(e){for(var t=e.ops,r=0;r<t.length;r++)cl(t[r]);for(var n=0;n<t.length;n++)ul(t[n]);for(var i=0;i<t.length;i++)hl(t[i]);for(var a=0;a<t.length;a++)fl(t[a]);for(var S=0;S<t.length;S++)dl(t[S])}function cl(e){var t=e.cm,r=t.display;gl(t),e.updateMaxLine&&kr(t),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<r.viewFrom||e.scrollToPos.to.line>=r.viewTo)||r.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new bo(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function ul(e){e.updatedDisplay=e.mustUpdate&&Ko(e.cm,e.update)}function hl(e){var t=e.cm,r=t.display;e.updatedDisplay&&mo(t),e.barMeasure=Ni(t),r.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=br(t,r.maxLine,r.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(r.scroller.clientWidth,r.sizer.offsetLeft+e.adjustWidthTo+Ve(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,r.sizer.offsetLeft+e.adjustWidthTo-et(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=r.input.prepareSelection())}function fl(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Jr(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var r=e.focus&&e.focus==x();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,r),(e.updatedDisplay||e.startHeight!=t.doc.height)&&pi(t,e.barMeasure),e.updatedDisplay&&Xo(t,e.barMeasure),e.selectionChanged&&Uo(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),r&&Ms(e.cm)}function dl(e){var t=e.cm,r=t.display,n=t.doc;e.updatedDisplay&&Fs(t,e.update),r.wheelStartX==null||e.scrollTop==null&&e.scrollLeft==null&&!e.scrollToPos||(r.wheelStartX=r.wheelStartY=null),e.scrollTop!=null&&Rs(t,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Jr(t,e.scrollLeft,!0,!0),e.scrollToPos&&rl(t,il(t,ne(n,e.scrollToPos.from),ne(n,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,a=e.maybeUnhiddenMarkers;if(i)for(var S=0;S<i.length;++S)i[S].lines.length||_e(i[S],"hide");if(a)for(var R=0;R<a.length;++R)a[R].lines.length&&_e(a[R],"unhide");r.wrapper.offsetHeight&&(n.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&_e(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function mr(e,t){if(e.curOp)return t();Qr(e);try{return t()}finally{ei(e)}}function Yn(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Qr(e);try{return t.apply(e,arguments)}finally{ei(e)}}}function or(e){return function(){if(this.curOp)return e.apply(this,arguments);Qr(this);try{return e.apply(this,arguments)}finally{ei(this)}}}function Jn(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Qr(t);try{return e.apply(this,arguments)}finally{ei(t)}}}function Zi(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,ie(pl,e))}function pl(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var r=+new Date+e.options.workTime,n=jt(e,t.highlightFrontier),i=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),function(a){if(n.line>=e.display.viewFrom){var S=a.styles,R=a.text.length>e.options.maxHighlightLength?gn(t.mode,n.state):null,re=Qe(e,a,n,!0);R&&(n.state=R),a.styles=re.styles;var ae=a.styleClasses,je=re.classes;je?a.styleClasses=je:ae&&(a.styleClasses=null);for(var De=!S||S.length!=a.styles.length||ae!=je&&(!ae||!je||ae.bgClass!=je.bgClass||ae.textClass!=je.textClass),Be=0;!De&&Be<S.length;++Be)De=S[Be]!=a.styles[Be];De&&i.push(n.line),a.stateAfter=n.save(),n.nextLine()}else a.text.length<=e.options.maxHighlightLength&&Mt(e,a.text,n),a.stateAfter=n.line%5==0?n.save():null,n.nextLine();if(+new Date>r)return Zi(e,e.options.workDelay),!0}),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),i.length&&mr(e,function(){for(var a=0;a<i.length;a++)Zr(e,i[a],"text")})}}var bo=function(e,t,r){var n=e.display;this.viewport=t,this.visible=vo(n,e.doc,t),this.editorIsHidden=!n.wrapper.offsetWidth,this.wrapperHeight=n.wrapper.clientHeight,this.wrapperWidth=n.wrapper.clientWidth,this.oldDisplayWidth=et(e),this.force=r,this.dims=Ho(e),this.events=[]};function gl(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Ve(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Ve(e)+"px",t.scrollbarsClipped=!0)}function ml(e){if(e.hasFocus())return null;var t=x();if(!t||!u(e.display.lineDiv,t))return null;var r={activeElt:t};if(window.getSelection){var n=window.getSelection();n.anchorNode&&n.extend&&u(e.display.lineDiv,n.anchorNode)&&(r.anchorNode=n.anchorNode,r.anchorOffset=n.anchorOffset,r.focusNode=n.focusNode,r.focusOffset=n.focusOffset)}return r}function vl(e){if(e&&e.activeElt&&e.activeElt!=x()&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&u(document.body,e.anchorNode)&&u(document.body,e.focusNode))){var t=window.getSelection(),r=document.createRange();r.setEnd(e.anchorNode,e.anchorOffset),r.collapse(!1),t.removeAllRanges(),t.addRange(r),t.extend(e.focusNode,e.focusOffset)}}function Ko(e,t){var r=e.display,n=e.doc;if(t.editorIsHidden)return Fr(e),!1;if(!t.force&&t.visible.from>=r.viewFrom&&t.visible.to<=r.viewTo&&(r.updateLineNumbers==null||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&Es(e)==0)return!1;Hs(e)&&(Fr(e),t.dims=Ho(e));var i=n.first+n.size,a=Math.max(t.visible.from-e.options.viewportMargin,n.first),S=Math.min(i,t.visible.to+e.options.viewportMargin);r.viewFrom<a&&a-r.viewFrom<20&&(a=Math.max(n.first,r.viewFrom)),r.viewTo>S&&r.viewTo-S<20&&(S=Math.min(i,r.viewTo)),c&&(a=Tn(e.doc,a),S=dr(e.doc,S));var R=a!=r.viewFrom||S!=r.viewTo||r.lastWrapHeight!=t.wrapperHeight||r.lastWrapWidth!=t.wrapperWidth;tl(e,a,S),r.viewOffset=lr(xt(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var re=Es(e);if(!R&&re==0&&!t.force&&r.renderedView==r.view&&(r.updateLineNumbers==null||r.updateLineNumbers>=r.viewTo))return!1;var ae=ml(e);return re>4&&(r.lineDiv.style.display="none"),yl(e,r.updateLineNumbers,t.dims),re>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,vl(ae),v(r.cursorDiv),v(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,R&&(r.lastWrapHeight=t.wrapperHeight,r.lastWrapWidth=t.wrapperWidth,Zi(e,400)),r.updateLineNumbers=null,!0}function Fs(e,t){for(var r=t.viewport,n=!0;;n=!1){if(n&&e.options.lineWrapping&&t.oldDisplayWidth!=et(e))n&&(t.visible=vo(e.display,e.doc,r));else if(r&&r.top!=null&&(r={top:Math.min(e.doc.height+Re(e.display)-dt(e),r.top)}),t.visible=vo(e.display,e.doc,r),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!Ko(e,t))break;mo(e);var i=Ni(e);Ai(e),pi(e,i),Xo(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Yo(e,t){var r=new bo(e,t);if(Ko(e,r)){mo(e),Fs(e,r);var n=Ni(e);Ai(e),pi(e,n),Xo(e,n),r.finish()}}function yl(e,t,r){var n=e.display,i=e.options.lineNumbers,a=n.lineDiv,S=a.firstChild;function R(qe){var st=qe.nextSibling;return $&&H&&e.display.currentWheelTarget==qe?qe.style.display="none":qe.parentNode.removeChild(qe),st}for(var re=n.view,ae=n.viewFrom,je=0;je<re.length;je++){var De=re[je];if(!De.hidden)if(De.node&&De.node.parentNode==a){for(;S!=De.node;)S=R(S);var Be=i&&t!=null&&t<=ae&&De.lineNumber;De.changes&&(l(De.changes,"gutter")>-1&&(Be=!1),_i(e,De,ae,r)),Be&&(v(De.lineNumber),De.lineNumber.appendChild(document.createTextNode(Xn(e.options,ae)))),S=De.node.nextSibling}else{var ze=Di(e,De,ae,r);a.insertBefore(ze,S)}ae+=De.size}for(;S;)S=R(S)}function Jo(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",In(e,"gutterChanged",e)}function Xo(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Ve(e)+"px"}function Vs(e){var t=e.display,r=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var n=Bo(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,a=n+"px",S=0;S<r.length;S++)if(!r[S].hidden){e.options.fixedGutter&&(r[S].gutter&&(r[S].gutter.style.left=a),r[S].gutterBackground&&(r[S].gutterBackground.style.left=a));var R=r[S].alignable;if(R)for(var re=0;re<R.length;re++)R[re].style.left=a}e.options.fixedGutter&&(t.gutters.style.left=n+i+"px")}}function Hs(e){if(!e.options.lineNumbers)return!1;var t=e.doc,r=Xn(e.options,t.first+t.size-1),n=e.display;if(r.length!=n.lineNumChars){var i=n.measure.appendChild(g("div",[g("div",r)],"CodeMirror-linenumber CodeMirror-gutter-elt")),a=i.firstChild.offsetWidth,S=i.offsetWidth-a;return n.lineGutter.style.width="",n.lineNumInnerWidth=Math.max(a,n.lineGutter.offsetWidth-S)+1,n.lineNumWidth=n.lineNumInnerWidth+S,n.lineNumChars=n.lineNumInnerWidth?r.length:-1,n.lineGutter.style.width=n.lineNumWidth+"px",Jo(e.display),!0}return!1}function Qo(e,t){for(var r=[],n=!1,i=0;i<e.length;i++){var a=e[i],S=null;if(typeof a!="string"&&(S=a.style,a=a.className),a=="CodeMirror-linenumbers"){if(!t)continue;n=!0}r.push({className:a,style:S})}return t&&!n&&r.push({className:"CodeMirror-linenumbers",style:null}),r}function Bs(e){var t=e.gutters,r=e.gutterSpecs;v(t),e.lineGutter=null;for(var n=0;n<r.length;++n){var i=r[n],a=i.className,S=i.style,R=t.appendChild(g("div",null,"CodeMirror-gutter "+a));S&&(R.style.cssText=S),a=="CodeMirror-linenumbers"&&(e.lineGutter=R,R.style.width=(e.lineNumWidth||1)+"px")}t.style.display=r.length?"":"none",Jo(e)}function Fi(e){Bs(e.display),cr(e),Vs(e)}function bl(e,t,r,n){var i=this;this.input=r,i.scrollbarFiller=g("div",null,"CodeMirror-scrollbar-filler"),i.scrollbarFiller.setAttribute("cm-not-content","true"),i.gutterFiller=g("div",null,"CodeMirror-gutter-filler"),i.gutterFiller.setAttribute("cm-not-content","true"),i.lineDiv=T("div",null,"CodeMirror-code"),i.selectionDiv=g("div",null,null,"position: relative; z-index: 1"),i.cursorDiv=g("div",null,"CodeMirror-cursors"),i.measure=g("div",null,"CodeMirror-measure"),i.lineMeasure=g("div",null,"CodeMirror-measure"),i.lineSpace=T("div",[i.measure,i.lineMeasure,i.selectionDiv,i.cursorDiv,i.lineDiv],null,"position: relative; outline: none");var a=T("div",[i.lineSpace],"CodeMirror-lines");i.mover=g("div",[a],null,"position: relative"),i.sizer=g("div",[i.mover],"CodeMirror-sizer"),i.sizerWidth=null,i.heightForcer=g("div",null,null,"position: absolute; height: "+s+"px; width: 1px;"),i.gutters=g("div",null,"CodeMirror-gutters"),i.lineGutter=null,i.scroller=g("div",[i.sizer,i.heightForcer,i.gutters],"CodeMirror-scroll"),i.scroller.setAttribute("tabIndex","-1"),i.wrapper=g("div",[i.scrollbarFiller,i.gutterFiller,i.scroller],"CodeMirror"),i.wrapper.setAttribute("translate","no"),N&&te<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),$||ye&&M||(i.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(i.wrapper):e(i.wrapper)),i.viewFrom=i.viewTo=t.first,i.reportedViewFrom=i.reportedViewTo=t.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,i.gutterSpecs=Qo(n.gutters,n.lineNumbers),Bs(i),r.init(i)}bo.prototype.signal=function(e,t){at(e,t)&&this.events.push(arguments)},bo.prototype.finish=function(){for(var e=0;e<this.events.length;e++)_e.apply(null,this.events[e])};var wo=0,wr=null;function zs(e){var t=e.wheelDeltaX,r=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),r==null&&e.detail&&e.axis==e.VERTICAL_AXIS?r=e.detail:r==null&&(r=e.wheelDelta),{x:t,y:r}}function wl(e){var t=zs(e);return t.x*=wr,t.y*=wr,t}function Us(e,t){var r=zs(t),n=r.x,i=r.y,a=e.display,S=a.scroller,R=S.scrollWidth>S.clientWidth,re=S.scrollHeight>S.clientHeight;if(n&&R||i&&re){if(i&&H&&$){e:for(var ae=t.target,je=a.view;ae!=S;ae=ae.parentNode)for(var De=0;De<je.length;De++)if(je[De].node==ae){e.display.currentWheelTarget=ae;break e}}if(n&&!ye&&!y&&wr!=null)return i&&re&&Ri(e,Math.max(0,S.scrollTop+i*wr)),Jr(e,Math.max(0,S.scrollLeft+n*wr)),(!i||i&&re)&>(t),void(a.wheelStartX=null);if(i&&wr!=null){var Be=i*wr,ze=e.doc.scrollTop,qe=ze+a.wrapper.clientHeight;Be<0?ze=Math.max(0,ze+Be-50):qe=Math.min(e.doc.height,qe+Be+50),Yo(e,{top:ze,bottom:qe})}wo<20&&(a.wheelStartX==null?(a.wheelStartX=S.scrollLeft,a.wheelStartY=S.scrollTop,a.wheelDX=n,a.wheelDY=i,setTimeout(function(){if(a.wheelStartX!=null){var st=S.scrollLeft-a.wheelStartX,ft=S.scrollTop-a.wheelStartY,bt=ft&&a.wheelDY&&ft/a.wheelDY||st&&a.wheelDX&&st/a.wheelDX;a.wheelStartX=a.wheelStartY=null,bt&&(wr=(wr*wo+bt)/(wo+1),++wo)}},200)):(a.wheelDX+=n,a.wheelDY+=i))}}N?wr=-.53:ye?wr=15:w?wr=-.7:P&&(wr=-.3333333333333333);var xr=function(e,t){this.ranges=e,this.primIndex=t};xr.prototype.primary=function(){return this.ranges[this.primIndex]},xr.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var r=this.ranges[t],n=e.ranges[t];if(!he(r.anchor,n.anchor)||!he(r.head,n.head))return!1}return!0},xr.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new mn(Te(this.ranges[t].anchor),Te(this.ranges[t].head));return new xr(e,this.primIndex)},xr.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},xr.prototype.contains=function(e,t){t||(t=e);for(var r=0;r<this.ranges.length;r++){var n=this.ranges[r];if(Nt(t,n.from())>=0&&Nt(e,n.to())<=0)return r}return-1};var mn=function(e,t){this.anchor=e,this.head=t};function _r(e,t,r){var n=e&&e.options.selectionsMayTouch,i=t[r];t.sort(function(Be,ze){return Nt(Be.from(),ze.from())}),r=l(t,i);for(var a=1;a<t.length;a++){var S=t[a],R=t[a-1],re=Nt(R.to(),S.from());if(n&&!S.empty()?re>0:re>=0){var ae=U(R.from(),S.from()),je=Ke(R.to(),S.to()),De=R.empty()?S.from()==S.head:R.from()==R.head;a<=r&&--r,t.splice(--a,2,new mn(De?je:ae,De?ae:je))}}return new xr(t,r)}function Vr(e,t){return new xr([new mn(e,t||e)],0)}function Hr(e){return e.text?ot(e.from.line+e.text.length-1,q(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Ws(e,t){if(Nt(e,t.from)<0)return e;if(Nt(e,t.to)<=0)return Hr(t);var r=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=Hr(t).ch-t.to.ch),ot(r,n)}function es(e,t){for(var r=[],n=0;n<e.sel.ranges.length;n++){var i=e.sel.ranges[n];r.push(new mn(Ws(i.anchor,t),Ws(i.head,t)))}return _r(e.cm,r,e.sel.primIndex)}function $s(e,t,r){return e.line==t.line?ot(r.line,e.ch-t.ch+r.ch):ot(r.line+(e.line-t.line),e.ch)}function xl(e,t,r){for(var n=[],i=ot(e.first,0),a=i,S=0;S<t.length;S++){var R=t[S],re=$s(R.from,i,a),ae=$s(Hr(R),i,a);if(i=R.to,a=ae,r=="around"){var je=e.sel.ranges[S],De=Nt(je.head,je.anchor)<0;n[S]=new mn(De?ae:re,De?re:ae)}else n[S]=new mn(re,re)}return new xr(n,e.sel.primIndex)}function ts(e){e.doc.mode=Bn(e.options,e.doc.modeOption),Vi(e)}function Vi(e){e.doc.iter(function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Zi(e,100),e.state.modeGen++,e.curOp&&cr(e)}function qs(e,t){return t.from.ch==0&&t.to.ch==0&&q(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function ns(e,t,r,n){function i(Ot){return r?r[Ot]:null}function a(Ot,pt,Et){pr(Ot,pt,Et,n),In(Ot,"change",Ot,t)}function S(Ot,pt){for(var Et=[],Pt=Ot;Pt<pt;++Pt)Et.push(new Or(ae[Pt],i(Pt),n));return Et}var R=t.from,re=t.to,ae=t.text,je=xt(e,R.line),De=xt(e,re.line),Be=q(ae),ze=i(ae.length-1),qe=re.line-R.line;if(t.full)e.insert(0,S(0,ae.length)),e.remove(ae.length,e.size-ae.length);else if(qs(e,t)){var st=S(0,ae.length-1);a(De,De.text,ze),qe&&e.remove(R.line,qe),st.length&&e.insert(R.line,st)}else if(je==De)if(ae.length==1)a(je,je.text.slice(0,R.ch)+Be+je.text.slice(re.ch),ze);else{var ft=S(1,ae.length-1);ft.push(new Or(Be+je.text.slice(re.ch),ze,n)),a(je,je.text.slice(0,R.ch)+ae[0],i(0)),e.insert(R.line+1,ft)}else if(ae.length==1)a(je,je.text.slice(0,R.ch)+ae[0]+De.text.slice(re.ch),i(0)),e.remove(R.line+1,qe);else{a(je,je.text.slice(0,R.ch)+ae[0],i(0)),a(De,Be+De.text.slice(re.ch),ze);var bt=S(1,ae.length-1);qe>1&&e.remove(R.line+1,qe-1),e.insert(R.line+1,bt)}In(e,"change",e,t)}function Br(e,t,r){function n(i,a,S){if(i.linked)for(var R=0;R<i.linked.length;++R){var re=i.linked[R];if(re.doc!=a){var ae=S&&re.sharedHist;r&&!ae||(t(re.doc,ae),n(re.doc,i,ae))}}}n(e,null,!0)}function Gs(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,zo(e),ts(e),Ks(e),e.options.direction=t.direction,e.options.lineWrapping||kr(e),e.options.mode=t.modeOption,cr(e)}function Ks(e){(e.doc.direction=="rtl"?O:f)(e.display.lineDiv,"CodeMirror-rtl")}function Ol(e){mr(e,function(){Ks(e),cr(e)})}function xo(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function rs(e,t){var r={from:Te(t.from),to:Hr(t),text:Rt(e,t.from,t.to)};return Xs(e,r,t.from.line,t.to.line+1),Br(e,function(n){return Xs(n,r,t.from.line,t.to.line+1)},!0),r}function Ys(e){for(;e.length&&q(e).ranges;)e.pop()}function Cl(e,t){return t?(Ys(e.done),q(e.done)):e.done.length&&!q(e.done).ranges?q(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),q(e.done)):void 0}function Js(e,t,r,n){var i=e.history;i.undone.length=0;var a,S,R=+new Date;if((i.lastOp==n||i.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&i.lastModTime>R-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(a=Cl(i,i.lastOp==n)))S=q(a.changes),Nt(t.from,t.to)==0&&Nt(t.from,S.to)==0?S.to=Hr(t):a.changes.push(rs(e,t));else{var re=q(i.done);for(re&&re.ranges||Oo(e.sel,i.done),a={changes:[rs(e,t)],generation:i.generation},i.done.push(a);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(r),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=R,i.lastOp=i.lastSelOp=n,i.lastOrigin=i.lastSelOrigin=t.origin,S||_e(e,"historyAdded")}function kl(e,t,r,n){var i=t.charAt(0);return i=="*"||i=="+"&&r.ranges.length==n.ranges.length&&r.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Sl(e,t,r,n){var i=e.history,a=n&&n.origin;r==i.lastSelOp||a&&i.lastSelOrigin==a&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==a||kl(e,a,q(i.done),t))?i.done[i.done.length-1]=t:Oo(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=a,i.lastSelOp=r,n&&n.clearRedo!==!1&&Ys(i.undone)}function Oo(e,t){var r=q(t);r&&r.ranges&&r.equals(e)||t.push(e)}function Xs(e,t,r,n){var i=t["spans_"+e.id],a=0;e.iter(Math.max(e.first,r),Math.min(e.first+e.size,n),function(S){S.markedSpans&&((i||(i=t["spans_"+e.id]={}))[a]=S.markedSpans),++a})}function Pl(e){if(!e)return null;for(var t,r=0;r<e.length;++r)e[r].marker.explicitlyCleared?t||(t=e.slice(0,r)):t&&t.push(e[r]);return t?t.length?t:null:e}function _l(e,t){var r=t["spans_"+e.id];if(!r)return null;for(var n=[],i=0;i<t.text.length;++i)n.push(Pl(r[i]));return n}function Qs(e,t){var r=_l(e,t),n=ut(e,t);if(!r)return n;if(!n)return r;for(var i=0;i<r.length;++i){var a=r[i],S=n[i];if(a&&S)e:for(var R=0;R<S.length;++R){for(var re=S[R],ae=0;ae<a.length;++ae)if(a[ae].marker==re.marker)continue e;a.push(re)}else S&&(r[i]=S)}return r}function gi(e,t,r){for(var n=[],i=0;i<e.length;++i){var a=e[i];if(a.ranges)n.push(r?xr.prototype.deepCopy.call(a):a);else{var S=a.changes,R=[];n.push({changes:R});for(var re=0;re<S.length;++re){var ae=S[re],je=void 0;if(R.push({from:ae.from,to:ae.to,text:ae.text}),t)for(var De in ae)(je=De.match(/^spans_(\d+)$/))&&l(t,Number(je[1]))>-1&&(q(R)[De]=ae[De],delete ae[De])}}}return n}function is(e,t,r,n){if(n){var i=e.anchor;if(r){var a=Nt(t,i)<0;a!=Nt(r,i)<0?(i=t,t=r):a!=Nt(t,r)<0&&(t=r)}return new mn(i,t)}return new mn(r||t,t)}function Co(e,t,r,n,i){i==null&&(i=e.cm&&(e.cm.display.shift||e.extend)),tr(e,new xr([is(e.sel.primary(),t,r,i)],0),n)}function ea(e,t,r){for(var n=[],i=e.cm&&(e.cm.display.shift||e.extend),a=0;a<e.sel.ranges.length;a++)n[a]=is(e.sel.ranges[a],t[a],null,i);tr(e,_r(e.cm,n,e.sel.primIndex),r)}function os(e,t,r,n){var i=e.sel.ranges.slice(0);i[t]=r,tr(e,_r(e.cm,i,e.sel.primIndex),n)}function ta(e,t,r,n){tr(e,Vr(t,r),n)}function Tl(e,t,r){var n={ranges:t.ranges,update:function(i){this.ranges=[];for(var a=0;a<i.length;a++)this.ranges[a]=new mn(ne(e,i[a].anchor),ne(e,i[a].head))},origin:r&&r.origin};return _e(e,"beforeSelectionChange",e,n),e.cm&&_e(e.cm,"beforeSelectionChange",e.cm,n),n.ranges!=t.ranges?_r(e.cm,n.ranges,n.ranges.length-1):t}function na(e,t,r){var n=e.history.done,i=q(n);i&&i.ranges?(n[n.length-1]=t,ko(e,t,r)):tr(e,t,r)}function tr(e,t,r){ko(e,t,r),Sl(e,e.sel,e.cm?e.cm.curOp.id:NaN,r)}function ko(e,t,r){(at(e,"beforeSelectionChange")||e.cm&&at(e.cm,"beforeSelectionChange"))&&(t=Tl(e,t,r));var n=r&&r.bias||(Nt(t.primary().head,e.sel.primary().head)<0?-1:1);ra(e,oa(e,t,n,!0)),r&&r.scroll===!1||!e.cm||e.cm.getOption("readOnly")=="nocursor"||di(e.cm)}function ra(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,He(e.cm)),In(e,"cursorActivity",e))}function ia(e){ra(e,oa(e,e.sel,null,!1))}function oa(e,t,r,n){for(var i,a=0;a<t.ranges.length;a++){var S=t.ranges[a],R=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[a],re=So(e,S.anchor,R&&R.anchor,r,n),ae=So(e,S.head,R&&R.head,r,n);(i||re!=S.anchor||ae!=S.head)&&(i||(i=t.ranges.slice(0,a)),i[a]=new mn(re,ae))}return i?_r(e.cm,i,t.primIndex):t}function mi(e,t,r,n,i){var a=xt(e,t.line);if(a.markedSpans)for(var S=0;S<a.markedSpans.length;++S){var R=a.markedSpans[S],re=R.marker,ae="selectLeft"in re?!re.selectLeft:re.inclusiveLeft,je="selectRight"in re?!re.selectRight:re.inclusiveRight;if((R.from==null||(ae?R.from<=t.ch:R.from<t.ch))&&(R.to==null||(je?R.to>=t.ch:R.to>t.ch))){if(i&&(_e(re,"beforeCursorEnter"),re.explicitlyCleared)){if(a.markedSpans){--S;continue}break}if(!re.atomic)continue;if(r){var De=re.find(n<0?1:-1),Be=void 0;if((n<0?je:ae)&&(De=sa(e,De,-n,De&&De.line==t.line?a:null)),De&&De.line==t.line&&(Be=Nt(De,r))&&(n<0?Be<0:Be>0))return mi(e,De,t,n,i)}var ze=re.find(n<0?-1:1);return(n<0?ae:je)&&(ze=sa(e,ze,n,ze.line==t.line?a:null)),ze?mi(e,ze,t,n,i):null}}return t}function So(e,t,r,n,i){var a=n||1,S=mi(e,t,r,a,i)||!i&&mi(e,t,r,a,!0)||mi(e,t,r,-a,i)||!i&&mi(e,t,r,-a,!0);return S||(e.cantEdit=!0,ot(e.first,0))}function sa(e,t,r,n){return r<0&&t.ch==0?t.line>e.first?ne(e,ot(t.line-1)):null:r>0&&t.ch==(n||xt(e,t.line)).text.length?t.line<e.first+e.size-1?ot(t.line+1,0):null:new ot(t.line,t.ch+r)}function aa(e){e.setSelection(ot(e.firstLine(),0),ot(e.lastLine()),h)}function la(e,t,r){var n={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return n.canceled=!0}};return r&&(n.update=function(i,a,S,R){i&&(n.from=ne(e,i)),a&&(n.to=ne(e,a)),S&&(n.text=S),R!==void 0&&(n.origin=R)}),_e(e,"beforeChange",e,n),e.cm&&_e(e.cm,"beforeChange",e.cm,n),n.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:n.from,to:n.to,text:n.text,origin:n.origin}}function vi(e,t,r){if(e.cm){if(!e.cm.curOp)return Yn(e.cm,vi)(e,t,r);if(e.cm.state.suppressEdits)return}if(!(at(e,"beforeChange")||e.cm&&at(e.cm,"beforeChange"))||(t=la(e,t,!0))){var n=Q&&!r&&_t(e,t.from,t.to);if(n)for(var i=n.length-1;i>=0;--i)ca(e,{from:n[i].from,to:n[i].to,text:i?[""]:t.text,origin:t.origin});else ca(e,t)}}function ca(e,t){if(t.text.length!=1||t.text[0]!=""||Nt(t.from,t.to)!=0){var r=es(e,t);Js(e,t,r,e.cm?e.cm.curOp.id:NaN),Hi(e,t,r,ut(e,t));var n=[];Br(e,function(i,a){a||l(n,i.history)!=-1||(da(i.history,t),n.push(i.history)),Hi(i,t,null,ut(i,t))})}}function Po(e,t,r){var n=e.cm&&e.cm.state.suppressEdits;if(!n||r){for(var i,a=e.history,S=e.sel,R=t=="undo"?a.done:a.undone,re=t=="undo"?a.undone:a.done,ae=0;ae<R.length&&(i=R[ae],r?!i.ranges||i.equals(e.sel):i.ranges);ae++);if(ae!=R.length){for(a.lastOrigin=a.lastSelOrigin=null;;){if(!(i=R.pop()).ranges){if(n)return void R.push(i);break}if(Oo(i,re),r&&!i.equals(e.sel))return void tr(e,i,{clearRedo:!1});S=i}var je=[];Oo(S,re),re.push({changes:je,generation:a.generation}),a.generation=i.generation||++a.maxGeneration;for(var De=at(e,"beforeChange")||e.cm&&at(e.cm,"beforeChange"),Be=function(st){var ft=i.changes[st];if(ft.origin=t,De&&!la(e,ft,!1))return R.length=0,{};je.push(rs(e,ft));var bt=st?es(e,ft):q(R);Hi(e,ft,bt,Qs(e,ft)),!st&&e.cm&&e.cm.scrollIntoView({from:ft.from,to:Hr(ft)});var Ot=[];Br(e,function(pt,Et){Et||l(Ot,pt.history)!=-1||(da(pt.history,ft),Ot.push(pt.history)),Hi(pt,ft,null,Qs(pt,ft))})},ze=i.changes.length-1;ze>=0;--ze){var qe=Be(ze);if(qe)return qe.v}}}}function ua(e,t){if(t!=0&&(e.first+=t,e.sel=new xr(ue(e.sel.ranges,function(i){return new mn(ot(i.anchor.line+t,i.anchor.ch),ot(i.head.line+t,i.head.ch))}),e.sel.primIndex),e.cm)){cr(e.cm,e.first,e.first-t,t);for(var r=e.cm.display,n=r.viewFrom;n<r.viewTo;n++)Zr(e.cm,n,"gutter")}}function Hi(e,t,r,n){if(e.cm&&!e.cm.curOp)return Yn(e.cm,Hi)(e,t,r,n);if(t.to.line<e.first)ua(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);ua(e,i),t={from:ot(e.first,0),to:ot(t.to.line+i,t.to.ch),text:[q(t.text)],origin:t.origin}}var a=e.lastLine();t.to.line>a&&(t={from:t.from,to:ot(a,xt(e,a).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Rt(e,t.from,t.to),r||(r=es(e,t)),e.cm?El(e.cm,t,n):ns(e,t,n),ko(e,r,h),e.cantEdit&&So(e,ot(e.firstLine(),0))&&(e.cantEdit=!1)}}function El(e,t,r){var n=e.doc,i=e.display,a=t.from,S=t.to,R=!1,re=a.line;e.options.lineWrapping||(re=$t(St(xt(n,a.line))),n.iter(re,S.line+1,function(ze){if(ze==i.maxLine)return R=!0,!0})),n.sel.contains(t.from,t.to)>-1&&He(e),ns(n,t,r,Ts(e)),e.options.lineWrapping||(n.iter(re,a.line+t.text.length,function(ze){var qe=Mr(ze);qe>i.maxLineLength&&(i.maxLine=ze,i.maxLineLength=qe,i.maxLineChanged=!0,R=!1)}),R&&(e.curOp.updateMaxLine=!0)),Pe(n,a.line),Zi(e,400);var ae=t.text.length-(S.line-a.line)-1;t.full?cr(e):a.line!=S.line||t.text.length!=1||qs(e.doc,t)?cr(e,a.line,S.line+1,ae):Zr(e,a.line,"text");var je=at(e,"changes"),De=at(e,"change");if(De||je){var Be={from:a,to:S,text:t.text,removed:t.removed,origin:t.origin};De&&In(e,"change",e,Be),je&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(Be)}e.display.selForContextMenu=null}function yi(e,t,r,n,i){var a;n||(n=r),Nt(n,r)<0&&(r=(a=[n,r])[0],n=a[1]),typeof t=="string"&&(t=e.splitLines(t)),vi(e,{from:r,to:n,text:t,origin:i})}function ha(e,t,r,n){r<e.line?e.line+=n:t<e.line&&(e.line=t,e.ch=0)}function fa(e,t,r,n){for(var i=0;i<e.length;++i){var a=e[i],S=!0;if(a.ranges){a.copied||((a=e[i]=a.deepCopy()).copied=!0);for(var R=0;R<a.ranges.length;R++)ha(a.ranges[R].anchor,t,r,n),ha(a.ranges[R].head,t,r,n)}else{for(var re=0;re<a.changes.length;++re){var ae=a.changes[re];if(r<ae.from.line)ae.from=ot(ae.from.line+n,ae.from.ch),ae.to=ot(ae.to.line+n,ae.to.ch);else if(t<=ae.to.line){S=!1;break}}S||(e.splice(0,i+1),i=0)}}}function da(e,t){var r=t.from.line,n=t.to.line,i=t.text.length-(n-r)-1;fa(e.done,r,n,i),fa(e.undone,r,n,i)}function Bi(e,t,r,n){var i=t,a=t;return typeof t=="number"?a=xt(e,oe(e,t)):i=$t(t),i==null?null:(n(a,i)&&e.cm&&Zr(e.cm,i,r),a)}function zi(e){this.lines=e,this.parent=null;for(var t=0,r=0;r<e.length;++r)e[r].parent=this,t+=e[r].height;this.height=t}function Ui(e){this.children=e;for(var t=0,r=0,n=0;n<e.length;++n){var i=e[n];t+=i.chunkSize(),r+=i.height,i.parent=this}this.size=t,this.height=r,this.parent=null}mn.prototype.from=function(){return U(this.anchor,this.head)},mn.prototype.to=function(){return Ke(this.anchor,this.head)},mn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},zi.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var r=e,n=e+t;r<n;++r){var i=this.lines[r];this.height-=i.height,ii(i),In(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,r){this.height+=r,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var n=0;n<t.length;++n)t[n].parent=this},iterN:function(e,t,r){for(var n=e+t;e<n;++e)if(r(this.lines[e]))return!0}},Ui.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var r=0;r<this.children.length;++r){var n=this.children[r],i=n.chunkSize();if(e<i){var a=Math.min(t,i-e),S=n.height;if(n.removeInner(e,a),this.height-=S-n.height,i==a&&(this.children.splice(r--,1),n.parent=null),(t-=a)==0)break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof zi))){var R=[];this.collapse(R),this.children=[new zi(R)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,r){this.size+=t.length,this.height+=r;for(var n=0;n<this.children.length;++n){var i=this.children[n],a=i.chunkSize();if(e<=a){if(i.insertInner(e,t,r),i.lines&&i.lines.length>50){for(var S=i.lines.length%25+25,R=S;R<i.lines.length;){var re=new zi(i.lines.slice(R,R+=25));i.height-=re.height,this.children.splice(++n,0,re),re.parent=this}i.lines=i.lines.slice(0,S),this.maybeSpill()}break}e-=a}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new Ui(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var r=l(e.parent.children,e);e.parent.children.splice(r+1,0,t)}else{var n=new Ui(e.children);n.parent=e,e.children=[n,t],e=n}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,r){for(var n=0;n<this.children.length;++n){var i=this.children[n],a=i.chunkSize();if(e<a){var S=Math.min(t,a-e);if(i.iterN(e,S,r))return!0;if((t-=S)==0)break;e=0}else e-=a}}};var Wi=function(e,t,r){if(r)for(var n in r)r.hasOwnProperty(n)&&(this[n]=r[n]);this.doc=e,this.node=t};function pa(e,t,r){lr(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Go(e,r)}function jl(e,t,r,n){var i=new Wi(e,r,n),a=e.cm;return a&&i.noHScroll&&(a.display.alignWidgets=!0),Bi(e,t,"widget",function(S){var R=S.widgets||(S.widgets=[]);if(i.insertAt==null?R.push(i):R.splice(Math.min(R.length,Math.max(0,i.insertAt)),0,i),i.line=S,a&&!Un(e,S)){var re=lr(S)<e.scrollTop;Cn(S,S.height+ee(i)),re&&Go(a,i.height),a.curOp.forceUpdate=!0}return!0}),a&&In(a,"lineWidgetAdded",a,i,typeof t=="number"?t:$t(t)),i}Wi.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,r=this.line,n=$t(r);if(n!=null&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(r.widgets=null);var a=ee(this);Cn(r,Math.max(0,r.height-a)),e&&(mr(e,function(){pa(e,r,-a),Zr(e,n,"widget")}),In(e,"lineWidgetCleared",e,this,n))}},Wi.prototype.changed=function(){var e=this,t=this.height,r=this.doc.cm,n=this.line;this.height=null;var i=ee(this)-t;i&&(Un(this.doc,n)||Cn(n,n.height+i),r&&mr(r,function(){r.curOp.forceUpdate=!0,pa(r,n,i),In(r,"lineWidgetChanged",r,e,$t(n))}))},Ye(Wi);var ga=0,zr=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++ga};function bi(e,t,r,n,i){if(n&&n.shared)return Dl(e,t,r,n,i);if(e.cm&&!e.cm.curOp)return Yn(e.cm,bi)(e,t,r,n,i);var a=new zr(e,i),S=Nt(t,r);if(n&&le(n,a,!1),S>0||S==0&&a.clearWhenEmpty!==!1)return a;if(a.replacedWith&&(a.collapsed=!0,a.widgetNode=T("span",[a.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||a.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(a.widgetNode.insertLeft=!0)),a.collapsed){if(Lt(e,t.line,t,r,a)||t.line!=r.line&&Lt(e,r.line,t,r,a))throw new Error("Inserting collapsed marker partially overlapping an existing one");me()}a.addToHistory&&Js(e,{from:t,to:r,origin:"markText"},e.sel,NaN);var R,re=t.line,ae=e.cm;if(e.iter(re,r.line+1,function(De){ae&&a.collapsed&&!ae.options.lineWrapping&&St(De)==ae.display.maxLine&&(R=!0),a.collapsed&&re!=t.line&&Cn(De,0),it(De,new Ce(a,re==t.line?t.ch:null,re==r.line?r.ch:null),e.cm&&e.cm.curOp),++re}),a.collapsed&&e.iter(t.line,r.line+1,function(De){Un(e,De)&&Cn(De,0)}),a.clearOnEnter&&fe(a,"beforeCursorEnter",function(){return a.clear()}),a.readOnly&&(V(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),a.collapsed&&(a.id=++ga,a.atomic=!0),ae){if(R&&(ae.curOp.updateMaxLine=!0),a.collapsed)cr(ae,t.line,r.line+1);else if(a.className||a.startStyle||a.endStyle||a.css||a.attributes||a.title)for(var je=t.line;je<=r.line;je++)Zr(ae,je,"text");a.atomic&&ia(ae.doc),In(ae,"markerAdded",ae,a)}return a}zr.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Qr(e),at(this,"clear")){var r=this.find();r&&In(this,"clear",r.from,r.to)}for(var n=null,i=null,a=0;a<this.lines.length;++a){var S=this.lines[a],R=Ze(S.markedSpans,this);e&&!this.collapsed?Zr(e,$t(S),"text"):e&&(R.to!=null&&(i=$t(S)),R.from!=null&&(n=$t(S))),S.markedSpans=We(S.markedSpans,R),R.from==null&&this.collapsed&&!Un(this.doc,S)&&e&&Cn(S,ui(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var re=0;re<this.lines.length;++re){var ae=St(this.lines[re]),je=Mr(ae);je>e.display.maxLineLength&&(e.display.maxLine=ae,e.display.maxLineLength=je,e.display.maxLineChanged=!0)}n!=null&&e&&this.collapsed&&cr(e,n,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&ia(e.doc)),e&&In(e,"markerCleared",e,this,n,i),t&&ei(e),this.parent&&this.parent.clear()}},zr.prototype.find=function(e,t){var r,n;e==null&&this.type=="bookmark"&&(e=1);for(var i=0;i<this.lines.length;++i){var a=this.lines[i],S=Ze(a.markedSpans,this);if(S.from!=null&&(r=ot(t?a:$t(a),S.from),e==-1))return r;if(S.to!=null&&(n=ot(t?a:$t(a),S.to),e==1))return n}return r&&{from:r,to:n}},zr.prototype.changed=function(){var e=this,t=this.find(-1,!0),r=this,n=this.doc.cm;t&&n&&mr(n,function(){var i=t.line,a=$t(t.line),S=ci(n,a);if(S&&(ws(S),n.curOp.selectionChanged=n.curOp.forceUpdate=!0),n.curOp.updateMaxLine=!0,!Un(r.doc,i)&&r.height!=null){var R=r.height;r.height=null;var re=ee(r)-R;re&&Cn(i,i.height+re)}In(n,"markerChanged",n,e)})},zr.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&l(t.maybeHiddenMarkers,this)!=-1||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},zr.prototype.detachLine=function(e){if(this.lines.splice(l(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Ye(zr);var $i=function(e,t){this.markers=e,this.primary=t;for(var r=0;r<e.length;++r)e[r].parent=this};function Dl(e,t,r,n,i){(n=le(n)).shared=!1;var a=[bi(e,t,r,n,i)],S=a[0],R=n.widgetNode;return Br(e,function(re){R&&(n.widgetNode=R.cloneNode(!0)),a.push(bi(re,ne(re,t),ne(re,r),n,i));for(var ae=0;ae<re.linked.length;++ae)if(re.linked[ae].isParent)return;S=q(a)}),new $i(a,S)}function ma(e){return e.findMarks(ot(e.first,0),e.clipPos(ot(e.lastLine())),function(t){return t.parent})}function Ml(e,t){for(var r=0;r<t.length;r++){var n=t[r],i=n.find(),a=e.clipPos(i.from),S=e.clipPos(i.to);if(Nt(a,S)){var R=bi(e,a,S,n.primary,n.primary.type);n.markers.push(R),R.parent=n}}}function Al(e){for(var t=function(n){var i=e[n],a=[i.primary.doc];Br(i.primary.doc,function(re){return a.push(re)});for(var S=0;S<i.markers.length;S++){var R=i.markers[S];l(a,R.doc)==-1&&(R.parent=null,i.markers.splice(S--,1))}},r=0;r<e.length;r++)t(r)}$i.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();In(this,"clear")}},$i.prototype.find=function(e,t){return this.primary.find(e,t)},Ye($i);var Ll=0,ur=function(e,t,r,n,i){if(!(this instanceof ur))return new ur(e,t,r,n,i);r==null&&(r=0),Ui.call(this,[new zi([new Or("",null)])]),this.first=r,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=r;var a=ot(r,0);this.sel=Vr(a),this.history=new xo(null),this.id=++Ll,this.modeOption=t,this.lineSep=n,this.direction=i=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),ns(this,{from:a,to:a,text:e}),tr(this,Vr(a),h)};ur.prototype=pe(Ui.prototype,{constructor:ur,iter:function(e,t,r){r?this.iterN(e-this.first,t-e,r):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var r=0,n=0;n<t.length;++n)r+=t[n].height;this.insertInner(e-this.first,t,r)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=ir(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:Jn(function(e){var t=ot(this.first,0),r=this.first+this.size-1;vi(this,{from:t,to:ot(r,xt(this,r).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Li(this.cm,0,0),tr(this,Vr(t),h)}),replaceRange:function(e,t,r,n){yi(this,e,t=ne(this,t),r=r?ne(this,r):t,n)},getRange:function(e,t,r){var n=Rt(this,ne(this,e),ne(this,t));return r===!1?n:r===""?n.join(""):n.join(r||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(Nn(this,e))return xt(this,e)},getLineNumber:function(e){return $t(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=xt(this,e)),St(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return ne(this,e)},getCursor:function(e){var t=this.sel.primary();return e==null||e=="head"?t.head:e=="anchor"?t.anchor:e=="end"||e=="to"||e===!1?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Jn(function(e,t,r){ta(this,ne(this,typeof e=="number"?ot(e,t||0):e),null,r)}),setSelection:Jn(function(e,t,r){ta(this,ne(this,e),ne(this,t||e),r)}),extendSelection:Jn(function(e,t,r){Co(this,ne(this,e),t&&ne(this,t),r)}),extendSelections:Jn(function(e,t){ea(this,Ge(this,e),t)}),extendSelectionsBy:Jn(function(e,t){ea(this,Ge(this,ue(this.sel.ranges,e)),t)}),setSelections:Jn(function(e,t,r){if(e.length){for(var n=[],i=0;i<e.length;i++)n[i]=new mn(ne(this,e[i].anchor),ne(this,e[i].head||e[i].anchor));t==null&&(t=Math.min(e.length-1,this.sel.primIndex)),tr(this,_r(this.cm,n,t),r)}}),addSelection:Jn(function(e,t,r){var n=this.sel.ranges.slice(0);n.push(new mn(ne(this,e),ne(this,t||e))),tr(this,_r(this.cm,n,n.length-1),r)}),getSelection:function(e){for(var t,r=this.sel.ranges,n=0;n<r.length;n++){var i=Rt(this,r[n].from(),r[n].to());t=t?t.concat(i):i}return e===!1?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],r=this.sel.ranges,n=0;n<r.length;n++){var i=Rt(this,r[n].from(),r[n].to());e!==!1&&(i=i.join(e||this.lineSeparator())),t[n]=i}return t},replaceSelection:function(e,t,r){for(var n=[],i=0;i<this.sel.ranges.length;i++)n[i]=e;this.replaceSelections(n,t,r||"+input")},replaceSelections:Jn(function(e,t,r){for(var n=[],i=this.sel,a=0;a<i.ranges.length;a++){var S=i.ranges[a];n[a]={from:S.from(),to:S.to(),text:this.splitLines(e[a]),origin:r}}for(var R=t&&t!="end"&&xl(this,n,t),re=n.length-1;re>=0;re--)vi(this,n[re]);R?na(this,R):this.cm&&di(this.cm)}),undo:Jn(function(){Po(this,"undo")}),redo:Jn(function(){Po(this,"redo")}),undoSelection:Jn(function(){Po(this,"undo",!0)}),redoSelection:Jn(function(){Po(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,r=0,n=0;n<e.done.length;n++)e.done[n].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++r;return{undo:t,redo:r}},clearHistory:function(){var e=this;this.history=new xo(this.history),Br(this,function(t){return t.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:gi(this.history.done),undone:gi(this.history.undone)}},setHistory:function(e){var t=this.history=new xo(this.history);t.done=gi(e.done.slice(0),null,!0),t.undone=gi(e.undone.slice(0),null,!0)},setGutterMarker:Jn(function(e,t,r){return Bi(this,e,"gutter",function(n){var i=n.gutterMarkers||(n.gutterMarkers={});return i[t]=r,!r&&Ie(i)&&(n.gutterMarkers=null),!0})}),clearGutter:Jn(function(e){var t=this;this.iter(function(r){r.gutterMarkers&&r.gutterMarkers[e]&&Bi(t,r,"gutter",function(){return r.gutterMarkers[e]=null,Ie(r.gutterMarkers)&&(r.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e=="number"){if(!Nn(this,e)||(t=e,!(e=xt(this,e))))return null}else if((t=$t(e))==null)return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Jn(function(e,t,r){return Bi(this,e,t=="gutter"?"gutter":"class",function(n){var i=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass";if(n[i]){if(p(r).test(n[i]))return!1;n[i]+=" "+r}else n[i]=r;return!0})}),removeLineClass:Jn(function(e,t,r){return Bi(this,e,t=="gutter"?"gutter":"class",function(n){var i=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass",a=n[i];if(!a)return!1;if(r==null)n[i]=null;else{var S=a.match(p(r));if(!S)return!1;var R=S.index+S[0].length;n[i]=a.slice(0,S.index)+(S.index&&R!=a.length?" ":"")+a.slice(R)||null}return!0})}),addLineWidget:Jn(function(e,t,r){return jl(this,e,t,r)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,r){return bi(this,ne(this,e),ne(this,t),r,r&&r.type||"range")},setBookmark:function(e,t){var r={replacedWith:t&&(t.nodeType==null?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return bi(this,e=ne(this,e),e,r,"bookmark")},findMarksAt:function(e){var t=[],r=xt(this,(e=ne(this,e)).line).markedSpans;if(r)for(var n=0;n<r.length;++n){var i=r[n];(i.from==null||i.from<=e.ch)&&(i.to==null||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,r){e=ne(this,e),t=ne(this,t);var n=[],i=e.line;return this.iter(e.line,t.line+1,function(a){var S=a.markedSpans;if(S)for(var R=0;R<S.length;R++){var re=S[R];re.to!=null&&i==e.line&&e.ch>=re.to||re.from==null&&i!=e.line||re.from!=null&&i==t.line&&re.from>=t.ch||r&&!r(re.marker)||n.push(re.marker.parent||re.marker)}++i}),n},getAllMarks:function(){var e=[];return this.iter(function(t){var r=t.markedSpans;if(r)for(var n=0;n<r.length;++n)r[n].from!=null&&e.push(r[n].marker)}),e},posFromIndex:function(e){var t,r=this.first,n=this.lineSeparator().length;return this.iter(function(i){var a=i.text.length+n;if(a>e)return t=e,!0;e-=a,++r}),ne(this,ot(r,t))},indexFromPos:function(e){var t=(e=ne(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var r=this.lineSeparator().length;return this.iter(this.first,e.line,function(n){t+=n.text.length+r}),t},copy:function(e){var t=new ur(ir(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,r=this.first+this.size;e.from!=null&&e.from>t&&(t=e.from),e.to!=null&&e.to<r&&(r=e.to);var n=new ur(ir(this,t,r),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(n.history=this.history),(this.linked||(this.linked=[])).push({doc:n,sharedHist:e.sharedHist}),n.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Ml(n,ma(this)),n},unlinkDoc:function(e){if(e instanceof jn&&(e=e.doc),this.linked){for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),Al(ma(this));break}}if(e.history==this.history){var r=[e.id];Br(e,function(n){return r.push(n.id)},!0),e.history=new xo(null),e.history.done=gi(this.history.done,r),e.history.undone=gi(this.history.undone,r)}},iterLinkedDocs:function(e){Br(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):ln(e)},lineSeparator:function(){return this.lineSep||` +`},setDirection:Jn(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(t){return t.order=null}),this.cm&&Ol(this.cm))})}),ur.prototype.eachLine=ur.prototype.iter;var va=0;function Rl(e){var t=this;if(ya(t),!Fe(t,e)&&!de(t.display,e)){gt(e),N&&(va=+new Date);var r=Kr(t,e,!0),n=e.dataTransfer.files;if(r&&!t.isReadOnly())if(n&&n.length&&window.FileReader&&window.File)for(var i=n.length,a=Array(i),S=0,R=function(){++S==i&&Yn(t,function(){var ze={from:r=ne(t.doc,r),to:r,text:t.doc.splitLines(a.filter(function(qe){return qe!=null}).join(t.doc.lineSeparator())),origin:"paste"};vi(t.doc,ze),na(t.doc,Vr(ne(t.doc,r),ne(t.doc,Hr(ze))))})()},re=function(ze,qe){if(t.options.allowDropFileTypes&&l(t.options.allowDropFileTypes,ze.type)==-1)R();else{var st=new FileReader;st.onerror=function(){return R()},st.onload=function(){var ft=st.result;/[\x00-\x08\x0e-\x1f]{2}/.test(ft)||(a[qe]=ft),R()},st.readAsText(ze)}},ae=0;ae<n.length;ae++)re(n[ae],ae);else{if(t.state.draggingText&&t.doc.sel.contains(r)>-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var je=e.dataTransfer.getData("Text");if(je){var De;if(t.state.draggingText&&!t.state.draggingText.copy&&(De=t.listSelections()),ko(t.doc,Vr(r,r)),De)for(var Be=0;Be<De.length;++Be)yi(t.doc,"",De[Be].anchor,De[Be].head,"drag");t.replaceSelection(je,"around","paste"),t.display.input.focus()}}catch{}}}}function Nl(e,t){if(N&&(!e.state.draggingText||+new Date-va<100))rn(t);else if(!Fe(e,t)&&!de(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!P)){var r=g("img",null,null,"position: fixed; left: 0; top: 0;");r.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",y&&(r.width=r.height=1,e.display.wrapper.appendChild(r),r._top=r.offsetTop),t.dataTransfer.setDragImage(r,0,0),y&&r.parentNode.removeChild(r)}}function Il(e,t){var r=Kr(e,t);if(r){var n=document.createDocumentFragment();Ds(e,r,n),e.display.dragCursor||(e.display.dragCursor=g("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),D(e.display.dragCursor,n)}}function ya(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function ba(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),r=[],n=0;n<t.length;n++){var i=t[n].CodeMirror;i&&r.push(i)}r.length&&r[0].operation(function(){for(var a=0;a<r.length;a++)e(r[a])})}}var wa=!1;function Zl(){wa||(Fl(),wa=!0)}function Fl(){var e;fe(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,ba(Vl)},100))}),fe(window,"blur",function(){return ba(fi)})}function Vl(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Ur={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},qi=0;qi<10;qi++)Ur[qi+48]=Ur[qi+96]=String(qi);for(var _o=65;_o<=90;_o++)Ur[_o]=String.fromCharCode(_o);for(var Gi=1;Gi<=12;Gi++)Ur[Gi+111]=Ur[Gi+63235]="F"+Gi;var Rr={};function Hl(e){var t,r,n,i,a=e.split(/-(?!$)/);e=a[a.length-1];for(var S=0;S<a.length-1;S++){var R=a[S];if(/^(cmd|meta|m)$/i.test(R))i=!0;else if(/^a(lt)?$/i.test(R))t=!0;else if(/^(c|ctrl|control)$/i.test(R))r=!0;else{if(!/^s(hift)?$/i.test(R))throw new Error("Unrecognized modifier name: "+R);n=!0}}return t&&(e="Alt-"+e),r&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),n&&(e="Shift-"+e),e}function Bl(e){var t={};for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];if(/^(name|fallthrough|(de|at)tach)$/.test(r))continue;if(n=="..."){delete e[r];continue}for(var i=ue(r.split(" "),Hl),a=0;a<i.length;a++){var S=void 0,R=void 0;a==i.length-1?(R=i.join(" "),S=n):(R=i.slice(0,a+1).join(" "),S="...");var re=t[R];if(re){if(re!=S)throw new Error("Inconsistent bindings for "+R)}else t[R]=S}delete e[r]}for(var ae in t)e[ae]=t[ae];return e}function wi(e,t,r,n){var i=(t=To(t)).call?t.call(e,n):t[e];if(i===!1)return"nothing";if(i==="...")return"multi";if(i!=null&&r(i))return"handled";if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!="[object Array]")return wi(e,t.fallthrough,r,n);for(var a=0;a<t.fallthrough.length;a++){var S=wi(e,t.fallthrough[a],r,n);if(S)return S}}}function xa(e){var t=typeof e=="string"?e:Ur[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function Oa(e,t,r){var n=e;return t.altKey&&n!="Alt"&&(e="Alt-"+e),(z?t.metaKey:t.ctrlKey)&&n!="Ctrl"&&(e="Ctrl-"+e),(z?t.ctrlKey:t.metaKey)&&n!="Mod"&&(e="Cmd-"+e),!r&&t.shiftKey&&n!="Shift"&&(e="Shift-"+e),e}function Ca(e,t){if(y&&e.keyCode==34&&e.char)return!1;var r=Ur[e.keyCode];return r!=null&&!e.altGraphKey&&(e.keyCode==3&&e.code&&(r=e.code),Oa(r,e,t))}function To(e){return typeof e=="string"?Rr[e]:e}function xi(e,t){for(var r=e.doc.sel.ranges,n=[],i=0;i<r.length;i++){for(var a=t(r[i]);n.length&&Nt(a.from,q(n).to)<=0;){var S=n.pop();if(Nt(S.from,a.from)<0){a.from=S.from;break}}n.push(a)}mr(e,function(){for(var R=n.length-1;R>=0;R--)yi(e.doc,"",n[R].from,n[R].to,"+delete");di(e)})}function ss(e,t,r){var n=tt(e.text,t+r,r);return n<0||n>e.text.length?null:n}function as(e,t,r){var n=ss(e,t.ch,r);return n==null?null:new ot(t.line,n,r<0?"after":"before")}function ls(e,t,r,n,i){if(e){t.doc.direction=="rtl"&&(i=-i);var a=Ct(r,t.doc.direction);if(a){var S,R=i<0?q(a):a[0],re=i<0==(R.level==1)?"after":"before";if(R.level>0||t.doc.direction=="rtl"){var ae=Lr(t,r);S=i<0?r.text.length-1:0;var je=Dr(t,ae,S).top;S=ht(function(De){return Dr(t,ae,De).top==je},i<0==(R.level==1)?R.from:R.to-1,S),re=="before"&&(S=ss(r,S,1))}else S=i<0?R.to:R.from;return new ot(n,S,re)}}return new ot(n,i<0?r.text.length:0,i<0?"before":"after")}function zl(e,t,r,n){var i=Ct(t,e.doc.direction);if(!i)return as(t,r,n);r.ch>=t.text.length?(r.ch=t.text.length,r.sticky="before"):r.ch<=0&&(r.ch=0,r.sticky="after");var a=Ht(i,r.ch,r.sticky),S=i[a];if(e.doc.direction=="ltr"&&S.level%2==0&&(n>0?S.to>r.ch:S.from<r.ch))return as(t,r,n);var R,re=function(bt,Ot){return ss(t,bt instanceof ot?bt.ch:bt,Ot)},ae=function(bt){return e.options.lineWrapping?(R=R||Lr(e,t),_s(e,t,R,bt)):{begin:0,end:t.text.length}},je=ae(r.sticky=="before"?re(r,-1):r.ch);if(e.doc.direction=="rtl"||S.level==1){var De=S.level==1==n<0,Be=re(r,De?1:-1);if(Be!=null&&(De?Be<=S.to&&Be<=je.end:Be>=S.from&&Be>=je.begin)){var ze=De?"before":"after";return new ot(r.line,Be,ze)}}var qe=function(bt,Ot,pt){for(var Et=function(On,vr){return vr?new ot(r.line,re(On,1),"before"):new ot(r.line,On,"after")};bt>=0&&bt<i.length;bt+=Ot){var Pt=i[bt],It=Ot>0==(Pt.level!=1),xn=It?pt.begin:re(pt.end,-1);if(Pt.from<=xn&&xn<Pt.to||(xn=It?Pt.from:re(Pt.to,-1),pt.begin<=xn&&xn<pt.end))return Et(xn,It)}},st=qe(a+n,n,je);if(st)return st;var ft=n>0?je.end:re(je.begin,-1);return ft==null||n>0&&ft==t.text.length||!(st=qe(n>0?0:i.length-1,n,ae(ft)))?null:st}Rr.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Rr.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Rr.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Rr.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Rr.default=H?Rr.macDefault:Rr.pcDefault;var Ki={selectAll:aa,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),h)},killLine:function(e){return xi(e,function(t){if(t.empty()){var r=xt(e.doc,t.head.line).text.length;return t.head.ch==r&&t.head.line<e.lastLine()?{from:t.head,to:ot(t.head.line+1,0)}:{from:t.head,to:ot(t.head.line,r)}}return{from:t.from(),to:t.to()}})},deleteLine:function(e){return xi(e,function(t){return{from:ot(t.from().line,0),to:ne(e.doc,ot(t.to().line+1,0))}})},delLineLeft:function(e){return xi(e,function(t){return{from:ot(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return xi(e,function(t){var r=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:r},"div"),to:t.from()}})},delWrappedLineRight:function(e){return xi(e,function(t){var r=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:r},"div");return{from:t.from(),to:n}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(ot(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(ot(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return ka(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return Sa(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return Ul(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var r=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:r},"div")},j)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var r=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:r},"div")},j)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var r=e.cursorCoords(t.head,"div").top+5,n=e.coordsChar({left:0,top:r},"div");return n.ch<e.getLine(n.line).search(/\S/)?Sa(e,t.head):n},j)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var t=[],r=e.listSelections(),n=e.options.tabSize,i=0;i<r.length;i++){var a=r[i].from(),S=ce(e.getLine(a.line),a.ch,n);t.push(E(n-S%n))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return mr(e,function(){for(var t=e.listSelections(),r=[],n=0;n<t.length;n++)if(t[n].empty()){var i=t[n].head,a=xt(e.doc,i.line).text;if(a){if(i.ch==a.length&&(i=new ot(i.line,i.ch-1)),i.ch>0)i=new ot(i.line,i.ch+1),e.replaceRange(a.charAt(i.ch-1)+a.charAt(i.ch-2),ot(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var S=xt(e.doc,i.line-1).text;S&&(i=new ot(i.line,1),e.replaceRange(a.charAt(0)+e.doc.lineSeparator()+S.charAt(S.length-1),ot(i.line-1,S.length-1),i,"+transpose"))}}r.push(new mn(i,i))}e.setSelections(r)})},newlineAndIndent:function(e){return mr(e,function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange(e.doc.lineSeparator(),t[r].anchor,t[r].head,"+input");t=e.listSelections();for(var n=0;n<t.length;n++)e.indentLine(t[n].from().line,null,!0);di(e)})},openLine:function(e){return e.replaceSelection(` +`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function ka(e,t){var r=xt(e.doc,t),n=St(r);return n!=r&&(t=$t(n)),ls(!0,e,n,t,1)}function Ul(e,t){var r=xt(e.doc,t),n=hn(r);return n!=r&&(t=$t(n)),ls(!0,e,r,t,-1)}function Sa(e,t){var r=ka(e,t.line),n=xt(e.doc,r.line),i=Ct(n,e.doc.direction);if(!i||i[0].level==0){var a=Math.max(r.ch,n.text.search(/\S/)),S=t.line==r.line&&t.ch<=a&&t.ch;return ot(r.line,S?0:a,r.sticky)}return r}function Eo(e,t,r){if(typeof t=="string"&&!(t=Ki[t]))return!1;e.display.input.ensurePolled();var n=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r&&(e.display.shift=!1),i=t(e)!=o}finally{e.display.shift=n,e.state.suppressEdits=!1}return i}function Wl(e,t,r){for(var n=0;n<e.state.keyMaps.length;n++){var i=wi(t,e.state.keyMaps[n],r,e);if(i)return i}return e.options.extraKeys&&wi(t,e.options.extraKeys,r,e)||wi(t,e.options.keyMap,r,e)}var $l=new F;function Yi(e,t,r,n){var i=e.state.keySeq;if(i){if(xa(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:$l.set(50,function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())}),Pa(e,i+" "+t,r,n))return!0}return Pa(e,t,r,n)}function Pa(e,t,r,n){var i=Wl(e,t,n);return i=="multi"&&(e.state.keySeq=t),i=="handled"&&In(e,"keyHandled",e,t,r),i!="handled"&&i!="multi"||(gt(r),Uo(e)),!!i}function _a(e,t){var r=Ca(t,!0);return!!r&&(t.shiftKey&&!e.state.keySeq?Yi(e,"Shift-"+r,t,function(n){return Eo(e,n,!0)})||Yi(e,r,t,function(n){if(typeof n=="string"?/^go[A-Z]/.test(n):n.motion)return Eo(e,n)}):Yi(e,r,t,function(n){return Eo(e,n)}))}function ql(e,t,r){return Yi(e,"'"+r+"'",t,function(n){return Eo(e,n,!0)})}var cs=null;function Ta(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||(t.curOp.focus=x(),Fe(t,e)))){N&&te<11&&e.keyCode==27&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=r==16||e.shiftKey;var n=_a(t,e);y&&(cs=n?r:null,n||r!=88||Hn||!(H?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),ye&&!H&&!n&&r==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),r!=18||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||Gl(t)}}function Gl(e){var t=e.display.lineDiv;function r(n){n.keyCode!=18&&n.altKey||(f(t,"CodeMirror-crosshair"),be(document,"keyup",r),be(document,"mouseover",r))}O(t,"CodeMirror-crosshair"),fe(document,"keyup",r),fe(document,"mouseover",r)}function Ea(e){e.keyCode==16&&(this.doc.sel.shift=!1),Fe(this,e)}function ja(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||de(t.display,e)||Fe(t,e)||e.ctrlKey&&!e.altKey||H&&e.metaKey)){var r=e.keyCode,n=e.charCode;if(y&&r==cs)return cs=null,void gt(e);if(!y||e.which&&!(e.which<10)||!_a(t,e)){var i=String.fromCharCode(n??r);i!="\b"&&(ql(t,e,i)||t.display.input.onKeyPress(e))}}}var Ji,Xi,Kl=400,us=function(e,t,r){this.time=e,this.pos=t,this.button=r};function Yl(e,t){var r=+new Date;return Xi&&Xi.compare(r,e,t)?(Ji=Xi=null,"triple"):Ji&&Ji.compare(r,e,t)?(Xi=new us(r,e,t),Ji=null,"double"):(Ji=new us(r,e,t),Xi=null,"single")}function Da(e){var t=this,r=t.display;if(!(Fe(t,e)||r.activeTouch&&r.input.supportsTouch())){if(r.input.ensurePolled(),r.shift=e.shiftKey,de(r,e))$||(r.scroller.draggable=!1,setTimeout(function(){return r.scroller.draggable=!0},100));else if(!hs(t,e)){var n=Kr(t,e),i=Ft(e),a=n?Yl(n,i):"single";window.focus(),i==1&&t.state.selectingText&&t.state.selectingText(e),n&&Jl(t,i,n,a,e)||(i==1?n?Ql(t,n,a,e):Qt(e)==r.scroller&>(e):i==2?(n&&Co(t.doc,n),setTimeout(function(){return r.input.focus()},20)):i==3&&(I?t.display.input.onContextMenu(e):Wo(t)))}}}function Jl(e,t,r,n,i){var a="Click";return n=="double"?a="Double"+a:n=="triple"&&(a="Triple"+a),Yi(e,Oa(a=(t==1?"Left":t==2?"Middle":"Right")+a,i),i,function(S){if(typeof S=="string"&&(S=Ki[S]),!S)return!1;var R=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),R=S(e,r)!=o}finally{e.state.suppressEdits=!1}return R})}function Xl(e,t,r){var n=e.getOption("configureMouse"),i=n?n(e,t,r):{};if(i.unit==null){var a=Z?r.shiftKey&&r.metaKey:r.altKey;i.unit=a?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(i.extend==null||e.doc.extend)&&(i.extend=e.doc.extend||r.shiftKey),i.addNew==null&&(i.addNew=H?r.metaKey:r.ctrlKey),i.moveOnDrag==null&&(i.moveOnDrag=!(H?r.altKey:r.ctrlKey)),i}function Ql(e,t,r,n){N?setTimeout(ie(Ms,e),0):e.curOp.focus=x();var i,a=Xl(e,r,n),S=e.doc.sel;e.options.dragDrop&&qt&&!e.isReadOnly()&&r=="single"&&(i=S.contains(t))>-1&&(Nt((i=S.ranges[i]).from(),t)<0||t.xRel>0)&&(Nt(i.to(),t)>0||t.xRel<0)?ec(e,n,t,a):tc(e,n,t,a)}function ec(e,t,r,n){var i=e.display,a=!1,S=Yn(e,function(ae){$&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Wo(e)),be(i.wrapper.ownerDocument,"mouseup",S),be(i.wrapper.ownerDocument,"mousemove",R),be(i.scroller,"dragstart",re),be(i.scroller,"drop",S),a||(gt(ae),n.addNew||Co(e.doc,r,null,null,n.extend),$&&!P||N&&te==9?setTimeout(function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()},20):i.input.focus())}),R=function(ae){a=a||Math.abs(t.clientX-ae.clientX)+Math.abs(t.clientY-ae.clientY)>=10},re=function(){return a=!0};$&&(i.scroller.draggable=!0),e.state.draggingText=S,S.copy=!n.moveOnDrag,fe(i.wrapper.ownerDocument,"mouseup",S),fe(i.wrapper.ownerDocument,"mousemove",R),fe(i.scroller,"dragstart",re),fe(i.scroller,"drop",S),e.state.delayingBlurEvent=!0,setTimeout(function(){return i.input.focus()},20),i.scroller.dragDrop&&i.scroller.dragDrop()}function Ma(e,t,r){if(r=="char")return new mn(t,t);if(r=="word")return e.findWordAt(t);if(r=="line")return new mn(ot(t.line,0),ne(e.doc,ot(t.line+1,0)));var n=r(e,t);return new mn(n.from,n.to)}function tc(e,t,r,n){N&&Wo(e);var i=e.display,a=e.doc;gt(t);var S,R,re=a.sel,ae=re.ranges;if(n.addNew&&!n.extend?(R=a.sel.contains(r),S=R>-1?ae[R]:new mn(r,r)):(S=a.sel.primary(),R=a.sel.primIndex),n.unit=="rectangle")n.addNew||(S=new mn(r,r)),r=Kr(e,t,!0,!0),R=-1;else{var je=Ma(e,r,n.unit);S=n.extend?is(S,je.anchor,je.head,n.extend):je}n.addNew?R==-1?(R=ae.length,tr(a,_r(e,ae.concat([S]),R),{scroll:!1,origin:"*mouse"})):ae.length>1&&ae[R].empty()&&n.unit=="char"&&!n.extend?(tr(a,_r(e,ae.slice(0,R).concat(ae.slice(R+1)),0),{scroll:!1,origin:"*mouse"}),re=a.sel):os(a,R,S,m):(R=0,tr(a,new xr([S],0),m),re=a.sel);var De=r;function Be(pt){if(Nt(De,pt)!=0)if(De=pt,n.unit=="rectangle"){for(var Et=[],Pt=e.options.tabSize,It=ce(xt(a,r.line).text,r.ch,Pt),xn=ce(xt(a,pt.line).text,pt.ch,Pt),On=Math.min(It,xn),vr=Math.max(It,xn),_n=Math.min(r.line,pt.line),Cr=Math.min(e.lastLine(),Math.max(r.line,pt.line));_n<=Cr;_n++){var yr=xt(a,_n).text,Ln=K(yr,On,Pt);On==vr?Et.push(new mn(ot(_n,Ln),ot(_n,Ln))):yr.length>Ln&&Et.push(new mn(ot(_n,Ln),ot(_n,K(yr,vr,Pt))))}Et.length||Et.push(new mn(r,r)),tr(a,_r(e,re.ranges.slice(0,R).concat(Et),R),{origin:"*mouse",scroll:!1}),e.scrollIntoView(pt)}else{var hr,sr=S,Wn=Ma(e,pt,n.unit),Fn=sr.anchor;Nt(Wn.anchor,Fn)>0?(hr=Wn.head,Fn=U(sr.from(),Wn.anchor)):(hr=Wn.anchor,Fn=Ke(sr.to(),Wn.head));var $n=re.ranges.slice(0);$n[R]=nc(e,new mn(ne(a,Fn),hr)),tr(a,_r(e,$n,R),m)}}var ze=i.wrapper.getBoundingClientRect(),qe=0;function st(pt){var Et=++qe,Pt=Kr(e,pt,!0,n.unit=="rectangle");if(Pt)if(Nt(Pt,De)!=0){e.curOp.focus=x(),Be(Pt);var It=vo(i,a);(Pt.line>=It.to||Pt.line<It.from)&&setTimeout(Yn(e,function(){qe==Et&&st(pt)}),150)}else{var xn=pt.clientY<ze.top?-20:pt.clientY>ze.bottom?20:0;xn&&setTimeout(Yn(e,function(){qe==Et&&(i.scroller.scrollTop+=xn,st(pt))}),50)}}function ft(pt){e.state.selectingText=!1,qe=1/0,pt&&(gt(pt),i.input.focus()),be(i.wrapper.ownerDocument,"mousemove",bt),be(i.wrapper.ownerDocument,"mouseup",Ot),a.history.lastSelOrigin=null}var bt=Yn(e,function(pt){pt.buttons!==0&&Ft(pt)?st(pt):ft(pt)}),Ot=Yn(e,ft);e.state.selectingText=Ot,fe(i.wrapper.ownerDocument,"mousemove",bt),fe(i.wrapper.ownerDocument,"mouseup",Ot)}function nc(e,t){var r=t.anchor,n=t.head,i=xt(e.doc,r.line);if(Nt(r,n)==0&&r.sticky==n.sticky)return t;var a=Ct(i);if(!a)return t;var S=Ht(a,r.ch,r.sticky),R=a[S];if(R.from!=r.ch&&R.to!=r.ch)return t;var re,ae=S+(R.from==r.ch==(R.level!=1)?0:1);if(ae==0||ae==a.length)return t;if(n.line!=r.line)re=(n.line-r.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var je=Ht(a,n.ch,n.sticky),De=je-S||(n.ch-r.ch)*(R.level==1?-1:1);re=je==ae-1||je==ae?De<0:De>0}var Be=a[ae+(re?-1:0)],ze=re==(Be.level==1),qe=ze?Be.from:Be.to,st=ze?"after":"before";return r.ch==qe&&r.sticky==st?t:new mn(new ot(r.line,qe,st),n)}function Aa(e,t,r,n){var i,a;if(t.touches)i=t.touches[0].clientX,a=t.touches[0].clientY;else try{i=t.clientX,a=t.clientY}catch{return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&>(t);var S=e.display,R=S.lineDiv.getBoundingClientRect();if(a>R.bottom||!at(e,r))return dn(t);a-=R.top-S.viewOffset;for(var re=0;re<e.display.gutterSpecs.length;++re){var ae=S.gutters.childNodes[re];if(ae&&ae.getBoundingClientRect().right>=i)return _e(e,r,e,Jt(e.doc,a),e.display.gutterSpecs[re].className,t),dn(t)}}function hs(e,t){return Aa(e,t,"gutterClick",!0)}function La(e,t){de(e.display,t)||rc(e,t)||Fe(e,t,"contextmenu")||I||e.display.input.onContextMenu(t)}function rc(e,t){return!!at(e,"gutterContextMenu")&&Aa(e,t,"gutterContextMenu",!1)}function Ra(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Mi(e)}us.prototype.compare=function(e,t,r){return this.time+Kl>e&&Nt(t,this.pos)==0&&r==this.button};var Oi={toString:function(){return"CodeMirror.Init"}},Na={},jo={};function ic(e){var t=e.optionHandlers;function r(n,i,a,S){e.defaults[n]=i,a&&(t[n]=S?function(R,re,ae){ae!=Oi&&a(R,re,ae)}:a)}e.defineOption=r,e.Init=Oi,r("value","",function(n,i){return n.setValue(i)},!0),r("mode",null,function(n,i){n.doc.modeOption=i,ts(n)},!0),r("indentUnit",2,ts,!0),r("indentWithTabs",!1),r("smartIndent",!0),r("tabSize",4,function(n){Vi(n),Mi(n),cr(n)},!0),r("lineSeparator",null,function(n,i){if(n.doc.lineSep=i,i){var a=[],S=n.doc.first;n.doc.iter(function(re){for(var ae=0;;){var je=re.text.indexOf(i,ae);if(je==-1)break;ae=je+i.length,a.push(ot(S,je))}S++});for(var R=a.length-1;R>=0;R--)yi(n.doc,i,a[R],ot(a[R].line,a[R].ch+i.length))}}),r("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(n,i,a){n.state.specialChars=new RegExp(i.source+(i.test(" ")?"":"| "),"g"),a!=Oi&&n.refresh()}),r("specialCharPlaceholder",Lo,function(n){return n.refresh()},!0),r("electricChars",!0),r("inputStyle",M?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),r("spellcheck",!1,function(n,i){return n.getInputField().spellcheck=i},!0),r("autocorrect",!1,function(n,i){return n.getInputField().autocorrect=i},!0),r("autocapitalize",!1,function(n,i){return n.getInputField().autocapitalize=i},!0),r("rtlMoveVisually",!_),r("wholeLineUpdateBefore",!0),r("theme","default",function(n){Ra(n),Fi(n)},!0),r("keyMap","default",function(n,i,a){var S=To(i),R=a!=Oi&&To(a);R&&R.detach&&R.detach(n,S),S.attach&&S.attach(n,R||null)}),r("extraKeys",null),r("configureMouse",null),r("lineWrapping",!1,sc,!0),r("gutters",[],function(n,i){n.display.gutterSpecs=Qo(i,n.options.lineNumbers),Fi(n)},!0),r("fixedGutter",!0,function(n,i){n.display.gutters.style.left=i?Bo(n.display)+"px":"0",n.refresh()},!0),r("coverGutterNextToScrollbar",!1,function(n){return pi(n)},!0),r("scrollbarStyle","native",function(n){Zs(n),pi(n),n.display.scrollbars.setScrollTop(n.doc.scrollTop),n.display.scrollbars.setScrollLeft(n.doc.scrollLeft)},!0),r("lineNumbers",!1,function(n,i){n.display.gutterSpecs=Qo(n.options.gutters,i),Fi(n)},!0),r("firstLineNumber",1,Fi,!0),r("lineNumberFormatter",function(n){return n},Fi,!0),r("showCursorWhenSelecting",!1,Ai,!0),r("resetSelectionOnContextMenu",!0),r("lineWiseCopyCut",!0),r("pasteLinesPerSelection",!0),r("selectionsMayTouch",!1),r("readOnly",!1,function(n,i){i=="nocursor"&&(fi(n),n.display.input.blur()),n.display.input.readOnlyChanged(i)}),r("screenReaderLabel",null,function(n,i){i=i===""?null:i,n.display.input.screenReaderLabelChanged(i)}),r("disableInput",!1,function(n,i){i||n.display.input.reset()},!0),r("dragDrop",!0,oc),r("allowDropFileTypes",null),r("cursorBlinkRate",530),r("cursorScrollMargin",0),r("cursorHeight",1,Ai,!0),r("singleCursorHeightPerLine",!0,Ai,!0),r("workTime",100),r("workDelay",100),r("flattenSpans",!0,Vi,!0),r("addModeClass",!1,Vi,!0),r("pollInterval",100),r("undoDepth",200,function(n,i){return n.doc.history.undoDepth=i}),r("historyEventDelay",1250),r("viewportMargin",10,function(n){return n.refresh()},!0),r("maxHighlightLength",1e4,Vi,!0),r("moveInputWithCursor",!0,function(n,i){i||n.display.input.resetPosition()}),r("tabindex",null,function(n,i){return n.display.input.getField().tabIndex=i||""}),r("autofocus",null),r("direction","ltr",function(n,i){return n.doc.setDirection(i)},!0),r("phrases",null)}function oc(e,t,r){if(!t!=!(r&&r!=Oi)){var n=e.display.dragFunctions,i=t?fe:be;i(e.display.scroller,"dragstart",n.start),i(e.display.scroller,"dragenter",n.enter),i(e.display.scroller,"dragover",n.over),i(e.display.scroller,"dragleave",n.leave),i(e.display.scroller,"drop",n.drop)}}function sc(e){e.options.lineWrapping?(O(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(f(e.display.wrapper,"CodeMirror-wrap"),kr(e)),zo(e),cr(e),Mi(e),setTimeout(function(){return pi(e)},100)}function jn(e,t){var r=this;if(!(this instanceof jn))return new jn(e,t);this.options=t=t?le(t):{},le(Na,t,!1);var n=t.value;typeof n=="string"?n=new ur(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var i=new jn.inputStyles[t.inputStyle](this),a=this.display=new bl(e,n,i,t);for(var S in a.wrapper.CodeMirror=this,Ra(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Zs(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new F,keySeq:null,specialChars:null},t.autofocus&&!M&&a.input.focus(),N&&te<11&&setTimeout(function(){return r.display.input.reset(!0)},20),ac(this),Zl(),Qr(this),this.curOp.forceUpdate=!0,Gs(this,n),t.autofocus&&!M||this.hasFocus()?setTimeout(function(){r.hasFocus()&&!r.state.focused&&$o(r)},20):fi(this),jo)jo.hasOwnProperty(S)&&jo[S](this,t[S],Oi);Hs(this),t.finishInit&&t.finishInit(this);for(var R=0;R<fs.length;++R)fs[R](this);ei(this),$&&t.lineWrapping&&getComputedStyle(a.lineDiv).textRendering=="optimizelegibility"&&(a.lineDiv.style.textRendering="auto")}function ac(e){var t=e.display;fe(t.scroller,"mousedown",Yn(e,Da)),fe(t.scroller,"dblclick",N&&te<11?Yn(e,function(re){if(!Fe(e,re)){var ae=Kr(e,re);if(ae&&!hs(e,re)&&!de(e.display,re)){gt(re);var je=e.findWordAt(ae);Co(e.doc,je.anchor,je.head)}}}):function(re){return Fe(e,re)||gt(re)}),fe(t.scroller,"contextmenu",function(re){return La(e,re)}),fe(t.input.getField(),"contextmenu",function(re){t.scroller.contains(re.target)||La(e,re)});var r,n={end:0};function i(){t.activeTouch&&(r=setTimeout(function(){return t.activeTouch=null},1e3),(n=t.activeTouch).end=+new Date)}function a(re){if(re.touches.length!=1)return!1;var ae=re.touches[0];return ae.radiusX<=1&&ae.radiusY<=1}function S(re,ae){if(ae.left==null)return!0;var je=ae.left-re.left,De=ae.top-re.top;return je*je+De*De>400}fe(t.scroller,"touchstart",function(re){if(!Fe(e,re)&&!a(re)&&!hs(e,re)){t.input.ensurePolled(),clearTimeout(r);var ae=+new Date;t.activeTouch={start:ae,moved:!1,prev:ae-n.end<=300?n:null},re.touches.length==1&&(t.activeTouch.left=re.touches[0].pageX,t.activeTouch.top=re.touches[0].pageY)}}),fe(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),fe(t.scroller,"touchend",function(re){var ae=t.activeTouch;if(ae&&!de(t,re)&&ae.left!=null&&!ae.moved&&new Date-ae.start<300){var je,De=e.coordsChar(t.activeTouch,"page");je=!ae.prev||S(ae,ae.prev)?new mn(De,De):!ae.prev.prev||S(ae,ae.prev.prev)?e.findWordAt(De):new mn(ot(De.line,0),ne(e.doc,ot(De.line+1,0))),e.setSelection(je.anchor,je.head),e.focus(),gt(re)}i()}),fe(t.scroller,"touchcancel",i),fe(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Ri(e,t.scroller.scrollTop),Jr(e,t.scroller.scrollLeft,!0),_e(e,"scroll",e))}),fe(t.scroller,"mousewheel",function(re){return Us(e,re)}),fe(t.scroller,"DOMMouseScroll",function(re){return Us(e,re)}),fe(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(re){Fe(e,re)||rn(re)},over:function(re){Fe(e,re)||(Il(e,re),rn(re))},start:function(re){return Nl(e,re)},drop:Yn(e,Rl),leave:function(re){Fe(e,re)||ya(e)}};var R=t.input.getField();fe(R,"keyup",function(re){return Ea.call(e,re)}),fe(R,"keydown",Yn(e,Ta)),fe(R,"keypress",Yn(e,ja)),fe(R,"focus",function(re){return $o(e,re)}),fe(R,"blur",function(re){return fi(e,re)})}jn.defaults=Na,jn.optionHandlers=jo;var fs=[];function Qi(e,t,r,n){var i,a=e.doc;r==null&&(r="add"),r=="smart"&&(a.mode.indent?i=jt(e,t).state:r="prev");var S=e.options.tabSize,R=xt(a,t),re=ce(R.text,null,S);R.stateAfter&&(R.stateAfter=null);var ae,je=R.text.match(/^\s*/)[0];if(n||/\S/.test(R.text)){if(r=="smart"&&((ae=a.mode.indent(i,R.text.slice(je.length),R.text))==o||ae>150)){if(!n)return;r="prev"}}else ae=0,r="not";r=="prev"?ae=t>a.first?ce(xt(a,t-1).text,null,S):0:r=="add"?ae=re+e.options.indentUnit:r=="subtract"?ae=re-e.options.indentUnit:typeof r=="number"&&(ae=re+r),ae=Math.max(0,ae);var De="",Be=0;if(e.options.indentWithTabs)for(var ze=Math.floor(ae/S);ze;--ze)Be+=S,De+=" ";if(Be<ae&&(De+=E(ae-Be)),De!=je)return yi(a,De,ot(t,0),ot(t,je.length),"+input"),R.stateAfter=null,!0;for(var qe=0;qe<a.sel.ranges.length;qe++){var st=a.sel.ranges[qe];if(st.head.line==t&&st.head.ch<je.length){var ft=ot(t,je.length);os(a,qe,new mn(ft,ft));break}}}jn.defineInitHook=function(e){return fs.push(e)};var Tr=null;function Do(e){Tr=e}function ds(e,t,r,n,i){var a=e.doc;e.display.shift=!1,n||(n=a.sel);var S=+new Date-200,R=i=="paste"||e.state.pasteIncoming>S,re=ln(t),ae=null;if(R&&n.ranges.length>1)if(Tr&&Tr.text.join(` +`)==t){if(n.ranges.length%Tr.text.length==0){ae=[];for(var je=0;je<Tr.text.length;je++)ae.push(a.splitLines(Tr.text[je]))}}else re.length==n.ranges.length&&e.options.pasteLinesPerSelection&&(ae=ue(re,function(bt){return[bt]}));for(var De=e.curOp.updateInput,Be=n.ranges.length-1;Be>=0;Be--){var ze=n.ranges[Be],qe=ze.from(),st=ze.to();ze.empty()&&(r&&r>0?qe=ot(qe.line,qe.ch-r):e.state.overwrite&&!R?st=ot(st.line,Math.min(xt(a,st.line).text.length,st.ch+q(re).length)):R&&Tr&&Tr.lineWise&&Tr.text.join(` +`)==re.join(` +`)&&(qe=st=ot(qe.line,0)));var ft={from:qe,to:st,text:ae?ae[Be%ae.length]:re,origin:i||(R?"paste":e.state.cutIncoming>S?"cut":"+input")};vi(e.doc,ft),In(e,"inputRead",e,ft)}t&&!R&&Za(e,t),di(e),e.curOp.updateInput<2&&(e.curOp.updateInput=De),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Ia(e,t){var r=e.clipboardData&&e.clipboardData.getData("Text");if(r)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||mr(t,function(){return ds(t,r,0,null,"paste")}),!0}function Za(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var r=e.doc.sel,n=r.ranges.length-1;n>=0;n--){var i=r.ranges[n];if(!(i.head.ch>100||n&&r.ranges[n-1].head.line==i.head.line)){var a=e.getModeAt(i.head),S=!1;if(a.electricChars){for(var R=0;R<a.electricChars.length;R++)if(t.indexOf(a.electricChars.charAt(R))>-1){S=Qi(e,i.head.line,"smart");break}}else a.electricInput&&a.electricInput.test(xt(e.doc,i.head.line).text.slice(0,i.head.ch))&&(S=Qi(e,i.head.line,"smart"));S&&In(e,"electricInput",e,i.head.line)}}}function Fa(e){for(var t=[],r=[],n=0;n<e.doc.sel.ranges.length;n++){var i=e.doc.sel.ranges[n].head.line,a={anchor:ot(i,0),head:ot(i+1,0)};r.push(a),t.push(e.getRange(a.anchor,a.head))}return{text:t,ranges:r}}function Va(e,t,r,n){e.setAttribute("autocorrect",r?"":"off"),e.setAttribute("autocapitalize",n?"":"off"),e.setAttribute("spellcheck",!!t)}function Ha(){var e=g("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=g("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return $?e.style.width="1000px":e.setAttribute("wrap","off"),B&&(e.style.border="1px solid black"),Va(e),t}function lc(e){var t=e.optionHandlers,r=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(n,i){var a=this.options,S=a[n];a[n]==i&&n!="mode"||(a[n]=i,t.hasOwnProperty(n)&&Yn(this,t[n])(this,i,S),_e(this,"optionChange",this,n))},getOption:function(n){return this.options[n]},getDoc:function(){return this.doc},addKeyMap:function(n,i){this.state.keyMaps[i?"push":"unshift"](To(n))},removeKeyMap:function(n){for(var i=this.state.keyMaps,a=0;a<i.length;++a)if(i[a]==n||i[a].name==n)return i.splice(a,1),!0},addOverlay:or(function(n,i){var a=n.token?n:e.getMode(this.options,n);if(a.startState)throw new Error("Overlays may not be stateful.");ke(this.state.overlays,{mode:a,modeSpec:n,opaque:i&&i.opaque,priority:i&&i.priority||0},function(S){return S.priority}),this.state.modeGen++,cr(this)}),removeOverlay:or(function(n){for(var i=this.state.overlays,a=0;a<i.length;++a){var S=i[a].modeSpec;if(S==n||typeof n=="string"&&S.name==n)return i.splice(a,1),this.state.modeGen++,void cr(this)}}),indentLine:or(function(n,i,a){typeof i!="string"&&typeof i!="number"&&(i=i==null?this.options.smartIndent?"smart":"prev":i?"add":"subtract"),Nn(this.doc,n)&&Qi(this,n,i,a)}),indentSelection:or(function(n){for(var i=this.doc.sel.ranges,a=-1,S=0;S<i.length;S++){var R=i[S];if(R.empty())R.head.line>a&&(Qi(this,R.head.line,n,!0),a=R.head.line,S==this.doc.sel.primIndex&&di(this));else{var re=R.from(),ae=R.to(),je=Math.max(a,re.line);a=Math.min(this.lastLine(),ae.line-(ae.ch?0:1))+1;for(var De=je;De<a;++De)Qi(this,De,n);var Be=this.doc.sel.ranges;re.ch==0&&i.length==Be.length&&Be[S].from().ch>0&&os(this.doc,S,new mn(re,Be[S].to()),h)}}}),getTokenAt:function(n,i){return Dn(this,n,i)},getLineTokens:function(n,i){return Dn(this,ot(n),i,!0)},getTokenTypeAt:function(n){n=ne(this.doc,n);var i,a=wt(this,xt(this.doc,n.line)),S=0,R=(a.length-1)/2,re=n.ch;if(re==0)i=a[2];else for(;;){var ae=S+R>>1;if((ae?a[2*ae-1]:0)>=re)R=ae;else{if(!(a[2*ae+1]<re)){i=a[2*ae+2];break}S=ae+1}}var je=i?i.indexOf("overlay "):-1;return je<0?i:je==0?null:i.slice(0,je-1)},getModeAt:function(n){var i=this.doc.mode;return i.innerMode?e.innerMode(i,this.getTokenAt(n).state).mode:i},getHelper:function(n,i){return this.getHelpers(n,i)[0]},getHelpers:function(n,i){var a=[];if(!r.hasOwnProperty(i))return a;var S=r[i],R=this.getModeAt(n);if(typeof R[i]=="string")S[R[i]]&&a.push(S[R[i]]);else if(R[i])for(var re=0;re<R[i].length;re++){var ae=S[R[i][re]];ae&&a.push(ae)}else R.helperType&&S[R.helperType]?a.push(S[R.helperType]):S[R.name]&&a.push(S[R.name]);for(var je=0;je<S._global.length;je++){var De=S._global[je];De.pred(R,this)&&l(a,De.val)==-1&&a.push(De.val)}return a},getStateAfter:function(n,i){var a=this.doc;return jt(this,(n=oe(a,n??a.first+a.size-1))+1,i).state},cursorCoords:function(n,i){var a=this.doc.sel.primary();return Pr(this,n==null?a.head:typeof n=="object"?ne(this.doc,n):n?a.from():a.to(),i||"page")},charCoords:function(n,i){return fo(this,ne(this.doc,n),i||"page")},coordsChar:function(n,i){return Fo(this,(n=ks(this,n,i||"page")).left,n.top)},lineAtHeight:function(n,i){return n=ks(this,{top:n,left:0},i||"page").top,Jt(this.doc,n+this.display.viewOffset)},heightAtLine:function(n,i,a){var S,R=!1;if(typeof n=="number"){var re=this.doc.first+this.doc.size-1;n<this.doc.first?n=this.doc.first:n>re&&(n=re,R=!0),S=xt(this.doc,n)}else S=n;return ho(this,S,{top:0,left:0},i||"page",a||R).top+(R?this.doc.height-lr(S):0)},defaultTextHeight:function(){return ui(this.display)},defaultCharWidth:function(){return hi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(n,i,a,S,R){var re=this.display,ae=(n=Pr(this,ne(this.doc,n))).bottom,je=n.left;if(i.style.position="absolute",i.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(i),re.sizer.appendChild(i),S=="over")ae=n.top;else if(S=="above"||S=="near"){var De=Math.max(re.wrapper.clientHeight,this.doc.height),Be=Math.max(re.sizer.clientWidth,re.lineSpace.clientWidth);(S=="above"||n.bottom+i.offsetHeight>De)&&n.top>i.offsetHeight?ae=n.top-i.offsetHeight:n.bottom+i.offsetHeight<=De&&(ae=n.bottom),je+i.offsetWidth>Be&&(je=Be-i.offsetWidth)}i.style.top=ae+"px",i.style.left=i.style.right="",R=="right"?(je=re.sizer.clientWidth-i.offsetWidth,i.style.right="0px"):(R=="left"?je=0:R=="middle"&&(je=(re.sizer.clientWidth-i.offsetWidth)/2),i.style.left=je+"px"),a&&ol(this,{left:je,top:ae,right:je+i.offsetWidth,bottom:ae+i.offsetHeight})},triggerOnKeyDown:or(Ta),triggerOnKeyPress:or(ja),triggerOnKeyUp:Ea,triggerOnMouseDown:or(Da),execCommand:function(n){if(Ki.hasOwnProperty(n))return Ki[n].call(null,this)},triggerElectric:or(function(n){Za(this,n)}),findPosH:function(n,i,a,S){var R=1;i<0&&(R=-1,i=-i);for(var re=ne(this.doc,n),ae=0;ae<i&&!(re=ps(this.doc,re,R,a,S)).hitSide;++ae);return re},moveH:or(function(n,i){var a=this;this.extendSelectionsBy(function(S){return a.display.shift||a.doc.extend||S.empty()?ps(a.doc,S.head,n,i,a.options.rtlMoveVisually):n<0?S.from():S.to()},j)}),deleteH:or(function(n,i){var a=this.doc.sel,S=this.doc;a.somethingSelected()?S.replaceSelection("",null,"+delete"):xi(this,function(R){var re=ps(S,R.head,n,i,!1);return n<0?{from:re,to:R.head}:{from:R.head,to:re}})}),findPosV:function(n,i,a,S){var R=1,re=S;i<0&&(R=-1,i=-i);for(var ae=ne(this.doc,n),je=0;je<i;++je){var De=Pr(this,ae,"div");if(re==null?re=De.left:De.left=re,(ae=Ba(this,De,R,a)).hitSide)break}return ae},moveV:or(function(n,i){var a=this,S=this.doc,R=[],re=!this.display.shift&&!S.extend&&S.sel.somethingSelected();if(S.extendSelectionsBy(function(je){if(re)return n<0?je.from():je.to();var De=Pr(a,je.head,"div");je.goalColumn!=null&&(De.left=je.goalColumn),R.push(De.left);var Be=Ba(a,De,n,i);return i=="page"&&je==S.sel.primary()&&Go(a,fo(a,Be,"div").top-De.top),Be},j),R.length)for(var ae=0;ae<S.sel.ranges.length;ae++)S.sel.ranges[ae].goalColumn=R[ae]}),findWordAt:function(n){var i=xt(this.doc,n.line).text,a=n.ch,S=n.ch;if(i){var R=this.getHelper(n,"wordChars");n.sticky!="before"&&S!=i.length||!a?++S:--a;for(var re=i.charAt(a),ae=Oe(re,R)?function(je){return Oe(je,R)}:/\s/.test(re)?function(je){return/\s/.test(je)}:function(je){return!/\s/.test(je)&&!Oe(je)};a>0&&ae(i.charAt(a-1));)--a;for(;S<i.length&&ae(i.charAt(S));)++S}return new mn(ot(n.line,a),ot(n.line,S))},toggleOverwrite:function(n){n!=null&&n==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?O(this.display.cursorDiv,"CodeMirror-overwrite"):f(this.display.cursorDiv,"CodeMirror-overwrite"),_e(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==x()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:or(function(n,i){Li(this,n,i)}),getScrollInfo:function(){var n=this.display.scroller;return{left:n.scrollLeft,top:n.scrollTop,height:n.scrollHeight-Ve(this)-this.display.barHeight,width:n.scrollWidth-Ve(this)-this.display.barWidth,clientHeight:dt(this),clientWidth:et(this)}},scrollIntoView:or(function(n,i){n==null?(n={from:this.doc.sel.primary().head,to:null},i==null&&(i=this.options.cursorScrollMargin)):typeof n=="number"?n={from:ot(n,0),to:null}:n.from==null&&(n={from:n,to:null}),n.to||(n.to=n.from),n.margin=i||0,n.from.line!=null?sl(this,n):Ls(this,n.from,n.to,n.margin)}),setSize:or(function(n,i){var a=this,S=function(re){return typeof re=="number"||/^\d+$/.test(String(re))?re+"px":re};n!=null&&(this.display.wrapper.style.width=S(n)),i!=null&&(this.display.wrapper.style.height=S(i)),this.options.lineWrapping&&xs(this);var R=this.display.viewFrom;this.doc.iter(R,this.display.viewTo,function(re){if(re.widgets){for(var ae=0;ae<re.widgets.length;ae++)if(re.widgets[ae].noHScroll){Zr(a,R,"widget");break}}++R}),this.curOp.forceUpdate=!0,_e(this,"refresh",this)}),operation:function(n){return mr(this,n)},startOperation:function(){return Qr(this)},endOperation:function(){return ei(this)},refresh:or(function(){var n=this.display.cachedTextHeight;cr(this),this.curOp.forceUpdate=!0,Mi(this),Li(this,this.doc.scrollLeft,this.doc.scrollTop),Jo(this.display),(n==null||Math.abs(n-ui(this.display))>.5||this.options.lineWrapping)&&zo(this),_e(this,"refresh",this)}),swapDoc:or(function(n){var i=this.doc;return i.cm=null,this.state.selectingText&&this.state.selectingText(),Gs(this,n),Mi(this),this.display.input.reset(),Li(this,n.scrollLeft,n.scrollTop),this.curOp.forceScroll=!0,In(this,"swapDoc",this,i),i}),phrase:function(n){var i=this.options.phrases;return i&&Object.prototype.hasOwnProperty.call(i,n)?i[n]:n},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ye(e),e.registerHelper=function(n,i,a){r.hasOwnProperty(n)||(r[n]=e[n]={_global:[]}),r[n][i]=a},e.registerGlobalHelper=function(n,i,a,S){e.registerHelper(n,i,S),r[n]._global.push({pred:a,val:S})}}function ps(e,t,r,n,i){var a=t,S=r,R=xt(e,t.line),re=i&&e.direction=="rtl"?-r:r;function ae(){var Ot=t.line+re;return!(Ot<e.first||Ot>=e.first+e.size)&&(t=new ot(Ot,t.ch,t.sticky),R=xt(e,Ot))}function je(Ot){var pt;if(n=="codepoint"){var Et=R.text.charCodeAt(t.ch+(r>0?0:-1));if(isNaN(Et))pt=null;else{var Pt=r>0?Et>=55296&&Et<56320:Et>=56320&&Et<57343;pt=new ot(t.line,Math.max(0,Math.min(R.text.length,t.ch+r*(Pt?2:1))),-r)}}else pt=i?zl(e.cm,R,t,r):as(R,t,r);if(pt==null){if(Ot||!ae())return!1;t=ls(i,e.cm,R,t.line,re)}else t=pt;return!0}if(n=="char"||n=="codepoint")je();else if(n=="column")je(!0);else if(n=="word"||n=="group")for(var De=null,Be=n=="group",ze=e.cm&&e.cm.getHelper(t,"wordChars"),qe=!0;!(r<0)||je(!qe);qe=!1){var st=R.text.charAt(t.ch)||` +`,ft=Oe(st,ze)?"w":Be&&st==` +`?"n":!Be||/\s/.test(st)?null:"p";if(!Be||qe||ft||(ft="s"),De&&De!=ft){r<0&&(r=1,je(),t.sticky="after");break}if(ft&&(De=ft),r>0&&!je(!qe))break}var bt=So(e,t,a,S,!0);return he(a,bt)&&(bt.hitSide=!0),bt}function Ba(e,t,r,n){var i,a,S=e.doc,R=t.left;if(n=="page"){var re=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),ae=Math.max(re-.5*ui(e.display),3);i=(r>0?t.bottom:t.top)+r*ae}else n=="line"&&(i=r>0?t.bottom+3:t.top-3);for(;(a=Fo(e,R,i)).outside;){if(r<0?i<=0:i>=S.height){a.hitSide=!0;break}i+=5*r}return a}var bn=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new F,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function za(e,t){var r=ci(e,t.line);if(!r||r.hidden)return null;var n=xt(e.doc,t.line),i=Yt(r,n,t.line),a=Ct(n,e.doc.direction),S="left";a&&(S=Ht(a,t.ch)%2?"right":"left");var R=bs(i.map,t.ch,S);return R.offset=R.collapse=="right"?R.end:R.start,R}function cc(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function Ci(e,t){return t&&(e.bad=!0),e}function uc(e,t,r,n,i){var a="",S=!1,R=e.doc.lineSeparator(),re=!1;function ae(ze){return function(qe){return qe.id==ze}}function je(){S&&(a+=R,re&&(a+=R),S=re=!1)}function De(ze){ze&&(je(),a+=ze)}function Be(ze){if(ze.nodeType==1){var qe=ze.getAttribute("cm-text");if(qe)return void De(qe);var st,ft=ze.getAttribute("cm-marker");if(ft){var bt=e.findMarks(ot(n,0),ot(i+1,0),ae(+ft));return void(bt.length&&(st=bt[0].find(0))&&De(Rt(e.doc,st.from,st.to).join(R)))}if(ze.getAttribute("contenteditable")=="false")return;var Ot=/^(pre|div|p|li|table|br)$/i.test(ze.nodeName);if(!/^br$/i.test(ze.nodeName)&&ze.textContent.length==0)return;Ot&&je();for(var pt=0;pt<ze.childNodes.length;pt++)Be(ze.childNodes[pt]);/^(pre|p)$/i.test(ze.nodeName)&&(re=!0),Ot&&(S=!0)}else ze.nodeType==3&&De(ze.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Be(t),t!=r;)t=t.nextSibling,re=!1;return a}function Mo(e,t,r){var n;if(t==e.display.lineDiv){if(!(n=e.display.lineDiv.childNodes[r]))return Ci(e.clipPos(ot(e.display.viewTo-1)),!0);t=null,r=0}else for(n=t;;n=n.parentNode){if(!n||n==e.display.lineDiv)return null;if(n.parentNode&&n.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var a=e.display.view[i];if(a.node==n)return hc(a,t,r)}}function hc(e,t,r){var n=e.text.firstChild,i=!1;if(!t||!u(n,t))return Ci(ot($t(e.line),0),!0);if(t==n&&(i=!0,t=n.childNodes[r],r=0,!t)){var a=e.rest?q(e.rest):e.line;return Ci(ot($t(a),a.text.length),i)}var S=t.nodeType==3?t:null,R=t;for(S||t.childNodes.length!=1||t.firstChild.nodeType!=3||(S=t.firstChild,r&&(r=S.nodeValue.length));R.parentNode!=n;)R=R.parentNode;var re=e.measure,ae=re.maps;function je(ft,bt,Ot){for(var pt=-1;pt<(ae?ae.length:0);pt++)for(var Et=pt<0?re.map:ae[pt],Pt=0;Pt<Et.length;Pt+=3){var It=Et[Pt+2];if(It==ft||It==bt){var xn=$t(pt<0?e.line:e.rest[pt]),On=Et[Pt]+Ot;return(Ot<0||It!=ft)&&(On=Et[Pt+(Ot?1:0)]),ot(xn,On)}}}var De=je(S,R,r);if(De)return Ci(De,i);for(var Be=R.nextSibling,ze=S?S.nodeValue.length-r:0;Be;Be=Be.nextSibling){if(De=je(Be,Be.firstChild,0))return Ci(ot(De.line,De.ch-ze),i);ze+=Be.textContent.length}for(var qe=R.previousSibling,st=r;qe;qe=qe.previousSibling){if(De=je(qe,qe.firstChild,-1))return Ci(ot(De.line,De.ch+st),i);st+=qe.textContent.length}}bn.prototype.init=function(e){var t=this,r=this,n=r.cm,i=r.div=e.lineDiv;function a(R){for(var re=R.target;re;re=re.parentNode){if(re==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(re.className))break}return!1}function S(R){if(a(R)&&!Fe(n,R)){if(n.somethingSelected())Do({lineWise:!1,text:n.getSelections()}),R.type=="cut"&&n.replaceSelection("",null,"cut");else{if(!n.options.lineWiseCopyCut)return;var re=Fa(n);Do({lineWise:!0,text:re.text}),R.type=="cut"&&n.operation(function(){n.setSelections(re.ranges,0,h),n.replaceSelection("",null,"cut")})}if(R.clipboardData){R.clipboardData.clearData();var ae=Tr.text.join(` +`);if(R.clipboardData.setData("Text",ae),R.clipboardData.getData("Text")==ae)return void R.preventDefault()}var je=Ha(),De=je.firstChild;n.display.lineSpace.insertBefore(je,n.display.lineSpace.firstChild),De.value=Tr.text.join(` +`);var Be=x();X(De),setTimeout(function(){n.display.lineSpace.removeChild(je),Be.focus(),Be==i&&r.showPrimarySelection()},50)}}i.contentEditable=!0,Va(i,n.options.spellcheck,n.options.autocorrect,n.options.autocapitalize),fe(i,"paste",function(R){!a(R)||Fe(n,R)||Ia(R,n)||te<=11&&setTimeout(Yn(n,function(){return t.updateFromDOM()}),20)}),fe(i,"compositionstart",function(R){t.composing={data:R.data,done:!1}}),fe(i,"compositionupdate",function(R){t.composing||(t.composing={data:R.data,done:!1})}),fe(i,"compositionend",function(R){t.composing&&(R.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),fe(i,"touchstart",function(){return r.forceCompositionEnd()}),fe(i,"input",function(){t.composing||t.readFromDOMSoon()}),fe(i,"copy",S),fe(i,"cut",S)},bn.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},bn.prototype.prepareSelection=function(){var e=js(this.cm,!1);return e.focus=x()==this.div,e},bn.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},bn.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},bn.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),n=r.from(),i=r.to();if(t.display.viewTo==t.display.viewFrom||n.line>=t.display.viewTo||i.line<t.display.viewFrom)e.removeAllRanges();else{var a=Mo(t,e.anchorNode,e.anchorOffset),S=Mo(t,e.focusNode,e.focusOffset);if(!a||a.bad||!S||S.bad||Nt(U(a,S),n)!=0||Nt(Ke(a,S),i)!=0){var R=t.display.view,re=n.line>=t.display.viewFrom&&za(t,n)||{node:R[0].measure.map[2],offset:0},ae=i.line<t.display.viewTo&&za(t,i);if(!ae){var je=R[R.length-1].measure,De=je.maps?je.maps[je.maps.length-1]:je.map;ae={node:De[De.length-1],offset:De[De.length-2]-De[De.length-3]}}if(re&&ae){var Be,ze=e.rangeCount&&e.getRangeAt(0);try{Be=d(re.node,re.offset,ae.offset,ae.node)}catch{}Be&&(!ye&&t.state.focused?(e.collapse(re.node,re.offset),Be.collapsed||(e.removeAllRanges(),e.addRange(Be))):(e.removeAllRanges(),e.addRange(Be)),ze&&e.anchorNode==null?e.addRange(ze):ye&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},bn.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},bn.prototype.showMultipleSelections=function(e){D(this.cm.display.cursorDiv,e.cursors),D(this.cm.display.selectionDiv,e.selection)},bn.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},bn.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return u(this.div,t)},bn.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&(this.selectionInEditor()&&x()==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},bn.prototype.blur=function(){this.div.blur()},bn.prototype.getField=function(){return this.div},bn.prototype.supportsTouch=function(){return!0},bn.prototype.receivedFocus=function(){var e=this,t=this;function r(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,r))}this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):mr(this.cm,function(){return t.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,r)},bn.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},bn.prototype.pollSelection=function(){if(this.readDOMTimeout==null&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(G&&w&&this.cm.display.gutterSpecs.length&&cc(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var r=Mo(t,e.anchorNode,e.anchorOffset),n=Mo(t,e.focusNode,e.focusOffset);r&&n&&mr(t,function(){tr(t.doc,Vr(r,n),h),(r.bad||n.bad)&&(t.curOp.selectionChanged=!0)})}}},bn.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,r,n=this.cm,i=n.display,a=n.doc.sel.primary(),S=a.from(),R=a.to();if(S.ch==0&&S.line>n.firstLine()&&(S=ot(S.line-1,xt(n.doc,S.line-1).length)),R.ch==xt(n.doc,R.line).text.length&&R.line<n.lastLine()&&(R=ot(R.line+1,0)),S.line<i.viewFrom||R.line>i.viewTo-1)return!1;S.line==i.viewFrom||(e=Yr(n,S.line))==0?(t=$t(i.view[0].line),r=i.view[0].node):(t=$t(i.view[e].line),r=i.view[e-1].node.nextSibling);var re,ae,je=Yr(n,R.line);if(je==i.view.length-1?(re=i.viewTo-1,ae=i.lineDiv.lastChild):(re=$t(i.view[je+1].line)-1,ae=i.view[je+1].node.previousSibling),!r)return!1;for(var De=n.doc.splitLines(uc(n,r,ae,t,re)),Be=Rt(n.doc,ot(t,0),ot(re,xt(n.doc,re).text.length));De.length>1&&Be.length>1;)if(q(De)==q(Be))De.pop(),Be.pop(),re--;else{if(De[0]!=Be[0])break;De.shift(),Be.shift(),t++}for(var ze=0,qe=0,st=De[0],ft=Be[0],bt=Math.min(st.length,ft.length);ze<bt&&st.charCodeAt(ze)==ft.charCodeAt(ze);)++ze;for(var Ot=q(De),pt=q(Be),Et=Math.min(Ot.length-(De.length==1?ze:0),pt.length-(Be.length==1?ze:0));qe<Et&&Ot.charCodeAt(Ot.length-qe-1)==pt.charCodeAt(pt.length-qe-1);)++qe;if(De.length==1&&Be.length==1&&t==S.line)for(;ze&&ze>S.ch&&Ot.charCodeAt(Ot.length-qe-1)==pt.charCodeAt(pt.length-qe-1);)ze--,qe++;De[De.length-1]=Ot.slice(0,Ot.length-qe).replace(/^\u200b+/,""),De[0]=De[0].slice(ze).replace(/\u200b+$/,"");var Pt=ot(t,ze),It=ot(re,Be.length?q(Be).length-qe:0);return De.length>1||De[0]||Nt(Pt,It)?(yi(n.doc,De,Pt,It,"+input"),!0):void 0},bn.prototype.ensurePolled=function(){this.forceCompositionEnd()},bn.prototype.reset=function(){this.forceCompositionEnd()},bn.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},bn.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},bn.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||mr(this.cm,function(){return cr(e.cm)})},bn.prototype.setUneditable=function(e){e.contentEditable="false"},bn.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Yn(this.cm,ds)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},bn.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},bn.prototype.onContextMenu=function(){},bn.prototype.resetPosition=function(){},bn.prototype.needsContentAttribute=!0;var Zn=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new F,this.hasSelection=!1,this.composing=null};function fc(e,t){if((t=t?le(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var r=x();t.autofocus=r==e||e.getAttribute("autofocus")!=null&&r==document.body}function n(){e.value=R.getValue()}var i;if(e.form&&(fe(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var a=e.form;i=a.submit;try{var S=a.submit=function(){n(),a.submit=i,a.submit(),a.submit=S}}catch{}}t.finishInit=function(re){re.save=n,re.getTextArea=function(){return e},re.toTextArea=function(){re.toTextArea=isNaN,n(),e.parentNode.removeChild(re.getWrapperElement()),e.style.display="",e.form&&(be(e.form,"submit",n),t.leaveSubmitMethodAlone||typeof e.form.submit!="function"||(e.form.submit=i))}},e.style.display="none";var R=jn(function(re){return e.parentNode.insertBefore(re,e.nextSibling)},t);return R}function dc(e){e.off=be,e.on=fe,e.wheelEventPixels=wl,e.Doc=ur,e.splitLines=ln,e.countColumn=ce,e.findColumn=K,e.isWordChar=Ne,e.Pass=o,e.signal=_e,e.Line=Or,e.changeEnd=Hr,e.scrollbarModel=Is,e.Pos=ot,e.cmpPos=Nt,e.modes=Sn,e.mimeModes=pn,e.resolveMode=kn,e.getMode=Bn,e.modeExtensions=fn,e.extendMode=Gn,e.copyState=gn,e.startState=Kn,e.innerMode=Pn,e.commands=Ki,e.keyMap=Rr,e.keyName=Ca,e.isModifierKey=xa,e.lookupKey=wi,e.normalizeKeyMap=Bl,e.StringStream=At,e.SharedTextMarker=$i,e.TextMarker=zr,e.LineWidget=Wi,e.e_preventDefault=gt,e.e_stopPropagation=Ut,e.e_stop=rn,e.addClass=O,e.contains=u,e.rmClass=f,e.keyNames=Ur}Zn.prototype.init=function(e){var t=this,r=this,n=this.cm;this.createField(e);var i=this.textarea;function a(S){if(!Fe(n,S)){if(n.somethingSelected())Do({lineWise:!1,text:n.getSelections()});else{if(!n.options.lineWiseCopyCut)return;var R=Fa(n);Do({lineWise:!0,text:R.text}),S.type=="cut"?n.setSelections(R.ranges,null,h):(r.prevInput="",i.value=R.text.join(` +`),X(i))}S.type=="cut"&&(n.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),B&&(i.style.width="0px"),fe(i,"input",function(){N&&te>=9&&t.hasSelection&&(t.hasSelection=null),r.poll()}),fe(i,"paste",function(S){Fe(n,S)||Ia(S,n)||(n.state.pasteIncoming=+new Date,r.fastPoll())}),fe(i,"cut",a),fe(i,"copy",a),fe(e.scroller,"paste",function(S){if(!de(e,S)&&!Fe(n,S)){if(!i.dispatchEvent)return n.state.pasteIncoming=+new Date,void r.focus();var R=new Event("paste");R.clipboardData=S.clipboardData,i.dispatchEvent(R)}}),fe(e.lineSpace,"selectstart",function(S){de(e,S)||gt(S)}),fe(i,"compositionstart",function(){var S=n.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:S,range:n.markText(S,n.getCursor("to"),{className:"CodeMirror-composing"})}}),fe(i,"compositionend",function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)})},Zn.prototype.createField=function(e){this.wrapper=Ha(),this.textarea=this.wrapper.firstChild},Zn.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Zn.prototype.prepareSelection=function(){var e=this.cm,t=e.display,r=e.doc,n=js(e);if(e.options.moveInputWithCursor){var i=Pr(e,r.sel.primary().head,"div"),a=t.wrapper.getBoundingClientRect(),S=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+S.top-a.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+S.left-a.left))}return n},Zn.prototype.showSelection=function(e){var t=this.cm.display;D(t.cursorDiv,e.cursors),D(t.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Zn.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var r=t.getSelection();this.textarea.value=r,t.state.focused&&X(this.textarea),N&&te>=9&&(this.hasSelection=r)}else e||(this.prevInput=this.textarea.value="",N&&te>=9&&(this.hasSelection=null))}},Zn.prototype.getField=function(){return this.textarea},Zn.prototype.supportsTouch=function(){return!1},Zn.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!M||x()!=this.textarea))try{this.textarea.focus()}catch{}},Zn.prototype.blur=function(){this.textarea.blur()},Zn.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Zn.prototype.receivedFocus=function(){this.slowPoll()},Zn.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Zn.prototype.fastPoll=function(){var e=!1,t=this;function r(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,r))}t.pollingFast=!0,t.polling.set(20,r)},Zn.prototype.poll=function(){var e=this,t=this.cm,r=this.textarea,n=this.prevInput;if(this.contextMenuPending||!t.state.focused||Rn(r)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=r.value;if(i==n&&!t.somethingSelected())return!1;if(N&&te>=9&&this.hasSelection===i||H&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var a=i.charCodeAt(0);if(a!=8203||n||(n="\u200B"),a==8666)return this.reset(),this.cm.execCommand("undo")}for(var S=0,R=Math.min(n.length,i.length);S<R&&n.charCodeAt(S)==i.charCodeAt(S);)++S;return mr(t,function(){ds(t,i.slice(S),n.length-S,null,e.composing?"*compose":null),i.length>1e3||i.indexOf(` +`)>-1?r.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Zn.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Zn.prototype.onKeyPress=function(){N&&te>=9&&(this.hasSelection=null),this.fastPoll()},Zn.prototype.onContextMenu=function(e){var t=this,r=t.cm,n=r.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var a=Kr(r,e),S=n.scroller.scrollTop;if(a&&!y){r.options.resetSelectionOnContextMenu&&r.doc.sel.contains(a)==-1&&Yn(r,tr)(r.doc,Vr(a),h);var R,re=i.style.cssText,ae=t.wrapper.style.cssText,je=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText=`position: absolute; width: 30px; height: 30px; + top: `+(e.clientY-je.top-5)+"px; left: "+(e.clientX-je.left-5)+`px; + z-index: 1000; background: `+(N?"rgba(255, 255, 255, .05)":"transparent")+`; + outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`,$&&(R=window.scrollY),n.input.focus(),$&&window.scrollTo(null,R),n.input.reset(),r.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=ze,n.selForContextMenu=r.doc.sel,clearTimeout(n.detectingSelectAll),N&&te>=9&&Be(),I){rn(e);var De=function(){be(window,"mouseup",De),setTimeout(ze,20)};fe(window,"mouseup",De)}else setTimeout(ze,50)}function Be(){if(i.selectionStart!=null){var qe=r.somethingSelected(),st="\u200B"+(qe?i.value:"");i.value="\u21DA",i.value=st,t.prevInput=qe?"":"\u200B",i.selectionStart=1,i.selectionEnd=st.length,n.selForContextMenu=r.doc.sel}}function ze(){if(t.contextMenuPending==ze&&(t.contextMenuPending=!1,t.wrapper.style.cssText=ae,i.style.cssText=re,N&&te<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=S),i.selectionStart!=null)){(!N||N&&te<9)&&Be();var qe=0,st=function(){n.selForContextMenu==r.doc.sel&&i.selectionStart==0&&i.selectionEnd>0&&t.prevInput=="\u200B"?Yn(r,aa)(r):qe++<10?n.detectingSelectAll=setTimeout(st,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(st,200)}}},Zn.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Zn.prototype.setUneditable=function(){},Zn.prototype.needsContentAttribute=!1,ic(jn),lc(jn);var pc="iter insert remove copy getEditor constructor".split(" ");for(var Ao in ur.prototype)ur.prototype.hasOwnProperty(Ao)&&l(pc,Ao)<0&&(jn.prototype[Ao]=function(e){return function(){return e.apply(this.doc,arguments)}}(ur.prototype[Ao]));return Ye(ur),jn.inputStyles={textarea:Zn,contenteditable:bn},jn.defineMode=function(e){jn.defaults.mode||e=="null"||(jn.defaults.mode=e),vn.apply(this,arguments)},jn.defineMIME=Qn,jn.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),jn.defineMIME("text/plain","null"),jn.defineExtension=function(e,t){jn.prototype[e]=t},jn.defineDocExtension=function(e,t){ur.prototype[e]=t},jn.fromTextArea=fc,dc(jn),jn.version="5.63.0",jn}()},6629:(Je,Se,b)=>{(function(ye){"use strict";function we(p){for(var d={},f=0;f<p.length;++f)d[p[f].toLowerCase()]=!0;return d}ye.defineMode("css",function(p,d){var f=d.inline;d.propertyKeywords||(d=ye.resolveMode("text/css"));var v,D,g=p.indentUnit,T=d.tokenHooks,u=d.documentTypes||{},x=d.mediaTypes||{},O=d.mediaFeatures||{},W=d.mediaValueKeywords||{},X=d.propertyKeywords||{},ie=d.nonStandardPropertyKeywords||{},le=d.fontProperties||{},ce=d.counterDescriptors||{},F=d.colorKeywords||{},l=d.valueKeywords||{},s=d.allowNested,o=d.lineComment,h=d.supportsAtComponent===!0,m=p.highlightNonStandardPropertyKeywords!==!1;function j(Oe,Ie){return v=Ie,Oe}function K(Oe,Ie){var Le=Oe.next();if(T[Le]){var $e=T[Le](Oe,Ie);if($e!==!1)return $e}return Le=="@"?(Oe.eatWhile(/[\w\\\-]/),j("def",Oe.current())):Le=="="||(Le=="~"||Le=="|")&&Oe.eat("=")?j(null,"compare"):Le=='"'||Le=="'"?(Ie.tokenize=ve(Le),Ie.tokenize(Oe,Ie)):Le=="#"?(Oe.eatWhile(/[\w\\\-]/),j("atom","hash")):Le=="!"?(Oe.match(/^\s*\w*/),j("keyword","important")):/\d/.test(Le)||Le=="."&&Oe.eat(/\d/)?(Oe.eatWhile(/[\w.%]/),j("number","unit")):Le!=="-"?/[,+>*\/]/.test(Le)?j(null,"select-op"):Le=="."&&Oe.match(/^-?[_a-z][_a-z0-9-]*/i)?j("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(Le)?j(null,Le):Oe.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(Oe.current())&&(Ie.tokenize=E),j("variable callee","variable")):/[\w\\\-]/.test(Le)?(Oe.eatWhile(/[\w\\\-]/),j("property","word")):j(null,null):/[\d.]/.test(Oe.peek())?(Oe.eatWhile(/[\w.%]/),j("number","unit")):Oe.match(/^-[\w\\\-]*/)?(Oe.eatWhile(/[\w\\\-]/),Oe.match(/^\s*:/,!1)?j("variable-2","variable-definition"):j("variable-2","variable")):Oe.match(/^\w+-/)?j("meta","meta"):void 0}function ve(Oe){return function(Ie,Le){for(var $e,tt=!1;($e=Ie.next())!=null;){if($e==Oe&&!tt){Oe==")"&&Ie.backUp(1);break}tt=!tt&&$e=="\\"}return($e==Oe||!tt&&Oe!=")")&&(Le.tokenize=null),j("string","string")}}function E(Oe,Ie){return Oe.next(),Oe.match(/^\s*[\"\')]/,!1)?Ie.tokenize=null:Ie.tokenize=ve(")"),j(null,"(")}function q(Oe,Ie,Le){this.type=Oe,this.indent=Ie,this.prev=Le}function ue(Oe,Ie,Le,$e){return Oe.context=new q(Le,Ie.indentation()+($e===!1?0:g),Oe.context),Le}function ke(Oe){return Oe.context.prev&&(Oe.context=Oe.context.prev),Oe.context.type}function Ee(Oe,Ie,Le){return Ne[Le.context.type](Oe,Ie,Le)}function pe(Oe,Ie,Le,$e){for(var tt=$e||1;tt>0;tt--)Le.context=Le.context.prev;return Ee(Oe,Ie,Le)}function Ae(Oe){var Ie=Oe.current().toLowerCase();D=l.hasOwnProperty(Ie)?"atom":F.hasOwnProperty(Ie)?"keyword":"variable"}var Ne={top:function(Oe,Ie,Le){if(Oe=="{")return ue(Le,Ie,"block");if(Oe=="}"&&Le.context.prev)return ke(Le);if(h&&/@component/i.test(Oe))return ue(Le,Ie,"atComponentBlock");if(/^@(-moz-)?document$/i.test(Oe))return ue(Le,Ie,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(Oe))return ue(Le,Ie,"atBlock");if(/^@(font-face|counter-style)/i.test(Oe))return Le.stateArg=Oe,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(Oe))return"keyframes";if(Oe&&Oe.charAt(0)=="@")return ue(Le,Ie,"at");if(Oe=="hash")D="builtin";else if(Oe=="word")D="tag";else{if(Oe=="variable-definition")return"maybeprop";if(Oe=="interpolation")return ue(Le,Ie,"interpolation");if(Oe==":")return"pseudo";if(s&&Oe=="(")return ue(Le,Ie,"parens")}return Le.context.type},block:function(Oe,Ie,Le){if(Oe=="word"){var $e=Ie.current().toLowerCase();return X.hasOwnProperty($e)?(D="property","maybeprop"):ie.hasOwnProperty($e)?(D=m?"string-2":"property","maybeprop"):s?(D=Ie.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(D+=" error","maybeprop")}return Oe=="meta"?"block":s||Oe!="hash"&&Oe!="qualifier"?Ne.top(Oe,Ie,Le):(D="error","block")},maybeprop:function(Oe,Ie,Le){return Oe==":"?ue(Le,Ie,"prop"):Ee(Oe,Ie,Le)},prop:function(Oe,Ie,Le){if(Oe==";")return ke(Le);if(Oe=="{"&&s)return ue(Le,Ie,"propBlock");if(Oe=="}"||Oe=="{")return pe(Oe,Ie,Le);if(Oe=="(")return ue(Le,Ie,"parens");if(Oe!="hash"||/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(Ie.current())){if(Oe=="word")Ae(Ie);else if(Oe=="interpolation")return ue(Le,Ie,"interpolation")}else D+=" error";return"prop"},propBlock:function(Oe,Ie,Le){return Oe=="}"?ke(Le):Oe=="word"?(D="property","maybeprop"):Le.context.type},parens:function(Oe,Ie,Le){return Oe=="{"||Oe=="}"?pe(Oe,Ie,Le):Oe==")"?ke(Le):Oe=="("?ue(Le,Ie,"parens"):Oe=="interpolation"?ue(Le,Ie,"interpolation"):(Oe=="word"&&Ae(Ie),"parens")},pseudo:function(Oe,Ie,Le){return Oe=="meta"?"pseudo":Oe=="word"?(D="variable-3",Le.context.type):Ee(Oe,Ie,Le)},documentTypes:function(Oe,Ie,Le){return Oe=="word"&&u.hasOwnProperty(Ie.current())?(D="tag",Le.context.type):Ne.atBlock(Oe,Ie,Le)},atBlock:function(Oe,Ie,Le){if(Oe=="(")return ue(Le,Ie,"atBlock_parens");if(Oe=="}"||Oe==";")return pe(Oe,Ie,Le);if(Oe=="{")return ke(Le)&&ue(Le,Ie,s?"block":"top");if(Oe=="interpolation")return ue(Le,Ie,"interpolation");if(Oe=="word"){var $e=Ie.current().toLowerCase();D=$e=="only"||$e=="not"||$e=="and"||$e=="or"?"keyword":x.hasOwnProperty($e)?"attribute":O.hasOwnProperty($e)?"property":W.hasOwnProperty($e)?"keyword":X.hasOwnProperty($e)?"property":ie.hasOwnProperty($e)?m?"string-2":"property":l.hasOwnProperty($e)?"atom":F.hasOwnProperty($e)?"keyword":"error"}return Le.context.type},atComponentBlock:function(Oe,Ie,Le){return Oe=="}"?pe(Oe,Ie,Le):Oe=="{"?ke(Le)&&ue(Le,Ie,s?"block":"top",!1):(Oe=="word"&&(D="error"),Le.context.type)},atBlock_parens:function(Oe,Ie,Le){return Oe==")"?ke(Le):Oe=="{"||Oe=="}"?pe(Oe,Ie,Le,2):Ne.atBlock(Oe,Ie,Le)},restricted_atBlock_before:function(Oe,Ie,Le){return Oe=="{"?ue(Le,Ie,"restricted_atBlock"):Oe=="word"&&Le.stateArg=="@counter-style"?(D="variable","restricted_atBlock_before"):Ee(Oe,Ie,Le)},restricted_atBlock:function(Oe,Ie,Le){return Oe=="}"?(Le.stateArg=null,ke(Le)):Oe=="word"?(D=Le.stateArg=="@font-face"&&!le.hasOwnProperty(Ie.current().toLowerCase())||Le.stateArg=="@counter-style"&&!ce.hasOwnProperty(Ie.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(Oe,Ie,Le){return Oe=="word"?(D="variable","keyframes"):Oe=="{"?ue(Le,Ie,"top"):Ee(Oe,Ie,Le)},at:function(Oe,Ie,Le){return Oe==";"?ke(Le):Oe=="{"||Oe=="}"?pe(Oe,Ie,Le):(Oe=="word"?D="tag":Oe=="hash"&&(D="builtin"),"at")},interpolation:function(Oe,Ie,Le){return Oe=="}"?ke(Le):Oe=="{"||Oe==";"?pe(Oe,Ie,Le):(Oe=="word"?D="variable":Oe!="variable"&&Oe!="("&&Oe!=")"&&(D="error"),"interpolation")}};return{startState:function(Oe){return{tokenize:null,state:f?"block":"top",stateArg:null,context:new q(f?"block":"top",Oe||0,null)}},token:function(Oe,Ie){if(!Ie.tokenize&&Oe.eatSpace())return null;var Le=(Ie.tokenize||K)(Oe,Ie);return Le&&typeof Le=="object"&&(v=Le[1],Le=Le[0]),D=Le,v!="comment"&&(Ie.state=Ne[Ie.state](v,Oe,Ie)),D},indent:function(Oe,Ie){var Le=Oe.context,$e=Ie&&Ie.charAt(0),tt=Le.indent;return Le.type!="prop"||$e!="}"&&$e!=")"||(Le=Le.prev),Le.prev&&($e!="}"||Le.type!="block"&&Le.type!="top"&&Le.type!="interpolation"&&Le.type!="restricted_atBlock"?($e!=")"||Le.type!="parens"&&Le.type!="atBlock_parens")&&($e!="{"||Le.type!="at"&&Le.type!="atBlock")||(tt=Math.max(0,Le.indent-g)):tt=(Le=Le.prev).indent),tt},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:o,fold:"brace"}});var J=["domain","regexp","url","url-prefix"],Y=we(J),N=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],te=we(N),$=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme"],L=we($),w=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light"],y=we(w),P=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],A=we(P),k=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],B=we(k),G=we(["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"]),M=we(["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"]),H=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],Z=we(H),_=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],C=we(_),z=J.concat(N).concat($).concat(w).concat(P).concat(k).concat(H).concat(_);function I(p,d){for(var f,v=!1;(f=p.next())!=null;){if(v&&f=="/"){d.tokenize=null;break}v=f=="*"}return["comment","comment"]}ye.registerHelper("hintWords","css",z),ye.defineMIME("text/css",{documentTypes:Y,mediaTypes:te,mediaFeatures:L,mediaValueKeywords:y,propertyKeywords:A,nonStandardPropertyKeywords:B,fontProperties:G,counterDescriptors:M,colorKeywords:Z,valueKeywords:C,tokenHooks:{"/":function(p,d){return!!p.eat("*")&&(d.tokenize=I,I(p,d))}},name:"css"}),ye.defineMIME("text/x-scss",{mediaTypes:te,mediaFeatures:L,mediaValueKeywords:y,propertyKeywords:A,nonStandardPropertyKeywords:B,colorKeywords:Z,valueKeywords:C,fontProperties:G,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(p,d){return p.eat("/")?(p.skipToEnd(),["comment","comment"]):p.eat("*")?(d.tokenize=I,I(p,d)):["operator","operator"]},":":function(p){return!!p.match(/^\s*\{/,!1)&&[null,null]},$:function(p){return p.match(/^[\w-]+/),p.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(p){return!!p.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),ye.defineMIME("text/x-less",{mediaTypes:te,mediaFeatures:L,mediaValueKeywords:y,propertyKeywords:A,nonStandardPropertyKeywords:B,colorKeywords:Z,valueKeywords:C,fontProperties:G,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(p,d){return p.eat("/")?(p.skipToEnd(),["comment","comment"]):p.eat("*")?(d.tokenize=I,I(p,d)):["operator","operator"]},"@":function(p){return p.eat("{")?[null,"interpolation"]:!p.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(p.eatWhile(/[\w\\\-]/),p.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),ye.defineMIME("text/x-gss",{documentTypes:Y,mediaTypes:te,mediaFeatures:L,propertyKeywords:A,nonStandardPropertyKeywords:B,fontProperties:G,counterDescriptors:M,colorKeywords:Z,valueKeywords:C,supportsAtComponent:!0,tokenHooks:{"/":function(p,d){return!!p.eat("*")&&(d.tokenize=I,I(p,d))}},name:"css",helperType:"gss"})})(b(4631))},6531:(Je,Se,b)=>{(function(ye){"use strict";var we={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function J(y,P,A){var k=y.current(),B=k.search(P);return B>-1?y.backUp(k.length-B):k.match(/<\/?$/)&&(y.backUp(k.length),y.match(P,!1)||y.match(k)),A}var Y={};function N(y){var P=Y[y];return P||(Y[y]=new RegExp("\\s+"+y+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function te(y,P){var A=y.match(N(P));return A?/^\s*(.*?)\s*$/.exec(A[2])[1]:""}function $(y,P){return new RegExp((P?"^":"")+"</s*"+y+"s*>","i")}function L(y,P){for(var A in y)for(var k=P[A]||(P[A]=[]),B=y[A],G=B.length-1;G>=0;G--)k.unshift(B[G])}function w(y,P){for(var A=0;A<y.length;A++){var k=y[A];if(!k[0]||k[1].test(te(P,k[0])))return k[2]}}ye.defineMode("htmlmixed",function(y,P){var A=ye.getMode(y,{name:"xml",htmlMode:!0,multilineTagIndentFactor:P.multilineTagIndentFactor,multilineTagIndentPastTag:P.multilineTagIndentPastTag,allowMissingTagName:P.allowMissingTagName}),k={},B=P&&P.tags,G=P&&P.scriptTypes;if(L(we,k),B&&L(B,k),G)for(var M=G.length-1;M>=0;M--)k.script.unshift(["type",G[M].matches,G[M].mode]);function H(Z,_){var C,z=A.token(Z,_.htmlState),I=/\btag\b/.test(z);if(I&&!/[<>\s\/]/.test(Z.current())&&(C=_.htmlState.tagName&&_.htmlState.tagName.toLowerCase())&&k.hasOwnProperty(C))_.inTag=C+" ";else if(_.inTag&&I&&/>$/.test(Z.current())){var p=/^([\S]+) (.*)/.exec(_.inTag);_.inTag=null;var d=Z.current()==">"&&w(k[p[1]],p[2]),f=ye.getMode(y,d),v=$(p[1],!0),D=$(p[1],!1);_.token=function(g,T){return g.match(v,!1)?(T.token=H,T.localState=T.localMode=null,null):J(g,D,T.localMode.token(g,T.localState))},_.localMode=f,_.localState=ye.startState(f,A.indent(_.htmlState,"",""))}else _.inTag&&(_.inTag+=Z.current(),Z.eol()&&(_.inTag+=" "));return z}return{startState:function(){return{token:H,inTag:null,localMode:null,localState:null,htmlState:ye.startState(A)}},copyState:function(Z){var _;return Z.localState&&(_=ye.copyState(Z.localMode,Z.localState)),{token:Z.token,inTag:Z.inTag,localMode:Z.localMode,localState:_,htmlState:ye.copyState(A,Z.htmlState)}},token:function(Z,_){return _.token(Z,_)},indent:function(Z,_,C){return!Z.localMode||/^\s*<\//.test(_)?A.indent(Z.htmlState,_,C):Z.localMode.indent?Z.localMode.indent(Z.localState,_,C):ye.Pass},innerMode:function(Z){return{state:Z.localState||Z.htmlState,mode:Z.localMode||A}}}},"xml","javascript","css"),ye.defineMIME("text/html","htmlmixed")})(b(4631),b(9589),b(6876),b(6629))},6876:(Je,Se,b)=>{(function(ye){"use strict";ye.defineMode("javascript",function(we,J){var Y,N,te=we.indentUnit,$=J.statementIndent,L=J.jsonld,w=J.json||L,y=J.trackScope!==!1,P=J.typescript,A=J.wordCharacters||/[\w$\xa1-\uffff]/,k=function(){function he(Ge){return{type:Ge,style:"keyword"}}var Te=he("keyword a"),Ke=he("keyword b"),U=he("keyword c"),oe=he("keyword d"),ne=he("operator"),ge={type:"atom",style:"atom"};return{if:he("if"),while:Te,with:Te,else:Ke,do:Ke,try:Ke,finally:Ke,return:oe,break:oe,continue:oe,new:he("new"),delete:U,void:U,throw:U,debugger:he("debugger"),var:he("var"),const:he("var"),let:he("var"),function:he("function"),catch:he("catch"),for:he("for"),switch:he("switch"),case:he("case"),default:he("default"),in:ne,typeof:ne,instanceof:ne,true:ge,false:ge,null:ge,undefined:ge,NaN:ge,Infinity:ge,this:he("this"),class:he("class"),super:he("atom"),yield:U,export:he("export"),import:he("import"),extends:U,await:U}}(),B=/[+\-*&%=<>!?|~^@]/,G=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function M(he){for(var Te,Ke=!1,U=!1;(Te=he.next())!=null;){if(!Ke){if(Te=="/"&&!U)return;Te=="["?U=!0:U&&Te=="]"&&(U=!1)}Ke=!Ke&&Te=="\\"}}function H(he,Te,Ke){return Y=he,N=Ke,Te}function Z(he,Te){var Ke=he.next();if(Ke=='"'||Ke=="'")return Te.tokenize=_(Ke),Te.tokenize(he,Te);if(Ke=="."&&he.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return H("number","number");if(Ke=="."&&he.match(".."))return H("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(Ke))return H(Ke);if(Ke=="="&&he.eat(">"))return H("=>","operator");if(Ke=="0"&&he.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return H("number","number");if(/\d/.test(Ke))return he.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),H("number","number");if(Ke=="/")return he.eat("*")?(Te.tokenize=C,C(he,Te)):he.eat("/")?(he.skipToEnd(),H("comment","comment")):Nt(he,Te,1)?(M(he),he.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),H("regexp","string-2")):(he.eat("="),H("operator","operator",he.current()));if(Ke=="`")return Te.tokenize=z,z(he,Te);if(Ke=="#"&&he.peek()=="!")return he.skipToEnd(),H("meta","meta");if(Ke=="#"&&he.eatWhile(A))return H("variable","property");if(Ke=="<"&&he.match("!--")||Ke=="-"&&he.match("->")&&!/\S/.test(he.string.slice(0,he.start)))return he.skipToEnd(),H("comment","comment");if(B.test(Ke))return Ke==">"&&Te.lexical&&Te.lexical.type==">"||(he.eat("=")?Ke!="!"&&Ke!="="||he.eat("="):/[<>*+\-|&?]/.test(Ke)&&(he.eat(Ke),Ke==">"&&he.eat(Ke))),Ke=="?"&&he.eat(".")?H("."):H("operator","operator",he.current());if(A.test(Ke)){he.eatWhile(A);var U=he.current();if(Te.lastType!="."){if(k.propertyIsEnumerable(U)){var oe=k[U];return H(oe.type,oe.style,U)}if(U=="async"&&he.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return H("async","keyword",U)}return H("variable","variable",U)}}function _(he){return function(Te,Ke){var U,oe=!1;if(L&&Te.peek()=="@"&&Te.match(G))return Ke.tokenize=Z,H("jsonld-keyword","meta");for(;(U=Te.next())!=null&&(U!=he||oe);)oe=!oe&&U=="\\";return oe||(Ke.tokenize=Z),H("string","string")}}function C(he,Te){for(var Ke,U=!1;Ke=he.next();){if(Ke=="/"&&U){Te.tokenize=Z;break}U=Ke=="*"}return H("comment","comment")}function z(he,Te){for(var Ke,U=!1;(Ke=he.next())!=null;){if(!U&&(Ke=="`"||Ke=="$"&&he.eat("{"))){Te.tokenize=Z;break}U=!U&&Ke=="\\"}return H("quasi","string-2",he.current())}var I="([{}])";function p(he,Te){Te.fatArrowAt&&(Te.fatArrowAt=null);var Ke=he.string.indexOf("=>",he.start);if(!(Ke<0)){if(P){var U=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(he.string.slice(he.start,Ke));U&&(Ke=U.index)}for(var oe=0,ne=!1,ge=Ke-1;ge>=0;--ge){var Ge=he.string.charAt(ge),yt=I.indexOf(Ge);if(yt>=0&&yt<3){if(!oe){++ge;break}if(--oe==0){Ge=="("&&(ne=!0);break}}else if(yt>=3&&yt<6)++oe;else if(A.test(Ge))ne=!0;else if(/["'\/`]/.test(Ge))for(;;--ge){if(ge==0)return;if(he.string.charAt(ge-1)==Ge&&he.string.charAt(ge-2)!="\\"){ge--;break}}else if(ne&&!oe){++ge;break}}ne&&!oe&&(Te.fatArrowAt=ge)}}var d={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function f(he,Te,Ke,U,oe,ne){this.indented=he,this.column=Te,this.type=Ke,this.prev=oe,this.info=ne,U!=null&&(this.align=U)}function v(he,Te){if(!y)return!1;for(var Ke=he.localVars;Ke;Ke=Ke.next)if(Ke.name==Te)return!0;for(var U=he.context;U;U=U.prev)for(Ke=U.vars;Ke;Ke=Ke.next)if(Ke.name==Te)return!0}function D(he,Te,Ke,U,oe){var ne=he.cc;for(g.state=he,g.stream=oe,g.marked=null,g.cc=ne,g.style=Te,he.lexical.hasOwnProperty("align")||(he.lexical.align=!0);;)if((ne.length?ne.pop():w?ve:j)(Ke,U)){for(;ne.length&&ne[ne.length-1].lex;)ne.pop()();return g.marked?g.marked:Ke=="variable"&&v(he,U)?"variable-2":Te}}var g={state:null,column:null,marked:null,cc:null};function T(){for(var he=arguments.length-1;he>=0;he--)g.cc.push(arguments[he])}function u(){return T.apply(null,arguments),!0}function x(he,Te){for(var Ke=Te;Ke;Ke=Ke.next)if(Ke.name==he)return!0;return!1}function O(he){var Te=g.state;if(g.marked="def",y){if(Te.context){if(Te.lexical.info=="var"&&Te.context&&Te.context.block){var Ke=W(he,Te.context);if(Ke!=null)return void(Te.context=Ke)}else if(!x(he,Te.localVars))return void(Te.localVars=new le(he,Te.localVars))}J.globalVars&&!x(he,Te.globalVars)&&(Te.globalVars=new le(he,Te.globalVars))}}function W(he,Te){if(Te){if(Te.block){var Ke=W(he,Te.prev);return Ke?Ke==Te.prev?Te:new ie(Ke,Te.vars,!0):null}return x(he,Te.vars)?Te:new ie(Te.prev,new le(he,Te.vars),!1)}return null}function X(he){return he=="public"||he=="private"||he=="protected"||he=="abstract"||he=="readonly"}function ie(he,Te,Ke){this.prev=he,this.vars=Te,this.block=Ke}function le(he,Te){this.name=he,this.next=Te}var ce=new le("this",new le("arguments",null));function F(){g.state.context=new ie(g.state.context,g.state.localVars,!1),g.state.localVars=ce}function l(){g.state.context=new ie(g.state.context,g.state.localVars,!0),g.state.localVars=null}function s(){g.state.localVars=g.state.context.vars,g.state.context=g.state.context.prev}function o(he,Te){var Ke=function(){var U=g.state,oe=U.indented;if(U.lexical.type=="stat")oe=U.lexical.indented;else for(var ne=U.lexical;ne&&ne.type==")"&&ne.align;ne=ne.prev)oe=ne.indented;U.lexical=new f(oe,g.stream.column(),he,null,U.lexical,Te)};return Ke.lex=!0,Ke}function h(){var he=g.state;he.lexical.prev&&(he.lexical.type==")"&&(he.indented=he.lexical.indented),he.lexical=he.lexical.prev)}function m(he){function Te(Ke){return Ke==he?u():he==";"||Ke=="}"||Ke==")"||Ke=="]"?T():u(Te)}return Te}function j(he,Te){return he=="var"?u(o("vardef",Te),qt,m(";"),h):he=="keyword a"?u(o("form"),q,j,h):he=="keyword b"?u(o("form"),j,h):he=="keyword d"?g.stream.match(/^\s*$/,!1)?u():u(o("stat"),ke,m(";"),h):he=="debugger"?u(m(";")):he=="{"?u(o("}"),l,fe,h,s):he==";"?u():he=="if"?(g.state.lexical.info=="else"&&g.state.cc[g.state.cc.length-1]==h&&g.state.cc.pop()(),u(o("form"),q,j,h,Hn)):he=="function"?u(pn):he=="for"?u(o("form"),l,Mn,j,s,h):he=="class"||P&&Te=="interface"?(g.marked="keyword",u(o("form",he=="class"?he:Te),fn,h)):he=="variable"?P&&Te=="declare"?(g.marked="keyword",u(j)):P&&(Te=="module"||Te=="enum"||Te=="type")&&g.stream.match(/^\s*\w/,!1)?(g.marked="keyword",Te=="enum"?u(Nn):Te=="type"?u(Qn,m("operator"),He,m(";")):u(o("form"),Kt,m("{"),o("}"),fe,h,h)):P&&Te=="namespace"?(g.marked="keyword",u(o("form"),ve,j,h)):P&&Te=="abstract"?(g.marked="keyword",u(j)):u(o("stat"),ht):he=="switch"?u(o("form"),q,m("{"),o("}","switch"),l,fe,h,h,s):he=="case"?u(ve,m(":")):he=="default"?u(m(":")):he=="catch"?u(o("form"),F,K,j,h,s):he=="export"?u(o("stat"),Kn,h):he=="import"?u(o("stat"),xt,h):he=="async"?u(j):Te=="@"?u(ve,j):T(o("stat"),ve,m(";"),h)}function K(he){if(he=="(")return u(kn,m(")"))}function ve(he,Te){return ue(he,Te,!1)}function E(he,Te){return ue(he,Te,!0)}function q(he){return he!="("?T():u(o(")"),ke,m(")"),h)}function ue(he,Te,Ke){if(g.state.fatArrowAt==g.stream.start){var U=Ke?Ie:Oe;if(he=="(")return u(F,o(")"),Ct(kn,")"),h,m("=>"),U,s);if(he=="variable")return T(F,Kt,m("=>"),U,s)}var oe=Ke?pe:Ee;return d.hasOwnProperty(he)?u(oe):he=="function"?u(pn,oe):he=="class"||P&&Te=="interface"?(g.marked="keyword",u(o("form"),Bn,h)):he=="keyword c"||he=="async"?u(Ke?E:ve):he=="("?u(o(")"),ke,m(")"),h,oe):he=="operator"||he=="spread"?u(Ke?E:ve):he=="["?u(o("]"),Jt,h,oe):he=="{"?nn(rt,"}",null,oe):he=="quasi"?T(Ae,oe):he=="new"?u(Le(Ke)):u()}function ke(he){return he.match(/[;\}\)\],]/)?T():T(ve)}function Ee(he,Te){return he==","?u(ke):pe(he,Te,!1)}function pe(he,Te,Ke){var U=Ke==0?Ee:pe,oe=Ke==0?ve:E;return he=="=>"?u(F,Ke?Ie:Oe,s):he=="operator"?/\+\+|--/.test(Te)||P&&Te=="!"?u(U):P&&Te=="<"&&g.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?u(o(">"),Ct(He,">"),h,U):Te=="?"?u(ve,m(":"),oe):u(oe):he=="quasi"?T(Ae,U):he!=";"?he=="("?nn(E,")","call",U):he=="."?u(Vt,U):he=="["?u(o("]"),ke,m("]"),h,U):P&&Te=="as"?(g.marked="keyword",u(He,U)):he=="regexp"?(g.state.lastType=g.marked="operator",g.stream.backUp(g.stream.pos-g.stream.start-1),u(oe)):void 0:void 0}function Ae(he,Te){return he!="quasi"?T():Te.slice(Te.length-2)!="${"?u(Ae):u(ke,Ne)}function Ne(he){if(he=="}")return g.marked="string-2",g.state.tokenize=z,u(Ae)}function Oe(he){return p(g.stream,g.state),T(he=="{"?j:ve)}function Ie(he){return p(g.stream,g.state),T(he=="{"?j:E)}function Le(he){return function(Te){return Te=="."?u(he?tt:$e):Te=="variable"&&P?u(Ft,he?pe:Ee):T(he?E:ve)}}function $e(he,Te){if(Te=="target")return g.marked="keyword",u(Ee)}function tt(he,Te){if(Te=="target")return g.marked="keyword",u(pe)}function ht(he){return he==":"?u(h,j):T(Ee,m(";"),h)}function Vt(he){if(he=="variable")return g.marked="property",u()}function rt(he,Te){return he=="async"?(g.marked="property",u(rt)):he=="variable"||g.style=="keyword"?(g.marked="property",Te=="get"||Te=="set"?u(Ht):(P&&g.state.fatArrowAt==g.stream.start&&(Ke=g.stream.match(/^\s*:\s*/,!1))&&(g.state.fatArrowAt=g.stream.pos+Ke[0].length),u(Zt))):he=="number"||he=="string"?(g.marked=L?"property":g.style+" property",u(Zt)):he=="jsonld-keyword"?u(Zt):P&&X(Te)?(g.marked="keyword",u(rt)):he=="["?u(ve,se,m("]"),Zt):he=="spread"?u(E,Zt):Te=="*"?(g.marked="keyword",u(rt)):he==":"?T(Zt):void 0;var Ke}function Ht(he){return he!="variable"?T(Zt):(g.marked="property",u(pn))}function Zt(he){return he==":"?u(E):he=="("?T(pn):void 0}function Ct(he,Te,Ke){function U(oe,ne){if(Ke?Ke.indexOf(oe)>-1:oe==","){var ge=g.state.lexical;return ge.info=="call"&&(ge.pos=(ge.pos||0)+1),u(function(Ge,yt){return Ge==Te||yt==Te?T():T(he)},U)}return oe==Te||ne==Te?u():Ke&&Ke.indexOf(";")>-1?T(he):u(m(Te))}return function(oe,ne){return oe==Te||ne==Te?u():T(he,U)}}function nn(he,Te,Ke){for(var U=3;U<arguments.length;U++)g.cc.push(arguments[U]);return u(o(Te,Ke),Ct(he,Te),h)}function fe(he){return he=="}"?u():T(j,fe)}function se(he,Te){if(P){if(he==":")return u(He);if(Te=="?")return u(se)}}function be(he,Te){if(P&&(he==":"||Te=="in"))return u(He)}function _e(he){if(P&&he==":")return g.stream.match(/^\s*\w+\s+is\b/,!1)?u(ve,Fe,He):u(He)}function Fe(he,Te){if(Te=="is")return g.marked="keyword",u()}function He(he,Te){return Te=="keyof"||Te=="typeof"||Te=="infer"||Te=="readonly"?(g.marked="keyword",u(Te=="typeof"?E:He)):he=="variable"||Te=="void"?(g.marked="type",u(Qt)):Te=="|"||Te=="&"?u(He):he=="string"||he=="number"||he=="atom"?u(Qt):he=="["?u(o("]"),Ct(He,"]",","),h,Qt):he=="{"?u(o("}"),Ye,h,Qt):he=="("?u(Ct(rn,")"),at,Qt):he=="<"?u(Ct(He,">"),He):he=="quasi"?T(Ut,Qt):void 0}function at(he){if(he=="=>")return u(He)}function Ye(he){return he.match(/[\}\)\]]/)?u():he==","||he==";"?u(Ye):T(gt,Ye)}function gt(he,Te){return he=="variable"||g.style=="keyword"?(g.marked="property",u(gt)):Te=="?"||he=="number"||he=="string"?u(gt):he==":"?u(He):he=="["?u(m("variable"),be,m("]"),gt):he=="("?T(vn,gt):he.match(/[;\}\)\],]/)?void 0:u()}function Ut(he,Te){return he!="quasi"?T():Te.slice(Te.length-2)!="${"?u(Ut):u(He,dn)}function dn(he){if(he=="}")return g.marked="string-2",g.state.tokenize=z,u(Ut)}function rn(he,Te){return he=="variable"&&g.stream.match(/^\s*[?:]/,!1)||Te=="?"?u(rn):he==":"?u(He):he=="spread"?u(rn):T(He)}function Qt(he,Te){return Te=="<"?u(o(">"),Ct(He,">"),h,Qt):Te=="|"||he=="."||Te=="&"?u(He):he=="["?u(He,m("]"),Qt):Te=="extends"||Te=="implements"?(g.marked="keyword",u(He)):Te=="?"?u(He,m(":"),He):void 0}function Ft(he,Te){if(Te=="<")return u(o(">"),Ct(He,">"),h,Qt)}function ct(){return T(He,kt)}function kt(he,Te){if(Te=="=")return u(He)}function qt(he,Te){return Te=="enum"?(g.marked="keyword",u(Nn)):T(Kt,se,ln,Rn)}function Kt(he,Te){return P&&X(Te)?(g.marked="keyword",u(Kt)):he=="variable"?(O(Te),u()):he=="spread"?u(Kt):he=="["?nn(an,"]"):he=="{"?nn(sn,"}"):void 0}function sn(he,Te){return he!="variable"||g.stream.match(/^\s*:/,!1)?(he=="variable"&&(g.marked="property"),he=="spread"?u(Kt):he=="}"?T():he=="["?u(ve,m("]"),m(":"),sn):u(m(":"),Kt,ln)):(O(Te),u(ln))}function an(){return T(Kt,ln)}function ln(he,Te){if(Te=="=")return u(E)}function Rn(he){if(he==",")return u(qt)}function Hn(he,Te){if(he=="keyword b"&&Te=="else")return u(o("form","else"),j,h)}function Mn(he,Te){return Te=="await"?u(Mn):he=="("?u(o(")"),wn,h):void 0}function wn(he){return he=="var"?u(qt,Sn):he=="variable"?u(Sn):T(Sn)}function Sn(he,Te){return he==")"?u():he==";"?u(Sn):Te=="in"||Te=="of"?(g.marked="keyword",u(ve,Sn)):T(ve,Sn)}function pn(he,Te){return Te=="*"?(g.marked="keyword",u(pn)):he=="variable"?(O(Te),u(pn)):he=="("?u(F,o(")"),Ct(kn,")"),h,_e,j,s):P&&Te=="<"?u(o(">"),Ct(ct,">"),h,pn):void 0}function vn(he,Te){return Te=="*"?(g.marked="keyword",u(vn)):he=="variable"?(O(Te),u(vn)):he=="("?u(F,o(")"),Ct(kn,")"),h,_e,s):P&&Te=="<"?u(o(">"),Ct(ct,">"),h,vn):void 0}function Qn(he,Te){return he=="keyword"||he=="variable"?(g.marked="type",u(Qn)):Te=="<"?u(o(">"),Ct(ct,">"),h):void 0}function kn(he,Te){return Te=="@"&&u(ve,kn),he=="spread"?u(kn):P&&X(Te)?(g.marked="keyword",u(kn)):P&&he=="this"?u(se,ln):T(Kt,se,ln)}function Bn(he,Te){return he=="variable"?fn(he,Te):Gn(he,Te)}function fn(he,Te){if(he=="variable")return O(Te),u(Gn)}function Gn(he,Te){return Te=="<"?u(o(">"),Ct(ct,">"),h,Gn):Te=="extends"||Te=="implements"||P&&he==","?(Te=="implements"&&(g.marked="keyword"),u(P?He:ve,Gn)):he=="{"?u(o("}"),gn,h):void 0}function gn(he,Te){return he=="async"||he=="variable"&&(Te=="static"||Te=="get"||Te=="set"||P&&X(Te))&&g.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(g.marked="keyword",u(gn)):he=="variable"||g.style=="keyword"?(g.marked="property",u(Pn,gn)):he=="number"||he=="string"?u(Pn,gn):he=="["?u(ve,se,m("]"),Pn,gn):Te=="*"?(g.marked="keyword",u(gn)):P&&he=="("?T(vn,gn):he==";"||he==","?u(gn):he=="}"?u():Te=="@"?u(ve,gn):void 0}function Pn(he,Te){if(Te=="!"||Te=="?")return u(Pn);if(he==":")return u(He,ln);if(Te=="=")return u(E);var Ke=g.state.lexical.prev;return T(Ke&&Ke.info=="interface"?vn:pn)}function Kn(he,Te){return Te=="*"?(g.marked="keyword",u($t,m(";"))):Te=="default"?(g.marked="keyword",u(ve,m(";"))):he=="{"?u(Ct(At,"}"),$t,m(";")):T(j)}function At(he,Te){return Te=="as"?(g.marked="keyword",u(m("variable"))):he=="variable"?T(E,At):void 0}function xt(he){return he=="string"?u():he=="("?T(ve):he=="."?T(Ee):T(Rt,ir,$t)}function Rt(he,Te){return he=="{"?nn(Rt,"}"):(he=="variable"&&O(Te),Te=="*"&&(g.marked="keyword"),u(Cn))}function ir(he){if(he==",")return u(Rt,ir)}function Cn(he,Te){if(Te=="as")return g.marked="keyword",u(Rt)}function $t(he,Te){if(Te=="from")return g.marked="keyword",u(ve)}function Jt(he){return he=="]"?u():T(Ct(E,"]"))}function Nn(){return T(o("form"),Kt,m("{"),o("}"),Ct(Xn,"}"),h,h)}function Xn(){return T(Kt,ln)}function ot(he,Te){return he.lastType=="operator"||he.lastType==","||B.test(Te.charAt(0))||/[,.]/.test(Te.charAt(0))}function Nt(he,Te,Ke){return Te.tokenize==Z&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(Te.lastType)||Te.lastType=="quasi"&&/\{\s*$/.test(he.string.slice(0,he.pos-(Ke||0)))}return s.lex=!0,h.lex=!0,{startState:function(he){var Te={tokenize:Z,lastType:"sof",cc:[],lexical:new f((he||0)-te,0,"block",!1),localVars:J.localVars,context:J.localVars&&new ie(null,null,!1),indented:he||0};return J.globalVars&&typeof J.globalVars=="object"&&(Te.globalVars=J.globalVars),Te},token:function(he,Te){if(he.sol()&&(Te.lexical.hasOwnProperty("align")||(Te.lexical.align=!1),Te.indented=he.indentation(),p(he,Te)),Te.tokenize!=C&&he.eatSpace())return null;var Ke=Te.tokenize(he,Te);return Y=="comment"?Ke:(Te.lastType=Y!="operator"||N!="++"&&N!="--"?Y:"incdec",D(Te,Ke,Y,N,he))},indent:function(he,Te){if(he.tokenize==C||he.tokenize==z)return ye.Pass;if(he.tokenize!=Z)return 0;var Ke,U=Te&&Te.charAt(0),oe=he.lexical;if(!/^\s*else\b/.test(Te))for(var ne=he.cc.length-1;ne>=0;--ne){var ge=he.cc[ne];if(ge==h)oe=oe.prev;else if(ge!=Hn&&ge!=s)break}for(;(oe.type=="stat"||oe.type=="form")&&(U=="}"||(Ke=he.cc[he.cc.length-1])&&(Ke==Ee||Ke==pe)&&!/^[,\.=+\-*:?[\(]/.test(Te));)oe=oe.prev;$&&oe.type==")"&&oe.prev.type=="stat"&&(oe=oe.prev);var Ge=oe.type,yt=U==Ge;return Ge=="vardef"?oe.indented+(he.lastType=="operator"||he.lastType==","?oe.info.length+1:0):Ge=="form"&&U=="{"?oe.indented:Ge=="form"?oe.indented+te:Ge=="stat"?oe.indented+(ot(he,Te)?$||te:0):oe.info!="switch"||yt||J.doubleIndentSwitch==0?oe.align?oe.column+(yt?0:1):oe.indented+(yt?0:te):oe.indented+(/^(?:case|default)\b/.test(Te)?te:2*te)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:w?null:"/*",blockCommentEnd:w?null:"*/",blockCommentContinue:w?null:" * ",lineComment:w?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:w?"json":"javascript",jsonldMode:L,jsonMode:w,expressionAllowed:Nt,skipExpression:function(he){D(he,"atom","atom","true",new ye.StringStream("",2,null))}}}),ye.registerHelper("wordChars","javascript",/[\w$]/),ye.defineMIME("text/javascript","javascript"),ye.defineMIME("text/ecmascript","javascript"),ye.defineMIME("application/javascript","javascript"),ye.defineMIME("application/x-javascript","javascript"),ye.defineMIME("application/ecmascript","javascript"),ye.defineMIME("application/json",{name:"javascript",json:!0}),ye.defineMIME("application/x-json",{name:"javascript",json:!0}),ye.defineMIME("application/manifest+json",{name:"javascript",json:!0}),ye.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),ye.defineMIME("text/typescript",{name:"javascript",typescript:!0}),ye.defineMIME("application/typescript",{name:"javascript",typescript:!0})})(b(4631))},9589:(Je,Se,b)=>{(function(ye){"use strict";var we={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},J={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ye.defineMode("xml",function(Y,N){var te,$,L=Y.indentUnit,w={},y=N.htmlMode?we:J;for(var P in y)w[P]=y[P];for(var P in N)w[P]=N[P];function A(u,x){function O(X){return x.tokenize=X,X(u,x)}var W=u.next();return W=="<"?u.eat("!")?u.eat("[")?u.match("CDATA[")?O(G("atom","]]>")):null:u.match("--")?O(G("comment","-->")):u.match("DOCTYPE",!0,!0)?(u.eatWhile(/[\w\._\-]/),O(M(1))):null:u.eat("?")?(u.eatWhile(/[\w\._\-]/),x.tokenize=G("meta","?>"),"meta"):(te=u.eat("/")?"closeTag":"openTag",x.tokenize=k,"tag bracket"):W=="&"?(u.eat("#")?u.eat("x")?u.eatWhile(/[a-fA-F\d]/)&&u.eat(";"):u.eatWhile(/[\d]/)&&u.eat(";"):u.eatWhile(/[\w\.\-:]/)&&u.eat(";"))?"atom":"error":(u.eatWhile(/[^&<]/),null)}function k(u,x){var O=u.next();if(O==">"||O=="/"&&u.eat(">"))return x.tokenize=A,te=O==">"?"endTag":"selfcloseTag","tag bracket";if(O=="=")return te="equals",null;if(O=="<"){x.tokenize=A,x.state=z,x.tagName=x.tagStart=null;var W=x.tokenize(u,x);return W?W+" tag error":"tag error"}return/[\'\"]/.test(O)?(x.tokenize=B(O),x.stringStartCol=u.column(),x.tokenize(u,x)):(u.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function B(u){var x=function(O,W){for(;!O.eol();)if(O.next()==u){W.tokenize=k;break}return"string"};return x.isInAttribute=!0,x}function G(u,x){return function(O,W){for(;!O.eol();){if(O.match(x)){W.tokenize=A;break}O.next()}return u}}function M(u){return function(x,O){for(var W;(W=x.next())!=null;){if(W=="<")return O.tokenize=M(u+1),O.tokenize(x,O);if(W==">"){if(u==1){O.tokenize=A;break}return O.tokenize=M(u-1),O.tokenize(x,O)}}return"meta"}}function H(u){return u&&u.toLowerCase()}function Z(u,x,O){this.prev=u.context,this.tagName=x||"",this.indent=u.indented,this.startOfLine=O,(w.doNotIndent.hasOwnProperty(x)||u.context&&u.context.noIndent)&&(this.noIndent=!0)}function _(u){u.context&&(u.context=u.context.prev)}function C(u,x){for(var O;;){if(!u.context||(O=u.context.tagName,!w.contextGrabbers.hasOwnProperty(H(O))||!w.contextGrabbers[H(O)].hasOwnProperty(H(x))))return;_(u)}}function z(u,x,O){return u=="openTag"?(O.tagStart=x.column(),I):u=="closeTag"?p:z}function I(u,x,O){return u=="word"?(O.tagName=x.current(),$="tag",v):w.allowMissingTagName&&u=="endTag"?($="tag bracket",v(u,x,O)):($="error",I)}function p(u,x,O){if(u=="word"){var W=x.current();return O.context&&O.context.tagName!=W&&w.implicitlyClosed.hasOwnProperty(H(O.context.tagName))&&_(O),O.context&&O.context.tagName==W||w.matchClosing===!1?($="tag",d):($="tag error",f)}return w.allowMissingTagName&&u=="endTag"?($="tag bracket",d(u,x,O)):($="error",f)}function d(u,x,O){return u!="endTag"?($="error",d):(_(O),z)}function f(u,x,O){return $="error",d(u,x,O)}function v(u,x,O){if(u=="word")return $="attribute",D;if(u=="endTag"||u=="selfcloseTag"){var W=O.tagName,X=O.tagStart;return O.tagName=O.tagStart=null,u=="selfcloseTag"||w.autoSelfClosers.hasOwnProperty(H(W))?C(O,W):(C(O,W),O.context=new Z(O,W,X==O.indented)),z}return $="error",v}function D(u,x,O){return u=="equals"?g:(w.allowMissing||($="error"),v(u,x,O))}function g(u,x,O){return u=="string"?T:u=="word"&&w.allowUnquoted?($="string",v):($="error",v(u,x,O))}function T(u,x,O){return u=="string"?T:v(u,x,O)}return A.isInText=!0,{startState:function(u){var x={tokenize:A,state:z,indented:u||0,tagName:null,tagStart:null,context:null};return u!=null&&(x.baseIndent=u),x},token:function(u,x){if(!x.tagName&&u.sol()&&(x.indented=u.indentation()),u.eatSpace())return null;te=null;var O=x.tokenize(u,x);return(O||te)&&O!="comment"&&($=null,x.state=x.state(te||O,u,x),$&&(O=$=="error"?O+" error":$)),O},indent:function(u,x,O){var W=u.context;if(u.tokenize.isInAttribute)return u.tagStart==u.indented?u.stringStartCol+1:u.indented+L;if(W&&W.noIndent)return ye.Pass;if(u.tokenize!=k&&u.tokenize!=A)return O?O.match(/^(\s*)/)[0].length:0;if(u.tagName)return w.multilineTagIndentPastTag!==!1?u.tagStart+u.tagName.length+2:u.tagStart+L*(w.multilineTagIndentFactor||1);if(w.alignCDATA&&/<!\[CDATA\[/.test(x))return 0;var X=x&&/^<(\/)?([\w_:\.-]*)/.exec(x);if(X&&X[1])for(;W;){if(W.tagName==X[2]){W=W.prev;break}if(!w.implicitlyClosed.hasOwnProperty(H(W.tagName)))break;W=W.prev}else if(X)for(;W;){var ie=w.contextGrabbers[H(W.tagName)];if(!ie||!ie.hasOwnProperty(H(X[2])))break;W=W.prev}for(;W&&W.prev&&!W.startOfLine;)W=W.prev;return W?W.indent+L:u.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:w.htmlMode?"html":"xml",helperType:w.htmlMode?"html":"xml",skipAttribute:function(u){u.state==g&&(u.state=v)},xmlCurrentTag:function(u){return u.tagName?{name:u.tagName,close:u.type=="closeTag"}:null},xmlCurrentContext:function(u){for(var x=[],O=u.context;O;O=O.prev)x.push(O.tagName);return x.reverse()}}}),ye.defineMIME("text/xml","xml"),ye.defineMIME("application/xml","xml"),ye.mimeModes.hasOwnProperty("text/html")||ye.defineMIME("text/html",{name:"xml",htmlMode:!0})})(b(4631))},1030:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>Ee,evAdd:()=>s,evAll:()=>le,evClose:()=>K,evCustom:()=>m,evOpen:()=>j,evPfx:()=>ce,evRemove:()=>o,evRemoveBefore:()=>h,evSelect:()=>F,evUpdate:()=>l,evUpload:()=>ve,evUploadEnd:()=>q,evUploadError:()=>ue,evUploadRes:()=>ke,evUploadStart:()=>E});var ye=b(4942),we=b(9050),J=b(9304);let Y={assets:[],noAssets:"",stylePrefix:"am-",upload:0,uploadName:"files",headers:{},params:{},credentials:"include",multiUpload:!0,autoAdd:!0,customFetch:null,uploadFile:null,embedAsBase64:!0,handleAdd:null,beforeUpload:null,showUrlInput:!0,custom:!1,dropzone:!1,openAssetsOnDrop:1,dropzoneContent:""};var N=b(2316),te=b.n(N),$=b(5671),L=b(3144),w=b(9340),y=b(3930),P=b(1120);function A(pe){var Ae=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ne,Oe=(0,P.Z)(pe);if(Ae){var Ie=(0,P.Z)(this).constructor;Ne=Reflect.construct(Oe,arguments,Ie)}else Ne=Oe.apply(this,arguments);return(0,y.Z)(this,Ne)}}var k=function(pe){(0,w.Z)(Ne,pe);var Ae=A(Ne);function Ne(){return(0,$.Z)(this,Ne),Ae.apply(this,arguments)}return(0,L.Z)(Ne,[{key:"defaults",value:function(){return{type:"",src:""}}},{key:"getType",value:function(){return this.get("type")}},{key:"getSrc",value:function(){return this.get("src")}},{key:"getFilename",value:function(){return this.get("src").split("/").pop().split("?").shift()}},{key:"getExtension",value:function(){return this.getFilename().split(".").pop()}}]),Ne}(N.Model);function B(pe,Ae){var Ne=Object.keys(pe);if(Object.getOwnPropertySymbols){var Oe=Object.getOwnPropertySymbols(pe);Ae&&(Oe=Oe.filter(function(Ie){return Object.getOwnPropertyDescriptor(pe,Ie).enumerable})),Ne.push.apply(Ne,Oe)}return Ne}function G(pe){for(var Ae=1;Ae<arguments.length;Ae++){var Ne=arguments[Ae]!=null?arguments[Ae]:{};Ae%2?B(Object(Ne),!0).forEach(function(Oe){(0,ye.Z)(pe,Oe,Ne[Oe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(pe,Object.getOwnPropertyDescriptors(Ne)):B(Object(Ne)).forEach(function(Oe){Object.defineProperty(pe,Oe,Object.getOwnPropertyDescriptor(Ne,Oe))})}return pe}function M(pe){var Ae=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ne,Oe=(0,P.Z)(pe);if(Ae){var Ie=(0,P.Z)(this).constructor;Ne=Reflect.construct(Oe,arguments,Ie)}else Ne=Oe.apply(this,arguments);return(0,y.Z)(this,Ne)}}k.prototype.idAttribute="src",k.getDefaults=function(){return(0,we.result)(this.prototype,"defaults")};var H=function(pe){(0,w.Z)(Ne,pe);var Ae=M(Ne);function Ne(){return(0,$.Z)(this,Ne),Ae.apply(this,arguments)}return(0,L.Z)(Ne,[{key:"defaults",value:function(){return G(G({},k.getDefaults()),{},{type:"image",unitDim:"px",height:0,width:0})}}]),Ne}(k),Z=b(168);let _=te().View.extend({initialize:function(){var pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.options=pe,this.collection=pe.collection;var Ae=pe.config||{};this.config=Ae,this.pfx=Ae.stylePrefix||"",this.ppfx=Ae.pStylePrefix||"",this.em=Ae.em,this.className=this.pfx+"asset",this.listenTo(this.model,"destroy remove",this.remove),this.model.view=this;var Ne=this.init&&this.init.bind(this);Ne&&Ne(pe)},__getBhv:function(){var pe=this.em,Ae=pe&&pe.get("AssetManager");return Ae&&Ae.__getBehaviour()||{}},template:function(){var pe=this.pfx;return` + <div class="`.concat(pe,`preview-cont"> + `).concat(this.getPreview(),` + </div> + <div class="`).concat(pe,`meta"> + `).concat(this.getInfo(),` + </div> + <div class="`).concat(pe,`close" data-toggle="asset-remove"> + ⨯ + </div> + `)},updateTarget:function(pe){pe&&pe.set&&(pe.set("attributes",(0,we.clone)(pe.get("attributes"))),pe.set("src",this.model.get("src")))},getPreview:function(){return""},getInfo:function(){return""},render:function(){var pe=this.el;return pe.innerHTML=this.template(this,this.model),pe.className=this.className,this}});var C,z,I=b(1629);let p=_.extend({events:{"click [data-toggle=asset-remove]":"onRemove",click:"onClick",dblclick:"onDblClick"},getPreview:function(){var pe=this.pfx,Ae=this.ppfx,Ne=this.model.get("src");return(0,I.Z)(C||(C=(0,Z.Z)([` + <div class="`,`preview" style="background-image: url('`,`');"></div> + <div class="`,"preview-bg ",`checker-bg"></div> + `])),pe,Ne,pe,Ae)},getInfo:function(){var pe=this.pfx,Ae=this.model,Ne=Ae.get("name"),Oe=Ae.get("width"),Ie=Ae.get("height"),Le=Ae.get("unitDim"),$e=Oe&&Ie?"".concat(Oe,"x").concat(Ie).concat(Le):"";return Ne=Ne||Ae.getFilename(),(0,I.Z)(z||(z=(0,Z.Z)([` + <div class="`,'name">',`</div> + <div class="`,'dimensions">',`</div> + `])),pe,Ne,pe,$e)},init:function(pe){var Ae=this.pfx;this.className+=" ".concat(Ae,"asset-image")},onClick:function(){var pe=this.model,Ae=this.pfx,Ne=this.__getBhv().select,Oe=this.config.onClick,Ie=this.collection;Ie.trigger("deselectAll"),this.$el.addClass(Ae+"highlight"),(0,we.isFunction)(Ne)?Ne(pe,!1):(0,we.isFunction)(Oe)?Oe(pe):this.updateTarget(Ie.target)},onDblClick:function(){var pe=this.em,Ae=this.model,Ne=this.__getBhv().select,Oe=this.config.onDblClick,Ie=this.collection,Le=Ie.target,$e=Ie.onSelect;(0,we.isFunction)(Ne)?Ne(Ae,!0):(0,we.isFunction)(Oe)?Oe(Ae):(this.updateTarget(Le),pe&&pe.get("Modal").close()),(0,we.isFunction)($e)&&$e(Ae)},onRemove:function(pe){pe.stopImmediatePropagation(),this.model.collection.remove(this.model)}});var d=b(793);let f=te().Collection.extend(d.Z).extend({types:[{id:"image",model:H,view:p,isType:function(pe){return typeof pe=="string"?{type:"image",src:pe}:pe}}]});var v=b(4925),D=["pfx","ppfx","em"];let g=te().View.extend({events:{submit:"handleSubmit"},template:function(pe){var Ae=pe.pfx,Ne=pe.ppfx,Oe=pe.em,Ie=((0,v.Z)(pe,D),"");return this.config.showUrlInput&&(Ie=` + <form class="`.concat(Ae,`add-asset"> + <div class="`).concat(Ne,"field ").concat(Ae,`add-field"> + <input placeholder="`).concat(Oe&&Oe.t("assetManager.inputPlh"),`"/> + </div> + <button class="`).concat(Ne,'btn-prim">').concat(Oe&&Oe.t("assetManager.addButton"),`</button> + <div style="clear:both"></div> + </form> + `)),` + <div class="`.concat(Ae,`assets-cont"> + <div class="`).concat(Ae,`assets-header"> + `).concat(Ie,` + </div> + <div class="`).concat(Ae,`assets" data-el="assets"></div> + <div style="clear:both"></div> + </div> + `)},initialize:function(pe){this.options=pe,this.config=pe.config,this.pfx=this.config.stylePrefix||"",this.ppfx=this.config.pStylePrefix||"",this.em=this.config.em;var Ae=this.collection;this.listenTo(Ae,"reset",this.renderAssets),this.listenTo(Ae,"add",this.addToAsset),this.listenTo(Ae,"remove",this.removedAsset),this.listenTo(Ae,"deselectAll",this.deselectAll)},handleSubmit:function(pe){pe.preventDefault();var Ae=this.getAddInput(),Ne=Ae&&Ae.value.trim(),Oe=this.config.handleAdd;Ne&&(Ae.value="",this.getAssetsEl().scrollTop=0,Oe?Oe.bind(this)(Ne):this.options.globalCollection.add(Ne,{at:0}))},getAssetsEl:function(){return this.el.querySelector(".".concat(this.pfx,"assets"))},getAddInput:function(){return this.inputUrl&&this.inputUrl.value||(this.inputUrl=this.el.querySelector(".".concat(this.pfx,"add-asset input"))),this.inputUrl},removedAsset:function(pe){this.collection.length||this.toggleNoAssets()},addToAsset:function(pe){this.collection.length==1&&this.toggleNoAssets(1),this.addAsset(pe)},addAsset:function(pe){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,Ne=Ae,Oe=this.collection,Ie=this.config,Le=new pe.typeView({model:pe,collection:Oe,config:Ie}).render().el;if(Ne)Ne.appendChild(Le);else{var $e=this.getAssetsEl();$e&&$e.insertBefore(Le,$e.firstChild)}return Le},toggleNoAssets:function(pe){var Ae=this.$el.find(".".concat(this.pfx,"assets"));if(pe)Ae.empty();else{var Ne=this.config.noAssets;Ne&&Ae.append(Ne)}},deselectAll:function(){var pe=this.pfx;this.$el.find(".".concat(pe,"highlight")).removeClass("".concat(pe,"highlight"))},renderAssets:function(){var pe=this,Ae=document.createDocumentFragment(),Ne=this.$el.find(".".concat(this.pfx,"assets"));Ne.empty(),this.toggleNoAssets(this.collection.length),this.collection.each(function(Oe){return pe.addAsset(Oe,Ae)}),Ne.append(Ae)},render:function(){var pe=this.options.fu.render().el;return this.$el.empty(),this.$el.append(pe).append(this.template(this)),this.el.className="".concat(this.ppfx,"asset-manager"),this.renderAssets(),this}});var T,u=b(9661);function x(pe,Ae){var Ne=typeof Symbol<"u"&&pe[Symbol.iterator]||pe["@@iterator"];if(!Ne){if(Array.isArray(pe)||(Ne=function(ht,Vt){if(!!ht){if(typeof ht=="string")return O(ht,Vt);var rt=Object.prototype.toString.call(ht).slice(8,-1);if(rt==="Object"&&ht.constructor&&(rt=ht.constructor.name),rt==="Map"||rt==="Set")return Array.from(ht);if(rt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(rt))return O(ht,Vt)}}(pe))||Ae&&pe&&typeof pe.length=="number"){Ne&&(pe=Ne);var Oe=0,Ie=function(){};return{s:Ie,n:function(){return Oe>=pe.length?{done:!0}:{done:!1,value:pe[Oe++]}},e:function(ht){throw ht},f:Ie}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Le,$e=!0,tt=!1;return{s:function(){Ne=Ne.call(pe)},n:function(){var ht=Ne.next();return $e=ht.done,ht},e:function(ht){tt=!0,Le=ht},f:function(){try{$e||Ne.return==null||Ne.return()}finally{if(tt)throw Le}}}}function O(pe,Ae){(Ae==null||Ae>pe.length)&&(Ae=pe.length);for(var Ne=0,Oe=new Array(Ae);Ne<Ae;Ne++)Oe[Ne]=pe[Ne];return Oe}let W=te().View.extend({template:function(pe){var Ae=pe.pfx,Ne=pe.title,Oe=pe.uploadId,Ie=pe.disabled,Le=pe.multiUpload;return(0,I.Z)(T||(T=(0,Z.Z)([` + <form> + <div id="`,'title">',`</div> + <input + type="file" + id="`,`" + name="file" + accept="*/*" + `,` + `,` + /> + <div style="clear:both;"></div> + </form> + `])),Ae,Ne,Oe,Ie?"disabled":"",Le?"multiple":"")},events:{},initialize:function(){var pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.options=pe;var Ae=pe.config||{};this.module=pe.module,this.config=Ae,this.em=this.config.em,this.pfx=Ae.stylePrefix||"",this.ppfx=Ae.pStylePrefix||"",this.target=this.options.globalCollection||{},this.uploadId=this.pfx+"uploadFile",this.disabled=Ae.disableUpload!==void 0?Ae.disableUpload:!Ae.upload&&!Ae.embedAsBase64,this.multiUpload=Ae.multiUpload===void 0||Ae.multiUpload,this.events["change #"+this.uploadId]="uploadFile";var Ne=Ae.uploadFile;Ne?this.uploadFile=Ne.bind(this):!Ae.upload&&Ae.embedAsBase64&&(this.uploadFile=this.constructor.embedAsBase64),this.delegateEvents()},onUploadStart:function(){var pe=this.module;pe&&pe.__propEv("asset:upload:start")},onUploadEnd:function(pe){var Ae=this.$el,Ne=this.module;Ne&&Ne.__propEv("asset:upload:end",pe);var Oe=Ae.find("input");Oe&&Oe.val("")},onUploadError:function(pe){var Ae=this.module;console.error(pe),this.onUploadEnd(pe),Ae&&Ae.__propEv("asset:upload:error",pe)},onUploadResponse:function(pe,Ae){var Ne,Oe=this.module,Ie=this.config,Le=this.target;try{Ne=typeof pe=="string"?JSON.parse(pe):pe}catch{Ne=pe}Oe&&Oe.__propEv("asset:upload:response",Ne),Ie.autoAdd&&Le&&Le.add(Ne.data,{at:0}),this.onUploadEnd(pe),Ae&&Ae(Ne)},uploadFile:function(pe,Ae){var Ne=this,Oe=pe.dataTransfer?pe.dataTransfer.files:pe.target.files,Ie=this.config,Le=Ie.beforeUpload;if((Le&&Le(Oe))!==!1){var $e=new FormData,tt=Ie.params,ht=Ie.customFetch;for(var Vt in tt)$e.append(Vt,tt[Vt]);if(this.multiUpload)for(var rt=0;rt<Oe.length;rt++)$e.append("".concat(Ie.uploadName,"[]"),Oe[rt]);else Oe.length&&$e.append(Ie.uploadName,Oe[0]);this.target;var Ht=Ie.upload,Zt=Ie.headers,Ct="X-Requested-With";if(Zt[Ct]===void 0&&(Zt[Ct]="XMLHttpRequest"),Ht){this.onUploadStart();var nn={method:"post",credentials:Ie.credentials||"include",headers:Zt,body:$e};return(ht?ht(Ht,nn):(0,u.Z)(Ht,nn).then(function(fe){return(fe.status/200|0)==1?fe.text():fe.text().then(function(se){return Promise.reject(se)})})).then(function(fe){return Ne.onUploadResponse(fe,Ae)}).catch(function(fe){return Ne.onUploadError(fe)})}}},initDrop:function(){var pe=this;!this.uploadForm&&(this.uploadForm=this.$el.find("form").get(0),"draggable"in this.uploadForm)&&(this.uploadFile,this.uploadForm.ondragover=function(){return this.className=pe.pfx+"hover",!1},this.uploadForm.ondragleave=function(){return this.className="",!1},this.uploadForm.ondrop=function(Ae){this.className="",Ae.preventDefault(),pe.uploadFile(Ae)})},initDropzone:function(pe){var Ae=this,Ne=0,Oe=this.config,Ie=pe.model,Le=pe.el,$e=Ie.get("Editor"),tt=(Ie.get("Config").el,Ie.get("Canvas").getBody()),ht=this.ppfx,Vt="".concat(ht,"dropzone-active"),rt="".concat(ht,"dropzone"),Ht=function(){Le.className=Le.className.replace(Vt,"").trim(),Ne=0},Zt=function(){return Ne||(Le.className+=" ".concat(Vt),Ne=1),!1},Ct=function(){return Ht(),!1},nn=function(fe){if(Ht(),fe.preventDefault(),fe.stopPropagation(),Ae.uploadFile(fe),Oe.openAssetsOnDrop&&$e){var se=$e.getSelected();$e.runCommand("open-assets",{target:se,onSelect:function(){$e.Modal.close(),$e.AssetManager.setTarget(null)}})}return!1};pe.$el.append('<div class="'.concat(rt,'">').concat(Oe.dropzoneContent,"</div>")),Ht(),"draggable"in Le&&[Le,tt].forEach(function(fe){fe.ondragover=Zt,fe.ondragleave=Ct,fe.ondrop=nn})},render:function(){var pe=this.$el,Ae=this.pfx,Ne=this.em;return pe.html(this.template({title:Ne&&Ne.t("assetManager.uploadTitle"),uploadId:this.uploadId,disabled:this.disabled,multiUpload:this.multiUpload,pfx:Ae})),this.initDrop(),pe.attr("class",Ae+"file-uploader"),this}},{embedAsBase64:function(pe,Ae){var Ne=this,Oe=pe.dataTransfer?pe.dataTransfer.files:pe.target.files,Ie={data:[]};if(FileReader){var Le,$e=[],tt=/^(.+)\/(.+)$/,ht=x(Oe);try{var Vt=function(){var rt=Le.value,Ht=new Promise(function(Zt,Ct){var nn=new FileReader;nn.addEventListener("load",function(fe){var se,be=rt.name,_e=tt.exec(rt.type);if((se=_e?_e[1]:rt.type)==="image"){var Fe={src:nn.result,name:be,type:se,height:0,width:0},He=new Image;He.addEventListener("error",function(at){Ct(at)}),He.addEventListener("load",function(){Fe.height=He.height,Fe.width=He.width,Zt(Fe)}),He.src=Fe.src}else Zt(se?{src:nn.result,name:be,type:se}:nn.result)}),nn.addEventListener("error",function(fe){Ct(fe)}),nn.addEventListener("abort",function(fe){Ct("Aborted")}),nn.readAsDataURL(rt)});$e.push(Ht)};for(ht.s();!(Le=ht.n()).done;)Vt()}catch(rt){ht.e(rt)}finally{ht.f()}Promise.all($e).then(function(rt){Ie.data=rt,Ne.onUploadResponse(Ie,Ae)},function(rt){Ne.onUploadError(rt)})}else this.onUploadError(new Error("Unsupported platform, FileReader is not defined"))}});function X(pe,Ae){var Ne=Object.keys(pe);if(Object.getOwnPropertySymbols){var Oe=Object.getOwnPropertySymbols(pe);Ae&&(Oe=Oe.filter(function(Ie){return Object.getOwnPropertyDescriptor(pe,Ie).enumerable})),Ne.push.apply(Ne,Oe)}return Ne}function ie(pe){for(var Ae=1;Ae<arguments.length;Ae++){var Ne=arguments[Ae]!=null?arguments[Ae]:{};Ae%2?X(Object(Ne),!0).forEach(function(Oe){(0,ye.Z)(pe,Oe,Ne[Oe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(pe,Object.getOwnPropertyDescriptors(Ne)):X(Object(Ne)).forEach(function(Oe){Object.defineProperty(pe,Oe,Object.getOwnPropertyDescriptor(Ne,Oe))})}return pe}var le="asset",ce="".concat(le,":"),F="".concat(ce,"select"),l="".concat(ce,"update"),s="".concat(ce,"add"),o="".concat(ce,"remove"),h="".concat(o,":before"),m="".concat(ce,"custom"),j="".concat(ce,"open"),K="".concat(ce,"close"),ve="".concat(ce,"upload"),E="".concat(ve,":start"),q="".concat(ve,":end"),ue="".concat(ve,":error"),ke="".concat(ve,":response");let Ee=function(){var pe,Ae,Ne,Oe,Ie={},Le="open-assets";return ie(ie({},J.Z),{},{name:"AssetManager",storageKey:"assets",Asset:f,Assets:f,events:{all:le,select:F,update:l,add:s,remove:o,removeBefore:h,custom:m,open:j,close:K,uploadStart:E,uploadEnd:q,uploadError:ue,uploadResponse:ke},init:function(){var $e=this,tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ht=(Ie=ie(ie({},Y),tt)).pStylePrefix,Vt=Ie,rt=Vt.em;return this.config=Ie,this.em=rt,ht&&(Ie.stylePrefix=ht+Ie.stylePrefix),pe=new f([]),Ae=new f([]),this.all=pe,this.__initListen(),pe.on("add",function(Ht){return $e.getAllVisible().add(Ht)}),pe.on("remove",function(Ht){return $e.getAllVisible().remove(Ht)}),this},__propEv:function($e){for(var tt,ht,Vt=arguments.length,rt=new Array(Vt>1?Vt-1:0),Ht=1;Ht<Vt;Ht++)rt[Ht-1]=arguments[Ht];(tt=this.em).trigger.apply(tt,[$e].concat(rt)),(ht=this.getAll()).trigger.apply(ht,[$e].concat(rt))},__onAllEvent:(0,we.debounce)(function(){this.__trgCustom()}),__trgCustom:function(){(this.__getBehaviour().container||this.getConfig("custom").open)&&this.em.trigger(this.events.custom,this.__customData())},__customData:function(){var $e=this,tt=this.__getBehaviour();return{am:this,open:this.isOpen(),assets:this.getAll().models,types:tt.types||[],container:tt.container,close:function(){return $e.close()},remove:function(){return $e.remove.apply($e,arguments)},select:function(ht,Vt){var rt=$e.add(ht);(0,we.isFunction)(tt.select)&&tt.select(rt,Vt)},options:tt.options||{}}},open:function(){var $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},tt=this.em.get("Commands");tt.run(Le,ie({types:["image"],select:function(){}},$e))},close:function(){this.em.get("Commands").stop(Le)},isOpen:function(){var $e=this.em.get("Commands");return!(!$e||!$e.isActive(Le))},add:function($e){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return tt.at===void 0&&(tt.at=0),pe.add($e,tt)},get:function($e){return pe.where({src:$e})[0]||null},getAll:function(){return pe},getAllVisible:function(){return Ae},remove:function($e,tt){return this.__remove($e,tt)},store:function($e){var tt={},ht=JSON.stringify(this.getAll().toJSON());return tt[this.storageKey]=ht,!$e&&Ie.stm&&Ie.stm.store(tt),tt},load:function(){var $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},tt=this.storageKey,ht=$e[tt]||[];if(typeof ht=="string")try{ht=JSON.parse($e[tt])}catch{}return ht&&ht.length&&this.getAll().reset(ht),ht},getContainer:function(){return this.__getBehaviour().container||Ne&&Ne.el},getAssetsEl:function(){return Ne.el.querySelector("[data-el=assets]")},render:function($e){if(!this.getConfig("custom")){var tt=$e||this.getAll().models;if(!Ne){var ht=this.__viewParams();ht.fu=this.FileUploader();var Vt=Ne&&Ne.el;(Ne=new g(ie({el:Vt},ht))).render()}return Ae.reset(tt),this.getContainer()}},__viewParams:function(){return{collection:Ae,globalCollection:pe,config:Ie,module:this}},addType:function($e,tt){this.getAll().addType($e,tt)},getType:function($e){return this.getAll().getType($e)},getTypes:function(){return this.getAll().getTypes()},AssetsView:function(){return Ne},FileUploader:function(){return Oe||(Oe=new W(this.__viewParams())),Oe},onLoad:function(){var $e=this;this.getAll().reset(Ie.assets);var tt=this.em,ht=this.events;tt.on("run:".concat(Le),function(){return $e.__propEv(ht.open)}),tt.on("stop:".concat(Le),function(){return $e.__propEv(ht.close)})},postRender:function($e){Ie.dropzone&&Oe&&Oe.initDropzone($e)},setTarget:function($e){Ae.target=$e},onSelect:function($e){Ae.onSelect=$e},onClick:function($e){Ie.onClick=$e},onDblClick:function($e){Ie.onDblClick=$e},__behaviour:function(){var $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this._bhv=ie(ie({},this._bhv||{}),$e)},__getBehaviour:function(){return this._bhv||{}},destroy:function(){pe.stopListening(),Ae.stopListening(),pe.reset(),Ae.reset(),Oe&&Oe.remove(),Ne&&Ne.remove(),[pe,Ae,Ne,Oe].forEach(function($e){return null}),this._bhv={},this.all={},Ie={}}})}},6407:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>h,evAdd:()=>X,evAll:()=>O,evCustom:()=>o,evDrag:()=>F,evDragStart:()=>l,evDragStop:()=>s,evPfx:()=>W,evRemove:()=>le,evRemoveBefore:()=>ce,evUpdate:()=>ie});var ye=b(4942),we=b(9050),J=b(9304);let Y={appendTo:"",appendOnClick:!1,blocks:[],custom:!1};var N=b(5671),te=b(3144),$=b(9340),L=b(3930),w=b(1120),y=b(2316),P=b.n(y);function A(m){var j=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var K,ve=(0,w.Z)(m);if(j){var E=(0,w.Z)(this).constructor;K=Reflect.construct(ve,arguments,E)}else K=ve.apply(this,arguments);return(0,L.Z)(this,K)}}var k=function(m){(0,$.Z)(K,m);var j=A(K);function K(){return(0,N.Z)(this,K),j.apply(this,arguments)}return(0,te.Z)(K,[{key:"defaults",value:function(){return{label:"",content:"",media:"",category:"",activate:!1,select:null,resetId:!1,disable:!1,onClick:null,attributes:{}}}},{key:"getId",value:function(){return this.id}},{key:"getLabel",value:function(){return this.get("label")}},{key:"getMedia",value:function(){return this.get("media")}},{key:"getContent",value:function(){return this.get("content")}},{key:"getCategoryLabel",value:function(){var ve=this.get("category");return(0,we.isFunction)(ve.get)?ve.get("label"):ve.label?ve.label:ve}}]),K}(y.Model);function B(m){var j=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var K,ve=(0,w.Z)(m);if(j){var E=(0,w.Z)(this).constructor;K=Reflect.construct(ve,arguments,E)}else K=ve.apply(this,arguments);return(0,L.Z)(this,K)}}var G=function(m){(0,$.Z)(K,m);var j=B(K);function K(){return(0,N.Z)(this,K),j.apply(this,arguments)}return(0,te.Z)(K)}(y.Collection);function M(m){var j=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var K,ve=(0,w.Z)(m);if(j){var E=(0,w.Z)(this).constructor;K=Reflect.construct(ve,arguments,E)}else K=ve.apply(this,arguments);return(0,L.Z)(this,K)}}G.prototype.model=k;var H=function(m){(0,$.Z)(K,m);var j=M(K);function K(){return(0,N.Z)(this,K),j.apply(this,arguments)}return(0,te.Z)(K,[{key:"defaults",value:function(){return{id:"",label:"",open:!0,attributes:{}}}}]),K}(y.Model);function Z(m){var j=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var K,ve=(0,w.Z)(m);if(j){var E=(0,w.Z)(this).constructor;K=Reflect.construct(ve,arguments,E)}else K=ve.apply(this,arguments);return(0,L.Z)(this,K)}}var _=function(m){(0,$.Z)(K,m);var j=Z(K);function K(){return(0,N.Z)(this,K),j.apply(this,arguments)}return(0,te.Z)(K)}(y.Collection);_.prototype.model=H;var C=b(6183);let z=P().View.extend({events:{click:"handleClick",mousedown:"startDrag",dragstart:"handleDragStart",drag:"handleDrag",dragend:"handleDragEnd"},initialize:function(m){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K=this.model;this.em=j.em,this.config=j,this.endDrag=this.endDrag.bind(this),this.ppfx=j.pStylePrefix||"",this.listenTo(K,"destroy remove",this.remove),this.listenTo(K,"change",this.render)},__getModule:function(){return this.em.get("BlockManager")},handleClick:function(m){var j=this.config,K=this.model,ve=this.em,E=K.get("onClick")||j.appendOnClick;if(ve.trigger("block:click",K,m),E){if((0,we.isFunction)(E))return E(K,ve.getEditor(),{event:m});var q,ue=j.getSorter(),ke=K.get("content"),Ee=ve.getSelected();if(ue.setDropContent(ke),Ee)if(ue.validTarget(Ee.getEl(),ke).valid)q=Ee;else{var pe=Ee.parent();ue.validTarget(pe.getEl(),ke).valid&&(q=pe)}if(!q){var Ae=ve.getWrapper();ue.validTarget(Ae.getEl(),ke).valid&&(q=Ae)}var Ne=q&&q.append(ke)[0];Ne&&ve.setSelected(Ne,{scroll:1})}},startDrag:function(m){var j=this.config,K=this.em,ve=this.model.get("disable");if(m.button===0&&j.getSorter&&!this.el.draggable&&!ve){K.refreshCanvas();var E=j.getSorter();E.setDragHelper(this.el,m),E.setDropContent(this.model.get("content")),E.startSort(this.el),(0,C.on)(document,"mouseup",this.endDrag)}},handleDragStart:function(m){this.__getModule().__startDrag(this.model,m)},handleDrag:function(m){this.__getModule().__drag(m)},handleDragEnd:function(){this.__getModule().__endDrag()},endDrag:function(m){(0,C.off)(document,"mouseup",this.endDrag);var j=this.config.getSorter();j.moved=0,j.endMove()},render:function(){var m=this.em,j=this.el,K=this.$el,ve=this.ppfx,E=this.model,q=E.get("disable"),ue=E.get("attributes")||{},ke=ue.class||"",Ee="".concat(ve,"block"),pe=m&&m.t("blockManager.labels.".concat(E.id))||E.get("label"),Ae=E.get("render"),Ne=E.get("media"),Oe=q?"".concat(Ee,"--disable"):"".concat(ve,"four-color-h");K.attr(ue),j.className="".concat(ke," ").concat(Ee," ").concat(ve,"one-bg ").concat(Oe).trim(),j.innerHTML=` + `.concat(Ne?'<div class="'.concat(Ee,'__media">').concat(Ne,"</div>"):"",` + <div class="`).concat(Ee,'-label">').concat(pe,`</div> + `),j.title=ue.title||j.textContent.trim(),j.setAttribute("draggable",!(!(0,C.hasDnd)(m)||q));var Ie=Ae&&Ae({el:j,model:E,className:Ee,prefix:ve});return Ie&&(j.innerHTML=Ie),this}});var I,p=b(168),d=b(1629);function f(m){var j=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var K,ve=(0,w.Z)(m);if(j){var E=(0,w.Z)(this).constructor;K=Reflect.construct(ve,arguments,E)}else K=ve.apply(this,arguments);return(0,L.Z)(this,K)}}var v=function(m){(0,$.Z)(K,m);var j=f(K);function K(){return(0,N.Z)(this,K),j.apply(this,arguments)}return(0,te.Z)(K,[{key:"template",value:function(ve){var E=ve.pfx,q=ve.label;return(0,d.Z)(I||(I=(0,p.Z)([` + <div class="`,`title"> + <i class="`,`caret-icon"></i> + `,` + </div> + <div class="`,`blocks-c"></div> + `])),E,E,q,E)}},{key:"attributes",value:function(){return this.model.get("attributes")}},{key:"initialize",value:function(){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.config=ve;var E=ve.pStylePrefix||"";this.em=ve.em,this.pfx=E,this.caretR="fa fa-caret-right",this.caretD="fa fa-caret-down",this.iconClass="".concat(E,"caret-icon"),this.activeClass="".concat(E,"open"),this.className="".concat(E,"block-category"),this.events={},this.events["click .".concat(E,"title")]="toggle",this.listenTo(this.model,"change:open",this.updateVisibility),this.delegateEvents(),this.model.view=this}},{key:"updateVisibility",value:function(){this.model.get("open")?this.open():this.close()}},{key:"open",value:function(){this.$el.addClass(this.activeClass),this.getIconEl().className="".concat(this.iconClass," ").concat(this.caretD),this.getBlocksEl().style.display=""}},{key:"close",value:function(){this.$el.removeClass(this.activeClass),this.getIconEl().className="".concat(this.iconClass," ").concat(this.caretR),this.getBlocksEl().style.display="none"}},{key:"toggle",value:function(){var ve=this.model;ve.set("open",!ve.get("open"))}},{key:"getIconEl",value:function(){return this.iconEl||(this.iconEl=this.el.querySelector("."+this.iconClass)),this.iconEl}},{key:"getBlocksEl",value:function(){return this.blocksEl||(this.blocksEl=this.el.querySelector("."+this.pfx+"blocks-c")),this.blocksEl}},{key:"append",value:function(ve){this.getBlocksEl().appendChild(ve)}},{key:"render",value:function(){var ve=this.em,E=this.el,q=this.$el,ue=this.model,ke=this.pfx,Ee=ve.t("blockManager.categories.".concat(ue.id))||ue.get("label");return E.innerHTML=this.template({pfx:ke,label:Ee}),q.addClass(this.className),q.css({order:ue.get("order")}),this.updateVisibility(),this}}]),K}(y.View);function D(m,j){var K=Object.keys(m);if(Object.getOwnPropertySymbols){var ve=Object.getOwnPropertySymbols(m);j&&(ve=ve.filter(function(E){return Object.getOwnPropertyDescriptor(m,E).enumerable})),K.push.apply(K,ve)}return K}function g(m){for(var j=1;j<arguments.length;j++){var K=arguments[j]!=null?arguments[j]:{};j%2?D(Object(K),!0).forEach(function(ve){(0,ye.Z)(m,ve,K[ve])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(K)):D(Object(K)).forEach(function(ve){Object.defineProperty(m,ve,Object.getOwnPropertyDescriptor(K,ve))})}return m}let T=P().View.extend({initialize:function(m,j){(0,we.bindAll)(this,"getSorter","onDrag","onDrop","onMove"),this.config=j||{},this.categories=m.categories||"",this.renderedCategories=[];var K=this.config.pStylePrefix||"";this.ppfx=K,this.noCatClass="".concat(K,"blocks-no-cat"),this.blockContClass="".concat(K,"blocks-c"),this.catsClass="".concat(K,"block-categories");var ve=this.collection;this.listenTo(ve,"add",this.addTo),this.listenTo(ve,"reset",this.render),this.em=this.config.em,this.tac="test-tac",this.grabbingCls=this.ppfx+"grabbing",this.em&&(this.config.getSorter=this.getSorter,this.canvas=this.em.get("Canvas"))},updateConfig:function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.config=g(g({},this.config),m)},getSorter:function(){if(this.em){if(!this.sorter){var m=this.em.get("Utils"),j=this.canvas;this.sorter=new m.Sorter({container:j.getBody(),placer:j.getPlacerEl(),containerSel:"*",itemSel:"*",pfx:this.ppfx,onStart:this.onDrag,onEndMove:this.onDrop,onMove:this.onMove,document:j.getFrameEl().contentDocument,direction:"a",wmargin:1,nested:1,em:this.em,canvasRelative:1})}return this.sorter}},onDrag:function(m){this.em.stopDefault(),this.em.trigger("block:drag:start",m)},onMove:function(m){this.em.trigger("block:drag:move",m)},onDrop:function(m){var j=this.em;if(j.runDefault(),m&&m.get){var K="activeOnRender";m.get(K)&&(m.trigger("active"),m.unset(K)),j.trigger("block:drag:stop",m)}},addTo:function(m){this.add(m)},add:function(m,j){var K=this.config,ve=j||null,E=new z({model:m,attributes:m.get("attributes")},K).render().el,q=m.get("category");if(q&&this.categories&&!K.ignoreCategories){(0,we.isString)(q)?q={id:q,label:q}:(0,we.isObject)(q)&&!q.id&&(q.id=q.label);var ue=this.categories.add(q),ke=ue.get("id"),Ee=this.renderedCategories[ke],pe=this.getCategoriesEl();return m.set("category",ue,{silent:!0}),!Ee&&pe&&(Ee=new v({model:ue},this.config).render(),this.renderedCategories[ke]=Ee,pe.appendChild(Ee.el)),void(Ee&&Ee.append(E))}ve?ve.appendChild(E):this.append(E)},getCategoriesEl:function(){return this.catsEl||(this.catsEl=this.el.querySelector(".".concat(this.catsClass))),this.catsEl},getBlocksEl:function(){return this.blocksEl||(this.blocksEl=this.el.querySelector(".".concat(this.noCatClass," .").concat(this.blockContClass))),this.blocksEl},append:function(m){var j=this.getBlocksEl();j&&j.appendChild(m)},render:function(){var m=this,j=this.ppfx,K=document.createDocumentFragment();this.catsEl=null,this.blocksEl=null,this.renderedCategories=[],this.el.innerHTML=` + <div class="`.concat(this.catsClass,`"></div> + <div class="`).concat(this.noCatClass,`"> + <div class="`).concat(this.blockContClass,`"></div> + </div> + `),this.collection.each(function(E){return m.add(E,K)}),this.append(K);var ve="".concat(this.blockContClass,"s ").concat(j,"one-bg ").concat(j,"two-color");return this.$el.addClass(ve),this.rendered=!0,this}});function u(m,j){var K=Object.keys(m);if(Object.getOwnPropertySymbols){var ve=Object.getOwnPropertySymbols(m);j&&(ve=ve.filter(function(E){return Object.getOwnPropertyDescriptor(m,E).enumerable})),K.push.apply(K,ve)}return K}function x(m){for(var j=1;j<arguments.length;j++){var K=arguments[j]!=null?arguments[j]:{};j%2?u(Object(K),!0).forEach(function(ve){(0,ye.Z)(m,ve,K[ve])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(K)):u(Object(K)).forEach(function(ve){Object.defineProperty(m,ve,Object.getOwnPropertyDescriptor(K,ve))})}return m}var O="block",W="".concat(O,":"),X="".concat(W,"add"),ie="".concat(W,"update"),le="".concat(W,"remove"),ce="".concat(le,":before"),F="".concat(W,"drag"),l="".concat(F,":start"),s="".concat(F,":stop"),o="".concat(W,"custom");let h=function(){var m,j,K,ve={},E=[];return x(x({},J.Z),{},{name:"BlockManager",Block:k,Blocks:G,Category:H,Categories:_,events:{all:O,update:ie,add:X,remove:le,removeBefore:ce,drag:F,dragStart:l,dragEnd:s,custom:o},init:function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ue=ve=x(x({},Y),q),ke=ue.em;return this.em=ke,m=new G(ve.blocks),j=new G(m.models),E=new _,this.all=m,this.__initListen(),m.on("add",function(Ee){return j.add(Ee)}),m.on("remove",function(Ee){return j.remove(Ee)}),m.on("reset",function(Ee){return j.reset(Ee.models)}),this},__trgCustom:function(){this.em.trigger(this.events.custom,this.__customData())},__customData:function(){var q=this,ue=this.__getBehaviour();return{bm:this,blocks:this.getAll().models,container:ue.container,dragStart:function(ke,Ee){return q.startDrag(ke,Ee)},drag:function(ke){return q.__drag(ke)},dragStop:function(ke){return q.endDrag(ke)}}},__startDrag:function(q,ue){var ke=this.em,Ee=this.events,pe=q.getContent?q.getContent():q;this._dragBlock=q,ke.set({dragResult:null,dragContent:pe}),[ke,m].map(function(Ae){return Ae.trigger(Ee.dragStart,q,ue)})},__drag:function(q){var ue=this.em,ke=this.events,Ee=this._dragBlock;[ue,m].map(function(pe){return pe.trigger(ke.drag,Ee,q)})},__endDrag:function(){var q=this.em,ue=this.events,ke=this._dragBlock,Ee=q.get("dragResult");if(this._dragBlock=null,Ee){var pe="activeOnRender",Ae=Ee.get&&Ee.get(pe),Ne=ke.get("activate")||Ae,Oe=ke.get("select"),Ie=(0,we.isArray)(Ee)?Ee[0]:Ee;(Oe||Ne&&Oe!==!1)&&q.setSelected(Ie),Ne&&(Ie.trigger("active"),Ae&&Ie.unset(pe)),ke.get("resetId")&&Ie.onAll(function(Le){return Le.resetId()})}q.set({dragResult:null,dragContent:null}),[q,m].map(function(Le){return Le.trigger(ue.dragEnd,Ee,ke)})},__getFrameViews:function(){return this.em.get("Canvas").getFrames().map(function(q){return q.view})},__behaviour:function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this._bhv=x(x({},this._bhv||{}),q)},__getBehaviour:function(){return this._bhv||{}},startDrag:function(q,ue){this.__startDrag(q,ue),this.__getFrameViews().forEach(function(ke){return ke.droppable.startCustom()})},endDrag:function(q){this.__getFrameViews().forEach(function(ue){return ue.droppable.endCustom(q)}),this.__endDrag()},getConfig:function(){return ve},postRender:function(){K=new T({collection:j,categories:E},ve);var q=this.getConfig().appendTo;if(q){var ue=(0,we.isElement)(q)?q:document.querySelector(q);if(!ue)return this.__logWarn('"appendTo" element not found');ue.appendChild(this.render(j.models))}this.__trgCustom()},add:function(q,ue){var ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ee=ue||{};return Ee.id=q,m.add(Ee,ke)},get:function(q){return m.get(q)},getAll:function(){return m},getAllVisible:function(){return j},remove:function(q){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.__remove(q,ue)},getCategories:function(){return E},getContainer:function(){return K.el},render:function(q){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ke=q||this.getAll().models;if(ue.external){var Ee=new G(ke);return new T({collection:Ee,categories:E},x(x({},ve),ue)).render().el}return K&&(K.updateConfig(ue),K.collection.reset(ke),K.rendered||(K.render(),K.rendered=1)),this.getContainer()},destroy:function(){var q=[m,j,E];q.map(function(ue){return ue.stopListening()}),q.map(function(ue){return ue.reset()}),K&&K.remove(),ve={},m={},j={},K={},E=[],this.all={}}})}},6950:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>ce});var ye=b(2982),we=b(4942),J=b(9050),Y=b(6183);let N={stylePrefix:"cv-",scripts:[],styles:[],customBadgeLabel:"",autoscrollLimit:50,extHl:0,notTextable:["button","a","input[type=checkbox]","input[type=radio]"]};var te=b(5671),$=b(3144),L=b(9340),w=b(3930),y=b(1120),P=b(2316),A=b.n(P),k=b(2567),B=b(9065);function G(F){var l=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var s,o=(0,y.Z)(F);if(l){var h=(0,y.Z)(this).constructor;s=Reflect.construct(o,arguments,h)}else s=o.apply(this,arguments);return(0,w.Z)(this,s)}}var M=function(F){(0,L.Z)(s,F);var l=G(s);function s(){return(0,te.Z)(this,s),l.apply(this,arguments)}return(0,$.Z)(s,[{key:"defaults",value:function(){return{frame:"",frames:"",rulers:!1,zoom:100,x:0,y:0,scripts:[],styles:[]}}},{key:"initialize",value:function(o){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=h.em;this.config=h,this.em=m,this.set("frames",new B.Z),this.listenTo(this,"change:zoom",this.onZoomChange),this.listenTo(m,"change:device",this.updateDevice),this.listenTo(m,k.evPageSelect,this._pageUpdated)}},{key:"init",value:function(){var o=this.em.get("PageManager").getMain(),h=o.getMainFrame();this.set("frames",o.getFrames()),this.updateDevice({frame:h})}},{key:"_pageUpdated",value:function(o,h){var m=this.em;m.setSelected(),m.get("readyCanvas")&&m.stopDefault(),h&&h.getFrames().map(function(j){return j.disable()}),this.set("frames",o.getFrames())}},{key:"updateDevice",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=this.em,m=h.getDeviceModel(),j=o.frame||h.getCurrentFrameModel();if(j&&m){var K=m.attributes,ve=K.width,E=K.height;j.set({width:ve,height:E},{noUndo:1})}}},{key:"onZoomChange",value:function(){this.get("zoom")<1&&this.set("zoom",1)}}]),s}(P.Model),H=b(6602),Z=b(4868);function _(F,l){var s=Object.keys(F);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(F);l&&(o=o.filter(function(h){return Object.getOwnPropertyDescriptor(F,h).enumerable})),s.push.apply(s,o)}return s}var C=function(){function F(l,s){var o=this;(0,te.Z)(this,F),this.em=l;var h=s||l.get("Canvas").getFrames().map(function(j){return j.getComponent().getEl()}),m=Array.isArray(h)?h:[h];return this.el=h,this.counter=0,(0,J.bindAll)(this,"handleDragEnter","handleDragOver","handleDrop","handleDragLeave"),m.forEach(function(j){return o.toggleEffects(j,1)}),this}return(0,$.Z)(F,[{key:"toggleEffects",value:function(l,s){var o={on:Y.on,off:Y.off},h=s?"on":"off";o[h](l,"dragenter",this.handleDragEnter),o[h](l,"dragover",this.handleDragOver),o[h](l,"drop",this.handleDrop),o[h](l,"dragleave",this.handleDragLeave)}},{key:"__customTglEff",value:function(l){var s=l?Y.on:Y.off,o=this.el.ownerDocument,h=o.defaultView.frameElement;this.sortOpts=l?{onStart:function(m){var j=m.sorter;(0,Y.on)(h,"pointermove",j.onMove)},onEnd:function(m){var j=m.sorter;(0,Y.off)(h,"pointermove",j.onMove)},customTarget:function(m){var j=m.event;return o.elementFromPoint(j.clientX,j.clientY)}}:null,s(h,"pointerenter",this.handleDragEnter),s(h,"pointermove",this.handleDragOver),s(document,"pointerup",this.handleDrop),s(h,"pointerout",this.handleDragLeave)}},{key:"startCustom",value:function(){this.__customTglEff(!0)}},{key:"endCustom",value:function(l){this.over?this.endDrop(l):this.__customTglEff(!1)}},{key:"endDrop",value:function(l,s){var o=this.em,h=this.dragStop;this.counter=0,h&&h(l),this.__customTglEff(!1),o.trigger("canvas:dragend",s)}},{key:"handleDragLeave",value:function(l){this.updateCounter(-1,l)}},{key:"updateCounter",value:function(l,s){this.counter+=l,this.counter===0&&this.endDrop(1,s)}},{key:"handleDragEnter",value:function(l){var s=this,o=this.em,h=l.dataTransfer;if(this.updateCounter(1,l),!this.over){this.over=1;var m,j,K=o.get("Utils"),ve=o.get("Canvas"),E=o.get("dragContent")||"<br>";if(o.stopDefault(),o.inAbsoluteMode()){var q=o.get("DomComponents").getWrapper(),ue=q.append({})[0],ke=o.get("Commands").run("core:component-drag",{event:l,guidesInfo:1,center:1,target:ue,onEnd:function(pe,Ae,Ne){var Oe;if(!Ne.cancelled){Oe=q.append(E)[0];var Ie=ue.getStyle(),Le=Ie.left,$e=Ie.top,tt=Ie.position;Oe.addStyle({left:Le,top:$e,position:tt})}s.handleDragEnd(Oe,h),ue.remove()}});m=function(pe){return ke.stop(l,{cancel:pe})},j=function(pe){return E=pe}}else{var Ee=new K.Sorter(function(pe){for(var Ae=1;Ae<arguments.length;Ae++){var Ne=arguments[Ae]!=null?arguments[Ae]:{};Ae%2?_(Object(Ne),!0).forEach(function(Oe){(0,we.Z)(pe,Oe,Ne[Oe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(pe,Object.getOwnPropertyDescriptors(Ne)):_(Object(Ne)).forEach(function(Oe){Object.defineProperty(pe,Oe,Object.getOwnPropertyDescriptor(Ne,Oe))})}return pe}({em:o,wmargin:1,nested:1,canvasRelative:1,direction:"a",container:this.el,placer:ve.getPlacerEl(),containerSel:"*",itemSel:"*",pfx:"gjs-",onEndMove:function(pe){return s.handleDragEnd(pe,h)},document:this.el.ownerDocument},this.sortOpts||{}));Ee.setDropContent(E),Ee.startSort(),this.sorter=Ee,m=function(pe){pe&&(Ee.moved=0),Ee.endMove()},j=function(pe){return Ee.setDropContent(pe)}}this.dragStop=m,this.dragContent=j,o.trigger("canvas:dragenter",h,E)}}},{key:"handleDragEnd",value:function(l,s){var o=this.em;this.over=0,l&&(o.set("dragResult",l),o.trigger("canvas:drop",s,l)),o.runDefault({preserveSelected:1})}},{key:"handleDragOver",value:function(l){l.preventDefault(),this.em.trigger("canvas:dragover",l)}},{key:"handleDrop",value:function(l){l.preventDefault();var s=this.dragContent,o=l.dataTransfer,h=this.getContentByData(o).content;l.target.style.border="",h&&s&&s(h),this.endDrop(!h,l)}},{key:"getContentByData",value:function(l){var s=this.em,o=l&&l.types,h=l&&l.files||[],m=s.get("dragContent"),j=l&&l.getData("text");if(h.length){j=[];for(var K=0;K<h.length;K++){var ve=h[K],E=ve.type.split("/")[0];E=="image"&&j.push({type:E,file:ve,attributes:{alt:ve.name}})}}else if(m)j=m;else if((0,J.indexOf)(o,"text/html")>=0)j=l&&l.getData("text/html").replace(/<\/?meta[^>]*>/g,"");else if((0,J.indexOf)(o,"text/uri-list")>=0)j={type:"link",attributes:{href:j},content:j};else if((0,J.indexOf)(o,"text/json")>=0){var q=l&&l.getData("text/json");q&&(j=JSON.parse(q))}else o.length===1&&o[0]==="text/plain"&&(j="<div>".concat(j,"</div>"));var ue={content:j};return s.trigger("canvas:dragdata",l,ue),ue}}]),F}(),z=b(9283);function I(F,l){var s=Object.keys(F);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(F);l&&(o=o.filter(function(h){return Object.getOwnPropertyDescriptor(F,h).enumerable})),s.push.apply(s,o)}return s}function p(F){for(var l=1;l<arguments.length;l++){var s=arguments[l]!=null?arguments[l]:{};l%2?I(Object(s),!0).forEach(function(o){(0,we.Z)(F,o,s[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(F,Object.getOwnPropertyDescriptors(s)):I(Object(s)).forEach(function(o){Object.defineProperty(F,o,Object.getOwnPropertyDescriptor(s,o))})}return F}let d=A().View.extend({tagName:"iframe",attributes:{allowfullscreen:"allowfullscreen","data-frame-el":!0},initialize:function(F){(0,J.bindAll)(this,"updateClientY","stopAutoscroll","autoscroll","_emitUpdate");var l=this.model,s=this.el;this.tools={},this.config=p(p({},F.config||{}),{},{frameView:this}),this.ppfx=this.config.pStylePrefix||"",this.em=this.config.em;var o=this.getCanvasModel();this.listenTo(l,"change:head",this.updateHead),this.listenTo(o,"change:styles",this.renderStyles),l.view=this,(0,Y.setViewEl)(s,this)},updateHead:function(){var F=this.model,l=this.getHead(),s=[],o=[],h=F.get("head"),m=F.previous("head"),j=function(){var ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(ve).sort().map(function(E){return"[".concat(E,'="').concat(ve[E],'"]')}).join("")},K=function(ve,E,q){ve.forEach(function(ue){var ke=ue.tag,Ee=ue.attributes;!E.some(function(pe){return pe.tag===ke&&j(pe.attributes)===j(Ee)})&&q.push(ue)})};K(h,m,o),K(m,h,s),s.forEach(function(ve){var E=l.querySelector("".concat(ve.tag).concat(j(ve.attributes)));E&&E.parentNode.removeChild(E)}),(0,z.SJ)(l,o)},getEl:function(){return this.el},getCanvasModel:function(){return this.em.get("Canvas").getModel()},getWindow:function(){return this.getEl().contentWindow},getDoc:function(){return this.getEl().contentDocument},getHead:function(){return this.getDoc().querySelector("head")},getBody:function(){return this.getDoc().querySelector("body")},getWrapper:function(){return this.getBody().querySelector("[data-gjs-type=wrapper]")},getJsContainer:function(){return this.jsContainer||(this.jsContainer=(0,z.ut)("div",{class:"".concat(this.ppfx,"js-cont")})),this.jsContainer},getToolsEl:function(){var F=this.config.frameWrapView;return F&&F.elTools},getGlobalToolsEl:function(){return this.em.get("Canvas").getGlobalToolsEl()},getHighlighter:function(){return this._getTool("[data-hl]")},getBadgeEl:function(){return this._getTool("[data-badge]")},getOffsetViewerEl:function(){return this._getTool("[data-offset]")},getRect:function(){return this.rect||(this.rect=this.el.getBoundingClientRect()),this.rect},getOffsetRect:function(){var F=this.el,l=this.getBody(),s=l.scrollTop,o=l.scrollLeft,h=F.offsetHeight,m=F.offsetWidth;return{top:F.offsetTop,left:F.offsetLeft,height:h,width:m,scrollTop:s,scrollLeft:o,scrollBottom:s+h,scrollRight:o+m}},_getTool:function(F){var l=this.tools,s=this.getToolsEl();return l[F]||(l[F]=s.querySelector(F)),l[F]},remove:function(){var F=this.wrapper;this._toggleEffects(),this.tools={},F&&F.remove(),A().View.prototype.remove.apply(this,arguments)},startAutoscroll:function(){var F=this;this.lastMaxHeight=this.getWrapper().offsetHeight-this.el.offsetHeight,setTimeout(function(){F._toggleAutoscrollFx(1),requestAnimationFrame(F.autoscroll)},0)},autoscroll:function(){if(this.dragging){var F=this.lastClientY,l=this.em.get("Canvas"),s=this.getWindow(),o=this.getBody().scrollTop,h=F||0,m=l.getConfig().autoscrollLimit,j=this.getRect().height-m,K=o;h<m&&(K-=m-h),h>j&&(K+=h-j),!(0,J.isUndefined)(F)&&K!==o&&K>0&&K<this.lastMaxHeight&&(this.getGlobalToolsEl().style.opacity=0,this.showGlobalTools(),s.scrollTo(0,K)),requestAnimationFrame(this.autoscroll)}},updateClientY:function(F){F.preventDefault(),this.lastClientY=(0,Y.getPointerEvent)(F).clientY*this.em.getZoomDecimal()},showGlobalTools:(0,J.debounce)(function(){this.getGlobalToolsEl().style.opacity=""},50),stopAutoscroll:function(){this.dragging&&this._toggleAutoscrollFx()},_toggleAutoscrollFx:function(F){this.dragging=F;var l=this.getWindow(),s=F?"on":"off",o={on:Y.on,off:Y.off};o[s](l,"mousemove dragover",this.updateClientY),o[s](l,"mouseup",this.stopAutoscroll)},render:function(){var F=this.$el,l=this.ppfx;return F.attr({class:"".concat(l,"frame")}),this.renderScripts(),this},renderScripts:function(){var F=this,l=this.el,s=this.model,o=this.em,h="frame:load",m={el:l,model:s,view:this},j=this.getCanvasModel(),K=function ve(E){if(E.length>0){var q=E.shift(),ue=(0,z.ut)("script",p({type:"text/javascript"},(0,J.isString)(q)?{src:q}:q));ue.onerror=ue.onload=ve.bind(null,E),l.contentDocument.head.appendChild(ue)}else F.renderBody(),o&&o.trigger(h,m)};l.onload=function(){o&&o.trigger("".concat(h,":before"),m),K((0,ye.Z)(j.get("scripts")))}},renderStyles:function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=this.getHead(),s=this.getCanvasModel(),o=function(E){return E.map(function(q){return{tag:"link",attributes:p({rel:"stylesheet"},(0,J.isString)(q)?{href:q}:q)}})},h=o(F.prev||s.previous("styles")),m=o(s.get("styles")),j=[],K=[],ve=function(E,q,ue){E.forEach(function(ke){var Ee=ke.attributes.href;!q.some(function(pe){return pe.attributes.href===Ee})&&ue.push(ke)})};ve(m,h,K),ve(h,m,j),j.forEach(function(E){var q=l.querySelector('link[href="'.concat(E.attributes.href,'"]'));q&&q.parentNode.removeChild(q)}),(0,z.SJ)(l,K)},renderBody:function(){var F=this,l=this.config,s=this.model,o=this.ppfx,h=l.em,m=this.getDoc(),j=this.getBody(),K=this.getWindow(),ve=h.get("Config");K._isEditor=!0,this.renderStyles({prev:[]}),(0,z.R3)(j,`<style> + `.concat(ve.baseCss||"",` + + .`).concat(o,`dashed *[data-gjs-highlightable] { + outline: 1px dashed rgba(170,170,170,0.7); + outline-offset: -2px; + } + + .`).concat(o,`selected { + outline: 2px solid #3b97e3 !important; + outline-offset: -2px; + } + + .`).concat(o,`selected-parent { + outline: 2px solid `).concat("#ffca6f",` !important + } + + .`).concat(o,`no-select { + user-select: none; + -webkit-user-select:none; + -moz-user-select: none; + } + + .`).concat(o,`freezed { + opacity: 0.5; + pointer-events: none; + } + + .`).concat(o,`no-pointer { + pointer-events: none; + } + + .`).concat(o,`plh-image { + background: #f5f5f5; + border: none; + height: 100px; + width: 100px; + display: block; + outline: 3px solid #ffca6f; + cursor: pointer; + outline-offset: -2px + } + + .`).concat(o,`grabbing { + cursor: grabbing; + cursor: -webkit-grabbing; + } + + .`).concat(o,`is__grabbing { + overflow-x: hidden; + } + + .`).concat(o,`is__grabbing, + .`).concat(o,`is__grabbing * { + cursor: grabbing !important; + } + + `).concat(ve.canvasCss||"",` + `).concat(ve.protectedCss||"",` + </style>`));var E=s.getComponent(),q=h.get("DomComponents").getType("wrapper").view;this.wrapper=new q({model:E,config:p(p({},E.config),{},{frameView:this})}).render(),(0,z.R3)(j,this.wrapper.el),(0,z.R3)(j,new Z.Z({collection:s.getStyles(),config:p(p({},h.get("CssComposer").getConfig()),{},{frameView:this})}).render().el),(0,z.R3)(j,this.getJsContainer()),(0,Y.on)(j,"click",function(ue){return ue&&ue.target.tagName=="A"&&ue.preventDefault()}),(0,Y.on)(j,"submit",function(ue){return ue&&ue.preventDefault()}),[{event:"keydown keyup keypress",class:"KeyboardEvent"},{event:"mousedown mousemove mouseup",class:"MouseEvent"},{event:"pointerdown pointermove pointerup",class:"PointerEvent"},{event:"wheel",class:"WheelEvent"}].forEach(function(ue){return ue.event.split(" ").forEach(function(ke){m.addEventListener(ke,function(Ee){return F.el.dispatchEvent((0,z.t3)(Ee,ue.class))})})}),this._toggleEffects(1),this.droppable=(0,Y.hasDnd)(h)&&new C(h,this.wrapper.el),s.trigger("loaded")},_toggleEffects:function(F){var l=F?Y.on:Y.off,s=this.getWindow();s&&l(s,"".concat(z.G1," resize"),this._emitUpdate)},_emitUpdate:function(){this.model._emitUpdated()}});var f=b(5610);function v(F,l){var s=Object.keys(F);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(F);l&&(o=o.filter(function(h){return Object.getOwnPropertyDescriptor(F,h).enumerable})),s.push.apply(s,o)}return s}function D(F){for(var l=1;l<arguments.length;l++){var s=arguments[l]!=null?arguments[l]:{};l%2?v(Object(s),!0).forEach(function(o){(0,we.Z)(F,o,s[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(F,Object.getOwnPropertyDescriptors(s)):v(Object(s)).forEach(function(o){Object.defineProperty(F,o,Object.getOwnPropertyDescriptor(s,o))})}return F}let g=A().View.extend({events:{"click [data-action-remove]":"remove","mousedown [data-action-move]":"startDrag"},initialize:function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,J.bindAll)(this,"onScroll","frameLoaded","updateOffset","remove","startDrag");var s=this.model,o=D(D({},F.config||l),{},{frameWrapView:this}),h=o.canvasView,m=o.em;this.cv=h,this.config=o,this.em=m,this.canvas=m&&m.get("Canvas"),this.ppfx=o.pStylePrefix||"",this.frame=new d({model:s,config:o}),this.classAnim="".concat(this.ppfx,"frame-wrapper--anim"),this.updateOffset=(0,J.debounce)(this.updateOffset.bind(this)),this.updateSize=(0,J.debounce)(this.updateSize.bind(this)),this.listenTo(s,"loaded",this.frameLoaded),this.listenTo(s,"change:x change:y",this.updatePos),this.listenTo(s,"change:width change:height",this.updateSize),this.listenTo(s,"destroy remove",this.remove),this.updatePos(),this.setupDragger()},setupDragger:function(){var F,l,s,o=this,h=this.canvas,m=this.model,j=function(K){h.toggleFramesEvents(K)};this.dragger=new f.Z({onStart:function(){var K=m.attributes,ve=K.x,E=K.y;s=o.em.getZoomMultiplier(),F=ve,l=E,j()},onEnd:function(){return j(1)},setPosition:function(K){m.set({x:F+K.x*s,y:l+K.y*s})}})},startDrag:function(F){F&&this.dragger.start(F)},__clear:function(F){var l=this.frame;l&&l.remove(F),(0,z.L_)(this.elTools)},remove:function(F){var l=this;return this.__clear(F),A().View.prototype.remove.apply(this,arguments),["frame","dragger","cv","em","canvas","elTools"].forEach(function(s){return l[s]=0}),this},updateOffset:function(){var F=this.em,l=this.$el,s=this.frame;F&&(F.runDefault({preserveSelected:1}),l.removeClass(this.classAnim),s.model._emitUpdated())},updatePos:function(F){var l=this.model,s=this.el,o=l.attributes,h=o.x,m=o.y,j=s.style;this.frame.rect=0,j.left=isNaN(h)?h:"".concat(h,"px"),j.top=isNaN(m)?m:"".concat(m,"px"),F&&this.updateOffset()},updateSize:function(){this.updateDim()},updateDim:function(){var F=this.em,l=this.el,s=this.$el,o=this.model,h=this.classAnim,m=this.frame;if(m){m.rect=0,s.addClass(h);var j=this.__handleSize(),K=j.noChanges,ve=j.width,E=j.height;((0,J.isNull)(ve)||(0,J.isNull)(E))&&o.set(D(D({},ve?{}:{width:l.offsetWidth}),E?{}:{height:l.offsetHeight}),{silent:1}),F.stopDefault({preserveSelected:1}),K?this.updateOffset():setTimeout(this.updateOffset,350)}},onScroll:function(){var F=this.frame;this.em.trigger("frame:scroll",{frame:F,body:F.getBody(),target:F.getWindow()})},frameLoaded:function(){this.frame.getWindow().onscroll=this.onScroll,this.updateDim()},__handleSize:function(){var F=this.model,l=this.el.style,s=F.attributes,o=s.width,h=s.height,m=l.width||"",j=l.height||"",K=o||"",ve=h||"",E=m==K&&j==ve;return l.width=(0,J.isNumber)(K)?"".concat(K).concat("px"):K,l.height=(0,J.isNumber)(ve)?"".concat(ve).concat("px"):ve,{noChanges:E,width:o,height:h,newW:K,newH:ve}},render:function(){var F=this.frame,l=this.$el,s=this.ppfx,o=this.cv,h=this.model,m=this.el,j=h.attributes.onRender;this.__clear(),this.__handleSize(),F.render(),l.empty().attr({class:"".concat(s,"frame-wrapper")}).append(` + <div class="`.concat(s,`frame-wrapper__top gjs-two-color" data-frame-top> + <div class="`).concat(s,`frame-wrapper__name" data-action-move> + `).concat(h.get("name")||"",` + </div> + <div class="`).concat(s,`frame-wrapper__top-r"> + <div class="`).concat(s,`frame-wrapper__icon" data-action-remove style="display: none"> + <svg viewBox="0 0 24 24"><path d="M19 4h-3.5l-1-1h-5l-1 1H5v2h14M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12z"></path></svg> + </div> + </div> + </div> + <div class="`).concat(s,`frame-wrapper__right" data-frame-right></div> + <div class="`).concat(s,`frame-wrapper__left" data-frame-left></div> + <div class="`).concat(s,`frame-wrapper__bottom" data-frame-bottom></div> + `)).append(F.el);var K=(0,z.ut)("div",{class:"".concat(s,"tools"),style:"pointer-events:none; display: none"},` + <div class="`.concat(s,`highlighter" data-hl></div> + <div class="`).concat(s,`badge" data-badge></div> + <div class="`).concat(s,`placeholder"> + <div class="`).concat(s,`placeholder-int"></div> + </div> + <div class="`).concat(s,`ghost"></div> + <div class="`).concat(s,`toolbar" style="pointer-events:all"></div> + <div class="`).concat(s,`resizer"></div> + <div class="`).concat(s,`offset-v" data-offset> + <div class="gjs-marginName" data-offset-m> + <div class="gjs-margin-v-el gjs-margin-v-top" data-offset-m-t></div> + <div class="gjs-margin-v-el gjs-margin-v-bottom" data-offset-m-b></div> + <div class="gjs-margin-v-el gjs-margin-v-left" data-offset-m-l></div> + <div class="gjs-margin-v-el gjs-margin-v-right" data-offset-m-r></div> + </div> + <div class="gjs-paddingName" data-offset-m> + <div class="gjs-padding-v-el gjs-padding-v-top" data-offset-p-t></div> + <div class="gjs-padding-v-el gjs-padding-v-bottom" data-offset-p-b></div> + <div class="gjs-padding-v-el gjs-padding-v-left" data-offset-p-l></div> + <div class="gjs-padding-v-el gjs-padding-v-right" data-offset-p-r></div> + </div> + </div> + <div class="`).concat(s,`offset-fixed-v"></div> + `));this.elTools=K;var ve=o.toolsWrapper;return ve&&ve.appendChild(K),j&&j({el:m,elTop:m.querySelector("[data-frame-top]"),elRight:m.querySelector("[data-frame-right]"),elBottom:m.querySelector("[data-frame-bottom]"),elLeft:m.querySelector("[data-frame-left]"),frame:h,frameWrapperView:this,remove:this.remove,startDrag:this.startDrag}),this}}),T=H.Z.extend({itemView:g,autoAdd:1,init:function(){this.listenTo(this.collection,"reset",this.render)},onRemoveBefore:function(F,l){F.forEach(function(s){return s.remove(l)})},onRender:function(){var F=this.config,l=this.$el,s=F.em;s&&l.attr({class:"".concat(s.getConfig("stylePrefix"),"frames")})}});function u(F,l){var s=Object.keys(F);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(F);l&&(o=o.filter(function(h){return Object.getOwnPropertyDescriptor(F,h).enumerable})),s.push.apply(s,o)}return s}function x(F){for(var l=1;l<arguments.length;l++){var s=arguments[l]!=null?arguments[l]:{};l%2?u(Object(s),!0).forEach(function(o){(0,we.Z)(F,o,s[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(F,Object.getOwnPropertyDescriptors(s)):u(Object(s)).forEach(function(o){Object.defineProperty(F,o,Object.getOwnPropertyDescriptor(s,o))})}return F}var O,W=A().$;let X=A().View.extend({events:{wheel:"onWheel"},template:function(){var F=this.pfx;return` + <div class="`.concat(F,`canvas__frames" data-frames></div> + <div id="`).concat(F,'tools" class="').concat(F,`canvas__tools" data-tools></div> + `)},initialize:function(F){(0,J.bindAll)(this,"clearOff","onKeyPress","onCanvasMove");var l=this.model;this.config=F.config||{},this.em=this.config.em||{},this.pfx=this.config.stylePrefix||"",this.ppfx=this.config.pStylePrefix||"",this.className=this.config.stylePrefix+"canvas";var s=this.em;this._initFrames(),this.listenTo(s,"change:canvasOffset",this.clearOff),this.listenTo(s,"component:selected",this.checkSelected),this.listenTo(l,"change:zoom change:x change:y",this.updateFrames),this.listenTo(l,"change:frames",this._onFramesUpdate),this.toggleListeners(1)},_onFramesUpdate:function(){this._initFrames(),this._renderFrames()},_initFrames:function(){var F=this.frames,l=this.model,s=this.config,o=this.em,h=l.get("frames");o.set("readyCanvas",0),h.once("loaded:all",function(){return o.set("readyCanvas",1)}),F&&F.remove(),this.frames=new T({collection:h,config:x(x({},s),{},{canvasView:this})})},checkSelected:function(F){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=l.scroll,o=this.em.get("currentFrame");s&&F.views.forEach(function(h){h._getFrame()===o&&h.scrollIntoView(s)})},remove:function(){this.frames.remove(),this.frames={},A().View.prototype.remove.apply(this,arguments),this.toggleListeners()},preventDefault:function(F){F&&(F.preventDefault(),F._parentEvent&&F._parentEvent.preventDefault())},onCanvasMove:function(F){},toggleListeners:function(F){this.el;var l=F?Y.on:Y.off;l(document,"keypress",this.onKeyPress),l(window,"scroll resize",this.clearOff)},onKeyPress:function(F){var l=this.em;(0,Y.getKeyChar)(F)!==" "||l.getZoomDecimal()===1||l.get("Canvas").isInputFocused()||(this.preventDefault(F),l.get("Editor").runCommand("core:canvas-move"))},onWheel:function(F){if((F.ctrlKey||F.metaKey)&&this.em.getConfig("multiFrames")){this.preventDefault(F);var l=this.model,s=Math.max(-1,Math.min(1,F.wheelDelta||-F.detail)),o=l.get("zoom");l.set("zoom",o+2*s)}},updateFrames:function(F){var l=this.em,s=this.model.attributes,o=s.x,h=s.y,m=this.getZoom(),j={preserveSelected:1},K=m?1/m:1;this.framesArea.style.transform="scale(".concat(m,") translate(").concat(o*K,"px, ").concat(h*K,"px)"),this.clearOff(),l.stopDefault(j),l.trigger("canvas:update",F),O&&clearTimeout(O),O=setTimeout(function(){return l.runDefault(j)},300)},getZoom:function(){return this.em.getZoomDecimal()},isElInViewport:function(F){var l=(0,Y.getElement)(F),s=(0,Y.getElRect)(l),o=this.getFrameOffset(l),h=s.top,m=s.left;return h>=0&&m>=0&&h<=o.height&&m<=o.width},offset:function(F){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=(0,Y.getElRect)(F),o=F.ownerDocument.body,h=l.noScroll;return{top:s.top+(h?0:o.scrollTop),left:s.left+(h?0:o.scrollLeft),width:s.width,height:s.height}},clearOff:function(){this.frmOff=null,this.cvsOff=null},getFrameOffset:function(F){if(!this.frmOff||F){var l=this.frame.el,s=F&&F.ownerDocument.defaultView,o=s?s.frameElement:l;this.frmOff=this.offset(o||l)}return this.frmOff},getCanvasOffset:function(){return this.cvsOff||(this.cvsOff=this.offset(this.el)),this.cvsOff},getElementPos:function(F,l){var s=this.getZoom(),o=l||{},h=this.getFrameOffset(F),m=this.getCanvasOffset(),j=this.offset(F,l),K=o.avoidFrameOffset?0:h.top,ve=o.avoidFrameOffset?0:h.left;return{top:j.top*s+K-m.top,left:j.left*s+ve-m.left,height:j.height*s,width:j.width*s,zoom:s,rect:j}},getElementOffsets:function(F){var l=this;if(!F||(0,Y.isTextNode)(F))return{};var s={},o=window.getComputedStyle(F);return["marginTop","marginRight","marginBottom","marginLeft","paddingTop","paddingRight","paddingBottom","paddingLeft"].forEach(function(h){s[h]=parseFloat(o[h])*l.getZoom()}),s},getPosition:function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=this.frame.el.contentDocument;if(l){var s=l.body,o=this.getZoom(),h=this.getFrameOffset(),m=this.getCanvasOffset(),j=F.noScroll;return{top:h.top+(j?0:s.scrollTop)*o-m.top,left:h.left+(j?0:s.scrollLeft)*o-m.left,width:m.width,height:m.height}}},updateScript:function(F){var l=F.model,s=l.getId();F.scriptContainer||(F.scriptContainer=W('<div data-id="'.concat(s,'">')),this.getJsContainer().appendChild(F.scriptContainer.get(0))),F.el.id=s,F.scriptContainer.html("");var o=document.createElement("script"),h=l.getScriptString(),m=l.get("script-props")?h:`function(){ +`.concat(h,` +;}`),j=JSON.stringify(l.__getScriptProps());o.innerHTML=` + setTimeout(function() { + var item = document.getElementById('`.concat(s,`'); + if (!item) return; + (`).concat(m,".bind(item))(").concat(j,`) + }, 1);`),setTimeout(function(){var K=F.scriptContainer;K&&K.get(0).appendChild(o)},0)},getJsContainer:function(F){var l=this.getFrameView(F);return l&&l.getJsContainer()},getFrameView:function(F){return F&&F._getFrame()||this.em.get("currentFrame")},_renderFrames:function(){if(this.ready){var F=this.model,l=this.frames,s=this.em,o=this.framesArea,h=F.get("frames");h.listenToLoad(),l.render();var m=h.at(0),j=m&&m.view;s.setCurrentFrame(j),o&&o.appendChild(l.el),this.frame=j}},render:function(){var F=this.el,l=this.$el,s=this.ppfx,o=this.config,h=this.em;l.html(this.template());var m=l.find("[data-frames]");this.framesArea=m.get(0);var j=l.find("[data-tools]");this.toolsWrapper=j.get(0),j.append(` + <div class="`.concat(s,"tools ").concat(s,`tools-gl" style="pointer-events:none"> + <div class="`).concat(s,`placeholder"> + <div class="`).concat(s,`placeholder-int"></div> + </div> + </div> + <div id="`).concat(s,`tools" style="pointer-events:none"> + `).concat(o.extHl?'<div class="'.concat(s,'highlighter-sel"></div>'):"",` + <div class="`).concat(s,`badge"></div> + <div class="`).concat(s,`ghost"></div> + <div class="`).concat(s,`toolbar" style="pointer-events:all"></div> + <div class="`).concat(s,`resizer"></div> + <div class="`).concat(s,`offset-v"></div> + <div class="`).concat(s,`offset-fixed-v"></div> + </div> + `));var K=F.querySelector("#".concat(s,"tools"));return this.hlEl=F.querySelector(".".concat(s,"highlighter")),this.badgeEl=F.querySelector(".".concat(s,"badge")),this.placerEl=F.querySelector(".".concat(s,"placeholder")),this.ghostEl=F.querySelector(".".concat(s,"ghost")),this.toolbarEl=F.querySelector(".".concat(s,"toolbar")),this.resizerEl=F.querySelector(".".concat(s,"resizer")),this.offsetEl=F.querySelector(".".concat(s,"offset-v")),this.fixedOffsetEl=F.querySelector(".".concat(s,"offset-fixed-v")),this.toolsGlobEl=F.querySelector(".".concat(s,"tools-gl")),this.toolsEl=K,this.el.className=(0,Y.getUiClass)(h,this.className),this.ready=1,this._renderFrames(),this}});function ie(F,l){var s=Object.keys(F);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(F);l&&(o=o.filter(function(h){return Object.getOwnPropertyDescriptor(F,h).enumerable})),s.push.apply(s,o)}return s}function le(F){for(var l=1;l<arguments.length;l++){var s=arguments[l]!=null?arguments[l]:{};l%2?ie(Object(s),!0).forEach(function(o){(0,we.Z)(F,o,s[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(F,Object.getOwnPropertyDescriptors(s)):ie(Object(s)).forEach(function(o){Object.defineProperty(F,o,Object.getOwnPropertyDescriptor(s,o))})}return F}let ce=function(){var F,l,s={};return{getCanvasView:function(){return l},name:"Canvas",init:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};s=le(le(le({},N),o),{},{module:this}),this.em=s.em;var h=s,m=h.scripts,j=h.styles,K=s.pStylePrefix;return K&&(s.stylePrefix=K+s.stylePrefix),F=new M({scripts:m,styles:j},o),this.model=F,this.startAutoscroll=this.startAutoscroll.bind(this),this.stopAutoscroll=this.stopAutoscroll.bind(this),this},onLoad:function(){this.model.init()},getModel:function(){return F},getConfig:function(){return s},getElement:function(){return l.el},getFrame:function(o){return this.getFrames()[o||0]},getFrameEl:function(){var o=(l||{}).frame;return o&&o.el},getFramesEl:function(){return l.framesArea},getWindow:function(){return this.getFrameEl().contentWindow},getDocument:function(){var o=this.getFrameEl();return o&&o.contentDocument},getBody:function(){var o=this.getDocument();return o&&o.body},_getCompFrame:function(o){return o&&o._getFrame()},_getLocalEl:function(o,h,m){var j=o,K=this._getCompFrame(h);return j=K?K[m]():j},getGlobalToolsEl:function(){return l.toolsGlobEl},getToolsEl:function(o){return this._getLocalEl(l.toolsEl,o,"getToolsEl")},getHighlighter:function(o){return this._getLocalEl(l.hlEl,o,"getHighlighter")},getBadgeEl:function(o){return this._getLocalEl(l.badgeEl,o,"getBadgeEl")},getPlacerEl:function(){return l.placerEl},getGhostEl:function(){return l.ghostEl},getToolbarEl:function(){return l.toolbarEl},getResizerEl:function(){return l.resizerEl},getOffsetViewerEl:function(o){return this._getLocalEl(l.offsetEl,o,"getOffsetViewerEl")},getFixedOffsetViewerEl:function(){return l.fixedOffsetEl},render:function(){return l&&l.remove(),(l=new X({model:F,config:s})).render().el},getOffset:function(){var o=this.offset(this.getFrameEl()),h=this.offset(this.getElement());return{top:o.top-h.top,left:o.left-h.left}},offset:function(o){return l.offset(o)},setCustomBadgeLabel:function(o){s.customBadgeLabel=o},getElementPos:function(o,h){return l.getElementPos(o,h)},getElementOffsets:function(o){return l.getElementOffsets(o)},getRect:function(){var o=l.getPosition(),h=o.top,m=o.left;return le(le({},l.getCanvasOffset()),{},{topScroll:h,leftScroll:m})},getTargetToElementDim:function(o,h){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},j=m||{},K=l.getPosition();if(K){var ve=j.elPos||l.getElementPos(h),E=m.toRight||0,q=j.targetHeight||o.offsetHeight,ue=j.targetWidth||o.offsetWidth,ke=j.event||null,Ee=ve.top-q,pe=ve.left;pe+=E?ve.width:0;var Ae=(pe=E?pe-ue:pe)<K.left?K.left:pe,Ne=Ee<K.top?K.top:Ee,Oe={top:Ne=Ne>ve.top+ve.height?ve.top+ve.height:Ne,left:Ae,elementTop:ve.top,elementLeft:ve.left,elementWidth:ve.width,elementHeight:ve.height,targetWidth:o.offsetWidth,targetHeight:o.offsetHeight,canvasTop:K.top,canvasLeft:K.left,canvasWidth:K.width,canvasHeight:K.height};return ke&&s.em&&s.em.trigger(ke,Oe),Oe}},canvasRectOffset:function(o,h){var m=this,j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},K=function(E){var q=E.defaultView;return q&&q.frameElement},ve=function(E){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ue=arguments.length>2?arguments[2]:void 0,ke=m.em.getZoomDecimal(),Ee=q?"top":"left",pe=E.ownerDocument,Ae=j.offset?K(pe):{},Ne=Ae.offsetTop,Oe=Ne===void 0?0:Ne,Ie=Ae.offsetLeft,Le=Ie===void 0?0:Ie,$e=pe.body||{},tt=$e.scrollTop,ht=tt===void 0?0:tt,Vt=$e.scrollLeft,rt=Vt===void 0?0:Vt,Ht=q?ht:rt,Zt=q?Oe:Le;return ue[Ee]-(Ht-Zt)*ke};return{top:ve(o,1,h),left:ve(o,0,h)}},getTargetToElementFixed:function(o,h){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},j=m.pos||this.getElementPos(o),K=m.canvasOff||this.canvasRectOffset(o,j),ve=h.offsetHeight||0,E=h.offsetWidth||0,q=j.left+j.width,ue=this.getCanvasView(),ke=ue.getPosition(),Ee=ue.getFrameOffset(o),pe=m.event,Ae=-ve,Ne=(0,J.isUndefined)(m.left)?j.width-E:m.left;Ne=j.left<-Ne?-j.left:Ne,Ne=q>ke.width?Ne-(q-ke.width):Ne;var Oe=j.height+ve,Ie=Oe<Ee.height;K.top<ve&&(Ie?Ae+=Oe:Ae=-K.top<j.height?-K.top:j.height);var Le={top:Ae,left:Ne,canvasOffsetTop:K.top,canvasOffsetLeft:K.left};return pe&&this.em.trigger(pe,Le),Le},getMouseRelativePos:function(o,h){var m=0,j=0,K=(h||{}).subWinOffset,ve=o.target.ownerDocument,E=ve.defaultView||ve.parentWindow,q=E.frameElement,ue=K?E.pageYOffset:0,ke=K?E.pageXOffset:0;if(q){var Ee=q.getBoundingClientRect();m=Ee.top||0,j=Ee.left||0}return{y:o.clientY+m-ue,x:o.clientX+j-ke}},getMouseRelativeCanvas:function(o,h){var m=this.getZoomDecimal(),j=l.getPosition(h),K=j.top,ve=j.left;return{y:o.clientY*m+K,x:o.clientX*m+ve}},hasFocus:function(){return this.getDocument().hasFocus()},isInputFocused:function(){var o=this.getDocument(),h=this.getFrameEl(),m=["body"].concat((0,ye.Z)(this.getConfig().notTextable)),j=h&&document.activeElement===h?o&&o.activeElement:document.activeElement;return j&&!m.some(function(K){return j.matches(K)})},scrollTo:function(o){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=(0,Y.getElement)(o),j=m&&(0,Y.getViewEl)(m);j&&j.scrollIntoView(h)},startAutoscroll:function(o){var h=o&&o.view||this.em.getCurrentFrame();h&&h.startAutoscroll()},stopAutoscroll:function(o){var h=o&&o.view||this.em.getCurrentFrame();h&&h.stopAutoscroll()},setZoom:function(o){return F.set("zoom",parseFloat(o)),this},getZoom:function(){return parseFloat(F.get("zoom"))},setCoords:function(o,h){return F.set({x:parseFloat(o),y:parseFloat(h)}),this},getCoords:function(){var o=F.attributes;return{x:o.x,y:o.y}},getZoomDecimal:function(){return this.getZoom()/100},getZoomMultiplier:function(){var o=this.getZoomDecimal();return o?1/o:1},toggleFramesEvents:function(o){this.getFramesEl().style.pointerEvents=o?"":"none"},getFrames:function(){return F.get("frames").map(function(o){return o})},addFrame:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return F.get("frames").add(le({},o),le(le({},h),{},{em:this.em}))},destroy:function(){var o=this;F.stopListening(),l&&l.remove(),[s,F,l].forEach(function(h){return{}}),["em","model","droppable"].forEach(function(h){return o[h]={}})}}}},9065:(Je,Se,b)=>{"use strict";b.d(Se,{Z:()=>C});var ye=b(4942),we=b(5671),J=b(3144),Y=b(9340),N=b(3930),te=b(1120),$=b(9050),L=b(2316),w=b(2982),y=b(6183);function P(z,I){var p=Object.keys(z);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(z);I&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(z,f).enumerable})),p.push.apply(p,d)}return p}function A(z){for(var I=1;I<arguments.length;I++){var p=arguments[I]!=null?arguments[I]:{};I%2?P(Object(p),!0).forEach(function(d){(0,ye.Z)(z,d,p[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(z,Object.getOwnPropertyDescriptors(p)):P(Object(p)).forEach(function(d){Object.defineProperty(z,d,Object.getOwnPropertyDescriptor(p,d))})}return z}function k(z){var I=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var p,d=(0,te.Z)(z);if(I){var f=(0,te.Z)(this).constructor;p=Reflect.construct(d,arguments,f)}else p=d.apply(this,arguments);return(0,N.Z)(this,p)}}var B="__aw",G="__ah",M=function(z){(0,Y.Z)(p,z);var I=k(p);function p(){return(0,we.Z)(this,p),I.apply(this,arguments)}return(0,J.Z)(p,[{key:"defaults",value:function(){return{x:0,y:0,changesCount:0,attributes:{},width:null,height:null,head:[],component:"",styles:"",_undo:!0,_undoexc:["changesCount"]}}},{key:"initialize",value:function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v=f.config,D=v.em,g=this.attributes,T=g.styles,u=g.component,x=D.get("DomComponents"),O=x.getConfig(),W=D.get("CssComposer").getAll(),X={};this.em=D;var ie={em:D,config:O,frame:this,idMap:X};if(!(0,y.isComponent)(u)){var le=(0,y.isObject)(u)?u:{components:u};!le.type&&(le.type="wrapper");var ce=x.getType("wrapper").model;this.set("component",new ce(le,ie))}if(T){if(!(0,y.isObject)(T)){var F=Object.keys(X);F.length&&Array.isArray(T)&&T.forEach(function(l){var s=l.selectors;if(s&&s.length==1){var o=s[0],h=o.name&&o.type===2&&o;if(h&&X[h.name])h.name=X[h.name];else if((0,$.isString)(o)&&o[0]==="#"){var m=o.substring(1);m&&X[m]&&(s[0]="#".concat(X[m]))}}}),W.add(T),this.set("styles",W)}}else this.set("styles",W);!d.width&&this.set(B,1),!d.height&&this.set(G,1)}},{key:"onRemove",value:function(){this.getComponent().remove({root:1})}},{key:"changesUp",value:function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};d.temporary||d.noCount||d.avoidStore||this.set("changesCount",this.get("changesCount")+1)}},{key:"getComponent",value:function(){return this.get("component")}},{key:"getStyles",value:function(){return this.get("styles")}},{key:"disable",value:function(){this.trigger("disable")}},{key:"remove",value:function(){this.view=0;var d=this.collection;return d&&d.remove(this)}},{key:"getHead",value:function(){var d=this.get("head")||[];return(0,w.Z)(d)}},{key:"setHead",value:function(d){return this.set("head",(0,w.Z)(d))}},{key:"addHeadItem",value:function(d){var f=this.getHead();f.push(d),this.setHead(f)}},{key:"getHeadByAttr",value:function(d,f,v){return this.getHead().filter(function(D){return D.attributes&&D.attributes[d]==f&&(!v||v===D.tag)})[0]}},{key:"removeHeadByAttr",value:function(d,f,v){var D=this.getHead(),g=this.getHeadByAttr(d,f,v),T=D.indexOf(g);T>=0&&(D.splice(T,1),this.setHead(D))}},{key:"addLink",value:function(d){var f="link";!this.getHeadByAttr("href",d,f)&&this.addHeadItem({tag:f,attributes:{href:d,rel:"stylesheet"}})}},{key:"removeLink",value:function(d){this.removeHeadByAttr("href",d,"link")}},{key:"addScript",value:function(d){var f="script";!this.getHeadByAttr("src",d,f)&&this.addHeadItem({tag:f,attributes:{src:d}})}},{key:"removeScript",value:function(d){this.removeHeadByAttr("src",d,"script")}},{key:"getPage",value:function(){var d=this.collection;return d&&d.page}},{key:"_emitUpdated",value:function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.em.trigger("frame:updated",A({frame:this},d))}},{key:"toJSON",value:function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=L.Model.prototype.toJSON.call(this,d),v=this.em,D=v&&v.get("StorageManager"),g=D&&D.getConfig(),T=(0,$.result)(this,"defaults");if(g&&!d.fromUndo){var u={component:this.getComponent()};g.storeHtml&&(f.html=v.getHtml(u)),g.storeCss&&(f.css=v.getCss(u))}return d.fromUndo&&delete f.component,delete f.styles,delete f.changesCount,f.__aw&&delete f.width,f.__ah&&delete f.height,(0,$.forEach)(f,function(x,O){O.indexOf("_")===0&&delete f[O]}),(0,$.forEach)(T,function(x,O){f[O]===x&&delete f[O]}),(0,$.forEach)(["attributes","head"],function(x){(0,$.isEmpty)(f[x])&&delete f[x]}),f}}]),p}(L.Model);function H(z,I){var p=Object.keys(z);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(z);I&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(z,f).enumerable})),p.push.apply(p,d)}return p}function Z(z){for(var I=1;I<arguments.length;I++){var p=arguments[I]!=null?arguments[I]:{};I%2?H(Object(p),!0).forEach(function(d){(0,ye.Z)(z,d,p[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(z,Object.getOwnPropertyDescriptors(p)):H(Object(p)).forEach(function(d){Object.defineProperty(z,d,Object.getOwnPropertyDescriptor(p,d))})}return z}function _(z){var I=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var p,d=(0,te.Z)(z);if(I){var f=(0,te.Z)(this).constructor;p=Reflect.construct(d,arguments,f)}else p=d.apply(this,arguments);return(0,N.Z)(this,p)}}var C=function(z){(0,Y.Z)(p,z);var I=_(p);function p(){return(0,we.Z)(this,p),I.apply(this,arguments)}return(0,J.Z)(p,[{key:"initialize",value:function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,$.bindAll)(this,"itemLoaded"),this.config=f,this.on("reset",this.onReset),this.on("remove",this.onRemove)}},{key:"onReset",value:function(d){var f=this,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},D=v.previousModels||[];D.map(function(g){return f.onRemove(g)})}},{key:"onRemove",value:function(d){d&&d.onRemove()}},{key:"itemLoaded",value:function(){this.loadedItems++,this.loadedItems>=this.itemsToLoad&&(this.trigger("loaded:all"),this.listenToLoadItems(0))}},{key:"listenToLoad",value:function(){this.loadedItems=0,this.itemsToLoad=this.length,this.listenToLoadItems(1)}},{key:"listenToLoadItems",value:function(d){var f=this;this.forEach(function(v){return v[d?"on":"off"]("loaded",f.itemLoaded)})}},{key:"add",value:function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v=this.config;return L.Collection.prototype.add.call(this,d,Z(Z({},f),{},{config:v}))}}]),p}(L.Collection);C.prototype.model=M},7619:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>d});var ye=b(9050);let we={stylePrefix:"cm-",inlineCss:!1};var J=b(5671),Y=b(3144),N=b(9340),te=b(3930),$=b(1120),L=b(2316),w=b.n(L);function y(f){var v=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var D,g=(0,$.Z)(f);if(v){var T=(0,$.Z)(this).constructor;D=Reflect.construct(g,arguments,T)}else D=g.apply(this,arguments);return(0,te.Z)(this,D)}}var P=function(f){(0,N.Z)(D,f);var v=y(D);function D(){return(0,J.Z)(this,D),v.apply(this,arguments)}return(0,Y.Z)(D,[{key:"build",value:function(g){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u={},x=T.em;if(T.cleanId&&x){var O=x.get("CssComposer").getAll(),W=O.toJSON().map(function(X){var ie=X.selectors,le=ie&&ie.length===1&&ie.models[0];return le&&le.isId()&&le.get("name")}).filter(function(X){return X});u.attributes=function(X,ie){var le=ie.id;return le&&le[0]==="i"&&!X.get("script")&&!X.get("attributes").id&&W.indexOf(le)<0&&delete ie.id,ie}}return g.toHTML(u)}}]),D}(L.Model),A=b(8795);let k=w().Model.extend({build:function(f){var v=f.toJSON();return this.beforeEach(v),(0,ye.each)(v,function(D,g){var T=v[g];if(T instanceof w().Model)v[g]=this.build(T);else if(T instanceof w().Collection){var u=T;v[g]=[],u.length&&u.each(function(x,O){v[g][O]=this.build(x)},this)}},this),v},beforeEach:function(f){delete f.status}});var B=b(4942);let G=w().Model.extend({mapModel:function(f){var v="",D=f.get("script-export")||f.get("script"),g=f.get("type"),T=f.get("components"),u=f.getId();if(D){var x=f.get("attributes");x=(0,ye.extend)({},x,{id:u}),f.set("attributes",x,{silent:1});var O=f.getScriptString(D),W=f.get("script-props");if(f.get("scriptUpdated")&&!W)this.mapJs[g+"-"+u]={ids:[u],code:O};else{var X,ie=this.mapJs[g];if(W&&(X=f.__getScriptProps()),ie)ie.ids.push(u),X&&(ie.props[u]=X);else{var le={ids:[u],code:O};X&&(le.props=(0,B.Z)({},u,X)),this.mapJs[g]=le}}}return T.each(function(ce){v+=this.mapModel(ce)},this),v},build:function(f){this.mapJs={},this.mapModel(f);var v="";for(var D in this.mapJs){var g=this.mapJs[D];if(g.code)if(g.props){if(g.code.toString().match(/\{([\s\S]*)\}/m)[1].replace(/^\s*\/\/.*$/gm,"").trim().length===0)continue;v+=` + var props = `.concat(JSON.stringify(g.props),`; + var ids = Object.keys(props).map(function(id) { return '#'+id }).join(','); + var els = document.querySelectorAll(ids); + for (var i = 0, len = els.length; i < len; i++) { + var el = els[i]; + (`).concat(g.code,`.bind(el))(props[el.id]); + }`)}else{var T="#"+g.ids.join(", #");v+=` + var items = document.querySelectorAll('`.concat(T,`'); + for (var i = 0, len = items.length; i < len; i++) { + (function(){ +`).concat(g.code,` +}.bind(items[i]))(); + }`)}}return v}});var M;function H(f,v){var D=Object.keys(f);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(f);v&&(g=g.filter(function(T){return Object.getOwnPropertyDescriptor(f,T).enumerable})),D.push.apply(D,g)}return D}(0,b(6183).hasWin)()&&(M=b(4631),b(6531),b(6629),b(9210));let Z=w().Model.extend({CodeMirror:M,defaults:{input:"",label:"",codeName:"",theme:"hopscotch",readOnly:!0,lineNumbers:!0},init:function(f){return(0,ye.bindAll)(this,"onChange"),this.editor=M.fromTextArea(f,function(v){for(var D=1;D<arguments.length;D++){var g=arguments[D]!=null?arguments[D]:{};D%2?H(Object(g),!0).forEach(function(T){(0,B.Z)(v,T,g[T])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(g)):H(Object(g)).forEach(function(T){Object.defineProperty(v,T,Object.getOwnPropertyDescriptor(g,T))})}return v}({dragDrop:!1,lineWrapping:!0,mode:this.get("codeName")},this.attributes)),this.element=f,this.editor.on("change",this.onChange),this},onChange:function(){this.trigger("update",this)},getEditor:function(){return this.editor},getElement:function(){return this.element},setElement:function(f){return this.element=f,this},refresh:function(){return this.getEditor().refresh(),this},focus:function(){return this.getEditor().focus(),this},getContent:function(){var f=this.getEditor();return f&&f.getValue()},setContent:function(f){var v=this,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},g=this.editor;g&&(g.setValue(f),g.autoFormatRange&&(M.commands.selectAll(g),g.autoFormatRange(g.getCursor(!0),g.getCursor(!1)),M.commands.goDocStart(g)),!D.noRefresh&&setTimeout(function(){return v.refresh()}))}});var _,C=b(168),z=b(1629);function I(f){var v=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var D,g=(0,$.Z)(f);if(v){var T=(0,$.Z)(this).constructor;D=Reflect.construct(g,arguments,T)}else D=g.apply(this,arguments);return(0,te.Z)(this,D)}}var p=function(f){(0,N.Z)(D,f);var v=I(D);function D(){return(0,J.Z)(this,D),v.apply(this,arguments)}return(0,Y.Z)(D,[{key:"template",value:function(g){var T=g.pfx,u=g.codeName,x=g.label;return(0,z.Z)(_||(_=(0,C.Z)([` + <div class="`,'editor" id="',"",`"> + <div id="`,'title">',`</div> + <div id="`,`code"></div> + </div> + `])),T,T,u,T,x,T)}},{key:"initialize",value:function(g){this.config=g.config||{},this.pfx=this.config.stylePrefix}},{key:"render",value:function(){var g=this.model,T=this.pfx,u=this.$el,x=g.toJSON();return x.pfx=T,u.html(this.template(x)),u.attr("class","".concat(T,"editor-c")),u.find("#".concat(T,"code")).append(g.get("input")),this}}]),D}(L.View);let d=function(){var f={},v={},D={},g={},T={},u="CodeMirror";return{getConfig:function(){return f},config:f,EditorView:p,name:"CodeManager",init:function(x){for(var O in f=x||{},we)O in f||(f[O]=we[O]);var W=f.pStylePrefix;return W&&(f.stylePrefix=W+f.stylePrefix),D.html=new P,D.css=new A.Z,D.json=new k,D.js=new G,T.CodeMirror=new Z,this.loadDefaultGenerators().loadDefaultViewers(),this},addGenerator:function(x,O){return v[x]=O,this},getGenerator:function(x){return v[x]||null},getGenerators:function(){return v},addViewer:function(x,O){return g[x]=O,this},getViewer:function(x){return g[x]||null},getViewers:function(){return g},createViewer:function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O=(0,ye.isUndefined)(x.type)?u:x.type,W=this.getViewer(O)&&this.getViewer(O).clone(),X=document.createElement("div"),ie=document.createElement("textarea");return X.appendChild(ie),W.set(x),W.init(ie),W.setElement(X),W},updateViewer:function(x,O){x.setContent(O)},getCode:function(x,O){var W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};W.em=f.em;var X=this.getGenerator(O);return X?X.build(x,W):""},loadDefaultGenerators:function(){for(var x in D)this.addGenerator(x,D[x]);return this},loadDefaultViewers:function(){for(var x in T)this.addViewer(x,T[x]);return this},destroy:function(){[f,v,D,g,T].forEach(function(x){return{}})}}}},8795:(Je,Se,b)=>{"use strict";b.d(Se,{U:()=>te,Z:()=>$});var ye=b(2316),we=b.n(ye),J=b(9050),Y=b(6183),N=Number.MAX_VALUE,te=function(L){var w=/(-?\d*\.?\d+)\w{0,}/.exec(L);return w?w[0]:""};let $=we().Model.extend({initialize:function(){(0,J.bindAll)(this,"sortRules"),this.compCls=[],this.ids=[]},buildFromModel:function(L){var w=this,y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},P="",A=this.em,k=A&&A.getConfig("avoidInlineStyle"),B=L.styleToString(),G=L.get("classes");this.ids.push("#".concat(L.getId())),G.each(function(H){return w.compCls.push(H.getFullName())}),!k&&B&&(P="#".concat(L.getId(),"{").concat(B,"}"));var M=L.components();return M.each(function(H){return P+=w.buildFromModel(H,y)}),P},build:function(L){var w=this,y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},P=y.json,A=y.em||"",k=y.cssc||A&&A.get("CssComposer");this.em=A,this.compCls=[],this.ids=[],this.model=L;var B=[],G=L?this.buildFromModel(L,y):"",M=(0,J.isUndefined)(y.clearStyles)&&A?A.getConfig("clearStyles"):y.clearStyles;if(k){var H=y.rules||k.getAll(),Z={},_=[];y.onlyMatched&&L&&(0,Y.hasWin)()&&(H=this.matchedRules(L,H)),H.forEach(function(C){var z=C.getAtRule();if(z){var I=Z[z];I?I.push(C):Z[z]=[C]}else{var p=w.buildFromRule(C,_,y);P?B.push(p):G+=p}}),this.sortMediaObject(Z).forEach(function(C){var z="",I=C.key;C.value.forEach(function(p){var d=w.buildFromRule(p,_,y);p.get("singleAtRule")?G+="".concat(I,"{").concat(d,"}"):z+=d,P&&B.push(d)}),z&&(G+="".concat(I,"{").concat(z,"}"))}),A&&M&&H.remove&&H.remove(_)}return P?B.filter(function(C){return C}):G},buildFromRule:function(L,w){var y,P=this,A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},k="",B=this.model,G=L.selectorsToString({skipAdd:1}),M=L.get("selectorsAdd"),H=L.get("singleAtRule");if(L.get("selectors").each(function(_){var C=_.getFullName();(P.compCls.indexOf(C)>=0||P.ids.indexOf(C)>=0||A.keepUnusedStyles)&&(y=1)}),G&&y||M||H||!B){var Z=L.getDeclaration({body:1});Z&&(A.json?k=L:k+=Z)}else w.push(L);return k},matchedRules:function(L,w){var y=this,P=L.getEl(),A=[];return w.forEach(function(k){try{k.selectorsToString().split(",").some(function(B){return P.matches(y.__cleanSelector(B))})&&A.push(k)}catch{}}),L.components().forEach(function(k){A=A.concat(y.matchedRules(k,w))}),A=A.filter(function(k,B){return A.indexOf(k)===B})},getQueryLength:function(L){var w=/(-?\d*\.?\d+)\w{0,}/.exec(L);return w?parseFloat(w[1]):N},sortMediaObject:function(){var L=this,w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},y=[];return(0,J.each)(w,function(P,A){return y.push({key:A,value:P})}),y.sort(function(P,A){var k=[P.key,A.key].every(function(M){return M.indexOf("min-width")!==-1}),B=k?P.key:A.key,G=k?A.key:P.key;return L.getQueryLength(B)-L.getQueryLength(G)})},sortRules:function(L,w){var y=function(B){return B.get("mediaText")},P=[y(L),y(w)].every(function(B){return B.indexOf("min-width")!==-1}),A=y(P?L:w),k=y(P?w:L);return this.getQueryLength(A)-this.getQueryLength(k)},__cleanSelector:function(L){return L.split(" ").map(function(w){return w.split(":")[0]}).join(" ")}})},289:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>y});var ye=b(2982),we=b(4942),J=b(9050),Y=b(238);let N={stylePrefix:"com-",defaults:[],strict:1};var te=b(9138);function $(P,A){var k=Object.keys(P);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(P);A&&(B=B.filter(function(G){return Object.getOwnPropertyDescriptor(P,G).enumerable})),k.push.apply(k,B)}return k}function L(P){for(var A=1;A<arguments.length;A++){var k=arguments[A]!=null?arguments[A]:{};A%2?$(Object(k),!0).forEach(function(B){(0,we.Z)(P,B,k[B])}):Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(k)):$(Object(k)).forEach(function(B){Object.defineProperty(P,B,Object.getOwnPropertyDescriptor(k,B))})}return P}var w=[["preview","Preview","preview"],["resize","Resize","resize"],["fullscreen","Fullscreen","fullscreen"],["copy","CopyComponent"],["paste","PasteComponent"],["canvas-move","CanvasMove"],["canvas-clear","CanvasClear"],["open-code","ExportTemplate","export-template"],["open-layers","OpenLayers","open-layers"],["open-styles","OpenStyleManager","open-sm"],["open-traits","OpenTraitManager","open-tm"],["open-blocks","OpenBlocks","open-blocks"],["open-assets","OpenAssets","open-assets"],["component-select","SelectComponent","select-comp"],["component-outline","SwitchVisibility","sw-visibility"],["component-offset","ShowOffset","show-offset"],["component-move","MoveComponent","move-comp"],["component-next","ComponentNext"],["component-prev","ComponentPrev"],["component-enter","ComponentEnter"],["component-exit","ComponentExit","select-parent"],["component-delete","ComponentDelete"],["component-style-clear","ComponentStyleClear"],["component-drag","ComponentDrag"]];let y=function(){var P,A={},k={},B={},G={};return{CommandAbstract:Y.default,name:"Commands",init:function(){var M=this,H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};A=L(L({},N),H),P=A.em;var Z=A.pStylePrefix;return Z&&(A.stylePrefix=Z+A.stylePrefix),Object.keys(A.defaults).forEach(function(_){var C=A.defaults[_];C.id&&M.add(C.id,C)}),B["tlb-delete"]={run:function(_){return _.runCommand("core:component-delete")}},B["tlb-clone"]={run:function(_){_.runCommand("core:copy"),_.runCommand("core:paste",{action:"clone-component"})}},B["tlb-move"]={run:function(_,C){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},I=_.getModel(),p=z&&z.event,d=z.target,f=d||_.getSelected(),v=d?[d]:(0,ye.Z)(_.getSelectedAll()),D=p&&p.type=="dragstart",g={preserveSelected:1},T=["absolute","translate"];if(!f||!f.get("draggable"))return I.logWarning("The element is not draggable");var u=f.get("dmode")||I.get("dmode"),x=function(){return I.stopDefault(g)},O=(0,J.includes)(T,u);v.forEach(function(ce){return ce.trigger("disable")}),D?setTimeout(x,0):x();var W=function(ce){I.trigger("".concat(te.OA,":start"),ce)},X=function(ce){I.trigger(te.OA,ce)},ie=function(ce,F,l){v.forEach(function(s){return s.set("status","selected")}),_.select(v),f.emitUpdate(),I.trigger("".concat(te.OA,":end"),l),setTimeout(function(){return I.runDefault(g)}),(O||l.cancelled)&&I.set("_cmpDrag",1)};if(O)_.runCommand("core:component-drag",{guidesInfo:1,mode:u,target:f,onStart:W,onDrag:X,onEnd:ie,event:p});else{D&&p.dataTransfer.setDragImage(f.view.el,0,0);var le=_.Commands.get("move-comp");le.onStart=W,le.onDrag=X,le.onEndMoveFromModel=ie,le.initSorterFromModels(v)}v.forEach(function(ce){return ce.set("status","freezed-selected")})}},B["core:undo"]=function(_){return _.UndoManager.undo()},B["core:redo"]=function(_){return _.UndoManager.redo()},w.forEach(function(_){var C=_[2],z=b(2828)("./".concat(_[1])).default,I="core:".concat(_[0]);B[I]=z,C&&(B[C]=z,["run","stop"].forEach(function(p){P.on("".concat(p,":").concat(C),function(){for(var d,f=arguments.length,v=new Array(f),D=0;D<f;D++)v[D]=arguments[D];return(d=P).trigger.apply(d,["".concat(p,":").concat(I)].concat(v))})}))}),A.em&&(A.model=A.em.get("Canvas")),this.loadDefaultCommands(),this},add:function(M,H){return(0,J.isFunction)(H)&&(H={run:H}),H.stop||(H.noStop=1),delete H.initialize,H.id=M,k[M]=Y.default.extend(H),this},get:function(M){var H=k[M];return(0,J.isFunction)(H)?(H=new H(A),k[M]=H):H||P.logWarning("'".concat(M,"' command not found")),H},extend:function(M){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Z=this.get(M);if(Z){var _=L(L({},Z.constructor.prototype),H);this.add(M,_);var C=w.filter(function(z){return"core:".concat(z[0])===M&&z[2]})[0];C&&this.add(C[2],_)}return this},has:function(M){return!!k[M]},getAll:function(){return k},run:function(M){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.runCommand(this.get(M),H)},stop:function(M){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.stopCommand(this.get(M),H)},isActive:function(M){return this.getActive().hasOwnProperty(M)},getActive:function(){return G},loadDefaultCommands:function(){for(var M in B)this.add(M,B[M]);return this},runCommand:function(M){var H,Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(M&&M.run){var _=M.id,C=P.get("Editor");this.isActive(_)&&!Z.force&&A.strict||(H=C&&M.callRun(C,Z),_&&M.stop&&!M.noStop&&!Z.abort&&(G[_]=H))}return H},stopCommand:function(M){var H,Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(M&&M.run){var _=M.id,C=P.get("Editor");(this.isActive(_)||Z.force||!A.strict)&&(_&&delete G[_],H=M.callStop(C,Z))}return H},create:function(M){return M.stop||(M.noStop=1),new(Y.default.extend(M))(A)},destroy:function(){[P,A,k,B,G].forEach(function(M){return{}})}}}},7202:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>ye});let ye={run:function(we){we.DomComponents.clear(),we.CssComposer.clear()}}},327:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>Y});var ye=b(9050),we=b(6183),J=b(5610);let Y={run:function(N){(0,ye.bindAll)(this,"onKeyUp","enableDragger","disableDragger"),this.editor=N,this.canvasModel=this.canvas.getCanvasView().model,this.toggleMove(1)},stop:function(N){this.toggleMove(),this.disableDragger()},onKeyUp:function(N){(0,we.getKeyChar)(N)===" "&&this.editor.stopCommand(this.id)},enableDragger:function(N){this.toggleDragger(1,N)},disableDragger:function(N){this.toggleDragger(0,N)},toggleDragger:function(N,te){var $=this.canvasModel,L=this.em,w=this.dragger,y=N?"add":"remove";this.getCanvas().classList[y]("".concat(this.ppfx,"is__grabbing")),w||(w=new J.Z({getPosition:function(){return{x:$.get("x"),y:$.get("y")}},setPosition:function(P){var A=P.x,k=P.y;$.set({x:A,y:k})},onStart:function(P,A){L.trigger("canvas:move:start",A)},onDrag:function(P,A){L.trigger("canvas:move",A)},onEnd:function(P,A){L.trigger("canvas:move:end",A)}}),this.dragger=w),N?w.start(te):w.stop()},toggleMove:function(N){var te=this.ppfx,$=N?"add":"remove",L=N?"on":"off",w={on:we.on,off:we.off},y=this.getCanvas(),P=["".concat(te,"is__grab")];!N&&P.push("".concat(te,"is__grabbing")),P.forEach(function(A){return y.classList[$](A)}),w[L](document,"keyup",this.onKeyUp),w[L](y,"mousedown",this.enableDragger),w[L](document,"mouseup",this.disableDragger)}}},238:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>we});var ye=b(2316);let we=ye.Model.extend({initialize:function(J){this.config=J||{},this.editorModel=this.em=this.config.em||{},this.pfx=this.config.stylePrefix,this.ppfx=this.config.pStylePrefix,this.hoverClass=this.pfx+"hover",this.badgeClass=this.pfx+"badge",this.plhClass=this.pfx+"placeholder",this.freezClass=this.ppfx+"freezed",this.canvas=this.em.get&&this.em.get("Canvas"),this.init(this.config)},onFrameScroll:function(J){},getCanvas:function(){return this.canvas.getElement()},getCanvasBody:function(){return this.canvas.getBody()},getCanvasTools:function(){return this.canvas.getToolsEl()},offset:function(J){var Y=J.getBoundingClientRect();return{top:Y.top+J.ownerDocument.body.scrollTop,left:Y.left+J.ownerDocument.body.scrollLeft}},init:function(J){},callRun:function(J){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},N=this.id;if(J.trigger("run:".concat(N,":before"),Y),!Y||!Y.abort){var te=Y.sender||J,$=this.run(J,te,Y);return J.trigger("run:".concat(N),$,Y),J.trigger("run",N,$,Y),$}J.trigger("abort:".concat(N),Y)},callStop:function(J){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},N=this.id,te=Y.sender||J;J.trigger("stop:".concat(N,":before"),Y);var $=this.stop(J,te,Y);return J.trigger("stop:".concat(N),$,Y),J.trigger("stop",N,$,Y),$},stopCommand:function(){this.em.get("Commands").stop(this.id)},run:function(J,Y){},stop:function(J,Y){}})},5820:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>J});var ye=b(2982),we=b(9050);let J={run:function(Y,N){var te=this,$=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},L=[],w=$.component||Y.getSelectedAll();return(w=(0,we.isArray)(w)?(0,ye.Z)(w):[w]).filter(Boolean).forEach(function(y){if(!y.get("removable"))return L.push(y),te.em.logWarning("The element is not removable",{component:y});y.remove()}),Y.select(L),w}}},6694:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>$});var ye=b(4942),we=b(9050),J=b(5610);function Y(L,w){var y=Object.keys(L);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(L);w&&(P=P.filter(function(A){return Object.getOwnPropertyDescriptor(L,A).enumerable})),y.push.apply(y,P)}return y}function N(L){for(var w=1;w<arguments.length;w++){var y=arguments[w]!=null?arguments[w]:{};w%2?Y(Object(y),!0).forEach(function(P){(0,ye.Z)(L,P,y[P])}):Object.getOwnPropertyDescriptors?Object.defineProperties(L,Object.getOwnPropertyDescriptors(y)):Y(Object(y)).forEach(function(P){Object.defineProperty(L,P,Object.getOwnPropertyDescriptor(y,P))})}return L}var te="dmode";let $={run:function(L,w){var y=this,P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};(0,we.bindAll)(this,"setPosition","onStart","onDrag","onEnd","getPosition","getGuidesStatic","renderGuide","getGuidesTarget");var A=P.target,k=P.event,B=P.mode,G=P.dragger,M=G===void 0?{}:G,H=A.getEl(),Z=N({doc:H.ownerDocument,onStart:this.onStart,onEnd:this.onEnd,onDrag:this.onDrag,getPosition:this.getPosition,setPosition:this.setPosition,guidesStatic:function(){return y.guidesStatic},guidesTarget:function(){return y.guidesTarget}},M);this.setupGuides(),this.opts=P,this.editor=L,this.em=L.getModel(),this.target=A,this.isTran=B=="translate",this.guidesContainer=this.getGuidesContainer(),this.guidesTarget=this.getGuidesTarget(),this.guidesStatic=this.getGuidesStatic();var _=this.dragger;return _?_.setOptions(Z):(_=new J.Z(Z),this.dragger=_),k&&_.start(k),this.toggleDrag(1),this.em.trigger("".concat(te,":start"),this.getEventOpts()),_},getEventOpts:function(){return{mode:this.opts.mode,target:this.target,guidesTarget:this.guidesTarget,guidesStatic:this.guidesStatic}},stop:function(){this.toggleDrag()},setupGuides:function(){(this.guides||[]).forEach(function(L){var w=L.guide;w&&w.parentNode.removeChild(w)}),this.guides=[]},getGuidesContainer:function(){var L=this,w=this.guidesEl;if(!w){var y=this.editor,P=this.em,A=this.opts,k=y.getConfig("stylePrefix"),B=document.createElement("div"),G=document.createElement("div"),M='<div class="'.concat(k,"guide-info__line ").concat(k,`danger-bg"> + <div class="`).concat(k,"guide-info__content ").concat(k,`danger-color"></div> + </div>`);(w=document.createElement("div")).className="".concat(k,"guides"),B.className="".concat(k,"guide-info ").concat(k,"guide-info__x"),G.className="".concat(k,"guide-info ").concat(k,"guide-info__y"),B.innerHTML=M,G.innerHTML=M,w.appendChild(B),w.appendChild(G),y.Canvas.getGlobalToolsEl().appendChild(w),this.guidesEl=w,this.elGuideInfoX=B,this.elGuideInfoY=G,this.elGuideInfoContentX=B.querySelector(".".concat(k,"guide-info__content")),this.elGuideInfoContentY=G.querySelector(".".concat(k,"guide-info__content")),P.on("canvas:update frame:scroll",(0,we.debounce)(function(){L.updateGuides(),A.debug&&L.guides.forEach(function(H){return L.renderGuide(H)})},200))}return w},getGuidesStatic:function(){var L=this,w=[],y=this.target.getEl(),P=y.parentNode,A=P===void 0?{}:P;return(0,we.each)(A.children,function(k){return w=w.concat(y!==k?L.getElementGuides(k):[])}),w.concat(this.getElementGuides(A))},getGuidesTarget:function(){return this.getElementGuides(this.target.getEl())},updateGuides:function(L){var w,y,P=this;(L||this.guides).forEach(function(A){var k=A.origin,B=w===k?y:P.getElementPos(k);w=k,y=B,(0,we.each)(P.getGuidePosUpdate(A,B),function(G,M){return A[M]=G}),A.originRect=B})},getGuidePosUpdate:function(L,w){var y={},P=w.top,A=w.height,k=w.left,B=w.width;switch(L.type){case"t":y.y=P;break;case"b":y.y=P+A;break;case"l":y.x=k;break;case"r":y.x=k+B;break;case"x":y.x=k+B/2;break;case"y":y.y=P+A/2}return y},renderGuide:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},w=L.guide||document.createElement("div"),y="px",P=L.active?2:1,A=w.children[0];return w.style="position: absolute; background-color: ".concat(L.active?"green":"red",";"),w.children.length||((A=document.createElement("div")).style="position: absolute; color: red; padding: 5px; top: 0; left: 0;",w.appendChild(A)),L.y?(w.style.width="100%",w.style.height="".concat(P).concat(y),w.style.top="".concat(L.y).concat(y),w.style.left=0):(w.style.width="".concat(P).concat(y),w.style.height="100%",w.style.left="".concat(L.x).concat(y),w.style.top="0".concat(y)),!L.guide&&this.guidesContainer.appendChild(w),w},getElementPos:function(L){return this.editor.Canvas.getElementPos(L,{noScroll:1})},getElementGuides:function(L){var w=this,y=this.opts,P=this.getElementPos(L),A=P.top,k=P.height,B=P.left,G=P.width,M=[{type:"t",y:A},{type:"b",y:A+k},{type:"l",x:B},{type:"r",x:B+G},{type:"x",x:B+G/2},{type:"y",y:A+k/2}].map(function(H){return N(N({},H),{},{origin:L,originRect:P,guide:y.debug&&w.renderGuide(H)})});return M.forEach(function(H){return w.guides.push(H)}),M},getTranslate:function(L){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x",y=0;return(L||"").split(" ").forEach(function(P){var A=P.trim(),k="translate".concat(w.toUpperCase(),"(");A.indexOf(k)===0&&(y=parseFloat(A.replace(k,"")))}),y},setTranslate:function(L,w,y){var P="translate".concat(w.toUpperCase(),"("),A="".concat(P).concat(y,")"),k=(L||"").split(" ").map(function(B){return B.trim().indexOf(P)===0&&(B=A),B}).join(" ");return k.indexOf(P)<0&&(k+=" ".concat(A)),k},getPosition:function(){var L=this.target,w=this.isTran,y=L.getStyle(),P=y.left,A=y.top,k=y.transform,B=0,G=0;return w?(B=this.getTranslate(k),G=this.getTranslate(k,"y")):(B=parseFloat(P||0),G=parseFloat(A||0)),{x:B,y:G}},setPosition:function(L){var w=L.x,y=L.y,P=L.end,A=L.position,k=L.width,B=L.height,G=this.target,M=this.isTran,H=this.em,Z=P?"":1,_="".concat(w).concat("px"),C="".concat(y).concat("px"),z={};if(M){var I=G.getStyle().transform||"";I=this.setTranslate(I,"x",_),z={transform:I=this.setTranslate(I,"y",C),en:Z},G.addStyle(z,{avoidStore:!P})}else{var p={position:A,width:k,height:B},d={left:_,top:C,en:Z};(0,we.keys)(p).forEach(function(f){var v=p[f];v&&(d[f]=v)}),z=d,G.addStyle(z,{avoidStore:!P})}H.getSelected()&&(0,we.keys)(z).forEach(function(f){return H.trigger("update:component:style:".concat(f))})},_getDragData:function(){var L=this.target;return{target:L,parent:L.parent(),index:L.index()}},onStart:function(L){var w=this.target,y=this.editor,P=this.isTran,A=this.opts,k=A.center,B=A.onStart,G=y.Canvas,M=w.getStyle(),H="absolute",Z=[H,"relative"];if(B&&B(this._getDragData()),!P&&M.position!==H){var _,C=G.offset(w.getEl()),z=C.left,I=C.top,p=C.width,d=C.height,f=w.parent();do{var v=f.getStyle();_=Z.indexOf(v.position)>=0?f:null,f=f.parent()}while(f&&!_);if(k){var D=G.getMouseRelativeCanvas(L);z=D.x,I=D.y}else if(_){var g=G.offset(_.getEl());z-=g.left,I-=g.top}this.setPosition({x:z,y:I,width:"".concat(p,"px"),height:"".concat(d,"px"),position:H})}},onDrag:function(){var L=this,w=this.guidesTarget,y=this.opts,P=y.onDrag;this.updateGuides(w),y.debug&&w.forEach(function(A){return L.renderGuide(A)}),y.guidesInfo&&this.renderGuideInfo(w.filter(function(A){return A.active})),P&&P(this._getDragData())},onEnd:function(L,w){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},P=this.editor,A=this.opts,k=this.id,B=A.onEnd;B&&B(L,y,N(N({event:L},y),this._getDragData())),P.stopCommand(k),this.hideGuidesInfo(),this.em.trigger("".concat(te,":end"),this.getEventOpts())},hideGuidesInfo:function(){var L=this;["X","Y"].forEach(function(w){var y=L["elGuideInfo".concat(w)];y&&(y.style.display="none")})},renderGuideInfo:function(){var L=this,w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],y=this.guidesStatic;this.hideGuidesInfo(),w.forEach(function(P){var A=P.origin,k=P.x,B=L.getElementPos(A),G=(0,we.isUndefined)(k)?"y":"x",M=G==="y",H=B[M?"left":"top"],Z=B.rect[M?"left":"top"],_=M?H+B.width:H+B.height,C=M?Z+B.rect.width:Z+B.rect.height,z=L["elGuideInfo".concat(G.toUpperCase())],I=L["elGuideInfoContent".concat(G.toUpperCase())],p=z.style,d=y.filter(function(o){return o.type===P.type}).map(function(o){var h=o.originRect,m=h.left,j=h.width,K=h.top,ve=h.height,E=M?m+j:K+ve;return{gap:E<H?H-E:(M?m:K)-_,guide:o}}).filter(function(o){return o.gap>0}).sort(function(o,h){return o.gap-h.gap}).map(function(o){return o.guide})[0];if(d){var f=d.originRect,v=f.left,D=f.width,g=f.top,T=f.height,u=f.rect,x=M?v<B.left:g<B.top,O=M?v:g,W=M?u.left:u.top,X=M?v+D:g+T,ie=M?u.left+u.width:u.top+u.height,le=M?P.y:P.x,ce=x?X:_,F="".concat(le,"px"),l=x?H-X:O-_,s=x?Z-ie:W-C;p.display="",p[M?"top":"left"]=F,p[M?"left":"top"]="".concat(ce,"px"),p[M?"width":"height"]="".concat(l,"px"),I.innerHTML="".concat(Math.round(s),"px"),L.em.trigger("".concat(te,":active"),N(N({},L.getEventOpts()),{},{guide:P,guidesStatic:y,matched:d,posFirst:le,posSecond:ce,size:l,sizeRaw:s,elGuideInfo:z,elGuideInfoCnt:I}))}})},toggleDrag:function(L){var w=this.ppfx,y=this.editor,P=L?"add":"remove",A=["".concat(w,"is__grabbing")],k=y.Canvas,B=k.getBody();A.forEach(function(G){return B.classList[P](G)}),k[L?"startAutoscroll":"stopAutoscroll"]()}}},1947:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>ye});let ye={run:function(we){if(we.Canvas.hasFocus()){var J=[];we.getSelectedAll().forEach(function(Y){var N=Y.components(),te=N&&N.filter(function($){return $.get("selectable")})[0];te&&J.push(te)}),J.length&&we.select(J)}}}},3888:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>ye});let ye={run:function(we,J){var Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(we.Canvas.hasFocus()||Y.force){var N=[];we.getSelectedAll().forEach(function(te){for(var $=te.parent();$&&!$.get("selectable");)$=$.parent();$&&N.push($)}),N.length&&we.select(N)}}}},5883:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>ye});let ye={run:function(we){if(we.Canvas.hasFocus()){var J=[];we.getSelectedAll().forEach(function(Y){var N=Y.parent();if(N){var te,$=N.components().length,L=0,w=0;do L++,te=(w=Y.index()+L)<=$?N.getChildAt(w):null;while(te&&!te.get("selectable"));J.push(te||Y)}}),J.length&&we.select(J)}}}},7508:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>ye});let ye={run:function(we){if(we.Canvas.hasFocus()){var J=[];we.getSelectedAll().forEach(function(Y){var N=Y.parent();if(N){var te,$=0,L=0;do $++,te=(L=Y.index()-$)>=0?N.getChildAt(L):null;while(te&&!te.get("selectable"));J.push(te||Y)}}),J.length&&we.select(J)}}}},8769:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>we});var ye=b(9050);let we={run:function(J,Y){var N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},te=N.target,$=[];if(!te.get("styles"))return $;var L=te.get("type"),w=J.Pages.getAllWrappers(),y=(0,ye.flatten)(w.map(function(A){return A.findType(L)})).length;if(!y){var P=J.CssComposer.getAll();$=P.filter(function(A){return A.get("group")==="cmp:".concat(L)}),P.remove($)}return $}}},2213:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>we});var ye=b(2982);let we={run:function(J){var Y=J.getModel(),N=(0,ye.Z)(J.getSelectedAll());N.length&&Y.set("clipboard",N)}}},5049:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>te});var ye=b(9050),we=b(2316),J=b.n(we),Y=b(2620),N=J().$;let te=(0,ye.extend)({},Y.default,{init:function($){(0,ye.bindAll)(this,"startDelete","stopDelete","onDelete"),this.hoverClass=this.pfx+"hover-delete",this.badgeClass=this.pfx+"badge-red"},enable:function(){this.$el.find("*").mouseover(this.startDelete).mouseout(this.stopDelete).click(this.onDelete)},startDelete:function($){$.stopPropagation();var L=N($.target);L.data("model").get("removable")&&(L.addClass(this.hoverClass),this.attachBadge(L.get(0)))},stopDelete:function($){$.stopPropagation(),N($.target).removeClass(this.hoverClass),this.badge&&this.badge.css({left:-1e3,top:-1e3})},onDelete:function($){$.stopPropagation();var L=N($.target);L.data("model").get("removable")&&(L.data("model").destroy(),this.removeBadge(),this.clean())},updateBadgeLabel:function($){this.badge.html("Remove "+$.getName())}})},3775:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>J});var ye=b(2316),we=b.n(ye)().$;let J={run:function(Y,N){var te=this;N&&N.set&&N.set("active",0);var $=Y.getConfig(),L=Y.Modal,w=$.stylePrefix;if(this.cm=Y.CodeManager||null,!this.$editors){var y=this.buildEditor("htmlmixed","hopscotch","HTML"),P=this.buildEditor("css","hopscotch","CSS");this.htmlEditor=y.el,this.cssEditor=P.el;var A=we('<div class="'.concat(w,'export-dl"></div>'));A.append(y.$el).append(P.$el),this.$editors=A}L.open({title:$.textViewCode,content:this.$editors}).getModel().once("change:open",function(){return Y.stopCommand(te.id)}),this.htmlEditor.setContent(Y.getHtml()),this.cssEditor.setContent(Y.getCss())},stop:function(Y){var N=Y.Modal;N&&N.close()},buildEditor:function(Y,N,te){var $=document.createElement("textarea");!this.codeMirror&&(this.codeMirror=this.cm.getViewer("CodeMirror"));var L=this.codeMirror.clone().set({label:te,codeName:Y,theme:N,input:$}),w=new this.cm.EditorView({model:L,config:this.cm.getConfig()}).render().$el;return L.init($),{el:L,$el:w}}}},58:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>we});var ye=b(9050);let we={isEnabled:function(){var J=document;return J.fullscreenElement||J.webkitFullscreenElement||J.mozFullScreenElement?1:0},enable:function(J){var Y="";return J.requestFullscreen?J.requestFullscreen():J.webkitRequestFullscreen?(Y="webkit",J.webkitRequestFullscreen()):J.mozRequestFullScreen?(Y="moz",J.mozRequestFullScreen()):J.msRequestFullscreen?J.msRequestFullscreen():console.warn("Fullscreen not supported"),Y},disable:function(){var J=document;this.isEnabled()&&(J.exitFullscreen?J.exitFullscreen():J.webkitExitFullscreen?J.webkitExitFullscreen():J.mozCancelFullScreen?J.mozCancelFullScreen():J.msExitFullscreen&&J.msExitFullscreen())},fsChanged:function(J,Y){var N=(J||"")+"fullscreenchange";this.isEnabled()||(this.stop(null,this.sender),document.removeEventListener(N,this.fsChanged))},run:function(J,Y){var N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.sender=Y;var te=N.target,$=(0,ye.isElement)(te)?te:document.querySelector(te),L=this.enable($||J.getContainer());this.fsChanged=this.fsChanged.bind(this,L),document.addEventListener(L+"fullscreenchange",this.fsChanged),J.trigger("change:canvasOffset")},stop:function(J,Y){Y&&Y.set&&Y.set("active",!1),this.disable(),J&&J.trigger("change:canvasOffset")}}},8658:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>L});var ye=b(9050),we=b(2316),J=b.n(we),Y=b(6183),N=b(2620),te=b(8463),$=J().$;let L=(0,ye.extend)({},te.default,N.default,{init:function(w){N.default.init.apply(this,arguments),(0,ye.bindAll)(this,"initSorter","rollback","onEndMove"),this.opt=w,this.hoverClass=this.ppfx+"highlighter-warning",this.badgeClass=this.ppfx+"badge-warning",this.noSelClass=this.ppfx+"no-select"},enable:function(){for(var w=arguments.length,y=new Array(w),P=0;P<w;P++)y[P]=arguments[P];N.default.enable.apply(this,y),this.getBadgeEl().addClass(this.badgeClass),this.getHighlighterEl().addClass(this.hoverClass);var A=this.$wrapper;A.css("cursor","move"),A.on("mousedown",this.initSorter),A.addClass(this.noSelClass)},toggleClipboard:function(){},initSorter:function(w){var y=$(w.target).data("model").get("draggable");y&&(this.cacheEl=null,this.startSelectPosition(w.target,this.frameEl.contentDocument),this.sorter.draggable=y,this.sorter.onEndMove=this.onEndMove.bind(this),this.stopSelectComponent(),this.$wrapper.off("mousedown",this.initSorter),(0,Y.on)(this.getContentWindow(),"keydown",this.rollback))},initSorterFromModel:function(w){var y=w.get("draggable");if(y){this.cacheEl=null;var P=w.view.el;this.startSelectPosition(P,this.frameEl.contentDocument),this.sorter.draggable=y,this.sorter.onEndMove=this.onEndMoveFromModel.bind(this),this.stopSelectComponent(),(0,Y.on)(this.getContentWindow(),"keydown",this.rollback)}},initSorterFromModels:function(w){this.cacheEl=null;var y=w[w.length-1],P=(this.em.get("currentFrame")||{}).model,A=y.getEl(P),k=A.ownerDocument;this.startSelectPosition(A,k,{onStart:this.onStart}),this.sorter.draggable=y.get("draggable"),this.sorter.toMove=w,this.sorter.onMoveClb=this.onDrag,this.sorter.onEndMove=this.onEndMoveFromModel.bind(this),this.stopSelectComponent(),(0,Y.on)(this.getContentWindow(),"keydown",this.rollback)},onEndMoveFromModel:function(){(0,Y.off)(this.getContentWindow(),"keydown",this.rollback)},onEndMove:function(){this.enable(),(0,Y.off)(this.getContentWindow(),"keydown",this.rollback)},onSelect:function(w,y){},rollback:function(w,y){((w.which||w.keyCode)==27||y)&&(this.sorter.moved=!1,this.sorter.endMove())},getBadgeEl:function(){return this.$badge||(this.$badge=$(this.getBadge())),this.$badge},getHighlighterEl:function(){return this.$hl||(this.$hl=$(this.canvas.getHighlighter())),this.$hl},stop:function(){for(var w=arguments.length,y=new Array(w),P=0;P<w;P++)y[P]=arguments[P];N.default.stop.apply(this,y),this.getBadgeEl().removeClass(this.badgeClass),this.getHighlighterEl().removeClass(this.hoverClass);var A=this.$wrapper;A.css("cursor","").unbind().removeClass(this.noSelClass)}})},9617:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>J});var ye=b(9050),we=b(9283);let J={open:function(Y){var N=this,te=this.editor,$=this.title,L=this.config,w=this.am,y=L.custom;if((0,ye.isFunction)(y.open))return y.open(w.__customData());te.Modal.open({title:$,content:Y}).onceClose(function(){return te.stopCommand(N.id)})},close:function(){var Y=this.config.custom;if((0,ye.isFunction)(Y.close))return Y.close(this.am.__customData());var N=this.editor.Modal;N&&N.close()},run:function(Y,N){var te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},$=Y.AssetManager,L=$.getConfig(),w=te.types,y=w===void 0?[]:w,P=te.accept,A=te.select;if(this.title=te.modalTitle||Y.t("assetManager.modalTitle")||"",this.editor=Y,this.config=L,this.am=$,$.setTarget(te.target),$.onClick(te.onClick),$.onDblClick(te.onDblClick),$.onSelect(te.onSelect),$.__behaviour({select:A,types:y,options:te}),L.custom)this.rendered=this.rendered||(0,we.ut)("div"),this.rendered.className="".concat(L.stylePrefix,"custom-wrp"),$.__behaviour({container:this.rendered}),$.__trgCustom();else{if(!this.rendered||y){var k=$.getAll().filter(function(G){return G});y&&y.length&&(k=k.filter(function(G){return y.indexOf(G.get("type"))!==-1})),$.render(k),this.rendered=$.getContainer()}if(P){var B=this.rendered.querySelector("input#".concat(L.stylePrefix,"uploadFile"));B&&B.setAttribute("accept",P)}}return this.open(this.rendered),this},stop:function(Y){this.editor=Y,this.close(this.rendered)}}},5821:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>J});var ye=b(9050),we=b(9283);let J={open:function(){var Y=this.container,N=this.editor,te=this.bm,$=this.config,L=$.custom,w=$.appendTo;if((0,ye.isFunction)(L.open))return L.open(te.__customData());if(this.firstRender&&!w){var y="views-container",P=N.Panels;(P.getPanel(y)||P.addPanel({id:y})).set("appendContent",Y).trigger("change:appendContent"),L||Y.appendChild(te.render())}Y&&(Y.style.display="block")},close:function(){var Y=this.container,N=this.config.custom;if((0,ye.isFunction)(N.close))return N.close(this.bm.__customData());Y&&(Y.style.display="none")},run:function(Y){var N=Y.Blocks;this.config=N.getConfig(),this.firstRender=!this.container,this.container=this.container||(0,we.ut)("div"),this.editor=Y,this.bm=N;var te=this.container;N.__behaviour({container:te}),this.config.custom&&N.__trgCustom(),this.open()},stop:function(){this.close()}}},3452:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>ye});let ye={run:function(we){var J=we.LayerManager,Y=we.Panels;if(!J.getConfig().appendTo){if(!this.layers){var N="views-container",te=document.createElement("div"),$=Y.getPanel(N)||Y.addPanel({id:N});te.appendChild(J.render()),$.set("appendContent",te).trigger("change:appendContent"),this.layers=te}this.layers.style.display="block"}},stop:function(){var we=this.layers;we&&(we.style.display="none")}}},2840:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>J});var ye=b(2316),we=b.n(ye)().$;let J={run:function(Y,N){if(this.sender=N,!this.$cn){var te=Y.getConfig(),$=Y.Panels,L="change:appendContent";this.$cn=we("<div></div>"),this.$cn2=we("<div></div>"),this.$cn.append(this.$cn2);var w=Y.DeviceManager;if(w&&te.showDevices){var y=$.addPanel({id:"devices-c"}),P=w.render();y.set("appendContent",P).trigger(L)}var A=Y.SelectorManager;this.slm=A;var k=A.getConfig();k.custom?A.__trgCustom({container:this.$cn2.get(0)}):k.appendTo||this.$cn2.append(A.render([]));var B=Y.StyleManager;this.sm=B;var G=B.getConfig(),M=G.stylePrefix;this.$header=we('<div class="'.concat(M,'header">').concat(Y.t("styleManager.empty"),"</div>")),this.$cn.append(this.$header),G.custom?B.__trgCustom({container:this.$cn2.get(0)}):G.appendTo||this.$cn2.append(B.render());var H="views-container";this.panel=$.getPanel(H),this.panel||(this.panel=$.addPanel({id:H})),this.panel.set("appendContent",this.$cn).trigger(L),this.em=Y.getModel(),this.listenTo(this.em,B.events.target,this.toggleSm)}this.toggleSm()},toggleSm:function(){var Y,N,te,$,L=this.sender,w=this.sm;L&&L.get&&!L.get("active")||!w||(w.getSelected()?((Y=this.$cn2)===null||Y===void 0||Y.show(),(N=this.$header)===null||N===void 0||N.hide()):((te=this.$cn2)===null||te===void 0||te.hide(),($=this.$header)===null||$===void 0||$.show()))},stop:function(){var Y,N;(Y=this.$cn2)===null||Y===void 0||Y.hide(),(N=this.$header)===null||N===void 0||N.hide()}}},8644:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>J});var ye=b(2316),we=b.n(ye)().$;let J={run:function(Y,N){this.sender=N;var te=Y.getModel(),$=Y.Config.stylePrefix,L=Y.TraitManager,w=L.getConfig();if(!w.appendTo){if(!this.$cn){this.$cn=we("<div></div>"),this.$cn2=we("<div></div>"),this.$cn.append(this.$cn2),this.$header=we("<div>").append('<div class="'.concat(w.stylePrefix,'header">').concat(te.t("traitManager.empty"),"</div>")),this.$cn.append(this.$header),this.$cn2.append('<div class="'.concat($,'traits-label">').concat(te.t("traitManager.label"),"</div>")),this.$cn2.append(L.render());var y=Y.Panels;(y.getPanel("views-container")?y.getPanel("views-container"):y.addPanel({id:"views-container"})).set("appendContent",this.$cn.get(0)).trigger("change:appendContent"),this.target=Y.getModel(),this.listenTo(this.target,"component:toggled",this.toggleTm)}this.toggleTm()}},toggleTm:function(){var Y=this.sender;Y&&Y.get&&!Y.get("active")||(this.target.getSelectedAll().length===1?(this.$cn2.show(),this.$header.hide()):(this.$cn2.hide(),this.$header.show()))},stop:function(){this.$cn2&&this.$cn2.hide(),this.$header&&this.$header.hide()}}},560:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>we});var ye=b(9050);let we={run:function(J,Y){var N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},te=J.getModel(),$=te.get("clipboard"),L=J.getSelected();$&&L&&(J.getSelectedAll().forEach(function(w){if(w){var y=w.collection;if(y){var P,A={at:y.indexOf(w)+1,action:N.action||"paste-component"},k=$.filter(function(B){return B.get("copyable")});P=(0,ye.contains)($,w)&&w.get("copyable")?y.add(w.clone(),A):y.add(k.map(function(B){return B.clone()}),A),(P=(0,ye.isArray)(P)?P:[P]).forEach(function(B){return J.trigger("component:paste",B)})}}}),L.emitUpdate())}}},4944:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>Y});var ye=b(2982),we=b(9050),J="sw-visibility";let Y={getPanels:function(N){return this.panels||(this.panels=N.Panels.getPanels()),this.panels},preventDrag:function(N){N.abort=1},tglEffects:function(N){var te=this.em,$=N?"on":"off";if(te){var L=te.get("Canvas"),w=L.getBody(),y=L.getToolbarEl();y&&(y.style.display=N?"none":"");var P=w.querySelectorAll(".".concat(this.ppfx,"no-pointer"));(0,we.each)(P,function(A){return A.style.pointerEvents=N?"all":""}),te[$]("run:tlb-move:before",this.preventDrag)}},run:function(N,te){var $=this;this.sender=te,this.selected=(0,ye.Z)(N.getSelectedAll()),N.select(),this.shouldRunSwVisibility||(this.shouldRunSwVisibility=N.Commands.isActive(J)),this.shouldRunSwVisibility&&N.stopCommand(J),N.getModel().stopDefault();var L=this.getPanels(N),w=N.Canvas.getElement(),y=N.getEl(),P=N.Config.stylePrefix;if(!this.helper){var A=document.createElement("span");A.className="".concat(P,"off-prv fa fa-eye-slash"),y.appendChild(A),A.onclick=function(){return $.stopCommand()},this.helper=A}this.helper.style.display="inline-block",L.forEach(function(B){return B.set("visible",!1)});var k=w.style;k.width="100%",k.height="100%",k.top="0",k.left="0",k.padding="0",k.margin="0",N.refresh(),this.tglEffects(1)},stop:function(N){var te=this.sender,$=te===void 0?{}:te,L=this.selected;$.set&&$.set("active",0);var w=this.getPanels(N);this.shouldRunSwVisibility&&(N.runCommand(J),this.shouldRunSwVisibility=!1),N.getModel().runDefault(),w.forEach(function(y){return y.set("visible",!0)}),N.Canvas.getElement().setAttribute("style",""),L&&N.select(L),delete this.selected,this.helper&&(this.helper.style.display="none"),N.refresh(),this.tglEffects()}}},7538:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>J});var ye=b(4942);function we(Y,N){var te=Object.keys(Y);if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(Y);N&&($=$.filter(function(L){return Object.getOwnPropertyDescriptor(Y,L).enumerable})),te.push.apply(te,$)}return te}let J={run:function(Y,N,te){var $=te||{},L=Y.Canvas,w=L.getCanvasView(),y=function(A){for(var k=1;k<arguments.length;k++){var B=arguments[k]!=null?arguments[k]:{};k%2?we(Object(B),!0).forEach(function(G){(0,ye.Z)(A,G,B[G])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(B)):we(Object(B)).forEach(function(G){Object.defineProperty(A,G,Object.getOwnPropertyDescriptor(B,G))})}return A}({appendTo:L.getResizerEl(),prefix:Y.getConfig().stylePrefix,posFetcher:w.getElementPos.bind(w),mousePosFetcher:L.getMouseRelativePos},$.options||{}),P=this.canvasResizer;return P&&!$.forceNew||(this.canvasResizer=Y.Utils.Resizer.init(y),P=this.canvasResizer),P.setOptions(y),P.blur(),P.focus($.el),P},stop:function(){var Y;(Y=this.canvasResizer)===null||Y===void 0||Y.blur()}}},2620:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>_});var ye=b(1002),we=b(4942),J=b(2316),Y=b.n(J),N=b(9050),te=b(6183),$=b(9283),L=b(6602);function w(C,z){var I=Object.keys(C);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(C);z&&(p=p.filter(function(d){return Object.getOwnPropertyDescriptor(C,d).enumerable})),I.push.apply(I,p)}return I}function y(C){for(var z=1;z<arguments.length;z++){var I=arguments[z]!=null?arguments[z]:{};z%2?w(Object(I),!0).forEach(function(p){(0,we.Z)(C,p,I[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(I)):w(Object(I)).forEach(function(p){Object.defineProperty(C,p,Object.getOwnPropertyDescriptor(I,p))})}return C}let P=Y().View.extend({events:function(){return this.model.get("events")||{mousedown:"handleClick"}},attributes:function(){return this.model.get("attributes")},initialize:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},z=C.config,I=z===void 0?{}:z;this.em=I.em,this.editor=I.editor},handleClick:function(C){C.preventDefault(),C.stopPropagation();var z=this.editor,I=this.em,p=z.Canvas.getFrameEl().getBoundingClientRect(),d=p.left,f=p.top,v=y(y({},C),{},{clientX:C.clientX-d,clientY:C.clientY-f});I.trigger("toolbar:run:before"),this.execCommand(v)},execCommand:function(C){var z={event:C},I=this.model.get("command"),p=this.editor;typeof I=="function"&&I(p,null,z),typeof I=="string"&&p.runCommand(I,z)},render:function(){var C=this.editor,z=this.$el,I=this.model,p=I.get("id"),d=I.get("label"),f=C.getConfig("stylePrefix");return z.addClass("".concat(f,"toolbar-item")),p&&z.addClass("".concat(f,"toolbar-item__").concat(p)),d&&z.append(d),this}}),A=L.Z.extend({itemView:P,initialize:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.config={editor:C.editor||"",em:C.em},this.listenTo(this.collection,"reset",this.render)}}),k=Y().Model.extend({defaults:{command:"",attributes:{}}}),B=Y().Collection.extend({model:k});function G(C,z){var I=Object.keys(C);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(C);z&&(p=p.filter(function(d){return Object.getOwnPropertyDescriptor(C,d).enumerable})),I.push.apply(I,p)}return I}function M(C){for(var z=1;z<arguments.length;z++){var I=arguments[z]!=null?arguments[z]:{};z%2?G(Object(I),!0).forEach(function(p){(0,we.Z)(C,p,I[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(I)):G(Object(I)).forEach(function(p){Object.defineProperty(C,p,Object.getOwnPropertyDescriptor(I,p))})}return C}var H,Z=Y().$;let _={init:function(C){(0,N.bindAll)(this,"onHover","onOut","onClick","onFrameScroll","onFrameUpdated","onContainerChange")},enable:function(){this.frameOff=this.canvasOff=this.adjScroll=null,this.startSelectComponent(),H=1},startSelectComponent:function(){this.toggleSelectComponent(1),this.em.getSelected()&&this.onSelect()},stopSelectComponent:function(){this.toggleSelectComponent()},toggleSelectComponent:function(C){var z=this,I=this.em,p=I.getConfig("listenToEl"),d=I.getContainer().parentNode,f=C?"on":"off",v={on:te.on,off:te.off};!p.length&&d&&p.push(d),v[f](window,"resize",this.onFrameUpdated),v[f](p,"scroll",this.onContainerChange),I[f]("component:toggled component:update undo redo",this.onSelect,this),I[f]("change:componentHovered",this.onHovered,this),I[f]("component:resize styleable:change component:input",this.updateGlobalPos,this),I[f]("component:update:toolbar",this._upToolbar,this),I[f]("change:canvasOffset",this.updateAttached,this),I[f]("frame:updated",this.onFrameUpdated,this),I[f]("canvas:updateTools",this.onFrameUpdated,this),I.get("Canvas").getFrames().forEach(function(D){var g=D.view,T=g?.getWindow();T&&function(u,x){v[f](x,"mouseover",z.onHover),v[f](x,"mouseleave",z.onOut),v[f](x,"click touchend",z.onClick),v[f](u,"scroll",z.onFrameScroll,!0)}(T,g.getBody())})},onHover:function(C){C.stopPropagation();var z=this.em,I=C.target,p=(0,te.getViewEl)(I),d=p&&p._getFrame(),f=Z(I),v=f.data("model");if(!v)for(var D=f.parent();!v&&D.length&&!(0,$.Mx)(D[0]);)v=D.data("model"),D=D.parent();this.currentDoc=I.ownerDocument,z.setHovered(v,{useValid:!0}),d&&z.set("currentFrame",d)},onFrameUpdated:function(){this.updateLocalPos(),this.updateGlobalPos()},onHovered:function(C,z){var I=this,p={};z?z.views.forEach(function(d){var f=d.el,v=I.getElementPos(f);p={el:f,pos:v,component:z,view:(0,te.getViewEl)(f)},I.updateToolsLocal(p),f.ownerDocument===I.currentDoc&&(I.elHovered=p)}):(this.currentDoc=null,this.elHovered=0,this.updateToolsLocal(),this.canvas.getFrames().forEach(function(d){var f=d.view,v=f&&f.getToolsEl();v&&I.toggleToolsEl(0,0,{el:v})}))},onSelect:(0,N.debounce)(function(){var C=this.em,z=C.getSelected(),I=C.get("currentFrame")||{},p=z&&z.getView(I.model),d=p&&p.el,f={};d&&(0,$.pn)(d)&&(f={el:d,pos:this.getElementPos(d),component:z,view:(0,te.getViewEl)(d)}),this.elSelected=f,this.updateToolsGlobal(),this.updateLocalPos(f),this.initResize(z)}),updateGlobalPos:function(){var C=this.getElSelected();C.el&&(C.pos=this.getElementPos(C.el),this.updateToolsGlobal())},updateLocalPos:function(C){var z=this.getElHovered();z.el&&(z.pos=this.getElementPos(z.el),this.updateToolsLocal(C))},getElHovered:function(){return this.elHovered||{}},getElSelected:function(){return this.elSelected||{}},onOut:function(){this.em.setHovered(0)},toggleToolsEl:function(C,z){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},p=I.el||this.canvas.getToolsEl(z);return p&&(p.style.display=C?"":"none"),p||{}},showElementOffset:function(C,z){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};H&&this.editor.runCommand("show-offset",{el:C,elPos:z,view:I.view,force:1,top:0,left:0})},hideElementOffset:function(C){this.editor.stopCommand("show-offset",{view:C})},showFixedElementOffset:function(C,z){this.editor.runCommand("show-offset",{el:C,elPos:z,state:"Fixed"})},hideFixedElementOffset:function(C,z){this.editor&&this.editor.stopCommand("show-offset",{state:"Fixed"})},hideHighlighter:function(C){this.canvas.getHighlighter(C).style.opacity=0},onClick:function(C){C.stopPropagation(),C.preventDefault();var z=this.em;if(z.get("_cmpDrag"))return z.set("_cmpDrag");var I=Z(C.target),p=I.data("model");if(!p)for(var d=I.parent();!p&&d.length&&!(0,$.Mx)(d[0]);)p=d.data("model"),d=d.parent();if(p){if(z.isEditing()&&!p.get("textable")&&p.isChildOf("text"))return;this.select(p,C)}},select:function(C){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C&&(this.editor.select(C,{event:z,useValid:!0}),this.initResize(C))},updateBadge:function(C,z){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},p=this.canvas,d=Z(C).data("model");if(d&&d.get("badgable")){var f=this.getBadge(I);if(!I.posOnly){var v=this.canvas.getConfig(),D=d.getIcon(),g=v.pStylePrefix||"",T="".concat(g,"badge"),u=v.customBadgeLabel,x="".concat(D?'<div class="'.concat(T,'__icon">').concat(D,"</div>"):"",` + <div class="`).concat(T,'__name">').concat(d.getName(),"</div>");f.innerHTML=u?u(d):x}var O="px",W=f.style;W.display="block";var X=p.getTargetToElementFixed(C,f,{pos:z}),ie=X.top,le=I.leftOff<0?-I.leftOff:0;W.top=ie+O,W.left=le+O}},showHighlighter:function(C){this.canvas.getHighlighter(C).style.opacity=""},initResize:function(C){var z,I=this.em,p=this.canvas,d=I?I.get("Editor"):"",f=(I?I.get("Config"):"").stylePrefix||"",v="".concat(f,"resizing"),D=!(0,N.isElement)(C)&&(0,te.isTaggableNode)(C)?C:I.getSelected(),g=D&&D.get("resizable"),T={},u=function(O,W,X){var ie=X.docs;ie&&ie.forEach(function(le){var ce=le.body,F=ce.className||"";ce.className=(O=="add"?"".concat(F," ").concat(v):F.replace(v,"")).trim()})};if(d&&g){var x=(0,N.isElement)(C)?C:D.getEl();T={onStart:function(O){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=W.el,ie=W.config,le=W.resizer,ce=ie.keyHeight,F=ie.keyWidth,l=ie.currentUnit,s=ie.keepAutoHeight,o=ie.keepAutoWidth;u("add",0,W),z=I.get("StyleManager").getModelToStyle(D),p.toggleFramesEvents();var h=getComputedStyle(X),m=z.getStyle(),j=m[F];ie.autoWidth=o&&j==="auto",isNaN(parseFloat(j))&&(j=h[F]);var K=m[ce];ie.autoHeight=s&&K==="auto",isNaN(parseFloat(K))&&(K=h[ce]),le.startDim.w=parseFloat(j),le.startDim.h=parseFloat(K),H=0,l&&(ie.unitHeight=(0,te.getUnitFromValue)(K),ie.unitWidth=(0,te.getUnitFromValue)(j))},onMove:function(){d.trigger("component:resize")},onEnd:function(O,W){u("remove",0,W),d.trigger("component:resize"),p.toggleFramesEvents(1),H=1},updateTarget:function(O,W){var X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(z){var ie=X.store,le=X.selectedHandler,ce=X.config,F=ce.keyHeight,l=ce.keyWidth,s=ce.autoHeight,o=ce.autoWidth,h=ce.unitWidth,m=ce.unitHeight,j=["tc","bc"].indexOf(le)>=0,K=["cl","cr"].indexOf(le)>=0,ve={},E=ie?"":1;if(!j){var q=p.getBody().offsetWidth,ue=W.w<q?W.w:q;ve[l]=o?"auto":"".concat(ue).concat(h)}K||(ve[F]=s?"auto":"".concat(W.h).concat(m)),z.addStyle(M(M({},ve),{},{en:E}),{avoidStore:!ie});var ke="update:component:style",Ee="".concat(ke,":").concat(F," ").concat(ke,":").concat(l);I&&I.trigger(Ee,null,null,{noEmit:1})}}},(0,ye.Z)(g)=="object"&&(T=M(M(M({},T),g),{},{parent:T})),this.resizer=d.runCommand("resize",{el:x,options:T,force:1})}else d.stopCommand("resize"),this.resizer=null},updateToolbar:function(C){var z=this.config.em,I=C==z?z.getSelected():C,p=this.canvas.getToolbarEl(),d=p.style,f=I.get("toolbar"),v=z.get("Config").showToolbar;if(I&&v&&f&&f.length){if(d.display="",!this.toolbar){p.innerHTML="",this.toolbar=new B(f);var D=new A({collection:this.toolbar,editor:this.editor,em:z});p.appendChild(D.render().el)}this.toolbar.reset(f),d.top="-100px",d.left=0}else d.display="none"},updateToolbarPos:function(C){var z=this.canvas.getToolbarEl().style;z.top="".concat(C.top).concat("px"),z.left="".concat(C.left).concat("px"),z.opacity=""},getCanvasPosition:function(){return this.canvas.getCanvasView().getPosition()},getBadge:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.canvas.getBadgeEl(C.view)},onFrameScroll:function(){this.updateTools()},updateTools:function(){this.updateLocalPos(),this.updateGlobalPos()},isCompSelected:function(C){return C&&C.get("status")==="selected"},updateToolsLocal:function(C){var z=C||this.getElHovered(),I=z.el,p=z.pos,d=z.view,f=z.component;if(I){var v=f.get("hoverable"),D=this.lastHovered!==I,g=D?{}:{posOnly:1};D&&v&&(this.lastHovered=I,this.showHighlighter(d),this.showElementOffset(I,p,{view:d})),this.isCompSelected(f)&&(this.hideHighlighter(d),this.hideElementOffset(d));var T="px",u=this.toggleToolsEl(1,d),x=u.style,O=this.canvas.canvasRectOffset(I,p),W=O.top,X=O.left;this.updateBadge(I,p,M(M({},g),{},{view:d,topOff:W,leftOff:X})),x.top=W+T,x.left=X+T,x.width=p.width+T,x.height=p.height+T,this._trgToolUp("local",{component:f,el:u,top:W,left:X,width:p.width,height:p.height})}else this.lastHovered=0},_upToolbar:(0,N.debounce)(function(){this.updateToolsGlobal({force:1})}),_trgToolUp:function(C){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.em.trigger("canvas:tools:update",M({type:C},z))},updateToolsGlobal:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},z=this.getElSelected(),I=z.el,p=z.pos,d=z.component;if(!I)return this.toggleToolsEl(),void(this.lastSelected=0);var f=this.canvas,v=this.lastSelected!==I;(v||C.force)&&(this.lastSelected=I,this.updateToolbar(d));var D="px",g=this.toggleToolsEl(1),T=g.style,u=f.getTargetToElementFixed(I,f.getToolbarEl(),{pos:p}),x=u.canvasOffsetTop,O=u.canvasOffsetLeft;T.top=x+D,T.left=O+D,T.width=p.width+D,T.height=p.height+D,this.updateToolbarPos({top:u.top,left:u.left}),this._trgToolUp("global",{component:d,el:g,top:x,left:O,width:p.width,height:p.height})},updateAttached:(0,N.debounce)(function(){this.updateGlobalPos()}),onContainerChange:(0,N.debounce)(function(){this.em.refreshCanvas()},150),getElementPos:function(C){return this.canvas.getCanvasView().getElementPos(C)},hideBadge:function(){this.getBadge().style.display="none"},cleanPrevious:function(C){C&&C.set({status:"",state:""})},getContentWindow:function(){return this.canvas.getWindow()},run:function(C){(0,te.hasWin)()&&(this.editor=C&&C.get("Editor"),this.enable())},stop:function(C,z){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if((0,te.hasWin)()){var p=this.em,d=this.editor;this.onHovered(),this.stopSelectComponent(),!I.preserveSelected&&p.setSelected(null),this.toggleToolsEl(),d&&d.stopCommand("resize")}}}},8463:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>J});var ye=b(2316),we=b.n(ye)().$;let J={startSelectPosition:function(Y,N){var te=this,$=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.isPointed=!1;var L=this.editorModel.get("Utils"),w=Y.ownerDocument.body;L&&!this.sorter&&(this.sorter=new L.Sorter({container:w,placer:this.canvas.getPlacerEl(),containerSel:"*",itemSel:"*",pfx:this.ppfx,direction:"a",document:N,wmargin:1,nested:1,em:this.editorModel,canvasRelative:1,scale:function(){return te.em.getZoomDecimal()}})),$.onStart&&(this.sorter.onStart=$.onStart),Y&&this.sorter.startSort(Y,{container:w})},getOffsetDim:function(){var Y=this.offset(this.canvas.getFrameEl()),N=this.offset(this.canvas.getElement());return{top:Y.top-N.top,left:Y.left-N.left}},stopSelectPosition:function(){this.posTargetCollection=null,this.posIndex=this.posMethod=="after"&&this.cDim.length!==0?this.posIndex+1:this.posIndex,this.sorter&&(this.sorter.moved=0,this.sorter.endMove()),this.cDim&&(this.posIsLastEl=this.cDim.length!==0&&this.posMethod=="after"&&this.posIndex==this.cDim.length,this.posTargetEl=this.cDim.length===0?we(this.outsideElem):!this.posIsLastEl&&this.cDim[this.posIndex]?we(this.cDim[this.posIndex][5]).parent():we(this.outsideElem),this.posTargetModel=this.posTargetEl.data("model"),this.posTargetCollection=this.posTargetEl.data("model-comp"))},enable:function(){this.startSelectPosition()},nearFloat:function(Y,N,te){var $=Y||0,L=N||"before",w=te.length,y=w!==0&&L=="after"&&$==w;return w!==0&&(!y&&!te[$][4]||te[$-1]&&!te[$-1][4]||y&&!te[$-1][4])?1:0},run:function(){this.enable()},stop:function(){this.stopSelectPosition(),this.$wrapper.css("cursor",""),this.$wrapper.unbind()}}},7994:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>L});var ye=b(4942),we=b(2316),J=b.n(we),Y=b(9050),N=b(6183);function te(w,y){var P=Object.keys(w);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(w);y&&(A=A.filter(function(k){return Object.getOwnPropertyDescriptor(w,k).enumerable})),P.push.apply(P,A)}return P}var $=J().$;let L={getOffsetMethod:function(w){return"get"+(w||"")+"OffsetViewerEl"},run:function(w,y,P){var A=P||{},k=A.state||"",B=w.getConfig(),G=this.em.getZoomDecimal(),M=A.el||"";if(!B.showOffsets||(0,N.isTextNode)(M)||!B.showOffsetsSelected&&k=="Fixed")w.stopCommand(this.id,P);else{var H=w.Canvas,Z=function(Vt){for(var rt=1;rt<arguments.length;rt++){var Ht=arguments[rt]!=null?arguments[rt]:{};rt%2?te(Object(Ht),!0).forEach(function(Zt){(0,ye.Z)(Vt,Zt,Ht[Zt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Vt,Object.getOwnPropertyDescriptors(Ht)):te(Object(Ht)).forEach(function(Zt){Object.defineProperty(Vt,Zt,Object.getOwnPropertyDescriptor(Ht,Zt))})}return Vt}({},A.elPos||H.getElementPos(M));(0,Y.isUndefined)(A.top)||(Z.top=A.top),(0,Y.isUndefined)(A.left)||(Z.left=A.left);var _=window.getComputedStyle(M),C=this.ppfx,z=k+"State",I=H[this.getOffsetMethod(k)](P.view);I.style.opacity="";var p=this["marginT"+k],d=this["marginB"+k],f=this["marginL"+k],v=this["marginR"+k],D=this["padT"+k],g=this["padB"+k],T=this["padL"+k],u=this["padR"+k];if(I.childNodes.length&&(this[z]="1",p=I.querySelector("[data-offset-m-t]"),d=I.querySelector("[data-offset-m-b]"),f=I.querySelector("[data-offset-m-l]"),v=I.querySelector("[data-offset-m-r]"),D=I.querySelector("[data-offset-p-t]"),g=I.querySelector("[data-offset-p-b]"),T=I.querySelector("[data-offset-p-l]"),u=I.querySelector("[data-offset-p-r]")),!this[z]){var x=k.toLowerCase(),O=x+"margin-v",W=x+"padding-v",X=$('<div class="'.concat(C,'marginName">')).get(0),ie=$('<div class="'.concat(C,'paddingName">')).get(0),le=C+W+"-el",ce="".concat(C+O+"-el"," ").concat(C+O),F="".concat(le," ").concat(C+W);p=$('<div class="'.concat(ce,'-top"></div>')).get(0),d=$('<div class="'.concat(ce,'-bottom"></div>')).get(0),f=$('<div class="'.concat(ce,'-left"></div>')).get(0),v=$('<div class="'.concat(ce,'-right"></div>')).get(0),D=$('<div class="'.concat(F,'-top"></div>')).get(0),g=$('<div class="'.concat(F,'-bottom"></div>')).get(0),T=$('<div class="'.concat(F,'-left"></div>')).get(0),u=$('<div class="'.concat(F,'-right"></div>')).get(0),this["marginT"+k]=p,this["marginB"+k]=d,this["marginL"+k]=f,this["marginR"+k]=v,this["padT"+k]=D,this["padB"+k]=g,this["padL"+k]=T,this["padR"+k]=u,X.appendChild(p),X.appendChild(d),X.appendChild(f),X.appendChild(v),ie.appendChild(D),ie.appendChild(g),ie.appendChild(T),ie.appendChild(u),I.appendChild(X),I.appendChild(ie),this[z]="1"}var l="px",s=parseFloat(_.marginLeft.replace(l,""))*G,o=parseFloat(_.marginRight.replace(l,""))*G,h=parseFloat(_.marginTop.replace(l,""))*G,m=parseFloat(_.marginBottom.replace(l,""))*G,j=p.style,K=d.style,ve=f.style,E=v.style,q=D.style,ue=g.style,ke=T.style,Ee=u.style,pe=parseFloat(Z.left),Ae=parseFloat(_.width)*G+l;j.height=h+l,j.width=Ae,j.top=Z.top-h+l,j.left=pe+l,K.height=m+l,K.width=Ae,K.top=Z.top+Z.height+l,K.left=pe+l;var Ne=Z.height+h+m+l,Oe=Z.top-h+l;ve.height=Ne,ve.width=s+l,ve.top=Oe,ve.left=pe-s+l,E.height=Ne,E.width=o+l,E.top=Oe,E.left=pe+Z.width+l;var Ie=parseFloat(_.paddingTop)*G;q.height=Ie+l;var Le=parseFloat(_.paddingBottom)*G;ue.height=Le+l;var $e=Z.height-Le-Ie+l,tt=Z.top+Ie+l;ke.height=$e,ke.width=parseFloat(_.paddingLeft)*G+l,ke.top=tt;var ht=parseFloat(_.paddingRight)*G;Ee.height=$e,Ee.width=ht+l,Ee.top=tt}},stop:function(w,y){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},A=P||{},k=A.state||"",B=this.getOffsetMethod(k),G=w.Canvas,M=G[B](P.view);M.style.opacity=0}}},8352:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>we});var ye=b(9050);let we={init:function(){(0,ye.bindAll)(this,"_onFramesChange")},run:function(J){this.toggleVis(J)},stop:function(J){this.toggleVis(J,0)},toggleVis:function(J){var Y=this,N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;if(!J.Commands.isActive("preview")){var te=J.Canvas,$=N?"on":"off";te.getFrames().forEach(function(L){return Y._upFrame(L,N)}),te.getModel()[$]("change:frames",this._onFramesChange)}},_onFramesChange:function(J,Y){var N=this;Y.forEach(function(te){return N._upFrame(te,1)})},_upFrame:function(J,Y){var N=Y?"add":"remove";J.view.getBody().classList[N]("".concat(this.ppfx,"dashed"))}}},9304:(Je,Se,b)=>{"use strict";b.d(Se,{Z:()=>$});var ye=b(4942),we=b(2982),J=b(9050),Y=b(6183);function N(L,w){var y=Object.keys(L);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(L);w&&(P=P.filter(function(A){return Object.getOwnPropertyDescriptor(L,A).enumerable})),y.push.apply(y,P)}return y}function te(L){for(var w=1;w<arguments.length;w++){var y=arguments[w]!=null?arguments[w]:{};w%2?N(Object(y),!0).forEach(function(P){(0,ye.Z)(L,P,y[P])}):Object.getOwnPropertyDescriptors?Object.defineProperties(L,Object.getOwnPropertyDescriptors(y)):N(Object(y)).forEach(function(P){Object.defineProperty(L,P,Object.getOwnPropertyDescriptor(y,P))})}return L}let $={getConfig:function(L){return this.__getConfig(L)},__getConfig:function(L){var w=this.config||{};return L?w[L]:w},getAll:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.all?L.array?(0,we.Z)(this.all.models):this.all:[]},getAllMap:function(){return this.getAll().reduce(function(L,w){return L[w.get(w.idAttribute)]=w,L},{})},__initConfig:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.config=te(te({},L),w),this.em=this.config.em,this.cls=[]},__initListen:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},w=this.all,y=this.em,P=this.events;w&&y&&w.on("add",function(A,k,B){return y.trigger(P.add,A,B)}).on("remove",function(A,k,B){return y.trigger(P.remove,A,B)}).on("change",function(A,k){return y.trigger(P.update,A,A.changedAttributes(),k)}).on("all",this.__catchAllEvent,this),this.cls=[w].concat(L.collections||[]),(L.propagate||[]).forEach(function(A){var k=A.entity,B=A.event;k.on("all",function(G,M,H,Z){var _=te({event:G},Z||H);[y,w].map(function(C){return C.trigger(B,M,_)})})})},__remove:function(L){var w=this,y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},P=this.em,A=(0,J.isString)(L)?this.get(L):L,k=function(){return A&&w.all.remove(A,y),A};return!y.silent&&P&&P.trigger(this.events.removeBefore,A,k,y),!y.abort&&k()},__catchAllEvent:function(L,w,y,P){var A=this.em,k=this.events,B=P||y;A&&k.all&&A.trigger(k.all,{event:L,model:w,options:B}),this.__onAllEvent()},__appendTo:function(){var L=this.getConfig().appendTo;if(L){var w=(0,J.isElement)(L)?L:document.querySelector(L);if(!w)return this.__logWarn('"appendTo" element not found');w.appendChild(this.render())}},__onAllEvent:function(){},__logWarn:function(L){this.em.logWarning("[".concat(this.name,"]: ").concat(L))},_createId:function(){var L,w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:16,y=this.getAll(),P=y.length+w,A=this.getAllMap();do L=(0,Y.createId)(P);while(A[L]);return L},__listenAdd:function(L,w){var y=this;L.on("add",function(P,A,k){return y.em.trigger(w,P,k)})},__listenRemove:function(L,w){var y=this;L.on("remove",function(P,A,k){return y.em.trigger(w,P,k)})},__listenUpdate:function(L,w){var y=this;L.on("change",function(P,A){return y.em.trigger(w,P,P.changedAttributes(),A)})},__destroy:function(){var L;this.cls.forEach(function(w){w.stopListening(),w.reset()}),this.em=0,this.config=0,(L=this.view)===null||L===void 0||L.remove(),this.view=0}}},672:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>D});var ye=b(2982),we=b(4942),J=b(9050),Y=b(6183);let N={stylePrefix:"css-",rules:[],onBeforeStyle:null};var te=b(5671),$=b(3144),L=b(9340),w=b(3930),y=b(1120),P=b(2316),A=b.n(P),k=b(3345),B=b(4293),G=b(8795);function M(g,T){var u=Object.keys(g);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(g);T&&(x=x.filter(function(O){return Object.getOwnPropertyDescriptor(g,O).enumerable})),u.push.apply(u,x)}return u}function H(g){for(var T=1;T<arguments.length;T++){var u=arguments[T]!=null?arguments[T]:{};T%2?M(Object(u),!0).forEach(function(x){(0,we.Z)(g,x,u[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(u)):M(Object(u)).forEach(function(x){Object.defineProperty(g,x,Object.getOwnPropertyDescriptor(u,x))})}return g}function Z(g){var T=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var u,x=(0,y.Z)(g);if(T){var O=(0,y.Z)(this).constructor;u=Reflect.construct(x,arguments,O)}else u=x.apply(this,arguments);return(0,w.Z)(this,u)}}var _=((0,Y.hasWin)()?window:{}).CSS,C=function(g){(0,L.Z)(u,g);var T=Z(u);function u(){return(0,te.Z)(this,u),T.apply(this,arguments)}return(0,$.Z)(u,[{key:"defaults",value:function(){return{selectors:[],selectorsAdd:"",style:{},mediaText:"",state:"",stylable:!0,atRuleType:"",singleAtRule:!1,important:!1,group:"",shallow:!1,_undo:!0}}},{key:"initialize",value:function(x){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.config=x||{},this.opt=O,this.em=O.em,this.ensureSelectors(),this.on("change",this.__onChange)}},{key:"__onChange",value:function(x,O){var W=this.em,X=this.changedAttributes();!(0,Y.isEmptyObj)(X)&&W&&W.changesUp(O)}},{key:"clone",value:function(){var x=H({},this.opt),O=H({},this.attributes);return O.selectors=this.get("selectors").map(function(W){return W.clone()}),new this.constructor(O,x)}},{key:"ensureSelectors",value:function(x,O,W){var X=this.em,ie=X&&X.get("SelectorManager"),le=[this,"change:selectors",this.ensureSelectors],ce=this.getSelectors();if(this.stopListening.apply(this,le),ce.models&&(ce=(0,ye.Z)(ce.models)),ce=(0,J.isString)(ce)?[ce]:ce,Array.isArray(ce)){var F=ce.filter(function(l){return l}).map(function(l){return ie?ie.add(l):l});ce=new B.Z(F)}this.set("selectors",ce,W),this.listenTo.apply(this,le)}},{key:"getAtRule",value:function(){var x=this.get("atRuleType"),O=this.get("mediaText"),W=x?"@".concat(x):O?"@media":"";return W+(O&&W?" ".concat(O):"")}},{key:"selectorsToString",value:function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O=[],W=this.get("state"),X=this.get("selectorsAdd"),ie={escape:function(F){return _&&_.escape?_.escape(F):F}},le=this.get("selectors").getFullString(0,ie),ce=W&&!x.skipState?":".concat(W):"";return le&&O.push("".concat(le).concat(ce)),X&&!x.skipAdd&&O.push(X),O.join(", ")}},{key:"getDeclaration",value:function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O="",W=this.selectorsToString(x),X=this.styleToString(x),ie=this.get("singleAtRule");return(W||ie)&&(X||x.allowEmpty)&&(O=ie?X:"".concat(W,"{").concat(X,"}")),O}},{key:"getDevice",value:function(){var x=this.em,O=this.attributes,W=O.atRuleType,X=O.mediaText,ie=x?.get("DeviceManager").getDevices()||[],le=ie.filter(function(ce){return ce.getWidthMedia()===""})[0];return W==="media"&&X?ie.filter(function(ce){return ce.getWidthMedia()===(0,G.U)(X)})[0]||null:le||null}},{key:"getState",value:function(){var x=this.em,O=this.get("state");return(x.get("SelectorManager").getStates()||[]).filter(function(W){return W.getName()===O})[0]||null}},{key:"getComponent",value:function(){var x,O=this.getSelectors(),W=O.length==1&&O.at(0),X=W&&W.isId()&&W.get("name");return X&&((x=this.em)===null||x===void 0?void 0:x.get("DomComponents").getById(X))||null}},{key:"toCSS",value:function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O="",W=this.getAtRule(),X=this.getDeclaration(x);return(X||x.allowEmpty)&&(O=X),W&&O&&(O="".concat(W,"{").concat(O,"}")),O}},{key:"toJSON",value:function(){for(var x=arguments.length,O=new Array(x),W=0;W<x;W++)O[W]=arguments[W];var X=P.Model.prototype.toJSON.apply(this,O);if(this.em.getConfig("avoidDefaults")){var ie=this.defaults();(0,J.forEach)(ie,function(le,ce){X[ce]===le&&delete X[ce]}),(0,J.isEmpty)(X.selectors)&&delete X.selectors,(0,J.isEmpty)(X.style)&&delete X.style}return X}},{key:"compare",value:function(x,O,W){var X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},ie=O||"",le=W||"",ce=X.selectorsAdd||"",F=X.atRuleType||"",l=(0,J.isArray)(x)||x.models?x.models||x:[x];le&&!F&&(F="media");var s=l.map(function(j){return j.getFullName()}),o=this.get("selectors").map(function(j){return j.getFullName()}),h=s.slice().sort(),m=o.slice().sort();return!(s.length!==o.length||!h.every(function(j,K){return j===m[K]}))&&this.get("state")===ie&&this.get("mediaText")===le&&this.get("selectorsAdd")===ce&&this.get("atRuleType")===F}}]),u}(P.Model.extend(k.Z)),z=A().Collection;let I=z.extend({model:C,initialize:function(g,T){var u=this;T&&T.em&&(this.editor=T.em),setTimeout(function(){u.on("remove",u.onRemove),u.on("add",u.onAdd)})},toJSON:function(g){return z.prototype.toJSON.call(this,g).filter(function(T){return T.style&&!T.shallow})},onAdd:function(g,T,u){g.ensureSelectors(g,T,u)},onRemove:function(g){var T=this.editor;T.stopListening(g),T.get("UndoManager").remove(g)},add:function(g){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof g=="string"&&(g=this.editor.get("Parser").parseCss(g)),T.em=this.editor,z.prototype.add.apply(this,[g,T])}});var p=b(4868),d=b(8490);function f(g,T){var u=Object.keys(g);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(g);T&&(x=x.filter(function(O){return Object.getOwnPropertyDescriptor(g,O).enumerable})),u.push.apply(u,x)}return u}function v(g){for(var T=1;T<arguments.length;T++){var u=arguments[T]!=null?arguments[T]:{};T%2?f(Object(u),!0).forEach(function(x){(0,we.Z)(g,x,u[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(u)):f(Object(u)).forEach(function(x){Object.defineProperty(g,x,Object.getOwnPropertyDescriptor(u,x))})}return g}let D=function(){var g,T,u,x={};return{Selectors:B.Z,name:"CssComposer",getConfig:function(){return x},storageKey:function(){var O=[],W=x.stm&&x.stm.getConfig()||{};return W.storeCss&&O.push("css"),W.storeStyles&&O.push("styles"),O},init:function(O){for(var W in x=O||{},N)W in x||(x[W]=N[W]);var X=x.pStylePrefix;X&&(x.stylePrefix=X+x.stylePrefix);var ie=x.em&&x.em.config.style||"";return x.rules=ie||x.rules,g=x.em,T=new I([],x),this},onLoad:function(){T.add(x.rules,{silent:1})},postLoad:function(){var O=g&&g.get("UndoManager");O&&O.add(this.getAll())},load:function(O){var W=O||"";!W&&x.stm&&(W=x.em.getCacheLoad());var X=W.styles||"";if(W.styles)try{X=JSON.parse(W.styles)}catch{}else W.css&&(X=x.em.get("Parser").parseCss(W.css));return(0,J.isArray)(X)?X.length&&T.reset(X):X&&T.reset(X),X},store:function(O){if(x.stm){var W={},X=this.storageKey(),ie=g&&g.get("hasPages");return X.indexOf("css")>=0&&!ie&&(W.css=x.em.getCss()),X.indexOf("styles")>=0&&(W.styles=JSON.stringify(T)),O||x.stm.store(W),W}},add:function(O,W,X){var ie=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},le=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},ce=W||"",F=X||"",l=v({},ie),s=this.get(O,ce,F,l);return s&&s.config&&!s.config.singleAtRule||(l.state=ce,l.mediaText=F,l.selectors=[],F&&(l.atRuleType="media"),(s=new C(l,x)).get("selectors").add(O,le),T.add(s,le)),s},get:function(O,W,X,ie){var le=O;if((0,J.isString)(O)){var ce=g.get("SelectorManager"),F=O.split(",")[0].trim(),l=g.get("Parser").parserCss.checkNode({selectors:F})[0];le=ce.get(l.selectors)}return T.find(function(s){return s.compare(le,W,X,ie)})||null},getAll:function(){return T},addCollection:function(O){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ie=[];(0,J.isString)(O)&&(O=g.get("Parser").parseCss(O));for(var le=O instanceof Array?O:[O],ce=0,F=le.length;ce<F;ce++){var l=le[ce]||{};if(l.selectors){var s=x.em&&x.em.get("SelectorManager");s||console.warn("Selector Manager not found");for(var o=l.selectors,h=o instanceof Array?o:[o],m=[],j=0,K=h.length;j<K;j++){var ve=s.add(h[j]);m.push(ve)}var E=this.get(m,l.state,l.mediaText,l),q=this.add(m,l.state,l.mediaText,l,W),ue=!E||!W.avoidUpdateStyle,ke=l.style||{};if((0,Y.isObject)(X)&&q.set(X,W),ue){var Ee=W.extend?v(v({},q.get("style")),ke):ke;q.set("style",Ee,W)}ie.push(q)}}return ie},addRules:function(O){return this.addCollection(O)},setRule:function(O,W){var X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ie=X.atRuleType,le=X.atRuleParams,ce=g.get("Parser").parserCss.checkNode({selectors:O,style:W})[0],F=ce.state,l=ce.selectorsAdd,s=g.get("SelectorManager"),o=s.add(ce.selectors),h=this.add(o,F,le,{selectorsAdd:l,atRule:ie});return h.setStyle(W,X),h},getRule:function(O){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=g.get("SelectorManager"),ie=g.get("Parser").parserCss.checkNode({selectors:O})[0],le=X.get(ie.selectors),ce=ie.state,F=ie.selectorsAdd,l=W.atRuleType,s=W.atRuleParams;return le&&this.get(le,ce,s,{selectorsAdd:F,atRule:l})},getRules:function(O){var W=this.getAll();if(!O)return(0,ye.Z)(W.models);var X=(0,J.isString)(O)?O.split(",").map(function(ie){return ie.trim()}):O;return W.filter(function(ie){return X.indexOf(ie.getSelectors().getFullString())>=0})},setIdRule:function(O){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ie=X.addOpts,le=ie===void 0?{}:ie,ce=X.mediaText,F=X.state||"",l=(0,J.isUndefined)(ce)?g.getCurrentMedia():ce,s=g.get("SelectorManager"),o=s.add({name:O,type:d.Z.TYPE_ID},le),h=this.add(o,F,l,{},le);return h.setStyle(W,v(v({},X),le)),h},getIdRule:function(O){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=W.mediaText,ie=W.state||"",le=(0,J.isUndefined)(X)?g.getCurrentMedia():X,ce=g.get("SelectorManager").get(O,d.Z.TYPE_ID);return ce&&this.get(ce,ie,le)},setClassRule:function(O){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ie=X.state||"",le=X.mediaText||g.getCurrentMedia(),ce=g.get("SelectorManager"),F=ce.add({name:O,type:d.Z.TYPE_CLASS}),l=this.add(F,ie,le);return l.setStyle(W,X),l},getClassRule:function(O){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=W.state||"",ie=W.mediaText||g.getCurrentMedia(),le=g.get("SelectorManager").get(O,d.Z.TYPE_CLASS);return le&&this.get(le,X,ie)},remove:function(O,W){var X=(0,J.isString)(O)?this.getRules(O):O,ie=this.getAll().remove(X,W);return(0,J.isArray)(ie)?ie:[ie]},clear:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.getAll().reset(null,O),this},getComponentRules:function(O){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=W.state,ie=W.mediaText,le=W.current;le&&(X=g.get("state")||"",ie=g.getCurrentMedia());var ce=O.getId(),F=this.getAll().filter(function(l){if(((0,J.isUndefined)(X)||l.get("state")===X)&&((0,J.isUndefined)(ie)||l.get("mediaText")===ie))return l.getSelectorsString()==="#".concat(ce)});return F},render:function(){return u&&u.remove(),(u=new p.Z({collection:T,config:x})).render().el},destroy:function(){T.reset(),T.stopListening(),u&&u.remove(),[g,T,u].forEach(function(O){return null}),x={}}}}},4868:(Je,Se,b)=>{"use strict";b.d(Se,{Z:()=>$});var ye=b(2316),we=b.n(ye);let J=we().View.extend({tagName:"style",initialize:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.config=L.config||{};var w=this.model;this.listenTo(w,"change",this.render),this.listenTo(w,"destroy remove",this.remove),this.listenTo(w.get("selectors"),"change",this.render)},render:function(){var L=this.model,w=this.el,y=L.get("important");return w.innerHTML=L.toCSS({important:y}),this}}),Y=J.extend({_createElement:function(L){return document.createTextNode("")},render:function(){var L=this.model,w=L.get("important");return this.el.textContent=L.getDeclaration({important:w}),this}});var N=we().$,te=function(L,w){return"".concat(L).concat(w?"-".concat(parseFloat(w)):"")};let $=we().View.extend({initialize:function(L){var w=L.config||{};this.atRules={},this.config=w,this.em=w.em,this.pfx=w.stylePrefix||"",this.className=this.pfx+"rules";var y=this.collection;this.listenTo(y,"add",this.addTo),this.listenTo(y,"reset",this.render)},addTo:function(L){this.addToCollection(L)},addToCollection:function(L,w){if(this.renderStarted){var y,P,A=w||null,k={model:L,config:this.config};if(L.get("atRuleType")==="keyframes"){var B=L.getAtRule(),G=this.atRules[B];if(!G){var M=document.createElement("style");G=document.createTextNode(""),M.appendChild(document.createTextNode("".concat(B,"{"))),M.appendChild(G),M.appendChild(document.createTextNode("}")),this.atRules[B]=G,y=M}P=new Y(k),G.appendData(P.render().el.textContent)}else y=(P=new J(k)).render().el;var H=this.className,Z=L.get("mediaText"),_=te(H),C=_;if(Z&&(C=te(H,this.getMediaWidth(Z))),y){var z,I=A||this.el;try{z=I.querySelector("#".concat(C))}catch{}z||(z=I.querySelector("#".concat(_))),z.appendChild(y)}return y}},getMediaWidth:function(L){return L&&L.replace("(".concat(this.em.getConfig("mediaCondition"),": "),"").replace(")","")},render:function(){var L=this;this.renderStarted=1,this.atRules={};var w=this.em,y=this.$el,P=this.className,A=this.collection,k=document.createDocumentFragment();y.empty();var B=w.get("DeviceManager").getAll().pluck("priority");return B.every(function(G){return G})&&B.unshift(0),B.forEach(function(G){return N('<div id="'.concat(te(P,G),'"></div>')).appendTo(k)}),A.each(function(G){return L.addToCollection(G,k)}),y.append(k),y.attr("class",P),this}})},2004:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>O,evAdd:()=>D,evAddBefore:()=>g,evAll:()=>I,evPfx:()=>p,evRemove:()=>T,evRemoveBefore:()=>u,evSelect:()=>d,evSelectBefore:()=>f,evUpdate:()=>v});var ye=b(4942),we=b(9050),J=b(9304);let Y={default:null,devices:[{id:"desktop",name:"Desktop",width:""},{id:"tablet",name:"Tablet",width:"770px",widthMedia:"992px"},{id:"mobileLandscape",name:"Mobile landscape",width:"568px",widthMedia:"768px"},{id:"mobilePortrait",name:"Mobile portrait",width:"320px",widthMedia:"480px"}]};var N=b(5671),te=b(3144),$=b(9340),L=b(3930),w=b(1120),y=b(2316);function P(W){var X=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var ie,le=(0,w.Z)(W);if(X){var ce=(0,w.Z)(this).constructor;ie=Reflect.construct(le,arguments,ce)}else ie=le.apply(this,arguments);return(0,L.Z)(this,ie)}}var A=function(W){(0,$.Z)(ie,W);var X=P(ie);function ie(){return(0,N.Z)(this,ie),X.apply(this,arguments)}return(0,te.Z)(ie,[{key:"defaults",value:function(){return{name:"",width:null,height:"",widthMedia:null,priority:null}}},{key:"initialize",value:function(){var le=this;this.get("widthMedia")===null&&this.set("widthMedia",this.get("width")),this.get("width")===null&&this.set("width",this.get("widthMedia")),!this.get("priority")&&this.set("priority",parseFloat(this.get("widthMedia"))||0),["width","height","widthMedia"].forEach(function(ce){return le.checkUnit(ce)})}},{key:"checkUnit",value:function(le){var ce=this.get(le)||"";(parseFloat(ce)||0).toString()===ce.toString()&&this.set(le,"".concat(ce,"px"))}},{key:"getName",value:function(){return this.get("name")||this.get("id")}},{key:"getWidthMedia",value:function(){return this.get("widthMedia")||""}}]),ie}(y.Model);function k(W){var X=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var ie,le=(0,w.Z)(W);if(X){var ce=(0,w.Z)(this).constructor;ie=Reflect.construct(le,arguments,ce)}else ie=le.apply(this,arguments);return(0,L.Z)(this,ie)}}var B=function(W){(0,$.Z)(ie,W);var X=k(ie);function ie(){return(0,N.Z)(this,ie),X.apply(this,arguments)}return(0,te.Z)(ie,[{key:"comparator",value:function(le,ce){var F=Number.MAX_VALUE;return(ce.get("priority")||F)-(le.get("priority")||F)}},{key:"getSorted",value:function(){return this.sort()}}]),ie}(y.Collection);B.prototype.model=A;var G,M=b(168),H=b(1629);function Z(W){var X=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var ie,le=(0,w.Z)(W);if(X){var ce=(0,w.Z)(this).constructor;ie=Reflect.construct(le,arguments,ce)}else ie=le.apply(this,arguments);return(0,L.Z)(this,ie)}}var _=function(W){(0,$.Z)(ie,W);var X=Z(ie);function ie(){return(0,N.Z)(this,ie),X.apply(this,arguments)}return(0,te.Z)(ie,[{key:"template",value:function(le){var ce=le.ppfx,F=le.label;return(0,H.Z)(G||(G=(0,M.Z)([` + <div class="`,'device-label">',`</div> + <div class="`,"field ",`select"> + <span id="`,`input-holder"> + <select class="`,`devices"></select> + </span> + <div class="`,`sel-arrow"> + <div class="`,`d-s-arrow"></div> + </div> + </div> + <button style="display:none" class="`,`add-trasp">+</button> + `])),ce,F,ce,ce,ce,ce,ce,ce,ce)}},{key:"events",value:function(){return{change:"updateDevice"}}},{key:"initialize",value:function(le){this.config=le.config||{},this.em=this.config.em,this.ppfx=this.config.pStylePrefix||"",this.events["click ."+this.ppfx+"add-trasp"]=this.startAdd,this.listenTo(this.em,"change:device",this.updateSelect),this.delegateEvents()}},{key:"startAdd",value:function(){}},{key:"updateDevice",value:function(){var le=this.em;if(le){var ce=this.devicesEl,F=ce?ce.val():"";le.set("device",F)}}},{key:"updateSelect",value:function(){var le=this.em,ce=this.devicesEl;if(le&&le.getDeviceModel&&ce){var F=le.getDeviceModel(),l=F?F.get("id"):"";ce.val(l)}}},{key:"getOptions",value:function(){var le=this.collection,ce=this.em,F="";return le.each(function(l){var s=l.attributes,o=s.name,h=s.id,m=ce&&ce.t&&ce.t("deviceManager.devices.".concat(h))||o;F+='<option value="'.concat(h||o,'">').concat(m,"</option>")}),F}},{key:"render",value:function(){var le=this.em,ce=this.ppfx,F=this.$el,l=this.el,s=le&&le.t&&le.t("deviceManager.device");return F.html(this.template({ppfx:ce,label:s})),this.devicesEl=F.find(".".concat(ce,"devices")),this.devicesEl.append(this.getOptions()),this.devicesEl.val(le.get("device")),l.className="".concat(ce,"devices-c"),this}}]),ie}(y.View);function C(W,X){var ie=Object.keys(W);if(Object.getOwnPropertySymbols){var le=Object.getOwnPropertySymbols(W);X&&(le=le.filter(function(ce){return Object.getOwnPropertyDescriptor(W,ce).enumerable})),ie.push.apply(ie,le)}return ie}function z(W){for(var X=1;X<arguments.length;X++){var ie=arguments[X]!=null?arguments[X]:{};X%2?C(Object(ie),!0).forEach(function(le){(0,ye.Z)(W,le,ie[le])}):Object.getOwnPropertyDescriptors?Object.defineProperties(W,Object.getOwnPropertyDescriptors(ie)):C(Object(ie)).forEach(function(le){Object.defineProperty(W,le,Object.getOwnPropertyDescriptor(ie,le))})}return W}var I="device",p="".concat(I,":"),d="".concat(p,"select"),f="".concat(d,":before"),v="".concat(p,"update"),D="".concat(p,"add"),g="".concat(D,":before"),T="".concat(p,"remove"),u="".concat(T,":before"),x="change:device";let O=function(){var W,X,ie={};return z(z({},J.Z),{},{name:"DeviceManager",Device:A,Devices:B,events:{all:I,select:d,update:v,add:D,remove:T,removeBefore:u},init:function(){var le=this,ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},F=ie=z(z({},Y),ce),l=F.em;return W=new B,ie.devices.forEach(function(s){return le.add(s)}),this.em=l,this.all=W,this.select(ie.default||W.at(0)),this.__initListen(),l.on(x,this._onSelect,this),this},_onSelect:function(le,ce,F){var l=this.em,s=this.events,o=le.previous("device"),h=this.get(ce),m=s.select;l.trigger(m,h,this.get(o)),this.__catchAllEvent(m,h,F)},add:function(le){var ce,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=F;if((0,we.isString)(le)){var s=F;ce=z(z({},l=arguments[2]||{}),{},{id:le,name:l.name||le,width:s})}else ce=le;return ce.id||(ce.id=ce.name||this._createId()),W.add(ce,l)},get:function(le){return this.getAll().filter(function(ce){return ce.get("name")===le})[0]||W.get(le)||null},remove:function(le){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.__remove(le,ce)},getDevices:function(){return W.models},select:function(le){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},F=(0,we.isString)(le)?this.get(le):le;return F&&this.em.set("device",F.get("id"),ce),this},getSelected:function(){return this.get(this.em.get("device"))},getAll:function(){return W},render:function(){return X&&X.remove(),(X=new _({collection:W,config:ie})).render().el},destroy:function(){W.stopListening(),W.reset(),X&&X.remove(),[W,X].forEach(function(le){return null}),ie={}}})}},9831:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>Ke});var ye=b(4942),we=b(1002),J=b(9050);let Y={stylePrefix:"comp-",components:[],draggableComponents:1,storeWrapper:0,processor:0,voidElements:["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"]};var N=b(9138),te=b(8431),$=b(2169),L=b(5671),w=b(3144),y=b(9340),P=b(3930),A=b(1120);function k(U){var oe=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var ne,ge=(0,A.Z)(U);if(oe){var Ge=(0,A.Z)(this).constructor;ne=Reflect.construct(ge,arguments,Ge)}else ne=ge.apply(this,arguments);return(0,P.Z)(this,ne)}}var B=function(U){(0,y.Z)(ne,U);var oe=k(ne);function ne(){return(0,L.Z)(this,ne),oe.apply(this,arguments)}return(0,w.Z)(ne,[{key:"tagName",value:function(){return"div"}}]),ne}($.Z),G=b(3505),M=b(6183);function H(U,oe){var ne=Object.keys(U);if(Object.getOwnPropertySymbols){var ge=Object.getOwnPropertySymbols(U);oe&&(ge=ge.filter(function(Ge){return Object.getOwnPropertyDescriptor(U,Ge).enumerable})),ne.push.apply(ne,ge)}return ne}function Z(U){for(var oe=1;oe<arguments.length;oe++){var ne=arguments[oe]!=null?arguments[oe]:{};oe%2?H(Object(ne),!0).forEach(function(ge){(0,ye.Z)(U,ge,ne[ge])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(ne)):H(Object(ne)).forEach(function(ge){Object.defineProperty(U,ge,Object.getOwnPropertyDescriptor(ne,ge))})}return U}let _=N.ZP.extend({defaults:Z(Z({},N.ZP.prototype.defaults),{},{type:"cell",tagName:"td",draggable:["tr"]})},{isComponent:function(U){return["td","th"].indexOf((0,M.toLowerCase)(U.tagName))>=0}}),C=$.Z.extend({});function z(U,oe){var ne=Object.keys(U);if(Object.getOwnPropertySymbols){var ge=Object.getOwnPropertySymbols(U);oe&&(ge=ge.filter(function(Ge){return Object.getOwnPropertyDescriptor(U,Ge).enumerable})),ne.push.apply(ne,ge)}return ne}function I(U){for(var oe=1;oe<arguments.length;oe++){var ne=arguments[oe]!=null?arguments[oe]:{};oe%2?z(Object(ne),!0).forEach(function(ge){(0,ye.Z)(U,ge,ne[ge])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(ne)):z(Object(ne)).forEach(function(ge){Object.defineProperty(U,ge,Object.getOwnPropertyDescriptor(ne,ge))})}return U}let p=N.ZP.extend({defaults:I(I({},N.ZP.prototype.defaults),{},{tagName:"tr",draggable:["thead","tbody","tfoot"],droppable:["th","td"]})},{isComponent:function(U){return(0,M.toLowerCase)(U.tagName)==="tr"}}),d=$.Z.extend({});function f(U,oe){var ne=Object.keys(U);if(Object.getOwnPropertySymbols){var ge=Object.getOwnPropertySymbols(U);oe&&(ge=ge.filter(function(Ge){return Object.getOwnPropertyDescriptor(U,Ge).enumerable})),ne.push.apply(ne,ge)}return ne}function v(U){for(var oe=1;oe<arguments.length;oe++){var ne=arguments[oe]!=null?arguments[oe]:{};oe%2?f(Object(ne),!0).forEach(function(ge){(0,ye.Z)(U,ge,ne[ge])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(ne)):f(Object(ne)).forEach(function(ge){Object.defineProperty(U,ge,Object.getOwnPropertyDescriptor(ne,ge))})}return U}var D="table";let g=N.ZP.extend({defaults:v(v({},N.ZP.prototype.defaults),{},{type:D,tagName:D,droppable:["tbody","thead","tfoot"]}),initialize:function(U,oe){N.ZP.prototype.initialize.apply(this,arguments);var ne=this.get("components");!ne.length&&ne.add({type:"tbody"})}},{isComponent:function(U){return(0,M.toLowerCase)(U.tagName)===D}}),T=$.Z.extend({events:{}});function u(U,oe){var ne=Object.keys(U);if(Object.getOwnPropertySymbols){var ge=Object.getOwnPropertySymbols(U);oe&&(ge=ge.filter(function(Ge){return Object.getOwnPropertyDescriptor(U,Ge).enumerable})),ne.push.apply(ne,ge)}return ne}function x(U){for(var oe=1;oe<arguments.length;oe++){var ne=arguments[oe]!=null?arguments[oe]:{};oe%2?u(Object(ne),!0).forEach(function(ge){(0,ye.Z)(U,ge,ne[ge])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(ne)):u(Object(ne)).forEach(function(ge){Object.defineProperty(U,ge,Object.getOwnPropertyDescriptor(ne,ge))})}return U}var O="tbody";let W=N.ZP.extend({defaults:x(x({},N.ZP.prototype.defaults),{},{type:O,tagName:O,draggable:["table"],droppable:["tr"],columns:1,rows:1}),initialize:function(U,oe){N.ZP.prototype.initialize.apply(this,arguments);var ne=this.get("components"),ge=this.get("columns"),Ge=this.get("rows");if(!ne.length){for(var yt=[];Ge--;){for(var nt=[],Qe=ge;Qe--;)nt.push({type:"cell",classes:["cell"]});yt.push({type:"row",classes:["row"],components:nt})}ne.add(yt)}}},{isComponent:function(U){return(0,M.toLowerCase)(U.tagName)===O}});function X(U,oe){var ne=Object.keys(U);if(Object.getOwnPropertySymbols){var ge=Object.getOwnPropertySymbols(U);oe&&(ge=ge.filter(function(Ge){return Object.getOwnPropertyDescriptor(U,Ge).enumerable})),ne.push.apply(ne,ge)}return ne}function ie(U){for(var oe=1;oe<arguments.length;oe++){var ne=arguments[oe]!=null?arguments[oe]:{};oe%2?X(Object(ne),!0).forEach(function(ge){(0,ye.Z)(U,ge,ne[ge])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(ne)):X(Object(ne)).forEach(function(ge){Object.defineProperty(U,ge,Object.getOwnPropertyDescriptor(ne,ge))})}return U}var le="thead";let ce=W.extend({defaults:ie(ie({},W.prototype.defaults),{},{type:le,tagName:le})},{isComponent:function(U){return(0,M.toLowerCase)(U.tagName)===le}}),F=$.Z.extend({}),l=$.Z.extend({});function s(U,oe){var ne=Object.keys(U);if(Object.getOwnPropertySymbols){var ge=Object.getOwnPropertySymbols(U);oe&&(ge=ge.filter(function(Ge){return Object.getOwnPropertyDescriptor(U,Ge).enumerable})),ne.push.apply(ne,ge)}return ne}function o(U){for(var oe=1;oe<arguments.length;oe++){var ne=arguments[oe]!=null?arguments[oe]:{};oe%2?s(Object(ne),!0).forEach(function(ge){(0,ye.Z)(U,ge,ne[ge])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(ne)):s(Object(ne)).forEach(function(ge){Object.defineProperty(U,ge,Object.getOwnPropertyDescriptor(ne,ge))})}return U}var h="tfoot";let m=W.extend({defaults:o(o({},W.prototype.defaults),{},{type:h,tagName:h})},{isComponent:function(U){return(0,M.toLowerCase)(U.tagName)===h}}),j=$.Z.extend({});function K(U,oe){var ne=Object.keys(U);if(Object.getOwnPropertySymbols){var ge=Object.getOwnPropertySymbols(U);oe&&(ge=ge.filter(function(Ge){return Object.getOwnPropertyDescriptor(U,Ge).enumerable})),ne.push.apply(ne,ge)}return ne}function ve(U){for(var oe=1;oe<arguments.length;oe++){var ne=arguments[oe]!=null?arguments[oe]:{};oe%2?K(Object(ne),!0).forEach(function(ge){(0,ye.Z)(U,ge,ne[ge])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(ne)):K(Object(ne)).forEach(function(ge){Object.defineProperty(U,ge,Object.getOwnPropertyDescriptor(ne,ge))})}return U}var E='xmlns="http://www.w3.org/2000/svg" width="100" viewBox="0 0 24 24" style="fill: rgba(0,0,0,0.15); transform: scale(0.75)"';let q=N.ZP.extend({defaults:ve(ve({},N.ZP.prototype.defaults),{},{type:"image",tagName:"img",void:!0,droppable:0,editable:1,highlightable:0,resizable:{ratioDefault:1},traits:["alt"],src:"<svg ".concat(E,`> + <path d="M8.5 13.5l2.5 3 3.5-4.5 4.5 6H5m16 1V5a2 2 0 0 0-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2z"></path> + </svg>`),fallback:"<svg ".concat(E,`> + <path d="M2.28 3L1 4.27l2 2V19c0 1.1.9 2 2 2h12.73l2 2L21 21.72 2.28 3m2.55 0L21 19.17V5a2 2 0 0 0-2-2H4.83M8.5 13.5l2.5 3 1-1.25L14.73 18H5l3.5-4.5z"></path> + </svg>`),file:""}),initialize:function(U,oe){N.ZP.prototype.initialize.apply(this,arguments);var ne=this.get("attributes"),ge=ne.src;ge&&this.set("src",ge,{silent:1})},initToolbar:function(){for(var U=arguments.length,oe=new Array(U),ne=0;ne<U;ne++)oe[ne]=arguments[ne];N.ZP.prototype.initToolbar.apply(this,oe);var ge=this.em;if(ge){var Ge=ge.get("Commands"),yt="image-editor";if(Ge.has(yt)){for(var nt=!1,Qe=this.get("toolbar"),wt=0;wt<Qe.length;wt++)if(Qe[wt].command==="image-editor"){nt=!0;break}nt||(Qe.push({attributes:{class:"fa fa-pencil"},command:yt}),this.set("toolbar",Qe))}}},getAttrToHTML:function(){for(var U=arguments.length,oe=new Array(U),ne=0;ne<U;ne++)oe[ne]=arguments[ne];var ge=N.ZP.prototype.getAttrToHTML.apply(this,oe),Ge=this.getSrcResult();return Ge&&(ge.src=Ge),ge},getSrcResult:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},oe=this.get(U.fallback?"fallback":"src")||"",ne=oe;return oe&&oe.substr(0,4)==="<svg"&&(ne="data:image/svg+xml;base64,".concat(window.btoa(oe))),ne},isDefaultSrc:function(){return this.get("src")===(0,J.result)(this,"defaults").src},toJSON:function(){for(var U=arguments.length,oe=new Array(U),ne=0;ne<U;ne++)oe[ne]=arguments[ne];var ge=N.ZP.prototype.toJSON.apply(this,oe);return ge.attributes&&ge.src===ge.attributes.src&&delete ge.src,ge},parseUri:function(U){var oe=document.createElement("a");oe.href=U;for(var ne={},ge=oe.search.substring(1).split("&"),Ge=0;Ge<ge.length;Ge++){var yt=ge[Ge].split("="),nt=decodeURIComponent(yt[0]);nt&&(ne[nt]=decodeURIComponent(yt[1]))}return{hostname:oe.hostname,pathname:oe.pathname,protocol:oe.protocol,search:oe.search,hash:oe.hash,port:oe.port,query:ne}}},{isComponent:function(U){return(0,M.toLowerCase)(U.tagName)==="img"}});function ue(U,oe){var ne=Object.keys(U);if(Object.getOwnPropertySymbols){var ge=Object.getOwnPropertySymbols(U);oe&&(ge=ge.filter(function(Ge){return Object.getOwnPropertyDescriptor(U,Ge).enumerable})),ne.push.apply(ne,ge)}return ne}function ke(U){for(var oe=1;oe<arguments.length;oe++){var ne=arguments[oe]!=null?arguments[oe]:{};oe%2?ue(Object(ne),!0).forEach(function(ge){(0,ye.Z)(U,ge,ne[ge])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(ne)):ue(Object(ne)).forEach(function(ge){Object.defineProperty(U,ge,Object.getOwnPropertyDescriptor(ne,ge))})}return U}let Ee=q.extend({defaults:ke(ke({},q.prototype.defaults),{},{type:"map",src:"",void:0,mapUrl:"https://maps.google.com/maps",tagName:"iframe",mapType:"q",address:"",zoom:"1",attributes:{frameborder:0},toolbar:N.ZP.prototype.defaults.toolbar,traits:[{label:"Address",name:"address",placeholder:"eg. London, UK",changeProp:1},{type:"select",label:"Map type",name:"mapType",changeProp:1,options:[{value:"q",name:"Roadmap"},{value:"w",name:"Satellite"}]},{label:"Zoom",name:"zoom",type:"range",min:"1",max:"20",changeProp:1}]}),initialize:function(U,oe){this.get("src")?this.parseFromSrc():this.updateSrc(),q.prototype.initialize.apply(this,arguments),this.listenTo(this,"change:address change:zoom change:mapType",this.updateSrc)},updateSrc:function(){this.set("src",this.getMapUrl())},getMapUrl:function(){var U=this,oe=U.get("address"),ne=U.get("zoom"),ge=U.get("mapType");oe=oe?"&q="+oe:"",ne=ne?"&z="+ne:"",ge=ge?"&t="+ge:"";var Ge=U.get("mapUrl")+"?"+oe+ne+ge;return Ge+="&output=embed"},parseFromSrc:function(){var U=this.parseUri(this.get("src")).query;U.q&&this.set("address",U.q),U.z&&this.set("zoom",U.z),U.t&&this.set("mapType",U.t)}},{isComponent:function(U){var oe="";return(0,M.toLowerCase)(U.tagName)=="iframe"&&/maps\.google\.com/.test(U.src)&&(oe={type:"map",src:U.src}),oe}});b(2316);let pe=$.Z.extend({tagName:"img",events:{dblclick:"onActive",click:"initResize",error:"onError",load:"onLoad",dragstart:"noDrag"},initialize:function(U){$.Z.prototype.initialize.apply(this,arguments),this.listenTo(this.model,"change:src",this.updateSrc),this.classEmpty="".concat(this.ppfx,"plh-image"),this.fetchFile()},fetchFile:function(){if(!this.modelOpt.temporary){var U=this.model,oe=this.em,ne=U.get("file");if(ne&&oe){var ge=oe.get("AssetManager").FileUploader();ge?.uploadFile({dataTransfer:{files:[ne]}},function(Ge){var yt=Ge&&Ge.data&&Ge.data[0],nt=yt&&((0,J.isString)(yt)?yt:yt.src);nt&&U.set({src:nt})}),U.set("file","")}}},updateSrc:function(){var U=this.model,oe=this.classEmpty,ne=this.$el,ge=U.getSrcResult(),Ge=ge&&!U.isDefaultSrc();U.addAttributes({src:ge}),ne[Ge?"removeClass":"addClass"](oe)},onActive:function(U){U&&U.stopPropagation();var oe=this.em,ne=this.model,ge=oe&&oe.get("AssetManager");ge&&ne.get("editable")&&ge.open({select:function(Ge,yt){ne.set({src:Ge.getSrc()}),yt&&ge.close()},target:ne,types:["image"],accept:"image/*"})},onError:function(){var U=this.model.getSrcResult({fallback:1});U&&(this.el.src=U)},onLoad:function(){this.em.trigger("change:canvasOffset")},noDrag:function(U){return U.preventDefault(),!1},render:function(){if(this.renderAttributes(),this.modelOpt.temporary)return this;this.updateSrc();var U=this.$el,oe=this.model,ne=U.attr("class")||"";return!oe.get("src")&&U.attr("class","".concat(ne," ").concat(this.classEmpty).trim()),this.postRender(),this}}),Ae=pe.extend({tagName:"div",events:{},initialize:function(U){pe.prototype.initialize.apply(this,arguments),this.classEmpty=this.ppfx+"plh-map"},updateSrc:function(){this.getIframe().src=this.model.get("src")},getIframe:function(){if(!this.iframe){var U=document.createElement("iframe");U.src=this.model.get("src"),U.frameBorder=0,U.style.height="100%",U.style.width="100%",U.className=this.ppfx+"no-pointer",this.iframe=U}return this.iframe},render:function(){for(var U=arguments.length,oe=new Array(U),ne=0;ne<U;ne++)oe[ne]=arguments[ne];return pe.prototype.render.apply(this,oe),this.updateClasses(),this.el.appendChild(this.getIframe()),this}});function Ne(U,oe){var ne=Object.keys(U);if(Object.getOwnPropertySymbols){var ge=Object.getOwnPropertySymbols(U);oe&&(ge=ge.filter(function(Ge){return Object.getOwnPropertyDescriptor(U,Ge).enumerable})),ne.push.apply(ne,ge)}return ne}function Oe(U){for(var oe=1;oe<arguments.length;oe++){var ne=arguments[oe]!=null?arguments[oe]:{};oe%2?Ne(Object(ne),!0).forEach(function(ge){(0,ye.Z)(U,ge,ne[ge])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(ne)):Ne(Object(ne)).forEach(function(ge){Object.defineProperty(U,ge,Object.getOwnPropertyDescriptor(ne,ge))})}return U}function Ie(U){var oe=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var ne,ge=(0,A.Z)(U);if(oe){var Ge=(0,A.Z)(this).constructor;ne=Reflect.construct(ge,arguments,Ge)}else ne=ge.apply(this,arguments);return(0,P.Z)(this,ne)}}var Le=function(U){(0,y.Z)(ne,U);var oe=Ie(ne);function ne(){return(0,L.Z)(this,ne),oe.apply(this,arguments)}return(0,w.Z)(ne)}(N.ZP);function $e(U,oe){var ne=Object.keys(U);if(Object.getOwnPropertySymbols){var ge=Object.getOwnPropertySymbols(U);oe&&(ge=ge.filter(function(Ge){return Object.getOwnPropertyDescriptor(U,Ge).enumerable})),ne.push.apply(ne,ge)}return ne}function tt(U){for(var oe=1;oe<arguments.length;oe++){var ne=arguments[oe]!=null?arguments[oe]:{};oe%2?$e(Object(ne),!0).forEach(function(ge){(0,ye.Z)(U,ge,ne[ge])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(ne)):$e(Object(ne)).forEach(function(ge){Object.defineProperty(U,ge,Object.getOwnPropertyDescriptor(ne,ge))})}return U}function ht(U){var oe=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var ne,ge=(0,A.Z)(U);if(oe){var Ge=(0,A.Z)(this).constructor;ne=Reflect.construct(ge,arguments,Ge)}else ne=ge.apply(this,arguments);return(0,P.Z)(this,ne)}}Le.prototype.defaults=Oe(Oe({},N.ZP.getDefaults()),{},{type:"text",droppable:!1,editable:!0});var Vt="link",rt=function(U){(0,y.Z)(ne,U);var oe=ht(ne);function ne(){return(0,L.Z)(this,ne),oe.apply(this,arguments)}return(0,w.Z)(ne)}(Le);rt.prototype.defaults=tt(tt({},Le.getDefaults()),{},{type:Vt,tagName:"a",traits:["title","href","target"]}),rt.isComponent=function(U){var oe,ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if((0,M.toLowerCase)(U.tagName)==="a"){var ge=ne.textTags||[];oe={type:Vt,editable:!1};var Ge=U.childNodes,yt=Ge.length;yt||delete oe.editable,(0,J.forEach)(Ge,function(nt){var Qe=nt.tagName;(nt.nodeType==3&&nt.textContent.trim()!==""||Qe&&ge.indexOf((0,M.toLowerCase)(Qe))>=0)&&delete oe.editable})}return oe};var Ht=b(5861),Zt=b(7757),Ct=b.n(Zt);function nn(U,oe){var ne=Object.keys(U);if(Object.getOwnPropertySymbols){var ge=Object.getOwnPropertySymbols(U);oe&&(ge=ge.filter(function(Ge){return Object.getOwnPropertyDescriptor(U,Ge).enumerable})),ne.push.apply(ne,ge)}return ne}function fe(U){for(var oe=1;oe<arguments.length;oe++){var ne=arguments[oe]!=null?arguments[oe]:{};oe%2?nn(Object(ne),!0).forEach(function(ge){(0,ye.Z)(U,ge,ne[ge])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(ne)):nn(Object(ne)).forEach(function(ge){Object.defineProperty(U,ge,Object.getOwnPropertyDescriptor(ne,ge))})}return U}var se=$.Z.prototype;let be=$.Z.extend({events:{dblclick:"onActive",input:"onInput"},initialize:function(U){se.initialize.apply(this,arguments),(0,J.bindAll)(this,"disableEditing","onDisable");var oe=this.model,ne=this.em;this.listenTo(oe,"focus",this.onActive),this.listenTo(oe,"change:content",this.updateContentText),this.listenTo(oe,"sync:content",this.syncContent),this.rte=ne&&ne.get("RichTextEditor")},updateContentText:function(U,oe){var ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};!ne.fromDisable&&this.disableEditing()},canActivate:function(){var U,oe=this.model,ne=this.rteEnabled,ge=this.em,Ge=ge?.getEditing()===oe,yt=!0,nt=!1;if((ne||!oe.get("editable")||Ge||(nt=oe.isChildOf("text")))&&(yt=!1,nt&&!oe.get("textable"))){for(var Qe=oe.parent();Qe&&!Qe.isInstanceOf("text");)Qe=Qe.parent();Qe&&Qe.get("editable")?U=Qe:yt=!0}return{result:yt,delegate:U}},onActive:function(U){var oe=this;return(0,Ht.Z)(Ct().mark(function ne(){var ge,Ge,yt,nt,Qe,wt,jt;return Ct().wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:if(Ge=oe.rte,yt=oe.em,nt=oe.canActivate(),Qe=nt.result,wt=nt.delegate,Qe){Mt.next=5;break}return wt&&(U==null||(jt=U.stopPropagation)===null||jt===void 0||jt.call(U),yt.setSelected(wt),wt.trigger("active",U)),Mt.abrupt("return");case 5:if(U==null||(ge=U.stopPropagation)===null||ge===void 0||ge.call(U),oe.lastContent=oe.getContent(),!Ge){Mt.next=17;break}return Mt.prev=8,Mt.next=11,Ge.enable(oe,oe.activeRte,{event:U});case 11:oe.activeRte=Mt.sent,Mt.next=17;break;case 14:Mt.prev=14,Mt.t0=Mt.catch(8),yt.logError(Mt.t0);case 17:oe.toggleEvents(1);case 18:case"end":return Mt.stop()}},ne,null,[[8,14]])}))()},onDisable:function(){this.disableEditing()},disableEditing:function(){var U=arguments,oe=this;return(0,Ht.Z)(Ct().mark(function ne(){var ge,Ge,yt,nt,Qe,wt;return Ct().wrap(function(jt){for(;;)switch(jt.prev=jt.next){case 0:if(ge=U.length>0&&U[0]!==void 0?U[0]:{},Ge=oe.model,yt=oe.rte,nt=oe.activeRte,Qe=oe.em,wt=Ge&&Ge.get("editable"),!yt){jt.next=13;break}return jt.prev=4,jt.next=7,yt.disable(oe,nt);case 7:jt.next=12;break;case 9:jt.prev=9,jt.t0=jt.catch(4),Qe.logError(jt.t0);case 12:wt&&oe.getContent()!==oe.lastContent&&(oe.syncContent(ge),oe.lastContent="");case 13:oe.toggleEvents();case 14:case"end":return jt.stop()}},ne,null,[[4,9]])}))()},getContent:function(){var U=this.activeRte;return U&&typeof U.getContent=="function"?U.getContent():this.getChildrenContainer().innerHTML},syncContent:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},oe=this.model,ne=this.rte,ge=this.rteEnabled;if(ge||U.force){var Ge=this.getContent(),yt=oe.components(),nt=fe({fromDisable:1},U);oe.set("content","",nt),ne.customRte?(yt.length&&yt.reset(null,U),oe.set("content",Ge,nt)):yt.resetFromString(Ge,U)}},insertComponent:function(U){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ne=this.model,ge=this.el,Ge=ge.ownerDocument,yt=Ge.getSelection();if(yt!=null&&yt.rangeCount){var nt,Qe=yt.getRangeAt(0),wt=Qe.startContainer,jt=Qe.startOffset,Mt=(0,M.getModel)(wt),en=[];if(Mt&&(nt=Mt.is)!==null&&nt!==void 0&&nt.call(Mt,"textnode")){var Gt=Mt.collection;Gt.forEach(function(cn){if(cn===Mt){var zn="textnode",xe=cn.get("content");en.push({type:zn,content:xe.slice(0,jt)}),en.push(U),en.push({type:zn,content:xe.slice(jt)})}else en.push(cn)});var tn=en.filter(Boolean),Dn=tn.indexOf(U);return Gt.reset(tn,oe),Gt.at(Dn)}}return ne.append(U,oe)},onInput:function(){var U=this.em,oe="component",ne=["".concat(oe,":update"),"".concat(oe,":input")].join(" ");U&&U.trigger(ne,this.model)},disablePropagation:function(U){U.stopPropagation()},toggleEvents:function(U){var oe=this.em,ne=this.model,ge=this.$el,Ge={on:M.on,off:M.off},yt=U?"on":"off";oe.setEditing(U?this:0),this.rteEnabled=!!U;var nt=[this.el.ownerDocument,document];if(Ge.off(nt,"mousedown",this.onDisable),Ge[yt](nt,"mousedown",this.onDisable),oe[yt]("toolbar:run:before",this.onDisable),ne&&(ne[yt]("removed",this.onDisable),ne.trigger("rte:".concat(U?"enable":"disable"))),ge&&ge.off("mousedown",this.disablePropagation),ge&&ge[yt]("mousedown",this.disablePropagation),this.config.draggableComponents)for(var Qe=this.el;Qe;)Qe.draggable=!U,(Qe=Qe.parentNode)&&Qe.tagName=="BODY"&&(Qe=0)}}),_e=be.extend({render:function(){for(var U=arguments.length,oe=new Array(U),ne=0;ne<U;ne++)oe[ne]=arguments[ne];return be.prototype.render.apply(this,oe),this.el.addEventListener("click",this.prevDef,!0),this}});function Fe(U,oe){var ne=Object.keys(U);if(Object.getOwnPropertySymbols){var ge=Object.getOwnPropertySymbols(U);oe&&(ge=ge.filter(function(Ge){return Object.getOwnPropertyDescriptor(U,Ge).enumerable})),ne.push.apply(ne,ge)}return ne}function He(U){for(var oe=1;oe<arguments.length;oe++){var ne=arguments[oe]!=null?arguments[oe]:{};oe%2?Fe(Object(ne),!0).forEach(function(ge){(0,ye.Z)(U,ge,ne[ge])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(ne)):Fe(Object(ne)).forEach(function(ge){Object.defineProperty(U,ge,Object.getOwnPropertyDescriptor(ne,ge))})}return U}var at="label";let Ye=Le.extend({defaults:He(He({},Le.prototype.defaults),{},{type:at,tagName:at,traits:["id","title","for"]})},{isComponent:function(U){return(0,M.toLowerCase)(U.tagName)===at}}),gt=_e.extend({tagName:"span"});function Ut(U,oe){var ne=Object.keys(U);if(Object.getOwnPropertySymbols){var ge=Object.getOwnPropertySymbols(U);oe&&(ge=ge.filter(function(Ge){return Object.getOwnPropertyDescriptor(U,Ge).enumerable})),ne.push.apply(ne,ge)}return ne}function dn(U){for(var oe=1;oe<arguments.length;oe++){var ne=arguments[oe]!=null?arguments[oe]:{};oe%2?Ut(Object(ne),!0).forEach(function(ge){(0,ye.Z)(U,ge,ne[ge])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(ne)):Ut(Object(ne)).forEach(function(ge){Object.defineProperty(U,ge,Object.getOwnPropertyDescriptor(ne,ge))})}return U}var rn="video",Qt="yt",Ft="vi",ct="ytnc";let kt=q.extend({defaults:dn(dn({},q.prototype.defaults),{},{type:rn,tagName:rn,videoId:"",void:0,provider:"so",ytUrl:"https://www.youtube.com/embed/",ytncUrl:"https://www.youtube-nocookie.com/embed/",viUrl:"https://player.vimeo.com/video/",loop:0,poster:"",muted:0,autoplay:0,controls:1,color:"",list:"",rel:1,modestbranding:0,sources:[],attributes:{allowfullscreen:"allowfullscreen"}}),initialize:function(U,oe){this.em=oe.em,this.get("src")&&this.parseFromSrc(),this.updateTraits(),this.listenTo(this,"change:provider",this.updateTraits),this.listenTo(this,"change:videoId change:provider",this.updateSrc),q.prototype.initialize.apply(this,arguments)},updateTraits:function(){var U,oe="iframe";switch(this.get("provider")){case Qt:case ct:U=this.getYoutubeTraits();break;case Ft:U=this.getVimeoTraits();break;default:oe="video",U=this.getSourceTraits()}this.set({tagName:oe},{silent:1}),this.set({traits:U}),this.em.trigger("component:toggled")},parseFromSrc:function(){var U=this.get("provider"),oe=this.parseUri(this.get("src")),ne=oe.query;switch(U){case Qt:case ct:case Ft:var ge=oe.pathname.split("/").pop();this.set("videoId",ge),ne.list&&this.set("list",ne.list),ne.autoplay&&this.set("autoplay",1),ne.loop&&this.set("loop",1),parseInt(ne.controls)===0&&this.set("controls",0),ne.color&&this.set("color",ne.color),ne.rel==="0"&&this.set("rel",0),ne.modestbranding==="1"&&this.set("modestbranding",1)}},updateSrc:function(){var U="";switch(this.get("provider")){case Qt:U=this.getYoutubeSrc();break;case ct:U=this.getYoutubeNoCookieSrc();break;case Ft:U=this.getVimeoSrc()}this.set({src:U})},getAttrToHTML:function(){for(var U=arguments.length,oe=new Array(U),ne=0;ne<U;ne++)oe[ne]=arguments[ne];var ge=q.prototype.getAttrToHTML.apply(this,oe),Ge=this.get("provider");switch(Ge){case Qt:case ct:case Ft:break;default:this.get("loop")&&(ge.loop="loop"),this.get("autoplay")&&(ge.autoplay="autoplay"),this.get("controls")&&(ge.controls="controls")}return ge},getProviderTrait:function(){return{type:"select",label:"Provider",name:"provider",changeProp:1,options:[{value:"so",name:"HTML5 Source"},{value:Qt,name:"Youtube"},{value:ct,name:"Youtube (no cookie)"},{value:Ft,name:"Vimeo"}]}},getSourceTraits:function(){return[this.getProviderTrait(),{label:"Source",name:"src",placeholder:"eg. ./media/video.mp4",changeProp:1},{label:"Poster",name:"poster",placeholder:"eg. ./media/image.jpg"},this.getAutoplayTrait(),this.getLoopTrait(),this.getControlsTrait()]},getYoutubeTraits:function(){return[this.getProviderTrait(),{label:"Video ID",name:"videoId",placeholder:"eg. jNQXAC9IVRw",changeProp:1},this.getAutoplayTrait(),this.getLoopTrait(),this.getControlsTrait(),{type:"checkbox",label:"Related",name:"rel",changeProp:1},{type:"checkbox",label:"Modest",name:"modestbranding",changeProp:1}]},getVimeoTraits:function(){return[this.getProviderTrait(),{label:"Video ID",name:"videoId",placeholder:"eg. 123456789",changeProp:1},{label:"Color",name:"color",placeholder:"eg. FF0000",changeProp:1},this.getAutoplayTrait(),this.getLoopTrait()]},getAutoplayTrait:function(){return{type:"checkbox",label:"Autoplay",name:"autoplay",changeProp:1}},getLoopTrait:function(){return{type:"checkbox",label:"Loop",name:"loop",changeProp:1}},getControlsTrait:function(){return{type:"checkbox",label:"Controls",name:"controls",changeProp:1}},getYoutubeSrc:function(){var U=this.get("videoId"),oe=this.get("ytUrl"),ne=this.get("list");return oe+=U+(U.indexOf("?")<0?"?":""),oe+=ne?"&list=".concat(ne):"",oe+=this.get("autoplay")?"&autoplay=1":"",oe+=this.get("controls")?"":"&controls=0&showinfo=0",oe+=this.get("loop")?"&loop=1&playlist=".concat(U):"",oe+=this.get("rel")?"":"&rel=0",oe+=this.get("modestbranding")?"&modestbranding=1":""},getYoutubeNoCookieSrc:function(){var U=this.getYoutubeSrc();return U=U.replace(this.get("ytUrl"),this.get("ytncUrl"))},getVimeoSrc:function(){var U=this.get("viUrl");return U+=this.get("videoId")+"?",U+=this.get("autoplay")?"&autoplay=1":"",U+=this.get("loop")?"&loop=1":"",U+=this.get("controls")?"":"&title=0&portrait=0&badge=0",U+=this.get("color")?"&color="+this.get("color"):""}},{isComponent:function(U){var oe="",ne=U.tagName,ge=U.src,Ge=/youtube\.com\/embed/.test(ge),yt=/youtube-nocookie\.com\/embed/.test(ge),nt=/player\.vimeo\.com\/video/.test(ge),Qe=Ge||yt||nt;return((0,M.toLowerCase)(ne)==rn||(0,M.toLowerCase)(ne)=="iframe"&&Qe)&&(oe={type:"video"},ge&&(oe.src=ge),Qe&&(Ge?oe.provider=Qt:yt?oe.provider=ct:nt&&(oe.provider=Ft))),oe}}),qt=pe.extend({tagName:"div",events:{},initialize:function(U){$.Z.prototype.initialize.apply(this,arguments);var oe=this.model,ne=["loop","autoplay","controls","color","rel","modestbranding","poster"],ge=ne.map(function(Ge){return"change:".concat(Ge)}).join(" ");this.listenTo(oe,"change:provider",this.updateProvider),this.listenTo(oe,"change:src",this.updateSrc),this.listenTo(oe,ge,this.updateVideo)},updateProvider:function(){var U=this.model.get("provider");this.el.innerHTML="",this.el.appendChild(this.renderByProvider(U))},updateSrc:function(){var U=this.model,oe=this.videoEl;if(oe){var ne=U.get("provider"),ge=U.get("src");switch(ne){case"yt":ge=U.getYoutubeSrc();break;case"ytnc":ge=U.getYoutubeNoCookieSrc();break;case"vi":ge=U.getVimeoSrc()}oe.src=ge}},updateVideo:function(){var U=this.model.get("provider"),oe=this.videoEl,ne=this.model;switch(U){case"yt":case"ytnc":case"vi":this.model.trigger("change:videoId");break;default:oe.loop=ne.get("loop"),oe.autoplay=ne.get("autoplay"),oe.controls=ne.get("controls"),oe.poster=ne.get("poster")}},renderByProvider:function(U){var oe;switch(U){case"yt":oe=this.renderYoutube();break;case"ytnc":oe=this.renderYoutubeNoCookie();break;case"vi":oe=this.renderVimeo();break;default:oe=this.renderSource()}return this.videoEl=oe,oe},renderSource:function(){var U=document.createElement("video");return U.src=this.model.get("src"),this.initVideoEl(U),U},renderYoutube:function(){var U=document.createElement("iframe");return U.src=this.model.getYoutubeSrc(),U.frameBorder=0,U.setAttribute("allowfullscreen",!0),this.initVideoEl(U),U},renderYoutubeNoCookie:function(){var U=document.createElement("iframe");return U.src=this.model.getYoutubeNoCookieSrc(),U.frameBorder=0,U.setAttribute("allowfullscreen",!0),this.initVideoEl(U),U},renderVimeo:function(){var U=document.createElement("iframe");return U.src=this.model.getVimeoSrc(),U.frameBorder=0,U.setAttribute("allowfullscreen",!0),this.initVideoEl(U),U},initVideoEl:function(U){U.className=this.ppfx+"no-pointer",U.style.height="100%",U.style.width="100%"},render:function(){for(var U=arguments.length,oe=new Array(U),ne=0;ne<U;ne++)oe[ne]=arguments[ne];pe.prototype.render.apply(this,oe),this.updateClasses();var ge=this.model.get("provider");return this.el.appendChild(this.renderByProvider(ge)),this.updateVideo(),this}});function Kt(U,oe){var ne=Object.keys(U);if(Object.getOwnPropertySymbols){var ge=Object.getOwnPropertySymbols(U);oe&&(ge=ge.filter(function(Ge){return Object.getOwnPropertyDescriptor(U,Ge).enumerable})),ne.push.apply(ne,ge)}return ne}function sn(U){for(var oe=1;oe<arguments.length;oe++){var ne=arguments[oe]!=null?arguments[oe]:{};oe%2?Kt(Object(ne),!0).forEach(function(ge){(0,ye.Z)(U,ge,ne[ge])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(ne)):Kt(Object(ne)).forEach(function(ge){Object.defineProperty(U,ge,Object.getOwnPropertyDescriptor(ne,ge))})}return U}var an="script";let ln=N.ZP.extend({defaults:sn(sn({},N.ZP.prototype.defaults),{},{type:an,tagName:an,droppable:!1,draggable:!1,layerable:!1})},{isComponent:function(U){if((0,M.toLowerCase)(U.tagName)==an){var oe={type:an};return U.src&&(oe.src=U.src,oe.onload=U.onload),oe}}}),Rn=pe.extend({tagName:"script",events:{},render:function(){var U=this.model,oe=this.em,ne=U.get("src"),ge=oe&&oe.get("scriptCount"),Ge=ge||0,yt="";if(ne){var nt=U.get("onload"),Qe="script".concat(Ge),wt="script".concat(Ge+1),jt="".concat(Qe,"Start"),Mt="".concat(wt,"Start");yt=` + var `.concat(Qe,` = document.createElement('script'); + `).concat(Qe,`.onload = function() { + `).concat(nt?"".concat(nt,`(); +`):"",` + typeof `).concat(Mt," == 'function' && ").concat(Mt,`(); + }; + `).concat(Qe,".src = '").concat(ne,`'; + function `).concat(jt,"() { document.body.appendChild(").concat(Qe,`); }; + `).concat(Ge?"":"".concat(jt,"();"),` + `),oe&&oe.set("scriptCount",Ge+1)}else yt=U.__innerHTML();return this.el.innerHTML=yt,this.postRender(),this}});function Hn(U,oe){var ne=Object.keys(U);if(Object.getOwnPropertySymbols){var ge=Object.getOwnPropertySymbols(U);oe&&(ge=ge.filter(function(Ge){return Object.getOwnPropertyDescriptor(U,Ge).enumerable})),ne.push.apply(ne,ge)}return ne}function Mn(U){for(var oe=1;oe<arguments.length;oe++){var ne=arguments[oe]!=null?arguments[oe]:{};oe%2?Hn(Object(ne),!0).forEach(function(ge){(0,ye.Z)(U,ge,ne[ge])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(ne)):Hn(Object(ne)).forEach(function(ge){Object.defineProperty(U,ge,Object.getOwnPropertyDescriptor(ne,ge))})}return U}var wn="svg";let Sn=N.ZP.extend({defaults:Mn(Mn({},N.ZP.prototype.defaults),{},{type:wn,tagName:wn,highlightable:0,resizable:{ratioDefault:1}}),getName:function(){var U=this.get("tagName"),oe=this.get("custom-name");return U=U.charAt(0).toUpperCase()+U.slice(1),oe||U}},{isComponent:function(U){return(0,M.toLowerCase)(U.tagName)===wn}});function pn(U,oe){var ne=Object.keys(U);if(Object.getOwnPropertySymbols){var ge=Object.getOwnPropertySymbols(U);oe&&(ge=ge.filter(function(Ge){return Object.getOwnPropertyDescriptor(U,Ge).enumerable})),ne.push.apply(ne,ge)}return ne}function vn(U){for(var oe=1;oe<arguments.length;oe++){var ne=arguments[oe]!=null?arguments[oe]:{};oe%2?pn(Object(ne),!0).forEach(function(ge){(0,ye.Z)(U,ge,ne[ge])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(ne)):pn(Object(ne)).forEach(function(ge){Object.defineProperty(U,ge,Object.getOwnPropertyDescriptor(ne,ge))})}return U}let Qn=Sn.extend({defaults:vn(vn({},Sn.prototype.defaults),{},{selectable:!1,hoverable:!1,layerable:!1})},{isComponent:function(U){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return!!oe.inSvg}}),kn=$.Z.extend({_createElement:function(U){return document.createElementNS("http://www.w3.org/2000/svg",U)}});function Bn(U,oe){var ne=Object.keys(U);if(Object.getOwnPropertySymbols){var ge=Object.getOwnPropertySymbols(U);oe&&(ge=ge.filter(function(Ge){return Object.getOwnPropertyDescriptor(U,Ge).enumerable})),ne.push.apply(ne,ge)}return ne}function fn(U){for(var oe=1;oe<arguments.length;oe++){var ne=arguments[oe]!=null?arguments[oe]:{};oe%2?Bn(Object(ne),!0).forEach(function(ge){(0,ye.Z)(U,ge,ne[ge])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(ne)):Bn(Object(ne)).forEach(function(ge){Object.defineProperty(U,ge,Object.getOwnPropertyDescriptor(ne,ge))})}return U}let Gn=N.ZP.extend({defaults:fn(fn({},N.ZP.prototype.defaults),{},{tagName:"",droppable:!1,layerable:!1,selectable:!1,editable:!0}),toHTML:function(){var U=this.parent(),oe=this.get("content");return U&&U.is("script")?oe:(0,M.escape)(oe)}},{isComponent:function(U){var oe="";return U.nodeType===3&&(oe={type:"textnode",content:U.textContent}),oe}});function gn(U,oe){var ne=Object.keys(U);if(Object.getOwnPropertySymbols){var ge=Object.getOwnPropertySymbols(U);oe&&(ge=ge.filter(function(Ge){return Object.getOwnPropertyDescriptor(U,Ge).enumerable})),ne.push.apply(ne,ge)}return ne}let Pn=Gn.extend({defaults:function(U){for(var oe=1;oe<arguments.length;oe++){var ne=arguments[oe]!=null?arguments[oe]:{};oe%2?gn(Object(ne),!0).forEach(function(ge){(0,ye.Z)(U,ge,ne[ge])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(ne)):gn(Object(ne)).forEach(function(ge){Object.defineProperty(U,ge,Object.getOwnPropertyDescriptor(ne,ge))})}return U}({},Gn.prototype.defaults),toHTML:function(){return"<!--".concat(this.get("content"),"-->")}},{isComponent:function(U){if(U.nodeType==8)return{tagName:"NULL",type:"comment",content:U.textContent}}}),Kn=$.Z.extend({initialize:function(){$.Z.prototype.initialize.apply(this,arguments)},_setAttributes:function(){},renderAttributes:function(){},updateStatus:function(){},updateClasses:function(){},setAttribute:function(){},updateAttributes:function(){},initClasses:function(){},initComponents:function(){},delegateEvents:function(){},_createElement:function(){return document.createTextNode("")},render:function(){var U=this.model,oe=this.el;return U.opt.temporary||(oe.textContent=U.get("content")),this}}),At=Kn.extend({_createElement:function(){return document.createComment(this.model.get("content"))}});function xt(U,oe){var ne=Object.keys(U);if(Object.getOwnPropertySymbols){var ge=Object.getOwnPropertySymbols(U);oe&&(ge=ge.filter(function(Ge){return Object.getOwnPropertyDescriptor(U,Ge).enumerable})),ne.push.apply(ne,ge)}return ne}function Rt(U){for(var oe=1;oe<arguments.length;oe++){var ne=arguments[oe]!=null?arguments[oe]:{};oe%2?xt(Object(ne),!0).forEach(function(ge){(0,ye.Z)(U,ge,ne[ge])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(ne)):xt(Object(ne)).forEach(function(ge){Object.defineProperty(U,ge,Object.getOwnPropertyDescriptor(ne,ge))})}return U}function ir(U){var oe=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var ne,ge=(0,A.Z)(U);if(oe){var Ge=(0,A.Z)(this).constructor;ne=Reflect.construct(ge,arguments,Ge)}else ne=ge.apply(this,arguments);return(0,P.Z)(this,ne)}}var Cn=function(U){(0,y.Z)(ne,U);var oe=ir(ne);function ne(){return(0,L.Z)(this,ne),oe.apply(this,arguments)}return(0,w.Z)(ne,[{key:"defaults",value:function(){return Rt(Rt({},N.ZP.getDefaults()),{},{tagName:"body",removable:!1,copyable:!1,draggable:!1,components:[],traits:[],stylable:["background","background-color","background-image","background-repeat","background-attachment","background-position","background-size"]})}},{key:"__postAdd",value:function(){var ge=this.em&&this.em.get("UndoManager");return ge&&!this.__hasUm&&ge.add(this),N.ZP.prototype.__postAdd.call(this,arguments)}},{key:"__postRemove",value:function(){var ge=this.em&&this.em.get("UndoManager");return ge&&ge.remove(this),N.ZP.prototype.__postRemove.call(this,arguments)}}]),ne}(N.ZP);function $t(U,oe){var ne=Object.keys(U);if(Object.getOwnPropertySymbols){var ge=Object.getOwnPropertySymbols(U);oe&&(ge=ge.filter(function(Ge){return Object.getOwnPropertyDescriptor(U,Ge).enumerable})),ne.push.apply(ne,ge)}return ne}function Jt(U){for(var oe=1;oe<arguments.length;oe++){var ne=arguments[oe]!=null?arguments[oe]:{};oe%2?$t(Object(ne),!0).forEach(function(ge){(0,ye.Z)(U,ge,ne[ge])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(ne)):$t(Object(ne)).forEach(function(ge){Object.defineProperty(U,ge,Object.getOwnPropertyDescriptor(ne,ge))})}return U}Cn.isComponent=function(){return!1};var Nn="iframe";let Xn=N.ZP.extend({defaults:function(){return Jt(Jt({},N.ZP.prototype.defaults),{},{type:Nn,tagName:Nn,droppable:!1,resizable:!0,traits:["id","title","src"],attributes:{frameborder:"0"}})}},{isComponent:function(U){return(0,M.toLowerCase)(U.tagName)===Nn}});var ot=b(9283);let Nt=$.Z.extend({tagName:"div",initialize:function(){for(var U=arguments.length,oe=new Array(U),ne=0;ne<U;ne++)oe[ne]=arguments[ne];$.Z.prototype.initialize.apply(this,oe),this.listenTo(this.model,"change:attributes:src",this.updateSrc)},updateSrc:function(){var U=(0,ot.sE)(this.el,"iframe")[0];U&&(0,ot.FW)(U,{src:this.__getSrc()})},render:function(){for(var U=arguments.length,oe=new Array(U),ne=0;ne<U;ne++)oe[ne]=arguments[ne];$.Z.prototype.render.apply(this,oe);var ge=(0,ot.ut)("iframe",{class:"".concat(this.ppfx,"no-pointer"),style:"width: 100%; height: 100%; border: none",src:this.__getSrc()});return this.el.appendChild(ge),this},__getSrc:function(){return this.model.getAttributes().src||""}});function he(U,oe){var ne=Object.keys(U);if(Object.getOwnPropertySymbols){var ge=Object.getOwnPropertySymbols(U);oe&&(ge=ge.filter(function(Ge){return Object.getOwnPropertyDescriptor(U,Ge).enumerable})),ne.push.apply(ne,ge)}return ne}function Te(U){for(var oe=1;oe<arguments.length;oe++){var ne=arguments[oe]!=null?arguments[oe]:{};oe%2?he(Object(ne),!0).forEach(function(ge){(0,ye.Z)(U,ge,ne[ge])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(ne)):he(Object(ne)).forEach(function(ge){Object.defineProperty(U,ge,Object.getOwnPropertyDescriptor(ne,ge))})}return U}let Ke=function(){var U,oe,ne,ge={},Ge={},yt=[{id:"cell",model:_,view:C},{id:"row",model:p,view:d},{id:"table",model:g,view:T},{id:"thead",model:ce,view:F},{id:"tbody",model:W,view:l},{id:"tfoot",model:m,view:j},{id:"map",model:Ee,view:Ae},{id:"link",model:rt,view:_e},{id:"label",model:Ye,view:gt},{id:"video",model:kt,view:qt},{id:"image",model:q,view:pe},{id:"script",model:ln,view:Rn},{id:"svg-in",model:Qn,view:kn},{id:"svg",model:Sn,view:kn},{id:"iframe",model:Xn,view:Nt},{id:"comment",model:Pn,view:At},{id:"textnode",model:Gn,view:Kn},{id:"text",model:Le,view:be},{id:"wrapper",model:Cn,view:B},{id:"default",model:N.ZP,view:$.Z}];return{Component:N.ZP,Components:te.Z,ComponentsView:G.Z,componentTypes:yt,componentsById:Ge,name:"DomComponents",getConfig:function(){return ge},storageKey:function(){var nt=[],Qe=ge.stm&&ge.stm.getConfig()||{};return Qe.storeHtml&&nt.push("html"),Qe.storeComponents&&nt.push("components"),nt},init:function(nt){var Qe=this;for(var wt in U=(ge=nt||{}).em,this.em=U,U&&(ge.components=U.config.components||ge.components),Y)wt in ge||(ge[wt]=Y[wt]);var jt=ge.pStylePrefix;if(jt&&(ge.stylePrefix=jt+ge.stylePrefix),U){ge.modal=U.get("Modal")||"",ge.am=U.get("AssetManager")||"",U.get("Parser").compTypes=yt,U.on("change:componentHovered",this.componentHovered,this);var Mt=U.get("selected");U.listenTo(Mt,"add",function(en,Gt,tn){return Qe.selectAdd(Mt.getComponent(en),tn)}),U.listenTo(Mt,"remove",function(en,Gt,tn){return Qe.selectRemove(Mt.getComponent(en),tn)})}return U.get("hasPages")&&(ge.components=""),this},onLoad:function(){ge.components&&this.setComponents(ge.components,{silent:1})},load:function(){var nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",Qe=this.em,wt="";!nt&&ge.stm&&(nt=ge.em.getCacheLoad());var jt=nt,Mt=jt.components,en=jt.html;if(Mt)if((0,J.isObject)(Mt)||(0,J.isArray)(Mt))wt=Mt;else try{wt=JSON.parse(Mt)}catch(tn){Qe&&Qe.logError(tn)}else en&&(wt=en);var Gt=wt&&wt.constructor===Object;return(wt&&wt.length||Gt)&&(this.clear(),Gt?this.getWrapper().set(wt):this.getComponents().add(wt)),wt},store:function(nt){if(!ge.stm||this.em.get("hasPages"))return{};var Qe={},wt=this.storageKey();if(wt.indexOf("html")>=0&&(Qe.html=ge.em.getHtml()),wt.indexOf("components")>=0){var jt=ge.storeWrapper?this.getWrapper():this.getComponents();Qe.components=JSON.stringify(jt)}return nt||ge.stm.store(Qe),Qe},getComponent:function(){var nt=this.em.get("PageManager").getSelected(),Qe=nt&&nt.getMainFrame();return Qe&&Qe.getComponent()},getWrapper:function(){return this.getComponent()},getComponents:function(){var nt=this.getWrapper();return nt&&nt.get("components")},addComponent:function(nt){var Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.getComponents().add(nt,Qe)},render:function(){return ne.render().el},clear:function(){var nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.getComponents().map(function(Qe){return Qe}).forEach(function(Qe){return Qe.remove(nt)}),this},setComponents:function(nt){var Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.clear(Qe).addComponent(nt,Qe)},addType:function(nt,Qe){var wt=this.em,jt=Qe.model,Mt=jt===void 0?{}:jt,en=Qe.view,Gt=en===void 0?{}:en,tn=Qe.isComponent,Dn=Qe.extend,cn=Qe.extendView,zn=Qe.extendFn,xe=zn===void 0?[]:zn,Pe=Qe.extendFnView,Q=Pe===void 0?[]:Pe,c=this.getType(nt),V=this.getType(Dn),me=this.getType(cn),Ce=V||c||this.getType("default"),Ze=Ce.model,We=me?me.view:Ce.view,it=function(lt,ut,mt){return lt.reduce(function(_t,Dt){var Bt=ut[Dt],Xt=mt.prototype[Dt];return Bt&&Xt&&(_t[Dt]=function(){Xt.bind(this).apply(void 0,arguments),Bt.bind(this).apply(void 0,arguments)}),_t},{})};(0,we.Z)(Mt)==="object"&&(Qe.model=Ze.extend(Te(Te(Te({},Mt),it(xe,Mt,Ze)),{},{defaults:Te(Te({},(0,J.result)(Ze.prototype,"defaults")||{}),(0,J.result)(Mt,"defaults")||{})}),{isComponent:!c||V||tn?tn||function(){return 0}:Ze.isComponent})),(0,we.Z)(Gt)==="object"&&(Qe.view=We.extend(Te(Te({},Gt),it(Q,Gt,We)))),c?(c.model=Qe.model,c.view=Qe.view):(Qe.id=nt,yt.unshift(Qe));var Xe="component:type:".concat(c?"update":"add");return wt&&wt.trigger(Xe,c||Qe),this},getType:function(nt){for(var Qe=yt,wt=0;wt<Qe.length;wt++)if(Qe[wt].id==nt)return Qe[wt]},removeType:function(nt){var Qe=yt,wt=this.getType(nt);if(wt){var jt=Qe.indexOf(wt);return Qe.splice(jt,1),wt}},getTypes:function(){return yt},selectAdd:function(nt){var Qe=this,wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};nt&&(nt.set({status:"selected"}),["component:selected","component:toggled"].forEach(function(jt){return Qe.em.trigger(jt,nt,wt)}))},selectRemove:function(nt){var Qe=this,wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};nt&&(this.em,nt.set({status:"",state:""}),["component:deselected","component:toggled"].forEach(function(jt){return Qe.em.trigger(jt,nt,wt)}))},componentHovered:function(){var nt=ge.em,Qe=nt.get("componentHovered"),wt=nt.previous("componentHovered"),jt="hovered";wt&&wt.get("status")==jt&&wt.set({status:"",state:""}),Qe&&(0,J.isEmpty)(Qe.get("status"))&&Qe.set("status",jt)},getShallowWrapper:function(){var nt=this.shallow,Qe=this.em;if(!nt&&Qe){var wt=Qe.get("shallow");if(!wt)return;var jt=wt.get("DomComponents");if(jt.componentTypes=this.componentTypes,nt=jt.getWrapper()){var Mt=[N.GN,N.xH].join(" ");nt.on(Mt,(0,J.debounce)(function(){return nt.components("")},100))}this.shallow=nt}return nt},canMove:function(nt,Qe,wt){var jt=wt||wt===0?wt:null,Mt={result:!1,reason:0,target:nt,source:null};if(!Qe)return Mt;var en=Qe!=null&&Qe.toHTML?Qe:null;if(!en){var Gt=this.getShallowWrapper();en=Gt?.append(Qe)[0]}if(Mt.source=en,!en)return Mt;var tn=en.get("draggable");if((0,J.isFunction)(tn))tn=!!tn(en,nt,jt);else{var Dn=nt.getEl();tn=(0,J.isArray)(tn)?tn.join(","):tn,tn=(0,J.isString)(tn)?Dn?.matches(tn):tn}if(!tn)return Te(Te({},Mt),{},{reason:1});var cn=nt.get("droppable");if((0,J.isFunction)(cn))cn=!!cn(en,nt,jt);else if(cn===!1&&nt.isInstanceOf("text")&&en.get("textable"))cn=!0;else{var zn=en.getEl();cn=(0,J.isArray)(cn)?cn.join(","):cn,cn=(0,J.isString)(cn)?zn?.matches(cn):cn}return Te(Te({},Mt),{},cn?{result:!0}:{reason:2})},allById:function(){return Ge},getById:function(nt){return Ge[nt]||null},destroy:function(){var nt=this.allById();Object.keys(nt).forEach(function(Qe){return nt[Qe]&&nt[Qe].remove()}),ne&&ne.remove(),[ge,U,Ge,oe,ne].forEach(function(Qe){return{}}),this.em={}}}}},9138:(Je,Se,b)=>{"use strict";b.d(Se,{ZP:()=>ie,OA:()=>T,GN:()=>W,xH:()=>X});var ye=b(1002),we=b(2982),J=b(885),Y=b(4942),N=b(5671),te=b(3144),$=b(9340),L=b(3930),w=b(1120),y=b(9050),P=b(6183),A=b(3345),k=b(2316),B=b(8431),G=b(8490),M=b(4293);function H(le,ce){var F=Object.keys(le);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(le);ce&&(l=l.filter(function(s){return Object.getOwnPropertyDescriptor(le,s).enumerable})),F.push.apply(F,l)}return F}function Z(le){for(var ce=1;ce<arguments.length;ce++){var F=arguments[ce]!=null?arguments[ce]:{};ce%2?H(Object(F),!0).forEach(function(l){(0,Y.Z)(le,l,F[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(le,Object.getOwnPropertyDescriptors(F)):H(Object(F)).forEach(function(l){Object.defineProperty(le,l,Object.getOwnPropertyDescriptor(F,l))})}return le}function _(le){var ce=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var F,l=(0,w.Z)(le);if(ce){var s=(0,w.Z)(this).constructor;F=Reflect.construct(l,arguments,s)}else F=l.apply(this,arguments);return(0,L.Z)(this,F)}}var C=function(le){(0,$.Z)(F,le);var ce=_(F);function F(){return(0,N.Z)(this,F),ce.apply(this,arguments)}return(0,te.Z)(F,[{key:"initialize",value:function(){var l=this.attributes,s=l.target,o=l.name,h=l.changeProp;if(!this.get("id")&&this.set("id",o),s){this.target=s,this.unset("target");var m=h?"change:".concat(o):"change:attributes:".concat(o);this.listenTo(s,m,this.targetUpdated)}}},{key:"getId",value:function(){return this.get("id")}},{key:"getType",value:function(){return this.get("type")}},{key:"getName",value:function(){return this.get("name")}},{key:"getLabel",value:function(){var l,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=s.locale,h=o===void 0||o,m=this.getId(),j=this.get("label")||this.getName();return h&&((l=this.em)===null||l===void 0?void 0:l.t("traitManager.traits.labels.".concat(m)))||j}},{key:"getValue",value:function(){return this.getTargetValue()}},{key:"setValue",value:function(l){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o={};s.partial&&(o.avoidStore=!0),this.setTargetValue(l,o),s.partial===!1&&(this.setTargetValue(""),this.setTargetValue(l))}},{key:"props",value:function(){return this.attributes}},{key:"targetUpdated",value:function(){var l,s=this.getTargetValue();this.set({value:s},{fromTarget:1}),(l=this.em)===null||l===void 0||l.trigger("trait:update",{trait:this,component:this.target})}},{key:"getTargetValue",value:function(){var l,s=this.get("name"),o=this.target;return l=this.get("changeProp")?o.get(s):o.getAttributes()[s],(0,y.isUndefined)(l)?"":l}},{key:"setTargetValue",value:function(l){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.target,h=this.get("name");if(!(0,y.isUndefined)(l)){var m=l;if(l==="false"?m=!1:l==="true"&&(m=!0),this.get("changeProp"))o.set(h,m,s);else{var j=Z({},o.get("attributes"));j[h]=m,o.set("attributes",j,s)}}}},{key:"setValueFromInput",value:function(l){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},h={value:l};this.set(h,Z(Z({},o),{},{avoidStore:1})),s&&(this.set("value","",o),this.set(h,o))}},{key:"getInitValue",value:function(){var l,s=this.target,o=this.get("name");if(s){var h=s.get("attributes");l=this.get("changeProp")?s.get(o):h[o]}return l||this.get("value")||this.get("default")}}]),F}(k.Model);C.prototype.defaults={type:"text",label:"",name:"",min:"",max:"",unit:"",step:1,value:"",target:"",default:"",placeholder:"",changeProp:0,options:[]};function z(le){var ce=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var F,l=(0,w.Z)(le);if(ce){var s=(0,w.Z)(this).constructor;F=Reflect.construct(l,arguments,s)}else F=l.apply(this,arguments);return(0,L.Z)(this,F)}}var I,p=function(le){(0,$.Z)(F,le);var ce=z(F);function F(){return(0,N.Z)(this,F),ce.apply(this,arguments)}return(0,te.Z)(F,[{key:"initialize",value:function(l){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.em=s.em,this.listenTo(this,"add",this.handleAdd),this.listenTo(this,"reset",this.handleReset)}},{key:"handleReset",value:function(l){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=s.previousModels,h=o===void 0?[]:o;h.forEach(function(m){return m.trigger("remove")})}},{key:"handleAdd",value:function(l){l.em=this.em;var s=this.target;s&&(l.target=s)}},{key:"setTarget",value:function(l){this.target=l}},{key:"add",value:function(l,s){var o=this.em;if((0,y.isString)(l)||(0,y.isArray)(l)){var h=o&&o.get&&o.get("TraitManager"),m=function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return{build:function(ue){var ke=[];typeof ue=="string"&&(ue=[ue]);for(var Ee=0;Ee<ue.length;Ee++){var pe={},Ae=ue[Ee];pe.name=Ae,Ae==="target"&&(pe.type="select",pe.default=!1,pe.options=q.optionsTarget),ke.push(pe)}return ke}}}(h&&h.getConfig());(0,y.isString)(l)&&(l=[l]);for(var j=0,K=l.length;j<K;j++){var ve=l[j],E=(0,y.isString)(ve)?m.build(ve)[0]:ve;E.target=this.target,l[j]=E}}return k.Collection.prototype.add.apply(this,[l,s])}}]),F}(k.Collection);function d(le,ce){var F=Object.keys(le);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(le);ce&&(l=l.filter(function(s){return Object.getOwnPropertyDescriptor(le,s).enumerable})),F.push.apply(F,l)}return F}function f(le){for(var ce=1;ce<arguments.length;ce++){var F=arguments[ce]!=null?arguments[ce]:{};ce%2?d(Object(F),!0).forEach(function(l){(0,Y.Z)(le,l,F[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(le,Object.getOwnPropertyDescriptors(F)):d(Object(F)).forEach(function(l){Object.defineProperty(le,l,Object.getOwnPropertyDescriptor(F,l))})}return le}function v(le){var ce=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var F,l=(0,w.Z)(le);if(ce){var s=(0,w.Z)(this).constructor;F=Reflect.construct(l,arguments,s)}else F=l.apply(this,arguments);return(0,L.Z)(this,F)}}p.prototype.model=C;var D=function(le){return le.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},g=function(le){return le&&le.getConfig("avoidInlineStyle")},T="component:drag",u="__symbols",x="__symbol",O="__symbol_ovrd",W="component:update",X="".concat(W,"-inside"),ie=function(le){(0,$.Z)(F,le);var ce=v(F);function F(){return(0,N.Z)(this,F),ce.apply(this,arguments)}return(0,te.Z)(F,[{key:"init",value:function(){}},{key:"updated",value:function(l,s,o){}},{key:"removed",value:function(){}},{key:"initialize",value:function(){var l=this,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,y.bindAll)(this,"__upSymbProps","__upSymbCls","__upSymbComps");var h=o.em,m=this.parent(),j=m&&m.attributes,K=this.get("propagate");if(K&&this.set("propagate",(0,y.isArray)(K)?K:[K]),j&&j.propagate&&!K){var ve={},E=j.propagate;E.forEach(function(pe){return ve[pe]=m.get(pe)}),ve.propagate=E,this.set(f(f({},ve),s))}if(o&&o.config&&o.config.voidElements.indexOf(this.get("tagName"))>=0&&this.set("void",!0),o.em=h,this.opt=o,this.em=h,this.frame=o.frame,this.config=o.config||{},this.set("attributes",f(f({},(0,y.result)(this,"defaults").attributes||{}),this.get("attributes")||{})),this.ccid=F.createId(this,o),this.initClasses(),this.initTraits(),this.initComponents(),this.initToolbar(),this.initScriptProps(),this.listenTo(this,"change:script",this.scriptUpdated),this.listenTo(this,"change:tagName",this.tagUpdated),this.listenTo(this,"change:attributes",this.attrUpdated),this.listenTo(this,"change:attributes:id",this._idUpdated),this.on("change:toolbar",this.__emitUpdateTlb),this.on("change",this.__onChange),this.on(X,this.__propToParent),this.set("status",""),this.views=[],["classes","traits","components"].forEach(function(pe){var Ae="add remove ".concat(pe!=="components"?"change":"");l.listenTo(l.get(pe),Ae.trim(),function(){for(var Ne=arguments.length,Oe=new Array(Ne),Ie=0;Ie<Ne;Ie++)Oe[Ie]=arguments[Ie];return l.emitUpdate.apply(l,[pe].concat(Oe))})}),!o.temporary){var q=h&&h.get("CssComposer"),ue=this.attributes,ke=ue.styles,Ee=ue.type;ke&&q&&q.addCollection(ke,{},{group:"cmp:".concat(Ee)}),this.__postAdd(),this.init(),this.__isSymbolOrInst()&&this.__initSymb(),h&&h.trigger("component:create",this)}}},{key:"__postAdd",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=this.em,o=s&&s.get("UndoManager"),h=this.components();o&&!this.__hasUm&&(o.add(h),o.add(this.getSelectors()),this.__hasUm=1),l.recursive&&h.map(function(m){return m.__postAdd(l)})}},{key:"__postRemove",value:function(){var l=this.em,s=l&&l.get("UndoManager");s&&(s.remove(this.components()),s.remove(this.getSelectors()),delete this.__hasUm)}},{key:"__onChange",value:function(l,s){var o=this.changedAttributes();["status","open","toolbar","traits"].forEach(function(h){return delete o[h]}),(0,P.isEmptyObj)(o)||(this.__changesUp(s),this.__propSelfToParent({component:this,changed:o,options:s}))}},{key:"__changesUp",value:function(l){var s=this.em;[this.frame,s].forEach(function(o){return o&&o.changesUp(l)})}},{key:"__propSelfToParent",value:function(l){this.trigger(W,l),this.__propToParent(l)}},{key:"__propToParent",value:function(l){var s=this.parent();s&&s.trigger(X,l)}},{key:"__emitUpdateTlb",value:function(){this.emitUpdate("toolbar")}},{key:"is",value:function(l){return this.get("type")==l}},{key:"props",value:function(){return this.attributes}},{key:"index",value:function(){var l=this.collection;return l?l.indexOf(this):0}},{key:"setDragMode",value:function(l){return this.set("dmode",l)}},{key:"find",value:function(l){var s=[],o=this.view.$el.find(l);return o.each(function(h){var m=o.eq(h).data("model");m&&s.push(m)}),s}},{key:"findType",value:function(l){var s=[];return function o(h){return h.forEach(function(m){m.is(l)&&s.push(m),o(m.components())})}(this.components()),s}},{key:"closest",value:function(l){var s=this.view.$el.closest(l);return s.length&&s.data("model")}},{key:"closestType",value:function(l){for(var s=this.parent();s&&!s.is(l);)s=s.parent();return s}},{key:"contains",value:function(l){var s=!1;if(!l)return s;var o=function h(m){!s&&m.forEach(function(j){j===l&&(s=!0),!s&&h(j.components())})};return o(this.components()),s}},{key:"tagUpdated",value:function(){this.trigger("rerender")}},{key:"replaceWith",value:function(l){var s=this.collection,o=s.indexOf(this);return s.remove(this),s.add(l,{at:o})}},{key:"attrUpdated",value:function(l,s){var o=this,h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},m=this.get("attributes"),j=m.class;j&&this.setClass(j),delete m.class;var K=m.style;K&&this.setStyle(K),delete m.style;var ve=f({},this.previous("attributes")),E=(0,P.shallowDiff)(ve,this.get("attributes"));(0,y.keys)(E).forEach(function(q){return o.trigger("change:attributes:".concat(q),o,E[q],h)})}},{key:"setAttributes",value:function(l){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.set("attributes",f({},l),s),this}},{key:"addAttributes",value:function(l){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.setAttributes(f(f({},this.getAttributes({noClass:1})),l),s)}},{key:"removeAttributes",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=Array.isArray(l)?l:[l],h=this.getAttributes();return o.map(function(m){return delete h[m]}),this.setAttributes(h,s)}},{key:"getStyle",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.em,h=(0,y.isString)(l)?l:"",m=h?s:l;if(o&&o.getConfig("avoidInlineStyle")&&!m.inline){var j=o.get("state"),K=o.get("CssComposer"),ve=K.getIdRule(this.getId(),f({state:j},m));if(this.rule=ve,ve)return ve.getStyle(h)}return A.Z.getStyle.call(this,h)}},{key:"setStyle",value:function(){var l=this,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=this.em,m=this.opt;if(h&&h.getConfig("avoidInlineStyle")&&!m.temporary&&!o.inline){var j=this.get("style")||{};s=f(f({},s=(0,y.isString)(s)?this.parseStyle(s):s),j);var K=h.get("state"),ve=h.get("CssComposer"),E=this.getStyle(o);this.rule=ve.setIdRule(this.getId(),s,f(f({},o),{},{state:K}));var q=(0,P.shallowDiff)(E,s);this.set("style","",{silent:1}),(0,y.keys)(q).forEach(function(ue){return l.trigger("change:style:".concat(ue))})}else s=A.Z.setStyle.apply(this,arguments);return s}},{key:"getAttributes",value:function(){var l,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=this.em,h=[],m=f({},this.get("attributes")),j=o&&o.get("SelectorManager"),K=this.getId();if(s.noClass||(this.get("classes").forEach(function(E){return h.push((0,y.isString)(E)?E:E.get("name"))}),h.length&&(m.class=h.join(" "))),!s.noStyle){var ve=this.get("style");(0,P.isObject)(ve)&&!(0,P.isEmptyObj)(ve)&&(m.style=this.styleToString({inline:1}))}return(0,y.has)(m,"id")||(g(o)?l=j&&j.get(K,j.Selector.TYPE_ID):(0,y.isEmpty)(this.getStyle())||(l=1),(this.__getSymbol()||this.__getSymbols())&&(l=1),l&&(m.id=K)),m}},{key:"addClass",value:function(l){var s=this.em.get("SelectorManager").addClass(l);return this.get("classes").add(s)}},{key:"setClass",value:function(l){return this.get("classes").reset(),this.addClass(l)}},{key:"removeClass",value:function(l){var s=[];l=(0,y.isArray)(l)?l:[l];var o=this.get("classes"),h=G.Z.TYPE_CLASS;return l.forEach(function(m){m.split(" ").forEach(function(j){var K=o.where({name:j,type:h})[0];K&&s.push(o.remove(K))})}),s}},{key:"getClasses",value:function(){var l=this.getAttributes().class;return l?l.split(" "):[]}},{key:"__logSymbol",value:function(l,s){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},h=this.__getSymbol(),m=this.__getSymbols();(h||m)&&this.em.log(l,{model:this,toUp:s,context:"symbols",opts:o})}},{key:"__initSymb",value:function(){this.__symbReady||(this.on("change",this.__upSymbProps),this.__symbReady=1)}},{key:"__isSymbol",value:function(){return(0,y.isArray)(this.get(u))}},{key:"__isSymbolOrInst",value:function(){return!(!this.__isSymbol()&&!this.get(x))}},{key:"__isSymbolTop",value:function(){var l=this.parent();return this.__isSymbolOrInst()&&(!l||l&&!l.__isSymbol()&&!l.__getSymbol())}},{key:"__isSymbolNested",value:function(){if(!this.__isSymbolOrInst()||this.__isSymbolTop())return!1;var l=(this.__isSymbol()?this:this.__getSymbol()).__getSymbTop(),s=this.__getSymbTop();return(s.__isSymbol()?s:s.__getSymbol())!==l}},{key:"__getAllById",value:function(){var l=this.em;return l?l.get("DomComponents").allById():{}}},{key:"__getSymbol",value:function(){var l=this.get(x);if(l&&(0,y.isString)(l)){var s=this.__getAllById()[l];s?(l=s,this.set(x,s)):l=0}return l}},{key:"__getSymbols",value:function(){var l=this,s=this.get(u);return s&&(0,y.isArray)(s)&&(s.forEach(function(o,h){o&&(0,y.isString)(o)&&(s[h]=l.__getAllById()[o])}),s=s.filter(function(o){return o&&!(0,y.isString)(o)})),s}},{key:"__isSymbOvrd",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",s=this.get(O),o=l.split(":"),h=(0,J.Z)(o,1),m=h[0],j=l!==m?[l,m]:[l];return s===!0||(0,y.isArray)(s)&&j.some(function(K){return s.indexOf(K)>=0})}},{key:"__getSymbToUp",value:function(){var l=this,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=[],h=this.em,m=s.changed,j=h&&h.get("symbols");if(s.fromInstance||s.noPropagate||s.fromUndo||!j||m&&this.__isSymbOvrd(m))return o;var K=this.__getSymbols()||[],ve=this.__getSymbol(),E=ve?[ve].concat((0,we.Z)(ve.__getSymbols()||[])):K;return o=E.filter(function(q){return q!==l}).filter(function(q){return!(m&&q.__isSymbOvrd(m))})}},{key:"__getSymbTop",value:function(l){for(var s=this,o=this.parent(l);o&&(o.__isSymbol()||o.__getSymbol());)s=o,o=o.parent(l);return s}},{key:"__upSymbProps",value:function(l){var s=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=this.changedAttributes(),m=h.attributes||{};if(delete h.status,delete h.open,delete h.__symbols,delete h.__symbol,delete h.__symbol_ovrd,delete h.attributes,delete m.id,(0,P.isEmptyObj)(m)||(h.attributes=m),!(0,P.isEmptyObj)(h)){var j=this.__getSymbToUp(o);(0,y.keys)(h).map(function(K){s.__isSymbOvrd(K)&&delete h[K]}),this.__logSymbol("props",j,{opts:o,changed:h}),j.forEach(function(K){var ve=f({},h);(0,y.keys)(ve).map(function(E){K.__isSymbOvrd(E)&&delete ve[E]}),K.set(ve,f({fromInstance:s},o))})}}},{key:"__upSymbCls",value:function(l,s){var o=this,h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},m=this.__getSymbToUp(h);this.__logSymbol("classes",m,{opts:h}),m.forEach(function(j){j.set("classes",o.get("classes"),{fromInstance:o})}),this.__changesUp(h)}},{key:"__upSymbComps",value:function(l,s,o){var h=this,m=o||s||{},j={fromInstance:m.fromInstance,fromUndo:m.fromUndo},K=l.opt.temporary;if(o)if(o.add){var ve=[],E=!!this.__getSymbols(),q=this.__getSymbToUp(f(f({},j),{},{changed:"components:add"}));if(q.length){var ue=l.__getSymbol();ve=(ue?ue.__getSymbols():l.__getSymbols())||[],(ve=(0,we.Z)(ve)).push(ue||l)}!K&&this.__logSymbol("add",q,{opts:o,addedInstances:ve.map(function(tt){return tt.cid}),added:l.cid}),q.forEach(function(tt){var ht=tt.__getSymbTop(),Vt=ve.filter(function(rt){var Ht=rt.__getSymbTop({prev:1});return ht&&Ht&&Ht===ht})[0]||l.clone({symbol:1,symbolInv:E});tt.append(Vt,f({fromInstance:h},o))})}else{var ke=l.__getSymbol();if(ke&&!o.temporary&&ke.set(u,ke.__getSymbols().filter(function(tt){return tt!==l})),!l.__isSymbolTop()){var Ee="components:remove",pe=o.index,Ae=l.parent(),Ne=f({fromInstance:l},o),Oe=l.__isSymbolNested(),Ie=function(tt){var ht=tt.parent();ht&&!ht.__isSymbOvrd(Ee)&&tt.remove(Ne)},Le=Ae.__isSymbOvrd(Ee)?[]:l.__getSymbToUp(j);Oe&&(Le=Ae.__getSymbToUp(f(f({},j),{},{changed:Ee})),Ie=function(tt){var ht=tt.components().at(pe);ht&&ht.remove(f({fromInstance:Ae},Ne))}),!K&&this.__logSymbol("remove",Le,{opts:o,removed:l.cid,isSymbNested:Oe}),Le.forEach(Ie)}}else{var $e=this.__getSymbToUp(f(f({},j),{},{changed:"components:reset"}));this.__logSymbol("reset",$e,{components:l.models}),$e.forEach(function(tt){var ht=l.models.map(function(Vt){return Vt.clone({symbol:1})});tt.components().reset(ht,f({fromInstance:h},s))})}this.__changesUp(m)}},{key:"initClasses",value:function(l,s){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},h="change:classes",m=this.get("attributes").class||[],j=[this,h,this.initClasses],K=this.get("classes")||m,ve=(0,y.isString)(K)?K.split(" "):K;this.stopListening.apply(this,j);var E=this.normalizeClasses(ve),q=new M.Z([]);return this.set("classes",q,o),q.add(E),q.on("add remove reset",this.__upSymbCls),this.listenTo.apply(this,j),this}},{key:"initComponents",value:function(){var l=[this,"change:components",this.initComponents];this.stopListening.apply(this,l);var s=new B.Z(null,this.opt);s.parent=this;var o=this.get("components"),h=!this.opt.avoidChildren;return this.set("components",s),h&&o&&s.add((0,y.isFunction)(o)?o(this):o,this.opt),s.on("add remove reset",this.__upSymbComps),this.listenTo.apply(this,l),this}},{key:"initTraits",value:function(l){var s=this.em,o="change:traits";this.off(o,this.initTraits),this.__loadTraits();var h=f({},this.get("attributes")),m=this.get("traits");return m.each(function(j){if(!j.get("changeProp")){var K=j.get("name"),ve=j.getInitValue();K&&ve&&(h[K]=ve)}}),m.length&&this.set("attributes",h),this.on(o,this.initTraits),l&&s&&s.trigger("component:toggled"),this}},{key:"initScriptProps",value:function(){if(!this.opt.temporary){var l="script-props",s=["change:".concat(l),this.initScriptProps];this.off.apply(this,s);var o=this.previous(l)||[],h=this.get(l)||[],m=o.map(function(K){return"change:".concat(K)}).join(" "),j=h.map(function(K){return"change:".concat(K)}).join(" ");m&&this.off(m,this.__scriptPropsChange),j&&this.on(j,this.__scriptPropsChange),this.on.apply(this,s)}}},{key:"__scriptPropsChange",value:function(l,s){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};o.avoidStore||this.trigger("rerender")}},{key:"append",value:function(l){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=(0,y.isArray)(l)?l:[l],h=o.map(function(j){return(0,y.isString)(j)||j.collection&&j.collection.remove(j,{temporary:1}),j}),m=this.components().add(h,s);return(0,y.isArray)(m)?m:[m]}},{key:"components",value:function(l){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.get("components");return(0,y.isUndefined)(l)?o:(o.reset(null,s),l?this.append(l,s):[])}},{key:"getChildAt",value:function(l){return this.components().at(l||0)||null}},{key:"getLastChild",value:function(){var l=this.components();return l.at(l.length-1)||null}},{key:"empty",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.components().reset(null,l),this}},{key:"parent",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=this.collection||l.prev&&this.prevColl;return s?s.parent:null}},{key:"scriptUpdated",value:function(){this.set("scriptUpdated",1)}},{key:"initToolbar",value:function(){var l=this.em,s=this,o=l&&l.getConfig("stylePrefix")||"";if(!s.get("toolbar")&&l){var h=[];s.collection&&h.push({label:l.getIcon("arrowUp"),command:function(m){return m.runCommand("core:component-exit",{force:1})}}),s.get("draggable")&&h.push({attributes:{class:"".concat(o,"no-touch-actions"),draggable:!0},label:l.getIcon("move"),command:"tlb-move"}),s.get("copyable")&&h.push({label:l.getIcon("copy"),command:"tlb-clone"}),s.get("removable")&&h.push({label:l.getIcon("delete"),command:"tlb-delete"}),s.set("toolbar",h)}}},{key:"__loadTraits",value:function(l){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=l||this.get("traits");if(!(o instanceof p)){o=(0,y.isFunction)(o)?o(this):o;var h=new p([],this.opt);h.setTarget(this),o.length&&(o.forEach(function(m){return m.attributes&&delete m.attributes.value}),h.add(o)),this.set({traits:h},s)}return this}},{key:"getTraits",value:function(){return this.__loadTraits(),(0,we.Z)(this.get("traits").models)}},{key:"setTraits",value:function(l){var s=(0,y.isArray)(l)?l:[l];return this.set({traits:s}),this.getTraits()}},{key:"getTrait",value:function(l){return this.getTraits().filter(function(s){return s.get("id")===l||s.get("name")===l})[0]||null}},{key:"updateTrait",value:function(l,s){var o,h=this.getTrait(l);return h&&h.set(s),(o=this.em)===null||o===void 0||o.trigger("component:toggled"),this}},{key:"getTraitIndex",value:function(l){var s=this.getTrait(l);return s?this.get("traits").indexOf(s):-1}},{key:"removeTrait",value:function(l){var s,o=this,h=((0,y.isArray)(l)?l:[l]).map(function(K){return o.getTrait(K)}),m=this.get("traits"),j=h.length?m.remove(h):[];return(s=this.em)===null||s===void 0||s.trigger("component:toggled"),(0,y.isArray)(j)?j:[j]}},{key:"addTrait",value:function(l){var s,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.__loadTraits();var h=this.get("traits").add(l,o);return(s=this.em)===null||s===void 0||s.trigger("component:toggled"),(0,y.isArray)(h)?h:[h]}},{key:"normalizeClasses",value:function(l){var s=[],o=this.em,h=o&&o.get("SelectorManager");if(h)return l.models?(0,we.Z)(l.models):(l.forEach(function(m){return s.push(h.add(m))}),s)}},{key:"clone",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=this.em,o=f({},this.attributes),h=f({},this.opt),m=this.getId(),j=s&&s.get("CssComposer");o.attributes=f({},o.attributes),delete o.attributes.id,o.components=[],o.classes=[],o.traits=[],this.__isSymbolTop()&&(l.symbol=1),this.get("components").each(function(Ee,pe){o.components[pe]=Ee.clone(f(f({},l),{},{_inner:1}))}),this.get("traits").each(function(Ee,pe){o.traits[pe]=Ee.clone()}),this.get("classes").each(function(Ee,pe){o.classes[pe]=Ee.get("name")}),o.status="",h.collection=null;var K=new this.constructor(o,h),ve="#".concat(K.getId()),E=j?j.getRules("#".concat(m)):[];E.forEach(function(Ee){var pe=Ee.clone();pe.set("selectors",[ve]),j.getAll().add(pe)}),K.set(u,0);var q=this.__getSymbol(),ue=this.__getSymbols();l.symbol||!q&&!ue?q?(q.set(u,[].concat((0,we.Z)(q.__getSymbols()),[K])),K.__initSymb()):l.symbol&&(this.__isSymbol()?(this.set(u,[].concat((0,we.Z)(ue),[K])),K.set(x,this),K.__initSymb()):l.symbolInv?(this.set(u,[K]),K.set(x,this),[this,K].map(function(Ee){return Ee.__initSymb()})):(K.set(u,[this]),[this,K].map(function(Ee){return Ee.__initSymb()}),this.set(x,K))):(K.set(x,0),K.set(u,0));var ke="component:clone";return s&&s.trigger(ke,K),this.trigger(ke,K),K}},{key:"getName",value:function(){var l=this.em,s=this.attributes,o=s.type,h=s.tagName,m=s.name,j=o||h,K=!o&&h,ve="domComponents.names.",E=m&&l?.t("".concat(ve).concat(m)),q=K&&l?.t("".concat(ve).concat(K)),ue=l&&(l.t("".concat(ve).concat(o))||l.t("".concat(ve).concat(h)));return this.get("custom-name")||E||m||q||(0,P.capitalize)(K)||ue||(0,P.capitalize)(j)}},{key:"getIcon",value:function(){var l=this.get("icon");return l?l+" ":""}},{key:"toHTML",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=this,o=[],h=l.tag,m=h||s.get("tagName"),j=s.get("void"),K=l.attributes,ve=this.getAttrToHTML();if(delete l.tag,K&&((0,y.isFunction)(K)?ve=K(s,ve)||{}:(0,P.isObject)(K)&&(ve=K)),l.withProps){var E=this.toJSON();(0,y.forEach)(E,function(Oe,Ie){Ie[0]!=="_"&&["classes","attributes","components"].indexOf(Ie)<0&&(ve["data-gjs-".concat(Ie)]=(0,y.isArray)(Oe)||(0,P.isObject)(Oe)?JSON.stringify(Oe):Oe)})}for(var q in ve){var ue=ve[q];if(!(0,y.isUndefined)(ue)&&ue!==null)if((0,y.isBoolean)(ue))ue&&o.push(q);else{var ke="";if(l.altQuoteAttr&&(0,y.isString)(ue)&&ue.indexOf('"')>=0)ke="'".concat(ue.replace(/'/g,"'"),"'");else{var Ee=(0,y.isString)(ue)?ue.replace(/"/g,"""):ue;ke='"'.concat(Ee,'"')}o.push("".concat(q,"=").concat(ke))}}var pe=o.length?" ".concat(o.join(" ")):"",Ae=s.getInnerHTML(l),Ne="<".concat(m).concat(pe).concat(j?"/":"",">").concat(Ae);return!j&&(Ne+="</".concat(m,">")),Ne}},{key:"getInnerHTML",value:function(l){return this.__innerHTML(l)}},{key:"__innerHTML",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=this.components();return s.length?s.map(function(o){return o.toHTML(l)}).join(""):this.get("content")}},{key:"getAttrToHTML",value:function(){var l=this.getAttributes();return delete l.style,l}},{key:"toJSON",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=k.Model.prototype.toJSON.call(this,l);if(s.attributes=this.getAttributes(),delete s.attributes.class,delete s.toolbar,delete s.traits,delete s.status,delete s.open,!l.fromUndo){var o=s.__symbol,h=s.__symbols;h&&(0,y.isArray)(h)&&(s.__symbols=h.filter(function(m){return m}).map(function(m){return m.getId?m.getId():m})),o&&!(0,y.isString)(o)&&(s.__symbol=o.getId())}return this.em.getConfig("avoidDefaults")&&this.getChangedProps(s),s}},{key:"getChangedProps",value:function(l){var s=l||k.Model.prototype.toJSON.apply(this),o=(0,y.result)(this,"defaults");return(0,y.forEach)(o,function(h,m){["type"].indexOf(m)===-1&&s[m]===h&&delete s[m]}),(0,y.isEmpty)(s.type)&&delete s.type,(0,y.forEach)(["attributes","style"],function(h){(0,y.isEmpty)(o[h])&&(0,y.isEmpty)(s[h])&&delete s[h]}),(0,y.forEach)(["classes","components"],function(h){(!s[h]||(0,y.isEmpty)(o[h])&&!s[h].length)&&delete s[h]}),s}},{key:"getId",value:function(){return(this.get("attributes")||{}).id||this.ccid||this.cid}},{key:"setId",value:function(l,s){var o=f({},this.get("attributes"));return o.id=l,this.set("attributes",o,s),this}},{key:"getEl",value:function(l){var s=this.getView(l);return s&&s.el}},{key:"getView",value:function(l){var s=this.view,o=this.views;return l&&(s=o.filter(function(h){return h._getFrame()===l.view})[0]),s}},{key:"getCurrentView",value:function(){var l=(this.em.get("currentFrame")||{}).model;return this.getView(l)}},{key:"__getScriptProps",value:function(){var l=this.props();return(this.get("script-props")||[]).reduce(function(s,o){return s[o]=l[o],s},{})}},{key:"getScriptString",value:function(l){var s=this,o=l||this.get("script");if(!o)return o;if(this.get("script-props"))o=o.toString().trim();else{if(typeof o=="function"){var h=o.toString().trim();o=(h=h.replace(/^function[\s\w]*\(\)\s?\{/,"").replace(/\}$/,"")).trim()}var m=this.em.getConfig(),j=D(m.tagVarStart||"{[ "),K=D(m.tagVarEnd||" ]}"),ve=new RegExp("".concat(j,"([\\w\\d-]*)").concat(K),"g");o=o.replace(ve,function(E,q){s.scriptUpdated();var ue=s.attributes[q]||"";return(0,y.isArray)(ue)||(0,ye.Z)(ue)=="object"?JSON.stringify(ue):ue})}return o}},{key:"emitUpdate",value:function(l){for(var s=this.em,o=W+(l?":".concat(l):""),h=l&&this.get(l),m=arguments.length,j=new Array(m>1?m-1:0),K=1;K<m;K++)j[K-1]=arguments[K];l&&this.updated.apply(this,[l,h,l&&this.previous(l)].concat(j)),this.trigger.apply(this,[o].concat(j)),s&&s.trigger.apply(s,[o,this].concat(j)),["components","classes"].indexOf(l)>=0&&this.__propSelfToParent({component:this,changed:(0,Y.Z)({},l,h),options:j[2]||j[1]||{}})}},{key:"onAll",value:function(l){return(0,y.isFunction)(l)&&(l(this),this.components().forEach(function(s){return s.onAll(l)})),this}},{key:"remove",value:function(){var l=this,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=this.em,h=this.collection,m=function(){h&&h.remove(l,f(f({},s),{},{action:"remove-component"})),s.root&&l.components("")},j=f({},s);return[this,o].map(function(K){return K.trigger("component:remove:before",l,m,j)}),!j.abort&&m(),this}},{key:"move",value:function(l){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.remove({temporary:1}),l&&l.append(this,s),this}},{key:"isInstanceOf",value:function(l){var s,o,h=(s=this.em)===null||s===void 0||(o=s.get("DomComponents").getType(l))===null||o===void 0?void 0:o.model;return!!h&&this instanceof h}},{key:"isChildOf",value:function(l){for(var s=(0,y.isString)(l),o=this.parent();o;){if(s){if(o.isInstanceOf(l))return!0}else if(o===l)return!0;o=o.parent()}return!1}},{key:"resetId",value:function(){var l=this.em,s=this.getId();if(s){var o=F.createId(this);this.setId(o);var h=l&&l.get("CssComposer").getIdRule(s),m=h&&h.get("selectors").at(0);return m&&m.set("name",o),this}}},{key:"_getStyleRule",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=l.id,o=this.em,h=s||this.getId();return o&&o.get("CssComposer").getIdRule(h)}},{key:"_getStyleSelector",value:function(l){var s=this._getStyleRule(l);return s&&s.get("selectors").at(0)}},{key:"_idUpdated",value:function(l,s){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!o.idUpdate){var h=this.ccid,m=this.get("attributes")||{},j=m.id,K=(this.previous("attributes")||{}).id||h,ve=F.getList(this);if(ve[j]||!j&&K)return this.setId(K,{idUpdate:1});delete ve[K],ve[j]=this,this.ccid=j;var E=this._getStyleSelector({id:K});E&&E.set({name:j,label:j})}}}]),F}(k.Model.extend(A.Z));ie.isComponent=function(le){return{tagName:(0,P.toLowerCase)(le.tagName)}},ie.ensureInList=function(le){var ce=ie.getList(le),F=le.getId(),l=ce[F];if(l){if(l!==le){var s=ie.getIncrementId(F,ce);le.setId(s),ce[s]=le}}else ce[F]=le;le.components().forEach(function(o){return ie.ensureInList(o)})},ie.createId=function(le){var ce,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=ie.getList(le),s=F.idMap,o=s===void 0?{}:s,h=le.get("attributes"),m=h.id;return m?(ce=ie.getIncrementId(m,l,F),le.setId(ce),m!==ce&&(o[m]=ce)):ce=ie.getNewId(l),l[ce]=le,ce},ie.getNewId=function(le){for(var ce=Object.keys(le).length.toString().length+2,F=(Math.random()+1.1).toString(36).slice(-ce),l="i".concat(F);le[l];)l=ie.getNewId(le);return l},ie.getIncrementId=function(le,ce){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=F.keepIds,s=l===void 0?[]:l,o=1,h=le;if(s.indexOf(le)<0)for(;ce[h];)o++,h="".concat(le,"-").concat(o);return h},ie.getList=function(le){var ce=le.opt,F=ce===void 0?{}:ce,l=F.domc,s=F.em,o=l||s&&s.get("DomComponents");return o?o.componentsById:{}},ie.checkId=function(le){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=(0,y.isArray)(le)?le:[le],o=l.keepIds,h=o===void 0?[]:o;s.forEach(function(m){var j=m.attributes,K=j===void 0?{}:j,ve=m.components,E=K.id;if(E&&F[E]&&h.indexOf(E)<0){var q=ie.getIncrementId(E,F);K.id=q,(0,y.isArray)(ce)&&ce.forEach(function(ue){var ke=ue.selectors;ke.forEach(function(Ee,pe){Ee==="#".concat(E)&&(ke[pe]="#".concat(q))})})}ve&&ie.checkId(ve,ce,F,l)})},ie.getDefaults=function(){return(0,y.result)(this.prototype,"defaults")},ie.prototype.defaults=(I={tagName:"div",type:"",name:"",removable:!0,draggable:!0,droppable:!0,badgable:!0,stylable:!0,"stylable-require":"","style-signature":"",unstylable:"",highlightable:!0,copyable:!0,resizable:!1,editable:!1,layerable:!0,selectable:!0,hoverable:!0,void:!1,state:"",status:"",content:"",icon:"",style:"",styles:"",classes:"",script:"","script-props":"","script-export":"",attributes:"",traits:["id","title"],propagate:"",dmode:"",toolbar:null},(0,Y.Z)(I,x,0),(0,Y.Z)(I,u,0),(0,Y.Z)(I,O,0),(0,Y.Z)(I,"_undo",!0),(0,Y.Z)(I,"_undoexc",["status","open"]),I)},8431:(Je,Se,b)=>{"use strict";b.d(Se,{Z:()=>B});var ye=b(1002),we=b(2982),J=b(4925),Y=b(4942),N=b(2316),te=b.n(N),$=b(9050),L=b(9138),w=["at"];function y(G,M){var H=Object.keys(G);if(Object.getOwnPropertySymbols){var Z=Object.getOwnPropertySymbols(G);M&&(Z=Z.filter(function(_){return Object.getOwnPropertyDescriptor(G,_).enumerable})),H.push.apply(H,Z)}return H}function P(G){for(var M=1;M<arguments.length;M++){var H=arguments[M]!=null?arguments[M]:{};M%2?y(Object(H),!0).forEach(function(Z){(0,Y.Z)(G,Z,H[Z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(G,Object.getOwnPropertyDescriptors(H)):y(Object(H)).forEach(function(Z){Object.defineProperty(G,Z,Object.getOwnPropertyDescriptor(H,Z))})}return G}var A=function G(M){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(!M)return[];var Z=(0,$.isArray)(M)||(0,$.isFunction)(M.map)?M:[M];return Z.map(function(_){H.push(_.getId()),G(_.components().models,H)}),H},k=function G(M){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},_=(0,$.isArray)(M)?M:[M];return _.map(function(C){var z=C.attributes,I=z===void 0?{}:z,p=C.components,d=C.tagName,f=I.id,v=C;if(f&&H[f]&&(v=H[f],d&&v.set({tagName:d},P(P({},Z),{},{silent:!0}))),p){var D=G(p,H);if((0,$.isFunction)(v.components)){var g=v.components();g.length>0&&g.reset(D,Z)}else v.components=D}return v})};let B=te().Collection.extend({initialize:function(G){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.opt=M,this.listenTo(this,"add",this.onAdd),this.listenTo(this,"remove",this.removeChildren),this.listenTo(this,"reset",this.resetChildren);var H=M.em,Z=M.config;this.config=Z,this.em=H,this.domc=M.domc||H&&H.get("DomComponents")},resetChildren:function(G){var M=this,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Z=this,_=H.previousModels||[],C=_.filter(function(I){return!G.get(I.cid)}),z=A(G);H.keepIds=A(_).filter(function(I){return z.indexOf(I)>=0}),C.forEach(function(I){return M.removeChildren(I,Z,H)}),G.each(function(I){return M.onAdd(I)})},resetFromString:function(){var G,M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};H.keepIds=A(this);var Z=this.domc,_=Z?.allById()||{},C=this.parseString(M,H),z=(0,$.isArray)(C)?C:[C],I=k(z,_,H);this.reset(I,H),(G=this.em)===null||G===void 0||G.trigger("component:content",this.parent,H,M)},removeChildren:function(G,M){var H=this,Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(G){var _=this.domc,C=this.em,z=Z.temporary||Z.fromUndo;if(G.prevColl=this,!z){var I=G.getId(),p=C.get("SelectorManager").getAll(),d=C.get("CssComposer").getAll(),f=(Z.keepIds||[]).indexOf(I)<0,v=_?_.allById():{};delete v[I];var D=f?d.remove(d.filter(function(u){return u.getSelectors().getFullString()==="#".concat(I)}),Z):[];p.remove(D.map(function(u){return u.getSelectors().at(0)})),G.opt.temporary||(C.get("Commands").run("core:component-style-clear",{target:G}),G.removed(),G.trigger("removed"),C.trigger("component:remove",G));var g=G.components();g.forEach(function(u){return H.removeChildren(u,M,Z)})}var T=G.components();C.stopListening(T),C.stopListening(G),C.stopListening(G.get("classes")),G.__postRemove()}},model:function(G,M){var H,Z=M.collection.opt,_=Z.em,C=_.get("DomComponents").componentTypes;M.em=_,M.config=Z.config,M.componentTypes=C,M.domc=Z.domc;for(var z=0;z<C.length;z++)if(C[z].id==G.type){H=C[z].model;break}return H||(H=C[C.length-1].model,_&&G.type&&_.logWarning("Component type '".concat(G.type,"' not found"),{attrs:G,options:M})),new H(G,M)},parseString:function(G){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},H=this.em,Z=this.domc,_=H.get("CssComposer"),C=H.get("Parser").parseHtml(G);if(L.ZP.checkId(C.html,C.css,Z.componentsById,M),C.css&&_&&!M.temporary){M.at;var z=(0,J.Z)(M,w);_.addCollection(C.css,P(P({},z),{},{extend:1}))}return C.html},add:function(G){var M=this,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};H.keepIds=[].concat((0,we.Z)(H.keepIds||[]),(0,we.Z)(A(H.previousModels))),(0,$.isString)(G)?G=this.parseString(G,H):(0,$.isArray)(G)&&(G=(0,we.Z)(G)).forEach(function(C,z){if((0,$.isString)(C)){var I=M.parseString(C,H);G[z]=(0,$.isArray)(I)&&!I.length?null:I}});var Z=(0,$.isArray)(G);G=(Z?G:[G]).filter(function(C){return C}).map(function(C){return M.processDef(C)}),G=Z?(0,$.flatten)(G,1):G[0];var _=te().Collection.prototype.add.apply(this,[G,H]);return this.__firstAdd=_,_},processDef:function(G){if(G.cid&&G.ccid)return G;var M=this.em,H=this.config,Z=(H===void 0?{}:H).processor,_=G;if(Z){var C=Z(_=P({},_));C&&((0,$.each)(_,function(v,D){return delete _[D]}),(0,$.extend)(_,C))}if(_.$$typeof&&(0,ye.Z)(_.props)=="object"){(_=P({},_)).props=P({},_.props);var z=M.get("DomComponents"),I=M.get("Parser").parserHtml;(0,$.each)(_,function(v,D){(0,$.includes)(["props","type"],D)||delete _[D]});var p=_.props,d=p.children;delete p.children,delete _.props;var f=I.splitPropsFromAttr(p);_.attributes=f.attrs,d&&(_.components=d),_.type?z.getType(_.type)||(_.tagName=_.type,delete _.type):_.type="textnode",(0,$.extend)(_,f.props)}return _},onAdd:function(G,M){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Z=this.domc,_=this.em,C=G.getStyle(),z=_&&_.getConfig("avoidInlineStyle");if(Z&&Z.Component.ensureInList(G),!(0,$.isEmpty)(C)&&!z&&_&&_.get&&_.getConfig("forceClass")&&!H.temporary){var I=G.cid;_.get("CssComposer").setClassRule(I,C),G.setStyle({}),G.addClass(I)}G.__postAdd({recursive:1}),this.__onAddEnd()},__onAddEnd:(0,$.debounce)(function(){})})},2169:(Je,Se,b)=>{"use strict";b.d(Se,{Z:()=>A});var ye=b(4942),we=b(2316),J=b.n(we),Y=b(9050),N=b(8431),te=b(3505),$=b(4293),L=b(9283),w=b(6183);function y(k,B){var G=Object.keys(k);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(k);B&&(M=M.filter(function(H){return Object.getOwnPropertyDescriptor(k,H).enumerable})),G.push.apply(G,M)}return G}function P(k){for(var B=1;B<arguments.length;B++){var G=arguments[B]!=null?arguments[B]:{};B%2?y(Object(G),!0).forEach(function(M){(0,ye.Z)(k,M,G[M])}):Object.getOwnPropertyDescriptors?Object.defineProperties(k,Object.getOwnPropertyDescriptors(G)):y(Object(G)).forEach(function(M){Object.defineProperty(k,M,Object.getOwnPropertyDescriptor(G,M))})}return k}let A=J().View.extend({className:function(){return this.getClasses()},tagName:function(){return this.model.get("tagName")},initialize:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},B=this.model,G=k.config||{},M=G.em,H=B.opt||{},Z=this.$el,_=this.el;this.opts=k,this.modelOpt=H,this.config=G,this.em=M||"",this.pfx=G.stylePrefix||"",this.ppfx=G.pStylePrefix||"",this.attr=B.get("attributes"),this.classe=this.attr.class||[],this.listenTo(B,"change:style",this.updateStyle),this.listenTo(B,"change:attributes",this.renderAttributes),this.listenTo(B,"change:highlightable",this.updateHighlight),this.listenTo(B,"change:status",this.updateStatus),this.listenTo(B,"change:script rerender",this.reset),this.listenTo(B,"change:content",this.updateContent),this.listenTo(B,"change",this.handleChange),this.listenTo(B,"active",this.onActive),this.listenTo(B,"disable",this.onDisable),Z.data("model",B),(0,w.setViewEl)(_,this),B.view=this,this._getFrame()&&B.views.push(this),this.initClasses(),this.initComponents({avoidRender:1}),this.events=P(P({},this.events),{},{dragstart:"handleDragStart"}),this.delegateEvents(),!H.temporary&&this.init(this._clbObj())},__isDraggable:function(){var k=this.model,B=this.config,G=k.attributes.draggable;return B.draggableComponents&&G},_clbObj:function(){var k=this.em,B=this.model,G=this.el;return{editor:k&&k.getEditor(),model:B,el:G}},init:function(){},removed:function(){},onActive:function(){},onDisable:function(){},remove:function(){var k;J().View.prototype.remove.apply(this,arguments);var B=this.model,G=this.$el,M=B.views,H=this._getFrame()||{};return B.components().forEach(function(Z){var _=Z.getView(H.model);_?.remove()}),(k=this.childrenView)===null||k===void 0||k.remove(),M.splice(M.indexOf(this),1),this.removed(this._clbObj()),G.data({model:"",collection:"",view:""}),this},handleDragStart:function(k){if(!this.__isDraggable())return!1;k.stopPropagation(),k.preventDefault(),this.em.get("Commands").run("tlb-move",{target:this.model,event:k})},initClasses:function(){var k=this.model,B="change:classes",G=k.get("classes");G instanceof $.Z&&(this.stopListening(k,B,this.initClasses),this.listenTo(k,B,this.initClasses),this.listenTo(G,"add remove change",this.updateClasses),G.length&&this.importClasses())},initComponents:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},B=this.model,G=this.$el,M=this.childrenView,H="change:components",Z=B.get("components"),_=[B,H,this.initComponents];Z instanceof N.Z&&(G.data("collection",Z),M&&M.remove(),this.stopListening.apply(this,_),!k.avoidRender&&this.renderChildren(),this.listenTo.apply(this,_))},handleChange:function(){var k=this.model,B=(0,Y.keys)(k.changed);if(B.length!==1||B[0]!=="status")for(var G in k.emitUpdate(),k.changed)k.emitUpdate(G)},importClasses:function(){var k=this.config.em.get("SelectorManager");k&&this.model.get("classes").each(function(B){k.add(B.get("name"))})},updateStatus:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},B=this.em,G=B?B.get("Canvas").getConfig():{},M=G.extHl,H=this.el,Z=this.model.get("status"),_=this.ppfx,C="".concat(_,"selected"),z="".concat(C,"-parent"),I="".concat(_,"freezed"),p="".concat(_,"hovered"),d=[C,z,I,p],f=M&&!k.noExtHl?"":C;this.$el.removeClass(d.join(" "));var v=H.getAttribute("class")||"",D="";switch(Z){case"selected":D="".concat(v," ").concat(f);break;case"selected-parent":D="".concat(v," ").concat(z);break;case"freezed":D="".concat(v," ").concat(I);break;case"freezed-selected":D="".concat(v," ").concat(I," ").concat(f);break;case"hovered":D=k.avoidHover?"":"".concat(v," ").concat(p)}(D=D.trim())&&H.setAttribute("class",D)},updateHighlight:function(){var k=this.model,B=k.get("textable"),G=k.get("highlightable")&&(B||!k.isChildOf("text"));this.setAttribute("data-gjs-highlightable",!!G||"")},updateStyle:function(k,B){var G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},M=this.model,H=this.em;if(H&&H.getConfig("avoidInlineStyle")&&!G.inline){var Z=M.getStyle();!(0,Y.isEmpty)(Z)&&M.setStyle(Z)}else this.setAttribute("style",M.styleToString(G))},updateClasses:function(){var k=this.model.get("classes").pluck("name").join(" ");this.setAttribute("class",k),this.updateStatus(),this.onAttrUpdate()},setAttribute:function(k,B){var G=this.$el;B?G.attr(k,B):G.removeAttr(k)},getClasses:function(){return this.model.getClasses().join(" ")},updateAttributes:function(){var k=[],B=this.model,G=this.$el,M=this.el,H=B.attributes,Z=H.textable,_=H.type,C=P(P({id:B.getId(),"data-gjs-type":_||"default"},this.__isDraggable()&&{draggable:!0}),Z&&{contenteditable:"false"});(0,Y.each)(M.attributes,function(I){return k.push(I.nodeName)}),k.forEach(function(I){return G.removeAttr(I)}),this.updateStyle(),this.updateHighlight();var z=P(P({},C),B.getAttributes());(0,Y.keys)(z).forEach(function(I){return z[I]===!1&&delete z[I]}),G.attr(z)},updateContent:function(){var k=this.model.get("content"),B=this.model.components().length;this.getChildrenContainer().innerHTML=B?"":k},prevDef:function(k){k.preventDefault()},updateScript:function(){var k=this.model,B=this.em;k.get("script")&&B&&B.get("Canvas").getCanvasView().updateScript(this)},getChildrenContainer:function(){var k=this.el;return typeof this.getChildrenSelector=="function"?k=this.el.querySelector(this.getChildrenSelector()):this.getTemplate,k},getOffsetRect:function(){var k={},B=this.el,G=0,M=0;return function H(Z){var _=Z.offsetParent;_?(G+=_.offsetTop,M+=_.offsetLeft,H(_)):(k.top=B.offsetTop+G,k.left=B.offsetLeft+M,k.bottom=k.top+B.offsetHeight,k.right=k.left+B.offsetWidth)}(B),k},isInViewport:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},B=k.rect,G=this.el,M=G.ownerDocument,H=M.body,Z=M.defaultView.frameElement,_=B||this.getOffsetRect(),C=_.top,z=_.left,I=this._getFrame().getOffsetRect();return C>=I.scrollTop&&z>=I.scrollLeft&&C<=I.scrollBottom&&z<=Z.offsetWidth+H.scrollLeft},scrollIntoView:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},B=this.getOffsetRect(),G=this.isInViewport({rect:B});if(!G||k.force){var M=this.el;k.behavior!=="smooth"?M.ownerDocument.defaultView.scrollTo(0,B.top):M.scrollIntoView(P({behavior:"smooth",block:"nearest"},k))}},reset:function(){var k=this.el;this.el="",this._ensureElement(),this._setData(),(0,L.dL)(k,this.el),this.render()},_setData:function(){var k=this.model,B=k.components();this.$el.data({model:k,collection:B,view:this})},_getFrame:function(){return this.config.frameView},renderChildren:function(){this.updateContent();var k=this.getChildrenContainer(),B=this.childrenView||new te.Z({collection:this.model.get("components"),config:this.config,componentTypes:this.opts.componentTypes});B.render(k),this.childrenView=B;for(var G=Array.prototype.slice.call(B.el.childNodes),M=0,H=G.length;M<H;M++)k.appendChild(G.shift())},renderAttributes:function(){this.updateAttributes(),this.updateClasses()},onAttrUpdate:function(){},render:function(){return this.renderAttributes(),this.modelOpt.temporary||(this.renderChildren(),this.updateScript(),(0,w.setViewEl)(this.el,this),this.postRender()),this},postRender:function(){this.modelOpt.temporary||this.onRender(this._clbObj())},onRender:function(){}})},3505:(Je,Se,b)=>{"use strict";b.d(Se,{Z:()=>Y});var ye=b(2316),we=b.n(ye),J=b(9050);let Y=we().View.extend({initialize:function(N){this.opts=N||{},this.config=N.config||{},this.em=this.config.em;var te=this.collection;this.listenTo(te,"add",this.addTo),this.listenTo(te,"reset",this.resetChildren),this.listenTo(te,"remove",this.removeChildren)},removeChildren:function(N,te){var $=this,L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};N.views.forEach(function(y){if(y){var P=y.childrenView,A=y.scriptContainer;P&&P.stopListening(),A&&A.remove(),y.remove.apply(y)}});var w=N.components();w.forEach(function(y){return $.removeChildren(y,te,L)})},addTo:function(N){var te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},$=this.config.em,L=this.collection.indexOf(N);if(this.addToCollection(N,null,L),$&&!te.temporary){var w=function y(P){$.trigger("component:add",P),P.components().forEach(function(A){return y(A)})};w(N)}},addToCollection:function(N,te,$){this.compView||(this.compView=b(2169).Z);for(var L=this.config,w=this.opts,y=this.em,P=te||null,A=L.frameView,k=A===void 0?{}:A,B=k.model&&N.getView(k.model),G=w.componentTypes||y&&y.get("DomComponents").getTypes(),M=N.get("type")||"default",H=this.compView,Z=0;Z<G.length;Z++)if(G[Z].id==M){H=G[Z].view;break}var _,C=B||new H({model:N,config:L,componentTypes:G});try{_=C.render().el}catch(d){_=document.createTextNode(""),y.logError(d)}if(P)P.appendChild(_);else{var z=this.parentEl,I=z.childNodes;if((0,J.isUndefined)($))z.appendChild(_);else{var p=I.length==$;p&&$--,p||!I.length?z.appendChild(_):z.insertBefore(_,I[$])}}return N.opt.temporary||y==null||y.trigger("component:mount",N),_},resetChildren:function(N){var te=this,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},L=$.previousModels,w=L===void 0?[]:L;this.parentEl.innerHTML="",w.forEach(function(y){return te.removeChildren(y,te.collection)}),N.each(function(y){return te.addToCollection(y)})},render:function(N){var te=this,$=this.el,L=document.createDocumentFragment();return this.parentEl=N||this.el,this.collection.each(function(w){return te.addToCollection(w,L)}),$.innerHTML="",$.appendChild(L),this}})},3345:(Je,Se,b)=>{"use strict";b.d(Se,{Z:()=>$});var ye=b(4942),we=b(9050),J=b(6183);function Y(L,w){var y=Object.keys(L);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(L);w&&(P=P.filter(function(A){return Object.getOwnPropertyDescriptor(L,A).enumerable})),y.push.apply(y,P)}return y}function N(L){for(var w=1;w<arguments.length;w++){var y=arguments[w]!=null?arguments[w]:{};w%2?Y(Object(y),!0).forEach(function(P){(0,ye.Z)(L,P,y[P])}):Object.getOwnPropertyDescriptors?Object.defineProperties(L,Object.getOwnPropertyDescriptors(y)):Y(Object(y)).forEach(function(P){Object.defineProperty(L,P,Object.getOwnPropertyDescriptor(y,P))})}return L}var te=(0,b(5311).Z)().parseStyle;let $={parseStyle:te,extendStyle:function(L){return N(N({},this.getStyle()),L)},getStyle:function(L){var w=N({},this.get("style")||{});return L&&(0,we.isString)(L)?w[L]:w},setStyle:function(){var L=this,w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,we.isString)(w)&&(w=te(w));var P=this.getStyle(y),A=N({},w);this.set("style",A,y);var k=(0,J.shallowDiff)(P,A);return(0,we.keys)(k).forEach(function(B){var G=L.em;y.noEvent||(L.trigger("change:style:".concat(B)),G&&(G.trigger("styleable:change",L,B,y),G.trigger("styleable:change:".concat(B),L,B,y)))}),A},addStyle:function(L){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};typeof L=="string"?L={prop:w}:y=w||{},L=this.extendStyle(L),this.setStyle(L,y)},removeStyle:function(L){var w=this.getStyle();delete w[L],this.setStyle(w)},styleToString:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},w=[],y=this.getStyle(L);for(var P in y){var A=L.important,k=(0,we.isArray)(A)?A.indexOf(P)>=0:A,B="".concat(y[P]).concat(k?" !important":""),G=P.substr(0,2)=="__";B&&!G&&w.push("".concat(P,":").concat(B,";"))}return w.join("")},getSelectors:function(){return this.get("selectors")||this.get("classes")},getSelectorsString:function(L){return this.selectorsToString?this.selectorsToString(L):this.getSelectors().getFullString()},_validate:function(L,w){var y,P=L.style,A=this.em||w.em,k=A==null||(y=A.get("CssComposer"))===null||y===void 0?void 0:y.getConfig().onBeforeStyle;if(P&&k){var B=k(N({},P));B&&(0,we.keys)(P).map(function(G){(0,we.isUndefined)(B[G])&&delete L.style[G]}),B&&(0,we.keys)(B).map(function(G){L.style[G]=B[G]})}return!0}}},793:(Je,Se,b)=>{"use strict";b.d(Se,{Z:()=>w});var ye=b(4942),we=b(9050),J=b(2316),Y=b.n(J);function N(y,P){var A=Object.keys(y);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(y);P&&(k=k.filter(function(B){return Object.getOwnPropertyDescriptor(y,B).enumerable})),A.push.apply(A,k)}return A}function te(y){for(var P=1;P<arguments.length;P++){var A=arguments[P]!=null?arguments[P]:{};P%2?N(Object(A),!0).forEach(function(k){(0,ye.Z)(y,k,A[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(y,Object.getOwnPropertyDescriptors(A)):N(Object(A)).forEach(function(k){Object.defineProperty(y,k,Object.getOwnPropertyDescriptor(A,k))})}return y}var $=Y().Model,L=Y().View;let w={types:[],initialize:function(y){var P=this,A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},k=A.em;this.em=k,this.opts=A,this.model=function(){var G,M,H,Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Z&&Z.type){var C=P.getBaseType();G=(H=P.getType(Z.type))?H.model:C.model,M=H?H.view:C.view}else{var z=P.recognizeType(Z);G=(H=z.type).model,M=H.view,Z=z.attributes}var I=new G(Z,te(te({},_),{},{em:k}));return I.typeView=M,I};var B=this.init&&this.init.bind(this);B&&B()},recognizeType:function(y){for(var P=this.getTypes(),A=0;A<P.length;A++){var k=P[A],B=k.isType(y);if(B=typeof B=="boolean"&&B?{type:k.id}:B)return{type:k,attributes:B}}return{type:this.getBaseType(),attributes:y}},getBaseType:function(){var y=this.getTypes();return y[y.length-1]},getTypes:function(){return this.types},getType:function(y){for(var P=this.getTypes(),A=0;A<P.length;A++){var k=P[A];if(k.id===y)return k}},addType:function(y,P){var A=this.getType(y),k=this.getBaseType(),B=A?A.model:k.model,G=A?A.view:k.view,M=P.model,H=P.view,Z=P.isType;M=M instanceof $||(0,we.isFunction)(M)?M:B.extend(M||{}),H=H instanceof L||(0,we.isFunction)(H)?H:G.extend(H||{}),!this.extendViewApi||P.model||P.view||(H=H.extend(P)),A?(A.model=M,A.view=H,A.isType=Z||A.isType):(P.id=y,P.model=M,P.view=H,P.isType=Z||function(_){if(_&&_.type==y)return!0},this.getTypes().unshift(P))}}},8659:(Je,Se,b)=>{"use strict";b.d(Se,{Z:()=>Y});var ye=b(2316),we=b.n(ye),J=we().$;let Y=we().View.extend({events:{change:"handleChange"},template:function(){return'<span class="'.concat(this.holderClass(),'"></span>')},inputClass:function(){return"".concat(this.ppfx,"field")},holderClass:function(){return"".concat(this.ppfx,"input-holder")},initialize:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},te=N.ppfx||"";this.opts=N,this.ppfx=te,this.em=N.target||{},!N.onChange&&this.listenTo(this.model,"change:value",this.handleModelChange)},elementUpdated:function(){this.model.trigger("el:change")},setValue:function(N){var te=this.model,$=N||te.get("defaults"),L=this.getInputEl();L&&(L.value=$)},handleModelChange:function(N,te,$){this.setValue(te,$)},handleChange:function(N){N.stopPropagation();var te=this.getInputEl().value;this.__onInputChange(te),this.elementUpdated()},__onInputChange:function(N){this.model.set({value:N},{fromInput:1})},getInputEl:function(){if(!this.inputEl){var N=this.model,te=this.opts.type||"text",$=N.get("placeholder")||N.get("defaults")||N.get("default")||"";this.inputEl=J('<input type="'.concat(te,'" placeholder="').concat($,'">'))}return this.inputEl.get(0)},render:function(){this.inputEl=null;var N=this.$el;return N.addClass(this.inputClass()),N.html(this.template()),N.find(".".concat(this.holderClass())).append(this.getInputEl()),this}})},1511:(Je,Se,b)=>{"use strict";b.d(Se,{Z:()=>A});var ye=b(4942),we=b(2316),J=b.n(we),Y=b(9050),N=b(1002),te=b(6183),$=b(8659);function L(k,B){var G=Object.keys(k);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(k);B&&(M=M.filter(function(H){return Object.getOwnPropertyDescriptor(k,H).enumerable})),G.push.apply(G,M)}return G}function w(k){for(var B=1;B<arguments.length;B++){var G=arguments[B]!=null?arguments[B]:{};B%2?L(Object(G),!0).forEach(function(M){(0,ye.Z)(k,M,G[M])}):Object.getOwnPropertyDescriptors?Object.defineProperties(k,Object.getOwnPropertyDescriptors(G)):L(Object(G)).forEach(function(M){Object.defineProperty(k,M,Object.getOwnPropertyDescriptor(G,M))})}return k}var y=J().$;y&&function(k,B){if((0,te.hasWin)()){var G={beforeShow:l,move:l,change:l,show:l,hide:l,color:!1,flat:!1,showInput:!1,allowEmpty:!1,showButtons:!0,clickoutFiresChange:!0,showInitial:!1,showPalette:!1,showPaletteOnly:!1,hideAfterPaletteSelect:!1,togglePaletteOnly:!1,showSelectionPalette:!0,localStorageKey:!1,appendTo:"body",maxSelectionSize:7,cancelText:"cancel",chooseText:"choose",togglePaletteMoreText:"more",togglePaletteLessText:"less",clearText:"Clear Color Selection",noColorSelectedText:"No Color Selected",preferredFormat:!1,className:"",containerClassName:"",replacerClassName:"",showAlpha:!1,theme:"sp-light",palette:[["#ffffff","#000000","#ff0000","#ff8000","#ffff00","#008000","#0000ff","#4b0082","#9400d3"]],selectionPalette:[],disabled:!1,offset:null},M=[],H=!!/msie/i.exec(window.navigator.userAgent),Z=function(){function se(_e,Fe){return!!~(""+_e).indexOf(Fe)}var be=document.createElement("div").style;return be.cssText="background-color:rgba(0,0,0,.5)",se(be.backgroundColor,"rgba")||se(be.backgroundColor,"hsla")}(),_=["<div class='sp-replacer'>","<div class='sp-preview'><div class='sp-preview-inner'></div></div>","<div class='sp-dd'>▼</div>","</div>"].join(""),C=function(){var se="";if(H)for(var be=1;be<=6;be++)se+="<div class='sp-"+be+"'></div>";return["<div class='sp-container sp-hidden'>","<div class='sp-palette-container'>","<div class='sp-palette sp-thumb sp-cf'></div>","<div class='sp-palette-button-container sp-cf'>","<button type='button' class='sp-palette-toggle'></button>","</div>","</div>","<div class='sp-picker-container'>","<div class='sp-top sp-cf'>","<div class='sp-fill'></div>","<div class='sp-top-inner'>","<div class='sp-color'>","<div class='sp-sat'>","<div class='sp-val'>","<div class='sp-dragger'></div>","</div>","</div>","</div>","<div class='sp-clear sp-clear-display'>","</div>","<div class='sp-hue'>","<div class='sp-slider'></div>",se,"</div>","</div>","<div class='sp-alpha'><div class='sp-alpha-inner'><div class='sp-alpha-handle'></div></div></div>","</div>","<div class='sp-input-container sp-cf'>","<input class='sp-input' type='text' spellcheck='false' />","</div>","<div class='sp-initial sp-thumb sp-cf'></div>","<div class='sp-button-container sp-cf'>","<a class='sp-cancel' href='#'></a>","<button type='button' class='sp-choose'></button>","</div>","</div>","</div>"].join("")}(),z="spectrum.id";k.fn.spectrum=function(se,be){if(typeof se=="string"){var _e=this,Fe=Array.prototype.slice.call(arguments,1);return this.each(function(){var He=M[k(this).data(z)];if(He){var at=He[se];if(!at)throw new Error("Spectrum: no such method: '"+se+"'");se=="get"?_e=He.get():se=="container"?_e=He.container:se=="option"?_e=He.option.apply(He,Fe):se=="destroy"?(He.destroy(),k(this).removeData(z)):at.apply(He,Fe)}}),_e}return this.spectrum("destroy").each(function(){var He=F(this,k.extend({},se,k(this).data()));k(this).data(z,He.id)})},k.fn.spectrum.load=!0,k.fn.spectrum.loadOpts={},k.fn.spectrum.draggable=h,k.fn.spectrum.defaults=G,k.fn.spectrum.inputTypeColorSupport=function se(){if(se._cachedResult===void 0){var be=k("<input type='color'/>")[0];se._cachedResult=be.type==="color"&&be.value!==""}return se._cachedResult},k.spectrum={},k.spectrum.localization={},k.spectrum.palettes={},k.fn.spectrum.processNativeColorInputs=function(){var se=k("input[type=color]");se.length&&!m()&&se.spectrum({preferredFormat:"hex6"})};var I=/^[\s,#]+/,p=/\s+$/,d=0,f=Math,v=f.round,D=f.min,g=f.max,T=f.random,u=function se(be,_e){if(_e=_e||{},(be=be||"")instanceof se)return be;if(!(this instanceof se))return new se(be,_e);var Fe=function(He){var at={r:0,g:0,b:0},Ye=1,gt=!1,Ut=!1;typeof He=="string"&&(He=function(Ft){Ft=Ft.replace(I,"").replace(p,"").toLowerCase();var ct,kt=!1;if(X[Ft])Ft=X[Ft],kt=!0;else if(Ft=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};return(ct=le.rgb.exec(Ft))?{r:ct[1],g:ct[2],b:ct[3]}:(ct=le.rgba.exec(Ft))?{r:ct[1],g:ct[2],b:ct[3],a:ct[4]}:(ct=le.hsl.exec(Ft))?{h:ct[1],s:ct[2],l:ct[3]}:(ct=le.hsla.exec(Ft))?{h:ct[1],s:ct[2],l:ct[3],a:ct[4]}:(ct=le.hsv.exec(Ft))?{h:ct[1],s:ct[2],v:ct[3]}:(ct=le.hsva.exec(Ft))?{h:ct[1],s:ct[2],v:ct[3],a:ct[4]}:(ct=le.hex8.exec(Ft))?{a:fe(ct[1]),r:Zt(ct[2]),g:Zt(ct[3]),b:Zt(ct[4]),format:kt?"name":"hex8"}:(ct=le.hex6.exec(Ft))?{r:Zt(ct[1]),g:Zt(ct[2]),b:Zt(ct[3]),format:kt?"name":"hex"}:(ct=le.hex3.exec(Ft))?{r:Zt(ct[1]+""+ct[1]),g:Zt(ct[2]+""+ct[2]),b:Zt(ct[3]+""+ct[3]),format:kt?"name":"hex"}:!1}(He)),(0,N.Z)(He)=="object"&&(He.hasOwnProperty("r")&&He.hasOwnProperty("g")&&He.hasOwnProperty("b")?(dn=He.r,rn=He.g,Qt=He.b,at={r:255*rt(dn,255),g:255*rt(rn,255),b:255*rt(Qt,255)},gt=!0,Ut=String(He.r).substr(-1)==="%"?"prgb":"rgb"):He.hasOwnProperty("h")&&He.hasOwnProperty("s")&&He.hasOwnProperty("v")?(He.s=nn(He.s),He.v=nn(He.v),at=function(Ft,ct,kt){Ft=6*rt(Ft,360),ct=rt(ct,100),kt=rt(kt,100);var qt=f.floor(Ft),Kt=Ft-qt,sn=kt*(1-ct),an=kt*(1-Kt*ct),ln=kt*(1-(1-Kt)*ct),Rn=qt%6;return{r:255*[kt,an,sn,sn,ln,kt][Rn],g:255*[ln,kt,kt,an,sn,sn][Rn],b:255*[sn,sn,ln,kt,kt,an][Rn]}}(He.h,He.s,He.v),gt=!0,Ut="hsv"):He.hasOwnProperty("h")&&He.hasOwnProperty("s")&&He.hasOwnProperty("l")&&(He.s=nn(He.s),He.l=nn(He.l),at=function(Ft,ct,kt){var qt,Kt,sn;function an(Hn,Mn,wn){return wn<0&&(wn+=1),wn>1&&(wn-=1),wn<1/6?Hn+6*(Mn-Hn)*wn:wn<.5?Mn:wn<2/3?Hn+(Mn-Hn)*(2/3-wn)*6:Hn}if(Ft=rt(Ft,360),ct=rt(ct,100),kt=rt(kt,100),ct===0)qt=Kt=sn=kt;else{var ln=kt<.5?kt*(1+ct):kt+ct-kt*ct,Rn=2*kt-ln;qt=an(Rn,ln,Ft+1/3),Kt=an(Rn,ln,Ft),sn=an(Rn,ln,Ft-1/3)}return{r:255*qt,g:255*Kt,b:255*sn}}(He.h,He.s,He.l),gt=!0,Ut="hsl"),He.hasOwnProperty("a")&&(Ye=He.a));var dn,rn,Qt;return Ye=Vt(Ye),{ok:gt,format:He.format||Ut,r:D(255,g(at.r,0)),g:D(255,g(at.g,0)),b:D(255,g(at.b,0)),a:Ye}}(be);this._originalInput=be,this._r=Fe.r,this._g=Fe.g,this._b=Fe.b,this._a=Fe.a,this._roundA=v(100*this._a)/100,this._format=_e.format||Fe.format,this._gradientType=_e.gradientType,this._r<1&&(this._r=v(this._r)),this._g<1&&(this._g=v(this._g)),this._b<1&&(this._b=v(this._b)),this._ok=Fe.ok,this._tc_id=d++};u.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var se=this.toRgb();return(299*se.r+587*se.g+114*se.b)/1e3},setAlpha:function(se){return this._a=Vt(se),this._roundA=v(100*this._a)/100,this},toHsv:function(){var se=K(this._r,this._g,this._b);return{h:360*se.h,s:se.s,v:se.v,a:this._a}},toHsvString:function(){var se=K(this._r,this._g,this._b),be=v(360*se.h),_e=v(100*se.s),Fe=v(100*se.v);return this._a==1?"hsv("+be+", "+_e+"%, "+Fe+"%)":"hsva("+be+", "+_e+"%, "+Fe+"%, "+this._roundA+")"},toHsl:function(){var se=j(this._r,this._g,this._b);return{h:360*se.h,s:se.s,l:se.l,a:this._a}},toHslString:function(){var se=j(this._r,this._g,this._b),be=v(360*se.h),_e=v(100*se.s),Fe=v(100*se.l);return this._a==1?"hsl("+be+", "+_e+"%, "+Fe+"%)":"hsla("+be+", "+_e+"%, "+Fe+"%, "+this._roundA+")"},toHex:function(se){return ve(this._r,this._g,this._b,se)},toHexString:function(se){return"#"+this.toHex(se)},toHex8:function(){return E(this._r,this._g,this._b,this._a)},toHex8String:function(){return"#"+this.toHex8()},toRgb:function(){return{r:v(this._r),g:v(this._g),b:v(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+v(this._r)+", "+v(this._g)+", "+v(this._b)+")":"rgba("+v(this._r)+", "+v(this._g)+", "+v(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:v(100*rt(this._r,255))+"%",g:v(100*rt(this._g,255))+"%",b:v(100*rt(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+v(100*rt(this._r,255))+"%, "+v(100*rt(this._g,255))+"%, "+v(100*rt(this._b,255))+"%)":"rgba("+v(100*rt(this._r,255))+"%, "+v(100*rt(this._g,255))+"%, "+v(100*rt(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&(ie[ve(this._r,this._g,this._b,!0)]||!1)},toFilter:function(se){var be="#"+E(this._r,this._g,this._b,this._a),_e=be,Fe=this._gradientType?"GradientType = 1, ":"";return se&&(_e=u(se).toHex8String()),"progid:DXImageTransform.Microsoft.gradient("+Fe+"startColorstr="+be+",endColorstr="+_e+")"},toString:function(se){var be=!!se;se=se||this._format;var _e=!1,Fe=this._a<1&&this._a>=0;return be||!Fe||se!=="hex"&&se!=="hex6"&&se!=="hex3"&&se!=="name"?(se==="rgb"&&(_e=this.toRgbString()),se==="prgb"&&(_e=this.toPercentageRgbString()),se!=="hex"&&se!=="hex6"||(_e=this.toHexString()),se==="hex3"&&(_e=this.toHexString(!0)),se==="hex8"&&(_e=this.toHex8String()),se==="name"&&(_e=this.toName()),se==="hsl"&&(_e=this.toHslString()),se==="hsv"&&(_e=this.toHsvString()),_e||this.toHexString()):se==="name"&&this._a===0?this.toName():this.toRgbString()},_applyModification:function(se,be){var _e=se.apply(null,[this].concat([].slice.call(be)));return this._r=_e._r,this._g=_e._g,this._b=_e._b,this.setAlpha(_e._a),this},lighten:function(){return this._applyModification(Ee,arguments)},brighten:function(){return this._applyModification(pe,arguments)},darken:function(){return this._applyModification(Ae,arguments)},desaturate:function(){return this._applyModification(q,arguments)},saturate:function(){return this._applyModification(ue,arguments)},greyscale:function(){return this._applyModification(ke,arguments)},spin:function(){return this._applyModification(Ne,arguments)},_applyCombination:function(se,be){return se.apply(null,[this].concat([].slice.call(be)))},analogous:function(){return this._applyCombination(tt,arguments)},complement:function(){return this._applyCombination(Oe,arguments)},monochromatic:function(){return this._applyCombination(ht,arguments)},splitcomplement:function(){return this._applyCombination($e,arguments)},triad:function(){return this._applyCombination(Ie,arguments)},tetrad:function(){return this._applyCombination(Le,arguments)}},u.fromRatio=function(se,be){if((0,N.Z)(se)=="object"){var _e={};for(var Fe in se)se.hasOwnProperty(Fe)&&(_e[Fe]=Fe==="a"?se[Fe]:nn(se[Fe]));se=_e}return u(se,be)},u.equals=function(se,be){return!(!se||!be)&&u(se).toRgbString()==u(be).toRgbString()},u.random=function(){return u.fromRatio({r:T(),g:T(),b:T()})},u.mix=function(se,be,_e){_e=_e===0?0:_e||50;var Fe,He=u(se).toRgb(),at=u(be).toRgb(),Ye=_e/100,gt=2*Ye-1,Ut=at.a-He.a,dn=1-(Fe=((Fe=gt*Ut==-1?gt:(gt+Ut)/(1+gt*Ut))+1)/2),rn={r:at.r*Fe+He.r*dn,g:at.g*Fe+He.g*dn,b:at.b*Fe+He.b*dn,a:at.a*Ye+He.a*(1-Ye)};return u(rn)},u.readability=function(se,be){var _e=u(se),Fe=u(be),He=_e.toRgb(),at=Fe.toRgb(),Ye=_e.getBrightness(),gt=Fe.getBrightness(),Ut=Math.max(He.r,at.r)-Math.min(He.r,at.r)+Math.max(He.g,at.g)-Math.min(He.g,at.g)+Math.max(He.b,at.b)-Math.min(He.b,at.b);return{brightness:Math.abs(Ye-gt),color:Ut}},u.isReadable=function(se,be){var _e=u.readability(se,be);return _e.brightness>125&&_e.color>500},u.mostReadable=function(se,be){for(var _e=null,Fe=0,He=!1,at=0;at<be.length;at++){var Ye=u.readability(se,be[at]),gt=Ye.brightness>125&&Ye.color>500,Ut=Ye.brightness/125*3+Ye.color/500;(gt&&!He||gt&&He&&Ut>Fe||!gt&&!He&&Ut>Fe)&&(He=gt,Fe=Ut,_e=u(be[at]))}return _e};var x,O,W,X=u.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},ie=u.hexNames=function(se){var be={};for(var _e in se)se.hasOwnProperty(_e)&&(be[se[_e]]=_e);return be}(X),le=(O="[\\s|\\(]+("+(x="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+x+")[,|\\s]+("+x+")\\s*\\)?",W="[\\s|\\(]+("+x+")[,|\\s]+("+x+")[,|\\s]+("+x+")[,|\\s]+("+x+")\\s*\\)?",{rgb:new RegExp("rgb"+O),rgba:new RegExp("rgba"+W),hsl:new RegExp("hsl"+O),hsla:new RegExp("hsla"+W),hsv:new RegExp("hsv"+O),hsva:new RegExp("hsva"+W),hex3:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex8:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});window.tinycolor=u,k(function(){k.fn.spectrum.load&&k.fn.spectrum.processNativeColorInputs()})}function ce(se,be,_e,Fe){for(var He=[],at=0;at<se.length;at++){var Ye=se[at];if(Ye){var gt=u(Ye),Ut=gt.toHsl().l<.5?"sp-thumb-el sp-thumb-dark":"sp-thumb-el sp-thumb-light";Ut+=u.equals(be,Ye)?" sp-thumb-active":"";var dn=gt.toString(Fe.preferredFormat||"rgb"),rn=Z?"background-color:"+gt.toRgbString():"filter:"+gt.toFilter();He.push('<span title="'+dn+'" data-color="'+gt.toRgbString()+'" class="'+Ut+'"><span class="sp-thumb-inner" style="'+rn+';"></span></span>')}else He.push(k("<div />").append(k('<span data-color="" style="background-color:transparent;" class="sp-clear-display"></span>').attr("title",Fe.noColorSelectedText)).html())}return"<div class='sp-cf "+_e+"'>"+He.join("")+"</div>"}function F(se,be){var _e,Fe,He,at,Ye=function(vt,Tt){var Lt=k.extend({},G,vt);return Lt.callbacks={move:o(Lt.move,Tt),change:o(Lt.change,Tt),show:o(Lt.show,Tt),hide:o(Lt.hide,Tt),beforeShow:o(Lt.beforeShow,Tt)},Lt}(be,se),gt=Ye.flat,Ut=Ye.showSelectionPalette,dn=Ye.localStorageKey,rn=Ye.theme,Qt=Ye.callbacks,Ft=(_e=on,Fe=10,function(){var vt=this,Tt=arguments,Lt=function(){at=null,_e.apply(vt,Tt)};He&&clearTimeout(at),!He&&at||(at=setTimeout(Lt,Fe))}),ct=!1,kt=!1,qt=!0,Kt=0,sn=0,an=0,ln=0,Rn=0,Hn=0,Mn=0,wn=0,Sn=0,pn=0,vn=1,Qn=[],kn=[],Bn={},fn=Ye.selectionPalette.slice(0),Gn=Ye.maxSelectionSize,gn="sp-dragging",Pn=null,Kn=se.ownerDocument,At=(Kn.body,k(se)),xt=!1,Rt=k(C,Kn).addClass(rn),ir=Rt.find(".sp-picker-container"),Cn=Rt.find(".sp-color"),$t=Rt.find(".sp-dragger"),Jt=Rt.find(".sp-hue"),Nn=Rt.find(".sp-slider"),Xn=Rt.find(".sp-alpha-inner"),ot=Rt.find(".sp-alpha"),Nt=Rt.find(".sp-alpha-handle"),he=Rt.find(".sp-input"),Te=Rt.find(".sp-palette"),Ke=Rt.find(".sp-initial"),U=Rt.find(".sp-cancel"),oe=Rt.find(".sp-clear"),ne=Rt.find(".sp-choose"),ge=Rt.find(".sp-palette-toggle"),Ge=At.is("input"),yt=Ge&&At.attr("type")==="color"&&m(),nt=Ge&&!gt,Qe=nt?k(_).addClass(rn).addClass(Ye.className).addClass(Ye.replacerClassName):k([]),wt=nt?Qe:At,jt=Qe.find(".sp-preview-inner"),Mt=Ye.color||Ge&&At.val(),en=!1,Gt=Ye.preferredFormat,tn=!Ye.showButtons||Ye.clickoutFiresChange,Dn=!Mt,cn=Ye.allowEmpty&&!yt;function zn(){if(Ye.showPaletteOnly&&(Ye.showPalette=!0),ge.text(Ye.showPaletteOnly?Ye.togglePaletteMoreText:Ye.togglePaletteLessText),Ye.palette){Qn=Ye.palette.slice(0),kn=k.isArray(Qn[0])?Qn:[Qn],Bn={};for(var vt=0;vt<kn.length;vt++)for(var Tt=0;Tt<kn[vt].length;Tt++){var Lt=u(kn[vt][Tt]).toRgbString();Bn[Lt]=!0}}Rt.toggleClass("sp-flat",gt),Rt.toggleClass("sp-input-disabled",!Ye.showInput),Rt.toggleClass("sp-alpha-enabled",Ye.showAlpha),Rt.toggleClass("sp-clear-enabled",cn),Rt.toggleClass("sp-buttons-disabled",!Ye.showButtons),Rt.toggleClass("sp-palette-buttons-disabled",!Ye.togglePaletteOnly),Rt.toggleClass("sp-palette-disabled",!Ye.showPalette),Rt.toggleClass("sp-palette-only",Ye.showPaletteOnly),Rt.toggleClass("sp-initial-disabled",!Ye.showInitial),Rt.addClass(Ye.className).addClass(Ye.containerClassName),on()}function xe(){if(dn&&window.localStorage){try{var vt=window.localStorage[dn].split(",#");vt.length>1&&(delete window.localStorage[dn],k.each(vt,function(Tt,Lt){Pe(Lt)}))}catch{}try{fn=window.localStorage[dn].split(";")}catch{}}}function Pe(vt){if(Ut){var Tt=u(vt).toRgbString();if(!Bn[Tt]&&k.inArray(Tt,fn)===-1)for(fn.push(Tt);fn.length>Gn;)fn.shift();if(dn&&window.localStorage)try{window.localStorage[dn]=fn.join(";")}catch{}}}function Q(){var vt=_t(),Tt=k.map(kn,function(Lt,St){return ce(Lt,vt,"sp-palette-row sp-palette-row-"+St,Ye)});xe(),fn&&Tt.push(ce(function(){var Lt=[];if(Ye.showPalette)for(var St=0;St<fn.length;St++){var hn=u(fn[St]).toRgbString();Bn[hn]||Lt.push(fn[St])}return Lt.reverse().slice(0,Ye.maxSelectionSize)}(),vt,"sp-palette-row sp-palette-row-selection",Ye)),Te.html(Tt.join(""))}function c(){if(Ye.showInitial){var vt=en,Tt=_t();Ke.html(ce([vt,Tt],Tt,"sp-palette-row-initial",Ye))}}function V(){(sn<=0||Kt<=0||ln<=0)&&on(),kt=!0,Rt.addClass(gn),Pn=null,At.trigger("dragstart.spectrum",[_t()])}function me(){kt=!1,Rt.removeClass(gn),At.trigger("dragstop.spectrum",[_t()])}function Ce(){var vt=he.val();if(vt!==null&&vt!==""||!cn){var Tt=u(vt);Tt.isValid()?(mt(Tt),un(!0)):he.addClass("sp-validation-error")}else mt(null),un(!0)}function Ze(){ct?lt():We()}function We(){var vt=k.Event("beforeShow.spectrum");if(ct)on();else if(At.trigger("beforeShow.spectrum",[_t()]),Qt.beforeShow(_t())!==!1&&!vt.isDefaultPrevented()){(function(){for(var Lt=0;Lt<M.length;Lt++)M[Lt]&&M[Lt].hide()})(),ct=!0;var Tt=k(Kn);Tt.bind("keydown.spectrum",it),Tt.bind("click.spectrum",Xe),k(window).bind("resize.spectrum",Ft),Qe.addClass("sp-active"),Rt.removeClass("sp-hidden"),on(),Bt(),en=_t(),c(),Qt.show(en),At.trigger("show.spectrum",[en])}}function it(vt){vt.keyCode===27&<()}function Xe(vt){vt.button!=2&&(kt||(tn?un(!0):ut(),lt()))}function lt(){ct&&!gt&&(ct=!1,k(Kn).unbind("keydown.spectrum",it),k(Kn).unbind("click.spectrum",Xe),k(window).unbind("resize.spectrum",Ft),Qe.removeClass("sp-active"),Rt.addClass("sp-hidden"),Qt.hide(_t()),At.trigger("hide.spectrum",[_t()]))}function ut(){mt(en,!0)}function mt(vt,Tt){var Lt,St;u.equals(vt,_t())?Bt():(!vt&&cn?Dn=!0:(Dn=!1,qt=!vt,St=(Lt=u(vt)).toHsv(),wn=St.h%360/360,Sn=St.s,pn=St.v,vn=St.a),Bt(),Lt&&Lt.isValid()&&!Tt&&(Gt=Ye.preferredFormat||Lt.getFormat()))}function _t(vt){return vt=vt||{},cn&&Dn?null:u.fromRatio({h:wn,s:Sn,v:pn,a:Math.round(100*vn)/100},{format:vt.format||Gt})}function Dt(){Bt(),Qt.move(_t()),At.trigger("move.spectrum",[_t()])}function Bt(){he.removeClass("sp-validation-error"),Xt();var vt=u.fromRatio({h:wn,s:1,v:1});Cn.css("background-color",vt.toHexString());var Tt=Gt;vn<1&&(vn!==0||Tt!=="name")&&(Tt!=="hex"&&Tt!=="hex3"&&Tt!=="hex6"&&Tt!=="name"||(Tt="rgb"));var Lt=_t({format:Tt}),St="";if(jt.removeClass("sp-clear-display"),jt.css("background-color","transparent"),!Lt&&cn)jt.addClass("sp-clear-display");else{var hn=Lt.toHexString(),er=Lt.toRgbString();if(Z||Lt.alpha===1?jt.css("background-color",er):(jt.css("background-color","transparent"),jt.css("filter",Lt.toFilter())),Ye.showAlpha){var Tn=Lt.toRgb();Tn.a=0;var dr=u(Tn).toRgbString(),Un="linear-gradient(left, "+dr+", "+hn+")";H?Xn.css("filter",u(dr).toFilter({gradientType:1},hn)):(Xn.css("background","-webkit-"+Un),Xn.css("background","-moz-"+Un),Xn.css("background","-ms-"+Un),Xn.css("background","linear-gradient(to right, "+dr+", "+hn+")"))}St=Lt.toString(Tt)}Ye.showInput&&he.val(St),Ye.showPalette&&Q(),c()}function Xt(){var vt=Sn,Tt=pn;if(cn&&Dn)Nt.hide(),Nn.hide(),$t.hide();else{Nt.show(),Nn.show(),$t.show();var Lt=vt*Kt,St=sn-Tt*sn;Lt=Math.max(-an,Math.min(Kt-an,Lt-an)),St=Math.max(-an,Math.min(sn-an,St-an)),$t.css({top:St+"px",left:Lt+"px"});var hn=vn*Rn;Nt.css({left:hn-Hn/2+"px"});var er=wn*ln;Nn.css({top:er-Mn+"px"})}}function un(vt){var Tt=_t(),Lt="",St=!!qt||!u.equals(Tt,en);Tt&&(Lt=Tt.toString(Gt),!ct&&Pe(Tt)),Ge&&At.val(Lt),vt&&St&&(Qt.change(Tt),At.trigger("change",[Tt]))}function on(){ct&&(Kt=Cn.width(),sn=Cn.height(),an=$t.height(),Jt.width(),ln=Jt.height(),Mn=Nn.height(),Rn=ot.width(),Hn=Nt.width(),gt||(Rt.css("position","absolute"),Ye.offset?Rt.offset(Ye.offset):Rt.offset(function(vt,Tt){var Lt=0,St=vt.outerWidth(),hn=vt.outerHeight(),er=Tt.outerHeight(),Tn=vt[0].ownerDocument,dr=Tn.documentElement,Un=dr.clientWidth,jr=dr.clientHeight,lr=k(Tn).scrollLeft(),Mr=k(Tn).scrollTop(),kr=Un+lr,Or=jr+Mr,pr=Tt.offset();return pr.top+=er,pr.left-=Math.min(pr.left,pr.left+St>kr&&kr>St?Math.abs(pr.left+St-kr):0),pr.top-=Math.min(pr.top,pr.top+hn>Or&&Or>hn?Math.abs(hn+er-Lt):Lt),pr}(Rt,wt))),Xt(),Ye.showPalette&&Q(),At.trigger("reflow.spectrum"))}function yn(){lt(),xt=!0,At.attr("disabled",!0),wt.addClass("sp-disabled")}(function(){if(H&&Rt.find("*:not(input)").attr("unselectable","on"),zn(),nt&&At.after(Qe).hide(),cn||oe.hide(),gt)At.after(Rt).hide();else{var vt=Ye.appendTo==="parent"?At.parent():k(Ye.appendTo);vt.length!==1&&(vt=k("body")),vt.append(Rt)}function Tt(St){return St.data&&St.data.ignore?(mt(k(St.target).closest(".sp-thumb-el").data("color")),Dt()):(mt(k(St.target).closest(".sp-thumb-el").data("color")),Dt(),Ye.hideAfterPaletteSelect&&(un(!0),lt())),!1}xe(),wt.bind("click.spectrum touchstart.spectrum",function(St){xt||Ze(),St.stopPropagation(),k(St.target).is("input")||St.preventDefault()}),(At.is(":disabled")||Ye.disabled===!0)&&yn(),Rt.click(s),he.change(Ce),he.bind("paste",function(){setTimeout(Ce,1)}),he.keydown(function(St){St.keyCode==13&&Ce()}),U.text(Ye.cancelText),U.bind("click.spectrum",function(St){St.stopPropagation(),St.preventDefault(),ut(),lt()}),oe.attr("title",Ye.clearText),oe.bind("click.spectrum",function(St){St.stopPropagation(),St.preventDefault(),Dn=!0,Dt(),gt&&un(!0)}),ne.text(Ye.chooseText),ne.bind("click.spectrum",function(St){St.stopPropagation(),St.preventDefault(),H&&he.is(":focus")&&he.trigger("change"),he.hasClass("sp-validation-error")||(un(!0),lt())}),ge.text(Ye.showPaletteOnly?Ye.togglePaletteMoreText:Ye.togglePaletteLessText),ge.bind("click.spectrum",function(St){St.stopPropagation(),St.preventDefault(),Ye.showPaletteOnly=!Ye.showPaletteOnly,Ye.showPaletteOnly||gt||Rt.css("left","-="+(ir.outerWidth(!0)+5)),zn()}),h(ot,function(St,hn,er){vn=St/Rn,Dn=!1,er.shiftKey&&(vn=Math.round(10*vn)/10),Dt()},V,me),h(Jt,function(St,hn){wn=parseFloat(hn/ln),Dn=!1,Ye.showAlpha||(vn=1),Dt()},V,me),h(Cn,function(St,hn,er){if(er.shiftKey){if(!Pn){var Tn=Sn*Kt,dr=sn-pn*sn,Un=Math.abs(St-Tn)>Math.abs(hn-dr);Pn=Un?"x":"y"}}else Pn=null;var jr=!Pn||Pn==="y";(!Pn||Pn==="x")&&(Sn=parseFloat(St/Kt)),jr&&(pn=parseFloat((sn-hn)/sn)),Dn=!1,Ye.showAlpha||(vn=1),Dt()},V,me),Mt?(mt(Mt),Bt(),Gt=Ye.preferredFormat||u(Mt).getFormat(),Pe(Mt)):Bt(),gt&&We();var Lt=H?"mousedown.spectrum":"click.spectrum touchstart.spectrum";Te.delegate(".sp-thumb-el",Lt,Tt),Ke.delegate(".sp-thumb-el:nth-child(1)",Lt,{ignore:!0},Tt)})();var An={show:We,hide:lt,toggle:Ze,reflow:on,option:function(vt,Tt){return vt===B?k.extend({},Ye):Tt===B?Ye[vt]:(Ye[vt]=Tt,vt==="preferredFormat"&&(Gt=Ye.preferredFormat),void zn())},enable:function(){xt=!1,At.attr("disabled",!1),wt.removeClass("sp-disabled")},disable:yn,offset:function(vt){Ye.offset=vt,on()},set:function(vt){mt(vt),un()},get:_t,destroy:function(){At.show(),wt.unbind("click.spectrum touchstart.spectrum"),Rt.remove(),Qe.remove(),M[An.id]=null},container:Rt};return An.id=M.push(An)-1,An}function l(){}function s(se){se.stopPropagation()}function o(se,be){var _e=Array.prototype.slice,Fe=_e.call(arguments,2);return function(){return se.apply(be,Fe.concat(_e.call(arguments)))}}function h(se,be,_e,Fe){be=be||function(){},_e=_e||function(){},Fe=Fe||function(){};var He=document,at=!1,Ye={},gt=0,Ut=0,dn="ontouchstart"in window,rn={};function Qt(kt){kt.stopPropagation&&kt.stopPropagation(),kt.preventDefault&&kt.preventDefault(),kt.returnValue=!1}function Ft(kt){if(at){if(H&&He.documentMode<9&&!kt.button)return ct();var qt=kt&&kt.touches&&kt.touches[0],Kt=qt&&qt.pageX||kt.pageX,sn=qt&&qt.pageY||kt.pageY,an=Math.max(0,Math.min(Kt-Ye.left,Ut)),ln=Math.max(0,Math.min(sn-Ye.top,gt));dn&&Qt(kt),be.apply(se,[an,ln,kt])}}function ct(){at&&(k(He).unbind(rn),k(He.body).removeClass("sp-dragging"),setTimeout(function(){Fe.apply(se,arguments)},0)),at=!1}rn.selectstart=Qt,rn.dragstart=Qt,rn["touchmove mousemove"]=Ft,rn["touchend mouseup"]=ct,k(se).bind("touchstart mousedown",function(kt){var qt=kt.which?kt.which==3:kt.button==2;qt||at||_e.apply(se,arguments)!==!1&&(at=!0,gt=k(se).height(),Ut=k(se).width(),Ye=k(se).offset(),k(He).bind(rn),k(He.body).addClass("sp-dragging"),Ft(kt),Qt(kt))})}function m(){return k.fn.spectrum.inputTypeColorSupport()}function j(se,be,_e){se=rt(se,255),be=rt(be,255),_e=rt(_e,255);var Fe,He,at=g(se,be,_e),Ye=D(se,be,_e),gt=(at+Ye)/2;if(at==Ye)Fe=He=0;else{var Ut=at-Ye;switch(He=gt>.5?Ut/(2-at-Ye):Ut/(at+Ye),at){case se:Fe=(be-_e)/Ut+(be<_e?6:0);break;case be:Fe=(_e-se)/Ut+2;break;case _e:Fe=(se-be)/Ut+4}Fe/=6}return{h:Fe,s:He,l:gt}}function K(se,be,_e){se=rt(se,255),be=rt(be,255),_e=rt(_e,255);var Fe,He,at=g(se,be,_e),Ye=D(se,be,_e),gt=at,Ut=at-Ye;if(He=at===0?0:Ut/at,at==Ye)Fe=0;else{switch(at){case se:Fe=(be-_e)/Ut+(be<_e?6:0);break;case be:Fe=(_e-se)/Ut+2;break;case _e:Fe=(se-be)/Ut+4}Fe/=6}return{h:Fe,s:He,v:gt}}function ve(se,be,_e,Fe){var He=[Ct(v(se).toString(16)),Ct(v(be).toString(16)),Ct(v(_e).toString(16))];return Fe&&He[0].charAt(0)==He[0].charAt(1)&&He[1].charAt(0)==He[1].charAt(1)&&He[2].charAt(0)==He[2].charAt(1)?He[0].charAt(0)+He[1].charAt(0)+He[2].charAt(0):He.join("")}function E(se,be,_e,Fe){var He;return[Ct((He=Fe,Math.round(255*parseFloat(He)).toString(16))),Ct(v(se).toString(16)),Ct(v(be).toString(16)),Ct(v(_e).toString(16))].join("")}function q(se,be){be=be===0?0:be||10;var _e=u(se).toHsl();return _e.s-=be/100,_e.s=Ht(_e.s),u(_e)}function ue(se,be){be=be===0?0:be||10;var _e=u(se).toHsl();return _e.s+=be/100,_e.s=Ht(_e.s),u(_e)}function ke(se){return u(se).desaturate(100)}function Ee(se,be){be=be===0?0:be||10;var _e=u(se).toHsl();return _e.l+=be/100,_e.l=Ht(_e.l),u(_e)}function pe(se,be){be=be===0?0:be||10;var _e=u(se).toRgb();return _e.r=g(0,D(255,_e.r-v(-be/100*255))),_e.g=g(0,D(255,_e.g-v(-be/100*255))),_e.b=g(0,D(255,_e.b-v(-be/100*255))),u(_e)}function Ae(se,be){be=be===0?0:be||10;var _e=u(se).toHsl();return _e.l-=be/100,_e.l=Ht(_e.l),u(_e)}function Ne(se,be){var _e=u(se).toHsl(),Fe=(v(_e.h)+be)%360;return _e.h=Fe<0?360+Fe:Fe,u(_e)}function Oe(se){var be=u(se).toHsl();return be.h=(be.h+180)%360,u(be)}function Ie(se){var be=u(se).toHsl(),_e=be.h;return[u(se),u({h:(_e+120)%360,s:be.s,l:be.l}),u({h:(_e+240)%360,s:be.s,l:be.l})]}function Le(se){var be=u(se).toHsl(),_e=be.h;return[u(se),u({h:(_e+90)%360,s:be.s,l:be.l}),u({h:(_e+180)%360,s:be.s,l:be.l}),u({h:(_e+270)%360,s:be.s,l:be.l})]}function $e(se){var be=u(se).toHsl(),_e=be.h;return[u(se),u({h:(_e+72)%360,s:be.s,l:be.l}),u({h:(_e+216)%360,s:be.s,l:be.l})]}function tt(se,be,_e){be=be||6,_e=_e||30;var Fe=u(se).toHsl(),He=360/_e,at=[u(se)];for(Fe.h=(Fe.h-(He*be>>1)+720)%360;--be;)Fe.h=(Fe.h+He)%360,at.push(u(Fe));return at}function ht(se,be){be=be||6;for(var _e=u(se).toHsv(),Fe=_e.h,He=_e.s,at=_e.v,Ye=[],gt=1/be;be--;)Ye.push(u({h:Fe,s:He,v:at})),at=(at+gt)%1;return Ye}function Vt(se){return se=parseFloat(se),(isNaN(se)||se<0||se>1)&&(se=1),se}function rt(se,be){(function(Fe){return typeof Fe=="string"&&Fe.indexOf(".")!=-1&&parseFloat(Fe)===1})(se)&&(se="100%");var _e=function(Fe){return typeof Fe=="string"&&Fe.indexOf("%")!=-1}(se);return se=D(be,g(0,parseFloat(se))),_e&&(se=parseInt(se*be,10)/100),f.abs(se-be)<1e-6?1:se%be/parseFloat(be)}function Ht(se){return D(1,g(0,se))}function Zt(se){return parseInt(se,16)}function Ct(se){return se.length==1?"0"+se:""+se}function nn(se){return se<=1&&(se=100*se+"%"),se}function fe(se){return Zt(se)/255}}(y);var P=function(k){var B=k.getFormat()==="name"&&k.toName(),G=k.getAlpha()==1?k.toHexString():k.toRgbString();return B||G.replace(/ /g,"")};let A=$.Z.extend({template:function(){var k=this.ppfx;return` + <div class="`.concat(this.holderClass(),`"></div> + <div class="`).concat(k,`field-colorp"> + <div class="`).concat(k,`field-colorp-c" data-colorp-c> + <div class="`).concat(k,`checker-bg"></div> + </div> + </div> + `)},inputClass:function(){var k=this.ppfx;return"".concat(k,"field ").concat(k,"field-color")},holderClass:function(){return"".concat(this.ppfx,"input-holder")},remove:function(){$.Z.prototype.remove.apply(this,arguments),this.colorEl.spectrum("destroy")},handleChange:function(k){k.stopPropagation();var B=k.target.value;(0,Y.isUndefined)(B)||this.__onInputChange(B)},__onInputChange:function(k){var B=this.model,G=this.opts.onChange,M=k,H=this.getColorEl();if(H){H.spectrum("set",M);var Z=H.spectrum("get"),_=M&&P(Z);_&&(M=_)}G?G(M):B.set({value:M},{fromInput:1})},setValue:function(k){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},G=this.model,M=(0,Y.isUndefined)(B.def)?G.get("defaults"):B.def,H=(0,Y.isUndefined)(k)?(0,Y.isUndefined)(M)?"":M:k,Z=this.getInputEl(),_=this.getColorEl(),C=H!="none"?H:"";Z.value=H,_.get(0).style.backgroundColor=C,(B.fromTarget||B.fromInput&&!B.avoidStore)&&(_.spectrum("set",C),this.noneColor=H=="none")},getColorEl:function(){if(!this.colorEl){var k,B=this.em,G=this.model,M=this.opts,H=this,Z=this.ppfx,_=M.onChange,C=y('<div class="'.concat(this.ppfx,'field-color-picker"></div>')),z=C.get(0).style,I=B&&B.config?B.config.el:"",p=B&&B.getConfig&&B.getConfig("colorPicker")||{},d=0;this.$el.find("[data-colorp-c]").append(C),C.spectrum(w(w(w({color:G.getValue()||!1,containerClassName:"".concat(Z,"one-bg ").concat(Z,"two-color"),appendTo:I||"body",maxSelectionSize:8,showPalette:!0,showAlpha:!0,chooseText:"Ok",cancelText:"\u2A2F",palette:[]},p),G.get("colorPicker")||{}),{},{move:function(f){var v=P(f);z.backgroundColor=v,_?_(v,!0):G.setValueFromInput(v,0)},change:function(f){d=1;var v=P(f);z.backgroundColor=v,_?_(v):(G.setValueFromInput(0,0),G.setValueFromInput(v)),H.noneColor=0},show:function(f){d=0,k=_?G.getValue({noDefault:!0}):P(f)},hide:function(f){d||!k&&!_||(H.noneColor&&(k=""),z.backgroundColor=k,C.spectrum("set",k),_?_(k,!0):G.setValueFromInput(k,0))}})),B&&B.on&&this.listenTo(B,"component:selected",function(){d=1,C.spectrum("hide")}),this.colorEl=C}return this.colorEl},render:function(){return $.Z.prototype.render.call(this),this.getColorEl(),this}})},7610:(Je,Se,b)=>{"use strict";b.d(Se,{Z:()=>te});var ye=b(2316),we=b.n(ye),J=b(9050),Y=b(6183),N=b(8659);we().$;let te=N.Z.extend({events:{"change input":"handleChange","change select":"handleUnitChange","click [data-arrow-up]":"upArrowClick","click [data-arrow-down]":"downArrowClick","mousedown [data-arrows]":"downIncrement",keydown:"handleKeyDown"},template:function(){var $=this.ppfx;return` + <span class="`.concat($,`input-holder"></span> + <span class="`).concat($,`field-units"></span> + <div class="`).concat($,`field-arrows" data-arrows> + <div class="`).concat($,`field-arrow-u" data-arrow-up></div> + <div class="`).concat($,`field-arrow-d" data-arrow-down></div> + </div> + `)},inputClass:function(){var $=this.ppfx;return this.opts.contClass||"".concat($,"field ").concat($,"field-integer")},initialize:function(){N.Z.prototype.initialize.apply(this,arguments),(0,J.bindAll)(this,"moveIncrement","upIncrement"),this.doc=document,this.listenTo(this.model,"change:unit",this.handleModelChange)},setValue:function($,L){var w=L||{},y=this.validateInputValue($,{deepCheck:1}),P={value:y.value};(y.unit||y.force)&&(P.unit=y.unit),this.model.set(P,w),w.silent&&this.handleModelChange()},handleChange:function($){$.stopPropagation(),this.setValue(this.getInputEl().value),this.elementUpdated()},handleUnitChange:function($){$.stopPropagation();var L=this.getUnitEl().value;this.model.set("unit",L),this.elementUpdated()},handleKeyDown:function($){$.key==="ArrowUp"&&($.preventDefault(),this.upArrowClick()),$.key==="ArrowDown"&&($.preventDefault(),this.downArrowClick())},elementUpdated:function(){this.model.trigger("el:change")},handleModelChange:function(){var $=this.model;this.getInputEl().value=$.get("value");var L=this.getUnitEl();L&&(L.value=$.get("unit")||"")},getUnitEl:function(){if(!this.unitEl){var $=this.model,L=$.get("units")||[];if(L.length){var w=['<option value="" disabled hidden>-</option>'];L.forEach(function(P){var A=P==$.get("unit")?"selected":"";w.push("<option ".concat(A,">").concat(P,"</option>"))});var y=document.createElement("div");y.innerHTML='<select class="'.concat(this.ppfx,'input-unit">').concat(w.join(""),"</select>"),this.unitEl=y.firstChild}}return this.unitEl},upArrowClick:function(){var $=this.model,L=$.get("step"),w=parseFloat($.get("value"));this.setValue(this.normalizeValue(w+L)),this.elementUpdated()},downArrowClick:function(){var $=this.model,L=$.get("step"),w=parseFloat($.get("value"));this.setValue(this.normalizeValue(w-L)),this.elementUpdated()},downIncrement:function($){$.preventDefault(),this.moved=0;var L=this.model.get("value")||0;L=this.normalizeValue(L),this.current={y:$.pageY,val:L},(0,Y.on)(this.doc,"mousemove",this.moveIncrement),(0,Y.on)(this.doc,"mouseup",this.upIncrement)},moveIncrement:function($){this.moved=1;var L=this.model,w=L.get("step"),y=this.current,P=this.normalizeValue(y.val+(y.y-$.pageY)*w),A=this.validateInputValue(P),k=A.value,B=A.unit;return this.prValue=k,L.set({value:k,unit:B},{avoidStore:1}),!1},upIncrement:function(){var $=this.model,L=$.get("step");if((0,Y.off)(this.doc,"mouseup",this.upIncrement),(0,Y.off)(this.doc,"mousemove",this.moveIncrement),this.prValue&&this.moved){var w=this.prValue-L;$.set("value",w,{avoidStore:1}).set("value",w+L),this.elementUpdated()}},normalizeValue:function($){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,w=this.model,y=w.get("step"),P=0;if(isNaN($))return L;if($=parseFloat($),Math.floor($)!==$){var A=y.toString().split(".")[1];P=A?A.length:0}return P?parseFloat($.toFixed(P)):$},validateInputValue:function($){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},w=0,y=L||{},P=this.model,A="",k=(0,J.isUndefined)($)?A:$,B=L.units||P.get("units")||[],G=P.get("unit")||B.length&&B[0]||"",M=(0,J.isUndefined)(L.max)?P.get("max"):L.max,H=(0,J.isUndefined)(L.min)?P.get("min"):L.min,Z=!!P.get("limitlessMax"),_=!!P.get("limitlessMin");if(y.deepCheck){var C=P.get("fixedValues")||[];if(k===""&&(G=""),k){var z=new RegExp("^"+C.join("|"),"g");if(C.length&&z.test(k))k=k.match(z)[0],G="",w=1;else{var I=k+"";k+="",k=parseFloat(k.replace(",",".")),k=isNaN(k)?A:k;var p=I.replace(k,"");(0,J.indexOf)(B,p)>=0&&(G=p)}}}return Z||(0,J.isUndefined)(M)||M===""||(k=k>M?M:k),_||(0,J.isUndefined)(H)||H===""||(k=k<H?H:k),{force:w,value:k,unit:G}},render:function(){N.Z.prototype.render.call(this),this.unitEl=null;var $=this.getUnitEl();return $&&this.$el.find(".".concat(this.ppfx,"field-units")).get(0).appendChild($),this}})},6602:(Je,Se,b)=>{"use strict";b.d(Se,{Z:()=>Y});var ye=b(9050),we=b(2316),J=b.n(we);let Y=J().View.extend({itemView:"",itemsView:"",itemType:"type",autoAdd:0,initialize:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},te=arguments.length>1?arguments[1]:void 0;this.config=te||N.config||{},this.autoAdd&&this.listenTo(this.collection,"add",this.addTo),this.items=[],this.init()},init:function(){},addTo:function(N){this.add(N)},itemViewNotFound:function(N){var te=this.config,$=this.ns,L=te.em,w="".concat($?"[".concat($,"]: "):"","'").concat(N,"' type not found");L&&L.logWarning(w)},add:function(N,te){var $,L=this.config,w=this.reuseView,y=this.items,P=this.itemsView,A=P===void 0?{}:P,k=te||null,B=this.itemView,G=N.get(this.itemType);A[G]?B=A[G]:!G||A[G]||(0,ye.includes)(["button","checkbox","color","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"],G)||this.itemViewNotFound(G),$=N.view&&w?N.view:new B({model:N,config:L},L),y&&y.push($);var M=$.render().el;k?k.appendChild(M):this.$el.append(M)},render:function(){var N=document.createDocumentFragment();return this.clearItems(),this.$el.empty(),this.collection.length&&this.collection.each(function(te){this.add(te,N)},this),this.$el.append(N),this.onRender(),this},onRender:function(){},onRemoveBefore:function(){},onRemove:function(){},remove:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},te=this.items;this.onRemoveBefore(te,N),this.clearItems(),J().View.prototype.remove.apply(this,arguments),this.onRemove(te,N)},clearItems:function(){this.items}})},4836:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>P});var ye=b(4942),we=b(1002),J=b(9050),Y=b(6183),N={placeholder:"eg. Text here"};let te={locale:"en",localeFallback:"en",detectLocale:!0,debug:!1,messages:{en:{assetManager:{addButton:"Add image",inputPlh:"http://path/to/the/image.jpg",modalTitle:"Select Image",uploadTitle:"Drop files here or click to upload"},blockManager:{labels:{},categories:{}},domComponents:{names:{"":"Box",wrapper:"Body",text:"Text",comment:"Comment",image:"Image",video:"Video",label:"Label",link:"Link",map:"Map",tfoot:"Table foot",tbody:"Table body",thead:"Table head",table:"Table",row:"Table row",cell:"Table cell"}},deviceManager:{device:"Device",devices:{desktop:"Desktop",tablet:"Tablet",mobileLandscape:"Mobile Landscape",mobilePortrait:"Mobile Portrait"}},panels:{buttons:{titles:{preview:"Preview",fullscreen:"Fullscreen","sw-visibility":"View components","export-template":"View code","open-sm":"Open Style Manager","open-tm":"Settings","open-layers":"Open Layer Manager","open-blocks":"Open Blocks"}}},selectorManager:{label:"Classes",selected:"Selected",emptyState:"- State -",states:{hover:"Hover",active:"Click","nth-of-type(2n)":"Even/Odd"}},styleManager:{empty:"Select an element before using Style Manager",layer:"Layer",fileButton:"Images",sectors:{general:"General",layout:"Layout",typography:"Typography",decorations:"Decorations",extra:"Extra",flex:"Flex",dimension:"Dimension"},properties:{"text-shadow-h":"X","text-shadow-v":"Y","text-shadow-blur":"Blur","text-shadow-color":"Color","box-shadow-h":"X","box-shadow-v":"Y","box-shadow-blur":"Blur","box-shadow-spread":"Spread","box-shadow-color":"Color","box-shadow-type":"Type","margin-top-sub":"Top","margin-right-sub":"Right","margin-bottom-sub":"Bottom","margin-left-sub":"Left","padding-top-sub":"Top","padding-right-sub":"Right","padding-bottom-sub":"Bottom","padding-left-sub":"Left","border-width-sub":"Width","border-style-sub":"Style","border-color-sub":"Color","border-top-left-radius-sub":"Top Left","border-top-right-radius-sub":"Top Right","border-bottom-right-radius-sub":"Bottom Right","border-bottom-left-radius-sub":"Bottom Left","transform-rotate-x":"Rotate X","transform-rotate-y":"Rotate Y","transform-rotate-z":"Rotate Z","transform-scale-x":"Scale X","transform-scale-y":"Scale Y","transform-scale-z":"Scale Z","transition-property-sub":"Property","transition-duration-sub":"Duration","transition-timing-function-sub":"Timing","background-image-sub":"Image","background-repeat-sub":"Repeat","background-position-sub":"Position","background-attachment-sub":"Attachment","background-size-sub":"Size"}},traitManager:{empty:"Select an element before using Trait Manager",label:"Component settings",traits:{labels:{},attributes:{id:N,alt:N,title:N,href:{placeholder:"eg. https://google.com"}},options:{target:{false:"This window",_blank:"New window"}}}}}},messagesAdd:null};function $(A,k){var B=Object.keys(A);if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(A);k&&(G=G.filter(function(M){return Object.getOwnPropertyDescriptor(A,M).enumerable})),B.push.apply(B,G)}return B}function L(A){for(var k=1;k<arguments.length;k++){var B=arguments[k]!=null?arguments[k]:{};k%2?$(Object(B),!0).forEach(function(G){(0,ye.Z)(A,G,B[G])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(B)):$(Object(B)).forEach(function(G){Object.defineProperty(A,G,Object.getOwnPropertyDescriptor(B,G))})}return A}var w=function(A){return!Array.isArray(A)&&A!==null&&(0,we.Z)(A)==="object"},y=function A(){for(var k=L({},arguments.length<=0?void 0:arguments[0]),B=1;B<arguments.length;B++){var G=L({},B<0||arguments.length<=B?void 0:arguments[B]);for(var M in G){var H=k[M],Z=G[M];w(H)&&w(Z)?k[M]=A(H,Z):k[M]=Z}}return k};let P=function(){return{name:"I18n",config:te,init:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.config=L(L(L({},te),A),{},{messages:L(L({},te.messages),A.messages||{})});var k=this.config.messagesAdd;return k&&this.addMessages(k),this.config.detectLocale&&(this.config.locale=this._localLang()),this.em=A.em,this},getConfig:function(){return this.config},setLocale:function(A){var k=this.em,B=this.config,G={value:A,valuePrev:B.locale};return k&&k.trigger("i18n:locale",G),B.locale=A,this},getLocale:function(){return this.config.locale},getMessages:function(A){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B=this.config.messages;return A&&!B[A]&&this._debug("'".concat(A,"' i18n lang not found"),k),A?B[A]:B},setMessages:function(A){var k=this.em;return this.config.messages=A,k&&k.trigger("i18n:update",A),this},addMessages:function(A){var k=this.em,B=this.config.messages;return k&&k.trigger("i18n:add",A),this.setMessages(y(B,A)),this},t:function(A){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B=this.config,G=k.params||{},M=k.l||this.getLocale(),H=k.lFlb||B.localeFallback,Z=this._getMsg(A,M,k);return Z||(Z=this._getMsg(A,H,k)),!Z&&this._debug("'".concat(A,"' i18n key not found in '").concat(M,"' lang"),k),Z=Z&&(0,J.isString)(Z)?this._addParams(Z,G):Z},_localLang:function(){var A=(0,Y.hasWin)()&&window.navigator||{},k=A.language||A.userLanguage;return k?k.split("-")[0]:"en"},_addParams:function(A,k){var B=new RegExp("{([\\w\\d-]*)}","g");return A.replace(B,function(G,M){return k[M]||""}).trim()},_getMsg:function(A,k){var B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},G=this.getMessages(k,B);if(G){var M=G[A];return!M&&A.indexOf(".")>0&&(M=A.split(".").reduce(function(H,Z){if(!(0,J.isUndefined)(H))return H[Z]},G)),M}},_debug:function(A){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B=this.em,G=this.config;(k.debug||G.debug)&&B&&B.logWarning(A)},destroy:function(){this.config=te,this.em={}}}}},9788:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>D});var ye,we=b(1002),J=b(4942),Y=b(9050),N=b(6183),te={},$={16:!1,18:!1,17:!1,91:!1},L="all",w={"\u21E7":16,shift:16,"\u2325":18,alt:18,option:18,"\u2303":17,ctrl:17,control:17,"\u2318":91,command:91},y={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,home:36,end:35,pageup:33,pagedown:34,",":188,".":190,"/":191,"`":192,"-":189,"=":187,";":186,"'":222,"[":219,"]":221,"\\":220},P=function(g){return y[g]||g.toUpperCase().charCodeAt(0)},A=[];for(ye=1;ye<20;ye++)y["f"+ye]=111+ye;function k(g,T){for(var u=g.length;u--;)if(g[u]===T)return u;return-1}function B(g,T){if(g.length!=T.length)return!1;for(var u=0;u<g.length;u++)if(g[u]!==T[u])return!1;return!0}var G={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey"};function M(g){for(ye in $)$[ye]=g[G[ye]]}function H(g){var T,u=g.keyCode,x=k(A,u);if(x>=0&&A.splice(x,1),u!=93&&u!=224||(u=91),u in $)for(T in $[u]=!1,w)w[T]==u&&(_[T]=!1)}function Z(){for(ye in $)$[ye]=!1;for(ye in w)_[ye]=!1}function _(g,T,u){var x,O;x=z(g),u===void 0&&(u=T,T="all");for(var W=0;W<x.length;W++)O=[],(g=x[W].split("+")).length>1&&(O=I(g),g=[g[g.length-1]]),g=g[0],(g=P(g))in te||(te[g]=[]),te[g].push({shortcut:x[W],scope:T,method:u,key:x[W],mods:O})}for(ye in w)_[ye]=!1;function C(){return L||"all"}function z(g){var T;return(T=(g=g.replace(/\s/g,"")).split(","))[T.length-1]==""&&(T[T.length-2]+=","),T}function I(g){for(var T=g.slice(0,g.length-1),u=0;u<T.length;u++)T[u]=w[T[u]];return T}function p(g,T,u){g.addEventListener?g.addEventListener(T,u,!1):g.attachEvent&&g.attachEvent("on"+T,function(){u(window.event)})}_.setScope=function(g){L=g||"all"},_.getScope=C,_.deleteScope=function(g){var T,u,x;for(T in te)for(u=te[T],x=0;x<u.length;)u[x].scope===g?u.splice(x,1):x++},_.filter=function(g){var T=(g.target||g.srcElement).tagName;return!(T=="INPUT"||T=="SELECT"||T=="TEXTAREA")},_.isPressed=function(g){return typeof g=="string"&&(g=P(g)),k(A,g)!=-1},_.getPressedKeyCodes=function(){return A.slice(0)},_.unbind=function(g,T){var u,x,O,W,X,ie=[];for(u=z(g),W=0;W<u.length;W++){if((x=u[W].split("+")).length>1&&(ie=I(x)),g=x[x.length-1],g=P(g),T===void 0&&(T=C()),!te[g])return;for(O=0;O<te[g].length;O++)(X=te[g][O]).scope===T&&B(X.mods,ie)&&(te[g][O]={})}},_.handlers=te,_.init=function(g){p(g.document,"keydown",function(T){(function(u){var x,O,W,X,ie,le;if(x=u.keyCode,k(A,x)==-1&&A.push(x),x!=93&&x!=224||(x=91),x in $)for(W in $[x]=!0,w)w[W]==x&&(_[W]=!0);else if(M(u),_.filter.call(this,u)&&x in te){for(le=C(),X=0;X<te[x].length;X++)if((O=te[x][X]).scope==le||O.scope=="all"){for(W in ie=O.mods.length>0,$)(!$[W]&&k(O.mods,+W)>-1||$[W]&&k(O.mods,+W)==-1)&&(ie=!1);(O.mods.length!=0||$[16]||$[18]||$[17]||$[91])&&!ie||O.method(u,O)===!1&&(u.preventDefault?u.preventDefault():u.returnValue=!1,u.stopPropagation&&u.stopPropagation(),u.cancelBubble&&(u.cancelBubble=!0))}}})(T)}),p(g.document,"keyup",H),p(g,"focus",Z)};let d=_;function f(g,T){var u=Object.keys(g);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(g);T&&(x=x.filter(function(O){return Object.getOwnPropertyDescriptor(g,O).enumerable})),u.push.apply(u,x)}return u}function v(g){for(var T=1;T<arguments.length;T++){var u=arguments[T]!=null?arguments[T]:{};T%2?f(Object(u),!0).forEach(function(x){(0,J.Z)(g,x,u[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(u)):f(Object(u)).forEach(function(x){Object.defineProperty(g,x,Object.getOwnPropertyDescriptor(u,x))})}return g}(0,N.hasWin)()&&d.init(window);let D=function(){var g={defaults:{"core:undo":{keys:"\u2318+z, ctrl+z",handler:"core:undo"},"core:redo":{keys:"\u2318+shift+z, ctrl+shift+z",handler:"core:redo"},"core:copy":{keys:"\u2318+c, ctrl+c",handler:"core:copy"},"core:paste":{keys:"\u2318+v, ctrl+v",handler:"core:paste"},"core:component-next":{keys:"s",handler:"core:component-next"},"core:component-prev":{keys:"w",handler:"core:component-prev"},"core:component-enter":{keys:"d",handler:"core:component-enter"},"core:component-exit":{keys:"a",handler:"core:component-exit"},"core:component-delete":{keys:"backspace, delete",handler:"core:component-delete",opts:{prevent:1}}}};return{keymaster:d,name:"Keymaps",getConfig:function(){return this.config},init:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.config=v(v({},g),T),this.em=this.config.em,this.keymaps={},this},onLoad:function(){var T=this.config.defaults;for(var u in T){var x=T[u];this.add(u,x.keys,x.handler,x.opts||{})}},add:function(T,u,x){var O=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},W=this.em,X=W.get("Commands"),ie=W.getEditor(),le=W.get("Canvas"),ce={id:T,keys:u,handler:x},F=this.keymaps[T];return F&&this.remove(T),this.keymaps[T]=ce,d(u,function(l,s){var o={event:l,h:s};if(x=(0,Y.isString)(x)?X.get(x):x,!W.isEditing()&&!ie.Canvas.isInputFocused()||O.force){O.prevent&&le.getCanvasView().preventDefault(l),(0,we.Z)(x)=="object"?X.runCommand(x,o):x(ie,0,o);var h=[T,s.shortcut,l];W.trigger.apply(W,["keymap:emit"].concat(h)),W.trigger.apply(W,["keymap:emit:".concat(T)].concat(h))}}),W.trigger("keymap:add",ce),ce},get:function(T){return this.keymaps[T]},getAll:function(){return this.keymaps},remove:function(T){var u=this.em,x=this.get(T);if(x)return delete this.keymaps[T],x.keys.split(", ").forEach(function(O){return d.unbind(O.trim())}),u&&u.trigger("keymap:remove",x),x},removeAll:function(){var T=this;return Object.keys(this.keymaps).forEach(function(u){return T.remove(u)}),d.handlers={},this},destroy:function(){this.removeAll(),this.keymaps={},this.em={}}}}},2450:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>_});var ye=b(4942),we=b(9050),J=b(9283);let Y={stylePrefix:"mdl-",title:"",content:"",backdrop:!0,custom:!1,extend:{}};var N=b(5671),te=b(3144),$=b(9340),L=b(3930),w=b(1120),y=b(2316);function P(C){var z=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var I,p=(0,w.Z)(C);if(z){var d=(0,w.Z)(this).constructor;I=Reflect.construct(p,arguments,d)}else I=p.apply(this,arguments);return(0,L.Z)(this,I)}}var A=function(C){(0,$.Z)(I,C);var z=P(I);function I(){return(0,N.Z)(this,I),z.apply(this,arguments)}return(0,te.Z)(I,[{key:"defaults",value:function(){return{title:"",content:"",attributes:{},open:!1}}},{key:"open",value:function(){this.set("open",!0)}},{key:"close",value:function(){this.set("open",!1)}}]),I}(y.Model);function k(C,z){var I=Object.keys(C);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(C);z&&(p=p.filter(function(d){return Object.getOwnPropertyDescriptor(C,d).enumerable})),I.push.apply(I,p)}return I}function B(C){for(var z=1;z<arguments.length;z++){var I=arguments[z]!=null?arguments[z]:{};z%2?k(Object(I),!0).forEach(function(p){(0,ye.Z)(C,p,I[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(I)):k(Object(I)).forEach(function(p){Object.defineProperty(C,p,Object.getOwnPropertyDescriptor(I,p))})}return C}function G(C){var z=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var I,p=(0,w.Z)(C);if(z){var d=(0,w.Z)(this).constructor;I=Reflect.construct(p,arguments,d)}else I=p.apply(this,arguments);return(0,L.Z)(this,I)}}var M=function(C){(0,$.Z)(I,C);var z=G(I);function I(){return(0,N.Z)(this,I),z.apply(this,arguments)}return(0,te.Z)(I,[{key:"template",value:function(p){var d=p.pfx,f=p.ppfx,v=p.content,D=p.title;return'<div class="'.concat(d,"dialog ").concat(f,"one-bg ").concat(f,`two-color"> + <div class="`).concat(d,`header"> + <div class="`).concat(d,'title">').concat(D,`</div> + <div class="`).concat(d,`btn-close" data-close-modal>⨯</div> + </div> + <div class="`).concat(d,`content"> + <div id="`).concat(d,'c">').concat(v,`</div> + <div style="clear:both"></div> + </div> + </div> + <div class="`).concat(d,'collector" style="display: none"></div>')}},{key:"events",value:function(){return{click:"onClick","click [data-close-modal]":"hide"}}},{key:"initialize",value:function(p){var d=this.model,f=p.config||{},v=f.stylePrefix||"";this.config=f,this.pfx=v,this.ppfx=f.pStylePrefix||"",this.listenTo(d,"change:open",this.updateOpen),this.listenTo(d,"change:title",this.updateTitle),this.listenTo(d,"change:content",this.updateContent)}},{key:"onClick",value:function(p){this.config.backdrop&&p.target===this.el&&this.hide()}},{key:"getCollector",value:function(){return this.$collector||(this.$collector=this.$el.find("."+this.pfx+"collector")),this.$collector}},{key:"getContent",value:function(){var p=this.pfx;return this.$content||(this.$content=this.$el.find(".".concat(p,"content #").concat(p,"c"))),this.$content}},{key:"getTitle",value:function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.$title||(this.$title=this.$el.find("."+this.pfx+"title")),p.$?this.$title:this.$title.get(0)}},{key:"updateContent",value:function(){var p=this.getContent(),d=p.children(),f=this.getCollector(),v=this.model.get("content");d.length&&f.append(d),p.empty().append(v)}},{key:"updateTitle",value:function(){var p=this.getTitle({$:!0});p&&p.empty().append(this.model.get("title"))}},{key:"updateOpen",value:function(){this.el.style.display=this.model.get("open")?"":"none"}},{key:"hide",value:function(){this.model.close()}},{key:"show",value:function(){this.model.open()}},{key:"updateAttr",value:function(p){var d=this.pfx,f=this.$el,v=this.el,D=[].slice.call(v.attributes).map(function(g){return g.name});f.removeAttr(D.join(" ")),f.attr(B(B({},p||{}),{},{class:"".concat(d,"container ").concat(p&&p.class||"").trim()}))}},{key:"render",value:function(){var p=this.$el,d=this.model.toJSON();return d.pfx=this.pfx,d.ppfx=this.ppfx,p.html(this.template(d)),this.updateAttr(),this.updateOpen(),this}}]),I}(y.View);function H(C,z){var I=Object.keys(C);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(C);z&&(p=p.filter(function(d){return Object.getOwnPropertyDescriptor(C,d).enumerable})),I.push.apply(I,p)}return I}function Z(C){for(var z=1;z<arguments.length;z++){var I=arguments[z]!=null?arguments[z]:{};z%2?H(Object(I),!0).forEach(function(p){(0,ye.Z)(C,p,I[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(I)):H(Object(I)).forEach(function(p){Object.defineProperty(C,p,Object.getOwnPropertyDescriptor(I,p))})}return C}let _=function(){var C,z,I={},p=function(d,f){f&&f.trigger("modal:".concat(d?"open":"close"))};return{name:"Modal",getConfig:function(){return I},init:function(){var d=this,f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},v=(I=Z(Z({},Y),f)).em;this.em=v;var D=I.pStylePrefix;return D&&(I.stylePrefix=D+I.stylePrefix),(C=new A(I)).on("change:open",function(g,T){return p(T,v)}),C.on("change",(0,we.debounce)(function(){var g=d._evData(),T=d.getConfig().custom;(0,we.isFunction)(T)&&T(g),v.trigger("modal",g)})),this},_evData:function(){var d=this,f=this.getTitle(),v=this.getContent(),D=C.attributes;return{open:D.open,attributes:D.attributes,title:(0,we.isString)(f)?(0,J.rw)(f):f,content:(0,we.isString)(v)?(0,J.rw)(v):v.get?v.get(0):v,close:function(){return d.close()}}},postRender:function(d){var f=d.model.getConfig().el||d.el,v=this.render();v&&v.appendTo(f)},open:function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=d.attributes||{};return d.title&&this.setTitle(d.title),d.content&&this.setContent(d.content),C.set("attributes",f),C.open(),z&&z.updateAttr(f),this},close:function(){return C.close(),this},onceClose:function(d){return this.em.once("modal:close",d),this},onceOpen:function(d){return this.em.once("modal:open",d),this},isOpen:function(){return!!C.get("open")},setTitle:function(d){return C.set("title",d),this},getTitle:function(){return C.get("title")},setContent:function(d){return C.set("content"," "),C.set("content",d),this},getContent:function(){return C.get("content")},getContentEl:function(){return z.getContent().get(0)},getModel:function(){return C},render:function(){if(!this.getConfig().custom){var d=M.extend(I.extend),f=z&&z.el;return(z=new d({el:f,model:C,config:I})).render().$el}},destroy:function(){z&&z.remove(),[I,C,z].forEach(function(d){return{}}),this.em={}}}}},77:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>H});var ye=b(4942);let we={stylePrefix:"",appendTo:"",sortable:1,hidable:1,hideTextnode:1,root:"",showWrapper:1,showHover:1,scrollCanvas:{behavior:"smooth",block:"nearest"},scrollLayers:{behavior:"auto",block:"nearest"},highlightHover:1,onInit:function(){},onRender:function(){},extend:{}};var J,Y=b(9050),N=b(6183),te=b(2316),$=b.n(te),L=b(2169),w=b(9138),y="contentEditable",P={mediaText:""},A=$().$,k=function(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return(Z.display||"").trim().indexOf("none")===0};let B=$().View.extend({events:{"mousedown [data-toggle-move]":"startSort","touchstart [data-toggle-move]":"startSort","click [data-toggle-visible]":"toggleVisibility","click [data-toggle-open]":"toggleOpening","click [data-toggle-select]":"handleSelect","mouseover [data-toggle-select]":"handleHover","mouseout [data-toggle-select]":"handleHoverOut","dblclick [data-name]":"handleEdit","keydown [data-name]":"handleEditKey","focusout [data-name]":"handleEditEnd"},template:function(Z){var _=this.pfx,C=this.ppfx,z=this.config,I=this.clsNoEdit,p=z.hidable,d=this.countChildren(Z),f=d?"":this.clsNoChild,v="".concat(this.clsTitle," ").concat(f),D="".concat(this.clsTitleC," ").concat(C,"one-bg"),g="".concat(this.clsCaret," fa fa-chevron-right"),T="".concat(this.inputNameCls," ").concat(I," ").concat(C,"no-app"),u=this.level+1,x="".concat(30+10*u,"px"),O=Z.getName(),W=Z.getIcon(),X="".concat(_,"layer");return` + `.concat(p?'<i class="'.concat(_,"layer-vis fa fa-eye ").concat(this.isVisible()?"":"fa-eye-slash",'" data-toggle-visible></i>'):"",` + <div class="`).concat(D,`"> + <div class="`).concat(v,'" style="padding-left: ').concat(x,`" data-toggle-select> + <div class="`).concat(_,'layer-title-inn" title="').concat(O,`"> + <i class="`).concat(g,`" data-toggle-open></i> + `).concat(W?'<span class="'.concat(X,'__icon">').concat(W,"</span>"):"",` + <span class="`).concat(T,'" data-name>').concat(O,`</span> + </div> + </div> + </div> + <div class="`).concat(this.clsCount,'" data-count>').concat(d||"",`</div> + <div class="`).concat(this.clsMove,`" data-toggle-move> + <i class="fa fa-arrows"></i> + </div> + <div class="`).concat(this.clsChildren,'"></div>')},initialize:function(){var Z=this,_=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(0,Y.bindAll)(this,"__render"),this.opt=_,this.level=_.level;var C=_.config||{},z=C.onInit;this.config=C,this.em=_.config.em,this.ppfx=this.em.get("Config").stylePrefix,this.sorter=_.sorter||"",this.pfx=this.config.stylePrefix,this.parentView=_.parentView;var I=this.pfx,p=this.ppfx,d=this.model,f=d.get("components"),v=d.get("type")||"default";d.set("open",!1),this.listenTo(f,"remove add reset",this.checkChildren),[["change:status",this.updateStatus],["change:open",this.updateOpening],["change:layerable",this.updateLayerable],["change:style:display",this.updateVisibility],["rerender:layer",this.render],["change:name change:custom-name",this.updateName]].forEach(function(D){return Z.listenTo(d,D[0],D[1])}),this.className="".concat(I,"layer ").concat(I,"layer__t-").concat(v," no-select ").concat(p,"two-color"),this.inputNameCls="".concat(p,"layer-name"),this.clsTitleC="".concat(I,"layer-title-c"),this.clsTitle="".concat(I,"layer-title"),this.clsCaret="".concat(I,"layer-caret"),this.clsCount="".concat(I,"layer-count"),this.clsMove="".concat(I,"layer-move"),this.clsChildren="".concat(I,"layer-children"),this.clsNoChild="".concat(I,"layer-no-chld"),this.clsEdit="".concat(this.inputNameCls,"--edit"),this.clsNoEdit="".concat(this.inputNameCls,"--no-edit"),this.$el.data("model",d),this.$el.data("collection",f),d.viewLayer=this,z.bind(this)({component:d,render:this.__render,listenTo:this.listenTo})},updateName:function(){this.getInputName().innerText=this.model.getName()},getVisibilityEl:function(){return this.eyeEl||(this.eyeEl=this.$el.children(".".concat(this.pfx,"layer-vis"))),this.eyeEl},updateVisibility:function(){var Z=this.pfx,_=this.model,C="".concat(Z,"layer-hidden"),z=k(_.getStyle(P))?"addClass":"removeClass";this.$el[z](C),this.getVisibilityEl()[z]("fa-eye-slash")},toggleVisibility:function(Z){Z&&Z.stopPropagation();var _=this.model,C=this.em,z="__prev-display",I=_.get(z),p=_.getStyle(P),d=p.display;k(p)?(delete p.display,I&&(p.display=I,_.unset(z))):(d&&_.set(z,d),p.display="none"),_.setStyle(p,P),C&&C.trigger("component:toggled")},handleEdit:function(Z){Z&&Z.stopPropagation();var _=this.em,C=this.$el,z=this.clsNoEdit,I=this.clsEdit,p=this.getInputName();p[y]=!0,p.focus(),document.execCommand("selectAll",!1,null),_&&_.setEditing(1),C.find(".".concat(this.inputNameCls)).removeClass(z).addClass(I)},handleEditKey:function(Z){Z.stopPropagation(),((0,N.isEscKey)(Z)||(0,N.isEnterKey)(Z))&&this.handleEditEnd(Z)},handleEditEnd:function(Z){Z&&Z.stopPropagation();var _=this.em,C=this.$el,z=this.clsNoEdit,I=this.clsEdit,p=this.getInputName(),d=p.textContent;p.scrollLeft=0,p[y]=!1,this.setName(d,{component:this.model,propName:"custom-name"}),_&&_.setEditing(0),C.find(".".concat(this.inputNameCls)).addClass(z).removeClass(I)},setName:function(Z,_){var C=_.propName;this.model.set(C,Z)},getInputName:function(){return this.inputName||(this.inputName=this.el.querySelector(".".concat(this.inputNameCls))),this.inputName},updateOpening:function(){var Z=this.opt.opened||{},_=this.model,C="fa-chevron-down";_.get("open")?(this.$el.addClass("open"),this.getCaret().addClass(C),Z[_.cid]=_):(this.$el.removeClass("open"),this.getCaret().removeClass(C),delete Z[_.cid])},toggleOpening:function(Z){var _=this.model;Z.stopImmediatePropagation(),_.get("components").length&&_.set("open",!_.get("open"))},handleSelect:function(Z){Z.stopPropagation();var _=this.em,C=this.config,z=this.model;if(_){_.setSelected(z,{fromLayers:1,event:Z});var I=C.scrollCanvas;I&&z.views.forEach(function(p){return p.scrollIntoView(I)})}},handleHover:function(Z){Z.stopPropagation();var _=this.em,C=this.config,z=this.model;_&&C.showHover&&_.setHovered(z,{fromLayers:1})},handleHoverOut:function(Z){Z.stopPropagation();var _=this.em,C=this.config;_&&C.showHover&&_.setHovered(0,{fromLayers:1})},startSort:function(Z){Z.stopPropagation();var _=this.em,C=this.sorter;Z.button&&Z.button!==0||C&&(C.onStart=function(z){return _.trigger("".concat(w.OA,":start"),z)},C.onMoveClb=function(z){return _.trigger(w.OA,z)},C.startSort(Z.target))},freeze:function(){this.$el.addClass(this.pfx+"opac50"),this.model.set("open",0)},unfreeze:function(){this.$el.removeClass(this.pfx+"opac50")},updateStatus:function(Z){L.Z.prototype.updateStatus.apply(this,[{avoidHover:!this.config.highlightHover,noExtHl:1}])},isVisible:function(){return!k(this.model.getStyle())},checkChildren:function(){var Z=this.model,_=this.clsNoChild,C=this.countChildren(Z),z=this.$el.children(".".concat(this.clsTitleC)).children(".".concat(this.clsTitle)),I=this.cnt;I||(I=this.$el.children("[data-count]").get(0),this.cnt=I),z[C?"removeClass":"addClass"](_),I&&(I.innerHTML=C||""),!C&&Z.set("open",0)},countChildren:function(Z){var _=0;return Z.get("components").each(function(C){var z=this.opt.isCountable,I=this.config.hideTextnode;z&&!z(C,I)||_++},this),_},getCaret:function(){return(!this.caret||!this.caret.length)&&(this.pfx,this.caret=this.$el.children(".".concat(this.clsTitleC)).find(".".concat(this.clsCaret))),this.caret},setRoot:function(Z){Z=(0,Y.isString)(Z)?this.em.getWrapper().find(Z)[0]:Z;var _=(0,N.getModel)(Z,A);_&&(this.stopListening(),this.model=_,this.initialize(this.opt),this._rendered&&this.render())},updateLayerable:function(){(this.parentView||this).render()},__clearItems:function(){var Z=this.items;Z&&Z.remove()},remove:function(){$().View.prototype.remove.apply(this,arguments),this.__clearItems()},render:function(){var Z=this.model,_=this.config,C=this.pfx,z=this.ppfx,I=this.opt;this.__clearItems();var p=I.isCountable,d=p&&!p(Z,_.hideTextnode),f=this.isVisible(),v=this.$el.empty(),D=this.level+1;this.inputName=0,(0,Y.isUndefined)(J)&&(J=b(3557).Z),this.items=new J({ItemView:I.ItemView,collection:Z.get("components"),config:this.config,sorter:this.sorter,opened:this.opt.opened,parentView:this,parent:Z,level:D});var g=this.items.render().$el;return this.config.showWrapper||D!==1?(v.html(this.template(Z)),v.find(".".concat(this.clsChildren)).append(g)):v.append(g),Z.get("draggable")&&this.config.sortable||v.children(".".concat(this.clsMove)).remove(),!f&&(this.className+=" ".concat(C,"hide")),d&&(this.className+=" ".concat(z,"hidden")),v.attr("class",this.className),this.updateOpening(),this.updateStatus(),this.updateVisibility(),this.__render(),this._rendered=1,this},__render:function(){var Z=this.model,_=this.config,C={component:Z,el:this.el};_.onRender.bind(this)(C),this.em.trigger("layer:render",C)}});function G(Z,_){var C=Object.keys(Z);if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(Z);_&&(z=z.filter(function(I){return Object.getOwnPropertyDescriptor(Z,I).enumerable})),C.push.apply(C,z)}return C}function M(Z){for(var _=1;_<arguments.length;_++){var C=arguments[_]!=null?arguments[_]:{};_%2?G(Object(C),!0).forEach(function(z){(0,ye.Z)(Z,z,C[z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Z,Object.getOwnPropertyDescriptors(C)):G(Object(C)).forEach(function(z){Object.defineProperty(Z,z,Object.getOwnPropertyDescriptor(C,z))})}return Z}let H=function(){var Z,_,C={};return{name:"LayerManager",init:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return(C=M(M({},we),z)).stylePrefix=z.pStylePrefix,Z=C.em,this},getConfig:function(){return C},onLoad:function(){Z&&Z.on("component:selected",this.componentChanged),this.componentChanged()},postRender:function(){var z=C.appendTo,I=C.root;I&&this.setRoot(I),z&&((0,Y.isElement)(z)?z:document.querySelector(z)).appendChild(this.render())},setRoot:function(z){return _&&_.setRoot(z),this},getRoot:function(){return _&&_.model},getAll:function(){return _},componentChanged:function(z){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!I.fromLayers){var p=Z.get("opened"),d=Z.getSelected(),f=C.scrollLayers,v=d&&d.collection?d.collection.parent:null;for(var D in p)p[D].set("open",0);for(;v;)v.set("open",1),p[v.cid]=v,v=v.collection?v.collection.parent:null;if(d&&f){var g=d.viewLayer&&d.viewLayer.el;g&&g.scrollIntoView(f)}}},render:function(){var z=B.extend(C.extend);return _&&_.remove(),(_=new z({ItemView:z,level:0,config:C,opened:C.opened||{},model:Z.get("DomComponents").getWrapper()})).render().el},destroy:function(){_&&_.remove(),[Z,_,C].forEach(function(z){return{}})}}}},3557:(Je,Se,b)=>{"use strict";b.d(Se,{Z:()=>J});var ye=b(2316),we=b(9138);let J=ye.View.extend({initialize:function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.items=[],this.opt=Y;var N=Y.config||{};this.level=Y.level,this.config=N,this.preview=Y.preview,this.ppfx=N.pStylePrefix||"",this.pfx=N.stylePrefix||"",this.parent=Y.parent,this.parentView=Y.parentView;var te=this.pfx,$=this.ppfx,L=this.parent,w=this.collection;this.listenTo(w,"add",this.addTo),this.listenTo(w,"reset resetNavigator",this.render),this.listenTo(w,"remove",this.removeChildren),this.className="".concat(te,"layers");var y=N.em;if(N.sortable&&!this.opt.sorter){var P=y.get("Utils");this.opt.sorter=new P.Sorter({container:N.sortContainer||this.el,containerSel:".".concat(this.className),itemSel:".".concat(te,"layer"),ignoreViewChildren:1,onEndMove:function(A,k,B){var G=k.getSourceModel();y.setSelected(G,{forceChange:1}),y.trigger("".concat(we.OA,":end"),B)},avoidSelectOnEnd:1,nested:1,ppfx:$,pfx:te})}this.sorter=this.opt.sorter||"",this.$el.data("collection",w),L&&this.$el.data("model",L)},removeChildren:function(Y){var N=Y.viewLayer;N&&(N.remove(),Y.viewLayer=0)},addTo:function(Y){var N=this.collection.indexOf(Y);this.addToCollection(Y,null,N)},addToCollection:function(Y,N,te){var $=this.level,L=this.parentView,w=this.opt.ItemView,y=N||null,P=new w({ItemView:w,level:$,model:Y,parentView:L,config:this.config,sorter:this.sorter,isCountable:this.isCountable,opened:this.opt.opened}),A=P.render().el;if(y)y.appendChild(A);else if(te!==void 0){var k="before";this.$el.children().length==te&&(te--,k="after"),te<0?this.$el.append(A):this.$el.children().eq(te)[k](A)}else this.$el.append(A);return this.items.push(P),A},remove:function(){ye.View.prototype.remove.apply(this,arguments),this.items.map(function(Y){return Y.remove()})},isCountable:function(Y,N){var te=Y.get("type"),$=Y.get("tagName");return!((te=="textnode"||$=="br")&&N||!Y.get("layerable"))},render:function(){var Y=this,N=document.createDocumentFragment(),te=this.el;return te.innerHTML="",this.collection.each(function($){return Y.addToCollection($,N)}),te.appendChild(N),te.className=this.className,this}})},2567:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>x,evAll:()=>C,evPageAdd:()=>f,evPageAddBefore:()=>v,evPageRemove:()=>D,evPageRemoveBefore:()=>g,evPageSelect:()=>I,evPageSelectBefore:()=>p,evPageUpdate:()=>d,evPfx:()=>z});var ye=b(2982),we=b(4942),J=b(9050),Y=b(6183),N=b(2316),te=b(5671),$=b(3144),L=b(9340),w=b(3930),y=b(1120),P=b(9065);function A(O){var W=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var X,ie=(0,y.Z)(O);if(W){var le=(0,y.Z)(this).constructor;X=Reflect.construct(ie,arguments,le)}else X=ie.apply(this,arguments);return(0,w.Z)(this,X)}}var k=function(O){(0,L.Z)(X,O);var W=A(X);function X(){return(0,te.Z)(this,X),W.apply(this,arguments)}return(0,$.Z)(X,[{key:"defaults",value:function(){return{frames:[],_undo:!0}}},{key:"initialize",value:function(ie){var le=this,ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},F=ce.config,l=F===void 0?{}:F,s=l.em,o={};this.em=s,ie.frames||(o.component=ie.component,o.styles=ie.styles,["component","styles"].map(function(K){return le.unset(K)}));var h=ie.frames||[o],m=new P.Z(h,l);m.page=this,this.set("frames",m);var j=s&&s.get("UndoManager");j&&j.add(m)}},{key:"onRemove",value:function(){this.get("frames").reset()}},{key:"getFrames",value:function(){return this.get("frames")}},{key:"getId",value:function(){return this.id}},{key:"getName",value:function(){return this.get("name")}},{key:"setName",value:function(ie){return this.get({name:ie})}},{key:"getAllFrames",value:function(){return this.getFrames().models||[]}},{key:"getMainFrame",value:function(){return this.getFrames().at(0)}},{key:"getMainComponent",value:function(){var ie=this.getMainFrame();return ie&&ie.getComponent()}},{key:"toJSON",value:function(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},le=N.Model.prototype.toJSON.call(this,ie),ce=(0,J.result)(this,"defaults");return(0,J.forEach)(le,function(F,l){l.indexOf("_")===0&&delete le[l]}),(0,J.forEach)(ce,function(F,l){le[l]===F&&delete le[l]}),le}}]),X}(N.Model);function B(O,W){var X=Object.keys(O);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(O);W&&(ie=ie.filter(function(le){return Object.getOwnPropertyDescriptor(O,le).enumerable})),X.push.apply(X,ie)}return X}function G(O){for(var W=1;W<arguments.length;W++){var X=arguments[W]!=null?arguments[W]:{};W%2?B(Object(X),!0).forEach(function(ie){(0,we.Z)(O,ie,X[ie])}):Object.getOwnPropertyDescriptors?Object.defineProperties(O,Object.getOwnPropertyDescriptors(X)):B(Object(X)).forEach(function(ie){Object.defineProperty(O,ie,Object.getOwnPropertyDescriptor(X,ie))})}return O}function M(O){var W=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var X,ie=(0,y.Z)(O);if(W){var le=(0,y.Z)(this).constructor;X=Reflect.construct(ie,arguments,le)}else X=ie.apply(this,arguments);return(0,w.Z)(this,X)}}var H=function(O){(0,L.Z)(X,O);var W=M(X);function X(){return(0,te.Z)(this,X),W.apply(this,arguments)}return(0,$.Z)(X,[{key:"initialize",value:function(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.config=le,this.on("reset",this.onReset),this.on("remove",this.onRemove)}},{key:"onReset",value:function(ie){var le=this,ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},F=ce.previousModels||[];F.map(function(l){return le.onRemove(l)})}},{key:"onRemove",value:function(ie){ie&&ie.onRemove()}},{key:"add",value:function(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ce=this.config;return N.Collection.prototype.add.call(this,ie,G(G({},le),{},{config:ce}))}}]),X}(N.Collection);function Z(O,W){var X=Object.keys(O);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(O);W&&(ie=ie.filter(function(le){return Object.getOwnPropertyDescriptor(O,le).enumerable})),X.push.apply(X,ie)}return X}function _(O){for(var W=1;W<arguments.length;W++){var X=arguments[W]!=null?arguments[W]:{};W%2?Z(Object(X),!0).forEach(function(ie){(0,we.Z)(O,ie,X[ie])}):Object.getOwnPropertyDescriptors?Object.defineProperties(O,Object.getOwnPropertyDescriptors(X)):Z(Object(X)).forEach(function(ie){Object.defineProperty(O,ie,Object.getOwnPropertyDescriptor(X,ie))})}return O}H.prototype.model=k;var C="page",z="".concat(C,":"),I="".concat(z,"select"),p="".concat(I,":before"),d="".concat(z,"update"),f="".concat(z,"add"),v="".concat(f,":before"),D="".concat(z,"remove"),g="".concat(D,":before"),T="change:selected",u="main";let x=function(){return{name:"PageManager",storageKey:"pages",Page:k,Pages:H,events:{all:C,select:I,selectBefore:p,update:d,add:f,addBefore:v,remove:D,removeBefore:g},init:function(){var O=this,W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(0,J.bindAll)(this,"_onPageChange");var X=W.em,ie=_({},W);this.config=ie,this.em=X;var le=new H([],ie);this.pages=le;var ce=new N.Model({_undo:!0});return this.model=ce,le.on("add",function(F,l,s){return X.trigger(f,F,s)}),le.on("remove",function(F,l,s){return X.trigger(D,F,s)}),le.on("change",function(F,l){X.trigger(d,F,F.changedAttributes(),l)}),le.on("reset",function(F){return F.at(0)&&O.select(F.at(0))}),le.on("all",this.__onChange,this),ce.on(T,this._onPageChange),this},__onChange:function(O,W,X,ie){var le=ie||X;this.em.trigger(C,{event:O,page:W,options:le})},onLoad:function(){var O=this.pages,W={silent:!0};O.add(this.config.pages||[],W);var X=O.length?this.getMain():this.add({type:u},W);this.select(X,W)},_onPageChange:function(O,W,X){var ie=this.em,le=ie.get("LayerManager"),ce=W.getMainComponent();le&&ce&&le.setRoot(ce),ie.trigger(I,W,O.previous("selected")),this.__onChange(T,W,X)},postLoad:function(){var O=this.em,W=this.model,X=O.get("UndoManager");X&&X.add(W),X&&X.add(this.pages)},add:function(O){var W=this,X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie=this.em;O.id=O.id||this._createId();var le=function(){var ce=W.pages.add(O,X);return X.select&&W.select(ce),ce};return!X.silent&&ie.trigger(v,O,le,X),!X.abort&&le()},remove:function(O){var W=this,X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie=this.em,le=(0,J.isString)(O)?this.get(O):O,ce=function(){return le&&W.pages.remove(le,X),le};return!X.silent&&ie.trigger(g,le,ce,X),!X.abort&&ce()},get:function(O){return this.pages.filter(function(W){return W.get("id")===O})[0]},getMain:function(){var O=this.pages;return O.filter(function(W){return W.get("type")===u})[0]||O.at(0)},getAll:function(){return(0,ye.Z)(this.pages.models)},getAllWrappers:function(){var O=this.getAll();return(0,J.unique)((0,J.flatten)(O.map(function(W){return W.getAllFrames().map(function(X){return X.getComponent()})})))},getAllMap:function(){return this.getAll().reduce(function(O,W){return O[W.get("id")]=W,O},{})},select:function(O){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=(0,J.isString)(O)?this.get(O):O;return X&&(this.em.trigger(p,X,W),this.model.set("selected",X,W)),this},getSelected:function(){return this.model.get("selected")},destroy:function(){var O=this;this.pages.off().reset(),this.model.stopListening(),this.model.clear({silent:!0}),["selected","config","em","pages","model"].map(function(W){return O[W]=0})},store:function(O){if(!this.em.get("hasPages"))return{};var W={},X=this.config;return W[this.storageKey]=JSON.stringify(this.getAll()),!O&&X.stm&&X.stm.store(W),W},load:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},W=this.storageKey,X=O[W]||[];if(typeof X=="string")try{X=JSON.parse(O[W])}catch{}return X&&X.length&&this.pages.reset(X),X},_createId:function(){var O,W=this.getAll().length+16,X=this.getAllMap();do O=(0,Y.createId)(W);while(X[O]);return O}}}},4906:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>d});var ye="sw-visibility",we="export-template",J="open-sm",Y="open-tm",N="open-layers",te="open-blocks",$="fullscreen",L="preview";let w={stylePrefix:"pn-",defaults:[{id:"commands",buttons:[{}]},{id:"options",buttons:[{active:!0,id:ye,className:"fa fa-square-o",command:ye,context:ye,attributes:{title:"View components"}},{id:L,className:"fa fa-eye",command:L,context:L,attributes:{title:"Preview"}},{id:$,className:"fa fa-arrows-alt",command:$,context:$,attributes:{title:"Fullscreen"}},{id:we,className:"fa fa-code",command:we,attributes:{title:"View code"}}]},{id:"views",buttons:[{id:J,className:"fa fa-paint-brush",command:J,active:!0,togglable:0,attributes:{title:"Open Style Manager"}},{id:Y,className:"fa fa-cog",command:Y,togglable:0,attributes:{title:"Settings"}},{id:N,className:"fa fa-bars",command:N,togglable:0,attributes:{title:"Open Layer Manager"}},{id:te,className:"fa fa-th-large",command:te,togglable:0,attributes:{title:"Open Blocks"}}]}],em:null,delayBtnsShow:300};var y=b(2316),P=b.n(y),A=b(2516);let k=P().Model.extend({defaults:{id:"",content:"",visible:!0,buttons:[],attributes:{}},initialize:function(f){this.btn=this.get("buttons")||[],this.buttons=new A.Z(this.btn),this.set("buttons",this.buttons)}}),B=P().Collection.extend({model:k});var G=b(4942),M=b(9050);function H(f,v){var D=Object.keys(f);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(f);v&&(g=g.filter(function(T){return Object.getOwnPropertyDescriptor(f,T).enumerable})),D.push.apply(D,g)}return D}function Z(f){for(var v=1;v<arguments.length;v++){var D=arguments[v]!=null?arguments[v]:{};v%2?H(Object(D),!0).forEach(function(g){(0,G.Z)(f,g,D[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(D)):H(Object(D)).forEach(function(g){Object.defineProperty(f,g,Object.getOwnPropertyDescriptor(D,g))})}return f}P().$;let _=P().View.extend({tagName:function(){return this.model.get("tagName")},events:{click:"clicked"},initialize:function(f){var v=this.model,D=v.get("className"),g=v.attributes,T=g.command,u=g.listen,x=f.config||{},O=x.em;this.config=x,this.em=O;var W=this.config.stylePrefix||"",X=this.config.pStylePrefix||"";if(this.pfx=W,this.ppfx=this.config.pStylePrefix||"",this.id=W+v.get("id"),this.activeCls="".concat(W,"active ").concat(X,"four-color"),this.disableCls="".concat(X,"disabled"),this.btnsVisCls="".concat(W,"visible"),this.className=W+"btn"+(D?" "+D:""),this.listenTo(v,"change",this.render),this.listenTo(v,"change:active updateActive",this.updateActive),this.listenTo(v,"checkActive",this.checkActive),this.listenTo(v,"change:bntsVis",this.updateBtnsVis),this.listenTo(v,"change:attributes",this.updateAttributes),this.listenTo(v,"change:className",this.updateClassName),this.listenTo(v,"change:disable",this.updateDisable),O&&(0,M.isString)(T)&&u){var ie={fromListen:1};this.listenTo(O,"run:".concat(T),function(){return v.set("active",!0,ie)}),this.listenTo(O,"stop:".concat(T),function(){return v.set("active",!1,ie)})}O&&O.get&&(this.commands=O.get("Commands"))},updateClassName:function(){var f=this.model,v=this.pfx,D=f.get("className"),g=f.get("attributes").class,T="".concat(g||""," ").concat(v,"btn ").concat(D||"");this.$el.attr("class",T.trim())},updateAttributes:function(){var f=this.em,v=this.model,D=this.$el,g=v.get("attributes")||{},T=f&&f.t&&f.t("panels.buttons.titles.".concat(v.id));D.attr(g),T&&D.attr({title:T}),this.updateClassName()},updateBtnsVis:function(){this.$buttons&&(this.model.get("bntsVis")?this.$buttons.addClass(this.btnsVisCls):this.$buttons.removeClass(this.btnsVisCls))},updateActive:function(f,v){var D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},g=this.model,T=this.commands,u=this.$el,x=this.activeCls,O=D.fromCollection,W=D.fromListen,X=g.get("context"),ie=g.get("options"),le=g.get("command"),ce={};le&&(T&&(0,M.isString)(le)?ce=T.get(le)||{}:(0,M.isFunction)(le)?ce=T.create({run:le}):le!==null&&(0,M.isObject)(le)&&(ce=T.create(le)),g.get("active")?(!O&&g.collection.deactivateAll(X,g),g.set("active",!0,{silent:!0}).trigger("checkActive"),!W&&T.runCommand(ce,Z(Z({},ie),{},{sender:g})),ce.noStop&&g.set("active",!1)):(u.removeClass(x),!W&&T.stopCommand(ce,Z(Z({},ie),{},{sender:g,force:1}))))},updateDisable:function(){var f=this.disableCls,v=this.model.get("disable");this.$el[v?"addClass":"removeClass"](f)},checkActive:function(){var f=this.model,v=this.$el,D=this.activeCls;f.get("active")?v.addClass(D):v.removeClass(D)},clicked:function(f){var v=this.model;v.get("bntsVis")||v.get("disable")||!v.get("command")||this.toggleActive()},toggleActive:function(){var f=this.model,v=this.em,D=f.attributes,g=D.active,T=D.togglable;g&&!T||(f.set("active",!g),g?f.get("runDefaultCommand")&&v.runDefault():f.get("stopDefaultCommand")&&v.stopDefault())},render:function(){var f=this.model,v=f.get("label"),D=this.$el;return!f.get("el")&&D.empty(),this.updateAttributes(),v&&D.append(v),this.checkActive(),this.updateDisable(),this}}),C=P().View.extend({initialize:function(f){this.opt=f||{},this.config=this.opt.config||{},this.pfx=this.config.stylePrefix||"",this.parentM=this.opt.parentM||null,this.listenTo(this.collection,"add",this.addTo),this.listenTo(this.collection,"reset remove",this.render),this.className=this.pfx+"buttons"},addTo:function(f){this.addToCollection(f)},addToCollection:function(f,v){var D=v||null,g=new _({el:f.get("el"),model:f,config:this.config,parentM:this.parentM}).render().el;return D?D.appendChild(g):this.$el.append(g),g},render:function(){var f=document.createDocumentFragment();return this.$el.empty(),this.collection.each(function(v){this.addToCollection(v,f)},this),this.$el.append(f),this.$el.attr("class",(0,M.result)(this,"className")),this}});function z(f,v){var D=Object.keys(f);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(f);v&&(g=g.filter(function(T){return Object.getOwnPropertyDescriptor(f,T).enumerable})),D.push.apply(D,g)}return D}let I=P().View.extend({initialize:function(f){var v=f.config||{},D=this.model;this.config=v,this.pfx=v.stylePrefix||"",this.ppfx=v.pStylePrefix||"",this.buttons=D.get("buttons"),this.className=this.pfx+"panel",this.id=this.pfx+D.get("id"),this.listenTo(D,"change:appendContent",this.appendContent),this.listenTo(D,"change:content",this.updateContent),this.listenTo(D,"change:visible",this.toggleVisible),D.view=this},appendContent:function(){this.$el.append(this.model.get("appendContent"))},updateContent:function(){this.$el.html(this.model.get("content"))},toggleVisible:function(){this.model.get("visible")?this.$el.removeClass("".concat(this.ppfx,"hidden")):this.$el.addClass("".concat(this.ppfx,"hidden"))},attributes:function(){return this.model.get("attributes")},initResize:function(){var f=this.config.em,v=f?f.get("Editor"):"",D=this.model.get("resizable");if(v&&D){var g,T,u,x=D===!0?[1,1,1,1]:D,O=x.length,W=0;O==2?(g=x[0],u=x[0],T=x[1],W=x[1]):O==4&&(g=x[0],T=x[1],u=x[2],W=x[3]);var X=v.Utils.Resizer.init(function(ie){for(var le=1;le<arguments.length;le++){var ce=arguments[le]!=null?arguments[le]:{};le%2?z(Object(ce),!0).forEach(function(F){(0,G.Z)(ie,F,ce[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ie,Object.getOwnPropertyDescriptors(ce)):z(Object(ce)).forEach(function(F){Object.defineProperty(ie,F,Object.getOwnPropertyDescriptor(ce,F))})}return ie}({tc:g,cr:T,bc:u,cl:W,tl:0,tr:0,bl:0,br:0,appendTo:this.el,silentFrames:1,avoidContainerUpdate:1,prefix:v.getConfig().stylePrefix,onEnd:function(){f&&f.trigger("change:canvasOffset")},posFetcher:function(ie,le){var ce=le.target,F=ie.style,l=X.getConfig(),s=l.keyWidth,o=l.keyHeight,h=ie.getBoundingClientRect(),m=ce=="container",j=F[s],K=F[o];return{left:0,top:0,width:j&&!m?parseFloat(j):h.width,height:K&&!m?parseFloat(K):h.height}}},D));X.blur=function(){},X.focus(this.el)}},render:function(){var f=this.$el,v=this.ppfx,D="".concat(this.className," ").concat(this.id," ").concat(v,"one-bg ").concat(v,"two-color");if(f.addClass(D),this.toggleVisible(),this.buttons.length){var g=new C({collection:this.buttons,config:this.config});f.append(g.render().el)}return f.append(this.model.get("content")),this}}),p=P().View.extend({initialize:function(f){this.opt=f||{},this.config=this.opt.config||{},this.pfx=this.config.stylePrefix||"";var v=this.collection;this.listenTo(v,"add",this.addTo),this.listenTo(v,"reset",this.render),this.listenTo(v,"remove",this.onRemove),this.className=this.pfx+"panels"},onRemove:function(f){var v=f.view;v&&v.remove()},addTo:function(f){this.addToCollection(f)},addToCollection:function(f,v){var D=v||null,g=this.config,T=f.get("el"),u=new I({el:T,model:f,config:g}),x=u.render().el,O=f.get("appendTo");return T||(O?document.querySelector(O).appendChild(x):D?D.appendChild(x):this.$el.append(x)),u.initResize(),x},render:function(){var f=this,v=this.$el,D=document.createDocumentFragment();return v.empty(),this.collection.each(function(g){return f.addToCollection(g,D)}),v.append(D),v.attr("class",this.className),this}}),d=function(){var f,v,D={};return{name:"Panels",init:function(g){for(var T in D=g||{},w)T in D||(D[T]=w[T]);var u=D.pStylePrefix;return u&&(D.stylePrefix=u+D.stylePrefix),f=new B(D.defaults),this},getPanels:function(){return f},getPanelsEl:function(){return v&&v.el},addPanel:function(g){return f.add(g)},removePanel:function(g){return f.remove(g)},getPanel:function(g){var T=f.where({id:g});return T.length?T[0]:null},addButton:function(g,T){var u=this.getPanel(g);return u?u.get("buttons").add(T):null},removeButton:function(g,T){var u=this.getPanel(g);return u&&u.get("buttons").remove(T)},getButton:function(g,T){var u=this.getPanel(g);if(u){var x=u.get("buttons").where({id:T});return x.length?x[0]:null}return null},render:function(){return v&&v.remove(),(v=new p({collection:f,config:D})).render().el},active:function(){this.getPanels().each(function(g){g.get("buttons").each(function(T){T.get("active")&&T.trigger("updateActive")})})},disableButtons:function(){this.getPanels().each(function(g){g.get("buttons").each(function(T){T.get("disable")&&T.trigger("change:disable")})})},destroy:function(){f.reset(),f.stopListening(),v&&v.remove(),[D,f,v].forEach(function(g){return{}})},Panel:k}}},2516:(Je,Se,b)=>{"use strict";b.d(Se,{Z:()=>Y});var ye=b(2316),we=b.n(ye);let J=we().Model.extend({defaults:{id:"",label:"",tagName:"span",className:"",command:"",context:"",buttons:[],attributes:{},options:{},active:!1,dragDrop:!1,togglable:!0,runDefaultCommand:!0,stopDefaultCommand:!1,disable:!1},initialize:function(N){if(this.get("buttons").length){var te=b(2516).Z;this.set("buttons",new te(this.get("buttons")))}}}),Y=we().Collection.extend({model:J,deactivateAllExceptOne:function(N,te){this.forEach(function($,L){$!==N&&($.set("active",!1),te&&$.get("buttons").length&&$.get("buttons").deactivateAllExceptOne(N,te))})},deactivateAll:function(N,te){var $=N||"";this.forEach(function(L){L.get("context")==$&&L!==te&&L.set("active",!1,{fromCollection:1})})},disableAllButtons:function(N){var te=N||"";this.forEach(function($,L){$.get("context")==te&&$.set("disable",!0)})},disableAllButtonsExceptOne:function(N,te){this.forEach(function($,L){$!==N&&($.set("disable",!0),te&&$.get("buttons").length&&$.get("buttons").disableAllButtonsExceptOne(N,te))})}})},4424:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>Z});var ye=b(4942);let we={textTags:["br","b","i","u","a","ul","ol"],parserCss:null,parserHtml:null,optionsHtml:{htmlType:null,allowScripts:!1,allowUnsafeAttr:!1}};var J=b(9050),Y={4:"media",5:"font-face",6:"page",7:"keyframes",11:"counter-style",12:"supports",13:"document",14:"font-feature-values",15:"viewport"},N=(0,J.keys)(Y),te=["5","6","11","15"],$=["font-face","page","counter-style","viewport"],L=function(){for(var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",C=[],z=[],I=_.split(","),p=0,d=I.length;p<d;p++){var f=I[p].trim();if(/^(\.{1}[\w\-]+)+(:{1,2}[\w\-()]+)?$/gi.test(f)||/^(#{1}[\w\-]+){1}(:{1,2}[\w\-()]+)?$/gi.test(f)){var v=f.split(".").filter(Boolean);z.push(v)}else C.push(f)}return{result:z,add:C}},w=function(_){for(var C=_.style,z={},I=0,p=C.length;I<p;I++){var d=C[I],f=C.getPropertyValue(d),v=C.getPropertyPriority(d);z[d]="".concat(f).concat(v?" !".concat(v):"")}return z},y=function(_){return(_.conditionText||_.media&&_.media.mediaText||_.name||_.selectorText||"").trim()},P=function(_){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},I={},p=_.length,d=_[p-1],f=d?d.split(/:(.+)/):[],v=f[1],D=z.atRule,g=z.selectorsAdd,T=z.mediaText,u=$.indexOf(D)>=0;return u&&(I.singleAtRule=1),D&&(I.atRuleType=D),g&&(I.selectorsAdd=g),T&&(I.mediaText=T),v&&(_[p-1]=f[0],I.state=v,f.splice(f.length-1,1)),I.selectors=_,I.style=C,I},A=function _(C){for(var z=[],I=C.cssRules||[],p=0,d=I.length;p<d;p++){var f=I[p],v=f.type.toString(),D=0,g="",T="",u=f.selectorText||f.keyText,x=te.indexOf(v)>=0;if(x)D=1,g=Y[v],T=y(f);else if(N.indexOf(v)>=0){var O=_(f);T=y(f);for(var W=0,X=O.length;W<X;W++){var ie=O[W];T&&(ie.mediaText=T),ie.atRuleType=Y[v]}z=z.concat(O)}if(u||x){for(var le=w(f),ce=L(u),F=ce.add,l=void 0,s=0,o=(u=ce.result).length;s<o;s++){var h=P(u[s],le,{atRule:Y[v]});z.push(h),l=h}if(F.length){var m=F.join(", ");if(l)l.selectorsAdd=m;else{var j={selectors:[],selectorsAdd:m,style:le};D&&(j.singleAtRule=D),g&&(j.atRuleType=g),T&&(j.mediaText=T),z.push(j)}}}}return z};let k=function(_){var C=document.createElement("style");C.innerHTML=_,document.head.appendChild(C);var z=C.sheet;return document.head.removeChild(C),A(z)},B=function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return{parse:function(C){var z=this,I=[],p=_.parserCss,d=_.em,f=d&&d.get&&d.get("Editor");return(p?p(C,f):k(C)).forEach(function(v){return I=I.concat(z.checkNode(v))}),d&&d.trigger("parse:css",{input:C,output:I}),I},checkNode:function(C){var z=C,I=z.selectors,p=z.style;if((0,J.isString)(I)){var d=[],f=L(I),v=f.result,D=f.add.join(", "),g={atRule:C.atRule,mediaText:C.params};v.length?v.forEach(function(T){d.push(P(T,p,g))}):d.push(P([],p,g)),D&&(d[d.length-1].selectorsAdd=D),C=d}return C}}};var G=b(5311);function M(_,C){var z=Object.keys(_);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(_);C&&(I=I.filter(function(p){return Object.getOwnPropertyDescriptor(_,p).enumerable})),z.push.apply(z,I)}return z}function H(_){for(var C=1;C<arguments.length;C++){var z=arguments[C]!=null?arguments[C]:{};C%2?M(Object(z),!0).forEach(function(I){(0,ye.Z)(_,I,z[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(z)):M(Object(z)).forEach(function(I){Object.defineProperty(_,I,Object.getOwnPropertyDescriptor(z,I))})}return _}let Z=function(){var _,C,z={};return{compTypes:"",parserCss:null,parserHtml:null,name:"Parser",init:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return(z=H(H({},we),I)).Parser=this,_=new G.Z(z),C=new B(z),this.em=z.em,this.parserCss=C,this.parserHtml=_,this},getConfig:function(){return z},parseHtml:function(I){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=this.em,f=this.compTypes;return _.compTypes=d?d.get("DomComponents").getTypes():f,_.parse(I,C,p)},parseCss:function(I){return C.parse(I)},destroy:function(){var I=this;[z,_,C].forEach(function(p){return{}}),["em","parserCss","parserHtml"].forEach(function(p){return I[p]={}})}}}},5311:(Je,Se,b)=>{"use strict";b.d(Se,{Z:()=>w});var ye=b(4942),we=b(1002),J=b(9050),Y="text/html",N=Y;let te=function(y){var P,A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},k=new DOMParser,B=A.htmlType||N,G=B===Y,M=G?y:"<div>".concat(y,"</div>"),H=k.parseFromString(M,B);if(G){var Z=H.head,_=H.body,C=Z.querySelectorAll("script");(0,J.each)(C,function(I){return _.appendChild(I)});var z=[];(0,J.each)(Z.children,function(I){return z.push(I)}),(0,J.each)(z,function(I,p){return _.insertBefore(I,_.children[p])}),P=_}else P=H.firstChild;return P};function $(y,P){var A=Object.keys(y);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(y);P&&(k=k.filter(function(B){return Object.getOwnPropertyDescriptor(y,B).enumerable})),A.push.apply(A,k)}return A}function L(y){for(var P=1;P<arguments.length;P++){var A=arguments[P]!=null?arguments[P]:{};P%2?$(Object(A),!0).forEach(function(k){(0,ye.Z)(y,k,A[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(y,Object.getOwnPropertyDescriptors(A)):$(Object(A)).forEach(function(k){Object.defineProperty(y,k,Object.getOwnPropertyDescriptor(A,k))})}return y}let w=function(y){var P=y,A="data-gjs-",k="parse:html";return{compTypes:"",modelAttrStart:A,splitPropsFromAttr:function(){var B=this,G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M={},H={};return(0,J.each)(G,function(Z,_){if(_.indexOf(B.modelAttrStart)===0){var C=_.replace(A,""),z=Z.length,I=Z&&(0,J.isString)(Z),p=I&&Z.substr(0,1),d=I&&Z.substr(z-1);Z=(Z=Z==="true"||Z)!=="false"&&Z;try{Z=p=="{"&&d=="}"||p=="["&&d=="]"?JSON.parse(Z):Z}catch{}M[C]=Z}else H[_]=Z}),{props:M,attrs:H}},parseStyle:function(B){for(var G={},M=B.split(";"),H=0,Z=M.length;H<Z;H++){var _=M[H].trim();if(_){var C=_.split(":");G[C[0].trim()]=C.slice(1).join(":").trim()}}return G},parseClass:function(B){for(var G=[],M=B.split(" "),H=0,Z=M.length;H<Z;H++){var _=M[H].trim();_&&G.push(_)}return G},parseNode:function(B){for(var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},M=[],H=B.childNodes,Z=0,_=H.length;Z<_;Z++){var C=H[Z],z=C.attributes||[],I=z.length,p=M[M.length-1],d=C.childNodes.length,f=this.compTypes,v={};if(f){var D="",g=C.getAttribute&&C.getAttribute("".concat(A,"type"));if(g)v={type:g};else{for(var T=0;T<f.length;T++){var u=f[T];if(D=u.model.isComponent(C,G)){(0,we.Z)(D)!=="object"&&(D={type:u.id});break}}v=D}}if(!v.tagName){var x=C.tagName||"",O=C.namespaceURI||"";v.tagName=x&&O==="http://www.w3.org/1999/xhtml"?x.toLowerCase():x}I&&(v.attributes={});for(var W=0;W<I;W++){var X=z[W].nodeName,ie=z[W].nodeValue;if(X=="style")v.style=this.parseStyle(ie);else if(X=="class")v.classes=this.parseClass(ie);else{if(X=="contenteditable")continue;if(X.indexOf(A)===0){var le=X.replace(A,""),ce=ie.length,F=ie&&ie.substr(0,1),l=ie&&ie.substr(ce-1);ie=(ie=ie==="true"||ie)!=="false"&&ie;try{ie=F=="{"&&l=="}"||F=="["&&l=="]"?JSON.parse(ie):ie}catch{}v[le]=ie}else ie===""&&C[X]===!0&&(ie=!0),v.attributes[X]=ie}}if(d&&!v.components){var s=C.childNodes[0];d===1&&s.nodeType===3?(!v.type&&(v.type="text"),v.components={type:"textnode",content:s.nodeValue}):v.components=this.parseNode(C,L(L({},G),{},{inSvg:G.inSvg||v.type==="svg"}))}if(v.type=="textnode"){if(p&&p.type=="textnode"){p.content+=v.content;continue}if(!y.keepEmptyTextNodes){var o=C.nodeValue;if(o!=" "&&!o.trim())continue}}d||"".concat(C.outerHTML).slice(-2)!=="/>"||(v.void=!0);var h=v.components;if(!v.type&&h){for(var m=1,j=0,K=0;K<h.length;K++){var ve=h[K],E=ve.type;if(["text","textnode"].indexOf(E)<0&&P.textTags.indexOf(ve.tagName)<0){m=0;break}E=="textnode"&&(j=1)}m&&j&&(v.type="text")}(v.tagName||v.type=="textnode")&&M.push(v)}return M},parse:function(B,G){var M,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Z=P.em,_=Z&&Z.get("Config")||{},C={html:null,css:null},z=L(L({},y),H),I=L(L({},y.optionsHtml),{},{htmlType:((M=y.optionsHtml)===null||M===void 0?void 0:M.htmlType)||y.htmlType},H),p=(0,J.isFunction)(z.parserHtml)?z.parserHtml(B,I):te(B,I),d=p.querySelectorAll("script"),f=d.length,v=(0,J.isUndefined)(_.allowScripts)?I.allowScripts:_.allowScripts;if(!v)for(;f--;)d[f].parentNode.removeChild(d[f]);if(I.allowUnsafeAttr||this.__clearUnsafeAttr(p),G){for(var D=p.querySelectorAll("style"),g=D.length,T="";g--;)T=D[g].innerHTML+T,D[g].parentNode.removeChild(D[g]);T&&(C.css=G.parse(T))}Z&&Z.trigger("".concat(k,":root"),{input:B,root:p});var u=this.parseNode(p,z),x=u.length!==1||P.returnArray?u:u[0];return C.html=x,Z&&Z.trigger(k,{input:B,output:C}),C},__clearUnsafeAttr:function(B){var G=this,M=B.attributes||[],H=B.childNodes||[],Z=[];(0,J.each)(M,function(_){var C=_.nodeName||"";C.indexOf("on")===0&&Z.push(C)}),Z.map(function(_){return B.removeAttribute(_)}),(0,J.each)(H,function(_){return G.__clearUnsafeAttr(_)})}}}},2012:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>p});var ye=b(5861),we=b(2982),J=b(4942),Y=b(7757),N=b.n(Y),te=b(5671),$=b(3144),L=b(9050),w=b(6183);function y(d,f){var v=Object.keys(d);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(d);f&&(D=D.filter(function(g){return Object.getOwnPropertyDescriptor(d,g).enumerable})),v.push.apply(v,D)}return v}function P(d){for(var f=1;f<arguments.length;f++){var v=arguments[f]!=null?arguments[f]:{};f%2?y(Object(v),!0).forEach(function(D){(0,J.Z)(d,D,v[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(v)):y(Object(v)).forEach(function(D){Object.defineProperty(d,D,Object.getOwnPropertyDescriptor(v,D))})}return d}var A=1,k=0,B=-1,G=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"A",v=d.selection(),D=v.anchorNode,g=v.focusNode,T=D?.parentNode,u=g?.parentNode;return T?.nodeName==f||u?.nodeName==f},M="data-selectme",H={bold:{name:"bold",icon:"<b>B</b>",attributes:{title:"Bold"},result:function(d){return d.exec("bold")}},italic:{name:"italic",icon:"<i>I</i>",attributes:{title:"Italic"},result:function(d){return d.exec("italic")}},underline:{name:"underline",icon:"<u>U</u>",attributes:{title:"Underline"},result:function(d){return d.exec("underline")}},strikethrough:{name:"strikethrough",icon:"<s>S</s>",attributes:{title:"Strike-through"},result:function(d){return d.exec("strikeThrough")}},link:{icon:`<svg viewBox="0 0 24 24"> + <path fill="currentColor" d="M3.9,12C3.9,10.29 5.29,8.9 7,8.9H11V7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H11V15.1H7C5.29,15.1 3.9,13.71 3.9,12M8,13H16V11H8V13M17,7H13V8.9H17C18.71,8.9 20.1,10.29 20.1,12C20.1,13.71 18.71,15.1 17,15.1H13V17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7Z" /> + </svg>`,name:"link",attributes:{style:"font-size:1.4rem;padding:0 4px 2px;",title:"Link"},state:function(d){return d&&d.selection()&&G(d)?A:k},result:function(d){G(d)?d.exec("unlink"):d.insertHTML('<a href="" '.concat(M,">").concat(d.selection(),"</a>"),{select:!0})}},wrap:{icon:`<svg viewBox="0 0 24 24"> + <path fill="currentColor" d="M20.71,4.63L19.37,3.29C19,2.9 18.35,2.9 17.96,3.29L9,12.25L11.75,15L20.71,6.04C21.1,5.65 21.1,5 20.71,4.63M7,14A3,3 0 0,0 4,17C4,18.31 2.84,19 2,19C2.92,20.22 4.5,21 6,21A4,4 0 0,0 10,17A3,3 0 0,0 7,14Z" /> + </svg>`,attributes:{title:"Wrap for style"},state:function(d){return d!=null&&d.selection()&&G(d,"SPAN")?B:k},result:function(d){!G(d,"SPAN")&&d.insertHTML("<span ".concat(M,">").concat(d.selection(),"</span>"),{select:!0})}}},Z=function(){function d(){var f=this,v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(0,te.Z)(this,d);var D=v.el,g=v.em;if(this.em=g,D._rte)return D._rte;D._rte=this,this.setEl(D),this.updateActiveActions=this.updateActiveActions.bind(this),this.__onKeydown=this.__onKeydown.bind(this),this.__onPaste=this.__onPaste.bind(this);var T=(v.actions||[]).map(function(X){var ie=X;return typeof X=="string"?ie=P({},H[X]):H[X.name]&&(ie=P(P({},H[X.name]),X)),ie}),u=T.length?T:Object.keys(H).map(function(X){return H[X]});v.classes=P(P({},{actionbar:"actionbar",button:"action",active:"active",disabled:"disabled",inactive:"inactive"}),v.classes);var x=v.classes,O=v.actionbar;if(this.actionbar=O,this.settings=v,this.classes=x,this.actions=u,!O){var W=v.actionbarContainer;(O=document.createElement("div")).className=x.actionbar,W.appendChild(O),this.actionbar=O,u.forEach(function(X){return f.addAction(X)})}return v.styleWithCSS&&this.exec("styleWithCSS"),this}return(0,$.Z)(d,[{key:"destroy",value:function(){this.el=0,this.doc=0,this.actionbar=0,this.settings={},this.classes={},this.actions=[]}},{key:"setEl",value:function(f){this.el=f,this.doc=f.ownerDocument}},{key:"updateActiveActions",value:function(){var f=this;this.getActions().forEach(function(v){var D=v.btn,g=v.update,T=P({},f.classes),u=T.active,x=T.inactive,O=T.disabled,W=v.state,X=v.name,ie=f.doc;if(D.className=D.className.replace(u,"").trim(),D.className=D.className.replace(x,"").trim(),D.className=D.className.replace(O,"").trim(),W)switch(W(f,ie)){case A:D.className+=" ".concat(u);break;case k:D.className+=" ".concat(x);break;case B:D.className+=" ".concat(O)}else ie.queryCommandSupported(X)&&ie.queryCommandState(X)&&(D.className+=" ".concat(u));g&&g(f,v)})}},{key:"enable",value:function(f){return this.enabled?this:this.__toggleEffects(!0,f)}},{key:"disable",value:function(){return this.__toggleEffects(!1)}},{key:"__toggleEffects",value:function(){var f=arguments.length>0&&arguments[0]!==void 0&&arguments[0],v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},D=f?w.on:w.off,g=this.el,T=this.doc;if(this.actionbarEl().style.display=f?"":"none",g.contentEditable=!!f,D(g,"mouseup keyup",this.updateActiveActions),D(T,"keydown",this.__onKeydown),D(T,"paste",this.__onPaste),this.enabled=f,f){var u=v.event;if(this.syncActions(),this.updateActiveActions(),u){var x=null;if(T.caretRangeFromPoint){var O=(0,w.getPointerEvent)(u);x=T.caretRangeFromPoint(O.clientX,O.clientY)}else u.rangeParent&&(x=T.createRange()).setStart(u.rangeParent,u.rangeOffset);var W=T.getSelection();W.removeAllRanges(),x&&W.addRange(x)}g.focus()}return this}},{key:"__onKeydown",value:function(f){f.key==="Enter"&&(this.doc.execCommand("insertLineBreak"),f.preventDefault())}},{key:"__onPaste",value:function(f){var v=f.clipboardData||window.clipboardData,D=v.getData("text"),g=v.getData("text/html");if(D&&!g){f.preventDefault();var T=D.replace(/(?:\r\n|\r|\n)/g,"<br/>");this.doc.execCommand("insertHTML",!1,T)}}},{key:"syncActions",value:function(){var f=this;this.getActions().forEach(function(v){if(f.actionbar&&(!v.state||v.state&&v.state(f,f.doc)>=0)){var D=v.event||"click";v.btn["on".concat(D)]=function(g){v.result(f,v),f.updateActiveActions()}}})}},{key:"addAction",value:function(f){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},D=v.sync,g=document.createElement("span"),T=f.icon,u=f.attributes||{};for(var x in g.className=this.classes.button,f.btn=g,u)g.setAttribute(x,u[x]);typeof T=="string"?g.innerHTML=T:g.appendChild(T),this.actionbarEl().appendChild(g),D&&(this.actions.push(f),this.syncActions())}},{key:"getActions",value:function(){return this.actions}},{key:"selection",value:function(){return this.doc.getSelection()}},{key:"exec",value:function(f){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.doc.execCommand(f,!1,v)}},{key:"actionbarEl",value:function(){return this.actionbar}},{key:"insertHTML",value:function(f){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},D=v.select,g=this.em,T=this.doc,u=this.el,x=T.getSelection();if(x&&x.rangeCount){var O=(0,w.getModel)(u),W=T.createElement("div"),X=x.getRangeAt(0);X.deleteContents(),(0,L.isString)(f)?W.innerHTML=f:f&&W.appendChild(f),Array.prototype.slice.call(W.childNodes).forEach(function(ie){X.insertNode(ie)}),x.removeAllRanges(),x.addRange(X),u.focus(),D&&O&&(O.once("rte:disable",function(){var ie=O.find("[".concat(M,"]"))[0];ie&&(g.setSelected(ie),ie.removeAttributes(M))}),O.trigger("disable"))}}}]),d}();let _={stylePrefix:"rte-",adjustToolbar:1,actions:["bold","italic","underline","strikethrough","link","wrap"]};function C(d,f){var v=Object.keys(d);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(d);f&&(D=D.filter(function(g){return Object.getOwnPropertyDescriptor(d,g).enumerable})),v.push.apply(v,D)}return v}function z(d){for(var f=1;f<arguments.length;f++){var v=arguments[f]!=null?arguments[f]:{};f%2?C(Object(v),!0).forEach(function(D){(0,J.Z)(d,D,v[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(v)):C(Object(v)).forEach(function(D){Object.defineProperty(d,D,Object.getOwnPropertyDescriptor(v,D))})}return d}var I="change:canvasOffset frame:scroll component:update";let p=function(){var d,f=function(){var v=d.style,D="-1000px";v.top=D,v.left=D,v.display="none"};return{customRte:null,name:"RichTextEditor",getConfig:function(){return this.config},init:function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=z(z({},_),v),g=D.pStylePrefix;return g&&(D.stylePrefix=g+D.stylePrefix),this.config=D,this.pfx=D.stylePrefix,this.em=D.em,this.actions=D.actions||[],(0,w.hasWin)()?((d=document.createElement("div")).className="".concat(g,"rte-toolbar ").concat(g,"one-bg"),this.initRte(document.createElement("div")),(0,w.on)(d,"mousedown",function(T){return T.stopPropagation()}),this):this},destroy:function(){var v,D,g,T=this;(v=this.globalRte)===null||v===void 0||v.destroy(),(D=this.customRte)===null||D===void 0||(g=D.destroy)===null||g===void 0||g.call(D),d=0,["actionbar","actions","em","config","globalRte","lastEl"].map(function(u){delete T[u]})},postRender:function(v){var D=v.model.get("Canvas");d.style.pointerEvents="all",f(),D.getToolsEl().appendChild(d)},initRte:function(v){var D=this.globalRte,g=this.em,T=this.pfx,u=this.actionbar,x=this.config,O=d,W=this.actions||(0,we.Z)(x.actions),X={actionbar:"".concat(T,"actionbar"),button:"".concat(T,"action"),active:"".concat(T,"active"),inactive:"".concat(T,"inactive"),disabled:"".concat(T,"disabled")};return D?(D.em=g,D.setEl(v)):(D=new Z({em:g,el:v,classes:X,actions:W,actionbar:u,actionbarContainer:O}),this.globalRte=D),D.actionbar&&(this.actionbar=D.actionbar),D.actions&&(this.actions=D.actions),D},add:function(v){var D,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};g.name=v,(D=this.globalRte)===null||D===void 0||D.addAction(g,{sync:1})},get:function(v){var D,g;return(D=this.globalRte)===null||D===void 0||D.getActions().forEach(function(T){T.name==v&&(g=T)}),g},getAll:function(){var v;return(v=this.globalRte)===null||v===void 0?void 0:v.getActions()},remove:function(v){var D=this.getAll(),g=this.get(v);if(g){var T=g.btn,u=D.indexOf(g);T.parentNode.removeChild(T),D.splice(u,1)}return g},getToolbarEl:function(){return d},updatePosition:function(){var v=this.em.get("Canvas"),D=d.style,g=v.getTargetToElementFixed(this.lastEl,d,{event:"rteToolbarPosUpdate",left:0});D.top=(g.top||0)+"px",D.left=(g.left||0)+"px"},enable:function(v,D,g){var T=this;return(0,ye.Z)(N().mark(function u(){var x,O,W,X;return N().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return T.lastEl=v.el,x=T.customRte,O=T.em,W=v.getChildrenContainer(),d.style.display="",ie.next=6,x?x.enable(W,D):T.initRte(W).enable(g);case 6:return X=ie.sent,O&&(setTimeout(T.updatePosition.bind(T),0),O.off(I,T.updatePosition,T),O.on(I,T.updatePosition,T),O.trigger("rte:enable",v,X)),ie.abrupt("return",X);case 9:case"end":return ie.stop()}},u)}))()},disable:function(v,D){var g=this.em,T=this.customRte,u=v.getChildrenContainer();T?T.disable(u,D):D&&D.disable(),f(),g&&(g.off(I,this.updatePosition,this),g.trigger("rte:disable",v,D))}}}},4755:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>l,evAdd:()=>W,evAll:()=>x,evCustom:()=>ce,evPfx:()=>O,evRemove:()=>ie,evRemoveBefore:()=>le,evState:()=>F,evUpdate:()=>X});var ye=b(2982),we=b(4942),J=b(9050),Y=b(6183),N=b(2316),te=b.n(N),$=b(9304);let L={stylePrefix:"clm-",appendTo:"",selectors:[],states:[{name:"hover"},{name:"active"},{name:"nth-of-type(2n)"}],escapeName:0,selectedName:0,iconAdd:'<svg viewBox="0 0 24 24"><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"></path></svg>',iconSync:'<svg viewBox="0 0 24 24"><path d="M12 18c-3.31 0-6-2.69-6-6 0-1 .25-1.97.7-2.8L5.24 7.74A7.93 7.93 0 0 0 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4m0-11V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1-.25 1.97-.7 2.8l1.46 1.46A7.93 7.93 0 0 0 20 12c0-4.42-3.58-8-8-8z"></path></svg>',iconTagOn:'<svg viewBox="0 0 24 24"><path d="M19 19H5V5h10V3H5c-1.11 0-2 .89-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8h-2m-11.09-.92L6.5 11.5 11 16 21 6l-1.41-1.42L11 13.17l-3.09-3.09z"></path></svg>',iconTagOff:'<svg viewBox="0 0 24 24"><path d="M19 3H5c-1.11 0-2 .89-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5a2 2 0 0 0-2-2m0 2v14H5V5h14z"></path></svg>',iconTagRemove:'<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"></path></svg>',render:0,componentFirst:0,custom:!1};var w=b(8490),y=b(4293),P=b(5671),A=b(3144),k=b(9340),B=b(3930),G=b(1120);function M(s){var o=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var h,m=(0,G.Z)(s);if(o){var j=(0,G.Z)(this).constructor;h=Reflect.construct(m,arguments,j)}else h=m.apply(this,arguments);return(0,B.Z)(this,h)}}var H=function(s){(0,k.Z)(h,s);var o=M(h);function h(){return(0,P.Z)(this,h),o.apply(this,arguments)}return(0,A.Z)(h,[{key:"defaults",value:function(){return{name:"",label:""}}},{key:"getName",value:function(){return this.get("name")}},{key:"getLabel",value:function(){return this.get("label")||this.getName()}}]),h}(N.Model);H.prototype.idAttribute="name";var Z=b(168),_="contentEditable";let C=te().View.extend({template:function(){var s=this.pfx,o=this.model,h=this.config,m=o.get("label")||"";return` + <span id="`.concat(s,'checkbox" class="').concat(s,`tag-status" data-tag-status></span> + <span id="`).concat(s,'tag-label" data-tag-name>').concat(m,`</span> + <span id="`).concat(s,'close" class="').concat(s,`tag-close" data-tag-remove> + `).concat(h.iconTagRemove,` + </span> + `)},events:{"click [data-tag-remove]":"removeTag","click [data-tag-status]":"changeStatus","dblclick [data-tag-name]":"startEditTag","focusout [data-tag-name]":"endEditTag"},initialize:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=s.config||{};this.config=o,this.module=s.module,this.coll=s.coll||null,this.pfx=o.stylePrefix||"",this.ppfx=o.pStylePrefix||"",this.em=o.em,this.listenTo(this.model,"change:active",this.updateStatus)},getInputEl:function(){return this.inputEl||(this.inputEl=this.el.querySelector("[data-tag-name]")),this.inputEl},startEditTag:function(){var s=this.em,o=this.getInputEl();o[_]=!0,o.focus(),s&&s.setEditing(1)},endEditTag:function(){var s=this.model,o=this.getInputEl(),h=o.textContent,m=this.em,j=m&&m.get("SelectorManager");if(o[_]=!1,m&&m.setEditing(0),j){var K=j.escapeName(h);j.get(K)?o.innerText=s.get("label"):s.set({name:K,label:h})}},changeStatus:function(){var s=this.model;s.set("active",!s.get("active"))},removeTag:function(){this.module.removeSelected(this.model)},updateStatus:function(){var s=this.model,o=this.$el,h=this.config,m=h.iconTagOn,j=h.iconTagOff,K=o.find("[data-tag-status]");s.get("active")?(K.html(m),o.removeClass("opac50")):(K.html(j),o.addClass("opac50"))},render:function(){var s=this.pfx,o=this.ppfx;return this.$el.html(this.template()),this.$el.attr("class","".concat(s,"tag ").concat(o,"three-bg")),this.updateStatus(),this}});var z,I,p,d,f=b(1629);let v=te().View.extend({template:function(s){var o=s.labelInfo,h=s.labelHead,m=s.iconSync,j=s.iconAdd,K=s.pfx,ve=s.ppfx;return` + <div id="`.concat(K,'up" class="').concat(K,`header"> + <div id="`).concat(K,'label" class="').concat(K,'header-label">').concat(h,`</div> + <div id="`).concat(K,'status-c" class="').concat(K,`header-status"> + <span id="`).concat(K,`input-c" data-states-c> + <div class="`).concat(ve,"field ").concat(ve,`select"> + <span id="`).concat(ve,`input-holder"> + <select id="`).concat(K,`states" data-states></select> + </span> + <div class="`).concat(ve,`sel-arrow"> + <div class="`).concat(ve,`d-s-arrow"></div> + </div> + </div> + </span> + </div> + </div> + <div id="`).concat(K,'tags-field" class="').concat(ve,`field"> + <div id="`).concat(K,`tags-c" data-selectors></div> + <input id="`).concat(K,`new" data-input/> + <span id="`).concat(K,'add-tag" class="').concat(K,"tags-btn ").concat(K,`tags-btn__add" data-add> + `).concat(j,` + </span> + <span class="`).concat(K,"tags-btn ").concat(K,`tags-btn__sync" style="display: none" data-sync-style> + `).concat(m,` + </span> + </div> + <div class="`).concat(K,`sels-info"> + <div class="`).concat(K,'label-sel">').concat(o,`:</div> + <div class="`).concat(K,`sels" data-selected></div> + </div>`)},events:{"change [data-states]":"stateChanged","click [data-add]":"startNewTag","focusout [data-input]":"endNewTag","keyup [data-input]":"onInputKeyUp","click [data-sync-style]":"syncStyle"},initialize:function(){var s=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.config=o.config||{},this.pfx=this.config.stylePrefix||"",this.ppfx=this.config.pStylePrefix||"",this.className=this.pfx+"tags",this.stateInputId=this.pfx+"states",this.stateInputC=this.pfx+"input-c",this.states=this.config.states||[];var h=this.config.em,m=this.collection;this.target=this.config.em;var j=o.module;this.module=j,this.em=h;var K="component:toggled component:update:classes",ve="component:update:classes change:state";this.listenTo(h,K,this.componentChanged),this.listenTo(h,"styleManager:update",this.componentChanged),this.listenTo(h,ve,this.__handleStateChange),this.listenTo(h,"styleable:change change:device",this.checkSync),this.listenTo(m,"add",this.addNew),this.listenTo(m,"reset",this.renderClasses),this.listenTo(m,"remove",this.tagRemoved),this.listenTo(j.getAll(),j.events.state,(0,J.debounce)(function(){return s.renderStates()})),this.delegateEvents()},syncStyle:function(){var s,o=this.em,h=this.getTarget(),m=o.get("CssComposer"),j=this.getCommonSelectors({opts:{noDisabled:1}}),K=o.get("state"),ve=o.getCurrentMedia(),E=[],q=m.get(j,K,ve)||m.add(j,K,ve);this.getTargets().forEach(function(ue){var ke=m.getIdRule(ue.getId(),{state:K,mediaText:ve});s=ke.getStyle(),ke.setStyle({}),E.push(ke)}),s&&q.addStyle(s),o.trigger("component:toggled"),o.trigger("component:sync-style",{component:h,selectors:j,mediaText:ve,rule:q,ruleComponents:E,state:K})},tagRemoved:function(s){this.updateStateVis()},addNew:function(s){this.addToClasses(s)},startNewTag:function(){this.$addBtn.css({display:"none"}),this.$input.show().focus()},endNewTag:function(){this.$addBtn.css({display:""}),this.$input.hide().val("")},onInputKeyUp:function(s){s.keyCode===13?(s.preventDefault(),this.addNewTag(this.$input.val())):s.keyCode===27&&this.endNewTag()},checkStates:function(){var s=this.em.getState(),o=this.getStates();o&&o.val(s)},componentChanged:(0,J.debounce)(function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=s.targets;this.updateSelection(o)}),updateSelection:function(s){var o=s||this.getTargets(),h=[];return(o=(0,J.isArray)(o)?o:[o])&&o.length&&(h=this.getCommonSelectors({targets:o}),this.checkSync({validSelectors:h})),this.collection.reset(h),this.updateStateVis(o),this.module.__trgCustom(),h},getCommonSelectors:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=s.targets,h=s.opts,m=h===void 0?{}:h,j=o||this.getTargets();return this.module.__getCommonSelectors(j,m)},_commonSelectors:function(){var s;return(s=this.module).__common.apply(s,arguments)},checkSync:(0,J.debounce)(function(){var s,o=this.$btnSyncEl,h=this.config,m=this.collection,j=this.getTarget();if(j&&h.componentFirst&&m.length){var K=j.getStyle();s=!(0,J.isEmpty)(K)}o&&o[s?"show":"hide"]()}),getTarget:function(){return this.target.getSelected()},getTargets:function(){return this.target.getSelectedAll()},updateStateVis:function(s){var o=this.em,h=o&&o.getConfig("avoidInlineStyle"),m=this.collection.length||h?"":"none";this.getStatesC().css("display",m),this.updateSelector(s)},__handleStateChange:function(){this.updateSelector(this.getTargets())},updateSelector:function(s){var o=this,h=this.el.querySelector("[data-selected]"),m=[],j=s||this.getTargets();(j=(0,J.isArray)(j)?j:[j]).forEach(function(K){return m.push(o.__getName(K))}),h&&(h.innerHTML=m.join(", ")),this.checkStates()},__getName:function(s){var o,h=this.pfx,m=this.config,j=this.em,K=m.selectedName,ve=m.componentFirst;if((0,J.isString)(s))o=(0,f.Z)(z||(z=(0,Z.Z)(['<span class="','sel-gen">',"</span>"])),h,s);else{var E=s&&s.get&&s.getSelectors();if(!E)return;var q=E.getStyleable(),ue=j.get("state"),ke=s.getId?(0,f.Z)(I||(I=(0,Z.Z)(['<span class="','sel-cmp">',`</span> + <span class="`,'sel-id">#',"</span>"])),h,s.getName(),h,s.getId()):"";o=(o=this.collection.getFullString(q))?(0,f.Z)(p||(p=(0,Z.Z)(['<span class="','sel-rule">',"</span>"])),h,o):s.get("selectorsAdd")||ke,o=ve&&ke?ke:o,o+=ue?(0,f.Z)(d||(d=(0,Z.Z)(['<span class="','sel-state">:',"</span>"])),h,ue):"",o=K?K({result:o,state:ue,target:s}):o}return o&&'<span class="'.concat(h,'sel">').concat(o,"</span>")},stateChanged:function(s){var o=this.em,h=s.target.value;o.set("state",h)},addNewTag:function(s){var o=s.trim();o&&(this.module.addSelected({label:o}),this.endNewTag())},addToClasses:function(s){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,h=o,m=this.getClasses(),j=new C({model:s,config:this.config,coll:this.collection,module:this.module}).render().el;return h?h.appendChild(j):m.append(j),j},renderClasses:function(){var s=this,o=document.createDocumentFragment(),h=this.getClasses();h.empty(),this.collection.each(function(m){return s.addToClasses(m,o)}),h.append(o)},getClasses:function(){return this.$el.find("[data-selectors]")},getStates:function(){if(!this.$states){var s=this.$el.find("[data-states]");this.$states=s[0]&&s}return this.$states},getStatesC:function(){return this.$statesC||(this.$statesC=this.$el.find("#"+this.stateInputC)),this.$statesC},renderStates:function(){var s=this.module,o=this.em,h=o.t("selectorManager.emptyState"),m=s.getStates().map(function(K){var ve=o.t("selectorManager.states.".concat(K.id))||K.getLabel()||K.id;return'<option value="'.concat(K.id,'">').concat(ve,"</option>")}).join(""),j=this.getStates();j&&j.html('<option value="">'.concat(h,"</option>").concat(m)),this.checkStates()},render:function(){var s=this.em,o=this.pfx,h=this.ppfx,m=this.config,j=this.$el,K=this.el,ve=m.render,E={iconSync:m.iconSync,iconAdd:m.iconAdd,labelHead:s.t("selectorManager.label"),labelInfo:s.t("selectorManager.selected"),ppfx:h,pfx:o,el:K};j.html(this.template(E));var q=ve&&ve(E);return q&&q!==K&&j.empty().append(q),this.$input=j.find("[data-input]"),this.$addBtn=j.find("[data-add]"),this.$classes=j.find("#"+o+"tags-c"),this.$btnSyncEl=j.find("[data-sync-style]"),this.$input.hide(),this.renderStates(),this.renderClasses(),j.attr("class","".concat(this.className," ").concat(h,"one-bg ").concat(h,"two-color")),this}});function D(s,o){var h=Object.keys(s);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(s);o&&(m=m.filter(function(j){return Object.getOwnPropertyDescriptor(s,j).enumerable})),h.push.apply(h,m)}return h}function g(s){for(var o=1;o<arguments.length;o++){var h=arguments[o]!=null?arguments[o]:{};o%2?D(Object(h),!0).forEach(function(m){(0,we.Z)(s,m,h[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(h)):D(Object(h)).forEach(function(m){Object.defineProperty(s,m,Object.getOwnPropertyDescriptor(h,m))})}return s}var T=function(s){return(0,J.isString)(s)&&s[0]=="#"},u=function(s){return(0,J.isString)(s)&&s[0]=="."},x="selector",O="".concat(x,":"),W="".concat(O,"add"),X="".concat(O,"update"),ie="".concat(O,"remove"),le="".concat(ie,":before"),ce="".concat(O,"custom"),F="".concat(O,"state");let l=function(){return g(g({},$.Z),{},{name:"SelectorManager",Selector:w.Z,Selectors:y.Z,events:{all:x,update:X,add:W,remove:ie,removeBefore:le,state:F,custom:ce},init:function(){var s=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.__initConfig(L,o);var h=this.getConfig(),m=h.em,j=h.pStylePrefix;j&&(h.stylePrefix=j+h.stylePrefix),this.all=new y.Z(h.selectors),this.selected=new y.Z([],{em:m,config:h}),this.states=new N.Collection(h.states,{model:H}),this.model=new N.Model({cFirst:h.componentFirst,_undo:!0}),this.__initListen({collections:[this.states,this.selected],propagate:[{entity:this.states,event:this.events.state}]}),m.on("change:state",function(ve,E){return m.trigger(F,E)}),this.model.on("change:cFirst",function(ve,E){return m.trigger("selector:type",E)});var K="component:toggled component:update:classes change:device styleManager:update selector:state selector:type";return this.model.listenTo(m,K,function(){return s.__update()}),this},__update:(0,J.debounce)(function(){this.__trgCustom()}),__trgCustom:function(s){this.em.trigger(this.events.custom,this.__customData(s))},__customData:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=s.container;return{states:this.getStates(),selected:this.getSelected(),container:o}},postRender:function(){this.__appendTo(),this.__trgCustom()},select:function(s){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=Array.isArray(s)?s:[s],m=this.em.get("StyleManager").select(h,o),j=this.selectorTags,K=m.filter(function(ve){return ve}).map(function(ve){return(0,Y.isComponent)(ve)||(0,Y.isRule)(ve)&&!ve.get("selectorsAdd")?ve:ve.getSelectorsString()});return j&&j.componentChanged({targets:K}),this},addSelector:function(s){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},m=g({},o);(0,J.isObject)(s)?m=s:m.name=s,T(m.name)?(m.name=m.name.substr(1),m.type=w.Z.TYPE_ID):u(m.name)&&(m.name=m.name.substr(1)),m.label&&!m.name&&(m.name=this.escapeName(m.label));var j=m.name,K=this.getConfig(),ve=this.getAll(),E=j?this.get(j,m.type):ve.where(m)[0];return E||ve.add(m,g(g({},h),{},{config:K}))},getSelector:function(s){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w.Z.TYPE_CLASS;return T(s)?(s=s.substr(1),o=w.Z.TYPE_ID):u(s)&&(s=s.substr(1)),this.getAll().where({name:s,type:o})[0]},add:function(s){var o=this,h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=(0,J.isString)(s)?{}:h;return(0,J.isArray)(s)?s.map(function(j){return o.addSelector(j,h,m)}):this.addSelector(s,h,m)},addClass:function(s){var o=this,h=[];return(0,J.isString)(s)&&(s=s.trim().split(" ")),s.forEach(function(m){return h.push(o.addSelector(m))}),h},get:function(s,o){var h=this;if((0,J.isArray)(s)){var m=[];return s.map(function(j){return h.getSelector(j)}).filter(function(j){return j}).forEach(function(j){return m.indexOf(j)<0&&m.push(j)}),m}return this.getSelector(s,o)||null},remove:function(s,o){return this.__remove(s,o)},setState:function(s){return this.em.setState(s),this},getState:function(){return this.em.getState()},getStates:function(){return(0,ye.Z)(this.states.models)},setStates:function(s,o){return this.states.reset(s,o)},getSelected:function(){return this.__getCommon()},addSelected:function(s){var o=this.add(s);this.em.getSelectedAll().forEach(function(h){h.getSelectors().add(o)})},removeSelected:function(s){this.em.getSelectedAll().forEach(function(o){!s.get("protected")&&o&&o.getSelectors().remove(s)})},getSelectedTargets:function(){return this.em.get("StyleManager").getSelectedAll()},setComponentFirst:function(s){this.getConfig().componentFirst=s,this.model.set({cFirst:s})},getComponentFirst:function(){return this.getConfig().componentFirst},escapeName:function(s){var o=this.getConfig().escapeName;return o?o(s):w.Z.escapeName(s)},render:function(s){this.em;var o=this.selectorTags,h=this.getConfig(),m=o&&o.el;return this.selected.reset(s),this.selectorTags=new v({el:m,collection:this.selected,module:this,config:h}),this.selectorTags.render().el},destroy:function(){var s=this.selectorTags;this.model.stopListening(),this.__destroy(),s&&s.remove(),this.selectorTags={}},__getCommon:function(){return this.__getCommonSelectors(this.em.getSelectedAll())},__getCommonSelectors:function(s){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=s.map(function(m){return m.getSelectors&&m.getSelectors().getValid(o)}).filter(Boolean);return this.__common.apply(this,(0,ye.Z)(h))},__common:function(){for(var s=this,o=arguments.length,h=new Array(o),m=0;m<o;m++)h[m]=arguments[m];return h.length?h.length===1?h[0]:h.length===2?h[0].filter(function(j){return h[1].indexOf(j)>=0}):h.slice(1).reduce(function(j,K){return s.__common(j,K)},h[0]):[]}})}},8490:(Je,Se,b)=>{"use strict";b.d(Se,{Z:()=>w});var ye=b(5671),we=b(3144),J=b(9340),Y=b(3930),N=b(1120),te=b(2316),$=b(9050);function L(y){var P=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var A,k=(0,N.Z)(y);if(P){var B=(0,N.Z)(this).constructor;A=Reflect.construct(k,arguments,B)}else A=k.apply(this,arguments);return(0,Y.Z)(this,A)}}var w=function(y){(0,J.Z)(A,y);var P=L(A);function A(){return(0,ye.Z)(this,A),P.apply(this,arguments)}return(0,we.Z)(A,[{key:"defaults",value:function(){return{name:"",label:"",type:1,active:!0,private:!1,protected:!1,_undo:!0}}},{key:"initialize",value:function(k){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},G=B.config,M=G===void 0?{}:G,H=this.get("name"),Z=this.get("label");H?Z||this.set("label",H):this.set("name",Z);var _=this.get("name"),C=M.escapeName,z=C?C(_):A.escapeName(_);this.set("name",z),this.em=M.em}},{key:"isId",value:function(){return this.get("type")===2}},{key:"isClass",value:function(){return this.get("type")===1}},{key:"getFullName",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},B=k.escape,G=this.get("name"),M="";switch(this.get("type")){case 1:M=".";break;case 2:M="#"}return M+(B?B(G):G)}},{key:"toString",value:function(){return this.getFullName()}},{key:"getLabel",value:function(){return this.get("label")}},{key:"setLabel",value:function(k){return this.set("label",k)}},{key:"getActive",value:function(){return this.get("active")}},{key:"setActive",value:function(k){return this.set("active",k)}},{key:"toJSON",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},B=this.em,G=te.Model.prototype.toJSON.call(this,[k]),M=(0,$.result)(this,"defaults");if(B&&B.getConfig("avoidDefaults")){(0,$.forEach)(M,function(Z,_){G[_]===Z&&delete G[_]}),G.label===G.name&&delete G.label;var H=(0,$.keys)(G).length;H===1&&G.name&&(G=G.name),H===2&&G.name&&G.type&&(G=this.getFullName())}return G}}]),A}(te.Model);w.prototype.idAttribute="name",w.TYPE_CLASS=1,w.TYPE_ID=2,w.escapeName=function(y){return"".concat(y).trim().replace(/([^a-z0-9\w-\:]+)/gi,"-")}},4293:(Je,Se,b)=>{"use strict";b.d(Se,{Z:()=>P});var ye=b(5671),we=b(3144),J=b(9340),Y=b(3930),N=b(1120),te=b(9050),$=b(2316),L=b(8490);function w(A){var k=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var B,G=(0,N.Z)(A);if(k){var M=(0,N.Z)(this).constructor;B=Reflect.construct(G,arguments,M)}else B=G.apply(this,arguments);return(0,Y.Z)(this,B)}}var y=function A(k,B){return k.reduce(function(G,M,H){return G.concat(A(k.slice(H+1),"".concat(B).concat(M)))},[B])},P=function(A){(0,J.Z)(B,A);var k=w(B);function B(){return(0,ye.Z)(this,B),k.apply(this,arguments)}return(0,we.Z)(B,[{key:"modelId",value:function(G){return"".concat(G.name,"_").concat(G.type||L.Z.TYPE_CLASS)}},{key:"getStyleable",value:function(){return(0,te.filter)(this.models,function(G){return G.get("active")&&!G.get("private")})}},{key:"getValid",value:function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M=G.noDisabled;return(0,te.filter)(this.models,function(H){return!H.get("private")}).filter(function(H){return M?H.get("active"):1})}},{key:"getFullString",value:function(G){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},H=[],Z=G||this;return Z.forEach(function(_){return H.push(_.getFullName(M))}),H.join("").trim()}},{key:"getFullName",value:function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M=G.combination,H=G.array,Z=[],_=this.map(function(C){return C.getFullName(G)}).sort();return M?_.forEach(function(C,z){Z=Z.concat(y(_.slice(z+1),C))}):Z=_,H?Z:M?Z.join(","):Z.join("")}}]),B}($.Collection);P.prototype.model=L.Z},4859:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>Z});var ye=b(4942);let we={id:"gjs-",autosave:!0,autoload:!0,type:"local",stepsBeforeSave:1,storeComponents:!0,storeStyles:!0,storeHtml:!0,storeCss:!0,checkLocal:!0,params:{},headers:{},urlStore:"",urlLoad:"",beforeSend:function(_,C){},onComplete:function(_,C){},contentTypeJson:!0,credentials:"include",fetchOptions:""};var J=b(2316),Y=b.n(J),N=b(6183);let te=J.Model.extend({defaults:{checkLocal:!0},store:function(_){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){};if(this.hasLocal())for(var z in _)localStorage.setItem(z,_[z]);C&&C()},load:function(_){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){},z={};if(this.hasLocal())for(var I=0,p=_.length;I<p;I++){var d=localStorage.getItem(_[I]);d&&(z[_[I]]=d)}return C&&C(z),z},remove:function(_){if(this.hasLocal())for(var C=0,z=_.length;C<z;C++)localStorage.removeItem(_[C])},hasLocal:function(){var _=(0,N.hasWin)();return!!(!this.get("checkLocal")||_&&localStorage)||(_&&console.warn("Your browser doesn't support localStorage"),!1)}});var $=b(9661),L=b(9050);function w(_,C){var z=Object.keys(_);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(_);C&&(I=I.filter(function(p){return Object.getOwnPropertyDescriptor(_,p).enumerable})),z.push.apply(z,I)}return z}function y(_){for(var C=1;C<arguments.length;C++){var z=arguments[C]!=null?arguments[C]:{};C%2?w(Object(z),!0).forEach(function(I){(0,ye.Z)(_,I,z[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(z)):w(Object(z)).forEach(function(I){Object.defineProperty(_,I,Object.getOwnPropertyDescriptor(z,I))})}return _}let P=Y().Model.extend({fetch:$.Z,defaults:{urlStore:"",urlLoad:"",params:{},beforeSend:function(){},onComplete:function(){},contentTypeJson:!1,credentials:"include",fetchOptions:""},onStart:function(){this.get("em");var _=this.get("beforeSend");_&&_()},onError:function(_,C){if(C)C(_);else{var z=this.get("em");console.error(_),z&&z.trigger("storage:error",_)}},onResponse:function(_,C){var z=this.get("em"),I=this.get("onComplete"),p=this.get("contentTypeJson")&&_&&typeof _=="string"?JSON.parse(_):_;I&&I(p),C&&C(p),z&&z.trigger("storage:response",p)},store:function(_,C,z){var I={};for(var p in _)I[p]=_[p];this.request(this.get("urlStore"),{body:I},C,z)},load:function(_,C,z){this.request(this.get("urlLoad"),{method:"get"},C,z)},request:function(_){var C,z,I=this,p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,v=this.get("contentTypeJson"),D=this.get("headers")||{},g=this.get("params"),T="X-Requested-With",u="Content-Type",x=p.body||{};for(var O in g)x[O]=g[O];if((0,L.isUndefined)(D[T])&&(D[T]="XMLHttpRequest"),(0,L.isUndefined)(D[u])&&v&&(D[u]="application/json; charset=utf-8"),v)z=JSON.stringify(x);else for(var W in z=new FormData,x)z.append(W,x[W]);(C={method:p.method||"post",credentials:this.get("credentials"),headers:D}).method==="post"&&(C.body=z);var X=this.get("fetchOptions")||{},ie=(0,L.isFunction)(X)?X(C):C;this.onStart(),this.fetch(_,y(y({},C),ie||{})).then(function(le){return(le.status/200|0)==1?le.text():le.text().then(function(ce){return Promise.reject(ce)})}).then(function(le){return I.onResponse(le,d)}).catch(function(le){return I.onError(le,f)})}});function A(_,C){var z=Object.keys(_);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(_);C&&(I=I.filter(function(p){return Object.getOwnPropertyDescriptor(_,p).enumerable})),z.push.apply(z,I)}return z}function k(_){for(var C=1;C<arguments.length;C++){var z=arguments[C]!=null?arguments[C]:{};C%2?A(Object(z),!0).forEach(function(I){(0,ye.Z)(_,I,z[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(z)):A(Object(z)).forEach(function(I){Object.defineProperty(_,I,Object.getOwnPropertyDescriptor(z,I))})}return _}var B="storage:start",G="storage:after",M="storage:end",H="storage:error";let Z=function(){var _,C={},z={},I={};return{name:"StorageManager",init:function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return C=k(k({},we),p),_=C.em,C._disable&&(C.type=0),I.remote=new P(C),I.local=new te(C),C.currentStorage=C.type,this.loadDefaultProviders().setCurrent(C.type),this},getConfig:function(){return C},isAutosave:function(){return!!C.autosave},setAutosave:function(p){return C.autosave=!!p,this},getStepsBeforeSave:function(){return C.stepsBeforeSave},setStepsBeforeSave:function(p){return C.stepsBeforeSave=p,this},add:function(p,d){return z[p]=d,this},get:function(p){return z[p]||null},getStorages:function(){return z},getCurrent:function(){return C.currentStorage},setCurrent:function(p){return C.currentStorage=p,this},store:function(p,d){var f=this,v=this.get(this.getCurrent()),D={};for(var g in this.onStart("store",p),p)D[C.id+g]=p[g];return v?v.store(D,function(T){f.onAfter("store",T),d&&d(T),f.onEnd("store",T)},function(T){f.onError("store",T)}):null},load:function(p,d){var f=this,v=this.get(this.getCurrent()),D=[],g={};typeof p=="string"&&(p=[p]),this.onStart("load",p);for(var T=0,u=p.length;T<u;T++)D.push(C.id+p[T]);v?v.load(D,function(x){g=f.__clearKeys(x),f.onAfter("load",g),d&&d(g),f.onEnd("load",g)},function(x){d&&d(g),f.onError("load",x)}):d&&d(g)},__clearKeys:function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d={},f=new RegExp("^"+C.id);for(var v in p){var D=v.replace(f,"");d[D]=p[v]}return d},loadDefaultProviders:function(){for(var p in I)this.add(p,I[p]);return this},getCurrentStorage:function(){return this.get(this.getCurrent())},onStart:function(p,d){_&&(_.trigger(B),p&&_.trigger("".concat(B,":").concat(p),d))},onAfter:function(p,d){_&&(_.trigger(G),p&&_.trigger("".concat(G,":").concat(p),d))},onEnd:function(p,d){_&&(_.trigger(M),p&&_.trigger("".concat(M,":").concat(p),d))},onError:function(p,d){_&&(_.trigger(H,d),p&&_.trigger("".concat(H,":").concat(p),d),this.onEnd(p,d))},canAutoload:function(){return this.getCurrentStorage()&&this.getConfig().autoload},destroy:function(){[C,_,z,I].forEach(function(p){return{}})}}}},2326:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>zn,evAll:()=>ne,evCustom:()=>Dn,evLayerSelect:()=>Gt,evPfx:()=>ge,evProp:()=>wt,evPropAdd:()=>jt,evPropRemove:()=>Mt,evPropUp:()=>en,evSector:()=>Ge,evSectorAdd:()=>yt,evSectorRemove:()=>nt,evSectorUpdate:()=>Qe,evTarget:()=>tn});var ye=b(2982),we=b(4942),J=b(9050),Y=b(6183),N=b(9304),te=b(2316),$=b.n(te);let L={sectors:[{name:"General",open:!1,properties:["display","float","position","top","right","left","bottom"]},{name:"Flex",open:!1,properties:["flex-direction","flex-wrap","justify-content","align-items","align-content","order","flex-basis","flex-grow","flex-shrink","align-self"]},{name:"Dimension",open:!1,properties:["width","height","max-width","min-height","margin","padding"]},{name:"Typography",open:!1,properties:["font-family","font-size","font-weight","letter-spacing","color","line-height","text-align","text-shadow"]},{name:"Decorations",open:!1,properties:["background-color","border-radius","border","box-shadow","background"]},{name:"Extra",open:!1,properties:["opacity","transition"]}],appendTo:"",stylePrefix:"sm-",custom:!1,hideNotStylable:!0,highlightChanged:!0,highlightComputed:!0,showComputed:!0,clearProperties:!0,avoidComputed:["width","height"]};var w=b(4925),y=b(5671),P=b(3144),A=b(9340),k=b(3930),B=b(1120),G=b(793),M=["partial"];function H(xe,Pe){var Q=Object.keys(xe);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(xe);Pe&&(c=c.filter(function(V){return Object.getOwnPropertyDescriptor(xe,V).enumerable})),Q.push.apply(Q,c)}return Q}function Z(xe){for(var Pe=1;Pe<arguments.length;Pe++){var Q=arguments[Pe]!=null?arguments[Pe]:{};Pe%2?H(Object(Q),!0).forEach(function(c){(0,we.Z)(xe,c,Q[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(xe,Object.getOwnPropertyDescriptors(Q)):H(Object(Q)).forEach(function(c){Object.defineProperty(xe,c,Object.getOwnPropertyDescriptor(Q,c))})}return xe}function _(xe){var Pe=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Q,c=(0,B.Z)(xe);if(Pe){var V=(0,B.Z)(this).constructor;Q=Reflect.construct(c,arguments,V)}else Q=c.apply(this,arguments);return(0,k.Z)(this,Q)}}var C=function(xe){(0,A.Z)(Q,xe);var Pe=_(Q);function Q(){return(0,y.Z)(this,Q),Pe.apply(this,arguments)}return(0,P.Z)(Q,[{key:"initialize",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.em=V.em;var me=this.get("id")||"",Ce=this.get("name")||this.get("label")||"";!this.get("property")&&this.set("property",(Ce||me).replace(/ /g,"-"));var Ze=this.get("property");!this.get("id")&&this.set("id",Ze),!Ce&&this.set("name",(0,Y.capitalize)(Ze).replace(/-/g," ")),this.on("change",this.__upTargets),Q.callInit(this,c,V)}},{key:"__getParentProp",value:function(){var c,V;return(c=this.collection)===null||c===void 0||(V=c.opts)===null||V===void 0?void 0:V.parentProp}},{key:"__upTargets",value:function(c){var V=this,me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ce=this.em,Ze=Ce.get("StyleManager"),We=this.getName(),it=me.__clear,Xe=it?"":this.__getFullValue(me),lt=this.__getParentProp(),ut=this.changedAttributes(),mt=(0,J.keys)(ut).reduce(function(on,yn){return on[yn]=V.previous(yn),on},{}),_t=[].concat((0,ye.Z)((0,J.keys)(this.__getClearProps())),["__p"]),Dt=(0,J.keys)(ut),Bt=!me.__up&&!lt&&(it||_t.some(function(on){return Dt.indexOf(on)>=0})),Xt=this.get("onChange"),un={property:this,from:mt,to:ut,value:Xe,opts:me};Ze.__trgEv(Ze.events.propertyUpdate,un),Xt&&Xt(un),Bt&&this.__upTargetsStyle((0,we.Z)({},We,Xe),me)}},{key:"__upTargetsStyle",value:function(c,V){var me,Ce=(me=this.em)===null||me===void 0?void 0:me.get("StyleManager");Ce?.addStyleTargets(Z(Z({},c),{},{__p:!!V.avoidStore}),V)}},{key:"_up",value:function(c){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};V.noTarget&&(V.__up=!0);var me=V.partial,Ce=(0,w.Z)(V,M);return c.__p=!(!Ce.avoidStore&&!me),this.set(c,Z(Z({},Ce),{},{avoidStore:c.__p}))}},{key:"up",value:function(c){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.set(c,Z(Z({},V),{},{__up:!0}))}},{key:"init",value:function(){}},{key:"getId",value:function(){return this.get("id")}},{key:"getType",value:function(){return this.get("type")}},{key:"getName",value:function(){return this.get("property")}},{key:"getLabel",value:function(){var c,V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},me=V.locale,Ce=me===void 0||me,Ze=this.getId(),We=this.get("name")||this.get("label");return Ce&&((c=this.em)===null||c===void 0?void 0:c.t("styleManager.properties.".concat(Ze)))||We}},{key:"getValue",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},V=c.noDefault,me=this.get("value");return this.hasValue()||V?me:this.getDefaultValue()}},{key:"hasValue",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},V=c.noParent,me=V&&this.getParentTarget(),Ce=this.get("value");return!(0,J.isUndefined)(Ce)&&Ce!==""&&!me}},{key:"hasValueParent",value:function(){return this.hasValue()&&!this.hasValue({noParent:!0})}},{key:"getStyle",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},V=this.getName(),me=c.camelCase?(0,Y.camelCase)(V):V;return(0,we.Z)({},me,this.__getFullValue(c))}},{key:"getDefaultValue",value:function(){var c=this.get("default");return"".concat((0,J.isUndefined)(c)?this.get("defaults"):c)}},{key:"upValue",value:function(c){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},me=c===null||c===""?this.__getClearProps():this.__parseValue(c,V);return this._up(me,V)}},{key:"isVisible",value:function(){return!!this.get("visible")}},{key:"clear",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this._up(this.__getClearProps(),Z(Z({},c),{},{__clear:!0}))}},{key:"canClear",value:function(){var c=this.getParent();return c?c.__canClearProp(this):this.hasValue({noParent:!0})}},{key:"getParent",value:function(){return this.__getParentProp()||null}},{key:"isFull",value:function(){return!!this.get("full")}},{key:"__parseValue",value:function(c,V){return this.parseValue(c,V)}},{key:"__getClearProps",value:function(){return{value:""}}},{key:"setValue",value:function(c){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ce=this.parseValue(c),Ze=!V;!Ze&&this.set({value:void 0},{avoidStore:Ze,silent:!0}),this.set(Ce,Z({avoidStore:Ze},me))}},{key:"setValueFromInput",value:function(c,V){var me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.setValue(c,V,Z(Z({},me),{},{fromInput:1}))}},{key:"parseValue",value:function(c){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},me={value:c},Ce="!important";if((0,J.isString)(c)&&c.indexOf(Ce)!==-1&&(me.value=c.replace(Ce,"").trim(),me.important=1),!this.get("functionName")&&!V.complete)return me;var Ze=[],We="".concat(me.value),it=We.indexOf("(")+1,Xe=We.lastIndexOf(")"),lt=We.substring(0,it-1);if(lt&&(me.functionName=lt),Ze.push(it),Xe>=0&&Ze.push(Xe),me.value=String.prototype.substring.apply(We,Ze),V.numeric){var ut=parseFloat(me.value);me.unit=me.value.replace(ut,""),me.value=ut}return me}},{key:"__getFullValue",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},V=c.withDefault;return!this.hasValue()&&V?this.getDefaultValue():this.getFullValue()}},{key:"getFullValue",value:function(c){var V=this.get("functionName"),me=this.getDefaultValue(),Ce=(0,J.isUndefined)(c)?this.get("value"):c,Ze=!(0,J.isUndefined)(Ce)&&Ce!=="";if(Ce&&me&&Ce===me)return me;if(V&&Ze){var We=V==="url"?"'".concat(Ce.replace(/'/g,""),"'"):Ce;Ce="".concat(V,"(").concat(We,")")}return Ze&&this.get("important")&&(Ce="".concat(Ce," !important")),Ce||""}},{key:"__setParentTarget",value:function(c){this.__parentTarget=c}},{key:"getParentTarget",value:function(){return this.__parentTarget||null}},{key:"__parseFn",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",V=c.indexOf("(")+1,me=c.lastIndexOf(")");return{name:c.substring(0,V-1).trim(),value:String.prototype.substring.apply(c,[V,me>=0?me:void 0]).trim()}}},{key:"__checkVisibility",value:function(c){var V=c.target,me=c.component,Ce=c.sectors,Ze=me||V;if(!Ze)return!1;var We=this.getId(),it=this.getName(),Xe=this.get("toRequire"),lt=this.get("requires"),ut=this.get("requiresParent"),mt=Ze.get("unstylable"),_t=Ze.get("stylable-require"),Dt=Ze.get("stylable");if((0,J.isArray)(Dt)&&(Dt=Dt.indexOf(it)>=0),(0,J.isArray)(mt)&&(Dt=mt.indexOf(it)<0),Xe&&(Dt=!V||_t&&(_t.indexOf(We)>=0||_t.indexOf(it)>=0)),Ce&<){var Bt=(0,J.keys)(lt);Ce.forEach(function(yn){yn.getProperties().forEach(function(An){if((0,J.includes)(Bt,An.id)){var vt=lt[An.id];Dt=Dt&&(0,J.includes)(vt,An.get("value"))}})})}if(ut){var Xt=me&&me.parent(),un=Xt&&Xt.getEl();if(un){var on=(0,Y.hasWin)()?window.getComputedStyle(un):{};(0,J.each)(ut,function(yn,An){Dt=Dt&&on[An]&&(0,J.includes)(yn,on[An])})}else Dt=!1}return!!Dt}}]),Q}(te.Model);function z(xe,Pe){var Q=Object.keys(xe);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(xe);Pe&&(c=c.filter(function(V){return Object.getOwnPropertyDescriptor(xe,V).enumerable})),Q.push.apply(Q,c)}return Q}function I(xe){for(var Pe=1;Pe<arguments.length;Pe++){var Q=arguments[Pe]!=null?arguments[Pe]:{};Pe%2?z(Object(Q),!0).forEach(function(c){(0,we.Z)(xe,c,Q[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(xe,Object.getOwnPropertyDescriptors(Q)):z(Object(Q)).forEach(function(c){Object.defineProperty(xe,c,Object.getOwnPropertyDescriptor(Q,c))})}return xe}function p(xe){var Pe=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Q,c=(0,B.Z)(xe);if(Pe){var V=(0,B.Z)(this).constructor;Q=Reflect.construct(c,arguments,V)}else Q=c.apply(this,arguments);return(0,k.Z)(this,Q)}}C.callParentInit=function(xe,Pe,Q){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};xe.prototype.initialize.apply(Pe,[Q,Z(Z({},c),{},{skipInit:1})])},C.callInit=function(xe,Pe){var Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};!Q.skipInit&&xe.init(Pe,Q)},C.getDefaults=function(){return(0,J.result)(this.prototype,"defaults")},C.prototype.defaults={name:"",property:"",type:"",defaults:"",info:"",value:"",icon:"",functionName:"",status:"",visible:!0,fixedValues:["initial","inherit"],onChange:null,full:0,important:0,toRequire:0,requires:null,requiresParent:null};var d=function(xe){return xe==="integer"||xe==="number"},f=function(xe){(0,A.Z)(Q,xe);var Pe=p(Q);function Q(){return(0,y.Z)(this,Q),Pe.apply(this,arguments)}return(0,P.Z)(Q,[{key:"defaults",value:function(){return I(I({},C.getDefaults()),{},{detached:!1,properties:[],separator:" ",join:null,fromStyle:null,toStyle:null,full:!0})}},{key:"initialize",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.callParentInit(C,this,c,V);var me=this.em,Ce=new vn(this.get("properties")||[],{em:me,parentProp:this});this.set("properties",Ce,{silent:1}),this.listenTo(Ce,"change",this.__upProperties),C.callInit(this,c,V)}},{key:"getProperties",value:function(){return(0,ye.Z)(this.get("properties").models)}},{key:"getProperty",value:function(c){return this.get("properties").filter(function(V){return V.getId()===c||V.getName()===c})[0]||null}},{key:"getPropertyAt",value:function(c){return this.get("properties").at(c)}},{key:"isDetached",value:function(){return!!this.get("detached")}},{key:"getValues",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},V=c.byName;return this.getProperties().reduce(function(me,Ce){return me[V?Ce.getName():Ce.getId()]="".concat(Ce.__getFullValue()),me},{})}},{key:"getSeparator",value:function(){return this.getSplitSeparator()}},{key:"getJoin",value:function(){return this.__getJoin()}},{key:"getStyleFromProps",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},V=this.getName(),me=this.__getJoin(),Ce=this.get("toStyle"),Ze=this.getValues(),We={};if(Ce)We=Ce(Ze,{join:me,name:V,property:this});else if(Ze=this.getValues({byName:!0}),this.isDetached())We=Ze;else{var it=this.getProperties().map(function(Xe){return Xe.__getFullValue({withDefault:1})}).filter(Boolean).join(me);We=(0,we.Z)({},V,it)}return this.isDetached()?We[V]="":(We[V]=We[V]||"",We=I(I({},We),this.getProperties().reduce(function(Xe,lt){return Xe[lt.getName()]="",Xe},{}))),c.camelCase?Object.keys(We).reduce(function(Xe,lt){return Xe[camelCase(lt)]=We[lt],Xe},{}):We}},{key:"getSplitSeparator",value:function(){return new RegExp("".concat(this.get("separator"),"(?![^\\(]*\\))"))}},{key:"__upProperties",value:function(c){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!V.__up&&!V.__clearIn){var me=this.__getParentProp();if(me)return me.__upProperties(this,V);this.__upTargetsStyleProps(V,c)}}},{key:"__upTargetsStyleProps",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},V=arguments.length>1?arguments[1]:void 0,me=this.getStyleFromProps();if(this.isDetached()&&V){var Ce=V.getName();me=(0,we.Z)({},Ce,me[Ce])}this.__upTargetsStyle(me,c)}},{key:"_up",value:function(c){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.__setProperties(this.__getSplitValue(c.value),V),C.prototype._up.call(this,c,V)}},{key:"getStyle",value:function(c){return this.getStyleFromProps(c)}},{key:"__getFullValue",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.isDetached()||c.__clear?"":this.getStyleFromProps()[this.getName()]||""}},{key:"__getJoin",value:function(){var c=this.get("join");return(0,J.isString)(c)?c:this.get("separator")}},{key:"__styleHasProps",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},V=this.getName(),me=this.getProperties(),Ce=me.map(function(We){return We.getName()}),Ze=[V].concat((0,ye.Z)(Ce));return Ze.some(function(We){return!(0,J.isUndefined)(c[We])&&c[We]!==""})}},{key:"__splitValue",value:function(c,V){return c.split(V).map(function(me){return me.trim()}).filter(Boolean)}},{key:"__splitStyleName",value:function(c,V,me){return this.__splitValue(c[V]||"",me)}},{key:"__getSplitValue",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},me=V.byName,Ce=this.getProperties(),Ze=Ce.length===4&&Ce.every(function(Xe){return d(Xe.getType())}),We=this.__splitValue(c,this.getSplitSeparator()),it={};return Ce.forEach(function(Xe,lt){var ut=We[lt],mt=(0,J.isUndefined)(ut)?"":ut;if(Ze){var _t=We.length;mt=We[lt]||We[lt%_t+(_t!=1&&_t%2?1:0)]||mt}var Dt=me?Xe.getName():Xe.getId();it[Dt]=mt||""}),it}},{key:"__getPropsFromStyle",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.__styleHasProps(c))return null;var me=V.byName,Ce=this.getName(),Ze=this.getProperties(),We=this.getSplitSeparator(),it=this.get("fromStyle"),Xe=it?it(c,{property:this,name:Ce,separator:We}):{};return it||(Xe=this.__getSplitValue(c[Ce]||"",{byName:me}),Ze.forEach(function(lt){var ut=c[lt.getName()],mt=me?lt.getName():lt.getId();(0,J.isUndefined)(ut)||ut===""||(Xe[mt]=ut)})),Xe}},{key:"__setProperties",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.getProperties().forEach(function(Ce){var Ze=c[Ce.getId()];Ce.__getFullValue()!==Ze&&Ce.upValue(Ze,V)});var me=(0,J.keys)(c).map(function(Ce){return c[Ce]}).join(" ");this.set("value",me,{silent:!0})}},{key:"clear",value:function(){var c=this;return this.getProperties().map(function(V){return V.clear({__clearIn:!c.isDetached()})}),C.prototype.clear.call(this)}},{key:"hasValue",value:function(c){return this.getProperties().some(function(V){return V.hasValue(c)})}},{key:"getFullValue",value:function(){return this.__getFullValue()}},{key:"__canClearProp",value:function(c){return this.isDetached()&&c.hasValue({noParent:!0})}}]),Q}(C);function v(xe,Pe){var Q=Object.keys(xe);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(xe);Pe&&(c=c.filter(function(V){return Object.getOwnPropertyDescriptor(xe,V).enumerable})),Q.push.apply(Q,c)}return Q}function D(xe){for(var Pe=1;Pe<arguments.length;Pe++){var Q=arguments[Pe]!=null?arguments[Pe]:{};Pe%2?v(Object(Q),!0).forEach(function(c){(0,we.Z)(xe,c,Q[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(xe,Object.getOwnPropertyDescriptors(Q)):v(Object(Q)).forEach(function(c){Object.defineProperty(xe,c,Object.getOwnPropertyDescriptor(Q,c))})}return xe}function g(xe){var Pe=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Q,c=(0,B.Z)(xe);if(Pe){var V=(0,B.Z)(this).constructor;Q=Reflect.construct(c,arguments,V)}else Q=c.apply(this,arguments);return(0,k.Z)(this,Q)}}var T=function(xe){(0,A.Z)(Q,xe);var Pe=g(Q);function Q(){return(0,y.Z)(this,Q),Pe.apply(this,arguments)}return(0,P.Z)(Q,[{key:"defaults",value:function(){return{values:{}}}},{key:"initialize",value:function(){var c=this.collection;this.prop=c?.prop}},{key:"getId",value:function(){return this.cid}},{key:"getIndex",value:function(){var c=this.collection;return c?c.indexOf(this):-1}},{key:"getValues",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},V=this.get("values");return c.camelCase?Object.keys(V).reduce(function(me,Ce){return me[(0,Y.camelCase)(Ce)]=V[Ce],me},{}):V}},{key:"getLabel",value:function(){var c;return(c=this.prop)===null||c===void 0?void 0:c.getLayerLabel(this)}},{key:"isSelected",value:function(){var c;return((c=this.prop)===null||c===void 0?void 0:c.getSelectedLayer())===this}},{key:"select",value:function(){var c;return(c=this.prop)===null||c===void 0?void 0:c.selectLayer(this)}},{key:"remove",value:function(){var c;return(c=this.prop)===null||c===void 0?void 0:c.removeLayer(this)}},{key:"move",value:function(c){var V;return(V=this.prop)===null||V===void 0?void 0:V.moveLayer(this,c)}},{key:"getStylePreview",value:function(){var c,V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return(c=this.prop)===null||c===void 0?void 0:c.getStylePreview(this,V)}},{key:"hasPreview",value:function(){var c;return!((c=this.prop)===null||c===void 0||!c.get("preview"))}},{key:"upValues",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.set("values",D(D({},this.getValues()),c))}}]),Q}(te.Model);function u(xe){var Pe=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Q,c=(0,B.Z)(xe);if(Pe){var V=(0,B.Z)(this).constructor;Q=Reflect.construct(c,arguments,V)}else Q=c.apply(this,arguments);return(0,k.Z)(this,Q)}}var x=function(xe){(0,A.Z)(Q,xe);var Pe=u(Q);function Q(){return(0,y.Z)(this,Q),Pe.apply(this,arguments)}return(0,P.Z)(Q,[{key:"initialize",value:function(c){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prop=V.prop}}]),Q}(te.Collection);x.prototype.model=T;var O=["__layers"];function W(xe,Pe){var Q=Object.keys(xe);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(xe);Pe&&(c=c.filter(function(V){return Object.getOwnPropertyDescriptor(xe,V).enumerable})),Q.push.apply(Q,c)}return Q}function X(xe){for(var Pe=1;Pe<arguments.length;Pe++){var Q=arguments[Pe]!=null?arguments[Pe]:{};Pe%2?W(Object(Q),!0).forEach(function(c){(0,we.Z)(xe,c,Q[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(xe,Object.getOwnPropertyDescriptors(Q)):W(Object(Q)).forEach(function(c){Object.defineProperty(xe,c,Object.getOwnPropertyDescriptor(Q,c))})}return xe}function ie(xe){var Pe=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Q,c=(0,B.Z)(xe);if(Pe){var V=(0,B.Z)(this).constructor;Q=Reflect.construct(c,arguments,V)}else Q=c.apply(this,arguments);return(0,k.Z)(this,Q)}}var le=/,(?![^\(]*\))/,ce=/\s(?![^(]*\))/,F=function(xe){(0,A.Z)(Q,xe);var Pe=ie(Q);function Q(){return(0,y.Z)(this,Q),Pe.apply(this,arguments)}return(0,P.Z)(Q,[{key:"defaults",value:function(){return X(X({},f.getDefaults()),{},{layers:[],layerSeparator:", ",layerJoin:"",prepend:0,preview:!1,layerLabel:null,selectedLayer:null})}},{key:"initialize",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};f.callParentInit(f,this,c,V);var me=this.get("layers"),Ce=new x(me,{prop:this});Ce.property=this,Ce.properties=this.get("properties"),this.set("layers",Ce,{silent:!0}),this.on("change:selectedLayer",this.__upSelected),this.listenTo(Ce,"add remove",this.__upLayers),f.callInit(this,c,V)}},{key:"getLayers",value:function(){return this.__getLayers().models}},{key:"__getLayers",value:function(){return this.get("layers")}},{key:"getLayer",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.__getLayers().at(c)||null}},{key:"getSelectedLayer",value:function(){var c=this.get("selectedLayer");return c&&c.getIndex()>=0?c:null}},{key:"selectLayer",value:function(c){return this.set("selectedLayer",c,{__select:!0})}},{key:"selectLayerAt",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,V=this.getLayer(c);return V&&this.selectLayer(V)}},{key:"moveLayer",value:function(c){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,me=c?c.getIndex():-1;me>=0&&(0,J.isNumber)(V)&&V>=0&&V<this.getLayers().length&&me!==V&&(this.removeLayer(c),this.__getLayers().add(c,{at:V}))}},{key:"addLayer",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},me={};this.getProperties().forEach(function(Ze){var We=Ze.getId(),it=c[We];me[We]=(0,J.isUndefined)(it)?Ze.getDefaultValue():it});var Ce=this.get("layers").push({values:me},V);return Ce}},{key:"removeLayer",value:function(c){return this.get("layers").remove(c)}},{key:"removeLayerAt",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,V=this.getLayer(c);return V?this.removeLayer(V):null}},{key:"getLayerLabel",value:function(c){var V="";if(c){var me=this.get("layerLabel"),Ce=c.getValues(),Ze=c.getIndex();if(me)V=me(c,{index:Ze,values:Ce,property:this});else{var We=[];this.getProperties().map(function(it){We.push(Ce[it.getId()])}),V=We.filter(Boolean).join(" ")}}return V}},{key:"getStyleFromLayer",value:function(c){var V,me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ce=this.__getJoin(),Ze=this.__getJoinLayers(),We=this.get("toStyle"),it=this.getName(),Xe=c.getValues();if(We)V=We(Xe,{join:Ce,joinLayers:Ze,name:it,layer:c,property:this});else{var lt=this.getProperties().map(function(ut){var mt=ut.getName(),_t=Xe[ut.getId()],Dt=(0,J.isUndefined)(_t)?ut.getDefaultValue():_t;if(me.number&&d(ut.getType())){var Bt=ut.parseValue(_t,me.number);Dt="".concat(Bt.value).concat(Bt.unit)}return{name:mt,value:Dt}});V=this.isDetached()?lt.reduce(function(ut,mt){return ut[mt.name]=mt.value,ut},{}):(0,we.Z)({},this.getName(),lt.map(function(ut){return ut.value}).join(Ce))}return me.camelCase?Object.keys(V).reduce(function(ut,mt){return ut[(0,Y.camelCase)(mt)]=V[mt],ut},{}):V}},{key:"getStylePreview",value:function(c){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},me={},Ce=this.get("preview");return Ce&&(me=this.getStyleFromLayer(c,V)),me}},{key:"getLayerSeparator",value:function(){var c=this.get("layerSeparator");return(0,J.isString)(c)?new RegExp("".concat(c,"(?![^\\(]*\\))")):c}},{key:"__upProperties",value:function(c){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},me=this.getSelectedLayer();me&&(me.upValues((0,we.Z)({},c.getId(),c.__getFullValue())),V.__up||this.__upTargetsStyleProps(V))}},{key:"__upLayers",value:function(c,V,me){this.__upTargetsStyleProps(me||V)}},{key:"__upTargets",value:function(c){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!V.__select)return C.prototype.__upTargets.call(this,c,V)}},{key:"__upTargetsStyleProps",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.__upTargetsStyle(this.getStyleFromLayers(),c)}},{key:"__upTargetsStyle",value:function(c,V){return C.prototype.__upTargetsStyle.call(this,c,V)}},{key:"__upSelected",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},V=c.noEvent,me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ce=this.em.get("StyleManager"),Ze=this.getSelectedLayer(),We=Ze?.getValues();We&&this.getProperties().forEach(function(it){var Xe=We[it.getId()];it.__getFullValue()!==Xe&&it.upValue(Xe,X(X({},me),{},{__up:!0}))}),!V&&Ce.__trgEv(Ce.events.layerSelect,{property:this})}},{key:"_up",value:function(c){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},me=c.__layers,Ce=me===void 0?[]:me,Ze=(0,w.Z)(c,O);return!this.isDetached()&&this.__setLayers(Ce),this.__upSelected({noEvent:!0},V),C.prototype._up.call(this,Ze,V)}},{key:"__setLayers",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],V=this.__getLayers(),me=c.map(function(Ce){return{values:Ce}});V.length===me.length?me.map(function(Ce,Ze){var We;return(We=V.at(Ze))===null||We===void 0?void 0:We.upValues(Ce.values)}):this.__getLayers().reset(me),this.__upSelected({noEvent:!0})}},{key:"__parseValue",value:function(c){var V=this,me=this.parseValue(c);return me.__layers=c.split(le).map(function(Ce){return Ce.trim()}).map(function(Ce){return V.__parseLayer(Ce)}).filter(Boolean),me}},{key:"__parseLayer",value:function(c){var V=this.get("parseLayer"),me=c.split(ce),Ce=this.getProperties();return V?V({value:c,values:me}):Ce.reduce(function(Ze,We,it){var Xe=me[it];return Ze[We.getId()]=(0,J.isUndefined)(Xe)?We.getDefaultValue():Xe,Ze},{})}},{key:"__getLayersFromStyle",value:function(){var c=this,V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.__styleHasProps(V))return null;var me=this.getName(),Ce=this.getProperties(),Ze=this.getLayerSeparator(),We=this.get("fromStyle"),it=We?We(V,{property:this,name:me,separatorLayers:Ze}):[];if(!We){var Xe=this.__splitStyleName(V,me,Ze).map(function(lt){return lt.split(c.getSplitSeparator())}).map(function(lt){var ut={};return Ce.forEach(function(mt,_t){var Dt=lt[_t];ut[mt.getId()]=(0,J.isUndefined)(Dt)?mt.getDefaultValue():Dt}),ut});Ce.forEach(function(lt){var ut=lt.getId();c.__splitStyleName(V,lt.getName(),Ze).map(function(mt){return(0,we.Z)({},ut,mt||lt.getDefaultValue())}).forEach(function(mt,_t){Xe[_t]=Xe[_t]?X(X({},Xe[_t]),mt):mt})}),it=Xe}return(0,J.isArray)(it)?it:[it]}},{key:"getStyle",value:function(c){return this.getStyleFromLayers(c)}},{key:"getStyleFromLayers",value:function(c){var V=this,me={},Ce=this.getName(),Ze=this.getLayers(),We=this.getProperties();if(Ze.map(function(Xe){return V.getStyleFromLayer(Xe,c)}).forEach(function(Xe){(0,J.keys)(Xe).map(function(lt){me[lt]||(me[lt]=[]),me[lt].push(Xe[lt])})}),(0,J.keys)(me).map(function(Xe){me[Xe]=me[Xe].join(V.__getJoinLayers())}),this.isDetached())me[Ce]="",!Ze.length&&We.map(function(Xe){me[Xe.getName()]=""});else{var it=We.reduce(function(Xe,lt){return Xe[lt.getName()]="",Xe},{});me[Ce]=me[Ce]||"",me=X(X({},me),it)}return me}},{key:"__getJoinLayers",value:function(){var c=this.get("layerJoin"),V=this.get("layerSeparator");return c||((0,J.isString)(V)?V:c)}},{key:"__getFullValue",value:function(){return this.get("detached")?"":this.getStyleFromLayers()[this.getName()]}},{key:"hasValue",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},V=c.noParent,me=V&&this.getParentTarget();return this.getLayers().length>0&&!me}},{key:"clear",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.__getLayers().reset(),this.__upTargetsStyleProps(c),C.prototype.clear.call(this)}},{key:"__canClearProp",value:function(){return!1}}]),Q}(f),l=["complete","partial"];function s(xe,Pe){var Q=Object.keys(xe);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(xe);Pe&&(c=c.filter(function(V){return Object.getOwnPropertyDescriptor(xe,V).enumerable})),Q.push.apply(Q,c)}return Q}function o(xe){for(var Pe=1;Pe<arguments.length;Pe++){var Q=arguments[Pe]!=null?arguments[Pe]:{};Pe%2?s(Object(Q),!0).forEach(function(c){(0,we.Z)(xe,c,Q[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(xe,Object.getOwnPropertyDescriptors(Q)):s(Object(Q)).forEach(function(c){Object.defineProperty(xe,c,Object.getOwnPropertyDescriptor(Q,c))})}return xe}function h(xe){var Pe=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Q,c=(0,B.Z)(xe);if(Pe){var V=(0,B.Z)(this).constructor;Q=Reflect.construct(c,arguments,V)}else Q=c.apply(this,arguments);return(0,k.Z)(this,Q)}}var m="data-clear-style",j=function(xe){(0,A.Z)(Q,xe);var Pe=h(Q);function Q(){return(0,y.Z)(this,Q),Pe.apply(this,arguments)}return(0,P.Z)(Q,[{key:"template",value:function(){var c=this.pfx,V=this.ppfx;return` + <div class="`.concat(c,`label" data-sm-label></div> + <div class="`).concat(V,`fields" data-sm-fields></div> + `)}},{key:"templateLabel",value:function(c){var V=this.pfx,me=this.em,Ce=c.parent,Ze=c.attributes,We=Ze.icon,it=We===void 0?"":We,Xe=Ze.info,lt=Xe===void 0?"":Xe,ut=me?.getConfig("icons"),mt=ut?.close||"";return` + <span class="`.concat(V,"icon ").concat(it,'" title="').concat(lt,`"> + `).concat(c.getLabel(),` + </span> + `).concat(Ce?"":'<div class="'.concat(V,'clear" style="display: none" ').concat(m,">").concat(mt,"</div>"),` + `)}},{key:"templateInput",value:function(c){return` + <div class="`.concat(this.ppfx,`field"> + <input placeholder="`).concat(c.getDefaultValue(),`"/> + </div> + `)}},{key:"initialize",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(0,J.bindAll)(this,"__change","__updateStyle");var V=c.config||{},me=V.em;this.config=V,this.em=me,this.pfx=V.stylePrefix||"",this.ppfx=V.pStylePrefix||"",this.__destroyFn=this.destroy?this.destroy.bind(this):function(){};var Ce=this.model;Ce.view=this,this.onValueChange=(0,J.debounce)(this.onValueChange.bind(this),10),this.updateStatus=(0,J.debounce)(this.updateStatus.bind(this)),this.listenTo(Ce,"destroy remove",this.remove),this.listenTo(Ce,"change:visible",this.updateVisibility),this.listenTo(Ce,"change:name change:className change:full",this.render),this.listenTo(Ce,"change:value",this.onValueChange),this.listenTo(me,"change:device",this.onValueChange);var Ze=this.init&&this.init.bind(this);Ze&&Ze()}},{key:"remove",value:function(){var c=this;te.View.prototype.remove.apply(this,arguments),["em","input","$input","view"].forEach(function(V){return c[V]=null}),this.__destroyFn(this._getClbOpts())}},{key:"updateStatus",value:function(){var c,V=this.model,me=this.pfx,Ce=this.ppfx,Ze=this.config,We="".concat(Ce,"four-color"),it="".concat(Ce,"color-warn"),Xe=this.$el.children(".".concat(me,"label")),lt=this.getClearEl(),ut=lt?lt.style:{};Xe.removeClass("".concat(We," ").concat(it)),ut.display="none",V.hasValue({noParent:!0})&&Ze.highlightChanged?(Xe.addClass(We),Ze.clearProperties&&(ut.display="")):V.hasValue()&&Ze.highlightComputed&&Xe.addClass(it),(c=this.parent)===null||c===void 0||c.updateStatus()}},{key:"clear",value:function(c){c&&c.stopPropagation(),this.model.clear()}},{key:"getClearEl",value:function(){return this.clearEl||(this.clearEl=this.el.querySelector("[".concat(m,"]"))),this.clearEl}},{key:"inputValueChanged",value:function(c){c&&c.stopPropagation(),this.emit||this.model.upValue(c.target.value)}},{key:"onValueChange",value:function(c,V){this.setValue(this.model.getFullValue()),this.updateStatus()}},{key:"setValue",value:function(c){var V=this.model,me=(0,J.isUndefined)(c)||c===""?V.getDefaultValue():c;if(this.update)return this.__update(me);this.__setValueInput(me)}},{key:"__setValueInput",value:function(c){var V=this.getInputEl();V&&(V.value=c)}},{key:"getInputEl",value:function(){return this.input||(this.input=this.el.querySelector("input")),this.input}},{key:"updateVisibility",value:function(){this.el.style.display=this.model.isVisible()?"":"none"}},{key:"clearCached",value:function(){this.clearEl=null,this.input=null,this.$input=null}},{key:"__unset",value:function(){var c=this.unset&&this.unset.bind(this);c&&c(this._getClbOpts())}},{key:"__update",value:function(c){var V=this.update&&this.update.bind(this);V&&V(o(o({},this._getClbOpts()),{},{value:c}))}},{key:"__change",value:function(){for(var c=this.emit&&this.emit.bind(this),V=arguments.length,me=new Array(V),Ce=0;Ce<V;Ce++)me[Ce]=arguments[Ce];c&&c.apply(void 0,[this._getClbOpts()].concat(me))}},{key:"__updateStyle",value:function(c){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},me=V.complete,Ce=V.partial,Ze=((0,w.Z)(V,l),this.model),We=me!==!1&&Ce!==!0;(0,Y.isObject)(c)?Ze.__upTargetsStyle(c,{avoidStore:!We}):Ze.upValue(c,{partial:!We})}},{key:"_getClbOpts",value:function(){var c=this.model;return{el:this.el,createdEl:this.createdEl,property:c,props:c.attributes,change:this.__change,updateStyle:this.__updateStyle}}},{key:"render",value:function(){this.clearCached();var c=this.pfx,V=this.model,me=this.el,Ce=this.$el,Ze=V.getName(),We=V.getType(),it=V.get("className")||"",Xe="".concat(c,"property"),lt=We==="number"?"".concat(c).concat(We," ").concat(c,"integer"):"".concat(c).concat(We);this.createdEl&&this.__destroyFn(this._getClbOpts()),Ce.empty().append(this.template(V)),Ce.find("[data-sm-label]").append(this.templateLabel(V));var ut=this.create&&this.create.bind(this);this.createdEl=ut&&ut(this._getClbOpts()),Ce.find("[data-sm-fields]").append(this.createdEl||this.templateInput(V)),me.className="".concat(Xe," ").concat(lt," ").concat(Xe,"__").concat(Ze," ").concat(it).trim(),me.className+=V.isFull()?" ".concat(Xe,"--full"):"";var mt=this.onRender&&this.onRender.bind(this);mt&&mt(),this.setValue(V.getValue())}}]),Q}(te.View);j.prototype.events=(0,we.Z)({change:"inputValueChanged"},"click [".concat(m,"]"),"clear");var K=b(9283);function ve(xe){var Pe=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Q,c=(0,B.Z)(xe);if(Pe){var V=(0,B.Z)(this).constructor;Q=Reflect.construct(c,arguments,V)}else Q=c.apply(this,arguments);return(0,k.Z)(this,Q)}}var E=function(xe){(0,A.Z)(Q,xe);var Pe=ve(Q);function Q(){return(0,y.Z)(this,Q),Pe.apply(this,arguments)}return(0,P.Z)(Q,[{key:"initialize",value:function(c){this.config=c.config||{},this.pfx=this.config.stylePrefix||"",this.properties=[],this.parent=c.parent;var V=this.collection;this.listenTo(V,"add",this.addTo),this.listenTo(V,"reset",this.render)}},{key:"addTo",value:function(c,V,me){this.add(c,null,me)}},{key:"add",value:function(c,V){var me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ce=this.parent,Ze=this.config,We=V||this.el,it=new c.typeView({model:c,config:Ze});Ce&&(it.parent=Ce),it.render();var Xe=it.el;this.properties.push(it),(0,K.$Q)(We,Xe,me.at)}},{key:"remove",value:function(){te.View.prototype.remove.apply(this,arguments),this.clearItems()}},{key:"clearItems",value:function(){this.properties.forEach(function(c){return c.remove()}),this.properties=[]}},{key:"render",value:function(){var c=this,V=this.$el,me=this.pfx;this.clearItems();var Ce=document.createDocumentFragment();return this.collection.forEach(function(Ze){return c.add(Ze,Ce)}),V.empty(),V.append(Ce),V.attr("class","".concat(me,"properties")),this}}]),Q}(te.View);function q(xe,Pe){var Q=Object.keys(xe);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(xe);Pe&&(c=c.filter(function(V){return Object.getOwnPropertyDescriptor(xe,V).enumerable})),Q.push.apply(Q,c)}return Q}function ue(xe){for(var Pe=1;Pe<arguments.length;Pe++){var Q=arguments[Pe]!=null?arguments[Pe]:{};Pe%2?q(Object(Q),!0).forEach(function(c){(0,we.Z)(xe,c,Q[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(xe,Object.getOwnPropertyDescriptors(Q)):q(Object(Q)).forEach(function(c){Object.defineProperty(xe,c,Object.getOwnPropertyDescriptor(Q,c))})}return xe}function ke(xe){var Pe=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Q,c=(0,B.Z)(xe);if(Pe){var V=(0,B.Z)(this).constructor;Q=Reflect.construct(c,arguments,V)}else Q=c.apply(this,arguments);return(0,k.Z)(this,Q)}}var Ee=function(xe){(0,A.Z)(Q,xe);var Pe=ke(Q);function Q(){return(0,y.Z)(this,Q),Pe.apply(this,arguments)}return(0,P.Z)(Q,[{key:"templateInput",value:function(){var c=this.pfx;return` + <div class="`.concat(c,"field ").concat(c,`composite"> + <span id="`).concat(c,`input-holder"></span> + </div> + `)}},{key:"remove",value:function(){var c;(c=this.props)===null||c===void 0||c.remove(),j.prototype.remove.apply(this,arguments)}},{key:"onValueChange",value:function(){}},{key:"onRender",value:function(){var c=this.model,V=this.pfx,me=c.get("properties");if(me.length&&!this.props){var Ce=c.isDetached(),Ze=new E({config:ue(ue({},this.config),{},{highlightComputed:Ce,highlightChanged:Ce}),collection:me,parent:this});Ze.render(),this.$el.find("#".concat(V,"input-holder")).append(Ze.el),this.props=Ze}}},{key:"clearCached",value:function(){j.prototype.clearCached.apply(this,arguments),this.props=null}}]),Q}(j);function pe(xe){var Pe=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Q,c=(0,B.Z)(xe);if(Pe){var V=(0,B.Z)(this).constructor;Q=Reflect.construct(c,arguments,V)}else Q=c.apply(this,arguments);return(0,k.Z)(this,Q)}}var Ae=function(xe){(0,A.Z)(Q,xe);var Pe=pe(Q);function Q(){return(0,y.Z)(this,Q),Pe.apply(this,arguments)}return(0,P.Z)(Q,[{key:"events",value:function(){return{click:"select","click [data-close-layer]":"removeItem","mousedown [data-move-layer]":"initSorter","touchstart [data-move-layer]":"initSorter"}}},{key:"template",value:function(){var c=this.pfx,V=this.ppfx,me=this.em,Ce=me?.getConfig("icons"),Ze=Ce?.close||"",We=Ce?.move||"";return` + <div class="`.concat(c,`label-wrp"> + <div id="`).concat(c,'move" class="').concat(V,`no-touch-actions" data-move-layer> + `).concat(We,` + </div> + <div id="`).concat(c,`label" data-label></div> + <div id="`).concat(c,'preview-box" class="').concat(c,`layer-preview" style="display: none" data-preview-box> + <div id="`).concat(c,'preview" class="').concat(c,`layer-preview-cnt" data-preview></div> + </div> + <div id="`).concat(c,'close-layer" class="').concat(c,`btn-close" data-close-layer> + `).concat(Ze,` + </div> + </div> + <div id="`).concat(c,`inputs" data-properties></div> + `)}},{key:"initialize",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},V=this.model,me=c.config||{};this.em=me.em,this.config=me,this.sorter=c.sorter,this.pfx=me.stylePrefix||"",this.ppfx=me.pStylePrefix||"",this.propertyView=c.propertyView;var Ce=this.propertyView.model;this.listenTo(V,"destroy remove",this.remove),this.listenTo(V,"change:values",this.updateLabel),this.listenTo(Ce,"change:selectedLayer",this.updateVisibility),V.view=this,V.set({droppable:0,draggable:1}),this.$el.data("model",V)}},{key:"initSorter",value:function(){var c;(c=this.sorter)===null||c===void 0||c.startSort(this.el)}},{key:"removeItem",value:function(c){c&&c.stopPropagation(),this.model.remove()}},{key:"select",value:function(){this.model.select()}},{key:"getPropertiesWrapper",value:function(){return this.propsWrapEl||(this.propsWrapEl=this.el.querySelector("[data-properties]")),this.propsWrapEl}},{key:"getPreviewEl",value:function(){return this.previewEl||(this.previewEl=this.el.querySelector("[data-preview]")),this.previewEl}},{key:"getLabelEl",value:function(){return this.labelEl||(this.labelEl=this.el.querySelector("[data-label]")),this.labelEl}},{key:"updateLabel",value:function(){var c=this.model,V=c.getLabel();if(this.getLabelEl().innerHTML=V,c.hasPreview()){var me=this.getPreviewEl(),Ce=c.getStylePreview({number:{min:-3,max:3}}),Ze=(0,J.keys)(Ce).map(function(We){return"".concat(We,":").concat(Ce[We])}).join(";");me.setAttribute("style",Ze)}}},{key:"updateVisibility",value:function(){var c=this.pfx,V=this.model,me=this.propertyView,Ce=this.getPropertiesWrapper(),Ze=V.isSelected();Ce.style.display=Ze?"":"none",this.$el[Ze?"addClass":"removeClass"]("".concat(c,"active")),Ze&&Ce.appendChild(me.props.el)}},{key:"render",value:function(){var c=this.el,V=this.pfx,me=this.model;return c.innerHTML=this.template(),c.className="".concat(V,"layer"),me.hasPreview()&&(c.querySelector("[data-preview-box]").style.display=""),this.updateLabel(),this.updateVisibility(),this}}]),Q}(te.View);function Ne(xe){var Pe=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Q,c=(0,B.Z)(xe);if(Pe){var V=(0,B.Z)(this).constructor;Q=Reflect.construct(c,arguments,V)}else Q=c.apply(this,arguments);return(0,k.Z)(this,Q)}}var Oe=function(xe){(0,A.Z)(Q,xe);var Pe=Ne(Q);function Q(){return(0,y.Z)(this,Q),Pe.apply(this,arguments)}return(0,P.Z)(Q,[{key:"initialize",value:function(c){var V=this.collection,me=c.config||{},Ce=me.em,Ze=me.stylePrefix||"",We=me.pStylePrefix||"";this.config=me,this.pfx=Ze,this.ppfx=We,this.propertyView=c.propertyView,this.className="".concat(Ze,"layers ").concat(We,"field"),this.listenTo(V,"add",this.addTo),this.listenTo(V,"reset",this.reset),this.items=[];var it=Ce?Ce.get("Utils"):"";this.sorter=it?new it.Sorter({container:this.el,ignoreViewChildren:1,containerSel:".".concat(Ze,"layers"),itemSel:".".concat(Ze,"layer"),pfx:me.pStylePrefix}):"",V.view=this,this.$el.data("model",V),this.$el.data("collection",V)}},{key:"addTo",value:function(c){var V=this.collection.indexOf(c);this.addToCollection(c,null,V)}},{key:"addToCollection",value:function(c,V,me){var Ce=V||null,Ze=this.propertyView,We=this.config,it=this.sorter,Xe=this.$el,lt=new Ae({model:c,config:We,sorter:it,propertyView:Ze}),ut=lt.render().el;if(this.items.push(lt),Ce)Ce.appendChild(ut);else if(me!==void 0){var mt="before";Xe.children().length===me&&(me--,mt="after"),me<0?Xe.append(ut):Xe.children().eq(me)[mt](ut)}else Xe.append(ut);return ut}},{key:"reset",value:function(c,V){this.clearItems(V),this.render()}},{key:"remove",value:function(){this.clearItems(),te.View.prototype.remove.apply(this,arguments)}},{key:"clearItems",value:function(){this.items.forEach(function(c){return c.remove()}),this.items=[]}},{key:"render",value:function(){var c=this,V=this.$el,me=this.sorter,Ce=document.createDocumentFragment();return V.empty(),this.collection.forEach(function(Ze){return c.addToCollection(Ze,Ce)}),V.append(Ce),V.attr("class",this.className),me&&(me.plh=null),this}}]),Q}(te.View);function Ie(xe,Pe){var Q=Object.keys(xe);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(xe);Pe&&(c=c.filter(function(V){return Object.getOwnPropertyDescriptor(xe,V).enumerable})),Q.push.apply(Q,c)}return Q}function Le(xe){for(var Pe=1;Pe<arguments.length;Pe++){var Q=arguments[Pe]!=null?arguments[Pe]:{};Pe%2?Ie(Object(Q),!0).forEach(function(c){(0,we.Z)(xe,c,Q[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(xe,Object.getOwnPropertyDescriptors(Q)):Ie(Object(Q)).forEach(function(c){Object.defineProperty(xe,c,Object.getOwnPropertyDescriptor(Q,c))})}return xe}function $e(xe){var Pe=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Q,c=(0,B.Z)(xe);if(Pe){var V=(0,B.Z)(this).constructor;Q=Reflect.construct(c,arguments,V)}else Q=c.apply(this,arguments);return(0,k.Z)(this,Q)}}var tt=function(xe){(0,A.Z)(Q,xe);var Pe=$e(Q);function Q(){return(0,y.Z)(this,Q),Pe.apply(this,arguments)}return(0,P.Z)(Q,[{key:"events",value:function(){return Le(Le({},Ee.prototype.events),{},{"click [data-add-layer]":"addLayer",change:""})}},{key:"templateInput",value:function(){var c=this.pfx,V=this.em,me=V?.getConfig("icons"),Ce=me?.plus||"+";return` + <div class="`.concat(c,"field ").concat(c,`stack"> + <button type="button" id="`).concat(c,`add" data-add-layer> + `).concat(Ce,` + </button> + <div data-layers-wrapper></div> + </div> + `)}},{key:"init",value:function(){var c=this.model;this.listenTo(c.__getLayers(),"change reset",this.updateStatus)}},{key:"addLayer",value:function(){this.model.addLayer({},{at:0})}},{key:"setValue",value:function(){}},{key:"remove",value:function(){var c;(c=this.layersView)===null||c===void 0||c.remove(),Ee.prototype.remove.apply(this,arguments)}},{key:"clearCached",value:function(){Ee.prototype.clearCached.apply(this,arguments),this.layersView=null}},{key:"onRender",value:function(){var c=this.model,V=this.el,me=this.config,Ce=c.get("properties");if(Ce.length&&!this.props){var Ze=new E({config:Le(Le({},me),{},{highlightComputed:!1,highlightChanged:!1}),collection:Ce,parent:this});Ze.render();var We=new Oe({collection:c.__getLayers(),config:me,propertyView:this});We.render(),V.querySelector("[data-layers-wrapper]").appendChild(We.el),this.props=Ze,this.layersView=We}}}]),Q}(Ee);function ht(xe,Pe){var Q=Object.keys(xe);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(xe);Pe&&(c=c.filter(function(V){return Object.getOwnPropertyDescriptor(xe,V).enumerable})),Q.push.apply(Q,c)}return Q}function Vt(xe){for(var Pe=1;Pe<arguments.length;Pe++){var Q=arguments[Pe]!=null?arguments[Pe]:{};Pe%2?ht(Object(Q),!0).forEach(function(c){(0,we.Z)(xe,c,Q[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(xe,Object.getOwnPropertyDescriptors(Q)):ht(Object(Q)).forEach(function(c){Object.defineProperty(xe,c,Object.getOwnPropertyDescriptor(Q,c))})}return xe}function rt(xe){var Pe=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Q,c=(0,B.Z)(xe);if(Pe){var V=(0,B.Z)(this).constructor;Q=Reflect.construct(c,arguments,V)}else Q=c.apply(this,arguments);return(0,k.Z)(this,Q)}}var Ht=function(xe){(0,A.Z)(Q,xe);var Pe=rt(Q);function Q(){return(0,y.Z)(this,Q),Pe.apply(this,arguments)}return(0,P.Z)(Q,[{key:"events",value:function(){return Vt(Vt({},j.prototype.events),{},{"click [data-clear-asset]":"clear","click [data-open-assets]":"openAssetManager"})}},{key:"templateInput",value:function(){var c,V=this.pfx,me=this.em,Ce=(c=this.em)===null||c===void 0?void 0:c.getConfig("icons"),Ze=Ce?.close;return` + <div class="`.concat(V,"field ").concat(V,`file"> + <div id='`).concat(V,`input-holder'> + <div class="`).concat(V,`btn-c"> + <button class="`).concat(V,'btn" id="').concat(V,`images" type="button" data-open-assets> + `).concat(me.t("styleManager.fileButton"),` + </button> + </div> + <div style="clear:both;"></div> + </div> + <div id="`).concat(V,'preview-box" class="').concat(V,`preview-file" data-preview-box> + <div id="`).concat(V,'preview-file" class="').concat(V,`preview-file-cnt" data-preview></div> + <div id="`).concat(V,'close" class="').concat(V,'preview-file-close" data-clear-asset>').concat(Ze,`</div> + </div> + </div> + `)}},{key:"__setValueInput",value:function(c){var V=this.model,me=this.el,Ce=V.getDefaultValue(),Ze=me.querySelector("[data-preview-box]"),We=me.querySelector("[data-preview]");Ze.style.display=c&&c!==Ce?"":"none",We.style.backgroundImage=c||V.getDefaultValue()}},{key:"openAssetManager",value:function(){var c,V=this,me=(c=this.em)===null||c===void 0?void 0:c.get("AssetManager");me?.open({select:function(Ce,Ze){var We=(0,J.isString)(Ce)?Ce:Ce.get("src");V.model.upValue(We,{partial:!Ze}),Ze&&me.close()},types:["image"],accept:"image/*"})}}]),Q}(j);function Zt(xe){var Pe=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Q,c=(0,B.Z)(xe);if(Pe){var V=(0,B.Z)(this).constructor;Q=Reflect.construct(c,arguments,V)}else Q=c.apply(this,arguments);return(0,k.Z)(this,Q)}}var Ct=function(xe){(0,A.Z)(Q,xe);var Pe=Zt(Q);function Q(){return(0,y.Z)(this,Q),Pe.apply(this,arguments)}return(0,P.Z)(Q,[{key:"templateInput",value:function(){return""}},{key:"init",value:function(){var c=this.model;this.listenTo(c,"change:unit",this.onValueChange),this.listenTo(c,"change:units",this.render)}},{key:"setValue",value:function(){}},{key:"onRender",value:function(){var c=this.ppfx,V=this.model,me=this.el;if(!this.inputInst){var Ce=V.input;Ce.ppfx=c,Ce.render(),me.querySelector(".".concat(c,"fields")).appendChild(Ce.el),this.input=Ce.inputEl.get(0),this.inputInst=Ce}}},{key:"clearCached",value:function(){j.prototype.clearCached.apply(this,arguments),this.inputInst=null}}]),Q}(j),nn=b(1511);function fe(xe){var Pe=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Q,c=(0,B.Z)(xe);if(Pe){var V=(0,B.Z)(this).constructor;Q=Reflect.construct(c,arguments,V)}else Q=c.apply(this,arguments);return(0,k.Z)(this,Q)}}var se=function(xe){(0,A.Z)(Q,xe);var Pe=fe(Q);function Q(){return(0,y.Z)(this,Q),Pe.apply(this,arguments)}return(0,P.Z)(Q,[{key:"setValue",value:function(c){var V;(V=this.inputInst)===null||V===void 0||V.setValue(c,{fromTarget:1,def:this.model.getDefaultValue()})}},{key:"remove",value:function(){var c=this;Ct.prototype.remove.apply(this,arguments);var V=this.inputInst;V&&V.remove&&V.remove(),["inputInst","$color"].forEach(function(me){return c[me]=null})}},{key:"__handleChange",value:function(c,V){this.model.upValue(c,{partial:V})}},{key:"onRender",value:function(){if(!this.inputInst){this.__handleChange=this.__handleChange.bind(this);var c=this.ppfx,V=this.model,me=this.em,Ce=this.el,Ze=new nn.Z({target:me,model:V,ppfx:c,onChange:this.__handleChange}).render();Ce.querySelector(".".concat(c,"fields")).appendChild(Ze.el),this.input=Ze.inputEl.get(0),this.inputInst=Ze}}}]),Q}(Ct);function be(xe,Pe){var Q=Object.keys(xe);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(xe);Pe&&(c=c.filter(function(V){return Object.getOwnPropertyDescriptor(xe,V).enumerable})),Q.push.apply(Q,c)}return Q}function _e(xe){for(var Pe=1;Pe<arguments.length;Pe++){var Q=arguments[Pe]!=null?arguments[Pe]:{};Pe%2?be(Object(Q),!0).forEach(function(c){(0,we.Z)(xe,c,Q[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(xe,Object.getOwnPropertyDescriptors(Q)):be(Object(Q)).forEach(function(c){Object.defineProperty(xe,c,Object.getOwnPropertyDescriptor(Q,c))})}return xe}function Fe(xe){var Pe=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Q,c=(0,B.Z)(xe);if(Pe){var V=(0,B.Z)(this).constructor;Q=Reflect.construct(c,arguments,V)}else Q=c.apply(this,arguments);return(0,k.Z)(this,Q)}}var He=function(xe){(0,A.Z)(Q,xe);var Pe=Fe(Q);function Q(){return(0,y.Z)(this,Q),Pe.apply(this,arguments)}return(0,P.Z)(Q,[{key:"defaults",value:function(){return _e(_e({},C.getDefaults()),{},{options:[],full:0})}},{key:"getOptions",value:function(){var c=this.attributes,V=c.options,me=c.list;return(V&&V.length?V:me)||[]}},{key:"getOption",value:function(c){var V=this,me=c||this.getValue();return this.getOptions().filter(function(Ce){return V.getOptionId(Ce)===me})[0]||null}},{key:"setOptions",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return this.set("options",c),this}},{key:"addOption",value:function(c){if(c){var V=this.getOptions();this.setOptions([].concat((0,ye.Z)(V),[c]))}return this}},{key:"getOptionId",value:function(c){return(0,Y.isDef)(c.id)?c.id:c.value}},{key:"getOptionLabel",value:function(c){var V,me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ce=me.locale,Ze=Ce===void 0||Ce,We=((0,J.isString)(c)?this.getOption(c):c)||{},it=this.getOptionId(We),Xe=We.label||We.name||it,lt=this.getId();return Ze&&((V=this.em)===null||V===void 0?void 0:V.t("styleManager.options.".concat(lt,".").concat(it)))||Xe}},{key:"initialize",value:function(){for(var c=arguments.length,V=new Array(c),me=0;me<c;me++)V[me]=arguments[me];C.prototype.initialize.apply(this,V),this.listenTo(this,"change:options",this.__onOptionChange)}},{key:"__onOptionChange",value:function(){this.set("list",this.get("options"))}}]),Q}(C);function at(xe){var Pe=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Q,c=(0,B.Z)(xe);if(Pe){var V=(0,B.Z)(this).constructor;Q=Reflect.construct(c,arguments,V)}else Q=c.apply(this,arguments);return(0,k.Z)(this,Q)}}var Ye=function(xe){(0,A.Z)(Q,xe);var Pe=at(Q);function Q(){return(0,y.Z)(this,Q),Pe.apply(this,arguments)}return(0,P.Z)(Q,[{key:"templateInput",value:function(){var c=this.pfx,V=this.ppfx;return` + <div class="`.concat(V,"field ").concat(V,`select"> + <span id="`).concat(c,`input-holder"></span> + <div class="`).concat(V,`sel-arrow"> + <div class="`).concat(V,`d-s-arrow"></div> + </div> + </div> + `)}},{key:"initialize",value:function(){for(var c=arguments.length,V=new Array(c),me=0;me<c;me++)V[me]=arguments[me];j.prototype.initialize.apply(this,V),this.listenTo(this.model,"change:options",this.updateOptions)}},{key:"updateOptions",value:function(){this.input=null,this.onRender()}},{key:"onRender",value:function(){var c=this.model,V=this.pfx,me=c.getOptions();if(!this.input){var Ce=[];me.forEach(function(We){var it=c.getOptionId(We),Xe=c.getOptionLabel(it),lt=We.style?We.style.replace(/"/g,"""):"",ut=lt?'style="'.concat(lt,'"'):"",mt=it.replace(/"/g,""");Ce.push('<option value="'.concat(mt,'" ').concat(ut,">").concat(Xe,"</option>"))});var Ze=this.el.querySelector("#".concat(V,"input-holder"));Ze.innerHTML="<select>".concat(Ce.join(""),"</select>"),this.input=Ze.firstChild}}},{key:"__setValueInput",value:function(c){var V=this.model,me=this.getInputEl(),Ce=V.getOptions()[0],Ze=Ce?V.getOptionId(Ce):"";me&&(me.value=c||Ze)}}]),Q}(j);function gt(xe,Pe){var Q=Object.keys(xe);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(xe);Pe&&(c=c.filter(function(V){return Object.getOwnPropertyDescriptor(xe,V).enumerable})),Q.push.apply(Q,c)}return Q}function Ut(xe){for(var Pe=1;Pe<arguments.length;Pe++){var Q=arguments[Pe]!=null?arguments[Pe]:{};Pe%2?gt(Object(Q),!0).forEach(function(c){(0,we.Z)(xe,c,Q[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(xe,Object.getOwnPropertyDescriptors(Q)):gt(Object(Q)).forEach(function(c){Object.defineProperty(xe,c,Object.getOwnPropertyDescriptor(Q,c))})}return xe}function dn(xe){var Pe=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Q,c=(0,B.Z)(xe);if(Pe){var V=(0,B.Z)(this).constructor;Q=Reflect.construct(c,arguments,V)}else Q=c.apply(this,arguments);return(0,k.Z)(this,Q)}}var rn=function(xe){(0,A.Z)(Q,xe);var Pe=dn(Q);function Q(){return(0,y.Z)(this,Q),Pe.apply(this,arguments)}return(0,P.Z)(Q,[{key:"defaults",value:function(){return Ut(Ut({},He.getDefaults()),{},{full:1})}}]),Q}(He);function Qt(xe){var Pe=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Q,c=(0,B.Z)(xe);if(Pe){var V=(0,B.Z)(this).constructor;Q=Reflect.construct(c,arguments,V)}else Q=c.apply(this,arguments);return(0,k.Z)(this,Q)}}var Ft=function(xe){(0,A.Z)(Q,xe);var Pe=Qt(Q);function Q(){return(0,y.Z)(this,Q),Pe.apply(this,arguments)}return(0,P.Z)(Q,[{key:"templateInput",value:function(){var c=this.ppfx;return'<div class="'.concat(c,"field ").concat(c,'field-radio"></div>')}},{key:"onRender",value:function(){var c=this.pfx,V=this.ppfx,me=this.model,Ce="".concat(V,"radio-item-label"),Ze=me.getName(),We=me.getOptions(),it="".concat(c,"radio ").concat(c,"radio-").concat(Ze),Xe=me.cid;if(!this.input){var lt=[];We.forEach(function(mt){var _t=mt.className?"".concat(mt.className," ").concat(c,"icon ").concat(Ce):"",Dt=me.getOptionId(mt),Bt="".concat(Ze,"-").concat(Dt,"-").concat(Xe),Xt=_t?"":me.getOptionLabel(Dt),un=mt.title?'title="'.concat(mt.title,'"'):"",on=me.getValue()===Dt?"checked":"";lt.push(` + <div class="`.concat(V,`radio-item"> + <input type="radio" class="`).concat(it,'" id="').concat(Bt,'" name="').concat(Ze,"-").concat(Xe,'" value="').concat(Dt,'" ').concat(on,`/> + <label class="`).concat(_t||Ce,'" ').concat(un,' for="').concat(Bt,'">').concat(Xt,`</label> + </div> + `))});var ut=this.el.querySelector(".".concat(V,"field"));ut.innerHTML='<div class="'.concat(V,'radio-items">').concat(lt.join(""),"</div>"),this.input=ut.firstChild}}},{key:"__setValueInput",value:function(c){var V,me=this.model,Ce=c||me.getDefaultValue(),Ze=(V=this.getInputEl())===null||V===void 0?void 0:V.querySelector('[value="'.concat(Ce,'"]'));Ze&&(Ze.checked=!0)}}]),Q}(Ye),ct=b(7610);function kt(xe,Pe){var Q=Object.keys(xe);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(xe);Pe&&(c=c.filter(function(V){return Object.getOwnPropertyDescriptor(xe,V).enumerable})),Q.push.apply(Q,c)}return Q}function qt(xe){for(var Pe=1;Pe<arguments.length;Pe++){var Q=arguments[Pe]!=null?arguments[Pe]:{};Pe%2?kt(Object(Q),!0).forEach(function(c){(0,we.Z)(xe,c,Q[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(xe,Object.getOwnPropertyDescriptors(Q)):kt(Object(Q)).forEach(function(c){Object.defineProperty(xe,c,Object.getOwnPropertyDescriptor(Q,c))})}return xe}function Kt(xe){var Pe=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Q,c=(0,B.Z)(xe);if(Pe){var V=(0,B.Z)(this).constructor;Q=Reflect.construct(c,arguments,V)}else Q=c.apply(this,arguments);return(0,k.Z)(this,Q)}}var sn=function(xe){(0,A.Z)(Q,xe);var Pe=Kt(Q);function Q(){return(0,y.Z)(this,Q),Pe.apply(this,arguments)}return(0,P.Z)(Q,[{key:"defaults",value:function(){return qt(qt({},C.getDefaults()),{},{units:[],unit:"",min:"",max:"",step:1})}},{key:"getUnits",value:function(){return this.get("units")||[]}},{key:"getUnit",value:function(){return this.get("unit")}},{key:"getMin",value:function(){return this.get("min")}},{key:"getMax",value:function(){return this.get("max")}},{key:"getStep",value:function(){return this.get("step")}},{key:"upUnit",value:function(c,V){return this._up({unit:c},V)}},{key:"initialize",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.callParentInit(C,this,c,V);var me=this.get("unit"),Ce=this.get("units");this.input=(0,Y.hasWin)()&&new ct.Z({model:this}),Ce.length&&!me&&this.set("unit",Ce[0],{silent:1}),C.callInit(this,c,V)}},{key:"__getClearProps",value:function(){return qt(qt({},C.prototype.__getClearProps()),{},{unit:""})}},{key:"parseValue",value:function(c){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},me=C.prototype.parseValue.apply(this,arguments),Ce=this.input.validateInputValue(me.value,qt({deepCheck:1},V)),Ze=Ce.value,We=Ce.unit;return me.value=Ze,me.unit=We,me}},{key:"getFullValue",value:function(){var c=this.get("value"),V=this.get("unit");return c=(0,J.isUndefined)(c)?"":c,V=!(0,J.isUndefined)(V)&&c?V:"",c="".concat(c).concat(V),C.prototype.getFullValue.apply(this,[c])}}]),Q}(C);function an(xe,Pe){var Q=Object.keys(xe);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(xe);Pe&&(c=c.filter(function(V){return Object.getOwnPropertyDescriptor(xe,V).enumerable})),Q.push.apply(Q,c)}return Q}function ln(xe){for(var Pe=1;Pe<arguments.length;Pe++){var Q=arguments[Pe]!=null?arguments[Pe]:{};Pe%2?an(Object(Q),!0).forEach(function(c){(0,we.Z)(xe,c,Q[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(xe,Object.getOwnPropertyDescriptors(Q)):an(Object(Q)).forEach(function(c){Object.defineProperty(xe,c,Object.getOwnPropertyDescriptor(Q,c))})}return xe}function Rn(xe){var Pe=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Q,c=(0,B.Z)(xe);if(Pe){var V=(0,B.Z)(this).constructor;Q=Reflect.construct(c,arguments,V)}else Q=c.apply(this,arguments);return(0,k.Z)(this,Q)}}var Hn=function(xe){(0,A.Z)(Q,xe);var Pe=Rn(Q);function Q(){return(0,y.Z)(this,Q),Pe.apply(this,arguments)}return(0,P.Z)(Q,[{key:"defaults",value:function(){return ln(ln({},sn.getDefaults()),{},{showInput:1})}}]),Q}(sn);function Mn(xe,Pe){var Q=Object.keys(xe);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(xe);Pe&&(c=c.filter(function(V){return Object.getOwnPropertyDescriptor(xe,V).enumerable})),Q.push.apply(Q,c)}return Q}function wn(xe){for(var Pe=1;Pe<arguments.length;Pe++){var Q=arguments[Pe]!=null?arguments[Pe]:{};Pe%2?Mn(Object(Q),!0).forEach(function(c){(0,we.Z)(xe,c,Q[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(xe,Object.getOwnPropertyDescriptors(Q)):Mn(Object(Q)).forEach(function(c){Object.defineProperty(xe,c,Object.getOwnPropertyDescriptor(Q,c))})}return xe}function Sn(xe){var Pe=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Q,c=(0,B.Z)(xe);if(Pe){var V=(0,B.Z)(this).constructor;Q=Reflect.construct(c,arguments,V)}else Q=c.apply(this,arguments);return(0,k.Z)(this,Q)}}var pn=function(xe){(0,A.Z)(Q,xe);var Pe=Sn(Q);function Q(){return(0,y.Z)(this,Q),Pe.apply(this,arguments)}return(0,P.Z)(Q,[{key:"events",value:function(){return wn(wn({},Ct.prototype.events),{},{"change [type=range]":"inputValueChanged","input [type=range]":"inputValueChangedSoft",change:""})}},{key:"templateInput",value:function(c){var V=this.ppfx;return` + <div class="`.concat(V,"field ").concat(V,`field-range"> + <input type="range" min="`).concat(c.get("min"),'" max="').concat(c.get("max"),'" step="').concat(c.get("step"),`"/> + </div> + `)}},{key:"getSliderEl",value:function(){return this.slider||(this.slider=this.el.querySelector("input[type=range]")),this.slider}},{key:"inputValueChanged",value:function(){this.model.upValue(this.getSliderEl().value)}},{key:"inputValueChangedSoft",value:function(){this.model.upValue(this.getSliderEl().value,{partial:!0})}},{key:"setValue",value:function(c){var V=this.model,me=V.parseValue(c);this.getSliderEl().value=c===""?V.getDefaultValue():parseFloat(me.value),Ct.prototype.setValue.apply(this,arguments)}},{key:"onRender",value:function(){Ct.prototype.onRender.apply(this,arguments),this.model.get("showInput")||(this.inputInst.el.style.display="none")}},{key:"clearCached",value:function(){Ct.prototype.clearCached.apply(this,arguments),this.slider=null}}]),Q}(Ct);let vn=$().Collection.extend(G.Z).extend({extendViewApi:1,init:function(){var xe=this.opts,Pe=this.em,Q=xe.module||Pe?.get("StyleManager");Q&&(Q.__listenAdd(this,Q.events.propertyAdd),Q.__listenRemove(this,Q.events.propertyRemove))},types:[{id:"stack",model:F,view:tt,isType:function(xe){if(xe&&xe.type=="stack")return xe}},{id:"composite",model:f,view:Ee,isType:function(xe){if(xe&&xe.type=="composite")return xe}},{id:"file",model:C,view:Ht,isType:function(xe){if(xe&&xe.type=="file")return xe}},{id:"color",model:C,view:se,isType:function(xe){if(xe&&xe.type=="color")return xe}},{id:"select",model:He,view:Ye,isType:function(xe){if(xe&&xe.type=="select")return xe}},{id:"radio",model:rn,view:Ft,isType:function(xe){if(xe&&xe.type=="radio")return xe}},{id:"slider",model:Hn,view:pn,isType:function(xe){if(xe&&xe.type=="slider")return xe}},{id:"integer",model:sn,view:Ct,isType:function(xe){if(xe&&xe.type=="integer")return xe}},{id:"number",model:sn,view:Ct,isType:function(xe){if(xe&&xe.type=="number")return xe}},{id:"base",model:C,view:j,isType:function(xe){return xe.type="base",xe}}]});var Qn=["extend"];function kn(xe,Pe){var Q=Object.keys(xe);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(xe);Pe&&(c=c.filter(function(V){return Object.getOwnPropertyDescriptor(xe,V).enumerable})),Q.push.apply(Q,c)}return Q}function Bn(xe){for(var Pe=1;Pe<arguments.length;Pe++){var Q=arguments[Pe]!=null?arguments[Pe]:{};Pe%2?kn(Object(Q),!0).forEach(function(c){(0,we.Z)(xe,c,Q[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(xe,Object.getOwnPropertyDescriptors(Q)):kn(Object(Q)).forEach(function(c){Object.defineProperty(xe,c,Object.getOwnPropertyDescriptor(Q,c))})}return xe}function fn(xe){var Pe=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Q,c=(0,B.Z)(xe);if(Pe){var V=(0,B.Z)(this).constructor;Q=Reflect.construct(c,arguments,V)}else Q=c.apply(this,arguments);return(0,k.Z)(this,Q)}}var Gn=function(xe){(0,A.Z)(Q,xe);var Pe=fn(Q);function Q(){return(0,y.Z)(this,Q),Pe.apply(this,arguments)}return(0,P.Z)(Q,[{key:"defaults",value:function(){return{id:"",name:"",open:!0,visible:!0,buildProps:"",extendBuilded:1,properties:[]}}},{key:"initialize",value:function(c){var V=this,me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ce=me.em;this.em=Ce;var Ze=c||{},We=this.buildProperties(Ze.buildProps),it=this.get("name")||"",Xe=[];!this.get("id")&&this.set("id",it.replace(/ /g,"_").toLowerCase()),Xe=(Xe=We?this.extendProperties(We):this.get("properties").map(function(ut){return(0,J.isString)(ut)?V.buildProperties(ut)[0]:ut}).filter(Boolean)).map(function(ut){return V.checkExtend(ut)});var lt=new vn(Xe,{em:Ce});lt.sector=this,this.set("properties",lt)}},{key:"getId",value:function(){return this.get("id")}},{key:"getName",value:function(){var c,V=this.getId();return((c=this.em)===null||c===void 0?void 0:c.t("styleManager.sectors.".concat(V)))||this.get("name")}},{key:"setName",value:function(c){return this.set("name",c)}},{key:"isOpen",value:function(){return!!this.get("open")}},{key:"setOpen",value:function(c){return this.set("open",c)}},{key:"isVisible",value:function(){return!!this.get("visible")}},{key:"getProperties",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},V=this.get("properties"),me=V.models?(0,ye.Z)(V.models):V;return me.filter(function(Ce){var Ze=!0;return c.withValue&&(Ze=Ce.hasValue({noParent:!0})),c.withParentValue&&(Ze=!Ce.hasValue({noParent:!0})&&Ce.hasValue()),Ze})}},{key:"getProperty",value:function(c){return this.getProperties().filter(function(V){return V.get("id")===c})[0]||null}},{key:"addProperty",value:function(c,V){return this.get("properties").add(this.checkExtend(c),V)}},{key:"extendProperties",value:function(c,V,me){for(var Ce=c.length,Ze=V||this.get("properties"),We=this.get("extendBuilded"),it=[],Xe=0,lt=Ze.length;Xe<lt;Xe++){for(var ut=Ze[Xe],mt=0,_t=0;_t<Ce;_t++){var Dt=c[_t];if(!(ut.property!=Dt.property&&ut.id!=Dt.property)){var Bt=ut.properties;Bt&&Bt.length&&(ut.properties=this.extendProperties(Dt.properties||[],Bt,1)),c[_t]=We?(0,J.extend)(Dt,ut):ut,it[_t]=c[_t],mt=1}}mt||(c.push(ut),it.push(ut))}return me?it.filter(function(Xt){return Xt}):c}},{key:"checkExtend",value:function(c){var V=((0,J.isString)(c)?{extend:c}:c)||{},me=V.extend,Ce=(0,w.Z)(V,Qn);return me?Bn(Bn({},this.buildProperties([me])[0]||{}),Ce):c}},{key:"buildProperties",value:function(c){var V,me=c||[];if(!me.length)return[];var Ce=(V=this.em)===null||V===void 0?void 0:V.get("StyleManager").builtIn;return Ce?.build(me)}}]),Q}(te.Model);function gn(xe,Pe){var Q=Object.keys(xe);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(xe);Pe&&(c=c.filter(function(V){return Object.getOwnPropertyDescriptor(xe,V).enumerable})),Q.push.apply(Q,c)}return Q}function Pn(xe){for(var Pe=1;Pe<arguments.length;Pe++){var Q=arguments[Pe]!=null?arguments[Pe]:{};Pe%2?gn(Object(Q),!0).forEach(function(c){(0,we.Z)(xe,c,Q[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(xe,Object.getOwnPropertyDescriptors(Q)):gn(Object(Q)).forEach(function(c){Object.defineProperty(xe,c,Object.getOwnPropertyDescriptor(Q,c))})}return xe}function Kn(xe){var Pe=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Q,c=(0,B.Z)(xe);if(Pe){var V=(0,B.Z)(this).constructor;Q=Reflect.construct(c,arguments,V)}else Q=c.apply(this,arguments);return(0,k.Z)(this,Q)}}var At=function(xe){(0,A.Z)(Q,xe);var Pe=Kn(Q);function Q(){return(0,y.Z)(this,Q),Pe.apply(this,arguments)}return(0,P.Z)(Q,[{key:"initialize",value:function(c){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},me=V.module,Ce=V.em;this.em=Ce,this.module=me,this.listenTo(this,"reset",this.onReset)}},{key:"model",value:function(c){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},me=V.collection.em;return new Gn(c,Pn(Pn({},V),{},{em:me}))}},{key:"onReset",value:function(c){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},me=V.previousModels||[];me.forEach(function(Ce){return Ce.get("properties").reset()})}}]),Q}(te.Collection),xt=b(885),Rt=["extend"];function ir(xe,Pe){var Q=Object.keys(xe);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(xe);Pe&&(c=c.filter(function(V){return Object.getOwnPropertyDescriptor(xe,V).enumerable})),Q.push.apply(Q,c)}return Q}function Cn(xe){for(var Pe=1;Pe<arguments.length;Pe++){var Q=arguments[Pe]!=null?arguments[Pe]:{};Pe%2?ir(Object(Q),!0).forEach(function(c){(0,we.Z)(xe,c,Q[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(xe,Object.getOwnPropertyDescriptors(Q)):ir(Object(Q)).forEach(function(c){Object.defineProperty(xe,c,Object.getOwnPropertyDescriptor(Q,c))})}return xe}var $t,Jt=function(xe){return xe.map(function(Pe){return{id:Pe}})},Nn=function(){function xe(){(0,y.Z)(this,xe),this.typeNumber="number",this.typeColor="color",this.typeRadio="radio",this.typeSelect="select",this.typeFile="file",this.typeSlider="slider",this.typeComposite="composite",this.typeStack="stack",this.unitsSize=["px","%","em","rem","vh","vw"],this.unitsSizeNoPerc=["px","em","rem","vh","vw"],this.unitsTime=["s","ms"],this.unitsAngle=["deg","rad","grad"],this.fixedValues=["initial","inherit","auto"];var Pe=", sans-serif",Q=["flex-start","flex-end","center"],c=[].concat(Q,["baseline","stretch"]);this.optsBgSize=Jt(["auto","cover","contain"]),this.optsBgAttach=Jt(["scroll","fixed","local"]),this.optsBgRepeat=Jt(["repeat","repeat-x","repeat-y","no-repeat"]),this.optsWrap=Jt(["nowrap","wrap","wrap-reverse"]),this.optsOverflow=Jt(["visible","hidden","scroll","auto"]),this.optsDir=Jt(["row","row-reverse","column","column-reverse"]),this.opstDisplay=Jt(["block","inline","inline-block","flex","none"]),this.optsTransitFn=Jt(["linear","ease","ease-in","ease-out","ease-in-out"]),this.optsCursor=Jt(["auto","pointer","copy","crosshair","grab","grabbing","help","move","text"]),this.optsFloat=Jt(["none","left","right"]),this.optsPos=Jt(["static","relative","absolute","fixed"]),this.optsTextAlign=Jt(["left","center","right","justify"]),this.optsFlexAlign=Jt(c),this.optsJustCont=Jt([].concat(Q,["space-between","space-around","space-evenly"])),this.optsAlignCont=Jt([].concat(Q,["space-between","space-around","stretch"])),this.optsAlignSelf=Jt(["auto"].concat((0,ye.Z)(c))),this.optsTransitProp=Jt(["all","width","height","background-color","transform","box-shadow","opacity"]),this.optsBorderStyle=Jt(["none","solid","dotted","dashed","double","groove","ridge","inset","outset"]),this.optsBgPos=Jt(["left top","left center","left bottom","right top","right center","right bottom","center top","center center","center bottom"]),this.optsWeight=[{id:"100",label:"Thin"},{id:"200",label:"Extra-Light"},{id:"300",label:"Light"},{id:"400",label:"Normal"},{id:"500",label:"Medium"},{id:"600",label:"Semi-Bold"},{id:"700",label:"Bold"},{id:"800",label:"Extra-Bold"},{id:"900",label:"Ultra-Bold"}],this.optsShadowType=[{id:"",label:"Outside"},{id:"inset",label:"Inside"}],this.optsFonts=["Arial, Helvetica"+Pe,"Arial Black, Gadget"+Pe,"Brush Script MT"+Pe,"Comic Sans MS, cursive"+Pe,"Courier New, Courier, monospace","Georgia, serif","Helvetica"+Pe,"Impact, Charcoal"+Pe,"Lucida Sans Unicode, Lucida Grande"+Pe,"Tahoma, Geneva"+Pe,"Times New Roman, Times, serif","Trebuchet MS, Helvetica"+Pe,"Verdana, Geneva"+Pe].map(function(V){return{id:V,label:V.split(",")[0]}}),this.fixedFontSizes=["medium","xx-small","x-small","small","large","x-large","xx-large","smaller","larger","length","initial","inherit"],this.fixedLetSpace=["normal","initial","inherit"],this.requireFlex={display:["flex"]},this.init()}return(0,P.Z)(xe,[{key:"__sub",value:function(Pe){var Q=this;return function(){return Pe.map(function(c){if((0,J.isString)(c))return Q.get(c);var V=c.extend,me=(0,w.Z)(c,Rt);return Cn(Cn({},Q.get(V)),me)})}}},{key:"init",value:function(){var Pe=this,Q=this.fixedValues,c=this.requireFlex,V=this.typeNumber;return this.props={},[["text-shadow-h",{type:V,default:"0",units:this.unitsSizeNoPerc}],["top",{default:"auto",units:this.unitsSize,fixedValues:Q},"text-shadow-h"],["right",{},"top"],["bottom",{},"top"],["left",{},"top"],["margin-top",{default:"0"},"top"],["margin-right",{},"margin-top"],["margin-bottom",{},"margin-top"],["margin-left",{},"margin-top"],["padding-top",{min:0},"margin-top"],["padding-right",{},"padding-top"],["padding-bottom",{},"padding-top"],["padding-left",{},"padding-top"],["width",{min:0},"top"],["min-width",{},"width"],["max-width",{},"width"],["height",{},"width"],["min-height",{},"width"],["max-height",{},"width"],["flex-basis",{requiresParent:c},"width"],["font-size",{default:"medium",fixedValues:this.fixedFontSizes},"width"],["letter-spacing",{default:"normal",fixedValues:this.fixedLetSpace},"top"],["line-height",{},"letter-spacing"],["text-shadow-v",{},"text-shadow-h"],["text-shadow-blur",{min:0},"text-shadow-h"],["border-radius-c",{property:"border-radius",fixedValues:void 0},"padding-top"],["border-top-left-radius",{},"border-radius-c"],["border-top-right-radius",{},"border-radius-c"],["border-bottom-left-radius",{},"border-radius-c"],["border-bottom-right-radius",{},"border-radius-c"],["border-width",{units:this.unitsSizeNoPerc},"border-radius-c"],["box-shadow-h",{},"text-shadow-h"],["box-shadow-v",{},"text-shadow-h"],["box-shadow-blur",{default:"5px"},"text-shadow-blur"],["box-shadow-spread",{},"text-shadow-h"],["transition-duration",{default:"2s",units:this.unitsTime},"border-radius-c"],["perspective",{},"border-radius-c"],["transform-rotate-x",{functionName:"rotateX",units:this.unitsAngle,default:"0",type:V}],["transform-rotate-y",{functionName:"rotateY"},"transform-rotate-x"],["transform-rotate-z",{functionName:"rotateZ"},"transform-rotate-x"],["transform-scale-x",{default:"1",functionName:"scaleX",units:void 0},"transform-rotate-x"],["transform-scale-y",{functionName:"scaleY"},"transform-scale-x"],["transform-scale-z",{functionName:"scaleZ"},"transform-scale-x"],["order",{type:V,default:"0",requiresParent:c}],["flex-grow",{},"order"],["flex-shrink",{default:"1"},"order"],["float",{type:this.typeRadio,default:"none",options:this.optsFloat}],["position",{default:"static",options:this.optsPos},"float"],["text-align",{default:"left",options:this.optsTextAlign},"float"],["color",{type:this.typeColor,default:"black"}],["text-shadow-color",{},"color"],["border-color",{},"color"],["box-shadow-color",{},"color"],["background-color",{default:"none"},"color"],["background-image",{type:this.typeFile,functionName:"url",default:"none",full:!0}],["opacity",{type:this.typeSlider,default:"1",min:0,max:1,step:.01}],["display",{type:this.typeSelect,default:"block",options:this.opstDisplay}],["flex-direction",{default:"row",options:this.optsDir,requires:c},"display"],["flex-wrap",{default:"nowrap",options:this.optsWrap},"flex-direction"],["justify-content",{default:"flex-start",options:this.optsJustCont},"flex-wrap"],["align-items",{default:"stretch",options:this.optsFlexAlign},"flex-wrap"],["align-content",{options:this.optsAlignCont},"align-items"],["align-self",{default:"auto",options:this.optsAlignSelf,requiresParent:c},"display"],["font-family",{default:"Arial, Helvetica, sans-serif",options:this.optsFonts},"display"],["font-weight",{default:"400",options:this.optsWeight},"display"],["border-style",{default:"solid",options:this.optsBorderStyle},"display"],["box-shadow-type",{default:"",options:this.optsShadowType},"display"],["background-repeat",{default:"repeat",options:this.optsBgRepeat},"display"],["background-position",{default:"left top",options:this.optsBgPos},"display"],["background-attachment",{default:"scroll",options:this.optsBgAttach},"display"],["background-size",{default:"auto",options:this.optsBgSize},"display"],["transition-property",{default:"width",options:this.optsTransitProp},"display"],["transition-timing-function",{default:"ease",options:this.optsTransitFn},"display"],["cursor",{default:"auto",options:this.optsCursor},"display"],["overflow",{default:"visible",options:this.optsOverflow},"display"],["overflow-x",{},"overflow"],["overflow-y",{},"overflow"],["margin",{type:this.typeComposite,properties:this.__sub([{extend:"margin-top",id:"margin-top-sub"},{extend:"margin-right",id:"margin-right-sub"},{extend:"margin-bottom",id:"margin-bottom-sub"},{extend:"margin-left",id:"margin-left-sub"}])}],["padding",{properties:this.__sub([{extend:"padding-top",id:"padding-top-sub"},{extend:"padding-right",id:"padding-right-sub"},{extend:"padding-bottom",id:"padding-bottom-sub"},{extend:"padding-left",id:"padding-left-sub"}])},"margin"],["border",{properties:this.__sub([{extend:"border-width",id:"border-width-sub"},{extend:"border-style",id:"border-style-sub"},{extend:"border-color",id:"border-color-sub"}])},"margin"],["border-radius",{properties:this.__sub([{extend:"border-top-left-radius",id:"border-top-left-radius-sub"},{extend:"border-top-right-radius",id:"border-top-right-radius-sub"},{extend:"border-bottom-right-radius",id:"border-bottom-right-radius-sub"},{extend:"border-bottom-left-radius",id:"border-bottom-left-radius-sub"}])},"margin"],["transform",{properties:this.__sub(["transform-rotate-x","transform-rotate-y","transform-rotate-z","transform-scale-x","transform-scale-y","transform-scale-z"])},"margin"],["transition",{type:this.typeStack,properties:this.__sub([{extend:"transition-property",id:"transition-property-sub"},{extend:"transition-duration",id:"transition-duration-sub"},{extend:"transition-timing-function",id:"transition-timing-function-sub"}])}],["box-shadow",{preview:!0,layerLabel:function(me,Ce){var Ze=Ce.values,We=Ze["box-shadow-h"],it=Ze["box-shadow-v"],Xe=Ze["box-shadow-blur"],lt=Ze["box-shadow-spread"];return"".concat(We," ").concat(it," ").concat(Xe," ").concat(lt)},properties:this.__sub(["box-shadow-h","box-shadow-v","box-shadow-blur","box-shadow-spread","box-shadow-color","box-shadow-type"])},"transition"],["text-shadow",{default:"none",layerLabel:function(me,Ce){var Ze=Ce.values,We=Ze["text-shadow-h"],it=Ze["text-shadow-v"],Xe=Ze["text-shadow-blur"];return"".concat(We," ").concat(it," ").concat(Xe)},properties:this.__sub(["text-shadow-h","text-shadow-v","text-shadow-blur","text-shadow-color"])},"box-shadow"],["background",{detached:!0,layerLabel:function(me,Ce){var Ze=Ce.values,We=Ze["background-repeat-sub"],it=Ze["background-position-sub"],Xe=Ze["background-attachment-sub"],lt=Ze["background-size-sub"];return"".concat(We," ").concat(it," ").concat(Xe," ").concat(lt)},properties:this.__sub([{extend:"background-image",id:"background-image-sub"},{extend:"background-repeat",id:"background-repeat-sub"},{extend:"background-position",id:"background-position-sub"},{extend:"background-attachment",id:"background-attachment-sub"},{extend:"background-size",id:"background-size-sub"}])},"box-shadow"]].forEach(function(me){var Ce=(0,xt.Z)(me,3),Ze=Ce[0],We=Ce[1],it=Ce[2];Pe.add(Ze,We||{},{from:it})}),this}},{key:"add",value:function(Pe){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},V=c.from||"",me=this.props[V||Pe]||{},Ce=Cn(Cn({},me),{},{property:Pe},Q);return Ce.properties&&(0,J.isFunction)(Ce.properties)&&(Ce.properties=Ce.properties()),this.props[Pe]=Ce,Ce}},{key:"get",value:function(Pe){return this.props[Pe]||null}},{key:"build",value:function(Pe){var Q=this,c=[];return((0,J.isString)(Pe)?[Pe]:Pe).forEach(function(V){c.push(Q.get(V)||{property:V})}),c}}]),xe}(),Xn=b(168),ot=b(1629);function Nt(xe){var Pe=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Q,c=(0,B.Z)(xe);if(Pe){var V=(0,B.Z)(this).constructor;Q=Reflect.construct(c,arguments,V)}else Q=c.apply(this,arguments);return(0,k.Z)(this,Q)}}var he=function(xe){(0,A.Z)(Q,xe);var Pe=Nt(Q);function Q(){return(0,y.Z)(this,Q),Pe.apply(this,arguments)}return(0,P.Z)(Q,[{key:"template",value:function(c){var V,me=c.pfx,Ce=c.label,Ze=(V=this.em)===null||V===void 0?void 0:V.getConfig("icons"),We=Ze?.caret||"",it="".concat(me,"sector-");return(0,ot.Z)($t||($t=(0,Xn.Z)([` + <div class="`,`title" data-sector-title> + <div class="`,'caret">$',`</div> + <div class="`,'label">',`</div> + </div> + `])),it,it,We,it,Ce)}},{key:"events",value:function(){return{"click [data-sector-title]":"toggle"}}},{key:"initialize",value:function(c){var V=c.config||{},me=this.model,Ce=V.em;this.config=V,this.em=Ce,this.pfx=V.stylePrefix||"",this.listenTo(me,"destroy remove",this.remove),this.listenTo(me,"change:open",this.updateOpen),this.listenTo(me,"change:visible",this.updateVisibility)}},{key:"updateOpen",value:function(){var c=this.$el,V=this.model,me=this.pfx,Ce=V.isOpen();c[Ce?"addClass":"removeClass"]("".concat(me,"open")),this.getPropertiesEl().style.display=Ce?"":"none"}},{key:"updateVisibility",value:function(){this.el.style.display=this.model.isVisible()?"":"none"}},{key:"getPropertiesEl",value:function(){var c=this.$el,V=this.pfx;return c.find(".".concat(V,"properties")).get(0)}},{key:"toggle",value:function(){var c=this.model;c.setOpen(!c.get("open"))}},{key:"renderProperties",value:function(){var c=this.model,V=this.config,me=c.get("properties");if(me){var Ce=new E({collection:me,config:V});this.$el.append(Ce.render().el)}}},{key:"render",value:function(){var c=this.pfx,V=this.model,me=this.$el,Ce=V.getId(),Ze=V.getName();return me.html(this.template({pfx:c,label:Ze})),this.renderProperties(),me.attr("class","".concat(c,"sector ").concat(c,"sector__").concat(Ce," no-select")),this.updateOpen(),this}}]),Q}(te.View);function Te(xe){var Pe=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Q,c=(0,B.Z)(xe);if(Pe){var V=(0,B.Z)(this).constructor;Q=Reflect.construct(c,arguments,V)}else Q=c.apply(this,arguments);return(0,k.Z)(this,Q)}}var Ke=function(xe){(0,A.Z)(Q,xe);var Pe=Te(Q);function Q(){return(0,y.Z)(this,Q),Pe.apply(this,arguments)}return(0,P.Z)(Q,[{key:"initialize",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},V=c.module,me=c.config,Ce=me===void 0?{}:me,Ze=this.collection;this.pfx=Ce.stylePrefix||"",this.ppfx=Ce.pStylePrefix||"",this.config=Ce,this.module=V,this.listenTo(Ze,"add",this.addTo),this.listenTo(Ze,"reset",this.render)}},{key:"remove",value:function(){var c=this;te.View.prototype.remove.apply(this,arguments),["config","module","em"].forEach(function(V){return c[V]={}})}},{key:"addTo",value:function(c,V){var me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.addToCollection(c,null,me)}},{key:"addToCollection",value:function(c,V){var me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ce=this.config,Ze=this.el,We=V||Ze,it=new he({model:c,config:Ce}).render().el;return(0,K.$Q)(We,it,me.at),it}},{key:"render",value:function(){var c=this,V=this.$el,me=this.pfx,Ce=this.ppfx;V.empty();var Ze=document.createDocumentFragment();return this.collection.each(function(We){return c.addToCollection(We,Ze)}),V.append(Ze),V.addClass("".concat(me,"sectors ").concat(Ce,"one-bg ").concat(Ce,"two-color")),this}}]),Q}(te.View);function U(xe,Pe){var Q=Object.keys(xe);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(xe);Pe&&(c=c.filter(function(V){return Object.getOwnPropertyDescriptor(xe,V).enumerable})),Q.push.apply(Q,c)}return Q}function oe(xe){for(var Pe=1;Pe<arguments.length;Pe++){var Q=arguments[Pe]!=null?arguments[Pe]:{};Pe%2?U(Object(Q),!0).forEach(function(c){(0,we.Z)(xe,c,Q[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(xe,Object.getOwnPropertyDescriptors(Q)):U(Object(Q)).forEach(function(c){Object.defineProperty(xe,c,Object.getOwnPropertyDescriptor(Q,c))})}return xe}var ne="style",ge="".concat(ne,":"),Ge="".concat(ge,"sector"),yt="".concat(Ge,":add"),nt="".concat(Ge,":remove"),Qe="".concat(Ge,":update"),wt="".concat(ge,"property"),jt="".concat(wt,":add"),Mt="".concat(wt,":remove"),en="".concat(wt,":update"),Gt="".concat(ge,"layer:select"),tn="".concat(ge,"target"),Dn="".concat(ge,"custom"),cn=function(xe){return xe||xe===0};let zn=function(){var xe,Pe,Q;return oe(oe({},N.Z),{},{Sector:Gn,events:{all:ne,sectorAdd:yt,sectorRemove:nt,sectorUpdate:Qe,propertyAdd:jt,propertyRemove:Mt,propertyUpdate:en,layerSelect:Gt,target:tn,custom:Dn},name:"StyleManager",init:function(){var c=this,V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(0,J.bindAll)(this,"__clearStateTarget"),this.__initConfig(L,V);var me=this.config,Ce=me.em,Ze=me.pStylePrefix;Ze&&(me.stylePrefix=Ze+me.stylePrefix),this.builtIn=new Nn,xe=new vn([],{em:Ce,module:this}),Pe=new At([],oe(oe({},me),{},{module:this}));var We=new te.Model({targets:[]});this.model=We,this.__listenAdd(Pe,yt),this.__listenRemove(Pe,nt),this.__listenUpdate(Pe,Qe);var it="component:toggled component:update:classes change:state change:device frame:resized selector:type",Xe=(0,J.debounce)(function(){return c.__upSel()});We.listenTo(Ce,it,Xe),We.listenTo(Ce,"component:toggled",this.__clearStateTarget);var lt=(0,J.debounce)(function(){c.__upProps(),c.__trgCustom()});We.listenTo(Ce,"styleable:change undo redo",lt);var ut=(0,J.debounce)(function(){return c.__trgCustom()});return We.listenTo(Ce,"".concat(Gt," ").concat(tn),ut),We.on("change:lastTarget",function(){return Ce.trigger(tn,c.getSelected())}),this},__upSel:function(){this.select(this.em.getSelectedAll())},__trgCustom:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.__ctn=this.__ctn||c.container,this.em.trigger(this.events.custom,{container:this.__ctn})},__trgEv:function(c){for(var V,me=arguments.length,Ce=new Array(me>1?me-1:0),Ze=1;Ze<me;Ze++)Ce[Ze-1]=arguments[Ze];(V=this.em).trigger.apply(V,[c].concat(Ce))},__clearStateTarget:function(){var c=this,V=this.em,me=this.__getStateTarget();me&&V?.skip(function(){V.get("CssComposer").remove(me),c.model.set({stateTarget:null})})},onLoad:function(){Pe.add(this.config.sectors,{silent:!0})},postRender:function(){this.__appendTo()},addSector:function(c,V){var me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ce=this.getSector(c);return Ce||(V.id=c,Ce=Pe.add(V,me)),Ce},getSector:function(c){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},me=Pe.where({id:c})[0];return!me&&V.warn&&this._logNoSector(c),me||null},getSectors:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},V=Pe&&Pe.models?c.array?(0,ye.Z)(Pe.models):Pe:[];return c.visible?V.filter(function(me){return me.isVisible()}):V},removeSector:function(c){return this.getSectors().remove(this.getSector(c,{warn:1}))},addProperty:function(c,V){var me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ce=this.getSector(c,{warn:1}),Ze=null;return Ce&&(Ze=Ce.addProperty(V,me)),Ze},getProperty:function(c,V){var me,Ce=this.getSector(c,{warn:1});return Ce&&(me=Ce.get("properties").filter(function(Ze){return Ze.get("property")===V||Ze.get("id")===V})[0]),me||null},getProperties:function(c){var V=null,me=this.getSector(c,{warn:1});return me&&(V=me.get("properties")),V},removeProperty:function(c,V){var me=this.getProperties(c);return me?me.remove(this.getProperty(c,V)):null},select:function(c){var V=this,me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ce=this.em,Ze=(0,J.isArray)(c)?c:[c],We=me.stylable,it=Ce.get("CssComposer"),Xe=[];Ze.filter(Boolean).forEach(function(Bt){var Xt=Bt;if((0,J.isString)(Bt)){var un=it.getRule(Bt)||it.setRule(Bt);!(0,J.isUndefined)(We)&&un.set({stylable:We}),Xt=un}Xe.push(Xt)});var lt=me.component||Xe.filter(function(Bt){return(0,Y.isComponent)(Bt)}).reverse()[0];Xe=Xe.map(function(Bt){return V.getModelToStyle(Bt)});var ut=Ce.getState(),mt=Xe.slice().reverse()[0],_t=this.getParentRules(mt,{state:ut,component:lt}),Dt=this.__getStateTarget();return Ce.skip(function(){var Bt;if(ut&&mt!=null&&(Bt=mt.getState)!==null&&Bt!==void 0&&Bt.call(mt)){var Xt=mt.getStyle();Dt?Dt.setStyle(Xt):Dt=it.getAll().add({selectors:"gjs-selected",style:Xt,shallow:!0,important:!0})}else Dt&&(it.remove(Dt),Dt=null)}),this.model.set({targets:Xe,lastTarget:mt,lastTargetParents:_t,stateTarget:Dt,component:lt}),this.__upProps(me),Xe},getSelected:function(){return this.model.get("lastTarget")||null},getSelectedAll:function(){return this.model.get("targets")},getSelectedParents:function(){return this.model.get("lastTargetParents")||[]},__getStateTarget:function(){return this.model.get("stateTarget")||null},addStyleTargets:function(c,V){this.getSelectedAll().map(function(Ze){return Ze.addStyle(c,V)});var me=this.getSelected(),Ce=this.__getStateTarget();me&&Ce?.setStyle(me.getStyle(),V)},getBuiltIn:function(c){return this.builtIn.get(c)},getBuiltInAll:function(){return this.builtIn.props},addBuiltIn:function(c,V){return this.builtIn.add(c,V)},getModelToStyle:function(c){var V,me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ce=this.em,Ze=me.skipAdd;if(Ce&&(V=c)!==null&&V!==void 0&&V.toHTML){var We,it=Ce.getConfig(),Xe=Ce.get("UndoManager"),lt=Ce.get("CssComposer"),ut=Ce.get("SelectorManager"),mt=ut?ut.getConfig():{},_t=it.devicePreviewMode?"":Ce.get("state"),Dt=c.get("classes"),Bt=Dt.getStyleable(),Xt=Bt.length,un=!mt.componentFirst||me.useClasses,on={noCount:1},yn={state:_t,addOpts:on};if(Xe.stop(),Xt&&un){var An=Ce.getCurrentMedia();(We=lt.get(Bt,_t,An))||Ze||(We=lt.add(Bt,_t,An,{},on))}else if(it.avoidInlineStyle){var vt=c.getId();!(We=lt.getIdRule(vt,yn))&&!Ze&&(We=lt.setIdRule(vt,{},yn)),c.is("wrapper")&&We.set("wrapper",1,on)}We&&(c=We),Xe.start()}return c},getParentRules:function(c){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},me=V.state,Ce=V.component,Ze=this.em,We=[];if(Ze&&c){var it=Ce,Xe=Ze.get("CssComposer"),lt=Ze.get("CodeManager").getGenerator("css"),ut=c.toHTML?c:c.getComponent(),mt={combination:!0,array:!0},_t=[],Dt=[],Bt=[];ut?(_t=Xe.getRules("#".concat(ut.getId())),Bt=(Dt=it?Xe.getRules(it.getSelectors().getFullName(mt)):[]).concat(_t)):(_t=it?Xe.getRules("#".concat(it.getId())):[],Dt=Xe.getRules(c.getSelectors().getFullName(mt)),Bt=_t.concat(Dt));var Xt=Bt.filter(function(un){return(0,J.isUndefined)(me)?1:un.get("state")===me}).sort(lt.sortRules).reverse();We=Xt.slice(Xt.indexOf(c)+1)}return We},addType:function(c,V){xe.addType(c,V)},getType:function(c){return xe.getType(c)},getTypes:function(){return xe.getTypes()},createType:function(c){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},me=V.model,Ce=me===void 0?{}:me,Ze=V.view,We=Ze===void 0?{}:Ze,it=this.config,Xe=this.getType(c);if(Xe)return new Xe.view(oe({model:new Xe.model(Ce),config:it},We))},render:function(){var c=this.config,V=this.em,me=Q&&Q.el;return(Q=new Ke({el:me,em:V,config:c,collection:Pe,module:this})).render().el},_logNoSector:function(c){var V=this.em;V&&V.logWarning("'".concat(c,"' sector not found"))},__upProps:function(c){var V=this,me=this.getSelected();if(me){var Ce=this.model.get("component"),Ze=this.getSelectedParents(),We=me.getStyle(),it=Ze.map(function(Xe){return{target:Xe,style:Xe.getStyle()}});Pe.map(function(Xe){Xe.getProperties().map(function(lt){V.__upProp(lt,We,it,c)})}),Pe.forEach(function(Xe){var lt=Xe.getProperties();lt.forEach(function(mt){var _t=mt.__checkVisibility({target:me,component:Ce,sectors:Pe});mt.set("visible",_t)});var ut=lt.some(function(mt){return mt.isVisible()});Xe.set("visible",ut)})}},__upProp:function(c,V,me,Ce){var Ze=this,We=c.getName(),it=V[We],Xe=cn(it),lt=c.getType()==="stack",ut=c.getType()==="composite",mt=oe(oe({},Ce),{},{__up:!0}),_t=!ut&&!lt,Dt=lt?c.__getLayersFromStyle(V):[],Bt=ut?c.__getPropsFromStyle(V):{},Xt=Xe?it:null,un=null;if(lt&&Dt===null||ut&&Bt===null){var on=lt?"__getLayersFromStyle":"__getPropsFromStyle",yn=me.filter(function(hn){return c[on](hn.style)!==null})[0];if(yn){Xt=yn.style[We],un=yn.target;var An=c[on](yn.style);lt?Dt=An:Bt=An}}else if(!Xe){Xt=null;var vt=me.filter(function(hn){return cn(hn.style[We])})[0];vt&&(Xt=vt.style[We],un=vt.target)}if(c.__setParentTarget(un),_t&&c.__getFullValue()!==Xt&&c.upValue(Xt,mt),lt&&c.__setLayers(Dt||[]),ut){var Tt=c.getProperties();if(c.isDetached()){var Lt=c.__getPropsFromStyle(V,{byName:!0})||{},St=me.map(function(hn){return oe(oe({},hn),{},{style:c.__getPropsFromStyle(hn.style,{byName:!0})||{}})});Tt.map(function(hn){return Ze.__upProp(hn,Lt,St,Ce)})}else c.__setProperties(Bt||{},mt),c.getProperties().map(function(hn){return hn.__setParentTarget(un)})}},destroy:function(){[xe,Pe].forEach(function(c){c.reset(),c.stopListening()}),Q&&Q.remove(),[xe,Pe,Q].forEach(function(c){return{}}),this.em={},this.config={},this.builtIn={},this.model={}}})}},6388:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>g,evAll:()=>f,evCustom:()=>D,evPfx:()=>v});var ye=b(4942),we=b(9050);let J={stylePrefix:"trt-",appendTo:"",optionsTarget:[{value:!1},{value:"_blank"}]};var Y=b(6602),N=b(885),te=b(2316),$=b.n(te),L=b(6183);function w(T,u){var x=Object.keys(T);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(T);u&&(O=O.filter(function(W){return Object.getOwnPropertyDescriptor(T,W).enumerable})),x.push.apply(x,O)}return x}function y(T){for(var u=1;u<arguments.length;u++){var x=arguments[u]!=null?arguments[u]:{};u%2?w(Object(x),!0).forEach(function(O){(0,ye.Z)(T,O,x[O])}):Object.getOwnPropertyDescriptors?Object.defineProperties(T,Object.getOwnPropertyDescriptors(x)):w(Object(x)).forEach(function(O){Object.defineProperty(T,O,Object.getOwnPropertyDescriptor(x,O))})}return T}var P=$().$;let A=$().View.extend({events:{},eventCapture:["change"],appendInput:1,attributes:function(){return this.model.get("attributes")},templateLabel:function(){var T=this.ppfx,u=this.getLabel();return'<div class="'.concat(T,'label" title="').concat(u,'">').concat(u,"</div>")},templateInput:function(){var T=this.clsField;return'<div class="'.concat(T,'" data-input></div>')},initialize:function(){var T=this,u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},x=u.config,O=x===void 0?{}:x,W=this.model,X=this.eventCapture,ie=W.target,le=W.attributes.type;this.config=O,this.em=O.em,this.pfx=O.stylePrefix||"",this.ppfx=O.pStylePrefix||"",this.target=ie;var ce=this.ppfx;this.clsField="".concat(ce,"field ").concat(ce,"field-").concat(le),[["change:value",this.onValueChange],["remove",this.removeView]].forEach(function(F){var l=(0,N.Z)(F,2),s=l[0],o=l[1];W.off(s,o),T.listenTo(W,s,o)}),W.view=this,this.listenTo(W,"change:label",this.render),this.listenTo(W,"change:placeholder",this.rerender),this.events={},X.forEach(function(F){return T.events[F]="onChange"}),this.delegateEvents(),this.init()},getClbOpts:function(){return{component:this.target,trait:this.model,elInput:this.getInputElem()}},removeView:function(){this.remove(),this.removed()},init:function(){},removed:function(){},onRender:function(){},onUpdate:function(){},onEvent:function(){},onChange:function(T){var u=this.getInputElem();u&&!(0,we.isUndefined)(u.value)&&this.model.set("value",u.value),this.onEvent(y(y({},this.getClbOpts()),{},{event:T}))},getValueForTarget:function(){return this.model.get("value")},setInputValue:function(T){var u=this.getInputElem();u&&(u.value=T)},onValueChange:function(T,u){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(x.fromTarget)this.setInputValue(T.get("value")),this.postUpdate();else{var O=this.getValueForTarget();T.setTargetValue(O,x)}},renderLabel:function(){var T=this.$el,u=this.target,x=this.getLabel(),O=this.templateLabel(u);this.createLabel&&(O=this.createLabel({label:x,component:u,trait:this})||""),T.find("[data-label]").append(O)},getLabel:function(){var T=this.em,u=this.model.attributes,x=u.label,O=u.name;return T.t("traitManager.traits.labels.".concat(O))||(0,L.capitalize)(x||O).replace(/-/g," ")},getComponent:function(){return this.target},getInputEl:function(){if(!this.$input){var T=this.em,u=this.model,x=u,O=u.attributes.name,W=x.get("placeholder")||x.get("default")||"",X=x.get("type")||"text",ie=x.get("min"),le=x.get("max"),ce=this.getModelValue(),F=P('<input type="'.concat(X,'" placeholder="').concat(W,'">')),l=T.t("traitManager.traits.attributes.".concat(O))||{};F.attr(l),(0,we.isUndefined)(ce)||(x.set({value:ce},{silent:!0}),F.prop("value",ce)),ie&&F.prop("min",ie),le&&F.prop("max",le),this.$input=F}return this.$input.get(0)},getInputElem:function(){var T=this.input,u=this.$input;return T||u&&u.get&&u.get(0)||this.getElInput()},getModelValue:function(){var T,u=this.model,x=this.target,O=u.get("name");if(u.get("changeProp"))T=x.get(O);else{var W=x.get("attributes");T=u.get("value")||W[O]}return(0,we.isUndefined)(T)?"":T},getElInput:function(){return this.elInput},renderField:function(){var T=this.$el,u=this.appendInput,x=this.model,O=T.find("[data-input]"),W=O[O.length-1],X=x.el;X||(X=this.createInput?this.createInput(this.getClbOpts()):this.getInputEl()),(0,we.isString)(X)?(W.innerHTML=X,this.elInput=W.firstChild):(u?W.appendChild(X):W.insertBefore(X,W.firstChild),this.elInput=X),x.el=this.elInput},hasLabel:function(){var T=this.model.attributes.label;return!this.noLabel&&T!==!1},rerender:function(){this.model.el=null,this.render()},postUpdate:function(){this.onUpdate(this.getClbOpts())},render:function(){var T=this.$el,u=this.pfx,x=this.ppfx,O=this.model.attributes,W=O.type,X=O.id,ie=this.hasLabel&&this.hasLabel(),le="".concat(u,"trait");this.$input=null;var ce='<div class="'.concat(le," ").concat(le,"--").concat(W,`"> + `).concat(ie?'<div class="'.concat(x,'label-wrp" data-label></div>'):"",` + <div class="`).concat(x,"field-wrp ").concat(x,"field-wrp--").concat(W,`" data-input> + `).concat(this.templateInput?(0,we.isFunction)(this.templateInput)?this.templateInput(this.getClbOpts()):this.templateInput:"",` + </div> + </div>`);return T.empty().append(ce),ie&&this.renderLabel(),this.renderField(),this.el.className="".concat(le,"__wrp ").concat(le,"__wrp-").concat(X),this.postUpdate(),this.onRender(this.getClbOpts()),this}}),k=Y.Z.extend({ns:"Traits",itemView:A,reuseView:1,initialize:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=T.config||{},x=u.stylePrefix||"",O=T.editor;this.config=u,this.em=O,this.pfx=x,this.ppfx=u.pStylePrefix||"",this.className="".concat(x,"traits"),this.listenTo(O,"component:toggled",this.updatedCollection)},updatedCollection:function(){var T=this.ppfx,u=this.className,x=this.em.getSelected();this.el.className="".concat(u," ").concat(T,"one-bg ").concat(T,"two-color"),this.collection=x?x.get("traits"):[],this.render()}});var B=$().$;let G=A.extend({init:function(){this.listenTo(this.model,"change:options",this.rerender)},templateInput:function(){var T=this.ppfx,u=this.clsField;return'<div class="'.concat(u,`"> + <div data-input></div> + <div class="`).concat(T,`sel-arrow"> + <div class="`).concat(T,`d-s-arrow"></div> + </div> + </div>`)},getInputEl:function(){if(!this.$input){var T=this.model,u=this.em,x=T.get("name"),O=T.get("options")||[],W=[],X="<select>";O.forEach(function(ce){var F,l,s,o="";(0,we.isString)(ce)?(F=ce,l=ce):(F=ce.name||ce.label||ce.value,l="".concat((0,we.isUndefined)(ce.value)?ce.id:ce.value).replace(/"/g,"""),o+=(s=ce.style?ce.style.replace(/"/g,"""):"")?' style="'.concat(s,'"'):"");var h=u.t("traitManager.traits.options.".concat(x,".").concat(l))||F;X+='<option value="'.concat(l,'"').concat(o,">").concat(h,"</option>"),W.push(l)}),X+="</select>",this.$input=B(X);var ie=T.getTargetValue(),le=W.indexOf(ie)>=0?ie:T.get("default");!(0,we.isUndefined)(le)&&this.$input.val(le)}return this.$input.get(0)}}),M=A.extend({appendInput:0,templateInput:function(){var T=this.ppfx,u=this.clsField;return'<label class="'.concat(u,`" data-input> + <i class="`).concat(T,`chk-icon"></i> + </label>`)},onChange:function(){var T=this.getInputElem().checked;this.model.set("value",this.getCheckedValue(T))},getCheckedValue:function(T){var u=T,x=this.model.attributes,O=x.valueTrue,W=x.valueFalse;return u&&!(0,we.isUndefined)(O)&&(u=O),u||(0,we.isUndefined)(W)||(u=W),u},getInputEl:function(){for(var T=!this.$input,u=arguments.length,x=new Array(u),O=0;O<u;O++)x[O]=arguments[O];var W=A.prototype.getInputEl.apply(this,x);if(T){var X,ie,le=this.model,ce=this.target,F=le.attributes,l=(F.valueTrue,F.valueFalse),s=le.get("name");le.get("changeProp")?ie=X=ce.get(s):X=!(!(ie=ce.get("attributes")[s])&&ie!==""),(0,we.isUndefined)(l)||ie!==l||(X=!1),W.checked=X}return W}});var H=b(7610);let Z=A.extend({getValueForTarget:function(){var T=this.model,u=T.attributes,x=u.value,O=u.unit;return(0,we.isUndefined)(x)||x===""?T.get("default"):x+O},getInputEl:function(){if(!this.input){var T=this.ppfx,u=this.model,x=this.getModelValue(),O=new H.Z({contClass:"".concat(T,"field-int"),type:"number",model:u,ppfx:T});this.input=O.render(),this.$input=this.input.inputEl,this.$unit=this.input.unitEl,u.set("value",x,{fromTarget:1}),this.$input.val(x),this.input=O.el}return this.input}});var _=b(1511);let C=A.extend({templateInput:"",getInputEl:function(){if(!this.input){var T=this.model,u=this.getModelValue(),x=new _.Z({model:T,target:this.config.em,contClass:this.ppfx+"field-color",ppfx:this.ppfx}).render();x.setValue(u,{fromTarget:1}),this.input=x.el}return this.input}}),z=A.extend({eventCapture:["click button"],templateInput:"",onChange:function(){this.handleClick()},handleClick:function(){var T=this.model,u=this.em,x=T.get("command");x&&((0,we.isString)(x)?u.get("Commands").run(x):x(u.get("Editor"),T))},renderLabel:function(){this.model.get("label")&&A.prototype.renderLabel.apply(this,arguments)},getInputEl:function(){var T=this.model,u=this.ppfx,x=T.props(),O=x.labelButton,W=x.text,X=x.full,ie=O||W,le="".concat(u,"btn");return'<button type="button" class="'.concat(le,"-prim").concat(X?" ".concat(le,"--full"):"",'">').concat(ie,"</button>")}});var I=b(9304);function p(T,u){var x=Object.keys(T);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(T);u&&(O=O.filter(function(W){return Object.getOwnPropertyDescriptor(T,W).enumerable})),x.push.apply(x,O)}return x}function d(T){for(var u=1;u<arguments.length;u++){var x=arguments[u]!=null?arguments[u]:{};u%2?p(Object(x),!0).forEach(function(O){(0,ye.Z)(T,O,x[O])}):Object.getOwnPropertyDescriptors?Object.defineProperties(T,Object.getOwnPropertyDescriptors(x)):p(Object(x)).forEach(function(O){Object.defineProperty(T,O,Object.getOwnPropertyDescriptor(x,O))})}return T}var f="trait",v="".concat(f,":"),D="".concat(v,"custom");let g=function(){var T={text:A,number:Z,select:G,checkbox:M,color:C,button:z};return d(d({},I.Z),{},{TraitsView:k,events:{all:f,custom:D},name:"TraitManager",init:function(){var u=this,x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.__initConfig(J,x);var O=this.config,W=new te.Model;this.model=W;var X=this.em,ie=O.pStylePrefix;this.types=d({},T),ie&&(O.stylePrefix="".concat(ie).concat(O.stylePrefix));var le=(0,we.debounce)(function(){return u.__upSel()});W.listenTo(X,"component:toggled",le);var ce=(0,we.debounce)(function(){return u.__onUp()});return W.listenTo(X,"trait:update",ce),this},__upSel:function(){this.select(this.em.getSelected())},__onUp:function(){this.select(this.getSelected())},select:function(u){var x=u?u.getTraits():[];this.model.set({component:u,traits:x}),this.__trgCustom()},getSelected:function(){return this.model.get("component")||null},getCurrent:function(){return this.model.get("traits")||[]},__trgCustom:function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.__ctn=this.__ctn||u.container,this.em.trigger(this.events.custom,{container:this.__ctn})},postRender:function(){this.__appendTo()},getTraitsViewer:function(){return this.view},addType:function(u,x){var O=this.getType("text");this.types[u]=O.extend(x)},getType:function(u){return this.getTypes()[u]},getTypes:function(){return this.types},render:function(){var u=this.view,x=this.getConfig(),O=u&&u.el;return(u=new k({el:O,collection:[],editor:x.em,config:x})).itemsView=this.getTypes(),u.updatedCollection(),this.view=u,u.el},destroy:function(){this.__destroy()}})}},8202:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>L});var ye=b(2982),we=b(4942),J=b(3410),Y=b.n(J),N=b(9050);function te(w,y){var P=Object.keys(w);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(w);y&&(A=A.filter(function(k){return Object.getOwnPropertyDescriptor(w,k).enumerable})),P.push.apply(P,A)}return P}function $(w){for(var y=1;y<arguments.length;y++){var P=arguments[y]!=null?arguments[y]:{};y%2?te(Object(P),!0).forEach(function(A){(0,we.Z)(w,A,P[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors(P)):te(Object(P)).forEach(function(A){Object.defineProperty(w,A,Object.getOwnPropertyDescriptor(P,A))})}return w}let L=function(){var w,y,P,A,k={maximumStackLength:500,trackSelection:1},B=function(M){return M.avoidStore||M.noUndo},G=function(M){return Object.keys(M.changedAttributes())};return{name:"UndoManager",init:function(){var M=this,H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};P=$($({},k),H),w=P.em,this.em=w,P._disable&&(P=$($({},P),{},{maximumStackLength:0}));var Z=!0;return(y=new(Y())($({track:!0,register:[]},P))).changeUndoType("change",{condition:function(_){var C=_.get("_undo");if(C){var z=_.get("_undoexc");if((0,N.isArray)(z)&&G(_).some(function(I){return z.indexOf(I)>=0}))return!1;if((0,N.isBoolean)(C)||(0,N.isArray)(C)&&G(_).some(function(I){return C.indexOf(I)>=0}))return!0}return!1},on:function(_,C,z){!A&&(A=_.previousAttributes());var I=z||C||{};if(I.noUndo&&setTimeout(function(){A=null}),!B(I)){var p=_.toJSON({fromUndo:Z}),d={object:_,before:A,after:p};if(A=null,!(0,N.isEmpty)(p))return d}}}),y.changeUndoType("add",{on:function(_,C){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!B(z)&&M.isRegistered(C))return{object:C,before:void 0,after:_,options:$($({},z),{},{fromUndo:Z})}}}),y.changeUndoType("remove",{on:function(_,C){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!B(z)&&M.isRegistered(C))return{object:C,before:_,after:void 0,options:$($({},z),{},{fromUndo:Z})}}}),y.changeUndoType("reset",{undo:function(_,C){_.reset(C,{fromUndo:Z})},redo:function(_,C,z){_.reset(z,{fromUndo:Z})},on:function(_){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!B(C)&&M.isRegistered(_))return{object:_,before:C.previousModels,after:(0,ye.Z)(_.models),options:$($({},C),{},{fromUndo:Z})}}}),y.on("undo redo",function(){w.trigger("change:canvasOffset"),w.getSelectedAll().map(function(_){return _.trigger("rerender:layer")})}),["undo","redo"].forEach(function(_){return y.on(_,function(){return w.trigger(_)})}),this},postLoad:function(){P.trackSelection&&w&&this.add(w.get("selected"))},getConfig:function(){return P},add:function(M){return y.register(M),this},remove:function(M){return y.unregister(M),this},removeAll:function(){return y.unregisterAll(),this},start:function(){return y.startTracking(),this},stop:function(){return y.stopTracking(),this},undo:function(){var M=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];return!w.isEditing()&&y.undo(M),this},undoAll:function(){return y.undoAll(),this},redo:function(){var M=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];return!w.isEditing()&&y.redo(M),this},redoAll:function(){return y.redoAll(),this},hasUndo:function(){return y.isAvailable("undo")},hasRedo:function(){return y.isAvailable("redo")},isRegistered:function(M){return!!this.getInstance().objectRegistry.isRegistered(M)},getStack:function(){return y.stack},getStackGroup:function(){var M=[],H=[];return this.getStack().forEach(function(Z){var _=Z.get("magicFusionIndex");H.indexOf(_)<0&&(H.push(_),M.push(Z))}),M},skip:function(M){this.stop(),M(),this.start()},getGroupedStack:function(){var M={},H=this.getStack();return H.forEach(function(Z,_){var C=Z.get("magicFusionIndex"),z=function(I,p){var d=I.attributes,f=d.type,v=d.after,D=d.before,g=d.object,T=d.options;return{index:p,type:f,after:v,before:D,object:g,options:T===void 0?{}:T}}(Z,_);M[C]?M[C].push(z):M[C]=[z]}),Object.keys(M).map(function(Z){var _=M[Z];return{index:_[_.length-1].index,actions:_,labels:(0,N.unique)(_.reduce(function(C,z){var I,p=(I=z.options)===null||I===void 0?void 0:I.action;return p&&C.push(p),C},[]))}})},goToGroup:function(M){var H=this;if(M){var Z=this.getPointer(),_=M.index-Z;(0,N.times)(Math.abs(_),function(){H[_<0?"undo":"redo"](!1)})}},getPointer:function(){return this.getStack().pointer},clear:function(){return y.clear(),this},getInstance:function(){return y},destroy:function(){this.clear().removeAll(),[w,y,P,A].forEach(function(M){return{}}),this.em={}}}}},5610:(Je,Se,b)=>{"use strict";b.d(Se,{Z:()=>L});var ye=b(4942),we=b(5671),J=b(3144),Y=b(9050),N=b(6183);function te(w,y){var P=Object.keys(w);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(w);y&&(A=A.filter(function(k){return Object.getOwnPropertyDescriptor(w,k).enumerable})),P.push.apply(P,A)}return P}function $(w){for(var y=1;y<arguments.length;y++){var P=arguments[y]!=null?arguments[y]:{};y%2?te(Object(P),!0).forEach(function(A){(0,ye.Z)(w,A,P[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors(P)):te(Object(P)).forEach(function(A){Object.defineProperty(w,A,Object.getOwnPropertyDescriptor(P,A))})}return w}var L=function(){function w(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return(0,we.Z)(this,w),this.opts={container:null,onStart:null,onDrag:null,onEnd:null,setPosition:null,getPosition:null,guidesStatic:null,guidesTarget:null,snapOffset:5,doc:0,scale:1},(0,Y.bindAll)(this,"drag","stop","keyHandle","handleScroll"),this.setOptions(y),this.delta={x:0,y:0},this}return(0,J.Z)(w,[{key:"setOptions",value:function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.opts=$($({},this.opts),y)}},{key:"toggleDrag",value:function(y){var P=this.getDocumentEl(),A=this.getContainerEl(),k=this.getWindowEl(),B=y?"on":"off",G={on:N.on,off:N.off};G[B](A,"mousemove dragover",this.drag),G[B](P,"mouseup dragend touchend",this.stop),G[B](P,"keydown",this.keyHandle),G[B](k,"scroll",this.handleScroll)}},{key:"handleScroll",value:function(){var y=this.lastScroll,P=this.delta,A=this.getScrollInfo(),k={x:A.x-y.x,y:A.y-y.y};this.move(P.x+k.x,P.y+k.y),this.lastScrollDiff=k}},{key:"start",value:function(y){var P=this.opts,A=P.onStart;this.toggleDrag(1),this.startPointer=this.getPointerPos(y),this.guidesStatic=(0,Y.result)(P,"guidesStatic")||[],this.guidesTarget=(0,Y.result)(P,"guidesTarget")||[],(0,Y.isFunction)(A)&&A(y,this),this.startPosition=this.getStartPosition(),this.lastScrollDiff={x:0,y:0},this.globScrollDiff={x:0,y:0},this.drag(y)}},{key:"drag",value:function(y){var P=this,A=this.opts,k=this.lastScrollDiff,B=this.globScrollDiff,G=A.onDrag,M=this.startPointer,H=this.getPointerPos(y),Z={x:B.x+k.x,y:B.y+k.y};this.globScrollDiff=Z;var _={x:H.x-M.x+Z.x,y:H.y-M.y+Z.y};this.lastScrollDiff={x:0,y:0};var C=this.lockedAxis;(C=y.shiftKey?!C&&this.detectAxisLock(_.x,_.y):null)==="x"?_.x=M.x:C==="y"&&(_.y=M.y);var z=function(D){["x","y"].forEach(function(g){return D[g]=D[g]*(0,Y.result)(A,"scale")}),P.delta=D,P.move(D.x,D.y),(0,Y.isFunction)(G)&&G(y,P)},I=$({},_);if(this.currentPointer=H,this.lockedAxis=C,this.lastScroll=this.getScrollInfo(),z(_),this.guidesTarget.length){var p=this.snapGuides(I),d=p.newDelta,f=p.trgX,v=p.trgY;(f||v)&&z(d)}y.which===0&&this.stop(y)}},{key:"snapGuides",value:function(y){var P=this,A=y,k=this.trgX,B=this.trgY;return this.guidesTarget.forEach(function(G){G.x&&P.trgX||G.y&&P.trgY||(G.active=0,P.guidesStatic.forEach(function(M){if(!(G.y&&M.x||G.x&&M.y)){var H=G.y&&M.y,Z=H?"y":"x",_=G[Z],C=M[Z],z=y[Z],I=H?B:k;if(P.isPointIn(_,C)&&(0,Y.isUndefined)(I)){var p=z-(_-C);P.setGuideLock(G,p)}}}))}),k=this.trgX,B=this.trgY,["x","y"].forEach(function(G){var M=G.toUpperCase(),H=P["trg".concat(M)];H&&!P.isPointIn(y[G],H.lock)&&(P.setGuideLock(H,null),H=null),H&&!(0,Y.isUndefined)(H.lock)&&(A[G]=H.lock)}),{newDelta:A,trgX:this.trgX,trgY:this.trgY}}},{key:"isPointIn",value:function(y,P){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},k=A.offset,B=k||this.opts.snapOffset;return y>=P&&y<=P+B||y<=P&&y>=P-B}},{key:"setGuideLock",value:function(y,P){var A=(0,Y.isUndefined)(y.x)?"Y":"X",k="trg".concat(A);return P!==null?(y.active=1,y.lock=P,this[k]=y):(delete y.active,delete y.lock,delete this[k]),y}},{key:"stop",value:function(y){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},A=this.delta,k=P.cancel,B=k?0:A.x,G=k?0:A.y;this.toggleDrag(),this.lockedAxis=null,this.move(B,G,1);var M=this.opts.onEnd;(0,Y.isFunction)(M)&&M(y,this,{cancelled:k})}},{key:"keyHandle",value:function(y){(0,N.isEscKey)(y)&&this.stop(y,{cancel:1})}},{key:"move",value:function(y,P,A){var k=this.el,B=this.opts,G=this.startPosition;if(G){var M=B.setPosition,H=G.x+y,Z=G.y+P;this.position={x:H,y:Z,end:A},(0,Y.isFunction)(M)&&M(this.position),k&&(k.style.left="".concat(H,"px"),k.style.top="".concat(Z,"px"))}}},{key:"getContainerEl",value:function(){var y=this.opts.container;return y?[y]:this.getDocumentEl()}},{key:"getWindowEl",value:function(){return this.getContainerEl().map(function(y){var P=y.ownerDocument||y;return P.defaultView||P.parentWindow})}},{key:"getDocumentEl",value:function(y){var P=this.opts.doc;if(y=y||this.el,!this.docs){var A=[document];y&&A.push(y.ownerDocument),P&&A.push(P),this.docs=A}return this.docs}},{key:"getPointerPos",value:function(y){var P=this.opts.getPointerPosition,A=(0,N.getPointerEvent)(y);return P?P(y):{x:A.clientX,y:A.clientY}}},{key:"getStartPosition",value:function(){var y=this.el,P=this.opts.getPosition,A={x:0,y:0};return(0,Y.isFunction)(P)?A=P():y&&(A={x:parseFloat(y.style.left),y:parseFloat(y.style.top)}),A}},{key:"getScrollInfo",value:function(){var y=this.opts.doc,P=y&&y.body;return{y:P?P.scrollTop:0,x:P?P.scrollLeft:0}}},{key:"detectAxisLock",value:function(y,P){var A=y,k=P,B=Math.abs(A),G=Math.abs(k);return k>=B||k<=-B?"x":A>G||A<-G?"y":void 0}}]),w}()},2579:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>nn});var ye=typeof document<"u"?document:null,we=typeof window<"u"?window:null,J=Array.prototype,Y=J.filter,N=J.indexOf,te=J.map,$=J.push,L=J.reverse,w=J.slice,y=J.splice,P=/^#[\w-]*$/,A=/^\.[\w-]*$/,k=/<.+>/,B=/^\w+$/;function G(fe,se){return se===void 0&&(se=ye),A.test(fe)?se.getElementsByClassName(fe.slice(1)):B.test(fe)?se.getElementsByTagName(fe):se.querySelectorAll(fe)}function M(fe,se){if(se===void 0&&(se=ye),fe){if(fe.__cash)return fe;var be=fe;if(v(fe)){if(se.__cash&&(se=se[0]),!(be=P.test(fe)?se.getElementById(fe.slice(1)):k.test(fe)?Ht(fe):G(fe,se)))return}else if(f(fe))return this.ready(fe);(be.nodeType||be===we)&&(be=[be]),this.length=be.length;for(var _e=0,Fe=this.length;_e<Fe;_e++)this[_e]=be[_e]}}function H(fe,se){return new M(fe,se)}var Z=H.fn=H.prototype=M.prototype={constructor:H,__cash:!0,length:0,splice:y};Z.get=function(fe){return fe===void 0?w.call(this):this[fe<0?fe+this.length:fe]},Z.eq=function(fe){return H(this.get(fe))},Z.first=function(){return this.eq(0)},Z.last=function(){return this.eq(-1)},Z.map=function(fe){return H(te.call(this,function(se,be){return fe.call(se,be,se)}))},Z.slice=function(){return H(w.apply(this,arguments))};var _=/(?:^\w|[A-Z]|\b\w)/g,C=/[\s-_]+/g;function z(fe){return fe.replace(_,function(se,be){return se[be?"toUpperCase":"toLowerCase"]()}).replace(C,"")}function I(fe,se){for(var be=0,_e=fe.length;be<_e&&se.call(fe[be],fe[be],be,fe)!==!1;be++);}H.camelCase=z,H.each=I,Z.each=function(fe){return I(this,function(se,be){return fe.call(se,be,se)}),this},Z.removeProp=function(fe){return this.each(function(se,be){delete be[fe]})},H.extend=Z.extend=function(fe){fe===void 0&&(fe=this);for(var se=arguments,be=se.length,_e=be<2?0:1;_e<be;_e++)for(var Fe in se[_e])fe[Fe]=se[_e][Fe];return fe};var p=1;function d(fe,se){var be=fe&&(fe.matches||fe.webkitMatchesSelector||fe.mozMatchesSelector||fe.msMatchesSelector||fe.oMatchesSelector);return!!be&&be.call(fe,se)}function f(fe){return typeof fe=="function"}function v(fe){return typeof fe=="string"}function D(fe){return!isNaN(parseFloat(fe))&&isFinite(fe)}H.guid=p,H.matches=d,H.isFunction=f,H.isString=v,H.isNumeric=D;var g=Array.isArray;function T(fe){return v(fe)?function(se,be){return d(be,fe)}:fe.__cash?function(se,be){return fe.is(be)}:function(se,be,_e){return be===_e}}H.isArray=g,Z.prop=function(fe,se){if(fe){if(v(fe))return arguments.length<2?this[0]&&this[0][fe]:this.each(function(_e,Fe){Fe[fe]=se});for(var be in fe)this.prop(be,fe[be]);return this}},Z.filter=function(fe){if(!fe)return H();var se=f(fe)?fe:T(fe);return H(Y.call(this,function(be,_e){return se.call(be,_e,be,fe)}))};var u=/\S+/g;function x(fe){return v(fe)&&fe.match(u)||[]}function O(fe){return fe.filter(function(se,be,_e){return _e.indexOf(se)===be})}function W(fe,se,be){if(fe.nodeType===1){var _e=we.getComputedStyle(fe,null);return se?be?_e.getPropertyValue(se):_e[se]:_e}}function X(fe,se){return parseInt(W(fe,se),10)||0}Z.hasClass=function(fe){var se=x(fe),be=!1;return se.length&&this.each(function(_e,Fe){return!(be=Fe.classList.contains(se[0]))}),be},Z.removeAttr=function(fe){var se=x(fe);return se.length?this.each(function(be,_e){I(se,function(Fe){_e.removeAttribute(Fe)})}):this},Z.attr=function(fe,se){if(fe){if(v(fe)){if(arguments.length<2){if(!this[0])return;var be=this[0].getAttribute(fe);return be===null?void 0:be}return se===null?this.removeAttr(fe):this.each(function(Fe,He){He.setAttribute(fe,se)})}for(var _e in fe)this.attr(_e,fe[_e]);return this}},Z.toggleClass=function(fe,se){var be=x(fe),_e=se!==void 0;return be.length?this.each(function(Fe,He){I(be,function(at){_e?se?He.classList.add(at):He.classList.remove(at):He.classList.toggle(at)})}):this},Z.addClass=function(fe){return this.toggleClass(fe,!0)},Z.removeClass=function(fe){return arguments.length?this.toggleClass(fe,!1):this.attr("class","")},H.unique=O,Z.add=function(fe,se){return H(O(this.get().concat(H(fe,se).get())))};var ie=/^--/;function le(fe){return ie.test(fe)}var ce={},F=ye&&ye.createElement("div"),l=F?F.style:{},s=["webkit","moz","ms","o"];function o(fe,se){if(se===void 0&&(se=le(fe)),se)return fe;if(!ce[fe]){var be=z(fe),_e=""+be.charAt(0).toUpperCase()+be.slice(1);I((be+" "+s.join(_e+" ")+_e).split(" "),function(Fe){if(Fe in l)return ce[fe]=Fe,!1})}return ce[fe]}H.prefixedProp=o;var h={animationIterationCount:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0};function m(fe,se,be){return be===void 0&&(be=le(fe)),be||h[fe]||!D(se)?se:se+"px"}Z.css=function(fe,se){if(v(fe)){var be=le(fe);return fe=o(fe,be),arguments.length<2?this[0]&&W(this[0],fe,be):fe?(se=m(fe,se,be),this.each(function(Fe,He){He.nodeType===1&&(be?He.style.setProperty(fe,se):He.style[fe]=se)})):this}for(var _e in fe)this.css(_e,fe[_e]);return this};var j="__cashData",K=/^data-(.*)/;function ve(fe){return fe.__cashData=fe.__cashData||{}}function E(fe,se){var be=ve(fe);if(se){if(!(se in be)){var _e=fe.dataset?fe.dataset[se]||fe.dataset[z(se)]:H(fe).attr("data-"+se);if(_e!==void 0){try{_e=JSON.parse(_e)}catch{}be[se]=_e}}return be[se]}return be}function q(fe,se){return X(fe,"border"+(se?"Left":"Top")+"Width")+X(fe,"padding"+(se?"Left":"Top"))+X(fe,"padding"+(se?"Right":"Bottom"))+X(fe,"border"+(se?"Right":"Bottom")+"Width")}function ue(fe,se){for(var be=0,_e=se.length;be<_e;be++)if(fe.indexOf(se[be])<0)return!1;return!0}function ke(fe,se,be){I(fe[be],function(_e){_e[0];var Fe=_e[1];se.removeEventListener(be,Fe)}),delete fe[be]}H.hasData=function(fe){return j in fe},Z.data=function(fe,se){var be=this;if(!fe)return this[0]?(I(this[0].attributes,function(Fe){var He=Fe.name.match(K);He&&be.data(He[1])}),E(this[0])):void 0;if(v(fe))return se===void 0?this[0]&&E(this[0],fe):this.each(function(Fe,He){return function(at,Ye,gt){ve(at)[Ye]=gt}(He,fe,se)});for(var _e in fe)this.data(_e,fe[_e]);return this},Z.removeData=function(fe){return this.each(function(se,be){return function(_e,Fe){Fe===void 0?delete _e.__cashData:delete ve(_e)[Fe]}(be,fe)})},I(["Width","Height"],function(fe){Z["inner"+fe]=function(){if(this[0])return this[0]===we?we["inner"+fe]:this[0]["client"+fe]}}),I(["width","height"],function(fe,se){Z[fe]=function(be){return this[0]?arguments.length?(be=parseInt(be,10),this.each(function(_e,Fe){if(Fe.nodeType===1){var He=W(Fe,"boxSizing");Fe.style[fe]=m(fe,be+(He==="border-box"?q(Fe,!se):0))}})):this[0]===we?this[0][z("outer-"+fe)]:this[0].getBoundingClientRect()[fe]-q(this[0],!se):be===void 0?void 0:this}}),I(["Width","Height"],function(fe,se){Z["outer"+fe]=function(be){if(this[0])return this[0]===we?we["outer"+fe]:this[0]["offset"+fe]+(be?X(this[0],"margin"+(se?"Top":"Left"))+X(this[0],"margin"+(se?"Bottom":"Right")):0)}});function Ee(fe){return fe.__cashEvents=fe.__cashEvents||{}}function pe(fe){var se=fe.split(".");return[se[0],se.slice(1).sort()]}function Ae(fe,se,be,_e){var Fe=Ee(fe);if(se){var He=Fe[se];if(!He)return;_e&&(_e.guid=_e.guid||p++),Fe[se]=He.filter(function(at){var Ye=at[0],gt=at[1];if(_e&>.guid!==_e.guid||!ue(Ye,be))return!0;fe.removeEventListener(se,gt)})}else if(be&&be.length)for(se in Fe)Ae(fe,se,be,_e);else for(se in Fe)ke(Fe,fe,se)}Z.off=function(fe,se){var be=this;return fe===void 0?this.each(function(_e,Fe){return Ae(Fe)}):I(x(fe),function(_e){var Fe=pe(_e),He=Fe[0],at=Fe[1];be.each(function(Ye,gt){return Ae(gt,He,at,se)})}),this},Z.on=function(fe,se,be,_e){var Fe=this;if(!v(fe)){for(var He in fe)this.on(He,se,fe[He]);return this}return f(se)&&(be=se,se=!1),I(x(fe),function(at){var Ye=pe(at),gt=Ye[0],Ut=Ye[1];Fe.each(function(dn,rn){var Qt=function Ft(ct){if(!ct.namespace||ue(Ut,ct.namespace.split("."))){var kt=rn;if(se){for(var qt=ct.target;!d(qt,se);)if(qt===rn||!(qt=qt.parentNode))return;kt=qt}ct.namespace=ct.namespace||"";var Kt=be.call(kt,ct,ct.data);_e&&Ae(rn,gt,Ut,Ft),Kt===!1&&(ct.preventDefault(),ct.stopPropagation())}};Qt.guid=be.guid=be.guid||p++,function(Ft,ct,kt,qt){qt.guid=qt.guid||p++;var Kt=Ee(Ft);Kt[ct]=Kt[ct]||[],Kt[ct].push([kt,qt]),Ft.addEventListener(ct,qt)}(rn,gt,Ut,Qt)})}),this},Z.one=function(fe,se,be){return this.on(fe,se,be,!0)},Z.ready=function(fe){var se=function(){return fe(H)};return ye.readyState!=="loading"?setTimeout(se):ye.addEventListener("DOMContentLoaded",se),this},Z.trigger=function(fe,se){var be=fe;if(v(fe)){var _e=pe(fe),Fe=_e[0],He=_e[1];(be=ye.createEvent("HTMLEvents")).initEvent(Fe,!0,!0),be.namespace=He.join(".")}return be.data=se,this.each(function(at,Ye){Ye.dispatchEvent(be)})};var Ne=/select-one/i,Oe=/select-multiple/i;function Ie(fe){var se=fe.type;return Ne.test(se)?function(be){return be.selectedIndex<0?null:be.options[be.selectedIndex].value}(fe):Oe.test(se)?function(be){var _e=[];return I(be.options,function(Fe){!Fe.selected||Fe.disabled||Fe.parentNode.disabled||_e.push(Fe.value)}),_e}(fe):fe.value}var Le=/%20/g,$e=/file|reset|submit|button|image/i,tt=/radio|checkbox/i;Z.serialize=function(){var fe="";return this.each(function(se,be){I(be.elements||[be],function(_e){if(!_e.disabled&&_e.name&&_e.tagName!=="FIELDSET"&&!$e.test(_e.type)&&(!tt.test(_e.type)||_e.checked)){var Fe=Ie(_e);Fe!==void 0&&I(g(Fe)?Fe:[Fe],function(He){fe+=function(at,Ye){return"&"+encodeURIComponent(at)+"="+encodeURIComponent(Ye).replace(Le,"+")}(_e.name,He)})}})}),fe.substr(1)},Z.val=function(fe){return fe===void 0?this[0]&&Ie(this[0]):this.each(function(se,be){var _e=Oe.test(be.type),Fe=fe===null?_e?[]:"":fe;_e&&g(Fe)?I(be.options,function(He){He.selected=Fe.indexOf(He.value)>=0}):be.value=Fe})},Z.clone=function(){return this.map(function(fe,se){return se.cloneNode(!0)})},Z.detach=function(){return this.each(function(fe,se){se.parentNode&&se.parentNode.removeChild(se)})};var ht,Vt=/^\s*<(\w+)[^>]*>/,rt=/^\s*<(\w+)\s*\/?>(?:<\/\1>)?\s*$/;function Ht(fe){if(function(){if(!ht){var _e=ye.createElement("table"),Fe=ye.createElement("tr");ht={"*":ye.createElement("div"),tr:ye.createElement("tbody"),td:Fe,th:Fe,thead:_e,tbody:_e,tfoot:_e}}}(),!v(fe))return[];if(rt.test(fe))return[ye.createElement(RegExp.$1)];var se=Vt.test(fe)&&RegExp.$1,be=ht[se]||ht["*"];return be.innerHTML=fe,H(be.childNodes).detach().get()}function Zt(fe,se,be){if(se!==void 0){var _e=v(se);!_e&&se.length?I(se,function(Fe){return Zt(fe,Fe,be)}):I(fe,_e?function(Fe){Fe.insertAdjacentHTML(be?"afterbegin":"beforeend",se)}:function(Fe,He){return function(at,Ye,gt){gt?at.insertBefore(Ye,at.childNodes[0]):at.appendChild(Ye)}(Fe,He?se.cloneNode(!0):se,be)})}}H.parseHTML=Ht,Z.empty=function(){var fe=this[0];if(fe)for(;fe.firstChild;)fe.removeChild(fe.firstChild);return this},Z.append=function(){var fe=this;return I(arguments,function(se){Zt(fe,se)}),this},Z.appendTo=function(fe){return Zt(H(fe),this),this},Z.html=function(fe){if(fe===void 0)return this[0]&&this[0].innerHTML;var se=fe.nodeType?fe[0].outerHTML:fe;return this.each(function(be,_e){_e.innerHTML=se})},Z.insertAfter=function(fe){var se=this;return H(fe).each(function(be,_e){var Fe=_e.parentNode;se.each(function(He,at){Fe.insertBefore(be?at.cloneNode(!0):at,_e.nextSibling)})}),this},Z.after=function(){var fe=this;return I(L.apply(arguments),function(se){L.apply(H(se).slice()).insertAfter(fe)}),this},Z.insertBefore=function(fe){var se=this;return H(fe).each(function(be,_e){var Fe=_e.parentNode;se.each(function(He,at){Fe.insertBefore(be?at.cloneNode(!0):at,_e)})}),this},Z.before=function(){var fe=this;return I(arguments,function(se){H(se).insertBefore(fe)}),this},Z.prepend=function(){var fe=this;return I(arguments,function(se){Zt(fe,se,!0)}),this},Z.prependTo=function(fe){return Zt(H(fe),L.apply(this.slice()),!0),this},Z.remove=function(){return this.detach().off()},Z.replaceWith=function(fe){var se=this;return this.each(function(be,_e){var Fe=_e.parentNode;if(Fe){var He=be?H(fe).clone():H(fe);if(!He[0])return se.remove(),!1;Fe.replaceChild(He[0],_e),H(He[0]).after(He.slice(1))}})},Z.replaceAll=function(fe){return H(fe).replaceWith(this),this},Z.text=function(fe){return fe===void 0?this[0]?this[0].textContent:"":this.each(function(se,be){be.textContent=fe})};var Ct=ye&&ye.documentElement;Z.offset=function(){var fe=this[0];if(fe){var se=fe.getBoundingClientRect();return{top:se.top+we.pageYOffset-Ct.clientTop,left:se.left+we.pageXOffset-Ct.clientLeft}}},Z.offsetParent=function(){return H(this[0]&&this[0].offsetParent)},Z.position=function(){var fe=this[0];if(fe)return{left:fe.offsetLeft,top:fe.offsetTop}},Z.children=function(fe){var se=[];return this.each(function(be,_e){$.apply(se,_e.children)}),se=H(O(se)),fe?se.filter(function(be,_e){return d(_e,fe)}):se},Z.contents=function(){var fe=[];return this.each(function(se,be){$.apply(fe,be.tagName==="IFRAME"?[be.contentDocument]:be.childNodes)}),H(fe.length&&O(fe))},Z.find=function(fe){for(var se=[],be=0,_e=this.length;be<_e;be++){var Fe=G(fe,this[be]);Fe.length&&$.apply(se,Fe)}return H(se.length&&O(se))},Z.has=function(fe){var se=v(fe)?function(be,_e){return!!G(fe,_e).length}:function(be,_e){return _e.contains(fe)};return this.filter(se)},Z.is=function(fe){if(!fe||!this[0])return!1;var se=T(fe),be=!1;return this.each(function(_e,Fe){return!(be=se(_e,Fe,fe))}),be},Z.next=function(){return H(this[0]&&this[0].nextElementSibling)},Z.not=function(fe){if(!fe||!this[0])return this;var se=T(fe);return this.filter(function(be,_e){return!se(be,_e,fe)})},Z.parent=function(){var fe=[];return this.each(function(se,be){be&&be.parentNode&&fe.push(be.parentNode)}),H(O(fe))},Z.index=function(fe){var se=fe?H(fe)[0]:this[0],be=fe?this:H(se).parent().children();return N.call(be,se)},Z.closest=function(fe){return fe&&this[0]?this.is(fe)?this.filter(fe):this.parent().closest(fe):H()},Z.parents=function(fe){var se,be=[];return this.each(function(_e,Fe){for(se=Fe;se&&se.parentNode&&se!==ye.body.parentNode;)se=se.parentNode,(!fe||fe&&d(se,fe))&&be.push(se)}),H(O(be))},Z.prev=function(){return H(this[0]&&this[0].previousElementSibling)},Z.siblings=function(){var fe=this[0];return this.parent().children().filter(function(se,be){return be!==fe})};let nn=H},9283:(Je,Se,b)=>{"use strict";b.d(Se,{G1:()=>J,Mx:()=>Y,L_:()=>N,sE:()=>te,FW:()=>$,pn:()=>L,dL:()=>w,$Q:()=>y,R3:()=>P,ut:()=>A,rw:()=>k,t3:()=>B,SJ:()=>G});var ye=b(9050),we="attributes",J="transitionend oTransitionEnd transitionend webkitTransitionEnd",Y=function(M){return M&&M.nodeType===9},N=function(M){var H=M&&M.parentNode;H&&H.removeChild(M)},te=function(M,H){return M.querySelectorAll(H)},$=function(M){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return M&&M.setAttribute&&(0,ye.each)(H,function(Z,_){return M.setAttribute(_,Z)})},L=function(M){return M&&!!(M.offsetWidth||M.offsetHeight||M.getClientRects().length)},w=function(M,H){M.parentNode.replaceChild(H,M)},y=function(M,H,Z){var _=M.childNodes,C=_.length,z=(0,ye.isUndefined)(Z)?C:Z;(0,ye.isString)(H)&&(M.insertAdjacentHTML("beforeEnd",H),H=M.lastChild,M.removeChild(H)),z>=C?M.appendChild(H):M.insertBefore(H,_[z])},P=function(M,H){return y(M,H)},A=function(M){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",Z=arguments.length>2?arguments[2]:void 0,_=document.createElement(M);return H&&(0,ye.each)(H,function(C,z){return _.setAttribute(z,C)}),Z&&((0,ye.isString)(Z)?_.innerHTML=Z:_.appendChild(Z)),_},k=function(M){return document.createTextNode(M)},B=function(M,H){var Z,_=M.type;try{Z=new window[H](_,M)}catch{(Z=document.createEvent(H)).initEvent(_,!0,!0)}return Z._parentEvent=M,_.indexOf("key")===0&&(Z.keyCodeVal=M.keyCode,["keyCode","which"].forEach(function(C){Object.defineProperty(Z,C,{get:function(){return this.keyCodeVal}})})),Z},G=function(M){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Z=Array.isArray(H)?H:[H];Z.forEach(function(_){var C=_.tag||"div",z=_[we]||{},I=document.createElement(C);(0,ye.each)(z,function(p,d){I.setAttribute(d,p)}),M.appendChild(I)})}},9661:(Je,Se,b)=>{"use strict";b.d(Se,{Z:()=>G});var ye=b(1002);let we=function(M){var H=this.constructor;return this.then(function(Z){return H.resolve(M()).then(function(){return Z})},function(Z){return H.resolve(M()).then(function(){return H.reject(Z)})})},J=function(M){return new this(function(H,Z){if(!M||M.length===void 0)return Z(new TypeError((0,ye.Z)(M)+" "+M+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var _=Array.prototype.slice.call(M);if(_.length===0)return H([]);var C=_.length;function z(p,d){if(d&&((0,ye.Z)(d)==="object"||typeof d=="function")){var f=d.then;if(typeof f=="function")return void f.call(d,function(v){z(p,v)},function(v){_[p]={status:"rejected",reason:v},--C==0&&H(_)})}_[p]={status:"fulfilled",value:d},--C==0&&H(_)}for(var I=0;I<_.length;I++)z(I,_[I])})};var Y=setTimeout;function N(M){return Boolean(M&&M.length!==void 0)}function te(){}function $(M){if(!(this instanceof $))throw new TypeError("Promises must be constructed via new");if(typeof M!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],k(M,this)}function L(M,H){for(;M._state===3;)M=M._value;M._state!==0?(M._handled=!0,$._immediateFn(function(){var Z=M._state===1?H.onFulfilled:H.onRejected;if(Z!==null){var _;try{_=Z(M._value)}catch(C){return void y(H.promise,C)}w(H.promise,_)}else(M._state===1?w:y)(H.promise,M._value)})):M._deferreds.push(H)}function w(M,H){try{if(H===M)throw new TypeError("A promise cannot be resolved with itself.");if(H&&((0,ye.Z)(H)==="object"||typeof H=="function")){var Z=H.then;if(H instanceof $)return M._state=3,M._value=H,void P(M);if(typeof Z=="function")return void k((_=Z,C=H,function(){_.apply(C,arguments)}),M)}M._state=1,M._value=H,P(M)}catch(z){y(M,z)}var _,C}function y(M,H){M._state=2,M._value=H,P(M)}function P(M){M._state===2&&M._deferreds.length===0&&$._immediateFn(function(){M._handled||$._unhandledRejectionFn(M._value)});for(var H=0,Z=M._deferreds.length;H<Z;H++)L(M,M._deferreds[H]);M._deferreds=null}function A(M,H,Z){this.onFulfilled=typeof M=="function"?M:null,this.onRejected=typeof H=="function"?H:null,this.promise=Z}function k(M,H){var Z=!1;try{M(function(_){Z||(Z=!0,w(H,_))},function(_){Z||(Z=!0,y(H,_))})}catch(_){if(Z)return;Z=!0,y(H,_)}}$.prototype.catch=function(M){return this.then(null,M)},$.prototype.then=function(M,H){var Z=new this.constructor(te);return L(this,new A(M,H,Z)),Z},$.prototype.finally=we,$.all=function(M){return new $(function(H,Z){if(!N(M))return Z(new TypeError("Promise.all accepts an array"));var _=Array.prototype.slice.call(M);if(_.length===0)return H([]);var C=_.length;function z(p,d){try{if(d&&((0,ye.Z)(d)==="object"||typeof d=="function")){var f=d.then;if(typeof f=="function")return void f.call(d,function(v){z(p,v)},Z)}_[p]=d,--C==0&&H(_)}catch(v){Z(v)}}for(var I=0;I<_.length;I++)z(I,_[I])})},$.allSettled=J,$.resolve=function(M){return M&&(0,ye.Z)(M)==="object"&&M.constructor===$?M:new $(function(H){H(M)})},$.reject=function(M){return new $(function(H,Z){Z(M)})},$.race=function(M){return new $(function(H,Z){if(!N(M))return Z(new TypeError("Promise.race accepts an array"));for(var _=0,C=M.length;_<C;_++)$.resolve(M[_]).then(H,Z)})},$._immediateFn=typeof setImmediate=="function"&&function(M){setImmediate(M)}||function(M){Y(M,0)},$._unhandledRejectionFn=function(M){typeof console<"u"&&console&&console.warn("Possible Unhandled Promise Rejection:",M)};let B=$;(0,b(6183).hasWin)()&&(window.Promise=window.Promise||B);let G=typeof fetch=="function"?fetch.bind():function(M,H){return new B(function(Z,_){var C=new XMLHttpRequest;for(var z in C.open(H.method||"get",M),C.withCredentials=H.credentials=="include",H.headers||{})C.setRequestHeader(z,H.headers[z]);C.onload=function(I){return Z({status:C.status,statusText:C.statusText,text:function(){return B.resolve(C.responseText)}})},C.onerror=_,C.upload&&H.onProgress&&(C.upload.onprogress=H.onProgress),H.body?C.send(H.body):C.send()})}},1629:(Je,Se,b)=>{"use strict";b.d(Se,{Z:()=>we});var ye=b(6183);function we(J){for(var Y=arguments.length,N=new Array(Y>1?Y-1:0),te=1;te<Y;te++)N[te-1]=arguments[te];var $=J.raw;return $.reduce(function(L,w,y){var P=N[y-1],A=$[y-1];return Array.isArray(P)?P=P.join(""):A&&A.slice(-1)==="$"?L=L.slice(0,-1):P=(0,ye.escape)(P),L+P+w})}},6718:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{default:()=>I});var ye=b(4942),we=b(5610),J=b(2316),Y=b.n(J),N=b(9050),te=b(6183);function $(p,d){var f=Object.keys(p);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(p);d&&(v=v.filter(function(D){return Object.getOwnPropertyDescriptor(p,D).enumerable})),f.push.apply(f,v)}return f}function L(p){for(var d=1;d<arguments.length;d++){var f=arguments[d]!=null?arguments[d]:{};d%2?$(Object(f),!0).forEach(function(v){(0,ye.Z)(p,v,f[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(f)):$(Object(f)).forEach(function(v){Object.defineProperty(p,v,Object.getOwnPropertyDescriptor(f,v))})}return p}var w=Y().$,y=function(){};let P=Y().View.extend({initialize:function(p){this.opt=p||{},(0,N.bindAll)(this,"startSort","onMove","endMove","rollback","updateOffset","moveDragHelper");var d=p||{};this.elT=0,this.elL=0,this.borderOffset=d.borderOffset||10;var f=d.container;this.el=typeof f=="string"?document.querySelector(f):f,this.$el=w(this.el),this.containerSel=d.containerSel||"div",this.itemSel=d.itemSel||"div",this.draggable=d.draggable||!0,this.nested=d.nested||0,this.pfx=d.pfx||"",this.ppfx=d.ppfx||"",this.freezeClass=d.freezeClass||this.pfx+"freezed",this.onStart=d.onStart||y,this.onEndMove=d.onEndMove||"",this.customTarget=d.customTarget,this.onEnd=d.onEnd,this.direction=d.direction||"v",this.onMoveClb=d.onMove||"",this.relative=d.relative||0,this.ignoreViewChildren=d.ignoreViewChildren||0,this.ignoreModels=d.ignoreModels||0,this.plh=d.placer||"",this.wmargin=d.wmargin||0,this.offTop=d.offsetTop||0,this.offLeft=d.offsetLeft||0,this.document=d.document||document,this.$document=w(this.document),this.dropContent=null,this.em=d.em||null,this.dragHelper=null,this.canvasRelative=d.canvasRelative||0,this.selectOnEnd=!d.avoidSelectOnEnd,this.scale=d.scale,this.activeTextModel=null,this.em&&this.em.on&&(this.em.on("change:canvasOffset",this.updateOffset),this.updateOffset())},getScale:function(){return(0,N.result)(this,scale)||1},getContainerEl:function(p){if(p&&(this.el=p),!this.el){var d=this.opt.container;this.el=typeof d=="string"?document.querySelector(d):d,this.$el=w(this.el)}return this.el},getDocuments:function(p){var d=this.em,f=p?p.ownerDocument:d&&d.get("Canvas").getBody().ownerDocument,v=[document];return f&&v.push(f),v},updateOffset:function(){var p,d=((p=this.em)===null||p===void 0?void 0:p.get("canvasOffset"))||{};this.offTop=d.top,this.offLeft=d.left},setDropContent:function(p){this.dropModel=null,this.dropContent=p},updateTextViewCursorPosition:function(p){var d=this.em;if(d){var f=d.get("Canvas"),v=f.getDocument(),D=null;if(v.caretRangeFromPoint){var g=(0,te.getPointerEvent)(p);D=v.caretRangeFromPoint(g.clientX,g.clientY)}else p.rangeParent&&(D=v.createRange()).setStart(p.rangeParent,p.rangeOffset);var T=f.getWindow().getSelection();f.getFrameEl().focus(),T.removeAllRanges(),D&&T.addRange(D),this.setContentEditable(this.activeTextModel,!0)}},setContentEditable:function(p,d){if(p){var f=p.getEl();f.contentEditable!=d&&(f.contentEditable=d)}},toggleSortCursor:function(p){var d=this.em,f=d&&d.get("Canvas");f&&(p?f.startAutoscroll():f.stopAutoscroll())},setDragHelper:function(p,d){for(var f=d||"",v=p.cloneNode(1),D=p.getBoundingClientRect(),g=getComputedStyle(p),T="",u=0;u<g.length;u++){var x=g[u];T+="".concat(x,":").concat(g.getPropertyValue(x),";")}document.body.appendChild(v),v.className+=" ".concat(this.pfx,"bdrag"),v.setAttribute("style",T),this.dragHelper=v,v.style.width="".concat(D.width,"px"),v.style.height="".concat(D.height,"px"),f&&this.moveDragHelper(f),this.em&&w(this.em.get("Canvas").getBody().ownerDocument).off("mousemove",this.moveDragHelper).on("mousemove",this.moveDragHelper),w(document).off("mousemove",this.moveDragHelper).on("mousemove",this.moveDragHelper)},moveDragHelper:function(p){var d=p.target.ownerDocument;if(this.dragHelper&&d){var f=p.pageY,v=p.pageX,D=0,g=0,T=(d.defaultView||d.parentWindow).frameElement,u=this.dragHelper.style;if(T){var x=T.getBoundingClientRect();D=x.top+document.documentElement.scrollTop,g=x.left+document.documentElement.scrollLeft,f=p.clientY,v=p.clientX}u.top=f+D+"px",u.left=v+g+"px"}},matches:function(p,d,f){return te.matches.call(p,d)},closest:function(p,d){if(p){for(var f=p.parentNode;f&&f.nodeType===1;){if(this.matches(f,d))return f;f=f.parentNode}return null}},offset:function(p){var d=p.getBoundingClientRect();return{top:d.top+document.body.scrollTop,left:d.left+document.body.scrollLeft}},createPlaceholder:function(){var p=this.pfx,d=document.createElement("div"),f=document.createElement("div");return d.className=p+"placeholder",d.style.display="none",d.style["pointer-events"]="none",f.className=p+"placeholder-int",d.appendChild(f),d},startSort:function(p){var d,f,v,D,g,T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=this.em,x=this.itemSel,O=this.containerSel,W=this.plh,X=this.getContainerEl(T.container),ie=this.getDocuments(p);this.dropModel=null,this.target=null,this.prevTarget=null,this.moved=0,p&&!this.matches(p,"".concat(x,", ").concat(O))&&(p=this.closest(p,x)),this.sourceEl=p,W||(this.plh=this.createPlaceholder(),X.appendChild(this.plh)),p&&((g=this.getSourceModel(p))&&g.set&&g.set("status","freezed"),this.srcModel=g),(0,te.on)(X,"mousemove dragover",this.onMove),(0,te.on)(ie,"mouseup dragend touchend",this.endMove),(0,te.on)(ie,"keydown",this.rollback),this.onStart({sorter:this,target:g,parent:g&&((d=(f=g).parent)===null||d===void 0?void 0:d.call(f)),index:g&&((v=(D=g).index)===null||v===void 0?void 0:v.call(D))}),u?.clearSelection(),this.toggleSortCursor(1),u?.trigger("sorter:drag:start",p,g)},getTargetModel:function(p){var d=p||this.target;return w(d).data("model")},getSourceModel:function(p){var d=this,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v=f.target,D=f.avoidChildren,g=D===void 0?1:D,T=this.em,u=this.sourceEl,x=p||u,O=this.dropModel,W=this.dropContent,X=function(F){return F&&v&&F.opt&&F.opt.avoidChildren&&d.isTextableActive(F,v)};if(W&&T){if(X(O)&&(O=null),!O){var ie=T.get("DomComponents").getComponents(),le={avoidChildren:g,avoidStore:1,avoidUpdateStyle:1},ce=ie.add(W,L(L({},le),{},{temporary:1}));if(O=(O=ie.remove(ce,le))instanceof Array?O[0]:O,this.dropModel=O,X(O))return this.getSourceModel(x,{target:v,avoidChildren:0})}return O}return x&&w(x).data("model")},selectTargetModel:function(p,d){if(!(p instanceof Y().Collection||d&&d===p)){var f=this.targetModel;f&&f!==this.srcModel&&f.set("status",""),p&&p.set&&(p.set("status","selected-parent"),this.targetModel=p)}},onMove:function(p){var d=p,f=this.em,v=this.onMoveClb,D=this.plh,g=this.customTarget;this.moved=1;var T=D.style.display;T&&T!=="none"||(D.style.display="block");var u=this.offset(this.el);this.elT=this.wmargin?Math.abs(u.top):u.top,this.elL=this.wmargin?Math.abs(u.left):u.left;var x=p.pageY-this.elT+this.el.scrollTop,O=p.pageX-this.elL+this.el.scrollLeft;if(this.canvasRelative&&f){var W=f.get("Canvas").getMouseRelativeCanvas(p,{noScroll:1});O=W.x,x=W.y}this.rX=O,this.rY=x,this.eventMove=p;var X=this.getSourceModel(),ie=g?g({sorter:this,event:p}):p.target,le=this.dimsFromTarget(ie,O,x),ce=this.target,F=ce&&this.getTargetModel(ce);if(this.selectTargetModel(F,X),F||(D.style.display="none"),ce){this.lastDims=le;var l=this.findPosition(le,O,x);this.isTextableActive(X,F)?(this.activeTextModel=F,D.style.display="none",this.lastPos=l,this.updateTextViewCursorPosition(d)):(this.disableTextable(),this.activeTextModel=null,this.lastPos&&this.lastPos.index==l.index&&this.lastPos.method==l.method||(this.movePlaceholder(this.plh,le,l,this.prevTargetDim),this.$plh||(this.$plh=w(this.plh)),this.canvasRelative||(this.offTop&&this.$plh.css("top","+="+this.offTop+"px"),this.offLeft&&this.$plh.css("left","+="+this.offLeft+"px")),this.lastPos=l)),(0,N.isFunction)(v)&&v({event:p,target:X,parent:F,index:l.index+(l.method=="after"?1:0)}),f&&f.trigger("sorter:drag",{target:ce,targetModel:F,sourceModel:X,dims:le,pos:l,x:O,y:x})}},isTextableActive:function(p,d){return p&&p.get&&p.get("textable")&&d&&d.is("text")},disableTextable:function(){var p=this.activeTextModel;p&&p.getView().disableEditing(),this.setContentEditable(p,!1)},isInFlow:function(p,d){if(!p)return!1;d=d||document.body;var f=p;return f.offsetHeight,!!this.styleInFlow(f,d)},styleInFlow:function(p,d){if(!(0,te.isTextNode)(p)){var f=p.style||{},v=w(p),D=d&&w(d);if(!f.overflow||f.overflow==="visible"){var g=v.css("float");if(!(g&&g!=="none"||D&&D.css("display")=="flex"&&D.css("flex-direction")!=="column")){switch(f.position){case"static":case"relative":case"":break;default:return}switch(p.tagName){case"TR":case"TBODY":case"THEAD":case"TFOOT":return!0}switch(v.css("display")){case"block":case"list-item":case"table":case"flex":return!0}}}}},validTarget:function(p,d){var f=this.getTargetModel(p),v=this.getSourceModel(d,{target:f}),D={valid:!0,src:d=v&&v.view&&v.view.el,srcModel:v,trg:p=f&&f.view&&f.view.el,trgModel:f};if(!d||!p)return D.valid=!1,D;var g=v.get("draggable");if((0,N.isFunction)(g)){var T=g(v,f);D.dragInfo=T,D.draggable=T,g=T}else g=g instanceof Array?g.join(", "):g,D.dragInfo=g,g=(0,N.isString)(g)?this.matches(p,g):g,D.draggable=g;var u=f.get("droppable");if((0,N.isFunction)(u)){var x=u(v,f);D.droppable=x,D.dropInfo=x,u=x}else u=(u=u instanceof Y().Collection?1:u)instanceof Array?u.join(", "):u,D.dropInfo=u,u=(0,N.isString)(u)?this.matches(d,u):u,u=g&&this.isTextableActive(v,f)?1:u,D.droppable=u;return u&&g||(D.valid=!1),D},dimsFromTarget:function(p,d,f){var v=this.em,D=[];if(!p||(this.matches(p,"".concat(this.itemSel,", ").concat(this.containerSel))||(p=this.closest(p,this.itemSel)),this.draggable instanceof Array&&(p=this.closest(p,this.draggable.join(","))),!p))return D;if(this.prevTarget&&this.prevTarget!=p&&(this.prevTarget=null),!this.prevTarget){this.targetP=this.closest(p,this.containerSel);var g=this.validTarget(p);if(v&&v.trigger("sorter:drag:validation",g),!g.valid&&this.targetP)return this.dimsFromTarget(this.targetP,d,f);this.prevTarget=p,this.prevTargetDim=this.getDim(p),this.cacheDimsP=this.getChildrenDim(this.targetP),this.cacheDims=this.getChildrenDim(p)}if(this.prevTarget==p&&(D=this.cacheDims),this.target=this.prevTarget,this.nearBorders(this.prevTargetDim,d,f)||!this.nested&&!this.cacheDims.length){var T=this.targetP;T&&this.validTarget(T).valid&&(D=this.cacheDimsP,this.target=T)}return this.lastPos=null,D},getTargetFromEl:function(p){var d,f=p,v=this.targetPrev,D=this.em,g=this.containerSel,T=this.itemSel;if(this.matches(f,"".concat(T,", ").concat(g))||(f=this.closest(f,T)),this.draggable instanceof Array&&(f=this.closest(f,this.draggable.join(","))),v&&v!=f&&(this.targetPrev=""),!this.targetPrev){d=this.closest(f,g);var u=this.validTarget(f);if(D&&D.trigger("sorter:drag:validation",u),!u.valid&&d)return this.getTargetFromEl(d);this.targetPrev=f}return this.nearElBorders(f)&&(d=this.closest(f,g))&&this.validTarget(d).valid&&(f=d),f},nearElBorders:function(p){var d=p.getBoundingClientRect(),f=p.ownerDocument.body,v=this.getCurrentPos(),D=v.x,g=v.y,T=d.top+f.scrollTop,u=d.left+f.scrollLeft,x=d.width,O=d.height;if(g<T+10||g>T+O-10||D<u+10||D>u+x-10)return 1},getCurrentPos:function(){var p=this.eventMove;return{x:p.pageX||0,y:p.pageY||0}},getDim:function(p){var d,f,v,D,g=this.em,T=this.canvasRelative,u=g&&g.get("Canvas"),x=u?u.getElementOffsets(p):{};if(T&&g){var O=u.getElementPos(p,{noScroll:1});d=O.top,f=O.left,v=O.height,D=O.width}else{var W=this.offset(p);d=this.relative?p.offsetTop:W.top-(this.wmargin?-1:1)*this.elT,f=this.relative?p.offsetLeft:W.left-(this.wmargin?-1:1)*this.elL,v=p.offsetHeight,D=p.offsetWidth}return{top:d,left:f,height:v,width:D,offsets:x}},getChildrenDim:function(p){var d=this,f=[];if(!p)return f;var v=this.getTargetModel(p);if(v&&v.view&&!this.ignoreViewChildren){var D=v.getCurrentView?v.getCurrentView():v.view;p=D.getChildrenContainer()}return(0,N.each)(p.children,function(g,T){var u=(0,te.getModel)(g,w),x=u&&u.index?u.index():T;if((0,te.isTextNode)(g)||d.matches(g,d.itemSel)){var O=d.getDim(g),W=d.direction;W=W=="v"||W!="h"&&d.isInFlow(g,p),O.dir=W,O.el=g,O.indexEl=x,f.push(O)}}),f},nearBorders:function(p,d,f){var v=0,D=this.borderOffset,g=d||0,T=f||0,u=p.top,x=p.left,O=p.height,W=p.width;return(u+D>T||T>u+O-D||x+D>g||g>x+W-D)&&(v=1),!!v},findPosition:function(p,d,f){for(var v={index:0,indexEl:0,method:"before"},D=0,g=0,T=0,u=0,x=0,O=0,W=0,X=0,ie=p.length;X<ie;X++){var le=W=p[X],ce=le.top,F=le.left,l=le.height,s=le.width;if(O=ce+l,u=F+s/2,x=ce+l/2,!(g&&F>g||T&&x>=T||D&&F+s<D))if(v.index=X,v.indexEl=W.indexEl,W.dir){if(f<x){v.method="before";break}v.method="after"}else f<O&&(T=O),d<u?(g=u,v.method="before"):(D=u,v.method="after")}return v},movePlaceholder:function(p,d,f,v){var D=0,g=0,T=0,u=0,x="px",O=f.method,W=d[f.index];if(p.classList.remove("vertical"),p.classList.add("horizontal"),W){var X=W.top,ie=W.left,le=W.height,ce=W.width;W.dir?(T=ce+x,u="auto",D=O=="before"?X-0:X+le-0,g=ie):(T="auto",u=le-0+x,D=X+0,g=O=="before"?ie-0:ie+ce-0,p.classList.remove("horizontal"),p.classList.add("vertical"))}else{if(!this.nested)return void(p.style.display="none");if(v){var F=v.offsets||{},l=F.paddingTop||5,s=F.paddingLeft||5;D=v.top+l,g=v.left+s,T=parseInt(v.width)-2*s+x,u="auto"}}p.style.top=D+x,p.style.left=g+x,T&&(p.style.width=T),u&&(p.style.height=u)},endMove:function(p){var d,f=this,v=this.sourceEl,D=[],g=this.getDocuments(),T=this.getContainerEl(),u=this.onEndMove,x=this.onEnd,O=this.target,W=this.lastPos;if((0,te.off)(T,"mousemove dragover",this.onMove),(0,te.off)(g,"mouseup dragend touchend",this.endMove),(0,te.off)(g,"keydown",this.rollback),this.plh.style.display="none",v&&(d=this.getSourceModel(),this.selectOnEnd&&d&&d.set&&(d.set("status",""),d.set("status","selected"))),this.moved&&O){var X=this.toMove;((0,N.isArray)(X)?X:X?[X]:[v]).forEach(function(ce){D.push(f.move(O,ce,W))})}this.plh&&(this.plh.style.display="none");var ie=this.dragHelper;if(ie&&(ie.parentNode.removeChild(ie),this.dragHelper=null),this.disableTextable(),this.selectTargetModel(),this.toggleSortCursor(),this.toMove=null,this.eventMove=0,this.dropModel=null,(0,N.isFunction)(u)){var le={target:d,parent:d&&d.parent(),index:d&&d.index()};D.length?D.forEach(function(ce){return u(ce,f,le)}):u(null,this,L(L({},le),{},{cancelled:1}))}(0,N.isFunction)(x)&&x({sorter:this})},move:function(p,d,f){var v,D,g=this.em,T=this.dropContent,u=(0,te.getElement)(d),x=[],O=f.method==="after"?f.indexEl+1:f.indexEl,W=this.validTarget(p,u),X=w(p).data("collection"),ie=W.trgModel,le=W.srcModel,ce=W.draggable,F=ie instanceof Y().Collection?1:W.droppable;if(X&&F&&ce){var l={at:O,action:"move-component"},s=this.isTextableActive(le,ie);if(T)v=(0,N.isFunction)(T)?T():T,l.avoidUpdateStyle=!0,l.action="add-component";else{var o=le.collection.indexOf(le),h=X===le.collection;(!h||!(o===O||o===O-1)||s)&&(v=le.collection.remove(le,{temporary:!0}),h&&O>o&&(l.at=O-1))}v&&(s?(delete l.at,D=ie.getView().insertComponent(v,l)):D=X.add(v,l)),this.dropContent=null,this.prevTarget=null}else if(g){var m=W.dropInfo||ie?.get("droppable"),j=W.dragInfo||le?.get("draggable");!X&&x.push("Target collection not found"),!F&&m&&x.push("Target is not droppable, accepts [".concat(m,"]")),!ce&&j&&x.push("Component not draggable, acceptable by [".concat(j,"]")),g.logWarning("Invalid target position",{errors:x,model:le,context:"sorter",target:ie})}return g?.trigger("sorter:drag:end",{targetCollection:X,modelToDrop:v,warns:x,validResult:W,dst:p,srcEl:u}),D},rollback:function(p){(0,te.off)(this.getDocuments(),"keydown",this.rollback),(p.which||p.keyCode)==27&&(this.moved=0,this.endMove())}});var A=b(5671),k=b(3144);function B(p,d){var f=Object.keys(p);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(p);d&&(v=v.filter(function(D){return Object.getOwnPropertyDescriptor(p,D).enumerable})),f.push.apply(f,v)}return f}function G(p){for(var d=1;d<arguments.length;d++){var f=arguments[d]!=null?arguments[d]:{};d%2?B(Object(f),!0).forEach(function(v){(0,ye.Z)(p,v,f[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(f)):B(Object(f)).forEach(function(v){Object.defineProperty(p,v,Object.getOwnPropertyDescriptor(f,v))})}return p}var M={mousePosFetcher:null,updateTarget:null,ratioDefault:0,posFetcher:null,onStart:null,onMove:null,onEnd:null,onUpdateContainer:function(){},step:1,minDim:10,maxDim:"",unitHeight:"px",unitWidth:"px",keyHeight:"height",keyWidth:"width",currentUnit:1,silentFrames:0,avoidContainerUpdate:0,keepAutoHeight:!1,keepAutoWidth:!1,autoHeight:!1,autoWidth:!1,tl:1,tc:1,tr:1,cl:1,cr:1,bl:1,bc:1,br:1},H=function(p,d){var f=d||window,v=p.getBoundingClientRect();return{left:v.left+f.pageXOffset,top:v.top+f.pageYOffset,width:v.width,height:v.height}},Z=function(){function p(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return(0,A.Z)(this,p),this.setOptions(d),(0,N.bindAll)(this,"handleKeyDown","handleMouseDown","move","stop"),this}return(0,k.Z)(p,[{key:"getConfig",value:function(){return this.opts}},{key:"setOptions",value:function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.opts=(0,N.defaults)(d,M),this.setup()}},{key:"setup",value:function(){var d=this.opts,f=d.prefix||"",v=d.appendTo||document.body,D=this.container;for(D||((D=document.createElement("div")).className="".concat(f,"resizer-c"),v.appendChild(D),this.container=D);D.firstChild;)D.removeChild(D.firstChild);var g={};for(var T in["tl","tc","tr","cl","cr","bl","bc","br"].forEach(function(x){return g[x]=d[x]?function(O,W){var X=W.prefix||"",ie=document.createElement("i");return ie.className=X+"resizer-h "+X+"resizer-h-"+O,ie.setAttribute("data-"+X+"handler",O),ie}(x,d):""}),g){var u=g[T];u&&D.appendChild(u)}this.handlers=g,this.mousePosFetcher=d.mousePosFetcher,this.updateTarget=d.updateTarget,this.posFetcher=d.posFetcher,this.onStart=d.onStart,this.onMove=d.onMove,this.onEnd=d.onEnd,this.onUpdateContainer=d.onUpdateContainer}},{key:"toggleFrames",value:function(d){if(this.opts.silentFrames){var f=document.querySelectorAll("iframe");(0,N.each)(f,function(v){return v.style.pointerEvents=d?"none":""})}}},{key:"isHandler",value:function(d){var f=this.handlers;for(var v in f)if(f[v]===d)return!0;return!1}},{key:"getFocusedEl",value:function(){return this.el}},{key:"getParentEl",value:function(){return this.el.parentElement}},{key:"getDocumentEl",value:function(){return[this.el.ownerDocument,document]}},{key:"getElementPos",value:function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v=this.posFetcher||"";return v?v(d,f):H(d)}},{key:"focus",value:function(d){d&&d===this.el||(this.el=d,this.updateContainer({forceShow:1}),(0,te.on)(this.getDocumentEl(),"mousedown",this.handleMouseDown))}},{key:"blur",value:function(){this.container.style.display="none",this.el&&((0,te.off)(this.getDocumentEl(),"mousedown",this.handleMouseDown),this.el=null)}},{key:"start",value:function(d){if(d.button===0){d.preventDefault(),d.stopPropagation();var f=this.el,v=this.getParentEl(),D=this.opts||{},g="data-"+D.prefix+"handler",T=this.getElementPos(f,{target:"el"}),u=this.getElementPos(v);this.handlerAttr=d.target.getAttribute(g),this.clickedHandler=d.target,this.startDim={t:T.top,l:T.left,w:T.width,h:T.height},this.rectDim={t:T.top,l:T.left,w:T.width,h:T.height},this.startPos={x:d.clientX,y:d.clientY},this.parentDim={t:u.top,l:u.left,w:u.width,h:u.height};var x=this.getDocumentEl();(0,te.on)(x,"mousemove",this.move),(0,te.on)(x,"keydown",this.handleKeyDown),(0,te.on)(x,"mouseup",this.stop),(0,N.isFunction)(this.onStart)&&this.onStart(d,{docs:x,config:D,el:f,resizer:this}),this.toggleFrames(1),this.move(d)}}},{key:"move",value:function(d){var f=this.onMove,v=this.mousePosFetcher,D=v?v(d):{x:d.clientX,y:d.clientY};this.currentPos=D,this.delta={x:D.x-this.startPos.x,y:D.y-this.startPos.y},this.keys={shift:d.shiftKey,ctrl:d.ctrlKey,alt:d.altKey},this.rectDim=this.calc(this),this.updateRect(0),f&&f(d),d.which===0&&this.stop(d)}},{key:"stop",value:function(d){var f=this.opts,v=this.getDocumentEl();(0,te.off)(v,"mousemove",this.move),(0,te.off)(v,"keydown",this.handleKeyDown),(0,te.off)(v,"mouseup",this.stop),this.updateRect(1),this.toggleFrames(),(0,N.isFunction)(this.onEnd)&&this.onEnd(d,{docs:v,config:f})}},{key:"updateRect",value:function(d){var f=this.el,v=this.opts,D=this.rectDim,g=this.updateTarget,T=this.getSelectedHandler(),u=v.unitHeight,x=v.unitWidth,O=v.keyWidth,W=v.keyHeight;if((0,N.isFunction)(g))g(f,D,{store:d,selectedHandler:T,resizer:this,config:v});else{var X=f.style;X[O]=D.w+x,X[W]=D.h+u}this.updateContainer()}},{key:"updateContainer",value:function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=this.opts,v=this.container,D=this.el,g=v.style;!f.avoidContainerUpdate&&D&&d.forceShow&&(g.display="block"),this.onUpdateContainer({el:v,resizer:this,opts:G(G({},f),d)})}},{key:"getSelectedHandler",value:function(){var d=this.handlers;if(this.selectedHandler){for(var f in d)if(d[f]===this.selectedHandler)return f}}},{key:"handleKeyDown",value:function(d){d.keyCode===27&&(this.rectDim=this.startDim,this.stop(d))}},{key:"handleMouseDown",value:function(d){var f=d.target;this.isHandler(f)?(this.selectedHandler=f,this.start(d)):f!==this.el&&(this.selectedHandler="",this.blur())}},{key:"calc",value:function(d){var f,v=this.opts||{},D=v.step,g=this.startDim,T=v.minDim,u=v.maxDim,x=d.delta.x,O=d.delta.y,W=this.parentDim.w,X=this.parentDim.h,ie=this.opts.unitWidth,le=this.opts.unitHeight,ce=ie==="%"?g.w/100*W:g.w,F=le==="%"?g.h/100*X:g.h,l={t:0,l:0,w:ce,h:F};if(d){var s=d.handlerAttr;~s.indexOf("r")&&(f=ie==="%"?(0,te.normalizeFloat)((ce+x*D)/W*100,.01):(0,te.normalizeFloat)(ce+x*D,D),f=Math.max(T,f),u&&(f=Math.min(u,f)),l.w=f),~s.indexOf("b")&&(f=le==="%"?(0,te.normalizeFloat)((F+O*D)/X*100,.01):(0,te.normalizeFloat)(F+O*D,D),f=Math.max(T,f),u&&(f=Math.min(u,f)),l.h=f),~s.indexOf("l")&&(f=ie==="%"?(0,te.normalizeFloat)((ce-x*D)/W*100,.01):(0,te.normalizeFloat)(ce-x*D,D),f=Math.max(T,f),u&&(f=Math.min(u,f)),l.w=f),~s.indexOf("t")&&(f=le==="%"?(0,te.normalizeFloat)((F-O*D)/X*100,.01):(0,te.normalizeFloat)(F-O*D,D),f=Math.max(T,f),u&&(f=Math.min(u,f)),l.h=f);var o=v.ratioDefault?!d.keys.shift:d.keys.shift;if(s.indexOf("c")<0&&o){var h=g.w/g.h;l.w/l.h>h?l.h=Math.round(l.w/h):l.w=Math.round(l.h*h)}return~s.indexOf("l")&&(l.l=g.w-l.w),~s.indexOf("t")&&(l.t=g.h-l.h),l}}}]),p}();let _={init:function(p){return new Z(p)}};function C(p,d){var f=Object.keys(p);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(p);d&&(v=v.filter(function(D){return Object.getOwnPropertyDescriptor(p,D).enumerable})),f.push.apply(f,v)}return f}function z(p){for(var d=1;d<arguments.length;d++){var f=arguments[d]!=null?arguments[d]:{};d%2?C(Object(f),!0).forEach(function(v){(0,ye.Z)(p,v,f[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(f)):C(Object(f)).forEach(function(v){Object.defineProperty(p,v,Object.getOwnPropertyDescriptor(f,v))})}return p}let I=function(){return{name:"Utils",init:function(){return this},destroy:function(){},Sorter:P,Resizer:_,Dragger:we.Z,helpers:z({},te)}}},6183:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{isDef:()=>Y,hasWin:()=>N,getGlobal:()=>te,toLowerCase:()=>$,getUiClass:()=>y,isCommentNode:()=>I,isTaggableNode:()=>p,find:()=>d,escape:()=>f,on:()=>k,off:()=>B,hasDnd:()=>_,upFirst:()=>M,matches:()=>w,getModel:()=>v,getElRect:()=>D,camelCase:()=>H,isTextNode:()=>z,getKeyCode:()=>T,getKeyChar:()=>u,isEscKey:()=>x,isEnterKey:()=>O,getElement:()=>C,shallowDiff:()=>A,normalizeFloat:()=>Z,getPointerEvent:()=>g,getUnitFromValue:()=>G,capitalize:()=>ie,getViewEl:()=>F,setViewEl:()=>l,appendStyles:()=>P,isObject:()=>W,isEmptyObj:()=>X,isComponent:()=>le,createId:()=>s,isRule:()=>ce});var ye=b(1002),we=b(2982),J=b(9050),Y=function(o){return o!==void 0},N=function(){return typeof window<"u"},te=function(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:b.g},$=function(o){return(o||"").toLowerCase()},L=N()?window.Element.prototype:{},w=L.matches||L.webkitMatchesSelector||L.mozMatchesSelector||L.msMatchesSelector,y=function(o,h){var m=o.getConfig(),j=m.stylePrefix;return[m.customUI&&"".concat(j,"cui"),h].filter(function(K){return K}).join(" ")},P=function o(h){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},j=(0,J.isArray)(h)?(0,we.Z)(h):[h];if(j.length){var K=j.shift();if(K&&(!m.unique||!document.querySelector('link[href="'.concat(K,'"]')))){var ve=document,E=ve.head,q=document.createElement("link");q.href=K,q.rel="stylesheet",m.prepand?E.insertBefore(q,E.firstChild):E.appendChild(q)}o(j)}},A=function(o,h){var m={},j=(0,J.keys)(h);for(var K in o)if(o.hasOwnProperty(K)){var ve=o[K],E=h[K];j.indexOf(K)>=0?ve!==E&&(m[K]=E):m[K]=null}for(var q in h)h.hasOwnProperty(q)&&(0,J.isUndefined)(o[q])&&(m[q]=h[q]);return m},k=function(o,h,m,j){h=h.split(/\s+/),o=o instanceof Array?o:[o];for(var K=function(E){o.forEach(function(q){return q&&q.addEventListener(h[E],m,j)})},ve=0;ve<h.length;++ve)K(ve)},B=function(o,h,m,j){h=h.split(/\s+/),o=o instanceof Array?o:[o];for(var K=function(E){o.forEach(function(q){return q&&q.removeEventListener(h[E],m,j)})},ve=0;ve<h.length;++ve)K(ve)},G=function(o){return o.replace(parseFloat(o),"")},M=function(o){return o[0].toUpperCase()+o.toLowerCase().slice(1)},H=function(o){return o.replace(/-./g,function(h){return h[1].toUpperCase()})},Z=function(o){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,j=0;if(isNaN(o))return m;if(o=parseFloat(o),Math.floor(o)!==o){var K=h.toString().split(".")[1];j=K?K.length:0}return j?parseFloat(o.toFixed(j)):o},_=function(o){return"draggable"in document.createElement("i")&&(o?o.get("Config").nativeDnD:1)},C=function(o){return(0,J.isElement)(o)||z(o)?o:o&&o.getEl?o.getEl():void 0},z=function(o){return o&&o.nodeType===3},I=function(o){return o&&o.nodeType===8},p=function(o){return o&&!z(o)&&!I(o)},d=function(o,h){var m=null;return o.some(function(j,K){return h(j,K,o)?(m=j,1):0}),m},f=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return"".concat(o).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/`/g,"`")},v=function(o,h){var m=o;return!h&&o&&o.__cashData?m=o.__cashData.model:(0,J.isElement)(o)&&(m=h(o).data("model")),m},D=function(o){var h,m={top:0,left:0,width:0,height:0};if(!o)return m;if(z(o)){var j=document.createRange();j.selectNode(o),h=j.getBoundingClientRect(),j.detach()}return h||(o.getBoundingClientRect?o.getBoundingClientRect():m)},g=function(o){return o.touches&&o.touches[0]?o.touches[0]:o},T=function(o){return o.which||o.keyCode},u=function(o){return String.fromCharCode(T(o))},x=function(o){return T(o)===27},O=function(o){return T(o)===13},W=function(o){return o!==null&&!Array.isArray(o)&&(0,ye.Z)(o)==="object"},X=function(o){return Object.keys(o).length<=0},ie=function(o){return o&&o.charAt(0).toUpperCase()+o.substring(1)},le=function(o){return o&&o.toHTML},ce=function(o){return o&&o.toCSS},F=function(o){return o.__gjsv},l=function(o,h){o.__gjsv=h},s=function(){for(var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:16,h="",m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",j=m.length,K=0;K<o;K++)h+=m.charAt(Math.floor(Math.random()*j));return h}},5666:Je=>{var Se=function(b){"use strict";var ye,we=Object.prototype,J=we.hasOwnProperty,Y=typeof Symbol=="function"?Symbol:{},N=Y.iterator||"@@iterator",te=Y.asyncIterator||"@@asyncIterator",$=Y.toStringTag||"@@toStringTag";function L(x,O,W){return Object.defineProperty(x,O,{value:W,enumerable:!0,configurable:!0,writable:!0}),x[O]}try{L({},"")}catch{L=function(O,W,X){return O[W]=X}}function w(x,O,W,X){var ie=O&&O.prototype instanceof M?O:M,le=Object.create(ie.prototype),ce=new g(X||[]);return le._invoke=function(F,l,s){var o=P;return function(h,m){if(o===k)throw new Error("Generator is already running");if(o===B){if(h==="throw")throw m;return u()}for(s.method=h,s.arg=m;;){var j=s.delegate;if(j){var K=f(j,s);if(K){if(K===G)continue;return K}}if(s.method==="next")s.sent=s._sent=s.arg;else if(s.method==="throw"){if(o===P)throw o=B,s.arg;s.dispatchException(s.arg)}else s.method==="return"&&s.abrupt("return",s.arg);o=k;var ve=y(F,l,s);if(ve.type==="normal"){if(o=s.done?B:A,ve.arg===G)continue;return{value:ve.arg,done:s.done}}ve.type==="throw"&&(o=B,s.method="throw",s.arg=ve.arg)}}}(x,W,ce),le}function y(x,O,W){try{return{type:"normal",arg:x.call(O,W)}}catch(X){return{type:"throw",arg:X}}}b.wrap=w;var P="suspendedStart",A="suspendedYield",k="executing",B="completed",G={};function M(){}function H(){}function Z(){}var _={};_[N]=function(){return this};var C=Object.getPrototypeOf,z=C&&C(C(T([])));z&&z!==we&&J.call(z,N)&&(_=z);var I=Z.prototype=M.prototype=Object.create(_);function p(x){["next","throw","return"].forEach(function(O){L(x,O,function(W){return this._invoke(O,W)})})}function d(x,O){function W(ie,le,ce,F){var l=y(x[ie],x,le);if(l.type!=="throw"){var s=l.arg,o=s.value;return o&&typeof o=="object"&&J.call(o,"__await")?O.resolve(o.__await).then(function(h){W("next",h,ce,F)},function(h){W("throw",h,ce,F)}):O.resolve(o).then(function(h){s.value=h,ce(s)},function(h){return W("throw",h,ce,F)})}F(l.arg)}var X;this._invoke=function(ie,le){function ce(){return new O(function(F,l){W(ie,le,F,l)})}return X=X?X.then(ce,ce):ce()}}function f(x,O){var W=x.iterator[O.method];if(W===ye){if(O.delegate=null,O.method==="throw"){if(x.iterator.return&&(O.method="return",O.arg=ye,f(x,O),O.method==="throw"))return G;O.method="throw",O.arg=new TypeError("The iterator does not provide a 'throw' method")}return G}var X=y(W,x.iterator,O.arg);if(X.type==="throw")return O.method="throw",O.arg=X.arg,O.delegate=null,G;var ie=X.arg;return ie?ie.done?(O[x.resultName]=ie.value,O.next=x.nextLoc,O.method!=="return"&&(O.method="next",O.arg=ye),O.delegate=null,G):ie:(O.method="throw",O.arg=new TypeError("iterator result is not an object"),O.delegate=null,G)}function v(x){var O={tryLoc:x[0]};1 in x&&(O.catchLoc=x[1]),2 in x&&(O.finallyLoc=x[2],O.afterLoc=x[3]),this.tryEntries.push(O)}function D(x){var O=x.completion||{};O.type="normal",delete O.arg,x.completion=O}function g(x){this.tryEntries=[{tryLoc:"root"}],x.forEach(v,this),this.reset(!0)}function T(x){if(x){var O=x[N];if(O)return O.call(x);if(typeof x.next=="function")return x;if(!isNaN(x.length)){var W=-1,X=function ie(){for(;++W<x.length;)if(J.call(x,W))return ie.value=x[W],ie.done=!1,ie;return ie.value=ye,ie.done=!0,ie};return X.next=X}}return{next:u}}function u(){return{value:ye,done:!0}}return H.prototype=I.constructor=Z,Z.constructor=H,H.displayName=L(Z,$,"GeneratorFunction"),b.isGeneratorFunction=function(x){var O=typeof x=="function"&&x.constructor;return!!O&&(O===H||(O.displayName||O.name)==="GeneratorFunction")},b.mark=function(x){return Object.setPrototypeOf?Object.setPrototypeOf(x,Z):(x.__proto__=Z,L(x,$,"GeneratorFunction")),x.prototype=Object.create(I),x},b.awrap=function(x){return{__await:x}},p(d.prototype),d.prototype[te]=function(){return this},b.AsyncIterator=d,b.async=function(x,O,W,X,ie){ie===void 0&&(ie=Promise);var le=new d(w(x,O,W,X),ie);return b.isGeneratorFunction(O)?le:le.next().then(function(ce){return ce.done?ce.value:le.next()})},p(I),L(I,$,"Generator"),I[N]=function(){return this},I.toString=function(){return"[object Generator]"},b.keys=function(x){var O=[];for(var W in x)O.push(W);return O.reverse(),function X(){for(;O.length;){var ie=O.pop();if(ie in x)return X.value=ie,X.done=!1,X}return X.done=!0,X}},b.values=T,g.prototype={constructor:g,reset:function(x){if(this.prev=0,this.next=0,this.sent=this._sent=ye,this.done=!1,this.delegate=null,this.method="next",this.arg=ye,this.tryEntries.forEach(D),!x)for(var O in this)O.charAt(0)==="t"&&J.call(this,O)&&!isNaN(+O.slice(1))&&(this[O]=ye)},stop:function(){this.done=!0;var x=this.tryEntries[0].completion;if(x.type==="throw")throw x.arg;return this.rval},dispatchException:function(x){if(this.done)throw x;var O=this;function W(l,s){return le.type="throw",le.arg=x,O.next=l,s&&(O.method="next",O.arg=ye),!!s}for(var X=this.tryEntries.length-1;X>=0;--X){var ie=this.tryEntries[X],le=ie.completion;if(ie.tryLoc==="root")return W("end");if(ie.tryLoc<=this.prev){var ce=J.call(ie,"catchLoc"),F=J.call(ie,"finallyLoc");if(ce&&F){if(this.prev<ie.catchLoc)return W(ie.catchLoc,!0);if(this.prev<ie.finallyLoc)return W(ie.finallyLoc)}else if(ce){if(this.prev<ie.catchLoc)return W(ie.catchLoc,!0)}else{if(!F)throw new Error("try statement without catch or finally");if(this.prev<ie.finallyLoc)return W(ie.finallyLoc)}}}},abrupt:function(x,O){for(var W=this.tryEntries.length-1;W>=0;--W){var X=this.tryEntries[W];if(X.tryLoc<=this.prev&&J.call(X,"finallyLoc")&&this.prev<X.finallyLoc){var ie=X;break}}ie&&(x==="break"||x==="continue")&&ie.tryLoc<=O&&O<=ie.finallyLoc&&(ie=null);var le=ie?ie.completion:{};return le.type=x,le.arg=O,ie?(this.method="next",this.next=ie.finallyLoc,G):this.complete(le)},complete:function(x,O){if(x.type==="throw")throw x.arg;return x.type==="break"||x.type==="continue"?this.next=x.arg:x.type==="return"?(this.rval=this.arg=x.arg,this.method="return",this.next="end"):x.type==="normal"&&O&&(this.next=O),G},finish:function(x){for(var O=this.tryEntries.length-1;O>=0;--O){var W=this.tryEntries[O];if(W.finallyLoc===x)return this.complete(W.completion,W.afterLoc),D(W),G}},catch:function(x){for(var O=this.tryEntries.length-1;O>=0;--O){var W=this.tryEntries[O];if(W.tryLoc===x){var X=W.completion;if(X.type==="throw"){var ie=X.arg;D(W)}return ie}}throw new Error("illegal catch attempt")},delegateYield:function(x,O,W){return this.delegate={iterator:T(x),resultName:O,nextLoc:W},this.method==="next"&&(this.arg=ye),G}},b}(Je.exports);try{regeneratorRuntime=Se}catch{Function("r","regeneratorRuntime = r")(Se)}},2828:(Je,Se,b)=>{var ye={"./CanvasClear":7202,"./CanvasClear.js":7202,"./CanvasMove":327,"./CanvasMove.js":327,"./CommandAbstract":238,"./CommandAbstract.js":238,"./ComponentDelete":5820,"./ComponentDelete.js":5820,"./ComponentDrag":6694,"./ComponentDrag.js":6694,"./ComponentEnter":1947,"./ComponentEnter.js":1947,"./ComponentExit":3888,"./ComponentExit.js":3888,"./ComponentNext":5883,"./ComponentNext.js":5883,"./ComponentPrev":7508,"./ComponentPrev.js":7508,"./ComponentStyleClear":8769,"./ComponentStyleClear.js":8769,"./CopyComponent":2213,"./CopyComponent.js":2213,"./DeleteComponent":5049,"./DeleteComponent.js":5049,"./ExportTemplate":3775,"./ExportTemplate.js":3775,"./Fullscreen":58,"./Fullscreen.js":58,"./MoveComponent":8658,"./MoveComponent.js":8658,"./OpenAssets":9617,"./OpenAssets.js":9617,"./OpenBlocks":5821,"./OpenBlocks.js":5821,"./OpenLayers":3452,"./OpenLayers.js":3452,"./OpenStyleManager":2840,"./OpenStyleManager.js":2840,"./OpenTraitManager":8644,"./OpenTraitManager.js":8644,"./PasteComponent":560,"./PasteComponent.js":560,"./Preview":4944,"./Preview.js":4944,"./Resize":7538,"./Resize.js":7538,"./SelectComponent":2620,"./SelectComponent.js":2620,"./SelectPosition":8463,"./SelectPosition.js":8463,"./ShowOffset":7994,"./ShowOffset.js":7994,"./SwitchVisibility":8352,"./SwitchVisibility.js":8352};function we(Y){var N=J(Y);return b(N)}function J(Y){if(!b.o(ye,Y)){var N=new Error("Cannot find module '"+Y+"'");throw N.code="MODULE_NOT_FOUND",N}return ye[Y]}we.keys=function(){return Object.keys(ye)},we.resolve=J,Je.exports=we,we.id=2828},907:(Je,Se,b)=>{"use strict";function ye(we,J){(J==null||J>we.length)&&(J=we.length);for(var Y=0,N=new Array(J);Y<J;Y++)N[Y]=we[Y];return N}b.d(Se,{Z:()=>ye})},5861:(Je,Se,b)=>{"use strict";function ye(J,Y,N,te,$,L,w){try{var y=J[L](w),P=y.value}catch(A){return void N(A)}y.done?Y(P):Promise.resolve(P).then(te,$)}function we(J){return function(){var Y=this,N=arguments;return new Promise(function(te,$){var L=J.apply(Y,N);function w(P){ye(L,te,$,w,y,"next",P)}function y(P){ye(L,te,$,w,y,"throw",P)}w(void 0)})}}b.d(Se,{Z:()=>we})},5671:(Je,Se,b)=>{"use strict";function ye(we,J){if(!(we instanceof J))throw new TypeError("Cannot call a class as a function")}b.d(Se,{Z:()=>ye})},3144:(Je,Se,b)=>{"use strict";function ye(J,Y){for(var N=0;N<Y.length;N++){var te=Y[N];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(J,te.key,te)}}function we(J,Y,N){return Y&&ye(J.prototype,Y),N&&ye(J,N),J}b.d(Se,{Z:()=>we})},4942:(Je,Se,b)=>{"use strict";function ye(we,J,Y){return J in we?Object.defineProperty(we,J,{value:Y,enumerable:!0,configurable:!0,writable:!0}):we[J]=Y,we}b.d(Se,{Z:()=>ye})},1120:(Je,Se,b)=>{"use strict";function ye(we){return ye=Object.setPrototypeOf?Object.getPrototypeOf:function(J){return J.__proto__||Object.getPrototypeOf(J)},ye(we)}b.d(Se,{Z:()=>ye})},9340:(Je,Se,b)=>{"use strict";function ye(J,Y){return ye=Object.setPrototypeOf||function(N,te){return N.__proto__=te,N},ye(J,Y)}function we(J,Y){if(typeof Y!="function"&&Y!==null)throw new TypeError("Super expression must either be null or a function");J.prototype=Object.create(Y&&Y.prototype,{constructor:{value:J,writable:!0,configurable:!0}}),Y&&ye(J,Y)}b.d(Se,{Z:()=>we})},4925:(Je,Se,b)=>{"use strict";function ye(we,J){if(we==null)return{};var Y,N,te=function(L,w){if(L==null)return{};var y,P,A={},k=Object.keys(L);for(P=0;P<k.length;P++)y=k[P],w.indexOf(y)>=0||(A[y]=L[y]);return A}(we,J);if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(we);for(N=0;N<$.length;N++)Y=$[N],J.indexOf(Y)>=0||Object.prototype.propertyIsEnumerable.call(we,Y)&&(te[Y]=we[Y])}return te}b.d(Se,{Z:()=>ye})},3930:(Je,Se,b)=>{"use strict";b.d(Se,{Z:()=>we});var ye=b(1002);function we(J,Y){return!Y||(0,ye.Z)(Y)!=="object"&&typeof Y!="function"?function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(J):Y}},885:(Je,Se,b)=>{"use strict";b.d(Se,{Z:()=>we});var ye=b(181);function we(J,Y){return function(N){if(Array.isArray(N))return N}(J)||function(N,te){var $=N&&(typeof Symbol<"u"&&N[Symbol.iterator]||N["@@iterator"]);if($!=null){var L,w,y=[],P=!0,A=!1;try{for($=$.call(N);!(P=(L=$.next()).done)&&(y.push(L.value),!te||y.length!==te);P=!0);}catch(k){A=!0,w=k}finally{try{P||$.return==null||$.return()}finally{if(A)throw w}}return y}}(J,Y)||(0,ye.Z)(J,Y)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}},168:(Je,Se,b)=>{"use strict";function ye(we,J){return J||(J=we.slice(0)),Object.freeze(Object.defineProperties(we,{raw:{value:Object.freeze(J)}}))}b.d(Se,{Z:()=>ye})},2982:(Je,Se,b)=>{"use strict";b.d(Se,{Z:()=>J});var ye=b(907),we=b(181);function J(Y){return function(N){if(Array.isArray(N))return(0,ye.Z)(N)}(Y)||function(N){if(typeof Symbol<"u"&&N[Symbol.iterator]!=null||N["@@iterator"]!=null)return Array.from(N)}(Y)||(0,we.Z)(Y)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}},1002:(Je,Se,b)=>{"use strict";function ye(we){return ye=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(J){return typeof J}:function(J){return J&&typeof Symbol=="function"&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},ye(we)}b.d(Se,{Z:()=>ye})},181:(Je,Se,b)=>{"use strict";b.d(Se,{Z:()=>we});var ye=b(907);function we(J,Y){if(J){if(typeof J=="string")return(0,ye.Z)(J,Y);var N=Object.prototype.toString.call(J).slice(8,-1);return N==="Object"&&J.constructor&&(N=J.constructor.name),N==="Map"||N==="Set"?Array.from(J):N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N)?(0,ye.Z)(J,Y):void 0}}},9050:(Je,Se,b)=>{"use strict";b.r(Se),b.d(Se,{VERSION:()=>we,after:()=>Ce,all:()=>hn,allKeys:()=>se,any:()=>er,assign:()=>an,before:()=>Ze,bind:()=>en,bindAll:()=>Dn,chain:()=>Qe,chunk:()=>Ei,clone:()=>Mn,collect:()=>yn,compact:()=>ao,compose:()=>me,constant:()=>ke,contains:()=>Tn,countBy:()=>Si,create:()=>Hn,debounce:()=>Q,default:()=>No,defaults:()=>ln,defer:()=>xe,delay:()=>zn,detect:()=>Xt,difference:()=>Ar,drop:()=>gr,each:()=>on,escape:()=>ot,every:()=>hn,extend:()=>sn,extendOwn:()=>an,filter:()=>Lt,find:()=>Xt,findIndex:()=>lt,findKey:()=>it,findLastIndex:()=>ut,findWhere:()=>un,first:()=>Sr,flatten:()=>lo,foldl:()=>vt,foldr:()=>Tt,forEach:()=>on,functions:()=>qt,get:()=>Qn,groupBy:()=>to,has:()=>kn,head:()=>Sr,identity:()=>Bn,include:()=>Tn,includes:()=>Tn,indexBy:()=>no,indexOf:()=>Dt,initial:()=>si,inject:()=>vt,intersection:()=>Ir,invert:()=>kt,invoke:()=>dr,isArguments:()=>E,isArray:()=>j,isArrayBuffer:()=>ie,isBoolean:()=>v,isDataView:()=>m,isDate:()=>x,isElement:()=>D,isEmpty:()=>ht,isEqual:()=>fe,isError:()=>W,isFinite:()=>q,isFunction:()=>F,isMap:()=>Ut,isMatch:()=>Vt,isNaN:()=>ue,isNull:()=>d,isNumber:()=>u,isObject:()=>p,isRegExp:()=>O,isSet:()=>rn,isString:()=>T,isSymbol:()=>X,isTypedArray:()=>Ie,isUndefined:()=>f,isWeakMap:()=>dn,isWeakSet:()=>Qt,iteratee:()=>Kn,keys:()=>tt,last:()=>so,lastIndexOf:()=>Bt,map:()=>yn,mapObject:()=>xt,matcher:()=>fn,matches:()=>fn,max:()=>lr,memoize:()=>cn,methods:()=>qt,min:()=>Mr,mixin:()=>Di,negate:()=>V,noop:()=>Rt,now:()=>Jt,object:()=>co,omit:()=>oo,once:()=>We,pairs:()=>ct,partial:()=>Mt,partition:()=>Pi,pick:()=>oi,pluck:()=>Un,property:()=>Gn,propertyOf:()=>ir,random:()=>$t,range:()=>ai,reduce:()=>vt,reduceRight:()=>Tt,reject:()=>St,rest:()=>gr,restArguments:()=>I,result:()=>Ge,sample:()=>kr,select:()=>Lt,shuffle:()=>Or,size:()=>io,some:()=>er,sortBy:()=>pr,sortedIndex:()=>mt,tail:()=>gr,take:()=>Sr,tap:()=>wn,template:()=>ge,templateSettings:()=>he,throttle:()=>Pe,times:()=>Cn,toArray:()=>ro,toPath:()=>Sn,transpose:()=>qr,unescape:()=>Nt,union:()=>_i,uniq:()=>$r,unique:()=>$r,uniqueId:()=>nt,unzip:()=>qr,values:()=>Ft,where:()=>jr,without:()=>In,wrap:()=>c,zip:()=>Ti});var ye={};b.r(ye),b.d(ye,{VERSION:()=>we,after:()=>Ce,all:()=>hn,allKeys:()=>se,any:()=>er,assign:()=>an,before:()=>Ze,bind:()=>en,bindAll:()=>Dn,chain:()=>Qe,chunk:()=>Ei,clone:()=>Mn,collect:()=>yn,compact:()=>ao,compose:()=>me,constant:()=>ke,contains:()=>Tn,countBy:()=>Si,create:()=>Hn,debounce:()=>Q,default:()=>uo,defaults:()=>ln,defer:()=>xe,delay:()=>zn,detect:()=>Xt,difference:()=>Ar,drop:()=>gr,each:()=>on,escape:()=>ot,every:()=>hn,extend:()=>sn,extendOwn:()=>an,filter:()=>Lt,find:()=>Xt,findIndex:()=>lt,findKey:()=>it,findLastIndex:()=>ut,findWhere:()=>un,first:()=>Sr,flatten:()=>lo,foldl:()=>vt,foldr:()=>Tt,forEach:()=>on,functions:()=>qt,get:()=>Qn,groupBy:()=>to,has:()=>kn,head:()=>Sr,identity:()=>Bn,include:()=>Tn,includes:()=>Tn,indexBy:()=>no,indexOf:()=>Dt,initial:()=>si,inject:()=>vt,intersection:()=>Ir,invert:()=>kt,invoke:()=>dr,isArguments:()=>E,isArray:()=>j,isArrayBuffer:()=>ie,isBoolean:()=>v,isDataView:()=>m,isDate:()=>x,isElement:()=>D,isEmpty:()=>ht,isEqual:()=>fe,isError:()=>W,isFinite:()=>q,isFunction:()=>F,isMap:()=>Ut,isMatch:()=>Vt,isNaN:()=>ue,isNull:()=>d,isNumber:()=>u,isObject:()=>p,isRegExp:()=>O,isSet:()=>rn,isString:()=>T,isSymbol:()=>X,isTypedArray:()=>Ie,isUndefined:()=>f,isWeakMap:()=>dn,isWeakSet:()=>Qt,iteratee:()=>Kn,keys:()=>tt,last:()=>so,lastIndexOf:()=>Bt,map:()=>yn,mapObject:()=>xt,matcher:()=>fn,matches:()=>fn,max:()=>lr,memoize:()=>cn,methods:()=>qt,min:()=>Mr,mixin:()=>Di,negate:()=>V,noop:()=>Rt,now:()=>Jt,object:()=>co,omit:()=>oo,once:()=>We,pairs:()=>ct,partial:()=>Mt,partition:()=>Pi,pick:()=>oi,pluck:()=>Un,property:()=>Gn,propertyOf:()=>ir,random:()=>$t,range:()=>ai,reduce:()=>vt,reduceRight:()=>Tt,reject:()=>St,rest:()=>gr,restArguments:()=>I,result:()=>Ge,sample:()=>kr,select:()=>Lt,shuffle:()=>Or,size:()=>io,some:()=>er,sortBy:()=>pr,sortedIndex:()=>mt,tail:()=>gr,take:()=>Sr,tap:()=>wn,template:()=>ge,templateSettings:()=>he,throttle:()=>Pe,times:()=>Cn,toArray:()=>ro,toPath:()=>Sn,transpose:()=>qr,unescape:()=>Nt,union:()=>_i,uniq:()=>$r,unique:()=>$r,uniqueId:()=>nt,unzip:()=>qr,values:()=>Ft,where:()=>jr,without:()=>In,wrap:()=>c,zip:()=>Ti});var we="1.13.1",J=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||Function("return this")()||{},Y=Array.prototype,N=Object.prototype,te=typeof Symbol<"u"?Symbol.prototype:null,$=Y.push,L=Y.slice,w=N.toString,y=N.hasOwnProperty,P=typeof ArrayBuffer<"u",A=typeof DataView<"u",k=Array.isArray,B=Object.keys,G=Object.create,M=P&&ArrayBuffer.isView,H=isNaN,Z=isFinite,_=!{toString:null}.propertyIsEnumerable("toString"),C=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],z=Math.pow(2,53)-1;function I(ee,de){return de=de==null?ee.length-1:+de,function(){for(var Me=Math.max(arguments.length-de,0),Re=Array(Me),Ue=0;Ue<Me;Ue++)Re[Ue]=arguments[Ue+de];switch(de){case 0:return ee.call(this,Re);case 1:return ee.call(this,arguments[0],Re);case 2:return ee.call(this,arguments[0],arguments[1],Re)}var Ve=Array(de+1);for(Ue=0;Ue<de;Ue++)Ve[Ue]=arguments[Ue];return Ve[de]=Re,ee.apply(this,Ve)}}function p(ee){var de=typeof ee;return de==="function"||de==="object"&&!!ee}function d(ee){return ee===null}function f(ee){return ee===void 0}function v(ee){return ee===!0||ee===!1||w.call(ee)==="[object Boolean]"}function D(ee){return!(!ee||ee.nodeType!==1)}function g(ee){var de="[object "+ee+"]";return function(Me){return w.call(Me)===de}}let T=g("String"),u=g("Number"),x=g("Date"),O=g("RegExp"),W=g("Error"),X=g("Symbol"),ie=g("ArrayBuffer");var le=g("Function"),ce=J.document&&J.document.childNodes;typeof Int8Array!="object"&&typeof ce!="function"&&(le=function(ee){return typeof ee=="function"||!1});let F=le,l=g("Object");var s=A&&l(new DataView(new ArrayBuffer(8))),o=typeof Map<"u"&&l(new Map),h=g("DataView");let m=s?function(ee){return ee!=null&&F(ee.getInt8)&&ie(ee.buffer)}:h,j=k||g("Array");function K(ee,de){return ee!=null&&y.call(ee,de)}var ve=g("Arguments");(function(){ve(arguments)||(ve=function(ee){return K(ee,"callee")})})();let E=ve;function q(ee){return!X(ee)&&Z(ee)&&!isNaN(parseFloat(ee))}function ue(ee){return u(ee)&&H(ee)}function ke(ee){return function(){return ee}}function Ee(ee){return function(de){var Me=ee(de);return typeof Me=="number"&&Me>=0&&Me<=z}}function pe(ee){return function(de){return de?.[ee]}}let Ae=pe("byteLength"),Ne=Ee(Ae);var Oe=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;let Ie=P?function(ee){return M?M(ee)&&!m(ee):Ne(ee)&&Oe.test(w.call(ee))}:ke(!1),Le=pe("length");function $e(ee,de){de=function(et){for(var dt={},zt=et.length,Yt=0;Yt<zt;++Yt)dt[et[Yt]]=!0;return{contains:function(En){return dt[En]},push:function(En){return dt[En]=!0,et.push(En)}}}(de);var Me=C.length,Re=ee.constructor,Ue=F(Re)&&Re.prototype||N,Ve="constructor";for(K(ee,Ve)&&!de.contains(Ve)&&de.push(Ve);Me--;)(Ve=C[Me])in ee&&ee[Ve]!==Ue[Ve]&&!de.contains(Ve)&&de.push(Ve)}function tt(ee){if(!p(ee))return[];if(B)return B(ee);var de=[];for(var Me in ee)K(ee,Me)&&de.push(Me);return _&&$e(ee,de),de}function ht(ee){if(ee==null)return!0;var de=Le(ee);return typeof de=="number"&&(j(ee)||T(ee)||E(ee))?de===0:Le(tt(ee))===0}function Vt(ee,de){var Me=tt(de),Re=Me.length;if(ee==null)return!Re;for(var Ue=Object(ee),Ve=0;Ve<Re;Ve++){var et=Me[Ve];if(de[et]!==Ue[et]||!(et in Ue))return!1}return!0}function rt(ee){return ee instanceof rt?ee:this instanceof rt?void(this._wrapped=ee):new rt(ee)}function Ht(ee){return new Uint8Array(ee.buffer||ee,ee.byteOffset||0,Ae(ee))}rt.VERSION=we,rt.prototype.value=function(){return this._wrapped},rt.prototype.valueOf=rt.prototype.toJSON=rt.prototype.value,rt.prototype.toString=function(){return String(this._wrapped)};var Zt="[object DataView]";function Ct(ee,de,Me,Re){if(ee===de)return ee!==0||1/ee==1/de;if(ee==null||de==null)return!1;if(ee!=ee)return de!=de;var Ue=typeof ee;return(Ue==="function"||Ue==="object"||typeof de=="object")&&nn(ee,de,Me,Re)}function nn(ee,de,Me,Re){ee instanceof rt&&(ee=ee._wrapped),de instanceof rt&&(de=de._wrapped);var Ue=w.call(ee);if(Ue!==w.call(de))return!1;if(s&&Ue=="[object Object]"&&m(ee)){if(!m(de))return!1;Ue=Zt}switch(Ue){case"[object RegExp]":case"[object String]":return""+ee==""+de;case"[object Number]":return+ee!=+ee?+de!=+de:+ee==0?1/+ee==1/de:+ee==+de;case"[object Date]":case"[object Boolean]":return+ee==+de;case"[object Symbol]":return te.valueOf.call(ee)===te.valueOf.call(de);case"[object ArrayBuffer]":case Zt:return nn(Ht(ee),Ht(de),Me,Re)}var Ve=Ue==="[object Array]";if(!Ve&&Ie(ee)){if(Ae(ee)!==Ae(de))return!1;if(ee.buffer===de.buffer&&ee.byteOffset===de.byteOffset)return!0;Ve=!0}if(!Ve){if(typeof ee!="object"||typeof de!="object")return!1;var et=ee.constructor,dt=de.constructor;if(et!==dt&&!(F(et)&&et instanceof et&&F(dt)&&dt instanceof dt)&&"constructor"in ee&&"constructor"in de)return!1}Re=Re||[];for(var zt=(Me=Me||[]).length;zt--;)if(Me[zt]===ee)return Re[zt]===de;if(Me.push(ee),Re.push(de),Ve){if((zt=ee.length)!==de.length)return!1;for(;zt--;)if(!Ct(ee[zt],de[zt],Me,Re))return!1}else{var Yt,En=tt(ee);if(zt=En.length,tt(de).length!==zt)return!1;for(;zt--;)if(!K(de,Yt=En[zt])||!Ct(ee[Yt],de[Yt],Me,Re))return!1}return Me.pop(),Re.pop(),!0}function fe(ee,de){return Ct(ee,de)}function se(ee){if(!p(ee))return[];var de=[];for(var Me in ee)de.push(Me);return _&&$e(ee,de),de}function be(ee){var de=Le(ee);return function(Me){if(Me==null)return!1;var Re=se(Me);if(Le(Re))return!1;for(var Ue=0;Ue<de;Ue++)if(!F(Me[ee[Ue]]))return!1;return ee!==Ye||!F(Me[_e])}}var _e="forEach",Fe=["clear","delete"],He=["get","has","set"],at=Fe.concat(_e,He),Ye=Fe.concat(He),gt=["add"].concat(Fe,_e,"has");let Ut=o?be(at):g("Map"),dn=o?be(Ye):g("WeakMap"),rn=o?be(gt):g("Set"),Qt=g("WeakSet");function Ft(ee){for(var de=tt(ee),Me=de.length,Re=Array(Me),Ue=0;Ue<Me;Ue++)Re[Ue]=ee[de[Ue]];return Re}function ct(ee){for(var de=tt(ee),Me=de.length,Re=Array(Me),Ue=0;Ue<Me;Ue++)Re[Ue]=[de[Ue],ee[de[Ue]]];return Re}function kt(ee){for(var de={},Me=tt(ee),Re=0,Ue=Me.length;Re<Ue;Re++)de[ee[Me[Re]]]=Me[Re];return de}function qt(ee){var de=[];for(var Me in ee)F(ee[Me])&&de.push(Me);return de.sort()}function Kt(ee,de){return function(Me){var Re=arguments.length;if(de&&(Me=Object(Me)),Re<2||Me==null)return Me;for(var Ue=1;Ue<Re;Ue++)for(var Ve=arguments[Ue],et=ee(Ve),dt=et.length,zt=0;zt<dt;zt++){var Yt=et[zt];de&&Me[Yt]!==void 0||(Me[Yt]=Ve[Yt])}return Me}}let sn=Kt(se),an=Kt(tt),ln=Kt(se,!0);function Rn(ee){if(!p(ee))return{};if(G)return G(ee);var de=function(){};de.prototype=ee;var Me=new de;return de.prototype=null,Me}function Hn(ee,de){var Me=Rn(ee);return de&&an(Me,de),Me}function Mn(ee){return p(ee)?j(ee)?ee.slice():sn({},ee):ee}function wn(ee,de){return de(ee),ee}function Sn(ee){return j(ee)?ee:[ee]}function pn(ee){return rt.toPath(ee)}function vn(ee,de){for(var Me=de.length,Re=0;Re<Me;Re++){if(ee==null)return;ee=ee[de[Re]]}return Me?ee:void 0}function Qn(ee,de,Me){var Re=vn(ee,pn(de));return f(Re)?Me:Re}function kn(ee,de){for(var Me=(de=pn(de)).length,Re=0;Re<Me;Re++){var Ue=de[Re];if(!K(ee,Ue))return!1;ee=ee[Ue]}return!!Me}function Bn(ee){return ee}function fn(ee){return ee=an({},ee),function(de){return Vt(de,ee)}}function Gn(ee){return ee=pn(ee),function(de){return vn(de,ee)}}function gn(ee,de,Me){if(de===void 0)return ee;switch(Me??3){case 1:return function(Re){return ee.call(de,Re)};case 3:return function(Re,Ue,Ve){return ee.call(de,Re,Ue,Ve)};case 4:return function(Re,Ue,Ve,et){return ee.call(de,Re,Ue,Ve,et)}}return function(){return ee.apply(de,arguments)}}function Pn(ee,de,Me){return ee==null?Bn:F(ee)?gn(ee,de,Me):p(ee)&&!j(ee)?fn(ee):Gn(ee)}function Kn(ee,de){return Pn(ee,de,1/0)}function At(ee,de,Me){return rt.iteratee!==Kn?rt.iteratee(ee,de):Pn(ee,de,Me)}function xt(ee,de,Me){de=At(de,Me);for(var Re=tt(ee),Ue=Re.length,Ve={},et=0;et<Ue;et++){var dt=Re[et];Ve[dt]=de(ee[dt],dt,ee)}return Ve}function Rt(){}function ir(ee){return ee==null?Rt:function(de){return Qn(ee,de)}}function Cn(ee,de,Me){var Re=Array(Math.max(0,ee));de=gn(de,Me,1);for(var Ue=0;Ue<ee;Ue++)Re[Ue]=de(Ue);return Re}function $t(ee,de){return de==null&&(de=ee,ee=0),ee+Math.floor(Math.random()*(de-ee+1))}rt.toPath=Sn,rt.iteratee=Kn;let Jt=Date.now||function(){return new Date().getTime()};function Nn(ee){var de=function(Ve){return ee[Ve]},Me="(?:"+tt(ee).join("|")+")",Re=RegExp(Me),Ue=RegExp(Me,"g");return function(Ve){return Ve=Ve==null?"":""+Ve,Re.test(Ve)?Ve.replace(Ue,de):Ve}}let Xn={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},ot=Nn(Xn),Nt=Nn(kt(Xn)),he=rt.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var Te=/(.)^/,Ke={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},U=/\\|'|\r|\n|\u2028|\u2029/g;function oe(ee){return"\\"+Ke[ee]}var ne=/^\s*(\w|\$)+\s*$/;function ge(ee,de,Me){!de&&Me&&(de=Me),de=ln({},de,rt.templateSettings);var Re=RegExp([(de.escape||Te).source,(de.interpolate||Te).source,(de.evaluate||Te).source].join("|")+"|$","g"),Ue=0,Ve="__p+='";ee.replace(Re,function(Yt,En,br,ci,Lr){return Ve+=ee.slice(Ue,Lr).replace(U,oe),Ue=Lr+Yt.length,En?Ve+=`'+ +((__t=(`+En+`))==null?'':_.escape(__t))+ +'`:br?Ve+=`'+ +((__t=(`+br+`))==null?'':__t)+ +'`:ci&&(Ve+=`'; +`+ci+` +__p+='`),Yt}),Ve+=`'; +`;var et,dt=de.variable;if(dt){if(!ne.test(dt))throw new Error("variable is not a bare identifier: "+dt)}else Ve=`with(obj||{}){ +`+Ve+`} +`,dt="obj";Ve=`var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');}; +`+Ve+`return __p; +`;try{et=new Function(dt,"_",Ve)}catch(Yt){throw Yt.source=Ve,Yt}var zt=function(Yt){return et.call(this,Yt,rt)};return zt.source="function("+dt+`){ +`+Ve+"}",zt}function Ge(ee,de,Me){var Re=(de=pn(de)).length;if(!Re)return F(Me)?Me.call(ee):Me;for(var Ue=0;Ue<Re;Ue++){var Ve=ee?.[de[Ue]];Ve===void 0&&(Ve=Me,Ue=Re),ee=F(Ve)?Ve.call(ee):Ve}return ee}var yt=0;function nt(ee){var de=++yt+"";return ee?ee+de:de}function Qe(ee){var de=rt(ee);return de._chain=!0,de}function wt(ee,de,Me,Re,Ue){if(!(Re instanceof de))return ee.apply(Me,Ue);var Ve=Rn(ee.prototype),et=ee.apply(Ve,Ue);return p(et)?et:Ve}var jt=I(function(ee,de){var Me=jt.placeholder,Re=function(){for(var Ue=0,Ve=de.length,et=Array(Ve),dt=0;dt<Ve;dt++)et[dt]=de[dt]===Me?arguments[Ue++]:de[dt];for(;Ue<arguments.length;)et.push(arguments[Ue++]);return wt(ee,Re,this,this,et)};return Re});jt.placeholder=rt;let Mt=jt,en=I(function(ee,de,Me){if(!F(ee))throw new TypeError("Bind must be called on a function");var Re=I(function(Ue){return wt(ee,Re,de,this,Me.concat(Ue))});return Re}),Gt=Ee(Le);function tn(ee,de,Me,Re){if(Re=Re||[],de||de===0){if(de<=0)return Re.concat(ee)}else de=1/0;for(var Ue=Re.length,Ve=0,et=Le(ee);Ve<et;Ve++){var dt=ee[Ve];if(Gt(dt)&&(j(dt)||E(dt)))if(de>1)tn(dt,de-1,Me,Re),Ue=Re.length;else for(var zt=0,Yt=dt.length;zt<Yt;)Re[Ue++]=dt[zt++];else Me||(Re[Ue++]=dt)}return Re}let Dn=I(function(ee,de){var Me=(de=tn(de,!1,!1)).length;if(Me<1)throw new Error("bindAll must be passed function names");for(;Me--;){var Re=de[Me];ee[Re]=en(ee[Re],ee)}return ee});function cn(ee,de){var Me=function(Re){var Ue=Me.cache,Ve=""+(de?de.apply(this,arguments):Re);return K(Ue,Ve)||(Ue[Ve]=ee.apply(this,arguments)),Ue[Ve]};return Me.cache={},Me}let zn=I(function(ee,de,Me){return setTimeout(function(){return ee.apply(null,Me)},de)}),xe=Mt(zn,rt,1);function Pe(ee,de,Me){var Re,Ue,Ve,et,dt=0;Me||(Me={});var zt=function(){dt=Me.leading===!1?0:Jt(),Re=null,et=ee.apply(Ue,Ve),Re||(Ue=Ve=null)},Yt=function(){var En=Jt();dt||Me.leading!==!1||(dt=En);var br=de-(En-dt);return Ue=this,Ve=arguments,br<=0||br>de?(Re&&(clearTimeout(Re),Re=null),dt=En,et=ee.apply(Ue,Ve),Re||(Ue=Ve=null)):Re||Me.trailing===!1||(Re=setTimeout(zt,br)),et};return Yt.cancel=function(){clearTimeout(Re),dt=0,Re=Ue=Ve=null},Yt}function Q(ee,de,Me){var Re,Ue,Ve,et,dt,zt=function(){var En=Jt()-Ue;de>En?Re=setTimeout(zt,de-En):(Re=null,Me||(et=ee.apply(dt,Ve)),Re||(Ve=dt=null))},Yt=I(function(En){return dt=this,Ve=En,Ue=Jt(),Re||(Re=setTimeout(zt,de),Me&&(et=ee.apply(dt,Ve))),et});return Yt.cancel=function(){clearTimeout(Re),Re=Ve=dt=null},Yt}function c(ee,de){return Mt(de,ee)}function V(ee){return function(){return!ee.apply(this,arguments)}}function me(){var ee=arguments,de=ee.length-1;return function(){for(var Me=de,Re=ee[de].apply(this,arguments);Me--;)Re=ee[Me].call(this,Re);return Re}}function Ce(ee,de){return function(){if(--ee<1)return de.apply(this,arguments)}}function Ze(ee,de){var Me;return function(){return--ee>0&&(Me=de.apply(this,arguments)),ee<=1&&(de=null),Me}}let We=Mt(Ze,2);function it(ee,de,Me){de=At(de,Me);for(var Re,Ue=tt(ee),Ve=0,et=Ue.length;Ve<et;Ve++)if(de(ee[Re=Ue[Ve]],Re,ee))return Re}function Xe(ee){return function(de,Me,Re){Me=At(Me,Re);for(var Ue=Le(de),Ve=ee>0?0:Ue-1;Ve>=0&&Ve<Ue;Ve+=ee)if(Me(de[Ve],Ve,de))return Ve;return-1}}let lt=Xe(1),ut=Xe(-1);function mt(ee,de,Me,Re){for(var Ue=(Me=At(Me,Re,1))(de),Ve=0,et=Le(ee);Ve<et;){var dt=Math.floor((Ve+et)/2);Me(ee[dt])<Ue?Ve=dt+1:et=dt}return Ve}function _t(ee,de,Me){return function(Re,Ue,Ve){var et=0,dt=Le(Re);if(typeof Ve=="number")ee>0?et=Ve>=0?Ve:Math.max(Ve+dt,et):dt=Ve>=0?Math.min(Ve+1,dt):Ve+dt+1;else if(Me&&Ve&&dt)return Re[Ve=Me(Re,Ue)]===Ue?Ve:-1;if(Ue!=Ue)return(Ve=de(L.call(Re,et,dt),ue))>=0?Ve+et:-1;for(Ve=ee>0?et:dt-1;Ve>=0&&Ve<dt;Ve+=ee)if(Re[Ve]===Ue)return Ve;return-1}}let Dt=_t(1,lt,mt),Bt=_t(-1,ut);function Xt(ee,de,Me){var Re=(Gt(ee)?lt:it)(ee,de,Me);if(Re!==void 0&&Re!==-1)return ee[Re]}function un(ee,de){return Xt(ee,fn(de))}function on(ee,de,Me){var Re,Ue;if(de=gn(de,Me),Gt(ee))for(Re=0,Ue=ee.length;Re<Ue;Re++)de(ee[Re],Re,ee);else{var Ve=tt(ee);for(Re=0,Ue=Ve.length;Re<Ue;Re++)de(ee[Ve[Re]],Ve[Re],ee)}return ee}function yn(ee,de,Me){de=At(de,Me);for(var Re=!Gt(ee)&&tt(ee),Ue=(Re||ee).length,Ve=Array(Ue),et=0;et<Ue;et++){var dt=Re?Re[et]:et;Ve[et]=de(ee[dt],dt,ee)}return Ve}function An(ee){var de=function(Me,Re,Ue,Ve){var et=!Gt(Me)&&tt(Me),dt=(et||Me).length,zt=ee>0?0:dt-1;for(Ve||(Ue=Me[et?et[zt]:zt],zt+=ee);zt>=0&&zt<dt;zt+=ee){var Yt=et?et[zt]:zt;Ue=Re(Ue,Me[Yt],Yt,Me)}return Ue};return function(Me,Re,Ue,Ve){var et=arguments.length>=3;return de(Me,gn(Re,Ve,4),Ue,et)}}let vt=An(1),Tt=An(-1);function Lt(ee,de,Me){var Re=[];return de=At(de,Me),on(ee,function(Ue,Ve,et){de(Ue,Ve,et)&&Re.push(Ue)}),Re}function St(ee,de,Me){return Lt(ee,V(At(de)),Me)}function hn(ee,de,Me){de=At(de,Me);for(var Re=!Gt(ee)&&tt(ee),Ue=(Re||ee).length,Ve=0;Ve<Ue;Ve++){var et=Re?Re[Ve]:Ve;if(!de(ee[et],et,ee))return!1}return!0}function er(ee,de,Me){de=At(de,Me);for(var Re=!Gt(ee)&&tt(ee),Ue=(Re||ee).length,Ve=0;Ve<Ue;Ve++){var et=Re?Re[Ve]:Ve;if(de(ee[et],et,ee))return!0}return!1}function Tn(ee,de,Me,Re){return Gt(ee)||(ee=Ft(ee)),(typeof Me!="number"||Re)&&(Me=0),Dt(ee,de,Me)>=0}let dr=I(function(ee,de,Me){var Re,Ue;return F(de)?Ue=de:(de=pn(de),Re=de.slice(0,-1),de=de[de.length-1]),yn(ee,function(Ve){var et=Ue;if(!et){if(Re&&Re.length&&(Ve=vn(Ve,Re)),Ve==null)return;et=Ve[de]}return et==null?et:et.apply(Ve,Me)})});function Un(ee,de){return yn(ee,Gn(de))}function jr(ee,de){return Lt(ee,fn(de))}function lr(ee,de,Me){var Re,Ue,Ve=-1/0,et=-1/0;if(de==null||typeof de=="number"&&typeof ee[0]!="object"&&ee!=null)for(var dt=0,zt=(ee=Gt(ee)?ee:Ft(ee)).length;dt<zt;dt++)(Re=ee[dt])!=null&&Re>Ve&&(Ve=Re);else de=At(de,Me),on(ee,function(Yt,En,br){((Ue=de(Yt,En,br))>et||Ue===-1/0&&Ve===-1/0)&&(Ve=Yt,et=Ue)});return Ve}function Mr(ee,de,Me){var Re,Ue,Ve=1/0,et=1/0;if(de==null||typeof de=="number"&&typeof ee[0]!="object"&&ee!=null)for(var dt=0,zt=(ee=Gt(ee)?ee:Ft(ee)).length;dt<zt;dt++)(Re=ee[dt])!=null&&Re<Ve&&(Ve=Re);else de=At(de,Me),on(ee,function(Yt,En,br){((Ue=de(Yt,En,br))<et||Ue===1/0&&Ve===1/0)&&(Ve=Yt,et=Ue)});return Ve}function kr(ee,de,Me){if(de==null||Me)return Gt(ee)||(ee=Ft(ee)),ee[$t(ee.length-1)];var Re=Gt(ee)?Mn(ee):Ft(ee),Ue=Le(Re);de=Math.max(Math.min(de,Ue),0);for(var Ve=Ue-1,et=0;et<de;et++){var dt=$t(et,Ve),zt=Re[et];Re[et]=Re[dt],Re[dt]=zt}return Re.slice(0,de)}function Or(ee){return kr(ee,1/0)}function pr(ee,de,Me){var Re=0;return de=At(de,Me),Un(yn(ee,function(Ue,Ve,et){return{value:Ue,index:Re++,criteria:de(Ue,Ve,et)}}).sort(function(Ue,Ve){var et=Ue.criteria,dt=Ve.criteria;if(et!==dt){if(et>dt||et===void 0)return 1;if(et<dt||dt===void 0)return-1}return Ue.index-Ve.index}),"value")}function ii(ee,de){return function(Me,Re,Ue){var Ve=de?[[],[]]:{};return Re=At(Re,Ue),on(Me,function(et,dt){var zt=Re(et,dt,Me);ee(Ve,et,zt)}),Ve}}let to=ii(function(ee,de,Me){K(ee,Me)?ee[Me].push(de):ee[Me]=[de]}),no=ii(function(ee,de,Me){ee[Me]=de}),Si=ii(function(ee,de,Me){K(ee,Me)?ee[Me]++:ee[Me]=1}),Pi=ii(function(ee,de,Me){ee[Me?0:1].push(de)},!0);var Lo=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function ro(ee){return ee?j(ee)?L.call(ee):T(ee)?ee.match(Lo):Gt(ee)?yn(ee,Bn):Ft(ee):[]}function io(ee){return ee==null?0:Gt(ee)?ee.length:tt(ee).length}function Ro(ee,de,Me){return de in Me}let oi=I(function(ee,de){var Me={},Re=de[0];if(ee==null)return Me;F(Re)?(de.length>1&&(Re=gn(Re,de[1])),de=se(ee)):(Re=Ro,de=tn(de,!1,!1),ee=Object(ee));for(var Ue=0,Ve=de.length;Ue<Ve;Ue++){var et=de[Ue],dt=ee[et];Re(dt,et,ee)&&(Me[et]=dt)}return Me}),oo=I(function(ee,de){var Me,Re=de[0];return F(Re)?(Re=V(Re),de.length>1&&(Me=de[1])):(de=yn(tn(de,!1,!1),String),Re=function(Ue,Ve){return!Tn(de,Ve)}),oi(ee,Re,Me)});function si(ee,de,Me){return L.call(ee,0,Math.max(0,ee.length-(de==null||Me?1:de)))}function Sr(ee,de,Me){return ee==null||ee.length<1?de==null||Me?void 0:[]:de==null||Me?ee[0]:si(ee,ee.length-de)}function gr(ee,de,Me){return L.call(ee,de==null||Me?1:de)}function so(ee,de,Me){return ee==null||ee.length<1?de==null||Me?void 0:[]:de==null||Me?ee[ee.length-1]:gr(ee,Math.max(0,ee.length-de))}function ao(ee){return Lt(ee,Boolean)}function lo(ee,de){return tn(ee,de,!1)}let Ar=I(function(ee,de){return de=tn(de,!0,!0),Lt(ee,function(Me){return!Tn(de,Me)})}),In=I(function(ee,de){return Ar(ee,de)});function $r(ee,de,Me,Re){v(de)||(Re=Me,Me=de,de=!1),Me!=null&&(Me=At(Me,Re));for(var Ue=[],Ve=[],et=0,dt=Le(ee);et<dt;et++){var zt=ee[et],Yt=Me?Me(zt,et,ee):zt;de&&!Me?(et&&Ve===Yt||Ue.push(zt),Ve=Yt):Me?Tn(Ve,Yt)||(Ve.push(Yt),Ue.push(zt)):Tn(Ue,zt)||Ue.push(zt)}return Ue}let _i=I(function(ee){return $r(tn(ee,!0,!0))});function Ir(ee){for(var de=[],Me=arguments.length,Re=0,Ue=Le(ee);Re<Ue;Re++){var Ve=ee[Re];if(!Tn(de,Ve)){var et;for(et=1;et<Me&&Tn(arguments[et],Ve);et++);et===Me&&de.push(Ve)}}return de}function qr(ee){for(var de=ee&&lr(ee,Le).length||0,Me=Array(de),Re=0;Re<de;Re++)Me[Re]=Un(ee,Re);return Me}let Ti=I(qr);function co(ee,de){for(var Me={},Re=0,Ue=Le(ee);Re<Ue;Re++)de?Me[ee[Re]]=de[Re]:Me[ee[Re][0]]=ee[Re][1];return Me}function ai(ee,de,Me){de==null&&(de=ee||0,ee=0),Me||(Me=de<ee?-1:1);for(var Re=Math.max(Math.ceil((de-ee)/Me),0),Ue=Array(Re),Ve=0;Ve<Re;Ve++,ee+=Me)Ue[Ve]=ee;return Ue}function Ei(ee,de){if(de==null||de<1)return[];for(var Me=[],Re=0,Ue=ee.length;Re<Ue;)Me.push(L.call(ee,Re,Re+=de));return Me}function ji(ee,de){return ee._chain?rt(de).chain():de}function Di(ee){return on(qt(ee),function(de){var Me=rt[de]=ee[de];rt.prototype[de]=function(){var Re=[this._wrapped];return $.apply(Re,arguments),ji(this,Me.apply(rt,Re))}}),rt}on(["pop","push","reverse","shift","sort","splice","unshift"],function(ee){var de=Y[ee];rt.prototype[ee]=function(){var Me=this._wrapped;return Me!=null&&(de.apply(Me,arguments),ee!=="shift"&&ee!=="splice"||Me.length!==0||delete Me[0]),ji(this,Me)}}),on(["concat","join","slice"],function(ee){var de=Y[ee];rt.prototype[ee]=function(){var Me=this._wrapped;return Me!=null&&(Me=de.apply(Me,arguments)),ji(this,Me)}});let uo=rt;var li=Di(ye);li._=li;let No=li}},Vn={};function Wt(Je){var Se=Vn[Je];if(Se!==void 0)return Se.exports;var b=Vn[Je]={exports:{}};return rr[Je].call(b.exports,b,b.exports,Wt),b.exports}Wt.n=Je=>{var Se=Je&&Je.__esModule?()=>Je.default:()=>Je;return Wt.d(Se,{a:Se}),Se},Wt.d=(Je,Se)=>{for(var b in Se)Wt.o(Se,b)&&!Wt.o(Je,b)&&Object.defineProperty(Je,b,{enumerable:!0,get:Se[b]})},Wt.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),Wt.o=(Je,Se)=>Object.prototype.hasOwnProperty.call(Je,Se),Wt.r=Je=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(Je,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Je,"__esModule",{value:!0})};var ri={};return(()=>{"use strict";Wt.d(ri,{default:()=>le});var Je=Wt(4942),Se=Wt(9050),b=Wt(2579);let ye={stylePrefix:"gjs-",components:"",style:"",fromElement:0,noticeOnUnload:!0,showOffsets:!1,showOffsetsSelected:!1,forceClass:!0,height:"900px",width:"100%",log:["warning","error"],baseCss:` + * { + box-sizing: border-box; + } + html, body, [data-gjs-type=wrapper] { + min-height: 100%; + } + body { + margin: 0; + height: 100%; + background-color: #fff + } + [data-gjs-type=wrapper] { + overflow: auto; + overflow-x: hidden; + } + + * ::-webkit-scrollbar-track { + background: rgba(0, 0, 0, 0.1) + } + + * ::-webkit-scrollbar-thumb { + background: rgba(255, 255, 255, 0.2) + } + + * ::-webkit-scrollbar { + width: 10px + } + `,protectedCss:"* { box-sizing: border-box; } body {margin: 0;}",canvasCss:"",defaultCommand:"select-comp",showToolbar:1,showDevices:1,devicePreviewMode:0,mediaCondition:"max-width",tagVarStart:"{[ ",tagVarEnd:" ]}",keepEmptyTextNodes:0,jsInHtml:!0,nativeDnD:1,multipleSelection:1,optsHtml:{},optsCss:{},avoidInlineStyle:1,avoidDefaults:1,clearStyles:0,dragMode:0,listenToEl:[],cssIcons:"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css",icons:{close:'<svg viewBox="0 0 24 24"><path fill="currentColor" d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"></path></svg>',move:'<svg viewBox="0 0 24 24"><path fill="currentColor" d="M13,6V11H18V7.75L22.25,12L18,16.25V13H13V18H16.25L12,22.25L7.75,18H11V13H6V16.25L1.75,12L6,7.75V11H11V6H7.75L12,1.75L16.25,6H13Z"/></svg>',plus:'<svg viewBox="0 0 24 24"><path fill="currentColor" d="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z" /></svg>',caret:'<svg viewBox="0 0 24 24"><path fill="currentColor" d="M7,10L12,15L17,10H7Z" /></svg>',delete:'<svg viewBox="0 0 24 24"><path fill="currentColor" d="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z" /></svg>',copy:'<svg viewBox="0 0 24 24"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z" /></svg>',arrowUp:'<svg viewBox="0 0 24 24"><path fill="currentColor" d="M13,20H11V8L5.5,13.5L4.08,12.08L12,4.16L19.92,12.08L18.5,13.5L13,8V20Z" /></svg>'},el:"",i18n:{},undoManager:{},assetManager:{},canvas:{},layers:{},storageManager:{},richTextEditor:{},domComponents:{},modal:{},codeManager:{},panels:{},commands:{},cssComposer:{},selectorManager:{},deviceManager:{},styleManager:{},blockManager:{},traitManager:{},textViewCode:"Code",keepUnusedStyles:0,multiFrames:0,customUI:!1};var we=Wt(4925),J=Wt(5671),Y=Wt(3144),N=Wt(9340),te=Wt(3930),$=Wt(1120),L=Wt(2316),w=Wt.n(L),y=Wt(6183);function P(ce){var F=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var l,s=(0,$.Z)(ce);if(F){var o=(0,$.Z)(this).constructor;l=Reflect.construct(s,arguments,o)}else l=s.apply(this,arguments);return(0,te.Z)(this,l)}}var A=function(ce){(0,N.Z)(l,ce);var F=P(l);function l(){return(0,J.Z)(this,l),F.apply(this,arguments)}return(0,Y.Z)(l)}(L.Model),k=function(ce){(0,N.Z)(l,ce);var F=P(l);function l(){return(0,J.Z)(this,l),F.apply(this,arguments)}return(0,Y.Z)(l,[{key:"getByComponent",value:function(s){var o=this;return this.filter(function(h){return o.getComponent(h)===s})[0]}},{key:"addComponent",value:function(s,o){var h=this,m=((0,Se.isArray)(s)?s:[s]).filter(function(j){return!h.hasComponent(j)}).map(function(j){return{component:j}});return this.push(m,o)}},{key:"getComponent",value:function(s){return s.get("component")}},{key:"hasComponent",value:function(s){var o=this.getByComponent(s);return o&&this.contains(o)}},{key:"lastComponent",value:function(){var s=this.last();return s&&this.getComponent(s)}},{key:"allComponents",value:function(){var s=this;return this.map(function(o){return s.getComponent(o)}).filter(function(o){return o})}},{key:"removeComponent",value:function(s,o){var h=this,m=((0,Se.isArray)(s)?s:[s]).map(function(j){return h.getByComponent(j)});return this.remove(m,o)}}]),l}(L.Collection);k.prototype.model=A;var B=["unset"];function G(ce,F){var l=Object.keys(ce);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(ce);F&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(ce,o).enumerable})),l.push.apply(l,s)}return l}function M(ce){for(var F=1;F<arguments.length;F++){var l=arguments[F]!=null?arguments[F]:{};F%2?G(Object(l),!0).forEach(function(s){(0,Je.Z)(ce,s,l[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ce,Object.getOwnPropertyDescriptors(l)):G(Object(l)).forEach(function(s){Object.defineProperty(ce,s,Object.getOwnPropertyDescriptor(l,s))})}return ce}function H(ce){var F=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var l,s=(0,$.Z)(ce);if(F){var o=(0,$.Z)(this).constructor;l=Reflect.construct(s,arguments,o)}else l=s.apply(this,arguments);return(0,te.Z)(this,l)}}w().$=b.default;var Z,_,C=[Wt(6718),Wt(4836),Wt(9788),Wt(8202),Wt(4859),Wt(2004),Wt(4424),Wt(2326),Wt(4755),Wt(2450),Wt(7619),Wt(4906),Wt(2012),Wt(1030),Wt(672),Wt(2567),Wt(6388),Wt(9831),Wt(77),Wt(6950),Wt(289),Wt(6407)];(function(ce){var F=ce.$;if(F&&F.prototype&&F.prototype.constructor.name!=="jQuery"){var l=F.fn;l.hide=function(){return this.css("display","none")},l.show=function(){return this.css("display","block")},l.focus=function(){var h=this.get(0);return h&&h.focus(),this},l.bind=function(h,m){return this.on(h,m)},l.unbind=function(h,m){if((0,Se.isObject)(h)){for(var j in h)h.hasOwnProperty(j)&&this.off(j,h[j]);return this}return this.off(h,m)},l.click=function(h){return h?this.on("click",h):this.trigger("click")},l.change=function(h){return h?this.on("change",h):this.trigger("change")},l.keydown=function(h){return h?this.on("keydown",h):this.trigger("keydown")},l.delegate=function(h,m,j,K){return K||(K=j),this.on(m,h,function(ve){ve.data=j,K(ve)})},l.scrollLeft=function(){var h=this.get(0),m=(h=h.nodeType==9?h.defaultView:h)instanceof Window?h:null;return m?m.pageXOffset:h.scrollLeft||0},l.scrollTop=function(){var h=this.get(0),m=(h=h.nodeType==9?h.defaultView:h)instanceof Window?h:null;return m?m.pageYOffset:h.scrollTop||0};var s=F.prototype.offset;l.offset=function(h){var m,j;return h&&(m=h.top,j=h.left),m!==void 0&&this.css("top","".concat(m,"px")),j!==void 0&&this.css("left","".concat(j,"px")),s.call(this)},F.map=function(h,m){for(var j=[],K=0;K<h.length;K++)j.push(m(h[K],K));return j};var o=Array.prototype.indexOf;F.inArray=function(h,m,j){return m==null?-1:o.call(m,h,j)},F.Event=function(h,m){if(!(this instanceof F.Event))return new F.Event(h,m);this.type=h,this.isDefaultPrevented=function(){return!1}}}})({Backbone:w(),$:w().$});var z={debug:console.log,info:console.info,warning:console.warn,error:console.error},I=function(ce){(0,N.Z)(l,ce);var F=H(l);function l(){return(0,J.Z)(this,l),F.apply(this,arguments)}return(0,Y.Z)(l,[{key:"defaults",value:function(){return{editing:0,selected:0,clipboard:null,dmode:0,componentHovered:null,previousModel:null,changesCount:0,storables:[],modules:[],toLoad:[],opened:{},device:""}}},{key:"initialize",value:function(){var s=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.config=o,this.set("Config",o),this.set("modules",[]),this.set("toLoad",[]),this.set("storables",[]),this.set("selected",new k),this.set("dmode",o.dragMode),this.set("hasPages",!!o.pageManager);var h=o.el,m=o.log,j=m===!0?(0,Se.keys)(z):(0,Se.isArray)(m)?m:[];(0,Se.bindAll)(this,"initBaseColorPicker"),h&&o.fromElement&&(this.config.components=h.innerHTML),this.attrsOrig=h?(0,Se.toArray)(h.attributes).reduce(function(K,ve){return K[ve.nodeName]=ve.nodeValue,K},{}):"",C.forEach(function(K){return s.loadModule(K)}),this.on("change:componentHovered",this.componentHovered,this),this.on("change:changesCount",this.updateChanges,this),this.on("change:readyLoad change:readyCanvas",this._checkReady,this),j.forEach(function(K){return s.listenLog(K)}),[{from:"change:selectedComponent",to:"component:toggled"}].forEach(function(K){var ve=K.from,E=K.to;s.listenTo(s,ve,function(){for(var q=arguments.length,ue=new Array(q),ke=0;ke<q;ke++)ue[ke]=arguments[ke];s.trigger.apply(s,[E].concat(ue)),s.logWarning("The event '".concat(ve,"' is deprecated, replace it with '").concat(E,"'"))})})}},{key:"_checkReady",value:function(){this.get("readyLoad")&&this.get("readyCanvas")&&!this.get("ready")&&this.set("ready",!0)}},{key:"getContainer",value:function(){return this.config.el}},{key:"listenLog",value:function(s){this.listenTo(this,"log:".concat(s),z[s])}},{key:"getConfig",value:function(s){var o=this.config;return(0,Se.isUndefined)(s)?o:o[s]}},{key:"loadOnStart",value:function(){var s=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,h=this.get("StorageManager");this.get("toLoad").forEach(function(K){return K.onLoad()});var m=function(){s.get("modules").forEach(function(K){return K.postLoad&&K.postLoad(s)}),s.set("readyLoad",1),o&&o()};h&&h.canAutoload()?this.load(m):setTimeout(m);var j=new l({noticeOnUnload:!1,storageManager:!1,undoManager:!1});["PageManager","Canvas"].forEach(function(K){return j.get(K).onLoad()}),this.set("shallow",j)}},{key:"updateChanges",value:function(){var s=this,o=this.get("StorageManager"),h=this.get("changesCount");_&&clearTimeout(_),_=setTimeout(function(){return s.trigger("update")}),this.config.noticeOnUnload&&(window.onbeforeunload=h?function(m){return 1}:null),o.isAutosave()&&h>=o.getStepsBeforeSave()&&this.store()}},{key:"loadModule",value:function(s){var o=this.config,h=new(s.default||s),m=h.name.charAt(0).toLowerCase()+h.name.slice(1),j=(0,Se.isUndefined)(o[m])?o[h.name]:o[m],K=j===!0?{}:j||{},ve=this.get("StorageManager");if(K.pStylePrefix=o.pStylePrefix||"",(0,Se.isUndefined)(j)||j||(K._disable=1),h.storageKey&&h.store&&h.load&&ve){K.stm=ve;var E=m=="domComponents"?"unshift":"push";this.get("storables")[E](h)}return K.em=this,h.init(M({},K)),!h.private&&this.set(h.name,h),h.onLoad&&this.get("toLoad").push(h),this.get("modules").push(h),this}},{key:"init",value:function(s){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.destroyed&&(this.initialize(o),this.destroyed=0),this.set("Editor",s)}},{key:"getEditor",value:function(){return this.get("Editor")}},{key:"handleUpdates",value:function(s,o){var h=this,m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.__skip||m.temporary||m.noCount||m.avoidStore||!this.get("ready")||(Z&&clearTimeout(Z),Z=setTimeout(function(){var j=h.get("changesCount")||0,K=(m.unset,(0,we.Z)(m,B));h.set("changesCount",j+1,K)},0))}},{key:"changesUp",value:function(s){this.handleUpdates(0,0,s)}},{key:"componentHovered",value:function(s,o,h){var m=this.previous("componentHovered");m&&this.trigger("component:unhovered",m,h),o&&this.trigger("component:hovered",o,h)}},{key:"getSelected",value:function(){return this.get("selected").lastComponent()}},{key:"getSelectedAll",value:function(){return this.get("selected").allComponents()}},{key:"setSelected",value:function(s){var o=this,h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=h.event,j=m&&(m.ctrlKey||m.metaKey),K=m||{},ve=K.shiftKey,E=(0,Se.isArray)(s),q=(E?s:[s]).map(function(Ee){return(0,y.getModel)(Ee,b.default)}),ue=this.getSelectedAll(),ke=this.getConfig("multipleSelection");E&&this.removeSelected(ue.filter(function(Ee){return!(0,Se.contains)(q,Ee)})),q.forEach(function(Ee){var pe=(0,y.getModel)(Ee);if(pe&&(o.trigger("component:select:before",pe,h),!pe.get("selectable")||h.abort)){if(!h.useValid)return;for(var Ae=pe.parent();Ae&&!Ae.get("selectable");)Ae=Ae.parent();pe=Ae}if(j&&ke)return o.toggleSelected(pe);if(ve&&ke){o.clearSelection(o.get("Canvas").getWindow());var Ne,Oe,Ie=pe.collection,Le=pe.index();if(o.getSelectedAll().forEach(function($e){var tt=$e.collection,ht=$e.index();tt===Ie&&(ht<Le?Ne=(0,Se.isUndefined)(Ne)?ht:Math.max(Ne,ht):ht>Le&&(Oe=(0,Se.isUndefined)(Oe)?ht:Math.min(Oe,ht)))}),!(0,Se.isUndefined)(Ne))for(;Ne!==Le;)o.addSelected(Ie.at(Ne)),Ne++;if(!(0,Se.isUndefined)(Oe))for(;Oe!==Le;)o.addSelected(Ie.at(Oe)),Oe--;return o.addSelected(pe)}!E&&o.removeSelected(ue.filter(function($e){return $e!==pe})),o.addSelected(pe,h)})}},{key:"addSelected",value:function(s){var o=this,h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=(0,y.getModel)(s,b.default),j=(0,Se.isArray)(m)?m:[m];j.forEach(function(K){if(!K||K.get("selectable")){var ve=o.get("selected");h.forceChange&&o.removeSelected(K,h),ve.addComponent(K,h),K&&o.trigger("component:select",K,h)}})}},{key:"removeSelected",value:function(s){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.get("selected").removeComponent((0,y.getModel)(s,b.default),o)}},{key:"toggleSelected",value:function(s){var o=this,h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=(0,y.getModel)(s,b.default),j=(0,Se.isArray)(m)?m:[m];j.forEach(function(K){o.get("selected").hasComponent(K)?o.removeSelected(K,h):o.addSelected(K,h)})}},{key:"setHovered",value:function(s){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!s)return this.set("componentHovered","");var h="component:hover",m=(0,y.getModel)(s);if(m){if(o.forceChange&&this.set("componentHovered",""),this.trigger("".concat(h,":before"),m,o),!m.get("hoverable")){if(!o.useValid||o.abort)return;for(var j=m&&m.parent();j&&!j.get("hoverable");)j=j.parent();m=j}o.abort||(this.set("componentHovered",m,o),this.trigger(h,m,o))}}},{key:"getHovered",value:function(){return this.get("componentHovered")}},{key:"setComponents",value:function(s){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.get("DomComponents").setComponents(s,o)}},{key:"getComponents",value:function(){var s=this.get("DomComponents"),o=this.get("CodeManager");if(s&&o){var h=s.getComponents();return o.getCode(h,"json")}}},{key:"setStyle",value:function(s){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=this.get("CssComposer");return h.clear(o),h.getAll().add(s,o),this}},{key:"addStyle",value:function(s){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=this.getStyle().add(s,o);return(0,Se.isArray)(h)?h:[h]}},{key:"getStyle",value:function(){return this.get("CssComposer").getAll()}},{key:"setState",value:function(s){return this.set("state",s),this}},{key:"getState",value:function(){return this.get("state")||""}},{key:"getHtml",value:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=this.config,h=o.optsHtml,m=o.jsInHtml?this.getJs(s):"",j=s.component||this.get("DomComponents").getComponent(),K=j?this.get("CodeManager").getCode(j,"html",M(M({},h),s)):"";return K+=m?"<script>".concat(m,"<\/script>"):""}},{key:"getCss",value:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=this.config,h=o.optsCss,m=s.avoidProtected,j=(0,Se.isUndefined)(s.keepUnusedStyles)?o.keepUnusedStyles:s.keepUnusedStyles,K=this.get("CssComposer"),ve=s.component||this.get("DomComponents").getComponent(),E=m?"":o.protectedCss,q=ve&&this.get("CodeManager").getCode(ve,"css",M(M({cssc:K,keepUnusedStyles:j},h),s));return ve?s.json?q:E+q:""}},{key:"getJs",value:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=s.component||this.get("DomComponents").getWrapper();return o?this.get("CodeManager").getCode(o,"js").trim():""}},{key:"store",value:function(s){var o=this,h=this.get("StorageManager");if(h){var m=this.storeData();return h.store(m,function(j){s&&s(j,m),o.set("changesCount",0),o.trigger("storage:store",m)}),m}}},{key:"storeData",value:function(){var s={},o=this.getEditing();return o&&o.trigger("sync:content",{noCount:!0}),this.get("storables").forEach(function(h){s=M(M({},s),h.store(1))}),s}},{key:"load",value:function(){var s=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;this.getCacheLoad(1,function(h){s.loadData(h),o&&o(h)})}},{key:"loadData",value:function(){var s=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=this.get("StorageManager"),m=h.__clearKeys(o);return this.get("storables").forEach(function(j){j.load(m),j.postLoad&&j.postLoad(s)}),m}},{key:"getCacheLoad",value:function(s,o){var h=this;if(this.cacheLoad&&!s)return this.cacheLoad;var m=this.get("StorageManager"),j=[];if(!m)return{};this.get("storables").forEach(function(K){var ve=K.storageKey;ve=(0,Se.isFunction)(ve)?ve():ve,((0,Se.isArray)(ve)?ve:[ve]).forEach(function(E){return j.push(E)})}),m.load(j,function(K){h.cacheLoad=K,o&&o(K),setTimeout(function(){return h.trigger("storage:load",K)})})}},{key:"getDeviceModel",value:function(){var s=this.get("device");return this.get("DeviceManager").get(s)}},{key:"runDefault",value:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=this.get("Commands").get(this.config.defaultCommand);o&&!this.defaultRunning&&(o.stop(this,this,s),o.run(this,this,s),this.defaultRunning=1)}},{key:"stopDefault",value:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=this.get("Commands"),h=o.get(this.config.defaultCommand);h&&this.defaultRunning&&(h.stop(this,this,s),this.defaultRunning=0)}},{key:"refreshCanvas",value:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.set("canvasOffset",null),this.set("canvasOffset",this.get("Canvas").getOffset()),s.tools&&this.trigger("canvas:updateTools")}},{key:"clearSelection",value:function(s){(s||window).getSelection().removeAllRanges()}},{key:"getCurrentMedia",value:function(){var s=this.config,o=this.getDeviceModel(),h=s.mediaCondition,m=s.devicePreviewMode,j=o&&o.get("widthMedia");return o&&j&&!m?"(".concat(h,": ").concat(j,")"):""}},{key:"getWrapper",value:function(){return this.get("DomComponents").getWrapper()}},{key:"setCurrentFrame",value:function(s){return this.set("currentFrame",s)}},{key:"getCurrentFrame",value:function(){return this.get("currentFrame")}},{key:"getCurrentFrameModel",value:function(){return(this.getCurrentFrame()||{}).model}},{key:"getIcon",value:function(s){return(this.getConfig("icons")||{})[s]||""}},{key:"getDirtyCount",value:function(){return this.get("changesCount")}},{key:"getZoomDecimal",value:function(){return this.get("Canvas").getZoomDecimal()}},{key:"getZoomMultiplier",value:function(){return this.get("Canvas").getZoomMultiplier()}},{key:"setDragMode",value:function(s){return this.set("dmode",s)}},{key:"t",value:function(){for(var s=this.get("I18n"),o=arguments.length,h=new Array(o),m=0;m<o;m++)h[m]=arguments[m];return s?.t.apply(s,h)}},{key:"inAbsoluteMode",value:function(){return this.get("dmode")==="absolute"}},{key:"destroyAll",value:function(){var s=this,o=this.config,h=this.view,m=this.getEditor(),j=(o.grapesjs||{}).editors,K=j===void 0?[]:j,ve=this.get("shallow");ve?.destroyAll(),this.stopListening(),this.stopDefault(),this.get("modules").slice().reverse().forEach(function(E){return E.destroy()}),h&&h.remove(),this.clear({silent:!0}),this.destroyed=1,["config","view","_previousAttributes","_events","_listeners"].forEach(function(E){return s[E]={}}),K.splice(K.indexOf(m),1),(0,y.hasWin)()&&(0,b.default)(o.el).empty().attr(this.attrsOrig)}},{key:"getEditing",value:function(){var s=this.get("editing");return s&&s.model||null}},{key:"setEditing",value:function(s){return this.set("editing",s),this}},{key:"isEditing",value:function(){return!!this.get("editing")}},{key:"log",value:function(s){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=o.ns,m=o.level,j=m===void 0?"debug":m;if(this.trigger("log",s,o),j&&this.trigger("log:".concat(j),s,o),h){var K="log-".concat(h);this.trigger(K,s,o),j&&this.trigger("".concat(K,":").concat(j),s,o)}}},{key:"logInfo",value:function(s,o){this.log(s,M(M({},o),{},{level:"info"}))}},{key:"logWarning",value:function(s,o){this.log(s,M(M({},o),{},{level:"warning"}))}},{key:"logError",value:function(s,o){this.log(s,M(M({},o),{},{level:"error"}))}},{key:"initBaseColorPicker",value:function(s){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=this.getConfig(),m=h.colorPicker,j=m===void 0?{}:m,K=h.el,ve=h.stylePrefix;return(0,b.default)(s).spectrum(M(M({containerClassName:"".concat(ve,"one-bg ").concat(ve,"two-color"),appendTo:K||"body",maxSelectionSize:8,showPalette:!0,palette:[],showAlpha:!0,chooseText:"Ok",cancelText:"\u2A2F"},o),j))}},{key:"skip",value:function(s){this.__skip=!0;var o=this.get("UndoManager");o?o.skip(s):s(),this.__skip=!1}},{key:"data",value:function(s,o,h){var m="_gjs-data";if(s[m]||(s[m]={}),(0,Se.isUndefined)(h))return s[m][o];s[m][o]=h}}]),l}(L.Model);function p(ce){var F=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var l,s=(0,$.Z)(ce);if(F){var o=(0,$.Z)(this).constructor;l=Reflect.construct(s,arguments,o)}else l=s.apply(this,arguments);return(0,te.Z)(this,l)}}var d=w().$,f=function(ce){(0,N.Z)(l,ce);var F=p(l);function l(){return(0,J.Z)(this,l),F.apply(this,arguments)}return(0,Y.Z)(l,[{key:"initialize",value:function(){var s=this,o=this.model;o.view=this,this.conf=o.config,this.pn=o.get("Panels"),this.cv=o.get("Canvas"),o.once("change:ready",function(){s.pn.active(),s.pn.disableButtons(),setTimeout(function(){o.trigger("load",o.get("Editor")),o.set("changesCount",0)})})}},{key:"render",value:function(){var s=this.$el,o=this.conf,h=this.model,m=o.stylePrefix,j=d(o.el||"body ".concat(o.container));(0,y.appendStyles)(o.cssIcons,{unique:1,prepand:1}),s.empty(),o.width&&j.css("width",o.width),o.height&&j.css("height",o.height),s.append(this.cv.render()),s.append(this.pn.render());var K=h.get("shallow").get("Canvas").render();return K.style.display="none",s.append(K),s.attr("class","".concat(m,"editor ").concat(m,"one-bg ").concat(m,"two-color")),j.addClass("".concat(m,"editor-cont")).empty().append(s),this}}]),l}(L.View),v=Wt(1629);function D(ce,F){var l=Object.keys(ce);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(ce);F&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(ce,o).enumerable})),l.push.apply(l,s)}return l}function g(ce){for(var F=1;F<arguments.length;F++){var l=arguments[F]!=null?arguments[F]:{};F%2?D(Object(l),!0).forEach(function(s){(0,Je.Z)(ce,s,l[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ce,Object.getOwnPropertyDescriptors(l)):D(Object(l)).forEach(function(s){Object.defineProperty(ce,s,Object.getOwnPropertyDescriptor(l,s))})}return ce}let T=function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=F.$,s=g(g({},ye),ce);s.pStylePrefix=s.stylePrefix;var o,h=new I(s);return{$:l,editor:h,modules:[],init:function(){var m=this,j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return h.init(this,g(g({},s),j)),this.modules=["I18n","Utils","Config","Commands","Keymaps","Modal","Panels","Canvas","Parser","CodeManager","UndoManager","RichTextEditor",["Pages","PageManager"],"DomComponents",["Components","DomComponents"],"LayerManager",["Layers","LayerManager"],"CssComposer",["Css","CssComposer"],"StorageManager",["Storage","StorageManager"],"AssetManager",["Assets","AssetManager"],"BlockManager",["Blocks","BlockManager"],"TraitManager",["Traits","TraitManager"],"SelectorManager",["Selectors","SelectorManager"],"StyleManager",["Styles","StyleManager"],"DeviceManager",["Devices","DeviceManager"]],this.modules.forEach(function(K){Array.isArray(K)?m[K[0]]=h.get(K[1]):m[K]=h.get(K)}),h.once("change:ready",function(){m.UndoManager.clear(),h.get("modules").forEach(function(K){K.postRender&&K.postRender(o)})}),this},getConfig:function(m){return h.getConfig(m)},getHtml:function(m){return h.getHtml(m)},getCss:function(m){return h.getCss(m)},getJs:function(m){return h.getJs(m)},getComponents:function(){return h.get("DomComponents").getComponents()},getWrapper:function(){return h.get("DomComponents").getWrapper()},setComponents:function(m){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return h.setComponents(m,j),this},addComponents:function(m,j){return this.getWrapper().append(m,j)},getStyle:function(){return h.get("CssComposer").getAll()},setStyle:function(m){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return h.setStyle(m,j),this},addStyle:function(m){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return h.addStyle(m,j)},getSelected:function(){return h.getSelected()},getSelectedAll:function(){return h.getSelectedAll()},getSelectedToStyle:function(){var m=h.getSelected();if(m)return this.StyleManager.getModelToStyle(m)},select:function(m,j){return h.setSelected(m,j),this},selectAdd:function(m){return h.addSelected(m),this},selectRemove:function(m){return h.removeSelected(m),this},selectToggle:function(m){return h.toggleSelected(m),this},getEditing:function(){return h.getEditing()},setDevice:function(m){return h.set("device",m),this},getDevice:function(){return h.get("device")},runCommand:function(m){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return h.get("Commands").run(m,j)},stopCommand:function(m){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return h.get("Commands").stop(m,j)},store:function(m){return h.store(m)},getProject:function(){return h.storeData()},storeData:function(){return h.storeData()},load:function(m){return h.load(m)},loadProject:function(m){return h.loadData(m)},loadData:function(m){return h.loadData(m)},getContainer:function(){return s.el},getDirtyCount:function(){return h.getDirtyCount()},refresh:function(m){h.refreshCanvas(m)},setCustomRte:function(m){this.RichTextEditor.customRte=m},setCustomParserCss:function(m){return this.Parser.getConfig().parserCss=m,this},setDragMode:function(m){return h.setDragMode(m),this},log:function(m){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return h.log(m,j),this},t:function(){var m;return(m=h).t.apply(m,arguments)},on:function(m,j){return h.on(m,j),this},once:function(m,j){return h.once(m,j),this},off:function(m,j){return h.off(m,j),this},trigger:function(m){return h.trigger.apply(h,arguments),this},destroy:function(){var m=this;h&&(h.destroyAll(),this.modules.forEach(function(j){Array.isArray(j)?m[j[0]]=0:m[j]=0}),this.modules=0,o=0,h=0,s=0)},getEl:function(){return o&&o.el},getModel:function(){return h},render:function(){return o&&o.remove(),(o=new f({model:h,config:s})).render().el},onReady:function(m){h.get("ready")?m(this):h.on("load",m)},html:v.Z}},u={plugins:[]};function x(ce,F){var l=Object.keys(ce);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(ce);F&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(ce,o).enumerable})),l.push.apply(l,s)}return l}function O(ce){for(var F=1;F<arguments.length;F++){var l=arguments[F]!=null?arguments[F]:{};F%2?x(Object(l),!0).forEach(function(s){(0,Je.Z)(ce,s,l[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ce,Object.getOwnPropertyDescriptors(l)):x(Object(l)).forEach(function(s){Object.defineProperty(ce,s,Object.getOwnPropertyDescriptor(l,s))})}return ce}(function(){if((0,y.hasWin)()&&function(){for(var F,l=window.navigator.userAgent,s=[["edge",/Edge\/([0-9\._]+)/],["ie",/MSIE\s(7\.0)/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/]],o=0;o<s.length&&!(F=s[o][1].exec(l));o++);return!!F}()){var ce=DOMImplementation.prototype.createHTMLDocument;DOMImplementation.prototype.createHTMLDocument=function(F){return F||(F=""),ce.apply(document.implementation,[F])}}})();var W=new function(ce){var F=ce||{};for(var l in u)l in F||(F[l]=u[l]);var s={};return{add:function(o,h){return s[o]?s[o]:(s[o]=h,h)},get:function(o){return s[o]},getAll:function(){return s}}},X=[],ie={autorender:1,plugins:[],pluginsOpts:{}};let le={$:b.default,editors:X,plugins:W,version:"0.18.4",init:function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},F=ce,l=F.headless,s=ce.container;if(!s&&!l)throw new Error("'container' is required");(ce=O(O(O({},ie),ce),{},{grapesjs:this})).el=!l&&((0,Se.isElement)(s)?s:document.querySelector(s));var o=new T(ce,{$:b.default}).init(),h=o.getModel();return ce.plugins.forEach(function(m){var j=(0,Se.isFunction)(m)?m:W.get(m),K=ce.pluginsOpts[m]||{};if(!j){var ve=(0,y.getGlobal)()[m];j=ve?.default||ve}j?j(o,K):(0,Se.isFunction)(m)?m(o,K):h.logWarning("Plugin ".concat(m," not found"),{context:"plugins",plugin:m})}),h.loadOnStart(),ce.autorender&&!l&&o.render(),X.push(o),o}}})(),ri=ri.default})()})});var Oc=Wa(Ga=>{var qa=xc($a());Ga.editor=qa.default.init({container:"#gjs",plugins:[],pluginsOpts:{}})});Oc();})(); +/*! grapesjs - 0.18.4 */ diff --git a/application/source/server/web/dist/editor/site.webmanifest b/application/source/server/web/dist/editor/site.webmanifest new file mode 100644 index 0000000000000000000000000000000000000000..b20abb7cbb2903c45280ba3540710669aeb63163 --- /dev/null +++ b/application/source/server/web/dist/editor/site.webmanifest @@ -0,0 +1,19 @@ +{ + "name": "", + "short_name": "", + "icons": [ + { + "src": "/android-chrome-192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "/android-chrome-512x512.png", + "sizes": "512x512", + "type": "image/png" + } + ], + "theme_color": "#ffffff", + "background_color": "#ffffff", + "display": "standalone" +} diff --git a/application/source/server/web/dist/scripts/main.js b/application/source/server/web/dist/scripts/main.js new file mode 100644 index 0000000000000000000000000000000000000000..beecf27da1813f3527e3c197f1ba44a7388dc055 --- /dev/null +++ b/application/source/server/web/dist/scripts/main.js @@ -0,0 +1,36822 @@ +(() => { + var __create = Object.create; + var __defProp = Object.defineProperty; + var __getOwnPropDesc = Object.getOwnPropertyDescriptor; + var __getOwnPropNames = Object.getOwnPropertyNames; + var __getProtoOf = Object.getPrototypeOf; + var __hasOwnProp = Object.prototype.hasOwnProperty; + var __commonJS = (cb, mod) => function __require() { + return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; + }; + var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; + }; + var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod)); + + // server/web/source/node_modules/grapesjs/dist/grapes.min.js + var require_grapes_min = __commonJS({ + "server/web/source/node_modules/grapesjs/dist/grapes.min.js"(exports, module) { + !function(t, e) { + typeof exports == "object" && typeof module == "object" ? module.exports = e() : typeof define == "function" && define.amd ? define([], e) : typeof exports == "object" ? exports.grapesjs = e() : t.grapesjs = e(); + }(typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : exports, function() { + return (() => { + var t = { 7757: (t2, e2, n2) => { + t2.exports = n2(5666); + }, 3410: (t2, e2, n2) => { + var r2, i, o; + i = [n2(9050), n2(2316)], r2 = function(t3, e3) { + var n3 = Array.prototype.slice; + function r3(t4, e4, n4) { + return n4.length <= 4 ? t4.call(e4, n4[0], n4[1], n4[2], n4[3]) : t4.apply(e4, n4); + } + function i2(t4, e4) { + return n3.call(t4, e4); + } + function o2(e4, n4) { + return e4 != null && (t3.isArray(n4) || (n4 = i2(arguments, 1)), t3.all(n4, function(t4) { + return t4 in e4; + })); + } + var s = function() { + var e4 = false, n4 = -1; + function r4() { + n4++, e4 = true, t3.defer(function() { + e4 = false; + }); + } + return function() { + return e4 || r4(), n4; + }; + }(); + function a() { + this.registeredObjects = [], this.cidIndexes = []; + } + function l(e4, n4, r4, i3) { + for (var o3, s2 = 0, a2 = n4.length; s2 < a2; s2++) + if (o3 = n4[s2]) { + if (e4 === "on") { + if (!i3.objectRegistry.register(o3)) + continue; + } else if (!i3.objectRegistry.unregister(o3)) + continue; + t3.isFunction(o3[e4]) && o3[e4]("all", r4, i3); + } + } + function c(e4, n4) { + var r4 = n4.type, i3 = n4.undoTypes, o3 = !i3[r4] || i3[r4][e4]; + t3.isFunction(o3) && o3(n4.object, n4.before, n4.after, n4.options); + } + function u(e4, r4, i3, o3, s2) { + if (!(i3.isCurrentlyUndoRedoing || e4 === "undo" && i3.pointer === -1 || e4 === "redo" && i3.pointer === i3.length - 1)) { + i3.isCurrentlyUndoRedoing = true; + var a2, l2, c2 = e4 === "undo"; + for (s2 ? l2 = c2 && i3.pointer === i3.length - 1 || !c2 && i3.pointer === -1 ? t3.clone(i3.models) : n3.apply(i3.models, c2 ? [0, i3.pointer] : [i3.pointer, i3.length - 1]) : (a2 = i3.at(c2 ? i3.pointer : i3.pointer + 1), l2 = o3 ? i3.where({ magicFusionIndex: a2.get("magicFusionIndex") }) : [a2]), i3.pointer += (c2 ? -1 : 1) * l2.length; a2 = c2 ? l2.pop() : l2.shift(); ) + a2[e4](); + i3.isCurrentlyUndoRedoing = false, r4.trigger(e4, r4); + } + } + function h(t4, e4) { + var n4 = t4.condition, i3 = typeof n4; + return i3 === "function" ? !!r3(n4, t4, e4) : i3 !== "boolean" || n4; + } + function f(t4, e4, n4, i3) { + if (t4.track && !t4.isCurrentlyUndoRedoing && e4 in i3 && h(i3[e4], n4)) { + var a2 = r3(i3[e4].on, i3[e4], n4); + if (o2(a2, "object", "before", "after")) { + if (a2.type = e4, a2.magicFusionIndex = s(), a2.undoTypes = i3, t4.pointer < t4.length - 1) + for (var l2 = t4.length - t4.pointer - 1; l2--; ) + t4.pop(); + t4.pointer = t4.length, t4.add(a2), t4.length > t4.maximumStackLength && (t4.shift(), t4.pointer--); + } + } + } + a.prototype = { isRegistered: function(e4) { + return e4 && e4.cid ? this.registeredObjects[e4.cid] : t3.contains(this.registeredObjects, e4); + }, register: function(t4) { + return !this.isRegistered(t4) && (t4 && t4.cid ? (this.registeredObjects[t4.cid] = t4, this.cidIndexes.push(t4.cid)) : this.registeredObjects.push(t4), true); + }, unregister: function(e4) { + if (this.isRegistered(e4)) { + if (e4 && e4.cid) + delete this.registeredObjects[e4.cid], this.cidIndexes.splice(t3.indexOf(this.cidIndexes, e4.cid), 1); + else { + var n4 = t3.indexOf(this.registeredObjects, e4); + this.registeredObjects.splice(n4, 1); + } + return true; + } + return false; + }, get: function() { + return t3.map(this.cidIndexes, function(t4) { + return this.registeredObjects[t4]; + }, this).concat(this.registeredObjects); + } }; + var d = { add: { undo: function(t4, e4, n4, r4) { + t4.remove(n4, r4); + }, redo: function(t4, e4, n4, r4) { + r4.index && (r4.at = r4.index), t4.add(n4, r4); + }, on: function(e4, n4, r4) { + return { object: n4, before: void 0, after: e4, options: t3.clone(r4) }; + } }, remove: { undo: function(t4, e4, n4, r4) { + "index" in r4 && (r4.at = r4.index), t4.add(e4, r4); + }, redo: function(t4, e4, n4, r4) { + t4.remove(e4, r4); + }, on: function(e4, n4, r4) { + return { object: n4, before: e4, after: void 0, options: t3.clone(r4) }; + } }, change: { undo: function(e4, n4, r4, i3) { + t3.isEmpty(n4) ? t3.each(t3.keys(r4), e4.unset, e4) : (e4.set(n4), i3 && i3.unsetData && i3.unsetData.before && i3.unsetData.before.length && t3.each(i3.unsetData.before, e4.unset, e4)); + }, redo: function(e4, n4, r4, i3) { + t3.isEmpty(r4) ? t3.each(t3.keys(n4), e4.unset, e4) : (e4.set(r4), i3 && i3.unsetData && i3.unsetData.after && i3.unsetData.after.length && t3.each(i3.unsetData.after, e4.unset, e4)); + }, on: function(e4, n4) { + var r4 = e4.changedAttributes(), i3 = t3.keys(r4), o3 = t3.pick(e4.previousAttributes(), i3), s2 = t3.keys(o3), a2 = (n4 || (n4 = {})).unsetData = { after: [], before: [] }; + return i3.length != s2.length && (i3.length > s2.length ? t3.each(i3, function(t4) { + t4 in o3 || a2.before.push(t4); + }, this) : t3.each(s2, function(t4) { + t4 in r4 || a2.after.push(t4); + })), { object: e4, before: o3, after: r4, options: t3.clone(n4) }; + } }, reset: { undo: function(t4, e4, n4) { + t4.reset(e4); + }, redo: function(t4, e4, n4) { + t4.reset(n4); + }, on: function(e4, n4) { + return { object: e4, before: n4.previousModels, after: t3.clone(e4.models) }; + } } }; + function p() { + } + function g(e4, n4, r4, i3) { + if (typeof n4 == "object") + return t3.each(n4, function(t4, n5) { + e4 === 2 ? g(e4, t4, r4, i3) : g(e4, n5, t4, r4); + }); + switch (e4) { + case 0: + o2(r4, "undo", "redo", "on") && t3.all(t3.pick(r4, "undo", "redo", "on"), t3.isFunction) && (i3[n4] = r4); + break; + case 1: + i3[n4] && t3.isObject(r4) && (i3[n4] = t3.extend({}, i3[n4], r4)); + break; + case 2: + delete i3[n4]; + } + return this; + } + p.prototype = d; + var v = e3.Model.extend({ defaults: { type: null, object: null, before: null, after: null, magicFusionIndex: null }, undo: function(t4) { + c("undo", this.attributes); + }, redo: function(t4) { + c("redo", this.attributes); + } }), m = e3.Collection.extend({ model: v, pointer: -1, track: false, isCurrentlyUndoRedoing: false, maximumStackLength: 1 / 0, setMaxLength: function(t4) { + this.maximumStackLength = t4; + } }), y = e3.Model.extend({ defaults: { maximumStackLength: 1 / 0, track: false }, initialize: function(e4) { + this.stack = new m(), this.objectRegistry = new a(), this.undoTypes = new p(), this.stack.setMaxLength(this.get("maximumStackLength")), this.on("change:maximumStackLength", function(t4, e5) { + this.stack.setMaxLength(e5); + }, this), e4 && e4.track && this.startTracking(), e4 && e4.register && (t3.isArray(e4.register) || t3.isArguments(e4.register) ? r3(this.register, this, e4.register) : this.register(e4.register)); + }, startTracking: function() { + this.set("track", true), this.stack.track = true; + }, stopTracking: function() { + this.set("track", false), this.stack.track = false; + }, isTracking: function() { + return this.get("track"); + }, _addToStack: function(t4) { + f(this.stack, t4, i2(arguments, 1), this.undoTypes); + }, register: function() { + l("on", arguments, this._addToStack, this); + }, unregister: function() { + l("off", arguments, this._addToStack, this); + }, unregisterAll: function() { + r3(this.unregister, this, this.objectRegistry.get()); + }, undo: function(t4) { + u("undo", this, this.stack, t4); + }, undoAll: function() { + u("undo", this, this.stack, false, true); + }, redo: function(t4) { + u("redo", this, this.stack, t4); + }, redoAll: function() { + u("redo", this, this.stack, false, true); + }, isAvailable: function(t4) { + var e4 = this.stack, n4 = e4.length; + switch (t4) { + case "undo": + return n4 > 0 && e4.pointer > -1; + case "redo": + return n4 > 0 && e4.pointer < n4 - 1; + default: + return false; + } + }, merge: function(e4) { + for (var n4, r4 = t3.isArray(e4) ? e4 : i2(arguments); n4 = r4.pop(); ) + n4 instanceof y && n4.stack instanceof m && (n4.stack = this.stack); + }, addUndoType: function(t4, e4) { + g(0, t4, e4, this.undoTypes); + }, changeUndoType: function(t4, e4) { + g(1, t4, e4, this.undoTypes); + }, removeUndoType: function(t4) { + g(2, t4, void 0, this.undoTypes); + }, clear: function() { + this.stack.reset(), this.stack.pointer = -1; + } }); + return t3.extend(y, { defaults: function(e4) { + t3.extend(y.prototype.defaults, e4); + }, addUndoType: function(t4, e4) { + g(0, t4, e4, d); + }, changeUndoType: function(t4, e4) { + g(1, t4, e4, d); + }, removeUndoType: function(t4) { + g(2, t4, void 0, d); + } }), e3.UndoManager = y; + }, (o = typeof r2 == "function" ? r2.apply(e2, i) : r2) === void 0 || (t2.exports = o); + }, 2316: (t2, e2, n2) => { + var r2, i, o; + o = typeof self == "object" && self.self === self && self || typeof n2.g == "object" && n2.g.global === n2.g && n2.g, r2 = [n2(9050), n2(2579), e2], i = function(t3, e3, n3) { + o.Backbone = function(t4, e4, n4, r3) { + var i2 = t4.Backbone, o2 = Array.prototype.slice; + e4.VERSION = "1.3.3", e4.$ = r3, e4.noConflict = function() { + return t4.Backbone = i2, this; + }, e4.emulateHTTP = false, e4.emulateJSON = false; + var s = function(t5, e5, r4) { + switch (t5) { + case 1: + return function() { + return n4[e5](this[r4]); + }; + case 2: + return function(t6) { + return n4[e5](this[r4], t6); + }; + case 3: + return function(t6, i3) { + return n4[e5](this[r4], l(t6, this), i3); + }; + case 4: + return function(t6, i3, o3) { + return n4[e5](this[r4], l(t6, this), i3, o3); + }; + default: + return function() { + var t6 = o2.call(arguments); + return t6.unshift(this[r4]), n4[e5].apply(n4, t6); + }; + } + }, a = function(t5, e5, r4) { + n4.each(e5, function(e6, i3) { + n4[i3] && (t5.prototype[i3] = s(e6, i3, r4)); + }); + }, l = function(t5, e5) { + return n4.isFunction(t5) ? t5 : n4.isObject(t5) && !e5._isModel(t5) ? c(t5) : n4.isString(t5) ? function(e6) { + return e6.get(t5); + } : t5; + }, c = function(t5) { + var e5 = n4.matches(t5); + return function(t6) { + return e5(t6.attributes); + }; + }, u = e4.Events = {}, h = /\s+/, f = function(t5, e5, r4, i3, o3) { + var s2, a2 = 0; + if (r4 && typeof r4 == "object") { + i3 !== void 0 && "context" in o3 && o3.context === void 0 && (o3.context = i3); + for (s2 = n4.keys(r4); a2 < s2.length; a2++) + e5 = f(t5, e5, s2[a2], r4[s2[a2]], o3); + } else if (r4 && h.test(r4)) + for (s2 = r4.split(h); a2 < s2.length; a2++) + e5 = t5(e5, s2[a2], i3, o3); + else + e5 = t5(e5, r4, i3, o3); + return e5; + }; + u.on = function(t5, e5, n5) { + return d(this, t5, e5, n5); + }; + var d = function(t5, e5, n5, r4, i3) { + return t5._events = f(p, t5._events || {}, e5, n5, { context: r4, ctx: t5, listening: i3 }), i3 && ((t5._listeners || (t5._listeners = {}))[i3.id] = i3), t5; + }; + u.listenTo = function(t5, e5, r4) { + if (!t5) + return this; + var i3 = t5._listenId || (t5._listenId = n4.uniqueId("l")), o3 = this._listeningTo || (this._listeningTo = {}), s2 = o3[i3]; + if (!s2) { + var a2 = this._listenId || (this._listenId = n4.uniqueId("l")); + s2 = o3[i3] = { obj: t5, objId: i3, id: a2, listeningTo: o3, count: 0 }; + } + return d(t5, e5, r4, this, s2), this; + }; + var p = function(t5, e5, n5, r4) { + if (n5) { + var i3 = t5[e5] || (t5[e5] = []), o3 = r4.context, s2 = r4.ctx, a2 = r4.listening; + a2 && a2.count++, i3.push({ callback: n5, context: o3, ctx: o3 || s2, listening: a2 }); + } + return t5; + }; + u.off = function(t5, e5, n5) { + return this._events ? (this._events = f(g, this._events, t5, e5, { context: n5, listeners: this._listeners }), this) : this; + }, u.stopListening = function(t5, e5, r4) { + var i3 = this._listeningTo; + if (!i3) + return this; + for (var o3 = t5 ? [t5._listenId] : n4.keys(i3), s2 = 0; s2 < o3.length; s2++) { + var a2 = i3[o3[s2]]; + if (!a2) + break; + a2.obj.off(e5, r4, this); + } + return this; + }; + var g = function(t5, e5, r4, i3) { + if (t5) { + var o3, s2 = 0, a2 = i3.context, l2 = i3.listeners; + if (e5 || r4 || a2) { + for (var c2 = e5 ? [e5] : n4.keys(t5); s2 < c2.length; s2++) { + var u2 = t5[e5 = c2[s2]]; + if (!u2) + break; + for (var h2 = [], f2 = 0; f2 < u2.length; f2++) { + var d2 = u2[f2]; + r4 && r4 !== d2.callback && r4 !== d2.callback._callback || a2 && a2 !== d2.context ? h2.push(d2) : (o3 = d2.listening) && --o3.count == 0 && (delete l2[o3.id], delete o3.listeningTo[o3.objId]); + } + h2.length ? t5[e5] = h2 : delete t5[e5]; + } + return t5; + } + for (var p2 = n4.keys(l2); s2 < p2.length; s2++) + delete l2[(o3 = l2[p2[s2]]).id], delete o3.listeningTo[o3.objId]; + } + }; + u.once = function(t5, e5, r4) { + var i3 = f(v, {}, t5, e5, n4.bind(this.off, this)); + return typeof t5 == "string" && r4 == null && (e5 = void 0), this.on(i3, e5, r4); + }, u.listenToOnce = function(t5, e5, r4) { + var i3 = f(v, {}, e5, r4, n4.bind(this.stopListening, this, t5)); + return this.listenTo(t5, i3); + }; + var v = function(t5, e5, r4, i3) { + if (r4) { + var o3 = t5[e5] = n4.once(function() { + i3(e5, o3), r4.apply(this, arguments); + }); + o3._callback = r4; + } + return t5; + }; + u.trigger = function(t5) { + if (!this._events) + return this; + for (var e5 = Math.max(0, arguments.length - 1), n5 = Array(e5), r4 = 0; r4 < e5; r4++) + n5[r4] = arguments[r4 + 1]; + return f(m, this._events, t5, void 0, n5), this; + }; + var m = function(t5, e5, n5, r4) { + if (t5) { + var i3 = t5[e5], o3 = t5.all; + i3 && o3 && (o3 = o3.slice()), i3 && y(i3, r4), o3 && y(o3, [e5].concat(r4)); + } + return t5; + }, y = function(t5, e5) { + var n5, r4 = -1, i3 = t5.length, o3 = e5[0], s2 = e5[1], a2 = e5[2]; + switch (e5.length) { + case 0: + for (; ++r4 < i3; ) + (n5 = t5[r4]).callback.call(n5.ctx); + return; + case 1: + for (; ++r4 < i3; ) + (n5 = t5[r4]).callback.call(n5.ctx, o3); + return; + case 2: + for (; ++r4 < i3; ) + (n5 = t5[r4]).callback.call(n5.ctx, o3, s2); + return; + case 3: + for (; ++r4 < i3; ) + (n5 = t5[r4]).callback.call(n5.ctx, o3, s2, a2); + return; + default: + for (; ++r4 < i3; ) + (n5 = t5[r4]).callback.apply(n5.ctx, e5); + return; + } + }; + u.bind = u.on, u.unbind = u.off, n4.extend(e4, u); + var b = e4.Model = function(t5, e5) { + var r4 = t5 || {}; + e5 || (e5 = {}), this.cid = n4.uniqueId(this.cidPrefix), this.attributes = {}, e5.collection && (this.collection = e5.collection), e5.parse && (r4 = this.parse(r4, e5) || {}); + var i3 = n4.result(this, "defaults"); + r4 = n4.defaults(n4.extend({}, i3, r4), i3), this.set(r4, e5), this.changed = {}, this.initialize.apply(this, arguments); + }; + n4.extend(b.prototype, u, { changed: null, validationError: null, idAttribute: "id", cidPrefix: "c", initialize: function() { + }, toJSON: function(t5) { + return n4.clone(this.attributes); + }, sync: function() { + return e4.sync.apply(this, arguments); + }, get: function(t5) { + return this.attributes[t5]; + }, escape: function(t5) { + return n4.escape(this.get(t5)); + }, has: function(t5) { + return this.get(t5) != null; + }, matches: function(t5) { + return !!n4.iteratee(t5, this)(this.attributes); + }, set: function(t5, e5, r4) { + if (t5 == null) + return this; + var i3; + if (typeof t5 == "object" ? (i3 = t5, r4 = e5) : (i3 = {})[t5] = e5, r4 || (r4 = {}), !this._validate(i3, r4)) + return false; + var o3 = r4.unset, s2 = r4.silent, a2 = [], l2 = this._changing; + this._changing = true, l2 || (this._previousAttributes = n4.clone(this.attributes), this.changed = {}); + var c2 = this.attributes, u2 = this.changed, h2 = this._previousAttributes; + for (var f2 in i3) + e5 = i3[f2], n4.isEqual(c2[f2], e5) || a2.push(f2), n4.isEqual(h2[f2], e5) ? delete u2[f2] : u2[f2] = e5, o3 ? delete c2[f2] : c2[f2] = e5; + if (this.idAttribute in i3 && (this.id = this.get(this.idAttribute)), !s2) { + a2.length && (this._pending = r4); + for (var d2 = 0; d2 < a2.length; d2++) + this.trigger("change:" + a2[d2], this, c2[a2[d2]], r4); + } + if (l2) + return this; + if (!s2) + for (; this._pending; ) + r4 = this._pending, this._pending = false, this.trigger("change", this, r4); + return this._pending = false, this._changing = false, this; + }, unset: function(t5, e5) { + return this.set(t5, void 0, n4.extend({}, e5, { unset: true })); + }, clear: function(t5) { + var e5 = {}; + for (var r4 in this.attributes) + e5[r4] = void 0; + return this.set(e5, n4.extend({}, t5, { unset: true })); + }, hasChanged: function(t5) { + return t5 == null ? !n4.isEmpty(this.changed) : n4.has(this.changed, t5); + }, changedAttributes: function(t5) { + if (!t5) + return !!this.hasChanged() && n4.clone(this.changed); + var e5 = this._changing ? this._previousAttributes : this.attributes, r4 = {}; + for (var i3 in t5) { + var o3 = t5[i3]; + n4.isEqual(e5[i3], o3) || (r4[i3] = o3); + } + return !!n4.size(r4) && r4; + }, previous: function(t5) { + return t5 != null && this._previousAttributes ? this._previousAttributes[t5] : null; + }, previousAttributes: function() { + return n4.clone(this._previousAttributes); + }, fetch: function(t5) { + t5 = n4.extend({ parse: true }, t5); + var e5 = this, r4 = t5.success; + return t5.success = function(n5) { + var i3 = t5.parse ? e5.parse(n5, t5) : n5; + if (!e5.set(i3, t5)) + return false; + r4 && r4.call(t5.context, e5, n5, t5), e5.trigger("sync", e5, n5, t5); + }, F(this, t5), this.sync("read", this, t5); + }, save: function(t5, e5, r4) { + var i3; + t5 == null || typeof t5 == "object" ? (i3 = t5, r4 = e5) : (i3 = {})[t5] = e5; + var o3 = (r4 = n4.extend({ validate: true, parse: true }, r4)).wait; + if (i3 && !o3) { + if (!this.set(i3, r4)) + return false; + } else if (!this._validate(i3, r4)) + return false; + var s2 = this, a2 = r4.success, l2 = this.attributes; + r4.success = function(t6) { + s2.attributes = l2; + var e6 = r4.parse ? s2.parse(t6, r4) : t6; + if (o3 && (e6 = n4.extend({}, i3, e6)), e6 && !s2.set(e6, r4)) + return false; + a2 && a2.call(r4.context, s2, t6, r4), s2.trigger("sync", s2, t6, r4); + }, F(this, r4), i3 && o3 && (this.attributes = n4.extend({}, l2, i3)); + var c2 = this.isNew() ? "create" : r4.patch ? "patch" : "update"; + c2 !== "patch" || r4.attrs || (r4.attrs = i3); + var u2 = this.sync(c2, this, r4); + return this.attributes = l2, u2; + }, destroy: function(t5) { + t5 = t5 ? n4.clone(t5) : {}; + var e5 = this, r4 = t5.success, i3 = t5.wait, o3 = function() { + e5.stopListening(), e5.trigger("destroy", e5, e5.collection, t5); + }; + t5.success = function(n5) { + i3 && o3(), r4 && r4.call(t5.context, e5, n5, t5), e5.isNew() || e5.trigger("sync", e5, n5, t5); + }; + var s2 = false; + return this.isNew() ? n4.defer(t5.success) : (F(this, t5), s2 = this.sync("delete", this, t5)), i3 || o3(), s2; + }, url: function() { + var t5 = n4.result(this, "urlRoot") || n4.result(this.collection, "url") || I(); + if (this.isNew()) + return t5; + var e5 = this.get(this.idAttribute); + return t5.replace(/[^\/]$/, "$&/") + encodeURIComponent(e5); + }, parse: function(t5, e5) { + return t5; + }, clone: function() { + return new this.constructor(this.attributes); + }, isNew: function() { + return !this.has(this.idAttribute); + }, isValid: function(t5) { + return this._validate({}, n4.extend({}, t5, { validate: true })); + }, _validate: function(t5, e5) { + if (!e5.validate || !this.validate) + return true; + t5 = n4.extend({}, this.attributes, t5); + var r4 = this.validationError = this.validate(t5, e5) || null; + return !r4 || (this.trigger("invalid", this, r4, n4.extend(e5, { validationError: r4 })), false); + } }), a(b, { keys: 1, values: 1, pairs: 1, invert: 1, pick: 0, omit: 0, chain: 1, isEmpty: 1 }, "attributes"); + var w = e4.Collection = function(t5, e5) { + e5 || (e5 = {}), e5.model && (this.model = e5.model), e5.comparator !== void 0 && (this.comparator = e5.comparator), this._reset(), this.initialize.apply(this, arguments), t5 && this.reset(t5, n4.extend({ silent: true }, e5)); + }, x = { add: true, remove: true, merge: true }, O = { add: true, remove: false }, C = function(t5, e5, n5) { + n5 = Math.min(Math.max(n5, 0), t5.length); + var r4, i3 = Array(t5.length - n5), o3 = e5.length; + for (r4 = 0; r4 < i3.length; r4++) + i3[r4] = t5[r4 + n5]; + for (r4 = 0; r4 < o3; r4++) + t5[r4 + n5] = e5[r4]; + for (r4 = 0; r4 < i3.length; r4++) + t5[r4 + o3 + n5] = i3[r4]; + }; + n4.extend(w.prototype, u, { model: b, initialize: function() { + }, toJSON: function(t5) { + return this.map(function(e5) { + return e5.toJSON(t5); + }); + }, sync: function() { + return e4.sync.apply(this, arguments); + }, add: function(t5, e5) { + return this.set(t5, n4.extend({ merge: false }, e5, O)); + }, remove: function(t5, e5) { + e5 = n4.extend({}, e5); + var r4 = !n4.isArray(t5); + t5 = r4 ? [t5] : t5.slice(); + var i3 = this._removeModels(t5, e5); + return !e5.silent && i3.length && (e5.changes = { added: [], merged: [], removed: i3 }, this.trigger("update", this, e5)), r4 ? i3[0] : i3; + }, set: function(t5, e5) { + if (t5 != null) { + (e5 = n4.extend({}, x, e5)).parse && !this._isModel(t5) && (t5 = this.parse(t5, e5) || []); + var r4 = !n4.isArray(t5); + t5 = r4 ? [t5] : t5.slice(); + var i3 = e5.at; + i3 != null && (i3 = +i3), i3 > this.length && (i3 = this.length), i3 < 0 && (i3 += this.length + 1); + var o3, s2, a2 = [], l2 = [], c2 = [], u2 = [], h2 = {}, f2 = e5.add, d2 = e5.merge, p2 = e5.remove, g2 = false, v2 = this.comparator && i3 == null && e5.sort !== false, m2 = n4.isString(this.comparator) ? this.comparator : null; + for (s2 = 0; s2 < t5.length; s2++) { + o3 = t5[s2]; + var y2 = this.get(o3); + if (y2) { + if (d2 && o3 !== y2) { + var b2 = this._isModel(o3) ? o3.attributes : o3; + e5.parse && (b2 = y2.parse(b2, e5)), y2.set(b2, e5), c2.push(y2), v2 && !g2 && (g2 = y2.hasChanged(m2)); + } + h2[y2.cid] || (h2[y2.cid] = true, a2.push(y2)), t5[s2] = y2; + } else + f2 && (o3 = t5[s2] = this._prepareModel(o3, e5)) && (l2.push(o3), this._addReference(o3, e5), h2[o3.cid] = true, a2.push(o3)); + } + if (p2) { + for (s2 = 0; s2 < this.length; s2++) + h2[(o3 = this.models[s2]).cid] || u2.push(o3); + u2.length && this._removeModels(u2, e5); + } + var w2 = false, O2 = !v2 && f2 && p2; + if (a2.length && O2 ? (w2 = this.length !== a2.length || n4.some(this.models, function(t6, e6) { + return t6 !== a2[e6]; + }), this.models.length = 0, C(this.models, a2, 0), this.length = this.models.length) : l2.length && (v2 && (g2 = true), C(this.models, l2, i3 == null ? this.length : i3), this.length = this.models.length), g2 && this.sort({ silent: true }), !e5.silent) { + for (s2 = 0; s2 < l2.length; s2++) + i3 != null && (e5.index = i3 + s2), (o3 = l2[s2]).trigger("add", o3, this, e5); + (g2 || w2) && this.trigger("sort", this, e5), (l2.length || u2.length || c2.length) && (e5.changes = { added: l2, removed: u2, merged: c2 }, this.trigger("update", this, e5)); + } + return r4 ? t5[0] : t5; + } + }, reset: function(t5, e5) { + e5 = e5 ? n4.clone(e5) : {}; + for (var r4 = 0; r4 < this.models.length; r4++) + this._removeReference(this.models[r4], e5); + return e5.previousModels = this.models, this._reset(), t5 = this.add(t5, n4.extend({ silent: true }, e5)), e5.silent || this.trigger("reset", this, e5), t5; + }, push: function(t5, e5) { + return this.add(t5, n4.extend({ at: this.length }, e5)); + }, pop: function(t5) { + var e5 = this.at(this.length - 1); + return this.remove(e5, t5); + }, unshift: function(t5, e5) { + return this.add(t5, n4.extend({ at: 0 }, e5)); + }, shift: function(t5) { + var e5 = this.at(0); + return this.remove(e5, t5); + }, slice: function() { + return o2.apply(this.models, arguments); + }, get: function(t5) { + if (t5 != null) + return this._byId[t5] || this._byId[this.modelId(t5.attributes || t5)] || t5.cid && this._byId[t5.cid]; + }, has: function(t5) { + return this.get(t5) != null; + }, at: function(t5) { + return t5 < 0 && (t5 += this.length), this.models[t5]; + }, where: function(t5, e5) { + return this[e5 ? "find" : "filter"](t5); + }, findWhere: function(t5) { + return this.where(t5, true); + }, sort: function(t5) { + var e5 = this.comparator; + if (!e5) + throw new Error("Cannot sort a set without a comparator"); + t5 || (t5 = {}); + var r4 = e5.length; + return n4.isFunction(e5) && (e5 = n4.bind(e5, this)), r4 === 1 || n4.isString(e5) ? this.models = this.sortBy(e5) : this.models.sort(e5), t5.silent || this.trigger("sort", this, t5), this; + }, pluck: function(t5) { + return this.map(t5 + ""); + }, fetch: function(t5) { + var e5 = (t5 = n4.extend({ parse: true }, t5)).success, r4 = this; + return t5.success = function(n5) { + var i3 = t5.reset ? "reset" : "set"; + r4[i3](n5, t5), e5 && e5.call(t5.context, r4, n5, t5), r4.trigger("sync", r4, n5, t5); + }, F(this, t5), this.sync("read", this, t5); + }, create: function(t5, e5) { + var r4 = (e5 = e5 ? n4.clone(e5) : {}).wait; + if (!(t5 = this._prepareModel(t5, e5))) + return false; + r4 || this.add(t5, e5); + var i3 = this, o3 = e5.success; + return e5.success = function(t6, e6, n5) { + r4 && i3.add(t6, n5), o3 && o3.call(n5.context, t6, e6, n5); + }, t5.save(null, e5), t5; + }, parse: function(t5, e5) { + return t5; + }, clone: function() { + return new this.constructor(this.models, { model: this.model, comparator: this.comparator }); + }, modelId: function(t5) { + return t5[this.model.prototype.idAttribute || "id"]; + }, _reset: function() { + this.length = 0, this.models = [], this._byId = {}; + }, _prepareModel: function(t5, e5) { + if (this._isModel(t5)) + return t5.collection || (t5.collection = this), t5; + (e5 = e5 ? n4.clone(e5) : {}).collection = this; + var r4 = new this.model(t5, e5); + return r4.validationError ? (this.trigger("invalid", this, r4.validationError, e5), false) : r4; + }, _removeModels: function(t5, e5) { + for (var n5 = [], r4 = 0; r4 < t5.length; r4++) { + var i3 = this.get(t5[r4]); + if (i3) { + var o3 = this.indexOf(i3); + this.models.splice(o3, 1), this.length--, delete this._byId[i3.cid]; + var s2 = this.modelId(i3.attributes); + s2 != null && delete this._byId[s2], e5.silent || (e5.index = o3, i3.trigger("remove", i3, this, e5)), n5.push(i3), this._removeReference(i3, e5); + } + } + return n5; + }, _isModel: function(t5) { + return t5 instanceof b; + }, _addReference: function(t5, e5) { + this._byId[t5.cid] = t5; + var n5 = this.modelId(t5.attributes); + n5 != null && (this._byId[n5] = t5), t5.on("all", this._onModelEvent, this); + }, _removeReference: function(t5, e5) { + delete this._byId[t5.cid]; + var n5 = this.modelId(t5.attributes); + n5 != null && delete this._byId[n5], this === t5.collection && delete t5.collection, t5.off("all", this._onModelEvent, this); + }, _onModelEvent: function(t5, e5, n5, r4) { + if (e5) { + if ((t5 === "add" || t5 === "remove") && n5 !== this) + return; + if (t5 === "destroy" && this.remove(e5, r4), t5 === "change") { + var i3 = this.modelId(e5.previousAttributes()), o3 = this.modelId(e5.attributes); + i3 !== o3 && (i3 != null && delete this._byId[i3], o3 != null && (this._byId[o3] = e5)); + } + } + this.trigger.apply(this, arguments); + } }), a(w, { forEach: 3, each: 3, map: 3, collect: 3, reduce: 0, foldl: 0, inject: 0, reduceRight: 0, foldr: 0, find: 3, detect: 3, filter: 3, select: 3, reject: 3, every: 3, all: 3, some: 3, any: 3, include: 3, includes: 3, contains: 3, invoke: 0, max: 3, min: 3, toArray: 1, size: 1, first: 3, head: 3, take: 3, initial: 3, rest: 3, tail: 3, drop: 3, last: 3, without: 0, difference: 0, indexOf: 3, shuffle: 1, lastIndexOf: 3, isEmpty: 1, chain: 1, sample: 3, partition: 3, groupBy: 3, countBy: 3, sortBy: 3, indexBy: 3, findIndex: 3, findLastIndex: 3 }, "models"); + var k = e4.View = function(t5) { + this.cid = n4.uniqueId("view"), n4.extend(this, n4.pick(t5, P)), this._ensureElement(), this.initialize.apply(this, arguments); + }, S = /^(\S+)\s*(.*)$/, P = ["model", "collection", "el", "id", "attributes", "className", "tagName", "events"]; + n4.extend(k.prototype, u, { tagName: "div", $: function(t5) { + return this.$el.find(t5); + }, initialize: function() { + }, render: function() { + return this; + }, remove: function() { + return this._removeElement(), this.stopListening(), this; + }, _removeElement: function() { + this.$el.remove(); + }, setElement: function(t5) { + return this.undelegateEvents(), this._setElement(t5), this.delegateEvents(), this; + }, _setElement: function(t5) { + this.$el = t5 instanceof e4.$ ? t5 : e4.$(t5), this.el = this.$el[0]; + }, delegateEvents: function(t5) { + if (t5 || (t5 = n4.result(this, "events")), !t5) + return this; + for (var e5 in this.undelegateEvents(), t5) { + var r4 = t5[e5]; + if (n4.isFunction(r4) || (r4 = this[r4]), r4) { + var i3 = e5.match(S); + this.delegate(i3[1], i3[2], n4.bind(r4, this)); + } + } + return this; + }, delegate: function(t5, e5, n5) { + return this.$el.on(t5 + ".delegateEvents" + this.cid, e5, n5), this; + }, undelegateEvents: function() { + return this.$el && this.$el.off(".delegateEvents" + this.cid), this; + }, undelegate: function(t5, e5, n5) { + return this.$el.off(t5 + ".delegateEvents" + this.cid, e5, n5), this; + }, _createElement: function(t5) { + return document.createElement(t5); + }, _ensureElement: function() { + if (this.el) + this.setElement(n4.result(this, "el")); + else { + var t5 = n4.extend({}, n4.result(this, "attributes")); + this.id && (t5.id = n4.result(this, "id")), this.className && (t5.class = n4.result(this, "className")), this.setElement(this._createElement(n4.result(this, "tagName"))), this._setAttributes(t5); + } + }, _setAttributes: function(t5) { + this.$el.attr(t5); + } }), e4.sync = function(t5, r4, i3) { + var o3 = _[t5]; + n4.defaults(i3 || (i3 = {}), { emulateHTTP: e4.emulateHTTP, emulateJSON: e4.emulateJSON }); + var s2 = { type: o3, dataType: "json" }; + if (i3.url || (s2.url = n4.result(r4, "url") || I()), i3.data != null || !r4 || t5 !== "create" && t5 !== "update" && t5 !== "patch" || (s2.contentType = "application/json", s2.data = JSON.stringify(i3.attrs || r4.toJSON(i3))), i3.emulateJSON && (s2.contentType = "application/x-www-form-urlencoded", s2.data = s2.data ? { model: s2.data } : {}), i3.emulateHTTP && (o3 === "PUT" || o3 === "DELETE" || o3 === "PATCH")) { + s2.type = "POST", i3.emulateJSON && (s2.data._method = o3); + var a2 = i3.beforeSend; + i3.beforeSend = function(t6) { + if (t6.setRequestHeader("X-HTTP-Method-Override", o3), a2) + return a2.apply(this, arguments); + }; + } + s2.type === "GET" || i3.emulateJSON || (s2.processData = false); + var l2 = i3.error; + i3.error = function(t6, e5, n5) { + i3.textStatus = e5, i3.errorThrown = n5, l2 && l2.call(i3.context, t6, e5, n5); + }; + var c2 = i3.xhr = e4.ajax(n4.extend(s2, i3)); + return r4.trigger("request", r4, c2, i3), c2; + }; + var _ = { create: "POST", update: "PUT", patch: "PATCH", delete: "DELETE", read: "GET" }; + e4.ajax = function() { + return e4.$.ajax.apply(e4.$, arguments); + }; + var T = e4.Router = function(t5) { + t5 || (t5 = {}), t5.routes && (this.routes = t5.routes), this._bindRoutes(), this.initialize.apply(this, arguments); + }, E = /\((.*?)\)/g, j = /(\(\?)?:\w+/g, D = /\*\w+/g, M = /[\-{}\[\]+?.,\\\^$|#\s]/g; + n4.extend(T.prototype, u, { initialize: function() { + }, route: function(t5, r4, i3) { + n4.isRegExp(t5) || (t5 = this._routeToRegExp(t5)), n4.isFunction(r4) && (i3 = r4, r4 = ""), i3 || (i3 = this[r4]); + var o3 = this; + return e4.history.route(t5, function(n5) { + var s2 = o3._extractParameters(t5, n5); + o3.execute(i3, s2, r4) !== false && (o3.trigger.apply(o3, ["route:" + r4].concat(s2)), o3.trigger("route", r4, s2), e4.history.trigger("route", o3, r4, s2)); + }), this; + }, execute: function(t5, e5, n5) { + t5 && t5.apply(this, e5); + }, navigate: function(t5, n5) { + return e4.history.navigate(t5, n5), this; + }, _bindRoutes: function() { + if (this.routes) { + this.routes = n4.result(this, "routes"); + for (var t5, e5 = n4.keys(this.routes); (t5 = e5.pop()) != null; ) + this.route(t5, this.routes[t5]); + } + }, _routeToRegExp: function(t5) { + return t5 = t5.replace(M, "\\$&").replace(E, "(?:$1)?").replace(j, function(t6, e5) { + return e5 ? t6 : "([^/?]+)"; + }).replace(D, "([^?]*?)"), new RegExp("^" + t5 + "(?:\\?([\\s\\S]*))?$"); + }, _extractParameters: function(t5, e5) { + var r4 = t5.exec(e5).slice(1); + return n4.map(r4, function(t6, e6) { + return e6 === r4.length - 1 ? t6 || null : t6 ? decodeURIComponent(t6) : null; + }); + } }); + var A = e4.History = function() { + this.handlers = [], this.checkUrl = n4.bind(this.checkUrl, this), typeof window != "undefined" && (this.location = window.location, this.history = window.history); + }, L = /^[#\/]|\s+$/g, R = /^\/+|\/+$/g, N = /#.*$/; + A.started = false, n4.extend(A.prototype, u, { interval: 50, atRoot: function() { + return this.location.pathname.replace(/[^\/]$/, "$&/") === this.root && !this.getSearch(); + }, matchRoot: function() { + return this.decodeFragment(this.location.pathname).slice(0, this.root.length - 1) + "/" === this.root; + }, decodeFragment: function(t5) { + return decodeURI(t5.replace(/%25/g, "%2525")); + }, getSearch: function() { + var t5 = this.location.href.replace(/#.*/, "").match(/\?.+/); + return t5 ? t5[0] : ""; + }, getHash: function(t5) { + var e5 = (t5 || this).location.href.match(/#(.*)$/); + return e5 ? e5[1] : ""; + }, getPath: function() { + var t5 = this.decodeFragment(this.location.pathname + this.getSearch()).slice(this.root.length - 1); + return t5.charAt(0) === "/" ? t5.slice(1) : t5; + }, getFragment: function(t5) { + return t5 == null && (t5 = this._usePushState || !this._wantsHashChange ? this.getPath() : this.getHash()), t5.replace(L, ""); + }, start: function(t5) { + if (A.started) + throw new Error("Backbone.history has already been started"); + if (A.started = true, this.options = n4.extend({ root: "/" }, this.options, t5), this.root = this.options.root, this._wantsHashChange = this.options.hashChange !== false, this._hasHashChange = "onhashchange" in window && (document.documentMode === void 0 || document.documentMode > 7), this._useHashChange = this._wantsHashChange && this._hasHashChange, this._wantsPushState = !!this.options.pushState, this._hasPushState = !(!this.history || !this.history.pushState), this._usePushState = this._wantsPushState && this._hasPushState, this.fragment = this.getFragment(), this.root = ("/" + this.root + "/").replace(R, "/"), this._wantsHashChange && this._wantsPushState) { + if (!this._hasPushState && !this.atRoot()) { + var e5 = this.root.slice(0, -1) || "/"; + return this.location.replace(e5 + "#" + this.getPath()), true; + } + this._hasPushState && this.atRoot() && this.navigate(this.getHash(), { replace: true }); + } + if (!this._hasHashChange && this._wantsHashChange && !this._usePushState) { + this.iframe = document.createElement("iframe"), this.iframe.src = "javascript:0", this.iframe.style.display = "none", this.iframe.tabIndex = -1; + var r4 = document.body, i3 = r4.insertBefore(this.iframe, r4.firstChild).contentWindow; + i3.document.open(), i3.document.close(), i3.location.hash = "#" + this.fragment; + } + var o3 = window.addEventListener || function(t6, e6) { + return attachEvent("on" + t6, e6); + }; + if (this._usePushState ? o3("popstate", this.checkUrl, false) : this._useHashChange && !this.iframe ? o3("hashchange", this.checkUrl, false) : this._wantsHashChange && (this._checkUrlInterval = setInterval(this.checkUrl, this.interval)), !this.options.silent) + return this.loadUrl(); + }, stop: function() { + var t5 = window.removeEventListener || function(t6, e5) { + return detachEvent("on" + t6, e5); + }; + this._usePushState ? t5("popstate", this.checkUrl, false) : this._useHashChange && !this.iframe && t5("hashchange", this.checkUrl, false), this.iframe && (document.body.removeChild(this.iframe), this.iframe = null), this._checkUrlInterval && clearInterval(this._checkUrlInterval), A.started = false; + }, route: function(t5, e5) { + this.handlers.unshift({ route: t5, callback: e5 }); + }, checkUrl: function(t5) { + var e5 = this.getFragment(); + if (e5 === this.fragment && this.iframe && (e5 = this.getHash(this.iframe.contentWindow)), e5 === this.fragment) + return false; + this.iframe && this.navigate(e5), this.loadUrl(); + }, loadUrl: function(t5) { + return !!this.matchRoot() && (t5 = this.fragment = this.getFragment(t5), n4.some(this.handlers, function(e5) { + if (e5.route.test(t5)) + return e5.callback(t5), true; + })); + }, navigate: function(t5, e5) { + if (!A.started) + return false; + e5 && e5 !== true || (e5 = { trigger: !!e5 }), t5 = this.getFragment(t5 || ""); + var n5 = this.root; + t5 !== "" && t5.charAt(0) !== "?" || (n5 = n5.slice(0, -1) || "/"); + var r4 = n5 + t5; + if (t5 = this.decodeFragment(t5.replace(N, "")), this.fragment !== t5) { + if (this.fragment = t5, this._usePushState) + this.history[e5.replace ? "replaceState" : "pushState"]({}, document.title, r4); + else { + if (!this._wantsHashChange) + return this.location.assign(r4); + if (this._updateHash(this.location, t5, e5.replace), this.iframe && t5 !== this.getHash(this.iframe.contentWindow)) { + var i3 = this.iframe.contentWindow; + e5.replace || (i3.document.open(), i3.document.close()), this._updateHash(i3.location, t5, e5.replace); + } + } + return e5.trigger ? this.loadUrl(t5) : void 0; + } + }, _updateHash: function(t5, e5, n5) { + if (n5) { + var r4 = t5.href.replace(/(javascript:|#).*$/, ""); + t5.replace(r4 + "#" + e5); + } else + t5.hash = "#" + e5; + } }), e4.history = new A(); + var Z = function(t5, e5) { + var r4, i3 = this; + return r4 = t5 && n4.has(t5, "constructor") ? t5.constructor : function() { + return i3.apply(this, arguments); + }, n4.extend(r4, i3, e5), r4.prototype = n4.create(i3.prototype, t5), r4.prototype.constructor = r4, r4.__super__ = i3.prototype, r4; + }; + b.extend = w.extend = T.extend = k.extend = A.extend = Z; + var I = function() { + throw new Error('A "url" property or function must be specified'); + }, F = function(t5, e5) { + var n5 = e5.error; + e5.error = function(r4) { + n5 && n5.call(e5.context, t5, r4, e5), t5.trigger("error", t5, r4, e5); + }; + }; + return e4; + }(o, n3, t3, e3); + }.apply(e2, r2), i === void 0 || (t2.exports = i); + }, 9210: (t2, e2, n2) => { + !function(t3) { + t3.extendMode("css", { commentStart: "/*", commentEnd: "*/", newlineAfterToken: function(t4, e4) { + return /^[;{}]$/.test(e4); + } }), t3.extendMode("javascript", { commentStart: "/*", commentEnd: "*/", newlineAfterToken: function(t4, e4, n3, r2) { + return this.jsonMode ? /^[\[,{]$/.test(e4) || /^}/.test(n3) : (e4 != ";" || !r2.lexical || r2.lexical.type != ")") && /^[;{}]$/.test(e4) && !/^;/.test(n3); + } }); + var e3 = /^(a|abbr|acronym|area|base|bdo|big|br|button|caption|cite|code|col|colgroup|dd|del|dfn|em|frame|hr|iframe|img|input|ins|kbd|label|legend|link|map|object|optgroup|option|param|q|samp|script|select|small|span|strong|sub|sup|textarea|tt|var)$/; + t3.extendMode("xml", { commentStart: "<!--", commentEnd: "-->", newlineAfterToken: function(t4, n3, r2, i) { + var o = false; + return this.configuration == "html" && (o = !!i.context && e3.test(i.context.tagName)), !o && (t4 == "tag" && />$/.test(n3) && i.context || /^</.test(r2)); + } }), t3.defineExtension("commentRange", function(e4, n3, r2) { + var i = this, o = t3.innerMode(i.getMode(), i.getTokenAt(n3).state).mode; + i.operation(function() { + if (e4) + i.replaceRange(o.commentEnd, r2), i.replaceRange(o.commentStart, n3), n3.line == r2.line && n3.ch == r2.ch && i.setCursor(n3.line, n3.ch + o.commentStart.length); + else { + var t4 = i.getRange(n3, r2), s = t4.indexOf(o.commentStart), a = t4.lastIndexOf(o.commentEnd); + s > -1 && a > -1 && a > s && (t4 = t4.substr(0, s) + t4.substring(s + o.commentStart.length, a) + t4.substr(a + o.commentEnd.length)), i.replaceRange(t4, n3, r2); + } + }); + }), t3.defineExtension("autoIndentRange", function(t4, e4) { + var n3 = this; + this.operation(function() { + for (var r2 = t4.line; r2 <= e4.line; r2++) + n3.indentLine(r2, "smart"); + }); + }), t3.defineExtension("autoFormatRange", function(e4, n3) { + var r2 = this, i = r2.getMode(), o = r2.getRange(e4, n3).split("\n"), s = t3.copyState(i, r2.getTokenAt(e4).state), a = r2.getOption("tabSize"), l = "", c = 0, u = e4.ch === 0; + function h() { + l += "\n", u = true, ++c; + } + for (var f = 0; f < o.length; ++f) { + for (var d = new t3.StringStream(o[f], a); !d.eol(); ) { + var p = t3.innerMode(i, s), g = i.token(d, s), v = d.current(); + d.start = d.pos, u && !/\S/.test(v) || (l += v, u = false), !u && p.mode.newlineAfterToken && p.mode.newlineAfterToken(g, v, d.string.slice(d.pos) || o[f + 1] || "", p.state) && h(); + } + !d.pos && i.blankLine && i.blankLine(s), !u && f < o.length - 1 && h(); + } + r2.operation(function() { + r2.replaceRange(l, e4, n3); + for (var t4 = e4.line + 1, i2 = e4.line + c; t4 <= i2; ++t4) + r2.indentLine(t4, "smart"); + r2.setSelection(e4, r2.getCursor(false)); + }); + }); + }(n2(4631)); + }, 4631: function(t2) { + t2.exports = function() { + "use strict"; + var t3 = navigator.userAgent, e2 = navigator.platform, n2 = /gecko\/\d/i.test(t3), r2 = /MSIE \d/.test(t3), i = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t3), o = /Edge\/(\d+)/.exec(t3), s = r2 || i || o, a = s && (r2 ? document.documentMode || 6 : +(o || i)[1]), l = !o && /WebKit\//.test(t3), c = l && /Qt\/\d+\.\d+/.test(t3), u = !o && /Chrome\//.test(t3), h = /Opera\//.test(t3), f = /Apple Computer/.test(navigator.vendor), d = /Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t3), p = /PhantomJS/.test(t3), g = f && (/Mobile\/\w+/.test(t3) || navigator.maxTouchPoints > 2), v = /Android/.test(t3), m = g || v || /webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t3), y = g || /Mac/.test(e2), b = /\bCrOS\b/.test(t3), w = /win/i.test(e2), x = h && t3.match(/Version\/(\d*\.\d*)/); + x && (x = Number(x[1])), x && x >= 15 && (h = false, l = true); + var O = y && (c || h && (x == null || x < 12.11)), C = n2 || s && a >= 9; + function k(t4) { + return new RegExp("(^|\\s)" + t4 + "(?:$|\\s)\\s*"); + } + var S, P = function(t4, e3) { + var n3 = t4.className, r3 = k(e3).exec(n3); + if (r3) { + var i2 = n3.slice(r3.index + r3[0].length); + t4.className = n3.slice(0, r3.index) + (i2 ? r3[1] + i2 : ""); + } + }; + function _(t4) { + for (var e3 = t4.childNodes.length; e3 > 0; --e3) + t4.removeChild(t4.firstChild); + return t4; + } + function T(t4, e3) { + return _(t4).appendChild(e3); + } + function E(t4, e3, n3, r3) { + var i2 = document.createElement(t4); + if (n3 && (i2.className = n3), r3 && (i2.style.cssText = r3), typeof e3 == "string") + i2.appendChild(document.createTextNode(e3)); + else if (e3) + for (var o2 = 0; o2 < e3.length; ++o2) + i2.appendChild(e3[o2]); + return i2; + } + function j(t4, e3, n3, r3) { + var i2 = E(t4, e3, n3, r3); + return i2.setAttribute("role", "presentation"), i2; + } + function D(t4, e3) { + if (e3.nodeType == 3 && (e3 = e3.parentNode), t4.contains) + return t4.contains(e3); + do { + if (e3.nodeType == 11 && (e3 = e3.host), e3 == t4) + return true; + } while (e3 = e3.parentNode); + } + function M() { + var t4; + try { + t4 = document.activeElement; + } catch (e3) { + t4 = document.body || null; + } + for (; t4 && t4.shadowRoot && t4.shadowRoot.activeElement; ) + t4 = t4.shadowRoot.activeElement; + return t4; + } + function A(t4, e3) { + var n3 = t4.className; + k(e3).test(n3) || (t4.className += (n3 ? " " : "") + e3); + } + function L(t4, e3) { + for (var n3 = t4.split(" "), r3 = 0; r3 < n3.length; r3++) + n3[r3] && !k(n3[r3]).test(e3) && (e3 += " " + n3[r3]); + return e3; + } + S = document.createRange ? function(t4, e3, n3, r3) { + var i2 = document.createRange(); + return i2.setEnd(r3 || t4, n3), i2.setStart(t4, e3), i2; + } : function(t4, e3, n3) { + var r3 = document.body.createTextRange(); + try { + r3.moveToElementText(t4.parentNode); + } catch (t5) { + return r3; + } + return r3.collapse(true), r3.moveEnd("character", n3), r3.moveStart("character", e3), r3; + }; + var R = function(t4) { + t4.select(); + }; + function N(t4) { + var e3 = Array.prototype.slice.call(arguments, 1); + return function() { + return t4.apply(null, e3); + }; + } + function Z(t4, e3, n3) { + for (var r3 in e3 || (e3 = {}), t4) + !t4.hasOwnProperty(r3) || n3 === false && e3.hasOwnProperty(r3) || (e3[r3] = t4[r3]); + return e3; + } + function I(t4, e3, n3, r3, i2) { + e3 == null && (e3 = t4.search(/[^\s\u00a0]/)) == -1 && (e3 = t4.length); + for (var o2 = r3 || 0, s2 = i2 || 0; ; ) { + var a2 = t4.indexOf(" ", o2); + if (a2 < 0 || a2 >= e3) + return s2 + (e3 - o2); + s2 += a2 - o2, s2 += n3 - s2 % n3, o2 = a2 + 1; + } + } + g ? R = function(t4) { + t4.selectionStart = 0, t4.selectionEnd = t4.value.length; + } : s && (R = function(t4) { + try { + t4.select(); + } catch (t5) { + } + }); + var F = function() { + this.id = null, this.f = null, this.time = 0, this.handler = N(this.onTimeout, this); + }; + function V(t4, e3) { + for (var n3 = 0; n3 < t4.length; ++n3) + if (t4[n3] == e3) + return n3; + return -1; + } + F.prototype.onTimeout = function(t4) { + t4.id = 0, t4.time <= +new Date() ? t4.f() : setTimeout(t4.handler, t4.time - +new Date()); + }, F.prototype.set = function(t4, e3) { + this.f = e3; + var n3 = +new Date() + t4; + (!this.id || n3 < this.time) && (clearTimeout(this.id), this.id = setTimeout(this.handler, t4), this.time = n3); + }; + var H = 50, B = { toString: function() { + return "CodeMirror.Pass"; + } }, z = { scroll: false }, U = { origin: "*mouse" }, W = { origin: "+move" }; + function $(t4, e3, n3) { + for (var r3 = 0, i2 = 0; ; ) { + var o2 = t4.indexOf(" ", r3); + o2 == -1 && (o2 = t4.length); + var s2 = o2 - r3; + if (o2 == t4.length || i2 + s2 >= e3) + return r3 + Math.min(s2, e3 - i2); + if (i2 += o2 - r3, r3 = o2 + 1, (i2 += n3 - i2 % n3) >= e3) + return r3; + } + } + var q = [""]; + function G(t4) { + for (; q.length <= t4; ) + q.push(K(q) + " "); + return q[t4]; + } + function K(t4) { + return t4[t4.length - 1]; + } + function Y(t4, e3) { + for (var n3 = [], r3 = 0; r3 < t4.length; r3++) + n3[r3] = e3(t4[r3], r3); + return n3; + } + function J(t4, e3, n3) { + for (var r3 = 0, i2 = n3(e3); r3 < t4.length && n3(t4[r3]) <= i2; ) + r3++; + t4.splice(r3, 0, e3); + } + function X() { + } + function Q(t4, e3) { + var n3; + return Object.create ? n3 = Object.create(t4) : (X.prototype = t4, n3 = new X()), e3 && Z(e3, n3), n3; + } + var tt = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/; + function et(t4) { + return /\w/.test(t4) || t4 > "\x80" && (t4.toUpperCase() != t4.toLowerCase() || tt.test(t4)); + } + function nt(t4, e3) { + return e3 ? !!(e3.source.indexOf("\\w") > -1 && et(t4)) || e3.test(t4) : et(t4); + } + function rt(t4) { + for (var e3 in t4) + if (t4.hasOwnProperty(e3) && t4[e3]) + return false; + return true; + } + var it = /[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/; + function ot(t4) { + return t4.charCodeAt(0) >= 768 && it.test(t4); + } + function st(t4, e3, n3) { + for (; (n3 < 0 ? e3 > 0 : e3 < t4.length) && ot(t4.charAt(e3)); ) + e3 += n3; + return e3; + } + function at(t4, e3, n3) { + for (var r3 = e3 > n3 ? -1 : 1; ; ) { + if (e3 == n3) + return e3; + var i2 = (e3 + n3) / 2, o2 = r3 < 0 ? Math.ceil(i2) : Math.floor(i2); + if (o2 == e3) + return t4(o2) ? e3 : n3; + t4(o2) ? n3 = o2 : e3 = o2 + r3; + } + } + function lt(t4, e3, n3, r3) { + if (!t4) + return r3(e3, n3, "ltr", 0); + for (var i2 = false, o2 = 0; o2 < t4.length; ++o2) { + var s2 = t4[o2]; + (s2.from < n3 && s2.to > e3 || e3 == n3 && s2.to == e3) && (r3(Math.max(s2.from, e3), Math.min(s2.to, n3), s2.level == 1 ? "rtl" : "ltr", o2), i2 = true); + } + i2 || r3(e3, n3, "ltr"); + } + var ct = null; + function ut(t4, e3, n3) { + var r3; + ct = null; + for (var i2 = 0; i2 < t4.length; ++i2) { + var o2 = t4[i2]; + if (o2.from < e3 && o2.to > e3) + return i2; + o2.to == e3 && (o2.from != o2.to && n3 == "before" ? r3 = i2 : ct = i2), o2.from == e3 && (o2.from != o2.to && n3 != "before" ? r3 = i2 : ct = i2); + } + return r3 != null ? r3 : ct; + } + var ht = function() { + var t4 = "bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN", e3 = "nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111"; + function n3(n4) { + return n4 <= 247 ? t4.charAt(n4) : 1424 <= n4 && n4 <= 1524 ? "R" : 1536 <= n4 && n4 <= 1785 ? e3.charAt(n4 - 1536) : 1774 <= n4 && n4 <= 2220 ? "r" : 8192 <= n4 && n4 <= 8203 ? "w" : n4 == 8204 ? "b" : "L"; + } + var r3 = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/, i2 = /[stwN]/, o2 = /[LRr]/, s2 = /[Lb1n]/, a2 = /[1n]/; + function l2(t5, e4, n4) { + this.level = t5, this.from = e4, this.to = n4; + } + return function(t5, e4) { + var c2 = e4 == "ltr" ? "L" : "R"; + if (t5.length == 0 || e4 == "ltr" && !r3.test(t5)) + return false; + for (var u2 = t5.length, h2 = [], f2 = 0; f2 < u2; ++f2) + h2.push(n3(t5.charCodeAt(f2))); + for (var d2 = 0, p2 = c2; d2 < u2; ++d2) { + var g2 = h2[d2]; + g2 == "m" ? h2[d2] = p2 : p2 = g2; + } + for (var v2 = 0, m2 = c2; v2 < u2; ++v2) { + var y2 = h2[v2]; + y2 == "1" && m2 == "r" ? h2[v2] = "n" : o2.test(y2) && (m2 = y2, y2 == "r" && (h2[v2] = "R")); + } + for (var b2 = 1, w2 = h2[0]; b2 < u2 - 1; ++b2) { + var x2 = h2[b2]; + x2 == "+" && w2 == "1" && h2[b2 + 1] == "1" ? h2[b2] = "1" : x2 != "," || w2 != h2[b2 + 1] || w2 != "1" && w2 != "n" || (h2[b2] = w2), w2 = x2; + } + for (var O2 = 0; O2 < u2; ++O2) { + var C2 = h2[O2]; + if (C2 == ",") + h2[O2] = "N"; + else if (C2 == "%") { + var k2 = void 0; + for (k2 = O2 + 1; k2 < u2 && h2[k2] == "%"; ++k2) + ; + for (var S2 = O2 && h2[O2 - 1] == "!" || k2 < u2 && h2[k2] == "1" ? "1" : "N", P2 = O2; P2 < k2; ++P2) + h2[P2] = S2; + O2 = k2 - 1; + } + } + for (var _2 = 0, T2 = c2; _2 < u2; ++_2) { + var E2 = h2[_2]; + T2 == "L" && E2 == "1" ? h2[_2] = "L" : o2.test(E2) && (T2 = E2); + } + for (var j2 = 0; j2 < u2; ++j2) + if (i2.test(h2[j2])) { + var D2 = void 0; + for (D2 = j2 + 1; D2 < u2 && i2.test(h2[D2]); ++D2) + ; + for (var M2 = (j2 ? h2[j2 - 1] : c2) == "L", A2 = M2 == ((D2 < u2 ? h2[D2] : c2) == "L") ? M2 ? "L" : "R" : c2, L2 = j2; L2 < D2; ++L2) + h2[L2] = A2; + j2 = D2 - 1; + } + for (var R2, N2 = [], Z2 = 0; Z2 < u2; ) + if (s2.test(h2[Z2])) { + var I2 = Z2; + for (++Z2; Z2 < u2 && s2.test(h2[Z2]); ++Z2) + ; + N2.push(new l2(0, I2, Z2)); + } else { + var F2 = Z2, V2 = N2.length, H2 = e4 == "rtl" ? 1 : 0; + for (++Z2; Z2 < u2 && h2[Z2] != "L"; ++Z2) + ; + for (var B2 = F2; B2 < Z2; ) + if (a2.test(h2[B2])) { + F2 < B2 && (N2.splice(V2, 0, new l2(1, F2, B2)), V2 += H2); + var z2 = B2; + for (++B2; B2 < Z2 && a2.test(h2[B2]); ++B2) + ; + N2.splice(V2, 0, new l2(2, z2, B2)), V2 += H2, F2 = B2; + } else + ++B2; + F2 < Z2 && N2.splice(V2, 0, new l2(1, F2, Z2)); + } + return e4 == "ltr" && (N2[0].level == 1 && (R2 = t5.match(/^\s+/)) && (N2[0].from = R2[0].length, N2.unshift(new l2(0, 0, R2[0].length))), K(N2).level == 1 && (R2 = t5.match(/\s+$/)) && (K(N2).to -= R2[0].length, N2.push(new l2(0, u2 - R2[0].length, u2)))), e4 == "rtl" ? N2.reverse() : N2; + }; + }(); + function ft(t4, e3) { + var n3 = t4.order; + return n3 == null && (n3 = t4.order = ht(t4.text, e3)), n3; + } + var dt = [], pt = function(t4, e3, n3) { + if (t4.addEventListener) + t4.addEventListener(e3, n3, false); + else if (t4.attachEvent) + t4.attachEvent("on" + e3, n3); + else { + var r3 = t4._handlers || (t4._handlers = {}); + r3[e3] = (r3[e3] || dt).concat(n3); + } + }; + function gt(t4, e3) { + return t4._handlers && t4._handlers[e3] || dt; + } + function vt(t4, e3, n3) { + if (t4.removeEventListener) + t4.removeEventListener(e3, n3, false); + else if (t4.detachEvent) + t4.detachEvent("on" + e3, n3); + else { + var r3 = t4._handlers, i2 = r3 && r3[e3]; + if (i2) { + var o2 = V(i2, n3); + o2 > -1 && (r3[e3] = i2.slice(0, o2).concat(i2.slice(o2 + 1))); + } + } + } + function mt(t4, e3) { + var n3 = gt(t4, e3); + if (n3.length) + for (var r3 = Array.prototype.slice.call(arguments, 2), i2 = 0; i2 < n3.length; ++i2) + n3[i2].apply(null, r3); + } + function yt(t4, e3, n3) { + return typeof e3 == "string" && (e3 = { type: e3, preventDefault: function() { + this.defaultPrevented = true; + } }), mt(t4, n3 || e3.type, t4, e3), kt(e3) || e3.codemirrorIgnore; + } + function bt(t4) { + var e3 = t4._handlers && t4._handlers.cursorActivity; + if (e3) + for (var n3 = t4.curOp.cursorActivityHandlers || (t4.curOp.cursorActivityHandlers = []), r3 = 0; r3 < e3.length; ++r3) + V(n3, e3[r3]) == -1 && n3.push(e3[r3]); + } + function wt(t4, e3) { + return gt(t4, e3).length > 0; + } + function xt(t4) { + t4.prototype.on = function(t5, e3) { + pt(this, t5, e3); + }, t4.prototype.off = function(t5, e3) { + vt(this, t5, e3); + }; + } + function Ot(t4) { + t4.preventDefault ? t4.preventDefault() : t4.returnValue = false; + } + function Ct(t4) { + t4.stopPropagation ? t4.stopPropagation() : t4.cancelBubble = true; + } + function kt(t4) { + return t4.defaultPrevented != null ? t4.defaultPrevented : t4.returnValue == 0; + } + function St(t4) { + Ot(t4), Ct(t4); + } + function Pt(t4) { + return t4.target || t4.srcElement; + } + function _t(t4) { + var e3 = t4.which; + return e3 == null && (1 & t4.button ? e3 = 1 : 2 & t4.button ? e3 = 3 : 4 & t4.button && (e3 = 2)), y && t4.ctrlKey && e3 == 1 && (e3 = 3), e3; + } + var Tt, Et, jt = function() { + if (s && a < 9) + return false; + var t4 = E("div"); + return "draggable" in t4 || "dragDrop" in t4; + }(); + function Dt(t4) { + if (Tt == null) { + var e3 = E("span", "\u200B"); + T(t4, E("span", [e3, document.createTextNode("x")])), t4.firstChild.offsetHeight != 0 && (Tt = e3.offsetWidth <= 1 && e3.offsetHeight > 2 && !(s && a < 8)); + } + var n3 = Tt ? E("span", "\u200B") : E("span", "\xA0", null, "display: inline-block; width: 1px; margin-right: -1px"); + return n3.setAttribute("cm-text", ""), n3; + } + function Mt(t4) { + if (Et != null) + return Et; + var e3 = T(t4, document.createTextNode("A\u062EA")), n3 = S(e3, 0, 1).getBoundingClientRect(), r3 = S(e3, 1, 2).getBoundingClientRect(); + return _(t4), !(!n3 || n3.left == n3.right) && (Et = r3.right - n3.right < 3); + } + var At, Lt = "\n\nb".split(/\n/).length != 3 ? function(t4) { + for (var e3 = 0, n3 = [], r3 = t4.length; e3 <= r3; ) { + var i2 = t4.indexOf("\n", e3); + i2 == -1 && (i2 = t4.length); + var o2 = t4.slice(e3, t4.charAt(i2 - 1) == "\r" ? i2 - 1 : i2), s2 = o2.indexOf("\r"); + s2 != -1 ? (n3.push(o2.slice(0, s2)), e3 += s2 + 1) : (n3.push(o2), e3 = i2 + 1); + } + return n3; + } : function(t4) { + return t4.split(/\r\n?|\n/); + }, Rt = window.getSelection ? function(t4) { + try { + return t4.selectionStart != t4.selectionEnd; + } catch (t5) { + return false; + } + } : function(t4) { + var e3; + try { + e3 = t4.ownerDocument.selection.createRange(); + } catch (t5) { + } + return !(!e3 || e3.parentElement() != t4) && e3.compareEndPoints("StartToEnd", e3) != 0; + }, Nt = "oncopy" in (At = E("div")) || (At.setAttribute("oncopy", "return;"), typeof At.oncopy == "function"), Zt = null; + function It(t4) { + if (Zt != null) + return Zt; + var e3 = T(t4, E("span", "x")), n3 = e3.getBoundingClientRect(), r3 = S(e3, 0, 1).getBoundingClientRect(); + return Zt = Math.abs(n3.left - r3.left) > 1; + } + var Ft = {}, Vt = {}; + function Ht(t4, e3) { + arguments.length > 2 && (e3.dependencies = Array.prototype.slice.call(arguments, 2)), Ft[t4] = e3; + } + function Bt(t4, e3) { + Vt[t4] = e3; + } + function zt(t4) { + if (typeof t4 == "string" && Vt.hasOwnProperty(t4)) + t4 = Vt[t4]; + else if (t4 && typeof t4.name == "string" && Vt.hasOwnProperty(t4.name)) { + var e3 = Vt[t4.name]; + typeof e3 == "string" && (e3 = { name: e3 }), (t4 = Q(e3, t4)).name = e3.name; + } else { + if (typeof t4 == "string" && /^[\w\-]+\/[\w\-]+\+xml$/.test(t4)) + return zt("application/xml"); + if (typeof t4 == "string" && /^[\w\-]+\/[\w\-]+\+json$/.test(t4)) + return zt("application/json"); + } + return typeof t4 == "string" ? { name: t4 } : t4 || { name: "null" }; + } + function Ut(t4, e3) { + e3 = zt(e3); + var n3 = Ft[e3.name]; + if (!n3) + return Ut(t4, "text/plain"); + var r3 = n3(t4, e3); + if (Wt.hasOwnProperty(e3.name)) { + var i2 = Wt[e3.name]; + for (var o2 in i2) + i2.hasOwnProperty(o2) && (r3.hasOwnProperty(o2) && (r3["_" + o2] = r3[o2]), r3[o2] = i2[o2]); + } + if (r3.name = e3.name, e3.helperType && (r3.helperType = e3.helperType), e3.modeProps) + for (var s2 in e3.modeProps) + r3[s2] = e3.modeProps[s2]; + return r3; + } + var Wt = {}; + function $t(t4, e3) { + Z(e3, Wt.hasOwnProperty(t4) ? Wt[t4] : Wt[t4] = {}); + } + function qt(t4, e3) { + if (e3 === true) + return e3; + if (t4.copyState) + return t4.copyState(e3); + var n3 = {}; + for (var r3 in e3) { + var i2 = e3[r3]; + i2 instanceof Array && (i2 = i2.concat([])), n3[r3] = i2; + } + return n3; + } + function Gt(t4, e3) { + for (var n3; t4.innerMode && (n3 = t4.innerMode(e3)) && n3.mode != t4; ) + e3 = n3.state, t4 = n3.mode; + return n3 || { mode: t4, state: e3 }; + } + function Kt(t4, e3, n3) { + return !t4.startState || t4.startState(e3, n3); + } + var Yt = function(t4, e3, n3) { + this.pos = this.start = 0, this.string = t4, this.tabSize = e3 || 8, this.lastColumnPos = this.lastColumnValue = 0, this.lineStart = 0, this.lineOracle = n3; + }; + function Jt(t4, e3) { + if ((e3 -= t4.first) < 0 || e3 >= t4.size) + throw new Error("There is no line " + (e3 + t4.first) + " in the document."); + for (var n3 = t4; !n3.lines; ) + for (var r3 = 0; ; ++r3) { + var i2 = n3.children[r3], o2 = i2.chunkSize(); + if (e3 < o2) { + n3 = i2; + break; + } + e3 -= o2; + } + return n3.lines[e3]; + } + function Xt(t4, e3, n3) { + var r3 = [], i2 = e3.line; + return t4.iter(e3.line, n3.line + 1, function(t5) { + var o2 = t5.text; + i2 == n3.line && (o2 = o2.slice(0, n3.ch)), i2 == e3.line && (o2 = o2.slice(e3.ch)), r3.push(o2), ++i2; + }), r3; + } + function Qt(t4, e3, n3) { + var r3 = []; + return t4.iter(e3, n3, function(t5) { + r3.push(t5.text); + }), r3; + } + function te(t4, e3) { + var n3 = e3 - t4.height; + if (n3) + for (var r3 = t4; r3; r3 = r3.parent) + r3.height += n3; + } + function ee(t4) { + if (t4.parent == null) + return null; + for (var e3 = t4.parent, n3 = V(e3.lines, t4), r3 = e3.parent; r3; e3 = r3, r3 = r3.parent) + for (var i2 = 0; r3.children[i2] != e3; ++i2) + n3 += r3.children[i2].chunkSize(); + return n3 + e3.first; + } + function ne(t4, e3) { + var n3 = t4.first; + t: + do { + for (var r3 = 0; r3 < t4.children.length; ++r3) { + var i2 = t4.children[r3], o2 = i2.height; + if (e3 < o2) { + t4 = i2; + continue t; + } + e3 -= o2, n3 += i2.chunkSize(); + } + return n3; + } while (!t4.lines); + for (var s2 = 0; s2 < t4.lines.length; ++s2) { + var a2 = t4.lines[s2].height; + if (e3 < a2) + break; + e3 -= a2; + } + return n3 + s2; + } + function re(t4, e3) { + return e3 >= t4.first && e3 < t4.first + t4.size; + } + function ie(t4, e3) { + return String(t4.lineNumberFormatter(e3 + t4.firstLineNumber)); + } + function oe(t4, e3, n3) { + if (n3 === void 0 && (n3 = null), !(this instanceof oe)) + return new oe(t4, e3, n3); + this.line = t4, this.ch = e3, this.sticky = n3; + } + function se(t4, e3) { + return t4.line - e3.line || t4.ch - e3.ch; + } + function ae(t4, e3) { + return t4.sticky == e3.sticky && se(t4, e3) == 0; + } + function le(t4) { + return oe(t4.line, t4.ch); + } + function ce(t4, e3) { + return se(t4, e3) < 0 ? e3 : t4; + } + function ue(t4, e3) { + return se(t4, e3) < 0 ? t4 : e3; + } + function he(t4, e3) { + return Math.max(t4.first, Math.min(e3, t4.first + t4.size - 1)); + } + function fe(t4, e3) { + if (e3.line < t4.first) + return oe(t4.first, 0); + var n3 = t4.first + t4.size - 1; + return e3.line > n3 ? oe(n3, Jt(t4, n3).text.length) : de(e3, Jt(t4, e3.line).text.length); + } + function de(t4, e3) { + var n3 = t4.ch; + return n3 == null || n3 > e3 ? oe(t4.line, e3) : n3 < 0 ? oe(t4.line, 0) : t4; + } + function pe(t4, e3) { + for (var n3 = [], r3 = 0; r3 < e3.length; r3++) + n3[r3] = fe(t4, e3[r3]); + return n3; + } + Yt.prototype.eol = function() { + return this.pos >= this.string.length; + }, Yt.prototype.sol = function() { + return this.pos == this.lineStart; + }, Yt.prototype.peek = function() { + return this.string.charAt(this.pos) || void 0; + }, Yt.prototype.next = function() { + if (this.pos < this.string.length) + return this.string.charAt(this.pos++); + }, Yt.prototype.eat = function(t4) { + var e3 = this.string.charAt(this.pos); + if (typeof t4 == "string" ? e3 == t4 : e3 && (t4.test ? t4.test(e3) : t4(e3))) + return ++this.pos, e3; + }, Yt.prototype.eatWhile = function(t4) { + for (var e3 = this.pos; this.eat(t4); ) + ; + return this.pos > e3; + }, Yt.prototype.eatSpace = function() { + for (var t4 = this.pos; /[\s\u00a0]/.test(this.string.charAt(this.pos)); ) + ++this.pos; + return this.pos > t4; + }, Yt.prototype.skipToEnd = function() { + this.pos = this.string.length; + }, Yt.prototype.skipTo = function(t4) { + var e3 = this.string.indexOf(t4, this.pos); + if (e3 > -1) + return this.pos = e3, true; + }, Yt.prototype.backUp = function(t4) { + this.pos -= t4; + }, Yt.prototype.column = function() { + return this.lastColumnPos < this.start && (this.lastColumnValue = I(this.string, this.start, this.tabSize, this.lastColumnPos, this.lastColumnValue), this.lastColumnPos = this.start), this.lastColumnValue - (this.lineStart ? I(this.string, this.lineStart, this.tabSize) : 0); + }, Yt.prototype.indentation = function() { + return I(this.string, null, this.tabSize) - (this.lineStart ? I(this.string, this.lineStart, this.tabSize) : 0); + }, Yt.prototype.match = function(t4, e3, n3) { + if (typeof t4 != "string") { + var r3 = this.string.slice(this.pos).match(t4); + return r3 && r3.index > 0 ? null : (r3 && e3 !== false && (this.pos += r3[0].length), r3); + } + var i2 = function(t5) { + return n3 ? t5.toLowerCase() : t5; + }; + if (i2(this.string.substr(this.pos, t4.length)) == i2(t4)) + return e3 !== false && (this.pos += t4.length), true; + }, Yt.prototype.current = function() { + return this.string.slice(this.start, this.pos); + }, Yt.prototype.hideFirstChars = function(t4, e3) { + this.lineStart += t4; + try { + return e3(); + } finally { + this.lineStart -= t4; + } + }, Yt.prototype.lookAhead = function(t4) { + var e3 = this.lineOracle; + return e3 && e3.lookAhead(t4); + }, Yt.prototype.baseToken = function() { + var t4 = this.lineOracle; + return t4 && t4.baseToken(this.pos); + }; + var ge = function(t4, e3) { + this.state = t4, this.lookAhead = e3; + }, ve = function(t4, e3, n3, r3) { + this.state = e3, this.doc = t4, this.line = n3, this.maxLookAhead = r3 || 0, this.baseTokens = null, this.baseTokenPos = 1; + }; + function me(t4, e3, n3, r3) { + var i2 = [t4.state.modeGen], o2 = {}; + Pe(t4, e3.text, t4.doc.mode, n3, function(t5, e4) { + return i2.push(t5, e4); + }, o2, r3); + for (var s2 = n3.state, a2 = function(r4) { + n3.baseTokens = i2; + var a3 = t4.state.overlays[r4], l3 = 1, c2 = 0; + n3.state = true, Pe(t4, e3.text, a3.mode, n3, function(t5, e4) { + for (var n4 = l3; c2 < t5; ) { + var r5 = i2[l3]; + r5 > t5 && i2.splice(l3, 1, t5, i2[l3 + 1], r5), l3 += 2, c2 = Math.min(t5, r5); + } + if (e4) + if (a3.opaque) + i2.splice(n4, l3 - n4, t5, "overlay " + e4), l3 = n4 + 2; + else + for (; n4 < l3; n4 += 2) { + var o3 = i2[n4 + 1]; + i2[n4 + 1] = (o3 ? o3 + " " : "") + "overlay " + e4; + } + }, o2), n3.state = s2, n3.baseTokens = null, n3.baseTokenPos = 1; + }, l2 = 0; l2 < t4.state.overlays.length; ++l2) + a2(l2); + return { styles: i2, classes: o2.bgClass || o2.textClass ? o2 : null }; + } + function ye(t4, e3, n3) { + if (!e3.styles || e3.styles[0] != t4.state.modeGen) { + var r3 = be(t4, ee(e3)), i2 = e3.text.length > t4.options.maxHighlightLength && qt(t4.doc.mode, r3.state), o2 = me(t4, e3, r3); + i2 && (r3.state = i2), e3.stateAfter = r3.save(!i2), e3.styles = o2.styles, o2.classes ? e3.styleClasses = o2.classes : e3.styleClasses && (e3.styleClasses = null), n3 === t4.doc.highlightFrontier && (t4.doc.modeFrontier = Math.max(t4.doc.modeFrontier, ++t4.doc.highlightFrontier)); + } + return e3.styles; + } + function be(t4, e3, n3) { + var r3 = t4.doc, i2 = t4.display; + if (!r3.mode.startState) + return new ve(r3, true, e3); + var o2 = _e(t4, e3, n3), s2 = o2 > r3.first && Jt(r3, o2 - 1).stateAfter, a2 = s2 ? ve.fromSaved(r3, s2, o2) : new ve(r3, Kt(r3.mode), o2); + return r3.iter(o2, e3, function(n4) { + we(t4, n4.text, a2); + var r4 = a2.line; + n4.stateAfter = r4 == e3 - 1 || r4 % 5 == 0 || r4 >= i2.viewFrom && r4 < i2.viewTo ? a2.save() : null, a2.nextLine(); + }), n3 && (r3.modeFrontier = a2.line), a2; + } + function we(t4, e3, n3, r3) { + var i2 = t4.doc.mode, o2 = new Yt(e3, t4.options.tabSize, n3); + for (o2.start = o2.pos = r3 || 0, e3 == "" && xe(i2, n3.state); !o2.eol(); ) + Oe(i2, o2, n3.state), o2.start = o2.pos; + } + function xe(t4, e3) { + if (t4.blankLine) + return t4.blankLine(e3); + if (t4.innerMode) { + var n3 = Gt(t4, e3); + return n3.mode.blankLine ? n3.mode.blankLine(n3.state) : void 0; + } + } + function Oe(t4, e3, n3, r3) { + for (var i2 = 0; i2 < 10; i2++) { + r3 && (r3[0] = Gt(t4, n3).mode); + var o2 = t4.token(e3, n3); + if (e3.pos > e3.start) + return o2; + } + throw new Error("Mode " + t4.name + " failed to advance stream."); + } + ve.prototype.lookAhead = function(t4) { + var e3 = this.doc.getLine(this.line + t4); + return e3 != null && t4 > this.maxLookAhead && (this.maxLookAhead = t4), e3; + }, ve.prototype.baseToken = function(t4) { + if (!this.baseTokens) + return null; + for (; this.baseTokens[this.baseTokenPos] <= t4; ) + this.baseTokenPos += 2; + var e3 = this.baseTokens[this.baseTokenPos + 1]; + return { type: e3 && e3.replace(/( |^)overlay .*/, ""), size: this.baseTokens[this.baseTokenPos] - t4 }; + }, ve.prototype.nextLine = function() { + this.line++, this.maxLookAhead > 0 && this.maxLookAhead--; + }, ve.fromSaved = function(t4, e3, n3) { + return e3 instanceof ge ? new ve(t4, qt(t4.mode, e3.state), n3, e3.lookAhead) : new ve(t4, qt(t4.mode, e3), n3); + }, ve.prototype.save = function(t4) { + var e3 = t4 !== false ? qt(this.doc.mode, this.state) : this.state; + return this.maxLookAhead > 0 ? new ge(e3, this.maxLookAhead) : e3; + }; + var Ce = function(t4, e3, n3) { + this.start = t4.start, this.end = t4.pos, this.string = t4.current(), this.type = e3 || null, this.state = n3; + }; + function ke(t4, e3, n3, r3) { + var i2, o2, s2 = t4.doc, a2 = s2.mode, l2 = Jt(s2, (e3 = fe(s2, e3)).line), c2 = be(t4, e3.line, n3), u2 = new Yt(l2.text, t4.options.tabSize, c2); + for (r3 && (o2 = []); (r3 || u2.pos < e3.ch) && !u2.eol(); ) + u2.start = u2.pos, i2 = Oe(a2, u2, c2.state), r3 && o2.push(new Ce(u2, i2, qt(s2.mode, c2.state))); + return r3 ? o2 : new Ce(u2, i2, c2.state); + } + function Se(t4, e3) { + if (t4) + for (; ; ) { + var n3 = t4.match(/(?:^|\s+)line-(background-)?(\S+)/); + if (!n3) + break; + t4 = t4.slice(0, n3.index) + t4.slice(n3.index + n3[0].length); + var r3 = n3[1] ? "bgClass" : "textClass"; + e3[r3] == null ? e3[r3] = n3[2] : new RegExp("(?:^|\\s)" + n3[2] + "(?:$|\\s)").test(e3[r3]) || (e3[r3] += " " + n3[2]); + } + return t4; + } + function Pe(t4, e3, n3, r3, i2, o2, s2) { + var a2 = n3.flattenSpans; + a2 == null && (a2 = t4.options.flattenSpans); + var l2, c2 = 0, u2 = null, h2 = new Yt(e3, t4.options.tabSize, r3), f2 = t4.options.addModeClass && [null]; + for (e3 == "" && Se(xe(n3, r3.state), o2); !h2.eol(); ) { + if (h2.pos > t4.options.maxHighlightLength ? (a2 = false, s2 && we(t4, e3, r3, h2.pos), h2.pos = e3.length, l2 = null) : l2 = Se(Oe(n3, h2, r3.state, f2), o2), f2) { + var d2 = f2[0].name; + d2 && (l2 = "m-" + (l2 ? d2 + " " + l2 : d2)); + } + if (!a2 || u2 != l2) { + for (; c2 < h2.start; ) + i2(c2 = Math.min(h2.start, c2 + 5e3), u2); + u2 = l2; + } + h2.start = h2.pos; + } + for (; c2 < h2.pos; ) { + var p2 = Math.min(h2.pos, c2 + 5e3); + i2(p2, u2), c2 = p2; + } + } + function _e(t4, e3, n3) { + for (var r3, i2, o2 = t4.doc, s2 = n3 ? -1 : e3 - (t4.doc.mode.innerMode ? 1e3 : 100), a2 = e3; a2 > s2; --a2) { + if (a2 <= o2.first) + return o2.first; + var l2 = Jt(o2, a2 - 1), c2 = l2.stateAfter; + if (c2 && (!n3 || a2 + (c2 instanceof ge ? c2.lookAhead : 0) <= o2.modeFrontier)) + return a2; + var u2 = I(l2.text, null, t4.options.tabSize); + (i2 == null || r3 > u2) && (i2 = a2 - 1, r3 = u2); + } + return i2; + } + function Te(t4, e3) { + if (t4.modeFrontier = Math.min(t4.modeFrontier, e3), !(t4.highlightFrontier < e3 - 10)) { + for (var n3 = t4.first, r3 = e3 - 1; r3 > n3; r3--) { + var i2 = Jt(t4, r3).stateAfter; + if (i2 && (!(i2 instanceof ge) || r3 + i2.lookAhead < e3)) { + n3 = r3 + 1; + break; + } + } + t4.highlightFrontier = Math.min(t4.highlightFrontier, n3); + } + } + var Ee = false, je = false; + function De() { + Ee = true; + } + function Me() { + je = true; + } + function Ae(t4, e3, n3) { + this.marker = t4, this.from = e3, this.to = n3; + } + function Le(t4, e3) { + if (t4) + for (var n3 = 0; n3 < t4.length; ++n3) { + var r3 = t4[n3]; + if (r3.marker == e3) + return r3; + } + } + function Re(t4, e3) { + for (var n3, r3 = 0; r3 < t4.length; ++r3) + t4[r3] != e3 && (n3 || (n3 = [])).push(t4[r3]); + return n3; + } + function Ne(t4, e3, n3) { + var r3 = n3 && window.WeakSet && (n3.markedSpans || (n3.markedSpans = /* @__PURE__ */ new WeakSet())); + r3 && r3.has(t4.markedSpans) ? t4.markedSpans.push(e3) : (t4.markedSpans = t4.markedSpans ? t4.markedSpans.concat([e3]) : [e3], r3 && r3.add(t4.markedSpans)), e3.marker.attachLine(t4); + } + function Ze(t4, e3, n3) { + var r3; + if (t4) + for (var i2 = 0; i2 < t4.length; ++i2) { + var o2 = t4[i2], s2 = o2.marker; + if (o2.from == null || (s2.inclusiveLeft ? o2.from <= e3 : o2.from < e3) || o2.from == e3 && s2.type == "bookmark" && (!n3 || !o2.marker.insertLeft)) { + var a2 = o2.to == null || (s2.inclusiveRight ? o2.to >= e3 : o2.to > e3); + (r3 || (r3 = [])).push(new Ae(s2, o2.from, a2 ? null : o2.to)); + } + } + return r3; + } + function Ie(t4, e3, n3) { + var r3; + if (t4) + for (var i2 = 0; i2 < t4.length; ++i2) { + var o2 = t4[i2], s2 = o2.marker; + if (o2.to == null || (s2.inclusiveRight ? o2.to >= e3 : o2.to > e3) || o2.from == e3 && s2.type == "bookmark" && (!n3 || o2.marker.insertLeft)) { + var a2 = o2.from == null || (s2.inclusiveLeft ? o2.from <= e3 : o2.from < e3); + (r3 || (r3 = [])).push(new Ae(s2, a2 ? null : o2.from - e3, o2.to == null ? null : o2.to - e3)); + } + } + return r3; + } + function Fe(t4, e3) { + if (e3.full) + return null; + var n3 = re(t4, e3.from.line) && Jt(t4, e3.from.line).markedSpans, r3 = re(t4, e3.to.line) && Jt(t4, e3.to.line).markedSpans; + if (!n3 && !r3) + return null; + var i2 = e3.from.ch, o2 = e3.to.ch, s2 = se(e3.from, e3.to) == 0, a2 = Ze(n3, i2, s2), l2 = Ie(r3, o2, s2), c2 = e3.text.length == 1, u2 = K(e3.text).length + (c2 ? i2 : 0); + if (a2) + for (var h2 = 0; h2 < a2.length; ++h2) { + var f2 = a2[h2]; + if (f2.to == null) { + var d2 = Le(l2, f2.marker); + d2 ? c2 && (f2.to = d2.to == null ? null : d2.to + u2) : f2.to = i2; + } + } + if (l2) + for (var p2 = 0; p2 < l2.length; ++p2) { + var g2 = l2[p2]; + g2.to != null && (g2.to += u2), g2.from == null ? Le(a2, g2.marker) || (g2.from = u2, c2 && (a2 || (a2 = [])).push(g2)) : (g2.from += u2, c2 && (a2 || (a2 = [])).push(g2)); + } + a2 && (a2 = Ve(a2)), l2 && l2 != a2 && (l2 = Ve(l2)); + var v2 = [a2]; + if (!c2) { + var m2, y2 = e3.text.length - 2; + if (y2 > 0 && a2) + for (var b2 = 0; b2 < a2.length; ++b2) + a2[b2].to == null && (m2 || (m2 = [])).push(new Ae(a2[b2].marker, null, null)); + for (var w2 = 0; w2 < y2; ++w2) + v2.push(m2); + v2.push(l2); + } + return v2; + } + function Ve(t4) { + for (var e3 = 0; e3 < t4.length; ++e3) { + var n3 = t4[e3]; + n3.from != null && n3.from == n3.to && n3.marker.clearWhenEmpty !== false && t4.splice(e3--, 1); + } + return t4.length ? t4 : null; + } + function He(t4, e3, n3) { + var r3 = null; + if (t4.iter(e3.line, n3.line + 1, function(t5) { + if (t5.markedSpans) + for (var e4 = 0; e4 < t5.markedSpans.length; ++e4) { + var n4 = t5.markedSpans[e4].marker; + !n4.readOnly || r3 && V(r3, n4) != -1 || (r3 || (r3 = [])).push(n4); + } + }), !r3) + return null; + for (var i2 = [{ from: e3, to: n3 }], o2 = 0; o2 < r3.length; ++o2) + for (var s2 = r3[o2], a2 = s2.find(0), l2 = 0; l2 < i2.length; ++l2) { + var c2 = i2[l2]; + if (!(se(c2.to, a2.from) < 0 || se(c2.from, a2.to) > 0)) { + var u2 = [l2, 1], h2 = se(c2.from, a2.from), f2 = se(c2.to, a2.to); + (h2 < 0 || !s2.inclusiveLeft && !h2) && u2.push({ from: c2.from, to: a2.from }), (f2 > 0 || !s2.inclusiveRight && !f2) && u2.push({ from: a2.to, to: c2.to }), i2.splice.apply(i2, u2), l2 += u2.length - 3; + } + } + return i2; + } + function Be(t4) { + var e3 = t4.markedSpans; + if (e3) { + for (var n3 = 0; n3 < e3.length; ++n3) + e3[n3].marker.detachLine(t4); + t4.markedSpans = null; + } + } + function ze(t4, e3) { + if (e3) { + for (var n3 = 0; n3 < e3.length; ++n3) + e3[n3].marker.attachLine(t4); + t4.markedSpans = e3; + } + } + function Ue(t4) { + return t4.inclusiveLeft ? -1 : 0; + } + function We(t4) { + return t4.inclusiveRight ? 1 : 0; + } + function $e(t4, e3) { + var n3 = t4.lines.length - e3.lines.length; + if (n3 != 0) + return n3; + var r3 = t4.find(), i2 = e3.find(), o2 = se(r3.from, i2.from) || Ue(t4) - Ue(e3); + if (o2) + return -o2; + var s2 = se(r3.to, i2.to) || We(t4) - We(e3); + return s2 || e3.id - t4.id; + } + function qe(t4, e3) { + var n3, r3 = je && t4.markedSpans; + if (r3) + for (var i2 = void 0, o2 = 0; o2 < r3.length; ++o2) + (i2 = r3[o2]).marker.collapsed && (e3 ? i2.from : i2.to) == null && (!n3 || $e(n3, i2.marker) < 0) && (n3 = i2.marker); + return n3; + } + function Ge(t4) { + return qe(t4, true); + } + function Ke(t4) { + return qe(t4, false); + } + function Ye(t4, e3) { + var n3, r3 = je && t4.markedSpans; + if (r3) + for (var i2 = 0; i2 < r3.length; ++i2) { + var o2 = r3[i2]; + o2.marker.collapsed && (o2.from == null || o2.from < e3) && (o2.to == null || o2.to > e3) && (!n3 || $e(n3, o2.marker) < 0) && (n3 = o2.marker); + } + return n3; + } + function Je(t4, e3, n3, r3, i2) { + var o2 = Jt(t4, e3), s2 = je && o2.markedSpans; + if (s2) + for (var a2 = 0; a2 < s2.length; ++a2) { + var l2 = s2[a2]; + if (l2.marker.collapsed) { + var c2 = l2.marker.find(0), u2 = se(c2.from, n3) || Ue(l2.marker) - Ue(i2), h2 = se(c2.to, r3) || We(l2.marker) - We(i2); + if (!(u2 >= 0 && h2 <= 0 || u2 <= 0 && h2 >= 0) && (u2 <= 0 && (l2.marker.inclusiveRight && i2.inclusiveLeft ? se(c2.to, n3) >= 0 : se(c2.to, n3) > 0) || u2 >= 0 && (l2.marker.inclusiveRight && i2.inclusiveLeft ? se(c2.from, r3) <= 0 : se(c2.from, r3) < 0))) + return true; + } + } + } + function Xe(t4) { + for (var e3; e3 = Ge(t4); ) + t4 = e3.find(-1, true).line; + return t4; + } + function Qe(t4) { + for (var e3; e3 = Ke(t4); ) + t4 = e3.find(1, true).line; + return t4; + } + function tn(t4) { + for (var e3, n3; e3 = Ke(t4); ) + t4 = e3.find(1, true).line, (n3 || (n3 = [])).push(t4); + return n3; + } + function en(t4, e3) { + var n3 = Jt(t4, e3), r3 = Xe(n3); + return n3 == r3 ? e3 : ee(r3); + } + function nn(t4, e3) { + if (e3 > t4.lastLine()) + return e3; + var n3, r3 = Jt(t4, e3); + if (!rn(t4, r3)) + return e3; + for (; n3 = Ke(r3); ) + r3 = n3.find(1, true).line; + return ee(r3) + 1; + } + function rn(t4, e3) { + var n3 = je && e3.markedSpans; + if (n3) { + for (var r3 = void 0, i2 = 0; i2 < n3.length; ++i2) + if ((r3 = n3[i2]).marker.collapsed) { + if (r3.from == null) + return true; + if (!r3.marker.widgetNode && r3.from == 0 && r3.marker.inclusiveLeft && on(t4, e3, r3)) + return true; + } + } + } + function on(t4, e3, n3) { + if (n3.to == null) { + var r3 = n3.marker.find(1, true); + return on(t4, r3.line, Le(r3.line.markedSpans, n3.marker)); + } + if (n3.marker.inclusiveRight && n3.to == e3.text.length) + return true; + for (var i2 = void 0, o2 = 0; o2 < e3.markedSpans.length; ++o2) + if ((i2 = e3.markedSpans[o2]).marker.collapsed && !i2.marker.widgetNode && i2.from == n3.to && (i2.to == null || i2.to != n3.from) && (i2.marker.inclusiveLeft || n3.marker.inclusiveRight) && on(t4, e3, i2)) + return true; + } + function sn(t4) { + for (var e3 = 0, n3 = (t4 = Xe(t4)).parent, r3 = 0; r3 < n3.lines.length; ++r3) { + var i2 = n3.lines[r3]; + if (i2 == t4) + break; + e3 += i2.height; + } + for (var o2 = n3.parent; o2; o2 = (n3 = o2).parent) + for (var s2 = 0; s2 < o2.children.length; ++s2) { + var a2 = o2.children[s2]; + if (a2 == n3) + break; + e3 += a2.height; + } + return e3; + } + function an(t4) { + if (t4.height == 0) + return 0; + for (var e3, n3 = t4.text.length, r3 = t4; e3 = Ge(r3); ) { + var i2 = e3.find(0, true); + r3 = i2.from.line, n3 += i2.from.ch - i2.to.ch; + } + for (r3 = t4; e3 = Ke(r3); ) { + var o2 = e3.find(0, true); + n3 -= r3.text.length - o2.from.ch, n3 += (r3 = o2.to.line).text.length - o2.to.ch; + } + return n3; + } + function ln(t4) { + var e3 = t4.display, n3 = t4.doc; + e3.maxLine = Jt(n3, n3.first), e3.maxLineLength = an(e3.maxLine), e3.maxLineChanged = true, n3.iter(function(t5) { + var n4 = an(t5); + n4 > e3.maxLineLength && (e3.maxLineLength = n4, e3.maxLine = t5); + }); + } + var cn = function(t4, e3, n3) { + this.text = t4, ze(this, e3), this.height = n3 ? n3(this) : 1; + }; + function un(t4, e3, n3, r3) { + t4.text = e3, t4.stateAfter && (t4.stateAfter = null), t4.styles && (t4.styles = null), t4.order != null && (t4.order = null), Be(t4), ze(t4, n3); + var i2 = r3 ? r3(t4) : 1; + i2 != t4.height && te(t4, i2); + } + function hn(t4) { + t4.parent = null, Be(t4); + } + cn.prototype.lineNo = function() { + return ee(this); + }, xt(cn); + var fn = {}, dn = {}; + function pn(t4, e3) { + if (!t4 || /^\s*$/.test(t4)) + return null; + var n3 = e3.addModeClass ? dn : fn; + return n3[t4] || (n3[t4] = t4.replace(/\S+/g, "cm-$&")); + } + function gn(t4, e3) { + var n3 = j("span", null, null, l ? "padding-right: .1px" : null), r3 = { pre: j("pre", [n3], "CodeMirror-line"), content: n3, col: 0, pos: 0, cm: t4, trailingSpace: false, splitSpaces: t4.getOption("lineWrapping") }; + e3.measure = {}; + for (var i2 = 0; i2 <= (e3.rest ? e3.rest.length : 0); i2++) { + var o2 = i2 ? e3.rest[i2 - 1] : e3.line, s2 = void 0; + r3.pos = 0, r3.addToken = mn, Mt(t4.display.measure) && (s2 = ft(o2, t4.doc.direction)) && (r3.addToken = bn(r3.addToken, s2)), r3.map = [], xn(o2, r3, ye(t4, o2, e3 != t4.display.externalMeasured && ee(o2))), o2.styleClasses && (o2.styleClasses.bgClass && (r3.bgClass = L(o2.styleClasses.bgClass, r3.bgClass || "")), o2.styleClasses.textClass && (r3.textClass = L(o2.styleClasses.textClass, r3.textClass || ""))), r3.map.length == 0 && r3.map.push(0, 0, r3.content.appendChild(Dt(t4.display.measure))), i2 == 0 ? (e3.measure.map = r3.map, e3.measure.cache = {}) : ((e3.measure.maps || (e3.measure.maps = [])).push(r3.map), (e3.measure.caches || (e3.measure.caches = [])).push({})); + } + if (l) { + var a2 = r3.content.lastChild; + (/\bcm-tab\b/.test(a2.className) || a2.querySelector && a2.querySelector(".cm-tab")) && (r3.content.className = "cm-tab-wrap-hack"); + } + return mt(t4, "renderLine", t4, e3.line, r3.pre), r3.pre.className && (r3.textClass = L(r3.pre.className, r3.textClass || "")), r3; + } + function vn(t4) { + var e3 = E("span", "\u2022", "cm-invalidchar"); + return e3.title = "\\u" + t4.charCodeAt(0).toString(16), e3.setAttribute("aria-label", e3.title), e3; + } + function mn(t4, e3, n3, r3, i2, o2, l2) { + if (e3) { + var c2, u2 = t4.splitSpaces ? yn(e3, t4.trailingSpace) : e3, h2 = t4.cm.state.specialChars, f2 = false; + if (h2.test(e3)) { + c2 = document.createDocumentFragment(); + for (var d2 = 0; ; ) { + h2.lastIndex = d2; + var p2 = h2.exec(e3), g2 = p2 ? p2.index - d2 : e3.length - d2; + if (g2) { + var v2 = document.createTextNode(u2.slice(d2, d2 + g2)); + s && a < 9 ? c2.appendChild(E("span", [v2])) : c2.appendChild(v2), t4.map.push(t4.pos, t4.pos + g2, v2), t4.col += g2, t4.pos += g2; + } + if (!p2) + break; + d2 += g2 + 1; + var m2 = void 0; + if (p2[0] == " ") { + var y2 = t4.cm.options.tabSize, b2 = y2 - t4.col % y2; + (m2 = c2.appendChild(E("span", G(b2), "cm-tab"))).setAttribute("role", "presentation"), m2.setAttribute("cm-text", " "), t4.col += b2; + } else + p2[0] == "\r" || p2[0] == "\n" ? ((m2 = c2.appendChild(E("span", p2[0] == "\r" ? "\u240D" : "\u2424", "cm-invalidchar"))).setAttribute("cm-text", p2[0]), t4.col += 1) : ((m2 = t4.cm.options.specialCharPlaceholder(p2[0])).setAttribute("cm-text", p2[0]), s && a < 9 ? c2.appendChild(E("span", [m2])) : c2.appendChild(m2), t4.col += 1); + t4.map.push(t4.pos, t4.pos + 1, m2), t4.pos++; + } + } else + t4.col += e3.length, c2 = document.createTextNode(u2), t4.map.push(t4.pos, t4.pos + e3.length, c2), s && a < 9 && (f2 = true), t4.pos += e3.length; + if (t4.trailingSpace = u2.charCodeAt(e3.length - 1) == 32, n3 || r3 || i2 || f2 || o2 || l2) { + var w2 = n3 || ""; + r3 && (w2 += r3), i2 && (w2 += i2); + var x2 = E("span", [c2], w2, o2); + if (l2) + for (var O2 in l2) + l2.hasOwnProperty(O2) && O2 != "style" && O2 != "class" && x2.setAttribute(O2, l2[O2]); + return t4.content.appendChild(x2); + } + t4.content.appendChild(c2); + } + } + function yn(t4, e3) { + if (t4.length > 1 && !/ /.test(t4)) + return t4; + for (var n3 = e3, r3 = "", i2 = 0; i2 < t4.length; i2++) { + var o2 = t4.charAt(i2); + o2 != " " || !n3 || i2 != t4.length - 1 && t4.charCodeAt(i2 + 1) != 32 || (o2 = "\xA0"), r3 += o2, n3 = o2 == " "; + } + return r3; + } + function bn(t4, e3) { + return function(n3, r3, i2, o2, s2, a2, l2) { + i2 = i2 ? i2 + " cm-force-border" : "cm-force-border"; + for (var c2 = n3.pos, u2 = c2 + r3.length; ; ) { + for (var h2 = void 0, f2 = 0; f2 < e3.length && !((h2 = e3[f2]).to > c2 && h2.from <= c2); f2++) + ; + if (h2.to >= u2) + return t4(n3, r3, i2, o2, s2, a2, l2); + t4(n3, r3.slice(0, h2.to - c2), i2, o2, null, a2, l2), o2 = null, r3 = r3.slice(h2.to - c2), c2 = h2.to; + } + }; + } + function wn(t4, e3, n3, r3) { + var i2 = !r3 && n3.widgetNode; + i2 && t4.map.push(t4.pos, t4.pos + e3, i2), !r3 && t4.cm.display.input.needsContentAttribute && (i2 || (i2 = t4.content.appendChild(document.createElement("span"))), i2.setAttribute("cm-marker", n3.id)), i2 && (t4.cm.display.input.setUneditable(i2), t4.content.appendChild(i2)), t4.pos += e3, t4.trailingSpace = false; + } + function xn(t4, e3, n3) { + var r3 = t4.markedSpans, i2 = t4.text, o2 = 0; + if (r3) + for (var s2, a2, l2, c2, u2, h2, f2, d2 = i2.length, p2 = 0, g2 = 1, v2 = "", m2 = 0; ; ) { + if (m2 == p2) { + l2 = c2 = u2 = a2 = "", f2 = null, h2 = null, m2 = 1 / 0; + for (var y2 = [], b2 = void 0, w2 = 0; w2 < r3.length; ++w2) { + var x2 = r3[w2], O2 = x2.marker; + if (O2.type == "bookmark" && x2.from == p2 && O2.widgetNode) + y2.push(O2); + else if (x2.from <= p2 && (x2.to == null || x2.to > p2 || O2.collapsed && x2.to == p2 && x2.from == p2)) { + if (x2.to != null && x2.to != p2 && m2 > x2.to && (m2 = x2.to, c2 = ""), O2.className && (l2 += " " + O2.className), O2.css && (a2 = (a2 ? a2 + ";" : "") + O2.css), O2.startStyle && x2.from == p2 && (u2 += " " + O2.startStyle), O2.endStyle && x2.to == m2 && (b2 || (b2 = [])).push(O2.endStyle, x2.to), O2.title && ((f2 || (f2 = {})).title = O2.title), O2.attributes) + for (var C2 in O2.attributes) + (f2 || (f2 = {}))[C2] = O2.attributes[C2]; + O2.collapsed && (!h2 || $e(h2.marker, O2) < 0) && (h2 = x2); + } else + x2.from > p2 && m2 > x2.from && (m2 = x2.from); + } + if (b2) + for (var k2 = 0; k2 < b2.length; k2 += 2) + b2[k2 + 1] == m2 && (c2 += " " + b2[k2]); + if (!h2 || h2.from == p2) + for (var S2 = 0; S2 < y2.length; ++S2) + wn(e3, 0, y2[S2]); + if (h2 && (h2.from || 0) == p2) { + if (wn(e3, (h2.to == null ? d2 + 1 : h2.to) - p2, h2.marker, h2.from == null), h2.to == null) + return; + h2.to == p2 && (h2 = false); + } + } + if (p2 >= d2) + break; + for (var P2 = Math.min(d2, m2); ; ) { + if (v2) { + var _2 = p2 + v2.length; + if (!h2) { + var T2 = _2 > P2 ? v2.slice(0, P2 - p2) : v2; + e3.addToken(e3, T2, s2 ? s2 + l2 : l2, u2, p2 + T2.length == m2 ? c2 : "", a2, f2); + } + if (_2 >= P2) { + v2 = v2.slice(P2 - p2), p2 = P2; + break; + } + p2 = _2, u2 = ""; + } + v2 = i2.slice(o2, o2 = n3[g2++]), s2 = pn(n3[g2++], e3.cm.options); + } + } + else + for (var E2 = 1; E2 < n3.length; E2 += 2) + e3.addToken(e3, i2.slice(o2, o2 = n3[E2]), pn(n3[E2 + 1], e3.cm.options)); + } + function On(t4, e3, n3) { + this.line = e3, this.rest = tn(e3), this.size = this.rest ? ee(K(this.rest)) - n3 + 1 : 1, this.node = this.text = null, this.hidden = rn(t4, e3); + } + function Cn(t4, e3, n3) { + for (var r3, i2 = [], o2 = e3; o2 < n3; o2 = r3) { + var s2 = new On(t4.doc, Jt(t4.doc, o2), o2); + r3 = o2 + s2.size, i2.push(s2); + } + return i2; + } + var kn = null; + function Sn(t4) { + kn ? kn.ops.push(t4) : t4.ownsGroup = kn = { ops: [t4], delayedCallbacks: [] }; + } + function Pn(t4) { + var e3 = t4.delayedCallbacks, n3 = 0; + do { + for (; n3 < e3.length; n3++) + e3[n3].call(null); + for (var r3 = 0; r3 < t4.ops.length; r3++) { + var i2 = t4.ops[r3]; + if (i2.cursorActivityHandlers) + for (; i2.cursorActivityCalled < i2.cursorActivityHandlers.length; ) + i2.cursorActivityHandlers[i2.cursorActivityCalled++].call(null, i2.cm); + } + } while (n3 < e3.length); + } + function _n(t4, e3) { + var n3 = t4.ownsGroup; + if (n3) + try { + Pn(n3); + } finally { + kn = null, e3(n3); + } + } + var Tn = null; + function En(t4, e3) { + var n3 = gt(t4, e3); + if (n3.length) { + var r3, i2 = Array.prototype.slice.call(arguments, 2); + kn ? r3 = kn.delayedCallbacks : Tn ? r3 = Tn : (r3 = Tn = [], setTimeout(jn, 0)); + for (var o2 = function(t5) { + r3.push(function() { + return n3[t5].apply(null, i2); + }); + }, s2 = 0; s2 < n3.length; ++s2) + o2(s2); + } + } + function jn() { + var t4 = Tn; + Tn = null; + for (var e3 = 0; e3 < t4.length; ++e3) + t4[e3](); + } + function Dn(t4, e3, n3, r3) { + for (var i2 = 0; i2 < e3.changes.length; i2++) { + var o2 = e3.changes[i2]; + o2 == "text" ? Rn(t4, e3) : o2 == "gutter" ? Zn(t4, e3, n3, r3) : o2 == "class" ? Nn(t4, e3) : o2 == "widget" && In(t4, e3, r3); + } + e3.changes = null; + } + function Mn(t4) { + return t4.node == t4.text && (t4.node = E("div", null, null, "position: relative"), t4.text.parentNode && t4.text.parentNode.replaceChild(t4.node, t4.text), t4.node.appendChild(t4.text), s && a < 8 && (t4.node.style.zIndex = 2)), t4.node; + } + function An(t4, e3) { + var n3 = e3.bgClass ? e3.bgClass + " " + (e3.line.bgClass || "") : e3.line.bgClass; + if (n3 && (n3 += " CodeMirror-linebackground"), e3.background) + n3 ? e3.background.className = n3 : (e3.background.parentNode.removeChild(e3.background), e3.background = null); + else if (n3) { + var r3 = Mn(e3); + e3.background = r3.insertBefore(E("div", null, n3), r3.firstChild), t4.display.input.setUneditable(e3.background); + } + } + function Ln(t4, e3) { + var n3 = t4.display.externalMeasured; + return n3 && n3.line == e3.line ? (t4.display.externalMeasured = null, e3.measure = n3.measure, n3.built) : gn(t4, e3); + } + function Rn(t4, e3) { + var n3 = e3.text.className, r3 = Ln(t4, e3); + e3.text == e3.node && (e3.node = r3.pre), e3.text.parentNode.replaceChild(r3.pre, e3.text), e3.text = r3.pre, r3.bgClass != e3.bgClass || r3.textClass != e3.textClass ? (e3.bgClass = r3.bgClass, e3.textClass = r3.textClass, Nn(t4, e3)) : n3 && (e3.text.className = n3); + } + function Nn(t4, e3) { + An(t4, e3), e3.line.wrapClass ? Mn(e3).className = e3.line.wrapClass : e3.node != e3.text && (e3.node.className = ""); + var n3 = e3.textClass ? e3.textClass + " " + (e3.line.textClass || "") : e3.line.textClass; + e3.text.className = n3 || ""; + } + function Zn(t4, e3, n3, r3) { + if (e3.gutter && (e3.node.removeChild(e3.gutter), e3.gutter = null), e3.gutterBackground && (e3.node.removeChild(e3.gutterBackground), e3.gutterBackground = null), e3.line.gutterClass) { + var i2 = Mn(e3); + e3.gutterBackground = E("div", null, "CodeMirror-gutter-background " + e3.line.gutterClass, "left: " + (t4.options.fixedGutter ? r3.fixedPos : -r3.gutterTotalWidth) + "px; width: " + r3.gutterTotalWidth + "px"), t4.display.input.setUneditable(e3.gutterBackground), i2.insertBefore(e3.gutterBackground, e3.text); + } + var o2 = e3.line.gutterMarkers; + if (t4.options.lineNumbers || o2) { + var s2 = Mn(e3), a2 = e3.gutter = E("div", null, "CodeMirror-gutter-wrapper", "left: " + (t4.options.fixedGutter ? r3.fixedPos : -r3.gutterTotalWidth) + "px"); + if (a2.setAttribute("aria-hidden", "true"), t4.display.input.setUneditable(a2), s2.insertBefore(a2, e3.text), e3.line.gutterClass && (a2.className += " " + e3.line.gutterClass), !t4.options.lineNumbers || o2 && o2["CodeMirror-linenumbers"] || (e3.lineNumber = a2.appendChild(E("div", ie(t4.options, n3), "CodeMirror-linenumber CodeMirror-gutter-elt", "left: " + r3.gutterLeft["CodeMirror-linenumbers"] + "px; width: " + t4.display.lineNumInnerWidth + "px"))), o2) + for (var l2 = 0; l2 < t4.display.gutterSpecs.length; ++l2) { + var c2 = t4.display.gutterSpecs[l2].className, u2 = o2.hasOwnProperty(c2) && o2[c2]; + u2 && a2.appendChild(E("div", [u2], "CodeMirror-gutter-elt", "left: " + r3.gutterLeft[c2] + "px; width: " + r3.gutterWidth[c2] + "px")); + } + } + } + function In(t4, e3, n3) { + e3.alignable && (e3.alignable = null); + for (var r3 = k("CodeMirror-linewidget"), i2 = e3.node.firstChild, o2 = void 0; i2; i2 = o2) + o2 = i2.nextSibling, r3.test(i2.className) && e3.node.removeChild(i2); + Vn(t4, e3, n3); + } + function Fn(t4, e3, n3, r3) { + var i2 = Ln(t4, e3); + return e3.text = e3.node = i2.pre, i2.bgClass && (e3.bgClass = i2.bgClass), i2.textClass && (e3.textClass = i2.textClass), Nn(t4, e3), Zn(t4, e3, n3, r3), Vn(t4, e3, r3), e3.node; + } + function Vn(t4, e3, n3) { + if (Hn(t4, e3.line, e3, n3, true), e3.rest) + for (var r3 = 0; r3 < e3.rest.length; r3++) + Hn(t4, e3.rest[r3], e3, n3, false); + } + function Hn(t4, e3, n3, r3, i2) { + if (e3.widgets) + for (var o2 = Mn(n3), s2 = 0, a2 = e3.widgets; s2 < a2.length; ++s2) { + var l2 = a2[s2], c2 = E("div", [l2.node], "CodeMirror-linewidget" + (l2.className ? " " + l2.className : "")); + l2.handleMouseEvents || c2.setAttribute("cm-ignore-events", "true"), Bn(l2, c2, n3, r3), t4.display.input.setUneditable(c2), i2 && l2.above ? o2.insertBefore(c2, n3.gutter || n3.text) : o2.appendChild(c2), En(l2, "redraw"); + } + } + function Bn(t4, e3, n3, r3) { + if (t4.noHScroll) { + (n3.alignable || (n3.alignable = [])).push(e3); + var i2 = r3.wrapperWidth; + e3.style.left = r3.fixedPos + "px", t4.coverGutter || (i2 -= r3.gutterTotalWidth, e3.style.paddingLeft = r3.gutterTotalWidth + "px"), e3.style.width = i2 + "px"; + } + t4.coverGutter && (e3.style.zIndex = 5, e3.style.position = "relative", t4.noHScroll || (e3.style.marginLeft = -r3.gutterTotalWidth + "px")); + } + function zn(t4) { + if (t4.height != null) + return t4.height; + var e3 = t4.doc.cm; + if (!e3) + return 0; + if (!D(document.body, t4.node)) { + var n3 = "position: relative;"; + t4.coverGutter && (n3 += "margin-left: -" + e3.display.gutters.offsetWidth + "px;"), t4.noHScroll && (n3 += "width: " + e3.display.wrapper.clientWidth + "px;"), T(e3.display.measure, E("div", [t4.node], null, n3)); + } + return t4.height = t4.node.parentNode.offsetHeight; + } + function Un(t4, e3) { + for (var n3 = Pt(e3); n3 != t4.wrapper; n3 = n3.parentNode) + if (!n3 || n3.nodeType == 1 && n3.getAttribute("cm-ignore-events") == "true" || n3.parentNode == t4.sizer && n3 != t4.mover) + return true; + } + function Wn(t4) { + return t4.lineSpace.offsetTop; + } + function $n(t4) { + return t4.mover.offsetHeight - t4.lineSpace.offsetHeight; + } + function qn(t4) { + if (t4.cachedPaddingH) + return t4.cachedPaddingH; + var e3 = T(t4.measure, E("pre", "x", "CodeMirror-line-like")), n3 = window.getComputedStyle ? window.getComputedStyle(e3) : e3.currentStyle, r3 = { left: parseInt(n3.paddingLeft), right: parseInt(n3.paddingRight) }; + return isNaN(r3.left) || isNaN(r3.right) || (t4.cachedPaddingH = r3), r3; + } + function Gn(t4) { + return H - t4.display.nativeBarWidth; + } + function Kn(t4) { + return t4.display.scroller.clientWidth - Gn(t4) - t4.display.barWidth; + } + function Yn(t4) { + return t4.display.scroller.clientHeight - Gn(t4) - t4.display.barHeight; + } + function Jn(t4, e3, n3) { + var r3 = t4.options.lineWrapping, i2 = r3 && Kn(t4); + if (!e3.measure.heights || r3 && e3.measure.width != i2) { + var o2 = e3.measure.heights = []; + if (r3) { + e3.measure.width = i2; + for (var s2 = e3.text.firstChild.getClientRects(), a2 = 0; a2 < s2.length - 1; a2++) { + var l2 = s2[a2], c2 = s2[a2 + 1]; + Math.abs(l2.bottom - c2.bottom) > 2 && o2.push((l2.bottom + c2.top) / 2 - n3.top); + } + } + o2.push(n3.bottom - n3.top); + } + } + function Xn(t4, e3, n3) { + if (t4.line == e3) + return { map: t4.measure.map, cache: t4.measure.cache }; + for (var r3 = 0; r3 < t4.rest.length; r3++) + if (t4.rest[r3] == e3) + return { map: t4.measure.maps[r3], cache: t4.measure.caches[r3] }; + for (var i2 = 0; i2 < t4.rest.length; i2++) + if (ee(t4.rest[i2]) > n3) + return { map: t4.measure.maps[i2], cache: t4.measure.caches[i2], before: true }; + } + function Qn(t4, e3) { + var n3 = ee(e3 = Xe(e3)), r3 = t4.display.externalMeasured = new On(t4.doc, e3, n3); + r3.lineN = n3; + var i2 = r3.built = gn(t4, r3); + return r3.text = i2.pre, T(t4.display.lineMeasure, i2.pre), r3; + } + function tr(t4, e3, n3, r3) { + return rr(t4, nr(t4, e3), n3, r3); + } + function er(t4, e3) { + if (e3 >= t4.display.viewFrom && e3 < t4.display.viewTo) + return t4.display.view[Nr(t4, e3)]; + var n3 = t4.display.externalMeasured; + return n3 && e3 >= n3.lineN && e3 < n3.lineN + n3.size ? n3 : void 0; + } + function nr(t4, e3) { + var n3 = ee(e3), r3 = er(t4, n3); + r3 && !r3.text ? r3 = null : r3 && r3.changes && (Dn(t4, r3, n3, Dr(t4)), t4.curOp.forceUpdate = true), r3 || (r3 = Qn(t4, e3)); + var i2 = Xn(r3, e3, n3); + return { line: e3, view: r3, rect: null, map: i2.map, cache: i2.cache, before: i2.before, hasHeights: false }; + } + function rr(t4, e3, n3, r3, i2) { + e3.before && (n3 = -1); + var o2, s2 = n3 + (r3 || ""); + return e3.cache.hasOwnProperty(s2) ? o2 = e3.cache[s2] : (e3.rect || (e3.rect = e3.view.text.getBoundingClientRect()), e3.hasHeights || (Jn(t4, e3.view, e3.rect), e3.hasHeights = true), (o2 = lr(t4, e3, n3, r3)).bogus || (e3.cache[s2] = o2)), { left: o2.left, right: o2.right, top: i2 ? o2.rtop : o2.top, bottom: i2 ? o2.rbottom : o2.bottom }; + } + var ir, or = { left: 0, right: 0, top: 0, bottom: 0 }; + function sr(t4, e3, n3) { + for (var r3, i2, o2, s2, a2, l2, c2 = 0; c2 < t4.length; c2 += 3) + if (a2 = t4[c2], l2 = t4[c2 + 1], e3 < a2 ? (i2 = 0, o2 = 1, s2 = "left") : e3 < l2 ? o2 = 1 + (i2 = e3 - a2) : (c2 == t4.length - 3 || e3 == l2 && t4[c2 + 3] > e3) && (i2 = (o2 = l2 - a2) - 1, e3 >= l2 && (s2 = "right")), i2 != null) { + if (r3 = t4[c2 + 2], a2 == l2 && n3 == (r3.insertLeft ? "left" : "right") && (s2 = n3), n3 == "left" && i2 == 0) + for (; c2 && t4[c2 - 2] == t4[c2 - 3] && t4[c2 - 1].insertLeft; ) + r3 = t4[2 + (c2 -= 3)], s2 = "left"; + if (n3 == "right" && i2 == l2 - a2) + for (; c2 < t4.length - 3 && t4[c2 + 3] == t4[c2 + 4] && !t4[c2 + 5].insertLeft; ) + r3 = t4[(c2 += 3) + 2], s2 = "right"; + break; + } + return { node: r3, start: i2, end: o2, collapse: s2, coverStart: a2, coverEnd: l2 }; + } + function ar(t4, e3) { + var n3 = or; + if (e3 == "left") + for (var r3 = 0; r3 < t4.length && (n3 = t4[r3]).left == n3.right; r3++) + ; + else + for (var i2 = t4.length - 1; i2 >= 0 && (n3 = t4[i2]).left == n3.right; i2--) + ; + return n3; + } + function lr(t4, e3, n3, r3) { + var i2, o2 = sr(e3.map, n3, r3), l2 = o2.node, c2 = o2.start, u2 = o2.end, h2 = o2.collapse; + if (l2.nodeType == 3) { + for (var f2 = 0; f2 < 4; f2++) { + for (; c2 && ot(e3.line.text.charAt(o2.coverStart + c2)); ) + --c2; + for (; o2.coverStart + u2 < o2.coverEnd && ot(e3.line.text.charAt(o2.coverStart + u2)); ) + ++u2; + if ((i2 = s && a < 9 && c2 == 0 && u2 == o2.coverEnd - o2.coverStart ? l2.parentNode.getBoundingClientRect() : ar(S(l2, c2, u2).getClientRects(), r3)).left || i2.right || c2 == 0) + break; + u2 = c2, c2 -= 1, h2 = "right"; + } + s && a < 11 && (i2 = cr(t4.display.measure, i2)); + } else { + var d2; + c2 > 0 && (h2 = r3 = "right"), i2 = t4.options.lineWrapping && (d2 = l2.getClientRects()).length > 1 ? d2[r3 == "right" ? d2.length - 1 : 0] : l2.getBoundingClientRect(); + } + if (s && a < 9 && !c2 && (!i2 || !i2.left && !i2.right)) { + var p2 = l2.parentNode.getClientRects()[0]; + i2 = p2 ? { left: p2.left, right: p2.left + jr(t4.display), top: p2.top, bottom: p2.bottom } : or; + } + for (var g2 = i2.top - e3.rect.top, v2 = i2.bottom - e3.rect.top, m2 = (g2 + v2) / 2, y2 = e3.view.measure.heights, b2 = 0; b2 < y2.length - 1 && !(m2 < y2[b2]); b2++) + ; + var w2 = b2 ? y2[b2 - 1] : 0, x2 = y2[b2], O2 = { left: (h2 == "right" ? i2.right : i2.left) - e3.rect.left, right: (h2 == "left" ? i2.left : i2.right) - e3.rect.left, top: w2, bottom: x2 }; + return i2.left || i2.right || (O2.bogus = true), t4.options.singleCursorHeightPerLine || (O2.rtop = g2, O2.rbottom = v2), O2; + } + function cr(t4, e3) { + if (!window.screen || screen.logicalXDPI == null || screen.logicalXDPI == screen.deviceXDPI || !It(t4)) + return e3; + var n3 = screen.logicalXDPI / screen.deviceXDPI, r3 = screen.logicalYDPI / screen.deviceYDPI; + return { left: e3.left * n3, right: e3.right * n3, top: e3.top * r3, bottom: e3.bottom * r3 }; + } + function ur(t4) { + if (t4.measure && (t4.measure.cache = {}, t4.measure.heights = null, t4.rest)) + for (var e3 = 0; e3 < t4.rest.length; e3++) + t4.measure.caches[e3] = {}; + } + function hr(t4) { + t4.display.externalMeasure = null, _(t4.display.lineMeasure); + for (var e3 = 0; e3 < t4.display.view.length; e3++) + ur(t4.display.view[e3]); + } + function fr(t4) { + hr(t4), t4.display.cachedCharWidth = t4.display.cachedTextHeight = t4.display.cachedPaddingH = null, t4.options.lineWrapping || (t4.display.maxLineChanged = true), t4.display.lineNumChars = null; + } + function dr() { + return u && v ? -(document.body.getBoundingClientRect().left - parseInt(getComputedStyle(document.body).marginLeft)) : window.pageXOffset || (document.documentElement || document.body).scrollLeft; + } + function pr() { + return u && v ? -(document.body.getBoundingClientRect().top - parseInt(getComputedStyle(document.body).marginTop)) : window.pageYOffset || (document.documentElement || document.body).scrollTop; + } + function gr(t4) { + var e3 = 0; + if (t4.widgets) + for (var n3 = 0; n3 < t4.widgets.length; ++n3) + t4.widgets[n3].above && (e3 += zn(t4.widgets[n3])); + return e3; + } + function vr(t4, e3, n3, r3, i2) { + if (!i2) { + var o2 = gr(e3); + n3.top += o2, n3.bottom += o2; + } + if (r3 == "line") + return n3; + r3 || (r3 = "local"); + var s2 = sn(e3); + if (r3 == "local" ? s2 += Wn(t4.display) : s2 -= t4.display.viewOffset, r3 == "page" || r3 == "window") { + var a2 = t4.display.lineSpace.getBoundingClientRect(); + s2 += a2.top + (r3 == "window" ? 0 : pr()); + var l2 = a2.left + (r3 == "window" ? 0 : dr()); + n3.left += l2, n3.right += l2; + } + return n3.top += s2, n3.bottom += s2, n3; + } + function mr(t4, e3, n3) { + if (n3 == "div") + return e3; + var r3 = e3.left, i2 = e3.top; + if (n3 == "page") + r3 -= dr(), i2 -= pr(); + else if (n3 == "local" || !n3) { + var o2 = t4.display.sizer.getBoundingClientRect(); + r3 += o2.left, i2 += o2.top; + } + var s2 = t4.display.lineSpace.getBoundingClientRect(); + return { left: r3 - s2.left, top: i2 - s2.top }; + } + function yr(t4, e3, n3, r3, i2) { + return r3 || (r3 = Jt(t4.doc, e3.line)), vr(t4, r3, tr(t4, r3, e3.ch, i2), n3); + } + function br(t4, e3, n3, r3, i2, o2) { + function s2(e4, s3) { + var a3 = rr(t4, i2, e4, s3 ? "right" : "left", o2); + return s3 ? a3.left = a3.right : a3.right = a3.left, vr(t4, r3, a3, n3); + } + r3 = r3 || Jt(t4.doc, e3.line), i2 || (i2 = nr(t4, r3)); + var a2 = ft(r3, t4.doc.direction), l2 = e3.ch, c2 = e3.sticky; + if (l2 >= r3.text.length ? (l2 = r3.text.length, c2 = "before") : l2 <= 0 && (l2 = 0, c2 = "after"), !a2) + return s2(c2 == "before" ? l2 - 1 : l2, c2 == "before"); + function u2(t5, e4, n4) { + return s2(n4 ? t5 - 1 : t5, a2[e4].level == 1 != n4); + } + var h2 = ut(a2, l2, c2), f2 = ct, d2 = u2(l2, h2, c2 == "before"); + return f2 != null && (d2.other = u2(l2, f2, c2 != "before")), d2; + } + function wr(t4, e3) { + var n3 = 0; + e3 = fe(t4.doc, e3), t4.options.lineWrapping || (n3 = jr(t4.display) * e3.ch); + var r3 = Jt(t4.doc, e3.line), i2 = sn(r3) + Wn(t4.display); + return { left: n3, right: n3, top: i2, bottom: i2 + r3.height }; + } + function xr(t4, e3, n3, r3, i2) { + var o2 = oe(t4, e3, n3); + return o2.xRel = i2, r3 && (o2.outside = r3), o2; + } + function Or(t4, e3, n3) { + var r3 = t4.doc; + if ((n3 += t4.display.viewOffset) < 0) + return xr(r3.first, 0, null, -1, -1); + var i2 = ne(r3, n3), o2 = r3.first + r3.size - 1; + if (i2 > o2) + return xr(r3.first + r3.size - 1, Jt(r3, o2).text.length, null, 1, 1); + e3 < 0 && (e3 = 0); + for (var s2 = Jt(r3, i2); ; ) { + var a2 = Pr(t4, s2, i2, e3, n3), l2 = Ye(s2, a2.ch + (a2.xRel > 0 || a2.outside > 0 ? 1 : 0)); + if (!l2) + return a2; + var c2 = l2.find(1); + if (c2.line == i2) + return c2; + s2 = Jt(r3, i2 = c2.line); + } + } + function Cr(t4, e3, n3, r3) { + r3 -= gr(e3); + var i2 = e3.text.length, o2 = at(function(e4) { + return rr(t4, n3, e4 - 1).bottom <= r3; + }, i2, 0); + return { begin: o2, end: i2 = at(function(e4) { + return rr(t4, n3, e4).top > r3; + }, o2, i2) }; + } + function kr(t4, e3, n3, r3) { + return n3 || (n3 = nr(t4, e3)), Cr(t4, e3, n3, vr(t4, e3, rr(t4, n3, r3), "line").top); + } + function Sr(t4, e3, n3, r3) { + return !(t4.bottom <= n3) && (t4.top > n3 || (r3 ? t4.left : t4.right) > e3); + } + function Pr(t4, e3, n3, r3, i2) { + i2 -= sn(e3); + var o2 = nr(t4, e3), s2 = gr(e3), a2 = 0, l2 = e3.text.length, c2 = true, u2 = ft(e3, t4.doc.direction); + if (u2) { + var h2 = (t4.options.lineWrapping ? Tr : _r)(t4, e3, n3, o2, u2, r3, i2); + a2 = (c2 = h2.level != 1) ? h2.from : h2.to - 1, l2 = c2 ? h2.to : h2.from - 1; + } + var f2, d2, p2 = null, g2 = null, v2 = at(function(e4) { + var n4 = rr(t4, o2, e4); + return n4.top += s2, n4.bottom += s2, !!Sr(n4, r3, i2, false) && (n4.top <= i2 && n4.left <= r3 && (p2 = e4, g2 = n4), true); + }, a2, l2), m2 = false; + if (g2) { + var y2 = r3 - g2.left < g2.right - r3, b2 = y2 == c2; + v2 = p2 + (b2 ? 0 : 1), d2 = b2 ? "after" : "before", f2 = y2 ? g2.left : g2.right; + } else { + c2 || v2 != l2 && v2 != a2 || v2++, d2 = v2 == 0 ? "after" : v2 == e3.text.length ? "before" : rr(t4, o2, v2 - (c2 ? 1 : 0)).bottom + s2 <= i2 == c2 ? "after" : "before"; + var w2 = br(t4, oe(n3, v2, d2), "line", e3, o2); + f2 = w2.left, m2 = i2 < w2.top ? -1 : i2 >= w2.bottom ? 1 : 0; + } + return xr(n3, v2 = st(e3.text, v2, 1), d2, m2, r3 - f2); + } + function _r(t4, e3, n3, r3, i2, o2, s2) { + var a2 = at(function(a3) { + var l3 = i2[a3], c3 = l3.level != 1; + return Sr(br(t4, oe(n3, c3 ? l3.to : l3.from, c3 ? "before" : "after"), "line", e3, r3), o2, s2, true); + }, 0, i2.length - 1), l2 = i2[a2]; + if (a2 > 0) { + var c2 = l2.level != 1, u2 = br(t4, oe(n3, c2 ? l2.from : l2.to, c2 ? "after" : "before"), "line", e3, r3); + Sr(u2, o2, s2, true) && u2.top > s2 && (l2 = i2[a2 - 1]); + } + return l2; + } + function Tr(t4, e3, n3, r3, i2, o2, s2) { + var a2 = Cr(t4, e3, r3, s2), l2 = a2.begin, c2 = a2.end; + /\s/.test(e3.text.charAt(c2 - 1)) && c2--; + for (var u2 = null, h2 = null, f2 = 0; f2 < i2.length; f2++) { + var d2 = i2[f2]; + if (!(d2.from >= c2 || d2.to <= l2)) { + var p2 = rr(t4, r3, d2.level != 1 ? Math.min(c2, d2.to) - 1 : Math.max(l2, d2.from)).right, g2 = p2 < o2 ? o2 - p2 + 1e9 : p2 - o2; + (!u2 || h2 > g2) && (u2 = d2, h2 = g2); + } + } + return u2 || (u2 = i2[i2.length - 1]), u2.from < l2 && (u2 = { from: l2, to: u2.to, level: u2.level }), u2.to > c2 && (u2 = { from: u2.from, to: c2, level: u2.level }), u2; + } + function Er(t4) { + if (t4.cachedTextHeight != null) + return t4.cachedTextHeight; + if (ir == null) { + ir = E("pre", null, "CodeMirror-line-like"); + for (var e3 = 0; e3 < 49; ++e3) + ir.appendChild(document.createTextNode("x")), ir.appendChild(E("br")); + ir.appendChild(document.createTextNode("x")); + } + T(t4.measure, ir); + var n3 = ir.offsetHeight / 50; + return n3 > 3 && (t4.cachedTextHeight = n3), _(t4.measure), n3 || 1; + } + function jr(t4) { + if (t4.cachedCharWidth != null) + return t4.cachedCharWidth; + var e3 = E("span", "xxxxxxxxxx"), n3 = E("pre", [e3], "CodeMirror-line-like"); + T(t4.measure, n3); + var r3 = e3.getBoundingClientRect(), i2 = (r3.right - r3.left) / 10; + return i2 > 2 && (t4.cachedCharWidth = i2), i2 || 10; + } + function Dr(t4) { + for (var e3 = t4.display, n3 = {}, r3 = {}, i2 = e3.gutters.clientLeft, o2 = e3.gutters.firstChild, s2 = 0; o2; o2 = o2.nextSibling, ++s2) { + var a2 = t4.display.gutterSpecs[s2].className; + n3[a2] = o2.offsetLeft + o2.clientLeft + i2, r3[a2] = o2.clientWidth; + } + return { fixedPos: Mr(e3), gutterTotalWidth: e3.gutters.offsetWidth, gutterLeft: n3, gutterWidth: r3, wrapperWidth: e3.wrapper.clientWidth }; + } + function Mr(t4) { + return t4.scroller.getBoundingClientRect().left - t4.sizer.getBoundingClientRect().left; + } + function Ar(t4) { + var e3 = Er(t4.display), n3 = t4.options.lineWrapping, r3 = n3 && Math.max(5, t4.display.scroller.clientWidth / jr(t4.display) - 3); + return function(i2) { + if (rn(t4.doc, i2)) + return 0; + var o2 = 0; + if (i2.widgets) + for (var s2 = 0; s2 < i2.widgets.length; s2++) + i2.widgets[s2].height && (o2 += i2.widgets[s2].height); + return n3 ? o2 + (Math.ceil(i2.text.length / r3) || 1) * e3 : o2 + e3; + }; + } + function Lr(t4) { + var e3 = t4.doc, n3 = Ar(t4); + e3.iter(function(t5) { + var e4 = n3(t5); + e4 != t5.height && te(t5, e4); + }); + } + function Rr(t4, e3, n3, r3) { + var i2 = t4.display; + if (!n3 && Pt(e3).getAttribute("cm-not-content") == "true") + return null; + var o2, s2, a2 = i2.lineSpace.getBoundingClientRect(); + try { + o2 = e3.clientX - a2.left, s2 = e3.clientY - a2.top; + } catch (t5) { + return null; + } + var l2, c2 = Or(t4, o2, s2); + if (r3 && c2.xRel > 0 && (l2 = Jt(t4.doc, c2.line).text).length == c2.ch) { + var u2 = I(l2, l2.length, t4.options.tabSize) - l2.length; + c2 = oe(c2.line, Math.max(0, Math.round((o2 - qn(t4.display).left) / jr(t4.display)) - u2)); + } + return c2; + } + function Nr(t4, e3) { + if (e3 >= t4.display.viewTo) + return null; + if ((e3 -= t4.display.viewFrom) < 0) + return null; + for (var n3 = t4.display.view, r3 = 0; r3 < n3.length; r3++) + if ((e3 -= n3[r3].size) < 0) + return r3; + } + function Zr(t4, e3, n3, r3) { + e3 == null && (e3 = t4.doc.first), n3 == null && (n3 = t4.doc.first + t4.doc.size), r3 || (r3 = 0); + var i2 = t4.display; + if (r3 && n3 < i2.viewTo && (i2.updateLineNumbers == null || i2.updateLineNumbers > e3) && (i2.updateLineNumbers = e3), t4.curOp.viewChanged = true, e3 >= i2.viewTo) + je && en(t4.doc, e3) < i2.viewTo && Fr(t4); + else if (n3 <= i2.viewFrom) + je && nn(t4.doc, n3 + r3) > i2.viewFrom ? Fr(t4) : (i2.viewFrom += r3, i2.viewTo += r3); + else if (e3 <= i2.viewFrom && n3 >= i2.viewTo) + Fr(t4); + else if (e3 <= i2.viewFrom) { + var o2 = Vr(t4, n3, n3 + r3, 1); + o2 ? (i2.view = i2.view.slice(o2.index), i2.viewFrom = o2.lineN, i2.viewTo += r3) : Fr(t4); + } else if (n3 >= i2.viewTo) { + var s2 = Vr(t4, e3, e3, -1); + s2 ? (i2.view = i2.view.slice(0, s2.index), i2.viewTo = s2.lineN) : Fr(t4); + } else { + var a2 = Vr(t4, e3, e3, -1), l2 = Vr(t4, n3, n3 + r3, 1); + a2 && l2 ? (i2.view = i2.view.slice(0, a2.index).concat(Cn(t4, a2.lineN, l2.lineN)).concat(i2.view.slice(l2.index)), i2.viewTo += r3) : Fr(t4); + } + var c2 = i2.externalMeasured; + c2 && (n3 < c2.lineN ? c2.lineN += r3 : e3 < c2.lineN + c2.size && (i2.externalMeasured = null)); + } + function Ir(t4, e3, n3) { + t4.curOp.viewChanged = true; + var r3 = t4.display, i2 = t4.display.externalMeasured; + if (i2 && e3 >= i2.lineN && e3 < i2.lineN + i2.size && (r3.externalMeasured = null), !(e3 < r3.viewFrom || e3 >= r3.viewTo)) { + var o2 = r3.view[Nr(t4, e3)]; + if (o2.node != null) { + var s2 = o2.changes || (o2.changes = []); + V(s2, n3) == -1 && s2.push(n3); + } + } + } + function Fr(t4) { + t4.display.viewFrom = t4.display.viewTo = t4.doc.first, t4.display.view = [], t4.display.viewOffset = 0; + } + function Vr(t4, e3, n3, r3) { + var i2, o2 = Nr(t4, e3), s2 = t4.display.view; + if (!je || n3 == t4.doc.first + t4.doc.size) + return { index: o2, lineN: n3 }; + for (var a2 = t4.display.viewFrom, l2 = 0; l2 < o2; l2++) + a2 += s2[l2].size; + if (a2 != e3) { + if (r3 > 0) { + if (o2 == s2.length - 1) + return null; + i2 = a2 + s2[o2].size - e3, o2++; + } else + i2 = a2 - e3; + e3 += i2, n3 += i2; + } + for (; en(t4.doc, n3) != n3; ) { + if (o2 == (r3 < 0 ? 0 : s2.length - 1)) + return null; + n3 += r3 * s2[o2 - (r3 < 0 ? 1 : 0)].size, o2 += r3; + } + return { index: o2, lineN: n3 }; + } + function Hr(t4, e3, n3) { + var r3 = t4.display; + r3.view.length == 0 || e3 >= r3.viewTo || n3 <= r3.viewFrom ? (r3.view = Cn(t4, e3, n3), r3.viewFrom = e3) : (r3.viewFrom > e3 ? r3.view = Cn(t4, e3, r3.viewFrom).concat(r3.view) : r3.viewFrom < e3 && (r3.view = r3.view.slice(Nr(t4, e3))), r3.viewFrom = e3, r3.viewTo < n3 ? r3.view = r3.view.concat(Cn(t4, r3.viewTo, n3)) : r3.viewTo > n3 && (r3.view = r3.view.slice(0, Nr(t4, n3)))), r3.viewTo = n3; + } + function Br(t4) { + for (var e3 = t4.display.view, n3 = 0, r3 = 0; r3 < e3.length; r3++) { + var i2 = e3[r3]; + i2.hidden || i2.node && !i2.changes || ++n3; + } + return n3; + } + function zr(t4) { + t4.display.input.showSelection(t4.display.input.prepareSelection()); + } + function Ur(t4, e3) { + e3 === void 0 && (e3 = true); + for (var n3 = t4.doc, r3 = {}, i2 = r3.cursors = document.createDocumentFragment(), o2 = r3.selection = document.createDocumentFragment(), s2 = 0; s2 < n3.sel.ranges.length; s2++) + if (e3 || s2 != n3.sel.primIndex) { + var a2 = n3.sel.ranges[s2]; + if (!(a2.from().line >= t4.display.viewTo || a2.to().line < t4.display.viewFrom)) { + var l2 = a2.empty(); + (l2 || t4.options.showCursorWhenSelecting) && Wr(t4, a2.head, i2), l2 || qr(t4, a2, o2); + } + } + return r3; + } + function Wr(t4, e3, n3) { + var r3 = br(t4, e3, "div", null, null, !t4.options.singleCursorHeightPerLine), i2 = n3.appendChild(E("div", "\xA0", "CodeMirror-cursor")); + if (i2.style.left = r3.left + "px", i2.style.top = r3.top + "px", i2.style.height = Math.max(0, r3.bottom - r3.top) * t4.options.cursorHeight + "px", /\bcm-fat-cursor\b/.test(t4.getWrapperElement().className)) { + var o2 = yr(t4, e3, "div", null, null); + o2.right - o2.left > 0 && (i2.style.width = o2.right - o2.left + "px"); + } + if (r3.other) { + var s2 = n3.appendChild(E("div", "\xA0", "CodeMirror-cursor CodeMirror-secondarycursor")); + s2.style.display = "", s2.style.left = r3.other.left + "px", s2.style.top = r3.other.top + "px", s2.style.height = 0.85 * (r3.other.bottom - r3.other.top) + "px"; + } + } + function $r(t4, e3) { + return t4.top - e3.top || t4.left - e3.left; + } + function qr(t4, e3, n3) { + var r3 = t4.display, i2 = t4.doc, o2 = document.createDocumentFragment(), s2 = qn(t4.display), a2 = s2.left, l2 = Math.max(r3.sizerWidth, Kn(t4) - r3.sizer.offsetLeft) - s2.right, c2 = i2.direction == "ltr"; + function u2(t5, e4, n4, r4) { + e4 < 0 && (e4 = 0), e4 = Math.round(e4), r4 = Math.round(r4), o2.appendChild(E("div", null, "CodeMirror-selected", "position: absolute; left: " + t5 + "px;\n top: " + e4 + "px; width: " + (n4 == null ? l2 - t5 : n4) + "px;\n height: " + (r4 - e4) + "px")); + } + function h2(e4, n4, r4) { + var o3, s3, h3 = Jt(i2, e4), f3 = h3.text.length; + function d3(n5, r5) { + return yr(t4, oe(e4, n5), "div", h3, r5); + } + function p3(e5, n5, r5) { + var i3 = kr(t4, h3, null, e5), o4 = n5 == "ltr" == (r5 == "after") ? "left" : "right"; + return d3(r5 == "after" ? i3.begin : i3.end - (/\s/.test(h3.text.charAt(i3.end - 1)) ? 2 : 1), o4)[o4]; + } + var g3 = ft(h3, i2.direction); + return lt(g3, n4 || 0, r4 == null ? f3 : r4, function(t5, e5, i3, h4) { + var v3 = i3 == "ltr", m3 = d3(t5, v3 ? "left" : "right"), y3 = d3(e5 - 1, v3 ? "right" : "left"), b2 = n4 == null && t5 == 0, w2 = r4 == null && e5 == f3, x2 = h4 == 0, O2 = !g3 || h4 == g3.length - 1; + if (y3.top - m3.top <= 3) { + var C2 = (c2 ? w2 : b2) && O2, k2 = (c2 ? b2 : w2) && x2 ? a2 : (v3 ? m3 : y3).left, S2 = C2 ? l2 : (v3 ? y3 : m3).right; + u2(k2, m3.top, S2 - k2, m3.bottom); + } else { + var P2, _2, T2, E2; + v3 ? (P2 = c2 && b2 && x2 ? a2 : m3.left, _2 = c2 ? l2 : p3(t5, i3, "before"), T2 = c2 ? a2 : p3(e5, i3, "after"), E2 = c2 && w2 && O2 ? l2 : y3.right) : (P2 = c2 ? p3(t5, i3, "before") : a2, _2 = !c2 && b2 && x2 ? l2 : m3.right, T2 = !c2 && w2 && O2 ? a2 : y3.left, E2 = c2 ? p3(e5, i3, "after") : l2), u2(P2, m3.top, _2 - P2, m3.bottom), m3.bottom < y3.top && u2(a2, m3.bottom, null, y3.top), u2(T2, y3.top, E2 - T2, y3.bottom); + } + (!o3 || $r(m3, o3) < 0) && (o3 = m3), $r(y3, o3) < 0 && (o3 = y3), (!s3 || $r(m3, s3) < 0) && (s3 = m3), $r(y3, s3) < 0 && (s3 = y3); + }), { start: o3, end: s3 }; + } + var f2 = e3.from(), d2 = e3.to(); + if (f2.line == d2.line) + h2(f2.line, f2.ch, d2.ch); + else { + var p2 = Jt(i2, f2.line), g2 = Jt(i2, d2.line), v2 = Xe(p2) == Xe(g2), m2 = h2(f2.line, f2.ch, v2 ? p2.text.length + 1 : null).end, y2 = h2(d2.line, v2 ? 0 : null, d2.ch).start; + v2 && (m2.top < y2.top - 2 ? (u2(m2.right, m2.top, null, m2.bottom), u2(a2, y2.top, y2.left, y2.bottom)) : u2(m2.right, m2.top, y2.left - m2.right, m2.bottom)), m2.bottom < y2.top && u2(a2, m2.bottom, null, y2.top); + } + n3.appendChild(o2); + } + function Gr(t4) { + if (t4.state.focused) { + var e3 = t4.display; + clearInterval(e3.blinker); + var n3 = true; + e3.cursorDiv.style.visibility = "", t4.options.cursorBlinkRate > 0 ? e3.blinker = setInterval(function() { + t4.hasFocus() || Xr(t4), e3.cursorDiv.style.visibility = (n3 = !n3) ? "" : "hidden"; + }, t4.options.cursorBlinkRate) : t4.options.cursorBlinkRate < 0 && (e3.cursorDiv.style.visibility = "hidden"); + } + } + function Kr(t4) { + t4.hasFocus() || (t4.display.input.focus(), t4.state.focused || Jr(t4)); + } + function Yr(t4) { + t4.state.delayingBlurEvent = true, setTimeout(function() { + t4.state.delayingBlurEvent && (t4.state.delayingBlurEvent = false, t4.state.focused && Xr(t4)); + }, 100); + } + function Jr(t4, e3) { + t4.state.delayingBlurEvent && !t4.state.draggingText && (t4.state.delayingBlurEvent = false), t4.options.readOnly != "nocursor" && (t4.state.focused || (mt(t4, "focus", t4, e3), t4.state.focused = true, A(t4.display.wrapper, "CodeMirror-focused"), t4.curOp || t4.display.selForContextMenu == t4.doc.sel || (t4.display.input.reset(), l && setTimeout(function() { + return t4.display.input.reset(true); + }, 20)), t4.display.input.receivedFocus()), Gr(t4)); + } + function Xr(t4, e3) { + t4.state.delayingBlurEvent || (t4.state.focused && (mt(t4, "blur", t4, e3), t4.state.focused = false, P(t4.display.wrapper, "CodeMirror-focused")), clearInterval(t4.display.blinker), setTimeout(function() { + t4.state.focused || (t4.display.shift = false); + }, 150)); + } + function Qr(t4) { + for (var e3 = t4.display, n3 = e3.lineDiv.offsetTop, r3 = Math.max(0, e3.scroller.getBoundingClientRect().top), i2 = e3.lineDiv.getBoundingClientRect().top, o2 = 0, l2 = 0; l2 < e3.view.length; l2++) { + var c2 = e3.view[l2], u2 = t4.options.lineWrapping, h2 = void 0, f2 = 0; + if (!c2.hidden) { + if (i2 += c2.line.height, s && a < 8) { + var d2 = c2.node.offsetTop + c2.node.offsetHeight; + h2 = d2 - n3, n3 = d2; + } else { + var p2 = c2.node.getBoundingClientRect(); + h2 = p2.bottom - p2.top, !u2 && c2.text.firstChild && (f2 = c2.text.firstChild.getBoundingClientRect().right - p2.left - 1); + } + var g2 = c2.line.height - h2; + if ((g2 > 5e-3 || g2 < -5e-3) && (i2 < r3 && (o2 -= g2), te(c2.line, h2), ti(c2.line), c2.rest)) + for (var v2 = 0; v2 < c2.rest.length; v2++) + ti(c2.rest[v2]); + if (f2 > t4.display.sizerWidth) { + var m2 = Math.ceil(f2 / jr(t4.display)); + m2 > t4.display.maxLineLength && (t4.display.maxLineLength = m2, t4.display.maxLine = c2.line, t4.display.maxLineChanged = true); + } + } + } + Math.abs(o2) > 2 && (e3.scroller.scrollTop += o2); + } + function ti(t4) { + if (t4.widgets) + for (var e3 = 0; e3 < t4.widgets.length; ++e3) { + var n3 = t4.widgets[e3], r3 = n3.node.parentNode; + r3 && (n3.height = r3.offsetHeight); + } + } + function ei(t4, e3, n3) { + var r3 = n3 && n3.top != null ? Math.max(0, n3.top) : t4.scroller.scrollTop; + r3 = Math.floor(r3 - Wn(t4)); + var i2 = n3 && n3.bottom != null ? n3.bottom : r3 + t4.wrapper.clientHeight, o2 = ne(e3, r3), s2 = ne(e3, i2); + if (n3 && n3.ensure) { + var a2 = n3.ensure.from.line, l2 = n3.ensure.to.line; + a2 < o2 ? (o2 = a2, s2 = ne(e3, sn(Jt(e3, a2)) + t4.wrapper.clientHeight)) : Math.min(l2, e3.lastLine()) >= s2 && (o2 = ne(e3, sn(Jt(e3, l2)) - t4.wrapper.clientHeight), s2 = l2); + } + return { from: o2, to: Math.max(s2, o2 + 1) }; + } + function ni(t4, e3) { + if (!yt(t4, "scrollCursorIntoView")) { + var n3 = t4.display, r3 = n3.sizer.getBoundingClientRect(), i2 = null; + if (e3.top + r3.top < 0 ? i2 = true : e3.bottom + r3.top > (window.innerHeight || document.documentElement.clientHeight) && (i2 = false), i2 != null && !p) { + var o2 = E("div", "\u200B", null, "position: absolute;\n top: " + (e3.top - n3.viewOffset - Wn(t4.display)) + "px;\n height: " + (e3.bottom - e3.top + Gn(t4) + n3.barHeight) + "px;\n left: " + e3.left + "px; width: " + Math.max(2, e3.right - e3.left) + "px;"); + t4.display.lineSpace.appendChild(o2), o2.scrollIntoView(i2), t4.display.lineSpace.removeChild(o2); + } + } + } + function ri(t4, e3, n3, r3) { + var i2; + r3 == null && (r3 = 0), t4.options.lineWrapping || e3 != n3 || (n3 = e3.sticky == "before" ? oe(e3.line, e3.ch + 1, "before") : e3, e3 = e3.ch ? oe(e3.line, e3.sticky == "before" ? e3.ch - 1 : e3.ch, "after") : e3); + for (var o2 = 0; o2 < 5; o2++) { + var s2 = false, a2 = br(t4, e3), l2 = n3 && n3 != e3 ? br(t4, n3) : a2, c2 = oi(t4, i2 = { left: Math.min(a2.left, l2.left), top: Math.min(a2.top, l2.top) - r3, right: Math.max(a2.left, l2.left), bottom: Math.max(a2.bottom, l2.bottom) + r3 }), u2 = t4.doc.scrollTop, h2 = t4.doc.scrollLeft; + if (c2.scrollTop != null && (fi(t4, c2.scrollTop), Math.abs(t4.doc.scrollTop - u2) > 1 && (s2 = true)), c2.scrollLeft != null && (pi(t4, c2.scrollLeft), Math.abs(t4.doc.scrollLeft - h2) > 1 && (s2 = true)), !s2) + break; + } + return i2; + } + function ii(t4, e3) { + var n3 = oi(t4, e3); + n3.scrollTop != null && fi(t4, n3.scrollTop), n3.scrollLeft != null && pi(t4, n3.scrollLeft); + } + function oi(t4, e3) { + var n3 = t4.display, r3 = Er(t4.display); + e3.top < 0 && (e3.top = 0); + var i2 = t4.curOp && t4.curOp.scrollTop != null ? t4.curOp.scrollTop : n3.scroller.scrollTop, o2 = Yn(t4), s2 = {}; + e3.bottom - e3.top > o2 && (e3.bottom = e3.top + o2); + var a2 = t4.doc.height + $n(n3), l2 = e3.top < r3, c2 = e3.bottom > a2 - r3; + if (e3.top < i2) + s2.scrollTop = l2 ? 0 : e3.top; + else if (e3.bottom > i2 + o2) { + var u2 = Math.min(e3.top, (c2 ? a2 : e3.bottom) - o2); + u2 != i2 && (s2.scrollTop = u2); + } + var h2 = t4.options.fixedGutter ? 0 : n3.gutters.offsetWidth, f2 = t4.curOp && t4.curOp.scrollLeft != null ? t4.curOp.scrollLeft : n3.scroller.scrollLeft - h2, d2 = Kn(t4) - n3.gutters.offsetWidth, p2 = e3.right - e3.left > d2; + return p2 && (e3.right = e3.left + d2), e3.left < 10 ? s2.scrollLeft = 0 : e3.left < f2 ? s2.scrollLeft = Math.max(0, e3.left + h2 - (p2 ? 0 : 10)) : e3.right > d2 + f2 - 3 && (s2.scrollLeft = e3.right + (p2 ? 0 : 10) - d2), s2; + } + function si(t4, e3) { + e3 != null && (ui(t4), t4.curOp.scrollTop = (t4.curOp.scrollTop == null ? t4.doc.scrollTop : t4.curOp.scrollTop) + e3); + } + function ai(t4) { + ui(t4); + var e3 = t4.getCursor(); + t4.curOp.scrollToPos = { from: e3, to: e3, margin: t4.options.cursorScrollMargin }; + } + function li(t4, e3, n3) { + e3 == null && n3 == null || ui(t4), e3 != null && (t4.curOp.scrollLeft = e3), n3 != null && (t4.curOp.scrollTop = n3); + } + function ci(t4, e3) { + ui(t4), t4.curOp.scrollToPos = e3; + } + function ui(t4) { + var e3 = t4.curOp.scrollToPos; + e3 && (t4.curOp.scrollToPos = null, hi(t4, wr(t4, e3.from), wr(t4, e3.to), e3.margin)); + } + function hi(t4, e3, n3, r3) { + var i2 = oi(t4, { left: Math.min(e3.left, n3.left), top: Math.min(e3.top, n3.top) - r3, right: Math.max(e3.right, n3.right), bottom: Math.max(e3.bottom, n3.bottom) + r3 }); + li(t4, i2.scrollLeft, i2.scrollTop); + } + function fi(t4, e3) { + Math.abs(t4.doc.scrollTop - e3) < 2 || (n2 || zi(t4, { top: e3 }), di(t4, e3, true), n2 && zi(t4), Ri(t4, 100)); + } + function di(t4, e3, n3) { + e3 = Math.max(0, Math.min(t4.display.scroller.scrollHeight - t4.display.scroller.clientHeight, e3)), (t4.display.scroller.scrollTop != e3 || n3) && (t4.doc.scrollTop = e3, t4.display.scrollbars.setScrollTop(e3), t4.display.scroller.scrollTop != e3 && (t4.display.scroller.scrollTop = e3)); + } + function pi(t4, e3, n3, r3) { + e3 = Math.max(0, Math.min(e3, t4.display.scroller.scrollWidth - t4.display.scroller.clientWidth)), (n3 ? e3 == t4.doc.scrollLeft : Math.abs(t4.doc.scrollLeft - e3) < 2) && !r3 || (t4.doc.scrollLeft = e3, qi(t4), t4.display.scroller.scrollLeft != e3 && (t4.display.scroller.scrollLeft = e3), t4.display.scrollbars.setScrollLeft(e3)); + } + function gi(t4) { + var e3 = t4.display, n3 = e3.gutters.offsetWidth, r3 = Math.round(t4.doc.height + $n(t4.display)); + return { clientHeight: e3.scroller.clientHeight, viewHeight: e3.wrapper.clientHeight, scrollWidth: e3.scroller.scrollWidth, clientWidth: e3.scroller.clientWidth, viewWidth: e3.wrapper.clientWidth, barLeft: t4.options.fixedGutter ? n3 : 0, docHeight: r3, scrollHeight: r3 + Gn(t4) + e3.barHeight, nativeBarWidth: e3.nativeBarWidth, gutterWidth: n3 }; + } + var vi = function(t4, e3, n3) { + this.cm = n3; + var r3 = this.vert = E("div", [E("div", null, null, "min-width: 1px")], "CodeMirror-vscrollbar"), i2 = this.horiz = E("div", [E("div", null, null, "height: 100%; min-height: 1px")], "CodeMirror-hscrollbar"); + r3.tabIndex = i2.tabIndex = -1, t4(r3), t4(i2), pt(r3, "scroll", function() { + r3.clientHeight && e3(r3.scrollTop, "vertical"); + }), pt(i2, "scroll", function() { + i2.clientWidth && e3(i2.scrollLeft, "horizontal"); + }), this.checkedZeroWidth = false, s && a < 8 && (this.horiz.style.minHeight = this.vert.style.minWidth = "18px"); + }; + vi.prototype.update = function(t4) { + var e3 = t4.scrollWidth > t4.clientWidth + 1, n3 = t4.scrollHeight > t4.clientHeight + 1, r3 = t4.nativeBarWidth; + if (n3) { + this.vert.style.display = "block", this.vert.style.bottom = e3 ? r3 + "px" : "0"; + var i2 = t4.viewHeight - (e3 ? r3 : 0); + this.vert.firstChild.style.height = Math.max(0, t4.scrollHeight - t4.clientHeight + i2) + "px"; + } else + this.vert.style.display = "", this.vert.firstChild.style.height = "0"; + if (e3) { + this.horiz.style.display = "block", this.horiz.style.right = n3 ? r3 + "px" : "0", this.horiz.style.left = t4.barLeft + "px"; + var o2 = t4.viewWidth - t4.barLeft - (n3 ? r3 : 0); + this.horiz.firstChild.style.width = Math.max(0, t4.scrollWidth - t4.clientWidth + o2) + "px"; + } else + this.horiz.style.display = "", this.horiz.firstChild.style.width = "0"; + return !this.checkedZeroWidth && t4.clientHeight > 0 && (r3 == 0 && this.zeroWidthHack(), this.checkedZeroWidth = true), { right: n3 ? r3 : 0, bottom: e3 ? r3 : 0 }; + }, vi.prototype.setScrollLeft = function(t4) { + this.horiz.scrollLeft != t4 && (this.horiz.scrollLeft = t4), this.disableHoriz && this.enableZeroWidthBar(this.horiz, this.disableHoriz, "horiz"); + }, vi.prototype.setScrollTop = function(t4) { + this.vert.scrollTop != t4 && (this.vert.scrollTop = t4), this.disableVert && this.enableZeroWidthBar(this.vert, this.disableVert, "vert"); + }, vi.prototype.zeroWidthHack = function() { + var t4 = y && !d ? "12px" : "18px"; + this.horiz.style.height = this.vert.style.width = t4, this.horiz.style.pointerEvents = this.vert.style.pointerEvents = "none", this.disableHoriz = new F(), this.disableVert = new F(); + }, vi.prototype.enableZeroWidthBar = function(t4, e3, n3) { + function r3() { + var i2 = t4.getBoundingClientRect(); + (n3 == "vert" ? document.elementFromPoint(i2.right - 1, (i2.top + i2.bottom) / 2) : document.elementFromPoint((i2.right + i2.left) / 2, i2.bottom - 1)) != t4 ? t4.style.pointerEvents = "none" : e3.set(1e3, r3); + } + t4.style.pointerEvents = "auto", e3.set(1e3, r3); + }, vi.prototype.clear = function() { + var t4 = this.horiz.parentNode; + t4.removeChild(this.horiz), t4.removeChild(this.vert); + }; + var mi = function() { + }; + function yi(t4, e3) { + e3 || (e3 = gi(t4)); + var n3 = t4.display.barWidth, r3 = t4.display.barHeight; + bi(t4, e3); + for (var i2 = 0; i2 < 4 && n3 != t4.display.barWidth || r3 != t4.display.barHeight; i2++) + n3 != t4.display.barWidth && t4.options.lineWrapping && Qr(t4), bi(t4, gi(t4)), n3 = t4.display.barWidth, r3 = t4.display.barHeight; + } + function bi(t4, e3) { + var n3 = t4.display, r3 = n3.scrollbars.update(e3); + n3.sizer.style.paddingRight = (n3.barWidth = r3.right) + "px", n3.sizer.style.paddingBottom = (n3.barHeight = r3.bottom) + "px", n3.heightForcer.style.borderBottom = r3.bottom + "px solid transparent", r3.right && r3.bottom ? (n3.scrollbarFiller.style.display = "block", n3.scrollbarFiller.style.height = r3.bottom + "px", n3.scrollbarFiller.style.width = r3.right + "px") : n3.scrollbarFiller.style.display = "", r3.bottom && t4.options.coverGutterNextToScrollbar && t4.options.fixedGutter ? (n3.gutterFiller.style.display = "block", n3.gutterFiller.style.height = r3.bottom + "px", n3.gutterFiller.style.width = e3.gutterWidth + "px") : n3.gutterFiller.style.display = ""; + } + mi.prototype.update = function() { + return { bottom: 0, right: 0 }; + }, mi.prototype.setScrollLeft = function() { + }, mi.prototype.setScrollTop = function() { + }, mi.prototype.clear = function() { + }; + var wi = { native: vi, null: mi }; + function xi(t4) { + t4.display.scrollbars && (t4.display.scrollbars.clear(), t4.display.scrollbars.addClass && P(t4.display.wrapper, t4.display.scrollbars.addClass)), t4.display.scrollbars = new wi[t4.options.scrollbarStyle](function(e3) { + t4.display.wrapper.insertBefore(e3, t4.display.scrollbarFiller), pt(e3, "mousedown", function() { + t4.state.focused && setTimeout(function() { + return t4.display.input.focus(); + }, 0); + }), e3.setAttribute("cm-not-content", "true"); + }, function(e3, n3) { + n3 == "horizontal" ? pi(t4, e3) : fi(t4, e3); + }, t4), t4.display.scrollbars.addClass && A(t4.display.wrapper, t4.display.scrollbars.addClass); + } + var Oi = 0; + function Ci(t4) { + t4.curOp = { cm: t4, viewChanged: false, startHeight: t4.doc.height, forceUpdate: false, updateInput: 0, typing: false, changeObjs: null, cursorActivityHandlers: null, cursorActivityCalled: 0, selectionChanged: false, updateMaxLine: false, scrollLeft: null, scrollTop: null, scrollToPos: null, focus: false, id: ++Oi, markArrays: null }, Sn(t4.curOp); + } + function ki(t4) { + var e3 = t4.curOp; + e3 && _n(e3, function(t5) { + for (var e4 = 0; e4 < t5.ops.length; e4++) + t5.ops[e4].cm.curOp = null; + Si(t5); + }); + } + function Si(t4) { + for (var e3 = t4.ops, n3 = 0; n3 < e3.length; n3++) + Pi(e3[n3]); + for (var r3 = 0; r3 < e3.length; r3++) + _i(e3[r3]); + for (var i2 = 0; i2 < e3.length; i2++) + Ti(e3[i2]); + for (var o2 = 0; o2 < e3.length; o2++) + Ei(e3[o2]); + for (var s2 = 0; s2 < e3.length; s2++) + ji(e3[s2]); + } + function Pi(t4) { + var e3 = t4.cm, n3 = e3.display; + Ii(e3), t4.updateMaxLine && ln(e3), t4.mustUpdate = t4.viewChanged || t4.forceUpdate || t4.scrollTop != null || t4.scrollToPos && (t4.scrollToPos.from.line < n3.viewFrom || t4.scrollToPos.to.line >= n3.viewTo) || n3.maxLineChanged && e3.options.lineWrapping, t4.update = t4.mustUpdate && new Zi(e3, t4.mustUpdate && { top: t4.scrollTop, ensure: t4.scrollToPos }, t4.forceUpdate); + } + function _i(t4) { + t4.updatedDisplay = t4.mustUpdate && Hi(t4.cm, t4.update); + } + function Ti(t4) { + var e3 = t4.cm, n3 = e3.display; + t4.updatedDisplay && Qr(e3), t4.barMeasure = gi(e3), n3.maxLineChanged && !e3.options.lineWrapping && (t4.adjustWidthTo = tr(e3, n3.maxLine, n3.maxLine.text.length).left + 3, e3.display.sizerWidth = t4.adjustWidthTo, t4.barMeasure.scrollWidth = Math.max(n3.scroller.clientWidth, n3.sizer.offsetLeft + t4.adjustWidthTo + Gn(e3) + e3.display.barWidth), t4.maxScrollLeft = Math.max(0, n3.sizer.offsetLeft + t4.adjustWidthTo - Kn(e3))), (t4.updatedDisplay || t4.selectionChanged) && (t4.preparedSelection = n3.input.prepareSelection()); + } + function Ei(t4) { + var e3 = t4.cm; + t4.adjustWidthTo != null && (e3.display.sizer.style.minWidth = t4.adjustWidthTo + "px", t4.maxScrollLeft < e3.doc.scrollLeft && pi(e3, Math.min(e3.display.scroller.scrollLeft, t4.maxScrollLeft), true), e3.display.maxLineChanged = false); + var n3 = t4.focus && t4.focus == M(); + t4.preparedSelection && e3.display.input.showSelection(t4.preparedSelection, n3), (t4.updatedDisplay || t4.startHeight != e3.doc.height) && yi(e3, t4.barMeasure), t4.updatedDisplay && $i(e3, t4.barMeasure), t4.selectionChanged && Gr(e3), e3.state.focused && t4.updateInput && e3.display.input.reset(t4.typing), n3 && Kr(t4.cm); + } + function ji(t4) { + var e3 = t4.cm, n3 = e3.display, r3 = e3.doc; + t4.updatedDisplay && Bi(e3, t4.update), n3.wheelStartX == null || t4.scrollTop == null && t4.scrollLeft == null && !t4.scrollToPos || (n3.wheelStartX = n3.wheelStartY = null), t4.scrollTop != null && di(e3, t4.scrollTop, t4.forceScroll), t4.scrollLeft != null && pi(e3, t4.scrollLeft, true, true), t4.scrollToPos && ni(e3, ri(e3, fe(r3, t4.scrollToPos.from), fe(r3, t4.scrollToPos.to), t4.scrollToPos.margin)); + var i2 = t4.maybeHiddenMarkers, o2 = t4.maybeUnhiddenMarkers; + if (i2) + for (var s2 = 0; s2 < i2.length; ++s2) + i2[s2].lines.length || mt(i2[s2], "hide"); + if (o2) + for (var a2 = 0; a2 < o2.length; ++a2) + o2[a2].lines.length && mt(o2[a2], "unhide"); + n3.wrapper.offsetHeight && (r3.scrollTop = e3.display.scroller.scrollTop), t4.changeObjs && mt(e3, "changes", e3, t4.changeObjs), t4.update && t4.update.finish(); + } + function Di(t4, e3) { + if (t4.curOp) + return e3(); + Ci(t4); + try { + return e3(); + } finally { + ki(t4); + } + } + function Mi(t4, e3) { + return function() { + if (t4.curOp) + return e3.apply(t4, arguments); + Ci(t4); + try { + return e3.apply(t4, arguments); + } finally { + ki(t4); + } + }; + } + function Ai(t4) { + return function() { + if (this.curOp) + return t4.apply(this, arguments); + Ci(this); + try { + return t4.apply(this, arguments); + } finally { + ki(this); + } + }; + } + function Li(t4) { + return function() { + var e3 = this.cm; + if (!e3 || e3.curOp) + return t4.apply(this, arguments); + Ci(e3); + try { + return t4.apply(this, arguments); + } finally { + ki(e3); + } + }; + } + function Ri(t4, e3) { + t4.doc.highlightFrontier < t4.display.viewTo && t4.state.highlight.set(e3, N(Ni, t4)); + } + function Ni(t4) { + var e3 = t4.doc; + if (!(e3.highlightFrontier >= t4.display.viewTo)) { + var n3 = +new Date() + t4.options.workTime, r3 = be(t4, e3.highlightFrontier), i2 = []; + e3.iter(r3.line, Math.min(e3.first + e3.size, t4.display.viewTo + 500), function(o2) { + if (r3.line >= t4.display.viewFrom) { + var s2 = o2.styles, a2 = o2.text.length > t4.options.maxHighlightLength ? qt(e3.mode, r3.state) : null, l2 = me(t4, o2, r3, true); + a2 && (r3.state = a2), o2.styles = l2.styles; + var c2 = o2.styleClasses, u2 = l2.classes; + u2 ? o2.styleClasses = u2 : c2 && (o2.styleClasses = null); + for (var h2 = !s2 || s2.length != o2.styles.length || c2 != u2 && (!c2 || !u2 || c2.bgClass != u2.bgClass || c2.textClass != u2.textClass), f2 = 0; !h2 && f2 < s2.length; ++f2) + h2 = s2[f2] != o2.styles[f2]; + h2 && i2.push(r3.line), o2.stateAfter = r3.save(), r3.nextLine(); + } else + o2.text.length <= t4.options.maxHighlightLength && we(t4, o2.text, r3), o2.stateAfter = r3.line % 5 == 0 ? r3.save() : null, r3.nextLine(); + if (+new Date() > n3) + return Ri(t4, t4.options.workDelay), true; + }), e3.highlightFrontier = r3.line, e3.modeFrontier = Math.max(e3.modeFrontier, r3.line), i2.length && Di(t4, function() { + for (var e4 = 0; e4 < i2.length; e4++) + Ir(t4, i2[e4], "text"); + }); + } + } + var Zi = function(t4, e3, n3) { + var r3 = t4.display; + this.viewport = e3, this.visible = ei(r3, t4.doc, e3), this.editorIsHidden = !r3.wrapper.offsetWidth, this.wrapperHeight = r3.wrapper.clientHeight, this.wrapperWidth = r3.wrapper.clientWidth, this.oldDisplayWidth = Kn(t4), this.force = n3, this.dims = Dr(t4), this.events = []; + }; + function Ii(t4) { + var e3 = t4.display; + !e3.scrollbarsClipped && e3.scroller.offsetWidth && (e3.nativeBarWidth = e3.scroller.offsetWidth - e3.scroller.clientWidth, e3.heightForcer.style.height = Gn(t4) + "px", e3.sizer.style.marginBottom = -e3.nativeBarWidth + "px", e3.sizer.style.borderRightWidth = Gn(t4) + "px", e3.scrollbarsClipped = true); + } + function Fi(t4) { + if (t4.hasFocus()) + return null; + var e3 = M(); + if (!e3 || !D(t4.display.lineDiv, e3)) + return null; + var n3 = { activeElt: e3 }; + if (window.getSelection) { + var r3 = window.getSelection(); + r3.anchorNode && r3.extend && D(t4.display.lineDiv, r3.anchorNode) && (n3.anchorNode = r3.anchorNode, n3.anchorOffset = r3.anchorOffset, n3.focusNode = r3.focusNode, n3.focusOffset = r3.focusOffset); + } + return n3; + } + function Vi(t4) { + if (t4 && t4.activeElt && t4.activeElt != M() && (t4.activeElt.focus(), !/^(INPUT|TEXTAREA)$/.test(t4.activeElt.nodeName) && t4.anchorNode && D(document.body, t4.anchorNode) && D(document.body, t4.focusNode))) { + var e3 = window.getSelection(), n3 = document.createRange(); + n3.setEnd(t4.anchorNode, t4.anchorOffset), n3.collapse(false), e3.removeAllRanges(), e3.addRange(n3), e3.extend(t4.focusNode, t4.focusOffset); + } + } + function Hi(t4, e3) { + var n3 = t4.display, r3 = t4.doc; + if (e3.editorIsHidden) + return Fr(t4), false; + if (!e3.force && e3.visible.from >= n3.viewFrom && e3.visible.to <= n3.viewTo && (n3.updateLineNumbers == null || n3.updateLineNumbers >= n3.viewTo) && n3.renderedView == n3.view && Br(t4) == 0) + return false; + Gi(t4) && (Fr(t4), e3.dims = Dr(t4)); + var i2 = r3.first + r3.size, o2 = Math.max(e3.visible.from - t4.options.viewportMargin, r3.first), s2 = Math.min(i2, e3.visible.to + t4.options.viewportMargin); + n3.viewFrom < o2 && o2 - n3.viewFrom < 20 && (o2 = Math.max(r3.first, n3.viewFrom)), n3.viewTo > s2 && n3.viewTo - s2 < 20 && (s2 = Math.min(i2, n3.viewTo)), je && (o2 = en(t4.doc, o2), s2 = nn(t4.doc, s2)); + var a2 = o2 != n3.viewFrom || s2 != n3.viewTo || n3.lastWrapHeight != e3.wrapperHeight || n3.lastWrapWidth != e3.wrapperWidth; + Hr(t4, o2, s2), n3.viewOffset = sn(Jt(t4.doc, n3.viewFrom)), t4.display.mover.style.top = n3.viewOffset + "px"; + var l2 = Br(t4); + if (!a2 && l2 == 0 && !e3.force && n3.renderedView == n3.view && (n3.updateLineNumbers == null || n3.updateLineNumbers >= n3.viewTo)) + return false; + var c2 = Fi(t4); + return l2 > 4 && (n3.lineDiv.style.display = "none"), Ui(t4, n3.updateLineNumbers, e3.dims), l2 > 4 && (n3.lineDiv.style.display = ""), n3.renderedView = n3.view, Vi(c2), _(n3.cursorDiv), _(n3.selectionDiv), n3.gutters.style.height = n3.sizer.style.minHeight = 0, a2 && (n3.lastWrapHeight = e3.wrapperHeight, n3.lastWrapWidth = e3.wrapperWidth, Ri(t4, 400)), n3.updateLineNumbers = null, true; + } + function Bi(t4, e3) { + for (var n3 = e3.viewport, r3 = true; ; r3 = false) { + if (r3 && t4.options.lineWrapping && e3.oldDisplayWidth != Kn(t4)) + r3 && (e3.visible = ei(t4.display, t4.doc, n3)); + else if (n3 && n3.top != null && (n3 = { top: Math.min(t4.doc.height + $n(t4.display) - Yn(t4), n3.top) }), e3.visible = ei(t4.display, t4.doc, n3), e3.visible.from >= t4.display.viewFrom && e3.visible.to <= t4.display.viewTo) + break; + if (!Hi(t4, e3)) + break; + Qr(t4); + var i2 = gi(t4); + zr(t4), yi(t4, i2), $i(t4, i2), e3.force = false; + } + e3.signal(t4, "update", t4), t4.display.viewFrom == t4.display.reportedViewFrom && t4.display.viewTo == t4.display.reportedViewTo || (e3.signal(t4, "viewportChange", t4, t4.display.viewFrom, t4.display.viewTo), t4.display.reportedViewFrom = t4.display.viewFrom, t4.display.reportedViewTo = t4.display.viewTo); + } + function zi(t4, e3) { + var n3 = new Zi(t4, e3); + if (Hi(t4, n3)) { + Qr(t4), Bi(t4, n3); + var r3 = gi(t4); + zr(t4), yi(t4, r3), $i(t4, r3), n3.finish(); + } + } + function Ui(t4, e3, n3) { + var r3 = t4.display, i2 = t4.options.lineNumbers, o2 = r3.lineDiv, s2 = o2.firstChild; + function a2(e4) { + var n4 = e4.nextSibling; + return l && y && t4.display.currentWheelTarget == e4 ? e4.style.display = "none" : e4.parentNode.removeChild(e4), n4; + } + for (var c2 = r3.view, u2 = r3.viewFrom, h2 = 0; h2 < c2.length; h2++) { + var f2 = c2[h2]; + if (f2.hidden) + ; + else if (f2.node && f2.node.parentNode == o2) { + for (; s2 != f2.node; ) + s2 = a2(s2); + var d2 = i2 && e3 != null && e3 <= u2 && f2.lineNumber; + f2.changes && (V(f2.changes, "gutter") > -1 && (d2 = false), Dn(t4, f2, u2, n3)), d2 && (_(f2.lineNumber), f2.lineNumber.appendChild(document.createTextNode(ie(t4.options, u2)))), s2 = f2.node.nextSibling; + } else { + var p2 = Fn(t4, f2, u2, n3); + o2.insertBefore(p2, s2); + } + u2 += f2.size; + } + for (; s2; ) + s2 = a2(s2); + } + function Wi(t4) { + var e3 = t4.gutters.offsetWidth; + t4.sizer.style.marginLeft = e3 + "px", En(t4, "gutterChanged", t4); + } + function $i(t4, e3) { + t4.display.sizer.style.minHeight = e3.docHeight + "px", t4.display.heightForcer.style.top = e3.docHeight + "px", t4.display.gutters.style.height = e3.docHeight + t4.display.barHeight + Gn(t4) + "px"; + } + function qi(t4) { + var e3 = t4.display, n3 = e3.view; + if (e3.alignWidgets || e3.gutters.firstChild && t4.options.fixedGutter) { + for (var r3 = Mr(e3) - e3.scroller.scrollLeft + t4.doc.scrollLeft, i2 = e3.gutters.offsetWidth, o2 = r3 + "px", s2 = 0; s2 < n3.length; s2++) + if (!n3[s2].hidden) { + t4.options.fixedGutter && (n3[s2].gutter && (n3[s2].gutter.style.left = o2), n3[s2].gutterBackground && (n3[s2].gutterBackground.style.left = o2)); + var a2 = n3[s2].alignable; + if (a2) + for (var l2 = 0; l2 < a2.length; l2++) + a2[l2].style.left = o2; + } + t4.options.fixedGutter && (e3.gutters.style.left = r3 + i2 + "px"); + } + } + function Gi(t4) { + if (!t4.options.lineNumbers) + return false; + var e3 = t4.doc, n3 = ie(t4.options, e3.first + e3.size - 1), r3 = t4.display; + if (n3.length != r3.lineNumChars) { + var i2 = r3.measure.appendChild(E("div", [E("div", n3)], "CodeMirror-linenumber CodeMirror-gutter-elt")), o2 = i2.firstChild.offsetWidth, s2 = i2.offsetWidth - o2; + return r3.lineGutter.style.width = "", r3.lineNumInnerWidth = Math.max(o2, r3.lineGutter.offsetWidth - s2) + 1, r3.lineNumWidth = r3.lineNumInnerWidth + s2, r3.lineNumChars = r3.lineNumInnerWidth ? n3.length : -1, r3.lineGutter.style.width = r3.lineNumWidth + "px", Wi(t4.display), true; + } + return false; + } + function Ki(t4, e3) { + for (var n3 = [], r3 = false, i2 = 0; i2 < t4.length; i2++) { + var o2 = t4[i2], s2 = null; + if (typeof o2 != "string" && (s2 = o2.style, o2 = o2.className), o2 == "CodeMirror-linenumbers") { + if (!e3) + continue; + r3 = true; + } + n3.push({ className: o2, style: s2 }); + } + return e3 && !r3 && n3.push({ className: "CodeMirror-linenumbers", style: null }), n3; + } + function Yi(t4) { + var e3 = t4.gutters, n3 = t4.gutterSpecs; + _(e3), t4.lineGutter = null; + for (var r3 = 0; r3 < n3.length; ++r3) { + var i2 = n3[r3], o2 = i2.className, s2 = i2.style, a2 = e3.appendChild(E("div", null, "CodeMirror-gutter " + o2)); + s2 && (a2.style.cssText = s2), o2 == "CodeMirror-linenumbers" && (t4.lineGutter = a2, a2.style.width = (t4.lineNumWidth || 1) + "px"); + } + e3.style.display = n3.length ? "" : "none", Wi(t4); + } + function Ji(t4) { + Yi(t4.display), Zr(t4), qi(t4); + } + function Xi(t4, e3, r3, i2) { + var o2 = this; + this.input = r3, o2.scrollbarFiller = E("div", null, "CodeMirror-scrollbar-filler"), o2.scrollbarFiller.setAttribute("cm-not-content", "true"), o2.gutterFiller = E("div", null, "CodeMirror-gutter-filler"), o2.gutterFiller.setAttribute("cm-not-content", "true"), o2.lineDiv = j("div", null, "CodeMirror-code"), o2.selectionDiv = E("div", null, null, "position: relative; z-index: 1"), o2.cursorDiv = E("div", null, "CodeMirror-cursors"), o2.measure = E("div", null, "CodeMirror-measure"), o2.lineMeasure = E("div", null, "CodeMirror-measure"), o2.lineSpace = j("div", [o2.measure, o2.lineMeasure, o2.selectionDiv, o2.cursorDiv, o2.lineDiv], null, "position: relative; outline: none"); + var c2 = j("div", [o2.lineSpace], "CodeMirror-lines"); + o2.mover = E("div", [c2], null, "position: relative"), o2.sizer = E("div", [o2.mover], "CodeMirror-sizer"), o2.sizerWidth = null, o2.heightForcer = E("div", null, null, "position: absolute; height: " + H + "px; width: 1px;"), o2.gutters = E("div", null, "CodeMirror-gutters"), o2.lineGutter = null, o2.scroller = E("div", [o2.sizer, o2.heightForcer, o2.gutters], "CodeMirror-scroll"), o2.scroller.setAttribute("tabIndex", "-1"), o2.wrapper = E("div", [o2.scrollbarFiller, o2.gutterFiller, o2.scroller], "CodeMirror"), o2.wrapper.setAttribute("translate", "no"), s && a < 8 && (o2.gutters.style.zIndex = -1, o2.scroller.style.paddingRight = 0), l || n2 && m || (o2.scroller.draggable = true), t4 && (t4.appendChild ? t4.appendChild(o2.wrapper) : t4(o2.wrapper)), o2.viewFrom = o2.viewTo = e3.first, o2.reportedViewFrom = o2.reportedViewTo = e3.first, o2.view = [], o2.renderedView = null, o2.externalMeasured = null, o2.viewOffset = 0, o2.lastWrapHeight = o2.lastWrapWidth = 0, o2.updateLineNumbers = null, o2.nativeBarWidth = o2.barHeight = o2.barWidth = 0, o2.scrollbarsClipped = false, o2.lineNumWidth = o2.lineNumInnerWidth = o2.lineNumChars = null, o2.alignWidgets = false, o2.cachedCharWidth = o2.cachedTextHeight = o2.cachedPaddingH = null, o2.maxLine = null, o2.maxLineLength = 0, o2.maxLineChanged = false, o2.wheelDX = o2.wheelDY = o2.wheelStartX = o2.wheelStartY = null, o2.shift = false, o2.selForContextMenu = null, o2.activeTouch = null, o2.gutterSpecs = Ki(i2.gutters, i2.lineNumbers), Yi(o2), r3.init(o2); + } + Zi.prototype.signal = function(t4, e3) { + wt(t4, e3) && this.events.push(arguments); + }, Zi.prototype.finish = function() { + for (var t4 = 0; t4 < this.events.length; t4++) + mt.apply(null, this.events[t4]); + }; + var Qi = 0, to = null; + function eo(t4) { + var e3 = t4.wheelDeltaX, n3 = t4.wheelDeltaY; + return e3 == null && t4.detail && t4.axis == t4.HORIZONTAL_AXIS && (e3 = t4.detail), n3 == null && t4.detail && t4.axis == t4.VERTICAL_AXIS ? n3 = t4.detail : n3 == null && (n3 = t4.wheelDelta), { x: e3, y: n3 }; + } + function no(t4) { + var e3 = eo(t4); + return e3.x *= to, e3.y *= to, e3; + } + function ro(t4, e3) { + var r3 = eo(e3), i2 = r3.x, o2 = r3.y, s2 = t4.display, a2 = s2.scroller, c2 = a2.scrollWidth > a2.clientWidth, u2 = a2.scrollHeight > a2.clientHeight; + if (i2 && c2 || o2 && u2) { + if (o2 && y && l) { + t: + for (var f2 = e3.target, d2 = s2.view; f2 != a2; f2 = f2.parentNode) + for (var p2 = 0; p2 < d2.length; p2++) + if (d2[p2].node == f2) { + t4.display.currentWheelTarget = f2; + break t; + } + } + if (i2 && !n2 && !h && to != null) + return o2 && u2 && fi(t4, Math.max(0, a2.scrollTop + o2 * to)), pi(t4, Math.max(0, a2.scrollLeft + i2 * to)), (!o2 || o2 && u2) && Ot(e3), void (s2.wheelStartX = null); + if (o2 && to != null) { + var g2 = o2 * to, v2 = t4.doc.scrollTop, m2 = v2 + s2.wrapper.clientHeight; + g2 < 0 ? v2 = Math.max(0, v2 + g2 - 50) : m2 = Math.min(t4.doc.height, m2 + g2 + 50), zi(t4, { top: v2, bottom: m2 }); + } + Qi < 20 && (s2.wheelStartX == null ? (s2.wheelStartX = a2.scrollLeft, s2.wheelStartY = a2.scrollTop, s2.wheelDX = i2, s2.wheelDY = o2, setTimeout(function() { + if (s2.wheelStartX != null) { + var t5 = a2.scrollLeft - s2.wheelStartX, e4 = a2.scrollTop - s2.wheelStartY, n3 = e4 && s2.wheelDY && e4 / s2.wheelDY || t5 && s2.wheelDX && t5 / s2.wheelDX; + s2.wheelStartX = s2.wheelStartY = null, n3 && (to = (to * Qi + n3) / (Qi + 1), ++Qi); + } + }, 200)) : (s2.wheelDX += i2, s2.wheelDY += o2)); + } + } + s ? to = -0.53 : n2 ? to = 15 : u ? to = -0.7 : f && (to = -1 / 3); + var io = function(t4, e3) { + this.ranges = t4, this.primIndex = e3; + }; + io.prototype.primary = function() { + return this.ranges[this.primIndex]; + }, io.prototype.equals = function(t4) { + if (t4 == this) + return true; + if (t4.primIndex != this.primIndex || t4.ranges.length != this.ranges.length) + return false; + for (var e3 = 0; e3 < this.ranges.length; e3++) { + var n3 = this.ranges[e3], r3 = t4.ranges[e3]; + if (!ae(n3.anchor, r3.anchor) || !ae(n3.head, r3.head)) + return false; + } + return true; + }, io.prototype.deepCopy = function() { + for (var t4 = [], e3 = 0; e3 < this.ranges.length; e3++) + t4[e3] = new oo(le(this.ranges[e3].anchor), le(this.ranges[e3].head)); + return new io(t4, this.primIndex); + }, io.prototype.somethingSelected = function() { + for (var t4 = 0; t4 < this.ranges.length; t4++) + if (!this.ranges[t4].empty()) + return true; + return false; + }, io.prototype.contains = function(t4, e3) { + e3 || (e3 = t4); + for (var n3 = 0; n3 < this.ranges.length; n3++) { + var r3 = this.ranges[n3]; + if (se(e3, r3.from()) >= 0 && se(t4, r3.to()) <= 0) + return n3; + } + return -1; + }; + var oo = function(t4, e3) { + this.anchor = t4, this.head = e3; + }; + function so(t4, e3, n3) { + var r3 = t4 && t4.options.selectionsMayTouch, i2 = e3[n3]; + e3.sort(function(t5, e4) { + return se(t5.from(), e4.from()); + }), n3 = V(e3, i2); + for (var o2 = 1; o2 < e3.length; o2++) { + var s2 = e3[o2], a2 = e3[o2 - 1], l2 = se(a2.to(), s2.from()); + if (r3 && !s2.empty() ? l2 > 0 : l2 >= 0) { + var c2 = ue(a2.from(), s2.from()), u2 = ce(a2.to(), s2.to()), h2 = a2.empty() ? s2.from() == s2.head : a2.from() == a2.head; + o2 <= n3 && --n3, e3.splice(--o2, 2, new oo(h2 ? u2 : c2, h2 ? c2 : u2)); + } + } + return new io(e3, n3); + } + function ao(t4, e3) { + return new io([new oo(t4, e3 || t4)], 0); + } + function lo(t4) { + return t4.text ? oe(t4.from.line + t4.text.length - 1, K(t4.text).length + (t4.text.length == 1 ? t4.from.ch : 0)) : t4.to; + } + function co(t4, e3) { + if (se(t4, e3.from) < 0) + return t4; + if (se(t4, e3.to) <= 0) + return lo(e3); + var n3 = t4.line + e3.text.length - (e3.to.line - e3.from.line) - 1, r3 = t4.ch; + return t4.line == e3.to.line && (r3 += lo(e3).ch - e3.to.ch), oe(n3, r3); + } + function uo(t4, e3) { + for (var n3 = [], r3 = 0; r3 < t4.sel.ranges.length; r3++) { + var i2 = t4.sel.ranges[r3]; + n3.push(new oo(co(i2.anchor, e3), co(i2.head, e3))); + } + return so(t4.cm, n3, t4.sel.primIndex); + } + function ho(t4, e3, n3) { + return t4.line == e3.line ? oe(n3.line, t4.ch - e3.ch + n3.ch) : oe(n3.line + (t4.line - e3.line), t4.ch); + } + function fo(t4, e3, n3) { + for (var r3 = [], i2 = oe(t4.first, 0), o2 = i2, s2 = 0; s2 < e3.length; s2++) { + var a2 = e3[s2], l2 = ho(a2.from, i2, o2), c2 = ho(lo(a2), i2, o2); + if (i2 = a2.to, o2 = c2, n3 == "around") { + var u2 = t4.sel.ranges[s2], h2 = se(u2.head, u2.anchor) < 0; + r3[s2] = new oo(h2 ? c2 : l2, h2 ? l2 : c2); + } else + r3[s2] = new oo(l2, l2); + } + return new io(r3, t4.sel.primIndex); + } + function po(t4) { + t4.doc.mode = Ut(t4.options, t4.doc.modeOption), go(t4); + } + function go(t4) { + t4.doc.iter(function(t5) { + t5.stateAfter && (t5.stateAfter = null), t5.styles && (t5.styles = null); + }), t4.doc.modeFrontier = t4.doc.highlightFrontier = t4.doc.first, Ri(t4, 100), t4.state.modeGen++, t4.curOp && Zr(t4); + } + function vo(t4, e3) { + return e3.from.ch == 0 && e3.to.ch == 0 && K(e3.text) == "" && (!t4.cm || t4.cm.options.wholeLineUpdateBefore); + } + function mo(t4, e3, n3, r3) { + function i2(t5) { + return n3 ? n3[t5] : null; + } + function o2(t5, n4, i3) { + un(t5, n4, i3, r3), En(t5, "change", t5, e3); + } + function s2(t5, e4) { + for (var n4 = [], o3 = t5; o3 < e4; ++o3) + n4.push(new cn(c2[o3], i2(o3), r3)); + return n4; + } + var a2 = e3.from, l2 = e3.to, c2 = e3.text, u2 = Jt(t4, a2.line), h2 = Jt(t4, l2.line), f2 = K(c2), d2 = i2(c2.length - 1), p2 = l2.line - a2.line; + if (e3.full) + t4.insert(0, s2(0, c2.length)), t4.remove(c2.length, t4.size - c2.length); + else if (vo(t4, e3)) { + var g2 = s2(0, c2.length - 1); + o2(h2, h2.text, d2), p2 && t4.remove(a2.line, p2), g2.length && t4.insert(a2.line, g2); + } else if (u2 == h2) + if (c2.length == 1) + o2(u2, u2.text.slice(0, a2.ch) + f2 + u2.text.slice(l2.ch), d2); + else { + var v2 = s2(1, c2.length - 1); + v2.push(new cn(f2 + u2.text.slice(l2.ch), d2, r3)), o2(u2, u2.text.slice(0, a2.ch) + c2[0], i2(0)), t4.insert(a2.line + 1, v2); + } + else if (c2.length == 1) + o2(u2, u2.text.slice(0, a2.ch) + c2[0] + h2.text.slice(l2.ch), i2(0)), t4.remove(a2.line + 1, p2); + else { + o2(u2, u2.text.slice(0, a2.ch) + c2[0], i2(0)), o2(h2, f2 + h2.text.slice(l2.ch), d2); + var m2 = s2(1, c2.length - 1); + p2 > 1 && t4.remove(a2.line + 1, p2 - 1), t4.insert(a2.line + 1, m2); + } + En(t4, "change", t4, e3); + } + function yo(t4, e3, n3) { + function r3(t5, i2, o2) { + if (t5.linked) + for (var s2 = 0; s2 < t5.linked.length; ++s2) { + var a2 = t5.linked[s2]; + if (a2.doc != i2) { + var l2 = o2 && a2.sharedHist; + n3 && !l2 || (e3(a2.doc, l2), r3(a2.doc, t5, l2)); + } + } + } + r3(t4, null, true); + } + function bo(t4, e3) { + if (e3.cm) + throw new Error("This document is already in use."); + t4.doc = e3, e3.cm = t4, Lr(t4), po(t4), wo(t4), t4.options.direction = e3.direction, t4.options.lineWrapping || ln(t4), t4.options.mode = e3.modeOption, Zr(t4); + } + function wo(t4) { + (t4.doc.direction == "rtl" ? A : P)(t4.display.lineDiv, "CodeMirror-rtl"); + } + function xo(t4) { + Di(t4, function() { + wo(t4), Zr(t4); + }); + } + function Oo(t4) { + this.done = [], this.undone = [], this.undoDepth = t4 ? t4.undoDepth : 1 / 0, this.lastModTime = this.lastSelTime = 0, this.lastOp = this.lastSelOp = null, this.lastOrigin = this.lastSelOrigin = null, this.generation = this.maxGeneration = t4 ? t4.maxGeneration : 1; + } + function Co(t4, e3) { + var n3 = { from: le(e3.from), to: lo(e3), text: Xt(t4, e3.from, e3.to) }; + return jo(t4, n3, e3.from.line, e3.to.line + 1), yo(t4, function(t5) { + return jo(t5, n3, e3.from.line, e3.to.line + 1); + }, true), n3; + } + function ko(t4) { + for (; t4.length && K(t4).ranges; ) + t4.pop(); + } + function So(t4, e3) { + return e3 ? (ko(t4.done), K(t4.done)) : t4.done.length && !K(t4.done).ranges ? K(t4.done) : t4.done.length > 1 && !t4.done[t4.done.length - 2].ranges ? (t4.done.pop(), K(t4.done)) : void 0; + } + function Po(t4, e3, n3, r3) { + var i2 = t4.history; + i2.undone.length = 0; + var o2, s2, a2 = +new Date(); + if ((i2.lastOp == r3 || i2.lastOrigin == e3.origin && e3.origin && (e3.origin.charAt(0) == "+" && i2.lastModTime > a2 - (t4.cm ? t4.cm.options.historyEventDelay : 500) || e3.origin.charAt(0) == "*")) && (o2 = So(i2, i2.lastOp == r3))) + s2 = K(o2.changes), se(e3.from, e3.to) == 0 && se(e3.from, s2.to) == 0 ? s2.to = lo(e3) : o2.changes.push(Co(t4, e3)); + else { + var l2 = K(i2.done); + for (l2 && l2.ranges || Eo(t4.sel, i2.done), o2 = { changes: [Co(t4, e3)], generation: i2.generation }, i2.done.push(o2); i2.done.length > i2.undoDepth; ) + i2.done.shift(), i2.done[0].ranges || i2.done.shift(); + } + i2.done.push(n3), i2.generation = ++i2.maxGeneration, i2.lastModTime = i2.lastSelTime = a2, i2.lastOp = i2.lastSelOp = r3, i2.lastOrigin = i2.lastSelOrigin = e3.origin, s2 || mt(t4, "historyAdded"); + } + function _o(t4, e3, n3, r3) { + var i2 = e3.charAt(0); + return i2 == "*" || i2 == "+" && n3.ranges.length == r3.ranges.length && n3.somethingSelected() == r3.somethingSelected() && new Date() - t4.history.lastSelTime <= (t4.cm ? t4.cm.options.historyEventDelay : 500); + } + function To(t4, e3, n3, r3) { + var i2 = t4.history, o2 = r3 && r3.origin; + n3 == i2.lastSelOp || o2 && i2.lastSelOrigin == o2 && (i2.lastModTime == i2.lastSelTime && i2.lastOrigin == o2 || _o(t4, o2, K(i2.done), e3)) ? i2.done[i2.done.length - 1] = e3 : Eo(e3, i2.done), i2.lastSelTime = +new Date(), i2.lastSelOrigin = o2, i2.lastSelOp = n3, r3 && r3.clearRedo !== false && ko(i2.undone); + } + function Eo(t4, e3) { + var n3 = K(e3); + n3 && n3.ranges && n3.equals(t4) || e3.push(t4); + } + function jo(t4, e3, n3, r3) { + var i2 = e3["spans_" + t4.id], o2 = 0; + t4.iter(Math.max(t4.first, n3), Math.min(t4.first + t4.size, r3), function(n4) { + n4.markedSpans && ((i2 || (i2 = e3["spans_" + t4.id] = {}))[o2] = n4.markedSpans), ++o2; + }); + } + function Do(t4) { + if (!t4) + return null; + for (var e3, n3 = 0; n3 < t4.length; ++n3) + t4[n3].marker.explicitlyCleared ? e3 || (e3 = t4.slice(0, n3)) : e3 && e3.push(t4[n3]); + return e3 ? e3.length ? e3 : null : t4; + } + function Mo(t4, e3) { + var n3 = e3["spans_" + t4.id]; + if (!n3) + return null; + for (var r3 = [], i2 = 0; i2 < e3.text.length; ++i2) + r3.push(Do(n3[i2])); + return r3; + } + function Ao(t4, e3) { + var n3 = Mo(t4, e3), r3 = Fe(t4, e3); + if (!n3) + return r3; + if (!r3) + return n3; + for (var i2 = 0; i2 < n3.length; ++i2) { + var o2 = n3[i2], s2 = r3[i2]; + if (o2 && s2) + t: + for (var a2 = 0; a2 < s2.length; ++a2) { + for (var l2 = s2[a2], c2 = 0; c2 < o2.length; ++c2) + if (o2[c2].marker == l2.marker) + continue t; + o2.push(l2); + } + else + s2 && (n3[i2] = s2); + } + return n3; + } + function Lo(t4, e3, n3) { + for (var r3 = [], i2 = 0; i2 < t4.length; ++i2) { + var o2 = t4[i2]; + if (o2.ranges) + r3.push(n3 ? io.prototype.deepCopy.call(o2) : o2); + else { + var s2 = o2.changes, a2 = []; + r3.push({ changes: a2 }); + for (var l2 = 0; l2 < s2.length; ++l2) { + var c2 = s2[l2], u2 = void 0; + if (a2.push({ from: c2.from, to: c2.to, text: c2.text }), e3) + for (var h2 in c2) + (u2 = h2.match(/^spans_(\d+)$/)) && V(e3, Number(u2[1])) > -1 && (K(a2)[h2] = c2[h2], delete c2[h2]); + } + } + } + return r3; + } + function Ro(t4, e3, n3, r3) { + if (r3) { + var i2 = t4.anchor; + if (n3) { + var o2 = se(e3, i2) < 0; + o2 != se(n3, i2) < 0 ? (i2 = e3, e3 = n3) : o2 != se(e3, n3) < 0 && (e3 = n3); + } + return new oo(i2, e3); + } + return new oo(n3 || e3, e3); + } + function No(t4, e3, n3, r3, i2) { + i2 == null && (i2 = t4.cm && (t4.cm.display.shift || t4.extend)), Bo(t4, new io([Ro(t4.sel.primary(), e3, n3, i2)], 0), r3); + } + function Zo(t4, e3, n3) { + for (var r3 = [], i2 = t4.cm && (t4.cm.display.shift || t4.extend), o2 = 0; o2 < t4.sel.ranges.length; o2++) + r3[o2] = Ro(t4.sel.ranges[o2], e3[o2], null, i2); + Bo(t4, so(t4.cm, r3, t4.sel.primIndex), n3); + } + function Io(t4, e3, n3, r3) { + var i2 = t4.sel.ranges.slice(0); + i2[e3] = n3, Bo(t4, so(t4.cm, i2, t4.sel.primIndex), r3); + } + function Fo(t4, e3, n3, r3) { + Bo(t4, ao(e3, n3), r3); + } + function Vo(t4, e3, n3) { + var r3 = { ranges: e3.ranges, update: function(e4) { + this.ranges = []; + for (var n4 = 0; n4 < e4.length; n4++) + this.ranges[n4] = new oo(fe(t4, e4[n4].anchor), fe(t4, e4[n4].head)); + }, origin: n3 && n3.origin }; + return mt(t4, "beforeSelectionChange", t4, r3), t4.cm && mt(t4.cm, "beforeSelectionChange", t4.cm, r3), r3.ranges != e3.ranges ? so(t4.cm, r3.ranges, r3.ranges.length - 1) : e3; + } + function Ho(t4, e3, n3) { + var r3 = t4.history.done, i2 = K(r3); + i2 && i2.ranges ? (r3[r3.length - 1] = e3, zo(t4, e3, n3)) : Bo(t4, e3, n3); + } + function Bo(t4, e3, n3) { + zo(t4, e3, n3), To(t4, t4.sel, t4.cm ? t4.cm.curOp.id : NaN, n3); + } + function zo(t4, e3, n3) { + (wt(t4, "beforeSelectionChange") || t4.cm && wt(t4.cm, "beforeSelectionChange")) && (e3 = Vo(t4, e3, n3)); + var r3 = n3 && n3.bias || (se(e3.primary().head, t4.sel.primary().head) < 0 ? -1 : 1); + Uo(t4, $o(t4, e3, r3, true)), n3 && n3.scroll === false || !t4.cm || t4.cm.getOption("readOnly") == "nocursor" || ai(t4.cm); + } + function Uo(t4, e3) { + e3.equals(t4.sel) || (t4.sel = e3, t4.cm && (t4.cm.curOp.updateInput = 1, t4.cm.curOp.selectionChanged = true, bt(t4.cm)), En(t4, "cursorActivity", t4)); + } + function Wo(t4) { + Uo(t4, $o(t4, t4.sel, null, false)); + } + function $o(t4, e3, n3, r3) { + for (var i2, o2 = 0; o2 < e3.ranges.length; o2++) { + var s2 = e3.ranges[o2], a2 = e3.ranges.length == t4.sel.ranges.length && t4.sel.ranges[o2], l2 = Go(t4, s2.anchor, a2 && a2.anchor, n3, r3), c2 = Go(t4, s2.head, a2 && a2.head, n3, r3); + (i2 || l2 != s2.anchor || c2 != s2.head) && (i2 || (i2 = e3.ranges.slice(0, o2)), i2[o2] = new oo(l2, c2)); + } + return i2 ? so(t4.cm, i2, e3.primIndex) : e3; + } + function qo(t4, e3, n3, r3, i2) { + var o2 = Jt(t4, e3.line); + if (o2.markedSpans) + for (var s2 = 0; s2 < o2.markedSpans.length; ++s2) { + var a2 = o2.markedSpans[s2], l2 = a2.marker, c2 = "selectLeft" in l2 ? !l2.selectLeft : l2.inclusiveLeft, u2 = "selectRight" in l2 ? !l2.selectRight : l2.inclusiveRight; + if ((a2.from == null || (c2 ? a2.from <= e3.ch : a2.from < e3.ch)) && (a2.to == null || (u2 ? a2.to >= e3.ch : a2.to > e3.ch))) { + if (i2 && (mt(l2, "beforeCursorEnter"), l2.explicitlyCleared)) { + if (o2.markedSpans) { + --s2; + continue; + } + break; + } + if (!l2.atomic) + continue; + if (n3) { + var h2 = l2.find(r3 < 0 ? 1 : -1), f2 = void 0; + if ((r3 < 0 ? u2 : c2) && (h2 = Ko(t4, h2, -r3, h2 && h2.line == e3.line ? o2 : null)), h2 && h2.line == e3.line && (f2 = se(h2, n3)) && (r3 < 0 ? f2 < 0 : f2 > 0)) + return qo(t4, h2, e3, r3, i2); + } + var d2 = l2.find(r3 < 0 ? -1 : 1); + return (r3 < 0 ? c2 : u2) && (d2 = Ko(t4, d2, r3, d2.line == e3.line ? o2 : null)), d2 ? qo(t4, d2, e3, r3, i2) : null; + } + } + return e3; + } + function Go(t4, e3, n3, r3, i2) { + var o2 = r3 || 1, s2 = qo(t4, e3, n3, o2, i2) || !i2 && qo(t4, e3, n3, o2, true) || qo(t4, e3, n3, -o2, i2) || !i2 && qo(t4, e3, n3, -o2, true); + return s2 || (t4.cantEdit = true, oe(t4.first, 0)); + } + function Ko(t4, e3, n3, r3) { + return n3 < 0 && e3.ch == 0 ? e3.line > t4.first ? fe(t4, oe(e3.line - 1)) : null : n3 > 0 && e3.ch == (r3 || Jt(t4, e3.line)).text.length ? e3.line < t4.first + t4.size - 1 ? oe(e3.line + 1, 0) : null : new oe(e3.line, e3.ch + n3); + } + function Yo(t4) { + t4.setSelection(oe(t4.firstLine(), 0), oe(t4.lastLine()), z); + } + function Jo(t4, e3, n3) { + var r3 = { canceled: false, from: e3.from, to: e3.to, text: e3.text, origin: e3.origin, cancel: function() { + return r3.canceled = true; + } }; + return n3 && (r3.update = function(e4, n4, i2, o2) { + e4 && (r3.from = fe(t4, e4)), n4 && (r3.to = fe(t4, n4)), i2 && (r3.text = i2), o2 !== void 0 && (r3.origin = o2); + }), mt(t4, "beforeChange", t4, r3), t4.cm && mt(t4.cm, "beforeChange", t4.cm, r3), r3.canceled ? (t4.cm && (t4.cm.curOp.updateInput = 2), null) : { from: r3.from, to: r3.to, text: r3.text, origin: r3.origin }; + } + function Xo(t4, e3, n3) { + if (t4.cm) { + if (!t4.cm.curOp) + return Mi(t4.cm, Xo)(t4, e3, n3); + if (t4.cm.state.suppressEdits) + return; + } + if (!(wt(t4, "beforeChange") || t4.cm && wt(t4.cm, "beforeChange")) || (e3 = Jo(t4, e3, true))) { + var r3 = Ee && !n3 && He(t4, e3.from, e3.to); + if (r3) + for (var i2 = r3.length - 1; i2 >= 0; --i2) + Qo(t4, { from: r3[i2].from, to: r3[i2].to, text: i2 ? [""] : e3.text, origin: e3.origin }); + else + Qo(t4, e3); + } + } + function Qo(t4, e3) { + if (e3.text.length != 1 || e3.text[0] != "" || se(e3.from, e3.to) != 0) { + var n3 = uo(t4, e3); + Po(t4, e3, n3, t4.cm ? t4.cm.curOp.id : NaN), ns(t4, e3, n3, Fe(t4, e3)); + var r3 = []; + yo(t4, function(t5, n4) { + n4 || V(r3, t5.history) != -1 || (as(t5.history, e3), r3.push(t5.history)), ns(t5, e3, null, Fe(t5, e3)); + }); + } + } + function ts(t4, e3, n3) { + var r3 = t4.cm && t4.cm.state.suppressEdits; + if (!r3 || n3) { + for (var i2, o2 = t4.history, s2 = t4.sel, a2 = e3 == "undo" ? o2.done : o2.undone, l2 = e3 == "undo" ? o2.undone : o2.done, c2 = 0; c2 < a2.length && (i2 = a2[c2], n3 ? !i2.ranges || i2.equals(t4.sel) : i2.ranges); c2++) + ; + if (c2 != a2.length) { + for (o2.lastOrigin = o2.lastSelOrigin = null; ; ) { + if (!(i2 = a2.pop()).ranges) { + if (r3) + return void a2.push(i2); + break; + } + if (Eo(i2, l2), n3 && !i2.equals(t4.sel)) + return void Bo(t4, i2, { clearRedo: false }); + s2 = i2; + } + var u2 = []; + Eo(s2, l2), l2.push({ changes: u2, generation: o2.generation }), o2.generation = i2.generation || ++o2.maxGeneration; + for (var h2 = wt(t4, "beforeChange") || t4.cm && wt(t4.cm, "beforeChange"), f2 = function(n4) { + var r4 = i2.changes[n4]; + if (r4.origin = e3, h2 && !Jo(t4, r4, false)) + return a2.length = 0, {}; + u2.push(Co(t4, r4)); + var o3 = n4 ? uo(t4, r4) : K(a2); + ns(t4, r4, o3, Ao(t4, r4)), !n4 && t4.cm && t4.cm.scrollIntoView({ from: r4.from, to: lo(r4) }); + var s3 = []; + yo(t4, function(t5, e4) { + e4 || V(s3, t5.history) != -1 || (as(t5.history, r4), s3.push(t5.history)), ns(t5, r4, null, Ao(t5, r4)); + }); + }, d2 = i2.changes.length - 1; d2 >= 0; --d2) { + var p2 = f2(d2); + if (p2) + return p2.v; + } + } + } + } + function es(t4, e3) { + if (e3 != 0 && (t4.first += e3, t4.sel = new io(Y(t4.sel.ranges, function(t5) { + return new oo(oe(t5.anchor.line + e3, t5.anchor.ch), oe(t5.head.line + e3, t5.head.ch)); + }), t4.sel.primIndex), t4.cm)) { + Zr(t4.cm, t4.first, t4.first - e3, e3); + for (var n3 = t4.cm.display, r3 = n3.viewFrom; r3 < n3.viewTo; r3++) + Ir(t4.cm, r3, "gutter"); + } + } + function ns(t4, e3, n3, r3) { + if (t4.cm && !t4.cm.curOp) + return Mi(t4.cm, ns)(t4, e3, n3, r3); + if (e3.to.line < t4.first) + es(t4, e3.text.length - 1 - (e3.to.line - e3.from.line)); + else if (!(e3.from.line > t4.lastLine())) { + if (e3.from.line < t4.first) { + var i2 = e3.text.length - 1 - (t4.first - e3.from.line); + es(t4, i2), e3 = { from: oe(t4.first, 0), to: oe(e3.to.line + i2, e3.to.ch), text: [K(e3.text)], origin: e3.origin }; + } + var o2 = t4.lastLine(); + e3.to.line > o2 && (e3 = { from: e3.from, to: oe(o2, Jt(t4, o2).text.length), text: [e3.text[0]], origin: e3.origin }), e3.removed = Xt(t4, e3.from, e3.to), n3 || (n3 = uo(t4, e3)), t4.cm ? rs(t4.cm, e3, r3) : mo(t4, e3, r3), zo(t4, n3, z), t4.cantEdit && Go(t4, oe(t4.firstLine(), 0)) && (t4.cantEdit = false); + } + } + function rs(t4, e3, n3) { + var r3 = t4.doc, i2 = t4.display, o2 = e3.from, s2 = e3.to, a2 = false, l2 = o2.line; + t4.options.lineWrapping || (l2 = ee(Xe(Jt(r3, o2.line))), r3.iter(l2, s2.line + 1, function(t5) { + if (t5 == i2.maxLine) + return a2 = true, true; + })), r3.sel.contains(e3.from, e3.to) > -1 && bt(t4), mo(r3, e3, n3, Ar(t4)), t4.options.lineWrapping || (r3.iter(l2, o2.line + e3.text.length, function(t5) { + var e4 = an(t5); + e4 > i2.maxLineLength && (i2.maxLine = t5, i2.maxLineLength = e4, i2.maxLineChanged = true, a2 = false); + }), a2 && (t4.curOp.updateMaxLine = true)), Te(r3, o2.line), Ri(t4, 400); + var c2 = e3.text.length - (s2.line - o2.line) - 1; + e3.full ? Zr(t4) : o2.line != s2.line || e3.text.length != 1 || vo(t4.doc, e3) ? Zr(t4, o2.line, s2.line + 1, c2) : Ir(t4, o2.line, "text"); + var u2 = wt(t4, "changes"), h2 = wt(t4, "change"); + if (h2 || u2) { + var f2 = { from: o2, to: s2, text: e3.text, removed: e3.removed, origin: e3.origin }; + h2 && En(t4, "change", t4, f2), u2 && (t4.curOp.changeObjs || (t4.curOp.changeObjs = [])).push(f2); + } + t4.display.selForContextMenu = null; + } + function is(t4, e3, n3, r3, i2) { + var o2; + r3 || (r3 = n3), se(r3, n3) < 0 && (n3 = (o2 = [r3, n3])[0], r3 = o2[1]), typeof e3 == "string" && (e3 = t4.splitLines(e3)), Xo(t4, { from: n3, to: r3, text: e3, origin: i2 }); + } + function os(t4, e3, n3, r3) { + n3 < t4.line ? t4.line += r3 : e3 < t4.line && (t4.line = e3, t4.ch = 0); + } + function ss(t4, e3, n3, r3) { + for (var i2 = 0; i2 < t4.length; ++i2) { + var o2 = t4[i2], s2 = true; + if (o2.ranges) { + o2.copied || ((o2 = t4[i2] = o2.deepCopy()).copied = true); + for (var a2 = 0; a2 < o2.ranges.length; a2++) + os(o2.ranges[a2].anchor, e3, n3, r3), os(o2.ranges[a2].head, e3, n3, r3); + } else { + for (var l2 = 0; l2 < o2.changes.length; ++l2) { + var c2 = o2.changes[l2]; + if (n3 < c2.from.line) + c2.from = oe(c2.from.line + r3, c2.from.ch), c2.to = oe(c2.to.line + r3, c2.to.ch); + else if (e3 <= c2.to.line) { + s2 = false; + break; + } + } + s2 || (t4.splice(0, i2 + 1), i2 = 0); + } + } + } + function as(t4, e3) { + var n3 = e3.from.line, r3 = e3.to.line, i2 = e3.text.length - (r3 - n3) - 1; + ss(t4.done, n3, r3, i2), ss(t4.undone, n3, r3, i2); + } + function ls(t4, e3, n3, r3) { + var i2 = e3, o2 = e3; + return typeof e3 == "number" ? o2 = Jt(t4, he(t4, e3)) : i2 = ee(e3), i2 == null ? null : (r3(o2, i2) && t4.cm && Ir(t4.cm, i2, n3), o2); + } + function cs(t4) { + this.lines = t4, this.parent = null; + for (var e3 = 0, n3 = 0; n3 < t4.length; ++n3) + t4[n3].parent = this, e3 += t4[n3].height; + this.height = e3; + } + function us(t4) { + this.children = t4; + for (var e3 = 0, n3 = 0, r3 = 0; r3 < t4.length; ++r3) { + var i2 = t4[r3]; + e3 += i2.chunkSize(), n3 += i2.height, i2.parent = this; + } + this.size = e3, this.height = n3, this.parent = null; + } + oo.prototype.from = function() { + return ue(this.anchor, this.head); + }, oo.prototype.to = function() { + return ce(this.anchor, this.head); + }, oo.prototype.empty = function() { + return this.head.line == this.anchor.line && this.head.ch == this.anchor.ch; + }, cs.prototype = { chunkSize: function() { + return this.lines.length; + }, removeInner: function(t4, e3) { + for (var n3 = t4, r3 = t4 + e3; n3 < r3; ++n3) { + var i2 = this.lines[n3]; + this.height -= i2.height, hn(i2), En(i2, "delete"); + } + this.lines.splice(t4, e3); + }, collapse: function(t4) { + t4.push.apply(t4, this.lines); + }, insertInner: function(t4, e3, n3) { + this.height += n3, this.lines = this.lines.slice(0, t4).concat(e3).concat(this.lines.slice(t4)); + for (var r3 = 0; r3 < e3.length; ++r3) + e3[r3].parent = this; + }, iterN: function(t4, e3, n3) { + for (var r3 = t4 + e3; t4 < r3; ++t4) + if (n3(this.lines[t4])) + return true; + } }, us.prototype = { chunkSize: function() { + return this.size; + }, removeInner: function(t4, e3) { + this.size -= e3; + for (var n3 = 0; n3 < this.children.length; ++n3) { + var r3 = this.children[n3], i2 = r3.chunkSize(); + if (t4 < i2) { + var o2 = Math.min(e3, i2 - t4), s2 = r3.height; + if (r3.removeInner(t4, o2), this.height -= s2 - r3.height, i2 == o2 && (this.children.splice(n3--, 1), r3.parent = null), (e3 -= o2) == 0) + break; + t4 = 0; + } else + t4 -= i2; + } + if (this.size - e3 < 25 && (this.children.length > 1 || !(this.children[0] instanceof cs))) { + var a2 = []; + this.collapse(a2), this.children = [new cs(a2)], this.children[0].parent = this; + } + }, collapse: function(t4) { + for (var e3 = 0; e3 < this.children.length; ++e3) + this.children[e3].collapse(t4); + }, insertInner: function(t4, e3, n3) { + this.size += e3.length, this.height += n3; + for (var r3 = 0; r3 < this.children.length; ++r3) { + var i2 = this.children[r3], o2 = i2.chunkSize(); + if (t4 <= o2) { + if (i2.insertInner(t4, e3, n3), i2.lines && i2.lines.length > 50) { + for (var s2 = i2.lines.length % 25 + 25, a2 = s2; a2 < i2.lines.length; ) { + var l2 = new cs(i2.lines.slice(a2, a2 += 25)); + i2.height -= l2.height, this.children.splice(++r3, 0, l2), l2.parent = this; + } + i2.lines = i2.lines.slice(0, s2), this.maybeSpill(); + } + break; + } + t4 -= o2; + } + }, maybeSpill: function() { + if (!(this.children.length <= 10)) { + var t4 = this; + do { + var e3 = new us(t4.children.splice(t4.children.length - 5, 5)); + if (t4.parent) { + t4.size -= e3.size, t4.height -= e3.height; + var n3 = V(t4.parent.children, t4); + t4.parent.children.splice(n3 + 1, 0, e3); + } else { + var r3 = new us(t4.children); + r3.parent = t4, t4.children = [r3, e3], t4 = r3; + } + e3.parent = t4.parent; + } while (t4.children.length > 10); + t4.parent.maybeSpill(); + } + }, iterN: function(t4, e3, n3) { + for (var r3 = 0; r3 < this.children.length; ++r3) { + var i2 = this.children[r3], o2 = i2.chunkSize(); + if (t4 < o2) { + var s2 = Math.min(e3, o2 - t4); + if (i2.iterN(t4, s2, n3)) + return true; + if ((e3 -= s2) == 0) + break; + t4 = 0; + } else + t4 -= o2; + } + } }; + var hs = function(t4, e3, n3) { + if (n3) + for (var r3 in n3) + n3.hasOwnProperty(r3) && (this[r3] = n3[r3]); + this.doc = t4, this.node = e3; + }; + function fs(t4, e3, n3) { + sn(e3) < (t4.curOp && t4.curOp.scrollTop || t4.doc.scrollTop) && si(t4, n3); + } + function ds(t4, e3, n3, r3) { + var i2 = new hs(t4, n3, r3), o2 = t4.cm; + return o2 && i2.noHScroll && (o2.display.alignWidgets = true), ls(t4, e3, "widget", function(e4) { + var n4 = e4.widgets || (e4.widgets = []); + if (i2.insertAt == null ? n4.push(i2) : n4.splice(Math.min(n4.length, Math.max(0, i2.insertAt)), 0, i2), i2.line = e4, o2 && !rn(t4, e4)) { + var r4 = sn(e4) < t4.scrollTop; + te(e4, e4.height + zn(i2)), r4 && si(o2, i2.height), o2.curOp.forceUpdate = true; + } + return true; + }), o2 && En(o2, "lineWidgetAdded", o2, i2, typeof e3 == "number" ? e3 : ee(e3)), i2; + } + hs.prototype.clear = function() { + var t4 = this.doc.cm, e3 = this.line.widgets, n3 = this.line, r3 = ee(n3); + if (r3 != null && e3) { + for (var i2 = 0; i2 < e3.length; ++i2) + e3[i2] == this && e3.splice(i2--, 1); + e3.length || (n3.widgets = null); + var o2 = zn(this); + te(n3, Math.max(0, n3.height - o2)), t4 && (Di(t4, function() { + fs(t4, n3, -o2), Ir(t4, r3, "widget"); + }), En(t4, "lineWidgetCleared", t4, this, r3)); + } + }, hs.prototype.changed = function() { + var t4 = this, e3 = this.height, n3 = this.doc.cm, r3 = this.line; + this.height = null; + var i2 = zn(this) - e3; + i2 && (rn(this.doc, r3) || te(r3, r3.height + i2), n3 && Di(n3, function() { + n3.curOp.forceUpdate = true, fs(n3, r3, i2), En(n3, "lineWidgetChanged", n3, t4, ee(r3)); + })); + }, xt(hs); + var ps = 0, gs = function(t4, e3) { + this.lines = [], this.type = e3, this.doc = t4, this.id = ++ps; + }; + function vs(t4, e3, n3, r3, i2) { + if (r3 && r3.shared) + return ys(t4, e3, n3, r3, i2); + if (t4.cm && !t4.cm.curOp) + return Mi(t4.cm, vs)(t4, e3, n3, r3, i2); + var o2 = new gs(t4, i2), s2 = se(e3, n3); + if (r3 && Z(r3, o2, false), s2 > 0 || s2 == 0 && o2.clearWhenEmpty !== false) + return o2; + if (o2.replacedWith && (o2.collapsed = true, o2.widgetNode = j("span", [o2.replacedWith], "CodeMirror-widget"), r3.handleMouseEvents || o2.widgetNode.setAttribute("cm-ignore-events", "true"), r3.insertLeft && (o2.widgetNode.insertLeft = true)), o2.collapsed) { + if (Je(t4, e3.line, e3, n3, o2) || e3.line != n3.line && Je(t4, n3.line, e3, n3, o2)) + throw new Error("Inserting collapsed marker partially overlapping an existing one"); + Me(); + } + o2.addToHistory && Po(t4, { from: e3, to: n3, origin: "markText" }, t4.sel, NaN); + var a2, l2 = e3.line, c2 = t4.cm; + if (t4.iter(l2, n3.line + 1, function(r4) { + c2 && o2.collapsed && !c2.options.lineWrapping && Xe(r4) == c2.display.maxLine && (a2 = true), o2.collapsed && l2 != e3.line && te(r4, 0), Ne(r4, new Ae(o2, l2 == e3.line ? e3.ch : null, l2 == n3.line ? n3.ch : null), t4.cm && t4.cm.curOp), ++l2; + }), o2.collapsed && t4.iter(e3.line, n3.line + 1, function(e4) { + rn(t4, e4) && te(e4, 0); + }), o2.clearOnEnter && pt(o2, "beforeCursorEnter", function() { + return o2.clear(); + }), o2.readOnly && (De(), (t4.history.done.length || t4.history.undone.length) && t4.clearHistory()), o2.collapsed && (o2.id = ++ps, o2.atomic = true), c2) { + if (a2 && (c2.curOp.updateMaxLine = true), o2.collapsed) + Zr(c2, e3.line, n3.line + 1); + else if (o2.className || o2.startStyle || o2.endStyle || o2.css || o2.attributes || o2.title) + for (var u2 = e3.line; u2 <= n3.line; u2++) + Ir(c2, u2, "text"); + o2.atomic && Wo(c2.doc), En(c2, "markerAdded", c2, o2); + } + return o2; + } + gs.prototype.clear = function() { + if (!this.explicitlyCleared) { + var t4 = this.doc.cm, e3 = t4 && !t4.curOp; + if (e3 && Ci(t4), wt(this, "clear")) { + var n3 = this.find(); + n3 && En(this, "clear", n3.from, n3.to); + } + for (var r3 = null, i2 = null, o2 = 0; o2 < this.lines.length; ++o2) { + var s2 = this.lines[o2], a2 = Le(s2.markedSpans, this); + t4 && !this.collapsed ? Ir(t4, ee(s2), "text") : t4 && (a2.to != null && (i2 = ee(s2)), a2.from != null && (r3 = ee(s2))), s2.markedSpans = Re(s2.markedSpans, a2), a2.from == null && this.collapsed && !rn(this.doc, s2) && t4 && te(s2, Er(t4.display)); + } + if (t4 && this.collapsed && !t4.options.lineWrapping) + for (var l2 = 0; l2 < this.lines.length; ++l2) { + var c2 = Xe(this.lines[l2]), u2 = an(c2); + u2 > t4.display.maxLineLength && (t4.display.maxLine = c2, t4.display.maxLineLength = u2, t4.display.maxLineChanged = true); + } + r3 != null && t4 && this.collapsed && Zr(t4, r3, i2 + 1), this.lines.length = 0, this.explicitlyCleared = true, this.atomic && this.doc.cantEdit && (this.doc.cantEdit = false, t4 && Wo(t4.doc)), t4 && En(t4, "markerCleared", t4, this, r3, i2), e3 && ki(t4), this.parent && this.parent.clear(); + } + }, gs.prototype.find = function(t4, e3) { + var n3, r3; + t4 == null && this.type == "bookmark" && (t4 = 1); + for (var i2 = 0; i2 < this.lines.length; ++i2) { + var o2 = this.lines[i2], s2 = Le(o2.markedSpans, this); + if (s2.from != null && (n3 = oe(e3 ? o2 : ee(o2), s2.from), t4 == -1)) + return n3; + if (s2.to != null && (r3 = oe(e3 ? o2 : ee(o2), s2.to), t4 == 1)) + return r3; + } + return n3 && { from: n3, to: r3 }; + }, gs.prototype.changed = function() { + var t4 = this, e3 = this.find(-1, true), n3 = this, r3 = this.doc.cm; + e3 && r3 && Di(r3, function() { + var i2 = e3.line, o2 = ee(e3.line), s2 = er(r3, o2); + if (s2 && (ur(s2), r3.curOp.selectionChanged = r3.curOp.forceUpdate = true), r3.curOp.updateMaxLine = true, !rn(n3.doc, i2) && n3.height != null) { + var a2 = n3.height; + n3.height = null; + var l2 = zn(n3) - a2; + l2 && te(i2, i2.height + l2); + } + En(r3, "markerChanged", r3, t4); + }); + }, gs.prototype.attachLine = function(t4) { + if (!this.lines.length && this.doc.cm) { + var e3 = this.doc.cm.curOp; + e3.maybeHiddenMarkers && V(e3.maybeHiddenMarkers, this) != -1 || (e3.maybeUnhiddenMarkers || (e3.maybeUnhiddenMarkers = [])).push(this); + } + this.lines.push(t4); + }, gs.prototype.detachLine = function(t4) { + if (this.lines.splice(V(this.lines, t4), 1), !this.lines.length && this.doc.cm) { + var e3 = this.doc.cm.curOp; + (e3.maybeHiddenMarkers || (e3.maybeHiddenMarkers = [])).push(this); + } + }, xt(gs); + var ms = function(t4, e3) { + this.markers = t4, this.primary = e3; + for (var n3 = 0; n3 < t4.length; ++n3) + t4[n3].parent = this; + }; + function ys(t4, e3, n3, r3, i2) { + (r3 = Z(r3)).shared = false; + var o2 = [vs(t4, e3, n3, r3, i2)], s2 = o2[0], a2 = r3.widgetNode; + return yo(t4, function(t5) { + a2 && (r3.widgetNode = a2.cloneNode(true)), o2.push(vs(t5, fe(t5, e3), fe(t5, n3), r3, i2)); + for (var l2 = 0; l2 < t5.linked.length; ++l2) + if (t5.linked[l2].isParent) + return; + s2 = K(o2); + }), new ms(o2, s2); + } + function bs(t4) { + return t4.findMarks(oe(t4.first, 0), t4.clipPos(oe(t4.lastLine())), function(t5) { + return t5.parent; + }); + } + function ws(t4, e3) { + for (var n3 = 0; n3 < e3.length; n3++) { + var r3 = e3[n3], i2 = r3.find(), o2 = t4.clipPos(i2.from), s2 = t4.clipPos(i2.to); + if (se(o2, s2)) { + var a2 = vs(t4, o2, s2, r3.primary, r3.primary.type); + r3.markers.push(a2), a2.parent = r3; + } + } + } + function xs(t4) { + for (var e3 = function(e4) { + var n4 = t4[e4], r3 = [n4.primary.doc]; + yo(n4.primary.doc, function(t5) { + return r3.push(t5); + }); + for (var i2 = 0; i2 < n4.markers.length; i2++) { + var o2 = n4.markers[i2]; + V(r3, o2.doc) == -1 && (o2.parent = null, n4.markers.splice(i2--, 1)); + } + }, n3 = 0; n3 < t4.length; n3++) + e3(n3); + } + ms.prototype.clear = function() { + if (!this.explicitlyCleared) { + this.explicitlyCleared = true; + for (var t4 = 0; t4 < this.markers.length; ++t4) + this.markers[t4].clear(); + En(this, "clear"); + } + }, ms.prototype.find = function(t4, e3) { + return this.primary.find(t4, e3); + }, xt(ms); + var Os = 0, Cs = function(t4, e3, n3, r3, i2) { + if (!(this instanceof Cs)) + return new Cs(t4, e3, n3, r3, i2); + n3 == null && (n3 = 0), us.call(this, [new cs([new cn("", null)])]), this.first = n3, this.scrollTop = this.scrollLeft = 0, this.cantEdit = false, this.cleanGeneration = 1, this.modeFrontier = this.highlightFrontier = n3; + var o2 = oe(n3, 0); + this.sel = ao(o2), this.history = new Oo(null), this.id = ++Os, this.modeOption = e3, this.lineSep = r3, this.direction = i2 == "rtl" ? "rtl" : "ltr", this.extend = false, typeof t4 == "string" && (t4 = this.splitLines(t4)), mo(this, { from: o2, to: o2, text: t4 }), Bo(this, ao(o2), z); + }; + Cs.prototype = Q(us.prototype, { constructor: Cs, iter: function(t4, e3, n3) { + n3 ? this.iterN(t4 - this.first, e3 - t4, n3) : this.iterN(this.first, this.first + this.size, t4); + }, insert: function(t4, e3) { + for (var n3 = 0, r3 = 0; r3 < e3.length; ++r3) + n3 += e3[r3].height; + this.insertInner(t4 - this.first, e3, n3); + }, remove: function(t4, e3) { + this.removeInner(t4 - this.first, e3); + }, getValue: function(t4) { + var e3 = Qt(this, this.first, this.first + this.size); + return t4 === false ? e3 : e3.join(t4 || this.lineSeparator()); + }, setValue: Li(function(t4) { + var e3 = oe(this.first, 0), n3 = this.first + this.size - 1; + Xo(this, { from: e3, to: oe(n3, Jt(this, n3).text.length), text: this.splitLines(t4), origin: "setValue", full: true }, true), this.cm && li(this.cm, 0, 0), Bo(this, ao(e3), z); + }), replaceRange: function(t4, e3, n3, r3) { + is(this, t4, e3 = fe(this, e3), n3 = n3 ? fe(this, n3) : e3, r3); + }, getRange: function(t4, e3, n3) { + var r3 = Xt(this, fe(this, t4), fe(this, e3)); + return n3 === false ? r3 : n3 === "" ? r3.join("") : r3.join(n3 || this.lineSeparator()); + }, getLine: function(t4) { + var e3 = this.getLineHandle(t4); + return e3 && e3.text; + }, getLineHandle: function(t4) { + if (re(this, t4)) + return Jt(this, t4); + }, getLineNumber: function(t4) { + return ee(t4); + }, getLineHandleVisualStart: function(t4) { + return typeof t4 == "number" && (t4 = Jt(this, t4)), Xe(t4); + }, lineCount: function() { + return this.size; + }, firstLine: function() { + return this.first; + }, lastLine: function() { + return this.first + this.size - 1; + }, clipPos: function(t4) { + return fe(this, t4); + }, getCursor: function(t4) { + var e3 = this.sel.primary(); + return t4 == null || t4 == "head" ? e3.head : t4 == "anchor" ? e3.anchor : t4 == "end" || t4 == "to" || t4 === false ? e3.to() : e3.from(); + }, listSelections: function() { + return this.sel.ranges; + }, somethingSelected: function() { + return this.sel.somethingSelected(); + }, setCursor: Li(function(t4, e3, n3) { + Fo(this, fe(this, typeof t4 == "number" ? oe(t4, e3 || 0) : t4), null, n3); + }), setSelection: Li(function(t4, e3, n3) { + Fo(this, fe(this, t4), fe(this, e3 || t4), n3); + }), extendSelection: Li(function(t4, e3, n3) { + No(this, fe(this, t4), e3 && fe(this, e3), n3); + }), extendSelections: Li(function(t4, e3) { + Zo(this, pe(this, t4), e3); + }), extendSelectionsBy: Li(function(t4, e3) { + Zo(this, pe(this, Y(this.sel.ranges, t4)), e3); + }), setSelections: Li(function(t4, e3, n3) { + if (t4.length) { + for (var r3 = [], i2 = 0; i2 < t4.length; i2++) + r3[i2] = new oo(fe(this, t4[i2].anchor), fe(this, t4[i2].head || t4[i2].anchor)); + e3 == null && (e3 = Math.min(t4.length - 1, this.sel.primIndex)), Bo(this, so(this.cm, r3, e3), n3); + } + }), addSelection: Li(function(t4, e3, n3) { + var r3 = this.sel.ranges.slice(0); + r3.push(new oo(fe(this, t4), fe(this, e3 || t4))), Bo(this, so(this.cm, r3, r3.length - 1), n3); + }), getSelection: function(t4) { + for (var e3, n3 = this.sel.ranges, r3 = 0; r3 < n3.length; r3++) { + var i2 = Xt(this, n3[r3].from(), n3[r3].to()); + e3 = e3 ? e3.concat(i2) : i2; + } + return t4 === false ? e3 : e3.join(t4 || this.lineSeparator()); + }, getSelections: function(t4) { + for (var e3 = [], n3 = this.sel.ranges, r3 = 0; r3 < n3.length; r3++) { + var i2 = Xt(this, n3[r3].from(), n3[r3].to()); + t4 !== false && (i2 = i2.join(t4 || this.lineSeparator())), e3[r3] = i2; + } + return e3; + }, replaceSelection: function(t4, e3, n3) { + for (var r3 = [], i2 = 0; i2 < this.sel.ranges.length; i2++) + r3[i2] = t4; + this.replaceSelections(r3, e3, n3 || "+input"); + }, replaceSelections: Li(function(t4, e3, n3) { + for (var r3 = [], i2 = this.sel, o2 = 0; o2 < i2.ranges.length; o2++) { + var s2 = i2.ranges[o2]; + r3[o2] = { from: s2.from(), to: s2.to(), text: this.splitLines(t4[o2]), origin: n3 }; + } + for (var a2 = e3 && e3 != "end" && fo(this, r3, e3), l2 = r3.length - 1; l2 >= 0; l2--) + Xo(this, r3[l2]); + a2 ? Ho(this, a2) : this.cm && ai(this.cm); + }), undo: Li(function() { + ts(this, "undo"); + }), redo: Li(function() { + ts(this, "redo"); + }), undoSelection: Li(function() { + ts(this, "undo", true); + }), redoSelection: Li(function() { + ts(this, "redo", true); + }), setExtending: function(t4) { + this.extend = t4; + }, getExtending: function() { + return this.extend; + }, historySize: function() { + for (var t4 = this.history, e3 = 0, n3 = 0, r3 = 0; r3 < t4.done.length; r3++) + t4.done[r3].ranges || ++e3; + for (var i2 = 0; i2 < t4.undone.length; i2++) + t4.undone[i2].ranges || ++n3; + return { undo: e3, redo: n3 }; + }, clearHistory: function() { + var t4 = this; + this.history = new Oo(this.history), yo(this, function(e3) { + return e3.history = t4.history; + }, true); + }, markClean: function() { + this.cleanGeneration = this.changeGeneration(true); + }, changeGeneration: function(t4) { + return t4 && (this.history.lastOp = this.history.lastSelOp = this.history.lastOrigin = null), this.history.generation; + }, isClean: function(t4) { + return this.history.generation == (t4 || this.cleanGeneration); + }, getHistory: function() { + return { done: Lo(this.history.done), undone: Lo(this.history.undone) }; + }, setHistory: function(t4) { + var e3 = this.history = new Oo(this.history); + e3.done = Lo(t4.done.slice(0), null, true), e3.undone = Lo(t4.undone.slice(0), null, true); + }, setGutterMarker: Li(function(t4, e3, n3) { + return ls(this, t4, "gutter", function(t5) { + var r3 = t5.gutterMarkers || (t5.gutterMarkers = {}); + return r3[e3] = n3, !n3 && rt(r3) && (t5.gutterMarkers = null), true; + }); + }), clearGutter: Li(function(t4) { + var e3 = this; + this.iter(function(n3) { + n3.gutterMarkers && n3.gutterMarkers[t4] && ls(e3, n3, "gutter", function() { + return n3.gutterMarkers[t4] = null, rt(n3.gutterMarkers) && (n3.gutterMarkers = null), true; + }); + }); + }), lineInfo: function(t4) { + var e3; + if (typeof t4 == "number") { + if (!re(this, t4)) + return null; + if (e3 = t4, !(t4 = Jt(this, t4))) + return null; + } else if ((e3 = ee(t4)) == null) + return null; + return { line: e3, handle: t4, text: t4.text, gutterMarkers: t4.gutterMarkers, textClass: t4.textClass, bgClass: t4.bgClass, wrapClass: t4.wrapClass, widgets: t4.widgets }; + }, addLineClass: Li(function(t4, e3, n3) { + return ls(this, t4, e3 == "gutter" ? "gutter" : "class", function(t5) { + var r3 = e3 == "text" ? "textClass" : e3 == "background" ? "bgClass" : e3 == "gutter" ? "gutterClass" : "wrapClass"; + if (t5[r3]) { + if (k(n3).test(t5[r3])) + return false; + t5[r3] += " " + n3; + } else + t5[r3] = n3; + return true; + }); + }), removeLineClass: Li(function(t4, e3, n3) { + return ls(this, t4, e3 == "gutter" ? "gutter" : "class", function(t5) { + var r3 = e3 == "text" ? "textClass" : e3 == "background" ? "bgClass" : e3 == "gutter" ? "gutterClass" : "wrapClass", i2 = t5[r3]; + if (!i2) + return false; + if (n3 == null) + t5[r3] = null; + else { + var o2 = i2.match(k(n3)); + if (!o2) + return false; + var s2 = o2.index + o2[0].length; + t5[r3] = i2.slice(0, o2.index) + (o2.index && s2 != i2.length ? " " : "") + i2.slice(s2) || null; + } + return true; + }); + }), addLineWidget: Li(function(t4, e3, n3) { + return ds(this, t4, e3, n3); + }), removeLineWidget: function(t4) { + t4.clear(); + }, markText: function(t4, e3, n3) { + return vs(this, fe(this, t4), fe(this, e3), n3, n3 && n3.type || "range"); + }, setBookmark: function(t4, e3) { + var n3 = { replacedWith: e3 && (e3.nodeType == null ? e3.widget : e3), insertLeft: e3 && e3.insertLeft, clearWhenEmpty: false, shared: e3 && e3.shared, handleMouseEvents: e3 && e3.handleMouseEvents }; + return vs(this, t4 = fe(this, t4), t4, n3, "bookmark"); + }, findMarksAt: function(t4) { + var e3 = [], n3 = Jt(this, (t4 = fe(this, t4)).line).markedSpans; + if (n3) + for (var r3 = 0; r3 < n3.length; ++r3) { + var i2 = n3[r3]; + (i2.from == null || i2.from <= t4.ch) && (i2.to == null || i2.to >= t4.ch) && e3.push(i2.marker.parent || i2.marker); + } + return e3; + }, findMarks: function(t4, e3, n3) { + t4 = fe(this, t4), e3 = fe(this, e3); + var r3 = [], i2 = t4.line; + return this.iter(t4.line, e3.line + 1, function(o2) { + var s2 = o2.markedSpans; + if (s2) + for (var a2 = 0; a2 < s2.length; a2++) { + var l2 = s2[a2]; + l2.to != null && i2 == t4.line && t4.ch >= l2.to || l2.from == null && i2 != t4.line || l2.from != null && i2 == e3.line && l2.from >= e3.ch || n3 && !n3(l2.marker) || r3.push(l2.marker.parent || l2.marker); + } + ++i2; + }), r3; + }, getAllMarks: function() { + var t4 = []; + return this.iter(function(e3) { + var n3 = e3.markedSpans; + if (n3) + for (var r3 = 0; r3 < n3.length; ++r3) + n3[r3].from != null && t4.push(n3[r3].marker); + }), t4; + }, posFromIndex: function(t4) { + var e3, n3 = this.first, r3 = this.lineSeparator().length; + return this.iter(function(i2) { + var o2 = i2.text.length + r3; + if (o2 > t4) + return e3 = t4, true; + t4 -= o2, ++n3; + }), fe(this, oe(n3, e3)); + }, indexFromPos: function(t4) { + var e3 = (t4 = fe(this, t4)).ch; + if (t4.line < this.first || t4.ch < 0) + return 0; + var n3 = this.lineSeparator().length; + return this.iter(this.first, t4.line, function(t5) { + e3 += t5.text.length + n3; + }), e3; + }, copy: function(t4) { + var e3 = new Cs(Qt(this, this.first, this.first + this.size), this.modeOption, this.first, this.lineSep, this.direction); + return e3.scrollTop = this.scrollTop, e3.scrollLeft = this.scrollLeft, e3.sel = this.sel, e3.extend = false, t4 && (e3.history.undoDepth = this.history.undoDepth, e3.setHistory(this.getHistory())), e3; + }, linkedDoc: function(t4) { + t4 || (t4 = {}); + var e3 = this.first, n3 = this.first + this.size; + t4.from != null && t4.from > e3 && (e3 = t4.from), t4.to != null && t4.to < n3 && (n3 = t4.to); + var r3 = new Cs(Qt(this, e3, n3), t4.mode || this.modeOption, e3, this.lineSep, this.direction); + return t4.sharedHist && (r3.history = this.history), (this.linked || (this.linked = [])).push({ doc: r3, sharedHist: t4.sharedHist }), r3.linked = [{ doc: this, isParent: true, sharedHist: t4.sharedHist }], ws(r3, bs(this)), r3; + }, unlinkDoc: function(t4) { + if (t4 instanceof Za && (t4 = t4.doc), this.linked) { + for (var e3 = 0; e3 < this.linked.length; ++e3) + if (this.linked[e3].doc == t4) { + this.linked.splice(e3, 1), t4.unlinkDoc(this), xs(bs(this)); + break; + } + } + if (t4.history == this.history) { + var n3 = [t4.id]; + yo(t4, function(t5) { + return n3.push(t5.id); + }, true), t4.history = new Oo(null), t4.history.done = Lo(this.history.done, n3), t4.history.undone = Lo(this.history.undone, n3); + } + }, iterLinkedDocs: function(t4) { + yo(this, t4); + }, getMode: function() { + return this.mode; + }, getEditor: function() { + return this.cm; + }, splitLines: function(t4) { + return this.lineSep ? t4.split(this.lineSep) : Lt(t4); + }, lineSeparator: function() { + return this.lineSep || "\n"; + }, setDirection: Li(function(t4) { + t4 != "rtl" && (t4 = "ltr"), t4 != this.direction && (this.direction = t4, this.iter(function(t5) { + return t5.order = null; + }), this.cm && xo(this.cm)); + }) }), Cs.prototype.eachLine = Cs.prototype.iter; + var ks = 0; + function Ss(t4) { + var e3 = this; + if (Ts(e3), !yt(e3, t4) && !Un(e3.display, t4)) { + Ot(t4), s && (ks = +new Date()); + var n3 = Rr(e3, t4, true), r3 = t4.dataTransfer.files; + if (n3 && !e3.isReadOnly()) + if (r3 && r3.length && window.FileReader && window.File) + for (var i2 = r3.length, o2 = Array(i2), a2 = 0, l2 = function() { + ++a2 == i2 && Mi(e3, function() { + var t5 = { from: n3 = fe(e3.doc, n3), to: n3, text: e3.doc.splitLines(o2.filter(function(t6) { + return t6 != null; + }).join(e3.doc.lineSeparator())), origin: "paste" }; + Xo(e3.doc, t5), Ho(e3.doc, ao(fe(e3.doc, n3), fe(e3.doc, lo(t5)))); + })(); + }, c2 = function(t5, n4) { + if (e3.options.allowDropFileTypes && V(e3.options.allowDropFileTypes, t5.type) == -1) + l2(); + else { + var r4 = new FileReader(); + r4.onerror = function() { + return l2(); + }, r4.onload = function() { + var t6 = r4.result; + /[\x00-\x08\x0e-\x1f]{2}/.test(t6) || (o2[n4] = t6), l2(); + }, r4.readAsText(t5); + } + }, u2 = 0; u2 < r3.length; u2++) + c2(r3[u2], u2); + else { + if (e3.state.draggingText && e3.doc.sel.contains(n3) > -1) + return e3.state.draggingText(t4), void setTimeout(function() { + return e3.display.input.focus(); + }, 20); + try { + var h2 = t4.dataTransfer.getData("Text"); + if (h2) { + var f2; + if (e3.state.draggingText && !e3.state.draggingText.copy && (f2 = e3.listSelections()), zo(e3.doc, ao(n3, n3)), f2) + for (var d2 = 0; d2 < f2.length; ++d2) + is(e3.doc, "", f2[d2].anchor, f2[d2].head, "drag"); + e3.replaceSelection(h2, "around", "paste"), e3.display.input.focus(); + } + } catch (t5) { + } + } + } + } + function Ps(t4, e3) { + if (s && (!t4.state.draggingText || +new Date() - ks < 100)) + St(e3); + else if (!yt(t4, e3) && !Un(t4.display, e3) && (e3.dataTransfer.setData("Text", t4.getSelection()), e3.dataTransfer.effectAllowed = "copyMove", e3.dataTransfer.setDragImage && !f)) { + var n3 = E("img", null, null, "position: fixed; left: 0; top: 0;"); + n3.src = "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==", h && (n3.width = n3.height = 1, t4.display.wrapper.appendChild(n3), n3._top = n3.offsetTop), e3.dataTransfer.setDragImage(n3, 0, 0), h && n3.parentNode.removeChild(n3); + } + } + function _s(t4, e3) { + var n3 = Rr(t4, e3); + if (n3) { + var r3 = document.createDocumentFragment(); + Wr(t4, n3, r3), t4.display.dragCursor || (t4.display.dragCursor = E("div", null, "CodeMirror-cursors CodeMirror-dragcursors"), t4.display.lineSpace.insertBefore(t4.display.dragCursor, t4.display.cursorDiv)), T(t4.display.dragCursor, r3); + } + } + function Ts(t4) { + t4.display.dragCursor && (t4.display.lineSpace.removeChild(t4.display.dragCursor), t4.display.dragCursor = null); + } + function Es(t4) { + if (document.getElementsByClassName) { + for (var e3 = document.getElementsByClassName("CodeMirror"), n3 = [], r3 = 0; r3 < e3.length; r3++) { + var i2 = e3[r3].CodeMirror; + i2 && n3.push(i2); + } + n3.length && n3[0].operation(function() { + for (var e4 = 0; e4 < n3.length; e4++) + t4(n3[e4]); + }); + } + } + var js = false; + function Ds() { + js || (Ms(), js = true); + } + function Ms() { + var t4; + pt(window, "resize", function() { + t4 == null && (t4 = setTimeout(function() { + t4 = null, Es(As); + }, 100)); + }), pt(window, "blur", function() { + return Es(Xr); + }); + } + function As(t4) { + var e3 = t4.display; + e3.cachedCharWidth = e3.cachedTextHeight = e3.cachedPaddingH = null, e3.scrollbarsClipped = false, t4.setSize(); + } + for (var Ls = { 3: "Pause", 8: "Backspace", 9: "Tab", 13: "Enter", 16: "Shift", 17: "Ctrl", 18: "Alt", 19: "Pause", 20: "CapsLock", 27: "Esc", 32: "Space", 33: "PageUp", 34: "PageDown", 35: "End", 36: "Home", 37: "Left", 38: "Up", 39: "Right", 40: "Down", 44: "PrintScrn", 45: "Insert", 46: "Delete", 59: ";", 61: "=", 91: "Mod", 92: "Mod", 93: "Mod", 106: "*", 107: "=", 109: "-", 110: ".", 111: "/", 145: "ScrollLock", 173: "-", 186: ";", 187: "=", 188: ",", 189: "-", 190: ".", 191: "/", 192: "`", 219: "[", 220: "\\", 221: "]", 222: "'", 224: "Mod", 63232: "Up", 63233: "Down", 63234: "Left", 63235: "Right", 63272: "Delete", 63273: "Home", 63275: "End", 63276: "PageUp", 63277: "PageDown", 63302: "Insert" }, Rs = 0; Rs < 10; Rs++) + Ls[Rs + 48] = Ls[Rs + 96] = String(Rs); + for (var Ns = 65; Ns <= 90; Ns++) + Ls[Ns] = String.fromCharCode(Ns); + for (var Zs = 1; Zs <= 12; Zs++) + Ls[Zs + 111] = Ls[Zs + 63235] = "F" + Zs; + var Is = {}; + function Fs(t4) { + var e3, n3, r3, i2, o2 = t4.split(/-(?!$)/); + t4 = o2[o2.length - 1]; + for (var s2 = 0; s2 < o2.length - 1; s2++) { + var a2 = o2[s2]; + if (/^(cmd|meta|m)$/i.test(a2)) + i2 = true; + else if (/^a(lt)?$/i.test(a2)) + e3 = true; + else if (/^(c|ctrl|control)$/i.test(a2)) + n3 = true; + else { + if (!/^s(hift)?$/i.test(a2)) + throw new Error("Unrecognized modifier name: " + a2); + r3 = true; + } + } + return e3 && (t4 = "Alt-" + t4), n3 && (t4 = "Ctrl-" + t4), i2 && (t4 = "Cmd-" + t4), r3 && (t4 = "Shift-" + t4), t4; + } + function Vs(t4) { + var e3 = {}; + for (var n3 in t4) + if (t4.hasOwnProperty(n3)) { + var r3 = t4[n3]; + if (/^(name|fallthrough|(de|at)tach)$/.test(n3)) + continue; + if (r3 == "...") { + delete t4[n3]; + continue; + } + for (var i2 = Y(n3.split(" "), Fs), o2 = 0; o2 < i2.length; o2++) { + var s2 = void 0, a2 = void 0; + o2 == i2.length - 1 ? (a2 = i2.join(" "), s2 = r3) : (a2 = i2.slice(0, o2 + 1).join(" "), s2 = "..."); + var l2 = e3[a2]; + if (l2) { + if (l2 != s2) + throw new Error("Inconsistent bindings for " + a2); + } else + e3[a2] = s2; + } + delete t4[n3]; + } + for (var c2 in e3) + t4[c2] = e3[c2]; + return t4; + } + function Hs(t4, e3, n3, r3) { + var i2 = (e3 = Ws(e3)).call ? e3.call(t4, r3) : e3[t4]; + if (i2 === false) + return "nothing"; + if (i2 === "...") + return "multi"; + if (i2 != null && n3(i2)) + return "handled"; + if (e3.fallthrough) { + if (Object.prototype.toString.call(e3.fallthrough) != "[object Array]") + return Hs(t4, e3.fallthrough, n3, r3); + for (var o2 = 0; o2 < e3.fallthrough.length; o2++) { + var s2 = Hs(t4, e3.fallthrough[o2], n3, r3); + if (s2) + return s2; + } + } + } + function Bs(t4) { + var e3 = typeof t4 == "string" ? t4 : Ls[t4.keyCode]; + return e3 == "Ctrl" || e3 == "Alt" || e3 == "Shift" || e3 == "Mod"; + } + function zs(t4, e3, n3) { + var r3 = t4; + return e3.altKey && r3 != "Alt" && (t4 = "Alt-" + t4), (O ? e3.metaKey : e3.ctrlKey) && r3 != "Ctrl" && (t4 = "Ctrl-" + t4), (O ? e3.ctrlKey : e3.metaKey) && r3 != "Mod" && (t4 = "Cmd-" + t4), !n3 && e3.shiftKey && r3 != "Shift" && (t4 = "Shift-" + t4), t4; + } + function Us(t4, e3) { + if (h && t4.keyCode == 34 && t4.char) + return false; + var n3 = Ls[t4.keyCode]; + return n3 != null && !t4.altGraphKey && (t4.keyCode == 3 && t4.code && (n3 = t4.code), zs(n3, t4, e3)); + } + function Ws(t4) { + return typeof t4 == "string" ? Is[t4] : t4; + } + function $s(t4, e3) { + for (var n3 = t4.doc.sel.ranges, r3 = [], i2 = 0; i2 < n3.length; i2++) { + for (var o2 = e3(n3[i2]); r3.length && se(o2.from, K(r3).to) <= 0; ) { + var s2 = r3.pop(); + if (se(s2.from, o2.from) < 0) { + o2.from = s2.from; + break; + } + } + r3.push(o2); + } + Di(t4, function() { + for (var e4 = r3.length - 1; e4 >= 0; e4--) + is(t4.doc, "", r3[e4].from, r3[e4].to, "+delete"); + ai(t4); + }); + } + function qs(t4, e3, n3) { + var r3 = st(t4.text, e3 + n3, n3); + return r3 < 0 || r3 > t4.text.length ? null : r3; + } + function Gs(t4, e3, n3) { + var r3 = qs(t4, e3.ch, n3); + return r3 == null ? null : new oe(e3.line, r3, n3 < 0 ? "after" : "before"); + } + function Ks(t4, e3, n3, r3, i2) { + if (t4) { + e3.doc.direction == "rtl" && (i2 = -i2); + var o2 = ft(n3, e3.doc.direction); + if (o2) { + var s2, a2 = i2 < 0 ? K(o2) : o2[0], l2 = i2 < 0 == (a2.level == 1) ? "after" : "before"; + if (a2.level > 0 || e3.doc.direction == "rtl") { + var c2 = nr(e3, n3); + s2 = i2 < 0 ? n3.text.length - 1 : 0; + var u2 = rr(e3, c2, s2).top; + s2 = at(function(t5) { + return rr(e3, c2, t5).top == u2; + }, i2 < 0 == (a2.level == 1) ? a2.from : a2.to - 1, s2), l2 == "before" && (s2 = qs(n3, s2, 1)); + } else + s2 = i2 < 0 ? a2.to : a2.from; + return new oe(r3, s2, l2); + } + } + return new oe(r3, i2 < 0 ? n3.text.length : 0, i2 < 0 ? "before" : "after"); + } + function Ys(t4, e3, n3, r3) { + var i2 = ft(e3, t4.doc.direction); + if (!i2) + return Gs(e3, n3, r3); + n3.ch >= e3.text.length ? (n3.ch = e3.text.length, n3.sticky = "before") : n3.ch <= 0 && (n3.ch = 0, n3.sticky = "after"); + var o2 = ut(i2, n3.ch, n3.sticky), s2 = i2[o2]; + if (t4.doc.direction == "ltr" && s2.level % 2 == 0 && (r3 > 0 ? s2.to > n3.ch : s2.from < n3.ch)) + return Gs(e3, n3, r3); + var a2, l2 = function(t5, n4) { + return qs(e3, t5 instanceof oe ? t5.ch : t5, n4); + }, c2 = function(n4) { + return t4.options.lineWrapping ? (a2 = a2 || nr(t4, e3), kr(t4, e3, a2, n4)) : { begin: 0, end: e3.text.length }; + }, u2 = c2(n3.sticky == "before" ? l2(n3, -1) : n3.ch); + if (t4.doc.direction == "rtl" || s2.level == 1) { + var h2 = s2.level == 1 == r3 < 0, f2 = l2(n3, h2 ? 1 : -1); + if (f2 != null && (h2 ? f2 <= s2.to && f2 <= u2.end : f2 >= s2.from && f2 >= u2.begin)) { + var d2 = h2 ? "before" : "after"; + return new oe(n3.line, f2, d2); + } + } + var p2 = function(t5, e4, r4) { + for (var o3 = function(t6, e5) { + return e5 ? new oe(n3.line, l2(t6, 1), "before") : new oe(n3.line, t6, "after"); + }; t5 >= 0 && t5 < i2.length; t5 += e4) { + var s3 = i2[t5], a3 = e4 > 0 == (s3.level != 1), c3 = a3 ? r4.begin : l2(r4.end, -1); + if (s3.from <= c3 && c3 < s3.to) + return o3(c3, a3); + if (c3 = a3 ? s3.from : l2(s3.to, -1), r4.begin <= c3 && c3 < r4.end) + return o3(c3, a3); + } + }, g2 = p2(o2 + r3, r3, u2); + if (g2) + return g2; + var v2 = r3 > 0 ? u2.end : l2(u2.begin, -1); + return v2 == null || r3 > 0 && v2 == e3.text.length || !(g2 = p2(r3 > 0 ? 0 : i2.length - 1, r3, c2(v2))) ? null : g2; + } + Is.basic = { Left: "goCharLeft", Right: "goCharRight", Up: "goLineUp", Down: "goLineDown", End: "goLineEnd", Home: "goLineStartSmart", PageUp: "goPageUp", PageDown: "goPageDown", Delete: "delCharAfter", Backspace: "delCharBefore", "Shift-Backspace": "delCharBefore", Tab: "defaultTab", "Shift-Tab": "indentAuto", Enter: "newlineAndIndent", Insert: "toggleOverwrite", Esc: "singleSelection" }, Is.pcDefault = { "Ctrl-A": "selectAll", "Ctrl-D": "deleteLine", "Ctrl-Z": "undo", "Shift-Ctrl-Z": "redo", "Ctrl-Y": "redo", "Ctrl-Home": "goDocStart", "Ctrl-End": "goDocEnd", "Ctrl-Up": "goLineUp", "Ctrl-Down": "goLineDown", "Ctrl-Left": "goGroupLeft", "Ctrl-Right": "goGroupRight", "Alt-Left": "goLineStart", "Alt-Right": "goLineEnd", "Ctrl-Backspace": "delGroupBefore", "Ctrl-Delete": "delGroupAfter", "Ctrl-S": "save", "Ctrl-F": "find", "Ctrl-G": "findNext", "Shift-Ctrl-G": "findPrev", "Shift-Ctrl-F": "replace", "Shift-Ctrl-R": "replaceAll", "Ctrl-[": "indentLess", "Ctrl-]": "indentMore", "Ctrl-U": "undoSelection", "Shift-Ctrl-U": "redoSelection", "Alt-U": "redoSelection", fallthrough: "basic" }, Is.emacsy = { "Ctrl-F": "goCharRight", "Ctrl-B": "goCharLeft", "Ctrl-P": "goLineUp", "Ctrl-N": "goLineDown", "Ctrl-A": "goLineStart", "Ctrl-E": "goLineEnd", "Ctrl-V": "goPageDown", "Shift-Ctrl-V": "goPageUp", "Ctrl-D": "delCharAfter", "Ctrl-H": "delCharBefore", "Alt-Backspace": "delWordBefore", "Ctrl-K": "killLine", "Ctrl-T": "transposeChars", "Ctrl-O": "openLine" }, Is.macDefault = { "Cmd-A": "selectAll", "Cmd-D": "deleteLine", "Cmd-Z": "undo", "Shift-Cmd-Z": "redo", "Cmd-Y": "redo", "Cmd-Home": "goDocStart", "Cmd-Up": "goDocStart", "Cmd-End": "goDocEnd", "Cmd-Down": "goDocEnd", "Alt-Left": "goGroupLeft", "Alt-Right": "goGroupRight", "Cmd-Left": "goLineLeft", "Cmd-Right": "goLineRight", "Alt-Backspace": "delGroupBefore", "Ctrl-Alt-Backspace": "delGroupAfter", "Alt-Delete": "delGroupAfter", "Cmd-S": "save", "Cmd-F": "find", "Cmd-G": "findNext", "Shift-Cmd-G": "findPrev", "Cmd-Alt-F": "replace", "Shift-Cmd-Alt-F": "replaceAll", "Cmd-[": "indentLess", "Cmd-]": "indentMore", "Cmd-Backspace": "delWrappedLineLeft", "Cmd-Delete": "delWrappedLineRight", "Cmd-U": "undoSelection", "Shift-Cmd-U": "redoSelection", "Ctrl-Up": "goDocStart", "Ctrl-Down": "goDocEnd", fallthrough: ["basic", "emacsy"] }, Is.default = y ? Is.macDefault : Is.pcDefault; + var Js = { selectAll: Yo, singleSelection: function(t4) { + return t4.setSelection(t4.getCursor("anchor"), t4.getCursor("head"), z); + }, killLine: function(t4) { + return $s(t4, function(e3) { + if (e3.empty()) { + var n3 = Jt(t4.doc, e3.head.line).text.length; + return e3.head.ch == n3 && e3.head.line < t4.lastLine() ? { from: e3.head, to: oe(e3.head.line + 1, 0) } : { from: e3.head, to: oe(e3.head.line, n3) }; + } + return { from: e3.from(), to: e3.to() }; + }); + }, deleteLine: function(t4) { + return $s(t4, function(e3) { + return { from: oe(e3.from().line, 0), to: fe(t4.doc, oe(e3.to().line + 1, 0)) }; + }); + }, delLineLeft: function(t4) { + return $s(t4, function(t5) { + return { from: oe(t5.from().line, 0), to: t5.from() }; + }); + }, delWrappedLineLeft: function(t4) { + return $s(t4, function(e3) { + var n3 = t4.charCoords(e3.head, "div").top + 5; + return { from: t4.coordsChar({ left: 0, top: n3 }, "div"), to: e3.from() }; + }); + }, delWrappedLineRight: function(t4) { + return $s(t4, function(e3) { + var n3 = t4.charCoords(e3.head, "div").top + 5, r3 = t4.coordsChar({ left: t4.display.lineDiv.offsetWidth + 100, top: n3 }, "div"); + return { from: e3.from(), to: r3 }; + }); + }, undo: function(t4) { + return t4.undo(); + }, redo: function(t4) { + return t4.redo(); + }, undoSelection: function(t4) { + return t4.undoSelection(); + }, redoSelection: function(t4) { + return t4.redoSelection(); + }, goDocStart: function(t4) { + return t4.extendSelection(oe(t4.firstLine(), 0)); + }, goDocEnd: function(t4) { + return t4.extendSelection(oe(t4.lastLine())); + }, goLineStart: function(t4) { + return t4.extendSelectionsBy(function(e3) { + return Xs(t4, e3.head.line); + }, { origin: "+move", bias: 1 }); + }, goLineStartSmart: function(t4) { + return t4.extendSelectionsBy(function(e3) { + return ta(t4, e3.head); + }, { origin: "+move", bias: 1 }); + }, goLineEnd: function(t4) { + return t4.extendSelectionsBy(function(e3) { + return Qs(t4, e3.head.line); + }, { origin: "+move", bias: -1 }); + }, goLineRight: function(t4) { + return t4.extendSelectionsBy(function(e3) { + var n3 = t4.cursorCoords(e3.head, "div").top + 5; + return t4.coordsChar({ left: t4.display.lineDiv.offsetWidth + 100, top: n3 }, "div"); + }, W); + }, goLineLeft: function(t4) { + return t4.extendSelectionsBy(function(e3) { + var n3 = t4.cursorCoords(e3.head, "div").top + 5; + return t4.coordsChar({ left: 0, top: n3 }, "div"); + }, W); + }, goLineLeftSmart: function(t4) { + return t4.extendSelectionsBy(function(e3) { + var n3 = t4.cursorCoords(e3.head, "div").top + 5, r3 = t4.coordsChar({ left: 0, top: n3 }, "div"); + return r3.ch < t4.getLine(r3.line).search(/\S/) ? ta(t4, e3.head) : r3; + }, W); + }, goLineUp: function(t4) { + return t4.moveV(-1, "line"); + }, goLineDown: function(t4) { + return t4.moveV(1, "line"); + }, goPageUp: function(t4) { + return t4.moveV(-1, "page"); + }, goPageDown: function(t4) { + return t4.moveV(1, "page"); + }, goCharLeft: function(t4) { + return t4.moveH(-1, "char"); + }, goCharRight: function(t4) { + return t4.moveH(1, "char"); + }, goColumnLeft: function(t4) { + return t4.moveH(-1, "column"); + }, goColumnRight: function(t4) { + return t4.moveH(1, "column"); + }, goWordLeft: function(t4) { + return t4.moveH(-1, "word"); + }, goGroupRight: function(t4) { + return t4.moveH(1, "group"); + }, goGroupLeft: function(t4) { + return t4.moveH(-1, "group"); + }, goWordRight: function(t4) { + return t4.moveH(1, "word"); + }, delCharBefore: function(t4) { + return t4.deleteH(-1, "codepoint"); + }, delCharAfter: function(t4) { + return t4.deleteH(1, "char"); + }, delWordBefore: function(t4) { + return t4.deleteH(-1, "word"); + }, delWordAfter: function(t4) { + return t4.deleteH(1, "word"); + }, delGroupBefore: function(t4) { + return t4.deleteH(-1, "group"); + }, delGroupAfter: function(t4) { + return t4.deleteH(1, "group"); + }, indentAuto: function(t4) { + return t4.indentSelection("smart"); + }, indentMore: function(t4) { + return t4.indentSelection("add"); + }, indentLess: function(t4) { + return t4.indentSelection("subtract"); + }, insertTab: function(t4) { + return t4.replaceSelection(" "); + }, insertSoftTab: function(t4) { + for (var e3 = [], n3 = t4.listSelections(), r3 = t4.options.tabSize, i2 = 0; i2 < n3.length; i2++) { + var o2 = n3[i2].from(), s2 = I(t4.getLine(o2.line), o2.ch, r3); + e3.push(G(r3 - s2 % r3)); + } + t4.replaceSelections(e3); + }, defaultTab: function(t4) { + t4.somethingSelected() ? t4.indentSelection("add") : t4.execCommand("insertTab"); + }, transposeChars: function(t4) { + return Di(t4, function() { + for (var e3 = t4.listSelections(), n3 = [], r3 = 0; r3 < e3.length; r3++) + if (e3[r3].empty()) { + var i2 = e3[r3].head, o2 = Jt(t4.doc, i2.line).text; + if (o2) { + if (i2.ch == o2.length && (i2 = new oe(i2.line, i2.ch - 1)), i2.ch > 0) + i2 = new oe(i2.line, i2.ch + 1), t4.replaceRange(o2.charAt(i2.ch - 1) + o2.charAt(i2.ch - 2), oe(i2.line, i2.ch - 2), i2, "+transpose"); + else if (i2.line > t4.doc.first) { + var s2 = Jt(t4.doc, i2.line - 1).text; + s2 && (i2 = new oe(i2.line, 1), t4.replaceRange(o2.charAt(0) + t4.doc.lineSeparator() + s2.charAt(s2.length - 1), oe(i2.line - 1, s2.length - 1), i2, "+transpose")); + } + } + n3.push(new oo(i2, i2)); + } + t4.setSelections(n3); + }); + }, newlineAndIndent: function(t4) { + return Di(t4, function() { + for (var e3 = t4.listSelections(), n3 = e3.length - 1; n3 >= 0; n3--) + t4.replaceRange(t4.doc.lineSeparator(), e3[n3].anchor, e3[n3].head, "+input"); + e3 = t4.listSelections(); + for (var r3 = 0; r3 < e3.length; r3++) + t4.indentLine(e3[r3].from().line, null, true); + ai(t4); + }); + }, openLine: function(t4) { + return t4.replaceSelection("\n", "start"); + }, toggleOverwrite: function(t4) { + return t4.toggleOverwrite(); + } }; + function Xs(t4, e3) { + var n3 = Jt(t4.doc, e3), r3 = Xe(n3); + return r3 != n3 && (e3 = ee(r3)), Ks(true, t4, r3, e3, 1); + } + function Qs(t4, e3) { + var n3 = Jt(t4.doc, e3), r3 = Qe(n3); + return r3 != n3 && (e3 = ee(r3)), Ks(true, t4, n3, e3, -1); + } + function ta(t4, e3) { + var n3 = Xs(t4, e3.line), r3 = Jt(t4.doc, n3.line), i2 = ft(r3, t4.doc.direction); + if (!i2 || i2[0].level == 0) { + var o2 = Math.max(n3.ch, r3.text.search(/\S/)), s2 = e3.line == n3.line && e3.ch <= o2 && e3.ch; + return oe(n3.line, s2 ? 0 : o2, n3.sticky); + } + return n3; + } + function ea(t4, e3, n3) { + if (typeof e3 == "string" && !(e3 = Js[e3])) + return false; + t4.display.input.ensurePolled(); + var r3 = t4.display.shift, i2 = false; + try { + t4.isReadOnly() && (t4.state.suppressEdits = true), n3 && (t4.display.shift = false), i2 = e3(t4) != B; + } finally { + t4.display.shift = r3, t4.state.suppressEdits = false; + } + return i2; + } + function na(t4, e3, n3) { + for (var r3 = 0; r3 < t4.state.keyMaps.length; r3++) { + var i2 = Hs(e3, t4.state.keyMaps[r3], n3, t4); + if (i2) + return i2; + } + return t4.options.extraKeys && Hs(e3, t4.options.extraKeys, n3, t4) || Hs(e3, t4.options.keyMap, n3, t4); + } + var ra = new F(); + function ia(t4, e3, n3, r3) { + var i2 = t4.state.keySeq; + if (i2) { + if (Bs(e3)) + return "handled"; + if (/\'$/.test(e3) ? t4.state.keySeq = null : ra.set(50, function() { + t4.state.keySeq == i2 && (t4.state.keySeq = null, t4.display.input.reset()); + }), oa(t4, i2 + " " + e3, n3, r3)) + return true; + } + return oa(t4, e3, n3, r3); + } + function oa(t4, e3, n3, r3) { + var i2 = na(t4, e3, r3); + return i2 == "multi" && (t4.state.keySeq = e3), i2 == "handled" && En(t4, "keyHandled", t4, e3, n3), i2 != "handled" && i2 != "multi" || (Ot(n3), Gr(t4)), !!i2; + } + function sa(t4, e3) { + var n3 = Us(e3, true); + return !!n3 && (e3.shiftKey && !t4.state.keySeq ? ia(t4, "Shift-" + n3, e3, function(e4) { + return ea(t4, e4, true); + }) || ia(t4, n3, e3, function(e4) { + if (typeof e4 == "string" ? /^go[A-Z]/.test(e4) : e4.motion) + return ea(t4, e4); + }) : ia(t4, n3, e3, function(e4) { + return ea(t4, e4); + })); + } + function aa(t4, e3, n3) { + return ia(t4, "'" + n3 + "'", e3, function(e4) { + return ea(t4, e4, true); + }); + } + var la = null; + function ca(t4) { + var e3 = this; + if (!(t4.target && t4.target != e3.display.input.getField() || (e3.curOp.focus = M(), yt(e3, t4)))) { + s && a < 11 && t4.keyCode == 27 && (t4.returnValue = false); + var r3 = t4.keyCode; + e3.display.shift = r3 == 16 || t4.shiftKey; + var i2 = sa(e3, t4); + h && (la = i2 ? r3 : null, i2 || r3 != 88 || Nt || !(y ? t4.metaKey : t4.ctrlKey) || e3.replaceSelection("", null, "cut")), n2 && !y && !i2 && r3 == 46 && t4.shiftKey && !t4.ctrlKey && document.execCommand && document.execCommand("cut"), r3 != 18 || /\bCodeMirror-crosshair\b/.test(e3.display.lineDiv.className) || ua(e3); + } + } + function ua(t4) { + var e3 = t4.display.lineDiv; + function n3(t5) { + t5.keyCode != 18 && t5.altKey || (P(e3, "CodeMirror-crosshair"), vt(document, "keyup", n3), vt(document, "mouseover", n3)); + } + A(e3, "CodeMirror-crosshair"), pt(document, "keyup", n3), pt(document, "mouseover", n3); + } + function ha(t4) { + t4.keyCode == 16 && (this.doc.sel.shift = false), yt(this, t4); + } + function fa(t4) { + var e3 = this; + if (!(t4.target && t4.target != e3.display.input.getField() || Un(e3.display, t4) || yt(e3, t4) || t4.ctrlKey && !t4.altKey || y && t4.metaKey)) { + var n3 = t4.keyCode, r3 = t4.charCode; + if (h && n3 == la) + return la = null, void Ot(t4); + if (!h || t4.which && !(t4.which < 10) || !sa(e3, t4)) { + var i2 = String.fromCharCode(r3 == null ? n3 : r3); + i2 != "\b" && (aa(e3, t4, i2) || e3.display.input.onKeyPress(t4)); + } + } + } + var da, pa, ga = 400, va = function(t4, e3, n3) { + this.time = t4, this.pos = e3, this.button = n3; + }; + function ma(t4, e3) { + var n3 = +new Date(); + return pa && pa.compare(n3, t4, e3) ? (da = pa = null, "triple") : da && da.compare(n3, t4, e3) ? (pa = new va(n3, t4, e3), da = null, "double") : (da = new va(n3, t4, e3), pa = null, "single"); + } + function ya(t4) { + var e3 = this, n3 = e3.display; + if (!(yt(e3, t4) || n3.activeTouch && n3.input.supportsTouch())) { + if (n3.input.ensurePolled(), n3.shift = t4.shiftKey, Un(n3, t4)) + l || (n3.scroller.draggable = false, setTimeout(function() { + return n3.scroller.draggable = true; + }, 100)); + else if (!_a(e3, t4)) { + var r3 = Rr(e3, t4), i2 = _t(t4), o2 = r3 ? ma(r3, i2) : "single"; + window.focus(), i2 == 1 && e3.state.selectingText && e3.state.selectingText(t4), r3 && ba(e3, i2, r3, o2, t4) || (i2 == 1 ? r3 ? xa(e3, r3, o2, t4) : Pt(t4) == n3.scroller && Ot(t4) : i2 == 2 ? (r3 && No(e3.doc, r3), setTimeout(function() { + return n3.input.focus(); + }, 20)) : i2 == 3 && (C ? e3.display.input.onContextMenu(t4) : Yr(e3))); + } + } + } + function ba(t4, e3, n3, r3, i2) { + var o2 = "Click"; + return r3 == "double" ? o2 = "Double" + o2 : r3 == "triple" && (o2 = "Triple" + o2), ia(t4, zs(o2 = (e3 == 1 ? "Left" : e3 == 2 ? "Middle" : "Right") + o2, i2), i2, function(e4) { + if (typeof e4 == "string" && (e4 = Js[e4]), !e4) + return false; + var r4 = false; + try { + t4.isReadOnly() && (t4.state.suppressEdits = true), r4 = e4(t4, n3) != B; + } finally { + t4.state.suppressEdits = false; + } + return r4; + }); + } + function wa(t4, e3, n3) { + var r3 = t4.getOption("configureMouse"), i2 = r3 ? r3(t4, e3, n3) : {}; + if (i2.unit == null) { + var o2 = b ? n3.shiftKey && n3.metaKey : n3.altKey; + i2.unit = o2 ? "rectangle" : e3 == "single" ? "char" : e3 == "double" ? "word" : "line"; + } + return (i2.extend == null || t4.doc.extend) && (i2.extend = t4.doc.extend || n3.shiftKey), i2.addNew == null && (i2.addNew = y ? n3.metaKey : n3.ctrlKey), i2.moveOnDrag == null && (i2.moveOnDrag = !(y ? n3.altKey : n3.ctrlKey)), i2; + } + function xa(t4, e3, n3, r3) { + s ? setTimeout(N(Kr, t4), 0) : t4.curOp.focus = M(); + var i2, o2 = wa(t4, n3, r3), a2 = t4.doc.sel; + t4.options.dragDrop && jt && !t4.isReadOnly() && n3 == "single" && (i2 = a2.contains(e3)) > -1 && (se((i2 = a2.ranges[i2]).from(), e3) < 0 || e3.xRel > 0) && (se(i2.to(), e3) > 0 || e3.xRel < 0) ? Oa(t4, r3, e3, o2) : ka(t4, r3, e3, o2); + } + function Oa(t4, e3, n3, r3) { + var i2 = t4.display, o2 = false, c2 = Mi(t4, function(e4) { + l && (i2.scroller.draggable = false), t4.state.draggingText = false, t4.state.delayingBlurEvent && (t4.hasFocus() ? t4.state.delayingBlurEvent = false : Yr(t4)), vt(i2.wrapper.ownerDocument, "mouseup", c2), vt(i2.wrapper.ownerDocument, "mousemove", u2), vt(i2.scroller, "dragstart", h2), vt(i2.scroller, "drop", c2), o2 || (Ot(e4), r3.addNew || No(t4.doc, n3, null, null, r3.extend), l && !f || s && a == 9 ? setTimeout(function() { + i2.wrapper.ownerDocument.body.focus({ preventScroll: true }), i2.input.focus(); + }, 20) : i2.input.focus()); + }), u2 = function(t5) { + o2 = o2 || Math.abs(e3.clientX - t5.clientX) + Math.abs(e3.clientY - t5.clientY) >= 10; + }, h2 = function() { + return o2 = true; + }; + l && (i2.scroller.draggable = true), t4.state.draggingText = c2, c2.copy = !r3.moveOnDrag, pt(i2.wrapper.ownerDocument, "mouseup", c2), pt(i2.wrapper.ownerDocument, "mousemove", u2), pt(i2.scroller, "dragstart", h2), pt(i2.scroller, "drop", c2), t4.state.delayingBlurEvent = true, setTimeout(function() { + return i2.input.focus(); + }, 20), i2.scroller.dragDrop && i2.scroller.dragDrop(); + } + function Ca(t4, e3, n3) { + if (n3 == "char") + return new oo(e3, e3); + if (n3 == "word") + return t4.findWordAt(e3); + if (n3 == "line") + return new oo(oe(e3.line, 0), fe(t4.doc, oe(e3.line + 1, 0))); + var r3 = n3(t4, e3); + return new oo(r3.from, r3.to); + } + function ka(t4, e3, n3, r3) { + s && Yr(t4); + var i2 = t4.display, o2 = t4.doc; + Ot(e3); + var a2, l2, c2 = o2.sel, u2 = c2.ranges; + if (r3.addNew && !r3.extend ? (l2 = o2.sel.contains(n3), a2 = l2 > -1 ? u2[l2] : new oo(n3, n3)) : (a2 = o2.sel.primary(), l2 = o2.sel.primIndex), r3.unit == "rectangle") + r3.addNew || (a2 = new oo(n3, n3)), n3 = Rr(t4, e3, true, true), l2 = -1; + else { + var h2 = Ca(t4, n3, r3.unit); + a2 = r3.extend ? Ro(a2, h2.anchor, h2.head, r3.extend) : h2; + } + r3.addNew ? l2 == -1 ? (l2 = u2.length, Bo(o2, so(t4, u2.concat([a2]), l2), { scroll: false, origin: "*mouse" })) : u2.length > 1 && u2[l2].empty() && r3.unit == "char" && !r3.extend ? (Bo(o2, so(t4, u2.slice(0, l2).concat(u2.slice(l2 + 1)), 0), { scroll: false, origin: "*mouse" }), c2 = o2.sel) : Io(o2, l2, a2, U) : (l2 = 0, Bo(o2, new io([a2], 0), U), c2 = o2.sel); + var f2 = n3; + function d2(e4) { + if (se(f2, e4) != 0) + if (f2 = e4, r3.unit == "rectangle") { + for (var i3 = [], s2 = t4.options.tabSize, u3 = I(Jt(o2, n3.line).text, n3.ch, s2), h3 = I(Jt(o2, e4.line).text, e4.ch, s2), d3 = Math.min(u3, h3), p3 = Math.max(u3, h3), g3 = Math.min(n3.line, e4.line), v3 = Math.min(t4.lastLine(), Math.max(n3.line, e4.line)); g3 <= v3; g3++) { + var m3 = Jt(o2, g3).text, y3 = $(m3, d3, s2); + d3 == p3 ? i3.push(new oo(oe(g3, y3), oe(g3, y3))) : m3.length > y3 && i3.push(new oo(oe(g3, y3), oe(g3, $(m3, p3, s2)))); + } + i3.length || i3.push(new oo(n3, n3)), Bo(o2, so(t4, c2.ranges.slice(0, l2).concat(i3), l2), { origin: "*mouse", scroll: false }), t4.scrollIntoView(e4); + } else { + var b3, w2 = a2, x2 = Ca(t4, e4, r3.unit), O2 = w2.anchor; + se(x2.anchor, O2) > 0 ? (b3 = x2.head, O2 = ue(w2.from(), x2.anchor)) : (b3 = x2.anchor, O2 = ce(w2.to(), x2.head)); + var C2 = c2.ranges.slice(0); + C2[l2] = Sa(t4, new oo(fe(o2, O2), b3)), Bo(o2, so(t4, C2, l2), U); + } + } + var p2 = i2.wrapper.getBoundingClientRect(), g2 = 0; + function v2(e4) { + var n4 = ++g2, s2 = Rr(t4, e4, true, r3.unit == "rectangle"); + if (s2) + if (se(s2, f2) != 0) { + t4.curOp.focus = M(), d2(s2); + var a3 = ei(i2, o2); + (s2.line >= a3.to || s2.line < a3.from) && setTimeout(Mi(t4, function() { + g2 == n4 && v2(e4); + }), 150); + } else { + var l3 = e4.clientY < p2.top ? -20 : e4.clientY > p2.bottom ? 20 : 0; + l3 && setTimeout(Mi(t4, function() { + g2 == n4 && (i2.scroller.scrollTop += l3, v2(e4)); + }), 50); + } + } + function m2(e4) { + t4.state.selectingText = false, g2 = 1 / 0, e4 && (Ot(e4), i2.input.focus()), vt(i2.wrapper.ownerDocument, "mousemove", y2), vt(i2.wrapper.ownerDocument, "mouseup", b2), o2.history.lastSelOrigin = null; + } + var y2 = Mi(t4, function(t5) { + t5.buttons !== 0 && _t(t5) ? v2(t5) : m2(t5); + }), b2 = Mi(t4, m2); + t4.state.selectingText = b2, pt(i2.wrapper.ownerDocument, "mousemove", y2), pt(i2.wrapper.ownerDocument, "mouseup", b2); + } + function Sa(t4, e3) { + var n3 = e3.anchor, r3 = e3.head, i2 = Jt(t4.doc, n3.line); + if (se(n3, r3) == 0 && n3.sticky == r3.sticky) + return e3; + var o2 = ft(i2); + if (!o2) + return e3; + var s2 = ut(o2, n3.ch, n3.sticky), a2 = o2[s2]; + if (a2.from != n3.ch && a2.to != n3.ch) + return e3; + var l2, c2 = s2 + (a2.from == n3.ch == (a2.level != 1) ? 0 : 1); + if (c2 == 0 || c2 == o2.length) + return e3; + if (r3.line != n3.line) + l2 = (r3.line - n3.line) * (t4.doc.direction == "ltr" ? 1 : -1) > 0; + else { + var u2 = ut(o2, r3.ch, r3.sticky), h2 = u2 - s2 || (r3.ch - n3.ch) * (a2.level == 1 ? -1 : 1); + l2 = u2 == c2 - 1 || u2 == c2 ? h2 < 0 : h2 > 0; + } + var f2 = o2[c2 + (l2 ? -1 : 0)], d2 = l2 == (f2.level == 1), p2 = d2 ? f2.from : f2.to, g2 = d2 ? "after" : "before"; + return n3.ch == p2 && n3.sticky == g2 ? e3 : new oo(new oe(n3.line, p2, g2), r3); + } + function Pa(t4, e3, n3, r3) { + var i2, o2; + if (e3.touches) + i2 = e3.touches[0].clientX, o2 = e3.touches[0].clientY; + else + try { + i2 = e3.clientX, o2 = e3.clientY; + } catch (t5) { + return false; + } + if (i2 >= Math.floor(t4.display.gutters.getBoundingClientRect().right)) + return false; + r3 && Ot(e3); + var s2 = t4.display, a2 = s2.lineDiv.getBoundingClientRect(); + if (o2 > a2.bottom || !wt(t4, n3)) + return kt(e3); + o2 -= a2.top - s2.viewOffset; + for (var l2 = 0; l2 < t4.display.gutterSpecs.length; ++l2) { + var c2 = s2.gutters.childNodes[l2]; + if (c2 && c2.getBoundingClientRect().right >= i2) + return mt(t4, n3, t4, ne(t4.doc, o2), t4.display.gutterSpecs[l2].className, e3), kt(e3); + } + } + function _a(t4, e3) { + return Pa(t4, e3, "gutterClick", true); + } + function Ta(t4, e3) { + Un(t4.display, e3) || Ea(t4, e3) || yt(t4, e3, "contextmenu") || C || t4.display.input.onContextMenu(e3); + } + function Ea(t4, e3) { + return !!wt(t4, "gutterContextMenu") && Pa(t4, e3, "gutterContextMenu", false); + } + function ja(t4) { + t4.display.wrapper.className = t4.display.wrapper.className.replace(/\s*cm-s-\S+/g, "") + t4.options.theme.replace(/(^|\s)\s*/g, " cm-s-"), fr(t4); + } + va.prototype.compare = function(t4, e3, n3) { + return this.time + ga > t4 && se(e3, this.pos) == 0 && n3 == this.button; + }; + var Da = { toString: function() { + return "CodeMirror.Init"; + } }, Ma = {}, Aa = {}; + function La(t4) { + var e3 = t4.optionHandlers; + function n3(n4, r3, i2, o2) { + t4.defaults[n4] = r3, i2 && (e3[n4] = o2 ? function(t5, e4, n5) { + n5 != Da && i2(t5, e4, n5); + } : i2); + } + t4.defineOption = n3, t4.Init = Da, n3("value", "", function(t5, e4) { + return t5.setValue(e4); + }, true), n3("mode", null, function(t5, e4) { + t5.doc.modeOption = e4, po(t5); + }, true), n3("indentUnit", 2, po, true), n3("indentWithTabs", false), n3("smartIndent", true), n3("tabSize", 4, function(t5) { + go(t5), fr(t5), Zr(t5); + }, true), n3("lineSeparator", null, function(t5, e4) { + if (t5.doc.lineSep = e4, e4) { + var n4 = [], r3 = t5.doc.first; + t5.doc.iter(function(t6) { + for (var i3 = 0; ; ) { + var o2 = t6.text.indexOf(e4, i3); + if (o2 == -1) + break; + i3 = o2 + e4.length, n4.push(oe(r3, o2)); + } + r3++; + }); + for (var i2 = n4.length - 1; i2 >= 0; i2--) + is(t5.doc, e4, n4[i2], oe(n4[i2].line, n4[i2].ch + e4.length)); + } + }), n3("specialChars", /[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g, function(t5, e4, n4) { + t5.state.specialChars = new RegExp(e4.source + (e4.test(" ") ? "" : "| "), "g"), n4 != Da && t5.refresh(); + }), n3("specialCharPlaceholder", vn, function(t5) { + return t5.refresh(); + }, true), n3("electricChars", true), n3("inputStyle", m ? "contenteditable" : "textarea", function() { + throw new Error("inputStyle can not (yet) be changed in a running editor"); + }, true), n3("spellcheck", false, function(t5, e4) { + return t5.getInputField().spellcheck = e4; + }, true), n3("autocorrect", false, function(t5, e4) { + return t5.getInputField().autocorrect = e4; + }, true), n3("autocapitalize", false, function(t5, e4) { + return t5.getInputField().autocapitalize = e4; + }, true), n3("rtlMoveVisually", !w), n3("wholeLineUpdateBefore", true), n3("theme", "default", function(t5) { + ja(t5), Ji(t5); + }, true), n3("keyMap", "default", function(t5, e4, n4) { + var r3 = Ws(e4), i2 = n4 != Da && Ws(n4); + i2 && i2.detach && i2.detach(t5, r3), r3.attach && r3.attach(t5, i2 || null); + }), n3("extraKeys", null), n3("configureMouse", null), n3("lineWrapping", false, Na, true), n3("gutters", [], function(t5, e4) { + t5.display.gutterSpecs = Ki(e4, t5.options.lineNumbers), Ji(t5); + }, true), n3("fixedGutter", true, function(t5, e4) { + t5.display.gutters.style.left = e4 ? Mr(t5.display) + "px" : "0", t5.refresh(); + }, true), n3("coverGutterNextToScrollbar", false, function(t5) { + return yi(t5); + }, true), n3("scrollbarStyle", "native", function(t5) { + xi(t5), yi(t5), t5.display.scrollbars.setScrollTop(t5.doc.scrollTop), t5.display.scrollbars.setScrollLeft(t5.doc.scrollLeft); + }, true), n3("lineNumbers", false, function(t5, e4) { + t5.display.gutterSpecs = Ki(t5.options.gutters, e4), Ji(t5); + }, true), n3("firstLineNumber", 1, Ji, true), n3("lineNumberFormatter", function(t5) { + return t5; + }, Ji, true), n3("showCursorWhenSelecting", false, zr, true), n3("resetSelectionOnContextMenu", true), n3("lineWiseCopyCut", true), n3("pasteLinesPerSelection", true), n3("selectionsMayTouch", false), n3("readOnly", false, function(t5, e4) { + e4 == "nocursor" && (Xr(t5), t5.display.input.blur()), t5.display.input.readOnlyChanged(e4); + }), n3("screenReaderLabel", null, function(t5, e4) { + e4 = e4 === "" ? null : e4, t5.display.input.screenReaderLabelChanged(e4); + }), n3("disableInput", false, function(t5, e4) { + e4 || t5.display.input.reset(); + }, true), n3("dragDrop", true, Ra), n3("allowDropFileTypes", null), n3("cursorBlinkRate", 530), n3("cursorScrollMargin", 0), n3("cursorHeight", 1, zr, true), n3("singleCursorHeightPerLine", true, zr, true), n3("workTime", 100), n3("workDelay", 100), n3("flattenSpans", true, go, true), n3("addModeClass", false, go, true), n3("pollInterval", 100), n3("undoDepth", 200, function(t5, e4) { + return t5.doc.history.undoDepth = e4; + }), n3("historyEventDelay", 1250), n3("viewportMargin", 10, function(t5) { + return t5.refresh(); + }, true), n3("maxHighlightLength", 1e4, go, true), n3("moveInputWithCursor", true, function(t5, e4) { + e4 || t5.display.input.resetPosition(); + }), n3("tabindex", null, function(t5, e4) { + return t5.display.input.getField().tabIndex = e4 || ""; + }), n3("autofocus", null), n3("direction", "ltr", function(t5, e4) { + return t5.doc.setDirection(e4); + }, true), n3("phrases", null); + } + function Ra(t4, e3, n3) { + if (!e3 != !(n3 && n3 != Da)) { + var r3 = t4.display.dragFunctions, i2 = e3 ? pt : vt; + i2(t4.display.scroller, "dragstart", r3.start), i2(t4.display.scroller, "dragenter", r3.enter), i2(t4.display.scroller, "dragover", r3.over), i2(t4.display.scroller, "dragleave", r3.leave), i2(t4.display.scroller, "drop", r3.drop); + } + } + function Na(t4) { + t4.options.lineWrapping ? (A(t4.display.wrapper, "CodeMirror-wrap"), t4.display.sizer.style.minWidth = "", t4.display.sizerWidth = null) : (P(t4.display.wrapper, "CodeMirror-wrap"), ln(t4)), Lr(t4), Zr(t4), fr(t4), setTimeout(function() { + return yi(t4); + }, 100); + } + function Za(t4, e3) { + var n3 = this; + if (!(this instanceof Za)) + return new Za(t4, e3); + this.options = e3 = e3 ? Z(e3) : {}, Z(Ma, e3, false); + var r3 = e3.value; + typeof r3 == "string" ? r3 = new Cs(r3, e3.mode, null, e3.lineSeparator, e3.direction) : e3.mode && (r3.modeOption = e3.mode), this.doc = r3; + var i2 = new Za.inputStyles[e3.inputStyle](this), o2 = this.display = new Xi(t4, r3, i2, e3); + for (var c2 in o2.wrapper.CodeMirror = this, ja(this), e3.lineWrapping && (this.display.wrapper.className += " CodeMirror-wrap"), xi(this), this.state = { keyMaps: [], overlays: [], modeGen: 0, overwrite: false, delayingBlurEvent: false, focused: false, suppressEdits: false, pasteIncoming: -1, cutIncoming: -1, selectingText: false, draggingText: false, highlight: new F(), keySeq: null, specialChars: null }, e3.autofocus && !m && o2.input.focus(), s && a < 11 && setTimeout(function() { + return n3.display.input.reset(true); + }, 20), Ia(this), Ds(), Ci(this), this.curOp.forceUpdate = true, bo(this, r3), e3.autofocus && !m || this.hasFocus() ? setTimeout(function() { + n3.hasFocus() && !n3.state.focused && Jr(n3); + }, 20) : Xr(this), Aa) + Aa.hasOwnProperty(c2) && Aa[c2](this, e3[c2], Da); + Gi(this), e3.finishInit && e3.finishInit(this); + for (var u2 = 0; u2 < Fa.length; ++u2) + Fa[u2](this); + ki(this), l && e3.lineWrapping && getComputedStyle(o2.lineDiv).textRendering == "optimizelegibility" && (o2.lineDiv.style.textRendering = "auto"); + } + function Ia(t4) { + var e3 = t4.display; + pt(e3.scroller, "mousedown", Mi(t4, ya)), pt(e3.scroller, "dblclick", s && a < 11 ? Mi(t4, function(e4) { + if (!yt(t4, e4)) { + var n4 = Rr(t4, e4); + if (n4 && !_a(t4, e4) && !Un(t4.display, e4)) { + Ot(e4); + var r4 = t4.findWordAt(n4); + No(t4.doc, r4.anchor, r4.head); + } + } + }) : function(e4) { + return yt(t4, e4) || Ot(e4); + }), pt(e3.scroller, "contextmenu", function(e4) { + return Ta(t4, e4); + }), pt(e3.input.getField(), "contextmenu", function(n4) { + e3.scroller.contains(n4.target) || Ta(t4, n4); + }); + var n3, r3 = { end: 0 }; + function i2() { + e3.activeTouch && (n3 = setTimeout(function() { + return e3.activeTouch = null; + }, 1e3), (r3 = e3.activeTouch).end = +new Date()); + } + function o2(t5) { + if (t5.touches.length != 1) + return false; + var e4 = t5.touches[0]; + return e4.radiusX <= 1 && e4.radiusY <= 1; + } + function l2(t5, e4) { + if (e4.left == null) + return true; + var n4 = e4.left - t5.left, r4 = e4.top - t5.top; + return n4 * n4 + r4 * r4 > 400; + } + pt(e3.scroller, "touchstart", function(i3) { + if (!yt(t4, i3) && !o2(i3) && !_a(t4, i3)) { + e3.input.ensurePolled(), clearTimeout(n3); + var s2 = +new Date(); + e3.activeTouch = { start: s2, moved: false, prev: s2 - r3.end <= 300 ? r3 : null }, i3.touches.length == 1 && (e3.activeTouch.left = i3.touches[0].pageX, e3.activeTouch.top = i3.touches[0].pageY); + } + }), pt(e3.scroller, "touchmove", function() { + e3.activeTouch && (e3.activeTouch.moved = true); + }), pt(e3.scroller, "touchend", function(n4) { + var r4 = e3.activeTouch; + if (r4 && !Un(e3, n4) && r4.left != null && !r4.moved && new Date() - r4.start < 300) { + var o3, s2 = t4.coordsChar(e3.activeTouch, "page"); + o3 = !r4.prev || l2(r4, r4.prev) ? new oo(s2, s2) : !r4.prev.prev || l2(r4, r4.prev.prev) ? t4.findWordAt(s2) : new oo(oe(s2.line, 0), fe(t4.doc, oe(s2.line + 1, 0))), t4.setSelection(o3.anchor, o3.head), t4.focus(), Ot(n4); + } + i2(); + }), pt(e3.scroller, "touchcancel", i2), pt(e3.scroller, "scroll", function() { + e3.scroller.clientHeight && (fi(t4, e3.scroller.scrollTop), pi(t4, e3.scroller.scrollLeft, true), mt(t4, "scroll", t4)); + }), pt(e3.scroller, "mousewheel", function(e4) { + return ro(t4, e4); + }), pt(e3.scroller, "DOMMouseScroll", function(e4) { + return ro(t4, e4); + }), pt(e3.wrapper, "scroll", function() { + return e3.wrapper.scrollTop = e3.wrapper.scrollLeft = 0; + }), e3.dragFunctions = { enter: function(e4) { + yt(t4, e4) || St(e4); + }, over: function(e4) { + yt(t4, e4) || (_s(t4, e4), St(e4)); + }, start: function(e4) { + return Ps(t4, e4); + }, drop: Mi(t4, Ss), leave: function(e4) { + yt(t4, e4) || Ts(t4); + } }; + var c2 = e3.input.getField(); + pt(c2, "keyup", function(e4) { + return ha.call(t4, e4); + }), pt(c2, "keydown", Mi(t4, ca)), pt(c2, "keypress", Mi(t4, fa)), pt(c2, "focus", function(e4) { + return Jr(t4, e4); + }), pt(c2, "blur", function(e4) { + return Xr(t4, e4); + }); + } + Za.defaults = Ma, Za.optionHandlers = Aa; + var Fa = []; + function Va(t4, e3, n3, r3) { + var i2, o2 = t4.doc; + n3 == null && (n3 = "add"), n3 == "smart" && (o2.mode.indent ? i2 = be(t4, e3).state : n3 = "prev"); + var s2 = t4.options.tabSize, a2 = Jt(o2, e3), l2 = I(a2.text, null, s2); + a2.stateAfter && (a2.stateAfter = null); + var c2, u2 = a2.text.match(/^\s*/)[0]; + if (r3 || /\S/.test(a2.text)) { + if (n3 == "smart" && ((c2 = o2.mode.indent(i2, a2.text.slice(u2.length), a2.text)) == B || c2 > 150)) { + if (!r3) + return; + n3 = "prev"; + } + } else + c2 = 0, n3 = "not"; + n3 == "prev" ? c2 = e3 > o2.first ? I(Jt(o2, e3 - 1).text, null, s2) : 0 : n3 == "add" ? c2 = l2 + t4.options.indentUnit : n3 == "subtract" ? c2 = l2 - t4.options.indentUnit : typeof n3 == "number" && (c2 = l2 + n3), c2 = Math.max(0, c2); + var h2 = "", f2 = 0; + if (t4.options.indentWithTabs) + for (var d2 = Math.floor(c2 / s2); d2; --d2) + f2 += s2, h2 += " "; + if (f2 < c2 && (h2 += G(c2 - f2)), h2 != u2) + return is(o2, h2, oe(e3, 0), oe(e3, u2.length), "+input"), a2.stateAfter = null, true; + for (var p2 = 0; p2 < o2.sel.ranges.length; p2++) { + var g2 = o2.sel.ranges[p2]; + if (g2.head.line == e3 && g2.head.ch < u2.length) { + var v2 = oe(e3, u2.length); + Io(o2, p2, new oo(v2, v2)); + break; + } + } + } + Za.defineInitHook = function(t4) { + return Fa.push(t4); + }; + var Ha = null; + function Ba(t4) { + Ha = t4; + } + function za(t4, e3, n3, r3, i2) { + var o2 = t4.doc; + t4.display.shift = false, r3 || (r3 = o2.sel); + var s2 = +new Date() - 200, a2 = i2 == "paste" || t4.state.pasteIncoming > s2, l2 = Lt(e3), c2 = null; + if (a2 && r3.ranges.length > 1) + if (Ha && Ha.text.join("\n") == e3) { + if (r3.ranges.length % Ha.text.length == 0) { + c2 = []; + for (var u2 = 0; u2 < Ha.text.length; u2++) + c2.push(o2.splitLines(Ha.text[u2])); + } + } else + l2.length == r3.ranges.length && t4.options.pasteLinesPerSelection && (c2 = Y(l2, function(t5) { + return [t5]; + })); + for (var h2 = t4.curOp.updateInput, f2 = r3.ranges.length - 1; f2 >= 0; f2--) { + var d2 = r3.ranges[f2], p2 = d2.from(), g2 = d2.to(); + d2.empty() && (n3 && n3 > 0 ? p2 = oe(p2.line, p2.ch - n3) : t4.state.overwrite && !a2 ? g2 = oe(g2.line, Math.min(Jt(o2, g2.line).text.length, g2.ch + K(l2).length)) : a2 && Ha && Ha.lineWise && Ha.text.join("\n") == l2.join("\n") && (p2 = g2 = oe(p2.line, 0))); + var v2 = { from: p2, to: g2, text: c2 ? c2[f2 % c2.length] : l2, origin: i2 || (a2 ? "paste" : t4.state.cutIncoming > s2 ? "cut" : "+input") }; + Xo(t4.doc, v2), En(t4, "inputRead", t4, v2); + } + e3 && !a2 && Wa(t4, e3), ai(t4), t4.curOp.updateInput < 2 && (t4.curOp.updateInput = h2), t4.curOp.typing = true, t4.state.pasteIncoming = t4.state.cutIncoming = -1; + } + function Ua(t4, e3) { + var n3 = t4.clipboardData && t4.clipboardData.getData("Text"); + if (n3) + return t4.preventDefault(), e3.isReadOnly() || e3.options.disableInput || Di(e3, function() { + return za(e3, n3, 0, null, "paste"); + }), true; + } + function Wa(t4, e3) { + if (t4.options.electricChars && t4.options.smartIndent) + for (var n3 = t4.doc.sel, r3 = n3.ranges.length - 1; r3 >= 0; r3--) { + var i2 = n3.ranges[r3]; + if (!(i2.head.ch > 100 || r3 && n3.ranges[r3 - 1].head.line == i2.head.line)) { + var o2 = t4.getModeAt(i2.head), s2 = false; + if (o2.electricChars) { + for (var a2 = 0; a2 < o2.electricChars.length; a2++) + if (e3.indexOf(o2.electricChars.charAt(a2)) > -1) { + s2 = Va(t4, i2.head.line, "smart"); + break; + } + } else + o2.electricInput && o2.electricInput.test(Jt(t4.doc, i2.head.line).text.slice(0, i2.head.ch)) && (s2 = Va(t4, i2.head.line, "smart")); + s2 && En(t4, "electricInput", t4, i2.head.line); + } + } + } + function $a(t4) { + for (var e3 = [], n3 = [], r3 = 0; r3 < t4.doc.sel.ranges.length; r3++) { + var i2 = t4.doc.sel.ranges[r3].head.line, o2 = { anchor: oe(i2, 0), head: oe(i2 + 1, 0) }; + n3.push(o2), e3.push(t4.getRange(o2.anchor, o2.head)); + } + return { text: e3, ranges: n3 }; + } + function qa(t4, e3, n3, r3) { + t4.setAttribute("autocorrect", n3 ? "" : "off"), t4.setAttribute("autocapitalize", r3 ? "" : "off"), t4.setAttribute("spellcheck", !!e3); + } + function Ga() { + var t4 = E("textarea", null, null, "position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"), e3 = E("div", [t4], null, "overflow: hidden; position: relative; width: 3px; height: 0px;"); + return l ? t4.style.width = "1000px" : t4.setAttribute("wrap", "off"), g && (t4.style.border = "1px solid black"), qa(t4), e3; + } + function Ka(t4) { + var e3 = t4.optionHandlers, n3 = t4.helpers = {}; + t4.prototype = { constructor: t4, focus: function() { + window.focus(), this.display.input.focus(); + }, setOption: function(t5, n4) { + var r3 = this.options, i2 = r3[t5]; + r3[t5] == n4 && t5 != "mode" || (r3[t5] = n4, e3.hasOwnProperty(t5) && Mi(this, e3[t5])(this, n4, i2), mt(this, "optionChange", this, t5)); + }, getOption: function(t5) { + return this.options[t5]; + }, getDoc: function() { + return this.doc; + }, addKeyMap: function(t5, e4) { + this.state.keyMaps[e4 ? "push" : "unshift"](Ws(t5)); + }, removeKeyMap: function(t5) { + for (var e4 = this.state.keyMaps, n4 = 0; n4 < e4.length; ++n4) + if (e4[n4] == t5 || e4[n4].name == t5) + return e4.splice(n4, 1), true; + }, addOverlay: Ai(function(e4, n4) { + var r3 = e4.token ? e4 : t4.getMode(this.options, e4); + if (r3.startState) + throw new Error("Overlays may not be stateful."); + J(this.state.overlays, { mode: r3, modeSpec: e4, opaque: n4 && n4.opaque, priority: n4 && n4.priority || 0 }, function(t5) { + return t5.priority; + }), this.state.modeGen++, Zr(this); + }), removeOverlay: Ai(function(t5) { + for (var e4 = this.state.overlays, n4 = 0; n4 < e4.length; ++n4) { + var r3 = e4[n4].modeSpec; + if (r3 == t5 || typeof t5 == "string" && r3.name == t5) + return e4.splice(n4, 1), this.state.modeGen++, void Zr(this); + } + }), indentLine: Ai(function(t5, e4, n4) { + typeof e4 != "string" && typeof e4 != "number" && (e4 = e4 == null ? this.options.smartIndent ? "smart" : "prev" : e4 ? "add" : "subtract"), re(this.doc, t5) && Va(this, t5, e4, n4); + }), indentSelection: Ai(function(t5) { + for (var e4 = this.doc.sel.ranges, n4 = -1, r3 = 0; r3 < e4.length; r3++) { + var i2 = e4[r3]; + if (i2.empty()) + i2.head.line > n4 && (Va(this, i2.head.line, t5, true), n4 = i2.head.line, r3 == this.doc.sel.primIndex && ai(this)); + else { + var o2 = i2.from(), s2 = i2.to(), a2 = Math.max(n4, o2.line); + n4 = Math.min(this.lastLine(), s2.line - (s2.ch ? 0 : 1)) + 1; + for (var l2 = a2; l2 < n4; ++l2) + Va(this, l2, t5); + var c2 = this.doc.sel.ranges; + o2.ch == 0 && e4.length == c2.length && c2[r3].from().ch > 0 && Io(this.doc, r3, new oo(o2, c2[r3].to()), z); + } + } + }), getTokenAt: function(t5, e4) { + return ke(this, t5, e4); + }, getLineTokens: function(t5, e4) { + return ke(this, oe(t5), e4, true); + }, getTokenTypeAt: function(t5) { + t5 = fe(this.doc, t5); + var e4, n4 = ye(this, Jt(this.doc, t5.line)), r3 = 0, i2 = (n4.length - 1) / 2, o2 = t5.ch; + if (o2 == 0) + e4 = n4[2]; + else + for (; ; ) { + var s2 = r3 + i2 >> 1; + if ((s2 ? n4[2 * s2 - 1] : 0) >= o2) + i2 = s2; + else { + if (!(n4[2 * s2 + 1] < o2)) { + e4 = n4[2 * s2 + 2]; + break; + } + r3 = s2 + 1; + } + } + var a2 = e4 ? e4.indexOf("overlay ") : -1; + return a2 < 0 ? e4 : a2 == 0 ? null : e4.slice(0, a2 - 1); + }, getModeAt: function(e4) { + var n4 = this.doc.mode; + return n4.innerMode ? t4.innerMode(n4, this.getTokenAt(e4).state).mode : n4; + }, getHelper: function(t5, e4) { + return this.getHelpers(t5, e4)[0]; + }, getHelpers: function(t5, e4) { + var r3 = []; + if (!n3.hasOwnProperty(e4)) + return r3; + var i2 = n3[e4], o2 = this.getModeAt(t5); + if (typeof o2[e4] == "string") + i2[o2[e4]] && r3.push(i2[o2[e4]]); + else if (o2[e4]) + for (var s2 = 0; s2 < o2[e4].length; s2++) { + var a2 = i2[o2[e4][s2]]; + a2 && r3.push(a2); + } + else + o2.helperType && i2[o2.helperType] ? r3.push(i2[o2.helperType]) : i2[o2.name] && r3.push(i2[o2.name]); + for (var l2 = 0; l2 < i2._global.length; l2++) { + var c2 = i2._global[l2]; + c2.pred(o2, this) && V(r3, c2.val) == -1 && r3.push(c2.val); + } + return r3; + }, getStateAfter: function(t5, e4) { + var n4 = this.doc; + return be(this, (t5 = he(n4, t5 == null ? n4.first + n4.size - 1 : t5)) + 1, e4).state; + }, cursorCoords: function(t5, e4) { + var n4 = this.doc.sel.primary(); + return br(this, t5 == null ? n4.head : typeof t5 == "object" ? fe(this.doc, t5) : t5 ? n4.from() : n4.to(), e4 || "page"); + }, charCoords: function(t5, e4) { + return yr(this, fe(this.doc, t5), e4 || "page"); + }, coordsChar: function(t5, e4) { + return Or(this, (t5 = mr(this, t5, e4 || "page")).left, t5.top); + }, lineAtHeight: function(t5, e4) { + return t5 = mr(this, { top: t5, left: 0 }, e4 || "page").top, ne(this.doc, t5 + this.display.viewOffset); + }, heightAtLine: function(t5, e4, n4) { + var r3, i2 = false; + if (typeof t5 == "number") { + var o2 = this.doc.first + this.doc.size - 1; + t5 < this.doc.first ? t5 = this.doc.first : t5 > o2 && (t5 = o2, i2 = true), r3 = Jt(this.doc, t5); + } else + r3 = t5; + return vr(this, r3, { top: 0, left: 0 }, e4 || "page", n4 || i2).top + (i2 ? this.doc.height - sn(r3) : 0); + }, defaultTextHeight: function() { + return Er(this.display); + }, defaultCharWidth: function() { + return jr(this.display); + }, getViewport: function() { + return { from: this.display.viewFrom, to: this.display.viewTo }; + }, addWidget: function(t5, e4, n4, r3, i2) { + var o2 = this.display, s2 = (t5 = br(this, fe(this.doc, t5))).bottom, a2 = t5.left; + if (e4.style.position = "absolute", e4.setAttribute("cm-ignore-events", "true"), this.display.input.setUneditable(e4), o2.sizer.appendChild(e4), r3 == "over") + s2 = t5.top; + else if (r3 == "above" || r3 == "near") { + var l2 = Math.max(o2.wrapper.clientHeight, this.doc.height), c2 = Math.max(o2.sizer.clientWidth, o2.lineSpace.clientWidth); + (r3 == "above" || t5.bottom + e4.offsetHeight > l2) && t5.top > e4.offsetHeight ? s2 = t5.top - e4.offsetHeight : t5.bottom + e4.offsetHeight <= l2 && (s2 = t5.bottom), a2 + e4.offsetWidth > c2 && (a2 = c2 - e4.offsetWidth); + } + e4.style.top = s2 + "px", e4.style.left = e4.style.right = "", i2 == "right" ? (a2 = o2.sizer.clientWidth - e4.offsetWidth, e4.style.right = "0px") : (i2 == "left" ? a2 = 0 : i2 == "middle" && (a2 = (o2.sizer.clientWidth - e4.offsetWidth) / 2), e4.style.left = a2 + "px"), n4 && ii(this, { left: a2, top: s2, right: a2 + e4.offsetWidth, bottom: s2 + e4.offsetHeight }); + }, triggerOnKeyDown: Ai(ca), triggerOnKeyPress: Ai(fa), triggerOnKeyUp: ha, triggerOnMouseDown: Ai(ya), execCommand: function(t5) { + if (Js.hasOwnProperty(t5)) + return Js[t5].call(null, this); + }, triggerElectric: Ai(function(t5) { + Wa(this, t5); + }), findPosH: function(t5, e4, n4, r3) { + var i2 = 1; + e4 < 0 && (i2 = -1, e4 = -e4); + for (var o2 = fe(this.doc, t5), s2 = 0; s2 < e4 && !(o2 = Ya(this.doc, o2, i2, n4, r3)).hitSide; ++s2) + ; + return o2; + }, moveH: Ai(function(t5, e4) { + var n4 = this; + this.extendSelectionsBy(function(r3) { + return n4.display.shift || n4.doc.extend || r3.empty() ? Ya(n4.doc, r3.head, t5, e4, n4.options.rtlMoveVisually) : t5 < 0 ? r3.from() : r3.to(); + }, W); + }), deleteH: Ai(function(t5, e4) { + var n4 = this.doc.sel, r3 = this.doc; + n4.somethingSelected() ? r3.replaceSelection("", null, "+delete") : $s(this, function(n5) { + var i2 = Ya(r3, n5.head, t5, e4, false); + return t5 < 0 ? { from: i2, to: n5.head } : { from: n5.head, to: i2 }; + }); + }), findPosV: function(t5, e4, n4, r3) { + var i2 = 1, o2 = r3; + e4 < 0 && (i2 = -1, e4 = -e4); + for (var s2 = fe(this.doc, t5), a2 = 0; a2 < e4; ++a2) { + var l2 = br(this, s2, "div"); + if (o2 == null ? o2 = l2.left : l2.left = o2, (s2 = Ja(this, l2, i2, n4)).hitSide) + break; + } + return s2; + }, moveV: Ai(function(t5, e4) { + var n4 = this, r3 = this.doc, i2 = [], o2 = !this.display.shift && !r3.extend && r3.sel.somethingSelected(); + if (r3.extendSelectionsBy(function(s3) { + if (o2) + return t5 < 0 ? s3.from() : s3.to(); + var a2 = br(n4, s3.head, "div"); + s3.goalColumn != null && (a2.left = s3.goalColumn), i2.push(a2.left); + var l2 = Ja(n4, a2, t5, e4); + return e4 == "page" && s3 == r3.sel.primary() && si(n4, yr(n4, l2, "div").top - a2.top), l2; + }, W), i2.length) + for (var s2 = 0; s2 < r3.sel.ranges.length; s2++) + r3.sel.ranges[s2].goalColumn = i2[s2]; + }), findWordAt: function(t5) { + var e4 = Jt(this.doc, t5.line).text, n4 = t5.ch, r3 = t5.ch; + if (e4) { + var i2 = this.getHelper(t5, "wordChars"); + t5.sticky != "before" && r3 != e4.length || !n4 ? ++r3 : --n4; + for (var o2 = e4.charAt(n4), s2 = nt(o2, i2) ? function(t6) { + return nt(t6, i2); + } : /\s/.test(o2) ? function(t6) { + return /\s/.test(t6); + } : function(t6) { + return !/\s/.test(t6) && !nt(t6); + }; n4 > 0 && s2(e4.charAt(n4 - 1)); ) + --n4; + for (; r3 < e4.length && s2(e4.charAt(r3)); ) + ++r3; + } + return new oo(oe(t5.line, n4), oe(t5.line, r3)); + }, toggleOverwrite: function(t5) { + t5 != null && t5 == this.state.overwrite || ((this.state.overwrite = !this.state.overwrite) ? A(this.display.cursorDiv, "CodeMirror-overwrite") : P(this.display.cursorDiv, "CodeMirror-overwrite"), mt(this, "overwriteToggle", this, this.state.overwrite)); + }, hasFocus: function() { + return this.display.input.getField() == M(); + }, isReadOnly: function() { + return !(!this.options.readOnly && !this.doc.cantEdit); + }, scrollTo: Ai(function(t5, e4) { + li(this, t5, e4); + }), getScrollInfo: function() { + var t5 = this.display.scroller; + return { left: t5.scrollLeft, top: t5.scrollTop, height: t5.scrollHeight - Gn(this) - this.display.barHeight, width: t5.scrollWidth - Gn(this) - this.display.barWidth, clientHeight: Yn(this), clientWidth: Kn(this) }; + }, scrollIntoView: Ai(function(t5, e4) { + t5 == null ? (t5 = { from: this.doc.sel.primary().head, to: null }, e4 == null && (e4 = this.options.cursorScrollMargin)) : typeof t5 == "number" ? t5 = { from: oe(t5, 0), to: null } : t5.from == null && (t5 = { from: t5, to: null }), t5.to || (t5.to = t5.from), t5.margin = e4 || 0, t5.from.line != null ? ci(this, t5) : hi(this, t5.from, t5.to, t5.margin); + }), setSize: Ai(function(t5, e4) { + var n4 = this, r3 = function(t6) { + return typeof t6 == "number" || /^\d+$/.test(String(t6)) ? t6 + "px" : t6; + }; + t5 != null && (this.display.wrapper.style.width = r3(t5)), e4 != null && (this.display.wrapper.style.height = r3(e4)), this.options.lineWrapping && hr(this); + var i2 = this.display.viewFrom; + this.doc.iter(i2, this.display.viewTo, function(t6) { + if (t6.widgets) { + for (var e5 = 0; e5 < t6.widgets.length; e5++) + if (t6.widgets[e5].noHScroll) { + Ir(n4, i2, "widget"); + break; + } + } + ++i2; + }), this.curOp.forceUpdate = true, mt(this, "refresh", this); + }), operation: function(t5) { + return Di(this, t5); + }, startOperation: function() { + return Ci(this); + }, endOperation: function() { + return ki(this); + }, refresh: Ai(function() { + var t5 = this.display.cachedTextHeight; + Zr(this), this.curOp.forceUpdate = true, fr(this), li(this, this.doc.scrollLeft, this.doc.scrollTop), Wi(this.display), (t5 == null || Math.abs(t5 - Er(this.display)) > 0.5 || this.options.lineWrapping) && Lr(this), mt(this, "refresh", this); + }), swapDoc: Ai(function(t5) { + var e4 = this.doc; + return e4.cm = null, this.state.selectingText && this.state.selectingText(), bo(this, t5), fr(this), this.display.input.reset(), li(this, t5.scrollLeft, t5.scrollTop), this.curOp.forceScroll = true, En(this, "swapDoc", this, e4), e4; + }), phrase: function(t5) { + var e4 = this.options.phrases; + return e4 && Object.prototype.hasOwnProperty.call(e4, t5) ? e4[t5] : t5; + }, getInputField: function() { + return this.display.input.getField(); + }, getWrapperElement: function() { + return this.display.wrapper; + }, getScrollerElement: function() { + return this.display.scroller; + }, getGutterElement: function() { + return this.display.gutters; + } }, xt(t4), t4.registerHelper = function(e4, r3, i2) { + n3.hasOwnProperty(e4) || (n3[e4] = t4[e4] = { _global: [] }), n3[e4][r3] = i2; + }, t4.registerGlobalHelper = function(e4, r3, i2, o2) { + t4.registerHelper(e4, r3, o2), n3[e4]._global.push({ pred: i2, val: o2 }); + }; + } + function Ya(t4, e3, n3, r3, i2) { + var o2 = e3, s2 = n3, a2 = Jt(t4, e3.line), l2 = i2 && t4.direction == "rtl" ? -n3 : n3; + function c2() { + var n4 = e3.line + l2; + return !(n4 < t4.first || n4 >= t4.first + t4.size) && (e3 = new oe(n4, e3.ch, e3.sticky), a2 = Jt(t4, n4)); + } + function u2(o3) { + var s3; + if (r3 == "codepoint") { + var u3 = a2.text.charCodeAt(e3.ch + (n3 > 0 ? 0 : -1)); + if (isNaN(u3)) + s3 = null; + else { + var h3 = n3 > 0 ? u3 >= 55296 && u3 < 56320 : u3 >= 56320 && u3 < 57343; + s3 = new oe(e3.line, Math.max(0, Math.min(a2.text.length, e3.ch + n3 * (h3 ? 2 : 1))), -n3); + } + } else + s3 = i2 ? Ys(t4.cm, a2, e3, n3) : Gs(a2, e3, n3); + if (s3 == null) { + if (o3 || !c2()) + return false; + e3 = Ks(i2, t4.cm, a2, e3.line, l2); + } else + e3 = s3; + return true; + } + if (r3 == "char" || r3 == "codepoint") + u2(); + else if (r3 == "column") + u2(true); + else if (r3 == "word" || r3 == "group") + for (var h2 = null, f2 = r3 == "group", d2 = t4.cm && t4.cm.getHelper(e3, "wordChars"), p2 = true; !(n3 < 0) || u2(!p2); p2 = false) { + var g2 = a2.text.charAt(e3.ch) || "\n", v2 = nt(g2, d2) ? "w" : f2 && g2 == "\n" ? "n" : !f2 || /\s/.test(g2) ? null : "p"; + if (!f2 || p2 || v2 || (v2 = "s"), h2 && h2 != v2) { + n3 < 0 && (n3 = 1, u2(), e3.sticky = "after"); + break; + } + if (v2 && (h2 = v2), n3 > 0 && !u2(!p2)) + break; + } + var m2 = Go(t4, e3, o2, s2, true); + return ae(o2, m2) && (m2.hitSide = true), m2; + } + function Ja(t4, e3, n3, r3) { + var i2, o2, s2 = t4.doc, a2 = e3.left; + if (r3 == "page") { + var l2 = Math.min(t4.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight), c2 = Math.max(l2 - 0.5 * Er(t4.display), 3); + i2 = (n3 > 0 ? e3.bottom : e3.top) + n3 * c2; + } else + r3 == "line" && (i2 = n3 > 0 ? e3.bottom + 3 : e3.top - 3); + for (; (o2 = Or(t4, a2, i2)).outside; ) { + if (n3 < 0 ? i2 <= 0 : i2 >= s2.height) { + o2.hitSide = true; + break; + } + i2 += 5 * n3; + } + return o2; + } + var Xa = function(t4) { + this.cm = t4, this.lastAnchorNode = this.lastAnchorOffset = this.lastFocusNode = this.lastFocusOffset = null, this.polling = new F(), this.composing = null, this.gracePeriod = false, this.readDOMTimeout = null; + }; + function Qa(t4, e3) { + var n3 = er(t4, e3.line); + if (!n3 || n3.hidden) + return null; + var r3 = Jt(t4.doc, e3.line), i2 = Xn(n3, r3, e3.line), o2 = ft(r3, t4.doc.direction), s2 = "left"; + o2 && (s2 = ut(o2, e3.ch) % 2 ? "right" : "left"); + var a2 = sr(i2.map, e3.ch, s2); + return a2.offset = a2.collapse == "right" ? a2.end : a2.start, a2; + } + function tl(t4) { + for (var e3 = t4; e3; e3 = e3.parentNode) + if (/CodeMirror-gutter-wrapper/.test(e3.className)) + return true; + return false; + } + function el(t4, e3) { + return e3 && (t4.bad = true), t4; + } + function nl(t4, e3, n3, r3, i2) { + var o2 = "", s2 = false, a2 = t4.doc.lineSeparator(), l2 = false; + function c2(t5) { + return function(e4) { + return e4.id == t5; + }; + } + function u2() { + s2 && (o2 += a2, l2 && (o2 += a2), s2 = l2 = false); + } + function h2(t5) { + t5 && (u2(), o2 += t5); + } + function f2(e4) { + if (e4.nodeType == 1) { + var n4 = e4.getAttribute("cm-text"); + if (n4) + return void h2(n4); + var o3, d2 = e4.getAttribute("cm-marker"); + if (d2) { + var p2 = t4.findMarks(oe(r3, 0), oe(i2 + 1, 0), c2(+d2)); + return void (p2.length && (o3 = p2[0].find(0)) && h2(Xt(t4.doc, o3.from, o3.to).join(a2))); + } + if (e4.getAttribute("contenteditable") == "false") + return; + var g2 = /^(pre|div|p|li|table|br)$/i.test(e4.nodeName); + if (!/^br$/i.test(e4.nodeName) && e4.textContent.length == 0) + return; + g2 && u2(); + for (var v2 = 0; v2 < e4.childNodes.length; v2++) + f2(e4.childNodes[v2]); + /^(pre|p)$/i.test(e4.nodeName) && (l2 = true), g2 && (s2 = true); + } else + e4.nodeType == 3 && h2(e4.nodeValue.replace(/\u200b/g, "").replace(/\u00a0/g, " ")); + } + for (; f2(e3), e3 != n3; ) + e3 = e3.nextSibling, l2 = false; + return o2; + } + function rl(t4, e3, n3) { + var r3; + if (e3 == t4.display.lineDiv) { + if (!(r3 = t4.display.lineDiv.childNodes[n3])) + return el(t4.clipPos(oe(t4.display.viewTo - 1)), true); + e3 = null, n3 = 0; + } else + for (r3 = e3; ; r3 = r3.parentNode) { + if (!r3 || r3 == t4.display.lineDiv) + return null; + if (r3.parentNode && r3.parentNode == t4.display.lineDiv) + break; + } + for (var i2 = 0; i2 < t4.display.view.length; i2++) { + var o2 = t4.display.view[i2]; + if (o2.node == r3) + return il(o2, e3, n3); + } + } + function il(t4, e3, n3) { + var r3 = t4.text.firstChild, i2 = false; + if (!e3 || !D(r3, e3)) + return el(oe(ee(t4.line), 0), true); + if (e3 == r3 && (i2 = true, e3 = r3.childNodes[n3], n3 = 0, !e3)) { + var o2 = t4.rest ? K(t4.rest) : t4.line; + return el(oe(ee(o2), o2.text.length), i2); + } + var s2 = e3.nodeType == 3 ? e3 : null, a2 = e3; + for (s2 || e3.childNodes.length != 1 || e3.firstChild.nodeType != 3 || (s2 = e3.firstChild, n3 && (n3 = s2.nodeValue.length)); a2.parentNode != r3; ) + a2 = a2.parentNode; + var l2 = t4.measure, c2 = l2.maps; + function u2(e4, n4, r4) { + for (var i3 = -1; i3 < (c2 ? c2.length : 0); i3++) + for (var o3 = i3 < 0 ? l2.map : c2[i3], s3 = 0; s3 < o3.length; s3 += 3) { + var a3 = o3[s3 + 2]; + if (a3 == e4 || a3 == n4) { + var u3 = ee(i3 < 0 ? t4.line : t4.rest[i3]), h3 = o3[s3] + r4; + return (r4 < 0 || a3 != e4) && (h3 = o3[s3 + (r4 ? 1 : 0)]), oe(u3, h3); + } + } + } + var h2 = u2(s2, a2, n3); + if (h2) + return el(h2, i2); + for (var f2 = a2.nextSibling, d2 = s2 ? s2.nodeValue.length - n3 : 0; f2; f2 = f2.nextSibling) { + if (h2 = u2(f2, f2.firstChild, 0)) + return el(oe(h2.line, h2.ch - d2), i2); + d2 += f2.textContent.length; + } + for (var p2 = a2.previousSibling, g2 = n3; p2; p2 = p2.previousSibling) { + if (h2 = u2(p2, p2.firstChild, -1)) + return el(oe(h2.line, h2.ch + g2), i2); + g2 += p2.textContent.length; + } + } + Xa.prototype.init = function(t4) { + var e3 = this, n3 = this, r3 = n3.cm, i2 = n3.div = t4.lineDiv; + function o2(t5) { + for (var e4 = t5.target; e4; e4 = e4.parentNode) { + if (e4 == i2) + return true; + if (/\bCodeMirror-(?:line)?widget\b/.test(e4.className)) + break; + } + return false; + } + function s2(t5) { + if (o2(t5) && !yt(r3, t5)) { + if (r3.somethingSelected()) + Ba({ lineWise: false, text: r3.getSelections() }), t5.type == "cut" && r3.replaceSelection("", null, "cut"); + else { + if (!r3.options.lineWiseCopyCut) + return; + var e4 = $a(r3); + Ba({ lineWise: true, text: e4.text }), t5.type == "cut" && r3.operation(function() { + r3.setSelections(e4.ranges, 0, z), r3.replaceSelection("", null, "cut"); + }); + } + if (t5.clipboardData) { + t5.clipboardData.clearData(); + var s3 = Ha.text.join("\n"); + if (t5.clipboardData.setData("Text", s3), t5.clipboardData.getData("Text") == s3) + return void t5.preventDefault(); + } + var a2 = Ga(), l2 = a2.firstChild; + r3.display.lineSpace.insertBefore(a2, r3.display.lineSpace.firstChild), l2.value = Ha.text.join("\n"); + var c2 = M(); + R(l2), setTimeout(function() { + r3.display.lineSpace.removeChild(a2), c2.focus(), c2 == i2 && n3.showPrimarySelection(); + }, 50); + } + } + i2.contentEditable = true, qa(i2, r3.options.spellcheck, r3.options.autocorrect, r3.options.autocapitalize), pt(i2, "paste", function(t5) { + !o2(t5) || yt(r3, t5) || Ua(t5, r3) || a <= 11 && setTimeout(Mi(r3, function() { + return e3.updateFromDOM(); + }), 20); + }), pt(i2, "compositionstart", function(t5) { + e3.composing = { data: t5.data, done: false }; + }), pt(i2, "compositionupdate", function(t5) { + e3.composing || (e3.composing = { data: t5.data, done: false }); + }), pt(i2, "compositionend", function(t5) { + e3.composing && (t5.data != e3.composing.data && e3.readFromDOMSoon(), e3.composing.done = true); + }), pt(i2, "touchstart", function() { + return n3.forceCompositionEnd(); + }), pt(i2, "input", function() { + e3.composing || e3.readFromDOMSoon(); + }), pt(i2, "copy", s2), pt(i2, "cut", s2); + }, Xa.prototype.screenReaderLabelChanged = function(t4) { + t4 ? this.div.setAttribute("aria-label", t4) : this.div.removeAttribute("aria-label"); + }, Xa.prototype.prepareSelection = function() { + var t4 = Ur(this.cm, false); + return t4.focus = M() == this.div, t4; + }, Xa.prototype.showSelection = function(t4, e3) { + t4 && this.cm.display.view.length && ((t4.focus || e3) && this.showPrimarySelection(), this.showMultipleSelections(t4)); + }, Xa.prototype.getSelection = function() { + return this.cm.display.wrapper.ownerDocument.getSelection(); + }, Xa.prototype.showPrimarySelection = function() { + var t4 = this.getSelection(), e3 = this.cm, r3 = e3.doc.sel.primary(), i2 = r3.from(), o2 = r3.to(); + if (e3.display.viewTo == e3.display.viewFrom || i2.line >= e3.display.viewTo || o2.line < e3.display.viewFrom) + t4.removeAllRanges(); + else { + var s2 = rl(e3, t4.anchorNode, t4.anchorOffset), a2 = rl(e3, t4.focusNode, t4.focusOffset); + if (!s2 || s2.bad || !a2 || a2.bad || se(ue(s2, a2), i2) != 0 || se(ce(s2, a2), o2) != 0) { + var l2 = e3.display.view, c2 = i2.line >= e3.display.viewFrom && Qa(e3, i2) || { node: l2[0].measure.map[2], offset: 0 }, u2 = o2.line < e3.display.viewTo && Qa(e3, o2); + if (!u2) { + var h2 = l2[l2.length - 1].measure, f2 = h2.maps ? h2.maps[h2.maps.length - 1] : h2.map; + u2 = { node: f2[f2.length - 1], offset: f2[f2.length - 2] - f2[f2.length - 3] }; + } + if (c2 && u2) { + var d2, p2 = t4.rangeCount && t4.getRangeAt(0); + try { + d2 = S(c2.node, c2.offset, u2.offset, u2.node); + } catch (t5) { + } + d2 && (!n2 && e3.state.focused ? (t4.collapse(c2.node, c2.offset), d2.collapsed || (t4.removeAllRanges(), t4.addRange(d2))) : (t4.removeAllRanges(), t4.addRange(d2)), p2 && t4.anchorNode == null ? t4.addRange(p2) : n2 && this.startGracePeriod()), this.rememberSelection(); + } else + t4.removeAllRanges(); + } + } + }, Xa.prototype.startGracePeriod = function() { + var t4 = this; + clearTimeout(this.gracePeriod), this.gracePeriod = setTimeout(function() { + t4.gracePeriod = false, t4.selectionChanged() && t4.cm.operation(function() { + return t4.cm.curOp.selectionChanged = true; + }); + }, 20); + }, Xa.prototype.showMultipleSelections = function(t4) { + T(this.cm.display.cursorDiv, t4.cursors), T(this.cm.display.selectionDiv, t4.selection); + }, Xa.prototype.rememberSelection = function() { + var t4 = this.getSelection(); + this.lastAnchorNode = t4.anchorNode, this.lastAnchorOffset = t4.anchorOffset, this.lastFocusNode = t4.focusNode, this.lastFocusOffset = t4.focusOffset; + }, Xa.prototype.selectionInEditor = function() { + var t4 = this.getSelection(); + if (!t4.rangeCount) + return false; + var e3 = t4.getRangeAt(0).commonAncestorContainer; + return D(this.div, e3); + }, Xa.prototype.focus = function() { + this.cm.options.readOnly != "nocursor" && (this.selectionInEditor() && M() == this.div || this.showSelection(this.prepareSelection(), true), this.div.focus()); + }, Xa.prototype.blur = function() { + this.div.blur(); + }, Xa.prototype.getField = function() { + return this.div; + }, Xa.prototype.supportsTouch = function() { + return true; + }, Xa.prototype.receivedFocus = function() { + var t4 = this, e3 = this; + function n3() { + e3.cm.state.focused && (e3.pollSelection(), e3.polling.set(e3.cm.options.pollInterval, n3)); + } + this.selectionInEditor() ? setTimeout(function() { + return t4.pollSelection(); + }, 20) : Di(this.cm, function() { + return e3.cm.curOp.selectionChanged = true; + }), this.polling.set(this.cm.options.pollInterval, n3); + }, Xa.prototype.selectionChanged = function() { + var t4 = this.getSelection(); + return t4.anchorNode != this.lastAnchorNode || t4.anchorOffset != this.lastAnchorOffset || t4.focusNode != this.lastFocusNode || t4.focusOffset != this.lastFocusOffset; + }, Xa.prototype.pollSelection = function() { + if (this.readDOMTimeout == null && !this.gracePeriod && this.selectionChanged()) { + var t4 = this.getSelection(), e3 = this.cm; + if (v && u && this.cm.display.gutterSpecs.length && tl(t4.anchorNode)) + return this.cm.triggerOnKeyDown({ type: "keydown", keyCode: 8, preventDefault: Math.abs }), this.blur(), void this.focus(); + if (!this.composing) { + this.rememberSelection(); + var n3 = rl(e3, t4.anchorNode, t4.anchorOffset), r3 = rl(e3, t4.focusNode, t4.focusOffset); + n3 && r3 && Di(e3, function() { + Bo(e3.doc, ao(n3, r3), z), (n3.bad || r3.bad) && (e3.curOp.selectionChanged = true); + }); + } + } + }, Xa.prototype.pollContent = function() { + this.readDOMTimeout != null && (clearTimeout(this.readDOMTimeout), this.readDOMTimeout = null); + var t4, e3, n3, r3 = this.cm, i2 = r3.display, o2 = r3.doc.sel.primary(), s2 = o2.from(), a2 = o2.to(); + if (s2.ch == 0 && s2.line > r3.firstLine() && (s2 = oe(s2.line - 1, Jt(r3.doc, s2.line - 1).length)), a2.ch == Jt(r3.doc, a2.line).text.length && a2.line < r3.lastLine() && (a2 = oe(a2.line + 1, 0)), s2.line < i2.viewFrom || a2.line > i2.viewTo - 1) + return false; + s2.line == i2.viewFrom || (t4 = Nr(r3, s2.line)) == 0 ? (e3 = ee(i2.view[0].line), n3 = i2.view[0].node) : (e3 = ee(i2.view[t4].line), n3 = i2.view[t4 - 1].node.nextSibling); + var l2, c2, u2 = Nr(r3, a2.line); + if (u2 == i2.view.length - 1 ? (l2 = i2.viewTo - 1, c2 = i2.lineDiv.lastChild) : (l2 = ee(i2.view[u2 + 1].line) - 1, c2 = i2.view[u2 + 1].node.previousSibling), !n3) + return false; + for (var h2 = r3.doc.splitLines(nl(r3, n3, c2, e3, l2)), f2 = Xt(r3.doc, oe(e3, 0), oe(l2, Jt(r3.doc, l2).text.length)); h2.length > 1 && f2.length > 1; ) + if (K(h2) == K(f2)) + h2.pop(), f2.pop(), l2--; + else { + if (h2[0] != f2[0]) + break; + h2.shift(), f2.shift(), e3++; + } + for (var d2 = 0, p2 = 0, g2 = h2[0], v2 = f2[0], m2 = Math.min(g2.length, v2.length); d2 < m2 && g2.charCodeAt(d2) == v2.charCodeAt(d2); ) + ++d2; + for (var y2 = K(h2), b2 = K(f2), w2 = Math.min(y2.length - (h2.length == 1 ? d2 : 0), b2.length - (f2.length == 1 ? d2 : 0)); p2 < w2 && y2.charCodeAt(y2.length - p2 - 1) == b2.charCodeAt(b2.length - p2 - 1); ) + ++p2; + if (h2.length == 1 && f2.length == 1 && e3 == s2.line) + for (; d2 && d2 > s2.ch && y2.charCodeAt(y2.length - p2 - 1) == b2.charCodeAt(b2.length - p2 - 1); ) + d2--, p2++; + h2[h2.length - 1] = y2.slice(0, y2.length - p2).replace(/^\u200b+/, ""), h2[0] = h2[0].slice(d2).replace(/\u200b+$/, ""); + var x2 = oe(e3, d2), O2 = oe(l2, f2.length ? K(f2).length - p2 : 0); + return h2.length > 1 || h2[0] || se(x2, O2) ? (is(r3.doc, h2, x2, O2, "+input"), true) : void 0; + }, Xa.prototype.ensurePolled = function() { + this.forceCompositionEnd(); + }, Xa.prototype.reset = function() { + this.forceCompositionEnd(); + }, Xa.prototype.forceCompositionEnd = function() { + this.composing && (clearTimeout(this.readDOMTimeout), this.composing = null, this.updateFromDOM(), this.div.blur(), this.div.focus()); + }, Xa.prototype.readFromDOMSoon = function() { + var t4 = this; + this.readDOMTimeout == null && (this.readDOMTimeout = setTimeout(function() { + if (t4.readDOMTimeout = null, t4.composing) { + if (!t4.composing.done) + return; + t4.composing = null; + } + t4.updateFromDOM(); + }, 80)); + }, Xa.prototype.updateFromDOM = function() { + var t4 = this; + !this.cm.isReadOnly() && this.pollContent() || Di(this.cm, function() { + return Zr(t4.cm); + }); + }, Xa.prototype.setUneditable = function(t4) { + t4.contentEditable = "false"; + }, Xa.prototype.onKeyPress = function(t4) { + t4.charCode == 0 || this.composing || (t4.preventDefault(), this.cm.isReadOnly() || Mi(this.cm, za)(this.cm, String.fromCharCode(t4.charCode == null ? t4.keyCode : t4.charCode), 0)); + }, Xa.prototype.readOnlyChanged = function(t4) { + this.div.contentEditable = String(t4 != "nocursor"); + }, Xa.prototype.onContextMenu = function() { + }, Xa.prototype.resetPosition = function() { + }, Xa.prototype.needsContentAttribute = true; + var ol = function(t4) { + this.cm = t4, this.prevInput = "", this.pollingFast = false, this.polling = new F(), this.hasSelection = false, this.composing = null; + }; + function sl(t4, e3) { + if ((e3 = e3 ? Z(e3) : {}).value = t4.value, !e3.tabindex && t4.tabIndex && (e3.tabindex = t4.tabIndex), !e3.placeholder && t4.placeholder && (e3.placeholder = t4.placeholder), e3.autofocus == null) { + var n3 = M(); + e3.autofocus = n3 == t4 || t4.getAttribute("autofocus") != null && n3 == document.body; + } + function r3() { + t4.value = a2.getValue(); + } + var i2; + if (t4.form && (pt(t4.form, "submit", r3), !e3.leaveSubmitMethodAlone)) { + var o2 = t4.form; + i2 = o2.submit; + try { + var s2 = o2.submit = function() { + r3(), o2.submit = i2, o2.submit(), o2.submit = s2; + }; + } catch (t5) { + } + } + e3.finishInit = function(n4) { + n4.save = r3, n4.getTextArea = function() { + return t4; + }, n4.toTextArea = function() { + n4.toTextArea = isNaN, r3(), t4.parentNode.removeChild(n4.getWrapperElement()), t4.style.display = "", t4.form && (vt(t4.form, "submit", r3), e3.leaveSubmitMethodAlone || typeof t4.form.submit != "function" || (t4.form.submit = i2)); + }; + }, t4.style.display = "none"; + var a2 = Za(function(e4) { + return t4.parentNode.insertBefore(e4, t4.nextSibling); + }, e3); + return a2; + } + function al(t4) { + t4.off = vt, t4.on = pt, t4.wheelEventPixels = no, t4.Doc = Cs, t4.splitLines = Lt, t4.countColumn = I, t4.findColumn = $, t4.isWordChar = et, t4.Pass = B, t4.signal = mt, t4.Line = cn, t4.changeEnd = lo, t4.scrollbarModel = wi, t4.Pos = oe, t4.cmpPos = se, t4.modes = Ft, t4.mimeModes = Vt, t4.resolveMode = zt, t4.getMode = Ut, t4.modeExtensions = Wt, t4.extendMode = $t, t4.copyState = qt, t4.startState = Kt, t4.innerMode = Gt, t4.commands = Js, t4.keyMap = Is, t4.keyName = Us, t4.isModifierKey = Bs, t4.lookupKey = Hs, t4.normalizeKeyMap = Vs, t4.StringStream = Yt, t4.SharedTextMarker = ms, t4.TextMarker = gs, t4.LineWidget = hs, t4.e_preventDefault = Ot, t4.e_stopPropagation = Ct, t4.e_stop = St, t4.addClass = A, t4.contains = D, t4.rmClass = P, t4.keyNames = Ls; + } + ol.prototype.init = function(t4) { + var e3 = this, n3 = this, r3 = this.cm; + this.createField(t4); + var i2 = this.textarea; + function o2(t5) { + if (!yt(r3, t5)) { + if (r3.somethingSelected()) + Ba({ lineWise: false, text: r3.getSelections() }); + else { + if (!r3.options.lineWiseCopyCut) + return; + var e4 = $a(r3); + Ba({ lineWise: true, text: e4.text }), t5.type == "cut" ? r3.setSelections(e4.ranges, null, z) : (n3.prevInput = "", i2.value = e4.text.join("\n"), R(i2)); + } + t5.type == "cut" && (r3.state.cutIncoming = +new Date()); + } + } + t4.wrapper.insertBefore(this.wrapper, t4.wrapper.firstChild), g && (i2.style.width = "0px"), pt(i2, "input", function() { + s && a >= 9 && e3.hasSelection && (e3.hasSelection = null), n3.poll(); + }), pt(i2, "paste", function(t5) { + yt(r3, t5) || Ua(t5, r3) || (r3.state.pasteIncoming = +new Date(), n3.fastPoll()); + }), pt(i2, "cut", o2), pt(i2, "copy", o2), pt(t4.scroller, "paste", function(e4) { + if (!Un(t4, e4) && !yt(r3, e4)) { + if (!i2.dispatchEvent) + return r3.state.pasteIncoming = +new Date(), void n3.focus(); + var o3 = new Event("paste"); + o3.clipboardData = e4.clipboardData, i2.dispatchEvent(o3); + } + }), pt(t4.lineSpace, "selectstart", function(e4) { + Un(t4, e4) || Ot(e4); + }), pt(i2, "compositionstart", function() { + var t5 = r3.getCursor("from"); + n3.composing && n3.composing.range.clear(), n3.composing = { start: t5, range: r3.markText(t5, r3.getCursor("to"), { className: "CodeMirror-composing" }) }; + }), pt(i2, "compositionend", function() { + n3.composing && (n3.poll(), n3.composing.range.clear(), n3.composing = null); + }); + }, ol.prototype.createField = function(t4) { + this.wrapper = Ga(), this.textarea = this.wrapper.firstChild; + }, ol.prototype.screenReaderLabelChanged = function(t4) { + t4 ? this.textarea.setAttribute("aria-label", t4) : this.textarea.removeAttribute("aria-label"); + }, ol.prototype.prepareSelection = function() { + var t4 = this.cm, e3 = t4.display, n3 = t4.doc, r3 = Ur(t4); + if (t4.options.moveInputWithCursor) { + var i2 = br(t4, n3.sel.primary().head, "div"), o2 = e3.wrapper.getBoundingClientRect(), s2 = e3.lineDiv.getBoundingClientRect(); + r3.teTop = Math.max(0, Math.min(e3.wrapper.clientHeight - 10, i2.top + s2.top - o2.top)), r3.teLeft = Math.max(0, Math.min(e3.wrapper.clientWidth - 10, i2.left + s2.left - o2.left)); + } + return r3; + }, ol.prototype.showSelection = function(t4) { + var e3 = this.cm.display; + T(e3.cursorDiv, t4.cursors), T(e3.selectionDiv, t4.selection), t4.teTop != null && (this.wrapper.style.top = t4.teTop + "px", this.wrapper.style.left = t4.teLeft + "px"); + }, ol.prototype.reset = function(t4) { + if (!this.contextMenuPending && !this.composing) { + var e3 = this.cm; + if (e3.somethingSelected()) { + this.prevInput = ""; + var n3 = e3.getSelection(); + this.textarea.value = n3, e3.state.focused && R(this.textarea), s && a >= 9 && (this.hasSelection = n3); + } else + t4 || (this.prevInput = this.textarea.value = "", s && a >= 9 && (this.hasSelection = null)); + } + }, ol.prototype.getField = function() { + return this.textarea; + }, ol.prototype.supportsTouch = function() { + return false; + }, ol.prototype.focus = function() { + if (this.cm.options.readOnly != "nocursor" && (!m || M() != this.textarea)) + try { + this.textarea.focus(); + } catch (t4) { + } + }, ol.prototype.blur = function() { + this.textarea.blur(); + }, ol.prototype.resetPosition = function() { + this.wrapper.style.top = this.wrapper.style.left = 0; + }, ol.prototype.receivedFocus = function() { + this.slowPoll(); + }, ol.prototype.slowPoll = function() { + var t4 = this; + this.pollingFast || this.polling.set(this.cm.options.pollInterval, function() { + t4.poll(), t4.cm.state.focused && t4.slowPoll(); + }); + }, ol.prototype.fastPoll = function() { + var t4 = false, e3 = this; + function n3() { + e3.poll() || t4 ? (e3.pollingFast = false, e3.slowPoll()) : (t4 = true, e3.polling.set(60, n3)); + } + e3.pollingFast = true, e3.polling.set(20, n3); + }, ol.prototype.poll = function() { + var t4 = this, e3 = this.cm, n3 = this.textarea, r3 = this.prevInput; + if (this.contextMenuPending || !e3.state.focused || Rt(n3) && !r3 && !this.composing || e3.isReadOnly() || e3.options.disableInput || e3.state.keySeq) + return false; + var i2 = n3.value; + if (i2 == r3 && !e3.somethingSelected()) + return false; + if (s && a >= 9 && this.hasSelection === i2 || y && /[\uf700-\uf7ff]/.test(i2)) + return e3.display.input.reset(), false; + if (e3.doc.sel == e3.display.selForContextMenu) { + var o2 = i2.charCodeAt(0); + if (o2 != 8203 || r3 || (r3 = "\u200B"), o2 == 8666) + return this.reset(), this.cm.execCommand("undo"); + } + for (var l2 = 0, c2 = Math.min(r3.length, i2.length); l2 < c2 && r3.charCodeAt(l2) == i2.charCodeAt(l2); ) + ++l2; + return Di(e3, function() { + za(e3, i2.slice(l2), r3.length - l2, null, t4.composing ? "*compose" : null), i2.length > 1e3 || i2.indexOf("\n") > -1 ? n3.value = t4.prevInput = "" : t4.prevInput = i2, t4.composing && (t4.composing.range.clear(), t4.composing.range = e3.markText(t4.composing.start, e3.getCursor("to"), { className: "CodeMirror-composing" })); + }), true; + }, ol.prototype.ensurePolled = function() { + this.pollingFast && this.poll() && (this.pollingFast = false); + }, ol.prototype.onKeyPress = function() { + s && a >= 9 && (this.hasSelection = null), this.fastPoll(); + }, ol.prototype.onContextMenu = function(t4) { + var e3 = this, n3 = e3.cm, r3 = n3.display, i2 = e3.textarea; + e3.contextMenuPending && e3.contextMenuPending(); + var o2 = Rr(n3, t4), c2 = r3.scroller.scrollTop; + if (o2 && !h) { + n3.options.resetSelectionOnContextMenu && n3.doc.sel.contains(o2) == -1 && Mi(n3, Bo)(n3.doc, ao(o2), z); + var u2, f2 = i2.style.cssText, d2 = e3.wrapper.style.cssText, p2 = e3.wrapper.offsetParent.getBoundingClientRect(); + if (e3.wrapper.style.cssText = "position: static", i2.style.cssText = "position: absolute; width: 30px; height: 30px;\n top: " + (t4.clientY - p2.top - 5) + "px; left: " + (t4.clientX - p2.left - 5) + "px;\n z-index: 1000; background: " + (s ? "rgba(255, 255, 255, .05)" : "transparent") + ";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);", l && (u2 = window.scrollY), r3.input.focus(), l && window.scrollTo(null, u2), r3.input.reset(), n3.somethingSelected() || (i2.value = e3.prevInput = " "), e3.contextMenuPending = m2, r3.selForContextMenu = n3.doc.sel, clearTimeout(r3.detectingSelectAll), s && a >= 9 && v2(), C) { + St(t4); + var g2 = function() { + vt(window, "mouseup", g2), setTimeout(m2, 20); + }; + pt(window, "mouseup", g2); + } else + setTimeout(m2, 50); + } + function v2() { + if (i2.selectionStart != null) { + var t5 = n3.somethingSelected(), o3 = "\u200B" + (t5 ? i2.value : ""); + i2.value = "\u21DA", i2.value = o3, e3.prevInput = t5 ? "" : "\u200B", i2.selectionStart = 1, i2.selectionEnd = o3.length, r3.selForContextMenu = n3.doc.sel; + } + } + function m2() { + if (e3.contextMenuPending == m2 && (e3.contextMenuPending = false, e3.wrapper.style.cssText = d2, i2.style.cssText = f2, s && a < 9 && r3.scrollbars.setScrollTop(r3.scroller.scrollTop = c2), i2.selectionStart != null)) { + (!s || s && a < 9) && v2(); + var t5 = 0, o3 = function() { + r3.selForContextMenu == n3.doc.sel && i2.selectionStart == 0 && i2.selectionEnd > 0 && e3.prevInput == "\u200B" ? Mi(n3, Yo)(n3) : t5++ < 10 ? r3.detectingSelectAll = setTimeout(o3, 500) : (r3.selForContextMenu = null, r3.input.reset()); + }; + r3.detectingSelectAll = setTimeout(o3, 200); + } + } + }, ol.prototype.readOnlyChanged = function(t4) { + t4 || this.reset(), this.textarea.disabled = t4 == "nocursor", this.textarea.readOnly = !!t4; + }, ol.prototype.setUneditable = function() { + }, ol.prototype.needsContentAttribute = false, La(Za), Ka(Za); + var ll = "iter insert remove copy getEditor constructor".split(" "); + for (var cl in Cs.prototype) + Cs.prototype.hasOwnProperty(cl) && V(ll, cl) < 0 && (Za.prototype[cl] = function(t4) { + return function() { + return t4.apply(this.doc, arguments); + }; + }(Cs.prototype[cl])); + return xt(Cs), Za.inputStyles = { textarea: ol, contenteditable: Xa }, Za.defineMode = function(t4) { + Za.defaults.mode || t4 == "null" || (Za.defaults.mode = t4), Ht.apply(this, arguments); + }, Za.defineMIME = Bt, Za.defineMode("null", function() { + return { token: function(t4) { + return t4.skipToEnd(); + } }; + }), Za.defineMIME("text/plain", "null"), Za.defineExtension = function(t4, e3) { + Za.prototype[t4] = e3; + }, Za.defineDocExtension = function(t4, e3) { + Cs.prototype[t4] = e3; + }, Za.fromTextArea = sl, al(Za), Za.version = "5.63.0", Za; + }(); + }, 6629: (t2, e2, n2) => { + !function(t3) { + "use strict"; + function e3(t4) { + for (var e4 = {}, n4 = 0; n4 < t4.length; ++n4) + e4[t4[n4].toLowerCase()] = true; + return e4; + } + t3.defineMode("css", function(e4, n4) { + var r3 = n4.inline; + n4.propertyKeywords || (n4 = t3.resolveMode("text/css")); + var i2, o2, s2 = e4.indentUnit, a2 = n4.tokenHooks, l2 = n4.documentTypes || {}, c2 = n4.mediaTypes || {}, u2 = n4.mediaFeatures || {}, h2 = n4.mediaValueKeywords || {}, f2 = n4.propertyKeywords || {}, d2 = n4.nonStandardPropertyKeywords || {}, p2 = n4.fontProperties || {}, g2 = n4.counterDescriptors || {}, v2 = n4.colorKeywords || {}, m2 = n4.valueKeywords || {}, y2 = n4.allowNested, b2 = n4.lineComment, w2 = n4.supportsAtComponent === true, x2 = e4.highlightNonStandardPropertyKeywords !== false; + function O(t4, e5) { + return i2 = e5, t4; + } + function C(t4, e5) { + var n5 = t4.next(); + if (a2[n5]) { + var r4 = a2[n5](t4, e5); + if (r4 !== false) + return r4; + } + return n5 == "@" ? (t4.eatWhile(/[\w\\\-]/), O("def", t4.current())) : n5 == "=" || (n5 == "~" || n5 == "|") && t4.eat("=") ? O(null, "compare") : n5 == '"' || n5 == "'" ? (e5.tokenize = k(n5), e5.tokenize(t4, e5)) : n5 == "#" ? (t4.eatWhile(/[\w\\\-]/), O("atom", "hash")) : n5 == "!" ? (t4.match(/^\s*\w*/), O("keyword", "important")) : /\d/.test(n5) || n5 == "." && t4.eat(/\d/) ? (t4.eatWhile(/[\w.%]/), O("number", "unit")) : n5 !== "-" ? /[,+>*\/]/.test(n5) ? O(null, "select-op") : n5 == "." && t4.match(/^-?[_a-z][_a-z0-9-]*/i) ? O("qualifier", "qualifier") : /[:;{}\[\]\(\)]/.test(n5) ? O(null, n5) : t4.match(/^[\w-.]+(?=\()/) ? (/^(url(-prefix)?|domain|regexp)$/i.test(t4.current()) && (e5.tokenize = S), O("variable callee", "variable")) : /[\w\\\-]/.test(n5) ? (t4.eatWhile(/[\w\\\-]/), O("property", "word")) : O(null, null) : /[\d.]/.test(t4.peek()) ? (t4.eatWhile(/[\w.%]/), O("number", "unit")) : t4.match(/^-[\w\\\-]*/) ? (t4.eatWhile(/[\w\\\-]/), t4.match(/^\s*:/, false) ? O("variable-2", "variable-definition") : O("variable-2", "variable")) : t4.match(/^\w+-/) ? O("meta", "meta") : void 0; + } + function k(t4) { + return function(e5, n5) { + for (var r4, i3 = false; (r4 = e5.next()) != null; ) { + if (r4 == t4 && !i3) { + t4 == ")" && e5.backUp(1); + break; + } + i3 = !i3 && r4 == "\\"; + } + return (r4 == t4 || !i3 && t4 != ")") && (n5.tokenize = null), O("string", "string"); + }; + } + function S(t4, e5) { + return t4.next(), t4.match(/^\s*[\"\')]/, false) ? e5.tokenize = null : e5.tokenize = k(")"), O(null, "("); + } + function P(t4, e5, n5) { + this.type = t4, this.indent = e5, this.prev = n5; + } + function _(t4, e5, n5, r4) { + return t4.context = new P(n5, e5.indentation() + (r4 === false ? 0 : s2), t4.context), n5; + } + function T(t4) { + return t4.context.prev && (t4.context = t4.context.prev), t4.context.type; + } + function E(t4, e5, n5) { + return M[n5.context.type](t4, e5, n5); + } + function j(t4, e5, n5, r4) { + for (var i3 = r4 || 1; i3 > 0; i3--) + n5.context = n5.context.prev; + return E(t4, e5, n5); + } + function D(t4) { + var e5 = t4.current().toLowerCase(); + o2 = m2.hasOwnProperty(e5) ? "atom" : v2.hasOwnProperty(e5) ? "keyword" : "variable"; + } + var M = { top: function(t4, e5, n5) { + if (t4 == "{") + return _(n5, e5, "block"); + if (t4 == "}" && n5.context.prev) + return T(n5); + if (w2 && /@component/i.test(t4)) + return _(n5, e5, "atComponentBlock"); + if (/^@(-moz-)?document$/i.test(t4)) + return _(n5, e5, "documentTypes"); + if (/^@(media|supports|(-moz-)?document|import)$/i.test(t4)) + return _(n5, e5, "atBlock"); + if (/^@(font-face|counter-style)/i.test(t4)) + return n5.stateArg = t4, "restricted_atBlock_before"; + if (/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(t4)) + return "keyframes"; + if (t4 && t4.charAt(0) == "@") + return _(n5, e5, "at"); + if (t4 == "hash") + o2 = "builtin"; + else if (t4 == "word") + o2 = "tag"; + else { + if (t4 == "variable-definition") + return "maybeprop"; + if (t4 == "interpolation") + return _(n5, e5, "interpolation"); + if (t4 == ":") + return "pseudo"; + if (y2 && t4 == "(") + return _(n5, e5, "parens"); + } + return n5.context.type; + }, block: function(t4, e5, n5) { + if (t4 == "word") { + var r4 = e5.current().toLowerCase(); + return f2.hasOwnProperty(r4) ? (o2 = "property", "maybeprop") : d2.hasOwnProperty(r4) ? (o2 = x2 ? "string-2" : "property", "maybeprop") : y2 ? (o2 = e5.match(/^\s*:(?:\s|$)/, false) ? "property" : "tag", "block") : (o2 += " error", "maybeprop"); + } + return t4 == "meta" ? "block" : y2 || t4 != "hash" && t4 != "qualifier" ? M.top(t4, e5, n5) : (o2 = "error", "block"); + }, maybeprop: function(t4, e5, n5) { + return t4 == ":" ? _(n5, e5, "prop") : E(t4, e5, n5); + }, prop: function(t4, e5, n5) { + if (t4 == ";") + return T(n5); + if (t4 == "{" && y2) + return _(n5, e5, "propBlock"); + if (t4 == "}" || t4 == "{") + return j(t4, e5, n5); + if (t4 == "(") + return _(n5, e5, "parens"); + if (t4 != "hash" || /^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(e5.current())) { + if (t4 == "word") + D(e5); + else if (t4 == "interpolation") + return _(n5, e5, "interpolation"); + } else + o2 += " error"; + return "prop"; + }, propBlock: function(t4, e5, n5) { + return t4 == "}" ? T(n5) : t4 == "word" ? (o2 = "property", "maybeprop") : n5.context.type; + }, parens: function(t4, e5, n5) { + return t4 == "{" || t4 == "}" ? j(t4, e5, n5) : t4 == ")" ? T(n5) : t4 == "(" ? _(n5, e5, "parens") : t4 == "interpolation" ? _(n5, e5, "interpolation") : (t4 == "word" && D(e5), "parens"); + }, pseudo: function(t4, e5, n5) { + return t4 == "meta" ? "pseudo" : t4 == "word" ? (o2 = "variable-3", n5.context.type) : E(t4, e5, n5); + }, documentTypes: function(t4, e5, n5) { + return t4 == "word" && l2.hasOwnProperty(e5.current()) ? (o2 = "tag", n5.context.type) : M.atBlock(t4, e5, n5); + }, atBlock: function(t4, e5, n5) { + if (t4 == "(") + return _(n5, e5, "atBlock_parens"); + if (t4 == "}" || t4 == ";") + return j(t4, e5, n5); + if (t4 == "{") + return T(n5) && _(n5, e5, y2 ? "block" : "top"); + if (t4 == "interpolation") + return _(n5, e5, "interpolation"); + if (t4 == "word") { + var r4 = e5.current().toLowerCase(); + o2 = r4 == "only" || r4 == "not" || r4 == "and" || r4 == "or" ? "keyword" : c2.hasOwnProperty(r4) ? "attribute" : u2.hasOwnProperty(r4) ? "property" : h2.hasOwnProperty(r4) ? "keyword" : f2.hasOwnProperty(r4) ? "property" : d2.hasOwnProperty(r4) ? x2 ? "string-2" : "property" : m2.hasOwnProperty(r4) ? "atom" : v2.hasOwnProperty(r4) ? "keyword" : "error"; + } + return n5.context.type; + }, atComponentBlock: function(t4, e5, n5) { + return t4 == "}" ? j(t4, e5, n5) : t4 == "{" ? T(n5) && _(n5, e5, y2 ? "block" : "top", false) : (t4 == "word" && (o2 = "error"), n5.context.type); + }, atBlock_parens: function(t4, e5, n5) { + return t4 == ")" ? T(n5) : t4 == "{" || t4 == "}" ? j(t4, e5, n5, 2) : M.atBlock(t4, e5, n5); + }, restricted_atBlock_before: function(t4, e5, n5) { + return t4 == "{" ? _(n5, e5, "restricted_atBlock") : t4 == "word" && n5.stateArg == "@counter-style" ? (o2 = "variable", "restricted_atBlock_before") : E(t4, e5, n5); + }, restricted_atBlock: function(t4, e5, n5) { + return t4 == "}" ? (n5.stateArg = null, T(n5)) : t4 == "word" ? (o2 = n5.stateArg == "@font-face" && !p2.hasOwnProperty(e5.current().toLowerCase()) || n5.stateArg == "@counter-style" && !g2.hasOwnProperty(e5.current().toLowerCase()) ? "error" : "property", "maybeprop") : "restricted_atBlock"; + }, keyframes: function(t4, e5, n5) { + return t4 == "word" ? (o2 = "variable", "keyframes") : t4 == "{" ? _(n5, e5, "top") : E(t4, e5, n5); + }, at: function(t4, e5, n5) { + return t4 == ";" ? T(n5) : t4 == "{" || t4 == "}" ? j(t4, e5, n5) : (t4 == "word" ? o2 = "tag" : t4 == "hash" && (o2 = "builtin"), "at"); + }, interpolation: function(t4, e5, n5) { + return t4 == "}" ? T(n5) : t4 == "{" || t4 == ";" ? j(t4, e5, n5) : (t4 == "word" ? o2 = "variable" : t4 != "variable" && t4 != "(" && t4 != ")" && (o2 = "error"), "interpolation"); + } }; + return { startState: function(t4) { + return { tokenize: null, state: r3 ? "block" : "top", stateArg: null, context: new P(r3 ? "block" : "top", t4 || 0, null) }; + }, token: function(t4, e5) { + if (!e5.tokenize && t4.eatSpace()) + return null; + var n5 = (e5.tokenize || C)(t4, e5); + return n5 && typeof n5 == "object" && (i2 = n5[1], n5 = n5[0]), o2 = n5, i2 != "comment" && (e5.state = M[e5.state](i2, t4, e5)), o2; + }, indent: function(t4, e5) { + var n5 = t4.context, r4 = e5 && e5.charAt(0), i3 = n5.indent; + return n5.type != "prop" || r4 != "}" && r4 != ")" || (n5 = n5.prev), n5.prev && (r4 != "}" || n5.type != "block" && n5.type != "top" && n5.type != "interpolation" && n5.type != "restricted_atBlock" ? (r4 != ")" || n5.type != "parens" && n5.type != "atBlock_parens") && (r4 != "{" || n5.type != "at" && n5.type != "atBlock") || (i3 = Math.max(0, n5.indent - s2)) : i3 = (n5 = n5.prev).indent), i3; + }, electricChars: "}", blockCommentStart: "/*", blockCommentEnd: "*/", blockCommentContinue: " * ", lineComment: b2, fold: "brace" }; + }); + var n3 = ["domain", "regexp", "url", "url-prefix"], r2 = e3(n3), i = ["all", "aural", "braille", "handheld", "print", "projection", "screen", "tty", "tv", "embossed"], o = e3(i), s = ["width", "min-width", "max-width", "height", "min-height", "max-height", "device-width", "min-device-width", "max-device-width", "device-height", "min-device-height", "max-device-height", "aspect-ratio", "min-aspect-ratio", "max-aspect-ratio", "device-aspect-ratio", "min-device-aspect-ratio", "max-device-aspect-ratio", "color", "min-color", "max-color", "color-index", "min-color-index", "max-color-index", "monochrome", "min-monochrome", "max-monochrome", "resolution", "min-resolution", "max-resolution", "scan", "grid", "orientation", "device-pixel-ratio", "min-device-pixel-ratio", "max-device-pixel-ratio", "pointer", "any-pointer", "hover", "any-hover", "prefers-color-scheme"], a = e3(s), l = ["landscape", "portrait", "none", "coarse", "fine", "on-demand", "hover", "interlace", "progressive", "dark", "light"], c = e3(l), u = ["align-content", "align-items", "align-self", "alignment-adjust", "alignment-baseline", "all", "anchor-point", "animation", "animation-delay", "animation-direction", "animation-duration", "animation-fill-mode", "animation-iteration-count", "animation-name", "animation-play-state", "animation-timing-function", "appearance", "azimuth", "backdrop-filter", "backface-visibility", "background", "background-attachment", "background-blend-mode", "background-clip", "background-color", "background-image", "background-origin", "background-position", "background-position-x", "background-position-y", "background-repeat", "background-size", "baseline-shift", "binding", "bleed", "block-size", "bookmark-label", "bookmark-level", "bookmark-state", "bookmark-target", "border", "border-bottom", "border-bottom-color", "border-bottom-left-radius", "border-bottom-right-radius", "border-bottom-style", "border-bottom-width", "border-collapse", "border-color", "border-image", "border-image-outset", "border-image-repeat", "border-image-slice", "border-image-source", "border-image-width", "border-left", "border-left-color", "border-left-style", "border-left-width", "border-radius", "border-right", "border-right-color", "border-right-style", "border-right-width", "border-spacing", "border-style", "border-top", "border-top-color", "border-top-left-radius", "border-top-right-radius", "border-top-style", "border-top-width", "border-width", "bottom", "box-decoration-break", "box-shadow", "box-sizing", "break-after", "break-before", "break-inside", "caption-side", "caret-color", "clear", "clip", "color", "color-profile", "column-count", "column-fill", "column-gap", "column-rule", "column-rule-color", "column-rule-style", "column-rule-width", "column-span", "column-width", "columns", "contain", "content", "counter-increment", "counter-reset", "crop", "cue", "cue-after", "cue-before", "cursor", "direction", "display", "dominant-baseline", "drop-initial-after-adjust", "drop-initial-after-align", "drop-initial-before-adjust", "drop-initial-before-align", "drop-initial-size", "drop-initial-value", "elevation", "empty-cells", "fit", "fit-content", "fit-position", "flex", "flex-basis", "flex-direction", "flex-flow", "flex-grow", "flex-shrink", "flex-wrap", "float", "float-offset", "flow-from", "flow-into", "font", "font-family", "font-feature-settings", "font-kerning", "font-language-override", "font-optical-sizing", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-synthesis", "font-variant", "font-variant-alternates", "font-variant-caps", "font-variant-east-asian", "font-variant-ligatures", "font-variant-numeric", "font-variant-position", "font-variation-settings", "font-weight", "gap", "grid", "grid-area", "grid-auto-columns", "grid-auto-flow", "grid-auto-rows", "grid-column", "grid-column-end", "grid-column-gap", "grid-column-start", "grid-gap", "grid-row", "grid-row-end", "grid-row-gap", "grid-row-start", "grid-template", "grid-template-areas", "grid-template-columns", "grid-template-rows", "hanging-punctuation", "height", "hyphens", "icon", "image-orientation", "image-rendering", "image-resolution", "inline-box-align", "inset", "inset-block", "inset-block-end", "inset-block-start", "inset-inline", "inset-inline-end", "inset-inline-start", "isolation", "justify-content", "justify-items", "justify-self", "left", "letter-spacing", "line-break", "line-height", "line-height-step", "line-stacking", "line-stacking-ruby", "line-stacking-shift", "line-stacking-strategy", "list-style", "list-style-image", "list-style-position", "list-style-type", "margin", "margin-bottom", "margin-left", "margin-right", "margin-top", "marks", "marquee-direction", "marquee-loop", "marquee-play-count", "marquee-speed", "marquee-style", "mask-clip", "mask-composite", "mask-image", "mask-mode", "mask-origin", "mask-position", "mask-repeat", "mask-size", "mask-type", "max-block-size", "max-height", "max-inline-size", "max-width", "min-block-size", "min-height", "min-inline-size", "min-width", "mix-blend-mode", "move-to", "nav-down", "nav-index", "nav-left", "nav-right", "nav-up", "object-fit", "object-position", "offset", "offset-anchor", "offset-distance", "offset-path", "offset-position", "offset-rotate", "opacity", "order", "orphans", "outline", "outline-color", "outline-offset", "outline-style", "outline-width", "overflow", "overflow-style", "overflow-wrap", "overflow-x", "overflow-y", "padding", "padding-bottom", "padding-left", "padding-right", "padding-top", "page", "page-break-after", "page-break-before", "page-break-inside", "page-policy", "pause", "pause-after", "pause-before", "perspective", "perspective-origin", "pitch", "pitch-range", "place-content", "place-items", "place-self", "play-during", "position", "presentation-level", "punctuation-trim", "quotes", "region-break-after", "region-break-before", "region-break-inside", "region-fragment", "rendering-intent", "resize", "rest", "rest-after", "rest-before", "richness", "right", "rotate", "rotation", "rotation-point", "row-gap", "ruby-align", "ruby-overhang", "ruby-position", "ruby-span", "scale", "scroll-behavior", "scroll-margin", "scroll-margin-block", "scroll-margin-block-end", "scroll-margin-block-start", "scroll-margin-bottom", "scroll-margin-inline", "scroll-margin-inline-end", "scroll-margin-inline-start", "scroll-margin-left", "scroll-margin-right", "scroll-margin-top", "scroll-padding", "scroll-padding-block", "scroll-padding-block-end", "scroll-padding-block-start", "scroll-padding-bottom", "scroll-padding-inline", "scroll-padding-inline-end", "scroll-padding-inline-start", "scroll-padding-left", "scroll-padding-right", "scroll-padding-top", "scroll-snap-align", "scroll-snap-type", "shape-image-threshold", "shape-inside", "shape-margin", "shape-outside", "size", "speak", "speak-as", "speak-header", "speak-numeral", "speak-punctuation", "speech-rate", "stress", "string-set", "tab-size", "table-layout", "target", "target-name", "target-new", "target-position", "text-align", "text-align-last", "text-combine-upright", "text-decoration", "text-decoration-color", "text-decoration-line", "text-decoration-skip", "text-decoration-skip-ink", "text-decoration-style", "text-emphasis", "text-emphasis-color", "text-emphasis-position", "text-emphasis-style", "text-height", "text-indent", "text-justify", "text-orientation", "text-outline", "text-overflow", "text-rendering", "text-shadow", "text-size-adjust", "text-space-collapse", "text-transform", "text-underline-position", "text-wrap", "top", "touch-action", "transform", "transform-origin", "transform-style", "transition", "transition-delay", "transition-duration", "transition-property", "transition-timing-function", "translate", "unicode-bidi", "user-select", "vertical-align", "visibility", "voice-balance", "voice-duration", "voice-family", "voice-pitch", "voice-range", "voice-rate", "voice-stress", "voice-volume", "volume", "white-space", "widows", "width", "will-change", "word-break", "word-spacing", "word-wrap", "writing-mode", "z-index", "clip-path", "clip-rule", "mask", "enable-background", "filter", "flood-color", "flood-opacity", "lighting-color", "stop-color", "stop-opacity", "pointer-events", "color-interpolation", "color-interpolation-filters", "color-rendering", "fill", "fill-opacity", "fill-rule", "image-rendering", "marker", "marker-end", "marker-mid", "marker-start", "paint-order", "shape-rendering", "stroke", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke-width", "text-rendering", "baseline-shift", "dominant-baseline", "glyph-orientation-horizontal", "glyph-orientation-vertical", "text-anchor", "writing-mode"], h = e3(u), f = ["accent-color", "aspect-ratio", "border-block", "border-block-color", "border-block-end", "border-block-end-color", "border-block-end-style", "border-block-end-width", "border-block-start", "border-block-start-color", "border-block-start-style", "border-block-start-width", "border-block-style", "border-block-width", "border-inline", "border-inline-color", "border-inline-end", "border-inline-end-color", "border-inline-end-style", "border-inline-end-width", "border-inline-start", "border-inline-start-color", "border-inline-start-style", "border-inline-start-width", "border-inline-style", "border-inline-width", "content-visibility", "margin-block", "margin-block-end", "margin-block-start", "margin-inline", "margin-inline-end", "margin-inline-start", "overflow-anchor", "overscroll-behavior", "padding-block", "padding-block-end", "padding-block-start", "padding-inline", "padding-inline-end", "padding-inline-start", "scroll-snap-stop", "scrollbar-3d-light-color", "scrollbar-arrow-color", "scrollbar-base-color", "scrollbar-dark-shadow-color", "scrollbar-face-color", "scrollbar-highlight-color", "scrollbar-shadow-color", "scrollbar-track-color", "searchfield-cancel-button", "searchfield-decoration", "searchfield-results-button", "searchfield-results-decoration", "shape-inside", "zoom"], d = e3(f), p = e3(["font-display", "font-family", "src", "unicode-range", "font-variant", "font-feature-settings", "font-stretch", "font-weight", "font-style"]), g = e3(["additive-symbols", "fallback", "negative", "pad", "prefix", "range", "speak-as", "suffix", "symbols", "system"]), v = ["aliceblue", "antiquewhite", "aqua", "aquamarine", "azure", "beige", "bisque", "black", "blanchedalmond", "blue", "blueviolet", "brown", "burlywood", "cadetblue", "chartreuse", "chocolate", "coral", "cornflowerblue", "cornsilk", "crimson", "cyan", "darkblue", "darkcyan", "darkgoldenrod", "darkgray", "darkgreen", "darkgrey", "darkkhaki", "darkmagenta", "darkolivegreen", "darkorange", "darkorchid", "darkred", "darksalmon", "darkseagreen", "darkslateblue", "darkslategray", "darkslategrey", "darkturquoise", "darkviolet", "deeppink", "deepskyblue", "dimgray", "dimgrey", "dodgerblue", "firebrick", "floralwhite", "forestgreen", "fuchsia", "gainsboro", "ghostwhite", "gold", "goldenrod", "gray", "grey", "green", "greenyellow", "honeydew", "hotpink", "indianred", "indigo", "ivory", "khaki", "lavender", "lavenderblush", "lawngreen", "lemonchiffon", "lightblue", "lightcoral", "lightcyan", "lightgoldenrodyellow", "lightgray", "lightgreen", "lightgrey", "lightpink", "lightsalmon", "lightseagreen", "lightskyblue", "lightslategray", "lightslategrey", "lightsteelblue", "lightyellow", "lime", "limegreen", "linen", "magenta", "maroon", "mediumaquamarine", "mediumblue", "mediumorchid", "mediumpurple", "mediumseagreen", "mediumslateblue", "mediumspringgreen", "mediumturquoise", "mediumvioletred", "midnightblue", "mintcream", "mistyrose", "moccasin", "navajowhite", "navy", "oldlace", "olive", "olivedrab", "orange", "orangered", "orchid", "palegoldenrod", "palegreen", "paleturquoise", "palevioletred", "papayawhip", "peachpuff", "peru", "pink", "plum", "powderblue", "purple", "rebeccapurple", "red", "rosybrown", "royalblue", "saddlebrown", "salmon", "sandybrown", "seagreen", "seashell", "sienna", "silver", "skyblue", "slateblue", "slategray", "slategrey", "snow", "springgreen", "steelblue", "tan", "teal", "thistle", "tomato", "turquoise", "violet", "wheat", "white", "whitesmoke", "yellow", "yellowgreen"], m = e3(v), y = ["above", "absolute", "activeborder", "additive", "activecaption", "afar", "after-white-space", "ahead", "alias", "all", "all-scroll", "alphabetic", "alternate", "always", "amharic", "amharic-abegede", "antialiased", "appworkspace", "arabic-indic", "armenian", "asterisks", "attr", "auto", "auto-flow", "avoid", "avoid-column", "avoid-page", "avoid-region", "axis-pan", "background", "backwards", "baseline", "below", "bidi-override", "binary", "bengali", "blink", "block", "block-axis", "blur", "bold", "bolder", "border", "border-box", "both", "bottom", "break", "break-all", "break-word", "brightness", "bullets", "button", "button-bevel", "buttonface", "buttonhighlight", "buttonshadow", "buttontext", "calc", "cambodian", "capitalize", "caps-lock-indicator", "caption", "captiontext", "caret", "cell", "center", "checkbox", "circle", "cjk-decimal", "cjk-earthly-branch", "cjk-heavenly-stem", "cjk-ideographic", "clear", "clip", "close-quote", "col-resize", "collapse", "color", "color-burn", "color-dodge", "column", "column-reverse", "compact", "condensed", "contain", "content", "contents", "content-box", "context-menu", "continuous", "contrast", "copy", "counter", "counters", "cover", "crop", "cross", "crosshair", "cubic-bezier", "currentcolor", "cursive", "cyclic", "darken", "dashed", "decimal", "decimal-leading-zero", "default", "default-button", "dense", "destination-atop", "destination-in", "destination-out", "destination-over", "devanagari", "difference", "disc", "discard", "disclosure-closed", "disclosure-open", "document", "dot-dash", "dot-dot-dash", "dotted", "double", "down", "drop-shadow", "e-resize", "ease", "ease-in", "ease-in-out", "ease-out", "element", "ellipse", "ellipsis", "embed", "end", "ethiopic", "ethiopic-abegede", "ethiopic-abegede-am-et", "ethiopic-abegede-gez", "ethiopic-abegede-ti-er", "ethiopic-abegede-ti-et", "ethiopic-halehame-aa-er", "ethiopic-halehame-aa-et", "ethiopic-halehame-am-et", "ethiopic-halehame-gez", "ethiopic-halehame-om-et", "ethiopic-halehame-sid-et", "ethiopic-halehame-so-et", "ethiopic-halehame-ti-er", "ethiopic-halehame-ti-et", "ethiopic-halehame-tig", "ethiopic-numeric", "ew-resize", "exclusion", "expanded", "extends", "extra-condensed", "extra-expanded", "fantasy", "fast", "fill", "fill-box", "fixed", "flat", "flex", "flex-end", "flex-start", "footnotes", "forwards", "from", "geometricPrecision", "georgian", "grayscale", "graytext", "grid", "groove", "gujarati", "gurmukhi", "hand", "hangul", "hangul-consonant", "hard-light", "hebrew", "help", "hidden", "hide", "higher", "highlight", "highlighttext", "hiragana", "hiragana-iroha", "horizontal", "hsl", "hsla", "hue", "hue-rotate", "icon", "ignore", "inactiveborder", "inactivecaption", "inactivecaptiontext", "infinite", "infobackground", "infotext", "inherit", "initial", "inline", "inline-axis", "inline-block", "inline-flex", "inline-grid", "inline-table", "inset", "inside", "intrinsic", "invert", "italic", "japanese-formal", "japanese-informal", "justify", "kannada", "katakana", "katakana-iroha", "keep-all", "khmer", "korean-hangul-formal", "korean-hanja-formal", "korean-hanja-informal", "landscape", "lao", "large", "larger", "left", "level", "lighter", "lighten", "line-through", "linear", "linear-gradient", "lines", "list-item", "listbox", "listitem", "local", "logical", "loud", "lower", "lower-alpha", "lower-armenian", "lower-greek", "lower-hexadecimal", "lower-latin", "lower-norwegian", "lower-roman", "lowercase", "ltr", "luminosity", "malayalam", "manipulation", "match", "matrix", "matrix3d", "media-controls-background", "media-current-time-display", "media-fullscreen-button", "media-mute-button", "media-play-button", "media-return-to-realtime-button", "media-rewind-button", "media-seek-back-button", "media-seek-forward-button", "media-slider", "media-sliderthumb", "media-time-remaining-display", "media-volume-slider", "media-volume-slider-container", "media-volume-sliderthumb", "medium", "menu", "menulist", "menulist-button", "menulist-text", "menulist-textfield", "menutext", "message-box", "middle", "min-intrinsic", "mix", "mongolian", "monospace", "move", "multiple", "multiple_mask_images", "multiply", "myanmar", "n-resize", "narrower", "ne-resize", "nesw-resize", "no-close-quote", "no-drop", "no-open-quote", "no-repeat", "none", "normal", "not-allowed", "nowrap", "ns-resize", "numbers", "numeric", "nw-resize", "nwse-resize", "oblique", "octal", "opacity", "open-quote", "optimizeLegibility", "optimizeSpeed", "oriya", "oromo", "outset", "outside", "outside-shape", "overlay", "overline", "padding", "padding-box", "painted", "page", "paused", "persian", "perspective", "pinch-zoom", "plus-darker", "plus-lighter", "pointer", "polygon", "portrait", "pre", "pre-line", "pre-wrap", "preserve-3d", "progress", "push-button", "radial-gradient", "radio", "read-only", "read-write", "read-write-plaintext-only", "rectangle", "region", "relative", "repeat", "repeating-linear-gradient", "repeating-radial-gradient", "repeat-x", "repeat-y", "reset", "reverse", "rgb", "rgba", "ridge", "right", "rotate", "rotate3d", "rotateX", "rotateY", "rotateZ", "round", "row", "row-resize", "row-reverse", "rtl", "run-in", "running", "s-resize", "sans-serif", "saturate", "saturation", "scale", "scale3d", "scaleX", "scaleY", "scaleZ", "screen", "scroll", "scrollbar", "scroll-position", "se-resize", "searchfield", "searchfield-cancel-button", "searchfield-decoration", "searchfield-results-button", "searchfield-results-decoration", "self-start", "self-end", "semi-condensed", "semi-expanded", "separate", "sepia", "serif", "show", "sidama", "simp-chinese-formal", "simp-chinese-informal", "single", "skew", "skewX", "skewY", "skip-white-space", "slide", "slider-horizontal", "slider-vertical", "sliderthumb-horizontal", "sliderthumb-vertical", "slow", "small", "small-caps", "small-caption", "smaller", "soft-light", "solid", "somali", "source-atop", "source-in", "source-out", "source-over", "space", "space-around", "space-between", "space-evenly", "spell-out", "square", "square-button", "start", "static", "status-bar", "stretch", "stroke", "stroke-box", "sub", "subpixel-antialiased", "svg_masks", "super", "sw-resize", "symbolic", "symbols", "system-ui", "table", "table-caption", "table-cell", "table-column", "table-column-group", "table-footer-group", "table-header-group", "table-row", "table-row-group", "tamil", "telugu", "text", "text-bottom", "text-top", "textarea", "textfield", "thai", "thick", "thin", "threeddarkshadow", "threedface", "threedhighlight", "threedlightshadow", "threedshadow", "tibetan", "tigre", "tigrinya-er", "tigrinya-er-abegede", "tigrinya-et", "tigrinya-et-abegede", "to", "top", "trad-chinese-formal", "trad-chinese-informal", "transform", "translate", "translate3d", "translateX", "translateY", "translateZ", "transparent", "ultra-condensed", "ultra-expanded", "underline", "unidirectional-pan", "unset", "up", "upper-alpha", "upper-armenian", "upper-greek", "upper-hexadecimal", "upper-latin", "upper-norwegian", "upper-roman", "uppercase", "urdu", "url", "var", "vertical", "vertical-text", "view-box", "visible", "visibleFill", "visiblePainted", "visibleStroke", "visual", "w-resize", "wait", "wave", "wider", "window", "windowframe", "windowtext", "words", "wrap", "wrap-reverse", "x-large", "x-small", "xor", "xx-large", "xx-small"], b = e3(y), w = n3.concat(i).concat(s).concat(l).concat(u).concat(f).concat(v).concat(y); + function x(t4, e4) { + for (var n4, r3 = false; (n4 = t4.next()) != null; ) { + if (r3 && n4 == "/") { + e4.tokenize = null; + break; + } + r3 = n4 == "*"; + } + return ["comment", "comment"]; + } + t3.registerHelper("hintWords", "css", w), t3.defineMIME("text/css", { documentTypes: r2, mediaTypes: o, mediaFeatures: a, mediaValueKeywords: c, propertyKeywords: h, nonStandardPropertyKeywords: d, fontProperties: p, counterDescriptors: g, colorKeywords: m, valueKeywords: b, tokenHooks: { "/": function(t4, e4) { + return !!t4.eat("*") && (e4.tokenize = x, x(t4, e4)); + } }, name: "css" }), t3.defineMIME("text/x-scss", { mediaTypes: o, mediaFeatures: a, mediaValueKeywords: c, propertyKeywords: h, nonStandardPropertyKeywords: d, colorKeywords: m, valueKeywords: b, fontProperties: p, allowNested: true, lineComment: "//", tokenHooks: { "/": function(t4, e4) { + return t4.eat("/") ? (t4.skipToEnd(), ["comment", "comment"]) : t4.eat("*") ? (e4.tokenize = x, x(t4, e4)) : ["operator", "operator"]; + }, ":": function(t4) { + return !!t4.match(/^\s*\{/, false) && [null, null]; + }, $: function(t4) { + return t4.match(/^[\w-]+/), t4.match(/^\s*:/, false) ? ["variable-2", "variable-definition"] : ["variable-2", "variable"]; + }, "#": function(t4) { + return !!t4.eat("{") && [null, "interpolation"]; + } }, name: "css", helperType: "scss" }), t3.defineMIME("text/x-less", { mediaTypes: o, mediaFeatures: a, mediaValueKeywords: c, propertyKeywords: h, nonStandardPropertyKeywords: d, colorKeywords: m, valueKeywords: b, fontProperties: p, allowNested: true, lineComment: "//", tokenHooks: { "/": function(t4, e4) { + return t4.eat("/") ? (t4.skipToEnd(), ["comment", "comment"]) : t4.eat("*") ? (e4.tokenize = x, x(t4, e4)) : ["operator", "operator"]; + }, "@": function(t4) { + return t4.eat("{") ? [null, "interpolation"] : !t4.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i, false) && (t4.eatWhile(/[\w\\\-]/), t4.match(/^\s*:/, false) ? ["variable-2", "variable-definition"] : ["variable-2", "variable"]); + }, "&": function() { + return ["atom", "atom"]; + } }, name: "css", helperType: "less" }), t3.defineMIME("text/x-gss", { documentTypes: r2, mediaTypes: o, mediaFeatures: a, propertyKeywords: h, nonStandardPropertyKeywords: d, fontProperties: p, counterDescriptors: g, colorKeywords: m, valueKeywords: b, supportsAtComponent: true, tokenHooks: { "/": function(t4, e4) { + return !!t4.eat("*") && (e4.tokenize = x, x(t4, e4)); + } }, name: "css", helperType: "gss" }); + }(n2(4631)); + }, 6531: (t2, e2, n2) => { + !function(t3) { + "use strict"; + var e3 = { script: [["lang", /(javascript|babel)/i, "javascript"], ["type", /^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i, "javascript"], ["type", /./, "text/plain"], [null, null, "javascript"]], style: [["lang", /^css$/i, "css"], ["type", /^(text\/)?(x-)?(stylesheet|css)$/i, "css"], ["type", /./, "text/plain"], [null, null, "css"]] }; + function n3(t4, e4, n4) { + var r3 = t4.current(), i2 = r3.search(e4); + return i2 > -1 ? t4.backUp(r3.length - i2) : r3.match(/<\/?$/) && (t4.backUp(r3.length), t4.match(e4, false) || t4.match(r3)), n4; + } + var r2 = {}; + function i(t4) { + var e4 = r2[t4]; + return e4 || (r2[t4] = new RegExp("\\s+" + t4 + `\\s*=\\s*('|")?([^'"]+)('|")?\\s*`)); + } + function o(t4, e4) { + var n4 = t4.match(i(e4)); + return n4 ? /^\s*(.*?)\s*$/.exec(n4[2])[1] : ""; + } + function s(t4, e4) { + return new RegExp((e4 ? "^" : "") + "</s*" + t4 + "s*>", "i"); + } + function a(t4, e4) { + for (var n4 in t4) + for (var r3 = e4[n4] || (e4[n4] = []), i2 = t4[n4], o2 = i2.length - 1; o2 >= 0; o2--) + r3.unshift(i2[o2]); + } + function l(t4, e4) { + for (var n4 = 0; n4 < t4.length; n4++) { + var r3 = t4[n4]; + if (!r3[0] || r3[1].test(o(e4, r3[0]))) + return r3[2]; + } + } + t3.defineMode("htmlmixed", function(r3, i2) { + var o2 = t3.getMode(r3, { name: "xml", htmlMode: true, multilineTagIndentFactor: i2.multilineTagIndentFactor, multilineTagIndentPastTag: i2.multilineTagIndentPastTag, allowMissingTagName: i2.allowMissingTagName }), c = {}, u = i2 && i2.tags, h = i2 && i2.scriptTypes; + if (a(e3, c), u && a(u, c), h) + for (var f = h.length - 1; f >= 0; f--) + c.script.unshift(["type", h[f].matches, h[f].mode]); + function d(e4, i3) { + var a2, u2 = o2.token(e4, i3.htmlState), h2 = /\btag\b/.test(u2); + if (h2 && !/[<>\s\/]/.test(e4.current()) && (a2 = i3.htmlState.tagName && i3.htmlState.tagName.toLowerCase()) && c.hasOwnProperty(a2)) + i3.inTag = a2 + " "; + else if (i3.inTag && h2 && />$/.test(e4.current())) { + var f2 = /^([\S]+) (.*)/.exec(i3.inTag); + i3.inTag = null; + var p = e4.current() == ">" && l(c[f2[1]], f2[2]), g = t3.getMode(r3, p), v = s(f2[1], true), m = s(f2[1], false); + i3.token = function(t4, e5) { + return t4.match(v, false) ? (e5.token = d, e5.localState = e5.localMode = null, null) : n3(t4, m, e5.localMode.token(t4, e5.localState)); + }, i3.localMode = g, i3.localState = t3.startState(g, o2.indent(i3.htmlState, "", "")); + } else + i3.inTag && (i3.inTag += e4.current(), e4.eol() && (i3.inTag += " ")); + return u2; + } + return { startState: function() { + return { token: d, inTag: null, localMode: null, localState: null, htmlState: t3.startState(o2) }; + }, copyState: function(e4) { + var n4; + return e4.localState && (n4 = t3.copyState(e4.localMode, e4.localState)), { token: e4.token, inTag: e4.inTag, localMode: e4.localMode, localState: n4, htmlState: t3.copyState(o2, e4.htmlState) }; + }, token: function(t4, e4) { + return e4.token(t4, e4); + }, indent: function(e4, n4, r4) { + return !e4.localMode || /^\s*<\//.test(n4) ? o2.indent(e4.htmlState, n4, r4) : e4.localMode.indent ? e4.localMode.indent(e4.localState, n4, r4) : t3.Pass; + }, innerMode: function(t4) { + return { state: t4.localState || t4.htmlState, mode: t4.localMode || o2 }; + } }; + }, "xml", "javascript", "css"), t3.defineMIME("text/html", "htmlmixed"); + }(n2(4631), n2(9589), n2(6876), n2(6629)); + }, 6876: (t2, e2, n2) => { + !function(t3) { + "use strict"; + t3.defineMode("javascript", function(e3, n3) { + var r2, i, o = e3.indentUnit, s = n3.statementIndent, a = n3.jsonld, l = n3.json || a, c = n3.trackScope !== false, u = n3.typescript, h = n3.wordCharacters || /[\w$\xa1-\uffff]/, f = function() { + function t4(t5) { + return { type: t5, style: "keyword" }; + } + var e4 = t4("keyword a"), n4 = t4("keyword b"), r3 = t4("keyword c"), i2 = t4("keyword d"), o2 = t4("operator"), s2 = { type: "atom", style: "atom" }; + return { if: t4("if"), while: e4, with: e4, else: n4, do: n4, try: n4, finally: n4, return: i2, break: i2, continue: i2, new: t4("new"), delete: r3, void: r3, throw: r3, debugger: t4("debugger"), var: t4("var"), const: t4("var"), let: t4("var"), function: t4("function"), catch: t4("catch"), for: t4("for"), switch: t4("switch"), case: t4("case"), default: t4("default"), in: o2, typeof: o2, instanceof: o2, true: s2, false: s2, null: s2, undefined: s2, NaN: s2, Infinity: s2, this: t4("this"), class: t4("class"), super: t4("atom"), yield: r3, export: t4("export"), import: t4("import"), extends: r3, await: r3 }; + }(), d = /[+\-*&%=<>!?|~^@]/, p = /^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/; + function g(t4) { + for (var e4, n4 = false, r3 = false; (e4 = t4.next()) != null; ) { + if (!n4) { + if (e4 == "/" && !r3) + return; + e4 == "[" ? r3 = true : r3 && e4 == "]" && (r3 = false); + } + n4 = !n4 && e4 == "\\"; + } + } + function v(t4, e4, n4) { + return r2 = t4, i = n4, e4; + } + function m(t4, e4) { + var n4 = t4.next(); + if (n4 == '"' || n4 == "'") + return e4.tokenize = y(n4), e4.tokenize(t4, e4); + if (n4 == "." && t4.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/)) + return v("number", "number"); + if (n4 == "." && t4.match("..")) + return v("spread", "meta"); + if (/[\[\]{}\(\),;\:\.]/.test(n4)) + return v(n4); + if (n4 == "=" && t4.eat(">")) + return v("=>", "operator"); + if (n4 == "0" && t4.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/)) + return v("number", "number"); + if (/\d/.test(n4)) + return t4.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/), v("number", "number"); + if (n4 == "/") + return t4.eat("*") ? (e4.tokenize = b, b(t4, e4)) : t4.eat("/") ? (t4.skipToEnd(), v("comment", "comment")) : ie(t4, e4, 1) ? (g(t4), t4.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/), v("regexp", "string-2")) : (t4.eat("="), v("operator", "operator", t4.current())); + if (n4 == "`") + return e4.tokenize = w, w(t4, e4); + if (n4 == "#" && t4.peek() == "!") + return t4.skipToEnd(), v("meta", "meta"); + if (n4 == "#" && t4.eatWhile(h)) + return v("variable", "property"); + if (n4 == "<" && t4.match("!--") || n4 == "-" && t4.match("->") && !/\S/.test(t4.string.slice(0, t4.start))) + return t4.skipToEnd(), v("comment", "comment"); + if (d.test(n4)) + return n4 == ">" && e4.lexical && e4.lexical.type == ">" || (t4.eat("=") ? n4 != "!" && n4 != "=" || t4.eat("=") : /[<>*+\-|&?]/.test(n4) && (t4.eat(n4), n4 == ">" && t4.eat(n4))), n4 == "?" && t4.eat(".") ? v(".") : v("operator", "operator", t4.current()); + if (h.test(n4)) { + t4.eatWhile(h); + var r3 = t4.current(); + if (e4.lastType != ".") { + if (f.propertyIsEnumerable(r3)) { + var i2 = f[r3]; + return v(i2.type, i2.style, r3); + } + if (r3 == "async" && t4.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/, false)) + return v("async", "keyword", r3); + } + return v("variable", "variable", r3); + } + } + function y(t4) { + return function(e4, n4) { + var r3, i2 = false; + if (a && e4.peek() == "@" && e4.match(p)) + return n4.tokenize = m, v("jsonld-keyword", "meta"); + for (; (r3 = e4.next()) != null && (r3 != t4 || i2); ) + i2 = !i2 && r3 == "\\"; + return i2 || (n4.tokenize = m), v("string", "string"); + }; + } + function b(t4, e4) { + for (var n4, r3 = false; n4 = t4.next(); ) { + if (n4 == "/" && r3) { + e4.tokenize = m; + break; + } + r3 = n4 == "*"; + } + return v("comment", "comment"); + } + function w(t4, e4) { + for (var n4, r3 = false; (n4 = t4.next()) != null; ) { + if (!r3 && (n4 == "`" || n4 == "$" && t4.eat("{"))) { + e4.tokenize = m; + break; + } + r3 = !r3 && n4 == "\\"; + } + return v("quasi", "string-2", t4.current()); + } + var x = "([{}])"; + function O(t4, e4) { + e4.fatArrowAt && (e4.fatArrowAt = null); + var n4 = t4.string.indexOf("=>", t4.start); + if (!(n4 < 0)) { + if (u) { + var r3 = /:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(t4.string.slice(t4.start, n4)); + r3 && (n4 = r3.index); + } + for (var i2 = 0, o2 = false, s2 = n4 - 1; s2 >= 0; --s2) { + var a2 = t4.string.charAt(s2), l2 = x.indexOf(a2); + if (l2 >= 0 && l2 < 3) { + if (!i2) { + ++s2; + break; + } + if (--i2 == 0) { + a2 == "(" && (o2 = true); + break; + } + } else if (l2 >= 3 && l2 < 6) + ++i2; + else if (h.test(a2)) + o2 = true; + else if (/["'\/`]/.test(a2)) + for (; ; --s2) { + if (s2 == 0) + return; + if (t4.string.charAt(s2 - 1) == a2 && t4.string.charAt(s2 - 2) != "\\") { + s2--; + break; + } + } + else if (o2 && !i2) { + ++s2; + break; + } + } + o2 && !i2 && (e4.fatArrowAt = s2); + } + } + var C = { atom: true, number: true, variable: true, string: true, regexp: true, this: true, import: true, "jsonld-keyword": true }; + function k(t4, e4, n4, r3, i2, o2) { + this.indented = t4, this.column = e4, this.type = n4, this.prev = i2, this.info = o2, r3 != null && (this.align = r3); + } + function S(t4, e4) { + if (!c) + return false; + for (var n4 = t4.localVars; n4; n4 = n4.next) + if (n4.name == e4) + return true; + for (var r3 = t4.context; r3; r3 = r3.prev) + for (n4 = r3.vars; n4; n4 = n4.next) + if (n4.name == e4) + return true; + } + function P(t4, e4, n4, r3, i2) { + var o2 = t4.cc; + for (_.state = t4, _.stream = i2, _.marked = null, _.cc = o2, _.style = e4, t4.lexical.hasOwnProperty("align") || (t4.lexical.align = true); ; ) + if ((o2.length ? o2.pop() : l ? W : z)(n4, r3)) { + for (; o2.length && o2[o2.length - 1].lex; ) + o2.pop()(); + return _.marked ? _.marked : n4 == "variable" && S(t4, r3) ? "variable-2" : e4; + } + } + var _ = { state: null, column: null, marked: null, cc: null }; + function T() { + for (var t4 = arguments.length - 1; t4 >= 0; t4--) + _.cc.push(arguments[t4]); + } + function E() { + return T.apply(null, arguments), true; + } + function j(t4, e4) { + for (var n4 = e4; n4; n4 = n4.next) + if (n4.name == t4) + return true; + return false; + } + function D(t4) { + var e4 = _.state; + if (_.marked = "def", c) { + if (e4.context) { + if (e4.lexical.info == "var" && e4.context && e4.context.block) { + var r3 = M(t4, e4.context); + if (r3 != null) + return void (e4.context = r3); + } else if (!j(t4, e4.localVars)) + return void (e4.localVars = new R(t4, e4.localVars)); + } + n3.globalVars && !j(t4, e4.globalVars) && (e4.globalVars = new R(t4, e4.globalVars)); + } + } + function M(t4, e4) { + if (e4) { + if (e4.block) { + var n4 = M(t4, e4.prev); + return n4 ? n4 == e4.prev ? e4 : new L(n4, e4.vars, true) : null; + } + return j(t4, e4.vars) ? e4 : new L(e4.prev, new R(t4, e4.vars), false); + } + return null; + } + function A(t4) { + return t4 == "public" || t4 == "private" || t4 == "protected" || t4 == "abstract" || t4 == "readonly"; + } + function L(t4, e4, n4) { + this.prev = t4, this.vars = e4, this.block = n4; + } + function R(t4, e4) { + this.name = t4, this.next = e4; + } + var N = new R("this", new R("arguments", null)); + function Z() { + _.state.context = new L(_.state.context, _.state.localVars, false), _.state.localVars = N; + } + function I() { + _.state.context = new L(_.state.context, _.state.localVars, true), _.state.localVars = null; + } + function F() { + _.state.localVars = _.state.context.vars, _.state.context = _.state.context.prev; + } + function V(t4, e4) { + var n4 = function() { + var n5 = _.state, r3 = n5.indented; + if (n5.lexical.type == "stat") + r3 = n5.lexical.indented; + else + for (var i2 = n5.lexical; i2 && i2.type == ")" && i2.align; i2 = i2.prev) + r3 = i2.indented; + n5.lexical = new k(r3, _.stream.column(), t4, null, n5.lexical, e4); + }; + return n4.lex = true, n4; + } + function H() { + var t4 = _.state; + t4.lexical.prev && (t4.lexical.type == ")" && (t4.indented = t4.lexical.indented), t4.lexical = t4.lexical.prev); + } + function B(t4) { + function e4(n4) { + return n4 == t4 ? E() : t4 == ";" || n4 == "}" || n4 == ")" || n4 == "]" ? T() : E(e4); + } + return e4; + } + function z(t4, e4) { + return t4 == "var" ? E(V("vardef", e4), Tt, B(";"), H) : t4 == "keyword a" ? E(V("form"), q, z, H) : t4 == "keyword b" ? E(V("form"), z, H) : t4 == "keyword d" ? _.stream.match(/^\s*$/, false) ? E() : E(V("stat"), K, B(";"), H) : t4 == "debugger" ? E(B(";")) : t4 == "{" ? E(V("}"), I, ft, H, F) : t4 == ";" ? E() : t4 == "if" ? (_.state.lexical.info == "else" && _.state.cc[_.state.cc.length - 1] == H && _.state.cc.pop()(), E(V("form"), q, z, H, Lt)) : t4 == "function" ? E(It) : t4 == "for" ? E(V("form"), I, Rt, z, F, H) : t4 == "class" || u && e4 == "interface" ? (_.marked = "keyword", E(V("form", t4 == "class" ? t4 : e4), zt, H)) : t4 == "variable" ? u && e4 == "declare" ? (_.marked = "keyword", E(z)) : u && (e4 == "module" || e4 == "enum" || e4 == "type") && _.stream.match(/^\s*\w/, false) ? (_.marked = "keyword", e4 == "enum" ? E(ee) : e4 == "type" ? E(Vt, B("operator"), mt, B(";")) : E(V("form"), Et, B("{"), V("}"), ft, H, H)) : u && e4 == "namespace" ? (_.marked = "keyword", E(V("form"), W, z, H)) : u && e4 == "abstract" ? (_.marked = "keyword", E(z)) : E(V("stat"), ot) : t4 == "switch" ? E(V("form"), q, B("{"), V("}", "switch"), I, ft, H, H, F) : t4 == "case" ? E(W, B(":")) : t4 == "default" ? E(B(":")) : t4 == "catch" ? E(V("form"), Z, U, z, H, F) : t4 == "export" ? E(V("stat"), qt, H) : t4 == "import" ? E(V("stat"), Kt, H) : t4 == "async" ? E(z) : e4 == "@" ? E(W, z) : T(V("stat"), W, B(";"), H); + } + function U(t4) { + if (t4 == "(") + return E(Ht, B(")")); + } + function W(t4, e4) { + return G(t4, e4, false); + } + function $(t4, e4) { + return G(t4, e4, true); + } + function q(t4) { + return t4 != "(" ? T() : E(V(")"), K, B(")"), H); + } + function G(t4, e4, n4) { + if (_.state.fatArrowAt == _.stream.start) { + var r3 = n4 ? et : tt; + if (t4 == "(") + return E(Z, V(")"), ut(Ht, ")"), H, B("=>"), r3, F); + if (t4 == "variable") + return T(Z, Et, B("=>"), r3, F); + } + var i2 = n4 ? J : Y; + return C.hasOwnProperty(t4) ? E(i2) : t4 == "function" ? E(It, i2) : t4 == "class" || u && e4 == "interface" ? (_.marked = "keyword", E(V("form"), Bt, H)) : t4 == "keyword c" || t4 == "async" ? E(n4 ? $ : W) : t4 == "(" ? E(V(")"), K, B(")"), H, i2) : t4 == "operator" || t4 == "spread" ? E(n4 ? $ : W) : t4 == "[" ? E(V("]"), te, H, i2) : t4 == "{" ? ht(at, "}", null, i2) : t4 == "quasi" ? T(X, i2) : t4 == "new" ? E(nt(n4)) : E(); + } + function K(t4) { + return t4.match(/[;\}\)\],]/) ? T() : T(W); + } + function Y(t4, e4) { + return t4 == "," ? E(K) : J(t4, e4, false); + } + function J(t4, e4, n4) { + var r3 = n4 == 0 ? Y : J, i2 = n4 == 0 ? W : $; + return t4 == "=>" ? E(Z, n4 ? et : tt, F) : t4 == "operator" ? /\+\+|--/.test(e4) || u && e4 == "!" ? E(r3) : u && e4 == "<" && _.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/, false) ? E(V(">"), ut(mt, ">"), H, r3) : e4 == "?" ? E(W, B(":"), i2) : E(i2) : t4 == "quasi" ? T(X, r3) : t4 != ";" ? t4 == "(" ? ht($, ")", "call", r3) : t4 == "." ? E(st, r3) : t4 == "[" ? E(V("]"), K, B("]"), H, r3) : u && e4 == "as" ? (_.marked = "keyword", E(mt, r3)) : t4 == "regexp" ? (_.state.lastType = _.marked = "operator", _.stream.backUp(_.stream.pos - _.stream.start - 1), E(i2)) : void 0 : void 0; + } + function X(t4, e4) { + return t4 != "quasi" ? T() : e4.slice(e4.length - 2) != "${" ? E(X) : E(K, Q); + } + function Q(t4) { + if (t4 == "}") + return _.marked = "string-2", _.state.tokenize = w, E(X); + } + function tt(t4) { + return O(_.stream, _.state), T(t4 == "{" ? z : W); + } + function et(t4) { + return O(_.stream, _.state), T(t4 == "{" ? z : $); + } + function nt(t4) { + return function(e4) { + return e4 == "." ? E(t4 ? it : rt) : e4 == "variable" && u ? E(St, t4 ? J : Y) : T(t4 ? $ : W); + }; + } + function rt(t4, e4) { + if (e4 == "target") + return _.marked = "keyword", E(Y); + } + function it(t4, e4) { + if (e4 == "target") + return _.marked = "keyword", E(J); + } + function ot(t4) { + return t4 == ":" ? E(H, z) : T(Y, B(";"), H); + } + function st(t4) { + if (t4 == "variable") + return _.marked = "property", E(); + } + function at(t4, e4) { + return t4 == "async" ? (_.marked = "property", E(at)) : t4 == "variable" || _.style == "keyword" ? (_.marked = "property", e4 == "get" || e4 == "set" ? E(lt) : (u && _.state.fatArrowAt == _.stream.start && (n4 = _.stream.match(/^\s*:\s*/, false)) && (_.state.fatArrowAt = _.stream.pos + n4[0].length), E(ct))) : t4 == "number" || t4 == "string" ? (_.marked = a ? "property" : _.style + " property", E(ct)) : t4 == "jsonld-keyword" ? E(ct) : u && A(e4) ? (_.marked = "keyword", E(at)) : t4 == "[" ? E(W, dt, B("]"), ct) : t4 == "spread" ? E($, ct) : e4 == "*" ? (_.marked = "keyword", E(at)) : t4 == ":" ? T(ct) : void 0; + var n4; + } + function lt(t4) { + return t4 != "variable" ? T(ct) : (_.marked = "property", E(It)); + } + function ct(t4) { + return t4 == ":" ? E($) : t4 == "(" ? T(It) : void 0; + } + function ut(t4, e4, n4) { + function r3(i2, o2) { + if (n4 ? n4.indexOf(i2) > -1 : i2 == ",") { + var s2 = _.state.lexical; + return s2.info == "call" && (s2.pos = (s2.pos || 0) + 1), E(function(n5, r4) { + return n5 == e4 || r4 == e4 ? T() : T(t4); + }, r3); + } + return i2 == e4 || o2 == e4 ? E() : n4 && n4.indexOf(";") > -1 ? T(t4) : E(B(e4)); + } + return function(n5, i2) { + return n5 == e4 || i2 == e4 ? E() : T(t4, r3); + }; + } + function ht(t4, e4, n4) { + for (var r3 = 3; r3 < arguments.length; r3++) + _.cc.push(arguments[r3]); + return E(V(e4, n4), ut(t4, e4), H); + } + function ft(t4) { + return t4 == "}" ? E() : T(z, ft); + } + function dt(t4, e4) { + if (u) { + if (t4 == ":") + return E(mt); + if (e4 == "?") + return E(dt); + } + } + function pt(t4, e4) { + if (u && (t4 == ":" || e4 == "in")) + return E(mt); + } + function gt(t4) { + if (u && t4 == ":") + return _.stream.match(/^\s*\w+\s+is\b/, false) ? E(W, vt, mt) : E(mt); + } + function vt(t4, e4) { + if (e4 == "is") + return _.marked = "keyword", E(); + } + function mt(t4, e4) { + return e4 == "keyof" || e4 == "typeof" || e4 == "infer" || e4 == "readonly" ? (_.marked = "keyword", E(e4 == "typeof" ? $ : mt)) : t4 == "variable" || e4 == "void" ? (_.marked = "type", E(kt)) : e4 == "|" || e4 == "&" ? E(mt) : t4 == "string" || t4 == "number" || t4 == "atom" ? E(kt) : t4 == "[" ? E(V("]"), ut(mt, "]", ","), H, kt) : t4 == "{" ? E(V("}"), bt, H, kt) : t4 == "(" ? E(ut(Ct, ")"), yt, kt) : t4 == "<" ? E(ut(mt, ">"), mt) : t4 == "quasi" ? T(xt, kt) : void 0; + } + function yt(t4) { + if (t4 == "=>") + return E(mt); + } + function bt(t4) { + return t4.match(/[\}\)\]]/) ? E() : t4 == "," || t4 == ";" ? E(bt) : T(wt, bt); + } + function wt(t4, e4) { + return t4 == "variable" || _.style == "keyword" ? (_.marked = "property", E(wt)) : e4 == "?" || t4 == "number" || t4 == "string" ? E(wt) : t4 == ":" ? E(mt) : t4 == "[" ? E(B("variable"), pt, B("]"), wt) : t4 == "(" ? T(Ft, wt) : t4.match(/[;\}\)\],]/) ? void 0 : E(); + } + function xt(t4, e4) { + return t4 != "quasi" ? T() : e4.slice(e4.length - 2) != "${" ? E(xt) : E(mt, Ot); + } + function Ot(t4) { + if (t4 == "}") + return _.marked = "string-2", _.state.tokenize = w, E(xt); + } + function Ct(t4, e4) { + return t4 == "variable" && _.stream.match(/^\s*[?:]/, false) || e4 == "?" ? E(Ct) : t4 == ":" ? E(mt) : t4 == "spread" ? E(Ct) : T(mt); + } + function kt(t4, e4) { + return e4 == "<" ? E(V(">"), ut(mt, ">"), H, kt) : e4 == "|" || t4 == "." || e4 == "&" ? E(mt) : t4 == "[" ? E(mt, B("]"), kt) : e4 == "extends" || e4 == "implements" ? (_.marked = "keyword", E(mt)) : e4 == "?" ? E(mt, B(":"), mt) : void 0; + } + function St(t4, e4) { + if (e4 == "<") + return E(V(">"), ut(mt, ">"), H, kt); + } + function Pt() { + return T(mt, _t); + } + function _t(t4, e4) { + if (e4 == "=") + return E(mt); + } + function Tt(t4, e4) { + return e4 == "enum" ? (_.marked = "keyword", E(ee)) : T(Et, dt, Mt, At); + } + function Et(t4, e4) { + return u && A(e4) ? (_.marked = "keyword", E(Et)) : t4 == "variable" ? (D(e4), E()) : t4 == "spread" ? E(Et) : t4 == "[" ? ht(Dt, "]") : t4 == "{" ? ht(jt, "}") : void 0; + } + function jt(t4, e4) { + return t4 != "variable" || _.stream.match(/^\s*:/, false) ? (t4 == "variable" && (_.marked = "property"), t4 == "spread" ? E(Et) : t4 == "}" ? T() : t4 == "[" ? E(W, B("]"), B(":"), jt) : E(B(":"), Et, Mt)) : (D(e4), E(Mt)); + } + function Dt() { + return T(Et, Mt); + } + function Mt(t4, e4) { + if (e4 == "=") + return E($); + } + function At(t4) { + if (t4 == ",") + return E(Tt); + } + function Lt(t4, e4) { + if (t4 == "keyword b" && e4 == "else") + return E(V("form", "else"), z, H); + } + function Rt(t4, e4) { + return e4 == "await" ? E(Rt) : t4 == "(" ? E(V(")"), Nt, H) : void 0; + } + function Nt(t4) { + return t4 == "var" ? E(Tt, Zt) : t4 == "variable" ? E(Zt) : T(Zt); + } + function Zt(t4, e4) { + return t4 == ")" ? E() : t4 == ";" ? E(Zt) : e4 == "in" || e4 == "of" ? (_.marked = "keyword", E(W, Zt)) : T(W, Zt); + } + function It(t4, e4) { + return e4 == "*" ? (_.marked = "keyword", E(It)) : t4 == "variable" ? (D(e4), E(It)) : t4 == "(" ? E(Z, V(")"), ut(Ht, ")"), H, gt, z, F) : u && e4 == "<" ? E(V(">"), ut(Pt, ">"), H, It) : void 0; + } + function Ft(t4, e4) { + return e4 == "*" ? (_.marked = "keyword", E(Ft)) : t4 == "variable" ? (D(e4), E(Ft)) : t4 == "(" ? E(Z, V(")"), ut(Ht, ")"), H, gt, F) : u && e4 == "<" ? E(V(">"), ut(Pt, ">"), H, Ft) : void 0; + } + function Vt(t4, e4) { + return t4 == "keyword" || t4 == "variable" ? (_.marked = "type", E(Vt)) : e4 == "<" ? E(V(">"), ut(Pt, ">"), H) : void 0; + } + function Ht(t4, e4) { + return e4 == "@" && E(W, Ht), t4 == "spread" ? E(Ht) : u && A(e4) ? (_.marked = "keyword", E(Ht)) : u && t4 == "this" ? E(dt, Mt) : T(Et, dt, Mt); + } + function Bt(t4, e4) { + return t4 == "variable" ? zt(t4, e4) : Ut(t4, e4); + } + function zt(t4, e4) { + if (t4 == "variable") + return D(e4), E(Ut); + } + function Ut(t4, e4) { + return e4 == "<" ? E(V(">"), ut(Pt, ">"), H, Ut) : e4 == "extends" || e4 == "implements" || u && t4 == "," ? (e4 == "implements" && (_.marked = "keyword"), E(u ? mt : W, Ut)) : t4 == "{" ? E(V("}"), Wt, H) : void 0; + } + function Wt(t4, e4) { + return t4 == "async" || t4 == "variable" && (e4 == "static" || e4 == "get" || e4 == "set" || u && A(e4)) && _.stream.match(/^\s+[\w$\xa1-\uffff]/, false) ? (_.marked = "keyword", E(Wt)) : t4 == "variable" || _.style == "keyword" ? (_.marked = "property", E($t, Wt)) : t4 == "number" || t4 == "string" ? E($t, Wt) : t4 == "[" ? E(W, dt, B("]"), $t, Wt) : e4 == "*" ? (_.marked = "keyword", E(Wt)) : u && t4 == "(" ? T(Ft, Wt) : t4 == ";" || t4 == "," ? E(Wt) : t4 == "}" ? E() : e4 == "@" ? E(W, Wt) : void 0; + } + function $t(t4, e4) { + if (e4 == "!") + return E($t); + if (e4 == "?") + return E($t); + if (t4 == ":") + return E(mt, Mt); + if (e4 == "=") + return E($); + var n4 = _.state.lexical.prev; + return T(n4 && n4.info == "interface" ? Ft : It); + } + function qt(t4, e4) { + return e4 == "*" ? (_.marked = "keyword", E(Qt, B(";"))) : e4 == "default" ? (_.marked = "keyword", E(W, B(";"))) : t4 == "{" ? E(ut(Gt, "}"), Qt, B(";")) : T(z); + } + function Gt(t4, e4) { + return e4 == "as" ? (_.marked = "keyword", E(B("variable"))) : t4 == "variable" ? T($, Gt) : void 0; + } + function Kt(t4) { + return t4 == "string" ? E() : t4 == "(" ? T(W) : t4 == "." ? T(Y) : T(Yt, Jt, Qt); + } + function Yt(t4, e4) { + return t4 == "{" ? ht(Yt, "}") : (t4 == "variable" && D(e4), e4 == "*" && (_.marked = "keyword"), E(Xt)); + } + function Jt(t4) { + if (t4 == ",") + return E(Yt, Jt); + } + function Xt(t4, e4) { + if (e4 == "as") + return _.marked = "keyword", E(Yt); + } + function Qt(t4, e4) { + if (e4 == "from") + return _.marked = "keyword", E(W); + } + function te(t4) { + return t4 == "]" ? E() : T(ut($, "]")); + } + function ee() { + return T(V("form"), Et, B("{"), V("}"), ut(ne, "}"), H, H); + } + function ne() { + return T(Et, Mt); + } + function re(t4, e4) { + return t4.lastType == "operator" || t4.lastType == "," || d.test(e4.charAt(0)) || /[,.]/.test(e4.charAt(0)); + } + function ie(t4, e4, n4) { + return e4.tokenize == m && /^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(e4.lastType) || e4.lastType == "quasi" && /\{\s*$/.test(t4.string.slice(0, t4.pos - (n4 || 0))); + } + return F.lex = true, H.lex = true, { startState: function(t4) { + var e4 = { tokenize: m, lastType: "sof", cc: [], lexical: new k((t4 || 0) - o, 0, "block", false), localVars: n3.localVars, context: n3.localVars && new L(null, null, false), indented: t4 || 0 }; + return n3.globalVars && typeof n3.globalVars == "object" && (e4.globalVars = n3.globalVars), e4; + }, token: function(t4, e4) { + if (t4.sol() && (e4.lexical.hasOwnProperty("align") || (e4.lexical.align = false), e4.indented = t4.indentation(), O(t4, e4)), e4.tokenize != b && t4.eatSpace()) + return null; + var n4 = e4.tokenize(t4, e4); + return r2 == "comment" ? n4 : (e4.lastType = r2 != "operator" || i != "++" && i != "--" ? r2 : "incdec", P(e4, n4, r2, i, t4)); + }, indent: function(e4, r3) { + if (e4.tokenize == b || e4.tokenize == w) + return t3.Pass; + if (e4.tokenize != m) + return 0; + var i2, a2 = r3 && r3.charAt(0), l2 = e4.lexical; + if (!/^\s*else\b/.test(r3)) + for (var c2 = e4.cc.length - 1; c2 >= 0; --c2) { + var u2 = e4.cc[c2]; + if (u2 == H) + l2 = l2.prev; + else if (u2 != Lt && u2 != F) + break; + } + for (; (l2.type == "stat" || l2.type == "form") && (a2 == "}" || (i2 = e4.cc[e4.cc.length - 1]) && (i2 == Y || i2 == J) && !/^[,\.=+\-*:?[\(]/.test(r3)); ) + l2 = l2.prev; + s && l2.type == ")" && l2.prev.type == "stat" && (l2 = l2.prev); + var h2 = l2.type, f2 = a2 == h2; + return h2 == "vardef" ? l2.indented + (e4.lastType == "operator" || e4.lastType == "," ? l2.info.length + 1 : 0) : h2 == "form" && a2 == "{" ? l2.indented : h2 == "form" ? l2.indented + o : h2 == "stat" ? l2.indented + (re(e4, r3) ? s || o : 0) : l2.info != "switch" || f2 || n3.doubleIndentSwitch == 0 ? l2.align ? l2.column + (f2 ? 0 : 1) : l2.indented + (f2 ? 0 : o) : l2.indented + (/^(?:case|default)\b/.test(r3) ? o : 2 * o); + }, electricInput: /^\s*(?:case .*?:|default:|\{|\})$/, blockCommentStart: l ? null : "/*", blockCommentEnd: l ? null : "*/", blockCommentContinue: l ? null : " * ", lineComment: l ? null : "//", fold: "brace", closeBrackets: "()[]{}''\"\"``", helperType: l ? "json" : "javascript", jsonldMode: a, jsonMode: l, expressionAllowed: ie, skipExpression: function(e4) { + P(e4, "atom", "atom", "true", new t3.StringStream("", 2, null)); + } }; + }), t3.registerHelper("wordChars", "javascript", /[\w$]/), t3.defineMIME("text/javascript", "javascript"), t3.defineMIME("text/ecmascript", "javascript"), t3.defineMIME("application/javascript", "javascript"), t3.defineMIME("application/x-javascript", "javascript"), t3.defineMIME("application/ecmascript", "javascript"), t3.defineMIME("application/json", { name: "javascript", json: true }), t3.defineMIME("application/x-json", { name: "javascript", json: true }), t3.defineMIME("application/manifest+json", { name: "javascript", json: true }), t3.defineMIME("application/ld+json", { name: "javascript", jsonld: true }), t3.defineMIME("text/typescript", { name: "javascript", typescript: true }), t3.defineMIME("application/typescript", { name: "javascript", typescript: true }); + }(n2(4631)); + }, 9589: (t2, e2, n2) => { + !function(t3) { + "use strict"; + var e3 = { autoSelfClosers: { area: true, base: true, br: true, col: true, command: true, embed: true, frame: true, hr: true, img: true, input: true, keygen: true, link: true, meta: true, param: true, source: true, track: true, wbr: true, menuitem: true }, implicitlyClosed: { dd: true, li: true, optgroup: true, option: true, p: true, rp: true, rt: true, tbody: true, td: true, tfoot: true, th: true, tr: true }, contextGrabbers: { dd: { dd: true, dt: true }, dt: { dd: true, dt: true }, li: { li: true }, option: { option: true, optgroup: true }, optgroup: { optgroup: true }, p: { address: true, article: true, aside: true, blockquote: true, dir: true, div: true, dl: true, fieldset: true, footer: true, form: true, h1: true, h2: true, h3: true, h4: true, h5: true, h6: true, header: true, hgroup: true, hr: true, menu: true, nav: true, ol: true, p: true, pre: true, section: true, table: true, ul: true }, rp: { rp: true, rt: true }, rt: { rp: true, rt: true }, tbody: { tbody: true, tfoot: true }, td: { td: true, th: true }, tfoot: { tbody: true }, th: { td: true, th: true }, thead: { tbody: true, tfoot: true }, tr: { tr: true } }, doNotIndent: { pre: true }, allowUnquoted: true, allowMissing: true, caseFold: true }, n3 = { autoSelfClosers: {}, implicitlyClosed: {}, contextGrabbers: {}, doNotIndent: {}, allowUnquoted: false, allowMissing: false, allowMissingTagName: false, caseFold: false }; + t3.defineMode("xml", function(r2, i) { + var o, s, a = r2.indentUnit, l = {}, c = i.htmlMode ? e3 : n3; + for (var u in c) + l[u] = c[u]; + for (var u in i) + l[u] = i[u]; + function h(t4, e4) { + function n4(n5) { + return e4.tokenize = n5, n5(t4, e4); + } + var r3 = t4.next(); + return r3 == "<" ? t4.eat("!") ? t4.eat("[") ? t4.match("CDATA[") ? n4(p("atom", "]]>")) : null : t4.match("--") ? n4(p("comment", "-->")) : t4.match("DOCTYPE", true, true) ? (t4.eatWhile(/[\w\._\-]/), n4(g(1))) : null : t4.eat("?") ? (t4.eatWhile(/[\w\._\-]/), e4.tokenize = p("meta", "?>"), "meta") : (o = t4.eat("/") ? "closeTag" : "openTag", e4.tokenize = f, "tag bracket") : r3 == "&" ? (t4.eat("#") ? t4.eat("x") ? t4.eatWhile(/[a-fA-F\d]/) && t4.eat(";") : t4.eatWhile(/[\d]/) && t4.eat(";") : t4.eatWhile(/[\w\.\-:]/) && t4.eat(";")) ? "atom" : "error" : (t4.eatWhile(/[^&<]/), null); + } + function f(t4, e4) { + var n4 = t4.next(); + if (n4 == ">" || n4 == "/" && t4.eat(">")) + return e4.tokenize = h, o = n4 == ">" ? "endTag" : "selfcloseTag", "tag bracket"; + if (n4 == "=") + return o = "equals", null; + if (n4 == "<") { + e4.tokenize = h, e4.state = w, e4.tagName = e4.tagStart = null; + var r3 = e4.tokenize(t4, e4); + return r3 ? r3 + " tag error" : "tag error"; + } + return /[\'\"]/.test(n4) ? (e4.tokenize = d(n4), e4.stringStartCol = t4.column(), e4.tokenize(t4, e4)) : (t4.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/), "word"); + } + function d(t4) { + var e4 = function(e5, n4) { + for (; !e5.eol(); ) + if (e5.next() == t4) { + n4.tokenize = f; + break; + } + return "string"; + }; + return e4.isInAttribute = true, e4; + } + function p(t4, e4) { + return function(n4, r3) { + for (; !n4.eol(); ) { + if (n4.match(e4)) { + r3.tokenize = h; + break; + } + n4.next(); + } + return t4; + }; + } + function g(t4) { + return function(e4, n4) { + for (var r3; (r3 = e4.next()) != null; ) { + if (r3 == "<") + return n4.tokenize = g(t4 + 1), n4.tokenize(e4, n4); + if (r3 == ">") { + if (t4 == 1) { + n4.tokenize = h; + break; + } + return n4.tokenize = g(t4 - 1), n4.tokenize(e4, n4); + } + } + return "meta"; + }; + } + function v(t4) { + return t4 && t4.toLowerCase(); + } + function m(t4, e4, n4) { + this.prev = t4.context, this.tagName = e4 || "", this.indent = t4.indented, this.startOfLine = n4, (l.doNotIndent.hasOwnProperty(e4) || t4.context && t4.context.noIndent) && (this.noIndent = true); + } + function y(t4) { + t4.context && (t4.context = t4.context.prev); + } + function b(t4, e4) { + for (var n4; ; ) { + if (!t4.context) + return; + if (n4 = t4.context.tagName, !l.contextGrabbers.hasOwnProperty(v(n4)) || !l.contextGrabbers[v(n4)].hasOwnProperty(v(e4))) + return; + y(t4); + } + } + function w(t4, e4, n4) { + return t4 == "openTag" ? (n4.tagStart = e4.column(), x) : t4 == "closeTag" ? O : w; + } + function x(t4, e4, n4) { + return t4 == "word" ? (n4.tagName = e4.current(), s = "tag", S) : l.allowMissingTagName && t4 == "endTag" ? (s = "tag bracket", S(t4, e4, n4)) : (s = "error", x); + } + function O(t4, e4, n4) { + if (t4 == "word") { + var r3 = e4.current(); + return n4.context && n4.context.tagName != r3 && l.implicitlyClosed.hasOwnProperty(v(n4.context.tagName)) && y(n4), n4.context && n4.context.tagName == r3 || l.matchClosing === false ? (s = "tag", C) : (s = "tag error", k); + } + return l.allowMissingTagName && t4 == "endTag" ? (s = "tag bracket", C(t4, e4, n4)) : (s = "error", k); + } + function C(t4, e4, n4) { + return t4 != "endTag" ? (s = "error", C) : (y(n4), w); + } + function k(t4, e4, n4) { + return s = "error", C(t4, e4, n4); + } + function S(t4, e4, n4) { + if (t4 == "word") + return s = "attribute", P; + if (t4 == "endTag" || t4 == "selfcloseTag") { + var r3 = n4.tagName, i2 = n4.tagStart; + return n4.tagName = n4.tagStart = null, t4 == "selfcloseTag" || l.autoSelfClosers.hasOwnProperty(v(r3)) ? b(n4, r3) : (b(n4, r3), n4.context = new m(n4, r3, i2 == n4.indented)), w; + } + return s = "error", S; + } + function P(t4, e4, n4) { + return t4 == "equals" ? _ : (l.allowMissing || (s = "error"), S(t4, e4, n4)); + } + function _(t4, e4, n4) { + return t4 == "string" ? T : t4 == "word" && l.allowUnquoted ? (s = "string", S) : (s = "error", S(t4, e4, n4)); + } + function T(t4, e4, n4) { + return t4 == "string" ? T : S(t4, e4, n4); + } + return h.isInText = true, { startState: function(t4) { + var e4 = { tokenize: h, state: w, indented: t4 || 0, tagName: null, tagStart: null, context: null }; + return t4 != null && (e4.baseIndent = t4), e4; + }, token: function(t4, e4) { + if (!e4.tagName && t4.sol() && (e4.indented = t4.indentation()), t4.eatSpace()) + return null; + o = null; + var n4 = e4.tokenize(t4, e4); + return (n4 || o) && n4 != "comment" && (s = null, e4.state = e4.state(o || n4, t4, e4), s && (n4 = s == "error" ? n4 + " error" : s)), n4; + }, indent: function(e4, n4, r3) { + var i2 = e4.context; + if (e4.tokenize.isInAttribute) + return e4.tagStart == e4.indented ? e4.stringStartCol + 1 : e4.indented + a; + if (i2 && i2.noIndent) + return t3.Pass; + if (e4.tokenize != f && e4.tokenize != h) + return r3 ? r3.match(/^(\s*)/)[0].length : 0; + if (e4.tagName) + return l.multilineTagIndentPastTag !== false ? e4.tagStart + e4.tagName.length + 2 : e4.tagStart + a * (l.multilineTagIndentFactor || 1); + if (l.alignCDATA && /<!\[CDATA\[/.test(n4)) + return 0; + var o2 = n4 && /^<(\/)?([\w_:\.-]*)/.exec(n4); + if (o2 && o2[1]) + for (; i2; ) { + if (i2.tagName == o2[2]) { + i2 = i2.prev; + break; + } + if (!l.implicitlyClosed.hasOwnProperty(v(i2.tagName))) + break; + i2 = i2.prev; + } + else if (o2) + for (; i2; ) { + var s2 = l.contextGrabbers[v(i2.tagName)]; + if (!s2 || !s2.hasOwnProperty(v(o2[2]))) + break; + i2 = i2.prev; + } + for (; i2 && i2.prev && !i2.startOfLine; ) + i2 = i2.prev; + return i2 ? i2.indent + a : e4.baseIndent || 0; + }, electricInput: /<\/[\s\w:]+>$/, blockCommentStart: "<!--", blockCommentEnd: "-->", configuration: l.htmlMode ? "html" : "xml", helperType: l.htmlMode ? "html" : "xml", skipAttribute: function(t4) { + t4.state == _ && (t4.state = S); + }, xmlCurrentTag: function(t4) { + return t4.tagName ? { name: t4.tagName, close: t4.type == "closeTag" } : null; + }, xmlCurrentContext: function(t4) { + for (var e4 = [], n4 = t4.context; n4; n4 = n4.prev) + e4.push(n4.tagName); + return e4.reverse(); + } }; + }), t3.defineMIME("text/xml", "xml"), t3.defineMIME("application/xml", "xml"), t3.mimeModes.hasOwnProperty("text/html") || t3.defineMIME("text/html", { name: "xml", htmlMode: true }); + }(n2(4631)); + }, 1030: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => Q, evAdd: () => B, evAll: () => I, evClose: () => q, evCustom: () => W, evOpen: () => $, evPfx: () => F, evRemove: () => z, evRemoveBefore: () => U, evSelect: () => V, evUpdate: () => H, evUpload: () => G, evUploadEnd: () => Y, evUploadError: () => J, evUploadRes: () => X, evUploadStart: () => K }); + var r2 = n2(4942), i = n2(9050), o = n2(9304); + const s = { assets: [], noAssets: "", stylePrefix: "am-", upload: 0, uploadName: "files", headers: {}, params: {}, credentials: "include", multiUpload: true, autoAdd: true, customFetch: null, uploadFile: null, embedAsBase64: true, handleAdd: null, beforeUpload: null, showUrlInput: true, custom: false, dropzone: false, openAssetsOnDrop: 1, dropzoneContent: "" }; + var a = n2(2316), l = n2.n(a), c = n2(5671), u = n2(3144), h = n2(9340), f = n2(3930), d = n2(1120); + function p(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, d.Z)(t3); + if (e3) { + var i2 = (0, d.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, f.Z)(this, n3); + }; + } + var g = function(t3) { + (0, h.Z)(n3, t3); + var e3 = p(n3); + function n3() { + return (0, c.Z)(this, n3), e3.apply(this, arguments); + } + return (0, u.Z)(n3, [{ key: "defaults", value: function() { + return { type: "", src: "" }; + } }, { key: "getType", value: function() { + return this.get("type"); + } }, { key: "getSrc", value: function() { + return this.get("src"); + } }, { key: "getFilename", value: function() { + return this.get("src").split("/").pop().split("?").shift(); + } }, { key: "getExtension", value: function() { + return this.getFilename().split(".").pop(); + } }]), n3; + }(a.Model); + function v(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function m(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? v(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : v(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + function y(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, d.Z)(t3); + if (e3) { + var i2 = (0, d.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, f.Z)(this, n3); + }; + } + g.prototype.idAttribute = "src", g.getDefaults = function() { + return (0, i.result)(this.prototype, "defaults"); + }; + var b = function(t3) { + (0, h.Z)(n3, t3); + var e3 = y(n3); + function n3() { + return (0, c.Z)(this, n3), e3.apply(this, arguments); + } + return (0, u.Z)(n3, [{ key: "defaults", value: function() { + return m(m({}, g.getDefaults()), {}, { type: "image", unitDim: "px", height: 0, width: 0 }); + } }]), n3; + }(g), w = n2(168); + const x = l().View.extend({ initialize: function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + this.options = t3, this.collection = t3.collection; + var e3 = t3.config || {}; + this.config = e3, this.pfx = e3.stylePrefix || "", this.ppfx = e3.pStylePrefix || "", this.em = e3.em, this.className = this.pfx + "asset", this.listenTo(this.model, "destroy remove", this.remove), this.model.view = this; + var n3 = this.init && this.init.bind(this); + n3 && n3(t3); + }, __getBhv: function() { + var t3 = this.em, e3 = t3 && t3.get("AssetManager"); + return e3 && e3.__getBehaviour() || {}; + }, template: function() { + var t3 = this.pfx; + return '\n <div class="'.concat(t3, 'preview-cont">\n ').concat(this.getPreview(), '\n </div>\n <div class="').concat(t3, 'meta">\n ').concat(this.getInfo(), '\n </div>\n <div class="').concat(t3, 'close" data-toggle="asset-remove">\n ⨯\n </div>\n '); + }, updateTarget: function(t3) { + t3 && t3.set && (t3.set("attributes", (0, i.clone)(t3.get("attributes"))), t3.set("src", this.model.get("src"))); + }, getPreview: function() { + return ""; + }, getInfo: function() { + return ""; + }, render: function() { + var t3 = this.el; + return t3.innerHTML = this.template(this, this.model), t3.className = this.className, this; + } }); + var O, C, k = n2(1629); + const S = x.extend({ events: { "click [data-toggle=asset-remove]": "onRemove", click: "onClick", dblclick: "onDblClick" }, getPreview: function() { + var t3 = this.pfx, e3 = this.ppfx, n3 = this.model.get("src"); + return (0, k.Z)(O || (O = (0, w.Z)(['\n <div class="', `preview" style="background-image: url('`, `');"></div> + <div class="`, "preview-bg ", 'checker-bg"></div>\n '])), t3, n3, t3, e3); + }, getInfo: function() { + var t3 = this.pfx, e3 = this.model, n3 = e3.get("name"), r3 = e3.get("width"), i2 = e3.get("height"), o2 = e3.get("unitDim"), s2 = r3 && i2 ? "".concat(r3, "x").concat(i2).concat(o2) : ""; + return n3 = n3 || e3.getFilename(), (0, k.Z)(C || (C = (0, w.Z)(['\n <div class="', 'name">', '</div>\n <div class="', 'dimensions">', "</div>\n "])), t3, n3, t3, s2); + }, init: function(t3) { + var e3 = this.pfx; + this.className += " ".concat(e3, "asset-image"); + }, onClick: function() { + var t3 = this.model, e3 = this.pfx, n3 = this.__getBhv().select, r3 = this.config.onClick, o2 = this.collection; + o2.trigger("deselectAll"), this.$el.addClass(e3 + "highlight"), (0, i.isFunction)(n3) ? n3(t3, false) : (0, i.isFunction)(r3) ? r3(t3) : this.updateTarget(o2.target); + }, onDblClick: function() { + var t3 = this.em, e3 = this.model, n3 = this.__getBhv().select, r3 = this.config.onDblClick, o2 = this.collection, s2 = o2.target, a2 = o2.onSelect; + (0, i.isFunction)(n3) ? n3(e3, true) : (0, i.isFunction)(r3) ? r3(e3) : (this.updateTarget(s2), t3 && t3.get("Modal").close()), (0, i.isFunction)(a2) && a2(e3); + }, onRemove: function(t3) { + t3.stopImmediatePropagation(), this.model.collection.remove(this.model); + } }); + var P = n2(793); + const _ = l().Collection.extend(P.Z).extend({ types: [{ id: "image", model: b, view: S, isType: function(t3) { + return typeof t3 == "string" ? { type: "image", src: t3 } : t3; + } }] }); + var T = n2(4925), E = ["pfx", "ppfx", "em"]; + const j = l().View.extend({ events: { submit: "handleSubmit" }, template: function(t3) { + var e3 = t3.pfx, n3 = t3.ppfx, r3 = t3.em, i2 = ((0, T.Z)(t3, E), ""); + return this.config.showUrlInput && (i2 = '\n <form class="'.concat(e3, 'add-asset">\n <div class="').concat(n3, "field ").concat(e3, 'add-field">\n <input placeholder="').concat(r3 && r3.t("assetManager.inputPlh"), '"/>\n </div>\n <button class="').concat(n3, 'btn-prim">').concat(r3 && r3.t("assetManager.addButton"), '</button>\n <div style="clear:both"></div>\n </form>\n ')), '\n <div class="'.concat(e3, 'assets-cont">\n <div class="').concat(e3, 'assets-header">\n ').concat(i2, '\n </div>\n <div class="').concat(e3, 'assets" data-el="assets"></div>\n <div style="clear:both"></div>\n </div>\n '); + }, initialize: function(t3) { + this.options = t3, this.config = t3.config, this.pfx = this.config.stylePrefix || "", this.ppfx = this.config.pStylePrefix || "", this.em = this.config.em; + var e3 = this.collection; + this.listenTo(e3, "reset", this.renderAssets), this.listenTo(e3, "add", this.addToAsset), this.listenTo(e3, "remove", this.removedAsset), this.listenTo(e3, "deselectAll", this.deselectAll); + }, handleSubmit: function(t3) { + t3.preventDefault(); + var e3 = this.getAddInput(), n3 = e3 && e3.value.trim(), r3 = this.config.handleAdd; + n3 && (e3.value = "", this.getAssetsEl().scrollTop = 0, r3 ? r3.bind(this)(n3) : this.options.globalCollection.add(n3, { at: 0 })); + }, getAssetsEl: function() { + return this.el.querySelector(".".concat(this.pfx, "assets")); + }, getAddInput: function() { + return this.inputUrl && this.inputUrl.value || (this.inputUrl = this.el.querySelector(".".concat(this.pfx, "add-asset input"))), this.inputUrl; + }, removedAsset: function(t3) { + this.collection.length || this.toggleNoAssets(); + }, addToAsset: function(t3) { + this.collection.length == 1 && this.toggleNoAssets(1), this.addAsset(t3); + }, addAsset: function(t3) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, n3 = e3, r3 = this.collection, i2 = this.config, o2 = new t3.typeView({ model: t3, collection: r3, config: i2 }).render().el; + if (n3) + n3.appendChild(o2); + else { + var s2 = this.getAssetsEl(); + s2 && s2.insertBefore(o2, s2.firstChild); + } + return o2; + }, toggleNoAssets: function(t3) { + var e3 = this.$el.find(".".concat(this.pfx, "assets")); + if (t3) + e3.empty(); + else { + var n3 = this.config.noAssets; + n3 && e3.append(n3); + } + }, deselectAll: function() { + var t3 = this.pfx; + this.$el.find(".".concat(t3, "highlight")).removeClass("".concat(t3, "highlight")); + }, renderAssets: function() { + var t3 = this, e3 = document.createDocumentFragment(), n3 = this.$el.find(".".concat(this.pfx, "assets")); + n3.empty(), this.toggleNoAssets(this.collection.length), this.collection.each(function(n4) { + return t3.addAsset(n4, e3); + }), n3.append(e3); + }, render: function() { + var t3 = this.options.fu.render().el; + return this.$el.empty(), this.$el.append(t3).append(this.template(this)), this.el.className = "".concat(this.ppfx, "asset-manager"), this.renderAssets(), this; + } }); + var D, M = n2(9661); + function A(t3, e3) { + var n3 = typeof Symbol != "undefined" && t3[Symbol.iterator] || t3["@@iterator"]; + if (!n3) { + if (Array.isArray(t3) || (n3 = function(t4, e4) { + if (!t4) + return; + if (typeof t4 == "string") + return L(t4, e4); + var n4 = Object.prototype.toString.call(t4).slice(8, -1); + n4 === "Object" && t4.constructor && (n4 = t4.constructor.name); + if (n4 === "Map" || n4 === "Set") + return Array.from(t4); + if (n4 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n4)) + return L(t4, e4); + }(t3)) || e3 && t3 && typeof t3.length == "number") { + n3 && (t3 = n3); + var r3 = 0, i2 = function() { + }; + return { s: i2, n: function() { + return r3 >= t3.length ? { done: true } : { done: false, value: t3[r3++] }; + }, e: function(t4) { + throw t4; + }, f: i2 }; + } + throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); + } + var o2, s2 = true, a2 = false; + return { s: function() { + n3 = n3.call(t3); + }, n: function() { + var t4 = n3.next(); + return s2 = t4.done, t4; + }, e: function(t4) { + a2 = true, o2 = t4; + }, f: function() { + try { + s2 || n3.return == null || n3.return(); + } finally { + if (a2) + throw o2; + } + } }; + } + function L(t3, e3) { + (e3 == null || e3 > t3.length) && (e3 = t3.length); + for (var n3 = 0, r3 = new Array(e3); n3 < e3; n3++) + r3[n3] = t3[n3]; + return r3; + } + const R = l().View.extend({ template: function(t3) { + var e3 = t3.pfx, n3 = t3.title, r3 = t3.uploadId, i2 = t3.disabled, o2 = t3.multiUpload; + return (0, k.Z)(D || (D = (0, w.Z)(['\n <form>\n <div id="', 'title">', '</div>\n <input\n type="file"\n id="', '"\n name="file"\n accept="*/*"\n ', "\n ", '\n />\n <div style="clear:both;"></div>\n </form>\n '])), e3, n3, r3, i2 ? "disabled" : "", o2 ? "multiple" : ""); + }, events: {}, initialize: function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + this.options = t3; + var e3 = t3.config || {}; + this.module = t3.module, this.config = e3, this.em = this.config.em, this.pfx = e3.stylePrefix || "", this.ppfx = e3.pStylePrefix || "", this.target = this.options.globalCollection || {}, this.uploadId = this.pfx + "uploadFile", this.disabled = e3.disableUpload !== void 0 ? e3.disableUpload : !e3.upload && !e3.embedAsBase64, this.multiUpload = e3.multiUpload === void 0 || e3.multiUpload, this.events["change #" + this.uploadId] = "uploadFile"; + var n3 = e3.uploadFile; + n3 ? this.uploadFile = n3.bind(this) : !e3.upload && e3.embedAsBase64 && (this.uploadFile = this.constructor.embedAsBase64), this.delegateEvents(); + }, onUploadStart: function() { + var t3 = this.module; + t3 && t3.__propEv("asset:upload:start"); + }, onUploadEnd: function(t3) { + var e3 = this.$el, n3 = this.module; + n3 && n3.__propEv("asset:upload:end", t3); + var r3 = e3.find("input"); + r3 && r3.val(""); + }, onUploadError: function(t3) { + var e3 = this.module; + console.error(t3), this.onUploadEnd(t3), e3 && e3.__propEv("asset:upload:error", t3); + }, onUploadResponse: function(t3, e3) { + var n3, r3 = this.module, i2 = this.config, o2 = this.target; + try { + n3 = typeof t3 == "string" ? JSON.parse(t3) : t3; + } catch (e4) { + n3 = t3; + } + r3 && r3.__propEv("asset:upload:response", n3), i2.autoAdd && o2 && o2.add(n3.data, { at: 0 }), this.onUploadEnd(t3), e3 && e3(n3); + }, uploadFile: function(t3, e3) { + var n3 = this, r3 = t3.dataTransfer ? t3.dataTransfer.files : t3.target.files, i2 = this.config, o2 = i2.beforeUpload; + if ((o2 && o2(r3)) !== false) { + var s2 = new FormData(), a2 = i2.params, l2 = i2.customFetch; + for (var c2 in a2) + s2.append(c2, a2[c2]); + if (this.multiUpload) + for (var u2 = 0; u2 < r3.length; u2++) + s2.append("".concat(i2.uploadName, "[]"), r3[u2]); + else + r3.length && s2.append(i2.uploadName, r3[0]); + this.target; + var h2 = i2.upload, f2 = i2.headers, d2 = "X-Requested-With"; + if (f2[d2] === void 0 && (f2[d2] = "XMLHttpRequest"), h2) { + this.onUploadStart(); + var p2 = { method: "post", credentials: i2.credentials || "include", headers: f2, body: s2 }; + return (l2 ? l2(h2, p2) : (0, M.Z)(h2, p2).then(function(t4) { + return (t4.status / 200 | 0) == 1 ? t4.text() : t4.text().then(function(t5) { + return Promise.reject(t5); + }); + })).then(function(t4) { + return n3.onUploadResponse(t4, e3); + }).catch(function(t4) { + return n3.onUploadError(t4); + }); + } + } + }, initDrop: function() { + var t3 = this; + if (!this.uploadForm && (this.uploadForm = this.$el.find("form").get(0), "draggable" in this.uploadForm)) { + this.uploadFile; + this.uploadForm.ondragover = function() { + return this.className = t3.pfx + "hover", false; + }, this.uploadForm.ondragleave = function() { + return this.className = "", false; + }, this.uploadForm.ondrop = function(e3) { + this.className = "", e3.preventDefault(), t3.uploadFile(e3); + }; + } + }, initDropzone: function(t3) { + var e3 = this, n3 = 0, r3 = this.config, i2 = t3.model, o2 = t3.el, s2 = i2.get("Editor"), a2 = (i2.get("Config").el, i2.get("Canvas").getBody()), l2 = this.ppfx, c2 = "".concat(l2, "dropzone-active"), u2 = "".concat(l2, "dropzone"), h2 = function() { + o2.className = o2.className.replace(c2, "").trim(), n3 = 0; + }, f2 = function() { + return n3 || (o2.className += " ".concat(c2), n3 = 1), false; + }, d2 = function() { + return h2(), false; + }, p2 = function(t4) { + if (h2(), t4.preventDefault(), t4.stopPropagation(), e3.uploadFile(t4), r3.openAssetsOnDrop && s2) { + var n4 = s2.getSelected(); + s2.runCommand("open-assets", { target: n4, onSelect: function() { + s2.Modal.close(), s2.AssetManager.setTarget(null); + } }); + } + return false; + }; + t3.$el.append('<div class="'.concat(u2, '">').concat(r3.dropzoneContent, "</div>")), h2(), "draggable" in o2 && [o2, a2].forEach(function(t4) { + t4.ondragover = f2, t4.ondragleave = d2, t4.ondrop = p2; + }); + }, render: function() { + var t3 = this.$el, e3 = this.pfx, n3 = this.em; + return t3.html(this.template({ title: n3 && n3.t("assetManager.uploadTitle"), uploadId: this.uploadId, disabled: this.disabled, multiUpload: this.multiUpload, pfx: e3 })), this.initDrop(), t3.attr("class", e3 + "file-uploader"), this; + } }, { embedAsBase64: function(t3, e3) { + var n3 = this, r3 = t3.dataTransfer ? t3.dataTransfer.files : t3.target.files, i2 = { data: [] }; + if (FileReader) { + var o2, s2 = [], a2 = /^(.+)\/(.+)$/, l2 = A(r3); + try { + var c2 = function() { + var t4 = o2.value, e4 = new Promise(function(e5, n4) { + var r4 = new FileReader(); + r4.addEventListener("load", function(i3) { + var o3, s3 = t4.name, l3 = a2.exec(t4.type); + if ((o3 = l3 ? l3[1] : t4.type) === "image") { + var c3 = { src: r4.result, name: s3, type: o3, height: 0, width: 0 }, u2 = new Image(); + u2.addEventListener("error", function(t5) { + n4(t5); + }), u2.addEventListener("load", function() { + c3.height = u2.height, c3.width = u2.width, e5(c3); + }), u2.src = c3.src; + } else + e5(o3 ? { src: r4.result, name: s3, type: o3 } : r4.result); + }), r4.addEventListener("error", function(t5) { + n4(t5); + }), r4.addEventListener("abort", function(t5) { + n4("Aborted"); + }), r4.readAsDataURL(t4); + }); + s2.push(e4); + }; + for (l2.s(); !(o2 = l2.n()).done; ) + c2(); + } catch (t4) { + l2.e(t4); + } finally { + l2.f(); + } + Promise.all(s2).then(function(t4) { + i2.data = t4, n3.onUploadResponse(i2, e3); + }, function(t4) { + n3.onUploadError(t4); + }); + } else + this.onUploadError(new Error("Unsupported platform, FileReader is not defined")); + } }); + function N(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function Z(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? N(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : N(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + var I = "asset", F = "".concat(I, ":"), V = "".concat(F, "select"), H = "".concat(F, "update"), B = "".concat(F, "add"), z = "".concat(F, "remove"), U = "".concat(z, ":before"), W = "".concat(F, "custom"), $ = "".concat(F, "open"), q = "".concat(F, "close"), G = "".concat(F, "upload"), K = "".concat(G, ":start"), Y = "".concat(G, ":end"), J = "".concat(G, ":error"), X = "".concat(G, ":response"); + const Q = function() { + var t3, e3, n3, r3, a2 = {}, l2 = "open-assets"; + return Z(Z({}, o.Z), {}, { name: "AssetManager", storageKey: "assets", Asset: _, Assets: _, events: { all: I, select: V, update: H, add: B, remove: z, removeBefore: U, custom: W, open: $, close: q, uploadStart: K, uploadEnd: Y, uploadError: J, uploadResponse: X }, init: function() { + var n4 = this, r4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i2 = (a2 = Z(Z({}, s), r4)).pStylePrefix, o2 = a2, l3 = o2.em; + return this.config = a2, this.em = l3, i2 && (a2.stylePrefix = i2 + a2.stylePrefix), t3 = new _([]), e3 = new _([]), this.all = t3, this.__initListen(), t3.on("add", function(t4) { + return n4.getAllVisible().add(t4); + }), t3.on("remove", function(t4) { + return n4.getAllVisible().remove(t4); + }), this; + }, __propEv: function(t4) { + for (var e4, n4, r4 = arguments.length, i2 = new Array(r4 > 1 ? r4 - 1 : 0), o2 = 1; o2 < r4; o2++) + i2[o2 - 1] = arguments[o2]; + (e4 = this.em).trigger.apply(e4, [t4].concat(i2)), (n4 = this.getAll()).trigger.apply(n4, [t4].concat(i2)); + }, __onAllEvent: (0, i.debounce)(function() { + this.__trgCustom(); + }), __trgCustom: function() { + (this.__getBehaviour().container || this.getConfig("custom").open) && this.em.trigger(this.events.custom, this.__customData()); + }, __customData: function() { + var t4 = this, e4 = this.__getBehaviour(); + return { am: this, open: this.isOpen(), assets: this.getAll().models, types: e4.types || [], container: e4.container, close: function() { + return t4.close(); + }, remove: function() { + return t4.remove.apply(t4, arguments); + }, select: function(n4, r4) { + var o2 = t4.add(n4); + (0, i.isFunction)(e4.select) && e4.select(o2, r4); + }, options: e4.options || {} }; + }, open: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e4 = this.em.get("Commands"); + e4.run(l2, Z({ types: ["image"], select: function() { + } }, t4)); + }, close: function() { + this.em.get("Commands").stop(l2); + }, isOpen: function() { + var t4 = this.em.get("Commands"); + return !(!t4 || !t4.isActive(l2)); + }, add: function(e4) { + var n4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + return n4.at === void 0 && (n4.at = 0), t3.add(e4, n4); + }, get: function(e4) { + return t3.where({ src: e4 })[0] || null; + }, getAll: function() { + return t3; + }, getAllVisible: function() { + return e3; + }, remove: function(t4, e4) { + return this.__remove(t4, e4); + }, store: function(t4) { + var e4 = {}, n4 = JSON.stringify(this.getAll().toJSON()); + return e4[this.storageKey] = n4, !t4 && a2.stm && a2.stm.store(e4), e4; + }, load: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e4 = this.storageKey, n4 = t4[e4] || []; + if (typeof n4 == "string") + try { + n4 = JSON.parse(t4[e4]); + } catch (t5) { + } + return n4 && n4.length && this.getAll().reset(n4), n4; + }, getContainer: function() { + return this.__getBehaviour().container || n3 && n3.el; + }, getAssetsEl: function() { + return n3.el.querySelector("[data-el=assets]"); + }, render: function(t4) { + if (!this.getConfig("custom")) { + var r4 = t4 || this.getAll().models; + if (!n3) { + var i2 = this.__viewParams(); + i2.fu = this.FileUploader(); + var o2 = n3 && n3.el; + (n3 = new j(Z({ el: o2 }, i2))).render(); + } + return e3.reset(r4), this.getContainer(); + } + }, __viewParams: function() { + return { collection: e3, globalCollection: t3, config: a2, module: this }; + }, addType: function(t4, e4) { + this.getAll().addType(t4, e4); + }, getType: function(t4) { + return this.getAll().getType(t4); + }, getTypes: function() { + return this.getAll().getTypes(); + }, AssetsView: function() { + return n3; + }, FileUploader: function() { + return r3 || (r3 = new R(this.__viewParams())), r3; + }, onLoad: function() { + var t4 = this; + this.getAll().reset(a2.assets); + var e4 = this.em, n4 = this.events; + e4.on("run:".concat(l2), function() { + return t4.__propEv(n4.open); + }), e4.on("stop:".concat(l2), function() { + return t4.__propEv(n4.close); + }); + }, postRender: function(t4) { + a2.dropzone && r3 && r3.initDropzone(t4); + }, setTarget: function(t4) { + e3.target = t4; + }, onSelect: function(t4) { + e3.onSelect = t4; + }, onClick: function(t4) { + a2.onClick = t4; + }, onDblClick: function(t4) { + a2.onDblClick = t4; + }, __behaviour: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + return this._bhv = Z(Z({}, this._bhv || {}), t4); + }, __getBehaviour: function() { + return this._bhv || {}; + }, destroy: function() { + t3.stopListening(), e3.stopListening(), t3.reset(), e3.reset(), r3 && r3.remove(), n3 && n3.remove(), [t3, e3, n3, r3].forEach(function(t4) { + return null; + }), this._bhv = {}, this.all = {}, a2 = {}; + } }); + }; + }, 6407: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => U, evAdd: () => N, evAll: () => L, evCustom: () => z, evDrag: () => V, evDragStart: () => H, evDragStop: () => B, evPfx: () => R, evRemove: () => I, evRemoveBefore: () => F, evUpdate: () => Z }); + var r2 = n2(4942), i = n2(9050), o = n2(9304); + const s = { appendTo: "", appendOnClick: false, blocks: [], custom: false }; + var a = n2(5671), l = n2(3144), c = n2(9340), u = n2(3930), h = n2(1120), f = n2(2316), d = n2.n(f); + function p(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, h.Z)(t3); + if (e3) { + var i2 = (0, h.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, u.Z)(this, n3); + }; + } + var g = function(t3) { + (0, c.Z)(n3, t3); + var e3 = p(n3); + function n3() { + return (0, a.Z)(this, n3), e3.apply(this, arguments); + } + return (0, l.Z)(n3, [{ key: "defaults", value: function() { + return { label: "", content: "", media: "", category: "", activate: false, select: null, resetId: false, disable: false, onClick: null, attributes: {} }; + } }, { key: "getId", value: function() { + return this.id; + } }, { key: "getLabel", value: function() { + return this.get("label"); + } }, { key: "getMedia", value: function() { + return this.get("media"); + } }, { key: "getContent", value: function() { + return this.get("content"); + } }, { key: "getCategoryLabel", value: function() { + var t4 = this.get("category"); + return (0, i.isFunction)(t4.get) ? t4.get("label") : t4.label ? t4.label : t4; + } }]), n3; + }(f.Model); + function v(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, h.Z)(t3); + if (e3) { + var i2 = (0, h.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, u.Z)(this, n3); + }; + } + var m = function(t3) { + (0, c.Z)(n3, t3); + var e3 = v(n3); + function n3() { + return (0, a.Z)(this, n3), e3.apply(this, arguments); + } + return (0, l.Z)(n3); + }(f.Collection); + function y(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, h.Z)(t3); + if (e3) { + var i2 = (0, h.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, u.Z)(this, n3); + }; + } + m.prototype.model = g; + var b = function(t3) { + (0, c.Z)(n3, t3); + var e3 = y(n3); + function n3() { + return (0, a.Z)(this, n3), e3.apply(this, arguments); + } + return (0, l.Z)(n3, [{ key: "defaults", value: function() { + return { id: "", label: "", open: true, attributes: {} }; + } }]), n3; + }(f.Model); + function w(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, h.Z)(t3); + if (e3) { + var i2 = (0, h.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, u.Z)(this, n3); + }; + } + var x = function(t3) { + (0, c.Z)(n3, t3); + var e3 = w(n3); + function n3() { + return (0, a.Z)(this, n3), e3.apply(this, arguments); + } + return (0, l.Z)(n3); + }(f.Collection); + x.prototype.model = b; + var O = n2(6183); + const C = d().View.extend({ events: { click: "handleClick", mousedown: "startDrag", dragstart: "handleDragStart", drag: "handleDrag", dragend: "handleDragEnd" }, initialize: function(t3) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n3 = this.model; + this.em = e3.em, this.config = e3, this.endDrag = this.endDrag.bind(this), this.ppfx = e3.pStylePrefix || "", this.listenTo(n3, "destroy remove", this.remove), this.listenTo(n3, "change", this.render); + }, __getModule: function() { + return this.em.get("BlockManager"); + }, handleClick: function(t3) { + var e3 = this.config, n3 = this.model, r3 = this.em, o2 = n3.get("onClick") || e3.appendOnClick; + if (r3.trigger("block:click", n3, t3), o2) { + if ((0, i.isFunction)(o2)) + return o2(n3, r3.getEditor(), { event: t3 }); + var s2, a2 = e3.getSorter(), l2 = n3.get("content"), c2 = r3.getSelected(); + if (a2.setDropContent(l2), c2) + if (a2.validTarget(c2.getEl(), l2).valid) + s2 = c2; + else { + var u2 = c2.parent(); + a2.validTarget(u2.getEl(), l2).valid && (s2 = u2); + } + if (!s2) { + var h2 = r3.getWrapper(); + a2.validTarget(h2.getEl(), l2).valid && (s2 = h2); + } + var f2 = s2 && s2.append(l2)[0]; + f2 && r3.setSelected(f2, { scroll: 1 }); + } + }, startDrag: function(t3) { + var e3 = this.config, n3 = this.em, r3 = this.model.get("disable"); + if (t3.button === 0 && e3.getSorter && !this.el.draggable && !r3) { + n3.refreshCanvas(); + var i2 = e3.getSorter(); + i2.setDragHelper(this.el, t3), i2.setDropContent(this.model.get("content")), i2.startSort(this.el), (0, O.on)(document, "mouseup", this.endDrag); + } + }, handleDragStart: function(t3) { + this.__getModule().__startDrag(this.model, t3); + }, handleDrag: function(t3) { + this.__getModule().__drag(t3); + }, handleDragEnd: function() { + this.__getModule().__endDrag(); + }, endDrag: function(t3) { + (0, O.off)(document, "mouseup", this.endDrag); + var e3 = this.config.getSorter(); + e3.moved = 0, e3.endMove(); + }, render: function() { + var t3 = this.em, e3 = this.el, n3 = this.$el, r3 = this.ppfx, i2 = this.model, o2 = i2.get("disable"), s2 = i2.get("attributes") || {}, a2 = s2.class || "", l2 = "".concat(r3, "block"), c2 = t3 && t3.t("blockManager.labels.".concat(i2.id)) || i2.get("label"), u2 = i2.get("render"), h2 = i2.get("media"), f2 = o2 ? "".concat(l2, "--disable") : "".concat(r3, "four-color-h"); + n3.attr(s2), e3.className = "".concat(a2, " ").concat(l2, " ").concat(r3, "one-bg ").concat(f2).trim(), e3.innerHTML = "\n ".concat(h2 ? '<div class="'.concat(l2, '__media">').concat(h2, "</div>") : "", '\n <div class="').concat(l2, '-label">').concat(c2, "</div>\n "), e3.title = s2.title || e3.textContent.trim(), e3.setAttribute("draggable", !(!(0, O.hasDnd)(t3) || o2)); + var d2 = u2 && u2({ el: e3, model: i2, className: l2, prefix: r3 }); + return d2 && (e3.innerHTML = d2), this; + } }); + var k, S = n2(168), P = n2(1629); + function _(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, h.Z)(t3); + if (e3) { + var i2 = (0, h.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, u.Z)(this, n3); + }; + } + var T = function(t3) { + (0, c.Z)(n3, t3); + var e3 = _(n3); + function n3() { + return (0, a.Z)(this, n3), e3.apply(this, arguments); + } + return (0, l.Z)(n3, [{ key: "template", value: function(t4) { + var e4 = t4.pfx, n4 = t4.label; + return (0, P.Z)(k || (k = (0, S.Z)(['\n <div class="', 'title">\n <i class="', 'caret-icon"></i>\n ', '\n </div>\n <div class="', 'blocks-c"></div>\n '])), e4, e4, n4, e4); + } }, { key: "attributes", value: function() { + return this.model.get("attributes"); + } }, { key: "initialize", value: function() { + var t4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + this.config = t4; + var e4 = t4.pStylePrefix || ""; + this.em = t4.em, this.pfx = e4, this.caretR = "fa fa-caret-right", this.caretD = "fa fa-caret-down", this.iconClass = "".concat(e4, "caret-icon"), this.activeClass = "".concat(e4, "open"), this.className = "".concat(e4, "block-category"), this.events = {}, this.events["click .".concat(e4, "title")] = "toggle", this.listenTo(this.model, "change:open", this.updateVisibility), this.delegateEvents(), this.model.view = this; + } }, { key: "updateVisibility", value: function() { + this.model.get("open") ? this.open() : this.close(); + } }, { key: "open", value: function() { + this.$el.addClass(this.activeClass), this.getIconEl().className = "".concat(this.iconClass, " ").concat(this.caretD), this.getBlocksEl().style.display = ""; + } }, { key: "close", value: function() { + this.$el.removeClass(this.activeClass), this.getIconEl().className = "".concat(this.iconClass, " ").concat(this.caretR), this.getBlocksEl().style.display = "none"; + } }, { key: "toggle", value: function() { + var t4 = this.model; + t4.set("open", !t4.get("open")); + } }, { key: "getIconEl", value: function() { + return this.iconEl || (this.iconEl = this.el.querySelector("." + this.iconClass)), this.iconEl; + } }, { key: "getBlocksEl", value: function() { + return this.blocksEl || (this.blocksEl = this.el.querySelector("." + this.pfx + "blocks-c")), this.blocksEl; + } }, { key: "append", value: function(t4) { + this.getBlocksEl().appendChild(t4); + } }, { key: "render", value: function() { + var t4 = this.em, e4 = this.el, n4 = this.$el, r3 = this.model, i2 = this.pfx, o2 = t4.t("blockManager.categories.".concat(r3.id)) || r3.get("label"); + return e4.innerHTML = this.template({ pfx: i2, label: o2 }), n4.addClass(this.className), n4.css({ order: r3.get("order") }), this.updateVisibility(), this; + } }]), n3; + }(f.View); + function E(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function j(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? E(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : E(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + const D = d().View.extend({ initialize: function(t3, e3) { + (0, i.bindAll)(this, "getSorter", "onDrag", "onDrop", "onMove"), this.config = e3 || {}, this.categories = t3.categories || "", this.renderedCategories = []; + var n3 = this.config.pStylePrefix || ""; + this.ppfx = n3, this.noCatClass = "".concat(n3, "blocks-no-cat"), this.blockContClass = "".concat(n3, "blocks-c"), this.catsClass = "".concat(n3, "block-categories"); + var r3 = this.collection; + this.listenTo(r3, "add", this.addTo), this.listenTo(r3, "reset", this.render), this.em = this.config.em, this.tac = "test-tac", this.grabbingCls = this.ppfx + "grabbing", this.em && (this.config.getSorter = this.getSorter, this.canvas = this.em.get("Canvas")); + }, updateConfig: function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + this.config = j(j({}, this.config), t3); + }, getSorter: function() { + if (this.em) { + if (!this.sorter) { + var t3 = this.em.get("Utils"), e3 = this.canvas; + this.sorter = new t3.Sorter({ container: e3.getBody(), placer: e3.getPlacerEl(), containerSel: "*", itemSel: "*", pfx: this.ppfx, onStart: this.onDrag, onEndMove: this.onDrop, onMove: this.onMove, document: e3.getFrameEl().contentDocument, direction: "a", wmargin: 1, nested: 1, em: this.em, canvasRelative: 1 }); + } + return this.sorter; + } + }, onDrag: function(t3) { + this.em.stopDefault(), this.em.trigger("block:drag:start", t3); + }, onMove: function(t3) { + this.em.trigger("block:drag:move", t3); + }, onDrop: function(t3) { + var e3 = this.em; + if (e3.runDefault(), t3 && t3.get) { + var n3 = "activeOnRender"; + t3.get(n3) && (t3.trigger("active"), t3.unset(n3)), e3.trigger("block:drag:stop", t3); + } + }, addTo: function(t3) { + this.add(t3); + }, add: function(t3, e3) { + var n3 = this.config, r3 = e3 || null, o2 = new C({ model: t3, attributes: t3.get("attributes") }, n3).render().el, s2 = t3.get("category"); + if (s2 && this.categories && !n3.ignoreCategories) { + (0, i.isString)(s2) ? s2 = { id: s2, label: s2 } : (0, i.isObject)(s2) && !s2.id && (s2.id = s2.label); + var a2 = this.categories.add(s2), l2 = a2.get("id"), c2 = this.renderedCategories[l2], u2 = this.getCategoriesEl(); + return t3.set("category", a2, { silent: true }), !c2 && u2 && (c2 = new T({ model: a2 }, this.config).render(), this.renderedCategories[l2] = c2, u2.appendChild(c2.el)), void (c2 && c2.append(o2)); + } + r3 ? r3.appendChild(o2) : this.append(o2); + }, getCategoriesEl: function() { + return this.catsEl || (this.catsEl = this.el.querySelector(".".concat(this.catsClass))), this.catsEl; + }, getBlocksEl: function() { + return this.blocksEl || (this.blocksEl = this.el.querySelector(".".concat(this.noCatClass, " .").concat(this.blockContClass))), this.blocksEl; + }, append: function(t3) { + var e3 = this.getBlocksEl(); + e3 && e3.appendChild(t3); + }, render: function() { + var t3 = this, e3 = this.ppfx, n3 = document.createDocumentFragment(); + this.catsEl = null, this.blocksEl = null, this.renderedCategories = [], this.el.innerHTML = '\n <div class="'.concat(this.catsClass, '"></div>\n <div class="').concat(this.noCatClass, '">\n <div class="').concat(this.blockContClass, '"></div>\n </div>\n '), this.collection.each(function(e4) { + return t3.add(e4, n3); + }), this.append(n3); + var r3 = "".concat(this.blockContClass, "s ").concat(e3, "one-bg ").concat(e3, "two-color"); + return this.$el.addClass(r3), this.rendered = true, this; + } }); + function M(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function A(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? M(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : M(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + var L = "block", R = "".concat(L, ":"), N = "".concat(R, "add"), Z = "".concat(R, "update"), I = "".concat(R, "remove"), F = "".concat(I, ":before"), V = "".concat(R, "drag"), H = "".concat(V, ":start"), B = "".concat(V, ":stop"), z = "".concat(R, "custom"); + const U = function() { + var t3, e3, n3, r3 = {}, a2 = []; + return A(A({}, o.Z), {}, { name: "BlockManager", Block: g, Blocks: m, Category: b, Categories: x, events: { all: L, update: Z, add: N, remove: I, removeBefore: F, drag: V, dragStart: H, dragEnd: B, custom: z }, init: function() { + var n4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i2 = r3 = A(A({}, s), n4), o2 = i2.em; + return this.em = o2, t3 = new m(r3.blocks), e3 = new m(t3.models), a2 = new x(), this.all = t3, this.__initListen(), t3.on("add", function(t4) { + return e3.add(t4); + }), t3.on("remove", function(t4) { + return e3.remove(t4); + }), t3.on("reset", function(t4) { + return e3.reset(t4.models); + }), this; + }, __trgCustom: function() { + this.em.trigger(this.events.custom, this.__customData()); + }, __customData: function() { + var t4 = this, e4 = this.__getBehaviour(); + return { bm: this, blocks: this.getAll().models, container: e4.container, dragStart: function(e5, n4) { + return t4.startDrag(e5, n4); + }, drag: function(e5) { + return t4.__drag(e5); + }, dragStop: function(e5) { + return t4.endDrag(e5); + } }; + }, __startDrag: function(e4, n4) { + var r4 = this.em, i2 = this.events, o2 = e4.getContent ? e4.getContent() : e4; + this._dragBlock = e4, r4.set({ dragResult: null, dragContent: o2 }), [r4, t3].map(function(t4) { + return t4.trigger(i2.dragStart, e4, n4); + }); + }, __drag: function(e4) { + var n4 = this.em, r4 = this.events, i2 = this._dragBlock; + [n4, t3].map(function(t4) { + return t4.trigger(r4.drag, i2, e4); + }); + }, __endDrag: function() { + var e4 = this.em, n4 = this.events, r4 = this._dragBlock, o2 = e4.get("dragResult"); + if (this._dragBlock = null, o2) { + var s2 = "activeOnRender", a3 = o2.get && o2.get(s2), l2 = r4.get("activate") || a3, c2 = r4.get("select"), u2 = (0, i.isArray)(o2) ? o2[0] : o2; + (c2 || l2 && c2 !== false) && e4.setSelected(u2), l2 && (u2.trigger("active"), a3 && u2.unset(s2)), r4.get("resetId") && u2.onAll(function(t4) { + return t4.resetId(); + }); + } + e4.set({ dragResult: null, dragContent: null }), [e4, t3].map(function(t4) { + return t4.trigger(n4.dragEnd, o2, r4); + }); + }, __getFrameViews: function() { + return this.em.get("Canvas").getFrames().map(function(t4) { + return t4.view; + }); + }, __behaviour: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + return this._bhv = A(A({}, this._bhv || {}), t4); + }, __getBehaviour: function() { + return this._bhv || {}; + }, startDrag: function(t4, e4) { + this.__startDrag(t4, e4), this.__getFrameViews().forEach(function(t5) { + return t5.droppable.startCustom(); + }); + }, endDrag: function(t4) { + this.__getFrameViews().forEach(function(e4) { + return e4.droppable.endCustom(t4); + }), this.__endDrag(); + }, getConfig: function() { + return r3; + }, postRender: function() { + n3 = new D({ collection: e3, categories: a2 }, r3); + var t4 = this.getConfig().appendTo; + if (t4) { + var o2 = (0, i.isElement)(t4) ? t4 : document.querySelector(t4); + if (!o2) + return this.__logWarn('"appendTo" element not found'); + o2.appendChild(this.render(e3.models)); + } + this.__trgCustom(); + }, add: function(e4, n4) { + var r4 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i2 = n4 || {}; + return i2.id = e4, t3.add(i2, r4); + }, get: function(e4) { + return t3.get(e4); + }, getAll: function() { + return t3; + }, getAllVisible: function() { + return e3; + }, remove: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + return this.__remove(t4, e4); + }, getCategories: function() { + return a2; + }, getContainer: function() { + return n3.el; + }, render: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i2 = t4 || this.getAll().models; + if (e4.external) { + var o2 = new m(i2); + return new D({ collection: o2, categories: a2 }, A(A({}, r3), e4)).render().el; + } + return n3 && (n3.updateConfig(e4), n3.collection.reset(i2), n3.rendered || (n3.render(), n3.rendered = 1)), this.getContainer(); + }, destroy: function() { + var i2 = [t3, e3, a2]; + i2.map(function(t4) { + return t4.stopListening(); + }), i2.map(function(t4) { + return t4.reset(); + }), n3 && n3.remove(), r3 = {}, t3 = {}, e3 = {}, n3 = {}, a2 = [], this.all = {}; + } }); + }; + }, 6950: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => F }); + var r2 = n2(2982), i = n2(4942), o = n2(9050), s = n2(6183); + const a = { stylePrefix: "cv-", scripts: [], styles: [], customBadgeLabel: "", autoscrollLimit: 50, extHl: 0, notTextable: ["button", "a", "input[type=checkbox]", "input[type=radio]"] }; + var l = n2(5671), c = n2(3144), u = n2(9340), h = n2(3930), f = n2(1120), d = n2(2316), p = n2.n(d), g = n2(2567), v = n2(9065); + function m(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, f.Z)(t3); + if (e3) { + var i2 = (0, f.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, h.Z)(this, n3); + }; + } + var y = function(t3) { + (0, u.Z)(n3, t3); + var e3 = m(n3); + function n3() { + return (0, l.Z)(this, n3), e3.apply(this, arguments); + } + return (0, c.Z)(n3, [{ key: "defaults", value: function() { + return { frame: "", frames: "", rulers: false, zoom: 100, x: 0, y: 0, scripts: [], styles: [] }; + } }, { key: "initialize", value: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n4 = e4.em; + this.config = e4, this.em = n4, this.set("frames", new v.Z()), this.listenTo(this, "change:zoom", this.onZoomChange), this.listenTo(n4, "change:device", this.updateDevice), this.listenTo(n4, g.evPageSelect, this._pageUpdated); + } }, { key: "init", value: function() { + var t4 = this.em.get("PageManager").getMain(), e4 = t4.getMainFrame(); + this.set("frames", t4.getFrames()), this.updateDevice({ frame: e4 }); + } }, { key: "_pageUpdated", value: function(t4, e4) { + var n4 = this.em; + n4.setSelected(), n4.get("readyCanvas") && n4.stopDefault(), e4 && e4.getFrames().map(function(t5) { + return t5.disable(); + }), this.set("frames", t4.getFrames()); + } }, { key: "updateDevice", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e4 = this.em, n4 = e4.getDeviceModel(), r3 = t4.frame || e4.getCurrentFrameModel(); + if (r3 && n4) { + var i2 = n4.attributes, o2 = i2.width, s2 = i2.height; + r3.set({ width: o2, height: s2 }, { noUndo: 1 }); + } + } }, { key: "onZoomChange", value: function() { + this.get("zoom") < 1 && this.set("zoom", 1); + } }]), n3; + }(d.Model), b = n2(6602), w = n2(4868); + function x(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + var O = function() { + function t3(e3, n3) { + var r3 = this; + (0, l.Z)(this, t3), this.em = e3; + var i2 = n3 || e3.get("Canvas").getFrames().map(function(t4) { + return t4.getComponent().getEl(); + }), s2 = Array.isArray(i2) ? i2 : [i2]; + return this.el = i2, this.counter = 0, (0, o.bindAll)(this, "handleDragEnter", "handleDragOver", "handleDrop", "handleDragLeave"), s2.forEach(function(t4) { + return r3.toggleEffects(t4, 1); + }), this; + } + return (0, c.Z)(t3, [{ key: "toggleEffects", value: function(t4, e3) { + var n3 = { on: s.on, off: s.off }, r3 = e3 ? "on" : "off"; + n3[r3](t4, "dragenter", this.handleDragEnter), n3[r3](t4, "dragover", this.handleDragOver), n3[r3](t4, "drop", this.handleDrop), n3[r3](t4, "dragleave", this.handleDragLeave); + } }, { key: "__customTglEff", value: function(t4) { + var e3 = t4 ? s.on : s.off, n3 = this.el.ownerDocument, r3 = n3.defaultView.frameElement; + this.sortOpts = t4 ? { onStart: function(t5) { + var e4 = t5.sorter; + (0, s.on)(r3, "pointermove", e4.onMove); + }, onEnd: function(t5) { + var e4 = t5.sorter; + (0, s.off)(r3, "pointermove", e4.onMove); + }, customTarget: function(t5) { + var e4 = t5.event; + return n3.elementFromPoint(e4.clientX, e4.clientY); + } } : null, e3(r3, "pointerenter", this.handleDragEnter), e3(r3, "pointermove", this.handleDragOver), e3(document, "pointerup", this.handleDrop), e3(r3, "pointerout", this.handleDragLeave); + } }, { key: "startCustom", value: function() { + this.__customTglEff(true); + } }, { key: "endCustom", value: function(t4) { + this.over ? this.endDrop(t4) : this.__customTglEff(false); + } }, { key: "endDrop", value: function(t4, e3) { + var n3 = this.em, r3 = this.dragStop; + this.counter = 0, r3 && r3(t4), this.__customTglEff(false), n3.trigger("canvas:dragend", e3); + } }, { key: "handleDragLeave", value: function(t4) { + this.updateCounter(-1, t4); + } }, { key: "updateCounter", value: function(t4, e3) { + this.counter += t4, this.counter === 0 && this.endDrop(1, e3); + } }, { key: "handleDragEnter", value: function(t4) { + var e3 = this, n3 = this.em, r3 = t4.dataTransfer; + if (this.updateCounter(1, t4), !this.over) { + this.over = 1; + var o2, s2, a2 = n3.get("Utils"), l2 = n3.get("Canvas"), c2 = n3.get("dragContent") || "<br>"; + if (n3.stopDefault(), n3.inAbsoluteMode()) { + var u2 = n3.get("DomComponents").getWrapper(), h2 = u2.append({})[0], f2 = n3.get("Commands").run("core:component-drag", { event: t4, guidesInfo: 1, center: 1, target: h2, onEnd: function(t5, n4, i2) { + var o3; + if (!i2.cancelled) { + o3 = u2.append(c2)[0]; + var s3 = h2.getStyle(), a3 = s3.left, l3 = s3.top, f3 = s3.position; + o3.addStyle({ left: a3, top: l3, position: f3 }); + } + e3.handleDragEnd(o3, r3), h2.remove(); + } }); + o2 = function(e4) { + return f2.stop(t4, { cancel: e4 }); + }, s2 = function(t5) { + return c2 = t5; + }; + } else { + var d2 = new a2.Sorter(function(t5) { + for (var e4 = 1; e4 < arguments.length; e4++) { + var n4 = arguments[e4] != null ? arguments[e4] : {}; + e4 % 2 ? x(Object(n4), true).forEach(function(e5) { + (0, i.Z)(t5, e5, n4[e5]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t5, Object.getOwnPropertyDescriptors(n4)) : x(Object(n4)).forEach(function(e5) { + Object.defineProperty(t5, e5, Object.getOwnPropertyDescriptor(n4, e5)); + }); + } + return t5; + }({ em: n3, wmargin: 1, nested: 1, canvasRelative: 1, direction: "a", container: this.el, placer: l2.getPlacerEl(), containerSel: "*", itemSel: "*", pfx: "gjs-", onEndMove: function(t5) { + return e3.handleDragEnd(t5, r3); + }, document: this.el.ownerDocument }, this.sortOpts || {})); + d2.setDropContent(c2), d2.startSort(), this.sorter = d2, o2 = function(t5) { + t5 && (d2.moved = 0), d2.endMove(); + }, s2 = function(t5) { + return d2.setDropContent(t5); + }; + } + this.dragStop = o2, this.dragContent = s2, n3.trigger("canvas:dragenter", r3, c2); + } + } }, { key: "handleDragEnd", value: function(t4, e3) { + var n3 = this.em; + this.over = 0, t4 && (n3.set("dragResult", t4), n3.trigger("canvas:drop", e3, t4)), n3.runDefault({ preserveSelected: 1 }); + } }, { key: "handleDragOver", value: function(t4) { + t4.preventDefault(), this.em.trigger("canvas:dragover", t4); + } }, { key: "handleDrop", value: function(t4) { + t4.preventDefault(); + var e3 = this.dragContent, n3 = t4.dataTransfer, r3 = this.getContentByData(n3).content; + t4.target.style.border = "", r3 && e3 && e3(r3), this.endDrop(!r3, t4); + } }, { key: "getContentByData", value: function(t4) { + var e3 = this.em, n3 = t4 && t4.types, r3 = t4 && t4.files || [], i2 = e3.get("dragContent"), s2 = t4 && t4.getData("text"); + if (r3.length) { + s2 = []; + for (var a2 = 0; a2 < r3.length; a2++) { + var l2 = r3[a2], c2 = l2.type.split("/")[0]; + c2 == "image" && s2.push({ type: c2, file: l2, attributes: { alt: l2.name } }); + } + } else if (i2) + s2 = i2; + else if ((0, o.indexOf)(n3, "text/html") >= 0) + s2 = t4 && t4.getData("text/html").replace(/<\/?meta[^>]*>/g, ""); + else if ((0, o.indexOf)(n3, "text/uri-list") >= 0) + s2 = { type: "link", attributes: { href: s2 }, content: s2 }; + else if ((0, o.indexOf)(n3, "text/json") >= 0) { + var u2 = t4 && t4.getData("text/json"); + u2 && (s2 = JSON.parse(u2)); + } else + n3.length === 1 && n3[0] === "text/plain" && (s2 = "<div>".concat(s2, "</div>")); + var h2 = { content: s2 }; + return e3.trigger("canvas:dragdata", t4, h2), h2; + } }]), t3; + }(), C = n2(9283); + function k(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function S(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? k(Object(n3), true).forEach(function(e4) { + (0, i.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : k(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + const P = p().View.extend({ tagName: "iframe", attributes: { allowfullscreen: "allowfullscreen", "data-frame-el": true }, initialize: function(t3) { + (0, o.bindAll)(this, "updateClientY", "stopAutoscroll", "autoscroll", "_emitUpdate"); + var e3 = this.model, n3 = this.el; + this.tools = {}, this.config = S(S({}, t3.config || {}), {}, { frameView: this }), this.ppfx = this.config.pStylePrefix || "", this.em = this.config.em; + var r3 = this.getCanvasModel(); + this.listenTo(e3, "change:head", this.updateHead), this.listenTo(r3, "change:styles", this.renderStyles), e3.view = this, (0, s.setViewEl)(n3, this); + }, updateHead: function() { + var t3 = this.model, e3 = this.getHead(), n3 = [], r3 = [], i2 = t3.get("head"), o2 = t3.previous("head"), s2 = function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + return Object.keys(t4).sort().map(function(e4) { + return "[".concat(e4, '="').concat(t4[e4], '"]'); + }).join(""); + }, a2 = function(t4, e4, n4) { + t4.forEach(function(t5) { + var r4 = t5.tag, i3 = t5.attributes; + !e4.some(function(t6) { + return t6.tag === r4 && s2(t6.attributes) === s2(i3); + }) && n4.push(t5); + }); + }; + a2(i2, o2, r3), a2(o2, i2, n3), n3.forEach(function(t4) { + var n4 = e3.querySelector("".concat(t4.tag).concat(s2(t4.attributes))); + n4 && n4.parentNode.removeChild(n4); + }), (0, C.SJ)(e3, r3); + }, getEl: function() { + return this.el; + }, getCanvasModel: function() { + return this.em.get("Canvas").getModel(); + }, getWindow: function() { + return this.getEl().contentWindow; + }, getDoc: function() { + return this.getEl().contentDocument; + }, getHead: function() { + return this.getDoc().querySelector("head"); + }, getBody: function() { + return this.getDoc().querySelector("body"); + }, getWrapper: function() { + return this.getBody().querySelector("[data-gjs-type=wrapper]"); + }, getJsContainer: function() { + return this.jsContainer || (this.jsContainer = (0, C.ut)("div", { class: "".concat(this.ppfx, "js-cont") })), this.jsContainer; + }, getToolsEl: function() { + var t3 = this.config.frameWrapView; + return t3 && t3.elTools; + }, getGlobalToolsEl: function() { + return this.em.get("Canvas").getGlobalToolsEl(); + }, getHighlighter: function() { + return this._getTool("[data-hl]"); + }, getBadgeEl: function() { + return this._getTool("[data-badge]"); + }, getOffsetViewerEl: function() { + return this._getTool("[data-offset]"); + }, getRect: function() { + return this.rect || (this.rect = this.el.getBoundingClientRect()), this.rect; + }, getOffsetRect: function() { + var t3 = this.el, e3 = this.getBody(), n3 = e3.scrollTop, r3 = e3.scrollLeft, i2 = t3.offsetHeight, o2 = t3.offsetWidth; + return { top: t3.offsetTop, left: t3.offsetLeft, height: i2, width: o2, scrollTop: n3, scrollLeft: r3, scrollBottom: n3 + i2, scrollRight: r3 + o2 }; + }, _getTool: function(t3) { + var e3 = this.tools, n3 = this.getToolsEl(); + return e3[t3] || (e3[t3] = n3.querySelector(t3)), e3[t3]; + }, remove: function() { + var t3 = this.wrapper; + this._toggleEffects(), this.tools = {}, t3 && t3.remove(), p().View.prototype.remove.apply(this, arguments); + }, startAutoscroll: function() { + var t3 = this; + this.lastMaxHeight = this.getWrapper().offsetHeight - this.el.offsetHeight, setTimeout(function() { + t3._toggleAutoscrollFx(1), requestAnimationFrame(t3.autoscroll); + }, 0); + }, autoscroll: function() { + if (this.dragging) { + var t3 = this.lastClientY, e3 = this.em.get("Canvas"), n3 = this.getWindow(), r3 = this.getBody().scrollTop, i2 = t3 || 0, s2 = e3.getConfig().autoscrollLimit, a2 = this.getRect().height - s2, l2 = r3; + if (i2 < s2 && (l2 -= s2 - i2), i2 > a2 && (l2 += i2 - a2), !(0, o.isUndefined)(t3) && l2 !== r3 && l2 > 0 && l2 < this.lastMaxHeight) + this.getGlobalToolsEl().style.opacity = 0, this.showGlobalTools(), n3.scrollTo(0, l2); + requestAnimationFrame(this.autoscroll); + } + }, updateClientY: function(t3) { + t3.preventDefault(), this.lastClientY = (0, s.getPointerEvent)(t3).clientY * this.em.getZoomDecimal(); + }, showGlobalTools: (0, o.debounce)(function() { + this.getGlobalToolsEl().style.opacity = ""; + }, 50), stopAutoscroll: function() { + this.dragging && this._toggleAutoscrollFx(); + }, _toggleAutoscrollFx: function(t3) { + this.dragging = t3; + var e3 = this.getWindow(), n3 = t3 ? "on" : "off", r3 = { on: s.on, off: s.off }; + r3[n3](e3, "mousemove dragover", this.updateClientY), r3[n3](e3, "mouseup", this.stopAutoscroll); + }, render: function() { + var t3 = this.$el, e3 = this.ppfx; + return t3.attr({ class: "".concat(e3, "frame") }), this.renderScripts(), this; + }, renderScripts: function() { + var t3 = this, e3 = this.el, n3 = this.model, i2 = this.em, s2 = "frame:load", a2 = { el: e3, model: n3, view: this }, l2 = this.getCanvasModel(), c2 = function n4(r3) { + if (r3.length > 0) { + var l3 = r3.shift(), c3 = (0, C.ut)("script", S({ type: "text/javascript" }, (0, o.isString)(l3) ? { src: l3 } : l3)); + c3.onerror = c3.onload = n4.bind(null, r3), e3.contentDocument.head.appendChild(c3); + } else + t3.renderBody(), i2 && i2.trigger(s2, a2); + }; + e3.onload = function() { + i2 && i2.trigger("".concat(s2, ":before"), a2), c2((0, r2.Z)(l2.get("scripts"))); + }; + }, renderStyles: function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e3 = this.getHead(), n3 = this.getCanvasModel(), r3 = function(t4) { + return t4.map(function(t5) { + return { tag: "link", attributes: S({ rel: "stylesheet" }, (0, o.isString)(t5) ? { href: t5 } : t5) }; + }); + }, i2 = r3(t3.prev || n3.previous("styles")), s2 = r3(n3.get("styles")), a2 = [], l2 = [], c2 = function(t4, e4, n4) { + t4.forEach(function(t5) { + var r4 = t5.attributes.href; + !e4.some(function(t6) { + return t6.attributes.href === r4; + }) && n4.push(t5); + }); + }; + c2(s2, i2, l2), c2(i2, s2, a2), a2.forEach(function(t4) { + var n4 = e3.querySelector('link[href="'.concat(t4.attributes.href, '"]')); + n4 && n4.parentNode.removeChild(n4); + }), (0, C.SJ)(e3, l2); + }, renderBody: function() { + var t3 = this, e3 = this.config, n3 = this.model, r3 = this.ppfx, i2 = e3.em, o2 = this.getDoc(), a2 = this.getBody(), l2 = this.getWindow(), c2 = i2.get("Config"); + l2._isEditor = true, this.renderStyles({ prev: [] }); + (0, C.R3)(a2, "<style>\n ".concat(c2.baseCss || "", "\n\n .").concat(r3, "dashed *[data-gjs-highlightable] {\n outline: 1px dashed rgba(170,170,170,0.7);\n outline-offset: -2px;\n }\n\n .").concat(r3, "selected {\n outline: 2px solid #3b97e3 !important;\n outline-offset: -2px;\n }\n\n .").concat(r3, "selected-parent {\n outline: 2px solid ").concat("#ffca6f", " !important\n }\n\n .").concat(r3, "no-select {\n user-select: none;\n -webkit-user-select:none;\n -moz-user-select: none;\n }\n\n .").concat(r3, "freezed {\n opacity: 0.5;\n pointer-events: none;\n }\n\n .").concat(r3, "no-pointer {\n pointer-events: none;\n }\n\n .").concat(r3, "plh-image {\n background: #f5f5f5;\n border: none;\n height: 100px;\n width: 100px;\n display: block;\n outline: 3px solid #ffca6f;\n cursor: pointer;\n outline-offset: -2px\n }\n\n .").concat(r3, "grabbing {\n cursor: grabbing;\n cursor: -webkit-grabbing;\n }\n\n .").concat(r3, "is__grabbing {\n overflow-x: hidden;\n }\n\n .").concat(r3, "is__grabbing,\n .").concat(r3, "is__grabbing * {\n cursor: grabbing !important;\n }\n\n ").concat(c2.canvasCss || "", "\n ").concat(c2.protectedCss || "", "\n </style>")); + var u2 = n3.getComponent(), h2 = i2.get("DomComponents").getType("wrapper").view; + this.wrapper = new h2({ model: u2, config: S(S({}, u2.config), {}, { frameView: this }) }).render(), (0, C.R3)(a2, this.wrapper.el), (0, C.R3)(a2, new w.Z({ collection: n3.getStyles(), config: S(S({}, i2.get("CssComposer").getConfig()), {}, { frameView: this }) }).render().el), (0, C.R3)(a2, this.getJsContainer()), (0, s.on)(a2, "click", function(t4) { + return t4 && t4.target.tagName == "A" && t4.preventDefault(); + }), (0, s.on)(a2, "submit", function(t4) { + return t4 && t4.preventDefault(); + }), [{ event: "keydown keyup keypress", class: "KeyboardEvent" }, { event: "mousedown mousemove mouseup", class: "MouseEvent" }, { event: "pointerdown pointermove pointerup", class: "PointerEvent" }, { event: "wheel", class: "WheelEvent" }].forEach(function(e4) { + return e4.event.split(" ").forEach(function(n4) { + o2.addEventListener(n4, function(n5) { + return t3.el.dispatchEvent((0, C.t3)(n5, e4.class)); + }); + }); + }), this._toggleEffects(1), this.droppable = (0, s.hasDnd)(i2) && new O(i2, this.wrapper.el), n3.trigger("loaded"); + }, _toggleEffects: function(t3) { + var e3 = t3 ? s.on : s.off, n3 = this.getWindow(); + n3 && e3(n3, "".concat(C.G1, " resize"), this._emitUpdate); + }, _emitUpdate: function() { + this.model._emitUpdated(); + } }); + var _ = n2(5610); + function T(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function E(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? T(Object(n3), true).forEach(function(e4) { + (0, i.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : T(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + const j = p().View.extend({ events: { "click [data-action-remove]": "remove", "mousedown [data-action-move]": "startDrag" }, initialize: function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + (0, o.bindAll)(this, "onScroll", "frameLoaded", "updateOffset", "remove", "startDrag"); + var n3 = this.model, r3 = E(E({}, t3.config || e3), {}, { frameWrapView: this }), i2 = r3.canvasView, s2 = r3.em; + this.cv = i2, this.config = r3, this.em = s2, this.canvas = s2 && s2.get("Canvas"), this.ppfx = r3.pStylePrefix || "", this.frame = new P({ model: n3, config: r3 }), this.classAnim = "".concat(this.ppfx, "frame-wrapper--anim"), this.updateOffset = (0, o.debounce)(this.updateOffset.bind(this)), this.updateSize = (0, o.debounce)(this.updateSize.bind(this)), this.listenTo(n3, "loaded", this.frameLoaded), this.listenTo(n3, "change:x change:y", this.updatePos), this.listenTo(n3, "change:width change:height", this.updateSize), this.listenTo(n3, "destroy remove", this.remove), this.updatePos(), this.setupDragger(); + }, setupDragger: function() { + var t3, e3, n3, r3 = this, i2 = this.canvas, o2 = this.model, s2 = function(t4) { + i2.toggleFramesEvents(t4); + }; + this.dragger = new _.Z({ onStart: function() { + var i3 = o2.attributes, a2 = i3.x, l2 = i3.y; + n3 = r3.em.getZoomMultiplier(), t3 = a2, e3 = l2, s2(); + }, onEnd: function() { + return s2(1); + }, setPosition: function(r4) { + o2.set({ x: t3 + r4.x * n3, y: e3 + r4.y * n3 }); + } }); + }, startDrag: function(t3) { + t3 && this.dragger.start(t3); + }, __clear: function(t3) { + var e3 = this.frame; + e3 && e3.remove(t3), (0, C.L_)(this.elTools); + }, remove: function(t3) { + var e3 = this; + return this.__clear(t3), p().View.prototype.remove.apply(this, arguments), ["frame", "dragger", "cv", "em", "canvas", "elTools"].forEach(function(t4) { + return e3[t4] = 0; + }), this; + }, updateOffset: function() { + var t3 = this.em, e3 = this.$el, n3 = this.frame; + t3 && (t3.runDefault({ preserveSelected: 1 }), e3.removeClass(this.classAnim), n3.model._emitUpdated()); + }, updatePos: function(t3) { + var e3 = this.model, n3 = this.el, r3 = e3.attributes, i2 = r3.x, o2 = r3.y, s2 = n3.style; + this.frame.rect = 0, s2.left = isNaN(i2) ? i2 : "".concat(i2, "px"), s2.top = isNaN(o2) ? o2 : "".concat(o2, "px"), t3 && this.updateOffset(); + }, updateSize: function() { + this.updateDim(); + }, updateDim: function() { + var t3 = this.em, e3 = this.el, n3 = this.$el, r3 = this.model, i2 = this.classAnim, s2 = this.frame; + if (s2) { + s2.rect = 0, n3.addClass(i2); + var a2 = this.__handleSize(), l2 = a2.noChanges, c2 = a2.width, u2 = a2.height; + ((0, o.isNull)(c2) || (0, o.isNull)(u2)) && r3.set(E(E({}, c2 ? {} : { width: e3.offsetWidth }), u2 ? {} : { height: e3.offsetHeight }), { silent: 1 }), t3.stopDefault({ preserveSelected: 1 }), l2 ? this.updateOffset() : setTimeout(this.updateOffset, 350); + } + }, onScroll: function() { + var t3 = this.frame; + this.em.trigger("frame:scroll", { frame: t3, body: t3.getBody(), target: t3.getWindow() }); + }, frameLoaded: function() { + this.frame.getWindow().onscroll = this.onScroll, this.updateDim(); + }, __handleSize: function() { + var t3 = this.model, e3 = this.el.style, n3 = t3.attributes, r3 = n3.width, i2 = n3.height, s2 = e3.width || "", a2 = e3.height || "", l2 = r3 || "", c2 = i2 || "", u2 = s2 == l2 && a2 == c2; + return e3.width = (0, o.isNumber)(l2) ? "".concat(l2).concat("px") : l2, e3.height = (0, o.isNumber)(c2) ? "".concat(c2).concat("px") : c2, { noChanges: u2, width: r3, height: i2, newW: l2, newH: c2 }; + }, render: function() { + var t3 = this.frame, e3 = this.$el, n3 = this.ppfx, r3 = this.cv, i2 = this.model, o2 = this.el, s2 = i2.attributes.onRender; + this.__clear(), this.__handleSize(), t3.render(), e3.empty().attr({ class: "".concat(n3, "frame-wrapper") }).append('\n <div class="'.concat(n3, 'frame-wrapper__top gjs-two-color" data-frame-top>\n <div class="').concat(n3, 'frame-wrapper__name" data-action-move>\n ').concat(i2.get("name") || "", '\n </div>\n <div class="').concat(n3, 'frame-wrapper__top-r">\n <div class="').concat(n3, 'frame-wrapper__icon" data-action-remove style="display: none">\n <svg viewBox="0 0 24 24"><path d="M19 4h-3.5l-1-1h-5l-1 1H5v2h14M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12z"></path></svg>\n </div>\n </div>\n </div>\n <div class="').concat(n3, 'frame-wrapper__right" data-frame-right></div>\n <div class="').concat(n3, 'frame-wrapper__left" data-frame-left></div>\n <div class="').concat(n3, 'frame-wrapper__bottom" data-frame-bottom></div>\n ')).append(t3.el); + var a2 = (0, C.ut)("div", { class: "".concat(n3, "tools"), style: "pointer-events:none; display: none" }, '\n <div class="'.concat(n3, 'highlighter" data-hl></div>\n <div class="').concat(n3, 'badge" data-badge></div>\n <div class="').concat(n3, 'placeholder">\n <div class="').concat(n3, 'placeholder-int"></div>\n </div>\n <div class="').concat(n3, 'ghost"></div>\n <div class="').concat(n3, 'toolbar" style="pointer-events:all"></div>\n <div class="').concat(n3, 'resizer"></div>\n <div class="').concat(n3, 'offset-v" data-offset>\n <div class="gjs-marginName" data-offset-m>\n <div class="gjs-margin-v-el gjs-margin-v-top" data-offset-m-t></div>\n <div class="gjs-margin-v-el gjs-margin-v-bottom" data-offset-m-b></div>\n <div class="gjs-margin-v-el gjs-margin-v-left" data-offset-m-l></div>\n <div class="gjs-margin-v-el gjs-margin-v-right" data-offset-m-r></div>\n </div>\n <div class="gjs-paddingName" data-offset-m>\n <div class="gjs-padding-v-el gjs-padding-v-top" data-offset-p-t></div>\n <div class="gjs-padding-v-el gjs-padding-v-bottom" data-offset-p-b></div>\n <div class="gjs-padding-v-el gjs-padding-v-left" data-offset-p-l></div>\n <div class="gjs-padding-v-el gjs-padding-v-right" data-offset-p-r></div>\n </div>\n </div>\n <div class="').concat(n3, 'offset-fixed-v"></div>\n ')); + this.elTools = a2; + var l2 = r3.toolsWrapper; + return l2 && l2.appendChild(a2), s2 && s2({ el: o2, elTop: o2.querySelector("[data-frame-top]"), elRight: o2.querySelector("[data-frame-right]"), elBottom: o2.querySelector("[data-frame-bottom]"), elLeft: o2.querySelector("[data-frame-left]"), frame: i2, frameWrapperView: this, remove: this.remove, startDrag: this.startDrag }), this; + } }), D = b.Z.extend({ itemView: j, autoAdd: 1, init: function() { + this.listenTo(this.collection, "reset", this.render); + }, onRemoveBefore: function(t3, e3) { + t3.forEach(function(t4) { + return t4.remove(e3); + }); + }, onRender: function() { + var t3 = this.config, e3 = this.$el, n3 = t3.em; + n3 && e3.attr({ class: "".concat(n3.getConfig("stylePrefix"), "frames") }); + } }); + function M(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function A(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? M(Object(n3), true).forEach(function(e4) { + (0, i.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : M(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + var L, R = p().$; + const N = p().View.extend({ events: { wheel: "onWheel" }, template: function() { + var t3 = this.pfx; + return '\n <div class="'.concat(t3, 'canvas__frames" data-frames></div>\n <div id="').concat(t3, 'tools" class="').concat(t3, 'canvas__tools" data-tools></div>\n '); + }, initialize: function(t3) { + (0, o.bindAll)(this, "clearOff", "onKeyPress", "onCanvasMove"); + var e3 = this.model; + this.config = t3.config || {}, this.em = this.config.em || {}, this.pfx = this.config.stylePrefix || "", this.ppfx = this.config.pStylePrefix || "", this.className = this.config.stylePrefix + "canvas"; + var n3 = this.em; + this._initFrames(), this.listenTo(n3, "change:canvasOffset", this.clearOff), this.listenTo(n3, "component:selected", this.checkSelected), this.listenTo(e3, "change:zoom change:x change:y", this.updateFrames), this.listenTo(e3, "change:frames", this._onFramesUpdate), this.toggleListeners(1); + }, _onFramesUpdate: function() { + this._initFrames(), this._renderFrames(); + }, _initFrames: function() { + var t3 = this.frames, e3 = this.model, n3 = this.config, r3 = this.em, i2 = e3.get("frames"); + r3.set("readyCanvas", 0), i2.once("loaded:all", function() { + return r3.set("readyCanvas", 1); + }), t3 && t3.remove(), this.frames = new D({ collection: i2, config: A(A({}, n3), {}, { canvasView: this }) }); + }, checkSelected: function(t3) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n3 = e3.scroll, r3 = this.em.get("currentFrame"); + n3 && t3.views.forEach(function(t4) { + t4._getFrame() === r3 && t4.scrollIntoView(n3); + }); + }, remove: function() { + this.frames.remove(), this.frames = {}, p().View.prototype.remove.apply(this, arguments), this.toggleListeners(); + }, preventDefault: function(t3) { + t3 && (t3.preventDefault(), t3._parentEvent && t3._parentEvent.preventDefault()); + }, onCanvasMove: function(t3) { + }, toggleListeners: function(t3) { + this.el; + var e3 = t3 ? s.on : s.off; + e3(document, "keypress", this.onKeyPress), e3(window, "scroll resize", this.clearOff); + }, onKeyPress: function(t3) { + var e3 = this.em; + (0, s.getKeyChar)(t3) !== " " || e3.getZoomDecimal() === 1 || e3.get("Canvas").isInputFocused() || (this.preventDefault(t3), e3.get("Editor").runCommand("core:canvas-move")); + }, onWheel: function(t3) { + if ((t3.ctrlKey || t3.metaKey) && this.em.getConfig("multiFrames")) { + this.preventDefault(t3); + var e3 = this.model, n3 = Math.max(-1, Math.min(1, t3.wheelDelta || -t3.detail)), r3 = e3.get("zoom"); + e3.set("zoom", r3 + 2 * n3); + } + }, updateFrames: function(t3) { + var e3 = this.em, n3 = this.model.attributes, r3 = n3.x, i2 = n3.y, o2 = this.getZoom(), s2 = { preserveSelected: 1 }, a2 = o2 ? 1 / o2 : 1; + this.framesArea.style.transform = "scale(".concat(o2, ") translate(").concat(r3 * a2, "px, ").concat(i2 * a2, "px)"), this.clearOff(), e3.stopDefault(s2), e3.trigger("canvas:update", t3), L && clearTimeout(L), L = setTimeout(function() { + return e3.runDefault(s2); + }, 300); + }, getZoom: function() { + return this.em.getZoomDecimal(); + }, isElInViewport: function(t3) { + var e3 = (0, s.getElement)(t3), n3 = (0, s.getElRect)(e3), r3 = this.getFrameOffset(e3), i2 = n3.top, o2 = n3.left; + return i2 >= 0 && o2 >= 0 && i2 <= r3.height && o2 <= r3.width; + }, offset: function(t3) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n3 = (0, s.getElRect)(t3), r3 = t3.ownerDocument.body, i2 = e3.noScroll; + return { top: n3.top + (i2 ? 0 : r3.scrollTop), left: n3.left + (i2 ? 0 : r3.scrollLeft), width: n3.width, height: n3.height }; + }, clearOff: function() { + this.frmOff = null, this.cvsOff = null; + }, getFrameOffset: function(t3) { + if (!this.frmOff || t3) { + var e3 = this.frame.el, n3 = t3 && t3.ownerDocument.defaultView, r3 = n3 ? n3.frameElement : e3; + this.frmOff = this.offset(r3 || e3); + } + return this.frmOff; + }, getCanvasOffset: function() { + return this.cvsOff || (this.cvsOff = this.offset(this.el)), this.cvsOff; + }, getElementPos: function(t3, e3) { + var n3 = this.getZoom(), r3 = e3 || {}, i2 = this.getFrameOffset(t3), o2 = this.getCanvasOffset(), s2 = this.offset(t3, e3), a2 = r3.avoidFrameOffset ? 0 : i2.top, l2 = r3.avoidFrameOffset ? 0 : i2.left; + return { top: s2.top * n3 + a2 - o2.top, left: s2.left * n3 + l2 - o2.left, height: s2.height * n3, width: s2.width * n3, zoom: n3, rect: s2 }; + }, getElementOffsets: function(t3) { + var e3 = this; + if (!t3 || (0, s.isTextNode)(t3)) + return {}; + var n3 = {}, r3 = window.getComputedStyle(t3); + return ["marginTop", "marginRight", "marginBottom", "marginLeft", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft"].forEach(function(t4) { + n3[t4] = parseFloat(r3[t4]) * e3.getZoom(); + }), n3; + }, getPosition: function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e3 = this.frame.el.contentDocument; + if (e3) { + var n3 = e3.body, r3 = this.getZoom(), i2 = this.getFrameOffset(), o2 = this.getCanvasOffset(), s2 = t3.noScroll; + return { top: i2.top + (s2 ? 0 : n3.scrollTop) * r3 - o2.top, left: i2.left + (s2 ? 0 : n3.scrollLeft) * r3 - o2.left, width: o2.width, height: o2.height }; + } + }, updateScript: function(t3) { + var e3 = t3.model, n3 = e3.getId(); + t3.scriptContainer || (t3.scriptContainer = R('<div data-id="'.concat(n3, '">')), this.getJsContainer().appendChild(t3.scriptContainer.get(0))), t3.el.id = n3, t3.scriptContainer.html(""); + var r3 = document.createElement("script"), i2 = e3.getScriptString(), o2 = e3.get("script-props") ? i2 : "function(){\n".concat(i2, "\n;}"), s2 = JSON.stringify(e3.__getScriptProps()); + r3.innerHTML = "\n setTimeout(function() {\n var item = document.getElementById('".concat(n3, "');\n if (!item) return;\n (").concat(o2, ".bind(item))(").concat(s2, ")\n }, 1);"), setTimeout(function() { + var e4 = t3.scriptContainer; + e4 && e4.get(0).appendChild(r3); + }, 0); + }, getJsContainer: function(t3) { + var e3 = this.getFrameView(t3); + return e3 && e3.getJsContainer(); + }, getFrameView: function(t3) { + return t3 && t3._getFrame() || this.em.get("currentFrame"); + }, _renderFrames: function() { + if (this.ready) { + var t3 = this.model, e3 = this.frames, n3 = this.em, r3 = this.framesArea, i2 = t3.get("frames"); + i2.listenToLoad(), e3.render(); + var o2 = i2.at(0), s2 = o2 && o2.view; + n3.setCurrentFrame(s2), r3 && r3.appendChild(e3.el), this.frame = s2; + } + }, render: function() { + var t3 = this.el, e3 = this.$el, n3 = this.ppfx, r3 = this.config, i2 = this.em; + e3.html(this.template()); + var o2 = e3.find("[data-frames]"); + this.framesArea = o2.get(0); + var a2 = e3.find("[data-tools]"); + this.toolsWrapper = a2.get(0), a2.append('\n <div class="'.concat(n3, "tools ").concat(n3, 'tools-gl" style="pointer-events:none">\n <div class="').concat(n3, 'placeholder">\n <div class="').concat(n3, 'placeholder-int"></div>\n </div>\n </div>\n <div id="').concat(n3, 'tools" style="pointer-events:none">\n ').concat(r3.extHl ? '<div class="'.concat(n3, 'highlighter-sel"></div>') : "", '\n <div class="').concat(n3, 'badge"></div>\n <div class="').concat(n3, 'ghost"></div>\n <div class="').concat(n3, 'toolbar" style="pointer-events:all"></div>\n <div class="').concat(n3, 'resizer"></div>\n <div class="').concat(n3, 'offset-v"></div>\n <div class="').concat(n3, 'offset-fixed-v"></div>\n </div>\n ')); + var l2 = t3.querySelector("#".concat(n3, "tools")); + return this.hlEl = t3.querySelector(".".concat(n3, "highlighter")), this.badgeEl = t3.querySelector(".".concat(n3, "badge")), this.placerEl = t3.querySelector(".".concat(n3, "placeholder")), this.ghostEl = t3.querySelector(".".concat(n3, "ghost")), this.toolbarEl = t3.querySelector(".".concat(n3, "toolbar")), this.resizerEl = t3.querySelector(".".concat(n3, "resizer")), this.offsetEl = t3.querySelector(".".concat(n3, "offset-v")), this.fixedOffsetEl = t3.querySelector(".".concat(n3, "offset-fixed-v")), this.toolsGlobEl = t3.querySelector(".".concat(n3, "tools-gl")), this.toolsEl = l2, this.el.className = (0, s.getUiClass)(i2, this.className), this.ready = 1, this._renderFrames(), this; + } }); + function Z(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function I(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? Z(Object(n3), true).forEach(function(e4) { + (0, i.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : Z(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + const F = function() { + var t3, e3, n3 = {}; + return { getCanvasView: function() { + return e3; + }, name: "Canvas", init: function() { + var e4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + n3 = I(I(I({}, a), e4), {}, { module: this }), this.em = n3.em; + var r3 = n3, i2 = r3.scripts, o2 = r3.styles, s2 = n3.pStylePrefix; + return s2 && (n3.stylePrefix = s2 + n3.stylePrefix), t3 = new y({ scripts: i2, styles: o2 }, e4), this.model = t3, this.startAutoscroll = this.startAutoscroll.bind(this), this.stopAutoscroll = this.stopAutoscroll.bind(this), this; + }, onLoad: function() { + this.model.init(); + }, getModel: function() { + return t3; + }, getConfig: function() { + return n3; + }, getElement: function() { + return e3.el; + }, getFrame: function(t4) { + return this.getFrames()[t4 || 0]; + }, getFrameEl: function() { + var t4 = (e3 || {}).frame; + return t4 && t4.el; + }, getFramesEl: function() { + return e3.framesArea; + }, getWindow: function() { + return this.getFrameEl().contentWindow; + }, getDocument: function() { + var t4 = this.getFrameEl(); + return t4 && t4.contentDocument; + }, getBody: function() { + var t4 = this.getDocument(); + return t4 && t4.body; + }, _getCompFrame: function(t4) { + return t4 && t4._getFrame(); + }, _getLocalEl: function(t4, e4, n4) { + var r3 = t4, i2 = this._getCompFrame(e4); + return r3 = i2 ? i2[n4]() : r3; + }, getGlobalToolsEl: function() { + return e3.toolsGlobEl; + }, getToolsEl: function(t4) { + return this._getLocalEl(e3.toolsEl, t4, "getToolsEl"); + }, getHighlighter: function(t4) { + return this._getLocalEl(e3.hlEl, t4, "getHighlighter"); + }, getBadgeEl: function(t4) { + return this._getLocalEl(e3.badgeEl, t4, "getBadgeEl"); + }, getPlacerEl: function() { + return e3.placerEl; + }, getGhostEl: function() { + return e3.ghostEl; + }, getToolbarEl: function() { + return e3.toolbarEl; + }, getResizerEl: function() { + return e3.resizerEl; + }, getOffsetViewerEl: function(t4) { + return this._getLocalEl(e3.offsetEl, t4, "getOffsetViewerEl"); + }, getFixedOffsetViewerEl: function() { + return e3.fixedOffsetEl; + }, render: function() { + return e3 && e3.remove(), (e3 = new N({ model: t3, config: n3 })).render().el; + }, getOffset: function() { + var t4 = this.offset(this.getFrameEl()), e4 = this.offset(this.getElement()); + return { top: t4.top - e4.top, left: t4.left - e4.left }; + }, offset: function(t4) { + return e3.offset(t4); + }, setCustomBadgeLabel: function(t4) { + n3.customBadgeLabel = t4; + }, getElementPos: function(t4, n4) { + return e3.getElementPos(t4, n4); + }, getElementOffsets: function(t4) { + return e3.getElementOffsets(t4); + }, getRect: function() { + var t4 = e3.getPosition(), n4 = t4.top, r3 = t4.left; + return I(I({}, e3.getCanvasOffset()), {}, { topScroll: n4, leftScroll: r3 }); + }, getTargetToElementDim: function(t4, r3) { + var i2 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o2 = i2 || {}, s2 = e3.getPosition(); + if (s2) { + var a2 = o2.elPos || e3.getElementPos(r3), l2 = i2.toRight || 0, c2 = o2.targetHeight || t4.offsetHeight, u2 = o2.targetWidth || t4.offsetWidth, h2 = o2.event || null, f2 = a2.top - c2, d2 = a2.left; + d2 += l2 ? a2.width : 0; + var p2 = (d2 = l2 ? d2 - u2 : d2) < s2.left ? s2.left : d2, g2 = f2 < s2.top ? s2.top : f2, v2 = { top: g2 = g2 > a2.top + a2.height ? a2.top + a2.height : g2, left: p2, elementTop: a2.top, elementLeft: a2.left, elementWidth: a2.width, elementHeight: a2.height, targetWidth: t4.offsetWidth, targetHeight: t4.offsetHeight, canvasTop: s2.top, canvasLeft: s2.left, canvasWidth: s2.width, canvasHeight: s2.height }; + return h2 && n3.em && n3.em.trigger(h2, v2), v2; + } + }, canvasRectOffset: function(t4, e4) { + var n4 = this, r3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i2 = function(t5) { + var e5 = t5.defaultView; + return e5 && e5.frameElement; + }, o2 = function(t5) { + var e5 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1, o3 = arguments.length > 2 ? arguments[2] : void 0, s2 = n4.em.getZoomDecimal(), a2 = e5 ? "top" : "left", l2 = t5.ownerDocument, c2 = r3.offset ? i2(l2) : {}, u2 = c2.offsetTop, h2 = u2 === void 0 ? 0 : u2, f2 = c2.offsetLeft, d2 = f2 === void 0 ? 0 : f2, p2 = l2.body || {}, g2 = p2.scrollTop, v2 = g2 === void 0 ? 0 : g2, m2 = p2.scrollLeft, y2 = m2 === void 0 ? 0 : m2, b2 = e5 ? v2 : y2, w2 = e5 ? h2 : d2; + return o3[a2] - (b2 - w2) * s2; + }; + return { top: o2(t4, 1, e4), left: o2(t4, 0, e4) }; + }, getTargetToElementFixed: function(t4, e4) { + var n4 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r3 = n4.pos || this.getElementPos(t4), i2 = n4.canvasOff || this.canvasRectOffset(t4, r3), s2 = e4.offsetHeight || 0, a2 = e4.offsetWidth || 0, l2 = r3.left + r3.width, c2 = this.getCanvasView(), u2 = c2.getPosition(), h2 = c2.getFrameOffset(t4), f2 = n4.event, d2 = -s2, p2 = (0, o.isUndefined)(n4.left) ? r3.width - a2 : n4.left; + p2 = r3.left < -p2 ? -r3.left : p2, p2 = l2 > u2.width ? p2 - (l2 - u2.width) : p2; + var g2 = r3.height + s2, v2 = g2 < h2.height; + i2.top < s2 && (v2 ? d2 += g2 : d2 = -i2.top < r3.height ? -i2.top : r3.height); + var m2 = { top: d2, left: p2, canvasOffsetTop: i2.top, canvasOffsetLeft: i2.left }; + return f2 && this.em.trigger(f2, m2), m2; + }, getMouseRelativePos: function(t4, e4) { + var n4 = 0, r3 = 0, i2 = (e4 || {}).subWinOffset, o2 = t4.target.ownerDocument, s2 = o2.defaultView || o2.parentWindow, a2 = s2.frameElement, l2 = i2 ? s2.pageYOffset : 0, c2 = i2 ? s2.pageXOffset : 0; + if (a2) { + var u2 = a2.getBoundingClientRect(); + n4 = u2.top || 0, r3 = u2.left || 0; + } + return { y: t4.clientY + n4 - l2, x: t4.clientX + r3 - c2 }; + }, getMouseRelativeCanvas: function(t4, n4) { + var r3 = this.getZoomDecimal(), i2 = e3.getPosition(n4), o2 = i2.top, s2 = i2.left; + return { y: t4.clientY * r3 + o2, x: t4.clientX * r3 + s2 }; + }, hasFocus: function() { + return this.getDocument().hasFocus(); + }, isInputFocused: function() { + var t4 = this.getDocument(), e4 = this.getFrameEl(), n4 = ["body"].concat((0, r2.Z)(this.getConfig().notTextable)), i2 = e4 && document.activeElement === e4 ? t4 && t4.activeElement : document.activeElement; + return i2 && !n4.some(function(t5) { + return i2.matches(t5); + }); + }, scrollTo: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n4 = (0, s.getElement)(t4), r3 = n4 && (0, s.getViewEl)(n4); + r3 && r3.scrollIntoView(e4); + }, startAutoscroll: function(t4) { + var e4 = t4 && t4.view || this.em.getCurrentFrame(); + e4 && e4.startAutoscroll(); + }, stopAutoscroll: function(t4) { + var e4 = t4 && t4.view || this.em.getCurrentFrame(); + e4 && e4.stopAutoscroll(); + }, setZoom: function(e4) { + return t3.set("zoom", parseFloat(e4)), this; + }, getZoom: function() { + return parseFloat(t3.get("zoom")); + }, setCoords: function(e4, n4) { + return t3.set({ x: parseFloat(e4), y: parseFloat(n4) }), this; + }, getCoords: function() { + var e4 = t3.attributes; + return { x: e4.x, y: e4.y }; + }, getZoomDecimal: function() { + return this.getZoom() / 100; + }, getZoomMultiplier: function() { + var t4 = this.getZoomDecimal(); + return t4 ? 1 / t4 : 1; + }, toggleFramesEvents: function(t4) { + this.getFramesEl().style.pointerEvents = t4 ? "" : "none"; + }, getFrames: function() { + return t3.get("frames").map(function(t4) { + return t4; + }); + }, addFrame: function() { + var e4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + return t3.get("frames").add(I({}, e4), I(I({}, n4), {}, { em: this.em })); + }, destroy: function() { + var r3 = this; + t3.stopListening(), e3 && e3.remove(), [n3, t3, e3].forEach(function(t4) { + return {}; + }), ["em", "model", "droppable"].forEach(function(t4) { + return r3[t4] = {}; + }); + } }; + }; + }, 9065: (t2, e2, n2) => { + "use strict"; + n2.d(e2, { Z: () => O }); + var r2 = n2(4942), i = n2(5671), o = n2(3144), s = n2(9340), a = n2(3930), l = n2(1120), c = n2(9050), u = n2(2316), h = n2(2982), f = n2(6183); + function d(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function p(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? d(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : d(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + function g(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, l.Z)(t3); + if (e3) { + var i2 = (0, l.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, a.Z)(this, n3); + }; + } + var v = "__aw", m = "__ah", y = function(t3) { + (0, s.Z)(n3, t3); + var e3 = g(n3); + function n3() { + return (0, i.Z)(this, n3), e3.apply(this, arguments); + } + return (0, o.Z)(n3, [{ key: "defaults", value: function() { + return { x: 0, y: 0, changesCount: 0, attributes: {}, width: null, height: null, head: [], component: "", styles: "", _undo: true, _undoexc: ["changesCount"] }; + } }, { key: "initialize", value: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n4 = e4.config, r3 = n4.em, i2 = this.attributes, o2 = i2.styles, s2 = i2.component, a2 = r3.get("DomComponents"), l2 = a2.getConfig(), u2 = r3.get("CssComposer").getAll(), h2 = {}; + this.em = r3; + var d2 = { em: r3, config: l2, frame: this, idMap: h2 }; + if (!(0, f.isComponent)(s2)) { + var p2 = (0, f.isObject)(s2) ? s2 : { components: s2 }; + !p2.type && (p2.type = "wrapper"); + var g2 = a2.getType("wrapper").model; + this.set("component", new g2(p2, d2)); + } + if (o2) { + if (!(0, f.isObject)(o2)) { + var y2 = Object.keys(h2); + y2.length && Array.isArray(o2) && o2.forEach(function(t5) { + var e5 = t5.selectors; + if (e5 && e5.length == 1) { + var n5 = e5[0], r4 = n5.name && n5.type === 2 && n5; + if (r4 && h2[r4.name]) + r4.name = h2[r4.name]; + else if ((0, c.isString)(n5) && n5[0] === "#") { + var i3 = n5.substring(1); + i3 && h2[i3] && (e5[0] = "#".concat(h2[i3])); + } + } + }), u2.add(o2), this.set("styles", u2); + } + } else + this.set("styles", u2); + !t4.width && this.set(v, 1), !t4.height && this.set(m, 1); + } }, { key: "onRemove", value: function() { + this.getComponent().remove({ root: 1 }); + } }, { key: "changesUp", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + t4.temporary || t4.noCount || t4.avoidStore || this.set("changesCount", this.get("changesCount") + 1); + } }, { key: "getComponent", value: function() { + return this.get("component"); + } }, { key: "getStyles", value: function() { + return this.get("styles"); + } }, { key: "disable", value: function() { + this.trigger("disable"); + } }, { key: "remove", value: function() { + this.view = 0; + var t4 = this.collection; + return t4 && t4.remove(this); + } }, { key: "getHead", value: function() { + var t4 = this.get("head") || []; + return (0, h.Z)(t4); + } }, { key: "setHead", value: function(t4) { + return this.set("head", (0, h.Z)(t4)); + } }, { key: "addHeadItem", value: function(t4) { + var e4 = this.getHead(); + e4.push(t4), this.setHead(e4); + } }, { key: "getHeadByAttr", value: function(t4, e4, n4) { + return this.getHead().filter(function(r3) { + return r3.attributes && r3.attributes[t4] == e4 && (!n4 || n4 === r3.tag); + })[0]; + } }, { key: "removeHeadByAttr", value: function(t4, e4, n4) { + var r3 = this.getHead(), i2 = this.getHeadByAttr(t4, e4, n4), o2 = r3.indexOf(i2); + o2 >= 0 && (r3.splice(o2, 1), this.setHead(r3)); + } }, { key: "addLink", value: function(t4) { + var e4 = "link"; + !this.getHeadByAttr("href", t4, e4) && this.addHeadItem({ tag: e4, attributes: { href: t4, rel: "stylesheet" } }); + } }, { key: "removeLink", value: function(t4) { + this.removeHeadByAttr("href", t4, "link"); + } }, { key: "addScript", value: function(t4) { + var e4 = "script"; + !this.getHeadByAttr("src", t4, e4) && this.addHeadItem({ tag: e4, attributes: { src: t4 } }); + } }, { key: "removeScript", value: function(t4) { + this.removeHeadByAttr("src", t4, "script"); + } }, { key: "getPage", value: function() { + var t4 = this.collection; + return t4 && t4.page; + } }, { key: "_emitUpdated", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + this.em.trigger("frame:updated", p({ frame: this }, t4)); + } }, { key: "toJSON", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e4 = u.Model.prototype.toJSON.call(this, t4), n4 = this.em, r3 = n4 && n4.get("StorageManager"), i2 = r3 && r3.getConfig(), o2 = (0, c.result)(this, "defaults"); + if (i2 && !t4.fromUndo) { + var s2 = { component: this.getComponent() }; + i2.storeHtml && (e4.html = n4.getHtml(s2)), i2.storeCss && (e4.css = n4.getCss(s2)); + } + return t4.fromUndo && delete e4.component, delete e4.styles, delete e4.changesCount, e4.__aw && delete e4.width, e4.__ah && delete e4.height, (0, c.forEach)(e4, function(t5, n5) { + n5.indexOf("_") === 0 && delete e4[n5]; + }), (0, c.forEach)(o2, function(t5, n5) { + e4[n5] === t5 && delete e4[n5]; + }), (0, c.forEach)(["attributes", "head"], function(t5) { + (0, c.isEmpty)(e4[t5]) && delete e4[t5]; + }), e4; + } }]), n3; + }(u.Model); + function b(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function w(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? b(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : b(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + function x(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, l.Z)(t3); + if (e3) { + var i2 = (0, l.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, a.Z)(this, n3); + }; + } + var O = function(t3) { + (0, s.Z)(n3, t3); + var e3 = x(n3); + function n3() { + return (0, i.Z)(this, n3), e3.apply(this, arguments); + } + return (0, o.Z)(n3, [{ key: "initialize", value: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + (0, c.bindAll)(this, "itemLoaded"), this.config = e4, this.on("reset", this.onReset), this.on("remove", this.onRemove); + } }, { key: "onReset", value: function(t4) { + var e4 = this, n4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r3 = n4.previousModels || []; + r3.map(function(t5) { + return e4.onRemove(t5); + }); + } }, { key: "onRemove", value: function(t4) { + t4 && t4.onRemove(); + } }, { key: "itemLoaded", value: function() { + this.loadedItems++, this.loadedItems >= this.itemsToLoad && (this.trigger("loaded:all"), this.listenToLoadItems(0)); + } }, { key: "listenToLoad", value: function() { + this.loadedItems = 0, this.itemsToLoad = this.length, this.listenToLoadItems(1); + } }, { key: "listenToLoadItems", value: function(t4) { + var e4 = this; + this.forEach(function(n4) { + return n4[t4 ? "on" : "off"]("loaded", e4.itemLoaded); + }); + } }, { key: "add", value: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n4 = this.config; + return u.Collection.prototype.add.call(this, t4, w(w({}, e4), {}, { config: n4 })); + } }]), n3; + }(u.Collection); + O.prototype.model = y; + }, 7619: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => P }); + var r2 = n2(9050); + const i = { stylePrefix: "cm-", inlineCss: false }; + var o = n2(5671), s = n2(3144), a = n2(9340), l = n2(3930), c = n2(1120), u = n2(2316), h = n2.n(u); + function f(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, c.Z)(t3); + if (e3) { + var i2 = (0, c.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, l.Z)(this, n3); + }; + } + var d = function(t3) { + (0, a.Z)(n3, t3); + var e3 = f(n3); + function n3() { + return (0, o.Z)(this, n3), e3.apply(this, arguments); + } + return (0, s.Z)(n3, [{ key: "build", value: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n4 = {}, r3 = e4.em; + if (e4.cleanId && r3) { + var i2 = r3.get("CssComposer").getAll(), o2 = i2.toJSON().map(function(t5) { + var e5 = t5.selectors, n5 = e5 && e5.length === 1 && e5.models[0]; + return n5 && n5.isId() && n5.get("name"); + }).filter(function(t5) { + return t5; + }); + n4.attributes = function(t5, e5) { + var n5 = e5.id; + return n5 && n5[0] === "i" && !t5.get("script") && !t5.get("attributes").id && o2.indexOf(n5) < 0 && delete e5.id, e5; + }; + } + return t4.toHTML(n4); + } }]), n3; + }(u.Model), p = n2(8795); + const g = h().Model.extend({ build: function(t3) { + var e3 = t3.toJSON(); + return this.beforeEach(e3), (0, r2.each)(e3, function(t4, n3) { + var r3 = e3[n3]; + if (r3 instanceof h().Model) + e3[n3] = this.build(r3); + else if (r3 instanceof h().Collection) { + var i2 = r3; + e3[n3] = [], i2.length && i2.each(function(t5, r4) { + e3[n3][r4] = this.build(t5); + }, this); + } + }, this), e3; + }, beforeEach: function(t3) { + delete t3.status; + } }); + var v = n2(4942); + const m = h().Model.extend({ mapModel: function(t3) { + var e3 = "", n3 = t3.get("script-export") || t3.get("script"), i2 = t3.get("type"), o2 = t3.get("components"), s2 = t3.getId(); + if (n3) { + var a2 = t3.get("attributes"); + a2 = (0, r2.extend)({}, a2, { id: s2 }), t3.set("attributes", a2, { silent: 1 }); + var l2 = t3.getScriptString(n3), c2 = t3.get("script-props"); + if (t3.get("scriptUpdated") && !c2) + this.mapJs[i2 + "-" + s2] = { ids: [s2], code: l2 }; + else { + var u2, h2 = this.mapJs[i2]; + if (c2 && (u2 = t3.__getScriptProps()), h2) + h2.ids.push(s2), u2 && (h2.props[s2] = u2); + else { + var f2 = { ids: [s2], code: l2 }; + u2 && (f2.props = (0, v.Z)({}, s2, u2)), this.mapJs[i2] = f2; + } + } + } + return o2.each(function(t4) { + e3 += this.mapModel(t4); + }, this), e3; + }, build: function(t3) { + this.mapJs = {}, this.mapModel(t3); + var e3 = ""; + for (var n3 in this.mapJs) { + var r3 = this.mapJs[n3]; + if (r3.code) + if (r3.props) { + if (r3.code.toString().match(/\{([\s\S]*)\}/m)[1].replace(/^\s*\/\/.*$/gm, "").trim().length === 0) + continue; + e3 += "\n var props = ".concat(JSON.stringify(r3.props), ";\n var ids = Object.keys(props).map(function(id) { return '#'+id }).join(',');\n var els = document.querySelectorAll(ids);\n for (var i = 0, len = els.length; i < len; i++) {\n var el = els[i];\n (").concat(r3.code, ".bind(el))(props[el.id]);\n }"); + } else { + var i2 = "#" + r3.ids.join(", #"); + e3 += "\n var items = document.querySelectorAll('".concat(i2, "');\n for (var i = 0, len = items.length; i < len; i++) {\n (function(){\n").concat(r3.code, "\n}.bind(items[i]))();\n }"); + } + } + return e3; + } }); + var y; + function b(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + (0, n2(6183).hasWin)() && (y = n2(4631), n2(6531), n2(6629), n2(9210)); + const w = h().Model.extend({ CodeMirror: y, defaults: { input: "", label: "", codeName: "", theme: "hopscotch", readOnly: true, lineNumbers: true }, init: function(t3) { + return (0, r2.bindAll)(this, "onChange"), this.editor = y.fromTextArea(t3, function(t4) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? b(Object(n3), true).forEach(function(e4) { + (0, v.Z)(t4, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t4, Object.getOwnPropertyDescriptors(n3)) : b(Object(n3)).forEach(function(e4) { + Object.defineProperty(t4, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t4; + }({ dragDrop: false, lineWrapping: true, mode: this.get("codeName") }, this.attributes)), this.element = t3, this.editor.on("change", this.onChange), this; + }, onChange: function() { + this.trigger("update", this); + }, getEditor: function() { + return this.editor; + }, getElement: function() { + return this.element; + }, setElement: function(t3) { + return this.element = t3, this; + }, refresh: function() { + return this.getEditor().refresh(), this; + }, focus: function() { + return this.getEditor().focus(), this; + }, getContent: function() { + var t3 = this.getEditor(); + return t3 && t3.getValue(); + }, setContent: function(t3) { + var e3 = this, n3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r3 = this.editor; + r3 && (r3.setValue(t3), r3.autoFormatRange && (y.commands.selectAll(r3), r3.autoFormatRange(r3.getCursor(true), r3.getCursor(false)), y.commands.goDocStart(r3)), !n3.noRefresh && setTimeout(function() { + return e3.refresh(); + })); + } }); + var x, O = n2(168), C = n2(1629); + function k(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, c.Z)(t3); + if (e3) { + var i2 = (0, c.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, l.Z)(this, n3); + }; + } + var S = function(t3) { + (0, a.Z)(n3, t3); + var e3 = k(n3); + function n3() { + return (0, o.Z)(this, n3), e3.apply(this, arguments); + } + return (0, s.Z)(n3, [{ key: "template", value: function(t4) { + var e4 = t4.pfx, n4 = t4.codeName, r3 = t4.label; + return (0, C.Z)(x || (x = (0, O.Z)(['\n <div class="', 'editor" id="', "", '">\n <div id="', 'title">', '</div>\n <div id="', 'code"></div>\n </div>\n '])), e4, e4, n4, e4, r3, e4); + } }, { key: "initialize", value: function(t4) { + this.config = t4.config || {}, this.pfx = this.config.stylePrefix; + } }, { key: "render", value: function() { + var t4 = this.model, e4 = this.pfx, n4 = this.$el, r3 = t4.toJSON(); + return r3.pfx = e4, n4.html(this.template(r3)), n4.attr("class", "".concat(e4, "editor-c")), n4.find("#".concat(e4, "code")).append(t4.get("input")), this; + } }]), n3; + }(u.View); + const P = function() { + var t3 = {}, e3 = {}, n3 = {}, o2 = {}, s2 = {}, a2 = "CodeMirror"; + return { getConfig: function() { + return t3; + }, config: t3, EditorView: S, name: "CodeManager", init: function(e4) { + for (var r3 in t3 = e4 || {}, i) + r3 in t3 || (t3[r3] = i[r3]); + var o3 = t3.pStylePrefix; + return o3 && (t3.stylePrefix = o3 + t3.stylePrefix), n3.html = new d(), n3.css = new p.Z(), n3.json = new g(), n3.js = new m(), s2.CodeMirror = new w(), this.loadDefaultGenerators().loadDefaultViewers(), this; + }, addGenerator: function(t4, n4) { + return e3[t4] = n4, this; + }, getGenerator: function(t4) { + return e3[t4] || null; + }, getGenerators: function() { + return e3; + }, addViewer: function(t4, e4) { + return o2[t4] = e4, this; + }, getViewer: function(t4) { + return o2[t4] || null; + }, getViewers: function() { + return o2; + }, createViewer: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e4 = (0, r2.isUndefined)(t4.type) ? a2 : t4.type, n4 = this.getViewer(e4) && this.getViewer(e4).clone(), i2 = document.createElement("div"), o3 = document.createElement("textarea"); + return i2.appendChild(o3), n4.set(t4), n4.init(o3), n4.setElement(i2), n4; + }, updateViewer: function(t4, e4) { + t4.setContent(e4); + }, getCode: function(e4, n4) { + var r3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + r3.em = t3.em; + var i2 = this.getGenerator(n4); + return i2 ? i2.build(e4, r3) : ""; + }, loadDefaultGenerators: function() { + for (var t4 in n3) + this.addGenerator(t4, n3[t4]); + return this; + }, loadDefaultViewers: function() { + for (var t4 in s2) + this.addViewer(t4, s2[t4]); + return this; + }, destroy: function() { + [t3, e3, n3, o2, s2].forEach(function(t4) { + return {}; + }); + } }; + }; + }, 8795: (t2, e2, n2) => { + "use strict"; + n2.d(e2, { U: () => l, Z: () => c }); + var r2 = n2(2316), i = n2.n(r2), o = n2(9050), s = n2(6183), a = Number.MAX_VALUE, l = function(t3) { + var e3 = /(-?\d*\.?\d+)\w{0,}/.exec(t3); + return e3 ? e3[0] : ""; + }; + const c = i().Model.extend({ initialize: function() { + (0, o.bindAll)(this, "sortRules"), this.compCls = [], this.ids = []; + }, buildFromModel: function(t3) { + var e3 = this, n3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r3 = "", i2 = this.em, o2 = i2 && i2.getConfig("avoidInlineStyle"), s2 = t3.styleToString(), a2 = t3.get("classes"); + this.ids.push("#".concat(t3.getId())), a2.each(function(t4) { + return e3.compCls.push(t4.getFullName()); + }), !o2 && s2 && (r3 = "#".concat(t3.getId(), "{").concat(s2, "}")); + var l2 = t3.components(); + return l2.each(function(t4) { + return r3 += e3.buildFromModel(t4, n3); + }), r3; + }, build: function(t3) { + var e3 = this, n3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r3 = n3.json, i2 = n3.em || "", a2 = n3.cssc || i2 && i2.get("CssComposer"); + this.em = i2, this.compCls = [], this.ids = [], this.model = t3; + var l2 = [], c2 = t3 ? this.buildFromModel(t3, n3) : "", u = (0, o.isUndefined)(n3.clearStyles) && i2 ? i2.getConfig("clearStyles") : n3.clearStyles; + if (a2) { + var h = n3.rules || a2.getAll(), f = {}, d = []; + n3.onlyMatched && t3 && (0, s.hasWin)() && (h = this.matchedRules(t3, h)), h.forEach(function(t4) { + var i3 = t4.getAtRule(); + if (i3) { + var o2 = f[i3]; + o2 ? o2.push(t4) : f[i3] = [t4]; + } else { + var s2 = e3.buildFromRule(t4, d, n3); + r3 ? l2.push(s2) : c2 += s2; + } + }), this.sortMediaObject(f).forEach(function(t4) { + var i3 = "", o2 = t4.key; + t4.value.forEach(function(t5) { + var s2 = e3.buildFromRule(t5, d, n3); + t5.get("singleAtRule") ? c2 += "".concat(o2, "{").concat(s2, "}") : i3 += s2, r3 && l2.push(s2); + }), i3 && (c2 += "".concat(o2, "{").concat(i3, "}")); + }), i2 && u && h.remove && h.remove(d); + } + return r3 ? l2.filter(function(t4) { + return t4; + }) : c2; + }, buildFromRule: function(t3, e3) { + var n3, r3 = this, i2 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o2 = "", s2 = this.model, a2 = t3.selectorsToString({ skipAdd: 1 }), l2 = t3.get("selectorsAdd"), c2 = t3.get("singleAtRule"); + if (t3.get("selectors").each(function(t4) { + var e4 = t4.getFullName(); + (r3.compCls.indexOf(e4) >= 0 || r3.ids.indexOf(e4) >= 0 || i2.keepUnusedStyles) && (n3 = 1); + }), a2 && n3 || l2 || c2 || !s2) { + var u = t3.getDeclaration({ body: 1 }); + u && (i2.json ? o2 = t3 : o2 += u); + } else + e3.push(t3); + return o2; + }, matchedRules: function(t3, e3) { + var n3 = this, r3 = t3.getEl(), i2 = []; + return e3.forEach(function(t4) { + try { + t4.selectorsToString().split(",").some(function(t5) { + return r3.matches(n3.__cleanSelector(t5)); + }) && i2.push(t4); + } catch (t5) { + } + }), t3.components().forEach(function(t4) { + i2 = i2.concat(n3.matchedRules(t4, e3)); + }), i2 = i2.filter(function(t4, e4) { + return i2.indexOf(t4) === e4; + }); + }, getQueryLength: function(t3) { + var e3 = /(-?\d*\.?\d+)\w{0,}/.exec(t3); + return e3 ? parseFloat(e3[1]) : a; + }, sortMediaObject: function() { + var t3 = this, e3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n3 = []; + return (0, o.each)(e3, function(t4, e4) { + return n3.push({ key: e4, value: t4 }); + }), n3.sort(function(e4, n4) { + var r3 = [e4.key, n4.key].every(function(t4) { + return t4.indexOf("min-width") !== -1; + }), i2 = r3 ? e4.key : n4.key, o2 = r3 ? n4.key : e4.key; + return t3.getQueryLength(i2) - t3.getQueryLength(o2); + }); + }, sortRules: function(t3, e3) { + var n3 = function(t4) { + return t4.get("mediaText"); + }, r3 = [n3(t3), n3(e3)].every(function(t4) { + return t4.indexOf("min-width") !== -1; + }), i2 = n3(r3 ? t3 : e3), o2 = n3(r3 ? e3 : t3); + return this.getQueryLength(i2) - this.getQueryLength(o2); + }, __cleanSelector: function(t3) { + return t3.split(" ").map(function(t4) { + return t4.split(":")[0]; + }).join(" "); + } }); + }, 289: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => f }); + var r2 = n2(2982), i = n2(4942), o = n2(9050), s = n2(238); + const a = { stylePrefix: "com-", defaults: [], strict: 1 }; + var l = n2(9138); + function c(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function u(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? c(Object(n3), true).forEach(function(e4) { + (0, i.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : c(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + var h = [["preview", "Preview", "preview"], ["resize", "Resize", "resize"], ["fullscreen", "Fullscreen", "fullscreen"], ["copy", "CopyComponent"], ["paste", "PasteComponent"], ["canvas-move", "CanvasMove"], ["canvas-clear", "CanvasClear"], ["open-code", "ExportTemplate", "export-template"], ["open-layers", "OpenLayers", "open-layers"], ["open-styles", "OpenStyleManager", "open-sm"], ["open-traits", "OpenTraitManager", "open-tm"], ["open-blocks", "OpenBlocks", "open-blocks"], ["open-assets", "OpenAssets", "open-assets"], ["component-select", "SelectComponent", "select-comp"], ["component-outline", "SwitchVisibility", "sw-visibility"], ["component-offset", "ShowOffset", "show-offset"], ["component-move", "MoveComponent", "move-comp"], ["component-next", "ComponentNext"], ["component-prev", "ComponentPrev"], ["component-enter", "ComponentEnter"], ["component-exit", "ComponentExit", "select-parent"], ["component-delete", "ComponentDelete"], ["component-style-clear", "ComponentStyleClear"], ["component-drag", "ComponentDrag"]]; + const f = function() { + var t3, e3 = {}, i2 = {}, c2 = {}, f2 = {}; + return { CommandAbstract: s.default, name: "Commands", init: function() { + var i3 = this, s2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + e3 = u(u({}, a), s2), t3 = e3.em; + var f3 = e3.pStylePrefix; + return f3 && (e3.stylePrefix = f3 + e3.stylePrefix), Object.keys(e3.defaults).forEach(function(t4) { + var n3 = e3.defaults[t4]; + n3.id && i3.add(n3.id, n3); + }), c2["tlb-delete"] = { run: function(t4) { + return t4.runCommand("core:component-delete"); + } }, c2["tlb-clone"] = { run: function(t4) { + t4.runCommand("core:copy"), t4.runCommand("core:paste", { action: "clone-component" }); + } }, c2["tlb-move"] = { run: function(t4, e4) { + var n3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i4 = t4.getModel(), s3 = n3 && n3.event, a2 = n3.target, c3 = a2 || t4.getSelected(), u2 = a2 ? [a2] : (0, r2.Z)(t4.getSelectedAll()), h2 = s3 && s3.type == "dragstart", f4 = { preserveSelected: 1 }, d = ["absolute", "translate"]; + if (!c3 || !c3.get("draggable")) + return i4.logWarning("The element is not draggable"); + var p = c3.get("dmode") || i4.get("dmode"), g = function() { + return i4.stopDefault(f4); + }, v = (0, o.includes)(d, p); + u2.forEach(function(t5) { + return t5.trigger("disable"); + }), h2 ? setTimeout(g, 0) : g(); + var m = function(t5) { + i4.trigger("".concat(l.OA, ":start"), t5); + }, y = function(t5) { + i4.trigger(l.OA, t5); + }, b = function(e5, n4, r3) { + u2.forEach(function(t5) { + return t5.set("status", "selected"); + }), t4.select(u2), c3.emitUpdate(), i4.trigger("".concat(l.OA, ":end"), r3), setTimeout(function() { + return i4.runDefault(f4); + }), (v || r3.cancelled) && i4.set("_cmpDrag", 1); + }; + if (v) + t4.runCommand("core:component-drag", { guidesInfo: 1, mode: p, target: c3, onStart: m, onDrag: y, onEnd: b, event: s3 }); + else { + h2 && s3.dataTransfer.setDragImage(c3.view.el, 0, 0); + var w = t4.Commands.get("move-comp"); + w.onStart = m, w.onDrag = y, w.onEndMoveFromModel = b, w.initSorterFromModels(u2); + } + u2.forEach(function(t5) { + return t5.set("status", "freezed-selected"); + }); + } }, c2["core:undo"] = function(t4) { + return t4.UndoManager.undo(); + }, c2["core:redo"] = function(t4) { + return t4.UndoManager.redo(); + }, h.forEach(function(e4) { + var r3 = e4[2], i4 = n2(2828)("./".concat(e4[1])).default, o2 = "core:".concat(e4[0]); + c2[o2] = i4, r3 && (c2[r3] = i4, ["run", "stop"].forEach(function(e5) { + t3.on("".concat(e5, ":").concat(r3), function() { + for (var n3, r4 = arguments.length, i5 = new Array(r4), s3 = 0; s3 < r4; s3++) + i5[s3] = arguments[s3]; + return (n3 = t3).trigger.apply(n3, ["".concat(e5, ":").concat(o2)].concat(i5)); + }); + })); + }), e3.em && (e3.model = e3.em.get("Canvas")), this.loadDefaultCommands(), this; + }, add: function(t4, e4) { + return (0, o.isFunction)(e4) && (e4 = { run: e4 }), e4.stop || (e4.noStop = 1), delete e4.initialize, e4.id = t4, i2[t4] = s.default.extend(e4), this; + }, get: function(n3) { + var r3 = i2[n3]; + return (0, o.isFunction)(r3) ? (r3 = new r3(e3), i2[n3] = r3) : r3 || t3.logWarning("'".concat(n3, "' command not found")), r3; + }, extend: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n3 = this.get(t4); + if (n3) { + var r3 = u(u({}, n3.constructor.prototype), e4); + this.add(t4, r3); + var i3 = h.filter(function(e5) { + return "core:".concat(e5[0]) === t4 && e5[2]; + })[0]; + i3 && this.add(i3[2], r3); + } + return this; + }, has: function(t4) { + return !!i2[t4]; + }, getAll: function() { + return i2; + }, run: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + return this.runCommand(this.get(t4), e4); + }, stop: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + return this.stopCommand(this.get(t4), e4); + }, isActive: function(t4) { + return this.getActive().hasOwnProperty(t4); + }, getActive: function() { + return f2; + }, loadDefaultCommands: function() { + for (var t4 in c2) + this.add(t4, c2[t4]); + return this; + }, runCommand: function(n3) { + var r3, i3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + if (n3 && n3.run) { + var o2 = n3.id, s2 = t3.get("Editor"); + this.isActive(o2) && !i3.force && e3.strict || (r3 = s2 && n3.callRun(s2, i3), o2 && n3.stop && !n3.noStop && !i3.abort && (f2[o2] = r3)); + } + return r3; + }, stopCommand: function(n3) { + var r3, i3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + if (n3 && n3.run) { + var o2 = n3.id, s2 = t3.get("Editor"); + (this.isActive(o2) || i3.force || !e3.strict) && (o2 && delete f2[o2], r3 = n3.callStop(s2, i3)); + } + return r3; + }, create: function(t4) { + return t4.stop || (t4.noStop = 1), new (s.default.extend(t4))(e3); + }, destroy: function() { + [t3, e3, i2, c2, f2].forEach(function(t4) { + return {}; + }); + } }; + }; + }, 7202: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => r2 }); + const r2 = { run: function(t3) { + t3.DomComponents.clear(), t3.CssComposer.clear(); + } }; + }, 327: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => s }); + var r2 = n2(9050), i = n2(6183), o = n2(5610); + const s = { run: function(t3) { + (0, r2.bindAll)(this, "onKeyUp", "enableDragger", "disableDragger"), this.editor = t3, this.canvasModel = this.canvas.getCanvasView().model, this.toggleMove(1); + }, stop: function(t3) { + this.toggleMove(), this.disableDragger(); + }, onKeyUp: function(t3) { + (0, i.getKeyChar)(t3) === " " && this.editor.stopCommand(this.id); + }, enableDragger: function(t3) { + this.toggleDragger(1, t3); + }, disableDragger: function(t3) { + this.toggleDragger(0, t3); + }, toggleDragger: function(t3, e3) { + var n3 = this.canvasModel, r3 = this.em, i2 = this.dragger, s2 = t3 ? "add" : "remove"; + this.getCanvas().classList[s2]("".concat(this.ppfx, "is__grabbing")), i2 || (i2 = new o.Z({ getPosition: function() { + return { x: n3.get("x"), y: n3.get("y") }; + }, setPosition: function(t4) { + var e4 = t4.x, r4 = t4.y; + n3.set({ x: e4, y: r4 }); + }, onStart: function(t4, e4) { + r3.trigger("canvas:move:start", e4); + }, onDrag: function(t4, e4) { + r3.trigger("canvas:move", e4); + }, onEnd: function(t4, e4) { + r3.trigger("canvas:move:end", e4); + } }), this.dragger = i2), t3 ? i2.start(e3) : i2.stop(); + }, toggleMove: function(t3) { + var e3 = this.ppfx, n3 = t3 ? "add" : "remove", r3 = t3 ? "on" : "off", o2 = { on: i.on, off: i.off }, s2 = this.getCanvas(), a = ["".concat(e3, "is__grab")]; + !t3 && a.push("".concat(e3, "is__grabbing")), a.forEach(function(t4) { + return s2.classList[n3](t4); + }), o2[r3](document, "keyup", this.onKeyUp), o2[r3](s2, "mousedown", this.enableDragger), o2[r3](document, "mouseup", this.disableDragger); + } }; + }, 238: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => i }); + var r2 = n2(2316); + const i = r2.Model.extend({ initialize: function(t3) { + this.config = t3 || {}, this.editorModel = this.em = this.config.em || {}, this.pfx = this.config.stylePrefix, this.ppfx = this.config.pStylePrefix, this.hoverClass = this.pfx + "hover", this.badgeClass = this.pfx + "badge", this.plhClass = this.pfx + "placeholder", this.freezClass = this.ppfx + "freezed", this.canvas = this.em.get && this.em.get("Canvas"), this.init(this.config); + }, onFrameScroll: function(t3) { + }, getCanvas: function() { + return this.canvas.getElement(); + }, getCanvasBody: function() { + return this.canvas.getBody(); + }, getCanvasTools: function() { + return this.canvas.getToolsEl(); + }, offset: function(t3) { + var e3 = t3.getBoundingClientRect(); + return { top: e3.top + t3.ownerDocument.body.scrollTop, left: e3.left + t3.ownerDocument.body.scrollLeft }; + }, init: function(t3) { + }, callRun: function(t3) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n3 = this.id; + if (t3.trigger("run:".concat(n3, ":before"), e3), !e3 || !e3.abort) { + var r3 = e3.sender || t3, i2 = this.run(t3, r3, e3); + return t3.trigger("run:".concat(n3), i2, e3), t3.trigger("run", n3, i2, e3), i2; + } + t3.trigger("abort:".concat(n3), e3); + }, callStop: function(t3) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n3 = this.id, r3 = e3.sender || t3; + t3.trigger("stop:".concat(n3, ":before"), e3); + var i2 = this.stop(t3, r3, e3); + return t3.trigger("stop:".concat(n3), i2, e3), t3.trigger("stop", n3, i2, e3), i2; + }, stopCommand: function() { + this.em.get("Commands").stop(this.id); + }, run: function(t3, e3) { + }, stop: function(t3, e3) { + } }); + }, 5820: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => o }); + var r2 = n2(2982), i = n2(9050); + const o = { run: function(t3, e3) { + var n3 = this, o2 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, s = [], a = o2.component || t3.getSelectedAll(); + return (a = (0, i.isArray)(a) ? (0, r2.Z)(a) : [a]).filter(Boolean).forEach(function(t4) { + if (!t4.get("removable")) + return s.push(t4), n3.em.logWarning("The element is not removable", { component: t4 }); + t4.remove(); + }), t3.select(s), a; + } }; + }, 6694: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => c }); + var r2 = n2(4942), i = n2(9050), o = n2(5610); + function s(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function a(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? s(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : s(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + var l = "dmode"; + const c = { run: function(t3, e3) { + var n3 = this, r3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + (0, i.bindAll)(this, "setPosition", "onStart", "onDrag", "onEnd", "getPosition", "getGuidesStatic", "renderGuide", "getGuidesTarget"); + var s2 = r3.target, c2 = r3.event, u = r3.mode, h = r3.dragger, f = h === void 0 ? {} : h, d = s2.getEl(), p = a({ doc: d.ownerDocument, onStart: this.onStart, onEnd: this.onEnd, onDrag: this.onDrag, getPosition: this.getPosition, setPosition: this.setPosition, guidesStatic: function() { + return n3.guidesStatic; + }, guidesTarget: function() { + return n3.guidesTarget; + } }, f); + this.setupGuides(), this.opts = r3, this.editor = t3, this.em = t3.getModel(), this.target = s2, this.isTran = u == "translate", this.guidesContainer = this.getGuidesContainer(), this.guidesTarget = this.getGuidesTarget(), this.guidesStatic = this.getGuidesStatic(); + var g = this.dragger; + return g ? g.setOptions(p) : (g = new o.Z(p), this.dragger = g), c2 && g.start(c2), this.toggleDrag(1), this.em.trigger("".concat(l, ":start"), this.getEventOpts()), g; + }, getEventOpts: function() { + return { mode: this.opts.mode, target: this.target, guidesTarget: this.guidesTarget, guidesStatic: this.guidesStatic }; + }, stop: function() { + this.toggleDrag(); + }, setupGuides: function() { + (this.guides || []).forEach(function(t3) { + var e3 = t3.guide; + e3 && e3.parentNode.removeChild(e3); + }), this.guides = []; + }, getGuidesContainer: function() { + var t3 = this, e3 = this.guidesEl; + if (!e3) { + var n3 = this.editor, r3 = this.em, o2 = this.opts, s2 = n3.getConfig("stylePrefix"), a2 = document.createElement("div"), l2 = document.createElement("div"), c2 = '<div class="'.concat(s2, "guide-info__line ").concat(s2, 'danger-bg">\n <div class="').concat(s2, "guide-info__content ").concat(s2, 'danger-color"></div>\n </div>'); + (e3 = document.createElement("div")).className = "".concat(s2, "guides"), a2.className = "".concat(s2, "guide-info ").concat(s2, "guide-info__x"), l2.className = "".concat(s2, "guide-info ").concat(s2, "guide-info__y"), a2.innerHTML = c2, l2.innerHTML = c2, e3.appendChild(a2), e3.appendChild(l2), n3.Canvas.getGlobalToolsEl().appendChild(e3), this.guidesEl = e3, this.elGuideInfoX = a2, this.elGuideInfoY = l2, this.elGuideInfoContentX = a2.querySelector(".".concat(s2, "guide-info__content")), this.elGuideInfoContentY = l2.querySelector(".".concat(s2, "guide-info__content")), r3.on("canvas:update frame:scroll", (0, i.debounce)(function() { + t3.updateGuides(), o2.debug && t3.guides.forEach(function(e4) { + return t3.renderGuide(e4); + }); + }, 200)); + } + return e3; + }, getGuidesStatic: function() { + var t3 = this, e3 = [], n3 = this.target.getEl(), r3 = n3.parentNode, o2 = r3 === void 0 ? {} : r3; + return (0, i.each)(o2.children, function(r4) { + return e3 = e3.concat(n3 !== r4 ? t3.getElementGuides(r4) : []); + }), e3.concat(this.getElementGuides(o2)); + }, getGuidesTarget: function() { + return this.getElementGuides(this.target.getEl()); + }, updateGuides: function(t3) { + var e3, n3, r3 = this; + (t3 || this.guides).forEach(function(t4) { + var o2 = t4.origin, s2 = e3 === o2 ? n3 : r3.getElementPos(o2); + e3 = o2, n3 = s2, (0, i.each)(r3.getGuidePosUpdate(t4, s2), function(e4, n4) { + return t4[n4] = e4; + }), t4.originRect = s2; + }); + }, getGuidePosUpdate: function(t3, e3) { + var n3 = {}, r3 = e3.top, i2 = e3.height, o2 = e3.left, s2 = e3.width; + switch (t3.type) { + case "t": + n3.y = r3; + break; + case "b": + n3.y = r3 + i2; + break; + case "l": + n3.x = o2; + break; + case "r": + n3.x = o2 + s2; + break; + case "x": + n3.x = o2 + s2 / 2; + break; + case "y": + n3.y = r3 + i2 / 2; + } + return n3; + }, renderGuide: function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e3 = t3.guide || document.createElement("div"), n3 = "px", r3 = t3.active ? 2 : 1, i2 = e3.children[0]; + return e3.style = "position: absolute; background-color: ".concat(t3.active ? "green" : "red", ";"), e3.children.length || ((i2 = document.createElement("div")).style = "position: absolute; color: red; padding: 5px; top: 0; left: 0;", e3.appendChild(i2)), t3.y ? (e3.style.width = "100%", e3.style.height = "".concat(r3).concat(n3), e3.style.top = "".concat(t3.y).concat(n3), e3.style.left = 0) : (e3.style.width = "".concat(r3).concat(n3), e3.style.height = "100%", e3.style.left = "".concat(t3.x).concat(n3), e3.style.top = "0".concat(n3)), !t3.guide && this.guidesContainer.appendChild(e3), e3; + }, getElementPos: function(t3) { + return this.editor.Canvas.getElementPos(t3, { noScroll: 1 }); + }, getElementGuides: function(t3) { + var e3 = this, n3 = this.opts, r3 = this.getElementPos(t3), i2 = r3.top, o2 = r3.height, s2 = r3.left, l2 = r3.width, c2 = [{ type: "t", y: i2 }, { type: "b", y: i2 + o2 }, { type: "l", x: s2 }, { type: "r", x: s2 + l2 }, { type: "x", x: s2 + l2 / 2 }, { type: "y", y: i2 + o2 / 2 }].map(function(i3) { + return a(a({}, i3), {}, { origin: t3, originRect: r3, guide: n3.debug && e3.renderGuide(i3) }); + }); + return c2.forEach(function(t4) { + return e3.guides.push(t4); + }), c2; + }, getTranslate: function(t3) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "x", n3 = 0; + return (t3 || "").split(" ").forEach(function(t4) { + var r3 = t4.trim(), i2 = "translate".concat(e3.toUpperCase(), "("); + r3.indexOf(i2) === 0 && (n3 = parseFloat(r3.replace(i2, ""))); + }), n3; + }, setTranslate: function(t3, e3, n3) { + var r3 = "translate".concat(e3.toUpperCase(), "("), i2 = "".concat(r3).concat(n3, ")"), o2 = (t3 || "").split(" ").map(function(t4) { + return t4.trim().indexOf(r3) === 0 && (t4 = i2), t4; + }).join(" "); + return o2.indexOf(r3) < 0 && (o2 += " ".concat(i2)), o2; + }, getPosition: function() { + var t3 = this.target, e3 = this.isTran, n3 = t3.getStyle(), r3 = n3.left, i2 = n3.top, o2 = n3.transform, s2 = 0, a2 = 0; + return e3 ? (s2 = this.getTranslate(o2), a2 = this.getTranslate(o2, "y")) : (s2 = parseFloat(r3 || 0), a2 = parseFloat(i2 || 0)), { x: s2, y: a2 }; + }, setPosition: function(t3) { + var e3 = t3.x, n3 = t3.y, r3 = t3.end, o2 = t3.position, s2 = t3.width, a2 = t3.height, l2 = this.target, c2 = this.isTran, u = this.em, h = r3 ? "" : 1, f = "".concat(e3).concat("px"), d = "".concat(n3).concat("px"), p = {}; + if (c2) { + var g = l2.getStyle().transform || ""; + g = this.setTranslate(g, "x", f), p = { transform: g = this.setTranslate(g, "y", d), en: h }, l2.addStyle(p, { avoidStore: !r3 }); + } else { + var v = { position: o2, width: s2, height: a2 }, m = { left: f, top: d, en: h }; + (0, i.keys)(v).forEach(function(t4) { + var e4 = v[t4]; + e4 && (m[t4] = e4); + }), p = m, l2.addStyle(p, { avoidStore: !r3 }); + } + u.getSelected() && (0, i.keys)(p).forEach(function(t4) { + return u.trigger("update:component:style:".concat(t4)); + }); + }, _getDragData: function() { + var t3 = this.target; + return { target: t3, parent: t3.parent(), index: t3.index() }; + }, onStart: function(t3) { + var e3 = this.target, n3 = this.editor, r3 = this.isTran, i2 = this.opts, o2 = i2.center, s2 = i2.onStart, a2 = n3.Canvas, l2 = e3.getStyle(), c2 = "absolute", u = [c2, "relative"]; + if (s2 && s2(this._getDragData()), !r3 && l2.position !== c2) { + var h, f = a2.offset(e3.getEl()), d = f.left, p = f.top, g = f.width, v = f.height, m = e3.parent(); + do { + var y = m.getStyle(); + h = u.indexOf(y.position) >= 0 ? m : null, m = m.parent(); + } while (m && !h); + if (o2) { + var b = a2.getMouseRelativeCanvas(t3); + d = b.x, p = b.y; + } else if (h) { + var w = a2.offset(h.getEl()); + d -= w.left, p -= w.top; + } + this.setPosition({ x: d, y: p, width: "".concat(g, "px"), height: "".concat(v, "px"), position: c2 }); + } + }, onDrag: function() { + var t3 = this, e3 = this.guidesTarget, n3 = this.opts, r3 = n3.onDrag; + this.updateGuides(e3), n3.debug && e3.forEach(function(e4) { + return t3.renderGuide(e4); + }), n3.guidesInfo && this.renderGuideInfo(e3.filter(function(t4) { + return t4.active; + })), r3 && r3(this._getDragData()); + }, onEnd: function(t3, e3) { + var n3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r3 = this.editor, i2 = this.opts, o2 = this.id, s2 = i2.onEnd; + s2 && s2(t3, n3, a(a({ event: t3 }, n3), this._getDragData())), r3.stopCommand(o2), this.hideGuidesInfo(), this.em.trigger("".concat(l, ":end"), this.getEventOpts()); + }, hideGuidesInfo: function() { + var t3 = this; + ["X", "Y"].forEach(function(e3) { + var n3 = t3["elGuideInfo".concat(e3)]; + n3 && (n3.style.display = "none"); + }); + }, renderGuideInfo: function() { + var t3 = this, e3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], n3 = this.guidesStatic; + this.hideGuidesInfo(), e3.forEach(function(e4) { + var r3 = e4.origin, o2 = e4.x, s2 = t3.getElementPos(r3), c2 = (0, i.isUndefined)(o2) ? "y" : "x", u = c2 === "y", h = s2[u ? "left" : "top"], f = s2.rect[u ? "left" : "top"], d = u ? h + s2.width : h + s2.height, p = u ? f + s2.rect.width : f + s2.rect.height, g = t3["elGuideInfo".concat(c2.toUpperCase())], v = t3["elGuideInfoContent".concat(c2.toUpperCase())], m = g.style, y = n3.filter(function(t4) { + return t4.type === e4.type; + }).map(function(t4) { + var e5 = t4.originRect, n4 = e5.left, r4 = e5.width, i2 = e5.top, o3 = e5.height, s3 = u ? n4 + r4 : i2 + o3; + return { gap: s3 < h ? h - s3 : (u ? n4 : i2) - d, guide: t4 }; + }).filter(function(t4) { + return t4.gap > 0; + }).sort(function(t4, e5) { + return t4.gap - e5.gap; + }).map(function(t4) { + return t4.guide; + })[0]; + if (y) { + var b = y.originRect, w = b.left, x = b.width, O = b.top, C = b.height, k = b.rect, S = u ? w < s2.left : O < s2.top, P = u ? w : O, _ = u ? k.left : k.top, T = u ? w + x : O + C, E = u ? k.left + k.width : k.top + k.height, j = u ? e4.y : e4.x, D = S ? T : d, M = "".concat(j, "px"), A = S ? h - T : P - d, L = S ? f - E : _ - p; + m.display = "", m[u ? "top" : "left"] = M, m[u ? "left" : "top"] = "".concat(D, "px"), m[u ? "width" : "height"] = "".concat(A, "px"), v.innerHTML = "".concat(Math.round(L), "px"), t3.em.trigger("".concat(l, ":active"), a(a({}, t3.getEventOpts()), {}, { guide: e4, guidesStatic: n3, matched: y, posFirst: j, posSecond: D, size: A, sizeRaw: L, elGuideInfo: g, elGuideInfoCnt: v })); + } + }); + }, toggleDrag: function(t3) { + var e3 = this.ppfx, n3 = this.editor, r3 = t3 ? "add" : "remove", i2 = ["".concat(e3, "is__grabbing")], o2 = n3.Canvas, s2 = o2.getBody(); + i2.forEach(function(t4) { + return s2.classList[r3](t4); + }), o2[t3 ? "startAutoscroll" : "stopAutoscroll"](); + } }; + }, 1947: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => r2 }); + const r2 = { run: function(t3) { + if (t3.Canvas.hasFocus()) { + var e3 = []; + t3.getSelectedAll().forEach(function(t4) { + var n3 = t4.components(), r3 = n3 && n3.filter(function(t5) { + return t5.get("selectable"); + })[0]; + r3 && e3.push(r3); + }), e3.length && t3.select(e3); + } + } }; + }, 3888: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => r2 }); + const r2 = { run: function(t3, e3) { + var n3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + if (t3.Canvas.hasFocus() || n3.force) { + var r3 = []; + t3.getSelectedAll().forEach(function(t4) { + for (var e4 = t4.parent(); e4 && !e4.get("selectable"); ) + e4 = e4.parent(); + e4 && r3.push(e4); + }), r3.length && t3.select(r3); + } + } }; + }, 5883: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => r2 }); + const r2 = { run: function(t3) { + if (t3.Canvas.hasFocus()) { + var e3 = []; + t3.getSelectedAll().forEach(function(t4) { + var n3 = t4.parent(); + if (n3) { + var r3, i = n3.components().length, o = 0, s = 0; + do { + o++, r3 = (s = t4.index() + o) <= i ? n3.getChildAt(s) : null; + } while (r3 && !r3.get("selectable")); + e3.push(r3 || t4); + } + }), e3.length && t3.select(e3); + } + } }; + }, 7508: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => r2 }); + const r2 = { run: function(t3) { + if (t3.Canvas.hasFocus()) { + var e3 = []; + t3.getSelectedAll().forEach(function(t4) { + var n3 = t4.parent(); + if (n3) { + var r3, i = 0, o = 0; + do { + i++, r3 = (o = t4.index() - i) >= 0 ? n3.getChildAt(o) : null; + } while (r3 && !r3.get("selectable")); + e3.push(r3 || t4); + } + }), e3.length && t3.select(e3); + } + } }; + }, 8769: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => i }); + var r2 = n2(9050); + const i = { run: function(t3, e3) { + var n3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i2 = n3.target, o = []; + if (!i2.get("styles")) + return o; + var s = i2.get("type"), a = t3.Pages.getAllWrappers(), l = (0, r2.flatten)(a.map(function(t4) { + return t4.findType(s); + })).length; + if (!l) { + var c = t3.CssComposer.getAll(); + o = c.filter(function(t4) { + return t4.get("group") === "cmp:".concat(s); + }), c.remove(o); + } + return o; + } }; + }, 2213: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => i }); + var r2 = n2(2982); + const i = { run: function(t3) { + var e3 = t3.getModel(), n3 = (0, r2.Z)(t3.getSelectedAll()); + n3.length && e3.set("clipboard", n3); + } }; + }, 5049: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => l }); + var r2 = n2(9050), i = n2(2316), o = n2.n(i), s = n2(2620), a = o().$; + const l = (0, r2.extend)({}, s.default, { init: function(t3) { + (0, r2.bindAll)(this, "startDelete", "stopDelete", "onDelete"), this.hoverClass = this.pfx + "hover-delete", this.badgeClass = this.pfx + "badge-red"; + }, enable: function() { + this.$el.find("*").mouseover(this.startDelete).mouseout(this.stopDelete).click(this.onDelete); + }, startDelete: function(t3) { + t3.stopPropagation(); + var e3 = a(t3.target); + e3.data("model").get("removable") && (e3.addClass(this.hoverClass), this.attachBadge(e3.get(0))); + }, stopDelete: function(t3) { + t3.stopPropagation(), a(t3.target).removeClass(this.hoverClass), this.badge && this.badge.css({ left: -1e3, top: -1e3 }); + }, onDelete: function(t3) { + t3.stopPropagation(); + var e3 = a(t3.target); + e3.data("model").get("removable") && (e3.data("model").destroy(), this.removeBadge(), this.clean()); + }, updateBadgeLabel: function(t3) { + this.badge.html("Remove " + t3.getName()); + } }); + }, 3775: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => o }); + var r2 = n2(2316), i = n2.n(r2)().$; + const o = { run: function(t3, e3) { + var n3 = this; + e3 && e3.set && e3.set("active", 0); + var r3 = t3.getConfig(), o2 = t3.Modal, s = r3.stylePrefix; + if (this.cm = t3.CodeManager || null, !this.$editors) { + var a = this.buildEditor("htmlmixed", "hopscotch", "HTML"), l = this.buildEditor("css", "hopscotch", "CSS"); + this.htmlEditor = a.el, this.cssEditor = l.el; + var c = i('<div class="'.concat(s, 'export-dl"></div>')); + c.append(a.$el).append(l.$el), this.$editors = c; + } + o2.open({ title: r3.textViewCode, content: this.$editors }).getModel().once("change:open", function() { + return t3.stopCommand(n3.id); + }), this.htmlEditor.setContent(t3.getHtml()), this.cssEditor.setContent(t3.getCss()); + }, stop: function(t3) { + var e3 = t3.Modal; + e3 && e3.close(); + }, buildEditor: function(t3, e3, n3) { + var r3 = document.createElement("textarea"); + !this.codeMirror && (this.codeMirror = this.cm.getViewer("CodeMirror")); + var i2 = this.codeMirror.clone().set({ label: n3, codeName: t3, theme: e3, input: r3 }), o2 = new this.cm.EditorView({ model: i2, config: this.cm.getConfig() }).render().$el; + return i2.init(r3), { el: i2, $el: o2 }; + } }; + }, 58: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => i }); + var r2 = n2(9050); + const i = { isEnabled: function() { + var t3 = document; + return t3.fullscreenElement || t3.webkitFullscreenElement || t3.mozFullScreenElement ? 1 : 0; + }, enable: function(t3) { + var e3 = ""; + return t3.requestFullscreen ? t3.requestFullscreen() : t3.webkitRequestFullscreen ? (e3 = "webkit", t3.webkitRequestFullscreen()) : t3.mozRequestFullScreen ? (e3 = "moz", t3.mozRequestFullScreen()) : t3.msRequestFullscreen ? t3.msRequestFullscreen() : console.warn("Fullscreen not supported"), e3; + }, disable: function() { + var t3 = document; + this.isEnabled() && (t3.exitFullscreen ? t3.exitFullscreen() : t3.webkitExitFullscreen ? t3.webkitExitFullscreen() : t3.mozCancelFullScreen ? t3.mozCancelFullScreen() : t3.msExitFullscreen && t3.msExitFullscreen()); + }, fsChanged: function(t3, e3) { + document; + var n3 = (t3 || "") + "fullscreenchange"; + this.isEnabled() || (this.stop(null, this.sender), document.removeEventListener(n3, this.fsChanged)); + }, run: function(t3, e3) { + var n3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + this.sender = e3; + var i2 = n3.target, o = (0, r2.isElement)(i2) ? i2 : document.querySelector(i2), s = this.enable(o || t3.getContainer()); + this.fsChanged = this.fsChanged.bind(this, s), document.addEventListener(s + "fullscreenchange", this.fsChanged), t3.trigger("change:canvasOffset"); + }, stop: function(t3, e3) { + e3 && e3.set && e3.set("active", false), this.disable(), t3 && t3.trigger("change:canvasOffset"); + } }; + }, 8658: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => u }); + var r2 = n2(9050), i = n2(2316), o = n2.n(i), s = n2(6183), a = n2(2620), l = n2(8463), c = o().$; + const u = (0, r2.extend)({}, l.default, a.default, { init: function(t3) { + a.default.init.apply(this, arguments), (0, r2.bindAll)(this, "initSorter", "rollback", "onEndMove"), this.opt = t3, this.hoverClass = this.ppfx + "highlighter-warning", this.badgeClass = this.ppfx + "badge-warning", this.noSelClass = this.ppfx + "no-select"; + }, enable: function() { + for (var t3 = arguments.length, e3 = new Array(t3), n3 = 0; n3 < t3; n3++) + e3[n3] = arguments[n3]; + a.default.enable.apply(this, e3), this.getBadgeEl().addClass(this.badgeClass), this.getHighlighterEl().addClass(this.hoverClass); + var r3 = this.$wrapper; + r3.css("cursor", "move"), r3.on("mousedown", this.initSorter), r3.addClass(this.noSelClass); + }, toggleClipboard: function() { + }, initSorter: function(t3) { + var e3 = c(t3.target).data("model").get("draggable"); + e3 && (this.cacheEl = null, this.startSelectPosition(t3.target, this.frameEl.contentDocument), this.sorter.draggable = e3, this.sorter.onEndMove = this.onEndMove.bind(this), this.stopSelectComponent(), this.$wrapper.off("mousedown", this.initSorter), (0, s.on)(this.getContentWindow(), "keydown", this.rollback)); + }, initSorterFromModel: function(t3) { + var e3 = t3.get("draggable"); + if (e3) { + this.cacheEl = null; + var n3 = t3.view.el; + this.startSelectPosition(n3, this.frameEl.contentDocument), this.sorter.draggable = e3, this.sorter.onEndMove = this.onEndMoveFromModel.bind(this), this.stopSelectComponent(), (0, s.on)(this.getContentWindow(), "keydown", this.rollback); + } + }, initSorterFromModels: function(t3) { + this.cacheEl = null; + var e3 = t3[t3.length - 1], n3 = (this.em.get("currentFrame") || {}).model, r3 = e3.getEl(n3), i2 = r3.ownerDocument; + this.startSelectPosition(r3, i2, { onStart: this.onStart }), this.sorter.draggable = e3.get("draggable"), this.sorter.toMove = t3, this.sorter.onMoveClb = this.onDrag, this.sorter.onEndMove = this.onEndMoveFromModel.bind(this), this.stopSelectComponent(), (0, s.on)(this.getContentWindow(), "keydown", this.rollback); + }, onEndMoveFromModel: function() { + (0, s.off)(this.getContentWindow(), "keydown", this.rollback); + }, onEndMove: function() { + this.enable(), (0, s.off)(this.getContentWindow(), "keydown", this.rollback); + }, onSelect: function(t3, e3) { + }, rollback: function(t3, e3) { + ((t3.which || t3.keyCode) == 27 || e3) && (this.sorter.moved = false, this.sorter.endMove()); + }, getBadgeEl: function() { + return this.$badge || (this.$badge = c(this.getBadge())), this.$badge; + }, getHighlighterEl: function() { + return this.$hl || (this.$hl = c(this.canvas.getHighlighter())), this.$hl; + }, stop: function() { + for (var t3 = arguments.length, e3 = new Array(t3), n3 = 0; n3 < t3; n3++) + e3[n3] = arguments[n3]; + a.default.stop.apply(this, e3), this.getBadgeEl().removeClass(this.badgeClass), this.getHighlighterEl().removeClass(this.hoverClass); + var r3 = this.$wrapper; + r3.css("cursor", "").unbind().removeClass(this.noSelClass); + } }); + }, 9617: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => o }); + var r2 = n2(9050), i = n2(9283); + const o = { open: function(t3) { + var e3 = this, n3 = this.editor, i2 = this.title, o2 = this.config, s = this.am, a = o2.custom; + if ((0, r2.isFunction)(a.open)) + return a.open(s.__customData()); + n3.Modal.open({ title: i2, content: t3 }).onceClose(function() { + return n3.stopCommand(e3.id); + }); + }, close: function() { + var t3 = this.config.custom; + if ((0, r2.isFunction)(t3.close)) + return t3.close(this.am.__customData()); + var e3 = this.editor.Modal; + e3 && e3.close(); + }, run: function(t3, e3) { + var n3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r3 = t3.AssetManager, o2 = r3.getConfig(), s = n3.types, a = s === void 0 ? [] : s, l = n3.accept, c = n3.select; + if (this.title = n3.modalTitle || t3.t("assetManager.modalTitle") || "", this.editor = t3, this.config = o2, this.am = r3, r3.setTarget(n3.target), r3.onClick(n3.onClick), r3.onDblClick(n3.onDblClick), r3.onSelect(n3.onSelect), r3.__behaviour({ select: c, types: a, options: n3 }), o2.custom) + this.rendered = this.rendered || (0, i.ut)("div"), this.rendered.className = "".concat(o2.stylePrefix, "custom-wrp"), r3.__behaviour({ container: this.rendered }), r3.__trgCustom(); + else { + if (!this.rendered || a) { + var u = r3.getAll().filter(function(t4) { + return t4; + }); + a && a.length && (u = u.filter(function(t4) { + return a.indexOf(t4.get("type")) !== -1; + })), r3.render(u), this.rendered = r3.getContainer(); + } + if (l) { + var h = this.rendered.querySelector("input#".concat(o2.stylePrefix, "uploadFile")); + h && h.setAttribute("accept", l); + } + } + return this.open(this.rendered), this; + }, stop: function(t3) { + this.editor = t3, this.close(this.rendered); + } }; + }, 5821: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => o }); + var r2 = n2(9050), i = n2(9283); + const o = { open: function() { + var t3 = this.container, e3 = this.editor, n3 = this.bm, i2 = this.config, o2 = i2.custom, s = i2.appendTo; + if ((0, r2.isFunction)(o2.open)) + return o2.open(n3.__customData()); + if (this.firstRender && !s) { + var a = "views-container", l = e3.Panels; + (l.getPanel(a) || l.addPanel({ id: a })).set("appendContent", t3).trigger("change:appendContent"), o2 || t3.appendChild(n3.render()); + } + t3 && (t3.style.display = "block"); + }, close: function() { + var t3 = this.container, e3 = this.config.custom; + if ((0, r2.isFunction)(e3.close)) + return e3.close(this.bm.__customData()); + t3 && (t3.style.display = "none"); + }, run: function(t3) { + var e3 = t3.Blocks; + this.config = e3.getConfig(), this.firstRender = !this.container, this.container = this.container || (0, i.ut)("div"), this.editor = t3, this.bm = e3; + var n3 = this.container; + e3.__behaviour({ container: n3 }), this.config.custom && e3.__trgCustom(), this.open(); + }, stop: function() { + this.close(); + } }; + }, 3452: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => r2 }); + const r2 = { run: function(t3) { + var e3 = t3.LayerManager, n3 = t3.Panels; + if (!e3.getConfig().appendTo) { + if (!this.layers) { + var r3 = "views-container", i = document.createElement("div"), o = n3.getPanel(r3) || n3.addPanel({ id: r3 }); + i.appendChild(e3.render()), o.set("appendContent", i).trigger("change:appendContent"), this.layers = i; + } + this.layers.style.display = "block"; + } + }, stop: function() { + var t3 = this.layers; + t3 && (t3.style.display = "none"); + } }; + }, 2840: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => o }); + var r2 = n2(2316), i = n2.n(r2)().$; + const o = { run: function(t3, e3) { + if (this.sender = e3, !this.$cn) { + var n3 = t3.getConfig(), r3 = t3.Panels, o2 = "change:appendContent"; + this.$cn = i("<div></div>"), this.$cn2 = i("<div></div>"), this.$cn.append(this.$cn2); + var s = t3.DeviceManager; + if (s && n3.showDevices) { + var a = r3.addPanel({ id: "devices-c" }), l = s.render(); + a.set("appendContent", l).trigger(o2); + } + var c = t3.SelectorManager; + this.slm = c; + var u = c.getConfig(); + u.custom ? c.__trgCustom({ container: this.$cn2.get(0) }) : u.appendTo || this.$cn2.append(c.render([])); + var h = t3.StyleManager; + this.sm = h; + var f = h.getConfig(), d = f.stylePrefix; + this.$header = i('<div class="'.concat(d, 'header">').concat(t3.t("styleManager.empty"), "</div>")), this.$cn.append(this.$header), f.custom ? h.__trgCustom({ container: this.$cn2.get(0) }) : f.appendTo || this.$cn2.append(h.render()); + var p = "views-container"; + this.panel = r3.getPanel(p), this.panel || (this.panel = r3.addPanel({ id: p })), this.panel.set("appendContent", this.$cn).trigger(o2), this.em = t3.getModel(), this.listenTo(this.em, h.events.target, this.toggleSm); + } + this.toggleSm(); + }, toggleSm: function() { + var t3, e3, n3, r3, i2 = this.sender, o2 = this.sm; + i2 && i2.get && !i2.get("active") || !o2 || (o2.getSelected() ? ((t3 = this.$cn2) === null || t3 === void 0 || t3.show(), (e3 = this.$header) === null || e3 === void 0 || e3.hide()) : ((n3 = this.$cn2) === null || n3 === void 0 || n3.hide(), (r3 = this.$header) === null || r3 === void 0 || r3.show())); + }, stop: function() { + var t3, e3; + (t3 = this.$cn2) === null || t3 === void 0 || t3.hide(), (e3 = this.$header) === null || e3 === void 0 || e3.hide(); + } }; + }, 8644: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => o }); + var r2 = n2(2316), i = n2.n(r2)().$; + const o = { run: function(t3, e3) { + this.sender = e3; + var n3 = t3.getModel(), r3 = t3.Config.stylePrefix, o2 = t3.TraitManager, s = o2.getConfig(); + if (!s.appendTo) { + if (!this.$cn) { + this.$cn = i("<div></div>"), this.$cn2 = i("<div></div>"), this.$cn.append(this.$cn2), this.$header = i("<div>").append('<div class="'.concat(s.stylePrefix, 'header">').concat(n3.t("traitManager.empty"), "</div>")), this.$cn.append(this.$header), this.$cn2.append('<div class="'.concat(r3, 'traits-label">').concat(n3.t("traitManager.label"), "</div>")), this.$cn2.append(o2.render()); + var a = t3.Panels; + (a.getPanel("views-container") ? a.getPanel("views-container") : a.addPanel({ id: "views-container" })).set("appendContent", this.$cn.get(0)).trigger("change:appendContent"), this.target = t3.getModel(), this.listenTo(this.target, "component:toggled", this.toggleTm); + } + this.toggleTm(); + } + }, toggleTm: function() { + var t3 = this.sender; + t3 && t3.get && !t3.get("active") || (this.target.getSelectedAll().length === 1 ? (this.$cn2.show(), this.$header.hide()) : (this.$cn2.hide(), this.$header.show())); + }, stop: function() { + this.$cn2 && this.$cn2.hide(), this.$header && this.$header.hide(); + } }; + }, 560: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => i }); + var r2 = n2(9050); + const i = { run: function(t3, e3) { + var n3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i2 = t3.getModel(), o = i2.get("clipboard"), s = t3.getSelected(); + o && s && (t3.getSelectedAll().forEach(function(e4) { + if (e4) { + var i3 = e4.collection; + if (i3) { + var s2, a = { at: i3.indexOf(e4) + 1, action: n3.action || "paste-component" }, l = o.filter(function(t4) { + return t4.get("copyable"); + }); + s2 = (0, r2.contains)(o, e4) && e4.get("copyable") ? i3.add(e4.clone(), a) : i3.add(l.map(function(t4) { + return t4.clone(); + }), a), (s2 = (0, r2.isArray)(s2) ? s2 : [s2]).forEach(function(e5) { + return t3.trigger("component:paste", e5); + }); + } + } + }), s.emitUpdate()); + } }; + }, 4944: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => s }); + var r2 = n2(2982), i = n2(9050), o = "sw-visibility"; + const s = { getPanels: function(t3) { + return this.panels || (this.panels = t3.Panels.getPanels()), this.panels; + }, preventDrag: function(t3) { + t3.abort = 1; + }, tglEffects: function(t3) { + var e3 = this.em, n3 = t3 ? "on" : "off"; + if (e3) { + var r3 = e3.get("Canvas"), o2 = r3.getBody(), s2 = r3.getToolbarEl(); + s2 && (s2.style.display = t3 ? "none" : ""); + var a = o2.querySelectorAll(".".concat(this.ppfx, "no-pointer")); + (0, i.each)(a, function(e4) { + return e4.style.pointerEvents = t3 ? "all" : ""; + }), e3[n3]("run:tlb-move:before", this.preventDrag); + } + }, run: function(t3, e3) { + var n3 = this; + this.sender = e3, this.selected = (0, r2.Z)(t3.getSelectedAll()), t3.select(), this.shouldRunSwVisibility || (this.shouldRunSwVisibility = t3.Commands.isActive(o)), this.shouldRunSwVisibility && t3.stopCommand(o), t3.getModel().stopDefault(); + var i2 = this.getPanels(t3), s2 = t3.Canvas.getElement(), a = t3.getEl(), l = t3.Config.stylePrefix; + if (!this.helper) { + var c = document.createElement("span"); + c.className = "".concat(l, "off-prv fa fa-eye-slash"), a.appendChild(c), c.onclick = function() { + return n3.stopCommand(); + }, this.helper = c; + } + this.helper.style.display = "inline-block", i2.forEach(function(t4) { + return t4.set("visible", false); + }); + var u = s2.style; + u.width = "100%", u.height = "100%", u.top = "0", u.left = "0", u.padding = "0", u.margin = "0", t3.refresh(), this.tglEffects(1); + }, stop: function(t3) { + var e3 = this.sender, n3 = e3 === void 0 ? {} : e3, r3 = this.selected; + n3.set && n3.set("active", 0); + var i2 = this.getPanels(t3); + this.shouldRunSwVisibility && (t3.runCommand(o), this.shouldRunSwVisibility = false), t3.getModel().runDefault(), i2.forEach(function(t4) { + return t4.set("visible", true); + }), t3.Canvas.getElement().setAttribute("style", ""), r3 && t3.select(r3), delete this.selected, this.helper && (this.helper.style.display = "none"), t3.refresh(), this.tglEffects(); + } }; + }, 7538: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => o }); + var r2 = n2(4942); + function i(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + const o = { run: function(t3, e3, n3) { + var o2 = n3 || {}, s = t3.Canvas, a = s.getCanvasView(), l = function(t4) { + for (var e4 = 1; e4 < arguments.length; e4++) { + var n4 = arguments[e4] != null ? arguments[e4] : {}; + e4 % 2 ? i(Object(n4), true).forEach(function(e5) { + (0, r2.Z)(t4, e5, n4[e5]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t4, Object.getOwnPropertyDescriptors(n4)) : i(Object(n4)).forEach(function(e5) { + Object.defineProperty(t4, e5, Object.getOwnPropertyDescriptor(n4, e5)); + }); + } + return t4; + }({ appendTo: s.getResizerEl(), prefix: t3.getConfig().stylePrefix, posFetcher: a.getElementPos.bind(a), mousePosFetcher: s.getMouseRelativePos }, o2.options || {}), c = this.canvasResizer; + return c && !o2.forceNew || (this.canvasResizer = t3.Utils.Resizer.init(l), c = this.canvasResizer), c.setOptions(l), c.blur(), c.focus(o2.el), c; + }, stop: function() { + var t3; + (t3 = this.canvasResizer) === null || t3 === void 0 || t3.blur(); + } }; + }, 2620: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => x }); + var r2 = n2(1002), i = n2(4942), o = n2(2316), s = n2.n(o), a = n2(9050), l = n2(6183), c = n2(9283), u = n2(6602); + function h(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function f(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? h(Object(n3), true).forEach(function(e4) { + (0, i.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : h(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + const d = s().View.extend({ events: function() { + return this.model.get("events") || { mousedown: "handleClick" }; + }, attributes: function() { + return this.model.get("attributes"); + }, initialize: function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e3 = t3.config, n3 = e3 === void 0 ? {} : e3; + this.em = n3.em, this.editor = n3.editor; + }, handleClick: function(t3) { + t3.preventDefault(), t3.stopPropagation(); + var e3 = this.editor, n3 = this.em, r3 = e3.Canvas.getFrameEl().getBoundingClientRect(), i2 = r3.left, o2 = r3.top, s2 = f(f({}, t3), {}, { clientX: t3.clientX - i2, clientY: t3.clientY - o2 }); + n3.trigger("toolbar:run:before"), this.execCommand(s2); + }, execCommand: function(t3) { + var e3 = { event: t3 }, n3 = this.model.get("command"), r3 = this.editor; + typeof n3 == "function" && n3(r3, null, e3), typeof n3 == "string" && r3.runCommand(n3, e3); + }, render: function() { + var t3 = this.editor, e3 = this.$el, n3 = this.model, r3 = n3.get("id"), i2 = n3.get("label"), o2 = t3.getConfig("stylePrefix"); + return e3.addClass("".concat(o2, "toolbar-item")), r3 && e3.addClass("".concat(o2, "toolbar-item__").concat(r3)), i2 && e3.append(i2), this; + } }), p = u.Z.extend({ itemView: d, initialize: function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + this.config = { editor: t3.editor || "", em: t3.em }, this.listenTo(this.collection, "reset", this.render); + } }), g = s().Model.extend({ defaults: { command: "", attributes: {} } }), v = s().Collection.extend({ model: g }); + function m(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function y(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? m(Object(n3), true).forEach(function(e4) { + (0, i.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : m(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + var b, w = s().$; + const x = { init: function(t3) { + (0, a.bindAll)(this, "onHover", "onOut", "onClick", "onFrameScroll", "onFrameUpdated", "onContainerChange"); + }, enable: function() { + this.frameOff = this.canvasOff = this.adjScroll = null, this.startSelectComponent(), b = 1; + }, startSelectComponent: function() { + this.toggleSelectComponent(1), this.em.getSelected() && this.onSelect(); + }, stopSelectComponent: function() { + this.toggleSelectComponent(); + }, toggleSelectComponent: function(t3) { + var e3 = this, n3 = this.em, r3 = n3.getConfig("listenToEl"), i2 = n3.getContainer().parentNode, o2 = t3 ? "on" : "off", s2 = { on: l.on, off: l.off }; + !r3.length && i2 && r3.push(i2); + s2[o2](window, "resize", this.onFrameUpdated), s2[o2](r3, "scroll", this.onContainerChange), n3[o2]("component:toggled component:update undo redo", this.onSelect, this), n3[o2]("change:componentHovered", this.onHovered, this), n3[o2]("component:resize styleable:change component:input", this.updateGlobalPos, this), n3[o2]("component:update:toolbar", this._upToolbar, this), n3[o2]("change:canvasOffset", this.updateAttached, this), n3[o2]("frame:updated", this.onFrameUpdated, this), n3[o2]("canvas:updateTools", this.onFrameUpdated, this), n3.get("Canvas").getFrames().forEach(function(t4) { + var n4 = t4.view, r4 = n4 == null ? void 0 : n4.getWindow(); + r4 && function(t5, n5) { + s2[o2](n5, "mouseover", e3.onHover), s2[o2](n5, "mouseleave", e3.onOut), s2[o2](n5, "click touchend", e3.onClick), s2[o2](t5, "scroll", e3.onFrameScroll, true); + }(r4, n4.getBody()); + }); + }, onHover: function(t3) { + t3.stopPropagation(); + var e3 = this.em, n3 = t3.target, r3 = (0, l.getViewEl)(n3), i2 = r3 && r3._getFrame(), o2 = w(n3), s2 = o2.data("model"); + if (!s2) + for (var a2 = o2.parent(); !s2 && a2.length && !(0, c.Mx)(a2[0]); ) + s2 = a2.data("model"), a2 = a2.parent(); + this.currentDoc = n3.ownerDocument, e3.setHovered(s2, { useValid: true }), i2 && e3.set("currentFrame", i2); + }, onFrameUpdated: function() { + this.updateLocalPos(), this.updateGlobalPos(); + }, onHovered: function(t3, e3) { + var n3 = this, r3 = {}; + e3 ? e3.views.forEach(function(t4) { + var i2 = t4.el, o2 = n3.getElementPos(i2); + r3 = { el: i2, pos: o2, component: e3, view: (0, l.getViewEl)(i2) }, n3.updateToolsLocal(r3), i2.ownerDocument === n3.currentDoc && (n3.elHovered = r3); + }) : (this.currentDoc = null, this.elHovered = 0, this.updateToolsLocal(), this.canvas.getFrames().forEach(function(t4) { + var e4 = t4.view, r4 = e4 && e4.getToolsEl(); + r4 && n3.toggleToolsEl(0, 0, { el: r4 }); + })); + }, onSelect: (0, a.debounce)(function() { + var t3 = this.em, e3 = t3.getSelected(), n3 = t3.get("currentFrame") || {}, r3 = e3 && e3.getView(n3.model), i2 = r3 && r3.el, o2 = {}; + i2 && (0, c.pn)(i2) && (o2 = { el: i2, pos: this.getElementPos(i2), component: e3, view: (0, l.getViewEl)(i2) }); + this.elSelected = o2, this.updateToolsGlobal(), this.updateLocalPos(o2), this.initResize(e3); + }), updateGlobalPos: function() { + var t3 = this.getElSelected(); + t3.el && (t3.pos = this.getElementPos(t3.el), this.updateToolsGlobal()); + }, updateLocalPos: function(t3) { + var e3 = this.getElHovered(); + e3.el && (e3.pos = this.getElementPos(e3.el), this.updateToolsLocal(t3)); + }, getElHovered: function() { + return this.elHovered || {}; + }, getElSelected: function() { + return this.elSelected || {}; + }, onOut: function() { + this.em.setHovered(0); + }, toggleToolsEl: function(t3, e3) { + var n3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r3 = n3.el || this.canvas.getToolsEl(e3); + return r3 && (r3.style.display = t3 ? "" : "none"), r3 || {}; + }, showElementOffset: function(t3, e3) { + var n3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + b && this.editor.runCommand("show-offset", { el: t3, elPos: e3, view: n3.view, force: 1, top: 0, left: 0 }); + }, hideElementOffset: function(t3) { + this.editor.stopCommand("show-offset", { view: t3 }); + }, showFixedElementOffset: function(t3, e3) { + this.editor.runCommand("show-offset", { el: t3, elPos: e3, state: "Fixed" }); + }, hideFixedElementOffset: function(t3, e3) { + this.editor && this.editor.stopCommand("show-offset", { state: "Fixed" }); + }, hideHighlighter: function(t3) { + this.canvas.getHighlighter(t3).style.opacity = 0; + }, onClick: function(t3) { + t3.stopPropagation(), t3.preventDefault(); + var e3 = this.em; + if (e3.get("_cmpDrag")) + return e3.set("_cmpDrag"); + var n3 = w(t3.target), r3 = n3.data("model"); + if (!r3) + for (var i2 = n3.parent(); !r3 && i2.length && !(0, c.Mx)(i2[0]); ) + r3 = i2.data("model"), i2 = i2.parent(); + if (r3) { + if (e3.isEditing() && !r3.get("textable") && r3.isChildOf("text")) + return; + this.select(r3, t3); + } + }, select: function(t3) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + t3 && (this.editor.select(t3, { event: e3, useValid: true }), this.initResize(t3)); + }, updateBadge: function(t3, e3) { + var n3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r3 = this.canvas, i2 = w(t3).data("model"); + if (i2 && i2.get("badgable")) { + var o2 = this.getBadge(n3); + if (!n3.posOnly) { + var s2 = this.canvas.getConfig(), a2 = i2.getIcon(), l2 = s2.pStylePrefix || "", c2 = "".concat(l2, "badge"), u2 = s2.customBadgeLabel, h2 = "".concat(a2 ? '<div class="'.concat(c2, '__icon">').concat(a2, "</div>") : "", '\n <div class="').concat(c2, '__name">').concat(i2.getName(), "</div>"); + o2.innerHTML = u2 ? u2(i2) : h2; + } + var f2 = "px", d2 = o2.style; + d2.display = "block"; + var p2 = r3.getTargetToElementFixed(t3, o2, { pos: e3 }), g2 = p2.top, v2 = n3.leftOff < 0 ? -n3.leftOff : 0; + d2.top = g2 + f2, d2.left = v2 + f2; + } + }, showHighlighter: function(t3) { + this.canvas.getHighlighter(t3).style.opacity = ""; + }, initResize: function(t3) { + var e3, n3 = this.em, i2 = this.canvas, o2 = n3 ? n3.get("Editor") : "", s2 = (n3 ? n3.get("Config") : "").stylePrefix || "", c2 = "".concat(s2, "resizing"), u2 = !(0, a.isElement)(t3) && (0, l.isTaggableNode)(t3) ? t3 : n3.getSelected(), h2 = u2 && u2.get("resizable"), f2 = {}, d2 = function(t4, e4, n4) { + var r3 = n4.docs; + r3 && r3.forEach(function(e5) { + var n5 = e5.body, r4 = n5.className || ""; + n5.className = (t4 == "add" ? "".concat(r4, " ").concat(c2) : r4.replace(c2, "")).trim(); + }); + }; + if (o2 && h2) { + var p2 = (0, a.isElement)(t3) ? t3 : u2.getEl(); + f2 = { onStart: function(t4) { + var r3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o3 = r3.el, s3 = r3.config, a2 = r3.resizer, c3 = s3.keyHeight, h3 = s3.keyWidth, f3 = s3.currentUnit, p3 = s3.keepAutoHeight, g2 = s3.keepAutoWidth; + d2("add", 0, r3), e3 = n3.get("StyleManager").getModelToStyle(u2), i2.toggleFramesEvents(); + var v2 = getComputedStyle(o3), m2 = e3.getStyle(), y2 = m2[h3]; + s3.autoWidth = g2 && y2 === "auto", isNaN(parseFloat(y2)) && (y2 = v2[h3]); + var w2 = m2[c3]; + s3.autoHeight = p3 && w2 === "auto", isNaN(parseFloat(w2)) && (w2 = v2[c3]), a2.startDim.w = parseFloat(y2), a2.startDim.h = parseFloat(w2), b = 0, f3 && (s3.unitHeight = (0, l.getUnitFromValue)(w2), s3.unitWidth = (0, l.getUnitFromValue)(y2)); + }, onMove: function() { + o2.trigger("component:resize"); + }, onEnd: function(t4, e4) { + d2("remove", 0, e4), o2.trigger("component:resize"), i2.toggleFramesEvents(1), b = 1; + }, updateTarget: function(t4, r3) { + var o3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + if (e3) { + var s3 = o3.store, a2 = o3.selectedHandler, l2 = o3.config, c3 = l2.keyHeight, u3 = l2.keyWidth, h3 = l2.autoHeight, f3 = l2.autoWidth, d3 = l2.unitWidth, p3 = l2.unitHeight, g2 = ["tc", "bc"].indexOf(a2) >= 0, v2 = ["cl", "cr"].indexOf(a2) >= 0, m2 = {}, b2 = s3 ? "" : 1; + if (!g2) { + var w2 = i2.getBody().offsetWidth, x2 = r3.w < w2 ? r3.w : w2; + m2[u3] = f3 ? "auto" : "".concat(x2).concat(d3); + } + v2 || (m2[c3] = h3 ? "auto" : "".concat(r3.h).concat(p3)), e3.addStyle(y(y({}, m2), {}, { en: b2 }), { avoidStore: !s3 }); + var O = "update:component:style", C = "".concat(O, ":").concat(c3, " ").concat(O, ":").concat(u3); + n3 && n3.trigger(C, null, null, { noEmit: 1 }); + } + } }, (0, r2.Z)(h2) == "object" && (f2 = y(y(y({}, f2), h2), {}, { parent: f2 })), this.resizer = o2.runCommand("resize", { el: p2, options: f2, force: 1 }); + } else + o2.stopCommand("resize"), this.resizer = null; + }, updateToolbar: function(t3) { + var e3 = this.config.em, n3 = t3 == e3 ? e3.getSelected() : t3, r3 = this.canvas.getToolbarEl(), i2 = r3.style, o2 = n3.get("toolbar"), s2 = e3.get("Config").showToolbar; + if (n3 && s2 && o2 && o2.length) { + if (i2.display = "", !this.toolbar) { + r3.innerHTML = "", this.toolbar = new v(o2); + var a2 = new p({ collection: this.toolbar, editor: this.editor, em: e3 }); + r3.appendChild(a2.render().el); + } + this.toolbar.reset(o2), i2.top = "-100px", i2.left = 0; + } else + i2.display = "none"; + }, updateToolbarPos: function(t3) { + var e3 = this.canvas.getToolbarEl().style; + e3.top = "".concat(t3.top).concat("px"), e3.left = "".concat(t3.left).concat("px"), e3.opacity = ""; + }, getCanvasPosition: function() { + return this.canvas.getCanvasView().getPosition(); + }, getBadge: function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + return this.canvas.getBadgeEl(t3.view); + }, onFrameScroll: function() { + this.updateTools(); + }, updateTools: function() { + this.updateLocalPos(), this.updateGlobalPos(); + }, isCompSelected: function(t3) { + return t3 && t3.get("status") === "selected"; + }, updateToolsLocal: function(t3) { + var e3 = t3 || this.getElHovered(), n3 = e3.el, r3 = e3.pos, i2 = e3.view, o2 = e3.component; + if (n3) { + var s2 = o2.get("hoverable"), a2 = this.lastHovered !== n3, l2 = a2 ? {} : { posOnly: 1 }; + a2 && s2 && (this.lastHovered = n3, this.showHighlighter(i2), this.showElementOffset(n3, r3, { view: i2 })), this.isCompSelected(o2) && (this.hideHighlighter(i2), this.hideElementOffset(i2)); + var c2 = "px", u2 = this.toggleToolsEl(1, i2), h2 = u2.style, f2 = this.canvas.canvasRectOffset(n3, r3), d2 = f2.top, p2 = f2.left; + this.updateBadge(n3, r3, y(y({}, l2), {}, { view: i2, topOff: d2, leftOff: p2 })), h2.top = d2 + c2, h2.left = p2 + c2, h2.width = r3.width + c2, h2.height = r3.height + c2, this._trgToolUp("local", { component: o2, el: u2, top: d2, left: p2, width: r3.width, height: r3.height }); + } else + this.lastHovered = 0; + }, _upToolbar: (0, a.debounce)(function() { + this.updateToolsGlobal({ force: 1 }); + }), _trgToolUp: function(t3) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + this.em.trigger("canvas:tools:update", y({ type: t3 }, e3)); + }, updateToolsGlobal: function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e3 = this.getElSelected(), n3 = e3.el, r3 = e3.pos, i2 = e3.component; + if (!n3) + return this.toggleToolsEl(), void (this.lastSelected = 0); + var o2 = this.canvas, s2 = this.lastSelected !== n3; + (s2 || t3.force) && (this.lastSelected = n3, this.updateToolbar(i2)); + var a2 = "px", l2 = this.toggleToolsEl(1), c2 = l2.style, u2 = o2.getTargetToElementFixed(n3, o2.getToolbarEl(), { pos: r3 }), h2 = u2.canvasOffsetTop, f2 = u2.canvasOffsetLeft; + c2.top = h2 + a2, c2.left = f2 + a2, c2.width = r3.width + a2, c2.height = r3.height + a2, this.updateToolbarPos({ top: u2.top, left: u2.left }), this._trgToolUp("global", { component: i2, el: l2, top: h2, left: f2, width: r3.width, height: r3.height }); + }, updateAttached: (0, a.debounce)(function() { + this.updateGlobalPos(); + }), onContainerChange: (0, a.debounce)(function() { + this.em.refreshCanvas(); + }, 150), getElementPos: function(t3) { + return this.canvas.getCanvasView().getElementPos(t3); + }, hideBadge: function() { + this.getBadge().style.display = "none"; + }, cleanPrevious: function(t3) { + t3 && t3.set({ status: "", state: "" }); + }, getContentWindow: function() { + return this.canvas.getWindow(); + }, run: function(t3) { + (0, l.hasWin)() && (this.editor = t3 && t3.get("Editor"), this.enable()); + }, stop: function(t3, e3) { + var n3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + if ((0, l.hasWin)()) { + var r3 = this.em, i2 = this.editor; + this.onHovered(), this.stopSelectComponent(), !n3.preserveSelected && r3.setSelected(null), this.toggleToolsEl(), i2 && i2.stopCommand("resize"); + } + } }; + }, 8463: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => o }); + var r2 = n2(2316), i = n2.n(r2)().$; + const o = { startSelectPosition: function(t3, e3) { + var n3 = this, r3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + this.isPointed = false; + var i2 = this.editorModel.get("Utils"), o2 = t3.ownerDocument.body; + i2 && !this.sorter && (this.sorter = new i2.Sorter({ container: o2, placer: this.canvas.getPlacerEl(), containerSel: "*", itemSel: "*", pfx: this.ppfx, direction: "a", document: e3, wmargin: 1, nested: 1, em: this.editorModel, canvasRelative: 1, scale: function() { + return n3.em.getZoomDecimal(); + } })), r3.onStart && (this.sorter.onStart = r3.onStart), t3 && this.sorter.startSort(t3, { container: o2 }); + }, getOffsetDim: function() { + var t3 = this.offset(this.canvas.getFrameEl()), e3 = this.offset(this.canvas.getElement()); + return { top: t3.top - e3.top, left: t3.left - e3.left }; + }, stopSelectPosition: function() { + this.posTargetCollection = null, this.posIndex = this.posMethod == "after" && this.cDim.length !== 0 ? this.posIndex + 1 : this.posIndex, this.sorter && (this.sorter.moved = 0, this.sorter.endMove()), this.cDim && (this.posIsLastEl = this.cDim.length !== 0 && this.posMethod == "after" && this.posIndex == this.cDim.length, this.posTargetEl = this.cDim.length === 0 ? i(this.outsideElem) : !this.posIsLastEl && this.cDim[this.posIndex] ? i(this.cDim[this.posIndex][5]).parent() : i(this.outsideElem), this.posTargetModel = this.posTargetEl.data("model"), this.posTargetCollection = this.posTargetEl.data("model-comp")); + }, enable: function() { + this.startSelectPosition(); + }, nearFloat: function(t3, e3, n3) { + var r3 = t3 || 0, i2 = e3 || "before", o2 = n3.length, s = o2 !== 0 && i2 == "after" && r3 == o2; + return o2 !== 0 && (!s && !n3[r3][4] || n3[r3 - 1] && !n3[r3 - 1][4] || s && !n3[r3 - 1][4]) ? 1 : 0; + }, run: function() { + this.enable(); + }, stop: function() { + this.stopSelectPosition(), this.$wrapper.css("cursor", ""), this.$wrapper.unbind(); + } }; + }, 7994: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => u }); + var r2 = n2(4942), i = n2(2316), o = n2.n(i), s = n2(9050), a = n2(6183); + function l(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + var c = o().$; + const u = { getOffsetMethod: function(t3) { + return "get" + (t3 || "") + "OffsetViewerEl"; + }, run: function(t3, e3, n3) { + var i2 = n3 || {}, o2 = i2.state || "", u2 = t3.getConfig(), h = this.em.getZoomDecimal(), f = i2.el || ""; + if (!u2.showOffsets || (0, a.isTextNode)(f) || !u2.showOffsetsSelected && o2 == "Fixed") + t3.stopCommand(this.id, n3); + else { + var d = t3.Canvas, p = function(t4) { + for (var e4 = 1; e4 < arguments.length; e4++) { + var n4 = arguments[e4] != null ? arguments[e4] : {}; + e4 % 2 ? l(Object(n4), true).forEach(function(e5) { + (0, r2.Z)(t4, e5, n4[e5]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t4, Object.getOwnPropertyDescriptors(n4)) : l(Object(n4)).forEach(function(e5) { + Object.defineProperty(t4, e5, Object.getOwnPropertyDescriptor(n4, e5)); + }); + } + return t4; + }({}, i2.elPos || d.getElementPos(f)); + (0, s.isUndefined)(i2.top) || (p.top = i2.top), (0, s.isUndefined)(i2.left) || (p.left = i2.left); + var g = window.getComputedStyle(f), v = this.ppfx, m = o2 + "State", y = d[this.getOffsetMethod(o2)](n3.view); + y.style.opacity = ""; + var b = this["marginT" + o2], w = this["marginB" + o2], x = this["marginL" + o2], O = this["marginR" + o2], C = this["padT" + o2], k = this["padB" + o2], S = this["padL" + o2], P = this["padR" + o2]; + if (y.childNodes.length && (this[m] = "1", b = y.querySelector("[data-offset-m-t]"), w = y.querySelector("[data-offset-m-b]"), x = y.querySelector("[data-offset-m-l]"), O = y.querySelector("[data-offset-m-r]"), C = y.querySelector("[data-offset-p-t]"), k = y.querySelector("[data-offset-p-b]"), S = y.querySelector("[data-offset-p-l]"), P = y.querySelector("[data-offset-p-r]")), !this[m]) { + var _ = o2.toLowerCase(), T = _ + "margin-v", E = _ + "padding-v", j = c('<div class="'.concat(v, 'marginName">')).get(0), D = c('<div class="'.concat(v, 'paddingName">')).get(0), M = v + E + "-el", A = "".concat(v + T + "-el", " ").concat(v + T), L = "".concat(M, " ").concat(v + E); + b = c('<div class="'.concat(A, '-top"></div>')).get(0), w = c('<div class="'.concat(A, '-bottom"></div>')).get(0), x = c('<div class="'.concat(A, '-left"></div>')).get(0), O = c('<div class="'.concat(A, '-right"></div>')).get(0), C = c('<div class="'.concat(L, '-top"></div>')).get(0), k = c('<div class="'.concat(L, '-bottom"></div>')).get(0), S = c('<div class="'.concat(L, '-left"></div>')).get(0), P = c('<div class="'.concat(L, '-right"></div>')).get(0), this["marginT" + o2] = b, this["marginB" + o2] = w, this["marginL" + o2] = x, this["marginR" + o2] = O, this["padT" + o2] = C, this["padB" + o2] = k, this["padL" + o2] = S, this["padR" + o2] = P, j.appendChild(b), j.appendChild(w), j.appendChild(x), j.appendChild(O), D.appendChild(C), D.appendChild(k), D.appendChild(S), D.appendChild(P), y.appendChild(j), y.appendChild(D), this[m] = "1"; + } + var R = "px", N = parseFloat(g.marginLeft.replace(R, "")) * h, Z = parseFloat(g.marginRight.replace(R, "")) * h, I = parseFloat(g.marginTop.replace(R, "")) * h, F = parseFloat(g.marginBottom.replace(R, "")) * h, V = b.style, H = w.style, B = x.style, z = O.style, U = C.style, W = k.style, $ = S.style, q = P.style, G = parseFloat(p.left), K = parseFloat(g.width) * h + R; + V.height = I + R, V.width = K, V.top = p.top - I + R, V.left = G + R, H.height = F + R, H.width = K, H.top = p.top + p.height + R, H.left = G + R; + var Y = p.height + I + F + R, J = p.top - I + R; + B.height = Y, B.width = N + R, B.top = J, B.left = G - N + R, z.height = Y, z.width = Z + R, z.top = J, z.left = G + p.width + R; + var X = parseFloat(g.paddingTop) * h; + U.height = X + R; + var Q = parseFloat(g.paddingBottom) * h; + W.height = Q + R; + var tt = p.height - Q - X + R, et = p.top + X + R; + $.height = tt, $.width = parseFloat(g.paddingLeft) * h + R, $.top = et; + var nt = parseFloat(g.paddingRight) * h; + q.height = tt, q.width = nt + R, q.top = et; + } + }, stop: function(t3, e3) { + var n3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r3 = n3 || {}, i2 = r3.state || "", o2 = this.getOffsetMethod(i2), s2 = t3.Canvas, a2 = s2[o2](n3.view); + a2.style.opacity = 0; + } }; + }, 8352: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => i }); + var r2 = n2(9050); + const i = { init: function() { + (0, r2.bindAll)(this, "_onFramesChange"); + }, run: function(t3) { + this.toggleVis(t3); + }, stop: function(t3) { + this.toggleVis(t3, 0); + }, toggleVis: function(t3) { + var e3 = this, n3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1; + if (!t3.Commands.isActive("preview")) { + var r3 = t3.Canvas, i2 = n3 ? "on" : "off"; + r3.getFrames().forEach(function(t4) { + return e3._upFrame(t4, n3); + }), r3.getModel()[i2]("change:frames", this._onFramesChange); + } + }, _onFramesChange: function(t3, e3) { + var n3 = this; + e3.forEach(function(t4) { + return n3._upFrame(t4, 1); + }); + }, _upFrame: function(t3, e3) { + var n3 = e3 ? "add" : "remove"; + t3.view.getBody().classList[n3]("".concat(this.ppfx, "dashed")); + } }; + }, 9304: (t2, e2, n2) => { + "use strict"; + n2.d(e2, { Z: () => c }); + var r2 = n2(4942), i = n2(2982), o = n2(9050), s = n2(6183); + function a(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function l(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? a(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : a(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + const c = { getConfig: function(t3) { + return this.__getConfig(t3); + }, __getConfig: function(t3) { + var e3 = this.config || {}; + return t3 ? e3[t3] : e3; + }, getAll: function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + return this.all ? t3.array ? (0, i.Z)(this.all.models) : this.all : []; + }, getAllMap: function() { + return this.getAll().reduce(function(t3, e3) { + return t3[e3.get(e3.idAttribute)] = e3, t3; + }, {}); + }, __initConfig: function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + this.config = l(l({}, t3), e3), this.em = this.config.em, this.cls = []; + }, __initListen: function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e3 = this.all, n3 = this.em, r3 = this.events; + e3 && n3 && e3.on("add", function(t4, e4, i2) { + return n3.trigger(r3.add, t4, i2); + }).on("remove", function(t4, e4, i2) { + return n3.trigger(r3.remove, t4, i2); + }).on("change", function(t4, e4) { + return n3.trigger(r3.update, t4, t4.changedAttributes(), e4); + }).on("all", this.__catchAllEvent, this), this.cls = [e3].concat(t3.collections || []), (t3.propagate || []).forEach(function(t4) { + var r4 = t4.entity, i2 = t4.event; + r4.on("all", function(t5, r5, o2, s2) { + var a2 = l({ event: t5 }, s2 || o2); + [n3, e3].map(function(t6) { + return t6.trigger(i2, r5, a2); + }); + }); + }); + }, __remove: function(t3) { + var e3 = this, n3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r3 = this.em, i2 = (0, o.isString)(t3) ? this.get(t3) : t3, s2 = function() { + return i2 && e3.all.remove(i2, n3), i2; + }; + return !n3.silent && r3 && r3.trigger(this.events.removeBefore, i2, s2, n3), !n3.abort && s2(); + }, __catchAllEvent: function(t3, e3, n3, r3) { + var i2 = this.em, o2 = this.events, s2 = r3 || n3; + i2 && o2.all && i2.trigger(o2.all, { event: t3, model: e3, options: s2 }), this.__onAllEvent(); + }, __appendTo: function() { + var t3 = this.getConfig().appendTo; + if (t3) { + var e3 = (0, o.isElement)(t3) ? t3 : document.querySelector(t3); + if (!e3) + return this.__logWarn('"appendTo" element not found'); + e3.appendChild(this.render()); + } + }, __onAllEvent: function() { + }, __logWarn: function(t3) { + this.em.logWarning("[".concat(this.name, "]: ").concat(t3)); + }, _createId: function() { + var t3, e3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 16, n3 = this.getAll(), r3 = n3.length + e3, i2 = this.getAllMap(); + do { + t3 = (0, s.createId)(r3); + } while (i2[t3]); + return t3; + }, __listenAdd: function(t3, e3) { + var n3 = this; + t3.on("add", function(t4, r3, i2) { + return n3.em.trigger(e3, t4, i2); + }); + }, __listenRemove: function(t3, e3) { + var n3 = this; + t3.on("remove", function(t4, r3, i2) { + return n3.em.trigger(e3, t4, i2); + }); + }, __listenUpdate: function(t3, e3) { + var n3 = this; + t3.on("change", function(t4, r3) { + return n3.em.trigger(e3, t4, t4.changedAttributes(), r3); + }); + }, __destroy: function() { + var t3; + this.cls.forEach(function(t4) { + t4.stopListening(), t4.reset(); + }), this.em = 0, this.config = 0, (t3 = this.view) === null || t3 === void 0 || t3.remove(), this.view = 0; + } }; + }, 672: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => E }); + var r2 = n2(2982), i = n2(4942), o = n2(9050), s = n2(6183); + const a = { stylePrefix: "css-", rules: [], onBeforeStyle: null }; + var l = n2(5671), c = n2(3144), u = n2(9340), h = n2(3930), f = n2(1120), d = n2(2316), p = n2.n(d), g = n2(3345), v = n2(4293), m = n2(8795); + function y(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function b(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? y(Object(n3), true).forEach(function(e4) { + (0, i.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : y(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + function w(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, f.Z)(t3); + if (e3) { + var i2 = (0, f.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, h.Z)(this, n3); + }; + } + var x = ((0, s.hasWin)() ? window : {}).CSS, O = function(t3) { + (0, u.Z)(n3, t3); + var e3 = w(n3); + function n3() { + return (0, l.Z)(this, n3), e3.apply(this, arguments); + } + return (0, c.Z)(n3, [{ key: "defaults", value: function() { + return { selectors: [], selectorsAdd: "", style: {}, mediaText: "", state: "", stylable: true, atRuleType: "", singleAtRule: false, important: false, group: "", shallow: false, _undo: true }; + } }, { key: "initialize", value: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + this.config = t4 || {}, this.opt = e4, this.em = e4.em, this.ensureSelectors(), this.on("change", this.__onChange); + } }, { key: "__onChange", value: function(t4, e4) { + var n4 = this.em, r3 = this.changedAttributes(); + !(0, s.isEmptyObj)(r3) && n4 && n4.changesUp(e4); + } }, { key: "clone", value: function() { + var t4 = b({}, this.opt), e4 = b({}, this.attributes); + return e4.selectors = this.get("selectors").map(function(t5) { + return t5.clone(); + }), new this.constructor(e4, t4); + } }, { key: "ensureSelectors", value: function(t4, e4, n4) { + var i2 = this.em, s2 = i2 && i2.get("SelectorManager"), a2 = [this, "change:selectors", this.ensureSelectors], l2 = this.getSelectors(); + if (this.stopListening.apply(this, a2), l2.models && (l2 = (0, r2.Z)(l2.models)), l2 = (0, o.isString)(l2) ? [l2] : l2, Array.isArray(l2)) { + var c2 = l2.filter(function(t5) { + return t5; + }).map(function(t5) { + return s2 ? s2.add(t5) : t5; + }); + l2 = new v.Z(c2); + } + this.set("selectors", l2, n4), this.listenTo.apply(this, a2); + } }, { key: "getAtRule", value: function() { + var t4 = this.get("atRuleType"), e4 = this.get("mediaText"), n4 = t4 ? "@".concat(t4) : e4 ? "@media" : ""; + return n4 + (e4 && n4 ? " ".concat(e4) : ""); + } }, { key: "selectorsToString", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e4 = [], n4 = this.get("state"), r3 = this.get("selectorsAdd"), i2 = { escape: function(t5) { + return x && x.escape ? x.escape(t5) : t5; + } }, o2 = this.get("selectors").getFullString(0, i2), s2 = n4 && !t4.skipState ? ":".concat(n4) : ""; + return o2 && e4.push("".concat(o2).concat(s2)), r3 && !t4.skipAdd && e4.push(r3), e4.join(", "); + } }, { key: "getDeclaration", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e4 = "", n4 = this.selectorsToString(t4), r3 = this.styleToString(t4), i2 = this.get("singleAtRule"); + return (n4 || i2) && (r3 || t4.allowEmpty) && (e4 = i2 ? r3 : "".concat(n4, "{").concat(r3, "}")), e4; + } }, { key: "getDevice", value: function() { + var t4 = this.em, e4 = this.attributes, n4 = e4.atRuleType, r3 = e4.mediaText, i2 = (t4 == null ? void 0 : t4.get("DeviceManager").getDevices()) || [], o2 = i2.filter(function(t5) { + return t5.getWidthMedia() === ""; + })[0]; + return n4 === "media" && r3 ? i2.filter(function(t5) { + return t5.getWidthMedia() === (0, m.U)(r3); + })[0] || null : o2 || null; + } }, { key: "getState", value: function() { + var t4 = this.em, e4 = this.get("state"); + return (t4.get("SelectorManager").getStates() || []).filter(function(t5) { + return t5.getName() === e4; + })[0] || null; + } }, { key: "getComponent", value: function() { + var t4, e4 = this.getSelectors(), n4 = e4.length == 1 && e4.at(0), r3 = n4 && n4.isId() && n4.get("name"); + return r3 && ((t4 = this.em) === null || t4 === void 0 ? void 0 : t4.get("DomComponents").getById(r3)) || null; + } }, { key: "toCSS", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e4 = "", n4 = this.getAtRule(), r3 = this.getDeclaration(t4); + return (r3 || t4.allowEmpty) && (e4 = r3), n4 && e4 && (e4 = "".concat(n4, "{").concat(e4, "}")), e4; + } }, { key: "toJSON", value: function() { + for (var t4 = arguments.length, e4 = new Array(t4), n4 = 0; n4 < t4; n4++) + e4[n4] = arguments[n4]; + var r3 = d.Model.prototype.toJSON.apply(this, e4); + if (this.em.getConfig("avoidDefaults")) { + var i2 = this.defaults(); + (0, o.forEach)(i2, function(t5, e5) { + r3[e5] === t5 && delete r3[e5]; + }), (0, o.isEmpty)(r3.selectors) && delete r3.selectors, (0, o.isEmpty)(r3.style) && delete r3.style; + } + return r3; + } }, { key: "compare", value: function(t4, e4, n4) { + var r3 = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, i2 = e4 || "", s2 = n4 || "", a2 = r3.selectorsAdd || "", l2 = r3.atRuleType || "", c2 = (0, o.isArray)(t4) || t4.models ? t4.models || t4 : [t4]; + s2 && !l2 && (l2 = "media"); + var u2 = c2.map(function(t5) { + return t5.getFullName(); + }), h2 = this.get("selectors").map(function(t5) { + return t5.getFullName(); + }), f2 = u2.slice().sort(), d2 = h2.slice().sort(); + return !(u2.length !== h2.length || !f2.every(function(t5, e5) { + return t5 === d2[e5]; + })) && (this.get("state") === i2 && this.get("mediaText") === s2 && this.get("selectorsAdd") === a2 && this.get("atRuleType") === l2); + } }]), n3; + }(d.Model.extend(g.Z)), C = p().Collection; + const k = C.extend({ model: O, initialize: function(t3, e3) { + var n3 = this; + e3 && e3.em && (this.editor = e3.em), setTimeout(function() { + n3.on("remove", n3.onRemove), n3.on("add", n3.onAdd); + }); + }, toJSON: function(t3) { + return C.prototype.toJSON.call(this, t3).filter(function(t4) { + return t4.style && !t4.shallow; + }); + }, onAdd: function(t3, e3, n3) { + t3.ensureSelectors(t3, e3, n3); + }, onRemove: function(t3) { + var e3 = this.editor; + e3.stopListening(t3), e3.get("UndoManager").remove(t3); + }, add: function(t3) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + return typeof t3 == "string" && (t3 = this.editor.get("Parser").parseCss(t3)), e3.em = this.editor, C.prototype.add.apply(this, [t3, e3]); + } }); + var S = n2(4868), P = n2(8490); + function _(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function T(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? _(Object(n3), true).forEach(function(e4) { + (0, i.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : _(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + const E = function() { + var t3, e3, n3, i2 = {}; + return { Selectors: v.Z, name: "CssComposer", getConfig: function() { + return i2; + }, storageKey: function() { + var t4 = [], e4 = i2.stm && i2.stm.getConfig() || {}; + return e4.storeCss && t4.push("css"), e4.storeStyles && t4.push("styles"), t4; + }, init: function(n4) { + for (var r3 in i2 = n4 || {}, a) + r3 in i2 || (i2[r3] = a[r3]); + var o2 = i2.pStylePrefix; + o2 && (i2.stylePrefix = o2 + i2.stylePrefix); + var s2 = i2.em && i2.em.config.style || ""; + return i2.rules = s2 || i2.rules, t3 = i2.em, e3 = new k([], i2), this; + }, onLoad: function() { + e3.add(i2.rules, { silent: 1 }); + }, postLoad: function() { + var e4 = t3 && t3.get("UndoManager"); + e4 && e4.add(this.getAll()); + }, load: function(t4) { + var n4 = t4 || ""; + !n4 && i2.stm && (n4 = i2.em.getCacheLoad()); + var r3 = n4.styles || ""; + if (n4.styles) + try { + r3 = JSON.parse(n4.styles); + } catch (t5) { + } + else + n4.css && (r3 = i2.em.get("Parser").parseCss(n4.css)); + return (0, o.isArray)(r3) ? r3.length && e3.reset(r3) : r3 && e3.reset(r3), r3; + }, store: function(n4) { + if (i2.stm) { + var r3 = {}, o2 = this.storageKey(), s2 = t3 && t3.get("hasPages"); + return o2.indexOf("css") >= 0 && !s2 && (r3.css = i2.em.getCss()), o2.indexOf("styles") >= 0 && (r3.styles = JSON.stringify(e3)), n4 || i2.stm.store(r3), r3; + } + }, add: function(t4, n4, r3) { + var o2 = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, s2 = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {}, a2 = n4 || "", l2 = r3 || "", c2 = T({}, o2), u2 = this.get(t4, a2, l2, c2); + return u2 && u2.config && !u2.config.singleAtRule || (c2.state = a2, c2.mediaText = l2, c2.selectors = [], l2 && (c2.atRuleType = "media"), (u2 = new O(c2, i2)).get("selectors").add(t4, s2), e3.add(u2, s2)), u2; + }, get: function(n4, r3, i3, s2) { + var a2 = n4; + if ((0, o.isString)(n4)) { + var l2 = t3.get("SelectorManager"), c2 = n4.split(",")[0].trim(), u2 = t3.get("Parser").parserCss.checkNode({ selectors: c2 })[0]; + a2 = l2.get(u2.selectors); + } + return e3.find(function(t4) { + return t4.compare(a2, r3, i3, s2); + }) || null; + }, getAll: function() { + return e3; + }, addCollection: function(e4) { + var n4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a2 = []; + (0, o.isString)(e4) && (e4 = t3.get("Parser").parseCss(e4)); + for (var l2 = e4 instanceof Array ? e4 : [e4], c2 = 0, u2 = l2.length; c2 < u2; c2++) { + var h2 = l2[c2] || {}; + if (h2.selectors) { + var f2 = i2.em && i2.em.get("SelectorManager"); + f2 || console.warn("Selector Manager not found"); + for (var d2 = h2.selectors, p2 = d2 instanceof Array ? d2 : [d2], g2 = [], v2 = 0, m2 = p2.length; v2 < m2; v2++) { + var y2 = f2.add(p2[v2]); + g2.push(y2); + } + var b2 = this.get(g2, h2.state, h2.mediaText, h2), w2 = this.add(g2, h2.state, h2.mediaText, h2, n4), x2 = !b2 || !n4.avoidUpdateStyle, O2 = h2.style || {}; + if ((0, s.isObject)(r3) && w2.set(r3, n4), x2) { + var C2 = n4.extend ? T(T({}, w2.get("style")), O2) : O2; + w2.set("style", C2, n4); + } + a2.push(w2); + } + } + return a2; + }, addRules: function(t4) { + return this.addCollection(t4); + }, setRule: function(e4, n4) { + var r3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i3 = r3.atRuleType, o2 = r3.atRuleParams, s2 = t3.get("Parser").parserCss.checkNode({ selectors: e4, style: n4 })[0], a2 = s2.state, l2 = s2.selectorsAdd, c2 = t3.get("SelectorManager"), u2 = c2.add(s2.selectors), h2 = this.add(u2, a2, o2, { selectorsAdd: l2, atRule: i3 }); + return h2.setStyle(n4, r3), h2; + }, getRule: function(e4) { + var n4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r3 = t3.get("SelectorManager"), i3 = t3.get("Parser").parserCss.checkNode({ selectors: e4 })[0], o2 = r3.get(i3.selectors), s2 = i3.state, a2 = i3.selectorsAdd, l2 = n4.atRuleType, c2 = n4.atRuleParams; + return o2 && this.get(o2, s2, c2, { selectorsAdd: a2, atRule: l2 }); + }, getRules: function(t4) { + var e4 = this.getAll(); + if (!t4) + return (0, r2.Z)(e4.models); + var n4 = (0, o.isString)(t4) ? t4.split(",").map(function(t5) { + return t5.trim(); + }) : t4; + return e4.filter(function(t5) { + return n4.indexOf(t5.getSelectors().getFullString()) >= 0; + }); + }, setIdRule: function(e4) { + var n4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i3 = r3.addOpts, s2 = i3 === void 0 ? {} : i3, a2 = r3.mediaText, l2 = r3.state || "", c2 = (0, o.isUndefined)(a2) ? t3.getCurrentMedia() : a2, u2 = t3.get("SelectorManager"), h2 = u2.add({ name: e4, type: P.Z.TYPE_ID }, s2), f2 = this.add(h2, l2, c2, {}, s2); + return f2.setStyle(n4, T(T({}, r3), s2)), f2; + }, getIdRule: function(e4) { + var n4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r3 = n4.mediaText, i3 = n4.state || "", s2 = (0, o.isUndefined)(r3) ? t3.getCurrentMedia() : r3, a2 = t3.get("SelectorManager").get(e4, P.Z.TYPE_ID); + return a2 && this.get(a2, i3, s2); + }, setClassRule: function(e4) { + var n4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i3 = r3.state || "", o2 = r3.mediaText || t3.getCurrentMedia(), s2 = t3.get("SelectorManager"), a2 = s2.add({ name: e4, type: P.Z.TYPE_CLASS }), l2 = this.add(a2, i3, o2); + return l2.setStyle(n4, r3), l2; + }, getClassRule: function(e4) { + var n4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r3 = n4.state || "", i3 = n4.mediaText || t3.getCurrentMedia(), o2 = t3.get("SelectorManager").get(e4, P.Z.TYPE_CLASS); + return o2 && this.get(o2, r3, i3); + }, remove: function(t4, e4) { + var n4 = (0, o.isString)(t4) ? this.getRules(t4) : t4, r3 = this.getAll().remove(n4, e4); + return (0, o.isArray)(r3) ? r3 : [r3]; + }, clear: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + return this.getAll().reset(null, t4), this; + }, getComponentRules: function(e4) { + var n4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r3 = n4.state, i3 = n4.mediaText, s2 = n4.current; + s2 && (r3 = t3.get("state") || "", i3 = t3.getCurrentMedia()); + var a2 = e4.getId(), l2 = this.getAll().filter(function(t4) { + if (((0, o.isUndefined)(r3) || t4.get("state") === r3) && ((0, o.isUndefined)(i3) || t4.get("mediaText") === i3)) + return t4.getSelectorsString() === "#".concat(a2); + }); + return l2; + }, render: function() { + return n3 && n3.remove(), (n3 = new S.Z({ collection: e3, config: i2 })).render().el; + }, destroy: function() { + e3.reset(), e3.stopListening(), n3 && n3.remove(), [t3, e3, n3].forEach(function(t4) { + return null; + }), i2 = {}; + } }; + }; + }, 4868: (t2, e2, n2) => { + "use strict"; + n2.d(e2, { Z: () => c }); + var r2 = n2(2316), i = n2.n(r2); + const o = i().View.extend({ tagName: "style", initialize: function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + this.config = t3.config || {}; + var e3 = this.model; + this.listenTo(e3, "change", this.render), this.listenTo(e3, "destroy remove", this.remove), this.listenTo(e3.get("selectors"), "change", this.render); + }, render: function() { + var t3 = this.model, e3 = this.el, n3 = t3.get("important"); + return e3.innerHTML = t3.toCSS({ important: n3 }), this; + } }), s = o.extend({ _createElement: function(t3) { + return document.createTextNode(""); + }, render: function() { + var t3 = this.model, e3 = t3.get("important"); + return this.el.textContent = t3.getDeclaration({ important: e3 }), this; + } }); + var a = i().$, l = function(t3, e3) { + return "".concat(t3).concat(e3 ? "-".concat(parseFloat(e3)) : ""); + }; + const c = i().View.extend({ initialize: function(t3) { + var e3 = t3.config || {}; + this.atRules = {}, this.config = e3, this.em = e3.em, this.pfx = e3.stylePrefix || "", this.className = this.pfx + "rules"; + var n3 = this.collection; + this.listenTo(n3, "add", this.addTo), this.listenTo(n3, "reset", this.render); + }, addTo: function(t3) { + this.addToCollection(t3); + }, addToCollection: function(t3, e3) { + if (this.renderStarted) { + var n3, r3, i2 = e3 || null, a2 = { model: t3, config: this.config }; + if (t3.get("atRuleType") === "keyframes") { + var c2 = t3.getAtRule(), u = this.atRules[c2]; + if (!u) { + var h = document.createElement("style"); + u = document.createTextNode(""), h.appendChild(document.createTextNode("".concat(c2, "{"))), h.appendChild(u), h.appendChild(document.createTextNode("}")), this.atRules[c2] = u, n3 = h; + } + r3 = new s(a2), u.appendData(r3.render().el.textContent); + } else + n3 = (r3 = new o(a2)).render().el; + var f = this.className, d = t3.get("mediaText"), p = l(f), g = p; + if (d && (g = l(f, this.getMediaWidth(d))), n3) { + var v, m = i2 || this.el; + try { + v = m.querySelector("#".concat(g)); + } catch (t4) { + } + v || (v = m.querySelector("#".concat(p))), v.appendChild(n3); + } + return n3; + } + }, getMediaWidth: function(t3) { + return t3 && t3.replace("(".concat(this.em.getConfig("mediaCondition"), ": "), "").replace(")", ""); + }, render: function() { + var t3 = this; + this.renderStarted = 1, this.atRules = {}; + var e3 = this.em, n3 = this.$el, r3 = this.className, i2 = this.collection, o2 = document.createDocumentFragment(); + n3.empty(); + var s2 = e3.get("DeviceManager").getAll().pluck("priority"); + return s2.every(function(t4) { + return t4; + }) && s2.unshift(0), s2.forEach(function(t4) { + return a('<div id="'.concat(l(r3, t4), '"></div>')).appendTo(o2); + }), i2.each(function(e4) { + return t3.addToCollection(e4, o2); + }), n3.append(o2), n3.attr("class", r3), this; + } }); + }, 2004: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => L, evAdd: () => E, evAddBefore: () => j, evAll: () => k, evPfx: () => S, evRemove: () => D, evRemoveBefore: () => M, evSelect: () => P, evSelectBefore: () => _, evUpdate: () => T }); + var r2 = n2(4942), i = n2(9050), o = n2(9304); + const s = { default: null, devices: [{ id: "desktop", name: "Desktop", width: "" }, { id: "tablet", name: "Tablet", width: "770px", widthMedia: "992px" }, { id: "mobileLandscape", name: "Mobile landscape", width: "568px", widthMedia: "768px" }, { id: "mobilePortrait", name: "Mobile portrait", width: "320px", widthMedia: "480px" }] }; + var a = n2(5671), l = n2(3144), c = n2(9340), u = n2(3930), h = n2(1120), f = n2(2316); + function d(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, h.Z)(t3); + if (e3) { + var i2 = (0, h.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, u.Z)(this, n3); + }; + } + var p = function(t3) { + (0, c.Z)(n3, t3); + var e3 = d(n3); + function n3() { + return (0, a.Z)(this, n3), e3.apply(this, arguments); + } + return (0, l.Z)(n3, [{ key: "defaults", value: function() { + return { name: "", width: null, height: "", widthMedia: null, priority: null }; + } }, { key: "initialize", value: function() { + var t4 = this; + this.get("widthMedia") === null && this.set("widthMedia", this.get("width")), this.get("width") === null && this.set("width", this.get("widthMedia")), !this.get("priority") && this.set("priority", parseFloat(this.get("widthMedia")) || 0); + ["width", "height", "widthMedia"].forEach(function(e4) { + return t4.checkUnit(e4); + }); + } }, { key: "checkUnit", value: function(t4) { + var e4 = this.get(t4) || ""; + (parseFloat(e4) || 0).toString() === e4.toString() && this.set(t4, "".concat(e4, "px")); + } }, { key: "getName", value: function() { + return this.get("name") || this.get("id"); + } }, { key: "getWidthMedia", value: function() { + return this.get("widthMedia") || ""; + } }]), n3; + }(f.Model); + function g(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, h.Z)(t3); + if (e3) { + var i2 = (0, h.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, u.Z)(this, n3); + }; + } + var v = function(t3) { + (0, c.Z)(n3, t3); + var e3 = g(n3); + function n3() { + return (0, a.Z)(this, n3), e3.apply(this, arguments); + } + return (0, l.Z)(n3, [{ key: "comparator", value: function(t4, e4) { + var n4 = Number.MAX_VALUE; + return (e4.get("priority") || n4) - (t4.get("priority") || n4); + } }, { key: "getSorted", value: function() { + return this.sort(); + } }]), n3; + }(f.Collection); + v.prototype.model = p; + var m, y = n2(168), b = n2(1629); + function w(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, h.Z)(t3); + if (e3) { + var i2 = (0, h.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, u.Z)(this, n3); + }; + } + var x = function(t3) { + (0, c.Z)(n3, t3); + var e3 = w(n3); + function n3() { + return (0, a.Z)(this, n3), e3.apply(this, arguments); + } + return (0, l.Z)(n3, [{ key: "template", value: function(t4) { + var e4 = t4.ppfx, n4 = t4.label; + return (0, b.Z)(m || (m = (0, y.Z)(['\n <div class="', 'device-label">', '</div>\n <div class="', "field ", 'select">\n <span id="', 'input-holder">\n <select class="', 'devices"></select>\n </span>\n <div class="', 'sel-arrow">\n <div class="', 'd-s-arrow"></div>\n </div>\n </div>\n <button style="display:none" class="', 'add-trasp">+</button>\n '])), e4, n4, e4, e4, e4, e4, e4, e4, e4); + } }, { key: "events", value: function() { + return { change: "updateDevice" }; + } }, { key: "initialize", value: function(t4) { + this.config = t4.config || {}, this.em = this.config.em, this.ppfx = this.config.pStylePrefix || "", this.events["click ." + this.ppfx + "add-trasp"] = this.startAdd, this.listenTo(this.em, "change:device", this.updateSelect), this.delegateEvents(); + } }, { key: "startAdd", value: function() { + } }, { key: "updateDevice", value: function() { + var t4 = this.em; + if (t4) { + var e4 = this.devicesEl, n4 = e4 ? e4.val() : ""; + t4.set("device", n4); + } + } }, { key: "updateSelect", value: function() { + var t4 = this.em, e4 = this.devicesEl; + if (t4 && t4.getDeviceModel && e4) { + var n4 = t4.getDeviceModel(), r3 = n4 ? n4.get("id") : ""; + e4.val(r3); + } + } }, { key: "getOptions", value: function() { + var t4 = this.collection, e4 = this.em, n4 = ""; + return t4.each(function(t5) { + var r3 = t5.attributes, i2 = r3.name, o2 = r3.id, s2 = e4 && e4.t && e4.t("deviceManager.devices.".concat(o2)) || i2; + n4 += '<option value="'.concat(o2 || i2, '">').concat(s2, "</option>"); + }), n4; + } }, { key: "render", value: function() { + var t4 = this.em, e4 = this.ppfx, n4 = this.$el, r3 = this.el, i2 = t4 && t4.t && t4.t("deviceManager.device"); + return n4.html(this.template({ ppfx: e4, label: i2 })), this.devicesEl = n4.find(".".concat(e4, "devices")), this.devicesEl.append(this.getOptions()), this.devicesEl.val(t4.get("device")), r3.className = "".concat(e4, "devices-c"), this; + } }]), n3; + }(f.View); + function O(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function C(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? O(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : O(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + var k = "device", S = "".concat(k, ":"), P = "".concat(S, "select"), _ = "".concat(P, ":before"), T = "".concat(S, "update"), E = "".concat(S, "add"), j = "".concat(E, ":before"), D = "".concat(S, "remove"), M = "".concat(D, ":before"), A = "change:device"; + const L = function() { + var t3, e3, n3 = {}; + return C(C({}, o.Z), {}, { name: "DeviceManager", Device: p, Devices: v, events: { all: k, select: P, update: T, add: E, remove: D, removeBefore: M }, init: function() { + var e4 = this, r3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i2 = n3 = C(C({}, s), r3), o2 = i2.em; + return t3 = new v(), n3.devices.forEach(function(t4) { + return e4.add(t4); + }), this.em = o2, this.all = t3, this.select(n3.default || t3.at(0)), this.__initListen(), o2.on(A, this._onSelect, this), this; + }, _onSelect: function(t4, e4, n4) { + var r3 = this.em, i2 = this.events, o2 = t4.previous("device"), s2 = this.get(e4), a2 = i2.select; + r3.trigger(a2, s2, this.get(o2)), this.__catchAllEvent(a2, s2, n4); + }, add: function(e4) { + var n4, r3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o2 = r3; + if ((0, i.isString)(e4)) { + var s2 = r3; + n4 = C(C({}, o2 = arguments[2] || {}), {}, { id: e4, name: o2.name || e4, width: s2 }); + } else + n4 = e4; + return n4.id || (n4.id = n4.name || this._createId()), t3.add(n4, o2); + }, get: function(e4) { + return this.getAll().filter(function(t4) { + return t4.get("name") === e4; + })[0] || t3.get(e4) || null; + }, remove: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + return this.__remove(t4, e4); + }, getDevices: function() { + return t3.models; + }, select: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n4 = (0, i.isString)(t4) ? this.get(t4) : t4; + return n4 && this.em.set("device", n4.get("id"), e4), this; + }, getSelected: function() { + return this.get(this.em.get("device")); + }, getAll: function() { + return t3; + }, render: function() { + return e3 && e3.remove(), (e3 = new x({ collection: t3, config: n3 })).render().el; + }, destroy: function() { + t3.stopListening(), t3.reset(), e3 && e3.remove(), [t3, e3].forEach(function(t4) { + return null; + }), n3 = {}; + } }); + }; + }, 9831: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => ue }); + var r2 = n2(4942), i = n2(1002), o = n2(9050); + const s = { stylePrefix: "comp-", components: [], draggableComponents: 1, storeWrapper: 0, processor: 0, voidElements: ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "menuitem", "meta", "param", "source", "track", "wbr"] }; + var a = n2(9138), l = n2(8431), c = n2(2169), u = n2(5671), h = n2(3144), f = n2(9340), d = n2(3930), p = n2(1120); + function g(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, p.Z)(t3); + if (e3) { + var i2 = (0, p.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, d.Z)(this, n3); + }; + } + var v = function(t3) { + (0, f.Z)(n3, t3); + var e3 = g(n3); + function n3() { + return (0, u.Z)(this, n3), e3.apply(this, arguments); + } + return (0, h.Z)(n3, [{ key: "tagName", value: function() { + return "div"; + } }]), n3; + }(c.Z), m = n2(3505), y = n2(6183); + function b(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function w(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? b(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : b(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + const x = a.ZP.extend({ defaults: w(w({}, a.ZP.prototype.defaults), {}, { type: "cell", tagName: "td", draggable: ["tr"] }) }, { isComponent: function(t3) { + return ["td", "th"].indexOf((0, y.toLowerCase)(t3.tagName)) >= 0; + } }), O = c.Z.extend({}); + function C(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function k(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? C(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : C(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + const S = a.ZP.extend({ defaults: k(k({}, a.ZP.prototype.defaults), {}, { tagName: "tr", draggable: ["thead", "tbody", "tfoot"], droppable: ["th", "td"] }) }, { isComponent: function(t3) { + return (0, y.toLowerCase)(t3.tagName) === "tr"; + } }), P = c.Z.extend({}); + function _(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function T(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? _(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : _(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + var E = "table"; + const j = a.ZP.extend({ defaults: T(T({}, a.ZP.prototype.defaults), {}, { type: E, tagName: E, droppable: ["tbody", "thead", "tfoot"] }), initialize: function(t3, e3) { + a.ZP.prototype.initialize.apply(this, arguments); + var n3 = this.get("components"); + !n3.length && n3.add({ type: "tbody" }); + } }, { isComponent: function(t3) { + return (0, y.toLowerCase)(t3.tagName) === E; + } }), D = c.Z.extend({ events: {} }); + function M(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function A(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? M(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : M(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + var L = "tbody"; + const R = a.ZP.extend({ defaults: A(A({}, a.ZP.prototype.defaults), {}, { type: L, tagName: L, draggable: ["table"], droppable: ["tr"], columns: 1, rows: 1 }), initialize: function(t3, e3) { + a.ZP.prototype.initialize.apply(this, arguments); + var n3 = this.get("components"), r3 = this.get("columns"), i2 = this.get("rows"); + if (!n3.length) { + for (var o2 = []; i2--; ) { + for (var s2 = [], l2 = r3; l2--; ) + s2.push({ type: "cell", classes: ["cell"] }); + o2.push({ type: "row", classes: ["row"], components: s2 }); + } + n3.add(o2); + } + } }, { isComponent: function(t3) { + return (0, y.toLowerCase)(t3.tagName) === L; + } }); + function N(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function Z(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? N(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : N(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + var I = "thead"; + const F = R.extend({ defaults: Z(Z({}, R.prototype.defaults), {}, { type: I, tagName: I }) }, { isComponent: function(t3) { + return (0, y.toLowerCase)(t3.tagName) === I; + } }), V = c.Z.extend({}), H = c.Z.extend({}); + function B(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function z(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? B(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : B(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + var U = "tfoot"; + const W = R.extend({ defaults: z(z({}, R.prototype.defaults), {}, { type: U, tagName: U }) }, { isComponent: function(t3) { + return (0, y.toLowerCase)(t3.tagName) === U; + } }), $ = c.Z.extend({}); + function q(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function G(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? q(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : q(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + var K = 'xmlns="http://www.w3.org/2000/svg" width="100" viewBox="0 0 24 24" style="fill: rgba(0,0,0,0.15); transform: scale(0.75)"'; + const Y = a.ZP.extend({ defaults: G(G({}, a.ZP.prototype.defaults), {}, { type: "image", tagName: "img", void: true, droppable: 0, editable: 1, highlightable: 0, resizable: { ratioDefault: 1 }, traits: ["alt"], src: "<svg ".concat(K, '>\n <path d="M8.5 13.5l2.5 3 3.5-4.5 4.5 6H5m16 1V5a2 2 0 0 0-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2z"></path>\n </svg>'), fallback: "<svg ".concat(K, '>\n <path d="M2.28 3L1 4.27l2 2V19c0 1.1.9 2 2 2h12.73l2 2L21 21.72 2.28 3m2.55 0L21 19.17V5a2 2 0 0 0-2-2H4.83M8.5 13.5l2.5 3 1-1.25L14.73 18H5l3.5-4.5z"></path>\n </svg>'), file: "" }), initialize: function(t3, e3) { + a.ZP.prototype.initialize.apply(this, arguments); + var n3 = this.get("attributes"), r3 = n3.src; + r3 && this.set("src", r3, { silent: 1 }); + }, initToolbar: function() { + for (var t3 = arguments.length, e3 = new Array(t3), n3 = 0; n3 < t3; n3++) + e3[n3] = arguments[n3]; + a.ZP.prototype.initToolbar.apply(this, e3); + var r3 = this.em; + if (r3) { + var i2 = r3.get("Commands"), o2 = "image-editor"; + if (i2.has(o2)) { + for (var s2 = false, l2 = this.get("toolbar"), c2 = 0; c2 < l2.length; c2++) + if (l2[c2].command === "image-editor") { + s2 = true; + break; + } + s2 || (l2.push({ attributes: { class: "fa fa-pencil" }, command: o2 }), this.set("toolbar", l2)); + } + } + }, getAttrToHTML: function() { + for (var t3 = arguments.length, e3 = new Array(t3), n3 = 0; n3 < t3; n3++) + e3[n3] = arguments[n3]; + var r3 = a.ZP.prototype.getAttrToHTML.apply(this, e3), i2 = this.getSrcResult(); + return i2 && (r3.src = i2), r3; + }, getSrcResult: function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e3 = this.get(t3.fallback ? "fallback" : "src") || "", n3 = e3; + return e3 && e3.substr(0, 4) === "<svg" && (n3 = "data:image/svg+xml;base64,".concat(window.btoa(e3))), n3; + }, isDefaultSrc: function() { + return this.get("src") === (0, o.result)(this, "defaults").src; + }, toJSON: function() { + for (var t3 = arguments.length, e3 = new Array(t3), n3 = 0; n3 < t3; n3++) + e3[n3] = arguments[n3]; + var r3 = a.ZP.prototype.toJSON.apply(this, e3); + return r3.attributes && r3.src === r3.attributes.src && delete r3.src, r3; + }, parseUri: function(t3) { + var e3 = document.createElement("a"); + e3.href = t3; + for (var n3 = {}, r3 = e3.search.substring(1).split("&"), i2 = 0; i2 < r3.length; i2++) { + var o2 = r3[i2].split("="), s2 = decodeURIComponent(o2[0]); + s2 && (n3[s2] = decodeURIComponent(o2[1])); + } + return { hostname: e3.hostname, pathname: e3.pathname, protocol: e3.protocol, search: e3.search, hash: e3.hash, port: e3.port, query: n3 }; + } }, { isComponent: function(t3) { + return (0, y.toLowerCase)(t3.tagName) === "img"; + } }); + function J(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function X(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? J(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : J(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + const Q = Y.extend({ defaults: X(X({}, Y.prototype.defaults), {}, { type: "map", src: "", void: 0, mapUrl: "https://maps.google.com/maps", tagName: "iframe", mapType: "q", address: "", zoom: "1", attributes: { frameborder: 0 }, toolbar: a.ZP.prototype.defaults.toolbar, traits: [{ label: "Address", name: "address", placeholder: "eg. London, UK", changeProp: 1 }, { type: "select", label: "Map type", name: "mapType", changeProp: 1, options: [{ value: "q", name: "Roadmap" }, { value: "w", name: "Satellite" }] }, { label: "Zoom", name: "zoom", type: "range", min: "1", max: "20", changeProp: 1 }] }), initialize: function(t3, e3) { + this.get("src") ? this.parseFromSrc() : this.updateSrc(), Y.prototype.initialize.apply(this, arguments), this.listenTo(this, "change:address change:zoom change:mapType", this.updateSrc); + }, updateSrc: function() { + this.set("src", this.getMapUrl()); + }, getMapUrl: function() { + var t3 = this, e3 = t3.get("address"), n3 = t3.get("zoom"), r3 = t3.get("mapType"); + e3 = e3 ? "&q=" + e3 : "", n3 = n3 ? "&z=" + n3 : "", r3 = r3 ? "&t=" + r3 : ""; + var i2 = t3.get("mapUrl") + "?" + e3 + n3 + r3; + return i2 += "&output=embed"; + }, parseFromSrc: function() { + var t3 = this.parseUri(this.get("src")).query; + t3.q && this.set("address", t3.q), t3.z && this.set("zoom", t3.z), t3.t && this.set("mapType", t3.t); + } }, { isComponent: function(t3) { + var e3 = ""; + return (0, y.toLowerCase)(t3.tagName) == "iframe" && /maps\.google\.com/.test(t3.src) && (e3 = { type: "map", src: t3.src }), e3; + } }); + n2(2316); + const tt = c.Z.extend({ tagName: "img", events: { dblclick: "onActive", click: "initResize", error: "onError", load: "onLoad", dragstart: "noDrag" }, initialize: function(t3) { + c.Z.prototype.initialize.apply(this, arguments), this.listenTo(this.model, "change:src", this.updateSrc), this.classEmpty = "".concat(this.ppfx, "plh-image"), this.fetchFile(); + }, fetchFile: function() { + if (!this.modelOpt.temporary) { + var t3 = this.model, e3 = this.em, n3 = t3.get("file"); + if (n3 && e3) { + var r3 = e3.get("AssetManager").FileUploader(); + r3 == null || r3.uploadFile({ dataTransfer: { files: [n3] } }, function(e4) { + var n4 = e4 && e4.data && e4.data[0], r4 = n4 && ((0, o.isString)(n4) ? n4 : n4.src); + r4 && t3.set({ src: r4 }); + }), t3.set("file", ""); + } + } + }, updateSrc: function() { + var t3 = this.model, e3 = this.classEmpty, n3 = this.$el, r3 = t3.getSrcResult(), i2 = r3 && !t3.isDefaultSrc(); + t3.addAttributes({ src: r3 }), n3[i2 ? "removeClass" : "addClass"](e3); + }, onActive: function(t3) { + t3 && t3.stopPropagation(); + var e3 = this.em, n3 = this.model, r3 = e3 && e3.get("AssetManager"); + r3 && n3.get("editable") && r3.open({ select: function(t4, e4) { + n3.set({ src: t4.getSrc() }), e4 && r3.close(); + }, target: n3, types: ["image"], accept: "image/*" }); + }, onError: function() { + var t3 = this.model.getSrcResult({ fallback: 1 }); + t3 && (this.el.src = t3); + }, onLoad: function() { + this.em.trigger("change:canvasOffset"); + }, noDrag: function(t3) { + return t3.preventDefault(), false; + }, render: function() { + if (this.renderAttributes(), this.modelOpt.temporary) + return this; + this.updateSrc(); + var t3 = this.$el, e3 = this.model, n3 = t3.attr("class") || ""; + return !e3.get("src") && t3.attr("class", "".concat(n3, " ").concat(this.classEmpty).trim()), this.postRender(), this; + } }), et = tt.extend({ tagName: "div", events: {}, initialize: function(t3) { + tt.prototype.initialize.apply(this, arguments), this.classEmpty = this.ppfx + "plh-map"; + }, updateSrc: function() { + this.getIframe().src = this.model.get("src"); + }, getIframe: function() { + if (!this.iframe) { + var t3 = document.createElement("iframe"); + t3.src = this.model.get("src"), t3.frameBorder = 0, t3.style.height = "100%", t3.style.width = "100%", t3.className = this.ppfx + "no-pointer", this.iframe = t3; + } + return this.iframe; + }, render: function() { + for (var t3 = arguments.length, e3 = new Array(t3), n3 = 0; n3 < t3; n3++) + e3[n3] = arguments[n3]; + return tt.prototype.render.apply(this, e3), this.updateClasses(), this.el.appendChild(this.getIframe()), this; + } }); + function nt(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function rt(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? nt(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : nt(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + function it(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, p.Z)(t3); + if (e3) { + var i2 = (0, p.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, d.Z)(this, n3); + }; + } + var ot = function(t3) { + (0, f.Z)(n3, t3); + var e3 = it(n3); + function n3() { + return (0, u.Z)(this, n3), e3.apply(this, arguments); + } + return (0, h.Z)(n3); + }(a.ZP); + function st(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function at(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? st(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : st(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + function lt(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, p.Z)(t3); + if (e3) { + var i2 = (0, p.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, d.Z)(this, n3); + }; + } + ot.prototype.defaults = rt(rt({}, a.ZP.getDefaults()), {}, { type: "text", droppable: false, editable: true }); + var ct = "link", ut = function(t3) { + (0, f.Z)(n3, t3); + var e3 = lt(n3); + function n3() { + return (0, u.Z)(this, n3), e3.apply(this, arguments); + } + return (0, h.Z)(n3); + }(ot); + ut.prototype.defaults = at(at({}, ot.getDefaults()), {}, { type: ct, tagName: "a", traits: ["title", "href", "target"] }), ut.isComponent = function(t3) { + var e3, n3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + if ((0, y.toLowerCase)(t3.tagName) === "a") { + var r3 = n3.textTags || []; + e3 = { type: ct, editable: false }; + var i2 = t3.childNodes, s2 = i2.length; + s2 || delete e3.editable, (0, o.forEach)(i2, function(t4) { + var n4 = t4.tagName; + (t4.nodeType == 3 && t4.textContent.trim() !== "" || n4 && r3.indexOf((0, y.toLowerCase)(n4)) >= 0) && delete e3.editable; + }); + } + return e3; + }; + var ht = n2(5861), ft = n2(7757), dt = n2.n(ft); + function pt(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function gt(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? pt(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : pt(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + var vt = c.Z.prototype; + const mt = c.Z.extend({ events: { dblclick: "onActive", input: "onInput" }, initialize: function(t3) { + vt.initialize.apply(this, arguments), (0, o.bindAll)(this, "disableEditing", "onDisable"); + var e3 = this.model, n3 = this.em; + this.listenTo(e3, "focus", this.onActive), this.listenTo(e3, "change:content", this.updateContentText), this.listenTo(e3, "sync:content", this.syncContent), this.rte = n3 && n3.get("RichTextEditor"); + }, updateContentText: function(t3, e3) { + var n3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + !n3.fromDisable && this.disableEditing(); + }, canActivate: function() { + var t3, e3 = this.model, n3 = this.rteEnabled, r3 = this.em, i2 = (r3 == null ? void 0 : r3.getEditing()) === e3, o2 = true, s2 = false; + if ((n3 || !e3.get("editable") || i2 || (s2 = e3.isChildOf("text"))) && (o2 = false, s2 && !e3.get("textable"))) { + for (var a2 = e3.parent(); a2 && !a2.isInstanceOf("text"); ) + a2 = a2.parent(); + a2 && a2.get("editable") ? t3 = a2 : o2 = true; + } + return { result: o2, delegate: t3 }; + }, onActive: function(t3) { + var e3 = this; + return (0, ht.Z)(dt().mark(function n3() { + var r3, i2, o2, s2, a2, l2, c2; + return dt().wrap(function(n4) { + for (; ; ) + switch (n4.prev = n4.next) { + case 0: + if (i2 = e3.rte, o2 = e3.em, s2 = e3.canActivate(), a2 = s2.result, l2 = s2.delegate, a2) { + n4.next = 5; + break; + } + return l2 && (t3 == null || (c2 = t3.stopPropagation) === null || c2 === void 0 || c2.call(t3), o2.setSelected(l2), l2.trigger("active", t3)), n4.abrupt("return"); + case 5: + if (t3 == null || (r3 = t3.stopPropagation) === null || r3 === void 0 || r3.call(t3), e3.lastContent = e3.getContent(), !i2) { + n4.next = 17; + break; + } + return n4.prev = 8, n4.next = 11, i2.enable(e3, e3.activeRte, { event: t3 }); + case 11: + e3.activeRte = n4.sent, n4.next = 17; + break; + case 14: + n4.prev = 14, n4.t0 = n4.catch(8), o2.logError(n4.t0); + case 17: + e3.toggleEvents(1); + case 18: + case "end": + return n4.stop(); + } + }, n3, null, [[8, 14]]); + }))(); + }, onDisable: function() { + this.disableEditing(); + }, disableEditing: function() { + var t3 = arguments, e3 = this; + return (0, ht.Z)(dt().mark(function n3() { + var r3, i2, o2, s2, a2, l2; + return dt().wrap(function(n4) { + for (; ; ) + switch (n4.prev = n4.next) { + case 0: + if (r3 = t3.length > 0 && t3[0] !== void 0 ? t3[0] : {}, i2 = e3.model, o2 = e3.rte, s2 = e3.activeRte, a2 = e3.em, l2 = i2 && i2.get("editable"), !o2) { + n4.next = 13; + break; + } + return n4.prev = 4, n4.next = 7, o2.disable(e3, s2); + case 7: + n4.next = 12; + break; + case 9: + n4.prev = 9, n4.t0 = n4.catch(4), a2.logError(n4.t0); + case 12: + l2 && e3.getContent() !== e3.lastContent && (e3.syncContent(r3), e3.lastContent = ""); + case 13: + e3.toggleEvents(); + case 14: + case "end": + return n4.stop(); + } + }, n3, null, [[4, 9]]); + }))(); + }, getContent: function() { + var t3 = this.activeRte; + return t3 && typeof t3.getContent == "function" ? t3.getContent() : this.getChildrenContainer().innerHTML; + }, syncContent: function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e3 = this.model, n3 = this.rte, r3 = this.rteEnabled; + if (r3 || t3.force) { + var i2 = this.getContent(), o2 = e3.components(), s2 = gt({ fromDisable: 1 }, t3); + e3.set("content", "", s2), n3.customRte ? (o2.length && o2.reset(null, t3), e3.set("content", i2, s2)) : o2.resetFromString(i2, t3); + } + }, insertComponent: function(t3) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n3 = this.model, r3 = this.el, i2 = r3.ownerDocument, o2 = i2.getSelection(); + if (o2 != null && o2.rangeCount) { + var s2, a2 = o2.getRangeAt(0), l2 = a2.startContainer, c2 = a2.startOffset, u2 = (0, y.getModel)(l2), h2 = []; + if (u2 && (s2 = u2.is) !== null && s2 !== void 0 && s2.call(u2, "textnode")) { + var f2 = u2.collection; + f2.forEach(function(e4) { + if (e4 === u2) { + var n4 = "textnode", r4 = e4.get("content"); + h2.push({ type: n4, content: r4.slice(0, c2) }), h2.push(t3), h2.push({ type: n4, content: r4.slice(c2) }); + } else + h2.push(e4); + }); + var d2 = h2.filter(Boolean), p2 = d2.indexOf(t3); + return f2.reset(d2, e3), f2.at(p2); + } + } + return n3.append(t3, e3); + }, onInput: function() { + var t3 = this.em, e3 = "component", n3 = ["".concat(e3, ":update"), "".concat(e3, ":input")].join(" "); + t3 && t3.trigger(n3, this.model); + }, disablePropagation: function(t3) { + t3.stopPropagation(); + }, toggleEvents: function(t3) { + var e3 = this.em, n3 = this.model, r3 = this.$el, i2 = { on: y.on, off: y.off }, o2 = t3 ? "on" : "off"; + e3.setEditing(t3 ? this : 0), this.rteEnabled = !!t3; + var s2 = [this.el.ownerDocument, document]; + if (i2.off(s2, "mousedown", this.onDisable), i2[o2](s2, "mousedown", this.onDisable), e3[o2]("toolbar:run:before", this.onDisable), n3 && (n3[o2]("removed", this.onDisable), n3.trigger("rte:".concat(t3 ? "enable" : "disable"))), r3 && r3.off("mousedown", this.disablePropagation), r3 && r3[o2]("mousedown", this.disablePropagation), this.config.draggableComponents) + for (var a2 = this.el; a2; ) + a2.draggable = !t3, (a2 = a2.parentNode) && a2.tagName == "BODY" && (a2 = 0); + } }), yt = mt.extend({ render: function() { + for (var t3 = arguments.length, e3 = new Array(t3), n3 = 0; n3 < t3; n3++) + e3[n3] = arguments[n3]; + return mt.prototype.render.apply(this, e3), this.el.addEventListener("click", this.prevDef, true), this; + } }); + function bt(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function wt(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? bt(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : bt(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + var xt = "label"; + const Ot = ot.extend({ defaults: wt(wt({}, ot.prototype.defaults), {}, { type: xt, tagName: xt, traits: ["id", "title", "for"] }) }, { isComponent: function(t3) { + return (0, y.toLowerCase)(t3.tagName) === xt; + } }), Ct = yt.extend({ tagName: "span" }); + function kt(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function St(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? kt(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : kt(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + var Pt = "video", _t = "yt", Tt = "vi", Et = "ytnc"; + const jt = Y.extend({ defaults: St(St({}, Y.prototype.defaults), {}, { type: Pt, tagName: Pt, videoId: "", void: 0, provider: "so", ytUrl: "https://www.youtube.com/embed/", ytncUrl: "https://www.youtube-nocookie.com/embed/", viUrl: "https://player.vimeo.com/video/", loop: 0, poster: "", muted: 0, autoplay: 0, controls: 1, color: "", list: "", rel: 1, modestbranding: 0, sources: [], attributes: { allowfullscreen: "allowfullscreen" } }), initialize: function(t3, e3) { + this.em = e3.em, this.get("src") && this.parseFromSrc(), this.updateTraits(), this.listenTo(this, "change:provider", this.updateTraits), this.listenTo(this, "change:videoId change:provider", this.updateSrc), Y.prototype.initialize.apply(this, arguments); + }, updateTraits: function() { + var t3, e3 = "iframe"; + switch (this.get("provider")) { + case _t: + case Et: + t3 = this.getYoutubeTraits(); + break; + case Tt: + t3 = this.getVimeoTraits(); + break; + default: + e3 = "video", t3 = this.getSourceTraits(); + } + this.set({ tagName: e3 }, { silent: 1 }), this.set({ traits: t3 }), this.em.trigger("component:toggled"); + }, parseFromSrc: function() { + var t3 = this.get("provider"), e3 = this.parseUri(this.get("src")), n3 = e3.query; + switch (t3) { + case _t: + case Et: + case Tt: + var r3 = e3.pathname.split("/").pop(); + this.set("videoId", r3), n3.list && this.set("list", n3.list), n3.autoplay && this.set("autoplay", 1), n3.loop && this.set("loop", 1), parseInt(n3.controls) === 0 && this.set("controls", 0), n3.color && this.set("color", n3.color), n3.rel === "0" && this.set("rel", 0), n3.modestbranding === "1" && this.set("modestbranding", 1); + } + }, updateSrc: function() { + var t3 = ""; + switch (this.get("provider")) { + case _t: + t3 = this.getYoutubeSrc(); + break; + case Et: + t3 = this.getYoutubeNoCookieSrc(); + break; + case Tt: + t3 = this.getVimeoSrc(); + } + this.set({ src: t3 }); + }, getAttrToHTML: function() { + for (var t3 = arguments.length, e3 = new Array(t3), n3 = 0; n3 < t3; n3++) + e3[n3] = arguments[n3]; + var r3 = Y.prototype.getAttrToHTML.apply(this, e3), i2 = this.get("provider"); + switch (i2) { + case _t: + case Et: + case Tt: + break; + default: + this.get("loop") && (r3.loop = "loop"), this.get("autoplay") && (r3.autoplay = "autoplay"), this.get("controls") && (r3.controls = "controls"); + } + return r3; + }, getProviderTrait: function() { + return { type: "select", label: "Provider", name: "provider", changeProp: 1, options: [{ value: "so", name: "HTML5 Source" }, { value: _t, name: "Youtube" }, { value: Et, name: "Youtube (no cookie)" }, { value: Tt, name: "Vimeo" }] }; + }, getSourceTraits: function() { + return [this.getProviderTrait(), { label: "Source", name: "src", placeholder: "eg. ./media/video.mp4", changeProp: 1 }, { label: "Poster", name: "poster", placeholder: "eg. ./media/image.jpg" }, this.getAutoplayTrait(), this.getLoopTrait(), this.getControlsTrait()]; + }, getYoutubeTraits: function() { + return [this.getProviderTrait(), { label: "Video ID", name: "videoId", placeholder: "eg. jNQXAC9IVRw", changeProp: 1 }, this.getAutoplayTrait(), this.getLoopTrait(), this.getControlsTrait(), { type: "checkbox", label: "Related", name: "rel", changeProp: 1 }, { type: "checkbox", label: "Modest", name: "modestbranding", changeProp: 1 }]; + }, getVimeoTraits: function() { + return [this.getProviderTrait(), { label: "Video ID", name: "videoId", placeholder: "eg. 123456789", changeProp: 1 }, { label: "Color", name: "color", placeholder: "eg. FF0000", changeProp: 1 }, this.getAutoplayTrait(), this.getLoopTrait()]; + }, getAutoplayTrait: function() { + return { type: "checkbox", label: "Autoplay", name: "autoplay", changeProp: 1 }; + }, getLoopTrait: function() { + return { type: "checkbox", label: "Loop", name: "loop", changeProp: 1 }; + }, getControlsTrait: function() { + return { type: "checkbox", label: "Controls", name: "controls", changeProp: 1 }; + }, getYoutubeSrc: function() { + var t3 = this.get("videoId"), e3 = this.get("ytUrl"), n3 = this.get("list"); + return e3 += t3 + (t3.indexOf("?") < 0 ? "?" : ""), e3 += n3 ? "&list=".concat(n3) : "", e3 += this.get("autoplay") ? "&autoplay=1" : "", e3 += this.get("controls") ? "" : "&controls=0&showinfo=0", e3 += this.get("loop") ? "&loop=1&playlist=".concat(t3) : "", e3 += this.get("rel") ? "" : "&rel=0", e3 += this.get("modestbranding") ? "&modestbranding=1" : ""; + }, getYoutubeNoCookieSrc: function() { + var t3 = this.getYoutubeSrc(); + return t3 = t3.replace(this.get("ytUrl"), this.get("ytncUrl")); + }, getVimeoSrc: function() { + var t3 = this.get("viUrl"); + return t3 += this.get("videoId") + "?", t3 += this.get("autoplay") ? "&autoplay=1" : "", t3 += this.get("loop") ? "&loop=1" : "", t3 += this.get("controls") ? "" : "&title=0&portrait=0&badge=0", t3 += this.get("color") ? "&color=" + this.get("color") : ""; + } }, { isComponent: function(t3) { + var e3 = "", n3 = t3.tagName, r3 = t3.src, i2 = /youtube\.com\/embed/.test(r3), o2 = /youtube-nocookie\.com\/embed/.test(r3), s2 = /player\.vimeo\.com\/video/.test(r3), a2 = i2 || o2 || s2; + return ((0, y.toLowerCase)(n3) == Pt || (0, y.toLowerCase)(n3) == "iframe" && a2) && (e3 = { type: "video" }, r3 && (e3.src = r3), a2 && (i2 ? e3.provider = _t : o2 ? e3.provider = Et : s2 && (e3.provider = Tt))), e3; + } }), Dt = tt.extend({ tagName: "div", events: {}, initialize: function(t3) { + c.Z.prototype.initialize.apply(this, arguments); + var e3 = this.model, n3 = ["loop", "autoplay", "controls", "color", "rel", "modestbranding", "poster"], r3 = n3.map(function(t4) { + return "change:".concat(t4); + }).join(" "); + this.listenTo(e3, "change:provider", this.updateProvider), this.listenTo(e3, "change:src", this.updateSrc), this.listenTo(e3, r3, this.updateVideo); + }, updateProvider: function() { + var t3 = this.model.get("provider"); + this.el.innerHTML = "", this.el.appendChild(this.renderByProvider(t3)); + }, updateSrc: function() { + var t3 = this.model, e3 = this.videoEl; + if (e3) { + var n3 = t3.get("provider"), r3 = t3.get("src"); + switch (n3) { + case "yt": + r3 = t3.getYoutubeSrc(); + break; + case "ytnc": + r3 = t3.getYoutubeNoCookieSrc(); + break; + case "vi": + r3 = t3.getVimeoSrc(); + } + e3.src = r3; + } + }, updateVideo: function() { + var t3 = this.model.get("provider"), e3 = this.videoEl, n3 = this.model; + switch (t3) { + case "yt": + case "ytnc": + case "vi": + this.model.trigger("change:videoId"); + break; + default: + e3.loop = n3.get("loop"), e3.autoplay = n3.get("autoplay"), e3.controls = n3.get("controls"), e3.poster = n3.get("poster"); + } + }, renderByProvider: function(t3) { + var e3; + switch (t3) { + case "yt": + e3 = this.renderYoutube(); + break; + case "ytnc": + e3 = this.renderYoutubeNoCookie(); + break; + case "vi": + e3 = this.renderVimeo(); + break; + default: + e3 = this.renderSource(); + } + return this.videoEl = e3, e3; + }, renderSource: function() { + var t3 = document.createElement("video"); + return t3.src = this.model.get("src"), this.initVideoEl(t3), t3; + }, renderYoutube: function() { + var t3 = document.createElement("iframe"); + return t3.src = this.model.getYoutubeSrc(), t3.frameBorder = 0, t3.setAttribute("allowfullscreen", true), this.initVideoEl(t3), t3; + }, renderYoutubeNoCookie: function() { + var t3 = document.createElement("iframe"); + return t3.src = this.model.getYoutubeNoCookieSrc(), t3.frameBorder = 0, t3.setAttribute("allowfullscreen", true), this.initVideoEl(t3), t3; + }, renderVimeo: function() { + var t3 = document.createElement("iframe"); + return t3.src = this.model.getVimeoSrc(), t3.frameBorder = 0, t3.setAttribute("allowfullscreen", true), this.initVideoEl(t3), t3; + }, initVideoEl: function(t3) { + t3.className = this.ppfx + "no-pointer", t3.style.height = "100%", t3.style.width = "100%"; + }, render: function() { + for (var t3 = arguments.length, e3 = new Array(t3), n3 = 0; n3 < t3; n3++) + e3[n3] = arguments[n3]; + tt.prototype.render.apply(this, e3), this.updateClasses(); + var r3 = this.model.get("provider"); + return this.el.appendChild(this.renderByProvider(r3)), this.updateVideo(), this; + } }); + function Mt(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function At(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? Mt(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : Mt(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + var Lt = "script"; + const Rt = a.ZP.extend({ defaults: At(At({}, a.ZP.prototype.defaults), {}, { type: Lt, tagName: Lt, droppable: false, draggable: false, layerable: false }) }, { isComponent: function(t3) { + if ((0, y.toLowerCase)(t3.tagName) == Lt) { + var e3 = { type: Lt }; + return t3.src && (e3.src = t3.src, e3.onload = t3.onload), e3; + } + } }), Nt = tt.extend({ tagName: "script", events: {}, render: function() { + var t3 = this.model, e3 = this.em, n3 = t3.get("src"), r3 = e3 && e3.get("scriptCount"), i2 = r3 || 0, o2 = ""; + if (n3) { + var s2 = t3.get("onload"), a2 = "script".concat(i2), l2 = "script".concat(i2 + 1), c2 = "".concat(a2, "Start"), u2 = "".concat(l2, "Start"); + o2 = "\n var ".concat(a2, " = document.createElement('script');\n ").concat(a2, ".onload = function() {\n ").concat(s2 ? "".concat(s2, "();\n") : "", "\n typeof ").concat(u2, " == 'function' && ").concat(u2, "();\n };\n ").concat(a2, ".src = '").concat(n3, "';\n function ").concat(c2, "() { document.body.appendChild(").concat(a2, "); };\n ").concat(i2 ? "" : "".concat(c2, "();"), "\n "), e3 && e3.set("scriptCount", i2 + 1); + } else + o2 = t3.__innerHTML(); + return this.el.innerHTML = o2, this.postRender(), this; + } }); + function Zt(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function It(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? Zt(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : Zt(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + var Ft = "svg"; + const Vt = a.ZP.extend({ defaults: It(It({}, a.ZP.prototype.defaults), {}, { type: Ft, tagName: Ft, highlightable: 0, resizable: { ratioDefault: 1 } }), getName: function() { + var t3 = this.get("tagName"), e3 = this.get("custom-name"); + return t3 = t3.charAt(0).toUpperCase() + t3.slice(1), e3 || t3; + } }, { isComponent: function(t3) { + return (0, y.toLowerCase)(t3.tagName) === Ft; + } }); + function Ht(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function Bt(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? Ht(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : Ht(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + const zt = Vt.extend({ defaults: Bt(Bt({}, Vt.prototype.defaults), {}, { selectable: false, hoverable: false, layerable: false }) }, { isComponent: function(t3) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + return !!e3.inSvg; + } }), Ut = c.Z.extend({ _createElement: function(t3) { + return document.createElementNS("http://www.w3.org/2000/svg", t3); + } }); + function Wt(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function $t(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? Wt(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : Wt(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + const qt = a.ZP.extend({ defaults: $t($t({}, a.ZP.prototype.defaults), {}, { tagName: "", droppable: false, layerable: false, selectable: false, editable: true }), toHTML: function() { + var t3 = this.parent(), e3 = this.get("content"); + return t3 && t3.is("script") ? e3 : (0, y.escape)(e3); + } }, { isComponent: function(t3) { + var e3 = ""; + return t3.nodeType === 3 && (e3 = { type: "textnode", content: t3.textContent }), e3; + } }); + function Gt(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + const Kt = qt.extend({ defaults: function(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? Gt(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : Gt(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + }({}, qt.prototype.defaults), toHTML: function() { + return "<!--".concat(this.get("content"), "-->"); + } }, { isComponent: function(t3) { + if (t3.nodeType == 8) + return { tagName: "NULL", type: "comment", content: t3.textContent }; + } }), Yt = c.Z.extend({ initialize: function() { + c.Z.prototype.initialize.apply(this, arguments); + }, _setAttributes: function() { + }, renderAttributes: function() { + }, updateStatus: function() { + }, updateClasses: function() { + }, setAttribute: function() { + }, updateAttributes: function() { + }, initClasses: function() { + }, initComponents: function() { + }, delegateEvents: function() { + }, _createElement: function() { + return document.createTextNode(""); + }, render: function() { + var t3 = this.model, e3 = this.el; + return t3.opt.temporary || (e3.textContent = t3.get("content")), this; + } }), Jt = Yt.extend({ _createElement: function() { + return document.createComment(this.model.get("content")); + } }); + function Xt(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function Qt(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? Xt(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : Xt(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + function te(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, p.Z)(t3); + if (e3) { + var i2 = (0, p.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, d.Z)(this, n3); + }; + } + var ee = function(t3) { + (0, f.Z)(n3, t3); + var e3 = te(n3); + function n3() { + return (0, u.Z)(this, n3), e3.apply(this, arguments); + } + return (0, h.Z)(n3, [{ key: "defaults", value: function() { + return Qt(Qt({}, a.ZP.getDefaults()), {}, { tagName: "body", removable: false, copyable: false, draggable: false, components: [], traits: [], stylable: ["background", "background-color", "background-image", "background-repeat", "background-attachment", "background-position", "background-size"] }); + } }, { key: "__postAdd", value: function() { + var t4 = this.em && this.em.get("UndoManager"); + return t4 && !this.__hasUm && t4.add(this), a.ZP.prototype.__postAdd.call(this, arguments); + } }, { key: "__postRemove", value: function() { + var t4 = this.em && this.em.get("UndoManager"); + return t4 && t4.remove(this), a.ZP.prototype.__postRemove.call(this, arguments); + } }]), n3; + }(a.ZP); + function ne(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function re(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? ne(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : ne(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + ee.isComponent = function() { + return false; + }; + var ie = "iframe"; + const oe = a.ZP.extend({ defaults: function() { + return re(re({}, a.ZP.prototype.defaults), {}, { type: ie, tagName: ie, droppable: false, resizable: true, traits: ["id", "title", "src"], attributes: { frameborder: "0" } }); + } }, { isComponent: function(t3) { + return (0, y.toLowerCase)(t3.tagName) === ie; + } }); + var se = n2(9283); + const ae = c.Z.extend({ tagName: "div", initialize: function() { + for (var t3 = arguments.length, e3 = new Array(t3), n3 = 0; n3 < t3; n3++) + e3[n3] = arguments[n3]; + c.Z.prototype.initialize.apply(this, e3), this.listenTo(this.model, "change:attributes:src", this.updateSrc); + }, updateSrc: function() { + var t3 = (0, se.sE)(this.el, "iframe")[0]; + t3 && (0, se.FW)(t3, { src: this.__getSrc() }); + }, render: function() { + for (var t3 = arguments.length, e3 = new Array(t3), n3 = 0; n3 < t3; n3++) + e3[n3] = arguments[n3]; + c.Z.prototype.render.apply(this, e3); + var r3 = (0, se.ut)("iframe", { class: "".concat(this.ppfx, "no-pointer"), style: "width: 100%; height: 100%; border: none", src: this.__getSrc() }); + return this.el.appendChild(r3), this; + }, __getSrc: function() { + return this.model.getAttributes().src || ""; + } }); + function le(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function ce(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? le(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : le(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + const ue = function() { + var t3, e3, n3, r3 = {}, u2 = {}, h2 = [{ id: "cell", model: x, view: O }, { id: "row", model: S, view: P }, { id: "table", model: j, view: D }, { id: "thead", model: F, view: V }, { id: "tbody", model: R, view: H }, { id: "tfoot", model: W, view: $ }, { id: "map", model: Q, view: et }, { id: "link", model: ut, view: yt }, { id: "label", model: Ot, view: Ct }, { id: "video", model: jt, view: Dt }, { id: "image", model: Y, view: tt }, { id: "script", model: Rt, view: Nt }, { id: "svg-in", model: zt, view: Ut }, { id: "svg", model: Vt, view: Ut }, { id: "iframe", model: oe, view: ae }, { id: "comment", model: Kt, view: Jt }, { id: "textnode", model: qt, view: Yt }, { id: "text", model: ot, view: mt }, { id: "wrapper", model: ee, view: v }, { id: "default", model: a.ZP, view: c.Z }]; + return { Component: a.ZP, Components: l.Z, ComponentsView: m.Z, componentTypes: h2, componentsById: u2, name: "DomComponents", getConfig: function() { + return r3; + }, storageKey: function() { + var t4 = [], e4 = r3.stm && r3.stm.getConfig() || {}; + return e4.storeHtml && t4.push("html"), e4.storeComponents && t4.push("components"), t4; + }, init: function(e4) { + var n4 = this; + for (var i2 in t3 = (r3 = e4 || {}).em, this.em = t3, t3 && (r3.components = t3.config.components || r3.components), s) + i2 in r3 || (r3[i2] = s[i2]); + var o2 = r3.pStylePrefix; + if (o2 && (r3.stylePrefix = o2 + r3.stylePrefix), t3) { + r3.modal = t3.get("Modal") || "", r3.am = t3.get("AssetManager") || "", t3.get("Parser").compTypes = h2, t3.on("change:componentHovered", this.componentHovered, this); + var a2 = t3.get("selected"); + t3.listenTo(a2, "add", function(t4, e5, r4) { + return n4.selectAdd(a2.getComponent(t4), r4); + }), t3.listenTo(a2, "remove", function(t4, e5, r4) { + return n4.selectRemove(a2.getComponent(t4), r4); + }); + } + return t3.get("hasPages") && (r3.components = ""), this; + }, onLoad: function() { + r3.components && this.setComponents(r3.components, { silent: 1 }); + }, load: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", e4 = this.em, n4 = ""; + !t4 && r3.stm && (t4 = r3.em.getCacheLoad()); + var i2 = t4, s2 = i2.components, a2 = i2.html; + if (s2) + if ((0, o.isObject)(s2) || (0, o.isArray)(s2)) + n4 = s2; + else + try { + n4 = JSON.parse(s2); + } catch (t5) { + e4 && e4.logError(t5); + } + else + a2 && (n4 = a2); + var l2 = n4 && n4.constructor === Object; + return (n4 && n4.length || l2) && (this.clear(), l2 ? this.getWrapper().set(n4) : this.getComponents().add(n4)), n4; + }, store: function(t4) { + if (!r3.stm || this.em.get("hasPages")) + return {}; + var e4 = {}, n4 = this.storageKey(); + if (n4.indexOf("html") >= 0 && (e4.html = r3.em.getHtml()), n4.indexOf("components") >= 0) { + var i2 = r3.storeWrapper ? this.getWrapper() : this.getComponents(); + e4.components = JSON.stringify(i2); + } + return t4 || r3.stm.store(e4), e4; + }, getComponent: function() { + var t4 = this.em.get("PageManager").getSelected(), e4 = t4 && t4.getMainFrame(); + return e4 && e4.getComponent(); + }, getWrapper: function() { + return this.getComponent(); + }, getComponents: function() { + var t4 = this.getWrapper(); + return t4 && t4.get("components"); + }, addComponent: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + return this.getComponents().add(t4, e4); + }, render: function() { + return n3.render().el; + }, clear: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + return this.getComponents().map(function(t5) { + return t5; + }).forEach(function(e4) { + return e4.remove(t4); + }), this; + }, setComponents: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + this.clear(e4).addComponent(t4, e4); + }, addType: function(t4, e4) { + var n4 = this.em, r4 = e4.model, s2 = r4 === void 0 ? {} : r4, a2 = e4.view, l2 = a2 === void 0 ? {} : a2, c2 = e4.isComponent, u3 = e4.extend, f2 = e4.extendView, d2 = e4.extendFn, p2 = d2 === void 0 ? [] : d2, g2 = e4.extendFnView, v2 = g2 === void 0 ? [] : g2, m2 = this.getType(t4), y2 = this.getType(u3), b2 = this.getType(f2), w2 = y2 || (m2 || this.getType("default")), x2 = w2.model, O2 = b2 ? b2.view : w2.view, C2 = function(t5, e5, n5) { + return t5.reduce(function(t6, r5) { + var i2 = e5[r5], o2 = n5.prototype[r5]; + return i2 && o2 && (t6[r5] = function() { + o2.bind(this).apply(void 0, arguments), i2.bind(this).apply(void 0, arguments); + }), t6; + }, {}); + }; + (0, i.Z)(s2) === "object" && (e4.model = x2.extend(ce(ce(ce({}, s2), C2(p2, s2, x2)), {}, { defaults: ce(ce({}, (0, o.result)(x2.prototype, "defaults") || {}), (0, o.result)(s2, "defaults") || {}) }), { isComponent: !m2 || y2 || c2 ? c2 || function() { + return 0; + } : x2.isComponent })), (0, i.Z)(l2) === "object" && (e4.view = O2.extend(ce(ce({}, l2), C2(v2, l2, O2)))), m2 ? (m2.model = e4.model, m2.view = e4.view) : (e4.id = t4, h2.unshift(e4)); + var k2 = "component:type:".concat(m2 ? "update" : "add"); + return n4 && n4.trigger(k2, m2 || e4), this; + }, getType: function(t4) { + for (var e4 = h2, n4 = 0; n4 < e4.length; n4++) { + if (e4[n4].id == t4) + return e4[n4]; + } + }, removeType: function(t4) { + var e4 = h2, n4 = this.getType(t4); + if (n4) { + var r4 = e4.indexOf(n4); + return e4.splice(r4, 1), n4; + } + }, getTypes: function() { + return h2; + }, selectAdd: function(t4) { + var e4 = this, n4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + t4 && (t4.set({ status: "selected" }), ["component:selected", "component:toggled"].forEach(function(r4) { + return e4.em.trigger(r4, t4, n4); + })); + }, selectRemove: function(t4) { + var e4 = this, n4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + if (t4) { + this.em; + t4.set({ status: "", state: "" }), ["component:deselected", "component:toggled"].forEach(function(r4) { + return e4.em.trigger(r4, t4, n4); + }); + } + }, componentHovered: function() { + var t4 = r3.em, e4 = t4.get("componentHovered"), n4 = t4.previous("componentHovered"), i2 = "hovered"; + n4 && n4.get("status") == i2 && n4.set({ status: "", state: "" }), e4 && (0, o.isEmpty)(e4.get("status")) && e4.set("status", i2); + }, getShallowWrapper: function() { + var t4 = this.shallow, e4 = this.em; + if (!t4 && e4) { + var n4 = e4.get("shallow"); + if (!n4) + return; + var r4 = n4.get("DomComponents"); + if (r4.componentTypes = this.componentTypes, t4 = r4.getWrapper()) { + var i2 = [a.GN, a.xH].join(" "); + t4.on(i2, (0, o.debounce)(function() { + return t4.components(""); + }, 100)); + } + this.shallow = t4; + } + return t4; + }, canMove: function(t4, e4, n4) { + var r4 = n4 || n4 === 0 ? n4 : null, i2 = { result: false, reason: 0, target: t4, source: null }; + if (!e4) + return i2; + var s2 = e4 != null && e4.toHTML ? e4 : null; + if (!s2) { + var a2 = this.getShallowWrapper(); + s2 = a2 == null ? void 0 : a2.append(e4)[0]; + } + if (i2.source = s2, !s2) + return i2; + var l2 = s2.get("draggable"); + if ((0, o.isFunction)(l2)) + l2 = !!l2(s2, t4, r4); + else { + var c2 = t4.getEl(); + l2 = (0, o.isArray)(l2) ? l2.join(",") : l2, l2 = (0, o.isString)(l2) ? c2 == null ? void 0 : c2.matches(l2) : l2; + } + if (!l2) + return ce(ce({}, i2), {}, { reason: 1 }); + var u3 = t4.get("droppable"); + if ((0, o.isFunction)(u3)) + u3 = !!u3(s2, t4, r4); + else if (u3 === false && t4.isInstanceOf("text") && s2.get("textable")) + u3 = true; + else { + var h3 = s2.getEl(); + u3 = (0, o.isArray)(u3) ? u3.join(",") : u3, u3 = (0, o.isString)(u3) ? h3 == null ? void 0 : h3.matches(u3) : u3; + } + return ce(ce({}, i2), {}, u3 ? { result: true } : { reason: 2 }); + }, allById: function() { + return u2; + }, getById: function(t4) { + return u2[t4] || null; + }, destroy: function() { + var i2 = this.allById(); + Object.keys(i2).forEach(function(t4) { + return i2[t4] && i2[t4].remove(); + }), n3 && n3.remove(), [r3, t3, u2, e3, n3].forEach(function(t4) { + return {}; + }), this.em = {}; + } }; + }; + }, 9138: (t2, e2, n2) => { + "use strict"; + n2.d(e2, { ZP: () => Z, OA: () => D, GN: () => R, xH: () => N }); + var r2 = n2(1002), i = n2(2982), o = n2(885), s = n2(4942), a = n2(5671), l = n2(3144), c = n2(9340), u = n2(3930), h = n2(1120), f = n2(9050), d = n2(6183), p = n2(3345), g = n2(2316), v = n2(8431), m = n2(8490), y = n2(4293); + function b(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function w(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? b(Object(n3), true).forEach(function(e4) { + (0, s.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : b(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + function x(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, h.Z)(t3); + if (e3) { + var i2 = (0, h.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, u.Z)(this, n3); + }; + } + var O = function(t3) { + (0, c.Z)(n3, t3); + var e3 = x(n3); + function n3() { + return (0, a.Z)(this, n3), e3.apply(this, arguments); + } + return (0, l.Z)(n3, [{ key: "initialize", value: function() { + var t4 = this.attributes, e4 = t4.target, n4 = t4.name, r3 = t4.changeProp; + if (!this.get("id") && this.set("id", n4), e4) { + this.target = e4, this.unset("target"); + var i2 = r3 ? "change:".concat(n4) : "change:attributes:".concat(n4); + this.listenTo(e4, i2, this.targetUpdated); + } + } }, { key: "getId", value: function() { + return this.get("id"); + } }, { key: "getType", value: function() { + return this.get("type"); + } }, { key: "getName", value: function() { + return this.get("name"); + } }, { key: "getLabel", value: function() { + var t4, e4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n4 = e4.locale, r3 = n4 === void 0 || n4, i2 = this.getId(), o2 = this.get("label") || this.getName(); + return r3 && ((t4 = this.em) === null || t4 === void 0 ? void 0 : t4.t("traitManager.traits.labels.".concat(i2))) || o2; + } }, { key: "getValue", value: function() { + return this.getTargetValue(); + } }, { key: "setValue", value: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n4 = {}; + e4.partial && (n4.avoidStore = true), this.setTargetValue(t4, n4), e4.partial === false && (this.setTargetValue(""), this.setTargetValue(t4)); + } }, { key: "props", value: function() { + return this.attributes; + } }, { key: "targetUpdated", value: function() { + var t4, e4 = this.getTargetValue(); + this.set({ value: e4 }, { fromTarget: 1 }), (t4 = this.em) === null || t4 === void 0 || t4.trigger("trait:update", { trait: this, component: this.target }); + } }, { key: "getTargetValue", value: function() { + var t4, e4 = this.get("name"), n4 = this.target; + return t4 = this.get("changeProp") ? n4.get(e4) : n4.getAttributes()[e4], (0, f.isUndefined)(t4) ? "" : t4; + } }, { key: "setTargetValue", value: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n4 = this.target, r3 = this.get("name"); + if (!(0, f.isUndefined)(t4)) { + var i2 = t4; + if (t4 === "false" ? i2 = false : t4 === "true" && (i2 = true), this.get("changeProp")) + n4.set(r3, i2, e4); + else { + var o2 = w({}, n4.get("attributes")); + o2[r3] = i2, n4.set("attributes", o2, e4); + } + } + } }, { key: "setValueFromInput", value: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1, n4 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r3 = { value: t4 }; + this.set(r3, w(w({}, n4), {}, { avoidStore: 1 })), e4 && (this.set("value", "", n4), this.set(r3, n4)); + } }, { key: "getInitValue", value: function() { + var t4, e4 = this.target, n4 = this.get("name"); + if (e4) { + var r3 = e4.get("attributes"); + t4 = this.get("changeProp") ? e4.get(n4) : r3[n4]; + } + return t4 || this.get("value") || this.get("default"); + } }]), n3; + }(g.Model); + O.prototype.defaults = { type: "text", label: "", name: "", min: "", max: "", unit: "", step: 1, value: "", target: "", default: "", placeholder: "", changeProp: 0, options: [] }; + function C(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, h.Z)(t3); + if (e3) { + var i2 = (0, h.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, u.Z)(this, n3); + }; + } + var k, S = function(t3) { + (0, c.Z)(n3, t3); + var e3 = C(n3); + function n3() { + return (0, a.Z)(this, n3), e3.apply(this, arguments); + } + return (0, l.Z)(n3, [{ key: "initialize", value: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + this.em = e4.em, this.listenTo(this, "add", this.handleAdd), this.listenTo(this, "reset", this.handleReset); + } }, { key: "handleReset", value: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n4 = e4.previousModels, r3 = n4 === void 0 ? [] : n4; + r3.forEach(function(t5) { + return t5.trigger("remove"); + }); + } }, { key: "handleAdd", value: function(t4) { + t4.em = this.em; + var e4 = this.target; + e4 && (t4.target = e4); + } }, { key: "setTarget", value: function(t4) { + this.target = t4; + } }, { key: "add", value: function(t4, e4) { + var n4 = this.em; + if ((0, f.isString)(t4) || (0, f.isArray)(t4)) { + var r3 = n4 && n4.get && n4.get("TraitManager"), i2 = function() { + var t5 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + return { build: function(e5) { + var n5 = []; + typeof e5 == "string" && (e5 = [e5]); + for (var r4 = 0; r4 < e5.length; r4++) { + var i3 = {}, o3 = e5[r4]; + i3.name = o3, o3 === "target" && (i3.type = "select", i3.default = false, i3.options = t5.optionsTarget), n5.push(i3); + } + return n5; + } }; + }(r3 && r3.getConfig()); + (0, f.isString)(t4) && (t4 = [t4]); + for (var o2 = 0, s2 = t4.length; o2 < s2; o2++) { + var a2 = t4[o2], l2 = (0, f.isString)(a2) ? i2.build(a2)[0] : a2; + l2.target = this.target, t4[o2] = l2; + } + } + return g.Collection.prototype.add.apply(this, [t4, e4]); + } }]), n3; + }(g.Collection); + function P(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function _(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? P(Object(n3), true).forEach(function(e4) { + (0, s.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : P(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + function T(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, h.Z)(t3); + if (e3) { + var i2 = (0, h.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, u.Z)(this, n3); + }; + } + S.prototype.model = O; + var E = function(t3) { + return t3.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&"); + }, j = function(t3) { + return t3 && t3.getConfig("avoidInlineStyle"); + }, D = "component:drag", M = "__symbols", A = "__symbol", L = "__symbol_ovrd", R = "component:update", N = "".concat(R, "-inside"), Z = function(t3) { + (0, c.Z)(n3, t3); + var e3 = T(n3); + function n3() { + return (0, a.Z)(this, n3), e3.apply(this, arguments); + } + return (0, l.Z)(n3, [{ key: "init", value: function() { + } }, { key: "updated", value: function(t4, e4, n4) { + } }, { key: "removed", value: function() { + } }, { key: "initialize", value: function() { + var t4 = this, e4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + (0, f.bindAll)(this, "__upSymbProps", "__upSymbCls", "__upSymbComps"); + var i2 = r3.em, o2 = this.parent(), s2 = o2 && o2.attributes, a2 = this.get("propagate"); + if (a2 && this.set("propagate", (0, f.isArray)(a2) ? a2 : [a2]), s2 && s2.propagate && !a2) { + var l2 = {}, c2 = s2.propagate; + c2.forEach(function(t5) { + return l2[t5] = o2.get(t5); + }), l2.propagate = c2, this.set(_(_({}, l2), e4)); + } + if (r3 && r3.config && r3.config.voidElements.indexOf(this.get("tagName")) >= 0 && this.set("void", true), r3.em = i2, this.opt = r3, this.em = i2, this.frame = r3.frame, this.config = r3.config || {}, this.set("attributes", _(_({}, (0, f.result)(this, "defaults").attributes || {}), this.get("attributes") || {})), this.ccid = n3.createId(this, r3), this.initClasses(), this.initTraits(), this.initComponents(), this.initToolbar(), this.initScriptProps(), this.listenTo(this, "change:script", this.scriptUpdated), this.listenTo(this, "change:tagName", this.tagUpdated), this.listenTo(this, "change:attributes", this.attrUpdated), this.listenTo(this, "change:attributes:id", this._idUpdated), this.on("change:toolbar", this.__emitUpdateTlb), this.on("change", this.__onChange), this.on(N, this.__propToParent), this.set("status", ""), this.views = [], ["classes", "traits", "components"].forEach(function(e5) { + var n4 = "add remove ".concat(e5 !== "components" ? "change" : ""); + t4.listenTo(t4.get(e5), n4.trim(), function() { + for (var n5 = arguments.length, r4 = new Array(n5), i3 = 0; i3 < n5; i3++) + r4[i3] = arguments[i3]; + return t4.emitUpdate.apply(t4, [e5].concat(r4)); + }); + }), !r3.temporary) { + var u2 = i2 && i2.get("CssComposer"), h2 = this.attributes, d2 = h2.styles, p2 = h2.type; + d2 && u2 && u2.addCollection(d2, {}, { group: "cmp:".concat(p2) }), this.__postAdd(), this.init(), this.__isSymbolOrInst() && this.__initSymb(), i2 && i2.trigger("component:create", this); + } + } }, { key: "__postAdd", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e4 = this.em, n4 = e4 && e4.get("UndoManager"), r3 = this.components(); + n4 && !this.__hasUm && (n4.add(r3), n4.add(this.getSelectors()), this.__hasUm = 1), t4.recursive && r3.map(function(e5) { + return e5.__postAdd(t4); + }); + } }, { key: "__postRemove", value: function() { + var t4 = this.em, e4 = t4 && t4.get("UndoManager"); + e4 && (e4.remove(this.components()), e4.remove(this.getSelectors()), delete this.__hasUm); + } }, { key: "__onChange", value: function(t4, e4) { + var n4 = this.changedAttributes(); + ["status", "open", "toolbar", "traits"].forEach(function(t5) { + return delete n4[t5]; + }), (0, d.isEmptyObj)(n4) || (this.__changesUp(e4), this.__propSelfToParent({ component: this, changed: n4, options: e4 })); + } }, { key: "__changesUp", value: function(t4) { + var e4 = this.em; + [this.frame, e4].forEach(function(e5) { + return e5 && e5.changesUp(t4); + }); + } }, { key: "__propSelfToParent", value: function(t4) { + this.trigger(R, t4), this.__propToParent(t4); + } }, { key: "__propToParent", value: function(t4) { + var e4 = this.parent(); + e4 && e4.trigger(N, t4); + } }, { key: "__emitUpdateTlb", value: function() { + this.emitUpdate("toolbar"); + } }, { key: "is", value: function(t4) { + return !(this.get("type") != t4); + } }, { key: "props", value: function() { + return this.attributes; + } }, { key: "index", value: function() { + var t4 = this.collection; + return t4 ? t4.indexOf(this) : 0; + } }, { key: "setDragMode", value: function(t4) { + return this.set("dmode", t4); + } }, { key: "find", value: function(t4) { + var e4 = [], n4 = this.view.$el.find(t4); + return n4.each(function(t5) { + var r3 = n4.eq(t5).data("model"); + r3 && e4.push(r3); + }), e4; + } }, { key: "findType", value: function(t4) { + var e4 = []; + return function n4(r3) { + return r3.forEach(function(r4) { + r4.is(t4) && e4.push(r4), n4(r4.components()); + }); + }(this.components()), e4; + } }, { key: "closest", value: function(t4) { + var e4 = this.view.$el.closest(t4); + return e4.length && e4.data("model"); + } }, { key: "closestType", value: function(t4) { + for (var e4 = this.parent(); e4 && !e4.is(t4); ) + e4 = e4.parent(); + return e4; + } }, { key: "contains", value: function(t4) { + var e4 = false; + if (!t4) + return e4; + var n4 = function n5(r3) { + !e4 && r3.forEach(function(r4) { + r4 === t4 && (e4 = true), !e4 && n5(r4.components()); + }); + }; + return n4(this.components()), e4; + } }, { key: "tagUpdated", value: function() { + this.trigger("rerender"); + } }, { key: "replaceWith", value: function(t4) { + var e4 = this.collection, n4 = e4.indexOf(this); + return e4.remove(this), e4.add(t4, { at: n4 }); + } }, { key: "attrUpdated", value: function(t4, e4) { + var n4 = this, r3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i2 = this.get("attributes"), o2 = i2.class; + o2 && this.setClass(o2), delete i2.class; + var s2 = i2.style; + s2 && this.setStyle(s2), delete i2.style; + var a2 = _({}, this.previous("attributes")), l2 = (0, d.shallowDiff)(a2, this.get("attributes")); + (0, f.keys)(l2).forEach(function(t5) { + return n4.trigger("change:attributes:".concat(t5), n4, l2[t5], r3); + }); + } }, { key: "setAttributes", value: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + return this.set("attributes", _({}, t4), e4), this; + } }, { key: "addAttributes", value: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + return this.setAttributes(_(_({}, this.getAttributes({ noClass: 1 })), t4), e4); + } }, { key: "removeAttributes", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n4 = Array.isArray(t4) ? t4 : [t4], r3 = this.getAttributes(); + return n4.map(function(t5) { + return delete r3[t5]; + }), this.setAttributes(r3, e4); + } }, { key: "getStyle", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n4 = this.em, r3 = (0, f.isString)(t4) ? t4 : "", i2 = r3 ? e4 : t4; + if (n4 && n4.getConfig("avoidInlineStyle") && !i2.inline) { + var o2 = n4.get("state"), s2 = n4.get("CssComposer"), a2 = s2.getIdRule(this.getId(), _({ state: o2 }, i2)); + if (this.rule = a2, a2) + return a2.getStyle(r3); + } + return p.Z.getStyle.call(this, r3); + } }, { key: "setStyle", value: function() { + var t4 = this, e4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r3 = this.em, i2 = this.opt; + if (r3 && r3.getConfig("avoidInlineStyle") && !i2.temporary && !n4.inline) { + var o2 = this.get("style") || {}; + e4 = _(_({}, e4 = (0, f.isString)(e4) ? this.parseStyle(e4) : e4), o2); + var s2 = r3.get("state"), a2 = r3.get("CssComposer"), l2 = this.getStyle(n4); + this.rule = a2.setIdRule(this.getId(), e4, _(_({}, n4), {}, { state: s2 })); + var c2 = (0, d.shallowDiff)(l2, e4); + this.set("style", "", { silent: 1 }), (0, f.keys)(c2).forEach(function(e5) { + return t4.trigger("change:style:".concat(e5)); + }); + } else + e4 = p.Z.setStyle.apply(this, arguments); + return e4; + } }, { key: "getAttributes", value: function() { + var t4, e4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n4 = this.em, r3 = [], i2 = _({}, this.get("attributes")), o2 = n4 && n4.get("SelectorManager"), s2 = this.getId(); + if (e4.noClass || (this.get("classes").forEach(function(t5) { + return r3.push((0, f.isString)(t5) ? t5 : t5.get("name")); + }), r3.length && (i2.class = r3.join(" "))), !e4.noStyle) { + var a2 = this.get("style"); + (0, d.isObject)(a2) && !(0, d.isEmptyObj)(a2) && (i2.style = this.styleToString({ inline: 1 })); + } + (0, f.has)(i2, "id") || (j(n4) ? t4 = o2 && o2.get(s2, o2.Selector.TYPE_ID) : (0, f.isEmpty)(this.getStyle()) || (t4 = 1), (this.__getSymbol() || this.__getSymbols()) && (t4 = 1), t4 && (i2.id = s2)); + return i2; + } }, { key: "addClass", value: function(t4) { + var e4 = this.em.get("SelectorManager").addClass(t4); + return this.get("classes").add(e4); + } }, { key: "setClass", value: function(t4) { + return this.get("classes").reset(), this.addClass(t4); + } }, { key: "removeClass", value: function(t4) { + var e4 = []; + t4 = (0, f.isArray)(t4) ? t4 : [t4]; + var n4 = this.get("classes"), r3 = m.Z.TYPE_CLASS; + return t4.forEach(function(t5) { + t5.split(" ").forEach(function(t6) { + var i2 = n4.where({ name: t6, type: r3 })[0]; + i2 && e4.push(n4.remove(i2)); + }); + }), e4; + } }, { key: "getClasses", value: function() { + var t4 = this.getAttributes().class; + return t4 ? t4.split(" ") : []; + } }, { key: "__logSymbol", value: function(t4, e4) { + var n4 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r3 = this.__getSymbol(), i2 = this.__getSymbols(); + (r3 || i2) && this.em.log(t4, { model: this, toUp: e4, context: "symbols", opts: n4 }); + } }, { key: "__initSymb", value: function() { + this.__symbReady || (this.on("change", this.__upSymbProps), this.__symbReady = 1); + } }, { key: "__isSymbol", value: function() { + return (0, f.isArray)(this.get(M)); + } }, { key: "__isSymbolOrInst", value: function() { + return !(!this.__isSymbol() && !this.get(A)); + } }, { key: "__isSymbolTop", value: function() { + var t4 = this.parent(); + return this.__isSymbolOrInst() && (!t4 || t4 && !t4.__isSymbol() && !t4.__getSymbol()); + } }, { key: "__isSymbolNested", value: function() { + if (!this.__isSymbolOrInst() || this.__isSymbolTop()) + return false; + var t4 = (this.__isSymbol() ? this : this.__getSymbol()).__getSymbTop(), e4 = this.__getSymbTop(); + return (e4.__isSymbol() ? e4 : e4.__getSymbol()) !== t4; + } }, { key: "__getAllById", value: function() { + var t4 = this.em; + return t4 ? t4.get("DomComponents").allById() : {}; + } }, { key: "__getSymbol", value: function() { + var t4 = this.get(A); + if (t4 && (0, f.isString)(t4)) { + var e4 = this.__getAllById()[t4]; + e4 ? (t4 = e4, this.set(A, e4)) : t4 = 0; + } + return t4; + } }, { key: "__getSymbols", value: function() { + var t4 = this, e4 = this.get(M); + return e4 && (0, f.isArray)(e4) && (e4.forEach(function(n4, r3) { + n4 && (0, f.isString)(n4) && (e4[r3] = t4.__getAllById()[n4]); + }), e4 = e4.filter(function(t5) { + return t5 && !(0, f.isString)(t5); + })), e4; + } }, { key: "__isSymbOvrd", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", e4 = this.get(L), n4 = t4.split(":"), r3 = (0, o.Z)(n4, 1), i2 = r3[0], s2 = t4 !== i2 ? [t4, i2] : [t4]; + return e4 === true || (0, f.isArray)(e4) && s2.some(function(t5) { + return e4.indexOf(t5) >= 0; + }); + } }, { key: "__getSymbToUp", value: function() { + var t4 = this, e4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n4 = [], r3 = this.em, o2 = e4.changed, s2 = r3 && r3.get("symbols"); + if (e4.fromInstance || e4.noPropagate || e4.fromUndo || !s2 || o2 && this.__isSymbOvrd(o2)) + return n4; + var a2 = this.__getSymbols() || [], l2 = this.__getSymbol(), c2 = l2 ? [l2].concat((0, i.Z)(l2.__getSymbols() || [])) : a2; + return n4 = c2.filter(function(e5) { + return e5 !== t4; + }).filter(function(t5) { + return !(o2 && t5.__isSymbOvrd(o2)); + }); + } }, { key: "__getSymbTop", value: function(t4) { + for (var e4 = this, n4 = this.parent(t4); n4 && (n4.__isSymbol() || n4.__getSymbol()); ) + e4 = n4, n4 = n4.parent(t4); + return e4; + } }, { key: "__upSymbProps", value: function(t4) { + var e4 = this, n4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r3 = this.changedAttributes(), i2 = r3.attributes || {}; + if (delete r3.status, delete r3.open, delete r3.__symbols, delete r3.__symbol, delete r3.__symbol_ovrd, delete r3.attributes, delete i2.id, (0, d.isEmptyObj)(i2) || (r3.attributes = i2), !(0, d.isEmptyObj)(r3)) { + var o2 = this.__getSymbToUp(n4); + (0, f.keys)(r3).map(function(t5) { + e4.__isSymbOvrd(t5) && delete r3[t5]; + }), this.__logSymbol("props", o2, { opts: n4, changed: r3 }), o2.forEach(function(t5) { + var i3 = _({}, r3); + (0, f.keys)(i3).map(function(e5) { + t5.__isSymbOvrd(e5) && delete i3[e5]; + }), t5.set(i3, _({ fromInstance: e4 }, n4)); + }); + } + } }, { key: "__upSymbCls", value: function(t4, e4) { + var n4 = this, r3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i2 = this.__getSymbToUp(r3); + this.__logSymbol("classes", i2, { opts: r3 }), i2.forEach(function(t5) { + t5.set("classes", n4.get("classes"), { fromInstance: n4 }); + }), this.__changesUp(r3); + } }, { key: "__upSymbComps", value: function(t4, e4, n4) { + var r3 = this, o2 = n4 || e4 || {}, s2 = { fromInstance: o2.fromInstance, fromUndo: o2.fromUndo }, a2 = t4.opt.temporary; + if (n4) + if (n4.add) { + var l2 = [], c2 = !!this.__getSymbols(), u2 = this.__getSymbToUp(_(_({}, s2), {}, { changed: "components:add" })); + if (u2.length) { + var h2 = t4.__getSymbol(); + l2 = (h2 ? h2.__getSymbols() : t4.__getSymbols()) || [], (l2 = (0, i.Z)(l2)).push(h2 || t4); + } + !a2 && this.__logSymbol("add", u2, { opts: n4, addedInstances: l2.map(function(t5) { + return t5.cid; + }), added: t4.cid }), u2.forEach(function(e5) { + var i2 = e5.__getSymbTop(), o3 = l2.filter(function(t5) { + var e6 = t5.__getSymbTop({ prev: 1 }); + return i2 && e6 && e6 === i2; + })[0] || t4.clone({ symbol: 1, symbolInv: c2 }); + e5.append(o3, _({ fromInstance: r3 }, n4)); + }); + } else { + var f2 = t4.__getSymbol(); + if (f2 && !n4.temporary && f2.set(M, f2.__getSymbols().filter(function(e5) { + return e5 !== t4; + })), !t4.__isSymbolTop()) { + var d2 = "components:remove", p2 = n4.index, g2 = t4.parent(), v2 = _({ fromInstance: t4 }, n4), m2 = t4.__isSymbolNested(), y2 = function(t5) { + var e5 = t5.parent(); + e5 && !e5.__isSymbOvrd(d2) && t5.remove(v2); + }, b2 = g2.__isSymbOvrd(d2) ? [] : t4.__getSymbToUp(s2); + m2 && (b2 = g2.__getSymbToUp(_(_({}, s2), {}, { changed: d2 })), y2 = function(t5) { + var e5 = t5.components().at(p2); + e5 && e5.remove(_({ fromInstance: g2 }, v2)); + }), !a2 && this.__logSymbol("remove", b2, { opts: n4, removed: t4.cid, isSymbNested: m2 }), b2.forEach(y2); + } + } + else { + var w2 = this.__getSymbToUp(_(_({}, s2), {}, { changed: "components:reset" })); + this.__logSymbol("reset", w2, { components: t4.models }), w2.forEach(function(n5) { + var i2 = t4.models.map(function(t5) { + return t5.clone({ symbol: 1 }); + }); + n5.components().reset(i2, _({ fromInstance: r3 }, e4)); + }); + } + this.__changesUp(o2); + } }, { key: "initClasses", value: function(t4, e4) { + var n4 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r3 = "change:classes", i2 = this.get("attributes").class || [], o2 = [this, r3, this.initClasses], s2 = this.get("classes") || i2, a2 = (0, f.isString)(s2) ? s2.split(" ") : s2; + this.stopListening.apply(this, o2); + var l2 = this.normalizeClasses(a2), c2 = new y.Z([]); + return this.set("classes", c2, n4), c2.add(l2), c2.on("add remove reset", this.__upSymbCls), this.listenTo.apply(this, o2), this; + } }, { key: "initComponents", value: function() { + var t4 = [this, "change:components", this.initComponents]; + this.stopListening.apply(this, t4); + var e4 = new v.Z(null, this.opt); + e4.parent = this; + var n4 = this.get("components"), r3 = !this.opt.avoidChildren; + return this.set("components", e4), r3 && n4 && e4.add((0, f.isFunction)(n4) ? n4(this) : n4, this.opt), e4.on("add remove reset", this.__upSymbComps), this.listenTo.apply(this, t4), this; + } }, { key: "initTraits", value: function(t4) { + var e4 = this.em, n4 = "change:traits"; + this.off(n4, this.initTraits), this.__loadTraits(); + var r3 = _({}, this.get("attributes")), i2 = this.get("traits"); + return i2.each(function(t5) { + if (!t5.get("changeProp")) { + var e5 = t5.get("name"), n5 = t5.getInitValue(); + e5 && n5 && (r3[e5] = n5); + } + }), i2.length && this.set("attributes", r3), this.on(n4, this.initTraits), t4 && e4 && e4.trigger("component:toggled"), this; + } }, { key: "initScriptProps", value: function() { + if (!this.opt.temporary) { + var t4 = "script-props", e4 = ["change:".concat(t4), this.initScriptProps]; + this.off.apply(this, e4); + var n4 = this.previous(t4) || [], r3 = this.get(t4) || [], i2 = n4.map(function(t5) { + return "change:".concat(t5); + }).join(" "), o2 = r3.map(function(t5) { + return "change:".concat(t5); + }).join(" "); + i2 && this.off(i2, this.__scriptPropsChange), o2 && this.on(o2, this.__scriptPropsChange), this.on.apply(this, e4); + } + } }, { key: "__scriptPropsChange", value: function(t4, e4) { + var n4 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + n4.avoidStore || this.trigger("rerender"); + } }, { key: "append", value: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n4 = (0, f.isArray)(t4) ? t4 : [t4], r3 = n4.map(function(t5) { + return (0, f.isString)(t5) || t5.collection && t5.collection.remove(t5, { temporary: 1 }), t5; + }), i2 = this.components().add(r3, e4); + return (0, f.isArray)(i2) ? i2 : [i2]; + } }, { key: "components", value: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n4 = this.get("components"); + return (0, f.isUndefined)(t4) ? n4 : (n4.reset(null, e4), t4 ? this.append(t4, e4) : []); + } }, { key: "getChildAt", value: function(t4) { + return this.components().at(t4 || 0) || null; + } }, { key: "getLastChild", value: function() { + var t4 = this.components(); + return t4.at(t4.length - 1) || null; + } }, { key: "empty", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + return this.components().reset(null, t4), this; + } }, { key: "parent", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e4 = this.collection || t4.prev && this.prevColl; + return e4 ? e4.parent : null; + } }, { key: "scriptUpdated", value: function() { + this.set("scriptUpdated", 1); + } }, { key: "initToolbar", value: function() { + var t4 = this.em, e4 = this, n4 = t4 && t4.getConfig("stylePrefix") || ""; + if (!e4.get("toolbar") && t4) { + var r3 = []; + e4.collection && r3.push({ label: t4.getIcon("arrowUp"), command: function(t5) { + return t5.runCommand("core:component-exit", { force: 1 }); + } }), e4.get("draggable") && r3.push({ attributes: { class: "".concat(n4, "no-touch-actions"), draggable: true }, label: t4.getIcon("move"), command: "tlb-move" }), e4.get("copyable") && r3.push({ label: t4.getIcon("copy"), command: "tlb-clone" }), e4.get("removable") && r3.push({ label: t4.getIcon("delete"), command: "tlb-delete" }), e4.set("toolbar", r3); + } + } }, { key: "__loadTraits", value: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n4 = t4 || this.get("traits"); + if (!(n4 instanceof S)) { + n4 = (0, f.isFunction)(n4) ? n4(this) : n4; + var r3 = new S([], this.opt); + r3.setTarget(this), n4.length && (n4.forEach(function(t5) { + return t5.attributes && delete t5.attributes.value; + }), r3.add(n4)), this.set({ traits: r3 }, e4); + } + return this; + } }, { key: "getTraits", value: function() { + return this.__loadTraits(), (0, i.Z)(this.get("traits").models); + } }, { key: "setTraits", value: function(t4) { + var e4 = (0, f.isArray)(t4) ? t4 : [t4]; + return this.set({ traits: e4 }), this.getTraits(); + } }, { key: "getTrait", value: function(t4) { + return this.getTraits().filter(function(e4) { + return e4.get("id") === t4 || e4.get("name") === t4; + })[0] || null; + } }, { key: "updateTrait", value: function(t4, e4) { + var n4, r3 = this.getTrait(t4); + return r3 && r3.set(e4), (n4 = this.em) === null || n4 === void 0 || n4.trigger("component:toggled"), this; + } }, { key: "getTraitIndex", value: function(t4) { + var e4 = this.getTrait(t4); + return e4 ? this.get("traits").indexOf(e4) : -1; + } }, { key: "removeTrait", value: function(t4) { + var e4, n4 = this, r3 = ((0, f.isArray)(t4) ? t4 : [t4]).map(function(t5) { + return n4.getTrait(t5); + }), i2 = this.get("traits"), o2 = r3.length ? i2.remove(r3) : []; + return (e4 = this.em) === null || e4 === void 0 || e4.trigger("component:toggled"), (0, f.isArray)(o2) ? o2 : [o2]; + } }, { key: "addTrait", value: function(t4) { + var e4, n4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + this.__loadTraits(); + var r3 = this.get("traits").add(t4, n4); + return (e4 = this.em) === null || e4 === void 0 || e4.trigger("component:toggled"), (0, f.isArray)(r3) ? r3 : [r3]; + } }, { key: "normalizeClasses", value: function(t4) { + var e4 = [], n4 = this.em, r3 = n4 && n4.get("SelectorManager"); + if (r3) + return t4.models ? (0, i.Z)(t4.models) : (t4.forEach(function(t5) { + return e4.push(r3.add(t5)); + }), e4); + } }, { key: "clone", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e4 = this.em, n4 = _({}, this.attributes), r3 = _({}, this.opt), o2 = this.getId(), s2 = e4 && e4.get("CssComposer"); + n4.attributes = _({}, n4.attributes), delete n4.attributes.id, n4.components = [], n4.classes = [], n4.traits = [], this.__isSymbolTop() && (t4.symbol = 1), this.get("components").each(function(e5, r4) { + n4.components[r4] = e5.clone(_(_({}, t4), {}, { _inner: 1 })); + }), this.get("traits").each(function(t5, e5) { + n4.traits[e5] = t5.clone(); + }), this.get("classes").each(function(t5, e5) { + n4.classes[e5] = t5.get("name"); + }), n4.status = "", r3.collection = null; + var a2 = new this.constructor(n4, r3), l2 = "#".concat(a2.getId()), c2 = s2 ? s2.getRules("#".concat(o2)) : []; + c2.forEach(function(t5) { + var e5 = t5.clone(); + e5.set("selectors", [l2]), s2.getAll().add(e5); + }), a2.set(M, 0); + var u2 = this.__getSymbol(), h2 = this.__getSymbols(); + t4.symbol || !u2 && !h2 ? u2 ? (u2.set(M, [].concat((0, i.Z)(u2.__getSymbols()), [a2])), a2.__initSymb()) : t4.symbol && (this.__isSymbol() ? (this.set(M, [].concat((0, i.Z)(h2), [a2])), a2.set(A, this), a2.__initSymb()) : t4.symbolInv ? (this.set(M, [a2]), a2.set(A, this), [this, a2].map(function(t5) { + return t5.__initSymb(); + })) : (a2.set(M, [this]), [this, a2].map(function(t5) { + return t5.__initSymb(); + }), this.set(A, a2))) : (a2.set(A, 0), a2.set(M, 0)); + var f2 = "component:clone"; + return e4 && e4.trigger(f2, a2), this.trigger(f2, a2), a2; + } }, { key: "getName", value: function() { + var t4 = this.em, e4 = this.attributes, n4 = e4.type, r3 = e4.tagName, i2 = e4.name, o2 = n4 || r3, s2 = !n4 && r3, a2 = "domComponents.names.", l2 = i2 && (t4 == null ? void 0 : t4.t("".concat(a2).concat(i2))), c2 = s2 && (t4 == null ? void 0 : t4.t("".concat(a2).concat(s2))), u2 = t4 && (t4.t("".concat(a2).concat(n4)) || t4.t("".concat(a2).concat(r3))); + return this.get("custom-name") || l2 || i2 || c2 || (0, d.capitalize)(s2) || u2 || (0, d.capitalize)(o2); + } }, { key: "getIcon", value: function() { + var t4 = this.get("icon"); + return t4 ? t4 + " " : ""; + } }, { key: "toHTML", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e4 = this, n4 = [], r3 = t4.tag, i2 = r3 || e4.get("tagName"), o2 = e4.get("void"), s2 = t4.attributes, a2 = this.getAttrToHTML(); + if (delete t4.tag, s2 && ((0, f.isFunction)(s2) ? a2 = s2(e4, a2) || {} : (0, d.isObject)(s2) && (a2 = s2)), t4.withProps) { + var l2 = this.toJSON(); + (0, f.forEach)(l2, function(t5, e5) { + e5[0] !== "_" && ["classes", "attributes", "components"].indexOf(e5) < 0 && (a2["data-gjs-".concat(e5)] = (0, f.isArray)(t5) || (0, d.isObject)(t5) ? JSON.stringify(t5) : t5); + }); + } + for (var c2 in a2) { + var u2 = a2[c2]; + if (!(0, f.isUndefined)(u2) && u2 !== null) + if ((0, f.isBoolean)(u2)) + u2 && n4.push(c2); + else { + var h2 = ""; + if (t4.altQuoteAttr && (0, f.isString)(u2) && u2.indexOf('"') >= 0) + h2 = "'".concat(u2.replace(/'/g, "'"), "'"); + else { + var p2 = (0, f.isString)(u2) ? u2.replace(/"/g, """) : u2; + h2 = '"'.concat(p2, '"'); + } + n4.push("".concat(c2, "=").concat(h2)); + } + } + var g2 = n4.length ? " ".concat(n4.join(" ")) : "", v2 = e4.getInnerHTML(t4), m2 = "<".concat(i2).concat(g2).concat(o2 ? "/" : "", ">").concat(v2); + return !o2 && (m2 += "</".concat(i2, ">")), m2; + } }, { key: "getInnerHTML", value: function(t4) { + return this.__innerHTML(t4); + } }, { key: "__innerHTML", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e4 = this.components(); + return e4.length ? e4.map(function(e5) { + return e5.toHTML(t4); + }).join("") : this.get("content"); + } }, { key: "getAttrToHTML", value: function() { + var t4 = this.getAttributes(); + return delete t4.style, t4; + } }, { key: "toJSON", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e4 = g.Model.prototype.toJSON.call(this, t4); + if (e4.attributes = this.getAttributes(), delete e4.attributes.class, delete e4.toolbar, delete e4.traits, delete e4.status, delete e4.open, !t4.fromUndo) { + var n4 = e4.__symbol, r3 = e4.__symbols; + r3 && (0, f.isArray)(r3) && (e4.__symbols = r3.filter(function(t5) { + return t5; + }).map(function(t5) { + return t5.getId ? t5.getId() : t5; + })), n4 && !(0, f.isString)(n4) && (e4.__symbol = n4.getId()); + } + return this.em.getConfig("avoidDefaults") && this.getChangedProps(e4), e4; + } }, { key: "getChangedProps", value: function(t4) { + var e4 = t4 || g.Model.prototype.toJSON.apply(this), n4 = (0, f.result)(this, "defaults"); + return (0, f.forEach)(n4, function(t5, n5) { + ["type"].indexOf(n5) === -1 && e4[n5] === t5 && delete e4[n5]; + }), (0, f.isEmpty)(e4.type) && delete e4.type, (0, f.forEach)(["attributes", "style"], function(t5) { + (0, f.isEmpty)(n4[t5]) && (0, f.isEmpty)(e4[t5]) && delete e4[t5]; + }), (0, f.forEach)(["classes", "components"], function(t5) { + (!e4[t5] || (0, f.isEmpty)(n4[t5]) && !e4[t5].length) && delete e4[t5]; + }), e4; + } }, { key: "getId", value: function() { + return (this.get("attributes") || {}).id || this.ccid || this.cid; + } }, { key: "setId", value: function(t4, e4) { + var n4 = _({}, this.get("attributes")); + return n4.id = t4, this.set("attributes", n4, e4), this; + } }, { key: "getEl", value: function(t4) { + var e4 = this.getView(t4); + return e4 && e4.el; + } }, { key: "getView", value: function(t4) { + var e4 = this.view, n4 = this.views; + return t4 && (e4 = n4.filter(function(e5) { + return e5._getFrame() === t4.view; + })[0]), e4; + } }, { key: "getCurrentView", value: function() { + var t4 = (this.em.get("currentFrame") || {}).model; + return this.getView(t4); + } }, { key: "__getScriptProps", value: function() { + var t4 = this.props(); + return (this.get("script-props") || []).reduce(function(e4, n4) { + return e4[n4] = t4[n4], e4; + }, {}); + } }, { key: "getScriptString", value: function(t4) { + var e4 = this, n4 = t4 || this.get("script"); + if (!n4) + return n4; + if (this.get("script-props")) + n4 = n4.toString().trim(); + else { + if (typeof n4 == "function") { + var i2 = n4.toString().trim(); + n4 = (i2 = i2.replace(/^function[\s\w]*\(\)\s?\{/, "").replace(/\}$/, "")).trim(); + } + var o2 = this.em.getConfig(), s2 = E(o2.tagVarStart || "{[ "), a2 = E(o2.tagVarEnd || " ]}"), l2 = new RegExp("".concat(s2, "([\\w\\d-]*)").concat(a2), "g"); + n4 = n4.replace(l2, function(t5, n5) { + e4.scriptUpdated(); + var i3 = e4.attributes[n5] || ""; + return (0, f.isArray)(i3) || (0, r2.Z)(i3) == "object" ? JSON.stringify(i3) : i3; + }); + } + return n4; + } }, { key: "emitUpdate", value: function(t4) { + for (var e4 = this.em, n4 = R + (t4 ? ":".concat(t4) : ""), r3 = t4 && this.get(t4), i2 = arguments.length, o2 = new Array(i2 > 1 ? i2 - 1 : 0), a2 = 1; a2 < i2; a2++) + o2[a2 - 1] = arguments[a2]; + t4 && this.updated.apply(this, [t4, r3, t4 && this.previous(t4)].concat(o2)), this.trigger.apply(this, [n4].concat(o2)), e4 && e4.trigger.apply(e4, [n4, this].concat(o2)), ["components", "classes"].indexOf(t4) >= 0 && this.__propSelfToParent({ component: this, changed: (0, s.Z)({}, t4, r3), options: o2[2] || o2[1] || {} }); + } }, { key: "onAll", value: function(t4) { + return (0, f.isFunction)(t4) && (t4(this), this.components().forEach(function(e4) { + return e4.onAll(t4); + })), this; + } }, { key: "remove", value: function() { + var t4 = this, e4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n4 = this.em, r3 = this.collection, i2 = function() { + r3 && r3.remove(t4, _(_({}, e4), {}, { action: "remove-component" })), e4.root && t4.components(""); + }, o2 = _({}, e4); + return [this, n4].map(function(e5) { + return e5.trigger("component:remove:before", t4, i2, o2); + }), !o2.abort && i2(), this; + } }, { key: "move", value: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + return this.remove({ temporary: 1 }), t4 && t4.append(this, e4), this; + } }, { key: "isInstanceOf", value: function(t4) { + var e4, n4, r3 = (e4 = this.em) === null || e4 === void 0 || (n4 = e4.get("DomComponents").getType(t4)) === null || n4 === void 0 ? void 0 : n4.model; + return !!r3 && this instanceof r3; + } }, { key: "isChildOf", value: function(t4) { + for (var e4 = (0, f.isString)(t4), n4 = this.parent(); n4; ) { + if (e4) { + if (n4.isInstanceOf(t4)) + return true; + } else if (n4 === t4) + return true; + n4 = n4.parent(); + } + return false; + } }, { key: "resetId", value: function() { + var t4 = this.em, e4 = this.getId(); + if (e4) { + var r3 = n3.createId(this); + this.setId(r3); + var i2 = t4 && t4.get("CssComposer").getIdRule(e4), o2 = i2 && i2.get("selectors").at(0); + return o2 && o2.set("name", r3), this; + } + } }, { key: "_getStyleRule", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e4 = t4.id, n4 = this.em, r3 = e4 || this.getId(); + return n4 && n4.get("CssComposer").getIdRule(r3); + } }, { key: "_getStyleSelector", value: function(t4) { + var e4 = this._getStyleRule(t4); + return e4 && e4.get("selectors").at(0); + } }, { key: "_idUpdated", value: function(t4, e4) { + var r3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + if (!r3.idUpdate) { + var i2 = this.ccid, o2 = this.get("attributes") || {}, s2 = o2.id, a2 = (this.previous("attributes") || {}).id || i2, l2 = n3.getList(this); + if (l2[s2] || !s2 && a2) + return this.setId(a2, { idUpdate: 1 }); + delete l2[a2], l2[s2] = this, this.ccid = s2; + var c2 = this._getStyleSelector({ id: a2 }); + c2 && c2.set({ name: s2, label: s2 }); + } + } }]), n3; + }(g.Model.extend(p.Z)); + Z.isComponent = function(t3) { + return { tagName: (0, d.toLowerCase)(t3.tagName) }; + }, Z.ensureInList = function(t3) { + var e3 = Z.getList(t3), n3 = t3.getId(), r3 = e3[n3]; + if (r3) { + if (r3 !== t3) { + var i2 = Z.getIncrementId(n3, e3); + t3.setId(i2), e3[i2] = t3; + } + } else + e3[n3] = t3; + t3.components().forEach(function(t4) { + return Z.ensureInList(t4); + }); + }, Z.createId = function(t3) { + var e3, n3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r3 = Z.getList(t3), i2 = n3.idMap, o2 = i2 === void 0 ? {} : i2, s2 = t3.get("attributes"), a2 = s2.id; + return a2 ? (e3 = Z.getIncrementId(a2, r3, n3), t3.setId(e3), a2 !== e3 && (o2[a2] = e3)) : e3 = Z.getNewId(r3), r3[e3] = t3, e3; + }, Z.getNewId = function(t3) { + for (var e3 = Object.keys(t3).length.toString().length + 2, n3 = (Math.random() + 1.1).toString(36).slice(-e3), r3 = "i".concat(n3); t3[r3]; ) + r3 = Z.getNewId(t3); + return r3; + }, Z.getIncrementId = function(t3, e3) { + var n3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r3 = n3.keepIds, i2 = r3 === void 0 ? [] : r3, o2 = 1, s2 = t3; + if (i2.indexOf(t3) < 0) + for (; e3[s2]; ) + o2++, s2 = "".concat(t3, "-").concat(o2); + return s2; + }, Z.getList = function(t3) { + var e3 = t3.opt, n3 = e3 === void 0 ? {} : e3, r3 = n3.domc, i2 = n3.em, o2 = r3 || i2 && i2.get("DomComponents"); + return o2 ? o2.componentsById : {}; + }, Z.checkId = function(t3) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], n3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r3 = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, i2 = (0, f.isArray)(t3) ? t3 : [t3], o2 = r3.keepIds, s2 = o2 === void 0 ? [] : o2; + i2.forEach(function(t4) { + var i3 = t4.attributes, o3 = i3 === void 0 ? {} : i3, a2 = t4.components, l2 = o3.id; + if (l2 && n3[l2] && s2.indexOf(l2) < 0) { + var c2 = Z.getIncrementId(l2, n3); + o3.id = c2, (0, f.isArray)(e3) && e3.forEach(function(t5) { + var e4 = t5.selectors; + e4.forEach(function(t6, n4) { + t6 === "#".concat(l2) && (e4[n4] = "#".concat(c2)); + }); + }); + } + a2 && Z.checkId(a2, e3, n3, r3); + }); + }, Z.getDefaults = function() { + return (0, f.result)(this.prototype, "defaults"); + }, Z.prototype.defaults = (k = { tagName: "div", type: "", name: "", removable: true, draggable: true, droppable: true, badgable: true, stylable: true, "stylable-require": "", "style-signature": "", unstylable: "", highlightable: true, copyable: true, resizable: false, editable: false, layerable: true, selectable: true, hoverable: true, void: false, state: "", status: "", content: "", icon: "", style: "", styles: "", classes: "", script: "", "script-props": "", "script-export": "", attributes: "", traits: ["id", "title"], propagate: "", dmode: "", toolbar: null }, (0, s.Z)(k, A, 0), (0, s.Z)(k, M, 0), (0, s.Z)(k, L, 0), (0, s.Z)(k, "_undo", true), (0, s.Z)(k, "_undoexc", ["status", "open"]), k); + }, 8431: (t2, e2, n2) => { + "use strict"; + n2.d(e2, { Z: () => v }); + var r2 = n2(1002), i = n2(2982), o = n2(4925), s = n2(4942), a = n2(2316), l = n2.n(a), c = n2(9050), u = n2(9138), h = ["at"]; + function f(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function d(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? f(Object(n3), true).forEach(function(e4) { + (0, s.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : f(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + var p = function t3(e3) { + var n3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : []; + if (!e3) + return []; + var r3 = (0, c.isArray)(e3) || (0, c.isFunction)(e3.map) ? e3 : [e3]; + return r3.map(function(e4) { + n3.push(e4.getId()), t3(e4.components().models, n3); + }), n3; + }, g = function t3(e3) { + var n3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i2 = (0, c.isArray)(e3) ? e3 : [e3]; + return i2.map(function(e4) { + var i3 = e4.attributes, o2 = i3 === void 0 ? {} : i3, s2 = e4.components, a2 = e4.tagName, l2 = o2.id, u2 = e4; + if (l2 && n3[l2] && (u2 = n3[l2], a2 && u2.set({ tagName: a2 }, d(d({}, r3), {}, { silent: true }))), s2) { + var h2 = t3(s2, n3); + if ((0, c.isFunction)(u2.components)) { + var f2 = u2.components(); + f2.length > 0 && f2.reset(h2, r3); + } else + u2.components = h2; + } + return u2; + }); + }; + const v = l().Collection.extend({ initialize: function(t3) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + this.opt = e3, this.listenTo(this, "add", this.onAdd), this.listenTo(this, "remove", this.removeChildren), this.listenTo(this, "reset", this.resetChildren); + var n3 = e3.em, r3 = e3.config; + this.config = r3, this.em = n3, this.domc = e3.domc || n3 && n3.get("DomComponents"); + }, resetChildren: function(t3) { + var e3 = this, n3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r3 = this, i2 = n3.previousModels || [], o2 = i2.filter(function(e4) { + return !t3.get(e4.cid); + }), s2 = p(t3); + n3.keepIds = p(i2).filter(function(t4) { + return s2.indexOf(t4) >= 0; + }), o2.forEach(function(t4) { + return e3.removeChildren(t4, r3, n3); + }), t3.each(function(t4) { + return e3.onAdd(t4); + }); + }, resetFromString: function() { + var t3, e3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", n3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + n3.keepIds = p(this); + var r3 = this.domc, i2 = (r3 == null ? void 0 : r3.allById()) || {}, o2 = this.parseString(e3, n3), s2 = (0, c.isArray)(o2) ? o2 : [o2], a2 = g(s2, i2, n3); + this.reset(a2, n3), (t3 = this.em) === null || t3 === void 0 || t3.trigger("component:content", this.parent, n3, e3); + }, removeChildren: function(t3, e3) { + var n3 = this, r3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + if (t3) { + var i2 = this.domc, o2 = this.em, s2 = r3.temporary || r3.fromUndo; + if (t3.prevColl = this, !s2) { + var a2 = t3.getId(), l2 = o2.get("SelectorManager").getAll(), c2 = o2.get("CssComposer").getAll(), u2 = (r3.keepIds || []).indexOf(a2) < 0, h2 = i2 ? i2.allById() : {}; + delete h2[a2]; + var f2 = u2 ? c2.remove(c2.filter(function(t4) { + return t4.getSelectors().getFullString() === "#".concat(a2); + }), r3) : []; + l2.remove(f2.map(function(t4) { + return t4.getSelectors().at(0); + })), t3.opt.temporary || (o2.get("Commands").run("core:component-style-clear", { target: t3 }), t3.removed(), t3.trigger("removed"), o2.trigger("component:remove", t3)); + var d2 = t3.components(); + d2.forEach(function(t4) { + return n3.removeChildren(t4, e3, r3); + }); + } + var p2 = t3.components(); + o2.stopListening(p2), o2.stopListening(t3), o2.stopListening(t3.get("classes")), t3.__postRemove(); + } + }, model: function(t3, e3) { + var n3, r3 = e3.collection.opt, i2 = r3.em, o2 = i2.get("DomComponents").componentTypes; + e3.em = i2, e3.config = r3.config, e3.componentTypes = o2, e3.domc = r3.domc; + for (var s2 = 0; s2 < o2.length; s2++) { + if (o2[s2].id == t3.type) { + n3 = o2[s2].model; + break; + } + } + return n3 || (n3 = o2[o2.length - 1].model, i2 && t3.type && i2.logWarning("Component type '".concat(t3.type, "' not found"), { attrs: t3, options: e3 })), new n3(t3, e3); + }, parseString: function(t3) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n3 = this.em, r3 = this.domc, i2 = n3.get("CssComposer"), s2 = n3.get("Parser").parseHtml(t3); + if (u.ZP.checkId(s2.html, s2.css, r3.componentsById, e3), s2.css && i2 && !e3.temporary) { + e3.at; + var a2 = (0, o.Z)(e3, h); + i2.addCollection(s2.css, d(d({}, a2), {}, { extend: 1 })); + } + return s2.html; + }, add: function(t3) { + var e3 = this, n3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + n3.keepIds = [].concat((0, i.Z)(n3.keepIds || []), (0, i.Z)(p(n3.previousModels))), (0, c.isString)(t3) ? t3 = this.parseString(t3, n3) : (0, c.isArray)(t3) && (t3 = (0, i.Z)(t3)).forEach(function(r4, i2) { + if ((0, c.isString)(r4)) { + var o3 = e3.parseString(r4, n3); + t3[i2] = (0, c.isArray)(o3) && !o3.length ? null : o3; + } + }); + var r3 = (0, c.isArray)(t3); + t3 = (r3 ? t3 : [t3]).filter(function(t4) { + return t4; + }).map(function(t4) { + return e3.processDef(t4); + }), t3 = r3 ? (0, c.flatten)(t3, 1) : t3[0]; + var o2 = l().Collection.prototype.add.apply(this, [t3, n3]); + return this.__firstAdd = o2, o2; + }, processDef: function(t3) { + if (t3.cid && t3.ccid) + return t3; + var e3 = this.em, n3 = this.config, i2 = (n3 === void 0 ? {} : n3).processor, o2 = t3; + if (i2) { + var s2 = i2(o2 = d({}, o2)); + s2 && ((0, c.each)(o2, function(t4, e4) { + return delete o2[e4]; + }), (0, c.extend)(o2, s2)); + } + if (o2.$$typeof && (0, r2.Z)(o2.props) == "object") { + (o2 = d({}, o2)).props = d({}, o2.props); + var a2 = e3.get("DomComponents"), l2 = e3.get("Parser").parserHtml; + (0, c.each)(o2, function(t4, e4) { + (0, c.includes)(["props", "type"], e4) || delete o2[e4]; + }); + var u2 = o2.props, h2 = u2.children; + delete u2.children, delete o2.props; + var f2 = l2.splitPropsFromAttr(u2); + o2.attributes = f2.attrs, h2 && (o2.components = h2), o2.type ? a2.getType(o2.type) || (o2.tagName = o2.type, delete o2.type) : o2.type = "textnode", (0, c.extend)(o2, f2.props); + } + return o2; + }, onAdd: function(t3, e3) { + var n3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r3 = this.domc, i2 = this.em, o2 = t3.getStyle(), s2 = i2 && i2.getConfig("avoidInlineStyle"); + if (r3 && r3.Component.ensureInList(t3), !(0, c.isEmpty)(o2) && !s2 && i2 && i2.get && i2.getConfig("forceClass") && !n3.temporary) { + var a2 = t3.cid; + i2.get("CssComposer").setClassRule(a2, o2); + t3.setStyle({}), t3.addClass(a2); + } + t3.__postAdd({ recursive: 1 }), this.__onAddEnd(); + }, __onAddEnd: (0, c.debounce)(function() { + }) }); + }, 2169: (t2, e2, n2) => { + "use strict"; + n2.d(e2, { Z: () => p }); + var r2 = n2(4942), i = n2(2316), o = n2.n(i), s = n2(9050), a = n2(8431), l = n2(3505), c = n2(4293), u = n2(9283), h = n2(6183); + function f(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function d(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? f(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : f(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + const p = o().View.extend({ className: function() { + return this.getClasses(); + }, tagName: function() { + return this.model.get("tagName"); + }, initialize: function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e3 = this.model, n3 = t3.config || {}, r3 = n3.em, i2 = e3.opt || {}, o2 = this.$el, s2 = this.el; + this.opts = t3, this.modelOpt = i2, this.config = n3, this.em = r3 || "", this.pfx = n3.stylePrefix || "", this.ppfx = n3.pStylePrefix || "", this.attr = e3.get("attributes"), this.classe = this.attr.class || [], this.listenTo(e3, "change:style", this.updateStyle), this.listenTo(e3, "change:attributes", this.renderAttributes), this.listenTo(e3, "change:highlightable", this.updateHighlight), this.listenTo(e3, "change:status", this.updateStatus), this.listenTo(e3, "change:script rerender", this.reset), this.listenTo(e3, "change:content", this.updateContent), this.listenTo(e3, "change", this.handleChange), this.listenTo(e3, "active", this.onActive), this.listenTo(e3, "disable", this.onDisable), o2.data("model", e3), (0, h.setViewEl)(s2, this), e3.view = this, this._getFrame() && e3.views.push(this), this.initClasses(), this.initComponents({ avoidRender: 1 }), this.events = d(d({}, this.events), {}, { dragstart: "handleDragStart" }), this.delegateEvents(), !i2.temporary && this.init(this._clbObj()); + }, __isDraggable: function() { + var t3 = this.model, e3 = this.config, n3 = t3.attributes.draggable; + return e3.draggableComponents && n3; + }, _clbObj: function() { + var t3 = this.em, e3 = this.model, n3 = this.el; + return { editor: t3 && t3.getEditor(), model: e3, el: n3 }; + }, init: function() { + }, removed: function() { + }, onActive: function() { + }, onDisable: function() { + }, remove: function() { + var t3; + o().View.prototype.remove.apply(this, arguments); + var e3 = this.model, n3 = this.$el, r3 = e3.views, i2 = this._getFrame() || {}; + return e3.components().forEach(function(t4) { + var e4 = t4.getView(i2.model); + e4 == null || e4.remove(); + }), (t3 = this.childrenView) === null || t3 === void 0 || t3.remove(), r3.splice(r3.indexOf(this), 1), this.removed(this._clbObj()), n3.data({ model: "", collection: "", view: "" }), this; + }, handleDragStart: function(t3) { + if (!this.__isDraggable()) + return false; + t3.stopPropagation(), t3.preventDefault(), this.em.get("Commands").run("tlb-move", { target: this.model, event: t3 }); + }, initClasses: function() { + var t3 = this.model, e3 = "change:classes", n3 = t3.get("classes"); + n3 instanceof c.Z && (this.stopListening(t3, e3, this.initClasses), this.listenTo(t3, e3, this.initClasses), this.listenTo(n3, "add remove change", this.updateClasses), n3.length && this.importClasses()); + }, initComponents: function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e3 = this.model, n3 = this.$el, r3 = this.childrenView, i2 = "change:components", o2 = e3.get("components"), s2 = [e3, i2, this.initComponents]; + o2 instanceof a.Z && (n3.data("collection", o2), r3 && r3.remove(), this.stopListening.apply(this, s2), !t3.avoidRender && this.renderChildren(), this.listenTo.apply(this, s2)); + }, handleChange: function() { + var t3 = this.model, e3 = (0, s.keys)(t3.changed); + if (e3.length !== 1 || e3[0] !== "status") + for (var n3 in t3.emitUpdate(), t3.changed) + t3.emitUpdate(n3); + }, importClasses: function() { + var t3 = this.config.em.get("SelectorManager"); + t3 && this.model.get("classes").each(function(e3) { + t3.add(e3.get("name")); + }); + }, updateStatus: function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e3 = this.em, n3 = e3 ? e3.get("Canvas").getConfig() : {}, r3 = n3.extHl, i2 = this.el, o2 = this.model.get("status"), s2 = this.ppfx, a2 = "".concat(s2, "selected"), l2 = "".concat(a2, "-parent"), c2 = "".concat(s2, "freezed"), u2 = "".concat(s2, "hovered"), h2 = [a2, l2, c2, u2], f2 = r3 && !t3.noExtHl ? "" : a2; + this.$el.removeClass(h2.join(" ")); + var d2 = i2.getAttribute("class") || "", p2 = ""; + switch (o2) { + case "selected": + p2 = "".concat(d2, " ").concat(f2); + break; + case "selected-parent": + p2 = "".concat(d2, " ").concat(l2); + break; + case "freezed": + p2 = "".concat(d2, " ").concat(c2); + break; + case "freezed-selected": + p2 = "".concat(d2, " ").concat(c2, " ").concat(f2); + break; + case "hovered": + p2 = t3.avoidHover ? "" : "".concat(d2, " ").concat(u2); + } + (p2 = p2.trim()) && i2.setAttribute("class", p2); + }, updateHighlight: function() { + var t3 = this.model, e3 = t3.get("textable"), n3 = t3.get("highlightable") && (e3 || !t3.isChildOf("text")); + this.setAttribute("data-gjs-highlightable", !!n3 || ""); + }, updateStyle: function(t3, e3) { + var n3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r3 = this.model, i2 = this.em; + if (i2 && i2.getConfig("avoidInlineStyle") && !n3.inline) { + var o2 = r3.getStyle(); + !(0, s.isEmpty)(o2) && r3.setStyle(o2); + } else + this.setAttribute("style", r3.styleToString(n3)); + }, updateClasses: function() { + var t3 = this.model.get("classes").pluck("name").join(" "); + this.setAttribute("class", t3), this.updateStatus(), this.onAttrUpdate(); + }, setAttribute: function(t3, e3) { + var n3 = this.$el; + e3 ? n3.attr(t3, e3) : n3.removeAttr(t3); + }, getClasses: function() { + return this.model.getClasses().join(" "); + }, updateAttributes: function() { + var t3 = [], e3 = this.model, n3 = this.$el, r3 = this.el, i2 = e3.attributes, o2 = i2.textable, a2 = i2.type, l2 = d(d({ id: e3.getId(), "data-gjs-type": a2 || "default" }, this.__isDraggable() && { draggable: true }), o2 && { contenteditable: "false" }); + (0, s.each)(r3.attributes, function(e4) { + return t3.push(e4.nodeName); + }), t3.forEach(function(t4) { + return n3.removeAttr(t4); + }), this.updateStyle(), this.updateHighlight(); + var c2 = d(d({}, l2), e3.getAttributes()); + (0, s.keys)(c2).forEach(function(t4) { + return c2[t4] === false && delete c2[t4]; + }), n3.attr(c2); + }, updateContent: function() { + var t3 = this.model.get("content"), e3 = this.model.components().length; + this.getChildrenContainer().innerHTML = e3 ? "" : t3; + }, prevDef: function(t3) { + t3.preventDefault(); + }, updateScript: function() { + var t3 = this.model, e3 = this.em; + t3.get("script") && e3 && e3.get("Canvas").getCanvasView().updateScript(this); + }, getChildrenContainer: function() { + var t3 = this.el; + return typeof this.getChildrenSelector == "function" ? t3 = this.el.querySelector(this.getChildrenSelector()) : this.getTemplate, t3; + }, getOffsetRect: function() { + var t3 = {}, e3 = this.el, n3 = 0, r3 = 0; + return function i2(o2) { + var s2 = o2.offsetParent; + s2 ? (n3 += s2.offsetTop, r3 += s2.offsetLeft, i2(s2)) : (t3.top = e3.offsetTop + n3, t3.left = e3.offsetLeft + r3, t3.bottom = t3.top + e3.offsetHeight, t3.right = t3.left + e3.offsetWidth); + }(e3), t3; + }, isInViewport: function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e3 = t3.rect, n3 = this.el, r3 = n3.ownerDocument, i2 = r3.body, o2 = r3.defaultView.frameElement, s2 = e3 || this.getOffsetRect(), a2 = s2.top, l2 = s2.left, c2 = this._getFrame().getOffsetRect(); + return a2 >= c2.scrollTop && l2 >= c2.scrollLeft && a2 <= c2.scrollBottom && l2 <= o2.offsetWidth + i2.scrollLeft; + }, scrollIntoView: function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e3 = this.getOffsetRect(), n3 = this.isInViewport({ rect: e3 }); + if (!n3 || t3.force) { + var r3 = this.el; + t3.behavior !== "smooth" ? r3.ownerDocument.defaultView.scrollTo(0, e3.top) : r3.scrollIntoView(d({ behavior: "smooth", block: "nearest" }, t3)); + } + }, reset: function() { + var t3 = this.el; + this.el = "", this._ensureElement(), this._setData(), (0, u.dL)(t3, this.el), this.render(); + }, _setData: function() { + var t3 = this.model, e3 = t3.components(); + this.$el.data({ model: t3, collection: e3, view: this }); + }, _getFrame: function() { + return this.config.frameView; + }, renderChildren: function() { + this.updateContent(); + var t3 = this.getChildrenContainer(), e3 = this.childrenView || new l.Z({ collection: this.model.get("components"), config: this.config, componentTypes: this.opts.componentTypes }); + e3.render(t3), this.childrenView = e3; + for (var n3 = Array.prototype.slice.call(e3.el.childNodes), r3 = 0, i2 = n3.length; r3 < i2; r3++) + t3.appendChild(n3.shift()); + }, renderAttributes: function() { + this.updateAttributes(), this.updateClasses(); + }, onAttrUpdate: function() { + }, render: function() { + return this.renderAttributes(), this.modelOpt.temporary || (this.renderChildren(), this.updateScript(), (0, h.setViewEl)(this.el, this), this.postRender()), this; + }, postRender: function() { + this.modelOpt.temporary || this.onRender(this._clbObj()); + }, onRender: function() { + } }); + }, 3505: (t2, e2, n2) => { + "use strict"; + n2.d(e2, { Z: () => s }); + var r2 = n2(2316), i = n2.n(r2), o = n2(9050); + const s = i().View.extend({ initialize: function(t3) { + this.opts = t3 || {}, this.config = t3.config || {}, this.em = this.config.em; + var e3 = this.collection; + this.listenTo(e3, "add", this.addTo), this.listenTo(e3, "reset", this.resetChildren), this.listenTo(e3, "remove", this.removeChildren); + }, removeChildren: function(t3, e3) { + var n3 = this, r3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + t3.views.forEach(function(t4) { + if (t4) { + var e4 = t4.childrenView, n4 = t4.scriptContainer; + e4 && e4.stopListening(), n4 && n4.remove(), t4.remove.apply(t4); + } + }); + var i2 = t3.components(); + i2.forEach(function(t4) { + return n3.removeChildren(t4, e3, r3); + }); + }, addTo: function(t3) { + var e3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n3 = this.config.em, r3 = this.collection.indexOf(t3); + if (this.addToCollection(t3, null, r3), n3 && !e3.temporary) { + var i2 = function t4(e4) { + n3.trigger("component:add", e4), e4.components().forEach(function(e5) { + return t4(e5); + }); + }; + i2(t3); + } + }, addToCollection: function(t3, e3, r3) { + this.compView || (this.compView = n2(2169).Z); + for (var i2 = this.config, s2 = this.opts, a = this.em, l = e3 || null, c = i2.frameView, u = c === void 0 ? {} : c, h = u.model && t3.getView(u.model), f = s2.componentTypes || a && a.get("DomComponents").getTypes(), d = t3.get("type") || "default", p = this.compView, g = 0; g < f.length; g++) + if (f[g].id == d) { + p = f[g].view; + break; + } + var v, m = h || new p({ model: t3, config: i2, componentTypes: f }); + try { + v = m.render().el; + } catch (t4) { + v = document.createTextNode(""), a.logError(t4); + } + if (l) + l.appendChild(v); + else { + var y = this.parentEl, b = y.childNodes; + if ((0, o.isUndefined)(r3)) + y.appendChild(v); + else { + var w = b.length == r3; + w && r3--, w || !b.length ? y.appendChild(v) : y.insertBefore(v, b[r3]); + } + } + return t3.opt.temporary || a == null || a.trigger("component:mount", t3), v; + }, resetChildren: function(t3) { + var e3 = this, n3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r3 = n3.previousModels, i2 = r3 === void 0 ? [] : r3; + this.parentEl.innerHTML = "", i2.forEach(function(t4) { + return e3.removeChildren(t4, e3.collection); + }), t3.each(function(t4) { + return e3.addToCollection(t4); + }); + }, render: function(t3) { + var e3 = this, n3 = this.el, r3 = document.createDocumentFragment(); + return this.parentEl = t3 || this.el, this.collection.each(function(t4) { + return e3.addToCollection(t4, r3); + }), n3.innerHTML = "", n3.appendChild(r3), this; + } }); + }, 3345: (t2, e2, n2) => { + "use strict"; + n2.d(e2, { Z: () => c }); + var r2 = n2(4942), i = n2(9050), o = n2(6183); + function s(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function a(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? s(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : s(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + var l = (0, n2(5311).Z)().parseStyle; + const c = { parseStyle: l, extendStyle: function(t3) { + return a(a({}, this.getStyle()), t3); + }, getStyle: function(t3) { + var e3 = a({}, this.get("style") || {}); + return t3 && (0, i.isString)(t3) ? e3[t3] : e3; + }, setStyle: function() { + var t3 = this, e3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + (0, i.isString)(e3) && (e3 = l(e3)); + var r3 = this.getStyle(n3), s2 = a({}, e3); + this.set("style", s2, n3); + var c2 = (0, o.shallowDiff)(r3, s2); + return (0, i.keys)(c2).forEach(function(e4) { + var r4 = t3.em; + n3.noEvent || (t3.trigger("change:style:".concat(e4)), r4 && (r4.trigger("styleable:change", t3, e4, n3), r4.trigger("styleable:change:".concat(e4), t3, e4, n3))); + }), s2; + }, addStyle: function(t3) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", n3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + typeof t3 == "string" ? t3 = { prop: e3 } : n3 = e3 || {}, t3 = this.extendStyle(t3), this.setStyle(t3, n3); + }, removeStyle: function(t3) { + var e3 = this.getStyle(); + delete e3[t3], this.setStyle(e3); + }, styleToString: function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e3 = [], n3 = this.getStyle(t3); + for (var r3 in n3) { + var o2 = t3.important, s2 = (0, i.isArray)(o2) ? o2.indexOf(r3) >= 0 : o2, a2 = "".concat(n3[r3]).concat(s2 ? " !important" : ""), l2 = r3.substr(0, 2) == "__"; + a2 && !l2 && e3.push("".concat(r3, ":").concat(a2, ";")); + } + return e3.join(""); + }, getSelectors: function() { + return this.get("selectors") || this.get("classes"); + }, getSelectorsString: function(t3) { + return this.selectorsToString ? this.selectorsToString(t3) : this.getSelectors().getFullString(); + }, _validate: function(t3, e3) { + var n3, r3 = t3.style, o2 = this.em || e3.em, s2 = o2 == null || (n3 = o2.get("CssComposer")) === null || n3 === void 0 ? void 0 : n3.getConfig().onBeforeStyle; + if (r3 && s2) { + var l2 = s2(a({}, r3)); + l2 && (0, i.keys)(r3).map(function(e4) { + (0, i.isUndefined)(l2[e4]) && delete t3.style[e4]; + }), l2 && (0, i.keys)(l2).map(function(e4) { + t3.style[e4] = l2[e4]; + }); + } + return true; + } }; + }, 793: (t2, e2, n2) => { + "use strict"; + n2.d(e2, { Z: () => h }); + var r2 = n2(4942), i = n2(9050), o = n2(2316), s = n2.n(o); + function a(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function l(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? a(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : a(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + var c = s().Model, u = s().View; + const h = { types: [], initialize: function(t3) { + var e3 = this, n3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r3 = n3.em; + this.em = r3, this.opts = n3, this.model = function() { + var t4, n4, i3, o2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, s2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + if (o2 && o2.type) { + var a2 = e3.getBaseType(); + t4 = (i3 = e3.getType(o2.type)) ? i3.model : a2.model, n4 = i3 ? i3.view : a2.view; + } else { + var c2 = e3.recognizeType(o2); + t4 = (i3 = c2.type).model, n4 = i3.view, o2 = c2.attributes; + } + var u2 = new t4(o2, l(l({}, s2), {}, { em: r3 })); + return u2.typeView = n4, u2; + }; + var i2 = this.init && this.init.bind(this); + i2 && i2(); + }, recognizeType: function(t3) { + for (var e3 = this.getTypes(), n3 = 0; n3 < e3.length; n3++) { + var r3 = e3[n3], i2 = r3.isType(t3); + if (i2 = typeof i2 == "boolean" && i2 ? { type: r3.id } : i2) + return { type: r3, attributes: i2 }; + } + return { type: this.getBaseType(), attributes: t3 }; + }, getBaseType: function() { + var t3 = this.getTypes(); + return t3[t3.length - 1]; + }, getTypes: function() { + return this.types; + }, getType: function(t3) { + for (var e3 = this.getTypes(), n3 = 0; n3 < e3.length; n3++) { + var r3 = e3[n3]; + if (r3.id === t3) + return r3; + } + }, addType: function(t3, e3) { + var n3 = this.getType(t3), r3 = this.getBaseType(), o2 = n3 ? n3.model : r3.model, s2 = n3 ? n3.view : r3.view, a2 = e3.model, l2 = e3.view, h2 = e3.isType; + a2 = a2 instanceof c || (0, i.isFunction)(a2) ? a2 : o2.extend(a2 || {}), l2 = l2 instanceof u || (0, i.isFunction)(l2) ? l2 : s2.extend(l2 || {}), !this.extendViewApi || e3.model || e3.view || (l2 = l2.extend(e3)), n3 ? (n3.model = a2, n3.view = l2, n3.isType = h2 || n3.isType) : (e3.id = t3, e3.model = a2, e3.view = l2, e3.isType = h2 || function(e4) { + if (e4 && e4.type == t3) + return true; + }, this.getTypes().unshift(e3)); + } }; + }, 8659: (t2, e2, n2) => { + "use strict"; + n2.d(e2, { Z: () => s }); + var r2 = n2(2316), i = n2.n(r2), o = i().$; + const s = i().View.extend({ events: { change: "handleChange" }, template: function() { + return '<span class="'.concat(this.holderClass(), '"></span>'); + }, inputClass: function() { + return "".concat(this.ppfx, "field"); + }, holderClass: function() { + return "".concat(this.ppfx, "input-holder"); + }, initialize: function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e3 = t3.ppfx || ""; + this.opts = t3, this.ppfx = e3, this.em = t3.target || {}, !t3.onChange && this.listenTo(this.model, "change:value", this.handleModelChange); + }, elementUpdated: function() { + this.model.trigger("el:change"); + }, setValue: function(t3) { + var e3 = this.model, n3 = t3 || e3.get("defaults"), r3 = this.getInputEl(); + r3 && (r3.value = n3); + }, handleModelChange: function(t3, e3, n3) { + this.setValue(e3, n3); + }, handleChange: function(t3) { + t3.stopPropagation(); + var e3 = this.getInputEl().value; + this.__onInputChange(e3), this.elementUpdated(); + }, __onInputChange: function(t3) { + this.model.set({ value: t3 }, { fromInput: 1 }); + }, getInputEl: function() { + if (!this.inputEl) { + var t3 = this.model, e3 = this.opts.type || "text", n3 = t3.get("placeholder") || t3.get("defaults") || t3.get("default") || ""; + this.inputEl = o('<input type="'.concat(e3, '" placeholder="').concat(n3, '">')); + } + return this.inputEl.get(0); + }, render: function() { + this.inputEl = null; + var t3 = this.$el; + return t3.addClass(this.inputClass()), t3.html(this.template()), t3.find(".".concat(this.holderClass())).append(this.getInputEl()), this; + } }); + }, 1511: (t2, e2, n2) => { + "use strict"; + n2.d(e2, { Z: () => p }); + var r2 = n2(4942), i = n2(2316), o = n2.n(i), s = n2(9050), a = n2(1002), l = n2(6183); + var c = n2(8659); + function u(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function h(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? u(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : u(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + var f = o().$; + f && function(t3, e3) { + if ((0, l.hasWin)()) { + var n3 = { beforeShow: T, move: T, change: T, show: T, hide: T, color: false, flat: false, showInput: false, allowEmpty: false, showButtons: true, clickoutFiresChange: true, showInitial: false, showPalette: false, showPaletteOnly: false, hideAfterPaletteSelect: false, togglePaletteOnly: false, showSelectionPalette: true, localStorageKey: false, appendTo: "body", maxSelectionSize: 7, cancelText: "cancel", chooseText: "choose", togglePaletteMoreText: "more", togglePaletteLessText: "less", clearText: "Clear Color Selection", noColorSelectedText: "No Color Selected", preferredFormat: false, className: "", containerClassName: "", replacerClassName: "", showAlpha: false, theme: "sp-light", palette: [["#ffffff", "#000000", "#ff0000", "#ff8000", "#ffff00", "#008000", "#0000ff", "#4b0082", "#9400d3"]], selectionPalette: [], disabled: false, offset: null }, r3 = [], i2 = !!/msie/i.exec(window.navigator.userAgent), o2 = function() { + function t4(t5, e5) { + return !!~("" + t5).indexOf(e5); + } + var e4 = document.createElement("div").style; + return e4.cssText = "background-color:rgba(0,0,0,.5)", t4(e4.backgroundColor, "rgba") || t4(e4.backgroundColor, "hsla"); + }(), s2 = ["<div class='sp-replacer'>", "<div class='sp-preview'><div class='sp-preview-inner'></div></div>", "<div class='sp-dd'>▼</div>", "</div>"].join(""), c2 = function() { + var t4 = ""; + if (i2) + for (var e4 = 1; e4 <= 6; e4++) + t4 += "<div class='sp-" + e4 + "'></div>"; + return ["<div class='sp-container sp-hidden'>", "<div class='sp-palette-container'>", "<div class='sp-palette sp-thumb sp-cf'></div>", "<div class='sp-palette-button-container sp-cf'>", "<button type='button' class='sp-palette-toggle'></button>", "</div>", "</div>", "<div class='sp-picker-container'>", "<div class='sp-top sp-cf'>", "<div class='sp-fill'></div>", "<div class='sp-top-inner'>", "<div class='sp-color'>", "<div class='sp-sat'>", "<div class='sp-val'>", "<div class='sp-dragger'></div>", "</div>", "</div>", "</div>", "<div class='sp-clear sp-clear-display'>", "</div>", "<div class='sp-hue'>", "<div class='sp-slider'></div>", t4, "</div>", "</div>", "<div class='sp-alpha'><div class='sp-alpha-inner'><div class='sp-alpha-handle'></div></div></div>", "</div>", "<div class='sp-input-container sp-cf'>", "<input class='sp-input' type='text' spellcheck='false' />", "</div>", "<div class='sp-initial sp-thumb sp-cf'></div>", "<div class='sp-button-container sp-cf'>", "<a class='sp-cancel' href='#'></a>", "<button type='button' class='sp-choose'></button>", "</div>", "</div>", "</div>"].join(""); + }(), u2 = "spectrum.id"; + t3.fn.spectrum = function(e4, n4) { + if (typeof e4 == "string") { + var i3 = this, o3 = Array.prototype.slice.call(arguments, 1); + return this.each(function() { + var n5 = r3[t3(this).data(u2)]; + if (n5) { + var s3 = n5[e4]; + if (!s3) + throw new Error("Spectrum: no such method: '" + e4 + "'"); + e4 == "get" ? i3 = n5.get() : e4 == "container" ? i3 = n5.container : e4 == "option" ? i3 = n5.option.apply(n5, o3) : e4 == "destroy" ? (n5.destroy(), t3(this).removeData(u2)) : s3.apply(n5, o3); + } + }), i3; + } + return this.spectrum("destroy").each(function() { + var n5 = _(this, t3.extend({}, e4, t3(this).data())); + t3(this).data(u2, n5.id); + }); + }, t3.fn.spectrum.load = true, t3.fn.spectrum.loadOpts = {}, t3.fn.spectrum.draggable = D, t3.fn.spectrum.defaults = n3, t3.fn.spectrum.inputTypeColorSupport = function e4() { + if (e4._cachedResult === void 0) { + var n4 = t3("<input type='color'/>")[0]; + e4._cachedResult = n4.type === "color" && n4.value !== ""; + } + return e4._cachedResult; + }, t3.spectrum = {}, t3.spectrum.localization = {}, t3.spectrum.palettes = {}, t3.fn.spectrum.processNativeColorInputs = function() { + var e4 = t3("input[type=color]"); + e4.length && !M() && e4.spectrum({ preferredFormat: "hex6" }); + }; + var h2 = /^[\s,#]+/, f2 = /\s+$/, d2 = 0, p2 = Math, g = p2.round, v = p2.min, m = p2.max, y = p2.random, b = function t4(e4, n4) { + if (n4 = n4 || {}, (e4 = e4 || "") instanceof t4) + return e4; + if (!(this instanceof t4)) + return new t4(e4, n4); + var r4 = function(t5) { + var e5 = { r: 0, g: 0, b: 0 }, n5 = 1, r5 = false, i3 = false; + typeof t5 == "string" && (t5 = function(t6) { + t6 = t6.replace(h2, "").replace(f2, "").toLowerCase(); + var e6, n6 = false; + if (C[t6]) + t6 = C[t6], n6 = true; + else if (t6 == "transparent") + return { r: 0, g: 0, b: 0, a: 0, format: "name" }; + if (e6 = S.rgb.exec(t6)) + return { r: e6[1], g: e6[2], b: e6[3] }; + if (e6 = S.rgba.exec(t6)) + return { r: e6[1], g: e6[2], b: e6[3], a: e6[4] }; + if (e6 = S.hsl.exec(t6)) + return { h: e6[1], s: e6[2], l: e6[3] }; + if (e6 = S.hsla.exec(t6)) + return { h: e6[1], s: e6[2], l: e6[3], a: e6[4] }; + if (e6 = S.hsv.exec(t6)) + return { h: e6[1], s: e6[2], v: e6[3] }; + if (e6 = S.hsva.exec(t6)) + return { h: e6[1], s: e6[2], v: e6[3], a: e6[4] }; + if (e6 = S.hex8.exec(t6)) + return { a: nt(e6[1]), r: Q(e6[2]), g: Q(e6[3]), b: Q(e6[4]), format: n6 ? "name" : "hex8" }; + if (e6 = S.hex6.exec(t6)) + return { r: Q(e6[1]), g: Q(e6[2]), b: Q(e6[3]), format: n6 ? "name" : "hex" }; + if (e6 = S.hex3.exec(t6)) + return { r: Q(e6[1] + "" + e6[1]), g: Q(e6[2] + "" + e6[2]), b: Q(e6[3] + "" + e6[3]), format: n6 ? "name" : "hex" }; + return false; + }(t5)); + (0, a.Z)(t5) == "object" && (t5.hasOwnProperty("r") && t5.hasOwnProperty("g") && t5.hasOwnProperty("b") ? (o3 = t5.r, s3 = t5.g, l2 = t5.b, e5 = { r: 255 * J(o3, 255), g: 255 * J(s3, 255), b: 255 * J(l2, 255) }, r5 = true, i3 = String(t5.r).substr(-1) === "%" ? "prgb" : "rgb") : t5.hasOwnProperty("h") && t5.hasOwnProperty("s") && t5.hasOwnProperty("v") ? (t5.s = et(t5.s), t5.v = et(t5.v), e5 = function(t6, e6, n6) { + t6 = 6 * J(t6, 360), e6 = J(e6, 100), n6 = J(n6, 100); + var r6 = p2.floor(t6), i4 = t6 - r6, o4 = n6 * (1 - e6), s4 = n6 * (1 - i4 * e6), a2 = n6 * (1 - (1 - i4) * e6), l3 = r6 % 6; + return { r: 255 * [n6, s4, o4, o4, a2, n6][l3], g: 255 * [a2, n6, n6, s4, o4, o4][l3], b: 255 * [o4, o4, a2, n6, n6, s4][l3] }; + }(t5.h, t5.s, t5.v), r5 = true, i3 = "hsv") : t5.hasOwnProperty("h") && t5.hasOwnProperty("s") && t5.hasOwnProperty("l") && (t5.s = et(t5.s), t5.l = et(t5.l), e5 = function(t6, e6, n6) { + var r6, i4, o4; + function s4(t7, e7, n7) { + return n7 < 0 && (n7 += 1), n7 > 1 && (n7 -= 1), n7 < 1 / 6 ? t7 + 6 * (e7 - t7) * n7 : n7 < 0.5 ? e7 : n7 < 2 / 3 ? t7 + (e7 - t7) * (2 / 3 - n7) * 6 : t7; + } + if (t6 = J(t6, 360), e6 = J(e6, 100), n6 = J(n6, 100), e6 === 0) + r6 = i4 = o4 = n6; + else { + var a2 = n6 < 0.5 ? n6 * (1 + e6) : n6 + e6 - n6 * e6, l3 = 2 * n6 - a2; + r6 = s4(l3, a2, t6 + 1 / 3), i4 = s4(l3, a2, t6), o4 = s4(l3, a2, t6 - 1 / 3); + } + return { r: 255 * r6, g: 255 * i4, b: 255 * o4 }; + }(t5.h, t5.s, t5.l), r5 = true, i3 = "hsl"), t5.hasOwnProperty("a") && (n5 = t5.a)); + var o3, s3, l2; + return n5 = Y(n5), { ok: r5, format: t5.format || i3, r: v(255, m(e5.r, 0)), g: v(255, m(e5.g, 0)), b: v(255, m(e5.b, 0)), a: n5 }; + }(e4); + this._originalInput = e4, this._r = r4.r, this._g = r4.g, this._b = r4.b, this._a = r4.a, this._roundA = g(100 * this._a) / 100, this._format = n4.format || r4.format, this._gradientType = n4.gradientType, this._r < 1 && (this._r = g(this._r)), this._g < 1 && (this._g = g(this._g)), this._b < 1 && (this._b = g(this._b)), this._ok = r4.ok, this._tc_id = d2++; + }; + b.prototype = { isDark: function() { + return this.getBrightness() < 128; + }, isLight: function() { + return !this.isDark(); + }, isValid: function() { + return this._ok; + }, getOriginalInput: function() { + return this._originalInput; + }, getFormat: function() { + return this._format; + }, getAlpha: function() { + return this._a; + }, getBrightness: function() { + var t4 = this.toRgb(); + return (299 * t4.r + 587 * t4.g + 114 * t4.b) / 1e3; + }, setAlpha: function(t4) { + return this._a = Y(t4), this._roundA = g(100 * this._a) / 100, this; + }, toHsv: function() { + var t4 = L(this._r, this._g, this._b); + return { h: 360 * t4.h, s: t4.s, v: t4.v, a: this._a }; + }, toHsvString: function() { + var t4 = L(this._r, this._g, this._b), e4 = g(360 * t4.h), n4 = g(100 * t4.s), r4 = g(100 * t4.v); + return this._a == 1 ? "hsv(" + e4 + ", " + n4 + "%, " + r4 + "%)" : "hsva(" + e4 + ", " + n4 + "%, " + r4 + "%, " + this._roundA + ")"; + }, toHsl: function() { + var t4 = A(this._r, this._g, this._b); + return { h: 360 * t4.h, s: t4.s, l: t4.l, a: this._a }; + }, toHslString: function() { + var t4 = A(this._r, this._g, this._b), e4 = g(360 * t4.h), n4 = g(100 * t4.s), r4 = g(100 * t4.l); + return this._a == 1 ? "hsl(" + e4 + ", " + n4 + "%, " + r4 + "%)" : "hsla(" + e4 + ", " + n4 + "%, " + r4 + "%, " + this._roundA + ")"; + }, toHex: function(t4) { + return R(this._r, this._g, this._b, t4); + }, toHexString: function(t4) { + return "#" + this.toHex(t4); + }, toHex8: function() { + return N(this._r, this._g, this._b, this._a); + }, toHex8String: function() { + return "#" + this.toHex8(); + }, toRgb: function() { + return { r: g(this._r), g: g(this._g), b: g(this._b), a: this._a }; + }, toRgbString: function() { + return this._a == 1 ? "rgb(" + g(this._r) + ", " + g(this._g) + ", " + g(this._b) + ")" : "rgba(" + g(this._r) + ", " + g(this._g) + ", " + g(this._b) + ", " + this._roundA + ")"; + }, toPercentageRgb: function() { + return { r: g(100 * J(this._r, 255)) + "%", g: g(100 * J(this._g, 255)) + "%", b: g(100 * J(this._b, 255)) + "%", a: this._a }; + }, toPercentageRgbString: function() { + return this._a == 1 ? "rgb(" + g(100 * J(this._r, 255)) + "%, " + g(100 * J(this._g, 255)) + "%, " + g(100 * J(this._b, 255)) + "%)" : "rgba(" + g(100 * J(this._r, 255)) + "%, " + g(100 * J(this._g, 255)) + "%, " + g(100 * J(this._b, 255)) + "%, " + this._roundA + ")"; + }, toName: function() { + return this._a === 0 ? "transparent" : !(this._a < 1) && (k[R(this._r, this._g, this._b, true)] || false); + }, toFilter: function(t4) { + var e4 = "#" + N(this._r, this._g, this._b, this._a), n4 = e4, r4 = this._gradientType ? "GradientType = 1, " : ""; + t4 && (n4 = b(t4).toHex8String()); + return "progid:DXImageTransform.Microsoft.gradient(" + r4 + "startColorstr=" + e4 + ",endColorstr=" + n4 + ")"; + }, toString: function(t4) { + var e4 = !!t4; + t4 = t4 || this._format; + var n4 = false, r4 = this._a < 1 && this._a >= 0; + return e4 || !r4 || t4 !== "hex" && t4 !== "hex6" && t4 !== "hex3" && t4 !== "name" ? (t4 === "rgb" && (n4 = this.toRgbString()), t4 === "prgb" && (n4 = this.toPercentageRgbString()), t4 !== "hex" && t4 !== "hex6" || (n4 = this.toHexString()), t4 === "hex3" && (n4 = this.toHexString(true)), t4 === "hex8" && (n4 = this.toHex8String()), t4 === "name" && (n4 = this.toName()), t4 === "hsl" && (n4 = this.toHslString()), t4 === "hsv" && (n4 = this.toHsvString()), n4 || this.toHexString()) : t4 === "name" && this._a === 0 ? this.toName() : this.toRgbString(); + }, _applyModification: function(t4, e4) { + var n4 = t4.apply(null, [this].concat([].slice.call(e4))); + return this._r = n4._r, this._g = n4._g, this._b = n4._b, this.setAlpha(n4._a), this; + }, lighten: function() { + return this._applyModification(V, arguments); + }, brighten: function() { + return this._applyModification(H, arguments); + }, darken: function() { + return this._applyModification(B, arguments); + }, desaturate: function() { + return this._applyModification(Z, arguments); + }, saturate: function() { + return this._applyModification(I, arguments); + }, greyscale: function() { + return this._applyModification(F, arguments); + }, spin: function() { + return this._applyModification(z, arguments); + }, _applyCombination: function(t4, e4) { + return t4.apply(null, [this].concat([].slice.call(e4))); + }, analogous: function() { + return this._applyCombination(G, arguments); + }, complement: function() { + return this._applyCombination(U, arguments); + }, monochromatic: function() { + return this._applyCombination(K, arguments); + }, splitcomplement: function() { + return this._applyCombination(q, arguments); + }, triad: function() { + return this._applyCombination(W, arguments); + }, tetrad: function() { + return this._applyCombination($, arguments); + } }, b.fromRatio = function(t4, e4) { + if ((0, a.Z)(t4) == "object") { + var n4 = {}; + for (var r4 in t4) + t4.hasOwnProperty(r4) && (n4[r4] = r4 === "a" ? t4[r4] : et(t4[r4])); + t4 = n4; + } + return b(t4, e4); + }, b.equals = function(t4, e4) { + return !(!t4 || !e4) && b(t4).toRgbString() == b(e4).toRgbString(); + }, b.random = function() { + return b.fromRatio({ r: y(), g: y(), b: y() }); + }, b.mix = function(t4, e4, n4) { + n4 = n4 === 0 ? 0 : n4 || 50; + var r4, i3 = b(t4).toRgb(), o3 = b(e4).toRgb(), s3 = n4 / 100, a2 = 2 * s3 - 1, l2 = o3.a - i3.a, c3 = 1 - (r4 = ((r4 = a2 * l2 == -1 ? a2 : (a2 + l2) / (1 + a2 * l2)) + 1) / 2), u3 = { r: o3.r * r4 + i3.r * c3, g: o3.g * r4 + i3.g * c3, b: o3.b * r4 + i3.b * c3, a: o3.a * s3 + i3.a * (1 - s3) }; + return b(u3); + }, b.readability = function(t4, e4) { + var n4 = b(t4), r4 = b(e4), i3 = n4.toRgb(), o3 = r4.toRgb(), s3 = n4.getBrightness(), a2 = r4.getBrightness(), l2 = Math.max(i3.r, o3.r) - Math.min(i3.r, o3.r) + Math.max(i3.g, o3.g) - Math.min(i3.g, o3.g) + Math.max(i3.b, o3.b) - Math.min(i3.b, o3.b); + return { brightness: Math.abs(s3 - a2), color: l2 }; + }, b.isReadable = function(t4, e4) { + var n4 = b.readability(t4, e4); + return n4.brightness > 125 && n4.color > 500; + }, b.mostReadable = function(t4, e4) { + for (var n4 = null, r4 = 0, i3 = false, o3 = 0; o3 < e4.length; o3++) { + var s3 = b.readability(t4, e4[o3]), a2 = s3.brightness > 125 && s3.color > 500, l2 = s3.brightness / 125 * 3 + s3.color / 500; + (a2 && !i3 || a2 && i3 && l2 > r4 || !a2 && !i3 && l2 > r4) && (i3 = a2, r4 = l2, n4 = b(e4[o3])); + } + return n4; + }; + var w, x, O, C = b.names = { aliceblue: "f0f8ff", antiquewhite: "faebd7", aqua: "0ff", aquamarine: "7fffd4", azure: "f0ffff", beige: "f5f5dc", bisque: "ffe4c4", black: "000", blanchedalmond: "ffebcd", blue: "00f", blueviolet: "8a2be2", brown: "a52a2a", burlywood: "deb887", burntsienna: "ea7e5d", cadetblue: "5f9ea0", chartreuse: "7fff00", chocolate: "d2691e", coral: "ff7f50", cornflowerblue: "6495ed", cornsilk: "fff8dc", crimson: "dc143c", cyan: "0ff", darkblue: "00008b", darkcyan: "008b8b", darkgoldenrod: "b8860b", darkgray: "a9a9a9", darkgreen: "006400", darkgrey: "a9a9a9", darkkhaki: "bdb76b", darkmagenta: "8b008b", darkolivegreen: "556b2f", darkorange: "ff8c00", darkorchid: "9932cc", darkred: "8b0000", darksalmon: "e9967a", darkseagreen: "8fbc8f", darkslateblue: "483d8b", darkslategray: "2f4f4f", darkslategrey: "2f4f4f", darkturquoise: "00ced1", darkviolet: "9400d3", deeppink: "ff1493", deepskyblue: "00bfff", dimgray: "696969", dimgrey: "696969", dodgerblue: "1e90ff", firebrick: "b22222", floralwhite: "fffaf0", forestgreen: "228b22", fuchsia: "f0f", gainsboro: "dcdcdc", ghostwhite: "f8f8ff", gold: "ffd700", goldenrod: "daa520", gray: "808080", green: "008000", greenyellow: "adff2f", grey: "808080", honeydew: "f0fff0", hotpink: "ff69b4", indianred: "cd5c5c", indigo: "4b0082", ivory: "fffff0", khaki: "f0e68c", lavender: "e6e6fa", lavenderblush: "fff0f5", lawngreen: "7cfc00", lemonchiffon: "fffacd", lightblue: "add8e6", lightcoral: "f08080", lightcyan: "e0ffff", lightgoldenrodyellow: "fafad2", lightgray: "d3d3d3", lightgreen: "90ee90", lightgrey: "d3d3d3", lightpink: "ffb6c1", lightsalmon: "ffa07a", lightseagreen: "20b2aa", lightskyblue: "87cefa", lightslategray: "789", lightslategrey: "789", lightsteelblue: "b0c4de", lightyellow: "ffffe0", lime: "0f0", limegreen: "32cd32", linen: "faf0e6", magenta: "f0f", maroon: "800000", mediumaquamarine: "66cdaa", mediumblue: "0000cd", mediumorchid: "ba55d3", mediumpurple: "9370db", mediumseagreen: "3cb371", mediumslateblue: "7b68ee", mediumspringgreen: "00fa9a", mediumturquoise: "48d1cc", mediumvioletred: "c71585", midnightblue: "191970", mintcream: "f5fffa", mistyrose: "ffe4e1", moccasin: "ffe4b5", navajowhite: "ffdead", navy: "000080", oldlace: "fdf5e6", olive: "808000", olivedrab: "6b8e23", orange: "ffa500", orangered: "ff4500", orchid: "da70d6", palegoldenrod: "eee8aa", palegreen: "98fb98", paleturquoise: "afeeee", palevioletred: "db7093", papayawhip: "ffefd5", peachpuff: "ffdab9", peru: "cd853f", pink: "ffc0cb", plum: "dda0dd", powderblue: "b0e0e6", purple: "800080", rebeccapurple: "663399", red: "f00", rosybrown: "bc8f8f", royalblue: "4169e1", saddlebrown: "8b4513", salmon: "fa8072", sandybrown: "f4a460", seagreen: "2e8b57", seashell: "fff5ee", sienna: "a0522d", silver: "c0c0c0", skyblue: "87ceeb", slateblue: "6a5acd", slategray: "708090", slategrey: "708090", snow: "fffafa", springgreen: "00ff7f", steelblue: "4682b4", tan: "d2b48c", teal: "008080", thistle: "d8bfd8", tomato: "ff6347", turquoise: "40e0d0", violet: "ee82ee", wheat: "f5deb3", white: "fff", whitesmoke: "f5f5f5", yellow: "ff0", yellowgreen: "9acd32" }, k = b.hexNames = function(t4) { + var e4 = {}; + for (var n4 in t4) + t4.hasOwnProperty(n4) && (e4[t4[n4]] = n4); + return e4; + }(C), S = (x = "[\\s|\\(]+(" + (w = "(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)") + ")[,|\\s]+(" + w + ")[,|\\s]+(" + w + ")\\s*\\)?", O = "[\\s|\\(]+(" + w + ")[,|\\s]+(" + w + ")[,|\\s]+(" + w + ")[,|\\s]+(" + w + ")\\s*\\)?", { rgb: new RegExp("rgb" + x), rgba: new RegExp("rgba" + O), hsl: new RegExp("hsl" + x), hsla: new RegExp("hsla" + O), hsv: new RegExp("hsv" + x), hsva: new RegExp("hsva" + O), hex3: /^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, hex6: /^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/, hex8: /^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/ }); + window.tinycolor = b, t3(function() { + t3.fn.spectrum.load && t3.fn.spectrum.processNativeColorInputs(); + }); + } + function P(e4, n4, r4, i3) { + for (var s3 = [], a2 = 0; a2 < e4.length; a2++) { + var l2 = e4[a2]; + if (l2) { + var c3 = b(l2), u3 = c3.toHsl().l < 0.5 ? "sp-thumb-el sp-thumb-dark" : "sp-thumb-el sp-thumb-light"; + u3 += b.equals(n4, l2) ? " sp-thumb-active" : ""; + var h3 = c3.toString(i3.preferredFormat || "rgb"), f3 = o2 ? "background-color:" + c3.toRgbString() : "filter:" + c3.toFilter(); + s3.push('<span title="' + h3 + '" data-color="' + c3.toRgbString() + '" class="' + u3 + '"><span class="sp-thumb-inner" style="' + f3 + ';"></span></span>'); + } else { + s3.push(t3("<div />").append(t3('<span data-color="" style="background-color:transparent;" class="sp-clear-display"></span>').attr("title", i3.noColorSelectedText)).html()); + } + } + return "<div class='sp-cf " + r4 + "'>" + s3.join("") + "</div>"; + } + function _(a2, l2) { + var u3, h3, f3, d3, p3 = function(e4, r4) { + var i3 = t3.extend({}, n3, e4); + return i3.callbacks = { move: j(i3.move, r4), change: j(i3.change, r4), show: j(i3.show, r4), hide: j(i3.hide, r4), beforeShow: j(i3.beforeShow, r4) }, i3; + }(l2, a2), g2 = p3.flat, v2 = p3.showSelectionPalette, m2 = p3.localStorageKey, y2 = p3.theme, w2 = p3.callbacks, x2 = (u3 = Wt, h3 = 10, function() { + var t4 = this, e4 = arguments, n4 = function() { + d3 = null, u3.apply(t4, e4); + }; + f3 && clearTimeout(d3), !f3 && d3 || (d3 = setTimeout(n4, h3)); + }), O2 = false, C2 = false, k2 = true, S2 = 0, _2 = 0, T2 = 0, A2 = 0, L2 = 0, R2 = 0, N2 = 0, Z2 = 0, I2 = 0, F2 = 0, V2 = 1, H2 = [], B2 = [], z2 = {}, U2 = p3.selectionPalette.slice(0), W2 = p3.maxSelectionSize, $2 = "sp-dragging", q2 = null, G2 = a2.ownerDocument, K2 = (G2.body, t3(a2)), Y2 = false, J2 = t3(c2, G2).addClass(y2), X2 = J2.find(".sp-picker-container"), Q2 = J2.find(".sp-color"), tt2 = J2.find(".sp-dragger"), et2 = J2.find(".sp-hue"), nt2 = J2.find(".sp-slider"), rt = J2.find(".sp-alpha-inner"), it = J2.find(".sp-alpha"), ot = J2.find(".sp-alpha-handle"), st = J2.find(".sp-input"), at = J2.find(".sp-palette"), lt = J2.find(".sp-initial"), ct = J2.find(".sp-cancel"), ut = J2.find(".sp-clear"), ht = J2.find(".sp-choose"), ft = J2.find(".sp-palette-toggle"), dt = K2.is("input"), pt = dt && K2.attr("type") === "color" && M(), gt = dt && !g2, vt = gt ? t3(s2).addClass(y2).addClass(p3.className).addClass(p3.replacerClassName) : t3([]), mt = gt ? vt : K2, yt = vt.find(".sp-preview-inner"), bt = p3.color || dt && K2.val(), wt = false, xt = p3.preferredFormat, Ot = !p3.showButtons || p3.clickoutFiresChange, Ct = !bt, kt = p3.allowEmpty && !pt; + function St() { + if (p3.showPaletteOnly && (p3.showPalette = true), ft.text(p3.showPaletteOnly ? p3.togglePaletteMoreText : p3.togglePaletteLessText), p3.palette) { + H2 = p3.palette.slice(0), B2 = t3.isArray(H2[0]) ? H2 : [H2], z2 = {}; + for (var e4 = 0; e4 < B2.length; e4++) + for (var n4 = 0; n4 < B2[e4].length; n4++) { + var r4 = b(B2[e4][n4]).toRgbString(); + z2[r4] = true; + } + } + J2.toggleClass("sp-flat", g2), J2.toggleClass("sp-input-disabled", !p3.showInput), J2.toggleClass("sp-alpha-enabled", p3.showAlpha), J2.toggleClass("sp-clear-enabled", kt), J2.toggleClass("sp-buttons-disabled", !p3.showButtons), J2.toggleClass("sp-palette-buttons-disabled", !p3.togglePaletteOnly), J2.toggleClass("sp-palette-disabled", !p3.showPalette), J2.toggleClass("sp-palette-only", p3.showPaletteOnly), J2.toggleClass("sp-initial-disabled", !p3.showInitial), J2.addClass(p3.className).addClass(p3.containerClassName), Wt(); + } + function Pt() { + if (m2 && window.localStorage) { + try { + var e4 = window.localStorage[m2].split(",#"); + e4.length > 1 && (delete window.localStorage[m2], t3.each(e4, function(t4, e5) { + _t(e5); + })); + } catch (t4) { + } + try { + U2 = window.localStorage[m2].split(";"); + } catch (t4) { + } + } + } + function _t(e4) { + if (v2) { + var n4 = b(e4).toRgbString(); + if (!z2[n4] && t3.inArray(n4, U2) === -1) + for (U2.push(n4); U2.length > W2; ) + U2.shift(); + if (m2 && window.localStorage) + try { + window.localStorage[m2] = U2.join(";"); + } catch (t4) { + } + } + } + function Tt() { + var e4 = Vt(), n4 = t3.map(B2, function(t4, n5) { + return P(t4, e4, "sp-palette-row sp-palette-row-" + n5, p3); + }); + Pt(), U2 && n4.push(P(function() { + var t4 = []; + if (p3.showPalette) + for (var e5 = 0; e5 < U2.length; e5++) { + var n5 = b(U2[e5]).toRgbString(); + z2[n5] || t4.push(U2[e5]); + } + return t4.reverse().slice(0, p3.maxSelectionSize); + }(), e4, "sp-palette-row sp-palette-row-selection", p3)), at.html(n4.join("")); + } + function Et() { + if (p3.showInitial) { + var t4 = wt, e4 = Vt(); + lt.html(P([t4, e4], e4, "sp-palette-row-initial", p3)); + } + } + function jt() { + (_2 <= 0 || S2 <= 0 || A2 <= 0) && Wt(), C2 = true, J2.addClass($2), q2 = null, K2.trigger("dragstart.spectrum", [Vt()]); + } + function Dt() { + C2 = false, J2.removeClass($2), K2.trigger("dragstop.spectrum", [Vt()]); + } + function Mt() { + var t4 = st.val(); + if (t4 !== null && t4 !== "" || !kt) { + var e4 = b(t4); + e4.isValid() ? (Ft(e4), Ut(true)) : st.addClass("sp-validation-error"); + } else + Ft(null), Ut(true); + } + function At() { + O2 ? Zt() : Lt(); + } + function Lt() { + var e4 = t3.Event("beforeShow.spectrum"); + if (O2) + Wt(); + else if (K2.trigger("beforeShow.spectrum", [Vt()]), w2.beforeShow(Vt()) !== false && !e4.isDefaultPrevented()) { + !function() { + for (var t4 = 0; t4 < r3.length; t4++) + r3[t4] && r3[t4].hide(); + }(), O2 = true; + var n4 = t3(G2); + n4.bind("keydown.spectrum", Rt), n4.bind("click.spectrum", Nt), t3(window).bind("resize.spectrum", x2), vt.addClass("sp-active"), J2.removeClass("sp-hidden"), Wt(), Bt(), wt = Vt(), Et(), w2.show(wt), K2.trigger("show.spectrum", [wt]); + } + } + function Rt(t4) { + t4.keyCode === 27 && Zt(); + } + function Nt(t4) { + t4.button != 2 && (C2 || (Ot ? Ut(true) : It(), Zt())); + } + function Zt() { + O2 && !g2 && (O2 = false, t3(G2).unbind("keydown.spectrum", Rt), t3(G2).unbind("click.spectrum", Nt), t3(window).unbind("resize.spectrum", x2), vt.removeClass("sp-active"), J2.addClass("sp-hidden"), w2.hide(Vt()), K2.trigger("hide.spectrum", [Vt()])); + } + function It() { + Ft(wt, true); + } + function Ft(t4, e4) { + var n4, r4; + b.equals(t4, Vt()) ? Bt() : (!t4 && kt ? Ct = true : (Ct = false, k2 = !t4, r4 = (n4 = b(t4)).toHsv(), Z2 = r4.h % 360 / 360, I2 = r4.s, F2 = r4.v, V2 = r4.a), Bt(), n4 && n4.isValid() && !e4 && (xt = p3.preferredFormat || n4.getFormat())); + } + function Vt(t4) { + return t4 = t4 || {}, kt && Ct ? null : b.fromRatio({ h: Z2, s: I2, v: F2, a: Math.round(100 * V2) / 100 }, { format: t4.format || xt }); + } + function Ht() { + Bt(), w2.move(Vt()), K2.trigger("move.spectrum", [Vt()]); + } + function Bt() { + st.removeClass("sp-validation-error"), zt(); + var t4 = b.fromRatio({ h: Z2, s: 1, v: 1 }); + Q2.css("background-color", t4.toHexString()); + var e4 = xt; + V2 < 1 && (V2 !== 0 || e4 !== "name") && (e4 !== "hex" && e4 !== "hex3" && e4 !== "hex6" && e4 !== "name" || (e4 = "rgb")); + var n4 = Vt({ format: e4 }), r4 = ""; + if (yt.removeClass("sp-clear-display"), yt.css("background-color", "transparent"), !n4 && kt) + yt.addClass("sp-clear-display"); + else { + var s3 = n4.toHexString(), a3 = n4.toRgbString(); + if (o2 || n4.alpha === 1 ? yt.css("background-color", a3) : (yt.css("background-color", "transparent"), yt.css("filter", n4.toFilter())), p3.showAlpha) { + var l3 = n4.toRgb(); + l3.a = 0; + var c3 = b(l3).toRgbString(), u4 = "linear-gradient(left, " + c3 + ", " + s3 + ")"; + i2 ? rt.css("filter", b(c3).toFilter({ gradientType: 1 }, s3)) : (rt.css("background", "-webkit-" + u4), rt.css("background", "-moz-" + u4), rt.css("background", "-ms-" + u4), rt.css("background", "linear-gradient(to right, " + c3 + ", " + s3 + ")")); + } + r4 = n4.toString(e4); + } + p3.showInput && st.val(r4), p3.showPalette && Tt(), Et(); + } + function zt() { + var t4 = I2, e4 = F2; + if (kt && Ct) + ot.hide(), nt2.hide(), tt2.hide(); + else { + ot.show(), nt2.show(), tt2.show(); + var n4 = t4 * S2, r4 = _2 - e4 * _2; + n4 = Math.max(-T2, Math.min(S2 - T2, n4 - T2)), r4 = Math.max(-T2, Math.min(_2 - T2, r4 - T2)), tt2.css({ top: r4 + "px", left: n4 + "px" }); + var i3 = V2 * L2; + ot.css({ left: i3 - R2 / 2 + "px" }); + var o3 = Z2 * A2; + nt2.css({ top: o3 - N2 + "px" }); + } + } + function Ut(t4) { + var e4 = Vt(), n4 = "", r4 = !!k2 || !b.equals(e4, wt); + e4 && (n4 = e4.toString(xt), !O2 && _t(e4)), dt && K2.val(n4), t4 && r4 && (w2.change(e4), K2.trigger("change", [e4])); + } + function Wt() { + O2 && (S2 = Q2.width(), _2 = Q2.height(), T2 = tt2.height(), et2.width(), A2 = et2.height(), N2 = nt2.height(), L2 = it.width(), R2 = ot.width(), g2 || (J2.css("position", "absolute"), p3.offset ? J2.offset(p3.offset) : J2.offset(function(e4, n4) { + var r4 = 0, i3 = e4.outerWidth(), o3 = e4.outerHeight(), s3 = n4.outerHeight(), a3 = e4[0].ownerDocument, l3 = a3.documentElement, c3 = l3.clientWidth, u4 = l3.clientHeight, h4 = t3(a3).scrollLeft(), f4 = t3(a3).scrollTop(), d4 = c3 + h4, p4 = u4 + f4, g3 = n4.offset(); + return g3.top += s3, g3.left -= Math.min(g3.left, g3.left + i3 > d4 && d4 > i3 ? Math.abs(g3.left + i3 - d4) : 0), g3.top -= Math.min(g3.top, g3.top + o3 > p4 && p4 > o3 ? Math.abs(o3 + s3 - r4) : r4), g3; + }(J2, mt))), zt(), p3.showPalette && Tt(), K2.trigger("reflow.spectrum")); + } + function $t() { + Zt(), Y2 = true, K2.attr("disabled", true), mt.addClass("sp-disabled"); + } + !function() { + if (i2 && J2.find("*:not(input)").attr("unselectable", "on"), St(), gt && K2.after(vt).hide(), kt || ut.hide(), g2) + K2.after(J2).hide(); + else { + var e4 = p3.appendTo === "parent" ? K2.parent() : t3(p3.appendTo); + e4.length !== 1 && (e4 = t3("body")), e4.append(J2); + } + function n4(e5) { + return e5.data && e5.data.ignore ? (Ft(t3(e5.target).closest(".sp-thumb-el").data("color")), Ht()) : (Ft(t3(e5.target).closest(".sp-thumb-el").data("color")), Ht(), p3.hideAfterPaletteSelect && (Ut(true), Zt())), false; + } + Pt(), mt.bind("click.spectrum touchstart.spectrum", function(e5) { + Y2 || At(), e5.stopPropagation(), t3(e5.target).is("input") || e5.preventDefault(); + }), (K2.is(":disabled") || p3.disabled === true) && $t(), J2.click(E), st.change(Mt), st.bind("paste", function() { + setTimeout(Mt, 1); + }), st.keydown(function(t4) { + t4.keyCode == 13 && Mt(); + }), ct.text(p3.cancelText), ct.bind("click.spectrum", function(t4) { + t4.stopPropagation(), t4.preventDefault(), It(), Zt(); + }), ut.attr("title", p3.clearText), ut.bind("click.spectrum", function(t4) { + t4.stopPropagation(), t4.preventDefault(), Ct = true, Ht(), g2 && Ut(true); + }), ht.text(p3.chooseText), ht.bind("click.spectrum", function(t4) { + t4.stopPropagation(), t4.preventDefault(), i2 && st.is(":focus") && st.trigger("change"), st.hasClass("sp-validation-error") || (Ut(true), Zt()); + }), ft.text(p3.showPaletteOnly ? p3.togglePaletteMoreText : p3.togglePaletteLessText), ft.bind("click.spectrum", function(t4) { + t4.stopPropagation(), t4.preventDefault(), p3.showPaletteOnly = !p3.showPaletteOnly, p3.showPaletteOnly || g2 || J2.css("left", "-=" + (X2.outerWidth(true) + 5)), St(); + }), D(it, function(t4, e5, n5) { + V2 = t4 / L2, Ct = false, n5.shiftKey && (V2 = Math.round(10 * V2) / 10), Ht(); + }, jt, Dt), D(et2, function(t4, e5) { + Z2 = parseFloat(e5 / A2), Ct = false, p3.showAlpha || (V2 = 1), Ht(); + }, jt, Dt), D(Q2, function(t4, e5, n5) { + if (n5.shiftKey) { + if (!q2) { + var r5 = I2 * S2, i3 = _2 - F2 * _2, o3 = Math.abs(t4 - r5) > Math.abs(e5 - i3); + q2 = o3 ? "x" : "y"; + } + } else + q2 = null; + var s3 = !q2 || q2 === "y"; + (!q2 || q2 === "x") && (I2 = parseFloat(t4 / S2)), s3 && (F2 = parseFloat((_2 - e5) / _2)), Ct = false, p3.showAlpha || (V2 = 1), Ht(); + }, jt, Dt), bt ? (Ft(bt), Bt(), xt = p3.preferredFormat || b(bt).getFormat(), _t(bt)) : Bt(), g2 && Lt(); + var r4 = i2 ? "mousedown.spectrum" : "click.spectrum touchstart.spectrum"; + at.delegate(".sp-thumb-el", r4, n4), lt.delegate(".sp-thumb-el:nth-child(1)", r4, { ignore: true }, n4); + }(); + var qt = { show: Lt, hide: Zt, toggle: At, reflow: Wt, option: function(n4, r4) { + return n4 === e3 ? t3.extend({}, p3) : r4 === e3 ? p3[n4] : (p3[n4] = r4, n4 === "preferredFormat" && (xt = p3.preferredFormat), void St()); + }, enable: function() { + Y2 = false, K2.attr("disabled", false), mt.removeClass("sp-disabled"); + }, disable: $t, offset: function(t4) { + p3.offset = t4, Wt(); + }, set: function(t4) { + Ft(t4), Ut(); + }, get: Vt, destroy: function() { + K2.show(), mt.unbind("click.spectrum touchstart.spectrum"), J2.remove(), vt.remove(), r3[qt.id] = null; + }, container: J2 }; + return qt.id = r3.push(qt) - 1, qt; + } + function T() { + } + function E(t4) { + t4.stopPropagation(); + } + function j(t4, e4) { + var n4 = Array.prototype.slice, r4 = n4.call(arguments, 2); + return function() { + return t4.apply(e4, r4.concat(n4.call(arguments))); + }; + } + function D(e4, n4, r4, o3) { + n4 = n4 || function() { + }, r4 = r4 || function() { + }, o3 = o3 || function() { + }; + var s3 = document, a2 = false, l2 = {}, c3 = 0, u3 = 0, h3 = "ontouchstart" in window, f3 = {}; + function d3(t4) { + t4.stopPropagation && t4.stopPropagation(), t4.preventDefault && t4.preventDefault(), t4.returnValue = false; + } + function p3(t4) { + if (a2) { + if (i2 && s3.documentMode < 9 && !t4.button) + return g2(); + var r5 = t4 && t4.touches && t4.touches[0], o4 = r5 && r5.pageX || t4.pageX, f4 = r5 && r5.pageY || t4.pageY, p4 = Math.max(0, Math.min(o4 - l2.left, u3)), v2 = Math.max(0, Math.min(f4 - l2.top, c3)); + h3 && d3(t4), n4.apply(e4, [p4, v2, t4]); + } + } + function g2() { + a2 && (t3(s3).unbind(f3), t3(s3.body).removeClass("sp-dragging"), setTimeout(function() { + o3.apply(e4, arguments); + }, 0)), a2 = false; + } + f3.selectstart = d3, f3.dragstart = d3, f3["touchmove mousemove"] = p3, f3["touchend mouseup"] = g2, t3(e4).bind("touchstart mousedown", function(n5) { + var i3 = n5.which ? n5.which == 3 : n5.button == 2; + i3 || a2 || r4.apply(e4, arguments) !== false && (a2 = true, c3 = t3(e4).height(), u3 = t3(e4).width(), l2 = t3(e4).offset(), t3(s3).bind(f3), t3(s3.body).addClass("sp-dragging"), p3(n5), d3(n5)); + }); + } + function M() { + return t3.fn.spectrum.inputTypeColorSupport(); + } + function A(t4, e4, n4) { + t4 = J(t4, 255), e4 = J(e4, 255), n4 = J(n4, 255); + var r4, i3, o3 = m(t4, e4, n4), s3 = v(t4, e4, n4), a2 = (o3 + s3) / 2; + if (o3 == s3) + r4 = i3 = 0; + else { + var l2 = o3 - s3; + switch (i3 = a2 > 0.5 ? l2 / (2 - o3 - s3) : l2 / (o3 + s3), o3) { + case t4: + r4 = (e4 - n4) / l2 + (e4 < n4 ? 6 : 0); + break; + case e4: + r4 = (n4 - t4) / l2 + 2; + break; + case n4: + r4 = (t4 - e4) / l2 + 4; + } + r4 /= 6; + } + return { h: r4, s: i3, l: a2 }; + } + function L(t4, e4, n4) { + t4 = J(t4, 255), e4 = J(e4, 255), n4 = J(n4, 255); + var r4, i3, o3 = m(t4, e4, n4), s3 = v(t4, e4, n4), a2 = o3, l2 = o3 - s3; + if (i3 = o3 === 0 ? 0 : l2 / o3, o3 == s3) + r4 = 0; + else { + switch (o3) { + case t4: + r4 = (e4 - n4) / l2 + (e4 < n4 ? 6 : 0); + break; + case e4: + r4 = (n4 - t4) / l2 + 2; + break; + case n4: + r4 = (t4 - e4) / l2 + 4; + } + r4 /= 6; + } + return { h: r4, s: i3, v: a2 }; + } + function R(t4, e4, n4, r4) { + var i3 = [tt(g(t4).toString(16)), tt(g(e4).toString(16)), tt(g(n4).toString(16))]; + return r4 && i3[0].charAt(0) == i3[0].charAt(1) && i3[1].charAt(0) == i3[1].charAt(1) && i3[2].charAt(0) == i3[2].charAt(1) ? i3[0].charAt(0) + i3[1].charAt(0) + i3[2].charAt(0) : i3.join(""); + } + function N(t4, e4, n4, r4) { + var i3; + return [tt((i3 = r4, Math.round(255 * parseFloat(i3)).toString(16))), tt(g(t4).toString(16)), tt(g(e4).toString(16)), tt(g(n4).toString(16))].join(""); + } + function Z(t4, e4) { + e4 = e4 === 0 ? 0 : e4 || 10; + var n4 = b(t4).toHsl(); + return n4.s -= e4 / 100, n4.s = X(n4.s), b(n4); + } + function I(t4, e4) { + e4 = e4 === 0 ? 0 : e4 || 10; + var n4 = b(t4).toHsl(); + return n4.s += e4 / 100, n4.s = X(n4.s), b(n4); + } + function F(t4) { + return b(t4).desaturate(100); + } + function V(t4, e4) { + e4 = e4 === 0 ? 0 : e4 || 10; + var n4 = b(t4).toHsl(); + return n4.l += e4 / 100, n4.l = X(n4.l), b(n4); + } + function H(t4, e4) { + e4 = e4 === 0 ? 0 : e4 || 10; + var n4 = b(t4).toRgb(); + return n4.r = m(0, v(255, n4.r - g(-e4 / 100 * 255))), n4.g = m(0, v(255, n4.g - g(-e4 / 100 * 255))), n4.b = m(0, v(255, n4.b - g(-e4 / 100 * 255))), b(n4); + } + function B(t4, e4) { + e4 = e4 === 0 ? 0 : e4 || 10; + var n4 = b(t4).toHsl(); + return n4.l -= e4 / 100, n4.l = X(n4.l), b(n4); + } + function z(t4, e4) { + var n4 = b(t4).toHsl(), r4 = (g(n4.h) + e4) % 360; + return n4.h = r4 < 0 ? 360 + r4 : r4, b(n4); + } + function U(t4) { + var e4 = b(t4).toHsl(); + return e4.h = (e4.h + 180) % 360, b(e4); + } + function W(t4) { + var e4 = b(t4).toHsl(), n4 = e4.h; + return [b(t4), b({ h: (n4 + 120) % 360, s: e4.s, l: e4.l }), b({ h: (n4 + 240) % 360, s: e4.s, l: e4.l })]; + } + function $(t4) { + var e4 = b(t4).toHsl(), n4 = e4.h; + return [b(t4), b({ h: (n4 + 90) % 360, s: e4.s, l: e4.l }), b({ h: (n4 + 180) % 360, s: e4.s, l: e4.l }), b({ h: (n4 + 270) % 360, s: e4.s, l: e4.l })]; + } + function q(t4) { + var e4 = b(t4).toHsl(), n4 = e4.h; + return [b(t4), b({ h: (n4 + 72) % 360, s: e4.s, l: e4.l }), b({ h: (n4 + 216) % 360, s: e4.s, l: e4.l })]; + } + function G(t4, e4, n4) { + e4 = e4 || 6, n4 = n4 || 30; + var r4 = b(t4).toHsl(), i3 = 360 / n4, o3 = [b(t4)]; + for (r4.h = (r4.h - (i3 * e4 >> 1) + 720) % 360; --e4; ) + r4.h = (r4.h + i3) % 360, o3.push(b(r4)); + return o3; + } + function K(t4, e4) { + e4 = e4 || 6; + for (var n4 = b(t4).toHsv(), r4 = n4.h, i3 = n4.s, o3 = n4.v, s3 = [], a2 = 1 / e4; e4--; ) + s3.push(b({ h: r4, s: i3, v: o3 })), o3 = (o3 + a2) % 1; + return s3; + } + function Y(t4) { + return t4 = parseFloat(t4), (isNaN(t4) || t4 < 0 || t4 > 1) && (t4 = 1), t4; + } + function J(t4, e4) { + (function(t5) { + return typeof t5 == "string" && t5.indexOf(".") != -1 && parseFloat(t5) === 1; + })(t4) && (t4 = "100%"); + var n4 = function(t5) { + return typeof t5 == "string" && t5.indexOf("%") != -1; + }(t4); + return t4 = v(e4, m(0, parseFloat(t4))), n4 && (t4 = parseInt(t4 * e4, 10) / 100), p2.abs(t4 - e4) < 1e-6 ? 1 : t4 % e4 / parseFloat(e4); + } + function X(t4) { + return v(1, m(0, t4)); + } + function Q(t4) { + return parseInt(t4, 16); + } + function tt(t4) { + return t4.length == 1 ? "0" + t4 : "" + t4; + } + function et(t4) { + return t4 <= 1 && (t4 = 100 * t4 + "%"), t4; + } + function nt(t4) { + return Q(t4) / 255; + } + }(f); + var d = function(t3) { + var e3 = t3.getFormat() === "name" && t3.toName(), n3 = t3.getAlpha() == 1 ? t3.toHexString() : t3.toRgbString(); + return e3 || n3.replace(/ /g, ""); + }; + const p = c.Z.extend({ template: function() { + var t3 = this.ppfx; + return '\n <div class="'.concat(this.holderClass(), '"></div>\n <div class="').concat(t3, 'field-colorp">\n <div class="').concat(t3, 'field-colorp-c" data-colorp-c>\n <div class="').concat(t3, 'checker-bg"></div>\n </div>\n </div>\n '); + }, inputClass: function() { + var t3 = this.ppfx; + return "".concat(t3, "field ").concat(t3, "field-color"); + }, holderClass: function() { + return "".concat(this.ppfx, "input-holder"); + }, remove: function() { + c.Z.prototype.remove.apply(this, arguments), this.colorEl.spectrum("destroy"); + }, handleChange: function(t3) { + t3.stopPropagation(); + var e3 = t3.target.value; + (0, s.isUndefined)(e3) || this.__onInputChange(e3); + }, __onInputChange: function(t3) { + var e3 = this.model, n3 = this.opts.onChange, r3 = t3, i2 = this.getColorEl(); + if (i2) { + i2.spectrum("set", r3); + var o2 = i2.spectrum("get"), s2 = r3 && d(o2); + s2 && (r3 = s2); + } + n3 ? n3(r3) : e3.set({ value: r3 }, { fromInput: 1 }); + }, setValue: function(t3) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n3 = this.model, r3 = (0, s.isUndefined)(e3.def) ? n3.get("defaults") : e3.def, i2 = (0, s.isUndefined)(t3) ? (0, s.isUndefined)(r3) ? "" : r3 : t3, o2 = this.getInputEl(), a2 = this.getColorEl(), l2 = i2 != "none" ? i2 : ""; + o2.value = i2, a2.get(0).style.backgroundColor = l2, (e3.fromTarget || e3.fromInput && !e3.avoidStore) && (a2.spectrum("set", l2), this.noneColor = i2 == "none"); + }, getColorEl: function() { + if (!this.colorEl) { + var t3, e3 = this.em, n3 = this.model, r3 = this.opts, i2 = this, o2 = this.ppfx, s2 = r3.onChange, a2 = f('<div class="'.concat(this.ppfx, 'field-color-picker"></div>')), l2 = a2.get(0).style, c2 = e3 && e3.config ? e3.config.el : "", u2 = e3 && e3.getConfig && e3.getConfig("colorPicker") || {}, p2 = 0; + this.$el.find("[data-colorp-c]").append(a2), a2.spectrum(h(h(h({ color: n3.getValue() || false, containerClassName: "".concat(o2, "one-bg ").concat(o2, "two-color"), appendTo: c2 || "body", maxSelectionSize: 8, showPalette: true, showAlpha: true, chooseText: "Ok", cancelText: "\u2A2F", palette: [] }, u2), n3.get("colorPicker") || {}), {}, { move: function(t4) { + var e4 = d(t4); + l2.backgroundColor = e4, s2 ? s2(e4, true) : n3.setValueFromInput(e4, 0); + }, change: function(t4) { + p2 = 1; + var e4 = d(t4); + l2.backgroundColor = e4, s2 ? s2(e4) : (n3.setValueFromInput(0, 0), n3.setValueFromInput(e4)), i2.noneColor = 0; + }, show: function(e4) { + p2 = 0, t3 = s2 ? n3.getValue({ noDefault: true }) : d(e4); + }, hide: function(e4) { + p2 || !t3 && !s2 || (i2.noneColor && (t3 = ""), l2.backgroundColor = t3, a2.spectrum("set", t3), s2 ? s2(t3, true) : n3.setValueFromInput(t3, 0)); + } })), e3 && e3.on && this.listenTo(e3, "component:selected", function() { + p2 = 1, a2.spectrum("hide"); + }), this.colorEl = a2; + } + return this.colorEl; + }, render: function() { + return c.Z.prototype.render.call(this), this.getColorEl(), this; + } }); + }, 7610: (t2, e2, n2) => { + "use strict"; + n2.d(e2, { Z: () => l }); + var r2 = n2(2316), i = n2.n(r2), o = n2(9050), s = n2(6183), a = n2(8659); + i().$; + const l = a.Z.extend({ events: { "change input": "handleChange", "change select": "handleUnitChange", "click [data-arrow-up]": "upArrowClick", "click [data-arrow-down]": "downArrowClick", "mousedown [data-arrows]": "downIncrement", keydown: "handleKeyDown" }, template: function() { + var t3 = this.ppfx; + return '\n <span class="'.concat(t3, 'input-holder"></span>\n <span class="').concat(t3, 'field-units"></span>\n <div class="').concat(t3, 'field-arrows" data-arrows>\n <div class="').concat(t3, 'field-arrow-u" data-arrow-up></div>\n <div class="').concat(t3, 'field-arrow-d" data-arrow-down></div>\n </div>\n '); + }, inputClass: function() { + var t3 = this.ppfx; + return this.opts.contClass || "".concat(t3, "field ").concat(t3, "field-integer"); + }, initialize: function() { + a.Z.prototype.initialize.apply(this, arguments), (0, o.bindAll)(this, "moveIncrement", "upIncrement"), this.doc = document, this.listenTo(this.model, "change:unit", this.handleModelChange); + }, setValue: function(t3, e3) { + var n3 = e3 || {}, r3 = this.validateInputValue(t3, { deepCheck: 1 }), i2 = { value: r3.value }; + (r3.unit || r3.force) && (i2.unit = r3.unit), this.model.set(i2, n3), n3.silent && this.handleModelChange(); + }, handleChange: function(t3) { + t3.stopPropagation(), this.setValue(this.getInputEl().value), this.elementUpdated(); + }, handleUnitChange: function(t3) { + t3.stopPropagation(); + var e3 = this.getUnitEl().value; + this.model.set("unit", e3), this.elementUpdated(); + }, handleKeyDown: function(t3) { + t3.key === "ArrowUp" && (t3.preventDefault(), this.upArrowClick()), t3.key === "ArrowDown" && (t3.preventDefault(), this.downArrowClick()); + }, elementUpdated: function() { + this.model.trigger("el:change"); + }, handleModelChange: function() { + var t3 = this.model; + this.getInputEl().value = t3.get("value"); + var e3 = this.getUnitEl(); + e3 && (e3.value = t3.get("unit") || ""); + }, getUnitEl: function() { + if (!this.unitEl) { + var t3 = this.model, e3 = t3.get("units") || []; + if (e3.length) { + var n3 = ['<option value="" disabled hidden>-</option>']; + e3.forEach(function(e4) { + var r4 = e4 == t3.get("unit") ? "selected" : ""; + n3.push("<option ".concat(r4, ">").concat(e4, "</option>")); + }); + var r3 = document.createElement("div"); + r3.innerHTML = '<select class="'.concat(this.ppfx, 'input-unit">').concat(n3.join(""), "</select>"), this.unitEl = r3.firstChild; + } + } + return this.unitEl; + }, upArrowClick: function() { + var t3 = this.model, e3 = t3.get("step"), n3 = parseFloat(t3.get("value")); + this.setValue(this.normalizeValue(n3 + e3)), this.elementUpdated(); + }, downArrowClick: function() { + var t3 = this.model, e3 = t3.get("step"), n3 = parseFloat(t3.get("value")); + this.setValue(this.normalizeValue(n3 - e3)), this.elementUpdated(); + }, downIncrement: function(t3) { + t3.preventDefault(), this.moved = 0; + var e3 = this.model.get("value") || 0; + e3 = this.normalizeValue(e3), this.current = { y: t3.pageY, val: e3 }, (0, s.on)(this.doc, "mousemove", this.moveIncrement), (0, s.on)(this.doc, "mouseup", this.upIncrement); + }, moveIncrement: function(t3) { + this.moved = 1; + var e3 = this.model, n3 = e3.get("step"), r3 = this.current, i2 = this.normalizeValue(r3.val + (r3.y - t3.pageY) * n3), o2 = this.validateInputValue(i2), s2 = o2.value, a2 = o2.unit; + return this.prValue = s2, e3.set({ value: s2, unit: a2 }, { avoidStore: 1 }), false; + }, upIncrement: function() { + var t3 = this.model, e3 = t3.get("step"); + if ((0, s.off)(this.doc, "mouseup", this.upIncrement), (0, s.off)(this.doc, "mousemove", this.moveIncrement), this.prValue && this.moved) { + var n3 = this.prValue - e3; + t3.set("value", n3, { avoidStore: 1 }).set("value", n3 + e3), this.elementUpdated(); + } + }, normalizeValue: function(t3) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n3 = this.model, r3 = n3.get("step"), i2 = 0; + if (isNaN(t3)) + return e3; + if (t3 = parseFloat(t3), Math.floor(t3) !== t3) { + var o2 = r3.toString().split(".")[1]; + i2 = o2 ? o2.length : 0; + } + return i2 ? parseFloat(t3.toFixed(i2)) : t3; + }, validateInputValue: function(t3) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n3 = 0, r3 = e3 || {}, i2 = this.model, s2 = "", a2 = (0, o.isUndefined)(t3) ? s2 : t3, l2 = e3.units || i2.get("units") || [], c = i2.get("unit") || l2.length && l2[0] || "", u = (0, o.isUndefined)(e3.max) ? i2.get("max") : e3.max, h = (0, o.isUndefined)(e3.min) ? i2.get("min") : e3.min, f = !!i2.get("limitlessMax"), d = !!i2.get("limitlessMin"); + if (r3.deepCheck) { + var p = i2.get("fixedValues") || []; + if (a2 === "" && (c = ""), a2) { + var g = new RegExp("^" + p.join("|"), "g"); + if (p.length && g.test(a2)) + a2 = a2.match(g)[0], c = "", n3 = 1; + else { + var v = a2 + ""; + a2 += "", a2 = parseFloat(a2.replace(",", ".")), a2 = isNaN(a2) ? s2 : a2; + var m = v.replace(a2, ""); + (0, o.indexOf)(l2, m) >= 0 && (c = m); + } + } + } + return f || (0, o.isUndefined)(u) || u === "" || (a2 = a2 > u ? u : a2), d || (0, o.isUndefined)(h) || h === "" || (a2 = a2 < h ? h : a2), { force: n3, value: a2, unit: c }; + }, render: function() { + a.Z.prototype.render.call(this), this.unitEl = null; + var t3 = this.getUnitEl(); + return t3 && this.$el.find(".".concat(this.ppfx, "field-units")).get(0).appendChild(t3), this; + } }); + }, 6602: (t2, e2, n2) => { + "use strict"; + n2.d(e2, { Z: () => s }); + var r2 = n2(9050), i = n2(2316), o = n2.n(i); + const s = o().View.extend({ itemView: "", itemsView: "", itemType: "type", autoAdd: 0, initialize: function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e3 = arguments.length > 1 ? arguments[1] : void 0; + this.config = e3 || t3.config || {}, this.autoAdd && this.listenTo(this.collection, "add", this.addTo), this.items = [], this.init(); + }, init: function() { + }, addTo: function(t3) { + this.add(t3); + }, itemViewNotFound: function(t3) { + var e3 = this.config, n3 = this.ns, r3 = e3.em, i2 = "".concat(n3 ? "[".concat(n3, "]: ") : "", "'").concat(t3, "' type not found"); + r3 && r3.logWarning(i2); + }, add: function(t3, e3) { + var n3, i2 = this.config, o2 = this.reuseView, s2 = this.items, a = this.itemsView, l = a === void 0 ? {} : a, c = e3 || null, u = this.itemView, h = t3.get(this.itemType); + l[h] ? u = l[h] : !h || l[h] || (0, r2.includes)(["button", "checkbox", "color", "date", "datetime-local", "email", "file", "hidden", "image", "month", "number", "password", "radio", "range", "reset", "search", "submit", "tel", "text", "time", "url", "week"], h) || this.itemViewNotFound(h), n3 = t3.view && o2 ? t3.view : new u({ model: t3, config: i2 }, i2), s2 && s2.push(n3); + var f = n3.render().el; + c ? c.appendChild(f) : this.$el.append(f); + }, render: function() { + var t3 = document.createDocumentFragment(); + return this.clearItems(), this.$el.empty(), this.collection.length && this.collection.each(function(e3) { + this.add(e3, t3); + }, this), this.$el.append(t3), this.onRender(), this; + }, onRender: function() { + }, onRemoveBefore: function() { + }, onRemove: function() { + }, remove: function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e3 = this.items; + this.onRemoveBefore(e3, t3), this.clearItems(), o().View.prototype.remove.apply(this, arguments), this.onRemove(e3, t3); + }, clearItems: function() { + this.items; + } }); + }, 4836: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => d }); + var r2 = n2(4942), i = n2(1002), o = n2(9050), s = n2(6183), a = { placeholder: "eg. Text here" }; + const l = { locale: "en", localeFallback: "en", detectLocale: true, debug: false, messages: { en: { assetManager: { addButton: "Add image", inputPlh: "http://path/to/the/image.jpg", modalTitle: "Select Image", uploadTitle: "Drop files here or click to upload" }, blockManager: { labels: {}, categories: {} }, domComponents: { names: { "": "Box", wrapper: "Body", text: "Text", comment: "Comment", image: "Image", video: "Video", label: "Label", link: "Link", map: "Map", tfoot: "Table foot", tbody: "Table body", thead: "Table head", table: "Table", row: "Table row", cell: "Table cell" } }, deviceManager: { device: "Device", devices: { desktop: "Desktop", tablet: "Tablet", mobileLandscape: "Mobile Landscape", mobilePortrait: "Mobile Portrait" } }, panels: { buttons: { titles: { preview: "Preview", fullscreen: "Fullscreen", "sw-visibility": "View components", "export-template": "View code", "open-sm": "Open Style Manager", "open-tm": "Settings", "open-layers": "Open Layer Manager", "open-blocks": "Open Blocks" } } }, selectorManager: { label: "Classes", selected: "Selected", emptyState: "- State -", states: { hover: "Hover", active: "Click", "nth-of-type(2n)": "Even/Odd" } }, styleManager: { empty: "Select an element before using Style Manager", layer: "Layer", fileButton: "Images", sectors: { general: "General", layout: "Layout", typography: "Typography", decorations: "Decorations", extra: "Extra", flex: "Flex", dimension: "Dimension" }, properties: { "text-shadow-h": "X", "text-shadow-v": "Y", "text-shadow-blur": "Blur", "text-shadow-color": "Color", "box-shadow-h": "X", "box-shadow-v": "Y", "box-shadow-blur": "Blur", "box-shadow-spread": "Spread", "box-shadow-color": "Color", "box-shadow-type": "Type", "margin-top-sub": "Top", "margin-right-sub": "Right", "margin-bottom-sub": "Bottom", "margin-left-sub": "Left", "padding-top-sub": "Top", "padding-right-sub": "Right", "padding-bottom-sub": "Bottom", "padding-left-sub": "Left", "border-width-sub": "Width", "border-style-sub": "Style", "border-color-sub": "Color", "border-top-left-radius-sub": "Top Left", "border-top-right-radius-sub": "Top Right", "border-bottom-right-radius-sub": "Bottom Right", "border-bottom-left-radius-sub": "Bottom Left", "transform-rotate-x": "Rotate X", "transform-rotate-y": "Rotate Y", "transform-rotate-z": "Rotate Z", "transform-scale-x": "Scale X", "transform-scale-y": "Scale Y", "transform-scale-z": "Scale Z", "transition-property-sub": "Property", "transition-duration-sub": "Duration", "transition-timing-function-sub": "Timing", "background-image-sub": "Image", "background-repeat-sub": "Repeat", "background-position-sub": "Position", "background-attachment-sub": "Attachment", "background-size-sub": "Size" } }, traitManager: { empty: "Select an element before using Trait Manager", label: "Component settings", traits: { labels: {}, attributes: { id: a, alt: a, title: a, href: { placeholder: "eg. https://google.com" } }, options: { target: { false: "This window", _blank: "New window" } } } } } }, messagesAdd: null }; + function c(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function u(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? c(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : c(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + var h = function(t3) { + return !Array.isArray(t3) && t3 !== null && (0, i.Z)(t3) === "object"; + }, f = function t3() { + for (var e3 = u({}, arguments.length <= 0 ? void 0 : arguments[0]), n3 = 1; n3 < arguments.length; n3++) { + var r3 = u({}, n3 < 0 || arguments.length <= n3 ? void 0 : arguments[n3]); + for (var i2 in r3) { + var o2 = e3[i2], s2 = r3[i2]; + h(o2) && h(s2) ? e3[i2] = t3(o2, s2) : e3[i2] = s2; + } + } + return e3; + }; + const d = function() { + return { name: "I18n", config: l, init: function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + this.config = u(u(u({}, l), t3), {}, { messages: u(u({}, l.messages), t3.messages || {}) }); + var e3 = this.config.messagesAdd; + return e3 && this.addMessages(e3), this.config.detectLocale && (this.config.locale = this._localLang()), this.em = t3.em, this; + }, getConfig: function() { + return this.config; + }, setLocale: function(t3) { + var e3 = this.em, n3 = this.config, r3 = { value: t3, valuePrev: n3.locale }; + return e3 && e3.trigger("i18n:locale", r3), n3.locale = t3, this; + }, getLocale: function() { + return this.config.locale; + }, getMessages: function(t3) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n3 = this.config.messages; + return t3 && !n3[t3] && this._debug("'".concat(t3, "' i18n lang not found"), e3), t3 ? n3[t3] : n3; + }, setMessages: function(t3) { + var e3 = this.em; + return this.config.messages = t3, e3 && e3.trigger("i18n:update", t3), this; + }, addMessages: function(t3) { + var e3 = this.em, n3 = this.config.messages; + return e3 && e3.trigger("i18n:add", t3), this.setMessages(f(n3, t3)), this; + }, t: function(t3) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n3 = this.config, r3 = e3.params || {}, i2 = e3.l || this.getLocale(), s2 = e3.lFlb || n3.localeFallback, a2 = this._getMsg(t3, i2, e3); + return a2 || (a2 = this._getMsg(t3, s2, e3)), !a2 && this._debug("'".concat(t3, "' i18n key not found in '").concat(i2, "' lang"), e3), a2 = a2 && (0, o.isString)(a2) ? this._addParams(a2, r3) : a2; + }, _localLang: function() { + var t3 = (0, s.hasWin)() && window.navigator || {}, e3 = t3.language || t3.userLanguage; + return e3 ? e3.split("-")[0] : "en"; + }, _addParams: function(t3, e3) { + var n3 = new RegExp("{([\\w\\d-]*)}", "g"); + return t3.replace(n3, function(t4, n4) { + return e3[n4] || ""; + }).trim(); + }, _getMsg: function(t3, e3) { + var n3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r3 = this.getMessages(e3, n3); + if (r3) { + var i2 = r3[t3]; + return !i2 && t3.indexOf(".") > 0 && (i2 = t3.split(".").reduce(function(t4, e4) { + if (!(0, o.isUndefined)(t4)) + return t4[e4]; + }, r3)), i2; + } + }, _debug: function(t3) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n3 = this.em, r3 = this.config; + (e3.debug || r3.debug) && n3 && n3.logWarning(t3); + }, destroy: function() { + this.config = l, this.em = {}; + } }; + }; + }, 9788: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => E }); + var r2, i = n2(1002), o = n2(4942), s = n2(9050), a = n2(6183), l = {}, c = { 16: false, 18: false, 17: false, 91: false }, u = "all", h = { "\u21E7": 16, shift: 16, "\u2325": 18, alt: 18, option: 18, "\u2303": 17, ctrl: 17, control: 17, "\u2318": 91, command: 91 }, f = { backspace: 8, tab: 9, clear: 12, enter: 13, return: 13, esc: 27, escape: 27, space: 32, left: 37, up: 38, right: 39, down: 40, del: 46, delete: 46, home: 36, end: 35, pageup: 33, pagedown: 34, ",": 188, ".": 190, "/": 191, "`": 192, "-": 189, "=": 187, ";": 186, "'": 222, "[": 219, "]": 221, "\\": 220 }, d = function(t3) { + return f[t3] || t3.toUpperCase().charCodeAt(0); + }, p = []; + for (r2 = 1; r2 < 20; r2++) + f["f" + r2] = 111 + r2; + function g(t3, e3) { + for (var n3 = t3.length; n3--; ) + if (t3[n3] === e3) + return n3; + return -1; + } + function v(t3, e3) { + if (t3.length != e3.length) + return false; + for (var n3 = 0; n3 < t3.length; n3++) + if (t3[n3] !== e3[n3]) + return false; + return true; + } + var m = { 16: "shiftKey", 18: "altKey", 17: "ctrlKey", 91: "metaKey" }; + function y(t3) { + for (r2 in c) + c[r2] = t3[m[r2]]; + } + function b(t3) { + var e3, n3 = t3.keyCode, r3 = g(p, n3); + if (r3 >= 0 && p.splice(r3, 1), n3 != 93 && n3 != 224 || (n3 = 91), n3 in c) + for (e3 in c[n3] = false, h) + h[e3] == n3 && (x[e3] = false); + } + function w() { + for (r2 in c) + c[r2] = false; + for (r2 in h) + x[r2] = false; + } + function x(t3, e3, n3) { + var r3, i2; + r3 = C(t3), n3 === void 0 && (n3 = e3, e3 = "all"); + for (var o2 = 0; o2 < r3.length; o2++) + i2 = [], (t3 = r3[o2].split("+")).length > 1 && (i2 = k(t3), t3 = [t3[t3.length - 1]]), t3 = t3[0], (t3 = d(t3)) in l || (l[t3] = []), l[t3].push({ shortcut: r3[o2], scope: e3, method: n3, key: r3[o2], mods: i2 }); + } + for (r2 in h) + x[r2] = false; + function O() { + return u || "all"; + } + function C(t3) { + var e3; + return (e3 = (t3 = t3.replace(/\s/g, "")).split(","))[e3.length - 1] == "" && (e3[e3.length - 2] += ","), e3; + } + function k(t3) { + for (var e3 = t3.slice(0, t3.length - 1), n3 = 0; n3 < e3.length; n3++) + e3[n3] = h[e3[n3]]; + return e3; + } + function S(t3, e3, n3) { + t3.addEventListener ? t3.addEventListener(e3, n3, false) : t3.attachEvent && t3.attachEvent("on" + e3, function() { + n3(window.event); + }); + } + x.setScope = function(t3) { + u = t3 || "all"; + }, x.getScope = O, x.deleteScope = function(t3) { + var e3, n3, r3; + for (e3 in l) + for (n3 = l[e3], r3 = 0; r3 < n3.length; ) + n3[r3].scope === t3 ? n3.splice(r3, 1) : r3++; + }, x.filter = function(t3) { + var e3 = (t3.target || t3.srcElement).tagName; + return !(e3 == "INPUT" || e3 == "SELECT" || e3 == "TEXTAREA"); + }, x.isPressed = function(t3) { + return typeof t3 == "string" && (t3 = d(t3)), g(p, t3) != -1; + }, x.getPressedKeyCodes = function() { + return p.slice(0); + }, x.unbind = function(t3, e3) { + var n3, r3, i2, o2, s2, a2 = []; + for (n3 = C(t3), o2 = 0; o2 < n3.length; o2++) { + if ((r3 = n3[o2].split("+")).length > 1 && (a2 = k(r3)), t3 = r3[r3.length - 1], t3 = d(t3), e3 === void 0 && (e3 = O()), !l[t3]) + return; + for (i2 = 0; i2 < l[t3].length; i2++) + (s2 = l[t3][i2]).scope === e3 && v(s2.mods, a2) && (l[t3][i2] = {}); + } + }, x.handlers = l, x.init = function(t3) { + S(t3.document, "keydown", function(t4) { + !function(t5) { + var e3, n3, r3, i2, o2, s2; + if (e3 = t5.keyCode, g(p, e3) == -1 && p.push(e3), e3 != 93 && e3 != 224 || (e3 = 91), e3 in c) + for (r3 in c[e3] = true, h) + h[r3] == e3 && (x[r3] = true); + else if (y(t5), x.filter.call(this, t5) && e3 in l) { + for (s2 = O(), i2 = 0; i2 < l[e3].length; i2++) + if ((n3 = l[e3][i2]).scope == s2 || n3.scope == "all") { + for (r3 in o2 = n3.mods.length > 0, c) + (!c[r3] && g(n3.mods, +r3) > -1 || c[r3] && g(n3.mods, +r3) == -1) && (o2 = false); + (n3.mods.length != 0 || c[16] || c[18] || c[17] || c[91]) && !o2 || n3.method(t5, n3) === false && (t5.preventDefault ? t5.preventDefault() : t5.returnValue = false, t5.stopPropagation && t5.stopPropagation(), t5.cancelBubble && (t5.cancelBubble = true)); + } + } + }(t4); + }), S(t3.document, "keyup", b), S(t3, "focus", w); + }; + const P = x; + function _(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function T(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? _(Object(n3), true).forEach(function(e4) { + (0, o.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : _(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + (0, a.hasWin)() && P.init(window); + const E = function() { + var t3 = { defaults: { "core:undo": { keys: "\u2318+z, ctrl+z", handler: "core:undo" }, "core:redo": { keys: "\u2318+shift+z, ctrl+shift+z", handler: "core:redo" }, "core:copy": { keys: "\u2318+c, ctrl+c", handler: "core:copy" }, "core:paste": { keys: "\u2318+v, ctrl+v", handler: "core:paste" }, "core:component-next": { keys: "s", handler: "core:component-next" }, "core:component-prev": { keys: "w", handler: "core:component-prev" }, "core:component-enter": { keys: "d", handler: "core:component-enter" }, "core:component-exit": { keys: "a", handler: "core:component-exit" }, "core:component-delete": { keys: "backspace, delete", handler: "core:component-delete", opts: { prevent: 1 } } } }; + return { keymaster: P, name: "Keymaps", getConfig: function() { + return this.config; + }, init: function() { + var e3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + return this.config = T(T({}, t3), e3), this.em = this.config.em, this.keymaps = {}, this; + }, onLoad: function() { + var t4 = this.config.defaults; + for (var e3 in t4) { + var n3 = t4[e3]; + this.add(e3, n3.keys, n3.handler, n3.opts || {}); + } + }, add: function(t4, e3, n3) { + var r3 = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, o2 = this.em, a2 = o2.get("Commands"), l2 = o2.getEditor(), c2 = o2.get("Canvas"), u2 = { id: t4, keys: e3, handler: n3 }, h2 = this.keymaps[t4]; + return h2 && this.remove(t4), this.keymaps[t4] = u2, P(e3, function(e4, u3) { + var h3 = { event: e4, h: u3 }; + if (n3 = (0, s.isString)(n3) ? a2.get(n3) : n3, !o2.isEditing() && !l2.Canvas.isInputFocused() || r3.force) { + r3.prevent && c2.getCanvasView().preventDefault(e4), (0, i.Z)(n3) == "object" ? a2.runCommand(n3, h3) : n3(l2, 0, h3); + var f2 = [t4, u3.shortcut, e4]; + o2.trigger.apply(o2, ["keymap:emit"].concat(f2)), o2.trigger.apply(o2, ["keymap:emit:".concat(t4)].concat(f2)); + } + }), o2.trigger("keymap:add", u2), u2; + }, get: function(t4) { + return this.keymaps[t4]; + }, getAll: function() { + return this.keymaps; + }, remove: function(t4) { + var e3 = this.em, n3 = this.get(t4); + if (n3) + return delete this.keymaps[t4], n3.keys.split(", ").forEach(function(t5) { + return P.unbind(t5.trim()); + }), e3 && e3.trigger("keymap:remove", n3), n3; + }, removeAll: function() { + var t4 = this; + return Object.keys(this.keymaps).forEach(function(e3) { + return t4.remove(e3); + }), P.handlers = {}, this; + }, destroy: function() { + this.removeAll(), this.keymaps = {}, this.em = {}; + } }; + }; + }, 2450: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => x }); + var r2 = n2(4942), i = n2(9050), o = n2(9283); + const s = { stylePrefix: "mdl-", title: "", content: "", backdrop: true, custom: false, extend: {} }; + var a = n2(5671), l = n2(3144), c = n2(9340), u = n2(3930), h = n2(1120), f = n2(2316); + function d(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, h.Z)(t3); + if (e3) { + var i2 = (0, h.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, u.Z)(this, n3); + }; + } + var p = function(t3) { + (0, c.Z)(n3, t3); + var e3 = d(n3); + function n3() { + return (0, a.Z)(this, n3), e3.apply(this, arguments); + } + return (0, l.Z)(n3, [{ key: "defaults", value: function() { + return { title: "", content: "", attributes: {}, open: false }; + } }, { key: "open", value: function() { + this.set("open", true); + } }, { key: "close", value: function() { + this.set("open", false); + } }]), n3; + }(f.Model); + function g(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function v(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? g(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : g(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + function m(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, h.Z)(t3); + if (e3) { + var i2 = (0, h.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, u.Z)(this, n3); + }; + } + var y = function(t3) { + (0, c.Z)(n3, t3); + var e3 = m(n3); + function n3() { + return (0, a.Z)(this, n3), e3.apply(this, arguments); + } + return (0, l.Z)(n3, [{ key: "template", value: function(t4) { + var e4 = t4.pfx, n4 = t4.ppfx, r3 = t4.content, i2 = t4.title; + return '<div class="'.concat(e4, "dialog ").concat(n4, "one-bg ").concat(n4, 'two-color">\n <div class="').concat(e4, 'header">\n <div class="').concat(e4, 'title">').concat(i2, '</div>\n <div class="').concat(e4, 'btn-close" data-close-modal>⨯</div>\n </div>\n <div class="').concat(e4, 'content">\n <div id="').concat(e4, 'c">').concat(r3, '</div>\n <div style="clear:both"></div>\n </div>\n </div>\n <div class="').concat(e4, 'collector" style="display: none"></div>'); + } }, { key: "events", value: function() { + return { click: "onClick", "click [data-close-modal]": "hide" }; + } }, { key: "initialize", value: function(t4) { + var e4 = this.model, n4 = t4.config || {}, r3 = n4.stylePrefix || ""; + this.config = n4, this.pfx = r3, this.ppfx = n4.pStylePrefix || "", this.listenTo(e4, "change:open", this.updateOpen), this.listenTo(e4, "change:title", this.updateTitle), this.listenTo(e4, "change:content", this.updateContent); + } }, { key: "onClick", value: function(t4) { + this.config.backdrop && t4.target === this.el && this.hide(); + } }, { key: "getCollector", value: function() { + return this.$collector || (this.$collector = this.$el.find("." + this.pfx + "collector")), this.$collector; + } }, { key: "getContent", value: function() { + var t4 = this.pfx; + return this.$content || (this.$content = this.$el.find(".".concat(t4, "content #").concat(t4, "c"))), this.$content; + } }, { key: "getTitle", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + return this.$title || (this.$title = this.$el.find("." + this.pfx + "title")), t4.$ ? this.$title : this.$title.get(0); + } }, { key: "updateContent", value: function() { + var t4 = this.getContent(), e4 = t4.children(), n4 = this.getCollector(), r3 = this.model.get("content"); + e4.length && n4.append(e4), t4.empty().append(r3); + } }, { key: "updateTitle", value: function() { + var t4 = this.getTitle({ $: true }); + t4 && t4.empty().append(this.model.get("title")); + } }, { key: "updateOpen", value: function() { + this.el.style.display = this.model.get("open") ? "" : "none"; + } }, { key: "hide", value: function() { + this.model.close(); + } }, { key: "show", value: function() { + this.model.open(); + } }, { key: "updateAttr", value: function(t4) { + var e4 = this.pfx, n4 = this.$el, r3 = this.el, i2 = [].slice.call(r3.attributes).map(function(t5) { + return t5.name; + }); + n4.removeAttr(i2.join(" ")), n4.attr(v(v({}, t4 || {}), {}, { class: "".concat(e4, "container ").concat(t4 && t4.class || "").trim() })); + } }, { key: "render", value: function() { + var t4 = this.$el, e4 = this.model.toJSON(); + return e4.pfx = this.pfx, e4.ppfx = this.ppfx, t4.html(this.template(e4)), this.updateAttr(), this.updateOpen(), this; + } }]), n3; + }(f.View); + function b(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function w(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? b(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : b(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + const x = function() { + var t3, e3, n3 = {}, r3 = function(t4, e4) { + e4 && e4.trigger("modal:".concat(t4 ? "open" : "close")); + }; + return { name: "Modal", getConfig: function() { + return n3; + }, init: function() { + var e4 = this, o2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a2 = (n3 = w(w({}, s), o2)).em; + this.em = a2; + var l2 = n3.pStylePrefix; + return l2 && (n3.stylePrefix = l2 + n3.stylePrefix), (t3 = new p(n3)).on("change:open", function(t4, e5) { + return r3(e5, a2); + }), t3.on("change", (0, i.debounce)(function() { + var t4 = e4._evData(), n4 = e4.getConfig().custom; + (0, i.isFunction)(n4) && n4(t4), a2.trigger("modal", t4); + })), this; + }, _evData: function() { + var e4 = this, n4 = this.getTitle(), r4 = this.getContent(), s2 = t3.attributes; + return { open: s2.open, attributes: s2.attributes, title: (0, i.isString)(n4) ? (0, o.rw)(n4) : n4, content: (0, i.isString)(r4) ? (0, o.rw)(r4) : r4.get ? r4.get(0) : r4, close: function() { + return e4.close(); + } }; + }, postRender: function(t4) { + var e4 = t4.model.getConfig().el || t4.el, n4 = this.render(); + n4 && n4.appendTo(e4); + }, open: function() { + var n4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r4 = n4.attributes || {}; + return n4.title && this.setTitle(n4.title), n4.content && this.setContent(n4.content), t3.set("attributes", r4), t3.open(), e3 && e3.updateAttr(r4), this; + }, close: function() { + return t3.close(), this; + }, onceClose: function(t4) { + return this.em.once("modal:close", t4), this; + }, onceOpen: function(t4) { + return this.em.once("modal:open", t4), this; + }, isOpen: function() { + return !!t3.get("open"); + }, setTitle: function(e4) { + return t3.set("title", e4), this; + }, getTitle: function() { + return t3.get("title"); + }, setContent: function(e4) { + return t3.set("content", " "), t3.set("content", e4), this; + }, getContent: function() { + return t3.get("content"); + }, getContentEl: function() { + return e3.getContent().get(0); + }, getModel: function() { + return t3; + }, render: function() { + if (!this.getConfig().custom) { + var r4 = y.extend(n3.extend), i2 = e3 && e3.el; + return (e3 = new r4({ el: i2, model: t3, config: n3 })).render().$el; + } + }, destroy: function() { + e3 && e3.remove(), [n3, t3, e3].forEach(function(t4) { + return {}; + }), this.em = {}; + } }; + }; + }, 77: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => b }); + var r2 = n2(4942); + const i = { stylePrefix: "", appendTo: "", sortable: 1, hidable: 1, hideTextnode: 1, root: "", showWrapper: 1, showHover: 1, scrollCanvas: { behavior: "smooth", block: "nearest" }, scrollLayers: { behavior: "auto", block: "nearest" }, highlightHover: 1, onInit: function() { + }, onRender: function() { + }, extend: {} }; + var o, s = n2(9050), a = n2(6183), l = n2(2316), c = n2.n(l), u = n2(2169), h = n2(9138), f = "contentEditable", d = { mediaText: "" }, p = c().$, g = function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + return (t3.display || "").trim().indexOf("none") === 0; + }; + const v = c().View.extend({ events: { "mousedown [data-toggle-move]": "startSort", "touchstart [data-toggle-move]": "startSort", "click [data-toggle-visible]": "toggleVisibility", "click [data-toggle-open]": "toggleOpening", "click [data-toggle-select]": "handleSelect", "mouseover [data-toggle-select]": "handleHover", "mouseout [data-toggle-select]": "handleHoverOut", "dblclick [data-name]": "handleEdit", "keydown [data-name]": "handleEditKey", "focusout [data-name]": "handleEditEnd" }, template: function(t3) { + var e3 = this.pfx, n3 = this.ppfx, r3 = this.config, i2 = this.clsNoEdit, o2 = r3.hidable, s2 = this.countChildren(t3), a2 = s2 ? "" : this.clsNoChild, l2 = "".concat(this.clsTitle, " ").concat(a2), c2 = "".concat(this.clsTitleC, " ").concat(n3, "one-bg"), u2 = "".concat(this.clsCaret, " fa fa-chevron-right"), h2 = "".concat(this.inputNameCls, " ").concat(i2, " ").concat(n3, "no-app"), f2 = this.level + 1, d2 = "".concat(30 + 10 * f2, "px"), p2 = t3.getName(), g2 = t3.getIcon(), v2 = "".concat(e3, "layer"); + return "\n ".concat(o2 ? '<i class="'.concat(e3, "layer-vis fa fa-eye ").concat(this.isVisible() ? "" : "fa-eye-slash", '" data-toggle-visible></i>') : "", '\n <div class="').concat(c2, '">\n <div class="').concat(l2, '" style="padding-left: ').concat(d2, '" data-toggle-select>\n <div class="').concat(e3, 'layer-title-inn" title="').concat(p2, '">\n <i class="').concat(u2, '" data-toggle-open></i>\n ').concat(g2 ? '<span class="'.concat(v2, '__icon">').concat(g2, "</span>") : "", '\n <span class="').concat(h2, '" data-name>').concat(p2, '</span>\n </div>\n </div>\n </div>\n <div class="').concat(this.clsCount, '" data-count>').concat(s2 || "", '</div>\n <div class="').concat(this.clsMove, '" data-toggle-move>\n <i class="fa fa-arrows"></i>\n </div>\n <div class="').concat(this.clsChildren, '"></div>'); + }, initialize: function() { + var t3 = this, e3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + (0, s.bindAll)(this, "__render"), this.opt = e3, this.level = e3.level; + var n3 = e3.config || {}, r3 = n3.onInit; + this.config = n3, this.em = e3.config.em, this.ppfx = this.em.get("Config").stylePrefix, this.sorter = e3.sorter || "", this.pfx = this.config.stylePrefix, this.parentView = e3.parentView; + var i2 = this.pfx, o2 = this.ppfx, a2 = this.model, l2 = a2.get("components"), c2 = a2.get("type") || "default"; + a2.set("open", false), this.listenTo(l2, "remove add reset", this.checkChildren), [["change:status", this.updateStatus], ["change:open", this.updateOpening], ["change:layerable", this.updateLayerable], ["change:style:display", this.updateVisibility], ["rerender:layer", this.render], ["change:name change:custom-name", this.updateName]].forEach(function(e4) { + return t3.listenTo(a2, e4[0], e4[1]); + }), this.className = "".concat(i2, "layer ").concat(i2, "layer__t-").concat(c2, " no-select ").concat(o2, "two-color"), this.inputNameCls = "".concat(o2, "layer-name"), this.clsTitleC = "".concat(i2, "layer-title-c"), this.clsTitle = "".concat(i2, "layer-title"), this.clsCaret = "".concat(i2, "layer-caret"), this.clsCount = "".concat(i2, "layer-count"), this.clsMove = "".concat(i2, "layer-move"), this.clsChildren = "".concat(i2, "layer-children"), this.clsNoChild = "".concat(i2, "layer-no-chld"), this.clsEdit = "".concat(this.inputNameCls, "--edit"), this.clsNoEdit = "".concat(this.inputNameCls, "--no-edit"), this.$el.data("model", a2), this.$el.data("collection", l2), a2.viewLayer = this, r3.bind(this)({ component: a2, render: this.__render, listenTo: this.listenTo }); + }, updateName: function() { + this.getInputName().innerText = this.model.getName(); + }, getVisibilityEl: function() { + return this.eyeEl || (this.eyeEl = this.$el.children(".".concat(this.pfx, "layer-vis"))), this.eyeEl; + }, updateVisibility: function() { + var t3 = this.pfx, e3 = this.model, n3 = "".concat(t3, "layer-hidden"), r3 = g(e3.getStyle(d)) ? "addClass" : "removeClass"; + this.$el[r3](n3), this.getVisibilityEl()[r3]("fa-eye-slash"); + }, toggleVisibility: function(t3) { + t3 && t3.stopPropagation(); + var e3 = this.model, n3 = this.em, r3 = "__prev-display", i2 = e3.get(r3), o2 = e3.getStyle(d), s2 = o2.display; + g(o2) ? (delete o2.display, i2 && (o2.display = i2, e3.unset(r3))) : (s2 && e3.set(r3, s2), o2.display = "none"), e3.setStyle(o2, d), n3 && n3.trigger("component:toggled"); + }, handleEdit: function(t3) { + t3 && t3.stopPropagation(); + var e3 = this.em, n3 = this.$el, r3 = this.clsNoEdit, i2 = this.clsEdit, o2 = this.getInputName(); + o2[f] = true, o2.focus(), document.execCommand("selectAll", false, null), e3 && e3.setEditing(1), n3.find(".".concat(this.inputNameCls)).removeClass(r3).addClass(i2); + }, handleEditKey: function(t3) { + t3.stopPropagation(), ((0, a.isEscKey)(t3) || (0, a.isEnterKey)(t3)) && this.handleEditEnd(t3); + }, handleEditEnd: function(t3) { + t3 && t3.stopPropagation(); + var e3 = this.em, n3 = this.$el, r3 = this.clsNoEdit, i2 = this.clsEdit, o2 = this.getInputName(), s2 = o2.textContent; + o2.scrollLeft = 0, o2[f] = false, this.setName(s2, { component: this.model, propName: "custom-name" }), e3 && e3.setEditing(0), n3.find(".".concat(this.inputNameCls)).addClass(r3).removeClass(i2); + }, setName: function(t3, e3) { + var n3 = e3.propName; + this.model.set(n3, t3); + }, getInputName: function() { + return this.inputName || (this.inputName = this.el.querySelector(".".concat(this.inputNameCls))), this.inputName; + }, updateOpening: function() { + var t3 = this.opt.opened || {}, e3 = this.model, n3 = "fa-chevron-down"; + e3.get("open") ? (this.$el.addClass("open"), this.getCaret().addClass(n3), t3[e3.cid] = e3) : (this.$el.removeClass("open"), this.getCaret().removeClass(n3), delete t3[e3.cid]); + }, toggleOpening: function(t3) { + var e3 = this.model; + t3.stopImmediatePropagation(), e3.get("components").length && e3.set("open", !e3.get("open")); + }, handleSelect: function(t3) { + t3.stopPropagation(); + var e3 = this.em, n3 = this.config, r3 = this.model; + if (e3) { + e3.setSelected(r3, { fromLayers: 1, event: t3 }); + var i2 = n3.scrollCanvas; + i2 && r3.views.forEach(function(t4) { + return t4.scrollIntoView(i2); + }); + } + }, handleHover: function(t3) { + t3.stopPropagation(); + var e3 = this.em, n3 = this.config, r3 = this.model; + e3 && n3.showHover && e3.setHovered(r3, { fromLayers: 1 }); + }, handleHoverOut: function(t3) { + t3.stopPropagation(); + var e3 = this.em, n3 = this.config; + e3 && n3.showHover && e3.setHovered(0, { fromLayers: 1 }); + }, startSort: function(t3) { + t3.stopPropagation(); + var e3 = this.em, n3 = this.sorter; + t3.button && t3.button !== 0 || n3 && (n3.onStart = function(t4) { + return e3.trigger("".concat(h.OA, ":start"), t4); + }, n3.onMoveClb = function(t4) { + return e3.trigger(h.OA, t4); + }, n3.startSort(t3.target)); + }, freeze: function() { + this.$el.addClass(this.pfx + "opac50"), this.model.set("open", 0); + }, unfreeze: function() { + this.$el.removeClass(this.pfx + "opac50"); + }, updateStatus: function(t3) { + u.Z.prototype.updateStatus.apply(this, [{ avoidHover: !this.config.highlightHover, noExtHl: 1 }]); + }, isVisible: function() { + return !g(this.model.getStyle()); + }, checkChildren: function() { + var t3 = this.model, e3 = this.clsNoChild, n3 = this.countChildren(t3), r3 = this.$el.children(".".concat(this.clsTitleC)).children(".".concat(this.clsTitle)), i2 = this.cnt; + i2 || (i2 = this.$el.children("[data-count]").get(0), this.cnt = i2), r3[n3 ? "removeClass" : "addClass"](e3), i2 && (i2.innerHTML = n3 || ""), !n3 && t3.set("open", 0); + }, countChildren: function(t3) { + var e3 = 0; + return t3.get("components").each(function(t4) { + var n3 = this.opt.isCountable, r3 = this.config.hideTextnode; + n3 && !n3(t4, r3) || e3++; + }, this), e3; + }, getCaret: function() { + if (!this.caret || !this.caret.length) { + this.pfx; + this.caret = this.$el.children(".".concat(this.clsTitleC)).find(".".concat(this.clsCaret)); + } + return this.caret; + }, setRoot: function(t3) { + t3 = (0, s.isString)(t3) ? this.em.getWrapper().find(t3)[0] : t3; + var e3 = (0, a.getModel)(t3, p); + e3 && (this.stopListening(), this.model = e3, this.initialize(this.opt), this._rendered && this.render()); + }, updateLayerable: function() { + (this.parentView || this).render(); + }, __clearItems: function() { + var t3 = this.items; + t3 && t3.remove(); + }, remove: function() { + c().View.prototype.remove.apply(this, arguments), this.__clearItems(); + }, render: function() { + var t3 = this.model, e3 = this.config, r3 = this.pfx, i2 = this.ppfx, a2 = this.opt; + this.__clearItems(); + var l2 = a2.isCountable, c2 = l2 && !l2(t3, e3.hideTextnode), u2 = this.isVisible(), h2 = this.$el.empty(), f2 = this.level + 1; + this.inputName = 0, (0, s.isUndefined)(o) && (o = n2(3557).Z), this.items = new o({ ItemView: a2.ItemView, collection: t3.get("components"), config: this.config, sorter: this.sorter, opened: this.opt.opened, parentView: this, parent: t3, level: f2 }); + var d2 = this.items.render().$el; + return this.config.showWrapper || f2 !== 1 ? (h2.html(this.template(t3)), h2.find(".".concat(this.clsChildren)).append(d2)) : h2.append(d2), t3.get("draggable") && this.config.sortable || h2.children(".".concat(this.clsMove)).remove(), !u2 && (this.className += " ".concat(r3, "hide")), c2 && (this.className += " ".concat(i2, "hidden")), h2.attr("class", this.className), this.updateOpening(), this.updateStatus(), this.updateVisibility(), this.__render(), this._rendered = 1, this; + }, __render: function() { + var t3 = this.model, e3 = this.config, n3 = { component: t3, el: this.el }; + e3.onRender.bind(this)(n3), this.em.trigger("layer:render", n3); + } }); + function m(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function y(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? m(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : m(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + const b = function() { + var t3, e3, n3 = {}; + return { name: "LayerManager", init: function() { + var e4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + return (n3 = y(y({}, i), e4)).stylePrefix = e4.pStylePrefix, t3 = n3.em, this; + }, getConfig: function() { + return n3; + }, onLoad: function() { + t3 && t3.on("component:selected", this.componentChanged), this.componentChanged(); + }, postRender: function() { + var t4 = n3.appendTo, e4 = n3.root; + (e4 && this.setRoot(e4), t4) && ((0, s.isElement)(t4) ? t4 : document.querySelector(t4)).appendChild(this.render()); + }, setRoot: function(t4) { + return e3 && e3.setRoot(t4), this; + }, getRoot: function() { + return e3 && e3.model; + }, getAll: function() { + return e3; + }, componentChanged: function(e4) { + var r3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + if (!r3.fromLayers) { + var i2 = t3.get("opened"), o2 = t3.getSelected(), s2 = n3.scrollLayers, a2 = o2 && o2.collection ? o2.collection.parent : null; + for (var l2 in i2) + i2[l2].set("open", 0); + for (; a2; ) + a2.set("open", 1), i2[a2.cid] = a2, a2 = a2.collection ? a2.collection.parent : null; + if (o2 && s2) { + var c2 = o2.viewLayer && o2.viewLayer.el; + c2 && c2.scrollIntoView(s2); + } + } + }, render: function() { + var r3 = v.extend(n3.extend); + return e3 && e3.remove(), (e3 = new r3({ ItemView: r3, level: 0, config: n3, opened: n3.opened || {}, model: t3.get("DomComponents").getWrapper() })).render().el; + }, destroy: function() { + e3 && e3.remove(), [t3, e3, n3].forEach(function(t4) { + return {}; + }); + } }; + }; + }, 3557: (t2, e2, n2) => { + "use strict"; + n2.d(e2, { Z: () => o }); + var r2 = n2(2316), i = n2(9138); + const o = r2.View.extend({ initialize: function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + this.items = [], this.opt = t3; + var e3 = t3.config || {}; + this.level = t3.level, this.config = e3, this.preview = t3.preview, this.ppfx = e3.pStylePrefix || "", this.pfx = e3.stylePrefix || "", this.parent = t3.parent, this.parentView = t3.parentView; + var n3 = this.pfx, r3 = this.ppfx, o2 = this.parent, s = this.collection; + this.listenTo(s, "add", this.addTo), this.listenTo(s, "reset resetNavigator", this.render), this.listenTo(s, "remove", this.removeChildren), this.className = "".concat(n3, "layers"); + var a = e3.em; + if (e3.sortable && !this.opt.sorter) { + var l = a.get("Utils"); + this.opt.sorter = new l.Sorter({ container: e3.sortContainer || this.el, containerSel: ".".concat(this.className), itemSel: ".".concat(n3, "layer"), ignoreViewChildren: 1, onEndMove: function(t4, e4, n4) { + var r4 = e4.getSourceModel(); + a.setSelected(r4, { forceChange: 1 }), a.trigger("".concat(i.OA, ":end"), n4); + }, avoidSelectOnEnd: 1, nested: 1, ppfx: r3, pfx: n3 }); + } + this.sorter = this.opt.sorter || "", this.$el.data("collection", s), o2 && this.$el.data("model", o2); + }, removeChildren: function(t3) { + var e3 = t3.viewLayer; + e3 && (e3.remove(), t3.viewLayer = 0); + }, addTo: function(t3) { + var e3 = this.collection.indexOf(t3); + this.addToCollection(t3, null, e3); + }, addToCollection: function(t3, e3, n3) { + var r3 = this.level, i2 = this.parentView, o2 = this.opt.ItemView, s = e3 || null, a = new o2({ ItemView: o2, level: r3, model: t3, parentView: i2, config: this.config, sorter: this.sorter, isCountable: this.isCountable, opened: this.opt.opened }), l = a.render().el; + if (s) + s.appendChild(l); + else if (n3 !== void 0) { + var c = "before"; + this.$el.children().length == n3 && (n3--, c = "after"), n3 < 0 ? this.$el.append(l) : this.$el.children().eq(n3)[c](l); + } else + this.$el.append(l); + return this.items.push(a), l; + }, remove: function() { + r2.View.prototype.remove.apply(this, arguments), this.items.map(function(t3) { + return t3.remove(); + }); + }, isCountable: function(t3, e3) { + var n3 = t3.get("type"), r3 = t3.get("tagName"); + return !((n3 == "textnode" || r3 == "br") && e3 || !t3.get("layerable")); + }, render: function() { + var t3 = this, e3 = document.createDocumentFragment(), n3 = this.el; + return n3.innerHTML = "", this.collection.each(function(n4) { + return t3.addToCollection(n4, e3); + }), n3.appendChild(e3), n3.className = this.className, this; + } }); + }, 2567: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => A, evAll: () => O, evPageAdd: () => _, evPageAddBefore: () => T, evPageRemove: () => E, evPageRemoveBefore: () => j, evPageSelect: () => k, evPageSelectBefore: () => S, evPageUpdate: () => P, evPfx: () => C }); + var r2 = n2(2982), i = n2(4942), o = n2(9050), s = n2(6183), a = n2(2316), l = n2(5671), c = n2(3144), u = n2(9340), h = n2(3930), f = n2(1120), d = n2(9065); + function p(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, f.Z)(t3); + if (e3) { + var i2 = (0, f.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, h.Z)(this, n3); + }; + } + var g = function(t3) { + (0, u.Z)(n3, t3); + var e3 = p(n3); + function n3() { + return (0, l.Z)(this, n3), e3.apply(this, arguments); + } + return (0, c.Z)(n3, [{ key: "defaults", value: function() { + return { frames: [], _undo: true }; + } }, { key: "initialize", value: function(t4) { + var e4 = this, n4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r3 = n4.config, i2 = r3 === void 0 ? {} : r3, o2 = i2.em, s2 = {}; + this.em = o2, t4.frames || (s2.component = t4.component, s2.styles = t4.styles, ["component", "styles"].map(function(t5) { + return e4.unset(t5); + })); + var a2 = t4.frames || [s2], l2 = new d.Z(a2, i2); + l2.page = this, this.set("frames", l2); + var c2 = o2 && o2.get("UndoManager"); + c2 && c2.add(l2); + } }, { key: "onRemove", value: function() { + this.get("frames").reset(); + } }, { key: "getFrames", value: function() { + return this.get("frames"); + } }, { key: "getId", value: function() { + return this.id; + } }, { key: "getName", value: function() { + return this.get("name"); + } }, { key: "setName", value: function(t4) { + return this.get({ name: t4 }); + } }, { key: "getAllFrames", value: function() { + return this.getFrames().models || []; + } }, { key: "getMainFrame", value: function() { + return this.getFrames().at(0); + } }, { key: "getMainComponent", value: function() { + var t4 = this.getMainFrame(); + return t4 && t4.getComponent(); + } }, { key: "toJSON", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e4 = a.Model.prototype.toJSON.call(this, t4), n4 = (0, o.result)(this, "defaults"); + return (0, o.forEach)(e4, function(t5, n5) { + n5.indexOf("_") === 0 && delete e4[n5]; + }), (0, o.forEach)(n4, function(t5, n5) { + e4[n5] === t5 && delete e4[n5]; + }), e4; + } }]), n3; + }(a.Model); + function v(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function m(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? v(Object(n3), true).forEach(function(e4) { + (0, i.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : v(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + function y(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, f.Z)(t3); + if (e3) { + var i2 = (0, f.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, h.Z)(this, n3); + }; + } + var b = function(t3) { + (0, u.Z)(n3, t3); + var e3 = y(n3); + function n3() { + return (0, l.Z)(this, n3), e3.apply(this, arguments); + } + return (0, c.Z)(n3, [{ key: "initialize", value: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + this.config = e4, this.on("reset", this.onReset), this.on("remove", this.onRemove); + } }, { key: "onReset", value: function(t4) { + var e4 = this, n4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r3 = n4.previousModels || []; + r3.map(function(t5) { + return e4.onRemove(t5); + }); + } }, { key: "onRemove", value: function(t4) { + t4 && t4.onRemove(); + } }, { key: "add", value: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n4 = this.config; + return a.Collection.prototype.add.call(this, t4, m(m({}, e4), {}, { config: n4 })); + } }]), n3; + }(a.Collection); + function w(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function x(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? w(Object(n3), true).forEach(function(e4) { + (0, i.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : w(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + b.prototype.model = g; + var O = "page", C = "".concat(O, ":"), k = "".concat(C, "select"), S = "".concat(k, ":before"), P = "".concat(C, "update"), _ = "".concat(C, "add"), T = "".concat(_, ":before"), E = "".concat(C, "remove"), j = "".concat(E, ":before"), D = "change:selected", M = "main"; + const A = function() { + return { name: "PageManager", storageKey: "pages", Page: g, Pages: b, events: { all: O, select: k, selectBefore: S, update: P, add: _, addBefore: T, remove: E, removeBefore: j }, init: function() { + var t3 = this, e3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + (0, o.bindAll)(this, "_onPageChange"); + var n3 = e3.em, r3 = x({}, e3); + this.config = r3, this.em = n3; + var i2 = new b([], r3); + this.pages = i2; + var s2 = new a.Model({ _undo: true }); + return this.model = s2, i2.on("add", function(t4, e4, r4) { + return n3.trigger(_, t4, r4); + }), i2.on("remove", function(t4, e4, r4) { + return n3.trigger(E, t4, r4); + }), i2.on("change", function(t4, e4) { + n3.trigger(P, t4, t4.changedAttributes(), e4); + }), i2.on("reset", function(e4) { + return e4.at(0) && t3.select(e4.at(0)); + }), i2.on("all", this.__onChange, this), s2.on(D, this._onPageChange), this; + }, __onChange: function(t3, e3, n3, r3) { + var i2 = r3 || n3; + this.em.trigger(O, { event: t3, page: e3, options: i2 }); + }, onLoad: function() { + var t3 = this.pages, e3 = { silent: true }; + t3.add(this.config.pages || [], e3); + var n3 = t3.length ? this.getMain() : this.add({ type: M }, e3); + this.select(n3, e3); + }, _onPageChange: function(t3, e3, n3) { + var r3 = this.em, i2 = r3.get("LayerManager"), o2 = e3.getMainComponent(); + i2 && o2 && i2.setRoot(o2), r3.trigger(k, e3, t3.previous("selected")), this.__onChange(D, e3, n3); + }, postLoad: function() { + var t3 = this.em, e3 = this.model, n3 = t3.get("UndoManager"); + n3 && n3.add(e3), n3 && n3.add(this.pages); + }, add: function(t3) { + var e3 = this, n3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r3 = this.em; + t3.id = t3.id || this._createId(); + var i2 = function() { + var r4 = e3.pages.add(t3, n3); + return n3.select && e3.select(r4), r4; + }; + return !n3.silent && r3.trigger(T, t3, i2, n3), !n3.abort && i2(); + }, remove: function(t3) { + var e3 = this, n3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r3 = this.em, i2 = (0, o.isString)(t3) ? this.get(t3) : t3, s2 = function() { + return i2 && e3.pages.remove(i2, n3), i2; + }; + return !n3.silent && r3.trigger(j, i2, s2, n3), !n3.abort && s2(); + }, get: function(t3) { + return this.pages.filter(function(e3) { + return e3.get("id") === t3; + })[0]; + }, getMain: function() { + var t3 = this.pages; + return t3.filter(function(t4) { + return t4.get("type") === M; + })[0] || t3.at(0); + }, getAll: function() { + return (0, r2.Z)(this.pages.models); + }, getAllWrappers: function() { + var t3 = this.getAll(); + return (0, o.unique)((0, o.flatten)(t3.map(function(t4) { + return t4.getAllFrames().map(function(t5) { + return t5.getComponent(); + }); + }))); + }, getAllMap: function() { + return this.getAll().reduce(function(t3, e3) { + return t3[e3.get("id")] = e3, t3; + }, {}); + }, select: function(t3) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n3 = (0, o.isString)(t3) ? this.get(t3) : t3; + return n3 && (this.em.trigger(S, n3, e3), this.model.set("selected", n3, e3)), this; + }, getSelected: function() { + return this.model.get("selected"); + }, destroy: function() { + var t3 = this; + this.pages.off().reset(), this.model.stopListening(), this.model.clear({ silent: true }), ["selected", "config", "em", "pages", "model"].map(function(e3) { + return t3[e3] = 0; + }); + }, store: function(t3) { + if (!this.em.get("hasPages")) + return {}; + var e3 = {}, n3 = this.config; + return e3[this.storageKey] = JSON.stringify(this.getAll()), !t3 && n3.stm && n3.stm.store(e3), e3; + }, load: function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e3 = this.storageKey, n3 = t3[e3] || []; + if (typeof n3 == "string") + try { + n3 = JSON.parse(t3[e3]); + } catch (t4) { + } + return n3 && n3.length && this.pages.reset(n3), n3; + }, _createId: function() { + var t3, e3 = this.getAll().length + 16, n3 = this.getAllMap(); + do { + t3 = (0, s.createId)(e3); + } while (n3[t3]); + return t3; + } }; + }; + }, 4906: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => P }); + var r2 = "sw-visibility", i = "export-template", o = "open-sm", s = "open-tm", a = "open-layers", l = "open-blocks", c = "fullscreen", u = "preview"; + const h = { stylePrefix: "pn-", defaults: [{ id: "commands", buttons: [{}] }, { id: "options", buttons: [{ active: true, id: r2, className: "fa fa-square-o", command: r2, context: r2, attributes: { title: "View components" } }, { id: u, className: "fa fa-eye", command: u, context: u, attributes: { title: "Preview" } }, { id: c, className: "fa fa-arrows-alt", command: c, context: c, attributes: { title: "Fullscreen" } }, { id: i, className: "fa fa-code", command: i, attributes: { title: "View code" } }] }, { id: "views", buttons: [{ id: o, className: "fa fa-paint-brush", command: o, active: true, togglable: 0, attributes: { title: "Open Style Manager" } }, { id: s, className: "fa fa-cog", command: s, togglable: 0, attributes: { title: "Settings" } }, { id: a, className: "fa fa-bars", command: a, togglable: 0, attributes: { title: "Open Layer Manager" } }, { id: l, className: "fa fa-th-large", command: l, togglable: 0, attributes: { title: "Open Blocks" } }] }], em: null, delayBtnsShow: 300 }; + var f = n2(2316), d = n2.n(f), p = n2(2516); + const g = d().Model.extend({ defaults: { id: "", content: "", visible: true, buttons: [], attributes: {} }, initialize: function(t3) { + this.btn = this.get("buttons") || [], this.buttons = new p.Z(this.btn), this.set("buttons", this.buttons); + } }), v = d().Collection.extend({ model: g }); + var m = n2(4942), y = n2(9050); + function b(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function w(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? b(Object(n3), true).forEach(function(e4) { + (0, m.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : b(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + d().$; + const x = d().View.extend({ tagName: function() { + return this.model.get("tagName"); + }, events: { click: "clicked" }, initialize: function(t3) { + var e3 = this.model, n3 = e3.get("className"), r3 = e3.attributes, i2 = r3.command, o2 = r3.listen, s2 = t3.config || {}, a2 = s2.em; + this.config = s2, this.em = a2; + var l2 = this.config.stylePrefix || "", c2 = this.config.pStylePrefix || ""; + if (this.pfx = l2, this.ppfx = this.config.pStylePrefix || "", this.id = l2 + e3.get("id"), this.activeCls = "".concat(l2, "active ").concat(c2, "four-color"), this.disableCls = "".concat(c2, "disabled"), this.btnsVisCls = "".concat(l2, "visible"), this.className = l2 + "btn" + (n3 ? " " + n3 : ""), this.listenTo(e3, "change", this.render), this.listenTo(e3, "change:active updateActive", this.updateActive), this.listenTo(e3, "checkActive", this.checkActive), this.listenTo(e3, "change:bntsVis", this.updateBtnsVis), this.listenTo(e3, "change:attributes", this.updateAttributes), this.listenTo(e3, "change:className", this.updateClassName), this.listenTo(e3, "change:disable", this.updateDisable), a2 && (0, y.isString)(i2) && o2) { + var u2 = { fromListen: 1 }; + this.listenTo(a2, "run:".concat(i2), function() { + return e3.set("active", true, u2); + }), this.listenTo(a2, "stop:".concat(i2), function() { + return e3.set("active", false, u2); + }); + } + a2 && a2.get && (this.commands = a2.get("Commands")); + }, updateClassName: function() { + var t3 = this.model, e3 = this.pfx, n3 = t3.get("className"), r3 = t3.get("attributes").class, i2 = "".concat(r3 || "", " ").concat(e3, "btn ").concat(n3 || ""); + this.$el.attr("class", i2.trim()); + }, updateAttributes: function() { + var t3 = this.em, e3 = this.model, n3 = this.$el, r3 = e3.get("attributes") || {}, i2 = t3 && t3.t && t3.t("panels.buttons.titles.".concat(e3.id)); + n3.attr(r3), i2 && n3.attr({ title: i2 }), this.updateClassName(); + }, updateBtnsVis: function() { + this.$buttons && (this.model.get("bntsVis") ? this.$buttons.addClass(this.btnsVisCls) : this.$buttons.removeClass(this.btnsVisCls)); + }, updateActive: function(t3, e3) { + var n3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r3 = this.model, i2 = this.commands, o2 = this.$el, s2 = this.activeCls, a2 = n3.fromCollection, l2 = n3.fromListen, c2 = r3.get("context"), u2 = r3.get("options"), h2 = r3.get("command"), f2 = {}; + h2 && (i2 && (0, y.isString)(h2) ? f2 = i2.get(h2) || {} : (0, y.isFunction)(h2) ? f2 = i2.create({ run: h2 }) : h2 !== null && (0, y.isObject)(h2) && (f2 = i2.create(h2)), r3.get("active") ? (!a2 && r3.collection.deactivateAll(c2, r3), r3.set("active", true, { silent: true }).trigger("checkActive"), !l2 && i2.runCommand(f2, w(w({}, u2), {}, { sender: r3 })), f2.noStop && r3.set("active", false)) : (o2.removeClass(s2), !l2 && i2.stopCommand(f2, w(w({}, u2), {}, { sender: r3, force: 1 })))); + }, updateDisable: function() { + var t3 = this.disableCls, e3 = this.model.get("disable"); + this.$el[e3 ? "addClass" : "removeClass"](t3); + }, checkActive: function() { + var t3 = this.model, e3 = this.$el, n3 = this.activeCls; + t3.get("active") ? e3.addClass(n3) : e3.removeClass(n3); + }, clicked: function(t3) { + var e3 = this.model; + e3.get("bntsVis") || e3.get("disable") || !e3.get("command") || this.toggleActive(); + }, toggleActive: function() { + var t3 = this.model, e3 = this.em, n3 = t3.attributes, r3 = n3.active, i2 = n3.togglable; + r3 && !i2 || (t3.set("active", !r3), r3 ? t3.get("runDefaultCommand") && e3.runDefault() : t3.get("stopDefaultCommand") && e3.stopDefault()); + }, render: function() { + var t3 = this.model, e3 = t3.get("label"), n3 = this.$el; + return !t3.get("el") && n3.empty(), this.updateAttributes(), e3 && n3.append(e3), this.checkActive(), this.updateDisable(), this; + } }), O = d().View.extend({ initialize: function(t3) { + this.opt = t3 || {}, this.config = this.opt.config || {}, this.pfx = this.config.stylePrefix || "", this.parentM = this.opt.parentM || null, this.listenTo(this.collection, "add", this.addTo), this.listenTo(this.collection, "reset remove", this.render), this.className = this.pfx + "buttons"; + }, addTo: function(t3) { + this.addToCollection(t3); + }, addToCollection: function(t3, e3) { + var n3 = e3 || null, r3 = new x({ el: t3.get("el"), model: t3, config: this.config, parentM: this.parentM }).render().el; + return n3 ? n3.appendChild(r3) : this.$el.append(r3), r3; + }, render: function() { + var t3 = document.createDocumentFragment(); + return this.$el.empty(), this.collection.each(function(e3) { + this.addToCollection(e3, t3); + }, this), this.$el.append(t3), this.$el.attr("class", (0, y.result)(this, "className")), this; + } }); + function C(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + const k = d().View.extend({ initialize: function(t3) { + var e3 = t3.config || {}, n3 = this.model; + this.config = e3, this.pfx = e3.stylePrefix || "", this.ppfx = e3.pStylePrefix || "", this.buttons = n3.get("buttons"), this.className = this.pfx + "panel", this.id = this.pfx + n3.get("id"), this.listenTo(n3, "change:appendContent", this.appendContent), this.listenTo(n3, "change:content", this.updateContent), this.listenTo(n3, "change:visible", this.toggleVisible), n3.view = this; + }, appendContent: function() { + this.$el.append(this.model.get("appendContent")); + }, updateContent: function() { + this.$el.html(this.model.get("content")); + }, toggleVisible: function() { + this.model.get("visible") ? this.$el.removeClass("".concat(this.ppfx, "hidden")) : this.$el.addClass("".concat(this.ppfx, "hidden")); + }, attributes: function() { + return this.model.get("attributes"); + }, initResize: function() { + var t3 = this.config.em, e3 = t3 ? t3.get("Editor") : "", n3 = this.model.get("resizable"); + if (e3 && n3) { + var r3, i2, o2, s2 = n3 === true ? [1, 1, 1, 1] : n3, a2 = s2.length, l2 = 0; + a2 == 2 ? (r3 = s2[0], o2 = s2[0], i2 = s2[1], l2 = s2[1]) : a2 == 4 && (r3 = s2[0], i2 = s2[1], o2 = s2[2], l2 = s2[3]); + var c2 = e3.Utils.Resizer.init(function(t4) { + for (var e4 = 1; e4 < arguments.length; e4++) { + var n4 = arguments[e4] != null ? arguments[e4] : {}; + e4 % 2 ? C(Object(n4), true).forEach(function(e5) { + (0, m.Z)(t4, e5, n4[e5]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t4, Object.getOwnPropertyDescriptors(n4)) : C(Object(n4)).forEach(function(e5) { + Object.defineProperty(t4, e5, Object.getOwnPropertyDescriptor(n4, e5)); + }); + } + return t4; + }({ tc: r3, cr: i2, bc: o2, cl: l2, tl: 0, tr: 0, bl: 0, br: 0, appendTo: this.el, silentFrames: 1, avoidContainerUpdate: 1, prefix: e3.getConfig().stylePrefix, onEnd: function() { + t3 && t3.trigger("change:canvasOffset"); + }, posFetcher: function(t4, e4) { + var n4 = e4.target, r4 = t4.style, i3 = c2.getConfig(), o3 = i3.keyWidth, s3 = i3.keyHeight, a3 = t4.getBoundingClientRect(), l3 = n4 == "container", u2 = r4[o3], h2 = r4[s3]; + return { left: 0, top: 0, width: u2 && !l3 ? parseFloat(u2) : a3.width, height: h2 && !l3 ? parseFloat(h2) : a3.height }; + } }, n3)); + c2.blur = function() { + }, c2.focus(this.el); + } + }, render: function() { + var t3 = this.$el, e3 = this.ppfx, n3 = "".concat(this.className, " ").concat(this.id, " ").concat(e3, "one-bg ").concat(e3, "two-color"); + if (t3.addClass(n3), this.toggleVisible(), this.buttons.length) { + var r3 = new O({ collection: this.buttons, config: this.config }); + t3.append(r3.render().el); + } + return t3.append(this.model.get("content")), this; + } }), S = d().View.extend({ initialize: function(t3) { + this.opt = t3 || {}, this.config = this.opt.config || {}, this.pfx = this.config.stylePrefix || ""; + var e3 = this.collection; + this.listenTo(e3, "add", this.addTo), this.listenTo(e3, "reset", this.render), this.listenTo(e3, "remove", this.onRemove), this.className = this.pfx + "panels"; + }, onRemove: function(t3) { + var e3 = t3.view; + e3 && e3.remove(); + }, addTo: function(t3) { + this.addToCollection(t3); + }, addToCollection: function(t3, e3) { + var n3 = e3 || null, r3 = this.config, i2 = t3.get("el"), o2 = new k({ el: i2, model: t3, config: r3 }), s2 = o2.render().el, a2 = t3.get("appendTo"); + if (i2) + ; + else if (a2) { + document.querySelector(a2).appendChild(s2); + } else + n3 ? n3.appendChild(s2) : this.$el.append(s2); + return o2.initResize(), s2; + }, render: function() { + var t3 = this, e3 = this.$el, n3 = document.createDocumentFragment(); + return e3.empty(), this.collection.each(function(e4) { + return t3.addToCollection(e4, n3); + }), e3.append(n3), e3.attr("class", this.className), this; + } }), P = function() { + var t3, e3, n3 = {}; + return { name: "Panels", init: function(e4) { + for (var r3 in n3 = e4 || {}, h) + r3 in n3 || (n3[r3] = h[r3]); + var i2 = n3.pStylePrefix; + return i2 && (n3.stylePrefix = i2 + n3.stylePrefix), t3 = new v(n3.defaults), this; + }, getPanels: function() { + return t3; + }, getPanelsEl: function() { + return e3 && e3.el; + }, addPanel: function(e4) { + return t3.add(e4); + }, removePanel: function(e4) { + return t3.remove(e4); + }, getPanel: function(e4) { + var n4 = t3.where({ id: e4 }); + return n4.length ? n4[0] : null; + }, addButton: function(t4, e4) { + var n4 = this.getPanel(t4); + return n4 ? n4.get("buttons").add(e4) : null; + }, removeButton: function(t4, e4) { + var n4 = this.getPanel(t4); + return n4 && n4.get("buttons").remove(e4); + }, getButton: function(t4, e4) { + var n4 = this.getPanel(t4); + if (n4) { + var r3 = n4.get("buttons").where({ id: e4 }); + return r3.length ? r3[0] : null; + } + return null; + }, render: function() { + return e3 && e3.remove(), (e3 = new S({ collection: t3, config: n3 })).render().el; + }, active: function() { + this.getPanels().each(function(t4) { + t4.get("buttons").each(function(t5) { + t5.get("active") && t5.trigger("updateActive"); + }); + }); + }, disableButtons: function() { + this.getPanels().each(function(t4) { + t4.get("buttons").each(function(t5) { + t5.get("disable") && t5.trigger("change:disable"); + }); + }); + }, destroy: function() { + t3.reset(), t3.stopListening(), e3 && e3.remove(), [n3, t3, e3].forEach(function(t4) { + return {}; + }); + }, Panel: g }; + }; + }, 2516: (t2, e2, n2) => { + "use strict"; + n2.d(e2, { Z: () => s }); + var r2 = n2(2316), i = n2.n(r2); + const o = i().Model.extend({ defaults: { id: "", label: "", tagName: "span", className: "", command: "", context: "", buttons: [], attributes: {}, options: {}, active: false, dragDrop: false, togglable: true, runDefaultCommand: true, stopDefaultCommand: false, disable: false }, initialize: function(t3) { + if (this.get("buttons").length) { + var e3 = n2(2516).Z; + this.set("buttons", new e3(this.get("buttons"))); + } + } }), s = i().Collection.extend({ model: o, deactivateAllExceptOne: function(t3, e3) { + this.forEach(function(n3, r3) { + n3 !== t3 && (n3.set("active", false), e3 && n3.get("buttons").length && n3.get("buttons").deactivateAllExceptOne(t3, e3)); + }); + }, deactivateAll: function(t3, e3) { + var n3 = t3 || ""; + this.forEach(function(t4) { + t4.get("context") == n3 && t4 !== e3 && t4.set("active", false, { fromCollection: 1 }); + }); + }, disableAllButtons: function(t3) { + var e3 = t3 || ""; + this.forEach(function(t4, n3) { + t4.get("context") == e3 && t4.set("disable", true); + }); + }, disableAllButtonsExceptOne: function(t3, e3) { + this.forEach(function(n3, r3) { + n3 !== t3 && (n3.set("disable", true), e3 && n3.get("buttons").length && n3.get("buttons").disableAllButtonsExceptOne(t3, e3)); + }); + } }); + }, 4424: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => w }); + var r2 = n2(4942); + const i = { textTags: ["br", "b", "i", "u", "a", "ul", "ol"], parserCss: null, parserHtml: null, optionsHtml: { htmlType: null, allowScripts: false, allowUnsafeAttr: false } }; + var o = n2(9050), s = { 4: "media", 5: "font-face", 6: "page", 7: "keyframes", 11: "counter-style", 12: "supports", 13: "document", 14: "font-feature-values", 15: "viewport" }, a = (0, o.keys)(s), l = ["5", "6", "11", "15"], c = ["font-face", "page", "counter-style", "viewport"], u = function() { + for (var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", e3 = [], n3 = [], r3 = t3.split(","), i2 = 0, o2 = r3.length; i2 < o2; i2++) { + var s2 = r3[i2].trim(); + if (/^(\.{1}[\w\-]+)+(:{1,2}[\w\-()]+)?$/gi.test(s2) || /^(#{1}[\w\-]+){1}(:{1,2}[\w\-()]+)?$/gi.test(s2)) { + var a2 = s2.split(".").filter(Boolean); + n3.push(a2); + } else + e3.push(s2); + } + return { result: n3, add: e3 }; + }, h = function(t3) { + for (var e3 = t3.style, n3 = {}, r3 = 0, i2 = e3.length; r3 < i2; r3++) { + var o2 = e3[r3], s2 = e3.getPropertyValue(o2), a2 = e3.getPropertyPriority(o2); + n3[o2] = "".concat(s2).concat(a2 ? " !".concat(a2) : ""); + } + return n3; + }, f = function(t3) { + return (t3.conditionText || t3.media && t3.media.mediaText || t3.name || t3.selectorText || "").trim(); + }, d = function(t3) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r3 = {}, i2 = t3.length, o2 = t3[i2 - 1], s2 = o2 ? o2.split(/:(.+)/) : [], a2 = s2[1], l2 = n3.atRule, u2 = n3.selectorsAdd, h2 = n3.mediaText, f2 = c.indexOf(l2) >= 0; + return f2 && (r3.singleAtRule = 1), l2 && (r3.atRuleType = l2), u2 && (r3.selectorsAdd = u2), h2 && (r3.mediaText = h2), a2 && (t3[i2 - 1] = s2[0], r3.state = a2, s2.splice(s2.length - 1, 1)), r3.selectors = t3, r3.style = e3, r3; + }, p = function t3(e3) { + for (var n3 = [], r3 = e3.cssRules || [], i2 = 0, o2 = r3.length; i2 < o2; i2++) { + var c2 = r3[i2], p2 = c2.type.toString(), g2 = 0, v2 = "", m2 = "", y2 = c2.selectorText || c2.keyText, b2 = l.indexOf(p2) >= 0; + if (b2) + g2 = 1, v2 = s[p2], m2 = f(c2); + else if (a.indexOf(p2) >= 0) { + var w2 = t3(c2); + m2 = f(c2); + for (var x = 0, O = w2.length; x < O; x++) { + var C = w2[x]; + m2 && (C.mediaText = m2), C.atRuleType = s[p2]; + } + n3 = n3.concat(w2); + } + if (y2 || b2) { + for (var k = h(c2), S = u(y2), P = S.add, _ = void 0, T = 0, E = (y2 = S.result).length; T < E; T++) { + var j = d(y2[T], k, { atRule: s[p2] }); + n3.push(j), _ = j; + } + if (P.length) { + var D = P.join(", "); + if (_) + _.selectorsAdd = D; + else { + var M = { selectors: [], selectorsAdd: D, style: k }; + g2 && (M.singleAtRule = g2), v2 && (M.atRuleType = v2), m2 && (M.mediaText = m2), n3.push(M); + } + } + } + } + return n3; + }; + const g = function(t3) { + var e3 = document.createElement("style"); + e3.innerHTML = t3, document.head.appendChild(e3); + var n3 = e3.sheet; + return document.head.removeChild(e3), p(n3); + }, v = function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + return { parse: function(e3) { + var n3 = this, r3 = [], i2 = t3.parserCss, o2 = t3.em, s2 = o2 && o2.get && o2.get("Editor"); + return (i2 ? i2(e3, s2) : g(e3)).forEach(function(t4) { + return r3 = r3.concat(n3.checkNode(t4)); + }), o2 && o2.trigger("parse:css", { input: e3, output: r3 }), r3; + }, checkNode: function(t4) { + var e3 = t4, n3 = e3.selectors, r3 = e3.style; + if ((0, o.isString)(n3)) { + var i2 = [], s2 = u(n3), a2 = s2.result, l2 = s2.add.join(", "), c2 = { atRule: t4.atRule, mediaText: t4.params }; + if (a2.length ? a2.forEach(function(t5) { + i2.push(d(t5, r3, c2)); + }) : i2.push(d([], r3, c2)), l2) + i2[i2.length - 1].selectorsAdd = l2; + t4 = i2; + } + return t4; + } }; + }; + var m = n2(5311); + function y(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function b(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? y(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : y(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + const w = function() { + var t3, e3, n3 = {}; + return { compTypes: "", parserCss: null, parserHtml: null, name: "Parser", init: function() { + var r3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + return (n3 = b(b({}, i), r3)).Parser = this, t3 = new m.Z(n3), e3 = new v(n3), this.em = n3.em, this.parserCss = e3, this.parserHtml = t3, this; + }, getConfig: function() { + return n3; + }, parseHtml: function(n4) { + var r3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i2 = this.em, o2 = this.compTypes; + return t3.compTypes = i2 ? i2.get("DomComponents").getTypes() : o2, t3.parse(n4, e3, r3); + }, parseCss: function(t4) { + return e3.parse(t4); + }, destroy: function() { + var r3 = this; + [n3, t3, e3].forEach(function(t4) { + return {}; + }), ["em", "parserCss", "parserHtml"].forEach(function(t4) { + return r3[t4] = {}; + }); + } }; + }; + }, 5311: (t2, e2, n2) => { + "use strict"; + n2.d(e2, { Z: () => h }); + var r2 = n2(4942), i = n2(1002), o = n2(9050), s = "text/html", a = s; + const l = function(t3) { + var e3, n3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r3 = new DOMParser(), i2 = n3.htmlType || a, l2 = i2 === s, c2 = l2 ? t3 : "<div>".concat(t3, "</div>"), u2 = r3.parseFromString(c2, i2); + if (l2) { + var h2 = u2.head, f = u2.body, d = h2.querySelectorAll("script"); + (0, o.each)(d, function(t4) { + return f.appendChild(t4); + }); + var p = []; + (0, o.each)(h2.children, function(t4) { + return p.push(t4); + }), (0, o.each)(p, function(t4, e4) { + return f.insertBefore(t4, f.children[e4]); + }), e3 = f; + } else + e3 = u2.firstChild; + return e3; + }; + function c(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function u(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? c(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : c(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + const h = function(t3) { + var e3 = t3, n3 = "data-gjs-", r3 = "parse:html"; + return { compTypes: "", modelAttrStart: n3, splitPropsFromAttr: function() { + var t4 = this, e4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r4 = {}, i2 = {}; + return (0, o.each)(e4, function(e5, s2) { + if (s2.indexOf(t4.modelAttrStart) === 0) { + var a2 = s2.replace(n3, ""), l2 = e5.length, c2 = e5 && (0, o.isString)(e5), u2 = c2 && e5.substr(0, 1), h2 = c2 && e5.substr(l2 - 1); + e5 = (e5 = e5 === "true" || e5) !== "false" && e5; + try { + e5 = u2 == "{" && h2 == "}" || u2 == "[" && h2 == "]" ? JSON.parse(e5) : e5; + } catch (t5) { + } + r4[a2] = e5; + } else + i2[s2] = e5; + }), { props: r4, attrs: i2 }; + }, parseStyle: function(t4) { + for (var e4 = {}, n4 = t4.split(";"), r4 = 0, i2 = n4.length; r4 < i2; r4++) { + var o2 = n4[r4].trim(); + if (o2) { + var s2 = o2.split(":"); + e4[s2[0].trim()] = s2.slice(1).join(":").trim(); + } + } + return e4; + }, parseClass: function(t4) { + for (var e4 = [], n4 = t4.split(" "), r4 = 0, i2 = n4.length; r4 < i2; r4++) { + var o2 = n4[r4].trim(); + o2 && e4.push(o2); + } + return e4; + }, parseNode: function(r4) { + for (var o2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s2 = [], a2 = r4.childNodes, l2 = 0, c2 = a2.length; l2 < c2; l2++) { + var h2 = a2[l2], f = h2.attributes || [], d = f.length, p = s2[s2.length - 1], g = h2.childNodes.length, v = this.compTypes, m = {}; + if (v) { + var y = "", b = h2.getAttribute && h2.getAttribute("".concat(n3, "type")); + if (b) + m = { type: b }; + else { + for (var w = 0; w < v.length; w++) { + var x = v[w]; + if (y = x.model.isComponent(h2, o2)) { + (0, i.Z)(y) !== "object" && (y = { type: x.id }); + break; + } + } + m = y; + } + } + if (!m.tagName) { + var O = h2.tagName || "", C = h2.namespaceURI || ""; + m.tagName = O && C === "http://www.w3.org/1999/xhtml" ? O.toLowerCase() : O; + } + d && (m.attributes = {}); + for (var k = 0; k < d; k++) { + var S = f[k].nodeName, P = f[k].nodeValue; + if (S == "style") + m.style = this.parseStyle(P); + else if (S == "class") + m.classes = this.parseClass(P); + else { + if (S == "contenteditable") + continue; + if (S.indexOf(n3) === 0) { + var _ = S.replace(n3, ""), T = P.length, E = P && P.substr(0, 1), j = P && P.substr(T - 1); + P = (P = P === "true" || P) !== "false" && P; + try { + P = E == "{" && j == "}" || E == "[" && j == "]" ? JSON.parse(P) : P; + } catch (t4) { + } + m[_] = P; + } else + P === "" && h2[S] === true && (P = true), m.attributes[S] = P; + } + } + if (g && !m.components) { + var D = h2.childNodes[0]; + g === 1 && D.nodeType === 3 ? (!m.type && (m.type = "text"), m.components = { type: "textnode", content: D.nodeValue }) : m.components = this.parseNode(h2, u(u({}, o2), {}, { inSvg: o2.inSvg || m.type === "svg" })); + } + if (m.type == "textnode") { + if (p && p.type == "textnode") { + p.content += m.content; + continue; + } + if (!t3.keepEmptyTextNodes) { + var M = h2.nodeValue; + if (M != " " && !M.trim()) + continue; + } + } + g || "".concat(h2.outerHTML).slice(-2) !== "/>" || (m.void = true); + var A = m.components; + if (!m.type && A) { + for (var L = 1, R = 0, N = 0; N < A.length; N++) { + var Z = A[N], I = Z.type; + if (["text", "textnode"].indexOf(I) < 0 && e3.textTags.indexOf(Z.tagName) < 0) { + L = 0; + break; + } + I == "textnode" && (R = 1); + } + L && R && (m.type = "text"); + } + (m.tagName || m.type == "textnode") && s2.push(m); + } + return s2; + }, parse: function(n4, i2) { + var s2, a2 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, c2 = e3.em, h2 = c2 && c2.get("Config") || {}, f = { html: null, css: null }, d = u(u({}, t3), a2), p = u(u({}, t3.optionsHtml), {}, { htmlType: ((s2 = t3.optionsHtml) === null || s2 === void 0 ? void 0 : s2.htmlType) || t3.htmlType }, a2), g = (0, o.isFunction)(d.parserHtml) ? d.parserHtml(n4, p) : l(n4, p), v = g.querySelectorAll("script"), m = v.length, y = (0, o.isUndefined)(h2.allowScripts) ? p.allowScripts : h2.allowScripts; + if (!y) + for (; m--; ) + v[m].parentNode.removeChild(v[m]); + if (p.allowUnsafeAttr || this.__clearUnsafeAttr(g), i2) { + for (var b = g.querySelectorAll("style"), w = b.length, x = ""; w--; ) + x = b[w].innerHTML + x, b[w].parentNode.removeChild(b[w]); + x && (f.css = i2.parse(x)); + } + c2 && c2.trigger("".concat(r3, ":root"), { input: n4, root: g }); + var O = this.parseNode(g, d), C = O.length !== 1 || e3.returnArray ? O : O[0]; + return f.html = C, c2 && c2.trigger(r3, { input: n4, output: f }), f; + }, __clearUnsafeAttr: function(t4) { + var e4 = this, n4 = t4.attributes || [], r4 = t4.childNodes || [], i2 = []; + (0, o.each)(n4, function(t5) { + var e5 = t5.nodeName || ""; + e5.indexOf("on") === 0 && i2.push(e5); + }), i2.map(function(e5) { + return t4.removeAttribute(e5); + }), (0, o.each)(r4, function(t5) { + return e4.__clearUnsafeAttr(t5); + }); + } }; + }; + }, 2012: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => S }); + var r2 = n2(5861), i = n2(2982), o = n2(4942), s = n2(7757), a = n2.n(s), l = n2(5671), c = n2(3144), u = n2(9050), h = n2(6183); + function f(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function d(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? f(Object(n3), true).forEach(function(e4) { + (0, o.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : f(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + var p = 1, g = 0, v = -1, m = function(t3) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "A", n3 = t3.selection(), r3 = n3.anchorNode, i2 = n3.focusNode, o2 = r3 == null ? void 0 : r3.parentNode, s2 = i2 == null ? void 0 : i2.parentNode; + return (o2 == null ? void 0 : o2.nodeName) == e3 || (s2 == null ? void 0 : s2.nodeName) == e3; + }, y = "data-selectme", b = { bold: { name: "bold", icon: "<b>B</b>", attributes: { title: "Bold" }, result: function(t3) { + return t3.exec("bold"); + } }, italic: { name: "italic", icon: "<i>I</i>", attributes: { title: "Italic" }, result: function(t3) { + return t3.exec("italic"); + } }, underline: { name: "underline", icon: "<u>U</u>", attributes: { title: "Underline" }, result: function(t3) { + return t3.exec("underline"); + } }, strikethrough: { name: "strikethrough", icon: "<s>S</s>", attributes: { title: "Strike-through" }, result: function(t3) { + return t3.exec("strikeThrough"); + } }, link: { icon: '<svg viewBox="0 0 24 24">\n <path fill="currentColor" d="M3.9,12C3.9,10.29 5.29,8.9 7,8.9H11V7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H11V15.1H7C5.29,15.1 3.9,13.71 3.9,12M8,13H16V11H8V13M17,7H13V8.9H17C18.71,8.9 20.1,10.29 20.1,12C20.1,13.71 18.71,15.1 17,15.1H13V17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7Z" />\n </svg>', name: "link", attributes: { style: "font-size:1.4rem;padding:0 4px 2px;", title: "Link" }, state: function(t3) { + return t3 && t3.selection() && m(t3) ? p : g; + }, result: function(t3) { + m(t3) ? t3.exec("unlink") : t3.insertHTML('<a href="" '.concat(y, ">").concat(t3.selection(), "</a>"), { select: true }); + } }, wrap: { icon: '<svg viewBox="0 0 24 24">\n <path fill="currentColor" d="M20.71,4.63L19.37,3.29C19,2.9 18.35,2.9 17.96,3.29L9,12.25L11.75,15L20.71,6.04C21.1,5.65 21.1,5 20.71,4.63M7,14A3,3 0 0,0 4,17C4,18.31 2.84,19 2,19C2.92,20.22 4.5,21 6,21A4,4 0 0,0 10,17A3,3 0 0,0 7,14Z" />\n </svg>', attributes: { title: "Wrap for style" }, state: function(t3) { + return t3 != null && t3.selection() && m(t3, "SPAN") ? v : g; + }, result: function(t3) { + !m(t3, "SPAN") && t3.insertHTML("<span ".concat(y, ">").concat(t3.selection(), "</span>"), { select: true }); + } } }, w = function() { + function t3() { + var e3 = this, n3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + (0, l.Z)(this, t3); + var r3 = n3.el, i2 = n3.em; + if (this.em = i2, r3._rte) + return r3._rte; + r3._rte = this, this.setEl(r3), this.updateActiveActions = this.updateActiveActions.bind(this), this.__onKeydown = this.__onKeydown.bind(this), this.__onPaste = this.__onPaste.bind(this); + var o2 = (n3.actions || []).map(function(t4) { + var e4 = t4; + return typeof t4 == "string" ? e4 = d({}, b[t4]) : b[t4.name] && (e4 = d(d({}, b[t4.name]), t4)), e4; + }), s2 = o2.length ? o2 : Object.keys(b).map(function(t4) { + return b[t4]; + }); + n3.classes = d(d({}, { actionbar: "actionbar", button: "action", active: "active", disabled: "disabled", inactive: "inactive" }), n3.classes); + var a2 = n3.classes, c2 = n3.actionbar; + if (this.actionbar = c2, this.settings = n3, this.classes = a2, this.actions = s2, !c2) { + var u2 = n3.actionbarContainer; + (c2 = document.createElement("div")).className = a2.actionbar, u2.appendChild(c2), this.actionbar = c2, s2.forEach(function(t4) { + return e3.addAction(t4); + }); + } + return n3.styleWithCSS && this.exec("styleWithCSS"), this; + } + return (0, c.Z)(t3, [{ key: "destroy", value: function() { + this.el = 0, this.doc = 0, this.actionbar = 0, this.settings = {}, this.classes = {}, this.actions = []; + } }, { key: "setEl", value: function(t4) { + this.el = t4, this.doc = t4.ownerDocument; + } }, { key: "updateActiveActions", value: function() { + var t4 = this; + this.getActions().forEach(function(e3) { + var n3 = e3.btn, r3 = e3.update, i2 = d({}, t4.classes), o2 = i2.active, s2 = i2.inactive, a2 = i2.disabled, l2 = e3.state, c2 = e3.name, u2 = t4.doc; + if (n3.className = n3.className.replace(o2, "").trim(), n3.className = n3.className.replace(s2, "").trim(), n3.className = n3.className.replace(a2, "").trim(), l2) + switch (l2(t4, u2)) { + case p: + n3.className += " ".concat(o2); + break; + case g: + n3.className += " ".concat(s2); + break; + case v: + n3.className += " ".concat(a2); + } + else + u2.queryCommandSupported(c2) && u2.queryCommandState(c2) && (n3.className += " ".concat(o2)); + r3 && r3(t4, e3); + }); + } }, { key: "enable", value: function(t4) { + return this.enabled ? this : this.__toggleEffects(true, t4); + } }, { key: "disable", value: function() { + return this.__toggleEffects(false); + } }, { key: "__toggleEffects", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 && arguments[0], e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n3 = t4 ? h.on : h.off, r3 = this.el, i2 = this.doc; + if (this.actionbarEl().style.display = t4 ? "" : "none", r3.contentEditable = !!t4, n3(r3, "mouseup keyup", this.updateActiveActions), n3(i2, "keydown", this.__onKeydown), n3(i2, "paste", this.__onPaste), this.enabled = t4, t4) { + var o2 = e3.event; + if (this.syncActions(), this.updateActiveActions(), o2) { + var s2 = null; + if (i2.caretRangeFromPoint) { + var a2 = (0, h.getPointerEvent)(o2); + s2 = i2.caretRangeFromPoint(a2.clientX, a2.clientY); + } else + o2.rangeParent && (s2 = i2.createRange()).setStart(o2.rangeParent, o2.rangeOffset); + var l2 = i2.getSelection(); + l2.removeAllRanges(), s2 && l2.addRange(s2); + } + r3.focus(); + } + return this; + } }, { key: "__onKeydown", value: function(t4) { + t4.key === "Enter" && (this.doc.execCommand("insertLineBreak"), t4.preventDefault()); + } }, { key: "__onPaste", value: function(t4) { + var e3 = t4.clipboardData || window.clipboardData, n3 = e3.getData("text"), r3 = e3.getData("text/html"); + if (n3 && !r3) { + t4.preventDefault(); + var i2 = n3.replace(/(?:\r\n|\r|\n)/g, "<br/>"); + this.doc.execCommand("insertHTML", false, i2); + } + } }, { key: "syncActions", value: function() { + var t4 = this; + this.getActions().forEach(function(e3) { + if (t4.actionbar && (!e3.state || e3.state && e3.state(t4, t4.doc) >= 0)) { + var n3 = e3.event || "click"; + e3.btn["on".concat(n3)] = function(n4) { + e3.result(t4, e3), t4.updateActiveActions(); + }; + } + }); + } }, { key: "addAction", value: function(t4) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n3 = e3.sync, r3 = document.createElement("span"), i2 = t4.icon, o2 = t4.attributes || {}; + for (var s2 in r3.className = this.classes.button, t4.btn = r3, o2) + r3.setAttribute(s2, o2[s2]); + typeof i2 == "string" ? r3.innerHTML = i2 : r3.appendChild(i2), this.actionbarEl().appendChild(r3), n3 && (this.actions.push(t4), this.syncActions()); + } }, { key: "getActions", value: function() { + return this.actions; + } }, { key: "selection", value: function() { + return this.doc.getSelection(); + } }, { key: "exec", value: function(t4) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null; + this.doc.execCommand(t4, false, e3); + } }, { key: "actionbarEl", value: function() { + return this.actionbar; + } }, { key: "insertHTML", value: function(t4) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n3 = e3.select, r3 = this.em, i2 = this.doc, o2 = this.el, s2 = i2.getSelection(); + if (s2 && s2.rangeCount) { + var a2 = (0, h.getModel)(o2), l2 = i2.createElement("div"), c2 = s2.getRangeAt(0); + c2.deleteContents(), (0, u.isString)(t4) ? l2.innerHTML = t4 : t4 && l2.appendChild(t4), Array.prototype.slice.call(l2.childNodes).forEach(function(t5) { + c2.insertNode(t5); + }), s2.removeAllRanges(), s2.addRange(c2), o2.focus(), n3 && a2 && (a2.once("rte:disable", function() { + var t5 = a2.find("[".concat(y, "]"))[0]; + t5 && (r3.setSelected(t5), t5.removeAttributes(y)); + }), a2.trigger("disable")); + } + } }]), t3; + }(); + const x = { stylePrefix: "rte-", adjustToolbar: 1, actions: ["bold", "italic", "underline", "strikethrough", "link", "wrap"] }; + function O(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function C(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? O(Object(n3), true).forEach(function(e4) { + (0, o.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : O(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + var k = "change:canvasOffset frame:scroll component:update"; + const S = function() { + var t3, e3 = function() { + var e4 = t3.style, n3 = "-1000px"; + e4.top = n3, e4.left = n3, e4.display = "none"; + }; + return { customRte: null, name: "RichTextEditor", getConfig: function() { + return this.config; + }, init: function() { + var e4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n3 = C(C({}, x), e4), r3 = n3.pStylePrefix; + return r3 && (n3.stylePrefix = r3 + n3.stylePrefix), this.config = n3, this.pfx = n3.stylePrefix, this.em = n3.em, this.actions = n3.actions || [], (0, h.hasWin)() ? ((t3 = document.createElement("div")).className = "".concat(r3, "rte-toolbar ").concat(r3, "one-bg"), this.initRte(document.createElement("div")), (0, h.on)(t3, "mousedown", function(t4) { + return t4.stopPropagation(); + }), this) : this; + }, destroy: function() { + var e4, n3, r3, i2 = this; + (e4 = this.globalRte) === null || e4 === void 0 || e4.destroy(), (n3 = this.customRte) === null || n3 === void 0 || (r3 = n3.destroy) === null || r3 === void 0 || r3.call(n3), t3 = 0, ["actionbar", "actions", "em", "config", "globalRte", "lastEl"].map(function(t4) { + delete i2[t4]; + }); + }, postRender: function(n3) { + var r3 = n3.model.get("Canvas"); + t3.style.pointerEvents = "all", e3(), r3.getToolsEl().appendChild(t3); + }, initRte: function(e4) { + var n3 = this.globalRte, r3 = this.em, o2 = this.pfx, s2 = this.actionbar, a2 = this.config, l2 = t3, c2 = this.actions || (0, i.Z)(a2.actions), u2 = { actionbar: "".concat(o2, "actionbar"), button: "".concat(o2, "action"), active: "".concat(o2, "active"), inactive: "".concat(o2, "inactive"), disabled: "".concat(o2, "disabled") }; + return n3 ? (n3.em = r3, n3.setEl(e4)) : (n3 = new w({ em: r3, el: e4, classes: u2, actions: c2, actionbar: s2, actionbarContainer: l2 }), this.globalRte = n3), n3.actionbar && (this.actionbar = n3.actionbar), n3.actions && (this.actions = n3.actions), n3; + }, add: function(t4) { + var e4, n3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + n3.name = t4, (e4 = this.globalRte) === null || e4 === void 0 || e4.addAction(n3, { sync: 1 }); + }, get: function(t4) { + var e4, n3; + return (e4 = this.globalRte) === null || e4 === void 0 || e4.getActions().forEach(function(e5) { + e5.name == t4 && (n3 = e5); + }), n3; + }, getAll: function() { + var t4; + return (t4 = this.globalRte) === null || t4 === void 0 ? void 0 : t4.getActions(); + }, remove: function(t4) { + var e4 = this.getAll(), n3 = this.get(t4); + if (n3) { + var r3 = n3.btn, i2 = e4.indexOf(n3); + r3.parentNode.removeChild(r3), e4.splice(i2, 1); + } + return n3; + }, getToolbarEl: function() { + return t3; + }, updatePosition: function() { + var e4 = this.em.get("Canvas"), n3 = t3.style, r3 = e4.getTargetToElementFixed(this.lastEl, t3, { event: "rteToolbarPosUpdate", left: 0 }); + n3.top = (r3.top || 0) + "px", n3.left = (r3.left || 0) + "px"; + }, enable: function(e4, n3, i2) { + var o2 = this; + return (0, r2.Z)(a().mark(function r3() { + var s2, l2, c2, u2; + return a().wrap(function(r4) { + for (; ; ) + switch (r4.prev = r4.next) { + case 0: + return o2.lastEl = e4.el, s2 = o2.customRte, l2 = o2.em, c2 = e4.getChildrenContainer(), t3.style.display = "", r4.next = 6, s2 ? s2.enable(c2, n3) : o2.initRte(c2).enable(i2); + case 6: + return u2 = r4.sent, l2 && (setTimeout(o2.updatePosition.bind(o2), 0), l2.off(k, o2.updatePosition, o2), l2.on(k, o2.updatePosition, o2), l2.trigger("rte:enable", e4, u2)), r4.abrupt("return", u2); + case 9: + case "end": + return r4.stop(); + } + }, r3); + }))(); + }, disable: function(t4, n3) { + var r3 = this.em, i2 = this.customRte, o2 = t4.getChildrenContainer(); + i2 ? i2.disable(o2, n3) : n3 && n3.disable(), e3(), r3 && (r3.off(k, this.updatePosition, this), r3.trigger("rte:disable", t4, n3)); + } }; + }; + }, 4755: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => H, evAdd: () => R, evAll: () => A, evCustom: () => F, evPfx: () => L, evRemove: () => Z, evRemoveBefore: () => I, evState: () => V, evUpdate: () => N }); + var r2 = n2(2982), i = n2(4942), o = n2(9050), s = n2(6183), a = n2(2316), l = n2.n(a), c = n2(9304); + const u = { stylePrefix: "clm-", appendTo: "", selectors: [], states: [{ name: "hover" }, { name: "active" }, { name: "nth-of-type(2n)" }], escapeName: 0, selectedName: 0, iconAdd: '<svg viewBox="0 0 24 24"><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"></path></svg>', iconSync: '<svg viewBox="0 0 24 24"><path d="M12 18c-3.31 0-6-2.69-6-6 0-1 .25-1.97.7-2.8L5.24 7.74A7.93 7.93 0 0 0 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4m0-11V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1-.25 1.97-.7 2.8l1.46 1.46A7.93 7.93 0 0 0 20 12c0-4.42-3.58-8-8-8z"></path></svg>', iconTagOn: '<svg viewBox="0 0 24 24"><path d="M19 19H5V5h10V3H5c-1.11 0-2 .89-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8h-2m-11.09-.92L6.5 11.5 11 16 21 6l-1.41-1.42L11 13.17l-3.09-3.09z"></path></svg>', iconTagOff: '<svg viewBox="0 0 24 24"><path d="M19 3H5c-1.11 0-2 .89-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5a2 2 0 0 0-2-2m0 2v14H5V5h14z"></path></svg>', iconTagRemove: '<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"></path></svg>', render: 0, componentFirst: 0, custom: false }; + var h = n2(8490), f = n2(4293), d = n2(5671), p = n2(3144), g = n2(9340), v = n2(3930), m = n2(1120); + function y(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, m.Z)(t3); + if (e3) { + var i2 = (0, m.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, v.Z)(this, n3); + }; + } + var b = function(t3) { + (0, g.Z)(n3, t3); + var e3 = y(n3); + function n3() { + return (0, d.Z)(this, n3), e3.apply(this, arguments); + } + return (0, p.Z)(n3, [{ key: "defaults", value: function() { + return { name: "", label: "" }; + } }, { key: "getName", value: function() { + return this.get("name"); + } }, { key: "getLabel", value: function() { + return this.get("label") || this.getName(); + } }]), n3; + }(a.Model); + b.prototype.idAttribute = "name"; + var w = n2(168), x = "contentEditable"; + const O = l().View.extend({ template: function() { + var t3 = this.pfx, e3 = this.model, n3 = this.config, r3 = e3.get("label") || ""; + return '\n <span id="'.concat(t3, 'checkbox" class="').concat(t3, 'tag-status" data-tag-status></span>\n <span id="').concat(t3, 'tag-label" data-tag-name>').concat(r3, '</span>\n <span id="').concat(t3, 'close" class="').concat(t3, 'tag-close" data-tag-remove>\n ').concat(n3.iconTagRemove, "\n </span>\n "); + }, events: { "click [data-tag-remove]": "removeTag", "click [data-tag-status]": "changeStatus", "dblclick [data-tag-name]": "startEditTag", "focusout [data-tag-name]": "endEditTag" }, initialize: function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e3 = t3.config || {}; + this.config = e3, this.module = t3.module, this.coll = t3.coll || null, this.pfx = e3.stylePrefix || "", this.ppfx = e3.pStylePrefix || "", this.em = e3.em, this.listenTo(this.model, "change:active", this.updateStatus); + }, getInputEl: function() { + return this.inputEl || (this.inputEl = this.el.querySelector("[data-tag-name]")), this.inputEl; + }, startEditTag: function() { + var t3 = this.em, e3 = this.getInputEl(); + e3[x] = true, e3.focus(), t3 && t3.setEditing(1); + }, endEditTag: function() { + var t3 = this.model, e3 = this.getInputEl(), n3 = e3.textContent, r3 = this.em, i2 = r3 && r3.get("SelectorManager"); + if (e3[x] = false, r3 && r3.setEditing(0), i2) { + var o2 = i2.escapeName(n3); + i2.get(o2) ? e3.innerText = t3.get("label") : t3.set({ name: o2, label: n3 }); + } + }, changeStatus: function() { + var t3 = this.model; + t3.set("active", !t3.get("active")); + }, removeTag: function() { + this.module.removeSelected(this.model); + }, updateStatus: function() { + var t3 = this.model, e3 = this.$el, n3 = this.config, r3 = n3.iconTagOn, i2 = n3.iconTagOff, o2 = e3.find("[data-tag-status]"); + t3.get("active") ? (o2.html(r3), e3.removeClass("opac50")) : (o2.html(i2), e3.addClass("opac50")); + }, render: function() { + var t3 = this.pfx, e3 = this.ppfx; + return this.$el.html(this.template()), this.$el.attr("class", "".concat(t3, "tag ").concat(e3, "three-bg")), this.updateStatus(), this; + } }); + var C, k, S, P, _ = n2(1629); + const T = l().View.extend({ template: function(t3) { + var e3 = t3.labelInfo, n3 = t3.labelHead, r3 = t3.iconSync, i2 = t3.iconAdd, o2 = t3.pfx, s2 = t3.ppfx; + return '\n <div id="'.concat(o2, 'up" class="').concat(o2, 'header">\n <div id="').concat(o2, 'label" class="').concat(o2, 'header-label">').concat(n3, '</div>\n <div id="').concat(o2, 'status-c" class="').concat(o2, 'header-status">\n <span id="').concat(o2, 'input-c" data-states-c>\n <div class="').concat(s2, "field ").concat(s2, 'select">\n <span id="').concat(s2, 'input-holder">\n <select id="').concat(o2, 'states" data-states></select>\n </span>\n <div class="').concat(s2, 'sel-arrow">\n <div class="').concat(s2, 'd-s-arrow"></div>\n </div>\n </div>\n </span>\n </div>\n </div>\n <div id="').concat(o2, 'tags-field" class="').concat(s2, 'field">\n <div id="').concat(o2, 'tags-c" data-selectors></div>\n <input id="').concat(o2, 'new" data-input/>\n <span id="').concat(o2, 'add-tag" class="').concat(o2, "tags-btn ").concat(o2, 'tags-btn__add" data-add>\n ').concat(i2, '\n </span>\n <span class="').concat(o2, "tags-btn ").concat(o2, 'tags-btn__sync" style="display: none" data-sync-style>\n ').concat(r3, '\n </span>\n </div>\n <div class="').concat(o2, 'sels-info">\n <div class="').concat(o2, 'label-sel">').concat(e3, ':</div>\n <div class="').concat(o2, 'sels" data-selected></div>\n </div>'); + }, events: { "change [data-states]": "stateChanged", "click [data-add]": "startNewTag", "focusout [data-input]": "endNewTag", "keyup [data-input]": "onInputKeyUp", "click [data-sync-style]": "syncStyle" }, initialize: function() { + var t3 = this, e3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + this.config = e3.config || {}, this.pfx = this.config.stylePrefix || "", this.ppfx = this.config.pStylePrefix || "", this.className = this.pfx + "tags", this.stateInputId = this.pfx + "states", this.stateInputC = this.pfx + "input-c", this.states = this.config.states || []; + var n3 = this.config.em, r3 = this.collection; + this.target = this.config.em; + var i2 = e3.module; + this.module = i2, this.em = n3; + var s2 = "component:toggled component:update:classes", a2 = "component:update:classes change:state"; + this.listenTo(n3, s2, this.componentChanged), this.listenTo(n3, "styleManager:update", this.componentChanged), this.listenTo(n3, a2, this.__handleStateChange), this.listenTo(n3, "styleable:change change:device", this.checkSync), this.listenTo(r3, "add", this.addNew), this.listenTo(r3, "reset", this.renderClasses), this.listenTo(r3, "remove", this.tagRemoved), this.listenTo(i2.getAll(), i2.events.state, (0, o.debounce)(function() { + return t3.renderStates(); + })), this.delegateEvents(); + }, syncStyle: function() { + var t3, e3 = this.em, n3 = this.getTarget(), r3 = e3.get("CssComposer"), i2 = this.getCommonSelectors({ opts: { noDisabled: 1 } }), o2 = e3.get("state"), s2 = e3.getCurrentMedia(), a2 = [], l2 = r3.get(i2, o2, s2) || r3.add(i2, o2, s2); + this.getTargets().forEach(function(e4) { + var n4 = r3.getIdRule(e4.getId(), { state: o2, mediaText: s2 }); + t3 = n4.getStyle(), n4.setStyle({}), a2.push(n4); + }), t3 && l2.addStyle(t3), e3.trigger("component:toggled"), e3.trigger("component:sync-style", { component: n3, selectors: i2, mediaText: s2, rule: l2, ruleComponents: a2, state: o2 }); + }, tagRemoved: function(t3) { + this.updateStateVis(); + }, addNew: function(t3) { + this.addToClasses(t3); + }, startNewTag: function() { + this.$addBtn.css({ display: "none" }), this.$input.show().focus(); + }, endNewTag: function() { + this.$addBtn.css({ display: "" }), this.$input.hide().val(""); + }, onInputKeyUp: function(t3) { + t3.keyCode === 13 ? (t3.preventDefault(), this.addNewTag(this.$input.val())) : t3.keyCode === 27 && this.endNewTag(); + }, checkStates: function() { + var t3 = this.em.getState(), e3 = this.getStates(); + e3 && e3.val(t3); + }, componentChanged: (0, o.debounce)(function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e3 = t3.targets; + this.updateSelection(e3); + }), updateSelection: function(t3) { + var e3 = t3 || this.getTargets(), n3 = []; + return (e3 = (0, o.isArray)(e3) ? e3 : [e3]) && e3.length && (n3 = this.getCommonSelectors({ targets: e3 }), this.checkSync({ validSelectors: n3 })), this.collection.reset(n3), this.updateStateVis(e3), this.module.__trgCustom(), n3; + }, getCommonSelectors: function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e3 = t3.targets, n3 = t3.opts, r3 = n3 === void 0 ? {} : n3, i2 = e3 || this.getTargets(); + return this.module.__getCommonSelectors(i2, r3); + }, _commonSelectors: function() { + var t3; + return (t3 = this.module).__common.apply(t3, arguments); + }, checkSync: (0, o.debounce)(function() { + var t3, e3 = this.$btnSyncEl, n3 = this.config, r3 = this.collection, i2 = this.getTarget(); + if (i2 && n3.componentFirst && r3.length) { + var s2 = i2.getStyle(); + t3 = !(0, o.isEmpty)(s2); + } + e3 && e3[t3 ? "show" : "hide"](); + }), getTarget: function() { + return this.target.getSelected(); + }, getTargets: function() { + return this.target.getSelectedAll(); + }, updateStateVis: function(t3) { + var e3 = this.em, n3 = e3 && e3.getConfig("avoidInlineStyle"), r3 = this.collection.length || n3 ? "" : "none"; + this.getStatesC().css("display", r3), this.updateSelector(t3); + }, __handleStateChange: function() { + this.updateSelector(this.getTargets()); + }, updateSelector: function(t3) { + var e3 = this, n3 = this.el.querySelector("[data-selected]"), r3 = [], i2 = t3 || this.getTargets(); + (i2 = (0, o.isArray)(i2) ? i2 : [i2]).forEach(function(t4) { + return r3.push(e3.__getName(t4)); + }), n3 && (n3.innerHTML = r3.join(", ")), this.checkStates(); + }, __getName: function(t3) { + var e3, n3 = this.pfx, r3 = this.config, i2 = this.em, s2 = r3.selectedName, a2 = r3.componentFirst; + if ((0, o.isString)(t3)) + e3 = (0, _.Z)(C || (C = (0, w.Z)(['<span class="', 'sel-gen">', "</span>"])), n3, t3); + else { + var l2 = t3 && t3.get && t3.getSelectors(); + if (!l2) + return; + var c2 = l2.getStyleable(), u2 = i2.get("state"), h2 = t3.getId ? (0, _.Z)(k || (k = (0, w.Z)(['<span class="', 'sel-cmp">', '</span>\n <span class="', 'sel-id">#', "</span>"])), n3, t3.getName(), n3, t3.getId()) : ""; + e3 = (e3 = this.collection.getFullString(c2)) ? (0, _.Z)(S || (S = (0, w.Z)(['<span class="', 'sel-rule">', "</span>"])), n3, e3) : t3.get("selectorsAdd") || h2, e3 = a2 && h2 ? h2 : e3, e3 += u2 ? (0, _.Z)(P || (P = (0, w.Z)(['<span class="', 'sel-state">:', "</span>"])), n3, u2) : "", e3 = s2 ? s2({ result: e3, state: u2, target: t3 }) : e3; + } + return e3 && '<span class="'.concat(n3, 'sel">').concat(e3, "</span>"); + }, stateChanged: function(t3) { + var e3 = this.em, n3 = t3.target.value; + e3.set("state", n3); + }, addNewTag: function(t3) { + var e3 = t3.trim(); + e3 && (this.module.addSelected({ label: e3 }), this.endNewTag()); + }, addToClasses: function(t3) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, n3 = e3, r3 = this.getClasses(), i2 = new O({ model: t3, config: this.config, coll: this.collection, module: this.module }).render().el; + return n3 ? n3.appendChild(i2) : r3.append(i2), i2; + }, renderClasses: function() { + var t3 = this, e3 = document.createDocumentFragment(), n3 = this.getClasses(); + n3.empty(), this.collection.each(function(n4) { + return t3.addToClasses(n4, e3); + }), n3.append(e3); + }, getClasses: function() { + return this.$el.find("[data-selectors]"); + }, getStates: function() { + if (!this.$states) { + var t3 = this.$el.find("[data-states]"); + this.$states = t3[0] && t3; + } + return this.$states; + }, getStatesC: function() { + return this.$statesC || (this.$statesC = this.$el.find("#" + this.stateInputC)), this.$statesC; + }, renderStates: function() { + var t3 = this.module, e3 = this.em, n3 = e3.t("selectorManager.emptyState"), r3 = t3.getStates().map(function(t4) { + var n4 = e3.t("selectorManager.states.".concat(t4.id)) || t4.getLabel() || t4.id; + return '<option value="'.concat(t4.id, '">').concat(n4, "</option>"); + }).join(""), i2 = this.getStates(); + i2 && i2.html('<option value="">'.concat(n3, "</option>").concat(r3)), this.checkStates(); + }, render: function() { + var t3 = this.em, e3 = this.pfx, n3 = this.ppfx, r3 = this.config, i2 = this.$el, o2 = this.el, s2 = r3.render, a2 = { iconSync: r3.iconSync, iconAdd: r3.iconAdd, labelHead: t3.t("selectorManager.label"), labelInfo: t3.t("selectorManager.selected"), ppfx: n3, pfx: e3, el: o2 }; + i2.html(this.template(a2)); + var l2 = s2 && s2(a2); + return l2 && l2 !== o2 && i2.empty().append(l2), this.$input = i2.find("[data-input]"), this.$addBtn = i2.find("[data-add]"), this.$classes = i2.find("#" + e3 + "tags-c"), this.$btnSyncEl = i2.find("[data-sync-style]"), this.$input.hide(), this.renderStates(), this.renderClasses(), i2.attr("class", "".concat(this.className, " ").concat(n3, "one-bg ").concat(n3, "two-color")), this; + } }); + function E(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function j(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? E(Object(n3), true).forEach(function(e4) { + (0, i.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : E(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + var D = function(t3) { + return (0, o.isString)(t3) && t3[0] == "#"; + }, M = function(t3) { + return (0, o.isString)(t3) && t3[0] == "."; + }, A = "selector", L = "".concat(A, ":"), R = "".concat(L, "add"), N = "".concat(L, "update"), Z = "".concat(L, "remove"), I = "".concat(Z, ":before"), F = "".concat(L, "custom"), V = "".concat(L, "state"); + const H = function() { + return j(j({}, c.Z), {}, { name: "SelectorManager", Selector: h.Z, Selectors: f.Z, events: { all: A, update: N, add: R, remove: Z, removeBefore: I, state: V, custom: F }, init: function() { + var t3 = this, e3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + this.__initConfig(u, e3); + var n3 = this.getConfig(), r3 = n3.em, i2 = n3.pStylePrefix; + i2 && (n3.stylePrefix = i2 + n3.stylePrefix), this.all = new f.Z(n3.selectors), this.selected = new f.Z([], { em: r3, config: n3 }), this.states = new a.Collection(n3.states, { model: b }), this.model = new a.Model({ cFirst: n3.componentFirst, _undo: true }), this.__initListen({ collections: [this.states, this.selected], propagate: [{ entity: this.states, event: this.events.state }] }), r3.on("change:state", function(t4, e4) { + return r3.trigger(V, e4); + }), this.model.on("change:cFirst", function(t4, e4) { + return r3.trigger("selector:type", e4); + }); + var o2 = "component:toggled component:update:classes change:device styleManager:update selector:state selector:type"; + return this.model.listenTo(r3, o2, function() { + return t3.__update(); + }), this; + }, __update: (0, o.debounce)(function() { + this.__trgCustom(); + }), __trgCustom: function(t3) { + this.em.trigger(this.events.custom, this.__customData(t3)); + }, __customData: function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e3 = t3.container; + return { states: this.getStates(), selected: this.getSelected(), container: e3 }; + }, postRender: function() { + this.__appendTo(), this.__trgCustom(); + }, select: function(t3) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n3 = Array.isArray(t3) ? t3 : [t3], r3 = this.em.get("StyleManager").select(n3, e3), i2 = this.selectorTags, o2 = r3.filter(function(t4) { + return t4; + }).map(function(t4) { + return (0, s.isComponent)(t4) || (0, s.isRule)(t4) && !t4.get("selectorsAdd") ? t4 : t4.getSelectorsString(); + }); + return i2 && i2.componentChanged({ targets: o2 }), this; + }, addSelector: function(t3) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r3 = j({}, e3); + (0, o.isObject)(t3) ? r3 = t3 : r3.name = t3, D(r3.name) ? (r3.name = r3.name.substr(1), r3.type = h.Z.TYPE_ID) : M(r3.name) && (r3.name = r3.name.substr(1)), r3.label && !r3.name && (r3.name = this.escapeName(r3.label)); + var i2 = r3.name, s2 = this.getConfig(), a2 = this.getAll(), l2 = i2 ? this.get(i2, r3.type) : a2.where(r3)[0]; + return l2 || a2.add(r3, j(j({}, n3), {}, { config: s2 })); + }, getSelector: function(t3) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : h.Z.TYPE_CLASS; + return D(t3) ? (t3 = t3.substr(1), e3 = h.Z.TYPE_ID) : M(t3) && (t3 = t3.substr(1)), this.getAll().where({ name: t3, type: e3 })[0]; + }, add: function(t3) { + var e3 = this, n3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r3 = (0, o.isString)(t3) ? {} : n3; + return (0, o.isArray)(t3) ? t3.map(function(t4) { + return e3.addSelector(t4, n3, r3); + }) : this.addSelector(t3, n3, r3); + }, addClass: function(t3) { + var e3 = this, n3 = []; + return (0, o.isString)(t3) && (t3 = t3.trim().split(" ")), t3.forEach(function(t4) { + return n3.push(e3.addSelector(t4)); + }), n3; + }, get: function(t3, e3) { + var n3 = this; + if ((0, o.isArray)(t3)) { + var r3 = []; + return t3.map(function(t4) { + return n3.getSelector(t4); + }).filter(function(t4) { + return t4; + }).forEach(function(t4) { + return r3.indexOf(t4) < 0 && r3.push(t4); + }), r3; + } + return this.getSelector(t3, e3) || null; + }, remove: function(t3, e3) { + return this.__remove(t3, e3); + }, setState: function(t3) { + return this.em.setState(t3), this; + }, getState: function() { + return this.em.getState(); + }, getStates: function() { + return (0, r2.Z)(this.states.models); + }, setStates: function(t3, e3) { + return this.states.reset(t3, e3); + }, getSelected: function() { + return this.__getCommon(); + }, addSelected: function(t3) { + var e3 = this.add(t3); + this.em.getSelectedAll().forEach(function(t4) { + t4.getSelectors().add(e3); + }); + }, removeSelected: function(t3) { + this.em.getSelectedAll().forEach(function(e3) { + !t3.get("protected") && e3 && e3.getSelectors().remove(t3); + }); + }, getSelectedTargets: function() { + return this.em.get("StyleManager").getSelectedAll(); + }, setComponentFirst: function(t3) { + this.getConfig().componentFirst = t3, this.model.set({ cFirst: t3 }); + }, getComponentFirst: function() { + return this.getConfig().componentFirst; + }, escapeName: function(t3) { + var e3 = this.getConfig().escapeName; + return e3 ? e3(t3) : h.Z.escapeName(t3); + }, render: function(t3) { + this.em; + var e3 = this.selectorTags, n3 = this.getConfig(), r3 = e3 && e3.el; + return this.selected.reset(t3), this.selectorTags = new T({ el: r3, collection: this.selected, module: this, config: n3 }), this.selectorTags.render().el; + }, destroy: function() { + var t3 = this.selectorTags; + this.model.stopListening(), this.__destroy(), t3 && t3.remove(), this.selectorTags = {}; + }, __getCommon: function() { + return this.__getCommonSelectors(this.em.getSelectedAll()); + }, __getCommonSelectors: function(t3) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n3 = t3.map(function(t4) { + return t4.getSelectors && t4.getSelectors().getValid(e3); + }).filter(Boolean); + return this.__common.apply(this, (0, r2.Z)(n3)); + }, __common: function() { + for (var t3 = this, e3 = arguments.length, n3 = new Array(e3), r3 = 0; r3 < e3; r3++) + n3[r3] = arguments[r3]; + return n3.length ? n3.length === 1 ? n3[0] : n3.length === 2 ? n3[0].filter(function(t4) { + return n3[1].indexOf(t4) >= 0; + }) : n3.slice(1).reduce(function(e4, n4) { + return t3.__common(e4, n4); + }, n3[0]) : []; + } }); + }; + }, 8490: (t2, e2, n2) => { + "use strict"; + n2.d(e2, { Z: () => h }); + var r2 = n2(5671), i = n2(3144), o = n2(9340), s = n2(3930), a = n2(1120), l = n2(2316), c = n2(9050); + function u(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, a.Z)(t3); + if (e3) { + var i2 = (0, a.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, s.Z)(this, n3); + }; + } + var h = function(t3) { + (0, o.Z)(n3, t3); + var e3 = u(n3); + function n3() { + return (0, r2.Z)(this, n3), e3.apply(this, arguments); + } + return (0, i.Z)(n3, [{ key: "defaults", value: function() { + return { name: "", label: "", type: 1, active: true, private: false, protected: false, _undo: true }; + } }, { key: "initialize", value: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r3 = e4.config, i2 = r3 === void 0 ? {} : r3, o2 = this.get("name"), s2 = this.get("label"); + o2 ? s2 || this.set("label", o2) : this.set("name", s2); + var a2 = this.get("name"), l2 = i2.escapeName, c2 = l2 ? l2(a2) : n3.escapeName(a2); + this.set("name", c2), this.em = i2.em; + } }, { key: "isId", value: function() { + return this.get("type") === 2; + } }, { key: "isClass", value: function() { + return this.get("type") === 1; + } }, { key: "getFullName", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e4 = t4.escape, n4 = this.get("name"), r3 = ""; + switch (this.get("type")) { + case 1: + r3 = "."; + break; + case 2: + r3 = "#"; + } + return r3 + (e4 ? e4(n4) : n4); + } }, { key: "toString", value: function() { + return this.getFullName(); + } }, { key: "getLabel", value: function() { + return this.get("label"); + } }, { key: "setLabel", value: function(t4) { + return this.set("label", t4); + } }, { key: "getActive", value: function() { + return this.get("active"); + } }, { key: "setActive", value: function(t4) { + return this.set("active", t4); + } }, { key: "toJSON", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e4 = this.em, n4 = l.Model.prototype.toJSON.call(this, [t4]), r3 = (0, c.result)(this, "defaults"); + if (e4 && e4.getConfig("avoidDefaults")) { + (0, c.forEach)(r3, function(t5, e5) { + n4[e5] === t5 && delete n4[e5]; + }), n4.label === n4.name && delete n4.label; + var i2 = (0, c.keys)(n4).length; + i2 === 1 && n4.name && (n4 = n4.name), i2 === 2 && n4.name && n4.type && (n4 = this.getFullName()); + } + return n4; + } }]), n3; + }(l.Model); + h.prototype.idAttribute = "name", h.TYPE_CLASS = 1, h.TYPE_ID = 2, h.escapeName = function(t3) { + return "".concat(t3).trim().replace(/([^a-z0-9\w-\:]+)/gi, "-"); + }; + }, 4293: (t2, e2, n2) => { + "use strict"; + n2.d(e2, { Z: () => d }); + var r2 = n2(5671), i = n2(3144), o = n2(9340), s = n2(3930), a = n2(1120), l = n2(9050), c = n2(2316), u = n2(8490); + function h(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, a.Z)(t3); + if (e3) { + var i2 = (0, a.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, s.Z)(this, n3); + }; + } + var f = function t3(e3, n3) { + return e3.reduce(function(r3, i2, o2) { + return r3.concat(t3(e3.slice(o2 + 1), "".concat(n3).concat(i2))); + }, [n3]); + }, d = function(t3) { + (0, o.Z)(n3, t3); + var e3 = h(n3); + function n3() { + return (0, r2.Z)(this, n3), e3.apply(this, arguments); + } + return (0, i.Z)(n3, [{ key: "modelId", value: function(t4) { + return "".concat(t4.name, "_").concat(t4.type || u.Z.TYPE_CLASS); + } }, { key: "getStyleable", value: function() { + return (0, l.filter)(this.models, function(t4) { + return t4.get("active") && !t4.get("private"); + }); + } }, { key: "getValid", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e4 = t4.noDisabled; + return (0, l.filter)(this.models, function(t5) { + return !t5.get("private"); + }).filter(function(t5) { + return e4 ? t5.get("active") : 1; + }); + } }, { key: "getFullString", value: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n4 = [], r3 = t4 || this; + return r3.forEach(function(t5) { + return n4.push(t5.getFullName(e4)); + }), n4.join("").trim(); + } }, { key: "getFullName", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e4 = t4.combination, n4 = t4.array, r3 = [], i2 = this.map(function(e5) { + return e5.getFullName(t4); + }).sort(); + return e4 ? i2.forEach(function(t5, e5) { + r3 = r3.concat(f(i2.slice(e5 + 1), t5)); + }) : r3 = i2, n4 ? r3 : e4 ? r3.join(",") : r3.join(""); + } }]), n3; + }(c.Collection); + d.prototype.model = u.Z; + }, 4859: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => w }); + var r2 = n2(4942); + const i = { id: "gjs-", autosave: true, autoload: true, type: "local", stepsBeforeSave: 1, storeComponents: true, storeStyles: true, storeHtml: true, storeCss: true, checkLocal: true, params: {}, headers: {}, urlStore: "", urlLoad: "", beforeSend: function(t3, e3) { + }, onComplete: function(t3, e3) { + }, contentTypeJson: true, credentials: "include", fetchOptions: "" }; + var o = n2(2316), s = n2.n(o), a = n2(6183); + const l = o.Model.extend({ defaults: { checkLocal: true }, store: function(t3) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : function() { + }; + if (this.hasLocal()) + for (var n3 in t3) + localStorage.setItem(n3, t3[n3]); + e3 && e3(); + }, load: function(t3) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : function() { + }, n3 = {}; + if (this.hasLocal()) + for (var r3 = 0, i2 = t3.length; r3 < i2; r3++) { + var o2 = localStorage.getItem(t3[r3]); + o2 && (n3[t3[r3]] = o2); + } + return e3 && e3(n3), n3; + }, remove: function(t3) { + if (this.hasLocal()) + for (var e3 = 0, n3 = t3.length; e3 < n3; e3++) + localStorage.removeItem(t3[e3]); + }, hasLocal: function() { + var t3 = (0, a.hasWin)(); + return !!(!this.get("checkLocal") || t3 && localStorage) || (t3 && console.warn("Your browser doesn't support localStorage"), false); + } }); + var c = n2(9661), u = n2(9050); + function h(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function f(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? h(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : h(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + const d = s().Model.extend({ fetch: c.Z, defaults: { urlStore: "", urlLoad: "", params: {}, beforeSend: function() { + }, onComplete: function() { + }, contentTypeJson: false, credentials: "include", fetchOptions: "" }, onStart: function() { + this.get("em"); + var t3 = this.get("beforeSend"); + t3 && t3(); + }, onError: function(t3, e3) { + if (e3) + e3(t3); + else { + var n3 = this.get("em"); + console.error(t3), n3 && n3.trigger("storage:error", t3); + } + }, onResponse: function(t3, e3) { + var n3 = this.get("em"), r3 = this.get("onComplete"), i2 = this.get("contentTypeJson") && (t3 && typeof t3 == "string") ? JSON.parse(t3) : t3; + r3 && r3(i2), e3 && e3(i2), n3 && n3.trigger("storage:response", i2); + }, store: function(t3, e3, n3) { + var r3 = {}; + for (var i2 in t3) + r3[i2] = t3[i2]; + this.request(this.get("urlStore"), { body: r3 }, e3, n3); + }, load: function(t3, e3, n3) { + this.request(this.get("urlLoad"), { method: "get" }, e3, n3); + }, request: function(t3) { + var e3, n3, r3 = this, i2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o2 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, s2 = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null, a2 = this.get("contentTypeJson"), l2 = this.get("headers") || {}, c2 = this.get("params"), h2 = "X-Requested-With", d2 = "Content-Type", p2 = i2.body || {}; + for (var g2 in c2) + p2[g2] = c2[g2]; + if ((0, u.isUndefined)(l2[h2]) && (l2[h2] = "XMLHttpRequest"), (0, u.isUndefined)(l2[d2]) && a2 && (l2[d2] = "application/json; charset=utf-8"), a2) + n3 = JSON.stringify(p2); + else + for (var v2 in n3 = new FormData(), p2) + n3.append(v2, p2[v2]); + (e3 = { method: i2.method || "post", credentials: this.get("credentials"), headers: l2 }).method === "post" && (e3.body = n3); + var m2 = this.get("fetchOptions") || {}, y2 = (0, u.isFunction)(m2) ? m2(e3) : e3; + this.onStart(), this.fetch(t3, f(f({}, e3), y2 || {})).then(function(t4) { + return (t4.status / 200 | 0) == 1 ? t4.text() : t4.text().then(function(t5) { + return Promise.reject(t5); + }); + }).then(function(t4) { + return r3.onResponse(t4, o2); + }).catch(function(t4) { + return r3.onError(t4, s2); + }); + } }); + function p(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function g(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? p(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : p(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + var v = "storage:start", m = "storage:after", y = "storage:end", b = "storage:error"; + const w = function() { + var t3, e3 = {}, n3 = {}, r3 = {}; + return { name: "StorageManager", init: function() { + var n4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + return e3 = g(g({}, i), n4), t3 = e3.em, e3._disable && (e3.type = 0), r3.remote = new d(e3), r3.local = new l(e3), e3.currentStorage = e3.type, this.loadDefaultProviders().setCurrent(e3.type), this; + }, getConfig: function() { + return e3; + }, isAutosave: function() { + return !!e3.autosave; + }, setAutosave: function(t4) { + return e3.autosave = !!t4, this; + }, getStepsBeforeSave: function() { + return e3.stepsBeforeSave; + }, setStepsBeforeSave: function(t4) { + return e3.stepsBeforeSave = t4, this; + }, add: function(t4, e4) { + return n3[t4] = e4, this; + }, get: function(t4) { + return n3[t4] || null; + }, getStorages: function() { + return n3; + }, getCurrent: function() { + return e3.currentStorage; + }, setCurrent: function(t4) { + return e3.currentStorage = t4, this; + }, store: function(t4, n4) { + var r4 = this, i2 = this.get(this.getCurrent()), o2 = {}; + for (var s2 in this.onStart("store", t4), t4) + o2[e3.id + s2] = t4[s2]; + return i2 ? i2.store(o2, function(t5) { + r4.onAfter("store", t5), n4 && n4(t5), r4.onEnd("store", t5); + }, function(t5) { + r4.onError("store", t5); + }) : null; + }, load: function(t4, n4) { + var r4 = this, i2 = this.get(this.getCurrent()), o2 = [], s2 = {}; + typeof t4 == "string" && (t4 = [t4]), this.onStart("load", t4); + for (var a2 = 0, l2 = t4.length; a2 < l2; a2++) + o2.push(e3.id + t4[a2]); + i2 ? i2.load(o2, function(t5) { + s2 = r4.__clearKeys(t5), r4.onAfter("load", s2), n4 && n4(s2), r4.onEnd("load", s2); + }, function(t5) { + n4 && n4(s2), r4.onError("load", t5); + }) : n4 && n4(s2); + }, __clearKeys: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n4 = {}, r4 = new RegExp("^" + e3.id); + for (var i2 in t4) { + var o2 = i2.replace(r4, ""); + n4[o2] = t4[i2]; + } + return n4; + }, loadDefaultProviders: function() { + for (var t4 in r3) + this.add(t4, r3[t4]); + return this; + }, getCurrentStorage: function() { + return this.get(this.getCurrent()); + }, onStart: function(e4, n4) { + t3 && (t3.trigger(v), e4 && t3.trigger("".concat(v, ":").concat(e4), n4)); + }, onAfter: function(e4, n4) { + t3 && (t3.trigger(m), e4 && t3.trigger("".concat(m, ":").concat(e4), n4)); + }, onEnd: function(e4, n4) { + t3 && (t3.trigger(y), e4 && t3.trigger("".concat(y, ":").concat(e4), n4)); + }, onError: function(e4, n4) { + t3 && (t3.trigger(b, n4), e4 && t3.trigger("".concat(b, ":").concat(e4), n4), this.onEnd(e4, n4)); + }, canAutoload: function() { + return this.getCurrentStorage() && this.getConfig().autoload; + }, destroy: function() { + [e3, t3, n3, r3].forEach(function(t4) { + return {}; + }); + } }; + }; + }, 2326: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => _e, evAll: () => de, evCustom: () => Se, evLayerSelect: () => Ce, evPfx: () => pe, evProp: () => be, evPropAdd: () => we, evPropRemove: () => xe, evPropUp: () => Oe, evSector: () => ge, evSectorAdd: () => ve, evSectorRemove: () => me, evSectorUpdate: () => ye, evTarget: () => ke }); + var r2 = n2(2982), i = n2(4942), o = n2(9050), s = n2(6183), a = n2(9304), l = n2(2316), c = n2.n(l); + const u = { sectors: [{ name: "General", open: false, properties: ["display", "float", "position", "top", "right", "left", "bottom"] }, { name: "Flex", open: false, properties: ["flex-direction", "flex-wrap", "justify-content", "align-items", "align-content", "order", "flex-basis", "flex-grow", "flex-shrink", "align-self"] }, { name: "Dimension", open: false, properties: ["width", "height", "max-width", "min-height", "margin", "padding"] }, { name: "Typography", open: false, properties: ["font-family", "font-size", "font-weight", "letter-spacing", "color", "line-height", "text-align", "text-shadow"] }, { name: "Decorations", open: false, properties: ["background-color", "border-radius", "border", "box-shadow", "background"] }, { name: "Extra", open: false, properties: ["opacity", "transition"] }], appendTo: "", stylePrefix: "sm-", custom: false, hideNotStylable: true, highlightChanged: true, highlightComputed: true, showComputed: true, clearProperties: true, avoidComputed: ["width", "height"] }; + var h = n2(4925), f = n2(5671), d = n2(3144), p = n2(9340), g = n2(3930), v = n2(1120), m = n2(793), y = ["partial"]; + function b(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function w(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? b(Object(n3), true).forEach(function(e4) { + (0, i.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : b(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + function x(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, v.Z)(t3); + if (e3) { + var i2 = (0, v.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, g.Z)(this, n3); + }; + } + var O = function(t3) { + (0, p.Z)(n3, t3); + var e3 = x(n3); + function n3() { + return (0, f.Z)(this, n3), e3.apply(this, arguments); + } + return (0, d.Z)(n3, [{ key: "initialize", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + this.em = e4.em; + var r3 = this.get("id") || "", i2 = this.get("name") || this.get("label") || ""; + !this.get("property") && this.set("property", (i2 || r3).replace(/ /g, "-")); + var o2 = this.get("property"); + !this.get("id") && this.set("id", o2), !i2 && this.set("name", (0, s.capitalize)(o2).replace(/-/g, " ")), this.on("change", this.__upTargets), n3.callInit(this, t4, e4); + } }, { key: "__getParentProp", value: function() { + var t4, e4; + return (t4 = this.collection) === null || t4 === void 0 || (e4 = t4.opts) === null || e4 === void 0 ? void 0 : e4.parentProp; + } }, { key: "__upTargets", value: function(t4) { + var e4 = this, n4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s2 = this.em, a2 = s2.get("StyleManager"), l2 = this.getName(), c2 = n4.__clear, u2 = c2 ? "" : this.__getFullValue(n4), h2 = this.__getParentProp(), f2 = this.changedAttributes(), d2 = (0, o.keys)(f2).reduce(function(t5, n5) { + return t5[n5] = e4.previous(n5), t5; + }, {}), p2 = [].concat((0, r2.Z)((0, o.keys)(this.__getClearProps())), ["__p"]), g2 = (0, o.keys)(f2), v2 = !n4.__up && !h2 && (c2 || p2.some(function(t5) { + return g2.indexOf(t5) >= 0; + })), m2 = this.get("onChange"), y2 = { property: this, from: d2, to: f2, value: u2, opts: n4 }; + a2.__trgEv(a2.events.propertyUpdate, y2), m2 && m2(y2), v2 && this.__upTargetsStyle((0, i.Z)({}, l2, u2), n4); + } }, { key: "__upTargetsStyle", value: function(t4, e4) { + var n4, r3 = (n4 = this.em) === null || n4 === void 0 ? void 0 : n4.get("StyleManager"); + r3 == null || r3.addStyleTargets(w(w({}, t4), {}, { __p: !!e4.avoidStore }), e4); + } }, { key: "_up", value: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + e4.noTarget && (e4.__up = true); + var n4 = e4.partial, r3 = (0, h.Z)(e4, y); + return t4.__p = !(!r3.avoidStore && !n4), this.set(t4, w(w({}, r3), {}, { avoidStore: t4.__p })); + } }, { key: "up", value: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + this.set(t4, w(w({}, e4), {}, { __up: true })); + } }, { key: "init", value: function() { + } }, { key: "getId", value: function() { + return this.get("id"); + } }, { key: "getType", value: function() { + return this.get("type"); + } }, { key: "getName", value: function() { + return this.get("property"); + } }, { key: "getLabel", value: function() { + var t4, e4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n4 = e4.locale, r3 = n4 === void 0 || n4, i2 = this.getId(), o2 = this.get("name") || this.get("label"); + return r3 && ((t4 = this.em) === null || t4 === void 0 ? void 0 : t4.t("styleManager.properties.".concat(i2))) || o2; + } }, { key: "getValue", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e4 = t4.noDefault, n4 = this.get("value"); + return this.hasValue() || e4 ? n4 : this.getDefaultValue(); + } }, { key: "hasValue", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e4 = t4.noParent, n4 = e4 && this.getParentTarget(), r3 = this.get("value"); + return !(0, o.isUndefined)(r3) && r3 !== "" && !n4; + } }, { key: "hasValueParent", value: function() { + return this.hasValue() && !this.hasValue({ noParent: true }); + } }, { key: "getStyle", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e4 = this.getName(), n4 = t4.camelCase ? (0, s.camelCase)(e4) : e4; + return (0, i.Z)({}, n4, this.__getFullValue(t4)); + } }, { key: "getDefaultValue", value: function() { + var t4 = this.get("default"); + return "".concat((0, o.isUndefined)(t4) ? this.get("defaults") : t4); + } }, { key: "upValue", value: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n4 = t4 === null || t4 === "" ? this.__getClearProps() : this.__parseValue(t4, e4); + return this._up(n4, e4); + } }, { key: "isVisible", value: function() { + return !!this.get("visible"); + } }, { key: "clear", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + this._up(this.__getClearProps(), w(w({}, t4), {}, { __clear: true })); + } }, { key: "canClear", value: function() { + var t4 = this.getParent(); + return t4 ? t4.__canClearProp(this) : this.hasValue({ noParent: true }); + } }, { key: "getParent", value: function() { + return this.__getParentProp() || null; + } }, { key: "isFull", value: function() { + return !!this.get("full"); + } }, { key: "__parseValue", value: function(t4, e4) { + return this.parseValue(t4, e4); + } }, { key: "__getClearProps", value: function() { + return { value: "" }; + } }, { key: "setValue", value: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1, n4 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r3 = this.parseValue(t4), i2 = !e4; + !i2 && this.set({ value: void 0 }, { avoidStore: i2, silent: true }), this.set(r3, w({ avoidStore: i2 }, n4)); + } }, { key: "setValueFromInput", value: function(t4, e4) { + var n4 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + this.setValue(t4, e4, w(w({}, n4), {}, { fromInput: 1 })); + } }, { key: "parseValue", value: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n4 = { value: t4 }, r3 = "!important"; + if ((0, o.isString)(t4) && t4.indexOf(r3) !== -1 && (n4.value = t4.replace(r3, "").trim(), n4.important = 1), !this.get("functionName") && !e4.complete) + return n4; + var i2 = [], s2 = "".concat(n4.value), a2 = s2.indexOf("(") + 1, l2 = s2.lastIndexOf(")"), c2 = s2.substring(0, a2 - 1); + if (c2 && (n4.functionName = c2), i2.push(a2), l2 >= 0 && i2.push(l2), n4.value = String.prototype.substring.apply(s2, i2), e4.numeric) { + var u2 = parseFloat(n4.value); + n4.unit = n4.value.replace(u2, ""), n4.value = u2; + } + return n4; + } }, { key: "__getFullValue", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e4 = t4.withDefault; + return !this.hasValue() && e4 ? this.getDefaultValue() : this.getFullValue(); + } }, { key: "getFullValue", value: function(t4) { + var e4 = this.get("functionName"), n4 = this.getDefaultValue(), r3 = (0, o.isUndefined)(t4) ? this.get("value") : t4, i2 = !(0, o.isUndefined)(r3) && r3 !== ""; + if (r3 && n4 && r3 === n4) + return n4; + if (e4 && i2) { + var s2 = e4 === "url" ? "'".concat(r3.replace(/'/g, ""), "'") : r3; + r3 = "".concat(e4, "(").concat(s2, ")"); + } + return i2 && this.get("important") && (r3 = "".concat(r3, " !important")), r3 || ""; + } }, { key: "__setParentTarget", value: function(t4) { + this.__parentTarget = t4; + } }, { key: "getParentTarget", value: function() { + return this.__parentTarget || null; + } }, { key: "__parseFn", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", e4 = t4.indexOf("(") + 1, n4 = t4.lastIndexOf(")"); + return { name: t4.substring(0, e4 - 1).trim(), value: String.prototype.substring.apply(t4, [e4, n4 >= 0 ? n4 : void 0]).trim() }; + } }, { key: "__checkVisibility", value: function(t4) { + var e4 = t4.target, n4 = t4.component, r3 = t4.sectors, i2 = n4 || e4; + if (!i2) + return false; + var a2 = this.getId(), l2 = this.getName(), c2 = this.get("toRequire"), u2 = this.get("requires"), h2 = this.get("requiresParent"), f2 = i2.get("unstylable"), d2 = i2.get("stylable-require"), p2 = i2.get("stylable"); + if ((0, o.isArray)(p2) && (p2 = p2.indexOf(l2) >= 0), (0, o.isArray)(f2) && (p2 = f2.indexOf(l2) < 0), c2 && (p2 = !e4 || d2 && (d2.indexOf(a2) >= 0 || d2.indexOf(l2) >= 0)), r3 && u2) { + var g2 = (0, o.keys)(u2); + r3.forEach(function(t5) { + t5.getProperties().forEach(function(t6) { + if ((0, o.includes)(g2, t6.id)) { + var e5 = u2[t6.id]; + p2 = p2 && (0, o.includes)(e5, t6.get("value")); + } + }); + }); + } + if (h2) { + var v2 = n4 && n4.parent(), m2 = v2 && v2.getEl(); + if (m2) { + var y2 = (0, s.hasWin)() ? window.getComputedStyle(m2) : {}; + (0, o.each)(h2, function(t5, e5) { + p2 = p2 && y2[e5] && (0, o.includes)(t5, y2[e5]); + }); + } else + p2 = false; + } + return !!p2; + } }]), n3; + }(l.Model); + function C(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function k(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? C(Object(n3), true).forEach(function(e4) { + (0, i.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : C(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + function S(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, v.Z)(t3); + if (e3) { + var i2 = (0, v.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, g.Z)(this, n3); + }; + } + O.callParentInit = function(t3, e3, n3) { + var r3 = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}; + t3.prototype.initialize.apply(e3, [n3, w(w({}, r3), {}, { skipInit: 1 })]); + }, O.callInit = function(t3, e3) { + var n3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + !n3.skipInit && t3.init(e3, n3); + }, O.getDefaults = function() { + return (0, o.result)(this.prototype, "defaults"); + }, O.prototype.defaults = { name: "", property: "", type: "", defaults: "", info: "", value: "", icon: "", functionName: "", status: "", visible: true, fixedValues: ["initial", "inherit"], onChange: null, full: 0, important: 0, toRequire: 0, requires: null, requiresParent: null }; + var P = function(t3) { + return t3 === "integer" || t3 === "number"; + }, _ = function(t3) { + (0, p.Z)(n3, t3); + var e3 = S(n3); + function n3() { + return (0, f.Z)(this, n3), e3.apply(this, arguments); + } + return (0, d.Z)(n3, [{ key: "defaults", value: function() { + return k(k({}, O.getDefaults()), {}, { detached: false, properties: [], separator: " ", join: null, fromStyle: null, toStyle: null, full: true }); + } }, { key: "initialize", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + O.callParentInit(O, this, t4, e4); + var n4 = this.em, r3 = new Bt(this.get("properties") || [], { em: n4, parentProp: this }); + this.set("properties", r3, { silent: 1 }), this.listenTo(r3, "change", this.__upProperties), O.callInit(this, t4, e4); + } }, { key: "getProperties", value: function() { + return (0, r2.Z)(this.get("properties").models); + } }, { key: "getProperty", value: function(t4) { + return this.get("properties").filter(function(e4) { + return e4.getId() === t4 || e4.getName() === t4; + })[0] || null; + } }, { key: "getPropertyAt", value: function(t4) { + return this.get("properties").at(t4); + } }, { key: "isDetached", value: function() { + return !!this.get("detached"); + } }, { key: "getValues", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e4 = t4.byName; + return this.getProperties().reduce(function(t5, n4) { + return t5[e4 ? n4.getName() : n4.getId()] = "".concat(n4.__getFullValue()), t5; + }, {}); + } }, { key: "getSeparator", value: function() { + return this.getSplitSeparator(); + } }, { key: "getJoin", value: function() { + return this.__getJoin(); + } }, { key: "getStyleFromProps", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e4 = this.getName(), n4 = this.__getJoin(), r3 = this.get("toStyle"), o2 = this.getValues(), s2 = {}; + if (r3) + s2 = r3(o2, { join: n4, name: e4, property: this }); + else if (o2 = this.getValues({ byName: true }), this.isDetached()) + s2 = o2; + else { + var a2 = this.getProperties().map(function(t5) { + return t5.__getFullValue({ withDefault: 1 }); + }).filter(Boolean).join(n4); + s2 = (0, i.Z)({}, e4, a2); + } + return this.isDetached() ? s2[e4] = "" : (s2[e4] = s2[e4] || "", s2 = k(k({}, s2), this.getProperties().reduce(function(t5, e5) { + return t5[e5.getName()] = "", t5; + }, {}))), t4.camelCase ? Object.keys(s2).reduce(function(t5, e5) { + return t5[camelCase(e5)] = s2[e5], t5; + }, {}) : s2; + } }, { key: "getSplitSeparator", value: function() { + return new RegExp("".concat(this.get("separator"), "(?![^\\(]*\\))")); + } }, { key: "__upProperties", value: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + if (!e4.__up && !e4.__clearIn) { + var n4 = this.__getParentProp(); + if (n4) + return n4.__upProperties(this, e4); + this.__upTargetsStyleProps(e4, t4); + } + } }, { key: "__upTargetsStyleProps", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e4 = arguments.length > 1 ? arguments[1] : void 0, n4 = this.getStyleFromProps(); + if (this.isDetached() && e4) { + var r3 = e4.getName(); + n4 = (0, i.Z)({}, r3, n4[r3]); + } + this.__upTargetsStyle(n4, t4); + } }, { key: "_up", value: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + return this.__setProperties(this.__getSplitValue(t4.value), e4), O.prototype._up.call(this, t4, e4); + } }, { key: "getStyle", value: function(t4) { + return this.getStyleFromProps(t4); + } }, { key: "__getFullValue", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + return this.isDetached() || t4.__clear ? "" : this.getStyleFromProps()[this.getName()] || ""; + } }, { key: "__getJoin", value: function() { + var t4 = this.get("join"); + return (0, o.isString)(t4) ? t4 : this.get("separator"); + } }, { key: "__styleHasProps", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e4 = this.getName(), n4 = this.getProperties(), i2 = n4.map(function(t5) { + return t5.getName(); + }), s2 = [e4].concat((0, r2.Z)(i2)); + return s2.some(function(e5) { + return !(0, o.isUndefined)(t4[e5]) && t4[e5] !== ""; + }); + } }, { key: "__splitValue", value: function(t4, e4) { + return t4.split(e4).map(function(t5) { + return t5.trim(); + }).filter(Boolean); + } }, { key: "__splitStyleName", value: function(t4, e4, n4) { + return this.__splitValue(t4[e4] || "", n4); + } }, { key: "__getSplitValue", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n4 = e4.byName, r3 = this.getProperties(), i2 = r3.length === 4 && r3.every(function(t5) { + return P(t5.getType()); + }), s2 = this.__splitValue(t4, this.getSplitSeparator()), a2 = {}; + return r3.forEach(function(t5, e5) { + var r4 = s2[e5], l2 = (0, o.isUndefined)(r4) ? "" : r4; + if (i2) { + var c2 = s2.length; + l2 = s2[e5] || s2[e5 % c2 + (c2 != 1 && c2 % 2 ? 1 : 0)] || l2; + } + var u2 = n4 ? t5.getName() : t5.getId(); + a2[u2] = l2 || ""; + }), a2; + } }, { key: "__getPropsFromStyle", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + if (!this.__styleHasProps(t4)) + return null; + var n4 = e4.byName, r3 = this.getName(), i2 = this.getProperties(), s2 = this.getSplitSeparator(), a2 = this.get("fromStyle"), l2 = a2 ? a2(t4, { property: this, name: r3, separator: s2 }) : {}; + return a2 || (l2 = this.__getSplitValue(t4[r3] || "", { byName: n4 }), i2.forEach(function(e5) { + var r4 = t4[e5.getName()], i3 = n4 ? e5.getName() : e5.getId(); + (0, o.isUndefined)(r4) || r4 === "" || (l2[i3] = r4); + })), l2; + } }, { key: "__setProperties", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + this.getProperties().forEach(function(n5) { + var r3 = t4[n5.getId()]; + n5.__getFullValue() !== r3 && n5.upValue(r3, e4); + }); + var n4 = (0, o.keys)(t4).map(function(e5) { + return t4[e5]; + }).join(" "); + this.set("value", n4, { silent: true }); + } }, { key: "clear", value: function() { + var t4 = this; + return this.getProperties().map(function(e4) { + return e4.clear({ __clearIn: !t4.isDetached() }); + }), O.prototype.clear.call(this); + } }, { key: "hasValue", value: function(t4) { + return this.getProperties().some(function(e4) { + return e4.hasValue(t4); + }); + } }, { key: "getFullValue", value: function() { + return this.__getFullValue(); + } }, { key: "__canClearProp", value: function(t4) { + return this.isDetached() && t4.hasValue({ noParent: true }); + } }]), n3; + }(O); + function T(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function E(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? T(Object(n3), true).forEach(function(e4) { + (0, i.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : T(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + function j(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, v.Z)(t3); + if (e3) { + var i2 = (0, v.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, g.Z)(this, n3); + }; + } + var D = function(t3) { + (0, p.Z)(n3, t3); + var e3 = j(n3); + function n3() { + return (0, f.Z)(this, n3), e3.apply(this, arguments); + } + return (0, d.Z)(n3, [{ key: "defaults", value: function() { + return { values: {} }; + } }, { key: "initialize", value: function() { + var t4 = this.collection; + this.prop = t4 == null ? void 0 : t4.prop; + } }, { key: "getId", value: function() { + return this.cid; + } }, { key: "getIndex", value: function() { + var t4 = this.collection; + return t4 ? t4.indexOf(this) : -1; + } }, { key: "getValues", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e4 = this.get("values"); + return t4.camelCase ? Object.keys(e4).reduce(function(t5, n4) { + return t5[(0, s.camelCase)(n4)] = e4[n4], t5; + }, {}) : e4; + } }, { key: "getLabel", value: function() { + var t4; + return (t4 = this.prop) === null || t4 === void 0 ? void 0 : t4.getLayerLabel(this); + } }, { key: "isSelected", value: function() { + var t4; + return ((t4 = this.prop) === null || t4 === void 0 ? void 0 : t4.getSelectedLayer()) === this; + } }, { key: "select", value: function() { + var t4; + return (t4 = this.prop) === null || t4 === void 0 ? void 0 : t4.selectLayer(this); + } }, { key: "remove", value: function() { + var t4; + return (t4 = this.prop) === null || t4 === void 0 ? void 0 : t4.removeLayer(this); + } }, { key: "move", value: function(t4) { + var e4; + return (e4 = this.prop) === null || e4 === void 0 ? void 0 : e4.moveLayer(this, t4); + } }, { key: "getStylePreview", value: function() { + var t4, e4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + return (t4 = this.prop) === null || t4 === void 0 ? void 0 : t4.getStylePreview(this, e4); + } }, { key: "hasPreview", value: function() { + var t4; + return !((t4 = this.prop) === null || t4 === void 0 || !t4.get("preview")); + } }, { key: "upValues", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + return this.set("values", E(E({}, this.getValues()), t4)); + } }]), n3; + }(l.Model); + function M(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, v.Z)(t3); + if (e3) { + var i2 = (0, v.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, g.Z)(this, n3); + }; + } + var A = function(t3) { + (0, p.Z)(n3, t3); + var e3 = M(n3); + function n3() { + return (0, f.Z)(this, n3), e3.apply(this, arguments); + } + return (0, d.Z)(n3, [{ key: "initialize", value: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + this.prop = e4.prop; + } }]), n3; + }(l.Collection); + A.prototype.model = D; + var L = ["__layers"]; + function R(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function N(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? R(Object(n3), true).forEach(function(e4) { + (0, i.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : R(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + function Z(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, v.Z)(t3); + if (e3) { + var i2 = (0, v.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, g.Z)(this, n3); + }; + } + var I = /,(?![^\(]*\))/, F = /\s(?![^(]*\))/, V = function(t3) { + (0, p.Z)(n3, t3); + var e3 = Z(n3); + function n3() { + return (0, f.Z)(this, n3), e3.apply(this, arguments); + } + return (0, d.Z)(n3, [{ key: "defaults", value: function() { + return N(N({}, _.getDefaults()), {}, { layers: [], layerSeparator: ", ", layerJoin: "", prepend: 0, preview: false, layerLabel: null, selectedLayer: null }); + } }, { key: "initialize", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + _.callParentInit(_, this, t4, e4); + var n4 = this.get("layers"), r3 = new A(n4, { prop: this }); + r3.property = this, r3.properties = this.get("properties"), this.set("layers", r3, { silent: true }), this.on("change:selectedLayer", this.__upSelected), this.listenTo(r3, "add remove", this.__upLayers), _.callInit(this, t4, e4); + } }, { key: "getLayers", value: function() { + return this.__getLayers().models; + } }, { key: "__getLayers", value: function() { + return this.get("layers"); + } }, { key: "getLayer", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0; + return this.__getLayers().at(t4) || null; + } }, { key: "getSelectedLayer", value: function() { + var t4 = this.get("selectedLayer"); + return t4 && t4.getIndex() >= 0 ? t4 : null; + } }, { key: "selectLayer", value: function(t4) { + return this.set("selectedLayer", t4, { __select: true }); + } }, { key: "selectLayerAt", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, e4 = this.getLayer(t4); + return e4 && this.selectLayer(e4); + } }, { key: "moveLayer", value: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n4 = t4 ? t4.getIndex() : -1; + n4 >= 0 && (0, o.isNumber)(e4) && e4 >= 0 && e4 < this.getLayers().length && n4 !== e4 && (this.removeLayer(t4), this.__getLayers().add(t4, { at: e4 })); + } }, { key: "addLayer", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n4 = {}; + this.getProperties().forEach(function(e5) { + var r4 = e5.getId(), i2 = t4[r4]; + n4[r4] = (0, o.isUndefined)(i2) ? e5.getDefaultValue() : i2; + }); + var r3 = this.get("layers").push({ values: n4 }, e4); + return r3; + } }, { key: "removeLayer", value: function(t4) { + return this.get("layers").remove(t4); + } }, { key: "removeLayerAt", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, e4 = this.getLayer(t4); + return e4 ? this.removeLayer(e4) : null; + } }, { key: "getLayerLabel", value: function(t4) { + var e4 = ""; + if (t4) { + var n4 = this.get("layerLabel"), r3 = t4.getValues(), i2 = t4.getIndex(); + if (n4) + e4 = n4(t4, { index: i2, values: r3, property: this }); + else { + var o2 = []; + this.getProperties().map(function(t5) { + o2.push(r3[t5.getId()]); + }), e4 = o2.filter(Boolean).join(" "); + } + } + return e4; + } }, { key: "getStyleFromLayer", value: function(t4) { + var e4, n4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r3 = this.__getJoin(), a2 = this.__getJoinLayers(), l2 = this.get("toStyle"), c2 = this.getName(), u2 = t4.getValues(); + if (l2) + e4 = l2(u2, { join: r3, joinLayers: a2, name: c2, layer: t4, property: this }); + else { + var h2 = this.getProperties().map(function(t5) { + var e5 = t5.getName(), r4 = u2[t5.getId()], i2 = (0, o.isUndefined)(r4) ? t5.getDefaultValue() : r4; + if (n4.number && P(t5.getType())) { + var s2 = t5.parseValue(r4, n4.number); + i2 = "".concat(s2.value).concat(s2.unit); + } + return { name: e5, value: i2 }; + }); + e4 = this.isDetached() ? h2.reduce(function(t5, e5) { + return t5[e5.name] = e5.value, t5; + }, {}) : (0, i.Z)({}, this.getName(), h2.map(function(t5) { + return t5.value; + }).join(r3)); + } + return n4.camelCase ? Object.keys(e4).reduce(function(t5, n5) { + return t5[(0, s.camelCase)(n5)] = e4[n5], t5; + }, {}) : e4; + } }, { key: "getStylePreview", value: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n4 = {}, r3 = this.get("preview"); + return r3 && (n4 = this.getStyleFromLayer(t4, e4)), n4; + } }, { key: "getLayerSeparator", value: function() { + var t4 = this.get("layerSeparator"); + return (0, o.isString)(t4) ? new RegExp("".concat(t4, "(?![^\\(]*\\))")) : t4; + } }, { key: "__upProperties", value: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n4 = this.getSelectedLayer(); + n4 && (n4.upValues((0, i.Z)({}, t4.getId(), t4.__getFullValue())), e4.__up || this.__upTargetsStyleProps(e4)); + } }, { key: "__upLayers", value: function(t4, e4, n4) { + this.__upTargetsStyleProps(n4 || e4); + } }, { key: "__upTargets", value: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + if (!e4.__select) + return O.prototype.__upTargets.call(this, t4, e4); + } }, { key: "__upTargetsStyleProps", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + this.__upTargetsStyle(this.getStyleFromLayers(), t4); + } }, { key: "__upTargetsStyle", value: function(t4, e4) { + return O.prototype.__upTargetsStyle.call(this, t4, e4); + } }, { key: "__upSelected", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e4 = t4.noEvent, n4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r3 = this.em.get("StyleManager"), i2 = this.getSelectedLayer(), o2 = i2 == null ? void 0 : i2.getValues(); + o2 && this.getProperties().forEach(function(t5) { + var e5 = o2[t5.getId()]; + t5.__getFullValue() !== e5 && t5.upValue(e5, N(N({}, n4), {}, { __up: true })); + }), !e4 && r3.__trgEv(r3.events.layerSelect, { property: this }); + } }, { key: "_up", value: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n4 = t4.__layers, r3 = n4 === void 0 ? [] : n4, i2 = (0, h.Z)(t4, L); + return !this.isDetached() && this.__setLayers(r3), this.__upSelected({ noEvent: true }, e4), O.prototype._up.call(this, i2, e4); + } }, { key: "__setLayers", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e4 = this.__getLayers(), n4 = t4.map(function(t5) { + return { values: t5 }; + }); + e4.length === n4.length ? n4.map(function(t5, n5) { + var r3; + return (r3 = e4.at(n5)) === null || r3 === void 0 ? void 0 : r3.upValues(t5.values); + }) : this.__getLayers().reset(n4), this.__upSelected({ noEvent: true }); + } }, { key: "__parseValue", value: function(t4) { + var e4 = this, n4 = this.parseValue(t4); + return n4.__layers = t4.split(I).map(function(t5) { + return t5.trim(); + }).map(function(t5) { + return e4.__parseLayer(t5); + }).filter(Boolean), n4; + } }, { key: "__parseLayer", value: function(t4) { + var e4 = this.get("parseLayer"), n4 = t4.split(F), r3 = this.getProperties(); + return e4 ? e4({ value: t4, values: n4 }) : r3.reduce(function(t5, e5, r4) { + var i2 = n4[r4]; + return t5[e5.getId()] = (0, o.isUndefined)(i2) ? e5.getDefaultValue() : i2, t5; + }, {}); + } }, { key: "__getLayersFromStyle", value: function() { + var t4 = this, e4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + if (!this.__styleHasProps(e4)) + return null; + var n4 = this.getName(), r3 = this.getProperties(), s2 = this.getLayerSeparator(), a2 = this.get("fromStyle"), l2 = a2 ? a2(e4, { property: this, name: n4, separatorLayers: s2 }) : []; + if (!a2) { + var c2 = this.__splitStyleName(e4, n4, s2).map(function(e5) { + return e5.split(t4.getSplitSeparator()); + }).map(function(t5) { + var e5 = {}; + return r3.forEach(function(n5, r4) { + var i2 = t5[r4]; + e5[n5.getId()] = (0, o.isUndefined)(i2) ? n5.getDefaultValue() : i2; + }), e5; + }); + r3.forEach(function(n5) { + var r4 = n5.getId(); + t4.__splitStyleName(e4, n5.getName(), s2).map(function(t5) { + return (0, i.Z)({}, r4, t5 || n5.getDefaultValue()); + }).forEach(function(t5, e5) { + c2[e5] = c2[e5] ? N(N({}, c2[e5]), t5) : t5; + }); + }), l2 = c2; + } + return (0, o.isArray)(l2) ? l2 : [l2]; + } }, { key: "getStyle", value: function(t4) { + return this.getStyleFromLayers(t4); + } }, { key: "getStyleFromLayers", value: function(t4) { + var e4 = this, n4 = {}, r3 = this.getName(), i2 = this.getLayers(), s2 = this.getProperties(); + if (i2.map(function(n5) { + return e4.getStyleFromLayer(n5, t4); + }).forEach(function(t5) { + (0, o.keys)(t5).map(function(e5) { + n4[e5] || (n4[e5] = []), n4[e5].push(t5[e5]); + }); + }), (0, o.keys)(n4).map(function(t5) { + n4[t5] = n4[t5].join(e4.__getJoinLayers()); + }), this.isDetached()) + n4[r3] = "", !i2.length && s2.map(function(t5) { + n4[t5.getName()] = ""; + }); + else { + var a2 = s2.reduce(function(t5, e5) { + return t5[e5.getName()] = "", t5; + }, {}); + n4[r3] = n4[r3] || "", n4 = N(N({}, n4), a2); + } + return n4; + } }, { key: "__getJoinLayers", value: function() { + var t4 = this.get("layerJoin"), e4 = this.get("layerSeparator"); + return t4 || ((0, o.isString)(e4) ? e4 : t4); + } }, { key: "__getFullValue", value: function() { + return this.get("detached") ? "" : this.getStyleFromLayers()[this.getName()]; + } }, { key: "hasValue", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e4 = t4.noParent, n4 = e4 && this.getParentTarget(); + return this.getLayers().length > 0 && !n4; + } }, { key: "clear", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + return this.__getLayers().reset(), this.__upTargetsStyleProps(t4), O.prototype.clear.call(this); + } }, { key: "__canClearProp", value: function() { + return false; + } }]), n3; + }(_), H = ["complete", "partial"]; + function B(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function z(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? B(Object(n3), true).forEach(function(e4) { + (0, i.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : B(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + function U(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, v.Z)(t3); + if (e3) { + var i2 = (0, v.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, g.Z)(this, n3); + }; + } + var W = "data-clear-style", $ = function(t3) { + (0, p.Z)(n3, t3); + var e3 = U(n3); + function n3() { + return (0, f.Z)(this, n3), e3.apply(this, arguments); + } + return (0, d.Z)(n3, [{ key: "template", value: function() { + var t4 = this.pfx, e4 = this.ppfx; + return '\n <div class="'.concat(t4, 'label" data-sm-label></div>\n <div class="').concat(e4, 'fields" data-sm-fields></div>\n '); + } }, { key: "templateLabel", value: function(t4) { + var e4 = this.pfx, n4 = this.em, r3 = t4.parent, i2 = t4.attributes, o2 = i2.icon, s2 = o2 === void 0 ? "" : o2, a2 = i2.info, l2 = a2 === void 0 ? "" : a2, c2 = n4 == null ? void 0 : n4.getConfig("icons"), u2 = (c2 == null ? void 0 : c2.close) || ""; + return '\n <span class="'.concat(e4, "icon ").concat(s2, '" title="').concat(l2, '">\n ').concat(t4.getLabel(), "\n </span>\n ").concat(r3 ? "" : '<div class="'.concat(e4, 'clear" style="display: none" ').concat(W, ">").concat(u2, "</div>"), "\n "); + } }, { key: "templateInput", value: function(t4) { + return '\n <div class="'.concat(this.ppfx, 'field">\n <input placeholder="').concat(t4.getDefaultValue(), '"/>\n </div>\n '); + } }, { key: "initialize", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + (0, o.bindAll)(this, "__change", "__updateStyle"); + var e4 = t4.config || {}, n4 = e4.em; + this.config = e4, this.em = n4, this.pfx = e4.stylePrefix || "", this.ppfx = e4.pStylePrefix || "", this.__destroyFn = this.destroy ? this.destroy.bind(this) : function() { + }; + var r3 = this.model; + r3.view = this, this.onValueChange = (0, o.debounce)(this.onValueChange.bind(this), 10), this.updateStatus = (0, o.debounce)(this.updateStatus.bind(this)), this.listenTo(r3, "destroy remove", this.remove), this.listenTo(r3, "change:visible", this.updateVisibility), this.listenTo(r3, "change:name change:className change:full", this.render), this.listenTo(r3, "change:value", this.onValueChange), this.listenTo(n4, "change:device", this.onValueChange); + var i2 = this.init && this.init.bind(this); + i2 && i2(); + } }, { key: "remove", value: function() { + var t4 = this; + l.View.prototype.remove.apply(this, arguments), ["em", "input", "$input", "view"].forEach(function(e4) { + return t4[e4] = null; + }), this.__destroyFn(this._getClbOpts()); + } }, { key: "updateStatus", value: function() { + var t4, e4 = this.model, n4 = this.pfx, r3 = this.ppfx, i2 = this.config, o2 = "".concat(r3, "four-color"), s2 = "".concat(r3, "color-warn"), a2 = this.$el.children(".".concat(n4, "label")), l2 = this.getClearEl(), c2 = l2 ? l2.style : {}; + a2.removeClass("".concat(o2, " ").concat(s2)), c2.display = "none", e4.hasValue({ noParent: true }) && i2.highlightChanged ? (a2.addClass(o2), i2.clearProperties && (c2.display = "")) : e4.hasValue() && i2.highlightComputed && a2.addClass(s2), (t4 = this.parent) === null || t4 === void 0 || t4.updateStatus(); + } }, { key: "clear", value: function(t4) { + t4 && t4.stopPropagation(), this.model.clear(); + } }, { key: "getClearEl", value: function() { + return this.clearEl || (this.clearEl = this.el.querySelector("[".concat(W, "]"))), this.clearEl; + } }, { key: "inputValueChanged", value: function(t4) { + t4 && t4.stopPropagation(), this.emit || this.model.upValue(t4.target.value); + } }, { key: "onValueChange", value: function(t4, e4) { + this.setValue(this.model.getFullValue()), this.updateStatus(); + } }, { key: "setValue", value: function(t4) { + var e4 = this.model, n4 = (0, o.isUndefined)(t4) || t4 === "" ? e4.getDefaultValue() : t4; + if (this.update) + return this.__update(n4); + this.__setValueInput(n4); + } }, { key: "__setValueInput", value: function(t4) { + var e4 = this.getInputEl(); + e4 && (e4.value = t4); + } }, { key: "getInputEl", value: function() { + return this.input || (this.input = this.el.querySelector("input")), this.input; + } }, { key: "updateVisibility", value: function() { + this.el.style.display = this.model.isVisible() ? "" : "none"; + } }, { key: "clearCached", value: function() { + this.clearEl = null, this.input = null, this.$input = null; + } }, { key: "__unset", value: function() { + var t4 = this.unset && this.unset.bind(this); + t4 && t4(this._getClbOpts()); + } }, { key: "__update", value: function(t4) { + var e4 = this.update && this.update.bind(this); + e4 && e4(z(z({}, this._getClbOpts()), {}, { value: t4 })); + } }, { key: "__change", value: function() { + for (var t4 = this.emit && this.emit.bind(this), e4 = arguments.length, n4 = new Array(e4), r3 = 0; r3 < e4; r3++) + n4[r3] = arguments[r3]; + t4 && t4.apply(void 0, [this._getClbOpts()].concat(n4)); + } }, { key: "__updateStyle", value: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n4 = e4.complete, r3 = e4.partial, i2 = ((0, h.Z)(e4, H), this.model), o2 = n4 !== false && r3 !== true; + (0, s.isObject)(t4) ? i2.__upTargetsStyle(t4, { avoidStore: !o2 }) : i2.upValue(t4, { partial: !o2 }); + } }, { key: "_getClbOpts", value: function() { + var t4 = this.model; + return { el: this.el, createdEl: this.createdEl, property: t4, props: t4.attributes, change: this.__change, updateStyle: this.__updateStyle }; + } }, { key: "render", value: function() { + this.clearCached(); + var t4 = this.pfx, e4 = this.model, n4 = this.el, r3 = this.$el, i2 = e4.getName(), o2 = e4.getType(), s2 = e4.get("className") || "", a2 = "".concat(t4, "property"), l2 = o2 === "number" ? "".concat(t4).concat(o2, " ").concat(t4, "integer") : "".concat(t4).concat(o2); + this.createdEl && this.__destroyFn(this._getClbOpts()), r3.empty().append(this.template(e4)), r3.find("[data-sm-label]").append(this.templateLabel(e4)); + var c2 = this.create && this.create.bind(this); + this.createdEl = c2 && c2(this._getClbOpts()), r3.find("[data-sm-fields]").append(this.createdEl || this.templateInput(e4)), n4.className = "".concat(a2, " ").concat(l2, " ").concat(a2, "__").concat(i2, " ").concat(s2).trim(), n4.className += e4.isFull() ? " ".concat(a2, "--full") : ""; + var u2 = this.onRender && this.onRender.bind(this); + u2 && u2(), this.setValue(e4.getValue()); + } }]), n3; + }(l.View); + $.prototype.events = (0, i.Z)({ change: "inputValueChanged" }, "click [".concat(W, "]"), "clear"); + var q = n2(9283); + function G(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, v.Z)(t3); + if (e3) { + var i2 = (0, v.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, g.Z)(this, n3); + }; + } + var K = function(t3) { + (0, p.Z)(n3, t3); + var e3 = G(n3); + function n3() { + return (0, f.Z)(this, n3), e3.apply(this, arguments); + } + return (0, d.Z)(n3, [{ key: "initialize", value: function(t4) { + this.config = t4.config || {}, this.pfx = this.config.stylePrefix || "", this.properties = [], this.parent = t4.parent; + var e4 = this.collection; + this.listenTo(e4, "add", this.addTo), this.listenTo(e4, "reset", this.render); + } }, { key: "addTo", value: function(t4, e4, n4) { + this.add(t4, null, n4); + } }, { key: "add", value: function(t4, e4) { + var n4 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r3 = this.parent, i2 = this.config, o2 = e4 || this.el, s2 = new t4.typeView({ model: t4, config: i2 }); + r3 && (s2.parent = r3), s2.render(); + var a2 = s2.el; + this.properties.push(s2), (0, q.$Q)(o2, a2, n4.at); + } }, { key: "remove", value: function() { + l.View.prototype.remove.apply(this, arguments), this.clearItems(); + } }, { key: "clearItems", value: function() { + this.properties.forEach(function(t4) { + return t4.remove(); + }), this.properties = []; + } }, { key: "render", value: function() { + var t4 = this, e4 = this.$el, n4 = this.pfx; + this.clearItems(); + var r3 = document.createDocumentFragment(); + return this.collection.forEach(function(e5) { + return t4.add(e5, r3); + }), e4.empty(), e4.append(r3), e4.attr("class", "".concat(n4, "properties")), this; + } }]), n3; + }(l.View); + function Y(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function J(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? Y(Object(n3), true).forEach(function(e4) { + (0, i.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : Y(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + function X(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, v.Z)(t3); + if (e3) { + var i2 = (0, v.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, g.Z)(this, n3); + }; + } + var Q = function(t3) { + (0, p.Z)(n3, t3); + var e3 = X(n3); + function n3() { + return (0, f.Z)(this, n3), e3.apply(this, arguments); + } + return (0, d.Z)(n3, [{ key: "templateInput", value: function() { + var t4 = this.pfx; + return '\n <div class="'.concat(t4, "field ").concat(t4, 'composite">\n <span id="').concat(t4, 'input-holder"></span>\n </div>\n '); + } }, { key: "remove", value: function() { + var t4; + (t4 = this.props) === null || t4 === void 0 || t4.remove(), $.prototype.remove.apply(this, arguments); + } }, { key: "onValueChange", value: function() { + } }, { key: "onRender", value: function() { + var t4 = this.model, e4 = this.pfx, n4 = t4.get("properties"); + if (n4.length && !this.props) { + var r3 = t4.isDetached(), i2 = new K({ config: J(J({}, this.config), {}, { highlightComputed: r3, highlightChanged: r3 }), collection: n4, parent: this }); + i2.render(), this.$el.find("#".concat(e4, "input-holder")).append(i2.el), this.props = i2; + } + } }, { key: "clearCached", value: function() { + $.prototype.clearCached.apply(this, arguments), this.props = null; + } }]), n3; + }($); + function tt(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, v.Z)(t3); + if (e3) { + var i2 = (0, v.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, g.Z)(this, n3); + }; + } + var et = function(t3) { + (0, p.Z)(n3, t3); + var e3 = tt(n3); + function n3() { + return (0, f.Z)(this, n3), e3.apply(this, arguments); + } + return (0, d.Z)(n3, [{ key: "events", value: function() { + return { click: "select", "click [data-close-layer]": "removeItem", "mousedown [data-move-layer]": "initSorter", "touchstart [data-move-layer]": "initSorter" }; + } }, { key: "template", value: function() { + var t4 = this.pfx, e4 = this.ppfx, n4 = this.em, r3 = n4 == null ? void 0 : n4.getConfig("icons"), i2 = (r3 == null ? void 0 : r3.close) || "", o2 = (r3 == null ? void 0 : r3.move) || ""; + return '\n <div class="'.concat(t4, 'label-wrp">\n <div id="').concat(t4, 'move" class="').concat(e4, 'no-touch-actions" data-move-layer>\n ').concat(o2, '\n </div>\n <div id="').concat(t4, 'label" data-label></div>\n <div id="').concat(t4, 'preview-box" class="').concat(t4, 'layer-preview" style="display: none" data-preview-box>\n <div id="').concat(t4, 'preview" class="').concat(t4, 'layer-preview-cnt" data-preview></div>\n </div>\n <div id="').concat(t4, 'close-layer" class="').concat(t4, 'btn-close" data-close-layer>\n ').concat(i2, '\n </div>\n </div>\n <div id="').concat(t4, 'inputs" data-properties></div>\n '); + } }, { key: "initialize", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e4 = this.model, n4 = t4.config || {}; + this.em = n4.em, this.config = n4, this.sorter = t4.sorter, this.pfx = n4.stylePrefix || "", this.ppfx = n4.pStylePrefix || "", this.propertyView = t4.propertyView; + var r3 = this.propertyView.model; + this.listenTo(e4, "destroy remove", this.remove), this.listenTo(e4, "change:values", this.updateLabel), this.listenTo(r3, "change:selectedLayer", this.updateVisibility), e4.view = this, e4.set({ droppable: 0, draggable: 1 }), this.$el.data("model", e4); + } }, { key: "initSorter", value: function() { + var t4; + (t4 = this.sorter) === null || t4 === void 0 || t4.startSort(this.el); + } }, { key: "removeItem", value: function(t4) { + t4 && t4.stopPropagation(), this.model.remove(); + } }, { key: "select", value: function() { + this.model.select(); + } }, { key: "getPropertiesWrapper", value: function() { + return this.propsWrapEl || (this.propsWrapEl = this.el.querySelector("[data-properties]")), this.propsWrapEl; + } }, { key: "getPreviewEl", value: function() { + return this.previewEl || (this.previewEl = this.el.querySelector("[data-preview]")), this.previewEl; + } }, { key: "getLabelEl", value: function() { + return this.labelEl || (this.labelEl = this.el.querySelector("[data-label]")), this.labelEl; + } }, { key: "updateLabel", value: function() { + var t4 = this.model, e4 = t4.getLabel(); + if (this.getLabelEl().innerHTML = e4, t4.hasPreview()) { + var n4 = this.getPreviewEl(), r3 = t4.getStylePreview({ number: { min: -3, max: 3 } }), i2 = (0, o.keys)(r3).map(function(t5) { + return "".concat(t5, ":").concat(r3[t5]); + }).join(";"); + n4.setAttribute("style", i2); + } + } }, { key: "updateVisibility", value: function() { + var t4 = this.pfx, e4 = this.model, n4 = this.propertyView, r3 = this.getPropertiesWrapper(), i2 = e4.isSelected(); + r3.style.display = i2 ? "" : "none", this.$el[i2 ? "addClass" : "removeClass"]("".concat(t4, "active")), i2 && r3.appendChild(n4.props.el); + } }, { key: "render", value: function() { + var t4 = this.el, e4 = this.pfx, n4 = this.model; + return t4.innerHTML = this.template(), t4.className = "".concat(e4, "layer"), n4.hasPreview() && (t4.querySelector("[data-preview-box]").style.display = ""), this.updateLabel(), this.updateVisibility(), this; + } }]), n3; + }(l.View); + function nt(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, v.Z)(t3); + if (e3) { + var i2 = (0, v.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, g.Z)(this, n3); + }; + } + var rt = function(t3) { + (0, p.Z)(n3, t3); + var e3 = nt(n3); + function n3() { + return (0, f.Z)(this, n3), e3.apply(this, arguments); + } + return (0, d.Z)(n3, [{ key: "initialize", value: function(t4) { + var e4 = this.collection, n4 = t4.config || {}, r3 = n4.em, i2 = n4.stylePrefix || "", o2 = n4.pStylePrefix || ""; + this.config = n4, this.pfx = i2, this.ppfx = o2, this.propertyView = t4.propertyView, this.className = "".concat(i2, "layers ").concat(o2, "field"), this.listenTo(e4, "add", this.addTo), this.listenTo(e4, "reset", this.reset), this.items = []; + var s2 = r3 ? r3.get("Utils") : ""; + this.sorter = s2 ? new s2.Sorter({ container: this.el, ignoreViewChildren: 1, containerSel: ".".concat(i2, "layers"), itemSel: ".".concat(i2, "layer"), pfx: n4.pStylePrefix }) : "", e4.view = this, this.$el.data("model", e4), this.$el.data("collection", e4); + } }, { key: "addTo", value: function(t4) { + var e4 = this.collection.indexOf(t4); + this.addToCollection(t4, null, e4); + } }, { key: "addToCollection", value: function(t4, e4, n4) { + var r3 = e4 || null, i2 = this.propertyView, o2 = this.config, s2 = this.sorter, a2 = this.$el, l2 = new et({ model: t4, config: o2, sorter: s2, propertyView: i2 }), c2 = l2.render().el; + if (this.items.push(l2), r3) + r3.appendChild(c2); + else if (n4 !== void 0) { + var u2 = "before"; + a2.children().length === n4 && (n4--, u2 = "after"), n4 < 0 ? a2.append(c2) : a2.children().eq(n4)[u2](c2); + } else + a2.append(c2); + return c2; + } }, { key: "reset", value: function(t4, e4) { + this.clearItems(e4), this.render(); + } }, { key: "remove", value: function() { + this.clearItems(), l.View.prototype.remove.apply(this, arguments); + } }, { key: "clearItems", value: function() { + this.items.forEach(function(t4) { + return t4.remove(); + }), this.items = []; + } }, { key: "render", value: function() { + var t4 = this, e4 = this.$el, n4 = this.sorter, r3 = document.createDocumentFragment(); + return e4.empty(), this.collection.forEach(function(e5) { + return t4.addToCollection(e5, r3); + }), e4.append(r3), e4.attr("class", this.className), n4 && (n4.plh = null), this; + } }]), n3; + }(l.View); + function it(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function ot(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? it(Object(n3), true).forEach(function(e4) { + (0, i.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : it(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + function st(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, v.Z)(t3); + if (e3) { + var i2 = (0, v.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, g.Z)(this, n3); + }; + } + var at = function(t3) { + (0, p.Z)(n3, t3); + var e3 = st(n3); + function n3() { + return (0, f.Z)(this, n3), e3.apply(this, arguments); + } + return (0, d.Z)(n3, [{ key: "events", value: function() { + return ot(ot({}, Q.prototype.events), {}, { "click [data-add-layer]": "addLayer", change: "" }); + } }, { key: "templateInput", value: function() { + var t4 = this.pfx, e4 = this.em, n4 = e4 == null ? void 0 : e4.getConfig("icons"), r3 = (n4 == null ? void 0 : n4.plus) || "+"; + return '\n <div class="'.concat(t4, "field ").concat(t4, 'stack">\n <button type="button" id="').concat(t4, 'add" data-add-layer>\n ').concat(r3, "\n </button>\n <div data-layers-wrapper></div>\n </div>\n "); + } }, { key: "init", value: function() { + var t4 = this.model; + this.listenTo(t4.__getLayers(), "change reset", this.updateStatus); + } }, { key: "addLayer", value: function() { + this.model.addLayer({}, { at: 0 }); + } }, { key: "setValue", value: function() { + } }, { key: "remove", value: function() { + var t4; + (t4 = this.layersView) === null || t4 === void 0 || t4.remove(), Q.prototype.remove.apply(this, arguments); + } }, { key: "clearCached", value: function() { + Q.prototype.clearCached.apply(this, arguments), this.layersView = null; + } }, { key: "onRender", value: function() { + var t4 = this.model, e4 = this.el, n4 = this.config, r3 = t4.get("properties"); + if (r3.length && !this.props) { + var i2 = new K({ config: ot(ot({}, n4), {}, { highlightComputed: false, highlightChanged: false }), collection: r3, parent: this }); + i2.render(); + var o2 = new rt({ collection: t4.__getLayers(), config: n4, propertyView: this }); + o2.render(), e4.querySelector("[data-layers-wrapper]").appendChild(o2.el), this.props = i2, this.layersView = o2; + } + } }]), n3; + }(Q); + function lt(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function ct(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? lt(Object(n3), true).forEach(function(e4) { + (0, i.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : lt(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + function ut(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, v.Z)(t3); + if (e3) { + var i2 = (0, v.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, g.Z)(this, n3); + }; + } + var ht = function(t3) { + (0, p.Z)(n3, t3); + var e3 = ut(n3); + function n3() { + return (0, f.Z)(this, n3), e3.apply(this, arguments); + } + return (0, d.Z)(n3, [{ key: "events", value: function() { + return ct(ct({}, $.prototype.events), {}, { "click [data-clear-asset]": "clear", "click [data-open-assets]": "openAssetManager" }); + } }, { key: "templateInput", value: function() { + var t4, e4 = this.pfx, n4 = this.em, r3 = (t4 = this.em) === null || t4 === void 0 ? void 0 : t4.getConfig("icons"), i2 = r3 == null ? void 0 : r3.close; + return '\n <div class="'.concat(e4, "field ").concat(e4, `file"> + <div id='`).concat(e4, `input-holder'> + <div class="`).concat(e4, 'btn-c">\n <button class="').concat(e4, 'btn" id="').concat(e4, 'images" type="button" data-open-assets>\n ').concat(n4.t("styleManager.fileButton"), '\n </button>\n </div>\n <div style="clear:both;"></div>\n </div>\n <div id="').concat(e4, 'preview-box" class="').concat(e4, 'preview-file" data-preview-box>\n <div id="').concat(e4, 'preview-file" class="').concat(e4, 'preview-file-cnt" data-preview></div>\n <div id="').concat(e4, 'close" class="').concat(e4, 'preview-file-close" data-clear-asset>').concat(i2, "</div>\n </div>\n </div>\n "); + } }, { key: "__setValueInput", value: function(t4) { + var e4 = this.model, n4 = this.el, r3 = e4.getDefaultValue(), i2 = n4.querySelector("[data-preview-box]"), o2 = n4.querySelector("[data-preview]"); + i2.style.display = t4 && t4 !== r3 ? "" : "none", o2.style.backgroundImage = t4 || e4.getDefaultValue(); + } }, { key: "openAssetManager", value: function() { + var t4, e4 = this, n4 = (t4 = this.em) === null || t4 === void 0 ? void 0 : t4.get("AssetManager"); + n4 == null || n4.open({ select: function(t5, r3) { + var i2 = (0, o.isString)(t5) ? t5 : t5.get("src"); + e4.model.upValue(i2, { partial: !r3 }), r3 && n4.close(); + }, types: ["image"], accept: "image/*" }); + } }]), n3; + }($); + function ft(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, v.Z)(t3); + if (e3) { + var i2 = (0, v.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, g.Z)(this, n3); + }; + } + var dt = function(t3) { + (0, p.Z)(n3, t3); + var e3 = ft(n3); + function n3() { + return (0, f.Z)(this, n3), e3.apply(this, arguments); + } + return (0, d.Z)(n3, [{ key: "templateInput", value: function() { + return ""; + } }, { key: "init", value: function() { + var t4 = this.model; + this.listenTo(t4, "change:unit", this.onValueChange), this.listenTo(t4, "change:units", this.render); + } }, { key: "setValue", value: function() { + } }, { key: "onRender", value: function() { + var t4 = this.ppfx, e4 = this.model, n4 = this.el; + if (!this.inputInst) { + var r3 = e4.input; + r3.ppfx = t4, r3.render(), n4.querySelector(".".concat(t4, "fields")).appendChild(r3.el), this.input = r3.inputEl.get(0), this.inputInst = r3; + } + } }, { key: "clearCached", value: function() { + $.prototype.clearCached.apply(this, arguments), this.inputInst = null; + } }]), n3; + }($), pt = n2(1511); + function gt(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, v.Z)(t3); + if (e3) { + var i2 = (0, v.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, g.Z)(this, n3); + }; + } + var vt = function(t3) { + (0, p.Z)(n3, t3); + var e3 = gt(n3); + function n3() { + return (0, f.Z)(this, n3), e3.apply(this, arguments); + } + return (0, d.Z)(n3, [{ key: "setValue", value: function(t4) { + var e4; + (e4 = this.inputInst) === null || e4 === void 0 || e4.setValue(t4, { fromTarget: 1, def: this.model.getDefaultValue() }); + } }, { key: "remove", value: function() { + var t4 = this; + dt.prototype.remove.apply(this, arguments); + var e4 = this.inputInst; + e4 && e4.remove && e4.remove(), ["inputInst", "$color"].forEach(function(e5) { + return t4[e5] = null; + }); + } }, { key: "__handleChange", value: function(t4, e4) { + this.model.upValue(t4, { partial: e4 }); + } }, { key: "onRender", value: function() { + if (!this.inputInst) { + this.__handleChange = this.__handleChange.bind(this); + var t4 = this.ppfx, e4 = this.model, n4 = this.em, r3 = this.el, i2 = new pt.Z({ target: n4, model: e4, ppfx: t4, onChange: this.__handleChange }).render(); + r3.querySelector(".".concat(t4, "fields")).appendChild(i2.el), this.input = i2.inputEl.get(0), this.inputInst = i2; + } + } }]), n3; + }(dt); + function mt(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function yt(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? mt(Object(n3), true).forEach(function(e4) { + (0, i.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : mt(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + function bt(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, v.Z)(t3); + if (e3) { + var i2 = (0, v.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, g.Z)(this, n3); + }; + } + var wt = function(t3) { + (0, p.Z)(n3, t3); + var e3 = bt(n3); + function n3() { + return (0, f.Z)(this, n3), e3.apply(this, arguments); + } + return (0, d.Z)(n3, [{ key: "defaults", value: function() { + return yt(yt({}, O.getDefaults()), {}, { options: [], full: 0 }); + } }, { key: "getOptions", value: function() { + var t4 = this.attributes, e4 = t4.options, n4 = t4.list; + return (e4 && e4.length ? e4 : n4) || []; + } }, { key: "getOption", value: function(t4) { + var e4 = this, n4 = t4 || this.getValue(); + return this.getOptions().filter(function(t5) { + return e4.getOptionId(t5) === n4; + })[0] || null; + } }, { key: "setOptions", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : []; + return this.set("options", t4), this; + } }, { key: "addOption", value: function(t4) { + if (t4) { + var e4 = this.getOptions(); + this.setOptions([].concat((0, r2.Z)(e4), [t4])); + } + return this; + } }, { key: "getOptionId", value: function(t4) { + return (0, s.isDef)(t4.id) ? t4.id : t4.value; + } }, { key: "getOptionLabel", value: function(t4) { + var e4, n4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r3 = n4.locale, i2 = r3 === void 0 || r3, s2 = ((0, o.isString)(t4) ? this.getOption(t4) : t4) || {}, a2 = this.getOptionId(s2), l2 = s2.label || s2.name || a2, c2 = this.getId(); + return i2 && ((e4 = this.em) === null || e4 === void 0 ? void 0 : e4.t("styleManager.options.".concat(c2, ".").concat(a2))) || l2; + } }, { key: "initialize", value: function() { + for (var t4 = arguments.length, e4 = new Array(t4), n4 = 0; n4 < t4; n4++) + e4[n4] = arguments[n4]; + O.prototype.initialize.apply(this, e4), this.listenTo(this, "change:options", this.__onOptionChange); + } }, { key: "__onOptionChange", value: function() { + this.set("list", this.get("options")); + } }]), n3; + }(O); + function xt(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, v.Z)(t3); + if (e3) { + var i2 = (0, v.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, g.Z)(this, n3); + }; + } + var Ot = function(t3) { + (0, p.Z)(n3, t3); + var e3 = xt(n3); + function n3() { + return (0, f.Z)(this, n3), e3.apply(this, arguments); + } + return (0, d.Z)(n3, [{ key: "templateInput", value: function() { + var t4 = this.pfx, e4 = this.ppfx; + return '\n <div class="'.concat(e4, "field ").concat(e4, 'select">\n <span id="').concat(t4, 'input-holder"></span>\n <div class="').concat(e4, 'sel-arrow">\n <div class="').concat(e4, 'd-s-arrow"></div>\n </div>\n </div>\n '); + } }, { key: "initialize", value: function() { + for (var t4 = arguments.length, e4 = new Array(t4), n4 = 0; n4 < t4; n4++) + e4[n4] = arguments[n4]; + $.prototype.initialize.apply(this, e4), this.listenTo(this.model, "change:options", this.updateOptions); + } }, { key: "updateOptions", value: function() { + this.input = null, this.onRender(); + } }, { key: "onRender", value: function() { + var t4 = this.model, e4 = this.pfx, n4 = t4.getOptions(); + if (!this.input) { + var r3 = []; + n4.forEach(function(e5) { + var n5 = t4.getOptionId(e5), i3 = t4.getOptionLabel(n5), o2 = e5.style ? e5.style.replace(/"/g, """) : "", s2 = o2 ? 'style="'.concat(o2, '"') : "", a2 = n5.replace(/"/g, """); + r3.push('<option value="'.concat(a2, '" ').concat(s2, ">").concat(i3, "</option>")); + }); + var i2 = this.el.querySelector("#".concat(e4, "input-holder")); + i2.innerHTML = "<select>".concat(r3.join(""), "</select>"), this.input = i2.firstChild; + } + } }, { key: "__setValueInput", value: function(t4) { + var e4 = this.model, n4 = this.getInputEl(), r3 = e4.getOptions()[0], i2 = r3 ? e4.getOptionId(r3) : ""; + n4 && (n4.value = t4 || i2); + } }]), n3; + }($); + function Ct(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function kt(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? Ct(Object(n3), true).forEach(function(e4) { + (0, i.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : Ct(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + function St(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, v.Z)(t3); + if (e3) { + var i2 = (0, v.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, g.Z)(this, n3); + }; + } + var Pt = function(t3) { + (0, p.Z)(n3, t3); + var e3 = St(n3); + function n3() { + return (0, f.Z)(this, n3), e3.apply(this, arguments); + } + return (0, d.Z)(n3, [{ key: "defaults", value: function() { + return kt(kt({}, wt.getDefaults()), {}, { full: 1 }); + } }]), n3; + }(wt); + function _t(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, v.Z)(t3); + if (e3) { + var i2 = (0, v.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, g.Z)(this, n3); + }; + } + var Tt = function(t3) { + (0, p.Z)(n3, t3); + var e3 = _t(n3); + function n3() { + return (0, f.Z)(this, n3), e3.apply(this, arguments); + } + return (0, d.Z)(n3, [{ key: "templateInput", value: function() { + var t4 = this.ppfx; + return '<div class="'.concat(t4, "field ").concat(t4, 'field-radio"></div>'); + } }, { key: "onRender", value: function() { + var t4 = this.pfx, e4 = this.ppfx, n4 = this.model, r3 = "".concat(e4, "radio-item-label"), i2 = n4.getName(), o2 = n4.getOptions(), s2 = "".concat(t4, "radio ").concat(t4, "radio-").concat(i2), a2 = n4.cid; + if (!this.input) { + var l2 = []; + o2.forEach(function(o3) { + var c3 = o3.className ? "".concat(o3.className, " ").concat(t4, "icon ").concat(r3) : "", u2 = n4.getOptionId(o3), h2 = "".concat(i2, "-").concat(u2, "-").concat(a2), f2 = c3 ? "" : n4.getOptionLabel(u2), d2 = o3.title ? 'title="'.concat(o3.title, '"') : "", p2 = n4.getValue() === u2 ? "checked" : ""; + l2.push('\n <div class="'.concat(e4, 'radio-item">\n <input type="radio" class="').concat(s2, '" id="').concat(h2, '" name="').concat(i2, "-").concat(a2, '" value="').concat(u2, '" ').concat(p2, '/>\n <label class="').concat(c3 || r3, '" ').concat(d2, ' for="').concat(h2, '">').concat(f2, "</label>\n </div>\n ")); + }); + var c2 = this.el.querySelector(".".concat(e4, "field")); + c2.innerHTML = '<div class="'.concat(e4, 'radio-items">').concat(l2.join(""), "</div>"), this.input = c2.firstChild; + } + } }, { key: "__setValueInput", value: function(t4) { + var e4, n4 = this.model, r3 = t4 || n4.getDefaultValue(), i2 = (e4 = this.getInputEl()) === null || e4 === void 0 ? void 0 : e4.querySelector('[value="'.concat(r3, '"]')); + i2 && (i2.checked = true); + } }]), n3; + }(Ot), Et = n2(7610); + function jt(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function Dt(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? jt(Object(n3), true).forEach(function(e4) { + (0, i.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : jt(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + function Mt(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, v.Z)(t3); + if (e3) { + var i2 = (0, v.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, g.Z)(this, n3); + }; + } + var At = function(t3) { + (0, p.Z)(n3, t3); + var e3 = Mt(n3); + function n3() { + return (0, f.Z)(this, n3), e3.apply(this, arguments); + } + return (0, d.Z)(n3, [{ key: "defaults", value: function() { + return Dt(Dt({}, O.getDefaults()), {}, { units: [], unit: "", min: "", max: "", step: 1 }); + } }, { key: "getUnits", value: function() { + return this.get("units") || []; + } }, { key: "getUnit", value: function() { + return this.get("unit"); + } }, { key: "getMin", value: function() { + return this.get("min"); + } }, { key: "getMax", value: function() { + return this.get("max"); + } }, { key: "getStep", value: function() { + return this.get("step"); + } }, { key: "upUnit", value: function(t4, e4) { + return this._up({ unit: t4 }, e4); + } }, { key: "initialize", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + O.callParentInit(O, this, t4, e4); + var n4 = this.get("unit"), r3 = this.get("units"); + this.input = (0, s.hasWin)() && new Et.Z({ model: this }), r3.length && !n4 && this.set("unit", r3[0], { silent: 1 }), O.callInit(this, t4, e4); + } }, { key: "__getClearProps", value: function() { + return Dt(Dt({}, O.prototype.__getClearProps()), {}, { unit: "" }); + } }, { key: "parseValue", value: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n4 = O.prototype.parseValue.apply(this, arguments), r3 = this.input.validateInputValue(n4.value, Dt({ deepCheck: 1 }, e4)), i2 = r3.value, o2 = r3.unit; + return n4.value = i2, n4.unit = o2, n4; + } }, { key: "getFullValue", value: function() { + var t4 = this.get("value"), e4 = this.get("unit"); + return t4 = (0, o.isUndefined)(t4) ? "" : t4, e4 = !(0, o.isUndefined)(e4) && t4 ? e4 : "", t4 = "".concat(t4).concat(e4), O.prototype.getFullValue.apply(this, [t4]); + } }]), n3; + }(O); + function Lt(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function Rt(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? Lt(Object(n3), true).forEach(function(e4) { + (0, i.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : Lt(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + function Nt(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, v.Z)(t3); + if (e3) { + var i2 = (0, v.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, g.Z)(this, n3); + }; + } + var Zt = function(t3) { + (0, p.Z)(n3, t3); + var e3 = Nt(n3); + function n3() { + return (0, f.Z)(this, n3), e3.apply(this, arguments); + } + return (0, d.Z)(n3, [{ key: "defaults", value: function() { + return Rt(Rt({}, At.getDefaults()), {}, { showInput: 1 }); + } }]), n3; + }(At); + function It(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function Ft(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? It(Object(n3), true).forEach(function(e4) { + (0, i.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : It(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + function Vt(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, v.Z)(t3); + if (e3) { + var i2 = (0, v.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, g.Z)(this, n3); + }; + } + var Ht = function(t3) { + (0, p.Z)(n3, t3); + var e3 = Vt(n3); + function n3() { + return (0, f.Z)(this, n3), e3.apply(this, arguments); + } + return (0, d.Z)(n3, [{ key: "events", value: function() { + return Ft(Ft({}, dt.prototype.events), {}, { "change [type=range]": "inputValueChanged", "input [type=range]": "inputValueChangedSoft", change: "" }); + } }, { key: "templateInput", value: function(t4) { + var e4 = this.ppfx; + return '\n <div class="'.concat(e4, "field ").concat(e4, 'field-range">\n <input type="range" min="').concat(t4.get("min"), '" max="').concat(t4.get("max"), '" step="').concat(t4.get("step"), '"/>\n </div>\n '); + } }, { key: "getSliderEl", value: function() { + return this.slider || (this.slider = this.el.querySelector("input[type=range]")), this.slider; + } }, { key: "inputValueChanged", value: function() { + this.model.upValue(this.getSliderEl().value); + } }, { key: "inputValueChangedSoft", value: function() { + this.model.upValue(this.getSliderEl().value, { partial: true }); + } }, { key: "setValue", value: function(t4) { + var e4 = this.model, n4 = e4.parseValue(t4); + this.getSliderEl().value = t4 === "" ? e4.getDefaultValue() : parseFloat(n4.value), dt.prototype.setValue.apply(this, arguments); + } }, { key: "onRender", value: function() { + dt.prototype.onRender.apply(this, arguments), this.model.get("showInput") || (this.inputInst.el.style.display = "none"); + } }, { key: "clearCached", value: function() { + dt.prototype.clearCached.apply(this, arguments), this.slider = null; + } }]), n3; + }(dt); + const Bt = c().Collection.extend(m.Z).extend({ extendViewApi: 1, init: function() { + var t3 = this.opts, e3 = this.em, n3 = t3.module || (e3 == null ? void 0 : e3.get("StyleManager")); + n3 && (n3.__listenAdd(this, n3.events.propertyAdd), n3.__listenRemove(this, n3.events.propertyRemove)); + }, types: [{ id: "stack", model: V, view: at, isType: function(t3) { + if (t3 && t3.type == "stack") + return t3; + } }, { id: "composite", model: _, view: Q, isType: function(t3) { + if (t3 && t3.type == "composite") + return t3; + } }, { id: "file", model: O, view: ht, isType: function(t3) { + if (t3 && t3.type == "file") + return t3; + } }, { id: "color", model: O, view: vt, isType: function(t3) { + if (t3 && t3.type == "color") + return t3; + } }, { id: "select", model: wt, view: Ot, isType: function(t3) { + if (t3 && t3.type == "select") + return t3; + } }, { id: "radio", model: Pt, view: Tt, isType: function(t3) { + if (t3 && t3.type == "radio") + return t3; + } }, { id: "slider", model: Zt, view: Ht, isType: function(t3) { + if (t3 && t3.type == "slider") + return t3; + } }, { id: "integer", model: At, view: dt, isType: function(t3) { + if (t3 && t3.type == "integer") + return t3; + } }, { id: "number", model: At, view: dt, isType: function(t3) { + if (t3 && t3.type == "number") + return t3; + } }, { id: "base", model: O, view: $, isType: function(t3) { + return t3.type = "base", t3; + } }] }); + var zt = ["extend"]; + function Ut(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function Wt(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? Ut(Object(n3), true).forEach(function(e4) { + (0, i.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : Ut(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + function $t(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, v.Z)(t3); + if (e3) { + var i2 = (0, v.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, g.Z)(this, n3); + }; + } + var qt = function(t3) { + (0, p.Z)(n3, t3); + var e3 = $t(n3); + function n3() { + return (0, f.Z)(this, n3), e3.apply(this, arguments); + } + return (0, d.Z)(n3, [{ key: "defaults", value: function() { + return { id: "", name: "", open: true, visible: true, buildProps: "", extendBuilded: 1, properties: [] }; + } }, { key: "initialize", value: function(t4) { + var e4 = this, n4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r3 = n4.em; + this.em = r3; + var i2 = t4 || {}, s2 = this.buildProperties(i2.buildProps), a2 = this.get("name") || "", l2 = []; + !this.get("id") && this.set("id", a2.replace(/ /g, "_").toLowerCase()), l2 = (l2 = s2 ? this.extendProperties(s2) : this.get("properties").map(function(t5) { + return (0, o.isString)(t5) ? e4.buildProperties(t5)[0] : t5; + }).filter(Boolean)).map(function(t5) { + return e4.checkExtend(t5); + }); + var c2 = new Bt(l2, { em: r3 }); + c2.sector = this, this.set("properties", c2); + } }, { key: "getId", value: function() { + return this.get("id"); + } }, { key: "getName", value: function() { + var t4, e4 = this.getId(); + return ((t4 = this.em) === null || t4 === void 0 ? void 0 : t4.t("styleManager.sectors.".concat(e4))) || this.get("name"); + } }, { key: "setName", value: function(t4) { + return this.set("name", t4); + } }, { key: "isOpen", value: function() { + return !!this.get("open"); + } }, { key: "setOpen", value: function(t4) { + return this.set("open", t4); + } }, { key: "isVisible", value: function() { + return !!this.get("visible"); + } }, { key: "getProperties", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e4 = this.get("properties"), n4 = e4.models ? (0, r2.Z)(e4.models) : e4; + return n4.filter(function(e5) { + var n5 = true; + (t4.withValue && (n5 = e5.hasValue({ noParent: true })), t4.withParentValue) && (n5 = !e5.hasValue({ noParent: true }) && e5.hasValue()); + return n5; + }); + } }, { key: "getProperty", value: function(t4) { + return this.getProperties().filter(function(e4) { + return e4.get("id") === t4; + })[0] || null; + } }, { key: "addProperty", value: function(t4, e4) { + return this.get("properties").add(this.checkExtend(t4), e4); + } }, { key: "extendProperties", value: function(t4, e4, n4) { + for (var r3 = t4.length, i2 = e4 || this.get("properties"), s2 = this.get("extendBuilded"), a2 = [], l2 = 0, c2 = i2.length; l2 < c2; l2++) { + for (var u2 = i2[l2], h2 = 0, f2 = 0; f2 < r3; f2++) { + var d2 = t4[f2]; + if (u2.property != d2.property && u2.id != d2.property) + ; + else { + var p2 = u2.properties; + p2 && p2.length && (u2.properties = this.extendProperties(d2.properties || [], p2, 1)), t4[f2] = s2 ? (0, o.extend)(d2, u2) : u2, a2[f2] = t4[f2], h2 = 1; + } + } + h2 || (t4.push(u2), a2.push(u2)); + } + return n4 ? a2.filter(function(t5) { + return t5; + }) : t4; + } }, { key: "checkExtend", value: function(t4) { + var e4 = ((0, o.isString)(t4) ? { extend: t4 } : t4) || {}, n4 = e4.extend, r3 = (0, h.Z)(e4, zt); + return n4 ? Wt(Wt({}, this.buildProperties([n4])[0] || {}), r3) : t4; + } }, { key: "buildProperties", value: function(t4) { + var e4, n4 = t4 || []; + if (!n4.length) + return []; + var r3 = (e4 = this.em) === null || e4 === void 0 ? void 0 : e4.get("StyleManager").builtIn; + return r3 == null ? void 0 : r3.build(n4); + } }]), n3; + }(l.Model); + function Gt(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function Kt(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? Gt(Object(n3), true).forEach(function(e4) { + (0, i.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : Gt(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + function Yt(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, v.Z)(t3); + if (e3) { + var i2 = (0, v.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, g.Z)(this, n3); + }; + } + var Jt = function(t3) { + (0, p.Z)(n3, t3); + var e3 = Yt(n3); + function n3() { + return (0, f.Z)(this, n3), e3.apply(this, arguments); + } + return (0, d.Z)(n3, [{ key: "initialize", value: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n4 = e4.module, r3 = e4.em; + this.em = r3, this.module = n4, this.listenTo(this, "reset", this.onReset); + } }, { key: "model", value: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n4 = e4.collection.em; + return new qt(t4, Kt(Kt({}, e4), {}, { em: n4 })); + } }, { key: "onReset", value: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n4 = e4.previousModels || []; + n4.forEach(function(t5) { + return t5.get("properties").reset(); + }); + } }]), n3; + }(l.Collection), Xt = n2(885), Qt = ["extend"]; + function te(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function ee(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? te(Object(n3), true).forEach(function(e4) { + (0, i.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : te(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + var ne, re = function(t3) { + return t3.map(function(t4) { + return { id: t4 }; + }); + }, ie = function() { + function t3() { + (0, f.Z)(this, t3), this.typeNumber = "number", this.typeColor = "color", this.typeRadio = "radio", this.typeSelect = "select", this.typeFile = "file", this.typeSlider = "slider", this.typeComposite = "composite", this.typeStack = "stack", this.unitsSize = ["px", "%", "em", "rem", "vh", "vw"], this.unitsSizeNoPerc = ["px", "em", "rem", "vh", "vw"], this.unitsTime = ["s", "ms"], this.unitsAngle = ["deg", "rad", "grad"], this.fixedValues = ["initial", "inherit", "auto"]; + var e3 = ", sans-serif", n3 = ["flex-start", "flex-end", "center"], i2 = [].concat(n3, ["baseline", "stretch"]); + this.optsBgSize = re(["auto", "cover", "contain"]), this.optsBgAttach = re(["scroll", "fixed", "local"]), this.optsBgRepeat = re(["repeat", "repeat-x", "repeat-y", "no-repeat"]), this.optsWrap = re(["nowrap", "wrap", "wrap-reverse"]), this.optsOverflow = re(["visible", "hidden", "scroll", "auto"]), this.optsDir = re(["row", "row-reverse", "column", "column-reverse"]), this.opstDisplay = re(["block", "inline", "inline-block", "flex", "none"]), this.optsTransitFn = re(["linear", "ease", "ease-in", "ease-out", "ease-in-out"]), this.optsCursor = re(["auto", "pointer", "copy", "crosshair", "grab", "grabbing", "help", "move", "text"]), this.optsFloat = re(["none", "left", "right"]), this.optsPos = re(["static", "relative", "absolute", "fixed"]), this.optsTextAlign = re(["left", "center", "right", "justify"]), this.optsFlexAlign = re(i2), this.optsJustCont = re([].concat(n3, ["space-between", "space-around", "space-evenly"])), this.optsAlignCont = re([].concat(n3, ["space-between", "space-around", "stretch"])), this.optsAlignSelf = re(["auto"].concat((0, r2.Z)(i2))), this.optsTransitProp = re(["all", "width", "height", "background-color", "transform", "box-shadow", "opacity"]), this.optsBorderStyle = re(["none", "solid", "dotted", "dashed", "double", "groove", "ridge", "inset", "outset"]), this.optsBgPos = re(["left top", "left center", "left bottom", "right top", "right center", "right bottom", "center top", "center center", "center bottom"]), this.optsWeight = [{ id: "100", label: "Thin" }, { id: "200", label: "Extra-Light" }, { id: "300", label: "Light" }, { id: "400", label: "Normal" }, { id: "500", label: "Medium" }, { id: "600", label: "Semi-Bold" }, { id: "700", label: "Bold" }, { id: "800", label: "Extra-Bold" }, { id: "900", label: "Ultra-Bold" }], this.optsShadowType = [{ id: "", label: "Outside" }, { id: "inset", label: "Inside" }], this.optsFonts = ["Arial, Helvetica" + e3, "Arial Black, Gadget" + e3, "Brush Script MT" + e3, "Comic Sans MS, cursive" + e3, "Courier New, Courier, monospace", "Georgia, serif", "Helvetica" + e3, "Impact, Charcoal" + e3, "Lucida Sans Unicode, Lucida Grande" + e3, "Tahoma, Geneva" + e3, "Times New Roman, Times, serif", "Trebuchet MS, Helvetica" + e3, "Verdana, Geneva" + e3].map(function(t4) { + return { id: t4, label: t4.split(",")[0] }; + }), this.fixedFontSizes = ["medium", "xx-small", "x-small", "small", "large", "x-large", "xx-large", "smaller", "larger", "length", "initial", "inherit"], this.fixedLetSpace = ["normal", "initial", "inherit"], this.requireFlex = { display: ["flex"] }, this.init(); + } + return (0, d.Z)(t3, [{ key: "__sub", value: function(t4) { + var e3 = this; + return function() { + return t4.map(function(t5) { + if ((0, o.isString)(t5)) + return e3.get(t5); + var n3 = t5.extend, r3 = (0, h.Z)(t5, Qt); + return ee(ee({}, e3.get(n3)), r3); + }); + }; + } }, { key: "init", value: function() { + var t4 = this, e3 = this.fixedValues, n3 = this.requireFlex, r3 = this.typeNumber; + return this.props = {}, [["text-shadow-h", { type: r3, default: "0", units: this.unitsSizeNoPerc }], ["top", { default: "auto", units: this.unitsSize, fixedValues: e3 }, "text-shadow-h"], ["right", {}, "top"], ["bottom", {}, "top"], ["left", {}, "top"], ["margin-top", { default: "0" }, "top"], ["margin-right", {}, "margin-top"], ["margin-bottom", {}, "margin-top"], ["margin-left", {}, "margin-top"], ["padding-top", { min: 0 }, "margin-top"], ["padding-right", {}, "padding-top"], ["padding-bottom", {}, "padding-top"], ["padding-left", {}, "padding-top"], ["width", { min: 0 }, "top"], ["min-width", {}, "width"], ["max-width", {}, "width"], ["height", {}, "width"], ["min-height", {}, "width"], ["max-height", {}, "width"], ["flex-basis", { requiresParent: n3 }, "width"], ["font-size", { default: "medium", fixedValues: this.fixedFontSizes }, "width"], ["letter-spacing", { default: "normal", fixedValues: this.fixedLetSpace }, "top"], ["line-height", {}, "letter-spacing"], ["text-shadow-v", {}, "text-shadow-h"], ["text-shadow-blur", { min: 0 }, "text-shadow-h"], ["border-radius-c", { property: "border-radius", fixedValues: void 0 }, "padding-top"], ["border-top-left-radius", {}, "border-radius-c"], ["border-top-right-radius", {}, "border-radius-c"], ["border-bottom-left-radius", {}, "border-radius-c"], ["border-bottom-right-radius", {}, "border-radius-c"], ["border-width", { units: this.unitsSizeNoPerc }, "border-radius-c"], ["box-shadow-h", {}, "text-shadow-h"], ["box-shadow-v", {}, "text-shadow-h"], ["box-shadow-blur", { default: "5px" }, "text-shadow-blur"], ["box-shadow-spread", {}, "text-shadow-h"], ["transition-duration", { default: "2s", units: this.unitsTime }, "border-radius-c"], ["perspective", {}, "border-radius-c"], ["transform-rotate-x", { functionName: "rotateX", units: this.unitsAngle, default: "0", type: r3 }], ["transform-rotate-y", { functionName: "rotateY" }, "transform-rotate-x"], ["transform-rotate-z", { functionName: "rotateZ" }, "transform-rotate-x"], ["transform-scale-x", { default: "1", functionName: "scaleX", units: void 0 }, "transform-rotate-x"], ["transform-scale-y", { functionName: "scaleY" }, "transform-scale-x"], ["transform-scale-z", { functionName: "scaleZ" }, "transform-scale-x"], ["order", { type: r3, default: "0", requiresParent: n3 }], ["flex-grow", {}, "order"], ["flex-shrink", { default: "1" }, "order"], ["float", { type: this.typeRadio, default: "none", options: this.optsFloat }], ["position", { default: "static", options: this.optsPos }, "float"], ["text-align", { default: "left", options: this.optsTextAlign }, "float"], ["color", { type: this.typeColor, default: "black" }], ["text-shadow-color", {}, "color"], ["border-color", {}, "color"], ["box-shadow-color", {}, "color"], ["background-color", { default: "none" }, "color"], ["background-image", { type: this.typeFile, functionName: "url", default: "none", full: true }], ["opacity", { type: this.typeSlider, default: "1", min: 0, max: 1, step: 0.01 }], ["display", { type: this.typeSelect, default: "block", options: this.opstDisplay }], ["flex-direction", { default: "row", options: this.optsDir, requires: n3 }, "display"], ["flex-wrap", { default: "nowrap", options: this.optsWrap }, "flex-direction"], ["justify-content", { default: "flex-start", options: this.optsJustCont }, "flex-wrap"], ["align-items", { default: "stretch", options: this.optsFlexAlign }, "flex-wrap"], ["align-content", { options: this.optsAlignCont }, "align-items"], ["align-self", { default: "auto", options: this.optsAlignSelf, requiresParent: n3 }, "display"], ["font-family", { default: "Arial, Helvetica, sans-serif", options: this.optsFonts }, "display"], ["font-weight", { default: "400", options: this.optsWeight }, "display"], ["border-style", { default: "solid", options: this.optsBorderStyle }, "display"], ["box-shadow-type", { default: "", options: this.optsShadowType }, "display"], ["background-repeat", { default: "repeat", options: this.optsBgRepeat }, "display"], ["background-position", { default: "left top", options: this.optsBgPos }, "display"], ["background-attachment", { default: "scroll", options: this.optsBgAttach }, "display"], ["background-size", { default: "auto", options: this.optsBgSize }, "display"], ["transition-property", { default: "width", options: this.optsTransitProp }, "display"], ["transition-timing-function", { default: "ease", options: this.optsTransitFn }, "display"], ["cursor", { default: "auto", options: this.optsCursor }, "display"], ["overflow", { default: "visible", options: this.optsOverflow }, "display"], ["overflow-x", {}, "overflow"], ["overflow-y", {}, "overflow"], ["margin", { type: this.typeComposite, properties: this.__sub([{ extend: "margin-top", id: "margin-top-sub" }, { extend: "margin-right", id: "margin-right-sub" }, { extend: "margin-bottom", id: "margin-bottom-sub" }, { extend: "margin-left", id: "margin-left-sub" }]) }], ["padding", { properties: this.__sub([{ extend: "padding-top", id: "padding-top-sub" }, { extend: "padding-right", id: "padding-right-sub" }, { extend: "padding-bottom", id: "padding-bottom-sub" }, { extend: "padding-left", id: "padding-left-sub" }]) }, "margin"], ["border", { properties: this.__sub([{ extend: "border-width", id: "border-width-sub" }, { extend: "border-style", id: "border-style-sub" }, { extend: "border-color", id: "border-color-sub" }]) }, "margin"], ["border-radius", { properties: this.__sub([{ extend: "border-top-left-radius", id: "border-top-left-radius-sub" }, { extend: "border-top-right-radius", id: "border-top-right-radius-sub" }, { extend: "border-bottom-right-radius", id: "border-bottom-right-radius-sub" }, { extend: "border-bottom-left-radius", id: "border-bottom-left-radius-sub" }]) }, "margin"], ["transform", { properties: this.__sub(["transform-rotate-x", "transform-rotate-y", "transform-rotate-z", "transform-scale-x", "transform-scale-y", "transform-scale-z"]) }, "margin"], ["transition", { type: this.typeStack, properties: this.__sub([{ extend: "transition-property", id: "transition-property-sub" }, { extend: "transition-duration", id: "transition-duration-sub" }, { extend: "transition-timing-function", id: "transition-timing-function-sub" }]) }], ["box-shadow", { preview: true, layerLabel: function(t5, e4) { + var n4 = e4.values, r4 = n4["box-shadow-h"], i2 = n4["box-shadow-v"], o2 = n4["box-shadow-blur"], s2 = n4["box-shadow-spread"]; + return "".concat(r4, " ").concat(i2, " ").concat(o2, " ").concat(s2); + }, properties: this.__sub(["box-shadow-h", "box-shadow-v", "box-shadow-blur", "box-shadow-spread", "box-shadow-color", "box-shadow-type"]) }, "transition"], ["text-shadow", { default: "none", layerLabel: function(t5, e4) { + var n4 = e4.values, r4 = n4["text-shadow-h"], i2 = n4["text-shadow-v"], o2 = n4["text-shadow-blur"]; + return "".concat(r4, " ").concat(i2, " ").concat(o2); + }, properties: this.__sub(["text-shadow-h", "text-shadow-v", "text-shadow-blur", "text-shadow-color"]) }, "box-shadow"], ["background", { detached: true, layerLabel: function(t5, e4) { + var n4 = e4.values, r4 = n4["background-repeat-sub"], i2 = n4["background-position-sub"], o2 = n4["background-attachment-sub"], s2 = n4["background-size-sub"]; + return "".concat(r4, " ").concat(i2, " ").concat(o2, " ").concat(s2); + }, properties: this.__sub([{ extend: "background-image", id: "background-image-sub" }, { extend: "background-repeat", id: "background-repeat-sub" }, { extend: "background-position", id: "background-position-sub" }, { extend: "background-attachment", id: "background-attachment-sub" }, { extend: "background-size", id: "background-size-sub" }]) }, "box-shadow"]].forEach(function(e4) { + var n4 = (0, Xt.Z)(e4, 3), r4 = n4[0], i2 = n4[1], o2 = n4[2]; + t4.add(r4, i2 || {}, { from: o2 }); + }), this; + } }, { key: "add", value: function(t4) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r3 = n3.from || "", i2 = this.props[r3 || t4] || {}, s2 = ee(ee({}, i2), {}, { property: t4 }, e3); + return s2.properties && (0, o.isFunction)(s2.properties) && (s2.properties = s2.properties()), this.props[t4] = s2, s2; + } }, { key: "get", value: function(t4) { + return this.props[t4] || null; + } }, { key: "build", value: function(t4) { + var e3 = this, n3 = []; + return ((0, o.isString)(t4) ? [t4] : t4).forEach(function(t5) { + n3.push(e3.get(t5) || { property: t5 }); + }), n3; + } }]), t3; + }(), oe = n2(168), se = n2(1629); + function ae(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, v.Z)(t3); + if (e3) { + var i2 = (0, v.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, g.Z)(this, n3); + }; + } + var le = function(t3) { + (0, p.Z)(n3, t3); + var e3 = ae(n3); + function n3() { + return (0, f.Z)(this, n3), e3.apply(this, arguments); + } + return (0, d.Z)(n3, [{ key: "template", value: function(t4) { + var e4, n4 = t4.pfx, r3 = t4.label, i2 = (e4 = this.em) === null || e4 === void 0 ? void 0 : e4.getConfig("icons"), o2 = (i2 == null ? void 0 : i2.caret) || "", s2 = "".concat(n4, "sector-"); + return (0, se.Z)(ne || (ne = (0, oe.Z)(['\n <div class="', 'title" data-sector-title>\n <div class="', 'caret">$', '</div>\n <div class="', 'label">', "</div>\n </div>\n "])), s2, s2, o2, s2, r3); + } }, { key: "events", value: function() { + return { "click [data-sector-title]": "toggle" }; + } }, { key: "initialize", value: function(t4) { + var e4 = t4.config || {}, n4 = this.model, r3 = e4.em; + this.config = e4, this.em = r3, this.pfx = e4.stylePrefix || "", this.listenTo(n4, "destroy remove", this.remove), this.listenTo(n4, "change:open", this.updateOpen), this.listenTo(n4, "change:visible", this.updateVisibility); + } }, { key: "updateOpen", value: function() { + var t4 = this.$el, e4 = this.model, n4 = this.pfx, r3 = e4.isOpen(); + t4[r3 ? "addClass" : "removeClass"]("".concat(n4, "open")), this.getPropertiesEl().style.display = r3 ? "" : "none"; + } }, { key: "updateVisibility", value: function() { + this.el.style.display = this.model.isVisible() ? "" : "none"; + } }, { key: "getPropertiesEl", value: function() { + var t4 = this.$el, e4 = this.pfx; + return t4.find(".".concat(e4, "properties")).get(0); + } }, { key: "toggle", value: function() { + var t4 = this.model; + t4.setOpen(!t4.get("open")); + } }, { key: "renderProperties", value: function() { + var t4 = this.model, e4 = this.config, n4 = t4.get("properties"); + if (n4) { + var r3 = new K({ collection: n4, config: e4 }); + this.$el.append(r3.render().el); + } + } }, { key: "render", value: function() { + var t4 = this.pfx, e4 = this.model, n4 = this.$el, r3 = e4.getId(), i2 = e4.getName(); + return n4.html(this.template({ pfx: t4, label: i2 })), this.renderProperties(), n4.attr("class", "".concat(t4, "sector ").concat(t4, "sector__").concat(r3, " no-select")), this.updateOpen(), this; + } }]), n3; + }(l.View); + function ce(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n3, r3 = (0, v.Z)(t3); + if (e3) { + var i2 = (0, v.Z)(this).constructor; + n3 = Reflect.construct(r3, arguments, i2); + } else + n3 = r3.apply(this, arguments); + return (0, g.Z)(this, n3); + }; + } + var ue = function(t3) { + (0, p.Z)(n3, t3); + var e3 = ce(n3); + function n3() { + return (0, f.Z)(this, n3), e3.apply(this, arguments); + } + return (0, d.Z)(n3, [{ key: "initialize", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e4 = t4.module, n4 = t4.config, r3 = n4 === void 0 ? {} : n4, i2 = this.collection; + this.pfx = r3.stylePrefix || "", this.ppfx = r3.pStylePrefix || "", this.config = r3, this.module = e4, this.listenTo(i2, "add", this.addTo), this.listenTo(i2, "reset", this.render); + } }, { key: "remove", value: function() { + var t4 = this; + l.View.prototype.remove.apply(this, arguments), ["config", "module", "em"].forEach(function(e4) { + return t4[e4] = {}; + }); + } }, { key: "addTo", value: function(t4, e4) { + var n4 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + this.addToCollection(t4, null, n4); + } }, { key: "addToCollection", value: function(t4, e4) { + var n4 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r3 = this.config, i2 = this.el, o2 = e4 || i2, s2 = new le({ model: t4, config: r3 }).render().el; + return (0, q.$Q)(o2, s2, n4.at), s2; + } }, { key: "render", value: function() { + var t4 = this, e4 = this.$el, n4 = this.pfx, r3 = this.ppfx; + e4.empty(); + var i2 = document.createDocumentFragment(); + return this.collection.each(function(e5) { + return t4.addToCollection(e5, i2); + }), e4.append(i2), e4.addClass("".concat(n4, "sectors ").concat(r3, "one-bg ").concat(r3, "two-color")), this; + } }]), n3; + }(l.View); + function he(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function fe(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? he(Object(n3), true).forEach(function(e4) { + (0, i.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : he(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + var de = "style", pe = "".concat(de, ":"), ge = "".concat(pe, "sector"), ve = "".concat(ge, ":add"), me = "".concat(ge, ":remove"), ye = "".concat(ge, ":update"), be = "".concat(pe, "property"), we = "".concat(be, ":add"), xe = "".concat(be, ":remove"), Oe = "".concat(be, ":update"), Ce = "".concat(pe, "layer:select"), ke = "".concat(pe, "target"), Se = "".concat(pe, "custom"), Pe = function(t3) { + return t3 || t3 === 0; + }; + const _e = function() { + var t3, e3, n3; + return fe(fe({}, a.Z), {}, { Sector: qt, events: { all: de, sectorAdd: ve, sectorRemove: me, sectorUpdate: ye, propertyAdd: we, propertyRemove: xe, propertyUpdate: Oe, layerSelect: Ce, target: ke, custom: Se }, name: "StyleManager", init: function() { + var n4 = this, r3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + (0, o.bindAll)(this, "__clearStateTarget"), this.__initConfig(u, r3); + var i2 = this.config, s2 = i2.em, a2 = i2.pStylePrefix; + a2 && (i2.stylePrefix = a2 + i2.stylePrefix), this.builtIn = new ie(), t3 = new Bt([], { em: s2, module: this }), e3 = new Jt([], fe(fe({}, i2), {}, { module: this })); + var c2 = new l.Model({ targets: [] }); + this.model = c2, this.__listenAdd(e3, ve), this.__listenRemove(e3, me), this.__listenUpdate(e3, ye); + var h2 = "component:toggled component:update:classes change:state change:device frame:resized selector:type", f2 = (0, o.debounce)(function() { + return n4.__upSel(); + }); + c2.listenTo(s2, h2, f2), c2.listenTo(s2, "component:toggled", this.__clearStateTarget); + var d2 = (0, o.debounce)(function() { + n4.__upProps(), n4.__trgCustom(); + }); + c2.listenTo(s2, "styleable:change undo redo", d2); + var p2 = (0, o.debounce)(function() { + return n4.__trgCustom(); + }); + return c2.listenTo(s2, "".concat(Ce, " ").concat(ke), p2), c2.on("change:lastTarget", function() { + return s2.trigger(ke, n4.getSelected()); + }), this; + }, __upSel: function() { + this.select(this.em.getSelectedAll()); + }, __trgCustom: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + this.__ctn = this.__ctn || t4.container, this.em.trigger(this.events.custom, { container: this.__ctn }); + }, __trgEv: function(t4) { + for (var e4, n4 = arguments.length, r3 = new Array(n4 > 1 ? n4 - 1 : 0), i2 = 1; i2 < n4; i2++) + r3[i2 - 1] = arguments[i2]; + (e4 = this.em).trigger.apply(e4, [t4].concat(r3)); + }, __clearStateTarget: function() { + var t4 = this, e4 = this.em, n4 = this.__getStateTarget(); + n4 && (e4 == null || e4.skip(function() { + e4.get("CssComposer").remove(n4), t4.model.set({ stateTarget: null }); + })); + }, onLoad: function() { + e3.add(this.config.sectors, { silent: true }); + }, postRender: function() { + this.__appendTo(); + }, addSector: function(t4, n4) { + var r3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i2 = this.getSector(t4); + return i2 || (n4.id = t4, i2 = e3.add(n4, r3)), i2; + }, getSector: function(t4) { + var n4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r3 = e3.where({ id: t4 })[0]; + return !r3 && n4.warn && this._logNoSector(t4), r3 || null; + }, getSectors: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n4 = e3 && e3.models ? t4.array ? (0, r2.Z)(e3.models) : e3 : []; + return t4.visible ? n4.filter(function(t5) { + return t5.isVisible(); + }) : n4; + }, removeSector: function(t4) { + return this.getSectors().remove(this.getSector(t4, { warn: 1 })); + }, addProperty: function(t4, e4) { + var n4 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r3 = this.getSector(t4, { warn: 1 }), i2 = null; + return r3 && (i2 = r3.addProperty(e4, n4)), i2; + }, getProperty: function(t4, e4) { + var n4, r3 = this.getSector(t4, { warn: 1 }); + return r3 && (n4 = r3.get("properties").filter(function(t5) { + return t5.get("property") === e4 || t5.get("id") === e4; + })[0]), n4 || null; + }, getProperties: function(t4) { + var e4 = null, n4 = this.getSector(t4, { warn: 1 }); + return n4 && (e4 = n4.get("properties")), e4; + }, removeProperty: function(t4, e4) { + var n4 = this.getProperties(t4); + return n4 ? n4.remove(this.getProperty(t4, e4)) : null; + }, select: function(t4) { + var e4 = this, n4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r3 = this.em, i2 = (0, o.isArray)(t4) ? t4 : [t4], a2 = n4.stylable, l2 = r3.get("CssComposer"), c2 = []; + i2.filter(Boolean).forEach(function(t5) { + var e5 = t5; + if ((0, o.isString)(t5)) { + var n5 = l2.getRule(t5) || l2.setRule(t5); + !(0, o.isUndefined)(a2) && n5.set({ stylable: a2 }), e5 = n5; + } + c2.push(e5); + }); + var u2 = n4.component || c2.filter(function(t5) { + return (0, s.isComponent)(t5); + }).reverse()[0]; + c2 = c2.map(function(t5) { + return e4.getModelToStyle(t5); + }); + var h2 = r3.getState(), f2 = c2.slice().reverse()[0], d2 = this.getParentRules(f2, { state: h2, component: u2 }), p2 = this.__getStateTarget(); + return r3.skip(function() { + var t5; + if (h2 && f2 != null && (t5 = f2.getState) !== null && t5 !== void 0 && t5.call(f2)) { + var e5 = f2.getStyle(); + p2 ? p2.setStyle(e5) : p2 = l2.getAll().add({ selectors: "gjs-selected", style: e5, shallow: true, important: true }); + } else + p2 && (l2.remove(p2), p2 = null); + }), this.model.set({ targets: c2, lastTarget: f2, lastTargetParents: d2, stateTarget: p2, component: u2 }), this.__upProps(n4), c2; + }, getSelected: function() { + return this.model.get("lastTarget") || null; + }, getSelectedAll: function() { + return this.model.get("targets"); + }, getSelectedParents: function() { + return this.model.get("lastTargetParents") || []; + }, __getStateTarget: function() { + return this.model.get("stateTarget") || null; + }, addStyleTargets: function(t4, e4) { + this.getSelectedAll().map(function(n5) { + return n5.addStyle(t4, e4); + }); + var n4 = this.getSelected(), r3 = this.__getStateTarget(); + n4 && (r3 == null || r3.setStyle(n4.getStyle(), e4)); + }, getBuiltIn: function(t4) { + return this.builtIn.get(t4); + }, getBuiltInAll: function() { + return this.builtIn.props; + }, addBuiltIn: function(t4, e4) { + return this.builtIn.add(t4, e4); + }, getModelToStyle: function(t4) { + var e4, n4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r3 = this.em, i2 = n4.skipAdd; + if (r3 && (e4 = t4) !== null && e4 !== void 0 && e4.toHTML) { + var o2, s2 = r3.getConfig(), a2 = r3.get("UndoManager"), l2 = r3.get("CssComposer"), c2 = r3.get("SelectorManager"), u2 = c2 ? c2.getConfig() : {}, h2 = s2.devicePreviewMode ? "" : r3.get("state"), f2 = t4.get("classes"), d2 = f2.getStyleable(), p2 = d2.length, g2 = !u2.componentFirst || n4.useClasses, v2 = { noCount: 1 }, m2 = { state: h2, addOpts: v2 }; + if (a2.stop(), p2 && g2) { + var y2 = r3.getCurrentMedia(); + (o2 = l2.get(d2, h2, y2)) || i2 || (o2 = l2.add(d2, h2, y2, {}, v2)); + } else if (s2.avoidInlineStyle) { + var b2 = t4.getId(); + !(o2 = l2.getIdRule(b2, m2)) && !i2 && (o2 = l2.setIdRule(b2, {}, m2)), t4.is("wrapper") && o2.set("wrapper", 1, v2); + } + o2 && (t4 = o2), a2.start(); + } + return t4; + }, getParentRules: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n4 = e4.state, r3 = e4.component, i2 = this.em, s2 = []; + if (i2 && t4) { + var a2 = r3, l2 = i2.get("CssComposer"), c2 = i2.get("CodeManager").getGenerator("css"), u2 = t4.toHTML ? t4 : t4.getComponent(), h2 = { combination: true, array: true }, f2 = [], d2 = [], p2 = []; + u2 ? (f2 = l2.getRules("#".concat(u2.getId())), p2 = (d2 = a2 ? l2.getRules(a2.getSelectors().getFullName(h2)) : []).concat(f2)) : (f2 = a2 ? l2.getRules("#".concat(a2.getId())) : [], d2 = l2.getRules(t4.getSelectors().getFullName(h2)), p2 = f2.concat(d2)); + var g2 = p2.filter(function(t5) { + return (0, o.isUndefined)(n4) ? 1 : t5.get("state") === n4; + }).sort(c2.sortRules).reverse(); + s2 = g2.slice(g2.indexOf(t4) + 1); + } + return s2; + }, addType: function(e4, n4) { + t3.addType(e4, n4); + }, getType: function(e4) { + return t3.getType(e4); + }, getTypes: function() { + return t3.getTypes(); + }, createType: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n4 = e4.model, r3 = n4 === void 0 ? {} : n4, i2 = e4.view, o2 = i2 === void 0 ? {} : i2, s2 = this.config, a2 = this.getType(t4); + if (a2) + return new a2.view(fe({ model: new a2.model(r3), config: s2 }, o2)); + }, render: function() { + var t4 = this.config, r3 = this.em, i2 = n3 && n3.el; + return (n3 = new ue({ el: i2, em: r3, config: t4, collection: e3, module: this })).render().el; + }, _logNoSector: function(t4) { + var e4 = this.em; + e4 && e4.logWarning("'".concat(t4, "' sector not found")); + }, __upProps: function(t4) { + var n4 = this, r3 = this.getSelected(); + if (r3) { + var i2 = this.model.get("component"), o2 = this.getSelectedParents(), s2 = r3.getStyle(), a2 = o2.map(function(t5) { + return { target: t5, style: t5.getStyle() }; + }); + e3.map(function(e4) { + e4.getProperties().map(function(e5) { + n4.__upProp(e5, s2, a2, t4); + }); + }), e3.forEach(function(t5) { + var n5 = t5.getProperties(); + n5.forEach(function(t6) { + var n6 = t6.__checkVisibility({ target: r3, component: i2, sectors: e3 }); + t6.set("visible", n6); + }); + var o3 = n5.some(function(t6) { + return t6.isVisible(); + }); + t5.set("visible", o3); + }); + } + }, __upProp: function(t4, e4, n4, r3) { + var i2 = this, o2 = t4.getName(), s2 = e4[o2], a2 = Pe(s2), l2 = t4.getType() === "stack", c2 = t4.getType() === "composite", u2 = fe(fe({}, r3), {}, { __up: true }), h2 = !c2 && !l2, f2 = l2 ? t4.__getLayersFromStyle(e4) : [], d2 = c2 ? t4.__getPropsFromStyle(e4) : {}, p2 = a2 ? s2 : null, g2 = null; + if (l2 && f2 === null || c2 && d2 === null) { + var v2 = l2 ? "__getLayersFromStyle" : "__getPropsFromStyle", m2 = n4.filter(function(e5) { + return t4[v2](e5.style) !== null; + })[0]; + if (m2) { + p2 = m2.style[o2], g2 = m2.target; + var y2 = t4[v2](m2.style); + l2 ? f2 = y2 : d2 = y2; + } + } else if (!a2) { + p2 = null; + var b2 = n4.filter(function(t5) { + return Pe(t5.style[o2]); + })[0]; + b2 && (p2 = b2.style[o2], g2 = b2.target); + } + if (t4.__setParentTarget(g2), h2 && t4.__getFullValue() !== p2 && t4.upValue(p2, u2), l2 && t4.__setLayers(f2 || []), c2) { + var w2 = t4.getProperties(); + if (t4.isDetached()) { + var x2 = t4.__getPropsFromStyle(e4, { byName: true }) || {}, O2 = n4.map(function(e5) { + return fe(fe({}, e5), {}, { style: t4.__getPropsFromStyle(e5.style, { byName: true }) || {} }); + }); + w2.map(function(t5) { + return i2.__upProp(t5, x2, O2, r3); + }); + } else + t4.__setProperties(d2 || {}, u2), t4.getProperties().map(function(t5) { + return t5.__setParentTarget(g2); + }); + } + }, destroy: function() { + [t3, e3].forEach(function(t4) { + t4.reset(), t4.stopListening(); + }), n3 && n3.remove(), [t3, e3, n3].forEach(function(t4) { + return {}; + }), this.em = {}, this.config = {}, this.builtIn = {}, this.model = {}; + } }); + }; + }, 6388: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => j, evAll: () => _, evCustom: () => E, evPfx: () => T }); + var r2 = n2(4942), i = n2(9050); + const o = { stylePrefix: "trt-", appendTo: "", optionsTarget: [{ value: false }, { value: "_blank" }] }; + var s = n2(6602), a = n2(885), l = n2(2316), c = n2.n(l), u = n2(6183); + function h(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function f(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? h(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : h(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + var d = c().$; + const p = c().View.extend({ events: {}, eventCapture: ["change"], appendInput: 1, attributes: function() { + return this.model.get("attributes"); + }, templateLabel: function() { + var t3 = this.ppfx, e3 = this.getLabel(); + return '<div class="'.concat(t3, 'label" title="').concat(e3, '">').concat(e3, "</div>"); + }, templateInput: function() { + var t3 = this.clsField; + return '<div class="'.concat(t3, '" data-input></div>'); + }, initialize: function() { + var t3 = this, e3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n3 = e3.config, r3 = n3 === void 0 ? {} : n3, i2 = this.model, o2 = this.eventCapture, s2 = i2.target, l2 = i2.attributes.type; + this.config = r3, this.em = r3.em, this.pfx = r3.stylePrefix || "", this.ppfx = r3.pStylePrefix || "", this.target = s2; + var c2 = this.ppfx; + this.clsField = "".concat(c2, "field ").concat(c2, "field-").concat(l2), [["change:value", this.onValueChange], ["remove", this.removeView]].forEach(function(e4) { + var n4 = (0, a.Z)(e4, 2), r4 = n4[0], o3 = n4[1]; + i2.off(r4, o3), t3.listenTo(i2, r4, o3); + }), i2.view = this, this.listenTo(i2, "change:label", this.render), this.listenTo(i2, "change:placeholder", this.rerender), this.events = {}, o2.forEach(function(e4) { + return t3.events[e4] = "onChange"; + }), this.delegateEvents(), this.init(); + }, getClbOpts: function() { + return { component: this.target, trait: this.model, elInput: this.getInputElem() }; + }, removeView: function() { + this.remove(), this.removed(); + }, init: function() { + }, removed: function() { + }, onRender: function() { + }, onUpdate: function() { + }, onEvent: function() { + }, onChange: function(t3) { + var e3 = this.getInputElem(); + e3 && !(0, i.isUndefined)(e3.value) && this.model.set("value", e3.value), this.onEvent(f(f({}, this.getClbOpts()), {}, { event: t3 })); + }, getValueForTarget: function() { + return this.model.get("value"); + }, setInputValue: function(t3) { + var e3 = this.getInputElem(); + e3 && (e3.value = t3); + }, onValueChange: function(t3, e3) { + var n3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + if (n3.fromTarget) + this.setInputValue(t3.get("value")), this.postUpdate(); + else { + var r3 = this.getValueForTarget(); + t3.setTargetValue(r3, n3); + } + }, renderLabel: function() { + var t3 = this.$el, e3 = this.target, n3 = this.getLabel(), r3 = this.templateLabel(e3); + this.createLabel && (r3 = this.createLabel({ label: n3, component: e3, trait: this }) || ""), t3.find("[data-label]").append(r3); + }, getLabel: function() { + var t3 = this.em, e3 = this.model.attributes, n3 = e3.label, r3 = e3.name; + return t3.t("traitManager.traits.labels.".concat(r3)) || (0, u.capitalize)(n3 || r3).replace(/-/g, " "); + }, getComponent: function() { + return this.target; + }, getInputEl: function() { + if (!this.$input) { + var t3 = this.em, e3 = this.model, n3 = e3, r3 = e3.attributes.name, o2 = n3.get("placeholder") || n3.get("default") || "", s2 = n3.get("type") || "text", a2 = n3.get("min"), l2 = n3.get("max"), c2 = this.getModelValue(), u2 = d('<input type="'.concat(s2, '" placeholder="').concat(o2, '">')), h2 = t3.t("traitManager.traits.attributes.".concat(r3)) || {}; + u2.attr(h2), (0, i.isUndefined)(c2) || (n3.set({ value: c2 }, { silent: true }), u2.prop("value", c2)), a2 && u2.prop("min", a2), l2 && u2.prop("max", l2), this.$input = u2; + } + return this.$input.get(0); + }, getInputElem: function() { + var t3 = this.input, e3 = this.$input; + return t3 || e3 && e3.get && e3.get(0) || this.getElInput(); + }, getModelValue: function() { + var t3, e3 = this.model, n3 = this.target, r3 = e3.get("name"); + if (e3.get("changeProp")) + t3 = n3.get(r3); + else { + var o2 = n3.get("attributes"); + t3 = e3.get("value") || o2[r3]; + } + return (0, i.isUndefined)(t3) ? "" : t3; + }, getElInput: function() { + return this.elInput; + }, renderField: function() { + var t3 = this.$el, e3 = this.appendInput, n3 = this.model, r3 = t3.find("[data-input]"), o2 = r3[r3.length - 1], s2 = n3.el; + s2 || (s2 = this.createInput ? this.createInput(this.getClbOpts()) : this.getInputEl()), (0, i.isString)(s2) ? (o2.innerHTML = s2, this.elInput = o2.firstChild) : (e3 ? o2.appendChild(s2) : o2.insertBefore(s2, o2.firstChild), this.elInput = s2), n3.el = this.elInput; + }, hasLabel: function() { + var t3 = this.model.attributes.label; + return !this.noLabel && t3 !== false; + }, rerender: function() { + this.model.el = null, this.render(); + }, postUpdate: function() { + this.onUpdate(this.getClbOpts()); + }, render: function() { + var t3 = this.$el, e3 = this.pfx, n3 = this.ppfx, r3 = this.model.attributes, o2 = r3.type, s2 = r3.id, a2 = this.hasLabel && this.hasLabel(), l2 = "".concat(e3, "trait"); + this.$input = null; + var c2 = '<div class="'.concat(l2, " ").concat(l2, "--").concat(o2, '">\n ').concat(a2 ? '<div class="'.concat(n3, 'label-wrp" data-label></div>') : "", '\n <div class="').concat(n3, "field-wrp ").concat(n3, "field-wrp--").concat(o2, '" data-input>\n ').concat(this.templateInput ? (0, i.isFunction)(this.templateInput) ? this.templateInput(this.getClbOpts()) : this.templateInput : "", "\n </div>\n </div>"); + return t3.empty().append(c2), a2 && this.renderLabel(), this.renderField(), this.el.className = "".concat(l2, "__wrp ").concat(l2, "__wrp-").concat(s2), this.postUpdate(), this.onRender(this.getClbOpts()), this; + } }), g = s.Z.extend({ ns: "Traits", itemView: p, reuseView: 1, initialize: function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e3 = t3.config || {}, n3 = e3.stylePrefix || "", r3 = t3.editor; + this.config = e3, this.em = r3, this.pfx = n3, this.ppfx = e3.pStylePrefix || "", this.className = "".concat(n3, "traits"), this.listenTo(r3, "component:toggled", this.updatedCollection); + }, updatedCollection: function() { + var t3 = this.ppfx, e3 = this.className, n3 = this.em.getSelected(); + this.el.className = "".concat(e3, " ").concat(t3, "one-bg ").concat(t3, "two-color"), this.collection = n3 ? n3.get("traits") : [], this.render(); + } }); + var v = c().$; + const m = p.extend({ init: function() { + this.listenTo(this.model, "change:options", this.rerender); + }, templateInput: function() { + var t3 = this.ppfx, e3 = this.clsField; + return '<div class="'.concat(e3, '">\n <div data-input></div>\n <div class="').concat(t3, 'sel-arrow">\n <div class="').concat(t3, 'd-s-arrow"></div>\n </div>\n </div>'); + }, getInputEl: function() { + if (!this.$input) { + var t3 = this.model, e3 = this.em, n3 = t3.get("name"), r3 = t3.get("options") || [], o2 = [], s2 = "<select>"; + r3.forEach(function(t4) { + var r4, a3, l3, c2 = ""; + (0, i.isString)(t4) ? (r4 = t4, a3 = t4) : (r4 = t4.name || t4.label || t4.value, a3 = "".concat((0, i.isUndefined)(t4.value) ? t4.id : t4.value).replace(/"/g, """), c2 += (l3 = t4.style ? t4.style.replace(/"/g, """) : "") ? ' style="'.concat(l3, '"') : ""); + var u2 = e3.t("traitManager.traits.options.".concat(n3, ".").concat(a3)) || r4; + s2 += '<option value="'.concat(a3, '"').concat(c2, ">").concat(u2, "</option>"), o2.push(a3); + }), s2 += "</select>", this.$input = v(s2); + var a2 = t3.getTargetValue(), l2 = o2.indexOf(a2) >= 0 ? a2 : t3.get("default"); + !(0, i.isUndefined)(l2) && this.$input.val(l2); + } + return this.$input.get(0); + } }), y = p.extend({ appendInput: 0, templateInput: function() { + var t3 = this.ppfx, e3 = this.clsField; + return '<label class="'.concat(e3, '" data-input>\n <i class="').concat(t3, 'chk-icon"></i>\n </label>'); + }, onChange: function() { + var t3 = this.getInputElem().checked; + this.model.set("value", this.getCheckedValue(t3)); + }, getCheckedValue: function(t3) { + var e3 = t3, n3 = this.model.attributes, r3 = n3.valueTrue, o2 = n3.valueFalse; + return e3 && !(0, i.isUndefined)(r3) && (e3 = r3), e3 || (0, i.isUndefined)(o2) || (e3 = o2), e3; + }, getInputEl: function() { + for (var t3 = !this.$input, e3 = arguments.length, n3 = new Array(e3), r3 = 0; r3 < e3; r3++) + n3[r3] = arguments[r3]; + var o2 = p.prototype.getInputEl.apply(this, n3); + if (t3) { + var s2, a2, l2 = this.model, c2 = this.target, u2 = l2.attributes, h2 = (u2.valueTrue, u2.valueFalse), f2 = l2.get("name"); + l2.get("changeProp") ? a2 = s2 = c2.get(f2) : s2 = !(!(a2 = c2.get("attributes")[f2]) && a2 !== ""), (0, i.isUndefined)(h2) || a2 !== h2 || (s2 = false), o2.checked = s2; + } + return o2; + } }); + var b = n2(7610); + const w = p.extend({ getValueForTarget: function() { + var t3 = this.model, e3 = t3.attributes, n3 = e3.value, r3 = e3.unit; + return (0, i.isUndefined)(n3) || n3 === "" ? t3.get("default") : n3 + r3; + }, getInputEl: function() { + if (!this.input) { + var t3 = this.ppfx, e3 = this.model, n3 = this.getModelValue(), r3 = new b.Z({ contClass: "".concat(t3, "field-int"), type: "number", model: e3, ppfx: t3 }); + this.input = r3.render(), this.$input = this.input.inputEl, this.$unit = this.input.unitEl, e3.set("value", n3, { fromTarget: 1 }), this.$input.val(n3), this.input = r3.el; + } + return this.input; + } }); + var x = n2(1511); + const O = p.extend({ templateInput: "", getInputEl: function() { + if (!this.input) { + var t3 = this.model, e3 = this.getModelValue(), n3 = new x.Z({ model: t3, target: this.config.em, contClass: this.ppfx + "field-color", ppfx: this.ppfx }).render(); + n3.setValue(e3, { fromTarget: 1 }), this.input = n3.el; + } + return this.input; + } }), C = p.extend({ eventCapture: ["click button"], templateInput: "", onChange: function() { + this.handleClick(); + }, handleClick: function() { + var t3 = this.model, e3 = this.em, n3 = t3.get("command"); + n3 && ((0, i.isString)(n3) ? e3.get("Commands").run(n3) : n3(e3.get("Editor"), t3)); + }, renderLabel: function() { + this.model.get("label") && p.prototype.renderLabel.apply(this, arguments); + }, getInputEl: function() { + var t3 = this.model, e3 = this.ppfx, n3 = t3.props(), r3 = n3.labelButton, i2 = n3.text, o2 = n3.full, s2 = r3 || i2, a2 = "".concat(e3, "btn"); + return '<button type="button" class="'.concat(a2, "-prim").concat(o2 ? " ".concat(a2, "--full") : "", '">').concat(s2, "</button>"); + } }); + var k = n2(9304); + function S(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function P(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? S(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : S(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + var _ = "trait", T = "".concat(_, ":"), E = "".concat(T, "custom"); + const j = function() { + var t3 = { text: p, number: w, select: m, checkbox: y, color: O, button: C }; + return P(P({}, k.Z), {}, { TraitsView: g, events: { all: _, custom: E }, name: "TraitManager", init: function() { + var e3 = this, n3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + this.__initConfig(o, n3); + var r3 = this.config, s2 = new l.Model(); + this.model = s2; + var a2 = this.em, c2 = r3.pStylePrefix; + this.types = P({}, t3), c2 && (r3.stylePrefix = "".concat(c2).concat(r3.stylePrefix)); + var u2 = (0, i.debounce)(function() { + return e3.__upSel(); + }); + s2.listenTo(a2, "component:toggled", u2); + var h2 = (0, i.debounce)(function() { + return e3.__onUp(); + }); + return s2.listenTo(a2, "trait:update", h2), this; + }, __upSel: function() { + this.select(this.em.getSelected()); + }, __onUp: function() { + this.select(this.getSelected()); + }, select: function(t4) { + var e3 = t4 ? t4.getTraits() : []; + this.model.set({ component: t4, traits: e3 }), this.__trgCustom(); + }, getSelected: function() { + return this.model.get("component") || null; + }, getCurrent: function() { + return this.model.get("traits") || []; + }, __trgCustom: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + this.__ctn = this.__ctn || t4.container, this.em.trigger(this.events.custom, { container: this.__ctn }); + }, postRender: function() { + this.__appendTo(); + }, getTraitsViewer: function() { + return this.view; + }, addType: function(t4, e3) { + var n3 = this.getType("text"); + this.types[t4] = n3.extend(e3); + }, getType: function(t4) { + return this.getTypes()[t4]; + }, getTypes: function() { + return this.types; + }, render: function() { + var t4 = this.view, e3 = this.getConfig(), n3 = t4 && t4.el; + return (t4 = new g({ el: n3, collection: [], editor: e3.em, config: e3 })).itemsView = this.getTypes(), t4.updatedCollection(), this.view = t4, t4.el; + }, destroy: function() { + this.__destroy(); + } }); + }; + }, 8202: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => u }); + var r2 = n2(2982), i = n2(4942), o = n2(3410), s = n2.n(o), a = n2(9050); + function l(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function c(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? l(Object(n3), true).forEach(function(e4) { + (0, i.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : l(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + const u = function() { + var t3, e3, n3, i2, o2 = { maximumStackLength: 500, trackSelection: 1 }, l2 = function(t4) { + return t4.avoidStore || t4.noUndo; + }, u2 = function(t4) { + return Object.keys(t4.changedAttributes()); + }; + return { name: "UndoManager", init: function() { + var h = this, f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + n3 = c(c({}, o2), f), t3 = n3.em, this.em = t3, n3._disable && (n3 = c(c({}, n3), {}, { maximumStackLength: 0 })); + var d = true; + return (e3 = new (s())(c({ track: true, register: [] }, n3))).changeUndoType("change", { condition: function(t4) { + var e4 = t4.get("_undo"); + if (e4) { + var n4 = t4.get("_undoexc"); + if ((0, a.isArray)(n4) && u2(t4).some(function(t5) { + return n4.indexOf(t5) >= 0; + })) + return false; + if ((0, a.isBoolean)(e4)) + return true; + if ((0, a.isArray)(e4) && u2(t4).some(function(t5) { + return e4.indexOf(t5) >= 0; + })) + return true; + } + return false; + }, on: function(t4, e4, n4) { + !i2 && (i2 = t4.previousAttributes()); + var r3 = n4 || e4 || {}; + if (r3.noUndo && setTimeout(function() { + i2 = null; + }), !l2(r3)) { + var o3 = t4.toJSON({ fromUndo: d }), s2 = { object: t4, before: i2, after: o3 }; + if (i2 = null, !(0, a.isEmpty)(o3)) + return s2; + } + } }), e3.changeUndoType("add", { on: function(t4, e4) { + var n4 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + if (!l2(n4) && h.isRegistered(e4)) + return { object: e4, before: void 0, after: t4, options: c(c({}, n4), {}, { fromUndo: d }) }; + } }), e3.changeUndoType("remove", { on: function(t4, e4) { + var n4 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + if (!l2(n4) && h.isRegistered(e4)) + return { object: e4, before: t4, after: void 0, options: c(c({}, n4), {}, { fromUndo: d }) }; + } }), e3.changeUndoType("reset", { undo: function(t4, e4) { + t4.reset(e4, { fromUndo: d }); + }, redo: function(t4, e4, n4) { + t4.reset(n4, { fromUndo: d }); + }, on: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + if (!l2(e4) && h.isRegistered(t4)) + return { object: t4, before: e4.previousModels, after: (0, r2.Z)(t4.models), options: c(c({}, e4), {}, { fromUndo: d }) }; + } }), e3.on("undo redo", function() { + t3.trigger("change:canvasOffset"), t3.getSelectedAll().map(function(t4) { + return t4.trigger("rerender:layer"); + }); + }), ["undo", "redo"].forEach(function(n4) { + return e3.on(n4, function() { + return t3.trigger(n4); + }); + }), this; + }, postLoad: function() { + n3.trackSelection && t3 && this.add(t3.get("selected")); + }, getConfig: function() { + return n3; + }, add: function(t4) { + return e3.register(t4), this; + }, remove: function(t4) { + return e3.unregister(t4), this; + }, removeAll: function() { + return e3.unregisterAll(), this; + }, start: function() { + return e3.startTracking(), this; + }, stop: function() { + return e3.stopTracking(), this; + }, undo: function() { + var n4 = !(arguments.length > 0 && arguments[0] !== void 0) || arguments[0]; + return !t3.isEditing() && e3.undo(n4), this; + }, undoAll: function() { + return e3.undoAll(), this; + }, redo: function() { + var n4 = !(arguments.length > 0 && arguments[0] !== void 0) || arguments[0]; + return !t3.isEditing() && e3.redo(n4), this; + }, redoAll: function() { + return e3.redoAll(), this; + }, hasUndo: function() { + return e3.isAvailable("undo"); + }, hasRedo: function() { + return e3.isAvailable("redo"); + }, isRegistered: function(t4) { + return !!this.getInstance().objectRegistry.isRegistered(t4); + }, getStack: function() { + return e3.stack; + }, getStackGroup: function() { + var t4 = [], e4 = []; + return this.getStack().forEach(function(n4) { + var r3 = n4.get("magicFusionIndex"); + e4.indexOf(r3) < 0 && (e4.push(r3), t4.push(n4)); + }), t4; + }, skip: function(t4) { + this.stop(), t4(), this.start(); + }, getGroupedStack: function() { + var t4 = {}, e4 = this.getStack(); + return e4.forEach(function(e5, n4) { + var r3 = e5.get("magicFusionIndex"), i3 = function(t5, e6) { + var n5 = t5.attributes, r4 = n5.type, i4 = n5.after, o3 = n5.before, s2 = n5.object, a2 = n5.options; + return { index: e6, type: r4, after: i4, before: o3, object: s2, options: a2 === void 0 ? {} : a2 }; + }(e5, n4); + t4[r3] ? t4[r3].push(i3) : t4[r3] = [i3]; + }), Object.keys(t4).map(function(e5) { + var n4 = t4[e5]; + return { index: n4[n4.length - 1].index, actions: n4, labels: (0, a.unique)(n4.reduce(function(t5, e6) { + var n5, r3 = (n5 = e6.options) === null || n5 === void 0 ? void 0 : n5.action; + return r3 && t5.push(r3), t5; + }, [])) }; + }); + }, goToGroup: function(t4) { + var e4 = this; + if (t4) { + var n4 = this.getPointer(), r3 = t4.index - n4; + (0, a.times)(Math.abs(r3), function() { + e4[r3 < 0 ? "undo" : "redo"](false); + }); + } + }, getPointer: function() { + return this.getStack().pointer; + }, clear: function() { + return e3.clear(), this; + }, getInstance: function() { + return e3; + }, destroy: function() { + this.clear().removeAll(), [t3, e3, n3, i2].forEach(function(t4) { + return {}; + }), this.em = {}; + } }; + }; + }, 5610: (t2, e2, n2) => { + "use strict"; + n2.d(e2, { Z: () => u }); + var r2 = n2(4942), i = n2(5671), o = n2(3144), s = n2(9050), a = n2(6183); + function l(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function c(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? l(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : l(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + var u = function() { + function t3() { + var e3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + return (0, i.Z)(this, t3), this.opts = { container: null, onStart: null, onDrag: null, onEnd: null, setPosition: null, getPosition: null, guidesStatic: null, guidesTarget: null, snapOffset: 5, doc: 0, scale: 1 }, (0, s.bindAll)(this, "drag", "stop", "keyHandle", "handleScroll"), this.setOptions(e3), this.delta = { x: 0, y: 0 }, this; + } + return (0, o.Z)(t3, [{ key: "setOptions", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + this.opts = c(c({}, this.opts), t4); + } }, { key: "toggleDrag", value: function(t4) { + var e3 = this.getDocumentEl(), n3 = this.getContainerEl(), r3 = this.getWindowEl(), i2 = t4 ? "on" : "off", o2 = { on: a.on, off: a.off }; + o2[i2](n3, "mousemove dragover", this.drag), o2[i2](e3, "mouseup dragend touchend", this.stop), o2[i2](e3, "keydown", this.keyHandle), o2[i2](r3, "scroll", this.handleScroll); + } }, { key: "handleScroll", value: function() { + var t4 = this.lastScroll, e3 = this.delta, n3 = this.getScrollInfo(), r3 = { x: n3.x - t4.x, y: n3.y - t4.y }; + this.move(e3.x + r3.x, e3.y + r3.y), this.lastScrollDiff = r3; + } }, { key: "start", value: function(t4) { + var e3 = this.opts, n3 = e3.onStart; + this.toggleDrag(1), this.startPointer = this.getPointerPos(t4), this.guidesStatic = (0, s.result)(e3, "guidesStatic") || [], this.guidesTarget = (0, s.result)(e3, "guidesTarget") || [], (0, s.isFunction)(n3) && n3(t4, this), this.startPosition = this.getStartPosition(), this.lastScrollDiff = { x: 0, y: 0 }, this.globScrollDiff = { x: 0, y: 0 }, this.drag(t4); + } }, { key: "drag", value: function(t4) { + var e3 = this, n3 = this.opts, r3 = this.lastScrollDiff, i2 = this.globScrollDiff, o2 = n3.onDrag, a2 = this.startPointer, l2 = this.getPointerPos(t4), u2 = { x: i2.x + r3.x, y: i2.y + r3.y }; + this.globScrollDiff = u2; + var h = { x: l2.x - a2.x + u2.x, y: l2.y - a2.y + u2.y }; + this.lastScrollDiff = { x: 0, y: 0 }; + var f = this.lockedAxis; + (f = t4.shiftKey ? !f && this.detectAxisLock(h.x, h.y) : null) === "x" ? h.x = a2.x : f === "y" && (h.y = a2.y); + var d = function(r4) { + ["x", "y"].forEach(function(t5) { + return r4[t5] = r4[t5] * (0, s.result)(n3, "scale"); + }), e3.delta = r4, e3.move(r4.x, r4.y), (0, s.isFunction)(o2) && o2(t4, e3); + }, p = c({}, h); + if (this.currentPointer = l2, this.lockedAxis = f, this.lastScroll = this.getScrollInfo(), d(h), this.guidesTarget.length) { + var g = this.snapGuides(p), v = g.newDelta, m = g.trgX, y = g.trgY; + (m || y) && d(v); + } + t4.which === 0 && this.stop(t4); + } }, { key: "snapGuides", value: function(t4) { + var e3 = this, n3 = t4, r3 = this.trgX, i2 = this.trgY; + return this.guidesTarget.forEach(function(n4) { + n4.x && e3.trgX || n4.y && e3.trgY || (n4.active = 0, e3.guidesStatic.forEach(function(o2) { + if (!(n4.y && o2.x || n4.x && o2.y)) { + var a2 = n4.y && o2.y, l2 = a2 ? "y" : "x", c2 = n4[l2], u2 = o2[l2], h = t4[l2], f = a2 ? i2 : r3; + if (e3.isPointIn(c2, u2) && (0, s.isUndefined)(f)) { + var d = h - (c2 - u2); + e3.setGuideLock(n4, d); + } + } + })); + }), r3 = this.trgX, i2 = this.trgY, ["x", "y"].forEach(function(r4) { + var i3 = r4.toUpperCase(), o2 = e3["trg".concat(i3)]; + o2 && !e3.isPointIn(t4[r4], o2.lock) && (e3.setGuideLock(o2, null), o2 = null), o2 && !(0, s.isUndefined)(o2.lock) && (n3[r4] = o2.lock); + }), { newDelta: n3, trgX: this.trgX, trgY: this.trgY }; + } }, { key: "isPointIn", value: function(t4, e3) { + var n3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r3 = n3.offset, i2 = r3 || this.opts.snapOffset; + return t4 >= e3 && t4 <= e3 + i2 || t4 <= e3 && t4 >= e3 - i2; + } }, { key: "setGuideLock", value: function(t4, e3) { + var n3 = (0, s.isUndefined)(t4.x) ? "Y" : "X", r3 = "trg".concat(n3); + return e3 !== null ? (t4.active = 1, t4.lock = e3, this[r3] = t4) : (delete t4.active, delete t4.lock, delete this[r3]), t4; + } }, { key: "stop", value: function(t4) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n3 = this.delta, r3 = e3.cancel, i2 = r3 ? 0 : n3.x, o2 = r3 ? 0 : n3.y; + this.toggleDrag(), this.lockedAxis = null, this.move(i2, o2, 1); + var a2 = this.opts.onEnd; + (0, s.isFunction)(a2) && a2(t4, this, { cancelled: r3 }); + } }, { key: "keyHandle", value: function(t4) { + (0, a.isEscKey)(t4) && this.stop(t4, { cancel: 1 }); + } }, { key: "move", value: function(t4, e3, n3) { + var r3 = this.el, i2 = this.opts, o2 = this.startPosition; + if (o2) { + var a2 = i2.setPosition, l2 = o2.x + t4, c2 = o2.y + e3; + this.position = { x: l2, y: c2, end: n3 }, (0, s.isFunction)(a2) && a2(this.position), r3 && (r3.style.left = "".concat(l2, "px"), r3.style.top = "".concat(c2, "px")); + } + } }, { key: "getContainerEl", value: function() { + var t4 = this.opts.container; + return t4 ? [t4] : this.getDocumentEl(); + } }, { key: "getWindowEl", value: function() { + return this.getContainerEl().map(function(t4) { + var e3 = t4.ownerDocument || t4; + return e3.defaultView || e3.parentWindow; + }); + } }, { key: "getDocumentEl", value: function(t4) { + var e3 = this.opts.doc; + if (t4 = t4 || this.el, !this.docs) { + var n3 = [document]; + t4 && n3.push(t4.ownerDocument), e3 && n3.push(e3), this.docs = n3; + } + return this.docs; + } }, { key: "getPointerPos", value: function(t4) { + var e3 = this.opts.getPointerPosition, n3 = (0, a.getPointerEvent)(t4); + return e3 ? e3(t4) : { x: n3.clientX, y: n3.clientY }; + } }, { key: "getStartPosition", value: function() { + var t4 = this.el, e3 = this.opts.getPosition, n3 = { x: 0, y: 0 }; + return (0, s.isFunction)(e3) ? n3 = e3() : t4 && (n3 = { x: parseFloat(t4.style.left), y: parseFloat(t4.style.top) }), n3; + } }, { key: "getScrollInfo", value: function() { + var t4 = this.opts.doc, e3 = t4 && t4.body; + return { y: e3 ? e3.scrollTop : 0, x: e3 ? e3.scrollLeft : 0 }; + } }, { key: "detectAxisLock", value: function(t4, e3) { + var n3 = t4, r3 = e3, i2 = Math.abs(n3), o2 = Math.abs(r3); + return r3 >= i2 || r3 <= -i2 ? "x" : n3 > o2 || n3 < -o2 ? "y" : void 0; + } }]), t3; + }(); + }, 2579: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => pt }); + var r2 = typeof document != "undefined" ? document : null, i = typeof window != "undefined" ? window : null, o = Array.prototype, s = o.filter, a = o.indexOf, l = o.map, c = o.push, u = o.reverse, h = o.slice, f = o.splice, d = /^#[\w-]*$/, p = /^\.[\w-]*$/, g = /<.+>/, v = /^\w+$/; + function m(t3, e3) { + return e3 === void 0 && (e3 = r2), p.test(t3) ? e3.getElementsByClassName(t3.slice(1)) : v.test(t3) ? e3.getElementsByTagName(t3) : e3.querySelectorAll(t3); + } + function y(t3, e3) { + if (e3 === void 0 && (e3 = r2), t3) { + if (t3.__cash) + return t3; + var n3 = t3; + if (T(t3)) { + if (e3.__cash && (e3 = e3[0]), !(n3 = d.test(t3) ? e3.getElementById(t3.slice(1)) : g.test(t3) ? ht(t3) : m(t3, e3))) + return; + } else if (_(t3)) + return this.ready(t3); + (n3.nodeType || n3 === i) && (n3 = [n3]), this.length = n3.length; + for (var o2 = 0, s2 = this.length; o2 < s2; o2++) + this[o2] = n3[o2]; + } + } + function b(t3, e3) { + return new y(t3, e3); + } + var w = b.fn = b.prototype = y.prototype = { constructor: b, __cash: true, length: 0, splice: f }; + w.get = function(t3) { + return t3 === void 0 ? h.call(this) : this[t3 < 0 ? t3 + this.length : t3]; + }, w.eq = function(t3) { + return b(this.get(t3)); + }, w.first = function() { + return this.eq(0); + }, w.last = function() { + return this.eq(-1); + }, w.map = function(t3) { + return b(l.call(this, function(e3, n3) { + return t3.call(e3, n3, e3); + })); + }, w.slice = function() { + return b(h.apply(this, arguments)); + }; + var x = /(?:^\w|[A-Z]|\b\w)/g, O = /[\s-_]+/g; + function C(t3) { + return t3.replace(x, function(t4, e3) { + return t4[e3 ? "toUpperCase" : "toLowerCase"](); + }).replace(O, ""); + } + function k(t3, e3) { + for (var n3 = 0, r3 = t3.length; n3 < r3 && e3.call(t3[n3], t3[n3], n3, t3) !== false; n3++) + ; + } + b.camelCase = C, b.each = k, w.each = function(t3) { + return k(this, function(e3, n3) { + return t3.call(e3, n3, e3); + }), this; + }, w.removeProp = function(t3) { + return this.each(function(e3, n3) { + delete n3[t3]; + }); + }, b.extend = w.extend = function(t3) { + t3 === void 0 && (t3 = this); + for (var e3 = arguments, n3 = e3.length, r3 = n3 < 2 ? 0 : 1; r3 < n3; r3++) + for (var i2 in e3[r3]) + t3[i2] = e3[r3][i2]; + return t3; + }; + var S = 1; + function P(t3, e3) { + var n3 = t3 && (t3.matches || t3.webkitMatchesSelector || t3.mozMatchesSelector || t3.msMatchesSelector || t3.oMatchesSelector); + return !!n3 && n3.call(t3, e3); + } + function _(t3) { + return typeof t3 == "function"; + } + function T(t3) { + return typeof t3 == "string"; + } + function E(t3) { + return !isNaN(parseFloat(t3)) && isFinite(t3); + } + b.guid = S, b.matches = P, b.isFunction = _, b.isString = T, b.isNumeric = E; + var j = Array.isArray; + function D(t3) { + return T(t3) ? function(e3, n3) { + return P(n3, t3); + } : t3.__cash ? function(e3, n3) { + return t3.is(n3); + } : function(t4, e3, n3) { + return e3 === n3; + }; + } + b.isArray = j, w.prop = function(t3, e3) { + if (t3) { + if (T(t3)) + return arguments.length < 2 ? this[0] && this[0][t3] : this.each(function(n4, r3) { + r3[t3] = e3; + }); + for (var n3 in t3) + this.prop(n3, t3[n3]); + return this; + } + }, w.filter = function(t3) { + if (!t3) + return b(); + var e3 = _(t3) ? t3 : D(t3); + return b(s.call(this, function(n3, r3) { + return e3.call(n3, r3, n3, t3); + })); + }; + var M = /\S+/g; + function A(t3) { + return T(t3) && t3.match(M) || []; + } + function L(t3) { + return t3.filter(function(t4, e3, n3) { + return n3.indexOf(t4) === e3; + }); + } + function R(t3, e3, n3) { + if (t3.nodeType === 1) { + var r3 = i.getComputedStyle(t3, null); + return e3 ? n3 ? r3.getPropertyValue(e3) : r3[e3] : r3; + } + } + function N(t3, e3) { + return parseInt(R(t3, e3), 10) || 0; + } + w.hasClass = function(t3) { + var e3 = A(t3), n3 = false; + return e3.length && this.each(function(t4, r3) { + return !(n3 = r3.classList.contains(e3[0])); + }), n3; + }, w.removeAttr = function(t3) { + var e3 = A(t3); + return e3.length ? this.each(function(t4, n3) { + k(e3, function(t5) { + n3.removeAttribute(t5); + }); + }) : this; + }, w.attr = function(t3, e3) { + if (t3) { + if (T(t3)) { + if (arguments.length < 2) { + if (!this[0]) + return; + var n3 = this[0].getAttribute(t3); + return n3 === null ? void 0 : n3; + } + return e3 === null ? this.removeAttr(t3) : this.each(function(n4, r4) { + r4.setAttribute(t3, e3); + }); + } + for (var r3 in t3) + this.attr(r3, t3[r3]); + return this; + } + }, w.toggleClass = function(t3, e3) { + var n3 = A(t3), r3 = e3 !== void 0; + return n3.length ? this.each(function(t4, i2) { + k(n3, function(t5) { + r3 ? e3 ? i2.classList.add(t5) : i2.classList.remove(t5) : i2.classList.toggle(t5); + }); + }) : this; + }, w.addClass = function(t3) { + return this.toggleClass(t3, true); + }, w.removeClass = function(t3) { + return arguments.length ? this.toggleClass(t3, false) : this.attr("class", ""); + }, b.unique = L, w.add = function(t3, e3) { + return b(L(this.get().concat(b(t3, e3).get()))); + }; + var Z = /^--/; + function I(t3) { + return Z.test(t3); + } + var F = {}, V = r2 && r2.createElement("div"), H = V ? V.style : {}, B = ["webkit", "moz", "ms", "o"]; + function z(t3, e3) { + if (e3 === void 0 && (e3 = I(t3)), e3) + return t3; + if (!F[t3]) { + var n3 = C(t3), r3 = "" + n3.charAt(0).toUpperCase() + n3.slice(1); + k((n3 + " " + B.join(r3 + " ") + r3).split(" "), function(e4) { + if (e4 in H) + return F[t3] = e4, false; + }); + } + return F[t3]; + } + b.prefixedProp = z; + var U = { animationIterationCount: true, columnCount: true, flexGrow: true, flexShrink: true, fontWeight: true, lineHeight: true, opacity: true, order: true, orphans: true, widows: true, zIndex: true }; + function W(t3, e3, n3) { + return n3 === void 0 && (n3 = I(t3)), n3 || U[t3] || !E(e3) ? e3 : e3 + "px"; + } + w.css = function(t3, e3) { + if (T(t3)) { + var n3 = I(t3); + return t3 = z(t3, n3), arguments.length < 2 ? this[0] && R(this[0], t3, n3) : t3 ? (e3 = W(t3, e3, n3), this.each(function(r4, i2) { + i2.nodeType === 1 && (n3 ? i2.style.setProperty(t3, e3) : i2.style[t3] = e3); + })) : this; + } + for (var r3 in t3) + this.css(r3, t3[r3]); + return this; + }; + var $ = "__cashData", q = /^data-(.*)/; + function G(t3) { + return t3.__cashData = t3.__cashData || {}; + } + function K(t3, e3) { + var n3 = G(t3); + if (e3) { + if (!(e3 in n3)) { + var r3 = t3.dataset ? t3.dataset[e3] || t3.dataset[C(e3)] : b(t3).attr("data-" + e3); + if (r3 !== void 0) { + try { + r3 = JSON.parse(r3); + } catch (t4) { + } + n3[e3] = r3; + } + } + return n3[e3]; + } + return n3; + } + function Y(t3, e3) { + return N(t3, "border" + (e3 ? "Left" : "Top") + "Width") + N(t3, "padding" + (e3 ? "Left" : "Top")) + N(t3, "padding" + (e3 ? "Right" : "Bottom")) + N(t3, "border" + (e3 ? "Right" : "Bottom") + "Width"); + } + function J(t3, e3) { + for (var n3 = 0, r3 = e3.length; n3 < r3; n3++) + if (t3.indexOf(e3[n3]) < 0) + return false; + return true; + } + function X(t3, e3, n3) { + k(t3[n3], function(t4) { + t4[0]; + var r3 = t4[1]; + e3.removeEventListener(n3, r3); + }), delete t3[n3]; + } + b.hasData = function(t3) { + return $ in t3; + }, w.data = function(t3, e3) { + var n3 = this; + if (!t3) { + if (!this[0]) + return; + return k(this[0].attributes, function(t4) { + var e4 = t4.name.match(q); + e4 && n3.data(e4[1]); + }), K(this[0]); + } + if (T(t3)) + return e3 === void 0 ? this[0] && K(this[0], t3) : this.each(function(n4, r4) { + return function(t4, e4, n5) { + G(t4)[e4] = n5; + }(r4, t3, e3); + }); + for (var r3 in t3) + this.data(r3, t3[r3]); + return this; + }, w.removeData = function(t3) { + return this.each(function(e3, n3) { + return function(t4, e4) { + e4 === void 0 ? delete t4.__cashData : delete G(t4)[e4]; + }(n3, t3); + }); + }, k(["Width", "Height"], function(t3) { + w["inner" + t3] = function() { + if (this[0]) + return this[0] === i ? i["inner" + t3] : this[0]["client" + t3]; + }; + }), k(["width", "height"], function(t3, e3) { + w[t3] = function(n3) { + return this[0] ? arguments.length ? (n3 = parseInt(n3, 10), this.each(function(r3, i2) { + if (i2.nodeType === 1) { + var o2 = R(i2, "boxSizing"); + i2.style[t3] = W(t3, n3 + (o2 === "border-box" ? Y(i2, !e3) : 0)); + } + })) : this[0] === i ? this[0][C("outer-" + t3)] : this[0].getBoundingClientRect()[t3] - Y(this[0], !e3) : n3 === void 0 ? void 0 : this; + }; + }), k(["Width", "Height"], function(t3, e3) { + w["outer" + t3] = function(n3) { + if (this[0]) + return this[0] === i ? i["outer" + t3] : this[0]["offset" + t3] + (n3 ? N(this[0], "margin" + (e3 ? "Top" : "Left")) + N(this[0], "margin" + (e3 ? "Bottom" : "Right")) : 0); + }; + }); + function Q(t3) { + return t3.__cashEvents = t3.__cashEvents || {}; + } + function tt(t3) { + var e3 = t3.split("."); + return [e3[0], e3.slice(1).sort()]; + } + function et(t3, e3, n3, r3) { + var i2 = Q(t3); + if (e3) { + var o2 = i2[e3]; + if (!o2) + return; + r3 && (r3.guid = r3.guid || S++), i2[e3] = o2.filter(function(i3) { + var o3 = i3[0], s2 = i3[1]; + if (r3 && s2.guid !== r3.guid || !J(o3, n3)) + return true; + t3.removeEventListener(e3, s2); + }); + } else if (n3 && n3.length) + for (e3 in i2) + et(t3, e3, n3, r3); + else + for (e3 in i2) + X(i2, t3, e3); + } + w.off = function(t3, e3) { + var n3 = this; + return t3 === void 0 ? this.each(function(t4, e4) { + return et(e4); + }) : k(A(t3), function(t4) { + var r3 = tt(t4), i2 = r3[0], o2 = r3[1]; + n3.each(function(t5, n4) { + return et(n4, i2, o2, e3); + }); + }), this; + }, w.on = function(t3, e3, n3, r3) { + var i2 = this; + if (!T(t3)) { + for (var o2 in t3) + this.on(o2, e3, t3[o2]); + return this; + } + return _(e3) && (n3 = e3, e3 = false), k(A(t3), function(t4) { + var o3 = tt(t4), s2 = o3[0], a2 = o3[1]; + i2.each(function(t5, i3) { + var o4 = function t6(o5) { + if (!o5.namespace || J(a2, o5.namespace.split("."))) { + var l2 = i3; + if (e3) { + for (var c2 = o5.target; !P(c2, e3); ) { + if (c2 === i3) + return; + if (!(c2 = c2.parentNode)) + return; + } + l2 = c2; + } + o5.namespace = o5.namespace || ""; + var u2 = n3.call(l2, o5, o5.data); + r3 && et(i3, s2, a2, t6), u2 === false && (o5.preventDefault(), o5.stopPropagation()); + } + }; + o4.guid = n3.guid = n3.guid || S++, function(t6, e4, n4, r4) { + r4.guid = r4.guid || S++; + var i4 = Q(t6); + i4[e4] = i4[e4] || [], i4[e4].push([n4, r4]), t6.addEventListener(e4, r4); + }(i3, s2, a2, o4); + }); + }), this; + }, w.one = function(t3, e3, n3) { + return this.on(t3, e3, n3, true); + }, w.ready = function(t3) { + var e3 = function() { + return t3(b); + }; + return r2.readyState !== "loading" ? setTimeout(e3) : r2.addEventListener("DOMContentLoaded", e3), this; + }, w.trigger = function(t3, e3) { + var n3 = t3; + if (T(t3)) { + var i2 = tt(t3), o2 = i2[0], s2 = i2[1]; + (n3 = r2.createEvent("HTMLEvents")).initEvent(o2, true, true), n3.namespace = s2.join("."); + } + return n3.data = e3, this.each(function(t4, e4) { + e4.dispatchEvent(n3); + }); + }; + var nt = /select-one/i, rt = /select-multiple/i; + function it(t3) { + var e3 = t3.type; + return nt.test(e3) ? function(t4) { + return t4.selectedIndex < 0 ? null : t4.options[t4.selectedIndex].value; + }(t3) : rt.test(e3) ? function(t4) { + var e4 = []; + return k(t4.options, function(t5) { + !t5.selected || t5.disabled || t5.parentNode.disabled || e4.push(t5.value); + }), e4; + }(t3) : t3.value; + } + var ot = /%20/g; + var st = /file|reset|submit|button|image/i, at = /radio|checkbox/i; + w.serialize = function() { + var t3 = ""; + return this.each(function(e3, n3) { + k(n3.elements || [n3], function(e4) { + if (!e4.disabled && e4.name && e4.tagName !== "FIELDSET" && !st.test(e4.type) && (!at.test(e4.type) || e4.checked)) { + var n4 = it(e4); + if (n4 !== void 0) + k(j(n4) ? n4 : [n4], function(n5) { + t3 += function(t4, e5) { + return "&" + encodeURIComponent(t4) + "=" + encodeURIComponent(e5).replace(ot, "+"); + }(e4.name, n5); + }); + } + }); + }), t3.substr(1); + }, w.val = function(t3) { + return t3 === void 0 ? this[0] && it(this[0]) : this.each(function(e3, n3) { + var r3 = rt.test(n3.type), i2 = t3 === null ? r3 ? [] : "" : t3; + r3 && j(i2) ? k(n3.options, function(t4) { + t4.selected = i2.indexOf(t4.value) >= 0; + }) : n3.value = i2; + }); + }, w.clone = function() { + return this.map(function(t3, e3) { + return e3.cloneNode(true); + }); + }, w.detach = function() { + return this.each(function(t3, e3) { + e3.parentNode && e3.parentNode.removeChild(e3); + }); + }; + var lt, ct = /^\s*<(\w+)[^>]*>/, ut = /^\s*<(\w+)\s*\/?>(?:<\/\1>)?\s*$/; + function ht(t3) { + if (function() { + if (!lt) { + var t4 = r2.createElement("table"), e4 = r2.createElement("tr"); + lt = { "*": r2.createElement("div"), tr: r2.createElement("tbody"), td: e4, th: e4, thead: t4, tbody: t4, tfoot: t4 }; + } + }(), !T(t3)) + return []; + if (ut.test(t3)) + return [r2.createElement(RegExp.$1)]; + var e3 = ct.test(t3) && RegExp.$1, n3 = lt[e3] || lt["*"]; + return n3.innerHTML = t3, b(n3.childNodes).detach().get(); + } + function ft(t3, e3, n3) { + if (e3 !== void 0) { + var r3 = T(e3); + !r3 && e3.length ? k(e3, function(e4) { + return ft(t3, e4, n3); + }) : k(t3, r3 ? function(t4) { + t4.insertAdjacentHTML(n3 ? "afterbegin" : "beforeend", e3); + } : function(t4, r4) { + return function(t5, e4, n4) { + n4 ? t5.insertBefore(e4, t5.childNodes[0]) : t5.appendChild(e4); + }(t4, r4 ? e3.cloneNode(true) : e3, n3); + }); + } + } + b.parseHTML = ht, w.empty = function() { + var t3 = this[0]; + if (t3) + for (; t3.firstChild; ) + t3.removeChild(t3.firstChild); + return this; + }, w.append = function() { + var t3 = this; + return k(arguments, function(e3) { + ft(t3, e3); + }), this; + }, w.appendTo = function(t3) { + return ft(b(t3), this), this; + }, w.html = function(t3) { + if (t3 === void 0) + return this[0] && this[0].innerHTML; + var e3 = t3.nodeType ? t3[0].outerHTML : t3; + return this.each(function(t4, n3) { + n3.innerHTML = e3; + }); + }, w.insertAfter = function(t3) { + var e3 = this; + return b(t3).each(function(t4, n3) { + var r3 = n3.parentNode; + e3.each(function(e4, i2) { + r3.insertBefore(t4 ? i2.cloneNode(true) : i2, n3.nextSibling); + }); + }), this; + }, w.after = function() { + var t3 = this; + return k(u.apply(arguments), function(e3) { + u.apply(b(e3).slice()).insertAfter(t3); + }), this; + }, w.insertBefore = function(t3) { + var e3 = this; + return b(t3).each(function(t4, n3) { + var r3 = n3.parentNode; + e3.each(function(e4, i2) { + r3.insertBefore(t4 ? i2.cloneNode(true) : i2, n3); + }); + }), this; + }, w.before = function() { + var t3 = this; + return k(arguments, function(e3) { + b(e3).insertBefore(t3); + }), this; + }, w.prepend = function() { + var t3 = this; + return k(arguments, function(e3) { + ft(t3, e3, true); + }), this; + }, w.prependTo = function(t3) { + return ft(b(t3), u.apply(this.slice()), true), this; + }, w.remove = function() { + return this.detach().off(); + }, w.replaceWith = function(t3) { + var e3 = this; + return this.each(function(n3, r3) { + var i2 = r3.parentNode; + if (i2) { + var o2 = n3 ? b(t3).clone() : b(t3); + if (!o2[0]) + return e3.remove(), false; + i2.replaceChild(o2[0], r3), b(o2[0]).after(o2.slice(1)); + } + }); + }, w.replaceAll = function(t3) { + return b(t3).replaceWith(this), this; + }, w.text = function(t3) { + return t3 === void 0 ? this[0] ? this[0].textContent : "" : this.each(function(e3, n3) { + n3.textContent = t3; + }); + }; + var dt = r2 && r2.documentElement; + w.offset = function() { + var t3 = this[0]; + if (t3) { + var e3 = t3.getBoundingClientRect(); + return { top: e3.top + i.pageYOffset - dt.clientTop, left: e3.left + i.pageXOffset - dt.clientLeft }; + } + }, w.offsetParent = function() { + return b(this[0] && this[0].offsetParent); + }, w.position = function() { + var t3 = this[0]; + if (t3) + return { left: t3.offsetLeft, top: t3.offsetTop }; + }, w.children = function(t3) { + var e3 = []; + return this.each(function(t4, n3) { + c.apply(e3, n3.children); + }), e3 = b(L(e3)), t3 ? e3.filter(function(e4, n3) { + return P(n3, t3); + }) : e3; + }, w.contents = function() { + var t3 = []; + return this.each(function(e3, n3) { + c.apply(t3, n3.tagName === "IFRAME" ? [n3.contentDocument] : n3.childNodes); + }), b(t3.length && L(t3)); + }, w.find = function(t3) { + for (var e3 = [], n3 = 0, r3 = this.length; n3 < r3; n3++) { + var i2 = m(t3, this[n3]); + i2.length && c.apply(e3, i2); + } + return b(e3.length && L(e3)); + }, w.has = function(t3) { + var e3 = T(t3) ? function(e4, n3) { + return !!m(t3, n3).length; + } : function(e4, n3) { + return n3.contains(t3); + }; + return this.filter(e3); + }, w.is = function(t3) { + if (!t3 || !this[0]) + return false; + var e3 = D(t3), n3 = false; + return this.each(function(r3, i2) { + return !(n3 = e3(r3, i2, t3)); + }), n3; + }, w.next = function() { + return b(this[0] && this[0].nextElementSibling); + }, w.not = function(t3) { + if (!t3 || !this[0]) + return this; + var e3 = D(t3); + return this.filter(function(n3, r3) { + return !e3(n3, r3, t3); + }); + }, w.parent = function() { + var t3 = []; + return this.each(function(e3, n3) { + n3 && n3.parentNode && t3.push(n3.parentNode); + }), b(L(t3)); + }, w.index = function(t3) { + var e3 = t3 ? b(t3)[0] : this[0], n3 = t3 ? this : b(e3).parent().children(); + return a.call(n3, e3); + }, w.closest = function(t3) { + return t3 && this[0] ? this.is(t3) ? this.filter(t3) : this.parent().closest(t3) : b(); + }, w.parents = function(t3) { + var e3, n3 = []; + return this.each(function(i2, o2) { + for (e3 = o2; e3 && e3.parentNode && e3 !== r2.body.parentNode; ) + e3 = e3.parentNode, (!t3 || t3 && P(e3, t3)) && n3.push(e3); + }), b(L(n3)); + }, w.prev = function() { + return b(this[0] && this[0].previousElementSibling); + }, w.siblings = function() { + var t3 = this[0]; + return this.parent().children().filter(function(e3, n3) { + return n3 !== t3; + }); + }; + const pt = b; + }, 9283: (t2, e2, n2) => { + "use strict"; + n2.d(e2, { G1: () => o, Mx: () => s, L_: () => a, sE: () => l, FW: () => c, pn: () => u, dL: () => h, $Q: () => f, R3: () => d, ut: () => p, rw: () => g, t3: () => v, SJ: () => m }); + var r2 = n2(9050), i = "attributes", o = "transitionend oTransitionEnd transitionend webkitTransitionEnd", s = function(t3) { + return t3 && t3.nodeType === 9; + }, a = function(t3) { + var e3 = t3 && t3.parentNode; + e3 && e3.removeChild(t3); + }, l = function(t3, e3) { + return t3.querySelectorAll(e3); + }, c = function(t3) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + return t3 && t3.setAttribute && (0, r2.each)(e3, function(e4, n3) { + return t3.setAttribute(n3, e4); + }); + }, u = function(t3) { + return t3 && !!(t3.offsetWidth || t3.offsetHeight || t3.getClientRects().length); + }, h = function(t3, e3) { + t3.parentNode.replaceChild(e3, t3); + }, f = function(t3, e3, n3) { + var i2 = t3.childNodes, o2 = i2.length, s2 = (0, r2.isUndefined)(n3) ? o2 : n3; + (0, r2.isString)(e3) && (t3.insertAdjacentHTML("beforeEnd", e3), e3 = t3.lastChild, t3.removeChild(e3)), s2 >= o2 ? t3.appendChild(e3) : t3.insertBefore(e3, i2[s2]); + }, d = function(t3, e3) { + return f(t3, e3); + }, p = function(t3) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", n3 = arguments.length > 2 ? arguments[2] : void 0, i2 = document.createElement(t3); + return e3 && (0, r2.each)(e3, function(t4, e4) { + return i2.setAttribute(e4, t4); + }), n3 && ((0, r2.isString)(n3) ? i2.innerHTML = n3 : i2.appendChild(n3)), i2; + }, g = function(t3) { + return document.createTextNode(t3); + }, v = function(t3, e3) { + var n3, r3 = t3.type; + try { + n3 = new window[e3](r3, t3); + } catch (t4) { + (n3 = document.createEvent(e3)).initEvent(r3, true, true); + } + return n3._parentEvent = t3, r3.indexOf("key") === 0 && (n3.keyCodeVal = t3.keyCode, ["keyCode", "which"].forEach(function(t4) { + Object.defineProperty(n3, t4, { get: function() { + return this.keyCodeVal; + } }); + })), n3; + }, m = function(t3) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], n3 = Array.isArray(e3) ? e3 : [e3]; + n3.forEach(function(e4) { + var n4 = e4.tag || "div", o2 = e4[i] || {}, s2 = document.createElement(n4); + (0, r2.each)(o2, function(t4, e5) { + s2.setAttribute(e5, t4); + }), t3.appendChild(s2); + }); + }; + }, 9661: (t2, e2, n2) => { + "use strict"; + n2.d(e2, { Z: () => m }); + var r2 = n2(1002); + const i = function(t3) { + var e3 = this.constructor; + return this.then(function(n3) { + return e3.resolve(t3()).then(function() { + return n3; + }); + }, function(n3) { + return e3.resolve(t3()).then(function() { + return e3.reject(n3); + }); + }); + }; + const o = function(t3) { + return new this(function(e3, n3) { + if (!t3 || t3.length === void 0) + return n3(new TypeError((0, r2.Z)(t3) + " " + t3 + " is not iterable(cannot read property Symbol(Symbol.iterator))")); + var i2 = Array.prototype.slice.call(t3); + if (i2.length === 0) + return e3([]); + var o2 = i2.length; + function s2(t4, n4) { + if (n4 && ((0, r2.Z)(n4) === "object" || typeof n4 == "function")) { + var a3 = n4.then; + if (typeof a3 == "function") + return void a3.call(n4, function(e4) { + s2(t4, e4); + }, function(n5) { + i2[t4] = { status: "rejected", reason: n5 }, --o2 == 0 && e3(i2); + }); + } + i2[t4] = { status: "fulfilled", value: n4 }, --o2 == 0 && e3(i2); + } + for (var a2 = 0; a2 < i2.length; a2++) + s2(a2, i2[a2]); + }); + }; + var s = setTimeout; + function a(t3) { + return Boolean(t3 && t3.length !== void 0); + } + function l() { + } + function c(t3) { + if (!(this instanceof c)) + throw new TypeError("Promises must be constructed via new"); + if (typeof t3 != "function") + throw new TypeError("not a function"); + this._state = 0, this._handled = false, this._value = void 0, this._deferreds = [], g(t3, this); + } + function u(t3, e3) { + for (; t3._state === 3; ) + t3 = t3._value; + t3._state !== 0 ? (t3._handled = true, c._immediateFn(function() { + var n3 = t3._state === 1 ? e3.onFulfilled : e3.onRejected; + if (n3 !== null) { + var r3; + try { + r3 = n3(t3._value); + } catch (t4) { + return void f(e3.promise, t4); + } + h(e3.promise, r3); + } else + (t3._state === 1 ? h : f)(e3.promise, t3._value); + })) : t3._deferreds.push(e3); + } + function h(t3, e3) { + try { + if (e3 === t3) + throw new TypeError("A promise cannot be resolved with itself."); + if (e3 && ((0, r2.Z)(e3) === "object" || typeof e3 == "function")) { + var n3 = e3.then; + if (e3 instanceof c) + return t3._state = 3, t3._value = e3, void d(t3); + if (typeof n3 == "function") + return void g((i2 = n3, o2 = e3, function() { + i2.apply(o2, arguments); + }), t3); + } + t3._state = 1, t3._value = e3, d(t3); + } catch (e4) { + f(t3, e4); + } + var i2, o2; + } + function f(t3, e3) { + t3._state = 2, t3._value = e3, d(t3); + } + function d(t3) { + t3._state === 2 && t3._deferreds.length === 0 && c._immediateFn(function() { + t3._handled || c._unhandledRejectionFn(t3._value); + }); + for (var e3 = 0, n3 = t3._deferreds.length; e3 < n3; e3++) + u(t3, t3._deferreds[e3]); + t3._deferreds = null; + } + function p(t3, e3, n3) { + this.onFulfilled = typeof t3 == "function" ? t3 : null, this.onRejected = typeof e3 == "function" ? e3 : null, this.promise = n3; + } + function g(t3, e3) { + var n3 = false; + try { + t3(function(t4) { + n3 || (n3 = true, h(e3, t4)); + }, function(t4) { + n3 || (n3 = true, f(e3, t4)); + }); + } catch (t4) { + if (n3) + return; + n3 = true, f(e3, t4); + } + } + c.prototype.catch = function(t3) { + return this.then(null, t3); + }, c.prototype.then = function(t3, e3) { + var n3 = new this.constructor(l); + return u(this, new p(t3, e3, n3)), n3; + }, c.prototype.finally = i, c.all = function(t3) { + return new c(function(e3, n3) { + if (!a(t3)) + return n3(new TypeError("Promise.all accepts an array")); + var i2 = Array.prototype.slice.call(t3); + if (i2.length === 0) + return e3([]); + var o2 = i2.length; + function s2(t4, a2) { + try { + if (a2 && ((0, r2.Z)(a2) === "object" || typeof a2 == "function")) { + var l3 = a2.then; + if (typeof l3 == "function") + return void l3.call(a2, function(e4) { + s2(t4, e4); + }, n3); + } + i2[t4] = a2, --o2 == 0 && e3(i2); + } catch (t5) { + n3(t5); + } + } + for (var l2 = 0; l2 < i2.length; l2++) + s2(l2, i2[l2]); + }); + }, c.allSettled = o, c.resolve = function(t3) { + return t3 && (0, r2.Z)(t3) === "object" && t3.constructor === c ? t3 : new c(function(e3) { + e3(t3); + }); + }, c.reject = function(t3) { + return new c(function(e3, n3) { + n3(t3); + }); + }, c.race = function(t3) { + return new c(function(e3, n3) { + if (!a(t3)) + return n3(new TypeError("Promise.race accepts an array")); + for (var r3 = 0, i2 = t3.length; r3 < i2; r3++) + c.resolve(t3[r3]).then(e3, n3); + }); + }, c._immediateFn = typeof setImmediate == "function" && function(t3) { + setImmediate(t3); + } || function(t3) { + s(t3, 0); + }, c._unhandledRejectionFn = function(t3) { + typeof console != "undefined" && console && console.warn("Possible Unhandled Promise Rejection:", t3); + }; + const v = c; + (0, n2(6183).hasWin)() && (window.Promise = window.Promise || v); + const m = typeof fetch == "function" ? fetch.bind() : function(t3, e3) { + return new v(function(n3, r3) { + var i2 = new XMLHttpRequest(); + for (var o2 in i2.open(e3.method || "get", t3), i2.withCredentials = e3.credentials == "include", e3.headers || {}) + i2.setRequestHeader(o2, e3.headers[o2]); + i2.onload = function(t4) { + return n3({ status: i2.status, statusText: i2.statusText, text: function() { + return v.resolve(i2.responseText); + } }); + }, i2.onerror = r3, i2.upload && e3.onProgress && (i2.upload.onprogress = e3.onProgress), e3.body ? i2.send(e3.body) : i2.send(); + }); + }; + }, 1629: (t2, e2, n2) => { + "use strict"; + n2.d(e2, { Z: () => i }); + var r2 = n2(6183); + function i(t3) { + for (var e3 = arguments.length, n3 = new Array(e3 > 1 ? e3 - 1 : 0), i2 = 1; i2 < e3; i2++) + n3[i2 - 1] = arguments[i2]; + var o = t3.raw; + return o.reduce(function(t4, e4, i3) { + var s = n3[i3 - 1], a = o[i3 - 1]; + return Array.isArray(s) ? s = s.join("") : a && a.slice(-1) === "$" ? t4 = t4.slice(0, -1) : s = (0, r2.escape)(s), t4 + s + e4; + }); + } + }, 6718: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { default: () => k }); + var r2 = n2(4942), i = n2(5610), o = n2(2316), s = n2.n(o), a = n2(9050), l = n2(6183); + function c(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function u(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? c(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : c(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + var h = s().$, f = function() { + }; + const d = s().View.extend({ initialize: function(t3) { + this.opt = t3 || {}, (0, a.bindAll)(this, "startSort", "onMove", "endMove", "rollback", "updateOffset", "moveDragHelper"); + var e3 = t3 || {}; + this.elT = 0, this.elL = 0, this.borderOffset = e3.borderOffset || 10; + var n3 = e3.container; + this.el = typeof n3 == "string" ? document.querySelector(n3) : n3, this.$el = h(this.el), this.containerSel = e3.containerSel || "div", this.itemSel = e3.itemSel || "div", this.draggable = e3.draggable || true, this.nested = e3.nested || 0, this.pfx = e3.pfx || "", this.ppfx = e3.ppfx || "", this.freezeClass = e3.freezeClass || this.pfx + "freezed", this.onStart = e3.onStart || f, this.onEndMove = e3.onEndMove || "", this.customTarget = e3.customTarget, this.onEnd = e3.onEnd, this.direction = e3.direction || "v", this.onMoveClb = e3.onMove || "", this.relative = e3.relative || 0, this.ignoreViewChildren = e3.ignoreViewChildren || 0, this.ignoreModels = e3.ignoreModels || 0, this.plh = e3.placer || "", this.wmargin = e3.wmargin || 0, this.offTop = e3.offsetTop || 0, this.offLeft = e3.offsetLeft || 0, this.document = e3.document || document, this.$document = h(this.document), this.dropContent = null, this.em = e3.em || null, this.dragHelper = null, this.canvasRelative = e3.canvasRelative || 0, this.selectOnEnd = !e3.avoidSelectOnEnd, this.scale = e3.scale, this.activeTextModel = null, this.em && this.em.on && (this.em.on("change:canvasOffset", this.updateOffset), this.updateOffset()); + }, getScale: function() { + return (0, a.result)(this, scale) || 1; + }, getContainerEl: function(t3) { + if (t3 && (this.el = t3), !this.el) { + var e3 = this.opt.container; + this.el = typeof e3 == "string" ? document.querySelector(e3) : e3, this.$el = h(this.el); + } + return this.el; + }, getDocuments: function(t3) { + var e3 = this.em, n3 = t3 ? t3.ownerDocument : e3 && e3.get("Canvas").getBody().ownerDocument, r3 = [document]; + return n3 && r3.push(n3), r3; + }, updateOffset: function() { + var t3, e3 = ((t3 = this.em) === null || t3 === void 0 ? void 0 : t3.get("canvasOffset")) || {}; + this.offTop = e3.top, this.offLeft = e3.left; + }, setDropContent: function(t3) { + this.dropModel = null, this.dropContent = t3; + }, updateTextViewCursorPosition: function(t3) { + var e3 = this.em; + if (e3) { + var n3 = e3.get("Canvas"), r3 = n3.getDocument(), i2 = null; + if (r3.caretRangeFromPoint) { + var o2 = (0, l.getPointerEvent)(t3); + i2 = r3.caretRangeFromPoint(o2.clientX, o2.clientY); + } else + t3.rangeParent && (i2 = r3.createRange()).setStart(t3.rangeParent, t3.rangeOffset); + var s2 = n3.getWindow().getSelection(); + n3.getFrameEl().focus(), s2.removeAllRanges(), i2 && s2.addRange(i2), this.setContentEditable(this.activeTextModel, true); + } + }, setContentEditable: function(t3, e3) { + if (t3) { + var n3 = t3.getEl(); + n3.contentEditable != e3 && (n3.contentEditable = e3); + } + }, toggleSortCursor: function(t3) { + var e3 = this.em, n3 = e3 && e3.get("Canvas"); + n3 && (t3 ? n3.startAutoscroll() : n3.stopAutoscroll()); + }, setDragHelper: function(t3, e3) { + for (var n3 = e3 || "", r3 = t3.cloneNode(1), i2 = t3.getBoundingClientRect(), o2 = getComputedStyle(t3), s2 = "", a2 = 0; a2 < o2.length; a2++) { + var l2 = o2[a2]; + s2 += "".concat(l2, ":").concat(o2.getPropertyValue(l2), ";"); + } + document.body.appendChild(r3), r3.className += " ".concat(this.pfx, "bdrag"), r3.setAttribute("style", s2), this.dragHelper = r3, r3.style.width = "".concat(i2.width, "px"), r3.style.height = "".concat(i2.height, "px"), n3 && this.moveDragHelper(n3), this.em && h(this.em.get("Canvas").getBody().ownerDocument).off("mousemove", this.moveDragHelper).on("mousemove", this.moveDragHelper), h(document).off("mousemove", this.moveDragHelper).on("mousemove", this.moveDragHelper); + }, moveDragHelper: function(t3) { + var e3 = t3.target.ownerDocument; + if (this.dragHelper && e3) { + var n3 = t3.pageY, r3 = t3.pageX, i2 = 0, o2 = 0, s2 = (e3.defaultView || e3.parentWindow).frameElement, a2 = this.dragHelper.style; + if (s2) { + var l2 = s2.getBoundingClientRect(); + i2 = l2.top + document.documentElement.scrollTop, o2 = l2.left + document.documentElement.scrollLeft, n3 = t3.clientY, r3 = t3.clientX; + } + a2.top = n3 + i2 + "px", a2.left = r3 + o2 + "px"; + } + }, matches: function(t3, e3, n3) { + return l.matches.call(t3, e3); + }, closest: function(t3, e3) { + if (t3) { + for (var n3 = t3.parentNode; n3 && n3.nodeType === 1; ) { + if (this.matches(n3, e3)) + return n3; + n3 = n3.parentNode; + } + return null; + } + }, offset: function(t3) { + var e3 = t3.getBoundingClientRect(); + return { top: e3.top + document.body.scrollTop, left: e3.left + document.body.scrollLeft }; + }, createPlaceholder: function() { + var t3 = this.pfx, e3 = document.createElement("div"), n3 = document.createElement("div"); + return e3.className = t3 + "placeholder", e3.style.display = "none", e3.style["pointer-events"] = "none", n3.className = t3 + "placeholder-int", e3.appendChild(n3), e3; + }, startSort: function(t3) { + var e3, n3, r3, i2, o2, s2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a2 = this.em, c2 = this.itemSel, u2 = this.containerSel, h2 = this.plh, f2 = this.getContainerEl(s2.container), d2 = this.getDocuments(t3); + this.dropModel = null, this.target = null, this.prevTarget = null, this.moved = 0, t3 && !this.matches(t3, "".concat(c2, ", ").concat(u2)) && (t3 = this.closest(t3, c2)), this.sourceEl = t3, h2 || (this.plh = this.createPlaceholder(), f2.appendChild(this.plh)), t3 && ((o2 = this.getSourceModel(t3)) && o2.set && o2.set("status", "freezed"), this.srcModel = o2), (0, l.on)(f2, "mousemove dragover", this.onMove), (0, l.on)(d2, "mouseup dragend touchend", this.endMove), (0, l.on)(d2, "keydown", this.rollback), this.onStart({ sorter: this, target: o2, parent: o2 && ((e3 = (n3 = o2).parent) === null || e3 === void 0 ? void 0 : e3.call(n3)), index: o2 && ((r3 = (i2 = o2).index) === null || r3 === void 0 ? void 0 : r3.call(i2)) }), a2 == null || a2.clearSelection(), this.toggleSortCursor(1), a2 == null || a2.trigger("sorter:drag:start", t3, o2); + }, getTargetModel: function(t3) { + var e3 = t3 || this.target; + return h(e3).data("model"); + }, getSourceModel: function(t3) { + var e3 = this, n3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r3 = n3.target, i2 = n3.avoidChildren, o2 = i2 === void 0 ? 1 : i2, s2 = this.em, a2 = this.sourceEl, l2 = t3 || a2, c2 = this.dropModel, f2 = this.dropContent, d2 = function(t4) { + return t4 && r3 && t4.opt && t4.opt.avoidChildren && e3.isTextableActive(t4, r3); + }; + if (f2 && s2) { + if (d2(c2) && (c2 = null), !c2) { + var p2 = s2.get("DomComponents").getComponents(), g2 = { avoidChildren: o2, avoidStore: 1, avoidUpdateStyle: 1 }, v2 = p2.add(f2, u(u({}, g2), {}, { temporary: 1 })); + if (c2 = (c2 = p2.remove(v2, g2)) instanceof Array ? c2[0] : c2, this.dropModel = c2, d2(c2)) + return this.getSourceModel(l2, { target: r3, avoidChildren: 0 }); + } + return c2; + } + return l2 && h(l2).data("model"); + }, selectTargetModel: function(t3, e3) { + if (!(t3 instanceof s().Collection || e3 && e3 === t3)) { + var n3 = this.targetModel; + n3 && n3 !== this.srcModel && n3.set("status", ""), t3 && t3.set && (t3.set("status", "selected-parent"), this.targetModel = t3); + } + }, onMove: function(t3) { + var e3 = t3, n3 = this.em, r3 = this.onMoveClb, i2 = this.plh, o2 = this.customTarget; + this.moved = 1; + var s2 = i2.style.display; + s2 && s2 !== "none" || (i2.style.display = "block"); + var l2 = this.offset(this.el); + this.elT = this.wmargin ? Math.abs(l2.top) : l2.top, this.elL = this.wmargin ? Math.abs(l2.left) : l2.left; + var c2 = t3.pageY - this.elT + this.el.scrollTop, u2 = t3.pageX - this.elL + this.el.scrollLeft; + if (this.canvasRelative && n3) { + var f2 = n3.get("Canvas").getMouseRelativeCanvas(t3, { noScroll: 1 }); + u2 = f2.x, c2 = f2.y; + } + this.rX = u2, this.rY = c2, this.eventMove = t3; + var d2 = this.getSourceModel(), p2 = o2 ? o2({ sorter: this, event: t3 }) : t3.target, g2 = this.dimsFromTarget(p2, u2, c2), v2 = this.target, m2 = v2 && this.getTargetModel(v2); + if (this.selectTargetModel(m2, d2), m2 || (i2.style.display = "none"), v2) { + this.lastDims = g2; + var y2 = this.findPosition(g2, u2, c2); + this.isTextableActive(d2, m2) ? (this.activeTextModel = m2, i2.style.display = "none", this.lastPos = y2, this.updateTextViewCursorPosition(e3)) : (this.disableTextable(), this.activeTextModel = null, this.lastPos && this.lastPos.index == y2.index && this.lastPos.method == y2.method || (this.movePlaceholder(this.plh, g2, y2, this.prevTargetDim), this.$plh || (this.$plh = h(this.plh)), this.canvasRelative || (this.offTop && this.$plh.css("top", "+=" + this.offTop + "px"), this.offLeft && this.$plh.css("left", "+=" + this.offLeft + "px")), this.lastPos = y2)), (0, a.isFunction)(r3) && r3({ event: t3, target: d2, parent: m2, index: y2.index + (y2.method == "after" ? 1 : 0) }), n3 && n3.trigger("sorter:drag", { target: v2, targetModel: m2, sourceModel: d2, dims: g2, pos: y2, x: u2, y: c2 }); + } + }, isTextableActive: function(t3, e3) { + return t3 && t3.get && t3.get("textable") && e3 && e3.is("text"); + }, disableTextable: function() { + var t3 = this.activeTextModel; + t3 && t3.getView().disableEditing(), this.setContentEditable(t3, false); + }, isInFlow: function(t3, e3) { + if (!t3) + return false; + e3 = e3 || document.body; + var n3 = t3; + return n3.offsetHeight, !!this.styleInFlow(n3, e3); + }, styleInFlow: function(t3, e3) { + if (!(0, l.isTextNode)(t3)) { + var n3 = t3.style || {}, r3 = h(t3), i2 = e3 && h(e3); + if (!n3.overflow || n3.overflow === "visible") { + var o2 = r3.css("float"); + if (!(o2 && o2 !== "none" || i2 && i2.css("display") == "flex" && i2.css("flex-direction") !== "column")) { + switch (n3.position) { + case "static": + case "relative": + case "": + break; + default: + return; + } + switch (t3.tagName) { + case "TR": + case "TBODY": + case "THEAD": + case "TFOOT": + return true; + } + switch (r3.css("display")) { + case "block": + case "list-item": + case "table": + case "flex": + return true; + } + } + } + } + }, validTarget: function(t3, e3) { + var n3 = this.getTargetModel(t3), r3 = this.getSourceModel(e3, { target: n3 }), i2 = { valid: true, src: e3 = r3 && r3.view && r3.view.el, srcModel: r3, trg: t3 = n3 && n3.view && n3.view.el, trgModel: n3 }; + if (!e3 || !t3) + return i2.valid = false, i2; + var o2 = r3.get("draggable"); + if ((0, a.isFunction)(o2)) { + var l2 = o2(r3, n3); + i2.dragInfo = l2, i2.draggable = l2, o2 = l2; + } else + o2 = o2 instanceof Array ? o2.join(", ") : o2, i2.dragInfo = o2, o2 = (0, a.isString)(o2) ? this.matches(t3, o2) : o2, i2.draggable = o2; + var c2 = n3.get("droppable"); + if ((0, a.isFunction)(c2)) { + var u2 = c2(r3, n3); + i2.droppable = u2, i2.dropInfo = u2, c2 = u2; + } else + c2 = (c2 = c2 instanceof s().Collection ? 1 : c2) instanceof Array ? c2.join(", ") : c2, i2.dropInfo = c2, c2 = (0, a.isString)(c2) ? this.matches(e3, c2) : c2, c2 = o2 && this.isTextableActive(r3, n3) ? 1 : c2, i2.droppable = c2; + return c2 && o2 || (i2.valid = false), i2; + }, dimsFromTarget: function(t3, e3, n3) { + var r3 = this.em, i2 = []; + if (!t3) + return i2; + if (this.matches(t3, "".concat(this.itemSel, ", ").concat(this.containerSel)) || (t3 = this.closest(t3, this.itemSel)), this.draggable instanceof Array && (t3 = this.closest(t3, this.draggable.join(","))), !t3) + return i2; + if (this.prevTarget && this.prevTarget != t3 && (this.prevTarget = null), !this.prevTarget) { + this.targetP = this.closest(t3, this.containerSel); + var o2 = this.validTarget(t3); + if (r3 && r3.trigger("sorter:drag:validation", o2), !o2.valid && this.targetP) + return this.dimsFromTarget(this.targetP, e3, n3); + this.prevTarget = t3, this.prevTargetDim = this.getDim(t3), this.cacheDimsP = this.getChildrenDim(this.targetP), this.cacheDims = this.getChildrenDim(t3); + } + if (this.prevTarget == t3 && (i2 = this.cacheDims), this.target = this.prevTarget, this.nearBorders(this.prevTargetDim, e3, n3) || !this.nested && !this.cacheDims.length) { + var s2 = this.targetP; + s2 && this.validTarget(s2).valid && (i2 = this.cacheDimsP, this.target = s2); + } + return this.lastPos = null, i2; + }, getTargetFromEl: function(t3) { + var e3, n3 = t3, r3 = this.targetPrev, i2 = this.em, o2 = this.containerSel, s2 = this.itemSel; + if (this.matches(n3, "".concat(s2, ", ").concat(o2)) || (n3 = this.closest(n3, s2)), this.draggable instanceof Array && (n3 = this.closest(n3, this.draggable.join(","))), r3 && r3 != n3 && (this.targetPrev = ""), !this.targetPrev) { + e3 = this.closest(n3, o2); + var a2 = this.validTarget(n3); + if (i2 && i2.trigger("sorter:drag:validation", a2), !a2.valid && e3) + return this.getTargetFromEl(e3); + this.targetPrev = n3; + } + return this.nearElBorders(n3) && (e3 = this.closest(n3, o2)) && this.validTarget(e3).valid && (n3 = e3), n3; + }, nearElBorders: function(t3) { + var e3 = t3.getBoundingClientRect(), n3 = t3.ownerDocument.body, r3 = this.getCurrentPos(), i2 = r3.x, o2 = r3.y, s2 = e3.top + n3.scrollTop, a2 = e3.left + n3.scrollLeft, l2 = e3.width, c2 = e3.height; + if (o2 < s2 + 10 || o2 > s2 + c2 - 10 || i2 < a2 + 10 || i2 > a2 + l2 - 10) + return 1; + }, getCurrentPos: function() { + var t3 = this.eventMove; + return { x: t3.pageX || 0, y: t3.pageY || 0 }; + }, getDim: function(t3) { + var e3, n3, r3, i2, o2 = this.em, s2 = this.canvasRelative, a2 = o2 && o2.get("Canvas"), l2 = a2 ? a2.getElementOffsets(t3) : {}; + if (s2 && o2) { + var c2 = a2.getElementPos(t3, { noScroll: 1 }); + e3 = c2.top, n3 = c2.left, r3 = c2.height, i2 = c2.width; + } else { + var u2 = this.offset(t3); + e3 = this.relative ? t3.offsetTop : u2.top - (this.wmargin ? -1 : 1) * this.elT, n3 = this.relative ? t3.offsetLeft : u2.left - (this.wmargin ? -1 : 1) * this.elL, r3 = t3.offsetHeight, i2 = t3.offsetWidth; + } + return { top: e3, left: n3, height: r3, width: i2, offsets: l2 }; + }, getChildrenDim: function(t3) { + var e3 = this, n3 = []; + if (!t3) + return n3; + var r3 = this.getTargetModel(t3); + if (r3 && r3.view && !this.ignoreViewChildren) { + var i2 = r3.getCurrentView ? r3.getCurrentView() : r3.view; + t3 = i2.getChildrenContainer(); + } + return (0, a.each)(t3.children, function(r4, i3) { + var o2 = (0, l.getModel)(r4, h), s2 = o2 && o2.index ? o2.index() : i3; + if ((0, l.isTextNode)(r4) || e3.matches(r4, e3.itemSel)) { + var a2 = e3.getDim(r4), c2 = e3.direction; + c2 = c2 == "v" || c2 != "h" && e3.isInFlow(r4, t3), a2.dir = c2, a2.el = r4, a2.indexEl = s2, n3.push(a2); + } + }), n3; + }, nearBorders: function(t3, e3, n3) { + var r3 = 0, i2 = this.borderOffset, o2 = e3 || 0, s2 = n3 || 0, a2 = t3.top, l2 = t3.left, c2 = t3.height, u2 = t3.width; + return (a2 + i2 > s2 || s2 > a2 + c2 - i2 || l2 + i2 > o2 || o2 > l2 + u2 - i2) && (r3 = 1), !!r3; + }, findPosition: function(t3, e3, n3) { + for (var r3 = { index: 0, indexEl: 0, method: "before" }, i2 = 0, o2 = 0, s2 = 0, a2 = 0, l2 = 0, c2 = 0, u2 = 0, h2 = 0, f2 = t3.length; h2 < f2; h2++) { + var d2 = u2 = t3[h2], p2 = d2.top, g2 = d2.left, v2 = d2.height, m2 = d2.width; + if (c2 = p2 + v2, a2 = g2 + m2 / 2, l2 = p2 + v2 / 2, !(o2 && g2 > o2 || s2 && l2 >= s2 || i2 && g2 + m2 < i2)) + if (r3.index = h2, r3.indexEl = u2.indexEl, u2.dir) { + if (n3 < l2) { + r3.method = "before"; + break; + } + r3.method = "after"; + } else + n3 < c2 && (s2 = c2), e3 < a2 ? (o2 = a2, r3.method = "before") : (i2 = a2, r3.method = "after"); + } + return r3; + }, movePlaceholder: function(t3, e3, n3, r3) { + var i2 = 0, o2 = 0, s2 = 0, a2 = 0, l2 = "px", c2 = n3.method, u2 = e3[n3.index]; + if (t3.classList.remove("vertical"), t3.classList.add("horizontal"), u2) { + var h2 = u2.top, f2 = u2.left, d2 = u2.height, p2 = u2.width; + u2.dir ? (s2 = p2 + l2, a2 = "auto", i2 = c2 == "before" ? h2 - 0 : h2 + d2 - 0, o2 = f2) : (s2 = "auto", a2 = d2 - 0 + l2, i2 = h2 + 0, o2 = c2 == "before" ? f2 - 0 : f2 + p2 - 0, t3.classList.remove("horizontal"), t3.classList.add("vertical")); + } else { + if (!this.nested) + return void (t3.style.display = "none"); + if (r3) { + var g2 = r3.offsets || {}, v2 = g2.paddingTop || 5, m2 = g2.paddingLeft || 5; + i2 = r3.top + v2, o2 = r3.left + m2, s2 = parseInt(r3.width) - 2 * m2 + l2, a2 = "auto"; + } + } + t3.style.top = i2 + l2, t3.style.left = o2 + l2, s2 && (t3.style.width = s2), a2 && (t3.style.height = a2); + }, endMove: function(t3) { + var e3, n3 = this, r3 = this.sourceEl, i2 = [], o2 = this.getDocuments(), s2 = this.getContainerEl(), c2 = this.onEndMove, h2 = this.onEnd, f2 = this.target, d2 = this.lastPos; + if ((0, l.off)(s2, "mousemove dragover", this.onMove), (0, l.off)(o2, "mouseup dragend touchend", this.endMove), (0, l.off)(o2, "keydown", this.rollback), this.plh.style.display = "none", r3 && (e3 = this.getSourceModel(), this.selectOnEnd && e3 && e3.set && (e3.set("status", ""), e3.set("status", "selected"))), this.moved && f2) { + var p2 = this.toMove; + ((0, a.isArray)(p2) ? p2 : p2 ? [p2] : [r3]).forEach(function(t4) { + i2.push(n3.move(f2, t4, d2)); + }); + } + this.plh && (this.plh.style.display = "none"); + var g2 = this.dragHelper; + if (g2 && (g2.parentNode.removeChild(g2), this.dragHelper = null), this.disableTextable(), this.selectTargetModel(), this.toggleSortCursor(), this.toMove = null, this.eventMove = 0, this.dropModel = null, (0, a.isFunction)(c2)) { + var v2 = { target: e3, parent: e3 && e3.parent(), index: e3 && e3.index() }; + i2.length ? i2.forEach(function(t4) { + return c2(t4, n3, v2); + }) : c2(null, this, u(u({}, v2), {}, { cancelled: 1 })); + } + (0, a.isFunction)(h2) && h2({ sorter: this }); + }, move: function(t3, e3, n3) { + var r3, i2, o2 = this.em, c2 = this.dropContent, u2 = (0, l.getElement)(e3), f2 = [], d2 = n3.method === "after" ? n3.indexEl + 1 : n3.indexEl, p2 = this.validTarget(t3, u2), g2 = h(t3).data("collection"), v2 = p2.trgModel, m2 = p2.srcModel, y2 = p2.draggable, b2 = v2 instanceof s().Collection ? 1 : p2.droppable; + if (g2 && b2 && y2) { + var w2 = { at: d2, action: "move-component" }, x2 = this.isTextableActive(m2, v2); + if (c2) + r3 = (0, a.isFunction)(c2) ? c2() : c2, w2.avoidUpdateStyle = true, w2.action = "add-component"; + else { + var O2 = m2.collection.indexOf(m2), C2 = g2 === m2.collection; + (!C2 || !(O2 === d2 || O2 === d2 - 1) || x2) && (r3 = m2.collection.remove(m2, { temporary: true }), C2 && d2 > O2 && (w2.at = d2 - 1)); + } + r3 && (x2 ? (delete w2.at, i2 = v2.getView().insertComponent(r3, w2)) : i2 = g2.add(r3, w2)), this.dropContent = null, this.prevTarget = null; + } else if (o2) { + var k2 = p2.dropInfo || (v2 == null ? void 0 : v2.get("droppable")), S = p2.dragInfo || (m2 == null ? void 0 : m2.get("draggable")); + !g2 && f2.push("Target collection not found"), !b2 && k2 && f2.push("Target is not droppable, accepts [".concat(k2, "]")), !y2 && S && f2.push("Component not draggable, acceptable by [".concat(S, "]")), o2.logWarning("Invalid target position", { errors: f2, model: m2, context: "sorter", target: v2 }); + } + return o2 == null || o2.trigger("sorter:drag:end", { targetCollection: g2, modelToDrop: r3, warns: f2, validResult: p2, dst: t3, srcEl: u2 }), i2; + }, rollback: function(t3) { + (0, l.off)(this.getDocuments(), "keydown", this.rollback), (t3.which || t3.keyCode) == 27 && (this.moved = 0, this.endMove()); + } }); + var p = n2(5671), g = n2(3144); + function v(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function m(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? v(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : v(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + var y = { mousePosFetcher: null, updateTarget: null, ratioDefault: 0, posFetcher: null, onStart: null, onMove: null, onEnd: null, onUpdateContainer: function() { + }, step: 1, minDim: 10, maxDim: "", unitHeight: "px", unitWidth: "px", keyHeight: "height", keyWidth: "width", currentUnit: 1, silentFrames: 0, avoidContainerUpdate: 0, keepAutoHeight: false, keepAutoWidth: false, autoHeight: false, autoWidth: false, tl: 1, tc: 1, tr: 1, cl: 1, cr: 1, bl: 1, bc: 1, br: 1 }, b = function(t3, e3) { + var n3 = e3 || window, r3 = t3.getBoundingClientRect(); + return { left: r3.left + n3.pageXOffset, top: r3.top + n3.pageYOffset, width: r3.width, height: r3.height }; + }, w = function() { + function t3() { + var e3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + return (0, p.Z)(this, t3), this.setOptions(e3), (0, a.bindAll)(this, "handleKeyDown", "handleMouseDown", "move", "stop"), this; + } + return (0, g.Z)(t3, [{ key: "getConfig", value: function() { + return this.opts; + } }, { key: "setOptions", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + this.opts = (0, a.defaults)(t4, y), this.setup(); + } }, { key: "setup", value: function() { + var t4 = this.opts, e3 = t4.prefix || "", n3 = t4.appendTo || document.body, r3 = this.container; + for (r3 || ((r3 = document.createElement("div")).className = "".concat(e3, "resizer-c"), n3.appendChild(r3), this.container = r3); r3.firstChild; ) + r3.removeChild(r3.firstChild); + var i2 = {}; + for (var o2 in ["tl", "tc", "tr", "cl", "cr", "bl", "bc", "br"].forEach(function(e4) { + return i2[e4] = t4[e4] ? function(t5, e5) { + var n4 = e5.prefix || "", r4 = document.createElement("i"); + return r4.className = n4 + "resizer-h " + n4 + "resizer-h-" + t5, r4.setAttribute("data-" + n4 + "handler", t5), r4; + }(e4, t4) : ""; + }), i2) { + var s2 = i2[o2]; + s2 && r3.appendChild(s2); + } + this.handlers = i2, this.mousePosFetcher = t4.mousePosFetcher, this.updateTarget = t4.updateTarget, this.posFetcher = t4.posFetcher, this.onStart = t4.onStart, this.onMove = t4.onMove, this.onEnd = t4.onEnd, this.onUpdateContainer = t4.onUpdateContainer; + } }, { key: "toggleFrames", value: function(t4) { + if (this.opts.silentFrames) { + var e3 = document.querySelectorAll("iframe"); + (0, a.each)(e3, function(e4) { + return e4.style.pointerEvents = t4 ? "none" : ""; + }); + } + } }, { key: "isHandler", value: function(t4) { + var e3 = this.handlers; + for (var n3 in e3) + if (e3[n3] === t4) + return true; + return false; + } }, { key: "getFocusedEl", value: function() { + return this.el; + } }, { key: "getParentEl", value: function() { + return this.el.parentElement; + } }, { key: "getDocumentEl", value: function() { + return [this.el.ownerDocument, document]; + } }, { key: "getElementPos", value: function(t4) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n3 = this.posFetcher || ""; + return n3 ? n3(t4, e3) : b(t4); + } }, { key: "focus", value: function(t4) { + t4 && t4 === this.el || (this.el = t4, this.updateContainer({ forceShow: 1 }), (0, l.on)(this.getDocumentEl(), "mousedown", this.handleMouseDown)); + } }, { key: "blur", value: function() { + this.container.style.display = "none", this.el && ((0, l.off)(this.getDocumentEl(), "mousedown", this.handleMouseDown), this.el = null); + } }, { key: "start", value: function(t4) { + if (t4.button === 0) { + t4.preventDefault(), t4.stopPropagation(); + var e3 = this.el, n3 = this.getParentEl(), r3 = this.opts || {}, i2 = "data-" + r3.prefix + "handler", o2 = this.getElementPos(e3, { target: "el" }), s2 = this.getElementPos(n3); + this.handlerAttr = t4.target.getAttribute(i2), this.clickedHandler = t4.target, this.startDim = { t: o2.top, l: o2.left, w: o2.width, h: o2.height }, this.rectDim = { t: o2.top, l: o2.left, w: o2.width, h: o2.height }, this.startPos = { x: t4.clientX, y: t4.clientY }, this.parentDim = { t: s2.top, l: s2.left, w: s2.width, h: s2.height }; + var c2 = this.getDocumentEl(); + (0, l.on)(c2, "mousemove", this.move), (0, l.on)(c2, "keydown", this.handleKeyDown), (0, l.on)(c2, "mouseup", this.stop), (0, a.isFunction)(this.onStart) && this.onStart(t4, { docs: c2, config: r3, el: e3, resizer: this }), this.toggleFrames(1), this.move(t4); + } + } }, { key: "move", value: function(t4) { + var e3 = this.onMove, n3 = this.mousePosFetcher, r3 = n3 ? n3(t4) : { x: t4.clientX, y: t4.clientY }; + this.currentPos = r3, this.delta = { x: r3.x - this.startPos.x, y: r3.y - this.startPos.y }, this.keys = { shift: t4.shiftKey, ctrl: t4.ctrlKey, alt: t4.altKey }, this.rectDim = this.calc(this), this.updateRect(0), e3 && e3(t4), t4.which === 0 && this.stop(t4); + } }, { key: "stop", value: function(t4) { + var e3 = this.opts, n3 = this.getDocumentEl(); + (0, l.off)(n3, "mousemove", this.move), (0, l.off)(n3, "keydown", this.handleKeyDown), (0, l.off)(n3, "mouseup", this.stop), this.updateRect(1), this.toggleFrames(), (0, a.isFunction)(this.onEnd) && this.onEnd(t4, { docs: n3, config: e3 }); + } }, { key: "updateRect", value: function(t4) { + var e3 = this.el, n3 = this.opts, r3 = this.rectDim, i2 = this.updateTarget, o2 = this.getSelectedHandler(), s2 = n3.unitHeight, l2 = n3.unitWidth, c2 = n3.keyWidth, u2 = n3.keyHeight; + if ((0, a.isFunction)(i2)) + i2(e3, r3, { store: t4, selectedHandler: o2, resizer: this, config: n3 }); + else { + var h2 = e3.style; + h2[c2] = r3.w + l2, h2[u2] = r3.h + s2; + } + this.updateContainer(); + } }, { key: "updateContainer", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e3 = this.opts, n3 = this.container, r3 = this.el, i2 = n3.style; + !e3.avoidContainerUpdate && r3 && t4.forceShow && (i2.display = "block"), this.onUpdateContainer({ el: n3, resizer: this, opts: m(m({}, e3), t4) }); + } }, { key: "getSelectedHandler", value: function() { + var t4 = this.handlers; + if (this.selectedHandler) { + for (var e3 in t4) + if (t4[e3] === this.selectedHandler) + return e3; + } + } }, { key: "handleKeyDown", value: function(t4) { + t4.keyCode === 27 && (this.rectDim = this.startDim, this.stop(t4)); + } }, { key: "handleMouseDown", value: function(t4) { + var e3 = t4.target; + this.isHandler(e3) ? (this.selectedHandler = e3, this.start(t4)) : e3 !== this.el && (this.selectedHandler = "", this.blur()); + } }, { key: "calc", value: function(t4) { + var e3, n3 = this.opts || {}, r3 = n3.step, i2 = this.startDim, o2 = n3.minDim, s2 = n3.maxDim, a2 = t4.delta.x, c2 = t4.delta.y, u2 = this.parentDim.w, h2 = this.parentDim.h, f2 = this.opts.unitWidth, d2 = this.opts.unitHeight, p2 = f2 === "%" ? i2.w / 100 * u2 : i2.w, g2 = d2 === "%" ? i2.h / 100 * h2 : i2.h, v2 = { t: 0, l: 0, w: p2, h: g2 }; + if (t4) { + var m2 = t4.handlerAttr; + ~m2.indexOf("r") && (e3 = f2 === "%" ? (0, l.normalizeFloat)((p2 + a2 * r3) / u2 * 100, 0.01) : (0, l.normalizeFloat)(p2 + a2 * r3, r3), e3 = Math.max(o2, e3), s2 && (e3 = Math.min(s2, e3)), v2.w = e3), ~m2.indexOf("b") && (e3 = d2 === "%" ? (0, l.normalizeFloat)((g2 + c2 * r3) / h2 * 100, 0.01) : (0, l.normalizeFloat)(g2 + c2 * r3, r3), e3 = Math.max(o2, e3), s2 && (e3 = Math.min(s2, e3)), v2.h = e3), ~m2.indexOf("l") && (e3 = f2 === "%" ? (0, l.normalizeFloat)((p2 - a2 * r3) / u2 * 100, 0.01) : (0, l.normalizeFloat)(p2 - a2 * r3, r3), e3 = Math.max(o2, e3), s2 && (e3 = Math.min(s2, e3)), v2.w = e3), ~m2.indexOf("t") && (e3 = d2 === "%" ? (0, l.normalizeFloat)((g2 - c2 * r3) / h2 * 100, 0.01) : (0, l.normalizeFloat)(g2 - c2 * r3, r3), e3 = Math.max(o2, e3), s2 && (e3 = Math.min(s2, e3)), v2.h = e3); + var y2 = n3.ratioDefault ? !t4.keys.shift : t4.keys.shift; + if (m2.indexOf("c") < 0 && y2) { + var b2 = i2.w / i2.h; + v2.w / v2.h > b2 ? v2.h = Math.round(v2.w / b2) : v2.w = Math.round(v2.h * b2); + } + return ~m2.indexOf("l") && (v2.l = i2.w - v2.w), ~m2.indexOf("t") && (v2.t = i2.h - v2.h), v2; + } + } }]), t3; + }(); + const x = { init: function(t3) { + return new w(t3); + } }; + function O(t3, e3) { + var n3 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r3 = Object.getOwnPropertySymbols(t3); + e3 && (r3 = r3.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n3.push.apply(n3, r3); + } + return n3; + } + function C(t3) { + for (var e3 = 1; e3 < arguments.length; e3++) { + var n3 = arguments[e3] != null ? arguments[e3] : {}; + e3 % 2 ? O(Object(n3), true).forEach(function(e4) { + (0, r2.Z)(t3, e4, n3[e4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(n3)) : O(Object(n3)).forEach(function(e4) { + Object.defineProperty(t3, e4, Object.getOwnPropertyDescriptor(n3, e4)); + }); + } + return t3; + } + const k = function() { + return { name: "Utils", init: function() { + return this; + }, destroy: function() { + }, Sorter: d, Resizer: x, Dragger: i.Z, helpers: C({}, l) }; + }; + }, 6183: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { isDef: () => s, hasWin: () => a, getGlobal: () => l, toLowerCase: () => c, getUiClass: () => f, isCommentNode: () => k, isTaggableNode: () => S, find: () => P, escape: () => _, on: () => g, off: () => v, hasDnd: () => x, upFirst: () => y, matches: () => h, getModel: () => T, getElRect: () => E, camelCase: () => b, isTextNode: () => C, getKeyCode: () => D, getKeyChar: () => M, isEscKey: () => A, isEnterKey: () => L, getElement: () => O, shallowDiff: () => p, normalizeFloat: () => w, getPointerEvent: () => j, getUnitFromValue: () => m, capitalize: () => Z, getViewEl: () => V, setViewEl: () => H, appendStyles: () => d, isObject: () => R, isEmptyObj: () => N, isComponent: () => I, createId: () => B, isRule: () => F }); + var r2 = n2(1002), i = n2(2982), o = n2(9050), s = function(t3) { + return t3 !== void 0; + }, a = function() { + return typeof window != "undefined"; + }, l = function() { + return typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : n2.g; + }, c = function(t3) { + return (t3 || "").toLowerCase(); + }, u = a() ? window.Element.prototype : {}, h = u.matches || u.webkitMatchesSelector || u.mozMatchesSelector || u.msMatchesSelector, f = function(t3, e3) { + var n3 = t3.getConfig(), r3 = n3.stylePrefix; + return [n3.customUI && "".concat(r3, "cui"), e3].filter(function(t4) { + return t4; + }).join(" "); + }, d = function t3(e3) { + var n3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r3 = (0, o.isArray)(e3) ? (0, i.Z)(e3) : [e3]; + if (r3.length) { + var s2 = r3.shift(); + if (s2 && (!n3.unique || !document.querySelector('link[href="'.concat(s2, '"]')))) { + var a2 = document, l2 = a2.head, c2 = document.createElement("link"); + c2.href = s2, c2.rel = "stylesheet", n3.prepand ? l2.insertBefore(c2, l2.firstChild) : l2.appendChild(c2); + } + t3(r3); + } + }, p = function(t3, e3) { + var n3 = {}, r3 = (0, o.keys)(e3); + for (var i2 in t3) + if (t3.hasOwnProperty(i2)) { + var s2 = t3[i2], a2 = e3[i2]; + r3.indexOf(i2) >= 0 ? s2 !== a2 && (n3[i2] = a2) : n3[i2] = null; + } + for (var l2 in e3) + e3.hasOwnProperty(l2) && (0, o.isUndefined)(t3[l2]) && (n3[l2] = e3[l2]); + return n3; + }, g = function(t3, e3, n3, r3) { + e3 = e3.split(/\s+/), t3 = t3 instanceof Array ? t3 : [t3]; + for (var i2 = function(i3) { + t3.forEach(function(t4) { + return t4 && t4.addEventListener(e3[i3], n3, r3); + }); + }, o2 = 0; o2 < e3.length; ++o2) + i2(o2); + }, v = function(t3, e3, n3, r3) { + e3 = e3.split(/\s+/), t3 = t3 instanceof Array ? t3 : [t3]; + for (var i2 = function(i3) { + t3.forEach(function(t4) { + return t4 && t4.removeEventListener(e3[i3], n3, r3); + }); + }, o2 = 0; o2 < e3.length; ++o2) + i2(o2); + }, m = function(t3) { + return t3.replace(parseFloat(t3), ""); + }, y = function(t3) { + return t3[0].toUpperCase() + t3.toLowerCase().slice(1); + }, b = function(t3) { + return t3.replace(/-./g, function(t4) { + return t4[1].toUpperCase(); + }); + }, w = function(t3) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1, n3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, r3 = 0; + if (isNaN(t3)) + return n3; + if (t3 = parseFloat(t3), Math.floor(t3) !== t3) { + var i2 = e3.toString().split(".")[1]; + r3 = i2 ? i2.length : 0; + } + return r3 ? parseFloat(t3.toFixed(r3)) : t3; + }, x = function(t3) { + return "draggable" in document.createElement("i") && (t3 ? t3.get("Config").nativeDnD : 1); + }, O = function(t3) { + return (0, o.isElement)(t3) || C(t3) ? t3 : t3 && t3.getEl ? t3.getEl() : void 0; + }, C = function(t3) { + return t3 && t3.nodeType === 3; + }, k = function(t3) { + return t3 && t3.nodeType === 8; + }, S = function(t3) { + return t3 && !C(t3) && !k(t3); + }, P = function(t3, e3) { + var n3 = null; + return t3.some(function(r3, i2) { + return e3(r3, i2, t3) ? (n3 = r3, 1) : 0; + }), n3; + }, _ = function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ""; + return "".concat(t3).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/`/g, "`"); + }, T = function(t3, e3) { + var n3 = t3; + return !e3 && t3 && t3.__cashData ? n3 = t3.__cashData.model : (0, o.isElement)(t3) && (n3 = e3(t3).data("model")), n3; + }, E = function(t3) { + var e3, n3 = { top: 0, left: 0, width: 0, height: 0 }; + if (!t3) + return n3; + if (C(t3)) { + var r3 = document.createRange(); + r3.selectNode(t3), e3 = r3.getBoundingClientRect(), r3.detach(); + } + return e3 || (t3.getBoundingClientRect ? t3.getBoundingClientRect() : n3); + }, j = function(t3) { + return t3.touches && t3.touches[0] ? t3.touches[0] : t3; + }, D = function(t3) { + return t3.which || t3.keyCode; + }, M = function(t3) { + return String.fromCharCode(D(t3)); + }, A = function(t3) { + return D(t3) === 27; + }, L = function(t3) { + return D(t3) === 13; + }, R = function(t3) { + return t3 !== null && !Array.isArray(t3) && (0, r2.Z)(t3) === "object"; + }, N = function(t3) { + return Object.keys(t3).length <= 0; + }, Z = function(t3) { + return t3 && t3.charAt(0).toUpperCase() + t3.substring(1); + }, I = function(t3) { + return t3 && t3.toHTML; + }, F = function(t3) { + return t3 && t3.toCSS; + }, V = function(t3) { + return t3.__gjsv; + }, H = function(t3, e3) { + t3.__gjsv = e3; + }, B = function() { + for (var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 16, e3 = "", n3 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", r3 = n3.length, i2 = 0; i2 < t3; i2++) + e3 += n3.charAt(Math.floor(Math.random() * r3)); + return e3; + }; + }, 5666: (t2) => { + var e2 = function(t3) { + "use strict"; + var e3, n2 = Object.prototype, r2 = n2.hasOwnProperty, i = typeof Symbol == "function" ? Symbol : {}, o = i.iterator || "@@iterator", s = i.asyncIterator || "@@asyncIterator", a = i.toStringTag || "@@toStringTag"; + function l(t4, e4, n3) { + return Object.defineProperty(t4, e4, { value: n3, enumerable: true, configurable: true, writable: true }), t4[e4]; + } + try { + l({}, ""); + } catch (t4) { + l = function(t5, e4, n3) { + return t5[e4] = n3; + }; + } + function c(t4, e4, n3, r3) { + var i2 = e4 && e4.prototype instanceof v ? e4 : v, o2 = Object.create(i2.prototype), s2 = new T(r3 || []); + return o2._invoke = function(t5, e5, n4) { + var r4 = h; + return function(i3, o3) { + if (r4 === d) + throw new Error("Generator is already running"); + if (r4 === p) { + if (i3 === "throw") + throw o3; + return j(); + } + for (n4.method = i3, n4.arg = o3; ; ) { + var s3 = n4.delegate; + if (s3) { + var a2 = S(s3, n4); + if (a2) { + if (a2 === g) + continue; + return a2; + } + } + if (n4.method === "next") + n4.sent = n4._sent = n4.arg; + else if (n4.method === "throw") { + if (r4 === h) + throw r4 = p, n4.arg; + n4.dispatchException(n4.arg); + } else + n4.method === "return" && n4.abrupt("return", n4.arg); + r4 = d; + var l2 = u(t5, e5, n4); + if (l2.type === "normal") { + if (r4 = n4.done ? p : f, l2.arg === g) + continue; + return { value: l2.arg, done: n4.done }; + } + l2.type === "throw" && (r4 = p, n4.method = "throw", n4.arg = l2.arg); + } + }; + }(t4, n3, s2), o2; + } + function u(t4, e4, n3) { + try { + return { type: "normal", arg: t4.call(e4, n3) }; + } catch (t5) { + return { type: "throw", arg: t5 }; + } + } + t3.wrap = c; + var h = "suspendedStart", f = "suspendedYield", d = "executing", p = "completed", g = {}; + function v() { + } + function m() { + } + function y() { + } + var b = {}; + b[o] = function() { + return this; + }; + var w = Object.getPrototypeOf, x = w && w(w(E([]))); + x && x !== n2 && r2.call(x, o) && (b = x); + var O = y.prototype = v.prototype = Object.create(b); + function C(t4) { + ["next", "throw", "return"].forEach(function(e4) { + l(t4, e4, function(t5) { + return this._invoke(e4, t5); + }); + }); + } + function k(t4, e4) { + function n3(i3, o2, s2, a2) { + var l2 = u(t4[i3], t4, o2); + if (l2.type !== "throw") { + var c2 = l2.arg, h2 = c2.value; + return h2 && typeof h2 == "object" && r2.call(h2, "__await") ? e4.resolve(h2.__await).then(function(t5) { + n3("next", t5, s2, a2); + }, function(t5) { + n3("throw", t5, s2, a2); + }) : e4.resolve(h2).then(function(t5) { + c2.value = t5, s2(c2); + }, function(t5) { + return n3("throw", t5, s2, a2); + }); + } + a2(l2.arg); + } + var i2; + this._invoke = function(t5, r3) { + function o2() { + return new e4(function(e5, i3) { + n3(t5, r3, e5, i3); + }); + } + return i2 = i2 ? i2.then(o2, o2) : o2(); + }; + } + function S(t4, n3) { + var r3 = t4.iterator[n3.method]; + if (r3 === e3) { + if (n3.delegate = null, n3.method === "throw") { + if (t4.iterator.return && (n3.method = "return", n3.arg = e3, S(t4, n3), n3.method === "throw")) + return g; + n3.method = "throw", n3.arg = new TypeError("The iterator does not provide a 'throw' method"); + } + return g; + } + var i2 = u(r3, t4.iterator, n3.arg); + if (i2.type === "throw") + return n3.method = "throw", n3.arg = i2.arg, n3.delegate = null, g; + var o2 = i2.arg; + return o2 ? o2.done ? (n3[t4.resultName] = o2.value, n3.next = t4.nextLoc, n3.method !== "return" && (n3.method = "next", n3.arg = e3), n3.delegate = null, g) : o2 : (n3.method = "throw", n3.arg = new TypeError("iterator result is not an object"), n3.delegate = null, g); + } + function P(t4) { + var e4 = { tryLoc: t4[0] }; + 1 in t4 && (e4.catchLoc = t4[1]), 2 in t4 && (e4.finallyLoc = t4[2], e4.afterLoc = t4[3]), this.tryEntries.push(e4); + } + function _(t4) { + var e4 = t4.completion || {}; + e4.type = "normal", delete e4.arg, t4.completion = e4; + } + function T(t4) { + this.tryEntries = [{ tryLoc: "root" }], t4.forEach(P, this), this.reset(true); + } + function E(t4) { + if (t4) { + var n3 = t4[o]; + if (n3) + return n3.call(t4); + if (typeof t4.next == "function") + return t4; + if (!isNaN(t4.length)) { + var i2 = -1, s2 = function n4() { + for (; ++i2 < t4.length; ) + if (r2.call(t4, i2)) + return n4.value = t4[i2], n4.done = false, n4; + return n4.value = e3, n4.done = true, n4; + }; + return s2.next = s2; + } + } + return { next: j }; + } + function j() { + return { value: e3, done: true }; + } + return m.prototype = O.constructor = y, y.constructor = m, m.displayName = l(y, a, "GeneratorFunction"), t3.isGeneratorFunction = function(t4) { + var e4 = typeof t4 == "function" && t4.constructor; + return !!e4 && (e4 === m || (e4.displayName || e4.name) === "GeneratorFunction"); + }, t3.mark = function(t4) { + return Object.setPrototypeOf ? Object.setPrototypeOf(t4, y) : (t4.__proto__ = y, l(t4, a, "GeneratorFunction")), t4.prototype = Object.create(O), t4; + }, t3.awrap = function(t4) { + return { __await: t4 }; + }, C(k.prototype), k.prototype[s] = function() { + return this; + }, t3.AsyncIterator = k, t3.async = function(e4, n3, r3, i2, o2) { + o2 === void 0 && (o2 = Promise); + var s2 = new k(c(e4, n3, r3, i2), o2); + return t3.isGeneratorFunction(n3) ? s2 : s2.next().then(function(t4) { + return t4.done ? t4.value : s2.next(); + }); + }, C(O), l(O, a, "Generator"), O[o] = function() { + return this; + }, O.toString = function() { + return "[object Generator]"; + }, t3.keys = function(t4) { + var e4 = []; + for (var n3 in t4) + e4.push(n3); + return e4.reverse(), function n4() { + for (; e4.length; ) { + var r3 = e4.pop(); + if (r3 in t4) + return n4.value = r3, n4.done = false, n4; + } + return n4.done = true, n4; + }; + }, t3.values = E, T.prototype = { constructor: T, reset: function(t4) { + if (this.prev = 0, this.next = 0, this.sent = this._sent = e3, this.done = false, this.delegate = null, this.method = "next", this.arg = e3, this.tryEntries.forEach(_), !t4) + for (var n3 in this) + n3.charAt(0) === "t" && r2.call(this, n3) && !isNaN(+n3.slice(1)) && (this[n3] = e3); + }, stop: function() { + this.done = true; + var t4 = this.tryEntries[0].completion; + if (t4.type === "throw") + throw t4.arg; + return this.rval; + }, dispatchException: function(t4) { + if (this.done) + throw t4; + var n3 = this; + function i2(r3, i3) { + return a2.type = "throw", a2.arg = t4, n3.next = r3, i3 && (n3.method = "next", n3.arg = e3), !!i3; + } + for (var o2 = this.tryEntries.length - 1; o2 >= 0; --o2) { + var s2 = this.tryEntries[o2], a2 = s2.completion; + if (s2.tryLoc === "root") + return i2("end"); + if (s2.tryLoc <= this.prev) { + var l2 = r2.call(s2, "catchLoc"), c2 = r2.call(s2, "finallyLoc"); + if (l2 && c2) { + if (this.prev < s2.catchLoc) + return i2(s2.catchLoc, true); + if (this.prev < s2.finallyLoc) + return i2(s2.finallyLoc); + } else if (l2) { + if (this.prev < s2.catchLoc) + return i2(s2.catchLoc, true); + } else { + if (!c2) + throw new Error("try statement without catch or finally"); + if (this.prev < s2.finallyLoc) + return i2(s2.finallyLoc); + } + } + } + }, abrupt: function(t4, e4) { + for (var n3 = this.tryEntries.length - 1; n3 >= 0; --n3) { + var i2 = this.tryEntries[n3]; + if (i2.tryLoc <= this.prev && r2.call(i2, "finallyLoc") && this.prev < i2.finallyLoc) { + var o2 = i2; + break; + } + } + o2 && (t4 === "break" || t4 === "continue") && o2.tryLoc <= e4 && e4 <= o2.finallyLoc && (o2 = null); + var s2 = o2 ? o2.completion : {}; + return s2.type = t4, s2.arg = e4, o2 ? (this.method = "next", this.next = o2.finallyLoc, g) : this.complete(s2); + }, complete: function(t4, e4) { + if (t4.type === "throw") + throw t4.arg; + return t4.type === "break" || t4.type === "continue" ? this.next = t4.arg : t4.type === "return" ? (this.rval = this.arg = t4.arg, this.method = "return", this.next = "end") : t4.type === "normal" && e4 && (this.next = e4), g; + }, finish: function(t4) { + for (var e4 = this.tryEntries.length - 1; e4 >= 0; --e4) { + var n3 = this.tryEntries[e4]; + if (n3.finallyLoc === t4) + return this.complete(n3.completion, n3.afterLoc), _(n3), g; + } + }, catch: function(t4) { + for (var e4 = this.tryEntries.length - 1; e4 >= 0; --e4) { + var n3 = this.tryEntries[e4]; + if (n3.tryLoc === t4) { + var r3 = n3.completion; + if (r3.type === "throw") { + var i2 = r3.arg; + _(n3); + } + return i2; + } + } + throw new Error("illegal catch attempt"); + }, delegateYield: function(t4, n3, r3) { + return this.delegate = { iterator: E(t4), resultName: n3, nextLoc: r3 }, this.method === "next" && (this.arg = e3), g; + } }, t3; + }(t2.exports); + try { + regeneratorRuntime = e2; + } catch (t3) { + Function("r", "regeneratorRuntime = r")(e2); + } + }, 2828: (t2, e2, n2) => { + var r2 = { "./CanvasClear": 7202, "./CanvasClear.js": 7202, "./CanvasMove": 327, "./CanvasMove.js": 327, "./CommandAbstract": 238, "./CommandAbstract.js": 238, "./ComponentDelete": 5820, "./ComponentDelete.js": 5820, "./ComponentDrag": 6694, "./ComponentDrag.js": 6694, "./ComponentEnter": 1947, "./ComponentEnter.js": 1947, "./ComponentExit": 3888, "./ComponentExit.js": 3888, "./ComponentNext": 5883, "./ComponentNext.js": 5883, "./ComponentPrev": 7508, "./ComponentPrev.js": 7508, "./ComponentStyleClear": 8769, "./ComponentStyleClear.js": 8769, "./CopyComponent": 2213, "./CopyComponent.js": 2213, "./DeleteComponent": 5049, "./DeleteComponent.js": 5049, "./ExportTemplate": 3775, "./ExportTemplate.js": 3775, "./Fullscreen": 58, "./Fullscreen.js": 58, "./MoveComponent": 8658, "./MoveComponent.js": 8658, "./OpenAssets": 9617, "./OpenAssets.js": 9617, "./OpenBlocks": 5821, "./OpenBlocks.js": 5821, "./OpenLayers": 3452, "./OpenLayers.js": 3452, "./OpenStyleManager": 2840, "./OpenStyleManager.js": 2840, "./OpenTraitManager": 8644, "./OpenTraitManager.js": 8644, "./PasteComponent": 560, "./PasteComponent.js": 560, "./Preview": 4944, "./Preview.js": 4944, "./Resize": 7538, "./Resize.js": 7538, "./SelectComponent": 2620, "./SelectComponent.js": 2620, "./SelectPosition": 8463, "./SelectPosition.js": 8463, "./ShowOffset": 7994, "./ShowOffset.js": 7994, "./SwitchVisibility": 8352, "./SwitchVisibility.js": 8352 }; + function i(t3) { + var e3 = o(t3); + return n2(e3); + } + function o(t3) { + if (!n2.o(r2, t3)) { + var e3 = new Error("Cannot find module '" + t3 + "'"); + throw e3.code = "MODULE_NOT_FOUND", e3; + } + return r2[t3]; + } + i.keys = function() { + return Object.keys(r2); + }, i.resolve = o, t2.exports = i, i.id = 2828; + }, 907: (t2, e2, n2) => { + "use strict"; + function r2(t3, e3) { + (e3 == null || e3 > t3.length) && (e3 = t3.length); + for (var n3 = 0, r3 = new Array(e3); n3 < e3; n3++) + r3[n3] = t3[n3]; + return r3; + } + n2.d(e2, { Z: () => r2 }); + }, 5861: (t2, e2, n2) => { + "use strict"; + function r2(t3, e3, n3, r3, i2, o, s) { + try { + var a = t3[o](s), l = a.value; + } catch (t4) { + return void n3(t4); + } + a.done ? e3(l) : Promise.resolve(l).then(r3, i2); + } + function i(t3) { + return function() { + var e3 = this, n3 = arguments; + return new Promise(function(i2, o) { + var s = t3.apply(e3, n3); + function a(t4) { + r2(s, i2, o, a, l, "next", t4); + } + function l(t4) { + r2(s, i2, o, a, l, "throw", t4); + } + a(void 0); + }); + }; + } + n2.d(e2, { Z: () => i }); + }, 5671: (t2, e2, n2) => { + "use strict"; + function r2(t3, e3) { + if (!(t3 instanceof e3)) + throw new TypeError("Cannot call a class as a function"); + } + n2.d(e2, { Z: () => r2 }); + }, 3144: (t2, e2, n2) => { + "use strict"; + function r2(t3, e3) { + for (var n3 = 0; n3 < e3.length; n3++) { + var r3 = e3[n3]; + r3.enumerable = r3.enumerable || false, r3.configurable = true, "value" in r3 && (r3.writable = true), Object.defineProperty(t3, r3.key, r3); + } + } + function i(t3, e3, n3) { + return e3 && r2(t3.prototype, e3), n3 && r2(t3, n3), t3; + } + n2.d(e2, { Z: () => i }); + }, 4942: (t2, e2, n2) => { + "use strict"; + function r2(t3, e3, n3) { + return e3 in t3 ? Object.defineProperty(t3, e3, { value: n3, enumerable: true, configurable: true, writable: true }) : t3[e3] = n3, t3; + } + n2.d(e2, { Z: () => r2 }); + }, 1120: (t2, e2, n2) => { + "use strict"; + function r2(t3) { + return r2 = Object.setPrototypeOf ? Object.getPrototypeOf : function(t4) { + return t4.__proto__ || Object.getPrototypeOf(t4); + }, r2(t3); + } + n2.d(e2, { Z: () => r2 }); + }, 9340: (t2, e2, n2) => { + "use strict"; + function r2(t3, e3) { + return r2 = Object.setPrototypeOf || function(t4, e4) { + return t4.__proto__ = e4, t4; + }, r2(t3, e3); + } + function i(t3, e3) { + if (typeof e3 != "function" && e3 !== null) + throw new TypeError("Super expression must either be null or a function"); + t3.prototype = Object.create(e3 && e3.prototype, { constructor: { value: t3, writable: true, configurable: true } }), e3 && r2(t3, e3); + } + n2.d(e2, { Z: () => i }); + }, 4925: (t2, e2, n2) => { + "use strict"; + function r2(t3, e3) { + if (t3 == null) + return {}; + var n3, r3, i = function(t4, e4) { + if (t4 == null) + return {}; + var n4, r4, i2 = {}, o2 = Object.keys(t4); + for (r4 = 0; r4 < o2.length; r4++) + n4 = o2[r4], e4.indexOf(n4) >= 0 || (i2[n4] = t4[n4]); + return i2; + }(t3, e3); + if (Object.getOwnPropertySymbols) { + var o = Object.getOwnPropertySymbols(t3); + for (r3 = 0; r3 < o.length; r3++) + n3 = o[r3], e3.indexOf(n3) >= 0 || Object.prototype.propertyIsEnumerable.call(t3, n3) && (i[n3] = t3[n3]); + } + return i; + } + n2.d(e2, { Z: () => r2 }); + }, 3930: (t2, e2, n2) => { + "use strict"; + n2.d(e2, { Z: () => i }); + var r2 = n2(1002); + function i(t3, e3) { + return !e3 || (0, r2.Z)(e3) !== "object" && typeof e3 != "function" ? function(t4) { + if (t4 === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return t4; + }(t3) : e3; + } + }, 885: (t2, e2, n2) => { + "use strict"; + n2.d(e2, { Z: () => i }); + var r2 = n2(181); + function i(t3, e3) { + return function(t4) { + if (Array.isArray(t4)) + return t4; + }(t3) || function(t4, e4) { + var n3 = t4 && (typeof Symbol != "undefined" && t4[Symbol.iterator] || t4["@@iterator"]); + if (n3 != null) { + var r3, i2, o = [], s = true, a = false; + try { + for (n3 = n3.call(t4); !(s = (r3 = n3.next()).done) && (o.push(r3.value), !e4 || o.length !== e4); s = true) + ; + } catch (t5) { + a = true, i2 = t5; + } finally { + try { + s || n3.return == null || n3.return(); + } finally { + if (a) + throw i2; + } + } + return o; + } + }(t3, e3) || (0, r2.Z)(t3, e3) || function() { + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); + }(); + } + }, 168: (t2, e2, n2) => { + "use strict"; + function r2(t3, e3) { + return e3 || (e3 = t3.slice(0)), Object.freeze(Object.defineProperties(t3, { raw: { value: Object.freeze(e3) } })); + } + n2.d(e2, { Z: () => r2 }); + }, 2982: (t2, e2, n2) => { + "use strict"; + n2.d(e2, { Z: () => o }); + var r2 = n2(907); + var i = n2(181); + function o(t3) { + return function(t4) { + if (Array.isArray(t4)) + return (0, r2.Z)(t4); + }(t3) || function(t4) { + if (typeof Symbol != "undefined" && t4[Symbol.iterator] != null || t4["@@iterator"] != null) + return Array.from(t4); + }(t3) || (0, i.Z)(t3) || function() { + throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); + }(); + } + }, 1002: (t2, e2, n2) => { + "use strict"; + function r2(t3) { + return r2 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t4) { + return typeof t4; + } : function(t4) { + return t4 && typeof Symbol == "function" && t4.constructor === Symbol && t4 !== Symbol.prototype ? "symbol" : typeof t4; + }, r2(t3); + } + n2.d(e2, { Z: () => r2 }); + }, 181: (t2, e2, n2) => { + "use strict"; + n2.d(e2, { Z: () => i }); + var r2 = n2(907); + function i(t3, e3) { + if (t3) { + if (typeof t3 == "string") + return (0, r2.Z)(t3, e3); + var n3 = Object.prototype.toString.call(t3).slice(8, -1); + return n3 === "Object" && t3.constructor && (n3 = t3.constructor.name), n3 === "Map" || n3 === "Set" ? Array.from(t3) : n3 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n3) ? (0, r2.Z)(t3, e3) : void 0; + } + } + }, 9050: (t2, e2, n2) => { + "use strict"; + n2.r(e2), n2.d(e2, { VERSION: () => i, after: () => Le, all: () => tn, allKeys: () => vt, any: () => en, assign: () => Lt, before: () => Re, bind: () => Oe, bindAll: () => Se, chain: () => ye, chunk: () => In, clone: () => It, collect: () => Ge, compact: () => _n, compose: () => Ae, constant: () => X, contains: () => nn, countBy: () => gn, create: () => Zt, debounce: () => je, default: () => zn, defaults: () => Rt, defer: () => Te, delay: () => _e, detect: () => We, difference: () => En, drop: () => Sn, each: () => qe, escape: () => se, every: () => tn, extend: () => At, extendOwn: () => Lt, filter: () => Xe, find: () => We, findIndex: () => Fe, findKey: () => Ze, findLastIndex: () => Ve, findWhere: () => $e, first: () => kn, flatten: () => Tn, foldl: () => Ye, foldr: () => Je, forEach: () => qe, functions: () => Dt, get: () => zt, groupBy: () => dn, has: () => Ut, head: () => kn, identity: () => Wt, include: () => nn, includes: () => nn, indexBy: () => pn, indexOf: () => ze, initial: () => Cn, inject: () => Ye, intersection: () => An, invert: () => jt, invoke: () => rn, isArguments: () => K, isArray: () => $, isArrayBuffer: () => Z, isBoolean: () => T, isDataView: () => W, isDate: () => A, isElement: () => E, isEmpty: () => lt, isEqual: () => gt, isError: () => R, isFinite: () => Y, isFunction: () => V, isMap: () => kt, isMatch: () => ct, isNaN: () => J, isNull: () => P, isNumber: () => M, isObject: () => S, isRegExp: () => L, isSet: () => Pt, isString: () => D, isSymbol: () => N, isTypedArray: () => it, isUndefined: () => _, isWeakMap: () => St, isWeakSet: () => _t, iteratee: () => Yt, keys: () => at, last: () => Pn, lastIndexOf: () => Ue, map: () => Ge, mapObject: () => Xt, matcher: () => $t, matches: () => $t, max: () => an, memoize: () => Pe, methods: () => Dt, min: () => ln, mixin: () => Vn, negate: () => Me, noop: () => Qt, now: () => re, object: () => Nn, omit: () => On, once: () => Ne, pairs: () => Et, partial: () => xe, partition: () => vn, pick: () => xn, pluck: () => on, property: () => qt, propertyOf: () => te, random: () => ne, range: () => Zn, reduce: () => Ye, reduceRight: () => Je, reject: () => Qe, rest: () => Sn, restArguments: () => k, result: () => ge, sample: () => cn, select: () => Xe, shuffle: () => un, size: () => bn, some: () => en, sortBy: () => hn, sortedIndex: () => He, tail: () => Sn, take: () => kn, tap: () => Ft, template: () => pe, templateSettings: () => le, throttle: () => Ee, times: () => ee, toArray: () => yn, toPath: () => Vt, transpose: () => Ln, unescape: () => ae, union: () => Mn, uniq: () => Dn, unique: () => Dn, uniqueId: () => me, unzip: () => Ln, values: () => Tt, where: () => sn, without: () => jn, wrap: () => De, zip: () => Rn }); + var r2 = {}; + n2.r(r2), n2.d(r2, { VERSION: () => i, after: () => Le, all: () => tn, allKeys: () => vt, any: () => en, assign: () => Lt, before: () => Re, bind: () => Oe, bindAll: () => Se, chain: () => ye, chunk: () => In, clone: () => It, collect: () => Ge, compact: () => _n, compose: () => Ae, constant: () => X, contains: () => nn, countBy: () => gn, create: () => Zt, debounce: () => je, default: () => Hn, defaults: () => Rt, defer: () => Te, delay: () => _e, detect: () => We, difference: () => En, drop: () => Sn, each: () => qe, escape: () => se, every: () => tn, extend: () => At, extendOwn: () => Lt, filter: () => Xe, find: () => We, findIndex: () => Fe, findKey: () => Ze, findLastIndex: () => Ve, findWhere: () => $e, first: () => kn, flatten: () => Tn, foldl: () => Ye, foldr: () => Je, forEach: () => qe, functions: () => Dt, get: () => zt, groupBy: () => dn, has: () => Ut, head: () => kn, identity: () => Wt, include: () => nn, includes: () => nn, indexBy: () => pn, indexOf: () => ze, initial: () => Cn, inject: () => Ye, intersection: () => An, invert: () => jt, invoke: () => rn, isArguments: () => K, isArray: () => $, isArrayBuffer: () => Z, isBoolean: () => T, isDataView: () => W, isDate: () => A, isElement: () => E, isEmpty: () => lt, isEqual: () => gt, isError: () => R, isFinite: () => Y, isFunction: () => V, isMap: () => kt, isMatch: () => ct, isNaN: () => J, isNull: () => P, isNumber: () => M, isObject: () => S, isRegExp: () => L, isSet: () => Pt, isString: () => D, isSymbol: () => N, isTypedArray: () => it, isUndefined: () => _, isWeakMap: () => St, isWeakSet: () => _t, iteratee: () => Yt, keys: () => at, last: () => Pn, lastIndexOf: () => Ue, map: () => Ge, mapObject: () => Xt, matcher: () => $t, matches: () => $t, max: () => an, memoize: () => Pe, methods: () => Dt, min: () => ln, mixin: () => Vn, negate: () => Me, noop: () => Qt, now: () => re, object: () => Nn, omit: () => On, once: () => Ne, pairs: () => Et, partial: () => xe, partition: () => vn, pick: () => xn, pluck: () => on, property: () => qt, propertyOf: () => te, random: () => ne, range: () => Zn, reduce: () => Ye, reduceRight: () => Je, reject: () => Qe, rest: () => Sn, restArguments: () => k, result: () => ge, sample: () => cn, select: () => Xe, shuffle: () => un, size: () => bn, some: () => en, sortBy: () => hn, sortedIndex: () => He, tail: () => Sn, take: () => kn, tap: () => Ft, template: () => pe, templateSettings: () => le, throttle: () => Ee, times: () => ee, toArray: () => yn, toPath: () => Vt, transpose: () => Ln, unescape: () => ae, union: () => Mn, uniq: () => Dn, unique: () => Dn, uniqueId: () => me, unzip: () => Ln, values: () => Tt, where: () => sn, without: () => jn, wrap: () => De, zip: () => Rn }); + var i = "1.13.1", o = typeof self == "object" && self.self === self && self || typeof global == "object" && global.global === global && global || Function("return this")() || {}, s = Array.prototype, a = Object.prototype, l = typeof Symbol != "undefined" ? Symbol.prototype : null, c = s.push, u = s.slice, h = a.toString, f = a.hasOwnProperty, d = typeof ArrayBuffer != "undefined", p = typeof DataView != "undefined", g = Array.isArray, v = Object.keys, m = Object.create, y = d && ArrayBuffer.isView, b = isNaN, w = isFinite, x = !{ toString: null }.propertyIsEnumerable("toString"), O = ["valueOf", "isPrototypeOf", "toString", "propertyIsEnumerable", "hasOwnProperty", "toLocaleString"], C = Math.pow(2, 53) - 1; + function k(t3, e3) { + return e3 = e3 == null ? t3.length - 1 : +e3, function() { + for (var n3 = Math.max(arguments.length - e3, 0), r3 = Array(n3), i2 = 0; i2 < n3; i2++) + r3[i2] = arguments[i2 + e3]; + switch (e3) { + case 0: + return t3.call(this, r3); + case 1: + return t3.call(this, arguments[0], r3); + case 2: + return t3.call(this, arguments[0], arguments[1], r3); + } + var o2 = Array(e3 + 1); + for (i2 = 0; i2 < e3; i2++) + o2[i2] = arguments[i2]; + return o2[e3] = r3, t3.apply(this, o2); + }; + } + function S(t3) { + var e3 = typeof t3; + return e3 === "function" || e3 === "object" && !!t3; + } + function P(t3) { + return t3 === null; + } + function _(t3) { + return t3 === void 0; + } + function T(t3) { + return t3 === true || t3 === false || h.call(t3) === "[object Boolean]"; + } + function E(t3) { + return !(!t3 || t3.nodeType !== 1); + } + function j(t3) { + var e3 = "[object " + t3 + "]"; + return function(t4) { + return h.call(t4) === e3; + }; + } + const D = j("String"), M = j("Number"), A = j("Date"), L = j("RegExp"), R = j("Error"), N = j("Symbol"), Z = j("ArrayBuffer"); + var I = j("Function"), F = o.document && o.document.childNodes; + typeof Int8Array != "object" && typeof F != "function" && (I = function(t3) { + return typeof t3 == "function" || false; + }); + const V = I, H = j("Object"); + var B = p && H(new DataView(new ArrayBuffer(8))), z = typeof Map != "undefined" && H(/* @__PURE__ */ new Map()), U = j("DataView"); + const W = B ? function(t3) { + return t3 != null && V(t3.getInt8) && Z(t3.buffer); + } : U, $ = g || j("Array"); + function q(t3, e3) { + return t3 != null && f.call(t3, e3); + } + var G = j("Arguments"); + !function() { + G(arguments) || (G = function(t3) { + return q(t3, "callee"); + }); + }(); + const K = G; + function Y(t3) { + return !N(t3) && w(t3) && !isNaN(parseFloat(t3)); + } + function J(t3) { + return M(t3) && b(t3); + } + function X(t3) { + return function() { + return t3; + }; + } + function Q(t3) { + return function(e3) { + var n3 = t3(e3); + return typeof n3 == "number" && n3 >= 0 && n3 <= C; + }; + } + function tt(t3) { + return function(e3) { + return e3 == null ? void 0 : e3[t3]; + }; + } + const et = tt("byteLength"), nt = Q(et); + var rt = /\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/; + const it = d ? function(t3) { + return y ? y(t3) && !W(t3) : nt(t3) && rt.test(h.call(t3)); + } : X(false), ot = tt("length"); + function st(t3, e3) { + e3 = function(t4) { + for (var e4 = {}, n4 = t4.length, r4 = 0; r4 < n4; ++r4) + e4[t4[r4]] = true; + return { contains: function(t5) { + return e4[t5]; + }, push: function(n5) { + return e4[n5] = true, t4.push(n5); + } }; + }(e3); + var n3 = O.length, r3 = t3.constructor, i2 = V(r3) && r3.prototype || a, o2 = "constructor"; + for (q(t3, o2) && !e3.contains(o2) && e3.push(o2); n3--; ) + (o2 = O[n3]) in t3 && t3[o2] !== i2[o2] && !e3.contains(o2) && e3.push(o2); + } + function at(t3) { + if (!S(t3)) + return []; + if (v) + return v(t3); + var e3 = []; + for (var n3 in t3) + q(t3, n3) && e3.push(n3); + return x && st(t3, e3), e3; + } + function lt(t3) { + if (t3 == null) + return true; + var e3 = ot(t3); + return typeof e3 == "number" && ($(t3) || D(t3) || K(t3)) ? e3 === 0 : ot(at(t3)) === 0; + } + function ct(t3, e3) { + var n3 = at(e3), r3 = n3.length; + if (t3 == null) + return !r3; + for (var i2 = Object(t3), o2 = 0; o2 < r3; o2++) { + var s2 = n3[o2]; + if (e3[s2] !== i2[s2] || !(s2 in i2)) + return false; + } + return true; + } + function ut(t3) { + return t3 instanceof ut ? t3 : this instanceof ut ? void (this._wrapped = t3) : new ut(t3); + } + function ht(t3) { + return new Uint8Array(t3.buffer || t3, t3.byteOffset || 0, et(t3)); + } + ut.VERSION = i, ut.prototype.value = function() { + return this._wrapped; + }, ut.prototype.valueOf = ut.prototype.toJSON = ut.prototype.value, ut.prototype.toString = function() { + return String(this._wrapped); + }; + var ft = "[object DataView]"; + function dt(t3, e3, n3, r3) { + if (t3 === e3) + return t3 !== 0 || 1 / t3 == 1 / e3; + if (t3 == null || e3 == null) + return false; + if (t3 != t3) + return e3 != e3; + var i2 = typeof t3; + return (i2 === "function" || i2 === "object" || typeof e3 == "object") && pt(t3, e3, n3, r3); + } + function pt(t3, e3, n3, r3) { + t3 instanceof ut && (t3 = t3._wrapped), e3 instanceof ut && (e3 = e3._wrapped); + var i2 = h.call(t3); + if (i2 !== h.call(e3)) + return false; + if (B && i2 == "[object Object]" && W(t3)) { + if (!W(e3)) + return false; + i2 = ft; + } + switch (i2) { + case "[object RegExp]": + case "[object String]": + return "" + t3 == "" + e3; + case "[object Number]": + return +t3 != +t3 ? +e3 != +e3 : +t3 == 0 ? 1 / +t3 == 1 / e3 : +t3 == +e3; + case "[object Date]": + case "[object Boolean]": + return +t3 == +e3; + case "[object Symbol]": + return l.valueOf.call(t3) === l.valueOf.call(e3); + case "[object ArrayBuffer]": + case ft: + return pt(ht(t3), ht(e3), n3, r3); + } + var o2 = i2 === "[object Array]"; + if (!o2 && it(t3)) { + if (et(t3) !== et(e3)) + return false; + if (t3.buffer === e3.buffer && t3.byteOffset === e3.byteOffset) + return true; + o2 = true; + } + if (!o2) { + if (typeof t3 != "object" || typeof e3 != "object") + return false; + var s2 = t3.constructor, a2 = e3.constructor; + if (s2 !== a2 && !(V(s2) && s2 instanceof s2 && V(a2) && a2 instanceof a2) && "constructor" in t3 && "constructor" in e3) + return false; + } + r3 = r3 || []; + for (var c2 = (n3 = n3 || []).length; c2--; ) + if (n3[c2] === t3) + return r3[c2] === e3; + if (n3.push(t3), r3.push(e3), o2) { + if ((c2 = t3.length) !== e3.length) + return false; + for (; c2--; ) + if (!dt(t3[c2], e3[c2], n3, r3)) + return false; + } else { + var u2, f2 = at(t3); + if (c2 = f2.length, at(e3).length !== c2) + return false; + for (; c2--; ) + if (!q(e3, u2 = f2[c2]) || !dt(t3[u2], e3[u2], n3, r3)) + return false; + } + return n3.pop(), r3.pop(), true; + } + function gt(t3, e3) { + return dt(t3, e3); + } + function vt(t3) { + if (!S(t3)) + return []; + var e3 = []; + for (var n3 in t3) + e3.push(n3); + return x && st(t3, e3), e3; + } + function mt(t3) { + var e3 = ot(t3); + return function(n3) { + if (n3 == null) + return false; + var r3 = vt(n3); + if (ot(r3)) + return false; + for (var i2 = 0; i2 < e3; i2++) + if (!V(n3[t3[i2]])) + return false; + return t3 !== Ot || !V(n3[yt]); + }; + } + var yt = "forEach", bt = ["clear", "delete"], wt = ["get", "has", "set"], xt = bt.concat(yt, wt), Ot = bt.concat(wt), Ct = ["add"].concat(bt, yt, "has"); + const kt = z ? mt(xt) : j("Map"), St = z ? mt(Ot) : j("WeakMap"), Pt = z ? mt(Ct) : j("Set"), _t = j("WeakSet"); + function Tt(t3) { + for (var e3 = at(t3), n3 = e3.length, r3 = Array(n3), i2 = 0; i2 < n3; i2++) + r3[i2] = t3[e3[i2]]; + return r3; + } + function Et(t3) { + for (var e3 = at(t3), n3 = e3.length, r3 = Array(n3), i2 = 0; i2 < n3; i2++) + r3[i2] = [e3[i2], t3[e3[i2]]]; + return r3; + } + function jt(t3) { + for (var e3 = {}, n3 = at(t3), r3 = 0, i2 = n3.length; r3 < i2; r3++) + e3[t3[n3[r3]]] = n3[r3]; + return e3; + } + function Dt(t3) { + var e3 = []; + for (var n3 in t3) + V(t3[n3]) && e3.push(n3); + return e3.sort(); + } + function Mt(t3, e3) { + return function(n3) { + var r3 = arguments.length; + if (e3 && (n3 = Object(n3)), r3 < 2 || n3 == null) + return n3; + for (var i2 = 1; i2 < r3; i2++) + for (var o2 = arguments[i2], s2 = t3(o2), a2 = s2.length, l2 = 0; l2 < a2; l2++) { + var c2 = s2[l2]; + e3 && n3[c2] !== void 0 || (n3[c2] = o2[c2]); + } + return n3; + }; + } + const At = Mt(vt), Lt = Mt(at), Rt = Mt(vt, true); + function Nt(t3) { + if (!S(t3)) + return {}; + if (m) + return m(t3); + var e3 = function() { + }; + e3.prototype = t3; + var n3 = new e3(); + return e3.prototype = null, n3; + } + function Zt(t3, e3) { + var n3 = Nt(t3); + return e3 && Lt(n3, e3), n3; + } + function It(t3) { + return S(t3) ? $(t3) ? t3.slice() : At({}, t3) : t3; + } + function Ft(t3, e3) { + return e3(t3), t3; + } + function Vt(t3) { + return $(t3) ? t3 : [t3]; + } + function Ht(t3) { + return ut.toPath(t3); + } + function Bt(t3, e3) { + for (var n3 = e3.length, r3 = 0; r3 < n3; r3++) { + if (t3 == null) + return; + t3 = t3[e3[r3]]; + } + return n3 ? t3 : void 0; + } + function zt(t3, e3, n3) { + var r3 = Bt(t3, Ht(e3)); + return _(r3) ? n3 : r3; + } + function Ut(t3, e3) { + for (var n3 = (e3 = Ht(e3)).length, r3 = 0; r3 < n3; r3++) { + var i2 = e3[r3]; + if (!q(t3, i2)) + return false; + t3 = t3[i2]; + } + return !!n3; + } + function Wt(t3) { + return t3; + } + function $t(t3) { + return t3 = Lt({}, t3), function(e3) { + return ct(e3, t3); + }; + } + function qt(t3) { + return t3 = Ht(t3), function(e3) { + return Bt(e3, t3); + }; + } + function Gt(t3, e3, n3) { + if (e3 === void 0) + return t3; + switch (n3 == null ? 3 : n3) { + case 1: + return function(n4) { + return t3.call(e3, n4); + }; + case 3: + return function(n4, r3, i2) { + return t3.call(e3, n4, r3, i2); + }; + case 4: + return function(n4, r3, i2, o2) { + return t3.call(e3, n4, r3, i2, o2); + }; + } + return function() { + return t3.apply(e3, arguments); + }; + } + function Kt(t3, e3, n3) { + return t3 == null ? Wt : V(t3) ? Gt(t3, e3, n3) : S(t3) && !$(t3) ? $t(t3) : qt(t3); + } + function Yt(t3, e3) { + return Kt(t3, e3, 1 / 0); + } + function Jt(t3, e3, n3) { + return ut.iteratee !== Yt ? ut.iteratee(t3, e3) : Kt(t3, e3, n3); + } + function Xt(t3, e3, n3) { + e3 = Jt(e3, n3); + for (var r3 = at(t3), i2 = r3.length, o2 = {}, s2 = 0; s2 < i2; s2++) { + var a2 = r3[s2]; + o2[a2] = e3(t3[a2], a2, t3); + } + return o2; + } + function Qt() { + } + function te(t3) { + return t3 == null ? Qt : function(e3) { + return zt(t3, e3); + }; + } + function ee(t3, e3, n3) { + var r3 = Array(Math.max(0, t3)); + e3 = Gt(e3, n3, 1); + for (var i2 = 0; i2 < t3; i2++) + r3[i2] = e3(i2); + return r3; + } + function ne(t3, e3) { + return e3 == null && (e3 = t3, t3 = 0), t3 + Math.floor(Math.random() * (e3 - t3 + 1)); + } + ut.toPath = Vt, ut.iteratee = Yt; + const re = Date.now || function() { + return new Date().getTime(); + }; + function ie(t3) { + var e3 = function(e4) { + return t3[e4]; + }, n3 = "(?:" + at(t3).join("|") + ")", r3 = RegExp(n3), i2 = RegExp(n3, "g"); + return function(t4) { + return t4 = t4 == null ? "" : "" + t4, r3.test(t4) ? t4.replace(i2, e3) : t4; + }; + } + const oe = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'", "`": "`" }, se = ie(oe), ae = ie(jt(oe)), le = ut.templateSettings = { evaluate: /<%([\s\S]+?)%>/g, interpolate: /<%=([\s\S]+?)%>/g, escape: /<%-([\s\S]+?)%>/g }; + var ce = /(.)^/, ue = { "'": "'", "\\": "\\", "\r": "r", "\n": "n", "\u2028": "u2028", "\u2029": "u2029" }, he = /\\|'|\r|\n|\u2028|\u2029/g; + function fe(t3) { + return "\\" + ue[t3]; + } + var de = /^\s*(\w|\$)+\s*$/; + function pe(t3, e3, n3) { + !e3 && n3 && (e3 = n3), e3 = Rt({}, e3, ut.templateSettings); + var r3 = RegExp([(e3.escape || ce).source, (e3.interpolate || ce).source, (e3.evaluate || ce).source].join("|") + "|$", "g"), i2 = 0, o2 = "__p+='"; + t3.replace(r3, function(e4, n4, r4, s3, a3) { + return o2 += t3.slice(i2, a3).replace(he, fe), i2 = a3 + e4.length, n4 ? o2 += "'+\n((__t=(" + n4 + "))==null?'':_.escape(__t))+\n'" : r4 ? o2 += "'+\n((__t=(" + r4 + "))==null?'':__t)+\n'" : s3 && (o2 += "';\n" + s3 + "\n__p+='"), e4; + }), o2 += "';\n"; + var s2, a2 = e3.variable; + if (a2) { + if (!de.test(a2)) + throw new Error("variable is not a bare identifier: " + a2); + } else + o2 = "with(obj||{}){\n" + o2 + "}\n", a2 = "obj"; + o2 = "var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n" + o2 + "return __p;\n"; + try { + s2 = new Function(a2, "_", o2); + } catch (t4) { + throw t4.source = o2, t4; + } + var l2 = function(t4) { + return s2.call(this, t4, ut); + }; + return l2.source = "function(" + a2 + "){\n" + o2 + "}", l2; + } + function ge(t3, e3, n3) { + var r3 = (e3 = Ht(e3)).length; + if (!r3) + return V(n3) ? n3.call(t3) : n3; + for (var i2 = 0; i2 < r3; i2++) { + var o2 = t3 == null ? void 0 : t3[e3[i2]]; + o2 === void 0 && (o2 = n3, i2 = r3), t3 = V(o2) ? o2.call(t3) : o2; + } + return t3; + } + var ve = 0; + function me(t3) { + var e3 = ++ve + ""; + return t3 ? t3 + e3 : e3; + } + function ye(t3) { + var e3 = ut(t3); + return e3._chain = true, e3; + } + function be(t3, e3, n3, r3, i2) { + if (!(r3 instanceof e3)) + return t3.apply(n3, i2); + var o2 = Nt(t3.prototype), s2 = t3.apply(o2, i2); + return S(s2) ? s2 : o2; + } + var we = k(function(t3, e3) { + var n3 = we.placeholder, r3 = function() { + for (var i2 = 0, o2 = e3.length, s2 = Array(o2), a2 = 0; a2 < o2; a2++) + s2[a2] = e3[a2] === n3 ? arguments[i2++] : e3[a2]; + for (; i2 < arguments.length; ) + s2.push(arguments[i2++]); + return be(t3, r3, this, this, s2); + }; + return r3; + }); + we.placeholder = ut; + const xe = we, Oe = k(function(t3, e3, n3) { + if (!V(t3)) + throw new TypeError("Bind must be called on a function"); + var r3 = k(function(i2) { + return be(t3, r3, e3, this, n3.concat(i2)); + }); + return r3; + }), Ce = Q(ot); + function ke(t3, e3, n3, r3) { + if (r3 = r3 || [], e3 || e3 === 0) { + if (e3 <= 0) + return r3.concat(t3); + } else + e3 = 1 / 0; + for (var i2 = r3.length, o2 = 0, s2 = ot(t3); o2 < s2; o2++) { + var a2 = t3[o2]; + if (Ce(a2) && ($(a2) || K(a2))) + if (e3 > 1) + ke(a2, e3 - 1, n3, r3), i2 = r3.length; + else + for (var l2 = 0, c2 = a2.length; l2 < c2; ) + r3[i2++] = a2[l2++]; + else + n3 || (r3[i2++] = a2); + } + return r3; + } + const Se = k(function(t3, e3) { + var n3 = (e3 = ke(e3, false, false)).length; + if (n3 < 1) + throw new Error("bindAll must be passed function names"); + for (; n3--; ) { + var r3 = e3[n3]; + t3[r3] = Oe(t3[r3], t3); + } + return t3; + }); + function Pe(t3, e3) { + var n3 = function(r3) { + var i2 = n3.cache, o2 = "" + (e3 ? e3.apply(this, arguments) : r3); + return q(i2, o2) || (i2[o2] = t3.apply(this, arguments)), i2[o2]; + }; + return n3.cache = {}, n3; + } + const _e = k(function(t3, e3, n3) { + return setTimeout(function() { + return t3.apply(null, n3); + }, e3); + }), Te = xe(_e, ut, 1); + function Ee(t3, e3, n3) { + var r3, i2, o2, s2, a2 = 0; + n3 || (n3 = {}); + var l2 = function() { + a2 = n3.leading === false ? 0 : re(), r3 = null, s2 = t3.apply(i2, o2), r3 || (i2 = o2 = null); + }, c2 = function() { + var c3 = re(); + a2 || n3.leading !== false || (a2 = c3); + var u2 = e3 - (c3 - a2); + return i2 = this, o2 = arguments, u2 <= 0 || u2 > e3 ? (r3 && (clearTimeout(r3), r3 = null), a2 = c3, s2 = t3.apply(i2, o2), r3 || (i2 = o2 = null)) : r3 || n3.trailing === false || (r3 = setTimeout(l2, u2)), s2; + }; + return c2.cancel = function() { + clearTimeout(r3), a2 = 0, r3 = i2 = o2 = null; + }, c2; + } + function je(t3, e3, n3) { + var r3, i2, o2, s2, a2, l2 = function() { + var c3 = re() - i2; + e3 > c3 ? r3 = setTimeout(l2, e3 - c3) : (r3 = null, n3 || (s2 = t3.apply(a2, o2)), r3 || (o2 = a2 = null)); + }, c2 = k(function(c3) { + return a2 = this, o2 = c3, i2 = re(), r3 || (r3 = setTimeout(l2, e3), n3 && (s2 = t3.apply(a2, o2))), s2; + }); + return c2.cancel = function() { + clearTimeout(r3), r3 = o2 = a2 = null; + }, c2; + } + function De(t3, e3) { + return xe(e3, t3); + } + function Me(t3) { + return function() { + return !t3.apply(this, arguments); + }; + } + function Ae() { + var t3 = arguments, e3 = t3.length - 1; + return function() { + for (var n3 = e3, r3 = t3[e3].apply(this, arguments); n3--; ) + r3 = t3[n3].call(this, r3); + return r3; + }; + } + function Le(t3, e3) { + return function() { + if (--t3 < 1) + return e3.apply(this, arguments); + }; + } + function Re(t3, e3) { + var n3; + return function() { + return --t3 > 0 && (n3 = e3.apply(this, arguments)), t3 <= 1 && (e3 = null), n3; + }; + } + const Ne = xe(Re, 2); + function Ze(t3, e3, n3) { + e3 = Jt(e3, n3); + for (var r3, i2 = at(t3), o2 = 0, s2 = i2.length; o2 < s2; o2++) + if (e3(t3[r3 = i2[o2]], r3, t3)) + return r3; + } + function Ie(t3) { + return function(e3, n3, r3) { + n3 = Jt(n3, r3); + for (var i2 = ot(e3), o2 = t3 > 0 ? 0 : i2 - 1; o2 >= 0 && o2 < i2; o2 += t3) + if (n3(e3[o2], o2, e3)) + return o2; + return -1; + }; + } + const Fe = Ie(1), Ve = Ie(-1); + function He(t3, e3, n3, r3) { + for (var i2 = (n3 = Jt(n3, r3, 1))(e3), o2 = 0, s2 = ot(t3); o2 < s2; ) { + var a2 = Math.floor((o2 + s2) / 2); + n3(t3[a2]) < i2 ? o2 = a2 + 1 : s2 = a2; + } + return o2; + } + function Be(t3, e3, n3) { + return function(r3, i2, o2) { + var s2 = 0, a2 = ot(r3); + if (typeof o2 == "number") + t3 > 0 ? s2 = o2 >= 0 ? o2 : Math.max(o2 + a2, s2) : a2 = o2 >= 0 ? Math.min(o2 + 1, a2) : o2 + a2 + 1; + else if (n3 && o2 && a2) + return r3[o2 = n3(r3, i2)] === i2 ? o2 : -1; + if (i2 != i2) + return (o2 = e3(u.call(r3, s2, a2), J)) >= 0 ? o2 + s2 : -1; + for (o2 = t3 > 0 ? s2 : a2 - 1; o2 >= 0 && o2 < a2; o2 += t3) + if (r3[o2] === i2) + return o2; + return -1; + }; + } + const ze = Be(1, Fe, He), Ue = Be(-1, Ve); + function We(t3, e3, n3) { + var r3 = (Ce(t3) ? Fe : Ze)(t3, e3, n3); + if (r3 !== void 0 && r3 !== -1) + return t3[r3]; + } + function $e(t3, e3) { + return We(t3, $t(e3)); + } + function qe(t3, e3, n3) { + var r3, i2; + if (e3 = Gt(e3, n3), Ce(t3)) + for (r3 = 0, i2 = t3.length; r3 < i2; r3++) + e3(t3[r3], r3, t3); + else { + var o2 = at(t3); + for (r3 = 0, i2 = o2.length; r3 < i2; r3++) + e3(t3[o2[r3]], o2[r3], t3); + } + return t3; + } + function Ge(t3, e3, n3) { + e3 = Jt(e3, n3); + for (var r3 = !Ce(t3) && at(t3), i2 = (r3 || t3).length, o2 = Array(i2), s2 = 0; s2 < i2; s2++) { + var a2 = r3 ? r3[s2] : s2; + o2[s2] = e3(t3[a2], a2, t3); + } + return o2; + } + function Ke(t3) { + var e3 = function(e4, n3, r3, i2) { + var o2 = !Ce(e4) && at(e4), s2 = (o2 || e4).length, a2 = t3 > 0 ? 0 : s2 - 1; + for (i2 || (r3 = e4[o2 ? o2[a2] : a2], a2 += t3); a2 >= 0 && a2 < s2; a2 += t3) { + var l2 = o2 ? o2[a2] : a2; + r3 = n3(r3, e4[l2], l2, e4); + } + return r3; + }; + return function(t4, n3, r3, i2) { + var o2 = arguments.length >= 3; + return e3(t4, Gt(n3, i2, 4), r3, o2); + }; + } + const Ye = Ke(1), Je = Ke(-1); + function Xe(t3, e3, n3) { + var r3 = []; + return e3 = Jt(e3, n3), qe(t3, function(t4, n4, i2) { + e3(t4, n4, i2) && r3.push(t4); + }), r3; + } + function Qe(t3, e3, n3) { + return Xe(t3, Me(Jt(e3)), n3); + } + function tn(t3, e3, n3) { + e3 = Jt(e3, n3); + for (var r3 = !Ce(t3) && at(t3), i2 = (r3 || t3).length, o2 = 0; o2 < i2; o2++) { + var s2 = r3 ? r3[o2] : o2; + if (!e3(t3[s2], s2, t3)) + return false; + } + return true; + } + function en(t3, e3, n3) { + e3 = Jt(e3, n3); + for (var r3 = !Ce(t3) && at(t3), i2 = (r3 || t3).length, o2 = 0; o2 < i2; o2++) { + var s2 = r3 ? r3[o2] : o2; + if (e3(t3[s2], s2, t3)) + return true; + } + return false; + } + function nn(t3, e3, n3, r3) { + return Ce(t3) || (t3 = Tt(t3)), (typeof n3 != "number" || r3) && (n3 = 0), ze(t3, e3, n3) >= 0; + } + const rn = k(function(t3, e3, n3) { + var r3, i2; + return V(e3) ? i2 = e3 : (e3 = Ht(e3), r3 = e3.slice(0, -1), e3 = e3[e3.length - 1]), Ge(t3, function(t4) { + var o2 = i2; + if (!o2) { + if (r3 && r3.length && (t4 = Bt(t4, r3)), t4 == null) + return; + o2 = t4[e3]; + } + return o2 == null ? o2 : o2.apply(t4, n3); + }); + }); + function on(t3, e3) { + return Ge(t3, qt(e3)); + } + function sn(t3, e3) { + return Xe(t3, $t(e3)); + } + function an(t3, e3, n3) { + var r3, i2, o2 = -1 / 0, s2 = -1 / 0; + if (e3 == null || typeof e3 == "number" && typeof t3[0] != "object" && t3 != null) + for (var a2 = 0, l2 = (t3 = Ce(t3) ? t3 : Tt(t3)).length; a2 < l2; a2++) + (r3 = t3[a2]) != null && r3 > o2 && (o2 = r3); + else + e3 = Jt(e3, n3), qe(t3, function(t4, n4, r4) { + ((i2 = e3(t4, n4, r4)) > s2 || i2 === -1 / 0 && o2 === -1 / 0) && (o2 = t4, s2 = i2); + }); + return o2; + } + function ln(t3, e3, n3) { + var r3, i2, o2 = 1 / 0, s2 = 1 / 0; + if (e3 == null || typeof e3 == "number" && typeof t3[0] != "object" && t3 != null) + for (var a2 = 0, l2 = (t3 = Ce(t3) ? t3 : Tt(t3)).length; a2 < l2; a2++) + (r3 = t3[a2]) != null && r3 < o2 && (o2 = r3); + else + e3 = Jt(e3, n3), qe(t3, function(t4, n4, r4) { + ((i2 = e3(t4, n4, r4)) < s2 || i2 === 1 / 0 && o2 === 1 / 0) && (o2 = t4, s2 = i2); + }); + return o2; + } + function cn(t3, e3, n3) { + if (e3 == null || n3) + return Ce(t3) || (t3 = Tt(t3)), t3[ne(t3.length - 1)]; + var r3 = Ce(t3) ? It(t3) : Tt(t3), i2 = ot(r3); + e3 = Math.max(Math.min(e3, i2), 0); + for (var o2 = i2 - 1, s2 = 0; s2 < e3; s2++) { + var a2 = ne(s2, o2), l2 = r3[s2]; + r3[s2] = r3[a2], r3[a2] = l2; + } + return r3.slice(0, e3); + } + function un(t3) { + return cn(t3, 1 / 0); + } + function hn(t3, e3, n3) { + var r3 = 0; + return e3 = Jt(e3, n3), on(Ge(t3, function(t4, n4, i2) { + return { value: t4, index: r3++, criteria: e3(t4, n4, i2) }; + }).sort(function(t4, e4) { + var n4 = t4.criteria, r4 = e4.criteria; + if (n4 !== r4) { + if (n4 > r4 || n4 === void 0) + return 1; + if (n4 < r4 || r4 === void 0) + return -1; + } + return t4.index - e4.index; + }), "value"); + } + function fn(t3, e3) { + return function(n3, r3, i2) { + var o2 = e3 ? [[], []] : {}; + return r3 = Jt(r3, i2), qe(n3, function(e4, i3) { + var s2 = r3(e4, i3, n3); + t3(o2, e4, s2); + }), o2; + }; + } + const dn = fn(function(t3, e3, n3) { + q(t3, n3) ? t3[n3].push(e3) : t3[n3] = [e3]; + }), pn = fn(function(t3, e3, n3) { + t3[n3] = e3; + }), gn = fn(function(t3, e3, n3) { + q(t3, n3) ? t3[n3]++ : t3[n3] = 1; + }), vn = fn(function(t3, e3, n3) { + t3[n3 ? 0 : 1].push(e3); + }, true); + var mn = /[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g; + function yn(t3) { + return t3 ? $(t3) ? u.call(t3) : D(t3) ? t3.match(mn) : Ce(t3) ? Ge(t3, Wt) : Tt(t3) : []; + } + function bn(t3) { + return t3 == null ? 0 : Ce(t3) ? t3.length : at(t3).length; + } + function wn(t3, e3, n3) { + return e3 in n3; + } + const xn = k(function(t3, e3) { + var n3 = {}, r3 = e3[0]; + if (t3 == null) + return n3; + V(r3) ? (e3.length > 1 && (r3 = Gt(r3, e3[1])), e3 = vt(t3)) : (r3 = wn, e3 = ke(e3, false, false), t3 = Object(t3)); + for (var i2 = 0, o2 = e3.length; i2 < o2; i2++) { + var s2 = e3[i2], a2 = t3[s2]; + r3(a2, s2, t3) && (n3[s2] = a2); + } + return n3; + }), On = k(function(t3, e3) { + var n3, r3 = e3[0]; + return V(r3) ? (r3 = Me(r3), e3.length > 1 && (n3 = e3[1])) : (e3 = Ge(ke(e3, false, false), String), r3 = function(t4, n4) { + return !nn(e3, n4); + }), xn(t3, r3, n3); + }); + function Cn(t3, e3, n3) { + return u.call(t3, 0, Math.max(0, t3.length - (e3 == null || n3 ? 1 : e3))); + } + function kn(t3, e3, n3) { + return t3 == null || t3.length < 1 ? e3 == null || n3 ? void 0 : [] : e3 == null || n3 ? t3[0] : Cn(t3, t3.length - e3); + } + function Sn(t3, e3, n3) { + return u.call(t3, e3 == null || n3 ? 1 : e3); + } + function Pn(t3, e3, n3) { + return t3 == null || t3.length < 1 ? e3 == null || n3 ? void 0 : [] : e3 == null || n3 ? t3[t3.length - 1] : Sn(t3, Math.max(0, t3.length - e3)); + } + function _n(t3) { + return Xe(t3, Boolean); + } + function Tn(t3, e3) { + return ke(t3, e3, false); + } + const En = k(function(t3, e3) { + return e3 = ke(e3, true, true), Xe(t3, function(t4) { + return !nn(e3, t4); + }); + }), jn = k(function(t3, e3) { + return En(t3, e3); + }); + function Dn(t3, e3, n3, r3) { + T(e3) || (r3 = n3, n3 = e3, e3 = false), n3 != null && (n3 = Jt(n3, r3)); + for (var i2 = [], o2 = [], s2 = 0, a2 = ot(t3); s2 < a2; s2++) { + var l2 = t3[s2], c2 = n3 ? n3(l2, s2, t3) : l2; + e3 && !n3 ? (s2 && o2 === c2 || i2.push(l2), o2 = c2) : n3 ? nn(o2, c2) || (o2.push(c2), i2.push(l2)) : nn(i2, l2) || i2.push(l2); + } + return i2; + } + const Mn = k(function(t3) { + return Dn(ke(t3, true, true)); + }); + function An(t3) { + for (var e3 = [], n3 = arguments.length, r3 = 0, i2 = ot(t3); r3 < i2; r3++) { + var o2 = t3[r3]; + if (!nn(e3, o2)) { + var s2; + for (s2 = 1; s2 < n3 && nn(arguments[s2], o2); s2++) + ; + s2 === n3 && e3.push(o2); + } + } + return e3; + } + function Ln(t3) { + for (var e3 = t3 && an(t3, ot).length || 0, n3 = Array(e3), r3 = 0; r3 < e3; r3++) + n3[r3] = on(t3, r3); + return n3; + } + const Rn = k(Ln); + function Nn(t3, e3) { + for (var n3 = {}, r3 = 0, i2 = ot(t3); r3 < i2; r3++) + e3 ? n3[t3[r3]] = e3[r3] : n3[t3[r3][0]] = t3[r3][1]; + return n3; + } + function Zn(t3, e3, n3) { + e3 == null && (e3 = t3 || 0, t3 = 0), n3 || (n3 = e3 < t3 ? -1 : 1); + for (var r3 = Math.max(Math.ceil((e3 - t3) / n3), 0), i2 = Array(r3), o2 = 0; o2 < r3; o2++, t3 += n3) + i2[o2] = t3; + return i2; + } + function In(t3, e3) { + if (e3 == null || e3 < 1) + return []; + for (var n3 = [], r3 = 0, i2 = t3.length; r3 < i2; ) + n3.push(u.call(t3, r3, r3 += e3)); + return n3; + } + function Fn(t3, e3) { + return t3._chain ? ut(e3).chain() : e3; + } + function Vn(t3) { + return qe(Dt(t3), function(e3) { + var n3 = ut[e3] = t3[e3]; + ut.prototype[e3] = function() { + var t4 = [this._wrapped]; + return c.apply(t4, arguments), Fn(this, n3.apply(ut, t4)); + }; + }), ut; + } + qe(["pop", "push", "reverse", "shift", "sort", "splice", "unshift"], function(t3) { + var e3 = s[t3]; + ut.prototype[t3] = function() { + var n3 = this._wrapped; + return n3 != null && (e3.apply(n3, arguments), t3 !== "shift" && t3 !== "splice" || n3.length !== 0 || delete n3[0]), Fn(this, n3); + }; + }), qe(["concat", "join", "slice"], function(t3) { + var e3 = s[t3]; + ut.prototype[t3] = function() { + var t4 = this._wrapped; + return t4 != null && (t4 = e3.apply(t4, arguments)), Fn(this, t4); + }; + }); + const Hn = ut; + var Bn = Vn(r2); + Bn._ = Bn; + const zn = Bn; + } }, e = {}; + function n(r2) { + var i = e[r2]; + if (i !== void 0) + return i.exports; + var o = e[r2] = { exports: {} }; + return t[r2].call(o.exports, o, o.exports, n), o.exports; + } + n.n = (t2) => { + var e2 = t2 && t2.__esModule ? () => t2.default : () => t2; + return n.d(e2, { a: e2 }), e2; + }, n.d = (t2, e2) => { + for (var r2 in e2) + n.o(e2, r2) && !n.o(t2, r2) && Object.defineProperty(t2, r2, { enumerable: true, get: e2[r2] }); + }, n.g = function() { + if (typeof globalThis == "object") + return globalThis; + try { + return this || new Function("return this")(); + } catch (t2) { + if (typeof window == "object") + return window; + } + }(), n.o = (t2, e2) => Object.prototype.hasOwnProperty.call(t2, e2), n.r = (t2) => { + typeof Symbol != "undefined" && Symbol.toStringTag && Object.defineProperty(t2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t2, "__esModule", { value: true }); + }; + var r = {}; + return (() => { + "use strict"; + n.d(r, { default: () => V }); + var t2 = n(4942), e2 = n(9050), i = n(2579); + const o = { stylePrefix: "gjs-", components: "", style: "", fromElement: 0, noticeOnUnload: true, showOffsets: false, showOffsetsSelected: false, forceClass: true, height: "900px", width: "100%", log: ["warning", "error"], baseCss: "\n * {\n box-sizing: border-box;\n }\n html, body, [data-gjs-type=wrapper] {\n min-height: 100%;\n }\n body {\n margin: 0;\n height: 100%;\n background-color: #fff\n }\n [data-gjs-type=wrapper] {\n overflow: auto;\n overflow-x: hidden;\n }\n\n * ::-webkit-scrollbar-track {\n background: rgba(0, 0, 0, 0.1)\n }\n\n * ::-webkit-scrollbar-thumb {\n background: rgba(255, 255, 255, 0.2)\n }\n\n * ::-webkit-scrollbar {\n width: 10px\n }\n ", protectedCss: "* { box-sizing: border-box; } body {margin: 0;}", canvasCss: "", defaultCommand: "select-comp", showToolbar: 1, showDevices: 1, devicePreviewMode: 0, mediaCondition: "max-width", tagVarStart: "{[ ", tagVarEnd: " ]}", keepEmptyTextNodes: 0, jsInHtml: true, nativeDnD: 1, multipleSelection: 1, optsHtml: {}, optsCss: {}, avoidInlineStyle: 1, avoidDefaults: 1, clearStyles: 0, dragMode: 0, listenToEl: [], cssIcons: "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css", icons: { close: '<svg viewBox="0 0 24 24"><path fill="currentColor" d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"></path></svg>', move: '<svg viewBox="0 0 24 24"><path fill="currentColor" d="M13,6V11H18V7.75L22.25,12L18,16.25V13H13V18H16.25L12,22.25L7.75,18H11V13H6V16.25L1.75,12L6,7.75V11H11V6H7.75L12,1.75L16.25,6H13Z"/></svg>', plus: '<svg viewBox="0 0 24 24"><path fill="currentColor" d="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z" /></svg>', caret: '<svg viewBox="0 0 24 24"><path fill="currentColor" d="M7,10L12,15L17,10H7Z" /></svg>', delete: '<svg viewBox="0 0 24 24"><path fill="currentColor" d="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z" /></svg>', copy: '<svg viewBox="0 0 24 24"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z" /></svg>', arrowUp: '<svg viewBox="0 0 24 24"><path fill="currentColor" d="M13,20H11V8L5.5,13.5L4.08,12.08L12,4.16L19.92,12.08L18.5,13.5L13,8V20Z" /></svg>' }, el: "", i18n: {}, undoManager: {}, assetManager: {}, canvas: {}, layers: {}, storageManager: {}, richTextEditor: {}, domComponents: {}, modal: {}, codeManager: {}, panels: {}, commands: {}, cssComposer: {}, selectorManager: {}, deviceManager: {}, styleManager: {}, blockManager: {}, traitManager: {}, textViewCode: "Code", keepUnusedStyles: 0, multiFrames: 0, customUI: false }; + var s = n(4925), a = n(5671), l = n(3144), c = n(9340), u = n(3930), h = n(1120), f = n(2316), d = n.n(f); + var p = n(6183); + function g(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n2, r2 = (0, h.Z)(t3); + if (e3) { + var i2 = (0, h.Z)(this).constructor; + n2 = Reflect.construct(r2, arguments, i2); + } else + n2 = r2.apply(this, arguments); + return (0, u.Z)(this, n2); + }; + } + var v = function(t3) { + (0, c.Z)(n2, t3); + var e3 = g(n2); + function n2() { + return (0, a.Z)(this, n2), e3.apply(this, arguments); + } + return (0, l.Z)(n2); + }(f.Model), m = function(t3) { + (0, c.Z)(r2, t3); + var n2 = g(r2); + function r2() { + return (0, a.Z)(this, r2), n2.apply(this, arguments); + } + return (0, l.Z)(r2, [{ key: "getByComponent", value: function(t4) { + var e3 = this; + return this.filter(function(n3) { + return e3.getComponent(n3) === t4; + })[0]; + } }, { key: "addComponent", value: function(t4, n3) { + var r3 = this, i2 = ((0, e2.isArray)(t4) ? t4 : [t4]).filter(function(t5) { + return !r3.hasComponent(t5); + }).map(function(t5) { + return { component: t5 }; + }); + return this.push(i2, n3); + } }, { key: "getComponent", value: function(t4) { + return t4.get("component"); + } }, { key: "hasComponent", value: function(t4) { + var e3 = this.getByComponent(t4); + return e3 && this.contains(e3); + } }, { key: "lastComponent", value: function() { + var t4 = this.last(); + return t4 && this.getComponent(t4); + } }, { key: "allComponents", value: function() { + var t4 = this; + return this.map(function(e3) { + return t4.getComponent(e3); + }).filter(function(t5) { + return t5; + }); + } }, { key: "removeComponent", value: function(t4, n3) { + var r3 = this, i2 = ((0, e2.isArray)(t4) ? t4 : [t4]).map(function(t5) { + return r3.getByComponent(t5); + }); + return this.remove(i2, n3); + } }]), r2; + }(f.Collection); + m.prototype.model = v; + var y = ["unset"]; + function b(t3, e3) { + var n2 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r2 = Object.getOwnPropertySymbols(t3); + e3 && (r2 = r2.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n2.push.apply(n2, r2); + } + return n2; + } + function w(e3) { + for (var n2 = 1; n2 < arguments.length; n2++) { + var r2 = arguments[n2] != null ? arguments[n2] : {}; + n2 % 2 ? b(Object(r2), true).forEach(function(n3) { + (0, t2.Z)(e3, n3, r2[n3]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e3, Object.getOwnPropertyDescriptors(r2)) : b(Object(r2)).forEach(function(t3) { + Object.defineProperty(e3, t3, Object.getOwnPropertyDescriptor(r2, t3)); + }); + } + return e3; + } + function x(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n2, r2 = (0, h.Z)(t3); + if (e3) { + var i2 = (0, h.Z)(this).constructor; + n2 = Reflect.construct(r2, arguments, i2); + } else + n2 = r2.apply(this, arguments); + return (0, u.Z)(this, n2); + }; + } + d().$ = i.default; + var O, C, k = [n(6718), n(4836), n(9788), n(8202), n(4859), n(2004), n(4424), n(2326), n(4755), n(2450), n(7619), n(4906), n(2012), n(1030), n(672), n(2567), n(6388), n(9831), n(77), n(6950), n(289), n(6407)]; + !function(t3) { + var n2 = t3.$; + if (n2 && n2.prototype && n2.prototype.constructor.name !== "jQuery") { + var r2 = n2.fn; + r2.hide = function() { + return this.css("display", "none"); + }, r2.show = function() { + return this.css("display", "block"); + }, r2.focus = function() { + var t4 = this.get(0); + return t4 && t4.focus(), this; + }, r2.bind = function(t4, e3) { + return this.on(t4, e3); + }, r2.unbind = function(t4, n3) { + if ((0, e2.isObject)(t4)) { + for (var r3 in t4) + t4.hasOwnProperty(r3) && this.off(r3, t4[r3]); + return this; + } + return this.off(t4, n3); + }, r2.click = function(t4) { + return t4 ? this.on("click", t4) : this.trigger("click"); + }, r2.change = function(t4) { + return t4 ? this.on("change", t4) : this.trigger("change"); + }, r2.keydown = function(t4) { + return t4 ? this.on("keydown", t4) : this.trigger("keydown"); + }, r2.delegate = function(t4, e3, n3, r3) { + return r3 || (r3 = n3), this.on(e3, t4, function(t5) { + t5.data = n3, r3(t5); + }); + }, r2.scrollLeft = function() { + var t4 = this.get(0), e3 = (t4 = t4.nodeType == 9 ? t4.defaultView : t4) instanceof Window ? t4 : null; + return e3 ? e3.pageXOffset : t4.scrollLeft || 0; + }, r2.scrollTop = function() { + var t4 = this.get(0), e3 = (t4 = t4.nodeType == 9 ? t4.defaultView : t4) instanceof Window ? t4 : null; + return e3 ? e3.pageYOffset : t4.scrollTop || 0; + }; + var i2 = n2.prototype.offset; + r2.offset = function(t4) { + var e3, n3; + return t4 && (e3 = t4.top, n3 = t4.left), e3 !== void 0 && this.css("top", "".concat(e3, "px")), n3 !== void 0 && this.css("left", "".concat(n3, "px")), i2.call(this); + }, n2.map = function(t4, e3) { + for (var n3 = [], r3 = 0; r3 < t4.length; r3++) + n3.push(e3(t4[r3], r3)); + return n3; + }; + var o2 = Array.prototype.indexOf; + n2.inArray = function(t4, e3, n3) { + return e3 == null ? -1 : o2.call(e3, t4, n3); + }, n2.Event = function(t4, e3) { + if (!(this instanceof n2.Event)) + return new n2.Event(t4, e3); + this.type = t4, this.isDefaultPrevented = function() { + return false; + }; + }; + } + }({ Backbone: d(), $: d().$ }); + var S = { debug: console.log, info: console.info, warning: console.warn, error: console.error }, P = function(t3) { + (0, c.Z)(r2, t3); + var n2 = x(r2); + function r2() { + return (0, a.Z)(this, r2), n2.apply(this, arguments); + } + return (0, l.Z)(r2, [{ key: "defaults", value: function() { + return { editing: 0, selected: 0, clipboard: null, dmode: 0, componentHovered: null, previousModel: null, changesCount: 0, storables: [], modules: [], toLoad: [], opened: {}, device: "" }; + } }, { key: "initialize", value: function() { + var t4 = this, n3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + this.config = n3, this.set("Config", n3), this.set("modules", []), this.set("toLoad", []), this.set("storables", []), this.set("selected", new m()), this.set("dmode", n3.dragMode), this.set("hasPages", !!n3.pageManager); + var r3 = n3.el, i2 = n3.log, o2 = i2 === true ? (0, e2.keys)(S) : (0, e2.isArray)(i2) ? i2 : []; + (0, e2.bindAll)(this, "initBaseColorPicker"), r3 && n3.fromElement && (this.config.components = r3.innerHTML), this.attrsOrig = r3 ? (0, e2.toArray)(r3.attributes).reduce(function(t5, e3) { + return t5[e3.nodeName] = e3.nodeValue, t5; + }, {}) : "", k.forEach(function(e3) { + return t4.loadModule(e3); + }), this.on("change:componentHovered", this.componentHovered, this), this.on("change:changesCount", this.updateChanges, this), this.on("change:readyLoad change:readyCanvas", this._checkReady, this), o2.forEach(function(e3) { + return t4.listenLog(e3); + }), [{ from: "change:selectedComponent", to: "component:toggled" }].forEach(function(e3) { + var n4 = e3.from, r4 = e3.to; + t4.listenTo(t4, n4, function() { + for (var e4 = arguments.length, i3 = new Array(e4), o3 = 0; o3 < e4; o3++) + i3[o3] = arguments[o3]; + t4.trigger.apply(t4, [r4].concat(i3)), t4.logWarning("The event '".concat(n4, "' is deprecated, replace it with '").concat(r4, "'")); + }); + }); + } }, { key: "_checkReady", value: function() { + this.get("readyLoad") && this.get("readyCanvas") && !this.get("ready") && this.set("ready", true); + } }, { key: "getContainer", value: function() { + return this.config.el; + } }, { key: "listenLog", value: function(t4) { + this.listenTo(this, "log:".concat(t4), S[t4]); + } }, { key: "getConfig", value: function(t4) { + var n3 = this.config; + return (0, e2.isUndefined)(t4) ? n3 : n3[t4]; + } }, { key: "loadOnStart", value: function() { + var t4 = this, e3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null, n3 = this.get("StorageManager"); + this.get("toLoad").forEach(function(t5) { + return t5.onLoad(); + }); + var i2 = function() { + t4.get("modules").forEach(function(e4) { + return e4.postLoad && e4.postLoad(t4); + }), t4.set("readyLoad", 1), e3 && e3(); + }; + n3 && n3.canAutoload() ? this.load(i2) : setTimeout(i2); + var o2 = new r2({ noticeOnUnload: false, storageManager: false, undoManager: false }); + ["PageManager", "Canvas"].forEach(function(t5) { + return o2.get(t5).onLoad(); + }), this.set("shallow", o2); + } }, { key: "updateChanges", value: function() { + var t4 = this, e3 = this.get("StorageManager"), n3 = this.get("changesCount"); + C && clearTimeout(C), C = setTimeout(function() { + return t4.trigger("update"); + }), this.config.noticeOnUnload && (window.onbeforeunload = n3 ? function(t5) { + return 1; + } : null), e3.isAutosave() && n3 >= e3.getStepsBeforeSave() && this.store(); + } }, { key: "loadModule", value: function(t4) { + var n3 = this.config, r3 = new (t4.default || t4)(), i2 = r3.name.charAt(0).toLowerCase() + r3.name.slice(1), o2 = (0, e2.isUndefined)(n3[i2]) ? n3[r3.name] : n3[i2], s2 = o2 === true ? {} : o2 || {}, a2 = this.get("StorageManager"); + if (s2.pStylePrefix = n3.pStylePrefix || "", (0, e2.isUndefined)(o2) || o2 || (s2._disable = 1), r3.storageKey && r3.store && r3.load && a2) { + s2.stm = a2; + var l2 = i2 == "domComponents" ? "unshift" : "push"; + this.get("storables")[l2](r3); + } + return s2.em = this, r3.init(w({}, s2)), !r3.private && this.set(r3.name, r3), r3.onLoad && this.get("toLoad").push(r3), this.get("modules").push(r3), this; + } }, { key: "init", value: function(t4) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + this.destroyed && (this.initialize(e3), this.destroyed = 0), this.set("Editor", t4); + } }, { key: "getEditor", value: function() { + return this.get("Editor"); + } }, { key: "handleUpdates", value: function(t4, e3) { + var n3 = this, r3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + this.__skip || r3.temporary || r3.noCount || r3.avoidStore || !this.get("ready") || (O && clearTimeout(O), O = setTimeout(function() { + var t5 = n3.get("changesCount") || 0, e4 = (r3.unset, (0, s.Z)(r3, y)); + n3.set("changesCount", t5 + 1, e4); + }, 0)); + } }, { key: "changesUp", value: function(t4) { + this.handleUpdates(0, 0, t4); + } }, { key: "componentHovered", value: function(t4, e3, n3) { + var r3 = this.previous("componentHovered"); + r3 && this.trigger("component:unhovered", r3, n3), e3 && this.trigger("component:hovered", e3, n3); + } }, { key: "getSelected", value: function() { + return this.get("selected").lastComponent(); + } }, { key: "getSelectedAll", value: function() { + return this.get("selected").allComponents(); + } }, { key: "setSelected", value: function(t4) { + var n3 = this, r3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o2 = r3.event, s2 = o2 && (o2.ctrlKey || o2.metaKey), a2 = o2 || {}, l2 = a2.shiftKey, c2 = (0, e2.isArray)(t4), u2 = (c2 ? t4 : [t4]).map(function(t5) { + return (0, p.getModel)(t5, i.default); + }), h2 = this.getSelectedAll(), f2 = this.getConfig("multipleSelection"); + c2 && this.removeSelected(h2.filter(function(t5) { + return !(0, e2.contains)(u2, t5); + })), u2.forEach(function(t5) { + var i2 = (0, p.getModel)(t5); + if (i2 && (n3.trigger("component:select:before", i2, r3), !i2.get("selectable") || r3.abort)) { + if (!r3.useValid) + return; + for (var o3 = i2.parent(); o3 && !o3.get("selectable"); ) + o3 = o3.parent(); + i2 = o3; + } + if (s2 && f2) + return n3.toggleSelected(i2); + if (l2 && f2) { + n3.clearSelection(n3.get("Canvas").getWindow()); + var a3, u3, d2 = i2.collection, g2 = i2.index(); + if (n3.getSelectedAll().forEach(function(t6) { + var n4 = t6.collection, r4 = t6.index(); + n4 === d2 && (r4 < g2 ? a3 = (0, e2.isUndefined)(a3) ? r4 : Math.max(a3, r4) : r4 > g2 && (u3 = (0, e2.isUndefined)(u3) ? r4 : Math.min(u3, r4))); + }), !(0, e2.isUndefined)(a3)) + for (; a3 !== g2; ) + n3.addSelected(d2.at(a3)), a3++; + if (!(0, e2.isUndefined)(u3)) + for (; u3 !== g2; ) + n3.addSelected(d2.at(u3)), u3--; + return n3.addSelected(i2); + } + !c2 && n3.removeSelected(h2.filter(function(t6) { + return t6 !== i2; + })), n3.addSelected(i2, r3), i2; + }); + } }, { key: "addSelected", value: function(t4) { + var n3 = this, r3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o2 = (0, p.getModel)(t4, i.default), s2 = (0, e2.isArray)(o2) ? o2 : [o2]; + s2.forEach(function(t5) { + if (!t5 || t5.get("selectable")) { + var e3 = n3.get("selected"); + r3.forceChange && n3.removeSelected(t5, r3), e3.addComponent(t5, r3), t5 && n3.trigger("component:select", t5, r3); + } + }); + } }, { key: "removeSelected", value: function(t4) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + this.get("selected").removeComponent((0, p.getModel)(t4, i.default), e3); + } }, { key: "toggleSelected", value: function(t4) { + var n3 = this, r3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o2 = (0, p.getModel)(t4, i.default), s2 = (0, e2.isArray)(o2) ? o2 : [o2]; + s2.forEach(function(t5) { + n3.get("selected").hasComponent(t5) ? n3.removeSelected(t5, r3) : n3.addSelected(t5, r3); + }); + } }, { key: "setHovered", value: function(t4) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + if (!t4) + return this.set("componentHovered", ""); + var n3 = "component:hover", r3 = (0, p.getModel)(t4); + if (r3) { + if (e3.forceChange && this.set("componentHovered", ""), this.trigger("".concat(n3, ":before"), r3, e3), !r3.get("hoverable")) { + if (!e3.useValid || e3.abort) + return; + for (var i2 = r3 && r3.parent(); i2 && !i2.get("hoverable"); ) + i2 = i2.parent(); + r3 = i2; + } + e3.abort || (this.set("componentHovered", r3, e3), this.trigger(n3, r3, e3)); + } + } }, { key: "getHovered", value: function() { + return this.get("componentHovered"); + } }, { key: "setComponents", value: function(t4) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + return this.get("DomComponents").setComponents(t4, e3); + } }, { key: "getComponents", value: function() { + var t4 = this.get("DomComponents"), e3 = this.get("CodeManager"); + if (t4 && e3) { + var n3 = t4.getComponents(); + return e3.getCode(n3, "json"); + } + } }, { key: "setStyle", value: function(t4) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n3 = this.get("CssComposer"); + return n3.clear(e3), n3.getAll().add(t4, e3), this; + } }, { key: "addStyle", value: function(t4) { + var n3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r3 = this.getStyle().add(t4, n3); + return (0, e2.isArray)(r3) ? r3 : [r3]; + } }, { key: "getStyle", value: function() { + return this.get("CssComposer").getAll(); + } }, { key: "setState", value: function(t4) { + return this.set("state", t4), this; + } }, { key: "getState", value: function() { + return this.get("state") || ""; + } }, { key: "getHtml", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e3 = this.config, n3 = e3.optsHtml, r3 = e3.jsInHtml ? this.getJs(t4) : "", i2 = t4.component || this.get("DomComponents").getComponent(), o2 = i2 ? this.get("CodeManager").getCode(i2, "html", w(w({}, n3), t4)) : ""; + return o2 += r3 ? "<script>".concat(r3, "<\/script>") : ""; + } }, { key: "getCss", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n3 = this.config, r3 = n3.optsCss, i2 = t4.avoidProtected, o2 = (0, e2.isUndefined)(t4.keepUnusedStyles) ? n3.keepUnusedStyles : t4.keepUnusedStyles, s2 = this.get("CssComposer"), a2 = t4.component || this.get("DomComponents").getComponent(), l2 = i2 ? "" : n3.protectedCss, c2 = a2 && this.get("CodeManager").getCode(a2, "css", w(w({ cssc: s2, keepUnusedStyles: o2 }, r3), t4)); + return a2 ? t4.json ? c2 : l2 + c2 : ""; + } }, { key: "getJs", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e3 = t4.component || this.get("DomComponents").getWrapper(); + return e3 ? this.get("CodeManager").getCode(e3, "js").trim() : ""; + } }, { key: "store", value: function(t4) { + var e3 = this, n3 = this.get("StorageManager"); + if (n3) { + var r3 = this.storeData(); + return n3.store(r3, function(n4) { + t4 && t4(n4, r3), e3.set("changesCount", 0), e3.trigger("storage:store", r3); + }), r3; + } + } }, { key: "storeData", value: function() { + var t4 = {}, e3 = this.getEditing(); + return e3 && e3.trigger("sync:content", { noCount: true }), this.get("storables").forEach(function(e4) { + t4 = w(w({}, t4), e4.store(1)); + }), t4; + } }, { key: "load", value: function() { + var t4 = this, e3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null; + this.getCacheLoad(1, function(n3) { + t4.loadData(n3), e3 && e3(n3); + }); + } }, { key: "loadData", value: function() { + var t4 = this, e3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n3 = this.get("StorageManager"), r3 = n3.__clearKeys(e3); + return this.get("storables").forEach(function(e4) { + e4.load(r3), e4.postLoad && e4.postLoad(t4); + }), r3; + } }, { key: "getCacheLoad", value: function(t4, n3) { + var r3 = this; + if (this.cacheLoad && !t4) + return this.cacheLoad; + var i2 = this.get("StorageManager"), o2 = []; + if (!i2) + return {}; + this.get("storables").forEach(function(t5) { + var n4 = t5.storageKey; + n4 = (0, e2.isFunction)(n4) ? n4() : n4, ((0, e2.isArray)(n4) ? n4 : [n4]).forEach(function(t6) { + return o2.push(t6); + }); + }), i2.load(o2, function(t5) { + r3.cacheLoad = t5, n3 && n3(t5), setTimeout(function() { + return r3.trigger("storage:load", t5); + }); + }); + } }, { key: "getDeviceModel", value: function() { + var t4 = this.get("device"); + return this.get("DeviceManager").get(t4); + } }, { key: "runDefault", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e3 = this.get("Commands").get(this.config.defaultCommand); + e3 && !this.defaultRunning && (e3.stop(this, this, t4), e3.run(this, this, t4), this.defaultRunning = 1); + } }, { key: "stopDefault", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e3 = this.get("Commands"), n3 = e3.get(this.config.defaultCommand); + n3 && this.defaultRunning && (n3.stop(this, this, t4), this.defaultRunning = 0); + } }, { key: "refreshCanvas", value: function() { + var t4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + this.set("canvasOffset", null), this.set("canvasOffset", this.get("Canvas").getOffset()), t4.tools && this.trigger("canvas:updateTools"); + } }, { key: "clearSelection", value: function(t4) { + (t4 || window).getSelection().removeAllRanges(); + } }, { key: "getCurrentMedia", value: function() { + var t4 = this.config, e3 = this.getDeviceModel(), n3 = t4.mediaCondition, r3 = t4.devicePreviewMode, i2 = e3 && e3.get("widthMedia"); + return e3 && i2 && !r3 ? "(".concat(n3, ": ").concat(i2, ")") : ""; + } }, { key: "getWrapper", value: function() { + return this.get("DomComponents").getWrapper(); + } }, { key: "setCurrentFrame", value: function(t4) { + return this.set("currentFrame", t4); + } }, { key: "getCurrentFrame", value: function() { + return this.get("currentFrame"); + } }, { key: "getCurrentFrameModel", value: function() { + return (this.getCurrentFrame() || {}).model; + } }, { key: "getIcon", value: function(t4) { + return (this.getConfig("icons") || {})[t4] || ""; + } }, { key: "getDirtyCount", value: function() { + return this.get("changesCount"); + } }, { key: "getZoomDecimal", value: function() { + return this.get("Canvas").getZoomDecimal(); + } }, { key: "getZoomMultiplier", value: function() { + return this.get("Canvas").getZoomMultiplier(); + } }, { key: "setDragMode", value: function(t4) { + return this.set("dmode", t4); + } }, { key: "t", value: function() { + for (var t4 = this.get("I18n"), e3 = arguments.length, n3 = new Array(e3), r3 = 0; r3 < e3; r3++) + n3[r3] = arguments[r3]; + return t4 == null ? void 0 : t4.t.apply(t4, n3); + } }, { key: "inAbsoluteMode", value: function() { + return this.get("dmode") === "absolute"; + } }, { key: "destroyAll", value: function() { + var t4 = this, e3 = this.config, n3 = this.view, r3 = this.getEditor(), o2 = (e3.grapesjs || {}).editors, s2 = o2 === void 0 ? [] : o2, a2 = this.get("shallow"); + a2 == null || a2.destroyAll(), this.stopListening(), this.stopDefault(), this.get("modules").slice().reverse().forEach(function(t5) { + return t5.destroy(); + }), n3 && n3.remove(), this.clear({ silent: true }), this.destroyed = 1, ["config", "view", "_previousAttributes", "_events", "_listeners"].forEach(function(e4) { + return t4[e4] = {}; + }), s2.splice(s2.indexOf(r3), 1), (0, p.hasWin)() && (0, i.default)(e3.el).empty().attr(this.attrsOrig); + } }, { key: "getEditing", value: function() { + var t4 = this.get("editing"); + return t4 && t4.model || null; + } }, { key: "setEditing", value: function(t4) { + return this.set("editing", t4), this; + } }, { key: "isEditing", value: function() { + return !!this.get("editing"); + } }, { key: "log", value: function(t4) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n3 = e3.ns, r3 = e3.level, i2 = r3 === void 0 ? "debug" : r3; + if (this.trigger("log", t4, e3), i2 && this.trigger("log:".concat(i2), t4, e3), n3) { + var o2 = "log-".concat(n3); + this.trigger(o2, t4, e3), i2 && this.trigger("".concat(o2, ":").concat(i2), t4, e3); + } + } }, { key: "logInfo", value: function(t4, e3) { + this.log(t4, w(w({}, e3), {}, { level: "info" })); + } }, { key: "logWarning", value: function(t4, e3) { + this.log(t4, w(w({}, e3), {}, { level: "warning" })); + } }, { key: "logError", value: function(t4, e3) { + this.log(t4, w(w({}, e3), {}, { level: "error" })); + } }, { key: "initBaseColorPicker", value: function(t4) { + var e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n3 = this.getConfig(), r3 = n3.colorPicker, o2 = r3 === void 0 ? {} : r3, s2 = n3.el, a2 = n3.stylePrefix; + return (0, i.default)(t4).spectrum(w(w({ containerClassName: "".concat(a2, "one-bg ").concat(a2, "two-color"), appendTo: s2 || "body", maxSelectionSize: 8, showPalette: true, palette: [], showAlpha: true, chooseText: "Ok", cancelText: "\u2A2F" }, e3), o2)); + } }, { key: "skip", value: function(t4) { + this.__skip = true; + var e3 = this.get("UndoManager"); + e3 ? e3.skip(t4) : t4(), this.__skip = false; + } }, { key: "data", value: function(t4, n3, r3) { + var i2 = "_gjs-data"; + if (t4[i2] || (t4[i2] = {}), (0, e2.isUndefined)(r3)) + return t4[i2][n3]; + t4[i2][n3] = r3; + } }]), r2; + }(f.Model); + function _(t3) { + var e3 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (t4) { + return false; + } + }(); + return function() { + var n2, r2 = (0, h.Z)(t3); + if (e3) { + var i2 = (0, h.Z)(this).constructor; + n2 = Reflect.construct(r2, arguments, i2); + } else + n2 = r2.apply(this, arguments); + return (0, u.Z)(this, n2); + }; + } + var T = d().$, E = function(t3) { + (0, c.Z)(n2, t3); + var e3 = _(n2); + function n2() { + return (0, a.Z)(this, n2), e3.apply(this, arguments); + } + return (0, l.Z)(n2, [{ key: "initialize", value: function() { + var t4 = this, e4 = this.model; + e4.view = this, this.conf = e4.config, this.pn = e4.get("Panels"), this.cv = e4.get("Canvas"), e4.once("change:ready", function() { + t4.pn.active(), t4.pn.disableButtons(), setTimeout(function() { + e4.trigger("load", e4.get("Editor")), e4.set("changesCount", 0); + }); + }); + } }, { key: "render", value: function() { + var t4 = this.$el, e4 = this.conf, n3 = this.model, r2 = e4.stylePrefix, i2 = T(e4.el || "body ".concat(e4.container)); + (0, p.appendStyles)(e4.cssIcons, { unique: 1, prepand: 1 }), t4.empty(), e4.width && i2.css("width", e4.width), e4.height && i2.css("height", e4.height), t4.append(this.cv.render()), t4.append(this.pn.render()); + var o2 = n3.get("shallow").get("Canvas").render(); + return o2.style.display = "none", t4.append(o2), t4.attr("class", "".concat(r2, "editor ").concat(r2, "one-bg ").concat(r2, "two-color")), i2.addClass("".concat(r2, "editor-cont")).empty().append(t4), this; + } }]), n2; + }(f.View), j = n(1629); + function D(t3, e3) { + var n2 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r2 = Object.getOwnPropertySymbols(t3); + e3 && (r2 = r2.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n2.push.apply(n2, r2); + } + return n2; + } + function M(e3) { + for (var n2 = 1; n2 < arguments.length; n2++) { + var r2 = arguments[n2] != null ? arguments[n2] : {}; + n2 % 2 ? D(Object(r2), true).forEach(function(n3) { + (0, t2.Z)(e3, n3, r2[n3]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e3, Object.getOwnPropertyDescriptors(r2)) : D(Object(r2)).forEach(function(t3) { + Object.defineProperty(e3, t3, Object.getOwnPropertyDescriptor(r2, t3)); + }); + } + return e3; + } + const A = function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n2 = e3.$, r2 = M(M({}, o), t3); + r2.pStylePrefix = r2.stylePrefix; + var i2, s2 = new P(r2); + return { $: n2, editor: s2, modules: [], init: function() { + var t4 = this, e4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + return s2.init(this, M(M({}, r2), e4)), this.modules = ["I18n", "Utils", "Config", "Commands", "Keymaps", "Modal", "Panels", "Canvas", "Parser", "CodeManager", "UndoManager", "RichTextEditor", ["Pages", "PageManager"], "DomComponents", ["Components", "DomComponents"], "LayerManager", ["Layers", "LayerManager"], "CssComposer", ["Css", "CssComposer"], "StorageManager", ["Storage", "StorageManager"], "AssetManager", ["Assets", "AssetManager"], "BlockManager", ["Blocks", "BlockManager"], "TraitManager", ["Traits", "TraitManager"], "SelectorManager", ["Selectors", "SelectorManager"], "StyleManager", ["Styles", "StyleManager"], "DeviceManager", ["Devices", "DeviceManager"]], this.modules.forEach(function(e5) { + Array.isArray(e5) ? t4[e5[0]] = s2.get(e5[1]) : t4[e5] = s2.get(e5); + }), s2.once("change:ready", function() { + t4.UndoManager.clear(), s2.get("modules").forEach(function(t5) { + t5.postRender && t5.postRender(i2); + }); + }), this; + }, getConfig: function(t4) { + return s2.getConfig(t4); + }, getHtml: function(t4) { + return s2.getHtml(t4); + }, getCss: function(t4) { + return s2.getCss(t4); + }, getJs: function(t4) { + return s2.getJs(t4); + }, getComponents: function() { + return s2.get("DomComponents").getComponents(); + }, getWrapper: function() { + return s2.get("DomComponents").getWrapper(); + }, setComponents: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + return s2.setComponents(t4, e4), this; + }, addComponents: function(t4, e4) { + return this.getWrapper().append(t4, e4); + }, getStyle: function() { + return s2.get("CssComposer").getAll(); + }, setStyle: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + return s2.setStyle(t4, e4), this; + }, addStyle: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + return s2.addStyle(t4, e4); + }, getSelected: function() { + return s2.getSelected(); + }, getSelectedAll: function() { + return s2.getSelectedAll(); + }, getSelectedToStyle: function() { + var t4 = s2.getSelected(); + if (t4) + return this.StyleManager.getModelToStyle(t4); + }, select: function(t4, e4) { + return s2.setSelected(t4, e4), this; + }, selectAdd: function(t4) { + return s2.addSelected(t4), this; + }, selectRemove: function(t4) { + return s2.removeSelected(t4), this; + }, selectToggle: function(t4) { + return s2.toggleSelected(t4), this; + }, getEditing: function() { + return s2.getEditing(); + }, setDevice: function(t4) { + return s2.set("device", t4), this; + }, getDevice: function() { + return s2.get("device"); + }, runCommand: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + return s2.get("Commands").run(t4, e4); + }, stopCommand: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + return s2.get("Commands").stop(t4, e4); + }, store: function(t4) { + return s2.store(t4); + }, getProject: function() { + return s2.storeData(); + }, storeData: function() { + return s2.storeData(); + }, load: function(t4) { + return s2.load(t4); + }, loadProject: function(t4) { + return s2.loadData(t4); + }, loadData: function(t4) { + return s2.loadData(t4); + }, getContainer: function() { + return r2.el; + }, getDirtyCount: function() { + return s2.getDirtyCount(); + }, refresh: function(t4) { + s2.refreshCanvas(t4); + }, setCustomRte: function(t4) { + this.RichTextEditor.customRte = t4; + }, setCustomParserCss: function(t4) { + return this.Parser.getConfig().parserCss = t4, this; + }, setDragMode: function(t4) { + return s2.setDragMode(t4), this; + }, log: function(t4) { + var e4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + return s2.log(t4, e4), this; + }, t: function() { + var t4; + return (t4 = s2).t.apply(t4, arguments); + }, on: function(t4, e4) { + return s2.on(t4, e4), this; + }, once: function(t4, e4) { + return s2.once(t4, e4), this; + }, off: function(t4, e4) { + return s2.off(t4, e4), this; + }, trigger: function(t4) { + return s2.trigger.apply(s2, arguments), this; + }, destroy: function() { + var t4 = this; + s2 && (s2.destroyAll(), this.modules.forEach(function(e4) { + Array.isArray(e4) ? t4[e4[0]] = 0 : t4[e4] = 0; + }), this.modules = 0, i2 = 0, s2 = 0, r2 = 0); + }, getEl: function() { + return i2 && i2.el; + }, getModel: function() { + return s2; + }, render: function() { + return i2 && i2.remove(), (i2 = new E({ model: s2, config: r2 })).render().el; + }, onReady: function(t4) { + s2.get("ready") ? t4(this) : s2.on("load", t4); + }, html: j.Z }; + }, L = { plugins: [] }; + function R(t3, e3) { + var n2 = Object.keys(t3); + if (Object.getOwnPropertySymbols) { + var r2 = Object.getOwnPropertySymbols(t3); + e3 && (r2 = r2.filter(function(e4) { + return Object.getOwnPropertyDescriptor(t3, e4).enumerable; + })), n2.push.apply(n2, r2); + } + return n2; + } + function N(e3) { + for (var n2 = 1; n2 < arguments.length; n2++) { + var r2 = arguments[n2] != null ? arguments[n2] : {}; + n2 % 2 ? R(Object(r2), true).forEach(function(n3) { + (0, t2.Z)(e3, n3, r2[n3]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e3, Object.getOwnPropertyDescriptors(r2)) : R(Object(r2)).forEach(function(t3) { + Object.defineProperty(e3, t3, Object.getOwnPropertyDescriptor(r2, t3)); + }); + } + return e3; + } + !function() { + if ((0, p.hasWin)() && function() { + for (var t4, e3 = window.navigator.userAgent, n2 = [["edge", /Edge\/([0-9\._]+)/], ["ie", /MSIE\s(7\.0)/], ["ie", /MSIE\s([0-9\.]+);.*Trident\/[4-7].0/], ["ie", /Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/]], r2 = 0; r2 < n2.length; r2++) { + if (t4 = n2[r2][1].exec(e3)) + break; + } + return !!t4; + }()) { + var t3 = DOMImplementation.prototype.createHTMLDocument; + DOMImplementation.prototype.createHTMLDocument = function(e3) { + return e3 || (e3 = ""), t3.apply(document.implementation, [e3]); + }; + } + }(); + var Z = new function(t3) { + var e3 = t3 || {}; + for (var n2 in L) + n2 in e3 || (e3[n2] = L[n2]); + var r2 = {}; + return { add: function(t4, e4) { + return r2[t4] ? r2[t4] : (r2[t4] = e4, e4); + }, get: function(t4) { + return r2[t4]; + }, getAll: function() { + return r2; + } }; + }(), I = [], F = { autorender: 1, plugins: [], pluginsOpts: {} }; + const V = { $: i.default, editors: I, plugins: Z, version: "0.18.4", init: function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n2 = t3, r2 = n2.headless, o2 = t3.container; + if (!o2 && !r2) + throw new Error("'container' is required"); + (t3 = N(N(N({}, F), t3), {}, { grapesjs: this })).el = !r2 && ((0, e2.isElement)(o2) ? o2 : document.querySelector(o2)); + var s2 = new A(t3, { $: i.default }).init(), a2 = s2.getModel(); + return t3.plugins.forEach(function(n3) { + var r3 = (0, e2.isFunction)(n3) ? n3 : Z.get(n3), i2 = t3.pluginsOpts[n3] || {}; + if (!r3) { + var o3 = (0, p.getGlobal)()[n3]; + r3 = (o3 == null ? void 0 : o3.default) || o3; + } + r3 ? r3(s2, i2) : (0, e2.isFunction)(n3) ? n3(s2, i2) : a2.logWarning("Plugin ".concat(n3, " not found"), { context: "plugins", plugin: n3 }); + }), a2.loadOnStart(), t3.autorender && !r2 && s2.render(), I.push(s2), s2; + } }; + })(), r = r.default; + })(); + }); + } + }); + + // server/web/source/node_modules/grapesjs-rte-extensions/dist/grapesjs-rte-extensions.min.js + var require_grapesjs_rte_extensions_min = __commonJS({ + "server/web/source/node_modules/grapesjs-rte-extensions/dist/grapesjs-rte-extensions.min.js"(exports, module) { + !function(t, e) { + typeof exports == "object" && typeof module == "object" ? module.exports = e() : typeof define == "function" && define.amd ? define([], e) : typeof exports == "object" ? exports["grapesjs-rte-extensions"] = e() : t["grapesjs-rte-extensions"] = e(); + }(window, function() { + return function(t) { + var e = {}; + function n(i) { + if (e[i]) + return e[i].exports; + var r = e[i] = { i, l: false, exports: {} }; + return t[i].call(r.exports, r, r.exports, n), r.l = true, r.exports; + } + return n.m = t, n.c = e, n.d = function(t2, e2, i) { + n.o(t2, e2) || Object.defineProperty(t2, e2, { enumerable: true, get: i }); + }, n.r = function(t2) { + typeof Symbol != "undefined" && Symbol.toStringTag && Object.defineProperty(t2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t2, "__esModule", { value: true }); + }, n.t = function(t2, e2) { + if (1 & e2 && (t2 = n(t2)), 8 & e2) + return t2; + if (4 & e2 && typeof t2 == "object" && t2 && t2.__esModule) + return t2; + var i = /* @__PURE__ */ Object.create(null); + if (n.r(i), Object.defineProperty(i, "default", { enumerable: true, value: t2 }), 2 & e2 && typeof t2 != "string") + for (var r in t2) + n.d(i, r, function(e3) { + return t2[e3]; + }.bind(null, r)); + return i; + }, n.n = function(t2) { + var e2 = t2 && t2.__esModule ? function() { + return t2.default; + } : function() { + return t2; + }; + return n.d(e2, "a", e2), e2; + }, n.o = function(t2, e2) { + return Object.prototype.hasOwnProperty.call(t2, e2); + }, n.p = "", n(n.s = 3); + }([function(t, e) { + t.exports = function(t2, e2, n) { + return e2 in t2 ? Object.defineProperty(t2, e2, { value: n, enumerable: true, configurable: true, writable: true }) : t2[e2] = n, t2; + }; + }, function(t, e) { + t.exports = function(t2, e2) { + if (!(t2 instanceof e2)) + throw new TypeError("Cannot call a class as a function"); + }; + }, function(t, e) { + function n(t2, e2) { + for (var n2 = 0; n2 < e2.length; n2++) { + var i = e2[n2]; + i.enumerable = i.enumerable || false, i.configurable = true, "value" in i && (i.writable = true), Object.defineProperty(t2, i.key, i); + } + } + t.exports = function(t2, e2, i) { + return e2 && n(t2.prototype, e2), i && n(t2, i), t2; + }; + }, function(t, e, n) { + "use strict"; + n.r(e); + var i = n(0), r = n.n(i), o = n(1), a = n.n(o), l = n(2), s = n.n(l), c = function() { + function t2(e2, n2, i2) { + a()(this, t2); + var r2 = this; + n2 = n2 || ["#1abc9c", "#2ecc71", "#3498db", "#9b59b6", "#34495e", "#16a085", "#27ae60", "#2980b9", "#8e44ad", "#2c3e50", "#f1c40f", "#e67e22", "#e74c3c", "#ecf0f1", "#95a5a6", "#f39c12", "#d35400", "#c0392b", "#bdc3c7", "#7f8c8d"], (i2 = i2 || {}).open = r2.getElm(i2.open), i2.openEvent = i2.openEvent || "click", i2.style = Object(i2.style), i2.style.display = i2.style.display || "block", i2.closeOnBlur = i2.closeOnBlur || false, i2.template = i2.template || '<div data-col="{color}" style="background-color: {color}" title="{color}" ></div>', r2.elm = r2.getElm(e2), r2.cbs = [], r2.color = "", r2.isOpen = true, r2.colors = n2, r2.options = i2, r2.render(), i2.open && i2.open.addEventListener(i2.openEvent, function(t3) { + r2.isOpen ? r2.close() : r2.open(); + }), r2.elm.addEventListener("click", function(t3) { + var e3 = t3.target.getAttribute("data-col"); + e3 && (r2.color = e3, r2.set(e3), r2.close()); + }), i2.closeOnBlur && window.addEventListener("click", function(t3) { + t3.target != i2.open && t3.target != r2.elm && r2.isOpen && r2.close(); + }), i2.autoclose !== false && r2.close(); + } + return s()(t2, [{ key: "getElm", value: function(t3) { + return typeof t3 == "string" ? document.querySelector(t3) : t3; + } }, { key: "render", value: function() { + var t3 = this, e2 = ""; + t3.colors.forEach(function(n2) { + e2 += t3.options.template.replace(/\{color\}/g, n2); + }), t3.elm.innerHTML = e2; + } }, { key: "close", value: function() { + this.elm.style.display = "none", this.isOpen = false; + } }, { key: "open", value: function() { + this.elm.style.display = this.options.style.display, this.isOpen = true; + } }, { key: "colorChosen", value: function(t3) { + this.cbs.push(t3); + } }, { key: "set", value: function(t3, e2) { + this.color = t3, e2 !== false && (this.cbs.forEach(function(e3) { + e3 && e3(t3); + }), this.cbs = []); + } }]), t2; + }(); + function u(t2, e2) { + var n2 = Object.keys(t2); + if (Object.getOwnPropertySymbols) { + var i2 = Object.getOwnPropertySymbols(t2); + e2 && (i2 = i2.filter(function(e3) { + return Object.getOwnPropertyDescriptor(t2, e3).enumerable; + })), n2.push.apply(n2, i2); + } + return n2; + } + function f(t2) { + for (var e2 = 1; e2 < arguments.length; e2++) { + var n2 = arguments[e2] != null ? arguments[e2] : {}; + e2 % 2 ? u(Object(n2), true).forEach(function(e3) { + r()(t2, e3, n2[e3]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t2, Object.getOwnPropertyDescriptors(n2)) : u(Object(n2)).forEach(function(e3) { + Object.defineProperty(t2, e3, Object.getOwnPropertyDescriptor(n2, e3)); + }); + } + return t2; + } + e.default = function(t2) { + var e2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n2 = f(f({}, { base: { bold: true, italic: true, underline: true, strikethrough: true, link: true }, fonts: { fontColor: true, hilite: true }, format: { heading1: true, heading2: true, heading3: true, paragraph: true, clearFormatting: true }, subscriptSuperscript: false, indentOutdent: false, list: false, align: true, actions: false, undoredo: false, extra: false, icons: {}, darkColorPicker: true }), e2), i2 = n2.icons, r2 = "formatBlock", o2 = t2.RichTextEditor; + n2.maxWidth && (o2.getToolbarEl().firstChild.style.maxWidth = n2.maxWidth); + var a2 = !!n2.fonts.fontName && (!!Array.isArray(n2.fonts.fontName) && n2.fonts.fontName); + n2.fonts.fontName = a2; + var l2 = ""; + a2 && a2.forEach(function(t3) { + l2 += "<option>" + t3.toString() + "</option>"; + }); + var s2 = '<select style="height:1.8rem;color:inherit;" class="gjs-field gjs-field-select">\n '.concat(l2, "\n </select>"); + !n2.base && !n2.base.bold && o2.remove("bold"), !n2.base && !n2.base.italic && o2.remove("italic"), !n2.base && !n2.base.underline && o2.remove("underline"), !n2.base && !n2.base.strikethrough && o2.remove("strikethrough"), !n2.base && !n2.base.link && o2.remove("link"), n2.fonts && n2.fonts.fontName && o2.add("fontName", { icon: s2, event: "change", attributes: { style: "padding: 0 4px 2px;", title: "Font Name" }, result: function(t3, e3) { + return t3.exec("fontName", e3.btn.firstChild.value); + }, update: function(t3, e3) { + var n3 = t3.doc.queryCommandValue(e3.name); + n3 != "false" && (e3.btn.firstChild.value = n3); + } }), n2.fonts && n2.fonts.fontSize && o2.add("fontSize", { icon: '<select style="height:1.8rem;color:inherit;" class="gjs-field gjs-field-select">\n <option value="1">xx-small</option>\n <option value="2">x-small</option>\n <option value="3">small</option>\n <option value="4">medium</option>\n <option value="5">large</option>\n <option value="6">x-large</option>\n <option value="7">xx-large</option>\n </select>', event: "change", attributes: { style: "padding: 0 4px 2px;", title: "Font Size" }, result: function(t3, e3) { + return t3.exec("fontSize", e3.btn.firstChild.value); + }, update: function(t3, e3) { + var n3 = t3.doc.queryCommandValue(e3.name); + n3 != "false" && (e3.btn.firstChild.value = n3); + } }); + var u2 = null; + n2.fonts && n2.fonts.fontColor && o2.add("fontColor", { icon: "".concat(i2.fontColor || '<b style="pointer-events:none;border-bottom:2px solid">A</b>', '\n <div id="foreColor-picker"\n class="').concat(n2.darkColorPicker ? "rte-color-picker dark" : "rte-color-picker light", '">\n </div>'), attributes: { id: "rte-font-color", title: "Font Color" }, result: function(t3) { + u2 || (u2 = new c("#foreColor-picker", n2.fonts.fontColor && Array.isArray(n2.fonts.fontColor) ? n2.fonts.fontColor : null, { open: "span#rte-font-color.gjs-rte-action", closeOnBlur: true })), u2.colorChosen(function(e3) { + return t3.exec("foreColor", e3); + }); + } }); + var d = null; + n2.fonts && n2.fonts.hilite && o2.add("hiliteColor", { icon: "".concat(i2.hiliteColor || '<b style="pointer-events:none;" class="rte-hilite-btn">A</b>', '\n <div id="hilite-picker"\n class="').concat(n2.darkColorPicker ? "rte-color-picker dark" : "rte-color-picker light", '">\n </div>'), attributes: { id: "rte-font-hilite", title: "Font Highlight" }, result: function(t3) { + d || (d = new c("#hilite-picker", n2.fonts.hilite && Array.isArray(n2.fonts.hilite) ? n2.fonts.hilite : null, { open: "span#rte-font-hilite.gjs-rte-action", closeOnBlur: true })), d.colorChosen(function(e3) { + return t3.exec("hiliteColor", e3); + }); + } }), n2.format && n2.format.heading1 && o2.add("heading1", { icon: i2.heading1 || "<div>H1</div>", attributes: { title: "Heading 1" }, result: function(t3) { + return t3.exec(r2, "<h1>"); + } }), n2.format && n2.format.heading2 && o2.add("heading2", { icon: i2.heading2 || "<div>H2</div>", attributes: { title: "Heading 2" }, result: function(t3) { + return t3.exec(r2, "<h2>"); + } }), n2.format && n2.format.heading3 && o2.add("heading3", { icon: i2.heading3 || "<div>H3</div>", attributes: { title: "Heading 3" }, result: function(t3) { + return t3.exec(r2, "<h3>"); + } }), n2.format && n2.format.heading4 && o2.add("heading4", { icon: i2.heading4 || "<div>H4</div>", attributes: { title: "Heading 4" }, result: function(t3) { + return t3.exec(r2, "<h4>"); + } }), n2.format && n2.format.heading5 && o2.add("heading5", { icon: i2.heading5 || "<div>H5</div>", attributes: { title: "Heading 5" }, result: function(t3) { + return t3.exec(r2, "<h5>"); + } }), n2.format && n2.format.heading6 && o2.add("heading6", { icon: i2.heading6 || "<div>H6</div>", attributes: { title: "Heading 6" }, result: function(t3) { + return t3.exec(r2, "<h6>"); + } }), n2.format && n2.format.paragraph && o2.add("paragraph", { icon: i2.paragraph || "¶", attributes: { title: "Paragraph" }, result: function(t3) { + return t3.exec(r2, "<p>"); + } }), n2.format && n2.format.quote && o2.add("quote", { icon: i2.quote || '<i class="fa fa-quote-left"></i>', attributes: { title: "Quote" }, result: function(t3) { + return t3.exec(r2, "<blockquote>"); + } }), n2.format && n2.format.clearFormatting && o2.add("clearFormatting", { icon: i2.clear || '<i class="fa fa-eraser"></i>', attributes: { title: "Clear Formatting" }, result: function(t3) { + return t3.exec("removeFormat"); + } }), n2.indentOutdent && o2.add("indent", { icon: i2.indent || '<i class="fa fa-indent"></i>', attributes: { title: "Indent" }, result: function(t3) { + return t3.exec("indent"); + } }), n2.indentOutdent && o2.add("outdent", { icon: i2.outdent || '<i class="fa fa-outdent"></i>', attributes: { title: "Outdent" }, result: function(t3) { + return t3.exec("outdent"); + } }), n2.subscriptSuperscript && o2.add("subscript", { icon: i2.subscript || "<div>X<sub>2</sub></div>", attributes: { title: "Subscript" }, result: function(t3) { + return t3.exec("subscript"); + } }), n2.subscriptSuperscript && o2.add("superscript", { icon: i2.superscript || "<div>X<sup>2</sup></div>", attributes: { title: "Superscript" }, result: function(t3) { + return t3.exec("superscript"); + } }), n2.list && o2.add("olist", { icon: i2.olist || '<i class="fa fa-list-ol"></i>', attributes: { title: "Ordered List" }, result: function(t3) { + return t3.exec("insertOrderedList"); + } }), n2.list && o2.add("ulist", { icon: i2.ulist || '<i class="fa fa-list-ul"></i>', attributes: { title: "Unordered List" }, result: function(t3) { + return t3.exec("insertUnorderedList"); + } }), n2.align && o2.add("justifyLeft", { icon: i2.justifyLeft || '<i class="fa fa-align-left"></i>', attributes: { title: "Align Left" }, result: function(t3) { + return t3.exec("justifyLeft"); + } }), n2.align && o2.add("justifyCenter", { icon: i2.justifyRight || '<i class="fa fa-align-center"></i>', attributes: { title: "Align Center" }, result: function(t3) { + return t3.exec("justifyCenter"); + } }), n2.align && o2.add("justifyFull", { icon: i2.justifyFull || '<i class="fa fa-align-justify"></i>', attributes: { title: "Align Justify" }, result: function(t3) { + return t3.exec("justifyFull"); + } }), n2.align && o2.add("justifyRight", { icon: i2.justifyRight || '<i class="fa fa-align-right"></i>', attributes: { title: "Align Right" }, result: function(t3) { + return t3.exec("justifyRight"); + } }), n2.actions && n2.actions.copy && o2.add("copy", { icon: i2.copy || '<i class="fa fa-files-o"></i>', attributes: { title: "Copy" }, result: function(t3) { + return t3.exec("copy"); + } }), n2.actions && n2.actions.cut && o2.add("cut", { icon: i2.cut || '<i class="fa fa-scissors"></i>', attributes: { title: "Cut" }, result: function(t3) { + return t3.exec("cut"); + } }), n2.actions && n2.actions.paste && o2.add("paste", { icon: i2.paste || '<i class="fa fa-clipboard"></i>', attributes: { title: "Paste" }, result: function(t3) { + return t3.exec("paste"); + } }), n2.actions && n2.actions.delete && o2.add("delete", { icon: i2.delete || '<i class="fa fa-trash-o"></i>', attributes: { title: "Delete" }, result: function(t3) { + return t3.exec("delete"); + } }), n2.extra && o2.add("code", { icon: i2.code || '<i class="fa fa-code"></i>', attributes: { title: "Code" }, result: function(t3) { + return t3.exec(r2, "<pre>"); + } }), n2.extra && o2.add("line", { icon: i2.line || "<b>―</b>", attributes: { title: "Horizontal Line" }, result: function(t3) { + return t3.exec("insertHorizontalRule"); + } }), n2.undoredo && o2.add("undo", { icon: i2.undo || '<i class="fa fa-reply"></i>', attributes: { title: "Undo" }, result: function(t3) { + return t3.exec("undo"); + } }), n2.undoredo && o2.add("redo", { icon: i2.redo || '<i class="fa fa-share"></i>', attributes: { title: "Redo" }, result: function(t3) { + return t3.exec("redo"); + } }); + }; + }]); + }); + } + }); + + // server/web/source/node_modules/grapesjs-custom-code/dist/grapesjs-custom-code.min.js + var require_grapesjs_custom_code_min = __commonJS({ + "server/web/source/node_modules/grapesjs-custom-code/dist/grapesjs-custom-code.min.js"(exports, module) { + !function(e, t) { + typeof exports == "object" && typeof module == "object" ? module.exports = t() : typeof define == "function" && define.amd ? define([], t) : typeof exports == "object" ? exports["grapesjs-custom-code"] = t() : e["grapesjs-custom-code"] = t(); + }(window, function() { + return function(e) { + var t = {}; + function o(n) { + if (t[n]) + return t[n].exports; + var r = t[n] = { i: n, l: false, exports: {} }; + return e[n].call(r.exports, r, r.exports, o), r.l = true, r.exports; + } + return o.m = e, o.c = t, o.d = function(e2, t2, n) { + o.o(e2, t2) || Object.defineProperty(e2, t2, { enumerable: true, get: n }); + }, o.r = function(e2) { + typeof Symbol != "undefined" && Symbol.toStringTag && Object.defineProperty(e2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e2, "__esModule", { value: true }); + }, o.t = function(e2, t2) { + if (1 & t2 && (e2 = o(e2)), 8 & t2) + return e2; + if (4 & t2 && typeof e2 == "object" && e2 && e2.__esModule) + return e2; + var n = /* @__PURE__ */ Object.create(null); + if (o.r(n), Object.defineProperty(n, "default", { enumerable: true, value: e2 }), 2 & t2 && typeof e2 != "string") + for (var r in e2) + o.d(n, r, function(t3) { + return e2[t3]; + }.bind(null, r)); + return n; + }, o.n = function(e2) { + var t2 = e2 && e2.__esModule ? function() { + return e2.default; + } : function() { + return e2; + }; + return o.d(t2, "a", t2), t2; + }, o.o = function(e2, t2) { + return Object.prototype.hasOwnProperty.call(e2, t2); + }, o.p = "", o(o.s = 1); + }([function(e, t, o) { + "use strict"; + Object.defineProperty(t, "__esModule", { value: true }); + t.keyCustomCode = "custom-code-plugin__code", t.typeCustomCode = "custom-code", t.commandNameCustomCode = "custom-code:open-modal"; + }, function(e, t, o) { + "use strict"; + Object.defineProperty(t, "__esModule", { value: true }); + var n = Object.assign || function(e2) { + for (var t2 = 1; t2 < arguments.length; t2++) { + var o2 = arguments[t2]; + for (var n2 in o2) + Object.prototype.hasOwnProperty.call(o2, n2) && (e2[n2] = o2[n2]); + } + return e2; + }, r = d(o(2)), i = d(o(3)), s = d(o(4)); + function d(e2) { + return e2 && e2.__esModule ? e2 : { default: e2 }; + } + t.default = function(e2) { + var t2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o2 = n({ blockLabel: "Custom Code", blockCustomCode: {}, propsCustomCode: {}, placeholderContent: "<span>Insert here your custom code</span>", toolbarBtnCustomCode: {}, placeholderScript: `<div style="pointer-events: none; padding: 10px;"> + <svg viewBox="0 0 24 24" style="height: 30px; vertical-align: middle;"> + <path d="M13 14h-2v-4h2m0 8h-2v-2h2M1 21h22L12 2 1 21z"></path> + </svg> + Custom code with <i><script></i> can't be rendered on the canvas + </div>`, modalTitle: "Insert your code", codeViewOptions: {}, buttonLabel: "Save", commandCustomCode: {} }, t2); + (0, r.default)(e2, o2), (0, i.default)(e2, o2), (0, s.default)(e2, o2); + }; + }, function(e, t, o) { + "use strict"; + Object.defineProperty(t, "__esModule", { value: true }); + var n = Object.assign || function(e2) { + for (var t2 = 1; t2 < arguments.length; t2++) { + var o2 = arguments[t2]; + for (var n2 in o2) + Object.prototype.hasOwnProperty.call(o2, n2) && (e2[n2] = o2[n2]); + } + return e2; + }, r = o(0); + t.default = function(e2) { + var t2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o2 = e2.DomComponents, i = o2.getType("default"), s = i.model, d = t2.toolbarBtnCustomCode, a = void 0; + o2.addType("script", { view: { onRender: function() { + this.model.closestType(r.typeCustomCode) && (this.el.innerHTML = ""); + } } }), o2.addType(r.typeCustomCode, { model: s.extend({ defaults: n({}, s.prototype.defaults, { name: "Custom Code", editable: true }, t2.propsCustomCode), init: function() { + this.listenTo(this, "change:" + r.keyCustomCode, this.onCustomCodeChange); + var e3 = this.get(r.keyCustomCode) || t2.placeholderContent; + !this.components().length && this.components(e3); + var o3 = this.get("toolbar"), i2 = "custom-code"; + d && !o3.filter(function(e4) { + return e4.id === i2; + }).length && o3.unshift(n({ id: i2, command: r.commandNameCustomCode, label: '<svg viewBox="0 0 24 24">\n <path d="M14.6 16.6l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4m-5.2 0L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4z"></path>\n </svg>' }, d)); + }, onCustomCodeChange: function() { + this.components(this.get(r.keyCustomCode)); + } }, { isComponent: function() { + return false; + } }), view: i.view.extend({ events: { dblclick: "onActive" }, init: function() { + this.listenTo(this.model.components(), "add remove reset", this.onComponentsChange), this.onComponentsChange(); + }, onComponentsChange: function() { + var e3 = this; + a && clearInterval(a), a = setTimeout(function() { + var o3 = e3.model, n2 = 1; + (o3.get(r.keyCustomCode) || "").indexOf("<script") >= 0 && (e3.el.innerHTML = t2.placeholderScript, n2 = 0), o3.set({ droppable: n2 }); + }, 0); + }, onActive: function() { + var e3 = this.model; + this.em.get("Commands").run(r.commandNameCustomCode, { target: e3 }); + } }) }); + }; + }, function(e, t, o) { + "use strict"; + Object.defineProperty(t, "__esModule", { value: true }); + var n = Object.assign || function(e2) { + for (var t2 = 1; t2 < arguments.length; t2++) { + var o2 = arguments[t2]; + for (var n2 in o2) + Object.prototype.hasOwnProperty.call(o2, n2) && (e2[n2] = o2[n2]); + } + return e2; + }, r = o(0); + t.default = function(e2) { + var t2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o2 = e2.BlockManager, i = t2.blockCustomCode, s = t2.blockLabel; + i && o2.add(r.typeCustomCode, n({ label: '<svg viewBox="0 0 24 24">\n <path d="M14.6 16.6l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4m-5.2 0L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4z"></path>\n </svg>\n <div>' + s + "</div>", category: "Extra", activate: true, select: true, content: { type: r.typeCustomCode } }, i)); + }; + }, function(e, t, o) { + "use strict"; + Object.defineProperty(t, "__esModule", { value: true }); + var n = Object.assign || function(e2) { + for (var t2 = 1; t2 < arguments.length; t2++) { + var o2 = arguments[t2]; + for (var n2 in o2) + Object.prototype.hasOwnProperty.call(o2, n2) && (e2[n2] = o2[n2]); + } + return e2; + }, r = o(0); + t.default = function(e2) { + var t2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o2 = e2.Commands, i = t2.modalTitle, s = t2.codeViewOptions, d = t2.commandCustomCode, a = function(e3, t3) { + t3 instanceof HTMLElement ? e3.appendChild(t3) : t3 && e3.insertAdjacentHTML("beforeend", t3); + }; + o2.add(r.commandNameCustomCode, n({ keyCustomCode: r.keyCustomCode, run: function(e3, t3) { + var o3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + this.editor = e3, this.options = o3, this.target = o3.target || e3.getSelected(); + var n2 = this.target; + n2 && n2.get("editable") && this.showCustomCode(n2); + }, stop: function(e3) { + e3.Modal.close(); + }, showCustomCode: function(e3) { + var t3 = this, o3 = this.editor, n2 = this.options.title || i, s2 = this.getContent(), d2 = e3.get(r.keyCustomCode) || ""; + o3.Modal.open({ title: n2, content: s2 }).getModel().once("change:open", function() { + return o3.stopCommand(t3.id); + }), this.getCodeViewer().setContent(d2); + }, getPreContent: function() { + }, getPostContent: function() { + }, getContent: function() { + var e3 = this.editor, t3 = document.createElement("div"), o3 = this.getCodeViewer(), n2 = e3.getConfig("stylePrefix"); + return t3.className = n2 + "custom-code", a(t3, this.getPreContent()), t3.appendChild(o3.getElement()), a(t3, this.getPostContent()), a(t3, this.getContentActions()), o3.refresh(), setTimeout(function() { + return o3.focus(); + }, 0), t3; + }, getContentActions: function() { + var e3 = this, o3 = this.editor, n2 = document.createElement("button"), r2 = o3.getConfig("stylePrefix"); + return n2.innerHTML = t2.buttonLabel, n2.className = r2 + "btn-prim " + r2 + "btn-import__custom-code", n2.onclick = function() { + return e3.handleSave(); + }, n2; + }, handleSave: function() { + var e3 = this.editor, t3 = this.target, o3 = this.getCodeViewer().getContent(); + t3.set(r.keyCustomCode, o3), e3.Modal.close(); + }, getCodeViewer: function() { + var e3 = this.editor; + return this.codeViewer || (this.codeViewer = e3.CodeManager.createViewer(n({ codeName: "htmlmixed", theme: "hopscotch", readOnly: 0 }, s))), this.codeViewer; + } }, d)); + }; + }]); + }); + } + }); + + // server/web/source/node_modules/grapesjs-project-manager/dist/grapesjs-project-manager.min.js + var require_grapesjs_project_manager_min = __commonJS({ + "server/web/source/node_modules/grapesjs-project-manager/dist/grapesjs-project-manager.min.js"(exports, module) { + !function(e, t) { + typeof exports == "object" && typeof module == "object" ? module.exports = t() : typeof define == "function" && define.amd ? define([], t) : typeof exports == "object" ? exports["grapesjs-project-manager"] = t() : e["grapesjs-project-manager"] = t(); + }(window, function() { + return function(e) { + var t = {}; + function n(r) { + if (t[r]) + return t[r].exports; + var i = t[r] = { i: r, l: false, exports: {} }; + return e[r].call(i.exports, i, i.exports, n), i.l = true, i.exports; + } + return n.m = e, n.c = t, n.d = function(e2, t2, r) { + n.o(e2, t2) || Object.defineProperty(e2, t2, { enumerable: true, get: r }); + }, n.r = function(e2) { + typeof Symbol != "undefined" && Symbol.toStringTag && Object.defineProperty(e2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e2, "__esModule", { value: true }); + }, n.t = function(e2, t2) { + if (1 & t2 && (e2 = n(e2)), 8 & t2) + return e2; + if (4 & t2 && typeof e2 == "object" && e2 && e2.__esModule) + return e2; + var r = /* @__PURE__ */ Object.create(null); + if (n.r(r), Object.defineProperty(r, "default", { enumerable: true, value: e2 }), 2 & t2 && typeof e2 != "string") + for (var i in e2) + n.d(r, i, function(t3) { + return e2[t3]; + }.bind(null, i)); + return r; + }, n.n = function(e2) { + var t2 = e2 && e2.__esModule ? function() { + return e2["default"]; + } : function() { + return e2; + }; + return n.d(t2, "a", t2), t2; + }, n.o = function(e2, t2) { + return Object.prototype.hasOwnProperty.call(e2, t2); + }, n.p = "", n(n.s = 19); + }([function(e, t) { + e.exports = function(e2) { + if (e2 === void 0) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return e2; + }, e.exports["default"] = e.exports, e.exports.__esModule = true; + }, function(e, t) { + e.exports = function(e2, t2, n) { + return t2 in e2 ? Object.defineProperty(e2, t2, { value: n, enumerable: true, configurable: true, writable: true }) : e2[t2] = n, e2; + }, e.exports["default"] = e.exports, e.exports.__esModule = true; + }, function(e, t) { + function n(t2) { + return e.exports = n = Object.setPrototypeOf ? Object.getPrototypeOf : function(e2) { + return e2.__proto__ || Object.getPrototypeOf(e2); + }, e.exports["default"] = e.exports, e.exports.__esModule = true, n(t2); + } + e.exports = n, e.exports["default"] = e.exports, e.exports.__esModule = true; + }, function(e, t) { + e.exports = function(e2, t2) { + if (!(e2 instanceof t2)) + throw new TypeError("Cannot call a class as a function"); + }, e.exports["default"] = e.exports, e.exports.__esModule = true; + }, function(e, t) { + function n(e2, t2) { + for (var n2 = 0; n2 < t2.length; n2++) { + var r = t2[n2]; + r.enumerable = r.enumerable || false, r.configurable = true, "value" in r && (r.writable = true), Object.defineProperty(e2, r.key, r); + } + } + e.exports = function(e2, t2, r) { + return t2 && n(e2.prototype, t2), r && n(e2, r), e2; + }, e.exports["default"] = e.exports, e.exports.__esModule = true; + }, function(e, t, n) { + var r = n(12); + e.exports = function(e2, t2) { + if (typeof t2 != "function" && t2 !== null) + throw new TypeError("Super expression must either be null or a function"); + e2.prototype = Object.create(t2 && t2.prototype, { constructor: { value: e2, writable: true, configurable: true } }), t2 && r(e2, t2); + }, e.exports["default"] = e.exports, e.exports.__esModule = true; + }, function(e, t, n) { + var r = n(13)["default"], i = n(0); + e.exports = function(e2, t2) { + return !t2 || r(t2) !== "object" && typeof t2 != "function" ? i(e2) : t2; + }, e.exports["default"] = e.exports, e.exports.__esModule = true; + }, function(e, t, n) { + var r = n(18); + e.exports = function(e2, t2) { + if (e2 == null) + return {}; + var n2, i, o = r(e2, t2); + if (Object.getOwnPropertySymbols) { + var a = Object.getOwnPropertySymbols(e2); + for (i = 0; i < a.length; i++) + n2 = a[i], t2.indexOf(n2) >= 0 || Object.prototype.propertyIsEnumerable.call(e2, n2) && (o[n2] = e2[n2]); + } + return o; + }, e.exports["default"] = e.exports, e.exports.__esModule = true; + }, function(e, t) { + e.exports = function(e2) { + throw new TypeError('"' + e2 + '" is read-only'); + }, e.exports["default"] = e.exports, e.exports.__esModule = true; + }, function(e, t, n) { + var r = n(14), i = n(15), o = n(16), a = n(17); + e.exports = function(e2) { + return r(e2) || i(e2) || o(e2) || a(); + }, e.exports["default"] = e.exports, e.exports.__esModule = true; + }, function(e, t, n) { + !function(t2) { + "use strict"; + var n2 = function() { + return { escape: function(e3) { + return e3.replace(/([.*+?^${}()|\[\]\/\\])/g, "\\$1"); + }, parseExtension: t3, mimeType: function(e3) { + var n4 = t3(e3).toLowerCase(); + return (r2 = "application/font-woff", i2 = "image/jpeg", { woff: r2, woff2: r2, ttf: "application/font-truetype", eot: "application/vnd.ms-fontobject", png: "image/png", jpg: i2, jpeg: i2, gif: "image/gif", tiff: "image/tiff", svg: "image/svg+xml" })[n4] || ""; + var r2, i2; + }, dataAsUrl: function(e3, t4) { + return "data:" + t4 + ";base64," + e3; + }, isDataUrl: function(e3) { + return e3.search(/^(data:)/) !== -1; + }, canvasToBlob: function(e3) { + return e3.toBlob ? new Promise(function(t4) { + e3.toBlob(t4); + }) : function(e4) { + return new Promise(function(t4) { + for (var n4 = window.atob(e4.toDataURL().split(",")[1]), r2 = n4.length, i2 = new Uint8Array(r2), o2 = 0; o2 < r2; o2++) + i2[o2] = n4.charCodeAt(o2); + t4(new Blob([i2], { type: "image/png" })); + }); + }(e3); + }, resolveUrl: function(e3, t4) { + var n4 = document.implementation.createHTMLDocument(), r2 = n4.createElement("base"); + n4.head.appendChild(r2); + var i2 = n4.createElement("a"); + return n4.body.appendChild(i2), r2.href = t4, i2.href = e3, i2.href; + }, getAndEncode: function(e3) { + var t4 = 3e4; + s.impl.options.cacheBust && (e3 += (/\?/.test(e3) ? "&" : "?") + new Date().getTime()); + return new Promise(function(n4) { + var r2, i2 = new XMLHttpRequest(); + if (i2.onreadystatechange = function() { + if (i2.readyState !== 4) + return; + if (i2.status !== 200) + return void (r2 ? n4(r2) : a2("cannot fetch resource: " + e3 + ", status: " + i2.status)); + var t5 = new FileReader(); + t5.onloadend = function() { + var e4 = t5.result.split(/,/)[1]; + n4(e4); + }, t5.readAsDataURL(i2.response); + }, i2.ontimeout = function() { + r2 ? n4(r2) : a2("timeout of " + t4 + "ms occured while fetching resource: " + e3); + }, i2.responseType = "blob", i2.timeout = t4, i2.open("GET", e3, true), i2.send(), s.impl.options.imagePlaceholder) { + var o2 = s.impl.options.imagePlaceholder.split(/,/); + o2 && o2[1] && (r2 = o2[1]); + } + function a2(e4) { + console.error(e4), n4(""); + } + }); + }, uid: (e2 = 0, function() { + return "u" + ("0000" + (Math.random() * Math.pow(36, 4) << 0).toString(36)).slice(-4) + e2++; + }), delay: function(e3) { + return function(t4) { + return new Promise(function(n4) { + setTimeout(function() { + n4(t4); + }, e3); + }); + }; + }, asArray: function(e3) { + for (var t4 = [], n4 = e3.length, r2 = 0; r2 < n4; r2++) + t4.push(e3[r2]); + return t4; + }, escapeXhtml: function(e3) { + return e3.replace(/#/g, "%23").replace(/\n/g, "%0A"); + }, makeImage: function(e3) { + return new Promise(function(t4, n4) { + var r2 = new Image(); + r2.onload = function() { + t4(r2); + }, r2.onerror = n4, r2.src = e3; + }); + }, width: function(e3) { + var t4 = n3(e3, "border-left-width"), r2 = n3(e3, "border-right-width"); + return e3.scrollWidth + t4 + r2; + }, height: function(e3) { + var t4 = n3(e3, "border-top-width"), r2 = n3(e3, "border-bottom-width"); + return e3.scrollHeight + t4 + r2; + } }; + var e2; + function t3(e3) { + var t4 = /\.([^\.\/]*?)$/g.exec(e3); + return t4 ? t4[1] : ""; + } + function n3(e3, t4) { + var n4 = window.getComputedStyle(e3).getPropertyValue(t4); + return parseFloat(n4.replace("px", "")); + } + }(), r = function() { + var e2 = /url\(['"]?([^'"]+?)['"]?\)/g; + return { inlineAll: function(e3, n3, o2) { + return function() { + return !t3(e3); + }() ? Promise.resolve(e3) : Promise.resolve(e3).then(r2).then(function(t4) { + var r3 = Promise.resolve(e3); + return t4.forEach(function(e4) { + r3 = r3.then(function(t5) { + return i2(t5, e4, n3, o2); + }); + }), r3; + }); + }, shouldProcess: t3, impl: { readUrls: r2, inline: i2 } }; + function t3(t4) { + return t4.search(e2) !== -1; + } + function r2(t4) { + for (var r3, i3 = []; (r3 = e2.exec(t4)) !== null; ) + i3.push(r3[1]); + return i3.filter(function(e3) { + return !n2.isDataUrl(e3); + }); + } + function i2(e3, t4, r3, i3) { + return Promise.resolve(t4).then(function(e4) { + return r3 ? n2.resolveUrl(e4, r3) : e4; + }).then(i3 || n2.getAndEncode).then(function(e4) { + return n2.dataAsUrl(e4, n2.mimeType(t4)); + }).then(function(r4) { + return e3.replace(function(e4) { + return new RegExp(`(url\\(['"]?)(` + n2.escape(e4) + `)(['"]?\\))`, "g"); + }(t4), "$1" + r4 + "$3"); + }); + } + }(), i = function() { + return { resolveAll: function() { + return e2(document).then(function(e3) { + return Promise.all(e3.map(function(e4) { + return e4.resolve(); + })); + }).then(function(e3) { + return e3.join("\n"); + }); + }, impl: { readAll: e2 } }; + function e2() { + return Promise.resolve(n2.asArray(document.styleSheets)).then(function(e4) { + var t3 = []; + return e4.forEach(function(e5) { + try { + n2.asArray(e5.cssRules || []).forEach(t3.push.bind(t3)); + } catch (t4) { + console.log("Error while reading CSS rules from " + e5.href, t4.toString()); + } + }), t3; + }).then(function(e4) { + return e4.filter(function(e5) { + return e5.type === CSSRule.FONT_FACE_RULE; + }).filter(function(e5) { + return r.shouldProcess(e5.style.getPropertyValue("src")); + }); + }).then(function(t3) { + return t3.map(e3); + }); + function e3(e4) { + return { resolve: function() { + var t3 = (e4.parentStyleSheet || {}).href; + return r.inlineAll(e4.cssText, t3); + }, src: function() { + return e4.style.getPropertyValue("src"); + } }; + } + } + }(), o = function() { + return { inlineAll: function t3(i2) { + return i2 instanceof Element ? function(e3) { + var t4 = e3.style.getPropertyValue("background"); + return t4 ? r.inlineAll(t4).then(function(t5) { + e3.style.setProperty("background", t5, e3.style.getPropertyPriority("background")); + }).then(function() { + return e3; + }) : Promise.resolve(e3); + }(i2).then(function() { + return i2 instanceof HTMLImageElement ? e2(i2).inline() : Promise.all(n2.asArray(i2.childNodes).map(function(e3) { + return t3(e3); + })); + }) : Promise.resolve(i2); + }, impl: { newImage: e2 } }; + function e2(e3) { + return { inline: function(t3) { + return n2.isDataUrl(e3.src) ? Promise.resolve() : Promise.resolve(e3.src).then(t3 || n2.getAndEncode).then(function(t4) { + return n2.dataAsUrl(t4, n2.mimeType(e3.src)); + }).then(function(t4) { + return new Promise(function(n3, r2) { + e3.onload = n3, e3.onerror = r2, e3.src = t4; + }); + }); + } }; + } + }(), a = { imagePlaceholder: void 0, cacheBust: false }, s = { toSvg: c, toPng: function(e2, t3) { + return l(e2, t3 || {}).then(function(e3) { + return e3.toDataURL(); + }); + }, toJpeg: function(e2, t3) { + return l(e2, t3 = t3 || {}).then(function(e3) { + return e3.toDataURL("image/jpeg", t3.quality || 1); + }); + }, toBlob: function(e2, t3) { + return l(e2, t3 || {}).then(n2.canvasToBlob); + }, toPixelData: function(e2, t3) { + return l(e2, t3 || {}).then(function(t4) { + return t4.getContext("2d").getImageData(0, 0, n2.width(e2), n2.height(e2)).data; + }); + }, impl: { fontFaces: i, images: o, util: n2, inliner: r, options: {} } }; + function c(e2, t3) { + return function(e3) { + e3.imagePlaceholder === void 0 ? s.impl.options.imagePlaceholder = a.imagePlaceholder : s.impl.options.imagePlaceholder = e3.imagePlaceholder; + e3.cacheBust === void 0 ? s.impl.options.cacheBust = a.cacheBust : s.impl.options.cacheBust = e3.cacheBust; + }(t3 = t3 || {}), Promise.resolve(e2).then(function(e3) { + return function e4(t4, r2, i2) { + return i2 || !r2 || r2(t4) ? Promise.resolve(t4).then(function(e5) { + return e5 instanceof HTMLCanvasElement ? n2.makeImage(e5.toDataURL()) : e5.cloneNode(false); + }).then(function(e5) { + return o2(t4, e5, r2); + }).then(function(e5) { + return function(e6, t5) { + return t5 instanceof Element ? Promise.resolve().then(r3).then(i3).then(o3).then(a2).then(function() { + return t5; + }) : t5; + function r3() { + var r4, i4; + r4 = window.getComputedStyle(e6), i4 = t5.style, r4.cssText ? i4.cssText = r4.cssText : function(e7, t6) { + n2.asArray(e7).forEach(function(n3) { + t6.setProperty(n3, e7.getPropertyValue(n3), e7.getPropertyPriority(n3)); + }); + }(r4, i4); + } + function i3() { + [":before", ":after"].forEach(function(r4) { + !function(r5) { + var i4 = window.getComputedStyle(e6, r5), o4 = i4.getPropertyValue("content"); + if (o4 === "" || o4 === "none") + return; + var a3 = n2.uid(); + t5.className = t5.className + " " + a3; + var s2 = document.createElement("style"); + s2.appendChild(function(e7, t6, r6) { + var i5 = "." + e7 + ":" + t6, o5 = r6.cssText ? function(e8) { + var t7 = e8.getPropertyValue("content"); + return e8.cssText + " content: " + t7 + ";"; + }(r6) : function(e8) { + return n2.asArray(e8).map(function(t7) { + return t7 + ": " + e8.getPropertyValue(t7) + (e8.getPropertyPriority(t7) ? " !important" : ""); + }).join("; ") + ";"; + }(r6); + return document.createTextNode(i5 + "{" + o5 + "}"); + }(a3, r5, i4)), t5.appendChild(s2); + }(r4); + }); + } + function o3() { + e6 instanceof HTMLTextAreaElement && (t5.innerHTML = e6.value), e6 instanceof HTMLInputElement && t5.setAttribute("value", e6.value); + } + function a2() { + t5 instanceof SVGElement && (t5.setAttribute("xmlns", "http://www.w3.org/2000/svg"), t5 instanceof SVGRectElement && ["width", "height"].forEach(function(e7) { + var n3 = t5.getAttribute(e7); + n3 && t5.style.setProperty(e7, n3); + })); + } + }(t4, e5); + }) : Promise.resolve(); + function o2(t5, r3, i3) { + var o3 = t5.childNodes; + return o3.length === 0 ? Promise.resolve(r3) : a2(r3, n2.asArray(o3), i3).then(function() { + return r3; + }); + function a2(t6, n3, r4) { + var i4 = Promise.resolve(); + return n3.forEach(function(n4) { + i4 = i4.then(function() { + return e4(n4, r4); + }).then(function(e5) { + e5 && t6.appendChild(e5); + }); + }), i4; + } + } + }(e3, t3.filter, true); + }).then(u).then(d).then(function(e3) { + t3.bgcolor && (e3.style.backgroundColor = t3.bgcolor); + t3.width && (e3.style.width = t3.width + "px"); + t3.height && (e3.style.height = t3.height + "px"); + t3.style && Object.keys(t3.style).forEach(function(n3) { + e3.style[n3] = t3.style[n3]; + }); + return e3; + }).then(function(r2) { + return function(e3, t4, r3) { + return Promise.resolve(e3).then(function(e4) { + return e4.setAttribute("xmlns", "http://www.w3.org/1999/xhtml"), new XMLSerializer().serializeToString(e4); + }).then(n2.escapeXhtml).then(function(e4) { + return '<foreignObject x="0" y="0" width="100%" height="100%">' + e4 + "</foreignObject>"; + }).then(function(e4) { + return '<svg xmlns="http://www.w3.org/2000/svg" width="' + t4 + '" height="' + r3 + '">' + e4 + "</svg>"; + }).then(function(e4) { + return "data:image/svg+xml;charset=utf-8," + e4; + }); + }(r2, t3.width || n2.width(e2), t3.height || n2.height(e2)); + }); + } + function l(e2, t3) { + return c(e2, t3).then(n2.makeImage).then(n2.delay(100)).then(function(r2) { + var i2 = function(e3) { + var r3 = document.createElement("canvas"); + if (r3.width = t3.width || n2.width(e3), r3.height = t3.height || n2.height(e3), t3.bgcolor) { + var i3 = r3.getContext("2d"); + i3.fillStyle = t3.bgcolor, i3.fillRect(0, 0, r3.width, r3.height); + } + return r3; + }(e2); + return i2.getContext("2d").drawImage(r2, 0, 0), i2; + }); + } + function u(e2) { + return i.resolveAll().then(function(t3) { + var n3 = document.createElement("style"); + return e2.appendChild(n3), n3.appendChild(document.createTextNode(t3)), e2; + }); + } + function d(e2) { + return o.inlineAll(e2).then(function() { + return e2; + }); + } + e.exports = s; + }(); + }, function(e, t) { + e.exports = function(e2, t2) { + (t2 == null || t2 > e2.length) && (t2 = e2.length); + for (var n = 0, r = new Array(t2); n < t2; n++) + r[n] = e2[n]; + return r; + }, e.exports["default"] = e.exports, e.exports.__esModule = true; + }, function(e, t) { + function n(t2, r) { + return e.exports = n = Object.setPrototypeOf || function(e2, t3) { + return e2.__proto__ = t3, e2; + }, e.exports["default"] = e.exports, e.exports.__esModule = true, n(t2, r); + } + e.exports = n, e.exports["default"] = e.exports, e.exports.__esModule = true; + }, function(e, t) { + function n(t2) { + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? (e.exports = n = function(e2) { + return typeof e2; + }, e.exports["default"] = e.exports, e.exports.__esModule = true) : (e.exports = n = function(e2) { + return e2 && typeof Symbol == "function" && e2.constructor === Symbol && e2 !== Symbol.prototype ? "symbol" : typeof e2; + }, e.exports["default"] = e.exports, e.exports.__esModule = true), n(t2); + } + e.exports = n, e.exports["default"] = e.exports, e.exports.__esModule = true; + }, function(e, t, n) { + var r = n(11); + e.exports = function(e2) { + if (Array.isArray(e2)) + return r(e2); + }, e.exports["default"] = e.exports, e.exports.__esModule = true; + }, function(e, t) { + e.exports = function(e2) { + if (typeof Symbol != "undefined" && Symbol.iterator in Object(e2)) + return Array.from(e2); + }, e.exports["default"] = e.exports, e.exports.__esModule = true; + }, function(e, t, n) { + var r = n(11); + e.exports = function(e2, t2) { + if (e2) { + if (typeof e2 == "string") + return r(e2, t2); + var n2 = Object.prototype.toString.call(e2).slice(8, -1); + return n2 === "Object" && e2.constructor && (n2 = e2.constructor.name), n2 === "Map" || n2 === "Set" ? Array.from(e2) : n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2) ? r(e2, t2) : void 0; + } + }, e.exports["default"] = e.exports, e.exports.__esModule = true; + }, function(e, t) { + e.exports = function() { + throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); + }, e.exports["default"] = e.exports, e.exports.__esModule = true; + }, function(e, t) { + e.exports = function(e2, t2) { + if (e2 == null) + return {}; + var n, r, i = {}, o = Object.keys(e2); + for (r = 0; r < o.length; r++) + n = o[r], t2.indexOf(n) >= 0 || (i[n] = e2[n]); + return i; + }, e.exports["default"] = e.exports, e.exports.__esModule = true; + }, function(e, t, n) { + "use strict"; + n.r(t); + var r = n(1), i = n.n(r), o = n(3), a = n.n(o), s = n(4), c = n.n(s), l = n(0), u = n.n(l), d = n(5), p = n.n(d), f = n(6), h = n.n(f), g = n(2), m = n.n(g), v = n(8), b = n.n(v); + function y(e2, t2) { + var n2, r2 = { second: 1e3, minute: 60 * 1e3, hour: 60 * 1e3 * 60, day: 24 * 60 * 1e3 * 60, week: 7 * 24 * 60 * 1e3 * 60, month: 30 * 24 * 60 * 1e3 * 60, year: 365 * 24 * 60 * 1e3 * 60 }, i2 = Math.round, o2 = " ago", a2 = function(e3, n3) { + return t2 === void 0 ? "".concat(n3, " ").concat(e3 + (n3 > 1 ? "s" : "") + o2) : n3 + e3.substring(0, 1); + }, s2 = Date.now() - new Date(e2).getTime(); + for (var c2 in s2 < 0 && (s2 *= (b()("ts"), -1), b()("dir"), o2 = " from now"), r2) { + if (i2(s2) < r2[c2]) + return a2(n2 || "m", i2(s2 / (r2[n2] || 1))); + n2 = c2; + } + return a2(c2, i2(s2 / r2[c2])); + } + function j(e2, t2) { + var n2 = Object.keys(e2); + if (Object.getOwnPropertySymbols) { + var r2 = Object.getOwnPropertySymbols(e2); + t2 && (r2 = r2.filter(function(t3) { + return Object.getOwnPropertyDescriptor(e2, t3).enumerable; + })), n2.push.apply(n2, r2); + } + return n2; + } + function w(e2) { + for (var t2 = 1; t2 < arguments.length; t2++) { + var n2 = arguments[t2] != null ? arguments[t2] : {}; + t2 % 2 ? j(Object(n2), true).forEach(function(t3) { + i()(e2, t3, n2[t3]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(n2)) : j(Object(n2)).forEach(function(t3) { + Object.defineProperty(e2, t3, Object.getOwnPropertyDescriptor(n2, t3)); + }); + } + return e2; + } + var x = function() { + function e2(t2) { + var n2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + a()(this, e2), this.editor = t2, this.$ = t2.$, this.pfx = t2.getConfig("stylePrefix"), this.id = t2.Storage.getConfig().id, this.opts = n2, this.setState = this.setState.bind(this), this.setStateSilent = this.setStateSilent.bind(this), this.onRender = this.onRender.bind(this), this.handleTabs = this.handleTabs.bind(this); + } + return c()(e2, [{ key: "setState", value: function(e3) { + this.state = w(w({}, this.state), e3), this.update(); + } }, { key: "setStateSilent", value: function(e3) { + this.state = w(w({}, this.state), e3); + } }, { key: "sm", get: function() { + return this.editor.Storage; + } }, { key: "cs", get: function() { + return this.editor.Storage.getCurrentStorage(); + } }, { key: "pm", get: function() { + return this.editor.Pages; + } }, { key: "onRender", value: function() { + } }, { key: "handleTabs", value: function() { + } }]), e2; + }(); + function O(e2) { + return P(e2) / 1024; + } + function P(e2) { + return new TextEncoder().encode(JSON.stringify(e2)).length; + } + function S(e2, t2) { + return !(!t2 || !e2) && t2.toLowerCase().indexOf(e2.toLowerCase()) > -1; + } + function I(e2, t2) { + var n2 = Object.keys(e2); + if (Object.getOwnPropertySymbols) { + var r2 = Object.getOwnPropertySymbols(e2); + t2 && (r2 = r2.filter(function(t3) { + return Object.getOwnPropertyDescriptor(e2, t3).enumerable; + })), n2.push.apply(n2, r2); + } + return n2; + } + function T(e2) { + for (var t2 = 1; t2 < arguments.length; t2++) { + var n2 = arguments[t2] != null ? arguments[t2] : {}; + t2 % 2 ? I(Object(n2), true).forEach(function(t3) { + i()(e2, t3, n2[t3]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(n2)) : I(Object(n2)).forEach(function(t3) { + Object.defineProperty(e2, t3, Object.getOwnPropertyDescriptor(n2, t3)); + }); + } + return e2; + } + function k(e2) { + var t2 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (e3) { + return false; + } + }(); + return function() { + var n2, r2 = m()(e2); + if (t2) { + var i2 = m()(this).constructor; + n2 = Reflect.construct(r2, arguments, i2); + } else + n2 = r2.apply(this, arguments); + return h()(this, n2); + }; + } + var D = function(e2) { + p()(n2, e2); + var t2 = k(n2); + function n2(e3) { + var r2, i2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + return a()(this, n2), (r2 = t2.call(this, e3, i2)).handleSort = r2.handleSort.bind(u()(r2)), r2.handleFilterInput = r2.handleFilterInput.bind(u()(r2)), r2.handleNameInput = r2.handleNameInput.bind(u()(r2)), r2.handleOpen = r2.handleOpen.bind(u()(r2)), r2.handleCreate = r2.handleCreate.bind(u()(r2)), r2.handleDelete = r2.handleDelete.bind(u()(r2)), r2.openEdit = r2.openEdit.bind(u()(r2)), r2.state = { editableProjectId: "", projectId: "", tab: "pages", sites: [], nameText: "", filterText: "", loading: false, sortBy: "published_at", sortOrder: "desc" }, r2; + } + return c()(n2, [{ key: "editableId", get: function() { + return this.state.editableProjectId; + } }, { key: "allSites", get: function() { + return this.state.sites; + } }, { key: "allSitesSize", get: function() { + return O(this.state.sites); + } }, { key: "onRender", value: function() { + var e3 = this.setState, t3 = this.cs; + e3({ loading: true }), t3.loadAll(function(t4) { + e3({ sites: t4, loading: false }); + }, function(e4) { + return console.log("Error", e4); + }); + } }, { key: "handleFilterInput", value: function(e3) { + this.setState({ filterText: e3.target.value.trim() }); + } }, { key: "handleNameInput", value: function(e3) { + this.setStateSilent({ nameText: e3.target.value.trim() }); + } }, { key: "handleSort", value: function(e3) { + var t3 = this.state.sortOrder; + e3.target && e3.target.dataset && this.setState({ sortBy: e3.target.dataset.sort, sortOrder: t3 === "desc" ? "asc" : "desc" }); + } }, { key: "handleTabs", value: function(e3) { + var t3 = e3.target, n3 = this.$el, r2 = this.pfx, i2 = this.$; + n3.find(".".concat(r2, "tablinks")).removeClass("active"), i2(t3).addClass("active"), t3.id === "pages" ? this.setState({ tab: "pages" }) : this.setState({ tab: "templates" }); + } }, { key: "handleOpen", value: function(e3) { + var t3 = this.editor, n3 = this.cs, r2 = this.state.projectId; + r2 && r2 !== n3.currentId ? (n3.setId(r2), t3.load(function(e4) { + n3.setName(e4.name), n3.setThumbnail(e4.thumbnail || ""), n3.setIsTemplate(e4.template), n3.setDescription(e4.description || "No description"), t3.Modal.close(); + })) : this.opts.currentPageOpen(); + } }, { key: "handleCreate", value: function(e3) { + var t3 = this.editor, n3 = this.cs, r2 = this.state, i2 = r2.projectId, o2 = r2.nameText, a2 = t3.runCommand("get-uuidv4"), s2 = o2 || "New-" + a2.substr(0, 8), c2 = { id: a2, name: s2, template: false, thumbnail: "", styles: "[]", description: "No description" }; + c2["".concat(this.id, "pages")] = '[{"id": "'.concat(crypto.randomUUID().substr(0, 8), '", "name": "index"}]'), c2["".concat(this.id, "styles")] = "[]", c2["".concat(this.id, "assets")] = "[]", i2 ? (n3.setId(i2), n3.setIsTemplate(false), t3.load(function(e4) { + n3.setId(a2), n3.setName(s2), n3.setThumbnail(e4.thumbnail || ""), n3.setDescription(e4.description || "No description"), t3.Modal.close(); + })) : (n3.setId(a2), n3.store(c2, function(e4) { + n3.setIsTemplate(false), t3.load(function(e5) { + n3.setId(e5.id), n3.setName(e5.name), n3.setThumbnail(e5.thumbnail || ""), n3.setDescription(e5.description || "No description"), t3.Modal.close(); + }); + })); + } }, { key: "openEdit", value: function(e3) { + var t3 = this.editor; + (0, this.setStateSilent)({ editableProjectId: e3.currentTarget.dataset.id }), t3.Modal.close(), t3.SettingsApp.setTab("project"), t3.runCommand("open-settings"); + } }, { key: "handleEdit", value: function(e3) { + this.cs.update(T(T({}, e3), {}, { updated_at: Date() })); + } }, { key: "handleDelete", value: function(e3) { + var t3 = this.cs, n3 = this.setState, r2 = this.opts; + t3.delete(function(e4) { + r2.onDelete(e4), t3.loadAll(function(e5) { + return n3({ sites: e5 }); + }, function(e5) { + return console.log("Error", e5); + }); + }, r2.onDeleteError, e3.currentTarget.dataset.id); + } }, { key: "renderSiteList", value: function() { + var e3, t3 = this, n3 = this.state, r2 = n3.sites, i2 = n3.tab, o2 = n3.filterText, a2 = n3.loading, s2 = n3.sortBy, c2 = n3.sortOrder, l2 = this.pfx, u2 = this.opts, d2 = this.cs, p2 = this.editor; + if (a2) + return u2.loader || "<div>Loading sites...</div>"; + if (!r2.length) + return u2.nosites || "<div>No Sites</div>"; + s2 === "id" ? e3 = function(e4, t4) { + return function(n4, r3) { + if (t4 === "asc") { + if (n4[e4] < r3[e4]) + return -1; + if (n4[e4] > r3[e4]) + return 1; + } + return n4[e4] > r3[e4] ? -1 : n4[e4] < r3[e4] ? 1 : 0; + }; + }(s2, c2) : s2 === "updated_at" || s2 === "created_at" ? e3 = function(e4, t4) { + return function(n4, r3) { + var i3 = new Date(n4[e4]).getTime(), o3 = new Date(r3[e4]).getTime(); + return t4 === "asc" ? i3 - o3 : o3 - i3; + }; + }(s2, c2) : s2 === "pages" ? e3 = function(e4, t4) { + return function(n4, r3) { + var i3 = JSON.parse(n4[e4]), o3 = JSON.parse(r3[e4]); + if (t4 === "desc") { + if (i3.length < o3.length) + return -1; + if (i3.length > o3.length) + return 1; + } + return i3.length > o3.length ? -1 : i3.length < o3.length ? 1 : 0; + }; + }(this.id + s2, c2) : s2 === "size" && (e3 = function(e4) { + return function(t4, n4) { + var r3 = O(t4), i3 = O(n4); + if (e4 === "asc") { + if (r3 < i3) + return -1; + if (r3 > i3) + return 1; + } + return r3 > i3 ? -1 : r3 < i3 ? 1 : 0; + }; + }(c2)); + var f2 = r2.sort(e3).filter(function(e4) { + if (!o2 && i2 === "pages") + return true; + var t4 = e4.id, n4 = e4.name, r3 = e4.template; + return !(!S(o2, t4) && !S(o2, n4) || i2 !== "pages") || !(i2 !== "templates" || !r3); + }).map(function(e4, n4) { + var r3 = e4.id, i3 = e4.name, o3 = e4.description, a3 = e4.thumbnail, s3 = e4.created_at, c3 = e4.updated_at, f3 = O(e4), h2 = JSON.parse(e4["".concat(t3.id, "pages")]), g2 = c3 ? y(new Date(c3).getTime()) : "NA", m2 = s3 ? y(new Date(s3).getTime()) : "NA", v2 = h2.map(function(e5) { + return e5.name; + }).join(", "); + return '<div \n class="site-wrapper '.concat(d2.currentId === r3 ? "open" : "", '" \n key="').concat(n4, '" \n data-id="').concat(r3, '" \n title="').concat(p2.I18n.t("grapesjs-project-manager.templates.titles.open"), '">\n <div class="site-screenshot">\n <img src="').concat(a3, '" alt="" />\n </div>\n <div class="site-info">\n <h2>\n ').concat(i3, '\n </h2>\n <div class="site-meta">\n ').concat(o3, '\n </div>\n </div>\n <div class="site-update-time">').concat(g2, '</div>\n <div class="site-pages">\n <div title="').concat(v2 || r3, '">\n ').concat(h2.length || 1, '\n </div>\n </div>\n <div class="site-create-time">').concat(m2, "</div>\n ").concat(u2.size ? '<div class="site-size" title="'.concat(f3, ' KB">\n ').concat(f3.toFixed(2), " KB\n </div>") : "", '\n <div class="site-actions">\n <i class="').concat(l2, 'caret-icon fa fa-hand-pointer-o edit" title="').concat(p2.I18n.t("grapesjs-project-manager.templates.titles.edit"), '" data-id="').concat(r3, '"></i>\n ').concat(d2.currentId !== r3 ? '<i class="'.concat(l2, 'caret-icon fa fa-trash-o delete" title="').concat(p2.I18n.t("grapesjs-project-manager.templates.titles.delete"), '" data-id="').concat(r3, '"></i>') : "", "\n </div>\n </div>"); + }).join("\n"); + if (!f2.length) { + if (i2 === "templates") + return u2.nosites || "<div>No Templates Available.</div>"; + f2 = "<div>\n <h3>\n No '".concat(o2, "' examples found. Clear your search and try again.\n </h3>\n </div>"); + } + return f2; + } }, { key: "renderSiteActions", value: function() { + var e3 = this.editor; + return this.state.tab === "pages" ? '<div class="flex-row">\n <input \n class="search tm-input" \n placeholder="'.concat(e3.I18n.t("grapesjs-project-manager.templates.search"), '"\n />\n <button id="open" class="primary-button">\n ').concat(e3.I18n.t("grapesjs-project-manager.templates.open"), "\n </button>\n </div>") : '<div class="'.concat(this.pfx, "tip-about ").concat(this.pfx, 'four-color">\n ').concat(e3.I18n.t("grapesjs-project-manager.templates.help"), '\n </div>\n <div class="flex-row">\n <input \n class="name tm-input" \n placeholder="').concat(e3.I18n.t("grapesjs-project-manager.templates.new"), '"\n />\n <button id="create" class="primary-button">\n ').concat(e3.I18n.t("grapesjs-project-manager.templates.create"), "\n </button>\n </div>"); + } }, { key: "renderThumbnail", value: function(e3, t3) { + var n3 = '<img src="'.concat(e3, '" alt="" />'); + return e3 ? n3 : t3.html ? '<svg xmlns="http://www.w3.org/2000/svg" class="template-preview" viewBox="0 0 1300 1100" width="99%" height="220">\n <foreignObject width="100%" height="100%" style="pointer-events:none">\n <div xmlns="http://www.w3.org/1999/xhtml">\n '.concat(t3.html + "<style scoped>" + t3.css + "</style>", "\n </div>\n </foreignObject>\n </svg>") : n3; + } }, { key: "update", value: function() { + var e3, t3, n3, r2, i2, o2, a2, s2, c2, l2 = this; + (e3 = this.$el) === null || e3 === void 0 || e3.find("#site-list").html(this.renderSiteList()), (t3 = this.$el) === null || t3 === void 0 || t3.find("#tm-actions").html(this.renderSiteActions()); + var u2 = (n3 = this.$el) === null || n3 === void 0 ? void 0 : n3.find(".site-wrapper"), d2 = (r2 = this.$el) === null || r2 === void 0 ? void 0 : r2.find("input.search"), p2 = (i2 = this.$el) === null || i2 === void 0 ? void 0 : i2.find("input.name"); + this.setStateSilent({ projectId: "" }), u2 && u2.on("click", function(e4) { + u2.removeClass("selected"), l2.$(e4.currentTarget).addClass("selected"), l2.setStateSilent({ projectId: e4.currentTarget.dataset.id }); + }), d2 && (d2.val(this.state.filterText), d2.on("change", this.handleFilterInput)), p2 && (p2.val(this.state.nameText), p2.on("change", this.handleNameInput)), (o2 = this.$el) === null || o2 === void 0 || o2.find("#open").on("click", this.handleOpen), (a2 = this.$el) === null || a2 === void 0 || a2.find("#create").on("click", this.handleCreate), (s2 = this.$el) === null || s2 === void 0 || s2.find("i.edit").on("click", this.openEdit), (c2 = this.$el) === null || c2 === void 0 || c2.find("i.delete").on("click", this.handleDelete); + } }, { key: "render", value: function() { + var e3, t3 = this.$, n3 = this.pfx, r2 = this.opts, i2 = this.editor, o2 = this.state.tab; + this.onRender(), (e3 = this.$el) === null || e3 === void 0 || e3.remove(); + var a2 = t3('<div class="app">\n <div class="contents">\n <div class="'.concat(n3, 'tab">\n <button id="pages" class="').concat(n3, "tablinks ").concat(o2 === "pages" ? "active" : "", '">\n ').concat(i2.I18n.t("grapesjs-project-manager.templates.all"), '\n </button>\n <button id="templates" class="').concat(n3, "tablinks ").concat(o2 === "templates" ? "active" : "", '"">\n ').concat(i2.I18n.t("grapesjs-project-manager.templates.templates"), '\n </button>\n </div>\n <div id="tm-actions">\n ').concat(this.renderSiteActions(), '\n </div>\n <div class="site-wrapper-header">\n <div\n class="site-screenshot-header header"\n data-sort="id"\n title="').concat(i2.I18n.t("grapesjs-project-manager.templates.titles.info"), '"\n >\n ').concat(i2.I18n.t("grapesjs-project-manager.templates.info"), '\n </div>\n <div\n class="site-info header"\n data-sort="id"\n ></div>\n <div\n class="site-update-time header"\n data-sort="updated_at"\n title="').concat(i2.I18n.t("grapesjs-project-manager.templates.titles.updated"), '"\n >\n ').concat(i2.I18n.t("grapesjs-project-manager.templates.updated"), '\n </div>\n <div\n class="site-pages header"\n data-sort="pages"\n title="').concat(i2.I18n.t("grapesjs-project-manager.templates.titles.pages"), '"\n >\n ').concat(i2.I18n.t("grapesjs-project-manager.templates.pages"), '\n </div>\n <div\n class="site-create-time header"\n data-sort="created_at"\n title="').concat(i2.I18n.t("grapesjs-project-manager.templates.titles.created"), '"\n >\n ').concat(i2.I18n.t("grapesjs-project-manager.templates.created"), "\n </div>\n ").concat(r2.size ? '<div\n class="site-size header"\n data-sort="size"\n title="'.concat(i2.I18n.t("grapesjs-project-manager.templates.titles.size"), '"\n >\n ').concat(i2.I18n.t("grapesjs-project-manager.templates.size"), "\n </div>") : "", '\n <div\n class="site-actions header"\n data-sort="id"\n title="').concat(i2.I18n.t("grapesjs-project-manager.templates.titles.actions"), '"\n >\n ').concat(i2.I18n.t("grapesjs-project-manager.templates.actions"), '\n </div>\n </div>\n <div id="site-list">\n ').concat(this.renderSiteList(), "\n </div>\n </div>\n </div>")); + return a2.find(".header").on("click", this.handleSort), a2.find("#pages, #templates").on("click", this.handleTabs), this.$el = a2, a2; + } }]), n2; + }(x), E = n(9), _ = n.n(E); + function A(e2) { + var t2 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (e3) { + return false; + } + }(); + return function() { + var n2, r2 = m()(e2); + if (t2) { + var i2 = m()(this).constructor; + n2 = Reflect.construct(r2, arguments, i2); + } else + n2 = r2.apply(this, arguments); + return h()(this, n2); + }; + } + var C = function(e2) { + p()(n2, e2); + var t2 = A(n2); + function n2(e3) { + var r2, i2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + return a()(this, n2), (r2 = t2.call(this, e3, i2)).addPage = r2.addPage.bind(u()(r2)), r2.selectPage = r2.selectPage.bind(u()(r2)), r2.removePage = r2.removePage.bind(u()(r2)), r2.isSelected = r2.isSelected.bind(u()(r2)), r2.handleNameInput = r2.handleNameInput.bind(u()(r2)), r2.openEdit = r2.openEdit.bind(u()(r2)), r2.state = { editablePageId: "", isShowing: true, nameText: "", pages: [], loading: false }, r2; + } + return c()(n2, [{ key: "editableId", get: function() { + return this.state.editablePageId; + } }, { key: "onRender", value: function() { + var e3 = this.pm, t3 = this.setState, n3 = this.editor; + t3({ loading: true }), t3({ pages: _()(e3.getAll()) }), n3.on("page", function() { + t3({ pages: _()(e3.getAll()) }); + }), t3({ loading: false }); + } }, { key: "isSelected", value: function(e3) { + return this.pm.getSelected().id === e3.id; + } }, { key: "selectPage", value: function(e3) { + this.pm.select(e3.currentTarget.dataset.key), this.update(); + } }, { key: "removePage", value: function(e3) { + this.pm.remove(e3.currentTarget.dataset.key), this.update(); + } }, { key: "openEdit", value: function(e3) { + var t3 = this.editor; + this.setStateSilent({ editablePageId: e3.currentTarget.dataset.key }), t3.Modal.close(), t3.SettingsApp.setTab("page"), t3.runCommand("open-settings"); + } }, { key: "editPage", value: function(e3, t3) { + var n3 = this.pm.get(e3); + n3 == null || n3.set("name", t3), this.update(); + } }, { key: "addPage", value: function() { + var e3 = this.pm, t3 = this.state.nameText; + t3 && (e3.add({ name: t3, component: "" }), this.update()); + } }, { key: "handleNameInput", value: function(e3) { + this.setStateSilent({ nameText: e3.target.value.trim() }); + } }, { key: "renderPagesList", value: function() { + var e3 = this.state, t3 = e3.pages, n3 = e3.loading, r2 = this.opts, i2 = this.isSelected; + return n3 ? r2.loader || "<div>Loading pages...</div>" : t3.map(function(e4, t4) { + return '<div \n data-id="'.concat(t4, '" \n data-key="').concat(e4.id, '" \n class="page ').concat(i2(e4) ? "selected" : "", '"\n >\n <i class="fa fa-file-o" style="margin:5px;"></i>\n ').concat(e4.get("name") || e4.id, "\n ").concat(i2(e4) ? "" : '<span class="page-close" data-key="'.concat(e4.id, '">⨯</span>'), '\n <span class="page-edit" data-key="').concat(e4.id, '"><i class="fa fa-hand-pointer-o"></i></span>\n </div>'); + }).join("\n"); + } }, { key: "update", value: function() { + var e3, t3, n3, r2; + (e3 = this.$el) === null || e3 === void 0 || e3.find(".pages").html(this.renderPagesList()), (t3 = this.$el) === null || t3 === void 0 || t3.find(".page").on("click", this.selectPage), (n3 = this.$el) === null || n3 === void 0 || n3.find(".page-edit").on("click", this.openEdit), (r2 = this.$el) === null || r2 === void 0 || r2.find(".page-close").on("click", this.removePage); + } }, { key: "render", value: function() { + var e3, t3 = this.$, n3 = this.editor; + this.onRender(), (e3 = this.$el) === null || e3 === void 0 || e3.remove(); + var r2 = t3('<div style="display: '.concat(this.state.isShowing ? "flex" : "none", ';" class="pages-wrp">\n <div class="pages">\n ').concat(this.renderPagesList(), '\n </div>\n <div class="flex-row">\n <input \n class="tm-input sm" \n type="text" \n placeholder="').concat(n3.I18n.t("grapesjs-project-manager.pages.placeholder"), '" \n />\n </div>\n <div class="add-page">\n ').concat(n3.I18n.t("grapesjs-project-manager.pages.new"), "\n </div>\n </div>")); + return r2.find(".add-page").on("click", this.addPage), r2.find("input").on("change", this.handleNameInput), this.$el = r2, r2; + } }, { key: "findPanel", get: function() { + return this.editor.Panels.getPanel("views-container"); + } }, { key: "showPanel", value: function() { + var e3; + this.state.isShowing = true, (e3 = this.findPanel) === null || e3 === void 0 || e3.set("appendContent", this.render()).trigger("change:appendContent"), this.update(); + } }, { key: "hidePanel", value: function() { + this.state.isShowing = false, this.render(); + } }]), n2; + }(x); + function N(e2) { + var t2 = function() { + if (typeof Reflect == "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy == "function") + return true; + try { + return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })), true; + } catch (e3) { + return false; + } + }(); + return function() { + var n2, r2 = m()(e2); + if (t2) { + var i2 = m()(this).constructor; + n2 = Reflect.construct(r2, arguments, i2); + } else + n2 = r2.apply(this, arguments); + return h()(this, n2); + }; + } + var M = function(e2) { + p()(n2, e2); + var t2 = N(n2); + function n2(e3) { + var r2, i2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + return a()(this, n2), (r2 = t2.call(this, e3, i2)).handleSave = r2.handleSave.bind(u()(r2)), r2.handleThumbnail = r2.handleThumbnail.bind(u()(r2)), r2.handleThumbnailInput = r2.handleThumbnailInput.bind(u()(r2)), r2.state = { tab: "page", loading: false }, r2; + } + return c()(n2, [{ key: "setTab", value: function(e3) { + this.state.tab = e3; + } }, { key: "update", value: function() { + var e3 = this.$el; + e3 == null || e3.find("#settings").html(this.renderSettings()), e3 == null || e3.find("#generate").on("click", this.handleThumbnail), e3 == null || e3.find("input#thumbnail").on("change", this.handleThumbnailInput); + } }, { key: "onRender", value: function() { + var e3 = this.setState; + e3({ loading: true }), e3({ loading: false }); + } }, { key: "handleSave", value: function(e3) { + var t3 = this.$el, n3 = this.editor; + if (this.state.tab === "page") { + var r2 = n3.PagesApp.editableId, i2 = t3 == null ? void 0 : t3.find("input.name").val().trim(); + r2 && n3.PagesApp.editPage(r2, i2); + } else { + var o2 = n3.TemplateManager.editableId, a2 = t3 == null ? void 0 : t3.find("input.thumbnail").val().trim(), s2 = t3 == null ? void 0 : t3.find("input.name").val().trim(), c2 = t3 == null ? void 0 : t3.find("input.desc").val().trim(), l2 = t3 == null ? void 0 : t3.find("input.template").get(0).checked; + o2 && n3.TemplateManager.handleEdit({ id: o2, thumbnail: a2, name: s2, description: c2, template: l2 }); + } + n3.Modal.close(); + } }, { key: "handleThumbnail", value: function(e3) { + var t3 = this.editor, n3 = this.$el; + t3.runCommand("take-screenshot", { clb: function(e4) { + n3 == null || n3.find("input.thumbnail").val(e4), n3 == null || n3.find("img").attr("src", e4); + } }); + } }, { key: "handleThumbnailInput", value: function(e3) { + var t3; + (t3 = this.$el) === null || t3 === void 0 || t3.find("img").attr("src", e3.target.value.trim()); + } }, { key: "renderSettings", value: function() { + var e3 = this.state, t3 = e3.tab, n3 = e3.loading, r2 = this.opts, i2 = this.pfx, o2 = this.pm, a2 = this.editor; + if (n3) + return r2.loader || "<div>Loading settings...</div>"; + if (t3 === "page") { + var s2 = o2.get(a2.PagesApp.editableId), c2 = (s2 == null ? void 0 : s2.get("name")) || (s2 == null ? void 0 : s2.id) || ""; + return '<label for="name">\n '.concat(a2.I18n.t("grapesjs-project-manager.settings.labels.name"), '\n </label>\n <div class="flex-row">\n <input \n class="name tm-input" \n value="').concat(c2, '" \n placeholder="').concat(a2.I18n.t("grapesjs-project-manager.settings.placeholders.name"), '"/>\n </div>'); + } + var l2 = a2.TemplateManager.allSites.find(function(e4) { + return e4.id === a2.TemplateManager.editableId; + }); + return '<div class="'.concat(i2, "tip-about ").concat(i2, 'four-color">\n ').concat(a2.I18n.t("grapesjs-project-manager.settings.help"), '\n </div>\n <label for="thumbnail">\n ').concat(a2.I18n.t("grapesjs-project-manager.settings.labels.thumbnail"), '\n </label>\n <div class="flex-row">\n <input \n id="thumbnail" \n class="thumbnail tm-input" \n value="').concat((l2 == null ? void 0 : l2.thumbnail) || "", '" \n placeholder="').concat(a2.I18n.t("grapesjs-project-manager.settings.placeholders.thumbnail"), '"\n />\n </div>\n <div class="flex-row" style="margin-bottom:15px;">\n <div class="site-screenshot">\n <img src="').concat((l2 == null ? void 0 : l2.thumbnail) || "", '" alt="screenshot" />\n </div>\n <button id="generate" class="primary-button">\n ').concat(a2.I18n.t("grapesjs-project-manager.settings.generate"), '\n </button>\n </div>\n <label for="name">\n ').concat(a2.I18n.t("grapesjs-project-manager.settings.labels.name"), '\n </label>\n <div class="flex-row">\n <input \n id="name" \n class="name tm-input" \n value="').concat((l2 == null ? void 0 : l2.name) || "", '" \n placeholder="').concat(a2.I18n.t("grapesjs-project-manager.settings.placeholders.name"), '"\n />\n </div>\n <label for="desc">\n ').concat(a2.I18n.t("grapesjs-project-manager.settings.labels.description"), '\n </label>\n <div class="flex-row">\n <input \n id="desc" \n class="desc tm-input" \n value="').concat((l2 == null ? void 0 : l2.description) || "", '" \n placeholder="').concat(a2.I18n.t("grapesjs-project-manager.settings.placeholders.description"), '"\n />\n </div>\n <div class="flex-row group">\n <input id="template" class="template" type="checkbox" ').concat(l2 != null && l2.template ? "checked" : "", '/>\n <label for="template">\n ').concat(a2.I18n.t("grapesjs-project-manager.settings.labels.template"), "\n </label>\n </div>"); + } }, { key: "render", value: function() { + var e3, t3 = this.$, n3 = this.editor; + this.onRender(), (e3 = this.$el) === null || e3 === void 0 || e3.remove(); + var r2 = t3('<div class="app">\n <div id="settings">\n '.concat(this.renderSettings(), '\n </div>\n <div class="flex-row">\n <button id="save" class="primary-button">\n ').concat(n3.I18n.t("grapesjs-project-manager.settings.save"), "\n </button>\n </div>\n </div>")); + return r2.find("#save").on("click", this.handleSave), r2.find("#generate").on("click", this.handleThumbnail), r2.find("input#thumbnail").on("change", this.handleThumbnailInput), this.$el = r2, r2; + } }]), n2; + }(x), L = D, R = n(10), $ = n.n(R); + function B(e2, t2) { + var n2 = Object.keys(e2); + if (Object.getOwnPropertySymbols) { + var r2 = Object.getOwnPropertySymbols(e2); + t2 && (r2 = r2.filter(function(t3) { + return Object.getOwnPropertyDescriptor(e2, t3).enumerable; + })), n2.push.apply(n2, r2); + } + return n2; + } + function U(e2) { + for (var t2 = 1; t2 < arguments.length; t2++) { + var n2 = arguments[t2] != null ? arguments[t2] : {}; + t2 % 2 ? B(Object(n2), true).forEach(function(t3) { + i()(e2, t3, n2[t3]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(n2)) : B(Object(n2)).forEach(function(t3) { + Object.defineProperty(e2, t3, Object.getOwnPropertyDescriptor(n2, t3)); + }); + } + return e2; + } + var z = function(e2) { + var t2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n2 = e2.Commands, r2 = e2.Storage.getCurrentStorage(), i2 = e2.Modal, o2 = e2.getConfig("stylePrefix"), a2 = "".concat(o2, "mdl-dialog-tml"), s2 = "".concat(o2, "mdl-dialog-md"); + e2.domtoimage = $.a, n2.add("open-templates", { run: function(e3, n3) { + var r3 = document.querySelector(".".concat(o2, "mdl-dialog")); + r3.classList.add(a2), (n3 == null ? void 0 : n3.set) && n3.set("active"), i2.setTitle(t2.mdlTitle), i2.setContent(e3.TemplateManager.render()), i2.open(), i2.getModel().once("change:open", function() { + r3.classList.remove(a2); + }); + } }), n2.add("open-settings", { run: function(e3, n3) { + var r3 = document.querySelector(".".concat(o2, "mdl-dialog")); + r3.classList.add(s2), (n3 == null ? void 0 : n3.set) && n3.set("active"), i2.setTitle(t2.mdlTitle), i2.setContent(e3.SettingsApp.render()), i2.open(), i2.getModel().once("change:open", function() { + r3.classList.remove(s2); + }); + } }), n2.add("open-pages", { run: function(e3) { + e3.PagesApp.showPanel(); + }, stop: function(e3) { + e3.PagesApp.hidePanel(); + } }); + var c2 = function() { + return ([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, function(e3) { + return (e3 ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> e3 / 4).toString(16); + }); + }, l2 = function(e3) { + var t3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n3 = arguments.length > 2 ? arguments[2] : void 0, r3 = arguments.length > 3 ? arguments[3] : void 0; + $.a.toJpeg(e3, t3).then(function(e4) { + return n3 && n3(e4); + }).catch(function(e4) { + return r3 && r3(e4); + }); + }; + n2.add("get-uuidv4", function() { + if (crypto) + return crypto.randomUUID ? crypto.randomUUID() : c2(); + }), n2.add("take-screenshot", function(e3, n3) { + var r3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { clb: function(e4) { + return e4; + } }, i3 = e3.getWrapper().getEl(); + l2(i3, { quality: t2.quality, height: 1e3, cacheBust: true, style: U({ "background-color": "white" }, e3.getWrapper().getStyle()) }, r3.clb, t2.onScreenshotError); + }), n2.add("save-as-template", function(e3) { + r2.setIsTemplate(true), e3.store(); + }), n2.add("delete-template", function(e3) { + r2.delete(t2.onDelete, t2.onDeleteError); + }); + }, V = n(7), F = n.n(V), q = "indexeddb", H = "rest-api", W = "firestore"; + function J(e2, t2) { + var n2 = Object.keys(e2); + if (Object.getOwnPropertySymbols) { + var r2 = Object.getOwnPropertySymbols(e2); + t2 && (r2 = r2.filter(function(t3) { + return Object.getOwnPropertyDescriptor(e2, t3).enumerable; + })), n2.push.apply(n2, r2); + } + return n2; + } + function K(e2) { + for (var t2 = 1; t2 < arguments.length; t2++) { + var n2 = arguments[t2] != null ? arguments[t2] : {}; + t2 % 2 ? J(Object(n2), true).forEach(function(t3) { + i()(e2, t3, n2[t3]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(n2)) : J(Object(n2)).forEach(function(t3) { + Object.defineProperty(e2, t3, Object.getOwnPropertyDescriptor(n2, t3)); + }); + } + return e2; + } + var G = function(e2) { + var t2, n2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r2 = e2.StorageManager, i2 = q, o2 = n2.objectStoreName, a2 = function() { + return t2; + }, s2 = function(e3) { + if (t2) + e3(t2); + else { + var a3 = (window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB).open(n2.dbName, n2.indexeddbVersion), s3 = function() { + return r2.onError(i2, a3.errorCode); + }; + a3.onerror = s3, a3.onsuccess = function() { + (t2 = a3.result).onerror = s3, e3(t2); + }, a3.onupgradeneeded = function(e4) { + e4.currentTarget.result.createObjectStore(o2, { keyPath: "id" }).createIndex("name", "name", { unique: false }); + }; + } + }, c2 = function() { + return t2.transaction([o2], "readwrite").objectStore(o2); + }, l2 = function(e3) { + t2 ? e3(c2()) : s2(function(t3) { + return e3(c2()); + }); + }; + r2.add(i2, { currentName: "Default", currentId: "uuidv4", currentThumbnail: "", isTemplate: false, description: "No description", getDb: a2, getObjectStore: c2, setId: function(e3) { + this.currentId = e3; + }, setName: function(e3) { + this.currentName = e3; + }, setThumbnail: function(e3) { + this.currentThumbnail = e3; + }, setIsTemplate: function(e3) { + this.isTemplate = !!e3; + }, setDescription: function(e3) { + this.description = e3; + }, load: function(e3, t3, n3) { + var r3 = this; + l2(function(e4) { + var i3 = e4.get(r3.currentId); + i3.onerror = n3, i3.onsuccess = function() { + t3 && t3(i3.result); + }; + }); + }, loadAll: function(e3, t3) { + l2(function(n3) { + var r3 = n3.getAll(); + r3.onerror = t3, r3.onsuccess = function() { + e3 && e3(r3.result); + }; + }); + }, store: function(e3, t3, n3) { + var r3 = this; + l2(function(i3) { + var o3 = i3.put(K({ id: r3.currentId, name: r3.currentName, template: r3.isTemplate, thumbnail: r3.currentThumbnail, description: r3.description, updated_at: Date() }, e3)); + o3.onerror = n3, o3.onsuccess = t3; + }); + }, update: function(e3, t3, n3) { + var r3 = e3.id, i3 = F()(e3, ["id"]); + l2(function(e4) { + var o3 = e4.get(r3); + o3.onerror = n3, o3.onsuccess = function() { + e4.put(K(K({ id: r3 }, o3.result), i3)), t3 && t3(o3.result); + }; + }); + }, delete: function(e3, t3, n3) { + var r3 = this; + l2(function(i3) { + var o3 = i3.delete(n3 || r3.currentId); + o3.onerror = t3, o3.onsuccess = e3; + }); + } }); + }; + function X(e2, t2) { + var n2 = Object.keys(e2); + if (Object.getOwnPropertySymbols) { + var r2 = Object.getOwnPropertySymbols(e2); + t2 && (r2 = r2.filter(function(t3) { + return Object.getOwnPropertyDescriptor(e2, t3).enumerable; + })), n2.push.apply(n2, r2); + } + return n2; + } + function Y(e2) { + for (var t2 = 1; t2 < arguments.length; t2++) { + var n2 = arguments[t2] != null ? arguments[t2] : {}; + t2 % 2 ? X(Object(n2), true).forEach(function(t3) { + i()(e2, t3, n2[t3]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(n2)) : X(Object(n2)).forEach(function(t3) { + Object.defineProperty(e2, t3, Object.getOwnPropertyDescriptor(n2, t3)); + }); + } + return e2; + } + var Q = function(e2) { + var t2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n2 = e2.StorageManager, r2 = H, i2 = n2.get("remote"); + n2.add(r2, { currentName: "Default", currentId: "uuidv4", currentThumbnail: "", isTemplate: false, description: "No description", setId: function(e3) { + this.currentId = e3; + }, setName: function(e3) { + this.currentName = e3; + }, setThumbnail: function(e3) { + this.currentThumbnail = e3; + }, setIsTemplate: function(e3) { + this.isTemplate = !!e3; + }, setDescription: function(e3) { + this.description = e3; + }, load: function(e3, t3, n3) { + var r3 = i2.get("urlLoad"), o2 = r3.endsWith("/") ? this.currentId : "/".concat(this.currentId); + i2.set({ urlLoad: r3 + o2 }), i2.load(e3, t3, n3), i2.set({ urlLoad: r3 }); + }, loadAll: function(e3, t3) { + i2.load({}, e3, t3); + }, store: function(e3, n3, r3) { + var o2 = i2.get("urlStore"), a2 = o2.endsWith("/") ? this.currentId : "/".concat(this.currentId); + t2.uuidInPath && i2.set({ urlStore: o2 + a2 }), i2.store(Y({ id: this.currentId, name: this.currentName, template: this.isTemplate, thumbnail: this.currentThumbnail, description: this.description, updated_at: Date() }, e3), n3, r3), i2.set({ urlStore: o2 }); + }, update: function(e3, t3, n3) { + var r3 = i2.get("urlLoad"), o2 = e3.id; + o2 = r3.endsWith("/") ? o2 : "/".concat(o2), i2.set({ urlLoad: r3 + o2 }), i2.load({}, function(r4) { + var a2 = Y(Y({}, r4), e3), s2 = i2.get("urlStore"); + o2 = e3.id, o2 = s2.endsWith("/") ? o2 : "/".concat(o2), i2.request(s2 + o2, { method: "post", body: a2 }, t3, n3); + }, n3), i2.set({ urlLoad: r3 }); + }, delete: function(e3, t3, n3) { + var r3 = i2.get("urlDelete"), o2 = n3 || this.currentId; + o2 = r3.endsWith("/") ? o2 : "/".concat(o2), i2.request(r3 + o2, { method: "delete" }, e3, t3); + } }); + }; + function Z(e2, t2) { + var n2 = Object.keys(e2); + if (Object.getOwnPropertySymbols) { + var r2 = Object.getOwnPropertySymbols(e2); + t2 && (r2 = r2.filter(function(t3) { + return Object.getOwnPropertyDescriptor(e2, t3).enumerable; + })), n2.push.apply(n2, r2); + } + return n2; + } + function ee(e2) { + for (var t2 = 1; t2 < arguments.length; t2++) { + var n2 = arguments[t2] != null ? arguments[t2] : {}; + t2 % 2 ? Z(Object(n2), true).forEach(function(t3) { + i()(e2, t3, n2[t3]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(n2)) : Z(Object(n2)).forEach(function(t3) { + Object.defineProperty(e2, t3, Object.getOwnPropertyDescriptor(n2, t3)); + }); + } + return e2; + } + var te = function(e2) { + var t2, n2, r2, i2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o2 = e2.StorageManager, a2 = W, s2 = i2.apiKey, c2 = i2.authDomain, l2 = i2.projectId, u2 = i2.settings, d2 = function() { + return n2; + }, p2 = function(e3) { + if (r2) + return e3(r2); + firebase.apps.length ? (firebase.app(), (t2 = firebase.firestore()).settings(u2)) : (firebase.initializeApp(ee({ apiKey: s2, authDomain: c2, projectId: l2 }, i2.firebaseConfig)), (t2 = firebase.firestore()).settings(u2)); + r2 = t2.collection(i2.objectStoreName), e3(r2); + }, f2 = function(t3) { + p2(function(r3) { + var i3 = e2.Storage.getCurrentStorage(); + n2 = r3.doc(i3.currentId), t3(n2); + }); + }; + o2.add(a2, { currentName: "Default", currentId: "uuidv4", currentThumbnail: "", isTemplate: false, description: "No description", getDoc: d2, setDocId: function(e3) { + this.currentId = e3; + }, setId: function(e3) { + this.currentId = e3; + }, setName: function(e3) { + this.currentName = e3; + }, setThumbnail: function(e3) { + this.currentThumbnail = e3; + }, setIsTemplate: function(e3) { + this.isTemplate = !!e3; + }, setDescription: function(e3) { + this.description = e3; + }, load: function(e3, t3, n3) { + f2(function(e4) { + e4.get().then(function(e5) { + e5.exists ? t3(e5.data()) : t3({}); + }).catch(n3); + }); + }, loadAll: function(e3, t3) { + p2(function(n3) { + n3.get().then(function(t4) { + var n4 = []; + t4.forEach(function(e4) { + return n4.push(e4.data()); + }), e3(n4); + }).catch(t3); + }); + }, store: function(e3, t3, n3) { + var r3 = this; + p2(function(i3) { + i3.doc(e3.id || r3.currentId).set(ee({ id: r3.currentId, name: r3.currentName, template: r3.isTemplate, thumbnail: r3.currentThumbnail, description: r3.description, updated_at: Date() }, e3)).then(t3).catch(n3); + }); + }, update: function(e3, t3, n3) { + var r3 = e3.id, i3 = F()(e3, ["id"]); + p2(function(e4) { + e4.doc(r3).set(i3, { merge: true }).then(t3).catch(n3); + }); + }, delete: function(e3, t3, n3) { + n3 ? p2(function(r3) { + r3.doc(n3).delete().then(e3).catch(t3); + }) : f2(function(n4) { + n4.delete().then(e3).catch(t3); + }); + } }); + }, ne = function(e2) { + var t2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + G(e2, t2), Q(e2, t2), te(e2, t2); + }, re = { "grapesjs-project-manager": { templates: { all: "All", templates: "Templates", search: "Search for sites by name or id", open: "Open", new: "Enter new page name", create: "Create", help: "Select a template, enter project name, then click create. If no template is selected a blank project will be created.", info: "Site Info", updated: "Last Updated", pages: "Pages", created: "Created At", size: "Size", actions: "Actions", titles: { open: "Select to open site", info: "Click to sort by site name", updated: "Click to sort by last update date", pages: "Click to sort by number of pages", created: "Click to sort by site creation date", size: "Click to sort by site size", actions: "Click to sort by site name", delete: "Delete", edit: "Edit" } }, pages: { placeholder: "page name", new: "New Page +" }, settings: { save: "Save", generate: "Generate", help: "Enter url, or generate thumbnail.", labels: { name: "Name", thumbnail: "Thumbnail", description: "Description", template: "Template" }, placeholders: { name: "Name...", thumbnail: "Thumbnail...", description: "Description..." } } } }; + function ie(e2, t2) { + var n2 = Object.keys(e2); + if (Object.getOwnPropertySymbols) { + var r2 = Object.getOwnPropertySymbols(e2); + t2 && (r2 = r2.filter(function(t3) { + return Object.getOwnPropertyDescriptor(e2, t3).enumerable; + })), n2.push.apply(n2, r2); + } + return n2; + } + function oe(e2) { + for (var t2 = 1; t2 < arguments.length; t2++) { + var n2 = arguments[t2] != null ? arguments[t2] : {}; + t2 % 2 ? ie(Object(n2), true).forEach(function(t3) { + i()(e2, t3, n2[t3]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(n2)) : ie(Object(n2)).forEach(function(t3) { + Object.defineProperty(e2, t3, Object.getOwnPropertyDescriptor(n2, t3)); + }); + } + return e2; + } + t["default"] = function(e2) { + var t2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n2 = oe(oe({}, { dbName: "gjs", objectStoreName: "projects", loadFirst: true, customLoad: false, uuidInPath: true, indexeddbVersion: 5, onDelete: function(e3) { + console.log("Deleted:", e3); + }, onDeleteError: function(e3) { + console.log(e3); + }, onScreenshotError: function(e3) { + console.log(e3); + }, quality: 0.01, mdlTitle: "Project Manager", nopages: '<div style="display:flex;align-items:center;padding:50px;margin:auto;">No Projects Yet</div>', apiKey: "", authDomain: "", projectId: "", enableOffline: true, firebaseConfig: {}, settings: { timestampsInSnapshots: true }, size: false, currentPageOpen: function() { + console.log("Current page already open"); + }, i18n: {} }), t2); + e2.I18n.addMessages(oe({ en: re }, n2.i18n)), e2.TemplateManager = new L(e2, n2), e2.PagesApp = new C(e2, n2), e2.SettingsApp = new M(e2, n2), z(e2, n2), ne(e2, n2), e2.on("load", function() { + var t3 = e2.Storage.getCurrentStorage(), r2 = n2.customLoad; + r2 && typeof r2 == "function" && r2(e2, t3), !r2 && t3.loadAll(function(r3) { + var i2 = r3[0]; + i2 && n2.loadFirst ? (t3.setId(i2.id), t3.setName(i2.name), t3.setThumbnail(i2.thumbnail), t3.setIsTemplate(i2.template), e2.load()) : (t3.setId(e2.runCommand("get-uuidv4")), t3.setName("Default-".concat(t3.currentId.substr(0, 7))), n2.components && e2.setComponents(n2.components), n2.style && e2.setStyle(n2.style)); + }); + }); + }; + }]); + }); + } + }); + + // server/web/source/node_modules/grapesjs-parser-postcss/dist/grapesjs-parser-postcss.min.js + var require_grapesjs_parser_postcss_min = __commonJS({ + "server/web/source/node_modules/grapesjs-parser-postcss/dist/grapesjs-parser-postcss.min.js"(exports, module) { + !function(t, e) { + typeof exports == "object" && typeof module == "object" ? module.exports = e() : typeof define == "function" && define.amd ? define([], e) : typeof exports == "object" ? exports["grapesjs-parser-postcss"] = e() : t["grapesjs-parser-postcss"] = e(); + }(window, function() { + return function(t) { + var e = {}; + function r(n) { + if (e[n]) + return e[n].exports; + var o = e[n] = { i: n, l: false, exports: {} }; + return t[n].call(o.exports, o, o.exports, r), o.l = true, o.exports; + } + return r.m = t, r.c = e, r.d = function(t2, e2, n) { + r.o(t2, e2) || Object.defineProperty(t2, e2, { enumerable: true, get: n }); + }, r.r = function(t2) { + typeof Symbol != "undefined" && Symbol.toStringTag && Object.defineProperty(t2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t2, "__esModule", { value: true }); + }, r.t = function(t2, e2) { + if (1 & e2 && (t2 = r(t2)), 8 & e2) + return t2; + if (4 & e2 && typeof t2 == "object" && t2 && t2.__esModule) + return t2; + var n = /* @__PURE__ */ Object.create(null); + if (r.r(n), Object.defineProperty(n, "default", { enumerable: true, value: t2 }), 2 & e2 && typeof t2 != "string") + for (var o in t2) + r.d(n, o, function(e3) { + return t2[e3]; + }.bind(null, o)); + return n; + }, r.n = function(t2) { + var e2 = t2 && t2.__esModule ? function() { + return t2.default; + } : function() { + return t2; + }; + return r.d(e2, "a", e2), e2; + }, r.o = function(t2, e2) { + return Object.prototype.hasOwnProperty.call(t2, e2); + }, r.p = "", r(r.s = 21); + }([function(t, e) { + e.getArg = function(t2, e2, r2) { + if (e2 in t2) + return t2[e2]; + if (arguments.length === 3) + return r2; + throw new Error('"' + e2 + '" is a required argument.'); + }; + var r = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/, n = /^data:.+\,.+$/; + function o(t2) { + var e2 = t2.match(r); + return e2 ? { scheme: e2[1], auth: e2[2], host: e2[3], port: e2[4], path: e2[5] } : null; + } + function i(t2) { + var e2 = ""; + return t2.scheme && (e2 += t2.scheme + ":"), e2 += "//", t2.auth && (e2 += t2.auth + "@"), t2.host && (e2 += t2.host), t2.port && (e2 += ":" + t2.port), t2.path && (e2 += t2.path), e2; + } + function s(t2) { + var r2 = t2, n2 = o(t2); + if (n2) { + if (!n2.path) + return t2; + r2 = n2.path; + } + for (var s2, a2 = e.isAbsolute(r2), u2 = r2.split(/\/+/), l2 = 0, c2 = u2.length - 1; c2 >= 0; c2--) + (s2 = u2[c2]) === "." ? u2.splice(c2, 1) : s2 === ".." ? l2++ : l2 > 0 && (s2 === "" ? (u2.splice(c2 + 1, l2), l2 = 0) : (u2.splice(c2, 2), l2--)); + return (r2 = u2.join("/")) === "" && (r2 = a2 ? "/" : "."), n2 ? (n2.path = r2, i(n2)) : r2; + } + function a(t2, e2) { + t2 === "" && (t2 = "."), e2 === "" && (e2 = "."); + var r2 = o(e2), a2 = o(t2); + if (a2 && (t2 = a2.path || "/"), r2 && !r2.scheme) + return a2 && (r2.scheme = a2.scheme), i(r2); + if (r2 || e2.match(n)) + return e2; + if (a2 && !a2.host && !a2.path) + return a2.host = e2, i(a2); + var u2 = e2.charAt(0) === "/" ? e2 : s(t2.replace(/\/+$/, "") + "/" + e2); + return a2 ? (a2.path = u2, i(a2)) : u2; + } + e.urlParse = o, e.urlGenerate = i, e.normalize = s, e.join = a, e.isAbsolute = function(t2) { + return t2.charAt(0) === "/" || r.test(t2); + }, e.relative = function(t2, e2) { + t2 === "" && (t2 = "."), t2 = t2.replace(/\/$/, ""); + for (var r2 = 0; e2.indexOf(t2 + "/") !== 0; ) { + var n2 = t2.lastIndexOf("/"); + if (n2 < 0) + return e2; + if ((t2 = t2.slice(0, n2)).match(/^([^\/]+:\/)?\/*$/)) + return e2; + ++r2; + } + return Array(r2 + 1).join("../") + e2.substr(t2.length + 1); + }; + var u = !("__proto__" in /* @__PURE__ */ Object.create(null)); + function l(t2) { + return t2; + } + function c(t2) { + if (!t2) + return false; + var e2 = t2.length; + if (e2 < 9) + return false; + if (t2.charCodeAt(e2 - 1) !== 95 || t2.charCodeAt(e2 - 2) !== 95 || t2.charCodeAt(e2 - 3) !== 111 || t2.charCodeAt(e2 - 4) !== 116 || t2.charCodeAt(e2 - 5) !== 111 || t2.charCodeAt(e2 - 6) !== 114 || t2.charCodeAt(e2 - 7) !== 112 || t2.charCodeAt(e2 - 8) !== 95 || t2.charCodeAt(e2 - 9) !== 95) + return false; + for (var r2 = e2 - 10; r2 >= 0; r2--) + if (t2.charCodeAt(r2) !== 36) + return false; + return true; + } + function f(t2, e2) { + return t2 === e2 ? 0 : t2 === null ? 1 : e2 === null ? -1 : t2 > e2 ? 1 : -1; + } + e.toSetString = u ? l : function(t2) { + return c(t2) ? "$" + t2 : t2; + }, e.fromSetString = u ? l : function(t2) { + return c(t2) ? t2.slice(1) : t2; + }, e.compareByOriginalPositions = function(t2, e2, r2) { + var n2 = f(t2.source, e2.source); + return n2 !== 0 ? n2 : (n2 = t2.originalLine - e2.originalLine) != 0 ? n2 : (n2 = t2.originalColumn - e2.originalColumn) != 0 || r2 ? n2 : (n2 = t2.generatedColumn - e2.generatedColumn) != 0 ? n2 : (n2 = t2.generatedLine - e2.generatedLine) != 0 ? n2 : f(t2.name, e2.name); + }, e.compareByGeneratedPositionsDeflated = function(t2, e2, r2) { + var n2 = t2.generatedLine - e2.generatedLine; + return n2 !== 0 ? n2 : (n2 = t2.generatedColumn - e2.generatedColumn) != 0 || r2 ? n2 : (n2 = f(t2.source, e2.source)) !== 0 ? n2 : (n2 = t2.originalLine - e2.originalLine) != 0 ? n2 : (n2 = t2.originalColumn - e2.originalColumn) != 0 ? n2 : f(t2.name, e2.name); + }, e.compareByGeneratedPositionsInflated = function(t2, e2) { + var r2 = t2.generatedLine - e2.generatedLine; + return r2 !== 0 ? r2 : (r2 = t2.generatedColumn - e2.generatedColumn) != 0 ? r2 : (r2 = f(t2.source, e2.source)) !== 0 ? r2 : (r2 = t2.originalLine - e2.originalLine) != 0 ? r2 : (r2 = t2.originalColumn - e2.originalColumn) != 0 ? r2 : f(t2.name, e2.name); + }, e.parseSourceMapInput = function(t2) { + return JSON.parse(t2.replace(/^\)]}'[^\n]*\n/, "")); + }, e.computeSourceURL = function(t2, e2, r2) { + if (e2 = e2 || "", t2 && (t2[t2.length - 1] !== "/" && e2[0] !== "/" && (t2 += "/"), e2 = t2 + e2), r2) { + var n2 = o(r2); + if (!n2) + throw new Error("sourceMapURL could not be parsed"); + if (n2.path) { + var u2 = n2.path.lastIndexOf("/"); + u2 >= 0 && (n2.path = n2.path.substring(0, u2 + 1)); + } + e2 = a(i(n2), e2); + } + return s(e2); + }; + }, function(t, e, r) { + "use strict"; + e.__esModule = true; + var n = function(t2) { + function e2(r2) { + !function(t3, e3) { + if (!(t3 instanceof e3)) + throw new TypeError("Cannot call a class as a function"); + }(this, e2); + var n2 = function(t3, e3) { + if (!t3) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return !e3 || typeof e3 != "object" && typeof e3 != "function" ? t3 : e3; + }(this, t2.call(this, r2)); + return n2.type = "decl", n2; + } + return function(t3, e3) { + if (typeof e3 != "function" && e3 !== null) + throw new TypeError("Super expression must either be null or a function, not " + typeof e3); + t3.prototype = Object.create(e3 && e3.prototype, { constructor: { value: t3, enumerable: false, writable: true, configurable: true } }), e3 && (Object.setPrototypeOf ? Object.setPrototypeOf(t3, e3) : t3.__proto__ = e3); + }(e2, t2), e2; + }(function(t2) { + return t2 && t2.__esModule ? t2 : { default: t2 }; + }(r(2)).default); + e.default = n, t.exports = e.default; + }, function(t, e, r) { + "use strict"; + e.__esModule = true; + var n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t2) { + return typeof t2; + } : function(t2) { + return t2 && typeof Symbol == "function" && t2.constructor === Symbol && t2 !== Symbol.prototype ? "symbol" : typeof t2; + }, o = a(r(10)), i = a(r(11)), s = a(r(3)); + function a(t2) { + return t2 && t2.__esModule ? t2 : { default: t2 }; + } + var u = function() { + function t2() { + var e2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + for (var r2 in function(t3, e3) { + if (!(t3 instanceof e3)) + throw new TypeError("Cannot call a class as a function"); + }(this, t2), this.raws = {}, e2) + this[r2] = e2[r2]; + } + return t2.prototype.error = function(t3) { + var e2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + if (this.source) { + var r2 = this.positionBy(e2); + return this.source.input.error(t3, r2.line, r2.column, e2); + } + return new o.default(t3); + }, t2.prototype.warn = function(t3, e2, r2) { + var n2 = { node: this }; + for (var o2 in r2) + n2[o2] = r2[o2]; + return t3.warn(e2, n2); + }, t2.prototype.remove = function() { + return this.parent && this.parent.removeChild(this), this.parent = void 0, this; + }, t2.prototype.toString = function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : s.default; + t3.stringify && (t3 = t3.stringify); + var e2 = ""; + return t3(this, function(t4) { + e2 += t4; + }), e2; + }, t2.prototype.clone = function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e2 = function t4(e3, r3) { + var o2 = new e3.constructor(); + for (var i2 in e3) + if (e3.hasOwnProperty(i2)) { + var s2 = e3[i2], a2 = s2 === void 0 ? "undefined" : n(s2); + i2 === "parent" && a2 === "object" ? r3 && (o2[i2] = r3) : i2 === "source" ? o2[i2] = s2 : s2 instanceof Array ? o2[i2] = s2.map(function(e4) { + return t4(e4, o2); + }) : (a2 === "object" && s2 !== null && (s2 = t4(s2)), o2[i2] = s2); + } + return o2; + }(this); + for (var r2 in t3) + e2[r2] = t3[r2]; + return e2; + }, t2.prototype.cloneBefore = function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e2 = this.clone(t3); + return this.parent.insertBefore(this, e2), e2; + }, t2.prototype.cloneAfter = function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e2 = this.clone(t3); + return this.parent.insertAfter(this, e2), e2; + }, t2.prototype.replaceWith = function() { + if (this.parent) { + for (var t3 = arguments.length, e2 = Array(t3), r2 = 0; r2 < t3; r2++) + e2[r2] = arguments[r2]; + var n2 = e2, o2 = Array.isArray(n2), i2 = 0; + for (n2 = o2 ? n2 : n2[Symbol.iterator](); ; ) { + var s2; + if (o2) { + if (i2 >= n2.length) + break; + s2 = n2[i2++]; + } else { + if ((i2 = n2.next()).done) + break; + s2 = i2.value; + } + var a2 = s2; + this.parent.insertBefore(this, a2); + } + this.remove(); + } + return this; + }, t2.prototype.next = function() { + if (this.parent) { + var t3 = this.parent.index(this); + return this.parent.nodes[t3 + 1]; + } + }, t2.prototype.prev = function() { + if (this.parent) { + var t3 = this.parent.index(this); + return this.parent.nodes[t3 - 1]; + } + }, t2.prototype.before = function(t3) { + return this.parent.insertBefore(this, t3), this; + }, t2.prototype.after = function(t3) { + return this.parent.insertAfter(this, t3), this; + }, t2.prototype.toJSON = function() { + var t3 = {}; + for (var e2 in this) + if (this.hasOwnProperty(e2) && e2 !== "parent") { + var r2 = this[e2]; + r2 instanceof Array ? t3[e2] = r2.map(function(t4) { + return (t4 === void 0 ? "undefined" : n(t4)) === "object" && t4.toJSON ? t4.toJSON() : t4; + }) : (r2 === void 0 ? "undefined" : n(r2)) === "object" && r2.toJSON ? t3[e2] = r2.toJSON() : t3[e2] = r2; + } + return t3; + }, t2.prototype.raw = function(t3, e2) { + return new i.default().raw(this, t3, e2); + }, t2.prototype.root = function() { + for (var t3 = this; t3.parent; ) + t3 = t3.parent; + return t3; + }, t2.prototype.cleanRaws = function(t3) { + delete this.raws.before, delete this.raws.after, t3 || delete this.raws.between; + }, t2.prototype.positionInside = function(t3) { + for (var e2 = this.toString(), r2 = this.source.start.column, n2 = this.source.start.line, o2 = 0; o2 < t3; o2++) + e2[o2] === "\n" ? (r2 = 1, n2 += 1) : r2 += 1; + return { line: n2, column: r2 }; + }, t2.prototype.positionBy = function(t3) { + var e2 = this.source.start; + if (t3.index) + e2 = this.positionInside(t3.index); + else if (t3.word) { + var r2 = this.toString().indexOf(t3.word); + r2 !== -1 && (e2 = this.positionInside(r2)); + } + return e2; + }, t2; + }(); + e.default = u, t.exports = e.default; + }, function(t, e, r) { + "use strict"; + e.__esModule = true; + var n = function(t2) { + return t2 && t2.__esModule ? t2 : { default: t2 }; + }(r(11)); + e.default = function(t2, e2) { + new n.default(e2).stringify(t2); + }, t.exports = e.default; + }, function(t, e, r) { + (function(t2) { + function r2(t3, e2) { + for (var r3 = 0, n2 = t3.length - 1; n2 >= 0; n2--) { + var o2 = t3[n2]; + o2 === "." ? t3.splice(n2, 1) : o2 === ".." ? (t3.splice(n2, 1), r3++) : r3 && (t3.splice(n2, 1), r3--); + } + if (e2) + for (; r3--; r3) + t3.unshift(".."); + return t3; + } + var n = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/, o = function(t3) { + return n.exec(t3).slice(1); + }; + function i(t3, e2) { + if (t3.filter) + return t3.filter(e2); + for (var r3 = [], n2 = 0; n2 < t3.length; n2++) + e2(t3[n2], n2, t3) && r3.push(t3[n2]); + return r3; + } + e.resolve = function() { + for (var e2 = "", n2 = false, o2 = arguments.length - 1; o2 >= -1 && !n2; o2--) { + var s2 = o2 >= 0 ? arguments[o2] : t2.cwd(); + if (typeof s2 != "string") + throw new TypeError("Arguments to path.resolve must be strings"); + s2 && (e2 = s2 + "/" + e2, n2 = s2.charAt(0) === "/"); + } + return e2 = r2(i(e2.split("/"), function(t3) { + return !!t3; + }), !n2).join("/"), (n2 ? "/" : "") + e2 || "."; + }, e.normalize = function(t3) { + var n2 = e.isAbsolute(t3), o2 = s(t3, -1) === "/"; + return (t3 = r2(i(t3.split("/"), function(t4) { + return !!t4; + }), !n2).join("/")) || n2 || (t3 = "."), t3 && o2 && (t3 += "/"), (n2 ? "/" : "") + t3; + }, e.isAbsolute = function(t3) { + return t3.charAt(0) === "/"; + }, e.join = function() { + var t3 = Array.prototype.slice.call(arguments, 0); + return e.normalize(i(t3, function(t4, e2) { + if (typeof t4 != "string") + throw new TypeError("Arguments to path.join must be strings"); + return t4; + }).join("/")); + }, e.relative = function(t3, r3) { + function n2(t4) { + for (var e2 = 0; e2 < t4.length && t4[e2] === ""; e2++) + ; + for (var r4 = t4.length - 1; r4 >= 0 && t4[r4] === ""; r4--) + ; + return e2 > r4 ? [] : t4.slice(e2, r4 - e2 + 1); + } + t3 = e.resolve(t3).substr(1), r3 = e.resolve(r3).substr(1); + for (var o2 = n2(t3.split("/")), i2 = n2(r3.split("/")), s2 = Math.min(o2.length, i2.length), a = s2, u = 0; u < s2; u++) + if (o2[u] !== i2[u]) { + a = u; + break; + } + var l = []; + for (u = a; u < o2.length; u++) + l.push(".."); + return (l = l.concat(i2.slice(a))).join("/"); + }, e.sep = "/", e.delimiter = ":", e.dirname = function(t3) { + var e2 = o(t3), r3 = e2[0], n2 = e2[1]; + return r3 || n2 ? (n2 && (n2 = n2.substr(0, n2.length - 1)), r3 + n2) : "."; + }, e.basename = function(t3, e2) { + var r3 = o(t3)[2]; + return e2 && r3.substr(-1 * e2.length) === e2 && (r3 = r3.substr(0, r3.length - e2.length)), r3; + }, e.extname = function(t3) { + return o(t3)[3]; + }; + var s = "ab".substr(-1) === "b" ? function(t3, e2, r3) { + return t3.substr(e2, r3); + } : function(t3, e2, r3) { + return e2 < 0 && (e2 = t3.length + e2), t3.substr(e2, r3); + }; + }).call(this, r(38)); + }, function(t, e, r) { + "use strict"; + e.__esModule = true; + var n = i(r(42)), o = i(r(44)); + function i(t2) { + return t2 && t2.__esModule ? t2 : { default: t2 }; + } + e.default = function(t2, e2) { + var r2 = new o.default(t2, e2), i2 = new n.default(r2); + try { + i2.parse(); + } catch (t3) { + throw t3; + } + return i2.root; + }, t.exports = e.default; + }, function(t, e, r) { + "use strict"; + e.__esModule = true; + var n = function(t2) { + function e2(r2) { + !function(t3, e3) { + if (!(t3 instanceof e3)) + throw new TypeError("Cannot call a class as a function"); + }(this, e2); + var n2 = function(t3, e3) { + if (!t3) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return !e3 || typeof e3 != "object" && typeof e3 != "function" ? t3 : e3; + }(this, t2.call(this, r2)); + return n2.type = "comment", n2; + } + return function(t3, e3) { + if (typeof e3 != "function" && e3 !== null) + throw new TypeError("Super expression must either be null or a function, not " + typeof e3); + t3.prototype = Object.create(e3 && e3.prototype, { constructor: { value: t3, enumerable: false, writable: true, configurable: true } }), e3 && (Object.setPrototypeOf ? Object.setPrototypeOf(t3, e3) : t3.__proto__ = e3); + }(e2, t2), e2; + }(function(t2) { + return t2 && t2.__esModule ? t2 : { default: t2 }; + }(r(2)).default); + e.default = n, t.exports = e.default; + }, function(t, e, r) { + "use strict"; + e.__esModule = true; + var n = function(t2) { + function e2(r2) { + !function(t3, e3) { + if (!(t3 instanceof e3)) + throw new TypeError("Cannot call a class as a function"); + }(this, e2); + var n2 = function(t3, e3) { + if (!t3) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return !e3 || typeof e3 != "object" && typeof e3 != "function" ? t3 : e3; + }(this, t2.call(this, r2)); + return n2.type = "atrule", n2; + } + return function(t3, e3) { + if (typeof e3 != "function" && e3 !== null) + throw new TypeError("Super expression must either be null or a function, not " + typeof e3); + t3.prototype = Object.create(e3 && e3.prototype, { constructor: { value: t3, enumerable: false, writable: true, configurable: true } }), e3 && (Object.setPrototypeOf ? Object.setPrototypeOf(t3, e3) : t3.__proto__ = e3); + }(e2, t2), e2.prototype.append = function() { + var e3; + this.nodes || (this.nodes = []); + for (var r2 = arguments.length, n2 = Array(r2), o = 0; o < r2; o++) + n2[o] = arguments[o]; + return (e3 = t2.prototype.append).call.apply(e3, [this].concat(n2)); + }, e2.prototype.prepend = function() { + var e3; + this.nodes || (this.nodes = []); + for (var r2 = arguments.length, n2 = Array(r2), o = 0; o < r2; o++) + n2[o] = arguments[o]; + return (e3 = t2.prototype.prepend).call.apply(e3, [this].concat(n2)); + }, e2; + }(function(t2) { + return t2 && t2.__esModule ? t2 : { default: t2 }; + }(r(8)).default); + e.default = n, t.exports = e.default; + }, function(t, e, r) { + "use strict"; + e.__esModule = true; + var n = function() { + function t2(t3, e2) { + for (var r2 = 0; r2 < e2.length; r2++) { + var n2 = e2[r2]; + n2.enumerable = n2.enumerable || false, n2.configurable = true, "value" in n2 && (n2.writable = true), Object.defineProperty(t3, n2.key, n2); + } + } + return function(e2, r2, n2) { + return r2 && t2(e2.prototype, r2), n2 && t2(e2, n2), e2; + }; + }(), o = s(r(1)), i = s(r(6)); + function s(t2) { + return t2 && t2.__esModule ? t2 : { default: t2 }; + } + var a = function(t2) { + function e2() { + return function(t3, e3) { + if (!(t3 instanceof e3)) + throw new TypeError("Cannot call a class as a function"); + }(this, e2), function(t3, e3) { + if (!t3) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return !e3 || typeof e3 != "object" && typeof e3 != "function" ? t3 : e3; + }(this, t2.apply(this, arguments)); + } + return function(t3, e3) { + if (typeof e3 != "function" && e3 !== null) + throw new TypeError("Super expression must either be null or a function, not " + typeof e3); + t3.prototype = Object.create(e3 && e3.prototype, { constructor: { value: t3, enumerable: false, writable: true, configurable: true } }), e3 && (Object.setPrototypeOf ? Object.setPrototypeOf(t3, e3) : t3.__proto__ = e3); + }(e2, t2), e2.prototype.push = function(t3) { + return t3.parent = this, this.nodes.push(t3), this; + }, e2.prototype.each = function(t3) { + this.lastEach || (this.lastEach = 0), this.indexes || (this.indexes = {}), this.lastEach += 1; + var e3 = this.lastEach; + if (this.indexes[e3] = 0, this.nodes) { + for (var r2 = void 0, n2 = void 0; this.indexes[e3] < this.nodes.length && (r2 = this.indexes[e3], (n2 = t3(this.nodes[r2], r2)) !== false); ) + this.indexes[e3] += 1; + return delete this.indexes[e3], n2; + } + }, e2.prototype.walk = function(t3) { + return this.each(function(e3, r2) { + var n2 = void 0; + try { + n2 = t3(e3, r2); + } catch (t4) { + if (t4.postcssNode = e3, t4.stack && e3.source && /\n\s{4}at /.test(t4.stack)) { + var o2 = e3.source; + t4.stack = t4.stack.replace(/\n\s{4}at /, "$&" + o2.input.from + ":" + o2.start.line + ":" + o2.start.column + "$&"); + } + throw t4; + } + return n2 !== false && e3.walk && (n2 = e3.walk(t3)), n2; + }); + }, e2.prototype.walkDecls = function(t3, e3) { + return e3 ? t3 instanceof RegExp ? this.walk(function(r2, n2) { + if (r2.type === "decl" && t3.test(r2.prop)) + return e3(r2, n2); + }) : this.walk(function(r2, n2) { + if (r2.type === "decl" && r2.prop === t3) + return e3(r2, n2); + }) : (e3 = t3, this.walk(function(t4, r2) { + if (t4.type === "decl") + return e3(t4, r2); + })); + }, e2.prototype.walkRules = function(t3, e3) { + return e3 ? t3 instanceof RegExp ? this.walk(function(r2, n2) { + if (r2.type === "rule" && t3.test(r2.selector)) + return e3(r2, n2); + }) : this.walk(function(r2, n2) { + if (r2.type === "rule" && r2.selector === t3) + return e3(r2, n2); + }) : (e3 = t3, this.walk(function(t4, r2) { + if (t4.type === "rule") + return e3(t4, r2); + })); + }, e2.prototype.walkAtRules = function(t3, e3) { + return e3 ? t3 instanceof RegExp ? this.walk(function(r2, n2) { + if (r2.type === "atrule" && t3.test(r2.name)) + return e3(r2, n2); + }) : this.walk(function(r2, n2) { + if (r2.type === "atrule" && r2.name === t3) + return e3(r2, n2); + }) : (e3 = t3, this.walk(function(t4, r2) { + if (t4.type === "atrule") + return e3(t4, r2); + })); + }, e2.prototype.walkComments = function(t3) { + return this.walk(function(e3, r2) { + if (e3.type === "comment") + return t3(e3, r2); + }); + }, e2.prototype.append = function() { + for (var t3 = arguments.length, e3 = Array(t3), r2 = 0; r2 < t3; r2++) + e3[r2] = arguments[r2]; + var n2 = e3, o2 = Array.isArray(n2), i2 = 0; + for (n2 = o2 ? n2 : n2[Symbol.iterator](); ; ) { + var s2; + if (o2) { + if (i2 >= n2.length) + break; + s2 = n2[i2++]; + } else { + if ((i2 = n2.next()).done) + break; + s2 = i2.value; + } + var a2 = s2, u = this.normalize(a2, this.last), l = Array.isArray(u), c = 0; + for (u = l ? u : u[Symbol.iterator](); ; ) { + var f; + if (l) { + if (c >= u.length) + break; + f = u[c++]; + } else { + if ((c = u.next()).done) + break; + f = c.value; + } + var p = f; + this.nodes.push(p); + } + } + return this; + }, e2.prototype.prepend = function() { + for (var t3 = arguments.length, e3 = Array(t3), r2 = 0; r2 < t3; r2++) + e3[r2] = arguments[r2]; + var n2 = e3 = e3.reverse(), o2 = Array.isArray(n2), i2 = 0; + for (n2 = o2 ? n2 : n2[Symbol.iterator](); ; ) { + var s2; + if (o2) { + if (i2 >= n2.length) + break; + s2 = n2[i2++]; + } else { + if ((i2 = n2.next()).done) + break; + s2 = i2.value; + } + var a2 = s2, u = this.normalize(a2, this.first, "prepend").reverse(), l = u, c = Array.isArray(l), f = 0; + for (l = c ? l : l[Symbol.iterator](); ; ) { + var p; + if (c) { + if (f >= l.length) + break; + p = l[f++]; + } else { + if ((f = l.next()).done) + break; + p = f.value; + } + var h = p; + this.nodes.unshift(h); + } + for (var d in this.indexes) + this.indexes[d] = this.indexes[d] + u.length; + } + return this; + }, e2.prototype.cleanRaws = function(e3) { + if (t2.prototype.cleanRaws.call(this, e3), this.nodes) { + var r2 = this.nodes, n2 = Array.isArray(r2), o2 = 0; + for (r2 = n2 ? r2 : r2[Symbol.iterator](); ; ) { + var i2; + if (n2) { + if (o2 >= r2.length) + break; + i2 = r2[o2++]; + } else { + if ((o2 = r2.next()).done) + break; + i2 = o2.value; + } + i2.cleanRaws(e3); + } + } + }, e2.prototype.insertBefore = function(t3, e3) { + var r2 = (t3 = this.index(t3)) === 0 && "prepend", n2 = this.normalize(e3, this.nodes[t3], r2).reverse(), o2 = n2, i2 = Array.isArray(o2), s2 = 0; + for (o2 = i2 ? o2 : o2[Symbol.iterator](); ; ) { + var a2; + if (i2) { + if (s2 >= o2.length) + break; + a2 = o2[s2++]; + } else { + if ((s2 = o2.next()).done) + break; + a2 = s2.value; + } + var u = a2; + this.nodes.splice(t3, 0, u); + } + var l = void 0; + for (var c in this.indexes) + t3 <= (l = this.indexes[c]) && (this.indexes[c] = l + n2.length); + return this; + }, e2.prototype.insertAfter = function(t3, e3) { + t3 = this.index(t3); + var r2 = this.normalize(e3, this.nodes[t3]).reverse(), n2 = r2, o2 = Array.isArray(n2), i2 = 0; + for (n2 = o2 ? n2 : n2[Symbol.iterator](); ; ) { + var s2; + if (o2) { + if (i2 >= n2.length) + break; + s2 = n2[i2++]; + } else { + if ((i2 = n2.next()).done) + break; + s2 = i2.value; + } + var a2 = s2; + this.nodes.splice(t3 + 1, 0, a2); + } + var u = void 0; + for (var l in this.indexes) + t3 < (u = this.indexes[l]) && (this.indexes[l] = u + r2.length); + return this; + }, e2.prototype.removeChild = function(t3) { + t3 = this.index(t3), this.nodes[t3].parent = void 0, this.nodes.splice(t3, 1); + var e3 = void 0; + for (var r2 in this.indexes) + (e3 = this.indexes[r2]) >= t3 && (this.indexes[r2] = e3 - 1); + return this; + }, e2.prototype.removeAll = function() { + var t3 = this.nodes, e3 = Array.isArray(t3), r2 = 0; + for (t3 = e3 ? t3 : t3[Symbol.iterator](); ; ) { + var n2; + if (e3) { + if (r2 >= t3.length) + break; + n2 = t3[r2++]; + } else { + if ((r2 = t3.next()).done) + break; + n2 = r2.value; + } + n2.parent = void 0; + } + return this.nodes = [], this; + }, e2.prototype.replaceValues = function(t3, e3, r2) { + return r2 || (r2 = e3, e3 = {}), this.walkDecls(function(n2) { + e3.props && e3.props.indexOf(n2.prop) === -1 || e3.fast && n2.value.indexOf(e3.fast) === -1 || (n2.value = n2.value.replace(t3, r2)); + }), this; + }, e2.prototype.every = function(t3) { + return this.nodes.every(t3); + }, e2.prototype.some = function(t3) { + return this.nodes.some(t3); + }, e2.prototype.index = function(t3) { + return typeof t3 == "number" ? t3 : this.nodes.indexOf(t3); + }, e2.prototype.normalize = function(t3, e3) { + var n2 = this; + if (typeof t3 == "string") + t3 = function t4(e4) { + return e4.map(function(e5) { + return e5.nodes && (e5.nodes = t4(e5.nodes)), delete e5.source, e5; + }); + }(r(5)(t3).nodes); + else if (Array.isArray(t3)) { + var s2 = t3 = t3.slice(0), a2 = Array.isArray(s2), u = 0; + for (s2 = a2 ? s2 : s2[Symbol.iterator](); ; ) { + var l; + if (a2) { + if (u >= s2.length) + break; + l = s2[u++]; + } else { + if ((u = s2.next()).done) + break; + l = u.value; + } + var c = l; + c.parent && c.parent.removeChild(c, "ignore"); + } + } else if (t3.type === "root") { + var f = t3 = t3.nodes.slice(0), p = Array.isArray(f), h = 0; + for (f = p ? f : f[Symbol.iterator](); ; ) { + var d; + if (p) { + if (h >= f.length) + break; + d = f[h++]; + } else { + if ((h = f.next()).done) + break; + d = h.value; + } + var g = d; + g.parent && g.parent.removeChild(g, "ignore"); + } + } else if (t3.type) + t3 = [t3]; + else if (t3.prop) { + if (t3.value === void 0) + throw new Error("Value field is missed in node creation"); + typeof t3.value != "string" && (t3.value = String(t3.value)), t3 = [new o.default(t3)]; + } else if (t3.selector) { + t3 = [new (r(9))(t3)]; + } else if (t3.name) { + t3 = [new (r(7))(t3)]; + } else { + if (!t3.text) + throw new Error("Unknown node type in node creation"); + t3 = [new i.default(t3)]; + } + return t3.map(function(t4) { + return t4.parent && t4.parent.removeChild(t4), t4.raws.before === void 0 && e3 && e3.raws.before !== void 0 && (t4.raws.before = e3.raws.before.replace(/[^\s]/g, "")), t4.parent = n2, t4; + }); + }, n(e2, [{ key: "first", get: function() { + if (this.nodes) + return this.nodes[0]; + } }, { key: "last", get: function() { + if (this.nodes) + return this.nodes[this.nodes.length - 1]; + } }]), e2; + }(s(r(2)).default); + e.default = a, t.exports = e.default; + }, function(t, e, r) { + "use strict"; + e.__esModule = true; + var n = function() { + function t2(t3, e2) { + for (var r2 = 0; r2 < e2.length; r2++) { + var n2 = e2[r2]; + n2.enumerable = n2.enumerable || false, n2.configurable = true, "value" in n2 && (n2.writable = true), Object.defineProperty(t3, n2.key, n2); + } + } + return function(e2, r2, n2) { + return r2 && t2(e2.prototype, r2), n2 && t2(e2, n2), e2; + }; + }(), o = s(r(8)), i = s(r(19)); + function s(t2) { + return t2 && t2.__esModule ? t2 : { default: t2 }; + } + var a = function(t2) { + function e2(r2) { + !function(t3, e3) { + if (!(t3 instanceof e3)) + throw new TypeError("Cannot call a class as a function"); + }(this, e2); + var n2 = function(t3, e3) { + if (!t3) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return !e3 || typeof e3 != "object" && typeof e3 != "function" ? t3 : e3; + }(this, t2.call(this, r2)); + return n2.type = "rule", n2.nodes || (n2.nodes = []), n2; + } + return function(t3, e3) { + if (typeof e3 != "function" && e3 !== null) + throw new TypeError("Super expression must either be null or a function, not " + typeof e3); + t3.prototype = Object.create(e3 && e3.prototype, { constructor: { value: t3, enumerable: false, writable: true, configurable: true } }), e3 && (Object.setPrototypeOf ? Object.setPrototypeOf(t3, e3) : t3.__proto__ = e3); + }(e2, t2), n(e2, [{ key: "selectors", get: function() { + return i.default.comma(this.selector); + }, set: function(t3) { + var e3 = this.selector ? this.selector.match(/,\s*/) : null, r2 = e3 ? e3[0] : "," + this.raw("between", "beforeOpen"); + this.selector = t3.join(r2); + } }]), e2; + }(o.default); + e.default = a, t.exports = e.default; + }, function(t, e, r) { + "use strict"; + e.__esModule = true; + var n = s(r(24)), o = s(r(25)), i = s(r(26)); + function s(t2) { + return t2 && t2.__esModule ? t2 : { default: t2 }; + } + var a = function() { + function t2(e2, r2, n2, o2, i2, s2) { + !function(t3, e3) { + if (!(t3 instanceof e3)) + throw new TypeError("Cannot call a class as a function"); + }(this, t2), this.name = "CssSyntaxError", this.reason = e2, i2 && (this.file = i2), o2 && (this.source = o2), s2 && (this.plugin = s2), r2 !== void 0 && n2 !== void 0 && (this.line = r2, this.column = n2), this.setMessage(), Error.captureStackTrace && Error.captureStackTrace(this, t2); + } + return t2.prototype.setMessage = function() { + this.message = this.plugin ? this.plugin + ": " : "", this.message += this.file ? this.file : "<css input>", this.line !== void 0 && (this.message += ":" + this.line + ":" + this.column), this.message += ": " + this.reason; + }, t2.prototype.showSourceCode = function(t3) { + var e2 = this; + if (!this.source) + return ""; + var r2 = this.source; + i.default && (t3 === void 0 && (t3 = n.default.stdout), t3 && (r2 = (0, i.default)(r2))); + var s2 = r2.split(/\r?\n/), a2 = Math.max(this.line - 3, 0), u = Math.min(this.line + 2, s2.length), l = String(u).length; + function c(e3) { + return t3 && o.default.red ? o.default.red.bold(e3) : e3; + } + function f(e3) { + return t3 && o.default.gray ? o.default.gray(e3) : e3; + } + return s2.slice(a2, u).map(function(t4, r3) { + var n2 = a2 + 1 + r3, o2 = " " + (" " + n2).slice(-l) + " | "; + if (n2 === e2.line) { + var i2 = f(o2.replace(/\d/g, " ")) + t4.slice(0, e2.column - 1).replace(/[^\t]/g, " "); + return c(">") + f(o2) + t4 + "\n " + i2 + c("^"); + } + return " " + f(o2) + t4; + }).join("\n"); + }, t2.prototype.toString = function() { + var t3 = this.showSourceCode(); + return t3 && (t3 = "\n\n" + t3 + "\n"), this.name + ": " + this.message + t3; + }, t2; + }(); + e.default = a, t.exports = e.default; + }, function(t, e, r) { + "use strict"; + e.__esModule = true; + var n = { colon: ": ", indent: " ", beforeDecl: "\n", beforeRule: "\n", beforeOpen: " ", beforeClose: "\n", beforeComment: "\n", after: "\n", emptyBody: "", commentLeft: " ", commentRight: " " }; + var o = function() { + function t2(e2) { + !function(t3, e3) { + if (!(t3 instanceof e3)) + throw new TypeError("Cannot call a class as a function"); + }(this, t2), this.builder = e2; + } + return t2.prototype.stringify = function(t3, e2) { + this[t3.type](t3, e2); + }, t2.prototype.root = function(t3) { + this.body(t3), t3.raws.after && this.builder(t3.raws.after); + }, t2.prototype.comment = function(t3) { + var e2 = this.raw(t3, "left", "commentLeft"), r2 = this.raw(t3, "right", "commentRight"); + this.builder("/*" + e2 + t3.text + r2 + "*/", t3); + }, t2.prototype.decl = function(t3, e2) { + var r2 = this.raw(t3, "between", "colon"), n2 = t3.prop + r2 + this.rawValue(t3, "value"); + t3.important && (n2 += t3.raws.important || " !important"), e2 && (n2 += ";"), this.builder(n2, t3); + }, t2.prototype.rule = function(t3) { + this.block(t3, this.rawValue(t3, "selector")), t3.raws.ownSemicolon && this.builder(t3.raws.ownSemicolon, t3, "end"); + }, t2.prototype.atrule = function(t3, e2) { + var r2 = "@" + t3.name, n2 = t3.params ? this.rawValue(t3, "params") : ""; + if (t3.raws.afterName !== void 0 ? r2 += t3.raws.afterName : n2 && (r2 += " "), t3.nodes) + this.block(t3, r2 + n2); + else { + var o2 = (t3.raws.between || "") + (e2 ? ";" : ""); + this.builder(r2 + n2 + o2, t3); + } + }, t2.prototype.body = function(t3) { + for (var e2 = t3.nodes.length - 1; e2 > 0 && t3.nodes[e2].type === "comment"; ) + e2 -= 1; + for (var r2 = this.raw(t3, "semicolon"), n2 = 0; n2 < t3.nodes.length; n2++) { + var o2 = t3.nodes[n2], i = this.raw(o2, "before"); + i && this.builder(i), this.stringify(o2, e2 !== n2 || r2); + } + }, t2.prototype.block = function(t3, e2) { + var r2 = this.raw(t3, "between", "beforeOpen"); + this.builder(e2 + r2 + "{", t3, "start"); + var n2 = void 0; + t3.nodes && t3.nodes.length ? (this.body(t3), n2 = this.raw(t3, "after")) : n2 = this.raw(t3, "after", "emptyBody"), n2 && this.builder(n2), this.builder("}", t3, "end"); + }, t2.prototype.raw = function(t3, e2, r2) { + var o2 = void 0; + if (r2 || (r2 = e2), e2 && (o2 = t3.raws[e2]) !== void 0) + return o2; + var i = t3.parent; + if (r2 === "before" && (!i || i.type === "root" && i.first === t3)) + return ""; + if (!i) + return n[r2]; + var s = t3.root(); + if (s.rawCache || (s.rawCache = {}), s.rawCache[r2] !== void 0) + return s.rawCache[r2]; + if (r2 === "before" || r2 === "after") + return this.beforeAfter(t3, r2); + var a = "raw" + function(t4) { + return t4[0].toUpperCase() + t4.slice(1); + }(r2); + return this[a] ? o2 = this[a](s, t3) : s.walk(function(t4) { + if ((o2 = t4.raws[e2]) !== void 0) + return false; + }), o2 === void 0 && (o2 = n[r2]), s.rawCache[r2] = o2, o2; + }, t2.prototype.rawSemicolon = function(t3) { + var e2 = void 0; + return t3.walk(function(t4) { + if (t4.nodes && t4.nodes.length && t4.last.type === "decl" && (e2 = t4.raws.semicolon) !== void 0) + return false; + }), e2; + }, t2.prototype.rawEmptyBody = function(t3) { + var e2 = void 0; + return t3.walk(function(t4) { + if (t4.nodes && t4.nodes.length === 0 && (e2 = t4.raws.after) !== void 0) + return false; + }), e2; + }, t2.prototype.rawIndent = function(t3) { + if (t3.raws.indent) + return t3.raws.indent; + var e2 = void 0; + return t3.walk(function(r2) { + var n2 = r2.parent; + if (n2 && n2 !== t3 && n2.parent && n2.parent === t3 && r2.raws.before !== void 0) { + var o2 = r2.raws.before.split("\n"); + return e2 = (e2 = o2[o2.length - 1]).replace(/[^\s]/g, ""), false; + } + }), e2; + }, t2.prototype.rawBeforeComment = function(t3, e2) { + var r2 = void 0; + return t3.walkComments(function(t4) { + if (t4.raws.before !== void 0) + return (r2 = t4.raws.before).indexOf("\n") !== -1 && (r2 = r2.replace(/[^\n]+$/, "")), false; + }), r2 === void 0 ? r2 = this.raw(e2, null, "beforeDecl") : r2 && (r2 = r2.replace(/[^\s]/g, "")), r2; + }, t2.prototype.rawBeforeDecl = function(t3, e2) { + var r2 = void 0; + return t3.walkDecls(function(t4) { + if (t4.raws.before !== void 0) + return (r2 = t4.raws.before).indexOf("\n") !== -1 && (r2 = r2.replace(/[^\n]+$/, "")), false; + }), r2 === void 0 ? r2 = this.raw(e2, null, "beforeRule") : r2 && (r2 = r2.replace(/[^\s]/g, "")), r2; + }, t2.prototype.rawBeforeRule = function(t3) { + var e2 = void 0; + return t3.walk(function(r2) { + if (r2.nodes && (r2.parent !== t3 || t3.first !== r2) && r2.raws.before !== void 0) + return (e2 = r2.raws.before).indexOf("\n") !== -1 && (e2 = e2.replace(/[^\n]+$/, "")), false; + }), e2 && (e2 = e2.replace(/[^\s]/g, "")), e2; + }, t2.prototype.rawBeforeClose = function(t3) { + var e2 = void 0; + return t3.walk(function(t4) { + if (t4.nodes && t4.nodes.length > 0 && t4.raws.after !== void 0) + return (e2 = t4.raws.after).indexOf("\n") !== -1 && (e2 = e2.replace(/[^\n]+$/, "")), false; + }), e2 && (e2 = e2.replace(/[^\s]/g, "")), e2; + }, t2.prototype.rawBeforeOpen = function(t3) { + var e2 = void 0; + return t3.walk(function(t4) { + if (t4.type !== "decl" && (e2 = t4.raws.between) !== void 0) + return false; + }), e2; + }, t2.prototype.rawColon = function(t3) { + var e2 = void 0; + return t3.walkDecls(function(t4) { + if (t4.raws.between !== void 0) + return e2 = t4.raws.between.replace(/[^\s:]/g, ""), false; + }), e2; + }, t2.prototype.beforeAfter = function(t3, e2) { + var r2 = void 0; + r2 = t3.type === "decl" ? this.raw(t3, null, "beforeDecl") : t3.type === "comment" ? this.raw(t3, null, "beforeComment") : e2 === "before" ? this.raw(t3, null, "beforeRule") : this.raw(t3, null, "beforeClose"); + for (var n2 = t3.parent, o2 = 0; n2 && n2.type !== "root"; ) + o2 += 1, n2 = n2.parent; + if (r2.indexOf("\n") !== -1) { + var i = this.raw(t3, null, "indent"); + if (i.length) + for (var s = 0; s < o2; s++) + r2 += i; + } + return r2; + }, t2.prototype.rawValue = function(t3, e2) { + var r2 = t3[e2], n2 = t3.raws[e2]; + return n2 && n2.value === r2 ? n2.raw : r2; + }, t2; + }(); + e.default = o, t.exports = e.default; + }, function(t, e, r) { + "use strict"; + e.__esModule = true; + var n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t2) { + return typeof t2; + } : function(t2) { + return t2 && typeof Symbol == "function" && t2.constructor === Symbol && t2 !== Symbol.prototype ? "symbol" : typeof t2; + }, o = function(t2) { + return t2 && t2.__esModule ? t2 : { default: t2 }; + }(r(13)); + var i = function() { + function t2() { + var e2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : []; + !function(t3, e3) { + if (!(t3 instanceof e3)) + throw new TypeError("Cannot call a class as a function"); + }(this, t2), this.version = "7.0.2", this.plugins = this.normalize(e2); + } + return t2.prototype.use = function(t3) { + return this.plugins = this.plugins.concat(this.normalize([t3])), this; + }, t2.prototype.process = function(t3) { + function e2(e3) { + return t3.apply(this, arguments); + } + return e2.toString = function() { + return t3.toString(); + }, e2; + }(function(t3) { + var e2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + return this.plugins.length === 0 && (e2.parser, e2.stringifier), new o.default(this, t3, e2); + }), t2.prototype.normalize = function(t3) { + var e2 = [], r2 = t3, o2 = Array.isArray(r2), i2 = 0; + for (r2 = o2 ? r2 : r2[Symbol.iterator](); ; ) { + var s; + if (o2) { + if (i2 >= r2.length) + break; + s = r2[i2++]; + } else { + if ((i2 = r2.next()).done) + break; + s = i2.value; + } + var a = s; + if (a.postcss && (a = a.postcss), (a === void 0 ? "undefined" : n(a)) === "object" && Array.isArray(a.plugins)) + e2 = e2.concat(a.plugins); + else if (typeof a == "function") + e2.push(a); + else { + if ((a === void 0 ? "undefined" : n(a)) !== "object" || !a.parse && !a.stringify) + throw new Error(a + " is not a PostCSS plugin"); + } + } + return e2; + }, t2; + }(); + e.default = i, t.exports = e.default; + }, function(t, e, r) { + "use strict"; + e.__esModule = true; + var n = function() { + function t2(t3, e2) { + for (var r2 = 0; r2 < e2.length; r2++) { + var n2 = e2[r2]; + n2.enumerable = n2.enumerable || false, n2.configurable = true, "value" in n2 && (n2.writable = true), Object.defineProperty(t3, n2.key, n2); + } + } + return function(e2, r2, n2) { + return r2 && t2(e2.prototype, r2), n2 && t2(e2, n2), e2; + }; + }(), o = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t2) { + return typeof t2; + } : function(t2) { + return t2 && typeof Symbol == "function" && t2.constructor === Symbol && t2 !== Symbol.prototype ? "symbol" : typeof t2; + }, i = l(r(27)), s = l(r(3)), a = (l(r(39)), l(r(40))), u = l(r(5)); + function l(t2) { + return t2 && t2.__esModule ? t2 : { default: t2 }; + } + function c(t2) { + return (t2 === void 0 ? "undefined" : o(t2)) === "object" && typeof t2.then == "function"; + } + var f = function() { + function t2(e2, r2, n2) { + !function(t3, e3) { + if (!(t3 instanceof e3)) + throw new TypeError("Cannot call a class as a function"); + }(this, t2), this.stringified = false, this.processed = false; + var i2 = void 0; + if ((r2 === void 0 ? "undefined" : o(r2)) === "object" && r2 !== null && r2.type === "root") + i2 = r2; + else if (r2 instanceof t2 || r2 instanceof a.default) + i2 = r2.root, r2.map && (n2.map === void 0 && (n2.map = {}), n2.map.inline || (n2.map.inline = false), n2.map.prev = r2.map); + else { + var s2 = u.default; + n2.syntax && (s2 = n2.syntax.parse), n2.parser && (s2 = n2.parser), s2.parse && (s2 = s2.parse); + try { + i2 = s2(r2, n2); + } catch (t3) { + this.error = t3; + } + } + this.result = new a.default(e2, i2, n2); + } + return t2.prototype.warnings = function() { + return this.sync().warnings(); + }, t2.prototype.toString = function() { + return this.css; + }, t2.prototype.then = function(t3, e2) { + return this.async().then(t3, e2); + }, t2.prototype.catch = function(t3) { + return this.async().catch(t3); + }, t2.prototype.finally = function(t3) { + return this.async().then(t3, t3); + }, t2.prototype.handleError = function(t3, e2) { + try { + if (this.error = t3, t3.name !== "CssSyntaxError" || t3.plugin) { + if (e2.postcssVersion) + ; + } else + t3.plugin = e2.postcssPlugin, t3.setMessage(); + } catch (t4) { + console && console.error && console.error(t4); + } + }, t2.prototype.asyncTick = function(t3, e2) { + var r2 = this; + if (this.plugin >= this.processor.plugins.length) + return this.processed = true, t3(); + try { + var n2 = this.processor.plugins[this.plugin], o2 = this.run(n2); + this.plugin += 1, c(o2) ? o2.then(function() { + r2.asyncTick(t3, e2); + }).catch(function(t4) { + r2.handleError(t4, n2), r2.processed = true, e2(t4); + }) : this.asyncTick(t3, e2); + } catch (t4) { + this.processed = true, e2(t4); + } + }, t2.prototype.async = function() { + var t3 = this; + return this.processed ? new Promise(function(e2, r2) { + t3.error ? r2(t3.error) : e2(t3.stringify()); + }) : this.processing ? this.processing : (this.processing = new Promise(function(e2, r2) { + if (t3.error) + return r2(t3.error); + t3.plugin = 0, t3.asyncTick(e2, r2); + }).then(function() { + return t3.processed = true, t3.stringify(); + }), this.processing); + }, t2.prototype.sync = function() { + if (this.processed) + return this.result; + if (this.processed = true, this.processing) + throw new Error("Use process(css).then(cb) to work with async plugins"); + if (this.error) + throw this.error; + var t3 = this.result.processor.plugins, e2 = Array.isArray(t3), r2 = 0; + for (t3 = e2 ? t3 : t3[Symbol.iterator](); ; ) { + var n2; + if (e2) { + if (r2 >= t3.length) + break; + n2 = t3[r2++]; + } else { + if ((r2 = t3.next()).done) + break; + n2 = r2.value; + } + var o2 = n2; + if (c(this.run(o2))) + throw new Error("Use process(css).then(cb) to work with async plugins"); + } + return this.result; + }, t2.prototype.run = function(t3) { + this.result.lastPlugin = t3; + try { + return t3(this.result.root, this.result); + } catch (e2) { + throw this.handleError(e2, t3), e2; + } + }, t2.prototype.stringify = function() { + if (this.stringified) + return this.result; + this.stringified = true, this.sync(); + var t3 = this.result.opts, e2 = s.default; + t3.syntax && (e2 = t3.syntax.stringify), t3.stringifier && (e2 = t3.stringifier), e2.stringify && (e2 = e2.stringify); + var r2 = new i.default(e2, this.result.root, this.result.opts).generate(); + return this.result.css = r2[0], this.result.map = r2[1], this.result; + }, n(t2, [{ key: "processor", get: function() { + return this.result.processor; + } }, { key: "opts", get: function() { + return this.result.opts; + } }, { key: "css", get: function() { + return this.stringify().css; + } }, { key: "content", get: function() { + return this.stringify().content; + } }, { key: "map", get: function() { + return this.stringify().map; + } }, { key: "root", get: function() { + return this.sync().root; + } }, { key: "messages", get: function() { + return this.sync().messages; + } }]), t2; + }(); + e.default = f, t.exports = e.default; + }, function(t, e, r) { + "use strict"; + (function(t2) { + var n = r(29), o = r(30), i = r(31); + function s() { + return u.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823; + } + function a(t3, e2) { + if (s() < e2) + throw new RangeError("Invalid typed array length"); + return u.TYPED_ARRAY_SUPPORT ? (t3 = new Uint8Array(e2)).__proto__ = u.prototype : (t3 === null && (t3 = new u(e2)), t3.length = e2), t3; + } + function u(t3, e2, r2) { + if (!(u.TYPED_ARRAY_SUPPORT || this instanceof u)) + return new u(t3, e2, r2); + if (typeof t3 == "number") { + if (typeof e2 == "string") + throw new Error("If encoding is specified then the first argument must be a string"); + return f(this, t3); + } + return l(this, t3, e2, r2); + } + function l(t3, e2, r2, n2) { + if (typeof e2 == "number") + throw new TypeError('"value" argument must not be a number'); + return typeof ArrayBuffer != "undefined" && e2 instanceof ArrayBuffer ? function(t4, e3, r3, n3) { + if (e3.byteLength, r3 < 0 || e3.byteLength < r3) + throw new RangeError("'offset' is out of bounds"); + if (e3.byteLength < r3 + (n3 || 0)) + throw new RangeError("'length' is out of bounds"); + e3 = r3 === void 0 && n3 === void 0 ? new Uint8Array(e3) : n3 === void 0 ? new Uint8Array(e3, r3) : new Uint8Array(e3, r3, n3); + u.TYPED_ARRAY_SUPPORT ? (t4 = e3).__proto__ = u.prototype : t4 = p(t4, e3); + return t4; + }(t3, e2, r2, n2) : typeof e2 == "string" ? function(t4, e3, r3) { + typeof r3 == "string" && r3 !== "" || (r3 = "utf8"); + if (!u.isEncoding(r3)) + throw new TypeError('"encoding" must be a valid string encoding'); + var n3 = 0 | d(e3, r3), o2 = (t4 = a(t4, n3)).write(e3, r3); + o2 !== n3 && (t4 = t4.slice(0, o2)); + return t4; + }(t3, e2, r2) : function(t4, e3) { + if (u.isBuffer(e3)) { + var r3 = 0 | h(e3.length); + return (t4 = a(t4, r3)).length === 0 ? t4 : (e3.copy(t4, 0, 0, r3), t4); + } + if (e3) { + if (typeof ArrayBuffer != "undefined" && e3.buffer instanceof ArrayBuffer || "length" in e3) + return typeof e3.length != "number" || function(t5) { + return t5 != t5; + }(e3.length) ? a(t4, 0) : p(t4, e3); + if (e3.type === "Buffer" && i(e3.data)) + return p(t4, e3.data); + } + throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object."); + }(t3, e2); + } + function c(t3) { + if (typeof t3 != "number") + throw new TypeError('"size" argument must be a number'); + if (t3 < 0) + throw new RangeError('"size" argument must not be negative'); + } + function f(t3, e2) { + if (c(e2), t3 = a(t3, e2 < 0 ? 0 : 0 | h(e2)), !u.TYPED_ARRAY_SUPPORT) + for (var r2 = 0; r2 < e2; ++r2) + t3[r2] = 0; + return t3; + } + function p(t3, e2) { + var r2 = e2.length < 0 ? 0 : 0 | h(e2.length); + t3 = a(t3, r2); + for (var n2 = 0; n2 < r2; n2 += 1) + t3[n2] = 255 & e2[n2]; + return t3; + } + function h(t3) { + if (t3 >= s()) + throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + s().toString(16) + " bytes"); + return 0 | t3; + } + function d(t3, e2) { + if (u.isBuffer(t3)) + return t3.length; + if (typeof ArrayBuffer != "undefined" && typeof ArrayBuffer.isView == "function" && (ArrayBuffer.isView(t3) || t3 instanceof ArrayBuffer)) + return t3.byteLength; + typeof t3 != "string" && (t3 = "" + t3); + var r2 = t3.length; + if (r2 === 0) + return 0; + for (var n2 = false; ; ) + switch (e2) { + case "ascii": + case "latin1": + case "binary": + return r2; + case "utf8": + case "utf-8": + case void 0: + return F(t3).length; + case "ucs2": + case "ucs-2": + case "utf16le": + case "utf-16le": + return 2 * r2; + case "hex": + return r2 >>> 1; + case "base64": + return Y(t3).length; + default: + if (n2) + return F(t3).length; + e2 = ("" + e2).toLowerCase(), n2 = true; + } + } + function g(t3, e2, r2) { + var n2 = t3[e2]; + t3[e2] = t3[r2], t3[r2] = n2; + } + function y(t3, e2, r2, n2, o2) { + if (t3.length === 0) + return -1; + if (typeof r2 == "string" ? (n2 = r2, r2 = 0) : r2 > 2147483647 ? r2 = 2147483647 : r2 < -2147483648 && (r2 = -2147483648), r2 = +r2, isNaN(r2) && (r2 = o2 ? 0 : t3.length - 1), r2 < 0 && (r2 = t3.length + r2), r2 >= t3.length) { + if (o2) + return -1; + r2 = t3.length - 1; + } else if (r2 < 0) { + if (!o2) + return -1; + r2 = 0; + } + if (typeof e2 == "string" && (e2 = u.from(e2, n2)), u.isBuffer(e2)) + return e2.length === 0 ? -1 : m(t3, e2, r2, n2, o2); + if (typeof e2 == "number") + return e2 &= 255, u.TYPED_ARRAY_SUPPORT && typeof Uint8Array.prototype.indexOf == "function" ? o2 ? Uint8Array.prototype.indexOf.call(t3, e2, r2) : Uint8Array.prototype.lastIndexOf.call(t3, e2, r2) : m(t3, [e2], r2, n2, o2); + throw new TypeError("val must be string, number or Buffer"); + } + function m(t3, e2, r2, n2, o2) { + var i2, s2 = 1, a2 = t3.length, u2 = e2.length; + if (n2 !== void 0 && ((n2 = String(n2).toLowerCase()) === "ucs2" || n2 === "ucs-2" || n2 === "utf16le" || n2 === "utf-16le")) { + if (t3.length < 2 || e2.length < 2) + return -1; + s2 = 2, a2 /= 2, u2 /= 2, r2 /= 2; + } + function l2(t4, e3) { + return s2 === 1 ? t4[e3] : t4.readUInt16BE(e3 * s2); + } + if (o2) { + var c2 = -1; + for (i2 = r2; i2 < a2; i2++) + if (l2(t3, i2) === l2(e2, c2 === -1 ? 0 : i2 - c2)) { + if (c2 === -1 && (c2 = i2), i2 - c2 + 1 === u2) + return c2 * s2; + } else + c2 !== -1 && (i2 -= i2 - c2), c2 = -1; + } else + for (r2 + u2 > a2 && (r2 = a2 - u2), i2 = r2; i2 >= 0; i2--) { + for (var f2 = true, p2 = 0; p2 < u2; p2++) + if (l2(t3, i2 + p2) !== l2(e2, p2)) { + f2 = false; + break; + } + if (f2) + return i2; + } + return -1; + } + function v(t3, e2, r2, n2) { + r2 = Number(r2) || 0; + var o2 = t3.length - r2; + n2 ? (n2 = Number(n2)) > o2 && (n2 = o2) : n2 = o2; + var i2 = e2.length; + if (i2 % 2 != 0) + throw new TypeError("Invalid hex string"); + n2 > i2 / 2 && (n2 = i2 / 2); + for (var s2 = 0; s2 < n2; ++s2) { + var a2 = parseInt(e2.substr(2 * s2, 2), 16); + if (isNaN(a2)) + return s2; + t3[r2 + s2] = a2; + } + return s2; + } + function w(t3, e2, r2, n2) { + return z(F(e2, t3.length - r2), t3, r2, n2); + } + function b(t3, e2, r2, n2) { + return z(function(t4) { + for (var e3 = [], r3 = 0; r3 < t4.length; ++r3) + e3.push(255 & t4.charCodeAt(r3)); + return e3; + }(e2), t3, r2, n2); + } + function _(t3, e2, r2, n2) { + return b(t3, e2, r2, n2); + } + function A(t3, e2, r2, n2) { + return z(Y(e2), t3, r2, n2); + } + function S(t3, e2, r2, n2) { + return z(function(t4, e3) { + for (var r3, n3, o2, i2 = [], s2 = 0; s2 < t4.length && !((e3 -= 2) < 0); ++s2) + r3 = t4.charCodeAt(s2), n3 = r3 >> 8, o2 = r3 % 256, i2.push(o2), i2.push(n3); + return i2; + }(e2, t3.length - r2), t3, r2, n2); + } + function C(t3, e2, r2) { + return e2 === 0 && r2 === t3.length ? n.fromByteArray(t3) : n.fromByteArray(t3.slice(e2, r2)); + } + function E(t3, e2, r2) { + r2 = Math.min(t3.length, r2); + for (var n2 = [], o2 = e2; o2 < r2; ) { + var i2, s2, a2, u2, l2 = t3[o2], c2 = null, f2 = l2 > 239 ? 4 : l2 > 223 ? 3 : l2 > 191 ? 2 : 1; + if (o2 + f2 <= r2) + switch (f2) { + case 1: + l2 < 128 && (c2 = l2); + break; + case 2: + (192 & (i2 = t3[o2 + 1])) == 128 && (u2 = (31 & l2) << 6 | 63 & i2) > 127 && (c2 = u2); + break; + case 3: + i2 = t3[o2 + 1], s2 = t3[o2 + 2], (192 & i2) == 128 && (192 & s2) == 128 && (u2 = (15 & l2) << 12 | (63 & i2) << 6 | 63 & s2) > 2047 && (u2 < 55296 || u2 > 57343) && (c2 = u2); + break; + case 4: + i2 = t3[o2 + 1], s2 = t3[o2 + 2], a2 = t3[o2 + 3], (192 & i2) == 128 && (192 & s2) == 128 && (192 & a2) == 128 && (u2 = (15 & l2) << 18 | (63 & i2) << 12 | (63 & s2) << 6 | 63 & a2) > 65535 && u2 < 1114112 && (c2 = u2); + } + c2 === null ? (c2 = 65533, f2 = 1) : c2 > 65535 && (c2 -= 65536, n2.push(c2 >>> 10 & 1023 | 55296), c2 = 56320 | 1023 & c2), n2.push(c2), o2 += f2; + } + return function(t4) { + var e3 = t4.length; + if (e3 <= O) + return String.fromCharCode.apply(String, t4); + var r3 = "", n3 = 0; + for (; n3 < e3; ) + r3 += String.fromCharCode.apply(String, t4.slice(n3, n3 += O)); + return r3; + }(n2); + } + e.Buffer = u, e.SlowBuffer = function(t3) { + +t3 != t3 && (t3 = 0); + return u.alloc(+t3); + }, e.INSPECT_MAX_BYTES = 50, u.TYPED_ARRAY_SUPPORT = t2.TYPED_ARRAY_SUPPORT !== void 0 ? t2.TYPED_ARRAY_SUPPORT : function() { + try { + var t3 = new Uint8Array(1); + return t3.__proto__ = { __proto__: Uint8Array.prototype, foo: function() { + return 42; + } }, t3.foo() === 42 && typeof t3.subarray == "function" && t3.subarray(1, 1).byteLength === 0; + } catch (t4) { + return false; + } + }(), e.kMaxLength = s(), u.poolSize = 8192, u._augment = function(t3) { + return t3.__proto__ = u.prototype, t3; + }, u.from = function(t3, e2, r2) { + return l(null, t3, e2, r2); + }, u.TYPED_ARRAY_SUPPORT && (u.prototype.__proto__ = Uint8Array.prototype, u.__proto__ = Uint8Array, typeof Symbol != "undefined" && Symbol.species && u[Symbol.species] === u && Object.defineProperty(u, Symbol.species, { value: null, configurable: true })), u.alloc = function(t3, e2, r2) { + return function(t4, e3, r3, n2) { + return c(e3), e3 <= 0 ? a(t4, e3) : r3 !== void 0 ? typeof n2 == "string" ? a(t4, e3).fill(r3, n2) : a(t4, e3).fill(r3) : a(t4, e3); + }(null, t3, e2, r2); + }, u.allocUnsafe = function(t3) { + return f(null, t3); + }, u.allocUnsafeSlow = function(t3) { + return f(null, t3); + }, u.isBuffer = function(t3) { + return !(t3 == null || !t3._isBuffer); + }, u.compare = function(t3, e2) { + if (!u.isBuffer(t3) || !u.isBuffer(e2)) + throw new TypeError("Arguments must be Buffers"); + if (t3 === e2) + return 0; + for (var r2 = t3.length, n2 = e2.length, o2 = 0, i2 = Math.min(r2, n2); o2 < i2; ++o2) + if (t3[o2] !== e2[o2]) { + r2 = t3[o2], n2 = e2[o2]; + break; + } + return r2 < n2 ? -1 : n2 < r2 ? 1 : 0; + }, u.isEncoding = function(t3) { + switch (String(t3).toLowerCase()) { + case "hex": + case "utf8": + case "utf-8": + case "ascii": + case "latin1": + case "binary": + case "base64": + case "ucs2": + case "ucs-2": + case "utf16le": + case "utf-16le": + return true; + default: + return false; + } + }, u.concat = function(t3, e2) { + if (!i(t3)) + throw new TypeError('"list" argument must be an Array of Buffers'); + if (t3.length === 0) + return u.alloc(0); + var r2; + if (e2 === void 0) + for (e2 = 0, r2 = 0; r2 < t3.length; ++r2) + e2 += t3[r2].length; + var n2 = u.allocUnsafe(e2), o2 = 0; + for (r2 = 0; r2 < t3.length; ++r2) { + var s2 = t3[r2]; + if (!u.isBuffer(s2)) + throw new TypeError('"list" argument must be an Array of Buffers'); + s2.copy(n2, o2), o2 += s2.length; + } + return n2; + }, u.byteLength = d, u.prototype._isBuffer = true, u.prototype.swap16 = function() { + var t3 = this.length; + if (t3 % 2 != 0) + throw new RangeError("Buffer size must be a multiple of 16-bits"); + for (var e2 = 0; e2 < t3; e2 += 2) + g(this, e2, e2 + 1); + return this; + }, u.prototype.swap32 = function() { + var t3 = this.length; + if (t3 % 4 != 0) + throw new RangeError("Buffer size must be a multiple of 32-bits"); + for (var e2 = 0; e2 < t3; e2 += 4) + g(this, e2, e2 + 3), g(this, e2 + 1, e2 + 2); + return this; + }, u.prototype.swap64 = function() { + var t3 = this.length; + if (t3 % 8 != 0) + throw new RangeError("Buffer size must be a multiple of 64-bits"); + for (var e2 = 0; e2 < t3; e2 += 8) + g(this, e2, e2 + 7), g(this, e2 + 1, e2 + 6), g(this, e2 + 2, e2 + 5), g(this, e2 + 3, e2 + 4); + return this; + }, u.prototype.toString = function() { + var t3 = 0 | this.length; + return t3 === 0 ? "" : arguments.length === 0 ? E(this, 0, t3) : function(t4, e2, r2) { + var n2 = false; + if ((e2 === void 0 || e2 < 0) && (e2 = 0), e2 > this.length) + return ""; + if ((r2 === void 0 || r2 > this.length) && (r2 = this.length), r2 <= 0) + return ""; + if ((r2 >>>= 0) <= (e2 >>>= 0)) + return ""; + for (t4 || (t4 = "utf8"); ; ) + switch (t4) { + case "hex": + return R(this, e2, r2); + case "utf8": + case "utf-8": + return E(this, e2, r2); + case "ascii": + return M(this, e2, r2); + case "latin1": + case "binary": + return x(this, e2, r2); + case "base64": + return C(this, e2, r2); + case "ucs2": + case "ucs-2": + case "utf16le": + case "utf-16le": + return k(this, e2, r2); + default: + if (n2) + throw new TypeError("Unknown encoding: " + t4); + t4 = (t4 + "").toLowerCase(), n2 = true; + } + }.apply(this, arguments); + }, u.prototype.equals = function(t3) { + if (!u.isBuffer(t3)) + throw new TypeError("Argument must be a Buffer"); + return this === t3 || u.compare(this, t3) === 0; + }, u.prototype.inspect = function() { + var t3 = "", r2 = e.INSPECT_MAX_BYTES; + return this.length > 0 && (t3 = this.toString("hex", 0, r2).match(/.{2}/g).join(" "), this.length > r2 && (t3 += " ... ")), "<Buffer " + t3 + ">"; + }, u.prototype.compare = function(t3, e2, r2, n2, o2) { + if (!u.isBuffer(t3)) + throw new TypeError("Argument must be a Buffer"); + if (e2 === void 0 && (e2 = 0), r2 === void 0 && (r2 = t3 ? t3.length : 0), n2 === void 0 && (n2 = 0), o2 === void 0 && (o2 = this.length), e2 < 0 || r2 > t3.length || n2 < 0 || o2 > this.length) + throw new RangeError("out of range index"); + if (n2 >= o2 && e2 >= r2) + return 0; + if (n2 >= o2) + return -1; + if (e2 >= r2) + return 1; + if (e2 >>>= 0, r2 >>>= 0, n2 >>>= 0, o2 >>>= 0, this === t3) + return 0; + for (var i2 = o2 - n2, s2 = r2 - e2, a2 = Math.min(i2, s2), l2 = this.slice(n2, o2), c2 = t3.slice(e2, r2), f2 = 0; f2 < a2; ++f2) + if (l2[f2] !== c2[f2]) { + i2 = l2[f2], s2 = c2[f2]; + break; + } + return i2 < s2 ? -1 : s2 < i2 ? 1 : 0; + }, u.prototype.includes = function(t3, e2, r2) { + return this.indexOf(t3, e2, r2) !== -1; + }, u.prototype.indexOf = function(t3, e2, r2) { + return y(this, t3, e2, r2, true); + }, u.prototype.lastIndexOf = function(t3, e2, r2) { + return y(this, t3, e2, r2, false); + }, u.prototype.write = function(t3, e2, r2, n2) { + if (e2 === void 0) + n2 = "utf8", r2 = this.length, e2 = 0; + else if (r2 === void 0 && typeof e2 == "string") + n2 = e2, r2 = this.length, e2 = 0; + else { + if (!isFinite(e2)) + throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported"); + e2 |= 0, isFinite(r2) ? (r2 |= 0, n2 === void 0 && (n2 = "utf8")) : (n2 = r2, r2 = void 0); + } + var o2 = this.length - e2; + if ((r2 === void 0 || r2 > o2) && (r2 = o2), t3.length > 0 && (r2 < 0 || e2 < 0) || e2 > this.length) + throw new RangeError("Attempt to write outside buffer bounds"); + n2 || (n2 = "utf8"); + for (var i2 = false; ; ) + switch (n2) { + case "hex": + return v(this, t3, e2, r2); + case "utf8": + case "utf-8": + return w(this, t3, e2, r2); + case "ascii": + return b(this, t3, e2, r2); + case "latin1": + case "binary": + return _(this, t3, e2, r2); + case "base64": + return A(this, t3, e2, r2); + case "ucs2": + case "ucs-2": + case "utf16le": + case "utf-16le": + return S(this, t3, e2, r2); + default: + if (i2) + throw new TypeError("Unknown encoding: " + n2); + n2 = ("" + n2).toLowerCase(), i2 = true; + } + }, u.prototype.toJSON = function() { + return { type: "Buffer", data: Array.prototype.slice.call(this._arr || this, 0) }; + }; + var O = 4096; + function M(t3, e2, r2) { + var n2 = ""; + r2 = Math.min(t3.length, r2); + for (var o2 = e2; o2 < r2; ++o2) + n2 += String.fromCharCode(127 & t3[o2]); + return n2; + } + function x(t3, e2, r2) { + var n2 = ""; + r2 = Math.min(t3.length, r2); + for (var o2 = e2; o2 < r2; ++o2) + n2 += String.fromCharCode(t3[o2]); + return n2; + } + function R(t3, e2, r2) { + var n2 = t3.length; + (!e2 || e2 < 0) && (e2 = 0), (!r2 || r2 < 0 || r2 > n2) && (r2 = n2); + for (var o2 = "", i2 = e2; i2 < r2; ++i2) + o2 += N(t3[i2]); + return o2; + } + function k(t3, e2, r2) { + for (var n2 = t3.slice(e2, r2), o2 = "", i2 = 0; i2 < n2.length; i2 += 2) + o2 += String.fromCharCode(n2[i2] + 256 * n2[i2 + 1]); + return o2; + } + function P(t3, e2, r2) { + if (t3 % 1 != 0 || t3 < 0) + throw new RangeError("offset is not uint"); + if (t3 + e2 > r2) + throw new RangeError("Trying to access beyond buffer length"); + } + function L(t3, e2, r2, n2, o2, i2) { + if (!u.isBuffer(t3)) + throw new TypeError('"buffer" argument must be a Buffer instance'); + if (e2 > o2 || e2 < i2) + throw new RangeError('"value" argument is out of bounds'); + if (r2 + n2 > t3.length) + throw new RangeError("Index out of range"); + } + function T(t3, e2, r2, n2) { + e2 < 0 && (e2 = 65535 + e2 + 1); + for (var o2 = 0, i2 = Math.min(t3.length - r2, 2); o2 < i2; ++o2) + t3[r2 + o2] = (e2 & 255 << 8 * (n2 ? o2 : 1 - o2)) >>> 8 * (n2 ? o2 : 1 - o2); + } + function B(t3, e2, r2, n2) { + e2 < 0 && (e2 = 4294967295 + e2 + 1); + for (var o2 = 0, i2 = Math.min(t3.length - r2, 4); o2 < i2; ++o2) + t3[r2 + o2] = e2 >>> 8 * (n2 ? o2 : 3 - o2) & 255; + } + function j(t3, e2, r2, n2, o2, i2) { + if (r2 + n2 > t3.length) + throw new RangeError("Index out of range"); + if (r2 < 0) + throw new RangeError("Index out of range"); + } + function U(t3, e2, r2, n2, i2) { + return i2 || j(t3, 0, r2, 4), o.write(t3, e2, r2, n2, 23, 4), r2 + 4; + } + function I(t3, e2, r2, n2, i2) { + return i2 || j(t3, 0, r2, 8), o.write(t3, e2, r2, n2, 52, 8), r2 + 8; + } + u.prototype.slice = function(t3, e2) { + var r2, n2 = this.length; + if (t3 = ~~t3, e2 = e2 === void 0 ? n2 : ~~e2, t3 < 0 ? (t3 += n2) < 0 && (t3 = 0) : t3 > n2 && (t3 = n2), e2 < 0 ? (e2 += n2) < 0 && (e2 = 0) : e2 > n2 && (e2 = n2), e2 < t3 && (e2 = t3), u.TYPED_ARRAY_SUPPORT) + (r2 = this.subarray(t3, e2)).__proto__ = u.prototype; + else { + var o2 = e2 - t3; + r2 = new u(o2, void 0); + for (var i2 = 0; i2 < o2; ++i2) + r2[i2] = this[i2 + t3]; + } + return r2; + }, u.prototype.readUIntLE = function(t3, e2, r2) { + t3 |= 0, e2 |= 0, r2 || P(t3, e2, this.length); + for (var n2 = this[t3], o2 = 1, i2 = 0; ++i2 < e2 && (o2 *= 256); ) + n2 += this[t3 + i2] * o2; + return n2; + }, u.prototype.readUIntBE = function(t3, e2, r2) { + t3 |= 0, e2 |= 0, r2 || P(t3, e2, this.length); + for (var n2 = this[t3 + --e2], o2 = 1; e2 > 0 && (o2 *= 256); ) + n2 += this[t3 + --e2] * o2; + return n2; + }, u.prototype.readUInt8 = function(t3, e2) { + return e2 || P(t3, 1, this.length), this[t3]; + }, u.prototype.readUInt16LE = function(t3, e2) { + return e2 || P(t3, 2, this.length), this[t3] | this[t3 + 1] << 8; + }, u.prototype.readUInt16BE = function(t3, e2) { + return e2 || P(t3, 2, this.length), this[t3] << 8 | this[t3 + 1]; + }, u.prototype.readUInt32LE = function(t3, e2) { + return e2 || P(t3, 4, this.length), (this[t3] | this[t3 + 1] << 8 | this[t3 + 2] << 16) + 16777216 * this[t3 + 3]; + }, u.prototype.readUInt32BE = function(t3, e2) { + return e2 || P(t3, 4, this.length), 16777216 * this[t3] + (this[t3 + 1] << 16 | this[t3 + 2] << 8 | this[t3 + 3]); + }, u.prototype.readIntLE = function(t3, e2, r2) { + t3 |= 0, e2 |= 0, r2 || P(t3, e2, this.length); + for (var n2 = this[t3], o2 = 1, i2 = 0; ++i2 < e2 && (o2 *= 256); ) + n2 += this[t3 + i2] * o2; + return n2 >= (o2 *= 128) && (n2 -= Math.pow(2, 8 * e2)), n2; + }, u.prototype.readIntBE = function(t3, e2, r2) { + t3 |= 0, e2 |= 0, r2 || P(t3, e2, this.length); + for (var n2 = e2, o2 = 1, i2 = this[t3 + --n2]; n2 > 0 && (o2 *= 256); ) + i2 += this[t3 + --n2] * o2; + return i2 >= (o2 *= 128) && (i2 -= Math.pow(2, 8 * e2)), i2; + }, u.prototype.readInt8 = function(t3, e2) { + return e2 || P(t3, 1, this.length), 128 & this[t3] ? -1 * (255 - this[t3] + 1) : this[t3]; + }, u.prototype.readInt16LE = function(t3, e2) { + e2 || P(t3, 2, this.length); + var r2 = this[t3] | this[t3 + 1] << 8; + return 32768 & r2 ? 4294901760 | r2 : r2; + }, u.prototype.readInt16BE = function(t3, e2) { + e2 || P(t3, 2, this.length); + var r2 = this[t3 + 1] | this[t3] << 8; + return 32768 & r2 ? 4294901760 | r2 : r2; + }, u.prototype.readInt32LE = function(t3, e2) { + return e2 || P(t3, 4, this.length), this[t3] | this[t3 + 1] << 8 | this[t3 + 2] << 16 | this[t3 + 3] << 24; + }, u.prototype.readInt32BE = function(t3, e2) { + return e2 || P(t3, 4, this.length), this[t3] << 24 | this[t3 + 1] << 16 | this[t3 + 2] << 8 | this[t3 + 3]; + }, u.prototype.readFloatLE = function(t3, e2) { + return e2 || P(t3, 4, this.length), o.read(this, t3, true, 23, 4); + }, u.prototype.readFloatBE = function(t3, e2) { + return e2 || P(t3, 4, this.length), o.read(this, t3, false, 23, 4); + }, u.prototype.readDoubleLE = function(t3, e2) { + return e2 || P(t3, 8, this.length), o.read(this, t3, true, 52, 8); + }, u.prototype.readDoubleBE = function(t3, e2) { + return e2 || P(t3, 8, this.length), o.read(this, t3, false, 52, 8); + }, u.prototype.writeUIntLE = function(t3, e2, r2, n2) { + (t3 = +t3, e2 |= 0, r2 |= 0, n2) || L(this, t3, e2, r2, Math.pow(2, 8 * r2) - 1, 0); + var o2 = 1, i2 = 0; + for (this[e2] = 255 & t3; ++i2 < r2 && (o2 *= 256); ) + this[e2 + i2] = t3 / o2 & 255; + return e2 + r2; + }, u.prototype.writeUIntBE = function(t3, e2, r2, n2) { + (t3 = +t3, e2 |= 0, r2 |= 0, n2) || L(this, t3, e2, r2, Math.pow(2, 8 * r2) - 1, 0); + var o2 = r2 - 1, i2 = 1; + for (this[e2 + o2] = 255 & t3; --o2 >= 0 && (i2 *= 256); ) + this[e2 + o2] = t3 / i2 & 255; + return e2 + r2; + }, u.prototype.writeUInt8 = function(t3, e2, r2) { + return t3 = +t3, e2 |= 0, r2 || L(this, t3, e2, 1, 255, 0), u.TYPED_ARRAY_SUPPORT || (t3 = Math.floor(t3)), this[e2] = 255 & t3, e2 + 1; + }, u.prototype.writeUInt16LE = function(t3, e2, r2) { + return t3 = +t3, e2 |= 0, r2 || L(this, t3, e2, 2, 65535, 0), u.TYPED_ARRAY_SUPPORT ? (this[e2] = 255 & t3, this[e2 + 1] = t3 >>> 8) : T(this, t3, e2, true), e2 + 2; + }, u.prototype.writeUInt16BE = function(t3, e2, r2) { + return t3 = +t3, e2 |= 0, r2 || L(this, t3, e2, 2, 65535, 0), u.TYPED_ARRAY_SUPPORT ? (this[e2] = t3 >>> 8, this[e2 + 1] = 255 & t3) : T(this, t3, e2, false), e2 + 2; + }, u.prototype.writeUInt32LE = function(t3, e2, r2) { + return t3 = +t3, e2 |= 0, r2 || L(this, t3, e2, 4, 4294967295, 0), u.TYPED_ARRAY_SUPPORT ? (this[e2 + 3] = t3 >>> 24, this[e2 + 2] = t3 >>> 16, this[e2 + 1] = t3 >>> 8, this[e2] = 255 & t3) : B(this, t3, e2, true), e2 + 4; + }, u.prototype.writeUInt32BE = function(t3, e2, r2) { + return t3 = +t3, e2 |= 0, r2 || L(this, t3, e2, 4, 4294967295, 0), u.TYPED_ARRAY_SUPPORT ? (this[e2] = t3 >>> 24, this[e2 + 1] = t3 >>> 16, this[e2 + 2] = t3 >>> 8, this[e2 + 3] = 255 & t3) : B(this, t3, e2, false), e2 + 4; + }, u.prototype.writeIntLE = function(t3, e2, r2, n2) { + if (t3 = +t3, e2 |= 0, !n2) { + var o2 = Math.pow(2, 8 * r2 - 1); + L(this, t3, e2, r2, o2 - 1, -o2); + } + var i2 = 0, s2 = 1, a2 = 0; + for (this[e2] = 255 & t3; ++i2 < r2 && (s2 *= 256); ) + t3 < 0 && a2 === 0 && this[e2 + i2 - 1] !== 0 && (a2 = 1), this[e2 + i2] = (t3 / s2 >> 0) - a2 & 255; + return e2 + r2; + }, u.prototype.writeIntBE = function(t3, e2, r2, n2) { + if (t3 = +t3, e2 |= 0, !n2) { + var o2 = Math.pow(2, 8 * r2 - 1); + L(this, t3, e2, r2, o2 - 1, -o2); + } + var i2 = r2 - 1, s2 = 1, a2 = 0; + for (this[e2 + i2] = 255 & t3; --i2 >= 0 && (s2 *= 256); ) + t3 < 0 && a2 === 0 && this[e2 + i2 + 1] !== 0 && (a2 = 1), this[e2 + i2] = (t3 / s2 >> 0) - a2 & 255; + return e2 + r2; + }, u.prototype.writeInt8 = function(t3, e2, r2) { + return t3 = +t3, e2 |= 0, r2 || L(this, t3, e2, 1, 127, -128), u.TYPED_ARRAY_SUPPORT || (t3 = Math.floor(t3)), t3 < 0 && (t3 = 255 + t3 + 1), this[e2] = 255 & t3, e2 + 1; + }, u.prototype.writeInt16LE = function(t3, e2, r2) { + return t3 = +t3, e2 |= 0, r2 || L(this, t3, e2, 2, 32767, -32768), u.TYPED_ARRAY_SUPPORT ? (this[e2] = 255 & t3, this[e2 + 1] = t3 >>> 8) : T(this, t3, e2, true), e2 + 2; + }, u.prototype.writeInt16BE = function(t3, e2, r2) { + return t3 = +t3, e2 |= 0, r2 || L(this, t3, e2, 2, 32767, -32768), u.TYPED_ARRAY_SUPPORT ? (this[e2] = t3 >>> 8, this[e2 + 1] = 255 & t3) : T(this, t3, e2, false), e2 + 2; + }, u.prototype.writeInt32LE = function(t3, e2, r2) { + return t3 = +t3, e2 |= 0, r2 || L(this, t3, e2, 4, 2147483647, -2147483648), u.TYPED_ARRAY_SUPPORT ? (this[e2] = 255 & t3, this[e2 + 1] = t3 >>> 8, this[e2 + 2] = t3 >>> 16, this[e2 + 3] = t3 >>> 24) : B(this, t3, e2, true), e2 + 4; + }, u.prototype.writeInt32BE = function(t3, e2, r2) { + return t3 = +t3, e2 |= 0, r2 || L(this, t3, e2, 4, 2147483647, -2147483648), t3 < 0 && (t3 = 4294967295 + t3 + 1), u.TYPED_ARRAY_SUPPORT ? (this[e2] = t3 >>> 24, this[e2 + 1] = t3 >>> 16, this[e2 + 2] = t3 >>> 8, this[e2 + 3] = 255 & t3) : B(this, t3, e2, false), e2 + 4; + }, u.prototype.writeFloatLE = function(t3, e2, r2) { + return U(this, t3, e2, true, r2); + }, u.prototype.writeFloatBE = function(t3, e2, r2) { + return U(this, t3, e2, false, r2); + }, u.prototype.writeDoubleLE = function(t3, e2, r2) { + return I(this, t3, e2, true, r2); + }, u.prototype.writeDoubleBE = function(t3, e2, r2) { + return I(this, t3, e2, false, r2); + }, u.prototype.copy = function(t3, e2, r2, n2) { + if (r2 || (r2 = 0), n2 || n2 === 0 || (n2 = this.length), e2 >= t3.length && (e2 = t3.length), e2 || (e2 = 0), n2 > 0 && n2 < r2 && (n2 = r2), n2 === r2) + return 0; + if (t3.length === 0 || this.length === 0) + return 0; + if (e2 < 0) + throw new RangeError("targetStart out of bounds"); + if (r2 < 0 || r2 >= this.length) + throw new RangeError("sourceStart out of bounds"); + if (n2 < 0) + throw new RangeError("sourceEnd out of bounds"); + n2 > this.length && (n2 = this.length), t3.length - e2 < n2 - r2 && (n2 = t3.length - e2 + r2); + var o2, i2 = n2 - r2; + if (this === t3 && r2 < e2 && e2 < n2) + for (o2 = i2 - 1; o2 >= 0; --o2) + t3[o2 + e2] = this[o2 + r2]; + else if (i2 < 1e3 || !u.TYPED_ARRAY_SUPPORT) + for (o2 = 0; o2 < i2; ++o2) + t3[o2 + e2] = this[o2 + r2]; + else + Uint8Array.prototype.set.call(t3, this.subarray(r2, r2 + i2), e2); + return i2; + }, u.prototype.fill = function(t3, e2, r2, n2) { + if (typeof t3 == "string") { + if (typeof e2 == "string" ? (n2 = e2, e2 = 0, r2 = this.length) : typeof r2 == "string" && (n2 = r2, r2 = this.length), t3.length === 1) { + var o2 = t3.charCodeAt(0); + o2 < 256 && (t3 = o2); + } + if (n2 !== void 0 && typeof n2 != "string") + throw new TypeError("encoding must be a string"); + if (typeof n2 == "string" && !u.isEncoding(n2)) + throw new TypeError("Unknown encoding: " + n2); + } else + typeof t3 == "number" && (t3 &= 255); + if (e2 < 0 || this.length < e2 || this.length < r2) + throw new RangeError("Out of range index"); + if (r2 <= e2) + return this; + var i2; + if (e2 >>>= 0, r2 = r2 === void 0 ? this.length : r2 >>> 0, t3 || (t3 = 0), typeof t3 == "number") + for (i2 = e2; i2 < r2; ++i2) + this[i2] = t3; + else { + var s2 = u.isBuffer(t3) ? t3 : F(new u(t3, n2).toString()), a2 = s2.length; + for (i2 = 0; i2 < r2 - e2; ++i2) + this[i2 + e2] = s2[i2 % a2]; + } + return this; + }; + var D = /[^+\/0-9A-Za-z-_]/g; + function N(t3) { + return t3 < 16 ? "0" + t3.toString(16) : t3.toString(16); + } + function F(t3, e2) { + var r2; + e2 = e2 || 1 / 0; + for (var n2 = t3.length, o2 = null, i2 = [], s2 = 0; s2 < n2; ++s2) { + if ((r2 = t3.charCodeAt(s2)) > 55295 && r2 < 57344) { + if (!o2) { + if (r2 > 56319) { + (e2 -= 3) > -1 && i2.push(239, 191, 189); + continue; + } + if (s2 + 1 === n2) { + (e2 -= 3) > -1 && i2.push(239, 191, 189); + continue; + } + o2 = r2; + continue; + } + if (r2 < 56320) { + (e2 -= 3) > -1 && i2.push(239, 191, 189), o2 = r2; + continue; + } + r2 = 65536 + (o2 - 55296 << 10 | r2 - 56320); + } else + o2 && (e2 -= 3) > -1 && i2.push(239, 191, 189); + if (o2 = null, r2 < 128) { + if ((e2 -= 1) < 0) + break; + i2.push(r2); + } else if (r2 < 2048) { + if ((e2 -= 2) < 0) + break; + i2.push(r2 >> 6 | 192, 63 & r2 | 128); + } else if (r2 < 65536) { + if ((e2 -= 3) < 0) + break; + i2.push(r2 >> 12 | 224, r2 >> 6 & 63 | 128, 63 & r2 | 128); + } else { + if (!(r2 < 1114112)) + throw new Error("Invalid code point"); + if ((e2 -= 4) < 0) + break; + i2.push(r2 >> 18 | 240, r2 >> 12 & 63 | 128, r2 >> 6 & 63 | 128, 63 & r2 | 128); + } + } + return i2; + } + function Y(t3) { + return n.toByteArray(function(t4) { + if ((t4 = function(t5) { + return t5.trim ? t5.trim() : t5.replace(/^\s+|\s+$/g, ""); + }(t4).replace(D, "")).length < 2) + return ""; + for (; t4.length % 4 != 0; ) + t4 += "="; + return t4; + }(t3)); + } + function z(t3, e2, r2, n2) { + for (var o2 = 0; o2 < n2 && !(o2 + r2 >= e2.length || o2 >= t3.length); ++o2) + e2[o2 + r2] = t3[o2]; + return o2; + } + }).call(this, r(28)); + }, function(t, e, r) { + e.SourceMapGenerator = r(16).SourceMapGenerator, e.SourceMapConsumer = r(34).SourceMapConsumer, e.SourceNode = r(37).SourceNode; + }, function(t, e, r) { + var n = r(17), o = r(0), i = r(18).ArraySet, s = r(33).MappingList; + function a(t2) { + t2 || (t2 = {}), this._file = o.getArg(t2, "file", null), this._sourceRoot = o.getArg(t2, "sourceRoot", null), this._skipValidation = o.getArg(t2, "skipValidation", false), this._sources = new i(), this._names = new i(), this._mappings = new s(), this._sourcesContents = null; + } + a.prototype._version = 3, a.fromSourceMap = function(t2) { + var e2 = t2.sourceRoot, r2 = new a({ file: t2.file, sourceRoot: e2 }); + return t2.eachMapping(function(t3) { + var n2 = { generated: { line: t3.generatedLine, column: t3.generatedColumn } }; + t3.source != null && (n2.source = t3.source, e2 != null && (n2.source = o.relative(e2, n2.source)), n2.original = { line: t3.originalLine, column: t3.originalColumn }, t3.name != null && (n2.name = t3.name)), r2.addMapping(n2); + }), t2.sources.forEach(function(n2) { + var i2 = n2; + e2 !== null && (i2 = o.relative(e2, n2)), r2._sources.has(i2) || r2._sources.add(i2); + var s2 = t2.sourceContentFor(n2); + s2 != null && r2.setSourceContent(n2, s2); + }), r2; + }, a.prototype.addMapping = function(t2) { + var e2 = o.getArg(t2, "generated"), r2 = o.getArg(t2, "original", null), n2 = o.getArg(t2, "source", null), i2 = o.getArg(t2, "name", null); + this._skipValidation || this._validateMapping(e2, r2, n2, i2), n2 != null && (n2 = String(n2), this._sources.has(n2) || this._sources.add(n2)), i2 != null && (i2 = String(i2), this._names.has(i2) || this._names.add(i2)), this._mappings.add({ generatedLine: e2.line, generatedColumn: e2.column, originalLine: r2 != null && r2.line, originalColumn: r2 != null && r2.column, source: n2, name: i2 }); + }, a.prototype.setSourceContent = function(t2, e2) { + var r2 = t2; + this._sourceRoot != null && (r2 = o.relative(this._sourceRoot, r2)), e2 != null ? (this._sourcesContents || (this._sourcesContents = /* @__PURE__ */ Object.create(null)), this._sourcesContents[o.toSetString(r2)] = e2) : this._sourcesContents && (delete this._sourcesContents[o.toSetString(r2)], Object.keys(this._sourcesContents).length === 0 && (this._sourcesContents = null)); + }, a.prototype.applySourceMap = function(t2, e2, r2) { + var n2 = e2; + if (e2 == null) { + if (t2.file == null) + throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`); + n2 = t2.file; + } + var s2 = this._sourceRoot; + s2 != null && (n2 = o.relative(s2, n2)); + var a2 = new i(), u = new i(); + this._mappings.unsortedForEach(function(e3) { + if (e3.source === n2 && e3.originalLine != null) { + var i2 = t2.originalPositionFor({ line: e3.originalLine, column: e3.originalColumn }); + i2.source != null && (e3.source = i2.source, r2 != null && (e3.source = o.join(r2, e3.source)), s2 != null && (e3.source = o.relative(s2, e3.source)), e3.originalLine = i2.line, e3.originalColumn = i2.column, i2.name != null && (e3.name = i2.name)); + } + var l = e3.source; + l == null || a2.has(l) || a2.add(l); + var c = e3.name; + c == null || u.has(c) || u.add(c); + }, this), this._sources = a2, this._names = u, t2.sources.forEach(function(e3) { + var n3 = t2.sourceContentFor(e3); + n3 != null && (r2 != null && (e3 = o.join(r2, e3)), s2 != null && (e3 = o.relative(s2, e3)), this.setSourceContent(e3, n3)); + }, this); + }, a.prototype._validateMapping = function(t2, e2, r2, n2) { + if (e2 && typeof e2.line != "number" && typeof e2.column != "number") + throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values."); + if ((!(t2 && "line" in t2 && "column" in t2 && t2.line > 0 && t2.column >= 0) || e2 || r2 || n2) && !(t2 && "line" in t2 && "column" in t2 && e2 && "line" in e2 && "column" in e2 && t2.line > 0 && t2.column >= 0 && e2.line > 0 && e2.column >= 0 && r2)) + throw new Error("Invalid mapping: " + JSON.stringify({ generated: t2, source: r2, original: e2, name: n2 })); + }, a.prototype._serializeMappings = function() { + for (var t2, e2, r2, i2, s2 = 0, a2 = 1, u = 0, l = 0, c = 0, f = 0, p = "", h = this._mappings.toArray(), d = 0, g = h.length; d < g; d++) { + if (t2 = "", (e2 = h[d]).generatedLine !== a2) + for (s2 = 0; e2.generatedLine !== a2; ) + t2 += ";", a2++; + else if (d > 0) { + if (!o.compareByGeneratedPositionsInflated(e2, h[d - 1])) + continue; + t2 += ","; + } + t2 += n.encode(e2.generatedColumn - s2), s2 = e2.generatedColumn, e2.source != null && (i2 = this._sources.indexOf(e2.source), t2 += n.encode(i2 - f), f = i2, t2 += n.encode(e2.originalLine - 1 - l), l = e2.originalLine - 1, t2 += n.encode(e2.originalColumn - u), u = e2.originalColumn, e2.name != null && (r2 = this._names.indexOf(e2.name), t2 += n.encode(r2 - c), c = r2)), p += t2; + } + return p; + }, a.prototype._generateSourcesContent = function(t2, e2) { + return t2.map(function(t3) { + if (!this._sourcesContents) + return null; + e2 != null && (t3 = o.relative(e2, t3)); + var r2 = o.toSetString(t3); + return Object.prototype.hasOwnProperty.call(this._sourcesContents, r2) ? this._sourcesContents[r2] : null; + }, this); + }, a.prototype.toJSON = function() { + var t2 = { version: this._version, sources: this._sources.toArray(), names: this._names.toArray(), mappings: this._serializeMappings() }; + return this._file != null && (t2.file = this._file), this._sourceRoot != null && (t2.sourceRoot = this._sourceRoot), this._sourcesContents && (t2.sourcesContent = this._generateSourcesContent(t2.sources, t2.sourceRoot)), t2; + }, a.prototype.toString = function() { + return JSON.stringify(this.toJSON()); + }, e.SourceMapGenerator = a; + }, function(t, e, r) { + var n = r(32); + e.encode = function(t2) { + var e2, r2 = "", o = function(t3) { + return t3 < 0 ? 1 + (-t3 << 1) : 0 + (t3 << 1); + }(t2); + do { + e2 = 31 & o, (o >>>= 5) > 0 && (e2 |= 32), r2 += n.encode(e2); + } while (o > 0); + return r2; + }, e.decode = function(t2, e2, r2) { + var o, i, s = t2.length, a = 0, u = 0; + do { + if (e2 >= s) + throw new Error("Expected more digits in base 64 VLQ value."); + if ((i = n.decode(t2.charCodeAt(e2++))) === -1) + throw new Error("Invalid base64 digit: " + t2.charAt(e2 - 1)); + o = !!(32 & i), a += (i &= 31) << u, u += 5; + } while (o); + r2.value = function(t3) { + var e3 = t3 >> 1; + return (1 & t3) == 1 ? -e3 : e3; + }(a), r2.rest = e2; + }; + }, function(t, e, r) { + var n = r(0), o = Object.prototype.hasOwnProperty, i = typeof Map != "undefined"; + function s() { + this._array = [], this._set = i ? /* @__PURE__ */ new Map() : /* @__PURE__ */ Object.create(null); + } + s.fromArray = function(t2, e2) { + for (var r2 = new s(), n2 = 0, o2 = t2.length; n2 < o2; n2++) + r2.add(t2[n2], e2); + return r2; + }, s.prototype.size = function() { + return i ? this._set.size : Object.getOwnPropertyNames(this._set).length; + }, s.prototype.add = function(t2, e2) { + var r2 = i ? t2 : n.toSetString(t2), s2 = i ? this.has(t2) : o.call(this._set, r2), a = this._array.length; + s2 && !e2 || this._array.push(t2), s2 || (i ? this._set.set(t2, a) : this._set[r2] = a); + }, s.prototype.has = function(t2) { + if (i) + return this._set.has(t2); + var e2 = n.toSetString(t2); + return o.call(this._set, e2); + }, s.prototype.indexOf = function(t2) { + if (i) { + var e2 = this._set.get(t2); + if (e2 >= 0) + return e2; + } else { + var r2 = n.toSetString(t2); + if (o.call(this._set, r2)) + return this._set[r2]; + } + throw new Error('"' + t2 + '" is not in the set.'); + }, s.prototype.at = function(t2) { + if (t2 >= 0 && t2 < this._array.length) + return this._array[t2]; + throw new Error("No element indexed by " + t2); + }, s.prototype.toArray = function() { + return this._array.slice(); + }, e.ArraySet = s; + }, function(t, e, r) { + "use strict"; + e.__esModule = true; + var n = { split: function(t2, e2, r2) { + for (var n2 = [], o = "", i = false, s = 0, a = false, u = false, l = 0; l < t2.length; l++) { + var c = t2[l]; + a ? u ? u = false : c === "\\" ? u = true : c === a && (a = false) : c === '"' || c === "'" ? a = c : c === "(" ? s += 1 : c === ")" ? s > 0 && (s -= 1) : s === 0 && e2.indexOf(c) !== -1 && (i = true), i ? (o !== "" && n2.push(o.trim()), o = "", i = false) : o += c; + } + return (r2 || o !== "") && n2.push(o.trim()), n2; + }, space: function(t2) { + return n.split(t2, [" ", "\n", " "]); + }, comma: function(t2) { + return n.split(t2, [","], true); + } }; + e.default = n, t.exports = e.default; + }, function(t, e, r) { + "use strict"; + e.__esModule = true; + var n = function(t2) { + function e2(r2) { + !function(t3, e3) { + if (!(t3 instanceof e3)) + throw new TypeError("Cannot call a class as a function"); + }(this, e2); + var n2 = function(t3, e3) { + if (!t3) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return !e3 || typeof e3 != "object" && typeof e3 != "function" ? t3 : e3; + }(this, t2.call(this, r2)); + return n2.type = "root", n2.nodes || (n2.nodes = []), n2; + } + return function(t3, e3) { + if (typeof e3 != "function" && e3 !== null) + throw new TypeError("Super expression must either be null or a function, not " + typeof e3); + t3.prototype = Object.create(e3 && e3.prototype, { constructor: { value: t3, enumerable: false, writable: true, configurable: true } }), e3 && (Object.setPrototypeOf ? Object.setPrototypeOf(t3, e3) : t3.__proto__ = e3); + }(e2, t2), e2.prototype.removeChild = function(e3, r2) { + var n2 = this.index(e3); + return !r2 && n2 === 0 && this.nodes.length > 1 && (this.nodes[1].raws.before = this.nodes[n2].raws.before), t2.prototype.removeChild.call(this, e3); + }, e2.prototype.normalize = function(e3, r2, n2) { + var o = t2.prototype.normalize.call(this, e3); + if (r2) { + if (n2 === "prepend") + this.nodes.length > 1 ? r2.raws.before = this.nodes[1].raws.before : delete r2.raws.before; + else if (this.first !== r2) { + var i = o, s = Array.isArray(i), a = 0; + for (i = s ? i : i[Symbol.iterator](); ; ) { + var u; + if (s) { + if (a >= i.length) + break; + u = i[a++]; + } else { + if ((a = i.next()).done) + break; + u = a.value; + } + u.raws.before = r2.raws.before; + } + } + } + return o; + }, e2.prototype.toResult = function() { + var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + return new (r(13))(new (r(12))(), this, t3).stringify(); + }, e2; + }(function(t2) { + return t2 && t2.__esModule ? t2 : { default: t2 }; + }(r(8)).default); + e.default = n, t.exports = e.default; + }, function(t, e, r) { + "use strict"; + Object.defineProperty(e, "__esModule", { value: true }); + var n = Object.assign || function(t2) { + for (var e2 = 1; e2 < arguments.length; e2++) { + var r2 = arguments[e2]; + for (var n2 in r2) + Object.prototype.hasOwnProperty.call(r2, n2) && (t2[n2] = r2[n2]); + } + return t2; + }, o = function(t2) { + return t2 && t2.__esModule ? t2 : { default: t2 }; + }(r(22)); + e.default = function(t2) { + var e2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + n({}, e2); + t2.setCustomParserCss(o.default); + }; + }, function(t, e, r) { + "use strict"; + Object.defineProperty(e, "__esModule", { value: true }), e.createAtRule = e.createRule = e.log = void 0; + var n = Object.assign || function(t2) { + for (var e2 = 1; e2 < arguments.length; e2++) { + var r2 = arguments[e2]; + for (var n2 in r2) + Object.prototype.hasOwnProperty.call(r2, n2) && (t2[n2] = r2[n2]); + } + return t2; + }, o = function(t2) { + return t2 && t2.__esModule ? t2 : { default: t2 }; + }(r(23)); + var i = e.log = function(t2, e2) { + return t2 && t2.log(e2, { ns: "parser-poscss" }); + }, s = e.createRule = function(t2) { + var e2 = {}; + return (t2.nodes || []).forEach(function(t3) { + var r2 = t3.prop, n2 = t3.value, o2 = t3.important; + e2[r2] = n2 + (o2 ? " !important" : ""); + }), { selectors: t2.selector || "", style: e2 }; + }, a = e.createAtRule = function(t2, e2) { + var r2 = t2.name, o2 = t2.params; + ["media", "keyframes"].indexOf(r2) >= 0 ? t2.nodes.forEach(function(t3) { + e2.push(n({}, s(t3), { atRule: r2, params: o2 })); + }) : e2.push(n({}, s(t2), { atRule: r2 })); + }; + e.default = function(t2, e2) { + var r2 = []; + i(e2, ["Input CSS", t2]); + var n2 = o.default.parse(t2); + return i(e2, ["PostCSS AST", n2]), n2.nodes.forEach(function(t3) { + switch (t3.type) { + case "rule": + r2.push(s(t3)); + break; + case "atrule": + a(t3, r2); + } + }), i(e2, ["Output", r2]), r2; + }; + }, function(t, e, r) { + "use strict"; + e.__esModule = true; + var n = h(r(1)), o = h(r(12)), i = h(r(3)), s = h(r(6)), a = h(r(7)), u = h(r(47)), l = h(r(5)), c = h(r(19)), f = h(r(9)), p = h(r(20)); + function h(t2) { + return t2 && t2.__esModule ? t2 : { default: t2 }; + } + function d() { + for (var t2 = arguments.length, e2 = Array(t2), r2 = 0; r2 < t2; r2++) + e2[r2] = arguments[r2]; + return e2.length === 1 && Array.isArray(e2[0]) && (e2 = e2[0]), new o.default(e2); + } + d.plugin = function(t2, e2) { + function r2() { + var r3 = e2.apply(void 0, arguments); + return r3.postcssPlugin = t2, r3.postcssVersion = new o.default().version, r3; + } + var n2 = void 0; + return Object.defineProperty(r2, "postcss", { get: function() { + return n2 || (n2 = r2()), n2; + } }), r2.process = function(t3, e3, n3) { + return d([r2(n3)]).process(t3, e3); + }, r2; + }, d.stringify = i.default, d.parse = l.default, d.vendor = u.default, d.list = c.default, d.comment = function(t2) { + return new s.default(t2); + }, d.atRule = function(t2) { + return new a.default(t2); + }, d.decl = function(t2) { + return new n.default(t2); + }, d.rule = function(t2) { + return new f.default(t2); + }, d.root = function(t2) { + return new p.default(t2); + }, e.default = d, t.exports = e.default; + }, function(t, e) { + }, function(t, e) { + }, function(t, e) { + }, function(t, e, r) { + "use strict"; + (function(n) { + e.__esModule = true; + var o = s(r(15)), i = s(r(4)); + function s(t2) { + return t2 && t2.__esModule ? t2 : { default: t2 }; + } + var a = function() { + function t2(e2, r2, n2) { + !function(t3, e3) { + if (!(t3 instanceof e3)) + throw new TypeError("Cannot call a class as a function"); + }(this, t2), this.stringify = e2, this.mapOpts = n2.map || {}, this.root = r2, this.opts = n2; + } + return t2.prototype.isMap = function() { + return this.opts.map !== void 0 ? !!this.opts.map : this.previous().length > 0; + }, t2.prototype.previous = function() { + var t3 = this; + return this.previousMaps || (this.previousMaps = [], this.root.walk(function(e2) { + if (e2.source && e2.source.input.map) { + var r2 = e2.source.input.map; + t3.previousMaps.indexOf(r2) === -1 && t3.previousMaps.push(r2); + } + })), this.previousMaps; + }, t2.prototype.isInline = function() { + if (this.mapOpts.inline !== void 0) + return this.mapOpts.inline; + var t3 = this.mapOpts.annotation; + return (t3 === void 0 || t3 === true) && (!this.previous().length || this.previous().some(function(t4) { + return t4.inline; + })); + }, t2.prototype.isSourcesContent = function() { + return this.mapOpts.sourcesContent !== void 0 ? this.mapOpts.sourcesContent : !this.previous().length || this.previous().some(function(t3) { + return t3.withContent(); + }); + }, t2.prototype.clearAnnotation = function() { + if (this.mapOpts.annotation !== false) + for (var t3 = void 0, e2 = this.root.nodes.length - 1; e2 >= 0; e2--) + (t3 = this.root.nodes[e2]).type === "comment" && t3.text.indexOf("# sourceMappingURL=") === 0 && this.root.removeChild(e2); + }, t2.prototype.setSourcesContent = function() { + var t3 = this, e2 = {}; + this.root.walk(function(r2) { + if (r2.source) { + var n2 = r2.source.input.from; + if (n2 && !e2[n2]) { + e2[n2] = true; + var o2 = t3.relative(n2); + t3.map.setSourceContent(o2, r2.source.input.css); + } + } + }); + }, t2.prototype.applyPrevMaps = function() { + var t3 = this.previous(), e2 = Array.isArray(t3), r2 = 0; + for (t3 = e2 ? t3 : t3[Symbol.iterator](); ; ) { + var n2; + if (e2) { + if (r2 >= t3.length) + break; + n2 = t3[r2++]; + } else { + if ((r2 = t3.next()).done) + break; + n2 = r2.value; + } + var s2 = n2, a2 = this.relative(s2.file), u = s2.root || i.default.dirname(s2.file), l = void 0; + this.mapOpts.sourcesContent === false ? (l = new o.default.SourceMapConsumer(s2.text)).sourcesContent && (l.sourcesContent = l.sourcesContent.map(function() { + return null; + })) : l = s2.consumer(), this.map.applySourceMap(l, a2, this.relative(u)); + } + }, t2.prototype.isAnnotation = function() { + return !!this.isInline() || (this.mapOpts.annotation !== void 0 ? this.mapOpts.annotation : !this.previous().length || this.previous().some(function(t3) { + return t3.annotation; + })); + }, t2.prototype.toBase64 = function(t3) { + return n ? n.from(t3).toString("base64") : window.btoa(unescape(encodeURIComponent(t3))); + }, t2.prototype.addAnnotation = function() { + var t3 = void 0; + t3 = this.isInline() ? "data:application/json;base64," + this.toBase64(this.map.toString()) : typeof this.mapOpts.annotation == "string" ? this.mapOpts.annotation : this.outputFile() + ".map"; + var e2 = "\n"; + this.css.indexOf("\r\n") !== -1 && (e2 = "\r\n"), this.css += e2 + "/*# sourceMappingURL=" + t3 + " */"; + }, t2.prototype.outputFile = function() { + return this.opts.to ? this.relative(this.opts.to) : this.opts.from ? this.relative(this.opts.from) : "to.css"; + }, t2.prototype.generateMap = function() { + return this.generateString(), this.isSourcesContent() && this.setSourcesContent(), this.previous().length > 0 && this.applyPrevMaps(), this.isAnnotation() && this.addAnnotation(), this.isInline() ? [this.css] : [this.css, this.map]; + }, t2.prototype.relative = function(t3) { + if (t3.indexOf("<") === 0) + return t3; + if (/^\w+:\/\//.test(t3)) + return t3; + var e2 = this.opts.to ? i.default.dirname(this.opts.to) : "."; + return typeof this.mapOpts.annotation == "string" && (e2 = i.default.dirname(i.default.resolve(e2, this.mapOpts.annotation))), t3 = i.default.relative(e2, t3), i.default.sep === "\\" ? t3.replace(/\\/g, "/") : t3; + }, t2.prototype.sourcePath = function(t3) { + return this.mapOpts.from ? this.mapOpts.from : this.relative(t3.source.input.from); + }, t2.prototype.generateString = function() { + var t3 = this; + this.css = "", this.map = new o.default.SourceMapGenerator({ file: this.outputFile() }); + var e2 = 1, r2 = 1, n2 = void 0, i2 = void 0; + this.stringify(this.root, function(o2, s2, a2) { + t3.css += o2, s2 && a2 !== "end" && (s2.source && s2.source.start ? t3.map.addMapping({ source: t3.sourcePath(s2), generated: { line: e2, column: r2 - 1 }, original: { line: s2.source.start.line, column: s2.source.start.column - 1 } }) : t3.map.addMapping({ source: "<no source>", original: { line: 1, column: 0 }, generated: { line: e2, column: r2 - 1 } })), (n2 = o2.match(/\n/g)) ? (e2 += n2.length, i2 = o2.lastIndexOf("\n"), r2 = o2.length - i2) : r2 += o2.length, s2 && a2 !== "start" && (s2.source && s2.source.end ? t3.map.addMapping({ source: t3.sourcePath(s2), generated: { line: e2, column: r2 - 1 }, original: { line: s2.source.end.line, column: s2.source.end.column } }) : t3.map.addMapping({ source: "<no source>", original: { line: 1, column: 0 }, generated: { line: e2, column: r2 - 1 } })); + }); + }, t2.prototype.generate = function() { + if (this.clearAnnotation(), this.isMap()) + return this.generateMap(); + var t3 = ""; + return this.stringify(this.root, function(e2) { + t3 += e2; + }), [t3]; + }, t2; + }(); + e.default = a, t.exports = e.default; + }).call(this, r(14).Buffer); + }, function(t, e) { + var r; + r = function() { + return this; + }(); + try { + r = r || Function("return this")() || (0, eval)("this"); + } catch (t2) { + typeof window == "object" && (r = window); + } + t.exports = r; + }, function(t, e, r) { + "use strict"; + e.byteLength = function(t2) { + var e2 = l(t2), r2 = e2[0], n2 = e2[1]; + return 3 * (r2 + n2) / 4 - n2; + }, e.toByteArray = function(t2) { + for (var e2, r2 = l(t2), n2 = r2[0], s2 = r2[1], a2 = new i(function(t3, e3, r3) { + return 3 * (e3 + r3) / 4 - r3; + }(0, n2, s2)), u2 = 0, c2 = s2 > 0 ? n2 - 4 : n2, f2 = 0; f2 < c2; f2 += 4) + e2 = o[t2.charCodeAt(f2)] << 18 | o[t2.charCodeAt(f2 + 1)] << 12 | o[t2.charCodeAt(f2 + 2)] << 6 | o[t2.charCodeAt(f2 + 3)], a2[u2++] = e2 >> 16 & 255, a2[u2++] = e2 >> 8 & 255, a2[u2++] = 255 & e2; + s2 === 2 && (e2 = o[t2.charCodeAt(f2)] << 2 | o[t2.charCodeAt(f2 + 1)] >> 4, a2[u2++] = 255 & e2); + s2 === 1 && (e2 = o[t2.charCodeAt(f2)] << 10 | o[t2.charCodeAt(f2 + 1)] << 4 | o[t2.charCodeAt(f2 + 2)] >> 2, a2[u2++] = e2 >> 8 & 255, a2[u2++] = 255 & e2); + return a2; + }, e.fromByteArray = function(t2) { + for (var e2, r2 = t2.length, o2 = r2 % 3, i2 = [], s2 = 0, a2 = r2 - o2; s2 < a2; s2 += 16383) + i2.push(f(t2, s2, s2 + 16383 > a2 ? a2 : s2 + 16383)); + o2 === 1 ? (e2 = t2[r2 - 1], i2.push(n[e2 >> 2] + n[e2 << 4 & 63] + "==")) : o2 === 2 && (e2 = (t2[r2 - 2] << 8) + t2[r2 - 1], i2.push(n[e2 >> 10] + n[e2 >> 4 & 63] + n[e2 << 2 & 63] + "=")); + return i2.join(""); + }; + for (var n = [], o = [], i = typeof Uint8Array != "undefined" ? Uint8Array : Array, s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", a = 0, u = s.length; a < u; ++a) + n[a] = s[a], o[s.charCodeAt(a)] = a; + function l(t2) { + var e2 = t2.length; + if (e2 % 4 > 0) + throw new Error("Invalid string. Length must be a multiple of 4"); + var r2 = t2.indexOf("="); + return r2 === -1 && (r2 = e2), [r2, r2 === e2 ? 0 : 4 - r2 % 4]; + } + function c(t2) { + return n[t2 >> 18 & 63] + n[t2 >> 12 & 63] + n[t2 >> 6 & 63] + n[63 & t2]; + } + function f(t2, e2, r2) { + for (var n2, o2 = [], i2 = e2; i2 < r2; i2 += 3) + n2 = (t2[i2] << 16 & 16711680) + (t2[i2 + 1] << 8 & 65280) + (255 & t2[i2 + 2]), o2.push(c(n2)); + return o2.join(""); + } + o["-".charCodeAt(0)] = 62, o["_".charCodeAt(0)] = 63; + }, function(t, e) { + e.read = function(t2, e2, r, n, o) { + var i, s, a = 8 * o - n - 1, u = (1 << a) - 1, l = u >> 1, c = -7, f = r ? o - 1 : 0, p = r ? -1 : 1, h = t2[e2 + f]; + for (f += p, i = h & (1 << -c) - 1, h >>= -c, c += a; c > 0; i = 256 * i + t2[e2 + f], f += p, c -= 8) + ; + for (s = i & (1 << -c) - 1, i >>= -c, c += n; c > 0; s = 256 * s + t2[e2 + f], f += p, c -= 8) + ; + if (i === 0) + i = 1 - l; + else { + if (i === u) + return s ? NaN : 1 / 0 * (h ? -1 : 1); + s += Math.pow(2, n), i -= l; + } + return (h ? -1 : 1) * s * Math.pow(2, i - n); + }, e.write = function(t2, e2, r, n, o, i) { + var s, a, u, l = 8 * i - o - 1, c = (1 << l) - 1, f = c >> 1, p = o === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, h = n ? 0 : i - 1, d = n ? 1 : -1, g = e2 < 0 || e2 === 0 && 1 / e2 < 0 ? 1 : 0; + for (e2 = Math.abs(e2), isNaN(e2) || e2 === 1 / 0 ? (a = isNaN(e2) ? 1 : 0, s = c) : (s = Math.floor(Math.log(e2) / Math.LN2), e2 * (u = Math.pow(2, -s)) < 1 && (s--, u *= 2), (e2 += s + f >= 1 ? p / u : p * Math.pow(2, 1 - f)) * u >= 2 && (s++, u /= 2), s + f >= c ? (a = 0, s = c) : s + f >= 1 ? (a = (e2 * u - 1) * Math.pow(2, o), s += f) : (a = e2 * Math.pow(2, f - 1) * Math.pow(2, o), s = 0)); o >= 8; t2[r + h] = 255 & a, h += d, a /= 256, o -= 8) + ; + for (s = s << o | a, l += o; l > 0; t2[r + h] = 255 & s, h += d, s /= 256, l -= 8) + ; + t2[r + h - d] |= 128 * g; + }; + }, function(t, e) { + var r = {}.toString; + t.exports = Array.isArray || function(t2) { + return r.call(t2) == "[object Array]"; + }; + }, function(t, e) { + var r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""); + e.encode = function(t2) { + if (0 <= t2 && t2 < r.length) + return r[t2]; + throw new TypeError("Must be between 0 and 63: " + t2); + }, e.decode = function(t2) { + return 65 <= t2 && t2 <= 90 ? t2 - 65 : 97 <= t2 && t2 <= 122 ? t2 - 97 + 26 : 48 <= t2 && t2 <= 57 ? t2 - 48 + 52 : t2 == 43 ? 62 : t2 == 47 ? 63 : -1; + }; + }, function(t, e, r) { + var n = r(0); + function o() { + this._array = [], this._sorted = true, this._last = { generatedLine: -1, generatedColumn: 0 }; + } + o.prototype.unsortedForEach = function(t2, e2) { + this._array.forEach(t2, e2); + }, o.prototype.add = function(t2) { + !function(t3, e2) { + var r2 = t3.generatedLine, o2 = e2.generatedLine, i = t3.generatedColumn, s = e2.generatedColumn; + return o2 > r2 || o2 == r2 && s >= i || n.compareByGeneratedPositionsInflated(t3, e2) <= 0; + }(this._last, t2) ? (this._sorted = false, this._array.push(t2)) : (this._last = t2, this._array.push(t2)); + }, o.prototype.toArray = function() { + return this._sorted || (this._array.sort(n.compareByGeneratedPositionsInflated), this._sorted = true), this._array; + }, e.MappingList = o; + }, function(t, e, r) { + var n = r(0), o = r(35), i = r(18).ArraySet, s = r(17), a = r(36).quickSort; + function u(t2, e2) { + var r2 = t2; + return typeof t2 == "string" && (r2 = n.parseSourceMapInput(t2)), r2.sections != null ? new f(r2, e2) : new l(r2, e2); + } + function l(t2, e2) { + var r2 = t2; + typeof t2 == "string" && (r2 = n.parseSourceMapInput(t2)); + var o2 = n.getArg(r2, "version"), s2 = n.getArg(r2, "sources"), a2 = n.getArg(r2, "names", []), u2 = n.getArg(r2, "sourceRoot", null), l2 = n.getArg(r2, "sourcesContent", null), c2 = n.getArg(r2, "mappings"), f2 = n.getArg(r2, "file", null); + if (o2 != this._version) + throw new Error("Unsupported version: " + o2); + u2 && (u2 = n.normalize(u2)), s2 = s2.map(String).map(n.normalize).map(function(t3) { + return u2 && n.isAbsolute(u2) && n.isAbsolute(t3) ? n.relative(u2, t3) : t3; + }), this._names = i.fromArray(a2.map(String), true), this._sources = i.fromArray(s2, true), this._absoluteSources = this._sources.toArray().map(function(t3) { + return n.computeSourceURL(u2, t3, e2); + }), this.sourceRoot = u2, this.sourcesContent = l2, this._mappings = c2, this._sourceMapURL = e2, this.file = f2; + } + function c() { + this.generatedLine = 0, this.generatedColumn = 0, this.source = null, this.originalLine = null, this.originalColumn = null, this.name = null; + } + function f(t2, e2) { + var r2 = t2; + typeof t2 == "string" && (r2 = n.parseSourceMapInput(t2)); + var o2 = n.getArg(r2, "version"), s2 = n.getArg(r2, "sections"); + if (o2 != this._version) + throw new Error("Unsupported version: " + o2); + this._sources = new i(), this._names = new i(); + var a2 = { line: -1, column: 0 }; + this._sections = s2.map(function(t3) { + if (t3.url) + throw new Error("Support for url field in sections not implemented."); + var r3 = n.getArg(t3, "offset"), o3 = n.getArg(r3, "line"), i2 = n.getArg(r3, "column"); + if (o3 < a2.line || o3 === a2.line && i2 < a2.column) + throw new Error("Section offsets must be ordered and non-overlapping."); + return a2 = r3, { generatedOffset: { generatedLine: o3 + 1, generatedColumn: i2 + 1 }, consumer: new u(n.getArg(t3, "map"), e2) }; + }); + } + u.fromSourceMap = function(t2, e2) { + return l.fromSourceMap(t2, e2); + }, u.prototype._version = 3, u.prototype.__generatedMappings = null, Object.defineProperty(u.prototype, "_generatedMappings", { configurable: true, enumerable: true, get: function() { + return this.__generatedMappings || this._parseMappings(this._mappings, this.sourceRoot), this.__generatedMappings; + } }), u.prototype.__originalMappings = null, Object.defineProperty(u.prototype, "_originalMappings", { configurable: true, enumerable: true, get: function() { + return this.__originalMappings || this._parseMappings(this._mappings, this.sourceRoot), this.__originalMappings; + } }), u.prototype._charIsMappingSeparator = function(t2, e2) { + var r2 = t2.charAt(e2); + return r2 === ";" || r2 === ","; + }, u.prototype._parseMappings = function(t2, e2) { + throw new Error("Subclasses must implement _parseMappings"); + }, u.GENERATED_ORDER = 1, u.ORIGINAL_ORDER = 2, u.GREATEST_LOWER_BOUND = 1, u.LEAST_UPPER_BOUND = 2, u.prototype.eachMapping = function(t2, e2, r2) { + var o2, i2 = e2 || null; + switch (r2 || u.GENERATED_ORDER) { + case u.GENERATED_ORDER: + o2 = this._generatedMappings; + break; + case u.ORIGINAL_ORDER: + o2 = this._originalMappings; + break; + default: + throw new Error("Unknown order of iteration."); + } + var s2 = this.sourceRoot; + o2.map(function(t3) { + var e3 = t3.source === null ? null : this._sources.at(t3.source); + return { source: e3 = n.computeSourceURL(s2, e3, this._sourceMapURL), generatedLine: t3.generatedLine, generatedColumn: t3.generatedColumn, originalLine: t3.originalLine, originalColumn: t3.originalColumn, name: t3.name === null ? null : this._names.at(t3.name) }; + }, this).forEach(t2, i2); + }, u.prototype.allGeneratedPositionsFor = function(t2) { + var e2 = n.getArg(t2, "line"), r2 = { source: n.getArg(t2, "source"), originalLine: e2, originalColumn: n.getArg(t2, "column", 0) }; + if (r2.source = this._findSourceIndex(r2.source), r2.source < 0) + return []; + var i2 = [], s2 = this._findMapping(r2, this._originalMappings, "originalLine", "originalColumn", n.compareByOriginalPositions, o.LEAST_UPPER_BOUND); + if (s2 >= 0) { + var a2 = this._originalMappings[s2]; + if (t2.column === void 0) + for (var u2 = a2.originalLine; a2 && a2.originalLine === u2; ) + i2.push({ line: n.getArg(a2, "generatedLine", null), column: n.getArg(a2, "generatedColumn", null), lastColumn: n.getArg(a2, "lastGeneratedColumn", null) }), a2 = this._originalMappings[++s2]; + else + for (var l2 = a2.originalColumn; a2 && a2.originalLine === e2 && a2.originalColumn == l2; ) + i2.push({ line: n.getArg(a2, "generatedLine", null), column: n.getArg(a2, "generatedColumn", null), lastColumn: n.getArg(a2, "lastGeneratedColumn", null) }), a2 = this._originalMappings[++s2]; + } + return i2; + }, e.SourceMapConsumer = u, l.prototype = Object.create(u.prototype), l.prototype.consumer = u, l.prototype._findSourceIndex = function(t2) { + var e2, r2 = t2; + if (this.sourceRoot != null && (r2 = n.relative(this.sourceRoot, r2)), this._sources.has(r2)) + return this._sources.indexOf(r2); + for (e2 = 0; e2 < this._absoluteSources.length; ++e2) + if (this._absoluteSources[e2] == t2) + return e2; + return -1; + }, l.fromSourceMap = function(t2, e2) { + var r2 = Object.create(l.prototype), o2 = r2._names = i.fromArray(t2._names.toArray(), true), s2 = r2._sources = i.fromArray(t2._sources.toArray(), true); + r2.sourceRoot = t2._sourceRoot, r2.sourcesContent = t2._generateSourcesContent(r2._sources.toArray(), r2.sourceRoot), r2.file = t2._file, r2._sourceMapURL = e2, r2._absoluteSources = r2._sources.toArray().map(function(t3) { + return n.computeSourceURL(r2.sourceRoot, t3, e2); + }); + for (var u2 = t2._mappings.toArray().slice(), f2 = r2.__generatedMappings = [], p = r2.__originalMappings = [], h = 0, d = u2.length; h < d; h++) { + var g = u2[h], y = new c(); + y.generatedLine = g.generatedLine, y.generatedColumn = g.generatedColumn, g.source && (y.source = s2.indexOf(g.source), y.originalLine = g.originalLine, y.originalColumn = g.originalColumn, g.name && (y.name = o2.indexOf(g.name)), p.push(y)), f2.push(y); + } + return a(r2.__originalMappings, n.compareByOriginalPositions), r2; + }, l.prototype._version = 3, Object.defineProperty(l.prototype, "sources", { get: function() { + return this._absoluteSources.slice(); + } }), l.prototype._parseMappings = function(t2, e2) { + for (var r2, o2, i2, u2, l2, f2 = 1, p = 0, h = 0, d = 0, g = 0, y = 0, m = t2.length, v = 0, w = {}, b = {}, _ = [], A = []; v < m; ) + if (t2.charAt(v) === ";") + f2++, v++, p = 0; + else if (t2.charAt(v) === ",") + v++; + else { + for ((r2 = new c()).generatedLine = f2, u2 = v; u2 < m && !this._charIsMappingSeparator(t2, u2); u2++) + ; + if (i2 = w[o2 = t2.slice(v, u2)]) + v += o2.length; + else { + for (i2 = []; v < u2; ) + s.decode(t2, v, b), l2 = b.value, v = b.rest, i2.push(l2); + if (i2.length === 2) + throw new Error("Found a source, but no line and column"); + if (i2.length === 3) + throw new Error("Found a source and line, but no column"); + w[o2] = i2; + } + r2.generatedColumn = p + i2[0], p = r2.generatedColumn, i2.length > 1 && (r2.source = g + i2[1], g += i2[1], r2.originalLine = h + i2[2], h = r2.originalLine, r2.originalLine += 1, r2.originalColumn = d + i2[3], d = r2.originalColumn, i2.length > 4 && (r2.name = y + i2[4], y += i2[4])), A.push(r2), typeof r2.originalLine == "number" && _.push(r2); + } + a(A, n.compareByGeneratedPositionsDeflated), this.__generatedMappings = A, a(_, n.compareByOriginalPositions), this.__originalMappings = _; + }, l.prototype._findMapping = function(t2, e2, r2, n2, i2, s2) { + if (t2[r2] <= 0) + throw new TypeError("Line must be greater than or equal to 1, got " + t2[r2]); + if (t2[n2] < 0) + throw new TypeError("Column must be greater than or equal to 0, got " + t2[n2]); + return o.search(t2, e2, i2, s2); + }, l.prototype.computeColumnSpans = function() { + for (var t2 = 0; t2 < this._generatedMappings.length; ++t2) { + var e2 = this._generatedMappings[t2]; + if (t2 + 1 < this._generatedMappings.length) { + var r2 = this._generatedMappings[t2 + 1]; + if (e2.generatedLine === r2.generatedLine) { + e2.lastGeneratedColumn = r2.generatedColumn - 1; + continue; + } + } + e2.lastGeneratedColumn = 1 / 0; + } + }, l.prototype.originalPositionFor = function(t2) { + var e2 = { generatedLine: n.getArg(t2, "line"), generatedColumn: n.getArg(t2, "column") }, r2 = this._findMapping(e2, this._generatedMappings, "generatedLine", "generatedColumn", n.compareByGeneratedPositionsDeflated, n.getArg(t2, "bias", u.GREATEST_LOWER_BOUND)); + if (r2 >= 0) { + var o2 = this._generatedMappings[r2]; + if (o2.generatedLine === e2.generatedLine) { + var i2 = n.getArg(o2, "source", null); + i2 !== null && (i2 = this._sources.at(i2), i2 = n.computeSourceURL(this.sourceRoot, i2, this._sourceMapURL)); + var s2 = n.getArg(o2, "name", null); + return s2 !== null && (s2 = this._names.at(s2)), { source: i2, line: n.getArg(o2, "originalLine", null), column: n.getArg(o2, "originalColumn", null), name: s2 }; + } + } + return { source: null, line: null, column: null, name: null }; + }, l.prototype.hasContentsOfAllSources = function() { + return !!this.sourcesContent && (this.sourcesContent.length >= this._sources.size() && !this.sourcesContent.some(function(t2) { + return t2 == null; + })); + }, l.prototype.sourceContentFor = function(t2, e2) { + if (!this.sourcesContent) + return null; + var r2 = this._findSourceIndex(t2); + if (r2 >= 0) + return this.sourcesContent[r2]; + var o2, i2 = t2; + if (this.sourceRoot != null && (i2 = n.relative(this.sourceRoot, i2)), this.sourceRoot != null && (o2 = n.urlParse(this.sourceRoot))) { + var s2 = i2.replace(/^file:\/\//, ""); + if (o2.scheme == "file" && this._sources.has(s2)) + return this.sourcesContent[this._sources.indexOf(s2)]; + if ((!o2.path || o2.path == "/") && this._sources.has("/" + i2)) + return this.sourcesContent[this._sources.indexOf("/" + i2)]; + } + if (e2) + return null; + throw new Error('"' + i2 + '" is not in the SourceMap.'); + }, l.prototype.generatedPositionFor = function(t2) { + var e2 = n.getArg(t2, "source"); + if ((e2 = this._findSourceIndex(e2)) < 0) + return { line: null, column: null, lastColumn: null }; + var r2 = { source: e2, originalLine: n.getArg(t2, "line"), originalColumn: n.getArg(t2, "column") }, o2 = this._findMapping(r2, this._originalMappings, "originalLine", "originalColumn", n.compareByOriginalPositions, n.getArg(t2, "bias", u.GREATEST_LOWER_BOUND)); + if (o2 >= 0) { + var i2 = this._originalMappings[o2]; + if (i2.source === r2.source) + return { line: n.getArg(i2, "generatedLine", null), column: n.getArg(i2, "generatedColumn", null), lastColumn: n.getArg(i2, "lastGeneratedColumn", null) }; + } + return { line: null, column: null, lastColumn: null }; + }, e.BasicSourceMapConsumer = l, f.prototype = Object.create(u.prototype), f.prototype.constructor = u, f.prototype._version = 3, Object.defineProperty(f.prototype, "sources", { get: function() { + for (var t2 = [], e2 = 0; e2 < this._sections.length; e2++) + for (var r2 = 0; r2 < this._sections[e2].consumer.sources.length; r2++) + t2.push(this._sections[e2].consumer.sources[r2]); + return t2; + } }), f.prototype.originalPositionFor = function(t2) { + var e2 = { generatedLine: n.getArg(t2, "line"), generatedColumn: n.getArg(t2, "column") }, r2 = o.search(e2, this._sections, function(t3, e3) { + var r3 = t3.generatedLine - e3.generatedOffset.generatedLine; + return r3 || t3.generatedColumn - e3.generatedOffset.generatedColumn; + }), i2 = this._sections[r2]; + return i2 ? i2.consumer.originalPositionFor({ line: e2.generatedLine - (i2.generatedOffset.generatedLine - 1), column: e2.generatedColumn - (i2.generatedOffset.generatedLine === e2.generatedLine ? i2.generatedOffset.generatedColumn - 1 : 0), bias: t2.bias }) : { source: null, line: null, column: null, name: null }; + }, f.prototype.hasContentsOfAllSources = function() { + return this._sections.every(function(t2) { + return t2.consumer.hasContentsOfAllSources(); + }); + }, f.prototype.sourceContentFor = function(t2, e2) { + for (var r2 = 0; r2 < this._sections.length; r2++) { + var n2 = this._sections[r2].consumer.sourceContentFor(t2, true); + if (n2) + return n2; + } + if (e2) + return null; + throw new Error('"' + t2 + '" is not in the SourceMap.'); + }, f.prototype.generatedPositionFor = function(t2) { + for (var e2 = 0; e2 < this._sections.length; e2++) { + var r2 = this._sections[e2]; + if (r2.consumer._findSourceIndex(n.getArg(t2, "source")) !== -1) { + var o2 = r2.consumer.generatedPositionFor(t2); + if (o2) + return { line: o2.line + (r2.generatedOffset.generatedLine - 1), column: o2.column + (r2.generatedOffset.generatedLine === o2.line ? r2.generatedOffset.generatedColumn - 1 : 0) }; + } + } + return { line: null, column: null }; + }, f.prototype._parseMappings = function(t2, e2) { + this.__generatedMappings = [], this.__originalMappings = []; + for (var r2 = 0; r2 < this._sections.length; r2++) + for (var o2 = this._sections[r2], i2 = o2.consumer._generatedMappings, s2 = 0; s2 < i2.length; s2++) { + var u2 = i2[s2], l2 = o2.consumer._sources.at(u2.source); + l2 = n.computeSourceURL(o2.consumer.sourceRoot, l2, this._sourceMapURL), this._sources.add(l2), l2 = this._sources.indexOf(l2); + var c2 = null; + u2.name && (c2 = o2.consumer._names.at(u2.name), this._names.add(c2), c2 = this._names.indexOf(c2)); + var f2 = { source: l2, generatedLine: u2.generatedLine + (o2.generatedOffset.generatedLine - 1), generatedColumn: u2.generatedColumn + (o2.generatedOffset.generatedLine === u2.generatedLine ? o2.generatedOffset.generatedColumn - 1 : 0), originalLine: u2.originalLine, originalColumn: u2.originalColumn, name: c2 }; + this.__generatedMappings.push(f2), typeof f2.originalLine == "number" && this.__originalMappings.push(f2); + } + a(this.__generatedMappings, n.compareByGeneratedPositionsDeflated), a(this.__originalMappings, n.compareByOriginalPositions); + }, e.IndexedSourceMapConsumer = f; + }, function(t, e) { + e.GREATEST_LOWER_BOUND = 1, e.LEAST_UPPER_BOUND = 2, e.search = function(t2, r, n, o) { + if (r.length === 0) + return -1; + var i = function t3(r2, n2, o2, i2, s, a) { + var u = Math.floor((n2 - r2) / 2) + r2, l = s(o2, i2[u], true); + return l === 0 ? u : l > 0 ? n2 - u > 1 ? t3(u, n2, o2, i2, s, a) : a == e.LEAST_UPPER_BOUND ? n2 < i2.length ? n2 : -1 : u : u - r2 > 1 ? t3(r2, u, o2, i2, s, a) : a == e.LEAST_UPPER_BOUND ? u : r2 < 0 ? -1 : r2; + }(-1, r.length, t2, r, n, o || e.GREATEST_LOWER_BOUND); + if (i < 0) + return -1; + for (; i - 1 >= 0 && n(r[i], r[i - 1], true) === 0; ) + --i; + return i; + }; + }, function(t, e) { + function r(t2, e2, r2) { + var n2 = t2[e2]; + t2[e2] = t2[r2], t2[r2] = n2; + } + function n(t2, e2, o, i) { + if (o < i) { + var s = o - 1; + r(t2, function(t3, e3) { + return Math.round(t3 + Math.random() * (e3 - t3)); + }(o, i), i); + for (var a = t2[i], u = o; u < i; u++) + e2(t2[u], a) <= 0 && r(t2, s += 1, u); + r(t2, s + 1, u); + var l = s + 1; + n(t2, e2, o, l - 1), n(t2, e2, l + 1, i); + } + } + e.quickSort = function(t2, e2) { + n(t2, e2, 0, t2.length - 1); + }; + }, function(t, e, r) { + var n = r(16).SourceMapGenerator, o = r(0), i = /(\r?\n)/, s = "$$$isSourceNode$$$"; + function a(t2, e2, r2, n2, o2) { + this.children = [], this.sourceContents = {}, this.line = t2 == null ? null : t2, this.column = e2 == null ? null : e2, this.source = r2 == null ? null : r2, this.name = o2 == null ? null : o2, this[s] = true, n2 != null && this.add(n2); + } + a.fromStringWithSourceMap = function(t2, e2, r2) { + var n2 = new a(), s2 = t2.split(i), u = 0, l = function() { + return t3() + (t3() || ""); + function t3() { + return u < s2.length ? s2[u++] : void 0; + } + }, c = 1, f = 0, p = null; + return e2.eachMapping(function(t3) { + if (p !== null) { + if (!(c < t3.generatedLine)) { + var e3 = (r3 = s2[u] || "").substr(0, t3.generatedColumn - f); + return s2[u] = r3.substr(t3.generatedColumn - f), f = t3.generatedColumn, h(p, e3), void (p = t3); + } + h(p, l()), c++, f = 0; + } + for (; c < t3.generatedLine; ) + n2.add(l()), c++; + if (f < t3.generatedColumn) { + var r3 = s2[u] || ""; + n2.add(r3.substr(0, t3.generatedColumn)), s2[u] = r3.substr(t3.generatedColumn), f = t3.generatedColumn; + } + p = t3; + }, this), u < s2.length && (p && h(p, l()), n2.add(s2.splice(u).join(""))), e2.sources.forEach(function(t3) { + var i2 = e2.sourceContentFor(t3); + i2 != null && (r2 != null && (t3 = o.join(r2, t3)), n2.setSourceContent(t3, i2)); + }), n2; + function h(t3, e3) { + if (t3 === null || t3.source === void 0) + n2.add(e3); + else { + var i2 = r2 ? o.join(r2, t3.source) : t3.source; + n2.add(new a(t3.originalLine, t3.originalColumn, i2, e3, t3.name)); + } + } + }, a.prototype.add = function(t2) { + if (Array.isArray(t2)) + t2.forEach(function(t3) { + this.add(t3); + }, this); + else { + if (!t2[s] && typeof t2 != "string") + throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + t2); + t2 && this.children.push(t2); + } + return this; + }, a.prototype.prepend = function(t2) { + if (Array.isArray(t2)) + for (var e2 = t2.length - 1; e2 >= 0; e2--) + this.prepend(t2[e2]); + else { + if (!t2[s] && typeof t2 != "string") + throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + t2); + this.children.unshift(t2); + } + return this; + }, a.prototype.walk = function(t2) { + for (var e2, r2 = 0, n2 = this.children.length; r2 < n2; r2++) + (e2 = this.children[r2])[s] ? e2.walk(t2) : e2 !== "" && t2(e2, { source: this.source, line: this.line, column: this.column, name: this.name }); + }, a.prototype.join = function(t2) { + var e2, r2, n2 = this.children.length; + if (n2 > 0) { + for (e2 = [], r2 = 0; r2 < n2 - 1; r2++) + e2.push(this.children[r2]), e2.push(t2); + e2.push(this.children[r2]), this.children = e2; + } + return this; + }, a.prototype.replaceRight = function(t2, e2) { + var r2 = this.children[this.children.length - 1]; + return r2[s] ? r2.replaceRight(t2, e2) : typeof r2 == "string" ? this.children[this.children.length - 1] = r2.replace(t2, e2) : this.children.push("".replace(t2, e2)), this; + }, a.prototype.setSourceContent = function(t2, e2) { + this.sourceContents[o.toSetString(t2)] = e2; + }, a.prototype.walkSourceContents = function(t2) { + for (var e2 = 0, r2 = this.children.length; e2 < r2; e2++) + this.children[e2][s] && this.children[e2].walkSourceContents(t2); + var n2 = Object.keys(this.sourceContents); + for (e2 = 0, r2 = n2.length; e2 < r2; e2++) + t2(o.fromSetString(n2[e2]), this.sourceContents[n2[e2]]); + }, a.prototype.toString = function() { + var t2 = ""; + return this.walk(function(e2) { + t2 += e2; + }), t2; + }, a.prototype.toStringWithSourceMap = function(t2) { + var e2 = { code: "", line: 1, column: 0 }, r2 = new n(t2), o2 = false, i2 = null, s2 = null, a2 = null, u = null; + return this.walk(function(t3, n2) { + e2.code += t3, n2.source !== null && n2.line !== null && n2.column !== null ? (i2 === n2.source && s2 === n2.line && a2 === n2.column && u === n2.name || r2.addMapping({ source: n2.source, original: { line: n2.line, column: n2.column }, generated: { line: e2.line, column: e2.column }, name: n2.name }), i2 = n2.source, s2 = n2.line, a2 = n2.column, u = n2.name, o2 = true) : o2 && (r2.addMapping({ generated: { line: e2.line, column: e2.column } }), i2 = null, o2 = false); + for (var l = 0, c = t3.length; l < c; l++) + t3.charCodeAt(l) === 10 ? (e2.line++, e2.column = 0, l + 1 === c ? (i2 = null, o2 = false) : o2 && r2.addMapping({ source: n2.source, original: { line: n2.line, column: n2.column }, generated: { line: e2.line, column: e2.column }, name: n2.name })) : e2.column++; + }), this.walkSourceContents(function(t3, e3) { + r2.setSourceContent(t3, e3); + }), { code: e2.code, map: r2 }; + }, e.SourceNode = a; + }, function(t, e) { + var r, n, o = t.exports = {}; + function i() { + throw new Error("setTimeout has not been defined"); + } + function s() { + throw new Error("clearTimeout has not been defined"); + } + function a(t2) { + if (r === setTimeout) + return setTimeout(t2, 0); + if ((r === i || !r) && setTimeout) + return r = setTimeout, setTimeout(t2, 0); + try { + return r(t2, 0); + } catch (e2) { + try { + return r.call(null, t2, 0); + } catch (e3) { + return r.call(this, t2, 0); + } + } + } + !function() { + try { + r = typeof setTimeout == "function" ? setTimeout : i; + } catch (t2) { + r = i; + } + try { + n = typeof clearTimeout == "function" ? clearTimeout : s; + } catch (t2) { + n = s; + } + }(); + var u, l = [], c = false, f = -1; + function p() { + c && u && (c = false, u.length ? l = u.concat(l) : f = -1, l.length && h()); + } + function h() { + if (!c) { + var t2 = a(p); + c = true; + for (var e2 = l.length; e2; ) { + for (u = l, l = []; ++f < e2; ) + u && u[f].run(); + f = -1, e2 = l.length; + } + u = null, c = false, function(t3) { + if (n === clearTimeout) + return clearTimeout(t3); + if ((n === s || !n) && clearTimeout) + return n = clearTimeout, clearTimeout(t3); + try { + n(t3); + } catch (e3) { + try { + return n.call(null, t3); + } catch (e4) { + return n.call(this, t3); + } + } + }(t2); + } + } + function d(t2, e2) { + this.fun = t2, this.array = e2; + } + function g() { + } + o.nextTick = function(t2) { + var e2 = new Array(arguments.length - 1); + if (arguments.length > 1) + for (var r2 = 1; r2 < arguments.length; r2++) + e2[r2 - 1] = arguments[r2]; + l.push(new d(t2, e2)), l.length !== 1 || c || a(h); + }, d.prototype.run = function() { + this.fun.apply(null, this.array); + }, o.title = "browser", o.browser = true, o.env = {}, o.argv = [], o.version = "", o.versions = {}, o.on = g, o.addListener = g, o.once = g, o.off = g, o.removeListener = g, o.removeAllListeners = g, o.emit = g, o.prependListener = g, o.prependOnceListener = g, o.listeners = function(t2) { + return []; + }, o.binding = function(t2) { + throw new Error("process.binding is not supported"); + }, o.cwd = function() { + return "/"; + }, o.chdir = function(t2) { + throw new Error("process.chdir is not supported"); + }, o.umask = function() { + return 0; + }; + }, function(t, e, r) { + "use strict"; + e.__esModule = true, e.default = function(t2) { + if (n[t2]) + return; + n[t2] = true, typeof console != "undefined" && console.warn && console.warn(t2); + }; + var n = {}; + t.exports = e.default; + }, function(t, e, r) { + "use strict"; + e.__esModule = true; + var n = function() { + function t2(t3, e2) { + for (var r2 = 0; r2 < e2.length; r2++) { + var n2 = e2[r2]; + n2.enumerable = n2.enumerable || false, n2.configurable = true, "value" in n2 && (n2.writable = true), Object.defineProperty(t3, n2.key, n2); + } + } + return function(e2, r2, n2) { + return r2 && t2(e2.prototype, r2), n2 && t2(e2, n2), e2; + }; + }(), o = function(t2) { + return t2 && t2.__esModule ? t2 : { default: t2 }; + }(r(41)); + var i = function() { + function t2(e2, r2, n2) { + !function(t3, e3) { + if (!(t3 instanceof e3)) + throw new TypeError("Cannot call a class as a function"); + }(this, t2), this.processor = e2, this.messages = [], this.root = r2, this.opts = n2, this.css = void 0, this.map = void 0; + } + return t2.prototype.toString = function() { + return this.css; + }, t2.prototype.warn = function(t3) { + var e2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + e2.plugin || this.lastPlugin && this.lastPlugin.postcssPlugin && (e2.plugin = this.lastPlugin.postcssPlugin); + var r2 = new o.default(t3, e2); + return this.messages.push(r2), r2; + }, t2.prototype.warnings = function() { + return this.messages.filter(function(t3) { + return t3.type === "warning"; + }); + }, n(t2, [{ key: "content", get: function() { + return this.css; + } }]), t2; + }(); + e.default = i, t.exports = e.default; + }, function(t, e, r) { + "use strict"; + e.__esModule = true; + var n = function() { + function t2(e2) { + var r2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + if (function(t3, e3) { + if (!(t3 instanceof e3)) + throw new TypeError("Cannot call a class as a function"); + }(this, t2), this.type = "warning", this.text = e2, r2.node && r2.node.source) { + var n2 = r2.node.positionBy(r2); + this.line = n2.line, this.column = n2.column; + } + for (var o in r2) + this[o] = r2[o]; + } + return t2.prototype.toString = function() { + return this.node ? this.node.error(this.text, { plugin: this.plugin, index: this.index, word: this.word }).message : this.plugin ? this.plugin + ": " + this.text : this.text; + }, t2; + }(); + e.default = n, t.exports = e.default; + }, function(t, e, r) { + "use strict"; + e.__esModule = true; + var n = l(r(1)), o = l(r(43)), i = l(r(6)), s = l(r(7)), a = l(r(20)), u = l(r(9)); + function l(t2) { + return t2 && t2.__esModule ? t2 : { default: t2 }; + } + var c = function() { + function t2(e2) { + !function(t3, e3) { + if (!(t3 instanceof e3)) + throw new TypeError("Cannot call a class as a function"); + }(this, t2), this.input = e2, this.root = new a.default(), this.current = this.root, this.spaces = "", this.semicolon = false, this.createTokenizer(), this.root.source = { input: e2, start: { line: 1, column: 1 } }; + } + return t2.prototype.createTokenizer = function() { + this.tokenizer = (0, o.default)(this.input); + }, t2.prototype.parse = function() { + for (var t3 = void 0; !this.tokenizer.endOfFile(); ) + switch ((t3 = this.tokenizer.nextToken())[0]) { + case "space": + this.spaces += t3[1]; + break; + case ";": + this.freeSemicolon(t3); + break; + case "}": + this.end(t3); + break; + case "comment": + this.comment(t3); + break; + case "at-word": + this.atrule(t3); + break; + case "{": + this.emptyRule(t3); + break; + default: + this.other(t3); + } + this.endFile(); + }, t2.prototype.comment = function(t3) { + var e2 = new i.default(); + this.init(e2, t3[2], t3[3]), e2.source.end = { line: t3[4], column: t3[5] }; + var r2 = t3[1].slice(2, -2); + if (/^\s*$/.test(r2)) + e2.text = "", e2.raws.left = r2, e2.raws.right = ""; + else { + var n2 = r2.match(/^(\s*)([^]*[^\s])(\s*)$/); + e2.text = n2[2], e2.raws.left = n2[1], e2.raws.right = n2[3]; + } + }, t2.prototype.emptyRule = function(t3) { + var e2 = new u.default(); + this.init(e2, t3[2], t3[3]), e2.selector = "", e2.raws.between = "", this.current = e2; + }, t2.prototype.other = function(t3) { + for (var e2 = false, r2 = null, n2 = false, o2 = null, i2 = [], s2 = [], a2 = t3; a2; ) { + if (r2 = a2[0], s2.push(a2), r2 === "(" || r2 === "[") + o2 || (o2 = a2), i2.push(r2 === "(" ? ")" : "]"); + else if (i2.length === 0) { + if (r2 === ";") { + if (n2) + return void this.decl(s2); + break; + } + if (r2 === "{") + return void this.rule(s2); + if (r2 === "}") { + this.tokenizer.back(s2.pop()), e2 = true; + break; + } + r2 === ":" && (n2 = true); + } else + r2 === i2[i2.length - 1] && (i2.pop(), i2.length === 0 && (o2 = null)); + a2 = this.tokenizer.nextToken(); + } + if (this.tokenizer.endOfFile() && (e2 = true), i2.length > 0 && this.unclosedBracket(o2), e2 && n2) { + for (; s2.length && ((a2 = s2[s2.length - 1][0]) === "space" || a2 === "comment"); ) + this.tokenizer.back(s2.pop()); + this.decl(s2); + } else + this.unknownWord(s2); + }, t2.prototype.rule = function(t3) { + t3.pop(); + var e2 = new u.default(); + this.init(e2, t3[0][2], t3[0][3]), e2.raws.between = this.spacesAndCommentsFromEnd(t3), this.raw(e2, "selector", t3), this.current = e2; + }, t2.prototype.decl = function(t3) { + var e2 = new n.default(); + this.init(e2); + var r2 = t3[t3.length - 1]; + for (r2[0] === ";" && (this.semicolon = true, t3.pop()), r2[4] ? e2.source.end = { line: r2[4], column: r2[5] } : e2.source.end = { line: r2[2], column: r2[3] }; t3[0][0] !== "word"; ) + t3.length === 1 && this.unknownWord(t3), e2.raws.before += t3.shift()[1]; + for (e2.source.start = { line: t3[0][2], column: t3[0][3] }, e2.prop = ""; t3.length; ) { + var o2 = t3[0][0]; + if (o2 === ":" || o2 === "space" || o2 === "comment") + break; + e2.prop += t3.shift()[1]; + } + e2.raws.between = ""; + for (var i2 = void 0; t3.length; ) { + if ((i2 = t3.shift())[0] === ":") { + e2.raws.between += i2[1]; + break; + } + e2.raws.between += i2[1]; + } + e2.prop[0] !== "_" && e2.prop[0] !== "*" || (e2.raws.before += e2.prop[0], e2.prop = e2.prop.slice(1)), e2.raws.between += this.spacesAndCommentsFromStart(t3), this.precheckMissedSemicolon(t3); + for (var s2 = t3.length - 1; s2 > 0; s2--) { + if ((i2 = t3[s2])[1].toLowerCase() === "!important") { + e2.important = true; + var a2 = this.stringFrom(t3, s2); + (a2 = this.spacesFromEnd(t3) + a2) !== " !important" && (e2.raws.important = a2); + break; + } + if (i2[1].toLowerCase() === "important") { + for (var u2 = t3.slice(0), l2 = "", c2 = s2; c2 > 0; c2--) { + var f = u2[c2][0]; + if (l2.trim().indexOf("!") === 0 && f !== "space") + break; + l2 = u2.pop()[1] + l2; + } + l2.trim().indexOf("!") === 0 && (e2.important = true, e2.raws.important = l2, t3 = u2); + } + if (i2[0] !== "space" && i2[0] !== "comment") + break; + } + this.raw(e2, "value", t3), e2.value.indexOf(":") !== -1 && this.checkMissedSemicolon(t3); + }, t2.prototype.atrule = function(t3) { + var e2 = new s.default(); + e2.name = t3[1].slice(1), e2.name === "" && this.unnamedAtrule(e2, t3), this.init(e2, t3[2], t3[3]); + for (var r2 = void 0, n2 = void 0, o2 = false, i2 = false, a2 = []; !this.tokenizer.endOfFile(); ) { + if ((t3 = this.tokenizer.nextToken())[0] === ";") { + e2.source.end = { line: t3[2], column: t3[3] }, this.semicolon = true; + break; + } + if (t3[0] === "{") { + i2 = true; + break; + } + if (t3[0] === "}") { + if (a2.length > 0) { + for (r2 = a2[n2 = a2.length - 1]; r2 && r2[0] === "space"; ) + r2 = a2[--n2]; + r2 && (e2.source.end = { line: r2[4], column: r2[5] }); + } + this.end(t3); + break; + } + if (a2.push(t3), this.tokenizer.endOfFile()) { + o2 = true; + break; + } + } + e2.raws.between = this.spacesAndCommentsFromEnd(a2), a2.length ? (e2.raws.afterName = this.spacesAndCommentsFromStart(a2), this.raw(e2, "params", a2), o2 && (t3 = a2[a2.length - 1], e2.source.end = { line: t3[4], column: t3[5] }, this.spaces = e2.raws.between, e2.raws.between = "")) : (e2.raws.afterName = "", e2.params = ""), i2 && (e2.nodes = [], this.current = e2); + }, t2.prototype.end = function(t3) { + this.current.nodes && this.current.nodes.length && (this.current.raws.semicolon = this.semicolon), this.semicolon = false, this.current.raws.after = (this.current.raws.after || "") + this.spaces, this.spaces = "", this.current.parent ? (this.current.source.end = { line: t3[2], column: t3[3] }, this.current = this.current.parent) : this.unexpectedClose(t3); + }, t2.prototype.endFile = function() { + this.current.parent && this.unclosedBlock(), this.current.nodes && this.current.nodes.length && (this.current.raws.semicolon = this.semicolon), this.current.raws.after = (this.current.raws.after || "") + this.spaces; + }, t2.prototype.freeSemicolon = function(t3) { + if (this.spaces += t3[1], this.current.nodes) { + var e2 = this.current.nodes[this.current.nodes.length - 1]; + e2 && e2.type === "rule" && !e2.raws.ownSemicolon && (e2.raws.ownSemicolon = this.spaces, this.spaces = ""); + } + }, t2.prototype.init = function(t3, e2, r2) { + this.current.push(t3), t3.source = { start: { line: e2, column: r2 }, input: this.input }, t3.raws.before = this.spaces, this.spaces = "", t3.type !== "comment" && (this.semicolon = false); + }, t2.prototype.raw = function(t3, e2, r2) { + for (var n2 = void 0, o2 = void 0, i2 = r2.length, s2 = "", a2 = true, u2 = void 0, l2 = void 0, c2 = /^([.|#])?([\w])+/i, f = 0; f < i2; f += 1) + (o2 = (n2 = r2[f])[0]) !== "comment" || t3.type !== "rule" ? o2 === "comment" || o2 === "space" && f === i2 - 1 ? a2 = false : s2 += n2[1] : (l2 = r2[f - 1], u2 = r2[f + 1], l2[0] !== "space" && u2[0] !== "space" && c2.test(l2[1]) && c2.test(u2[1]) ? s2 += n2[1] : a2 = false); + if (!a2) { + var p = r2.reduce(function(t4, e3) { + return t4 + e3[1]; + }, ""); + t3.raws[e2] = { value: s2, raw: p }; + } + t3[e2] = s2; + }, t2.prototype.spacesAndCommentsFromEnd = function(t3) { + for (var e2 = void 0, r2 = ""; t3.length && ((e2 = t3[t3.length - 1][0]) === "space" || e2 === "comment"); ) + r2 = t3.pop()[1] + r2; + return r2; + }, t2.prototype.spacesAndCommentsFromStart = function(t3) { + for (var e2 = void 0, r2 = ""; t3.length && ((e2 = t3[0][0]) === "space" || e2 === "comment"); ) + r2 += t3.shift()[1]; + return r2; + }, t2.prototype.spacesFromEnd = function(t3) { + for (var e2 = ""; t3.length && t3[t3.length - 1][0] === "space"; ) + e2 = t3.pop()[1] + e2; + return e2; + }, t2.prototype.stringFrom = function(t3, e2) { + for (var r2 = "", n2 = e2; n2 < t3.length; n2++) + r2 += t3[n2][1]; + return t3.splice(e2, t3.length - e2), r2; + }, t2.prototype.colon = function(t3) { + for (var e2 = 0, r2 = void 0, n2 = void 0, o2 = void 0, i2 = 0; i2 < t3.length; i2++) { + if ((n2 = (r2 = t3[i2])[0]) === "(") + e2 += 1; + else if (n2 === ")") + e2 -= 1; + else if (e2 === 0 && n2 === ":") { + if (o2) { + if (o2[0] === "word" && o2[1] === "progid") + continue; + return i2; + } + this.doubleColon(r2); + } + o2 = r2; + } + return false; + }, t2.prototype.unclosedBracket = function(t3) { + throw this.input.error("Unclosed bracket", t3[2], t3[3]); + }, t2.prototype.unknownWord = function(t3) { + throw this.input.error("Unknown word", t3[0][2], t3[0][3]); + }, t2.prototype.unexpectedClose = function(t3) { + throw this.input.error("Unexpected }", t3[2], t3[3]); + }, t2.prototype.unclosedBlock = function() { + var t3 = this.current.source.start; + throw this.input.error("Unclosed block", t3.line, t3.column); + }, t2.prototype.doubleColon = function(t3) { + throw this.input.error("Double colon", t3[2], t3[3]); + }, t2.prototype.unnamedAtrule = function(t3, e2) { + throw this.input.error("At-rule without name", e2[2], e2[3]); + }, t2.prototype.precheckMissedSemicolon = function() { + }, t2.prototype.checkMissedSemicolon = function(t3) { + var e2 = this.colon(t3); + if (e2 !== false) { + for (var r2 = 0, n2 = void 0, o2 = e2 - 1; o2 >= 0 && ((n2 = t3[o2])[0] === "space" || (r2 += 1) !== 2); o2--) + ; + throw this.input.error("Missed semicolon", n2[2], n2[3]); + } + }, t2; + }(); + e.default = c, t.exports = e.default; + }, function(t, e, r) { + "use strict"; + e.__esModule = true, e.default = function(t2) { + var e2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r2 = t2.css.valueOf(), O = e2.ignoreErrors, M = void 0, x = void 0, R = void 0, k = void 0, P = void 0, L = void 0, T = void 0, B = void 0, j = void 0, U = void 0, I = void 0, D = void 0, N = void 0, F = void 0, Y = r2.length, z = -1, G = 1, $ = 0, V = [], W = []; + function J(e3) { + throw t2.error("Unclosed " + e3, G, $ - z); + } + return { back: function(t3) { + W.push(t3); + }, nextToken: function() { + if (W.length) + return W.pop(); + if ($ >= Y) + return; + ((M = r2.charCodeAt($)) === a || M === l || M === f && r2.charCodeAt($ + 1) !== a) && (z = $, G += 1); + switch (M) { + case a: + case u: + case c: + case f: + case l: + x = $; + do { + x += 1, (M = r2.charCodeAt(x)) === a && (z = x, G += 1); + } while (M === u || M === a || M === c || M === f || M === l); + F = ["space", r2.slice($, x)], $ = x - 1; + break; + case p: + F = ["[", "[", G, $ - z]; + break; + case h: + F = ["]", "]", G, $ - z]; + break; + case y: + F = ["{", "{", G, $ - z]; + break; + case m: + F = ["}", "}", G, $ - z]; + break; + case b: + F = [":", ":", G, $ - z]; + break; + case v: + F = [";", ";", G, $ - z]; + break; + case d: + if (D = V.length ? V.pop()[1] : "", N = r2.charCodeAt($ + 1), D === "url" && N !== n && N !== o && N !== u && N !== a && N !== c && N !== l && N !== f) { + x = $; + do { + if (U = false, (x = r2.indexOf(")", x + 1)) === -1) { + if (O) { + x = $; + break; + } + J("bracket"); + } + for (I = x; r2.charCodeAt(I - 1) === i; ) + I -= 1, U = !U; + } while (U); + F = ["brackets", r2.slice($, x + 1), G, $ - z, G, x - z], $ = x; + } else + x = r2.indexOf(")", $ + 1), L = r2.slice($, x + 1), x === -1 || C.test(L) ? F = ["(", "(", G, $ - z] : (F = ["brackets", L, G, $ - z, G, x - z], $ = x); + break; + case g: + F = [")", ")", G, $ - z]; + break; + case n: + case o: + R = M === n ? "'" : '"', x = $; + do { + if (U = false, (x = r2.indexOf(R, x + 1)) === -1) { + if (O) { + x = $ + 1; + break; + } + J("string"); + } + for (I = x; r2.charCodeAt(I - 1) === i; ) + I -= 1, U = !U; + } while (U); + L = r2.slice($, x + 1), k = L.split("\n"), (P = k.length - 1) > 0 ? (B = G + P, j = x - k[P].length) : (B = G, j = z), F = ["string", r2.slice($, x + 1), G, $ - z, B, x - j], z = j, G = B, $ = x; + break; + case _: + A.lastIndex = $ + 1, A.test(r2), x = A.lastIndex === 0 ? r2.length - 1 : A.lastIndex - 2, F = ["at-word", r2.slice($, x + 1), G, $ - z, G, x - z], $ = x; + break; + case i: + for (x = $, T = true; r2.charCodeAt(x + 1) === i; ) + x += 1, T = !T; + if (M = r2.charCodeAt(x + 1), T && M !== s && M !== u && M !== a && M !== c && M !== f && M !== l && (x += 1, E.test(r2.charAt(x)))) { + for (; E.test(r2.charAt(x + 1)); ) + x += 1; + r2.charCodeAt(x + 1) === u && (x += 1); + } + F = ["word", r2.slice($, x + 1), G, $ - z, G, x - z], $ = x; + break; + default: + M === s && r2.charCodeAt($ + 1) === w ? ((x = r2.indexOf("*/", $ + 2) + 1) === 0 && (O ? x = r2.length : J("comment")), L = r2.slice($, x + 1), k = L.split("\n"), (P = k.length - 1) > 0 ? (B = G + P, j = x - k[P].length) : (B = G, j = z), F = ["comment", L, G, $ - z, B, x - j], z = j, G = B, $ = x) : (S.lastIndex = $ + 1, S.test(r2), x = S.lastIndex === 0 ? r2.length - 1 : S.lastIndex - 2, F = ["word", r2.slice($, x + 1), G, $ - z, G, x - z], V.push(F), $ = x); + } + return $++, F; + }, endOfFile: function() { + return W.length === 0 && $ >= Y; + } }; + }; + var n = 39, o = 34, i = 92, s = 47, a = 10, u = 32, l = 12, c = 9, f = 13, p = 91, h = 93, d = 40, g = 41, y = 123, m = 125, v = 59, w = 42, b = 58, _ = 64, A = /[ \n\t\r\f{}()'"\\;/[\]#]/g, S = /[ \n\t\r\f(){}:;@!'"\\\][#]|\/(?=\*)/g, C = /.[\\/("'\n]/, E = /[a-f0-9]/i; + t.exports = e.default; + }, function(t, e, r) { + "use strict"; + e.__esModule = true; + var n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t2) { + return typeof t2; + } : function(t2) { + return t2 && typeof Symbol == "function" && t2.constructor === Symbol && t2 !== Symbol.prototype ? "symbol" : typeof t2; + }, o = function() { + function t2(t3, e2) { + for (var r2 = 0; r2 < e2.length; r2++) { + var n2 = e2[r2]; + n2.enumerable = n2.enumerable || false, n2.configurable = true, "value" in n2 && (n2.writable = true), Object.defineProperty(t3, n2.key, n2); + } + } + return function(e2, r2, n2) { + return r2 && t2(e2.prototype, r2), n2 && t2(e2, n2), e2; + }; + }(), i = u(r(10)), s = u(r(45)), a = u(r(4)); + function u(t2) { + return t2 && t2.__esModule ? t2 : { default: t2 }; + } + var l = 0, c = function() { + function t2(e2) { + var r2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; + if (function(t3, e3) { + if (!(t3 instanceof e3)) + throw new TypeError("Cannot call a class as a function"); + }(this, t2), e2 === null || (e2 === void 0 ? "undefined" : n(e2)) === "object" && !e2.toString) + throw new Error("PostCSS received " + e2 + " instead of CSS string"); + this.css = e2.toString(), this.css[0] !== "\uFEFF" && this.css[0] !== "\uFFFE" || (this.css = this.css.slice(1)), r2.from && (/^\w+:\/\//.test(r2.from) ? this.file = r2.from : this.file = a.default.resolve(r2.from)); + var o2 = new s.default(this.css, r2); + if (o2.text) { + this.map = o2; + var i2 = o2.consumer().file; + !this.file && i2 && (this.file = this.mapResolve(i2)); + } + this.file || (l += 1, this.id = "<input css " + l + ">"), this.map && (this.map.file = this.from); + } + return t2.prototype.error = function(t3, e2, r2) { + var n2 = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, o2 = void 0, s2 = this.origin(e2, r2); + return (o2 = s2 ? new i.default(t3, s2.line, s2.column, s2.source, s2.file, n2.plugin) : new i.default(t3, e2, r2, this.css, this.file, n2.plugin)).input = { line: e2, column: r2, source: this.css }, this.file && (o2.input.file = this.file), o2; + }, t2.prototype.origin = function(t3, e2) { + if (!this.map) + return false; + var r2 = this.map.consumer(), n2 = r2.originalPositionFor({ line: t3, column: e2 }); + if (!n2.source) + return false; + var o2 = { file: this.mapResolve(n2.source), line: n2.line, column: n2.column }, i2 = r2.sourceContentFor(n2.source); + return i2 && (o2.source = i2), o2; + }, t2.prototype.mapResolve = function(t3) { + return /^\w+:\/\//.test(t3) ? t3 : a.default.resolve(this.map.consumer().sourceRoot || ".", t3); + }, o(t2, [{ key: "from", get: function() { + return this.file || this.id; + } }]), t2; + }(); + e.default = c, t.exports = e.default; + }, function(t, e, r) { + "use strict"; + (function(n) { + e.__esModule = true; + var o = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t2) { + return typeof t2; + } : function(t2) { + return t2 && typeof Symbol == "function" && t2.constructor === Symbol && t2 !== Symbol.prototype ? "symbol" : typeof t2; + }, i = u(r(15)), s = u(r(4)), a = u(r(46)); + function u(t2) { + return t2 && t2.__esModule ? t2 : { default: t2 }; + } + var l = function() { + function t2(e2, r2) { + !function(t3, e3) { + if (!(t3 instanceof e3)) + throw new TypeError("Cannot call a class as a function"); + }(this, t2), this.loadAnnotation(e2), this.inline = this.startWith(this.annotation, "data:"); + var n2 = r2.map ? r2.map.prev : void 0, o2 = this.loadMap(r2.from, n2); + o2 && (this.text = o2); + } + return t2.prototype.consumer = function() { + return this.consumerCache || (this.consumerCache = new i.default.SourceMapConsumer(this.text)), this.consumerCache; + }, t2.prototype.withContent = function() { + return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0); + }, t2.prototype.startWith = function(t3, e2) { + return !!t3 && t3.substr(0, e2.length) === e2; + }, t2.prototype.loadAnnotation = function(t3) { + var e2 = t3.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//); + e2 && (this.annotation = e2[1].trim()); + }, t2.prototype.decodeInline = function(t3) { + var e2 = "data:application/json,"; + if (this.startWith(t3, e2)) + return decodeURIComponent(t3.substr(e2.length)); + if (/^data:application\/json;charset=utf-?8;base64,/.test(t3) || /^data:application\/json;base64,/.test(t3)) + return function(t4) { + return n ? n.from(t4, "base64").toString() : window.atob(t4); + }(t3.substr(RegExp.lastMatch.length)); + var r2 = t3.match(/data:application\/json;([^,]+),/)[1]; + throw new Error("Unsupported source map encoding " + r2); + }, t2.prototype.loadMap = function(t3, e2) { + if (e2 === false) + return false; + if (e2) { + if (typeof e2 == "string") + return e2; + if (typeof e2 == "function") { + var r2 = e2(t3); + if (r2 && a.default.existsSync && a.default.existsSync(r2)) + return a.default.readFileSync(r2, "utf-8").toString().trim(); + throw new Error("Unable to load previous source map: " + r2.toString()); + } + if (e2 instanceof i.default.SourceMapConsumer) + return i.default.SourceMapGenerator.fromSourceMap(e2).toString(); + if (e2 instanceof i.default.SourceMapGenerator) + return e2.toString(); + if (this.isMap(e2)) + return JSON.stringify(e2); + throw new Error("Unsupported previous source map format: " + e2.toString()); + } + if (this.inline) + return this.decodeInline(this.annotation); + if (this.annotation) { + var n2 = this.annotation; + return t3 && (n2 = s.default.join(s.default.dirname(t3), n2)), this.root = s.default.dirname(n2), !(!a.default.existsSync || !a.default.existsSync(n2)) && a.default.readFileSync(n2, "utf-8").toString().trim(); + } + }, t2.prototype.isMap = function(t3) { + return (t3 === void 0 ? "undefined" : o(t3)) === "object" && (typeof t3.mappings == "string" || typeof t3._mappings == "string"); + }, t2; + }(); + e.default = l, t.exports = e.default; + }).call(this, r(14).Buffer); + }, function(t, e) { + }, function(t, e, r) { + "use strict"; + e.__esModule = true; + e.default = { prefix: function(t2) { + var e2 = t2.match(/^(-\w+-)/); + return e2 ? e2[0] : ""; + }, unprefixed: function(t2) { + return t2.replace(/^-\w+-/, ""); + } }, t.exports = e.default; + }]); + }); + } + }); + + // server/web/source/node_modules/grapesjs-component-code-editor/dist/grapesjs-component-code-editor.min.js + var require_grapesjs_component_code_editor_min = __commonJS({ + "server/web/source/node_modules/grapesjs-component-code-editor/dist/grapesjs-component-code-editor.min.js"(exports, module) { + !function(e, t) { + typeof exports == "object" && typeof module == "object" ? module.exports = t() : typeof define == "function" && define.amd ? define([], t) : typeof exports == "object" ? exports["grapesjs-component-code-editor"] = t() : e["grapesjs-component-code-editor"] = t(); + }(window, function() { + return function(e) { + var t = {}; + function n(i) { + if (t[i]) + return t[i].exports; + var r = t[i] = { i, l: false, exports: {} }; + return e[i].call(r.exports, r, r.exports, n), r.l = true, r.exports; + } + return n.m = e, n.c = t, n.d = function(e2, t2, i) { + n.o(e2, t2) || Object.defineProperty(e2, t2, { enumerable: true, get: i }); + }, n.r = function(e2) { + typeof Symbol != "undefined" && Symbol.toStringTag && Object.defineProperty(e2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e2, "__esModule", { value: true }); + }, n.t = function(e2, t2) { + if (1 & t2 && (e2 = n(e2)), 8 & t2) + return e2; + if (4 & t2 && typeof e2 == "object" && e2 && e2.__esModule) + return e2; + var i = /* @__PURE__ */ Object.create(null); + if (n.r(i), Object.defineProperty(i, "default", { enumerable: true, value: e2 }), 2 & t2 && typeof e2 != "string") + for (var r in e2) + n.d(i, r, function(t3) { + return e2[t3]; + }.bind(null, r)); + return i; + }, n.n = function(e2) { + var t2 = e2 && e2.__esModule ? function() { + return e2.default; + } : function() { + return e2; + }; + return n.d(t2, "a", t2), t2; + }, n.o = function(e2, t2) { + return Object.prototype.hasOwnProperty.call(e2, t2); + }, n.p = "", n(n.s = 3); + }([function(e, t) { + e.exports = function(e2, t2, n) { + return t2 in e2 ? Object.defineProperty(e2, t2, { value: n, enumerable: true, configurable: true, writable: true }) : e2[t2] = n, e2; + }; + }, function(e, t) { + e.exports = function(e2, t2) { + if (!(e2 instanceof t2)) + throw new TypeError("Cannot call a class as a function"); + }; + }, function(e, t) { + function n(e2, t2) { + for (var n2 = 0; n2 < t2.length; n2++) { + var i = t2[n2]; + i.enumerable = i.enumerable || false, i.configurable = true, "value" in i && (i.writable = true), Object.defineProperty(e2, i.key, i); + } + } + e.exports = function(e2, t2, i) { + return t2 && n(e2.prototype, t2), i && n(e2, i), e2; + }; + }, function(e, t, n) { + "use strict"; + n.r(t); + var i = n(0), r = n.n(i), s = n(1), o = n.n(s), a = n(2), c = n.n(a), l = typeof window != "undefined" ? window : null, u = l === null, d = u ? void 0 : l.document, h = function() { + return false; + }, p = u ? "calc" : ["", "-webkit-", "-moz-", "-o-"].filter(function(e2) { + var t2 = d.createElement("div"); + return t2.style.cssText = "width:" + e2 + "calc(9px)", !!t2.style.length; + }).shift() + "calc", f = function(e2) { + return typeof e2 == "string" || e2 instanceof String; + }, v = function(e2) { + if (f(e2)) { + var t2 = d.querySelector(e2); + if (!t2) + throw new Error("Selector " + e2 + " did not match a DOM element"); + return t2; + } + return e2; + }, m = function(e2, t2, n2) { + var i2 = e2[t2]; + return i2 !== void 0 ? i2 : n2; + }, g = function(e2, t2, n2, i2) { + if (t2) { + if (i2 === "end") + return 0; + if (i2 === "center") + return e2 / 2; + } else if (n2) { + if (i2 === "start") + return 0; + if (i2 === "center") + return e2 / 2; + } + return e2; + }, y = function(e2, t2) { + var n2 = d.createElement("div"); + return n2.className = "gutter gutter-" + t2, n2; + }, b = function(e2, t2, n2) { + var i2 = {}; + return f(t2) ? i2[e2] = t2 : i2[e2] = p + "(" + t2 + "% - " + n2 + "px)", i2; + }, C = function(e2, t2) { + var n2; + return (n2 = {})[e2] = t2 + "px", n2; + }, E = function(e2, t2) { + if (t2 === void 0 && (t2 = {}), u) + return {}; + var n2, i2, r2, s2, o2, a2, c2 = e2; + Array.from && (c2 = Array.from(c2)); + var p2 = v(c2[0]).parentNode, f2 = getComputedStyle ? getComputedStyle(p2) : null, E2 = f2 ? f2.flexDirection : null, S2 = m(t2, "sizes") || c2.map(function() { + return 100 / c2.length; + }), w2 = m(t2, "minSize", 100), O2 = Array.isArray(w2) ? w2 : c2.map(function() { + return w2; + }), z2 = m(t2, "expandToMin", false), P2 = m(t2, "gutterSize", 10), j = m(t2, "gutterAlign", "center"), x = m(t2, "snapOffset", 30), k = m(t2, "dragInterval", 1), L = m(t2, "direction", "horizontal"), _ = m(t2, "cursor", L === "horizontal" ? "col-resize" : "row-resize"), T = m(t2, "gutter", y), D = m(t2, "elementStyle", b), B = m(t2, "gutterStyle", C); + function M(e3, t3, i3, r3) { + var s3 = D(n2, t3, i3, r3); + Object.keys(s3).forEach(function(t4) { + e3.style[t4] = s3[t4]; + }); + } + function R() { + return a2.map(function(e3) { + return e3.size; + }); + } + function H(e3) { + return "touches" in e3 ? e3.touches[0][i2] : e3[i2]; + } + function A(e3) { + var t3 = a2[this.a], n3 = a2[this.b], i3 = t3.size + n3.size; + t3.size = e3 / this.size * i3, n3.size = i3 - e3 / this.size * i3, M(t3.element, t3.size, this._b, t3.i), M(n3.element, n3.size, this._c, n3.i); + } + function W(e3) { + var n3, i3 = a2[this.a], r3 = a2[this.b]; + this.dragging && (n3 = H(e3) - this.start + (this._b - this.dragOffset), k > 1 && (n3 = Math.round(n3 / k) * k), n3 <= i3.minSize + x + this._b ? n3 = i3.minSize + this._b : n3 >= this.size - (r3.minSize + x + this._c) && (n3 = this.size - (r3.minSize + this._c)), A.call(this, n3), m(t2, "onDrag", h)(R())); + } + function U() { + var e3 = a2[this.a].element, t3 = a2[this.b].element, i3 = e3.getBoundingClientRect(), o3 = t3.getBoundingClientRect(); + this.size = i3[n2] + o3[n2] + this._b + this._c, this.start = i3[r2], this.end = i3[s2]; + } + function $(e3) { + var t3 = function(e4) { + if (!getComputedStyle) + return null; + var t4 = getComputedStyle(e4); + if (!t4) + return null; + var n4 = e4[o2]; + return n4 === 0 ? null : n4 -= L === "horizontal" ? parseFloat(t4.paddingLeft) + parseFloat(t4.paddingRight) : parseFloat(t4.paddingTop) + parseFloat(t4.paddingBottom); + }(p2); + if (t3 === null) + return e3; + if (O2.reduce(function(e4, t4) { + return e4 + t4; + }, 0) > t3) + return e3; + var n3 = 0, i3 = [], r3 = e3.map(function(r4, s3) { + var o3 = t3 * r4 / 100, a3 = g(P2, s3 === 0, s3 === e3.length - 1, j), c3 = O2[s3] + a3; + return o3 < c3 ? (n3 += c3 - o3, i3.push(0), c3) : (i3.push(o3 - c3), o3); + }); + return n3 === 0 ? e3 : r3.map(function(e4, r4) { + var s3 = e4; + if (n3 > 0 && i3[r4] - n3 > 0) { + var o3 = Math.min(n3, i3[r4] - n3); + n3 -= o3, s3 = e4 - o3; + } + return s3 / t3 * 100; + }); + } + function I() { + var e3 = a2[this.a].element, n3 = a2[this.b].element; + this.dragging && m(t2, "onDragEnd", h)(R()), this.dragging = false, l.removeEventListener("mouseup", this.stop), l.removeEventListener("touchend", this.stop), l.removeEventListener("touchcancel", this.stop), l.removeEventListener("mousemove", this.move), l.removeEventListener("touchmove", this.move), this.stop = null, this.move = null, e3.removeEventListener("selectstart", h), e3.removeEventListener("dragstart", h), n3.removeEventListener("selectstart", h), n3.removeEventListener("dragstart", h), e3.style.userSelect = "", e3.style.webkitUserSelect = "", e3.style.MozUserSelect = "", e3.style.pointerEvents = "", n3.style.userSelect = "", n3.style.webkitUserSelect = "", n3.style.MozUserSelect = "", n3.style.pointerEvents = "", this.gutter.style.cursor = "", this.parent.style.cursor = "", d.body.style.cursor = ""; + } + function V(e3) { + if (!("button" in e3) || e3.button === 0) { + var n3 = a2[this.a].element, i3 = a2[this.b].element; + this.dragging || m(t2, "onDragStart", h)(R()), e3.preventDefault(), this.dragging = true, this.move = W.bind(this), this.stop = I.bind(this), l.addEventListener("mouseup", this.stop), l.addEventListener("touchend", this.stop), l.addEventListener("touchcancel", this.stop), l.addEventListener("mousemove", this.move), l.addEventListener("touchmove", this.move), n3.addEventListener("selectstart", h), n3.addEventListener("dragstart", h), i3.addEventListener("selectstart", h), i3.addEventListener("dragstart", h), n3.style.userSelect = "none", n3.style.webkitUserSelect = "none", n3.style.MozUserSelect = "none", n3.style.pointerEvents = "none", i3.style.userSelect = "none", i3.style.webkitUserSelect = "none", i3.style.MozUserSelect = "none", i3.style.pointerEvents = "none", this.gutter.style.cursor = _, this.parent.style.cursor = _, d.body.style.cursor = _, U.call(this), this.dragOffset = H(e3) - this.end; + } + } + L === "horizontal" ? (n2 = "width", i2 = "clientX", r2 = "left", s2 = "right", o2 = "clientWidth") : L === "vertical" && (n2 = "height", i2 = "clientY", r2 = "top", s2 = "bottom", o2 = "clientHeight"), S2 = $(S2); + var F = []; + function N(e3) { + var t3 = e3.i === F.length, n3 = t3 ? F[e3.i - 1] : F[e3.i]; + U.call(n3); + var i3 = t3 ? n3.size - e3.minSize - n3._c : e3.minSize + n3._b; + A.call(n3, i3); + } + return (a2 = c2.map(function(e3, t3) { + var i3, r3 = { element: v(e3), size: S2[t3], minSize: O2[t3], i: t3 }; + if (t3 > 0 && ((i3 = { a: t3 - 1, b: t3, dragging: false, direction: L, parent: p2 })._b = g(P2, t3 - 1 == 0, false, j), i3._c = g(P2, false, t3 === c2.length - 1, j), E2 === "row-reverse" || E2 === "column-reverse")) { + var s3 = i3.a; + i3.a = i3.b, i3.b = s3; + } + if (t3 > 0) { + var o3 = T(t3, L, r3.element); + !function(e4, t4, i4) { + var r4 = B(n2, t4, i4); + Object.keys(r4).forEach(function(t5) { + e4.style[t5] = r4[t5]; + }); + }(o3, P2, t3), i3._a = V.bind(i3), o3.addEventListener("mousedown", i3._a), o3.addEventListener("touchstart", i3._a), p2.insertBefore(o3, r3.element), i3.gutter = o3; + } + return M(r3.element, r3.size, g(P2, t3 === 0, t3 === c2.length - 1, j), t3), t3 > 0 && F.push(i3), r3; + })).forEach(function(e3) { + var t3 = e3.element.getBoundingClientRect()[n2]; + t3 < e3.minSize && (z2 ? N(e3) : e3.minSize = t3); + }), { setSizes: function(e3) { + var t3 = $(e3); + t3.forEach(function(e4, n3) { + if (n3 > 0) { + var i3 = F[n3 - 1], r3 = a2[i3.a], s3 = a2[i3.b]; + r3.size = t3[n3 - 1], s3.size = e4, M(r3.element, r3.size, i3._b, r3.i), M(s3.element, s3.size, i3._c, s3.i); + } + }); + }, getSizes: R, collapse: function(e3) { + N(a2[e3]); + }, destroy: function(e3, t3) { + F.forEach(function(i3) { + if (t3 !== true ? i3.parent.removeChild(i3.gutter) : (i3.gutter.removeEventListener("mousedown", i3._a), i3.gutter.removeEventListener("touchstart", i3._a)), e3 !== true) { + var r3 = D(n2, i3.a.size, i3._b); + Object.keys(r3).forEach(function(e4) { + a2[i3.a].element.style[e4] = "", a2[i3.b].element.style[e4] = ""; + }); + } + }); + }, parent: p2, pairs: F }; + }; + function S(e2, t2) { + var n2 = Object.keys(e2); + if (Object.getOwnPropertySymbols) { + var i2 = Object.getOwnPropertySymbols(e2); + t2 && (i2 = i2.filter(function(t3) { + return Object.getOwnPropertyDescriptor(e2, t3).enumerable; + })), n2.push.apply(n2, i2); + } + return n2; + } + var w = function() { + function e2(t2, n2) { + o()(this, e2), this.editor = t2, this.$ = t2.$, this.pfx = t2.getConfig("stylePrefix"), this.opts = n2, this.canvas = this.findWithinEditor(".".concat(this.pfx, "cv-canvas")), this.panelViews = n2.appendTo ? this.$(n2.appendTo) : this.findWithinEditor(".".concat(this.pfx, "pn-").concat(n2.panelId)), this.isShowing = true; + } + return c()(e2, [{ key: "findPanel", value: function() { + var e3 = this.editor.Panels, t2 = this.opts.panelId; + return e3.getPanel(t2) || e3.addPanel({ id: t2 }); + } }, { key: "findWithinEditor", value: function(e3) { + return this.$(e3, this.editor.getEl()); + } }, { key: "buildCodeEditor", value: function(e3) { + var t2 = this.editor, n2 = this.opts; + return t2.CodeManager.createViewer(function(e4) { + for (var t3 = 1; t3 < arguments.length; t3++) { + var n3 = arguments[t3] != null ? arguments[t3] : {}; + t3 % 2 ? S(Object(n3), true).forEach(function(t4) { + r()(e4, t4, n3[t4]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e4, Object.getOwnPropertyDescriptors(n3)) : S(Object(n3)).forEach(function(t4) { + Object.defineProperty(e4, t4, Object.getOwnPropertyDescriptor(n3, t4)); + }); + } + return e4; + }({ codeName: e3 === "html" ? "htmlmixed" : "css", theme: "hopscotch", readOnly: 0, autoBeautify: 1, autoCloseTags: 1, autoCloseBrackets: 1, styleActiveLine: 1, smartIndent: 1 }, n2.codeViewOptions)); + } }, { key: "buildSection", value: function(e3, t2) { + var n2 = this.$, i2 = this.pfx, r2 = this.opts, s2 = n2("<section></section>"), o2 = e3 === "html" ? r2.htmlBtnText : r2.cssBtnText, a2 = r2.cleanCssBtn && e3 === "css" ? '<button class="cp-delete-'.concat(e3, " ").concat(i2, 'btn-prim">').concat(r2.cleanCssBtnText, "</button>") : ""; + s2.append(n2('\n <div class="codepanel-separator">\n <div class="codepanel-label">'.concat(e3, '</div>\n <div class="cp-btn-container">\n ').concat(a2, '\n <button class="cp-apply-').concat(e3, " ").concat(i2, 'btn-prim">').concat(o2, "</button>\n </div>\n </div>"))); + var c2 = t2.getElement(); + return c2.style.height = "calc(100% - 30px)", s2.append(c2), this.codePanel.append(s2), s2.get(0); + } }, { key: "buildCodePanel", value: function() { + var e3 = this, t2 = this.$, n2 = this.editor, i2 = this.opts.panelId ? this.findPanel() : 0; + this.codePanel = t2("<div></div>"), this.codePanel.addClass("code-panel"), this.htmlCodeEditor = this.buildCodeEditor("html"), this.cssCodeEditor = this.buildCodeEditor("css"); + var r2 = [this.buildSection("html", this.htmlCodeEditor), this.buildSection("css", this.cssCodeEditor)]; + i2 && !this.opts.appendTo && i2.set("appendContent", this.codePanel).trigger("change:appendContent"), this.opts.appendTo && t2(this.opts.appendTo).append(this.codePanel), this.updateEditorContents(), this.codePanel.find(".cp-apply-html").on("click", this.updateHtml.bind(this)), this.codePanel.find(".cp-apply-css").on("click", this.updateCss.bind(this)), this.opts.cleanCssBtn && this.codePanel.find(".cp-delete-css").on("click", this.deleteSelectedCss.bind(this)), E(r2, { direction: "vertical", sizes: [50, 50], minSize: 100, gutterSize: 1, onDragEnd: this.refreshEditors.bind(this) }), n2.on("component:update", function(t3) { + return e3.updateEditorContents(); + }), n2.on("stop:preview", function() { + e3.isShowing && !e3.opts.preserveWidth && e3.canvas.css("width", e3.opts.openState.cv); + }); + } }, { key: "showCodePanel", value: function() { + this.isShowing = true, this.updateEditorContents(), this.codePanel.css("display", "block"), setTimeout(this.refreshEditors.bind(this), 320), this.opts.preserveWidth || (this.panelViews.css("width", this.opts.openState.pn), this.canvas.css("width", this.opts.openState.cv)); + } }, { key: "hideCodePanel", value: function() { + this.codePanel && this.codePanel.css("display", "none"), this.isShowing = false, this.opts.preserveWidth || (this.panelViews.css("width", this.opts.closedState.pn), this.canvas.css("width", this.opts.closedState.cv)); + } }, { key: "refreshEditors", value: function() { + this.htmlCodeEditor.refresh(), this.cssCodeEditor.refresh(); + } }, { key: "updateHtml", value: function(e3) { + e3 == null || e3.preventDefault(); + var t2 = this.editor, n2 = this.component, i2 = this.htmlCodeEditor.getContent().trim(); + if (i2 && i2 !== this.previousHtmlCode) { + this.previousHtmlCode = i2; + var r2 = ""; + this.cssCodeEditor.getContent().split("}\n").filter(function(e4) { + return Boolean(e4.trim()); + }).map(function(e4) { + if (!/}$/.test(e4)) + return "".concat(e4, "}"); + }).forEach(function(e4) { + /^#/.test(e4) && (r2 += e4); + }), i2 += "<style>".concat(r2, "</style>"), n2.attributes.type === "wrapper" ? t2.setComponents(i2) : t2.select(n2.replaceWith(i2)); + } + } }, { key: "updateCss", value: function(e3) { + e3 == null || e3.preventDefault(); + var t2 = this.cssCodeEditor.getContent().trim(); + t2 && t2 !== this.previousCssCode && (this.previousCssCode = t2, this.editor.Css.addRules(t2)); + } }, { key: "deleteSelectedCss", value: function(e3) { + var t2 = this; + e3 == null || e3.preventDefault(), this.cssCodeEditor.editor.getSelections().forEach(function(e4) { + return t2.parseRemove(e4); + }), this.cssCodeEditor.editor.deleteH(); + } }, { key: "parseRemove", value: function(e3) { + var t2 = this.editor; + t2.Css.remove(this.getRules(t2.Parser.parseCss(e3))); + } }, { key: "getRules", value: function(e3) { + var t2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n2 = this.editor, i2 = n2.Selectors; + return e3.map(function(e4) { + var r2 = i2.get(e4.selectors), s2 = e4.state, o2 = e4.selectorsAdd, a2 = t2.atRuleType, c2 = t2.atRuleParams; + return r2 && n2.Css.get(r2, s2, c2, { selectorsAdd: o2, atRule: a2 }); + }); + } }, { key: "updateEditorContents", value: function() { + this.isShowing && (this.component = this.editor.getSelected(), this.component && (this.htmlCodeEditor.setContent(this.getComponentHtml(this.component)), this.cssCodeEditor.setContent(this.editor.CodeManager.getCode(this.component, "css", { cssc: this.editor.Css })))); + } }, { key: "getComponentHtml", value: function(e3) { + var t2 = this.pfx, n2 = this.opts, i2 = "", r2 = e3.getEl(); + !n2.clearData && r2.classList.remove("".concat(t2, "selected")); + var s2 = n2.clearData ? e3.toHTML() : e3.attributes.type === "wrapper" ? r2.innerHTML : r2.outerHTML; + !n2.clearData && r2.classList.add("".concat(t2, "selected")), i2 += s2; + var o2 = n2.editJs ? e3.getScriptString() : ""; + return i2 += o2 ? "<script>".concat(o2, "<\/script>") : ""; + } }]), e2; + }(), O = function(e2, t2) { + var n2 = e2.Commands, i2 = null; + n2.add("open-code", { run: function(e3) { + !i2 && (i2 = new w(e3, t2)) && i2.buildCodePanel(), i2.showCodePanel(); + }, stop: function(e3) { + i2 && i2.hideCodePanel(); + } }), n2.add("code-editor-object", function() { + return i2; + }), n2.add("code-editor-constructor", function() { + return w; + }); + }; + function z(e2, t2) { + var n2 = Object.keys(e2); + if (Object.getOwnPropertySymbols) { + var i2 = Object.getOwnPropertySymbols(e2); + t2 && (i2 = i2.filter(function(t3) { + return Object.getOwnPropertyDescriptor(e2, t3).enumerable; + })), n2.push.apply(n2, i2); + } + return n2; + } + function P(e2) { + for (var t2 = 1; t2 < arguments.length; t2++) { + var n2 = arguments[t2] != null ? arguments[t2] : {}; + t2 % 2 ? z(Object(n2), true).forEach(function(t3) { + r()(e2, t3, n2[t3]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(n2)) : z(Object(n2)).forEach(function(t3) { + Object.defineProperty(e2, t3, Object.getOwnPropertyDescriptor(n2, t3)); + }); + } + return e2; + } + t.default = function(e2) { + var t2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n2 = P(P({}, { panelId: "views-container", appendTo: "", openState: { cv: "65%", pn: "35%" }, closedState: { cv: "85%", pn: "15%" }, codeViewOptions: {}, preserveWidth: false, editJs: false, clearData: false, cleanCssBtn: true, htmlBtnText: "Apply", cssBtnText: "Apply", cleanCssBtnText: "Delete" }), t2); + O(e2, n2); + }; + }]); + }); + } + }); + + // server/web/source/node_modules/grapesjs-script-editor/dist/grapesjs-script-editor.min.js + var require_grapesjs_script_editor_min = __commonJS({ + "server/web/source/node_modules/grapesjs-script-editor/dist/grapesjs-script-editor.min.js"(exports, module) { + !function(t, e) { + typeof exports == "object" && typeof module == "object" ? module.exports = e() : typeof define == "function" && define.amd ? define([], e) : typeof exports == "object" ? exports["grapesjs-script-editor"] = e() : t["grapesjs-script-editor"] = e(); + }(window, function() { + return function(t) { + var e = {}; + function r(n) { + if (e[n]) + return e[n].exports; + var o = e[n] = { i: n, l: false, exports: {} }; + return t[n].call(o.exports, o, o.exports, r), o.l = true, o.exports; + } + return r.m = t, r.c = e, r.d = function(t2, e2, n) { + r.o(t2, e2) || Object.defineProperty(t2, e2, { enumerable: true, get: n }); + }, r.r = function(t2) { + typeof Symbol != "undefined" && Symbol.toStringTag && Object.defineProperty(t2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t2, "__esModule", { value: true }); + }, r.t = function(t2, e2) { + if (1 & e2 && (t2 = r(t2)), 8 & e2) + return t2; + if (4 & e2 && typeof t2 == "object" && t2 && t2.__esModule) + return t2; + var n = /* @__PURE__ */ Object.create(null); + if (r.r(n), Object.defineProperty(n, "default", { enumerable: true, value: t2 }), 2 & e2 && typeof t2 != "string") + for (var o in t2) + r.d(n, o, function(e3) { + return t2[e3]; + }.bind(null, o)); + return n; + }, r.n = function(t2) { + var e2 = t2 && t2.__esModule ? function() { + return t2.default; + } : function() { + return t2; + }; + return r.d(e2, "a", e2), e2; + }, r.o = function(t2, e2) { + return Object.prototype.hasOwnProperty.call(t2, e2); + }, r.p = "", r(r.s = 1); + }([function(t, e) { + t.exports = function(t2, e2, r) { + return e2 in t2 ? Object.defineProperty(t2, e2, { value: r, enumerable: true, configurable: true, writable: true }) : t2[e2] = r, t2; + }; + }, function(t, e, r) { + "use strict"; + r.r(e); + var n = r(0), o = r.n(n), i = "edit-script"; + function c(t2, e2) { + var r2 = Object.keys(t2); + if (Object.getOwnPropertySymbols) { + var n2 = Object.getOwnPropertySymbols(t2); + e2 && (n2 = n2.filter(function(e3) { + return Object.getOwnPropertyDescriptor(t2, e3).enumerable; + })), r2.push.apply(r2, n2); + } + return r2; + } + function a(t2) { + for (var e2 = 1; e2 < arguments.length; e2++) { + var r2 = arguments[e2] != null ? arguments[e2] : {}; + e2 % 2 ? c(Object(r2), true).forEach(function(e3) { + o()(t2, e3, r2[e3]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t2, Object.getOwnPropertyDescriptors(r2)) : c(Object(r2)).forEach(function(e3) { + Object.defineProperty(t2, e3, Object.getOwnPropertyDescriptor(r2, e3)); + }); + } + return t2; + } + var s = function(t2) { + var e2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r2 = t2.Commands, n2 = t2.Modal, o2 = t2.Components, c2 = e2.modalTitle, s2 = e2.codeViewOptions, u2 = e2.commandAttachScript, l2 = e2.toolbarIcon, p = e2.onRun, d = e2.onError, f = e2.starter, b = e2.scriptTypesSupport, g = null, h = function(t3, e3) { + e3 instanceof HTMLElement ? t3.appendChild(e3) : e3 && t3.insertAdjacentHTML("beforeend", e3); + }; + t2.$.isString(b) && (b = b.split(",")), t2.$.isArray(b) && (b = b.includes("*") ? o2.getTypes().map(function(t3) { + return t3.id; + }) : b), b && b.forEach(function(t3) { + var r3 = o2.getType(t3).model; + o2.addType(t3, { model: { initToolbar: function() { + r3.prototype.initToolbar.apply(this, arguments); + var t4 = this.get("toolbar"), n3 = t4.some(function(t5) { + return t5.command === i; + }); + n3 || (t4.unshift(a({ command: i, label: l2 }, e2.toolbarBtnCustomScript)), this.set("toolbar", t4)); + } } }); + }), r2.add(i, a({ run: function(t3, e3) { + var r3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + this.editor = t3, this.options = r3, this.target = r3.target || t3.getSelected(); + var n3 = this.target; + n3 && this.showCustomCode(n3); + }, stop: function(t3) { + n2.close(); + }, showCustomCode: function(t3) { + var e3 = this, r3 = this.editor, o3 = this.options.title || c2; + g || (g = this.getContent()); + var i2 = t3.getScriptString() || f; + n2.open({ title: o3, content: g }).getModel().once("change:open", function() { + return r3.stopCommand(e3.id); + }), this.getCodeViewer().setContent(i2); + }, getPreContent: function() { + }, getPostContent: function() { + }, getContent: function() { + var t3 = this.editor, e3 = document.createElement("div"), r3 = t3.getConfig("stylePrefix"); + e3.className = "".concat(r3, "attach-script"), h(e3, this.getPreContent()); + var n3 = this.getCodeViewer(); + return n3.refresh(), setTimeout(function() { + return n3.focus(); + }, 0), e3.appendChild(n3.getElement()), h(e3, this.getPostContent()), h(e3, this.getContentActions()), e3; + }, getContentActions: function() { + var t3 = this, r3 = this.editor, n3 = document.createElement("div"); + n3.id = "actns"; + var o3 = document.createElement("button"), i2 = r3.getConfig("stylePrefix"); + o3.innerHTML = e2.buttonLabel, o3.className = "".concat(i2, "btn-prim ").concat(i2, "btn-save__inject-logic"), o3.onclick = function() { + return t3.handleSave(); + }; + var c3 = document.createElement("div"); + return c3.id = "logic-toolbar", c3.className = "fa fa-bug", c3.style = "margin:5px;padding:10px;background:rgba(0,0,0,0.2);border-radius:3px;border:1px solid rgba(0,0,0,0.2);cursor:pointer", c3.onclick = function() { + return t3.runCode(); + }, n3.appendChild(c3), n3.appendChild(o3), n3; + }, handleSave: function() { + var t3 = this.editor, e3 = this.target, r3 = this.getCodeViewer().getContent(); + e3.set("script", r3), t3.Modal.close(); + }, getCodeViewer: function() { + var t3 = this.editor; + return this.codeViewer || (this.codeViewer = t3.CodeManager.createViewer(a({ codeName: "javascript", theme: "hopscotch", readOnly: 0, autoBeautify: 1 }, s2))), this.codeViewer; + }, runCode: function() { + try { + var t3 = this.getCodeViewer().getContent(); + Function('"use strict";' + t3)(), p && p(); + } catch (t4) { + console.log("error", t4), d && d(t4); + } + } }, u2)); + }; + function u(t2, e2) { + var r2 = Object.keys(t2); + if (Object.getOwnPropertySymbols) { + var n2 = Object.getOwnPropertySymbols(t2); + e2 && (n2 = n2.filter(function(e3) { + return Object.getOwnPropertyDescriptor(t2, e3).enumerable; + })), r2.push.apply(r2, n2); + } + return r2; + } + function l(t2) { + for (var e2 = 1; e2 < arguments.length; e2++) { + var r2 = arguments[e2] != null ? arguments[e2] : {}; + e2 % 2 ? u(Object(r2), true).forEach(function(e3) { + o()(t2, e3, r2[e3]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t2, Object.getOwnPropertyDescriptors(r2)) : u(Object(r2)).forEach(function(e3) { + Object.defineProperty(t2, e3, Object.getOwnPropertyDescriptor(r2, e3)); + }); + } + return t2; + } + e.default = function(t2) { + var e2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r2 = l(l({}, { starter: "let el = this", toolbarIcon: '<i class="fa fa-file-code-o"></i>', scriptTypesSupport: ["default", "wrapper", "text", "textnode", "image", "video", "svg"], toolbarBtnCustomScript: {}, onRun: function() { + return console.log("valid syntax"); + }, onError: function(t3) { + return console.log("error", t3); + }, modalTitle: "Script", codeLabel: "JS", codeViewOptions: {}, buttonLabel: "Save", commandAttachScript: {} }), e2); + s(t2, r2); + }; + }]); + }); + } + }); + + // server/web/source/node_modules/grapesjs-table/dist/grapesjs-table.min.js + var require_grapesjs_table_min = __commonJS({ + "server/web/source/node_modules/grapesjs-table/dist/grapesjs-table.min.js"(exports, module) { + !function(e, t) { + typeof exports == "object" && typeof module == "object" ? module.exports = t() : typeof define == "function" && define.amd ? define([], t) : typeof exports == "object" ? exports["grapesjs-table"] = t() : e["grapesjs-table"] = t(); + }(window, function() { + return function(e) { + var t = {}; + function r(n) { + if (t[n]) + return t[n].exports; + var o = t[n] = { i: n, l: false, exports: {} }; + return e[n].call(o.exports, o, o.exports, r), o.l = true, o.exports; + } + return r.m = e, r.c = t, r.d = function(e2, t2, n) { + r.o(e2, t2) || Object.defineProperty(e2, t2, { enumerable: true, get: n }); + }, r.r = function(e2) { + typeof Symbol != "undefined" && Symbol.toStringTag && Object.defineProperty(e2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e2, "__esModule", { value: true }); + }, r.t = function(e2, t2) { + if (1 & t2 && (e2 = r(e2)), 8 & t2) + return e2; + if (4 & t2 && typeof e2 == "object" && e2 && e2.__esModule) + return e2; + var n = /* @__PURE__ */ Object.create(null); + if (r.r(n), Object.defineProperty(n, "default", { enumerable: true, value: e2 }), 2 & t2 && typeof e2 != "string") + for (var o in e2) + r.d(n, o, function(t3) { + return e2[t3]; + }.bind(null, o)); + return n; + }, r.n = function(e2) { + var t2 = e2 && e2.__esModule ? function() { + return e2["default"]; + } : function() { + return e2; + }; + return r.d(t2, "a", t2), t2; + }, r.o = function(e2, t2) { + return Object.prototype.hasOwnProperty.call(e2, t2); + }, r.p = "", r(r.s = 3); + }([function(e, t) { + e.exports = function(e2, t2, r) { + return t2 in e2 ? Object.defineProperty(e2, t2, { value: r, enumerable: true, configurable: true, writable: true }) : e2[t2] = r, e2; + }; + }, function(e, t, r) { + var n = r(2); + e.exports = function(e2, t2) { + if (e2 == null) + return {}; + var r2, o, a = n(e2, t2); + if (Object.getOwnPropertySymbols) { + var c = Object.getOwnPropertySymbols(e2); + for (o = 0; o < c.length; o++) + r2 = c[o], t2.indexOf(r2) >= 0 || Object.prototype.propertyIsEnumerable.call(e2, r2) && (a[r2] = e2[r2]); + } + return a; + }; + }, function(e, t) { + e.exports = function(e2, t2) { + if (e2 == null) + return {}; + var r, n, o = {}, a = Object.keys(e2); + for (n = 0; n < a.length; n++) + r = a[n], t2.indexOf(r) >= 0 || (o[r] = e2[r]); + return o; + }; + }, function(e, t, r) { + "use strict"; + r.r(t); + var n = r(0), o = r.n(n), a = r(1), c = r.n(a); + function l(e2, t2) { + var r2 = Object.keys(e2); + if (Object.getOwnPropertySymbols) { + var n2 = Object.getOwnPropertySymbols(e2); + t2 && (n2 = n2.filter(function(t3) { + return Object.getOwnPropertyDescriptor(e2, t3).enumerable; + })), r2.push.apply(r2, n2); + } + return r2; + } + function i(e2) { + for (var t2 = 1; t2 < arguments.length; t2++) { + var r2 = arguments[t2] != null ? arguments[t2] : {}; + t2 % 2 ? l(Object(r2), true).forEach(function(t3) { + o()(e2, t3, r2[t3]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(r2)) : l(Object(r2)).forEach(function(t3) { + Object.defineProperty(e2, t3, Object.getOwnPropertyDescriptor(r2, t3)); + }); + } + return e2; + } + var s = function(e2, t2) { + var r2 = t2.modal, n2 = c()(t2, ["modal"]), o2 = "table", a2 = n2.attrTable, l2 = n2.classTable, s2 = e2.getType("table"), u2 = s2.model, p2 = s2.view, b2 = n2.tableProps || {}, d2 = []; + b2.header && d2.push({ type: "thead", row: 1, columns: b2.columns }), d2.push(i({ type: "tbody" }, b2)), b2.footer && d2.push({ type: "tfoot", row: 1, columns: b2.columns }), e2.addType(o2, { model: u2.extend({ defaults: i(i({}, u2.prototype.defaults), {}, { components: d2, traits: [{ type: "number", label: "Number of Rows", name: "rows", changeProp: 1 }, { type: "number", label: "Number of Columns", name: "columns", changeProp: 1 }, { type: "checkbox", label: "Table Header", name: "header", valueTrue: true, valueFalse: false, changeProp: 1 }, { type: "checkbox", label: "Table Footer", name: "footer", valueTrue: true, valueFalse: false, changeProp: 1 }] }, b2), init: function() { + var e3 = this.getAttributes(); + e3[a2] = 1, this.setAttributes(e3), l2 && this.addClass(l2), this.listenTo(this, "change:rows", this.changeDimensions), this.listenTo(this, "change:columns", this.changeDimensions), this.listenTo(this, "change:header", this.changeDimensions), this.listenTo(this, "change:footer", this.changeDimensions); + }, changeDimensions: function() { + var e3 = this.get("rows"), t3 = this.get("columns"), r3 = this.get("header"), n3 = this.get("footer"), o3 = []; + r3 && o3.push({ type: "thead", rows: 1, columns: t3 }), o3.push({ type: "tbody", rows: e3, columns: t3 }), n3 && o3.push({ type: "tfoot", rows: 1, columns: t3 }), this.components(o3); + } }, { isComponent: function(e3) { + if (e3.hasAttribute && e3.hasAttribute(a2)) + return { type: o2 }; + } }), view: p2.extend({ init: function() { + this.listenTo(this.model, "active", this.openModal); + }, openModal: function() { + var e3 = this, t3 = b2.rows, n3 = b2.columns, o3 = document.createElement("div"), a3 = document.createElement("div"); + a3.className = "modal-table-row"; + var c2 = document.createElement("label"); + c2.innerHTML = "No. of Rows", a3.appendChild(c2); + var l3 = document.createElement("input"); + l3.setAttribute("type", "number"), l3.setAttribute("value", t3), l3.onchange = function() { + t3 = l3.value; + }, a3.appendChild(l3), o3.appendChild(a3); + var i2 = document.createElement("div"); + i2.className = "modal-table-column"; + var s3 = document.createElement("label"); + s3.innerHTML = "No. of Columns", i2.appendChild(s3); + var u3 = document.createElement("input"); + u3.setAttribute("type", "number"), u3.setAttribute("value", n3), u3.onchange = function() { + n3 = u3.value; + }, i2.appendChild(u3), o3.appendChild(i2); + var p3 = document.createElement("div"); + p3.className = "modal-create-btn"; + var d3 = document.createElement("button"); + d3.setAttribute("type", "button"), d3.innerHTML = "Create Table", d3.onclick = function() { + e3.model.set("rows", t3), e3.model.set("columns", n3), r2.close(); + }, p3.appendChild(d3), o3.appendChild(p3); + var f2 = document.createElement("style"); + f2.innerHTML = "\n .gjs-mdl-dialog {\n width: 35%;\n }\n .modal-table-row, .modal-table-column {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 15px;\n }\n .modal-table-row label, .modal-table-column label {\n font-size: 14px;\n flex: 1;\n }\n .modal-table-row input, .modal-table-column input {\n flex: 1;\n height: 35px;\n border-radius: 10px;\n border: 1px solid #f5f5f5;\n padding: 2px 16px;\n color: #333333;\n }\n .modal-table-row input, .modal-table-column input:focus {\n outline: none\n }\n .modal-create-btn {\n text-align: right;\n }\n .modal-create-btn button {\n height: 35px;\n border-radius: 10px;\n border: none;\n cursor: pointer;\n padding: 0 10px;\n color: #333333;\n }\n .modal-create-btn button:focus {\n outline: none\n }\n ", o3.appendChild(f2), r2.setTitle("Add a New Table").setContent(o3).open(); + } }) }); + }; + function u(e2, t2) { + var r2 = Object.keys(e2); + if (Object.getOwnPropertySymbols) { + var n2 = Object.getOwnPropertySymbols(e2); + t2 && (n2 = n2.filter(function(t3) { + return Object.getOwnPropertyDescriptor(e2, t3).enumerable; + })), r2.push.apply(r2, n2); + } + return r2; + } + function p(e2) { + for (var t2 = 1; t2 < arguments.length; t2++) { + var r2 = arguments[t2] != null ? arguments[t2] : {}; + t2 % 2 ? u(Object(r2), true).forEach(function(t3) { + o()(e2, t3, r2[t3]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(r2)) : u(Object(r2)).forEach(function(t3) { + Object.defineProperty(e2, t3, Object.getOwnPropertyDescriptor(r2, t3)); + }); + } + return e2; + } + var b = function(e2, t2) { + var r2 = "tbody", n2 = t2.attrTableBody, o2 = t2.classTableBody, a2 = e2.getType("tbody"), c2 = a2.model, l2 = a2.view; + e2.addType(r2, { model: c2.extend({ defaults: p(p({}, c2.prototype.defaults), t2.bodyProps), init: function() { + var e3 = this.getAttributes(); + e3[n2] = 1, this.setAttributes(e3), o2 && this.addClass(o2); + } }, { isComponent: function(e3) { + if (e3.hasAttribute && e3.hasAttribute(n2)) + return { type: r2 }; + } }), view: l2.extend({}) }); + }; + function d(e2, t2) { + var r2 = Object.keys(e2); + if (Object.getOwnPropertySymbols) { + var n2 = Object.getOwnPropertySymbols(e2); + t2 && (n2 = n2.filter(function(t3) { + return Object.getOwnPropertyDescriptor(e2, t3).enumerable; + })), r2.push.apply(r2, n2); + } + return r2; + } + function f(e2) { + for (var t2 = 1; t2 < arguments.length; t2++) { + var r2 = arguments[t2] != null ? arguments[t2] : {}; + t2 % 2 ? d(Object(r2), true).forEach(function(t3) { + o()(e2, t3, r2[t3]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(r2)) : d(Object(r2)).forEach(function(t3) { + Object.defineProperty(e2, t3, Object.getOwnPropertyDescriptor(r2, t3)); + }); + } + return e2; + } + var y = function(e2, t2) { + var r2 = "thead", n2 = t2.attrTableHeader, o2 = t2.classTableHeader, a2 = e2.getType("thead"), c2 = a2.model, l2 = a2.view; + e2.addType(r2, { model: c2.extend({ defaults: f(f({}, c2.prototype.defaults), t2.headProps), init: function() { + var e3 = this.getAttributes(); + e3[n2] = 1, this.setAttributes(e3), o2 && this.addClass(o2); + } }, { isComponent: function(e3) { + if (e3.hasAttribute && e3.hasAttribute(n2)) + return { type: r2 }; + } }), view: l2.extend({}) }); + }; + function m(e2, t2) { + var r2 = Object.keys(e2); + if (Object.getOwnPropertySymbols) { + var n2 = Object.getOwnPropertySymbols(e2); + t2 && (n2 = n2.filter(function(t3) { + return Object.getOwnPropertyDescriptor(e2, t3).enumerable; + })), r2.push.apply(r2, n2); + } + return r2; + } + function O(e2) { + for (var t2 = 1; t2 < arguments.length; t2++) { + var r2 = arguments[t2] != null ? arguments[t2] : {}; + t2 % 2 ? m(Object(r2), true).forEach(function(t3) { + o()(e2, t3, r2[t3]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(r2)) : m(Object(r2)).forEach(function(t3) { + Object.defineProperty(e2, t3, Object.getOwnPropertyDescriptor(r2, t3)); + }); + } + return e2; + } + var h = function(e2, t2) { + var r2 = "tfoot", n2 = t2.attrTableFooter, o2 = t2.classTableFooter, a2 = e2.getType("tfoot"), c2 = a2.model, l2 = a2.view; + e2.addType(r2, { model: c2.extend({ defaults: O(O({}, c2.prototype.defaults), t2.footerProps), init: function() { + var e3 = this.getAttributes(); + e3[n2] = 1, this.setAttributes(e3), o2 && this.addClass(o2); + } }, { isComponent: function(e3) { + if (e3.hasAttribute && e3.hasAttribute(n2)) + return { type: r2 }; + } }), view: l2.extend({}) }); + }; + function g(e2, t2) { + var r2 = Object.keys(e2); + if (Object.getOwnPropertySymbols) { + var n2 = Object.getOwnPropertySymbols(e2); + t2 && (n2 = n2.filter(function(t3) { + return Object.getOwnPropertyDescriptor(e2, t3).enumerable; + })), r2.push.apply(r2, n2); + } + return r2; + } + function v(e2) { + for (var t2 = 1; t2 < arguments.length; t2++) { + var r2 = arguments[t2] != null ? arguments[t2] : {}; + t2 % 2 ? g(Object(r2), true).forEach(function(t3) { + o()(e2, t3, r2[t3]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(r2)) : g(Object(r2)).forEach(function(t3) { + Object.defineProperty(e2, t3, Object.getOwnPropertyDescriptor(r2, t3)); + }); + } + return e2; + } + var j = function(e2, t2) { + var r2 = "cell", n2 = t2.attrTableCell, o2 = t2.classTableCell, a2 = e2.getType("cell"), c2 = a2.model, l2 = a2.view; + e2.addType(r2, { model: c2.extend({ defaults: v(v({}, c2.prototype.defaults), {}, { editable: true, components: [{ tagName: "span", type: "text", attributes: { title: "cell" }, components: [{ type: "textnode", content: "Cell" }] }] }, t2.bodyProps), init: function() { + var e3 = this.getAttributes(); + e3[n2] = 1, this.setAttributes(e3), o2 && this.addClass(o2); + } }, { isComponent: function(e3) { + if (e3.hasAttribute && e3.hasAttribute(n2)) + return { type: r2 }; + } }), view: l2.extend({}) }); + }, w = function(e2) { + var t2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r2 = e2.DomComponents; + t2.modal = e2.Modal, h(r2, t2), y(r2, t2), b(r2, t2), s(r2, t2), j(r2, t2); + }; + function P(e2, t2) { + var r2 = Object.keys(e2); + if (Object.getOwnPropertySymbols) { + var n2 = Object.getOwnPropertySymbols(e2); + t2 && (n2 = n2.filter(function(t3) { + return Object.getOwnPropertyDescriptor(e2, t3).enumerable; + })), r2.push.apply(r2, n2); + } + return r2; + } + function T(e2) { + for (var t2 = 1; t2 < arguments.length; t2++) { + var r2 = arguments[t2] != null ? arguments[t2] : {}; + t2 % 2 ? P(Object(r2), true).forEach(function(t3) { + o()(e2, t3, r2[t3]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(r2)) : P(Object(r2)).forEach(function(t3) { + Object.defineProperty(e2, t3, Object.getOwnPropertyDescriptor(r2, t3)); + }); + } + return e2; + } + var x = function(e2) { + var t2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r2 = e2.BlockManager, n2 = t2.tableBlock, o2 = t2.style, a2 = "table", c2 = '<table data-gjs-type="'.concat(a2, '"></table>\n ').concat(o2 ? "<style>".concat(o2, "</style>") : ""); + n2 && r2.add("table", T({ label: "Table", attributes: { class: "fa fa-columns" }, category: "Tables", activate: 1, content: c2 }, n2)); + }; + function D(e2, t2) { + var r2 = Object.keys(e2); + if (Object.getOwnPropertySymbols) { + var n2 = Object.getOwnPropertySymbols(e2); + t2 && (n2 = n2.filter(function(t3) { + return Object.getOwnPropertyDescriptor(e2, t3).enumerable; + })), r2.push.apply(r2, n2); + } + return r2; + } + function C(e2) { + for (var t2 = 1; t2 < arguments.length; t2++) { + var r2 = arguments[t2] != null ? arguments[t2] : {}; + t2 % 2 ? D(Object(r2), true).forEach(function(t3) { + o()(e2, t3, r2[t3]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(r2)) : D(Object(r2)).forEach(function(t3) { + Object.defineProperty(e2, t3, Object.getOwnPropertyDescriptor(r2, t3)); + }); + } + return e2; + } + var A = "data-table", E = "data-tbody", S = "data-tfoot", k = "data-thead", M = "data-cell"; + t["default"] = function(e2) { + var t2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r2 = C(C({}, { tableBlock: {}, tableProps: { rows: 3, columns: 3, header: true, footer: true }, bodyProps: {}, headProps: {}, footerProps: {}, attrTable: A, attrTableBody: E, attrTableFooter: S, attrTableHeader: k, attrTableCell: M, classTable: "table", classTableBody: "table-body", classTableFooter: "table-footer", classTableHeader: "table-header", classTableCell: "table-cell", style: "\n table {\n width: 100%;\n border: 1px solid #cccccc;\n margin-bottom: 20px;\n }\n table td {\n padding: 8px;\n border: 1px solid #cccccc;\n }\n " }), t2); + w(e2, r2), x(e2, r2); + }; + }]); + }); + } + }); + + // server/web/source/node_modules/grapesjs-plugin-export/dist/grapesjs-plugin-export.min.js + var require_grapesjs_plugin_export_min = __commonJS({ + "server/web/source/node_modules/grapesjs-plugin-export/dist/grapesjs-plugin-export.min.js"(exports, module) { + !function(t, e) { + typeof exports == "object" && typeof module == "object" ? module.exports = e() : typeof define == "function" && define.amd ? define([], e) : typeof exports == "object" ? exports["grapesjs-plugin-export"] = e() : t["grapesjs-plugin-export"] = e(); + }(window, function() { + return function(t) { + var e = {}; + function r(n) { + if (e[n]) + return e[n].exports; + var i = e[n] = { i: n, l: false, exports: {} }; + return t[n].call(i.exports, i, i.exports, r), i.l = true, i.exports; + } + return r.m = t, r.c = e, r.d = function(t2, e2, n) { + r.o(t2, e2) || Object.defineProperty(t2, e2, { enumerable: true, get: n }); + }, r.r = function(t2) { + typeof Symbol != "undefined" && Symbol.toStringTag && Object.defineProperty(t2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t2, "__esModule", { value: true }); + }, r.t = function(t2, e2) { + if (1 & e2 && (t2 = r(t2)), 8 & e2) + return t2; + if (4 & e2 && typeof t2 == "object" && t2 && t2.__esModule) + return t2; + var n = /* @__PURE__ */ Object.create(null); + if (r.r(n), Object.defineProperty(n, "default", { enumerable: true, value: t2 }), 2 & e2 && typeof t2 != "string") + for (var i in t2) + r.d(n, i, function(e3) { + return t2[e3]; + }.bind(null, i)); + return n; + }, r.n = function(t2) { + var e2 = t2 && t2.__esModule ? function() { + return t2.default; + } : function() { + return t2; + }; + return r.d(e2, "a", e2), e2; + }, r.o = function(t2, e2) { + return Object.prototype.hasOwnProperty.call(t2, e2); + }, r.p = "", r(r.s = 101); + }([function(t, e, r) { + "use strict"; + var n = r(7), i = r(80), o = r(36), a = r(163), s = r(25); + function u(t2) { + return t2; + } + function f(t2, e2) { + for (var r2 = 0; r2 < t2.length; ++r2) + e2[r2] = 255 & t2.charCodeAt(r2); + return e2; + } + e.newBlob = function(t2, r2) { + e.checkSupport("blob"); + try { + return new Blob([t2], { type: r2 }); + } catch (e2) { + try { + var n2 = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)(); + return n2.append(t2), n2.getBlob(r2); + } catch (t3) { + throw new Error("Bug : can't construct the Blob."); + } + } + }; + var c = { stringifyByChunk: function(t2, e2, r2) { + var n2 = [], i2 = 0, o2 = t2.length; + if (o2 <= r2) + return String.fromCharCode.apply(null, t2); + for (; i2 < o2; ) + e2 === "array" || e2 === "nodebuffer" ? n2.push(String.fromCharCode.apply(null, t2.slice(i2, Math.min(i2 + r2, o2)))) : n2.push(String.fromCharCode.apply(null, t2.subarray(i2, Math.min(i2 + r2, o2)))), i2 += r2; + return n2.join(""); + }, stringifyByChar: function(t2) { + for (var e2 = "", r2 = 0; r2 < t2.length; r2++) + e2 += String.fromCharCode(t2[r2]); + return e2; + }, applyCanBeUsed: { uint8array: function() { + try { + return n.uint8array && String.fromCharCode.apply(null, new Uint8Array(1)).length === 1; + } catch (t2) { + return false; + } + }(), nodebuffer: function() { + try { + return n.nodebuffer && String.fromCharCode.apply(null, o.allocBuffer(1)).length === 1; + } catch (t2) { + return false; + } + }() } }; + function h(t2) { + var r2 = 65536, n2 = e.getTypeOf(t2), i2 = true; + if (n2 === "uint8array" ? i2 = c.applyCanBeUsed.uint8array : n2 === "nodebuffer" && (i2 = c.applyCanBeUsed.nodebuffer), i2) + for (; r2 > 1; ) + try { + return c.stringifyByChunk(t2, n2, r2); + } catch (t3) { + r2 = Math.floor(r2 / 2); + } + return c.stringifyByChar(t2); + } + function l(t2, e2) { + for (var r2 = 0; r2 < t2.length; r2++) + e2[r2] = t2[r2]; + return e2; + } + e.applyFromCharCode = h; + var d = {}; + d.string = { string: u, array: function(t2) { + return f(t2, new Array(t2.length)); + }, arraybuffer: function(t2) { + return d.string.uint8array(t2).buffer; + }, uint8array: function(t2) { + return f(t2, new Uint8Array(t2.length)); + }, nodebuffer: function(t2) { + return f(t2, o.allocBuffer(t2.length)); + } }, d.array = { string: h, array: u, arraybuffer: function(t2) { + return new Uint8Array(t2).buffer; + }, uint8array: function(t2) { + return new Uint8Array(t2); + }, nodebuffer: function(t2) { + return o.newBufferFrom(t2); + } }, d.arraybuffer = { string: function(t2) { + return h(new Uint8Array(t2)); + }, array: function(t2) { + return l(new Uint8Array(t2), new Array(t2.byteLength)); + }, arraybuffer: u, uint8array: function(t2) { + return new Uint8Array(t2); + }, nodebuffer: function(t2) { + return o.newBufferFrom(new Uint8Array(t2)); + } }, d.uint8array = { string: h, array: function(t2) { + return l(t2, new Array(t2.length)); + }, arraybuffer: function(t2) { + return t2.buffer; + }, uint8array: u, nodebuffer: function(t2) { + return o.newBufferFrom(t2); + } }, d.nodebuffer = { string: h, array: function(t2) { + return l(t2, new Array(t2.length)); + }, arraybuffer: function(t2) { + return d.nodebuffer.uint8array(t2).buffer; + }, uint8array: function(t2) { + return l(t2, new Uint8Array(t2.length)); + }, nodebuffer: u }, e.transformTo = function(t2, r2) { + if (r2 || (r2 = ""), !t2) + return r2; + e.checkSupport(t2); + var n2 = e.getTypeOf(r2); + return d[n2][t2](r2); + }, e.getTypeOf = function(t2) { + return typeof t2 == "string" ? "string" : Object.prototype.toString.call(t2) === "[object Array]" ? "array" : n.nodebuffer && o.isBuffer(t2) ? "nodebuffer" : n.uint8array && t2 instanceof Uint8Array ? "uint8array" : n.arraybuffer && t2 instanceof ArrayBuffer ? "arraybuffer" : void 0; + }, e.checkSupport = function(t2) { + if (!n[t2.toLowerCase()]) + throw new Error(t2 + " is not supported by this platform"); + }, e.MAX_VALUE_16BITS = 65535, e.MAX_VALUE_32BITS = -1, e.pretty = function(t2) { + var e2, r2, n2 = ""; + for (r2 = 0; r2 < (t2 || "").length; r2++) + n2 += "\\x" + ((e2 = t2.charCodeAt(r2)) < 16 ? "0" : "") + e2.toString(16).toUpperCase(); + return n2; + }, e.delay = function(t2, e2, r2) { + a(function() { + t2.apply(r2 || null, e2 || []); + }); + }, e.inherits = function(t2, e2) { + var r2 = function() { + }; + r2.prototype = e2.prototype, t2.prototype = new r2(); + }, e.extend = function() { + var t2, e2, r2 = {}; + for (t2 = 0; t2 < arguments.length; t2++) + for (e2 in arguments[t2]) + arguments[t2].hasOwnProperty(e2) && r2[e2] === void 0 && (r2[e2] = arguments[t2][e2]); + return r2; + }, e.prepareContent = function(t2, r2, o2, a2, u2) { + return s.Promise.resolve(r2).then(function(t3) { + return n.blob && (t3 instanceof Blob || ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(t3)) !== -1) && typeof FileReader != "undefined" ? new s.Promise(function(e2, r3) { + var n2 = new FileReader(); + n2.onload = function(t4) { + e2(t4.target.result); + }, n2.onerror = function(t4) { + r3(t4.target.error); + }, n2.readAsArrayBuffer(t3); + }) : t3; + }).then(function(r3) { + var c2 = e.getTypeOf(r3); + return c2 ? (c2 === "arraybuffer" ? r3 = e.transformTo("uint8array", r3) : c2 === "string" && (u2 ? r3 = i.decode(r3) : o2 && a2 !== true && (r3 = function(t3) { + return f(t3, n.uint8array ? new Uint8Array(t3.length) : new Array(t3.length)); + }(r3))), r3) : s.Promise.reject(new Error("Can't read the data of '" + t2 + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?")); + }); + }; + }, function(t, e) { + var r = t.exports = typeof window != "undefined" && window.Math == Math ? window : typeof self != "undefined" && self.Math == Math ? self : Function("return this")(); + typeof __g == "number" && (__g = r); + }, function(t, e, r) { + var n = r(43)("wks"), i = r(30), o = r(1).Symbol, a = typeof o == "function"; + (t.exports = function(t2) { + return n[t2] || (n[t2] = a && o[t2] || (a ? o : i)("Symbol." + t2)); + }).store = n; + }, function(t, e, r) { + "use strict"; + function n(t2) { + this.name = t2 || "default", this.streamInfo = {}, this.generatedError = null, this.extraStreamInfo = {}, this.isPaused = true, this.isFinished = false, this.isLocked = false, this._listeners = { data: [], end: [], error: [] }, this.previous = null; + } + n.prototype = { push: function(t2) { + this.emit("data", t2); + }, end: function() { + if (this.isFinished) + return false; + this.flush(); + try { + this.emit("end"), this.cleanUp(), this.isFinished = true; + } catch (t2) { + this.emit("error", t2); + } + return true; + }, error: function(t2) { + return !this.isFinished && (this.isPaused ? this.generatedError = t2 : (this.isFinished = true, this.emit("error", t2), this.previous && this.previous.error(t2), this.cleanUp()), true); + }, on: function(t2, e2) { + return this._listeners[t2].push(e2), this; + }, cleanUp: function() { + this.streamInfo = this.generatedError = this.extraStreamInfo = null, this._listeners = []; + }, emit: function(t2, e2) { + if (this._listeners[t2]) + for (var r2 = 0; r2 < this._listeners[t2].length; r2++) + this._listeners[t2][r2].call(this, e2); + }, pipe: function(t2) { + return t2.registerPrevious(this); + }, registerPrevious: function(t2) { + if (this.isLocked) + throw new Error("The stream '" + this + "' has already been used."); + this.streamInfo = t2.streamInfo, this.mergeStreamInfo(), this.previous = t2; + var e2 = this; + return t2.on("data", function(t3) { + e2.processChunk(t3); + }), t2.on("end", function() { + e2.end(); + }), t2.on("error", function(t3) { + e2.error(t3); + }), this; + }, pause: function() { + return !this.isPaused && !this.isFinished && (this.isPaused = true, this.previous && this.previous.pause(), true); + }, resume: function() { + if (!this.isPaused || this.isFinished) + return false; + this.isPaused = false; + var t2 = false; + return this.generatedError && (this.error(this.generatedError), t2 = true), this.previous && this.previous.resume(), !t2; + }, flush: function() { + }, processChunk: function(t2) { + this.push(t2); + }, withStreamInfo: function(t2, e2) { + return this.extraStreamInfo[t2] = e2, this.mergeStreamInfo(), this; + }, mergeStreamInfo: function() { + for (var t2 in this.extraStreamInfo) + this.extraStreamInfo.hasOwnProperty(t2) && (this.streamInfo[t2] = this.extraStreamInfo[t2]); + }, lock: function() { + if (this.isLocked) + throw new Error("The stream '" + this + "' has already been used."); + this.isLocked = true, this.previous && this.previous.lock(); + }, toString: function() { + var t2 = "Worker " + this.name; + return this.previous ? this.previous + " -> " + t2 : t2; + } }, t.exports = n; + }, function(t, e) { + var r = t.exports = { version: "2.5.7" }; + typeof __e == "number" && (__e = r); + }, function(t, e, r) { + "use strict"; + (function(t2) { + var n = r(151), i = r(152), o = r(75); + function a() { + return u.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823; + } + function s(t3, e2) { + if (a() < e2) + throw new RangeError("Invalid typed array length"); + return u.TYPED_ARRAY_SUPPORT ? (t3 = new Uint8Array(e2)).__proto__ = u.prototype : (t3 === null && (t3 = new u(e2)), t3.length = e2), t3; + } + function u(t3, e2, r2) { + if (!(u.TYPED_ARRAY_SUPPORT || this instanceof u)) + return new u(t3, e2, r2); + if (typeof t3 == "number") { + if (typeof e2 == "string") + throw new Error("If encoding is specified then the first argument must be a string"); + return h(this, t3); + } + return f(this, t3, e2, r2); + } + function f(t3, e2, r2, n2) { + if (typeof e2 == "number") + throw new TypeError('"value" argument must not be a number'); + return typeof ArrayBuffer != "undefined" && e2 instanceof ArrayBuffer ? function(t4, e3, r3, n3) { + if (e3.byteLength, r3 < 0 || e3.byteLength < r3) + throw new RangeError("'offset' is out of bounds"); + if (e3.byteLength < r3 + (n3 || 0)) + throw new RangeError("'length' is out of bounds"); + e3 = r3 === void 0 && n3 === void 0 ? new Uint8Array(e3) : n3 === void 0 ? new Uint8Array(e3, r3) : new Uint8Array(e3, r3, n3); + u.TYPED_ARRAY_SUPPORT ? (t4 = e3).__proto__ = u.prototype : t4 = l(t4, e3); + return t4; + }(t3, e2, r2, n2) : typeof e2 == "string" ? function(t4, e3, r3) { + typeof r3 == "string" && r3 !== "" || (r3 = "utf8"); + if (!u.isEncoding(r3)) + throw new TypeError('"encoding" must be a valid string encoding'); + var n3 = 0 | p(e3, r3), i2 = (t4 = s(t4, n3)).write(e3, r3); + i2 !== n3 && (t4 = t4.slice(0, i2)); + return t4; + }(t3, e2, r2) : function(t4, e3) { + if (u.isBuffer(e3)) { + var r3 = 0 | d(e3.length); + return (t4 = s(t4, r3)).length === 0 ? t4 : (e3.copy(t4, 0, 0, r3), t4); + } + if (e3) { + if (typeof ArrayBuffer != "undefined" && e3.buffer instanceof ArrayBuffer || "length" in e3) + return typeof e3.length != "number" || function(t5) { + return t5 != t5; + }(e3.length) ? s(t4, 0) : l(t4, e3); + if (e3.type === "Buffer" && o(e3.data)) + return l(t4, e3.data); + } + throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object."); + }(t3, e2); + } + function c(t3) { + if (typeof t3 != "number") + throw new TypeError('"size" argument must be a number'); + if (t3 < 0) + throw new RangeError('"size" argument must not be negative'); + } + function h(t3, e2) { + if (c(e2), t3 = s(t3, e2 < 0 ? 0 : 0 | d(e2)), !u.TYPED_ARRAY_SUPPORT) + for (var r2 = 0; r2 < e2; ++r2) + t3[r2] = 0; + return t3; + } + function l(t3, e2) { + var r2 = e2.length < 0 ? 0 : 0 | d(e2.length); + t3 = s(t3, r2); + for (var n2 = 0; n2 < r2; n2 += 1) + t3[n2] = 255 & e2[n2]; + return t3; + } + function d(t3) { + if (t3 >= a()) + throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + a().toString(16) + " bytes"); + return 0 | t3; + } + function p(t3, e2) { + if (u.isBuffer(t3)) + return t3.length; + if (typeof ArrayBuffer != "undefined" && typeof ArrayBuffer.isView == "function" && (ArrayBuffer.isView(t3) || t3 instanceof ArrayBuffer)) + return t3.byteLength; + typeof t3 != "string" && (t3 = "" + t3); + var r2 = t3.length; + if (r2 === 0) + return 0; + for (var n2 = false; ; ) + switch (e2) { + case "ascii": + case "latin1": + case "binary": + return r2; + case "utf8": + case "utf-8": + case void 0: + return F(t3).length; + case "ucs2": + case "ucs-2": + case "utf16le": + case "utf-16le": + return 2 * r2; + case "hex": + return r2 >>> 1; + case "base64": + return U(t3).length; + default: + if (n2) + return F(t3).length; + e2 = ("" + e2).toLowerCase(), n2 = true; + } + } + function m(t3, e2, r2) { + var n2 = t3[e2]; + t3[e2] = t3[r2], t3[r2] = n2; + } + function g(t3, e2, r2, n2, i2) { + if (t3.length === 0) + return -1; + if (typeof r2 == "string" ? (n2 = r2, r2 = 0) : r2 > 2147483647 ? r2 = 2147483647 : r2 < -2147483648 && (r2 = -2147483648), r2 = +r2, isNaN(r2) && (r2 = i2 ? 0 : t3.length - 1), r2 < 0 && (r2 = t3.length + r2), r2 >= t3.length) { + if (i2) + return -1; + r2 = t3.length - 1; + } else if (r2 < 0) { + if (!i2) + return -1; + r2 = 0; + } + if (typeof e2 == "string" && (e2 = u.from(e2, n2)), u.isBuffer(e2)) + return e2.length === 0 ? -1 : v(t3, e2, r2, n2, i2); + if (typeof e2 == "number") + return e2 &= 255, u.TYPED_ARRAY_SUPPORT && typeof Uint8Array.prototype.indexOf == "function" ? i2 ? Uint8Array.prototype.indexOf.call(t3, e2, r2) : Uint8Array.prototype.lastIndexOf.call(t3, e2, r2) : v(t3, [e2], r2, n2, i2); + throw new TypeError("val must be string, number or Buffer"); + } + function v(t3, e2, r2, n2, i2) { + var o2, a2 = 1, s2 = t3.length, u2 = e2.length; + if (n2 !== void 0 && ((n2 = String(n2).toLowerCase()) === "ucs2" || n2 === "ucs-2" || n2 === "utf16le" || n2 === "utf-16le")) { + if (t3.length < 2 || e2.length < 2) + return -1; + a2 = 2, s2 /= 2, u2 /= 2, r2 /= 2; + } + function f2(t4, e3) { + return a2 === 1 ? t4[e3] : t4.readUInt16BE(e3 * a2); + } + if (i2) { + var c2 = -1; + for (o2 = r2; o2 < s2; o2++) + if (f2(t3, o2) === f2(e2, c2 === -1 ? 0 : o2 - c2)) { + if (c2 === -1 && (c2 = o2), o2 - c2 + 1 === u2) + return c2 * a2; + } else + c2 !== -1 && (o2 -= o2 - c2), c2 = -1; + } else + for (r2 + u2 > s2 && (r2 = s2 - u2), o2 = r2; o2 >= 0; o2--) { + for (var h2 = true, l2 = 0; l2 < u2; l2++) + if (f2(t3, o2 + l2) !== f2(e2, l2)) { + h2 = false; + break; + } + if (h2) + return o2; + } + return -1; + } + function y(t3, e2, r2, n2) { + r2 = Number(r2) || 0; + var i2 = t3.length - r2; + n2 ? (n2 = Number(n2)) > i2 && (n2 = i2) : n2 = i2; + var o2 = e2.length; + if (o2 % 2 != 0) + throw new TypeError("Invalid hex string"); + n2 > o2 / 2 && (n2 = o2 / 2); + for (var a2 = 0; a2 < n2; ++a2) { + var s2 = parseInt(e2.substr(2 * a2, 2), 16); + if (isNaN(s2)) + return a2; + t3[r2 + a2] = s2; + } + return a2; + } + function _(t3, e2, r2, n2) { + return W(F(e2, t3.length - r2), t3, r2, n2); + } + function w(t3, e2, r2, n2) { + return W(function(t4) { + for (var e3 = [], r3 = 0; r3 < t4.length; ++r3) + e3.push(255 & t4.charCodeAt(r3)); + return e3; + }(e2), t3, r2, n2); + } + function b(t3, e2, r2, n2) { + return w(t3, e2, r2, n2); + } + function x(t3, e2, r2, n2) { + return W(U(e2), t3, r2, n2); + } + function k(t3, e2, r2, n2) { + return W(function(t4, e3) { + for (var r3, n3, i2, o2 = [], a2 = 0; a2 < t4.length && !((e3 -= 2) < 0); ++a2) + r3 = t4.charCodeAt(a2), n3 = r3 >> 8, i2 = r3 % 256, o2.push(i2), o2.push(n3); + return o2; + }(e2, t3.length - r2), t3, r2, n2); + } + function S(t3, e2, r2) { + return e2 === 0 && r2 === t3.length ? n.fromByteArray(t3) : n.fromByteArray(t3.slice(e2, r2)); + } + function E(t3, e2, r2) { + r2 = Math.min(t3.length, r2); + for (var n2 = [], i2 = e2; i2 < r2; ) { + var o2, a2, s2, u2, f2 = t3[i2], c2 = null, h2 = f2 > 239 ? 4 : f2 > 223 ? 3 : f2 > 191 ? 2 : 1; + if (i2 + h2 <= r2) + switch (h2) { + case 1: + f2 < 128 && (c2 = f2); + break; + case 2: + (192 & (o2 = t3[i2 + 1])) == 128 && (u2 = (31 & f2) << 6 | 63 & o2) > 127 && (c2 = u2); + break; + case 3: + o2 = t3[i2 + 1], a2 = t3[i2 + 2], (192 & o2) == 128 && (192 & a2) == 128 && (u2 = (15 & f2) << 12 | (63 & o2) << 6 | 63 & a2) > 2047 && (u2 < 55296 || u2 > 57343) && (c2 = u2); + break; + case 4: + o2 = t3[i2 + 1], a2 = t3[i2 + 2], s2 = t3[i2 + 3], (192 & o2) == 128 && (192 & a2) == 128 && (192 & s2) == 128 && (u2 = (15 & f2) << 18 | (63 & o2) << 12 | (63 & a2) << 6 | 63 & s2) > 65535 && u2 < 1114112 && (c2 = u2); + } + c2 === null ? (c2 = 65533, h2 = 1) : c2 > 65535 && (c2 -= 65536, n2.push(c2 >>> 10 & 1023 | 55296), c2 = 56320 | 1023 & c2), n2.push(c2), i2 += h2; + } + return function(t4) { + var e3 = t4.length; + if (e3 <= A) + return String.fromCharCode.apply(String, t4); + var r3 = "", n3 = 0; + for (; n3 < e3; ) + r3 += String.fromCharCode.apply(String, t4.slice(n3, n3 += A)); + return r3; + }(n2); + } + e.Buffer = u, e.SlowBuffer = function(t3) { + +t3 != t3 && (t3 = 0); + return u.alloc(+t3); + }, e.INSPECT_MAX_BYTES = 50, u.TYPED_ARRAY_SUPPORT = t2.TYPED_ARRAY_SUPPORT !== void 0 ? t2.TYPED_ARRAY_SUPPORT : function() { + try { + var t3 = new Uint8Array(1); + return t3.__proto__ = { __proto__: Uint8Array.prototype, foo: function() { + return 42; + } }, t3.foo() === 42 && typeof t3.subarray == "function" && t3.subarray(1, 1).byteLength === 0; + } catch (t4) { + return false; + } + }(), e.kMaxLength = a(), u.poolSize = 8192, u._augment = function(t3) { + return t3.__proto__ = u.prototype, t3; + }, u.from = function(t3, e2, r2) { + return f(null, t3, e2, r2); + }, u.TYPED_ARRAY_SUPPORT && (u.prototype.__proto__ = Uint8Array.prototype, u.__proto__ = Uint8Array, typeof Symbol != "undefined" && Symbol.species && u[Symbol.species] === u && Object.defineProperty(u, Symbol.species, { value: null, configurable: true })), u.alloc = function(t3, e2, r2) { + return function(t4, e3, r3, n2) { + return c(e3), e3 <= 0 ? s(t4, e3) : r3 !== void 0 ? typeof n2 == "string" ? s(t4, e3).fill(r3, n2) : s(t4, e3).fill(r3) : s(t4, e3); + }(null, t3, e2, r2); + }, u.allocUnsafe = function(t3) { + return h(null, t3); + }, u.allocUnsafeSlow = function(t3) { + return h(null, t3); + }, u.isBuffer = function(t3) { + return !(t3 == null || !t3._isBuffer); + }, u.compare = function(t3, e2) { + if (!u.isBuffer(t3) || !u.isBuffer(e2)) + throw new TypeError("Arguments must be Buffers"); + if (t3 === e2) + return 0; + for (var r2 = t3.length, n2 = e2.length, i2 = 0, o2 = Math.min(r2, n2); i2 < o2; ++i2) + if (t3[i2] !== e2[i2]) { + r2 = t3[i2], n2 = e2[i2]; + break; + } + return r2 < n2 ? -1 : n2 < r2 ? 1 : 0; + }, u.isEncoding = function(t3) { + switch (String(t3).toLowerCase()) { + case "hex": + case "utf8": + case "utf-8": + case "ascii": + case "latin1": + case "binary": + case "base64": + case "ucs2": + case "ucs-2": + case "utf16le": + case "utf-16le": + return true; + default: + return false; + } + }, u.concat = function(t3, e2) { + if (!o(t3)) + throw new TypeError('"list" argument must be an Array of Buffers'); + if (t3.length === 0) + return u.alloc(0); + var r2; + if (e2 === void 0) + for (e2 = 0, r2 = 0; r2 < t3.length; ++r2) + e2 += t3[r2].length; + var n2 = u.allocUnsafe(e2), i2 = 0; + for (r2 = 0; r2 < t3.length; ++r2) { + var a2 = t3[r2]; + if (!u.isBuffer(a2)) + throw new TypeError('"list" argument must be an Array of Buffers'); + a2.copy(n2, i2), i2 += a2.length; + } + return n2; + }, u.byteLength = p, u.prototype._isBuffer = true, u.prototype.swap16 = function() { + var t3 = this.length; + if (t3 % 2 != 0) + throw new RangeError("Buffer size must be a multiple of 16-bits"); + for (var e2 = 0; e2 < t3; e2 += 2) + m(this, e2, e2 + 1); + return this; + }, u.prototype.swap32 = function() { + var t3 = this.length; + if (t3 % 4 != 0) + throw new RangeError("Buffer size must be a multiple of 32-bits"); + for (var e2 = 0; e2 < t3; e2 += 4) + m(this, e2, e2 + 3), m(this, e2 + 1, e2 + 2); + return this; + }, u.prototype.swap64 = function() { + var t3 = this.length; + if (t3 % 8 != 0) + throw new RangeError("Buffer size must be a multiple of 64-bits"); + for (var e2 = 0; e2 < t3; e2 += 8) + m(this, e2, e2 + 7), m(this, e2 + 1, e2 + 6), m(this, e2 + 2, e2 + 5), m(this, e2 + 3, e2 + 4); + return this; + }, u.prototype.toString = function() { + var t3 = 0 | this.length; + return t3 === 0 ? "" : arguments.length === 0 ? E(this, 0, t3) : function(t4, e2, r2) { + var n2 = false; + if ((e2 === void 0 || e2 < 0) && (e2 = 0), e2 > this.length) + return ""; + if ((r2 === void 0 || r2 > this.length) && (r2 = this.length), r2 <= 0) + return ""; + if ((r2 >>>= 0) <= (e2 >>>= 0)) + return ""; + for (t4 || (t4 = "utf8"); ; ) + switch (t4) { + case "hex": + return O(this, e2, r2); + case "utf8": + case "utf-8": + return E(this, e2, r2); + case "ascii": + return T(this, e2, r2); + case "latin1": + case "binary": + return C(this, e2, r2); + case "base64": + return S(this, e2, r2); + case "ucs2": + case "ucs-2": + case "utf16le": + case "utf-16le": + return R(this, e2, r2); + default: + if (n2) + throw new TypeError("Unknown encoding: " + t4); + t4 = (t4 + "").toLowerCase(), n2 = true; + } + }.apply(this, arguments); + }, u.prototype.equals = function(t3) { + if (!u.isBuffer(t3)) + throw new TypeError("Argument must be a Buffer"); + return this === t3 || u.compare(this, t3) === 0; + }, u.prototype.inspect = function() { + var t3 = "", r2 = e.INSPECT_MAX_BYTES; + return this.length > 0 && (t3 = this.toString("hex", 0, r2).match(/.{2}/g).join(" "), this.length > r2 && (t3 += " ... ")), "<Buffer " + t3 + ">"; + }, u.prototype.compare = function(t3, e2, r2, n2, i2) { + if (!u.isBuffer(t3)) + throw new TypeError("Argument must be a Buffer"); + if (e2 === void 0 && (e2 = 0), r2 === void 0 && (r2 = t3 ? t3.length : 0), n2 === void 0 && (n2 = 0), i2 === void 0 && (i2 = this.length), e2 < 0 || r2 > t3.length || n2 < 0 || i2 > this.length) + throw new RangeError("out of range index"); + if (n2 >= i2 && e2 >= r2) + return 0; + if (n2 >= i2) + return -1; + if (e2 >= r2) + return 1; + if (e2 >>>= 0, r2 >>>= 0, n2 >>>= 0, i2 >>>= 0, this === t3) + return 0; + for (var o2 = i2 - n2, a2 = r2 - e2, s2 = Math.min(o2, a2), f2 = this.slice(n2, i2), c2 = t3.slice(e2, r2), h2 = 0; h2 < s2; ++h2) + if (f2[h2] !== c2[h2]) { + o2 = f2[h2], a2 = c2[h2]; + break; + } + return o2 < a2 ? -1 : a2 < o2 ? 1 : 0; + }, u.prototype.includes = function(t3, e2, r2) { + return this.indexOf(t3, e2, r2) !== -1; + }, u.prototype.indexOf = function(t3, e2, r2) { + return g(this, t3, e2, r2, true); + }, u.prototype.lastIndexOf = function(t3, e2, r2) { + return g(this, t3, e2, r2, false); + }, u.prototype.write = function(t3, e2, r2, n2) { + if (e2 === void 0) + n2 = "utf8", r2 = this.length, e2 = 0; + else if (r2 === void 0 && typeof e2 == "string") + n2 = e2, r2 = this.length, e2 = 0; + else { + if (!isFinite(e2)) + throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported"); + e2 |= 0, isFinite(r2) ? (r2 |= 0, n2 === void 0 && (n2 = "utf8")) : (n2 = r2, r2 = void 0); + } + var i2 = this.length - e2; + if ((r2 === void 0 || r2 > i2) && (r2 = i2), t3.length > 0 && (r2 < 0 || e2 < 0) || e2 > this.length) + throw new RangeError("Attempt to write outside buffer bounds"); + n2 || (n2 = "utf8"); + for (var o2 = false; ; ) + switch (n2) { + case "hex": + return y(this, t3, e2, r2); + case "utf8": + case "utf-8": + return _(this, t3, e2, r2); + case "ascii": + return w(this, t3, e2, r2); + case "latin1": + case "binary": + return b(this, t3, e2, r2); + case "base64": + return x(this, t3, e2, r2); + case "ucs2": + case "ucs-2": + case "utf16le": + case "utf-16le": + return k(this, t3, e2, r2); + default: + if (o2) + throw new TypeError("Unknown encoding: " + n2); + n2 = ("" + n2).toLowerCase(), o2 = true; + } + }, u.prototype.toJSON = function() { + return { type: "Buffer", data: Array.prototype.slice.call(this._arr || this, 0) }; + }; + var A = 4096; + function T(t3, e2, r2) { + var n2 = ""; + r2 = Math.min(t3.length, r2); + for (var i2 = e2; i2 < r2; ++i2) + n2 += String.fromCharCode(127 & t3[i2]); + return n2; + } + function C(t3, e2, r2) { + var n2 = ""; + r2 = Math.min(t3.length, r2); + for (var i2 = e2; i2 < r2; ++i2) + n2 += String.fromCharCode(t3[i2]); + return n2; + } + function O(t3, e2, r2) { + var n2 = t3.length; + (!e2 || e2 < 0) && (e2 = 0), (!r2 || r2 < 0 || r2 > n2) && (r2 = n2); + for (var i2 = "", o2 = e2; o2 < r2; ++o2) + i2 += M(t3[o2]); + return i2; + } + function R(t3, e2, r2) { + for (var n2 = t3.slice(e2, r2), i2 = "", o2 = 0; o2 < n2.length; o2 += 2) + i2 += String.fromCharCode(n2[o2] + 256 * n2[o2 + 1]); + return i2; + } + function I(t3, e2, r2) { + if (t3 % 1 != 0 || t3 < 0) + throw new RangeError("offset is not uint"); + if (t3 + e2 > r2) + throw new RangeError("Trying to access beyond buffer length"); + } + function B(t3, e2, r2, n2, i2, o2) { + if (!u.isBuffer(t3)) + throw new TypeError('"buffer" argument must be a Buffer instance'); + if (e2 > i2 || e2 < o2) + throw new RangeError('"value" argument is out of bounds'); + if (r2 + n2 > t3.length) + throw new RangeError("Index out of range"); + } + function L(t3, e2, r2, n2) { + e2 < 0 && (e2 = 65535 + e2 + 1); + for (var i2 = 0, o2 = Math.min(t3.length - r2, 2); i2 < o2; ++i2) + t3[r2 + i2] = (e2 & 255 << 8 * (n2 ? i2 : 1 - i2)) >>> 8 * (n2 ? i2 : 1 - i2); + } + function P(t3, e2, r2, n2) { + e2 < 0 && (e2 = 4294967295 + e2 + 1); + for (var i2 = 0, o2 = Math.min(t3.length - r2, 4); i2 < o2; ++i2) + t3[r2 + i2] = e2 >>> 8 * (n2 ? i2 : 3 - i2) & 255; + } + function z(t3, e2, r2, n2, i2, o2) { + if (r2 + n2 > t3.length) + throw new RangeError("Index out of range"); + if (r2 < 0) + throw new RangeError("Index out of range"); + } + function j(t3, e2, r2, n2, o2) { + return o2 || z(t3, 0, r2, 4), i.write(t3, e2, r2, n2, 23, 4), r2 + 4; + } + function D(t3, e2, r2, n2, o2) { + return o2 || z(t3, 0, r2, 8), i.write(t3, e2, r2, n2, 52, 8), r2 + 8; + } + u.prototype.slice = function(t3, e2) { + var r2, n2 = this.length; + if (t3 = ~~t3, e2 = e2 === void 0 ? n2 : ~~e2, t3 < 0 ? (t3 += n2) < 0 && (t3 = 0) : t3 > n2 && (t3 = n2), e2 < 0 ? (e2 += n2) < 0 && (e2 = 0) : e2 > n2 && (e2 = n2), e2 < t3 && (e2 = t3), u.TYPED_ARRAY_SUPPORT) + (r2 = this.subarray(t3, e2)).__proto__ = u.prototype; + else { + var i2 = e2 - t3; + r2 = new u(i2, void 0); + for (var o2 = 0; o2 < i2; ++o2) + r2[o2] = this[o2 + t3]; + } + return r2; + }, u.prototype.readUIntLE = function(t3, e2, r2) { + t3 |= 0, e2 |= 0, r2 || I(t3, e2, this.length); + for (var n2 = this[t3], i2 = 1, o2 = 0; ++o2 < e2 && (i2 *= 256); ) + n2 += this[t3 + o2] * i2; + return n2; + }, u.prototype.readUIntBE = function(t3, e2, r2) { + t3 |= 0, e2 |= 0, r2 || I(t3, e2, this.length); + for (var n2 = this[t3 + --e2], i2 = 1; e2 > 0 && (i2 *= 256); ) + n2 += this[t3 + --e2] * i2; + return n2; + }, u.prototype.readUInt8 = function(t3, e2) { + return e2 || I(t3, 1, this.length), this[t3]; + }, u.prototype.readUInt16LE = function(t3, e2) { + return e2 || I(t3, 2, this.length), this[t3] | this[t3 + 1] << 8; + }, u.prototype.readUInt16BE = function(t3, e2) { + return e2 || I(t3, 2, this.length), this[t3] << 8 | this[t3 + 1]; + }, u.prototype.readUInt32LE = function(t3, e2) { + return e2 || I(t3, 4, this.length), (this[t3] | this[t3 + 1] << 8 | this[t3 + 2] << 16) + 16777216 * this[t3 + 3]; + }, u.prototype.readUInt32BE = function(t3, e2) { + return e2 || I(t3, 4, this.length), 16777216 * this[t3] + (this[t3 + 1] << 16 | this[t3 + 2] << 8 | this[t3 + 3]); + }, u.prototype.readIntLE = function(t3, e2, r2) { + t3 |= 0, e2 |= 0, r2 || I(t3, e2, this.length); + for (var n2 = this[t3], i2 = 1, o2 = 0; ++o2 < e2 && (i2 *= 256); ) + n2 += this[t3 + o2] * i2; + return n2 >= (i2 *= 128) && (n2 -= Math.pow(2, 8 * e2)), n2; + }, u.prototype.readIntBE = function(t3, e2, r2) { + t3 |= 0, e2 |= 0, r2 || I(t3, e2, this.length); + for (var n2 = e2, i2 = 1, o2 = this[t3 + --n2]; n2 > 0 && (i2 *= 256); ) + o2 += this[t3 + --n2] * i2; + return o2 >= (i2 *= 128) && (o2 -= Math.pow(2, 8 * e2)), o2; + }, u.prototype.readInt8 = function(t3, e2) { + return e2 || I(t3, 1, this.length), 128 & this[t3] ? -1 * (255 - this[t3] + 1) : this[t3]; + }, u.prototype.readInt16LE = function(t3, e2) { + e2 || I(t3, 2, this.length); + var r2 = this[t3] | this[t3 + 1] << 8; + return 32768 & r2 ? 4294901760 | r2 : r2; + }, u.prototype.readInt16BE = function(t3, e2) { + e2 || I(t3, 2, this.length); + var r2 = this[t3 + 1] | this[t3] << 8; + return 32768 & r2 ? 4294901760 | r2 : r2; + }, u.prototype.readInt32LE = function(t3, e2) { + return e2 || I(t3, 4, this.length), this[t3] | this[t3 + 1] << 8 | this[t3 + 2] << 16 | this[t3 + 3] << 24; + }, u.prototype.readInt32BE = function(t3, e2) { + return e2 || I(t3, 4, this.length), this[t3] << 24 | this[t3 + 1] << 16 | this[t3 + 2] << 8 | this[t3 + 3]; + }, u.prototype.readFloatLE = function(t3, e2) { + return e2 || I(t3, 4, this.length), i.read(this, t3, true, 23, 4); + }, u.prototype.readFloatBE = function(t3, e2) { + return e2 || I(t3, 4, this.length), i.read(this, t3, false, 23, 4); + }, u.prototype.readDoubleLE = function(t3, e2) { + return e2 || I(t3, 8, this.length), i.read(this, t3, true, 52, 8); + }, u.prototype.readDoubleBE = function(t3, e2) { + return e2 || I(t3, 8, this.length), i.read(this, t3, false, 52, 8); + }, u.prototype.writeUIntLE = function(t3, e2, r2, n2) { + (t3 = +t3, e2 |= 0, r2 |= 0, n2) || B(this, t3, e2, r2, Math.pow(2, 8 * r2) - 1, 0); + var i2 = 1, o2 = 0; + for (this[e2] = 255 & t3; ++o2 < r2 && (i2 *= 256); ) + this[e2 + o2] = t3 / i2 & 255; + return e2 + r2; + }, u.prototype.writeUIntBE = function(t3, e2, r2, n2) { + (t3 = +t3, e2 |= 0, r2 |= 0, n2) || B(this, t3, e2, r2, Math.pow(2, 8 * r2) - 1, 0); + var i2 = r2 - 1, o2 = 1; + for (this[e2 + i2] = 255 & t3; --i2 >= 0 && (o2 *= 256); ) + this[e2 + i2] = t3 / o2 & 255; + return e2 + r2; + }, u.prototype.writeUInt8 = function(t3, e2, r2) { + return t3 = +t3, e2 |= 0, r2 || B(this, t3, e2, 1, 255, 0), u.TYPED_ARRAY_SUPPORT || (t3 = Math.floor(t3)), this[e2] = 255 & t3, e2 + 1; + }, u.prototype.writeUInt16LE = function(t3, e2, r2) { + return t3 = +t3, e2 |= 0, r2 || B(this, t3, e2, 2, 65535, 0), u.TYPED_ARRAY_SUPPORT ? (this[e2] = 255 & t3, this[e2 + 1] = t3 >>> 8) : L(this, t3, e2, true), e2 + 2; + }, u.prototype.writeUInt16BE = function(t3, e2, r2) { + return t3 = +t3, e2 |= 0, r2 || B(this, t3, e2, 2, 65535, 0), u.TYPED_ARRAY_SUPPORT ? (this[e2] = t3 >>> 8, this[e2 + 1] = 255 & t3) : L(this, t3, e2, false), e2 + 2; + }, u.prototype.writeUInt32LE = function(t3, e2, r2) { + return t3 = +t3, e2 |= 0, r2 || B(this, t3, e2, 4, 4294967295, 0), u.TYPED_ARRAY_SUPPORT ? (this[e2 + 3] = t3 >>> 24, this[e2 + 2] = t3 >>> 16, this[e2 + 1] = t3 >>> 8, this[e2] = 255 & t3) : P(this, t3, e2, true), e2 + 4; + }, u.prototype.writeUInt32BE = function(t3, e2, r2) { + return t3 = +t3, e2 |= 0, r2 || B(this, t3, e2, 4, 4294967295, 0), u.TYPED_ARRAY_SUPPORT ? (this[e2] = t3 >>> 24, this[e2 + 1] = t3 >>> 16, this[e2 + 2] = t3 >>> 8, this[e2 + 3] = 255 & t3) : P(this, t3, e2, false), e2 + 4; + }, u.prototype.writeIntLE = function(t3, e2, r2, n2) { + if (t3 = +t3, e2 |= 0, !n2) { + var i2 = Math.pow(2, 8 * r2 - 1); + B(this, t3, e2, r2, i2 - 1, -i2); + } + var o2 = 0, a2 = 1, s2 = 0; + for (this[e2] = 255 & t3; ++o2 < r2 && (a2 *= 256); ) + t3 < 0 && s2 === 0 && this[e2 + o2 - 1] !== 0 && (s2 = 1), this[e2 + o2] = (t3 / a2 >> 0) - s2 & 255; + return e2 + r2; + }, u.prototype.writeIntBE = function(t3, e2, r2, n2) { + if (t3 = +t3, e2 |= 0, !n2) { + var i2 = Math.pow(2, 8 * r2 - 1); + B(this, t3, e2, r2, i2 - 1, -i2); + } + var o2 = r2 - 1, a2 = 1, s2 = 0; + for (this[e2 + o2] = 255 & t3; --o2 >= 0 && (a2 *= 256); ) + t3 < 0 && s2 === 0 && this[e2 + o2 + 1] !== 0 && (s2 = 1), this[e2 + o2] = (t3 / a2 >> 0) - s2 & 255; + return e2 + r2; + }, u.prototype.writeInt8 = function(t3, e2, r2) { + return t3 = +t3, e2 |= 0, r2 || B(this, t3, e2, 1, 127, -128), u.TYPED_ARRAY_SUPPORT || (t3 = Math.floor(t3)), t3 < 0 && (t3 = 255 + t3 + 1), this[e2] = 255 & t3, e2 + 1; + }, u.prototype.writeInt16LE = function(t3, e2, r2) { + return t3 = +t3, e2 |= 0, r2 || B(this, t3, e2, 2, 32767, -32768), u.TYPED_ARRAY_SUPPORT ? (this[e2] = 255 & t3, this[e2 + 1] = t3 >>> 8) : L(this, t3, e2, true), e2 + 2; + }, u.prototype.writeInt16BE = function(t3, e2, r2) { + return t3 = +t3, e2 |= 0, r2 || B(this, t3, e2, 2, 32767, -32768), u.TYPED_ARRAY_SUPPORT ? (this[e2] = t3 >>> 8, this[e2 + 1] = 255 & t3) : L(this, t3, e2, false), e2 + 2; + }, u.prototype.writeInt32LE = function(t3, e2, r2) { + return t3 = +t3, e2 |= 0, r2 || B(this, t3, e2, 4, 2147483647, -2147483648), u.TYPED_ARRAY_SUPPORT ? (this[e2] = 255 & t3, this[e2 + 1] = t3 >>> 8, this[e2 + 2] = t3 >>> 16, this[e2 + 3] = t3 >>> 24) : P(this, t3, e2, true), e2 + 4; + }, u.prototype.writeInt32BE = function(t3, e2, r2) { + return t3 = +t3, e2 |= 0, r2 || B(this, t3, e2, 4, 2147483647, -2147483648), t3 < 0 && (t3 = 4294967295 + t3 + 1), u.TYPED_ARRAY_SUPPORT ? (this[e2] = t3 >>> 24, this[e2 + 1] = t3 >>> 16, this[e2 + 2] = t3 >>> 8, this[e2 + 3] = 255 & t3) : P(this, t3, e2, false), e2 + 4; + }, u.prototype.writeFloatLE = function(t3, e2, r2) { + return j(this, t3, e2, true, r2); + }, u.prototype.writeFloatBE = function(t3, e2, r2) { + return j(this, t3, e2, false, r2); + }, u.prototype.writeDoubleLE = function(t3, e2, r2) { + return D(this, t3, e2, true, r2); + }, u.prototype.writeDoubleBE = function(t3, e2, r2) { + return D(this, t3, e2, false, r2); + }, u.prototype.copy = function(t3, e2, r2, n2) { + if (r2 || (r2 = 0), n2 || n2 === 0 || (n2 = this.length), e2 >= t3.length && (e2 = t3.length), e2 || (e2 = 0), n2 > 0 && n2 < r2 && (n2 = r2), n2 === r2) + return 0; + if (t3.length === 0 || this.length === 0) + return 0; + if (e2 < 0) + throw new RangeError("targetStart out of bounds"); + if (r2 < 0 || r2 >= this.length) + throw new RangeError("sourceStart out of bounds"); + if (n2 < 0) + throw new RangeError("sourceEnd out of bounds"); + n2 > this.length && (n2 = this.length), t3.length - e2 < n2 - r2 && (n2 = t3.length - e2 + r2); + var i2, o2 = n2 - r2; + if (this === t3 && r2 < e2 && e2 < n2) + for (i2 = o2 - 1; i2 >= 0; --i2) + t3[i2 + e2] = this[i2 + r2]; + else if (o2 < 1e3 || !u.TYPED_ARRAY_SUPPORT) + for (i2 = 0; i2 < o2; ++i2) + t3[i2 + e2] = this[i2 + r2]; + else + Uint8Array.prototype.set.call(t3, this.subarray(r2, r2 + o2), e2); + return o2; + }, u.prototype.fill = function(t3, e2, r2, n2) { + if (typeof t3 == "string") { + if (typeof e2 == "string" ? (n2 = e2, e2 = 0, r2 = this.length) : typeof r2 == "string" && (n2 = r2, r2 = this.length), t3.length === 1) { + var i2 = t3.charCodeAt(0); + i2 < 256 && (t3 = i2); + } + if (n2 !== void 0 && typeof n2 != "string") + throw new TypeError("encoding must be a string"); + if (typeof n2 == "string" && !u.isEncoding(n2)) + throw new TypeError("Unknown encoding: " + n2); + } else + typeof t3 == "number" && (t3 &= 255); + if (e2 < 0 || this.length < e2 || this.length < r2) + throw new RangeError("Out of range index"); + if (r2 <= e2) + return this; + var o2; + if (e2 >>>= 0, r2 = r2 === void 0 ? this.length : r2 >>> 0, t3 || (t3 = 0), typeof t3 == "number") + for (o2 = e2; o2 < r2; ++o2) + this[o2] = t3; + else { + var a2 = u.isBuffer(t3) ? t3 : F(new u(t3, n2).toString()), s2 = a2.length; + for (o2 = 0; o2 < r2 - e2; ++o2) + this[o2 + e2] = a2[o2 % s2]; + } + return this; + }; + var N = /[^+\/0-9A-Za-z-_]/g; + function M(t3) { + return t3 < 16 ? "0" + t3.toString(16) : t3.toString(16); + } + function F(t3, e2) { + var r2; + e2 = e2 || 1 / 0; + for (var n2 = t3.length, i2 = null, o2 = [], a2 = 0; a2 < n2; ++a2) { + if ((r2 = t3.charCodeAt(a2)) > 55295 && r2 < 57344) { + if (!i2) { + if (r2 > 56319) { + (e2 -= 3) > -1 && o2.push(239, 191, 189); + continue; + } + if (a2 + 1 === n2) { + (e2 -= 3) > -1 && o2.push(239, 191, 189); + continue; + } + i2 = r2; + continue; + } + if (r2 < 56320) { + (e2 -= 3) > -1 && o2.push(239, 191, 189), i2 = r2; + continue; + } + r2 = 65536 + (i2 - 55296 << 10 | r2 - 56320); + } else + i2 && (e2 -= 3) > -1 && o2.push(239, 191, 189); + if (i2 = null, r2 < 128) { + if ((e2 -= 1) < 0) + break; + o2.push(r2); + } else if (r2 < 2048) { + if ((e2 -= 2) < 0) + break; + o2.push(r2 >> 6 | 192, 63 & r2 | 128); + } else if (r2 < 65536) { + if ((e2 -= 3) < 0) + break; + o2.push(r2 >> 12 | 224, r2 >> 6 & 63 | 128, 63 & r2 | 128); + } else { + if (!(r2 < 1114112)) + throw new Error("Invalid code point"); + if ((e2 -= 4) < 0) + break; + o2.push(r2 >> 18 | 240, r2 >> 12 & 63 | 128, r2 >> 6 & 63 | 128, 63 & r2 | 128); + } + } + return o2; + } + function U(t3) { + return n.toByteArray(function(t4) { + if ((t4 = function(t5) { + return t5.trim ? t5.trim() : t5.replace(/^\s+|\s+$/g, ""); + }(t4).replace(N, "")).length < 2) + return ""; + for (; t4.length % 4 != 0; ) + t4 += "="; + return t4; + }(t3)); + } + function W(t3, e2, r2, n2) { + for (var i2 = 0; i2 < n2 && !(i2 + r2 >= e2.length || i2 >= t3.length); ++i2) + e2[i2 + r2] = t3[i2]; + return i2; + } + }).call(this, r(23)); + }, function(t, e, r) { + var n = r(11); + t.exports = function(t2) { + if (!n(t2)) + throw TypeError(t2 + " is not an object!"); + return t2; + }; + }, function(t, e, r) { + "use strict"; + (function(t2) { + if (e.base64 = true, e.array = true, e.string = true, e.arraybuffer = typeof ArrayBuffer != "undefined" && typeof Uint8Array != "undefined", e.nodebuffer = t2 !== void 0, e.uint8array = typeof Uint8Array != "undefined", typeof ArrayBuffer == "undefined") + e.blob = false; + else { + var n = new ArrayBuffer(0); + try { + e.blob = new Blob([n], { type: "application/zip" }).size === 0; + } catch (t3) { + try { + var i = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)(); + i.append(n), e.blob = i.getBlob("application/zip").size === 0; + } catch (t4) { + e.blob = false; + } + } + } + try { + e.nodestream = !!r(76).Readable; + } catch (t3) { + e.nodestream = false; + } + }).call(this, r(5).Buffer); + }, function(t, e, r) { + "use strict"; + var n = typeof Uint8Array != "undefined" && typeof Uint16Array != "undefined" && typeof Int32Array != "undefined"; + function i(t2, e2) { + return Object.prototype.hasOwnProperty.call(t2, e2); + } + e.assign = function(t2) { + for (var e2 = Array.prototype.slice.call(arguments, 1); e2.length; ) { + var r2 = e2.shift(); + if (r2) { + if (typeof r2 != "object") + throw new TypeError(r2 + "must be non-object"); + for (var n2 in r2) + i(r2, n2) && (t2[n2] = r2[n2]); + } + } + return t2; + }, e.shrinkBuf = function(t2, e2) { + return t2.length === e2 ? t2 : t2.subarray ? t2.subarray(0, e2) : (t2.length = e2, t2); + }; + var o = { arraySet: function(t2, e2, r2, n2, i2) { + if (e2.subarray && t2.subarray) + t2.set(e2.subarray(r2, r2 + n2), i2); + else + for (var o2 = 0; o2 < n2; o2++) + t2[i2 + o2] = e2[r2 + o2]; + }, flattenChunks: function(t2) { + var e2, r2, n2, i2, o2, a2; + for (n2 = 0, e2 = 0, r2 = t2.length; e2 < r2; e2++) + n2 += t2[e2].length; + for (a2 = new Uint8Array(n2), i2 = 0, e2 = 0, r2 = t2.length; e2 < r2; e2++) + o2 = t2[e2], a2.set(o2, i2), i2 += o2.length; + return a2; + } }, a = { arraySet: function(t2, e2, r2, n2, i2) { + for (var o2 = 0; o2 < n2; o2++) + t2[i2 + o2] = e2[r2 + o2]; + }, flattenChunks: function(t2) { + return [].concat.apply([], t2); + } }; + e.setTyped = function(t2) { + t2 ? (e.Buf8 = Uint8Array, e.Buf16 = Uint16Array, e.Buf32 = Int32Array, e.assign(e, o)) : (e.Buf8 = Array, e.Buf16 = Array, e.Buf32 = Array, e.assign(e, a)); + }, e.setTyped(n); + }, function(t, e, r) { + var n = r(10), i = r(28); + t.exports = r(12) ? function(t2, e2, r2) { + return n.f(t2, e2, i(1, r2)); + } : function(t2, e2, r2) { + return t2[e2] = r2, t2; + }; + }, function(t, e, r) { + var n = r(6), i = r(59), o = r(41), a = Object.defineProperty; + e.f = r(12) ? Object.defineProperty : function(t2, e2, r2) { + if (n(t2), e2 = o(e2, true), n(r2), i) + try { + return a(t2, e2, r2); + } catch (t3) { + } + if ("get" in r2 || "set" in r2) + throw TypeError("Accessors not supported!"); + return "value" in r2 && (t2[e2] = r2.value), t2; + }; + }, function(t, e) { + t.exports = function(t2) { + return typeof t2 == "object" ? t2 !== null : typeof t2 == "function"; + }; + }, function(t, e, r) { + t.exports = !r(20)(function() { + return Object.defineProperty({}, "a", { get: function() { + return 7; + } }).a != 7; + }); + }, function(t, e) { + var r = {}.hasOwnProperty; + t.exports = function(t2, e2) { + return r.call(t2, e2); + }; + }, function(t, e, r) { + "use strict"; + var n = Object.keys || function(t2) { + var e2 = []; + for (var r2 in t2) + e2.push(r2); + return e2; + }; + t.exports = h; + var i = r(49), o = r(24); + o.inherits = r(18); + var a = r(77), s = r(50); + o.inherits(h, a); + for (var u = n(s.prototype), f = 0; f < u.length; f++) { + var c = u[f]; + h.prototype[c] || (h.prototype[c] = s.prototype[c]); + } + function h(t2) { + if (!(this instanceof h)) + return new h(t2); + a.call(this, t2), s.call(this, t2), t2 && t2.readable === false && (this.readable = false), t2 && t2.writable === false && (this.writable = false), this.allowHalfOpen = true, t2 && t2.allowHalfOpen === false && (this.allowHalfOpen = false), this.once("end", l); + } + function l() { + this.allowHalfOpen || this._writableState.ended || i(d, this); + } + function d(t2) { + t2.end(); + } + }, function(t, e, r) { + var n = r(1), i = r(4), o = r(26), a = r(9), s = r(13), u = function(t2, e2, r2) { + var f, c, h, l = t2 & u.F, d = t2 & u.G, p = t2 & u.S, m = t2 & u.P, g = t2 & u.B, v = t2 & u.W, y = d ? i : i[e2] || (i[e2] = {}), _ = y.prototype, w = d ? n : p ? n[e2] : (n[e2] || {}).prototype; + for (f in d && (r2 = e2), r2) + (c = !l && w && w[f] !== void 0) && s(y, f) || (h = c ? w[f] : r2[f], y[f] = d && typeof w[f] != "function" ? r2[f] : g && c ? o(h, n) : v && w[f] == h ? function(t3) { + var e3 = function(e4, r3, n2) { + if (this instanceof t3) { + switch (arguments.length) { + case 0: + return new t3(); + case 1: + return new t3(e4); + case 2: + return new t3(e4, r3); + } + return new t3(e4, r3, n2); + } + return t3.apply(this, arguments); + }; + return e3.prototype = t3.prototype, e3; + }(h) : m && typeof h == "function" ? o(Function.call, h) : h, m && ((y.virtual || (y.virtual = {}))[f] = h, t2 & u.R && _ && !_[f] && a(_, f, h))); + }; + u.F = 1, u.G = 2, u.S = 4, u.P = 8, u.B = 16, u.W = 32, u.U = 64, u.R = 128, t.exports = u; + }, function(t, e, r) { + var n = r(63), i = r(39); + t.exports = function(t2) { + return n(i(t2)); + }; + }, function(t, e, r) { + "use strict"; + for (var n = r(0), i = r(7), o = r(36), a = r(3), s = new Array(256), u = 0; u < 256; u++) + s[u] = u >= 252 ? 6 : u >= 248 ? 5 : u >= 240 ? 4 : u >= 224 ? 3 : u >= 192 ? 2 : 1; + s[254] = s[254] = 1; + function f() { + a.call(this, "utf-8 decode"), this.leftOver = null; + } + function c() { + a.call(this, "utf-8 encode"); + } + e.utf8encode = function(t2) { + return i.nodebuffer ? o.newBufferFrom(t2, "utf-8") : function(t3) { + var e2, r2, n2, o2, a2, s2 = t3.length, u2 = 0; + for (o2 = 0; o2 < s2; o2++) + (64512 & (r2 = t3.charCodeAt(o2))) == 55296 && o2 + 1 < s2 && (64512 & (n2 = t3.charCodeAt(o2 + 1))) == 56320 && (r2 = 65536 + (r2 - 55296 << 10) + (n2 - 56320), o2++), u2 += r2 < 128 ? 1 : r2 < 2048 ? 2 : r2 < 65536 ? 3 : 4; + for (e2 = i.uint8array ? new Uint8Array(u2) : new Array(u2), a2 = 0, o2 = 0; a2 < u2; o2++) + (64512 & (r2 = t3.charCodeAt(o2))) == 55296 && o2 + 1 < s2 && (64512 & (n2 = t3.charCodeAt(o2 + 1))) == 56320 && (r2 = 65536 + (r2 - 55296 << 10) + (n2 - 56320), o2++), r2 < 128 ? e2[a2++] = r2 : r2 < 2048 ? (e2[a2++] = 192 | r2 >>> 6, e2[a2++] = 128 | 63 & r2) : r2 < 65536 ? (e2[a2++] = 224 | r2 >>> 12, e2[a2++] = 128 | r2 >>> 6 & 63, e2[a2++] = 128 | 63 & r2) : (e2[a2++] = 240 | r2 >>> 18, e2[a2++] = 128 | r2 >>> 12 & 63, e2[a2++] = 128 | r2 >>> 6 & 63, e2[a2++] = 128 | 63 & r2); + return e2; + }(t2); + }, e.utf8decode = function(t2) { + return i.nodebuffer ? n.transformTo("nodebuffer", t2).toString("utf-8") : function(t3) { + var e2, r2, i2, o2, a2 = t3.length, u2 = new Array(2 * a2); + for (r2 = 0, e2 = 0; e2 < a2; ) + if ((i2 = t3[e2++]) < 128) + u2[r2++] = i2; + else if ((o2 = s[i2]) > 4) + u2[r2++] = 65533, e2 += o2 - 1; + else { + for (i2 &= o2 === 2 ? 31 : o2 === 3 ? 15 : 7; o2 > 1 && e2 < a2; ) + i2 = i2 << 6 | 63 & t3[e2++], o2--; + o2 > 1 ? u2[r2++] = 65533 : i2 < 65536 ? u2[r2++] = i2 : (i2 -= 65536, u2[r2++] = 55296 | i2 >> 10 & 1023, u2[r2++] = 56320 | 1023 & i2); + } + return u2.length !== r2 && (u2.subarray ? u2 = u2.subarray(0, r2) : u2.length = r2), n.applyFromCharCode(u2); + }(t2 = n.transformTo(i.uint8array ? "uint8array" : "array", t2)); + }, n.inherits(f, a), f.prototype.processChunk = function(t2) { + var r2 = n.transformTo(i.uint8array ? "uint8array" : "array", t2.data); + if (this.leftOver && this.leftOver.length) { + if (i.uint8array) { + var o2 = r2; + (r2 = new Uint8Array(o2.length + this.leftOver.length)).set(this.leftOver, 0), r2.set(o2, this.leftOver.length); + } else + r2 = this.leftOver.concat(r2); + this.leftOver = null; + } + var a2 = function(t3, e2) { + var r3; + for ((e2 = e2 || t3.length) > t3.length && (e2 = t3.length), r3 = e2 - 1; r3 >= 0 && (192 & t3[r3]) == 128; ) + r3--; + return r3 < 0 ? e2 : r3 === 0 ? e2 : r3 + s[t3[r3]] > e2 ? r3 : e2; + }(r2), u2 = r2; + a2 !== r2.length && (i.uint8array ? (u2 = r2.subarray(0, a2), this.leftOver = r2.subarray(a2, r2.length)) : (u2 = r2.slice(0, a2), this.leftOver = r2.slice(a2, r2.length))), this.push({ data: e.utf8decode(u2), meta: t2.meta }); + }, f.prototype.flush = function() { + this.leftOver && this.leftOver.length && (this.push({ data: e.utf8decode(this.leftOver), meta: {} }), this.leftOver = null); + }, e.Utf8DecodeWorker = f, n.inherits(c, a), c.prototype.processChunk = function(t2) { + this.push({ data: e.utf8encode(t2.data), meta: t2.meta }); + }, e.Utf8EncodeWorker = c; + }, function(t, e) { + typeof Object.create == "function" ? t.exports = function(t2, e2) { + t2.super_ = e2, t2.prototype = Object.create(e2.prototype, { constructor: { value: t2, enumerable: false, writable: true, configurable: true } }); + } : t.exports = function(t2, e2) { + t2.super_ = e2; + var r = function() { + }; + r.prototype = e2.prototype, t2.prototype = new r(), t2.prototype.constructor = t2; + }; + }, function(t, e) { + t.exports = true; + }, function(t, e) { + t.exports = function(t2) { + try { + return !!t2(); + } catch (t3) { + return true; + } + }; + }, function(t, e) { + t.exports = {}; + }, function(t, e) { + var r = {}.toString; + t.exports = function(t2) { + return r.call(t2).slice(8, -1); + }; + }, function(t, e) { + var r; + r = function() { + return this; + }(); + try { + r = r || Function("return this")() || (0, eval)("this"); + } catch (t2) { + typeof window == "object" && (r = window); + } + t.exports = r; + }, function(t, e, r) { + (function(t2) { + function r2(t3) { + return Object.prototype.toString.call(t3); + } + e.isArray = function(t3) { + return Array.isArray ? Array.isArray(t3) : r2(t3) === "[object Array]"; + }, e.isBoolean = function(t3) { + return typeof t3 == "boolean"; + }, e.isNull = function(t3) { + return t3 === null; + }, e.isNullOrUndefined = function(t3) { + return t3 == null; + }, e.isNumber = function(t3) { + return typeof t3 == "number"; + }, e.isString = function(t3) { + return typeof t3 == "string"; + }, e.isSymbol = function(t3) { + return typeof t3 == "symbol"; + }, e.isUndefined = function(t3) { + return t3 === void 0; + }, e.isRegExp = function(t3) { + return r2(t3) === "[object RegExp]"; + }, e.isObject = function(t3) { + return typeof t3 == "object" && t3 !== null; + }, e.isDate = function(t3) { + return r2(t3) === "[object Date]"; + }, e.isError = function(t3) { + return r2(t3) === "[object Error]" || t3 instanceof Error; + }, e.isFunction = function(t3) { + return typeof t3 == "function"; + }, e.isPrimitive = function(t3) { + return t3 === null || typeof t3 == "boolean" || typeof t3 == "number" || typeof t3 == "string" || typeof t3 == "symbol" || t3 === void 0; + }, e.isBuffer = t2.isBuffer; + }).call(this, r(5).Buffer); + }, function(t, e, r) { + "use strict"; + var n = null; + n = typeof Promise != "undefined" ? Promise : r(177), t.exports = { Promise: n }; + }, function(t, e, r) { + var n = r(27); + t.exports = function(t2, e2, r2) { + if (n(t2), e2 === void 0) + return t2; + switch (r2) { + case 1: + return function(r3) { + return t2.call(e2, r3); + }; + case 2: + return function(r3, n2) { + return t2.call(e2, r3, n2); + }; + case 3: + return function(r3, n2, i) { + return t2.call(e2, r3, n2, i); + }; + } + return function() { + return t2.apply(e2, arguments); + }; + }; + }, function(t, e) { + t.exports = function(t2) { + if (typeof t2 != "function") + throw TypeError(t2 + " is not a function!"); + return t2; + }; + }, function(t, e) { + t.exports = function(t2, e2) { + return { enumerable: !(1 & t2), configurable: !(2 & t2), writable: !(4 & t2), value: e2 }; + }; + }, function(t, e, r) { + var n = r(62), i = r(44); + t.exports = Object.keys || function(t2) { + return n(t2, i); + }; + }, function(t, e) { + var r = 0, n = Math.random(); + t.exports = function(t2) { + return "Symbol(".concat(t2 === void 0 ? "" : t2, ")_", (++r + n).toString(36)); + }; + }, function(t, e, r) { + var n = r(10).f, i = r(13), o = r(2)("toStringTag"); + t.exports = function(t2, e2, r2) { + t2 && !i(t2 = r2 ? t2 : t2.prototype, o) && n(t2, o, { configurable: true, value: e2 }); + }; + }, function(t, e) { + e.f = {}.propertyIsEnumerable; + }, function(t, e, r) { + t.exports = i; + var n = r(34).EventEmitter; + function i() { + n.call(this); + } + r(18)(i, n), i.Readable = r(153), i.Writable = r(159), i.Duplex = r(160), i.Transform = r(161), i.PassThrough = r(162), i.Stream = i, i.prototype.pipe = function(t2, e2) { + var r2 = this; + function i2(e3) { + t2.writable && t2.write(e3) === false && r2.pause && r2.pause(); + } + function o() { + r2.readable && r2.resume && r2.resume(); + } + r2.on("data", i2), t2.on("drain", o), t2._isStdio || e2 && e2.end === false || (r2.on("end", s), r2.on("close", u)); + var a = false; + function s() { + a || (a = true, t2.end()); + } + function u() { + a || (a = true, typeof t2.destroy == "function" && t2.destroy()); + } + function f(t3) { + if (c(), n.listenerCount(this, "error") === 0) + throw t3; + } + function c() { + r2.removeListener("data", i2), t2.removeListener("drain", o), r2.removeListener("end", s), r2.removeListener("close", u), r2.removeListener("error", f), t2.removeListener("error", f), r2.removeListener("end", c), r2.removeListener("close", c), t2.removeListener("close", c); + } + return r2.on("error", f), t2.on("error", f), r2.on("end", c), r2.on("close", c), t2.on("close", c), t2.emit("pipe", r2), t2; + }; + }, function(t, e) { + function r() { + this._events = this._events || {}, this._maxListeners = this._maxListeners || void 0; + } + function n(t2) { + return typeof t2 == "function"; + } + function i(t2) { + return typeof t2 == "object" && t2 !== null; + } + function o(t2) { + return t2 === void 0; + } + t.exports = r, r.EventEmitter = r, r.prototype._events = void 0, r.prototype._maxListeners = void 0, r.defaultMaxListeners = 10, r.prototype.setMaxListeners = function(t2) { + if (!function(t3) { + return typeof t3 == "number"; + }(t2) || t2 < 0 || isNaN(t2)) + throw TypeError("n must be a positive number"); + return this._maxListeners = t2, this; + }, r.prototype.emit = function(t2) { + var e2, r2, a, s, u, f; + if (this._events || (this._events = {}), t2 === "error" && (!this._events.error || i(this._events.error) && !this._events.error.length)) { + if ((e2 = arguments[1]) instanceof Error) + throw e2; + var c = new Error('Uncaught, unspecified "error" event. (' + e2 + ")"); + throw c.context = e2, c; + } + if (o(r2 = this._events[t2])) + return false; + if (n(r2)) + switch (arguments.length) { + case 1: + r2.call(this); + break; + case 2: + r2.call(this, arguments[1]); + break; + case 3: + r2.call(this, arguments[1], arguments[2]); + break; + default: + s = Array.prototype.slice.call(arguments, 1), r2.apply(this, s); + } + else if (i(r2)) + for (s = Array.prototype.slice.call(arguments, 1), a = (f = r2.slice()).length, u = 0; u < a; u++) + f[u].apply(this, s); + return true; + }, r.prototype.addListener = function(t2, e2) { + var a; + if (!n(e2)) + throw TypeError("listener must be a function"); + return this._events || (this._events = {}), this._events.newListener && this.emit("newListener", t2, n(e2.listener) ? e2.listener : e2), this._events[t2] ? i(this._events[t2]) ? this._events[t2].push(e2) : this._events[t2] = [this._events[t2], e2] : this._events[t2] = e2, i(this._events[t2]) && !this._events[t2].warned && (a = o(this._maxListeners) ? r.defaultMaxListeners : this._maxListeners) && a > 0 && this._events[t2].length > a && (this._events[t2].warned = true, console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.", this._events[t2].length), typeof console.trace == "function" && console.trace()), this; + }, r.prototype.on = r.prototype.addListener, r.prototype.once = function(t2, e2) { + if (!n(e2)) + throw TypeError("listener must be a function"); + var r2 = false; + function i2() { + this.removeListener(t2, i2), r2 || (r2 = true, e2.apply(this, arguments)); + } + return i2.listener = e2, this.on(t2, i2), this; + }, r.prototype.removeListener = function(t2, e2) { + var r2, o2, a, s; + if (!n(e2)) + throw TypeError("listener must be a function"); + if (!this._events || !this._events[t2]) + return this; + if (a = (r2 = this._events[t2]).length, o2 = -1, r2 === e2 || n(r2.listener) && r2.listener === e2) + delete this._events[t2], this._events.removeListener && this.emit("removeListener", t2, e2); + else if (i(r2)) { + for (s = a; s-- > 0; ) + if (r2[s] === e2 || r2[s].listener && r2[s].listener === e2) { + o2 = s; + break; + } + if (o2 < 0) + return this; + r2.length === 1 ? (r2.length = 0, delete this._events[t2]) : r2.splice(o2, 1), this._events.removeListener && this.emit("removeListener", t2, e2); + } + return this; + }, r.prototype.removeAllListeners = function(t2) { + var e2, r2; + if (!this._events) + return this; + if (!this._events.removeListener) + return arguments.length === 0 ? this._events = {} : this._events[t2] && delete this._events[t2], this; + if (arguments.length === 0) { + for (e2 in this._events) + e2 !== "removeListener" && this.removeAllListeners(e2); + return this.removeAllListeners("removeListener"), this._events = {}, this; + } + if (n(r2 = this._events[t2])) + this.removeListener(t2, r2); + else if (r2) + for (; r2.length; ) + this.removeListener(t2, r2[r2.length - 1]); + return delete this._events[t2], this; + }, r.prototype.listeners = function(t2) { + return this._events && this._events[t2] ? n(this._events[t2]) ? [this._events[t2]] : this._events[t2].slice() : []; + }, r.prototype.listenerCount = function(t2) { + if (this._events) { + var e2 = this._events[t2]; + if (n(e2)) + return 1; + if (e2) + return e2.length; + } + return 0; + }, r.listenerCount = function(t2, e2) { + return t2.listenerCount(e2); + }; + }, function(t, e) { + var r, n, i = t.exports = {}; + function o() { + throw new Error("setTimeout has not been defined"); + } + function a() { + throw new Error("clearTimeout has not been defined"); + } + function s(t2) { + if (r === setTimeout) + return setTimeout(t2, 0); + if ((r === o || !r) && setTimeout) + return r = setTimeout, setTimeout(t2, 0); + try { + return r(t2, 0); + } catch (e2) { + try { + return r.call(null, t2, 0); + } catch (e3) { + return r.call(this, t2, 0); + } + } + } + !function() { + try { + r = typeof setTimeout == "function" ? setTimeout : o; + } catch (t2) { + r = o; + } + try { + n = typeof clearTimeout == "function" ? clearTimeout : a; + } catch (t2) { + n = a; + } + }(); + var u, f = [], c = false, h = -1; + function l() { + c && u && (c = false, u.length ? f = u.concat(f) : h = -1, f.length && d()); + } + function d() { + if (!c) { + var t2 = s(l); + c = true; + for (var e2 = f.length; e2; ) { + for (u = f, f = []; ++h < e2; ) + u && u[h].run(); + h = -1, e2 = f.length; + } + u = null, c = false, function(t3) { + if (n === clearTimeout) + return clearTimeout(t3); + if ((n === a || !n) && clearTimeout) + return n = clearTimeout, clearTimeout(t3); + try { + n(t3); + } catch (e3) { + try { + return n.call(null, t3); + } catch (e4) { + return n.call(this, t3); + } + } + }(t2); + } + } + function p(t2, e2) { + this.fun = t2, this.array = e2; + } + function m() { + } + i.nextTick = function(t2) { + var e2 = new Array(arguments.length - 1); + if (arguments.length > 1) + for (var r2 = 1; r2 < arguments.length; r2++) + e2[r2 - 1] = arguments[r2]; + f.push(new p(t2, e2)), f.length !== 1 || c || s(d); + }, p.prototype.run = function() { + this.fun.apply(null, this.array); + }, i.title = "browser", i.browser = true, i.env = {}, i.argv = [], i.version = "", i.versions = {}, i.on = m, i.addListener = m, i.once = m, i.off = m, i.removeListener = m, i.removeAllListeners = m, i.emit = m, i.prependListener = m, i.prependOnceListener = m, i.listeners = function(t2) { + return []; + }, i.binding = function(t2) { + throw new Error("process.binding is not supported"); + }, i.cwd = function() { + return "/"; + }, i.chdir = function(t2) { + throw new Error("process.chdir is not supported"); + }, i.umask = function() { + return 0; + }; + }, function(t, e, r) { + "use strict"; + (function(e2) { + t.exports = { isNode: e2 !== void 0, newBufferFrom: function(t2, r2) { + return new e2(t2, r2); + }, allocBuffer: function(t2) { + return e2.alloc ? e2.alloc(t2) : new e2(t2); + }, isBuffer: function(t2) { + return e2.isBuffer(t2); + }, isStream: function(t2) { + return t2 && typeof t2.on == "function" && typeof t2.pause == "function" && typeof t2.resume == "function"; + } }; + }).call(this, r(5).Buffer); + }, function(t, e) { + var r = t.exports = typeof window != "undefined" && window.Math == Math ? window : typeof self != "undefined" && self.Math == Math ? self : Function("return this")(); + typeof __g == "number" && (__g = r); + }, function(t, e) { + var r = Math.ceil, n = Math.floor; + t.exports = function(t2) { + return isNaN(t2 = +t2) ? 0 : (t2 > 0 ? n : r)(t2); + }; + }, function(t, e) { + t.exports = function(t2) { + if (t2 == void 0) + throw TypeError("Can't call method on " + t2); + return t2; + }; + }, function(t, e, r) { + var n = r(11), i = r(1).document, o = n(i) && n(i.createElement); + t.exports = function(t2) { + return o ? i.createElement(t2) : {}; + }; + }, function(t, e, r) { + var n = r(11); + t.exports = function(t2, e2) { + if (!n(t2)) + return t2; + var r2, i; + if (e2 && typeof (r2 = t2.toString) == "function" && !n(i = r2.call(t2))) + return i; + if (typeof (r2 = t2.valueOf) == "function" && !n(i = r2.call(t2))) + return i; + if (!e2 && typeof (r2 = t2.toString) == "function" && !n(i = r2.call(t2))) + return i; + throw TypeError("Can't convert object to primitive value"); + }; + }, function(t, e, r) { + var n = r(43)("keys"), i = r(30); + t.exports = function(t2) { + return n[t2] || (n[t2] = i(t2)); + }; + }, function(t, e, r) { + var n = r(4), i = r(1), o = i["__core-js_shared__"] || (i["__core-js_shared__"] = {}); + (t.exports = function(t2, e2) { + return o[t2] || (o[t2] = e2 !== void 0 ? e2 : {}); + })("versions", []).push({ version: n.version, mode: r(19) ? "pure" : "global", copyright: "\xA9 2018 Denis Pushkarev (zloirock.ru)" }); + }, function(t, e) { + t.exports = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","); + }, function(t, e, r) { + e.f = r(2); + }, function(t, e, r) { + var n = r(1), i = r(4), o = r(19), a = r(45), s = r(10).f; + t.exports = function(t2) { + var e2 = i.Symbol || (i.Symbol = o ? {} : n.Symbol || {}); + t2.charAt(0) == "_" || t2 in e2 || s(e2, t2, { value: a.f(t2) }); + }; + }, function(t, e) { + e.f = Object.getOwnPropertySymbols; + }, function(t, e, r) { + "use strict"; + var n = r(27); + t.exports.f = function(t2) { + return new function(t3) { + var e2, r2; + this.promise = new t3(function(t4, n2) { + if (e2 !== void 0 || r2 !== void 0) + throw TypeError("Bad Promise constructor"); + e2 = t4, r2 = n2; + }), this.resolve = n(e2), this.reject = n(r2); + }(t2); + }; + }, function(t, e, r) { + "use strict"; + (function(e2) { + !e2.version || e2.version.indexOf("v0.") === 0 || e2.version.indexOf("v1.") === 0 && e2.version.indexOf("v1.8.") !== 0 ? t.exports = function(t2, r2, n, i) { + if (typeof t2 != "function") + throw new TypeError('"callback" argument must be a function'); + var o, a, s = arguments.length; + switch (s) { + case 0: + case 1: + return e2.nextTick(t2); + case 2: + return e2.nextTick(function() { + t2.call(null, r2); + }); + case 3: + return e2.nextTick(function() { + t2.call(null, r2, n); + }); + case 4: + return e2.nextTick(function() { + t2.call(null, r2, n, i); + }); + default: + for (o = new Array(s - 1), a = 0; a < o.length; ) + o[a++] = arguments[a]; + return e2.nextTick(function() { + t2.apply(null, o); + }); + } + } : t.exports = e2.nextTick; + }).call(this, r(35)); + }, function(t, e, r) { + "use strict"; + (function(e2, n) { + t.exports = d; + var i = r(49), o = !e2.browser && ["v0.10", "v0.9."].indexOf(e2.version.slice(0, 5)) > -1 ? n : i, a = r(5).Buffer; + d.WritableState = l; + var s = r(24); + s.inherits = r(18); + var u, f = { deprecate: r(157) }; + !function() { + try { + u = r(33); + } catch (t2) { + } finally { + u || (u = r(34).EventEmitter); + } + }(); + var c; + a = r(5).Buffer; + function h() { + } + function l(t2, e3) { + c = c || r(14), t2 = t2 || {}, this.objectMode = !!t2.objectMode, e3 instanceof c && (this.objectMode = this.objectMode || !!t2.writableObjectMode); + var n2 = t2.highWaterMark, a2 = this.objectMode ? 16 : 16384; + this.highWaterMark = n2 || n2 === 0 ? n2 : a2, this.highWaterMark = ~~this.highWaterMark, this.needDrain = false, this.ending = false, this.ended = false, this.finished = false; + var s2 = t2.decodeStrings === false; + this.decodeStrings = !s2, this.defaultEncoding = t2.defaultEncoding || "utf8", this.length = 0, this.writing = false, this.corked = 0, this.sync = true, this.bufferProcessing = false, this.onwrite = function(t3) { + !function(t4, e4) { + var r2 = t4._writableState, n3 = r2.sync, a3 = r2.writecb; + if (function(t5) { + t5.writing = false, t5.writecb = null, t5.length -= t5.writelen, t5.writelen = 0; + }(r2), e4) + !function(t5, e5, r3, n4, o2) { + --e5.pendingcb, r3 ? i(o2, n4) : o2(n4); + t5._writableState.errorEmitted = true, t5.emit("error", n4); + }(t4, r2, n3, e4, a3); + else { + var s3 = v(r2); + s3 || r2.corked || r2.bufferProcessing || !r2.bufferedRequest || g(t4, r2), n3 ? o(m, t4, r2, s3, a3) : m(t4, r2, s3, a3); + } + }(e3, t3); + }, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = false, this.errorEmitted = false, this.bufferedRequestCount = 0, this.corkedRequestsFree = new w(this), this.corkedRequestsFree.next = new w(this); + } + function d(t2) { + if (c = c || r(14), !(this instanceof d || this instanceof c)) + return new d(t2); + this._writableState = new l(t2, this), this.writable = true, t2 && (typeof t2.write == "function" && (this._write = t2.write), typeof t2.writev == "function" && (this._writev = t2.writev)), u.call(this); + } + function p(t2, e3, r2, n2, i2, o2, a2) { + e3.writelen = n2, e3.writecb = a2, e3.writing = true, e3.sync = true, r2 ? t2._writev(i2, e3.onwrite) : t2._write(i2, o2, e3.onwrite), e3.sync = false; + } + function m(t2, e3, r2, n2) { + r2 || function(t3, e4) { + e4.length === 0 && e4.needDrain && (e4.needDrain = false, t3.emit("drain")); + }(t2, e3), e3.pendingcb--, n2(), _(t2, e3); + } + function g(t2, e3) { + e3.bufferProcessing = true; + var r2 = e3.bufferedRequest; + if (t2._writev && r2 && r2.next) { + var n2 = e3.bufferedRequestCount, i2 = new Array(n2), o2 = e3.corkedRequestsFree; + o2.entry = r2; + for (var a2 = 0; r2; ) + i2[a2] = r2, r2 = r2.next, a2 += 1; + p(t2, e3, true, e3.length, i2, "", o2.finish), e3.pendingcb++, e3.lastBufferedRequest = null, e3.corkedRequestsFree = o2.next, o2.next = null; + } else { + for (; r2; ) { + var s2 = r2.chunk, u2 = r2.encoding, f2 = r2.callback; + if (p(t2, e3, false, e3.objectMode ? 1 : s2.length, s2, u2, f2), r2 = r2.next, e3.writing) + break; + } + r2 === null && (e3.lastBufferedRequest = null); + } + e3.bufferedRequestCount = 0, e3.bufferedRequest = r2, e3.bufferProcessing = false; + } + function v(t2) { + return t2.ending && t2.length === 0 && t2.bufferedRequest === null && !t2.finished && !t2.writing; + } + function y(t2, e3) { + e3.prefinished || (e3.prefinished = true, t2.emit("prefinish")); + } + function _(t2, e3) { + var r2 = v(e3); + return r2 && (e3.pendingcb === 0 ? (y(t2, e3), e3.finished = true, t2.emit("finish")) : y(t2, e3)), r2; + } + function w(t2) { + var e3 = this; + this.next = null, this.entry = null, this.finish = function(r2) { + var n2 = e3.entry; + for (e3.entry = null; n2; ) { + var i2 = n2.callback; + t2.pendingcb--, i2(r2), n2 = n2.next; + } + t2.corkedRequestsFree ? t2.corkedRequestsFree.next = e3 : t2.corkedRequestsFree = e3; + }; + } + s.inherits(d, u), l.prototype.getBuffer = function() { + for (var t2 = this.bufferedRequest, e3 = []; t2; ) + e3.push(t2), t2 = t2.next; + return e3; + }, function() { + try { + Object.defineProperty(l.prototype, "buffer", { get: f.deprecate(function() { + return this.getBuffer(); + }, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.") }); + } catch (t2) { + } + }(), d.prototype.pipe = function() { + this.emit("error", new Error("Cannot pipe. Not readable.")); + }, d.prototype.write = function(t2, e3, r2) { + var n2 = this._writableState, o2 = false; + return typeof e3 == "function" && (r2 = e3, e3 = null), a.isBuffer(t2) ? e3 = "buffer" : e3 || (e3 = n2.defaultEncoding), typeof r2 != "function" && (r2 = h), n2.ended ? function(t3, e4) { + var r3 = new Error("write after end"); + t3.emit("error", r3), i(e4, r3); + }(this, r2) : function(t3, e4, r3, n3) { + var o3 = true; + if (!a.isBuffer(r3) && typeof r3 != "string" && r3 !== null && r3 !== void 0 && !e4.objectMode) { + var s2 = new TypeError("Invalid non-string/buffer chunk"); + t3.emit("error", s2), i(n3, s2), o3 = false; + } + return o3; + }(this, n2, t2, r2) && (n2.pendingcb++, o2 = function(t3, e4, r3, n3, i2) { + r3 = function(t4, e5, r4) { + return t4.objectMode || t4.decodeStrings === false || typeof e5 != "string" || (e5 = new a(e5, r4)), e5; + }(e4, r3, n3), a.isBuffer(r3) && (n3 = "buffer"); + var o3 = e4.objectMode ? 1 : r3.length; + e4.length += o3; + var s2 = e4.length < e4.highWaterMark; + s2 || (e4.needDrain = true); + if (e4.writing || e4.corked) { + var u2 = e4.lastBufferedRequest; + e4.lastBufferedRequest = new function(t4, e5, r4) { + this.chunk = t4, this.encoding = e5, this.callback = r4, this.next = null; + }(r3, n3, i2), u2 ? u2.next = e4.lastBufferedRequest : e4.bufferedRequest = e4.lastBufferedRequest, e4.bufferedRequestCount += 1; + } else + p(t3, e4, false, o3, r3, n3, i2); + return s2; + }(this, n2, t2, e3, r2)), o2; + }, d.prototype.cork = function() { + this._writableState.corked++; + }, d.prototype.uncork = function() { + var t2 = this._writableState; + t2.corked && (t2.corked--, t2.writing || t2.corked || t2.finished || t2.bufferProcessing || !t2.bufferedRequest || g(this, t2)); + }, d.prototype.setDefaultEncoding = function(t2) { + if (typeof t2 == "string" && (t2 = t2.toLowerCase()), !(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((t2 + "").toLowerCase()) > -1)) + throw new TypeError("Unknown encoding: " + t2); + this._writableState.defaultEncoding = t2; + }, d.prototype._write = function(t2, e3, r2) { + r2(new Error("not implemented")); + }, d.prototype._writev = null, d.prototype.end = function(t2, e3, r2) { + var n2 = this._writableState; + typeof t2 == "function" ? (r2 = t2, t2 = null, e3 = null) : typeof e3 == "function" && (r2 = e3, e3 = null), t2 !== null && t2 !== void 0 && this.write(t2, e3), n2.corked && (n2.corked = 1, this.uncork()), n2.ending || n2.finished || function(t3, e4, r3) { + e4.ending = true, _(t3, e4), r3 && (e4.finished ? i(r3) : t3.once("finish", r3)); + e4.ended = true, t3.writable = false; + }(this, n2, r2); + }; + }).call(this, r(35), r(155).setImmediate); + }, function(t, e, r) { + "use strict"; + t.exports = a; + var n = r(14), i = r(24); + function o(t2) { + this.afterTransform = function(e2, r2) { + return function(t3, e3, r3) { + var n2 = t3._transformState; + n2.transforming = false; + var i2 = n2.writecb; + if (!i2) + return t3.emit("error", new Error("no writecb in Transform class")); + n2.writechunk = null, n2.writecb = null, r3 !== null && r3 !== void 0 && t3.push(r3); + i2(e3); + var o2 = t3._readableState; + o2.reading = false, (o2.needReadable || o2.length < o2.highWaterMark) && t3._read(o2.highWaterMark); + }(t2, e2, r2); + }, this.needTransform = false, this.transforming = false, this.writecb = null, this.writechunk = null, this.writeencoding = null; + } + function a(t2) { + if (!(this instanceof a)) + return new a(t2); + n.call(this, t2), this._transformState = new o(this); + var e2 = this; + this._readableState.needReadable = true, this._readableState.sync = false, t2 && (typeof t2.transform == "function" && (this._transform = t2.transform), typeof t2.flush == "function" && (this._flush = t2.flush)), this.once("prefinish", function() { + typeof this._flush == "function" ? this._flush(function(t3) { + s(e2, t3); + }) : s(e2); + }); + } + function s(t2, e2) { + if (e2) + return t2.emit("error", e2); + var r2 = t2._writableState, n2 = t2._transformState; + if (r2.length) + throw new Error("calling transform done when ws.length != 0"); + if (n2.transforming) + throw new Error("calling transform done when still transforming"); + return t2.push(null); + } + i.inherits = r(18), i.inherits(a, n), a.prototype.push = function(t2, e2) { + return this._transformState.needTransform = false, n.prototype.push.call(this, t2, e2); + }, a.prototype._transform = function(t2, e2, r2) { + throw new Error("not implemented"); + }, a.prototype._write = function(t2, e2, r2) { + var n2 = this._transformState; + if (n2.writecb = r2, n2.writechunk = t2, n2.writeencoding = e2, !n2.transforming) { + var i2 = this._readableState; + (n2.needTransform || i2.needReadable || i2.length < i2.highWaterMark) && this._read(i2.highWaterMark); + } + }, a.prototype._read = function(t2) { + var e2 = this._transformState; + e2.writechunk !== null && e2.writecb && !e2.transforming ? (e2.transforming = true, this._transform(e2.writechunk, e2.writeencoding, e2.afterTransform)) : e2.needTransform = true; + }; + }, function(t, e) { + t.exports = function(t2) { + return typeof t2 == "object" ? t2 !== null : typeof t2 == "function"; + }; + }, function(t, e, r) { + t.exports = !r(83)(function() { + return Object.defineProperty({}, "a", { get: function() { + return 7; + } }).a != 7; + }); + }, function(t, e, r) { + "use strict"; + var n = r(25), i = r(87), o = r(88), a = r(89); + o = r(88); + function s(t2, e2, r2, n2, i2) { + this.compressedSize = t2, this.uncompressedSize = e2, this.crc32 = r2, this.compression = n2, this.compressedContent = i2; + } + s.prototype = { getContentWorker: function() { + var t2 = new i(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")), e2 = this; + return t2.on("end", function() { + if (this.streamInfo.data_length !== e2.uncompressedSize) + throw new Error("Bug : uncompressed data size mismatch"); + }), t2; + }, getCompressedWorker: function() { + return new i(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize", this.compressedSize).withStreamInfo("uncompressedSize", this.uncompressedSize).withStreamInfo("crc32", this.crc32).withStreamInfo("compression", this.compression); + } }, s.createWorkerFrom = function(t2, e2, r2) { + return t2.pipe(new a()).pipe(new o("uncompressedSize")).pipe(e2.compressWorker(r2)).pipe(new o("compressedSize")).withStreamInfo("compression", e2); + }, t.exports = s; + }, function(t, e, r) { + "use strict"; + var n = r(0); + var i = function() { + for (var t2, e2 = [], r2 = 0; r2 < 256; r2++) { + t2 = r2; + for (var n2 = 0; n2 < 8; n2++) + t2 = 1 & t2 ? 3988292384 ^ t2 >>> 1 : t2 >>> 1; + e2[r2] = t2; + } + return e2; + }(); + t.exports = function(t2, e2) { + return t2 !== void 0 && t2.length ? n.getTypeOf(t2) !== "string" ? function(t3, e3, r2, n2) { + var o = i, a = n2 + r2; + t3 ^= -1; + for (var s = n2; s < a; s++) + t3 = t3 >>> 8 ^ o[255 & (t3 ^ e3[s])]; + return -1 ^ t3; + }(0 | e2, t2, t2.length, 0) : function(t3, e3, r2, n2) { + var o = i, a = n2 + r2; + t3 ^= -1; + for (var s = n2; s < a; s++) + t3 = t3 >>> 8 ^ o[255 & (t3 ^ e3.charCodeAt(s))]; + return -1 ^ t3; + }(0 | e2, t2, t2.length, 0) : 0; + }; + }, function(t, e, r) { + "use strict"; + t.exports = { 2: "need dictionary", 1: "stream end", 0: "", "-1": "file error", "-2": "stream error", "-3": "data error", "-4": "insufficient memory", "-5": "buffer error", "-6": "incompatible version" }; + }, function(t, e, r) { + "use strict"; + var n = r(108)(true); + r(58)(String, "String", function(t2) { + this._t = String(t2), this._i = 0; + }, function() { + var t2, e2 = this._t, r2 = this._i; + return r2 >= e2.length ? { value: void 0, done: true } : (t2 = n(e2, r2), this._i += t2.length, { value: t2, done: false }); + }); + }, function(t, e, r) { + "use strict"; + var n = r(19), i = r(15), o = r(60), a = r(9), s = r(21), u = r(109), f = r(31), c = r(113), h = r(2)("iterator"), l = !([].keys && "next" in [].keys()), d = function() { + return this; + }; + t.exports = function(t2, e2, r2, p, m, g, v) { + u(r2, e2, p); + var y, _, w, b = function(t3) { + if (!l && t3 in E) + return E[t3]; + switch (t3) { + case "keys": + case "values": + return function() { + return new r2(this, t3); + }; + } + return function() { + return new r2(this, t3); + }; + }, x = e2 + " Iterator", k = m == "values", S = false, E = t2.prototype, A = E[h] || E["@@iterator"] || m && E[m], T = A || b(m), C = m ? k ? b("entries") : T : void 0, O = e2 == "Array" && E.entries || A; + if (O && (w = c(O.call(new t2()))) !== Object.prototype && w.next && (f(w, x, true), n || typeof w[h] == "function" || a(w, h, d)), k && A && A.name !== "values" && (S = true, T = function() { + return A.call(this); + }), n && !v || !l && !S && E[h] || a(E, h, T), s[e2] = T, s[x] = d, m) + if (y = { values: k ? T : b("values"), keys: g ? T : b("keys"), entries: C }, v) + for (_ in y) + _ in E || o(E, _, y[_]); + else + i(i.P + i.F * (l || S), e2, y); + return y; + }; + }, function(t, e, r) { + t.exports = !r(12) && !r(20)(function() { + return Object.defineProperty(r(40)("div"), "a", { get: function() { + return 7; + } }).a != 7; + }); + }, function(t, e, r) { + t.exports = r(9); + }, function(t, e, r) { + var n = r(6), i = r(110), o = r(44), a = r(42)("IE_PROTO"), s = function() { + }, u = function() { + var t2, e2 = r(40)("iframe"), n2 = o.length; + for (e2.style.display = "none", r(65).appendChild(e2), e2.src = "javascript:", (t2 = e2.contentWindow.document).open(), t2.write("<script>document.F=Object<\/script>"), t2.close(), u = t2.F; n2--; ) + delete u.prototype[o[n2]]; + return u(); + }; + t.exports = Object.create || function(t2, e2) { + var r2; + return t2 !== null ? (s.prototype = n(t2), r2 = new s(), s.prototype = null, r2[a] = t2) : r2 = u(), e2 === void 0 ? r2 : i(r2, e2); + }; + }, function(t, e, r) { + var n = r(13), i = r(16), o = r(111)(false), a = r(42)("IE_PROTO"); + t.exports = function(t2, e2) { + var r2, s = i(t2), u = 0, f = []; + for (r2 in s) + r2 != a && n(s, r2) && f.push(r2); + for (; e2.length > u; ) + n(s, r2 = e2[u++]) && (~o(f, r2) || f.push(r2)); + return f; + }; + }, function(t, e, r) { + var n = r(22); + t.exports = Object("z").propertyIsEnumerable(0) ? Object : function(t2) { + return n(t2) == "String" ? t2.split("") : Object(t2); + }; + }, function(t, e, r) { + var n = r(38), i = Math.min; + t.exports = function(t2) { + return t2 > 0 ? i(n(t2), 9007199254740991) : 0; + }; + }, function(t, e, r) { + var n = r(1).document; + t.exports = n && n.documentElement; + }, function(t, e, r) { + var n = r(39); + t.exports = function(t2) { + return Object(n(t2)); + }; + }, function(t, e, r) { + r(114); + for (var n = r(1), i = r(9), o = r(21), a = r(2)("toStringTag"), s = "CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","), u = 0; u < s.length; u++) { + var f = s[u], c = n[f], h = c && c.prototype; + h && !h[a] && i(h, a, f), o[f] = o.Array; + } + }, function(t, e, r) { + var n = r(62), i = r(44).concat("length", "prototype"); + e.f = Object.getOwnPropertyNames || function(t2) { + return n(t2, i); + }; + }, function(t, e) { + }, function(t, e, r) { + var n = r(22), i = r(2)("toStringTag"), o = n(function() { + return arguments; + }()) == "Arguments"; + t.exports = function(t2) { + var e2, r2, a; + return t2 === void 0 ? "Undefined" : t2 === null ? "Null" : typeof (r2 = function(t3, e3) { + try { + return t3[e3]; + } catch (t4) { + } + }(e2 = Object(t2), i)) == "string" ? r2 : o ? n(e2) : (a = n(e2)) == "Object" && typeof e2.callee == "function" ? "Arguments" : a; + }; + }, function(t, e, r) { + var n = r(6), i = r(27), o = r(2)("species"); + t.exports = function(t2, e2) { + var r2, a = n(t2).constructor; + return a === void 0 || (r2 = n(a)[o]) == void 0 ? e2 : i(r2); + }; + }, function(t, e, r) { + var n, i, o, a = r(26), s = r(136), u = r(65), f = r(40), c = r(1), h = c.process, l = c.setImmediate, d = c.clearImmediate, p = c.MessageChannel, m = c.Dispatch, g = 0, v = {}, y = function() { + var t2 = +this; + if (v.hasOwnProperty(t2)) { + var e2 = v[t2]; + delete v[t2], e2(); + } + }, _ = function(t2) { + y.call(t2.data); + }; + l && d || (l = function(t2) { + for (var e2 = [], r2 = 1; arguments.length > r2; ) + e2.push(arguments[r2++]); + return v[++g] = function() { + s(typeof t2 == "function" ? t2 : Function(t2), e2); + }, n(g), g; + }, d = function(t2) { + delete v[t2]; + }, r(22)(h) == "process" ? n = function(t2) { + h.nextTick(a(y, t2, 1)); + } : m && m.now ? n = function(t2) { + m.now(a(y, t2, 1)); + } : p ? (o = (i = new p()).port2, i.port1.onmessage = _, n = a(o.postMessage, o, 1)) : c.addEventListener && typeof postMessage == "function" && !c.importScripts ? (n = function(t2) { + c.postMessage(t2 + "", "*"); + }, c.addEventListener("message", _, false)) : n = "onreadystatechange" in f("script") ? function(t2) { + u.appendChild(f("script")).onreadystatechange = function() { + u.removeChild(this), y.call(t2); + }; + } : function(t2) { + setTimeout(a(y, t2, 1), 0); + }), t.exports = { set: l, clear: d }; + }, function(t, e) { + t.exports = function(t2) { + try { + return { e: false, v: t2() }; + } catch (t3) { + return { e: true, v: t3 }; + } + }; + }, function(t, e, r) { + var n = r(6), i = r(11), o = r(48); + t.exports = function(t2, e2) { + if (n(t2), i(e2) && e2.constructor === t2) + return e2; + var r2 = o.f(t2); + return (0, r2.resolve)(e2), r2.promise; + }; + }, function(t, e) { + var r = {}.toString; + t.exports = Array.isArray || function(t2) { + return r.call(t2) == "[object Array]"; + }; + }, function(t, e, r) { + t.exports = r(33); + }, function(t, e, r) { + "use strict"; + (function(e2) { + t.exports = p; + var n = r(49), i = r(75), o = r(5).Buffer; + p.ReadableState = d; + r(34); + var a, s = function(t2, e3) { + return t2.listeners(e3).length; + }; + !function() { + try { + a = r(33); + } catch (t2) { + } finally { + a || (a = r(34).EventEmitter); + } + }(); + o = r(5).Buffer; + var u = r(24); + u.inherits = r(18); + var f, c, h = r(154), l = void 0; + function d(t2, e3) { + c = c || r(14), t2 = t2 || {}, this.objectMode = !!t2.objectMode, e3 instanceof c && (this.objectMode = this.objectMode || !!t2.readableObjectMode); + var n2 = t2.highWaterMark, i2 = this.objectMode ? 16 : 16384; + this.highWaterMark = n2 || n2 === 0 ? n2 : i2, this.highWaterMark = ~~this.highWaterMark, this.buffer = [], this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = false, this.endEmitted = false, this.reading = false, this.sync = true, this.needReadable = false, this.emittedReadable = false, this.readableListening = false, this.resumeScheduled = false, this.defaultEncoding = t2.defaultEncoding || "utf8", this.ranOut = false, this.awaitDrain = 0, this.readingMore = false, this.decoder = null, this.encoding = null, t2.encoding && (f || (f = r(78).StringDecoder), this.decoder = new f(t2.encoding), this.encoding = t2.encoding); + } + function p(t2) { + if (c = c || r(14), !(this instanceof p)) + return new p(t2); + this._readableState = new d(t2, this), this.readable = true, t2 && typeof t2.read == "function" && (this._read = t2.read), a.call(this); + } + function m(t2, e3, r2, i2, a2) { + var s2 = function(t3, e4) { + var r3 = null; + o.isBuffer(e4) || typeof e4 == "string" || e4 === null || e4 === void 0 || t3.objectMode || (r3 = new TypeError("Invalid non-string/buffer chunk")); + return r3; + }(e3, r2); + if (s2) + t2.emit("error", s2); + else if (r2 === null) + e3.reading = false, function(t3, e4) { + if (e4.ended) + return; + if (e4.decoder) { + var r3 = e4.decoder.end(); + r3 && r3.length && (e4.buffer.push(r3), e4.length += e4.objectMode ? 1 : r3.length); + } + e4.ended = true, y(t3); + }(t2, e3); + else if (e3.objectMode || r2 && r2.length > 0) + if (e3.ended && !a2) { + var u2 = new Error("stream.push() after EOF"); + t2.emit("error", u2); + } else if (e3.endEmitted && a2) { + u2 = new Error("stream.unshift() after end event"); + t2.emit("error", u2); + } else { + var f2; + !e3.decoder || a2 || i2 || (r2 = e3.decoder.write(r2), f2 = !e3.objectMode && r2.length === 0), a2 || (e3.reading = false), f2 || (e3.flowing && e3.length === 0 && !e3.sync ? (t2.emit("data", r2), t2.read(0)) : (e3.length += e3.objectMode ? 1 : r2.length, a2 ? e3.buffer.unshift(r2) : e3.buffer.push(r2), e3.needReadable && y(t2))), function(t3, e4) { + e4.readingMore || (e4.readingMore = true, n(w, t3, e4)); + }(t2, e3); + } + else + a2 || (e3.reading = false); + return function(t3) { + return !t3.ended && (t3.needReadable || t3.length < t3.highWaterMark || t3.length === 0); + }(e3); + } + l = h && h.debuglog ? h.debuglog("stream") : function() { + }, u.inherits(p, a), p.prototype.push = function(t2, e3) { + var r2 = this._readableState; + return r2.objectMode || typeof t2 != "string" || (e3 = e3 || r2.defaultEncoding) !== r2.encoding && (t2 = new o(t2, e3), e3 = ""), m(this, r2, t2, e3, false); + }, p.prototype.unshift = function(t2) { + return m(this, this._readableState, t2, "", true); + }, p.prototype.isPaused = function() { + return this._readableState.flowing === false; + }, p.prototype.setEncoding = function(t2) { + return f || (f = r(78).StringDecoder), this._readableState.decoder = new f(t2), this._readableState.encoding = t2, this; + }; + var g = 8388608; + function v(t2, e3) { + return e3.length === 0 && e3.ended ? 0 : e3.objectMode ? t2 === 0 ? 0 : 1 : t2 === null || isNaN(t2) ? e3.flowing && e3.buffer.length ? e3.buffer[0].length : e3.length : t2 <= 0 ? 0 : (t2 > e3.highWaterMark && (e3.highWaterMark = function(t3) { + return t3 >= g ? t3 = g : (t3--, t3 |= t3 >>> 1, t3 |= t3 >>> 2, t3 |= t3 >>> 4, t3 |= t3 >>> 8, t3 |= t3 >>> 16, t3++), t3; + }(t2)), t2 > e3.length ? e3.ended ? e3.length : (e3.needReadable = true, 0) : t2); + } + function y(t2) { + var e3 = t2._readableState; + e3.needReadable = false, e3.emittedReadable || (l("emitReadable", e3.flowing), e3.emittedReadable = true, e3.sync ? n(_, t2) : _(t2)); + } + function _(t2) { + l("emit readable"), t2.emit("readable"), k(t2); + } + function w(t2, e3) { + for (var r2 = e3.length; !e3.reading && !e3.flowing && !e3.ended && e3.length < e3.highWaterMark && (l("maybeReadMore read 0"), t2.read(0), r2 !== e3.length); ) + r2 = e3.length; + e3.readingMore = false; + } + function b(t2) { + l("readable nexttick read 0"), t2.read(0); + } + function x(t2, e3) { + e3.reading || (l("resume read 0"), t2.read(0)), e3.resumeScheduled = false, t2.emit("resume"), k(t2), e3.flowing && !e3.reading && t2.read(0); + } + function k(t2) { + var e3 = t2._readableState; + if (l("flow", e3.flowing), e3.flowing) + do { + var r2 = t2.read(); + } while (r2 !== null && e3.flowing); + } + function S(t2, e3) { + var r2, n2 = e3.buffer, i2 = e3.length, a2 = !!e3.decoder, s2 = !!e3.objectMode; + if (n2.length === 0) + return null; + if (i2 === 0) + r2 = null; + else if (s2) + r2 = n2.shift(); + else if (!t2 || t2 >= i2) + r2 = a2 ? n2.join("") : n2.length === 1 ? n2[0] : o.concat(n2, i2), n2.length = 0; + else { + if (t2 < n2[0].length) + r2 = (h2 = n2[0]).slice(0, t2), n2[0] = h2.slice(t2); + else if (t2 === n2[0].length) + r2 = n2.shift(); + else { + r2 = a2 ? "" : new o(t2); + for (var u2 = 0, f2 = 0, c2 = n2.length; f2 < c2 && u2 < t2; f2++) { + var h2 = n2[0], l2 = Math.min(t2 - u2, h2.length); + a2 ? r2 += h2.slice(0, l2) : h2.copy(r2, u2, 0, l2), l2 < h2.length ? n2[0] = h2.slice(l2) : n2.shift(), u2 += l2; + } + } + } + return r2; + } + function E(t2) { + var e3 = t2._readableState; + if (e3.length > 0) + throw new Error("endReadable called on non-empty stream"); + e3.endEmitted || (e3.ended = true, n(A, e3, t2)); + } + function A(t2, e3) { + t2.endEmitted || t2.length !== 0 || (t2.endEmitted = true, e3.readable = false, e3.emit("end")); + } + p.prototype.read = function(t2) { + l("read", t2); + var e3 = this._readableState, r2 = t2; + if ((typeof t2 != "number" || t2 > 0) && (e3.emittedReadable = false), t2 === 0 && e3.needReadable && (e3.length >= e3.highWaterMark || e3.ended)) + return l("read: emitReadable", e3.length, e3.ended), e3.length === 0 && e3.ended ? E(this) : y(this), null; + if ((t2 = v(t2, e3)) === 0 && e3.ended) + return e3.length === 0 && E(this), null; + var n2, i2 = e3.needReadable; + return l("need readable", i2), (e3.length === 0 || e3.length - t2 < e3.highWaterMark) && l("length less than watermark", i2 = true), (e3.ended || e3.reading) && l("reading or ended", i2 = false), i2 && (l("do read"), e3.reading = true, e3.sync = true, e3.length === 0 && (e3.needReadable = true), this._read(e3.highWaterMark), e3.sync = false), i2 && !e3.reading && (t2 = v(r2, e3)), (n2 = t2 > 0 ? S(t2, e3) : null) === null && (e3.needReadable = true, t2 = 0), e3.length -= t2, e3.length !== 0 || e3.ended || (e3.needReadable = true), r2 !== t2 && e3.ended && e3.length === 0 && E(this), n2 !== null && this.emit("data", n2), n2; + }, p.prototype._read = function(t2) { + this.emit("error", new Error("not implemented")); + }, p.prototype.pipe = function(t2, r2) { + var o2 = this, a2 = this._readableState; + switch (a2.pipesCount) { + case 0: + a2.pipes = t2; + break; + case 1: + a2.pipes = [a2.pipes, t2]; + break; + default: + a2.pipes.push(t2); + } + a2.pipesCount += 1, l("pipe count=%d opts=%j", a2.pipesCount, r2); + var u2 = (!r2 || r2.end !== false) && t2 !== e2.stdout && t2 !== e2.stderr ? c2 : p2; + function f2(t3) { + l("onunpipe"), t3 === o2 && p2(); + } + function c2() { + l("onend"), t2.end(); + } + a2.endEmitted ? n(u2) : o2.once("end", u2), t2.on("unpipe", f2); + var h2 = function(t3) { + return function() { + var e3 = t3._readableState; + l("pipeOnDrain", e3.awaitDrain), e3.awaitDrain && e3.awaitDrain--, e3.awaitDrain === 0 && s(t3, "data") && (e3.flowing = true, k(t3)); + }; + }(o2); + t2.on("drain", h2); + var d2 = false; + function p2() { + l("cleanup"), t2.removeListener("close", v2), t2.removeListener("finish", y2), t2.removeListener("drain", h2), t2.removeListener("error", g2), t2.removeListener("unpipe", f2), o2.removeListener("end", c2), o2.removeListener("end", p2), o2.removeListener("data", m2), d2 = true, !a2.awaitDrain || t2._writableState && !t2._writableState.needDrain || h2(); + } + function m2(e3) { + l("ondata"), t2.write(e3) === false && (a2.pipesCount !== 1 || a2.pipes[0] !== t2 || o2.listenerCount("data") !== 1 || d2 || (l("false write response, pause", o2._readableState.awaitDrain), o2._readableState.awaitDrain++), o2.pause()); + } + function g2(e3) { + l("onerror", e3), _2(), t2.removeListener("error", g2), s(t2, "error") === 0 && t2.emit("error", e3); + } + function v2() { + t2.removeListener("finish", y2), _2(); + } + function y2() { + l("onfinish"), t2.removeListener("close", v2), _2(); + } + function _2() { + l("unpipe"), o2.unpipe(t2); + } + return o2.on("data", m2), t2._events && t2._events.error ? i(t2._events.error) ? t2._events.error.unshift(g2) : t2._events.error = [g2, t2._events.error] : t2.on("error", g2), t2.once("close", v2), t2.once("finish", y2), t2.emit("pipe", o2), a2.flowing || (l("pipe resume"), o2.resume()), t2; + }, p.prototype.unpipe = function(t2) { + var e3 = this._readableState; + if (e3.pipesCount === 0) + return this; + if (e3.pipesCount === 1) + return t2 && t2 !== e3.pipes ? this : (t2 || (t2 = e3.pipes), e3.pipes = null, e3.pipesCount = 0, e3.flowing = false, t2 && t2.emit("unpipe", this), this); + if (!t2) { + var r2 = e3.pipes, n2 = e3.pipesCount; + e3.pipes = null, e3.pipesCount = 0, e3.flowing = false; + for (var i2 = 0; i2 < n2; i2++) + r2[i2].emit("unpipe", this); + return this; + } + var o2 = function(t3, e4) { + for (var r3 = 0, n3 = t3.length; r3 < n3; r3++) + if (t3[r3] === e4) + return r3; + return -1; + }(e3.pipes, t2); + return o2 === -1 ? this : (e3.pipes.splice(o2, 1), e3.pipesCount -= 1, e3.pipesCount === 1 && (e3.pipes = e3.pipes[0]), t2.emit("unpipe", this), this); + }, p.prototype.on = function(t2, e3) { + var r2 = a.prototype.on.call(this, t2, e3); + if (t2 === "data" && this._readableState.flowing !== false && this.resume(), t2 === "readable" && !this._readableState.endEmitted) { + var i2 = this._readableState; + i2.readableListening || (i2.readableListening = true, i2.emittedReadable = false, i2.needReadable = true, i2.reading ? i2.length && y(this) : n(b, this)); + } + return r2; + }, p.prototype.addListener = p.prototype.on, p.prototype.resume = function() { + var t2 = this._readableState; + return t2.flowing || (l("resume"), t2.flowing = true, function(t3, e3) { + e3.resumeScheduled || (e3.resumeScheduled = true, n(x, t3, e3)); + }(this, t2)), this; + }, p.prototype.pause = function() { + return l("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== false && (l("pause"), this._readableState.flowing = false, this.emit("pause")), this; + }, p.prototype.wrap = function(t2) { + var e3 = this._readableState, r2 = false, n2 = this; + for (var i2 in t2.on("end", function() { + if (l("wrapped end"), e3.decoder && !e3.ended) { + var t3 = e3.decoder.end(); + t3 && t3.length && n2.push(t3); + } + n2.push(null); + }), t2.on("data", function(i3) { + (l("wrapped data"), e3.decoder && (i3 = e3.decoder.write(i3)), !e3.objectMode || i3 !== null && i3 !== void 0) && ((e3.objectMode || i3 && i3.length) && (n2.push(i3) || (r2 = true, t2.pause()))); + }), t2) + this[i2] === void 0 && typeof t2[i2] == "function" && (this[i2] = function(e4) { + return function() { + return t2[e4].apply(t2, arguments); + }; + }(i2)); + return function(t3, e4) { + for (var r3 = 0, n3 = t3.length; r3 < n3; r3++) + e4(t3[r3], r3); + }(["error", "close", "destroy", "pause", "resume"], function(e4) { + t2.on(e4, n2.emit.bind(n2, e4)); + }), n2._read = function(e4) { + l("wrapped _read", e4), r2 && (r2 = false, t2.resume()); + }, n2; + }, p._fromList = S; + }).call(this, r(35)); + }, function(t, e, r) { + "use strict"; + var n = r(158).Buffer, i = n.isEncoding || function(t2) { + switch ((t2 = "" + t2) && t2.toLowerCase()) { + case "hex": + case "utf8": + case "utf-8": + case "ascii": + case "binary": + case "base64": + case "ucs2": + case "ucs-2": + case "utf16le": + case "utf-16le": + case "raw": + return true; + default: + return false; + } + }; + function o(t2) { + var e2; + switch (this.encoding = function(t3) { + var e3 = function(t4) { + if (!t4) + return "utf8"; + for (var e4; ; ) + switch (t4) { + case "utf8": + case "utf-8": + return "utf8"; + case "ucs2": + case "ucs-2": + case "utf16le": + case "utf-16le": + return "utf16le"; + case "latin1": + case "binary": + return "latin1"; + case "base64": + case "ascii": + case "hex": + return t4; + default: + if (e4) + return; + t4 = ("" + t4).toLowerCase(), e4 = true; + } + }(t3); + if (typeof e3 != "string" && (n.isEncoding === i || !i(t3))) + throw new Error("Unknown encoding: " + t3); + return e3 || t3; + }(t2), this.encoding) { + case "utf16le": + this.text = u, this.end = f, e2 = 4; + break; + case "utf8": + this.fillLast = s, e2 = 4; + break; + case "base64": + this.text = c, this.end = h, e2 = 3; + break; + default: + return this.write = l, void (this.end = d); + } + this.lastNeed = 0, this.lastTotal = 0, this.lastChar = n.allocUnsafe(e2); + } + function a(t2) { + return t2 <= 127 ? 0 : t2 >> 5 == 6 ? 2 : t2 >> 4 == 14 ? 3 : t2 >> 3 == 30 ? 4 : t2 >> 6 == 2 ? -1 : -2; + } + function s(t2) { + var e2 = this.lastTotal - this.lastNeed, r2 = function(t3, e3, r3) { + if ((192 & e3[0]) != 128) + return t3.lastNeed = 0, "\uFFFD"; + if (t3.lastNeed > 1 && e3.length > 1) { + if ((192 & e3[1]) != 128) + return t3.lastNeed = 1, "\uFFFD"; + if (t3.lastNeed > 2 && e3.length > 2 && (192 & e3[2]) != 128) + return t3.lastNeed = 2, "\uFFFD"; + } + }(this, t2); + return r2 !== void 0 ? r2 : this.lastNeed <= t2.length ? (t2.copy(this.lastChar, e2, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal)) : (t2.copy(this.lastChar, e2, 0, t2.length), void (this.lastNeed -= t2.length)); + } + function u(t2, e2) { + if ((t2.length - e2) % 2 == 0) { + var r2 = t2.toString("utf16le", e2); + if (r2) { + var n2 = r2.charCodeAt(r2.length - 1); + if (n2 >= 55296 && n2 <= 56319) + return this.lastNeed = 2, this.lastTotal = 4, this.lastChar[0] = t2[t2.length - 2], this.lastChar[1] = t2[t2.length - 1], r2.slice(0, -1); + } + return r2; + } + return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] = t2[t2.length - 1], t2.toString("utf16le", e2, t2.length - 1); + } + function f(t2) { + var e2 = t2 && t2.length ? this.write(t2) : ""; + if (this.lastNeed) { + var r2 = this.lastTotal - this.lastNeed; + return e2 + this.lastChar.toString("utf16le", 0, r2); + } + return e2; + } + function c(t2, e2) { + var r2 = (t2.length - e2) % 3; + return r2 === 0 ? t2.toString("base64", e2) : (this.lastNeed = 3 - r2, this.lastTotal = 3, r2 === 1 ? this.lastChar[0] = t2[t2.length - 1] : (this.lastChar[0] = t2[t2.length - 2], this.lastChar[1] = t2[t2.length - 1]), t2.toString("base64", e2, t2.length - r2)); + } + function h(t2) { + var e2 = t2 && t2.length ? this.write(t2) : ""; + return this.lastNeed ? e2 + this.lastChar.toString("base64", 0, 3 - this.lastNeed) : e2; + } + function l(t2) { + return t2.toString(this.encoding); + } + function d(t2) { + return t2 && t2.length ? this.write(t2) : ""; + } + e.StringDecoder = o, o.prototype.write = function(t2) { + if (t2.length === 0) + return ""; + var e2, r2; + if (this.lastNeed) { + if ((e2 = this.fillLast(t2)) === void 0) + return ""; + r2 = this.lastNeed, this.lastNeed = 0; + } else + r2 = 0; + return r2 < t2.length ? e2 ? e2 + this.text(t2, r2) : this.text(t2, r2) : e2 || ""; + }, o.prototype.end = function(t2) { + var e2 = t2 && t2.length ? this.write(t2) : ""; + return this.lastNeed ? e2 + "\uFFFD" : e2; + }, o.prototype.text = function(t2, e2) { + var r2 = function(t3, e3, r3) { + var n3 = e3.length - 1; + if (n3 < r3) + return 0; + var i2 = a(e3[n3]); + if (i2 >= 0) + return i2 > 0 && (t3.lastNeed = i2 - 1), i2; + if (--n3 < r3 || i2 === -2) + return 0; + if ((i2 = a(e3[n3])) >= 0) + return i2 > 0 && (t3.lastNeed = i2 - 2), i2; + if (--n3 < r3 || i2 === -2) + return 0; + if ((i2 = a(e3[n3])) >= 0) + return i2 > 0 && (i2 === 2 ? i2 = 0 : t3.lastNeed = i2 - 3), i2; + return 0; + }(this, t2, e2); + if (!this.lastNeed) + return t2.toString("utf8", e2); + this.lastTotal = r2; + var n2 = t2.length - (r2 - this.lastNeed); + return t2.copy(this.lastChar, 0, n2), t2.toString("utf8", e2, n2); + }, o.prototype.fillLast = function(t2) { + if (this.lastNeed <= t2.length) + return t2.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal); + t2.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, t2.length), this.lastNeed -= t2.length; + }; + }, function(t, e, r) { + "use strict"; + t.exports = o; + var n = r(51), i = r(24); + function o(t2) { + if (!(this instanceof o)) + return new o(t2); + n.call(this, t2); + } + i.inherits = r(18), i.inherits(o, n), o.prototype._transform = function(t2, e2, r2) { + r2(null, t2); + }; + }, function(t, e, r) { + "use strict"; + var n = r(0), i = r(7), o = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; + e.encode = function(t2) { + for (var e2, r2, i2, a, s, u, f, c = [], h = 0, l = t2.length, d = l, p = n.getTypeOf(t2) !== "string"; h < t2.length; ) + d = l - h, p ? (e2 = t2[h++], r2 = h < l ? t2[h++] : 0, i2 = h < l ? t2[h++] : 0) : (e2 = t2.charCodeAt(h++), r2 = h < l ? t2.charCodeAt(h++) : 0, i2 = h < l ? t2.charCodeAt(h++) : 0), a = e2 >> 2, s = (3 & e2) << 4 | r2 >> 4, u = d > 1 ? (15 & r2) << 2 | i2 >> 6 : 64, f = d > 2 ? 63 & i2 : 64, c.push(o.charAt(a) + o.charAt(s) + o.charAt(u) + o.charAt(f)); + return c.join(""); + }, e.decode = function(t2) { + var e2, r2, n2, a, s, u, f = 0, c = 0; + if (t2.substr(0, "data:".length) === "data:") + throw new Error("Invalid base64 input, it looks like a data url."); + var h, l = 3 * (t2 = t2.replace(/[^A-Za-z0-9\+\/\=]/g, "")).length / 4; + if (t2.charAt(t2.length - 1) === o.charAt(64) && l--, t2.charAt(t2.length - 2) === o.charAt(64) && l--, l % 1 != 0) + throw new Error("Invalid base64 input, bad content length."); + for (h = i.uint8array ? new Uint8Array(0 | l) : new Array(0 | l); f < t2.length; ) + e2 = o.indexOf(t2.charAt(f++)) << 2 | (a = o.indexOf(t2.charAt(f++))) >> 4, r2 = (15 & a) << 4 | (s = o.indexOf(t2.charAt(f++))) >> 2, n2 = (3 & s) << 6 | (u = o.indexOf(t2.charAt(f++))), h[c++] = e2, s !== 64 && (h[c++] = r2), u !== 64 && (h[c++] = n2); + return h; + }; + }, function(t, e) { + var r = t.exports = { version: "2.3.0" }; + typeof __e == "number" && (__e = r); + }, function(t, e, r) { + var n = r(166); + t.exports = function(t2, e2, r2) { + if (n(t2), e2 === void 0) + return t2; + switch (r2) { + case 1: + return function(r3) { + return t2.call(e2, r3); + }; + case 2: + return function(r3, n2) { + return t2.call(e2, r3, n2); + }; + case 3: + return function(r3, n2, i) { + return t2.call(e2, r3, n2, i); + }; + } + return function() { + return t2.apply(e2, arguments); + }; + }; + }, function(t, e) { + t.exports = function(t2) { + try { + return !!t2(); + } catch (t3) { + return true; + } + }; + }, function(t, e, r) { + var n = r(52), i = r(37).document, o = n(i) && n(i.createElement); + t.exports = function(t2) { + return o ? i.createElement(t2) : {}; + }; + }, function(t, e, r) { + "use strict"; + (function(e2) { + var n = r(0), i = r(179), o = r(3), a = r(80), s = r(7), u = r(25), f = null; + if (s.nodestream) + try { + f = r(180); + } catch (t2) { + } + function c(t2, r2) { + return new u.Promise(function(i2, o2) { + var s2 = [], u2 = t2._internalType, f2 = t2._outputType, c2 = t2._mimeType; + t2.on("data", function(t3, e3) { + s2.push(t3), r2 && r2(e3); + }).on("error", function(t3) { + s2 = [], o2(t3); + }).on("end", function() { + try { + var t3 = function(t4, e3, r3) { + switch (t4) { + case "blob": + return n.newBlob(n.transformTo("arraybuffer", e3), r3); + case "base64": + return a.encode(e3); + default: + return n.transformTo(t4, e3); + } + }(f2, function(t4, r3) { + var n2, i3 = 0, o3 = null, a2 = 0; + for (n2 = 0; n2 < r3.length; n2++) + a2 += r3[n2].length; + switch (t4) { + case "string": + return r3.join(""); + case "array": + return Array.prototype.concat.apply([], r3); + case "uint8array": + for (o3 = new Uint8Array(a2), n2 = 0; n2 < r3.length; n2++) + o3.set(r3[n2], i3), i3 += r3[n2].length; + return o3; + case "nodebuffer": + return e2.concat(r3); + default: + throw new Error("concat : unsupported type '" + t4 + "'"); + } + }(u2, s2), c2); + i2(t3); + } catch (t4) { + o2(t4); + } + s2 = []; + }).resume(); + }); + } + function h(t2, e3, r2) { + var a2 = e3; + switch (e3) { + case "blob": + case "arraybuffer": + a2 = "uint8array"; + break; + case "base64": + a2 = "string"; + } + try { + this._internalType = a2, this._outputType = e3, this._mimeType = r2, n.checkSupport(a2), this._worker = t2.pipe(new i(a2)), t2.lock(); + } catch (t3) { + this._worker = new o("error"), this._worker.error(t3); + } + } + h.prototype = { accumulate: function(t2) { + return c(this, t2); + }, on: function(t2, e3) { + var r2 = this; + return t2 === "data" ? this._worker.on(t2, function(t3) { + e3.call(r2, t3.data, t3.meta); + }) : this._worker.on(t2, function() { + n.delay(e3, arguments, r2); + }), this; + }, resume: function() { + return n.delay(this._worker.resume, [], this._worker), this; + }, pause: function() { + return this._worker.pause(), this; + }, toNodejsStream: function(t2) { + if (n.checkSupport("nodestream"), this._outputType !== "nodebuffer") + throw new Error(this._outputType + " is not supported by this method"); + return new f(this, { objectMode: this._outputType !== "nodebuffer" }, t2); + } }, t.exports = h; + }).call(this, r(5).Buffer); + }, function(t, e, r) { + "use strict"; + e.base64 = false, e.binary = false, e.dir = false, e.createFolders = true, e.date = null, e.compression = null, e.compressionOptions = null, e.comment = null, e.unixPermissions = null, e.dosPermissions = null; + }, function(t, e, r) { + "use strict"; + var n = r(0), i = r(3); + function o(t2) { + i.call(this, "DataWorker"); + var e2 = this; + this.dataIsReady = false, this.index = 0, this.max = 0, this.data = null, this.type = "", this._tickScheduled = false, t2.then(function(t3) { + e2.dataIsReady = true, e2.data = t3, e2.max = t3 && t3.length || 0, e2.type = n.getTypeOf(t3), e2.isPaused || e2._tickAndRepeat(); + }, function(t3) { + e2.error(t3); + }); + } + n.inherits(o, i), o.prototype.cleanUp = function() { + i.prototype.cleanUp.call(this), this.data = null; + }, o.prototype.resume = function() { + return !!i.prototype.resume.call(this) && (!this._tickScheduled && this.dataIsReady && (this._tickScheduled = true, n.delay(this._tickAndRepeat, [], this)), true); + }, o.prototype._tickAndRepeat = function() { + this._tickScheduled = false, this.isPaused || this.isFinished || (this._tick(), this.isFinished || (n.delay(this._tickAndRepeat, [], this), this._tickScheduled = true)); + }, o.prototype._tick = function() { + if (this.isPaused || this.isFinished) + return false; + var t2 = null, e2 = Math.min(this.max, this.index + 16384); + if (this.index >= this.max) + return this.end(); + switch (this.type) { + case "string": + t2 = this.data.substring(this.index, e2); + break; + case "uint8array": + t2 = this.data.subarray(this.index, e2); + break; + case "array": + case "nodebuffer": + t2 = this.data.slice(this.index, e2); + } + return this.index = e2, this.push({ data: t2, meta: { percent: this.max ? this.index / this.max * 100 : 0 } }); + }, t.exports = o; + }, function(t, e, r) { + "use strict"; + var n = r(0), i = r(3); + function o(t2) { + i.call(this, "DataLengthProbe for " + t2), this.propName = t2, this.withStreamInfo(t2, 0); + } + n.inherits(o, i), o.prototype.processChunk = function(t2) { + if (t2) { + var e2 = this.streamInfo[this.propName] || 0; + this.streamInfo[this.propName] = e2 + t2.data.length; + } + i.prototype.processChunk.call(this, t2); + }, t.exports = o; + }, function(t, e, r) { + "use strict"; + var n = r(3), i = r(55); + function o() { + n.call(this, "Crc32Probe"), this.withStreamInfo("crc32", 0); + } + r(0).inherits(o, n), o.prototype.processChunk = function(t2) { + this.streamInfo.crc32 = i(t2.data, this.streamInfo.crc32 || 0), this.push(t2); + }, t.exports = o; + }, function(t, e, r) { + "use strict"; + var n = r(3); + e.STORE = { magic: "\0\0", compressWorker: function(t2) { + return new n("STORE compression"); + }, uncompressWorker: function() { + return new n("STORE decompression"); + } }, e.DEFLATE = r(183); + }, function(t, e, r) { + "use strict"; + t.exports = function(t2, e2, r2, n) { + for (var i = 65535 & t2 | 0, o = t2 >>> 16 & 65535 | 0, a = 0; r2 !== 0; ) { + r2 -= a = r2 > 2e3 ? 2e3 : r2; + do { + o = o + (i = i + e2[n++] | 0) | 0; + } while (--a); + i %= 65521, o %= 65521; + } + return i | o << 16 | 0; + }; + }, function(t, e, r) { + "use strict"; + var n = function() { + for (var t2, e2 = [], r2 = 0; r2 < 256; r2++) { + t2 = r2; + for (var n2 = 0; n2 < 8; n2++) + t2 = 1 & t2 ? 3988292384 ^ t2 >>> 1 : t2 >>> 1; + e2[r2] = t2; + } + return e2; + }(); + t.exports = function(t2, e2, r2, i) { + var o = n, a = i + r2; + t2 ^= -1; + for (var s = i; s < a; s++) + t2 = t2 >>> 8 ^ o[255 & (t2 ^ e2[s])]; + return -1 ^ t2; + }; + }, function(t, e, r) { + "use strict"; + var n = r(8), i = true, o = true; + try { + String.fromCharCode.apply(null, [0]); + } catch (t2) { + i = false; + } + try { + String.fromCharCode.apply(null, new Uint8Array(1)); + } catch (t2) { + o = false; + } + for (var a = new n.Buf8(256), s = 0; s < 256; s++) + a[s] = s >= 252 ? 6 : s >= 248 ? 5 : s >= 240 ? 4 : s >= 224 ? 3 : s >= 192 ? 2 : 1; + function u(t2, e2) { + if (e2 < 65537 && (t2.subarray && o || !t2.subarray && i)) + return String.fromCharCode.apply(null, n.shrinkBuf(t2, e2)); + for (var r2 = "", a2 = 0; a2 < e2; a2++) + r2 += String.fromCharCode(t2[a2]); + return r2; + } + a[254] = a[254] = 1, e.string2buf = function(t2) { + var e2, r2, i2, o2, a2, s2 = t2.length, u2 = 0; + for (o2 = 0; o2 < s2; o2++) + (64512 & (r2 = t2.charCodeAt(o2))) == 55296 && o2 + 1 < s2 && (64512 & (i2 = t2.charCodeAt(o2 + 1))) == 56320 && (r2 = 65536 + (r2 - 55296 << 10) + (i2 - 56320), o2++), u2 += r2 < 128 ? 1 : r2 < 2048 ? 2 : r2 < 65536 ? 3 : 4; + for (e2 = new n.Buf8(u2), a2 = 0, o2 = 0; a2 < u2; o2++) + (64512 & (r2 = t2.charCodeAt(o2))) == 55296 && o2 + 1 < s2 && (64512 & (i2 = t2.charCodeAt(o2 + 1))) == 56320 && (r2 = 65536 + (r2 - 55296 << 10) + (i2 - 56320), o2++), r2 < 128 ? e2[a2++] = r2 : r2 < 2048 ? (e2[a2++] = 192 | r2 >>> 6, e2[a2++] = 128 | 63 & r2) : r2 < 65536 ? (e2[a2++] = 224 | r2 >>> 12, e2[a2++] = 128 | r2 >>> 6 & 63, e2[a2++] = 128 | 63 & r2) : (e2[a2++] = 240 | r2 >>> 18, e2[a2++] = 128 | r2 >>> 12 & 63, e2[a2++] = 128 | r2 >>> 6 & 63, e2[a2++] = 128 | 63 & r2); + return e2; + }, e.buf2binstring = function(t2) { + return u(t2, t2.length); + }, e.binstring2buf = function(t2) { + for (var e2 = new n.Buf8(t2.length), r2 = 0, i2 = e2.length; r2 < i2; r2++) + e2[r2] = t2.charCodeAt(r2); + return e2; + }, e.buf2string = function(t2, e2) { + var r2, n2, i2, o2, s2 = e2 || t2.length, f = new Array(2 * s2); + for (n2 = 0, r2 = 0; r2 < s2; ) + if ((i2 = t2[r2++]) < 128) + f[n2++] = i2; + else if ((o2 = a[i2]) > 4) + f[n2++] = 65533, r2 += o2 - 1; + else { + for (i2 &= o2 === 2 ? 31 : o2 === 3 ? 15 : 7; o2 > 1 && r2 < s2; ) + i2 = i2 << 6 | 63 & t2[r2++], o2--; + o2 > 1 ? f[n2++] = 65533 : i2 < 65536 ? f[n2++] = i2 : (i2 -= 65536, f[n2++] = 55296 | i2 >> 10 & 1023, f[n2++] = 56320 | 1023 & i2); + } + return u(f, n2); + }, e.utf8border = function(t2, e2) { + var r2; + for ((e2 = e2 || t2.length) > t2.length && (e2 = t2.length), r2 = e2 - 1; r2 >= 0 && (192 & t2[r2]) == 128; ) + r2--; + return r2 < 0 ? e2 : r2 === 0 ? e2 : r2 + a[t2[r2]] > e2 ? r2 : e2; + }; + }, function(t, e, r) { + "use strict"; + t.exports = function() { + this.input = null, this.next_in = 0, this.avail_in = 0, this.total_in = 0, this.output = null, this.next_out = 0, this.avail_out = 0, this.total_out = 0, this.msg = "", this.state = null, this.data_type = 2, this.adler = 0; + }; + }, function(t, e, r) { + "use strict"; + t.exports = { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_TREES: 6, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_BUF_ERROR: -5, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, Z_BINARY: 0, Z_TEXT: 1, Z_UNKNOWN: 2, Z_DEFLATED: 8 }; + }, function(t, e, r) { + "use strict"; + e.LOCAL_FILE_HEADER = "PK", e.CENTRAL_FILE_HEADER = "PK", e.CENTRAL_DIRECTORY_END = "PK", e.ZIP64_CENTRAL_DIRECTORY_LOCATOR = "PK\x07", e.ZIP64_CENTRAL_DIRECTORY_END = "PK", e.DATA_DESCRIPTOR = "PK\x07\b"; + }, function(t, e, r) { + "use strict"; + var n = r(0), i = r(7), o = r(98), a = r(197), s = r(198), u = r(100); + t.exports = function(t2) { + var e2 = n.getTypeOf(t2); + return n.checkSupport(e2), e2 !== "string" || i.uint8array ? e2 === "nodebuffer" ? new s(t2) : i.uint8array ? new u(n.transformTo("uint8array", t2)) : new o(n.transformTo("array", t2)) : new a(t2); + }; + }, function(t, e, r) { + "use strict"; + var n = r(99); + function i(t2) { + n.call(this, t2); + for (var e2 = 0; e2 < this.data.length; e2++) + t2[e2] = 255 & t2[e2]; + } + r(0).inherits(i, n), i.prototype.byteAt = function(t2) { + return this.data[this.zero + t2]; + }, i.prototype.lastIndexOfSignature = function(t2) { + for (var e2 = t2.charCodeAt(0), r2 = t2.charCodeAt(1), n2 = t2.charCodeAt(2), i2 = t2.charCodeAt(3), o = this.length - 4; o >= 0; --o) + if (this.data[o] === e2 && this.data[o + 1] === r2 && this.data[o + 2] === n2 && this.data[o + 3] === i2) + return o - this.zero; + return -1; + }, i.prototype.readAndCheckSignature = function(t2) { + var e2 = t2.charCodeAt(0), r2 = t2.charCodeAt(1), n2 = t2.charCodeAt(2), i2 = t2.charCodeAt(3), o = this.readData(4); + return e2 === o[0] && r2 === o[1] && n2 === o[2] && i2 === o[3]; + }, i.prototype.readData = function(t2) { + if (this.checkOffset(t2), t2 === 0) + return []; + var e2 = this.data.slice(this.zero + this.index, this.zero + this.index + t2); + return this.index += t2, e2; + }, t.exports = i; + }, function(t, e, r) { + "use strict"; + var n = r(0); + function i(t2) { + this.data = t2, this.length = t2.length, this.index = 0, this.zero = 0; + } + i.prototype = { checkOffset: function(t2) { + this.checkIndex(this.index + t2); + }, checkIndex: function(t2) { + if (this.length < this.zero + t2 || t2 < 0) + throw new Error("End of data reached (data length = " + this.length + ", asked index = " + t2 + "). Corrupted zip ?"); + }, setIndex: function(t2) { + this.checkIndex(t2), this.index = t2; + }, skip: function(t2) { + this.setIndex(this.index + t2); + }, byteAt: function(t2) { + }, readInt: function(t2) { + var e2, r2 = 0; + for (this.checkOffset(t2), e2 = this.index + t2 - 1; e2 >= this.index; e2--) + r2 = (r2 << 8) + this.byteAt(e2); + return this.index += t2, r2; + }, readString: function(t2) { + return n.transformTo("string", this.readData(t2)); + }, readData: function(t2) { + }, lastIndexOfSignature: function(t2) { + }, readAndCheckSignature: function(t2) { + }, readDate: function() { + var t2 = this.readInt(4); + return new Date(Date.UTC(1980 + (t2 >> 25 & 127), (t2 >> 21 & 15) - 1, t2 >> 16 & 31, t2 >> 11 & 31, t2 >> 5 & 63, (31 & t2) << 1)); + } }, t.exports = i; + }, function(t, e, r) { + "use strict"; + var n = r(98); + function i(t2) { + n.call(this, t2); + } + r(0).inherits(i, n), i.prototype.readData = function(t2) { + if (this.checkOffset(t2), t2 === 0) + return new Uint8Array(0); + var e2 = this.data.subarray(this.zero + this.index, this.zero + this.index + t2); + return this.index += t2, e2; + }, t.exports = i; + }, function(t, e, r) { + "use strict"; + Object.defineProperty(e, "__esModule", { value: true }); + var n = f(r(102)), i = f(r(105)), o = f(r(127)), a = f(r(144)), s = f(r(149)), u = f(r(200)); + function f(t2) { + return t2 && t2.__esModule ? t2 : { default: t2 }; + } + e.default = function(t2) { + var e2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r2 = t2.getConfig("stylePrefix"), f2 = document.createElement("button"), c = (0, a.default)({ addExportBtn: 1, btnLabel: "Export to ZIP", filenamePfx: "grapesjs_template", filename: null, root: { css: { "style.css": function(t3) { + return t3.getCss(); + } }, "index.html": function(t3) { + return '<!doctype html>\n <html lang="en">\n <head>\n <meta charset="utf-8">\n <link rel="stylesheet" href="./css/style.css">\n </head>\n <body>' + t3.getHtml() + "</body>\n <html>"; + } }, isBinary: null }, e2); + f2.innerHTML = c.btnLabel, f2.className = r2 + "btn-prim", t2.Commands.add("gjs-export-zip", { createFile: function(e3, r3, n2) { + var i2 = {}, o2 = r3.split(".")[1]; + (c.isBinary ? c.isBinary(n2, r3) : !(o2 && ["html", "css"].indexOf(o2) >= 0 || /^[\x00-\x7F]*$/.test(n2))) && (i2.binary = true), t2.log(["Create file", { name: r3, content: n2, opts: i2 }], { ns: "plugin-export" }), e3.file(r3, n2, i2); + }, createDirectory: function() { + var e3 = (0, o.default)(n.default.mark(function e4(r3, o2) { + var a2, s2, u2, f3; + return n.default.wrap(function(e5) { + for (; ; ) + switch (e5.prev = e5.next) { + case 0: + if (typeof o2 != "function") { + e5.next = 6; + break; + } + return e5.next = 3, o2(t2); + case 3: + e5.t0 = e5.sent, e5.next = 7; + break; + case 6: + e5.t0 = o2; + case 7: + o2 = e5.t0, e5.t1 = n.default.keys(o2); + case 9: + if ((e5.t2 = e5.t1()).done) { + e5.next = 32; + break; + } + if (a2 = e5.t2.value, !o2.hasOwnProperty(a2)) { + e5.next = 30; + break; + } + if (typeof (s2 = o2[a2]) != "function") { + e5.next = 19; + break; + } + return e5.next = 16, s2(t2); + case 16: + e5.t3 = e5.sent, e5.next = 20; + break; + case 19: + e5.t3 = s2; + case 20: + if (s2 = e5.t3, (u2 = s2 === void 0 ? "undefined" : (0, i.default)(s2)) !== "string") { + e5.next = 26; + break; + } + this.createFile(r3, a2, s2), e5.next = 30; + break; + case 26: + if (u2 !== "object") { + e5.next = 30; + break; + } + return f3 = r3.folder(a2), e5.next = 30, this.createDirectory(f3, s2); + case 30: + e5.next = 9; + break; + case 32: + case "end": + return e5.stop(); + } + }, e4, this); + })); + return function(t3, r3) { + return e3.apply(this, arguments); + }; + }(), run: function(t3) { + var e3 = new s.default(); + this.createDirectory(e3, c.root).then(function() { + e3.generateAsync({ type: "blob" }).then(function(e4) { + var r3 = c.filename, n2 = r3 ? r3(t3) : c.filenamePfx + "_" + Date.now() + ".zip"; + u.default.saveAs(e4, n2); + }); + }); + } }), c.addExportBtn && t2.on("run:export-template", function() { + t2.Modal.getContentEl().appendChild(f2), f2.onclick = function() { + t2.runCommand("gjs-export-zip"); + }; + }); + }; + }, function(t, e, r) { + t.exports = r(103); + }, function(t, e, r) { + var n = function() { + return this; + }() || Function("return this")(), i = n.regeneratorRuntime && Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime") >= 0, o = i && n.regeneratorRuntime; + if (n.regeneratorRuntime = void 0, t.exports = r(104), i) + n.regeneratorRuntime = o; + else + try { + delete n.regeneratorRuntime; + } catch (t2) { + n.regeneratorRuntime = void 0; + } + }, function(t, e) { + !function(e2) { + "use strict"; + var r, n = Object.prototype, i = n.hasOwnProperty, o = typeof Symbol == "function" ? Symbol : {}, a = o.iterator || "@@iterator", s = o.asyncIterator || "@@asyncIterator", u = o.toStringTag || "@@toStringTag", f = typeof t == "object", c = e2.regeneratorRuntime; + if (c) + f && (t.exports = c); + else { + (c = e2.regeneratorRuntime = f ? t.exports : {}).wrap = w; + var h = "suspendedStart", l = "suspendedYield", d = "executing", p = "completed", m = {}, g = {}; + g[a] = function() { + return this; + }; + var v = Object.getPrototypeOf, y = v && v(v(I([]))); + y && y !== n && i.call(y, a) && (g = y); + var _ = S.prototype = x.prototype = Object.create(g); + k.prototype = _.constructor = S, S.constructor = k, S[u] = k.displayName = "GeneratorFunction", c.isGeneratorFunction = function(t2) { + var e3 = typeof t2 == "function" && t2.constructor; + return !!e3 && (e3 === k || (e3.displayName || e3.name) === "GeneratorFunction"); + }, c.mark = function(t2) { + return Object.setPrototypeOf ? Object.setPrototypeOf(t2, S) : (t2.__proto__ = S, u in t2 || (t2[u] = "GeneratorFunction")), t2.prototype = Object.create(_), t2; + }, c.awrap = function(t2) { + return { __await: t2 }; + }, E(A.prototype), A.prototype[s] = function() { + return this; + }, c.AsyncIterator = A, c.async = function(t2, e3, r2, n2) { + var i2 = new A(w(t2, e3, r2, n2)); + return c.isGeneratorFunction(e3) ? i2 : i2.next().then(function(t3) { + return t3.done ? t3.value : i2.next(); + }); + }, E(_), _[u] = "Generator", _[a] = function() { + return this; + }, _.toString = function() { + return "[object Generator]"; + }, c.keys = function(t2) { + var e3 = []; + for (var r2 in t2) + e3.push(r2); + return e3.reverse(), function r3() { + for (; e3.length; ) { + var n2 = e3.pop(); + if (n2 in t2) + return r3.value = n2, r3.done = false, r3; + } + return r3.done = true, r3; + }; + }, c.values = I, R.prototype = { constructor: R, reset: function(t2) { + if (this.prev = 0, this.next = 0, this.sent = this._sent = r, this.done = false, this.delegate = null, this.method = "next", this.arg = r, this.tryEntries.forEach(O), !t2) + for (var e3 in this) + e3.charAt(0) === "t" && i.call(this, e3) && !isNaN(+e3.slice(1)) && (this[e3] = r); + }, stop: function() { + this.done = true; + var t2 = this.tryEntries[0].completion; + if (t2.type === "throw") + throw t2.arg; + return this.rval; + }, dispatchException: function(t2) { + if (this.done) + throw t2; + var e3 = this; + function n2(n3, i2) { + return s2.type = "throw", s2.arg = t2, e3.next = n3, i2 && (e3.method = "next", e3.arg = r), !!i2; + } + for (var o2 = this.tryEntries.length - 1; o2 >= 0; --o2) { + var a2 = this.tryEntries[o2], s2 = a2.completion; + if (a2.tryLoc === "root") + return n2("end"); + if (a2.tryLoc <= this.prev) { + var u2 = i.call(a2, "catchLoc"), f2 = i.call(a2, "finallyLoc"); + if (u2 && f2) { + if (this.prev < a2.catchLoc) + return n2(a2.catchLoc, true); + if (this.prev < a2.finallyLoc) + return n2(a2.finallyLoc); + } else if (u2) { + if (this.prev < a2.catchLoc) + return n2(a2.catchLoc, true); + } else { + if (!f2) + throw new Error("try statement without catch or finally"); + if (this.prev < a2.finallyLoc) + return n2(a2.finallyLoc); + } + } + } + }, abrupt: function(t2, e3) { + for (var r2 = this.tryEntries.length - 1; r2 >= 0; --r2) { + var n2 = this.tryEntries[r2]; + if (n2.tryLoc <= this.prev && i.call(n2, "finallyLoc") && this.prev < n2.finallyLoc) { + var o2 = n2; + break; + } + } + o2 && (t2 === "break" || t2 === "continue") && o2.tryLoc <= e3 && e3 <= o2.finallyLoc && (o2 = null); + var a2 = o2 ? o2.completion : {}; + return a2.type = t2, a2.arg = e3, o2 ? (this.method = "next", this.next = o2.finallyLoc, m) : this.complete(a2); + }, complete: function(t2, e3) { + if (t2.type === "throw") + throw t2.arg; + return t2.type === "break" || t2.type === "continue" ? this.next = t2.arg : t2.type === "return" ? (this.rval = this.arg = t2.arg, this.method = "return", this.next = "end") : t2.type === "normal" && e3 && (this.next = e3), m; + }, finish: function(t2) { + for (var e3 = this.tryEntries.length - 1; e3 >= 0; --e3) { + var r2 = this.tryEntries[e3]; + if (r2.finallyLoc === t2) + return this.complete(r2.completion, r2.afterLoc), O(r2), m; + } + }, catch: function(t2) { + for (var e3 = this.tryEntries.length - 1; e3 >= 0; --e3) { + var r2 = this.tryEntries[e3]; + if (r2.tryLoc === t2) { + var n2 = r2.completion; + if (n2.type === "throw") { + var i2 = n2.arg; + O(r2); + } + return i2; + } + } + throw new Error("illegal catch attempt"); + }, delegateYield: function(t2, e3, n2) { + return this.delegate = { iterator: I(t2), resultName: e3, nextLoc: n2 }, this.method === "next" && (this.arg = r), m; + } }; + } + function w(t2, e3, r2, n2) { + var i2 = e3 && e3.prototype instanceof x ? e3 : x, o2 = Object.create(i2.prototype), a2 = new R(n2 || []); + return o2._invoke = function(t3, e4, r3) { + var n3 = h; + return function(i3, o3) { + if (n3 === d) + throw new Error("Generator is already running"); + if (n3 === p) { + if (i3 === "throw") + throw o3; + return B(); + } + for (r3.method = i3, r3.arg = o3; ; ) { + var a3 = r3.delegate; + if (a3) { + var s2 = T(a3, r3); + if (s2) { + if (s2 === m) + continue; + return s2; + } + } + if (r3.method === "next") + r3.sent = r3._sent = r3.arg; + else if (r3.method === "throw") { + if (n3 === h) + throw n3 = p, r3.arg; + r3.dispatchException(r3.arg); + } else + r3.method === "return" && r3.abrupt("return", r3.arg); + n3 = d; + var u2 = b(t3, e4, r3); + if (u2.type === "normal") { + if (n3 = r3.done ? p : l, u2.arg === m) + continue; + return { value: u2.arg, done: r3.done }; + } + u2.type === "throw" && (n3 = p, r3.method = "throw", r3.arg = u2.arg); + } + }; + }(t2, r2, a2), o2; + } + function b(t2, e3, r2) { + try { + return { type: "normal", arg: t2.call(e3, r2) }; + } catch (t3) { + return { type: "throw", arg: t3 }; + } + } + function x() { + } + function k() { + } + function S() { + } + function E(t2) { + ["next", "throw", "return"].forEach(function(e3) { + t2[e3] = function(t3) { + return this._invoke(e3, t3); + }; + }); + } + function A(t2) { + var e3; + this._invoke = function(r2, n2) { + function o2() { + return new Promise(function(e4, o3) { + !function e5(r3, n3, o4, a2) { + var s2 = b(t2[r3], t2, n3); + if (s2.type !== "throw") { + var u2 = s2.arg, f2 = u2.value; + return f2 && typeof f2 == "object" && i.call(f2, "__await") ? Promise.resolve(f2.__await).then(function(t3) { + e5("next", t3, o4, a2); + }, function(t3) { + e5("throw", t3, o4, a2); + }) : Promise.resolve(f2).then(function(t3) { + u2.value = t3, o4(u2); + }, a2); + } + a2(s2.arg); + }(r2, n2, e4, o3); + }); + } + return e3 = e3 ? e3.then(o2, o2) : o2(); + }; + } + function T(t2, e3) { + var n2 = t2.iterator[e3.method]; + if (n2 === r) { + if (e3.delegate = null, e3.method === "throw") { + if (t2.iterator.return && (e3.method = "return", e3.arg = r, T(t2, e3), e3.method === "throw")) + return m; + e3.method = "throw", e3.arg = new TypeError("The iterator does not provide a 'throw' method"); + } + return m; + } + var i2 = b(n2, t2.iterator, e3.arg); + if (i2.type === "throw") + return e3.method = "throw", e3.arg = i2.arg, e3.delegate = null, m; + var o2 = i2.arg; + return o2 ? o2.done ? (e3[t2.resultName] = o2.value, e3.next = t2.nextLoc, e3.method !== "return" && (e3.method = "next", e3.arg = r), e3.delegate = null, m) : o2 : (e3.method = "throw", e3.arg = new TypeError("iterator result is not an object"), e3.delegate = null, m); + } + function C(t2) { + var e3 = { tryLoc: t2[0] }; + 1 in t2 && (e3.catchLoc = t2[1]), 2 in t2 && (e3.finallyLoc = t2[2], e3.afterLoc = t2[3]), this.tryEntries.push(e3); + } + function O(t2) { + var e3 = t2.completion || {}; + e3.type = "normal", delete e3.arg, t2.completion = e3; + } + function R(t2) { + this.tryEntries = [{ tryLoc: "root" }], t2.forEach(C, this), this.reset(true); + } + function I(t2) { + if (t2) { + var e3 = t2[a]; + if (e3) + return e3.call(t2); + if (typeof t2.next == "function") + return t2; + if (!isNaN(t2.length)) { + var n2 = -1, o2 = function e4() { + for (; ++n2 < t2.length; ) + if (i.call(t2, n2)) + return e4.value = t2[n2], e4.done = false, e4; + return e4.value = r, e4.done = true, e4; + }; + return o2.next = o2; + } + } + return { next: B }; + } + function B() { + return { value: r, done: true }; + } + }(function() { + return this; + }() || Function("return this")()); + }, function(t, e, r) { + "use strict"; + e.__esModule = true; + var n = a(r(106)), i = a(r(117)), o = typeof i.default == "function" && typeof n.default == "symbol" ? function(t2) { + return typeof t2; + } : function(t2) { + return t2 && typeof i.default == "function" && t2.constructor === i.default && t2 !== i.default.prototype ? "symbol" : typeof t2; + }; + function a(t2) { + return t2 && t2.__esModule ? t2 : { default: t2 }; + } + e.default = typeof i.default == "function" && o(n.default) === "symbol" ? function(t2) { + return t2 === void 0 ? "undefined" : o(t2); + } : function(t2) { + return t2 && typeof i.default == "function" && t2.constructor === i.default && t2 !== i.default.prototype ? "symbol" : t2 === void 0 ? "undefined" : o(t2); + }; + }, function(t, e, r) { + t.exports = { default: r(107), __esModule: true }; + }, function(t, e, r) { + r(57), r(67), t.exports = r(45).f("iterator"); + }, function(t, e, r) { + var n = r(38), i = r(39); + t.exports = function(t2) { + return function(e2, r2) { + var o, a, s = String(i(e2)), u = n(r2), f = s.length; + return u < 0 || u >= f ? t2 ? "" : void 0 : (o = s.charCodeAt(u)) < 55296 || o > 56319 || u + 1 === f || (a = s.charCodeAt(u + 1)) < 56320 || a > 57343 ? t2 ? s.charAt(u) : o : t2 ? s.slice(u, u + 2) : a - 56320 + (o - 55296 << 10) + 65536; + }; + }; + }, function(t, e, r) { + "use strict"; + var n = r(61), i = r(28), o = r(31), a = {}; + r(9)(a, r(2)("iterator"), function() { + return this; + }), t.exports = function(t2, e2, r2) { + t2.prototype = n(a, { next: i(1, r2) }), o(t2, e2 + " Iterator"); + }; + }, function(t, e, r) { + var n = r(10), i = r(6), o = r(29); + t.exports = r(12) ? Object.defineProperties : function(t2, e2) { + i(t2); + for (var r2, a = o(e2), s = a.length, u = 0; s > u; ) + n.f(t2, r2 = a[u++], e2[r2]); + return t2; + }; + }, function(t, e, r) { + var n = r(16), i = r(64), o = r(112); + t.exports = function(t2) { + return function(e2, r2, a) { + var s, u = n(e2), f = i(u.length), c = o(a, f); + if (t2 && r2 != r2) { + for (; f > c; ) + if ((s = u[c++]) != s) + return true; + } else + for (; f > c; c++) + if ((t2 || c in u) && u[c] === r2) + return t2 || c || 0; + return !t2 && -1; + }; + }; + }, function(t, e, r) { + var n = r(38), i = Math.max, o = Math.min; + t.exports = function(t2, e2) { + return (t2 = n(t2)) < 0 ? i(t2 + e2, 0) : o(t2, e2); + }; + }, function(t, e, r) { + var n = r(13), i = r(66), o = r(42)("IE_PROTO"), a = Object.prototype; + t.exports = Object.getPrototypeOf || function(t2) { + return t2 = i(t2), n(t2, o) ? t2[o] : typeof t2.constructor == "function" && t2 instanceof t2.constructor ? t2.constructor.prototype : t2 instanceof Object ? a : null; + }; + }, function(t, e, r) { + "use strict"; + var n = r(115), i = r(116), o = r(21), a = r(16); + t.exports = r(58)(Array, "Array", function(t2, e2) { + this._t = a(t2), this._i = 0, this._k = e2; + }, function() { + var t2 = this._t, e2 = this._k, r2 = this._i++; + return !t2 || r2 >= t2.length ? (this._t = void 0, i(1)) : i(0, e2 == "keys" ? r2 : e2 == "values" ? t2[r2] : [r2, t2[r2]]); + }, "values"), o.Arguments = o.Array, n("keys"), n("values"), n("entries"); + }, function(t, e) { + t.exports = function() { + }; + }, function(t, e) { + t.exports = function(t2, e2) { + return { value: e2, done: !!t2 }; + }; + }, function(t, e, r) { + t.exports = { default: r(118), __esModule: true }; + }, function(t, e, r) { + r(119), r(69), r(125), r(126), t.exports = r(4).Symbol; + }, function(t, e, r) { + "use strict"; + var n = r(1), i = r(13), o = r(12), a = r(15), s = r(60), u = r(120).KEY, f = r(20), c = r(43), h = r(31), l = r(30), d = r(2), p = r(45), m = r(46), g = r(121), v = r(122), y = r(6), _ = r(11), w = r(16), b = r(41), x = r(28), k = r(61), S = r(123), E = r(124), A = r(10), T = r(29), C = E.f, O = A.f, R = S.f, I = n.Symbol, B = n.JSON, L = B && B.stringify, P = d("_hidden"), z = d("toPrimitive"), j = {}.propertyIsEnumerable, D = c("symbol-registry"), N = c("symbols"), M = c("op-symbols"), F = Object.prototype, U = typeof I == "function", W = n.QObject, Z = !W || !W.prototype || !W.prototype.findChild, Y = o && f(function() { + return k(O({}, "a", { get: function() { + return O(this, "a", { value: 7 }).a; + } })).a != 7; + }) ? function(t2, e2, r2) { + var n2 = C(F, e2); + n2 && delete F[e2], O(t2, e2, r2), n2 && t2 !== F && O(F, e2, n2); + } : O, H = function(t2) { + var e2 = N[t2] = k(I.prototype); + return e2._k = t2, e2; + }, q = U && typeof I.iterator == "symbol" ? function(t2) { + return typeof t2 == "symbol"; + } : function(t2) { + return t2 instanceof I; + }, G = function(t2, e2, r2) { + return t2 === F && G(M, e2, r2), y(t2), e2 = b(e2, true), y(r2), i(N, e2) ? (r2.enumerable ? (i(t2, P) && t2[P][e2] && (t2[P][e2] = false), r2 = k(r2, { enumerable: x(0, false) })) : (i(t2, P) || O(t2, P, x(1, {})), t2[P][e2] = true), Y(t2, e2, r2)) : O(t2, e2, r2); + }, K = function(t2, e2) { + y(t2); + for (var r2, n2 = g(e2 = w(e2)), i2 = 0, o2 = n2.length; o2 > i2; ) + G(t2, r2 = n2[i2++], e2[r2]); + return t2; + }, V = function(t2) { + var e2 = j.call(this, t2 = b(t2, true)); + return !(this === F && i(N, t2) && !i(M, t2)) && (!(e2 || !i(this, t2) || !i(N, t2) || i(this, P) && this[P][t2]) || e2); + }, X = function(t2, e2) { + if (t2 = w(t2), e2 = b(e2, true), t2 !== F || !i(N, e2) || i(M, e2)) { + var r2 = C(t2, e2); + return !r2 || !i(N, e2) || i(t2, P) && t2[P][e2] || (r2.enumerable = true), r2; + } + }, J = function(t2) { + for (var e2, r2 = R(w(t2)), n2 = [], o2 = 0; r2.length > o2; ) + i(N, e2 = r2[o2++]) || e2 == P || e2 == u || n2.push(e2); + return n2; + }, $ = function(t2) { + for (var e2, r2 = t2 === F, n2 = R(r2 ? M : w(t2)), o2 = [], a2 = 0; n2.length > a2; ) + !i(N, e2 = n2[a2++]) || r2 && !i(F, e2) || o2.push(N[e2]); + return o2; + }; + U || (s((I = function() { + if (this instanceof I) + throw TypeError("Symbol is not a constructor!"); + var t2 = l(arguments.length > 0 ? arguments[0] : void 0), e2 = function(r2) { + this === F && e2.call(M, r2), i(this, P) && i(this[P], t2) && (this[P][t2] = false), Y(this, t2, x(1, r2)); + }; + return o && Z && Y(F, t2, { configurable: true, set: e2 }), H(t2); + }).prototype, "toString", function() { + return this._k; + }), E.f = X, A.f = G, r(68).f = S.f = J, r(32).f = V, r(47).f = $, o && !r(19) && s(F, "propertyIsEnumerable", V, true), p.f = function(t2) { + return H(d(t2)); + }), a(a.G + a.W + a.F * !U, { Symbol: I }); + for (var Q = "hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","), tt = 0; Q.length > tt; ) + d(Q[tt++]); + for (var et = T(d.store), rt = 0; et.length > rt; ) + m(et[rt++]); + a(a.S + a.F * !U, "Symbol", { for: function(t2) { + return i(D, t2 += "") ? D[t2] : D[t2] = I(t2); + }, keyFor: function(t2) { + if (!q(t2)) + throw TypeError(t2 + " is not a symbol!"); + for (var e2 in D) + if (D[e2] === t2) + return e2; + }, useSetter: function() { + Z = true; + }, useSimple: function() { + Z = false; + } }), a(a.S + a.F * !U, "Object", { create: function(t2, e2) { + return e2 === void 0 ? k(t2) : K(k(t2), e2); + }, defineProperty: G, defineProperties: K, getOwnPropertyDescriptor: X, getOwnPropertyNames: J, getOwnPropertySymbols: $ }), B && a(a.S + a.F * (!U || f(function() { + var t2 = I(); + return L([t2]) != "[null]" || L({ a: t2 }) != "{}" || L(Object(t2)) != "{}"; + })), "JSON", { stringify: function(t2) { + for (var e2, r2, n2 = [t2], i2 = 1; arguments.length > i2; ) + n2.push(arguments[i2++]); + if (r2 = e2 = n2[1], (_(e2) || t2 !== void 0) && !q(t2)) + return v(e2) || (e2 = function(t3, e3) { + if (typeof r2 == "function" && (e3 = r2.call(this, t3, e3)), !q(e3)) + return e3; + }), n2[1] = e2, L.apply(B, n2); + } }), I.prototype[z] || r(9)(I.prototype, z, I.prototype.valueOf), h(I, "Symbol"), h(Math, "Math", true), h(n.JSON, "JSON", true); + }, function(t, e, r) { + var n = r(30)("meta"), i = r(11), o = r(13), a = r(10).f, s = 0, u = Object.isExtensible || function() { + return true; + }, f = !r(20)(function() { + return u(Object.preventExtensions({})); + }), c = function(t2) { + a(t2, n, { value: { i: "O" + ++s, w: {} } }); + }, h = t.exports = { KEY: n, NEED: false, fastKey: function(t2, e2) { + if (!i(t2)) + return typeof t2 == "symbol" ? t2 : (typeof t2 == "string" ? "S" : "P") + t2; + if (!o(t2, n)) { + if (!u(t2)) + return "F"; + if (!e2) + return "E"; + c(t2); + } + return t2[n].i; + }, getWeak: function(t2, e2) { + if (!o(t2, n)) { + if (!u(t2)) + return true; + if (!e2) + return false; + c(t2); + } + return t2[n].w; + }, onFreeze: function(t2) { + return f && h.NEED && u(t2) && !o(t2, n) && c(t2), t2; + } }; + }, function(t, e, r) { + var n = r(29), i = r(47), o = r(32); + t.exports = function(t2) { + var e2 = n(t2), r2 = i.f; + if (r2) + for (var a, s = r2(t2), u = o.f, f = 0; s.length > f; ) + u.call(t2, a = s[f++]) && e2.push(a); + return e2; + }; + }, function(t, e, r) { + var n = r(22); + t.exports = Array.isArray || function(t2) { + return n(t2) == "Array"; + }; + }, function(t, e, r) { + var n = r(16), i = r(68).f, o = {}.toString, a = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : []; + t.exports.f = function(t2) { + return a && o.call(t2) == "[object Window]" ? function(t3) { + try { + return i(t3); + } catch (t4) { + return a.slice(); + } + }(t2) : i(n(t2)); + }; + }, function(t, e, r) { + var n = r(32), i = r(28), o = r(16), a = r(41), s = r(13), u = r(59), f = Object.getOwnPropertyDescriptor; + e.f = r(12) ? f : function(t2, e2) { + if (t2 = o(t2), e2 = a(e2, true), u) + try { + return f(t2, e2); + } catch (t3) { + } + if (s(t2, e2)) + return i(!n.f.call(t2, e2), t2[e2]); + }; + }, function(t, e, r) { + r(46)("asyncIterator"); + }, function(t, e, r) { + r(46)("observable"); + }, function(t, e, r) { + "use strict"; + e.__esModule = true; + var n = function(t2) { + return t2 && t2.__esModule ? t2 : { default: t2 }; + }(r(128)); + e.default = function(t2) { + return function() { + var e2 = t2.apply(this, arguments); + return new n.default(function(t3, r2) { + return function i(o, a) { + try { + var s = e2[o](a), u = s.value; + } catch (t4) { + return void r2(t4); + } + if (!s.done) + return n.default.resolve(u).then(function(t4) { + i("next", t4); + }, function(t4) { + i("throw", t4); + }); + t3(u); + }("next"); + }); + }; + }; + }, function(t, e, r) { + t.exports = { default: r(129), __esModule: true }; + }, function(t, e, r) { + r(69), r(57), r(67), r(130), r(142), r(143), t.exports = r(4).Promise; + }, function(t, e, r) { + "use strict"; + var n, i, o, a, s = r(19), u = r(1), f = r(26), c = r(70), h = r(15), l = r(11), d = r(27), p = r(131), m = r(132), g = r(71), v = r(72).set, y = r(137)(), _ = r(48), w = r(73), b = r(138), x = r(74), k = u.TypeError, S = u.process, E = S && S.versions, A = E && E.v8 || "", T = u.Promise, C = c(S) == "process", O = function() { + }, R = i = _.f, I = !!function() { + try { + var t2 = T.resolve(1), e2 = (t2.constructor = {})[r(2)("species")] = function(t3) { + t3(O, O); + }; + return (C || typeof PromiseRejectionEvent == "function") && t2.then(O) instanceof e2 && A.indexOf("6.6") !== 0 && b.indexOf("Chrome/66") === -1; + } catch (t3) { + } + }(), B = function(t2) { + var e2; + return !(!l(t2) || typeof (e2 = t2.then) != "function") && e2; + }, L = function(t2, e2) { + if (!t2._n) { + t2._n = true; + var r2 = t2._c; + y(function() { + for (var n2 = t2._v, i2 = t2._s == 1, o2 = 0, a2 = function(e3) { + var r3, o3, a3, s2 = i2 ? e3.ok : e3.fail, u2 = e3.resolve, f2 = e3.reject, c2 = e3.domain; + try { + s2 ? (i2 || (t2._h == 2 && j(t2), t2._h = 1), s2 === true ? r3 = n2 : (c2 && c2.enter(), r3 = s2(n2), c2 && (c2.exit(), a3 = true)), r3 === e3.promise ? f2(k("Promise-chain cycle")) : (o3 = B(r3)) ? o3.call(r3, u2, f2) : u2(r3)) : f2(n2); + } catch (t3) { + c2 && !a3 && c2.exit(), f2(t3); + } + }; r2.length > o2; ) + a2(r2[o2++]); + t2._c = [], t2._n = false, e2 && !t2._h && P(t2); + }); + } + }, P = function(t2) { + v.call(u, function() { + var e2, r2, n2, i2 = t2._v, o2 = z(t2); + if (o2 && (e2 = w(function() { + C ? S.emit("unhandledRejection", i2, t2) : (r2 = u.onunhandledrejection) ? r2({ promise: t2, reason: i2 }) : (n2 = u.console) && n2.error && n2.error("Unhandled promise rejection", i2); + }), t2._h = C || z(t2) ? 2 : 1), t2._a = void 0, o2 && e2.e) + throw e2.v; + }); + }, z = function(t2) { + return t2._h !== 1 && (t2._a || t2._c).length === 0; + }, j = function(t2) { + v.call(u, function() { + var e2; + C ? S.emit("rejectionHandled", t2) : (e2 = u.onrejectionhandled) && e2({ promise: t2, reason: t2._v }); + }); + }, D = function(t2) { + var e2 = this; + e2._d || (e2._d = true, (e2 = e2._w || e2)._v = t2, e2._s = 2, e2._a || (e2._a = e2._c.slice()), L(e2, true)); + }, N = function(t2) { + var e2, r2 = this; + if (!r2._d) { + r2._d = true, r2 = r2._w || r2; + try { + if (r2 === t2) + throw k("Promise can't be resolved itself"); + (e2 = B(t2)) ? y(function() { + var n2 = { _w: r2, _d: false }; + try { + e2.call(t2, f(N, n2, 1), f(D, n2, 1)); + } catch (t3) { + D.call(n2, t3); + } + }) : (r2._v = t2, r2._s = 1, L(r2, false)); + } catch (t3) { + D.call({ _w: r2, _d: false }, t3); + } + } + }; + I || (T = function(t2) { + p(this, T, "Promise", "_h"), d(t2), n.call(this); + try { + t2(f(N, this, 1), f(D, this, 1)); + } catch (t3) { + D.call(this, t3); + } + }, (n = function(t2) { + this._c = [], this._a = void 0, this._s = 0, this._d = false, this._v = void 0, this._h = 0, this._n = false; + }).prototype = r(139)(T.prototype, { then: function(t2, e2) { + var r2 = R(g(this, T)); + return r2.ok = typeof t2 != "function" || t2, r2.fail = typeof e2 == "function" && e2, r2.domain = C ? S.domain : void 0, this._c.push(r2), this._a && this._a.push(r2), this._s && L(this, false), r2.promise; + }, catch: function(t2) { + return this.then(void 0, t2); + } }), o = function() { + var t2 = new n(); + this.promise = t2, this.resolve = f(N, t2, 1), this.reject = f(D, t2, 1); + }, _.f = R = function(t2) { + return t2 === T || t2 === a ? new o(t2) : i(t2); + }), h(h.G + h.W + h.F * !I, { Promise: T }), r(31)(T, "Promise"), r(140)("Promise"), a = r(4).Promise, h(h.S + h.F * !I, "Promise", { reject: function(t2) { + var e2 = R(this); + return (0, e2.reject)(t2), e2.promise; + } }), h(h.S + h.F * (s || !I), "Promise", { resolve: function(t2) { + return x(s && this === a ? T : this, t2); + } }), h(h.S + h.F * !(I && r(141)(function(t2) { + T.all(t2).catch(O); + })), "Promise", { all: function(t2) { + var e2 = this, r2 = R(e2), n2 = r2.resolve, i2 = r2.reject, o2 = w(function() { + var r3 = [], o3 = 0, a2 = 1; + m(t2, false, function(t3) { + var s2 = o3++, u2 = false; + r3.push(void 0), a2++, e2.resolve(t3).then(function(t4) { + u2 || (u2 = true, r3[s2] = t4, --a2 || n2(r3)); + }, i2); + }), --a2 || n2(r3); + }); + return o2.e && i2(o2.v), r2.promise; + }, race: function(t2) { + var e2 = this, r2 = R(e2), n2 = r2.reject, i2 = w(function() { + m(t2, false, function(t3) { + e2.resolve(t3).then(r2.resolve, n2); + }); + }); + return i2.e && n2(i2.v), r2.promise; + } }); + }, function(t, e) { + t.exports = function(t2, e2, r, n) { + if (!(t2 instanceof e2) || n !== void 0 && n in t2) + throw TypeError(r + ": incorrect invocation!"); + return t2; + }; + }, function(t, e, r) { + var n = r(26), i = r(133), o = r(134), a = r(6), s = r(64), u = r(135), f = {}, c = {}; + (e = t.exports = function(t2, e2, r2, h, l) { + var d, p, m, g, v = l ? function() { + return t2; + } : u(t2), y = n(r2, h, e2 ? 2 : 1), _ = 0; + if (typeof v != "function") + throw TypeError(t2 + " is not iterable!"); + if (o(v)) { + for (d = s(t2.length); d > _; _++) + if ((g = e2 ? y(a(p = t2[_])[0], p[1]) : y(t2[_])) === f || g === c) + return g; + } else + for (m = v.call(t2); !(p = m.next()).done; ) + if ((g = i(m, y, p.value, e2)) === f || g === c) + return g; + }).BREAK = f, e.RETURN = c; + }, function(t, e, r) { + var n = r(6); + t.exports = function(t2, e2, r2, i) { + try { + return i ? e2(n(r2)[0], r2[1]) : e2(r2); + } catch (e3) { + var o = t2.return; + throw o !== void 0 && n(o.call(t2)), e3; + } + }; + }, function(t, e, r) { + var n = r(21), i = r(2)("iterator"), o = Array.prototype; + t.exports = function(t2) { + return t2 !== void 0 && (n.Array === t2 || o[i] === t2); + }; + }, function(t, e, r) { + var n = r(70), i = r(2)("iterator"), o = r(21); + t.exports = r(4).getIteratorMethod = function(t2) { + if (t2 != void 0) + return t2[i] || t2["@@iterator"] || o[n(t2)]; + }; + }, function(t, e) { + t.exports = function(t2, e2, r) { + var n = r === void 0; + switch (e2.length) { + case 0: + return n ? t2() : t2.call(r); + case 1: + return n ? t2(e2[0]) : t2.call(r, e2[0]); + case 2: + return n ? t2(e2[0], e2[1]) : t2.call(r, e2[0], e2[1]); + case 3: + return n ? t2(e2[0], e2[1], e2[2]) : t2.call(r, e2[0], e2[1], e2[2]); + case 4: + return n ? t2(e2[0], e2[1], e2[2], e2[3]) : t2.call(r, e2[0], e2[1], e2[2], e2[3]); + } + return t2.apply(r, e2); + }; + }, function(t, e, r) { + var n = r(1), i = r(72).set, o = n.MutationObserver || n.WebKitMutationObserver, a = n.process, s = n.Promise, u = r(22)(a) == "process"; + t.exports = function() { + var t2, e2, r2, f = function() { + var n2, i2; + for (u && (n2 = a.domain) && n2.exit(); t2; ) { + i2 = t2.fn, t2 = t2.next; + try { + i2(); + } catch (n3) { + throw t2 ? r2() : e2 = void 0, n3; + } + } + e2 = void 0, n2 && n2.enter(); + }; + if (u) + r2 = function() { + a.nextTick(f); + }; + else if (!o || n.navigator && n.navigator.standalone) + if (s && s.resolve) { + var c = s.resolve(void 0); + r2 = function() { + c.then(f); + }; + } else + r2 = function() { + i.call(n, f); + }; + else { + var h = true, l = document.createTextNode(""); + new o(f).observe(l, { characterData: true }), r2 = function() { + l.data = h = !h; + }; + } + return function(n2) { + var i2 = { fn: n2, next: void 0 }; + e2 && (e2.next = i2), t2 || (t2 = i2, r2()), e2 = i2; + }; + }; + }, function(t, e, r) { + var n = r(1).navigator; + t.exports = n && n.userAgent || ""; + }, function(t, e, r) { + var n = r(9); + t.exports = function(t2, e2, r2) { + for (var i in e2) + r2 && t2[i] ? t2[i] = e2[i] : n(t2, i, e2[i]); + return t2; + }; + }, function(t, e, r) { + "use strict"; + var n = r(1), i = r(4), o = r(10), a = r(12), s = r(2)("species"); + t.exports = function(t2) { + var e2 = typeof i[t2] == "function" ? i[t2] : n[t2]; + a && e2 && !e2[s] && o.f(e2, s, { configurable: true, get: function() { + return this; + } }); + }; + }, function(t, e, r) { + var n = r(2)("iterator"), i = false; + try { + var o = [7][n](); + o.return = function() { + i = true; + }, Array.from(o, function() { + throw 2; + }); + } catch (t2) { + } + t.exports = function(t2, e2) { + if (!e2 && !i) + return false; + var r2 = false; + try { + var o2 = [7], a = o2[n](); + a.next = function() { + return { done: r2 = true }; + }, o2[n] = function() { + return a; + }, t2(o2); + } catch (t3) { + } + return r2; + }; + }, function(t, e, r) { + "use strict"; + var n = r(15), i = r(4), o = r(1), a = r(71), s = r(74); + n(n.P + n.R, "Promise", { finally: function(t2) { + var e2 = a(this, i.Promise || o.Promise), r2 = typeof t2 == "function"; + return this.then(r2 ? function(r3) { + return s(e2, t2()).then(function() { + return r3; + }); + } : t2, r2 ? function(r3) { + return s(e2, t2()).then(function() { + throw r3; + }); + } : t2); + } }); + }, function(t, e, r) { + "use strict"; + var n = r(15), i = r(48), o = r(73); + n(n.S, "Promise", { try: function(t2) { + var e2 = i.f(this), r2 = o(t2); + return (r2.e ? e2.reject : e2.resolve)(r2.v), e2.promise; + } }); + }, function(t, e, r) { + "use strict"; + e.__esModule = true; + var n = function(t2) { + return t2 && t2.__esModule ? t2 : { default: t2 }; + }(r(145)); + e.default = n.default || function(t2) { + for (var e2 = 1; e2 < arguments.length; e2++) { + var r2 = arguments[e2]; + for (var n2 in r2) + Object.prototype.hasOwnProperty.call(r2, n2) && (t2[n2] = r2[n2]); + } + return t2; + }; + }, function(t, e, r) { + t.exports = { default: r(146), __esModule: true }; + }, function(t, e, r) { + r(147), t.exports = r(4).Object.assign; + }, function(t, e, r) { + var n = r(15); + n(n.S + n.F, "Object", { assign: r(148) }); + }, function(t, e, r) { + "use strict"; + var n = r(29), i = r(47), o = r(32), a = r(66), s = r(63), u = Object.assign; + t.exports = !u || r(20)(function() { + var t2 = {}, e2 = {}, r2 = Symbol(), n2 = "abcdefghijklmnopqrst"; + return t2[r2] = 7, n2.split("").forEach(function(t3) { + e2[t3] = t3; + }), u({}, t2)[r2] != 7 || Object.keys(u({}, e2)).join("") != n2; + }) ? function(t2, e2) { + for (var r2 = a(t2), u2 = arguments.length, f = 1, c = i.f, h = o.f; u2 > f; ) + for (var l, d = s(arguments[f++]), p = c ? n(d).concat(c(d)) : n(d), m = p.length, g = 0; m > g; ) + h.call(d, l = p[g++]) && (r2[l] = d[l]); + return r2; + } : u; + }, function(t, e, r) { + "use strict"; + function n() { + if (!(this instanceof n)) + return new n(); + if (arguments.length) + throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide."); + this.files = {}, this.comment = null, this.root = "", this.clone = function() { + var t2 = new n(); + for (var e2 in this) + typeof this[e2] != "function" && (t2[e2] = this[e2]); + return t2; + }; + } + n.prototype = r(150), n.prototype.loadAsync = r(195), n.support = r(7), n.defaults = r(86), n.version = "3.1.5", n.loadAsync = function(t2, e2) { + return new n().loadAsync(t2, e2); + }, n.external = r(25), t.exports = n; + }, function(t, e, r) { + "use strict"; + var n = r(17), i = r(0), o = r(3), a = r(85), s = r(86), u = r(54), f = r(181), c = r(182), h = r(36), l = r(194), d = function(t2, e2, r2) { + var n2, a2 = i.getTypeOf(e2), c2 = i.extend(r2 || {}, s); + c2.date = c2.date || new Date(), c2.compression !== null && (c2.compression = c2.compression.toUpperCase()), typeof c2.unixPermissions == "string" && (c2.unixPermissions = parseInt(c2.unixPermissions, 8)), c2.unixPermissions && 16384 & c2.unixPermissions && (c2.dir = true), c2.dosPermissions && 16 & c2.dosPermissions && (c2.dir = true), c2.dir && (t2 = m(t2)), c2.createFolders && (n2 = p(t2)) && g.call(this, n2, true); + var d2 = a2 === "string" && c2.binary === false && c2.base64 === false; + r2 && r2.binary !== void 0 || (c2.binary = !d2), (e2 instanceof u && e2.uncompressedSize === 0 || c2.dir || !e2 || e2.length === 0) && (c2.base64 = false, c2.binary = true, e2 = "", c2.compression = "STORE", a2 = "string"); + var v2 = null; + v2 = e2 instanceof u || e2 instanceof o ? e2 : h.isNode && h.isStream(e2) ? new l(t2, e2) : i.prepareContent(t2, e2, c2.binary, c2.optimizedBinaryString, c2.base64); + var y2 = new f(t2, v2, c2); + this.files[t2] = y2; + }, p = function(t2) { + t2.slice(-1) === "/" && (t2 = t2.substring(0, t2.length - 1)); + var e2 = t2.lastIndexOf("/"); + return e2 > 0 ? t2.substring(0, e2) : ""; + }, m = function(t2) { + return t2.slice(-1) !== "/" && (t2 += "/"), t2; + }, g = function(t2, e2) { + return e2 = e2 !== void 0 ? e2 : s.createFolders, t2 = m(t2), this.files[t2] || d.call(this, t2, null, { dir: true, createFolders: e2 }), this.files[t2]; + }; + function v(t2) { + return Object.prototype.toString.call(t2) === "[object RegExp]"; + } + var y = { load: function() { + throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide."); + }, forEach: function(t2) { + var e2, r2, n2; + for (e2 in this.files) + this.files.hasOwnProperty(e2) && (n2 = this.files[e2], (r2 = e2.slice(this.root.length, e2.length)) && e2.slice(0, this.root.length) === this.root && t2(r2, n2)); + }, filter: function(t2) { + var e2 = []; + return this.forEach(function(r2, n2) { + t2(r2, n2) && e2.push(n2); + }), e2; + }, file: function(t2, e2, r2) { + if (arguments.length === 1) { + if (v(t2)) { + var n2 = t2; + return this.filter(function(t3, e3) { + return !e3.dir && n2.test(t3); + }); + } + var i2 = this.files[this.root + t2]; + return i2 && !i2.dir ? i2 : null; + } + return t2 = this.root + t2, d.call(this, t2, e2, r2), this; + }, folder: function(t2) { + if (!t2) + return this; + if (v(t2)) + return this.filter(function(e3, r3) { + return r3.dir && t2.test(e3); + }); + var e2 = this.root + t2, r2 = g.call(this, e2), n2 = this.clone(); + return n2.root = r2.name, n2; + }, remove: function(t2) { + t2 = this.root + t2; + var e2 = this.files[t2]; + if (e2 || (t2.slice(-1) !== "/" && (t2 += "/"), e2 = this.files[t2]), e2 && !e2.dir) + delete this.files[t2]; + else + for (var r2 = this.filter(function(e3, r3) { + return r3.name.slice(0, t2.length) === t2; + }), n2 = 0; n2 < r2.length; n2++) + delete this.files[r2[n2].name]; + return this; + }, generate: function(t2) { + throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide."); + }, generateInternalStream: function(t2) { + var e2, r2 = {}; + try { + if ((r2 = i.extend(t2 || {}, { streamFiles: false, compression: "STORE", compressionOptions: null, type: "", platform: "DOS", comment: null, mimeType: "application/zip", encodeFileName: n.utf8encode })).type = r2.type.toLowerCase(), r2.compression = r2.compression.toUpperCase(), r2.type === "binarystring" && (r2.type = "string"), !r2.type) + throw new Error("No output type specified."); + i.checkSupport(r2.type), r2.platform !== "darwin" && r2.platform !== "freebsd" && r2.platform !== "linux" && r2.platform !== "sunos" || (r2.platform = "UNIX"), r2.platform === "win32" && (r2.platform = "DOS"); + var s2 = r2.comment || this.comment || ""; + e2 = c.generateWorker(this, r2, s2); + } catch (t3) { + (e2 = new o("error")).error(t3); + } + return new a(e2, r2.type || "string", r2.mimeType); + }, generateAsync: function(t2, e2) { + return this.generateInternalStream(t2).accumulate(e2); + }, generateNodeStream: function(t2, e2) { + return (t2 = t2 || {}).type || (t2.type = "nodebuffer"), this.generateInternalStream(t2).toNodejsStream(e2); + } }; + t.exports = y; + }, function(t, e, r) { + "use strict"; + e.byteLength = function(t2) { + var e2 = f(t2), r2 = e2[0], n2 = e2[1]; + return 3 * (r2 + n2) / 4 - n2; + }, e.toByteArray = function(t2) { + for (var e2, r2 = f(t2), n2 = r2[0], a2 = r2[1], s2 = new o(function(t3, e3, r3) { + return 3 * (e3 + r3) / 4 - r3; + }(0, n2, a2)), u2 = 0, c2 = a2 > 0 ? n2 - 4 : n2, h2 = 0; h2 < c2; h2 += 4) + e2 = i[t2.charCodeAt(h2)] << 18 | i[t2.charCodeAt(h2 + 1)] << 12 | i[t2.charCodeAt(h2 + 2)] << 6 | i[t2.charCodeAt(h2 + 3)], s2[u2++] = e2 >> 16 & 255, s2[u2++] = e2 >> 8 & 255, s2[u2++] = 255 & e2; + a2 === 2 && (e2 = i[t2.charCodeAt(h2)] << 2 | i[t2.charCodeAt(h2 + 1)] >> 4, s2[u2++] = 255 & e2); + a2 === 1 && (e2 = i[t2.charCodeAt(h2)] << 10 | i[t2.charCodeAt(h2 + 1)] << 4 | i[t2.charCodeAt(h2 + 2)] >> 2, s2[u2++] = e2 >> 8 & 255, s2[u2++] = 255 & e2); + return s2; + }, e.fromByteArray = function(t2) { + for (var e2, r2 = t2.length, i2 = r2 % 3, o2 = [], a2 = 0, s2 = r2 - i2; a2 < s2; a2 += 16383) + o2.push(h(t2, a2, a2 + 16383 > s2 ? s2 : a2 + 16383)); + i2 === 1 ? (e2 = t2[r2 - 1], o2.push(n[e2 >> 2] + n[e2 << 4 & 63] + "==")) : i2 === 2 && (e2 = (t2[r2 - 2] << 8) + t2[r2 - 1], o2.push(n[e2 >> 10] + n[e2 >> 4 & 63] + n[e2 << 2 & 63] + "=")); + return o2.join(""); + }; + for (var n = [], i = [], o = typeof Uint8Array != "undefined" ? Uint8Array : Array, a = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", s = 0, u = a.length; s < u; ++s) + n[s] = a[s], i[a.charCodeAt(s)] = s; + function f(t2) { + var e2 = t2.length; + if (e2 % 4 > 0) + throw new Error("Invalid string. Length must be a multiple of 4"); + var r2 = t2.indexOf("="); + return r2 === -1 && (r2 = e2), [r2, r2 === e2 ? 0 : 4 - r2 % 4]; + } + function c(t2) { + return n[t2 >> 18 & 63] + n[t2 >> 12 & 63] + n[t2 >> 6 & 63] + n[63 & t2]; + } + function h(t2, e2, r2) { + for (var n2, i2 = [], o2 = e2; o2 < r2; o2 += 3) + n2 = (t2[o2] << 16 & 16711680) + (t2[o2 + 1] << 8 & 65280) + (255 & t2[o2 + 2]), i2.push(c(n2)); + return i2.join(""); + } + i["-".charCodeAt(0)] = 62, i["_".charCodeAt(0)] = 63; + }, function(t, e) { + e.read = function(t2, e2, r, n, i) { + var o, a, s = 8 * i - n - 1, u = (1 << s) - 1, f = u >> 1, c = -7, h = r ? i - 1 : 0, l = r ? -1 : 1, d = t2[e2 + h]; + for (h += l, o = d & (1 << -c) - 1, d >>= -c, c += s; c > 0; o = 256 * o + t2[e2 + h], h += l, c -= 8) + ; + for (a = o & (1 << -c) - 1, o >>= -c, c += n; c > 0; a = 256 * a + t2[e2 + h], h += l, c -= 8) + ; + if (o === 0) + o = 1 - f; + else { + if (o === u) + return a ? NaN : 1 / 0 * (d ? -1 : 1); + a += Math.pow(2, n), o -= f; + } + return (d ? -1 : 1) * a * Math.pow(2, o - n); + }, e.write = function(t2, e2, r, n, i, o) { + var a, s, u, f = 8 * o - i - 1, c = (1 << f) - 1, h = c >> 1, l = i === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, d = n ? 0 : o - 1, p = n ? 1 : -1, m = e2 < 0 || e2 === 0 && 1 / e2 < 0 ? 1 : 0; + for (e2 = Math.abs(e2), isNaN(e2) || e2 === 1 / 0 ? (s = isNaN(e2) ? 1 : 0, a = c) : (a = Math.floor(Math.log(e2) / Math.LN2), e2 * (u = Math.pow(2, -a)) < 1 && (a--, u *= 2), (e2 += a + h >= 1 ? l / u : l * Math.pow(2, 1 - h)) * u >= 2 && (a++, u /= 2), a + h >= c ? (s = 0, a = c) : a + h >= 1 ? (s = (e2 * u - 1) * Math.pow(2, i), a += h) : (s = e2 * Math.pow(2, h - 1) * Math.pow(2, i), a = 0)); i >= 8; t2[r + d] = 255 & s, d += p, s /= 256, i -= 8) + ; + for (a = a << i | s, f += i; f > 0; t2[r + d] = 255 & a, d += p, a /= 256, f -= 8) + ; + t2[r + d - p] |= 128 * m; + }; + }, function(t, e, r) { + var n = function() { + try { + return r(33); + } catch (t2) { + } + }(); + (e = t.exports = r(77)).Stream = n || e, e.Readable = e, e.Writable = r(50), e.Duplex = r(14), e.Transform = r(51), e.PassThrough = r(79); + }, function(t, e) { + }, function(t, e, r) { + (function(t2) { + var n = t2 !== void 0 && t2 || typeof self != "undefined" && self || window, i = Function.prototype.apply; + function o(t3, e2) { + this._id = t3, this._clearFn = e2; + } + e.setTimeout = function() { + return new o(i.call(setTimeout, n, arguments), clearTimeout); + }, e.setInterval = function() { + return new o(i.call(setInterval, n, arguments), clearInterval); + }, e.clearTimeout = e.clearInterval = function(t3) { + t3 && t3.close(); + }, o.prototype.unref = o.prototype.ref = function() { + }, o.prototype.close = function() { + this._clearFn.call(n, this._id); + }, e.enroll = function(t3, e2) { + clearTimeout(t3._idleTimeoutId), t3._idleTimeout = e2; + }, e.unenroll = function(t3) { + clearTimeout(t3._idleTimeoutId), t3._idleTimeout = -1; + }, e._unrefActive = e.active = function(t3) { + clearTimeout(t3._idleTimeoutId); + var e2 = t3._idleTimeout; + e2 >= 0 && (t3._idleTimeoutId = setTimeout(function() { + t3._onTimeout && t3._onTimeout(); + }, e2)); + }, r(156), e.setImmediate = typeof self != "undefined" && self.setImmediate || t2 !== void 0 && t2.setImmediate || this && this.setImmediate, e.clearImmediate = typeof self != "undefined" && self.clearImmediate || t2 !== void 0 && t2.clearImmediate || this && this.clearImmediate; + }).call(this, r(23)); + }, function(t, e, r) { + (function(t2, e2) { + !function(t3, r2) { + "use strict"; + if (!t3.setImmediate) { + var n, i = 1, o = {}, a = false, s = t3.document, u = Object.getPrototypeOf && Object.getPrototypeOf(t3); + u = u && u.setTimeout ? u : t3, {}.toString.call(t3.process) === "[object process]" ? n = function(t4) { + e2.nextTick(function() { + c(t4); + }); + } : function() { + if (t3.postMessage && !t3.importScripts) { + var e3 = true, r3 = t3.onmessage; + return t3.onmessage = function() { + e3 = false; + }, t3.postMessage("", "*"), t3.onmessage = r3, e3; + } + }() ? function() { + var e3 = "setImmediate$" + Math.random() + "$", r3 = function(r4) { + r4.source === t3 && typeof r4.data == "string" && r4.data.indexOf(e3) === 0 && c(+r4.data.slice(e3.length)); + }; + t3.addEventListener ? t3.addEventListener("message", r3, false) : t3.attachEvent("onmessage", r3), n = function(r4) { + t3.postMessage(e3 + r4, "*"); + }; + }() : t3.MessageChannel ? function() { + var t4 = new MessageChannel(); + t4.port1.onmessage = function(t5) { + c(t5.data); + }, n = function(e3) { + t4.port2.postMessage(e3); + }; + }() : s && "onreadystatechange" in s.createElement("script") ? function() { + var t4 = s.documentElement; + n = function(e3) { + var r3 = s.createElement("script"); + r3.onreadystatechange = function() { + c(e3), r3.onreadystatechange = null, t4.removeChild(r3), r3 = null; + }, t4.appendChild(r3); + }; + }() : n = function(t4) { + setTimeout(c, 0, t4); + }, u.setImmediate = function(t4) { + typeof t4 != "function" && (t4 = new Function("" + t4)); + for (var e3 = new Array(arguments.length - 1), r3 = 0; r3 < e3.length; r3++) + e3[r3] = arguments[r3 + 1]; + var a2 = { callback: t4, args: e3 }; + return o[i] = a2, n(i), i++; + }, u.clearImmediate = f; + } + function f(t4) { + delete o[t4]; + } + function c(t4) { + if (a) + setTimeout(c, 0, t4); + else { + var e3 = o[t4]; + if (e3) { + a = true; + try { + !function(t5) { + var e4 = t5.callback, n2 = t5.args; + switch (n2.length) { + case 0: + e4(); + break; + case 1: + e4(n2[0]); + break; + case 2: + e4(n2[0], n2[1]); + break; + case 3: + e4(n2[0], n2[1], n2[2]); + break; + default: + e4.apply(r2, n2); + } + }(e3); + } finally { + f(t4), a = false; + } + } + } + } + }(typeof self == "undefined" ? t2 === void 0 ? this : t2 : self); + }).call(this, r(23), r(35)); + }, function(t, e, r) { + (function(e2) { + function r2(t2) { + try { + if (!e2.localStorage) + return false; + } catch (t3) { + return false; + } + var r3 = e2.localStorage[t2]; + return r3 != null && String(r3).toLowerCase() === "true"; + } + t.exports = function(t2, e3) { + if (r2("noDeprecation")) + return t2; + var n = false; + return function() { + if (!n) { + if (r2("throwDeprecation")) + throw new Error(e3); + r2("traceDeprecation") ? console.trace(e3) : console.warn(e3), n = true; + } + return t2.apply(this, arguments); + }; + }; + }).call(this, r(23)); + }, function(t, e, r) { + var n = r(5), i = n.Buffer; + function o(t2, e2) { + for (var r2 in t2) + e2[r2] = t2[r2]; + } + function a(t2, e2, r2) { + return i(t2, e2, r2); + } + i.from && i.alloc && i.allocUnsafe && i.allocUnsafeSlow ? t.exports = n : (o(n, e), e.Buffer = a), o(i, a), a.from = function(t2, e2, r2) { + if (typeof t2 == "number") + throw new TypeError("Argument must not be a number"); + return i(t2, e2, r2); + }, a.alloc = function(t2, e2, r2) { + if (typeof t2 != "number") + throw new TypeError("Argument must be a number"); + var n2 = i(t2); + return e2 !== void 0 ? typeof r2 == "string" ? n2.fill(e2, r2) : n2.fill(e2) : n2.fill(0), n2; + }, a.allocUnsafe = function(t2) { + if (typeof t2 != "number") + throw new TypeError("Argument must be a number"); + return i(t2); + }, a.allocUnsafeSlow = function(t2) { + if (typeof t2 != "number") + throw new TypeError("Argument must be a number"); + return n.SlowBuffer(t2); + }; + }, function(t, e, r) { + t.exports = r(50); + }, function(t, e, r) { + t.exports = r(14); + }, function(t, e, r) { + t.exports = r(51); + }, function(t, e, r) { + t.exports = r(79); + }, function(t, e, r) { + r(164), t.exports = r(81).setImmediate; + }, function(t, e, r) { + var n = r(165), i = r(173); + n(n.G + n.B, { setImmediate: i.set, clearImmediate: i.clear }); + }, function(t, e, r) { + var n = r(37), i = r(81), o = r(82), a = r(167), s = function(t2, e2, r2) { + var u, f, c, h = t2 & s.F, l = t2 & s.G, d = t2 & s.S, p = t2 & s.P, m = t2 & s.B, g = t2 & s.W, v = l ? i : i[e2] || (i[e2] = {}), y = v.prototype, _ = l ? n : d ? n[e2] : (n[e2] || {}).prototype; + for (u in l && (r2 = e2), r2) + (f = !h && _ && _[u] !== void 0) && u in v || (c = f ? _[u] : r2[u], v[u] = l && typeof _[u] != "function" ? r2[u] : m && f ? o(c, n) : g && _[u] == c ? function(t3) { + var e3 = function(e4, r3, n2) { + if (this instanceof t3) { + switch (arguments.length) { + case 0: + return new t3(); + case 1: + return new t3(e4); + case 2: + return new t3(e4, r3); + } + return new t3(e4, r3, n2); + } + return t3.apply(this, arguments); + }; + return e3.prototype = t3.prototype, e3; + }(c) : p && typeof c == "function" ? o(Function.call, c) : c, p && ((v.virtual || (v.virtual = {}))[u] = c, t2 & s.R && y && !y[u] && a(y, u, c))); + }; + s.F = 1, s.G = 2, s.S = 4, s.P = 8, s.B = 16, s.W = 32, s.U = 64, s.R = 128, t.exports = s; + }, function(t, e) { + t.exports = function(t2) { + if (typeof t2 != "function") + throw TypeError(t2 + " is not a function!"); + return t2; + }; + }, function(t, e, r) { + var n = r(168), i = r(172); + t.exports = r(53) ? function(t2, e2, r2) { + return n.f(t2, e2, i(1, r2)); + } : function(t2, e2, r2) { + return t2[e2] = r2, t2; + }; + }, function(t, e, r) { + var n = r(169), i = r(170), o = r(171), a = Object.defineProperty; + e.f = r(53) ? Object.defineProperty : function(t2, e2, r2) { + if (n(t2), e2 = o(e2, true), n(r2), i) + try { + return a(t2, e2, r2); + } catch (t3) { + } + if ("get" in r2 || "set" in r2) + throw TypeError("Accessors not supported!"); + return "value" in r2 && (t2[e2] = r2.value), t2; + }; + }, function(t, e, r) { + var n = r(52); + t.exports = function(t2) { + if (!n(t2)) + throw TypeError(t2 + " is not an object!"); + return t2; + }; + }, function(t, e, r) { + t.exports = !r(53) && !r(83)(function() { + return Object.defineProperty(r(84)("div"), "a", { get: function() { + return 7; + } }).a != 7; + }); + }, function(t, e, r) { + var n = r(52); + t.exports = function(t2, e2) { + if (!n(t2)) + return t2; + var r2, i; + if (e2 && typeof (r2 = t2.toString) == "function" && !n(i = r2.call(t2))) + return i; + if (typeof (r2 = t2.valueOf) == "function" && !n(i = r2.call(t2))) + return i; + if (!e2 && typeof (r2 = t2.toString) == "function" && !n(i = r2.call(t2))) + return i; + throw TypeError("Can't convert object to primitive value"); + }; + }, function(t, e) { + t.exports = function(t2, e2) { + return { enumerable: !(1 & t2), configurable: !(2 & t2), writable: !(4 & t2), value: e2 }; + }; + }, function(t, e, r) { + var n, i, o, a = r(82), s = r(174), u = r(175), f = r(84), c = r(37), h = c.process, l = c.setImmediate, d = c.clearImmediate, p = c.MessageChannel, m = 0, g = {}, v = function() { + var t2 = +this; + if (g.hasOwnProperty(t2)) { + var e2 = g[t2]; + delete g[t2], e2(); + } + }, y = function(t2) { + v.call(t2.data); + }; + l && d || (l = function(t2) { + for (var e2 = [], r2 = 1; arguments.length > r2; ) + e2.push(arguments[r2++]); + return g[++m] = function() { + s(typeof t2 == "function" ? t2 : Function(t2), e2); + }, n(m), m; + }, d = function(t2) { + delete g[t2]; + }, r(176)(h) == "process" ? n = function(t2) { + h.nextTick(a(v, t2, 1)); + } : p ? (o = (i = new p()).port2, i.port1.onmessage = y, n = a(o.postMessage, o, 1)) : c.addEventListener && typeof postMessage == "function" && !c.importScripts ? (n = function(t2) { + c.postMessage(t2 + "", "*"); + }, c.addEventListener("message", y, false)) : n = "onreadystatechange" in f("script") ? function(t2) { + u.appendChild(f("script")).onreadystatechange = function() { + u.removeChild(this), v.call(t2); + }; + } : function(t2) { + setTimeout(a(v, t2, 1), 0); + }), t.exports = { set: l, clear: d }; + }, function(t, e) { + t.exports = function(t2, e2, r) { + var n = r === void 0; + switch (e2.length) { + case 0: + return n ? t2() : t2.call(r); + case 1: + return n ? t2(e2[0]) : t2.call(r, e2[0]); + case 2: + return n ? t2(e2[0], e2[1]) : t2.call(r, e2[0], e2[1]); + case 3: + return n ? t2(e2[0], e2[1], e2[2]) : t2.call(r, e2[0], e2[1], e2[2]); + case 4: + return n ? t2(e2[0], e2[1], e2[2], e2[3]) : t2.call(r, e2[0], e2[1], e2[2], e2[3]); + } + return t2.apply(r, e2); + }; + }, function(t, e, r) { + t.exports = r(37).document && document.documentElement; + }, function(t, e) { + var r = {}.toString; + t.exports = function(t2) { + return r.call(t2).slice(8, -1); + }; + }, function(t, e, r) { + "use strict"; + var n = r(178); + function i() { + } + var o = {}, a = ["REJECTED"], s = ["FULFILLED"], u = ["PENDING"]; + function f(t2) { + if (typeof t2 != "function") + throw new TypeError("resolver must be a function"); + this.state = u, this.queue = [], this.outcome = void 0, t2 !== i && d(this, t2); + } + function c(t2, e2, r2) { + this.promise = t2, typeof e2 == "function" && (this.onFulfilled = e2, this.callFulfilled = this.otherCallFulfilled), typeof r2 == "function" && (this.onRejected = r2, this.callRejected = this.otherCallRejected); + } + function h(t2, e2, r2) { + n(function() { + var n2; + try { + n2 = e2(r2); + } catch (e3) { + return o.reject(t2, e3); + } + n2 === t2 ? o.reject(t2, new TypeError("Cannot resolve promise with itself")) : o.resolve(t2, n2); + }); + } + function l(t2) { + var e2 = t2 && t2.then; + if (t2 && (typeof t2 == "object" || typeof t2 == "function") && typeof e2 == "function") + return function() { + e2.apply(t2, arguments); + }; + } + function d(t2, e2) { + var r2 = false; + function n2(e3) { + r2 || (r2 = true, o.reject(t2, e3)); + } + function i2(e3) { + r2 || (r2 = true, o.resolve(t2, e3)); + } + var a2 = p(function() { + e2(i2, n2); + }); + a2.status === "error" && n2(a2.value); + } + function p(t2, e2) { + var r2 = {}; + try { + r2.value = t2(e2), r2.status = "success"; + } catch (t3) { + r2.status = "error", r2.value = t3; + } + return r2; + } + t.exports = f, f.prototype.catch = function(t2) { + return this.then(null, t2); + }, f.prototype.then = function(t2, e2) { + if (typeof t2 != "function" && this.state === s || typeof e2 != "function" && this.state === a) + return this; + var r2 = new this.constructor(i); + this.state !== u ? h(r2, this.state === s ? t2 : e2, this.outcome) : this.queue.push(new c(r2, t2, e2)); + return r2; + }, c.prototype.callFulfilled = function(t2) { + o.resolve(this.promise, t2); + }, c.prototype.otherCallFulfilled = function(t2) { + h(this.promise, this.onFulfilled, t2); + }, c.prototype.callRejected = function(t2) { + o.reject(this.promise, t2); + }, c.prototype.otherCallRejected = function(t2) { + h(this.promise, this.onRejected, t2); + }, o.resolve = function(t2, e2) { + var r2 = p(l, e2); + if (r2.status === "error") + return o.reject(t2, r2.value); + var n2 = r2.value; + if (n2) + d(t2, n2); + else { + t2.state = s, t2.outcome = e2; + for (var i2 = -1, a2 = t2.queue.length; ++i2 < a2; ) + t2.queue[i2].callFulfilled(e2); + } + return t2; + }, o.reject = function(t2, e2) { + t2.state = a, t2.outcome = e2; + for (var r2 = -1, n2 = t2.queue.length; ++r2 < n2; ) + t2.queue[r2].callRejected(e2); + return t2; + }, f.resolve = function(t2) { + if (t2 instanceof this) + return t2; + return o.resolve(new this(i), t2); + }, f.reject = function(t2) { + var e2 = new this(i); + return o.reject(e2, t2); + }, f.all = function(t2) { + var e2 = this; + if (Object.prototype.toString.call(t2) !== "[object Array]") + return this.reject(new TypeError("must be an array")); + var r2 = t2.length, n2 = false; + if (!r2) + return this.resolve([]); + var a2 = new Array(r2), s2 = 0, u2 = -1, f2 = new this(i); + for (; ++u2 < r2; ) + c2(t2[u2], u2); + return f2; + function c2(t3, i2) { + e2.resolve(t3).then(function(t4) { + a2[i2] = t4, ++s2 !== r2 || n2 || (n2 = true, o.resolve(f2, a2)); + }, function(t4) { + n2 || (n2 = true, o.reject(f2, t4)); + }); + } + }, f.race = function(t2) { + var e2 = this; + if (Object.prototype.toString.call(t2) !== "[object Array]") + return this.reject(new TypeError("must be an array")); + var r2 = t2.length, n2 = false; + if (!r2) + return this.resolve([]); + var a2 = -1, s2 = new this(i); + for (; ++a2 < r2; ) + u2(t2[a2]); + return s2; + function u2(t3) { + e2.resolve(t3).then(function(t4) { + n2 || (n2 = true, o.resolve(s2, t4)); + }, function(t4) { + n2 || (n2 = true, o.reject(s2, t4)); + }); + } + }; + }, function(t, e, r) { + "use strict"; + (function(e2) { + var r2, n, i = e2.MutationObserver || e2.WebKitMutationObserver; + if (i) { + var o = 0, a = new i(c), s = e2.document.createTextNode(""); + a.observe(s, { characterData: true }), r2 = function() { + s.data = o = ++o % 2; + }; + } else if (e2.setImmediate || e2.MessageChannel === void 0) + r2 = "document" in e2 && "onreadystatechange" in e2.document.createElement("script") ? function() { + var t2 = e2.document.createElement("script"); + t2.onreadystatechange = function() { + c(), t2.onreadystatechange = null, t2.parentNode.removeChild(t2), t2 = null; + }, e2.document.documentElement.appendChild(t2); + } : function() { + setTimeout(c, 0); + }; + else { + var u = new e2.MessageChannel(); + u.port1.onmessage = c, r2 = function() { + u.port2.postMessage(0); + }; + } + var f = []; + function c() { + var t2, e3; + n = true; + for (var r3 = f.length; r3; ) { + for (e3 = f, f = [], t2 = -1; ++t2 < r3; ) + e3[t2](); + r3 = f.length; + } + n = false; + } + t.exports = function(t2) { + f.push(t2) !== 1 || n || r2(); + }; + }).call(this, r(23)); + }, function(t, e, r) { + "use strict"; + var n = r(3), i = r(0); + function o(t2) { + n.call(this, "ConvertWorker to " + t2), this.destType = t2; + } + i.inherits(o, n), o.prototype.processChunk = function(t2) { + this.push({ data: i.transformTo(this.destType, t2.data), meta: t2.meta }); + }, t.exports = o; + }, function(t, e, r) { + "use strict"; + var n = r(76).Readable; + function i(t2, e2, r2) { + n.call(this, e2), this._helper = t2; + var i2 = this; + t2.on("data", function(t3, e3) { + i2.push(t3) || i2._helper.pause(), r2 && r2(e3); + }).on("error", function(t3) { + i2.emit("error", t3); + }).on("end", function() { + i2.push(null); + }); + } + r(0).inherits(i, n), i.prototype._read = function() { + this._helper.resume(); + }, t.exports = i; + }, function(t, e, r) { + "use strict"; + var n = r(85), i = r(87), o = r(17), a = r(54), s = r(3), u = function(t2, e2, r2) { + this.name = t2, this.dir = r2.dir, this.date = r2.date, this.comment = r2.comment, this.unixPermissions = r2.unixPermissions, this.dosPermissions = r2.dosPermissions, this._data = e2, this._dataBinary = r2.binary, this.options = { compression: r2.compression, compressionOptions: r2.compressionOptions }; + }; + u.prototype = { internalStream: function(t2) { + var e2 = null, r2 = "string"; + try { + if (!t2) + throw new Error("No output type specified."); + var i2 = (r2 = t2.toLowerCase()) === "string" || r2 === "text"; + r2 !== "binarystring" && r2 !== "text" || (r2 = "string"), e2 = this._decompressWorker(); + var a2 = !this._dataBinary; + a2 && !i2 && (e2 = e2.pipe(new o.Utf8EncodeWorker())), !a2 && i2 && (e2 = e2.pipe(new o.Utf8DecodeWorker())); + } catch (t3) { + (e2 = new s("error")).error(t3); + } + return new n(e2, r2, ""); + }, async: function(t2, e2) { + return this.internalStream(t2).accumulate(e2); + }, nodeStream: function(t2, e2) { + return this.internalStream(t2 || "nodebuffer").toNodejsStream(e2); + }, _compressWorker: function(t2, e2) { + if (this._data instanceof a && this._data.compression.magic === t2.magic) + return this._data.getCompressedWorker(); + var r2 = this._decompressWorker(); + return this._dataBinary || (r2 = r2.pipe(new o.Utf8EncodeWorker())), a.createWorkerFrom(r2, t2, e2); + }, _decompressWorker: function() { + return this._data instanceof a ? this._data.getContentWorker() : this._data instanceof s ? this._data : new i(this._data); + } }; + for (var f = ["asText", "asBinary", "asNodeBuffer", "asUint8Array", "asArrayBuffer"], c = function() { + throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide."); + }, h = 0; h < f.length; h++) + u.prototype[f[h]] = c; + t.exports = u; + }, function(t, e, r) { + "use strict"; + var n = r(90), i = r(193); + e.generateWorker = function(t2, e2, r2) { + var o = new i(e2.streamFiles, r2, e2.platform, e2.encodeFileName), a = 0; + try { + t2.forEach(function(t3, r3) { + a++; + var i2 = function(t4, e3) { + var r4 = t4 || e3, i3 = n[r4]; + if (!i3) + throw new Error(r4 + " is not a valid compression method !"); + return i3; + }(r3.options.compression, e2.compression), s = r3.options.compressionOptions || e2.compressionOptions || {}, u = r3.dir, f = r3.date; + r3._compressWorker(i2, s).withStreamInfo("file", { name: t3, dir: u, date: f, comment: r3.comment || "", unixPermissions: r3.unixPermissions, dosPermissions: r3.dosPermissions }).pipe(o); + }), o.entriesCount = a; + } catch (t3) { + o.error(t3); + } + return o; + }; + }, function(t, e, r) { + "use strict"; + var n = typeof Uint8Array != "undefined" && typeof Uint16Array != "undefined" && typeof Uint32Array != "undefined", i = r(184), o = r(0), a = r(3), s = n ? "uint8array" : "array"; + function u(t2, e2) { + a.call(this, "FlateWorker/" + t2), this._pako = null, this._pakoAction = t2, this._pakoOptions = e2, this.meta = {}; + } + e.magic = "\b\0", o.inherits(u, a), u.prototype.processChunk = function(t2) { + this.meta = t2.meta, this._pako === null && this._createPako(), this._pako.push(o.transformTo(s, t2.data), false); + }, u.prototype.flush = function() { + a.prototype.flush.call(this), this._pako === null && this._createPako(), this._pako.push([], true); + }, u.prototype.cleanUp = function() { + a.prototype.cleanUp.call(this), this._pako = null; + }, u.prototype._createPako = function() { + this._pako = new i[this._pakoAction]({ raw: true, level: this._pakoOptions.level || -1 }); + var t2 = this; + this._pako.onData = function(e2) { + t2.push({ data: e2, meta: t2.meta }); + }; + }, e.compressWorker = function(t2) { + return new u("Deflate", t2); + }, e.uncompressWorker = function() { + return new u("Inflate", {}); + }; + }, function(t, e, r) { + "use strict"; + var n = {}; + (0, r(8).assign)(n, r(185), r(188), r(95)), t.exports = n; + }, function(t, e, r) { + "use strict"; + var n = r(186), i = r(8), o = r(93), a = r(56), s = r(94), u = Object.prototype.toString, f = 0, c = -1, h = 0, l = 8; + function d(t2) { + if (!(this instanceof d)) + return new d(t2); + this.options = i.assign({ level: c, method: l, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: h, to: "" }, t2 || {}); + var e2 = this.options; + e2.raw && e2.windowBits > 0 ? e2.windowBits = -e2.windowBits : e2.gzip && e2.windowBits > 0 && e2.windowBits < 16 && (e2.windowBits += 16), this.err = 0, this.msg = "", this.ended = false, this.chunks = [], this.strm = new s(), this.strm.avail_out = 0; + var r2 = n.deflateInit2(this.strm, e2.level, e2.method, e2.windowBits, e2.memLevel, e2.strategy); + if (r2 !== f) + throw new Error(a[r2]); + if (e2.header && n.deflateSetHeader(this.strm, e2.header), e2.dictionary) { + var p2; + if (p2 = typeof e2.dictionary == "string" ? o.string2buf(e2.dictionary) : u.call(e2.dictionary) === "[object ArrayBuffer]" ? new Uint8Array(e2.dictionary) : e2.dictionary, (r2 = n.deflateSetDictionary(this.strm, p2)) !== f) + throw new Error(a[r2]); + this._dict_set = true; + } + } + function p(t2, e2) { + var r2 = new d(e2); + if (r2.push(t2, true), r2.err) + throw r2.msg || a[r2.err]; + return r2.result; + } + d.prototype.push = function(t2, e2) { + var r2, a2, s2 = this.strm, c2 = this.options.chunkSize; + if (this.ended) + return false; + a2 = e2 === ~~e2 ? e2 : e2 === true ? 4 : 0, typeof t2 == "string" ? s2.input = o.string2buf(t2) : u.call(t2) === "[object ArrayBuffer]" ? s2.input = new Uint8Array(t2) : s2.input = t2, s2.next_in = 0, s2.avail_in = s2.input.length; + do { + if (s2.avail_out === 0 && (s2.output = new i.Buf8(c2), s2.next_out = 0, s2.avail_out = c2), (r2 = n.deflate(s2, a2)) !== 1 && r2 !== f) + return this.onEnd(r2), this.ended = true, false; + s2.avail_out !== 0 && (s2.avail_in !== 0 || a2 !== 4 && a2 !== 2) || (this.options.to === "string" ? this.onData(o.buf2binstring(i.shrinkBuf(s2.output, s2.next_out))) : this.onData(i.shrinkBuf(s2.output, s2.next_out))); + } while ((s2.avail_in > 0 || s2.avail_out === 0) && r2 !== 1); + return a2 === 4 ? (r2 = n.deflateEnd(this.strm), this.onEnd(r2), this.ended = true, r2 === f) : a2 !== 2 || (this.onEnd(f), s2.avail_out = 0, true); + }, d.prototype.onData = function(t2) { + this.chunks.push(t2); + }, d.prototype.onEnd = function(t2) { + t2 === f && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = i.flattenChunks(this.chunks)), this.chunks = [], this.err = t2, this.msg = this.strm.msg; + }, e.Deflate = d, e.deflate = p, e.deflateRaw = function(t2, e2) { + return (e2 = e2 || {}).raw = true, p(t2, e2); + }, e.gzip = function(t2, e2) { + return (e2 = e2 || {}).gzip = true, p(t2, e2); + }; + }, function(t, e, r) { + "use strict"; + var n, i = r(8), o = r(187), a = r(91), s = r(92), u = r(56), f = 0, c = 1, h = 3, l = 4, d = 5, p = 0, m = 1, g = -2, v = -3, y = -5, _ = -1, w = 1, b = 2, x = 3, k = 4, S = 0, E = 2, A = 8, T = 9, C = 15, O = 8, R = 286, I = 30, B = 19, L = 2 * R + 1, P = 15, z = 3, j = 258, D = j + z + 1, N = 32, M = 42, F = 69, U = 73, W = 91, Z = 103, Y = 113, H = 666, q = 1, G = 2, K = 3, V = 4, X = 3; + function J(t2, e2) { + return t2.msg = u[e2], e2; + } + function $(t2) { + return (t2 << 1) - (t2 > 4 ? 9 : 0); + } + function Q(t2) { + for (var e2 = t2.length; --e2 >= 0; ) + t2[e2] = 0; + } + function tt(t2) { + var e2 = t2.state, r2 = e2.pending; + r2 > t2.avail_out && (r2 = t2.avail_out), r2 !== 0 && (i.arraySet(t2.output, e2.pending_buf, e2.pending_out, r2, t2.next_out), t2.next_out += r2, e2.pending_out += r2, t2.total_out += r2, t2.avail_out -= r2, e2.pending -= r2, e2.pending === 0 && (e2.pending_out = 0)); + } + function et(t2, e2) { + o._tr_flush_block(t2, t2.block_start >= 0 ? t2.block_start : -1, t2.strstart - t2.block_start, e2), t2.block_start = t2.strstart, tt(t2.strm); + } + function rt(t2, e2) { + t2.pending_buf[t2.pending++] = e2; + } + function nt(t2, e2) { + t2.pending_buf[t2.pending++] = e2 >>> 8 & 255, t2.pending_buf[t2.pending++] = 255 & e2; + } + function it(t2, e2, r2, n2) { + var o2 = t2.avail_in; + return o2 > n2 && (o2 = n2), o2 === 0 ? 0 : (t2.avail_in -= o2, i.arraySet(e2, t2.input, t2.next_in, o2, r2), t2.state.wrap === 1 ? t2.adler = a(t2.adler, e2, o2, r2) : t2.state.wrap === 2 && (t2.adler = s(t2.adler, e2, o2, r2)), t2.next_in += o2, t2.total_in += o2, o2); + } + function ot(t2, e2) { + var r2, n2, i2 = t2.max_chain_length, o2 = t2.strstart, a2 = t2.prev_length, s2 = t2.nice_match, u2 = t2.strstart > t2.w_size - D ? t2.strstart - (t2.w_size - D) : 0, f2 = t2.window, c2 = t2.w_mask, h2 = t2.prev, l2 = t2.strstart + j, d2 = f2[o2 + a2 - 1], p2 = f2[o2 + a2]; + t2.prev_length >= t2.good_match && (i2 >>= 2), s2 > t2.lookahead && (s2 = t2.lookahead); + do { + if (f2[(r2 = e2) + a2] === p2 && f2[r2 + a2 - 1] === d2 && f2[r2] === f2[o2] && f2[++r2] === f2[o2 + 1]) { + o2 += 2, r2++; + do { + } while (f2[++o2] === f2[++r2] && f2[++o2] === f2[++r2] && f2[++o2] === f2[++r2] && f2[++o2] === f2[++r2] && f2[++o2] === f2[++r2] && f2[++o2] === f2[++r2] && f2[++o2] === f2[++r2] && f2[++o2] === f2[++r2] && o2 < l2); + if (n2 = j - (l2 - o2), o2 = l2 - j, n2 > a2) { + if (t2.match_start = e2, a2 = n2, n2 >= s2) + break; + d2 = f2[o2 + a2 - 1], p2 = f2[o2 + a2]; + } + } + } while ((e2 = h2[e2 & c2]) > u2 && --i2 != 0); + return a2 <= t2.lookahead ? a2 : t2.lookahead; + } + function at(t2) { + var e2, r2, n2, o2, a2, s2 = t2.w_size; + do { + if (o2 = t2.window_size - t2.lookahead - t2.strstart, t2.strstart >= s2 + (s2 - D)) { + i.arraySet(t2.window, t2.window, s2, s2, 0), t2.match_start -= s2, t2.strstart -= s2, t2.block_start -= s2, e2 = r2 = t2.hash_size; + do { + n2 = t2.head[--e2], t2.head[e2] = n2 >= s2 ? n2 - s2 : 0; + } while (--r2); + e2 = r2 = s2; + do { + n2 = t2.prev[--e2], t2.prev[e2] = n2 >= s2 ? n2 - s2 : 0; + } while (--r2); + o2 += s2; + } + if (t2.strm.avail_in === 0) + break; + if (r2 = it(t2.strm, t2.window, t2.strstart + t2.lookahead, o2), t2.lookahead += r2, t2.lookahead + t2.insert >= z) + for (a2 = t2.strstart - t2.insert, t2.ins_h = t2.window[a2], t2.ins_h = (t2.ins_h << t2.hash_shift ^ t2.window[a2 + 1]) & t2.hash_mask; t2.insert && (t2.ins_h = (t2.ins_h << t2.hash_shift ^ t2.window[a2 + z - 1]) & t2.hash_mask, t2.prev[a2 & t2.w_mask] = t2.head[t2.ins_h], t2.head[t2.ins_h] = a2, a2++, t2.insert--, !(t2.lookahead + t2.insert < z)); ) + ; + } while (t2.lookahead < D && t2.strm.avail_in !== 0); + } + function st(t2, e2) { + for (var r2, n2; ; ) { + if (t2.lookahead < D) { + if (at(t2), t2.lookahead < D && e2 === f) + return q; + if (t2.lookahead === 0) + break; + } + if (r2 = 0, t2.lookahead >= z && (t2.ins_h = (t2.ins_h << t2.hash_shift ^ t2.window[t2.strstart + z - 1]) & t2.hash_mask, r2 = t2.prev[t2.strstart & t2.w_mask] = t2.head[t2.ins_h], t2.head[t2.ins_h] = t2.strstart), r2 !== 0 && t2.strstart - r2 <= t2.w_size - D && (t2.match_length = ot(t2, r2)), t2.match_length >= z) + if (n2 = o._tr_tally(t2, t2.strstart - t2.match_start, t2.match_length - z), t2.lookahead -= t2.match_length, t2.match_length <= t2.max_lazy_match && t2.lookahead >= z) { + t2.match_length--; + do { + t2.strstart++, t2.ins_h = (t2.ins_h << t2.hash_shift ^ t2.window[t2.strstart + z - 1]) & t2.hash_mask, r2 = t2.prev[t2.strstart & t2.w_mask] = t2.head[t2.ins_h], t2.head[t2.ins_h] = t2.strstart; + } while (--t2.match_length != 0); + t2.strstart++; + } else + t2.strstart += t2.match_length, t2.match_length = 0, t2.ins_h = t2.window[t2.strstart], t2.ins_h = (t2.ins_h << t2.hash_shift ^ t2.window[t2.strstart + 1]) & t2.hash_mask; + else + n2 = o._tr_tally(t2, 0, t2.window[t2.strstart]), t2.lookahead--, t2.strstart++; + if (n2 && (et(t2, false), t2.strm.avail_out === 0)) + return q; + } + return t2.insert = t2.strstart < z - 1 ? t2.strstart : z - 1, e2 === l ? (et(t2, true), t2.strm.avail_out === 0 ? K : V) : t2.last_lit && (et(t2, false), t2.strm.avail_out === 0) ? q : G; + } + function ut(t2, e2) { + for (var r2, n2, i2; ; ) { + if (t2.lookahead < D) { + if (at(t2), t2.lookahead < D && e2 === f) + return q; + if (t2.lookahead === 0) + break; + } + if (r2 = 0, t2.lookahead >= z && (t2.ins_h = (t2.ins_h << t2.hash_shift ^ t2.window[t2.strstart + z - 1]) & t2.hash_mask, r2 = t2.prev[t2.strstart & t2.w_mask] = t2.head[t2.ins_h], t2.head[t2.ins_h] = t2.strstart), t2.prev_length = t2.match_length, t2.prev_match = t2.match_start, t2.match_length = z - 1, r2 !== 0 && t2.prev_length < t2.max_lazy_match && t2.strstart - r2 <= t2.w_size - D && (t2.match_length = ot(t2, r2), t2.match_length <= 5 && (t2.strategy === w || t2.match_length === z && t2.strstart - t2.match_start > 4096) && (t2.match_length = z - 1)), t2.prev_length >= z && t2.match_length <= t2.prev_length) { + i2 = t2.strstart + t2.lookahead - z, n2 = o._tr_tally(t2, t2.strstart - 1 - t2.prev_match, t2.prev_length - z), t2.lookahead -= t2.prev_length - 1, t2.prev_length -= 2; + do { + ++t2.strstart <= i2 && (t2.ins_h = (t2.ins_h << t2.hash_shift ^ t2.window[t2.strstart + z - 1]) & t2.hash_mask, r2 = t2.prev[t2.strstart & t2.w_mask] = t2.head[t2.ins_h], t2.head[t2.ins_h] = t2.strstart); + } while (--t2.prev_length != 0); + if (t2.match_available = 0, t2.match_length = z - 1, t2.strstart++, n2 && (et(t2, false), t2.strm.avail_out === 0)) + return q; + } else if (t2.match_available) { + if ((n2 = o._tr_tally(t2, 0, t2.window[t2.strstart - 1])) && et(t2, false), t2.strstart++, t2.lookahead--, t2.strm.avail_out === 0) + return q; + } else + t2.match_available = 1, t2.strstart++, t2.lookahead--; + } + return t2.match_available && (n2 = o._tr_tally(t2, 0, t2.window[t2.strstart - 1]), t2.match_available = 0), t2.insert = t2.strstart < z - 1 ? t2.strstart : z - 1, e2 === l ? (et(t2, true), t2.strm.avail_out === 0 ? K : V) : t2.last_lit && (et(t2, false), t2.strm.avail_out === 0) ? q : G; + } + function ft(t2, e2, r2, n2, i2) { + this.good_length = t2, this.max_lazy = e2, this.nice_length = r2, this.max_chain = n2, this.func = i2; + } + function ct(t2) { + var e2; + return t2 && t2.state ? (t2.total_in = t2.total_out = 0, t2.data_type = E, (e2 = t2.state).pending = 0, e2.pending_out = 0, e2.wrap < 0 && (e2.wrap = -e2.wrap), e2.status = e2.wrap ? M : Y, t2.adler = e2.wrap === 2 ? 0 : 1, e2.last_flush = f, o._tr_init(e2), p) : J(t2, g); + } + function ht(t2) { + var e2 = ct(t2); + return e2 === p && function(t3) { + t3.window_size = 2 * t3.w_size, Q(t3.head), t3.max_lazy_match = n[t3.level].max_lazy, t3.good_match = n[t3.level].good_length, t3.nice_match = n[t3.level].nice_length, t3.max_chain_length = n[t3.level].max_chain, t3.strstart = 0, t3.block_start = 0, t3.lookahead = 0, t3.insert = 0, t3.match_length = t3.prev_length = z - 1, t3.match_available = 0, t3.ins_h = 0; + }(t2.state), e2; + } + function lt(t2, e2, r2, n2, o2, a2) { + if (!t2) + return g; + var s2 = 1; + if (e2 === _ && (e2 = 6), n2 < 0 ? (s2 = 0, n2 = -n2) : n2 > 15 && (s2 = 2, n2 -= 16), o2 < 1 || o2 > T || r2 !== A || n2 < 8 || n2 > 15 || e2 < 0 || e2 > 9 || a2 < 0 || a2 > k) + return J(t2, g); + n2 === 8 && (n2 = 9); + var u2 = new function() { + this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = A, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new i.Buf16(2 * L), this.dyn_dtree = new i.Buf16(2 * (2 * I + 1)), this.bl_tree = new i.Buf16(2 * (2 * B + 1)), Q(this.dyn_ltree), Q(this.dyn_dtree), Q(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new i.Buf16(P + 1), this.heap = new i.Buf16(2 * R + 1), Q(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new i.Buf16(2 * R + 1), Q(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0; + }(); + return t2.state = u2, u2.strm = t2, u2.wrap = s2, u2.gzhead = null, u2.w_bits = n2, u2.w_size = 1 << u2.w_bits, u2.w_mask = u2.w_size - 1, u2.hash_bits = o2 + 7, u2.hash_size = 1 << u2.hash_bits, u2.hash_mask = u2.hash_size - 1, u2.hash_shift = ~~((u2.hash_bits + z - 1) / z), u2.window = new i.Buf8(2 * u2.w_size), u2.head = new i.Buf16(u2.hash_size), u2.prev = new i.Buf16(u2.w_size), u2.lit_bufsize = 1 << o2 + 6, u2.pending_buf_size = 4 * u2.lit_bufsize, u2.pending_buf = new i.Buf8(u2.pending_buf_size), u2.d_buf = 1 * u2.lit_bufsize, u2.l_buf = 3 * u2.lit_bufsize, u2.level = e2, u2.strategy = a2, u2.method = r2, ht(t2); + } + n = [new ft(0, 0, 0, 0, function(t2, e2) { + var r2 = 65535; + for (r2 > t2.pending_buf_size - 5 && (r2 = t2.pending_buf_size - 5); ; ) { + if (t2.lookahead <= 1) { + if (at(t2), t2.lookahead === 0 && e2 === f) + return q; + if (t2.lookahead === 0) + break; + } + t2.strstart += t2.lookahead, t2.lookahead = 0; + var n2 = t2.block_start + r2; + if ((t2.strstart === 0 || t2.strstart >= n2) && (t2.lookahead = t2.strstart - n2, t2.strstart = n2, et(t2, false), t2.strm.avail_out === 0)) + return q; + if (t2.strstart - t2.block_start >= t2.w_size - D && (et(t2, false), t2.strm.avail_out === 0)) + return q; + } + return t2.insert = 0, e2 === l ? (et(t2, true), t2.strm.avail_out === 0 ? K : V) : (t2.strstart > t2.block_start && (et(t2, false), t2.strm.avail_out), q); + }), new ft(4, 4, 8, 4, st), new ft(4, 5, 16, 8, st), new ft(4, 6, 32, 32, st), new ft(4, 4, 16, 16, ut), new ft(8, 16, 32, 32, ut), new ft(8, 16, 128, 128, ut), new ft(8, 32, 128, 256, ut), new ft(32, 128, 258, 1024, ut), new ft(32, 258, 258, 4096, ut)], e.deflateInit = function(t2, e2) { + return lt(t2, e2, A, C, O, S); + }, e.deflateInit2 = lt, e.deflateReset = ht, e.deflateResetKeep = ct, e.deflateSetHeader = function(t2, e2) { + return t2 && t2.state ? t2.state.wrap !== 2 ? g : (t2.state.gzhead = e2, p) : g; + }, e.deflate = function(t2, e2) { + var r2, i2, a2, u2; + if (!t2 || !t2.state || e2 > d || e2 < 0) + return t2 ? J(t2, g) : g; + if (i2 = t2.state, !t2.output || !t2.input && t2.avail_in !== 0 || i2.status === H && e2 !== l) + return J(t2, t2.avail_out === 0 ? y : g); + if (i2.strm = t2, r2 = i2.last_flush, i2.last_flush = e2, i2.status === M) + if (i2.wrap === 2) + t2.adler = 0, rt(i2, 31), rt(i2, 139), rt(i2, 8), i2.gzhead ? (rt(i2, (i2.gzhead.text ? 1 : 0) + (i2.gzhead.hcrc ? 2 : 0) + (i2.gzhead.extra ? 4 : 0) + (i2.gzhead.name ? 8 : 0) + (i2.gzhead.comment ? 16 : 0)), rt(i2, 255 & i2.gzhead.time), rt(i2, i2.gzhead.time >> 8 & 255), rt(i2, i2.gzhead.time >> 16 & 255), rt(i2, i2.gzhead.time >> 24 & 255), rt(i2, i2.level === 9 ? 2 : i2.strategy >= b || i2.level < 2 ? 4 : 0), rt(i2, 255 & i2.gzhead.os), i2.gzhead.extra && i2.gzhead.extra.length && (rt(i2, 255 & i2.gzhead.extra.length), rt(i2, i2.gzhead.extra.length >> 8 & 255)), i2.gzhead.hcrc && (t2.adler = s(t2.adler, i2.pending_buf, i2.pending, 0)), i2.gzindex = 0, i2.status = F) : (rt(i2, 0), rt(i2, 0), rt(i2, 0), rt(i2, 0), rt(i2, 0), rt(i2, i2.level === 9 ? 2 : i2.strategy >= b || i2.level < 2 ? 4 : 0), rt(i2, X), i2.status = Y); + else { + var v2 = A + (i2.w_bits - 8 << 4) << 8; + v2 |= (i2.strategy >= b || i2.level < 2 ? 0 : i2.level < 6 ? 1 : i2.level === 6 ? 2 : 3) << 6, i2.strstart !== 0 && (v2 |= N), v2 += 31 - v2 % 31, i2.status = Y, nt(i2, v2), i2.strstart !== 0 && (nt(i2, t2.adler >>> 16), nt(i2, 65535 & t2.adler)), t2.adler = 1; + } + if (i2.status === F) + if (i2.gzhead.extra) { + for (a2 = i2.pending; i2.gzindex < (65535 & i2.gzhead.extra.length) && (i2.pending !== i2.pending_buf_size || (i2.gzhead.hcrc && i2.pending > a2 && (t2.adler = s(t2.adler, i2.pending_buf, i2.pending - a2, a2)), tt(t2), a2 = i2.pending, i2.pending !== i2.pending_buf_size)); ) + rt(i2, 255 & i2.gzhead.extra[i2.gzindex]), i2.gzindex++; + i2.gzhead.hcrc && i2.pending > a2 && (t2.adler = s(t2.adler, i2.pending_buf, i2.pending - a2, a2)), i2.gzindex === i2.gzhead.extra.length && (i2.gzindex = 0, i2.status = U); + } else + i2.status = U; + if (i2.status === U) + if (i2.gzhead.name) { + a2 = i2.pending; + do { + if (i2.pending === i2.pending_buf_size && (i2.gzhead.hcrc && i2.pending > a2 && (t2.adler = s(t2.adler, i2.pending_buf, i2.pending - a2, a2)), tt(t2), a2 = i2.pending, i2.pending === i2.pending_buf_size)) { + u2 = 1; + break; + } + u2 = i2.gzindex < i2.gzhead.name.length ? 255 & i2.gzhead.name.charCodeAt(i2.gzindex++) : 0, rt(i2, u2); + } while (u2 !== 0); + i2.gzhead.hcrc && i2.pending > a2 && (t2.adler = s(t2.adler, i2.pending_buf, i2.pending - a2, a2)), u2 === 0 && (i2.gzindex = 0, i2.status = W); + } else + i2.status = W; + if (i2.status === W) + if (i2.gzhead.comment) { + a2 = i2.pending; + do { + if (i2.pending === i2.pending_buf_size && (i2.gzhead.hcrc && i2.pending > a2 && (t2.adler = s(t2.adler, i2.pending_buf, i2.pending - a2, a2)), tt(t2), a2 = i2.pending, i2.pending === i2.pending_buf_size)) { + u2 = 1; + break; + } + u2 = i2.gzindex < i2.gzhead.comment.length ? 255 & i2.gzhead.comment.charCodeAt(i2.gzindex++) : 0, rt(i2, u2); + } while (u2 !== 0); + i2.gzhead.hcrc && i2.pending > a2 && (t2.adler = s(t2.adler, i2.pending_buf, i2.pending - a2, a2)), u2 === 0 && (i2.status = Z); + } else + i2.status = Z; + if (i2.status === Z && (i2.gzhead.hcrc ? (i2.pending + 2 > i2.pending_buf_size && tt(t2), i2.pending + 2 <= i2.pending_buf_size && (rt(i2, 255 & t2.adler), rt(i2, t2.adler >> 8 & 255), t2.adler = 0, i2.status = Y)) : i2.status = Y), i2.pending !== 0) { + if (tt(t2), t2.avail_out === 0) + return i2.last_flush = -1, p; + } else if (t2.avail_in === 0 && $(e2) <= $(r2) && e2 !== l) + return J(t2, y); + if (i2.status === H && t2.avail_in !== 0) + return J(t2, y); + if (t2.avail_in !== 0 || i2.lookahead !== 0 || e2 !== f && i2.status !== H) { + var _2 = i2.strategy === b ? function(t3, e3) { + for (var r3; ; ) { + if (t3.lookahead === 0 && (at(t3), t3.lookahead === 0)) { + if (e3 === f) + return q; + break; + } + if (t3.match_length = 0, r3 = o._tr_tally(t3, 0, t3.window[t3.strstart]), t3.lookahead--, t3.strstart++, r3 && (et(t3, false), t3.strm.avail_out === 0)) + return q; + } + return t3.insert = 0, e3 === l ? (et(t3, true), t3.strm.avail_out === 0 ? K : V) : t3.last_lit && (et(t3, false), t3.strm.avail_out === 0) ? q : G; + }(i2, e2) : i2.strategy === x ? function(t3, e3) { + for (var r3, n2, i3, a3, s2 = t3.window; ; ) { + if (t3.lookahead <= j) { + if (at(t3), t3.lookahead <= j && e3 === f) + return q; + if (t3.lookahead === 0) + break; + } + if (t3.match_length = 0, t3.lookahead >= z && t3.strstart > 0 && (n2 = s2[i3 = t3.strstart - 1]) === s2[++i3] && n2 === s2[++i3] && n2 === s2[++i3]) { + a3 = t3.strstart + j; + do { + } while (n2 === s2[++i3] && n2 === s2[++i3] && n2 === s2[++i3] && n2 === s2[++i3] && n2 === s2[++i3] && n2 === s2[++i3] && n2 === s2[++i3] && n2 === s2[++i3] && i3 < a3); + t3.match_length = j - (a3 - i3), t3.match_length > t3.lookahead && (t3.match_length = t3.lookahead); + } + if (t3.match_length >= z ? (r3 = o._tr_tally(t3, 1, t3.match_length - z), t3.lookahead -= t3.match_length, t3.strstart += t3.match_length, t3.match_length = 0) : (r3 = o._tr_tally(t3, 0, t3.window[t3.strstart]), t3.lookahead--, t3.strstart++), r3 && (et(t3, false), t3.strm.avail_out === 0)) + return q; + } + return t3.insert = 0, e3 === l ? (et(t3, true), t3.strm.avail_out === 0 ? K : V) : t3.last_lit && (et(t3, false), t3.strm.avail_out === 0) ? q : G; + }(i2, e2) : n[i2.level].func(i2, e2); + if (_2 !== K && _2 !== V || (i2.status = H), _2 === q || _2 === K) + return t2.avail_out === 0 && (i2.last_flush = -1), p; + if (_2 === G && (e2 === c ? o._tr_align(i2) : e2 !== d && (o._tr_stored_block(i2, 0, 0, false), e2 === h && (Q(i2.head), i2.lookahead === 0 && (i2.strstart = 0, i2.block_start = 0, i2.insert = 0))), tt(t2), t2.avail_out === 0)) + return i2.last_flush = -1, p; + } + return e2 !== l ? p : i2.wrap <= 0 ? m : (i2.wrap === 2 ? (rt(i2, 255 & t2.adler), rt(i2, t2.adler >> 8 & 255), rt(i2, t2.adler >> 16 & 255), rt(i2, t2.adler >> 24 & 255), rt(i2, 255 & t2.total_in), rt(i2, t2.total_in >> 8 & 255), rt(i2, t2.total_in >> 16 & 255), rt(i2, t2.total_in >> 24 & 255)) : (nt(i2, t2.adler >>> 16), nt(i2, 65535 & t2.adler)), tt(t2), i2.wrap > 0 && (i2.wrap = -i2.wrap), i2.pending !== 0 ? p : m); + }, e.deflateEnd = function(t2) { + var e2; + return t2 && t2.state ? (e2 = t2.state.status) !== M && e2 !== F && e2 !== U && e2 !== W && e2 !== Z && e2 !== Y && e2 !== H ? J(t2, g) : (t2.state = null, e2 === Y ? J(t2, v) : p) : g; + }, e.deflateSetDictionary = function(t2, e2) { + var r2, n2, o2, s2, u2, f2, c2, h2, l2 = e2.length; + if (!t2 || !t2.state) + return g; + if ((s2 = (r2 = t2.state).wrap) === 2 || s2 === 1 && r2.status !== M || r2.lookahead) + return g; + for (s2 === 1 && (t2.adler = a(t2.adler, e2, l2, 0)), r2.wrap = 0, l2 >= r2.w_size && (s2 === 0 && (Q(r2.head), r2.strstart = 0, r2.block_start = 0, r2.insert = 0), h2 = new i.Buf8(r2.w_size), i.arraySet(h2, e2, l2 - r2.w_size, r2.w_size, 0), e2 = h2, l2 = r2.w_size), u2 = t2.avail_in, f2 = t2.next_in, c2 = t2.input, t2.avail_in = l2, t2.next_in = 0, t2.input = e2, at(r2); r2.lookahead >= z; ) { + n2 = r2.strstart, o2 = r2.lookahead - (z - 1); + do { + r2.ins_h = (r2.ins_h << r2.hash_shift ^ r2.window[n2 + z - 1]) & r2.hash_mask, r2.prev[n2 & r2.w_mask] = r2.head[r2.ins_h], r2.head[r2.ins_h] = n2, n2++; + } while (--o2); + r2.strstart = n2, r2.lookahead = z - 1, at(r2); + } + return r2.strstart += r2.lookahead, r2.block_start = r2.strstart, r2.insert = r2.lookahead, r2.lookahead = 0, r2.match_length = r2.prev_length = z - 1, r2.match_available = 0, t2.next_in = f2, t2.input = c2, t2.avail_in = u2, r2.wrap = s2, p; + }, e.deflateInfo = "pako deflate (from Nodeca project)"; + }, function(t, e, r) { + "use strict"; + var n = r(8), i = 4, o = 0, a = 1, s = 2; + function u(t2) { + for (var e2 = t2.length; --e2 >= 0; ) + t2[e2] = 0; + } + var f = 0, c = 1, h = 2, l = 29, d = 256, p = d + 1 + l, m = 30, g = 19, v = 2 * p + 1, y = 15, _ = 16, w = 7, b = 256, x = 16, k = 17, S = 18, E = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], A = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], T = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], C = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], O = new Array(2 * (p + 2)); + u(O); + var R = new Array(2 * m); + u(R); + var I = new Array(512); + u(I); + var B = new Array(256); + u(B); + var L = new Array(l); + u(L); + var P, z, j, D = new Array(m); + function N(t2, e2, r2, n2, i2) { + this.static_tree = t2, this.extra_bits = e2, this.extra_base = r2, this.elems = n2, this.max_length = i2, this.has_stree = t2 && t2.length; + } + function M(t2, e2) { + this.dyn_tree = t2, this.max_code = 0, this.stat_desc = e2; + } + function F(t2) { + return t2 < 256 ? I[t2] : I[256 + (t2 >>> 7)]; + } + function U(t2, e2) { + t2.pending_buf[t2.pending++] = 255 & e2, t2.pending_buf[t2.pending++] = e2 >>> 8 & 255; + } + function W(t2, e2, r2) { + t2.bi_valid > _ - r2 ? (t2.bi_buf |= e2 << t2.bi_valid & 65535, U(t2, t2.bi_buf), t2.bi_buf = e2 >> _ - t2.bi_valid, t2.bi_valid += r2 - _) : (t2.bi_buf |= e2 << t2.bi_valid & 65535, t2.bi_valid += r2); + } + function Z(t2, e2, r2) { + W(t2, r2[2 * e2], r2[2 * e2 + 1]); + } + function Y(t2, e2) { + var r2 = 0; + do { + r2 |= 1 & t2, t2 >>>= 1, r2 <<= 1; + } while (--e2 > 0); + return r2 >>> 1; + } + function H(t2, e2, r2) { + var n2, i2, o2 = new Array(y + 1), a2 = 0; + for (n2 = 1; n2 <= y; n2++) + o2[n2] = a2 = a2 + r2[n2 - 1] << 1; + for (i2 = 0; i2 <= e2; i2++) { + var s2 = t2[2 * i2 + 1]; + s2 !== 0 && (t2[2 * i2] = Y(o2[s2]++, s2)); + } + } + function q(t2) { + var e2; + for (e2 = 0; e2 < p; e2++) + t2.dyn_ltree[2 * e2] = 0; + for (e2 = 0; e2 < m; e2++) + t2.dyn_dtree[2 * e2] = 0; + for (e2 = 0; e2 < g; e2++) + t2.bl_tree[2 * e2] = 0; + t2.dyn_ltree[2 * b] = 1, t2.opt_len = t2.static_len = 0, t2.last_lit = t2.matches = 0; + } + function G(t2) { + t2.bi_valid > 8 ? U(t2, t2.bi_buf) : t2.bi_valid > 0 && (t2.pending_buf[t2.pending++] = t2.bi_buf), t2.bi_buf = 0, t2.bi_valid = 0; + } + function K(t2, e2, r2, n2) { + var i2 = 2 * e2, o2 = 2 * r2; + return t2[i2] < t2[o2] || t2[i2] === t2[o2] && n2[e2] <= n2[r2]; + } + function V(t2, e2, r2) { + for (var n2 = t2.heap[r2], i2 = r2 << 1; i2 <= t2.heap_len && (i2 < t2.heap_len && K(e2, t2.heap[i2 + 1], t2.heap[i2], t2.depth) && i2++, !K(e2, n2, t2.heap[i2], t2.depth)); ) + t2.heap[r2] = t2.heap[i2], r2 = i2, i2 <<= 1; + t2.heap[r2] = n2; + } + function X(t2, e2, r2) { + var n2, i2, o2, a2, s2 = 0; + if (t2.last_lit !== 0) + do { + n2 = t2.pending_buf[t2.d_buf + 2 * s2] << 8 | t2.pending_buf[t2.d_buf + 2 * s2 + 1], i2 = t2.pending_buf[t2.l_buf + s2], s2++, n2 === 0 ? Z(t2, i2, e2) : (Z(t2, (o2 = B[i2]) + d + 1, e2), (a2 = E[o2]) !== 0 && W(t2, i2 -= L[o2], a2), Z(t2, o2 = F(--n2), r2), (a2 = A[o2]) !== 0 && W(t2, n2 -= D[o2], a2)); + } while (s2 < t2.last_lit); + Z(t2, b, e2); + } + function J(t2, e2) { + var r2, n2, i2, o2 = e2.dyn_tree, a2 = e2.stat_desc.static_tree, s2 = e2.stat_desc.has_stree, u2 = e2.stat_desc.elems, f2 = -1; + for (t2.heap_len = 0, t2.heap_max = v, r2 = 0; r2 < u2; r2++) + o2[2 * r2] !== 0 ? (t2.heap[++t2.heap_len] = f2 = r2, t2.depth[r2] = 0) : o2[2 * r2 + 1] = 0; + for (; t2.heap_len < 2; ) + o2[2 * (i2 = t2.heap[++t2.heap_len] = f2 < 2 ? ++f2 : 0)] = 1, t2.depth[i2] = 0, t2.opt_len--, s2 && (t2.static_len -= a2[2 * i2 + 1]); + for (e2.max_code = f2, r2 = t2.heap_len >> 1; r2 >= 1; r2--) + V(t2, o2, r2); + i2 = u2; + do { + r2 = t2.heap[1], t2.heap[1] = t2.heap[t2.heap_len--], V(t2, o2, 1), n2 = t2.heap[1], t2.heap[--t2.heap_max] = r2, t2.heap[--t2.heap_max] = n2, o2[2 * i2] = o2[2 * r2] + o2[2 * n2], t2.depth[i2] = (t2.depth[r2] >= t2.depth[n2] ? t2.depth[r2] : t2.depth[n2]) + 1, o2[2 * r2 + 1] = o2[2 * n2 + 1] = i2, t2.heap[1] = i2++, V(t2, o2, 1); + } while (t2.heap_len >= 2); + t2.heap[--t2.heap_max] = t2.heap[1], function(t3, e3) { + var r3, n3, i3, o3, a3, s3, u3 = e3.dyn_tree, f3 = e3.max_code, c2 = e3.stat_desc.static_tree, h2 = e3.stat_desc.has_stree, l2 = e3.stat_desc.extra_bits, d2 = e3.stat_desc.extra_base, p2 = e3.stat_desc.max_length, m2 = 0; + for (o3 = 0; o3 <= y; o3++) + t3.bl_count[o3] = 0; + for (u3[2 * t3.heap[t3.heap_max] + 1] = 0, r3 = t3.heap_max + 1; r3 < v; r3++) + (o3 = u3[2 * u3[2 * (n3 = t3.heap[r3]) + 1] + 1] + 1) > p2 && (o3 = p2, m2++), u3[2 * n3 + 1] = o3, n3 > f3 || (t3.bl_count[o3]++, a3 = 0, n3 >= d2 && (a3 = l2[n3 - d2]), s3 = u3[2 * n3], t3.opt_len += s3 * (o3 + a3), h2 && (t3.static_len += s3 * (c2[2 * n3 + 1] + a3))); + if (m2 !== 0) { + do { + for (o3 = p2 - 1; t3.bl_count[o3] === 0; ) + o3--; + t3.bl_count[o3]--, t3.bl_count[o3 + 1] += 2, t3.bl_count[p2]--, m2 -= 2; + } while (m2 > 0); + for (o3 = p2; o3 !== 0; o3--) + for (n3 = t3.bl_count[o3]; n3 !== 0; ) + (i3 = t3.heap[--r3]) > f3 || (u3[2 * i3 + 1] !== o3 && (t3.opt_len += (o3 - u3[2 * i3 + 1]) * u3[2 * i3], u3[2 * i3 + 1] = o3), n3--); + } + }(t2, e2), H(o2, f2, t2.bl_count); + } + function $(t2, e2, r2) { + var n2, i2, o2 = -1, a2 = e2[1], s2 = 0, u2 = 7, f2 = 4; + for (a2 === 0 && (u2 = 138, f2 = 3), e2[2 * (r2 + 1) + 1] = 65535, n2 = 0; n2 <= r2; n2++) + i2 = a2, a2 = e2[2 * (n2 + 1) + 1], ++s2 < u2 && i2 === a2 || (s2 < f2 ? t2.bl_tree[2 * i2] += s2 : i2 !== 0 ? (i2 !== o2 && t2.bl_tree[2 * i2]++, t2.bl_tree[2 * x]++) : s2 <= 10 ? t2.bl_tree[2 * k]++ : t2.bl_tree[2 * S]++, s2 = 0, o2 = i2, a2 === 0 ? (u2 = 138, f2 = 3) : i2 === a2 ? (u2 = 6, f2 = 3) : (u2 = 7, f2 = 4)); + } + function Q(t2, e2, r2) { + var n2, i2, o2 = -1, a2 = e2[1], s2 = 0, u2 = 7, f2 = 4; + for (a2 === 0 && (u2 = 138, f2 = 3), n2 = 0; n2 <= r2; n2++) + if (i2 = a2, a2 = e2[2 * (n2 + 1) + 1], !(++s2 < u2 && i2 === a2)) { + if (s2 < f2) + do { + Z(t2, i2, t2.bl_tree); + } while (--s2 != 0); + else + i2 !== 0 ? (i2 !== o2 && (Z(t2, i2, t2.bl_tree), s2--), Z(t2, x, t2.bl_tree), W(t2, s2 - 3, 2)) : s2 <= 10 ? (Z(t2, k, t2.bl_tree), W(t2, s2 - 3, 3)) : (Z(t2, S, t2.bl_tree), W(t2, s2 - 11, 7)); + s2 = 0, o2 = i2, a2 === 0 ? (u2 = 138, f2 = 3) : i2 === a2 ? (u2 = 6, f2 = 3) : (u2 = 7, f2 = 4); + } + } + u(D); + var tt = false; + function et(t2, e2, r2, i2) { + W(t2, (f << 1) + (i2 ? 1 : 0), 3), function(t3, e3, r3, i3) { + G(t3), i3 && (U(t3, r3), U(t3, ~r3)), n.arraySet(t3.pending_buf, t3.window, e3, r3, t3.pending), t3.pending += r3; + }(t2, e2, r2, true); + } + e._tr_init = function(t2) { + tt || (function() { + var t3, e2, r2, n2, i2, o2 = new Array(y + 1); + for (r2 = 0, n2 = 0; n2 < l - 1; n2++) + for (L[n2] = r2, t3 = 0; t3 < 1 << E[n2]; t3++) + B[r2++] = n2; + for (B[r2 - 1] = n2, i2 = 0, n2 = 0; n2 < 16; n2++) + for (D[n2] = i2, t3 = 0; t3 < 1 << A[n2]; t3++) + I[i2++] = n2; + for (i2 >>= 7; n2 < m; n2++) + for (D[n2] = i2 << 7, t3 = 0; t3 < 1 << A[n2] - 7; t3++) + I[256 + i2++] = n2; + for (e2 = 0; e2 <= y; e2++) + o2[e2] = 0; + for (t3 = 0; t3 <= 143; ) + O[2 * t3 + 1] = 8, t3++, o2[8]++; + for (; t3 <= 255; ) + O[2 * t3 + 1] = 9, t3++, o2[9]++; + for (; t3 <= 279; ) + O[2 * t3 + 1] = 7, t3++, o2[7]++; + for (; t3 <= 287; ) + O[2 * t3 + 1] = 8, t3++, o2[8]++; + for (H(O, p + 1, o2), t3 = 0; t3 < m; t3++) + R[2 * t3 + 1] = 5, R[2 * t3] = Y(t3, 5); + P = new N(O, E, d + 1, p, y), z = new N(R, A, 0, m, y), j = new N(new Array(0), T, 0, g, w); + }(), tt = true), t2.l_desc = new M(t2.dyn_ltree, P), t2.d_desc = new M(t2.dyn_dtree, z), t2.bl_desc = new M(t2.bl_tree, j), t2.bi_buf = 0, t2.bi_valid = 0, q(t2); + }, e._tr_stored_block = et, e._tr_flush_block = function(t2, e2, r2, n2) { + var u2, f2, l2 = 0; + t2.level > 0 ? (t2.strm.data_type === s && (t2.strm.data_type = function(t3) { + var e3, r3 = 4093624447; + for (e3 = 0; e3 <= 31; e3++, r3 >>>= 1) + if (1 & r3 && t3.dyn_ltree[2 * e3] !== 0) + return o; + if (t3.dyn_ltree[18] !== 0 || t3.dyn_ltree[20] !== 0 || t3.dyn_ltree[26] !== 0) + return a; + for (e3 = 32; e3 < d; e3++) + if (t3.dyn_ltree[2 * e3] !== 0) + return a; + return o; + }(t2)), J(t2, t2.l_desc), J(t2, t2.d_desc), l2 = function(t3) { + var e3; + for ($(t3, t3.dyn_ltree, t3.l_desc.max_code), $(t3, t3.dyn_dtree, t3.d_desc.max_code), J(t3, t3.bl_desc), e3 = g - 1; e3 >= 3 && t3.bl_tree[2 * C[e3] + 1] === 0; e3--) + ; + return t3.opt_len += 3 * (e3 + 1) + 5 + 5 + 4, e3; + }(t2), u2 = t2.opt_len + 3 + 7 >>> 3, (f2 = t2.static_len + 3 + 7 >>> 3) <= u2 && (u2 = f2)) : u2 = f2 = r2 + 5, r2 + 4 <= u2 && e2 !== -1 ? et(t2, e2, r2, n2) : t2.strategy === i || f2 === u2 ? (W(t2, (c << 1) + (n2 ? 1 : 0), 3), X(t2, O, R)) : (W(t2, (h << 1) + (n2 ? 1 : 0), 3), function(t3, e3, r3, n3) { + var i2; + for (W(t3, e3 - 257, 5), W(t3, r3 - 1, 5), W(t3, n3 - 4, 4), i2 = 0; i2 < n3; i2++) + W(t3, t3.bl_tree[2 * C[i2] + 1], 3); + Q(t3, t3.dyn_ltree, e3 - 1), Q(t3, t3.dyn_dtree, r3 - 1); + }(t2, t2.l_desc.max_code + 1, t2.d_desc.max_code + 1, l2 + 1), X(t2, t2.dyn_ltree, t2.dyn_dtree)), q(t2), n2 && G(t2); + }, e._tr_tally = function(t2, e2, r2) { + return t2.pending_buf[t2.d_buf + 2 * t2.last_lit] = e2 >>> 8 & 255, t2.pending_buf[t2.d_buf + 2 * t2.last_lit + 1] = 255 & e2, t2.pending_buf[t2.l_buf + t2.last_lit] = 255 & r2, t2.last_lit++, e2 === 0 ? t2.dyn_ltree[2 * r2]++ : (t2.matches++, e2--, t2.dyn_ltree[2 * (B[r2] + d + 1)]++, t2.dyn_dtree[2 * F(e2)]++), t2.last_lit === t2.lit_bufsize - 1; + }, e._tr_align = function(t2) { + W(t2, c << 1, 3), Z(t2, b, O), function(t3) { + t3.bi_valid === 16 ? (U(t3, t3.bi_buf), t3.bi_buf = 0, t3.bi_valid = 0) : t3.bi_valid >= 8 && (t3.pending_buf[t3.pending++] = 255 & t3.bi_buf, t3.bi_buf >>= 8, t3.bi_valid -= 8); + }(t2); + }; + }, function(t, e, r) { + "use strict"; + var n = r(189), i = r(8), o = r(93), a = r(95), s = r(56), u = r(94), f = r(192), c = Object.prototype.toString; + function h(t2) { + if (!(this instanceof h)) + return new h(t2); + this.options = i.assign({ chunkSize: 16384, windowBits: 0, to: "" }, t2 || {}); + var e2 = this.options; + e2.raw && e2.windowBits >= 0 && e2.windowBits < 16 && (e2.windowBits = -e2.windowBits, e2.windowBits === 0 && (e2.windowBits = -15)), !(e2.windowBits >= 0 && e2.windowBits < 16) || t2 && t2.windowBits || (e2.windowBits += 32), e2.windowBits > 15 && e2.windowBits < 48 && (15 & e2.windowBits) == 0 && (e2.windowBits |= 15), this.err = 0, this.msg = "", this.ended = false, this.chunks = [], this.strm = new u(), this.strm.avail_out = 0; + var r2 = n.inflateInit2(this.strm, e2.windowBits); + if (r2 !== a.Z_OK) + throw new Error(s[r2]); + this.header = new f(), n.inflateGetHeader(this.strm, this.header); + } + function l(t2, e2) { + var r2 = new h(e2); + if (r2.push(t2, true), r2.err) + throw r2.msg || s[r2.err]; + return r2.result; + } + h.prototype.push = function(t2, e2) { + var r2, s2, u2, f2, h2, l2, d = this.strm, p = this.options.chunkSize, m = this.options.dictionary, g = false; + if (this.ended) + return false; + s2 = e2 === ~~e2 ? e2 : e2 === true ? a.Z_FINISH : a.Z_NO_FLUSH, typeof t2 == "string" ? d.input = o.binstring2buf(t2) : c.call(t2) === "[object ArrayBuffer]" ? d.input = new Uint8Array(t2) : d.input = t2, d.next_in = 0, d.avail_in = d.input.length; + do { + if (d.avail_out === 0 && (d.output = new i.Buf8(p), d.next_out = 0, d.avail_out = p), (r2 = n.inflate(d, a.Z_NO_FLUSH)) === a.Z_NEED_DICT && m && (l2 = typeof m == "string" ? o.string2buf(m) : c.call(m) === "[object ArrayBuffer]" ? new Uint8Array(m) : m, r2 = n.inflateSetDictionary(this.strm, l2)), r2 === a.Z_BUF_ERROR && g === true && (r2 = a.Z_OK, g = false), r2 !== a.Z_STREAM_END && r2 !== a.Z_OK) + return this.onEnd(r2), this.ended = true, false; + d.next_out && (d.avail_out !== 0 && r2 !== a.Z_STREAM_END && (d.avail_in !== 0 || s2 !== a.Z_FINISH && s2 !== a.Z_SYNC_FLUSH) || (this.options.to === "string" ? (u2 = o.utf8border(d.output, d.next_out), f2 = d.next_out - u2, h2 = o.buf2string(d.output, u2), d.next_out = f2, d.avail_out = p - f2, f2 && i.arraySet(d.output, d.output, u2, f2, 0), this.onData(h2)) : this.onData(i.shrinkBuf(d.output, d.next_out)))), d.avail_in === 0 && d.avail_out === 0 && (g = true); + } while ((d.avail_in > 0 || d.avail_out === 0) && r2 !== a.Z_STREAM_END); + return r2 === a.Z_STREAM_END && (s2 = a.Z_FINISH), s2 === a.Z_FINISH ? (r2 = n.inflateEnd(this.strm), this.onEnd(r2), this.ended = true, r2 === a.Z_OK) : s2 !== a.Z_SYNC_FLUSH || (this.onEnd(a.Z_OK), d.avail_out = 0, true); + }, h.prototype.onData = function(t2) { + this.chunks.push(t2); + }, h.prototype.onEnd = function(t2) { + t2 === a.Z_OK && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = i.flattenChunks(this.chunks)), this.chunks = [], this.err = t2, this.msg = this.strm.msg; + }, e.Inflate = h, e.inflate = l, e.inflateRaw = function(t2, e2) { + return (e2 = e2 || {}).raw = true, l(t2, e2); + }, e.ungzip = l; + }, function(t, e, r) { + "use strict"; + var n = r(8), i = r(91), o = r(92), a = r(190), s = r(191), u = 0, f = 1, c = 2, h = 4, l = 5, d = 6, p = 0, m = 1, g = 2, v = -2, y = -3, _ = -4, w = -5, b = 8, x = 1, k = 2, S = 3, E = 4, A = 5, T = 6, C = 7, O = 8, R = 9, I = 10, B = 11, L = 12, P = 13, z = 14, j = 15, D = 16, N = 17, M = 18, F = 19, U = 20, W = 21, Z = 22, Y = 23, H = 24, q = 25, G = 26, K = 27, V = 28, X = 29, J = 30, $ = 31, Q = 32, tt = 852, et = 592, rt = 15; + function nt(t2) { + return (t2 >>> 24 & 255) + (t2 >>> 8 & 65280) + ((65280 & t2) << 8) + ((255 & t2) << 24); + } + function it(t2) { + var e2; + return t2 && t2.state ? (e2 = t2.state, t2.total_in = t2.total_out = e2.total = 0, t2.msg = "", e2.wrap && (t2.adler = 1 & e2.wrap), e2.mode = x, e2.last = 0, e2.havedict = 0, e2.dmax = 32768, e2.head = null, e2.hold = 0, e2.bits = 0, e2.lencode = e2.lendyn = new n.Buf32(tt), e2.distcode = e2.distdyn = new n.Buf32(et), e2.sane = 1, e2.back = -1, p) : v; + } + function ot(t2) { + var e2; + return t2 && t2.state ? ((e2 = t2.state).wsize = 0, e2.whave = 0, e2.wnext = 0, it(t2)) : v; + } + function at(t2, e2) { + var r2, n2; + return t2 && t2.state ? (n2 = t2.state, e2 < 0 ? (r2 = 0, e2 = -e2) : (r2 = 1 + (e2 >> 4), e2 < 48 && (e2 &= 15)), e2 && (e2 < 8 || e2 > 15) ? v : (n2.window !== null && n2.wbits !== e2 && (n2.window = null), n2.wrap = r2, n2.wbits = e2, ot(t2))) : v; + } + function st(t2, e2) { + var r2, i2; + return t2 ? (i2 = new function() { + this.mode = 0, this.last = false, this.wrap = 0, this.havedict = false, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new n.Buf16(320), this.work = new n.Buf16(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0; + }(), t2.state = i2, i2.window = null, (r2 = at(t2, e2)) !== p && (t2.state = null), r2) : v; + } + var ut, ft, ct = true; + function ht(t2) { + if (ct) { + var e2; + for (ut = new n.Buf32(512), ft = new n.Buf32(32), e2 = 0; e2 < 144; ) + t2.lens[e2++] = 8; + for (; e2 < 256; ) + t2.lens[e2++] = 9; + for (; e2 < 280; ) + t2.lens[e2++] = 7; + for (; e2 < 288; ) + t2.lens[e2++] = 8; + for (s(f, t2.lens, 0, 288, ut, 0, t2.work, { bits: 9 }), e2 = 0; e2 < 32; ) + t2.lens[e2++] = 5; + s(c, t2.lens, 0, 32, ft, 0, t2.work, { bits: 5 }), ct = false; + } + t2.lencode = ut, t2.lenbits = 9, t2.distcode = ft, t2.distbits = 5; + } + function lt(t2, e2, r2, i2) { + var o2, a2 = t2.state; + return a2.window === null && (a2.wsize = 1 << a2.wbits, a2.wnext = 0, a2.whave = 0, a2.window = new n.Buf8(a2.wsize)), i2 >= a2.wsize ? (n.arraySet(a2.window, e2, r2 - a2.wsize, a2.wsize, 0), a2.wnext = 0, a2.whave = a2.wsize) : ((o2 = a2.wsize - a2.wnext) > i2 && (o2 = i2), n.arraySet(a2.window, e2, r2 - i2, o2, a2.wnext), (i2 -= o2) ? (n.arraySet(a2.window, e2, r2 - i2, i2, 0), a2.wnext = i2, a2.whave = a2.wsize) : (a2.wnext += o2, a2.wnext === a2.wsize && (a2.wnext = 0), a2.whave < a2.wsize && (a2.whave += o2))), 0; + } + e.inflateReset = ot, e.inflateReset2 = at, e.inflateResetKeep = it, e.inflateInit = function(t2) { + return st(t2, rt); + }, e.inflateInit2 = st, e.inflate = function(t2, e2) { + var r2, tt2, et2, rt2, it2, ot2, at2, st2, ut2, ft2, ct2, dt, pt, mt, gt, vt, yt, _t, wt, bt, xt, kt, St, Et, At = 0, Tt = new n.Buf8(4), Ct = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]; + if (!t2 || !t2.state || !t2.output || !t2.input && t2.avail_in !== 0) + return v; + (r2 = t2.state).mode === L && (r2.mode = P), it2 = t2.next_out, et2 = t2.output, at2 = t2.avail_out, rt2 = t2.next_in, tt2 = t2.input, ot2 = t2.avail_in, st2 = r2.hold, ut2 = r2.bits, ft2 = ot2, ct2 = at2, kt = p; + t: + for (; ; ) + switch (r2.mode) { + case x: + if (r2.wrap === 0) { + r2.mode = P; + break; + } + for (; ut2 < 16; ) { + if (ot2 === 0) + break t; + ot2--, st2 += tt2[rt2++] << ut2, ut2 += 8; + } + if (2 & r2.wrap && st2 === 35615) { + r2.check = 0, Tt[0] = 255 & st2, Tt[1] = st2 >>> 8 & 255, r2.check = o(r2.check, Tt, 2, 0), st2 = 0, ut2 = 0, r2.mode = k; + break; + } + if (r2.flags = 0, r2.head && (r2.head.done = false), !(1 & r2.wrap) || (((255 & st2) << 8) + (st2 >> 8)) % 31) { + t2.msg = "incorrect header check", r2.mode = J; + break; + } + if ((15 & st2) !== b) { + t2.msg = "unknown compression method", r2.mode = J; + break; + } + if (ut2 -= 4, xt = 8 + (15 & (st2 >>>= 4)), r2.wbits === 0) + r2.wbits = xt; + else if (xt > r2.wbits) { + t2.msg = "invalid window size", r2.mode = J; + break; + } + r2.dmax = 1 << xt, t2.adler = r2.check = 1, r2.mode = 512 & st2 ? I : L, st2 = 0, ut2 = 0; + break; + case k: + for (; ut2 < 16; ) { + if (ot2 === 0) + break t; + ot2--, st2 += tt2[rt2++] << ut2, ut2 += 8; + } + if (r2.flags = st2, (255 & r2.flags) !== b) { + t2.msg = "unknown compression method", r2.mode = J; + break; + } + if (57344 & r2.flags) { + t2.msg = "unknown header flags set", r2.mode = J; + break; + } + r2.head && (r2.head.text = st2 >> 8 & 1), 512 & r2.flags && (Tt[0] = 255 & st2, Tt[1] = st2 >>> 8 & 255, r2.check = o(r2.check, Tt, 2, 0)), st2 = 0, ut2 = 0, r2.mode = S; + case S: + for (; ut2 < 32; ) { + if (ot2 === 0) + break t; + ot2--, st2 += tt2[rt2++] << ut2, ut2 += 8; + } + r2.head && (r2.head.time = st2), 512 & r2.flags && (Tt[0] = 255 & st2, Tt[1] = st2 >>> 8 & 255, Tt[2] = st2 >>> 16 & 255, Tt[3] = st2 >>> 24 & 255, r2.check = o(r2.check, Tt, 4, 0)), st2 = 0, ut2 = 0, r2.mode = E; + case E: + for (; ut2 < 16; ) { + if (ot2 === 0) + break t; + ot2--, st2 += tt2[rt2++] << ut2, ut2 += 8; + } + r2.head && (r2.head.xflags = 255 & st2, r2.head.os = st2 >> 8), 512 & r2.flags && (Tt[0] = 255 & st2, Tt[1] = st2 >>> 8 & 255, r2.check = o(r2.check, Tt, 2, 0)), st2 = 0, ut2 = 0, r2.mode = A; + case A: + if (1024 & r2.flags) { + for (; ut2 < 16; ) { + if (ot2 === 0) + break t; + ot2--, st2 += tt2[rt2++] << ut2, ut2 += 8; + } + r2.length = st2, r2.head && (r2.head.extra_len = st2), 512 & r2.flags && (Tt[0] = 255 & st2, Tt[1] = st2 >>> 8 & 255, r2.check = o(r2.check, Tt, 2, 0)), st2 = 0, ut2 = 0; + } else + r2.head && (r2.head.extra = null); + r2.mode = T; + case T: + if (1024 & r2.flags && ((dt = r2.length) > ot2 && (dt = ot2), dt && (r2.head && (xt = r2.head.extra_len - r2.length, r2.head.extra || (r2.head.extra = new Array(r2.head.extra_len)), n.arraySet(r2.head.extra, tt2, rt2, dt, xt)), 512 & r2.flags && (r2.check = o(r2.check, tt2, dt, rt2)), ot2 -= dt, rt2 += dt, r2.length -= dt), r2.length)) + break t; + r2.length = 0, r2.mode = C; + case C: + if (2048 & r2.flags) { + if (ot2 === 0) + break t; + dt = 0; + do { + xt = tt2[rt2 + dt++], r2.head && xt && r2.length < 65536 && (r2.head.name += String.fromCharCode(xt)); + } while (xt && dt < ot2); + if (512 & r2.flags && (r2.check = o(r2.check, tt2, dt, rt2)), ot2 -= dt, rt2 += dt, xt) + break t; + } else + r2.head && (r2.head.name = null); + r2.length = 0, r2.mode = O; + case O: + if (4096 & r2.flags) { + if (ot2 === 0) + break t; + dt = 0; + do { + xt = tt2[rt2 + dt++], r2.head && xt && r2.length < 65536 && (r2.head.comment += String.fromCharCode(xt)); + } while (xt && dt < ot2); + if (512 & r2.flags && (r2.check = o(r2.check, tt2, dt, rt2)), ot2 -= dt, rt2 += dt, xt) + break t; + } else + r2.head && (r2.head.comment = null); + r2.mode = R; + case R: + if (512 & r2.flags) { + for (; ut2 < 16; ) { + if (ot2 === 0) + break t; + ot2--, st2 += tt2[rt2++] << ut2, ut2 += 8; + } + if (st2 !== (65535 & r2.check)) { + t2.msg = "header crc mismatch", r2.mode = J; + break; + } + st2 = 0, ut2 = 0; + } + r2.head && (r2.head.hcrc = r2.flags >> 9 & 1, r2.head.done = true), t2.adler = r2.check = 0, r2.mode = L; + break; + case I: + for (; ut2 < 32; ) { + if (ot2 === 0) + break t; + ot2--, st2 += tt2[rt2++] << ut2, ut2 += 8; + } + t2.adler = r2.check = nt(st2), st2 = 0, ut2 = 0, r2.mode = B; + case B: + if (r2.havedict === 0) + return t2.next_out = it2, t2.avail_out = at2, t2.next_in = rt2, t2.avail_in = ot2, r2.hold = st2, r2.bits = ut2, g; + t2.adler = r2.check = 1, r2.mode = L; + case L: + if (e2 === l || e2 === d) + break t; + case P: + if (r2.last) { + st2 >>>= 7 & ut2, ut2 -= 7 & ut2, r2.mode = K; + break; + } + for (; ut2 < 3; ) { + if (ot2 === 0) + break t; + ot2--, st2 += tt2[rt2++] << ut2, ut2 += 8; + } + switch (r2.last = 1 & st2, ut2 -= 1, 3 & (st2 >>>= 1)) { + case 0: + r2.mode = z; + break; + case 1: + if (ht(r2), r2.mode = U, e2 === d) { + st2 >>>= 2, ut2 -= 2; + break t; + } + break; + case 2: + r2.mode = N; + break; + case 3: + t2.msg = "invalid block type", r2.mode = J; + } + st2 >>>= 2, ut2 -= 2; + break; + case z: + for (st2 >>>= 7 & ut2, ut2 -= 7 & ut2; ut2 < 32; ) { + if (ot2 === 0) + break t; + ot2--, st2 += tt2[rt2++] << ut2, ut2 += 8; + } + if ((65535 & st2) != (st2 >>> 16 ^ 65535)) { + t2.msg = "invalid stored block lengths", r2.mode = J; + break; + } + if (r2.length = 65535 & st2, st2 = 0, ut2 = 0, r2.mode = j, e2 === d) + break t; + case j: + r2.mode = D; + case D: + if (dt = r2.length) { + if (dt > ot2 && (dt = ot2), dt > at2 && (dt = at2), dt === 0) + break t; + n.arraySet(et2, tt2, rt2, dt, it2), ot2 -= dt, rt2 += dt, at2 -= dt, it2 += dt, r2.length -= dt; + break; + } + r2.mode = L; + break; + case N: + for (; ut2 < 14; ) { + if (ot2 === 0) + break t; + ot2--, st2 += tt2[rt2++] << ut2, ut2 += 8; + } + if (r2.nlen = 257 + (31 & st2), st2 >>>= 5, ut2 -= 5, r2.ndist = 1 + (31 & st2), st2 >>>= 5, ut2 -= 5, r2.ncode = 4 + (15 & st2), st2 >>>= 4, ut2 -= 4, r2.nlen > 286 || r2.ndist > 30) { + t2.msg = "too many length or distance symbols", r2.mode = J; + break; + } + r2.have = 0, r2.mode = M; + case M: + for (; r2.have < r2.ncode; ) { + for (; ut2 < 3; ) { + if (ot2 === 0) + break t; + ot2--, st2 += tt2[rt2++] << ut2, ut2 += 8; + } + r2.lens[Ct[r2.have++]] = 7 & st2, st2 >>>= 3, ut2 -= 3; + } + for (; r2.have < 19; ) + r2.lens[Ct[r2.have++]] = 0; + if (r2.lencode = r2.lendyn, r2.lenbits = 7, St = { bits: r2.lenbits }, kt = s(u, r2.lens, 0, 19, r2.lencode, 0, r2.work, St), r2.lenbits = St.bits, kt) { + t2.msg = "invalid code lengths set", r2.mode = J; + break; + } + r2.have = 0, r2.mode = F; + case F: + for (; r2.have < r2.nlen + r2.ndist; ) { + for (; vt = (At = r2.lencode[st2 & (1 << r2.lenbits) - 1]) >>> 16 & 255, yt = 65535 & At, !((gt = At >>> 24) <= ut2); ) { + if (ot2 === 0) + break t; + ot2--, st2 += tt2[rt2++] << ut2, ut2 += 8; + } + if (yt < 16) + st2 >>>= gt, ut2 -= gt, r2.lens[r2.have++] = yt; + else { + if (yt === 16) { + for (Et = gt + 2; ut2 < Et; ) { + if (ot2 === 0) + break t; + ot2--, st2 += tt2[rt2++] << ut2, ut2 += 8; + } + if (st2 >>>= gt, ut2 -= gt, r2.have === 0) { + t2.msg = "invalid bit length repeat", r2.mode = J; + break; + } + xt = r2.lens[r2.have - 1], dt = 3 + (3 & st2), st2 >>>= 2, ut2 -= 2; + } else if (yt === 17) { + for (Et = gt + 3; ut2 < Et; ) { + if (ot2 === 0) + break t; + ot2--, st2 += tt2[rt2++] << ut2, ut2 += 8; + } + ut2 -= gt, xt = 0, dt = 3 + (7 & (st2 >>>= gt)), st2 >>>= 3, ut2 -= 3; + } else { + for (Et = gt + 7; ut2 < Et; ) { + if (ot2 === 0) + break t; + ot2--, st2 += tt2[rt2++] << ut2, ut2 += 8; + } + ut2 -= gt, xt = 0, dt = 11 + (127 & (st2 >>>= gt)), st2 >>>= 7, ut2 -= 7; + } + if (r2.have + dt > r2.nlen + r2.ndist) { + t2.msg = "invalid bit length repeat", r2.mode = J; + break; + } + for (; dt--; ) + r2.lens[r2.have++] = xt; + } + } + if (r2.mode === J) + break; + if (r2.lens[256] === 0) { + t2.msg = "invalid code -- missing end-of-block", r2.mode = J; + break; + } + if (r2.lenbits = 9, St = { bits: r2.lenbits }, kt = s(f, r2.lens, 0, r2.nlen, r2.lencode, 0, r2.work, St), r2.lenbits = St.bits, kt) { + t2.msg = "invalid literal/lengths set", r2.mode = J; + break; + } + if (r2.distbits = 6, r2.distcode = r2.distdyn, St = { bits: r2.distbits }, kt = s(c, r2.lens, r2.nlen, r2.ndist, r2.distcode, 0, r2.work, St), r2.distbits = St.bits, kt) { + t2.msg = "invalid distances set", r2.mode = J; + break; + } + if (r2.mode = U, e2 === d) + break t; + case U: + r2.mode = W; + case W: + if (ot2 >= 6 && at2 >= 258) { + t2.next_out = it2, t2.avail_out = at2, t2.next_in = rt2, t2.avail_in = ot2, r2.hold = st2, r2.bits = ut2, a(t2, ct2), it2 = t2.next_out, et2 = t2.output, at2 = t2.avail_out, rt2 = t2.next_in, tt2 = t2.input, ot2 = t2.avail_in, st2 = r2.hold, ut2 = r2.bits, r2.mode === L && (r2.back = -1); + break; + } + for (r2.back = 0; vt = (At = r2.lencode[st2 & (1 << r2.lenbits) - 1]) >>> 16 & 255, yt = 65535 & At, !((gt = At >>> 24) <= ut2); ) { + if (ot2 === 0) + break t; + ot2--, st2 += tt2[rt2++] << ut2, ut2 += 8; + } + if (vt && (240 & vt) == 0) { + for (_t = gt, wt = vt, bt = yt; vt = (At = r2.lencode[bt + ((st2 & (1 << _t + wt) - 1) >> _t)]) >>> 16 & 255, yt = 65535 & At, !(_t + (gt = At >>> 24) <= ut2); ) { + if (ot2 === 0) + break t; + ot2--, st2 += tt2[rt2++] << ut2, ut2 += 8; + } + st2 >>>= _t, ut2 -= _t, r2.back += _t; + } + if (st2 >>>= gt, ut2 -= gt, r2.back += gt, r2.length = yt, vt === 0) { + r2.mode = G; + break; + } + if (32 & vt) { + r2.back = -1, r2.mode = L; + break; + } + if (64 & vt) { + t2.msg = "invalid literal/length code", r2.mode = J; + break; + } + r2.extra = 15 & vt, r2.mode = Z; + case Z: + if (r2.extra) { + for (Et = r2.extra; ut2 < Et; ) { + if (ot2 === 0) + break t; + ot2--, st2 += tt2[rt2++] << ut2, ut2 += 8; + } + r2.length += st2 & (1 << r2.extra) - 1, st2 >>>= r2.extra, ut2 -= r2.extra, r2.back += r2.extra; + } + r2.was = r2.length, r2.mode = Y; + case Y: + for (; vt = (At = r2.distcode[st2 & (1 << r2.distbits) - 1]) >>> 16 & 255, yt = 65535 & At, !((gt = At >>> 24) <= ut2); ) { + if (ot2 === 0) + break t; + ot2--, st2 += tt2[rt2++] << ut2, ut2 += 8; + } + if ((240 & vt) == 0) { + for (_t = gt, wt = vt, bt = yt; vt = (At = r2.distcode[bt + ((st2 & (1 << _t + wt) - 1) >> _t)]) >>> 16 & 255, yt = 65535 & At, !(_t + (gt = At >>> 24) <= ut2); ) { + if (ot2 === 0) + break t; + ot2--, st2 += tt2[rt2++] << ut2, ut2 += 8; + } + st2 >>>= _t, ut2 -= _t, r2.back += _t; + } + if (st2 >>>= gt, ut2 -= gt, r2.back += gt, 64 & vt) { + t2.msg = "invalid distance code", r2.mode = J; + break; + } + r2.offset = yt, r2.extra = 15 & vt, r2.mode = H; + case H: + if (r2.extra) { + for (Et = r2.extra; ut2 < Et; ) { + if (ot2 === 0) + break t; + ot2--, st2 += tt2[rt2++] << ut2, ut2 += 8; + } + r2.offset += st2 & (1 << r2.extra) - 1, st2 >>>= r2.extra, ut2 -= r2.extra, r2.back += r2.extra; + } + if (r2.offset > r2.dmax) { + t2.msg = "invalid distance too far back", r2.mode = J; + break; + } + r2.mode = q; + case q: + if (at2 === 0) + break t; + if (dt = ct2 - at2, r2.offset > dt) { + if ((dt = r2.offset - dt) > r2.whave && r2.sane) { + t2.msg = "invalid distance too far back", r2.mode = J; + break; + } + dt > r2.wnext ? (dt -= r2.wnext, pt = r2.wsize - dt) : pt = r2.wnext - dt, dt > r2.length && (dt = r2.length), mt = r2.window; + } else + mt = et2, pt = it2 - r2.offset, dt = r2.length; + dt > at2 && (dt = at2), at2 -= dt, r2.length -= dt; + do { + et2[it2++] = mt[pt++]; + } while (--dt); + r2.length === 0 && (r2.mode = W); + break; + case G: + if (at2 === 0) + break t; + et2[it2++] = r2.length, at2--, r2.mode = W; + break; + case K: + if (r2.wrap) { + for (; ut2 < 32; ) { + if (ot2 === 0) + break t; + ot2--, st2 |= tt2[rt2++] << ut2, ut2 += 8; + } + if (ct2 -= at2, t2.total_out += ct2, r2.total += ct2, ct2 && (t2.adler = r2.check = r2.flags ? o(r2.check, et2, ct2, it2 - ct2) : i(r2.check, et2, ct2, it2 - ct2)), ct2 = at2, (r2.flags ? st2 : nt(st2)) !== r2.check) { + t2.msg = "incorrect data check", r2.mode = J; + break; + } + st2 = 0, ut2 = 0; + } + r2.mode = V; + case V: + if (r2.wrap && r2.flags) { + for (; ut2 < 32; ) { + if (ot2 === 0) + break t; + ot2--, st2 += tt2[rt2++] << ut2, ut2 += 8; + } + if (st2 !== (4294967295 & r2.total)) { + t2.msg = "incorrect length check", r2.mode = J; + break; + } + st2 = 0, ut2 = 0; + } + r2.mode = X; + case X: + kt = m; + break t; + case J: + kt = y; + break t; + case $: + return _; + case Q: + default: + return v; + } + return t2.next_out = it2, t2.avail_out = at2, t2.next_in = rt2, t2.avail_in = ot2, r2.hold = st2, r2.bits = ut2, (r2.wsize || ct2 !== t2.avail_out && r2.mode < J && (r2.mode < K || e2 !== h)) && lt(t2, t2.output, t2.next_out, ct2 - t2.avail_out) ? (r2.mode = $, _) : (ft2 -= t2.avail_in, ct2 -= t2.avail_out, t2.total_in += ft2, t2.total_out += ct2, r2.total += ct2, r2.wrap && ct2 && (t2.adler = r2.check = r2.flags ? o(r2.check, et2, ct2, t2.next_out - ct2) : i(r2.check, et2, ct2, t2.next_out - ct2)), t2.data_type = r2.bits + (r2.last ? 64 : 0) + (r2.mode === L ? 128 : 0) + (r2.mode === U || r2.mode === j ? 256 : 0), (ft2 === 0 && ct2 === 0 || e2 === h) && kt === p && (kt = w), kt); + }, e.inflateEnd = function(t2) { + if (!t2 || !t2.state) + return v; + var e2 = t2.state; + return e2.window && (e2.window = null), t2.state = null, p; + }, e.inflateGetHeader = function(t2, e2) { + var r2; + return t2 && t2.state ? (2 & (r2 = t2.state).wrap) == 0 ? v : (r2.head = e2, e2.done = false, p) : v; + }, e.inflateSetDictionary = function(t2, e2) { + var r2, n2 = e2.length; + return t2 && t2.state ? (r2 = t2.state).wrap !== 0 && r2.mode !== B ? v : r2.mode === B && i(1, e2, n2, 0) !== r2.check ? y : lt(t2, e2, n2, n2) ? (r2.mode = $, _) : (r2.havedict = 1, p) : v; + }, e.inflateInfo = "pako inflate (from Nodeca project)"; + }, function(t, e, r) { + "use strict"; + t.exports = function(t2, e2) { + var r2, n, i, o, a, s, u, f, c, h, l, d, p, m, g, v, y, _, w, b, x, k, S, E, A; + r2 = t2.state, n = t2.next_in, E = t2.input, i = n + (t2.avail_in - 5), o = t2.next_out, A = t2.output, a = o - (e2 - t2.avail_out), s = o + (t2.avail_out - 257), u = r2.dmax, f = r2.wsize, c = r2.whave, h = r2.wnext, l = r2.window, d = r2.hold, p = r2.bits, m = r2.lencode, g = r2.distcode, v = (1 << r2.lenbits) - 1, y = (1 << r2.distbits) - 1; + t: + do { + p < 15 && (d += E[n++] << p, p += 8, d += E[n++] << p, p += 8), _ = m[d & v]; + e: + for (; ; ) { + if (d >>>= w = _ >>> 24, p -= w, (w = _ >>> 16 & 255) === 0) + A[o++] = 65535 & _; + else { + if (!(16 & w)) { + if ((64 & w) == 0) { + _ = m[(65535 & _) + (d & (1 << w) - 1)]; + continue e; + } + if (32 & w) { + r2.mode = 12; + break t; + } + t2.msg = "invalid literal/length code", r2.mode = 30; + break t; + } + b = 65535 & _, (w &= 15) && (p < w && (d += E[n++] << p, p += 8), b += d & (1 << w) - 1, d >>>= w, p -= w), p < 15 && (d += E[n++] << p, p += 8, d += E[n++] << p, p += 8), _ = g[d & y]; + r: + for (; ; ) { + if (d >>>= w = _ >>> 24, p -= w, !(16 & (w = _ >>> 16 & 255))) { + if ((64 & w) == 0) { + _ = g[(65535 & _) + (d & (1 << w) - 1)]; + continue r; + } + t2.msg = "invalid distance code", r2.mode = 30; + break t; + } + if (x = 65535 & _, p < (w &= 15) && (d += E[n++] << p, (p += 8) < w && (d += E[n++] << p, p += 8)), (x += d & (1 << w) - 1) > u) { + t2.msg = "invalid distance too far back", r2.mode = 30; + break t; + } + if (d >>>= w, p -= w, x > (w = o - a)) { + if ((w = x - w) > c && r2.sane) { + t2.msg = "invalid distance too far back", r2.mode = 30; + break t; + } + if (k = 0, S = l, h === 0) { + if (k += f - w, w < b) { + b -= w; + do { + A[o++] = l[k++]; + } while (--w); + k = o - x, S = A; + } + } else if (h < w) { + if (k += f + h - w, (w -= h) < b) { + b -= w; + do { + A[o++] = l[k++]; + } while (--w); + if (k = 0, h < b) { + b -= w = h; + do { + A[o++] = l[k++]; + } while (--w); + k = o - x, S = A; + } + } + } else if (k += h - w, w < b) { + b -= w; + do { + A[o++] = l[k++]; + } while (--w); + k = o - x, S = A; + } + for (; b > 2; ) + A[o++] = S[k++], A[o++] = S[k++], A[o++] = S[k++], b -= 3; + b && (A[o++] = S[k++], b > 1 && (A[o++] = S[k++])); + } else { + k = o - x; + do { + A[o++] = A[k++], A[o++] = A[k++], A[o++] = A[k++], b -= 3; + } while (b > 2); + b && (A[o++] = A[k++], b > 1 && (A[o++] = A[k++])); + } + break; + } + } + break; + } + } while (n < i && o < s); + n -= b = p >> 3, d &= (1 << (p -= b << 3)) - 1, t2.next_in = n, t2.next_out = o, t2.avail_in = n < i ? i - n + 5 : 5 - (n - i), t2.avail_out = o < s ? s - o + 257 : 257 - (o - s), r2.hold = d, r2.bits = p; + }; + }, function(t, e, r) { + "use strict"; + var n = r(8), i = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], o = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], a = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], s = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64]; + t.exports = function(t2, e2, r2, u, f, c, h, l) { + var d, p, m, g, v, y, _, w, b, x = l.bits, k = 0, S = 0, E = 0, A = 0, T = 0, C = 0, O = 0, R = 0, I = 0, B = 0, L = null, P = 0, z = new n.Buf16(16), j = new n.Buf16(16), D = null, N = 0; + for (k = 0; k <= 15; k++) + z[k] = 0; + for (S = 0; S < u; S++) + z[e2[r2 + S]]++; + for (T = x, A = 15; A >= 1 && z[A] === 0; A--) + ; + if (T > A && (T = A), A === 0) + return f[c++] = 20971520, f[c++] = 20971520, l.bits = 1, 0; + for (E = 1; E < A && z[E] === 0; E++) + ; + for (T < E && (T = E), R = 1, k = 1; k <= 15; k++) + if (R <<= 1, (R -= z[k]) < 0) + return -1; + if (R > 0 && (t2 === 0 || A !== 1)) + return -1; + for (j[1] = 0, k = 1; k < 15; k++) + j[k + 1] = j[k] + z[k]; + for (S = 0; S < u; S++) + e2[r2 + S] !== 0 && (h[j[e2[r2 + S]]++] = S); + if (t2 === 0 ? (L = D = h, y = 19) : t2 === 1 ? (L = i, P -= 257, D = o, N -= 257, y = 256) : (L = a, D = s, y = -1), B = 0, S = 0, k = E, v = c, C = T, O = 0, m = -1, g = (I = 1 << T) - 1, t2 === 1 && I > 852 || t2 === 2 && I > 592) + return 1; + for (; ; ) { + _ = k - O, h[S] < y ? (w = 0, b = h[S]) : h[S] > y ? (w = D[N + h[S]], b = L[P + h[S]]) : (w = 96, b = 0), d = 1 << k - O, E = p = 1 << C; + do { + f[v + (B >> O) + (p -= d)] = _ << 24 | w << 16 | b | 0; + } while (p !== 0); + for (d = 1 << k - 1; B & d; ) + d >>= 1; + if (d !== 0 ? (B &= d - 1, B += d) : B = 0, S++, --z[k] == 0) { + if (k === A) + break; + k = e2[r2 + h[S]]; + } + if (k > T && (B & g) !== m) { + for (O === 0 && (O = T), v += E, R = 1 << (C = k - O); C + O < A && !((R -= z[C + O]) <= 0); ) + C++, R <<= 1; + if (I += 1 << C, t2 === 1 && I > 852 || t2 === 2 && I > 592) + return 1; + f[m = B & g] = T << 24 | C << 16 | v - c | 0; + } + } + return B !== 0 && (f[v + B] = k - O << 24 | 64 << 16 | 0), l.bits = T, 0; + }; + }, function(t, e, r) { + "use strict"; + t.exports = function() { + this.text = 0, this.time = 0, this.xflags = 0, this.os = 0, this.extra = null, this.extra_len = 0, this.name = "", this.comment = "", this.hcrc = 0, this.done = false; + }; + }, function(t, e, r) { + "use strict"; + var n = r(0), i = r(3), o = r(17), a = r(55), s = r(96), u = function(t2, e2) { + var r2, n2 = ""; + for (r2 = 0; r2 < e2; r2++) + n2 += String.fromCharCode(255 & t2), t2 >>>= 8; + return n2; + }, f = function(t2, e2, r2, i2, f2, c2) { + var h, l, d = t2.file, p = t2.compression, m = c2 !== o.utf8encode, g = n.transformTo("string", c2(d.name)), v = n.transformTo("string", o.utf8encode(d.name)), y = d.comment, _ = n.transformTo("string", c2(y)), w = n.transformTo("string", o.utf8encode(y)), b = v.length !== d.name.length, x = w.length !== y.length, k = "", S = "", E = "", A = d.dir, T = d.date, C = { crc32: 0, compressedSize: 0, uncompressedSize: 0 }; + e2 && !r2 || (C.crc32 = t2.crc32, C.compressedSize = t2.compressedSize, C.uncompressedSize = t2.uncompressedSize); + var O = 0; + e2 && (O |= 8), m || !b && !x || (O |= 2048); + var R = 0, I = 0; + A && (R |= 16), f2 === "UNIX" ? (I = 798, R |= function(t3, e3) { + var r3 = t3; + return t3 || (r3 = e3 ? 16893 : 33204), (65535 & r3) << 16; + }(d.unixPermissions, A)) : (I = 20, R |= function(t3, e3) { + return 63 & (t3 || 0); + }(d.dosPermissions)), h = T.getUTCHours(), h <<= 6, h |= T.getUTCMinutes(), h <<= 5, h |= T.getUTCSeconds() / 2, l = T.getUTCFullYear() - 1980, l <<= 4, l |= T.getUTCMonth() + 1, l <<= 5, l |= T.getUTCDate(), b && (S = u(1, 1) + u(a(g), 4) + v, k += "up" + u(S.length, 2) + S), x && (E = u(1, 1) + u(a(_), 4) + w, k += "uc" + u(E.length, 2) + E); + var B = ""; + return B += "\n\0", B += u(O, 2), B += p.magic, B += u(h, 2), B += u(l, 2), B += u(C.crc32, 4), B += u(C.compressedSize, 4), B += u(C.uncompressedSize, 4), B += u(g.length, 2), B += u(k.length, 2), { fileRecord: s.LOCAL_FILE_HEADER + B + g + k, dirRecord: s.CENTRAL_FILE_HEADER + u(I, 2) + B + u(_.length, 2) + "\0\0\0\0" + u(R, 4) + u(i2, 4) + g + k + _ }; + }; + function c(t2, e2, r2, n2) { + i.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment = e2, this.zipPlatform = r2, this.encodeFileName = n2, this.streamFiles = t2, this.accumulate = false, this.contentBuffer = [], this.dirRecords = [], this.currentSourceOffset = 0, this.entriesCount = 0, this.currentFile = null, this._sources = []; + } + n.inherits(c, i), c.prototype.push = function(t2) { + var e2 = t2.meta.percent || 0, r2 = this.entriesCount, n2 = this._sources.length; + this.accumulate ? this.contentBuffer.push(t2) : (this.bytesWritten += t2.data.length, i.prototype.push.call(this, { data: t2.data, meta: { currentFile: this.currentFile, percent: r2 ? (e2 + 100 * (r2 - n2 - 1)) / r2 : 100 } })); + }, c.prototype.openedSource = function(t2) { + this.currentSourceOffset = this.bytesWritten, this.currentFile = t2.file.name; + var e2 = this.streamFiles && !t2.file.dir; + if (e2) { + var r2 = f(t2, e2, false, this.currentSourceOffset, this.zipPlatform, this.encodeFileName); + this.push({ data: r2.fileRecord, meta: { percent: 0 } }); + } else + this.accumulate = true; + }, c.prototype.closedSource = function(t2) { + this.accumulate = false; + var e2 = this.streamFiles && !t2.file.dir, r2 = f(t2, e2, true, this.currentSourceOffset, this.zipPlatform, this.encodeFileName); + if (this.dirRecords.push(r2.dirRecord), e2) + this.push({ data: function(t3) { + return s.DATA_DESCRIPTOR + u(t3.crc32, 4) + u(t3.compressedSize, 4) + u(t3.uncompressedSize, 4); + }(t2), meta: { percent: 100 } }); + else + for (this.push({ data: r2.fileRecord, meta: { percent: 0 } }); this.contentBuffer.length; ) + this.push(this.contentBuffer.shift()); + this.currentFile = null; + }, c.prototype.flush = function() { + for (var t2 = this.bytesWritten, e2 = 0; e2 < this.dirRecords.length; e2++) + this.push({ data: this.dirRecords[e2], meta: { percent: 100 } }); + var r2 = this.bytesWritten - t2, i2 = function(t3, e3, r3, i3, o2) { + var a2 = n.transformTo("string", o2(i3)); + return s.CENTRAL_DIRECTORY_END + "\0\0\0\0" + u(t3, 2) + u(t3, 2) + u(e3, 4) + u(r3, 4) + u(a2.length, 2) + a2; + }(this.dirRecords.length, r2, t2, this.zipComment, this.encodeFileName); + this.push({ data: i2, meta: { percent: 100 } }); + }, c.prototype.prepareNextSource = function() { + this.previous = this._sources.shift(), this.openedSource(this.previous.streamInfo), this.isPaused ? this.previous.pause() : this.previous.resume(); + }, c.prototype.registerPrevious = function(t2) { + this._sources.push(t2); + var e2 = this; + return t2.on("data", function(t3) { + e2.processChunk(t3); + }), t2.on("end", function() { + e2.closedSource(e2.previous.streamInfo), e2._sources.length ? e2.prepareNextSource() : e2.end(); + }), t2.on("error", function(t3) { + e2.error(t3); + }), this; + }, c.prototype.resume = function() { + return !!i.prototype.resume.call(this) && (!this.previous && this._sources.length ? (this.prepareNextSource(), true) : this.previous || this._sources.length || this.generatedError ? void 0 : (this.end(), true)); + }, c.prototype.error = function(t2) { + var e2 = this._sources; + if (!i.prototype.error.call(this, t2)) + return false; + for (var r2 = 0; r2 < e2.length; r2++) + try { + e2[r2].error(t2); + } catch (t3) { + } + return true; + }, c.prototype.lock = function() { + i.prototype.lock.call(this); + for (var t2 = this._sources, e2 = 0; e2 < t2.length; e2++) + t2[e2].lock(); + }, t.exports = c; + }, function(t, e, r) { + "use strict"; + var n = r(0), i = r(3); + function o(t2, e2) { + i.call(this, "Nodejs stream input adapter for " + t2), this._upstreamEnded = false, this._bindStream(e2); + } + n.inherits(o, i), o.prototype._bindStream = function(t2) { + var e2 = this; + this._stream = t2, t2.pause(), t2.on("data", function(t3) { + e2.push({ data: t3, meta: { percent: 0 } }); + }).on("error", function(t3) { + e2.isPaused ? this.generatedError = t3 : e2.error(t3); + }).on("end", function() { + e2.isPaused ? e2._upstreamEnded = true : e2.end(); + }); + }, o.prototype.pause = function() { + return !!i.prototype.pause.call(this) && (this._stream.pause(), true); + }, o.prototype.resume = function() { + return !!i.prototype.resume.call(this) && (this._upstreamEnded ? this.end() : this._stream.resume(), true); + }, t.exports = o; + }, function(t, e, r) { + "use strict"; + var n = r(0), i = r(25), o = r(17), a = (n = r(0), r(196)), s = r(89), u = r(36); + function f(t2) { + return new i.Promise(function(e2, r2) { + var n2 = t2.decompressed.getContentWorker().pipe(new s()); + n2.on("error", function(t3) { + r2(t3); + }).on("end", function() { + n2.streamInfo.crc32 !== t2.decompressed.crc32 ? r2(new Error("Corrupted zip : CRC32 mismatch")) : e2(); + }).resume(); + }); + } + t.exports = function(t2, e2) { + var r2 = this; + return e2 = n.extend(e2 || {}, { base64: false, checkCRC32: false, optimizedBinaryString: false, createFolders: false, decodeFileName: o.utf8decode }), u.isNode && u.isStream(t2) ? i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) : n.prepareContent("the loaded zip file", t2, true, e2.optimizedBinaryString, e2.base64).then(function(t3) { + var r3 = new a(e2); + return r3.load(t3), r3; + }).then(function(t3) { + var r3 = [i.Promise.resolve(t3)], n2 = t3.files; + if (e2.checkCRC32) + for (var o2 = 0; o2 < n2.length; o2++) + r3.push(f(n2[o2])); + return i.Promise.all(r3); + }).then(function(t3) { + for (var n2 = t3.shift(), i2 = n2.files, o2 = 0; o2 < i2.length; o2++) { + var a2 = i2[o2]; + r2.file(a2.fileNameStr, a2.decompressed, { binary: true, optimizedBinaryString: true, date: a2.date, dir: a2.dir, comment: a2.fileCommentStr.length ? a2.fileCommentStr : null, unixPermissions: a2.unixPermissions, dosPermissions: a2.dosPermissions, createFolders: e2.createFolders }); + } + return n2.zipComment.length && (r2.comment = n2.zipComment), r2; + }); + }; + }, function(t, e, r) { + "use strict"; + var n = r(97), i = r(0), o = r(96), a = r(199), s = (r(17), r(7)); + function u(t2) { + this.files = [], this.loadOptions = t2; + } + u.prototype = { checkSignature: function(t2) { + if (!this.reader.readAndCheckSignature(t2)) { + this.reader.index -= 4; + var e2 = this.reader.readString(4); + throw new Error("Corrupted zip or bug: unexpected signature (" + i.pretty(e2) + ", expected " + i.pretty(t2) + ")"); + } + }, isSignature: function(t2, e2) { + var r2 = this.reader.index; + this.reader.setIndex(t2); + var n2 = this.reader.readString(4) === e2; + return this.reader.setIndex(r2), n2; + }, readBlockEndOfCentral: function() { + this.diskNumber = this.reader.readInt(2), this.diskWithCentralDirStart = this.reader.readInt(2), this.centralDirRecordsOnThisDisk = this.reader.readInt(2), this.centralDirRecords = this.reader.readInt(2), this.centralDirSize = this.reader.readInt(4), this.centralDirOffset = this.reader.readInt(4), this.zipCommentLength = this.reader.readInt(2); + var t2 = this.reader.readData(this.zipCommentLength), e2 = s.uint8array ? "uint8array" : "array", r2 = i.transformTo(e2, t2); + this.zipComment = this.loadOptions.decodeFileName(r2); + }, readBlockZip64EndOfCentral: function() { + this.zip64EndOfCentralSize = this.reader.readInt(8), this.reader.skip(4), this.diskNumber = this.reader.readInt(4), this.diskWithCentralDirStart = this.reader.readInt(4), this.centralDirRecordsOnThisDisk = this.reader.readInt(8), this.centralDirRecords = this.reader.readInt(8), this.centralDirSize = this.reader.readInt(8), this.centralDirOffset = this.reader.readInt(8), this.zip64ExtensibleData = {}; + for (var t2, e2, r2, n2 = this.zip64EndOfCentralSize - 44; 0 < n2; ) + t2 = this.reader.readInt(2), e2 = this.reader.readInt(4), r2 = this.reader.readData(e2), this.zip64ExtensibleData[t2] = { id: t2, length: e2, value: r2 }; + }, readBlockZip64EndOfCentralLocator: function() { + if (this.diskWithZip64CentralDirStart = this.reader.readInt(4), this.relativeOffsetEndOfZip64CentralDir = this.reader.readInt(8), this.disksCount = this.reader.readInt(4), this.disksCount > 1) + throw new Error("Multi-volumes zip are not supported"); + }, readLocalFiles: function() { + var t2, e2; + for (t2 = 0; t2 < this.files.length; t2++) + e2 = this.files[t2], this.reader.setIndex(e2.localHeaderOffset), this.checkSignature(o.LOCAL_FILE_HEADER), e2.readLocalPart(this.reader), e2.handleUTF8(), e2.processAttributes(); + }, readCentralDir: function() { + var t2; + for (this.reader.setIndex(this.centralDirOffset); this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER); ) + (t2 = new a({ zip64: this.zip64 }, this.loadOptions)).readCentralPart(this.reader), this.files.push(t2); + if (this.centralDirRecords !== this.files.length && this.centralDirRecords !== 0 && this.files.length === 0) + throw new Error("Corrupted zip or bug: expected " + this.centralDirRecords + " records in central dir, got " + this.files.length); + }, readEndOfCentral: function() { + var t2 = this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END); + if (t2 < 0) + throw !this.isSignature(0, o.LOCAL_FILE_HEADER) ? new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html") : new Error("Corrupted zip: can't find end of central directory"); + this.reader.setIndex(t2); + var e2 = t2; + if (this.checkSignature(o.CENTRAL_DIRECTORY_END), this.readBlockEndOfCentral(), this.diskNumber === i.MAX_VALUE_16BITS || this.diskWithCentralDirStart === i.MAX_VALUE_16BITS || this.centralDirRecordsOnThisDisk === i.MAX_VALUE_16BITS || this.centralDirRecords === i.MAX_VALUE_16BITS || this.centralDirSize === i.MAX_VALUE_32BITS || this.centralDirOffset === i.MAX_VALUE_32BITS) { + if (this.zip64 = true, (t2 = this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR)) < 0) + throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator"); + if (this.reader.setIndex(t2), this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR), this.readBlockZip64EndOfCentralLocator(), !this.isSignature(this.relativeOffsetEndOfZip64CentralDir, o.ZIP64_CENTRAL_DIRECTORY_END) && (this.relativeOffsetEndOfZip64CentralDir = this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END), this.relativeOffsetEndOfZip64CentralDir < 0)) + throw new Error("Corrupted zip: can't find the ZIP64 end of central directory"); + this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir), this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END), this.readBlockZip64EndOfCentral(); + } + var r2 = this.centralDirOffset + this.centralDirSize; + this.zip64 && (r2 += 20, r2 += 12 + this.zip64EndOfCentralSize); + var n2 = e2 - r2; + if (n2 > 0) + this.isSignature(e2, o.CENTRAL_FILE_HEADER) || (this.reader.zero = n2); + else if (n2 < 0) + throw new Error("Corrupted zip: missing " + Math.abs(n2) + " bytes."); + }, prepareReader: function(t2) { + this.reader = n(t2); + }, load: function(t2) { + this.prepareReader(t2), this.readEndOfCentral(), this.readCentralDir(), this.readLocalFiles(); + } }, t.exports = u; + }, function(t, e, r) { + "use strict"; + var n = r(99); + function i(t2) { + n.call(this, t2); + } + r(0).inherits(i, n), i.prototype.byteAt = function(t2) { + return this.data.charCodeAt(this.zero + t2); + }, i.prototype.lastIndexOfSignature = function(t2) { + return this.data.lastIndexOf(t2) - this.zero; + }, i.prototype.readAndCheckSignature = function(t2) { + return t2 === this.readData(4); + }, i.prototype.readData = function(t2) { + this.checkOffset(t2); + var e2 = this.data.slice(this.zero + this.index, this.zero + this.index + t2); + return this.index += t2, e2; + }, t.exports = i; + }, function(t, e, r) { + "use strict"; + var n = r(100); + function i(t2) { + n.call(this, t2); + } + r(0).inherits(i, n), i.prototype.readData = function(t2) { + this.checkOffset(t2); + var e2 = this.data.slice(this.zero + this.index, this.zero + this.index + t2); + return this.index += t2, e2; + }, t.exports = i; + }, function(t, e, r) { + "use strict"; + var n = r(97), i = r(0), o = r(54), a = r(55), s = r(17), u = r(90), f = r(7); + function c(t2, e2) { + this.options = t2, this.loadOptions = e2; + } + c.prototype = { isEncrypted: function() { + return (1 & this.bitFlag) == 1; + }, useUTF8: function() { + return (2048 & this.bitFlag) == 2048; + }, readLocalPart: function(t2) { + var e2, r2; + if (t2.skip(22), this.fileNameLength = t2.readInt(2), r2 = t2.readInt(2), this.fileName = t2.readData(this.fileNameLength), t2.skip(r2), this.compressedSize === -1 || this.uncompressedSize === -1) + throw new Error("Bug or corrupted zip : didn't get enough informations from the central directory (compressedSize === -1 || uncompressedSize === -1)"); + if ((e2 = function(t3) { + for (var e3 in u) + if (u.hasOwnProperty(e3) && u[e3].magic === t3) + return u[e3]; + return null; + }(this.compressionMethod)) === null) + throw new Error("Corrupted zip : compression " + i.pretty(this.compressionMethod) + " unknown (inner file : " + i.transformTo("string", this.fileName) + ")"); + this.decompressed = new o(this.compressedSize, this.uncompressedSize, this.crc32, e2, t2.readData(this.compressedSize)); + }, readCentralPart: function(t2) { + this.versionMadeBy = t2.readInt(2), t2.skip(2), this.bitFlag = t2.readInt(2), this.compressionMethod = t2.readString(2), this.date = t2.readDate(), this.crc32 = t2.readInt(4), this.compressedSize = t2.readInt(4), this.uncompressedSize = t2.readInt(4); + var e2 = t2.readInt(2); + if (this.extraFieldsLength = t2.readInt(2), this.fileCommentLength = t2.readInt(2), this.diskNumberStart = t2.readInt(2), this.internalFileAttributes = t2.readInt(2), this.externalFileAttributes = t2.readInt(4), this.localHeaderOffset = t2.readInt(4), this.isEncrypted()) + throw new Error("Encrypted zip are not supported"); + t2.skip(e2), this.readExtraFields(t2), this.parseZIP64ExtraField(t2), this.fileComment = t2.readData(this.fileCommentLength); + }, processAttributes: function() { + this.unixPermissions = null, this.dosPermissions = null; + var t2 = this.versionMadeBy >> 8; + this.dir = !!(16 & this.externalFileAttributes), t2 === 0 && (this.dosPermissions = 63 & this.externalFileAttributes), t2 === 3 && (this.unixPermissions = this.externalFileAttributes >> 16 & 65535), this.dir || this.fileNameStr.slice(-1) !== "/" || (this.dir = true); + }, parseZIP64ExtraField: function(t2) { + if (this.extraFields[1]) { + var e2 = n(this.extraFields[1].value); + this.uncompressedSize === i.MAX_VALUE_32BITS && (this.uncompressedSize = e2.readInt(8)), this.compressedSize === i.MAX_VALUE_32BITS && (this.compressedSize = e2.readInt(8)), this.localHeaderOffset === i.MAX_VALUE_32BITS && (this.localHeaderOffset = e2.readInt(8)), this.diskNumberStart === i.MAX_VALUE_32BITS && (this.diskNumberStart = e2.readInt(4)); + } + }, readExtraFields: function(t2) { + var e2, r2, n2, i2 = t2.index + this.extraFieldsLength; + for (this.extraFields || (this.extraFields = {}); t2.index < i2; ) + e2 = t2.readInt(2), r2 = t2.readInt(2), n2 = t2.readData(r2), this.extraFields[e2] = { id: e2, length: r2, value: n2 }; + }, handleUTF8: function() { + var t2 = f.uint8array ? "uint8array" : "array"; + if (this.useUTF8()) + this.fileNameStr = s.utf8decode(this.fileName), this.fileCommentStr = s.utf8decode(this.fileComment); + else { + var e2 = this.findExtraFieldUnicodePath(); + if (e2 !== null) + this.fileNameStr = e2; + else { + var r2 = i.transformTo(t2, this.fileName); + this.fileNameStr = this.loadOptions.decodeFileName(r2); + } + var n2 = this.findExtraFieldUnicodeComment(); + if (n2 !== null) + this.fileCommentStr = n2; + else { + var o2 = i.transformTo(t2, this.fileComment); + this.fileCommentStr = this.loadOptions.decodeFileName(o2); + } + } + }, findExtraFieldUnicodePath: function() { + var t2 = this.extraFields[28789]; + if (t2) { + var e2 = n(t2.value); + return e2.readInt(1) !== 1 ? null : a(this.fileName) !== e2.readInt(4) ? null : s.utf8decode(e2.readData(t2.length - 5)); + } + return null; + }, findExtraFieldUnicodeComment: function() { + var t2 = this.extraFields[25461]; + if (t2) { + var e2 = n(t2.value); + return e2.readInt(1) !== 1 ? null : a(this.fileComment) !== e2.readInt(4) ? null : s.utf8decode(e2.readData(t2.length - 5)); + } + return null; + } }, t.exports = c; + }, function(t, e, r) { + var n, i = i || function(t2) { + "use strict"; + if (!(t2 === void 0 || typeof navigator != "undefined" && /MSIE [1-9]\./.test(navigator.userAgent))) { + var e2 = function() { + return t2.URL || t2.webkitURL || t2; + }, r2 = t2.document.createElementNS("http://www.w3.org/1999/xhtml", "a"), n2 = "download" in r2, i2 = /constructor/i.test(t2.HTMLElement) || t2.safari, o = /CriOS\/[\d]+/.test(navigator.userAgent), a = function(e3) { + (t2.setImmediate || t2.setTimeout)(function() { + throw e3; + }, 0); + }, s = function(t3) { + setTimeout(function() { + typeof t3 == "string" ? e2().revokeObjectURL(t3) : t3.remove(); + }, 4e4); + }, u = function(t3) { + return /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t3.type) ? new Blob([String.fromCharCode(65279), t3], { type: t3.type }) : t3; + }, f = function(f2, c2, h) { + h || (f2 = u(f2)); + var l, d = this, p = f2.type === "application/octet-stream", m = function() { + !function(t3, e3, r3) { + for (var n3 = (e3 = [].concat(e3)).length; n3--; ) { + var i3 = t3["on" + e3[n3]]; + if (typeof i3 == "function") + try { + i3.call(t3, r3 || t3); + } catch (t4) { + a(t4); + } + } + }(d, "writestart progress write writeend".split(" ")); + }; + if (d.readyState = d.INIT, n2) + return l = e2().createObjectURL(f2), void setTimeout(function() { + r2.href = l, r2.download = c2, function(t3) { + var e3 = new MouseEvent("click"); + t3.dispatchEvent(e3); + }(r2), m(), s(l), d.readyState = d.DONE; + }); + !function() { + if ((o || p && i2) && t2.FileReader) { + var r3 = new FileReader(); + return r3.onloadend = function() { + var e3 = o ? r3.result : r3.result.replace(/^data:[^;]*;/, "data:attachment/file;"); + t2.open(e3, "_blank") || (t2.location.href = e3), e3 = void 0, d.readyState = d.DONE, m(); + }, r3.readAsDataURL(f2), void (d.readyState = d.INIT); + } + l || (l = e2().createObjectURL(f2)), p ? t2.location.href = l : t2.open(l, "_blank") || (t2.location.href = l); + d.readyState = d.DONE, m(), s(l); + }(); + }, c = f.prototype; + return typeof navigator != "undefined" && navigator.msSaveOrOpenBlob ? function(t3, e3, r3) { + return e3 = e3 || t3.name || "download", r3 || (t3 = u(t3)), navigator.msSaveOrOpenBlob(t3, e3); + } : (c.abort = function() { + }, c.readyState = c.INIT = 0, c.WRITING = 1, c.DONE = 2, c.error = c.onwritestart = c.onprogress = c.onwrite = c.onabort = c.onerror = c.onwriteend = null, function(t3, e3, r3) { + return new f(t3, e3 || t3.name || "download", r3); + }); + } + }(typeof self != "undefined" && self || typeof window != "undefined" && window || this.content); + t !== void 0 && t.exports ? t.exports.saveAs = i : r(201) !== null && r(202) !== null && ((n = function() { + return i; + }.call(e, r, e, t)) === void 0 || (t.exports = n)); + }, function(t, e) { + t.exports = function() { + throw new Error("define cannot be used indirect"); + }; + }, function(t, e) { + (function(e2) { + t.exports = e2; + }).call(this, {}); + }]); + }); + } + }); + + // server/web/source/node_modules/grapesjs-rulers/dist/grapesjs-rulers.min.js + var require_grapesjs_rulers_min = __commonJS({ + "server/web/source/node_modules/grapesjs-rulers/dist/grapesjs-rulers.min.js"(exports, module) { + !function(e, t) { + typeof exports == "object" && typeof module == "object" ? module.exports = t() : typeof define == "function" && define.amd ? define([], t) : typeof exports == "object" ? exports["grapesjs-rulers"] = t() : e["grapesjs-rulers"] = t(); + }(window, function() { + return function(e) { + var t = {}; + function n(i) { + if (t[i]) + return t[i].exports; + var r = t[i] = { i, l: false, exports: {} }; + return e[i].call(r.exports, r, r.exports, n), r.l = true, r.exports; + } + return n.m = e, n.c = t, n.d = function(e2, t2, i) { + n.o(e2, t2) || Object.defineProperty(e2, t2, { enumerable: true, get: i }); + }, n.r = function(e2) { + typeof Symbol != "undefined" && Symbol.toStringTag && Object.defineProperty(e2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e2, "__esModule", { value: true }); + }, n.t = function(e2, t2) { + if (1 & t2 && (e2 = n(e2)), 8 & t2) + return e2; + if (4 & t2 && typeof e2 == "object" && e2 && e2.__esModule) + return e2; + var i = /* @__PURE__ */ Object.create(null); + if (n.r(i), Object.defineProperty(i, "default", { enumerable: true, value: e2 }), 2 & t2 && typeof e2 != "string") + for (var r in e2) + n.d(i, r, function(t3) { + return e2[t3]; + }.bind(null, r)); + return i; + }, n.n = function(e2) { + var t2 = e2 && e2.__esModule ? function() { + return e2["default"]; + } : function() { + return e2; + }; + return n.d(t2, "a", t2), t2; + }, n.o = function(e2, t2) { + return Object.prototype.hasOwnProperty.call(e2, t2); + }, n.p = "", n(n.s = 3); + }([function(e, t) { + e.exports = function(e2, t2, n) { + return t2 in e2 ? Object.defineProperty(e2, t2, { value: n, enumerable: true, configurable: true, writable: true }) : e2[t2] = n, e2; + }; + }, function(e, t) { + e.exports = function(e2, t2) { + if (!(e2 instanceof t2)) + throw new TypeError("Cannot call a class as a function"); + }; + }, function(e, t) { + function n(e2, t2) { + for (var n2 = 0; n2 < t2.length; n2++) { + var i = t2[n2]; + i.enumerable = i.enumerable || false, i.configurable = true, "value" in i && (i.writable = true), Object.defineProperty(e2, i.key, i); + } + } + e.exports = function(e2, t2, i) { + return t2 && n(e2.prototype, t2), i && n(e2, i), e2; + }; + }, function(e, t, n) { + "use strict"; + n.r(t); + var i = n(0), r = n.n(i), o = n(1), s = n.n(o), l = n(2), a = n.n(l), u = function() { + function e2() { + var t2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; + s()(this, e2), this.api = this.builder(), this.utils = c, this.canvasPointerEvents = t2.canvas.style.pointerEvents, this.options = t2, this.api.constructRulers(t2); + } + return a()(e2, [{ key: "builder", value: function() { + var e3, t2 = this, n2 = 1, i2 = 2, r2 = 0, o2 = 0, s2 = 0, l2 = 0, a2 = 1, u2 = {}, c2 = [], d2 = document.createElement("div"), f2 = [], p = { rulerHeight: 15, fontFamily: "arial", fontSize: "8px", strokeStyle: "gray", sides: ["top", "left"], cornerSides: ["TL"], lineWidth: 1, enableMouseTracking: true, enableToolTip: true }, v = function(e4, n3) { + switch (e4.canvas.style.left = t2.utils.pixelize(-(e4.canvas.width / 2 - e4.canvas.height)), n3) { + case "top": + e4.orgPos = parseInt(e4.canvas.style.left); + break; + case "left": + e4.canvas.style.top = t2.utils.pixelize(-e4.canvas.height - 1), e4.orgPos = parseInt(e4.canvas.style.top), function(e5, n4) { + var i3 = "rotate(" + n4 + "deg)", r3 = t2.utils.pixelize(Math.abs(parseInt(e5.canvas.style.left))) + " 100%"; + e5.canvas.style.webkitTransform = i3, e5.canvas.style.MozTransform = i3, e5.canvas.style.OTransform = i3, e5.canvas.style.msTransform = i3, e5.canvas.style.transform = i3, e5.canvas.style.webkitTransformOrigin = r3, e5.canvas.style.MozTransformOrigin = r3, e5.canvas.style.OTransformOrigin = r3, e5.canvas.style.msTransformOrigin = r3, e5.canvas.style.transformOrigin = r3; + }(e4, 90); + } + }, g = function(i3, u3, f3, p2, v2) { + var g2, y2 = document.createElement("div"), h2 = i3 === n2 ? "rul_lineVer" : "rul_lineHor", m2 = i3 === n2 ? r2 : o2; + y2.title = "Double click to delete", y2.dataset.id = c2.length, t2.utils.addClasss(y2, ["rul_line", h2]), y2 = d2.appendChild(y2), i3 === n2 ? (y2.style.left = t2.utils.pixelize(u3 - e3.container.getBoundingClientRect().left), v2 && (y2.style.left = t2.utils.pixelize(Math.round(u3 / a2 + e3.rulerHeight - s2)))) : (y2.style.top = t2.utils.pixelize(f3 - e3.container.getBoundingClientRect().top), v2 && (y2.style.top = t2.utils.pixelize(Math.round(f3 / a2 + e3.rulerHeight - l2)))), c2.push({ dimension: i3, line: t2.guideLine(y2, e3.container.querySelector(".rul_wrapper"), i3, e3, m2, function(t3, i4, r3) { + var o3 = t3.dimension === n2 ? i4 : r3; + t3.assigned() ? o3 < e3.rulerHeight && (c2.some(function(e4, n3) { + if (e4.line === t3) + return g2 = n3, true; + }), t3.destroy(), c2.splice(g2, 1)) : o3 > e3.rulerHeight && t3.assigned(true); + }, p2, a2) }); + }, y = function(r3, o3) { + var s3, l3, a3, c3 = o3 === "left" || o3 === "right" ? n2 : i2, d3 = c3 === n2 ? "rul_ruler_Vertical" : "rul_ruler_Horizontal", f3 = document.createElement("canvas"); + t2.utils.addClasss(f3, ["rul_ruler", d3, "rul_align_" + o3]), s3 = r3.appendChild(f3), u2[o3] = t2.rulerConstructor(s3, e3, c3), u2[o3].drawRuler(r3.offsetWidth, e3.rulerHeight), v(u2[o3], o3), l3 = u2[o3], a3 = function(e4) { + g(l3.dimension, e4.clientX, e4.clientY, e4); + }, l3.canvas.addEventListener("mousedown", a3), l3.clearListeners = function() { + l3.canvas.removeEventListener("mousedown", a3); + }; + }, h = function() { + function n3(e4) { + e4.stopPropagation(), x(); + } + return function(i3, r3) { + r3.forEach(function(r4) { + var o3 = function(n4, i4) { + var r5 = document.createElement("div"), o4 = "rul_corner" + i4.toUpperCase(); + return r5.title = "Clear Guide lines", t2.utils.addClasss(r5, ["rul_corner", o4, e3.cornerIcon]), r5.style.width = t2.utils.pixelize(e3.rulerHeight + 1), r5.style.height = t2.utils.pixelize(e3.rulerHeight), r5.style.lineHeight = t2.utils.pixelize(e3.rulerHeight), n4.appendChild(r5); + }(i3, r4); + o3.addEventListener("mousedown", n3), o3.destroy = function() { + o3.removeEventListener("mousedown", n3), o3.parentNode.removeChild(o3); + }, f2.push(o3); + }); + }; + }(), m = function(e4) { + c2.forEach(function(e5) { + e5.line.stopDrag(); + }); + }, b = function(e4) { + var t3 = 0; + for (var n3 in u2) + u2.hasOwnProperty(n3) && e4(u2[n3], t3++); + }, x = function() { + c2.forEach(function(e4) { + e4.line.destroy(); + }), c2 = []; + }; + return { VERTICAL: n2, HORIZONTAL: i2, getPos: function() { + return { x: r2, y: o2 }; + }, setPos: function(e4) { + var s3, l3 = 0, a3 = 0, u3 = 0; + b(function(i3) { + i3.dimension === n2 ? (s3 = i3.canvas.style.top, i3.canvas.style.top = t2.utils.pixelize(i3.orgPos + parseInt(e4.y)), u3 = parseInt(s3) - parseInt(i3.canvas.style.top)) : (l3 = i3.canvas.style.left, i3.canvas.style.left = t2.utils.pixelize(i3.orgPos + parseInt(e4.x)), a3 = parseInt(l3) - parseInt(i3.canvas.style.left)); + }), c2.forEach(function(n3) { + n3.dimension === i2 ? (n3.line.guideLine.style.top = t2.utils.pixelize(parseInt(n3.line.guideLine.style.top) - u3), n3.line.curPosDelta(parseInt(e4.y))) : (n3.line.guideLine.style.left = t2.utils.pixelize(parseInt(n3.line.guideLine.style.left) - a3), n3.line.curPosDelta(parseInt(e4.x))); + }), r2 = parseInt(e4.x), o2 = parseInt(e4.y); + }, setScroll: function(e4) { + s2 = e4.x, l2 = e4.y; + }, setScale: function(n3) { + var s3, l3, u3; + b(function(e4) { + e4.context.clearRect(0, 0, e4.canvas.width, e4.canvas.height), e4.context.beginPath(), e4.setScale(n3), e4.context.stroke(), a2 = n3; + }), c2.forEach(function(a3) { + a3.dimension === i2 ? (s3 = parseInt(a3.line.guideLine.style.top), l3 = e3.rulerHeight + 1, u3 = parseFloat(n3) / a3.line.curScale(), a3.line.guideLine.style.top = t2.utils.pixelize((s3 - l3 - o2) / u3 + l3 + o2), a3.line.curScale(n3)) : (s3 = parseInt(a3.line.guideLine.style.left), l3 = e3.rulerHeight + 1, u3 = parseFloat(n3) / a3.line.curScale(), a3.line.guideLine.style.left = t2.utils.pixelize((s3 - l3 - r2) / u3 + l3 + r2), a3.line.curScale(n3)); + }); + }, clearGuides: x, removeGuide: function(e4) { + var t3 = c2.length - 1, n3 = [c2[t3], c2[e4]]; + c2[e4] = n3[0], c2[t3] = n3[1], c2.pop(); + }, getGuides: function() { + return c2.map(function(t3) { + return { posX: Math.round((parseInt(t3.line.guideLine.style.left) - e3.rulerHeight + s2) * a2), posY: Math.round((parseInt(t3.line.guideLine.style.top) - e3.rulerHeight + l2) * a2), dimension: t3.dimension }; + }); + }, setGuides: function(e4) { + e4 && e4.length && e4.forEach(function(e5) { + g(e5.dimension, e5.posX, e5.posY, null, true); + }); + }, constructRulers: function(n3) { + d2 = t2.utils.addClasss(d2, "rul_wrapper"), e3 = t2.utils.extend(p, n3), d2 = e3.container.appendChild(d2), e3.sides.forEach(function(e4) { + y(d2, e4); + }), h(d2, e3.cornerSides), e3.container.addEventListener("mouseup", m); + }, toggleRulerVisibility: function(t3) { + var n3 = t3 ? "block" : "none"; + d2.style.display = n3; + var i3 = e3.container.querySelectorAll(".rul_tracker"); + i3.length > 0 && (i3[0].style.display = n3, i3[1].style.display = n3); + }, toggleGuideVisibility: function(e4) { + var t3 = e4 ? "show" : "hide"; + c2.forEach(function(e5) { + e5.line[t3](); + }); + }, destroy: function() { + x(), b(function(e4) { + e4.destroy(); + }), f2.forEach(function(e4) { + e4.destroy(); + }), e3.container.removeEventListener("mouseup", m), d2.parentNode.removeChild(d2); + } }; + } }, { key: "rulerConstructor", value: function(e3, t2, n2) { + var i2 = this, r2 = e3, o2 = r2.getContext("2d"), s2 = 0, l2 = 0, a2 = 1, u2 = n2 || 2, c2 = document.createElement("div"), d2 = function() { + return a2; + }, f2 = function() { + for (var e4 = 0, t3 = "", n3 = 0, i3 = false, r3 = 0, u3 = s2 / 2, c3 = s2 / 2, d3 = 0; d3 <= l2; d3 += 1) + i3 = false, t3 = "", (n3 = l2 / 2 - d3) % 50 == 0 ? (e4 = r3, t3 = Math.round(Math.abs(n3) * a2), i3 = true) : n3 % 25 == 0 ? (e4 = u3, i3 = true) : n3 % 5 == 0 && (e4 = c3, i3 = true), i3 && (o2.moveTo(d3 + 0.5, s2 + 0.5), o2.lineTo(d3 + 0.5, e4 + 0.5), o2.fillText(t3, d3 + 1.5, s2 / 2 + 1)); + }, p = function(e4) { + var n3 = e4.clientX, r3 = e4.clientY; + if (e4.target.tagName === "IFRAME") { + var o3 = Math.pow(d2(), -1); + n3 = n3 * o3 + e4.target.getBoundingClientRect().left, r3 = r3 * o3 + e4.target.getBoundingClientRect().top; + } + u2 === 2 ? c2.style.left = i2.utils.pixelize(n3 - t2.container.getBoundingClientRect().left) : c2.style.top = i2.utils.pixelize(r3 - t2.container.getBoundingClientRect().top); + }; + return t2.enableMouseTracking && function() { + c2 = t2.container.appendChild(c2), i2.utils.addClasss(c2, "rul_tracker"); + var e4 = i2.utils.pixelize(t2.rulerHeight); + u2 === 2 ? c2.style.height = e4 : c2.style.width = e4, t2.container.addEventListener("mousemove", p); + }(), { getLength: function() { + return l2; + }, getThickness: function() { + return s2; + }, getScale: d2, setScale: function(e4) { + return a2 = parseFloat(e4), f2(), a2; + }, dimension: u2, orgPos: 0, canvas: r2, context: o2, drawRuler: function(e4, n3, i3) { + l2 = r2.width = 4 * e4, s2 = r2.height = n3, a2 = i3 || a2, o2.strokeStyle = t2.strokeStyle, o2.fillStyle = t2.fillStyle, o2.font = t2.fontSize + " " + t2.fontFamily, o2.lineWidth = t2.lineWidth, o2.beginPath(), f2(), o2.stroke(); + }, drawPoints: f2, destroy: function() { + t2.container.removeEventListener("mousemove", p), c2.parentNode.removeChild(c2), i2.clearListeners && i2.clearListeners(); + } }; + } }, { key: "guideLine", value: function(e3, t2, n2, i2, r2, o2, s2, l2) { + var a2, u2 = this, c2 = e3, d2 = l2 || 1, f2 = false, p = r2 || 0, v = t2, g = n2 || 2, y = o2 || function() { + }, h = { cv: function() { + return u2.options.canvas; + }, move: function(e4, t3) { + c2.style.left = u2.utils.pixelize(e4), c2.style.top = u2.utils.pixelize(t3), b(e4, t3), y(a2, e4, t3); + }, startMoving: function(e4) { + h.cv().style.pointerEvents = "none", u2.utils.addClasss(c2, ["rul_line_dragged"]); + var t3 = (e4 = e4 || window.event) ? e4.clientX : 0, n3 = e4 ? e4.clientY : 0, r3 = parseInt(c2.style.top || 0), o3 = parseInt(c2.style.left || 0), s3 = parseInt(c2.offsetWidth), l3 = parseInt(c2.offsetHeight), a3 = parseInt(v.offsetWidth), d3 = parseInt(v.offsetHeight), f3 = g === 2 ? "ns-resize" : "ew-resize"; + i2.container.style.cursor = f3, c2.style.cursor = f3; + var p2 = t3 - o3, y2 = n3 - r3; + document.onmousemove = function(e5) { + var t4 = (e5 = e5 || window.event).clientX, n4 = e5.clientY, i3 = t4 - p2, r4 = n4 - y2; + i3 < 0 && (i3 = 0), r4 < 0 && (r4 = 0), i3 + s3 > a3 && (i3 = a3 - s3), r4 + l3 > d3 && (r4 = d3 - l3), h.move(i3, r4); + }, m(); + }, stopMoving: function() { + h.cv().style.pointerEvents = u2.canvasPointerEvents, i2.container.style.cursor = null, c2.style.cursor = null, document.onmousemove = function() { + }, x(), u2.utils.removeClasss(c2, ["rul_line_dragged"]); + } }, m = function(e4) { + i2.enableToolTip && u2.utils.addClasss(c2, "rul_tooltip"); + }, b = function(e4, t3) { + c2.dataset.tip = t3 ? Math.round((t3 - i2.rulerHeight - 1 - p) * d2) + "px" : Math.round((e4 - i2.rulerHeight - 1 - p) * d2) + "px"; + }, x = function(e4) { + u2.utils.removeClasss(c2, "rul_tooltip"); + }, w = function() { + h.stopMoving(), y = null, c2.removeEventListener("mousedown", C), c2.removeEventListener("mouseup", E), c2.removeEventListener("dblclick", O), c2.parentNode && c2.parentNode.removeChild(c2); + }, C = function(e4) { + e4.stopPropagation(), h.startMoving(); + }, E = function(e4) { + h.stopMoving(); + }, O = function(e4) { + e4.stopPropagation(), w(), u2.api.removeGuide(c2.dataset.id); + }; + return c2.addEventListener("mousedown", C), c2.addEventListener("mouseup", E), c2.addEventListener("dblclick", O), s2 && h.startMoving(s2), a2 = { setAsDraggable: h, startDrag: h.startMoving, stopDrag: h.stopMoving, destroy: w, curScale: function(e4) { + return e4 === void 0 ? d2 : d2 = e4; + }, assigned: function(e4) { + return e4 === void 0 ? f2 : f2 = e4; + }, curPosDelta: function(e4) { + return e4 === void 0 ? p : p = e4; + }, guideLine: c2, dimension: g, hide: function() { + c2.style.display = "none"; + }, show: function() { + c2.style.display = "block"; + } }; + } }]), e2; + }(), c = { extend: function() { + for (var e2 = 1; e2 < arguments.length; e2++) + for (var t2 in arguments[e2]) + arguments[e2].hasOwnProperty(t2) && (arguments[0][t2] = arguments[e2][t2]); + return arguments[0]; + }, pixelize: function(e2) { + return e2 + "px"; + }, prependChild: function(e2, t2) { + return e2.insertBefore(t2, e2.firstChild); + }, addClasss: function(e2, t2) { + return t2 instanceof Array || (t2 = [t2]), t2.forEach(function(t3) { + e2.className += " " + t3; + }), e2; + }, removeClasss: function(e2, t2) { + var n2 = e2.className; + return t2 instanceof Array || (t2 = [t2]), t2.forEach(function(e3) { + n2 = n2.replace(e3, ""); + }), e2.className = n2, e2; + } }; + function d(e2, t2) { + var n2 = Object.keys(e2); + if (Object.getOwnPropertySymbols) { + var i2 = Object.getOwnPropertySymbols(e2); + t2 && (i2 = i2.filter(function(t3) { + return Object.getOwnPropertyDescriptor(e2, t3).enumerable; + })), n2.push.apply(n2, i2); + } + return n2; + } + function f(e2) { + for (var t2 = 1; t2 < arguments.length; t2++) { + var n2 = arguments[t2] != null ? arguments[t2] : {}; + t2 % 2 ? d(Object(n2), true).forEach(function(t3) { + r()(e2, t3, n2[t3]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(n2)) : d(Object(n2)).forEach(function(t3) { + Object.defineProperty(e2, t3, Object.getOwnPropertyDescriptor(n2, t3)); + }); + } + return e2; + } + t["default"] = function(e2) { + var t2, n2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i2 = f(f({}, { dragMode: "translate", rulerHeight: 15, canvasZoom: 94, rulerOpts: {} }), n2), r2 = e2.Commands, o2 = i2.rulerHeight, s2 = e2.getConfig("dragMode"), l2 = i2.canvasZoom, a2 = 100 / l2; + r2.add("ruler-visibility", { run: function(e3) { + !t2 && (t2 = new u(f({ container: e3.Canvas.getCanvasView().el, canvas: e3.Canvas.getFrameEl(), rulerHeight: o2, strokeStyle: "white", fillStyle: "white", cornerIcon: "fa fa-trash" }, i2.rulerOpts))) && e3.on("canvasScroll frame:scroll change:canvasOffset", function() { + c2(); + }), e3.Rulers = t2, t2.api.toggleRulerVisibility(true), e3.Canvas.setZoom(l2), e3.setDragMode(i2.dragMode), c2(), t2.api.setScale(a2); + }, stop: function(e3) { + t2 && t2.api.toggleRulerVisibility(false), e3.Canvas.setZoom(100), e3.setDragMode(s2); + } }); + var c2 = function() { + var n3 = e2.Canvas.getOffset(), i3 = n3.top, r3 = n3.left, s3 = e2.Canvas.getBody().scrollLeft, l3 = e2.Canvas.getBody().scrollTop; + t2.api.setPos({ x: r3 - o2 - s3 / a2, y: i3 - o2 - l3 / a2 }), t2.api.setScroll({ x: s3, y: l3 }); + }; + r2.add("guides-visibility", { run: function() { + t2 && t2.api.toggleGuideVisibility(true); + }, stop: function() { + t2 && t2.api.toggleGuideVisibility(false); + } }), r2.add("get-rulers", function() { + return t2; + }), r2.add("get-rulers-constructor", function() { + return u; + }), r2.add("clear-guides", function() { + t2 && t2.api.clearGuides(); + }), r2.add("get-guides", function() { + return t2 ? t2.api.getGuides() : 0; + }), r2.add("set-guides", function(e3, n3) { + var i3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + t2 && i3.guides && t2.api.setGuides(i3.guides); + }), r2.add("set-zoom", function(e3, n3) { + var i3 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; + l2 = i3.zoom, a2 = 100 / l2, e3.Canvas.setZoom(l2), c2(), t2 && t2.api.setScale(a2); + }), r2.add("destroy-ruler", function() { + t2 && t2.api.destroy(); + }); + }; + }]); + }); + } + }); + + // server/web/source/scripts/editor.js + var import_grapesjs = __toESM(require_grapes_min()); + var import_grapesjs_rte_extensions = __toESM(require_grapesjs_rte_extensions_min()); + var import_grapesjs_custom_code = __toESM(require_grapesjs_custom_code_min()); + var import_grapesjs_project_manager = __toESM(require_grapesjs_project_manager_min()); + var import_grapesjs_parser_postcss = __toESM(require_grapesjs_parser_postcss_min()); + var import_grapesjs_component_code_editor = __toESM(require_grapesjs_component_code_editor_min()); + var import_grapesjs_script_editor = __toESM(require_grapesjs_script_editor_min()); + var import_grapesjs_table = __toESM(require_grapesjs_table_min()); + var import_grapesjs_plugin_export = __toESM(require_grapesjs_plugin_export_min()); + var import_grapesjs_rulers = __toESM(require_grapesjs_rulers_min()); + function startEditor(config) { + new Promise((resolve, reject) => { + let vw = document.documentElement.clientWidth; + let vh = document.documentElement.clientHeight; + const body = document.getElementsByTagName("body"); + body.item(0).insertAdjacentHTML("afterBegin", ` +<div id="gjs"> +</div> + `); + function myPlugin(editor2, options) { + editor2.BlockManager.add("my-plugin-name", { + label: "Simple block", + content: '<div class="my-block">This is a simple block</div>' + }); + } + const swv = "sw-visibility"; + const expt = "export-template"; + const osm = "open-sm"; + const otm = "open-tm"; + const ola = "open-layers"; + const obl = "open-blocks"; + const ful = "fullscreen"; + const prv = "preview"; + let editor = import_grapesjs.default.init({ + container: "#gjs", + pageManager: {}, + styleManager: {}, + selectorManager: {}, + plugins: [myPlugin, import_grapesjs_rte_extensions.default, import_grapesjs_rulers.default, import_grapesjs_project_manager.default, import_grapesjs_component_code_editor.default, import_grapesjs_script_editor.default, import_grapesjs_parser_postcss.default, import_grapesjs_custom_code.default], + pluginsOpts: { + [myPlugin]: { + customField: "customValue" + }, + [import_grapesjs_component_code_editor.default]: { + openState: { pn: "45%", cv: "55%" }, + closedState: { pn: "300px", cv: "calc( 100% - 300px )" } + }, + [import_grapesjs_custom_code.default]: {}, + [import_grapesjs_script_editor.default]: {} + }, + fromElement: true, + height: vh + "px", + width: "auto", + noticeOnUnload: config?.editor?.noticeOnUnload ?? false, + storageManager: { + type: "rest-api", + stepsBeforeSave: 1, + urlStore: config?.editor?.storage?.storeUrl, + urlLoad: config?.editor?.storage?.loadUrl, + urlDelete: config?.editor?.storage?.deleteUrl + }, + panels: { + defaults: [ + { + id: "commands", + buttons: [{}] + }, + { + id: "options", + buttons: [ + { + active: true, + id: swv, + className: "fa fa-square-o", + command: swv, + context: swv, + attributes: { title: "View components" } + }, + { + id: prv, + className: "fa fa-eye", + command: prv, + context: prv, + attributes: { title: "Preview" } + }, + { + id: ful, + className: "fa fa-arrows-alt", + command: ful, + context: ful, + attributes: { title: "Fullscreen" } + }, + { + id: expt, + className: "fa fa-code", + command: expt, + attributes: { title: "View code" } + } + ] + }, + { + id: "views", + buttons: [ + { + id: osm, + className: "fa fa-paint-brush", + command: osm, + active: true, + togglable: 0, + attributes: { title: "Open Style Manager" } + }, + { + id: otm, + className: "fa fa-cog", + command: otm, + togglable: 0, + attributes: { title: "Settings" } + }, + { + id: ola, + className: "fa fa-bars", + command: ola, + togglable: 0, + attributes: { title: "Open Layer Manager" } + }, + { + id: obl, + className: "fa fa-th-large", + command: obl, + togglable: 0, + attributes: { title: "Open Blocks" } + } + ] + } + ] + }, + commands: { + defaults: [ + { + id: "undo", + run: function(editor2, sender) { + sender.set("active", false); + editor2.UndoManager.undo(1); + } + }, + { + id: "redo", + run: function(editor2, sender) { + sender.set("active", false); + editor2.UndoManager.redo(1); + } + } + ] + }, + assetManager: { + upload: config?.assets?.url, + uploadName: "files", + autoAdd: true, + dropzone: true + } + }); + const assetManager = editor.AssetManager; + const storageManager = editor.StorageManager; + const pn = editor.Panels; + pn.addButton("options", { + id: "open-templates", + className: "fa fa-folder-o", + attributes: { + title: "Open projects and templates" + }, + command: "open-templates" + }); + pn.addButton("views", { + id: "open-pages", + className: "fa fa-file-o", + attributes: { + title: "Open Pages" + }, + command: "open-pages", + togglable: false + }); + pn.addButton("views", { + id: "open-code", + className: "fa fa-file-code-o", + attributes: { + title: "Open Code" + }, + command: "open-code", + togglable: false + }); + pn.addButton("options", { + attributes: { + title: "Toggle Rulers" + }, + context: "toggle-rulers", + label: `<svg width="18" viewBox="0 0 16 16"><path d="M0 8a.5.5 0 0 1 .5-.5h15a.5.5 0 0 1 0 1H.5A.5.5 0 0 1 0 8z"/><path d="M4 3h8a1 1 0 0 1 1 1v2.5h1V4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v2.5h1V4a1 1 0 0 1 1-1zM3 9.5H2V12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9.5h-1V12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9.5z"/></svg>`, + command: "ruler-visibility", + id: "ruler-visibility" + }); + const viewContainerPanel = pn.getPanel("views"); + let panels = editor.Panels.getPanels(); + console.log("editor", editor); + const blockManager = editor.BlockManager; + blockManager.add("h1-block", { + label: "<h1>Heading 1</h1>", + content: "<h1>Put your title here</h1>", + category: "Headlines", + attributes: { + title: "Insert h1 block" + } + }); + blockManager.add("h2-block", { + label: "<h2>Heading 2</h2>", + content: "<h2>Put your title here</h2>", + category: "Headlines", + attributes: { + title: "Insert h2 block" + } + }); + blockManager.add("h3-block", { + label: "<h3>Heading 3</h3>", + content: "<h3>Put your title here</h3>", + category: "Headlines", + attributes: { + title: "Insert h3 block" + } + }); + blockManager.add("h4-block", { + label: "<h4>Heading 4</h4>", + content: "<h4>Put your title here</h4>", + category: "Headlines", + attributes: { + title: "Insert h4 block" + } + }); + blockManager.add("images-block", { + id: "image", + label: "Image", + media: `<svg style="width:24px;height:24px" viewBox="0 0 24 24"><path d="M8.5,13.5L11,16.5L14.5,12L19,18H5M21,19V5C21,3.89 20.1,3 19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19Z" /></svg>`, + content: { type: "image" }, + activate: true + }); + const pageManager = editor.Pages; + console.log("pageManager", pageManager); + const pm = editor.Panels; + pm.addButton("options", [{ + id: "undo", + className: "fa fa-undo icon-undo", + command: function command(editor2, sender) { + sender.set("active", 0); + editor2.UndoManager.undo(1); + }, + attributes: { + title: "Undo (CTRL/CMD + Z)" + } + }, { + id: "redo", + className: "fa fa-repeat icon-redo", + command: function command(editor2, sender) { + sender.set("active", 0); + editor2.UndoManager.redo(1); + }, + attributes: { + title: "Redo (CTRL/CMD + Y)" + } + }]); + }); + } + + // server/web/source/scripts/websocket.js + function connect(messageUrl) { + return new Promise((resolve, reject) => { + var socket = new WebSocket(messageUrl); + socket.onopen = function() { + console.log("minerva server connected"); + resolve(socket); + }; + socket.onmessage = function(e) { + if (e.data === "script-changed") { + window.location.reload(); + return; + } + console.log("Unknown server message " + e.data); + }; + socket.onclose = function(e) { + console.log("minerva server connection closed"); + setTimeout(function() { + connect(messageUrl); + }, 1e3); + }; + socket.onerror = function(e) { + reject(); + socket.close(); + }; + }); + } + function startMessageQueue(config) { + const messageUrl = config?.messages?.url; + return connect(messageUrl); + } + + // server/web/source/scripts/main.js + console.log(`%cWelcome to Minerva!%c + +Does this page need fixes or improvements? +Open an issue or contribute a merge request to help make Minerva more lovable! +https://gitlab.schukai.com/oss/minerva/-/issues/new +`, "padding-top: 0.5em; font-size: 2em;", "padding-bottom: 0.5em;"); + try { + fetch("/config.json", { + method: "GET", + headers: { + "Accept": "application/json" + } + }).then((response) => response.json()).then((data) => { + startMessageQueue(data).then(() => { + startEditor(data); + }); + }).catch((error) => { + console.error("Error:", error); + }); + } catch (e) { + console.error(e); + } +})(); +/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org> + * @license MIT + */ +/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */ +/*! grapesjs - 0.18.4 */ +/*! grapesjs-component-code-editor - 1.0.20 */ +/*! grapesjs-custom-code - 0.1.3 */ +/*! grapesjs-parser-postcss - 0.1.1 */ +/*! grapesjs-plugin-export - 1.0.7 */ +/*! grapesjs-project-manager - 1.0.17 */ +/*! grapesjs-rte-extensions - 1.0.8 */ +/*! grapesjs-rulers - 1.0.8 */ +/*! grapesjs-script-editor - 1.0.3 */ +/*! grapesjs-table - 1.0.8 */ diff --git a/application/source/server/web/dist/styles/main.css b/application/source/server/web/dist/styles/main.css new file mode 100644 index 0000000000000000000000000000000000000000..0d81bd9ff2f2afb1eca4ed84fbfd1cefa27f40ee --- /dev/null +++ b/application/source/server/web/dist/styles/main.css @@ -0,0 +1,4178 @@ +/* server/web/source/node_modules/grapesjs/dist/css/grapes.min.css */ +.CodeMirror { + font-family: monospace; + height: 300px; + color: black; + direction: ltr; +} +.CodeMirror-lines { + padding: 4px 0; +} +.CodeMirror pre.CodeMirror-line, +.CodeMirror pre.CodeMirror-line-like { + padding: 0 4px; +} +.CodeMirror-scrollbar-filler, +.CodeMirror-gutter-filler { + background-color: white; +} +.CodeMirror-gutters { + border-right: 1px solid #ddd; + background-color: #f7f7f7; + white-space: nowrap; +} +.CodeMirror-linenumber { + padding: 0 3px 0 5px; + min-width: 20px; + text-align: right; + color: #999; + white-space: nowrap; +} +.CodeMirror-guttermarker { + color: black; +} +.CodeMirror-guttermarker-subtle { + color: #999; +} +.CodeMirror-cursor { + border-left: 1px solid black; + border-right: none; + width: 0; +} +.CodeMirror div.CodeMirror-secondarycursor { + border-left: 1px solid silver; +} +.cm-fat-cursor .CodeMirror-cursor { + width: auto; + border: 0 !important; + background: #7e7; +} +.cm-fat-cursor div.CodeMirror-cursors { + z-index: 1; +} +.cm-fat-cursor-mark { + background-color: rgba(20, 255, 20, 0.5); + -webkit-animation: blink 1.06s steps(1) infinite; + -moz-animation: blink 1.06s steps(1) infinite; + animation: blink 1.06s steps(1) infinite; +} +.cm-animate-fat-cursor { + width: auto; + -webkit-animation: blink 1.06s steps(1) infinite; + -moz-animation: blink 1.06s steps(1) infinite; + animation: blink 1.06s steps(1) infinite; + background-color: #7e7; +} +@-moz-keyframes blink { + 50% { + background-color: transparent; + } +} +@-webkit-keyframes blink { + 50% { + background-color: transparent; + } +} +@keyframes blink { + 50% { + background-color: transparent; + } +} +.cm-tab { + display: inline-block; + text-decoration: inherit; +} +.CodeMirror-rulers { + position: absolute; + left: 0; + right: 0; + top: -50px; + bottom: 0; + overflow: hidden; +} +.CodeMirror-ruler { + border-left: 1px solid #ccc; + top: 0; + bottom: 0; + position: absolute; +} +.cm-s-default .cm-header { + color: blue; +} +.cm-s-default .cm-quote { + color: #090; +} +.cm-negative { + color: #d44; +} +.cm-positive { + color: #292; +} +.cm-header, +.cm-strong { + font-weight: bold; +} +.cm-em { + font-style: italic; +} +.cm-link { + text-decoration: underline; +} +.cm-strikethrough { + text-decoration: line-through; +} +.cm-s-default .cm-keyword { + color: #708; +} +.cm-s-default .cm-atom { + color: #219; +} +.cm-s-default .cm-number { + color: #164; +} +.cm-s-default .cm-def { + color: blue; +} +.cm-s-default .cm-variable-2 { + color: #05a; +} +.cm-s-default .cm-variable-3, +.cm-s-default .cm-type { + color: #085; +} +.cm-s-default .cm-comment { + color: #a50; +} +.cm-s-default .cm-string { + color: #a11; +} +.cm-s-default .cm-string-2 { + color: #f50; +} +.cm-s-default .cm-meta { + color: #555; +} +.cm-s-default .cm-qualifier { + color: #555; +} +.cm-s-default .cm-builtin { + color: #30a; +} +.cm-s-default .cm-bracket { + color: #997; +} +.cm-s-default .cm-tag { + color: #170; +} +.cm-s-default .cm-attribute { + color: #00c; +} +.cm-s-default .cm-hr { + color: #999; +} +.cm-s-default .cm-link { + color: #00c; +} +.cm-s-default .cm-error { + color: red; +} +.cm-invalidchar { + color: red; +} +.CodeMirror-composing { + border-bottom: 2px solid; +} +div.CodeMirror span.CodeMirror-matchingbracket { + color: #0b0; +} +div.CodeMirror span.CodeMirror-nonmatchingbracket { + color: #a22; +} +.CodeMirror-matchingtag { + background: rgba(255, 150, 0, 0.3); +} +.CodeMirror-activeline-background { + background: #e8f2ff; +} +.CodeMirror { + position: relative; + overflow: hidden; + background: white; +} +.CodeMirror-scroll { + overflow: scroll !important; + margin-bottom: -50px; + margin-right: -50px; + padding-bottom: 50px; + height: 100%; + outline: none; + position: relative; +} +.CodeMirror-sizer { + position: relative; + border-right: 50px solid transparent; +} +.CodeMirror-vscrollbar, +.CodeMirror-hscrollbar, +.CodeMirror-scrollbar-filler, +.CodeMirror-gutter-filler { + position: absolute; + z-index: 6; + display: none; + outline: none; +} +.CodeMirror-vscrollbar { + right: 0; + top: 0; + overflow-x: hidden; + overflow-y: scroll; +} +.CodeMirror-hscrollbar { + bottom: 0; + left: 0; + overflow-y: hidden; + overflow-x: scroll; +} +.CodeMirror-scrollbar-filler { + right: 0; + bottom: 0; +} +.CodeMirror-gutter-filler { + left: 0; + bottom: 0; +} +.CodeMirror-gutters { + position: absolute; + left: 0; + top: 0; + min-height: 100%; + z-index: 3; +} +.CodeMirror-gutter { + white-space: normal; + height: 100%; + display: inline-block; + vertical-align: top; + margin-bottom: -50px; +} +.CodeMirror-gutter-wrapper { + position: absolute; + z-index: 4; + background: none !important; + border: none !important; +} +.CodeMirror-gutter-background { + position: absolute; + top: 0; + bottom: 0; + z-index: 4; +} +.CodeMirror-gutter-elt { + position: absolute; + cursor: default; + z-index: 4; +} +.CodeMirror-gutter-wrapper ::selection { + background-color: transparent; +} +.CodeMirror-gutter-wrapper ::-moz-selection { + background-color: transparent; +} +.CodeMirror-lines { + cursor: text; + min-height: 1px; +} +.CodeMirror pre.CodeMirror-line, +.CodeMirror pre.CodeMirror-line-like { + -moz-border-radius: 0; + -webkit-border-radius: 0; + border-radius: 0; + border-width: 0; + background: transparent; + font-family: inherit; + font-size: inherit; + margin: 0; + white-space: pre; + word-wrap: normal; + line-height: inherit; + color: inherit; + z-index: 2; + position: relative; + overflow: visible; + -webkit-tap-highlight-color: transparent; + -webkit-font-variant-ligatures: contextual; + font-variant-ligatures: contextual; +} +.CodeMirror-wrap pre.CodeMirror-line, +.CodeMirror-wrap pre.CodeMirror-line-like { + word-wrap: break-word; + white-space: pre-wrap; + word-break: normal; +} +.CodeMirror-linebackground { + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + z-index: 0; +} +.CodeMirror-linewidget { + position: relative; + z-index: 2; + padding: .1px; +} +.CodeMirror-rtl pre { + direction: rtl; +} +.CodeMirror-code { + outline: none; +} +.CodeMirror-scroll, +.CodeMirror-sizer, +.CodeMirror-gutter, +.CodeMirror-gutters, +.CodeMirror-linenumber { + -moz-box-sizing: content-box; + box-sizing: content-box; +} +.CodeMirror-measure { + position: absolute; + width: 100%; + height: 0; + overflow: hidden; + visibility: hidden; +} +.CodeMirror-cursor { + position: absolute; + pointer-events: none; +} +.CodeMirror-measure pre { + position: static; +} +div.CodeMirror-cursors { + visibility: hidden; + position: relative; + z-index: 3; +} +div.CodeMirror-dragcursors { + visibility: visible; +} +.CodeMirror-focused div.CodeMirror-cursors { + visibility: visible; +} +.CodeMirror-selected { + background: #d9d9d9; +} +.CodeMirror-focused .CodeMirror-selected { + background: #d7d4f0; +} +.CodeMirror-crosshair { + cursor: crosshair; +} +.CodeMirror-line::selection, +.CodeMirror-line > span::selection, +.CodeMirror-line > span > span::selection { + background: #d7d4f0; +} +.CodeMirror-line::-moz-selection, +.CodeMirror-line > span::-moz-selection, +.CodeMirror-line > span > span::-moz-selection { + background: #d7d4f0; +} +.cm-searching { + background-color: #ffa; + background-color: rgba(255, 255, 0, 0.4); +} +.cm-force-border { + padding-right: .1px; +} +@media print { + .CodeMirror div.CodeMirror-cursors { + visibility: hidden; + } +} +.cm-tab-wrap-hack:after { + content: ""; +} +span.CodeMirror-selectedtext { + background: none; +} +.cm-s-hopscotch.CodeMirror { + background: #322931; + color: #d5d3d5; +} +.cm-s-hopscotch div.CodeMirror-selected { + background: #433b42 !important; +} +.cm-s-hopscotch .CodeMirror-gutters { + background: #322931; + border-right: 0px; +} +.cm-s-hopscotch .CodeMirror-linenumber { + color: #797379; +} +.cm-s-hopscotch .CodeMirror-cursor { + border-left: 1px solid #989498 !important; +} +.cm-s-hopscotch span.cm-comment { + color: #b33508; +} +.cm-s-hopscotch span.cm-atom { + color: #c85e7c; +} +.cm-s-hopscotch span.cm-number { + color: #c85e7c; +} +.cm-s-hopscotch span.cm-property, +.cm-s-hopscotch span.cm-attribute { + color: #8fc13e; +} +.cm-s-hopscotch span.cm-keyword { + color: #dd464c; +} +.cm-s-hopscotch span.cm-string { + color: #fdcc59; +} +.cm-s-hopscotch span.cm-variable { + color: #8fc13e; +} +.cm-s-hopscotch span.cm-variable-2 { + color: #1290bf; +} +.cm-s-hopscotch span.cm-def { + color: #fd8b19; +} +.cm-s-hopscotch span.cm-error { + background: #dd464c; + color: #989498; +} +.cm-s-hopscotch span.cm-bracket { + color: #d5d3d5; +} +.cm-s-hopscotch span.cm-tag { + color: #dd464c; +} +.cm-s-hopscotch span.cm-link { + color: #c85e7c; +} +.cm-s-hopscotch .CodeMirror-matchingbracket { + text-decoration: underline; + color: white !important; +} +.cm-s-hopscotch .CodeMirror-activeline-background { + background: #302020; +} +.sp-container { + position: absolute; + top: 0; + left: 0; + display: inline-block; + z-index: 9999994; + overflow: hidden; +} +.sp-container.sp-flat { + position: relative; +} +.sp-container, +.sp-container * { + -webkit-box-sizing: content-box; + -moz-box-sizing: content-box; + box-sizing: content-box; +} +.sp-top { + position: relative; + width: 100%; + display: inline-block; +} +.sp-top-inner { + position: absolute; + top: 0; + left: 0; + bottom: 0; + right: 0; +} +.sp-color { + position: absolute; + top: 0; + left: 0; + bottom: 0; + right: 20%; +} +.sp-hue { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 84%; + height: 100%; +} +.sp-clear-enabled .sp-hue { + top: 33px; + height: 77.5%; +} +.sp-fill { + padding-top: 80%; +} +.sp-sat, +.sp-val { + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; +} +.sp-alpha-enabled .sp-top { + margin-bottom: 18px; +} +.sp-alpha-enabled .sp-alpha { + display: block; +} +.sp-alpha-handle { + position: absolute; + top: -4px; + bottom: -4px; + width: 6px; + left: 50%; + cursor: pointer; + border: 1px solid #000; + background: #fff; + opacity: .8; +} +.sp-alpha { + display: none; + position: absolute; + bottom: -14px; + right: 0; + left: 0; + height: 8px; +} +.sp-alpha-inner { + border: solid 1px #333; +} +.sp-clear { + display: none; +} +.sp-clear.sp-clear-display { + background-position: center; +} +.sp-clear-enabled .sp-clear { + display: block; + position: absolute; + top: 0px; + right: 0; + bottom: 0; + left: 84%; + height: 28px; +} +.sp-container, +.sp-replacer, +.sp-preview, +.sp-dragger, +.sp-slider, +.sp-alpha, +.sp-clear, +.sp-alpha-handle, +.sp-container.sp-dragging .sp-input, +.sp-container button { + -webkit-user-select: none; + -moz-user-select: -moz-none; + -o-user-select: none; + user-select: none; +} +.sp-container.sp-input-disabled .sp-input-container { + display: none; +} +.sp-container.sp-buttons-disabled .sp-button-container { + display: none; +} +.sp-container.sp-palette-buttons-disabled .sp-palette-button-container { + display: none; +} +.sp-palette-only .sp-picker-container { + display: none; +} +.sp-palette-disabled .sp-palette-container { + display: none; +} +.sp-initial-disabled .sp-initial { + display: none; +} +.sp-sat { + background-image: -webkit-gradient(linear, 0 0, 100% 0, from(#FFF), to(rgba(204, 154, 129, 0))); + background-image: -webkit-linear-gradient(left, #FFF, rgba(204, 154, 129, 0)); + background-image: -moz-linear-gradient(left, #fff, rgba(204, 154, 129, 0)); + background-image: -o-linear-gradient(left, #fff, rgba(204, 154, 129, 0)); + background-image: -ms-linear-gradient(left, #fff, rgba(204, 154, 129, 0)); + background-image: linear-gradient(to right, #fff, rgba(204, 154, 129, 0)); + -ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType = 1, startColorstr=#FFFFFFFF, endColorstr=#00CC9A81)"; + filter: progid:DXImageTransform.Microsoft.gradient(GradientType = 1, startColorstr="#FFFFFFFF", endColorstr="#00CC9A81"); +} +.sp-val { + background-image: -webkit-gradient(linear, 0 100%, 0 0, from(#000000), to(rgba(204, 154, 129, 0))); + background-image: -webkit-linear-gradient(bottom, #000000, rgba(204, 154, 129, 0)); + background-image: -moz-linear-gradient(bottom, #000, rgba(204, 154, 129, 0)); + background-image: -o-linear-gradient(bottom, #000, rgba(204, 154, 129, 0)); + background-image: -ms-linear-gradient(bottom, #000, rgba(204, 154, 129, 0)); + background-image: linear-gradient(to top, #000, rgba(204, 154, 129, 0)); + -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#00CC9A81, endColorstr=#FF000000)"; + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#00CC9A81", endColorstr="#FF000000"); +} +.sp-hue { + background: -moz-linear-gradient(top, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%); + background: -ms-linear-gradient(top, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%); + background: -o-linear-gradient(top, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%); + background: -webkit-gradient(linear, left top, left bottom, from(#ff0000), color-stop(0.17, #ffff00), color-stop(0.33, #00ff00), color-stop(0.5, #00ffff), color-stop(0.67, #0000ff), color-stop(0.83, #ff00ff), to(#ff0000)); + background: -webkit-linear-gradient(top, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%); + background: linear-gradient(to bottom, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%); +} +.sp-1 { + height: 17%; + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff0000", endColorstr="#ffff00"); +} +.sp-2 { + height: 16%; + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffff00", endColorstr="#00ff00"); +} +.sp-3 { + height: 17%; + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#00ff00", endColorstr="#00ffff"); +} +.sp-4 { + height: 17%; + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#00ffff", endColorstr="#0000ff"); +} +.sp-5 { + height: 16%; + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#0000ff", endColorstr="#ff00ff"); +} +.sp-6 { + height: 17%; + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff00ff", endColorstr="#ff0000"); +} +.sp-hidden { + display: none !important; +} +.sp-cf:before, +.sp-cf:after { + content: ""; + display: table; +} +.sp-cf:after { + clear: both; +} +@media (max-device-width: 480px) { + .sp-color { + right: 40%; + } + .sp-hue { + left: 63%; + } + .sp-fill { + padding-top: 60%; + } +} +.sp-dragger { + border-radius: 5px; + height: 5px; + width: 5px; + border: 1px solid #fff; + background: #000; + cursor: pointer; + position: absolute; + top: 0; + left: 0; +} +.sp-slider { + position: absolute; + top: 0; + cursor: pointer; + height: 3px; + left: -1px; + right: -1px; + border: 1px solid #000; + background: #fff; + opacity: .8; +} +.sp-container { + border-radius: 0; + background-color: #ececec; + border: solid 1px #f0c49b; + padding: 0; +} +.sp-container, +.sp-container button, +.sp-container input, +.sp-color, +.sp-hue, +.sp-clear { + font: + normal 12px "Lucida Grande", + "Lucida Sans Unicode", + "Lucida Sans", + Geneva, + Verdana, + sans-serif; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + -ms-box-sizing: border-box; + box-sizing: border-box; +} +.sp-top { + margin-bottom: 3px; +} +.sp-color, +.sp-hue, +.sp-clear { + border: solid 1px #666; +} +.sp-input-container { + float: right; + width: 100px; + margin-bottom: 4px; +} +.sp-initial-disabled .sp-input-container { + width: 100%; +} +.sp-input { + font-size: 12px !important; + border: 1px inset; + padding: 4px 5px; + margin: 0; + width: 100%; + background: transparent; + border-radius: 3px; + color: #222; +} +.sp-input:focus { + border: 1px solid orange; +} +.sp-input.sp-validation-error { + border: 1px solid red; + background: #fdd; +} +.sp-picker-container, +.sp-palette-container { + float: left; + position: relative; + padding: 10px; + padding-bottom: 300px; + margin-bottom: -290px; +} +.sp-picker-container { + width: 172px; + border-left: solid 1px #fff; +} +.sp-palette-container { + border-right: solid 1px #ccc; +} +.sp-palette-only .sp-palette-container { + border: 0; +} +.sp-palette .sp-thumb-el { + display: block; + position: relative; + float: left; + width: 24px; + height: 15px; + margin: 3px; + cursor: pointer; + border: solid 2px transparent; +} +.sp-palette .sp-thumb-el:hover, +.sp-palette .sp-thumb-el.sp-thumb-active { + border-color: orange; +} +.sp-thumb-el { + position: relative; +} +.sp-initial { + float: left; + border: solid 1px #333; +} +.sp-initial span { + width: 30px; + height: 25px; + border: none; + display: block; + float: left; + margin: 0; +} +.sp-initial .sp-clear-display { + background-position: center; +} +.sp-palette-button-container, +.sp-button-container { + float: right; +} +.sp-replacer { + margin: 0; + overflow: hidden; + cursor: pointer; + padding: 4px; + display: inline-block; + border: solid 1px #91765d; + background: #eee; + color: #333; + vertical-align: middle; +} +.sp-replacer:hover, +.sp-replacer.sp-active { + border-color: #f0c49b; + color: #111; +} +.sp-replacer.sp-disabled { + cursor: default; + border-color: silver; + color: silver; +} +.sp-dd { + padding: 2px 0; + height: 16px; + line-height: 16px; + float: left; + font-size: 10px; +} +.sp-preview { + position: relative; + width: 25px; + height: 20px; + border: solid 1px #222; + margin-right: 5px; + float: left; + z-index: 0; +} +.sp-palette { + max-width: 220px; +} +.sp-palette .sp-thumb-el { + width: 16px; + height: 16px; + margin: 2px 1px; + border: solid 1px #d0d0d0; +} +.sp-container { + padding-bottom: 0; +} +.sp-container button { + background-color: #eee; + background-image: -webkit-linear-gradient(top, #eeeeee, #cccccc); + background-image: -moz-linear-gradient(top, #eeeeee, #cccccc); + background-image: -ms-linear-gradient(top, #eeeeee, #cccccc); + background-image: -o-linear-gradient(top, #eeeeee, #cccccc); + background-image: linear-gradient(to bottom, #eeeeee, #cccccc); + border: 1px solid #ccc; + border-bottom: 1px solid #bbb; + border-radius: 3px; + color: #333; + font-size: 14px; + line-height: 1; + padding: 5px 4px; + text-align: center; + text-shadow: 0 1px 0 #eee; + vertical-align: middle; +} +.sp-container button:hover { + background-color: #ddd; + background-image: -webkit-linear-gradient(top, #dddddd, #bbbbbb); + background-image: -moz-linear-gradient(top, #dddddd, #bbbbbb); + background-image: -ms-linear-gradient(top, #dddddd, #bbbbbb); + background-image: -o-linear-gradient(top, #dddddd, #bbbbbb); + background-image: linear-gradient(to bottom, #dddddd, #bbbbbb); + border: 1px solid #bbb; + border-bottom: 1px solid #999; + cursor: pointer; + text-shadow: 0 1px 0 #ddd; +} +.sp-container button:active { + border: 1px solid #aaa; + border-bottom: 1px solid #888; + -webkit-box-shadow: inset 0 0 5px 2px #aaa, 0 1px 0 0 #eee; + -moz-box-shadow: inset 0 0 5px 2px #aaa, 0 1px 0 0 #eee; + -ms-box-shadow: inset 0 0 5px 2px #aaa, 0 1px 0 0 #eee; + -o-box-shadow: inset 0 0 5px 2px #aaa, 0 1px 0 0 #eee; + box-shadow: inset 0 0 5px 2px #aaa, 0 1px 0 0 #eee; +} +.sp-cancel { + font-size: 11px; + color: #d93f3f !important; + margin: 0; + padding: 2px; + margin-right: 5px; + vertical-align: middle; + text-decoration: none; +} +.sp-cancel:hover { + color: #d93f3f !important; + text-decoration: underline; +} +.sp-palette span:hover, +.sp-palette span.sp-thumb-active { + border-color: #000; +} +.sp-preview, +.sp-alpha, +.sp-thumb-el { + position: relative; + background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==); +} +.sp-preview-inner, +.sp-alpha-inner, +.sp-thumb-inner { + display: block; + position: absolute; + top: 0; + left: 0; + bottom: 0; + right: 0; +} +.sp-palette .sp-thumb-inner { + background-position: 50% 50%; + background-repeat: no-repeat; +} +.sp-palette .sp-thumb-light.sp-thumb-active .sp-thumb-inner { + background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAIVJREFUeNpiYBhsgJFMffxAXABlN5JruT4Q3wfi/0DsT64h8UD8HmpIPCWG/KemIfOJCUB+Aoacx6EGBZyHBqI+WsDCwuQ9mhxeg2A210Ntfo8klk9sOMijaURm7yc1UP2RNCMbKE9ODK1HM6iegYLkfx8pligC9lCD7KmRof0ZhjQACDAAceovrtpVBRkAAAAASUVORK5CYII=); +} +.sp-palette .sp-thumb-dark.sp-thumb-active .sp-thumb-inner { + background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAAAMdJREFUOE+tkgsNwzAMRMugEAahEAahEAZhEAqlEAZhEAohEAYh81X2dIm8fKpEspLGvudPOsUYpxE2BIJCroJmEW9qJ+MKaBFhEMNabSy9oIcIPwrB+afvAUFoK4H0tMaQ3XtlrggDhOVVMuT4E5MMG0FBbCEYzjYT7OxLEvIHQLY2zWwQ3D+9luyOQTfKDiFD3iUIfPk8VqrKjgAiSfGFPecrg6HN6m/iBcwiDAo7WiBeawa+Kwh7tZoSCGLMqwlSAzVDhoK+6vH4G0P5wdkAAAAASUVORK5CYII=); +} +.sp-clear-display { + background-repeat: no-repeat; + background-position: center; + background-image: url(data:image/gif;base64,R0lGODlhFAAUAPcAAAAAAJmZmZ2dnZ6enqKioqOjo6SkpKWlpaampqenp6ioqKmpqaqqqqurq/Hx8fLy8vT09PX19ff39/j4+Pn5+fr6+vv7+wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAP8ALAAAAAAUABQAAAihAP9FoPCvoMGDBy08+EdhQAIJCCMybCDAAYUEARBAlFiQQoMABQhKUJBxY0SPICEYHBnggEmDKAuoPMjS5cGYMxHW3IiT478JJA8M/CjTZ0GgLRekNGpwAsYABHIypcAgQMsITDtWJYBR6NSqMico9cqR6tKfY7GeBCuVwlipDNmefAtTrkSzB1RaIAoXodsABiZAEFB06gIBWC1mLVgBa0AAOw==); +} +@font-face { + font-family: "font3336"; + src: url(data:application/octet-stream;base64,phYAAPwVAAABAAIAAAAAAAIABQMAAAAAAAABAJABAAAAAExQAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAp9sKxwAAAAAAAAAAAAAAAAAAAAAAABIAUwBWAEcARgBvAG4AdAAgADEAAAAOAFIAZQBnAHUAbABhAHIAAAAWAFYAZQByAHMAaQBvAG4AIAAxAC4AMAAAABAAZgBvAG4AdAAzADMAMwA2AAAAAAAAAQAAAAsAgAADADBHU1VCIIwleQAAATgAAABUT1MvMlavYxEAAAGMAAAAVmNtYXA5r0D8AAACNAAAAsxnbHlm8ZN0DQAABSwAAA0IaGVhZAvdzAsAAADgAAAANmhoZWEHkAO7AAAAvAAAACRobXR4UAAAAAAAAeQAAABQbG9jYSUQIaQAAAUAAAAAKm1heHABMADzAAABGAAAACBuYW1l/7HTqAAAEjQAAAL6cG9zdB++klYAABUwAAAAygABAAADpv+mAAAEAAAAAAAD6AABAAAAAAAAAAAAAAAAAAAAFAABAAAAAQAAxwrbp18PPPUACwQAAAAAANRrw4cAAAAA1GvDhwAAAAAD6AQAAAAACAACAAAAAAAAAAEAAAAUAOcAEgAAAAAAAgAAAAoACgAAAP8AAAAAAAAAAQAAAAoAMAA+AAJsYXRuAA5ERkxUABoABAAAAAAAAAABAAAABAAAAAAAAAABAAAAAWxpZ2EACAAAAAEAAAABAAQABAAAAAEACAABAAYAAAABAAAAAQQAAZAABQAAAokCzAAAAI8CiQLMAAAB6wAyAQgAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABAAEIAeQOm/6YAXAQAAFoAAAABAAAAAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAAAAAFAAAAAwAAACwAAAAEAAAB2AABAAAAAADSAAMAAQAAACwAAwAKAAAB2AAEAKYAAAAcABAAAwAMAEIARQBJAFIAVABXAGUAaQBtAHIAdQB3AHn//wAAAEIARABJAFEAVABXAGUAaQBtAG8AdAB3AHn//wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAHAAcAB4AHgAgACAAIAAgACAAIAAmACgAKAAAABIAEwAMABEADQAPABAADgACAAgACwAJAAoAAQAEAAUABwADAAYAAAEGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAASABMMAAAAEQAAAAAAAAANDwAQAAAOAAAAAAAAAAAAAAAAAAIAAAAIAAAACwAJCgEEAAUHAAMABgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAPQAAAAAAAAAEwAAAEIAAABCAAAAEgAAAEQAAABEAAAAEwAAAEUAAABFAAAADAAAAEkAAABJAAAAEQAAAFEAAABRAAAADQAAAFIAAABSAAAADwAAAFQAAABUAAAAEAAAAFcAAABXAAAADgAAAGUAAABlAAAAAgAAAGkAAABpAAAACAAAAG0AAABtAAAACwAAAG8AAABvAAAACQAAAHAAAABwAAAACgAAAHEAAABxAAAAAQAAAHIAAAByAAAABAAAAHQAAAB0AAAABQAAAHUAAAB1AAAABwAAAHcAAAB3AAAAAwAAAHkAAAB5AAAABgAAAAwAOACoAPoBOAG0AiIDUgOYA8oENgRaBLIE1gUWBVQFyAYGBjgGhAAAAAEAAAAAA+gEAAADAAAxIREhA+j8GAQAAAIAAAAAA4QC7AAPABsAABMiBhURFBYzITI2NRE0JiMFITIVERQjISI1ETR6CQ0NCQL0CQ0NCf0MAvQCAv0MAgLsDQn91AkNDQkCLAkNFAL91AMDAiwCAAAGAAAAAAOEAuwADwAfAC8AOwBHAFMAABMiBhURFBY7ATI2NRE0JiMzIgYVERQWOwEyNjURNCYjMyIGFREUFjsBMjY1ETQmIwUzMhURFCsBIjURNCEzMhURFCsBIjURNCEzMhURFCsBIjURNHoJDQ0JuwkNDQliCQ0NCboJDQ0JYgkNDQm7CQ0NCf0MuwICuwIBH7oDA7oDAR+7AgK7AgLsCwj9zQcLCwcCMwgLCwj9zQcLCwcCMwgLCwj9zQcLCwcCMwgLEQL9zQICAjMCAv3NAgICMwIC/c0CAgIzAgAAAAQAAAAAA4UC7AAPABsAKwA3AAABIgYVERQWMyEyNjURNCYjBSEyFREUIyEiNRE0JSIGFREUFjMhMjY1ETQmIwUhMhURFCMhIjURNAIeCQ0NCQFQCQ0NCf6wAVADA/6wA/5fCQ0NCQFQCQ0NCf6wAVADA/6wAwLsDQn91AkMDAkCLAkNEwP91AICAiwDEg0J/dQJDAwJAiwJDRMD/dQCAgIsAwAABAAAAAADhQLsAA8AHwAjACcAABMiBhURFBY7ATI2NRE0JiMzIgYVERQWMyEyNjURNCYjBTMRIwEhESF0BgoKBucHCgoHbwcKCgcBqgYKCgb9BODgAVUBo/5dAuwKB/3JBwkJBwI3BwoKB/3JBwkJBwI3BwoU/dACMP3QAAYAAAAAA4UC7AAPABsAKwA7AEsAWwAAEyIGFREUFjMhMjY1ETQmIwUhMhURFCMhIjURNBciBh0BFBY7ATI2PQE0JiMzIgYdARQWMyEyNj0BNCYjBSIGHQEUFjMhMjY9ATQmIwUiBh0BFBY7ATI2PQE0JiN6CQ0NCQL0CQ0NCf0MAvQCAv0MAlgCBAQCWAIEBAKgAgQEAgFSAgQEAv3kAgQEAgHsAgQEAv6sAgQEArwCBAQCAuwNCf3UCQ0NCQIsCQ0UAv3UAwMCLAJCBAMlAwMDAyUDBAQDJQMDAwMlAwR+BAOHAwMDA4cDBN4EAyUDAwMDJQMEAAAABQAAAAADggLsAA8AHwAvAD8ATwAAEyIGHQEUFjMhMjY9ATQmIwUiBh0BFBYzITI2PQE0JiMFIgYdARQWMyEyNj0BNCYjBSIGHQEUFjMhMjY9ATQmIwUiBh0BFBYzITI2PQE0JiNtAwQEAwH6AwQEA/4GAwQEAwMOAwQEA/zyAwQEAwMOAwQEA/zyAwQEAwMOAwQEA/zyAwQEAwMOAwQEAwLrBAJdAwQEA10CBPUEAxcDAwMDFwMEagQCGAIEBAIYAgRqBAMXAwMDAxcDBGoEAhgCBAQCGAIEAAAAABIAAAAAA4QCqgAPAB8ALwAzADcAOwBEAE0AVgBmAHYAhgCWAKYAtgDGANYA5gAAASIGFREUFjsBMjY1ETQmIwUiBhURFBY7ATI2NRE0JiMzIgYVERQWOwEyNjURNCYjFzMRIwEzESMBMxEjASIGFBYyNjQmBSIGFBYyNjQmISIGFBYyNjQmFyIGHQEUFjsBMjY9ATQmIwUiBh0BFBY7ATI2PQE0JiMzIgYdARQWOwEyNj0BNCYjFyIGHQEUFjsBMjY9ATQmIwUiBh0BFBY7ATI2PQE0JiMzIgYdARQWOwEyNj0BNCYjFyIGHQEUFjsBMjY9ATQmIwUiBh0BFBY7ATI2PQE0JiMzIgYdARQWOwEyNj0BNCYjAq4HCQkHxgYKCgb9AAYJCQbGBwkJB1UHCQkHxgYKCgZaw8P9x8PDARrDwwF+FBwcKRwc/bIUHR0oHR0BBhQcHCkcHNoDBAQDZAMFBQP9YwMFBQNkAwQEA7YDBAQDZAMFBQO7AwQEA2QDBQUD/WMDBQUDZAMEBAO2AwQEA2QDBQUDuwMEBANkAwUFA/1jAwUFA2QDBAQDtgMEBANkAwUFAwKqCQf+tgYKCgYBSgcJAgoG/rYHCQkHAUoGCgoG/rYHCQkHAUoGCg/+uQFE/rkBR/65ARwcKRwcKRwCHCkcHCkcHCkcHCkckQQDBwMEBAMHAwQCBAMHAwUFAwcDBAQDBwMFBQMHAwQlBAMHAwQEAwcDBAIEAwcDBQUDBwMEBAMHAwUFAwcDBCUEAwcDBAQDBwMEAgQDCAMEBAMIAwQEAwgDBAQDCAMEAAAABAAAAAADhALsAA8AGwAkACsAABMiBhURFBYzITI2NRE0JiMFITIVERQjISI1ETQFIgYUFjI2NCYFAyEHIQMHegkNDQkC9AkNDQn9DAL0AgL9DAICXRsoKDcoKP6d6wEDAQFvt00C7A0J/dQJDQ0JAiwJDRQC/dQDAwIsAiUoOCcnOCg7/lYBAUuLAAABAAAAAAL+AyAAHwAAEwczPgE3NjsBERQHBisBFSE1IyInJjURMzIWFxYXMyfyCBIDIxgTLEwKESgWAQwWJRENWSgwDgkFEgcDII0pMAgG/jYyDxcQEBMONwHKGBoQJY0AAAAABAAAAAADGwMhABQAKQA6AEsAABMdATMVFhUUBzEGDwEVNzY3NTY9ATMdATMXFhUUBzEGDwEVNzY3NTY9AQUzFRQHBgc1Njc2NTQmLwEjJTMVFAcGBzU2NzY1NCYvASPNewEfHDkIC309PUp7AQEfHTgJDHw+PP3G2jo1azwfIQECAncBTNo5Nms8HyICAgJ3AyAK/AcEB0o5NgkCfAEPZwFmkekK/AcEB0o5NgkCfAEPZwFmkekU1YxhWhFVDTs9TwgPCAfe1YxhWhFVDTs9TwgPCAcAAAAAAgAAAAADlAL7AA8AEwAAEyIGFREUFjMhMjY1ETQmIwUhESF6DxYWDwL0DxYWD/0ZAtr9JgL7Fg/91BAVFRACLA8WMv3tAAAABgAAAAADkQMAAA8AHwAvADMANwA7AAATIgYVERQWOwEyNjURNCYjMyIGFREUFjsBMjY1ETQmIzMiBhURFBY7ATI2NRE0JiMFMxEjATMRIwEzESNyChAQCrwKEBAKaAoQEAq8ChAQCmgKEBAKvAoQEAr9CqCgASSgoAEkoKADABAL/bULDw8LAksLEBAL/bULDw8LAksLEBAL/bULDw8LAksLECj90AIw/dACMP3QAAACAAAAAAOUAvsADwATAAATIgYVERQWMyEyNjURNCYjBSERIXoPFhYPAvQPFhYP/RkC2v0mAvsWD/3UEBUVEAIsDxYy/e0AAAAEAAAAAAOTAwAADwAfACMAJwAAEyIGFREUFjMhMjY1ETQmIzMiBhURFBYzITI2NRE0JiMFIREhASERIXALEBALAUULEBALfgsQEAsBRQsQEAv9BQEr/tUBwwEr/tUDABAL/bULDw8LAksLEBAL/bULDw8LAksLECj90AIw/dAAAAQAAAAAA44C+wAPAB8AIwAnAAATIgYVERQWOwEyNjURNCYjMyIGFREUFjMhMjY1ETQmIwUzESMBIREhdQsPDwv2CxAQC4ULEBALAYMLDw8L/RDb2wF6AWj+mAL7EAv9vwsPDwsCQQsQEAv9vwsPDwsCQQsQKP3aAib92gAGAAAAAAOUAvsADwAfAC8APwBPAFMAAAEiBh0BFBY7ATI2PQE0JiMlIgYdARQWMyEyNj0BNCYjJSIGHQEUFjMhMjY9ATQmIyEiBh0BFBY7ATI2PQE0JiMnIgYVERQWMyEyNjURNCYjBSERIQGZAgQEArwCBAQC/qUCBAQCAewCBAQC/twCBAQCAVICBAQC/bYCBAQCWAIEBAKoDxYWDwL0DxYWD/0ZAtr9JgErAwMlAwQEAyUDA8gDA4cDBAQDhwMDlgMDJQMEBAMlAwMDAyUDBAQDJQMDchYP/dQQFRUQAiwPFjL97QAABAAAAAADlAL7AAYADwAfACMAAAEDIRUhAwcTIgYUFjI2NCYlIgYVERQWMyEyNjURNCYjBSERIQGb6wEDAW63Tb0cJyc4KCj9hA8WFg8C9A8WFg/9GQLa/SYChP5WAQFLiwEGJzgoKDgnXBYP/dQQFRUQAiwPFjL97QAAAAMAAAAAA5MCbAALABsAHwAAEyIdARQzITI9ATQjJSIGFREUFjMhMjY1ETQmIwUhESH3BwcB+gcH/X4KEBAKAwoKEBAK/QQC7v0SAdMCIwICIwKYDwv+3QoQEAoBIwsPKP75AAAFAAAAAAOTAvgACwAbAB8ALwAzAAATIh0BFDMhMj0BNCMFIgYdARQWMyEyNj0BNCYjBSEVIQMiBh0BFBYzITI2PQE0JiMFIRUh6gYGAfoHB/2MCxAQCwMICxAQC/0FAu79Eg0LEBALAwgLEBAL/QUC7v0SAdMCIwICIwJbDwu8ChAQCrwLDyigAkcPC7wKEBAKvAsPKKAAAAAAEgDeAAEAAAAAAAAAQwAAAAEAAAAAAAEACQBDAAEAAAAAAAIABwBMAAEAAAAAAAMACABTAAEAAAAAAAQACABbAAEAAAAAAAUACwBjAAEAAAAAAAYACABuAAEAAAAAAAoAKwB2AAEAAAAAAAsAEwChAAMAAQQJAAAAhgC0AAMAAQQJAAEAEgE6AAMAAQQJAAIADgFMAAMAAQQJAAMAEAFaAAMAAQQJAAQAEAFqAAMAAQQJAAUAFgF6AAMAAQQJAAYAEAGQAAMAAQQJAAoAVgGgAAMAAQQJAAsAJgH2CiAgICAKICAgICAgCiAgICAgICAgaW1hZ2Uvc3ZnK3htbAogICAgICAgIAogICAgICAgIAogICAgICAKICAgIAogIFNWR0ZvbnQgMVJlZ3VsYXJmb250MzMzNmZvbnQzMzM2VmVyc2lvbiAxLjBmb250MzMzNkdlbmVyYXRlZCBieSBzdmcydHRmIGZyb20gRm9udGVsbG8gcHJvamVjdC5odHRwOi8vZm9udGVsbG8uY29tAAoAIAAgACAAIAAKACAAIAAgACAAIAAgAAoAIAAgACAAIAAgACAAIAAgAGkAbQBhAGcAZQAvAHMAdgBnACsAeABtAGwACgAgACAAIAAgACAAIAAgACAACgAgACAAIAAgACAAIAAgACAACgAgACAAIAAgACAAIAAKACAAIAAgACAACgAgACAAUwBWAEcARgBvAG4AdAAgADEAUgBlAGcAdQBsAGEAcgBmAG8AbgB0ADMAMwAzADYAZgBvAG4AdAAzADMAMwA2AFYAZQByAHMAaQBvAG4AIAAxAC4AMABmAG8AbgB0ADMAMwAzADYARwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABzAHYAZwAyAHQAdABmACAAZgByAG8AbQAgAEYAbwBuAHQAZQBsAGwAbwAgAHAAcgBvAGoAZQBjAHQALgBoAHQAdABwADoALwAvAGYAbwBuAHQAZQBsAGwAbwAuAGMAbwBtAAAAAgAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAQIBAwEEAQUBBgEHAQgBCQEKAQsBDAENAQ4BDwEQAREBEgETARQBFQAEYjEwMANiMzMDYjUwA2IzNwRoZXJvA2gxcAczYmFkZ2VzBWltYWdlBHRleHQGcXVvdGVzBmJ1dHRvbgh0cnAtc2VjdAZvLXNlY3QIZGJsLXNlY3QHMzctcmVjdAloZXJvLXNlY3QHaW1hZ2UtcwZidXR0b24HZGl2aWRlcgAAAAA=); + src: + url(data:application/octet-stream;base64,d09GRgABAAAAAAqMAAsAAAAAFfwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIwleU9TLzIAAAFEAAAAQgAAAFZWr2MRY21hcAAAAYgAAAD+AAACzDmvQPxnbHlmAAACiAAABU8AAA0I8ZN0DWhlYWQAAAfYAAAAKwAAADYL3cwLaGhlYQAACAQAAAAdAAAAJAeQA7tobXR4AAAIJAAAAA8AAABQUAAAAGxvY2EAAAg0AAAAKgAAAColECGkbWF4cAAACGAAAAAfAAAAIAEwAPNuYW1lAAAIgAAAAXcAAAL6/7HTqHBvc3QAAAn4AAAAkgAAAMofvpJWeJxjYGRgYOBiMGCwY2DKSSzJY+BzcfMJYZBiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCAClZBUgAeJxjYGRhYJzAwMrAwNTJdIaBgaEfQjO+ZjBi5ACKMrAyM2AFAWmuKQwODE4MlczL/i9jiGFhYIgCCjOC5ADBXApxAAB4nM3SPW7CQBCG4Xf5/7FDgBZFqaIUOQWCghKExAkoKBAJCkJcKAdKlYOkJ9/YnyI3iVJmVw/WzhrPeD1AE6jLkzQgfZCI8a5oKuJ1ekW8wZvWE24VyZgyZ8GKNRu27Nhz5MSZy/Wqu6bMtLus7B54/d79aSQ9fcKd5n1lPvCoCSPGyjskZ6AabqjRoU9X1SXV1qStulp6SOuXDH8eSpbpMvQyj5TKWR016Yhq6CUV4Pz/YmTF76dXY+KLlEYys4jPLf6xsHjrpeWysoGsTcehb1uKc9lanMrO4nT21peDdeXZ1Fu8WPTb0dSL6phS9OjJ2nK26NuLtb4AZmUlAwAAeJy1VmtoFFcUvufe2Zl9JM5u9pXqbtfZdbMTElAz7m50jaXFIkRFqSitNpS2YsU+LNJWUJsfrdYf1YIoYimFQGkpUooUGqlJ6Y9A+gBBaOyP2Io/Smtr2h9iX8Y79J47u7PJPqL2sex8c865wz2Pe+45hwARP3ZVEUDIUiNksKu32gVHpfwgnSI6WUBIOK1GQ5GYZfQU8qFlHRmP0SP4jJEW3D5fa6uP3kDkLfQGpQLplGAm5EK3rzVC+QRjtFtsqs7YN0UWkxJZQza5+5egvL91G95jof4uQP1GE1raNYLwBMI5lxpxTB2hdIRC6hxj5xikJEenAl5+XgsENGp5A83oEOXnKaUWrX0L1xTp36Fy3LpIkRCYI3bZOdbovWgnbES0z8BGxuwzzH6sgbAc7ZYWGe0w4xPCnG7W1lA628YUyZBc0/hX7bJCGRDZ8YLq96s/an6/thsBTiPPlStXYDO8Yw/QKb/Gv9R8Po0Wcb1KR/gFuoRfKJ9/NT4lspZsmzu/4mk1CY5tfeDYhjx+K3lPY979vlF+PkwVxYEhBHgIkX8v6SlE+wPEUYQmufyAwrJM/LJMqVKDCjuM5GGmXK5Khcse6fcrbt7fRzZIr+/Ekzvmn0VT4CairSKyeYi3rt+eptcUOoDEAFV+U1gcLY8zZZdC2zEGAnY1lKJbbeU7fbrsmyWyvkRWk/VkC9lBXiKvkZPkPTJMxsk35Af3PlTv8m3uehxzr/Kk1Uisp7Csw1MhjApRmya1aWDV8P/39/RDzP1xeUGI6vOp48hvdoVbx8b452NjMF88g5FEojOR4B9FkkkzmQTV4SfxQLYzj4fxJxG3Iz/sCkf+1TI97dPsYbQE+jUf9av2MNoG/Siq0rr9CawWzxrxSKM6E9R5Of9jCtNwTwEUUexc5h0qe1frXiRngVtTK71okagac9YLNzU8zNAMpjXsTwMLTLNomvbb14AB7D67vsktz5q9uVyvWbK3AKx9XSQv2kJttlBkOglr1iooFkoQimhqF0SNfCad68iHrJ5YPBa3cte9bSzTHu5e5w+ZMWiJZUOtj5hL5vk8bRpbeLRziVe1Cz16PBgMzyvCV+3zg9mjxPV3ATNIhHSSFaJCknASrGgsGtGWqjpEi4ViXiSZJYTxWqHHEgJVyxeKhfyyjsWQydYKzu+HVGK5N/ByX1//foBUstfXcmDVSj4+uSL/9MqUAZTuhXWTywuCSYuWsZct9N/SFK1/ecFHD4D+FOw49lO9JHLxyONbQ5tbS30bvLpXuzyblWGTfp2g0+Icw43OMGTs02Mxnd5A5PfQSd5BpwU1EYxGg7Rbj/XwX0hlhjgmOtnMevMPZohqXdnjDwb9owg7G1DcPzQEi5yHkWCAfxzQ9QBdGwg2o02n3cmW95/57eTF8bLfM/u2u1dd3xZ7Y99+Hs2DBxEHqyT3QJd9EcYQm/tlVvxw9L8h/bjLueFF3Ox33PeQVP8q8jx46RLsg532KTotFH4mFd4vlbu0ySdpB58sn/mJsm6nf26SvWRW0c3WdMRa3qj5PtcoXm+6rd9+d8ZE8O2MSWHYnR/erz056KrOBF/ISUDOBCdrJgVJ7ak7ZMX1Uy1HmQAzoqKMhStlrX5mFDa/hXXsubPrP01guTL5wbqEOuiUMFBxvTf3aH1+MSe/6DMkIOos1re0CJbQI0KVaaT1D02Dm5rGB/GSML+8Kgr9lbfB1zRDxf+UHrC/QzFkArpp/1WZg47TP8s68PbO0lM346DzDWQ/q6rUfQTzhXmddEbdrbWCijHb9IC8zaPClCG6ZiZH/gYMNCZ1AHicY2BkYGAA4uNc/dvj+W2+MnCzMIDAlezD7cg08wuwOAcDE4gCACmDCdMAeJxjYGRgYF72fxkDAwsDCDC/YGBkQAUiAFdyA1QAAAB4nGNhYGBgoSIGAA1wAFEAAAAADAA4AKgA+gE4AbQCIgNSA5gDygQ2BFoEsgTWBRYFVAXIBgYGOAaEAAB4nGNgZGBgEGF4ziDEAAJMQMwFhAwM/8F8BgAikwIkAHichZHNTsJAFIXPIKBAYgwmrmflxqTlJ2HB1gQ2rCTpQlcVpgXSH1IGgj6Aax9B38Hn8TFceyi3mIiJM+nMd8+ce+enAJr4hMK+3fLbs0KN0Z5LOMVI+ARnGAuXyQ/CFTQwEa5ST4TruMFGuIFLvLOCKtcYveBDWKGp+sIlnKuR8Aku1L1wmbwQruBKPQtXqb8K1+GpN+EGrtVXXbPlw2HSeh77oXFXm/BmG0cH9TcUqWNvOEgTq9t3JlxHfhYw6Ha7vWL2TLaap4luO61CGprEZL41U/34pLlPx9pAB1ka610lE0WpXmbpwkysM7N22XfdQHRnksa8hZb+Q8fRrs8Rw0cIAxcrvnLIt95Si/7w/qf83nUMD0MMkPJPWsZt3HGfEGtW95EhkJVu3ntHsUd3xlPNc32X76B15BrSleROn6rBlM5HPHHc36dD1TJL88uYG5OKMxmeJCJrLPO1BZUJdQezPGuJPt/FPexZ+B26WOkbEmNxyAB4nG2MSw6CMABEO7S0gH/FY5BAGsN5qG2giVosxXh8BeLO2bzJJPNIRJZk5H9yRKBgiMEhkCBFhhXW2GCLHfY44IgTcpwJU1VZUiUlVZeJNeuMd7SreiFVo1szxPbetIYF8w78ObpgBq7GENwjCb4vBnMN3M1ItLrNRci68F+mk2pZZkfxewptX1YbT8gHPNwpqAAA) format("woff"), + url(data:application/octet-stream;base64,AAEAAAALAIAAAwAwR1NVQiCMJXkAAAE4AAAAVE9TLzJWr2MRAAABjAAAAFZjbWFwOa9A/AAAAjQAAALMZ2x5ZvGTdA0AAAUsAAANCGhlYWQL3cwLAAAA4AAAADZoaGVhB5ADuwAAALwAAAAkaG10eFAAAAAAAAHkAAAAUGxvY2ElECGkAAAFAAAAACptYXhwATAA8wAAARgAAAAgbmFtZf+x06gAABI0AAAC+nBvc3QfvpJWAAAVMAAAAMoAAQAAA6b/pgAABAAAAAAAA+gAAQAAAAAAAAAAAAAAAAAAABQAAQAAAAEAAMcK26dfDzz1AAsEAAAAAADUa8OHAAAAANRrw4cAAAAAA+gEAAAAAAgAAgAAAAAAAAABAAAAFADnABIAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKADAAPgACbGF0bgAOREZMVAAaAAQAAAAAAAAAAQAAAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAEEAAGQAAUAAAKJAswAAACPAokCzAAAAesAMgEIAAACAAUDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBmRWQAQABCAHkDpv+mAFwEAABaAAAAAQAAAAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAAAAAABQAAAAMAAAAsAAAABAAAAdgAAQAAAAAA0gADAAEAAAAsAAMACgAAAdgABACmAAAAHAAQAAMADABCAEUASQBSAFQAVwBlAGkAbQByAHUAdwB5//8AAABCAEQASQBRAFQAVwBlAGkAbQBvAHQAdwB5//8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABABwAHAAeAB4AIAAgACAAIAAgACAAJgAoACgAAAASABMADAARAA0ADwAQAA4AAgAIAAsACQAKAAEABAAFAAcAAwAGAAABBgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEgATDAAAABEAAAAAAAAADQ8AEAAADgAAAAAAAAAAAAAAAAACAAAACAAAAAsACQoBBAAFBwADAAYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAD0AAAAAAAAABMAAABCAAAAQgAAABIAAABEAAAARAAAABMAAABFAAAARQAAAAwAAABJAAAASQAAABEAAABRAAAAUQAAAA0AAABSAAAAUgAAAA8AAABUAAAAVAAAABAAAABXAAAAVwAAAA4AAABlAAAAZQAAAAIAAABpAAAAaQAAAAgAAABtAAAAbQAAAAsAAABvAAAAbwAAAAkAAABwAAAAcAAAAAoAAABxAAAAcQAAAAEAAAByAAAAcgAAAAQAAAB0AAAAdAAAAAUAAAB1AAAAdQAAAAcAAAB3AAAAdwAAAAMAAAB5AAAAeQAAAAYAAAAMADgAqAD6ATgBtAIiA1IDmAPKBDYEWgSyBNYFFgVUBcgGBgY4BoQAAAABAAAAAAPoBAAAAwAAMSERIQPo/BgEAAACAAAAAAOEAuwADwAbAAATIgYVERQWMyEyNjURNCYjBSEyFREUIyEiNRE0egkNDQkC9AkNDQn9DAL0AgL9DAIC7A0J/dQJDQ0JAiwJDRQC/dQDAwIsAgAABgAAAAADhALsAA8AHwAvADsARwBTAAATIgYVERQWOwEyNjURNCYjMyIGFREUFjsBMjY1ETQmIzMiBhURFBY7ATI2NRE0JiMFMzIVERQrASI1ETQhMzIVERQrASI1ETQhMzIVERQrASI1ETR6CQ0NCbsJDQ0JYgkNDQm6CQ0NCWIJDQ0JuwkNDQn9DLsCArsCAR+6AwO6AwEfuwICuwIC7AsI/c0HCwsHAjMICwsI/c0HCwsHAjMICwsI/c0HCwsHAjMICxEC/c0CAgIzAgL9zQICAjMCAv3NAgICMwIAAAAEAAAAAAOFAuwADwAbACsANwAAASIGFREUFjMhMjY1ETQmIwUhMhURFCMhIjURNCUiBhURFBYzITI2NRE0JiMFITIVERQjISI1ETQCHgkNDQkBUAkNDQn+sAFQAwP+sAP+XwkNDQkBUAkNDQn+sAFQAwP+sAMC7A0J/dQJDAwJAiwJDRMD/dQCAgIsAxINCf3UCQwMCQIsCQ0TA/3UAgICLAMAAAQAAAAAA4UC7AAPAB8AIwAnAAATIgYVERQWOwEyNjURNCYjMyIGFREUFjMhMjY1ETQmIwUzESMBIREhdAYKCgbnBwoKB28HCgoHAaoGCgoG/QTg4AFVAaP+XQLsCgf9yQcJCQcCNwcKCgf9yQcJCQcCNwcKFP3QAjD90AAGAAAAAAOFAuwADwAbACsAOwBLAFsAABMiBhURFBYzITI2NRE0JiMFITIVERQjISI1ETQXIgYdARQWOwEyNj0BNCYjMyIGHQEUFjMhMjY9ATQmIwUiBh0BFBYzITI2PQE0JiMFIgYdARQWOwEyNj0BNCYjegkNDQkC9AkNDQn9DAL0AgL9DAJYAgQEAlgCBAQCoAIEBAIBUgIEBAL95AIEBAIB7AIEBAL+rAIEBAK8AgQEAgLsDQn91AkNDQkCLAkNFAL91AMDAiwCQgQDJQMDAwMlAwQEAyUDAwMDJQMEfgQDhwMDAwOHAwTeBAMlAwMDAyUDBAAAAAUAAAAAA4IC7AAPAB8ALwA/AE8AABMiBh0BFBYzITI2PQE0JiMFIgYdARQWMyEyNj0BNCYjBSIGHQEUFjMhMjY9ATQmIwUiBh0BFBYzITI2PQE0JiMFIgYdARQWMyEyNj0BNCYjbQMEBAMB+gMEBAP+BgMEBAMDDgMEBAP88gMEBAMDDgMEBAP88gMEBAMDDgMEBAP88gMEBAMDDgMEBAMC6wQCXQMEBANdAgT1BAMXAwMDAxcDBGoEAhgCBAQCGAIEagQDFwMDAwMXAwRqBAIYAgQEAhgCBAAAAAASAAAAAAOEAqoADwAfAC8AMwA3ADsARABNAFYAZgB2AIYAlgCmALYAxgDWAOYAAAEiBhURFBY7ATI2NRE0JiMFIgYVERQWOwEyNjURNCYjMyIGFREUFjsBMjY1ETQmIxczESMBMxEjATMRIwEiBhQWMjY0JgUiBhQWMjY0JiEiBhQWMjY0JhciBh0BFBY7ATI2PQE0JiMFIgYdARQWOwEyNj0BNCYjMyIGHQEUFjsBMjY9ATQmIxciBh0BFBY7ATI2PQE0JiMFIgYdARQWOwEyNj0BNCYjMyIGHQEUFjsBMjY9ATQmIxciBh0BFBY7ATI2PQE0JiMFIgYdARQWOwEyNj0BNCYjMyIGHQEUFjsBMjY9ATQmIwKuBwkJB8YGCgoG/QAGCQkGxgcJCQdVBwkJB8YGCgoGWsPD/cfDwwEaw8MBfhQcHCkcHP2yFB0dKB0dAQYUHBwpHBzaAwQEA2QDBQUD/WMDBQUDZAMEBAO2AwQEA2QDBQUDuwMEBANkAwUFA/1jAwUFA2QDBAQDtgMEBANkAwUFA7sDBAQDZAMFBQP9YwMFBQNkAwQEA7YDBAQDZAMFBQMCqgkH/rYGCgoGAUoHCQIKBv62BwkJBwFKBgoKBv62BwkJBwFKBgoP/rkBRP65AUf+uQEcHCkcHCkcAhwpHBwpHBwpHBwpHJEEAwcDBAQDBwMEAgQDBwMFBQMHAwQEAwcDBQUDBwMEJQQDBwMEBAMHAwQCBAMHAwUFAwcDBAQDBwMFBQMHAwQlBAMHAwQEAwcDBAIEAwgDBAQDCAMEBAMIAwQEAwgDBAAAAAQAAAAAA4QC7AAPABsAJAArAAATIgYVERQWMyEyNjURNCYjBSEyFREUIyEiNRE0BSIGFBYyNjQmBQMhByEDB3oJDQ0JAvQJDQ0J/QwC9AIC/QwCAl0bKCg3KCj+nesBAwEBb7dNAuwNCf3UCQ0NCQIsCQ0UAv3UAwMCLAIlKDgnJzgoO/5WAQFLiwAAAQAAAAAC/gMgAB8AABMHMz4BNzY7AREUBwYrARUhNSMiJyY1ETMyFhcWFzMn8ggSAyMYEyxMChEoFgEMFiURDVkoMA4JBRIHAyCNKTAIBv42Mg8XEBATDjcByhgaECWNAAAAAAQAAAAAAxsDIQAUACkAOgBLAAATHQEzFRYVFAcxBg8BFTc2NzU2PQEzHQEzFxYVFAcxBg8BFTc2NzU2PQEFMxUUBwYHNTY3NjU0Ji8BIyUzFRQHBgc1Njc2NTQmLwEjzXsBHxw5CAt9PT1KewEBHx04CQx8Pjz9xto6NWs8HyEBAgJ3AUzaOTZrPB8iAgICdwMgCvwHBAdKOTYJAnwBD2cBZpHpCvwHBAdKOTYJAnwBD2cBZpHpFNWMYVoRVQ07PU8IDwgH3tWMYVoRVQ07PU8IDwgHAAAAAAIAAAAAA5QC+wAPABMAABMiBhURFBYzITI2NRE0JiMFIREheg8WFg8C9A8WFg/9GQLa/SYC+xYP/dQQFRUQAiwPFjL97QAAAAYAAAAAA5EDAAAPAB8ALwAzADcAOwAAEyIGFREUFjsBMjY1ETQmIzMiBhURFBY7ATI2NRE0JiMzIgYVERQWOwEyNjURNCYjBTMRIwEzESMBMxEjcgoQEAq8ChAQCmgKEBAKvAoQEApoChAQCrwKEBAK/QqgoAEkoKABJKCgAwAQC/21Cw8PCwJLCxAQC/21Cw8PCwJLCxAQC/21Cw8PCwJLCxAo/dACMP3QAjD90AAAAgAAAAADlAL7AA8AEwAAEyIGFREUFjMhMjY1ETQmIwUhESF6DxYWDwL0DxYWD/0ZAtr9JgL7Fg/91BAVFRACLA8WMv3tAAAABAAAAAADkwMAAA8AHwAjACcAABMiBhURFBYzITI2NRE0JiMzIgYVERQWMyEyNjURNCYjBSERIQEhESFwCxAQCwFFCxAQC34LEBALAUULEBAL/QUBK/7VAcMBK/7VAwAQC/21Cw8PCwJLCxAQC/21Cw8PCwJLCxAo/dACMP3QAAAEAAAAAAOOAvsADwAfACMAJwAAEyIGFREUFjsBMjY1ETQmIzMiBhURFBYzITI2NRE0JiMFMxEjASERIXULDw8L9gsQEAuFCxAQCwGDCw8PC/0Q29sBegFo/pgC+xAL/b8LDw8LAkELEBAL/b8LDw8LAkELECj92gIm/doABgAAAAADlAL7AA8AHwAvAD8ATwBTAAABIgYdARQWOwEyNj0BNCYjJSIGHQEUFjMhMjY9ATQmIyUiBh0BFBYzITI2PQE0JiMhIgYdARQWOwEyNj0BNCYjJyIGFREUFjMhMjY1ETQmIwUhESEBmQIEBAK8AgQEAv6lAgQEAgHsAgQEAv7cAgQEAgFSAgQEAv22AgQEAlgCBAQCqA8WFg8C9A8WFg/9GQLa/SYBKwMDJQMEBAMlAwPIAwOHAwQEA4cDA5YDAyUDBAQDJQMDAwMlAwQEAyUDA3IWD/3UEBUVEAIsDxYy/e0AAAQAAAAAA5QC+wAGAA8AHwAjAAABAyEVIQMHEyIGFBYyNjQmJSIGFREUFjMhMjY1ETQmIwUhESEBm+sBAwFut029HCcnOCgo/YQPFhYPAvQPFhYP/RkC2v0mAoT+VgEBS4sBBic4KCg4J1wWD/3UEBUVEAIsDxYy/e0AAAADAAAAAAOTAmwACwAbAB8AABMiHQEUMyEyPQE0IyUiBhURFBYzITI2NRE0JiMFIREh9wcHAfoHB/1+ChAQCgMKChAQCv0EAu79EgHTAiMCAiMCmA8L/t0KEBAKASMLDyj++QAABQAAAAADkwL4AAsAGwAfAC8AMwAAEyIdARQzITI9ATQjBSIGHQEUFjMhMjY9ATQmIwUhFSEDIgYdARQWMyEyNj0BNCYjBSEVIeoGBgH6Bwf9jAsQEAsDCAsQEAv9BQLu/RINCxAQCwMICxAQC/0FAu79EgHTAiMCAiMCWw8LvAoQEAq8Cw8ooAJHDwu8ChAQCrwLDyigAAAAABIA3gABAAAAAAAAAEMAAAABAAAAAAABAAkAQwABAAAAAAACAAcATAABAAAAAAADAAgAUwABAAAAAAAEAAgAWwABAAAAAAAFAAsAYwABAAAAAAAGAAgAbgABAAAAAAAKACsAdgABAAAAAAALABMAoQADAAEECQAAAIYAtAADAAEECQABABIBOgADAAEECQACAA4BTAADAAEECQADABABWgADAAEECQAEABABagADAAEECQAFABYBegADAAEECQAGABABkAADAAEECQAKAFYBoAADAAEECQALACYB9gogICAgCiAgICAgIAogICAgICAgIGltYWdlL3N2Zyt4bWwKICAgICAgICAKICAgICAgICAKICAgICAgCiAgICAKICBTVkdGb250IDFSZWd1bGFyZm9udDMzMzZmb250MzMzNlZlcnNpb24gMS4wZm9udDMzMzZHZW5lcmF0ZWQgYnkgc3ZnMnR0ZiBmcm9tIEZvbnRlbGxvIHByb2plY3QuaHR0cDovL2ZvbnRlbGxvLmNvbQAKACAAIAAgACAACgAgACAAIAAgACAAIAAKACAAIAAgACAAIAAgACAAIABpAG0AYQBnAGUALwBzAHYAZwArAHgAbQBsAAoAIAAgACAAIAAgACAAIAAgAAoAIAAgACAAIAAgACAAIAAgAAoAIAAgACAAIAAgACAACgAgACAAIAAgAAoAIAAgAFMAVgBHAEYAbwBuAHQAIAAxAFIAZQBnAHUAbABhAHIAZgBvAG4AdAAzADMAMwA2AGYAbwBuAHQAMwAzADMANgBWAGUAcgBzAGkAbwBuACAAMQAuADAAZgBvAG4AdAAzADMAMwA2AEcAZQBuAGUAcgBhAHQAZQBkACAAYgB5ACAAcwB2AGcAMgB0AHQAZgAgAGYAcgBvAG0AIABGAG8AbgB0AGUAbABsAG8AIABwAHIAbwBqAGUAYwB0AC4AaAB0AHQAcAA6AC8ALwBmAG8AbgB0AGUAbABsAG8ALgBjAG8AbQAAAAIAAAAAAAAACgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAECAQMBBAEFAQYBBwEIAQkBCgELAQwBDQEOAQ8BEAERARIBEwEUARUABGIxMDADYjMzA2I1MANiMzcEaGVybwNoMXAHM2JhZGdlcwVpbWFnZQR0ZXh0BnF1b3RlcwZidXR0b24IdHJwLXNlY3QGby1zZWN0CGRibC1zZWN0BzM3LXJlY3QJaGVyby1zZWN0B2ltYWdlLXMGYnV0dG9uB2RpdmlkZXIAAAAA) format("truetype"), + url(data:application/octet-stream;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgIHhtbG5zOmNjPSJodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9ucyMiCiAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIKICAgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxuczpzb2RpcG9kaT0iaHR0cDovL3NvZGlwb2RpLnNvdXJjZWZvcmdlLm5ldC9EVEQvc29kaXBvZGktMC5kdGQiCiAgIHhtbG5zOmlua3NjYXBlPSJodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy9uYW1lc3BhY2VzL2lua3NjYXBlIgogICB3aWR0aD0iMTAwMCIKICAgaGVpZ2h0PSIxMDAwIgogICB2aWV3Qm94PSIwIDAgOTk5Ljk5OTk5IDk5OS45OTk5OSIKICAgaWQ9InN2ZzIiCiAgIHZlcnNpb249IjEuMSIKICAgaW5rc2NhcGU6dmVyc2lvbj0iMC45MSByMTM3MjUiCiAgIHNvZGlwb2RpOmRvY25hbWU9Im1haW4tZm9udHMuc3ZnIj4KICA8ZGVmcwogICAgIGlkPSJkZWZzNCI+CiAgICA8bWFya2VyCiAgICAgICBpbmtzY2FwZTpzdG9ja2lkPSJBcnJvdzFMc3RhcnQiCiAgICAgICBvcmllbnQ9ImF1dG8iCiAgICAgICByZWZZPSIwLjAiCiAgICAgICByZWZYPSIwLjAiCiAgICAgICBpZD0iQXJyb3cxTHN0YXJ0IgogICAgICAgc3R5bGU9Im92ZXJmbG93OnZpc2libGUiCiAgICAgICBpbmtzY2FwZTppc3N0b2NrPSJ0cnVlIj4KICAgICAgPHBhdGgKICAgICAgICAgaWQ9InBhdGg0NDMxIgogICAgICAgICBkPSJNIDAuMCwwLjAgTCA1LjAsLTUuMCBMIC0xMi41LDAuMCBMIDUuMCw1LjAgTCAwLjAsMC4wIHogIgogICAgICAgICBzdHlsZT0iZmlsbC1ydWxlOmV2ZW5vZGQ7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjEuMHB0IgogICAgICAgICB0cmFuc2Zvcm09InNjYWxlKDAuOCkgdHJhbnNsYXRlKDEyLjUsMCkiIC8+CiAgICA8L21hcmtlcj4KICAgIDxpbmtzY2FwZTpwZXJzcGVjdGl2ZQogICAgICAgc29kaXBvZGk6dHlwZT0iaW5rc2NhcGU6cGVyc3AzZCIKICAgICAgIGlua3NjYXBlOnZwX3g9IjAgOiA1MDAgOiAxIgogICAgICAgaW5rc2NhcGU6dnBfeT0iMCA6IDEwMDAgOiAwIgogICAgICAgaW5rc2NhcGU6dnBfej0iOTk5Ljk5OTk5IDogNTAwIDogMSIKICAgICAgIGlua3NjYXBlOnBlcnNwM2Qtb3JpZ2luPSI1MDAgOiAzMzMuMzMzMzMgOiAxIgogICAgICAgaWQ9InBlcnNwZWN0aXZlNDkyNCIgLz4KICAgIDxmb250CiAgICAgICBob3Jpei1hZHYteD0iMTAyNCIKICAgICAgIGlkPSJmb250MzMzNiIKICAgICAgIGlua3NjYXBlOmxhYmVsPSJmb250IDEiCiAgICAgICBob3Jpei1vcmlnaW4teD0iMCIKICAgICAgIGhvcml6LW9yaWdpbi15PSIwIgogICAgICAgdmVydC1vcmlnaW4teD0iNDUiCiAgICAgICB2ZXJ0LW9yaWdpbi15PSI5MCIKICAgICAgIHZlcnQtYWR2LXk9IjkwIj4KICAgICAgPGZvbnQtZmFjZQogICAgICAgICB1bml0cy1wZXItZW09IjEwMjQiCiAgICAgICAgIGlkPSJmb250LWZhY2UzMzM4IgogICAgICAgICBmb250LWZhbWlseT0iU1ZHRm9udCAxIiAvPgogICAgICA8bWlzc2luZy1nbHlwaAogICAgICAgICBkPSJNMCwwaDEwMDB2MTAyNGgtMTAwMHoiCiAgICAgICAgIGlkPSJtaXNzaW5nLWdseXBoMzM0MCIgLz4KICAgICAgPGdseXBoCiAgICAgICAgIGdseXBoLW5hbWU9ImIxMDAiCiAgICAgICAgIGlkPSJnbHlwaDMzNDIiCiAgICAgICAgIHVuaWNvZGU9InEiCiAgICAgICAgIGQ9Ik0gMTIyLjA2MTc0LDc0Ny42Mzc3MyBDIDExMC4wMDgxMyw3NDcuNjM3NzMgMTAwLDczNy43MTAyNSAxMDAsNzI1Ljc1Mzc5IGwgMCwtNTU2LjIzMjM2IGMgMCwtMTEuOTU2NCAxMC4wMDgxNCwtMjEuODgzNyAyMi4wNjE3NCwtMjEuODgzNyBsIDc1NS44NzY1MiwwIGMgMTIuMDUzNiwwIDIyLjA2MTc0LDkuOTI3NSAyMi4wNjE3NCwyMS44ODM3IGwgMCw1NTYuMjMyMzYgYyAwLDExLjk1NjQ2IC0xMC4wMDgxMiwyMS44ODM5NCAtMjIuMDYxNzQsMjEuODgzOTQgbCAtNzU1Ljg3NjUyLDAgeiBtIDAsLTE5LjM1NDg0IDc1NS44NzY1MiwwIGMgMS41ODEzNSwwIDIuNTQ5NTQsLTAuOTYwMzkgMi41NDk1NCwtMi41MjkxIGwgMCwtNTU2LjIzMjM2IGMgMCwtMS41Njg1IC0wLjk2ODE3LC0yLjUyODkgLTIuNTQ5NTQsLTIuNTI4OSBsIC03NTUuODc2NTIsMCBjIC0xLjU4MTM2LDAgLTIuNTQ5NTUsMC45NjA0IC0yLjU0OTU1LDIuNTI4OSBsIDAsNTU2LjIzMjM2IGMgMCwxLjU2ODcxIDAuOTY4MjEsMi41MjkxIDIuNTQ5NTUsMi41MjkxIHoiIC8+CiAgICAgIDxnbHlwaAogICAgICAgICBnbHlwaC1uYW1lPSJiMzMiCiAgICAgICAgIGlkPSJnbHlwaDQzMDYiCiAgICAgICAgIHVuaWNvZGU9ImUiCiAgICAgICAgIGQ9Im0gMTIyLjEyMzMyLDc0Ny42Mzc3MyBjIC0xMi4wODYyNywwIC0yMi4xMjMzMjIsLTguNTQ5MDYgLTIyLjEyMzMyMiwtMTguODQ3NjQgbCAwLC01NjIuMzAxNTYgYyAwLC0xMC4yOTg1IDEwLjAzNzA4MiwtMTguODUwOCAyMi4xMjMzMjIsLTE4Ljg1MDggbCAxODYuNjA5ODUsMCBjIDEyLjA4NjI4LDAgMjIuMTIzMzIsOC41NTIzIDIyLjEyMzMyLDE4Ljg1MDggbCAwLDU2Mi4zMDE1NiBjIDAsMTAuMjk4NTggLTEwLjAzNzAyLDE4Ljg0NzY0IC0yMi4xMjMzMiwxOC44NDc2NCBsIC0xODYuNjA5ODUsMCB6IG0gMjg0LjU2OTgyLDAgYyAtMTIuMDg2MjUsMCAtMjIuMTE5NDksLTguNTQ5MDYgLTIyLjExOTQ5LC0xOC44NDc2NCBsIDAsLTU2Mi4zMDE1NiBjIDAsLTEwLjI5ODUgMTAuMDMzMjQsLTE4Ljg1MDggMjIuMTE5NDksLTE4Ljg1MDggbCAxODYuNjEzNzIsMCBjIDEyLjA4NjIyLDAgMjIuMTE5NSw4LjU1MjMgMjIuMTE5NSwxOC44NTA4IGwgMCw1NjIuMzAxNTYgYyAwLDEwLjI5ODU4IC0xMC4wMzMyOCwxOC44NDc2NCAtMjIuMTE5NSwxOC44NDc2NCBsIC0xODYuNjEzNzIsMCB6IG0gMjg0LjU3MzYyLDAgYyAtMTIuMDg2MjIsMCAtMjIuMTIzMywtOC41NDkwNiAtMjIuMTIzMywtMTguODQ3NjQgbCAwLC01NjIuMzAxNTYgYyAwLC0xMC4yOTg1IDEwLjAzNzA5LC0xOC44NTA4IDIyLjEyMzMsLTE4Ljg1MDggbCAxODYuNjEzNzQsMCBjIDEyLjA4NjIsMCAyMi4xMTk1LDguNTUyMyAyMi4xMTk1LDE4Ljg1MDggbCAwLDU2Mi4zMDE1NiBjIDAsMTAuMjk4NTggLTEwLjAzMzMsMTguODQ3NjQgLTIyLjExOTUsMTguODQ3NjQgbCAtMTg2LjYxMzc0LDAgeiBtIC01NjkuMTQzNDQsLTE2LjY2NjYxIDE4Ni42MDk4NSwwIGMgMS41ODgzOCwwIDIuNTYzNDMsLTAuODI3NjEgMi41NjM0MywtMi4xODEwMyBsIDAsLTU2Mi4zMDE1NiBjIDAsLTEuMzUzMyAtMC45NzUwMiwtMi4xODQzIC0yLjU2MzQzLC0yLjE4NDMgbCAtMTg2LjYwOTg1LDAgYyAtMS41ODg0MSwwIC0yLjU2MzQxLDAuODMxIC0yLjU2MzQxLDIuMTg0MyBsIDAsNTYyLjMwMTU2IGMgMCwxLjM1MzQyIDAuOTc1MDMsMi4xODEwMyAyLjU2MzQxLDIuMTgxMDMgeiBtIDI4NC41Njk4MiwwIDE4Ni42MTM3MiwwIGMgMS41ODgzNywwIDIuNTU5NiwtMC44Mjc2MSAyLjU1OTYsLTIuMTgxMDMgbCAwLC01NjIuMzAxNTYgYyAwLC0xLjM1MzMgLTAuOTcxMjMsLTIuMTg0MyAtMi41NTk2LC0yLjE4NDMgbCAtMTg2LjYxMzcyLDAgYyAtMS41ODgzNywwIC0yLjU1OTYxLDAuODMxIC0yLjU1OTYxLDIuMTg0MyBsIDAsNTYyLjMwMTU2IGMgMCwxLjM1MzQyIDAuOTcxMjcsMi4xODEwMyAyLjU1OTYxLDIuMTgxMDMgeiBtIDI4NC41NzM2MiwwIDE4Ni42MTM3NCwwIGMgMS41ODg0LDAgMi41NTk1LC0wLjgyNzYxIDIuNTU5NSwtMi4xODEwMyBsIDAsLTU2Mi4zMDE1NiBjIDAsLTEuMzUzMyAtMC45NzExLC0yLjE4NDMgLTIuNTU5NSwtMi4xODQzIGwgLTE4Ni42MTM3NCwwIGMgLTEuNTg4MzcsMCAtMi41NjM0MSwwLjgzMSAtMi41NjM0MSwyLjE4NDMgbCAwLDU2Mi4zMDE1NiBjIDAsMS4zNTM0MiAwLjk3NTA0LDIuMTgxMDMgMi41NjM0MSwyLjE4MTAzIHoiIC8+CiAgICAgIDxnbHlwaAogICAgICAgICBnbHlwaC1uYW1lPSJiNTAiCiAgICAgICAgIGlkPSJnbHlwaDQ4ODkiCiAgICAgICAgIHVuaWNvZGU9InciCiAgICAgICAgIGQ9Im0gNTQxLjk4MzM1LDc0Ny42Mzc2OSBjIC0xMS45OTgyLDAgLTIxLjk1ODkzLC05Ljg1MjQ0IC0yMS45NTg5MywtMjEuNzIwMjUgbCAwLC01NTUuNTk3MTUgYyAwLC0xMS44Njc4MyA5Ljk2MDcxLC0yMS43MTYzMiAyMS45NTg5MywtMjEuNzE2MzIgbCAzMzYuMDU3NzIsMCBjIDExLjk5ODIyLDAgMjEuOTU4OTQsOS44NDg0OSAyMS45NTg5NCwyMS43MTYzMiBsIDAsNTU1LjU5NzE0IGMgMCwxMS44Njc4MSAtOS45NjA3NCwyMS43MjAyNSAtMjEuOTU4OTQsMjEuNzIwMjUgbCAtMzM2LjA1NzcyLDAgeiBtIDAsLTE5LjA1NTcxIDMzNi4wNTc3MiwwIGMgMS42NTk3MiwwIDIuNjk3NjMsLTEuMDIyODggMi42OTc2MywtMi42NjQ1NCBsIDAsLTU1NS41OTcxNSBjIDAsLTEuNjQxNTUgLTEuMDM3OTMsLTIuNjY0NTMgLTIuNjk3NjMsLTIuNjY0NTMgbCAtMzM2LjA1NzcyLDAgYyAtMS42NTk3LDAgLTIuNjk3NjMsMS4wMjI5OSAtMi42OTc2MywyLjY2NDUzIGwgMCw1NTUuNTk3MTQgYyAwLDEuNjQxNjYgMS4wMzc5MSwyLjY2NDU0IDIuNjk3NjMsMi42NjQ1NCB6IG0gLTQyMC4wMjQ0MSwxOC4wODk1MyBjIC0xMS45OTgyMSwwIC0yMS45NTg5NDgsLTkuODUyNDUgLTIxLjk1ODk0OCwtMjEuNzIwMjUgbCAwLC01NTUuNTk3MTYgYyAwLC0xMS44Njc4MiA5Ljk2MDcxOCwtMjEuNzE2MzMgMjEuOTU4OTQ4LC0yMS43MTYzMyBsIDMzNi4wNTc3LDAgYyAxMS45OTgyMiwwIDIxLjk1ODk0LDkuODQ4NTEgMjEuOTU4OTQsMjEuNzE2MzMgbCAwLDU1NS41OTcxNSBjIDAsMTEuODY3OCAtOS45NjA3NCwyMS43MjAyNSAtMjEuOTU4OTQsMjEuNzIwMjUgbCAtMzM2LjA1NzcsMCB6IG0gMCwtMTkuMDU1NzEgMzM2LjA1NzcsMCBjIDEuNjU5NzIsMCAyLjY5NzYzLC0xLjAyMjg4IDIuNjk3NjMsLTIuNjY0NTQgbCAwLC01NTUuNTk3MTYgYyAwLC0xLjY0MTU0IC0xLjAzNzkzLC0yLjY2NDU0IC0yLjY5NzYzLC0yLjY2NDU0IGwgLTMzNi4wNTc3LDAgYyAtMS42NTk3MywwIC0yLjY5NzY1LDEuMDIzIC0yLjY5NzY1LDIuNjY0NTQgbCAwLDU1NS41OTcxNSBjIDAsMS42NDE2OCAxLjAzNzksMi42NjQ1NCAyLjY5NzY1LDIuNjY0NTQgeiIgLz4KICAgICAgPGdseXBoCiAgICAgICAgIGdseXBoLW5hbWU9ImIzNyIKICAgICAgICAgaWQ9ImdseXBoNDkxNiIKICAgICAgICAgdW5pY29kZT0iciIKICAgICAgICAgZD0ibSAxMTYuMjg1MTUsNzQ3LjYzNzc1IGMgLTguODQ5MiwwIC0xNi4yODUxNTMsLTcuNDM2NzIgLTE2LjI4NTE1MywtMTYuMjg1MTYgbCAwLC01NjcuNDI5NjggYyAwLC04Ljg0ODQgNy40MzU5NzMsLTE2LjI4NTIgMTYuMjg1MTUzLC0xNi4yODUyIGwgMjMxLjE3OTY4LDAgYyA4Ljg0OTE2LDAgMTYuMjg1MTcsNy40MzY4IDE2LjI4NTE3LDE2LjI4NTIgbCAwLDU2Ny40Mjk2OCBjIDAsOC44NDg0NCAtNy40MzU5NywxNi4yODUxNiAtMTYuMjg1MTcsMTYuMjg1MTYgbCAtMjMxLjE3OTY3LDAgeiBtIDM0MS4yNDk5OSwwIGMgLTguODQ5MTksMCAtMTYuMjg1MTYsLTcuNDM2NzIgLTE2LjI4NTE2LC0xNi4yODUxNiBsIDAsLTU2Ny40Mjk2OCBjIDAsLTguODQ4NCA3LjQzNTk5LC0xNi4yODUyIDE2LjI4NTE2LC0xNi4yODUyIGwgNDI2LjE3OTY2LDAgYyA4Ljg0OTIxLDAgMTYuMjg1Miw3LjQzNjggMTYuMjg1MiwxNi4yODUyIGwgMCw1NjcuNDI5NjggYyAwLDguODQ4NDQgLTcuNDM1OTksMTYuMjg1MTYgLTE2LjI4NTIsMTYuMjg1MTYgbCAtNDI2LjE3OTY2LDAgeiBtIC0zMzcuNTM1MTYsLTIwIDIyMy43NSwwIDAsLTU2MC4wMDAwNCAtMjIzLjc1LDAgMCw1NjAuMDAwMDQgeiBtIDM0MS4yNSwwIDQxOC43NTAwMiwwIDAsLTU2MC4wMDAwNCAtNDE4Ljc1LDAgMCw1NjAuMDAwMDQgeiIgLz4KICAgICAgPGdseXBoCiAgICAgICAgIGdseXBoLW5hbWU9Imhlcm8iCiAgICAgICAgIGlkPSJnbHlwaDQ5ODYiCiAgICAgICAgIHVuaWNvZGU9InQiCiAgICAgICAgIGQ9Im0gMTIyLjA2MjQ4LDc0Ny42Mzc3MyBjIC0xMi4wNTM2LDAgLTIyLjA2MjQ5NSwtOS45Mjg0IC0yMi4wNjI0OTUsLTIxLjg4NDggbCAwLC01NTYuMjMyNCBjIDAsLTExLjk1NjQgMTAuMDA4ODk1LC0yMS44ODI4IDIyLjA2MjQ5NSwtMjEuODgyOCBsIDc1NS44NzUwMywwIGMgMTIuMDUzNiwwIDIyLjA2MjUsOS45MjY2IDIyLjA2MjUsMjEuODgyOCBsIDAsNTU2LjIzMjQgYyAwLDExLjk1NjQgLTEwLjAwODgsMjEuODg0OCAtMjIuMDYyNSwyMS44ODQ4IHogbSAwLC0xOS4zNTU1IDc1NS44NzUwMywwIGMgMS41ODE0LDAgMi41NTA3OCwtMC45NjA2IDIuNTUwNzgsLTIuNTI5MyBsIDAsLTU1Ni4yMzI0IGMgMCwtMS41Njg1IC0wLjk2OTM4LC0yLjUyNzQgLTIuNTUwNzgsLTIuNTI3NCBsIC03NTUuODc1MDMsMCBjIC0xLjU4MTMsMCAtMi41NTA3LDAuOTU4OSAtMi41NTA3LDIuNTI3NCBsIDAsNTU2LjIzMjQgYyAwLDEuNTY4NyAwLjk2OTQsMi41MjkzIDIuNTUwNywyLjUyOTMgeiBtIDg2LjIyMjcsLTY2LjY0NDUgYyAtMy40ODE2LDAgLTYuMjg1MiwtMi44MDMyIC02LjI4NTIsLTYuMjg1MiBsIDAsLTM3LjQyOTcgYyAwLC0zLjQ4MiAyLjgwMzYsLTYuMjg1MSA2LjI4NTIsLTYuMjg1MSBsIDg3LjQyOTY3LDAgYyAzLjQ4MTYsMCA2LjI4NTE2LDIuODAzMSA2LjI4NTE2LDYuMjg1MSBsIDAsMzcuNDI5NyBjIDAsMy40ODIgLTIuODAzNTYsNi4yODUyIC02LjI4NTE2LDYuMjg1MiB6IG0gMjQ3Ljk5OTk5LDAgYyAtMy40ODE2LDAgLTYuMjg1MTYsLTIuODAzMiAtNi4yODUxNiwtNi4yODUyIGwgMCwtMzcuNDI5NyBjIDAsLTMuNDgyIDIuODAzNTYsLTYuMjg1MSA2LjI4NTE2LC02LjI4NTEgbCAzMzcuNDI5NjgsMCBjIDMuNDgxNiwwIDYuMjg1MTYsMi44MDMxIDYuMjg1MTYsNi4yODUxIGwgMCwzNy40Mjk3IGMgMCwzLjQ4MiAtMi44MDM1Niw2LjI4NTIgLTYuMjg1MTYsNi4yODUyIHogbSAtMjAyLC0xMjYgYyAtMy40ODE2LDAgLTYuMjg1MTYsLTIuODAzMiAtNi4yODUxNiwtNi4yODUyIGwgMCwtMTM1LjQyOTcgYyAwLC0zLjQ4MiAyLjgwMzU2LC02LjI4NTEgNi4yODUxNiwtNi4yODUxIGwgNDkxLjQyOTY4LDAgYyAzLjQ4MTYxLDAgNi4yODUxNiwyLjgwMzEgNi4yODUxNiw2LjI4NTEgbCAwLDEzNS40Mjk3IGMgMCwzLjQ4MiAtMi44MDM1NSw2LjI4NTIgLTYuMjg1MTYsNi4yODUyIHogbSAxNTIsLTIyMiBjIC0zLjQ4MTYsMCAtNi4yODUxNiwtMi44MDMyIC02LjI4NTE2LC02LjI4NTIgbCAwLC0zNy40Mjk3IGMgMCwtMy40ODIgMi44MDM1NiwtNi4yODUxIDYuMjg1MTYsLTYuMjg1MSBsIDE4Ny40Mjk2OCwwIGMgMy40ODE2MSwwIDYuMjg1MTYsMi44MDMxIDYuMjg1MTYsNi4yODUxIGwgMCwzNy40Mjk3IGMgMCwzLjQ4MiAtMi44MDM1NSw2LjI4NTIgLTYuMjg1MTYsNi4yODUyIHoiIC8+CiAgICAgIDxnbHlwaAogICAgICAgICBnbHlwaC1uYW1lPSJoMXAiCiAgICAgICAgIGlkPSJnbHlwaDUwMDciCiAgICAgICAgIHVuaWNvZGU9InkiCiAgICAgICAgIGQ9Im0gMTA4Ljc3MzQ0LDc0Ny4xMzc3MyBjIC0zLjQ4MTYsMCAtNi4yODMyMSwtMi44MDMxOSAtNi4yODMyMSwtNi4yODUxNiBsIDAsLTkzLjI1OTc2IGMgMCwtMy40ODE5NiAyLjgwMTYxLC02LjI4NTE2IDYuMjgzMjEsLTYuMjg1MTYgbCA1MDYuNDUxMTcsMCBjIDMuNDgxNjEsMCA2LjI4NTE2LDIuODAzMiA2LjI4NTE2LDYuMjg1MTYgbCAwLDkzLjI1OTc2IGMgMCwzLjQ4MTk3IC0yLjgwMzU1LDYuMjg1MTYgLTYuMjg1MTYsNi4yODUxNiBsIC01MDYuNDUxMTcsMCB6IG0gMCwtMjQ1LjU1NDY5IGMgLTMuNDgxNiwwIC02LjI4MzIxLC0yLjgwMzE5IC02LjI4MzIxLC02LjI4NTE1IGwgMCwtMjMuNDEyMTEgYyAwLC0zLjQ4MTk3IDIuODAxNjEsLTYuMjg1MTYgNi4yODMyMSwtNi4yODUxNiBsIDc4Mi40NTExNywwIGMgMy40ODE2LDAgNi4yODUxNiwyLjgwMzE5IDYuMjg1MTYsNi4yODUxNiBsIDAsMjMuNDEyMTEgYyAwLDMuNDgxOTYgLTIuODAzNTYsNi4yODUxNSAtNi4yODUxNiw2LjI4NTE1IGwgLTc4Mi40NTExNywwIHogbSAwLC0xMDUuNDYyODkgYyAtMy40ODE2LDAgLTYuMjgzMjEsLTIuODAzMTkgLTYuMjgzMjEsLTYuMjg1MTUgbCAwLC0yMy40MTIxMSBjIDAsLTMuNDgxOTcgMi44MDE2MSwtNi4yODUxNiA2LjI4MzIxLC02LjI4NTE2IGwgNzgyLjQ1MTE3LDAgYyAzLjQ4MTYsMCA2LjI4NTE2LDIuODAzMTkgNi4yODUxNiw2LjI4NTE2IGwgMCwyMy40MTIxMSBjIDAsMy40ODE5NiAtMi44MDM1Niw2LjI4NTE1IC02LjI4NTE2LDYuMjg1MTUgbCAtNzgyLjQ1MTE3LDAgeiBtIDAsLTEwNi41MzcxMSBjIC0zLjQ4MTYsMCAtNi4yODMyMSwtMi44MDMxOSAtNi4yODMyMSwtNi4yODUxNSBsIDAsLTIzLjQxMjExIGMgMCwtMy40ODE5NyAyLjgwMTYxLC02LjI4NTE2IDYuMjgzMjEsLTYuMjg1MTYgbCA3ODIuNDUxMTcsMCBjIDMuNDgxNiwwIDYuMjg1MTYsMi44MDMxOSA2LjI4NTE2LDYuMjg1MTYgbCAwLDIzLjQxMjExIGMgMCwzLjQ4MTk2IC0yLjgwMzU2LDYuMjg1MTUgLTYuMjg1MTYsNi4yODUxNSBsIC03ODIuNDUxMTcsMCB6IG0gMCwtMTA1LjQ2Mjg5IGMgLTMuNDgxNiwwIC02LjI4MzIxLC0yLjgwMzE5IC02LjI4MzIxLC02LjI4NTE1IGwgMCwtMjMuNDEyMTEgYyAwLC0zLjQ4MTk3IDIuODAxNjEsLTYuMjg1MTYgNi4yODMyMSwtNi4yODUxNiBsIDc4Mi40NTExNywwIGMgMy40ODE2LDAgNi4yODUxNiwyLjgwMzE5IDYuMjg1MTYsNi4yODUxNiBsIDAsMjMuNDEyMTEgYyAwLDMuNDgxOTYgLTIuODAzNTYsNi4yODUxNSAtNi4yODUxNiw2LjI4NTE1IGwgLTc4Mi40NTExNywwIHoiIC8+CiAgICAgIDxnbHlwaAogICAgICAgICBnbHlwaC1uYW1lPSIzYmFkZ2VzIgogICAgICAgICBpZD0iZ2x5cGg1MDc3IgogICAgICAgICB1bmljb2RlPSJ1IgogICAgICAgICBkPSJtIDY4NS43Mjg1Miw2ODEuOTk2MDkgYyAtOC42MTgzLDAgLTE1LjgyNjE4LC03LjIwODUgLTE1LjgyNjE4LC0xNS44MjgxMiBsIDAsLTMzMC4wMzkwNiBjIDAsLTguNjE5NjMgNy4yMDc4OCwtMTUuODI4MTMgMTUuODI2MTgsLTE1LjgyODEzIGwgMTk3Ljk0NzI2LDAgYyA4LjYxODE4LDAgMTUuODI0MjIsNy4yMDg1IDE1LjgyNDIyLDE1LjgyODEzIGwgMCwzMzAuMDM5MDYgYyAwLDguNjE5NjIgLTcuMjA1OTIsMTUuODI4MTIgLTE1LjgyNDIyLDE1LjgyODEyIGwgLTE5Ny45NDcyNiwwIHogbSAtNTY5LjQwMjM1LC0yLjI5Njg3IGMgLTguNjE4MjksMCAtMTUuODI2MTcsLTcuMjA4NSAtMTUuODI2MTcsLTE1LjgyODEzIGwgMCwtMzMwLjAzOTA2IGMgMCwtOC42MTk2MiA3LjIwNzg4LC0xNS44MjgxMiAxNS44MjYxNywtMTUuODI4MTIgbCAxOTcuOTQ3MjcsMCBjIDguNjE4MTgsMCAxNS44MjQyMiw3LjIwODUgMTUuODI0MjIsMTUuODI4MTIgbCAwLDMzMC4wMzkwNiBjIDAsOC42MTk2MyAtNy4yMDU5MywxNS44MjgxMyAtMTUuODI0MjIsMTUuODI4MTMgbCAtMTk3Ljk0NzI3LDAgeiBtIDI4Mi40MDQzLDAgYyAtOC42MTgzLDAgLTE1LjgyNjE3LC03LjIwODUgLTE1LjgyNjE3LC0xNS44MjgxMyBsIDAsLTMzMC4wMzkwNiBjIDAsLTguNjE5NjIgNy4yMDc4NywtMTUuODI4MTIgMTUuODI2MTcsLTE1LjgyODEyIGwgMTk3Ljk0NzI2LDAgYyA4LjYxODE4LDAgMTUuODI0MjIsNy4yMDg1IDE1LjgyNDIyLDE1LjgyODEyIGwgMCwzMzAuMDM5MDYgYyAwLDguNjE5NjMgLTcuMjA1OTIsMTUuODI4MTMgLTE1LjgyNDIyLDE1LjgyODEzIGwgLTE5Ny45NDcyNiwwIHogbSAyODguMzkyNTgsLTE0LjkyNTc4IDE5NS4xNTYyNSwwIDAsLTMyNy4yNSAtMTk1LjE1NjI1LDAgMCwzMjcuMjUgeiBtIC01NjkuNDAyMzUsLTIuMjk2ODggMTk1LjE1NjI1LDAgMCwtMzI3LjI1IC0xOTUuMTU2MjUsMCAwLDMyNy4yNSB6IG0gMjgyLjQwNDMsMCAxOTUuMTU4MiwwIDAsLTMyNy4yNSAtMTk1LjE1ODIsMCAwLDMyNy4yNSB6IG0gMzgyLjI3OTMsLTQzLjA2MDU0IGMgLTI2Ljk0NTcsMCAtNDguNzg5MDcsLTIxLjg0OTEzIC00OC43ODkwNywtNDguODAwNzkgMCwtMjYuOTUxNjYgMjEuODQzMzcsLTQ4Ljc5ODgyIDQ4Ljc4OTA3LC00OC43OTg4MiAyNi45NDU3LDAgNDguNzkxMDEsMjEuODQ3MTYgNDguNzkxMDEsNDguNzk4ODIgMCwyNi45NTE2NiAtMjEuODQ1MzEsNDguODAwNzkgLTQ4Ljc5MTAxLDQ4LjgwMDc5IHogbSAtNTY5LjQwMjM1LC0yLjI5Njg4IGMgLTI2Ljk0NTcsMCAtNDguNzg5MDYsLTIxLjg0OTEyIC00OC43ODkwNiwtNDguODAwNzggMCwtMjYuOTUxNjYgMjEuODQzMzYsLTQ4Ljc5ODgzIDQ4Ljc4OTA2LC00OC43OTg4MyAyNi45NDU3LDAgNDguNzkxMDIsMjEuODQ3MTcgNDguNzkxMDIsNDguNzk4ODMgMCwyNi45NTE2NiAtMjEuODQ1MzIsNDguODAwNzggLTQ4Ljc5MTAyLDQ4LjgwMDc4IHogbSAyODIuNDA2MjUsMCBjIC0yNi45NDU3LDAgLTQ4Ljc4OTA2LC0yMS44NDkxMiAtNDguNzg5MDYsLTQ4LjgwMDc4IDAsLTI2Ljk1MTY2IDIxLjg0MzM2LC00OC43OTg4MyA0OC43ODkwNiwtNDguNzk4ODMgMjYuOTQ1NywwIDQ4Ljc4OTA3LDIxLjg0NzE3IDQ4Ljc4OTA3LDQ4Ljc5ODgzIDAsMjYuOTUxNjYgLTIxLjg0MzM3LDQ4LjgwMDc4IC00OC43ODkwNyw0OC44MDA3OCB6IE0gNzMzLjk0MzM2LDQ3Mi40NDE0MSBjIC0zLjk5Njg0LDAgLTcuMjE0ODQsLTMuMjE4NzQgLTcuMjE0ODQsLTcuMjE2OCBsIDAsLTcuMzgyODEgYyAwLC0zLjk5ODE4IDMuMjE4LC03LjIxNjggNy4yMTQ4NCwtNy4yMTY4IGwgMTAwLjM2NzE5LDAgYyAzLjk5NjgzLDAgNy4yMTY3OSwzLjIxODYyIDcuMjE2NzksNy4yMTY4IGwgMCw3LjM4MjgxIGMgMCwzLjk5ODA2IC0zLjIxOTk2LDcuMjE2OCAtNy4yMTY3OSw3LjIxNjggbCAtMTAwLjM2NzE5LDAgeiBtIC01NjkuNDAyMzQsLTIuMjk2ODggYyAtMy45OTY4NCwwIC03LjIxNDg1LC0zLjIxODczIC03LjIxNDg1LC03LjIxNjggbCAwLC03LjM4MjgxIGMgMCwtMy45OTgxOCAzLjIxODAxLC03LjIxNjggNy4yMTQ4NSwtNy4yMTY4IGwgMTAwLjM2NzE4LDAgYyAzLjk5Njg0LDAgNy4yMTY4LDMuMjE4NjIgNy4yMTY4LDcuMjE2OCBsIDAsNy4zODI4MSBjIDAsMy45OTgwNyAtMy4yMTk5Niw3LjIxNjggLTcuMjE2OCw3LjIxNjggbCAtMTAwLjM2NzE4LDAgeiBtIDI4Mi40MDQyOSwwIGMgLTMuOTk2ODMsMCAtNy4yMTQ4NCwtMy4yMTg3MyAtNy4yMTQ4NCwtNy4yMTY4IGwgMCwtNy4zODI4MSBjIDAsLTMuOTk4MTggMy4yMTgwMSwtNy4yMTY4IDcuMjE0ODQsLTcuMjE2OCBsIDEwMC4zNjkxNCwwIGMgMy45OTY4NCwwIDcuMjE0ODUsMy4yMTg2MiA3LjIxNDg1LDcuMjE2OCBsIDAsNy4zODI4MSBjIDAsMy45OTgwNyAtMy4yMTgwMSw3LjIxNjggLTcuMjE0ODUsNy4yMTY4IGwgLTEwMC4zNjkxNCwwIHogbSAyODYuOTk2MSwtMzYuNzQ0MTQgYyAtMy45OTY4NCwwIC03LjIxMjg5LC0zLjIxODYyIC03LjIxMjg5LC03LjIxNjggbCAwLC03LjM4MjgxIGMgMCwtMy45OTgxOCAzLjIxNjA1LC03LjIxNjggNy4yMTI4OSwtNy4yMTY4IGwgMTAwLjM3MTA5LDAgYyAzLjk5Njg0LDAgNy4yMTQ4NCwzLjIxODYyIDcuMjE0ODQsNy4yMTY4IGwgMCw3LjM4MjgxIGMgMCwzLjk5ODE4IC0zLjIxOCw3LjIxNjggLTcuMjE0ODQsNy4yMTY4IGwgLTEwMC4zNzEwOSwwIHogbSAtNTY5LjQwMjM1LC0yLjI5Njg3IGMgLTMuOTk2ODMsMCAtNy4yMTI4OSwtMy4yMTg2MiAtNy4yMTI4OSwtNy4yMTY4IGwgMCwtNy4zODI4MSBjIDAsLTMuOTk4MTggMy4yMTYwNiwtNy4yMTY4IDcuMjEyODksLTcuMjE2OCBsIDEwMC4zNzExLDAgYyAzLjk5NjgzLDAgNy4yMTQ4NCwzLjIxODYyIDcuMjE0ODQsNy4yMTY4IGwgMCw3LjM4MjgxIGMgMCwzLjk5ODE4IC0zLjIxODAxLDcuMjE2OCAtNy4yMTQ4NCw3LjIxNjggbCAtMTAwLjM3MTEsMCB6IG0gMjgyLjQwNjI1LDAgYyAtMy45OTY4MywwIC03LjIxNDg0LC0zLjIxODYyIC03LjIxNDg0LC03LjIxNjggbCAwLC03LjM4MjgxIGMgMCwtMy45OTgxOCAzLjIxODAxLC03LjIxNjggNy4yMTQ4NCwtNy4yMTY4IGwgMTAwLjM2OTE0LDAgYyAzLjk5Njg0LDAgNy4yMTQ4NSwzLjIxODYyIDcuMjE0ODUsNy4yMTY4IGwgMCw3LjM4MjgxIGMgMCwzLjk5ODE4IC0zLjIxODAxLDcuMjE2OCAtNy4yMTQ4NSw3LjIxNjggbCAtMTAwLjM2OTE0LDAgeiBtIDI4Ni45OTYxLC0zNi43NDIxOSBjIC0zLjk5Njg0LDAgLTcuMjEyODksLTMuMjE4NjIgLTcuMjEyODksLTcuMjE2OCBsIDAsLTcuMzgyODEgYyAwLC0zLjk5ODE4IDMuMjE2MDUsLTcuMjE2OCA3LjIxMjg5LC03LjIxNjggbCAxMDAuMzcxMDksMCBjIDMuOTk2ODQsMCA3LjIxNDg0LDMuMjE4NjIgNy4yMTQ4NCw3LjIxNjggbCAwLDcuMzgyODEgYyAwLDMuOTk4MTggLTMuMjE4LDcuMjE2OCAtNy4yMTQ4NCw3LjIxNjggbCAtMTAwLjM3MTA5LDAgeiBtIC01NjkuNDAyMzUsLTIuMjk2ODggYyAtMy45OTY4MywwIC03LjIxMjg5LC0zLjIxODYxIC03LjIxMjg5LC03LjIxNjc5IGwgMCwtNy4zODI4MiBjIDAsLTMuOTk4MTggMy4yMTYwNiwtNy4yMTY3OSA3LjIxMjg5LC03LjIxNjc5IGwgMTAwLjM3MTEsMCBjIDMuOTk2ODMsMCA3LjIxNDg0LDMuMjE4NjEgNy4yMTQ4NCw3LjIxNjc5IGwgMCw3LjM4MjgyIGMgMCwzLjk5ODE4IC0zLjIxODAxLDcuMjE2NzkgLTcuMjE0ODQsNy4yMTY3OSBsIC0xMDAuMzcxMSwwIHogbSAyODIuNDA2MjUsMCBjIC0zLjk5NjgzLDAgLTcuMjE0ODQsLTMuMjE4NjEgLTcuMjE0ODQsLTcuMjE2NzkgbCAwLC03LjM4MjgyIGMgMCwtMy45OTgxOCAzLjIxODAxLC03LjIxNjc5IDcuMjE0ODQsLTcuMjE2NzkgbCAxMDAuMzY5MTQsMCBjIDMuOTk2ODQsMCA3LjIxNDg1LDMuMjE4NjEgNy4yMTQ4NSw3LjIxNjc5IGwgMCw3LjM4MjgyIGMgMCwzLjk5ODE4IC0zLjIxODAxLDcuMjE2NzkgLTcuMjE0ODUsNy4yMTY3OSBsIC0xMDAuMzY5MTQsMCB6IiAvPgogICAgICA8Z2x5cGgKICAgICAgICAgZ2x5cGgtbmFtZT0iaW1hZ2UiCiAgICAgICAgIGlkPSJnbHlwaDUxNDciCiAgICAgICAgIHVuaWNvZGU9ImkiCiAgICAgICAgIGQ9Im0gMTIyLjA2MjUyLDc0Ny42Mzc3MyBjIC0xMi4wNTM2LDAgLTIyLjA2MjUsLTkuOTI4MjcgLTIyLjA2MjUsLTIxLjg4NDc3IGwgMCwtNTU2LjIzMjQzIGMgMCwtMTEuOTU2NCAxMC4wMDg5LC0yMS44ODI4IDIyLjA2MjUsLTIxLjg4MjggbCA3NTUuODc0OTUsMCBjIDEyLjA1MzYsMCAyMi4wNjI1LDkuOTI2NiAyMi4wNjI1LDIxLjg4MjggbCAwLDU1Ni4yMzI0MyBjIDAsMTEuOTU2NSAtMTAuMDA4OCwyMS44ODQ3NyAtMjIuMDYyNSwyMS44ODQ3NyBsIC03NTUuODc0OTUsMCB6IG0gMCwtMTkuMzU1NDcgNzU1Ljg3NDk1LDAgYyAxLjU4MTQsMCAyLjU1MDgsLTAuOTYwNiAyLjU1MDgsLTIuNTI5MyBsIDAsLTU1Ni4yMzI0MyBjIDAsLTEuNTY4NSAtMC45Njk0LC0yLjUyNzMgLTIuNTUwOCwtMi41MjczIGwgLTc1NS44NzQ5NSwwIGMgLTEuNTgxMywwIC0yLjU1MDc4LDAuOTU4OCAtMi41NTA3OCwyLjUyNzMgbCAwLDU1Ni4yMzI0MyBjIDAsMS41Njg3IDAuOTY5NDgsMi41MjkzIDIuNTUwNzgsMi41MjkzIHogbSA2MDMuNDM3NDUsLTM3LjY0NDUzIGEgNjcuNSw2Ny41IDAgMCAxIC02Ny41LC02Ny41IDY3LjUsNjcuNSAwIDAgMSA2Ny41LC02Ny41IDY3LjUsNjcuNSAwIDAgMSA2Ny41LDY3LjUgNjcuNSw2Ny41IDAgMCAxIC02Ny41LDY3LjUgeiBtIC0zMjcuMzM1ODksLTU4Ljc4NTE2IC0yMzUuMzc4OSwtNDI2LjMyMjI0IDI1OS4yNTU4NiwwIC0wLjU0ODgzLC0wLjk5MjIgMzY2LjE5MTM3LDAgLTE4My4wOTU3MSwzMzEuMTE3MTggLTc2LjcxNDgsLTEzOC43MzQzOCAtMTI5LjcwODk5LDIzNC45MzE2NCB6IiAvPgogICAgICA8Z2x5cGgKICAgICAgICAgZ2x5cGgtbmFtZT0idGV4dCIKICAgICAgICAgaWQ9ImdseXBoNTE0OSIKICAgICAgICAgdW5pY29kZT0ibyIKICAgICAgICAgZD0ibSAyNDEuNTQyOTcsODAwIC03LjQ3NjU2LC0xNDAuNzA3MDMgMTcuNzU5NzYsMCBjIDIuMTgxMSwyNy4xMzg2NCA5LjAzMzkzLDQ4LjY3MjM3IDIwLjU2MjUsNjQuNjAxNTYgMTEuNTI4NDMsMTUuOTI5MjEgMjUuMzk1NDIsMjYuNjk2MDcgNDEuNTk3NjYsMzIuMzAwNzggMTIuNDYzMTcsNC4xMjk4MSAzMy40OTU1MSw2LjE5MzM2IDYzLjA5NTcsNi4xOTMzNiBsIDc2LjE4MTY0LDAgMCwtNDU4LjQwNjI1IGMgMCwtMzMuNjI4MzEgLTMuNDI4NDIsLTU1LjE2MjAyIC0xMC4yODMyLC02NC42MDE1NiAtMTEuMjE2OSwtMTUuMzM5MjIgLTMwLjIyMzU3LC0yMy4wMDk3NyAtNTcuMDE5NTMsLTIzLjAwOTc3IGwgLTIyLjQzMzYsMCAwLC0xNi4zNzEwOSAyNjguNzQwMjQsMCAwLDE2LjM3MTA5IC0yMS45NjY4LDAgYyAtMjQuNjE0OTEsMCAtNDIuODQxNTcsNi4xOTQ2MyAtNTQuNjgxNjQsMTguNTgzOTkgLTguNDEyNyw5LjE0NDU0IC0xMi42MjEwOSwzMi4xNTQxOCAtMTIuNjIxMDksNjkuMDI3MzQgbCAwLDQ1OC40MDYyNSA4OS4yNjk1MywwIGMgMjYuMTcyNzksMCA0Ny4yMDMxLC00LjEyOTA5IDYzLjA5Mzc1LC0xMi4zODg2NyAxNi4yMDIyLC03Ljk2NDYgMjkuMTMyMDEsLTIwLjUwMjE5IDM4Ljc5MTAxLC0zNy42MTEzMyA1LjkyMDAxLC0xMC42MTk0NSAxMC41OTQwOSwtMjguMzE2OTQgMTQuMDIxNDksLTUzLjA5NTcgbCAxNy43NTk3NiwwIEwgNzU4LjkyMzgzLDgwMCAyNDEuNTQyOTcsODAwIFoiIC8+CiAgICAgIDxnbHlwaAogICAgICAgICBnbHlwaC1uYW1lPSJxdW90ZXMiCiAgICAgICAgIGlkPSJnbHlwaDUyNDgiCiAgICAgICAgIHVuaWNvZGU9InAiCiAgICAgICAgIGQ9Im0gMjA1LjAzMzIsODAwIDAsLTEwIDAsLTI1Mi4xNTIzNCAxMjIuODM1OTQsMCBjIDAuMTk4NTYsLTEuNTU1MiAwLjM1OTM4LC0zLjA3ODUgMC4zNTkzOCwtNC40NDMzNiBsIDAsLTAuOTkwMjQgMC4xOTMzNiwtMC45Njg3NSBjIDAuNTYzNTgsLTIuODIwMyAwLjkxNDA2LC02LjY1NjExIDAuOTE0MDYsLTExLjM2NzE5IDAsLTQ5LjY5NzA2IC0xMC4zNzYyMiwtOTMuMDc1NTkgLTMwLjk1NzAzLC0xMzAuNzIwNyBsIC0wLjAzNTIsLTAuMDY0NCAtMC4wMzUyLC0wLjA2NDUgQyAyNzguNzQ0MTYsMzUyLjE2NDQgMjUxLjI4ODA3LDMzMS43NjMwNCAyMTMuNDE2MDIsMzI1LjU2MDU1IGwgLTguMzgyODIsLTEuMzczMDUgMCwtMTI0LjE4NzUgMTEuMTk1MzIsMS4zNDk2MSBjIDgyLjQwNzAxLDkuOTI3NzkgMTQ1LjQ1MjM2LDQ5LjgyNjg4IDE4Ni4wODM5OCwxMTguMTE1MjMgbCAwLjAxMTcsMC4wMjE1IDAuMDEzNywwLjAyMTUgYyA0MC4yNjU1OCw2OC40MzM1MSA2MC4yMDMxMywxNTEuMDU1ODEgNjAuMjAzMTMsMjQ3LjIyMjY2IGwgMCwyMzMuMjY5NTMgLTI1Ny41MDc4MiwwIHogbSAzMzIuNDI1NzgsMCAwLC0xMCAwLC0yNTIuMTUyMzQgMTIyLjgzMzk5LDAgYyAwLjE5OTQ2LC0xLjU1NjIxIDAuMzYxMzMsLTMuMDc5OTMgMC4zNjEzMywtNC40NDMzNiBsIDAsLTAuOTkwMjQgMC4xOTMzNiwtMC45Njg3NSBjIDAuNTYzNTgsLTIuODIwMjYgMC45MTQwNiwtNi42NTYxIDAuOTE0MDYsLTExLjM2NzE5IDAsLTQ5LjY5NzA2IC0xMC4zNzYyMiwtOTMuMDc1NTkgLTMwLjk1NzAzLC0xMzAuNzIwNyBsIC0wLjAzNTIsLTAuMDY0NCAtMC4wMzUyLC0wLjA2NDUgQyA2MTEuMTY5OTMsMzUyLjE2NDQgNTgzLjcxMzg2LDMzMS43NjMwNCA1NDUuODQxOCwzMjUuNTYwNTUgbCAtOC4zODI4MiwtMS4zNzMwNSAwLC0xMjQuMTg3NSAxMS4xOTUzMiwxLjM0OTYxIGMgODIuNDA3MDIsOS45Mjc3OSAxNDUuNDUyMzYsNDkuODI2ODggMTg2LjA4Mzk4LDExOC4xMTUyMyBsIDAuMDExNywwLjAyMTUgMC4wMTM3LDAuMDIxNSBjIDQwLjI2NTY3LDY4LjQzMzM4IDYwLjIwMzEzLDE1MS4wNTU4MSA2MC4yMDMxMywyNDcuMjIyNjYgbCAwLDIzMy4yNjk1MyAtMjU3LjUwNzgyLDAgeiBtIC0zMTIuNDI1NzgsLTIwIDIxNy41MDc4MiwwIDAsLTIxMy4yNjk1MyBjIDAsLTkzLjM5Njg3IC0xOS4yNzMzNSwtMTcyLjE5OTQ4IC01Ny40Mjc3NCwtMjM3LjA1NjY0IEMgMzQ5LjE2OTUsMjY5LjI3NDkyIDI5Ni42NTc3MiwyMzQuMTQ1NTEgMjI1LjAzMzIsMjIyLjgyMDMxIGwgMCw4NC44NjcxOSBjIDM5LjQzMTY2LDguOTA5MzIgNzAuNDk5ODMsMzMuNDg1NzMgOTAuOTI1NzgsNzIuMTQ0NTMgMjIuMzA5MTUsNDAuODM1NDkgMzMuMzc2OTYsODcuNzc4NTcgMzMuMzc2OTYsMTQwLjI0NjA5IDAsNS4zOTc3IC0wLjM4MDc0LDEwLjIwNzM1IC0xLjIwODk5LDE0LjYyMzA1IC0wLjEyODgsNS4xNTA5NyAtMC45NDM4NSwxMC40MzI3IC0yLjUwMTk1LDE1Ljg5MDYzIGwgLTIuMDcwMzEsNy4yNTU4NiAtMTE4LjUyMTQ5LDAgMCwyMjIuMTUyMzQgeiBtIDMzMi40MjU3OCwwIDIxNy41MDc4MiwwIDAsLTIxMy4yNjk1MyBjIDAsLTkzLjM5Njg3IC0xOS4yNzMzNCwtMTcyLjE5OTQ4IC01Ny40Mjc3NCwtMjM3LjA1NjY0IC0zNS45NDM3OCwtNjAuMzk4OTEgLTg4LjQ1NTU1LC05NS41MjgzMiAtMTYwLjA4MDA4LC0xMDYuODUzNTIgbCAwLDg0Ljg2NzE5IGMgMzkuNDMxNjYsOC45MDkzMiA3MC40OTk4MiwzMy40ODU3MyA5MC45MjU3OSw3Mi4xNDQ1MyAyMi4zMDkxNCw0MC44MzU0OSAzMy4zNzY5NSw4Ny43Nzg1NyAzMy4zNzY5NSwxNDAuMjQ2MDkgMCw1LjQwMTU0IC0wLjM4MTQsMTAuMjE0NTUgLTEuMjEwOTQsMTQuNjMyODIgLTAuMTMwMzIsNS4xNTI1MyAtMC45NDc5NCwxMC40MzAzMSAtMi41MDM5LDE1Ljg4MDg2IGwgLTIuMDcwMzIsNy4yNTU4NiAtMTE4LjUxNzU4LDAgMCwyMjIuMTUyMzQgeiIgLz4KICAgICAgPGdseXBoCiAgICAgICAgIGdseXBoLW5hbWU9ImJ1dHRvbiIKICAgICAgICAgaWQ9ImdseXBoNDM5MCIKICAgICAgICAgdW5pY29kZT0ibSIKICAgICAgICAgZD0iTSAxMjIuMDYyNSw3NjIuNjM4NjcgQyAxMDEuNzczMDIsNzYyLjYzODY3IDg1LDc0Ni4wODA4IDg1LDcyNS43NTM5MSBsIDAsLTU1Ni4yMzI0MyBjIDAsLTIwLjMyNjkyIDE2Ljc3Mjc3LC0zNi44ODI4MSAzNy4wNjI1LC0zNi44ODI4MSBsIDc1NS44NzUsMCBjIDIwLjI4OTc2LDAgMzcuMDYyNSwxNi41NTU4OSAzNy4wNjI1LDM2Ljg4MjgxIGwgMCw1NTYuMjMyNDMgYyAwLDIwLjMyNjkyIC0xNi43NzI4NSwzNi44ODQ3NiAtMzcuMDYyNSwzNi44ODQ3NiBsIC03NTUuODc1LDAgeiBtIDEyLjQ0OTIyLC00OS4zNTU0NyA3MzAuOTc2NTYsMCAwLC01MzEuMjkxMDEgLTczMC45NzY1NiwwIDAsNTMxLjI5MTAxIHoiIC8+CiAgICAgIDxnbHlwaAogICAgICAgICBnbHlwaC1uYW1lPSJ0cnAtc2VjdCIKICAgICAgICAgaWQ9ImdseXBoNTU0NiIKICAgICAgICAgdW5pY29kZT0iRSIKICAgICAgICAgZD0iTSAxMTQuMzEwNTUsNzY3LjYzODcgQyAxMDAuMDgxMDMsNzY3LjYzODcgODgsNzU1LjU1NzggODgsNzQxLjMyODEgbCAwLC01ODcuMzgwOCBjIDAsLTE0LjIyOTcgMTIuMDgxMDMsLTI2LjMwODYgMjYuMzEwNTUsLTI2LjMwODYgbCAxODcuMzc4OSwwIGMgMTQuMjI5NTIsMCAyNi4zMTA1NSwxMi4wNzg5IDI2LjMxMDU1LDI2LjMwODYgbCAwLDU4Ny4zODA4IGMgMCwxNC4yMjk3IC0xMi4wODEwMywyNi4zMTA2IC0yNi4zMTA1NSwyNi4zMTA2IGwgLTE4Ny4zNzg5LDAgeiBtIDI5MiwwIEMgMzkyLjA4MTAzLDc2Ny42Mzg3IDM4MCw3NTUuNTU3OCAzODAsNzQxLjMyODEgbCAwLC01ODcuMzgwOCBjIDAsLTE0LjIyOTcgMTIuMDgxMDMsLTI2LjMwODYgMjYuMzEwNTUsLTI2LjMwODYgbCAxODcuMzc4OSwwIGMgMTQuMjI5NTIsMCAyNi4zMTA1NSwxMi4wNzg5IDI2LjMxMDU1LDI2LjMwODYgbCAwLDU4Ny4zODA4IGMgMCwxNC4yMjk3IC0xMi4wODEwMywyNi4zMTA2IC0yNi4zMTA1NSwyNi4zMTA2IGwgLTE4Ny4zNzg5LDAgeiBtIDI5MiwwIEMgNjg0LjA4MTAzLDc2Ny42Mzg3IDY3Miw3NTUuNTU3OCA2NzIsNzQxLjMyODEgbCAwLC01ODcuMzgwOCBjIDAsLTE0LjIyOTcgMTIuMDgxMDMsLTI2LjMwODYgMjYuMzEwNTUsLTI2LjMwODYgbCAxODcuMzc4OSwwIGMgMTQuMjI5NTIsMCAyNi4zMTA1NSwxMi4wNzg5IDI2LjMxMDU1LDI2LjMwODYgbCAwLDU4Ny4zODA4IGMgMCwxNC4yMjk3IC0xMi4wODEwMywyNi4zMTA2IC0yNi4zMTA1NSwyNi4zMTA2IGwgLTE4Ny4zNzg5LDAgeiBtIC01NzAuMzEwNTUsLTQwIDE2MCwwIDAsLTU2MCAtMTYwLDAgMCw1NjAgeiBtIDI5MiwwIDE2MCwwIDAsLTU2MCAtMTYwLDAgMCw1NjAgeiBtIDI5MiwwIDE2MCwwIDAsLTU2MCAtMTYwLDAgMCw1NjAgeiIgLz4KICAgICAgPGdseXBoCiAgICAgICAgIGdseXBoLW5hbWU9Im8tc2VjdCIKICAgICAgICAgaWQ9ImdseXBoNTcyNiIKICAgICAgICAgdW5pY29kZT0iUSIKICAgICAgICAgZD0iTSAxMjIuMDYyNSw3NjIuNjM3NzMgQyAxMDEuNzczMDIsNzYyLjYzNzczIDg1LDc0Ni4wNzk4MyA4NSw3MjUuNzUyOTMgbCAwLC01NTYuMjMyNCBjIDAsLTIwLjMyNjkgMTYuNzcyNzcsLTM2Ljg4MjggMzcuMDYyNSwtMzYuODgyOCBsIDc1NS44NzUsMCBjIDIwLjI4OTc2LDAgMzcuMDYyNSwxNi41NTU5IDM3LjA2MjUsMzYuODgyOCBsIDAsNTU2LjIzMjQgYyAwLDIwLjMyNyAtMTYuNzcyODUsMzYuODg0OCAtMzcuMDYyNSwzNi44ODQ4IGwgLTc1NS44NzUsMCB6IG0gMTIuNDQ5MjIsLTQ5LjM1NTUgNzMwLjk3NjU2LDAgMCwtNTMxLjI5MSAtNzMwLjk3NjU2LDAgMCw1MzEuMjkxIHoiIC8+CiAgICAgIDxnbHlwaAogICAgICAgICBnbHlwaC1uYW1lPSJkYmwtc2VjdCIKICAgICAgICAgaWQ9ImdseXBoNjMyNiIKICAgICAgICAgdW5pY29kZT0iVyIKICAgICAgICAgZD0ibSAxMTEuNjk1MzEsNzY3LjYzODY3IGMgLTE0LjIyOTY0NSwwIC0yNi4zMTA1NDQsLTEyLjA4MDkyIC0yNi4zMTA1NDQsLTI2LjMxMDU1IGwgMCwtNTg3LjM4MDg1IGMgMCwtMTQuMjI5NjEgMTIuMDgwOTM3LC0yNi4zMDg2IDI2LjMxMDU0NCwtMjYuMzA4NiBsIDMyNS41MDU4NiwwIGMgMTQuMjI5NjMsMCAyNi4zMTA1NSwxMi4wNzg5NSAyNi4zMTA1NSwyNi4zMDg2IGwgMCw1ODcuMzgwODUgYyAwLDE0LjIyOTY3IC0xMi4wODA4OCwyNi4zMTA1NSAtMjYuMzEwNTUsMjYuMzEwNTUgbCAtMzI1LjUwNTg2LDAgeiBtIDQ1MS4xMDM1MiwwIGMgLTE0LjIyOTY1LDAgLTI2LjMxMDU1LC0xMi4wODA5MiAtMjYuMzEwNTUsLTI2LjMxMDU1IGwgMCwtNTg3LjM4MDg1IGMgMCwtMTQuMjI5NjEgMTIuMDgwOTQsLTI2LjMwODYgMjYuMzEwNTUsLTI2LjMwODYgbCAzMjUuNTA1ODYsMCBjIDE0LjIyOTYxLDAgMjYuMzEwNTQsMTIuMDc4OTkgMjYuMzEwNTQsMjYuMzA4NiBsIDAsNTg3LjM4MDg1IGMgMCwxNC4yMjk2MyAtMTIuMDgwOSwyNi4zMTA1NSAtMjYuMzEwNTQsMjYuMzEwNTUgbCAtMzI1LjUwNTg2LDAgeiBtIC00MzcuNDE0MDYsLTQwIDI5OC4xMjY5NSwwIDAsLTU2MCAtMjk4LjEyNjk1LDAgMCw1NjAgeiBtIDQ1MS4xMDM1MSwwIDI5OC4xMjY5NSwwIDAsLTU2MCAtMjk4LjEyNjk1LDAgMCw1NjAgeiIgLz4KICAgICAgPGdseXBoCiAgICAgICAgIGdseXBoLW5hbWU9IjM3LXJlY3QiCiAgICAgICAgIGlkPSJnbHlwaDY0NDEiCiAgICAgICAgIHVuaWNvZGU9IlIiCiAgICAgICAgIGQ9Im0gMTE3LjA2NjQxLDc2Mi42NjUwNyBjIC0xNC4yMjk2NCwwIC0yNi4zMTA1NTEsLTEyLjA4MDkgLTI2LjMxMDU1MSwtMjYuMzEwNTQgbCAwLC01NzcuNDM1NTUgYyAwLC0xNC4yMjk2NCAxMi4wODA5MTEsLTI2LjMwODU5IDI2LjMxMDU1MSwtMjYuMzA4NTkgbCAyNDYuMTY5OTIsMCBjIDE0LjIyOTY0LDAgMjYuMzEwNTMsMTIuMDc4OTUgMjYuMzEwNTUsMjYuMzA4NTkgbCAwLDU3Ny40MzU1NSBjIDAsMTQuMjI5NjQgLTEyLjA4MDkxLDI2LjMxMDU0IC0yNi4zMTA1NSwyNi4zMTA1NCBsIC0yNDYuMTY5OTIsMCB6IG0gMzc4LjQ4ODI4LDAgYyAtMTQuMjI5NjQsMCAtMjYuMzEwNTUsLTEyLjA4MDkgLTI2LjMxMDU1LC0yNi4zMTA1NCBsIDAsLTU3Ny40MzU1NSBjIDAsLTE0LjIyOTY0IDEyLjA4MDkxLC0yNi4zMDg1OSAyNi4zMTA1NSwtMjYuMzA4NTkgbCAzODcuMzc4OSwwIGMgMTQuMjI5NjQsMCAyNi4zMTA1NSwxMi4wNzg5NSAyNi4zMTA1NSwyNi4zMDg1OSBsIDAsNTc3LjQzNTU1IGMgMCwxNC4yMjk2NCAtMTIuMDgwOTEsMjYuMzEwNTQgLTI2LjMxMDU1LDI2LjMxMDU0IGwgLTM4Ny4zNzg5LDAgeiBtIC0zNjQuNzk4ODMsLTQwIDIxOC43OTEwMiwwIDAsLTU1MC4wNTQ2OCAtMjE4Ljc5MTAyLDAgMCw1NTAuMDU0NjggeiBtIDM3OC40ODgyOCwwIDM2MCwwIDAsLTU1MC4wNTQ2OCAtMzYwLDAgMCw1NTAuMDU0NjggeiIgLz4KICAgICAgPGdseXBoCiAgICAgICAgIGdseXBoLW5hbWU9Imhlcm8tc2VjdCIKICAgICAgICAgaWQ9ImdseXBoNjQ4MCIKICAgICAgICAgdW5pY29kZT0iVCIKICAgICAgICAgZD0ibSA0MDkuMzE0MzcsMjk5LjIzOTE3IGMgLTMuNDgxNiwwIC02LjI4NTEsLTIuODAzMiAtNi4yODUxLC02LjI4NTIgbCAwLC0zNy40Mjk3IGMgMCwtMy40ODIgMi44MDM1LC02LjI4NTEgNi4yODUxLC02LjI4NTEgbCAxODcuNDI5NywwIGMgMy40ODE2LDAgNi4yODUyLDIuODAzMSA2LjI4NTIsNi4yODUxIGwgMCwzNy40Mjk3IGMgMCwzLjQ4MiAtMi44MDM2LDYuMjg1MiAtNi4yODUyLDYuMjg1MiB6IG0gLTE1OS4wNzc5NiwyMDAgYyAtMy40ODE2LDAgLTYuMjg1MSwtMi44MDMyIC02LjI4NTEsLTYuMjg1MiBsIDAsLTEzNS40Mjk3IGMgMCwtMy40ODIgMi44MDM1LC02LjI4NTEgNi4yODUxLC02LjI4NTEgbCA0OTEuNDI5NywwIGMgMy40ODE2LDAgNi4yODUyLDIuODAzMSA2LjI4NTIsNi4yODUxIGwgMCwxMzUuNDI5NyBjIDAsMy40ODIgLTIuODAzNiw2LjI4NTIgLTYuMjg1Miw2LjI4NTIgeiBtIDIwMCwxNTAgYyAtMy40ODE2LDAgLTYuMjg1MSwtMi44MDMyIC02LjI4NTEsLTYuMjg1MiBsIDAsLTM3LjQyOTcgYyAwLC0zLjQ4MiAyLjgwMzUsLTYuMjg1MSA2LjI4NTEsLTYuMjg1MSBsIDMzNy40Mjk3LDAgYyAzLjQ4MTYsMCA2LjI4NTIsMi44MDMxIDYuMjg1Miw2LjI4NTEgbCAwLDM3LjQyOTcgYyAwLDMuNDgyIC0yLjgwMzYsNi4yODUyIC02LjI4NTIsNi4yODUyIHogbSAtMjQ3Ljk5OTksMCBjIC0zLjQ4MTYsMCAtNi4yODUyLC0yLjgwMzIgLTYuMjg1MiwtNi4yODUyIGwgMCwtMzcuNDI5NyBjIDAsLTMuNDgyIDIuODAzNiwtNi4yODUxIDYuMjg1MiwtNi4yODUxIGwgODcuNDI5NiwwIGMgMy40ODE2LDAgNi4yODUyLDIuODAzMSA2LjI4NTIsNi4yODUxIGwgMCwzNy40Mjk3IGMgMCwzLjQ4MiAtMi44MDM2LDYuMjg1MiAtNi4yODUyLDYuMjg1MiB6IE0gMTIyLjA2MjUsNzYyLjYzNzczIGMgLTIwLjI4OTQ4LDAgLTM3LjA2MjUwMSwtMTYuNTU3OSAtMzcuMDYyNTAxLC0zNi44ODQ4IGwgMCwtNTU2LjIzMjQgYyAwLC0yMC4zMjY5IDE2Ljc3Mjc3MSwtMzYuODgyOCAzNy4wNjI1MDEsLTM2Ljg4MjggbCA3NTUuODc1LDAgYyAyMC4yODk3NiwwIDM3LjA2MjUsMTYuNTU1OSAzNy4wNjI1LDM2Ljg4MjggbCAwLDU1Ni4yMzI0IGMgMCwyMC4zMjcgLTE2Ljc3Mjg1LDM2Ljg4NDggLTM3LjA2MjUsMzYuODg0OCBsIC03NTUuODc1LDAgeiBtIDEyLjQ0OTIyLC00OS4zNTU1IDczMC45NzY1NiwwIDAsLTUzMS4yOTEgLTczMC45NzY1NiwwIDAsNTMxLjI5MSB6IiAvPgogICAgICA8Z2x5cGgKICAgICAgICAgZ2x5cGgtbmFtZT0iaW1hZ2UtcyIKICAgICAgICAgaWQ9ImdseXBoNjQ5NSIKICAgICAgICAgdW5pY29kZT0iSSIKICAgICAgICAgZD0ibSA0MTEuNDgwNDYsNjQzLjgzNDk5IC0yMzUuMzc4OSwtNDI2LjMyMjI0IDI1OS4yNTU5LDAgLTAuNTQ4OSwtMC45OTIyIDM2Ni4xOTE0LDAgLTE4My4wOTU3LDMzMS4xMTcxOCAtNzYuNzE0OCwtMTM4LjczNDM4IC0xMjkuNzA5LDIzNC45MzE2NCB6IG0gMzE4LjU2ODQ2LDI3LjM3NjI1IGEgNjcuNSw2Ny41IDAgMCAxIC02Ny41LC02Ny41IDY3LjUsNjcuNSAwIDAgMSA2Ny41LC02Ny41IDY3LjUsNjcuNSAwIDAgMSA2Ny41LDY3LjUgNjcuNSw2Ny41IDAgMCAxIC02Ny41LDY3LjUgeiBNIDEyMi4wNjI1LDc2Mi42Mzc3MyBDIDEwMS43NzMwMiw3NjIuNjM3NzMgODUsNzQ2LjA3OTgzIDg1LDcyNS43NTI5MyBsIDAsLTU1Ni4yMzI0IGMgMCwtMjAuMzI2OSAxNi43NzI3NywtMzYuODgyOCAzNy4wNjI1LC0zNi44ODI4IGwgNzU1Ljg3NSwwIGMgMjAuMjg5NzYsMCAzNy4wNjI1LDE2LjU1NTkgMzcuMDYyNSwzNi44ODI4IGwgMCw1NTYuMjMyNCBjIDAsMjAuMzI3IC0xNi43NzI4NSwzNi44ODQ4IC0zNy4wNjI1LDM2Ljg4NDggbCAtNzU1Ljg3NSwwIHogbSAxMi40NDkyMiwtNDkuMzU1NSA3MzAuOTc2NTYsMCAwLC01MzEuMjkxIC03MzAuOTc2NTYsMCAwLDUzMS4yOTEgeiIgLz4KICAgICAgPGdseXBoCiAgICAgICAgIGdseXBoLW5hbWU9ImJ1dHRvbiIKICAgICAgICAgaWQ9ImdseXBoNjUyOSIKICAgICAgICAgZD0ibSAyNDYuNzczNCw0NjcuMDk0NzggYyAtMy40ODE2LDAgLTYuMjgzMiwtMS4wMzIyIC02LjI4MzIsLTIuMzEyNSBsIDAsLTM0LjI4OTEgYyAwLC0xLjI4MDMgMi44MDE2LC0yLjMxMjUgNi4yODMyLC0yLjMxMjUgbCA1MDYuNDUxMiwwIGMgMy40ODE2LDAgNi4yODUyLDEuMDMyMiA2LjI4NTIsMi4zMTI1IGwgMCwzNC4yODkxIGMgMCwxLjI4MDMgLTIuODAzNiwyLjMxMjUgLTYuMjg1MiwyLjMxMjUgbCAtNTA2LjQ1MTIsMCB6IE0gMTExLjQ5MDIzLDYxOS4zNTg0MyBjIC0xNC4yMjk1ODcsMCAtMjYuMzEwNTQxLC0xMi4wNzg5OSAtMjYuMzEwNTQxLC0yNi4zMDg1OSBsIDAsLTI5MC44MjIyNyBjIDAsLTE0LjIyOTYgMTIuMDgwOTU0LC0yNi4zMTA1NCAyNi4zMTA1NDEsLTI2LjMxMDU0IGwgNzc3LjAxOTU0LDAgYyAxNC4yMjk2LDAgMjYuMzEwNTQsMTIuMDgwOTQgMjYuMzEwNTQsMjYuMzEwNTQgbCAwLDI5MC44MjIyNyBjIDAsMTQuMjI5NiAtMTIuMDgwOTQsMjYuMzA4NTkgLTI2LjMxMDU0LDI2LjMwODU5IHogbSAxMy42ODk0NiwtNDAgNzQ5LjY0MDYyLDAgMCwtMjYzLjQ0MTQgLTc0OS42NDA2MiwwIHoiCiAgICAgICAgIHVuaWNvZGU9IkIiIC8+CiAgICAgIDxnbHlwaAogICAgICAgICBnbHlwaC1uYW1lPSJkaXZpZGVyIgogICAgICAgICBpZD0iZ2x5cGg2NTcxIgogICAgICAgICB1bmljb2RlPSJEIgogICAgICAgICBkPSJtIDIzMy43ODg5LDQ2Ny4wOTQxIGMgLTMuNDgxNiwwIC02LjI4MzIsLTEuMDMwOSAtNi4yODMyLC0yLjMxMTIgbCAwLC0zNC4yOTA0IGMgMCwtMS4yODAzIDIuODAxNiwtMi4zMTEyIDYuMjgzMiwtMi4zMTEyIGwgNTA2LjQ1MTIsMCBjIDMuNDgxNiwwIDYuMjg1MiwxLjAzMDkgNi4yODUyLDIuMzExMiBsIDAsMzQuMjkwNCBjIDAsMS4yODAzIC0yLjgwMzYsMi4zMTEyIC02LjI4NTIsMi4zMTEyIHogTSAxMTEuNjA5NCwzNzYuMTQ4NCBjIC0xNC4yMjk1LDAgLTI2LjMwODYsLTEyLjA3OSAtMjYuMzA4NiwtMjYuMzA4NiBsIDAsLTE4Ny41MzcxIGMgMCwtMTQuMjI5NiAxMi4wNzg3LC0yNi4zMTA1IDI2LjMwODYsLTI2LjMxMDUgbCA3NzYuNzgxMiwwIGMgMTQuMjI5OSwwIDI2LjMwODYsMTIuMDgwOSAyNi4zMDg2LDI2LjMxMDUgbCAwLDE4Ny41MzcxIGMgMCwxNC4yMjk2IC0xMi4wNzkxLDI2LjMwODYgLTI2LjMwODYsMjYuMzA4NiBsIC03NzYuNzgxMiwwIHogbSAxMy42OTE0LC00MCA3NDkuMzk4NCwwIDAsLTE2MC4xNTYyIC03NDkuMzk4NCwwIDAsMTYwLjE1NjIgeiBtIC0xMy42OTE0LDQyMy4xMzQ4IGMgLTE0LjIyOTUsMCAtMjYuMzA4NiwtMTIuMDgwOSAtMjYuMzA4NiwtMjYuMzEwNSBsIDAsLTE4Ny41MzcyIGMgMCwtMTQuMjI5OCAxMi4wNzg3LC0yNi4zMDg1IDI2LjMwODYsLTI2LjMwODUgbCA3NzYuNzgxMiwwIGMgMTQuMjI5OSwwIDI2LjMwODYsMTIuMDc4NyAyNi4zMDg2LDI2LjMwODUgbCAwLDE4Ny41MzcyIGMgMCwxNC4yMjk2IC0xMi4wNzkxLDI2LjMxMDUgLTI2LjMwODYsMjYuMzEwNSBsIC03NzYuNzgxMiwwIHogbSAxMy42OTE0LC00MCA3NDkuMzk4NCwwIDAsLTE2MC4xNTYyIC03NDkuMzk4NCwwIDAsMTYwLjE1NjIgeiIgLz4KICAgIDwvZm9udD4KICA8L2RlZnM+CiAgPHNvZGlwb2RpOm5hbWVkdmlldwogICAgIGlkPSJiYXNlIgogICAgIHBhZ2Vjb2xvcj0iI2ZmZmZmZiIKICAgICBib3JkZXJjb2xvcj0iIzY2NjY2NiIKICAgICBib3JkZXJvcGFjaXR5PSIxLjAiCiAgICAgaW5rc2NhcGU6cGFnZW9wYWNpdHk9IjAuMCIKICAgICBpbmtzY2FwZTpwYWdlc2hhZG93PSIyIgogICAgIGlua3NjYXBlOnpvb209IjAuMjI0MTUyODUiCiAgICAgaW5rc2NhcGU6Y3g9IjYzMS4wNDMyOCIKICAgICBpbmtzY2FwZTpjeT0iLTE2OTQuNjAzNyIKICAgICBpbmtzY2FwZTpkb2N1bWVudC11bml0cz0icHgiCiAgICAgaW5rc2NhcGU6Y3VycmVudC1sYXllcj0ibGF5ZXIxIgogICAgIHNob3dncmlkPSJ0cnVlIgogICAgIHVuaXRzPSJweCIKICAgICBpbmtzY2FwZTp3aW5kb3ctd2lkdGg9IjE0NDAiCiAgICAgaW5rc2NhcGU6d2luZG93LWhlaWdodD0iODAwIgogICAgIGlua3NjYXBlOndpbmRvdy14PSIwIgogICAgIGlua3NjYXBlOndpbmRvdy15PSIxIgogICAgIGlua3NjYXBlOndpbmRvdy1tYXhpbWl6ZWQ9IjEiCiAgICAgZ3VpZGV0b2xlcmFuY2U9IjEwIgogICAgIG9iamVjdHRvbGVyYW5jZT0iMTAiCiAgICAgZ3JpZHRvbGVyYW5jZT0iMiIKICAgICBpbmtzY2FwZTpzbmFwLWJib3g9ImZhbHNlIgogICAgIGlua3NjYXBlOmJib3gtbm9kZXM9ImZhbHNlIgogICAgIGlua3NjYXBlOmJib3gtcGF0aHM9ImZhbHNlIgogICAgIGlua3NjYXBlOnNuYXAtYmJveC1lZGdlLW1pZHBvaW50cz0iZmFsc2UiCiAgICAgaW5rc2NhcGU6c25hcC1iYm94LW1pZHBvaW50cz0iZmFsc2UiCiAgICAgaW5rc2NhcGU6c25hcC1ncmlkcz0idHJ1ZSIKICAgICBpbmtzY2FwZTpzbmFwLWdsb2JhbD0idHJ1ZSIKICAgICBpbmtzY2FwZTpvYmplY3Qtbm9kZXM9InRydWUiCiAgICAgaW5rc2NhcGU6c25hcC1ub2Rlcz0idHJ1ZSI+CiAgICA8aW5rc2NhcGU6Z3JpZAogICAgICAgdHlwZT0ieHlncmlkIgogICAgICAgaWQ9ImdyaWQ0MjExIgogICAgICAgY29sb3I9IiNmZjAwZmYiCiAgICAgICBvcGFjaXR5PSIwLjEyNTQ5MDIiCiAgICAgICBlbXBjb2xvcj0iIzAwMDBmZiIKICAgICAgIGVtcG9wYWNpdHk9IjAuMjUwOTgwMzkiCiAgICAgICBzcGFjaW5neD0iOS45OTk5OTk5IgogICAgICAgc3BhY2luZ3k9IjkuOTk5OTk5OSIKICAgICAgIHVuaXRzPSJweCIgLz4KICA8L3NvZGlwb2RpOm5hbWVkdmlldz4KICA8bWV0YWRhdGEKICAgICBpZD0ibWV0YWRhdGE3Ij4KICAgIDxyZGY6UkRGPgogICAgICA8Y2M6V29yawogICAgICAgICByZGY6YWJvdXQ9IiI+CiAgICAgICAgPGRjOmZvcm1hdD5pbWFnZS9zdmcreG1sPC9kYzpmb3JtYXQ+CiAgICAgICAgPGRjOnR5cGUKICAgICAgICAgICByZGY6cmVzb3VyY2U9Imh0dHA6Ly9wdXJsLm9yZy9kYy9kY21pdHlwZS9TdGlsbEltYWdlIiAvPgogICAgICAgIDxkYzp0aXRsZT48L2RjOnRpdGxlPgogICAgICA8L2NjOldvcms+CiAgICA8L3JkZjpSREY+CiAgPC9tZXRhZGF0YT4KICA8ZwogICAgIGlua3NjYXBlOmxhYmVsPSJMaXZlbGxvIDEiCiAgICAgaW5rc2NhcGU6Z3JvdXBtb2RlPSJsYXllciIKICAgICBpZD0ibGF5ZXIxIgogICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAsLTUyLjM2MjI3KSI+CiAgICA8cGF0aAogICAgICAgc3R5bGU9ImNvbG9yOiMwMDAwMDA7Zm9udC1zdHlsZTpub3JtYWw7Zm9udC12YXJpYW50Om5vcm1hbDtmb250LXdlaWdodDpub3JtYWw7Zm9udC1zdHJldGNoOm5vcm1hbDtmb250LXNpemU6bWVkaXVtO2xpbmUtaGVpZ2h0Om5vcm1hbDtmb250LWZhbWlseTpzYW5zLXNlcmlmO3RleHQtaW5kZW50OjA7dGV4dC1hbGlnbjpzdGFydDt0ZXh0LWRlY29yYXRpb246bm9uZTt0ZXh0LWRlY29yYXRpb24tbGluZTpub25lO3RleHQtZGVjb3JhdGlvbi1zdHlsZTpzb2xpZDt0ZXh0LWRlY29yYXRpb24tY29sb3I6IzAwMDAwMDtsZXR0ZXItc3BhY2luZzpub3JtYWw7d29yZC1zcGFjaW5nOm5vcm1hbDt0ZXh0LXRyYW5zZm9ybTpub25lO2RpcmVjdGlvbjpsdHI7YmxvY2stcHJvZ3Jlc3Npb246dGI7d3JpdGluZy1tb2RlOmxyLXRiO2Jhc2VsaW5lLXNoaWZ0OmJhc2VsaW5lO3RleHQtYW5jaG9yOnN0YXJ0O3doaXRlLXNwYWNlOm5vcm1hbDtjbGlwLXJ1bGU6bm9uemVybztkaXNwbGF5OmlubGluZTtvdmVyZmxvdzp2aXNpYmxlO3Zpc2liaWxpdHk6dmlzaWJsZTtvcGFjaXR5OjE7aXNvbGF0aW9uOmF1dG87bWl4LWJsZW5kLW1vZGU6bm9ybWFsO2NvbG9yLWludGVycG9sYXRpb246c1JHQjtjb2xvci1pbnRlcnBvbGF0aW9uLWZpbHRlcnM6bGluZWFyUkdCO3NvbGlkLWNvbG9yOiMwMDAwMDA7c29saWQtb3BhY2l0eToxO2ZpbGw6IzAwMDAwMDtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MTA7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLWRhc2hvZmZzZXQ6MDtzdHJva2Utb3BhY2l0eToxO2NvbG9yLXJlbmRlcmluZzphdXRvO2ltYWdlLXJlbmRlcmluZzphdXRvO3NoYXBlLXJlbmRlcmluZzphdXRvO3RleHQtcmVuZGVyaW5nOmF1dG87ZW5hYmxlLWJhY2tncm91bmQ6YWNjdW11bGF0ZSIKICAgICAgIGQ9Im0gLTYwMy40OTAzNSwxNjY5LjM5NyBjIC0xMi4wNTM2LDAgLTIyLjA2MTcsLTkuOTI3NSAtMjIuMDYxNywtMjEuODg0IGwgMCwtNTU2LjIzMjQgYyAwLC0xMS45NTY0IDEwLjAwODEsLTIxLjg4MzYgMjIuMDYxNywtMjEuODgzNiBsIDc1NS44NzY1LDAgYyAxMi4wNTM2LDAgMjIuMDYxOCw5LjkyNzQgMjIuMDYxOCwyMS44ODM2IGwgMCw1NTYuMjMyNCBjIDAsMTEuOTU2NSAtMTAuMDA4MSwyMS44ODQgLTIyLjA2MTgsMjEuODg0IGwgLTc1NS44NzY1LDAgeiBtIDAsLTE5LjM1NDkgNzU1Ljg3NjUsMCBjIDEuNTgxNCwwIDIuNTQ5NiwtMC45NjA0IDIuNTQ5NiwtMi41MjkxIGwgMCwtNTU2LjIzMjQgYyAwLC0xLjU2ODUgLTAuOTY4MiwtMi41Mjg5IC0yLjU0OTYsLTIuNTI4OSBsIC03NTUuODc2NSwwIGMgLTEuNTgxMywwIC0yLjU0OTUsMC45NjA0IC0yLjU0OTUsMi41Mjg5IGwgMCw1NTYuMjMyNCBjIDAsMS41Njg3IDAuOTY4MiwyLjUyOTEgMi41NDk1LDIuNTI5MSB6IgogICAgICAgaWQ9InJlY3Q0MjIxIgogICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz4KICAgIDxwYXRoCiAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIgogICAgICAgZD0ibSAxNTIwLjAyNDQsMzgyLjM0MDM4IGMgLTExLjk5ODIsMCAtMjEuOTU4OSw5Ljg1MjQ0IC0yMS45NTg5LDIxLjcyMDI1IGwgMCw1NTUuNTk3MTUgYyAwLDExLjg2NzgzIDkuOTYwNywyMS43MTYzMiAyMS45NTg5LDIxLjcxNjMyIGwgMzM2LjA1NzcsMCBjIDExLjk5ODMsMCAyMS45NTksLTkuODQ4NDkgMjEuOTU5LC0yMS43MTYzMiBsIDAsLTU1NS41OTcxNCBjIDAsLTExLjg2NzgxIC05Ljk2MDgsLTIxLjcyMDI1IC0yMS45NTksLTIxLjcyMDI1IGwgLTMzNi4wNTc3LDAgeiBtIDAsMTkuMDU1NzEgMzM2LjA1NzcsMCBjIDEuNjU5OCwwIDIuNjk3NywxLjAyMjg4IDIuNjk3NywyLjY2NDU0IGwgMCw1NTUuNTk3MTUgYyAwLDEuNjQxNTUgLTEuMDM4LDIuNjY0NTMgLTIuNjk3NywyLjY2NDUzIGwgLTMzNi4wNTc3LDAgYyAtMS42NTk3LDAgLTIuNjk3NiwtMS4wMjI5OSAtMi42OTc2LC0yLjY2NDUzIGwgMCwtNTU1LjU5NzE0IGMgMCwtMS42NDE2NiAxLjAzNzksLTIuNjY0NTQgMi42OTc2LC0yLjY2NDU0IHogTSAxMTAwLDM4My4zMDY1NiBjIC0xMS45OTgyLDAgLTIxLjk1ODksOS44NTI0NSAtMjEuOTU4OSwyMS43MjAyNSBsIDAsNTU1LjU5NzE2IGMgMCwxMS44Njc4MiA5Ljk2MDcsMjEuNzE2MzMgMjEuOTU4OSwyMS43MTYzMyBsIDMzNi4wNTc3LDAgYyAxMS45OTgyLDAgMjEuOTU5LC05Ljg0ODUxIDIxLjk1OSwtMjEuNzE2MzMgbCAwLC01NTUuNTk3MTUgYyAwLC0xMS44Njc4IC05Ljk2MDgsLTIxLjcyMDI1IC0yMS45NTksLTIxLjcyMDI1IGwgLTMzNi4wNTc3LDAgeiBtIDAsMTkuMDU1NzEgMzM2LjA1NzcsMCBjIDEuNjU5NywwIDIuNjk3NiwxLjAyMjg4IDIuNjk3NiwyLjY2NDU0IGwgMCw1NTUuNTk3MTYgYyAwLDEuNjQxNTQgLTEuMDM3OSwyLjY2NDU0IC0yLjY5NzYsMi42NjQ1NCBsIC0zMzYuMDU3NywwIGMgLTEuNjU5NywwIC0yLjY5NzYsLTEuMDIzIC0yLjY5NzYsLTIuNjY0NTQgbCAwLC01NTUuNTk3MTUgYyAwLC0xLjY0MTY4IDEuMDM3OSwtMi42NjQ1NCAyLjY5NzYsLTIuNjY0NTQgeiIKICAgICAgIHN0eWxlPSJjb2xvcjojMDAwMDAwO2ZvbnQtc3R5bGU6bm9ybWFsO2ZvbnQtdmFyaWFudDpub3JtYWw7Zm9udC13ZWlnaHQ6bm9ybWFsO2ZvbnQtc3RyZXRjaDpub3JtYWw7Zm9udC1zaXplOm1lZGl1bTtsaW5lLWhlaWdodDpub3JtYWw7Zm9udC1mYW1pbHk6c2Fucy1zZXJpZjt0ZXh0LWluZGVudDowO3RleHQtYWxpZ246c3RhcnQ7dGV4dC1kZWNvcmF0aW9uOm5vbmU7dGV4dC1kZWNvcmF0aW9uLWxpbmU6bm9uZTt0ZXh0LWRlY29yYXRpb24tc3R5bGU6c29saWQ7dGV4dC1kZWNvcmF0aW9uLWNvbG9yOiMwMDAwMDA7bGV0dGVyLXNwYWNpbmc6bm9ybWFsO3dvcmQtc3BhY2luZzpub3JtYWw7dGV4dC10cmFuc2Zvcm06bm9uZTtkaXJlY3Rpb246bHRyO2Jsb2NrLXByb2dyZXNzaW9uOnRiO3dyaXRpbmctbW9kZTpsci10YjtiYXNlbGluZS1zaGlmdDpiYXNlbGluZTt0ZXh0LWFuY2hvcjpzdGFydDt3aGl0ZS1zcGFjZTpub3JtYWw7Y2xpcC1ydWxlOm5vbnplcm87ZGlzcGxheTppbmxpbmU7b3ZlcmZsb3c6dmlzaWJsZTt2aXNpYmlsaXR5OnZpc2libGU7b3BhY2l0eToxO2lzb2xhdGlvbjphdXRvO21peC1ibGVuZC1tb2RlOm5vcm1hbDtjb2xvci1pbnRlcnBvbGF0aW9uOnNSR0I7Y29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzOmxpbmVhclJHQjtzb2xpZC1jb2xvcjojMDAwMDAwO3NvbGlkLW9wYWNpdHk6MTtmaWxsOiMwMDAwMDA7ZmlsbC1vcGFjaXR5OjE7ZmlsbC1ydWxlOmV2ZW5vZGQ7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjkuODYwMjI4NTQ7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLWRhc2hvZmZzZXQ6MDtzdHJva2Utb3BhY2l0eToxO2NvbG9yLXJlbmRlcmluZzphdXRvO2ltYWdlLXJlbmRlcmluZzphdXRvO3NoYXBlLXJlbmRlcmluZzphdXRvO3RleHQtcmVuZGVyaW5nOmF1dG87ZW5hYmxlLWJhY2tncm91bmQ6YWNjdW11bGF0ZSIKICAgICAgIGlkPSJyZWN0NDIzOCIgLz4KICAgIDxwYXRoCiAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIgogICAgICAgaWQ9InJlY3Q0Mjk4IgogICAgICAgZD0ibSAxMTAyLjg1NjYsMTE4Ni4zNjIzIGMgLTEyLjA4NjMsMCAtMjIuMTIzMyw4LjU0OSAtMjIuMTIzMywxOC44NDc2IGwgMCw1NjIuMzAxNSBjIDAsMTAuMjk4NSAxMC4wMzcxLDE4Ljg1MDggMjIuMTIzMywxOC44NTA4IGwgMTg2LjYwOTgsMCBjIDEyLjA4NjMsMCAyMi4xMjM0LC04LjU1MjMgMjIuMTIzNCwtMTguODUwOCBsIDAsLTU2Mi4zMDE1IGMgMCwtMTAuMjk4NiAtMTAuMDM3MSwtMTguODQ3NiAtMjIuMTIzNCwtMTguODQ3NiBsIC0xODYuNjA5OCwwIHogbSAyODQuNTY5OCwwIGMgLTEyLjA4NjIsMCAtMjIuMTE5NSw4LjU0OSAtMjIuMTE5NSwxOC44NDc2IGwgMCw1NjIuMzAxNSBjIDAsMTAuMjk4NSAxMC4wMzMzLDE4Ljg1MDggMjIuMTE5NSwxOC44NTA4IGwgMTg2LjYxMzcsMCBjIDEyLjA4NjMsMCAyMi4xMTk1LC04LjU1MjMgMjIuMTE5NSwtMTguODUwOCBsIDAsLTU2Mi4zMDE1IGMgMCwtMTAuMjk4NiAtMTAuMDMzMiwtMTguODQ3NiAtMjIuMTE5NSwtMTguODQ3NiBsIC0xODYuNjEzNywwIHogbSAyODQuNTczNiwwIGMgLTEyLjA4NjIsMCAtMjIuMTIzMyw4LjU0OSAtMjIuMTIzMywxOC44NDc2IGwgMCw1NjIuMzAxNSBjIDAsMTAuMjk4NSAxMC4wMzcxLDE4Ljg1MDggMjIuMTIzMywxOC44NTA4IGwgMTg2LjYxMzgsMCBjIDEyLjA4NjIsMCAyMi4xMTk1LC04LjU1MjMgMjIuMTE5NSwtMTguODUwOCBsIDAsLTU2Mi4zMDE1IGMgMCwtMTAuMjk4NiAtMTAuMDMzMywtMTguODQ3NiAtMjIuMTE5NSwtMTguODQ3NiBsIC0xODYuNjEzOCwwIHogbSAtNTY5LjE0MzQsMTYuNjY2NiAxODYuNjA5OCwwIGMgMS41ODg0LDAgMi41NjM1LDAuODI3NiAyLjU2MzUsMi4xODEgbCAwLDU2Mi4zMDE1IGMgMCwxLjM1MzMgLTAuOTc1LDIuMTg0MyAtMi41NjM1LDIuMTg0MyBsIC0xODYuNjA5OCwwIGMgLTEuNTg4NCwwIC0yLjU2MzQsLTAuODMxIC0yLjU2MzQsLTIuMTg0MyBsIDAsLTU2Mi4zMDE1IGMgMCwtMS4zNTM0IDAuOTc1LC0yLjE4MSAyLjU2MzQsLTIuMTgxIHogbSAyODQuNTY5OCwwIDE4Ni42MTM3LDAgYyAxLjU4ODQsMCAyLjU1OTYsMC44Mjc2IDIuNTU5NiwyLjE4MSBsIDAsNTYyLjMwMTUgYyAwLDEuMzUzMyAtMC45NzEyLDIuMTg0MyAtMi41NTk2LDIuMTg0MyBsIC0xODYuNjEzNywwIGMgLTEuNTg4NCwwIC0yLjU1OTYsLTAuODMxIC0yLjU1OTYsLTIuMTg0MyBsIDAsLTU2Mi4zMDE1IGMgMCwtMS4zNTM0IDAuOTcxMywtMi4xODEgMi41NTk2LC0yLjE4MSB6IG0gMjg0LjU3MzYsMCAxODYuNjEzOCwwIGMgMS41ODg0LDAgMi41NTk1LDAuODI3NiAyLjU1OTUsMi4xODEgbCAwLDU2Mi4zMDE1IGMgMCwxLjM1MzMgLTAuOTcxMSwyLjE4NDMgLTIuNTU5NSwyLjE4NDMgbCAtMTg2LjYxMzgsMCBjIC0xLjU4ODMsMCAtMi41NjM0LC0wLjgzMSAtMi41NjM0LC0yLjE4NDMgbCAwLC01NjIuMzAxNSBjIDAsLTEuMzUzNCAwLjk3NTEsLTIuMTgxIDIuNTYzNCwtMi4xODEgeiIKICAgICAgIHN0eWxlPSJjb2xvcjojMDAwMDAwO2ZvbnQtc3R5bGU6bm9ybWFsO2ZvbnQtdmFyaWFudDpub3JtYWw7Zm9udC13ZWlnaHQ6bm9ybWFsO2ZvbnQtc3RyZXRjaDpub3JtYWw7Zm9udC1zaXplOm1lZGl1bTtsaW5lLWhlaWdodDpub3JtYWw7Zm9udC1mYW1pbHk6c2Fucy1zZXJpZjt0ZXh0LWluZGVudDowO3RleHQtYWxpZ246c3RhcnQ7dGV4dC1kZWNvcmF0aW9uOm5vbmU7dGV4dC1kZWNvcmF0aW9uLWxpbmU6bm9uZTt0ZXh0LWRlY29yYXRpb24tc3R5bGU6c29saWQ7dGV4dC1kZWNvcmF0aW9uLWNvbG9yOiMwMDAwMDA7bGV0dGVyLXNwYWNpbmc6bm9ybWFsO3dvcmQtc3BhY2luZzpub3JtYWw7dGV4dC10cmFuc2Zvcm06bm9uZTtkaXJlY3Rpb246bHRyO2Jsb2NrLXByb2dyZXNzaW9uOnRiO3dyaXRpbmctbW9kZTpsci10YjtiYXNlbGluZS1zaGlmdDpiYXNlbGluZTt0ZXh0LWFuY2hvcjpzdGFydDt3aGl0ZS1zcGFjZTpub3JtYWw7Y2xpcC1ydWxlOm5vbnplcm87ZGlzcGxheTppbmxpbmU7b3ZlcmZsb3c6dmlzaWJsZTt2aXNpYmlsaXR5OnZpc2libGU7b3BhY2l0eToxO2lzb2xhdGlvbjphdXRvO21peC1ibGVuZC1tb2RlOm5vcm1hbDtjb2xvci1pbnRlcnBvbGF0aW9uOnNSR0I7Y29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzOmxpbmVhclJHQjtzb2xpZC1jb2xvcjojMDAwMDAwO3NvbGlkLW9wYWNpdHk6MTtmaWxsOiMwMDAwMDA7ZmlsbC1vcGFjaXR5OjE7ZmlsbC1ydWxlOmV2ZW5vZGQ7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEwO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1kYXNob2Zmc2V0OjA7c3Ryb2tlLW9wYWNpdHk6MTtjb2xvci1yZW5kZXJpbmc6YXV0bztpbWFnZS1yZW5kZXJpbmc6YXV0bztzaGFwZS1yZW5kZXJpbmc6YXV0bzt0ZXh0LXJlbmRlcmluZzphdXRvO2VuYWJsZS1iYWNrZ3JvdW5kOmFjY3VtdWxhdGUiIC8+CiAgICA8cGF0aAogICAgICAgc3R5bGU9ImNvbG9yOiMwMDAwMDA7Zm9udC1zdHlsZTpub3JtYWw7Zm9udC12YXJpYW50Om5vcm1hbDtmb250LXdlaWdodDpub3JtYWw7Zm9udC1zdHJldGNoOm5vcm1hbDtmb250LXNpemU6bWVkaXVtO2xpbmUtaGVpZ2h0Om5vcm1hbDtmb250LWZhbWlseTpzYW5zLXNlcmlmO3RleHQtaW5kZW50OjA7dGV4dC1hbGlnbjpzdGFydDt0ZXh0LWRlY29yYXRpb246bm9uZTt0ZXh0LWRlY29yYXRpb24tbGluZTpub25lO3RleHQtZGVjb3JhdGlvbi1zdHlsZTpzb2xpZDt0ZXh0LWRlY29yYXRpb24tY29sb3I6IzAwMDAwMDtsZXR0ZXItc3BhY2luZzpub3JtYWw7d29yZC1zcGFjaW5nOm5vcm1hbDt0ZXh0LXRyYW5zZm9ybTpub25lO2RpcmVjdGlvbjpsdHI7YmxvY2stcHJvZ3Jlc3Npb246dGI7d3JpdGluZy1tb2RlOmxyLXRiO2Jhc2VsaW5lLXNoaWZ0OmJhc2VsaW5lO3RleHQtYW5jaG9yOnN0YXJ0O3doaXRlLXNwYWNlOm5vcm1hbDtjbGlwLXJ1bGU6bm9uemVybztkaXNwbGF5OmlubGluZTtvdmVyZmxvdzp2aXNpYmxlO3Zpc2liaWxpdHk6dmlzaWJsZTtvcGFjaXR5OjE7aXNvbGF0aW9uOmF1dG87bWl4LWJsZW5kLW1vZGU6bm9ybWFsO2NvbG9yLWludGVycG9sYXRpb246c1JHQjtjb2xvci1pbnRlcnBvbGF0aW9uLWZpbHRlcnM6bGluZWFyUkdCO3NvbGlkLWNvbG9yOiMwMDAwMDA7c29saWQtb3BhY2l0eToxO2ZpbGw6IzAwMDAwMDtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MjA7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLWRhc2hvZmZzZXQ6MDtzdHJva2Utb3BhY2l0eToxO2NvbG9yLXJlbmRlcmluZzphdXRvO2ltYWdlLXJlbmRlcmluZzphdXRvO3NoYXBlLXJlbmRlcmluZzphdXRvO3RleHQtcmVuZGVyaW5nOmF1dG87ZW5hYmxlLWJhY2tncm91bmQ6YWNjdW11bGF0ZSIKICAgICAgIGQ9Im0gMTMwLjI4NTE1LDEyMDYuMzYyMiBjIC04Ljg0OTIsMCAtMTYuMjg1MTUsNy40MzY3IC0xNi4yODUxNSwxNi4yODUyIGwgMCw1NjcuNDI5NyBjIDAsOC44NDg0IDcuNDM1OTcsMTYuMjg1MiAxNi4yODUxNSwxNi4yODUyIGwgMjMxLjE3OTY4LDAgYyA4Ljg0OTE2LDAgMTYuMjg1MTcsLTcuNDM2OCAxNi4yODUxNywtMTYuMjg1MiBsIDAsLTU2Ny40Mjk3IGMgMCwtOC44NDg1IC03LjQzNTk3LC0xNi4yODUyIC0xNi4yODUxNywtMTYuMjg1MiBsIC0yMzEuMTc5NjcsMCB6IG0gMzQxLjI0OTk5LDAgYyAtOC44NDkxOSwwIC0xNi4yODUxNiw3LjQzNjcgLTE2LjI4NTE2LDE2LjI4NTIgbCAwLDU2Ny40Mjk3IGMgMCw4Ljg0ODQgNy40MzU5OSwxNi4yODUyIDE2LjI4NTE2LDE2LjI4NTIgbCA0MjYuMTc5NjYsMCBjIDguODQ5MjEsMCAxNi4yODUyLC03LjQzNjggMTYuMjg1MiwtMTYuMjg1MiBsIDAsLTU2Ny40Mjk3IGMgMCwtOC44NDg1IC03LjQzNTk5LC0xNi4yODUyIC0xNi4yODUyLC0xNi4yODUyIGwgLTQyNi4xNzk2NiwwIHogbSAtMzM3LjUzNTE2LDIwIDIyMy43NSwwIDAsNTYwLjAwMDEgLTIyMy43NSwwIDAsLTU2MC4wMDAxIHogbSAzNDEuMjUsMCA0MTguNzUwMDIsMCAwLDU2MC4wMDAxIC00MTguNzUsMCAwLC01NjAuMDAwMSB6IgogICAgICAgaWQ9InJlY3Q0ODk3IgogICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz4KICAgIDxwYXRoCiAgICAgICBzdHlsZT0iY29sb3I6IzAwMDAwMDtmb250LXN0eWxlOm5vcm1hbDtmb250LXZhcmlhbnQ6bm9ybWFsO2ZvbnQtd2VpZ2h0Om5vcm1hbDtmb250LXN0cmV0Y2g6bm9ybWFsO2ZvbnQtc2l6ZTptZWRpdW07bGluZS1oZWlnaHQ6bm9ybWFsO2ZvbnQtZmFtaWx5OnNhbnMtc2VyaWY7dGV4dC1pbmRlbnQ6MDt0ZXh0LWFsaWduOnN0YXJ0O3RleHQtZGVjb3JhdGlvbjpub25lO3RleHQtZGVjb3JhdGlvbi1saW5lOm5vbmU7dGV4dC1kZWNvcmF0aW9uLXN0eWxlOnNvbGlkO3RleHQtZGVjb3JhdGlvbi1jb2xvcjojMDAwMDAwO2xldHRlci1zcGFjaW5nOm5vcm1hbDt3b3JkLXNwYWNpbmc6bm9ybWFsO3RleHQtdHJhbnNmb3JtOm5vbmU7ZGlyZWN0aW9uOmx0cjtibG9jay1wcm9ncmVzc2lvbjp0Yjt3cml0aW5nLW1vZGU6bHItdGI7YmFzZWxpbmUtc2hpZnQ6YmFzZWxpbmU7dGV4dC1hbmNob3I6c3RhcnQ7d2hpdGUtc3BhY2U6bm9ybWFsO2NsaXAtcnVsZTpub256ZXJvO2Rpc3BsYXk6aW5saW5lO292ZXJmbG93OnZpc2libGU7dmlzaWJpbGl0eTp2aXNpYmxlO29wYWNpdHk6MTtpc29sYXRpb246YXV0bzttaXgtYmxlbmQtbW9kZTpub3JtYWw7Y29sb3ItaW50ZXJwb2xhdGlvbjpzUkdCO2NvbG9yLWludGVycG9sYXRpb24tZmlsdGVyczpsaW5lYXJSR0I7c29saWQtY29sb3I6IzAwMDAwMDtzb2xpZC1vcGFjaXR5OjE7ZmlsbDojMDAwMDAwO2ZpbGwtb3BhY2l0eToxO2ZpbGwtcnVsZTpldmVub2RkO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxMDtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2UtZGFzaG9mZnNldDowO3N0cm9rZS1vcGFjaXR5OjE7Y29sb3ItcmVuZGVyaW5nOmF1dG87aW1hZ2UtcmVuZGVyaW5nOmF1dG87c2hhcGUtcmVuZGVyaW5nOmF1dG87dGV4dC1yZW5kZXJpbmc6YXV0bztlbmFibGUtYmFja2dyb3VuZDphY2N1bXVsYXRlIgogICAgICAgZD0ibSAtMTYwNi4xMDY0LDEwOTIuNDA1MSBjIC0xMi4wNTM2LDAgLTIyLjA2MjUsOS45Mjg0IC0yMi4wNjI1LDIxLjg4NDggbCAwLDU1Ni4yMzI0IGMgMCwxMS45NTY0IDEwLjAwODksMjEuODgyOCAyMi4wNjI1LDIxLjg4MjggbCA3NTUuODc0OTgsMCBjIDEyLjA1MzYsMCAyMi4wNjI1LC05LjkyNjYgMjIuMDYyNSwtMjEuODgyOCBsIDAsLTU1Ni4yMzI0IGMgMCwtMTEuOTU2NCAtMTAuMDA4OCwtMjEuODg0OCAtMjIuMDYyNSwtMjEuODg0OCB6IG0gMCwxOS4zNTU1IDc1NS44NzQ5OCwwIGMgMS41ODE0LDAgMi41NTA3OCwwLjk2MDYgMi41NTA3OCwyLjUyOTMgbCAwLDU1Ni4yMzI0IGMgMCwxLjU2ODUgLTAuOTY5MzgsMi41Mjc0IC0yLjU1MDc4LDIuNTI3NCBsIC03NTUuODc0OTgsMCBjIC0xLjU4MTMsMCAtMi41NTA3LC0wLjk1ODkgLTIuNTUwNywtMi41Mjc0IGwgMCwtNTU2LjIzMjQgYyAwLC0xLjU2ODcgMC45Njk0LC0yLjUyOTMgMi41NTA3LC0yLjUyOTMgeiBtIDg2LjIyMjcsNjYuNjQ0NSBjIC0zLjQ4MTYsMCAtNi4yODUyLDIuODAzMiAtNi4yODUyLDYuMjg1MiBsIDAsMzcuNDI5NyBjIDAsMy40ODIgMi44MDM2LDYuMjg1MSA2LjI4NTIsNi4yODUxIGwgODcuNDI5NiwwIGMgMy40ODE2LDAgNi4yODUyLC0yLjgwMzEgNi4yODUyLC02LjI4NTEgbCAwLC0zNy40Mjk3IGMgMCwtMy40ODIgLTIuODAzNiwtNi4yODUyIC02LjI4NTIsLTYuMjg1MiB6IG0gMjQ3Ljk5OTksMCBjIC0zLjQ4MTYsMCAtNi4yODUxLDIuODAzMiAtNi4yODUxLDYuMjg1MiBsIDAsMzcuNDI5NyBjIDAsMy40ODIgMi44MDM1LDYuMjg1MSA2LjI4NTEsNi4yODUxIGwgMzM3LjQyOTcyLDAgYyAzLjQ4MTYsMCA2LjI4NTE2LC0yLjgwMzEgNi4yODUxNiwtNi4yODUxIGwgMCwtMzcuNDI5NyBjIDAsLTMuNDgyIC0yLjgwMzU2LC02LjI4NTIgLTYuMjg1MTYsLTYuMjg1MiB6IG0gLTIwMiwxMjYgYyAtMy40ODE2LDAgLTYuMjg1MSwyLjgwMzIgLTYuMjg1MSw2LjI4NTIgbCAwLDEzNS40Mjk3IGMgMCwzLjQ4MiAyLjgwMzUsNi4yODUxIDYuMjg1MSw2LjI4NTEgbCA0OTEuNDI5NzIsMCBjIDMuNDgxNjEsMCA2LjI4NTE2LC0yLjgwMzEgNi4yODUxNiwtNi4yODUxIGwgMCwtMTM1LjQyOTcgYyAwLC0zLjQ4MiAtMi44MDM1NSwtNi4yODUyIC02LjI4NTE2LC02LjI4NTIgeiBtIDE1MiwyMjIgYyAtMy40ODE2LDAgLTYuMjg1MSwyLjgwMzIgLTYuMjg1MSw2LjI4NTIgbCAwLDM3LjQyOTcgYyAwLDMuNDgyIDIuODAzNSw2LjI4NTEgNi4yODUxLDYuMjg1MSBsIDE4Ny40Mjk3LDAgYyAzLjQ4MTYsMCA2LjI4NTIsLTIuODAzMSA2LjI4NTIsLTYuMjg1MSBsIDAsLTM3LjQyOTcgYyAwLC0zLjQ4MiAtMi44MDM2LC02LjI4NTIgLTYuMjg1MiwtNi4yODUyIHoiCiAgICAgICBpZD0icGF0aDQ5MTgiCiAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIgogICAgICAgc29kaXBvZGk6bm9kZXR5cGVzPSJzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3MiIC8+CiAgICA8cGF0aAogICAgICAgc3R5bGU9ImZpbGw6IzAwMDAwMDtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MXB4O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBkPSJtIC05NTQuNzE1MTMsMjYxLjM0NzU1IGMgLTMuNDgxNiwwIC02LjI4MzIxLDIuODAzMTkgLTYuMjgzMjEsNi4yODUxNiBsIDAsOTMuMjU5NzYgYyAwLDMuNDgxOTYgMi44MDE2MSw2LjI4NTE2IDYuMjgzMjEsNi4yODUxNiBsIDUwNi40NTExNywwIGMgMy40ODE2MSwwIDYuMjg1MTYsLTIuODAzMiA2LjI4NTE2LC02LjI4NTE2IGwgMCwtOTMuMjU5NzYgYyAwLC0zLjQ4MTk3IC0yLjgwMzU1LC02LjI4NTE2IC02LjI4NTE2LC02LjI4NTE2IGwgLTUwNi40NTExNywwIHogbSAwLDI0NS41NTQ2OSBjIC0zLjQ4MTYsMCAtNi4yODMyMSwyLjgwMzE5IC02LjI4MzIxLDYuMjg1MTUgbCAwLDIzLjQxMjExIGMgMCwzLjQ4MTk3IDIuODAxNjEsNi4yODUxNiA2LjI4MzIxLDYuMjg1MTYgbCA3ODIuNDUxMTcsMCBjIDMuNDgxNiwwIDYuMjg1MTYsLTIuODAzMTkgNi4yODUxNiwtNi4yODUxNiBsIDAsLTIzLjQxMjExIGMgMCwtMy40ODE5NiAtMi44MDM1NiwtNi4yODUxNSAtNi4yODUxNiwtNi4yODUxNSBsIC03ODIuNDUxMTcsMCB6IG0gMCwxMDUuNDYyODkgYyAtMy40ODE2LDAgLTYuMjgzMjEsMi44MDMxOSAtNi4yODMyMSw2LjI4NTE1IGwgMCwyMy40MTIxMSBjIDAsMy40ODE5NyAyLjgwMTYxLDYuMjg1MTYgNi4yODMyMSw2LjI4NTE2IGwgNzgyLjQ1MTE3LDAgYyAzLjQ4MTYsMCA2LjI4NTE2LC0yLjgwMzE5IDYuMjg1MTYsLTYuMjg1MTYgbCAwLC0yMy40MTIxMSBjIDAsLTMuNDgxOTYgLTIuODAzNTYsLTYuMjg1MTUgLTYuMjg1MTYsLTYuMjg1MTUgbCAtNzgyLjQ1MTE3LDAgeiBtIDAsMTA2LjUzNzExIGMgLTMuNDgxNiwwIC02LjI4MzIxLDIuODAzMTkgLTYuMjgzMjEsNi4yODUxNSBsIDAsMjMuNDEyMTEgYyAwLDMuNDgxOTcgMi44MDE2MSw2LjI4NTE2IDYuMjgzMjEsNi4yODUxNiBsIDc4Mi40NTExNywwIGMgMy40ODE2LDAgNi4yODUxNiwtMi44MDMxOSA2LjI4NTE2LC02LjI4NTE2IGwgMCwtMjMuNDEyMTEgYyAwLC0zLjQ4MTk2IC0yLjgwMzU2LC02LjI4NTE1IC02LjI4NTE2LC02LjI4NTE1IGwgLTc4Mi40NTExNywwIHogbSAwLDEwNS40NjI4OSBjIC0zLjQ4MTYsMCAtNi4yODMyMSwyLjgwMzE5IC02LjI4MzIxLDYuMjg1MTUgbCAwLDIzLjQxMjExIGMgMCwzLjQ4MTk3IDIuODAxNjEsNi4yODUxNiA2LjI4MzIxLDYuMjg1MTYgbCA3ODIuNDUxMTcsMCBjIDMuNDgxNiwwIDYuMjg1MTYsLTIuODAzMTkgNi4yODUxNiwtNi4yODUxNiBsIDAsLTIzLjQxMjExIGMgMCwtMy40ODE5NiAtMi44MDM1NiwtNi4yODUxNSAtNi4yODUxNiwtNi4yODUxNSBsIC03ODIuNDUxMTcsMCB6IgogICAgICAgaWQ9InJlY3Q0OTkwIgogICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz4KICAgIDxnCiAgICAgICBpZD0iZzUxMDAiCiAgICAgICB0cmFuc2Zvcm09Im1hdHJpeCgxLjE0Nzk4ODUsMCwwLDEuMTQ4MjQyNCwtMTYyNi42MzUsLTI0OTMuMjMyOCkiPgogICAgICA8cGF0aAogICAgICAgICBzdHlsZT0iZmlsbDojMDAwMDAwO2ZpbGwtcnVsZTpldmVub2RkO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDowLjg3MDk5MjU0cHg7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgICAgZD0ibSAyMjMxLjA4OTUsMTc3NC42MjM4IGMgLTcuNTA3MywwIC0xMy43ODYsNi4yNzc4IC0xMy43ODYsMTMuNzg0NiBsIDAsMjg3LjQyOTggYyAwLDcuNTA2OCA2LjI3ODcsMTMuNzg0NyAxMy43ODYsMTMuNzg0NyBsIDE3Mi40Mjk2LDAgYyA3LjUwNzIsMCAxMy43ODQzLC02LjI3NzkgMTMuNzg0MywtMTMuNzg0NyBsIDAsLTI4Ny40Mjk4IGMgMCwtNy41MDY4IC02LjI3NywtMTMuNzg0NiAtMTMuNzg0MywtMTMuNzg0NiBsIC0xNzIuNDI5NiwwIHogbSAtNDk2LjAwMDEsMi4wMDAzIGMgLTcuNTA3MywwIC0xMy43ODYsNi4yNzc5IC0xMy43ODYsMTMuNzg0NyBsIDAsMjg3LjQyOTggYyAwLDcuNTA2OCA2LjI3ODcsMTMuNzg0NiAxMy43ODYsMTMuNzg0NiBsIDE3Mi40Mjk3LDAgYyA3LjUwNzIsMCAxMy43ODQzLC02LjI3NzggMTMuNzg0MywtMTMuNzg0NiBsIDAsLTI4Ny40Mjk4IGMgMCwtNy41MDY4IC02LjI3NywtMTMuNzg0NyAtMTMuNzg0MywtMTMuNzg0NyBsIC0xNzIuNDI5NywwIHogbSAyNDUuOTk5MywwIGMgLTcuNTA3MywwIC0xMy43ODYsNi4yNzc5IC0xMy43ODYsMTMuNzg0NyBsIDAsMjg3LjQyOTggYyAwLDcuNTA2OCA2LjI3ODcsMTMuNzg0NiAxMy43ODYsMTMuNzg0NiBsIDE3Mi40Mjk2LDAgYyA3LjUwNzIsMCAxMy43ODQzLC02LjI3NzggMTMuNzg0MywtMTMuNzg0NiBsIDAsLTI4Ny40Mjk4IGMgMCwtNy41MDY4IC02LjI3NywtMTMuNzg0NyAtMTMuNzg0MywtMTMuNzg0NyBsIC0xNzIuNDI5NiwwIHogbSAyNTEuMjE1NSwxMi45OTg4IDE2OS45OTg1LDAgMCwyODUuMDAwOCAtMTY5Ljk5ODUsMCAwLC0yODUuMDAwOCB6IG0gLTQ5NiwyLjAwMDQgMTY5Ljk5ODQsMCAwLDI4NS4wMDA4IC0xNjkuOTk4NCwwIDAsLTI4NS4wMDA4IHogbSAyNDUuOTk5MiwwIDE3MC4wMDAyLDAgMCwyODUuMDAwOCAtMTcwLjAwMDIsMCAwLC0yODUuMDAwOCB6IG0gMzMyLjk5OTMsMzcuNTAxMiBjIC0yMy40NzIxLDAgLTQyLjQ5OTYsMTkuMDI4NCAtNDIuNDk5Niw0Mi41MDA1IDAsMjMuNDcyMSAxOS4wMjc1LDQyLjQ5ODcgNDIuNDk5Niw0Mi40OTg3IDIzLjQ3MjEsMCA0Mi41MDEzLC0xOS4wMjY2IDQyLjUwMTMsLTQyLjQ5ODcgMCwtMjMuNDcyMSAtMTkuMDI5MiwtNDIuNTAwNSAtNDIuNTAxMywtNDIuNTAwNSB6IG0gLTQ5Ni4wMDAxLDIuMDAwNCBjIC0yMy40NzIxLDAgLTQyLjQ5OTYsMTkuMDI4MyAtNDIuNDk5Niw0Mi41MDA0IDAsMjMuNDcyMSAxOS4wMjc1LDQyLjQ5ODcgNDIuNDk5Niw0Mi40OTg3IDIzLjQ3MjEsMCA0Mi41MDEzLC0xOS4wMjY2IDQyLjUwMTMsLTQyLjQ5ODcgMCwtMjMuNDcyMSAtMTkuMDI5MiwtNDIuNTAwNCAtNDIuNTAxMywtNDIuNTAwNCB6IG0gMjQ2LjAwMSwwIGMgLTIzLjQ3MjEsMCAtNDIuNDk5NiwxOS4wMjgzIC00Mi40OTk2LDQyLjUwMDQgMCwyMy40NzIxIDE5LjAyNzUsNDIuNDk4NyA0Mi40OTk2LDQyLjQ5ODcgMjMuNDcyMSwwIDQyLjQ5OTYsLTE5LjAyNjYgNDIuNDk5NiwtNDIuNDk4NyAwLC0yMy40NzIxIC0xOS4wMjc1LC00Mi41MDA0IC00Mi40OTk2LC00Mi41MDA0IHogbSAyMDcuNzg1MywxMjUuOTk5MyBjIC0zLjQ4MTYsMCAtNi4yODQ4LDIuODAzMiAtNi4yODQ4LDYuMjg1MSBsIDAsNi40Mjk2IGMgMCwzLjQ4MiAyLjgwMzIsNi4yODUxIDYuMjg0OCw2LjI4NTEgbCA4Ny40Mjg3LDAgYyAzLjQ4MTYsMCA2LjI4NjUsLTIuODAzMSA2LjI4NjUsLTYuMjg1MSBsIDAsLTYuNDI5NiBjIDAsLTMuNDgxOSAtMi44MDQ5LC02LjI4NTEgLTYuMjg2NSwtNi4yODUxIGwgLTg3LjQyODcsMCB6IG0gLTQ5Ni4wMDAxLDIuMDAwMyBjIC0zLjQ4MTYsMCAtNi4yODQ3LDIuODAzMiAtNi4yODQ3LDYuMjg1MSBsIDAsNi40Mjk3IGMgMCwzLjQ4MiAyLjgwMzEsNi4yODUxIDYuMjg0Nyw2LjI4NTEgbCA4Ny40Mjg4LDAgYyAzLjQ4MTYsMCA2LjI4NjUsLTIuODAzMSA2LjI4NjUsLTYuMjg1MSBsIDAsLTYuNDI5NyBjIDAsLTMuNDgxOSAtMi44MDQ5LC02LjI4NTEgLTYuMjg2NSwtNi4yODUxIGwgLTg3LjQyODgsMCB6IG0gMjQ1Ljk5OTMsMCBjIC0zLjQ4MTYsMCAtNi4yODQ4LDIuODAzMiAtNi4yODQ4LDYuMjg1MSBsIDAsNi40Mjk3IGMgMCwzLjQ4MiAyLjgwMzIsNi4yODUxIDYuMjg0OCw2LjI4NTEgbCA4Ny40MzA0LDAgYyAzLjQ4MTYsMCA2LjI4NDgsLTIuODAzMSA2LjI4NDgsLTYuMjg1MSBsIDAsLTYuNDI5NyBjIDAsLTMuNDgxOSAtMi44MDMyLC02LjI4NTEgLTYuMjg0OCwtNi4yODUxIGwgLTg3LjQzMDQsMCB6IG0gMjQ5Ljk5OTEsMzIuMDAwNCBjIC0zLjQ4MTYsMCAtNi4yODMxLDIuODAzIC02LjI4MzEsNi4yODUgbCAwLDYuNDI5NyBjIDAsMy40ODIgMi44MDE1LDYuMjg1MSA2LjI4MzEsNi4yODUxIGwgODcuNDMyMSwwIGMgMy40ODE2LDAgNi4yODQ4LC0yLjgwMzEgNi4yODQ4LC02LjI4NTEgbCAwLC02LjQyOTcgYyAwLC0zLjQ4MiAtMi44MDMyLC02LjI4NSAtNi4yODQ4LC02LjI4NSBsIC04Ny40MzIxLDAgeiBtIC00OTYuMDAwMSwyLjAwMDMgYyAtMy40ODE2LDAgLTYuMjgzLDIuODAzMSAtNi4yODMsNi4yODUxIGwgMCw2LjQyOTYgYyAwLDMuNDgyIDIuODAxNCw2LjI4NTEgNi4yODMsNi4yODUxIGwgODcuNDMyMiwwIGMgMy40ODE2LDAgNi4yODQ4LC0yLjgwMzEgNi4yODQ4LC02LjI4NTEgbCAwLC02LjQyOTYgYyAwLC0zLjQ4MiAtMi44MDMyLC02LjI4NTEgLTYuMjg0OCwtNi4yODUxIGwgLTg3LjQzMjIsMCB6IG0gMjQ2LjAwMSwwIGMgLTMuNDgxNiwwIC02LjI4NDgsMi44MDMxIC02LjI4NDgsNi4yODUxIGwgMCw2LjQyOTYgYyAwLDMuNDgyIDIuODAzMiw2LjI4NTEgNi4yODQ4LDYuMjg1MSBsIDg3LjQzMDQsMCBjIDMuNDgxNiwwIDYuMjg0OCwtMi44MDMxIDYuMjg0OCwtNi4yODUxIGwgMCwtNi40Mjk2IGMgMCwtMy40ODIgLTIuODAzMiwtNi4yODUxIC02LjI4NDgsLTYuMjg1MSBsIC04Ny40MzA0LDAgeiBtIDI0OS45OTkxLDMxLjk5ODYgYyAtMy40ODE2LDAgLTYuMjgzMSwyLjgwMzEgLTYuMjgzMSw2LjI4NTEgbCAwLDYuNDI5NyBjIDAsMy40ODIgMi44MDE1LDYuMjg1MSA2LjI4MzEsNi4yODUxIGwgODcuNDMyMSwwIGMgMy40ODE2LDAgNi4yODQ4LC0yLjgwMzEgNi4yODQ4LC02LjI4NTEgbCAwLC02LjQyOTcgYyAwLC0zLjQ4MiAtMi44MDMyLC02LjI4NTEgLTYuMjg0OCwtNi4yODUxIGwgLTg3LjQzMjEsMCB6IG0gLTQ5Ni4wMDAxLDIuMDAwNCBjIC0zLjQ4MTYsMCAtNi4yODMsMi44MDMgLTYuMjgzLDYuMjg1IGwgMCw2LjQyOTcgYyAwLDMuNDgyIDIuODAxNCw2LjI4NTEgNi4yODMsNi4yODUxIGwgODcuNDMyMiwwIGMgMy40ODE2LDAgNi4yODQ4LC0yLjgwMzEgNi4yODQ4LC02LjI4NTEgbCAwLC02LjQyOTcgYyAwLC0zLjQ4MiAtMi44MDMyLC02LjI4NSAtNi4yODQ4LC02LjI4NSBsIC04Ny40MzIyLDAgeiBtIDI0Ni4wMDEsMCBjIC0zLjQ4MTYsMCAtNi4yODQ4LDIuODAzIC02LjI4NDgsNi4yODUgbCAwLDYuNDI5NyBjIDAsMy40ODIgMi44MDMyLDYuMjg1MSA2LjI4NDgsNi4yODUxIGwgODcuNDMwNCwwIGMgMy40ODE2LDAgNi4yODQ4LC0yLjgwMzEgNi4yODQ4LC02LjI4NTEgbCAwLC02LjQyOTcgYyAwLC0zLjQ4MiAtMi44MDMyLC02LjI4NSAtNi4yODQ4LC02LjI4NSBsIC04Ny40MzA0LDAgeiIKICAgICAgICAgaWQ9InBhdGg1MTEwIgogICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPgogICAgPC9nPgogICAgPGZsb3dSb290CiAgICAgICB4bWw6c3BhY2U9InByZXNlcnZlIgogICAgICAgaWQ9ImZsb3dSb290NTEzMSIKICAgICAgIHN0eWxlPSJmaWxsOmJsYWNrO3N0cm9rZTpub25lO3N0cm9rZS1vcGFjaXR5OjE7c3Ryb2tlLXdpZHRoOjFweDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLWxpbmVjYXA6YnV0dDtmaWxsLW9wYWNpdHk6MTtmb250LWZhbWlseTpTYW5zO2ZvbnQtc3R5bGU6bm9ybWFsO2ZvbnQtd2VpZ2h0Om5vcm1hbDtmb250LXNpemU6NDBweDtsaW5lLWhlaWdodDoxMjUlO2xldHRlci1zcGFjaW5nOjBweDt3b3JkLXNwYWNpbmc6MHB4Ij48Zmxvd1JlZ2lvbgogICAgICAgICBpZD0iZmxvd1JlZ2lvbjUxMzMiPjxyZWN0CiAgICAgICAgICAgaWQ9InJlY3Q1MTM1IgogICAgICAgICAgIHdpZHRoPSI0MDAiCiAgICAgICAgICAgaGVpZ2h0PSIxNTAiCiAgICAgICAgICAgeD0iMTAwIgogICAgICAgICAgIHk9IjQwMCIgLz48L2Zsb3dSZWdpb24+PGZsb3dQYXJhCiAgICAgICAgIGlkPSJmbG93UGFyYTUxMzciIC8+PC9mbG93Um9vdD4gICAgPHBhdGgKICAgICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiCiAgICAgICBpZD0icGF0aDUxNTIiCiAgICAgICBkPSJtIC0xNjQ3Ljg0NjMsLTE3Ny41NTg2NCAtNy40NzY2LDE0MC43MDcwMjcgMTcuNzU5OCwwIGMgMi4xODExLC0yNy4xMzg2NCA5LjAzMzksLTQ4LjY3MjM3IDIwLjU2MjUsLTY0LjYwMTU1NyAxMS41Mjg0LC0xNS45MjkyMSAyNS4zOTU0LC0yNi42OTYwNyA0MS41OTc3LC0zMi4zMDA3OCAxMi40NjMxLC00LjEyOTgxIDMzLjQ5NTUsLTYuMTkzMzYgNjMuMDk1NywtNi4xOTMzNiBsIDc2LjE4MTUsMCAwLDQ1OC40MDYyNSBjIDAsMzMuNjI4MyAtMy40Mjg0LDU1LjE2MjAxIC0xMC4yODMxLDY0LjYwMTU1IC0xMS4yMTY4LDE1LjMzOTIzIC0zMC4yMjM2LDIzLjAwOTc3IC01Ny4wMTk1LDIzLjAwOTc3IGwgLTIyLjQzMzYsMCAwLDE2LjM3MTA5IDI2OC43NDAyLDAgMCwtMTYuMzcxMDkgLTIxLjk2NjgsMCBjIC0yNC42MTQ5LDAgLTQyLjg0MTYsLTYuMTk0NjIgLTU0LjY4MTYsLTE4LjU4Mzk4IC04LjQxMjcsLTkuMTQ0NTUgLTEyLjYyMTEsLTMyLjE1NDE4IC0xMi42MjExLC02OS4wMjczNCBsIDAsLTQ1OC40MDYyNSA4OS4yNjk1LDAgYyAyNi4xNzI4LDAgNDcuMjAzMSw0LjEyOTA5IDYzLjA5MzgsMTIuMzg4NjcgMTYuMjAyMiw3Ljk2NDYgMjkuMTMyLDIwLjUwMjE5IDM4Ljc5MSwzNy42MTEzMjcgNS45MiwxMC42MTk0NSAxMC41OTQxLDI4LjMxNjk0IDE0LjAyMTUsNTMuMDk1NyBsIDE3Ljc1OTcsMCAtNy4wMDk3LC0xNDAuNzA3MDI3IC01MTcuMzgwOSwwIHoiCiAgICAgICBzdHlsZT0iZm9udC1zdHlsZTpub3JtYWw7Zm9udC12YXJpYW50Om5vcm1hbDtmb250LXdlaWdodDpub3JtYWw7Zm9udC1zdHJldGNoOm5vcm1hbDtmb250LXNpemU6NTAwcHg7bGluZS1oZWlnaHQ6MTI1JTtmb250LWZhbWlseTonVGltZXMgTmV3IFJvbWFuJzstaW5rc2NhcGUtZm9udC1zcGVjaWZpY2F0aW9uOidUaW1lcyBOZXcgUm9tYW4sICc7bGV0dGVyLXNwYWNpbmc6MHB4O3dvcmQtc3BhY2luZzowcHg7ZmlsbDojMDAwMDAwO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxcHg7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIgLz4KICAgIDxmbG93Um9vdAogICAgICAgc3R5bGU9ImZvbnQtc3R5bGU6bm9ybWFsO2ZvbnQtdmFyaWFudDpub3JtYWw7Zm9udC13ZWlnaHQ6bm9ybWFsO2ZvbnQtc3RyZXRjaDpub3JtYWw7Zm9udC1zaXplOjQwcHg7bGluZS1oZWlnaHQ6MTI1JTtmb250LWZhbWlseTpTYW5zOy1pbmtzY2FwZS1mb250LXNwZWNpZmljYXRpb246J1RpbWVzIE5ldyBSb21hbiwgJztsZXR0ZXItc3BhY2luZzowcHg7d29yZC1zcGFjaW5nOjBweDtmaWxsOiMwMDAwMDA7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjFweDtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2Utb3BhY2l0eToxIgogICAgICAgaWQ9ImZsb3dSb290NTE5OSIKICAgICAgIHhtbDpzcGFjZT0icHJlc2VydmUiCiAgICAgICB0cmFuc2Zvcm09Im1hdHJpeCgxLjM4MjUzNzksMCwwLDEuMzkyMzI1OCwtMC4yNzM0OTQ0OSwtMTYyLjMxNDI1KSI+PGZsb3dSZWdpb24KICAgICAgICAgaWQ9ImZsb3dSZWdpb241MjAxIj48cmVjdAogICAgICAgICAgIHk9IjE1MCIKICAgICAgICAgICB4PSIyNTAiCiAgICAgICAgICAgaGVpZ2h0PSI2NTAiCiAgICAgICAgICAgd2lkdGg9IjYwMCIKICAgICAgICAgICBpZD0icmVjdDUyMDMiIC8+PC9mbG93UmVnaW9uPjxmbG93UGFyYQogICAgICAgICBpZD0iZmxvd1BhcmE1MjA1IiAvPjwvZmxvd1Jvb3Q+ICAgIDxwYXRoCiAgICAgICBzdHlsZT0iY29sb3I6IzAwMDAwMDtmb250LXN0eWxlOm5vcm1hbDtmb250LXZhcmlhbnQ6bm9ybWFsO2ZvbnQtd2VpZ2h0Om5vcm1hbDtmb250LXN0cmV0Y2g6bm9ybWFsO2ZvbnQtc2l6ZTo0MHB4O2xpbmUtaGVpZ2h0OjEyNSU7Zm9udC1mYW1pbHk6J1l1cHB5IFRDJzstaW5rc2NhcGUtZm9udC1zcGVjaWZpY2F0aW9uOidZdXBweSBUQyc7dGV4dC1pbmRlbnQ6MDt0ZXh0LWFsaWduOnN0YXJ0O3RleHQtZGVjb3JhdGlvbjpub25lO3RleHQtZGVjb3JhdGlvbi1saW5lOm5vbmU7dGV4dC1kZWNvcmF0aW9uLXN0eWxlOnNvbGlkO3RleHQtZGVjb3JhdGlvbi1jb2xvcjojMDAwMDAwO2xldHRlci1zcGFjaW5nOjBweDt3b3JkLXNwYWNpbmc6MHB4O3RleHQtdHJhbnNmb3JtOm5vbmU7ZGlyZWN0aW9uOmx0cjtibG9jay1wcm9ncmVzc2lvbjp0Yjt3cml0aW5nLW1vZGU6bHItdGI7YmFzZWxpbmUtc2hpZnQ6YmFzZWxpbmU7dGV4dC1hbmNob3I6c3RhcnQ7d2hpdGUtc3BhY2U6bm9ybWFsO2NsaXAtcnVsZTpub256ZXJvO2Rpc3BsYXk6aW5saW5lO292ZXJmbG93OnZpc2libGU7dmlzaWJpbGl0eTp2aXNpYmxlO29wYWNpdHk6MTtpc29sYXRpb246YXV0bzttaXgtYmxlbmQtbW9kZTpub3JtYWw7Y29sb3ItaW50ZXJwb2xhdGlvbjpzUkdCO2NvbG9yLWludGVycG9sYXRpb24tZmlsdGVyczpsaW5lYXJSR0I7c29saWQtY29sb3I6IzAwMDAwMDtzb2xpZC1vcGFjaXR5OjE7ZmlsbDojMDAwMDAwO2ZpbGwtb3BhY2l0eToxO2ZpbGwtcnVsZTpub256ZXJvO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoyMDtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2UtZGFzaG9mZnNldDowO3N0cm9rZS1vcGFjaXR5OjE7Y29sb3ItcmVuZGVyaW5nOmF1dG87aW1hZ2UtcmVuZGVyaW5nOmF1dG87c2hhcGUtcmVuZGVyaW5nOmF1dG87dGV4dC1yZW5kZXJpbmc6YXV0bztlbmFibGUtYmFja2dyb3VuZDphY2N1bXVsYXRlIgogICAgICAgZD0ibSAtMTU5MC44NzE3LC05MTMuNDIwNjcgMCwxMCAwLDI1Mi4xNTIzNSAxMjIuODM2LDAgYyAwLjE5ODUsMS41NTUyIDAuMzU5NCwzLjA3ODUgMC4zNTk0LDQuNDQzMzYgbCAwLDAuOTkwMjQgMC4xOTMzLDAuOTY4NzUgYyAwLjU2MzYsMi44MjAzIDAuOTE0MSw2LjY1NjExIDAuOTE0MSwxMS4zNjcxOSAwLDQ5LjY5NzA2IC0xMC4zNzYyLDkzLjA3NTU5IC0zMC45NTcxLDEzMC43MjA3IGwgLTAuMDM1LDAuMDY0NSAtMC4wMzUsMC4wNjQ1IGMgLTE5LjU2NDQsMzcuMDY0MTIgLTQ3LjAyMDUsNTcuNDY1NDggLTg0Ljg5MjUsNjMuNjY3OTcgbCAtOC4zODI5LDEuMzczMDUgMCwxMjQuMTg3NDkgMTEuMTk1NCwtMS4zNDk2MSBjIDgyLjQwNywtOS45Mjc3OSAxNDUuNDUyMywtNDkuODI2ODggMTg2LjA4NCwtMTE4LjExNTIyIGwgMC4wMTIsLTAuMDIxNSAwLjAxNCwtMC4wMjE1IGMgNDAuMjY1NiwtNjguNDMzNTggNjAuMjAzMiwtMTUxLjA1NTg4IDYwLjIwMzIsLTI0Ny4yMjI3MyBsIDAsLTIzMy4yNjk1NCAtMjU3LjUwNzksMCB6IG0gMzMyLjQyNTgsMCAwLDEwIDAsMjUyLjE1MjM1IDEyMi44MzQsMCBjIDAuMTk5NSwxLjU1NjIxIDAuMzYxMywzLjA3OTkzIDAuMzYxMyw0LjQ0MzM2IGwgMCwwLjk5MDI0IDAuMTkzNCwwLjk2ODc1IGMgMC41NjM2LDIuODIwMjYgMC45MTQxLDYuNjU2MSAwLjkxNDEsMTEuMzY3MTkgMCw0OS42OTcwNiAtMTAuMzc2Myw5My4wNzU1OSAtMzAuOTU3MSwxMzAuNzIwNyBsIC0wLjAzNSwwLjA2NDUgLTAuMDM1LDAuMDY0NSBjIC0xOS41NjQ0LDM3LjA2NDEyIC00Ny4wMjA1LDU3LjQ2NTQ4IC04NC44OTI1LDYzLjY2Nzk3IGwgLTguMzgyOSwxLjM3MzA1IDAsMTI0LjE4NzQ5IDExLjE5NTQsLTEuMzQ5NjEgYyA4Mi40MDcsLTkuOTI3NzkgMTQ1LjQ1MjMsLTQ5LjgyNjg4IDE4Ni4wODM5LC0xMTguMTE1MjIgbCAwLjAxMiwtMC4wMjE1IDAuMDE0LC0wLjAyMTUgYyA0MC4yNjU4LC02OC40MzM0NSA2MC4yMDMyLC0xNTEuMDU1ODggNjAuMjAzMiwtMjQ3LjIyMjczIGwgMCwtMjMzLjI2OTU0IC0yNTcuNTA3OCwwIHogbSAtMzEyLjQyNTgsMjAgMjE3LjUwNzksMCAwLDIxMy4yNjk1NCBjIDAsOTMuMzk2ODcgLTE5LjI3MzQsMTcyLjE5OTQ4IC01Ny40Mjc4LDIzNy4wNTY2NCAtMzUuOTQzOCw2MC4zOTg5MSAtODguNDU1Niw5NS41MjgzMSAtMTYwLjA4MDEsMTA2Ljg1MzUxIGwgMCwtODQuODY3MTggYyAzOS40MzE3LC04LjkwOTMyIDcwLjQ5OTksLTMzLjQ4NTczIDkwLjkyNTgsLTcyLjE0NDUzIDIyLjMwOTIsLTQwLjgzNTQ5IDMzLjM3NywtODcuNzc4NTcgMzMuMzc3LC0xNDAuMjQ2MDkgMCwtNS4zOTc3IC0wLjM4MDgsLTEwLjIwNzM1IC0xLjIwOSwtMTQuNjIzMDUgLTAuMTI4OCwtNS4xNTA5NyAtMC45NDM5LC0xMC40MzI3IC0yLjUwMiwtMTUuODkwNjMgbCAtMi4wNzAzLC03LjI1NTg2IC0xMTguNTIxNSwwIDAsLTIyMi4xNTIzNSB6IG0gMzMyLjQyNTgsMCAyMTcuNTA3OCwwIDAsMjEzLjI2OTU0IGMgMCw5My4zOTY4NyAtMTkuMjczMywxNzIuMTk5NDggLTU3LjQyNzcsMjM3LjA1NjY0IC0zNS45NDM4LDYwLjM5ODkxIC04OC40NTU1LDk1LjUyODMxIC0xNjAuMDgwMSwxMDYuODUzNTEgbCAwLC04NC44NjcxOCBjIDM5LjQzMTcsLTguOTA5MzIgNzAuNDk5OCwtMzMuNDg1NzMgOTAuOTI1OCwtNzIuMTQ0NTMgMjIuMzA5MiwtNDAuODM1NDkgMzMuMzc3LC04Ny43Nzg1NyAzMy4zNzcsLTE0MC4yNDYwOSAwLC01LjQwMTU0IC0wLjM4MTQsLTEwLjIxNDU1IC0xLjIxMSwtMTQuNjMyODIgLTAuMTMwMywtNS4xNTI1MyAtMC45NDc5LC0xMC40MzAzMSAtMi41MDM5LC0xNS44ODA4NiBsIC0yLjA3MDMsLTcuMjU1ODYgLTExOC41MTc2LDAgMCwtMjIyLjE1MjM1IHoiCiAgICAgICBpZD0iZmxvd1Jvb3Q1MjE1IgogICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz4KICAgIDxwYXRoCiAgICAgICBzdHlsZT0iY29sb3I6IzAwMDAwMDtmb250LXN0eWxlOm5vcm1hbDtmb250LXZhcmlhbnQ6bm9ybWFsO2ZvbnQtd2VpZ2h0Om5vcm1hbDtmb250LXN0cmV0Y2g6bm9ybWFsO2ZvbnQtc2l6ZTptZWRpdW07bGluZS1oZWlnaHQ6bm9ybWFsO2ZvbnQtZmFtaWx5OnNhbnMtc2VyaWY7dGV4dC1pbmRlbnQ6MDt0ZXh0LWFsaWduOnN0YXJ0O3RleHQtZGVjb3JhdGlvbjpub25lO3RleHQtZGVjb3JhdGlvbi1saW5lOm5vbmU7dGV4dC1kZWNvcmF0aW9uLXN0eWxlOnNvbGlkO3RleHQtZGVjb3JhdGlvbi1jb2xvcjojMDAwMDAwO2xldHRlci1zcGFjaW5nOm5vcm1hbDt3b3JkLXNwYWNpbmc6bm9ybWFsO3RleHQtdHJhbnNmb3JtOm5vbmU7ZGlyZWN0aW9uOmx0cjtibG9jay1wcm9ncmVzc2lvbjp0Yjt3cml0aW5nLW1vZGU6bHItdGI7YmFzZWxpbmUtc2hpZnQ6YmFzZWxpbmU7dGV4dC1hbmNob3I6c3RhcnQ7d2hpdGUtc3BhY2U6bm9ybWFsO2NsaXAtcnVsZTpub256ZXJvO2Rpc3BsYXk6aW5saW5lO292ZXJmbG93OnZpc2libGU7dmlzaWJpbGl0eTp2aXNpYmxlO29wYWNpdHk6MTtpc29sYXRpb246YXV0bzttaXgtYmxlbmQtbW9kZTpub3JtYWw7Y29sb3ItaW50ZXJwb2xhdGlvbjpzUkdCO2NvbG9yLWludGVycG9sYXRpb24tZmlsdGVyczpsaW5lYXJSR0I7c29saWQtY29sb3I6IzAwMDAwMDtzb2xpZC1vcGFjaXR5OjE7ZmlsbDojMDAwMDAwO2ZpbGwtb3BhY2l0eToxO2ZpbGwtcnVsZTpldmVub2RkO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxMDtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2UtZGFzaG9mZnNldDowO3N0cm9rZS1vcGFjaXR5OjE7Y29sb3ItcmVuZGVyaW5nOmF1dG87aW1hZ2UtcmVuZGVyaW5nOmF1dG87c2hhcGUtcmVuZGVyaW5nOmF1dG87dGV4dC1yZW5kZXJpbmc6YXV0bztlbmFibGUtYmFja2dyb3VuZDphY2N1bXVsYXRlIgogICAgICAgZD0ibSAtODM5LjYwMjY4LC00NjguODg2NjMgYyAtMTIuMDUzNiwwIC0yMi4wNjI1LDkuOTI4MjcgLTIyLjA2MjUsMjEuODg0NzcgbCAwLDU1Ni4yMzI0MyBjIDAsMTEuOTU2NCAxMC4wMDg5LDIxLjg4MjggMjIuMDYyNSwyMS44ODI4IGwgNzU1Ljg3NDk1NCwwIGMgMTIuMDUzNiwwIDIyLjA2MjUsLTkuOTI2NiAyMi4wNjI1LC0yMS44ODI4IGwgMCwtNTU2LjIzMjQzIGMgMCwtMTEuOTU2NSAtMTAuMDA4OCwtMjEuODg0NzcgLTIyLjA2MjUsLTIxLjg4NDc3IGwgLTc1NS44NzQ5NTQsMCB6IG0gMCwxOS4zNTU0NyA3NTUuODc0OTU0LDAgYyAxLjU4MTQsMCAyLjU1MDgsMC45NjA2IDIuNTUwOCwyLjUyOTMgbCAwLDU1Ni4yMzI0MyBjIDAsMS41Njg1IC0wLjk2OTQsMi41MjczIC0yLjU1MDgsMi41MjczIGwgLTc1NS44NzQ5NTQsMCBjIC0xLjU4MTMsMCAtMi41NTA3OCwtMC45NTg4IC0yLjU1MDc4LC0yLjUyNzMgbCAwLC01NTYuMjMyNDMgYyAwLC0xLjU2ODcgMC45Njk0OCwtMi41MjkzIDIuNTUwNzgsLTIuNTI5MyB6IG0gNjAzLjQzNzQ1LDM3LjY0NDUzIGEgNjcuNSw2Ny41IDAgMCAwIC02Ny41LDY3LjUgNjcuNSw2Ny41IDAgMCAwIDY3LjUsNjcuNSA2Ny41LDY3LjUgMCAwIDAgNjcuNSwtNjcuNSA2Ny41LDY3LjUgMCAwIDAgLTY3LjUsLTY3LjUgeiBtIC0zMjcuMzM1ODksNTguNzg1MTYgLTIzNS4zNzg5LDQyNi4zMjIyNDMgMjU5LjI1NTg2LDAgLTAuNTQ4ODMsMC45OTIyIDM2Ni4xOTEzNywwIC0xODMuMDk1NzEsLTMzMS4xMTcxODMgLTc2LjcxNDgsMTM4LjczNDM4IC0xMjkuNzA4OTksLTIzNC45MzE2NCB6IgogICAgICAgaWQ9InBhdGg1MTU2IgogICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz4KICAgIDxmbG93Um9vdAogICAgICAgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIKICAgICAgIGlkPSJmbG93Um9vdDQxNjciCiAgICAgICBzdHlsZT0iZm9udC1zdHlsZTpub3JtYWw7Zm9udC13ZWlnaHQ6bm9ybWFsO2ZvbnQtc2l6ZTo0MHB4O2xpbmUtaGVpZ2h0OjEyNSU7Zm9udC1mYW1pbHk6U2FucztsZXR0ZXItc3BhY2luZzowcHg7d29yZC1zcGFjaW5nOjBweDtmaWxsOiMwMDAwMDA7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjFweDtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2Utb3BhY2l0eToxIgogICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCw4Ni4zMDMzOTUpIj48Zmxvd1JlZ2lvbgogICAgICAgICBpZD0iZmxvd1JlZ2lvbjQxNjkiPjxyZWN0CiAgICAgICAgICAgaWQ9InJlY3Q0MTcxIgogICAgICAgICAgIHdpZHRoPSIyMDAwIgogICAgICAgICAgIGhlaWdodD0iNjUwIgogICAgICAgICAgIHg9Ii00NTAiCiAgICAgICAgICAgeT0iLTEzMDAiIC8+PC9mbG93UmVnaW9uPjxmbG93UGFyYQogICAgICAgICBzdHlsZT0iZm9udC1zaXplOjEyNXB4IgogICAgICAgICBpZD0iZmxvd1BhcmE0MTc1Ij5Cb3JkZXJzOiAzMHB4PC9mbG93UGFyYT48Zmxvd1BhcmEKICAgICAgICAgc3R5bGU9ImZvbnQtc2l6ZToxMjVweCIKICAgICAgICAgaWQ9ImZsb3dQYXJhNDE3OSI+Q2FudmFzOiAxMDAweDEwMDBweDwvZmxvd1BhcmE+PC9mbG93Um9vdD4gICAgPGcKICAgICAgIGlkPSJQYWdlLTEiCiAgICAgICB0cmFuc2Zvcm09Im1hdHJpeCgxMy42NDczMzgsMCwwLDEzLjY0NzMzOCwxMjQwLjU3OTksLTQ0Ny42Mzc3MykiCiAgICAgICBzdHlsZT0iZmlsbDpub25lO2ZpbGwtcnVsZTpldmVub2RkO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxIj4KICAgICAgPGcKICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTEsLTEpIgogICAgICAgICBpZD0iR3JvdXAiCiAgICAgICAgIHN0eWxlPSJmaWxsOiM0ZmYzYWQiPgogICAgICAgIDxnCiAgICAgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMSwxKSIKICAgICAgICAgICBpZD0iYmxvZ2ZlZWRfc3RhbmRhcmRfbW9kdWxlIj4KICAgICAgICAgIDxnCiAgICAgICAgICAgICBpZD0iZzQzNTciPgogICAgICAgICAgICA8cGF0aAogICAgICAgICAgICAgICBpZD0iU2hhcGUiCiAgICAgICAgICAgICAgIGQ9Ik0gMzAsMiAzMCwxMiAyLDEyIDIsMiAzMCwyIDMwLDIgWiBNIDMwLDAgMiwwIEMgMC44LDAgMCwwLjggMCwyIGwgMCwxMCBjIDAsMS4yIDAuOCwyIDIsMiBsIDI4LDAgYyAxLjIsMCAyLC0wLjggMiwtMiBMIDMyLDIgQyAzMiwwLjggMzEuMiwwIDMwLDAgbCAwLDAgMCwwIHoiCiAgICAgICAgICAgICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiIC8+CiAgICAgICAgICAgIDxwYXRoCiAgICAgICAgICAgICAgIGlkPSJwYXRoNDM2MCIKICAgICAgICAgICAgICAgZD0iTSAxMSwxMCA1LDEwIEMgNC40LDEwIDQsOS42IDQsOSBMIDQsNSBDIDQsNC40IDQuNCw0IDUsNCBsIDYsMCBjIDAuNiwwIDEsMC40IDEsMSBsIDAsNCBjIDAsMC42IC0wLjQsMSAtMSwxIGwgMCwwIHoiCiAgICAgICAgICAgICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiIC8+CiAgICAgICAgICAgIDxwYXRoCiAgICAgICAgICAgICAgIGlkPSJwYXRoNDM2MiIKICAgICAgICAgICAgICAgZD0iTSAyNyw2IDE1LDYgQyAxNC40LDYgMTQsNS42IDE0LDUgbCAwLDAgYyAwLC0wLjYgMC40LC0xIDEsLTEgbCAxMiwwIGMgMC42LDAgMSwwLjQgMSwxIGwgMCwwIGMgMCwwLjYgLTAuNCwxIC0xLDEgbCAwLDAgeiIKICAgICAgICAgICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz4KICAgICAgICAgICAgPHBhdGgKICAgICAgICAgICAgICAgaWQ9InBhdGg0MzY0IgogICAgICAgICAgICAgICBkPSJNIDI3LDEwIDE1LDEwIEMgMTQuNCwxMCAxNCw5LjYgMTQsOSBsIDAsMCBjIDAsLTAuNiAwLjQsLTEgMSwtMSBsIDEyLDAgYyAwLjYsMCAxLDAuNCAxLDEgbCAwLDAgYyAwLDAuNiAtMC40LDEgLTEsMSBsIDAsMCB6IgogICAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPgogICAgICAgICAgICA8cGF0aAogICAgICAgICAgICAgICBpZD0icGF0aDQzNjYiCiAgICAgICAgICAgICAgIGQ9Im0gMzAsMjAgMCwxMCAtMjgsMCAwLC0xMCAyOCwwIDAsMCB6IG0gMCwtMiAtMjgsMCBjIC0xLjIsMCAtMiwwLjggLTIsMiBsIDAsMTAgYyAwLDEuMiAwLjgsMiAyLDIgbCAyOCwwIGMgMS4yLDAgMiwtMC44IDIsLTIgbCAwLC0xMCBjIDAsLTEuMiAtMC44LC0yIC0yLC0yIGwgMCwwIDAsMCB6IgogICAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPgogICAgICAgICAgICA8cGF0aAogICAgICAgICAgICAgICBpZD0icGF0aDQzNjgiCiAgICAgICAgICAgICAgIGQ9Ik0gMTEsMjggNSwyOCBDIDQuNCwyOCA0LDI3LjYgNCwyNyBsIDAsLTQgYyAwLC0wLjYgMC40LC0xIDEsLTEgbCA2LDAgYyAwLjYsMCAxLDAuNCAxLDEgbCAwLDQgYyAwLDAuNiAtMC40LDEgLTEsMSBsIDAsMCB6IgogICAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPgogICAgICAgICAgICA8cGF0aAogICAgICAgICAgICAgICBpZD0icGF0aDQzNzAiCiAgICAgICAgICAgICAgIGQ9Im0gMjcsMjQgLTEyLDAgYyAtMC42LDAgLTEsLTAuNCAtMSwtMSBsIDAsMCBjIDAsLTAuNiAwLjQsLTEgMSwtMSBsIDEyLDAgYyAwLjYsMCAxLDAuNCAxLDEgbCAwLDAgYyAwLDAuNiAtMC40LDEgLTEsMSBsIDAsMCB6IgogICAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPgogICAgICAgICAgICA8cGF0aAogICAgICAgICAgICAgICBpZD0icGF0aDQzNzIiCiAgICAgICAgICAgICAgIGQ9Im0gMjcsMjggLTEyLDAgYyAtMC42LDAgLTEsLTAuNCAtMSwtMSBsIDAsMCBjIDAsLTAuNiAwLjQsLTEgMSwtMSBsIDEyLDAgYyAwLjYsMCAxLDAuNCAxLDEgbCAwLDAgYyAwLDAuNiAtMC40LDEgLTEsMSBsIDAsMCB6IgogICAgICAgICAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPgogICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgICAgPC9nPgogICAgPC9nPgogICAgPHBhdGgKICAgICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiCiAgICAgICBpZD0icGF0aDU1NDgiCiAgICAgICBkPSJtIC04OTMuNDI1NzgsMzQwMy4wMDY4IGMgLTIwLjI4OTQ4LDAgLTM3LjA2MjUsMTYuNTU3OSAtMzcuMDYyNSwzNi44ODQ4IGwgMCw1NTYuMjMyNCBjIDAsMjAuMzI2OSAxNi43NzI3NywzNi44ODI4IDM3LjA2MjUsMzYuODgyOCBsIDc1NS44NzUsMCBjIDIwLjI4OTc2LDAgMzcuMDYyNSwtMTYuNTU1OSAzNy4wNjI1LC0zNi44ODI4IGwgMCwtNTU2LjIzMjQgYyAwLC0yMC4zMjcgLTE2Ljc3Mjg1LC0zNi44ODQ4IC0zNy4wNjI1LC0zNi44ODQ4IGwgLTc1NS44NzUsMCB6IG0gMTIuNDQ5MjIsNDkuMzU1NSA3MzAuOTc2NTYsMCAwLDUzMS4yOTEgLTczMC45NzY1NiwwIDAsLTUzMS4yOTEgeiIKICAgICAgIHN0eWxlPSJjb2xvcjojMDAwMDAwO2ZvbnQtc3R5bGU6bm9ybWFsO2ZvbnQtdmFyaWFudDpub3JtYWw7Zm9udC13ZWlnaHQ6bm9ybWFsO2ZvbnQtc3RyZXRjaDpub3JtYWw7Zm9udC1zaXplOm1lZGl1bTtsaW5lLWhlaWdodDpub3JtYWw7Zm9udC1mYW1pbHk6c2Fucy1zZXJpZjt0ZXh0LWluZGVudDowO3RleHQtYWxpZ246c3RhcnQ7dGV4dC1kZWNvcmF0aW9uOm5vbmU7dGV4dC1kZWNvcmF0aW9uLWxpbmU6bm9uZTt0ZXh0LWRlY29yYXRpb24tc3R5bGU6c29saWQ7dGV4dC1kZWNvcmF0aW9uLWNvbG9yOiMwMDAwMDA7bGV0dGVyLXNwYWNpbmc6bm9ybWFsO3dvcmQtc3BhY2luZzpub3JtYWw7dGV4dC10cmFuc2Zvcm06bm9uZTtkaXJlY3Rpb246bHRyO2Jsb2NrLXByb2dyZXNzaW9uOnRiO3dyaXRpbmctbW9kZTpsci10YjtiYXNlbGluZS1zaGlmdDpiYXNlbGluZTt0ZXh0LWFuY2hvcjpzdGFydDt3aGl0ZS1zcGFjZTpub3JtYWw7Y2xpcC1ydWxlOm5vbnplcm87ZGlzcGxheTppbmxpbmU7b3ZlcmZsb3c6dmlzaWJsZTt2aXNpYmlsaXR5OnZpc2libGU7b3BhY2l0eToxO2lzb2xhdGlvbjphdXRvO21peC1ibGVuZC1tb2RlOm5vcm1hbDtjb2xvci1pbnRlcnBvbGF0aW9uOnNSR0I7Y29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzOmxpbmVhclJHQjtzb2xpZC1jb2xvcjojMDAwMDAwO3NvbGlkLW9wYWNpdHk6MTtmaWxsOiMwMDAwMDA7ZmlsbC1vcGFjaXR5OjE7ZmlsbC1ydWxlOmV2ZW5vZGQ7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjMwO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1kYXNob2Zmc2V0OjA7c3Ryb2tlLW9wYWNpdHk6MTtjb2xvci1yZW5kZXJpbmc6YXV0bztpbWFnZS1yZW5kZXJpbmc6YXV0bztzaGFwZS1yZW5kZXJpbmc6YXV0bzt0ZXh0LXJlbmRlcmluZzphdXRvO2VuYWJsZS1iYWNrZ3JvdW5kOmFjY3VtdWxhdGUiIC8+CiAgICA8cGF0aAogICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIKICAgICAgIGQ9Im0gMTA1MCwxOTUyLjM2MjMgYyAtMTQuMjI5NiwwIC0yNi4zMTA2LDEyLjA4MDkgLTI2LjMxMDYsMjYuMzEwNiBsIDAsNTg3LjM4MDggYyAwLDE0LjIyOTcgMTIuMDgxLDI2LjMwODYgMjYuMzEwNiwyNi4zMDg2IGwgMTg3LjM3ODksMCBjIDE0LjIyOTUsMCAyNi4zMTA1LC0xMi4wNzg5IDI2LjMxMDUsLTI2LjMwODYgbCAwLC01ODcuMzgwOCBjIDAsLTE0LjIyOTcgLTEyLjA4MSwtMjYuMzEwNiAtMjYuMzEwNSwtMjYuMzEwNiBsIC0xODcuMzc4OSwwIHogbSAyOTIsMCBjIC0xNC4yMjk2LDAgLTI2LjMxMDYsMTIuMDgwOSAtMjYuMzEwNiwyNi4zMTA2IGwgMCw1ODcuMzgwOCBjIDAsMTQuMjI5NyAxMi4wODEsMjYuMzA4NiAyNi4zMTA2LDI2LjMwODYgbCAxODcuMzc4OSwwIGMgMTQuMjI5NSwwIDI2LjMxMDUsLTEyLjA3ODkgMjYuMzEwNSwtMjYuMzA4NiBsIDAsLTU4Ny4zODA4IGMgMCwtMTQuMjI5NyAtMTIuMDgxLC0yNi4zMTA2IC0yNi4zMTA1LC0yNi4zMTA2IGwgLTE4Ny4zNzg5LDAgeiBtIDI5MiwwIGMgLTE0LjIyOTYsMCAtMjYuMzEwNiwxMi4wODA5IC0yNi4zMTA2LDI2LjMxMDYgbCAwLDU4Ny4zODA4IGMgMCwxNC4yMjk3IDEyLjA4MSwyNi4zMDg2IDI2LjMxMDYsMjYuMzA4NiBsIDE4Ny4zNzg5LDAgYyAxNC4yMjk1LDAgMjYuMzEwNSwtMTIuMDc4OSAyNi4zMTA1LC0yNi4zMDg2IGwgMCwtNTg3LjM4MDggYyAwLC0xNC4yMjk3IC0xMi4wODEsLTI2LjMxMDYgLTI2LjMxMDUsLTI2LjMxMDYgbCAtMTg3LjM3ODksMCB6IG0gLTU3MC4zMTA2LDQwIDE2MCwwIDAsNTYwIC0xNjAsMCAwLC01NjAgeiBtIDI5MiwwIDE2MCwwIDAsNTYwIC0xNjAsMCAwLC01NjAgeiBtIDI5MiwwIDE2MCwwIDAsNTYwIC0xNjAsMCAwLC01NjAgeiIKICAgICAgIHN0eWxlPSJjb2xvcjojMDAwMDAwO2ZvbnQtc3R5bGU6bm9ybWFsO2ZvbnQtdmFyaWFudDpub3JtYWw7Zm9udC13ZWlnaHQ6bm9ybWFsO2ZvbnQtc3RyZXRjaDpub3JtYWw7Zm9udC1zaXplOm1lZGl1bTtsaW5lLWhlaWdodDpub3JtYWw7Zm9udC1mYW1pbHk6c2Fucy1zZXJpZjt0ZXh0LWluZGVudDowO3RleHQtYWxpZ246c3RhcnQ7dGV4dC1kZWNvcmF0aW9uOm5vbmU7dGV4dC1kZWNvcmF0aW9uLWxpbmU6bm9uZTt0ZXh0LWRlY29yYXRpb24tc3R5bGU6c29saWQ7dGV4dC1kZWNvcmF0aW9uLWNvbG9yOiMwMDAwMDA7bGV0dGVyLXNwYWNpbmc6bm9ybWFsO3dvcmQtc3BhY2luZzpub3JtYWw7dGV4dC10cmFuc2Zvcm06bm9uZTtkaXJlY3Rpb246bHRyO2Jsb2NrLXByb2dyZXNzaW9uOnRiO3dyaXRpbmctbW9kZTpsci10YjtiYXNlbGluZS1zaGlmdDpiYXNlbGluZTt0ZXh0LWFuY2hvcjpzdGFydDt3aGl0ZS1zcGFjZTpub3JtYWw7Y2xpcC1ydWxlOm5vbnplcm87ZGlzcGxheTppbmxpbmU7b3ZlcmZsb3c6dmlzaWJsZTt2aXNpYmlsaXR5OnZpc2libGU7b3BhY2l0eToxO2lzb2xhdGlvbjphdXRvO21peC1ibGVuZC1tb2RlOm5vcm1hbDtjb2xvci1pbnRlcnBvbGF0aW9uOnNSR0I7Y29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzOmxpbmVhclJHQjtzb2xpZC1jb2xvcjojMDAwMDAwO3NvbGlkLW9wYWNpdHk6MTtmaWxsOiMwMDAwMDA7ZmlsbC1vcGFjaXR5OjE7ZmlsbC1ydWxlOmV2ZW5vZGQ7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjQwO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1kYXNob2Zmc2V0OjA7c3Ryb2tlLW9wYWNpdHk6MTtjb2xvci1yZW5kZXJpbmc6YXV0bztpbWFnZS1yZW5kZXJpbmc6YXV0bztzaGFwZS1yZW5kZXJpbmc6YXV0bzt0ZXh0LXJlbmRlcmluZzphdXRvO2VuYWJsZS1iYWNrZ3JvdW5kOmFjY3VtdWxhdGUiCiAgICAgICBpZD0icmVjdDU3MDUiIC8+CiAgICA8cGF0aAogICAgICAgc3R5bGU9ImNvbG9yOiMwMDAwMDA7Zm9udC1zdHlsZTpub3JtYWw7Zm9udC12YXJpYW50Om5vcm1hbDtmb250LXdlaWdodDpub3JtYWw7Zm9udC1zdHJldGNoOm5vcm1hbDtmb250LXNpemU6bWVkaXVtO2xpbmUtaGVpZ2h0Om5vcm1hbDtmb250LWZhbWlseTpzYW5zLXNlcmlmO3RleHQtaW5kZW50OjA7dGV4dC1hbGlnbjpzdGFydDt0ZXh0LWRlY29yYXRpb246bm9uZTt0ZXh0LWRlY29yYXRpb24tbGluZTpub25lO3RleHQtZGVjb3JhdGlvbi1zdHlsZTpzb2xpZDt0ZXh0LWRlY29yYXRpb24tY29sb3I6IzAwMDAwMDtsZXR0ZXItc3BhY2luZzpub3JtYWw7d29yZC1zcGFjaW5nOm5vcm1hbDt0ZXh0LXRyYW5zZm9ybTpub25lO2RpcmVjdGlvbjpsdHI7YmxvY2stcHJvZ3Jlc3Npb246dGI7d3JpdGluZy1tb2RlOmxyLXRiO2Jhc2VsaW5lLXNoaWZ0OmJhc2VsaW5lO3RleHQtYW5jaG9yOnN0YXJ0O3doaXRlLXNwYWNlOm5vcm1hbDtjbGlwLXJ1bGU6bm9uemVybztkaXNwbGF5OmlubGluZTtvdmVyZmxvdzp2aXNpYmxlO3Zpc2liaWxpdHk6dmlzaWJsZTtvcGFjaXR5OjE7aXNvbGF0aW9uOmF1dG87bWl4LWJsZW5kLW1vZGU6bm9ybWFsO2NvbG9yLWludGVycG9sYXRpb246c1JHQjtjb2xvci1pbnRlcnBvbGF0aW9uLWZpbHRlcnM6bGluZWFyUkdCO3NvbGlkLWNvbG9yOiMwMDAwMDA7c29saWQtb3BhY2l0eToxO2ZpbGw6IzAwMDAwMDtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MzkuOTk5OTk2MTk7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLWRhc2hvZmZzZXQ6MDtzdHJva2Utb3BhY2l0eToxO2NvbG9yLXJlbmRlcmluZzphdXRvO2ltYWdlLXJlbmRlcmluZzphdXRvO3NoYXBlLXJlbmRlcmluZzphdXRvO3RleHQtcmVuZGVyaW5nOmF1dG87ZW5hYmxlLWJhY2tncm91bmQ6YWNjdW11bGF0ZSIKICAgICAgIGQ9Im0gLTk3OS41NTMxOCwxOTUyLjM2MjMgYyAtMTQuMjI5NjQsMCAtMjYuMzEwNTIsMTIuMDgwOSAtMjYuMzEwNTIsMjYuMzEwNSBsIDAsNTg3LjM4MDkgYyAwLDE0LjIyOTYgMTIuMDgwOTEsMjYuMzA4NiAyNi4zMTA1MiwyNi4zMDg2IGwgMzI1LjUwNTg2LDAgYyAxNC4yMjk2MywwIDI2LjMxMDU1LC0xMi4wNzkgMjYuMzEwNTUsLTI2LjMwODYgbCAwLC01ODcuMzgwOSBjIDAsLTE0LjIyOTYgLTEyLjA4MDg4LC0yNi4zMTA1IC0yNi4zMTA1NSwtMjYuMzEwNSBsIC0zMjUuNTA1ODYsMCB6IG0gNDUxLjEwMzUyLDAgYyAtMTQuMjI5NjUsMCAtMjYuMzEwNTUsMTIuMDgwOSAtMjYuMzEwNTUsMjYuMzEwNSBsIDAsNTg3LjM4MDkgYyAwLDE0LjIyOTYgMTIuMDgwOTQsMjYuMzA4NiAyNi4zMTA1NSwyNi4zMDg2IGwgMzI1LjUwNTg2LDAgYyAxNC4yMjk2MSwwIDI2LjMxMDU0LC0xMi4wNzkgMjYuMzEwNTQsLTI2LjMwODYgbCAwLC01ODcuMzgwOSBjIDAsLTE0LjIyOTYgLTEyLjA4MDksLTI2LjMxMDUgLTI2LjMxMDU0LC0yNi4zMTA1IGwgLTMyNS41MDU4NiwwIHogbSAtNDM3LjQxNDA2LDQwIDI5OC4xMjY5NSwwIDAsNTYwIC0yOTguMTI2OTUsMCAwLC01NjAgeiBtIDQ1MS4xMDM1MSwwIDI5OC4xMjY5NSwwIDAsNTYwIC0yOTguMTI2OTUsMCAwLC01NjAgeiIKICAgICAgIGlkPSJyZWN0NjMyMCIKICAgICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiIC8+CiAgICA8cGF0aAogICAgICAgaWQ9InJlY3Q2NDMzIgogICAgICAgc3R5bGU9ImNvbG9yOiMwMDAwMDA7Zm9udC1zdHlsZTpub3JtYWw7Zm9udC12YXJpYW50Om5vcm1hbDtmb250LXdlaWdodDpub3JtYWw7Zm9udC1zdHJldGNoOm5vcm1hbDtmb250LXNpemU6bWVkaXVtO2xpbmUtaGVpZ2h0Om5vcm1hbDtmb250LWZhbWlseTpzYW5zLXNlcmlmO3RleHQtaW5kZW50OjA7dGV4dC1hbGlnbjpzdGFydDt0ZXh0LWRlY29yYXRpb246bm9uZTt0ZXh0LWRlY29yYXRpb24tbGluZTpub25lO3RleHQtZGVjb3JhdGlvbi1zdHlsZTpzb2xpZDt0ZXh0LWRlY29yYXRpb24tY29sb3I6IzAwMDAwMDtsZXR0ZXItc3BhY2luZzpub3JtYWw7d29yZC1zcGFjaW5nOm5vcm1hbDt0ZXh0LXRyYW5zZm9ybTpub25lO2RpcmVjdGlvbjpsdHI7YmxvY2stcHJvZ3Jlc3Npb246dGI7d3JpdGluZy1tb2RlOmxyLXRiO2Jhc2VsaW5lLXNoaWZ0OmJhc2VsaW5lO3RleHQtYW5jaG9yOnN0YXJ0O3doaXRlLXNwYWNlOm5vcm1hbDtjbGlwLXJ1bGU6bm9uemVybztkaXNwbGF5OmlubGluZTtvdmVyZmxvdzp2aXNpYmxlO3Zpc2liaWxpdHk6dmlzaWJsZTtvcGFjaXR5OjE7aXNvbGF0aW9uOmF1dG87bWl4LWJsZW5kLW1vZGU6bm9ybWFsO2NvbG9yLWludGVycG9sYXRpb246c1JHQjtjb2xvci1pbnRlcnBvbGF0aW9uLWZpbHRlcnM6bGluZWFyUkdCO3NvbGlkLWNvbG9yOiMwMDAwMDA7c29saWQtb3BhY2l0eToxO2ZpbGw6IzAwMDAwMDtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6NDA7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLWRhc2hvZmZzZXQ6MDtzdHJva2Utb3BhY2l0eToxO2NvbG9yLXJlbmRlcmluZzphdXRvO2ltYWdlLXJlbmRlcmluZzphdXRvO3NoYXBlLXJlbmRlcmluZzphdXRvO3RleHQtcmVuZGVyaW5nOmF1dG87ZW5hYmxlLWJhY2tncm91bmQ6YWNjdW11bGF0ZSIKICAgICAgIGQ9Im0gMTcuNTE5NTMsMjY5MS4wMTc4IGMgLTE0LjIyOTY0LDAgLTI2LjMxMDU1MSwxMi4wODA5IC0yNi4zMTA1NTEsMjYuMzEwNSBsIDAsNTc3LjQzNTYgYyAwLDE0LjIyOTYgMTIuMDgwOTExLDI2LjMwODUgMjYuMzEwNTUxLDI2LjMwODUgbCAyNDYuMTY5OTIsMCBjIDE0LjIyOTY0LDAgMjYuMzEwNTMsLTEyLjA3ODkgMjYuMzEwNTUsLTI2LjMwODUgbCAwLC01NzcuNDM1NiBjIDAsLTE0LjIyOTYgLTEyLjA4MDkxLC0yNi4zMTA1IC0yNi4zMTA1NSwtMjYuMzEwNSBsIC0yNDYuMTY5OTIsMCB6IG0gMzc4LjQ4ODI4LDAgYyAtMTQuMjI5NjQsMCAtMjYuMzEwNTUsMTIuMDgwOSAtMjYuMzEwNTUsMjYuMzEwNSBsIDAsNTc3LjQzNTYgYyAwLDE0LjIyOTYgMTIuMDgwOTEsMjYuMzA4NSAyNi4zMTA1NSwyNi4zMDg1IGwgMzg3LjM3ODksMCBjIDE0LjIyOTY0LDAgMjYuMzEwNTUsLTEyLjA3ODkgMjYuMzEwNTUsLTI2LjMwODUgbCAwLC01NzcuNDM1NiBjIDAsLTE0LjIyOTYgLTEyLjA4MDkxLC0yNi4zMTA1IC0yNi4zMTA1NSwtMjYuMzEwNSBsIC0zODcuMzc4OSwwIHogbSAtMzY0Ljc5ODgzLDQwIDIxOC43OTEwMiwwIDAsNTUwLjA1NDYgLTIxOC43OTEwMiwwIDAsLTU1MC4wNTQ2IHogbSAzNzguNDg4MjgsMCAzNjAsMCAwLDU1MC4wNTQ2IC0zNjAsMCAwLC01NTAuMDU0NiB6IgogICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz4KICAgIDxwYXRoCiAgICAgICBpZD0icGF0aDY0NTMiCiAgICAgICBzdHlsZT0iY29sb3I6IzAwMDAwMDtmb250LXN0eWxlOm5vcm1hbDtmb250LXZhcmlhbnQ6bm9ybWFsO2ZvbnQtd2VpZ2h0Om5vcm1hbDtmb250LXN0cmV0Y2g6bm9ybWFsO2ZvbnQtc2l6ZTptZWRpdW07bGluZS1oZWlnaHQ6bm9ybWFsO2ZvbnQtZmFtaWx5OnNhbnMtc2VyaWY7dGV4dC1pbmRlbnQ6MDt0ZXh0LWFsaWduOnN0YXJ0O3RleHQtZGVjb3JhdGlvbjpub25lO3RleHQtZGVjb3JhdGlvbi1saW5lOm5vbmU7dGV4dC1kZWNvcmF0aW9uLXN0eWxlOnNvbGlkO3RleHQtZGVjb3JhdGlvbi1jb2xvcjojMDAwMDAwO2xldHRlci1zcGFjaW5nOm5vcm1hbDt3b3JkLXNwYWNpbmc6bm9ybWFsO3RleHQtdHJhbnNmb3JtOm5vbmU7ZGlyZWN0aW9uOmx0cjtibG9jay1wcm9ncmVzc2lvbjp0Yjt3cml0aW5nLW1vZGU6bHItdGI7YmFzZWxpbmUtc2hpZnQ6YmFzZWxpbmU7dGV4dC1hbmNob3I6c3RhcnQ7d2hpdGUtc3BhY2U6bm9ybWFsO2NsaXAtcnVsZTpub256ZXJvO2Rpc3BsYXk6aW5saW5lO292ZXJmbG93OnZpc2libGU7dmlzaWJpbGl0eTp2aXNpYmxlO29wYWNpdHk6MTtpc29sYXRpb246YXV0bzttaXgtYmxlbmQtbW9kZTpub3JtYWw7Y29sb3ItaW50ZXJwb2xhdGlvbjpzUkdCO2NvbG9yLWludGVycG9sYXRpb24tZmlsdGVyczpsaW5lYXJSR0I7c29saWQtY29sb3I6IzAwMDAwMDtzb2xpZC1vcGFjaXR5OjE7ZmlsbDojMDAwMDAwO2ZpbGwtb3BhY2l0eToxO2ZpbGwtcnVsZTpldmVub2RkO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxMDtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2UtZGFzaG9mZnNldDowO3N0cm9rZS1vcGFjaXR5OjE7Y29sb3ItcmVuZGVyaW5nOmF1dG87aW1hZ2UtcmVuZGVyaW5nOmF1dG87c2hhcGUtcmVuZGVyaW5nOmF1dG87dGV4dC1yZW5kZXJpbmc6YXV0bztlbmFibGUtYmFja2dyb3VuZDphY2N1bXVsYXRlIgogICAgICAgZD0ibSAtNjk1LjUzODc2LDMxMzUuMTE0NCBjIC0zLjQ4MTYsMCAtNi4yODUxLDIuODAzMiAtNi4yODUxLDYuMjg1MiBsIDAsMzcuNDI5NyBjIDAsMy40ODIgMi44MDM1LDYuMjg1MSA2LjI4NTEsNi4yODUxIGwgMTg3LjQyOTcsMCBjIDMuNDgxNiwwIDYuMjg1MiwtMi44MDMxIDYuMjg1MiwtNi4yODUxIGwgMCwtMzcuNDI5NyBjIDAsLTMuNDgyIC0yLjgwMzYsLTYuMjg1MiAtNi4yODUyLC02LjI4NTIgeiBtIC0xNTkuMDc3OTYsLTIwMCBjIC0zLjQ4MTYsMCAtNi4yODUxLDIuODAzMiAtNi4yODUxLDYuMjg1MiBsIDAsMTM1LjQyOTcgYyAwLDMuNDgyIDIuODAzNSw2LjI4NTEgNi4yODUxLDYuMjg1MSBsIDQ5MS40Mjk3LDAgYyAzLjQ4MTYsMCA2LjI4NTIsLTIuODAzMSA2LjI4NTIsLTYuMjg1MSBsIDAsLTEzNS40Mjk3IGMgMCwtMy40ODIgLTIuODAzNiwtNi4yODUyIC02LjI4NTIsLTYuMjg1MiB6IG0gMjAwLC0xNTAgYyAtMy40ODE2LDAgLTYuMjg1MSwyLjgwMzIgLTYuMjg1MSw2LjI4NTIgbCAwLDM3LjQyOTcgYyAwLDMuNDgyIDIuODAzNSw2LjI4NTEgNi4yODUxLDYuMjg1MSBsIDMzNy40Mjk3LDAgYyAzLjQ4MTYsMCA2LjI4NTIsLTIuODAzMSA2LjI4NTIsLTYuMjg1MSBsIDAsLTM3LjQyOTcgYyAwLC0zLjQ4MiAtMi44MDM2LC02LjI4NTIgLTYuMjg1MiwtNi4yODUyIHogbSAtMjQ3Ljk5OTksMCBjIC0zLjQ4MTYsMCAtNi4yODUyLDIuODAzMiAtNi4yODUyLDYuMjg1MiBsIDAsMzcuNDI5NyBjIDAsMy40ODIgMi44MDM2LDYuMjg1MSA2LjI4NTIsNi4yODUxIGwgODcuNDI5NiwwIGMgMy40ODE2LDAgNi4yODUyLC0yLjgwMzEgNi4yODUyLC02LjI4NTEgbCAwLC0zNy40Mjk3IGMgMCwtMy40ODIgLTIuODAzNiwtNi4yODUyIC02LjI4NTIsLTYuMjg1MiB6IG0gLTgwLjE3NDAxLC0xMTMuMzk4NiBjIC0yMC4yODk1NywwIC0zNy4wNjI1NywxNi41NTc5IC0zNy4wNjI1NywzNi44ODQ4IGwgMCw1NTYuMjMyNCBjIDAsMjAuMzI2OSAxNi43NzI4LDM2Ljg4MjggMzcuMDYyNTcsMzYuODgyOCBsIDc1NS44NzUsMCBjIDIwLjI4OTc2LDAgMzcuMDYyNSwtMTYuNTU1OSAzNy4wNjI1LC0zNi44ODI4IGwgMCwtNTU2LjIzMjQgYyAwLC0yMC4zMjcgLTE2Ljc3Mjg1LC0zNi44ODQ4IC0zNy4wNjI1LC0zNi44ODQ4IGwgLTc1NS44NzUsMCB6IG0gMTIuNDQ5MjIsNDkuMzU1NSA3MzAuOTc2NTYsMCAwLDUzMS4yOTEgLTczMC45NzY1NiwwIDAsLTUzMS4yOTEgeiIKICAgICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiIC8+CiAgICA8cGF0aAogICAgICAgaWQ9InBhdGg2NDg0IgogICAgICAgc3R5bGU9ImNvbG9yOiMwMDAwMDA7Zm9udC1zdHlsZTpub3JtYWw7Zm9udC12YXJpYW50Om5vcm1hbDtmb250LXdlaWdodDpub3JtYWw7Zm9udC1zdHJldGNoOm5vcm1hbDtmb250LXNpemU6bWVkaXVtO2xpbmUtaGVpZ2h0Om5vcm1hbDtmb250LWZhbWlseTpzYW5zLXNlcmlmO3RleHQtaW5kZW50OjA7dGV4dC1hbGlnbjpzdGFydDt0ZXh0LWRlY29yYXRpb246bm9uZTt0ZXh0LWRlY29yYXRpb24tbGluZTpub25lO3RleHQtZGVjb3JhdGlvbi1zdHlsZTpzb2xpZDt0ZXh0LWRlY29yYXRpb24tY29sb3I6IzAwMDAwMDtsZXR0ZXItc3BhY2luZzpub3JtYWw7d29yZC1zcGFjaW5nOm5vcm1hbDt0ZXh0LXRyYW5zZm9ybTpub25lO2RpcmVjdGlvbjpsdHI7YmxvY2stcHJvZ3Jlc3Npb246dGI7d3JpdGluZy1tb2RlOmxyLXRiO2Jhc2VsaW5lLXNoaWZ0OmJhc2VsaW5lO3RleHQtYW5jaG9yOnN0YXJ0O3doaXRlLXNwYWNlOm5vcm1hbDtjbGlwLXJ1bGU6bm9uemVybztkaXNwbGF5OmlubGluZTtvdmVyZmxvdzp2aXNpYmxlO3Zpc2liaWxpdHk6dmlzaWJsZTtvcGFjaXR5OjE7aXNvbGF0aW9uOmF1dG87bWl4LWJsZW5kLW1vZGU6bm9ybWFsO2NvbG9yLWludGVycG9sYXRpb246c1JHQjtjb2xvci1pbnRlcnBvbGF0aW9uLWZpbHRlcnM6bGluZWFyUkdCO3NvbGlkLWNvbG9yOiMwMDAwMDA7c29saWQtb3BhY2l0eToxO2ZpbGw6IzAwMDAwMDtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MTA7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLWRhc2hvZmZzZXQ6MDtzdHJva2Utb3BhY2l0eToxO2NvbG9yLXJlbmRlcmluZzphdXRvO2ltYWdlLXJlbmRlcmluZzphdXRvO3NoYXBlLXJlbmRlcmluZzphdXRvO3RleHQtcmVuZGVyaW5nOmF1dG87ZW5hYmxlLWJhY2tncm91bmQ6YWNjdW11bGF0ZSIKICAgICAgIGQ9Im0gMTI5NS45OTIyLDI4MjEuODA5NSAtMjM1LjM3ODksNDI2LjMyMjMgMjU5LjI1NTksMCAtMC41NDg5LDAuOTkyMiAzNjYuMTkxNCwwIC0xODMuMDk1NywtMzMxLjExNzIgLTc2LjcxNDgsMTM4LjczNDQgLTEyOS43MDksLTIzNC45MzE3IHogbSAzMTguNTY4NCwtMjcuMzc2MiBhIDY3LjUsNjcuNSAwIDAgMCAtNjcuNSw2Ny41IDY3LjUsNjcuNSAwIDAgMCA2Ny41LDY3LjUgNjcuNSw2Ny41IDAgMCAwIDY3LjUsLTY3LjUgNjcuNSw2Ny41IDAgMCAwIC02Ny41LC02Ny41IHogbSAtNjA3Ljk4NjQsLTkxLjQyNjUgYyAtMjAuMjg5NDYsMCAtMzcuMDYyNDgsMTYuNTU3OSAtMzcuMDYyNDgsMzYuODg0OCBsIDAsNTU2LjIzMjQgYyAwLDIwLjMyNjkgMTYuNzcyNzcsMzYuODgyOCAzNy4wNjI0OCwzNi44ODI4IGwgNzU1Ljg3NSwwIGMgMjAuMjg5OCwwIDM3LjA2MjUsLTE2LjU1NTkgMzcuMDYyNSwtMzYuODgyOCBsIDAsLTU1Ni4yMzI0IGMgMCwtMjAuMzI3IC0xNi43NzI4LC0zNi44ODQ4IC0zNy4wNjI1LC0zNi44ODQ4IGwgLTc1NS44NzUsMCB6IG0gMTIuNDQ5Miw0OS4zNTU1IDczMC45NzY2LDAgMCw1MzEuMjkxIC03MzAuOTc2NiwwIDAsLTUzMS4yOTEgeiIKICAgICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiIC8+CiAgICA8cGF0aAogICAgICAgaWQ9InBhdGg2NjM0IgogICAgICAgc3R5bGU9ImZpbGw6IzAwMDAwMDtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MXB4O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBkPSJtIDEzNS4yODMyLDM3MDQuNjI1OSBjIC0zLjQ4MTYsMCAtNi4yODMyLDEuMDMyMiAtNi4yODMyLDIuMzEyNSBsIDAsMzQuMjg5MSBjIDAsMS4yODAzIDIuODAxNiwyLjMxMjUgNi4yODMyLDIuMzEyNSBsIDUwNi40NTEyLDAgYyAzLjQ4MTYsMCA2LjI4NTIsLTEuMDMyMiA2LjI4NTIsLTIuMzEyNSBsIDAsLTM0LjI4OTEgYyAwLC0xLjI4MDMgLTIuODAzNiwtMi4zMTI1IC02LjI4NTIsLTIuMzEyNSBsIC01MDYuNDUxMiwwIHogTSAwLDM1NTIuMzYyMyBjIC0xNC4yMjk2LDAgLTI2LjMxMDUsMTIuMDc5IC0yNi4zMTA1LDI2LjMwODYgbCAwLDI5MC44MjIyIGMgMCwxNC4yMjk2IDEyLjA4MDksMjYuMzEwNiAyNi4zMTA1LDI2LjMxMDYgbCA3NzcuMDE5NiwwIGMgMTQuMjI5NiwwIDI2LjMxMDUsLTEyLjA4MSAyNi4zMTA1LC0yNi4zMTA2IGwgMCwtMjkwLjgyMjIgYyAwLC0xNC4yMjk2IC0xMi4wODA5LC0yNi4zMDg2IC0yNi4zMTA1LC0yNi4zMDg2IHogbSAxMy42ODk1LDQwIDc0OS42NDA2LDAgMCwyNjMuNDQxNCAtNzQ5LjY0MDYsMCB6IgogICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz4KICAgIDxwYXRoCiAgICAgICBpZD0icGF0aDY1NjMiCiAgICAgICBzdHlsZT0iZmlsbDojMDAwMDAwO2ZpbGwtb3BhY2l0eToxO2ZpbGwtcnVsZTpldmVub2RkO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoxcHg7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGQ9Im0gMTU4LjQ4ODEsMjI0NC4zOTUyIGMgLTMuNDgxNiwwIC02LjI4MzIsMS4wMzA5IC02LjI4MzIsMi4zMTEyIGwgMCwzNC4yOTA0IGMgMCwxLjI4MDMgMi44MDE2LDIuMzExMiA2LjI4MzIsMi4zMTEyIGwgNTA2LjQ1MTIsMCBjIDMuNDgxNiwwIDYuMjg1MiwtMS4wMzA5IDYuMjg1MiwtMi4zMTEyIGwgMCwtMzQuMjkwNCBjIDAsLTEuMjgwMyAtMi44MDM2LC0yLjMxMTIgLTYuMjg1MiwtMi4zMTEyIHogbSAtMTIyLjE3OTUsOTAuOTQ1NyBjIC0xNC4yMjk1LDAgLTI2LjMwODYsMTIuMDc5IC0yNi4zMDg2LDI2LjMwODYgbCAwLDE4Ny41MzcxIGMgMCwxNC4yMjk2IDEyLjA3ODcsMjYuMzEwNSAyNi4zMDg2LDI2LjMxMDUgbCA3NzYuNzgxMiwwIGMgMTQuMjI5OSwwIDI2LjMwODYsLTEyLjA4MDkgMjYuMzA4NiwtMjYuMzEwNSBsIDAsLTE4Ny41MzcxIGMgMCwtMTQuMjI5NiAtMTIuMDc5MSwtMjYuMzA4NiAtMjYuMzA4NiwtMjYuMzA4NiBsIC03NzYuNzgxMiwwIHogbSAxMy42OTE0LDQwIDc0OS4zOTg0LDAgMCwxNjAuMTU2MiAtNzQ5LjM5ODQsMCAwLC0xNjAuMTU2MiB6IE0gMzYuMzA4NiwxOTUyLjIwNjEgQyAyMi4wNzkxLDE5NTIuMjA2MSAxMCwxOTY0LjI4NyAxMCwxOTc4LjUxNjYgbCAwLDE4Ny41MzcyIGMgMCwxNC4yMjk4IDEyLjA3ODcsMjYuMzA4NSAyNi4zMDg2LDI2LjMwODUgbCA3NzYuNzgxMiwwIGMgMTQuMjI5OSwwIDI2LjMwODYsLTEyLjA3ODcgMjYuMzA4NiwtMjYuMzA4NSBsIDAsLTE4Ny41MzcyIGMgMCwtMTQuMjI5NiAtMTIuMDc5MSwtMjYuMzEwNSAtMjYuMzA4NiwtMjYuMzEwNSBsIC03NzYuNzgxMiwwIHogbSAxMy42OTE0LDQwIDc0OS4zOTg0LDAgMCwxNjAuMTU2MiAtNzQ5LjM5ODQsMCAwLC0xNjAuMTU2MiB6IgogICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz4KICA8L2c+Cjwvc3ZnPgo=) format("svg"), + url(data:application/octet-stream;base64,phYAAPwVAAABAAIAAAAAAAIABQMAAAAAAAABAJABAAAAAExQAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAp9sKxwAAAAAAAAAAAAAAAAAAAAAAABIAUwBWAEcARgBvAG4AdAAgADEAAAAOAFIAZQBnAHUAbABhAHIAAAAWAFYAZQByAHMAaQBvAG4AIAAxAC4AMAAAABAAZgBvAG4AdAAzADMAMwA2AAAAAAAAAQAAAAsAgAADADBHU1VCIIwleQAAATgAAABUT1MvMlavYxEAAAGMAAAAVmNtYXA5r0D8AAACNAAAAsxnbHlm8ZN0DQAABSwAAA0IaGVhZAvdzAsAAADgAAAANmhoZWEHkAO7AAAAvAAAACRobXR4UAAAAAAAAeQAAABQbG9jYSUQIaQAAAUAAAAAKm1heHABMADzAAABGAAAACBuYW1l/7HTqAAAEjQAAAL6cG9zdB++klYAABUwAAAAygABAAADpv+mAAAEAAAAAAAD6AABAAAAAAAAAAAAAAAAAAAAFAABAAAAAQAAxwrbp18PPPUACwQAAAAAANRrw4cAAAAA1GvDhwAAAAAD6AQAAAAACAACAAAAAAAAAAEAAAAUAOcAEgAAAAAAAgAAAAoACgAAAP8AAAAAAAAAAQAAAAoAMAA+AAJsYXRuAA5ERkxUABoABAAAAAAAAAABAAAABAAAAAAAAAABAAAAAWxpZ2EACAAAAAEAAAABAAQABAAAAAEACAABAAYAAAABAAAAAQQAAZAABQAAAokCzAAAAI8CiQLMAAAB6wAyAQgAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABAAEIAeQOm/6YAXAQAAFoAAAABAAAAAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAAAAAFAAAAAwAAACwAAAAEAAAB2AABAAAAAADSAAMAAQAAACwAAwAKAAAB2AAEAKYAAAAcABAAAwAMAEIARQBJAFIAVABXAGUAaQBtAHIAdQB3AHn//wAAAEIARABJAFEAVABXAGUAaQBtAG8AdAB3AHn//wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAHAAcAB4AHgAgACAAIAAgACAAIAAmACgAKAAAABIAEwAMABEADQAPABAADgACAAgACwAJAAoAAQAEAAUABwADAAYAAAEGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAASABMMAAAAEQAAAAAAAAANDwAQAAAOAAAAAAAAAAAAAAAAAAIAAAAIAAAACwAJCgEEAAUHAAMABgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAPQAAAAAAAAAEwAAAEIAAABCAAAAEgAAAEQAAABEAAAAEwAAAEUAAABFAAAADAAAAEkAAABJAAAAEQAAAFEAAABRAAAADQAAAFIAAABSAAAADwAAAFQAAABUAAAAEAAAAFcAAABXAAAADgAAAGUAAABlAAAAAgAAAGkAAABpAAAACAAAAG0AAABtAAAACwAAAG8AAABvAAAACQAAAHAAAABwAAAACgAAAHEAAABxAAAAAQAAAHIAAAByAAAABAAAAHQAAAB0AAAABQAAAHUAAAB1AAAABwAAAHcAAAB3AAAAAwAAAHkAAAB5AAAABgAAAAwAOACoAPoBOAG0AiIDUgOYA8oENgRaBLIE1gUWBVQFyAYGBjgGhAAAAAEAAAAAA+gEAAADAAAxIREhA+j8GAQAAAIAAAAAA4QC7AAPABsAABMiBhURFBYzITI2NRE0JiMFITIVERQjISI1ETR6CQ0NCQL0CQ0NCf0MAvQCAv0MAgLsDQn91AkNDQkCLAkNFAL91AMDAiwCAAAGAAAAAAOEAuwADwAfAC8AOwBHAFMAABMiBhURFBY7ATI2NRE0JiMzIgYVERQWOwEyNjURNCYjMyIGFREUFjsBMjY1ETQmIwUzMhURFCsBIjURNCEzMhURFCsBIjURNCEzMhURFCsBIjURNHoJDQ0JuwkNDQliCQ0NCboJDQ0JYgkNDQm7CQ0NCf0MuwICuwIBH7oDA7oDAR+7AgK7AgLsCwj9zQcLCwcCMwgLCwj9zQcLCwcCMwgLCwj9zQcLCwcCMwgLEQL9zQICAjMCAv3NAgICMwIC/c0CAgIzAgAAAAQAAAAAA4UC7AAPABsAKwA3AAABIgYVERQWMyEyNjURNCYjBSEyFREUIyEiNRE0JSIGFREUFjMhMjY1ETQmIwUhMhURFCMhIjURNAIeCQ0NCQFQCQ0NCf6wAVADA/6wA/5fCQ0NCQFQCQ0NCf6wAVADA/6wAwLsDQn91AkMDAkCLAkNEwP91AICAiwDEg0J/dQJDAwJAiwJDRMD/dQCAgIsAwAABAAAAAADhQLsAA8AHwAjACcAABMiBhURFBY7ATI2NRE0JiMzIgYVERQWMyEyNjURNCYjBTMRIwEhESF0BgoKBucHCgoHbwcKCgcBqgYKCgb9BODgAVUBo/5dAuwKB/3JBwkJBwI3BwoKB/3JBwkJBwI3BwoU/dACMP3QAAYAAAAAA4UC7AAPABsAKwA7AEsAWwAAEyIGFREUFjMhMjY1ETQmIwUhMhURFCMhIjURNBciBh0BFBY7ATI2PQE0JiMzIgYdARQWMyEyNj0BNCYjBSIGHQEUFjMhMjY9ATQmIwUiBh0BFBY7ATI2PQE0JiN6CQ0NCQL0CQ0NCf0MAvQCAv0MAlgCBAQCWAIEBAKgAgQEAgFSAgQEAv3kAgQEAgHsAgQEAv6sAgQEArwCBAQCAuwNCf3UCQ0NCQIsCQ0UAv3UAwMCLAJCBAMlAwMDAyUDBAQDJQMDAwMlAwR+BAOHAwMDA4cDBN4EAyUDAwMDJQMEAAAABQAAAAADggLsAA8AHwAvAD8ATwAAEyIGHQEUFjMhMjY9ATQmIwUiBh0BFBYzITI2PQE0JiMFIgYdARQWMyEyNj0BNCYjBSIGHQEUFjMhMjY9ATQmIwUiBh0BFBYzITI2PQE0JiNtAwQEAwH6AwQEA/4GAwQEAwMOAwQEA/zyAwQEAwMOAwQEA/zyAwQEAwMOAwQEA/zyAwQEAwMOAwQEAwLrBAJdAwQEA10CBPUEAxcDAwMDFwMEagQCGAIEBAIYAgRqBAMXAwMDAxcDBGoEAhgCBAQCGAIEAAAAABIAAAAAA4QCqgAPAB8ALwAzADcAOwBEAE0AVgBmAHYAhgCWAKYAtgDGANYA5gAAASIGFREUFjsBMjY1ETQmIwUiBhURFBY7ATI2NRE0JiMzIgYVERQWOwEyNjURNCYjFzMRIwEzESMBMxEjASIGFBYyNjQmBSIGFBYyNjQmISIGFBYyNjQmFyIGHQEUFjsBMjY9ATQmIwUiBh0BFBY7ATI2PQE0JiMzIgYdARQWOwEyNj0BNCYjFyIGHQEUFjsBMjY9ATQmIwUiBh0BFBY7ATI2PQE0JiMzIgYdARQWOwEyNj0BNCYjFyIGHQEUFjsBMjY9ATQmIwUiBh0BFBY7ATI2PQE0JiMzIgYdARQWOwEyNj0BNCYjAq4HCQkHxgYKCgb9AAYJCQbGBwkJB1UHCQkHxgYKCgZaw8P9x8PDARrDwwF+FBwcKRwc/bIUHR0oHR0BBhQcHCkcHNoDBAQDZAMFBQP9YwMFBQNkAwQEA7YDBAQDZAMFBQO7AwQEA2QDBQUD/WMDBQUDZAMEBAO2AwQEA2QDBQUDuwMEBANkAwUFA/1jAwUFA2QDBAQDtgMEBANkAwUFAwKqCQf+tgYKCgYBSgcJAgoG/rYHCQkHAUoGCgoG/rYHCQkHAUoGCg/+uQFE/rkBR/65ARwcKRwcKRwCHCkcHCkcHCkcHCkckQQDBwMEBAMHAwQCBAMHAwUFAwcDBAQDBwMFBQMHAwQlBAMHAwQEAwcDBAIEAwcDBQUDBwMEBAMHAwUFAwcDBCUEAwcDBAQDBwMEAgQDCAMEBAMIAwQEAwgDBAQDCAMEAAAABAAAAAADhALsAA8AGwAkACsAABMiBhURFBYzITI2NRE0JiMFITIVERQjISI1ETQFIgYUFjI2NCYFAyEHIQMHegkNDQkC9AkNDQn9DAL0AgL9DAICXRsoKDcoKP6d6wEDAQFvt00C7A0J/dQJDQ0JAiwJDRQC/dQDAwIsAiUoOCcnOCg7/lYBAUuLAAABAAAAAAL+AyAAHwAAEwczPgE3NjsBERQHBisBFSE1IyInJjURMzIWFxYXMyfyCBIDIxgTLEwKESgWAQwWJRENWSgwDgkFEgcDII0pMAgG/jYyDxcQEBMONwHKGBoQJY0AAAAABAAAAAADGwMhABQAKQA6AEsAABMdATMVFhUUBzEGDwEVNzY3NTY9ATMdATMXFhUUBzEGDwEVNzY3NTY9AQUzFRQHBgc1Njc2NTQmLwEjJTMVFAcGBzU2NzY1NCYvASPNewEfHDkIC309PUp7AQEfHTgJDHw+PP3G2jo1azwfIQECAncBTNo5Nms8HyICAgJ3AyAK/AcEB0o5NgkCfAEPZwFmkekK/AcEB0o5NgkCfAEPZwFmkekU1YxhWhFVDTs9TwgPCAfe1YxhWhFVDTs9TwgPCAcAAAAAAgAAAAADlAL7AA8AEwAAEyIGFREUFjMhMjY1ETQmIwUhESF6DxYWDwL0DxYWD/0ZAtr9JgL7Fg/91BAVFRACLA8WMv3tAAAABgAAAAADkQMAAA8AHwAvADMANwA7AAATIgYVERQWOwEyNjURNCYjMyIGFREUFjsBMjY1ETQmIzMiBhURFBY7ATI2NRE0JiMFMxEjATMRIwEzESNyChAQCrwKEBAKaAoQEAq8ChAQCmgKEBAKvAoQEAr9CqCgASSgoAEkoKADABAL/bULDw8LAksLEBAL/bULDw8LAksLEBAL/bULDw8LAksLECj90AIw/dACMP3QAAACAAAAAAOUAvsADwATAAATIgYVERQWMyEyNjURNCYjBSERIXoPFhYPAvQPFhYP/RkC2v0mAvsWD/3UEBUVEAIsDxYy/e0AAAAEAAAAAAOTAwAADwAfACMAJwAAEyIGFREUFjMhMjY1ETQmIzMiBhURFBYzITI2NRE0JiMFIREhASERIXALEBALAUULEBALfgsQEAsBRQsQEAv9BQEr/tUBwwEr/tUDABAL/bULDw8LAksLEBAL/bULDw8LAksLECj90AIw/dAAAAQAAAAAA44C+wAPAB8AIwAnAAATIgYVERQWOwEyNjURNCYjMyIGFREUFjMhMjY1ETQmIwUzESMBIREhdQsPDwv2CxAQC4ULEBALAYMLDw8L/RDb2wF6AWj+mAL7EAv9vwsPDwsCQQsQEAv9vwsPDwsCQQsQKP3aAib92gAGAAAAAAOUAvsADwAfAC8APwBPAFMAAAEiBh0BFBY7ATI2PQE0JiMlIgYdARQWMyEyNj0BNCYjJSIGHQEUFjMhMjY9ATQmIyEiBh0BFBY7ATI2PQE0JiMnIgYVERQWMyEyNjURNCYjBSERIQGZAgQEArwCBAQC/qUCBAQCAewCBAQC/twCBAQCAVICBAQC/bYCBAQCWAIEBAKoDxYWDwL0DxYWD/0ZAtr9JgErAwMlAwQEAyUDA8gDA4cDBAQDhwMDlgMDJQMEBAMlAwMDAyUDBAQDJQMDchYP/dQQFRUQAiwPFjL97QAABAAAAAADlAL7AAYADwAfACMAAAEDIRUhAwcTIgYUFjI2NCYlIgYVERQWMyEyNjURNCYjBSERIQGb6wEDAW63Tb0cJyc4KCj9hA8WFg8C9A8WFg/9GQLa/SYChP5WAQFLiwEGJzgoKDgnXBYP/dQQFRUQAiwPFjL97QAAAAMAAAAAA5MCbAALABsAHwAAEyIdARQzITI9ATQjJSIGFREUFjMhMjY1ETQmIwUhESH3BwcB+gcH/X4KEBAKAwoKEBAK/QQC7v0SAdMCIwICIwKYDwv+3QoQEAoBIwsPKP75AAAFAAAAAAOTAvgACwAbAB8ALwAzAAATIh0BFDMhMj0BNCMFIgYdARQWMyEyNj0BNCYjBSEVIQMiBh0BFBYzITI2PQE0JiMFIRUh6gYGAfoHB/2MCxAQCwMICxAQC/0FAu79Eg0LEBALAwgLEBAL/QUC7v0SAdMCIwICIwJbDwu8ChAQCrwLDyigAkcPC7wKEBAKvAsPKKAAAAAAEgDeAAEAAAAAAAAAQwAAAAEAAAAAAAEACQBDAAEAAAAAAAIABwBMAAEAAAAAAAMACABTAAEAAAAAAAQACABbAAEAAAAAAAUACwBjAAEAAAAAAAYACABuAAEAAAAAAAoAKwB2AAEAAAAAAAsAEwChAAMAAQQJAAAAhgC0AAMAAQQJAAEAEgE6AAMAAQQJAAIADgFMAAMAAQQJAAMAEAFaAAMAAQQJAAQAEAFqAAMAAQQJAAUAFgF6AAMAAQQJAAYAEAGQAAMAAQQJAAoAVgGgAAMAAQQJAAsAJgH2CiAgICAKICAgICAgCiAgICAgICAgaW1hZ2Uvc3ZnK3htbAogICAgICAgIAogICAgICAgIAogICAgICAKICAgIAogIFNWR0ZvbnQgMVJlZ3VsYXJmb250MzMzNmZvbnQzMzM2VmVyc2lvbiAxLjBmb250MzMzNkdlbmVyYXRlZCBieSBzdmcydHRmIGZyb20gRm9udGVsbG8gcHJvamVjdC5odHRwOi8vZm9udGVsbG8uY29tAAoAIAAgACAAIAAKACAAIAAgACAAIAAgAAoAIAAgACAAIAAgACAAIAAgAGkAbQBhAGcAZQAvAHMAdgBnACsAeABtAGwACgAgACAAIAAgACAAIAAgACAACgAgACAAIAAgACAAIAAgACAACgAgACAAIAAgACAAIAAKACAAIAAgACAACgAgACAAUwBWAEcARgBvAG4AdAAgADEAUgBlAGcAdQBsAGEAcgBmAG8AbgB0ADMAMwAzADYAZgBvAG4AdAAzADMAMwA2AFYAZQByAHMAaQBvAG4AIAAxAC4AMABmAG8AbgB0ADMAMwAzADYARwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABzAHYAZwAyAHQAdABmACAAZgByAG8AbQAgAEYAbwBuAHQAZQBsAGwAbwAgAHAAcgBvAGoAZQBjAHQALgBoAHQAdABwADoALwAvAGYAbwBuAHQAZQBsAGwAbwAuAGMAbwBtAAAAAgAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAQIBAwEEAQUBBgEHAQgBCQEKAQsBDAENAQ4BDwEQAREBEgETARQBFQAEYjEwMANiMzMDYjUwA2IzNwRoZXJvA2gxcAczYmFkZ2VzBWltYWdlBHRleHQGcXVvdGVzBmJ1dHRvbgh0cnAtc2VjdAZvLXNlY3QIZGJsLXNlY3QHMzctcmVjdAloZXJvLXNlY3QHaW1hZ2UtcwZidXR0b24HZGl2aWRlcgAAAAA=) format("embedded-opentype"); + font-weight: normal; + font-style: normal; +} +.gjs-is__grab, +.gjs-is__grab * { + cursor: grab !important; +} +.gjs-is__grabbing, +.gjs-is__grabbing * { + -moz-user-select: none; + -khtml-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; + -o-user-select: none; + user-select: none; + cursor: grabbing !important; +} +.gjs-one-bg { + background-color: #444; +} +.gjs-one-color { + color: #444; +} +.gjs-one-color-h:hover { + color: #444; +} +.gjs-two-bg { + background-color: #ddd; +} +.gjs-two-color { + color: #ddd; +} +.gjs-two-color-h:hover { + color: #ddd; +} +.gjs-three-bg { + background-color: #804f7b; +} +.gjs-three-color { + color: #804f7b; +} +.gjs-three-color-h:hover { + color: #804f7b; +} +.gjs-four-bg { + background-color: #d278c9; +} +.gjs-four-color { + color: #d278c9; +} +.gjs-four-color-h:hover { + color: #d278c9; +} +.gjs-danger-bg { + background-color: #dd3636; +} +.gjs-danger-color { + color: #dd3636; +} +.gjs-danger-color-h:hover { + color: #dd3636; +} +.gjs-bg-main, +.gjs-sm-colorp-c, +.gjs-off-prv { + background-color: #444; +} +.gjs-color-main, +.gjs-sm-stack #gjs-sm-add, +.gjs-off-prv { + color: #ddd; + fill: #ddd; +} +.gjs-color-active { + color: #f8f8f8; + fill: #f8f8f8; +} +.gjs-color-warn { + color: #ffca6f; + fill: #ffca6f; +} +.gjs-color-hl { + color: #71b7f1; + fill: #71b7f1; +} +.gjs-fonts::before { + display: block; + font: normal normal normal 14px font3336; + text-rendering: auto; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + font-size: 5em; +} +.gjs-f-b1::before { + content: "Q"; +} +.gjs-f-b2::before { + content: "W"; +} +.gjs-f-b3::before { + content: "E"; +} +.gjs-f-b37::before { + content: "R"; +} +.gjs-f-hero::before { + content: "T"; +} +.gjs-f-h1p::before { + content: "y"; +} +.gjs-f-3ba::before { + content: "u"; +} +.gjs-f-image::before { + content: "I"; +} +.gjs-f-text::before { + content: "o"; +} +.gjs-f-quo::before { + content: "p"; +} +.gjs-f-button::before { + content: "B"; +} +.gjs-f-divider::before { + content: "D"; +} +.gjs-invis-invis, +.gjs-clm-tags #gjs-clm-new, +.gjs-no-app { + background-color: transparent; + border: none; + color: inherit; +} +.gjs-no-app { + height: 10px; +} +.gjs-test::btn { + color: "#fff"; +} +.opac50 { + opacity: .5; + filter: alpha(opacity=50); +} +.gjs-checker-bg, +.gjs-field-colorp-c, +.checker-bg, +.gjs-sm-layer-preview { + background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==); +} +.gjs-no-user-select, +.gjs-rte-toolbar, +.gjs-layer-name, +.gjs-grabbing, +.gjs-grabbing * { + -moz-user-select: none; + -khtml-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; + -o-user-select: none; + user-select: none; +} +.gjs-no-pointer-events, +.gjs-margin-v-el, +.gjs-padding-v-el, +.gjs-fixedmargin-v-el, +.gjs-fixedpadding-v-el, +.gjs-resizer-c { + pointer-events: none; +} +.gjs-bdrag { + pointer-events: none !important; + position: absolute !important; + z-index: 10 !important; + width: auto; +} +.gjs-drag-helper { + background-color: #3b97e3 !important; + pointer-events: none !important; + position: absolute !important; + z-index: 10 !important; + transform: scale(0.3) !important; + transform-origin: top left !important; + -webkit-transform-origin: top left !important; + margin: 15px !important; + transition: none !important; + outline: none !important; +} +.gjs-grabbing, +.gjs-grabbing * { + cursor: grabbing !important; + cursor: -webkit-grabbing !important; +} +.gjs-grabbing { + overflow: hidden; +} +.gjs-off-prv { + position: relative; + z-index: 10; + padding: 5px; + cursor: pointer; +} +.gjs-editor-cont ::-webkit-scrollbar-track { + background: rgba(0, 0, 0, .1); +} +.gjs-editor-cont ::-webkit-scrollbar-thumb { + background-color: rgba(255, 255, 255, .2); +} +.gjs-editor-cont ::-webkit-scrollbar { + width: 8px; +} +.clear { + clear: both; +} +.no-select, +.gjs-clm-tags #gjs-clm-close, +.gjs-category-title, +.gjs-layer-title, +.gjs-block-category .gjs-title, +.gjs-sm-sector-title, +.gjs-com-no-select, +.gjs-com-no-select img { + -moz-user-select: none; + -khtml-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; + -o-user-select: none; + user-select: none; +} +.gjs-no-touch-actions { + touch-action: none; +} +.gjs-disabled { + -moz-user-select: none; + -khtml-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; + -o-user-select: none; + user-select: none; + opacity: .5; + filter: alpha(opacity=50); +} +.gjs-editor { + font-family: Helvetica, sans-serif; + font-size: .75rem; + position: relative; + box-sizing: border-box; + height: 100%; +} +.gjs-freezed, +.gjs-freezed { + opacity: .5; + filter: alpha(opacity=50); + pointer-events: none; +} +.gjs-traits-label { + border-bottom: 1px solid rgba(0, 0, 0, .2); + font-weight: lighter; + margin-bottom: 5px; + padding: 10px; + text-align: left; +} +.gjs-label-wrp { + width: 30%; + min-width: 30%; +} +.gjs-field-wrp { + flex-grow: 1; +} +.gjs-trt-header { + font-weight: lighter; + padding: 10px; +} +.gjs-trt-trait { + display: flex; + justify-content: flex-start; + padding: 5px 10px; + font-weight: lighter; + align-items: center; + text-align: left; +} +.gjs-trt-traits { + font-size: .75rem; +} +.gjs-trt-trait .gjs-label { + text-align: left; + text-overflow: ellipsis; + overflow: hidden; +} +.gjs-guide-info { + position: absolute; +} +.gjs-guide-info__content { + position: absolute; + height: 100%; + display: flex; + width: 100%; + padding: 5px; +} +.gjs-guide-info__line { + position: relative; + margin: auto; +} +.gjs-guide-info__line::before, +.gjs-guide-info__line::after { + content: ""; + display: block; + position: absolute; + background-color: inherit; +} +.gjs-guide-info__y { + padding: 0 5px; +} +.gjs-guide-info__y .gjs-guide-info__content { + justify-content: center; +} +.gjs-guide-info__y .gjs-guide-info__line { + width: 100%; + height: 1px; +} +.gjs-guide-info__y .gjs-guide-info__line::before, +.gjs-guide-info__y .gjs-guide-info__line::after { + width: 1px; + height: 10px; + top: 0; + bottom: 0; + left: 0; + margin: auto; +} +.gjs-guide-info__y .gjs-guide-info__line::after { + left: auto; + right: 0; +} +.gjs-guide-info__x { + padding: 5px 0; +} +.gjs-guide-info__x .gjs-guide-info__content { + align-items: center; +} +.gjs-guide-info__x .gjs-guide-info__line { + height: 100%; + width: 1px; +} +.gjs-guide-info__x .gjs-guide-info__line::before, +.gjs-guide-info__x .gjs-guide-info__line::after { + width: 10px; + height: 1px; + left: 0; + right: 0; + top: 0; + margin: auto; + transform: translateX(-50%); +} +.gjs-guide-info__x .gjs-guide-info__line::after { + top: auto; + bottom: 0; +} +.gjs-badge { + white-space: nowrap; +} +.gjs-badge__icon { + vertical-align: middle; + display: inline-block; + width: 15px; + height: 15px; +} +.gjs-badge__icon svg { + fill: currentColor; +} +.gjs-badge__name { + display: inline-block; + vertical-align: middle; +} +.gjs-frame-wrapper { + position: absolute; + width: 100%; + height: 100%; + left: 0; + right: 0; + margin: auto; +} +.gjs-frame-wrapper--anim { + transition: width .35s ease, height .35s ease; +} +.gjs-frame-wrapper__top { + transform: translateY(-100%) translateX(-50%); + display: flex; + padding: 5px 0; + position: absolute; + width: 100%; + left: 50%; + top: 0; +} +.gjs-frame-wrapper__top-r { + margin-left: auto; +} +.gjs-frame-wrapper__left { + position: absolute; + left: 0; + transform: translateX(-100%) translateY(-50%); + height: 100%; + top: 50%; +} +.gjs-frame-wrapper__bottom { + position: absolute; + bottom: 0; + transform: translateY(100%) translateX(-50%); + width: 100%; + left: 50%; +} +.gjs-frame-wrapper__right { + position: absolute; + right: 0; + transform: translateX(100%) translateY(-50%); + height: 100%; + top: 50%; +} +.gjs-frame-wrapper__icon { + width: 24px; + cursor: pointer; +} +.gjs-frame-wrapper__icon > svg { + fill: currentColor; +} +.gjs-padding-v-top, +.gjs-fixedpadding-v-top { + width: 100%; + top: 0; + left: 0; +} +.gjs-padding-v-right, +.gjs-fixedpadding-v-right { + right: 0; +} +.gjs-padding-v-bottom, +.gjs-fixedpadding-v-bottom { + width: 100%; + left: 0; + bottom: 0; +} +.gjs-padding-v-left, +.gjs-fixedpadding-v-left { + left: 0; +} +.gjs-cv-canvas { + background-color: rgba(0, 0, 0, .15); + box-sizing: border-box; + width: 85%; + height: calc(100% - 40px); + bottom: 0; + overflow: hidden; + z-index: 1; + position: absolute; + left: 0; + top: 40px; +} +.gjs-cv-canvas.gjs-cui { + width: 100%; + height: 100%; + top: 0; +} +.gjs-cv-canvas.gjs-is__grab .gjs-cv-canvas__frames, +.gjs-cv-canvas.gjs-is__grabbing .gjs-cv-canvas__frames { + pointer-events: none; +} +.gjs-cv-canvas__frames { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; +} +.gjs-cv-canvas .gjs-ghost { + display: none; + pointer-events: none; + background-color: #5b5b5b; + border: 2px dashed #ccc; + position: absolute; + z-index: 10; + opacity: .55; + filter: alpha(opacity=55); +} +.gjs-cv-canvas .gjs-highlighter, +.gjs-cv-canvas .gjs-highlighter-sel { + position: absolute; + outline: 1px solid #3b97e3; + outline-offset: -1px; + pointer-events: none; + width: 100%; + height: 100%; +} +.gjs-cv-canvas .gjs-highlighter-warning { + outline: 3px solid #ffca6f; +} +.gjs-cv-canvas .gjs-highlighter-sel { + outline: 2px solid #3b97e3; + outline-offset: -2px; +} +.gjs-cv-canvas #gjs-tools, +.gjs-cv-canvas .gjs-tools { + width: 100%; + height: 100%; + position: absolute; + top: 0; + left: 0; + outline: none; + z-index: 1; +} +.gjs-cv-canvas * { + box-sizing: border-box; +} +.gjs-frame { + outline: medium none; + height: 100%; + width: 100%; + border: none; + margin: auto; + display: block; + transition: width .35s ease, height .35s ease; + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; +} +.gjs-toolbar { + position: absolute; + background-color: #3b97e3; + white-space: nowrap; + color: #fff; + z-index: 10; + top: 0; + left: 0; +} +.gjs-toolbar-item { + width: 26px; + padding: 5px; + cursor: pointer; + display: inline-block; +} +.gjs-toolbar-item svg { + fill: currentColor; + vertical-align: middle; +} +.gjs-resizer-c { + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; + z-index: 9; +} +.gjs-margin-v-el, +.gjs-padding-v-el, +.gjs-fixedmargin-v-el, +.gjs-fixedpadding-v-el { + opacity: .1; + filter: alpha(opacity=10); + position: absolute; + background-color: #ff0; +} +.gjs-fixedmargin-v-el, +.gjs-fixedpadding-v-el { + opacity: .2; + filter: alpha(opacity=20); +} +.gjs-padding-v-el, +.gjs-fixedpadding-v-el { + background-color: navy; +} +.gjs-resizer-h { + pointer-events: all; + position: absolute; + border: 3px solid #3b97e3; + width: 10px; + height: 10px; + background-color: #fff; + margin: -5px; +} +.gjs-resizer-h-tl { + top: 0; + left: 0; + cursor: nwse-resize; +} +.gjs-resizer-h-tr { + top: 0; + right: 0; + cursor: nesw-resize; +} +.gjs-resizer-h-tc { + top: 0; + margin: -5px auto; + left: 0; + right: 0; + cursor: ns-resize; +} +.gjs-resizer-h-cl { + left: 0; + margin: auto -5px; + top: 0; + bottom: 0; + cursor: ew-resize; +} +.gjs-resizer-h-cr { + margin: auto -5px; + top: 0; + bottom: 0; + right: 0; + cursor: ew-resize; +} +.gjs-resizer-h-bl { + bottom: 0; + left: 0; + cursor: nesw-resize; +} +.gjs-resizer-h-bc { + bottom: 0; + margin: -5px auto; + left: 0; + right: 0; + cursor: ns-resize; +} +.gjs-resizer-h-br { + bottom: 0; + right: 0; + cursor: nwse-resize; +} +.gjs-pn-panel .gjs-resizer-h { + background-color: rgba(0, 0, 0, .2); + border: none; + opacity: 0; + transition: opacity .25s; +} +.gjs-pn-panel .gjs-resizer-h:hover { + opacity: 1; +} +.gjs-pn-panel .gjs-resizer-h-tc, +.gjs-pn-panel .gjs-resizer-h-bc { + margin: 0 auto; + width: 100%; +} +.gjs-pn-panel .gjs-resizer-h-cr, +.gjs-pn-panel .gjs-resizer-h-cl { + margin: auto 0; + height: 100%; +} +.gjs-resizing .gjs-highlighter, +.gjs-resizing .gjs-badge { + display: none !important; +} +.gjs-resizing-tl * { + cursor: nwse-resize !important; +} +.gjs-resizing-tr * { + cursor: nesw-resize !important; +} +.gjs-resizing-tc * { + cursor: ns-resize !important; +} +.gjs-resizing-cl * { + cursor: ew-resize !important; +} +.gjs-resizing-cr * { + cursor: ew-resize !important; +} +.gjs-resizing-bl * { + cursor: nesw-resize !important; +} +.gjs-resizing-bc * { + cursor: ns-resize !important; +} +.gjs-resizing-br * { + cursor: nwse-resize !important; +} +.btn-cl, +.gjs-am-close, +.gjs-mdl-btn-close { + opacity: .3; + filter: alpha(opacity=30); + font-size: 25px; + cursor: pointer; +} +.btn-cl:hover, +.gjs-am-close:hover, +.gjs-mdl-btn-close:hover { + opacity: .7; + filter: alpha(opacity=70); +} +.no-dots, +.ui-resizable-handle { + border: none !important; + margin: 0 !important; + outline: none !important; +} +.gjs-com-dashed * { + outline: 1px dashed #888; + outline-offset: -2px; + box-sizing: border-box; +} +.gjs-cv-canvas .gjs-comp-selected { + outline: 3px solid #3b97e3 !important; +} +*.gjs-com-hover, +div.gjs-com-hover { + outline: 1px solid #3b97e3; +} +*.gjs-com-hover-delete, +div.gjs-com-hover-delete { + outline: 2px solid #dd3636; + opacity: .5; + filter: alpha(opacity=50); +} +*.gjs-com-hover-move, +div.gjs-com-hover-move { + outline: 3px solid #ffca6f; +} +.gjs-com-badge, +.gjs-com-badge-red, +.gjs-badge { + pointer-events: none; + background-color: #3b97e3; + color: #fff; + padding: 2px 5px; + position: absolute; + z-index: 1; + font-size: 12px; + outline: none; + display: none; +} +.gjs-com-badge-red { + background-color: #dd3636; +} +.gjs-badge-warning { + background-color: #ffca6f; +} +.gjs-placeholder, +.gjs-com-placeholder, +.gjs-placeholder { + position: absolute; + z-index: 10; + pointer-events: none; + display: none; +} +.gjs-placeholder, +.gjs-placeholder { + border-style: solid !important; + outline: none; + box-sizing: border-box; + transition: + top .2s, + left .2s, + width .2s, + height .2s; +} +.gjs-placeholder.horizontal, +.gjs-com-placeholder.horizontal, +.gjs-placeholder.horizontal { + border-color: transparent #62c462; + border-width: 3px 5px; + margin: -3px 0 0; +} +.gjs-placeholder.vertical, +.gjs-com-placeholder.vertical, +.gjs-placeholder.vertical { + border-color: #62c462 transparent; + border-width: 5px 3px; + margin: 0 0 0 -3px; +} +.gjs-placeholder-int, +.gjs-com-placeholder-int, +.gjs-placeholder-int { + background-color: #62c462; + box-shadow: 0 0 3px rgba(0, 0, 0, .2); + height: 100%; + width: 100%; + pointer-events: none; + padding: 1.5px; + outline: none; +} +.gjs-pn-panel { + display: inline-block; + position: absolute; + box-sizing: border-box; + text-align: center; + padding: 5px; + z-index: 3; +} +.gjs-pn-panel .icon-undo, +.gjs-pn-panel .icon-redo { + font-size: 20px; + height: 30px; + width: 25px; +} +.gjs-pn-commands { + width: 85%; + left: 0; + top: 0; + box-shadow: 0 0 5px rgba(0, 0, 0, .2); +} +.gjs-pn-options { + right: 15%; + top: 0; +} +.gjs-pn-views { + border-bottom: 2px solid rgba(0, 0, 0, .2); + right: 0; + width: 15%; + z-index: 4; +} +.gjs-pn-views-container { + height: 100%; + padding: 42px 0 0; + right: 0; + width: 15%; + overflow: auto; + box-shadow: 0 0 5px rgba(0, 0, 0, .2); +} +.gjs-pn-buttons { + align-items: center; + display: flex; + justify-content: space-between; +} +.gjs-pn-btn { + box-sizing: border-box; + min-height: 30px; + min-width: 30px; + line-height: 21px; + background-color: transparent; + border: none; + font-size: 18px; + margin-right: 5px; + border-radius: 2px; + padding: 4px; + position: relative; + cursor: pointer; +} +.gjs-pn-btn.gjs-pn-active { + background-color: rgba(0, 0, 0, .15); + box-shadow: 0 0 3px rgba(0, 0, 0, .25) inset; +} +.gjs-pn-btn svg { + fill: currentColor; +} +.gjs-comp-image-placeholder { + display: block; + background-color: #f5f5f5; + color: #777; + height: 50px; + width: 50px; + line-height: 50px; + outline: 3px solid #ffca6f; + outline-offset: -3px; + text-align: center; + font-size: 16.6666666667px; + cursor: pointer; +} +.gjs-comp-image-placeholder.fa-picture-o::after { + content: "\f03e"; +} +.gjs-label { + line-height: 18px; +} +.gjs-fields { + display: flex; +} +.gjs-select { + padding: 0; + width: 100%; +} +.gjs-select select { + padding-right: 10px; +} +.gjs-select:-moz-focusring, +.gjs-select select:-moz-focusring { + color: transparent; + text-shadow: 0 0 0 rgba(255, 255, 255, .7); +} +.gjs-input:focus, +.gjs-button:focus, +.gjs-btn-prim:focus, +.gjs-select:focus, +.gjs-select select:focus { + outline: none; +} +.gjs-field input, +.gjs-field select, +.gjs-field textarea { + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + color: inherit; + border: none; + background-color: transparent; + box-sizing: border-box; + width: 100%; + position: relative; + padding: 5px; + z-index: 1; +} +.gjs-field input:focus, +.gjs-field select:focus, +.gjs-field textarea:focus { + outline: none; +} +.gjs-field input[type=number] { + -moz-appearance: textfield; +} +.gjs-field input[type=number]::-webkit-outer-spin-button, +.gjs-field input[type=number]::-webkit-inner-spin-button { + -webkit-appearance: none; + margin: 0; +} +.gjs-field-range { + flex: 9 1 auto; +} +.gjs-field-integer input { + padding-right: 30px; +} +.gjs-select option, +.gjs-field-select option, +.gjs-clm-select option, +.gjs-sm-select option, +.gjs-fields option, +.gjs-sm-unit option { + background-color: #444; + color: #ddd; +} +.gjs-field { + background-color: rgba(0, 0, 0, .2); + border: none; + box-shadow: none; + border-radius: 2px; + box-sizing: border-box; + padding: 0; + position: relative; +} +.gjs-field textarea { + resize: vertical; +} +.gjs-field .gjs-sel-arrow { + height: 100%; + width: 9px; + position: absolute; + right: 0; + top: 0; + z-index: 0; +} +.gjs-field .gjs-d-s-arrow { + bottom: 0; + top: 0; + margin: auto; + right: 5px; + border-top: 4px solid rgba(255, 255, 255, .7); + position: absolute; + height: 0; + width: 0; + border-left: 3px solid transparent; + border-right: 4px solid transparent; + cursor: pointer; +} +.gjs-field-arrows { + position: absolute; + cursor: ns-resize; + margin: auto; + height: 20px; + width: 9px; + z-index: 10; + bottom: 0; + right: 3px; + top: 0; +} +.gjs-field-color, +.gjs-field-radio { + width: 100%; +} +.gjs-field-color input { + padding-right: 22px; + box-sizing: border-box; +} +.gjs-field-colorp { + border-left: 1px solid rgba(0, 0, 0, .2); + box-sizing: border-box; + height: 100%; + padding: 2px; + position: absolute; + right: 0; + top: 0; + width: 22px; + z-index: 10; +} +.gjs-field-colorp .gjs-checker-bg, +.gjs-field-colorp .gjs-field-colorp-c { + height: 100%; + width: 100%; + border-radius: 1px; +} +.gjs-field-colorp-c { + height: 100%; + position: relative; + width: 100%; +} +.gjs-field-color-picker { + background-color: #ddd; + cursor: pointer; + height: 100%; + width: 100%; + box-shadow: 0 0 1px rgba(0, 0, 0, .2); + border-radius: 1px; + position: absolute; + top: 0; +} +.gjs-field-checkbox { + padding: 0; + width: 17px; + height: 17px; + display: block; + cursor: pointer; +} +.gjs-field-checkbox input { + display: none; +} +.gjs-field-checkbox input:checked + .gjs-chk-icon { + border-color: rgba(255, 255, 255, .5); + border-width: 0 2px 2px 0; + border-style: solid; +} +.gjs-radio-item { + flex: 1 1 auto; + text-align: center; + border-left: 1px solid rgba(0, 0, 0, .2); +} +.gjs-radio-item:first-child { + border: none; +} +.gjs-radio-item:hover { + background: rgba(0, 0, 0, .2); +} +.gjs-radio-item input { + display: none; +} +.gjs-radio-item input:checked + .gjs-radio-item-label { + background-color: rgba(255, 255, 255, .2); +} +.gjs-radio-items { + display: flex; +} +.gjs-radio-item-label { + cursor: pointer; + display: block; + padding: 5px; +} +.gjs-field-units { + position: absolute; + margin: auto; + right: 10px; + bottom: 0; + top: 0; +} +.gjs-field-unit { + position: absolute; + right: 10px; + top: 3px; + font-size: 10px; + color: rgba(255, 255, 255, .7); + cursor: pointer; +} +.gjs-input-unit { + text-align: center; +} +.gjs-field-arrow-u, +.gjs-field-arrow-d { + position: absolute; + height: 0; + width: 0; + border-left: 3px solid transparent; + border-right: 4px solid transparent; + border-top: 4px solid rgba(255, 255, 255, .7); + bottom: 4px; + cursor: pointer; +} +.gjs-field-arrow-u { + border-bottom: 4px solid rgba(255, 255, 255, .7); + border-top: none; + top: 4px; +} +.gjs-field-select { + padding: 0; +} +.gjs-field-range { + background-color: transparent; + border: none; + box-shadow: none; + padding: 0; +} +.gjs-field-range input { + margin: 0; + height: 100%; +} +.gjs-field-range input:focus { + outline: none; +} +.gjs-field-range input::-webkit-slider-thumb { + -webkit-appearance: none; + margin-top: -4px; + height: 10px; + width: 10px; + border: 1px solid rgba(0, 0, 0, .2); + border-radius: 100%; + background-color: #ddd; + cursor: pointer; +} +.gjs-field-range input::-moz-range-thumb { + height: 10px; + width: 10px; + border: 1px solid rgba(0, 0, 0, .2); + border-radius: 100%; + background-color: #ddd; + cursor: pointer; +} +.gjs-field-range input::-ms-thumb { + height: 10px; + width: 10px; + border: 1px solid rgba(0, 0, 0, .2); + border-radius: 100%; + background-color: #ddd; + cursor: pointer; +} +.gjs-field-range input::-moz-range-track { + background-color: rgba(0, 0, 0, .2); + border-radius: 1px; + margin-top: 3px; + height: 3px; +} +.gjs-field-range input::-webkit-slider-runnable-track { + background-color: rgba(0, 0, 0, .2); + border-radius: 1px; + margin-top: 3px; + height: 3px; +} +.gjs-field-range input::-ms-track { + background-color: rgba(0, 0, 0, .2); + border-radius: 1px; + margin-top: 3px; + height: 3px; +} +.gjs-btn-prim { + color: inherit; + background-color: rgba(255, 255, 255, .1); + border-radius: 2px; + padding: 3px 6px; + padding: 5px; + cursor: pointer; + border: none; +} +.gjs-btn-prim:active { + background-color: rgba(255, 255, 255, .1); +} +.gjs-btn--full { + width: 100%; +} +.gjs-chk-icon { + -ms-transform: rotate(45deg); + -webkit-transform: rotate(45deg); + -moz-transform: rotate(45deg); + transform: rotate(45deg); + box-sizing: border-box; + display: block; + height: 14px; + margin: 0 5px; + width: 6px; +} +.gjs-add-trasp { + background: none; + border: none; + color: #ddd; + cursor: pointer; + font-size: 1em; + border-radius: 2px; + opacity: .75; + filter: alpha(opacity=75); +} +.gjs-add-trasp:hover { + opacity: 1; + filter: alpha(opacity=100); +} +.gjs-add-trasp:active { + background-color: rgba(0, 0, 0, .2); +} +.gjs-devices-c { + display: flex; + align-items: center; + padding: 2px 3px 3px 3px; +} +.gjs-devices-c .gjs-device-label { + flex-grow: 2; + text-align: left; + margin-right: 10px; +} +.gjs-devices-c .gjs-select { + flex-grow: 20; +} +.gjs-devices-c .gjs-add-trasp { + flex-grow: 1; + margin-left: 5px; +} +.gjs-category-open, +.gjs-block-category.gjs-open, +.gjs-sm-sector.gjs-sm-open { + border-bottom: 1px solid rgba(0, 0, 0, .25); +} +.gjs-category-title, +.gjs-layer-title, +.gjs-block-category .gjs-title, +.gjs-sm-sector-title { + font-weight: lighter; + background-color: rgba(0, 0, 0, .1); + letter-spacing: 1px; + padding: 9px 10px 9px 20px; + border-bottom: 1px solid rgba(0, 0, 0, .25); + text-align: left; + position: relative; + cursor: pointer; +} +.gjs-sm-clear { + cursor: pointer; + width: 14px; + min-width: 14px; + height: 14px; + margin-left: 3px; +} +.gjs-sm-header { + font-weight: lighter; + padding: 10px; +} +.gjs-sm-sector { + clear: both; + font-weight: lighter; + text-align: left; +} +.gjs-sm-sector-title { + display: flex; + align-items: center; +} +.gjs-sm-sector-caret { + width: 17px; + height: 17px; + min-width: 17px; + transform: rotate(-90deg); +} +.gjs-sm-sector-label { + margin-left: 5px; +} +.gjs-sm-sector.gjs-sm-open .gjs-sm-sector-caret { + transform: none; +} +.gjs-sm-properties { + font-size: .75rem; + padding: 10px 5px; + display: flex; + flex-wrap: wrap; + align-items: flex-end; + box-sizing: border-box; + width: 100%; +} +.gjs-sm-label { + margin: 5px 5px 3px 0; + display: flex; + align-items: center; +} +.gjs-sm-close-btn, +.gjs-sm-preview-file-close { + display: block; + font-size: 23px; + position: absolute; + cursor: pointer; + right: 5px; + top: 0; + opacity: .7; + filter: alpha(opacity=70); +} +.gjs-sm-close-btn:hover, +.gjs-sm-preview-file-close:hover { + opacity: .9; + filter: alpha(opacity=90); +} +.gjs-sm-field, +.gjs-clm-select, +.gjs-clm-field { + width: 100%; + position: relative; +} +.gjs-sm-field input, +.gjs-clm-select input, +.gjs-clm-field input, +.gjs-sm-field select, +.gjs-clm-select select, +.gjs-clm-field select { + background-color: transparent; + color: rgba(255, 255, 255, .7); + border: none; + width: 100%; +} +.gjs-sm-field input, +.gjs-clm-select input, +.gjs-clm-field input { + box-sizing: border-box; +} +.gjs-sm-field select, +.gjs-clm-select select, +.gjs-clm-field select { + position: relative; + z-index: 1; + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; +} +.gjs-sm-field select::-ms-expand, +.gjs-clm-select select::-ms-expand, +.gjs-clm-field select::-ms-expand { + display: none; +} +.gjs-sm-field select:-moz-focusring, +.gjs-clm-select select:-moz-focusring, +.gjs-clm-field select:-moz-focusring { + color: transparent; + text-shadow: 0 0 0 rgba(255, 255, 255, .7); +} +.gjs-sm-field input:focus, +.gjs-clm-select input:focus, +.gjs-clm-field input:focus, +.gjs-sm-field select:focus, +.gjs-clm-select select:focus, +.gjs-clm-field select:focus { + outline: none; +} +.gjs-sm-field .gjs-sm-unit, +.gjs-clm-select .gjs-sm-unit, +.gjs-clm-field .gjs-sm-unit { + position: absolute; + right: 10px; + top: 3px; + font-size: 10px; + color: rgba(255, 255, 255, .7); + cursor: pointer; +} +.gjs-sm-field .gjs-clm-sel-arrow, +.gjs-clm-select .gjs-clm-sel-arrow, +.gjs-clm-field .gjs-clm-sel-arrow, +.gjs-sm-field .gjs-sm-int-arrows, +.gjs-clm-select .gjs-sm-int-arrows, +.gjs-clm-field .gjs-sm-int-arrows, +.gjs-sm-field .gjs-sm-sel-arrow, +.gjs-clm-select .gjs-sm-sel-arrow, +.gjs-clm-field .gjs-sm-sel-arrow { + height: 100%; + width: 9px; + position: absolute; + right: 0; + top: 0; + cursor: ns-resize; +} +.gjs-sm-field .gjs-sm-sel-arrow, +.gjs-clm-select .gjs-sm-sel-arrow, +.gjs-clm-field .gjs-sm-sel-arrow { + cursor: pointer; +} +.gjs-sm-field .gjs-clm-d-s-arrow, +.gjs-clm-select .gjs-clm-d-s-arrow, +.gjs-clm-field .gjs-clm-d-s-arrow, +.gjs-sm-field .gjs-sm-d-arrow, +.gjs-clm-select .gjs-sm-d-arrow, +.gjs-clm-field .gjs-sm-d-arrow, +.gjs-sm-field .gjs-sm-d-s-arrow, +.gjs-clm-select .gjs-sm-d-s-arrow, +.gjs-clm-field .gjs-sm-d-s-arrow, +.gjs-sm-field .gjs-sm-u-arrow, +.gjs-clm-select .gjs-sm-u-arrow, +.gjs-clm-field .gjs-sm-u-arrow { + position: absolute; + height: 0; + width: 0; + border-left: 3px solid transparent; + border-right: 4px solid transparent; + cursor: pointer; +} +.gjs-sm-field .gjs-sm-u-arrow, +.gjs-clm-select .gjs-sm-u-arrow, +.gjs-clm-field .gjs-sm-u-arrow { + border-bottom: 4px solid rgba(255, 255, 255, .7); + top: 4px; +} +.gjs-sm-field .gjs-clm-d-s-arrow, +.gjs-clm-select .gjs-clm-d-s-arrow, +.gjs-clm-field .gjs-clm-d-s-arrow, +.gjs-sm-field .gjs-sm-d-arrow, +.gjs-clm-select .gjs-sm-d-arrow, +.gjs-clm-field .gjs-sm-d-arrow, +.gjs-sm-field .gjs-sm-d-s-arrow, +.gjs-clm-select .gjs-sm-d-s-arrow, +.gjs-clm-field .gjs-sm-d-s-arrow { + border-top: 4px solid rgba(255, 255, 255, .7); + bottom: 4px; +} +.gjs-sm-field .gjs-clm-d-s-arrow, +.gjs-clm-select .gjs-clm-d-s-arrow, +.gjs-clm-field .gjs-clm-d-s-arrow, +.gjs-sm-field .gjs-sm-d-s-arrow, +.gjs-clm-select .gjs-sm-d-s-arrow, +.gjs-clm-field .gjs-sm-d-s-arrow { + bottom: 7px; +} +.gjs-sm-field.gjs-sm-color, +.gjs-sm-color.gjs-clm-field, +.gjs-sm-field.gjs-sm-input, +.gjs-sm-input.gjs-clm-field, +.gjs-sm-field.gjs-sm-integer, +.gjs-sm-integer.gjs-clm-field, +.gjs-sm-field.gjs-sm-list, +.gjs-sm-list.gjs-clm-field, +.gjs-sm-field.gjs-sm-select, +.gjs-clm-select, +.gjs-sm-select.gjs-clm-field { + background-color: rgba(0, 0, 0, .2); + border: 1px solid rgba(0, 0, 0, .1); + box-shadow: 1px 1px 0 rgba(255, 255, 255, .1); + color: rgba(255, 255, 255, .7); + border-radius: 2px; + box-sizing: border-box; + padding: 0 5px; +} +.gjs-sm-field.gjs-sm-composite, +.gjs-sm-composite.gjs-clm-select, +.gjs-sm-composite.gjs-clm-field { + border-radius: 2px; +} +.gjs-sm-field.gjs-sm-select, +.gjs-clm-select, +.gjs-sm-select.gjs-clm-field { + padding: 0; +} +.gjs-sm-field.gjs-sm-select select, +.gjs-clm-select select, +.gjs-sm-select.gjs-clm-field select { + height: 20px; +} +.gjs-sm-field.gjs-sm-select option, +.gjs-clm-select option, +.gjs-sm-select.gjs-clm-field option { + padding: 3px 0; +} +.gjs-sm-field.gjs-sm-composite, +.gjs-sm-composite.gjs-clm-select, +.gjs-sm-composite.gjs-clm-field { + background-color: rgba(0, 0, 0, .1); + border: 1px solid rgba(0, 0, 0, .25); +} +.gjs-sm-field.gjs-sm-list, +.gjs-sm-list.gjs-clm-select, +.gjs-sm-list.gjs-clm-field { + width: auto; + padding: 0; + overflow: hidden; + float: left; +} +.gjs-sm-field.gjs-sm-list input, +.gjs-sm-list.gjs-clm-select input, +.gjs-sm-list.gjs-clm-field input { + display: none; +} +.gjs-sm-field.gjs-sm-list label, +.gjs-sm-list.gjs-clm-select label, +.gjs-sm-list.gjs-clm-field label { + cursor: pointer; + padding: 5px; + display: block; +} +.gjs-sm-field.gjs-sm-list .gjs-sm-radio:checked + label, +.gjs-sm-list.gjs-clm-select .gjs-sm-radio:checked + label, +.gjs-sm-list.gjs-clm-field .gjs-sm-radio:checked + label { + background-color: rgba(255, 255, 255, .2); +} +.gjs-sm-field.gjs-sm-list .gjs-sm-icon, +.gjs-sm-list.gjs-clm-select .gjs-sm-icon, +.gjs-sm-list.gjs-clm-field .gjs-sm-icon { + background-repeat: no-repeat; + background-position: center; + text-shadow: none; + line-height: normal; +} +.gjs-sm-field.gjs-sm-integer select, +.gjs-sm-integer.gjs-clm-select select, +.gjs-sm-integer.gjs-clm-field select { + width: auto; + padding: 0; +} +.gjs-sm-list .gjs-sm-el { + float: left; + border-left: 1px solid rgba(0, 0, 0, .2); +} +.gjs-sm-list .gjs-sm-el:first-child { + border: none; +} +.gjs-sm-list .gjs-sm-el:hover { + background: rgba(0, 0, 0, .2); +} +.gjs-sm-slider .gjs-field-integer { + flex: 1 1 65px; +} +.gjs-sm-property { + box-sizing: border-box; + float: left; + width: 50%; + margin-bottom: 5px; + padding: 0 5px; +} +.gjs-sm-property--full, +.gjs-sm-property.gjs-sm-composite, +.gjs-sm-property.gjs-sm-file, +.gjs-sm-property.gjs-sm-list, +.gjs-sm-property.gjs-sm-stack, +.gjs-sm-property.gjs-sm-slider, +.gjs-sm-property.gjs-sm-color { + width: 100%; +} +.gjs-sm-property .gjs-sm-btn { + background-color: rgba(33, 33, 33, .2); + border-radius: 2px; + box-shadow: 1px 1px 0 rgba(5, 5, 5, .2), 1px 1px 0 rgba(43, 43, 43, .2) inset; + padding: 5px; + position: relative; + text-align: center; + height: auto; + width: 100%; + cursor: pointer; + color: #ddd; + box-sizing: border-box; + text-shadow: -1px -1px 0 rgba(0, 0, 0, .2); + border: none; + opacity: .85; + filter: alpha(opacity=85); +} +.gjs-sm-property .gjs-sm-btn-c { + box-sizing: border-box; + float: left; + width: 100%; +} +.gjs-sm-property__text-shadow .gjs-sm-layer-preview-cnt::after { + color: #000; + content: "T"; + font-weight: 900; + line-height: 17px; + padding: 0 4px; +} +.gjs-sm-preview-file { + background-color: rgba(255, 255, 255, .05); + border-radius: 2px; + margin-top: 5px; + position: relative; + overflow: hidden; + border: 1px solid rgba(252, 252, 252, .05); + padding: 3px 20px; +} +.gjs-sm-preview-file-cnt { + background-size: auto 100%; + background-repeat: no-repeat; + background-position: center center; + height: 50px; +} +.gjs-sm-preview-file-close { + top: -5px; + width: 14px; + height: 14px; +} +.gjs-sm-layers { + margin-top: 5px; + padding: 1px 3px; + min-height: 30px; +} +.gjs-sm-layer { + background-color: rgba(255, 255, 255, .055); + border-radius: 2px; + margin: 2px 0; + padding: 7px; + position: relative; +} +.gjs-sm-layer.gjs-sm-active { + background-color: rgba(255, 255, 255, .12); +} +.gjs-sm-layer .gjs-sm-label-wrp { + display: flex; + align-items: center; +} +.gjs-sm-layer #gjs-sm-move { + height: 14px; + width: 14px; + min-width: 14px; + cursor: grab; +} +.gjs-sm-layer #gjs-sm-label { + flex-grow: 1; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + margin: 0 5px; +} +.gjs-sm-layer-preview { + height: 15px; + width: 15px; + min-width: 15px; + margin-right: 5px; + border-radius: 2px; +} +.gjs-sm-layer-preview-cnt { + border-radius: 2px; + background-color: #fff; + height: 100%; + width: 100%; + background-size: cover !important; +} +.gjs-sm-layer #gjs-sm-close-layer { + display: block; + cursor: pointer; + height: 14px; + width: 14px; + min-width: 14px; + opacity: .5; + filter: alpha(opacity=50); +} +.gjs-sm-layer #gjs-sm-close-layer:hover { + opacity: .8; + filter: alpha(opacity=80); +} +.gjs-sm-stack .gjs-sm-properties { + padding: 5px 0 0; +} +.gjs-sm-stack #gjs-sm-add { + background: none; + border: none; + cursor: pointer; + outline: none; + position: absolute; + right: 0; + top: -17px; + opacity: .75; + padding: 0; + width: 18px; + height: 18px; +} +.gjs-sm-stack #gjs-sm-add:hover { + opacity: 1; + filter: alpha(opacity=100); +} +.gjs-sm-colorp-c { + height: 100%; + width: 20px; + position: absolute; + right: 0; + top: 0; + box-sizing: border-box; + border-radius: 2px; + padding: 2px; +} +.gjs-sm-colorp-c .gjs-checker-bg, +.gjs-sm-colorp-c .gjs-field-colorp-c { + height: 100%; + width: 100%; + border-radius: 1px; +} +.gjs-sm-color-picker { + background-color: #ddd; + cursor: pointer; + height: 16px; + width: 100%; + margin-top: -16px; + box-shadow: 0 0 1px rgba(0, 0, 0, .2); + border-radius: 1px; +} +.gjs-sm-btn-upload #gjs-sm-upload { + left: 0; + top: 0; + position: absolute; + width: 100%; + opacity: 0; + cursor: pointer; +} +.gjs-sm-btn-upload #gjs-sm-label { + padding: 2px 0; +} +.gjs-sm-layer > #gjs-sm-move { + opacity: .7; + filter: alpha(opacity=70); + cursor: move; + font-size: 12px; + float: left; + margin: 0 5px 0 0; +} +.gjs-sm-layer > #gjs-sm-move:hover { + opacity: .9; + filter: alpha(opacity=90); +} +.gjs-blocks-c { + display: flex; + flex-wrap: wrap; + justify-content: flex-start; +} +.gjs-block-categories { + display: flex; + flex-direction: column; +} +.gjs-block-category { + width: 100%; +} +.gjs-block-category .gjs-caret-icon { + margin-right: 5px; +} +.gjs-block { + -moz-user-select: none; + -khtml-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; + -o-user-select: none; + user-select: none; + width: 45%; + min-width: 45px; + padding: 1em; + box-sizing: border-box; + min-height: 90px; + cursor: all-scroll; + font-size: 11px; + font-weight: lighter; + text-align: center; + display: flex; + flex-direction: column; + justify-content: space-between; + border: 1px solid rgba(0, 0, 0, .2); + border-radius: 3px; + margin: 10px 2.5% 5px; + box-shadow: 0 1px 0 0 rgba(0, 0, 0, .15); + transition: all .2s ease 0s; + transition-property: box-shadow, color; +} +.gjs-block:hover { + box-shadow: 0 3px 4px 0 rgba(0, 0, 0, .15); +} +.gjs-block svg { + fill: currentColor; +} +.gjs-block__media { + margin-bottom: 10px; + pointer-events: none; +} +.gjs-block-svg { + width: 54px; + fill: currentColor; +} +.gjs-block-svg-path { + fill: currentColor; +} +.gjs-block.fa { + font-size: 2em; + line-height: 2em; + padding: 11px; +} +.gjs-block-label { + line-height: normal; + font-size: .65rem; + font-weight: normal; + font-family: Helvetica, sans-serif; + overflow: hidden; + text-overflow: ellipsis; + pointer-events: none; +} +.gjs-block.gjs-bdrag { + width: auto; + padding: 0; +} +.gjs-selected-parent { + border: 1px solid #ffca6f; +} +.gjs-opac50 { + opacity: .5; + filter: alpha(opacity=50); +} +.gjs-layer { + font-weight: lighter; + text-align: left; + position: relative; + background-color: rgba(0, 0, 0, .1); + font-size: .75rem; + display: grid; +} +.gjs-layer-hidden { + opacity: .55; + filter: alpha(opacity=55); +} +.gjs-layer-count { + position: absolute; + right: 27px; + top: 9px; +} +.gjs-layer-vis { + height: auto !important; + width: auto !important; + left: 0; + top: 0; + padding: 7px 5px 7px 10px; + position: absolute; + cursor: pointer; + z-index: 1; +} +.gjs-layer-caret { + font-size: .5rem; + width: 8px; + padding: 2px; + cursor: pointer; + position: absolute; + left: -9px; + top: 6px; + opacity: .7; + filter: alpha(opacity=70); +} +.gjs-layer-caret:hover { + opacity: 1; + filter: alpha(opacity=100); +} +.gjs-layer-title { + padding: 3px 10px 5px 30px; + display: flex; + align-items: center; +} +.gjs-layer-title-inn { + align-items: center; + position: relative; + display: flex; + width: 100%; +} +.gjs-layer__icon { + display: block; + width: 100%; + max-width: 15px; + max-height: 15px; + padding-left: 5px; +} +.gjs-layer__icon svg { + fill: currentColor; +} +.gjs-layer-name { + padding: 5px 0; + display: inline-block; + box-sizing: content-box; + overflow: hidden; + white-space: nowrap; + margin: 0 30px 0 5px; + max-width: 170px; +} +.gjs-layer-name--no-edit { + text-overflow: ellipsis; +} +.gjs-layer > .gjs-layer-children { + display: none; +} +.gjs-layer.open > .gjs-layer-children { + display: block; +} +.gjs-layer-no-chld > .gjs-layer-title-inn > .gjs-layer-caret { + display: none; +} +.gjs-layer-move { + padding: 7px 10px 7px 5px; + position: absolute; + font-size: 12px; + cursor: move; + right: 0; + top: 0; +} +.gjs-layer.gjs-hovered .gjs-layer-title { + background-color: rgba(255, 255, 255, .015); +} +.gjs-layer.gjs-selected .gjs-layer-title { + background-color: rgba(255, 255, 255, .1); +} +.gjs-layers { + position: relative; + height: 100%; +} +.gjs-layers #gjs-placeholder { + width: 100%; + position: absolute; +} +.gjs-layers #gjs-placeholder #gjs-plh-int { + height: 100%; + padding: 1px; +} +.gjs-layers #gjs-placeholder #gjs-plh-int.gjs-insert { + background-color: #62c462; +} +#gjs-clm-add-tag, +.gjs-clm-tags-btn { + background-color: rgba(255, 255, 255, .15); + border-radius: 2px; + padding: 3px; + margin-right: 3px; + border: 1px solid rgba(0, 0, 0, .15); + width: 24px; + height: 24px; + box-sizing: border-box; + cursor: pointer; +} +.gjs-clm-tags-btn svg { + fill: currentColor; + display: block; +} +.gjs-clm-header { + display: flex; + align-items: center; + margin: 7px 0; +} +.gjs-clm-header-status { + flex-shrink: 1; + margin-left: auto; +} +.gjs-clm-tag { + display: flex; + overflow: hidden; + align-items: center; + border-radius: 3px; + margin: 0 3px 3px 0; + padding: 5px; + cursor: default; +} +.gjs-clm-tag-status, +.gjs-clm-tag-close { + width: 12px; + height: 12px; + flex-shrink: 1; +} +.gjs-clm-tag-status svg, +.gjs-clm-tag-close svg { + vertical-align: middle; + fill: currentColor; +} +.gjs-clm-sels-info { + margin: 7px 0; + text-align: left; +} +.gjs-clm-sel-id { + font-size: .9em; + opacity: .5; + filter: alpha(opacity=50); +} +.gjs-clm-label-sel { + float: left; + padding-right: 5px; +} +.gjs-clm-tags { + font-size: .75rem; + padding: 10px 5px; +} +.gjs-clm-tags #gjs-clm-sel { + padding: 7px 0; + float: left; +} +.gjs-clm-tags #gjs-clm-sel { + font-style: italic; + margin-left: 5px; +} +.gjs-clm-tags #gjs-clm-tags-field { + clear: both; + padding: 5px; + margin-bottom: 5px; + display: flex; + flex-wrap: wrap; +} +.gjs-clm-tags #gjs-clm-tags-c { + display: flex; + flex-wrap: wrap; + vertical-align: top; + overflow: hidden; +} +.gjs-clm-tags #gjs-clm-new { + color: #ddd; + padding: 5px 6px; + display: none; +} +.gjs-clm-tags #gjs-clm-close { + opacity: .85; + filter: alpha(opacity=85); + font-size: 20px; + line-height: 0; + cursor: pointer; + color: rgba(255, 255, 255, .9); +} +.gjs-clm-tags #gjs-clm-close:hover { + opacity: 1; + filter: alpha(opacity=100); +} +.gjs-clm-tags #gjs-clm-checkbox { + color: rgba(255, 255, 255, .9); + vertical-align: middle; + cursor: pointer; + font-size: 9px; +} +.gjs-clm-tags #gjs-clm-tag-label { + flex-grow: 1; + text-overflow: ellipsis; + overflow: hidden; + padding: 0 3px; + cursor: text; +} +.gjs-mdl-container { + font-family: Helvetica, sans-serif; + overflow-y: auto; + position: fixed; + background-color: rgba(0, 0, 0, .5); + display: flex; + top: 0; + left: 0; + right: 0; + bottom: 0; + z-index: 100; +} +.gjs-mdl-dialog { + text-shadow: -1px -1px 0 rgba(0, 0, 0, .05); + animation: gjs-slide-down .215s; + margin: auto; + max-width: 850px; + width: 90%; + border-radius: 3px; + font-weight: lighter; + position: relative; + z-index: 2; +} +.gjs-mdl-title { + font-size: 1rem; +} +.gjs-mdl-btn-close { + position: absolute; + right: 15px; + top: 5px; +} +.gjs-mdl-active .gjs-mdl-dialog { + animation: gjs-mdl-slide-down .216s; +} +.gjs-mdl-header, +.gjs-mdl-content { + padding: 10px 15px; + clear: both; +} +.gjs-mdl-header { + position: relative; + border-bottom: 1px solid rgba(0, 0, 0, .2); + padding: 15px 15px 7px; +} +.gjs-export-dl::after { + content: ""; + clear: both; + display: block; + margin-bottom: 10px; +} +.gjs-dropzone { + display: none; + opacity: 0; + position: absolute; + top: 0; + left: 0; + z-index: 11; + width: 100%; + height: 100%; + transition: opacity .25s; + pointer-events: none; +} +.gjs-dropzone-active .gjs-dropzone { + display: block; + opacity: 1; +} +.gjs-am-assets { + height: 290px; + overflow: auto; + clear: both; + display: flex; + flex-wrap: wrap; + align-items: flex-start; + align-content: flex-start; +} +.gjs-am-assets-header { + padding: 5px; +} +.gjs-am-add-asset .gjs-am-add-field { + width: 70%; + float: left; +} +.gjs-am-add-asset button { + width: 25%; + float: right; +} +.gjs-am-preview-cont { + position: relative; + height: 70px; + width: 30%; + background-color: #444; + border-radius: 2px; + float: left; + overflow: hidden; +} +.gjs-am-preview { + position: absolute; + background-position: center center; + background-size: cover; + background-repeat: no-repeat; + height: 100%; + width: 100%; + z-index: 1; +} +.gjs-am-preview-bg { + opacity: .5; + filter: alpha(opacity=50); + position: absolute; + height: 100%; + width: 100%; + z-index: 0; +} +.gjs-am-dimensions { + opacity: .5; + filter: alpha(opacity=50); + font-size: 10px; +} +.gjs-am-meta { + width: 70%; + float: left; + font-size: 12px; + padding: 5px 0 0 5px; + box-sizing: border-box; +} +.gjs-am-meta > div { + margin-bottom: 5px; +} +.gjs-am-close { + cursor: pointer; + position: absolute; + right: 5px; + top: 0; + display: none; +} +.gjs-am-asset { + border-bottom: 1px solid rgba(0, 0, 0, .2); + padding: 5px; + cursor: pointer; + position: relative; + box-sizing: border-box; + width: 100%; +} +.gjs-am-asset:hover .gjs-am-close { + display: block; +} +.gjs-am-highlight { + background-color: rgba(255, 255, 255, .1); +} +.gjs-am-assets-cont { + background-color: rgba(0, 0, 0, .1); + border-radius: 3px; + box-sizing: border-box; + padding: 10px; + width: 45%; + float: right; + height: 325px; + overflow: hidden; +} +.gjs-am-file-uploader { + width: 55%; + float: left; +} +.gjs-am-file-uploader > form { + background-color: rgba(0, 0, 0, .1); + border: 2px dashed; + border-radius: 3px; + position: relative; + text-align: center; + margin-bottom: 15px; +} +.gjs-am-file-uploader > form.gjs-am-hover { + border: 2px solid #62c462; + color: #75cb75; +} +.gjs-am-file-uploader > form.gjs-am-disabled { + border-color: red; +} +.gjs-am-file-uploader > form #gjs-am-uploadFile { + opacity: 0; + filter: alpha(opacity=0); + padding: 150px 10px; + width: 100%; + box-sizing: border-box; +} +.gjs-am-file-uploader #gjs-am-title { + position: absolute; + padding: 150px 10px; + width: 100%; +} +.gjs-cm-editor-c { + float: left; + box-sizing: border-box; + width: 50%; +} +.gjs-cm-editor-c .CodeMirror { + height: 450px; +} +.gjs-cm-editor { + font-size: 12px; +} +.gjs-cm-editor#gjs-cm-htmlmixed { + padding-right: 10px; + border-right: 1px solid rgba(0, 0, 0, .2); +} +.gjs-cm-editor#gjs-cm-htmlmixed #gjs-cm-title { + color: #a97d44; +} +.gjs-cm-editor#gjs-cm-css { + padding-left: 10px; +} +.gjs-cm-editor#gjs-cm-css #gjs-cm-title { + color: #ddca7e; +} +.gjs-cm-editor #gjs-cm-title { + background-color: rgba(0, 0, 0, .2); + font-size: 12px; + padding: 5px 10px 3px; + text-align: right; +} +.gjs-rte-toolbar { + border: 1px solid rgba(0, 0, 0, .2); + position: absolute; + border-radius: 3px; + z-index: 10; +} +.gjs-rte-actionbar { + display: flex; +} +.gjs-rte-action { + display: flex; + align-items: center; + justify-content: center; + padding: 5px; + width: 25px; + border-right: 1px solid rgba(0, 0, 0, .2); + text-align: center; + cursor: pointer; + outline: none; +} +.gjs-rte-action:last-child { + border-right: none; +} +.gjs-rte-action:hover { + background-color: rgba(255, 255, 255, .1); +} +.gjs-rte-active { + background-color: rgba(255, 255, 255, .1); +} +.gjs-rte-disabled { + color: rgba(255, 255, 255, .1); + cursor: not-allowed; +} +.gjs-rte-disabled:hover { + background-color: unset; +} +.gjs-editor-cont .sp-hue, +.gjs-editor-cont .sp-slider { + cursor: row-resize; +} +.gjs-editor-cont .sp-color, +.gjs-editor-cont .sp-dragger { + cursor: crosshair; +} +.gjs-editor-cont .sp-alpha-inner, +.gjs-editor-cont .sp-alpha-handle { + cursor: col-resize; +} +.gjs-editor-cont .sp-hue { + left: 90%; +} +.gjs-editor-cont .sp-color { + right: 15%; +} +.gjs-editor-cont .sp-container { + border: 1px solid rgba(0, 0, 0, .2); + box-shadow: 0 0 7px rgba(0, 0, 0, .2); + border-radius: 3px; +} +.gjs-editor-cont .sp-picker-container { + border: none; +} +.gjs-editor-cont .colpick_dark .colpick_color { + outline: 1px solid rgba(0, 0, 0, .2); +} +.gjs-editor-cont .sp-cancel, +.gjs-editor-cont .sp-cancel:hover { + bottom: -8px; + color: #777 !important; + font-size: 25px; + left: 0; + position: absolute; + text-decoration: none; +} +.gjs-editor-cont .sp-alpha-handle { + background-color: #ccc; + border: 1px solid #555; + width: 4px; +} +.gjs-editor-cont .sp-color, +.gjs-editor-cont .sp-hue { + border: 1px solid #333; +} +.gjs-editor-cont .sp-slider { + background-color: #ccc; + border: 1px solid #555; + height: 3px; + left: -4px; + width: 22px; +} +.gjs-editor-cont .sp-dragger { + background: transparent; + box-shadow: 0 0 0 1px #111; +} +.gjs-editor-cont .sp-button-container { + float: none; + width: 100%; + position: relative; + text-align: right; +} +.gjs-editor-cont .sp-container button, +.gjs-editor-cont .sp-container button:hover, +.gjs-editor-cont .sp-container button:active { + background: rgba(0, 0, 0, .2); + border-color: rgba(0, 0, 0, .2); + color: #ddd; + text-shadow: none; + box-shadow: none; + padding: 3px 5px; +} +.gjs-editor-cont .sp-palette-container { + border: none; + float: none; + margin: 0; + padding: 5px 10px 0; +} +.gjs-editor-cont .sp-palette .sp-thumb-el, +.gjs-editor-cont .sp-palette .sp-thumb-el:hover { + border: 1px solid rgba(0, 0, 0, .9); +} +.gjs-editor-cont .sp-palette .sp-thumb-el:hover, +.gjs-editor-cont .sp-palette .sp-thumb-el.sp-thumb-active { + border-color: rgba(0, 0, 0, .9); +} +.gjs-hidden { + display: none; +} +@keyframes gjs-slide-down { + 0% { + transform: translate(0, -3rem); + opacity: 0; + } + 100% { + transform: translate(0, 0); + opacity: 1; + } +} +@keyframes gjs-slide-up { + 0% { + transform: translate(0, 0); + opacity: 1; + } + 100% { + transform: translate(0, -3rem); + opacity: 0; + } +} +.cm-s-hopscotch span.cm-error { + color: #fff; +} + +/* server/web/source/node_modules/grapesjs-project-manager/dist/grapesjs-project-manager.min.css */ +:root { + --border-color: rgba(0, 0, 0, 0.15); + --background-color: #3c4a49; + --background-box-title: #263332; +} +.app { + margin: 20px; + margin-top: 30px; + animation: fadein .3s; +} +.app a { + text-decoration: none; + color: #936a9b; +} +.app h1 { + margin-bottom: 30px; +} +.app h2 { + color: #936a9b; +} +.app button { + cursor: pointer; + background-color: #424242; + font-family: inherit; + color: #fff; + display: inline-flex; + align-items: center; + justify-content: center; + font-size: 15px; + border: 1px solid #e9ebeb; + border-bottom-color: #e1e3e3; + border-radius: 4px; + background-color: #fff; + color: rgba(14, 30, 37, .87); + box-shadow: 0 2px 4px 0 rgba(14, 30, 37, .12); + transition: all .2s ease; + transition-property: + background-color, + color, + border, + box-shadow; + outline: 0; + font-weight: 500; + background: #936a9b; + color: #fff; + border-color: transparent; +} +.title-inner { + display: flex; + align-items: center; +} +.title-inner button { + margin-left: 20px; +} +.primary-button { + padding: 13px 18px; +} +.primary-button:hover { + background: #73308d; +} +.flex-row { + display: flex; + justify-content: space-between; + align-items: center; +} +.flex-row button { + height: 45px; +} +.tm-input { + border-radius: 2px; + font-size: 16px; + padding: 11px 15px; + min-width: 300px; + display: inline-block; + box-shadow: 0 0 0 2px rgba(120, 130, 152, .25); + border: none; + outline: none; + transition: all .3s ease; + margin: 20px 0; + color: #fff; + background-color: rgba(0, 0, 0, .2); +} +.tm-input:active, +.tm-input:focus, +.tm-input:hover { + box-shadow: 0 0 0 2px #936a9b; +} +.tm-input.sm { + width: 100%; + min-width: 0; + font-size: 12px; + margin: 10px 0; + padding: 8px 10px; +} +.header { + cursor: pointer; + font-weight: bold; + font-size: 16px !important; +} +.item { + text-align: center; +} +#site-list { + max-height: 400px; + overflow-y: auto; + overflow-x: hidden; +} +.site-wrapper, +.site-wrapper-header { + display: flex; + align-items: center; + padding: 10px 0; + padding-left: 20px; + font-size: 14px; + transition: .3s; +} +.site-wrapper.selected { + border: 2px solid #936a9b; +} +.site-wrapper.open, +.site-wrapper:nth-child(even).open { + background-color: rgba(147, 106, 155, .2); +} +.site-wrapper-header { + padding-left: 15px; + border-bottom: 2px solid rgba(14, 30, 37, .2); +} +.site-wrapper:hover, +.site-wrapper:nth-child(even):hover { + background: rgba(255, 255, 255, .1); +} +.site-wrapper-header, +.site-wrapper:nth-child(even) { + background-color: rgba(0, 0, 0, .1); +} +.site-screenshot, +.site-screenshot-header { + height: 64px; + margin: 0 24px 0 0; + min-width: 102.4px; + position: relative; + overflow: hidden; +} +.site-screenshot-header { + height: 30px; +} +.site-screenshot:before { + background: #dadcdd; + bottom: 0; + content: " "; + left: 0; + position: absolute; + right: 0; + top: 0; +} +.site-screenshot a { + display: block; + position: relative; + z-index: 9; + height: 100%; +} +.site-screenshot img { + position: relative; + width: 100%; + width: 102.4px; + border: none; +} +.site-screenshot img[alt]:after { + display: block; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: #dadcdd; + font-weight: 300; + line-height: 2; + text-align: center; + content: ""; +} +.site-info { + min-width: 250px; + max-width: 250px; +} +.site-info h2 { + margin: 0px; + margin-bottom: 5px; +} +.site-info a { + text-decoration: none; +} +.site-meta a { + font-size: 14px; + color: rgba(165, 210, 230, .8); +} +.site-update-time { + min-width: 150px; +} +.site-create-time { + min-width: 130px; +} +.site-pages, +.site-size { + min-width: 80px; +} +.site-actions { + min-width: 200px; +} +.site-actions i { + color: #936a9b; + background-color: rgba(0, 0, 0, .1); + border: 1px solid #936a9b; + border-radius: 2px; + padding: 5px; + cursor: pointer; +} +.site-actions i:hover { + background-color: #936a9b; + color: #fff; +} +.gjs-templates-overlay { + position: absolute; + pointer-events: none; + top: 0; + width: 100%; + height: 100%; + background-color: rgba(255, 255, 255, .05); +} +.gjs-mdl-dialog-tml { + max-width: 1000px; + margin-top: 45px; +} +.gjs-mdl-dialog-md { + max-width: 400px; + margin-top: 45px; +} +.gjs-tip-about { + padding: 10px; + font-size: .9rem; + border: 1px solid rgba(0, 0, 0, .2); + border-left: 3px solid #936a9b; + background-color: rgba(0, 0, 0, .1); + margin-bottom: 10px; +} +.gjs-tab { + overflow: hidden; + border-bottom: 1px solid rgba(0, 0, 0, .2); + margin-bottom: 10px; +} +.gjs-tab button { + background-color: inherit; + color: inherit; + float: left; + border: 1px solid rgba(0, 0, 0, .1); + outline: none; + cursor: pointer; + padding: 14px 16px; + transition: .3s; +} +.gjs-tab button:hover { + background-color: rgba(0, 0, 0, .1); +} +.gjs-tab button.active { + background-color: rgba(0, 0, 0, .2); +} +.pages-wrp, +.pages { + display: flex; + flex-direction: column; +} +.pages-wrp { + padding: 5px; +} +.pages-title { + padding: 5px; + margin: 0; + border-bottom: 1px solid rgba(0, 0, 0, .1); +} +.add-page { + background: #936a9b; + color: #fff; + font-size: 12px; + padding: 8px 5px; + border-radius: 2px; + cursor: pointer; + white-space: nowrap; + margin-bottom: 10px; +} +.page { + font-size: 12px; + text-align: left; + padding: 5px; + margin-bottom: 5px; + border-radius: 2px; + border: 1px solid rgba(0, 0, 0, .2); + box-shadow: 0 1px 0 0 rgba(0, 0, 0, .15); + transition: all .2s ease 0s; + transition-property: box-shadow, color; + cursor: pointer; +} +.page:hover { + color: #936a9b; + box-shadow: 0 3px 4px 0 rgba(0, 0, 0, .15); +} +.page.selected { + color: #936a9b; + border: 1px solid #936a9b; + background-color: rgba(0, 0, 0, .1); +} +.page-edit, +.page-close { + opacity: .5; + float: right; + background-color: rgba(0, 0, 0, .1); + border: 1px solid rgba(0, 0, 0, .2); + height: 17px; + width: 17px; + text-align: center; + border-radius: 3px; +} +.page-edit:hover, +.page-close:hover { + opacity: 1; +} +.page-edit { + margin-right: 5px; +} +.group { + margin-bottom: 15px; +} +.group input { + padding: 0; + height: initial; + width: initial; + margin-bottom: 0; + display: none; + cursor: pointer; +} +.group input:checked + label:after { + content: ""; + display: block; + position: absolute; + top: 2px; + left: 9px; + width: 6px; + height: 14px; + border: solid #936a9b; + border-width: 0 2px 2px 0; + transform: rotate(45deg); +} +.group label { + position: relative; + cursor: pointer; +} +.group label:before { + content: ""; + -webkit-appearance: none; + background-color: transparent; + border: 2px solid #936a9b; + box-shadow: 0 1px 2px rgba(0, 0, 0, .05), inset 0px -15px 10px -12px rgba(0, 0, 0, .05); + padding: 10px; + display: inline-block; + position: relative; + vertical-align: middle; + cursor: pointer; + margin-right: 5px; +} +@keyframes fadein { + 0% { + opacity: 0; + } + 100% { + opacity: 1; + } +} + +/* server/web/source/node_modules/grapesjs-project-manager/dist/grapesjs-template-manager.min.css */ +:root { + --border-color: rgba(0, 0, 0, 0.15); + --background-color: #3c4a49; + --background-box-title: #263332; +} +.app { + margin: 20px; + margin-top: 30px; + animation: fadein .3s; +} +.app a { + text-decoration: none; + color: #00ad9f; +} +.app h1 { + margin-bottom: 30px; +} +.app h2 { + color: #00ad9f; +} +.app button { + cursor: pointer; + background-color: #424242; + font-family: inherit; + color: #fff; + display: inline-flex; + align-items: center; + justify-content: center; + font-size: 15px; + border: 1px solid #e9ebeb; + border-bottom-color: #e1e3e3; + border-radius: 4px; + background-color: #fff; + color: rgba(14, 30, 37, .87); + box-shadow: 0 2px 4px 0 rgba(14, 30, 37, .12); + transition: all .2s ease; + transition-property: + background-color, + color, + border, + box-shadow; + outline: 0; + font-weight: 500; + background: #00ad9f; + color: #fff; + border-color: transparent; +} +.title-inner { + display: flex; + align-items: center; +} +.title-inner button { + margin-left: 20px; +} +.primary-button { + padding: 13px 18px; +} +.primary-button:hover { + background: #00c2b2; +} +.flex-row { + display: flex; + justify-content: space-between; + align-items: center; +} +.flex-row button { + height: 45px; +} +.tm-input { + border-radius: 2px; + font-size: 16px; + padding: 11px 15px; + min-width: 300px; + display: inline-block; + box-shadow: 0 0 0 2px rgba(120, 130, 152, .25); + border: none; + outline: none; + transition: all .3s ease; + margin: 20px 0; + color: #fff; + background-color: rgba(0, 0, 0, .2); +} +.tm-input:active, +.tm-input:focus, +.tm-input:hover { + box-shadow: 0 0 0 2px #00ad9f; +} +.header { + cursor: pointer; + font-weight: bold; + font-size: 16px !important; +} +.item { + text-align: center; +} +#site-list { + max-height: 400px; + overflow-y: auto; + overflow-x: hidden; +} +.site-wrapper, +.site-wrapper-header { + display: flex; + align-items: center; + padding: 10px 0; + padding-left: 20px; + font-size: 14px; + transition: .3s; +} +.site-wrapper.selected { + border: 2px solid #00ad9f; +} +.site-wrapper-header { + padding-left: 15px; + border-bottom: 2px solid rgba(14, 30, 37, .2); +} +.site-wrapper:hover, +.site-wrapper:nth-child(even):hover { + background: rgba(255, 255, 255, .1); +} +.site-wrapper-header, +.site-wrapper:nth-child(even) { + background-color: rgba(0, 0, 0, .1); +} +.site-screenshot, +.site-screenshot-header { + height: 64px; + margin: 0 24px 0 0; + min-width: 102.4px; + position: relative; +} +.site-screenshot-header { + height: 30px; +} +.site-screenshot:before { + background: #dadcdd; + bottom: 0; + content: " "; + left: 0; + position: absolute; + right: 0; + top: 0; +} +.site-screenshot a { + display: block; + position: relative; + z-index: 9; + height: 100%; +} +.site-screenshot img { + position: relative; + width: 100%; + width: 102.4px; + border: none; +} +.site-screenshot img[alt]:after { + display: block; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: #dadcdd; + font-weight: 300; + line-height: 2; + text-align: center; + content: ""; +} +.site-info { + min-width: 250px; + max-width: 250px; +} +.site-info h2 { + margin: 0px; + margin-bottom: 5px; +} +.site-info a { + text-decoration: none; +} +.site-meta a { + font-size: 14px; + color: rgba(165, 210, 230, .8); +} +.site-update-time { + min-width: 150px; +} +.site-create-time { + min-width: 130px; +} +.site-pages { + min-width: 100px; +} +.site-actions { + min-width: 200px; +} +.site-actions i { + color: #00ad9f; + background-color: rgba(0, 0, 0, .1); + border: 1px solid #00ad9f; + border-radius: 2px; + padding: 5px; + cursor: pointer; +} +.site-actions i:hover { + background-color: #00ad9f; + color: #fff; +} +.gjs-templates-overlay { + position: absolute; + pointer-events: none; + top: 0; + width: 100%; + height: 100%; + background-color: rgba(255, 255, 255, .05); +} +.gjs-mdl-dialog-tml { + max-width: 1000px; + margin-top: 45px; +} +.gjs-tip-about { + padding: 10px; + font-size: .9rem; + border: 1px solid rgba(0, 0, 0, .2); + border-left: 3px solid #00ad9f; + background-color: rgba(0, 0, 0, .1); + margin-bottom: 10px; +} +.gjs-tab { + overflow: hidden; + border-bottom: 1px solid rgba(0, 0, 0, .2); + margin-bottom: 10px; +} +.gjs-tab button { + background-color: inherit; + color: inherit; + float: left; + border: 1px solid rgba(0, 0, 0, .1); + outline: none; + cursor: pointer; + padding: 14px 16px; + transition: .3s; +} +.gjs-tab button:hover { + background-color: rgba(0, 0, 0, .1); +} +.gjs-tab button.active { + background-color: rgba(0, 0, 0, .2); +} +@keyframes fadein { + 0% { + opacity: 0; + } + 100% { + opacity: 1; + } +} + +/* server/web/source/node_modules/grapesjs-component-code-editor/dist/grapesjs-component-code-editor.min.css */ +.code-panel { + text-align: left; + font-size: 1rem; + height: 100%; + overflow: hidden; +} +.code-panel section { + flex: 1; + height: 50%; +} +.code-panel section .codepanel-separator { + display: flex; + justify-content: space-between; + padding-left: 0.6rem; + padding-right: 0.6rem; +} +.code-panel section .codepanel-label { + margin-top: 5px; + line-height: 20px; + font-size: 13px; + color: #aaa; + user-select: none; + text-transform: uppercase; +} +.cp-btn-container { + display: flex; + justify-content: space-evenly; +} +.cp-btn-container .gjs-btn-prim { + margin: 2.5px; +} +.gutter { + cursor: ns-resize; + position: relative; + background-color: rgba(0, 0, 0, 0.2); +} +.gutter:after { + content: ""; + display: block; + height: 8px; + width: 100%; + position: absolute; + top: -3px; + z-index: 150; +} +.code-panel .CodeMirror { + height: 100%; +} +.cp-delete-css { + margin-left: 70%; +} +.gjs-pn-views { + border-left: 1px solid rgba(0, 0, 0, 0.2); + border-bottom: 0; +} +.gjs-pn-views-container { + box-shadow: initial; + border-top: 2px solid rgba(0, 0, 0, 0.2); + top: 40px; + padding-top: 0; + height: calc(100% - 40px); +} +.gjs-pn-views-container, +.gjs-cv-canvas { + transition: width 0.3s ease-in-out; +} + +/* server/web/source/node_modules/grapesjs-rulers/dist/grapesjs-rulers.min.css */ +.rul_wrapper { + position: absolute; + height: 100%; + width: 100%; + overflow: hidden; + pointer-events: none; +} +.rul_wrapper * { + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + -o-user-select: none; + user-select: none; +} +.rul_ruler { + display: block; + position: absolute; + border: 1px solid rgba(206, 219, 236, 0.5); + background-color: rgba(0, 0, 0, 0.2); + pointer-events: all; + filter: blur(0); + -webkit-filter: blur(0); + z-index: 1000; +} +.rul_corner { + pointer-events: all; + position: absolute; + background-color: white; + z-index: 1010; + cursor: pointer; +} +.rul_corner:hover { + background-color: lightgray; +} +.rul_cornerTL { + top: 0; + left: 0; + border-bottom: 1px solid rgba(206, 219, 236, 0.5); + border-right: 1px solid rgba(206, 219, 236, 0.5); +} +.rul_cornerTR { + top: 1px; + right: 1px; + border-bottom: 1px solid rgba(206, 219, 236, 0.5); + border-left: 1px solid rgba(206, 219, 236, 0.5); +} +.rul_cornerBL { + bottom: 1px; + left: 1px; + border-top: 1px solid rgba(206, 219, 236, 0.5); + border-right: 1px solid rgba(206, 219, 236, 0.5); +} +.rul_cornerBR { + bottom: 1px; + right: 1px; + border-top: 1px solid rgba(206, 219, 236, 0.5); + border-left: 1px solid rgba(206, 219, 236, 0.5); +} +.rul_ruler_Vertical { + cursor: ew-resize; + border-left: none; +} +.rul_ruler_Horizontal { + cursor: ns-resize; + border-top: none; +} +.rul_line { + position: absolute; + color: transparent; + background-color: transparent; + border-bottom: 1px solid red; + border-left: 1px solid red; + pointer-events: all; + z-index: 1000; +} +.rul_line_dragged { + border: 1px dotted #6B7587; +} +.rul_line:hover { + border-bottom: 1px solid #236E77; + border-left: 1px solid #236E77; +} +.rul_lineVer { + top: 0; + bottom: 0; +} +.rul_lineVer:hover { + cursor: ew-resize; +} +.rul_lineHor { + right: 0; + left: 0; +} +.rul_lineHor:hover { + cursor: ns-resize; +} +.rul_tooltip:after { + background: transparent; + color: red; + font-size: 12px; + content: attr(data-tip); + top: 50%; + left: 50%; + margin-top: 1px; + margin-left: 1px; + padding: 2px 5px; + position: absolute; + z-index: 10001; + min-width: 45px; +} +.rul_tracker { + height: 1px; + width: 1px; + background: red; + position: absolute; + pointer-events: none; +} + +/* server/web/source/styles/main.css */ +body { + margin: 0; + padding: 0; + overflow: hidden; + height: 100%; +} +html { + margin: 0; + height: 100%; +} +.gjs-pn-command { + width: calc(100% - 300px); +} +.gjs-pn-views { + width: 300px; +} +.gjs-pn-views-container { + width: 300px; +} +.gjs-pn-options { + right: 300px; + top: 0; +} diff --git a/application/source/server/web/package.json b/application/source/server/web/package.json deleted file mode 100644 index 0f11c09ca66062ea982c283e7e4c2de142df46ab..0000000000000000000000000000000000000000 --- a/application/source/server/web/package.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "name": "minerva", - "version": "1.0.0", - "description": "", - "main": "index.js", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "author": "", - "license": "ISC", - "dependencies": { - "grapesjs": "^0.18.4", - "grapesjs-preset-webpage": "^0.1.11" - } -} diff --git a/application/source/server/web/robots.txt b/application/source/server/web/robots.txt deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/application/source/server/web/package-lock.json b/application/source/server/web/source/package-lock.json similarity index 67% rename from application/source/server/web/package-lock.json rename to application/source/server/web/source/package-lock.json index 580531a68e72aff2d8235663ad90c6c1773de68b..30db389bc1eb58fdaef7b237c2b46adebd52caf2 100644 --- a/application/source/server/web/package-lock.json +++ b/application/source/server/web/source/package-lock.json @@ -10,7 +10,16 @@ "license": "ISC", "dependencies": { "grapesjs": "^0.18.4", - "grapesjs-preset-webpage": "^0.1.11" + "grapesjs-component-code-editor": "^1.0.20", + "grapesjs-custom-code": "^0.1.3", + "grapesjs-parser-postcss": "^0.1.1", + "grapesjs-plugin-export": "^1.0.7", + "grapesjs-preset-webpage": "^0.1.11", + "grapesjs-project-manager": "^1.0.17", + "grapesjs-rte-extensions": "^1.0.8", + "grapesjs-rulers": "^1.0.8", + "grapesjs-script-editor": "^1.0.3", + "grapesjs-table": "^1.0.8" } }, "node_modules/backbone": { @@ -58,6 +67,11 @@ "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" }, + "node_modules/dom-to-image": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/dom-to-image/-/dom-to-image-2.6.0.tgz", + "integrity": "sha1-ilA2CAiMh7HCL5A0rgMuGJiVWGc=" + }, "node_modules/file-saver": { "version": "1.3.8", "resolved": "https://registry.npmjs.org/file-saver/-/file-saver-1.3.8.tgz", @@ -92,6 +106,14 @@ "grapesjs": "0.x" } }, + "node_modules/grapesjs-component-code-editor": { + "version": "1.0.20", + "resolved": "https://registry.npmjs.org/grapesjs-component-code-editor/-/grapesjs-component-code-editor-1.0.20.tgz", + "integrity": "sha512-t/KqfzkvMBxDfZEc/0kRN08pDKC5a3dMlrRwxI3PLVvyH/iIMNkz1LlUTgkPujykR4EoFveGLfKe5yXcTvQhAw==", + "dependencies": { + "split.js": "^1.6.2" + } + }, "node_modules/grapesjs-component-countdown": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/grapesjs-component-countdown/-/grapesjs-component-countdown-0.1.3.tgz", @@ -100,6 +122,11 @@ "grapesjs": "0.x" } }, + "node_modules/grapesjs-custom-code": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/grapesjs-custom-code/-/grapesjs-custom-code-0.1.3.tgz", + "integrity": "sha512-K/DF6JysaO6gY5rxaIEYrBy1z4DOlfC8gGQq2vodaXv4iFHLq+S9YEXAct8VhYdKMlqm1CrMsFx83Tuz8AyWfQ==" + }, "node_modules/grapesjs-navbar": { "version": "0.1.5", "resolved": "https://registry.npmjs.org/grapesjs-navbar/-/grapesjs-navbar-0.1.5.tgz", @@ -108,16 +135,21 @@ "grapesjs": "0.x" } }, + "node_modules/grapesjs-parser-postcss": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/grapesjs-parser-postcss/-/grapesjs-parser-postcss-0.1.1.tgz", + "integrity": "sha512-e4qMdElAQtYE+MtO+bYdwSisrThfyemxXVW+PhRACGDD6U8Hw6EgL0aSMHTVnChcYWKyc0rYmiCVn6+T741zDw==", + "dependencies": { + "postcss": "^7.0.2" + } + }, "node_modules/grapesjs-plugin-export": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/grapesjs-plugin-export/-/grapesjs-plugin-export-0.1.5.tgz", - "integrity": "sha512-BgvPY68vIDxVv0Z3v1TTikHseMxbfvUvhk5qUHq3a9kFmc2sFfNA6f5NHP9A4v3Tnd4kuwOd2aIn+QNutZrLRg==", + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/grapesjs-plugin-export/-/grapesjs-plugin-export-1.0.7.tgz", + "integrity": "sha512-tOI/tAYZZndrHDZFN3uRzweVu6cwKrjUe1daOt8lzGDIXHez44Y+5BWlNWxR7i4cLheyn7DJJuarYrUQX+yD5g==", "dependencies": { - "file-saver": "^1.3.2", + "file-saver": "^1.3.8", "jszip": "^3.0.0" - }, - "peerDependencies": { - "grapesjs": "0.x" } }, "node_modules/grapesjs-plugin-filestack": { @@ -153,6 +185,46 @@ "grapesjs": "0.x" } }, + "node_modules/grapesjs-preset-webpage/node_modules/grapesjs-plugin-export": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/grapesjs-plugin-export/-/grapesjs-plugin-export-0.1.5.tgz", + "integrity": "sha512-BgvPY68vIDxVv0Z3v1TTikHseMxbfvUvhk5qUHq3a9kFmc2sFfNA6f5NHP9A4v3Tnd4kuwOd2aIn+QNutZrLRg==", + "dependencies": { + "file-saver": "^1.3.2", + "jszip": "^3.0.0" + }, + "peerDependencies": { + "grapesjs": "0.x" + } + }, + "node_modules/grapesjs-project-manager": { + "version": "1.0.17", + "resolved": "https://registry.npmjs.org/grapesjs-project-manager/-/grapesjs-project-manager-1.0.17.tgz", + "integrity": "sha512-MKp2do6KEiG/HRZokcIXh/nsBPzS4klguBTuG5SVv3jPiJ/NgB2PJAQG58L12lF7rGco6csnr+n1xFbG7XX4AQ==", + "dependencies": { + "dom-to-image": "^2.6.0" + } + }, + "node_modules/grapesjs-rte-extensions": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/grapesjs-rte-extensions/-/grapesjs-rte-extensions-1.0.8.tgz", + "integrity": "sha512-LOxsYAZlXQuLIfNV8XbTzRDiA9vjwj5Ru1mDK3N3yWoDSOuOjz5cbvewZS13+RojnJ6nZdD7UiXK3Jfp1O3f/A==" + }, + "node_modules/grapesjs-rulers": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/grapesjs-rulers/-/grapesjs-rulers-1.0.8.tgz", + "integrity": "sha512-FBCdeXqE9lFYiMoYduoPKm+6KCpSdtsLLxSR0TPS+ZLUzCW/SUvwxXWJOeADzFeEepz4YGVjtPVq6aG1T+t7ag==" + }, + "node_modules/grapesjs-script-editor": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/grapesjs-script-editor/-/grapesjs-script-editor-1.0.3.tgz", + "integrity": "sha512-CL4BGKIavCqAoFINqo8sYvht2A1Y10henA2w8tnyqqadigHPNm73684AqxF9gEgfK+4vS+2MqzoMwHmQHvmYdg==" + }, + "node_modules/grapesjs-table": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/grapesjs-table/-/grapesjs-table-1.0.8.tgz", + "integrity": "sha512-rFu4QatL2173bl60MnzhLEGNIfETGcvc+J1GF7CEH0AqHkNvrWcoKi67Bi5aXNSMlwHsHEDjFo/OfffXkVpzlQ==" + }, "node_modules/immediate": { "version": "3.0.6", "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz", @@ -192,6 +264,27 @@ "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==" }, + "node_modules/picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==" + }, + "node_modules/postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, "node_modules/process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", @@ -229,6 +322,19 @@ "node": ">=0.10.0" } }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/split.js": { + "version": "1.6.5", + "resolved": "https://registry.npmjs.org/split.js/-/split.js-1.6.5.tgz", + "integrity": "sha512-mPTnGCiS/RiuTNsVhCm9De9cCAUsrNFFviRbADdKiiV+Kk8HKp/0fWu7Kr8pi3/yBmsqLFHuXGT9UUZ+CNLwFw==" + }, "node_modules/string_decoder": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", @@ -296,6 +402,11 @@ "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" }, + "dom-to-image": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/dom-to-image/-/dom-to-image-2.6.0.tgz", + "integrity": "sha1-ilA2CAiMh7HCL5A0rgMuGJiVWGc=" + }, "file-saver": { "version": "1.3.8", "resolved": "https://registry.npmjs.org/file-saver/-/file-saver-1.3.8.tgz", @@ -326,24 +437,45 @@ "integrity": "sha512-Iy5M4qGkEE2llb5ZFxitDolRJ3CrQkcK1SQIjRRlkWIAC99On3T/09iFR7NkpTBfsgfdNwcwnSVOMOhSnVLDtw==", "requires": {} }, + "grapesjs-component-code-editor": { + "version": "1.0.20", + "resolved": "https://registry.npmjs.org/grapesjs-component-code-editor/-/grapesjs-component-code-editor-1.0.20.tgz", + "integrity": "sha512-t/KqfzkvMBxDfZEc/0kRN08pDKC5a3dMlrRwxI3PLVvyH/iIMNkz1LlUTgkPujykR4EoFveGLfKe5yXcTvQhAw==", + "requires": { + "split.js": "^1.6.2" + } + }, "grapesjs-component-countdown": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/grapesjs-component-countdown/-/grapesjs-component-countdown-0.1.3.tgz", "integrity": "sha512-TmxDETedUDv1jGqNLn6E768iyp+xAK/XcTId5WpLrmKPFB6aCuWqfTowhtSvyRJJs83OAFMiQIwIu+tEtSWOeA==", "requires": {} }, + "grapesjs-custom-code": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/grapesjs-custom-code/-/grapesjs-custom-code-0.1.3.tgz", + "integrity": "sha512-K/DF6JysaO6gY5rxaIEYrBy1z4DOlfC8gGQq2vodaXv4iFHLq+S9YEXAct8VhYdKMlqm1CrMsFx83Tuz8AyWfQ==" + }, "grapesjs-navbar": { "version": "0.1.5", "resolved": "https://registry.npmjs.org/grapesjs-navbar/-/grapesjs-navbar-0.1.5.tgz", "integrity": "sha512-tVKPtzlTUNCpzk3lHW69II2NsSzLNQd3K32CXssWCP3M1V8fvc9jG/MQECBkd/gMS+DjldD4/4b00ri9F3tKSg==", "requires": {} }, + "grapesjs-parser-postcss": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/grapesjs-parser-postcss/-/grapesjs-parser-postcss-0.1.1.tgz", + "integrity": "sha512-e4qMdElAQtYE+MtO+bYdwSisrThfyemxXVW+PhRACGDD6U8Hw6EgL0aSMHTVnChcYWKyc0rYmiCVn6+T741zDw==", + "requires": { + "postcss": "^7.0.2" + } + }, "grapesjs-plugin-export": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/grapesjs-plugin-export/-/grapesjs-plugin-export-0.1.5.tgz", - "integrity": "sha512-BgvPY68vIDxVv0Z3v1TTikHseMxbfvUvhk5qUHq3a9kFmc2sFfNA6f5NHP9A4v3Tnd4kuwOd2aIn+QNutZrLRg==", + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/grapesjs-plugin-export/-/grapesjs-plugin-export-1.0.7.tgz", + "integrity": "sha512-tOI/tAYZZndrHDZFN3uRzweVu6cwKrjUe1daOt8lzGDIXHez44Y+5BWlNWxR7i4cLheyn7DJJuarYrUQX+yD5g==", "requires": { - "file-saver": "^1.3.2", + "file-saver": "^1.3.8", "jszip": "^3.0.0" } }, @@ -371,8 +503,47 @@ "grapesjs-plugin-export": "^0.1.5", "grapesjs-plugin-filestack": "^0.1.1", "grapesjs-plugin-forms": "^0.3.5" + }, + "dependencies": { + "grapesjs-plugin-export": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/grapesjs-plugin-export/-/grapesjs-plugin-export-0.1.5.tgz", + "integrity": "sha512-BgvPY68vIDxVv0Z3v1TTikHseMxbfvUvhk5qUHq3a9kFmc2sFfNA6f5NHP9A4v3Tnd4kuwOd2aIn+QNutZrLRg==", + "requires": { + "file-saver": "^1.3.2", + "jszip": "^3.0.0" + } + } } }, + "grapesjs-project-manager": { + "version": "1.0.17", + "resolved": "https://registry.npmjs.org/grapesjs-project-manager/-/grapesjs-project-manager-1.0.17.tgz", + "integrity": "sha512-MKp2do6KEiG/HRZokcIXh/nsBPzS4klguBTuG5SVv3jPiJ/NgB2PJAQG58L12lF7rGco6csnr+n1xFbG7XX4AQ==", + "requires": { + "dom-to-image": "^2.6.0" + } + }, + "grapesjs-rte-extensions": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/grapesjs-rte-extensions/-/grapesjs-rte-extensions-1.0.8.tgz", + "integrity": "sha512-LOxsYAZlXQuLIfNV8XbTzRDiA9vjwj5Ru1mDK3N3yWoDSOuOjz5cbvewZS13+RojnJ6nZdD7UiXK3Jfp1O3f/A==" + }, + "grapesjs-rulers": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/grapesjs-rulers/-/grapesjs-rulers-1.0.8.tgz", + "integrity": "sha512-FBCdeXqE9lFYiMoYduoPKm+6KCpSdtsLLxSR0TPS+ZLUzCW/SUvwxXWJOeADzFeEepz4YGVjtPVq6aG1T+t7ag==" + }, + "grapesjs-script-editor": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/grapesjs-script-editor/-/grapesjs-script-editor-1.0.3.tgz", + "integrity": "sha512-CL4BGKIavCqAoFINqo8sYvht2A1Y10henA2w8tnyqqadigHPNm73684AqxF9gEgfK+4vS+2MqzoMwHmQHvmYdg==" + }, + "grapesjs-table": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/grapesjs-table/-/grapesjs-table-1.0.8.tgz", + "integrity": "sha512-rFu4QatL2173bl60MnzhLEGNIfETGcvc+J1GF7CEH0AqHkNvrWcoKi67Bi5aXNSMlwHsHEDjFo/OfffXkVpzlQ==" + }, "immediate": { "version": "3.0.6", "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz", @@ -412,6 +583,20 @@ "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==" }, + "picocolors": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", + "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==" + }, + "postcss": { + "version": "7.0.39", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.39.tgz", + "integrity": "sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==", + "requires": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + } + }, "process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", @@ -446,6 +631,16 @@ "resolved": "https://registry.npmjs.org/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz", "integrity": "sha1-SysbJ+uAip+NzEgaWOXlb1mfP2E=" }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" + }, + "split.js": { + "version": "1.6.5", + "resolved": "https://registry.npmjs.org/split.js/-/split.js-1.6.5.tgz", + "integrity": "sha512-mPTnGCiS/RiuTNsVhCm9De9cCAUsrNFFviRbADdKiiV+Kk8HKp/0fWu7Kr8pi3/yBmsqLFHuXGT9UUZ+CNLwFw==" + }, "string_decoder": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", diff --git a/application/source/server/web/source/package.json b/application/source/server/web/source/package.json new file mode 100644 index 0000000000000000000000000000000000000000..9984f7c4b613eae33130eff314ac521523aa28f3 --- /dev/null +++ b/application/source/server/web/source/package.json @@ -0,0 +1,24 @@ +{ + "name": "minerva", + "version": "1.0.0", + "description": "", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "", + "license": "ISC", + "dependencies": { + "grapesjs": "^0.18.4", + "grapesjs-component-code-editor": "^1.0.20", + "grapesjs-custom-code": "^0.1.3", + "grapesjs-parser-postcss": "^0.1.1", + "grapesjs-plugin-export": "^1.0.7", + "grapesjs-preset-webpage": "^0.1.11", + "grapesjs-project-manager": "^1.0.17", + "grapesjs-rte-extensions": "^1.0.8", + "grapesjs-rulers": "^1.0.8", + "grapesjs-script-editor": "^1.0.3", + "grapesjs-table": "^1.0.8" + } +} diff --git a/application/source/server/web/source/scripts/editor.js b/application/source/server/web/source/scripts/editor.js new file mode 100644 index 0000000000000000000000000000000000000000..1c0cbde2af701abd9f1528d49496fb91ad3463d3 --- /dev/null +++ b/application/source/server/web/source/scripts/editor.js @@ -0,0 +1,605 @@ +import grapesjs from "grapesjs" +import grapesRte from "grapesjs-rte-extensions" +//import grapesjsProjectManager from "grapesjs-project-manager" +import grapesjsCustomCode from "grapesjs-custom-code" +import grapesjsProjectManager from 'grapesjs-project-manager'; +import parserPostCSS from 'grapesjs-parser-postcss'; +import grapesjsPluginCodeEditor from 'grapesjs-component-code-editor'; +import grapesjsScriptEditor from 'grapesjs-script-editor'; +import grapesjsTable from 'grapesjs-table'; +import grapesjsPluginExport from 'grapesjs-plugin-export'; +import grapesjsRulers from 'grapesjs-rulers'; + + +export function startEditor(config) { + + new Promise((resolve, reject) => { + + let vw = document.documentElement.clientWidth; + let vh = document.documentElement.clientHeight; + + + const body = document.getElementsByTagName("body") + body.item(0).insertAdjacentHTML('afterBegin', ` +<div id="gjs"> +</div> + `) + + + function myPlugin(editor, options) { + //console.log(options, 'console.log(options);'); + editor.BlockManager.add('my-plugin-name', { + label: 'Simple block', + content: '<div class="my-block">This is a simple block</div>', + }); + } + + + const swv = 'sw-visibility'; + const expt = 'export-template'; + const osm = 'open-sm'; + const otm = 'open-tm'; + const ola = 'open-layers'; + const obl = 'open-blocks'; + const ful = 'fullscreen'; + const prv = 'preview'; + + let editor = grapesjs.init({ + container: "#gjs", + // cssIcons: "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css", + + pageManager: { + + }, + + styleManager: { + // options + }, + + selectorManager: { + // options + }, + + // grapesjsTable, grapesjsPluginExport, grapesjsProjectManager + + plugins: [myPlugin, grapesRte, grapesjsRulers, grapesjsProjectManager,grapesjsPluginCodeEditor, grapesjsScriptEditor, parserPostCSS, grapesjsCustomCode], + pluginsOpts: { + [myPlugin]: { + customField: 'customValue' + }, + [grapesjsPluginCodeEditor]: { + openState: {pn: '45%', cv: '55%'}, + closedState: {pn: '300px', cv: 'calc( 100% - 300px )'}, + + + }, + [grapesjsCustomCode]: {}, + [grapesjsScriptEditor]: {}, + // [grapesjsTable]: { + // /* options */ + // }, + // [grapesjsPluginExport]: { + // + // filenamePfx: 'dummy', + // filename: 'temp', + // addExportBtn: 1, + // btnLabel: 'Export as ZIP', + // + // root(ed) { + // const all = ed.Pages.getAll(); + // const pages = {}; + // const css = {}; + // all.map(page => { + // pages[(page.get('name') || page.id) + '.html'] = '<!doctype html>' + + // '<html lang="en">' + + // '<head>' + + // '<meta charset="utf-8">' + + // '<link rel="stylesheet" href="/css/style-' + page.id + '.css">' + + // '</head>' + + // '<body>' + + // page.getMainComponent().toHTML() + + // '</body>' + + // '</html>'; + // css['style-' + page.id + '.css'] = editor.CodeManager.getCode(page.getMainComponent(), 'css') + // }); + // return { + // css: { + // ...css + // }, + // ...pages + // } + // } + // }, + }, + + + fromElement: true, + // Size of the editor + height: vh + 'px', + width: 'auto', + // + // resizable: { + // maxDim: 450, + // minDim: 200, + // tc: 0, // Top handler + // cl: 1, // Left handler + // cr: 0, // Right handler + // bc: 0, // Bottom handler + // // Being a flex child we need to change `flex-basis` property + // // instead of the `width` (default) + // keyWidth: 'flex-basis', + // }, + + noticeOnUnload: config?.editor?.noticeOnUnload ?? false, + + + // storageManager: { + // type: 'indexeddb', + // // ... + // }, + + storageManager: { + //type: 'remote', + type: 'rest-api', + + stepsBeforeSave: 1, + urlStore: config?.editor?.storage?.storeUrl, + urlLoad: config?.editor?.storage?.loadUrl, + urlDelete: config?.editor?.storage?.deleteUrl, + // For custom parameters/headers on requests + //params: { _some_token: '....' }, + //headers: { Authorization: 'Basic ...' }, + + + // the URIs below can be the same depending on your API design + // urlStore: config?.editor?.storage?.storeUrl, + // urlLoad: config?.editor?.storage?.loadUrl, + // urlDelete: config?.editor?.storage?.deleteUrl, + //params: { _some_token: '...' }, + //headers: { Authorization: 'Basic ...' } + // uuidInPath:false + }, + +// storageManager: true, + // { + // type: 'remote', + // stepsBeforeSave: 10, + // urlStore: config?.editor?.storage?.storeUrl, + // urlLoad: config?.editor?.storage?.loadUrl, + // params: {}, // Custom parameters to pass with the remote storage request, eg. CSRF token + // headers: {}, // Custom headers for the remote storage request + // // }, + // pageManager: { + // // pages: [ + // // { + // // id: 'page-id1', + // // styles: `.my-class { color: red }`, // or a JSON of styles + // // component: '<div class="my-class">My element1</div>', // or a JSON of components + // // }, + // // { + // // id: 'page-id2', + // // styles: `.my-class { color: blue }`, // or a JSON of styles + // // component: '<div class="my-class">My element2</div>', // or a JSON of components + // // } + // // ], + // }, + + // Avoid any default panel + panels: { + defaults: [ + { + id: 'commands', + buttons: [{}] + }, + { + id: 'options', + buttons: [ + { + active: true, + id: swv, + className: 'fa fa-square-o', + command: swv, + context: swv, + attributes: {title: 'View components'} + }, + { + id: prv, + className: 'fa fa-eye', + command: prv, + context: prv, + attributes: {title: 'Preview'} + }, + { + id: ful, + className: 'fa fa-arrows-alt', + command: ful, + context: ful, + attributes: {title: 'Fullscreen'} + }, + { + id: expt, + className: 'fa fa-code', + command: expt, + attributes: {title: 'View code'} + } + ] + }, + { + id: 'views', + + buttons: [ + { + id: osm, + className: 'fa fa-paint-brush', + command: osm, + active: true, + togglable: 0, + attributes: {title: 'Open Style Manager'} + }, + { + id: otm, + className: 'fa fa-cog', + command: otm, + togglable: 0, + attributes: {title: 'Settings'} + }, + { + id: ola, + className: 'fa fa-bars', + command: ola, + togglable: 0, + attributes: {title: 'Open Layer Manager'} + }, + { + id: obl, + className: 'fa fa-th-large', + command: obl, + togglable: 0, + attributes: {title: 'Open Blocks'} + } + ] + } + ], + }, + + commands: { + defaults: [{ + id: "undo", + run: function (editor, sender) { + sender.set("active", false); + editor.UndoManager.undo(1); + } + }, + { + id: "redo", + run: function (editor, sender) { + sender.set("active", false); + editor.UndoManager.redo(1); + } + }, + ] + }, + + assetManager: { + upload: config?.assets?.url, + uploadName: 'files', + autoAdd: true, + dropzone: true, + + // assets?: Array<object>; + // noAssets?: string; + // stylePrefix?: string; + // upload?: boolean; + // uploadName?: string; + // headers?: object; + // params?: object; + // credentials?: RequestCredentials; + // multiUpload?: boolean; + // autoAdd?: boolean; + // uploadText?: string; + // addBtnText?: string; + // customFetch?: Function; + // uploadFile?: Function; + // embedAsBase64?: boolean; + // handleAdd?: Function; + // dropzone?: boolean; + // openAssetsOnDrop?: number; + // dropzoneContent?: string; + // modalTitle?: string; + // inputPlaceholder?: string; + + // params: { + // _token: "pCYrSwjuiV0t5NVtZpQDY41Gn5lNUwo3it1FIkAj" + // }, + }, + + + }); + + + + const assetManager = editor.AssetManager; + + const storageManager = editor.StorageManager; + + + + +// Running commands from panels + const pn = editor.Panels + pn.addButton('options', { + id: 'open-templates', + className: 'fa fa-folder-o', + attributes: { + title: 'Open projects and templates' + }, + command: 'open-templates', //Open modal + }); + pn.addButton('views', { + id: 'open-pages', + className: 'fa fa-file-o', + attributes: { + title: 'Open Pages' + }, + command: 'open-pages', + togglable: false + }); + + + pn.addButton('views', { + id: 'open-code', + className: 'fa fa-file-code-o', + attributes: { + title: 'Open Code' + }, + command: 'open-code', + togglable: false + }); + + + pn.addButton('options', { + attributes: { + title: 'Toggle Rulers' + }, + context: 'toggle-rulers', //prevents rulers from being toggled when another views-panel button is clicked + label: `<svg width="18" viewBox="0 0 16 16"><path d="M0 8a.5.5 0 0 1 .5-.5h15a.5.5 0 0 1 0 1H.5A.5.5 0 0 1 0 8z"/><path d="M4 3h8a1 1 0 0 1 1 1v2.5h1V4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v2.5h1V4a1 1 0 0 1 1-1zM3 9.5H2V12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9.5h-1V12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9.5z"/></svg>`, + command: 'ruler-visibility', + id: 'ruler-visibility' + }); + + const viewContainerPanel = pn.getPanel('views') + + // setTimeout(() => { + // const panels2 = pn.getPanel('views-container') + // console.log(panels2) + // }, 600) + + //panels2.set('appendContent', editMenuDiv).trigger('change:appendContent') + //editPanel = editMenuDiv + + // + // let editPanel = null + // pn.addButton('views', { + // id: 'editMenu', + // attributes: {class: 'fa fa-file-text-o', title: "Edit Pages"}, + // active: false, + // command: { + // run: function (editor) { + // if(editPanel == null){ + // const editMenuDiv = document.createElement('div') + // editMenuDiv.innerHTML = ` + // <div id="your-content"> + // Input: <input/> + // <button>Button</button> + // <!-- eg. bind a click event on button and do something with GrapesJS API --> + // </div> + // ` + // const panels = pn.getPanel('views-container') + // panels.set('appendContent', editMenuDiv).trigger('change:appendContent') + // editPanel = editMenuDiv + // } + // editPanel.style.display = 'block' + // }, + // stop: function (editor) { + // if(editPanel != null){ + // editPanel.style.display = 'none' + // } + // } + // + // } + // }) + + + // assetManager.open({ + // select(asset, complete) { + // const selected = editor.getSelected(); + // if (selected && selected.is('image')) { + // selected.addAttributes({ src: asset.getSrc() }); + // // The default AssetManager UI will trigger `select(asset, false)` on asset click + // // and `select(asset, true)` on double-click + // complete && assetManager.close(); + // } + // } + // }); + + let panels = editor.Panels.getPanels() + //console.log(panels) + + //panels.forEach(item => console.log(item.get('id'))) + + console.log("editor",editor) + + // editor.DomComponents.addType('input', { + // isComponent: el => el.tagName == 'H1', + // model: { + // defaults: { + // traits: [ + // // Strings are automatically converted to text types + // 'name', // Same as: { type: 'text', name: 'name' } + // 'placeholder', + // { + // type: 'select', // Type of the trait + // label: 'Type', // The label you will see in Settings + // name: 'type', // The name of the attribute/property to use on component + // options: [ + // {id: 'text', name: 'Text'}, + // {id: 'email', name: 'Email'}, + // {id: 'password', name: 'Password'}, + // {id: 'number', name: 'Number'}, + // ] + // }, { + // type: 'checkbox', + // name: 'required', + // }], + // // As by default, traits are binded to attributes, so to define + // // their initial value we can use attributes + // attributes: {type: 'text', required: true}, + // }, + // }, + // }); + + const blockManager = editor.BlockManager; + + blockManager.add('h1-block', { + label: '<h1>Heading 1</h1>', + content: '<h1>Put your title here</h1>', + category: 'Headlines', + attributes: { + title: 'Insert h1 block' + } + }); + + blockManager.add('h2-block', { + label: '<h2>Heading 2</h2>', + content: '<h2>Put your title here</h2>', + category: 'Headlines', + attributes: { + title: 'Insert h2 block' + } + }); + + blockManager.add('h3-block', { + label: '<h3>Heading 3</h3>', + content: '<h3>Put your title here</h3>', + category: 'Headlines', + attributes: { + title: 'Insert h3 block' + } + }); + + blockManager.add('h4-block', { + label: '<h4>Heading 4</h4>', + content: '<h4>Put your title here</h4>', + category: 'Headlines', + attributes: { + title: 'Insert h4 block' + } + }); + blockManager.add('images-block', { + id: 'image', + label: 'Image', + media: `<svg style="width:24px;height:24px" viewBox="0 0 24 24"><path d="M8.5,13.5L11,16.5L14.5,12L19,18H5M21,19V5C21,3.89 20.1,3 19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19Z" /></svg>`, + // Use `image` component + content: { type: 'image' }, + // The component `image` is activatable (shows the Asset Manager). + // We want to activate it once dropped in the canvas. + activate: true, + // select: true, // Default with `activate: true` + }); + + const pageManager = editor.Pages; + console.log('pageManager', pageManager) + //pageManager.select('page-id'); +// or by passing the page +// const somePage1 = pageManager.get('page-id2'); +// pageManager.select(somePage1); + + // const somePage2 = pageManager.get('page-id2'); + // pageManager.select(somePage2); + + //console.log(pageManager); + + // + // const newPage = pageManager.add({ + // id: 'new-page-id', // without an explicit ID, a random one will be created + // styles: `.my-class { color: red }`, // or a JSON of styles + // component: '<div class="my-class">My element</div>', // or a JSON of components + // }); + + + // editor.Panels.addPanel({ + // id: 'myNewPanel', + // visible : true, + // buttons : [] + // }); + // + // editor.Panels.addButton('myNewPanel',{ + // id: 'myNewButton', + // className: 'someClass', + // command: 'someCommand', + // attributes: { title: 'Some title'}, + // active: false, + // }); + + + const pm = editor.Panels; + + +// Add undo/redo buttons +// editor.Panels.addButton('options', { +// id: 'undo', +// className: 'fa fa-undo', +// command: 'undo', +// attributes: { title: 'Undo' } +// }); +// editor.Panels.addButton('options', { +// id: 'redo', +// className: 'fa fa-repeat', +// command: 'redo', +// attributes: { title: 'Redo' } +// }); + + pm.addButton("options", [{ + id: "undo", + className: "fa fa-undo icon-undo", + command: function command(editor, sender) { + sender.set("active", 0); + editor.UndoManager.undo(1); + }, + attributes: { + title: "Undo (CTRL/CMD + Z)" + } + }, { + id: "redo", + className: "fa fa-repeat icon-redo", + command: function command(editor, sender) { + sender.set("active", 0); + editor.UndoManager.redo(1); + }, + attributes: { + title: "Redo (CTRL/CMD + Y)" + } + }]); + + // var newPanel = panelManager.addPanel({ + // id: 'myNewPanel', + // visible : true, + // + // }); + + // var newButton = panelManager.addButton('views',{ + // id: 'myNewButton', + // className: 'someClass', + // command: 'someCommand', + // attributes: { title: 'Some title'}, + // active: true, + // }); + + // var p = editor.Panels.getPanel( 'views' ); + // p.set( 'resizable', true ); + +// editor.Panels.render(); + + }); +} + diff --git a/application/source/server/web/source/scripts/main.js b/application/source/server/web/source/scripts/main.js new file mode 100644 index 0000000000000000000000000000000000000000..f1773eaee9dc4de7a602da708426bc672420ed43 --- /dev/null +++ b/application/source/server/web/source/scripts/main.js @@ -0,0 +1,33 @@ +import {startEditor} from "./editor.js"; +import {startMessageQueue} from "./websocket.js"; + +console.log(`%cWelcome to Minerva!%c\n\nDoes this page need fixes or improvements? +Open an issue or contribute a merge request to help make Minerva more lovable! +https://gitlab.schukai.com/oss/minerva/-/issues/new +`, + "padding-top: 0.5em; font-size: 2em;", "padding-bottom: 0.5em;") + +try { + + fetch("/config.json", { + method: 'GET', // or 'PUT' + headers: { + 'Accept': 'application/json', + }, + }) + .then(response => response.json()) + .then(data => { + + startMessageQueue(data).then(() => { + startEditor(data) + }) + + }) + .catch((error) => { + console.error('Error:', error); + }); + + +} catch (e) { + console.error(e) +} diff --git a/application/source/server/web/source/scripts/websocket.js b/application/source/server/web/source/scripts/websocket.js new file mode 100644 index 0000000000000000000000000000000000000000..426be3e45458e572b32aac392926b8f6aeee6079 --- /dev/null +++ b/application/source/server/web/source/scripts/websocket.js @@ -0,0 +1,47 @@ +function connect(messageUrl) { + + return new Promise((resolve, reject) => { + + var socket = new WebSocket(messageUrl); + + socket.onopen = function () { + console.log("minerva server connected") + resolve(socket); + }; + + socket.onmessage = function (e) { + if (e.data==='script-changed') { + + + + window.location.reload() + return + } + + console.log("Unknown server message "+e.data) + + }; + + socket.onclose = function (e ) { + console.log("minerva server connection closed") + + setTimeout(function() { + connect(messageUrl); + }, 1000); + + } + + socket.onerror = function (e ) { + reject(); + socket.close() + } + + }); +} + + +export function startMessageQueue(config) { + const messageUrl= config?.messages?.url + return connect(messageUrl) + +} \ No newline at end of file diff --git a/application/source/server/web/source/styles/main.css b/application/source/server/web/source/styles/main.css new file mode 100644 index 0000000000000000000000000000000000000000..d65ad6939fdbf1541c6bb853a66d3d0496a55198 --- /dev/null +++ b/application/source/server/web/source/styles/main.css @@ -0,0 +1,36 @@ +@import "../node_modules/grapesjs/dist/css/grapes.min.css"; +@import "../node_modules/grapesjs-project-manager/dist/grapesjs-project-manager.min.css"; +@import "../node_modules/grapesjs-project-manager/dist/grapesjs-template-manager.min.css"; +@import "../node_modules/grapesjs-component-code-editor/dist/grapesjs-component-code-editor.min.css"; +@import "../node_modules/grapesjs-rulers/dist/grapesjs-rulers.min.css"; + + +body { + margin: 0; + padding: 0; + overflow: hidden; + height: 100%; +} + +html { + margin: 0; + height: 100%; +} + +.gjs-pn-command { + width: calc( 100% - 300px ) +} + +.gjs-pn-views { + width: 300px; +} + +.gjs-pn-views-container { + width: 300px; +} + +.gjs-pn-options { + right: 300px; + top: 0; + +} diff --git a/application/source/server/websocket.go b/application/source/server/websocket.go new file mode 100644 index 0000000000000000000000000000000000000000..81f525dbc2ea09fc4213f0a82753f1a1e1899ea9 --- /dev/null +++ b/application/source/server/websocket.go @@ -0,0 +1,87 @@ +package server + +import ( + "fmt" + "gitea.com/go-chi/session" + "github.com/gorilla/websocket" + "log" + "net/http" + "strings" +) + +var ( + upgrader = websocket.Upgrader{} + connections = make(map[string]*websocket.Conn) +) + +func getCmd(input string) string { + inputArr := strings.Split(input, " ") + return inputArr[0] +} + +func getMessage(input string) string { + inputArr := strings.Split(input, " ") + var result string + for i := 1; i < len(inputArr); i++ { + result += inputArr[i] + } + return result +} + +func sendMessage(message []byte) { + + for _, conn := range connections { + conn.WriteMessage(websocket.TextMessage, message) + } + +} + +func getWebsocketHandler() http.Handler { + + return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + // Upgrade upgrades the HTTP server connection to the WebSocket protocol. + + session := session.GetSession(r).ID() + + conn, err := upgrader.Upgrade(w, r, nil) + if err != nil { + log.Print("upgrade failed: ", err) + return + } + + connections[session] = conn + defer func() { + delete(connections, session) + conn.Close() + }() + + // Continuosly read and write message + for { + mt, message, err := conn.ReadMessage() + if err != nil { + log.Println("read failed:", err) + break + } + fmt.Println(mt, message) + //input := string(message) + //cmd := getCmd(input) + //msg := getMessage(input) + //if cmd == "x" { + // todoList = append(todoList, msg) + //} else if cmd == "done" { + // updateTodoList(msg) + //} + //output := "Current Todos: \n" + //for _, todo := range todoList { + // output += "\n - " + todo + "\n" + //} + //output += "\n----------------------------------------" + //message = []byte(output) + //err = conn.WriteMessage(mt, message) + //if err != nil { + // log.Println("write failed:", err) + // break + //} + } + }) +} diff --git a/application/source/utils/file.go b/application/source/utils/file.go index b7dca39a1a4016f260654371fc8485c09c8dbf0b..1eb268c20c875a7267e251fd3333db4fb226c5a9 100644 --- a/application/source/utils/file.go +++ b/application/source/utils/file.go @@ -1,6 +1,8 @@ package utils -import "os" +import ( + "os" +) func FileExists(name string) (found bool) { if f, err := os.Stat(name); err == nil { diff --git a/development/build/minerva_serve_silicon b/development/build/minerva_serve_silicon index b3c0b477fa775eb44f3a3e773291291f4289112d..7792349958c2bf77edc27e1cbb0512d15fae1bc1 100755 Binary files a/development/build/minerva_serve_silicon and b/development/build/minerva_serve_silicon differ