diff --git a/.gitignore b/.gitignore index 859a90f..93989a8 100644 --- a/.gitignore +++ b/.gitignore @@ -65,3 +65,7 @@ wp-content/mysql.sql *.asf *.wmv *.avi + +.ddev/ + +wp-config-ddev.php diff --git a/wp-content/themes/player-key/.env.example b/wp-content/themes/player-key/.env.example new file mode 100644 index 0000000..dd9f234 --- /dev/null +++ b/wp-content/themes/player-key/.env.example @@ -0,0 +1,3 @@ +WP_ENVIRONMENT_TYPE=development +VITE_SERVER_PORT=3002 +VITE_ENTRY_POINT=/src/main.js diff --git a/wp-content/themes/player-key/bud.config.js b/wp-content/themes/player-key/bud.config.js deleted file mode 100644 index f0b546a..0000000 --- a/wp-content/themes/player-key/bud.config.js +++ /dev/null @@ -1,12 +0,0 @@ -export default async bud => { - bud.entry({ - main: ['index.js'], - admin: ['admin-panel.js'], - }) - - bud.serve(new URL(`http://localhost:3001`)); - bud.proxy(new URL(`http://127.0.0.1:3477`)); - bud.watch(bud.path(`./**/*.php`)); - bud.babel.setPreset('@babel/preset-env'); - await bud.extensions.add(`@roots/bud-extensions/mini-css-extract-plugin`) -} diff --git a/wp-content/themes/player-key/composer.json b/wp-content/themes/player-key/composer.json index 7c5241b..d95f3f6 100644 --- a/wp-content/themes/player-key/composer.json +++ b/wp-content/themes/player-key/composer.json @@ -1,5 +1,6 @@ { "require": { - "stoutlogic/acf-builder": "^1.12" + "stoutlogic/acf-builder": "^1.12", + "vlucas/phpdotenv": "^5.5" } } diff --git a/wp-content/themes/player-key/composer.lock b/wp-content/themes/player-key/composer.lock index 83903b1..c557324 100644 --- a/wp-content/themes/player-key/composer.lock +++ b/wp-content/themes/player-key/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "755ca3d20cece0f501a7c40c0e2bc604", + "content-hash": "65e221333b201f07f026e0b6c5cc3831", "packages": [ { "name": "doctrine/inflector", @@ -97,6 +97,143 @@ ], "time": "2022-10-20T09:10:12+00:00" }, + { + "name": "graham-campbell/result-type", + "version": "v1.1.1", + "source": { + "type": "git", + "url": "https://github.com/GrahamCampbell/Result-Type.git", + "reference": "672eff8cf1d6fe1ef09ca0f89c4b287d6a3eb831" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/GrahamCampbell/Result-Type/zipball/672eff8cf1d6fe1ef09ca0f89c4b287d6a3eb831", + "reference": "672eff8cf1d6fe1ef09ca0f89c4b287d6a3eb831", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0", + "phpoption/phpoption": "^1.9.1" + }, + "require-dev": { + "phpunit/phpunit": "^8.5.32 || ^9.6.3 || ^10.0.12" + }, + "type": "library", + "autoload": { + "psr-4": { + "GrahamCampbell\\ResultType\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + } + ], + "description": "An Implementation Of The Result Type", + "keywords": [ + "Graham Campbell", + "GrahamCampbell", + "Result Type", + "Result-Type", + "result" + ], + "support": { + "issues": "https://github.com/GrahamCampbell/Result-Type/issues", + "source": "https://github.com/GrahamCampbell/Result-Type/tree/v1.1.1" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/graham-campbell/result-type", + "type": "tidelift" + } + ], + "time": "2023-02-25T20:23:15+00:00" + }, + { + "name": "phpoption/phpoption", + "version": "1.9.1", + "source": { + "type": "git", + "url": "https://github.com/schmittjoh/php-option.git", + "reference": "dd3a383e599f49777d8b628dadbb90cae435b87e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/dd3a383e599f49777d8b628dadbb90cae435b87e", + "reference": "dd3a383e599f49777d8b628dadbb90cae435b87e", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "phpunit/phpunit": "^8.5.32 || ^9.6.3 || ^10.0.12" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": true + }, + "branch-alias": { + "dev-master": "1.9-dev" + } + }, + "autoload": { + "psr-4": { + "PhpOption\\": "src/PhpOption/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Johannes M. Schmitt", + "email": "schmittjoh@gmail.com", + "homepage": "https://github.com/schmittjoh" + }, + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + } + ], + "description": "Option Type for PHP", + "keywords": [ + "language", + "option", + "php", + "type" + ], + "support": { + "issues": "https://github.com/schmittjoh/php-option/issues", + "source": "https://github.com/schmittjoh/php-option/tree/1.9.1" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpoption/phpoption", + "type": "tidelift" + } + ], + "time": "2023-02-25T19:38:58+00:00" + }, { "name": "stoutlogic/acf-builder", "version": "v1.12.0", @@ -142,6 +279,338 @@ "source": "https://github.com/StoutLogic/acf-builder/tree/v1.12.0" }, "time": "2021-09-17T17:32:44+00:00" + }, + { + "name": "symfony/polyfill-ctype", + "version": "v1.28.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-ctype.git", + "reference": "ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb", + "reference": "ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "provide": { + "ext-ctype": "*" + }, + "suggest": { + "ext-ctype": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.28-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Ctype\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Gert de Pagter", + "email": "BackEndTea@gmail.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for ctype functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "ctype", + "polyfill", + "portable" + ], + "support": { + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.28.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-01-26T09:26:14+00:00" + }, + { + "name": "symfony/polyfill-mbstring", + "version": "v1.28.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "42292d99c55abe617799667f454222c54c60e229" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/42292d99c55abe617799667f454222c54c60e229", + "reference": "42292d99c55abe617799667f454222c54c60e229", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "provide": { + "ext-mbstring": "*" + }, + "suggest": { + "ext-mbstring": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.28-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Mbstring\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for the Mbstring extension", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "mbstring", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.28.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-07-28T09:04:16+00:00" + }, + { + "name": "symfony/polyfill-php80", + "version": "v1.28.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php80.git", + "reference": "6caa57379c4aec19c0a12a38b59b26487dcfe4b5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/6caa57379c4aec19c0a12a38b59b26487dcfe4b5", + "reference": "6caa57379c4aec19c0a12a38b59b26487dcfe4b5", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.28-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php80\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ion Bazan", + "email": "ion.bazan@gmail.com" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php80/tree/v1.28.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-01-26T09:26:14+00:00" + }, + { + "name": "vlucas/phpdotenv", + "version": "v5.5.0", + "source": { + "type": "git", + "url": "https://github.com/vlucas/phpdotenv.git", + "reference": "1a7ea2afc49c3ee6d87061f5a233e3a035d0eae7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/1a7ea2afc49c3ee6d87061f5a233e3a035d0eae7", + "reference": "1a7ea2afc49c3ee6d87061f5a233e3a035d0eae7", + "shasum": "" + }, + "require": { + "ext-pcre": "*", + "graham-campbell/result-type": "^1.0.2", + "php": "^7.1.3 || ^8.0", + "phpoption/phpoption": "^1.8", + "symfony/polyfill-ctype": "^1.23", + "symfony/polyfill-mbstring": "^1.23.1", + "symfony/polyfill-php80": "^1.23.1" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.4.1", + "ext-filter": "*", + "phpunit/phpunit": "^7.5.20 || ^8.5.30 || ^9.5.25" + }, + "suggest": { + "ext-filter": "Required to use the boolean validator." + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": true + }, + "branch-alias": { + "dev-master": "5.5-dev" + } + }, + "autoload": { + "psr-4": { + "Dotenv\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Vance Lucas", + "email": "vance@vancelucas.com", + "homepage": "https://github.com/vlucas" + } + ], + "description": "Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.", + "keywords": [ + "dotenv", + "env", + "environment" + ], + "support": { + "issues": "https://github.com/vlucas/phpdotenv/issues", + "source": "https://github.com/vlucas/phpdotenv/tree/v5.5.0" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/vlucas/phpdotenv", + "type": "tidelift" + } + ], + "time": "2022-10-16T01:01:54+00:00" } ], "packages-dev": [], diff --git a/wp-content/themes/player-key/dist/AthleteView.83651240.css b/wp-content/themes/player-key/dist/AthleteView.83651240.css new file mode 100644 index 0000000..df5db2b --- /dev/null +++ b/wp-content/themes/player-key/dist/AthleteView.83651240.css @@ -0,0 +1 @@ +.athlete__data[data-v-acbf1765]{width:400px;margin:0 auto 40px}.athlete__headshot[data-v-acbf1765]{position:relative;top:-40px;display:block;width:200px;height:200px;margin:0 auto;object-fit:cover;object-position:center}.athlete__data-row[data-v-acbf1765]{display:flex;align-items:center;border-bottom:1px solid #ccc}.athlete__data-row[data-v-acbf1765]:last-child{border-bottom:none}.athlete__data-indicator[data-v-acbf1765]{flex-shrink:0;width:50%;padding:4px 8px 4px 0;font-weight:300;font-size:16px;text-align:right}.athlete__data-value[data-v-acbf1765]{flex-shrink:0;width:50%;padding:4px 0 4px 8px;font-weight:700;border-left:1px solid #ccc}.athlete__data-value[data-v-acbf1765] a{color:var(--rich-black);font-weight:400}.athlete__status[data-v-acbf1765]{display:block;width:92px;padding:6px 8px;box-sizing:border-box;font-size:14px;font-weight:400;text-align:center!important;border-radius:50px}.athlete__status[data-v-acbf1765]:first-letter{text-transform:uppercase}.athlete__status--incomplete[data-v-acbf1765],.athlete__status--unpaid[data-v-acbf1765]{color:#000;background-color:#d9d9d94d}.athlete__status--pending[data-v-acbf1765]{color:#001923cc;background-color:#c8fa004d}.athlete__status--paid[data-v-acbf1765],.athlete__status--verified[data-v-acbf1765]{color:var(--rich-black);background-color:var(--fresh-lime)}.athlete__status--canceled[data-v-acbf1765],.athlete__status--rejected[data-v-acbf1765]{color:var(--white);background-color:var(--rich-black)}.athlete__status-link[data-v-acbf1765]{color:var(--rich-black)}.athlete__cta[data-v-acbf1765]{display:block;width:280px;margin:auto}.athlete__back-link[data-v-acbf1765]{position:relative;top:-16px;color:var(--rich-black);font-size:16px} diff --git a/wp-content/themes/player-key/dist/BoardView.07f9c57f.css b/wp-content/themes/player-key/dist/BoardView.07f9c57f.css new file mode 100644 index 0000000..ad0221b --- /dev/null +++ b/wp-content/themes/player-key/dist/BoardView.07f9c57f.css @@ -0,0 +1 @@ +.board-navigation[data-v-c5c16404]{position:relative;top:-60px;background-color:var(--rich-black)}.board-navigation__wrapper[data-v-c5c16404]{display:flex;justify-content:space-between;align-items:center}.board-navigation__user[data-v-c5c16404]{display:none}.board-navigation__user-role[data-v-c5c16404]{position:absolute;top:-28px;left:90%;text-transform:uppercase;font-size:64px;font-weight:900;color:#fff3}.board-navigation__list[data-v-c5c16404]{list-style-type:none;display:flex;justify-content:flex-end;column-gap:16px;margin:0;padding:12px 0}.board-navigation__link[data-v-c5c16404]{color:var(--white);text-decoration:none;text-transform:uppercase;font-size:12px;font-weight:300}.board-navigation__link.router-link-active[data-v-c5c16404]{font-weight:700}@media (min-width: 1024px){.board-navigation[data-v-c5c16404]{top:-100px}.board-navigation__user[data-v-c5c16404]{position:relative;display:block;font-size:16px;font-weight:700;color:var(--white)}.board-navigation__list[data-v-c5c16404]{column-gap:20px}.board-navigation__link[data-v-c5c16404]{font-size:16px}}.hide-file-input[data-v-8d89c8e5]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.file-label[data-v-8d89c8e5]{display:block;margin:0;padding:12px;box-sizing:border-box;font-size:16px;font-family:Roboto,sans-serif;font-weight:400;color:var(--rich-black);background-color:#f5f5f5;cursor:pointer}.form-item-file,.form-item-select{display:block;margin-bottom:20px}.form-item-select .vs__dropdown-toggle{font-size:16px;font-family:Roboto,sans-serif;font-weight:400;font-style:normal;line-height:normal;border:1px solid #a8a8a8;border-radius:0}.form-item-select .vs__search{line-height:2}.payment-info{padding-top:20px;text-align:center}.payment-info__stripe-logo{position:relative;top:13px;display:inline-block;margin-left:4px;width:120px}.payment-info__caption{margin:0 0 28px;font-size:20px}.payment-info__discount{padding-top:40px}.payment-info__discount-note{font-size:16px}.payment-info__discount-form{display:flex;width:70%;flex-wrap:wrap;justify-content:center;column-gap:20px;margin:auto;padding-top:12px}.payment-info__discount-input{-webkit-appearance:none;flex-grow:1;display:block;height:auto;margin:0;padding:8px 12px;box-sizing:border-box;font-size:13px;font-family:Roboto,sans-serif;font-weight:400;font-style:normal;line-height:normal;border:1px solid #a8a8a8;outline:none;transition:border-color}.payment-info__discount-input.success{background-color:#1aff001a}.payment-info__discount-input.error{background-color:#ff00001a}.payment-info__discount-cta{font-size:13px;padding:10px 12px}.payment-info__discount-response{flex-shrink:0;width:100%;margin:0;padding:10px;font-size:12px;text-align:left}.payment-info__discount-response.success{color:#167700}.payment-info__discount-response.error{color:#700}.role-switcher[data-v-a8d9c5cd]{padding-top:20px;margin-bottom:40px}.role-switcher__options[data-v-a8d9c5cd]{position:relative;display:flex;width:120px;margin-bottom:20px;padding:10px 0;justify-content:center;border-radius:50px;background-color:#d9d9d966;cursor:pointer}.role-switcher__options[data-v-a8d9c5cd]:before{content:"";position:absolute;top:0;display:block;width:50%;height:100%;border-radius:50px;background-color:var(--rich-black);transition:all .4s ease}.role-switcher__options.no[data-v-a8d9c5cd]:before{left:0}.role-switcher__options.yes[data-v-a8d9c5cd]:before{left:50%;background-color:var(--fresh-lime)}.role-switcher__option[data-v-a8d9c5cd]{position:relative;flex-shrink:0;display:block;width:50%;border-radius:50px;text-align:center;font-size:12px;color:#7a7a7a;text-transform:uppercase;transition:all .4s ease}.role-switcher__option.active[data-v-a8d9c5cd]{color:var(--white)}.role-switcher__options.yes .role-switcher__option.active[data-v-a8d9c5cd]{color:var(--rich-black)}.role-switcher__caption[data-v-a8d9c5cd]{display:block;margin-bottom:8px;font-size:16px;font-weight:300}.role-switcher__roles[data-v-a8d9c5cd]{list-style-type:none;padding:2px 0 0;margin:0;height:0;overflow:hidden;box-sizing:border-box;transition:height .4s ease}.role-switcher__roles.active[data-v-a8d9c5cd]{height:60px}.role-switcher__role[data-v-a8d9c5cd]{margin-bottom:12px}.role-switcher__role[data-v-a8d9c5cd]:last-child{margin-bottom:0}.role-switcher__label[data-v-a8d9c5cd]{position:relative;display:inline-block;padding-left:32px;font-size:16px;line-height:1;color:#707070;transition:color;cursor:pointer}.role-switcher__label[data-v-a8d9c5cd]:before{content:"";position:absolute;left:0;top:calc(50% - 11px);display:block;width:20px;height:20px;border:1px solid #707070;transition:border .3s ease}.role-switcher__label[data-v-a8d9c5cd]:after{content:"";position:absolute;left:4px;top:calc(50% - 7px);display:block;width:14px;height:14px;background-color:var(--rich-black);opacity:0;transition:opacity .3s ease}.role-switcher__input[data-v-a8d9c5cd]{display:none}.role-switcher__input:checked+.role-switcher__label[data-v-a8d9c5cd]{color:var(--rich-black)}.role-switcher__input:checked+.role-switcher__label[data-v-a8d9c5cd]:before{border:1px solid var(--rich-black)}.role-switcher__input:checked+.role-switcher__label[data-v-a8d9c5cd]:after{opacity:1}.role-switcher__input:disabled+.role-switcher__label[data-v-a8d9c5cd]{opacity:.6;pointer-events:none}.notifications{margin-bottom:40px}.notifications__wrapper{position:relative;width:720px}.notifications__mark-read-button,.notifications__remove-all-button{padding:10px;font-size:12px;font-weight:300}.notifications__wrapper--new .notifications__mark-read-button{position:absolute;top:0;right:0}.notifications__wrapper--all .notifications__actions{position:relative;top:-48px;display:flex;align-items:center;justify-content:center;column-gap:20px}.notifications__icon{flex-shrink:0;display:block;width:20px;height:20px;margin-right:12px}#icons_Q2{fill:red}.notifications__list{list-style-type:none;margin:0;padding:0}.notifications__item{position:relative;display:flex;align-items:center;margin:0 0 12px;padding:12px 20px;font-size:16px;box-sizing:border-box;border-radius:8px;border:1px solid #e1e1e1}.notifications__new-label{position:absolute;left:-20px;top:0;display:block;width:24px;padding:4px;border-radius:20px;font-size:10px;text-align:center;color:var(--rich-black);background-color:var(--fresh-lime)}.board__account-name[data-v-6ac1c23a]{position:relative;top:-60px;margin:0 0 40px;text-align:center;font-size:52px;font-weight:900}.board__entity[data-v-6ac1c23a]{flex-shrink:1;position:relative;width:200px;margin:0 auto 28px;height:300px;padding:24px 20px;box-sizing:border-box;border-radius:20px;background-color:var(--fresh-lime);overflow:hidden}.board__entity[data-v-6ac1c23a] a{color:inherit;text-decoration:none;transition:opacity .4s ease}.board__entity[data-v-6ac1c23a] a:hover{opacity:.7}.board__entity-title[data-v-6ac1c23a]{display:block;text-align:left;font-weight:300;text-transform:uppercase}.board__entity-title span[data-v-6ac1c23a]{position:absolute;top:-8px;left:-6px;font-weight:900;font-size:72px;text-transform:uppercase;color:var(--rich-black);opacity:.05;transition:all .4s ease}.board__entity-count[data-v-6ac1c23a]{display:block;padding-top:40px;font-size:100px;font-weight:900;text-align:center}.board__account-edit[data-v-6ac1c23a]{-webkit-appearance:none;position:relative;top:-32px;margin:0;padding:0 0 1px;font-family:Roboto,sans-serif;font-size:15px;font-weight:400;border:none;color:#5b5b5b;background-color:#0000;border-bottom:1px dashed #5b5b5b;cursor:pointer}.board__roles-toggle[data-v-6ac1c23a]{position:relative;top:-72px;display:flex;width:220px;margin:auto;padding:10px 0;justify-content:center;border-radius:50px;background-color:#d9d9d966;cursor:pointer}.board__roles-toggle[data-v-6ac1c23a]:before{content:"";position:absolute;top:0;display:block;width:50%;height:100%;border-radius:50px;background-color:var(--rich-black);transition:all .4s ease}.board__roles-toggle.coach[data-v-6ac1c23a]:before{left:0}.board__roles-toggle.parent[data-v-6ac1c23a]:before{left:50%}.board__role[data-v-6ac1c23a]{position:relative;flex-shrink:0;display:block;width:50%;border-radius:50px;text-align:center;font-size:12px;color:#7a7a7a;text-transform:uppercase;transition:all .4s ease}.board__role.active[data-v-6ac1c23a]{color:#fff}@media (min-width: 1024px){.board__entities[data-v-6ac1c23a]{display:flex;column-gap:60px;justify-content:center}.board__entity[data-v-6ac1c23a]{margin:0}} diff --git a/wp-content/themes/player-key/dist/ErrorList.6dfe5613.css b/wp-content/themes/player-key/dist/ErrorList.6dfe5613.css new file mode 100644 index 0000000..4c09070 --- /dev/null +++ b/wp-content/themes/player-key/dist/ErrorList.6dfe5613.css @@ -0,0 +1 @@ +.error-list[data-v-ead1de59]{list-style-type:none;margin:0 0 40px;padding:20px;color:#700;background-color:#ff00001a}.error-list__item[data-v-ead1de59]{margin-bottom:12px}.error-list__item[data-v-ead1de59]:last-child{margin-bottom:0}.error-list__item[data-v-ead1de59] a{color:#700!important} diff --git a/wp-content/themes/player-key/dist/FormItemText.ae510ac9.css b/wp-content/themes/player-key/dist/FormItemText.ae510ac9.css new file mode 100644 index 0000000..94bad40 --- /dev/null +++ b/wp-content/themes/player-key/dist/FormItemText.ae510ac9.css @@ -0,0 +1 @@ +.form-item-text[data-v-525559da]{display:block;margin-bottom:20px}.form-item-text--full[data-v-525559da]{grid-column-start:1;grid-column-end:3}.form-item-text__label[data-v-525559da]{display:block;margin-bottom:8px;font-size:16px;font-weight:300}.form-item-text__label sup[data-v-525559da]{font-weight:700;color:#3a0000}.form-item-text__field[data-v-525559da]{-webkit-appearance:none;display:block;width:100%;height:auto;margin:0;padding:12px;box-sizing:border-box;font-size:16px;font-family:Roboto,sans-serif;font-weight:400;font-style:normal;line-height:normal;border:1px solid #a8a8a8;outline:none;transition:border-color}.form-item-text__field[data-v-525559da]:focus{border-color:var(--rich-black)}.form-item-text__note[data-v-525559da]{display:block;padding-top:4px;font-size:14px;color:#737373} diff --git a/wp-content/themes/player-key/dist/Heading.ff9a1217.css b/wp-content/themes/player-key/dist/Heading.ff9a1217.css new file mode 100644 index 0000000..06ebb8b --- /dev/null +++ b/wp-content/themes/player-key/dist/Heading.ff9a1217.css @@ -0,0 +1 @@ +.heading[data-v-ee52837c]{margin-top:0;text-align:center;font-weight:300;text-transform:uppercase}.heading--1[data-v-ee52837c]{font-size:44px;margin-bottom:60px}.heading--center[data-v-ee52837c]{text-align:center}.heading--left[data-v-ee52837c]{text-align:left}.heading--right[data-v-ee52837c]{text-align:right}@media (min-width: 1024px){.heading--1[data-v-ee52837c]{font-size:60px;margin-bottom:72px}} diff --git a/wp-content/themes/player-key/dist/Loader.72459415.css b/wp-content/themes/player-key/dist/Loader.72459415.css new file mode 100644 index 0000000..a50f74a --- /dev/null +++ b/wp-content/themes/player-key/dist/Loader.72459415.css @@ -0,0 +1 @@ +.loader[data-v-04127369]{position:absolute;top:0;left:0;z-index:10;display:flex;justify-content:center;align-items:center;width:100%;height:100%;background-color:#ffffffb3;opacity:0;transition:all .3s ease;pointer-events:none}.loader.active[data-v-04127369]{opacity:1;pointer-events:auto}.loader__layouts[data-v-04127369]{display:inline-block;position:relative;width:80px;height:80px}.loader__layouts div[data-v-04127369]{display:inline-block;position:absolute;left:8px;width:16px;background:var(--rich-black);animation:loader__layouts-04127369 1.2s cubic-bezier(0,.5,.5,1) infinite}.loader__layouts div[data-v-04127369]:nth-child(1){left:8px;animation-delay:-.24s}.loader__layouts div[data-v-04127369]:nth-child(2){left:32px;animation-delay:-.12s}.loader__layouts div[data-v-04127369]:nth-child(3){left:56px;animation-delay:0}@keyframes loader__layouts-04127369{0%{top:8px;height:64px}50%,to{top:24px;height:32px}} diff --git a/wp-content/themes/player-key/dist/MessageList.530be207.css b/wp-content/themes/player-key/dist/MessageList.530be207.css new file mode 100644 index 0000000..4e0bb27 --- /dev/null +++ b/wp-content/themes/player-key/dist/MessageList.530be207.css @@ -0,0 +1 @@ +.message-list[data-v-e33d7482]{list-style-type:none;margin:0 0 40px;padding:20px}.message-list--error[data-v-e33d7482]{color:#700;background-color:#ff00001a}.message-list--success[data-v-e33d7482]{color:#167700;background-color:#1aff001a}.message-list__item[data-v-e33d7482]{margin-bottom:12px}.message-list__item[data-v-e33d7482]:last-child{margin-bottom:0}.message-list__item[data-v-e33d7482] a{color:inherit!important} diff --git a/wp-content/themes/player-key/dist/PageView.b60cc180.css b/wp-content/themes/player-key/dist/PageView.b60cc180.css new file mode 100644 index 0000000..68a9ba6 --- /dev/null +++ b/wp-content/themes/player-key/dist/PageView.b60cc180.css @@ -0,0 +1 @@ +.article__wrapper[data-v-8b782907]{text-align:left}.article__content[data-v-8b782907] a{color:inherit}@media (min-width: 1280px){.article__wrapper[data-v-8b782907]{max-width:900px}} diff --git a/wp-content/themes/player-key/dist/SignUpRoleView.19ca1d3c.css b/wp-content/themes/player-key/dist/SignUpRoleView.19ca1d3c.css new file mode 100644 index 0000000..b268f97 --- /dev/null +++ b/wp-content/themes/player-key/dist/SignUpRoleView.19ca1d3c.css @@ -0,0 +1 @@ +.form-holder__heading-role[data-v-468b2cc1]{font-weight:900} diff --git a/wp-content/themes/player-key/dist/SignUpView.d3a7e306.css b/wp-content/themes/player-key/dist/SignUpView.d3a7e306.css new file mode 100644 index 0000000..adb767a --- /dev/null +++ b/wp-content/themes/player-key/dist/SignUpView.d3a7e306.css @@ -0,0 +1 @@ +.register-roles{display:flex;flex-wrap:wrap;justify-content:center;column-gap:100px;margin-bottom:40px}.register-roles__caption{flex-shrink:1;position:relative;top:-68px;display:block;width:100%;margin:0 0 40px;font-size:18px;font-weight:300;text-align:center;text-transform:uppercase}.register-roles__caption:after{content:"";position:absolute;top:28px;left:calc(50% - 6px);display:block;width:12px;height:12px;transform:rotate(45deg);border-right:4px solid var(--fresh-lime);border-bottom:4px solid var(--fresh-lime)}.register-roles__item{position:relative;padding:40px 32px;box-sizing:border-box;cursor:pointer;transition:all .4s ease}.register-roles__item-heading{transition:all .4s ease}.register-roles__item-role{position:absolute;top:-20px;left:0;font-weight:900;font-size:80px;text-transform:uppercase;color:var(--rich-black);opacity:.05;transition:all .4s ease}.register-roles__item--active .register-roles__item-role{color:var(--rich-black);opacity:.9;transform:translateY(8px)}.register-roles__item--active .register-roles__item-heading{transform:translateY(24px);opacity:0}.register-roles__item--active .register-roles__benefits{color:var(--rich-black);transform:translate(-20px)}.register-roles__benefits{list-style-type:none;margin:0;padding:0;font-size:16px;color:#a2a2a2;transition:all .4s ease}.register-roles__benefit{margin:0 0 8px}.register-roles__benefit:last-child{margin-bottom:0}.register-roles__actions{display:flex;justify-content:center}.register-roles__links{width:900px;margin:auto;text-align:right;font-size:14px}.register-roles__links a{color:var(--rich-black)} diff --git a/wp-content/themes/player-key/dist/TeamView.af55d5cb.css b/wp-content/themes/player-key/dist/TeamView.af55d5cb.css new file mode 100644 index 0000000..21598bc --- /dev/null +++ b/wp-content/themes/player-key/dist/TeamView.af55d5cb.css @@ -0,0 +1 @@ +.team__athletes[data-v-aa8d68ec]{list-style-type:none;width:900px;margin:0 auto 40px;padding:0;display:grid;grid-template-columns:1fr 1fr 1fr}.team__athletes--1[data-v-aa8d68ec] .team__athlete:last-child{border-bottom:none}.team__athletes--2[data-v-aa8d68ec] .team__athlete:nth-last-child(-n+2){border-bottom:none}.team__athletes--3[data-v-aa8d68ec] .team__athlete:nth-last-child(-n+3){border-bottom:none}.team__athlete[data-v-aa8d68ec]{padding:40px;box-sizing:border-box;border-right:1px solid #ccc;border-bottom:1px solid #ccc;text-align:center}.team__athlete[data-v-aa8d68ec]:nth-child(3n){border-right:none}.team__athlete[data-v-aa8d68ec] a{color:inherit;text-decoration:none}.team__athlete-headshot[data-v-aa8d68ec]{display:block;width:120px;height:120px;margin:0 auto 12px}.team__athlete-birthday[data-v-aa8d68ec],.team__athlete-parent[data-v-aa8d68ec]{display:block}.team__athlete-current-grade[data-v-aa8d68ec]{display:block;font-size:16px;font-weight:500}.team__printout[data-v-aa8d68ec]{display:block;width:140px;margin:auto} diff --git a/wp-content/themes/player-key/dist/_chunk.038a592b.js b/wp-content/themes/player-key/dist/_chunk.038a592b.js new file mode 100644 index 0000000..a5dcfa2 --- /dev/null +++ b/wp-content/themes/player-key/dist/_chunk.038a592b.js @@ -0,0 +1,18 @@ +import{c as Tt,a as Vo}from"./_chunk.23102255.js";import{_ as Ha}from"./_chunk.40950486.js";import"./main.c6ab2dd8.js";var Gt=function(a){return a&&a.Math===Math&&a},U=Gt(typeof globalThis=="object"&&globalThis)||Gt(typeof window=="object"&&window)||Gt(typeof self=="object"&&self)||Gt(typeof Tt=="object"&&Tt)||function(){return this}()||Tt||Function("return this")(),ot={},L=function(a){try{return!!a()}catch{return!0}},Nl=L,ce=!Nl(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Ml=L,br=!Ml(function(){var a=function(){}.bind();return typeof a!="function"||a.hasOwnProperty("prototype")}),_l=br,Ht=Function.prototype.call,Y=_l?Ht.bind(Ht):function(){return Ht.apply(Ht,arguments)},Lo={},ko={}.propertyIsEnumerable,Bo=Object.getOwnPropertyDescriptor,Dl=Bo&&!ko.call({1:2},1);Lo.f=Dl?function(e){var t=Bo(this,e);return!!t&&t.enumerable}:ko;var xr=function(a,e){return{enumerable:!(a&1),configurable:!(a&2),writable:!(a&4),value:e}},Fo=br,jo=Function.prototype,Ya=jo.call,Vl=Fo&&jo.bind.bind(Ya,Ya),k=Fo?Vl:function(a){return function(){return Ya.apply(a,arguments)}},Uo=k,Ll=Uo({}.toString),kl=Uo("".slice),Fe=function(a){return kl(Ll(a),8,-1)},Bl=k,Fl=L,jl=Fe,Zr=Object,Ul=Bl("".split),zo=Fl(function(){return!Zr("z").propertyIsEnumerable(0)})?function(a){return jl(a)==="String"?Ul(a,""):Zr(a)}:Zr,je=function(a){return a==null},zl=je,Gl=TypeError,ge=function(a){if(zl(a))throw Gl("Can't call method on "+a);return a},Hl=zo,Yl=ge,wt=function(a){return Hl(Yl(a))},Xa=typeof document=="object"&&document.all,Xl=typeof Xa>"u"&&Xa!==void 0,Go={all:Xa,IS_HTMLDDA:Xl},Ho=Go,Wl=Ho.all,D=Ho.IS_HTMLDDA?function(a){return typeof a=="function"||a===Wl}:function(a){return typeof a=="function"},mn=D,Yo=Go,ql=Yo.all,Te=Yo.IS_HTMLDDA?function(a){return typeof a=="object"?a!==null:mn(a)||a===ql}:function(a){return typeof a=="object"?a!==null:mn(a)},Jr=U,Ql=D,Kl=function(a){return Ql(a)?a:void 0},Ue=function(a,e){return arguments.length<2?Kl(Jr[a]):Jr[a]&&Jr[a][e]},Zl=k,Tr=Zl({}.isPrototypeOf),Sr=typeof navigator<"u"&&String(navigator.userAgent)||"",Xo=U,ea=Sr,bn=Xo.process,xn=Xo.Deno,Tn=bn&&bn.versions||xn&&xn.version,Sn=Tn&&Tn.v8,ue,cr;Sn&&(ue=Sn.split("."),cr=ue[0]>0&&ue[0]<4?1:+(ue[0]+ue[1]));!cr&&ea&&(ue=ea.match(/Edge\/(\d+)/),(!ue||ue[1]>=74)&&(ue=ea.match(/Chrome\/(\d+)/),ue&&(cr=+ue[1])));var Oi=cr,On=Oi,Jl=L,eh=U,th=eh.String,Wo=!!Object.getOwnPropertySymbols&&!Jl(function(){var a=Symbol("symbol detection");return!th(a)||!(Object(a)instanceof Symbol)||!Symbol.sham&&On&&On<41}),rh=Wo,qo=rh&&!Symbol.sham&&typeof Symbol.iterator=="symbol",ah=Ue,ih=D,nh=Tr,sh=qo,oh=Object,Qo=sh?function(a){return typeof a=="symbol"}:function(a){var e=ah("Symbol");return ih(e)&&nh(e.prototype,oh(a))},uh=String,Or=function(a){try{return uh(a)}catch{return"Object"}},lh=D,hh=Or,vh=TypeError,Se=function(a){if(lh(a))return a;throw vh(hh(a)+" is not a function")},fh=Se,ch=je,ut=function(a,e){var t=a[e];return ch(t)?void 0:fh(t)},ta=Y,ra=D,aa=Te,gh=TypeError,dh=function(a,e){var t,r;if(e==="string"&&ra(t=a.toString)&&!aa(r=ta(t,a))||ra(t=a.valueOf)&&!aa(r=ta(t,a))||e!=="string"&&ra(t=a.toString)&&!aa(r=ta(t,a)))return r;throw gh("Can't convert object to primitive value")},Ko={exports:{}},En=U,ph=Object.defineProperty,Ei=function(a,e){try{ph(En,a,{value:e,configurable:!0,writable:!0})}catch{En[a]=e}return e},yh=U,mh=Ei,$n="__core-js_shared__",bh=yh[$n]||mh($n,{}),$i=bh,Cn=$i;(Ko.exports=function(a,e){return Cn[a]||(Cn[a]=e!==void 0?e:{})})("versions",[]).push({version:"3.32.2",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.2/LICENSE",source:"https://github.com/zloirock/core-js"});var Ci=Ko.exports,xh=ge,Th=Object,Er=function(a){return Th(xh(a))},Sh=k,Oh=Er,Eh=Sh({}.hasOwnProperty),le=Object.hasOwn||function(e,t){return Eh(Oh(e),t)},$h=k,Ch=0,wh=Math.random(),Ah=$h(1 .toString),Zo=function(a){return"Symbol("+(a===void 0?"":a)+")_"+Ah(++Ch+wh,36)},Ph=U,Rh=Ci,wn=le,Ih=Zo,Nh=Wo,Mh=qo,Je=Ph.Symbol,ia=Rh("wks"),_h=Mh?Je.for||Je:Je&&Je.withoutSetter||Ih,G=function(a){return wn(ia,a)||(ia[a]=Nh&&wn(Je,a)?Je[a]:_h("Symbol."+a)),ia[a]},Dh=Y,An=Te,Pn=Qo,Vh=ut,Lh=dh,kh=G,Bh=TypeError,Fh=kh("toPrimitive"),jh=function(a,e){if(!An(a)||Pn(a))return a;var t=Vh(a,Fh),r;if(t){if(e===void 0&&(e="default"),r=Dh(t,a,e),!An(r)||Pn(r))return r;throw Bh("Can't convert object to primitive value")}return e===void 0&&(e="number"),Lh(a,e)},Uh=jh,zh=Qo,wi=function(a){var e=Uh(a,"string");return zh(e)?e:e+""},Gh=U,Rn=Te,Wa=Gh.document,Hh=Rn(Wa)&&Rn(Wa.createElement),$r=function(a){return Hh?Wa.createElement(a):{}},Yh=ce,Xh=L,Wh=$r,Jo=!Yh&&!Xh(function(){return Object.defineProperty(Wh("div"),"a",{get:function(){return 7}}).a!==7}),qh=ce,Qh=Y,Kh=Lo,Zh=xr,Jh=wt,ev=wi,tv=le,rv=Jo,In=Object.getOwnPropertyDescriptor;ot.f=qh?In:function(e,t){if(e=Jh(e),t=ev(t),rv)try{return In(e,t)}catch{}if(tv(e,t))return Zh(!Qh(Kh.f,e,t),e[t])};var de={},av=ce,iv=L,eu=av&&iv(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),nv=Te,sv=String,ov=TypeError,K=function(a){if(nv(a))return a;throw ov(sv(a)+" is not an object")},uv=ce,lv=Jo,hv=eu,Yt=K,Nn=wi,vv=TypeError,na=Object.defineProperty,fv=Object.getOwnPropertyDescriptor,sa="enumerable",oa="configurable",ua="writable";de.f=uv?hv?function(e,t,r){if(Yt(e),t=Nn(t),Yt(r),typeof e=="function"&&t==="prototype"&&"value"in r&&ua in r&&!r[ua]){var i=fv(e,t);i&&i[ua]&&(e[t]=r.value,r={configurable:oa in r?r[oa]:i[oa],enumerable:sa in r?r[sa]:i[sa],writable:!1})}return na(e,t,r)}:na:function(e,t,r){if(Yt(e),t=Nn(t),Yt(r),lv)try{return na(e,t,r)}catch{}if("get"in r||"set"in r)throw vv("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var cv=ce,gv=de,dv=xr,At=cv?function(a,e,t){return gv.f(a,e,dv(1,t))}:function(a,e,t){return a[e]=t,a},tu={exports:{}},qa=ce,pv=le,ru=Function.prototype,yv=qa&&Object.getOwnPropertyDescriptor,Ai=pv(ru,"name"),mv=Ai&&function(){}.name==="something",bv=Ai&&(!qa||qa&&yv(ru,"name").configurable),Cr={EXISTS:Ai,PROPER:mv,CONFIGURABLE:bv},xv=k,Tv=D,Qa=$i,Sv=xv(Function.toString);Tv(Qa.inspectSource)||(Qa.inspectSource=function(a){return Sv(a)});var Pi=Qa.inspectSource,Ov=U,Ev=D,Mn=Ov.WeakMap,$v=Ev(Mn)&&/native code/.test(String(Mn)),Cv=Ci,wv=Zo,_n=Cv("keys"),Ri=function(a){return _n[a]||(_n[a]=wv(a))},Ii={},Av=$v,au=U,Pv=Te,Rv=At,la=le,ha=$i,Iv=Ri,Nv=Ii,Dn="Object already initialized",Ka=au.TypeError,Mv=au.WeakMap,gr,Et,dr,_v=function(a){return dr(a)?Et(a):gr(a,{})},Dv=function(a){return function(e){var t;if(!Pv(e)||(t=Et(e)).type!==a)throw Ka("Incompatible receiver, "+a+" required");return t}};if(Av||ha.state){var fe=ha.state||(ha.state=new Mv);fe.get=fe.get,fe.has=fe.has,fe.set=fe.set,gr=function(a,e){if(fe.has(a))throw Ka(Dn);return e.facade=a,fe.set(a,e),e},Et=function(a){return fe.get(a)||{}},dr=function(a){return fe.has(a)}}else{var Xe=Iv("state");Nv[Xe]=!0,gr=function(a,e){if(la(a,Xe))throw Ka(Dn);return e.facade=a,Rv(a,Xe,e),e},Et=function(a){return la(a,Xe)?a[Xe]:{}},dr=function(a){return la(a,Xe)}}var wr={set:gr,get:Et,has:dr,enforce:_v,getterFor:Dv},Ni=k,Vv=L,Lv=D,Xt=le,Za=ce,kv=Cr.CONFIGURABLE,Bv=Pi,iu=wr,Fv=iu.enforce,jv=iu.get,Vn=String,or=Object.defineProperty,Uv=Ni("".slice),zv=Ni("".replace),Gv=Ni([].join),Hv=Za&&!Vv(function(){return or(function(){},"length",{value:8}).length!==8}),Yv=String(String).split("String"),Xv=tu.exports=function(a,e,t){Uv(Vn(e),0,7)==="Symbol("&&(e="["+zv(Vn(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),t&&t.getter&&(e="get "+e),t&&t.setter&&(e="set "+e),(!Xt(a,"name")||kv&&a.name!==e)&&(Za?or(a,"name",{value:e,configurable:!0}):a.name=e),Hv&&t&&Xt(t,"arity")&&a.length!==t.arity&&or(a,"length",{value:t.arity});try{t&&Xt(t,"constructor")&&t.constructor?Za&&or(a,"prototype",{writable:!1}):a.prototype&&(a.prototype=void 0)}catch{}var r=Fv(a);return Xt(r,"source")||(r.source=Gv(Yv,typeof e=="string"?e:"")),a};Function.prototype.toString=Xv(function(){return Lv(this)&&jv(this).source||Bv(this)},"toString");var nu=tu.exports,Wv=D,qv=de,Qv=nu,Kv=Ei,ze=function(a,e,t,r){r||(r={});var i=r.enumerable,n=r.name!==void 0?r.name:e;if(Wv(t)&&Qv(t,n,r),r.global)i?a[e]=t:Kv(e,t);else{try{r.unsafe?a[e]&&(i=!0):delete a[e]}catch{}i?a[e]=t:qv.f(a,e,{value:t,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return a},su={},Zv=Math.ceil,Jv=Math.floor,ef=Math.trunc||function(e){var t=+e;return(t>0?Jv:Zv)(t)},tf=ef,Ar=function(a){var e=+a;return e!==e||e===0?0:tf(e)},rf=Ar,af=Math.max,nf=Math.min,ou=function(a,e){var t=rf(a);return t<0?af(t+e,0):nf(t,e)},sf=Ar,of=Math.min,lt=function(a){return a>0?of(sf(a),9007199254740991):0},uf=lt,Pr=function(a){return uf(a.length)},lf=wt,hf=ou,vf=Pr,Ln=function(a){return function(e,t,r){var i=lf(e),n=vf(i),o=hf(r,n),s;if(a&&t!==t){for(;n>o;)if(s=i[o++],s!==s)return!0}else for(;n>o;o++)if((a||o in i)&&i[o]===t)return a||o||0;return!a&&-1}},uu={includes:Ln(!0),indexOf:Ln(!1)},ff=k,va=le,cf=wt,gf=uu.indexOf,df=Ii,kn=ff([].push),lu=function(a,e){var t=cf(a),r=0,i=[],n;for(n in t)!va(df,n)&&va(t,n)&&kn(i,n);for(;e.length>r;)va(t,n=e[r++])&&(~gf(i,n)||kn(i,n));return i},Mi=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],pf=lu,yf=Mi,mf=yf.concat("length","prototype");su.f=Object.getOwnPropertyNames||function(e){return pf(e,mf)};var hu={};hu.f=Object.getOwnPropertySymbols;var bf=Ue,xf=k,Tf=su,Sf=hu,Of=K,Ef=xf([].concat),$f=bf("Reflect","ownKeys")||function(e){var t=Tf.f(Of(e)),r=Sf.f;return r?Ef(t,r(e)):t},Bn=le,Cf=$f,wf=ot,Af=de,Pf=function(a,e,t){for(var r=Cf(e),i=Af.f,n=wf.f,o=0;of;f++)if(v=y(a[f]),v&&ds(ys,v))return v;return new hr(!1)}l=wd(a,h)}for(d=n?a.next:l.next;!(g=Sd(d,l)).done;){try{v=y(g.value)}catch(x){ps(l,"throw",x)}if(typeof v=="object"&&v&&ds(ys,v))return v}return new hr(!1)},Rd=G,Uu=Rd("iterator"),zu=!1;try{var Id=0,ms={next:function(){return{done:!!Id++}},return:function(){zu=!0}};ms[Uu]=function(){return this},Array.from(ms,function(){throw 2})}catch{}var Nd=function(a,e){try{if(!e&&!zu)return!1}catch{return!1}var t=!1;try{var r={};r[Uu]=function(){return{next:function(){return{done:t=!0}}}},a(r)}catch{}return t},Md=Rr,_d=Nd,Dd=Nt.CONSTRUCTOR,Gu=Dd||!_d(function(a){Md.all(a).then(void 0,function(){})}),Vd=ee,Ld=Y,kd=Se,Bd=ht,Fd=Fi,jd=ju,Ud=Gu;Vd({target:"Promise",stat:!0,forced:Ud},{all:function(e){var t=this,r=Bd.f(t),i=r.resolve,n=r.reject,o=Fd(function(){var s=kd(t.resolve),u=[],l=0,h=1;jd(e,function(f){var c=l++,v=!1;h++,Ld(s,t,f).then(function(d){v||(v=!0,u[c]=d,--h||i(u))},n)}),--h||i(u)});return o.error&&n(o.value),r.promise}});var zd=ee,Gd=Nt.CONSTRUCTOR,si=Rr,Hd=Ue,Yd=D,Xd=ze,bs=si&&si.prototype;zd({target:"Promise",proto:!0,forced:Gd,real:!0},{catch:function(a){return this.then(void 0,a)}});if(Yd(si)){var xs=Hd("Promise").prototype.catch;bs.catch!==xs&&Xd(bs,"catch",xs,{unsafe:!0})}var Wd=ee,qd=Y,Qd=Se,Kd=ht,Zd=Fi,Jd=ju,ep=Gu;Wd({target:"Promise",stat:!0,forced:ep},{race:function(e){var t=this,r=Kd.f(t),i=r.reject,n=Zd(function(){var o=Qd(t.resolve);Jd(e,function(s){qd(o,t,s).then(r.resolve,i)})});return n.error&&i(n.value),r.promise}});var tp=ee,rp=Y,ap=ht,ip=Nt.CONSTRUCTOR;tp({target:"Promise",stat:!0,forced:ip},{reject:function(e){var t=ap.f(this);return rp(t.reject,void 0,e),t.promise}});var np=K,sp=Te,op=ht,up=function(a,e){if(np(a),sp(e)&&e.constructor===a)return e;var t=op.f(a),r=t.resolve;return r(e),t.promise},lp=ee,hp=Ue,vp=Nt.CONSTRUCTOR,fp=up;hp("Promise");lp({target:"Promise",stat:!0,forced:vp},{resolve:function(e){return fp(this,e)}});function Ts(a,e,t,r,i,n,o){try{var s=a[n](o),u=s.value}catch(l){t(l);return}s.done?e(u):Promise.resolve(u).then(r,i)}function xe(a){return function(){var e=this,t=arguments;return new Promise(function(r,i){var n=a.apply(e,t);function o(u){Ts(n,r,i,o,s,"next",u)}function s(u){Ts(n,r,i,o,s,"throw",u)}o(void 0)})}}var cp=Di,gp=String,pe=function(a){if(cp(a)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return gp(a)},dp=K,Hu=function(){var a=dp(this),e="";return a.hasIndices&&(e+="d"),a.global&&(e+="g"),a.ignoreCase&&(e+="i"),a.multiline&&(e+="m"),a.dotAll&&(e+="s"),a.unicode&&(e+="u"),a.unicodeSets&&(e+="v"),a.sticky&&(e+="y"),e},Hi=L,pp=U,Yi=pp.RegExp,Xi=Hi(function(){var a=Yi("a","y");return a.lastIndex=2,a.exec("abcd")!==null}),yp=Xi||Hi(function(){return!Yi("a","y").sticky}),mp=Xi||Hi(function(){var a=Yi("^r","gy");return a.lastIndex=2,a.exec("str")!==null}),Yu={BROKEN_CARET:mp,MISSED_STICKY:yp,UNSUPPORTED_Y:Xi},Xu={},bp=lu,xp=Mi,Tp=Object.keys||function(e){return bp(e,xp)},Sp=ce,Op=eu,Ep=de,$p=K,Cp=wt,wp=Tp;Xu.f=Sp&&!Op?Object.defineProperties:function(e,t){$p(e);for(var r=Cp(t),i=wp(t),n=i.length,o=0,s;n>o;)Ep.f(e,s=i[o++],r[s]);return e};var Ap=K,Pp=Xu,Ss=Mi,Rp=Ii,Ip=xu,Np=$r,Mp=Ri,Os=">",Es="<",oi="prototype",ui="script",Wu=Mp("IE_PROTO"),Ea=function(){},qu=function(a){return Es+ui+Os+a+Es+"/"+ui+Os},$s=function(a){a.write(qu("")),a.close();var e=a.parentWindow.Object;return a=null,e},_p=function(){var a=Np("iframe"),e="java"+ui+":",t;return a.style.display="none",Ip.appendChild(a),a.src=String(e),t=a.contentWindow.document,t.open(),t.write(qu("document.F=Object")),t.close(),t.F},er,vr=function(){try{er=new ActiveXObject("htmlfile")}catch{}vr=typeof document<"u"?document.domain&&er?$s(er):_p():$s(er);for(var a=Ss.length;a--;)delete vr[oi][Ss[a]];return vr()};Rp[Wu]=!0;var Wi=Object.create||function(e,t){var r;return e!==null?(Ea[oi]=Ap(e),r=new Ea,Ea[oi]=null,r[Wu]=e):r=vr(),t===void 0?r:Pp.f(r,t)},Dp=L,Vp=U,Lp=Vp.RegExp,kp=Dp(function(){var a=Lp(".","s");return!(a.dotAll&&a.exec(` +`)&&a.flags==="s")}),Bp=L,Fp=U,jp=Fp.RegExp,Up=Bp(function(){var a=jp("(?b)","g");return a.exec("b").groups.a!=="b"||"b".replace(a,"$c")!=="bc"}),tt=Y,Nr=k,zp=pe,Gp=Hu,Hp=Yu,Yp=Ci,Xp=Wi,Wp=wr.get,qp=kp,Qp=Up,Kp=Yp("native-string-replace",String.prototype.replace),mr=RegExp.prototype.exec,li=mr,Zp=Nr("".charAt),Jp=Nr("".indexOf),ey=Nr("".replace),$a=Nr("".slice),hi=function(){var a=/a/,e=/b*/g;return tt(mr,a,"a"),tt(mr,e,"a"),a.lastIndex!==0||e.lastIndex!==0}(),Qu=Hp.BROKEN_CARET,vi=/()??/.exec("")[1]!==void 0,ty=hi||vi||Qu||qp||Qp;ty&&(li=function(e){var t=this,r=Wp(t),i=zp(e),n=r.raw,o,s,u,l,h,f,c;if(n)return n.lastIndex=t.lastIndex,o=tt(li,n,i),t.lastIndex=n.lastIndex,o;var v=r.groups,d=Qu&&t.sticky,g=tt(Gp,t),p=t.source,y=0,x=i;if(d&&(g=ey(g,"y",""),Jp(g,"g")===-1&&(g+="g"),x=$a(i,t.lastIndex),t.lastIndex>0&&(!t.multiline||t.multiline&&Zp(i,t.lastIndex-1)!==` +`)&&(p="(?: "+p+")",x=" "+x,y++),s=new RegExp("^(?:"+p+")",g)),vi&&(s=new RegExp("^"+p+"$(?!\\s)",g)),hi&&(u=t.lastIndex),l=tt(mr,d?s:t,x),d?l?(l.input=$a(l.input,y),l[0]=$a(l[0],y),l.index=t.lastIndex,t.lastIndex+=l[0].length):t.lastIndex=0:hi&&l&&(t.lastIndex=t.global?l.index+l[0].length:u),vi&&l&&l.length>1&&tt(Kp,l[0],s,function(){for(h=1;h=n?a?"":void 0:(o=Rs(r,i),o<55296||o>56319||i+1===n||(s=Rs(r,i+1))<56320||s>57343?a?ly(r,i):o:a?hy(r,i,i+2):(o-55296<<10)+(s-56320)+65536)}},vy={codeAt:Is(!1),charAt:Is(!0)},fy=vy.charAt,Ki=function(a,e,t){return e+(t?fy(a,e).length:1)},Ns=Y,cy=K,gy=D,dy=Fe,py=Mr,yy=TypeError,Zi=function(a,e){var t=a.exec;if(gy(t)){var r=Ns(t,a,e);return r!==null&&cy(r),r}if(dy(a)==="RegExp")return Ns(py,a,e);throw yy("RegExp#exec called on incompatible receiver")},my=Y,by=qi,xy=K,Ty=je,Sy=lt,wa=pe,Oy=ge,Ey=ut,$y=Ki,Ms=Zi;by("match",function(a,e,t){return[function(i){var n=Oy(this),o=Ty(i)?void 0:Ey(i,a);return o?my(o,i,n):new RegExp(i)[a](wa(n))},function(r){var i=xy(this),n=wa(r),o=t(e,i,n);if(o.done)return o.value;if(!i.global)return Ms(i,n);var s=i.unicode;i.lastIndex=0;for(var u=[],l=0,h;(h=Ms(i,n))!==null;){var f=wa(h[0]);u[l]=f,f===""&&(i.lastIndex=$y(n,Sy(i.lastIndex),s)),l++}return l===0?null:u}]});var Ji=k,Cy=Er,wy=Math.floor,Aa=Ji("".charAt),Ay=Ji("".replace),Pa=Ji("".slice),Py=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Ry=/\$([$&'`]|\d{1,2})/g,Iy=function(a,e,t,r,i,n){var o=t+a.length,s=r.length,u=Ry;return i!==void 0&&(i=Cy(i),u=Py),Ay(n,u,function(l,h){var f;switch(Aa(h,0)){case"$":return"$";case"&":return a;case"`":return Pa(e,0,t);case"'":return Pa(e,o);case"<":f=i[Pa(h,1,-1)];break;default:var c=+h;if(c===0)return l;if(c>s){var v=wy(c/10);return v===0?l:v<=s?r[v-1]===void 0?Aa(h,1):r[v-1]+Aa(h,1):l}f=r[c-1]}return f===void 0?"":f})},Ny=Li,_s=Y,_r=k,My=qi,_y=L,Dy=K,Vy=D,Ly=je,ky=Ar,By=lt,qe=pe,Fy=ge,jy=Ki,Uy=ut,zy=Iy,Gy=Zi,Hy=G,fi=Hy("replace"),Yy=Math.max,Xy=Math.min,Wy=_r([].concat),Ra=_r([].push),Ds=_r("".indexOf),Vs=_r("".slice),qy=function(a){return a===void 0?a:String(a)},Qy=function(){return"a".replace(/./,"$0")==="$0"}(),Ls=function(){return/./[fi]?/./[fi]("a","$0")==="":!1}(),Ky=!_y(function(){var a=/./;return a.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(a,"$")!=="7"});My("replace",function(a,e,t){var r=Ls?"$":"$0";return[function(n,o){var s=Fy(this),u=Ly(n)?void 0:Uy(n,fi);return u?_s(u,n,s,o):_s(e,qe(s),n,o)},function(i,n){var o=Dy(this),s=qe(i);if(typeof n=="string"&&Ds(n,r)===-1&&Ds(n,"$<")===-1){var u=t(e,o,s,n);if(u.done)return u.value}var l=Vy(n);l||(n=qe(n));var h=o.global,f;h&&(f=o.unicode,o.lastIndex=0);for(var c=[],v;v=Gy(o,s),!(v===null||(Ra(c,v),!h));){var d=qe(v[0]);d===""&&(o.lastIndex=jy(s,By(o.lastIndex),f))}for(var g="",p=0,y=0;y=p&&(g+=Vs(s,p,b)+$,p=b+x.length)}return g+Vs(s,p)}]},!Ky||!Qy||Ls);var Zy=Te,Jy=Fe,em=G,tm=em("match"),Zu=function(a){var e;return Zy(a)&&((e=a[tm])!==void 0?!!e:Jy(a)==="RegExp")},rm=Zu,am=TypeError,en=function(a){if(rm(a))throw am("The method doesn't accept regular expressions");return a},im=G,nm=im("match"),tn=function(a){var e=/./;try{"/./"[a](e)}catch{try{return e[nm]=!1,"/./"[a](e)}catch{}}return!1},sm=ee,Ju=It,om=ot.f,um=lt,ks=pe,lm=en,hm=ge,vm=tn,Bs=Ju("".startsWith),fm=Ju("".slice),cm=Math.min,el=vm("startsWith"),gm=!el&&!!function(){var a=om(String.prototype,"startsWith");return a&&!a.writable}();sm({target:"String",proto:!0,forced:!gm&&!el},{startsWith:function(e){var t=ks(hm(this));lm(e);var r=um(cm(arguments.length>1?arguments[1]:void 0,t.length)),i=ks(e);return Bs?Bs(t,i,r):fm(t,r,r+i.length)===i}});var dm=G,pm=Wi,ym=de.f,ci=dm("unscopables"),gi=Array.prototype;gi[ci]===void 0&&ym(gi,ci,{configurable:!0,value:pm(null)});var mm=function(a){gi[ci][a]=!0},bm=L,xm=!bm(function(){function a(){}return a.prototype.constructor=null,Object.getPrototypeOf(new a)!==a.prototype}),Tm=le,Sm=D,Om=Er,Em=Ri,$m=xm,Fs=Em("IE_PROTO"),di=Object,Cm=di.prototype,tl=$m?di.getPrototypeOf:function(a){var e=Om(a);if(Tm(e,Fs))return e[Fs];var t=e.constructor;return Sm(t)&&e instanceof t?t.prototype:e instanceof di?Cm:null},wm=L,Am=D,Pm=Te,js=tl,Rm=ze,Im=G,pi=Im("iterator"),rl=!1,ke,Ia,Na;[].keys&&(Na=[].keys(),"next"in Na?(Ia=js(js(Na)),Ia!==Object.prototype&&(ke=Ia)):rl=!0);var Nm=!Pm(ke)||wm(function(){var a={};return ke[pi].call(a)!==a});Nm&&(ke={});Am(ke[pi])||Rm(ke,pi,function(){return this});var al={IteratorPrototype:ke,BUGGY_SAFARI_ITERATORS:rl},Mm=al.IteratorPrototype,_m=Wi,Dm=xr,Vm=_i,Lm=Mt,km=function(){return this},Bm=function(a,e,t,r){var i=e+" Iterator";return a.prototype=_m(Mm,{next:Dm(+!r,t)}),Vm(a,i,!1),Lm[i]=km,a},Fm=ee,jm=Y,il=Cr,Um=D,zm=Bm,Us=tl,zs=fu,Gm=_i,Hm=At,Ma=ze,Ym=G,Xm=Mt,nl=al,Wm=il.PROPER,qm=il.CONFIGURABLE,Gs=nl.IteratorPrototype,tr=nl.BUGGY_SAFARI_ITERATORS,ct=Ym("iterator"),Hs="keys",gt="values",Ys="entries",Qm=function(){return this},Km=function(a,e,t,r,i,n,o){zm(t,e,r);var s=function(y){if(y===i&&c)return c;if(!tr&&y&&y in h)return h[y];switch(y){case Hs:return function(){return new t(this,y)};case gt:return function(){return new t(this,y)};case Ys:return function(){return new t(this,y)}}return function(){return new t(this)}},u=e+" Iterator",l=!1,h=a.prototype,f=h[ct]||h["@@iterator"]||i&&h[i],c=!tr&&f||s(i),v=e==="Array"&&h.entries||f,d,g,p;if(v&&(d=Us(v.call(new a)),d!==Object.prototype&&d.next&&(Us(d)!==Gs&&(zs?zs(d,Gs):Um(d[ct])||Ma(d,ct,Qm)),Gm(d,u,!0))),Wm&&i===gt&&f&&f.name!==gt&&(qm?Hm(h,"name",gt):(l=!0,c=function(){return jm(f,this)})),i)if(g={values:s(gt),keys:n?c:s(Hs),entries:s(Ys)},o)for(p in g)(tr||l||!(p in h))&&Ma(h,p,g[p]);else Fm({target:e,proto:!0,forced:tr||l},g);return h[ct]!==c&&Ma(h,ct,c,{name:i}),Xm[e]=c,g},Zm=function(a,e){return{value:a,done:e}},Jm=wt,rn=mm,Xs=Mt,sl=wr,e0=de.f,t0=Km,rr=Zm,r0=ce,ol="Array Iterator",a0=sl.set,i0=sl.getterFor(ol),n0=t0(Array,"Array",function(a,e){a0(this,{type:ol,target:Jm(a),index:0,kind:e})},function(){var a=i0(this),e=a.target,t=a.kind,r=a.index++;if(!e||r>=e.length)return a.target=void 0,rr(void 0,!0);switch(t){case"keys":return rr(r,!1);case"values":return rr(e[r],!1)}return rr([r,e[r]],!1)},"values"),Ws=Xs.Arguments=Xs.Array;rn("keys");rn("values");rn("entries");if(r0&&Ws.name!=="values")try{e0(Ws,"name",{value:"values"})}catch{}var s0={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},o0=$r,_a=o0("span").classList,qs=_a&&_a.constructor&&_a.constructor.prototype,u0=qs===Object.prototype?void 0:qs,Qs=U,ul=s0,l0=u0,mt=n0,Da=At,ll=G,Va=ll("iterator"),Ks=ll("toStringTag"),La=mt.values,hl=function(a,e){if(a){if(a[Va]!==La)try{Da(a,Va,La)}catch{a[Va]=La}if(a[Ks]||Da(a,Ks,e),ul[e]){for(var t in mt)if(a[t]!==mt[t])try{Da(a,t,mt[t])}catch{a[t]=mt[t]}}}};for(var ka in ul)hl(Qs[ka]&&Qs[ka].prototype,ka);hl(l0,"DOMTokenList");function h0(a,e){if(Ha(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var r=t.call(a,e||"default");if(Ha(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}function v0(a){var e=h0(a,"string");return Ha(e)==="symbol"?e:String(e)}function an(a,e,t){return e=v0(e),e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}var f0=Se,c0=Er,g0=zo,d0=Pr,p0=TypeError,Zs=function(a){return function(e,t,r,i){f0(t);var n=c0(e),o=g0(n),s=d0(n),u=a?s-1:0,l=a?-1:1;if(r<2)for(;;){if(u in o){i=o[u],u+=l;break}if(u+=l,a?u<0:s<=u)throw p0("Reduce of empty array with no initial value")}for(;a?u>=0:s>u;u+=l)u in o&&(i=t(i,o[u],u,n));return i}},y0={left:Zs(!1),right:Zs(!0)},m0=L,vl=function(a,e){var t=[][a];return!!t&&m0(function(){t.call(null,e||function(){return 1},1)})},b0=ee,x0=y0.left,T0=vl,Js=Oi,S0=Rt,O0=!S0&&Js>79&&Js<83,E0=O0||!T0("reduce");b0({target:"Array",proto:!0,forced:E0},{reduce:function(e){var t=arguments.length;return x0(this,e,t,t>1?arguments[1]:void 0)}});var $0=ee,fl=It,C0=ot.f,w0=lt,eo=pe,A0=en,P0=ge,R0=tn,to=fl("".endsWith),I0=fl("".slice),N0=Math.min,cl=R0("endsWith"),M0=!cl&&!!function(){var a=C0(String.prototype,"endsWith");return a&&!a.writable}();$0({target:"String",proto:!0,forced:!M0&&!cl},{endsWith:function(e){var t=eo(P0(this));A0(e);var r=arguments.length>1?arguments[1]:void 0,i=t.length,n=r===void 0?i:N0(w0(r),i),o=eo(e);return to?to(t,o,n):I0(t,n-o.length,n)===o}});var _0=wi,D0=de,V0=xr,L0=function(a,e,t){var r=_0(e);r in a?D0.f(a,r,V0(0,t)):a[r]=t},ro=ou,k0=Pr,B0=L0,F0=Array,j0=Math.max,U0=function(a,e,t){for(var r=k0(a),i=ro(e,r),n=ro(t===void 0?r:t,r),o=F0(j0(n-i,0)),s=0;i1||"".split(/.?/).length?r=function(i,n){var o=Ba(ao(this)),s=n===void 0?so:n>>>0;if(s===0)return[];if(i===void 0)return[o];if(!X0(i))return dt(e,o,i,s);for(var u=[],l=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(i.sticky?"y":""),h=0,f=new RegExp(i.source,l+"g"),c,v,d;(c=dt(Z0,f,o))&&(v=f.lastIndex,!(v>h&&(Ke(u,pt(o,h,c.index)),c.length>1&&c.index=s)));)f.lastIndex===c.index&&f.lastIndex++;return h===o.length?(d||!rb(f,""))&&Ke(u,""):Ke(u,pt(o,h)),u.length>s?io(u,0,s):u}:"0".split(void 0,0).length?r=function(i,n){return i===void 0&&n===0?[]:dt(e,this,i,n)}:r=e,[function(n,o){var s=ao(this),u=Y0(n)?void 0:K0(n,a);return u?dt(u,n,s,o):dt(r,Ba(s),n,o)},function(i,n){var o=H0(this),s=Ba(i),u=t(r,o,s,n,r!==e);if(u.done)return u.value;var l=W0(o,RegExp),h=o.unicode,f=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(Qe?"g":"y"),c=new l(Qe?"^(?:"+o.source+")":o,f),v=n===void 0?so:n>>>0;if(v===0)return[];if(s.length===0)return no(c,s)===null?[s]:[];for(var d=0,g=0,p=[];g"u"?Tt:window,ar=["moz","webkit"],at="AnimationFrame",st=be["request"+at],Ct=be["cancel"+at]||be["cancelRequest"+at];for(var yt=0;!st&&yt3&&(this.alpha=s[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var u=this.r.toString(16),l=this.g.toString(16),h=this.b.toString(16);return u.length==1&&(u="0"+u),l.length==1&&(l="0"+l),h.length==1&&(h="0"+h),"#"+u+l+h},this.getHelpXML=function(){for(var u=new Array,l=0;l "+g.toRGB()+" -> "+g.toHex());d.appendChild(p),d.appendChild(y),v.appendChild(d)}catch{}return v}};const mi=Vo(xb);var Tb=ee,Sb=It,Ob=uu.indexOf,Eb=vl,bi=Sb([].indexOf),pl=!!bi&&1/bi([1],1,-0)<0,$b=pl||!Eb("indexOf");Tb({target:"Array",proto:!0,forced:$b},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return pl?bi(this,e,t)||0:Ob(this,e,t)}});var Cb=ee,wb=k,Ab=en,Pb=ge,vo=pe,Rb=tn,Ib=wb("".indexOf);Cb({target:"String",proto:!0,forced:!Rb("includes")},{includes:function(e){return!!~Ib(vo(Pb(this)),vo(Ab(e)),arguments.length>1?arguments[1]:void 0)}});var Nb=Fe,Mb=Array.isArray||function(e){return Nb(e)==="Array"},_b=ee,Db=k,Vb=Mb,Lb=Db([].reverse),fo=[1,2];_b({target:"Array",proto:!0,forced:String(fo)===String(fo.reverse())},{reverse:function(){return Vb(this)&&(this.length=this.length),Lb(this)}});/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var yl=function(a,e){return(yl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])})(a,e)};function ml(a,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=a}yl(a,e),a.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function kb(a){var e="";Array.isArray(a)||(a=[a]);for(var t=0;ta.phi1&&(a.phi2-=2*Ee),a.sweepFlag===1&&a.phi2r)return[];if(r===0)return[[a*t/(a*a+e*e),e*t/(a*a+e*e)]];var i=Math.sqrt(r);return[[(a*t+e*i)/(a*a+e*e),(e*t-a*i)/(a*a+e*e)],[(a*t-e*i)/(a*a+e*e),(e*t+a*i)/(a*a+e*e)]]}var j,ye=Math.PI/180;function go(a,e,t){return(1-t)*a+t*e}function po(a,e,t,r){return a+Math.cos(r/180*Ee)*e+Math.sin(r/180*Ee)*t}function yo(a,e,t,r){var i=1e-6,n=e-a,o=t-e,s=3*n+3*(r-t)-6*o,u=6*(o-n),l=3*n;return Math.abs(s)S&&(v.sweepFlag=+!v.sweepFlag),v})}function o(){return function(s){var u={};for(var l in s)u[l]=s[l];return u}}a.ROUND=function(s){function u(l){return Math.round(l*s)/s}return s===void 0&&(s=1e13),oe(s),function(l){return l.x1!==void 0&&(l.x1=u(l.x1)),l.y1!==void 0&&(l.y1=u(l.y1)),l.x2!==void 0&&(l.x2=u(l.x2)),l.y2!==void 0&&(l.y2=u(l.y2)),l.x!==void 0&&(l.x=u(l.x)),l.y!==void 0&&(l.y=u(l.y)),l.rX!==void 0&&(l.rX=u(l.rX)),l.rY!==void 0&&(l.rY=u(l.rY)),l}},a.TO_ABS=e,a.TO_REL=function(){return i(function(s,u,l){return s.relative||(s.x1!==void 0&&(s.x1-=u),s.y1!==void 0&&(s.y1-=l),s.x2!==void 0&&(s.x2-=u),s.y2!==void 0&&(s.y2-=l),s.x!==void 0&&(s.x-=u),s.y!==void 0&&(s.y-=l),s.relative=!0),s})},a.NORMALIZE_HVZ=function(s,u,l){return s===void 0&&(s=!0),u===void 0&&(u=!0),l===void 0&&(l=!0),i(function(h,f,c,v,d){if(isNaN(v)&&!(h.type&m.MOVE_TO))throw new Error("path must start with moveto");return u&&h.type&m.HORIZ_LINE_TO&&(h.type=m.LINE_TO,h.y=h.relative?0:c),l&&h.type&m.VERT_LINE_TO&&(h.type=m.LINE_TO,h.x=h.relative?0:f),s&&h.type&m.CLOSE_PATH&&(h.type=m.LINE_TO,h.x=h.relative?v-f:v,h.y=h.relative?d-c:d),h.type&m.ARC&&(h.rX===0||h.rY===0)&&(h.type=m.LINE_TO,delete h.rX,delete h.rY,delete h.xRot,delete h.lArcFlag,delete h.sweepFlag),h})},a.NORMALIZE_ST=t,a.QT_TO_C=r,a.INFO=i,a.SANITIZE=function(s){s===void 0&&(s=0),oe(s);var u=NaN,l=NaN,h=NaN,f=NaN;return i(function(c,v,d,g,p){var y=Math.abs,x=!1,b=0,T=0;if(c.type&m.SMOOTH_CURVE_TO&&(b=isNaN(u)?0:v-u,T=isNaN(l)?0:d-l),c.type&(m.CURVE_TO|m.SMOOTH_CURVE_TO)?(u=c.relative?v+c.x2:c.x2,l=c.relative?d+c.y2:c.y2):(u=NaN,l=NaN),c.type&m.SMOOTH_QUAD_TO?(h=isNaN(h)?v:2*v-h,f=isNaN(f)?d:2*d-f):c.type&m.QUAD_TO?(h=c.relative?v+c.x1:c.x1,f=c.relative?d+c.y1:c.y2):(h=NaN,f=NaN),c.type&m.LINE_COMMANDS||c.type&m.ARC&&(c.rX===0||c.rY===0||!c.lArcFlag)||c.type&m.CURVE_TO||c.type&m.SMOOTH_CURVE_TO||c.type&m.QUAD_TO||c.type&m.SMOOTH_QUAD_TO){var $=c.x===void 0?0:c.relative?c.x:c.x-v,E=c.y===void 0?0:c.relative?c.y:c.y-d;b=isNaN(h)?c.x1===void 0?b:c.relative?c.x:c.x1-v:h-v,T=isNaN(f)?c.y1===void 0?T:c.relative?c.y:c.y1-d:f-d;var S=c.x2===void 0?0:c.relative?c.x:c.x2-v,w=c.y2===void 0?0:c.relative?c.y:c.y2-d;y($)<=s&&y(E)<=s&&y(b)<=s&&y(T)<=s&&y(S)<=s&&y(w)<=s&&(x=!0)}return c.type&m.CLOSE_PATH&&y(v-g)<=s&&y(d-p)<=s&&(x=!0),x?[]:c})},a.MATRIX=n,a.ROTATE=function(s,u,l){u===void 0&&(u=0),l===void 0&&(l=0),oe(s,u,l);var h=Math.sin(s),f=Math.cos(s);return n(f,h,-h,f,u-u*f+l*h,l-u*h-l*f)},a.TRANSLATE=function(s,u){return u===void 0&&(u=0),oe(s,u),n(1,0,0,1,s,u)},a.SCALE=function(s,u){return u===void 0&&(u=s),oe(s,u),n(s,0,0,u,0,0)},a.SKEW_X=function(s){return oe(s),n(1,0,Math.atan(s),1,0,0)},a.SKEW_Y=function(s){return oe(s),n(1,Math.atan(s),0,1,0,0)},a.X_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),oe(s),n(-1,0,0,1,s,0)},a.Y_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),oe(s),n(1,0,0,-1,0,s)},a.A_TO_C=function(){return i(function(s,u,l){return m.ARC===s.type?function(h,f,c){var v,d,g,p;h.cX||za(h,f,c);for(var y=Math.min(h.phi1,h.phi2),x=Math.max(h.phi1,h.phi2)-y,b=Math.ceil(x/90),T=new Array(b),$=f,E=c,S=0;Sf.maxX&&(f.maxX=M),Mf.maxY&&(f.maxY=M),MR&&p(mo(v,g.x1,g.x2,g.x,R));for(var T=0,$=yo(d,g.y1,g.y2,g.y);T<$.length;T++)0<(R=$[T])&&1>R&&y(mo(d,g.y1,g.y2,g.y,R))}if(g.type&m.ARC){p(g.x),y(g.y),za(g,v,d);for(var E=g.xRot/180*Math.PI,S=Math.cos(E)*g.rX,w=Math.sin(E)*g.rX,N=-Math.sin(E)*g.rY,_=Math.cos(E)*g.rY,B=g.phi1g.phi2?[g.phi2+360,g.phi1+360]:[g.phi2,g.phi1],P=B[0],X=B[1],W=function(M){var Z=M[0],ne=M[1],ve=180*Math.atan2(ne,Z)/Math.PI;return veP&&RP&&Rh)throw new SyntaxError('Expected positive number, got "'+h+'" at index "'+o+'"')}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+o+'"')}this.curArgs.push(h),this.curArgs.length===jb[this.curCommandType]&&(m.HORIZ_LINE_TO===this.curCommandType?n({type:m.HORIZ_LINE_TO,relative:this.curCommandRelative,x:h}):m.VERT_LINE_TO===this.curCommandType?n({type:m.VERT_LINE_TO,relative:this.curCommandRelative,y:h}):this.curCommandType===m.MOVE_TO||this.curCommandType===m.LINE_TO||this.curCommandType===m.SMOOTH_QUAD_TO?(n({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),m.MOVE_TO===this.curCommandType&&(this.curCommandType=m.LINE_TO)):this.curCommandType===m.CURVE_TO?n({type:m.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===m.SMOOTH_CURVE_TO?n({type:m.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===m.QUAD_TO?n({type:m.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===m.ARC&&n({type:m.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!Bb(s))if(s===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(s!=="+"&&s!=="-"&&s!==".")if(l)this.curNumber=s,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+o+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+s+'" at index '+o+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,s!=="z"&&s!=="Z")if(s==="h"||s==="H")this.curCommandType=m.HORIZ_LINE_TO,this.curCommandRelative=s==="h";else if(s==="v"||s==="V")this.curCommandType=m.VERT_LINE_TO,this.curCommandRelative=s==="v";else if(s==="m"||s==="M")this.curCommandType=m.MOVE_TO,this.curCommandRelative=s==="m";else if(s==="l"||s==="L")this.curCommandType=m.LINE_TO,this.curCommandRelative=s==="l";else if(s==="c"||s==="C")this.curCommandType=m.CURVE_TO,this.curCommandRelative=s==="c";else if(s==="s"||s==="S")this.curCommandType=m.SMOOTH_CURVE_TO,this.curCommandRelative=s==="s";else if(s==="q"||s==="Q")this.curCommandType=m.QUAD_TO,this.curCommandRelative=s==="q";else if(s==="t"||s==="T")this.curCommandType=m.SMOOTH_QUAD_TO,this.curCommandRelative=s==="t";else{if(s!=="a"&&s!=="A")throw new SyntaxError('Unexpected character "'+s+'" at index '+o+".");this.curCommandType=m.ARC,this.curCommandRelative=s==="a"}else r.push({type:m.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=s,this.curNumberHasDecimal=s==="."}else this.curNumber+=s,this.curNumberHasDecimal=!0;else this.curNumber+=s;else this.curNumber+=s,this.curNumberHasExp=!0;else this.curNumber+=s,this.curNumberHasExpDigits=this.curNumberHasExp}return r},e.prototype.transform=function(t){return Object.create(this,{parse:{value:function(r,i){i===void 0&&(i=[]);for(var n=0,o=Object.getPrototypeOf(this).parse.call(this,r);n>$;if(o[b+3]=jr,jr!==0){var Ur=255/jr;o[b]=(M*T>>$)*Ur,o[b+1]=(Z*T>>$)*Ur,o[b+2]=(ne*T>>$)*Ur}else o[b]=o[b+1]=o[b+2]=0;M-=q,Z-=H,ne-=Q,ve-=R,q-=p.r,H-=p.g,Q-=p.b,R-=p.a;var Ae=Fr+n+1;Ae=x+(Ae>$,te>0?(te=255/te,o[re]=(kt*T>>$)*te,o[re+1]=(Bt*T>>$)*te,o[re+2]=(Ft*T>>$)*te):o[re]=o[re+1]=o[re+2]=0,kt-=zr,Bt-=Gr,Ft-=Hr,jt-=Yr,zr-=p.r,Gr-=p.g,Hr-=p.b,Yr-=p.a,re=Ye+((re=Kr+h)0&&arguments[0]!==void 0?arguments[0]:{},e={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:a,createCanvas(t,r){return new OffscreenCanvas(t,r)},createImage(t){return xe(function*(){var r=yield fetch(t),i=yield r.blob(),n=yield createImageBitmap(i);return n})()}};return(typeof DOMParser<"u"||typeof a>"u")&&Reflect.deleteProperty(e,"DOMParser"),e}function u1(a){var{DOMParser:e,canvas:t,fetch:r}=a;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,fetch:r,createCanvas:t.createCanvas,createImage:t.loadImage}}var S2=Object.freeze({__proto__:null,offscreen:o1,node:u1});function vt(a){return a.replace(/(?!\u3000)\s+/gm," ")}function l1(a){return a.replace(/^[\n \t]+/,"")}function h1(a){return a.replace(/[\n \t]+$/,"")}function ie(a){var e=(a||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return e.map(parseFloat)}var v1=/^[A-Z-]+$/;function f1(a){return v1.test(a)?a.toLowerCase():a}function Tl(a){var e=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(a)||[];return e[2]||e[3]||e[4]}function c1(a){if(!a.startsWith("rgb"))return a;var e=3,t=a.replace(/\d+(\.\d+)?/g,(r,i)=>e--&&i?String(Math.round(parseFloat(r))):r);return t}var g1=/(\[[^\]]+\])/g,d1=/(#[^\s+>~.[:]+)/g,p1=/(\.[^\s+>~.[:]+)/g,y1=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,m1=/(:[\w-]+\([^)]*\))/gi,b1=/(:[^\s+>~.[:]+)/g,x1=/([^\s+>~.[:]+)/g;function _e(a,e){var t=e.exec(a);return t?[a.replace(e," "),t.length]:[a,0]}function T1(a){var e=[0,0,0],t=a.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),r=0;return[t,r]=_e(t,g1),e[1]+=r,[t,r]=_e(t,d1),e[0]+=r,[t,r]=_e(t,p1),e[1]+=r,[t,r]=_e(t,y1),e[2]+=r,[t,r]=_e(t,m1),e[1]+=r,[t,r]=_e(t,b1),e[1]+=r,t=t.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[t,r]=_e(t,x1),e[2]+=r,e.join("")}var it=1e-8;function Oo(a){return Math.sqrt(Math.pow(a[0],2)+Math.pow(a[1],2))}function Ti(a,e){return(a[0]*e[0]+a[1]*e[1])/(Oo(a)*Oo(e))}function Eo(a,e){return(a[0]*e[1]0&&arguments[0]!==void 0?arguments[0]:" ",{document:t,name:r}=this;return vt(this.getString()).trim().split(e).map(i=>new O(t,r,i))}hasValue(e){var{value:t}=this;return t!==null&&t!==""&&(e||t!==0)&&typeof t<"u"}isString(e){var{value:t}=this,r=typeof t=="string";return!r||!e?r:e.test(t)}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var e=this.getString();switch(!0){case e.endsWith("px"):case/^[0-9]+$/.test(e):return!0;default:return!1}}setValue(e){return this.value=e,this}getValue(e){return typeof e>"u"||this.hasValue()?this.value:e}getNumber(e){if(!this.hasValue())return typeof e>"u"?0:parseFloat(e);var{value:t}=this,r=parseFloat(t);return this.isString(/%$/)&&(r/=100),r}getString(e){return typeof e>"u"||this.hasValue()?typeof this.value>"u"?"":String(this.value):String(e)}getColor(e){var t=this.getString(e);return this.isNormalizedColor||(this.isNormalizedColor=!0,t=c1(t),this.value=t),t}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;var[r,i]=typeof e=="boolean"?[void 0,e]:[e],{viewPort:n}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(n.computeSize("x"),n.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(n.computeSize("x"),n.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*n.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*n.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return this.getNumber()*15;case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case(this.isString(/%$/)&&i):return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*n.computeSize(r);default:{var o=this.getNumber();return t&&o<1?o*n.computeSize(r):o}}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3:0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var e=this.getString(),t=/#([^)'"]+)/.exec(e);return t&&(t=t[1]),t||(t=e),this.document.definitions[t]}getFillStyleDefinition(e,t){var r=this.getDefinition();if(!r)return null;if(typeof r.createGradient=="function")return r.createGradient(this.document.ctx,e,t);if(typeof r.createPattern=="function"){if(r.getHrefAttribute().hasValue()){var i=r.getAttribute("patternTransform");r=r.getHrefAttribute().getDefinition(),i.hasValue()&&r.getAttribute("patternTransform",!0).setValue(i.value)}return r.createPattern(this.document.ctx,e,t)}return null}getTextBaseline(){return this.hasValue()?O.textBaselineMapping[this.getString()]:null}addOpacity(e){for(var t=this.getColor(),r=t.length,i=0,n=0;n1&&arguments[1]!==void 0?arguments[1]:0,[r=t,i=t]=ie(e);return new V(r,i)}static parseScale(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,[r=t,i=r]=ie(e);return new V(r,i)}static parsePath(e){for(var t=ie(e),r=t.length,i=[],n=0;n0}runEvents(){if(this.working){var{screen:e,events:t,eventElements:r}=this,{style:i}=e.ctx.canvas;i&&(i.cursor=""),t.forEach((n,o)=>{for(var{run:s}=n,u=r[o];u;)s(u),u=u.parent}),this.events=[],this.eventElements=[]}}checkPath(e,t){if(!(!this.working||!t)){var{events:r,eventElements:i}=this;r.forEach((n,o)=>{var{x:s,y:u}=n;!i[o]&&t.isPointInPath&&t.isPointInPath(s,u)&&(i[o]=e)})}}checkBoundingBox(e,t){if(!(!this.working||!t)){var{events:r,eventElements:i}=this;r.forEach((n,o)=>{var{x:s,y:u}=n;!i[o]&&t.isPointInBox(s,u)&&(i[o]=e)})}}mapXY(e,t){for(var{window:r,ctx:i}=this.screen,n=new V(e,t),o=i.canvas;o;)n.x-=o.offsetLeft,n.y-=o.offsetTop,o=o.offsetParent;return r.scrollX&&(n.x+=r.scrollX),r.scrollY&&(n.y+=r.scrollY),n}onClick(e){var{x:t,y:r}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onclick",x:t,y:r,run(i){i.onClick&&i.onClick()}})}onMouseMove(e){var{x:t,y:r}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onmousemove",x:t,y:r,run(i){i.onMouseMove&&i.onMouseMove()}})}}var Sl=typeof window<"u"?window:null,Ol=typeof fetch<"u"?fetch.bind(void 0):null;class Vr{constructor(e){var{fetch:t=Ol,window:r=Sl}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.ctx=e,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new S1,this.mouse=new O1(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=r,this.fetch=t}wait(e){this.waits.push(e)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var e=this.waits.every(t=>t());return e&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=e,e}setDefaults(e){e.strokeStyle="rgba(0,0,0,0)",e.lineCap="butt",e.lineJoin="miter",e.miterLimit=4}setViewBox(e){var{document:t,ctx:r,aspectRatio:i,width:n,desiredWidth:o,height:s,desiredHeight:u,minX:l=0,minY:h=0,refX:f,refY:c,clip:v=!1,clipX:d=0,clipY:g=0}=e,p=vt(i).replace(/^defer\s/,""),[y,x]=p.split(" "),b=y||"xMidYMid",T=x||"meet",$=n/o,E=s/u,S=Math.min($,E),w=Math.max($,E),N=o,_=u;T==="meet"&&(N*=S,_*=S),T==="slice"&&(N*=w,_*=w);var B=new O(t,"refX",f),P=new O(t,"refY",c),X=B.hasValue()&&P.hasValue();if(X&&r.translate(-S*B.getPixels("x"),-S*P.getPixels("y")),v){var W=S*d,z=S*g;r.beginPath(),r.moveTo(W,z),r.lineTo(n,z),r.lineTo(n,s),r.lineTo(W,s),r.closePath(),r.clip()}if(!X){var q=T==="meet"&&S===E,H=T==="slice"&&w===E,Q=T==="meet"&&S===$,R=T==="slice"&&w===$;b.startsWith("xMid")&&(q||H)&&r.translate(n/2-N/2,0),b.endsWith("YMid")&&(Q||R)&&r.translate(0,s/2-_/2),b.startsWith("xMax")&&(q||H)&&r.translate(n-N,0),b.endsWith("YMax")&&(Q||R)&&r.translate(0,s-_)}switch(!0){case b==="none":r.scale($,E);break;case T==="meet":r.scale(S,S);break;case T==="slice":r.scale(w,w);break}r.translate(-l,-h)}start(e){var{enableRedraw:t=!1,ignoreMouse:r=!1,ignoreAnimation:i=!1,ignoreDimensions:n=!1,ignoreClear:o=!1,forceRedraw:s,scaleWidth:u,scaleHeight:l,offsetX:h,offsetY:f}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{FRAMERATE:c,mouse:v}=this,d=1e3/c;if(this.frameDuration=d,this.readyPromise=new Promise(b=>{this.resolveReady=b}),this.isReady()&&this.render(e,n,o,u,l,h,f),!!t){var g=Date.now(),p=g,y=0,x=()=>{g=Date.now(),y=g-p,y>=d&&(p=g-y%d,this.shouldUpdate(i,s)&&(this.render(e,n,o,u,l,h,f),v.runEvents())),this.intervalId=ja(x)};r||v.start(),this.intervalId=ja(x)}}stop(){this.intervalId&&(ja.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(e,t){if(!e){var{frameDuration:r}=this,i=this.animations.reduce((n,o)=>o.update(r)||n,!1);if(i)return!0}return!!(typeof t=="function"&&t()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(e,t,r,i,n,o,s){var{CLIENT_WIDTH:u,CLIENT_HEIGHT:l,viewPort:h,ctx:f,isFirstRender:c}=this,v=f.canvas;h.clear(),v.width&&v.height?h.setCurrent(v.width,v.height):h.setCurrent(u,l);var d=e.getStyle("width"),g=e.getStyle("height");!t&&(c||typeof i!="number"&&typeof n!="number")&&(d.hasValue()&&(v.width=d.getPixels("x"),v.style&&(v.style.width="".concat(v.width,"px"))),g.hasValue()&&(v.height=g.getPixels("y"),v.style&&(v.style.height="".concat(v.height,"px"))));var p=v.clientWidth||v.width,y=v.clientHeight||v.height;if(t&&d.hasValue()&&g.hasValue()&&(p=d.getPixels("x"),y=g.getPixels("y")),h.setCurrent(p,y),typeof o=="number"&&e.getAttribute("x",!0).setValue(o),typeof s=="number"&&e.getAttribute("y",!0).setValue(s),typeof i=="number"||typeof n=="number"){var x=ie(e.getAttribute("viewBox").getString()),b=0,T=0;if(typeof i=="number"){var $=e.getStyle("width");$.hasValue()?b=$.getPixels("x")/i:isNaN(x[2])||(b=x[2]/i)}if(typeof n=="number"){var E=e.getStyle("height");E.hasValue()?T=E.getPixels("y")/n:isNaN(x[3])||(T=x[3]/n)}b||(b=T),T||(T=b),e.getAttribute("width",!0).setValue(i),e.getAttribute("height",!0).setValue(n);var S=e.getStyle("transform",!0,!0);S.setValue("".concat(S.getString()," scale(").concat(1/b,", ").concat(1/T,")"))}r||f.clearRect(0,0,p,y),e.render(f),c&&(this.isFirstRender=!1)}}Vr.defaultWindow=Sl;Vr.defaultFetch=Ol;var{defaultFetch:E1}=Vr,$1=typeof DOMParser<"u"?DOMParser:null;class Ga{constructor(){var{fetch:e=E1,DOMParser:t=$1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.fetch=e,this.DOMParser=t}parse(e){var t=this;return xe(function*(){return e.startsWith("<")?t.parseFromString(e):t.load(e)})()}parseFromString(e){var t=new this.DOMParser;try{return this.checkDocument(t.parseFromString(e,"image/svg+xml"))}catch{return this.checkDocument(t.parseFromString(e,"text/xml"))}}checkDocument(e){var t=e.getElementsByTagName("parsererror")[0];if(t)throw new Error(t.textContent);return e}load(e){var t=this;return xe(function*(){var r=yield t.fetch(e),i=yield r.text();return t.parseFromString(i)})()}}class C1{constructor(e,t){this.type="translate",this.point=null,this.point=V.parse(t)}apply(e){var{x:t,y:r}=this.point;e.translate(t||0,r||0)}unapply(e){var{x:t,y:r}=this.point;e.translate(-1*t||0,-1*r||0)}applyToPoint(e){var{x:t,y:r}=this.point;e.applyTransform([1,0,0,1,t||0,r||0])}}class w1{constructor(e,t,r){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var i=ie(t);this.angle=new O(e,"angle",i[0]),this.originX=r[0],this.originY=r[1],this.cx=i[1]||0,this.cy=i[2]||0}apply(e){var{cx:t,cy:r,originX:i,originY:n,angle:o}=this,s=t+i.getPixels("x"),u=r+n.getPixels("y");e.translate(s,u),e.rotate(o.getRadians()),e.translate(-s,-u)}unapply(e){var{cx:t,cy:r,originX:i,originY:n,angle:o}=this,s=t+i.getPixels("x"),u=r+n.getPixels("y");e.translate(s,u),e.rotate(-1*o.getRadians()),e.translate(-s,-u)}applyToPoint(e){var{cx:t,cy:r,angle:i}=this,n=i.getRadians();e.applyTransform([1,0,0,1,t||0,r||0]),e.applyTransform([Math.cos(n),Math.sin(n),-Math.sin(n),Math.cos(n),0,0]),e.applyTransform([1,0,0,1,-t||0,-r||0])}}class A1{constructor(e,t,r){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var i=V.parseScale(t);(i.x===0||i.y===0)&&(i.x=it,i.y=it),this.scale=i,this.originX=r[0],this.originY=r[1]}apply(e){var{scale:{x:t,y:r},originX:i,originY:n}=this,o=i.getPixels("x"),s=n.getPixels("y");e.translate(o,s),e.scale(t,r||t),e.translate(-o,-s)}unapply(e){var{scale:{x:t,y:r},originX:i,originY:n}=this,o=i.getPixels("x"),s=n.getPixels("y");e.translate(o,s),e.scale(1/t,1/r||t),e.translate(-o,-s)}applyToPoint(e){var{x:t,y:r}=this.scale;e.applyTransform([t||0,0,0,r||0,0,0])}}class El{constructor(e,t,r){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=ie(t),this.originX=r[0],this.originY=r[1]}apply(e){var{originX:t,originY:r,matrix:i}=this,n=t.getPixels("x"),o=r.getPixels("y");e.translate(n,o),e.transform(i[0],i[1],i[2],i[3],i[4],i[5]),e.translate(-n,-o)}unapply(e){var{originX:t,originY:r,matrix:i}=this,n=i[0],o=i[2],s=i[4],u=i[1],l=i[3],h=i[5],f=0,c=0,v=1,d=1/(n*(l*v-h*c)-o*(u*v-h*f)+s*(u*c-l*f)),g=t.getPixels("x"),p=r.getPixels("y");e.translate(g,p),e.transform(d*(l*v-h*c),d*(h*f-u*v),d*(s*c-o*v),d*(n*v-s*f),d*(o*h-s*l),d*(s*u-n*h)),e.translate(-g,-p)}applyToPoint(e){e.applyTransform(this.matrix)}}class $l extends El{constructor(e,t,r){super(e,t,r),this.type="skew",this.angle=null,this.angle=new O(e,"angle",t)}}class P1 extends $l{constructor(e,t,r){super(e,t,r),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class R1 extends $l{constructor(e,t,r){super(e,t,r),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}function I1(a){return vt(a).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function N1(a){var[e,t]=a.split("(");return[e.trim(),t.trim().replace(")","")]}class Be{constructor(e,t,r){this.document=e,this.transforms=[];var i=I1(t);i.forEach(n=>{if(n!=="none"){var[o,s]=N1(n),u=Be.transformTypes[o];typeof u<"u"&&this.transforms.push(new u(this.document,s,r))}})}static fromElement(e,t){var r=t.getStyle("transform",!1,!0),[i,n=i]=t.getStyle("transform-origin",!1,!0).split(),o=[i,n];return r.hasValue()?new Be(e,r.getString(),o):null}apply(e){for(var{transforms:t}=this,r=t.length,i=0;i=0;i--)t[i].unapply(e)}applyToPoint(e){for(var{transforms:t}=this,r=t.length,i=0;i2&&arguments[2]!==void 0?arguments[2]:!1;if(this.document=e,this.node=t,this.captureTextNodes=r,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!(!t||t.nodeType!==1)){if(Array.from(t.attributes).forEach(s=>{var u=f1(s.nodeName);this.attributes[u]=new O(e,u,s.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var i=this.getAttribute("style").getString().split(";").map(s=>s.trim());i.forEach(s=>{if(s){var[u,l]=s.split(":").map(h=>h.trim());this.styles[u]=new O(e,u,l)}})}var{definitions:n}=e,o=this.getAttribute("id");o.hasValue()&&(n[o.getString()]||(n[o.getString()]=this)),Array.from(t.childNodes).forEach(s=>{if(s.nodeType===1)this.addChild(s);else if(r&&(s.nodeType===3||s.nodeType===4)){var u=e.createTextNode(s);u.getText().length>0&&this.addChild(u)}})}}getAttribute(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=this.attributes[e];if(!r&&t){var i=new O(this.document,e,"");return this.attributes[e]=i,i}return r||O.empty(this.document)}getHrefAttribute(){for(var e in this.attributes)if(e==="href"||e.endsWith(":href"))return this.attributes[e];return O.empty(this.document)}getStyle(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=this.styles[e];if(i)return i;var n=this.getAttribute(e);if(n!=null&&n.hasValue())return this.styles[e]=n,n;if(!r){var{parent:o}=this;if(o){var s=o.getStyle(e);if(s!=null&&s.hasValue())return s}}if(t){var u=new O(this.document,e,"");return this.styles[e]=u,u}return i||O.empty(this.document)}render(e){if(!(this.getStyle("display").getString()==="none"||this.getStyle("visibility").getString()==="hidden")){if(e.save(),this.getStyle("mask").hasValue()){var t=this.getStyle("mask").getDefinition();t&&(this.applyEffects(e),t.apply(e,this))}else if(this.getStyle("filter").getValue("none")!=="none"){var r=this.getStyle("filter").getDefinition();r&&(this.applyEffects(e),r.apply(e,this))}else this.setContext(e),this.renderChildren(e),this.clearContext(e);e.restore()}}setContext(e){}applyEffects(e){var t=Be.fromElement(this.document,this);t&&t.apply(e);var r=this.getStyle("clip-path",!1,!0);if(r.hasValue()){var i=r.getDefinition();i&&i.apply(e)}}clearContext(e){}renderChildren(e){this.children.forEach(t=>{t.render(e)})}addChild(e){var t=e instanceof I?e:this.document.createElement(e);t.parent=this,I.ignoreChildTypes.includes(t.type)||this.children.push(t)}matchesSelector(e){var t,{node:r}=this;if(typeof r.matches=="function")return r.matches(e);var i=(t=r.getAttribute)===null||t===void 0?void 0:t.call(r,"class");return!i||i===""?!1:i.split(" ").some(n=>".".concat(n)===e)}addStylesFromStyleDefinition(){var{styles:e,stylesSpecificity:t}=this.document;for(var r in e)if(!r.startsWith("@")&&this.matchesSelector(r)){var i=e[r],n=t[r];if(i)for(var o in i){var s=this.stylesSpecificity[o];typeof s>"u"&&(s="000"),n>=s&&(this.styles[o]=i[o],this.stylesSpecificity[o]=n)}}}removeStyles(e,t){var r=t.reduce((i,n)=>{var o=e.getStyle(n);if(!o.hasValue())return i;var s=o.getString();return o.setValue(""),[...i,[n,s]]},[]);return r}restoreStyles(e,t){t.forEach(r=>{var[i,n]=r;e.getStyle(i,!0).setValue(n)})}isFirstChild(){var e;return((e=this.parent)===null||e===void 0?void 0:e.children.indexOf(this))===0}}I.ignoreChildTypes=["title"];class M1 extends I{constructor(e,t,r){super(e,t,r)}}function _1(a){var e=a.trim();return/^('|")/.test(e)?e:'"'.concat(e,'"')}function D1(a){return typeof process>"u"?a:a.trim().split(",").map(_1).join(",")}function V1(a){if(!a)return"";var e=a.trim().toLowerCase();switch(e){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return e;default:return/^oblique\s+(-|)\d+deg$/.test(e)?e:""}}function L1(a){if(!a)return"";var e=a.trim().toLowerCase();switch(e){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return e;default:return/^[\d.]+$/.test(e)?e:""}}class J{constructor(e,t,r,i,n,o){var s=o?typeof o=="string"?J.parse(o):o:{};this.fontFamily=n||s.fontFamily,this.fontSize=i||s.fontSize,this.fontStyle=e||s.fontStyle,this.fontWeight=r||s.fontWeight,this.fontVariant=t||s.fontVariant}static parse(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r="",i="",n="",o="",s="",u=vt(e).trim().split(" "),l={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return u.forEach(h=>{switch(!0){case(!l.fontStyle&&J.styles.includes(h)):h!=="inherit"&&(r=h),l.fontStyle=!0;break;case(!l.fontVariant&&J.variants.includes(h)):h!=="inherit"&&(i=h),l.fontStyle=!0,l.fontVariant=!0;break;case(!l.fontWeight&&J.weights.includes(h)):h!=="inherit"&&(n=h),l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0;break;case!l.fontSize:h!=="inherit"&&([o]=h.split("/")),l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0,l.fontSize=!0;break;default:h!=="inherit"&&(s+=h)}}),new J(r,i,n,o,s,t)}toString(){return[V1(this.fontStyle),this.fontVariant,L1(this.fontWeight),this.fontSize,D1(this.fontFamily)].join(" ").trim()}}J.styles="normal|italic|oblique|inherit";J.variants="normal|small-caps|inherit";J.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class he{constructor(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Number.NaN,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.NaN,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Number.NaN,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Number.NaN;this.x1=e,this.y1=t,this.x2=r,this.y2=i,this.addPoint(e,t),this.addPoint(r,i)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(e,t){typeof e<"u"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),ethis.x2&&(this.x2=e)),typeof t<"u"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),tthis.y2&&(this.y2=t))}addX(e){this.addPoint(e,null)}addY(e){this.addPoint(null,e)}addBoundingBox(e){if(e){var{x1:t,y1:r,x2:i,y2:n}=e;this.addPoint(t,r),this.addPoint(i,n)}}sumCubic(e,t,r,i,n){return Math.pow(1-e,3)*t+3*Math.pow(1-e,2)*e*r+3*(1-e)*Math.pow(e,2)*i+Math.pow(e,3)*n}bezierCurveAdd(e,t,r,i,n){var o=6*t-12*r+6*i,s=-3*t+9*r-9*i+3*n,u=3*r-3*t;if(s===0){if(o===0)return;var l=-u/o;0=t.length-1}next(){var e=this.commands[++this.i];return this.previousCommand=this.command,this.command=e,e}getPoint(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"x",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y",r=new V(this.command[e],this.command[t]);return this.makeAbsolute(r)}getAsControlPoint(e,t){var r=this.getPoint(e,t);return this.control=r,r}getAsCurrentPoint(e,t){var r=this.getPoint(e,t);return this.current=r,r}getReflectedControlPoint(){var e=this.previousCommand.type;if(e!==m.CURVE_TO&&e!==m.SMOOTH_CURVE_TO&&e!==m.QUAD_TO&&e!==m.SMOOTH_QUAD_TO)return this.current;var{current:{x:t,y:r},control:{x:i,y:n}}=this,o=new V(2*t-i,2*r-n);return o}makeAbsolute(e){if(this.command.relative){var{x:t,y:r}=this.current;e.x+=t,e.y+=r}return e}addMarker(e,t,r){var{points:i,angles:n}=this;r&&n.length>0&&!n[n.length-1]&&(n[n.length-1]=i[i.length-1].angleTo(r)),this.addMarkerAngle(e,t?t.angleTo(e):null)}addMarkerAngle(e,t){this.points.push(e),this.angles.push(t)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:e}=this,t=e.length,r=0;r1&&arguments[1]!==void 0?arguments[1]:!1;if(!t){var r=this.getStyle("fill"),i=this.getStyle("fill-opacity"),n=this.getStyle("stroke"),o=this.getStyle("stroke-opacity");if(r.isUrlDefinition()){var s=r.getFillStyleDefinition(this,i);s&&(e.fillStyle=s)}else if(r.hasValue()){r.getString()==="currentColor"&&r.setValue(this.getStyle("color").getColor());var u=r.getColor();u!=="inherit"&&(e.fillStyle=u==="none"?"rgba(0,0,0,0)":u)}if(i.hasValue()){var l=new O(this.document,"fill",e.fillStyle).addOpacity(i).getColor();e.fillStyle=l}if(n.isUrlDefinition()){var h=n.getFillStyleDefinition(this,o);h&&(e.strokeStyle=h)}else if(n.hasValue()){n.getString()==="currentColor"&&n.setValue(this.getStyle("color").getColor());var f=n.getString();f!=="inherit"&&(e.strokeStyle=f==="none"?"rgba(0,0,0,0)":f)}if(o.hasValue()){var c=new O(this.document,"stroke",e.strokeStyle).addOpacity(o).getString();e.strokeStyle=c}var v=this.getStyle("stroke-width");if(v.hasValue()){var d=v.getPixels();e.lineWidth=d||it}var g=this.getStyle("stroke-linecap"),p=this.getStyle("stroke-linejoin"),y=this.getStyle("stroke-miterlimit"),x=this.getStyle("stroke-dasharray"),b=this.getStyle("stroke-dashoffset");if(g.hasValue()&&(e.lineCap=g.getString()),p.hasValue()&&(e.lineJoin=p.getString()),y.hasValue()&&(e.miterLimit=y.getNumber()),x.hasValue()&&x.getString()!=="none"){var T=ie(x.getString());typeof e.setLineDash<"u"?e.setLineDash(T):typeof e.webkitLineDash<"u"?e.webkitLineDash=T:typeof e.mozDash<"u"&&!(T.length===1&&T[0]===0)&&(e.mozDash=T);var $=b.getPixels();typeof e.lineDashOffset<"u"?e.lineDashOffset=$:typeof e.webkitLineDashOffset<"u"?e.webkitLineDashOffset=$:typeof e.mozDashOffset<"u"&&(e.mozDashOffset=$)}}if(this.modifiedEmSizeStack=!1,typeof e.font<"u"){var E=this.getStyle("font"),S=this.getStyle("font-style"),w=this.getStyle("font-variant"),N=this.getStyle("font-weight"),_=this.getStyle("font-size"),B=this.getStyle("font-family"),P=new J(S.getString(),w.getString(),N.getString(),_.hasValue()?"".concat(_.getPixels(!0),"px"):"",B.getString(),J.parse(E.getString(),e.font));S.setValue(P.fontStyle),w.setValue(P.fontVariant),N.setValue(P.fontWeight),_.setValue(P.fontSize),B.setValue(P.fontFamily),e.font=P.toString(),_.isPixels()&&(this.document.emSize=_.getPixels(),this.modifiedEmSizeStack=!0)}t||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())}clearContext(e){super.clearContext(e),this.modifiedEmSizeStack&&this.document.popEmSize()}}class A extends Ge{constructor(e,t,r){super(e,t,r),this.type="path",this.pathParser=null,this.pathParser=new C(this.getAttribute("d").getString())}path(e){var{pathParser:t}=this,r=new he;for(t.reset(),e&&e.beginPath();!t.isEnd();)switch(t.next().type){case C.MOVE_TO:this.pathM(e,r);break;case C.LINE_TO:this.pathL(e,r);break;case C.HORIZ_LINE_TO:this.pathH(e,r);break;case C.VERT_LINE_TO:this.pathV(e,r);break;case C.CURVE_TO:this.pathC(e,r);break;case C.SMOOTH_CURVE_TO:this.pathS(e,r);break;case C.QUAD_TO:this.pathQ(e,r);break;case C.SMOOTH_QUAD_TO:this.pathT(e,r);break;case C.ARC:this.pathA(e,r);break;case C.CLOSE_PATH:this.pathZ(e,r);break}return r}getBoundingBox(e){return this.path()}getMarkers(){var{pathParser:e}=this,t=e.getMarkerPoints(),r=e.getMarkerAngles(),i=t.map((n,o)=>[n,r[o]]);return i}renderChildren(e){this.path(e),this.document.screen.mouse.checkPath(this,e);var t=this.getStyle("fill-rule");e.fillStyle!==""&&(t.getString("inherit")!=="inherit"?e.fill(t.getString()):e.fill()),e.strokeStyle!==""&&(this.getAttribute("vector-effect").getString()==="non-scaling-stroke"?(e.save(),e.setTransform(1,0,0,1,0,0),e.stroke(),e.restore()):e.stroke());var r=this.getMarkers();if(r){var i=r.length-1,n=this.getStyle("marker-start"),o=this.getStyle("marker-mid"),s=this.getStyle("marker-end");if(n.isUrlDefinition()){var u=n.getDefinition(),[l,h]=r[0];u.render(e,l,h)}if(o.isUrlDefinition())for(var f=o.getDefinition(),c=1;c1&&(i*=Math.sqrt(c),n*=Math.sqrt(c));var v=(s===u?-1:1)*Math.sqrt((Math.pow(i,2)*Math.pow(n,2)-Math.pow(i,2)*Math.pow(f.y,2)-Math.pow(n,2)*Math.pow(f.x,2))/(Math.pow(i,2)*Math.pow(f.y,2)+Math.pow(n,2)*Math.pow(f.x,2)));isNaN(v)&&(v=0);var d=new V(v*i*f.y/n,v*-n*f.x/i),g=new V((t.x+h.x)/2+Math.cos(l)*d.x-Math.sin(l)*d.y,(t.y+h.y)/2+Math.sin(l)*d.x+Math.cos(l)*d.y),p=Eo([1,0],[(f.x-d.x)/i,(f.y-d.y)/n]),y=[(f.x-d.x)/i,(f.y-d.y)/n],x=[(-f.x-d.x)/i,(-f.y-d.y)/n],b=Eo(y,x);return Ti(y,x)<=-1&&(b=Math.PI),Ti(y,x)>=1&&(b=0),{currentPoint:h,rX:i,rY:n,sweepFlag:u,xAxisRotation:l,centp:g,a1:p,ad:b}}pathA(e,t){var{pathParser:r}=this,{currentPoint:i,rX:n,rY:o,sweepFlag:s,xAxisRotation:u,centp:l,a1:h,ad:f}=A.pathA(r),c=1-s?1:-1,v=h+c*(f/2),d=new V(l.x+n*Math.cos(v),l.y+o*Math.sin(v));if(r.addMarkerAngle(d,v-c*Math.PI/2),r.addMarkerAngle(i,v-c*Math.PI),t.addPoint(i.x,i.y),e&&!isNaN(h)&&!isNaN(f)){var g=n>o?n:o,p=n>o?1:n/o,y=n>o?o/n:1;e.translate(l.x,l.y),e.rotate(u),e.scale(p,y),e.arc(0,0,g,h,h+f,!!(1-s)),e.scale(1/p,1/y),e.rotate(-u),e.translate(-l.x,-l.y)}}static pathZ(e){e.current=e.start}pathZ(e,t){A.pathZ(this.pathParser),e&&t.x1!==t.x2&&t.y1!==t.y2&&e.closePath()}}class Cl extends A{constructor(e,t,r){super(e,t,r),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class we extends Ge{constructor(e,t,r){super(e,t,new.target===we?!0:r),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;super.setContext(e,t);var r=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();r&&(e.textBaseline=r)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(e){if(this.type!=="text")return this.getTElementBoundingBox(e);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e);var t=null;return this.children.forEach((r,i)=>{var n=this.getChildBoundingBox(e,this,this,i);t?t.addBoundingBox(n):t=n}),t}getFontSize(){var{document:e,parent:t}=this,r=J.parse(e.ctx.font).fontSize,i=t.getStyle("font-size").getNumber(r);return i}getTElementBoundingBox(e){var t=this.getFontSize();return new he(this.x,this.y-t,this.x+this.measureText(e),this.y)}getGlyph(e,t,r){var i=t[r],n=null;if(e.isArabic){var o=t.length,s=t[r-1],u=t[r+1],l="isolated";if((r===0||s===" ")&&r0&&s!==" "&&r0&&s!==" "&&(r===o-1||u===" ")&&(l="initial"),typeof e.glyphs[i]<"u"){var h=e.glyphs[i];n=h instanceof Cl?h:h[l]}}else n=e.glyphs[i];return n||(n=e.missingGlyph),n}getText(){return""}getTextFromNode(e){var t=e||this.node,r=Array.from(t.parentNode.childNodes),i=r.indexOf(t),n=r.length-1,o=vt(t.textContent||"");return i===0&&(o=l1(o)),i===n&&(o=h1(o)),o}renderChildren(e){if(this.type!=="text"){this.renderTElementChildren(e);return}this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e),this.children.forEach((r,i)=>{this.renderChild(e,this,this,i)});var{mouse:t}=this.document.screen;t.isWorking()&&t.checkBoundingBox(this,this.getBoundingBox(e))}renderTElementChildren(e){var{document:t,parent:r}=this,i=this.getText(),n=r.getStyle("font-family").getDefinition();if(n){for(var{unitsPerEm:o}=n.fontFace,s=J.parse(t.ctx.font),u=r.getStyle("font-size").getNumber(s.fontSize),l=r.getStyle("font-style").getString(s.fontStyle),h=u/o,f=n.isRTL?i.split("").reverse().join(""):i,c=ie(r.getAttribute("dx").getString()),v=f.length,d=0;d=this.leafTexts.length)){var e=this.leafTexts[this.textChunkStart],t=e.getStyle("text-anchor").getString("start"),r=!1,i=0;t==="start"&&!r||t==="end"&&r?i=e.x-this.minX:t==="end"&&!r||t==="start"&&r?i=e.x-this.maxX:i=e.x-(this.minX+this.maxX)/2;for(var n=this.textChunkStart;n{this.adjustChildCoordinatesRecursiveCore(e,this,this,r)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(e,t,r,i){var n=r.children[i];n.children.length>0?n.children.forEach((o,s)=>{t.adjustChildCoordinatesRecursiveCore(e,t,n,s)}):this.adjustChildCoordinates(e,t,r,i)}adjustChildCoordinates(e,t,r,i){var n=r.children[i];if(typeof n.measureText!="function")return n;e.save(),n.setContext(e,!0);var o=n.getAttribute("x"),s=n.getAttribute("y"),u=n.getAttribute("dx"),l=n.getAttribute("dy"),h=n.getStyle("font-family").getDefinition(),f=!!h&&h.isRTL;i===0&&(o.hasValue()||o.setValue(n.getInheritedAttribute("x")),s.hasValue()||s.setValue(n.getInheritedAttribute("y")),u.hasValue()||u.setValue(n.getInheritedAttribute("dx")),l.hasValue()||l.setValue(n.getInheritedAttribute("dy")));var c=n.measureText(e);return f&&(t.x-=c),o.hasValue()?(t.applyAnchoring(),n.x=o.getPixels("x"),u.hasValue()&&(n.x+=u.getPixels("x"))):(u.hasValue()&&(t.x+=u.getPixels("x")),n.x=t.x),t.x=n.x,f||(t.x+=c),s.hasValue()?(n.y=s.getPixels("y"),l.hasValue()&&(n.y+=l.getPixels("y"))):(l.hasValue()&&(t.y+=l.getPixels("y")),n.y=t.y),t.y=n.y,t.leafTexts.push(n),t.minX=Math.min(t.minX,n.x,n.x+c),t.maxX=Math.max(t.maxX,n.x,n.x+c),n.clearContext(e),e.restore(),n}getChildBoundingBox(e,t,r,i){var n=r.children[i];if(typeof n.getBoundingBox!="function")return null;var o=n.getBoundingBox(e);return o?(n.children.forEach((s,u)=>{var l=t.getChildBoundingBox(e,t,n,u);o.addBoundingBox(l)}),o):null}renderChild(e,t,r,i){var n=r.children[i];n.render(e),n.children.forEach((o,s)=>{t.renderChild(e,t,n,s)})}measureText(e){var{measureCache:t}=this;if(~t)return t;var r=this.getText(),i=this.measureTargetText(e,r);return this.measureCache=i,i}measureTargetText(e,t){if(!t.length)return 0;var{parent:r}=this,i=r.getStyle("font-family").getDefinition();if(i){for(var n=this.getFontSize(),o=i.isRTL?t.split("").reverse().join(""):t,s=ie(r.getAttribute("dx").getString()),u=o.length,l=0,h=0;h0?"":this.getTextFromNode()}getText(){return this.text}}class k1 extends Lr{constructor(){super(...arguments),this.type="textNode"}}class _t extends Ge{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(e){var t,{document:r}=this,{screen:i,window:n}=r,o=e.canvas;if(i.setDefaults(e),o.style&&typeof e.font<"u"&&n&&typeof n.getComputedStyle<"u"){e.font=n.getComputedStyle(o).getPropertyValue("font");var s=new O(r,"fontSize",J.parse(e.font).fontSize);s.hasValue()&&(r.rootEmSize=s.getPixels("y"),r.emSize=r.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:u,height:l}=i.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var h=this.getAttribute("refX"),f=this.getAttribute("refY"),c=this.getAttribute("viewBox"),v=c.hasValue()?ie(c.getString()):null,d=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible",g=0,p=0,y=0,x=0;v&&(g=v[0],p=v[1]),this.root||(u=this.getStyle("width").getPixels("x"),l=this.getStyle("height").getPixels("y"),this.type==="marker"&&(y=g,x=p,g=0,p=0)),i.viewPort.setCurrent(u,l),this.node&&(!this.parent||((t=this.node.parentNode)===null||t===void 0?void 0:t.nodeName)==="foreignObject")&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(e),e.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),v&&(u=v[2],l=v[3]),r.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:i.viewPort.width,desiredWidth:u,height:i.viewPort.height,desiredHeight:l,minX:g,minY:p,refX:h.getValue(),refY:f.getValue(),clip:d,clipX:y,clipY:x}),v&&(i.viewPort.removeCurrent(),i.viewPort.setCurrent(u,l))}clearContext(e){super.clearContext(e),this.document.screen.viewPort.removeCurrent()}resize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=this.getAttribute("width",!0),n=this.getAttribute("height",!0),o=this.getAttribute("viewBox"),s=this.getAttribute("style"),u=i.getNumber(0),l=n.getNumber(0);if(r)if(typeof r=="string")this.getAttribute("preserveAspectRatio",!0).setValue(r);else{var h=this.getAttribute("preserveAspectRatio");h.hasValue()&&h.setValue(h.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(i.setValue(e),n.setValue(t),o.hasValue()||o.setValue("0 0 ".concat(u||e," ").concat(l||t)),s.hasValue()){var f=this.getStyle("width"),c=this.getStyle("height");f.hasValue()&&f.setValue("".concat(e,"px")),c.hasValue()&&c.setValue("".concat(t,"px"))}}}class wl extends A{constructor(){super(...arguments),this.type="rect"}path(e){var t=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),i=this.getStyle("width",!1,!0).getPixels("x"),n=this.getStyle("height",!1,!0).getPixels("y"),o=this.getAttribute("rx"),s=this.getAttribute("ry"),u=o.getPixels("x"),l=s.getPixels("y");if(o.hasValue()&&!s.hasValue()&&(l=u),s.hasValue()&&!o.hasValue()&&(u=l),u=Math.min(u,i/2),l=Math.min(l,n/2),e){var h=4*((Math.sqrt(2)-1)/3);e.beginPath(),n>0&&i>0&&(e.moveTo(t+u,r),e.lineTo(t+i-u,r),e.bezierCurveTo(t+i-u+h*u,r,t+i,r+l-h*l,t+i,r+l),e.lineTo(t+i,r+n-l),e.bezierCurveTo(t+i,r+n-l+h*l,t+i-u+h*u,r+n,t+i-u,r+n),e.lineTo(t+u,r+n),e.bezierCurveTo(t+u-h*u,r+n,t,r+n-l+h*l,t,r+n-l),e.lineTo(t,r+l),e.bezierCurveTo(t,r+l-h*l,t+u-h*u,r,t+u,r),e.closePath())}return new he(t,r,t+i,r+n)}getMarkers(){return null}}class B1 extends A{constructor(){super(...arguments),this.type="circle"}path(e){var t=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),i=this.getAttribute("r").getPixels();return e&&i>0&&(e.beginPath(),e.arc(t,r,i,0,Math.PI*2,!1),e.closePath()),new he(t-i,r-i,t+i,r+i)}getMarkers(){return null}}class F1 extends A{constructor(){super(...arguments),this.type="ellipse"}path(e){var t=4*((Math.sqrt(2)-1)/3),r=this.getAttribute("rx").getPixels("x"),i=this.getAttribute("ry").getPixels("y"),n=this.getAttribute("cx").getPixels("x"),o=this.getAttribute("cy").getPixels("y");return e&&r>0&&i>0&&(e.beginPath(),e.moveTo(n+r,o),e.bezierCurveTo(n+r,o+t*i,n+t*r,o+i,n,o+i),e.bezierCurveTo(n-t*r,o+i,n-r,o+t*i,n-r,o),e.bezierCurveTo(n-r,o-t*i,n-t*r,o-i,n,o-i),e.bezierCurveTo(n+t*r,o-i,n+r,o-t*i,n+r,o),e.closePath()),new he(n-r,o-i,n+r,o+i)}getMarkers(){return null}}class j1 extends A{constructor(){super(...arguments),this.type="line"}getPoints(){return[new V(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new V(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(e){var[{x:t,y:r},{x:i,y:n}]=this.getPoints();return e&&(e.beginPath(),e.moveTo(t,r),e.lineTo(i,n)),new he(t,r,i,n)}getMarkers(){var[e,t]=this.getPoints(),r=e.angleTo(t);return[[e,r],[t,r]]}}class Al extends A{constructor(e,t,r){super(e,t,r),this.type="polyline",this.points=[],this.points=V.parsePath(this.getAttribute("points").getString())}path(e){var{points:t}=this,[{x:r,y:i}]=t,n=new he(r,i);return e&&(e.beginPath(),e.moveTo(r,i)),t.forEach(o=>{var{x:s,y:u}=o;n.addPoint(s,u),e&&e.lineTo(s,u)}),n}getMarkers(){var{points:e}=this,t=e.length-1,r=[];return e.forEach((i,n)=>{n!==t&&r.push([i,i.angleTo(e[n+1])])}),r.length>0&&r.push([e[e.length-1],r[r.length-1][1]]),r}}class U1 extends Al{constructor(){super(...arguments),this.type="polygon"}path(e){var t=super.path(e),[{x:r,y:i}]=this.points;return e&&(e.lineTo(r,i),e.closePath()),t}}class z1 extends I{constructor(){super(...arguments),this.type="pattern"}createPattern(e,t,r){var i=this.getStyle("width").getPixels("x",!0),n=this.getStyle("height").getPixels("y",!0),o=new _t(this.document,null);o.attributes.viewBox=new O(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.width=new O(this.document,"width","".concat(i,"px")),o.attributes.height=new O(this.document,"height","".concat(n,"px")),o.attributes.transform=new O(this.document,"transform",this.getAttribute("patternTransform").getValue()),o.children=this.children;var s=this.document.createCanvas(i,n),u=s.getContext("2d"),l=this.getAttribute("x"),h=this.getAttribute("y");l.hasValue()&&h.hasValue()&&u.translate(l.getPixels("x",!0),h.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var f=-1;f<=1;f++)for(var c=-1;c<=1;c++)u.save(),o.attributes.x=new O(this.document,"x",f*s.width),o.attributes.y=new O(this.document,"y",c*s.height),o.render(u),u.restore();var v=e.createPattern(s,"repeat");return v}}class G1 extends I{constructor(){super(...arguments),this.type="marker"}render(e,t,r){if(t){var{x:i,y:n}=t,o=this.getAttribute("orient").getString("auto"),s=this.getAttribute("markerUnits").getString("strokeWidth");e.translate(i,n),o==="auto"&&e.rotate(r),s==="strokeWidth"&&e.scale(e.lineWidth,e.lineWidth),e.save();var u=new _t(this.document,null);u.type=this.type,u.attributes.viewBox=new O(this.document,"viewBox",this.getAttribute("viewBox").getValue()),u.attributes.refX=new O(this.document,"refX",this.getAttribute("refX").getValue()),u.attributes.refY=new O(this.document,"refY",this.getAttribute("refY").getValue()),u.attributes.width=new O(this.document,"width",this.getAttribute("markerWidth").getValue()),u.attributes.height=new O(this.document,"height",this.getAttribute("markerHeight").getValue()),u.attributes.overflow=new O(this.document,"overflow",this.getAttribute("overflow").getValue()),u.attributes.fill=new O(this.document,"fill",this.getAttribute("fill").getColor("black")),u.attributes.stroke=new O(this.document,"stroke",this.getAttribute("stroke").getValue("none")),u.children=this.children,u.render(e),e.restore(),s==="strokeWidth"&&e.scale(1/e.lineWidth,1/e.lineWidth),o==="auto"&&e.rotate(-r),e.translate(-i,-n)}}}class H1 extends I{constructor(){super(...arguments),this.type="defs"}render(){}}class on extends Ge{constructor(){super(...arguments),this.type="g"}getBoundingBox(e){var t=new he;return this.children.forEach(r=>{t.addBoundingBox(r.getBoundingBox(e))}),t}}class Pl extends I{constructor(e,t,r){super(e,t,r),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:i,children:n}=this;n.forEach(o=>{o.type==="stop"&&i.push(o)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(e,t,r){var i=this;this.getHrefAttribute().hasValue()&&(i=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(i));var{stops:n}=i,o=this.getGradient(e,t);if(!o)return this.addParentOpacity(r,n[n.length-1].color);if(n.forEach(p=>{o.addColorStop(p.offset,this.addParentOpacity(r,p.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:s}=this,{MAX_VIRTUAL_PIXELS:u,viewPort:l}=s.screen,[h]=l.viewPorts,f=new wl(s,null);f.attributes.x=new O(s,"x",-u/3),f.attributes.y=new O(s,"y",-u/3),f.attributes.width=new O(s,"width",u),f.attributes.height=new O(s,"height",u);var c=new on(s,null);c.attributes.transform=new O(s,"transform",this.getAttribute("gradientTransform").getValue()),c.children=[f];var v=new _t(s,null);v.attributes.x=new O(s,"x",0),v.attributes.y=new O(s,"y",0),v.attributes.width=new O(s,"width",h.width),v.attributes.height=new O(s,"height",h.height),v.children=[c];var d=s.createCanvas(h.width,h.height),g=d.getContext("2d");return g.fillStyle=o,v.render(g),g.createPattern(d,"no-repeat")}return o}inheritStopContainer(e){this.attributesToInherit.forEach(t=>{!this.getAttribute(t).hasValue()&&e.getAttribute(t).hasValue()&&this.getAttribute(t,!0).setValue(e.getAttribute(t).getValue())})}addParentOpacity(e,t){if(e.hasValue()){var r=new O(this.document,"color",t);return r.addOpacity(e).getColor()}return t}}class Y1 extends Pl{constructor(e,t,r){super(e,t,r),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(e,t){var r=this.getGradientUnits()==="objectBoundingBox",i=r?t.getBoundingBox(e):null;if(r&&!i)return null;!this.getAttribute("x1").hasValue()&&!this.getAttribute("y1").hasValue()&&!this.getAttribute("x2").hasValue()&&!this.getAttribute("y2").hasValue()&&(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var n=r?i.x+i.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),o=r?i.y+i.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),s=r?i.x+i.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),u=r?i.y+i.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return n===s&&o===u?null:e.createLinearGradient(n,o,s,u)}}class X1 extends Pl{constructor(e,t,r){super(e,t,r),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(e,t){var r=this.getGradientUnits()==="objectBoundingBox",i=t.getBoundingBox(e);if(r&&!i)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var n=r?i.x+i.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),o=r?i.y+i.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),s=n,u=o;this.getAttribute("fx").hasValue()&&(s=r?i.x+i.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(u=r?i.y+i.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var l=r?(i.width+i.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),h=this.getAttribute("fr").getPixels();return e.createRadialGradient(s,u,h,n,o,l)}}class W1 extends I{constructor(e,t,r){super(e,t,r),this.type="stop";var i=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),n=this.getStyle("stop-opacity"),o=this.getStyle("stop-color",!0);o.getString()===""&&o.setValue("#000"),n.hasValue()&&(o=o.addOpacity(n)),this.offset=i,this.color=o.getColor()}}class un extends I{constructor(e,t,r){super(e,t,r),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,e.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new O(e,"values",null);var i=this.getAttribute("values");i.hasValue()&&this.values.setValue(i.getString().split(";"))}getProperty(){var e=this.getAttribute("attributeType").getString(),t=this.getAttribute("attributeName").getString();return e==="CSS"?this.parent.getStyle(t,!0):this.parent.getAttribute(t,!0)}calcValue(){var{initialUnits:e}=this,{progress:t,from:r,to:i}=this.getProgress(),n=r.getNumber()+(i.getNumber()-r.getNumber())*t;return e==="%"&&(n*=100),"".concat(n).concat(e)}update(e){var{parent:t}=this,r=this.getProperty();if(this.initialValue||(this.initialValue=r.getString(),this.initialUnits=r.getUnits()),this.duration>this.maxDuration){var i=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(i==="freeze"&&!this.frozen)this.frozen=!0,t.animationFrozen=!0,t.animationFrozenValue=r.getString();else if(i==="remove"&&!this.removed)return this.removed=!0,r.setValue(t.animationFrozen?t.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=e;var n=!1;if(this.begin{var l=n[u];return s+(l-s)*e}).join(" ");return o}}class K1 extends I{constructor(e,t,r){super(e,t,r),this.type="font",this.glyphs={},this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:i}=e,{children:n}=this;for(var o of n)switch(o.type){case"font-face":{this.fontFace=o;var s=o.getStyle("font-family");s.hasValue()&&(i[s.getString()]=this);break}case"missing-glyph":this.missingGlyph=o;break;case"glyph":{var u=o;u.arabicForm?(this.isRTL=!0,this.isArabic=!0,typeof this.glyphs[u.unicode]>"u"&&(this.glyphs[u.unicode]={}),this.glyphs[u.unicode][u.arabicForm]=u):this.glyphs[u.unicode]=u;break}}}render(){}}class Z1 extends I{constructor(e,t,r){super(e,t,r),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class J1 extends A{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class e2 extends we{constructor(){super(...arguments),this.type="tref"}getText(){var e=this.getHrefAttribute().getDefinition();if(e){var t=e.children[0];if(t)return t.getText()}return""}}class t2 extends we{constructor(e,t,r){super(e,t,r),this.type="a";var{childNodes:i}=t,n=i[0],o=i.length>0&&Array.from(i).every(s=>s.nodeType===3);this.hasText=o,this.text=o?this.getTextFromNode(n):""}getText(){return this.text}renderChildren(e){if(this.hasText){super.renderChildren(e);var{document:t,x:r,y:i}=this,{mouse:n}=t.screen,o=new O(t,"fontSize",J.parse(t.ctx.font).fontSize);n.isWorking()&&n.checkBoundingBox(this,new he(r,i-o.getPixels("y"),r+this.measureText(e),i))}else if(this.children.length>0){var s=new on(this.document,null);s.children=this.children,s.parent=this,s.render(e)}}onClick(){var{window:e}=this.document;e&&e.open(this.getHrefAttribute().getString())}onMouseMove(){var e=this.document.ctx;e.canvas.style.cursor="pointer"}}function No(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(a);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(a,i).enumerable})),t.push.apply(t,r)}return t}function ir(a){for(var e=1;e{var{type:i,points:n}=r;switch(i){case C.LINE_TO:e&&e.lineTo(n[0],n[1]);break;case C.MOVE_TO:e&&e.moveTo(n[0],n[1]);break;case C.CURVE_TO:e&&e.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);break;case C.QUAD_TO:e&&e.quadraticCurveTo(n[0],n[1],n[2],n[3]);break;case C.ARC:{var[o,s,u,l,h,f,c,v]=n,d=u>l?u:l,g=u>l?1:u/l,p=u>l?l/u:1;e&&(e.translate(o,s),e.rotate(c),e.scale(g,p),e.arc(0,0,d,h,h+f,!!(1-v)),e.scale(1/g,1/p),e.rotate(-c),e.translate(-o,-s));break}case C.CLOSE_PATH:e&&e.closePath();break}})}renderChildren(e){this.setTextData(e),e.save();var t=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),{glyphInfo:i}=this,n=e.fillStyle;t==="underline"&&e.beginPath(),i.forEach((o,s)=>{var{p0:u,p1:l,rotation:h,text:f}=o;e.save(),e.translate(u.x,u.y),e.rotate(h),e.fillStyle&&e.fillText(f,0,0),e.strokeStyle&&e.strokeText(f,0,0),e.restore(),t==="underline"&&(s===0&&e.moveTo(u.x,u.y+r/8),e.lineTo(l.x,l.y+r/5))}),t==="underline"&&(e.lineWidth=r/20,e.strokeStyle=n,e.stroke(),e.closePath()),e.restore()}getLetterSpacingAt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[e]||0}findSegmentToFitChar(e,t,r,i,n,o,s,u,l){var h=o,f=this.measureText(e,u);u===" "&&t==="justify"&&r-1&&(h+=this.getLetterSpacingAt(l));var c=this.textHeight/20,v=this.getEquidistantPointOnPath(h,c,0),d=this.getEquidistantPointOnPath(h+f,c,0),g={p0:v,p1:d},p=v&&d?Math.atan2(d.y-v.y,d.x-v.x):0;if(s){var y=Math.cos(Math.PI/2+p)*s,x=Math.cos(-p)*s;g.p0=ir(ir({},v),{},{x:v.x+y,y:v.y+x}),g.p1=ir(ir({},d),{},{x:d.x+y,y:d.y+x})}return h+=f,{offset:h,segment:g,rotation:p}}measureText(e,t){var{measuresCache:r}=this,i=t||this.getText();if(r.has(i))return r.get(i);var n=this.measureTargetText(e,i);return r.set(i,n),n}setTextData(e){if(!this.glyphInfo){var t=this.getText(),r=t.split(""),i=t.split(" ").length-1,n=this.parent.getAttribute("dx").split().map(T=>T.getPixels("x")),o=this.parent.getAttribute("dy").getPixels("y"),s=this.parent.getStyle("text-anchor").getString("start"),u=this.getStyle("letter-spacing"),l=this.parent.getStyle("letter-spacing"),h=0;!u.hasValue()||u.getValue()==="inherit"?h=l.getPixels():u.hasValue()&&u.getValue()!=="initial"&&u.getValue()!=="unset"&&(h=u.getPixels());var f=[],c=t.length;this.letterSpacingCache=f;for(var v=0;vE===0?0:T+$||0,0),g=this.measureText(e),p=Math.max(g+d,0);this.textWidth=g,this.textHeight=this.getFontSize(),this.glyphInfo=[];var y=this.getPathLength(),x=this.getStyle("startOffset").getNumber(0)*y,b=0;(s==="middle"||s==="center")&&(b=-p/2),(s==="end"||s==="right")&&(b=-p),b+=x,r.forEach((T,$)=>{var{offset:E,segment:S,rotation:w}=this.findSegmentToFitChar(e,s,p,y,i,b,o,T,$);b=E,!(!S.p0||!S.p1)&&this.glyphInfo.push({text:r[$],p0:S.p0,p1:S.p1,rotation:w})})}}parsePathData(e){if(this.pathLength=-1,!e)return[];var t=[],{pathParser:r}=e;for(r.reset();!r.isEnd();){var{current:i}=r,n=i?i.x:0,o=i?i.y:0,s=r.next(),u=s.type,l=[];switch(s.type){case C.MOVE_TO:this.pathM(r,l);break;case C.LINE_TO:u=this.pathL(r,l);break;case C.HORIZ_LINE_TO:u=this.pathH(r,l);break;case C.VERT_LINE_TO:u=this.pathV(r,l);break;case C.CURVE_TO:this.pathC(r,l);break;case C.SMOOTH_CURVE_TO:u=this.pathS(r,l);break;case C.QUAD_TO:this.pathQ(r,l);break;case C.SMOOTH_QUAD_TO:u=this.pathT(r,l);break;case C.ARC:l=this.pathA(r);break;case C.CLOSE_PATH:A.pathZ(r);break}s.type!==C.CLOSE_PATH?t.push({type:u,points:l,start:{x:n,y:o},pathLength:this.calcLength(n,o,u,l)}):t.push({type:C.CLOSE_PATH,points:[],pathLength:0})}return t}pathM(e,t){var{x:r,y:i}=A.pathM(e).point;t.push(r,i)}pathL(e,t){var{x:r,y:i}=A.pathL(e).point;return t.push(r,i),C.LINE_TO}pathH(e,t){var{x:r,y:i}=A.pathH(e).point;return t.push(r,i),C.LINE_TO}pathV(e,t){var{x:r,y:i}=A.pathV(e).point;return t.push(r,i),C.LINE_TO}pathC(e,t){var{point:r,controlPoint:i,currentPoint:n}=A.pathC(e);t.push(r.x,r.y,i.x,i.y,n.x,n.y)}pathS(e,t){var{point:r,controlPoint:i,currentPoint:n}=A.pathS(e);return t.push(r.x,r.y,i.x,i.y,n.x,n.y),C.CURVE_TO}pathQ(e,t){var{controlPoint:r,currentPoint:i}=A.pathQ(e);t.push(r.x,r.y,i.x,i.y)}pathT(e,t){var{controlPoint:r,currentPoint:i}=A.pathT(e);return t.push(r.x,r.y,i.x,i.y),C.QUAD_TO}pathA(e){var{rX:t,rY:r,sweepFlag:i,xAxisRotation:n,centp:o,a1:s,ad:u}=A.pathA(e);return i===0&&u>0&&(u-=2*Math.PI),i===1&&u<0&&(u+=2*Math.PI),[o.x,o.y,t,r,s,u,n,i]}calcLength(e,t,r,i){var n=0,o=null,s=null,u=0;switch(r){case C.LINE_TO:return this.getLineLength(e,t,i[0],i[1]);case C.CURVE_TO:for(n=0,o=this.getPointOnCubicBezier(0,e,t,i[0],i[1],i[2],i[3],i[4],i[5]),u=.01;u<=1;u+=.01)s=this.getPointOnCubicBezier(u,e,t,i[0],i[1],i[2],i[3],i[4],i[5]),n+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return n;case C.QUAD_TO:for(n=0,o=this.getPointOnQuadraticBezier(0,e,t,i[0],i[1],i[2],i[3]),u=.01;u<=1;u+=.01)s=this.getPointOnQuadraticBezier(u,e,t,i[0],i[1],i[2],i[3]),n+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return n;case C.ARC:{n=0;var l=i[4],h=i[5],f=i[4]+h,c=Math.PI/180;if(Math.abs(l-f)f;u-=c)s=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],u,0),n+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;else for(u=l+c;u5&&arguments[5]!==void 0?arguments[5]:t,s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:r,u=(n-r)/(i-t+it),l=Math.sqrt(e*e/(1+u*u));it)return null;var{dataArray:n}=this;for(var o of n){if(o&&(o.pathLength<5e-5||r+o.pathLength+5e-5=0&&u>f)break;i=this.getPointOnEllipticalArc(o.points[0],o.points[1],o.points[2],o.points[3],u,o.points[6]);break}case C.CURVE_TO:u=s/o.pathLength,u>1&&(u=1),i=this.getPointOnCubicBezier(u,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3],o.points[4],o.points[5]);break;case C.QUAD_TO:u=s/o.pathLength,u>1&&(u=1),i=this.getPointOnQuadraticBezier(u,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3]);break}if(i)return i;break}return null}getLineLength(e,t,r,i){return Math.sqrt((r-e)*(r-e)+(i-t)*(i-t))}getPathLength(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce((e,t)=>t.pathLength>0?e+t.pathLength:e,0)),this.pathLength}getPointOnCubicBezier(e,t,r,i,n,o,s,u,l){var h=u*$o(e)+o*Co(e)+i*wo(e)+t*Ao(e),f=l*$o(e)+s*Co(e)+n*wo(e)+r*Ao(e);return{x:h,y:f}}getPointOnQuadraticBezier(e,t,r,i,n,o,s){var u=o*Po(e)+i*Ro(e)+t*Io(e),l=s*Po(e)+n*Ro(e)+r*Io(e);return{x:u,y:l}}getPointOnEllipticalArc(e,t,r,i,n,o){var s=Math.cos(o),u=Math.sin(o),l={x:r*Math.cos(n),y:i*Math.sin(n)};return{x:e+(l.x*s-l.y*u),y:t+(l.x*u+l.y*s)}}buildEquidistantCache(e,t){var r=this.getPathLength(),i=t||.25,n=e||r/100;if(!this.equidistantCache||this.equidistantCache.step!==n||this.equidistantCache.precision!==i){this.equidistantCache={step:n,precision:i,points:[]};for(var o=0,s=0;s<=r;s+=i){var u=this.getPointOnPath(s),l=this.getPointOnPath(s+i);!u||!l||(o+=this.getLineLength(u.x,u.y,l.x,l.y),o>=n&&(this.equidistantCache.points.push({x:u.x,y:u.y,distance:s}),o-=n))}}}getEquidistantPointOnPath(e,t,r){if(this.buildEquidistantCache(t,r),e<0||e-this.getPathLength()>5e-5)return null;var i=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[i]||null}}var a2=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class i2 extends Ge{constructor(e,t,r){super(e,t,r),this.type="image",this.loaded=!1;var i=this.getHrefAttribute().getString();if(i){var n=i.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(i);e.images.push(this),n?this.loadSvg(i):this.loadImage(i),this.isSvg=n}}loadImage(e){var t=this;return xe(function*(){try{var r=yield t.document.createImage(e);t.image=r}catch(i){console.error('Error while loading image "'.concat(e,'":'),i)}t.loaded=!0})()}loadSvg(e){var t=this;return xe(function*(){var r=a2.exec(e);if(r){var i=r[5];r[4]==="base64"?t.image=atob(i):t.image=decodeURIComponent(i)}else try{var n=yield t.document.fetch(e),o=yield n.text();t.image=o}catch(s){console.error('Error while loading image "'.concat(e,'":'),s)}t.loaded=!0})()}renderChildren(e){var{document:t,image:r,loaded:i}=this,n=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),u=this.getStyle("height").getPixels("y");if(!(!i||!r||!s||!u)){if(e.save(),e.translate(n,o),this.isSvg){var l=t.canvg.forkString(e,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:s,scaleHeight:u});l.document.documentElement.parent=this,l.render()}else{var h=this.image;t.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:s,desiredWidth:h.width,height:u,desiredHeight:h.height}),this.loaded&&(typeof h.complete>"u"||h.complete)&&e.drawImage(h,0,0)}e.restore()}}getBoundingBox(){var e=this.getAttribute("x").getPixels("x"),t=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),i=this.getStyle("height").getPixels("y");return new he(e,t,e+r,t+i)}}class n2 extends Ge{constructor(){super(...arguments),this.type="symbol"}render(e){}}class s2{constructor(e){this.document=e,this.loaded=!1,e.fonts.push(this)}load(e,t){var r=this;return xe(function*(){try{var{document:i}=r,n=yield i.canvg.parser.load(t),o=n.getElementsByTagName("font");Array.from(o).forEach(s=>{var u=i.createElement(s);i.definitions[e]=u})}catch(s){console.error('Error while loading font "'.concat(t,'":'),s)}r.loaded=!0})()}}class Rl extends I{constructor(e,t,r){super(e,t,r),this.type="style";var i=vt(Array.from(t.childNodes).map(o=>o.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),n=i.split("}");n.forEach(o=>{var s=o.trim();if(s){var u=s.split("{"),l=u[0].split(","),h=u[1].split(";");l.forEach(f=>{var c=f.trim();if(c){var v=e.styles[c]||{};if(h.forEach(p=>{var y=p.indexOf(":"),x=p.substr(0,y).trim(),b=p.substr(y+1,p.length-y).trim();x&&b&&(v[x]=new O(e,x,b))}),e.styles[c]=v,e.stylesSpecificity[c]=T1(c),c==="@font-face"){var d=v["font-family"].getString().replace(/"|'/g,""),g=v.src.getString().split(",");g.forEach(p=>{if(p.indexOf('format("svg")')>0){var y=Tl(p);y&&new s2(e).load(d,y)}})}}})}})}}Rl.parseExternalUrl=Tl;class o2 extends Ge{constructor(){super(...arguments),this.type="use"}setContext(e){super.setContext(e);var t=this.getAttribute("x"),r=this.getAttribute("y");t.hasValue()&&e.translate(t.getPixels("x"),0),r.hasValue()&&e.translate(0,r.getPixels("y"))}path(e){var{element:t}=this;t&&t.path(e)}renderChildren(e){var{document:t,element:r}=this;if(r){var i=r;if(r.type==="symbol"&&(i=new _t(t,null),i.attributes.viewBox=new O(t,"viewBox",r.getAttribute("viewBox").getString()),i.attributes.preserveAspectRatio=new O(t,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),i.attributes.overflow=new O(t,"overflow",r.getAttribute("overflow").getString()),i.children=r.children,r.styles.opacity=new O(t,"opacity",this.calculateOpacity())),i.type==="svg"){var n=this.getStyle("width",!1,!0),o=this.getStyle("height",!1,!0);n.hasValue()&&(i.attributes.width=new O(t,"width",n.getString())),o.hasValue()&&(i.attributes.height=new O(t,"height",o.getString()))}var s=i.parent;i.parent=this,i.render(e),i.parent=s}}getBoundingBox(e){var{element:t}=this;return t?t.getBoundingBox(e):null}elementTransform(){var{document:e,element:t}=this;return Be.fromElement(e,t)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function nr(a,e,t,r,i,n){return a[t*r*4+e*4+n]}function sr(a,e,t,r,i,n,o){a[t*r*4+e*4+n]=o}function F(a,e,t){var r=a[e];return r*t}function me(a,e,t,r){return e+Math.cos(a)*t+Math.sin(a)*r}class Il extends I{constructor(e,t,r){super(e,t,r),this.type="feColorMatrix";var i=ie(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":{var n=i[0];i=[.213+.787*n,.715-.715*n,.072-.072*n,0,0,.213-.213*n,.715+.285*n,.072-.072*n,0,0,.213-.213*n,.715-.715*n,.072+.928*n,0,0,0,0,0,1,0,0,0,0,0,1];break}case"hueRotate":{var o=i[0]*Math.PI/180;i=[me(o,.213,.787,-.213),me(o,.715,-.715,-.715),me(o,.072,-.072,.928),0,0,me(o,.213,-.213,.143),me(o,.715,.285,.14),me(o,.072,-.072,-.283),0,0,me(o,.213,-.213,-.787),me(o,.715,-.715,.715),me(o,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break}case"luminanceToAlpha":i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}this.matrix=i,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(e,t,r,i,n){for(var{includeOpacity:o,matrix:s}=this,u=e.getImageData(0,0,i,n),l=0;l{u.addBoundingBox(d.getBoundingBox(e))}),i=Math.floor(u.x1),n=Math.floor(u.y1),o=Math.floor(u.width),s=Math.floor(u.height)}var l=this.removeStyles(t,kr.ignoreStyles),h=r.createCanvas(i+o,n+s),f=h.getContext("2d");r.screen.setDefaults(f),this.renderChildren(f),new Il(r,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(f,0,0,i+o,n+s);var c=r.createCanvas(i+o,n+s),v=c.getContext("2d");r.screen.setDefaults(v),t.render(v),v.globalCompositeOperation="destination-in",v.fillStyle=f.createPattern(h,"no-repeat"),v.fillRect(0,0,i+o,n+s),e.fillStyle=v.createPattern(c,"no-repeat"),e.fillRect(0,0,i+o,n+s),this.restoreStyles(t,l)}render(e){}}kr.ignoreStyles=["mask","transform","clip-path"];var Mo=()=>{};class u2 extends I{constructor(){super(...arguments),this.type="clipPath"}apply(e){var{document:t}=this,r=Reflect.getPrototypeOf(e),{beginPath:i,closePath:n}=e;r&&(r.beginPath=Mo,r.closePath=Mo),Reflect.apply(i,e,[]),this.children.forEach(o=>{if(!(typeof o.path>"u")){var s=typeof o.elementTransform<"u"?o.elementTransform():null;s||(s=Be.fromElement(t,o)),s&&s.apply(e),o.path(e),r&&(r.closePath=n),s&&s.unapply(e)}}),Reflect.apply(n,e,[]),e.clip(),r&&(r.beginPath=i,r.closePath=n)}render(e){}}class Br extends I{constructor(){super(...arguments),this.type="filter"}apply(e,t){var{document:r,children:i}=this,n=t.getBoundingBox(e);if(n){var o=0,s=0;i.forEach(y=>{var x=y.extraFilterDistance||0;o=Math.max(o,x),s=Math.max(s,x)});var u=Math.floor(n.width),l=Math.floor(n.height),h=u+2*o,f=l+2*s;if(!(h<1||f<1)){var c=Math.floor(n.x),v=Math.floor(n.y),d=this.removeStyles(t,Br.ignoreStyles),g=r.createCanvas(h,f),p=g.getContext("2d");r.screen.setDefaults(p),p.translate(-c+o,-v+s),t.render(p),i.forEach(y=>{typeof y.apply=="function"&&y.apply(p,0,0,h,f)}),e.drawImage(g,0,0,h,f,c-o,v-s,h,f),this.restoreStyles(t,d)}}}render(e){}}Br.ignoreStyles=["filter","transform","clip-path"];class l2 extends I{constructor(e,t,r){super(e,t,r),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(e,t,r,i,n){}}class h2 extends I{constructor(){super(...arguments),this.type="feMorphology"}apply(e,t,r,i,n){}}class v2 extends I{constructor(){super(...arguments),this.type="feComposite"}apply(e,t,r,i,n){}}class f2 extends I{constructor(e,t,r){super(e,t,r),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(e,t,r,i,n){var{document:o,blurRadius:s}=this,u=o.window?o.window.document.body:null,l=e.canvas;l.id=o.getUniqueId(),u&&(l.style.display="none",u.appendChild(l)),n1(l,t,r,i,n,s),u&&u.removeChild(l)}}class c2 extends I{constructor(){super(...arguments),this.type="title"}}class g2 extends I{constructor(){super(...arguments),this.type="desc"}}var d2={svg:_t,rect:wl,circle:B1,ellipse:F1,line:j1,polyline:Al,polygon:U1,path:A,pattern:z1,marker:G1,defs:H1,linearGradient:Y1,radialGradient:X1,stop:W1,animate:un,animateColor:q1,animateTransform:Q1,font:K1,"font-face":Z1,"missing-glyph":J1,glyph:Cl,text:we,tspan:Lr,tref:e2,a:t2,textPath:r2,image:i2,g:on,symbol:n2,style:Rl,use:o2,mask:kr,clipPath:u2,filter:Br,feDropShadow:l2,feMorphology:h2,feComposite:v2,feColorMatrix:Il,feGaussianBlur:f2,title:c2,desc:g2};function _o(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(a);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(a,i).enumerable})),t.push.apply(t,r)}return t}function p2(a){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:!1,t=document.createElement("img");return e&&(t.crossOrigin="Anonymous"),new Promise((r,i)=>{t.onload=()=>{r(t)},t.onerror=(n,o,s,u,l)=>{i(l)},t.src=a})}),Si.apply(this,arguments)}class $e{constructor(e){var{rootEmSize:t=12,emSize:r=12,createCanvas:i=$e.createCanvas,createImage:n=$e.createImage,anonymousCrossOrigin:o}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.canvg=e,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=e.screen,this.rootEmSize=t,this.emSize=r,this.createCanvas=i,this.createImage=this.bindCreateImage(n,o),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(e,t){return typeof t=="boolean"?(r,i)=>e(r,typeof i=="boolean"?i:t):e}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:e}=this;return e[e.length-1]}set emSize(e){var{emSizeStack:t}=this;t.push(e)}popEmSize(){var{emSizeStack:e}=this;e.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(e=>e.loaded)}isFontsLoaded(){return this.fonts.every(e=>e.loaded)}createDocumentElement(e){var t=this.createElement(e.documentElement);return t.root=!0,t.addStylesFromStyleDefinition(),this.documentElement=t,t}createElement(e){var t=e.nodeName.replace(/^[^:]+:/,""),r=$e.elementTypes[t];return typeof r<"u"?new r(this,e):new M1(this,e)}createTextNode(e){return new k1(this,e)}setViewBox(e){this.screen.setViewBox(p2({document:this},e))}}$e.createCanvas=y2;$e.createImage=m2;$e.elementTypes=d2;function Do(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(a);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(a,i).enumerable})),t.push.apply(t,r)}return t}function De(a){for(var e=1;e2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new Ga(r),this.screen=new Vr(e,r),this.options=r;var i=new $e(this,r),n=i.createDocumentElement(t);this.document=i,this.documentElement=n}static from(e,t){var r=arguments;return xe(function*(){var i=r.length>2&&r[2]!==void 0?r[2]:{},n=new Ga(i),o=yield n.parse(t);return new xt(e,o,i)})()}static fromString(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=new Ga(r),n=i.parseFromString(t);return new xt(e,n,r)}fork(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return xt.from(e,t,De(De({},this.options),r))}forkString(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return xt.fromString(e,t,De(De({},this.options),r))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var e=arguments,t=this;return xe(function*(){var r=e.length>0&&e[0]!==void 0?e[0]:{};t.start(De({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},r)),yield t.ready(),t.stop()})()}start(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{documentElement:t,screen:r,options:i}=this;r.start(t,De(De({enableRedraw:!0},i),e))}stop(){this.screen.stop()}resize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(e,t,r)}}export{t2 as AElement,q1 as AnimateColorElement,un as AnimateElement,Q1 as AnimateTransformElement,he as BoundingBox,$o as CB1,Co as CB2,wo as CB3,Ao as CB4,xt as Canvg,B1 as CircleElement,u2 as ClipPathElement,H1 as DefsElement,g2 as DescElement,$e as Document,I as Element,F1 as EllipseElement,Il as FeColorMatrixElement,v2 as FeCompositeElement,l2 as FeDropShadowElement,f2 as FeGaussianBlurElement,h2 as FeMorphologyElement,Br as FilterElement,J as Font,K1 as FontElement,Z1 as FontFaceElement,on as GElement,Cl as GlyphElement,Pl as GradientElement,i2 as ImageElement,j1 as LineElement,Y1 as LinearGradientElement,G1 as MarkerElement,kr as MaskElement,El as Matrix,J1 as MissingGlyphElement,O1 as Mouse,it as PSEUDO_ZERO,Ga as Parser,A as PathElement,C as PathParser,z1 as PatternElement,V as Point,U1 as PolygonElement,Al as PolylineElement,O as Property,Po as QB1,Ro as QB2,Io as QB3,X1 as RadialGradientElement,wl as RectElement,Ge as RenderedElement,w1 as Rotate,_t as SVGElement,s2 as SVGFontLoader,A1 as Scale,Vr as Screen,$l as Skew,P1 as SkewX,R1 as SkewY,W1 as StopElement,Rl as StyleElement,n2 as SymbolElement,e2 as TRefElement,Lr as TSpanElement,we as TextElement,r2 as TextPathElement,c2 as TitleElement,Be as Transform,C1 as Translate,M1 as UnknownElement,o2 as UseElement,S1 as ViewPort,vt as compressSpaces,xt as default,T1 as getSelectorSpecificity,f1 as normalizeAttributeName,c1 as normalizeColor,Tl as parseExternalUrl,S2 as presets,ie as toNumbers,l1 as trimLeft,h1 as trimRight,Oo as vectorMagnitude,Eo as vectorsAngle,Ti as vectorsRatio}; diff --git a/wp-content/themes/player-key/dist/_chunk.23102255.js b/wp-content/themes/player-key/dist/_chunk.23102255.js new file mode 100644 index 0000000..7e9f0fd --- /dev/null +++ b/wp-content/themes/player-key/dist/_chunk.23102255.js @@ -0,0 +1 @@ +var u=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function f(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function l(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var t=function o(){return this instanceof o?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};t.prototype=r.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:function(){return e[o]}})}),t}export{f as a,u as c,l as g}; diff --git a/wp-content/themes/player-key/dist/_chunk.2bdaff41.js b/wp-content/themes/player-key/dist/_chunk.2bdaff41.js new file mode 100644 index 0000000..76fb334 --- /dev/null +++ b/wp-content/themes/player-key/dist/_chunk.2bdaff41.js @@ -0,0 +1 @@ +import{H as b}from"./_chunk.43d6d570.js";import{F as V}from"./_chunk.95ba0f4f.js";import{E as F}from"./_chunk.2d418ff2.js";import{M as y}from"./_chunk.322796ac.js";import{_ as k,r as a,o as m,c as p,a as i,w as l,n as L,g as _,h as d,b as r,e as n,i as v}from"./main.c6ab2dd8.js";const x={name:"LoginView",components:{MessageList:y,ErrorList:F,Heading:b,FormItemText:V},data(){return{form:{email:"",password:""},isFormValid:!1}},computed:{errors(){return this.$store.state.authentication.validationErrors},messages(){return this.$store.state.authentication.messages}},watch:{form:{handler(){this.isFormValid=this.isRequiredFieldsFiled()},deep:!0}},methods:{isRequiredFieldsFiled(){return this.form.email!==""&&this.form.password!==""},async formSubmit(){this.$store.dispatch("login",this.form).then(f=>{this.$store.state.authentication.athleteToken?this.$router.push({name:"board-entity",params:{entity:"athletes"}}):this.$router.push({name:"board"})})}}},E={class:"wrapper wrapper--form"},S={class:"form__fieldset"},q={class:"form__links"},M={class:"form__actions"},N=["disabled"],T={key:0,class:"form__actions-note"},B=r("sup",null,"(*)",-1);function C(f,e,H,I,s,t){const h=a("Heading"),g=a("ErrorList"),w=a("MessageList"),u=a("FormItemText"),c=a("RouterLink");return m(),p("div",E,[i(h,{level:1,class:L("form-holder__heading")},{default:l(()=>[n("Sign in")]),_:1}),t.errors.length?(m(),_(g,{key:0,errors:t.errors},null,8,["errors"])):d("",!0),t.messages.length?(m(),_(w,{key:1,messages:t.messages,type:"success"},null,8,["messages"])):d("",!0),r("form",{class:"form",onSubmit:e[2]||(e[2]=v((...o)=>t.formSubmit&&t.formSubmit(...o),["prevent"]))},[r("div",S,[i(u,{name:"email",label:"Email","input-type":"email","is-required":!0,modelValue:s.form.email,"onUpdate:modelValue":e[0]||(e[0]=o=>s.form.email=o)},null,8,["modelValue"]),i(u,{name:"password",label:"Password","input-type":"password","is-required":!0,modelValue:s.form.password,"onUpdate:modelValue":e[1]||(e[1]=o=>s.form.password=o)},null,8,["modelValue"])]),r("div",q,[i(c,{to:{name:"sign-up"}},{default:l(()=>[n("Not registered?")]),_:1}),i(c,{to:{name:"password-reset"}},{default:l(()=>[n("Lost your password?")]),_:1})]),r("div",M,[r("button",{type:"submit",class:"button button--lime",disabled:!s.isFormValid},"Submit",8,N),s.isFormValid?d("",!0):(m(),p("span",T,[n("Please fill in all required "),B,n(" fields")]))])],32)])}const A=k(x,[["render",C]]);export{A as default}; diff --git a/wp-content/themes/player-key/dist/_chunk.2d418ff2.js b/wp-content/themes/player-key/dist/_chunk.2d418ff2.js new file mode 100644 index 0000000..caf123a --- /dev/null +++ b/wp-content/themes/player-key/dist/_chunk.2d418ff2.js @@ -0,0 +1 @@ +import{_ as o,o as e,c as r,F as _,d as n,b as a}from"./main.c6ab2dd8.js";const c={name:"ErrorList",props:{errors:{type:Array,required:!0}}},i={class:"error-list"},d={class:"error-list__item"},l=["innerHTML"];function p(u,m,s,L,f,E){return e(),r("ul",i,[(e(!0),r(_,null,n(s.errors,t=>(e(),r("li",d,[a("div",{innerHTML:t},null,8,l)]))),256))])}const v=o(c,[["render",p],["__scopeId","data-v-ead1de59"]]);export{v as E}; diff --git a/wp-content/themes/player-key/dist/_chunk.322796ac.js b/wp-content/themes/player-key/dist/_chunk.322796ac.js new file mode 100644 index 0000000..22ddca3 --- /dev/null +++ b/wp-content/themes/player-key/dist/_chunk.322796ac.js @@ -0,0 +1 @@ +import{_ as a,o as e,c as s,F as n,d as _,b as o,n as i}from"./main.c6ab2dd8.js";const c={name:"MessageList",props:{type:{type:String,required:!0,default:"error"},messages:{type:Array,required:!0}}},l={class:"error-list__item"},d=["innerHTML"];function u(p,m,t,g,y,f){return e(),s("ul",{class:i(["message-list",`message-list--${t.type}`])},[(e(!0),s(n,null,_(t.messages,r=>(e(),s("li",l,[o("div",{innerHTML:r},null,8,d)]))),256))],2)}const M=a(c,[["render",u],["__scopeId","data-v-e33d7482"]]);export{M}; diff --git a/wp-content/themes/player-key/dist/_chunk.40950486.js b/wp-content/themes/player-key/dist/_chunk.40950486.js new file mode 100644 index 0000000..697da68 --- /dev/null +++ b/wp-content/themes/player-key/dist/_chunk.40950486.js @@ -0,0 +1,195 @@ +import{D as ls}from"./main.c6ab2dd8.js";function fe(i){"@babel/helpers - typeof";return fe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fe(i)}var Qe=Uint8Array,tn=Uint16Array,sa=Uint32Array,so=new Qe([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,0,0,0]),co=new Qe([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,0,0]),hs=new Qe([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),xc=function(i,e){for(var n=new tn(31),a=0;a<31;++a)n[a]=e+=1<>>1|(ye&21845)<<1;Pr=(Pr&52428)>>>2|(Pr&13107)<<2,Pr=(Pr&61680)>>>4|(Pr&3855)<<4,ds[ye]=((Pr&65280)>>>8|(Pr&255)<<8)>>>1}var Kn=function(i,e,n){for(var a=i.length,c=0,o=new tn(e);c>>f]=g}else for(h=new tn(a),c=0;c>>15-i[c];return h},Ir=new Qe(288);for(var ye=0;ye<144;++ye)Ir[ye]=8;for(var ye=144;ye<256;++ye)Ir[ye]=9;for(var ye=256;ye<280;++ye)Ir[ye]=7;for(var ye=280;ye<288;++ye)Ir[ye]=8;var ca=new Qe(32);for(var ye=0;ye<32;++ye)ca[ye]=5;var Su=Kn(Ir,9,0),_u=Kn(Ir,9,1),Pu=Kn(ca,5,0),ku=Kn(ca,5,1),es=function(i){for(var e=i[0],n=1;ne&&(e=i[n]);return e},Bn=function(i,e,n){var a=e/8>>0;return(i[a]|i[a+1]<<8)>>>(e&7)&n},ns=function(i,e){var n=e/8>>0;return(i[n]|i[n+1]<<8|i[n+2]<<16)>>>(e&7)},Ns=function(i){return(i/8>>0)+(i&7&&1)},kc=function(i,e,n){(e==null||e<0)&&(e=0),(n==null||n>i.length)&&(n=i.length);var a=new(i instanceof tn?tn:i instanceof sa?sa:Qe)(n-e);return a.set(i.subarray(e,n)),a},Fu=function(i,e,n){var a=i.length,c=!e||n,o=!n||n.i;n||(n={}),e||(e=new Qe(a*3));var l=function(Y){var Q=e.length;if(Y>Q){var et=new Qe(Math.max(Q*2,Y));et.set(e),e=et}},h=n.f||0,f=n.p||0,g=n.b||0,b=n.l,A=n.d,S=n.m,p=n.n,O=a*8;do{if(!b){n.f=h=Bn(i,f,1);var I=Bn(i,f+1,3);if(f+=3,I)if(I==1)b=_u,A=ku,S=9,p=5;else if(I==2){var X=Bn(i,f,31)+257,ot=Bn(i,f+10,15)+4,ut=X+Bn(i,f+5,31)+1;f+=14;for(var wt=new Qe(ut),tt=new Qe(19),R=0;RO)break;for(var F=Kn(tt,gt,1),R=0;R>>4;if(q<16)wt[R++]=q;else{var z=0,D=0;for(q==16?(D=3+Bn(i,f,3),f+=2,z=wt[R-1]):q==17?(D=3+Bn(i,f,7),f+=3):q==18&&(D=11+Bn(i,f,127),f+=7);D--;)wt[R++]=z}}var at=wt.subarray(0,X),nt=wt.subarray(X);S=es(at),p=es(nt),b=Kn(at,S,1),A=Kn(nt,p,1)}else throw"invalid block type";else{var q=Ns(f)+4,_=i[q-4]|i[q-3]<<8,M=q+_;if(M>a){if(o)throw"unexpected EOF";break}c&&l(g+_),e.set(i.subarray(q,M),g),n.b=g+=_,n.p=f=M*8;continue}if(f>O)throw"unexpected EOF"}c&&l(g+131072);for(var lt=(1<>>4;if(f+=z&15,f>O)throw"unexpected EOF";if(!z)throw"invalid length/literal";if(ht<256)e[g++]=ht;else if(ht==256){b=null;break}else{var kt=ht-254;if(ht>264){var R=ht-257,L=so[R];kt=Bn(i,f,(1<>>4;if(!j)throw"invalid distance";f+=j&15;var nt=xu[B];if(B>3){var L=co[B];nt+=ns(i,f)&(1<O)throw"unexpected EOF";c&&l(g+131072);for(var W=g+kt;g>0;i[a]|=n,i[a+1]|=n>>>8},ia=function(i,e,n){n<<=e&7;var a=e/8>>0;i[a]|=n,i[a+1]|=n>>>8,i[a+2]|=n>>>16},rs=function(i,e){for(var n=[],a=0;aS&&(S=o[a].s);var p=new tn(S+1),O=ps(n[b-1],p,0);if(O>e){var a=0,I=0,q=O-e,_=1<e)I+=_-(1<>>=q;I>0;){var X=o[a].s;p[X]=0&&I;--a){var ot=o[a].s;p[ot]==e&&(--p[ot],++I)}O=e}return[new Qe(p),O]},ps=function(i,e,n){return i.s==-1?Math.max(ps(i.l,e,n+1),ps(i.r,e,n+1)):e[i.s]=n},ac=function(i){for(var e=i.length;e&&!i[--e];);for(var n=new tn(++e),a=0,c=i[0],o=1,l=function(f){n[a++]=f},h=1;h<=e;++h)if(i[h]==c&&h!=e)++o;else{if(!c&&o>2){for(;o>138;o-=138)l(32754);o>2&&(l(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(l(c),--o;o>6;o-=6)l(8304);o>2&&(l(o-3<<5|8208),o=0)}for(;o--;)l(c);o=1,c=i[h]}return[n.subarray(0,a),e]},aa=function(i,e){for(var n=0,a=0;a>>8,i[c+2]=i[c]^255,i[c+3]=i[c+1]^255;for(var o=0;o4&&!dt[hs[P-1]];--P);var z=g+5<<3,D=aa(c,Ir)+aa(o,ca)+l,at=aa(c,S)+aa(o,I)+l+14+3*P+aa(tt,dt)+(2*tt[16]+3*tt[17]+7*tt[18]);if(z<=D&&z<=at)return to(e,b,i.subarray(f,f+g));var nt,lt,$,ft;if(lr(e,b,1+(at15&&(lr(e,b,j[R]>>>5&127),b+=j[R]>>>12)}}else nt=Su,lt=Ir,$=Pu,ft=ca;for(var R=0;R255){var B=a[R]>>>18&31;ia(e,b,nt[B+257]),b+=lt[B+257],B>7&&(lr(e,b,a[R]>>>23&31),b+=so[B]);var W=a[R]&31;ia(e,b,$[W]),b+=ft[W],W>3&&(ia(e,b,a[R]>>>5&8191),b+=co[W])}else ia(e,b,nt[a[R]]),b+=lt[a[R]];return ia(e,b,nt[256]),b+lt[256]},Iu=new sa([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Cu=new Qe(0),ju=function(i,e,n,a,c,o){var l=i.length,h=new Qe(a+l+5*(1+Math.floor(l/7e3))+c),f=h.subarray(a,h.length-c),g=0;if(!e||l<8)for(var b=0;b<=l;b+=65535){var A=b+65535;A>>13,O=S&8191,I=(1<7e3||dt>24576)&&nt>423){g=oc(i,f,0,ut,wt,tt,gt,dt,P,b-P,g),dt=R=gt=0,P=b;for(var lt=0;lt<286;++lt)wt[lt]=0;for(var lt=0;lt<30;++lt)tt[lt]=0}var $=2,ft=0,ht=O,kt=D-at&32767;if(nt>2&&z==ot(b-kt))for(var L=Math.min(p,nt)-1,j=Math.min(32767,b),B=Math.min(258,nt);kt<=j&&--ht&&D!=at;){if(i[b+$]==i[b+$-kt]){for(var W=0;W$){if($=W,ft=kt,W>L)break;for(var Y=Math.min(kt,W-2),Q=0,lt=0;ltQ&&(Q=At,at=et)}}}D=at,at=q[D],kt+=D-at+32768&32767}if(ft){ut[dt++]=268435456|fs[$]<<18|ic[ft];var Nt=fs[$]&31,Ct=ic[ft]&31;gt+=so[Nt]+co[Ct],++wt[257+Nt],++tt[Ct],F=b+$,++R}else ut[dt++]=i[b],++wt[i[b]]}}g=oc(i,f,o,ut,wt,tt,gt,dt,P,b-P,g),o||(g=to(f,g,Cu))}return kc(h,0,a+Ns(g)+c)},Ou=function(){var i=1,e=0;return{p:function(n){for(var a=i,c=e,o=n.length,l=0;l!=o;){for(var h=Math.min(l+5552,o);l>>8<<16|(e&255)<<8|e>>>8)+((i&255)<<23)*2}}},Mu=function(i,e,n,a,c){return ju(i,e.level==null?6:e.level,e.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(i.length)))*1.5):12+e.mem,n,a,!c)},Bu=function(i,e,n){for(;n;++e)i[e]=n,n>>>=8},Eu=function(i,e){var n=e.level,a=n==0?0:n<6?1:n==9?3:2;i[0]=120,i[1]=a<<6|(a?32-2*a:1)},qu=function(i){if((i[0]&15)!=8||i[0]>>>4>7||(i[0]<<8|i[1])%31)throw"invalid zlib data";if(i[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function gs(i,e){e===void 0&&(e={});var n=Ou();n.p(i);var a=Mu(i,e,2,4);return Eu(a,e),Bu(a,a.length-4,n.d()),a}function Du(i,e){return Fu((qu(i),i.subarray(2,-4)),e)}var Ut=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function is(){Ut.console&&typeof Ut.console.log=="function"&&Ut.console.log.apply(Ut.console,arguments)}var ve={log:is,warn:function(i){Ut.console&&(typeof Ut.console.warn=="function"?Ut.console.warn.apply(Ut.console,arguments):is.call(null,arguments))},error:function(i){Ut.console&&(typeof Ut.console.error=="function"?Ut.console.error.apply(Ut.console,arguments):is(i))}};function as(i,e,n){var a=new XMLHttpRequest;a.open("GET",i),a.responseType="blob",a.onload=function(){Ur(a.response,e,n)},a.onerror=function(){ve.error("could not download file")},a.send()}function sc(i){var e=new XMLHttpRequest;e.open("HEAD",i,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function Ka(i){try{i.dispatchEvent(new MouseEvent("click"))}catch{var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),i.dispatchEvent(e)}}var oa,ms,Ur=Ut.saveAs||((typeof window>"u"?"undefined":fe(window))!=="object"||window!==Ut?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(i,e,n){var a=Ut.URL||Ut.webkitURL,c=document.createElement("a");e=e||i.name||"download",c.download=e,c.rel="noopener",typeof i=="string"?(c.href=i,c.origin!==location.origin?sc(c.href)?as(i,e,n):Ka(c,c.target="_blank"):Ka(c)):(c.href=a.createObjectURL(i),setTimeout(function(){a.revokeObjectURL(c.href)},4e4),setTimeout(function(){Ka(c)},0))}:"msSaveOrOpenBlob"in navigator?function(i,e,n){if(e=e||i.name||"download",typeof i=="string")if(sc(i))as(i,e,n);else{var a=document.createElement("a");a.href=i,a.target="_blank",setTimeout(function(){Ka(a)})}else navigator.msSaveOrOpenBlob(function(c,o){return o===void 0?o={autoBom:!1}:fe(o)!=="object"&&(ve.warn("Deprecated: Expected third argument to be a object"),o={autoBom:!o}),o.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob([String.fromCharCode(65279),c],{type:c.type}):c}(i,n),e)}:function(i,e,n,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),typeof i=="string")return as(i,e,n);var c=i.type==="application/octet-stream",o=/constructor/i.test(Ut.HTMLElement)||Ut.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||c&&o)&&(typeof FileReader>"u"?"undefined":fe(FileReader))==="object"){var h=new FileReader;h.onloadend=function(){var b=h.result;b=l?b:b.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=b:location=b,a=null},h.readAsDataURL(i)}else{var f=Ut.URL||Ut.webkitURL,g=f.createObjectURL(i);a?a.location=g:location.href=g,a=null,setTimeout(function(){f.revokeObjectURL(g)},4e4)}});/** + * A class to parse color values + * @author Stoyan Stefanov + * {@link http://www.phpied.com/rgb-color-parser-in-javascript/} + * @license Use it if you like it + */function Fc(i){var e;i=i||"",this.ok=!1,i.charAt(0)=="#"&&(i=i.substr(1,6)),i={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",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:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[i=(i=i.replace(/ /g,"")).toLowerCase()]||i;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(h){return[parseInt(h[1]),parseInt(h[2]),parseInt(h[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(h){return[parseInt(h[1],16),parseInt(h[2],16),parseInt(h[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(h){return[parseInt(h[1]+h[1],16),parseInt(h[2]+h[2],16),parseInt(h[3]+h[3],16)]}}],a=0;a255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var h=this.r.toString(16),f=this.g.toString(16),g=this.b.toString(16);return h.length==1&&(h="0"+h),f.length==1&&(f="0"+f),g.length==1&&(g="0"+g),"#"+h+f+g}}/** + * @license + * Joseph Myers does not specify a particular license for his work. + * + * Author: Joseph Myers + * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js + * + * Modified by: Owen Leong + */function os(i,e){var n=i[0],a=i[1],c=i[2],o=i[3];n=Je(n,a,c,o,e[0],7,-680876936),o=Je(o,n,a,c,e[1],12,-389564586),c=Je(c,o,n,a,e[2],17,606105819),a=Je(a,c,o,n,e[3],22,-1044525330),n=Je(n,a,c,o,e[4],7,-176418897),o=Je(o,n,a,c,e[5],12,1200080426),c=Je(c,o,n,a,e[6],17,-1473231341),a=Je(a,c,o,n,e[7],22,-45705983),n=Je(n,a,c,o,e[8],7,1770035416),o=Je(o,n,a,c,e[9],12,-1958414417),c=Je(c,o,n,a,e[10],17,-42063),a=Je(a,c,o,n,e[11],22,-1990404162),n=Je(n,a,c,o,e[12],7,1804603682),o=Je(o,n,a,c,e[13],12,-40341101),c=Je(c,o,n,a,e[14],17,-1502002290),n=Xe(n,a=Je(a,c,o,n,e[15],22,1236535329),c,o,e[1],5,-165796510),o=Xe(o,n,a,c,e[6],9,-1069501632),c=Xe(c,o,n,a,e[11],14,643717713),a=Xe(a,c,o,n,e[0],20,-373897302),n=Xe(n,a,c,o,e[5],5,-701558691),o=Xe(o,n,a,c,e[10],9,38016083),c=Xe(c,o,n,a,e[15],14,-660478335),a=Xe(a,c,o,n,e[4],20,-405537848),n=Xe(n,a,c,o,e[9],5,568446438),o=Xe(o,n,a,c,e[14],9,-1019803690),c=Xe(c,o,n,a,e[3],14,-187363961),a=Xe(a,c,o,n,e[8],20,1163531501),n=Xe(n,a,c,o,e[13],5,-1444681467),o=Xe(o,n,a,c,e[2],9,-51403784),c=Xe(c,o,n,a,e[7],14,1735328473),n=Ke(n,a=Xe(a,c,o,n,e[12],20,-1926607734),c,o,e[5],4,-378558),o=Ke(o,n,a,c,e[8],11,-2022574463),c=Ke(c,o,n,a,e[11],16,1839030562),a=Ke(a,c,o,n,e[14],23,-35309556),n=Ke(n,a,c,o,e[1],4,-1530992060),o=Ke(o,n,a,c,e[4],11,1272893353),c=Ke(c,o,n,a,e[7],16,-155497632),a=Ke(a,c,o,n,e[10],23,-1094730640),n=Ke(n,a,c,o,e[13],4,681279174),o=Ke(o,n,a,c,e[0],11,-358537222),c=Ke(c,o,n,a,e[3],16,-722521979),a=Ke(a,c,o,n,e[6],23,76029189),n=Ke(n,a,c,o,e[9],4,-640364487),o=Ke(o,n,a,c,e[12],11,-421815835),c=Ke(c,o,n,a,e[15],16,530742520),n=Ze(n,a=Ke(a,c,o,n,e[2],23,-995338651),c,o,e[0],6,-198630844),o=Ze(o,n,a,c,e[7],10,1126891415),c=Ze(c,o,n,a,e[14],15,-1416354905),a=Ze(a,c,o,n,e[5],21,-57434055),n=Ze(n,a,c,o,e[12],6,1700485571),o=Ze(o,n,a,c,e[3],10,-1894986606),c=Ze(c,o,n,a,e[10],15,-1051523),a=Ze(a,c,o,n,e[1],21,-2054922799),n=Ze(n,a,c,o,e[8],6,1873313359),o=Ze(o,n,a,c,e[15],10,-30611744),c=Ze(c,o,n,a,e[6],15,-1560198380),a=Ze(a,c,o,n,e[13],21,1309151649),n=Ze(n,a,c,o,e[4],6,-145523070),o=Ze(o,n,a,c,e[11],10,-1120210379),c=Ze(c,o,n,a,e[2],15,718787259),a=Ze(a,c,o,n,e[9],21,-343485551),i[0]=Fr(n,i[0]),i[1]=Fr(a,i[1]),i[2]=Fr(c,i[2]),i[3]=Fr(o,i[3])}function uo(i,e,n,a,c,o){return e=Fr(Fr(e,i),Fr(a,o)),Fr(e<>>32-c,n)}function Je(i,e,n,a,c,o,l){return uo(e&n|~e&a,i,e,c,o,l)}function Xe(i,e,n,a,c,o,l){return uo(e&a|n&~a,i,e,c,o,l)}function Ke(i,e,n,a,c,o,l){return uo(e^n^a,i,e,c,o,l)}function Ze(i,e,n,a,c,o,l){return uo(n^(e|~a),i,e,c,o,l)}function Ic(i){var e,n=i.length,a=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=i.length;e+=64)os(a,Ru(i.substring(e-64,e)));i=i.substring(e-64);var c=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e>2]|=i.charCodeAt(e)<<(e%4<<3);if(c[e>>2]|=128<<(e%4<<3),e>55)for(os(a,c),e=0;e<16;e++)c[e]=0;return c[14]=8*n,os(a,c),a}function Ru(i){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=i.charCodeAt(e)+(i.charCodeAt(e+1)<<8)+(i.charCodeAt(e+2)<<16)+(i.charCodeAt(e+3)<<24);return n}oa=Ut.atob.bind(Ut),ms=Ut.btoa.bind(Ut);var cc="0123456789abcdef".split("");function Tu(i){for(var e="",n=0;n<4;n++)e+=cc[i>>8*n+4&15]+cc[i>>8*n&15];return e}function zu(i){return String.fromCharCode((255&i)>>0,(65280&i)>>8,(16711680&i)>>16,(4278190080&i)>>24)}function vs(i){return Ic(i).map(zu).join("")}var Uu=function(i){for(var e=0;e>16)+(e>>16)+(n>>16)<<16|65535&n}return i+e&4294967295}/** + * @license + * FPDF is released under a permissive license: there is no usage restriction. + * You may embed it freely in your application (commercial or not), with or + * without modifications. + * + * Reference: http://www.fpdf.org/en/script/script37.php + */function bs(i,e){var n,a,c,o;if(i!==n){for(var l=(c=i,o=1+(256/i.length>>0),new Array(o+1).join(c)),h=[],f=0;f<256;f++)h[f]=f;var g=0;for(f=0;f<256;f++){var b=h[f];g=(g+b+l.charCodeAt(f))%256,h[f]=h[g],h[g]=b}n=i,a=h}else h=a;var A=e.length,S=0,p=0,O="";for(f=0;f€/\f©þdSiz";var o=(e+this.padding).substr(0,32),l=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,l),this.P=-(1+(255^c)),this.encryptionKey=vs(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(a)).substr(0,5),this.U=bs(this.encryptionKey,this.padding)}function Ai(i){if(/[^\u0000-\u00ff]/.test(i))throw new Error("Invalid PDF Name Object: "+i+", Only accept ASCII characters.");for(var e="",n=i.length,a=0;a126?e+="#"+("0"+c.toString(16)).slice(-2):e+=i[a]}return e}function lc(i){if(fe(i)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(n,a,c){if(c=c||!1,typeof n!="string"||typeof a!="function"||typeof c!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(n)||(e[n]={});var o=Math.random().toString(35);return e[n][o]=[a,!!c],o},this.unsubscribe=function(n){for(var a in e)if(e[a][n])return delete e[a][n],Object.keys(e[a]).length===0&&delete e[a],!0;return!1},this.publish=function(n){if(e.hasOwnProperty(n)){var a=Array.prototype.slice.call(arguments,1),c=[];for(var o in e[n]){var l=e[n][o];try{l[0].apply(i,a)}catch(h){Ut.console&&ve.error("jsPDF PubSub Error",h.message,h)}l[1]&&c.push(o)}c.length&&c.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function ao(i){if(!(this instanceof ao))return new ao(i);var e="opacity,stroke-opacity".split(",");for(var n in i)i.hasOwnProperty(n)&&e.indexOf(n)>=0&&(this[n]=i[n]);this.id="",this.objectNumber=-1}function Cc(i,e){this.gState=i,this.matrix=e,this.id="",this.objectNumber=-1}function Hr(i,e,n,a,c){if(!(this instanceof Hr))return new Hr(i,e,n,a,c);this.type=i==="axial"?2:3,this.coords=e,this.colors=n,Cc.call(this,a,c)}function xi(i,e,n,a,c){if(!(this instanceof xi))return new xi(i,e,n,a,c);this.boundingBox=i,this.xStep=e,this.yStep=n,this.stream="",this.cloneIndex=0,Cc.call(this,a,c)}function Ht(i){var e,n=typeof arguments[0]=="string"?arguments[0]:"p",a=arguments[1],c=arguments[2],o=arguments[3],l=[],h=1,f=16,g="S",b=null;fe(i=i||{})==="object"&&(n=i.orientation,a=i.unit||a,c=i.format||c,o=i.compress||i.compressPdf||o,(b=i.encryption||null)!==null&&(b.userPassword=b.userPassword||"",b.ownerPassword=b.ownerPassword||"",b.userPermissions=b.userPermissions||[]),h=typeof i.userUnit=="number"?Math.abs(i.userUnit):1,i.precision!==void 0&&(e=i.precision),i.floatPrecision!==void 0&&(f=i.floatPrecision),g=i.defaultPathOperation||"S"),l=i.filters||(o===!0?["FlateEncode"]:l),a=a||"mm",n=(""+(n||"P")).toLowerCase();var A=i.putOnlyUsedFonts||!1,S={},p={internal:{},__private__:{}};p.__private__.PubSub=lc;var O="1.3",I=p.__private__.getPdfVersion=function(){return O};p.__private__.setPdfVersion=function(s){O=s};var q={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};p.__private__.getPageFormats=function(){return q};var _=p.__private__.getPageFormat=function(s){return q[s]};c=c||"a4";var M={COMPAT:"compat",ADVANCED:"advanced"},X=M.COMPAT;function ot(){this.saveGraphicsState(),E(new Tt(It,0,0,-It,0,pr()*It).toString()+" cm"),this.setFontSize(this.getFontSize()/It),g="n",X=M.ADVANCED}function ut(){this.restoreGraphicsState(),g="S",X=M.COMPAT}var wt=p.__private__.combineFontStyleAndFontWeight=function(s,v){if(s=="bold"&&v=="normal"||s=="bold"&&v==400||s=="normal"&&v=="italic"||s=="bold"&&v=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return v&&(s=v==400||v==="normal"?s==="italic"?"italic":"normal":v!=700&&v!=="bold"||s!=="normal"?(v==700?"bold":v)+""+s:"bold"),s};p.advancedAPI=function(s){var v=X===M.COMPAT;return v&&ot.call(this),typeof s!="function"||(s(this),v&&ut.call(this)),this},p.compatAPI=function(s){var v=X===M.ADVANCED;return v&&ut.call(this),typeof s!="function"||(s(this),v&&ot.call(this)),this},p.isAdvancedAPI=function(){return X===M.ADVANCED};var tt,R=function(s){if(X!==M.ADVANCED)throw new Error(s+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},gt=p.roundToPrecision=p.__private__.roundToPrecision=function(s,v){var C=e||v;if(isNaN(s)||isNaN(C))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return s.toFixed(C).replace(/0+$/,"")};tt=p.hpf=p.__private__.hpf=typeof f=="number"?function(s){if(isNaN(s))throw new Error("Invalid argument passed to jsPDF.hpf");return gt(s,f)}:f==="smart"?function(s){if(isNaN(s))throw new Error("Invalid argument passed to jsPDF.hpf");return gt(s,s>-1&&s<1?16:5)}:function(s){if(isNaN(s))throw new Error("Invalid argument passed to jsPDF.hpf");return gt(s,16)};var dt=p.f2=p.__private__.f2=function(s){if(isNaN(s))throw new Error("Invalid argument passed to jsPDF.f2");return gt(s,2)},F=p.__private__.f3=function(s){if(isNaN(s))throw new Error("Invalid argument passed to jsPDF.f3");return gt(s,3)},P=p.scale=p.__private__.scale=function(s){if(isNaN(s))throw new Error("Invalid argument passed to jsPDF.scale");return X===M.COMPAT?s*It:X===M.ADVANCED?s:void 0},z=function(s){return X===M.COMPAT?pr()-s:X===M.ADVANCED?s:void 0},D=function(s){return P(z(s))};p.__private__.setPrecision=p.setPrecision=function(s){typeof parseInt(s,10)=="number"&&(e=parseInt(s,10))};var at,nt="00000000000000000000000000000000",lt=p.__private__.getFileId=function(){return nt},$=p.__private__.setFileId=function(s){return nt=s!==void 0&&/^[a-fA-F0-9]{32}$/.test(s)?s.toUpperCase():nt.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),b!==null&&(Ge=new Ni(b.userPermissions,b.userPassword,b.ownerPassword,nt)),nt};p.setFileId=function(s){return $(s),this},p.getFileId=function(){return lt()};var ft=p.__private__.convertDateToPDFDate=function(s){var v=s.getTimezoneOffset(),C=v<0?"+":"-",T=Math.floor(Math.abs(v/60)),J=Math.abs(v%60),st=[C,B(T),"'",B(J),"'"].join("");return["D:",s.getFullYear(),B(s.getMonth()+1),B(s.getDate()),B(s.getHours()),B(s.getMinutes()),B(s.getSeconds()),st].join("")},ht=p.__private__.convertPDFDateToDate=function(s){var v=parseInt(s.substr(2,4),10),C=parseInt(s.substr(6,2),10)-1,T=parseInt(s.substr(8,2),10),J=parseInt(s.substr(10,2),10),st=parseInt(s.substr(12,2),10),yt=parseInt(s.substr(14,2),10);return new Date(v,C,T,J,st,yt,0)},kt=p.__private__.setCreationDate=function(s){var v;if(s===void 0&&(s=new Date),s instanceof Date)v=ft(s);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(s))throw new Error("Invalid argument passed to jsPDF.setCreationDate");v=s}return at=v},L=p.__private__.getCreationDate=function(s){var v=at;return s==="jsDate"&&(v=ht(at)),v};p.setCreationDate=function(s){return kt(s),this},p.getCreationDate=function(s){return L(s)};var j,B=p.__private__.padd2=function(s){return("0"+parseInt(s)).slice(-2)},W=p.__private__.padd2Hex=function(s){return("00"+(s=s.toString())).substr(s.length)},Y=0,Q=[],et=[],rt=0,At=[],Nt=[],Ct=!1,Mt=et,zt=function(){Y=0,rt=0,et=[],Q=[],At=[],Qn=Oe(),An=Oe()};p.__private__.setCustomOutputDestination=function(s){Ct=!0,Mt=s};var ct=function(s){Ct||(Mt=s)};p.__private__.resetCustomOutputDestination=function(){Ct=!1,Mt=et};var E=p.__private__.out=function(s){return s=s.toString(),rt+=s.length+1,Mt.push(s),Mt},Xt=p.__private__.write=function(s){return E(arguments.length===1?s.toString():Array.prototype.join.call(arguments," "))},Et=p.__private__.getArrayBuffer=function(s){for(var v=s.length,C=new ArrayBuffer(v),T=new Uint8Array(C);v--;)T[v]=s.charCodeAt(v);return C},Lt=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];p.__private__.getStandardFonts=function(){return Lt};var xt=i.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(s){return xt=X===M.ADVANCED?s/It:s,this};var Ft,Pt=p.__private__.getFontSize=p.getFontSize=function(){return X===M.COMPAT?xt:xt*It},qt=i.R2L||!1;p.__private__.setR2L=p.setR2L=function(s){return qt=s,this},p.__private__.getR2L=p.getR2L=function(){return qt};var Gt,$t=p.__private__.setZoomMode=function(s){var v=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(s))Ft=s;else if(isNaN(s)){if(v.indexOf(s)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+s+'" is not recognized.');Ft=s}else Ft=parseInt(s,10)};p.__private__.getZoomMode=function(){return Ft};var te,ie=p.__private__.setPageMode=function(s){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(s)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+s+'" is not recognized.');Gt=s};p.__private__.getPageMode=function(){return Gt};var de=p.__private__.setLayoutMode=function(s){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(s)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+s+'" is not recognized.');te=s};p.__private__.getLayoutMode=function(){return te},p.__private__.setDisplayMode=p.setDisplayMode=function(s,v,C){return $t(s),de(v),ie(C),this};var Wt={title:"",subject:"",author:"",keywords:"",creator:""};p.__private__.getDocumentProperty=function(s){if(Object.keys(Wt).indexOf(s)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Wt[s]},p.__private__.getDocumentProperties=function(){return Wt},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(s){for(var v in Wt)Wt.hasOwnProperty(v)&&s[v]&&(Wt[v]=s[v]);return this},p.__private__.setDocumentProperty=function(s,v){if(Object.keys(Wt).indexOf(s)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Wt[s]=v};var ee,It,Ve,oe,yn,ge={},Le={},Rn=[],ce={},jr={},Ae={},Ln={},$n=null,xe=0,Yt=[],ue=new lc(p),Or=i.hotfixes||[],He={},Tn={},zn=[],Tt=function s(v,C,T,J,st,yt){if(!(this instanceof s))return new s(v,C,T,J,st,yt);isNaN(v)&&(v=1),isNaN(C)&&(C=0),isNaN(T)&&(T=0),isNaN(J)&&(J=1),isNaN(st)&&(st=0),isNaN(yt)&&(yt=0),this._matrix=[v,C,T,J,st,yt]};Object.defineProperty(Tt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(s){this._matrix[0]=s}}),Object.defineProperty(Tt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(s){this._matrix[1]=s}}),Object.defineProperty(Tt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(s){this._matrix[2]=s}}),Object.defineProperty(Tt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(s){this._matrix[3]=s}}),Object.defineProperty(Tt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(s){this._matrix[4]=s}}),Object.defineProperty(Tt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(s){this._matrix[5]=s}}),Object.defineProperty(Tt.prototype,"a",{get:function(){return this._matrix[0]},set:function(s){this._matrix[0]=s}}),Object.defineProperty(Tt.prototype,"b",{get:function(){return this._matrix[1]},set:function(s){this._matrix[1]=s}}),Object.defineProperty(Tt.prototype,"c",{get:function(){return this._matrix[2]},set:function(s){this._matrix[2]=s}}),Object.defineProperty(Tt.prototype,"d",{get:function(){return this._matrix[3]},set:function(s){this._matrix[3]=s}}),Object.defineProperty(Tt.prototype,"e",{get:function(){return this._matrix[4]},set:function(s){this._matrix[4]=s}}),Object.defineProperty(Tt.prototype,"f",{get:function(){return this._matrix[5]},set:function(s){this._matrix[5]=s}}),Object.defineProperty(Tt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Tt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Tt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Tt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Tt.prototype.join=function(s){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(tt).join(s)},Tt.prototype.multiply=function(s){var v=s.sx*this.sx+s.shy*this.shx,C=s.sx*this.shy+s.shy*this.sy,T=s.shx*this.sx+s.sy*this.shx,J=s.shx*this.shy+s.sy*this.sy,st=s.tx*this.sx+s.ty*this.shx+this.tx,yt=s.tx*this.shy+s.ty*this.sy+this.ty;return new Tt(v,C,T,J,st,yt)},Tt.prototype.decompose=function(){var s=this.sx,v=this.shy,C=this.shx,T=this.sy,J=this.tx,st=this.ty,yt=Math.sqrt(s*s+v*v),jt=(s/=yt)*C+(v/=yt)*T;C-=s*jt,T-=v*jt;var Dt=Math.sqrt(C*C+T*T);return jt/=Dt,s*(T/=Dt)>16&255,T=Dt>>8&255,J=255&Dt}if(T===void 0||st===void 0&&C===T&&T===J)if(typeof C=="string")v=C+" "+yt[0];else switch(s.precision){case 2:v=dt(C/255)+" "+yt[0];break;case 3:default:v=F(C/255)+" "+yt[0]}else if(st===void 0||fe(st)==="object"){if(st&&!isNaN(st.a)&&st.a===0)return v=["1.","1.","1.",yt[1]].join(" ");if(typeof C=="string")v=[C,T,J,yt[1]].join(" ");else switch(s.precision){case 2:v=[dt(C/255),dt(T/255),dt(J/255),yt[1]].join(" ");break;default:case 3:v=[F(C/255),F(T/255),F(J/255),yt[1]].join(" ")}}else if(typeof C=="string")v=[C,T,J,st,yt[2]].join(" ");else switch(s.precision){case 2:v=[dt(C),dt(T),dt(J),dt(st),yt[2]].join(" ");break;case 3:default:v=[F(C),F(T),F(J),F(st),yt[2]].join(" ")}return v},Hn=p.__private__.getFilters=function(){return l},pn=p.__private__.putStream=function(s){var v=(s=s||{}).data||"",C=s.filters||Hn(),T=s.alreadyAppliedFilters||[],J=s.addLength1||!1,st=v.length,yt=s.objectId,jt=function(Ye){return Ye};if(b!==null&&yt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");b!==null&&(jt=Ge.encryptor(yt,0));var Dt={};C===!0&&(C=["FlateEncode"]);var Kt=s.additionalKeyValues||[],Qt=(Dt=Ht.API.processDataByFilters!==void 0?Ht.API.processDataByFilters(v,C):{data:v,reverseChain:[]}).reverseChain+(Array.isArray(T)?T.join(" "):T.toString());if(Dt.data.length!==0&&(Kt.push({key:"Length",value:Dt.data.length}),J===!0&&Kt.push({key:"Length1",value:st})),Qt.length!=0)if(Qt.split("/").length-1==1)Kt.push({key:"Filter",value:Qt});else{Kt.push({key:"Filter",value:"["+Qt+"]"});for(var re=0;re>"),Dt.data.length!==0&&(E("stream"),E(jt(Dt.data)),E("endstream"))},Wn=p.__private__.putPage=function(s){var v=s.number,C=s.data,T=s.objId,J=s.contentsObjId;un(T,!0),E("<>"),E("endobj");var st=C.join(` +`);return X===M.ADVANCED&&(st+=` +Q`),un(J,!0),pn({data:st,filters:Hn(),objectId:J}),E("endobj"),T},Mr=p.__private__.putPages=function(){var s,v,C=[];for(s=1;s<=xe;s++)Yt[s].objId=Oe(),Yt[s].contentsObjId=Oe();for(s=1;s<=xe;s++)C.push(Wn({number:s,data:Nt[s],objId:Yt[s].objId,contentsObjId:Yt[s].contentsObjId,mediaBox:Yt[s].mediaBox,cropBox:Yt[s].cropBox,bleedBox:Yt[s].bleedBox,trimBox:Yt[s].trimBox,artBox:Yt[s].artBox,userUnit:Yt[s].userUnit,rootDictionaryObjId:Qn,resourceDictionaryObjId:An}));un(Qn,!0),E("<>"),E("endobj"),ue.publish("postPutPages")},Yr=function(s){ue.publish("putFont",{font:s,out:E,newObject:qe,putStream:pn}),s.isAlreadyPutted!==!0&&(s.objectNumber=qe(),E("<<"),E("/Type /Font"),E("/BaseFont /"+Ai(s.postScriptName)),E("/Subtype /Type1"),typeof s.encoding=="string"&&E("/Encoding /"+s.encoding),E("/FirstChar 32"),E("/LastChar 255"),E(">>"),E("endobj"))},Jr=function(){for(var s in ge)ge.hasOwnProperty(s)&&(A===!1||A===!0&&S.hasOwnProperty(s))&&Yr(ge[s])},Xr=function(s){s.objectNumber=qe();var v=[];v.push({key:"Type",value:"/XObject"}),v.push({key:"Subtype",value:"/Form"}),v.push({key:"BBox",value:"["+[tt(s.x),tt(s.y),tt(s.x+s.width),tt(s.y+s.height)].join(" ")+"]"}),v.push({key:"Matrix",value:"["+s.matrix.toString()+"]"});var C=s.pages[1].join(` +`);pn({data:C,additionalKeyValues:v,objectId:s.objectNumber}),E("endobj")},Kr=function(){for(var s in He)He.hasOwnProperty(s)&&Xr(He[s])},ua=function(s,v){var C,T=[],J=1/(v-1);for(C=0;C<1;C+=J)T.push(C);if(T.push(1),s[0].offset!=0){var st={offset:0,color:s[0].color};s.unshift(st)}if(s[s.length-1].offset!=1){var yt={offset:1,color:s[s.length-1].color};s.push(yt)}for(var jt="",Dt=0,Kt=0;Kts[Dt+1].offset;)Dt++;var Qt=s[Dt].offset,re=(C-Qt)/(s[Dt+1].offset-Qt),Ne=s[Dt].color,Se=s[Dt+1].color;jt+=W(Math.round((1-re)*Ne[0]+re*Se[0]).toString(16))+W(Math.round((1-re)*Ne[1]+re*Se[1]).toString(16))+W(Math.round((1-re)*Ne[2]+re*Se[2]).toString(16))}return jt.trim()},lo=function(s,v){v||(v=21);var C=qe(),T=ua(s.colors,v),J=[];J.push({key:"FunctionType",value:"0"}),J.push({key:"Domain",value:"[0.0 1.0]"}),J.push({key:"Size",value:"["+v+"]"}),J.push({key:"BitsPerSample",value:"8"}),J.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),J.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),pn({data:T,additionalKeyValues:J,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:C}),E("endobj"),s.objectNumber=qe(),E("<< /ShadingType "+s.type),E("/ColorSpace /DeviceRGB");var st="/Coords ["+tt(parseFloat(s.coords[0]))+" "+tt(parseFloat(s.coords[1]))+" ";s.type===2?st+=tt(parseFloat(s.coords[2]))+" "+tt(parseFloat(s.coords[3])):st+=tt(parseFloat(s.coords[2]))+" "+tt(parseFloat(s.coords[3]))+" "+tt(parseFloat(s.coords[4]))+" "+tt(parseFloat(s.coords[5])),E(st+="]"),s.matrix&&E("/Matrix ["+s.matrix.toString()+"]"),E("/Function "+C+" 0 R"),E("/Extend [true true]"),E(">>"),E("endobj")},ho=function(s,v){var C=Oe(),T=qe();v.push({resourcesOid:C,objectOid:T}),s.objectNumber=T;var J=[];J.push({key:"Type",value:"/Pattern"}),J.push({key:"PatternType",value:"1"}),J.push({key:"PaintType",value:"1"}),J.push({key:"TilingType",value:"1"}),J.push({key:"BBox",value:"["+s.boundingBox.map(tt).join(" ")+"]"}),J.push({key:"XStep",value:tt(s.xStep)}),J.push({key:"YStep",value:tt(s.yStep)}),J.push({key:"Resources",value:C+" 0 R"}),s.matrix&&J.push({key:"Matrix",value:"["+s.matrix.toString()+"]"}),pn({data:s.stream,additionalKeyValues:J,objectId:s.objectNumber}),E("endobj")},Zr=function(s){var v;for(v in ce)ce.hasOwnProperty(v)&&(ce[v]instanceof Hr?lo(ce[v]):ce[v]instanceof xi&&ho(ce[v],s))},la=function(s){for(var v in s.objectNumber=qe(),E("<<"),s)switch(v){case"opacity":E("/ca "+dt(s[v]));break;case"stroke-opacity":E("/CA "+dt(s[v]))}E(">>"),E("endobj")},fo=function(){var s;for(s in Ae)Ae.hasOwnProperty(s)&&la(Ae[s])},Fi=function(){for(var s in E("/XObject <<"),He)He.hasOwnProperty(s)&&He[s].objectNumber>=0&&E("/"+s+" "+He[s].objectNumber+" 0 R");ue.publish("putXobjectDict"),E(">>")},po=function(){Ge.oid=qe(),E("<<"),E("/Filter /Standard"),E("/V "+Ge.v),E("/R "+Ge.r),E("/U <"+Ge.toHexString(Ge.U)+">"),E("/O <"+Ge.toHexString(Ge.O)+">"),E("/P "+Ge.P),E(">>"),E("endobj")},ha=function(){for(var s in E("/Font <<"),ge)ge.hasOwnProperty(s)&&(A===!1||A===!0&&S.hasOwnProperty(s))&&E("/"+s+" "+ge[s].objectNumber+" 0 R");E(">>")},go=function(){if(Object.keys(ce).length>0){for(var s in E("/Shading <<"),ce)ce.hasOwnProperty(s)&&ce[s]instanceof Hr&&ce[s].objectNumber>=0&&E("/"+s+" "+ce[s].objectNumber+" 0 R");ue.publish("putShadingPatternDict"),E(">>")}},$r=function(s){if(Object.keys(ce).length>0){for(var v in E("/Pattern <<"),ce)ce.hasOwnProperty(v)&&ce[v]instanceof p.TilingPattern&&ce[v].objectNumber>=0&&ce[v].objectNumber>")}},mo=function(){if(Object.keys(Ae).length>0){var s;for(s in E("/ExtGState <<"),Ae)Ae.hasOwnProperty(s)&&Ae[s].objectNumber>=0&&E("/"+s+" "+Ae[s].objectNumber+" 0 R");ue.publish("putGStateDict"),E(">>")}},ke=function(s){un(s.resourcesOid,!0),E("<<"),E("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),ha(),go(),$r(s.objectOid),mo(),Fi(),E(">>"),E("endobj")},fa=function(){var s=[];Jr(),fo(),Kr(),Zr(s),ue.publish("putResources"),s.forEach(ke),ke({resourcesOid:An,objectOid:Number.MAX_SAFE_INTEGER}),ue.publish("postPutResources")},da=function(){ue.publish("putAdditionalObjects");for(var s=0;s>8&&(Dt=!0);s=jt.join("")}for(C=s.length;Dt===void 0&&C!==0;)s.charCodeAt(C-1)>>8&&(Dt=!0),C--;if(!Dt)return s;for(jt=v.noBOM?[]:[254,255],C=0,T=s.length;C>8)>>8)throw new Error("Character at position "+C+" of string '"+s+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");jt.push(Qt),jt.push(Kt-(Qt<<8))}return String.fromCharCode.apply(void 0,jt)},nn=p.__private__.pdfEscape=p.pdfEscape=function(s,v){return Qr(s,v).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ci=p.__private__.beginPage=function(s){Nt[++xe]=[],Yt[xe]={objId:0,contentsObjId:0,userUnit:Number(h),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(s[0]),topRightY:Number(s[1])}},ma(xe),ct(Nt[j])},ga=function(s,v){var C,T,J;switch(n=v||n,typeof s=="string"&&(C=_(s.toLowerCase()),Array.isArray(C)&&(T=C[0],J=C[1])),Array.isArray(s)&&(T=s[0]*It,J=s[1]*It),isNaN(T)&&(T=c[0],J=c[1]),(T>14400||J>14400)&&(ve.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),T=Math.min(14400,T),J=Math.min(14400,J)),c=[T,J],n.substr(0,1)){case"l":J>T&&(c=[J,T]);break;case"p":T>J&&(c=[J,T])}Ci(c),Na(Bi),E(Pn),qi!==0&&E(qi+" J"),Di!==0&&E(Di+" j"),ue.publish("addPage",{pageNumber:xe})},bo=function(s){s>0&&s<=xe&&(Nt.splice(s,1),Yt.splice(s,1),xe--,j>xe&&(j=xe),this.setPage(j))},ma=function(s){s>0&&s<=xe&&(j=s)},wo=p.__private__.getNumberOfPages=p.getNumberOfPages=function(){return Nt.length-1},va=function(s,v,C){var T,J=void 0;return C=C||{},s=s!==void 0?s:ge[ee].fontName,v=v!==void 0?v:ge[ee].fontStyle,T=s.toLowerCase(),Le[T]!==void 0&&Le[T][v]!==void 0?J=Le[T][v]:Le[s]!==void 0&&Le[s][v]!==void 0?J=Le[s][v]:C.disableWarning===!1&&ve.warn("Unable to look up font label for font '"+s+"', '"+v+"'. Refer to getFontList() for available fonts."),J||C.noFallback||(J=Le.times[v])==null&&(J=Le.times.normal),J},yo=p.__private__.putInfo=function(){var s=qe(),v=function(T){return T};for(var C in b!==null&&(v=Ge.encryptor(s,0)),E("<<"),E("/Producer ("+nn(v("jsPDF "+Ht.version))+")"),Wt)Wt.hasOwnProperty(C)&&Wt[C]&&E("/"+C.substr(0,1).toUpperCase()+C.substr(1)+" ("+nn(v(Wt[C]))+")");E("/CreationDate ("+nn(v(at))+")"),E(">>"),E("endobj")},ji=p.__private__.putCatalog=function(s){var v=(s=s||{}).rootDictionaryObjId||Qn;switch(qe(),E("<<"),E("/Type /Catalog"),E("/Pages "+v+" 0 R"),Ft||(Ft="fullwidth"),Ft){case"fullwidth":E("/OpenAction [3 0 R /FitH null]");break;case"fullheight":E("/OpenAction [3 0 R /FitV null]");break;case"fullpage":E("/OpenAction [3 0 R /Fit]");break;case"original":E("/OpenAction [3 0 R /XYZ null null 1]");break;default:var C=""+Ft;C.substr(C.length-1)==="%"&&(Ft=parseInt(Ft)/100),typeof Ft=="number"&&E("/OpenAction [3 0 R /XYZ null null "+dt(Ft)+"]")}switch(te||(te="continuous"),te){case"continuous":E("/PageLayout /OneColumn");break;case"single":E("/PageLayout /SinglePage");break;case"two":case"twoleft":E("/PageLayout /TwoColumnLeft");break;case"tworight":E("/PageLayout /TwoColumnRight")}Gt&&E("/PageMode /"+Gt),ue.publish("putCatalog"),E(">>"),E("endobj")},Lo=p.__private__.putTrailer=function(){E("trailer"),E("<<"),E("/Size "+(Y+1)),E("/Root "+Y+" 0 R"),E("/Info "+(Y-1)+" 0 R"),b!==null&&E("/Encrypt "+Ge.oid+" 0 R"),E("/ID [ <"+nt+"> <"+nt+"> ]"),E(">>")},No=p.__private__.putHeader=function(){E("%PDF-"+O),E("%ºß¬à")},Ao=p.__private__.putXRef=function(){var s="0000000000";E("xref"),E("0 "+(Y+1)),E("0000000000 65535 f ");for(var v=1;v<=Y;v++)typeof Q[v]=="function"?E((s+Q[v]()).slice(-10)+" 00000 n "):Q[v]!==void 0?E((s+Q[v]).slice(-10)+" 00000 n "):E("0000000000 00000 n ")},tr=p.__private__.buildDocument=function(){zt(),ct(et),ue.publish("buildDocument"),No(),Mr(),da(),fa(),b!==null&&po(),yo(),ji();var s=rt;return Ao(),Lo(),E("startxref"),E(""+s),E("%%EOF"),ct(Nt[j]),et.join(` +`)},ti=p.__private__.getBlob=function(s){return new Blob([Et(s)],{type:"application/pdf"})},ei=p.output=p.__private__.output=_n(function(s,v){switch(typeof(v=v||{})=="string"?v={filename:v}:v.filename=v.filename||"generated.pdf",s){case void 0:return tr();case"save":p.save(v.filename);break;case"arraybuffer":return Et(tr());case"blob":return ti(tr());case"bloburi":case"bloburl":if(Ut.URL!==void 0&&typeof Ut.URL.createObjectURL=="function")return Ut.URL&&Ut.URL.createObjectURL(ti(tr()))||void 0;ve.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var C="",T=tr();try{C=ms(T)}catch{C=ms(unescape(encodeURIComponent(T)))}return"data:application/pdf;filename="+v.filename+";base64,"+C;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Ut)==="[object Window]"){var J="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",st=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';v.pdfObjectUrl&&(J=v.pdfObjectUrl,st="");var yt=' - +
- + diff --git a/wp-content/themes/player-key/package.json b/wp-content/themes/player-key/package.json index fed9a9a..bd5210e 100644 --- a/wp-content/themes/player-key/package.json +++ b/wp-content/themes/player-key/package.json @@ -1,10 +1,15 @@ { "type": "module", + "scripts": { + "copy-env": "cp .env.example .env", + "env-prod": "sed -i '' 's/^WP_ENVIRONMENT_TYPE=.*/WP_ENVIRONMENT_TYPE=production/' .env", + "env-dev": "sed -i '' 's/^WP_ENVIRONMENT_TYPE=.*/WP_ENVIRONMENT_TYPE=development/' .env", + "dev": "yarn env-dev && vite", + "build": "yarn env-prod && vite build" + }, "devDependencies": { - "@roots/bud": "^6.12.3", - "@roots/bud-babel": "^6.12.3", - "@roots/bud-vue": "^6.12.3", - "mini-css-extract-plugin": "^2.7.6" + "@vitejs/plugin-vue": "^4.3.4", + "vite": "^4.4.9" }, "dependencies": { "@vuelidate/core": "^2.0.2", @@ -12,6 +17,7 @@ "axios": "^1.4.0", "jspdf": "^2.5.1", "stripe": "^12.8.0", + "vue": "^3.3.4", "vue-router": "^4.2.0", "vue-select": "^4.0.0-beta.6", "vuex": "^4.0.2" diff --git a/wp-content/themes/player-key/src/admin-panel.js b/wp-content/themes/player-key/src/admin-panel.js index 6c3b8cf..ae85c56 100644 --- a/wp-content/themes/player-key/src/admin-panel.js +++ b/wp-content/themes/player-key/src/admin-panel.js @@ -1,5 +1,5 @@ +import './assets/styles/admin-panel.css' + import setCouponCode from "./assets/scripts/modules/set-coupon-code.js"; setCouponCode(); - -console.log('ewfwfwe'); diff --git a/wp-content/themes/player-key/src/api/athletes.js b/wp-content/themes/player-key/src/api/athletes.js index 45b5631..972fc7a 100644 --- a/wp-content/themes/player-key/src/api/athletes.js +++ b/wp-content/themes/player-key/src/api/athletes.js @@ -11,7 +11,6 @@ const createAthlete = (data) => { return axios.post(`${BASE_URL}/athletes/create-athlete`, data, { headers: { 'Content-Type': 'multipart/form-data', - 'X-WP-Nonce': window.pkiNonce } }) } @@ -25,7 +24,6 @@ const editAthlete = (data) => { return axios.post(`${BASE_URL}/athletes/edit-athlete`, data, { headers: { 'Content-Type': 'multipart/form-data', - 'X-WP-Nonce': window.pkiNonce, } }); } @@ -36,24 +34,25 @@ const editAthlete = (data) => { * @returns {Promise>} */ const getAthleteBy = (data) => { - return axios.post(`${BASE_URL}/athletes/get-athlete-by`, data, { - headers: { - 'X-WP-Nonce': window.pkiNonce - } - }); + return axios.post(`${BASE_URL}/athletes/get-athlete-by`, data); } -/** +/**` * * @param {Object} data * @returns {Promise>} */ const getAthletes = (data) => { - return axios.post(`${BASE_URL}/athletes/get-athletes`, data, { - headers: { - 'X-WP-Nonce': window.pkiNonce - } - }) + return axios.post(`${BASE_URL}/athletes/get-athletes`, data) +} + +/** + * + * @param {Object} data + * @returns {Promise>} + */ +const getAthletesWithoutTeam = (data) => { + return axios.post(`${BASE_URL}/athletes/get-athletes-without-team`, data) } /** @@ -62,11 +61,7 @@ const getAthletes = (data) => { * @returns {Promise>} */ const removeAthlete = (data) => { - return axios.post(`${BASE_URL}/athletes/remove-athlete`, data, { - headers: { - 'X-WP-Nonce': window.pkiNonce - } - }) + return axios.post(`${BASE_URL}/athletes/remove-athlete`, data) } export default { @@ -74,6 +69,6 @@ export default { editAthlete, getAthleteBy, getAthletes, + getAthletesWithoutTeam, removeAthlete, }; - diff --git a/wp-content/themes/player-key/src/api/authentication.js b/wp-content/themes/player-key/src/api/authentication.js index 2ebbd76..c09d744 100644 --- a/wp-content/themes/player-key/src/api/authentication.js +++ b/wp-content/themes/player-key/src/api/authentication.js @@ -2,61 +2,112 @@ import axios from 'axios'; const BASE_URL = `${document.location.protocol}//${document.location.host}/wp-json/pki/v1`; - +/** + * + * @param {Object} data + * @returns {Promise>} + */ const activationCheck = (data) => { return axios.post(`${BASE_URL}/users/activation-check`, data); } +/** + * + * @param {Object} data + * @returns {Promise>} + */ const activationUser = (data) => { return axios.post(`${BASE_URL}/users/activation`, data); } +/** + * + * @param {Object} data + * @returns {Promise>} + */ const checkUser = (data) => { return axios.post(`${BASE_URL}/users/check`, data); } +/** + * + * @param {Object} data + * @returns {Promise>} + */ const changeUserRole = (data) => { return axios.post(`${BASE_URL}/users/change-user-role`, data); } +/** + * + * @param {Object} data + * @returns {Promise>} + */ const editUser = (data) => { return axios.post(`${BASE_URL}/users/edit-user`, data); } +/** + * + * @param {Object} data + * @returns {Promise>} + */ const getRoleStatistics = (data) => { return axios.post(`${BASE_URL}/users/get-role-statistics`, data) } +/** + * + * @param {Object} data + * @returns {Promise>} + */ const loginUser = (data) => { - return axios.post(`${BASE_URL}/users/login-user`, data, { - headers: { - 'X-WP-Nonce': window.pkiNonce - } - }); + return axios.post(`${BASE_URL}/users/login-user`, data); } +/** + * + * @param {Object} data + * @returns {Promise>} + */ const logoutUser = (data) => { return axios.post(`${BASE_URL}/users/logout-user`, data); } +/** + * + * @param {Object} data + * @returns {Promise>} + */ const resendActivationLink = (data) => { return axios.post(`${BASE_URL}/users/resend-activation-link`, data); } +/** + * + * @param {Object} data + * @returns {Promise>} + */ const resetPasswordRequest = (data) => { return axios.post(`${BASE_URL}/users/reset-password-request`, data); } +/** + * + * @param {Object} data + * @returns {Promise>} + */ const resetPassword = (data) => { return axios.post(`${BASE_URL}/users/reset-password`, data); } +/** + * + * @param {Object} data + * @returns {Promise>} + */ const registerUser = (data) => { - return axios.post(`${BASE_URL}/users/register-user`, data, { - headers: { - 'X-WP-Nonce': window.pkiNonce - } - }); + return axios.post(`${BASE_URL}/users/register-user`, data); } export default { diff --git a/wp-content/themes/player-key/src/api/notifications.js b/wp-content/themes/player-key/src/api/notifications.js index 22ce528..f3dae63 100644 --- a/wp-content/themes/player-key/src/api/notifications.js +++ b/wp-content/themes/player-key/src/api/notifications.js @@ -2,16 +2,31 @@ import axios from 'axios'; const BASE_URL = `${document.location.protocol}//${document.location.host}/wp-json/pki/v1`; +/** + * + * @param {Object} data + * @returns {Promise>} + */ const getNotifications = (data) => { return axios.post(`${BASE_URL}/notifications/get-notifications`, data); } +/** + * + * @param {Object} data + * @returns {Promise>} + */ const markAllRead = (data) => { - return axios.post(`${BASE_URL}/notifications/mark-all-read`, data); + return axios.post(`${BASE_URL}/notifications/mark-all-notifications-read`, data); } +/** + * + * @param {Object} data + * @returns {Promise>} + */ const removeAll = (data) => { - return axios.post(`${BASE_URL}/notifications/remove-all`, data); + return axios.post(`${BASE_URL}/notifications/remove-all-notifications`, data); } export default { diff --git a/wp-content/themes/player-key/src/api/parents.js b/wp-content/themes/player-key/src/api/parents.js index 1bd2931..73076b6 100644 --- a/wp-content/themes/player-key/src/api/parents.js +++ b/wp-content/themes/player-key/src/api/parents.js @@ -8,11 +8,7 @@ const BASE_URL = `${document.location.protocol}//${document.location.host}/wp-js * @returns {Promise>} */ const createParent = (data) => { - return axios.post(`${BASE_URL}/parents/create-parent`, data, { - headers: { - 'X-WP-Nonce': window.pkiNonce - } - }); + return axios.post(`${BASE_URL}/parents/create-parent`, data); } /** @@ -21,11 +17,7 @@ const createParent = (data) => { * @returns {Promise>} */ const editParent = (data) => { - return axios.post(`${BASE_URL}/parents/edit-parent`, data, { - headers: { - 'X-WP-Nonce': window.pkiNonce - } - }) + return axios.post(`${BASE_URL}/parents/edit-parent`, data) } /** @@ -34,11 +26,7 @@ const editParent = (data) => { * @returns {Promise>} */ const getParents = (data) => { - return axios.post(`${BASE_URL}/parents/get-parents`, data, { - headers: { - 'X-WP-Nonce': window.pkiNonce - } - }); + return axios.post(`${BASE_URL}/parents/get-parents`, data); } /** @@ -47,11 +35,7 @@ const getParents = (data) => { * @returns {Promise>} */ const removeParent = (data) => { - return axios.post(`${BASE_URL}/parents/remove-parent`, data, { - headers: { - 'X-WP-Nonce': window.pkiNonce - } - }); + return axios.post(`${BASE_URL}/parents/remove-parent`, data); } export default { diff --git a/wp-content/themes/player-key/src/api/payments.js b/wp-content/themes/player-key/src/api/payments.js index 4e11623..33d0e5b 100644 --- a/wp-content/themes/player-key/src/api/payments.js +++ b/wp-content/themes/player-key/src/api/payments.js @@ -2,35 +2,64 @@ import axios from 'axios'; const BASE_URL = `${document.location.protocol}//${document.location.host}/wp-json/pki/v1`; -const getPaymentToken = (data) => { - return axios.post(`${BASE_URL}/payments/get-payment-token`, data); +/** + * + * @param {Object} data + * @returns {Promise>} + */ +const cancelPayment = (data) => { + return axios.post(`${BASE_URL}/payments/cancel-payment`, data); } +/** + * + * @param {Object} data + * @returns {Promise>} + */ const checkPayment = (data) => { return axios.post(`${BASE_URL}/payments/check-payment`, data); } +/** + * + * @returns {Promise>} + */ const getCost = () => { return axios.get(`${BASE_URL}/payments/get-cost`); } +/** + * + * @param {Object} data + * @returns {Promise>} + */ +const getPaymentToken = (data) => { + return axios.post(`${BASE_URL}/payments/get-payment-token`, data); +} + +/** + * + * @param {Object} data + * @returns {Promise>} + */ const getPayments = (data) => { return axios.post(`${BASE_URL}/payments/get-payments`, data); } +/** + * + * @param {Object} data + * @returns {Promise>} + */ const useCoupon = (data) => { return axios.post(`${BASE_URL}/payments/use-coupon`, data); } -const cancelPayment = (data) => { - return axios.post(`${BASE_URL}/payments/cancel-payment`, data); -} - export default { - getPaymentToken, cancelPayment, checkPayment, getCost, + getPaymentToken, getPayments, useCoupon, } diff --git a/wp-content/themes/player-key/src/api/teams.js b/wp-content/themes/player-key/src/api/teams.js index cd34db7..62c2d9c 100644 --- a/wp-content/themes/player-key/src/api/teams.js +++ b/wp-content/themes/player-key/src/api/teams.js @@ -8,11 +8,7 @@ const BASE_URL = `${document.location.protocol}//${document.location.host}/wp-js * @returns {Promise>} */ const createTeam = (data) => { - return axios.post(`${BASE_URL}/teams/create-team`, data, { - headers: { - 'X-WP-Nonce': window.pkiNonce - } - }) + return axios.post(`${BASE_URL}/teams/create-team`, data) } /** @@ -21,11 +17,7 @@ const createTeam = (data) => { * @returns {Promise>} */ const editTeam = (data) => { - return axios.post(`${BASE_URL}/teams/edit-team`, data, { - headers: { - 'X-WP-Nonce': window.pkiNonce - } - }); + return axios.post(`${BASE_URL}/teams/edit-team`, data); } /** @@ -34,11 +26,7 @@ const editTeam = (data) => { * @returns {Promise>} */ const getTeams = (data) => { - return axios.post(`${BASE_URL}/teams/get-teams`, data, { - headers: { - 'X-WP-Nonce': window.pkiNonce - } - }); + return axios.post(`${BASE_URL}/teams/get-teams`, data); } /** @@ -47,11 +35,7 @@ const getTeams = (data) => { * @returns {Promise>} */ const getTeamData = (data) => { - return axios.post(`${BASE_URL}/teams/get-team-data`, data, { - headers: { - 'X-WP-Nonce': window.pkiNonce - } - }) + return axios.post(`${BASE_URL}/teams/get-team-data`, data) } /** @@ -60,11 +44,7 @@ const getTeamData = (data) => { * @returns {Promise>} */ const removeTeam = (data) => { - return axios.post(`${BASE_URL}/teams/remove-team`, data, { - headers: { - 'X-WP-Nonce': window.pkiNonce - } - }) + return axios.post(`${BASE_URL}/teams/remove-team`, data) } export default { diff --git a/wp-content/themes/player-key/src/assets/styles/global/entities.css b/wp-content/themes/player-key/src/assets/styles/global/entities.css index dfbeae9..24ccade 100644 --- a/wp-content/themes/player-key/src/assets/styles/global/entities.css +++ b/wp-content/themes/player-key/src/assets/styles/global/entities.css @@ -4,6 +4,7 @@ .entities__actions { display: flex; + gap: 8px; justify-content: flex-end; margin-bottom: 40px; } @@ -33,7 +34,7 @@ } .entities__item--team { - grid-template-columns: 40px 1fr 1fr 2fr; + grid-template-columns: 40px 2fr 1fr 1fr 1fr 1fr 2fr; cursor: pointer; } diff --git a/wp-content/themes/player-key/src/components/Athletes.vue b/wp-content/themes/player-key/src/components/Athletes.vue index 8da1e6d..9fc54ed 100644 --- a/wp-content/themes/player-key/src/components/Athletes.vue +++ b/wp-content/themes/player-key/src/components/Athletes.vue @@ -33,6 +33,7 @@ export default { currentEntity: null, editAthleteId: null, entities: null, + entitiesWithoutTeam: null, errors: [], filePreview: '', form: { @@ -51,11 +52,21 @@ export default { isSubmitting: false, isLayoutVisible: false, isFormValid: false, + isSearch: false, parents: [], paidAthlete: null, teams: [], }; }, + computed: { + filteredEntities() { + if (this.isSearch) { + return this.entitiesWithoutTeam; + } else { + return this.entities; + } + } + }, watch: { form: { handler() { @@ -71,13 +82,13 @@ export default { this.form.headshotFileName = ''; this.form.firstName = ''; this.form.lastName = ''; - this.form.team = ''; this.form.birthday = ''; this.form.currentGrade = ''; this.form.socialLink = ''; if (this.$store.state.authentication.currentRole === 'coach') { this.form.parent = ''; + this.form.team = ''; } if (this.$store.state.authentication.currentRole === 'parent') { @@ -91,14 +102,14 @@ export default { this.form.headshotFileName = entity.headshot_file_name; this.form.firstName = entity.first_name; this.form.lastName = entity.last_name; - this.form.team = {label: entity.team.post_title, code: entity.team.ID}; + this.form.team = {label: entity.team ? entity.team.post_title : 'No Team', code: entity.team ? entity.team.ID : null}; this.form.parent = {label: entity.parent_name, code: entity.parent.ID}; this.form.cardFileName = entity.card_file_name; this.form.certificateFileName = entity.certificate_file_name; this.editAthleteId = entity.ID; let birthday = new Date(entity.birthday); - this.form.birthday = `${birthday.getFullYear()}-${birthday.getMonth() < 10 ? '0' + (birthday.getMonth() + 1) : birthday.getMonth() + 1}-${birthday.getDate()}`; + this.form.birthday = `${birthday.getFullYear()}-${birthday.getMonth() + 1 < 10 ? '0' + (birthday.getMonth() + 1) : birthday.getMonth() + 1}-${birthday.getDate() < 10 ? '0' + birthday.getDate() : birthday.getDate()}`; this.form.currentGrade = entity.current_grade; this.form.socialLink = entity.social_link; }, @@ -113,6 +124,19 @@ export default { this.entities = []; } }); + + if (this.$store.state.authentication.currentRole === 'coach') { + await athletesApi.getAthletesWithoutTeam({ + token: this.$store.state.authentication.token, + currentRole: this.$store.state.authentication.currentRole, + }).then((response) => { + if (response.data.success) { + this.entitiesWithoutTeam = response.data.data; + } else { + this.entitiesWithoutTeam = []; + } + }); + } }, async formSubmit() { this.isSubmitting = true; @@ -199,7 +223,7 @@ export default { coach: [ 'firstName', 'lastName', - 'team', + 'currentGrade', 'parent', 'birthday', ], @@ -207,7 +231,7 @@ export default { 'headshot', 'firstName', 'lastName', - 'team', + 'currentGrade', 'parent', 'birthday', 'cardFileName', @@ -246,6 +270,7 @@ export default { this.errors.push(response.data.data) } this.isSubmitting = false; + this.isSearch = false; }, async remove(id) { this.isLoading = true; @@ -409,10 +434,11 @@ export default {
{{ action }} Athlete -
- Headshot * + Headshot * - -
-
+
  • # @@ -502,11 +528,11 @@ export default { Payment status Actions
  • -
  • {{ index + 1 }}. {{ entity.first_name }} {{ entity.last_name }} - {{ entity.team.post_title }} + {{ entity.team ? entity.team.post_title : 'No Team' }} {{ entity.parent_name }} {{ entity.status }} @@ -522,6 +548,7 @@ export default {

You don't have associated athletes yet

+

No Athletes found

diff --git a/wp-content/themes/player-key/src/components/Board.vue b/wp-content/themes/player-key/src/components/Board.vue index 37d4c01..d6f6363 100644 --- a/wp-content/themes/player-key/src/components/Board.vue +++ b/wp-content/themes/player-key/src/components/Board.vue @@ -245,7 +245,7 @@ export default { - Board {{ test }} + Board diff --git a/wp-content/themes/player-key/src/components/Header.vue b/wp-content/themes/player-key/src/components/Header.vue index 61cb3e3..2519fd3 100644 --- a/wp-content/themes/player-key/src/components/Header.vue +++ b/wp-content/themes/player-key/src/components/Header.vue @@ -1,6 +1,7 @@