From b9e7a15491400428e9db0b064c30feff6005b790 Mon Sep 17 00:00:00 2001 From: JJ Date: Tue, 12 Nov 2024 15:04:42 +0000 Subject: [PATCH 01/26] WIP: using request header to indicate from editor --- css/cloudinary.css | 3 +- css/front-overlay.css | 3 +- css/gallery-block-rtl.css | 4 +- css/gallery-block.css | 5 ++- css/gallery-ui.css | 3 +- css/syntax-highlight.css | 3 +- css/video.css | 3 +- js/asset-edit.js | 3 +- js/asset-manager.js | 3 +- js/block-editor.asset.php | 2 +- js/block-editor.js | 3 +- js/breakpoints-preview.js | 3 +- js/cloudinary.js | 3 +- js/deactivate.asset.php | 2 +- js/deactivate.js | 3 +- js/front-overlay.js | 3 +- js/gallery-block.asset.php | 2 +- js/gallery-block.css | 5 ++- js/gallery-block.js | 3 +- js/gallery-init.asset.php | 2 +- js/gallery-init.js | 3 +- js/gallery-ui.js | 2 + js/gallery.asset.php | 2 +- js/gallery.js | 3 +- js/inline-loader.asset.php | 2 +- js/inline-loader.js | 3 +- js/lazy-load.asset.php | 2 +- js/lazy-load.js | 3 +- js/lazyload-preview.js | 3 +- js/media-modal.asset.php | 2 +- js/media-modal.js | 3 +- js/syntax-highlight.js | 3 +- js/terms-order.asset.php | 2 +- js/terms-order.js | 3 +- js/video-init.asset.php | 2 +- js/video-init.js | 3 +- js/video.js | 2 + js/wp-color-picker-alpha.js | 3 +- php/class-delivery.php | 76 ++++++++++++++++++++++++++++++++++++- src/js/blocks.js | 41 +++++++++++++++++++- 40 files changed, 186 insertions(+), 38 deletions(-) diff --git a/css/cloudinary.css b/css/cloudinary.css index 21eaf8992..b847b218f 100644 --- a/css/cloudinary.css +++ b/css/cloudinary.css @@ -1 +1,2 @@ -.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{background-color:#333;border-radius:4px;color:#fff;font-size:14px;line-height:1.4;outline:0;position:relative;transition-property:transform,visibility,opacity;white-space:normal}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{border-top-color:initial;border-width:8px 8px 0;bottom:-7px;left:0;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:initial;border-width:0 8px 8px;left:0;top:-7px;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-left-color:initial;border-width:8px 0 8px 8px;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{border-right-color:initial;border-width:8px 8px 8px 0;left:-7px;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{color:#333;height:16px;width:16px}.tippy-arrow:before{border-color:transparent;border-style:solid;content:"";position:absolute}.tippy-content{padding:5px 9px;position:relative;z-index:1}@font-face{font-family:cloudinary;font-style:normal;font-weight:500;src:url(../css/fonts/cloudinary.d1a91c7f695026fd20974570349bc540.eot);src:url(../css/fonts/cloudinary.d1a91c7f695026fd20974570349bc540.eot#iefix) format("embedded-opentype"),url(../css/fonts/cloudinary.3b839e5145ad58edde0191367a5a96f0.woff) format("woff"),url(../css/fonts/cloudinary.d8de6736f15e12f71ac22a2d374002e5.ttf) format("truetype"),url(../css/images/cloudinary.svg#cloudinary) format("svg")}.dashicons-cloudinary{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-style:normal;font-variant:normal;font-weight:400;line-height:1;text-transform:none}.dashicons-cloudinary:before{content:"";font-family:cloudinary,monospace!important}.dashicons-cloudinary-media:before{content:"";font-family:cloudinary,monospace!important}.dashicons-cloudinary-dam:before{content:"";font-family:cloudinary,monospace!important}.dashicons-cloudinary.success{color:#558b2f}.dashicons-cloudinary.error{color:#dd2c00}.dashicons-cloudinary.error:before{content:""}.dashicons-cloudinary.uploading{color:#fd9d2c}.dashicons-cloudinary.uploading:before{content:""}.dashicons-cloudinary.info{color:#0071ba}.dashicons-cloudinary.downloading:before{content:""}.dashicons-cloudinary.syncing:before{content:""}.dashicons-cloudinary.media:before{content:""}.dashicons-cloudinary.dam:before{content:""}.column-cld_status{width:5.5em}.column-cld_status .dashicons-cloudinary,.column-cld_status .dashicons-cloudinary-dam{display:inline-block}.column-cld_status .dashicons-cloudinary-dam:before,.column-cld_status .dashicons-cloudinary:before{font-size:1.8rem}.form-field .error-notice,.form-table .error-notice{color:#dd2c00;display:none}.form-field input.cld-field:invalid,.form-table input.cld-field:invalid{border-color:#dd2c00}.form-field input.cld-field:invalid+.error-notice,.form-table input.cld-field:invalid+.error-notice{display:inline-block}.cloudinary-welcome{background-image:url(../css/images/logo.svg);background-position:top 12px right 20px;background-repeat:no-repeat;background-size:153px}.cloudinary-stats{display:inline-block;margin-left:25px}.cloudinary-stat{cursor:help}.cloudinary-percent{color:#0071ba;font-size:.8em;vertical-align:top}.settings-image{max-width:100%;padding-top:5px}.settings-tabs>li{display:inline-block}.settings-tabs>li a{padding:.6em}.settings-tabs>li a.active{background-color:#fff}.settings-tab-section{max-width:1030px;padding:20px 0 0;position:relative}.settings-tab-section.cloudinary-welcome .settings-tab-section-fields-dashboard{align-content:flex-start;align-items:flex-start;display:flex;margin-top:40px}.settings-tab-section.cloudinary-welcome .settings-tab-section-fields-dashboard-description{margin:0 auto 0 0;width:55%}.settings-tab-section.cloudinary-welcome .settings-tab-section-fields-dashboard-content{margin:0 auto;width:35%}.settings-tab-section.cloudinary-welcome .settings-tab-section-fields-dashboard-content .dashicons{color:#9ea3a8}.settings-tab-section.cloudinary-welcome .settings-tab-section-card{margin-top:0}.settings-tab-section-fields .field-heading th{color:#23282d;display:block;font-size:1.1em;margin:1em 0;width:auto}.settings-tab-section-fields .field-heading td{display:none;visibility:hidden}.settings-tab-section-fields .regular-textarea{height:60px;width:100%}.settings-tab-section-fields .dashicons{text-decoration:none;vertical-align:middle}.settings-tab-section-fields a .dashicons{color:#5f5f5f}.settings-tab-section-fields-dashboard-error{color:#5f5f5f;font-size:1.2em}.settings-tab-section-fields-dashboard-error.expanded{margin-bottom:25px;padding-top:40px}.settings-tab-section-fields-dashboard-error .dashicons{color:#ac0000}.settings-tab-section-fields-dashboard-error .button{font-size:1.1em;height:40px;line-height:40px;padding-left:40px;padding-right:40px}.settings-tab-section-fields-dashboard-success{color:#23282d;font-size:1.2em}.settings-tab-section-fields-dashboard-success.expanded{margin-bottom:25px;padding-top:40px}.settings-tab-section-fields-dashboard-success .dashicons{color:#4fb651}.settings-tab-section-fields-dashboard-success .button{font-size:1.1em;height:40px;line-height:40px;padding-left:40px;padding-right:40px}.settings-tab-section-fields-dashboard-success .description{color:#5f5f5f;font-weight:400;margin-top:12px}.settings-tab-section-card{background-color:#fff;border:1px solid #e5e5e5;box-shadow:0 1px 1px 0 rgba(0,0,0,.07);box-sizing:border-box;margin-top:12px;padding:20px 23px}.settings-tab-section-card .dashicons{font-size:1.4em}.settings-tab-section-card h2{font-size:1.8em;font-weight:400;margin-top:0}.settings-tab-section-card.pull-right{float:right;padding:12px;position:relative;width:450px;z-index:10}.settings-tab-section-card.pull-right img.settings-image{border:1px solid #979797;box-shadow:0 2px 4px 0 rgba(0,0,0,.5);margin-top:12px}.settings-tab-section-card.pull-right h3,.settings-tab-section-card.pull-right h4{margin-top:0}.settings-tab-section .field-row-cloudinary_url,.settings-tab-section .field-row-signup{display:block}.settings-tab-section .field-row-cloudinary_url td,.settings-tab-section .field-row-cloudinary_url th,.settings-tab-section .field-row-signup td,.settings-tab-section .field-row-signup th{display:block;padding:10px 0 0;width:auto}.settings-tab-section .field-row-cloudinary_url td .sign-up,.settings-tab-section .field-row-cloudinary_url th .sign-up,.settings-tab-section .field-row-signup td .sign-up,.settings-tab-section .field-row-signup th .sign-up{vertical-align:baseline}.settings-tab-section.connect .form-table{display:inline-block;max-width:580px;width:auto}.settings-valid{color:#558b2f;font-size:30px}.settings-valid-field{border-color:#558b2f!important}.settings-invalid-field{border-color:#dd2c00!important}.settings-alert{box-shadow:0 1px 1px rgba(0,0,0,.04);display:inline-block;padding:5px 7px}.settings-alert-info{background-color:#e9faff;border:1px solid #ccd0d4;border-left:4px solid #00a0d2}.settings-alert-warning{background-color:#fff5e9;border:1px solid #f6e7b6;border-left:4px solid #e3be38}.settings-alert-error{background-color:#ffe9e9;border:1px solid #d4cccc;border-left:4px solid #d20000}.field-radio input[type=radio].cld-field{margin:0 5px 0 0}.field-radio label{margin-right:10px}.settings-tab-section h2{margin:0}.cloudinary-collapsible{background-color:#fff;border:1px solid #ccd0d4;box-shadow:0 1px 1px rgba(0,0,0,.04);box-sizing:border-box;margin:20px 0;padding:10px;width:95%}.cloudinary-collapsible__toggle{cursor:pointer;display:flex}.cloudinary-collapsible__toggle h2{margin:0!important}.cloudinary-collapsible__toggle button{background-color:inherit;border:none;cursor:pointer;margin:0 0 0 auto;padding:0;width:auto}.cloudinary-collapsible__toggle .cld-ui-icon{margin-right:6px;width:24px}.cloudinary-collapsible__content .cld-ui-title{margin:3em 0 1em}.cloudinary-collapsible__content .cld-more-details{margin-top:2em}.sync .spinner{display:inline-block;float:none;margin:0 5px 0 0;visibility:visible}.sync-media,.sync-media-progress{display:none}.sync-media-progress-outer{background-color:#e5e5e5;height:20px;margin:20px 0 10px;position:relative;width:500px}.sync-media-progress-outer .progress-bar{background-color:#558b2f;height:20px;transition:width .25s;width:0}.sync-media-progress-notice{color:#dd2c00}.sync-media-resource{display:inline-block;width:100px}.sync-media-error{color:#dd2c00}.sync-count{font-weight:700}.sync-details{margin-top:10px}.sync .button.start-sync,.sync .button.stop-sync{display:none;padding:0 16px}.sync .button.start-sync .dashicons,.sync .button.stop-sync .dashicons{line-height:2.2}.sync .progress-text{display:inline-block;font-weight:700;padding:12px 4px 12px 12px}.sync .completed{display:none;max-width:300px}.sync-status-disabled{color:#dd2c00}.sync-status-enabled{color:#558b2f}.sync-status-button.button{vertical-align:baseline}.cloudinary-widget{height:100%}.cloudinary-widget-wrapper{background-image:url(data:image/svg+xml;base64,PHN2ZyBjbGFzcz0ic3Bpbm5lciIgdmlld0JveD0iLTQgLTQgMTUxIDEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+PCFbQ0RBVEFbCiAgICAgIEBrZXlmcmFtZXMgY29sb3JzIHsKICAgICAgICAwJSB7IHN0cm9rZTogIzAwNzhGRjsgfQogICAgICAgICAgNTAlIHsgc3Ryb2tlOiAjMGUyZjVhOyB9CiAgICAgICAgICAxMDAlIHsgc3Ryb2tlOiAjMDA3OEZGOyB9CiAgICAgIH0KCiAgICAgIEBrZXlmcmFtZXMgZGFzaCB7CiAgICAgICAwJSB7IHN0cm9rZS1kYXNob2Zmc2V0OiA1NjA7IH0KICAgICAgIDUwJSB7CiAgICAgICAgICBzdHJva2UtZGFzaG9mZnNldDogMDsKICAgICAgIH0KICAgICAgIDEwMCUgeyAgIHN0cm9rZS1kYXNob2Zmc2V0OiA1NjA7IH0KICAgICAgfQogICAgICBALXdlYmtpdC1rZXlmcmFtZXMgY29sb3JzIHsKICAgICAgICAwJSB7IHN0cm9rZTogIzAwNzhmZjsgfQogICAgICAgICAgNTAlIHsgc3Ryb2tlOiAjMGUyZjVhOyB9CiAgICAgICAgICAxMDAlIHsgc3Ryb2tlOiAjMDA3OGZmOyB9CiAgICAgIH0KCiAgICAgIEAtd2Via2l0LWtleWZyYW1lcyBkYXNoIHsKICAgICAgIDAlIHsgc3Ryb2tlLWRhc2hvZmZzZXQ6IDU2MDsgfQogICAgICAgNTAlIHsKICAgICAgICAgIHN0cm9rZS1kYXNob2Zmc2V0OiAwOwogICAgICAgfQogICAgICAgMTAwJSB7ICAgc3Ryb2tlLWRhc2hvZmZzZXQ6IDU2MDsKICAgICAgIH0KICAgICAgfQogICAgICAucGF0aCB7CiAgICAgICAgc3Ryb2tlLWRhc2hhcnJheTogMjgwOwogICAgICAgIHN0cm9rZS1kYXNob2Zmc2V0OiAwOwogICAgICAgIHRyYW5zZm9ybS1vcmlnaW46IGNlbnRlcjsKICAgICAgICAtd2Via2l0LWFuaW1hdGlvbjoKICAgICAgICAgIGRhc2ggMnMgZWFzZS1pbi1vdXQgaW5maW5pdGUsIGNvbG9ycyA4cyBlYXNlLWluLW91dCBpbmZpbml0ZTsKICAgICAgICBhbmltYXRpb246CiAgICAgICAgICBkYXNoIDJzIGVhc2UtaW4tb3V0IGluZmluaXRlLCBjb2xvcnMgOHMgZWFzZS1pbi1vdXQgaW5maW5pdGU7CiAgICAgIH0KICAgIF1dPjwvc3R5bGU+CiAgPHBhdGggY2xhc3M9InBhdGgiIGQ9Ik0xMjEuNjYzIDkwLjYzOGMtMS43OTYgMC05OS4zMy0uNDk4LTEwMS40NzQtMS40NzhDOC42ODUgODMuODc3IDEuMjUgNzIuMTk2IDEuMjUgNTkuMzk2YzAtMTYuNjU2IDEyLjc5Ny0zMC42MSAyOS4wNTItMzIuMzIzIDcuNDktMTUuNzA2IDIzLjE4Ni0yNS43MDcgNDAuNzE0LTI1LjcwNyAyMC45OCAwIDM5LjIxNSAxNC43NTIgNDMuOTQ1IDM0LjkwNyAxNS4wOS4yNDUgMjcuMjkgMTIuNjMgMjcuMjkgMjcuODIyIDAgMTEuOTY4LTcuNzM4IDIyLjU1LTE5LjI1NiAyNi4zMyIgc3Ryb2tlLXdpZHRoPSI5IiBzdHJva2UtbGluZWNhcD0icm91bmQiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPgo8L3N2Zz4K);background-position:50%;background-repeat:no-repeat;background-size:150px;height:100%;overflow:hidden}.attachment-actions .button.edit-attachment,.attachment-info .edit-attachment{display:none}.setting.cld-overwrite input[type=checkbox]{margin-top:0}.global-transformations-preview{max-width:600px;position:relative}.global-transformations-spinner{display:none}.global-transformations-button.button-primary{display:none;position:absolute;z-index:100}.global-transformations-url{margin-bottom:5px;margin-top:5px}.global-transformations-url-transformation{color:#51a3ff;max-width:100px;overflow:hidden;text-overflow:ellipsis}.global-transformations-url-file{color:#f2d864}.global-transformations-url-link{background-color:#262c35;border-radius:6px;color:#fff;display:block;overflow:hidden;padding:16px;text-decoration:none;text-overflow:ellipsis}.global-transformations-url-link:hover{color:#888;text-decoration:underline}.cld-tax-order-list-item{background-color:#fff;border:1px solid #efefef;margin:0 0 -1px;padding:4px}.cld-tax-order-list-item.no-items{color:#888;display:none;text-align:center}.cld-tax-order-list-item.no-items:last-child{display:block}.cld-tax-order-list-item.ui-sortable-helper{box-shadow:0 2px 5px rgba(0,0,0,.2)}.cld-tax-order-list-item-placeholder{background-color:#efefef;height:45px;margin:0}.cld-tax-order-list-item-handle{color:#999;cursor:grab;margin-right:4px}.cld-tax-order-list-type{display:inline-block;margin-right:8px}.cld-tax-order-list-type input{margin-right:4px!important}.cloudinary-media-library{margin-left:-20px;position:relative}@media screen and (max-width:782px){.cloudinary-media-library{margin-left:-10px}}.cld-ui-suffix{background-color:#e8e8e8;border-radius:4px;color:#999;display:inline-block;font-family:Courier New,Courier,monospace;font-size:12px;font-weight:700;line-height:1.7em;margin-left:13px;padding:4px 6px}.cld-ui-preview .cld-ui-header{margin-top:-1px}.cld-ui-preview .cld-ui-header:first-child{margin-top:13px}.cld-ui-collapse{align-self:center;cursor:pointer;padding:0 .45rem}.cld-ui-title{font-size:12px}.cld-ui-title h2{font-size:15px;font-weight:700;margin:6px 0 1px}.cld-ui-title.collapsible{cursor:pointer}.cld-ui-conditional .closed,.cld-ui-wrap .closed{display:none}.cld-ui-wrap .description{color:rgba(0,0,1,.5);font-size:12px}.cld-ui-wrap .cloudname{font-style:italic}.cld-ui-wrap .button:not(.wp-color-result){background-color:#3448c5;border:0;border-radius:4px;color:#fff;display:inline-block;font-size:11px;font-weight:700;margin:0;min-height:28px;padding:5px 14px;text-decoration:none}.cld-ui-wrap .button:active,.cld-ui-wrap .button:hover{background-color:#1e337f}.cld-ui-wrap .button:focus{background-color:#3448c5;border-color:#3448c5;box-shadow:0 0 0 1px #fff,0 0 0 3px #3448c5}.cld-ui-wrap .button.button-small,.cld-ui-wrap .button.button-small:hover{font-size:11px;line-height:2.18181818;min-height:26px;padding:0 8px}.cld-ui-wrap .button.wp-color-result{border-color:#d0d0d0}.cld-ui-wrap .button.hidden{display:none}.cld-ui-error{color:#dd2c00}.cld-referrer-link{display:inline-block;margin:12px 0 0;text-decoration:none}.cld-referrer-link span{margin-right:5px}.cld-special-offer{background-color:#ff5050;border-radius:4px 4px 0 0;color:#fff;font-size:14px;font-weight:700;margin:2em 0 0;padding:5px 14px;text-decoration:none}.cld-settings{margin-left:-20px}.cld-page-tabs{background-color:#fff;border-bottom:1px solid #e5e5e5;display:none;flex-wrap:nowrap;justify-content:center;margin:-20px -18px 20px;padding:0!important}@media only screen and (max-width:1200px){.cld-page-tabs{display:flex}}.cld-page-tabs-tab{list-style:none;margin-bottom:0;text-indent:0;width:100%}.cld-page-tabs-tab button{background:transparent;border:0;color:#000001;cursor:pointer;display:block;font-weight:500;padding:1rem 2rem;text-align:center;white-space:nowrap;width:100%}.cld-page-tabs-tab button.is-active{border-bottom:2px solid #3448c5;color:#3448c5}.cld-page-header{align-items:center;background-color:#3448c5;display:flex;flex-direction:column;justify-content:space-between;margin-bottom:0;padding:16px}@media only screen and (min-width:783px){.cld-page-header{flex-direction:row}}.cld-page-header img{width:150px}.cld-page-header-button{background-color:#1e337f;border-radius:4px;color:#fff;display:inline-block;font-weight:700;margin:1em 0 0 9px;padding:5px 14px;text-decoration:none}@media only screen and (min-width:783px){.cld-page-header-button{margin-top:0}}.cld-page-header-button:focus,.cld-page-header-button:hover{color:#fff;text-decoration:none}.cld-page-header-logo{align-items:center;display:flex}.cld-page-header-logo .version{color:#fff;font-size:10px;margin-left:12px}.cld-page-header p{font-size:11px;margin:0}.cld-cron,.cld-info-box,.cld-panel,.cld-panel-short{background-color:#fff;border:1px solid #c6d1db;margin-top:13px;padding:23px 24px}.cld-panel.full-width,.full-width.cld-cron,.full-width.cld-info-box,.full-width.cld-panel-short{max-width:100%}.cld-panel.has-heading,.has-heading.cld-cron,.has-heading.cld-info-box,.has-heading.cld-panel-short{border-top:0;margin-top:0}.cld-panel-heading{display:flex;justify-content:space-between;padding:19px 23px;position:relative}.cld-panel-heading.full-width{max-width:100%}.cld-panel-heading img{margin-right:.6rem}.cld-panel-heading.collapsible{cursor:pointer;padding-right:1rem}.cld-panel-inner{background-color:hsla(0,0%,86%,.2);border:1px solid #e5e5e5;margin:1em 0;padding:1.3rem}.cld-panel-inner h2{color:#3273ab}.cld-cron hr,.cld-info-box hr,.cld-panel hr,.cld-panel-short hr{border-top:1px solid #e5e5e5;clear:both;margin:19px 0 20px}.cld-cron ul,.cld-info-box ul,.cld-panel ul,.cld-panel-short ul{list-style:initial;padding:0 3em}.cld-cron .stat-boxes,.cld-info-box .stat-boxes,.cld-panel .stat-boxes,.cld-panel-short .stat-boxes{border:1px solid #e5e5e5;font-size:1.2em}.cld-cron .stat-boxes .box,.cld-info-box .stat-boxes .box,.cld-panel .stat-boxes .box,.cld-panel-short .stat-boxes .box{border-bottom:1px solid #e5e5e5;padding:2rem;text-align:center}.cld-cron .stat-boxes .box:last-of-type,.cld-info-box .stat-boxes .box:last-of-type,.cld-panel .stat-boxes .box:last-of-type,.cld-panel-short .stat-boxes .box:last-of-type{border-bottom:none}.cld-cron .stat-boxes .box .cld-ui-icon,.cld-info-box .stat-boxes .box .cld-ui-icon,.cld-panel .stat-boxes .box .cld-ui-icon,.cld-panel-short .stat-boxes .box .cld-ui-icon{height:35px;width:35px}.cld-cron .stat-boxes .icon,.cld-info-box .stat-boxes .icon,.cld-panel .stat-boxes .icon,.cld-panel-short .stat-boxes .icon{height:50px;margin-right:.5em;width:50px}.cld-cron .stat-boxes h3,.cld-info-box .stat-boxes h3,.cld-panel .stat-boxes h3,.cld-panel-short .stat-boxes h3{margin-bottom:1.5rem;margin-top:2.4rem}.cld-cron .stat-boxes .limit,.cld-info-box .stat-boxes .limit,.cld-panel .stat-boxes .limit,.cld-panel-short .stat-boxes .limit{font-size:2em;font-weight:700;margin-right:.5em;white-space:nowrap}.cld-cron .stat-boxes .usage,.cld-info-box .stat-boxes .usage,.cld-panel .stat-boxes .usage,.cld-panel-short .stat-boxes .usage{color:#3273ab;font-size:1.5em;font-weight:400}@media only screen and (min-width:783px){.cld-cron .stat-boxes,.cld-info-box .stat-boxes,.cld-panel .stat-boxes,.cld-panel-short .stat-boxes{display:flex;flex-wrap:nowrap;font-size:1em}.cld-cron .stat-boxes .box,.cld-info-box .stat-boxes .box,.cld-panel .stat-boxes .box,.cld-panel-short .stat-boxes .box{border-bottom:none;border-right:1px solid #e5e5e5;flex-grow:1}.cld-cron .stat-boxes .box:last-of-type,.cld-info-box .stat-boxes .box:last-of-type,.cld-panel .stat-boxes .box:last-of-type,.cld-panel-short .stat-boxes .box:last-of-type{border-right:none}}@media only screen and (min-width:1200px){.cld-cron .stat-boxes,.cld-info-box .stat-boxes,.cld-panel .stat-boxes,.cld-panel-short .stat-boxes{font-size:1.2em}}.cld-cron .img-connection-string,.cld-info-box .img-connection-string,.cld-panel .img-connection-string,.cld-panel-short .img-connection-string{width:100%}.cld-cron .media-status-box,.cld-cron .stat-boxes,.cld-info-box .media-status-box,.cld-info-box .stat-boxes,.cld-panel .media-status-box,.cld-panel .stat-boxes,.cld-panel-short .media-status-box,.cld-panel-short .stat-boxes{border:1px solid #e5e5e5}.cld-cron .media-status-box,.cld-info-box .media-status-box,.cld-panel .media-status-box,.cld-panel-short .media-status-box{padding:2rem;text-align:center}.cld-cron .media-status-box .status,.cld-info-box .media-status-box .status,.cld-panel .media-status-box .status,.cld-panel-short .media-status-box .status{font-size:2rem;font-weight:700;margin-right:.5em}.cld-cron .media-status-box .cld-ui-icon,.cld-info-box .media-status-box .cld-ui-icon,.cld-panel .media-status-box .cld-ui-icon,.cld-panel-short .media-status-box .cld-ui-icon{height:35px;width:35px}.cld-cron .notification,.cld-info-box .notification,.cld-panel .notification,.cld-panel-short .notification{display:inline-flex;font-weight:700;padding:1.5rem}.cld-cron .notification-success,.cld-info-box .notification-success,.cld-panel .notification-success,.cld-panel-short .notification-success{background-color:rgba(32,184,50,.2);border:2px solid #20b832}.cld-cron .notification-success:before,.cld-info-box .notification-success:before,.cld-panel .notification-success:before,.cld-panel-short .notification-success:before{color:#20b832}.cld-cron .notification-syncing,.cld-info-box .notification-syncing,.cld-panel .notification-syncing,.cld-panel-short .notification-syncing{background-color:rgba(50,115,171,.2);border:2px solid #3273ab;color:#444;text-decoration:none}.cld-cron .notification-syncing:before,.cld-info-box .notification-syncing:before,.cld-panel .notification-syncing:before,.cld-panel-short .notification-syncing:before{-webkit-animation:spin 1s infinite running;-moz-animation:spin 1s linear infinite;animation:spin 1s linear infinite;color:#3273ab}@keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.cld-cron .notification:before,.cld-info-box .notification:before,.cld-panel .notification:before,.cld-panel-short .notification:before{margin-right:.5em}.cld-cron .help-wrap,.cld-info-box .help-wrap,.cld-panel .help-wrap,.cld-panel-short .help-wrap{align-items:stretch;display:flex;flex-direction:row;flex-grow:1;justify-content:flex-start}.cld-cron .help-wrap .help-box .large-button,.cld-info-box .help-wrap .help-box .large-button,.cld-panel .help-wrap .help-box .large-button,.cld-panel-short .help-wrap .help-box .large-button{background:#fff;border-radius:4px;box-shadow:0 1px 8px 0 rgba(0,0,0,.3);color:initial;display:block;height:100%;text-decoration:none}.cld-cron .help-wrap .help-box .large-button:hover,.cld-info-box .help-wrap .help-box .large-button:hover,.cld-panel .help-wrap .help-box .large-button:hover,.cld-panel-short .help-wrap .help-box .large-button:hover{background-color:#eaecfa;box-shadow:0 1px 8px 0 rgba(0,0,0,.5)}.cld-cron .help-wrap .help-box .large-button .cld-ui-wrap,.cld-info-box .help-wrap .help-box .large-button .cld-ui-wrap,.cld-panel .help-wrap .help-box .large-button .cld-ui-wrap,.cld-panel-short .help-wrap .help-box .large-button .cld-ui-wrap{padding-bottom:.5em}.cld-cron .help-wrap .help-box img,.cld-info-box .help-wrap .help-box img,.cld-panel .help-wrap .help-box img,.cld-panel-short .help-wrap .help-box img{border-radius:4px 4px 0 0;width:100%}.cld-cron .help-wrap .help-box div,.cld-cron .help-wrap .help-box h4,.cld-info-box .help-wrap .help-box div,.cld-info-box .help-wrap .help-box h4,.cld-panel .help-wrap .help-box div,.cld-panel .help-wrap .help-box h4,.cld-panel-short .help-wrap .help-box div,.cld-panel-short .help-wrap .help-box h4{padding:0 12px}.cld-panel-short{display:inline-block;min-width:270px;width:auto}.cld-info-box{align-items:stretch;border-radius:4px;display:flex;margin:0 0 19px;max-width:500px;padding:0}@media only screen and (min-width:783px){.cld-info-box{flex-direction:row}}.cld-info-box .cld-ui-title h2{font-size:15px;margin:0 0 6px}.cld-info-box .cld-info-icon{background-color:#eaecfa;border-radius:4px 0 0 4px;display:flex;justify-content:center;text-align:center;vertical-align:center;width:49px}.cld-info-box .cld-info-icon img{width:24px}.cld-info-box a.button,.cld-info-box img{align-self:center}.cld-info-box .cld-ui-body{display:inline-block;font-size:12px;line-height:normal;margin:0 auto;padding:12px 9px;width:100%}.cld-info-box-text{color:rgba(0,0,1,.5);font-size:12px}.cld-submit,.cld-switch-cloud{background-color:#fff;border:1px solid #c6d1db;border-top:0;padding:1.2rem 1.75rem}.cld-panel.closed+.cld-submit,.cld-panel.closed+.cld-switch-cloud,.closed.cld-cron+.cld-submit,.closed.cld-cron+.cld-switch-cloud,.closed.cld-info-box+.cld-submit,.closed.cld-info-box+.cld-switch-cloud,.closed.cld-panel-short+.cld-submit,.closed.cld-panel-short+.cld-switch-cloud{display:none}.cld-stat-percent{align-items:center;display:flex;justify-content:flex-start;line-height:1}.cld-stat-percent h2{color:#54c8db;font-size:48px;margin:0 12px 0 0}.cld-stat-percent-text{font-weight:700}.cld-stat-legend{display:flex;font-weight:700;margin:0 0 16px 12px;min-width:200px}.cld-stat-legend-dot{border-radius:50%;display:inline-block;height:20px;margin-right:6px;width:20px}.cld-stat-legend-dot.blue-dot{background-color:#2e49cd}.cld-stat-legend-dot.aqua-dot{background-color:#54c8db}.cld-stat-legend-dot.red-dot{background-color:#e12600}.cld-stat-text{font-weight:700;margin:.75em 0}.cld-stat-text.cld-link-button{margin:.75em 0}.cld-loading{background-image:url(data:image/svg+xml;base64,PHN2ZyBjbGFzcz0ic3Bpbm5lciIgdmlld0JveD0iLTQgLTQgMTUxIDEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+PCFbQ0RBVEFbCiAgICAgIEBrZXlmcmFtZXMgY29sb3JzIHsKICAgICAgICAwJSB7IHN0cm9rZTogIzAwNzhGRjsgfQogICAgICAgICAgNTAlIHsgc3Ryb2tlOiAjMGUyZjVhOyB9CiAgICAgICAgICAxMDAlIHsgc3Ryb2tlOiAjMDA3OEZGOyB9CiAgICAgIH0KCiAgICAgIEBrZXlmcmFtZXMgZGFzaCB7CiAgICAgICAwJSB7IHN0cm9rZS1kYXNob2Zmc2V0OiA1NjA7IH0KICAgICAgIDUwJSB7CiAgICAgICAgICBzdHJva2UtZGFzaG9mZnNldDogMDsKICAgICAgIH0KICAgICAgIDEwMCUgeyAgIHN0cm9rZS1kYXNob2Zmc2V0OiA1NjA7IH0KICAgICAgfQogICAgICBALXdlYmtpdC1rZXlmcmFtZXMgY29sb3JzIHsKICAgICAgICAwJSB7IHN0cm9rZTogIzAwNzhmZjsgfQogICAgICAgICAgNTAlIHsgc3Ryb2tlOiAjMGUyZjVhOyB9CiAgICAgICAgICAxMDAlIHsgc3Ryb2tlOiAjMDA3OGZmOyB9CiAgICAgIH0KCiAgICAgIEAtd2Via2l0LWtleWZyYW1lcyBkYXNoIHsKICAgICAgIDAlIHsgc3Ryb2tlLWRhc2hvZmZzZXQ6IDU2MDsgfQogICAgICAgNTAlIHsKICAgICAgICAgIHN0cm9rZS1kYXNob2Zmc2V0OiAwOwogICAgICAgfQogICAgICAgMTAwJSB7ICAgc3Ryb2tlLWRhc2hvZmZzZXQ6IDU2MDsKICAgICAgIH0KICAgICAgfQogICAgICAucGF0aCB7CiAgICAgICAgc3Ryb2tlLWRhc2hhcnJheTogMjgwOwogICAgICAgIHN0cm9rZS1kYXNob2Zmc2V0OiAwOwogICAgICAgIHRyYW5zZm9ybS1vcmlnaW46IGNlbnRlcjsKICAgICAgICAtd2Via2l0LWFuaW1hdGlvbjoKICAgICAgICAgIGRhc2ggMnMgZWFzZS1pbi1vdXQgaW5maW5pdGUsIGNvbG9ycyA4cyBlYXNlLWluLW91dCBpbmZpbml0ZTsKICAgICAgICBhbmltYXRpb246CiAgICAgICAgICBkYXNoIDJzIGVhc2UtaW4tb3V0IGluZmluaXRlLCBjb2xvcnMgOHMgZWFzZS1pbi1vdXQgaW5maW5pdGU7CiAgICAgIH0KICAgIF1dPjwvc3R5bGU+CiAgPHBhdGggY2xhc3M9InBhdGgiIGQ9Ik0xMjEuNjYzIDkwLjYzOGMtMS43OTYgMC05OS4zMy0uNDk4LTEwMS40NzQtMS40NzhDOC42ODUgODMuODc3IDEuMjUgNzIuMTk2IDEuMjUgNTkuMzk2YzAtMTYuNjU2IDEyLjc5Ny0zMC42MSAyOS4wNTItMzIuMzIzIDcuNDktMTUuNzA2IDIzLjE4Ni0yNS43MDcgNDAuNzE0LTI1LjcwNyAyMC45OCAwIDM5LjIxNSAxNC43NTIgNDMuOTQ1IDM0LjkwNyAxNS4wOS4yNDUgMjcuMjkgMTIuNjMgMjcuMjkgMjcuODIyIDAgMTEuOTY4LTcuNzM4IDIyLjU1LTE5LjI1NiAyNi4zMyIgc3Ryb2tlLXdpZHRoPSI5IiBzdHJva2UtbGluZWNhcD0icm91bmQiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPgo8L3N2Zz4K);background-position:50%;background-repeat:no-repeat;background-size:50px 50px;height:100px;width:auto}.cld-loading.tree-branch{background-position:25px;background-size:50px 50px}.cld-syncing{background:url(../css/images/loading.svg) no-repeat 50%;display:inline-block;height:20px;margin-left:12px;padding:4px;width:30px}.cld-dashboard-placeholder{align-content:center;align-items:center;background-color:#eff5f8;display:flex;flex-direction:column;justify-content:center;min-height:120px}.cld-dashboard-placeholder h4{margin:12px 0 0}.cld-chart-stat{padding-bottom:2em}.cld-chart-stat canvas{max-height:100%;max-width:100%}.cld-progress-circular{display:block;height:160px;margin:2em .5em 2em 0;position:relative;width:160px}.cld-progress-circular .progressbar-text{color:#222;font-size:1em;font-weight:bolder;left:50%;margin:0;padding:0;position:absolute;text-align:center;text-transform:capitalize;top:50%;transform:translate(-50%,-50%);width:100%}.cld-progress-circular .progressbar-text h2{font-size:48px;line-height:1;margin:0 0 .15em}.cld-progress-box{align-items:center;display:flex;justify-content:flex-start;margin:0 0 16px;width:100%}.cld-progress-box-title{font-size:15px;line-height:1.4;margin:12px 0 16px}.cld-progress-box-line{display:block;height:5px;min-width:1px;transition:width 2s;width:0}.cld-progress-box-line-value{font-weight:700;padding:0 0 0 8px;width:100px}.cld-progress-line{background-color:#c6d1db;display:block;height:3px;position:relative;width:100%}.cld-progress-header{font-weight:bolder}.cld-progress-header-titles{display:flex;font-size:12px;justify-content:space-between;margin-top:5px}.cld-progress-header-titles-left{color:#3448c5}.cld-progress-header-titles-right{color:#c6d1db;font-weight:400}.cld-line-stat{margin-bottom:15px}.cld-pagenav{color:#555;line-height:2.4em;margin-top:5px}.cld-pagenav-text{margin:0 2em}.cld-delete{color:#dd2c00;cursor:pointer;float:right}.cld-apply-action{float:right}.cld-table thead tr th.cld-table-th{line-height:1.8em}.cld-asset .cld-input-on-off{display:inline-block}.cld-asset .cld-input-label{display:inline-block;margin-bottom:0}.cld-asset-edit{align-items:flex-end;display:flex}.cld-asset-edit-button.button.button-primary{padding:3px 14px 4px}.cld-asset-preview-label{font-weight:bolder;margin-right:10px;width:100%}.cld-asset-preview-input{margin-top:6px;width:100%}.cld-link-button{background-color:#3448c5;border-radius:4px;display:inline-block;font-size:11px;font-weight:700;margin:0;padding:5px 14px}.cld-link-button,.cld-link-button:focus,.cld-link-button:hover{color:#fff;text-decoration:none}.cld-link-button.hidden{display:none}.cld-link-button-secondary{background-color:#c6d1db;border:1px solid #3448c5;color:rgba(0,0,1,.75)}.cld-link-button-secondary:focus,.cld-link-button-secondary:hover{background-color:#3448c5}.cld-link-button-secondary-error{border-color:#dd2c00}.cld-link-button-secondary-error:focus,.cld-link-button-secondary-error:hover{background-color:#dd2c00}.cld-tooltip{color:#999;font-size:12px;line-height:1.3em;margin:8px 0}.cld-tooltip .selected{color:rgba(0,0,1,.75)}.cld-notice-box{box-shadow:0 0 2px rgba(0,0,0,.1);margin-bottom:12px;margin-right:20px;position:relative}.cld-notice-box .cld-notice{padding:1rem 2.2rem .75rem 1.2rem}.cld-notice-box .cld-notice img.cld-ui-icon{height:100%}.cld-notice-box.is-dismissible{padding-right:38px}.cld-notice-box.has-icon{padding-left:38px}.cld-notice-box.is-created,.cld-notice-box.is-success,.cld-notice-box.is-updated{background-color:#ebf5ec;border-left:4px solid #42ad4f}.cld-notice-box.is-created .dashicons,.cld-notice-box.is-success .dashicons,.cld-notice-box.is-updated .dashicons{color:#2a0}.cld-notice-box.is-error{background-color:#f8e8e7;border-left:4px solid #cb3435}.cld-notice-box.is-error .dashicons{color:#dd2c00}.cld-notice-box.is-warning{background-color:#fff7e5;border-left:4px solid #f2ad4c}.cld-notice-box.is-warning .dashicons{color:#fd9d2c}.cld-notice-box.is-info{background-color:#e4f4f8;border-left:4px solid #2a95c3}.cld-notice-box.is-info .dashicons{color:#3273ab}.cld-notice-box.is-neutral{background-color:#fff;border-left:4px solid #ccd0d4}.cld-notice-box.is-neutral .dashicons{color:#90a0b3}.cld-notice-box.dismissed{overflow:hidden;transition:height .3s ease-out}.cld-notice-box .cld-ui-icon,.cld-notice-box .dashicons{left:19px;position:absolute;top:14px}.cld-connection-box{align-items:center;background-color:#303a47;border-radius:4px;color:#fff;display:flex;justify-content:space-around;max-width:500px;padding:20px 17px}.cld-connection-box h3{color:#fff;margin:0 0 5px}.cld-connection-box span{display:inline-block;padding:0 12px 0 0}.cld-connection-box .dashicons{font-size:30px;height:30px;margin:0;padding:0;width:30px}.cld-row{clear:both;display:flex;margin:0}.cld-row.align-center{align-items:center}@media only screen and (max-width:783px){.cld-row{flex-direction:column-reverse}}.cld-column{box-sizing:border-box;padding:0 0 0 13px;width:100%}@media only screen and (min-width:783px){.cld-column.column-45{width:45%}.cld-column.column-55{width:55%}.cld-column:last-child{padding-right:13px}}@media only screen and (max-width:783px){.cld-column{min-width:100%}.cld-column .cld-info-text{text-align:center}}@media only screen and (max-width:1200px){.cld-column.tabbed-content{display:none}.cld-column.tabbed-content.is-active{display:block}}.cld-column .cld-column{margin-right:16px;padding:0}.cld-column .cld-column:last-child{margin-left:auto;margin-right:0}.cld-center-column.cld-info-text{font-size:15px;font-weight:bolder;padding-left:2em}.cld-center-column.cld-info-text .description{font-size:12px;padding-top:8px}.cld-breakpoints-preview,.cld-image-preview,.cld-lazyload-preview,.cld-video-preview{border:1px solid #c6d1db;border-radius:4px;padding:9px}.cld-breakpoints-preview-wrapper,.cld-image-preview-wrapper,.cld-lazyload-preview-wrapper,.cld-video-preview-wrapper{position:relative}.cld-breakpoints-preview .cld-ui-title,.cld-image-preview .cld-ui-title,.cld-lazyload-preview .cld-ui-title,.cld-video-preview .cld-ui-title{font-weight:700;margin:5px 0 12px}.cld-breakpoints-preview img,.cld-image-preview img,.cld-lazyload-preview img,.cld-video-preview img{border-radius:4px;height:100%;width:100%}.cld.cld-ui-preview{max-width:322px}.cld-breakpoints-preview .cld-image-preview-wrapper:hover .preview-image,.cld-lazyload-preview .cld-image-preview-wrapper:hover .preview-image{opacity:0}.cld-breakpoints-preview .cld-image-preview-wrapper:hover .main-image,.cld-lazyload-preview .cld-image-preview-wrapper:hover .main-image{opacity:1}.cld-breakpoints-preview .cld-image-preview-wrapper:hover .main-image img,.cld-breakpoints-preview .cld-image-preview-wrapper:hover .main-image span,.cld-lazyload-preview .cld-image-preview-wrapper:hover .main-image img,.cld-lazyload-preview .cld-image-preview-wrapper:hover .main-image span{opacity:.4}.cld-breakpoints-preview .preview-image,.cld-lazyload-preview .preview-image{background-color:#222;border-radius:4px;bottom:0;box-shadow:2px -2px 3px rgba(0,0,0,.9);display:flex;left:0;position:absolute}.cld-breakpoints-preview .preview-image:hover,.cld-breakpoints-preview .preview-image:hover img,.cld-breakpoints-preview .preview-image:hover span,.cld-lazyload-preview .preview-image:hover,.cld-lazyload-preview .preview-image:hover img,.cld-lazyload-preview .preview-image:hover span{opacity:1!important}.cld-breakpoints-preview .preview-image.main-image,.cld-lazyload-preview .preview-image.main-image{box-shadow:none;position:relative}.cld-breakpoints-preview .preview-text,.cld-lazyload-preview .preview-text{background-color:#3448c5;color:#fff;padding:3px;position:absolute;right:0;text-shadow:0 0 3px #000;top:0}.cld-breakpoints-preview .global-transformations-url-link:hover,.cld-lazyload-preview .global-transformations-url-link:hover{color:#fff;text-decoration:none}.cld-lazyload-preview .progress-bar{background-color:#3448c5;height:2px;transition:width 1s;width:0}.cld-lazyload-preview .preview-image{background-color:#fff}.cld-lazyload-preview img{transition:opacity 1s}.cld-lazyload-preview .global-transformations-url-link{background-color:transparent}.cld-group .cld-group .cld-group{padding-left:4px}.cld-group .cld-group .cld-group hr{display:none}.cld-group-heading{display:flex;justify-content:space-between}.cld-group-heading h3{font-size:.9rem}.cld-group-heading h3 .description{font-size:.7rem;font-weight:400;margin-left:.7em}.cld-group .cld-ui-title-head{margin-bottom:1em}.cld-input{display:block;margin:0 0 23px;max-width:800px}.cld-input-label{display:block;margin-bottom:8px}.cld-input-label .cld-ui-title{font-size:14px;font-weight:700}.cld-input-label-link{color:#3448c5;font-size:12px;margin-left:8px}.cld-input-label-link:hover{color:#1e337f}.cld-input-radio-label{display:block}.cld-input-radio-label:not(:first-of-type){padding-top:8px}.cld-input .regular-number,.cld-input .regular-text{border:1px solid #d0d0d0;border-radius:3px;font-size:13px;padding:.1rem .5rem;width:100%}.cld-input .regular-number-small,.cld-input .regular-text-small{width:40%}.cld-input .regular-number{width:100px}.cld-input .regular-select{appearance:none;border:1px solid #d0d0d0;border-radius:3px;display:inline;font-size:13px;font-weight:600;min-width:150px;padding:2px 30px 2px 6px}.cld-input-on-off .description{color:inherit;font-size:13px;font-weight:600;margin:0}.cld-input-on-off .description.left{margin-left:0;margin-right:.4rem}.cld-input-on-off input[type=checkbox]~.spinner{background-size:12px 12px;float:none;height:12px;margin:2px;opacity:1;position:absolute;right:14px;top:0;transition:right .2s;visibility:visible;width:12px}.cld-input-on-off input[type=checkbox]:checked~.spinner{right:0}.cld-input-on-off-control{display:inline-block;height:16px;margin-right:.4rem;position:relative;width:30px}.cld-input-on-off-control input,.cld-input-on-off-control input:disabled{height:0;opacity:0;width:0}.cld-input-on-off-control-slider{background-color:#90a0b3;border-radius:10px;bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:background-color .3s}input:disabled+.cld-input-on-off-control-slider{opacity:.4;pointer-events:none}input:checked+.cld-input-on-off-control-slider{background-color:#3448c5!important}input:checked.partial+.cld-input-on-off-control-slider{background-color:#fd9d2c!important}input:checked.delete+.cld-input-on-off-control-slider{background-color:#dd2c00!important}.cld-input-on-off-control-slider:before{background-color:#fff;border-radius:50%;bottom:2px;content:"";display:block;height:12px;left:2px;position:absolute;transition:transform .2s;width:12px}input:checked+.cld-input-on-off-control-slider:before{transform:translateX(14px)}.mini input:checked+.cld-input-on-off-control-slider:before{transform:translateX(10px)}.cld-input-on-off-control.mini{height:10px;width:20px}.mini .cld-input-on-off-control-slider:before{bottom:1px;height:8px;left:1px;width:8px}.cld-input-icon-toggle{align-items:center;display:inline-flex}.cld-input-icon-toggle .description{margin:0 0 0 .4rem}.cld-input-icon-toggle .description.left{margin-left:0;margin-right:.4rem}.cld-input-icon-toggle-control{display:inline-block;position:relative}.cld-input-icon-toggle-control input{height:0;opacity:0;position:absolute;width:0}.cld-input-icon-toggle-control-slider .icon-on{display:none;visibility:hidden}.cld-input-icon-toggle-control-slider .icon-off,input:checked+.cld-input-icon-toggle-control-slider .icon-on{display:inline-block;visibility:visible}input:checked+.cld-input-icon-toggle-control-slider .icon-off{display:none;visibility:hidden}.cld-input-excluded-types div{display:flex}.cld-input-excluded-types .type{border:1px solid #c6d1db;border-radius:20px;display:flex;justify-content:space-between;margin-right:8px;min-width:50px;padding:3px 6px}.cld-input-excluded-types .dashicons{cursor:pointer}.cld-input-excluded-types .dashicons:hover{color:#dd2c00}.cld-input-tags{align-items:center;border:1px solid #d0d0d0;border-radius:3px;display:flex;flex-wrap:wrap;justify-content:flex-start;margin:5px 0 0;padding:2px 6px}.cld-input-tags-item{border:1px solid #c6d1db;border-radius:14px;box-shadow:inset -25px 0 0 #c6d1db;display:inline-flex;justify-content:space-between;margin:5px 6px 5px 0;opacity:1;overflow:hidden;padding:3px 4px 3px 8px;transition:opacity .25s,width .5s,margin .25s,padding .25s}.cld-input-tags-item-text{margin-right:8px}.cld-input-tags-item-delete{color:#90a0b3;cursor:pointer}.cld-input-tags-item-delete:hover{color:#3448c5}.cld-input-tags-item.pulse{animation:pulse-animation .5s infinite}.cld-input-tags-input{display:inline-block;min-width:100px;opacity:.4;overflow:visible;padding:10px 0;white-space:nowrap}.cld-input-tags-input:focus-visible{opacity:1;outline:none;padding:10px}@keyframes pulse-animation{0%{color:rgba(255,0,0,0)}50%{color:red}to{color:rgba(255,0,0,0)}}.cld-input-tags-input.pulse{animation:pulse-animation .5s infinite}.cld-input .prefixed{margin-left:6px;width:40%}.cld-input .suffixed{margin-right:6px;width:40%}.cld-input input::placeholder{color:#90a0b3}.cld-input .hidden{visibility:hidden}.cld-gallery-settings{box-sizing:border-box;display:flex;flex-wrap:wrap;padding:1rem 0;width:100%}@media only screen and (min-width:960px){.cld-gallery-settings{margin-left:-1rem;margin-right:-1rem}}.cld-gallery-settings__column{box-sizing:border-box;width:100%}@media only screen and (min-width:960px){.cld-gallery-settings__column{padding-left:1rem;padding-right:1rem;width:50%}}.cld-gallery-settings .components-color-palette__custom-color-button{border:none;border-radius:2px 2px 0 0;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);box-sizing:border-box;cursor:pointer;height:64px;outline:1px solid transparent;position:relative;width:100%}.cld-gallery-settings .components-color-palette__custom-color-text-wrapper{border-radius:0 0 2px 2px;box-shadow:inset 0 -1px 0 0 rgba(0,0,0,.2),inset 1px 0 0 0 rgba(0,0,0,.2),inset -1px 0 0 0 rgba(0,0,0,.2);font-size:13px;padding:12px 16px;position:relative}.components-base-control__field select{display:block;margin:1rem 0}.components-range-control__wrapper{margin:0!important}.components-range-control__root{flex-direction:row-reverse;margin:1rem 0}.components-input-control.components-number-control.components-range-control__number{margin-left:0!important;margin-right:16px}.components-panel{border:0!important}.components-panel__body:first-child{border-top:0!important}.components-panel__body:last-child{border-bottom:0!important}.components-textarea-control__input{display:block;margin:.5rem 0;width:100%}.components-popover:not(.is-without-arrow):after,.components-popover:not(.is-without-arrow):before{content:none}table .cld-input{margin-bottom:0}tr .file-size.small{color:#a8a8a8;font-size:.8em;font-style:italic;letter-spacing:.4px;margin-left:6px;margin-right:6px}td.tree{color:#212529;line-height:1.5;padding-top:0;position:relative}td.tree ul.striped>:nth-child(odd){background-color:#f6f7f7}td.tree ul.striped>:nth-child(2n){background-color:#fff}td.tree .success{color:#20b832}td+td.tree{padding-top:0}td.tree .cld-input{margin-bottom:0;vertical-align:text-bottom}td.tree .cld-search{font-size:.9em;height:26px;margin-right:12px;min-height:20px;padding:4px 6px;vertical-align:initial;width:300px}td.tree .file-size{color:#a8a8a8;font-size:.8em;font-style:italic;letter-spacing:.4px;margin-left:6px}td.tree .fa-folder,td.tree .fa-folder-open{color:#007bff}td.tree .fa-html5{color:#f21f10}td.tree ul{list-style:none;margin:0;padding-left:5px}td.tree ul li{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin-bottom:0;padding-bottom:5px;padding-left:25px;padding-top:5px;position:relative}td.tree ul li:before{height:1px;margin:auto;top:14px;width:20px}td.tree ul li:after,td.tree ul li:before{background-color:#666;content:"";left:0;position:absolute}td.tree ul li:after{bottom:0;height:100%;top:0;width:1px}td.tree ul li:after:nth-of-type(odd){background-color:#666}td.tree ul li:last-child:after{height:14px}td.tree ul a{cursor:pointer}td.tree ul a:hover{text-decoration:none}.cld-modal{align-content:center;align-items:center;background-color:rgba(0,0,0,.8);bottom:0;display:flex;flex-direction:row;flex-wrap:nowrap;left:0;opacity:0;position:fixed;right:0;top:0;transition:opacity .1s;visibility:hidden;z-index:10000}.cld-modal[data-cloudinary-only="1"] .modal-body,.cld-modal[data-cloudinary-only=true] .modal-body{display:none}.cld-modal[data-cloudinary-only="1"] [data-action=submit],.cld-modal[data-cloudinary-only=true] [data-action=submit]{cursor:not-allowed;opacity:.5;pointer-events:none}.cld-modal .warning{color:#dd2c00}.cld-modal .modal-header{margin-bottom:2em}.cld-modal .modal-uninstall{display:none}.cld-modal-box{background-color:#fff;box-shadow:0 2px 14px 0 rgba(0,0,0,.5);display:flex;flex-direction:column;font-size:10.5px;font-weight:600;justify-content:space-between;margin:0 auto;max-width:80%;padding:25px;position:relative;transition:height 1s;width:500px}.cld-modal-box .modal-footer{align-items:stretch;display:flex;flex-direction:row;justify-content:flex-end}.cld-modal-box .more{display:none}.cld-modal-box input[type=radio]:checked~.more{color:#32373c;display:block;line-height:2;margin-left:2em;margin-top:.5em}.cld-modal-box input[type=radio]:checked{border:1px solid #3448c5}.cld-modal-box input[type=radio]:checked:before{background-color:#3448c5;border-radius:50%;content:"";height:.5rem;line-height:1.14285714;margin:.1875rem;width:.5rem}@media screen and (max-width:782px){.cld-modal-box input[type=radio]:checked:before{height:.5625rem;line-height:.76190476;margin:.4375rem;vertical-align:middle;width:.5625rem}}.cld-modal-box input[type=radio]:focus{border-color:#3448c5;box-shadow:0 0 0 1px #3448c5;outline:2px solid transparent}.cld-modal-box input[type=checkbox]~label{margin-left:.25em}.cld-modal-box input[type=email]{width:100%}.cld-modal-box textarea{font-size:inherit;resize:none;width:100%}.cld-modal-box ul{margin-bottom:21px}.cld-modal-box p{font-size:10.5px;margin:0 0 12px}.cld-modal-box .button:not(.button-link){background-color:#e9ecf9}.cld-modal-box .button{border:0;color:#000;font-size:9.5px;font-weight:700;margin:22px 0 0 10px;padding:4px 14px}.cld-modal-box .button.button-primary{background-color:#3448c5;color:#fff}.cld-modal-box .button.button-link{margin-left:0;margin-right:auto}.cld-modal-box .button.button-link:hover{background-color:transparent}.cld-optimisation{display:flex;font-size:12px;justify-content:space-between;line-height:2}.cld-optimisation:first-child{margin-top:7px}.cld-optimisation-item{color:#3448c5;font-weight:600}.cld-optimisation-item:hover{color:#1e337f}.cld-optimisation-item-active,.cld-optimisation-item-not-active{font-size:10px;font-weight:700}.cld-optimisation-item-active .dashicons,.cld-optimisation-item-not-active .dashicons{font-size:12px;line-height:2}.cld-optimisation-item-active{color:#2a0}.cld-optimisation-item-not-active{color:#c6d1db}.cld-ui-sidebar{width:100%}@media only screen and (min-width:783px){.cld-ui-sidebar{max-width:500px;min-width:400px;width:auto}}.cld-ui-sidebar .cld-cron,.cld-ui-sidebar .cld-info-box,.cld-ui-sidebar .cld-panel,.cld-ui-sidebar .cld-panel-short{padding:14px 18px}.cld-ui-sidebar .cld-ui-header{margin-top:-1px;padding:6px 14px}.cld-ui-sidebar .cld-ui-header:first-child{margin-top:13px}.cld-ui-sidebar .cld-ui-title h2{font-size:14px}.cld-ui-sidebar .cld-info-box{align-items:flex-start;border:0;margin:0;padding:0}.cld-ui-sidebar .cld-info-box .cld-ui-body{padding-top:0}.cld-ui-sidebar .cld-info-box .button{align-self:flex-start;cursor:default;line-height:inherit;opacity:.5}.cld-ui-sidebar .cld-info-icon{background-color:transparent}.cld-ui-sidebar .cld-info-icon img{width:40px}.cld-ui-sidebar .extension-item{border-bottom:1px solid #e5e5e5;border-radius:0;margin-bottom:18px}.cld-ui-sidebar .extension-item:last-of-type{border-bottom:none;margin-bottom:0}.cld-ui-sidebar .cld-ui-wrap .closed{border:none;display:flex;max-height:0;padding:0!important;visibility:hidden}.cld-plan{display:flex;flex-wrap:wrap}.cld-plan-item{display:flex;margin-bottom:25px;width:33%}.cld-plan-item img{margin-right:12px;width:24px}.cld-plan-item .description{font-size:12px}.cld-plan-item .cld-title{font-size:14px;font-weight:700}.cld-wizard{margin-left:auto;margin-right:auto;max-width:1100px}.cld-wizard-tabs{display:flex;flex-direction:row;font-size:15px;font-weight:600;width:50%}.cld-wizard-tabs-tab{align-items:center;display:flex;flex-direction:column;position:relative;width:33%}.cld-wizard-tabs-tab-count{align-items:center;background-color:rgba(52,72,197,.15);border:2px solid transparent;border-radius:50%;display:flex;height:32px;justify-content:center;width:32px}.active .cld-wizard-tabs-tab-count{border:2px solid #3448c5}.complete .cld-wizard-tabs-tab-count{background-color:#2a0;color:#2a0}.complete .cld-wizard-tabs-tab-count:before{color:#fff;content:"";font-family:dashicons;font-size:30px;width:25px}.cld-wizard-tabs-tab.active{color:#3448c5}.cld-wizard-tabs-tab:after{border:1px solid rgba(52,72,197,.15);content:"";left:75%;position:absolute;top:16px;width:50%}.cld-wizard-tabs-tab.complete:after{border-color:#2a0}.cld-wizard-tabs-tab:last-child:after{display:none}.cld-wizard-intro{text-align:center}.cld-wizard-intro-welcome{border:2px solid #c6d1db;border-radius:4px;box-shadow:0 2px 10px 0 rgba(0,0,0,.3);margin:27px auto;padding:19px;width:645px}.cld-wizard-intro-welcome img{width:100%}.cld-wizard-intro-welcome-info{background-color:#323a45;border-radius:0 0 4px 4px;color:#fff;display:flex;font-size:12px;margin:0 -19px -19px;padding:15px;text-align:left}.cld-wizard-intro-welcome-info img{margin-right:12px;width:25px}.cld-wizard-intro-welcome-info h2{color:#fff;font-size:14px}.cld-wizard-connect-connection{align-items:flex-end;display:flex;flex-direction:row;justify-content:flex-start}.cld-wizard-connect-connection-input{margin-right:10px;margin-top:20px;width:725px}.cld-wizard-connect-connection-input input{max-width:100%;width:100%}.cld-wizard-connect-status{align-items:center;border-radius:14px;display:none;font-weight:700;justify-content:space-between;margin-inline-start:1em;padding:5px 11px}.cld-wizard-connect-status.active{display:inline-flex}.cld-wizard-connect-status.success{background-color:#ccefc9;color:#2a0}.cld-wizard-connect-status.error{background-color:#f9cecd;color:#dd2c00}.cld-wizard-connect-status.working{background-color:#eaecfa;color:#1e337f;padding:5px}.cld-wizard-connect-status.working .spinner{margin:0;visibility:visible}.cld-wizard-connect-help{margin-top:50px}.cld-wizard-connect-help-image{border:1px solid #c6d1db;box-shadow:0 0 1em 1em rgba(0,0,0,.05);margin:2em;padding:1em}.cld-wizard-lock{cursor:pointer;display:flex}.cld-wizard-lock.hidden{display:none;height:0;width:0}.cld-wizard-lock .dashicons{color:#3448c5;font-size:25px;line-height:.7;margin-right:10px}.cld-wizard-optimize-settings.disabled{opacity:.4}.cld-wizard-complete{background-image:url(../css/images/confetti.png);background-position:50%;background-repeat:no-repeat;background-size:cover;margin:-23px;padding:98px;text-align:center}.cld-wizard-complete.hidden{display:none}.cld-wizard-complete.active{align-items:center;display:flex;flex-direction:column;justify-content:center;margin:-23px -24px;text-align:center}.cld-wizard-complete.active *{max-width:450px}.cld-wizard-complete-icons{display:flex;justify-content:center}.cld-wizard-complete-icons img{margin:30px 10px;width:70px}.cld-wizard-complete-icons .dashicons{background-color:#f1f1f1;border:4px solid #fff;border-radius:6px;box-shadow:0 2px 8px 0 rgba(0,0,0,.3);font-size:50px;height:70px;line-height:1.4;width:70px}.cld-wizard-complete-icons .dashicons-cloudinary{color:#3448c5;font-size:65px;line-height:.9}.cld-wizard-complete .cld-ui-title{margin-top:30px}.cld-wizard-complete .cld-ui-title h3{font-size:14px}.cld-wizard .cld-panel-heading{align-items:center}.cld-wizard .cld-ui-title{text-transform:none}.cld-wizard .cld-submit{align-items:center;display:flex;justify-content:space-between}.cld-wizard .cld-submit .button{margin-left:10px}.cld-import{display:none;height:100%;padding:0 10px;position:absolute;right:0;width:200px}.cld-import-item{align-items:center;display:flex;margin-top:10px;min-height:20px;opacity:0;transition:opacity .5s;white-space:nowrap}.cld-import-item .spinner{margin:0 6px 0 0;visibility:visible;width:24px}.cld-import-item-id{display:block;overflow:hidden;text-overflow:ellipsis}.cld-import-process{background-color:#fff;background-position:50%;border-radius:40px;float:none;opacity:1;padding:5px;visibility:visible}.media-library{margin-right:0;transition:margin-right .2s}.cld-sizes-preview{display:flex}.cld-sizes-preview .image-item{display:none;width:100%}.cld-sizes-preview .image-item img{max-width:100%}.cld-sizes-preview .image-item.show{align-content:space-between;display:flex;flex-direction:column;justify-content:space-around}.cld-sizes-preview .image-items{background-color:#e5e5e5;display:flex;padding:18px;width:100%}.cld-sizes-preview .image-preview-box{background-color:#90a0b3;background-position:50%;background-repeat:no-repeat;background-size:contain;border-radius:6px;height:100%;width:100%}.cld-sizes-preview input{color:#558b2f;margin-top:6px}.cld-sizes-preview input.invalid{border-color:#dd2c00;color:#dd2c00}.cld-crops{border-bottom:1px solid #e5e5e5;margin-bottom:6px;padding-bottom:6px}.cld-size-items-item{border:1px solid #e5e5e5;display:flex;flex-direction:column;margin-bottom:-1px;padding:8px}.cld-size-items-item .cld-ui-suffix{overflow:hidden;text-overflow:ellipsis;width:50%}.cld-size-items-item img{margin-bottom:8px;max-width:100%;object-fit:scale-down}.cld-size-items .crop-size-inputs{align-items:center;display:flex;gap:10px}.cld-size-items .cld-ui-input.regular-text[disabled]{background-color:#e5e5e5;opacity:.5}.cld-image-selector{display:flex}.cld-image-selector-item{border:1px solid #e5e5e5;cursor:pointer;margin:0 3px -1px 0;padding:3px 6px}.cld-image-selector-item[data-selected]{background-color:#e5e5e5}.cld-cron{padding-block:13px;padding-inline:16px}.cld-cron h2,.cld-cron h4{margin:0}.cld-cron hr{margin-block:6px}.tippy-box[data-theme~=cloudinary]{background-color:rgba(0,0,0,.8);color:#fff;font-size:.8em}#poststuff .cld-info-box h2{font-weight:700;margin:0 0 6px;padding:0}.cloudinary-overwrite-transformations{padding:6px 0} \ No newline at end of file +.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{background-color:#333;border-radius:4px;color:#fff;font-size:14px;line-height:1.4;outline:0;position:relative;transition-property:transform,visibility,opacity;white-space:normal}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{border-top-color:initial;border-width:8px 8px 0;bottom:-7px;left:0;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:initial;border-width:0 8px 8px;left:0;top:-7px;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-left-color:initial;border-width:8px 0 8px 8px;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{border-right-color:initial;border-width:8px 8px 8px 0;left:-7px;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{color:#333;height:16px;width:16px}.tippy-arrow:before{border-color:transparent;border-style:solid;content:"";position:absolute}.tippy-content{padding:5px 9px;position:relative;z-index:1}@font-face{font-family:cloudinary;font-style:normal;font-weight:500;src:url(../css/fonts/cloudinary.d1a91c7f695026fd20974570349bc540.eot);src:url(../css/fonts/cloudinary.d1a91c7f695026fd20974570349bc540.eot#iefix) format("embedded-opentype"),url(../css/fonts/cloudinary.3b839e5145ad58edde0191367a5a96f0.woff) format("woff"),url(../css/fonts/cloudinary.d8de6736f15e12f71ac22a2d374002e5.ttf) format("truetype"),url(../css/images/cloudinary.svg#cloudinary) format("svg")}.dashicons-cloudinary{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-style:normal;font-variant:normal;font-weight:400;line-height:1;text-transform:none}.dashicons-cloudinary:before{content:"\e900";font-family:cloudinary,monospace!important}.dashicons-cloudinary-media:before{content:"\e905";font-family:cloudinary,monospace!important}.dashicons-cloudinary-dam:before{content:"\e906";font-family:cloudinary,monospace!important}.dashicons-cloudinary.success{color:#558b2f}.dashicons-cloudinary.error{color:#dd2c00}.dashicons-cloudinary.error:before{content:"\e901"}.dashicons-cloudinary.uploading{color:#fd9d2c}.dashicons-cloudinary.uploading:before{content:"\e902"}.dashicons-cloudinary.info{color:#0071ba}.dashicons-cloudinary.downloading:before{content:"\e903"}.dashicons-cloudinary.syncing:before{content:"\e904"}.dashicons-cloudinary.media:before{content:"\e905"}.dashicons-cloudinary.dam:before{content:"\e906"}.column-cld_status{width:5.5em}.column-cld_status .dashicons-cloudinary,.column-cld_status .dashicons-cloudinary-dam{display:inline-block}.column-cld_status .dashicons-cloudinary-dam:before,.column-cld_status .dashicons-cloudinary:before{font-size:1.8rem}.form-field .error-notice,.form-table .error-notice{color:#dd2c00;display:none}.form-field input.cld-field:invalid,.form-table input.cld-field:invalid{border-color:#dd2c00}.form-field input.cld-field:invalid+.error-notice,.form-table input.cld-field:invalid+.error-notice{display:inline-block}.cloudinary-welcome{background-image:url(../css/images/logo.svg);background-position:top 12px right 20px;background-repeat:no-repeat;background-size:153px}.cloudinary-stats{display:inline-block;margin-left:25px}.cloudinary-stat{cursor:help}.cloudinary-percent{color:#0071ba;font-size:.8em;vertical-align:top}.settings-image{max-width:100%;padding-top:5px}.settings-tabs>li{display:inline-block}.settings-tabs>li a{padding:.6em}.settings-tabs>li a.active{background-color:#fff}.settings-tab-section{max-width:1030px;padding:20px 0 0;position:relative}.settings-tab-section.cloudinary-welcome .settings-tab-section-fields-dashboard{align-content:flex-start;align-items:flex-start;display:flex;margin-top:40px}.settings-tab-section.cloudinary-welcome .settings-tab-section-fields-dashboard-description{margin:0 auto 0 0;width:55%}.settings-tab-section.cloudinary-welcome .settings-tab-section-fields-dashboard-content{margin:0 auto;width:35%}.settings-tab-section.cloudinary-welcome .settings-tab-section-fields-dashboard-content .dashicons{color:#9ea3a8}.settings-tab-section.cloudinary-welcome .settings-tab-section-card{margin-top:0}.settings-tab-section-fields .field-heading th{color:#23282d;display:block;font-size:1.1em;margin:1em 0;width:auto}.settings-tab-section-fields .field-heading td{display:none;visibility:hidden}.settings-tab-section-fields .regular-textarea{height:60px;width:100%}.settings-tab-section-fields .dashicons{text-decoration:none;vertical-align:middle}.settings-tab-section-fields a .dashicons{color:#5f5f5f}.settings-tab-section-fields-dashboard-error{color:#5f5f5f;font-size:1.2em}.settings-tab-section-fields-dashboard-error.expanded{margin-bottom:25px;padding-top:40px}.settings-tab-section-fields-dashboard-error .dashicons{color:#ac0000}.settings-tab-section-fields-dashboard-error .button{font-size:1.1em;height:40px;line-height:40px;padding-left:40px;padding-right:40px}.settings-tab-section-fields-dashboard-success{color:#23282d;font-size:1.2em}.settings-tab-section-fields-dashboard-success.expanded{margin-bottom:25px;padding-top:40px}.settings-tab-section-fields-dashboard-success .dashicons{color:#4fb651}.settings-tab-section-fields-dashboard-success .button{font-size:1.1em;height:40px;line-height:40px;padding-left:40px;padding-right:40px}.settings-tab-section-fields-dashboard-success .description{color:#5f5f5f;font-weight:400;margin-top:12px}.settings-tab-section-card{background-color:#fff;border:1px solid #e5e5e5;box-shadow:0 1px 1px 0 rgba(0,0,0,.07);box-sizing:border-box;margin-top:12px;padding:20px 23px}.settings-tab-section-card .dashicons{font-size:1.4em}.settings-tab-section-card h2{font-size:1.8em;font-weight:400;margin-top:0}.settings-tab-section-card.pull-right{float:right;padding:12px;position:relative;width:450px;z-index:10}.settings-tab-section-card.pull-right img.settings-image{border:1px solid #979797;box-shadow:0 2px 4px 0 rgba(0,0,0,.5);margin-top:12px}.settings-tab-section-card.pull-right h3,.settings-tab-section-card.pull-right h4{margin-top:0}.settings-tab-section .field-row-cloudinary_url,.settings-tab-section .field-row-signup{display:block}.settings-tab-section .field-row-cloudinary_url td,.settings-tab-section .field-row-cloudinary_url th,.settings-tab-section .field-row-signup td,.settings-tab-section .field-row-signup th{display:block;padding:10px 0 0;width:auto}.settings-tab-section .field-row-cloudinary_url td .sign-up,.settings-tab-section .field-row-cloudinary_url th .sign-up,.settings-tab-section .field-row-signup td .sign-up,.settings-tab-section .field-row-signup th .sign-up{vertical-align:baseline}.settings-tab-section.connect .form-table{display:inline-block;max-width:580px;width:auto}.settings-valid{color:#558b2f;font-size:30px}.settings-valid-field{border-color:#558b2f!important}.settings-invalid-field{border-color:#dd2c00!important}.settings-alert{box-shadow:0 1px 1px rgba(0,0,0,.04);display:inline-block;padding:5px 7px}.settings-alert-info{background-color:#e9faff;border:1px solid #ccd0d4;border-left:4px solid #00a0d2}.settings-alert-warning{background-color:#fff5e9;border:1px solid #f6e7b6;border-left:4px solid #e3be38}.settings-alert-error{background-color:#ffe9e9;border:1px solid #d4cccc;border-left:4px solid #d20000}.field-radio input[type=radio].cld-field{margin:0 5px 0 0}.field-radio label{margin-right:10px}.settings-tab-section h2{margin:0}.cloudinary-collapsible{background-color:#fff;border:1px solid #ccd0d4;box-shadow:0 1px 1px rgba(0,0,0,.04);box-sizing:border-box;margin:20px 0;padding:10px;width:95%}.cloudinary-collapsible__toggle{cursor:pointer;display:flex}.cloudinary-collapsible__toggle h2{margin:0!important}.cloudinary-collapsible__toggle button{background-color:inherit;border:none;cursor:pointer;margin:0 0 0 auto;padding:0;width:auto}.cloudinary-collapsible__toggle .cld-ui-icon{margin-right:6px;width:24px}.cloudinary-collapsible__content .cld-ui-title{margin:3em 0 1em}.cloudinary-collapsible__content .cld-more-details{margin-top:2em}.sync .spinner{display:inline-block;float:none;margin:0 5px 0 0;visibility:visible}.sync-media,.sync-media-progress{display:none}.sync-media-progress-outer{background-color:#e5e5e5;height:20px;margin:20px 0 10px;position:relative;width:500px}.sync-media-progress-outer .progress-bar{background-color:#558b2f;height:20px;transition:width .25s;width:0}.sync-media-progress-notice{color:#dd2c00}.sync-media-resource{display:inline-block;width:100px}.sync-media-error{color:#dd2c00}.sync-count{font-weight:700}.sync-details{margin-top:10px}.sync .button.start-sync,.sync .button.stop-sync{display:none;padding:0 16px}.sync .button.start-sync .dashicons,.sync .button.stop-sync .dashicons{line-height:2.2}.sync .progress-text{display:inline-block;font-weight:700;padding:12px 4px 12px 12px}.sync .completed{display:none;max-width:300px}.sync-status-disabled{color:#dd2c00}.sync-status-enabled{color:#558b2f}.sync-status-button.button{vertical-align:baseline}.cloudinary-widget{height:100%}.cloudinary-widget-wrapper{background-image:url(data:image/svg+xml;base64,PHN2ZyBjbGFzcz0ic3Bpbm5lciIgdmlld0JveD0iLTQgLTQgMTUxIDEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+PCFbQ0RBVEFbCiAgICAgIEBrZXlmcmFtZXMgY29sb3JzIHsKICAgICAgICAwJSB7IHN0cm9rZTogIzAwNzhGRjsgfQogICAgICAgICAgNTAlIHsgc3Ryb2tlOiAjMGUyZjVhOyB9CiAgICAgICAgICAxMDAlIHsgc3Ryb2tlOiAjMDA3OEZGOyB9CiAgICAgIH0KCiAgICAgIEBrZXlmcmFtZXMgZGFzaCB7CiAgICAgICAwJSB7IHN0cm9rZS1kYXNob2Zmc2V0OiA1NjA7IH0KICAgICAgIDUwJSB7CiAgICAgICAgICBzdHJva2UtZGFzaG9mZnNldDogMDsKICAgICAgIH0KICAgICAgIDEwMCUgeyAgIHN0cm9rZS1kYXNob2Zmc2V0OiA1NjA7IH0KICAgICAgfQogICAgICBALXdlYmtpdC1rZXlmcmFtZXMgY29sb3JzIHsKICAgICAgICAwJSB7IHN0cm9rZTogIzAwNzhmZjsgfQogICAgICAgICAgNTAlIHsgc3Ryb2tlOiAjMGUyZjVhOyB9CiAgICAgICAgICAxMDAlIHsgc3Ryb2tlOiAjMDA3OGZmOyB9CiAgICAgIH0KCiAgICAgIEAtd2Via2l0LWtleWZyYW1lcyBkYXNoIHsKICAgICAgIDAlIHsgc3Ryb2tlLWRhc2hvZmZzZXQ6IDU2MDsgfQogICAgICAgNTAlIHsKICAgICAgICAgIHN0cm9rZS1kYXNob2Zmc2V0OiAwOwogICAgICAgfQogICAgICAgMTAwJSB7ICAgc3Ryb2tlLWRhc2hvZmZzZXQ6IDU2MDsKICAgICAgIH0KICAgICAgfQogICAgICAucGF0aCB7CiAgICAgICAgc3Ryb2tlLWRhc2hhcnJheTogMjgwOwogICAgICAgIHN0cm9rZS1kYXNob2Zmc2V0OiAwOwogICAgICAgIHRyYW5zZm9ybS1vcmlnaW46IGNlbnRlcjsKICAgICAgICAtd2Via2l0LWFuaW1hdGlvbjoKICAgICAgICAgIGRhc2ggMnMgZWFzZS1pbi1vdXQgaW5maW5pdGUsIGNvbG9ycyA4cyBlYXNlLWluLW91dCBpbmZpbml0ZTsKICAgICAgICBhbmltYXRpb246CiAgICAgICAgICBkYXNoIDJzIGVhc2UtaW4tb3V0IGluZmluaXRlLCBjb2xvcnMgOHMgZWFzZS1pbi1vdXQgaW5maW5pdGU7CiAgICAgIH0KICAgIF1dPjwvc3R5bGU+CiAgPHBhdGggY2xhc3M9InBhdGgiIGQ9Ik0xMjEuNjYzIDkwLjYzOGMtMS43OTYgMC05OS4zMy0uNDk4LTEwMS40NzQtMS40NzhDOC42ODUgODMuODc3IDEuMjUgNzIuMTk2IDEuMjUgNTkuMzk2YzAtMTYuNjU2IDEyLjc5Ny0zMC42MSAyOS4wNTItMzIuMzIzIDcuNDktMTUuNzA2IDIzLjE4Ni0yNS43MDcgNDAuNzE0LTI1LjcwNyAyMC45OCAwIDM5LjIxNSAxNC43NTIgNDMuOTQ1IDM0LjkwNyAxNS4wOS4yNDUgMjcuMjkgMTIuNjMgMjcuMjkgMjcuODIyIDAgMTEuOTY4LTcuNzM4IDIyLjU1LTE5LjI1NiAyNi4zMyIgc3Ryb2tlLXdpZHRoPSI5IiBzdHJva2UtbGluZWNhcD0icm91bmQiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPgo8L3N2Zz4K);background-position:50%;background-repeat:no-repeat;background-size:150px;height:100%;overflow:hidden}.attachment-actions .button.edit-attachment,.attachment-info .edit-attachment{display:none}.setting.cld-overwrite input[type=checkbox]{margin-top:0}.global-transformations-preview{max-width:600px;position:relative}.global-transformations-spinner{display:none}.global-transformations-button.button-primary{display:none;position:absolute;z-index:100}.global-transformations-url{margin-bottom:5px;margin-top:5px}.global-transformations-url-transformation{color:#51a3ff;max-width:100px;overflow:hidden;text-overflow:ellipsis}.global-transformations-url-file{color:#f2d864}.global-transformations-url-link{background-color:#262c35;border-radius:6px;color:#fff;display:block;overflow:hidden;padding:16px;text-decoration:none;text-overflow:ellipsis}.global-transformations-url-link:hover{color:#888;text-decoration:underline}.cld-tax-order-list-item{background-color:#fff;border:1px solid #efefef;margin:0 0 -1px;padding:4px}.cld-tax-order-list-item.no-items{color:#888;display:none;text-align:center}.cld-tax-order-list-item.no-items:last-child{display:block}.cld-tax-order-list-item.ui-sortable-helper{box-shadow:0 2px 5px rgba(0,0,0,.2)}.cld-tax-order-list-item-placeholder{background-color:#efefef;height:45px;margin:0}.cld-tax-order-list-item-handle{color:#999;cursor:grab;margin-right:4px}.cld-tax-order-list-type{display:inline-block;margin-right:8px}.cld-tax-order-list-type input{margin-right:4px!important}.cloudinary-media-library{margin-left:-20px;position:relative}@media screen and (max-width:782px){.cloudinary-media-library{margin-left:-10px}}.cld-ui-suffix{background-color:#e8e8e8;border-radius:4px;color:#999;display:inline-block;font-family:Courier New,Courier,monospace;font-size:12px;font-weight:700;line-height:1.7em;margin-left:13px;padding:4px 6px}.cld-ui-preview .cld-ui-header{margin-top:-1px}.cld-ui-preview .cld-ui-header:first-child{margin-top:13px}.cld-ui-collapse{align-self:center;cursor:pointer;padding:0 .45rem}.cld-ui-title{font-size:12px}.cld-ui-title h2{font-size:15px;font-weight:700;margin:6px 0 1px}.cld-ui-title.collapsible{cursor:pointer}.cld-ui-conditional .closed,.cld-ui-wrap .closed{display:none}.cld-ui-wrap .description{color:rgba(0,0,1,.5);font-size:12px}.cld-ui-wrap .cloudname{font-style:italic}.cld-ui-wrap .button:not(.wp-color-result){background-color:#3448c5;border:0;border-radius:4px;color:#fff;display:inline-block;font-size:11px;font-weight:700;margin:0;min-height:28px;padding:5px 14px;text-decoration:none}.cld-ui-wrap .button:active,.cld-ui-wrap .button:hover{background-color:#1e337f}.cld-ui-wrap .button:focus{background-color:#3448c5;border-color:#3448c5;box-shadow:0 0 0 1px #fff,0 0 0 3px #3448c5}.cld-ui-wrap .button.button-small,.cld-ui-wrap .button.button-small:hover{font-size:11px;line-height:2.18181818;min-height:26px;padding:0 8px}.cld-ui-wrap .button.wp-color-result{border-color:#d0d0d0}.cld-ui-wrap .button.hidden{display:none}.cld-ui-error{color:#dd2c00}.cld-referrer-link{display:inline-block;margin:12px 0 0;text-decoration:none}.cld-referrer-link span{margin-right:5px}.cld-special-offer{background-color:#ff5050;border-radius:4px 4px 0 0;color:#fff;font-size:14px;font-weight:700;margin:2em 0 0;padding:5px 14px;text-decoration:none}.cld-settings{margin-left:-20px}.cld-page-tabs{background-color:#fff;border-bottom:1px solid #e5e5e5;display:none;flex-wrap:nowrap;justify-content:center;margin:-20px -18px 20px;padding:0!important}@media only screen and (max-width:1200px){.cld-page-tabs{display:flex}}.cld-page-tabs-tab{list-style:none;margin-bottom:0;text-indent:0;width:100%}.cld-page-tabs-tab button{background:transparent;border:0;color:#000001;cursor:pointer;display:block;font-weight:500;padding:1rem 2rem;text-align:center;white-space:nowrap;width:100%}.cld-page-tabs-tab button.is-active{border-bottom:2px solid #3448c5;color:#3448c5}.cld-page-header{align-items:center;background-color:#3448c5;display:flex;flex-direction:column;justify-content:space-between;margin-bottom:0;padding:16px}@media only screen and (min-width:783px){.cld-page-header{flex-direction:row}}.cld-page-header img{width:150px}.cld-page-header-button{background-color:#1e337f;border-radius:4px;color:#fff;display:inline-block;font-weight:700;margin:1em 0 0 9px;padding:5px 14px;text-decoration:none}@media only screen and (min-width:783px){.cld-page-header-button{margin-top:0}}.cld-page-header-button:focus,.cld-page-header-button:hover{color:#fff;text-decoration:none}.cld-page-header-logo{align-items:center;display:flex}.cld-page-header-logo .version{color:#fff;font-size:10px;margin-left:12px}.cld-page-header p{font-size:11px;margin:0}.cld-cron,.cld-info-box,.cld-panel,.cld-panel-short{background-color:#fff;border:1px solid #c6d1db;margin-top:13px;padding:23px 24px}.cld-panel.full-width,.full-width.cld-cron,.full-width.cld-info-box,.full-width.cld-panel-short{max-width:100%}.cld-panel.has-heading,.has-heading.cld-cron,.has-heading.cld-info-box,.has-heading.cld-panel-short{border-top:0;margin-top:0}.cld-panel-heading{display:flex;justify-content:space-between;padding:19px 23px;position:relative}.cld-panel-heading.full-width{max-width:100%}.cld-panel-heading img{margin-right:.6rem}.cld-panel-heading.collapsible{cursor:pointer;padding-right:1rem}.cld-panel-inner{background-color:hsla(0,0%,86%,.2);border:1px solid #e5e5e5;margin:1em 0;padding:1.3rem}.cld-panel-inner h2{color:#3273ab}.cld-cron hr,.cld-info-box hr,.cld-panel hr,.cld-panel-short hr{border-top:1px solid #e5e5e5;clear:both;margin:19px 0 20px}.cld-cron ul,.cld-info-box ul,.cld-panel ul,.cld-panel-short ul{list-style:initial;padding:0 3em}.cld-cron .stat-boxes,.cld-info-box .stat-boxes,.cld-panel .stat-boxes,.cld-panel-short .stat-boxes{border:1px solid #e5e5e5;font-size:1.2em}.cld-cron .stat-boxes .box,.cld-info-box .stat-boxes .box,.cld-panel .stat-boxes .box,.cld-panel-short .stat-boxes .box{border-bottom:1px solid #e5e5e5;padding:2rem;text-align:center}.cld-cron .stat-boxes .box:last-of-type,.cld-info-box .stat-boxes .box:last-of-type,.cld-panel .stat-boxes .box:last-of-type,.cld-panel-short .stat-boxes .box:last-of-type{border-bottom:none}.cld-cron .stat-boxes .box .cld-ui-icon,.cld-info-box .stat-boxes .box .cld-ui-icon,.cld-panel .stat-boxes .box .cld-ui-icon,.cld-panel-short .stat-boxes .box .cld-ui-icon{height:35px;width:35px}.cld-cron .stat-boxes .icon,.cld-info-box .stat-boxes .icon,.cld-panel .stat-boxes .icon,.cld-panel-short .stat-boxes .icon{height:50px;margin-right:.5em;width:50px}.cld-cron .stat-boxes h3,.cld-info-box .stat-boxes h3,.cld-panel .stat-boxes h3,.cld-panel-short .stat-boxes h3{margin-bottom:1.5rem;margin-top:2.4rem}.cld-cron .stat-boxes .limit,.cld-info-box .stat-boxes .limit,.cld-panel .stat-boxes .limit,.cld-panel-short .stat-boxes .limit{font-size:2em;font-weight:700;margin-right:.5em;white-space:nowrap}.cld-cron .stat-boxes .usage,.cld-info-box .stat-boxes .usage,.cld-panel .stat-boxes .usage,.cld-panel-short .stat-boxes .usage{color:#3273ab;font-size:1.5em;font-weight:400}@media only screen and (min-width:783px){.cld-cron .stat-boxes,.cld-info-box .stat-boxes,.cld-panel .stat-boxes,.cld-panel-short .stat-boxes{display:flex;flex-wrap:nowrap;font-size:1em}.cld-cron .stat-boxes .box,.cld-info-box .stat-boxes .box,.cld-panel .stat-boxes .box,.cld-panel-short .stat-boxes .box{border-bottom:none;border-right:1px solid #e5e5e5;flex-grow:1}.cld-cron .stat-boxes .box:last-of-type,.cld-info-box .stat-boxes .box:last-of-type,.cld-panel .stat-boxes .box:last-of-type,.cld-panel-short .stat-boxes .box:last-of-type{border-right:none}}@media only screen and (min-width:1200px){.cld-cron .stat-boxes,.cld-info-box .stat-boxes,.cld-panel .stat-boxes,.cld-panel-short .stat-boxes{font-size:1.2em}}.cld-cron .img-connection-string,.cld-info-box .img-connection-string,.cld-panel .img-connection-string,.cld-panel-short .img-connection-string{width:100%}.cld-cron .media-status-box,.cld-cron .stat-boxes,.cld-info-box .media-status-box,.cld-info-box .stat-boxes,.cld-panel .media-status-box,.cld-panel .stat-boxes,.cld-panel-short .media-status-box,.cld-panel-short .stat-boxes{border:1px solid #e5e5e5}.cld-cron .media-status-box,.cld-info-box .media-status-box,.cld-panel .media-status-box,.cld-panel-short .media-status-box{padding:2rem;text-align:center}.cld-cron .media-status-box .status,.cld-info-box .media-status-box .status,.cld-panel .media-status-box .status,.cld-panel-short .media-status-box .status{font-size:2rem;font-weight:700;margin-right:.5em}.cld-cron .media-status-box .cld-ui-icon,.cld-info-box .media-status-box .cld-ui-icon,.cld-panel .media-status-box .cld-ui-icon,.cld-panel-short .media-status-box .cld-ui-icon{height:35px;width:35px}.cld-cron .notification,.cld-info-box .notification,.cld-panel .notification,.cld-panel-short .notification{display:inline-flex;font-weight:700;padding:1.5rem}.cld-cron .notification-success,.cld-info-box .notification-success,.cld-panel .notification-success,.cld-panel-short .notification-success{background-color:rgba(32,184,50,.2);border:2px solid #20b832}.cld-cron .notification-success:before,.cld-info-box .notification-success:before,.cld-panel .notification-success:before,.cld-panel-short .notification-success:before{color:#20b832}.cld-cron .notification-syncing,.cld-info-box .notification-syncing,.cld-panel .notification-syncing,.cld-panel-short .notification-syncing{background-color:rgba(50,115,171,.2);border:2px solid #3273ab;color:#444;text-decoration:none}.cld-cron .notification-syncing:before,.cld-info-box .notification-syncing:before,.cld-panel .notification-syncing:before,.cld-panel-short .notification-syncing:before{-webkit-animation:spin 1s infinite running;-moz-animation:spin 1s linear infinite;animation:spin 1s linear infinite;color:#3273ab}@keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.cld-cron .notification:before,.cld-info-box .notification:before,.cld-panel .notification:before,.cld-panel-short .notification:before{margin-right:.5em}.cld-cron .help-wrap,.cld-info-box .help-wrap,.cld-panel .help-wrap,.cld-panel-short .help-wrap{align-items:stretch;display:flex;flex-direction:row;flex-grow:1;justify-content:flex-start}.cld-cron .help-wrap .help-box .large-button,.cld-info-box .help-wrap .help-box .large-button,.cld-panel .help-wrap .help-box .large-button,.cld-panel-short .help-wrap .help-box .large-button{background:#fff;border-radius:4px;box-shadow:0 1px 8px 0 rgba(0,0,0,.3);color:initial;display:block;height:100%;text-decoration:none}.cld-cron .help-wrap .help-box .large-button:hover,.cld-info-box .help-wrap .help-box .large-button:hover,.cld-panel .help-wrap .help-box .large-button:hover,.cld-panel-short .help-wrap .help-box .large-button:hover{background-color:#eaecfa;box-shadow:0 1px 8px 0 rgba(0,0,0,.5)}.cld-cron .help-wrap .help-box .large-button .cld-ui-wrap,.cld-info-box .help-wrap .help-box .large-button .cld-ui-wrap,.cld-panel .help-wrap .help-box .large-button .cld-ui-wrap,.cld-panel-short .help-wrap .help-box .large-button .cld-ui-wrap{padding-bottom:.5em}.cld-cron .help-wrap .help-box img,.cld-info-box .help-wrap .help-box img,.cld-panel .help-wrap .help-box img,.cld-panel-short .help-wrap .help-box img{border-radius:4px 4px 0 0;width:100%}.cld-cron .help-wrap .help-box div,.cld-cron .help-wrap .help-box h4,.cld-info-box .help-wrap .help-box div,.cld-info-box .help-wrap .help-box h4,.cld-panel .help-wrap .help-box div,.cld-panel .help-wrap .help-box h4,.cld-panel-short .help-wrap .help-box div,.cld-panel-short .help-wrap .help-box h4{padding:0 12px}.cld-panel-short{display:inline-block;min-width:270px;width:auto}.cld-info-box{align-items:stretch;border-radius:4px;display:flex;margin:0 0 19px;max-width:500px;padding:0}@media only screen and (min-width:783px){.cld-info-box{flex-direction:row}}.cld-info-box .cld-ui-title h2{font-size:15px;margin:0 0 6px}.cld-info-box .cld-info-icon{background-color:#eaecfa;border-radius:4px 0 0 4px;display:flex;justify-content:center;text-align:center;vertical-align:center;width:49px}.cld-info-box .cld-info-icon img{width:24px}.cld-info-box a.button,.cld-info-box img{align-self:center}.cld-info-box .cld-ui-body{display:inline-block;font-size:12px;line-height:normal;margin:0 auto;padding:12px 9px;width:100%}.cld-info-box-text{color:rgba(0,0,1,.5);font-size:12px}.cld-submit,.cld-switch-cloud{background-color:#fff;border:1px solid #c6d1db;border-top:0;padding:1.2rem 1.75rem}.cld-panel.closed+.cld-submit,.cld-panel.closed+.cld-switch-cloud,.closed.cld-cron+.cld-submit,.closed.cld-cron+.cld-switch-cloud,.closed.cld-info-box+.cld-submit,.closed.cld-info-box+.cld-switch-cloud,.closed.cld-panel-short+.cld-submit,.closed.cld-panel-short+.cld-switch-cloud{display:none}.cld-stat-percent{align-items:center;display:flex;justify-content:flex-start;line-height:1}.cld-stat-percent h2{color:#54c8db;font-size:48px;margin:0 12px 0 0}.cld-stat-percent-text{font-weight:700}.cld-stat-legend{display:flex;font-weight:700;margin:0 0 16px 12px;min-width:200px}.cld-stat-legend-dot{border-radius:50%;display:inline-block;height:20px;margin-right:6px;width:20px}.cld-stat-legend-dot.blue-dot{background-color:#2e49cd}.cld-stat-legend-dot.aqua-dot{background-color:#54c8db}.cld-stat-legend-dot.red-dot{background-color:#e12600}.cld-stat-text{font-weight:700;margin:.75em 0}.cld-stat-text.cld-link-button{margin:.75em 0}.cld-loading{background-image:url(data:image/svg+xml;base64,PHN2ZyBjbGFzcz0ic3Bpbm5lciIgdmlld0JveD0iLTQgLTQgMTUxIDEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+PCFbQ0RBVEFbCiAgICAgIEBrZXlmcmFtZXMgY29sb3JzIHsKICAgICAgICAwJSB7IHN0cm9rZTogIzAwNzhGRjsgfQogICAgICAgICAgNTAlIHsgc3Ryb2tlOiAjMGUyZjVhOyB9CiAgICAgICAgICAxMDAlIHsgc3Ryb2tlOiAjMDA3OEZGOyB9CiAgICAgIH0KCiAgICAgIEBrZXlmcmFtZXMgZGFzaCB7CiAgICAgICAwJSB7IHN0cm9rZS1kYXNob2Zmc2V0OiA1NjA7IH0KICAgICAgIDUwJSB7CiAgICAgICAgICBzdHJva2UtZGFzaG9mZnNldDogMDsKICAgICAgIH0KICAgICAgIDEwMCUgeyAgIHN0cm9rZS1kYXNob2Zmc2V0OiA1NjA7IH0KICAgICAgfQogICAgICBALXdlYmtpdC1rZXlmcmFtZXMgY29sb3JzIHsKICAgICAgICAwJSB7IHN0cm9rZTogIzAwNzhmZjsgfQogICAgICAgICAgNTAlIHsgc3Ryb2tlOiAjMGUyZjVhOyB9CiAgICAgICAgICAxMDAlIHsgc3Ryb2tlOiAjMDA3OGZmOyB9CiAgICAgIH0KCiAgICAgIEAtd2Via2l0LWtleWZyYW1lcyBkYXNoIHsKICAgICAgIDAlIHsgc3Ryb2tlLWRhc2hvZmZzZXQ6IDU2MDsgfQogICAgICAgNTAlIHsKICAgICAgICAgIHN0cm9rZS1kYXNob2Zmc2V0OiAwOwogICAgICAgfQogICAgICAgMTAwJSB7ICAgc3Ryb2tlLWRhc2hvZmZzZXQ6IDU2MDsKICAgICAgIH0KICAgICAgfQogICAgICAucGF0aCB7CiAgICAgICAgc3Ryb2tlLWRhc2hhcnJheTogMjgwOwogICAgICAgIHN0cm9rZS1kYXNob2Zmc2V0OiAwOwogICAgICAgIHRyYW5zZm9ybS1vcmlnaW46IGNlbnRlcjsKICAgICAgICAtd2Via2l0LWFuaW1hdGlvbjoKICAgICAgICAgIGRhc2ggMnMgZWFzZS1pbi1vdXQgaW5maW5pdGUsIGNvbG9ycyA4cyBlYXNlLWluLW91dCBpbmZpbml0ZTsKICAgICAgICBhbmltYXRpb246CiAgICAgICAgICBkYXNoIDJzIGVhc2UtaW4tb3V0IGluZmluaXRlLCBjb2xvcnMgOHMgZWFzZS1pbi1vdXQgaW5maW5pdGU7CiAgICAgIH0KICAgIF1dPjwvc3R5bGU+CiAgPHBhdGggY2xhc3M9InBhdGgiIGQ9Ik0xMjEuNjYzIDkwLjYzOGMtMS43OTYgMC05OS4zMy0uNDk4LTEwMS40NzQtMS40NzhDOC42ODUgODMuODc3IDEuMjUgNzIuMTk2IDEuMjUgNTkuMzk2YzAtMTYuNjU2IDEyLjc5Ny0zMC42MSAyOS4wNTItMzIuMzIzIDcuNDktMTUuNzA2IDIzLjE4Ni0yNS43MDcgNDAuNzE0LTI1LjcwNyAyMC45OCAwIDM5LjIxNSAxNC43NTIgNDMuOTQ1IDM0LjkwNyAxNS4wOS4yNDUgMjcuMjkgMTIuNjMgMjcuMjkgMjcuODIyIDAgMTEuOTY4LTcuNzM4IDIyLjU1LTE5LjI1NiAyNi4zMyIgc3Ryb2tlLXdpZHRoPSI5IiBzdHJva2UtbGluZWNhcD0icm91bmQiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPgo8L3N2Zz4K);background-position:50%;background-repeat:no-repeat;background-size:50px 50px;height:100px;width:auto}.cld-loading.tree-branch{background-position:25px;background-size:50px 50px}.cld-syncing{background:url(../css/images/loading.svg) no-repeat 50%;display:inline-block;height:20px;margin-left:12px;padding:4px;width:30px}.cld-dashboard-placeholder{align-content:center;align-items:center;background-color:#eff5f8;display:flex;flex-direction:column;justify-content:center;min-height:120px}.cld-dashboard-placeholder h4{margin:12px 0 0}.cld-chart-stat{padding-bottom:2em}.cld-chart-stat canvas{max-height:100%;max-width:100%}.cld-progress-circular{display:block;height:160px;margin:2em .5em 2em 0;position:relative;width:160px}.cld-progress-circular .progressbar-text{color:#222;font-size:1em;font-weight:bolder;left:50%;margin:0;padding:0;position:absolute;text-align:center;text-transform:capitalize;top:50%;transform:translate(-50%,-50%);width:100%}.cld-progress-circular .progressbar-text h2{font-size:48px;line-height:1;margin:0 0 .15em}.cld-progress-box{align-items:center;display:flex;justify-content:flex-start;margin:0 0 16px;width:100%}.cld-progress-box-title{font-size:15px;line-height:1.4;margin:12px 0 16px}.cld-progress-box-line{display:block;height:5px;min-width:1px;transition:width 2s;width:0}.cld-progress-box-line-value{font-weight:700;padding:0 0 0 8px;width:100px}.cld-progress-line{background-color:#c6d1db;display:block;height:3px;position:relative;width:100%}.cld-progress-header{font-weight:bolder}.cld-progress-header-titles{display:flex;font-size:12px;justify-content:space-between;margin-top:5px}.cld-progress-header-titles-left{color:#3448c5}.cld-progress-header-titles-right{color:#c6d1db;font-weight:400}.cld-line-stat{margin-bottom:15px}.cld-pagenav{color:#555;line-height:2.4em;margin-top:5px}.cld-pagenav-text{margin:0 2em}.cld-delete{color:#dd2c00;cursor:pointer;float:right}.cld-apply-action{float:right}.cld-table thead tr th.cld-table-th{line-height:1.8em}.cld-asset .cld-input-on-off{display:inline-block}.cld-asset .cld-input-label{display:inline-block;margin-bottom:0}.cld-asset-edit{align-items:flex-end;display:flex}.cld-asset-edit-button.button.button-primary{padding:3px 14px 4px}.cld-asset-preview-label{font-weight:bolder;margin-right:10px;width:100%}.cld-asset-preview-input{margin-top:6px;width:100%}.cld-link-button{background-color:#3448c5;border-radius:4px;display:inline-block;font-size:11px;font-weight:700;margin:0;padding:5px 14px}.cld-link-button,.cld-link-button:focus,.cld-link-button:hover{color:#fff;text-decoration:none}.cld-link-button.hidden{display:none}.cld-link-button-secondary{background-color:#c6d1db;border:1px solid #3448c5;color:rgba(0,0,1,.75)}.cld-link-button-secondary:focus,.cld-link-button-secondary:hover{background-color:#3448c5}.cld-link-button-secondary-error{border-color:#dd2c00}.cld-link-button-secondary-error:focus,.cld-link-button-secondary-error:hover{background-color:#dd2c00}.cld-tooltip{color:#999;font-size:12px;line-height:1.3em;margin:8px 0}.cld-tooltip .selected{color:rgba(0,0,1,.75)}.cld-notice-box{box-shadow:0 0 2px rgba(0,0,0,.1);margin-bottom:12px;margin-right:20px;position:relative}.cld-notice-box .cld-notice{padding:1rem 2.2rem .75rem 1.2rem}.cld-notice-box .cld-notice img.cld-ui-icon{height:100%}.cld-notice-box.is-dismissible{padding-right:38px}.cld-notice-box.has-icon{padding-left:38px}.cld-notice-box.is-created,.cld-notice-box.is-success,.cld-notice-box.is-updated{background-color:#ebf5ec;border-left:4px solid #42ad4f}.cld-notice-box.is-created .dashicons,.cld-notice-box.is-success .dashicons,.cld-notice-box.is-updated .dashicons{color:#2a0}.cld-notice-box.is-error{background-color:#f8e8e7;border-left:4px solid #cb3435}.cld-notice-box.is-error .dashicons{color:#dd2c00}.cld-notice-box.is-warning{background-color:#fff7e5;border-left:4px solid #f2ad4c}.cld-notice-box.is-warning .dashicons{color:#fd9d2c}.cld-notice-box.is-info{background-color:#e4f4f8;border-left:4px solid #2a95c3}.cld-notice-box.is-info .dashicons{color:#3273ab}.cld-notice-box.is-neutral{background-color:#fff;border-left:4px solid #ccd0d4}.cld-notice-box.is-neutral .dashicons{color:#90a0b3}.cld-notice-box.dismissed{overflow:hidden;transition:height .3s ease-out}.cld-notice-box .cld-ui-icon,.cld-notice-box .dashicons{left:19px;position:absolute;top:14px}.cld-connection-box{align-items:center;background-color:#303a47;border-radius:4px;color:#fff;display:flex;justify-content:space-around;max-width:500px;padding:20px 17px}.cld-connection-box h3{color:#fff;margin:0 0 5px}.cld-connection-box span{display:inline-block;padding:0 12px 0 0}.cld-connection-box .dashicons{font-size:30px;height:30px;margin:0;padding:0;width:30px}.cld-row{clear:both;display:flex;margin:0}.cld-row.align-center{align-items:center}@media only screen and (max-width:783px){.cld-row{flex-direction:column-reverse}}.cld-column{box-sizing:border-box;padding:0 0 0 13px;width:100%}@media only screen and (min-width:783px){.cld-column.column-45{width:45%}.cld-column.column-55{width:55%}.cld-column:last-child{padding-right:13px}}@media only screen and (max-width:783px){.cld-column{min-width:100%}.cld-column .cld-info-text{text-align:center}}@media only screen and (max-width:1200px){.cld-column.tabbed-content{display:none}.cld-column.tabbed-content.is-active{display:block}}.cld-column .cld-column{margin-right:16px;padding:0}.cld-column .cld-column:last-child{margin-left:auto;margin-right:0}.cld-center-column.cld-info-text{font-size:15px;font-weight:bolder;padding-left:2em}.cld-center-column.cld-info-text .description{font-size:12px;padding-top:8px}.cld-breakpoints-preview,.cld-image-preview,.cld-lazyload-preview,.cld-video-preview{border:1px solid #c6d1db;border-radius:4px;padding:9px}.cld-breakpoints-preview-wrapper,.cld-image-preview-wrapper,.cld-lazyload-preview-wrapper,.cld-video-preview-wrapper{position:relative}.cld-breakpoints-preview .cld-ui-title,.cld-image-preview .cld-ui-title,.cld-lazyload-preview .cld-ui-title,.cld-video-preview .cld-ui-title{font-weight:700;margin:5px 0 12px}.cld-breakpoints-preview img,.cld-image-preview img,.cld-lazyload-preview img,.cld-video-preview img{border-radius:4px;height:100%;width:100%}.cld.cld-ui-preview{max-width:322px}.cld-breakpoints-preview .cld-image-preview-wrapper:hover .preview-image,.cld-lazyload-preview .cld-image-preview-wrapper:hover .preview-image{opacity:0}.cld-breakpoints-preview .cld-image-preview-wrapper:hover .main-image,.cld-lazyload-preview .cld-image-preview-wrapper:hover .main-image{opacity:1}.cld-breakpoints-preview .cld-image-preview-wrapper:hover .main-image img,.cld-breakpoints-preview .cld-image-preview-wrapper:hover .main-image span,.cld-lazyload-preview .cld-image-preview-wrapper:hover .main-image img,.cld-lazyload-preview .cld-image-preview-wrapper:hover .main-image span{opacity:.4}.cld-breakpoints-preview .preview-image,.cld-lazyload-preview .preview-image{background-color:#222;border-radius:4px;bottom:0;box-shadow:2px -2px 3px rgba(0,0,0,.9);display:flex;left:0;position:absolute}.cld-breakpoints-preview .preview-image:hover,.cld-breakpoints-preview .preview-image:hover img,.cld-breakpoints-preview .preview-image:hover span,.cld-lazyload-preview .preview-image:hover,.cld-lazyload-preview .preview-image:hover img,.cld-lazyload-preview .preview-image:hover span{opacity:1!important}.cld-breakpoints-preview .preview-image.main-image,.cld-lazyload-preview .preview-image.main-image{box-shadow:none;position:relative}.cld-breakpoints-preview .preview-text,.cld-lazyload-preview .preview-text{background-color:#3448c5;color:#fff;padding:3px;position:absolute;right:0;text-shadow:0 0 3px #000;top:0}.cld-breakpoints-preview .global-transformations-url-link:hover,.cld-lazyload-preview .global-transformations-url-link:hover{color:#fff;text-decoration:none}.cld-lazyload-preview .progress-bar{background-color:#3448c5;height:2px;transition:width 1s;width:0}.cld-lazyload-preview .preview-image{background-color:#fff}.cld-lazyload-preview img{transition:opacity 1s}.cld-lazyload-preview .global-transformations-url-link{background-color:transparent}.cld-group .cld-group .cld-group{padding-left:4px}.cld-group .cld-group .cld-group hr{display:none}.cld-group-heading{display:flex;justify-content:space-between}.cld-group-heading h3{font-size:.9rem}.cld-group-heading h3 .description{font-size:.7rem;font-weight:400;margin-left:.7em}.cld-group .cld-ui-title-head{margin-bottom:1em}.cld-input{display:block;margin:0 0 23px;max-width:800px}.cld-input-label{display:block;margin-bottom:8px}.cld-input-label .cld-ui-title{font-size:14px;font-weight:700}.cld-input-label-link{color:#3448c5;font-size:12px;margin-left:8px}.cld-input-label-link:hover{color:#1e337f}.cld-input-radio-label{display:block}.cld-input-radio-label:not(:first-of-type){padding-top:8px}.cld-input .regular-number,.cld-input .regular-text{border:1px solid #d0d0d0;border-radius:3px;font-size:13px;padding:.1rem .5rem;width:100%}.cld-input .regular-number-small,.cld-input .regular-text-small{width:40%}.cld-input .regular-number{width:100px}.cld-input .regular-select{appearance:none;border:1px solid #d0d0d0;border-radius:3px;display:inline;font-size:13px;font-weight:600;min-width:150px;padding:2px 30px 2px 6px}.cld-input-on-off .description{color:inherit;font-size:13px;font-weight:600;margin:0}.cld-input-on-off .description.left{margin-left:0;margin-right:.4rem}.cld-input-on-off input[type=checkbox]~.spinner{background-size:12px 12px;float:none;height:12px;margin:2px;opacity:1;position:absolute;right:14px;top:0;transition:right .2s;visibility:visible;width:12px}.cld-input-on-off input[type=checkbox]:checked~.spinner{right:0}.cld-input-on-off-control{display:inline-block;height:16px;margin-right:.4rem;position:relative;width:30px}.cld-input-on-off-control input,.cld-input-on-off-control input:disabled{height:0;opacity:0;width:0}.cld-input-on-off-control-slider{background-color:#90a0b3;border-radius:10px;bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:background-color .3s}input:disabled+.cld-input-on-off-control-slider{opacity:.4;pointer-events:none}input:checked+.cld-input-on-off-control-slider{background-color:#3448c5!important}input:checked.partial+.cld-input-on-off-control-slider{background-color:#fd9d2c!important}input:checked.delete+.cld-input-on-off-control-slider{background-color:#dd2c00!important}.cld-input-on-off-control-slider:before{background-color:#fff;border-radius:50%;bottom:2px;content:"";display:block;height:12px;left:2px;position:absolute;transition:transform .2s;width:12px}input:checked+.cld-input-on-off-control-slider:before{transform:translateX(14px)}.mini input:checked+.cld-input-on-off-control-slider:before{transform:translateX(10px)}.cld-input-on-off-control.mini{height:10px;width:20px}.mini .cld-input-on-off-control-slider:before{bottom:1px;height:8px;left:1px;width:8px}.cld-input-icon-toggle{align-items:center;display:inline-flex}.cld-input-icon-toggle .description{margin:0 0 0 .4rem}.cld-input-icon-toggle .description.left{margin-left:0;margin-right:.4rem}.cld-input-icon-toggle-control{display:inline-block;position:relative}.cld-input-icon-toggle-control input{height:0;opacity:0;position:absolute;width:0}.cld-input-icon-toggle-control-slider .icon-on{display:none;visibility:hidden}.cld-input-icon-toggle-control-slider .icon-off,input:checked+.cld-input-icon-toggle-control-slider .icon-on{display:inline-block;visibility:visible}input:checked+.cld-input-icon-toggle-control-slider .icon-off{display:none;visibility:hidden}.cld-input-excluded-types div{display:flex}.cld-input-excluded-types .type{border:1px solid #c6d1db;border-radius:20px;display:flex;justify-content:space-between;margin-right:8px;min-width:50px;padding:3px 6px}.cld-input-excluded-types .dashicons{cursor:pointer}.cld-input-excluded-types .dashicons:hover{color:#dd2c00}.cld-input-tags{align-items:center;border:1px solid #d0d0d0;border-radius:3px;display:flex;flex-wrap:wrap;justify-content:flex-start;margin:5px 0 0;padding:2px 6px}.cld-input-tags-item{border:1px solid #c6d1db;border-radius:14px;box-shadow:inset -25px 0 0 #c6d1db;display:inline-flex;justify-content:space-between;margin:5px 6px 5px 0;opacity:1;overflow:hidden;padding:3px 4px 3px 8px;transition:opacity .25s,width .5s,margin .25s,padding .25s}.cld-input-tags-item-text{margin-right:8px}.cld-input-tags-item-delete{color:#90a0b3;cursor:pointer}.cld-input-tags-item-delete:hover{color:#3448c5}.cld-input-tags-item.pulse{animation:pulse-animation .5s infinite}.cld-input-tags-input{display:inline-block;min-width:100px;opacity:.4;overflow:visible;padding:10px 0;white-space:nowrap}.cld-input-tags-input:focus-visible{opacity:1;outline:none;padding:10px}@keyframes pulse-animation{0%{color:rgba(255,0,0,0)}50%{color:red}to{color:rgba(255,0,0,0)}}.cld-input-tags-input.pulse{animation:pulse-animation .5s infinite}.cld-input .prefixed{margin-left:6px;width:40%}.cld-input .suffixed{margin-right:6px;width:40%}.cld-input input::placeholder{color:#90a0b3}.cld-input .hidden{visibility:hidden}.cld-gallery-settings{box-sizing:border-box;display:flex;flex-wrap:wrap;padding:1rem 0;width:100%}@media only screen and (min-width:960px){.cld-gallery-settings{margin-left:-1rem;margin-right:-1rem}}.cld-gallery-settings__column{box-sizing:border-box;width:100%}@media only screen and (min-width:960px){.cld-gallery-settings__column{padding-left:1rem;padding-right:1rem;width:50%}}.cld-gallery-settings .components-color-palette__custom-color-button{border:none;border-radius:2px 2px 0 0;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);box-sizing:border-box;cursor:pointer;height:64px;outline:1px solid transparent;position:relative;width:100%}.cld-gallery-settings .components-color-palette__custom-color-text-wrapper{border-radius:0 0 2px 2px;box-shadow:inset 0 -1px 0 0 rgba(0,0,0,.2),inset 1px 0 0 0 rgba(0,0,0,.2),inset -1px 0 0 0 rgba(0,0,0,.2);font-size:13px;padding:12px 16px;position:relative}.components-base-control__field select{display:block;margin:1rem 0}.components-range-control__wrapper{margin:0!important}.components-range-control__root{flex-direction:row-reverse;margin:1rem 0}.components-input-control.components-number-control.components-range-control__number{margin-left:0!important;margin-right:16px}.components-panel{border:0!important}.components-panel__body:first-child{border-top:0!important}.components-panel__body:last-child{border-bottom:0!important}.components-textarea-control__input{display:block;margin:.5rem 0;width:100%}.components-popover:not(.is-without-arrow):after,.components-popover:not(.is-without-arrow):before{content:none}table .cld-input{margin-bottom:0}tr .file-size.small{color:#a8a8a8;font-size:.8em;font-style:italic;letter-spacing:.4px;margin-left:6px;margin-right:6px}td.tree{color:#212529;line-height:1.5;padding-top:0;position:relative}td.tree ul.striped>:nth-child(odd){background-color:#f6f7f7}td.tree ul.striped>:nth-child(2n){background-color:#fff}td.tree .success{color:#20b832}td+td.tree{padding-top:0}td.tree .cld-input{margin-bottom:0;vertical-align:text-bottom}td.tree .cld-search{font-size:.9em;height:26px;margin-right:12px;min-height:20px;padding:4px 6px;vertical-align:initial;width:300px}td.tree .file-size{color:#a8a8a8;font-size:.8em;font-style:italic;letter-spacing:.4px;margin-left:6px}td.tree .fa-folder,td.tree .fa-folder-open{color:#007bff}td.tree .fa-html5{color:#f21f10}td.tree ul{list-style:none;margin:0;padding-left:5px}td.tree ul li{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin-bottom:0;padding-bottom:5px;padding-left:25px;padding-top:5px;position:relative}td.tree ul li:before{height:1px;margin:auto;top:14px;width:20px}td.tree ul li:after,td.tree ul li:before{background-color:#666;content:"";left:0;position:absolute}td.tree ul li:after{bottom:0;height:100%;top:0;width:1px}td.tree ul li:after:nth-of-type(odd){background-color:#666}td.tree ul li:last-child:after{height:14px}td.tree ul a{cursor:pointer}td.tree ul a:hover{text-decoration:none}.cld-modal{align-content:center;align-items:center;background-color:rgba(0,0,0,.8);bottom:0;display:flex;flex-direction:row;flex-wrap:nowrap;left:0;opacity:0;position:fixed;right:0;top:0;transition:opacity .1s;visibility:hidden;z-index:10000}.cld-modal[data-cloudinary-only="1"] .modal-body,.cld-modal[data-cloudinary-only=true] .modal-body{display:none}.cld-modal[data-cloudinary-only="1"] [data-action=submit],.cld-modal[data-cloudinary-only=true] [data-action=submit]{cursor:not-allowed;opacity:.5;pointer-events:none}.cld-modal .warning{color:#dd2c00}.cld-modal .modal-header{margin-bottom:2em}.cld-modal .modal-uninstall{display:none}.cld-modal-box{background-color:#fff;box-shadow:0 2px 14px 0 rgba(0,0,0,.5);display:flex;flex-direction:column;font-size:10.5px;font-weight:600;justify-content:space-between;margin:0 auto;max-width:80%;padding:25px;position:relative;transition:height 1s;width:500px}.cld-modal-box .modal-footer{align-items:stretch;display:flex;flex-direction:row;justify-content:flex-end}.cld-modal-box .more{display:none}.cld-modal-box input[type=radio]:checked~.more{color:#32373c;display:block;line-height:2;margin-left:2em;margin-top:.5em}.cld-modal-box input[type=radio]:checked{border:1px solid #3448c5}.cld-modal-box input[type=radio]:checked:before{background-color:#3448c5;border-radius:50%;content:"";height:.5rem;line-height:1.14285714;margin:.1875rem;width:.5rem}@media screen and (max-width:782px){.cld-modal-box input[type=radio]:checked:before{height:.5625rem;line-height:.76190476;margin:.4375rem;vertical-align:middle;width:.5625rem}}.cld-modal-box input[type=radio]:focus{border-color:#3448c5;box-shadow:0 0 0 1px #3448c5;outline:2px solid transparent}.cld-modal-box input[type=checkbox]~label{margin-left:.25em}.cld-modal-box input[type=email]{width:100%}.cld-modal-box textarea{font-size:inherit;resize:none;width:100%}.cld-modal-box ul{margin-bottom:21px}.cld-modal-box p{font-size:10.5px;margin:0 0 12px}.cld-modal-box .button:not(.button-link){background-color:#e9ecf9}.cld-modal-box .button{border:0;color:#000;font-size:9.5px;font-weight:700;margin:22px 0 0 10px;padding:4px 14px}.cld-modal-box .button.button-primary{background-color:#3448c5;color:#fff}.cld-modal-box .button.button-link{margin-left:0;margin-right:auto}.cld-modal-box .button.button-link:hover{background-color:transparent}.cld-optimisation{display:flex;font-size:12px;justify-content:space-between;line-height:2}.cld-optimisation:first-child{margin-top:7px}.cld-optimisation-item{color:#3448c5;font-weight:600}.cld-optimisation-item:hover{color:#1e337f}.cld-optimisation-item-active,.cld-optimisation-item-not-active{font-size:10px;font-weight:700}.cld-optimisation-item-active .dashicons,.cld-optimisation-item-not-active .dashicons{font-size:12px;line-height:2}.cld-optimisation-item-active{color:#2a0}.cld-optimisation-item-not-active{color:#c6d1db}.cld-ui-sidebar{width:100%}@media only screen and (min-width:783px){.cld-ui-sidebar{max-width:500px;min-width:400px;width:auto}}.cld-ui-sidebar .cld-cron,.cld-ui-sidebar .cld-info-box,.cld-ui-sidebar .cld-panel,.cld-ui-sidebar .cld-panel-short{padding:14px 18px}.cld-ui-sidebar .cld-ui-header{margin-top:-1px;padding:6px 14px}.cld-ui-sidebar .cld-ui-header:first-child{margin-top:13px}.cld-ui-sidebar .cld-ui-title h2{font-size:14px}.cld-ui-sidebar .cld-info-box{align-items:flex-start;border:0;margin:0;padding:0}.cld-ui-sidebar .cld-info-box .cld-ui-body{padding-top:0}.cld-ui-sidebar .cld-info-box .button{align-self:flex-start;cursor:default;line-height:inherit;opacity:.5}.cld-ui-sidebar .cld-info-icon{background-color:transparent}.cld-ui-sidebar .cld-info-icon img{width:40px}.cld-ui-sidebar .extension-item{border-bottom:1px solid #e5e5e5;border-radius:0;margin-bottom:18px}.cld-ui-sidebar .extension-item:last-of-type{border-bottom:none;margin-bottom:0}.cld-ui-sidebar .cld-ui-wrap .closed{border:none;display:flex;max-height:0;padding:0!important;visibility:hidden}.cld-plan{display:flex;flex-wrap:wrap}.cld-plan-item{display:flex;margin-bottom:25px;width:33%}.cld-plan-item img{margin-right:12px;width:24px}.cld-plan-item .description{font-size:12px}.cld-plan-item .cld-title{font-size:14px;font-weight:700}.cld-wizard{margin-left:auto;margin-right:auto;max-width:1100px}.cld-wizard-tabs{display:flex;flex-direction:row;font-size:15px;font-weight:600;width:50%}.cld-wizard-tabs-tab{align-items:center;display:flex;flex-direction:column;position:relative;width:33%}.cld-wizard-tabs-tab-count{align-items:center;background-color:rgba(52,72,197,.15);border:2px solid transparent;border-radius:50%;display:flex;height:32px;justify-content:center;width:32px}.active .cld-wizard-tabs-tab-count{border:2px solid #3448c5}.complete .cld-wizard-tabs-tab-count{background-color:#2a0;color:#2a0}.complete .cld-wizard-tabs-tab-count:before{color:#fff;content:"\f147";font-family:dashicons;font-size:30px;width:25px}.cld-wizard-tabs-tab.active{color:#3448c5}.cld-wizard-tabs-tab:after{border:1px solid rgba(52,72,197,.15);content:"";left:75%;position:absolute;top:16px;width:50%}.cld-wizard-tabs-tab.complete:after{border-color:#2a0}.cld-wizard-tabs-tab:last-child:after{display:none}.cld-wizard-intro{text-align:center}.cld-wizard-intro-welcome{border:2px solid #c6d1db;border-radius:4px;box-shadow:0 2px 10px 0 rgba(0,0,0,.3);margin:27px auto;padding:19px;width:645px}.cld-wizard-intro-welcome img{width:100%}.cld-wizard-intro-welcome-info{background-color:#323a45;border-radius:0 0 4px 4px;color:#fff;display:flex;font-size:12px;margin:0 -19px -19px;padding:15px;text-align:left}.cld-wizard-intro-welcome-info img{margin-right:12px;width:25px}.cld-wizard-intro-welcome-info h2{color:#fff;font-size:14px}.cld-wizard-connect-connection{align-items:flex-end;display:flex;flex-direction:row;justify-content:flex-start}.cld-wizard-connect-connection-input{margin-right:10px;margin-top:20px;width:725px}.cld-wizard-connect-connection-input input{max-width:100%;width:100%}.cld-wizard-connect-status{align-items:center;border-radius:14px;display:none;font-weight:700;justify-content:space-between;margin-inline-start:1em;padding:5px 11px}.cld-wizard-connect-status.active{display:inline-flex}.cld-wizard-connect-status.success{background-color:#ccefc9;color:#2a0}.cld-wizard-connect-status.error{background-color:#f9cecd;color:#dd2c00}.cld-wizard-connect-status.working{background-color:#eaecfa;color:#1e337f;padding:5px}.cld-wizard-connect-status.working .spinner{margin:0;visibility:visible}.cld-wizard-connect-help{margin-top:50px}.cld-wizard-connect-help-image{border:1px solid #c6d1db;box-shadow:0 0 1em 1em rgba(0,0,0,.05);margin:2em;padding:1em}.cld-wizard-lock{cursor:pointer;display:flex}.cld-wizard-lock.hidden{display:none;height:0;width:0}.cld-wizard-lock .dashicons{color:#3448c5;font-size:25px;line-height:.7;margin-right:10px}.cld-wizard-optimize-settings.disabled{opacity:.4}.cld-wizard-complete{background-image:url(../css/images/confetti.png);background-position:50%;background-repeat:no-repeat;background-size:cover;margin:-23px;padding:98px;text-align:center}.cld-wizard-complete.hidden{display:none}.cld-wizard-complete.active{align-items:center;display:flex;flex-direction:column;justify-content:center;margin:-23px -24px;text-align:center}.cld-wizard-complete.active *{max-width:450px}.cld-wizard-complete-icons{display:flex;justify-content:center}.cld-wizard-complete-icons img{margin:30px 10px;width:70px}.cld-wizard-complete-icons .dashicons{background-color:#f1f1f1;border:4px solid #fff;border-radius:6px;box-shadow:0 2px 8px 0 rgba(0,0,0,.3);font-size:50px;height:70px;line-height:1.4;width:70px}.cld-wizard-complete-icons .dashicons-cloudinary{color:#3448c5;font-size:65px;line-height:.9}.cld-wizard-complete .cld-ui-title{margin-top:30px}.cld-wizard-complete .cld-ui-title h3{font-size:14px}.cld-wizard .cld-panel-heading{align-items:center}.cld-wizard .cld-ui-title{text-transform:none}.cld-wizard .cld-submit{align-items:center;display:flex;justify-content:space-between}.cld-wizard .cld-submit .button{margin-left:10px}.cld-import{display:none;height:100%;padding:0 10px;position:absolute;right:0;width:200px}.cld-import-item{align-items:center;display:flex;margin-top:10px;min-height:20px;opacity:0;transition:opacity .5s;white-space:nowrap}.cld-import-item .spinner{margin:0 6px 0 0;visibility:visible;width:24px}.cld-import-item-id{display:block;overflow:hidden;text-overflow:ellipsis}.cld-import-process{background-color:#fff;background-position:50%;border-radius:40px;float:none;opacity:1;padding:5px;visibility:visible}.media-library{margin-right:0;transition:margin-right .2s}.cld-sizes-preview{display:flex}.cld-sizes-preview .image-item{display:none;width:100%}.cld-sizes-preview .image-item img{max-width:100%}.cld-sizes-preview .image-item.show{align-content:space-between;display:flex;flex-direction:column;justify-content:space-around}.cld-sizes-preview .image-items{background-color:#e5e5e5;display:flex;padding:18px;width:100%}.cld-sizes-preview .image-preview-box{background-color:#90a0b3;background-position:50%;background-repeat:no-repeat;background-size:contain;border-radius:6px;height:100%;width:100%}.cld-sizes-preview input{color:#558b2f;margin-top:6px}.cld-sizes-preview input.invalid{border-color:#dd2c00;color:#dd2c00}.cld-crops{border-bottom:1px solid #e5e5e5;margin-bottom:6px;padding-bottom:6px}.cld-size-items-item{border:1px solid #e5e5e5;display:flex;flex-direction:column;margin-bottom:-1px;padding:8px}.cld-size-items-item .cld-ui-suffix{overflow:hidden;text-overflow:ellipsis;width:50%}.cld-size-items-item img{margin-bottom:8px;max-width:100%;object-fit:scale-down}.cld-size-items .crop-size-inputs{align-items:center;display:flex;gap:10px}.cld-size-items .cld-ui-input.regular-text[disabled]{background-color:#e5e5e5;opacity:.5}.cld-image-selector{display:flex}.cld-image-selector-item{border:1px solid #e5e5e5;cursor:pointer;margin:0 3px -1px 0;padding:3px 6px}.cld-image-selector-item[data-selected]{background-color:#e5e5e5}.cld-cron{padding-block:13px;padding-inline:16px}.cld-cron h2,.cld-cron h4{margin:0}.cld-cron hr{margin-block:6px}.tippy-box[data-theme~=cloudinary]{background-color:rgba(0,0,0,.8);color:#fff;font-size:.8em}#poststuff .cld-info-box h2{font-weight:700;margin:0 0 6px;padding:0}.cloudinary-overwrite-transformations{padding:6px 0} +/*# sourceMappingURL=cloudinary.css.map*/ \ No newline at end of file diff --git a/css/front-overlay.css b/css/front-overlay.css index d90f42c9a..7d651a1b3 100644 --- a/css/front-overlay.css +++ b/css/front-overlay.css @@ -1 +1,2 @@ -.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{background-color:#333;border-radius:4px;color:#fff;font-size:14px;line-height:1.4;outline:0;position:relative;transition-property:transform,visibility,opacity;white-space:normal}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{border-top-color:initial;border-width:8px 8px 0;bottom:-7px;left:0;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:initial;border-width:0 8px 8px;left:0;top:-7px;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-left-color:initial;border-width:8px 0 8px 8px;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{border-right-color:initial;border-width:8px 8px 8px 0;left:-7px;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{color:#333;height:16px;width:16px}.tippy-arrow:before{border-color:transparent;border-style:solid;content:"";position:absolute}.tippy-content{padding:5px 9px;position:relative;z-index:1}.overlay-tag{border-radius:0 0 4px 0;color:#fff;font-size:.8rem;padding:10px;position:absolute;text-align:right;z-index:9999}.overlay-tag.wp-tag{background-color:#dd2c00}.overlay-tag.cld-tag{background-color:#3448c5}[data-tippy-root] .tippy-box{max-width:none!important}[data-tippy-root] .tippy-content{background-color:#333;min-width:250px;width:auto}[data-tippy-root] .tippy-content div{border-bottom:1px solid #555;display:flex;justify-content:space-between;margin-bottom:4px;padding:4px 0}[data-tippy-root] .tippy-content .title{margin-right:50px}[data-tippy-root] .tippy-content .edit-link{color:#fff;text-align:right;width:100%} \ No newline at end of file +.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{background-color:#333;border-radius:4px;color:#fff;font-size:14px;line-height:1.4;outline:0;position:relative;transition-property:transform,visibility,opacity;white-space:normal}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{border-top-color:initial;border-width:8px 8px 0;bottom:-7px;left:0;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:initial;border-width:0 8px 8px;left:0;top:-7px;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-left-color:initial;border-width:8px 0 8px 8px;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{border-right-color:initial;border-width:8px 8px 8px 0;left:-7px;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{color:#333;height:16px;width:16px}.tippy-arrow:before{border-color:transparent;border-style:solid;content:"";position:absolute}.tippy-content{padding:5px 9px;position:relative;z-index:1}.overlay-tag{border-radius:0 0 4px 0;color:#fff;font-size:.8rem;padding:10px;position:absolute;text-align:right;z-index:9999}.overlay-tag.wp-tag{background-color:#dd2c00}.overlay-tag.cld-tag{background-color:#3448c5}[data-tippy-root] .tippy-box{max-width:none!important}[data-tippy-root] .tippy-content{background-color:#333;min-width:250px;width:auto}[data-tippy-root] .tippy-content div{border-bottom:1px solid #555;display:flex;justify-content:space-between;margin-bottom:4px;padding:4px 0}[data-tippy-root] .tippy-content .title{margin-right:50px}[data-tippy-root] .tippy-content .edit-link{color:#fff;text-align:right;width:100%} +/*# sourceMappingURL=front-overlay.css.map*/ \ No newline at end of file diff --git a/css/gallery-block-rtl.css b/css/gallery-block-rtl.css index 17a5f61ac..437297bb9 100644 --- a/css/gallery-block-rtl.css +++ b/css/gallery-block-rtl.css @@ -1 +1,3 @@ -.radio-select{align-items:center;background:none;border:none;cursor:pointer;display:flex;margin:12px 0}.radio-select:focus{color:#007cba;outline:none}.radio-select--active{color:#007cba}.radio-select--active g{fill:#007cba!important}.radio-select__label{font-size:14px;margin-right:7px}.loading-spinner-container{align-items:center;background-color:hsla(0,0%,100%,.8);display:flex;height:100%;justify-content:center;position:absolute;right:0;top:0;width:100%}.components-placeholder__fieldset{justify-content:start}.colorpalette-color-label{align-items:center;display:flex;margin:8px 0}.wp-block-cloudinary-gallery .block-editor-media-placeholder .components-placeholder__label .dashicon{margin-left:8px}.wp-block-cloudinary-gallery .block-editor-media-placeholder.is-appender .components-placeholder__label{display:none}.wp-block-cloudinary-gallery .block-editor-media-placeholder.is-appender{margin-bottom:11px;margin-top:11px;min-height:auto;padding:11px}.wp-block-cloudinary-gallery .block-editor-media-placeholder.is-appender .components-button{margin-bottom:0} \ No newline at end of file +/*!*************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/@wordpress/scripts/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!./node_modules/@wordpress/scripts/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[2].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!./src/css/gallery.scss ***! + \*************************************************************************************************************************************************************************************************************************************************************************************************************/.radio-select{align-items:center;background:none;border:none;cursor:pointer;display:flex;margin:12px 0}.radio-select:focus{color:#007cba;outline:none}.radio-select--active{color:#007cba}.radio-select--active g{fill:#007cba!important}.radio-select__label{font-size:14px;margin-right:7px}.loading-spinner-container{align-items:center;background-color:hsla(0,0%,100%,.8);display:flex;height:100%;justify-content:center;position:absolute;right:0;top:0;width:100%}.components-placeholder__fieldset{justify-content:start}.colorpalette-color-label{align-items:center;display:flex;margin:8px 0}.wp-block-cloudinary-gallery .block-editor-media-placeholder .components-placeholder__label .dashicon{margin-left:8px}.wp-block-cloudinary-gallery .block-editor-media-placeholder.is-appender .components-placeholder__label{display:none}.wp-block-cloudinary-gallery .block-editor-media-placeholder.is-appender{margin-bottom:11px;margin-top:11px;min-height:auto;padding:11px}.wp-block-cloudinary-gallery .block-editor-media-placeholder.is-appender .components-button{margin-bottom:0} \ No newline at end of file diff --git a/css/gallery-block.css b/css/gallery-block.css index c621ca7be..6c4210201 100644 --- a/css/gallery-block.css +++ b/css/gallery-block.css @@ -1 +1,4 @@ -.radio-select{align-items:center;background:none;border:none;cursor:pointer;display:flex;margin:12px 0}.radio-select:focus{color:#007cba;outline:none}.radio-select--active{color:#007cba}.radio-select--active g{fill:#007cba!important}.radio-select__label{font-size:14px;margin-left:7px}.loading-spinner-container{align-items:center;background-color:hsla(0,0%,100%,.8);display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%}.components-placeholder__fieldset{justify-content:start}.colorpalette-color-label{align-items:center;display:flex;margin:8px 0}.wp-block-cloudinary-gallery .block-editor-media-placeholder .components-placeholder__label .dashicon{margin-right:8px}.wp-block-cloudinary-gallery .block-editor-media-placeholder.is-appender .components-placeholder__label{display:none}.wp-block-cloudinary-gallery .block-editor-media-placeholder.is-appender{margin-bottom:11px;margin-top:11px;min-height:auto;padding:11px}.wp-block-cloudinary-gallery .block-editor-media-placeholder.is-appender .components-button{margin-bottom:0} \ No newline at end of file +/*!*************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/@wordpress/scripts/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!./node_modules/@wordpress/scripts/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[2].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!./src/css/gallery.scss ***! + \*************************************************************************************************************************************************************************************************************************************************************************************************************/.radio-select{align-items:center;background:none;border:none;cursor:pointer;display:flex;margin:12px 0}.radio-select:focus{color:#007cba;outline:none}.radio-select--active{color:#007cba}.radio-select--active g{fill:#007cba!important}.radio-select__label{font-size:14px;margin-left:7px}.loading-spinner-container{align-items:center;background-color:hsla(0,0%,100%,.8);display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%}.components-placeholder__fieldset{justify-content:start}.colorpalette-color-label{align-items:center;display:flex;margin:8px 0}.wp-block-cloudinary-gallery .block-editor-media-placeholder .components-placeholder__label .dashicon{margin-right:8px}.wp-block-cloudinary-gallery .block-editor-media-placeholder.is-appender .components-placeholder__label{display:none}.wp-block-cloudinary-gallery .block-editor-media-placeholder.is-appender{margin-bottom:11px;margin-top:11px;min-height:auto;padding:11px}.wp-block-cloudinary-gallery .block-editor-media-placeholder.is-appender .components-button{margin-bottom:0} +/*# sourceMappingURL=gallery-block.css.map*/ \ No newline at end of file diff --git a/css/gallery-ui.css b/css/gallery-ui.css index 3e75f2b5d..7daccf0c7 100644 --- a/css/gallery-ui.css +++ b/css/gallery-ui.css @@ -6,4 +6,5 @@ /*!rtl:begin:ignore*/.components-resizable-box__handle-right{right:-11.5px}.components-resizable-box__handle-left{left:-11.5px}.components-resizable-box__handle-top{top:-11.5px}.components-resizable-box__handle-bottom{bottom:-11.5px} -/*!rtl:end:ignore*/.components-responsive-wrapper{max-width:100%;position:relative}.components-responsive-wrapper,.components-responsive-wrapper>span{display:block}.components-responsive-wrapper__content{bottom:0;height:100%;left:0;margin:auto;position:absolute;right:0;top:0;width:100%}.components-sandbox{overflow:hidden}iframe.components-sandbox{width:100%}body.lockscroll,html.lockscroll{overflow:hidden}.components-select-control__input{-webkit-tap-highlight-color:rgba(0,0,0,0)!important;background:#fff;height:36px;line-height:36px;margin:1px;outline:0;width:100%}@media (min-width:782px){.components-select-control__input{height:28px;line-height:28px}}@media (max-width:782px){.components-base-control .components-base-control__field .components-select-control__input{font-size:16px}}.components-snackbar{background-color:#1e1e1e;border-radius:2px;box-shadow:0 2px 4px rgba(0,0,0,.3);box-sizing:border-box;color:#fff;cursor:pointer;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;max-width:600px;padding:16px 24px;width:100%}@media (min-width:600px){.components-snackbar{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}}.components-snackbar:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px #007cba;box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color)}.components-snackbar__action.components-button{color:#fff;flex-shrink:0;height:auto;line-height:1.4;margin-left:32px;padding:0}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary){background-color:transparent;text-decoration:underline}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):focus{box-shadow:none;color:#fff;outline:1px dotted #fff}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{color:#007cba;color:var(--wp-admin-theme-color)}.components-snackbar__content{align-items:baseline;display:flex;justify-content:space-between;line-height:1.4}.components-snackbar-list{box-sizing:border-box;position:absolute;width:100%;z-index:100000}.components-snackbar-list__notice-container{padding-top:8px;position:relative}.components-spinner{background-color:#949494;border-radius:100%;display:inline-block;height:18px;margin:5px 11px 0;opacity:.7;position:relative;width:18px}.components-spinner:before{animation:components-spinner__animation 1s linear infinite;background-color:#fff;border-radius:100%;content:"";height:4px;left:3px;position:absolute;top:3px;transform-origin:6px 6px;width:4px}@keyframes components-spinner__animation{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.components-tab-panel__tabs{align-items:stretch;display:flex}.components-tab-panel__tabs-item{background:transparent;border:none;border-radius:0;box-shadow:none;box-sizing:border-box;cursor:pointer;font-weight:500;height:48px;margin-left:0;padding:3px 16px;transition:box-shadow .1s linear}.components-tab-panel__tabs-item:after{speak:none;content:attr(data-label);display:block;height:0;overflow:hidden;visibility:hidden}.components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:inset 0 1.5px #007cba;box-shadow:inset 0 1.5px var(--wp-admin-theme-color)}.components-tab-panel__tabs-item.is-active{box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 var(--wp-admin-theme-color);position:relative}.components-tab-panel__tabs-item.is-active:before{border-bottom:4px solid transparent;bottom:1px;content:"";left:0;position:absolute;right:0;top:0}.components-tab-panel__tabs-item:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color)}.components-tab-panel__tabs-item.is-active:focus{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 -4px 0 0 var(--wp-admin-theme-color)}.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{border:1px solid #757575;border-radius:2px;box-shadow:0 0 0 transparent;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:6px 8px;transition:box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{transition-duration:0s}}@media (min-width:600px){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{font-size:13px;line-height:normal}}.components-text-control__input:focus,.components-text-control__input[type=color]:focus,.components-text-control__input[type=date]:focus,.components-text-control__input[type=datetime-local]:focus,.components-text-control__input[type=datetime]:focus,.components-text-control__input[type=email]:focus,.components-text-control__input[type=month]:focus,.components-text-control__input[type=number]:focus,.components-text-control__input[type=password]:focus,.components-text-control__input[type=tel]:focus,.components-text-control__input[type=text]:focus,.components-text-control__input[type=time]:focus,.components-text-control__input[type=url]:focus,.components-text-control__input[type=week]:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-text-control__input::-webkit-input-placeholder,.components-text-control__input[type=color]::-webkit-input-placeholder,.components-text-control__input[type=date]::-webkit-input-placeholder,.components-text-control__input[type=datetime-local]::-webkit-input-placeholder,.components-text-control__input[type=datetime]::-webkit-input-placeholder,.components-text-control__input[type=email]::-webkit-input-placeholder,.components-text-control__input[type=month]::-webkit-input-placeholder,.components-text-control__input[type=number]::-webkit-input-placeholder,.components-text-control__input[type=password]::-webkit-input-placeholder,.components-text-control__input[type=tel]::-webkit-input-placeholder,.components-text-control__input[type=text]::-webkit-input-placeholder,.components-text-control__input[type=time]::-webkit-input-placeholder,.components-text-control__input[type=url]::-webkit-input-placeholder,.components-text-control__input[type=week]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-text-control__input::-moz-placeholder,.components-text-control__input[type=color]::-moz-placeholder,.components-text-control__input[type=date]::-moz-placeholder,.components-text-control__input[type=datetime-local]::-moz-placeholder,.components-text-control__input[type=datetime]::-moz-placeholder,.components-text-control__input[type=email]::-moz-placeholder,.components-text-control__input[type=month]::-moz-placeholder,.components-text-control__input[type=number]::-moz-placeholder,.components-text-control__input[type=password]::-moz-placeholder,.components-text-control__input[type=tel]::-moz-placeholder,.components-text-control__input[type=text]::-moz-placeholder,.components-text-control__input[type=time]::-moz-placeholder,.components-text-control__input[type=url]::-moz-placeholder,.components-text-control__input[type=week]::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.components-text-control__input:-ms-input-placeholder,.components-text-control__input[type=color]:-ms-input-placeholder,.components-text-control__input[type=date]:-ms-input-placeholder,.components-text-control__input[type=datetime-local]:-ms-input-placeholder,.components-text-control__input[type=datetime]:-ms-input-placeholder,.components-text-control__input[type=email]:-ms-input-placeholder,.components-text-control__input[type=month]:-ms-input-placeholder,.components-text-control__input[type=number]:-ms-input-placeholder,.components-text-control__input[type=password]:-ms-input-placeholder,.components-text-control__input[type=tel]:-ms-input-placeholder,.components-text-control__input[type=text]:-ms-input-placeholder,.components-text-control__input[type=time]:-ms-input-placeholder,.components-text-control__input[type=url]:-ms-input-placeholder,.components-text-control__input[type=week]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-text-control__input::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=color]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=date]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime-local]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=email]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=month]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=number]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=password]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=tel]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=text]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=time]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=url]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=week]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-text-control__input::-moz-placeholder,.is-dark-theme .components-text-control__input[type=color]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=date]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=datetime-local]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=datetime]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=email]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=month]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=number]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=password]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=tel]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=text]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=time]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=url]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=week]::-moz-placeholder{color:hsla(0,0%,100%,.65);opacity:1}.is-dark-theme .components-text-control__input:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=color]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=date]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime-local]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=email]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=month]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=number]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=password]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=tel]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=text]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=time]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=url]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=week]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-tip{color:#757575;display:flex}.components-tip svg{-ms-grid-row-align:center;fill:#f0b849;align-self:center;flex-shrink:0;margin-right:16px}.components-tip p{margin:0}.components-toggle-control .components-base-control__field{align-items:center;display:flex;line-height:normal;margin-bottom:12px}.components-toggle-control .components-base-control__field .components-form-toggle{margin-right:12px}.components-toggle-control .components-base-control__field .components-toggle-control__label{display:block}.components-accessible-toolbar{border:1px solid #1e1e1e;border-radius:2px;display:inline-flex;flex-shrink:0}.components-accessible-toolbar>.components-toolbar-group:last-child{border-right:none}.components-accessible-toolbar .components-button,.components-toolbar .components-button{height:48px;padding-left:16px;padding-right:16px;position:relative;z-index:1}.components-accessible-toolbar .components-button:focus:enabled,.components-toolbar .components-button:focus:enabled{box-shadow:none;outline:none}.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards;border-radius:2px;content:"";display:block;height:32px;left:8px;position:absolute;right:8px;z-index:-1}@media (prefers-reduced-motion:reduce){.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{animation-duration:1ms}}.components-accessible-toolbar .components-button svg,.components-toolbar .components-button svg{margin-left:auto;margin-right:auto;position:relative}.components-accessible-toolbar .components-button.is-pressed,.components-accessible-toolbar .components-button.is-pressed:hover,.components-toolbar .components-button.is-pressed,.components-toolbar .components-button.is-pressed:hover{background:transparent}.components-accessible-toolbar .components-button.is-pressed:before,.components-toolbar .components-button.is-pressed:before{background:#1e1e1e}.components-accessible-toolbar .components-button:focus:before,.components-toolbar .components-button:focus:before{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 4px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 4px #fff;outline:2px solid transparent}.components-accessible-toolbar .components-button.has-icon,.components-toolbar .components-button.has-icon{justify-content:center;min-width:48px;padding-left:8px;padding-right:8px}.components-accessible-toolbar .components-button.components-tab-button,.components-toolbar .components-button.components-tab-button{font-weight:500}.components-accessible-toolbar .components-button.components-tab-button span,.components-toolbar .components-button.components-tab-button span{display:inline-block;padding-left:0;padding-right:0;position:relative}@keyframes components-button__appear-animation{0%{transform:scaleY(0)}to{transform:scaleY(1)}}.components-toolbar__control.components-button{position:relative}.components-toolbar__control.components-button[data-subscript] svg{padding:5px 10px 5px 0}.components-toolbar__control.components-button[data-subscript]:after{bottom:10px;content:attr(data-subscript);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:600;line-height:12px;position:absolute;right:8px}.components-toolbar__control.components-button:active:before{display:none}.components-toolbar__control.components-button:not(:disabled).is-pressed[data-subscript]:after{color:#fff}.components-toolbar-group{background-color:#fff;border-right:1px solid #1e1e1e;display:inline-flex;flex-shrink:0;flex-wrap:wrap;line-height:0;min-height:48px}.components-toolbar-group .components-toolbar-group.components-toolbar-group{border-width:0;margin:0}.components-toolbar{background-color:#fff;border:1px solid #1e1e1e;display:inline-flex;flex-shrink:0;flex-wrap:wrap;margin:0;min-height:48px}.components-toolbar .components-toolbar.components-toolbar{border-width:0;margin:0}div.components-toolbar>div{display:block;margin:0}@supports (position:sticky){div.components-toolbar>div{display:flex}}div.components-toolbar>div+div.has-left-divider{margin-left:6px;overflow:visible;position:relative}div.components-toolbar>div+div.has-left-divider:before{background-color:#ddd;box-sizing:content-box;content:"";display:inline-block;height:20px;left:-3px;position:absolute;top:8px;width:1px}.components-accessible-toolbar .components-toolbar-group>.components-button.components-button.has-icon,.components-toolbar div>.components-button.components-button.has-icon{min-width:36px;padding-left:6px;padding-right:6px}.components-accessible-toolbar .components-toolbar-group>.components-button.components-button.has-icon svg,.components-toolbar div>.components-button.components-button.has-icon svg{min-width:24px}.components-accessible-toolbar .components-toolbar-group>.components-button.components-button.has-icon:before,.components-toolbar div>.components-button.components-button.has-icon:before{left:2px;right:2px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-child.has-icon,.components-accessible-toolbar .components-toolbar-group>div:first-child>.components-button.has-icon,.components-toolbar div:first-child .components-button.has-icon{min-width:42px;padding-left:11px;padding-right:6px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-child.has-icon:before,.components-accessible-toolbar .components-toolbar-group>div:first-child>.components-button.has-icon:before,.components-toolbar div:first-child .components-button.has-icon:before{left:8px;right:2px}.components-accessible-toolbar .components-toolbar-group>.components-button:last-of-type.has-icon,.components-accessible-toolbar .components-toolbar-group>div:last-child>.components-button.has-icon,.components-toolbar div:last-child .components-button.has-icon{min-width:42px;padding-left:6px;padding-right:11px}.components-accessible-toolbar .components-toolbar-group>.components-button:last-of-type.has-icon:before,.components-accessible-toolbar .components-toolbar-group>div:last-child>.components-button.has-icon:before,.components-toolbar div:last-child .components-button.has-icon:before{left:2px;right:8px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-of-type:last-of-type.has-icon,.components-accessible-toolbar .components-toolbar-group>div:first-child:last-child>.components-button.has-icon,.components-toolbar div:first-child:last-child>.components-button.has-icon{min-width:48px;padding-left:12px;padding-right:12px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-of-type:last-of-type.has-icon:before,.components-accessible-toolbar .components-toolbar-group>div:first-child:last-child>.components-button.has-icon:before,.components-toolbar div:first-child:last-child>.components-button.has-icon:before{left:8px;right:8px}.components-tooltip.components-popover{z-index:1000002}.components-tooltip.components-popover .components-popover__content{min-width:0}.components-tooltip .components-popover__content{background:#1e1e1e;border-radius:2px;border-width:0;box-shadow:none;color:#fff;font-size:12px;line-height:1.4;text-align:center;white-space:nowrap}.components-tooltip .components-popover__content>div{padding:4px 8px}.components-tooltip__shortcut{display:inline-block;margin-left:8px}.components-visually-hidden{clip:rect(1px,1px,1px,1px);word-wrap:normal!important;border:0;-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.components-visually-hidden:focus{clip:auto!important;background-color:#ddd;-webkit-clip-path:none;clip-path:none;color:#444;display:block;font-size:1em;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000} \ No newline at end of file +/*!rtl:end:ignore*/.components-responsive-wrapper{max-width:100%;position:relative}.components-responsive-wrapper,.components-responsive-wrapper>span{display:block}.components-responsive-wrapper__content{bottom:0;height:100%;left:0;margin:auto;position:absolute;right:0;top:0;width:100%}.components-sandbox{overflow:hidden}iframe.components-sandbox{width:100%}body.lockscroll,html.lockscroll{overflow:hidden}.components-select-control__input{-webkit-tap-highlight-color:rgba(0,0,0,0)!important;background:#fff;height:36px;line-height:36px;margin:1px;outline:0;width:100%}@media (min-width:782px){.components-select-control__input{height:28px;line-height:28px}}@media (max-width:782px){.components-base-control .components-base-control__field .components-select-control__input{font-size:16px}}.components-snackbar{background-color:#1e1e1e;border-radius:2px;box-shadow:0 2px 4px rgba(0,0,0,.3);box-sizing:border-box;color:#fff;cursor:pointer;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;max-width:600px;padding:16px 24px;width:100%}@media (min-width:600px){.components-snackbar{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}}.components-snackbar:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px #007cba;box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color)}.components-snackbar__action.components-button{color:#fff;flex-shrink:0;height:auto;line-height:1.4;margin-left:32px;padding:0}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary){background-color:transparent;text-decoration:underline}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):focus{box-shadow:none;color:#fff;outline:1px dotted #fff}.components-snackbar__action.components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{color:#007cba;color:var(--wp-admin-theme-color)}.components-snackbar__content{align-items:baseline;display:flex;justify-content:space-between;line-height:1.4}.components-snackbar-list{box-sizing:border-box;position:absolute;width:100%;z-index:100000}.components-snackbar-list__notice-container{padding-top:8px;position:relative}.components-spinner{background-color:#949494;border-radius:100%;display:inline-block;height:18px;margin:5px 11px 0;opacity:.7;position:relative;width:18px}.components-spinner:before{animation:components-spinner__animation 1s linear infinite;background-color:#fff;border-radius:100%;content:"";height:4px;left:3px;position:absolute;top:3px;transform-origin:6px 6px;width:4px}@keyframes components-spinner__animation{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.components-tab-panel__tabs{align-items:stretch;display:flex}.components-tab-panel__tabs-item{background:transparent;border:none;border-radius:0;box-shadow:none;box-sizing:border-box;cursor:pointer;font-weight:500;height:48px;margin-left:0;padding:3px 16px;transition:box-shadow .1s linear}.components-tab-panel__tabs-item:after{speak:none;content:attr(data-label);display:block;height:0;overflow:hidden;visibility:hidden}.components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:inset 0 1.5px #007cba;box-shadow:inset 0 1.5px var(--wp-admin-theme-color)}.components-tab-panel__tabs-item.is-active{box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px transparent,inset 0 -4px 0 0 var(--wp-admin-theme-color);position:relative}.components-tab-panel__tabs-item.is-active:before{border-bottom:4px solid transparent;bottom:1px;content:"";left:0;position:absolute;right:0;top:0}.components-tab-panel__tabs-item:focus{box-shadow:inset 0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color)}.components-tab-panel__tabs-item.is-active:focus{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 -4px 0 0 #007cba;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 -4px 0 0 var(--wp-admin-theme-color)}.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{border:1px solid #757575;border-radius:2px;box-shadow:0 0 0 transparent;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:6px 8px;transition:box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{transition-duration:0s}}@media (min-width:600px){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{font-size:13px;line-height:normal}}.components-text-control__input:focus,.components-text-control__input[type=color]:focus,.components-text-control__input[type=date]:focus,.components-text-control__input[type=datetime-local]:focus,.components-text-control__input[type=datetime]:focus,.components-text-control__input[type=email]:focus,.components-text-control__input[type=month]:focus,.components-text-control__input[type=number]:focus,.components-text-control__input[type=password]:focus,.components-text-control__input[type=tel]:focus,.components-text-control__input[type=text]:focus,.components-text-control__input[type=time]:focus,.components-text-control__input[type=url]:focus,.components-text-control__input[type=week]:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.components-text-control__input::-webkit-input-placeholder,.components-text-control__input[type=color]::-webkit-input-placeholder,.components-text-control__input[type=date]::-webkit-input-placeholder,.components-text-control__input[type=datetime-local]::-webkit-input-placeholder,.components-text-control__input[type=datetime]::-webkit-input-placeholder,.components-text-control__input[type=email]::-webkit-input-placeholder,.components-text-control__input[type=month]::-webkit-input-placeholder,.components-text-control__input[type=number]::-webkit-input-placeholder,.components-text-control__input[type=password]::-webkit-input-placeholder,.components-text-control__input[type=tel]::-webkit-input-placeholder,.components-text-control__input[type=text]::-webkit-input-placeholder,.components-text-control__input[type=time]::-webkit-input-placeholder,.components-text-control__input[type=url]::-webkit-input-placeholder,.components-text-control__input[type=week]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.components-text-control__input::-moz-placeholder,.components-text-control__input[type=color]::-moz-placeholder,.components-text-control__input[type=date]::-moz-placeholder,.components-text-control__input[type=datetime-local]::-moz-placeholder,.components-text-control__input[type=datetime]::-moz-placeholder,.components-text-control__input[type=email]::-moz-placeholder,.components-text-control__input[type=month]::-moz-placeholder,.components-text-control__input[type=number]::-moz-placeholder,.components-text-control__input[type=password]::-moz-placeholder,.components-text-control__input[type=tel]::-moz-placeholder,.components-text-control__input[type=text]::-moz-placeholder,.components-text-control__input[type=time]::-moz-placeholder,.components-text-control__input[type=url]::-moz-placeholder,.components-text-control__input[type=week]::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.components-text-control__input:-ms-input-placeholder,.components-text-control__input[type=color]:-ms-input-placeholder,.components-text-control__input[type=date]:-ms-input-placeholder,.components-text-control__input[type=datetime-local]:-ms-input-placeholder,.components-text-control__input[type=datetime]:-ms-input-placeholder,.components-text-control__input[type=email]:-ms-input-placeholder,.components-text-control__input[type=month]:-ms-input-placeholder,.components-text-control__input[type=number]:-ms-input-placeholder,.components-text-control__input[type=password]:-ms-input-placeholder,.components-text-control__input[type=tel]:-ms-input-placeholder,.components-text-control__input[type=text]:-ms-input-placeholder,.components-text-control__input[type=time]:-ms-input-placeholder,.components-text-control__input[type=url]:-ms-input-placeholder,.components-text-control__input[type=week]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .components-text-control__input::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=color]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=date]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime-local]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=email]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=month]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=number]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=password]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=tel]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=text]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=time]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=url]::-webkit-input-placeholder,.is-dark-theme .components-text-control__input[type=week]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .components-text-control__input::-moz-placeholder,.is-dark-theme .components-text-control__input[type=color]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=date]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=datetime-local]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=datetime]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=email]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=month]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=number]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=password]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=tel]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=text]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=time]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=url]::-moz-placeholder,.is-dark-theme .components-text-control__input[type=week]::-moz-placeholder{color:hsla(0,0%,100%,.65);opacity:1}.is-dark-theme .components-text-control__input:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=color]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=date]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime-local]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=datetime]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=email]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=month]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=number]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=password]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=tel]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=text]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=time]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=url]:-ms-input-placeholder,.is-dark-theme .components-text-control__input[type=week]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.components-tip{color:#757575;display:flex}.components-tip svg{-ms-grid-row-align:center;fill:#f0b849;align-self:center;flex-shrink:0;margin-right:16px}.components-tip p{margin:0}.components-toggle-control .components-base-control__field{align-items:center;display:flex;line-height:normal;margin-bottom:12px}.components-toggle-control .components-base-control__field .components-form-toggle{margin-right:12px}.components-toggle-control .components-base-control__field .components-toggle-control__label{display:block}.components-accessible-toolbar{border:1px solid #1e1e1e;border-radius:2px;display:inline-flex;flex-shrink:0}.components-accessible-toolbar>.components-toolbar-group:last-child{border-right:none}.components-accessible-toolbar .components-button,.components-toolbar .components-button{height:48px;padding-left:16px;padding-right:16px;position:relative;z-index:1}.components-accessible-toolbar .components-button:focus:enabled,.components-toolbar .components-button:focus:enabled{box-shadow:none;outline:none}.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards;border-radius:2px;content:"";display:block;height:32px;left:8px;position:absolute;right:8px;z-index:-1}@media (prefers-reduced-motion:reduce){.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{animation-duration:1ms}}.components-accessible-toolbar .components-button svg,.components-toolbar .components-button svg{margin-left:auto;margin-right:auto;position:relative}.components-accessible-toolbar .components-button.is-pressed,.components-accessible-toolbar .components-button.is-pressed:hover,.components-toolbar .components-button.is-pressed,.components-toolbar .components-button.is-pressed:hover{background:transparent}.components-accessible-toolbar .components-button.is-pressed:before,.components-toolbar .components-button.is-pressed:before{background:#1e1e1e}.components-accessible-toolbar .components-button:focus:before,.components-toolbar .components-button:focus:before{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 4px #fff;box-shadow:inset 0 0 0 1.5px var(--wp-admin-theme-color),inset 0 0 0 4px #fff;outline:2px solid transparent}.components-accessible-toolbar .components-button.has-icon,.components-toolbar .components-button.has-icon{justify-content:center;min-width:48px;padding-left:8px;padding-right:8px}.components-accessible-toolbar .components-button.components-tab-button,.components-toolbar .components-button.components-tab-button{font-weight:500}.components-accessible-toolbar .components-button.components-tab-button span,.components-toolbar .components-button.components-tab-button span{display:inline-block;padding-left:0;padding-right:0;position:relative}@keyframes components-button__appear-animation{0%{transform:scaleY(0)}to{transform:scaleY(1)}}.components-toolbar__control.components-button{position:relative}.components-toolbar__control.components-button[data-subscript] svg{padding:5px 10px 5px 0}.components-toolbar__control.components-button[data-subscript]:after{bottom:10px;content:attr(data-subscript);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:600;line-height:12px;position:absolute;right:8px}.components-toolbar__control.components-button:active:before{display:none}.components-toolbar__control.components-button:not(:disabled).is-pressed[data-subscript]:after{color:#fff}.components-toolbar-group{background-color:#fff;border-right:1px solid #1e1e1e;display:inline-flex;flex-shrink:0;flex-wrap:wrap;line-height:0;min-height:48px}.components-toolbar-group .components-toolbar-group.components-toolbar-group{border-width:0;margin:0}.components-toolbar{background-color:#fff;border:1px solid #1e1e1e;display:inline-flex;flex-shrink:0;flex-wrap:wrap;margin:0;min-height:48px}.components-toolbar .components-toolbar.components-toolbar{border-width:0;margin:0}div.components-toolbar>div{display:block;margin:0}@supports (position:sticky){div.components-toolbar>div{display:flex}}div.components-toolbar>div+div.has-left-divider{margin-left:6px;overflow:visible;position:relative}div.components-toolbar>div+div.has-left-divider:before{background-color:#ddd;box-sizing:content-box;content:"";display:inline-block;height:20px;left:-3px;position:absolute;top:8px;width:1px}.components-accessible-toolbar .components-toolbar-group>.components-button.components-button.has-icon,.components-toolbar div>.components-button.components-button.has-icon{min-width:36px;padding-left:6px;padding-right:6px}.components-accessible-toolbar .components-toolbar-group>.components-button.components-button.has-icon svg,.components-toolbar div>.components-button.components-button.has-icon svg{min-width:24px}.components-accessible-toolbar .components-toolbar-group>.components-button.components-button.has-icon:before,.components-toolbar div>.components-button.components-button.has-icon:before{left:2px;right:2px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-child.has-icon,.components-accessible-toolbar .components-toolbar-group>div:first-child>.components-button.has-icon,.components-toolbar div:first-child .components-button.has-icon{min-width:42px;padding-left:11px;padding-right:6px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-child.has-icon:before,.components-accessible-toolbar .components-toolbar-group>div:first-child>.components-button.has-icon:before,.components-toolbar div:first-child .components-button.has-icon:before{left:8px;right:2px}.components-accessible-toolbar .components-toolbar-group>.components-button:last-of-type.has-icon,.components-accessible-toolbar .components-toolbar-group>div:last-child>.components-button.has-icon,.components-toolbar div:last-child .components-button.has-icon{min-width:42px;padding-left:6px;padding-right:11px}.components-accessible-toolbar .components-toolbar-group>.components-button:last-of-type.has-icon:before,.components-accessible-toolbar .components-toolbar-group>div:last-child>.components-button.has-icon:before,.components-toolbar div:last-child .components-button.has-icon:before{left:2px;right:8px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-of-type:last-of-type.has-icon,.components-accessible-toolbar .components-toolbar-group>div:first-child:last-child>.components-button.has-icon,.components-toolbar div:first-child:last-child>.components-button.has-icon{min-width:48px;padding-left:12px;padding-right:12px}.components-accessible-toolbar .components-toolbar-group>.components-button:first-of-type:last-of-type.has-icon:before,.components-accessible-toolbar .components-toolbar-group>div:first-child:last-child>.components-button.has-icon:before,.components-toolbar div:first-child:last-child>.components-button.has-icon:before{left:8px;right:8px}.components-tooltip.components-popover{z-index:1000002}.components-tooltip.components-popover .components-popover__content{min-width:0}.components-tooltip .components-popover__content{background:#1e1e1e;border-radius:2px;border-width:0;box-shadow:none;color:#fff;font-size:12px;line-height:1.4;text-align:center;white-space:nowrap}.components-tooltip .components-popover__content>div{padding:4px 8px}.components-tooltip__shortcut{display:inline-block;margin-left:8px}.components-visually-hidden{clip:rect(1px,1px,1px,1px);word-wrap:normal!important;border:0;-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.components-visually-hidden:focus{clip:auto!important;background-color:#ddd;-webkit-clip-path:none;clip-path:none;color:#444;display:block;font-size:1em;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000} +/*# sourceMappingURL=gallery-ui.css.map*/ \ No newline at end of file diff --git a/css/syntax-highlight.css b/css/syntax-highlight.css index 7317188fb..9fb1b147e 100644 --- a/css/syntax-highlight.css +++ b/css/syntax-highlight.css @@ -1 +1,2 @@ -.CodeMirror{color:#000;direction:ltr;font-family:monospace;height:300px}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{background-color:#f7f7f7;border-right:1px solid #ddd;white-space:nowrap}.CodeMirror-linenumber{color:#999;min-width:20px;padding:0 3px 0 5px;text-align:right;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{background:#7e7;border:0!important;width:auto}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:transparent}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:transparent}.cm-fat-cursor{caret-color:transparent}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:-50px}.CodeMirror-ruler{border-left:1px solid #ccc;bottom:0;position:absolute;top:0}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:blue}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{background:#fff;overflow:hidden;position:relative}.CodeMirror-scroll{height:100%;margin-bottom:-50px;margin-right:-50px;outline:none;overflow:scroll!important;padding-bottom:50px;position:relative;z-index:0}.CodeMirror-sizer{border-right:50px solid transparent;position:relative}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{display:none;outline:none;position:absolute;z-index:6}.CodeMirror-vscrollbar{overflow-x:hidden;overflow-y:scroll;right:0;top:0}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-x:scroll;overflow-y:hidden}.CodeMirror-scrollbar-filler{bottom:0;right:0}.CodeMirror-gutter-filler{bottom:0;left:0}.CodeMirror-gutters{left:0;min-height:100%;position:absolute;top:0;z-index:3}.CodeMirror-gutter{display:inline-block;height:100%;margin-bottom:-50px;vertical-align:top;white-space:normal}.CodeMirror-gutter-wrapper{background:none!important;border:none!important;position:absolute;z-index:4}.CodeMirror-gutter-background{bottom:0;position:absolute;top:0;z-index:4}.CodeMirror-gutter-elt{cursor:default;position:absolute;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{word-wrap:normal;-webkit-tap-highlight-color:rgba(0,0,0,0);background:transparent;-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;color:inherit;font-family:inherit;font-size:inherit;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual;line-height:inherit;margin:0;overflow:visible;position:relative;white-space:pre;z-index:2}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{bottom:0;left:0;position:absolute;right:0;top:0;z-index:0}.CodeMirror-linewidget{padding:.1px;position:relative;z-index:2}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{height:0;overflow:hidden;position:absolute;visibility:hidden;width:100%}.CodeMirror-cursor{pointer-events:none;position:absolute}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{position:relative;visibility:hidden;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.CodeMirror-foldmarker{color:blue;cursor:pointer;font-family:arial;line-height:.3;text-shadow:#b9f 1px 1px 2px,#b9f -1px -1px 2px,#b9f 1px -1px 2px,#b9f -1px 1px 2px}.CodeMirror-foldgutter{width:.7em}.CodeMirror-foldgutter-folded,.CodeMirror-foldgutter-open{cursor:pointer}.CodeMirror-foldgutter-open:after{content:"▾"}.CodeMirror-foldgutter-folded:after{content:"▸"}.cm-s-material.CodeMirror{background-color:#263238;color:#eff}.cm-s-material .CodeMirror-gutters{background:#263238;border:none;color:#546e7a}.cm-s-material .CodeMirror-guttermarker,.cm-s-material .CodeMirror-guttermarker-subtle,.cm-s-material .CodeMirror-linenumber{color:#546e7a}.cm-s-material .CodeMirror-cursor{border-left:1px solid #fc0}.cm-s-material .cm-animate-fat-cursor,.cm-s-material.cm-fat-cursor .CodeMirror-cursor{background-color:rgba(93,109,92,.502)!important}.cm-s-material div.CodeMirror-selected,.cm-s-material.CodeMirror-focused div.CodeMirror-selected{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-line::selection,.cm-s-material .CodeMirror-line>span::selection,.cm-s-material .CodeMirror-line>span>span::selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-line::-moz-selection,.cm-s-material .CodeMirror-line>span::-moz-selection,.cm-s-material .CodeMirror-line>span>span::-moz-selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-activeline-background{background:rgba(0,0,0,.5)}.cm-s-material .cm-keyword{color:#c792ea}.cm-s-material .cm-operator{color:#89ddff}.cm-s-material .cm-variable-2{color:#eff}.cm-s-material .cm-type,.cm-s-material .cm-variable-3{color:#f07178}.cm-s-material .cm-builtin{color:#ffcb6b}.cm-s-material .cm-atom{color:#f78c6c}.cm-s-material .cm-number{color:#ff5370}.cm-s-material .cm-def{color:#82aaff}.cm-s-material .cm-string{color:#c3e88d}.cm-s-material .cm-string-2{color:#f07178}.cm-s-material .cm-comment{color:#546e7a}.cm-s-material .cm-variable{color:#f07178}.cm-s-material .cm-tag{color:#ff5370}.cm-s-material .cm-meta{color:#ffcb6b}.cm-s-material .cm-attribute,.cm-s-material .cm-property{color:#c792ea}.cm-s-material .cm-qualifier,.cm-s-material .cm-type,.cm-s-material .cm-variable-3{color:#decb6b}.cm-s-material .cm-error{background-color:#ff5370;color:#fff}.cm-s-material .CodeMirror-matchingbracket{color:#fff!important;text-decoration:underline} \ No newline at end of file +@charset "UTF-8";.CodeMirror{color:#000;direction:ltr;font-family:monospace;height:300px}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{background-color:#f7f7f7;border-right:1px solid #ddd;white-space:nowrap}.CodeMirror-linenumber{color:#999;min-width:20px;padding:0 3px 0 5px;text-align:right;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{background:#7e7;border:0!important;width:auto}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:transparent}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:transparent}.cm-fat-cursor{caret-color:transparent}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:-50px}.CodeMirror-ruler{border-left:1px solid #ccc;bottom:0;position:absolute;top:0}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{background:#fff;overflow:hidden;position:relative}.CodeMirror-scroll{height:100%;margin-bottom:-50px;margin-right:-50px;outline:none;overflow:scroll!important;padding-bottom:50px;position:relative;z-index:0}.CodeMirror-sizer{border-right:50px solid transparent;position:relative}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{display:none;outline:none;position:absolute;z-index:6}.CodeMirror-vscrollbar{overflow-x:hidden;overflow-y:scroll;right:0;top:0}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-x:scroll;overflow-y:hidden}.CodeMirror-scrollbar-filler{bottom:0;right:0}.CodeMirror-gutter-filler{bottom:0;left:0}.CodeMirror-gutters{left:0;min-height:100%;position:absolute;top:0;z-index:3}.CodeMirror-gutter{display:inline-block;height:100%;margin-bottom:-50px;vertical-align:top;white-space:normal}.CodeMirror-gutter-wrapper{background:none!important;border:none!important;position:absolute;z-index:4}.CodeMirror-gutter-background{bottom:0;position:absolute;top:0;z-index:4}.CodeMirror-gutter-elt{cursor:default;position:absolute;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{word-wrap:normal;-webkit-tap-highlight-color:transparent;background:transparent;-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;color:inherit;font-family:inherit;font-size:inherit;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual;line-height:inherit;margin:0;overflow:visible;position:relative;white-space:pre;z-index:2}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{bottom:0;left:0;position:absolute;right:0;top:0;z-index:0}.CodeMirror-linewidget{padding:.1px;position:relative;z-index:2}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{height:0;overflow:hidden;position:absolute;visibility:hidden;width:100%}.CodeMirror-cursor{pointer-events:none;position:absolute}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{position:relative;visibility:hidden;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.CodeMirror-foldmarker{color:blue;cursor:pointer;font-family:arial;line-height:.3;text-shadow:#b9f 1px 1px 2px,#b9f -1px -1px 2px,#b9f 1px -1px 2px,#b9f -1px 1px 2px}.CodeMirror-foldgutter{width:.7em}.CodeMirror-foldgutter-folded,.CodeMirror-foldgutter-open{cursor:pointer}.CodeMirror-foldgutter-open:after{content:"▾"}.CodeMirror-foldgutter-folded:after{content:"▸"}.cm-s-material.CodeMirror{background-color:#263238;color:#eff}.cm-s-material .CodeMirror-gutters{background:#263238;border:none;color:#546e7a}.cm-s-material .CodeMirror-guttermarker,.cm-s-material .CodeMirror-guttermarker-subtle,.cm-s-material .CodeMirror-linenumber{color:#546e7a}.cm-s-material .CodeMirror-cursor{border-left:1px solid #fc0}.cm-s-material .cm-animate-fat-cursor,.cm-s-material.cm-fat-cursor .CodeMirror-cursor{background-color:rgba(93,109,92,.502)!important}.cm-s-material div.CodeMirror-selected,.cm-s-material.CodeMirror-focused div.CodeMirror-selected{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-line::selection,.cm-s-material .CodeMirror-line>span::selection,.cm-s-material .CodeMirror-line>span>span::selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-line::-moz-selection,.cm-s-material .CodeMirror-line>span::-moz-selection,.cm-s-material .CodeMirror-line>span>span::-moz-selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-activeline-background{background:rgba(0,0,0,.5)}.cm-s-material .cm-keyword{color:#c792ea}.cm-s-material .cm-operator{color:#89ddff}.cm-s-material .cm-variable-2{color:#eff}.cm-s-material .cm-type,.cm-s-material .cm-variable-3{color:#f07178}.cm-s-material .cm-builtin{color:#ffcb6b}.cm-s-material .cm-atom{color:#f78c6c}.cm-s-material .cm-number{color:#ff5370}.cm-s-material .cm-def{color:#82aaff}.cm-s-material .cm-string{color:#c3e88d}.cm-s-material .cm-string-2{color:#f07178}.cm-s-material .cm-comment{color:#546e7a}.cm-s-material .cm-variable{color:#f07178}.cm-s-material .cm-tag{color:#ff5370}.cm-s-material .cm-meta{color:#ffcb6b}.cm-s-material .cm-attribute,.cm-s-material .cm-property{color:#c792ea}.cm-s-material .cm-qualifier,.cm-s-material .cm-type,.cm-s-material .cm-variable-3{color:#decb6b}.cm-s-material .cm-error{background-color:#ff5370;color:#fff}.cm-s-material .CodeMirror-matchingbracket{color:#fff!important;text-decoration:underline} +/*# sourceMappingURL=syntax-highlight.css.map*/ \ No newline at end of file diff --git a/css/video.css b/css/video.css index 1a254a1ec..32db3de6b 100644 --- a/css/video.css +++ b/css/video.css @@ -1 +1,2 @@ -.cld-video-player{max-width:100%} \ No newline at end of file +.cld-video-player{max-width:100%} +/*# sourceMappingURL=video.css.map*/ \ No newline at end of file diff --git a/js/asset-edit.js b/js/asset-edit.js index 98e032d8d..2c247fe27 100644 --- a/js/asset-edit.js +++ b/js/asset-edit.js @@ -1 +1,2 @@ -!function(){var t={616:function(t){t.exports=function(t,e){var r,n,i=0;function o(){var o,a,s=r,c=arguments.length;t:for(;s;){if(s.args.length===arguments.length){for(a=0;a=0),s.type){case"b":r=parseInt(r,10).toString(2);break;case"c":r=String.fromCharCode(parseInt(r,10));break;case"d":case"i":r=parseInt(r,10);break;case"j":r=JSON.stringify(r,null,s.width?parseInt(s.width):0);break;case"e":r=s.precision?parseFloat(r).toExponential(s.precision):parseFloat(r).toExponential();break;case"f":r=s.precision?parseFloat(r).toFixed(s.precision):parseFloat(r);break;case"g":r=s.precision?String(Number(r.toPrecision(s.precision))):parseFloat(r);break;case"o":r=(parseInt(r,10)>>>0).toString(8);break;case"s":r=String(r),r=s.precision?r.substring(0,s.precision):r;break;case"t":r=String(!!r),r=s.precision?r.substring(0,s.precision):r;break;case"T":r=Object.prototype.toString.call(r).slice(8,-1).toLowerCase(),r=s.precision?r.substring(0,s.precision):r;break;case"u":r=parseInt(r,10)>>>0;break;case"v":r=r.valueOf(),r=s.precision?r.substring(0,s.precision):r;break;case"x":r=(parseInt(r,10)>>>0).toString(16);break;case"X":r=(parseInt(r,10)>>>0).toString(16).toUpperCase()}i.json.test(s.type)?v+=r:(!i.number.test(s.type)||p&&!s.sign?f="":(f=p?"+":"-",r=r.toString().replace(i.sign,"")),u=s.pad_char?"0"===s.pad_char?"0":s.pad_char.charAt(1):" ",l=s.width-(f+r).length,c=s.width&&l>0?u.repeat(l):"",v+=s.align?f+r+c:"0"===u?f+c+r:c+f+r)}return v}(function(t){if(s[t])return s[t];var e,r=t,n=[],o=0;for(;r;){if(null!==(e=i.text.exec(r)))n.push(e[0]);else if(null!==(e=i.modulo.exec(r)))n.push("%");else{if(null===(e=i.placeholder.exec(r)))throw new SyntaxError("[sprintf] unexpected placeholder");if(e[2]){o|=1;var a=[],c=e[2],u=[];if(null===(u=i.key.exec(c)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(a.push(u[1]);""!==(c=c.substring(u[0].length));)if(null!==(u=i.key_access.exec(c)))a.push(u[1]);else{if(null===(u=i.index_access.exec(c)))throw new SyntaxError("[sprintf] failed to parse named argument key");a.push(u[1])}e[2]=a}else o|=2;if(3===o)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");n.push({placeholder:e[0],param_no:e[1],keys:e[2],sign:e[3],pad_char:e[4],align:e[5],width:e[6],precision:e[7],type:e[8]})}r=r.substring(e[0].length)}return s[t]=n}(t),arguments)}function a(t,e){return o.apply(null,[t].concat(e||[]))}var s=Object.create(null);o,a,"undefined"!=typeof window&&(window.sprintf=o,window.vsprintf=a,void 0===(n=function(){return{sprintf:o,vsprintf:a}}.call(e,r,e,t))||(t.exports=n))}()},633:function(t,e,r){var n=r(738).default;function i(){"use strict";t.exports=i=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function p(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{p({},"")}catch(t){p=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,o=Object.create(i.prototype),s=new S(n||[]);return a(o,"_invoke",{value:_(t,r,s)}),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var d={};function v(){}function y(){}function b(){}var g={};p(g,c,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(A([])));w&&w!==r&&o.call(w,c)&&(g=w);var O=b.prototype=v.prototype=Object.create(g);function x(t){["next","throw","return"].forEach((function(e){p(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(i,a,s,c){var u=h(t[i],t,a);if("throw"!==u.type){var l=u.arg,p=l.value;return p&&"object"==n(p)&&o.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,s,c)}),(function(t){r("throw",t,s,c)})):e.resolve(p).then((function(t){l.value=t,s(l)}),(function(t){return r("throw",t,s,c)}))}c(u.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}})}function _(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return L()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=P(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=h(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function P(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,P(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=h(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,d;var i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function A(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(s&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;E(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},738:function(t){function e(r){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},756:function(t,e,r){var n=r(633)();t.exports=n;try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,r),o.exports}r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},function(){"use strict";var t,e,n,i,o=r(616),a=r.n(o);r(604),a()(console.error);function s(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}t={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},e=["(","?"],n={")":["("],":":["?","?:"]},i=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var c={"!":function(t){return!t},"*":function(t,e){return t*e},"/":function(t,e){return t/e},"%":function(t,e){return t%e},"+":function(t,e){return t+e},"-":function(t,e){return t-e},"<":function(t,e){return t":function(t,e){return t>e},">=":function(t,e){return t>=e},"==":function(t,e){return t===e},"!=":function(t,e){return t!==e},"&&":function(t,e){return t&&e},"||":function(t,e){return t||e},"?:":function(t,e,r){if(t)throw e;return r}};function u(r){var o=function(r){for(var o,a,s,c,u=[],l=[];o=r.match(i);){for(a=o[0],(s=r.substr(0,o.index).trim())&&u.push(s);c=l.pop();){if(n[a]){if(n[a][0]===c){a=n[a][1]||a;break}}else if(e.indexOf(c)>=0||t[c]3&&void 0!==arguments[3]?arguments[3]:10,a=t[e];if(b(r)&&y(n))if("function"==typeof i)if("number"==typeof o){var s={callback:i,priority:o,namespace:n};if(a[r]){var c,u=a[r].handlers;for(c=u.length;c>0&&!(o>=u[c-1].priority);c--);c===u.length?u[c]=s:u.splice(c,0,s),a.__current.forEach((function(t){t.name===r&&t.currentIndex>=c&&t.currentIndex++}))}else a[r]={handlers:[s],runs:0};"hookAdded"!==r&&t.doAction("hookAdded",r,n,i,o)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}};var m=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(n,i){var o=t[e];if(b(n)&&(r||y(i))){if(!o[n])return 0;var a=0;if(r)a=o[n].handlers.length,o[n]={runs:o[n].runs,handlers:[]};else for(var s=o[n].handlers,c=function(t){s[t].namespace===i&&(s.splice(t,1),a++,o.__current.forEach((function(e){e.name===n&&e.currentIndex>=t&&e.currentIndex--})))},u=s.length-1;u>=0;u--)c(u);return"hookRemoved"!==n&&t.doAction("hookRemoved",n,i),a}}};var w=function(t,e){return function(r,n){var i=t[e];return void 0!==n?r in i&&i[r].handlers.some((function(t){return t.namespace===n})):r in i}};var O=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(n){var i=t[e];i[n]||(i[n]={handlers:[],runs:0}),i[n].runs++;var o=i[n].handlers;for(var a=arguments.length,s=new Array(a>1?a-1:0),c=1;c1&&void 0!==arguments[1]?arguments[1]:"default";n.data[e]=h(h(h({},d),n.data[e]),t),n.data[e][""]=h(h({},d[""]),n.data[e][""])},s=function(t,e){a(t,e),o()},c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",e=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;return n.data[t]||a(void 0,t),n.dcnpgettext(t,e,r,i,o)},u=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default"},l=function(t,e,n){var i=c(n,e,t);return r?(i=r.applyFilters("i18n.gettext_with_context",i,t,e,n),r.applyFilters("i18n.gettext_with_context_"+u(n),i,t,e,n)):i};if(t&&s(t,e),r){var f=function(t){v.test(t)&&o()};r.addAction("hookAdded","core/i18n",f),r.addAction("hookRemoved","core/i18n",f)}return{getLocaleData:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return n.data[t]},setLocaleData:s,resetLocaleData:function(t,e){n.data={},n.pluralForms={},s(t,e)},subscribe:function(t){return i.add(t),function(){return i.delete(t)}},__:function(t,e){var n=c(e,void 0,t);return r?(n=r.applyFilters("i18n.gettext",n,t,e),r.applyFilters("i18n.gettext_"+u(e),n,t,e)):n},_x:l,_n:function(t,e,n,i){var o=c(i,void 0,t,e,n);return r?(o=r.applyFilters("i18n.ngettext",o,t,e,n,i),r.applyFilters("i18n.ngettext_"+u(i),o,t,e,n,i)):o},_nx:function(t,e,n,i,o){var a=c(o,i,t,e,n);return r?(a=r.applyFilters("i18n.ngettext_with_context",a,t,e,n,i,o),r.applyFilters("i18n.ngettext_with_context_"+u(o),a,t,e,n,i,o)):a},isRTL:function(){return"rtl"===l("ltr","text direction")},hasTranslation:function(t,e,i){var o,a,s=e?e+""+t:t,c=!(null===(o=n.data)||void 0===o||null===(a=o[null!=i?i:"default"])||void 0===a||!a[s]);return r&&(c=r.applyFilters("i18n.has_translation",c,t,e,i),c=r.applyFilters("i18n.has_translation_"+u(i),c,t,e,i)),c}}}(void 0,void 0,k)),S=(E.getLocaleData.bind(E),E.setLocaleData.bind(E),E.resetLocaleData.bind(E),E.subscribe.bind(E),E.__.bind(E));E._x.bind(E),E._n.bind(E),E._nx.bind(E),E.isRTL.bind(E),E.hasTranslation.bind(E);var A={preview:null,wrap:null,apply:null,url:null,defaultWidth:null,defaultHeight:null,maxSize:null,init(){return this},createPreview(t=400,e=300){return this.maxSize=t>e?t:e,this.defaultWidth=t,this.defaultHeight=e,this.wrap=document.createElement("div"),this.apply=document.createElement("button"),this.preview=document.createElement("img"),this.apply.type="button",this.apply.classList.add("button-primary"),this.apply.innerText=S("Preview","cloudinary"),this.preview.style.transition="opacity 1s",this.preview.style.opacity=1,this.preview.style.maxWidth="100%",this.preview.style.maxHeight="100%",this.reset(),this.wrap.style.minHeight="200px",this.wrap.style.width=this.maxSize+"px",this.wrap.style.position="relative",this.wrap.style.display="flex",this.wrap.style.alignItems="center",this.wrap.style.justifyContent="center",this.apply.style.position="absolute",this.apply.style.display="none",this.wrap.appendChild(this.preview),this.wrap.appendChild(this.apply),this.preview.addEventListener("load",(t=>{this.preview.style.opacity=1,this.wrap.style.width="",this.wrap.style.height="",this.defaultHeight=this.preview.height,this.defaultWidth=this.preview.width,this.defaultHeight>this.defaultWidth?this.wrap.style.height=this.maxSize+"px":this.wrap.style.width=this.maxSize+"px"})),this.preview.addEventListener("error",(t=>{this.preview.src=this.getNoURL("⚠")})),this.apply.addEventListener("click",(()=>{this.apply.style.display="none",this.reset(),this.preview.style.opacity=.6,this.preview.src=this.url})),this.wrap},reset(){this.preview.src=this.getNoURL()},setSrc(t,e=!1){this.preview.style.opacity=.6,e?(this.apply.style.display="none",this.preview.src=t):(this.apply.style.display="block",this.url=t)},getNoURL(t="︎"){const e=this.defaultWidth/2-23,r=this.defaultHeight/2+25;return`data:image/svg+xml;utf8,${t}`}};function L(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function D(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function I(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function q(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;if(!e||!Object.keys(e).length)return t;var r=t,n=t.indexOf("?");return-1!==n&&(e=Object.assign(Z(t),e),r=r.substr(0,n)),r+"?"+function(t){for(var e,r="",n=Object.entries(t);e=n.shift();){var i=J(e,2),o=i[0],a=i[1];if(Array.isArray(a)||a&&a.constructor===Object){var s,c=Y(Object.entries(a).reverse());try{for(c.s();!(s=c.n()).done;){var u=J(s.value,2),l=u[0],p=u[1];n.unshift(["".concat(o,"[").concat(l,"]"),p])}}catch(t){c.e(t)}finally{c.f()}}else void 0!==a&&(null===a&&(a=""),r+="&"+[o,a].map(encodeURIComponent).join("="))}return r.substr(1)}(e)}function V(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function tt(t){for(var e=1;e]+)>; rel="next"/);return e?{next:e[1]}:{}}(t.headers.get("link")).next},nt=function(t){var e=!!t.path&&-1!==t.path.indexOf("per_page=-1"),r=!!t.url&&-1!==t.url.indexOf("per_page=-1");return e||r},it=function(){var t,e=(t=H().mark((function t(e,r){var n,i,o,a,s,c;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!1!==e.parse){t.next=2;break}return t.abrupt("return",r(e));case 2:if(nt(e)){t.next=4;break}return t.abrupt("return",r(e));case 4:return t.next=6,jt(tt(tt({},(l={per_page:100},p=void 0,f=void 0,p=(u=e).path,f=u.url,tt(tt({},L(u,["path","url"])),{},{url:f&&Q(f,l),path:p&&Q(p,l)}))),{},{parse:!1}));case 6:return n=t.sent,t.next=9,et(n);case 9:if(i=t.sent,Array.isArray(i)){t.next=12;break}return t.abrupt("return",i);case 12:if(o=rt(n)){t.next=15;break}return t.abrupt("return",i);case 15:a=[].concat(i);case 16:if(!o){t.next=27;break}return t.next=19,jt(tt(tt({},e),{},{path:void 0,url:o,parse:!1}));case 19:return s=t.sent,t.next=22,et(s);case 22:c=t.sent,a=a.concat(c),o=rt(s),t.next=16;break;case 27:return t.abrupt("return",a);case 28:case"end":return t.stop()}var u,l,p,f}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){B(o,n,i,a,s,"next",t)}function s(t){B(o,n,i,a,s,"throw",t)}a(void 0)}))});return function(t,r){return e.apply(this,arguments)}}(),ot=it;function at(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function st(t){for(var e=1;e1&&void 0!==arguments[1])||arguments[1];return Promise.resolve(function(t){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?t:204===t.status?null:t.json?t.json():Promise.reject(t)}(t,e)).catch((function(t){return pt(t,e)}))};function pt(t){if(!(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]))throw t;return function(t){var e={code:"invalid_json",message:S("The response is not a valid JSON response.")};if(!t||!t.json)throw e;return t.json().catch((function(){throw e}))}(t).then((function(t){var e={code:"unknown_error",message:S("An unknown error occurred.")};throw t||e}))}function ft(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ht(t){for(var e=1;e=500&&e.status<600&&r?n(r).catch((function(){return!1!==t.parse?Promise.reject({code:"post_process",message:S("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(e)})):pt(e,t.parse)})).then((function(e){return lt(e,t.parse)}))};function vt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function yt(t){for(var e=1;e=200&&t.status<300)return t;throw t},Ot=function(t){var e=t.url,r=t.path,n=t.data,i=t.parse,o=void 0===i||i,a=L(t,["url","path","data","parse"]),s=t.body,c=t.headers;return c=yt(yt({},bt),c),n&&(s=JSON.stringify(n),c["Content-Type"]="application/json"),window.fetch(e||r||window.location.href,yt(yt(yt({},gt),a),{},{body:s,headers:c})).then((function(t){return Promise.resolve(t).then(wt).catch((function(t){return pt(t,o)})).then((function(t){return lt(t,o)}))}),(function(){throw{code:"fetch_error",message:S("You are probably offline.")}}))};function xt(t){return mt.reduceRight((function(t,e){return function(r){return e(r,t)}}),Ot)(t).catch((function(e){return"rest_cookie_invalid_nonce"!==e.code?Promise.reject(e):window.fetch(xt.nonceEndpoint).then(wt).then((function(t){return t.text()})).then((function(e){return xt.nonceMiddleware.nonce=e,xt(t)}))}))}xt.use=function(t){mt.unshift(t)},xt.setFetchHandler=function(t){Ot=t},xt.createNonceMiddleware=F,xt.createPreloadingMiddleware=$,xt.createRootURLMiddleware=z,xt.fetchAllMiddleware=ot,xt.mediaUploadMiddleware=dt;var jt=xt;var _t={id:null,post_id:null,transformations:null,beforeCallbacks:[],completeCallbacks:[],init(t){if(void 0!==cldData.editor)return jt.use(jt.createNonceMiddleware(cldData.editor.nonce)),this.callback=t,this},save(t){this.doBefore(t),jt({path:cldData.editor.save_url,data:t,method:"POST"}).then((t=>{this.doComplete(t,this)}))},doBefore(t){this.beforeCallbacks.forEach((e=>e(t,this)))},doComplete(t){this.completeCallbacks.forEach((e=>e(t,this)))},onBefore(t){this.beforeCallbacks.push(t)},onComplete(t){this.completeCallbacks.push(t)}};const Pt={wrap:document.getElementById("cld-asset-edit"),preview:null,id:null,editor:null,base:null,publicId:null,size:null,transformationsInput:document.getElementById("cld-asset-edit-transformations"),saveButton:document.getElementById("cld-asset-edit-save"),currentURL:null,init(){const t=JSON.parse(this.wrap.dataset.item);this.id=t.ID,this.base=t.base+t.size+"/",this.publicId=t.file,this.transformationsInput.value=t.transformations?t.transformations:"",this.initPreview(),this.initEditor()},initPreview(){this.preview=A.init(),this.wrap.appendChild(this.preview.createPreview(900,675)),this.preview.setSrc(this.base+this.transformationsInput.value+this.publicId,!0),this.transformationsInput.addEventListener("input",(t=>{this.preview.setSrc(this.base+this.transformationsInput.value+this.publicId)})),this.transformationsInput.addEventListener("keydown",(t=>{"Enter"===t.code&&(t.preventDefault(),this.saveButton.dispatchEvent(new Event("click")))}))},initEditor(){this.editor=_t.init(),this.editor.onBefore((()=>this.preview.reset())),this.editor.onComplete((t=>{this.transformationsInput.value=t.transformations,this.preview.setSrc(this.base+t.transformations+this.publicId,!0),t.note&&alert(t.note)})),this.saveButton.addEventListener("click",(()=>{this.editor.save({ID:this.id,transformations:this.transformationsInput.value})}))}};window.addEventListener("load",(()=>Pt.init()))}()}(); \ No newline at end of file +!function(){var e={"./node_modules/@tannin/compile/index.js":function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return i}});var n=r("./node_modules/@tannin/postfix/index.js"),o=r("./node_modules/@tannin/evaluate/index.js");function i(e){var t=(0,n.default)(e);return function(e){return(0,o.default)(t,e)}}},"./node_modules/@tannin/evaluate/index.js":function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return o}});var n={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,r){if(e)throw t;return r}};function o(e,t){var r,o,i,s,u,a,l=[];for(r=0;r=0||n[a]":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},o=["(","?"],i={")":["("],":":["?","?:"]},s=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/},"./node_modules/@wordpress/api-fetch/build-module/index.js":function(e,t,r){"use strict";r.r(t);var n=r("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=r("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),i=r("./node_modules/@wordpress/i18n/build-module/index.js"),s=r("./node_modules/@wordpress/api-fetch/build-module/middlewares/nonce.js"),u=r("./node_modules/@wordpress/api-fetch/build-module/middlewares/root-url.js"),a=r("./node_modules/@wordpress/api-fetch/build-module/middlewares/preloading.js"),l=r("./node_modules/@wordpress/api-fetch/build-module/middlewares/fetch-all-middleware.js"),d=r("./node_modules/@wordpress/api-fetch/build-module/middlewares/namespace-endpoint.js"),c=r("./node_modules/@wordpress/api-fetch/build-module/middlewares/http-v1.js"),f=r("./node_modules/@wordpress/api-fetch/build-module/middlewares/user-locale.js"),p=r("./node_modules/@wordpress/api-fetch/build-module/middlewares/media-upload.js"),h=r("./node_modules/@wordpress/api-fetch/build-module/utils/response.js");function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t=200&&e.status<300)return e;throw e},j=function(e){var t=e.url,r=e.path,n=e.data,s=e.parse,u=void 0===s||s,a=(0,o.default)(e,["url","path","data","parse"]),l=e.body,d=e.headers;return d=b(b({},y),d),n&&(l=JSON.stringify(n),d["Content-Type"]="application/json"),window.fetch(t||r||window.location.href,b(b(b({},v),a),{},{body:l,headers:d})).then((function(e){return Promise.resolve(e).then(w).catch((function(e){return(0,h.parseAndThrowError)(e,u)})).then((function(e){return(0,h.parseResponseAndNormalizeError)(e,u)}))}),(function(){throw{code:"fetch_error",message:(0,i.__)("You are probably offline.")}}))};function _(e){return g.reduceRight((function(e,t){return function(r){return t(r,e)}}),j)(e).catch((function(t){return"rest_cookie_invalid_nonce"!==t.code?Promise.reject(t):window.fetch(_.nonceEndpoint).then(w).then((function(e){return e.text()})).then((function(t){return _.nonceMiddleware.nonce=t,_(e)}))}))}_.use=function(e){g.unshift(e)},_.setFetchHandler=function(e){j=e},_.createNonceMiddleware=s.default,_.createPreloadingMiddleware=a.default,_.createRootURLMiddleware=u.default,_.fetchAllMiddleware=l.default,_.mediaUploadMiddleware=p.default,t.default=_},"./node_modules/@wordpress/api-fetch/build-module/middlewares/fetch-all-middleware.js":function(e,t,r){"use strict";r.r(t);var n=r("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),o=r("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),i=r("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),s=r("./node_modules/@babel/runtime/regenerator/index.js"),u=r.n(s),a=r("./node_modules/@wordpress/url/build-module/add-query-args.js"),l=r("./node_modules/@wordpress/api-fetch/build-module/index.js");function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t]+)>; rel="next"/);return t?{next:t[1]}:{}}(e.headers.get("link")).next},h=function(e){var t=!!e.path&&-1!==e.path.indexOf("per_page=-1"),r=!!e.url&&-1!==e.url.indexOf("per_page=-1");return t||r},m=function(){var e=(0,n.default)(u().mark((function e(t,r){var n,o,s,d,m,b;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!1!==t.parse){e.next=2;break}return e.abrupt("return",r(t));case 2:if(h(t)){e.next=4;break}return e.abrupt("return",r(t));case 4:return e.next=6,(0,l.default)(c(c({},(y={per_page:100},v=void 0,g=void 0,v=(u=t).path,g=u.url,c(c({},(0,i.default)(u,["path","url"])),{},{url:g&&(0,a.addQueryArgs)(g,y),path:v&&(0,a.addQueryArgs)(v,y)}))),{},{parse:!1}));case 6:return n=e.sent,e.next=9,f(n);case 9:if(o=e.sent,Array.isArray(o)){e.next=12;break}return e.abrupt("return",o);case 12:if(s=p(n)){e.next=15;break}return e.abrupt("return",o);case 15:d=[].concat(o);case 16:if(!s){e.next=27;break}return e.next=19,(0,l.default)(c(c({},t),{},{path:void 0,url:s,parse:!1}));case 19:return m=e.sent,e.next=22,f(m);case 22:b=e.sent,d=d.concat(b),s=p(m),e.next=16;break;case 27:return e.abrupt("return",d);case 28:case"end":return e.stop()}var u,y,v,g}),e)})));return function(t,r){return e.apply(this,arguments)}}();t.default=m},"./node_modules/@wordpress/api-fetch/build-module/middlewares/http-v1.js":function(e,t,r){"use strict";r.r(t);var n=r("./node_modules/@babel/runtime/helpers/esm/defineProperty.js");function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=500&&t.status<600&&r?n(r).catch((function(){return!1!==e.parse?Promise.reject({code:"post_process",message:(0,o.__)("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(t)})):(0,i.parseAndThrowError)(t,e.parse)})).then((function(t){return(0,i.parseResponseAndNormalizeError)(t,e.parse)}))}},"./node_modules/@wordpress/api-fetch/build-module/middlewares/namespace-endpoint.js":function(e,t,r){"use strict";r.r(t);var n=r("./node_modules/@babel/runtime/helpers/esm/defineProperty.js");function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t1&&void 0!==arguments[1])||arguments[1];return Promise.resolve(function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?e:204===e.status?null:e.json?e.json():Promise.reject(e)}(e,t)).catch((function(e){return s(e,t)}))};function s(e){if(!(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]))throw e;return o(e).then((function(e){var t={code:"unknown_error",message:(0,n.__)("An unknown error occurred.")};throw e||t}))}},"./node_modules/@wordpress/hooks/build-module/createAddHook.js":function(e,t,r){"use strict";r.r(t);var n=r("./node_modules/@wordpress/hooks/build-module/validateNamespace.js"),o=r("./node_modules/@wordpress/hooks/build-module/validateHookName.js");t.default=function(e,t){return function(r,i,s){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,a=e[t];if((0,o.default)(r)&&(0,n.default)(i))if("function"==typeof s)if("number"==typeof u){var l={callback:s,priority:u,namespace:i};if(a[r]){var d,c=a[r].handlers;for(d=c.length;d>0&&!(u>=c[d-1].priority);d--);d===c.length?c[d]=l:c.splice(d,0,l),a.__current.forEach((function(e){e.name===r&&e.currentIndex>=d&&e.currentIndex++}))}else a[r]={handlers:[l],runs:0};"hookAdded"!==r&&e.doAction("hookAdded",r,i,s,u)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}}},"./node_modules/@wordpress/hooks/build-module/createCurrentHook.js":function(e,t,r){"use strict";r.r(t),t.default=function(e,t){return function(){var r,n,o=e[t];return null!==(r=null===(n=o.__current[o.__current.length-1])||void 0===n?void 0:n.name)&&void 0!==r?r:null}}},"./node_modules/@wordpress/hooks/build-module/createDidHook.js":function(e,t,r){"use strict";r.r(t);var n=r("./node_modules/@wordpress/hooks/build-module/validateHookName.js");t.default=function(e,t){return function(r){var o=e[t];if((0,n.default)(r))return o[r]&&o[r].runs?o[r].runs:0}}},"./node_modules/@wordpress/hooks/build-module/createDoingHook.js":function(e,t,r){"use strict";r.r(t),t.default=function(e,t){return function(r){var n=e[t];return void 0===r?void 0!==n.__current[0]:!!n.__current[0]&&r===n.__current[0].name}}},"./node_modules/@wordpress/hooks/build-module/createHasHook.js":function(e,t,r){"use strict";r.r(t),t.default=function(e,t){return function(r,n){var o=e[t];return void 0!==n?r in o&&o[r].handlers.some((function(e){return e.namespace===n})):r in o}}},"./node_modules/@wordpress/hooks/build-module/createHooks.js":function(e,t,r){"use strict";r.r(t),r.d(t,{_Hooks:function(){return c}});var n=r("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),o=r("./node_modules/@wordpress/hooks/build-module/createAddHook.js"),i=r("./node_modules/@wordpress/hooks/build-module/createRemoveHook.js"),s=r("./node_modules/@wordpress/hooks/build-module/createHasHook.js"),u=r("./node_modules/@wordpress/hooks/build-module/createRunHook.js"),a=r("./node_modules/@wordpress/hooks/build-module/createCurrentHook.js"),l=r("./node_modules/@wordpress/hooks/build-module/createDoingHook.js"),d=r("./node_modules/@wordpress/hooks/build-module/createDidHook.js"),c=function e(){(0,n.default)(this,e),this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=(0,o.default)(this,"actions"),this.addFilter=(0,o.default)(this,"filters"),this.removeAction=(0,i.default)(this,"actions"),this.removeFilter=(0,i.default)(this,"filters"),this.hasAction=(0,s.default)(this,"actions"),this.hasFilter=(0,s.default)(this,"filters"),this.removeAllActions=(0,i.default)(this,"actions",!0),this.removeAllFilters=(0,i.default)(this,"filters",!0),this.doAction=(0,u.default)(this,"actions"),this.applyFilters=(0,u.default)(this,"filters",!0),this.currentAction=(0,a.default)(this,"actions"),this.currentFilter=(0,a.default)(this,"filters"),this.doingAction=(0,l.default)(this,"actions"),this.doingFilter=(0,l.default)(this,"filters"),this.didAction=(0,d.default)(this,"actions"),this.didFilter=(0,d.default)(this,"filters")};t.default=function(){return new c}},"./node_modules/@wordpress/hooks/build-module/createRemoveHook.js":function(e,t,r){"use strict";r.r(t);var n=r("./node_modules/@wordpress/hooks/build-module/validateNamespace.js"),o=r("./node_modules/@wordpress/hooks/build-module/validateHookName.js");t.default=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(i,s){var u=e[t];if((0,o.default)(i)&&(r||(0,n.default)(s))){if(!u[i])return 0;var a=0;if(r)a=u[i].handlers.length,u[i]={runs:u[i].runs,handlers:[]};else for(var l=u[i].handlers,d=function(e){l[e].namespace===s&&(l.splice(e,1),a++,u.__current.forEach((function(t){t.name===i&&t.currentIndex>=e&&t.currentIndex--})))},c=l.length-1;c>=0;c--)d(c);return"hookRemoved"!==i&&e.doAction("hookRemoved",i,s),a}}}},"./node_modules/@wordpress/hooks/build-module/createRunHook.js":function(e,t,r){"use strict";r.r(t);var n=r("./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");t.default=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(o){var i=e[t];i[o]||(i[o]={handlers:[],runs:0}),i[o].runs++;var s=i[o].handlers;"hookAdded"!==o&&i.all&&s.push.apply(s,(0,n.default)(i.all.handlers));for(var u=arguments.length,a=new Array(u>1?u-1:0),l=1;l1&&void 0!==arguments[1]?arguments[1]:"default";n.data[t]=s(s(s({},u),n.data[t]),e),n.data[t][""]=s(s({},u[""]),n.data[t][""])},c=function(e,t){d(e,t),l()},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return n.data[e]||d(void 0,e),n.dcnpgettext(e,t,r,o,i)},p=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default"},h=function(e,t,n){var o=f(n,t,e);return r?(o=r.applyFilters("i18n.gettext_with_context",o,e,t,n),r.applyFilters("i18n.gettext_with_context_"+p(n),o,e,t,n)):o};if(e&&c(e,t),r){var m=function(e){a.test(e)&&l()};r.addAction("hookAdded","core/i18n",m),r.addAction("hookRemoved","core/i18n",m)}return{getLocaleData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return n.data[e]},setLocaleData:c,resetLocaleData:function(e,t){n.data={},n.pluralForms={},c(e,t)},subscribe:function(e){return i.add(e),function(){return i.delete(e)}},__:function(e,t){var n=f(t,void 0,e);return r?(n=r.applyFilters("i18n.gettext",n,e,t),r.applyFilters("i18n.gettext_"+p(t),n,e,t)):n},_x:h,_n:function(e,t,n,o){var i=f(o,void 0,e,t,n);return r?(i=r.applyFilters("i18n.ngettext",i,e,t,n,o),r.applyFilters("i18n.ngettext_"+p(o),i,e,t,n,o)):i},_nx:function(e,t,n,o,i){var s=f(i,o,e,t,n);return r?(s=r.applyFilters("i18n.ngettext_with_context",s,e,t,n,o,i),r.applyFilters("i18n.ngettext_with_context_"+p(i),s,e,t,n,o,i)):s},isRTL:function(){return"rtl"===h("ltr","text direction")},hasTranslation:function(e,t,o){var i,s,u=t?t+""+e:e,a=!(null===(i=n.data)||void 0===i||null===(s=i[null!=o?o:"default"])||void 0===s||!s[u]);return r&&(a=r.applyFilters("i18n.has_translation",a,e,t,o),a=r.applyFilters("i18n.has_translation_"+p(o),a,e,t,o)),a}}}},"./node_modules/@wordpress/i18n/build-module/default-i18n.js":function(e,t,r){"use strict";r.r(t),r.d(t,{__:function(){return d},_n:function(){return f},_nx:function(){return p},_x:function(){return c},getLocaleData:function(){return s},hasTranslation:function(){return m},isRTL:function(){return h},resetLocaleData:function(){return a},setLocaleData:function(){return u},subscribe:function(){return l}});var n=r("./node_modules/@wordpress/i18n/build-module/create-i18n.js"),o=r("./node_modules/@wordpress/hooks/build-module/index.js"),i=(0,n.createI18n)(void 0,void 0,o.defaultHooks);t.default=i;var s=i.getLocaleData.bind(i),u=i.setLocaleData.bind(i),a=i.resetLocaleData.bind(i),l=i.subscribe.bind(i),d=i.__.bind(i),c=i._x.bind(i),f=i._n.bind(i),p=i._nx.bind(i),h=i.isRTL.bind(i),m=i.hasTranslation.bind(i)},"./node_modules/@wordpress/i18n/build-module/index.js":function(e,t,r){"use strict";r.r(t),r.d(t,{__:function(){return i.__},_n:function(){return i._n},_nx:function(){return i._nx},_x:function(){return i._x},createI18n:function(){return o.createI18n},defaultI18n:function(){return i.default},getLocaleData:function(){return i.getLocaleData},hasTranslation:function(){return i.hasTranslation},isRTL:function(){return i.isRTL},resetLocaleData:function(){return i.resetLocaleData},setLocaleData:function(){return i.setLocaleData},sprintf:function(){return n.sprintf},subscribe:function(){return i.subscribe}});var n=r("./node_modules/@wordpress/i18n/build-module/sprintf.js"),o=r("./node_modules/@wordpress/i18n/build-module/create-i18n.js"),i=r("./node_modules/@wordpress/i18n/build-module/default-i18n.js")},"./node_modules/@wordpress/i18n/build-module/sprintf.js":function(e,t,r){"use strict";r.r(t),r.d(t,{sprintf:function(){return a}});var n=r("./node_modules/memize/index.js"),o=r.n(n),i=r("./node_modules/sprintf-js/src/sprintf.js"),s=r.n(i),u=o()(console.error);function a(e){try{for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if(!t||!Object.keys(t).length)return e;var r=e,i=e.indexOf("?");return-1!==i&&(t=Object.assign((0,n.getQueryArgs)(e),t),r=r.substr(0,i)),r+"?"+(0,o.buildQueryString)(t)}},"./node_modules/@wordpress/url/build-module/build-query-string.js":function(e,t,r){"use strict";r.r(t),r.d(t,{buildQueryString:function(){return s}});var n=r("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");function o(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,u=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return u=e.done,e},e:function(e){a=!0,s=e},f:function(){try{u||null==r.return||r.return()}finally{if(a)throw s}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0),u.type){case"b":r=parseInt(r,10).toString(2);break;case"c":r=String.fromCharCode(parseInt(r,10));break;case"d":case"i":r=parseInt(r,10);break;case"j":r=JSON.stringify(r,null,u.width?parseInt(u.width):0);break;case"e":r=u.precision?parseFloat(r).toExponential(u.precision):parseFloat(r).toExponential();break;case"f":r=u.precision?parseFloat(r).toFixed(u.precision):parseFloat(r);break;case"g":r=u.precision?String(Number(r.toPrecision(u.precision))):parseFloat(r);break;case"o":r=(parseInt(r,10)>>>0).toString(8);break;case"s":r=String(r),r=u.precision?r.substring(0,u.precision):r;break;case"t":r=String(!!r),r=u.precision?r.substring(0,u.precision):r;break;case"T":r=Object.prototype.toString.call(r).slice(8,-1).toLowerCase(),r=u.precision?r.substring(0,u.precision):r;break;case"u":r=parseInt(r,10)>>>0;break;case"v":r=r.valueOf(),r=u.precision?r.substring(0,u.precision):r;break;case"x":r=(parseInt(r,10)>>>0).toString(16);break;case"X":r=(parseInt(r,10)>>>0).toString(16).toUpperCase()}o.json.test(u.type)?m+=r:(!o.number.test(u.type)||c&&!u.sign?f="":(f=c?"+":"-",r=r.toString().replace(o.sign,"")),l=u.pad_char?"0"===u.pad_char?"0":u.pad_char.charAt(1):" ",d=u.width-(f+r).length,a=u.width&&d>0?l.repeat(d):"",m+=u.align?f+r+a:"0"===l?f+a+r:a+f+r)}return m}(function(e){if(u[e])return u[e];var t,r=e,n=[],i=0;for(;r;){if(null!==(t=o.text.exec(r)))n.push(t[0]);else if(null!==(t=o.modulo.exec(r)))n.push("%");else{if(null===(t=o.placeholder.exec(r)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){i|=1;var s=[],a=t[2],l=[];if(null===(l=o.key.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(s.push(l[1]);""!==(a=a.substring(l[0].length));)if(null!==(l=o.key_access.exec(a)))s.push(l[1]);else{if(null===(l=o.index_access.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");s.push(l[1])}t[2]=s}else i|=2;if(3===i)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");n.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}r=r.substring(t[0].length)}return u[e]=n}(e),arguments)}function s(e,t){return i.apply(null,[e].concat(t||[]))}var u=Object.create(null);t.sprintf=i,t.vsprintf=s,"undefined"!=typeof window&&(window.sprintf=i,window.vsprintf=s,void 0===(n=function(){return{sprintf:i,vsprintf:s}}.call(t,r,t,e))||(e.exports=n))}()},"./node_modules/tannin/index.js":function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return i}});var n=r("./node_modules/@tannin/plural-forms/index.js"),o={contextDelimiter:"",onMissingKey:null};function i(e,t){var r;for(r in this.data=e,this.pluralForms={},this.options={},o)this.options[r]=void 0!==t&&r in t?t[r]:o[r]}i.prototype.getPluralForm=function(e,t){var r,o,i,s=this.pluralForms[e];return s||("function"!=typeof(i=(r=this.data[e][""])["Plural-Forms"]||r["plural-forms"]||r.plural_forms)&&(o=function(e){var t,r,n;for(t=e.split(";"),r=0;r{this.doComplete(e,this)}))},doBefore(e){this.beforeCallbacks.forEach((t=>t(e,this)))},doComplete(e){this.completeCallbacks.forEach((t=>t(e,this)))},onBefore(e){this.beforeCallbacks.push(e)},onComplete(e){this.completeCallbacks.push(e)}};t.default=o},"./src/js/components/asset-preview.js":function(e,t,r){"use strict";r.r(t);var n=r("./node_modules/@wordpress/i18n/build-module/index.js");const o={preview:null,wrap:null,apply:null,url:null,defaultWidth:null,defaultHeight:null,maxSize:null,init(){return this},createPreview(e=400,t=300){return this.maxSize=e>t?e:t,this.defaultWidth=e,this.defaultHeight=t,this.wrap=document.createElement("div"),this.apply=document.createElement("button"),this.preview=document.createElement("img"),this.apply.type="button",this.apply.classList.add("button-primary"),this.apply.innerText=(0,n.__)("Preview","cloudinary"),this.preview.style.transition="opacity 1s",this.preview.style.opacity=1,this.preview.style.maxWidth="100%",this.preview.style.maxHeight="100%",this.reset(),this.wrap.style.minHeight="200px",this.wrap.style.width=this.maxSize+"px",this.wrap.style.position="relative",this.wrap.style.display="flex",this.wrap.style.alignItems="center",this.wrap.style.justifyContent="center",this.apply.style.position="absolute",this.apply.style.display="none",this.wrap.appendChild(this.preview),this.wrap.appendChild(this.apply),this.preview.addEventListener("load",(e=>{this.preview.style.opacity=1,this.wrap.style.width="",this.wrap.style.height="",this.defaultHeight=this.preview.height,this.defaultWidth=this.preview.width,this.defaultHeight>this.defaultWidth?this.wrap.style.height=this.maxSize+"px":this.wrap.style.width=this.maxSize+"px"})),this.preview.addEventListener("error",(e=>{this.preview.src=this.getNoURL("⚠")})),this.apply.addEventListener("click",(()=>{this.apply.style.display="none",this.reset(),this.preview.style.opacity=.6,this.preview.src=this.url})),this.wrap},reset(){this.preview.src=this.getNoURL()},setSrc(e,t=!1){this.preview.style.opacity=.6,t?(this.apply.style.display="none",this.preview.src=e):(this.apply.style.display="block",this.url=e)},getNoURL(e="︎"){const t=this.defaultWidth/2-23,r=this.defaultHeight/2+25;return`data:image/svg+xml;utf8,${e}`}};t.default=o},"./node_modules/@babel/runtime/helpers/regeneratorRuntime.js":function(e,t,r){var n=r("./node_modules/@babel/runtime/helpers/typeof.js").default;function o(){"use strict";e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},r=Object.prototype,i=r.hasOwnProperty,s=Object.defineProperty||function(e,t,r){e[t]=r.value},u="function"==typeof Symbol?Symbol:{},a=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",d=u.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof m?t:m,i=Object.create(o.prototype),u=new S(n||[]);return s(i,"_invoke",{value:x(e,r,u)}),i}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h={};function m(){}function b(){}function y(){}var v={};c(v,a,(function(){return this}));var g=Object.getPrototypeOf,w=g&&g(g(E([])));w&&w!==r&&i.call(w,a)&&(v=w);var j=y.prototype=m.prototype=Object.create(v);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(o,s,u,a){var l=p(e[o],e,s);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==n(c)&&i.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,u,a)}),(function(e){r("throw",e,u,a)})):t.resolve(c).then((function(e){d.value=e,u(d)}),(function(e){return r("throw",e,u,a)}))}a(l.arg)}var o;s(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function x(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var u=k(s,r);if(u){if(u===h)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var a=p(e,t,r);if("normal"===a.type){if(n=r.done?"completed":"suspendedYield",a.arg===h)continue;return{value:a.arg,done:r.done}}"throw"===a.type&&(n="completed",r.method="throw",r.arg=a.arg)}}}function k(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method))return h;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=p(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,h;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function E(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r=0;--n){var o=this.tryEntries[n],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var u=i.call(o,"catchLoc"),a=i.call(o,"finallyLoc");if(u&&a){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),A(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:E(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/typeof.js":function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/regenerator/index.js":function(e,t,r){var n=r("./node_modules/@babel/runtime/helpers/regeneratorRuntime.js")();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},"./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}},"./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js":function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}r.r(t),r.d(t,{default:function(){return n}})},"./node_modules/@babel/runtime/helpers/esm/slicedToArray.js":function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return u}});var n=r("./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js"),o=r("./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js"),i=r("./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js"),s=r("./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js");function u(e,t){return(0,n.default)(e)||(0,o.default)(e,t)||(0,i.default)(e,t)||(0,s.default)()}},"./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js":function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return u}});var n=r("./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js"),o=r("./node_modules/@babel/runtime/helpers/esm/iterableToArray.js"),i=r("./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js"),s=r("./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js");function u(e){return(0,n.default)(e)||(0,o.default)(e)||(0,i.default)(e)||(0,s.default)()}},"./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js":function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return o}});var n=r("./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");function o(e,t){if(e){if("string"==typeof e)return(0,n.default)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,n.default)(e,t):void 0}}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};!function(){"use strict";r.r(n);r("./node_modules/@wordpress/i18n/build-module/index.js");var e=r("./src/js/components/asset-preview.js"),t=r("./src/js/components/asset-editor.js");const o={wrap:document.getElementById("cld-asset-edit"),preview:null,id:null,editor:null,base:null,publicId:null,size:null,transformationsInput:document.getElementById("cld-asset-edit-transformations"),saveButton:document.getElementById("cld-asset-edit-save"),currentURL:null,init(){const e=JSON.parse(this.wrap.dataset.item);this.id=e.ID,this.base=e.base+e.size+"/",this.publicId=e.file,this.transformationsInput.value=e.transformations?e.transformations:"",this.initPreview(),this.initEditor()},initPreview(){this.preview=e.default.init(),this.wrap.appendChild(this.preview.createPreview(900,675)),this.preview.setSrc(this.base+this.transformationsInput.value+this.publicId,!0),this.transformationsInput.addEventListener("input",(e=>{this.preview.setSrc(this.base+this.transformationsInput.value+this.publicId)})),this.transformationsInput.addEventListener("keydown",(e=>{"Enter"===e.code&&(e.preventDefault(),this.saveButton.dispatchEvent(new Event("click")))}))},initEditor(){this.editor=t.default.init(),this.editor.onBefore((()=>this.preview.reset())),this.editor.onComplete((e=>{this.transformationsInput.value=e.transformations,this.preview.setSrc(this.base+e.transformations+this.publicId,!0),e.note&&alert(e.note)})),this.saveButton.addEventListener("click",(()=>{this.editor.save({ID:this.id,transformations:this.transformationsInput.value})}))}};window.addEventListener("load",(()=>o.init())),n.default=o}()}(); +//# sourceMappingURL=asset-edit.js.map \ No newline at end of file diff --git a/js/asset-manager.js b/js/asset-manager.js index fa0f7fcac..8edda8dff 100644 --- a/js/asset-manager.js +++ b/js/asset-manager.js @@ -1 +1,2 @@ -!function(){var e={951:function(e,t){var n,r,i,o;o=function(){var e="BKMGTPEZY".split("");function t(e,t){return e&&e.toLowerCase()===t.toLowerCase()}return function(n,r){return n="number"==typeof n?n:0,(r=r||{}).fixed="number"==typeof r.fixed?r.fixed:2,r.spacer="string"==typeof r.spacer?r.spacer:" ",r.calculate=function(e){var i=t(e,"si")?["k","B"]:["K","iB"],o=t(e,"si")?1e3:1024,a=Math.log(n)/Math.log(o)|0,c=n/Math.pow(o,a),s=c.toFixed(r.fixed);return a-1<3&&!t(e,"si")&&t(e,"jedec")&&(i[1]="B"),{suffix:a?(i[0]+"MGTPEZY")[a-1]+i[1]:1==(0|s)?"Byte":"Bytes",magnitude:a,result:c,fixed:s,bits:{result:c/8,fixed:(c/8).toFixed(r.fixed)}}},r.to=function(r,i){var o=t(i,"si")?1e3:1024,a=e.indexOf("string"==typeof r?r[0].toUpperCase():"B"),c=n;if(-1===a||0===a)return c.toFixed(2);for(;a>0;a--)c/=o;return c.toFixed(2)},r.human=function(e){var t=r.calculate(e);return t.fixed+r.spacer+t.suffix},r}},e.exports?e.exports=o():(r=[],void 0===(i="function"==typeof(n=o)?n.apply(t,r):n)||(e.exports=i))},616:function(e){e.exports=function(e,t){var n,r,i=0;function o(){var o,a,c=n,s=arguments.length;e:for(;c;){if(c.args.length===arguments.length){for(a=0;a=0),c.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,c.width?parseInt(c.width):0);break;case"e":n=c.precision?parseFloat(n).toExponential(c.precision):parseFloat(n).toExponential();break;case"f":n=c.precision?parseFloat(n).toFixed(c.precision):parseFloat(n);break;case"g":n=c.precision?String(Number(n.toPrecision(c.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=c.precision?n.substring(0,c.precision):n;break;case"t":n=String(!!n),n=c.precision?n.substring(0,c.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=c.precision?n.substring(0,c.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=c.precision?n.substring(0,c.precision):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase()}i.json.test(c.type)?g+=n:(!i.number.test(c.type)||p&&!c.sign?d="":(d=p?"+":"-",n=n.toString().replace(i.sign,"")),l=c.pad_char?"0"===c.pad_char?"0":c.pad_char.charAt(1):" ",u=c.width-(d+n).length,s=c.width&&u>0?l.repeat(u):"",g+=c.align?d+n+s:"0"===l?d+s+n:s+d+n)}return g}(function(e){if(c[e])return c[e];var t,n=e,r=[],o=0;for(;n;){if(null!==(t=i.text.exec(n)))r.push(t[0]);else if(null!==(t=i.modulo.exec(n)))r.push("%");else{if(null===(t=i.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){o|=1;var a=[],s=t[2],l=[];if(null===(l=i.key.exec(s)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(a.push(l[1]);""!==(s=s.substring(l[0].length));)if(null!==(l=i.key_access.exec(s)))a.push(l[1]);else{if(null===(l=i.index_access.exec(s)))throw new SyntaxError("[sprintf] failed to parse named argument key");a.push(l[1])}t[2]=a}else o|=2;if(3===o)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}n=n.substring(t[0].length)}return c[e]=r}(e),arguments)}function a(e,t){return o.apply(null,[e].concat(t||[]))}var c=Object.create(null);o,a,"undefined"!=typeof window&&(window.sprintf=o,window.vsprintf=a,void 0===(r=function(){return{sprintf:o,vsprintf:a}}.call(t,n,t,e))||(e.exports=r))}()},633:function(e,t,n){var r=n(738).default;function i(){"use strict";e.exports=i=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",u=c.toStringTag||"@@toStringTag";function p(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},"")}catch(e){p=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,o=Object.create(i.prototype),c=new S(r||[]);return a(o,"_invoke",{value:j(e,n,c)}),o}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var f={};function g(){}function y(){}function v(){}var m={};p(m,s,(function(){return this}));var b=Object.getPrototypeOf,_=b&&b(b(L([])));_&&_!==n&&o.call(_,s)&&(m=_);var w=v.prototype=g.prototype=Object.create(m);function O(e){["next","throw","return"].forEach((function(t){p(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(i,a,c,s){var l=h(e[i],e,a);if("throw"!==l.type){var u=l.arg,p=u.value;return p&&"object"==r(p)&&o.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,c,s)}),(function(e){n("throw",e,c,s)})):t.resolve(p).then((function(e){u.value=e,c(u)}),(function(e){return n("throw",e,c,s)}))}s(l.arg)}var i;a(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}})}function j(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return C()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var c=P(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=h(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function P(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,P(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=h(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,f;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(c&&s){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},738:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},756:function(e,t,n){var r=n(633)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var r,i,o,a,c=n(616),s=n.n(c);n(604),s()(console.error);r={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},i=["(","?"],o={")":["("],":":["?","?:"]},a=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var l={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function u(e){var t=function(e){for(var t,n,c,s,l=[],u=[];t=e.match(a);){for(n=t[0],(c=e.substr(0,t.index).trim())&&l.push(c);s=u.pop();){if(o[n]){if(o[n][0]===s){n=o[n][1]||n;break}}else if(i.indexOf(s)>=0||r[s]3&&void 0!==arguments[3]?arguments[3]:10,a=e[t];if(m(n)&&v(r))if("function"==typeof i)if("number"==typeof o){var c={callback:i,priority:o,namespace:r};if(a[n]){var s,l=a[n].handlers;for(s=l.length;s>0&&!(o>=l[s-1].priority);s--);s===l.length?l[s]=c:l.splice(s,0,c),a.__current.forEach((function(e){e.name===n&&e.currentIndex>=s&&e.currentIndex++}))}else a[n]={handlers:[c],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,r,i,o)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}};var _=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r,i){var o=e[t];if(m(r)&&(n||v(i))){if(!o[r])return 0;var a=0;if(n)a=o[r].handlers.length,o[r]={runs:o[r].runs,handlers:[]};else for(var c=o[r].handlers,s=function(e){c[e].namespace===i&&(c.splice(e,1),a++,o.__current.forEach((function(t){t.name===r&&t.currentIndex>=e&&t.currentIndex--})))},l=c.length-1;l>=0;l--)s(l);return"hookRemoved"!==r&&e.doAction("hookRemoved",r,i),a}}};var w=function(e,t){return function(n,r){var i=e[t];return void 0!==r?n in i&&i[n].handlers.some((function(e){return e.namespace===r})):n in i}};var O=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r){var i=e[t];i[r]||(i[r]={handlers:[],runs:0}),i[r].runs++;var o=i[r].handlers;for(var a=arguments.length,c=new Array(a>1?a-1:0),s=1;s1&&void 0!==arguments[1]?arguments[1]:"default";r.data[t]=f(f(f({},g),r.data[t]),e),r.data[t][""]=f(f({},g[""]),r.data[t][""])},c=function(e,t){a(e,t),o()},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;return r.data[e]||a(void 0,e),r.dcnpgettext(e,t,n,i,o)},l=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default"},u=function(e,t,r){var i=s(r,t,e);return n?(i=n.applyFilters("i18n.gettext_with_context",i,e,t,r),n.applyFilters("i18n.gettext_with_context_"+l(r),i,e,t,r)):i};if(e&&c(e,t),n){var p=function(e){y.test(e)&&o()};n.addAction("hookAdded","core/i18n",p),n.addAction("hookRemoved","core/i18n",p)}return{getLocaleData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return r.data[e]},setLocaleData:c,resetLocaleData:function(e,t){r.data={},r.pluralForms={},c(e,t)},subscribe:function(e){return i.add(e),function(){return i.delete(e)}},__:function(e,t){var r=s(t,void 0,e);return n?(r=n.applyFilters("i18n.gettext",r,e,t),n.applyFilters("i18n.gettext_"+l(t),r,e,t)):r},_x:u,_n:function(e,t,r,i){var o=s(i,void 0,e,t,r);return n?(o=n.applyFilters("i18n.ngettext",o,e,t,r,i),n.applyFilters("i18n.ngettext_"+l(i),o,e,t,r,i)):o},_nx:function(e,t,r,i,o){var a=s(o,i,e,t,r);return n?(a=n.applyFilters("i18n.ngettext_with_context",a,e,t,r,i,o),n.applyFilters("i18n.ngettext_with_context_"+l(o),a,e,t,r,i,o)):a},isRTL:function(){return"rtl"===u("ltr","text direction")},hasTranslation:function(e,t,i){var o,a,c=t?t+""+e:e,s=!(null===(o=r.data)||void 0===o||null===(a=o[null!=i?i:"default"])||void 0===a||!a[c]);return n&&(s=n.applyFilters("i18n.has_translation",s,e,t,i),s=n.applyFilters("i18n.has_translation_"+l(i),s,e,t,i)),s}}}(void 0,void 0,k)),L=(S.getLocaleData.bind(S),S.setLocaleData.bind(S),S.resetLocaleData.bind(S),S.subscribe.bind(S),S.__.bind(S));S._x.bind(S),S._n.bind(S),S._nx.bind(S),S.isRTL.bind(S),S.hasTranslation.bind(S);function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(t){for(var n=1;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function Y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if(!t||!Object.keys(t).length)return e;var n=e,r=e.indexOf("?");return-1!==r&&(t=Object.assign(Z(e),t),n=n.substr(0,r)),n+"?"+function(e){for(var t,n="",r=Object.entries(e);t=r.shift();){var i=$(t,2),o=i[0],a=i[1];if(Array.isArray(a)||a&&a.constructor===Object){var c,s=q(Object.entries(a).reverse());try{for(s.s();!(c=s.n()).done;){var l=$(c.value,2),u=l[0],p=l[1];r.unshift(["".concat(o,"[").concat(u,"]"),p])}}catch(e){s.e(e)}finally{s.f()}}else void 0!==a&&(null===a&&(a=""),n+="&"+[o,a].map(encodeURIComponent).join("="))}return n.substr(1)}(t)}function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function V(t){for(var n=1;n]+)>; rel="next"/);return t?{next:t[1]}:{}}(e.headers.get("link")).next},ne=function(e){var t=!!e.path&&-1!==e.path.indexOf("per_page=-1"),n=!!e.url&&-1!==e.url.indexOf("per_page=-1");return t||n},re=function(){var e,n=(e=J().mark((function e(n,r){var i,o,a,c,s,l;return J().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!1!==n.parse){e.next=2;break}return e.abrupt("return",r(n));case 2:if(ne(n)){e.next=4;break}return e.abrupt("return",r(n));case 4:return e.next=6,Oe(V(V({},(p={per_page:100},d=void 0,h=void 0,d=(u=n).path,h=u.url,V(V({},t(u,["path","url"])),{},{url:h&&W(h,p),path:d&&W(d,p)}))),{},{parse:!1}));case 6:return i=e.sent,e.next=9,ee(i);case 9:if(o=e.sent,Array.isArray(o)){e.next=12;break}return e.abrupt("return",o);case 12:if(a=te(i)){e.next=15;break}return e.abrupt("return",o);case 15:c=[].concat(o);case 16:if(!a){e.next=27;break}return e.next=19,Oe(V(V({},n),{},{path:void 0,url:a,parse:!1}));case 19:return s=e.sent,e.next=22,ee(s);case 22:l=e.sent,c=c.concat(l),a=te(s),e.next=16;break;case 27:return e.abrupt("return",c);case 28:case"end":return e.stop()}var u,p,d,h}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){U(o,r,i,a,c,"next",e)}function c(e){U(o,r,i,a,c,"throw",e)}a(void 0)}))});return function(e,t){return n.apply(this,arguments)}}(),ie=re;function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ae(t){for(var n=1;n1&&void 0!==arguments[1])||arguments[1];return Promise.resolve(function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?e:204===e.status?null:e.json?e.json():Promise.reject(e)}(e,t)).catch((function(e){return ue(e,t)}))};function ue(e){if(!(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]))throw e;return function(e){var t={code:"invalid_json",message:L("The response is not a valid JSON response.")};if(!e||!e.json)throw t;return e.json().catch((function(){throw t}))}(e).then((function(e){var t={code:"unknown_error",message:L("An unknown error occurred.")};throw e||t}))}function pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function de(t){for(var n=1;n=500&&t.status<600&&n?r(n).catch((function(){return!1!==e.parse?Promise.reject({code:"post_process",message:L("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(t)})):ue(t,e.parse)})).then((function(t){return le(t,e.parse)}))};function fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ge(t){for(var n=1;n=200&&e.status<300)return e;throw e},_e=function(e){var n=e.url,r=e.path,i=e.data,o=e.parse,a=void 0===o||o,c=t(e,["url","path","data","parse"]),s=e.body,l=e.headers;return l=ge(ge({},ye),l),i&&(s=JSON.stringify(i),l["Content-Type"]="application/json"),window.fetch(n||r||window.location.href,ge(ge(ge({},ve),c),{},{body:s,headers:l})).then((function(e){return Promise.resolve(e).then(be).catch((function(e){return ue(e,a)})).then((function(e){return le(e,a)}))}),(function(){throw{code:"fetch_error",message:L("You are probably offline.")}}))};function we(e){return me.reduceRight((function(e,t){return function(n){return t(n,e)}}),_e)(e).catch((function(t){return"rest_cookie_invalid_nonce"!==t.code?Promise.reject(t):window.fetch(we.nonceEndpoint).then(be).then((function(e){return e.text()})).then((function(t){return we.nonceMiddleware.nonce=t,we(e)}))}))}we.use=function(e){me.unshift(e)},we.setFetchHandler=function(e){_e=e},we.createNonceMiddleware=T,we.createPreloadingMiddleware=B,we.createRootURLMiddleware=z,we.fetchAllMiddleware=ie,we.mediaUploadMiddleware=he;var Oe=we,xe=n(951),je=n.n(xe);var Pe={controlled:null,bind(e){this.controlled=e,this.controlled.forEach((e=>{this._main(e)})),this._init()},_init(){this.controlled.forEach((e=>{this._checkUp(e)}))},_main(e){const t=JSON.parse(e.dataset.main);e.dataset.size&&(e.filesize=parseInt(e.dataset.size,10)),e.mains=t.map((t=>{const n=document.getElementById(t),r=document.getElementById(t+"_size_wrapper");return r&&(n.filesize=0,n.sizespan=r),this._addChild(n,e),n})),this._bindEvents(e),e.mains.forEach((e=>{this._bindEvents(e)}))},_bindEvents(e){e.eventBound||(e.addEventListener("click",(t=>{const n=t.target;n.elements&&(this._checkDown(n),this._evaluateSize(n)),n.mains&&this._checkUp(e)})),e.eventBound=!0)},_addChild(e,t){const n=e.elements?e.elements:[];-1===n.indexOf(t)&&(n.push(t),e.elements=n)},_removeChild(e,t){const n=e.elements.indexOf(t);-1{t.checked!==e.checked&&(t.checked=e.checked,t.disabled&&(t.checked=!1),t.dispatchEvent(new Event("change")))})),e.elements.forEach((t=>{this._checkDown(t),t.elements||this._checkUp(t,e)})))},_checkUp(e,t){e.mains&&[...e.mains].forEach((e=>{e!==t&&this._evaluateCheckStatus(e),this._checkUp(e),this._evaluateSize(e)}))},_evaluateCheckStatus(e){let t=0,n=e.classList.contains("partial");n&&(e.classList.remove("partial"),n=!1),e.elements.forEach((r=>{null!==r.parentNode?(t+=r.checked,r.classList.contains("partial")&&(n=!0)):this._removeChild(e,r)}));let r="some";t===e.elements.length?r="on":0===t?r="off":n=!0,n&&e.classList.add("partial");const i="off"!==r;e.checked===i&&e.value===r||(e.value=r,e.checked=i,e.dispatchEvent(new Event("change")))},_evaluateSize(e){if(e.sizespan&&e.elements){e.filesize=0,e.elements.forEach((t=>{t.checked&&(e.filesize+=t.filesize)}));let t=null;0this.sendStates()),2e3),localStorage.setItem(this.key,JSON.stringify(this.data)))},set(e,t){this.data[e]&&this.data[e]===t||(this.data[e]=t,this._update())},get(e){let t=null;return this.data[e]&&(t=this.data[e]),t},sendStates(){fetch(cldData.stateURL,{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":cldData.stateNonce},body:JSON.stringify(this.data)}).then((e=>e.json())).then((e=>{e.success&&(this.previous=JSON.stringify(e.state),localStorage.removeItem(this.key))}))}};const ke={cachePoints:{},spinners:{},states:null,init(e,t){if(this.states=t,"undefined"!=typeof CLDASSETS){Oe.use(Oe.createNonceMiddleware(CLDASSETS.nonce));e.querySelectorAll("[data-cache-point]").forEach((e=>this._bind(e)));const t=document.getElementById("connect.cache.cld_purge_all");t&&(t.disabled="disabled",t.style.width="100px",t.style.transition="width 0.5s",t.addEventListener("click",(()=>{t.dataset.purging||confirm(wp.i18n.__("Purge entire cache?","cloudinary"))&&this._purgeAll(t,!1)})),this._watchPurge(t),setInterval((()=>{this._watchPurge(t)}),5e3))}},getCachePoint(e){return this.cachePoints["_"+e]?this.cachePoints["_"+e]:null},setCachePoint(e,t){const n=document.getElementById(t.dataset.slug),r=document.createElement("div"),i=this._getRow(),o=document.createElement("td");o.colSpan=2,o.className="cld-loading",i.appendChild(o);const a=document.getElementById(t.dataset.slug+"_search"),c=document.getElementById(t.dataset.slug+"_reload"),s=document.getElementById(t.dataset.browser),l=document.getElementById(t.dataset.apply);l.style.float="right",l.style.marginLeft="6px",s.addEventListener("change",(t=>{this._handleManager(e)})),n.addEventListener("change",(t=>{this._handleManager(e)})),window.addEventListener("CacheToggle",(e=>{e.detail.cachePoint===t&&this._cacheChange(t,e.detail)})),l.addEventListener("click",(e=>{this._applyChanges(t)})),c.addEventListener("click",(t=>{this._load(e)})),a.addEventListener("keydown",(t=>{13===t.which&&(t.preventDefault(),t.stopPropagation(),this._load(e))})),r.className="cld-pagenav",l.cacheChanges={disable:[],enable:[],delete:[]},t.main=n,t.search=a,t.controller=s,t.viewer=t.parentNode.parentNode,t.loader=i,t.table=t.parentNode,t.apply=l,t.paginate=r,t.currentPage=1,t.viewer.appendChild(r),this.cachePoints["_"+e]=t},close(e){e.classList.add("closed")},open(e){e.classList.remove("closed")},isOpen(e){const t=this.getCachePoint(e);let n=!1;return t&&(n=t.controller.checked&&t.main.checked),n},_bind(e){const t=e.dataset.cachePoint;this.setCachePoint(t,e),this._handleManager(t)},_handleManager(e){const t=this.getCachePoint(e);t&&(this.isOpen(e)?(this.open(t.viewer),this.states.set(t.viewer.id,"open"),t.loaded||this._load(e)):(this.close(t.viewer),t.controller.checked=!1,this.states.set(t.viewer.id,"close")))},_load(e){const t=this.getCachePoint(e);let n="100px";t.clientHeight&&(n=t.clientHeight-16+"px"),this._clearChildren(t),t.appendChild(t.loader),this.open(t.loader),t.loader.firstChild.style.height=n,Oe({path:CLDASSETS.fetch_url,data:{ID:e,page:t.currentPage,search:t.search.value},method:"POST"}).then((e=>{t.removeChild(t.loader),this._buildList(t,e.items),this._buildNav(t,e);const n=t.querySelectorAll("[data-main]");Pe.bind(n),t.loaded=!0}))},_cacheChange(e,t){const n=t.checked?t.states.on:t.states.off,r=t.checked?t.states.off:t.states.on;this._removeFromList(e,t.item.ID,r)||this._addToList(e,t.item.ID,n),this._evaluateApply(e)},_evaluateApply(e){e.apply.disabled="disabled";const t=e.apply.cacheChanges;let n=!1;for(const e in t)t[e].length&&(n=!0);n&&(e.apply.disabled="")},_applyChanges(e){const t=e.apply.cacheChanges;e.apply.disabled="disabled";for(const n in t)t[n].length&&this._set_state(e,n,t[n])},_watchPurge(e){e.dataset.purging||e.dataset.updating||(e.dataset.updating=!0,Oe({path:CLDASSETS.purge_all,data:{count:!0},method:"POST"}).then((t=>{e.dataset.updating="",0t.percent?(e.disabled="",this._purgeAll(e,!0)):0{e.innerText=L("Purging cache","cloudinary")+" "+Math.round(t.percent,2)+"%",e.style.backgroundImage="linear-gradient(90deg, #2a0 "+t.percent+"%, #787878 "+t.percent+"%)",100>t.percent?this._purgeAction(e,!0,n):n?n():(e.innerText=wp.i18n.__("Purge complete.","cloudinary"),setTimeout((()=>{e.dataset.purging="",e.style.backgroundImage="",e.style.minHeight="",e.style.border="",e.style.width="100px",e.disabled="disabled",e.innerText=e.dataset.title}),2e3))}))},_set_state(e,t,n){this._showSpinners(n),Oe({path:CLDASSETS.update_url,data:{state:t,ids:n},method:"POST"}).then((n=>{this._hideSpinners(n),n.forEach((n=>{this._removeFromList(e,n,t),this._evaluateApply(e),e.apply.disabled="disabled"})),"delete"===t&&this._load(e.dataset.cachePoint)}))},_showSpinners(e){e.forEach((e=>{this.spinners["spinner_"+e].style.visibility="visible"}))},_hideSpinners(e){e.forEach((e=>{this.spinners["spinner_"+e].style.visibility="hidden"}))},_removeFromList(e,t,n){const r=this._getListIndex(e,t,n);let i=!1;return-1e.apply.cacheChanges[n].indexOf(t),_noCache(e){const t=this._getNote(wp.i18n.__("No files cached.","cloudinary"));e.viewer.appendChild(t),this.close(e.table)},_clearChildren(e){for(;e.children.length;){const t=e.lastChild;t.children.length&&this._clearChildren(t),e.removeChild(t)}},_buildList(e,t){t.forEach((t=>{if(t.note)return void e.appendChild(this._getNote(t.note));const n=this._getRow(t.ID),r=this._getStateSwitch(e,t,{on:"enable",off:"disable"}),i=this._getFile(e,t,n),o=this._getEdit(t,e);n.appendChild(i),n.appendChild(o),n.appendChild(r),e.appendChild(n)}))},_buildNav(e,t){e.paginate.innerHTML="";const n=document.createElement("button"),r=document.createElement("button");n.type="button",n.innerHTML="‹",n.className="button cld-pagenav-prev",1===t.current_page?n.disabled=!0:n.addEventListener("click",(n=>{e.currentPage=t.current_page-1,this._load(e.dataset.cachePoint)})),r.type="button",r.innerHTML="›",r.className="button cld-pagenav-next",t.current_page===t.total_pages||0===t.total_pages?r.disabled=!0:r.addEventListener("click",(n=>{e.currentPage=t.current_page+1,this._load(e.dataset.cachePoint)}));const i=document.createElement("span");if(i.innerText=t.nav_text,i.className="cld-pagenav-text",e.paginate.appendChild(n),e.paginate.appendChild(i),e.paginate.appendChild(r),e.paginate.appendChild(e.apply),e.apply.classList.remove("closed"),e.apply.disabled="disabled",t.items.length){const t=document.createElement("button");t.type="button",t.className="button",t.innerText=wp.i18n.__("Purge cache point","cloudinary"),t.style.float="right",e.paginate.appendChild(t),t.addEventListener("click",(n=>{if(confirm(wp.i18n.__("Purge entire cache point?","cloudinary"))){t.dataset.parent=e.dataset.cachePoint;const n=this;t.classList.add("button-primary"),this._purgeAll(t,!1,(function(){n._load(e.dataset.cachePoint)}))}}))}},_getNote(e){const t=this._getRow(),n=document.createElement("td");return n.colSpan=2,n.innerText=e,t.appendChild(n),t},_getRow(e){const t=document.createElement("tr");return e&&(t.id="row_"+e),t},_getEdit(e){const t=document.createElement("td"),n=document.createElement("a");return n.href=e.edit_url,e.data.transformations?n.innerText=e.data.transformations:n.innerText=L("Add transformations","cloudinary"),t.appendChild(n),t},_getFile(e,t){const n=document.createElement("td"),r=document.createElement("label"),i=this._getDeleter(e,n,t);r.innerText=t.short_url,r.htmlFor=t.key,n.appendChild(i),n.appendChild(r);const o=document.createElement("span"),a="spinner_"+t.ID;return o.className="spinner",o.id=a,n.appendChild(o),this.spinners[a]=o,n},_getDeleter(e,t,n){const r=document.createElement("input"),i=[e.dataset.slug+"_deleter"],o=this._getListIndex(e,n.ID,"delete");return r.type="checkbox",r.value=n.ID,r.id=n.key,r.dataset.main=JSON.stringify(i),-1{t.style.opacity=1,t.style.textDecoration="",r.checked&&(t.style.opacity=.8,t.style.textDecoration="line-through");const o=new CustomEvent("CacheToggle",{detail:{checked:r.checked,states:{on:"delete",off:n.active?"enable":"disable"},item:n,cachePoint:e}});window.dispatchEvent(o)})),r},_getStateSwitch(e,t,n){const r=document.createElement("td"),i=document.createElement("label"),o=document.createElement("input"),a=document.createElement("span"),c=(e.dataset.slug,this._getListIndex(e,t.ID,"disable"));return r.style.textAlign="right",i.className="cld-input-on-off-control mini",o.type="checkbox",o.value=t.ID,o.checked=!(-1{const i=new CustomEvent("CacheToggle",{detail:{checked:o.checked,states:n,item:t,cachePoint:e}});window.dispatchEvent(i)})),r.appendChild(i),r}},Se=document.getElementById("cloudinary-settings-page");Se&&(Ee.init(),window.addEventListener("load",(()=>ke.init(Se,Ee))))}()}(); \ No newline at end of file +!function(){var e={"./node_modules/@tannin/compile/index.js":function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return i}});var n=r("./node_modules/@tannin/postfix/index.js"),o=r("./node_modules/@tannin/evaluate/index.js");function i(e){var t=(0,n.default)(e);return function(e){return(0,o.default)(t,e)}}},"./node_modules/@tannin/evaluate/index.js":function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return o}});var n={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,r){if(e)throw t;return r}};function o(e,t){var r,o,i,s,a,u,l=[];for(r=0;r=0||n[u]":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},o=["(","?"],i={")":["("],":":["?","?:"]},s=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/},"./node_modules/@wordpress/api-fetch/build-module/index.js":function(e,t,r){"use strict";r.r(t);var n=r("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=r("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),i=r("./node_modules/@wordpress/i18n/build-module/index.js"),s=r("./node_modules/@wordpress/api-fetch/build-module/middlewares/nonce.js"),a=r("./node_modules/@wordpress/api-fetch/build-module/middlewares/root-url.js"),u=r("./node_modules/@wordpress/api-fetch/build-module/middlewares/preloading.js"),l=r("./node_modules/@wordpress/api-fetch/build-module/middlewares/fetch-all-middleware.js"),d=r("./node_modules/@wordpress/api-fetch/build-module/middlewares/namespace-endpoint.js"),c=r("./node_modules/@wordpress/api-fetch/build-module/middlewares/http-v1.js"),p=r("./node_modules/@wordpress/api-fetch/build-module/middlewares/user-locale.js"),f=r("./node_modules/@wordpress/api-fetch/build-module/middlewares/media-upload.js"),h=r("./node_modules/@wordpress/api-fetch/build-module/utils/response.js");function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t=200&&e.status<300)return e;throw e},w=function(e){var t=e.url,r=e.path,n=e.data,s=e.parse,a=void 0===s||s,u=(0,o.default)(e,["url","path","data","parse"]),l=e.body,d=e.headers;return d=b(b({},y),d),n&&(l=JSON.stringify(n),d["Content-Type"]="application/json"),window.fetch(t||r||window.location.href,b(b(b({},g),u),{},{body:l,headers:d})).then((function(e){return Promise.resolve(e).then(_).catch((function(e){return(0,h.parseAndThrowError)(e,a)})).then((function(e){return(0,h.parseResponseAndNormalizeError)(e,a)}))}),(function(){throw{code:"fetch_error",message:(0,i.__)("You are probably offline.")}}))};function j(e){return v.reduceRight((function(e,t){return function(r){return t(r,e)}}),w)(e).catch((function(t){return"rest_cookie_invalid_nonce"!==t.code?Promise.reject(t):window.fetch(j.nonceEndpoint).then(_).then((function(e){return e.text()})).then((function(t){return j.nonceMiddleware.nonce=t,j(e)}))}))}j.use=function(e){v.unshift(e)},j.setFetchHandler=function(e){w=e},j.createNonceMiddleware=s.default,j.createPreloadingMiddleware=u.default,j.createRootURLMiddleware=a.default,j.fetchAllMiddleware=l.default,j.mediaUploadMiddleware=f.default,t.default=j},"./node_modules/@wordpress/api-fetch/build-module/middlewares/fetch-all-middleware.js":function(e,t,r){"use strict";r.r(t);var n=r("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),o=r("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),i=r("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),s=r("./node_modules/@babel/runtime/regenerator/index.js"),a=r.n(s),u=r("./node_modules/@wordpress/url/build-module/add-query-args.js"),l=r("./node_modules/@wordpress/api-fetch/build-module/index.js");function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t]+)>; rel="next"/);return t?{next:t[1]}:{}}(e.headers.get("link")).next},h=function(e){var t=!!e.path&&-1!==e.path.indexOf("per_page=-1"),r=!!e.url&&-1!==e.url.indexOf("per_page=-1");return t||r},m=function(){var e=(0,n.default)(a().mark((function e(t,r){var n,o,s,d,m,b;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!1!==t.parse){e.next=2;break}return e.abrupt("return",r(t));case 2:if(h(t)){e.next=4;break}return e.abrupt("return",r(t));case 4:return e.next=6,(0,l.default)(c(c({},(y={per_page:100},g=void 0,v=void 0,g=(a=t).path,v=a.url,c(c({},(0,i.default)(a,["path","url"])),{},{url:v&&(0,u.addQueryArgs)(v,y),path:g&&(0,u.addQueryArgs)(g,y)}))),{},{parse:!1}));case 6:return n=e.sent,e.next=9,p(n);case 9:if(o=e.sent,Array.isArray(o)){e.next=12;break}return e.abrupt("return",o);case 12:if(s=f(n)){e.next=15;break}return e.abrupt("return",o);case 15:d=[].concat(o);case 16:if(!s){e.next=27;break}return e.next=19,(0,l.default)(c(c({},t),{},{path:void 0,url:s,parse:!1}));case 19:return m=e.sent,e.next=22,p(m);case 22:b=e.sent,d=d.concat(b),s=f(m),e.next=16;break;case 27:return e.abrupt("return",d);case 28:case"end":return e.stop()}var a,y,g,v}),e)})));return function(t,r){return e.apply(this,arguments)}}();t.default=m},"./node_modules/@wordpress/api-fetch/build-module/middlewares/http-v1.js":function(e,t,r){"use strict";r.r(t);var n=r("./node_modules/@babel/runtime/helpers/esm/defineProperty.js");function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=500&&t.status<600&&r?n(r).catch((function(){return!1!==e.parse?Promise.reject({code:"post_process",message:(0,o.__)("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(t)})):(0,i.parseAndThrowError)(t,e.parse)})).then((function(t){return(0,i.parseResponseAndNormalizeError)(t,e.parse)}))}},"./node_modules/@wordpress/api-fetch/build-module/middlewares/namespace-endpoint.js":function(e,t,r){"use strict";r.r(t);var n=r("./node_modules/@babel/runtime/helpers/esm/defineProperty.js");function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t1&&void 0!==arguments[1])||arguments[1];return Promise.resolve(function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?e:204===e.status?null:e.json?e.json():Promise.reject(e)}(e,t)).catch((function(e){return s(e,t)}))};function s(e){if(!(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]))throw e;return o(e).then((function(e){var t={code:"unknown_error",message:(0,n.__)("An unknown error occurred.")};throw e||t}))}},"./node_modules/@wordpress/hooks/build-module/createAddHook.js":function(e,t,r){"use strict";r.r(t);var n=r("./node_modules/@wordpress/hooks/build-module/validateNamespace.js"),o=r("./node_modules/@wordpress/hooks/build-module/validateHookName.js");t.default=function(e,t){return function(r,i,s){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,u=e[t];if((0,o.default)(r)&&(0,n.default)(i))if("function"==typeof s)if("number"==typeof a){var l={callback:s,priority:a,namespace:i};if(u[r]){var d,c=u[r].handlers;for(d=c.length;d>0&&!(a>=c[d-1].priority);d--);d===c.length?c[d]=l:c.splice(d,0,l),u.__current.forEach((function(e){e.name===r&&e.currentIndex>=d&&e.currentIndex++}))}else u[r]={handlers:[l],runs:0};"hookAdded"!==r&&e.doAction("hookAdded",r,i,s,a)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}}},"./node_modules/@wordpress/hooks/build-module/createCurrentHook.js":function(e,t,r){"use strict";r.r(t),t.default=function(e,t){return function(){var r,n,o=e[t];return null!==(r=null===(n=o.__current[o.__current.length-1])||void 0===n?void 0:n.name)&&void 0!==r?r:null}}},"./node_modules/@wordpress/hooks/build-module/createDidHook.js":function(e,t,r){"use strict";r.r(t);var n=r("./node_modules/@wordpress/hooks/build-module/validateHookName.js");t.default=function(e,t){return function(r){var o=e[t];if((0,n.default)(r))return o[r]&&o[r].runs?o[r].runs:0}}},"./node_modules/@wordpress/hooks/build-module/createDoingHook.js":function(e,t,r){"use strict";r.r(t),t.default=function(e,t){return function(r){var n=e[t];return void 0===r?void 0!==n.__current[0]:!!n.__current[0]&&r===n.__current[0].name}}},"./node_modules/@wordpress/hooks/build-module/createHasHook.js":function(e,t,r){"use strict";r.r(t),t.default=function(e,t){return function(r,n){var o=e[t];return void 0!==n?r in o&&o[r].handlers.some((function(e){return e.namespace===n})):r in o}}},"./node_modules/@wordpress/hooks/build-module/createHooks.js":function(e,t,r){"use strict";r.r(t),r.d(t,{_Hooks:function(){return c}});var n=r("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),o=r("./node_modules/@wordpress/hooks/build-module/createAddHook.js"),i=r("./node_modules/@wordpress/hooks/build-module/createRemoveHook.js"),s=r("./node_modules/@wordpress/hooks/build-module/createHasHook.js"),a=r("./node_modules/@wordpress/hooks/build-module/createRunHook.js"),u=r("./node_modules/@wordpress/hooks/build-module/createCurrentHook.js"),l=r("./node_modules/@wordpress/hooks/build-module/createDoingHook.js"),d=r("./node_modules/@wordpress/hooks/build-module/createDidHook.js"),c=function e(){(0,n.default)(this,e),this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=(0,o.default)(this,"actions"),this.addFilter=(0,o.default)(this,"filters"),this.removeAction=(0,i.default)(this,"actions"),this.removeFilter=(0,i.default)(this,"filters"),this.hasAction=(0,s.default)(this,"actions"),this.hasFilter=(0,s.default)(this,"filters"),this.removeAllActions=(0,i.default)(this,"actions",!0),this.removeAllFilters=(0,i.default)(this,"filters",!0),this.doAction=(0,a.default)(this,"actions"),this.applyFilters=(0,a.default)(this,"filters",!0),this.currentAction=(0,u.default)(this,"actions"),this.currentFilter=(0,u.default)(this,"filters"),this.doingAction=(0,l.default)(this,"actions"),this.doingFilter=(0,l.default)(this,"filters"),this.didAction=(0,d.default)(this,"actions"),this.didFilter=(0,d.default)(this,"filters")};t.default=function(){return new c}},"./node_modules/@wordpress/hooks/build-module/createRemoveHook.js":function(e,t,r){"use strict";r.r(t);var n=r("./node_modules/@wordpress/hooks/build-module/validateNamespace.js"),o=r("./node_modules/@wordpress/hooks/build-module/validateHookName.js");t.default=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(i,s){var a=e[t];if((0,o.default)(i)&&(r||(0,n.default)(s))){if(!a[i])return 0;var u=0;if(r)u=a[i].handlers.length,a[i]={runs:a[i].runs,handlers:[]};else for(var l=a[i].handlers,d=function(e){l[e].namespace===s&&(l.splice(e,1),u++,a.__current.forEach((function(t){t.name===i&&t.currentIndex>=e&&t.currentIndex--})))},c=l.length-1;c>=0;c--)d(c);return"hookRemoved"!==i&&e.doAction("hookRemoved",i,s),u}}}},"./node_modules/@wordpress/hooks/build-module/createRunHook.js":function(e,t,r){"use strict";r.r(t);var n=r("./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");t.default=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(o){var i=e[t];i[o]||(i[o]={handlers:[],runs:0}),i[o].runs++;var s=i[o].handlers;"hookAdded"!==o&&i.all&&s.push.apply(s,(0,n.default)(i.all.handlers));for(var a=arguments.length,u=new Array(a>1?a-1:0),l=1;l1&&void 0!==arguments[1]?arguments[1]:"default";n.data[t]=s(s(s({},a),n.data[t]),e),n.data[t][""]=s(s({},a[""]),n.data[t][""])},c=function(e,t){d(e,t),l()},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return n.data[e]||d(void 0,e),n.dcnpgettext(e,t,r,o,i)},f=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default"},h=function(e,t,n){var o=p(n,t,e);return r?(o=r.applyFilters("i18n.gettext_with_context",o,e,t,n),r.applyFilters("i18n.gettext_with_context_"+f(n),o,e,t,n)):o};if(e&&c(e,t),r){var m=function(e){u.test(e)&&l()};r.addAction("hookAdded","core/i18n",m),r.addAction("hookRemoved","core/i18n",m)}return{getLocaleData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return n.data[e]},setLocaleData:c,resetLocaleData:function(e,t){n.data={},n.pluralForms={},c(e,t)},subscribe:function(e){return i.add(e),function(){return i.delete(e)}},__:function(e,t){var n=p(t,void 0,e);return r?(n=r.applyFilters("i18n.gettext",n,e,t),r.applyFilters("i18n.gettext_"+f(t),n,e,t)):n},_x:h,_n:function(e,t,n,o){var i=p(o,void 0,e,t,n);return r?(i=r.applyFilters("i18n.ngettext",i,e,t,n,o),r.applyFilters("i18n.ngettext_"+f(o),i,e,t,n,o)):i},_nx:function(e,t,n,o,i){var s=p(i,o,e,t,n);return r?(s=r.applyFilters("i18n.ngettext_with_context",s,e,t,n,o,i),r.applyFilters("i18n.ngettext_with_context_"+f(i),s,e,t,n,o,i)):s},isRTL:function(){return"rtl"===h("ltr","text direction")},hasTranslation:function(e,t,o){var i,s,a=t?t+""+e:e,u=!(null===(i=n.data)||void 0===i||null===(s=i[null!=o?o:"default"])||void 0===s||!s[a]);return r&&(u=r.applyFilters("i18n.has_translation",u,e,t,o),u=r.applyFilters("i18n.has_translation_"+f(o),u,e,t,o)),u}}}},"./node_modules/@wordpress/i18n/build-module/default-i18n.js":function(e,t,r){"use strict";r.r(t),r.d(t,{__:function(){return d},_n:function(){return p},_nx:function(){return f},_x:function(){return c},getLocaleData:function(){return s},hasTranslation:function(){return m},isRTL:function(){return h},resetLocaleData:function(){return u},setLocaleData:function(){return a},subscribe:function(){return l}});var n=r("./node_modules/@wordpress/i18n/build-module/create-i18n.js"),o=r("./node_modules/@wordpress/hooks/build-module/index.js"),i=(0,n.createI18n)(void 0,void 0,o.defaultHooks);t.default=i;var s=i.getLocaleData.bind(i),a=i.setLocaleData.bind(i),u=i.resetLocaleData.bind(i),l=i.subscribe.bind(i),d=i.__.bind(i),c=i._x.bind(i),p=i._n.bind(i),f=i._nx.bind(i),h=i.isRTL.bind(i),m=i.hasTranslation.bind(i)},"./node_modules/@wordpress/i18n/build-module/index.js":function(e,t,r){"use strict";r.r(t),r.d(t,{__:function(){return i.__},_n:function(){return i._n},_nx:function(){return i._nx},_x:function(){return i._x},createI18n:function(){return o.createI18n},defaultI18n:function(){return i.default},getLocaleData:function(){return i.getLocaleData},hasTranslation:function(){return i.hasTranslation},isRTL:function(){return i.isRTL},resetLocaleData:function(){return i.resetLocaleData},setLocaleData:function(){return i.setLocaleData},sprintf:function(){return n.sprintf},subscribe:function(){return i.subscribe}});var n=r("./node_modules/@wordpress/i18n/build-module/sprintf.js"),o=r("./node_modules/@wordpress/i18n/build-module/create-i18n.js"),i=r("./node_modules/@wordpress/i18n/build-module/default-i18n.js")},"./node_modules/@wordpress/i18n/build-module/sprintf.js":function(e,t,r){"use strict";r.r(t),r.d(t,{sprintf:function(){return u}});var n=r("./node_modules/memize/index.js"),o=r.n(n),i=r("./node_modules/sprintf-js/src/sprintf.js"),s=r.n(i),a=o()(console.error);function u(e){try{for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if(!t||!Object.keys(t).length)return e;var r=e,i=e.indexOf("?");return-1!==i&&(t=Object.assign((0,n.getQueryArgs)(e),t),r=r.substr(0,i)),r+"?"+(0,o.buildQueryString)(t)}},"./node_modules/@wordpress/url/build-module/build-query-string.js":function(e,t,r){"use strict";r.r(t),r.d(t,{buildQueryString:function(){return s}});var n=r("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");function o(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,s=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw s}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0;s--)a/=i;return a.toFixed(2)},n.human=function(e){var t=n.calculate(e);return t.fixed+n.spacer+t.suffix},n}},e.exports?e.exports=i():(n=[],void 0===(o="function"==typeof(r=i)?r.apply(t,n):r)||(e.exports=o))},"./node_modules/memize/index.js":function(e){e.exports=function(e,t){var r,n,o=0;function i(){var i,s,a=r,u=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(s=0;s=0),a.type){case"b":r=parseInt(r,10).toString(2);break;case"c":r=String.fromCharCode(parseInt(r,10));break;case"d":case"i":r=parseInt(r,10);break;case"j":r=JSON.stringify(r,null,a.width?parseInt(a.width):0);break;case"e":r=a.precision?parseFloat(r).toExponential(a.precision):parseFloat(r).toExponential();break;case"f":r=a.precision?parseFloat(r).toFixed(a.precision):parseFloat(r);break;case"g":r=a.precision?String(Number(r.toPrecision(a.precision))):parseFloat(r);break;case"o":r=(parseInt(r,10)>>>0).toString(8);break;case"s":r=String(r),r=a.precision?r.substring(0,a.precision):r;break;case"t":r=String(!!r),r=a.precision?r.substring(0,a.precision):r;break;case"T":r=Object.prototype.toString.call(r).slice(8,-1).toLowerCase(),r=a.precision?r.substring(0,a.precision):r;break;case"u":r=parseInt(r,10)>>>0;break;case"v":r=r.valueOf(),r=a.precision?r.substring(0,a.precision):r;break;case"x":r=(parseInt(r,10)>>>0).toString(16);break;case"X":r=(parseInt(r,10)>>>0).toString(16).toUpperCase()}o.json.test(a.type)?m+=r:(!o.number.test(a.type)||c&&!a.sign?p="":(p=c?"+":"-",r=r.toString().replace(o.sign,"")),l=a.pad_char?"0"===a.pad_char?"0":a.pad_char.charAt(1):" ",d=a.width-(p+r).length,u=a.width&&d>0?l.repeat(d):"",m+=a.align?p+r+u:"0"===l?p+u+r:u+p+r)}return m}(function(e){if(a[e])return a[e];var t,r=e,n=[],i=0;for(;r;){if(null!==(t=o.text.exec(r)))n.push(t[0]);else if(null!==(t=o.modulo.exec(r)))n.push("%");else{if(null===(t=o.placeholder.exec(r)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){i|=1;var s=[],u=t[2],l=[];if(null===(l=o.key.exec(u)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(s.push(l[1]);""!==(u=u.substring(l[0].length));)if(null!==(l=o.key_access.exec(u)))s.push(l[1]);else{if(null===(l=o.index_access.exec(u)))throw new SyntaxError("[sprintf] failed to parse named argument key");s.push(l[1])}t[2]=s}else i|=2;if(3===i)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");n.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}r=r.substring(t[0].length)}return a[e]=n}(e),arguments)}function s(e,t){return i.apply(null,[e].concat(t||[]))}var a=Object.create(null);t.sprintf=i,t.vsprintf=s,"undefined"!=typeof window&&(window.sprintf=i,window.vsprintf=s,void 0===(n=function(){return{sprintf:i,vsprintf:s}}.call(t,r,t,e))||(e.exports=n))}()},"./node_modules/tannin/index.js":function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return i}});var n=r("./node_modules/@tannin/plural-forms/index.js"),o={contextDelimiter:"",onMissingKey:null};function i(e,t){var r;for(r in this.data=e,this.pluralForms={},this.options={},o)this.options[r]=void 0!==t&&r in t?t[r]:o[r]}i.prototype.getPluralForm=function(e,t){var r,o,i,s=this.pluralForms[e];return s||("function"!=typeof(i=(r=this.data[e][""])["Plural-Forms"]||r["plural-forms"]||r.plural_forms)&&(o=function(e){var t,r,n;for(t=e.split(";"),r=0;r{this._main(e)})),this._init()},_init(){this.controlled.forEach((e=>{this._checkUp(e)}))},_main(e){const t=JSON.parse(e.dataset.main);e.dataset.size&&(e.filesize=parseInt(e.dataset.size,10)),e.mains=t.map((t=>{const r=document.getElementById(t),n=document.getElementById(t+"_size_wrapper");return n&&(r.filesize=0,r.sizespan=n),this._addChild(r,e),r})),this._bindEvents(e),e.mains.forEach((e=>{this._bindEvents(e)}))},_bindEvents(e){e.eventBound||(e.addEventListener("click",(t=>{const r=t.target;r.elements&&(this._checkDown(r),this._evaluateSize(r)),r.mains&&this._checkUp(e)})),e.eventBound=!0)},_addChild(e,t){const r=e.elements?e.elements:[];-1===r.indexOf(t)&&(r.push(t),e.elements=r)},_removeChild(e,t){const r=e.elements.indexOf(t);-1{t.checked!==e.checked&&(t.checked=e.checked,t.disabled&&(t.checked=!1),t.dispatchEvent(new Event("change")))})),e.elements.forEach((t=>{this._checkDown(t),t.elements||this._checkUp(t,e)})))},_checkUp(e,t){e.mains&&[...e.mains].forEach((e=>{e!==t&&this._evaluateCheckStatus(e),this._checkUp(e),this._evaluateSize(e)}))},_evaluateCheckStatus(e){let t=0,r=e.classList.contains("partial");r&&(e.classList.remove("partial"),r=!1),e.elements.forEach((n=>{null!==n.parentNode?(t+=n.checked,n.classList.contains("partial")&&(r=!0)):this._removeChild(e,n)}));let n="some";t===e.elements.length?n="on":0===t?n="off":r=!0,r&&e.classList.add("partial");const o="off"!==n;e.checked===o&&e.value===n||(e.value=n,e.checked=o,e.dispatchEvent(new Event("change")))},_evaluateSize(e){if(e.sizespan&&e.elements){e.filesize=0,e.elements.forEach((t=>{t.checked&&(e.filesize+=t.filesize)}));let t=null;0this.sendStates()),2e3),localStorage.setItem(this.key,JSON.stringify(this.data)))},set(e,t){this.data[e]&&this.data[e]===t||(this.data[e]=t,this._update())},get(e){let t=null;return this.data[e]&&(t=this.data[e]),t},sendStates(){fetch(cldData.stateURL,{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":cldData.stateNonce},body:JSON.stringify(this.data)}).then((e=>e.json())).then((e=>{e.success&&(this.previous=JSON.stringify(e.state),localStorage.removeItem(this.key))}))}};t.default=n},"./node_modules/@babel/runtime/helpers/regeneratorRuntime.js":function(e,t,r){var n=r("./node_modules/@babel/runtime/helpers/typeof.js").default;function o(){"use strict";e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},r=Object.prototype,i=r.hasOwnProperty,s=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",d=a.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof m?t:m,i=Object.create(o.prototype),a=new S(n||[]);return s(i,"_invoke",{value:O(e,r,a)}),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h={};function m(){}function b(){}function y(){}var g={};c(g,u,(function(){return this}));var v=Object.getPrototypeOf,_=v&&v(v(A([])));_&&_!==r&&i.call(_,u)&&(g=_);var w=y.prototype=m.prototype=Object.create(g);function j(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function r(o,s,a,u){var l=f(e[o],e,s);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==n(c)&&i.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(c).then((function(e){d.value=e,a(d)}),(function(e){return r("throw",e,a,u)}))}u(l.arg)}var o;s(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function O(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var a=k(s,r);if(a){if(a===h)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=f(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function k(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method))return h;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,h;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function A(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r=0;--n){var o=this.tryEntries[n],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var a=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(a&&u){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:A(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/helpers/typeof.js":function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/regenerator/index.js":function(e,t,r){var n=r("./node_modules/@babel/runtime/helpers/regeneratorRuntime.js")();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},"./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}},"./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js":function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}r.r(t),r.d(t,{default:function(){return n}})},"./node_modules/@babel/runtime/helpers/esm/slicedToArray.js":function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return a}});var n=r("./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js"),o=r("./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js"),i=r("./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js"),s=r("./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js");function a(e,t){return(0,n.default)(e)||(0,o.default)(e,t)||(0,i.default)(e,t)||(0,s.default)()}},"./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js":function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return a}});var n=r("./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js"),o=r("./node_modules/@babel/runtime/helpers/esm/iterableToArray.js"),i=r("./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js"),s=r("./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js");function a(e){return(0,n.default)(e)||(0,o.default)(e)||(0,i.default)(e)||(0,s.default)()}},"./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js":function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return o}});var n=r("./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");function o(e,t){if(e){if("string"==typeof e)return(0,n.default)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,n.default)(e,t):void 0}}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};!function(){"use strict";r.r(n);var e=r("./node_modules/@wordpress/api-fetch/build-module/index.js"),t=r("./node_modules/@wordpress/i18n/build-module/index.js"),o=r("./src/js/components/onoff.js"),i=r("./src/js/components/states.js");const s={cachePoints:{},spinners:{},states:null,init(t,r){if(this.states=r,"undefined"!=typeof CLDASSETS){e.default.use(e.default.createNonceMiddleware(CLDASSETS.nonce));t.querySelectorAll("[data-cache-point]").forEach((e=>this._bind(e)));const r=document.getElementById("connect.cache.cld_purge_all");r&&(r.disabled="disabled",r.style.width="100px",r.style.transition="width 0.5s",r.addEventListener("click",(()=>{r.dataset.purging||confirm(wp.i18n.__("Purge entire cache?","cloudinary"))&&this._purgeAll(r,!1)})),this._watchPurge(r),setInterval((()=>{this._watchPurge(r)}),5e3))}},getCachePoint(e){return this.cachePoints["_"+e]?this.cachePoints["_"+e]:null},setCachePoint(e,t){const r=document.getElementById(t.dataset.slug),n=document.createElement("div"),o=this._getRow(),i=document.createElement("td");i.colSpan=2,i.className="cld-loading",o.appendChild(i);const s=document.getElementById(t.dataset.slug+"_search"),a=document.getElementById(t.dataset.slug+"_reload"),u=document.getElementById(t.dataset.browser),l=document.getElementById(t.dataset.apply);l.style.float="right",l.style.marginLeft="6px",u.addEventListener("change",(t=>{this._handleManager(e)})),r.addEventListener("change",(t=>{this._handleManager(e)})),window.addEventListener("CacheToggle",(e=>{e.detail.cachePoint===t&&this._cacheChange(t,e.detail)})),l.addEventListener("click",(e=>{this._applyChanges(t)})),a.addEventListener("click",(t=>{this._load(e)})),s.addEventListener("keydown",(t=>{13===t.which&&(t.preventDefault(),t.stopPropagation(),this._load(e))})),n.className="cld-pagenav",l.cacheChanges={disable:[],enable:[],delete:[]},t.main=r,t.search=s,t.controller=u,t.viewer=t.parentNode.parentNode,t.loader=o,t.table=t.parentNode,t.apply=l,t.paginate=n,t.currentPage=1,t.viewer.appendChild(n),this.cachePoints["_"+e]=t},close(e){e.classList.add("closed")},open(e){e.classList.remove("closed")},isOpen(e){const t=this.getCachePoint(e);let r=!1;return t&&(r=t.controller.checked&&t.main.checked),r},_bind(e){const t=e.dataset.cachePoint;this.setCachePoint(t,e),this._handleManager(t)},_handleManager(e){const t=this.getCachePoint(e);t&&(this.isOpen(e)?(this.open(t.viewer),this.states.set(t.viewer.id,"open"),t.loaded||this._load(e)):(this.close(t.viewer),t.controller.checked=!1,this.states.set(t.viewer.id,"close")))},_load(t){const r=this.getCachePoint(t);let n="100px";r.clientHeight&&(n=r.clientHeight-16+"px"),this._clearChildren(r),r.appendChild(r.loader),this.open(r.loader),r.loader.firstChild.style.height=n,(0,e.default)({path:CLDASSETS.fetch_url,data:{ID:t,page:r.currentPage,search:r.search.value},method:"POST"}).then((e=>{r.removeChild(r.loader),this._buildList(r,e.items),this._buildNav(r,e);const t=r.querySelectorAll("[data-main]");o.default.bind(t),r.loaded=!0}))},_cacheChange(e,t){const r=t.checked?t.states.on:t.states.off,n=t.checked?t.states.off:t.states.on;this._removeFromList(e,t.item.ID,n)||this._addToList(e,t.item.ID,r),this._evaluateApply(e)},_evaluateApply(e){e.apply.disabled="disabled";const t=e.apply.cacheChanges;let r=!1;for(const e in t)t[e].length&&(r=!0);r&&(e.apply.disabled="")},_applyChanges(e){const t=e.apply.cacheChanges;e.apply.disabled="disabled";for(const r in t)t[r].length&&this._set_state(e,r,t[r])},_watchPurge(t){t.dataset.purging||t.dataset.updating||(t.dataset.updating=!0,(0,e.default)({path:CLDASSETS.purge_all,data:{count:!0},method:"POST"}).then((e=>{t.dataset.updating="",0e.percent?(t.disabled="",this._purgeAll(t,!0)):0{r.innerText=(0,t.__)("Purging cache","cloudinary")+" "+Math.round(e.percent,2)+"%",r.style.backgroundImage="linear-gradient(90deg, #2a0 "+e.percent+"%, #787878 "+e.percent+"%)",100>e.percent?this._purgeAction(r,!0,o):o?o():(r.innerText=wp.i18n.__("Purge complete.","cloudinary"),setTimeout((()=>{r.dataset.purging="",r.style.backgroundImage="",r.style.minHeight="",r.style.border="",r.style.width="100px",r.disabled="disabled",r.innerText=r.dataset.title}),2e3))}))},_set_state(t,r,n){this._showSpinners(n),(0,e.default)({path:CLDASSETS.update_url,data:{state:r,ids:n},method:"POST"}).then((e=>{this._hideSpinners(e),e.forEach((e=>{this._removeFromList(t,e,r),this._evaluateApply(t),t.apply.disabled="disabled"})),"delete"===r&&this._load(t.dataset.cachePoint)}))},_showSpinners(e){e.forEach((e=>{this.spinners["spinner_"+e].style.visibility="visible"}))},_hideSpinners(e){e.forEach((e=>{this.spinners["spinner_"+e].style.visibility="hidden"}))},_removeFromList(e,t,r){const n=this._getListIndex(e,t,r);let o=!1;return-1e.apply.cacheChanges[r].indexOf(t),_noCache(e){const t=this._getNote(wp.i18n.__("No files cached.","cloudinary"));e.viewer.appendChild(t),this.close(e.table)},_clearChildren(e){for(;e.children.length;){const t=e.lastChild;t.children.length&&this._clearChildren(t),e.removeChild(t)}},_buildList(e,t){t.forEach((t=>{if(t.note)return void e.appendChild(this._getNote(t.note));const r=this._getRow(t.ID),n=this._getStateSwitch(e,t,{on:"enable",off:"disable"}),o=this._getFile(e,t,r),i=this._getEdit(t,e);r.appendChild(o),r.appendChild(i),r.appendChild(n),e.appendChild(r)}))},_buildNav(e,t){e.paginate.innerHTML="";const r=document.createElement("button"),n=document.createElement("button");r.type="button",r.innerHTML="‹",r.className="button cld-pagenav-prev",1===t.current_page?r.disabled=!0:r.addEventListener("click",(r=>{e.currentPage=t.current_page-1,this._load(e.dataset.cachePoint)})),n.type="button",n.innerHTML="›",n.className="button cld-pagenav-next",t.current_page===t.total_pages||0===t.total_pages?n.disabled=!0:n.addEventListener("click",(r=>{e.currentPage=t.current_page+1,this._load(e.dataset.cachePoint)}));const o=document.createElement("span");if(o.innerText=t.nav_text,o.className="cld-pagenav-text",e.paginate.appendChild(r),e.paginate.appendChild(o),e.paginate.appendChild(n),e.paginate.appendChild(e.apply),e.apply.classList.remove("closed"),e.apply.disabled="disabled",t.items.length){const t=document.createElement("button");t.type="button",t.className="button",t.innerText=wp.i18n.__("Purge cache point","cloudinary"),t.style.float="right",e.paginate.appendChild(t),t.addEventListener("click",(r=>{if(confirm(wp.i18n.__("Purge entire cache point?","cloudinary"))){t.dataset.parent=e.dataset.cachePoint;const r=this;t.classList.add("button-primary"),this._purgeAll(t,!1,(function(){r._load(e.dataset.cachePoint)}))}}))}},_getNote(e){const t=this._getRow(),r=document.createElement("td");return r.colSpan=2,r.innerText=e,t.appendChild(r),t},_getRow(e){const t=document.createElement("tr");return e&&(t.id="row_"+e),t},_getEdit(e){const r=document.createElement("td"),n=document.createElement("a");return n.href=e.edit_url,e.data.transformations?n.innerText=e.data.transformations:n.innerText=(0,t.__)("Add transformations","cloudinary"),r.appendChild(n),r},_getFile(e,t){const r=document.createElement("td"),n=document.createElement("label"),o=this._getDeleter(e,r,t);n.innerText=t.short_url,n.htmlFor=t.key,r.appendChild(o),r.appendChild(n);const i=document.createElement("span"),s="spinner_"+t.ID;return i.className="spinner",i.id=s,r.appendChild(i),this.spinners[s]=i,r},_getDeleter(e,t,r){const n=document.createElement("input"),o=[e.dataset.slug+"_deleter"],i=this._getListIndex(e,r.ID,"delete");return n.type="checkbox",n.value=r.ID,n.id=r.key,n.dataset.main=JSON.stringify(o),-1{t.style.opacity=1,t.style.textDecoration="",n.checked&&(t.style.opacity=.8,t.style.textDecoration="line-through");const i=new CustomEvent("CacheToggle",{detail:{checked:n.checked,states:{on:"delete",off:r.active?"enable":"disable"},item:r,cachePoint:e}});window.dispatchEvent(i)})),n},_getStateSwitch(e,t,r){const n=document.createElement("td"),o=document.createElement("label"),i=document.createElement("input"),s=document.createElement("span"),a=(e.dataset.slug,this._getListIndex(e,t.ID,"disable"));return n.style.textAlign="right",o.className="cld-input-on-off-control mini",i.type="checkbox",i.value=t.ID,i.checked=!(-1{const o=new CustomEvent("CacheToggle",{detail:{checked:i.checked,states:r,item:t,cachePoint:e}});window.dispatchEvent(o)})),n.appendChild(o),n}},a=document.getElementById("cloudinary-settings-page");a&&(i.default.init(),window.addEventListener("load",(()=>s.init(a,i.default))))}()}(); +//# sourceMappingURL=asset-manager.js.map \ No newline at end of file diff --git a/js/block-editor.asset.php b/js/block-editor.asset.php index 40b91d96d..09a622b6a 100644 --- a/js/block-editor.asset.php +++ b/js/block-editor.asset.php @@ -1 +1 @@ - array('react', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-plugins'), 'version' => '3707d118b61174ad190e'); + array('react', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-plugins'), 'version' => 'e5a068264cdabb4a9199'); diff --git a/js/block-editor.js b/js/block-editor.js index 183cb963f..35aa05cb0 100644 --- a/js/block-editor.js +++ b/js/block-editor.js @@ -1 +1,2 @@ -!function(){"use strict";var e={};e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,{a:r}),r},e.d=function(t,r){for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var t=window.React,r=e.n(t),n=window.wp.i18n,o=window.wp.data,i=window.wp.components;function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){s=!0,a=e},f:function(){try{u||null==r.return||r.return()}finally{if(s)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0),s.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,s.width?parseInt(s.width):0);break;case"e":n=s.precision?parseFloat(n).toExponential(s.precision):parseFloat(n).toExponential();break;case"f":n=s.precision?parseFloat(n).toFixed(s.precision):parseFloat(n);break;case"g":n=s.precision?String(Number(n.toPrecision(s.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=s.precision?n.substring(0,s.precision):n;break;case"t":n=String(!!n),n=s.precision?n.substring(0,s.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=s.precision?n.substring(0,s.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=s.precision?n.substring(0,s.precision):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase()}i.json.test(s.type)?v+=n:(!i.number.test(s.type)||p&&!s.sign?d="":(d=p?"+":"-",n=n.toString().replace(i.sign,"")),c=s.pad_char?"0"===s.pad_char?"0":s.pad_char.charAt(1):" ",l=s.width-(d+n).length,u=s.width&&l>0?c.repeat(l):"",v+=s.align?d+n+u:"0"===c?d+u+n:u+d+n)}return v}(function(e){if(s[e])return s[e];var t,n=e,r=[],o=0;for(;n;){if(null!==(t=i.text.exec(n)))r.push(t[0]);else if(null!==(t=i.modulo.exec(n)))r.push("%");else{if(null===(t=i.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){o|=1;var a=[],u=t[2],c=[];if(null===(c=i.key.exec(u)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(a.push(c[1]);""!==(u=u.substring(c[0].length));)if(null!==(c=i.key_access.exec(u)))a.push(c[1]);else{if(null===(c=i.index_access.exec(u)))throw new SyntaxError("[sprintf] failed to parse named argument key");a.push(c[1])}t[2]=a}else o|=2;if(3===o)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}n=n.substring(t[0].length)}return s[e]=r}(e),arguments)}function a(e,t){return o.apply(null,[e].concat(t||[]))}var s=Object.create(null);o,a,"undefined"!=typeof window&&(window.sprintf=o,window.vsprintf=a,void 0===(r=function(){return{sprintf:o,vsprintf:a}}.call(t,n,t,e))||(e.exports=r))}()}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e,t,r,i,o=n(616),a=n.n(o);n(604),a()(console.error);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},t=["(","?"],r={")":["("],":":["?","?:"]},i=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var u={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function c(n){var o=function(n){for(var o,a,s,u,c=[],l=[];o=n.match(i);){for(a=o[0],(s=n.substr(0,o.index).trim())&&c.push(s);u=l.pop();){if(r[a]){if(r[a][0]===u){a=r[a][1]||a;break}}else if(t.indexOf(u)>=0||e[u]3&&void 0!==arguments[3]?arguments[3]:10,a=e[t];if(g(n)&&m(r))if("function"==typeof i)if("number"==typeof o){var s={callback:i,priority:o,namespace:r};if(a[n]){var u,c=a[n].handlers;for(u=c.length;u>0&&!(o>=c[u-1].priority);u--);u===c.length?c[u]=s:c.splice(u,0,s),a.__current.forEach((function(e){e.name===n&&e.currentIndex>=u&&e.currentIndex++}))}else a[n]={handlers:[s],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,r,i,o)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}};var b=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r,i){var o=e[t];if(g(r)&&(n||m(i))){if(!o[r])return 0;var a=0;if(n)a=o[r].handlers.length,o[r]={runs:o[r].runs,handlers:[]};else for(var s=o[r].handlers,u=function(e){s[e].namespace===i&&(s.splice(e,1),a++,o.__current.forEach((function(t){t.name===r&&t.currentIndex>=e&&t.currentIndex--})))},c=s.length-1;c>=0;c--)u(c);return"hookRemoved"!==r&&e.doAction("hookRemoved",r,i),a}}};var x=function(e,t){return function(n,r){var i=e[t];return void 0!==r?n in i&&i[n].handlers.some((function(e){return e.namespace===r})):n in i}};var _=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r){var i=e[t];i[r]||(i[r]={handlers:[],runs:0}),i[r].runs++;var o=i[r].handlers;for(var a=arguments.length,s=new Array(a>1?a-1:0),u=1;u1&&void 0!==arguments[1]?arguments[1]:"default";r.data[t]=f(f(f({},h),r.data[t]),e),r.data[t][""]=f(f({},h[""]),r.data[t][""])},s=function(e,t){a(e,t),o()},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;return r.data[e]||a(void 0,e),r.dcnpgettext(e,t,n,i,o)},c=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default"},l=function(e,t,r){var i=u(r,t,e);return n?(i=n.applyFilters("i18n.gettext_with_context",i,e,t,r),n.applyFilters("i18n.gettext_with_context_"+c(r),i,e,t,r)):i};if(e&&s(e,t),n){var d=function(e){v.test(e)&&o()};n.addAction("hookAdded","core/i18n",d),n.addAction("hookRemoved","core/i18n",d)}return{getLocaleData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return r.data[e]},setLocaleData:s,resetLocaleData:function(e,t){r.data={},r.pluralForms={},s(e,t)},subscribe:function(e){return i.add(e),function(){return i.delete(e)}},__:function(e,t){var r=u(t,void 0,e);return n?(r=n.applyFilters("i18n.gettext",r,e,t),n.applyFilters("i18n.gettext_"+c(t),r,e,t)):r},_x:l,_n:function(e,t,r,i){var o=u(i,void 0,e,t,r);return n?(o=n.applyFilters("i18n.ngettext",o,e,t,r,i),n.applyFilters("i18n.ngettext_"+c(i),o,e,t,r,i)):o},_nx:function(e,t,r,i,o){var a=u(o,i,e,t,r);return n?(a=n.applyFilters("i18n.ngettext_with_context",a,e,t,r,i,o),n.applyFilters("i18n.ngettext_with_context_"+c(o),a,e,t,r,i,o)):a},isRTL:function(){return"rtl"===l("ltr","text direction")},hasTranslation:function(e,t,i){var o,a,s=t?t+""+e:e,u=!(null===(o=r.data)||void 0===o||null===(a=o[null!=i?i:"default"])||void 0===a||!a[s]);return n&&(u=n.applyFilters("i18n.has_translation",u,e,t,i),u=n.applyFilters("i18n.has_translation_"+c(i),u,e,t,i)),u}}}(void 0,void 0,O)),I=(E.getLocaleData.bind(E),E.setLocaleData.bind(E),E.resetLocaleData.bind(E),E.subscribe.bind(E),E.__.bind(E));E._x.bind(E),E._n.bind(E),E._nx.bind(E),E.isRTL.bind(E),E.hasTranslation.bind(E);const j={template:document.getElementById("main-image"),stepper:document.getElementById("responsive.pixel_step"),counter:document.getElementById("responsive.breakpoints"),max:document.getElementById("responsive.max_width"),min:document.getElementById("responsive.min_width"),details:document.getElementById("preview-details"),preview:null,init(){this.preview=this.template.parentNode,this.stepper.addEventListener("change",(()=>{this.counter.value=this.rebuildPreview()})),this.counter.addEventListener("change",(()=>{this.calculateShift()})),this.max.addEventListener("change",(()=>{this.calculateShift()})),this.min.addEventListener("change",(()=>{this.calculateShift()})),this.stepper.dispatchEvent(new Event("change"))},calculateShift(){const e=this.counter.value,t=(this.max.value-this.min.value)/(e-1);this.stepper.value=Math.floor(t),this.stepper.dispatchEvent(new Event("change"))},rebuildPreview(){let e=parseInt(this.max.value),t=parseInt(this.min.value),n=parseInt(this.stepper.value);1>n&&(this.stepper.value=n=50),e||(e=parseInt(this.max.dataset.default),this.max.value=e),t||(t=100,this.min.value=t);let r=e,i=r/e*100;const o=this.makeSize(r,i);o.classList.add("main-image"),this.preview.innerHTML="",this.preview.appendChild(o);let a=1;for(;r>t&&(r-=n,!(rj.init()))}()}(); \ No newline at end of file +!function(){var e={"./node_modules/@tannin/compile/index.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n("./node_modules/@tannin/postfix/index.js"),o=n("./node_modules/@tannin/evaluate/index.js");function i(e){var t=(0,r.default)(e);return function(e){return(0,o.default)(t,e)}}},"./node_modules/@tannin/evaluate/index.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function o(e,t){var n,o,i,s,u,a,l=[];for(n=0;n=0||r[a]":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},o=["(","?"],i={")":["("],":":["?","?:"]},s=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/},"./node_modules/@wordpress/hooks/build-module/createAddHook.js":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/@wordpress/hooks/build-module/validateNamespace.js"),o=n("./node_modules/@wordpress/hooks/build-module/validateHookName.js");t.default=function(e,t){return function(n,i,s){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,a=e[t];if((0,o.default)(n)&&(0,r.default)(i))if("function"==typeof s)if("number"==typeof u){var l={callback:s,priority:u,namespace:i};if(a[n]){var d,c=a[n].handlers;for(d=c.length;d>0&&!(u>=c[d-1].priority);d--);d===c.length?c[d]=l:c.splice(d,0,l),a.__current.forEach((function(e){e.name===n&&e.currentIndex>=d&&e.currentIndex++}))}else a[n]={handlers:[l],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,i,s,u)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}}},"./node_modules/@wordpress/hooks/build-module/createCurrentHook.js":function(e,t,n){"use strict";n.r(t),t.default=function(e,t){return function(){var n,r,o=e[t];return null!==(n=null===(r=o.__current[o.__current.length-1])||void 0===r?void 0:r.name)&&void 0!==n?n:null}}},"./node_modules/@wordpress/hooks/build-module/createDidHook.js":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/@wordpress/hooks/build-module/validateHookName.js");t.default=function(e,t){return function(n){var o=e[t];if((0,r.default)(n))return o[n]&&o[n].runs?o[n].runs:0}}},"./node_modules/@wordpress/hooks/build-module/createDoingHook.js":function(e,t,n){"use strict";n.r(t),t.default=function(e,t){return function(n){var r=e[t];return void 0===n?void 0!==r.__current[0]:!!r.__current[0]&&n===r.__current[0].name}}},"./node_modules/@wordpress/hooks/build-module/createHasHook.js":function(e,t,n){"use strict";n.r(t),t.default=function(e,t){return function(n,r){var o=e[t];return void 0!==r?n in o&&o[n].handlers.some((function(e){return e.namespace===r})):n in o}}},"./node_modules/@wordpress/hooks/build-module/createHooks.js":function(e,t,n){"use strict";n.r(t),n.d(t,{_Hooks:function(){return c}});var r=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),o=n("./node_modules/@wordpress/hooks/build-module/createAddHook.js"),i=n("./node_modules/@wordpress/hooks/build-module/createRemoveHook.js"),s=n("./node_modules/@wordpress/hooks/build-module/createHasHook.js"),u=n("./node_modules/@wordpress/hooks/build-module/createRunHook.js"),a=n("./node_modules/@wordpress/hooks/build-module/createCurrentHook.js"),l=n("./node_modules/@wordpress/hooks/build-module/createDoingHook.js"),d=n("./node_modules/@wordpress/hooks/build-module/createDidHook.js"),c=function e(){(0,r.default)(this,e),this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=(0,o.default)(this,"actions"),this.addFilter=(0,o.default)(this,"filters"),this.removeAction=(0,i.default)(this,"actions"),this.removeFilter=(0,i.default)(this,"filters"),this.hasAction=(0,s.default)(this,"actions"),this.hasFilter=(0,s.default)(this,"filters"),this.removeAllActions=(0,i.default)(this,"actions",!0),this.removeAllFilters=(0,i.default)(this,"filters",!0),this.doAction=(0,u.default)(this,"actions"),this.applyFilters=(0,u.default)(this,"filters",!0),this.currentAction=(0,a.default)(this,"actions"),this.currentFilter=(0,a.default)(this,"filters"),this.doingAction=(0,l.default)(this,"actions"),this.doingFilter=(0,l.default)(this,"filters"),this.didAction=(0,d.default)(this,"actions"),this.didFilter=(0,d.default)(this,"filters")};t.default=function(){return new c}},"./node_modules/@wordpress/hooks/build-module/createRemoveHook.js":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/@wordpress/hooks/build-module/validateNamespace.js"),o=n("./node_modules/@wordpress/hooks/build-module/validateHookName.js");t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(i,s){var u=e[t];if((0,o.default)(i)&&(n||(0,r.default)(s))){if(!u[i])return 0;var a=0;if(n)a=u[i].handlers.length,u[i]={runs:u[i].runs,handlers:[]};else for(var l=u[i].handlers,d=function(e){l[e].namespace===s&&(l.splice(e,1),a++,u.__current.forEach((function(t){t.name===i&&t.currentIndex>=e&&t.currentIndex--})))},c=l.length-1;c>=0;c--)d(c);return"hookRemoved"!==i&&e.doAction("hookRemoved",i,s),a}}}},"./node_modules/@wordpress/hooks/build-module/createRunHook.js":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(o){var i=e[t];i[o]||(i[o]={handlers:[],runs:0}),i[o].runs++;var s=i[o].handlers;"hookAdded"!==o&&i.all&&s.push.apply(s,(0,r.default)(i.all.handlers));for(var u=arguments.length,a=new Array(u>1?u-1:0),l=1;l1&&void 0!==arguments[1]?arguments[1]:"default";r.data[t]=s(s(s({},u),r.data[t]),e),r.data[t][""]=s(s({},u[""]),r.data[t][""])},c=function(e,t){d(e,t),l()},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return r.data[e]||d(void 0,e),r.dcnpgettext(e,t,n,o,i)},p=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default"},m=function(e,t,r){var o=f(r,t,e);return n?(o=n.applyFilters("i18n.gettext_with_context",o,e,t,r),n.applyFilters("i18n.gettext_with_context_"+p(r),o,e,t,r)):o};if(e&&c(e,t),n){var h=function(e){a.test(e)&&l()};n.addAction("hookAdded","core/i18n",h),n.addAction("hookRemoved","core/i18n",h)}return{getLocaleData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return r.data[e]},setLocaleData:c,resetLocaleData:function(e,t){r.data={},r.pluralForms={},c(e,t)},subscribe:function(e){return i.add(e),function(){return i.delete(e)}},__:function(e,t){var r=f(t,void 0,e);return n?(r=n.applyFilters("i18n.gettext",r,e,t),n.applyFilters("i18n.gettext_"+p(t),r,e,t)):r},_x:m,_n:function(e,t,r,o){var i=f(o,void 0,e,t,r);return n?(i=n.applyFilters("i18n.ngettext",i,e,t,r,o),n.applyFilters("i18n.ngettext_"+p(o),i,e,t,r,o)):i},_nx:function(e,t,r,o,i){var s=f(i,o,e,t,r);return n?(s=n.applyFilters("i18n.ngettext_with_context",s,e,t,r,o,i),n.applyFilters("i18n.ngettext_with_context_"+p(i),s,e,t,r,o,i)):s},isRTL:function(){return"rtl"===m("ltr","text direction")},hasTranslation:function(e,t,o){var i,s,u=t?t+""+e:e,a=!(null===(i=r.data)||void 0===i||null===(s=i[null!=o?o:"default"])||void 0===s||!s[u]);return n&&(a=n.applyFilters("i18n.has_translation",a,e,t,o),a=n.applyFilters("i18n.has_translation_"+p(o),a,e,t,o)),a}}}},"./node_modules/@wordpress/i18n/build-module/default-i18n.js":function(e,t,n){"use strict";n.r(t),n.d(t,{__:function(){return d},_n:function(){return f},_nx:function(){return p},_x:function(){return c},getLocaleData:function(){return s},hasTranslation:function(){return h},isRTL:function(){return m},resetLocaleData:function(){return a},setLocaleData:function(){return u},subscribe:function(){return l}});var r=n("./node_modules/@wordpress/i18n/build-module/create-i18n.js"),o=n("./node_modules/@wordpress/hooks/build-module/index.js"),i=(0,r.createI18n)(void 0,void 0,o.defaultHooks);t.default=i;var s=i.getLocaleData.bind(i),u=i.setLocaleData.bind(i),a=i.resetLocaleData.bind(i),l=i.subscribe.bind(i),d=i.__.bind(i),c=i._x.bind(i),f=i._n.bind(i),p=i._nx.bind(i),m=i.isRTL.bind(i),h=i.hasTranslation.bind(i)},"./node_modules/@wordpress/i18n/build-module/index.js":function(e,t,n){"use strict";n.r(t),n.d(t,{__:function(){return i.__},_n:function(){return i._n},_nx:function(){return i._nx},_x:function(){return i._x},createI18n:function(){return o.createI18n},defaultI18n:function(){return i.default},getLocaleData:function(){return i.getLocaleData},hasTranslation:function(){return i.hasTranslation},isRTL:function(){return i.isRTL},resetLocaleData:function(){return i.resetLocaleData},setLocaleData:function(){return i.setLocaleData},sprintf:function(){return r.sprintf},subscribe:function(){return i.subscribe}});var r=n("./node_modules/@wordpress/i18n/build-module/sprintf.js"),o=n("./node_modules/@wordpress/i18n/build-module/create-i18n.js"),i=n("./node_modules/@wordpress/i18n/build-module/default-i18n.js")},"./node_modules/@wordpress/i18n/build-module/sprintf.js":function(e,t,n){"use strict";n.r(t),n.d(t,{sprintf:function(){return a}});var r=n("./node_modules/memize/index.js"),o=n.n(r),i=n("./node_modules/sprintf-js/src/sprintf.js"),s=n.n(i),u=o()(console.error);function a(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0),u.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,u.width?parseInt(u.width):0);break;case"e":n=u.precision?parseFloat(n).toExponential(u.precision):parseFloat(n).toExponential();break;case"f":n=u.precision?parseFloat(n).toFixed(u.precision):parseFloat(n);break;case"g":n=u.precision?String(Number(n.toPrecision(u.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=u.precision?n.substring(0,u.precision):n;break;case"t":n=String(!!n),n=u.precision?n.substring(0,u.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=u.precision?n.substring(0,u.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=u.precision?n.substring(0,u.precision):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase()}o.json.test(u.type)?h+=n:(!o.number.test(u.type)||c&&!u.sign?f="":(f=c?"+":"-",n=n.toString().replace(o.sign,"")),l=u.pad_char?"0"===u.pad_char?"0":u.pad_char.charAt(1):" ",d=u.width-(f+n).length,a=u.width&&d>0?l.repeat(d):"",h+=u.align?f+n+a:"0"===l?f+a+n:a+f+n)}return h}(function(e){if(u[e])return u[e];var t,n=e,r=[],i=0;for(;n;){if(null!==(t=o.text.exec(n)))r.push(t[0]);else if(null!==(t=o.modulo.exec(n)))r.push("%");else{if(null===(t=o.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){i|=1;var s=[],a=t[2],l=[];if(null===(l=o.key.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(s.push(l[1]);""!==(a=a.substring(l[0].length));)if(null!==(l=o.key_access.exec(a)))s.push(l[1]);else{if(null===(l=o.index_access.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");s.push(l[1])}t[2]=s}else i|=2;if(3===i)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}n=n.substring(t[0].length)}return u[e]=r}(e),arguments)}function s(e,t){return i.apply(null,[e].concat(t||[]))}var u=Object.create(null);t.sprintf=i,t.vsprintf=s,"undefined"!=typeof window&&(window.sprintf=i,window.vsprintf=s,void 0===(r=function(){return{sprintf:i,vsprintf:s}}.call(t,n,t,e))||(e.exports=r))}()},"./node_modules/tannin/index.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n("./node_modules/@tannin/plural-forms/index.js"),o={contextDelimiter:"",onMissingKey:null};function i(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},o)this.options[n]=void 0!==t&&n in t?t[n]:o[n]}i.prototype.getPluralForm=function(e,t){var n,o,i,s=this.pluralForms[e];return s||("function"!=typeof(i=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(o=function(e){var t,n,r;for(t=e.split(";"),n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n{this.counter.value=this.rebuildPreview()})),this.counter.addEventListener("change",(()=>{this.calculateShift()})),this.max.addEventListener("change",(()=>{this.calculateShift()})),this.min.addEventListener("change",(()=>{this.calculateShift()})),this.stepper.dispatchEvent(new Event("change"))},calculateShift(){const e=this.counter.value,t=(this.max.value-this.min.value)/(e-1);this.stepper.value=Math.floor(t),this.stepper.dispatchEvent(new Event("change"))},rebuildPreview(){let t=parseInt(this.max.value),n=parseInt(this.min.value),r=parseInt(this.stepper.value);1>r&&(this.stepper.value=r=50),t||(t=parseInt(this.max.dataset.default),this.max.value=t),n||(n=100,this.min.value=n);let o=t,i=o/t*100;const s=this.makeSize(o,i);s.classList.add("main-image"),this.preview.innerHTML="",this.preview.appendChild(s);let u=1;for(;o>n&&(o-=r,!(ot.init()))}()}(); +//# sourceMappingURL=breakpoints-preview.js.map \ No newline at end of file diff --git a/js/cloudinary.js b/js/cloudinary.js index 6b0c11583..19657c905 100644 --- a/js/cloudinary.js +++ b/js/cloudinary.js @@ -1 +1,2 @@ -!function(){var t={951:function(t,e){var i,n,r,o;o=function(){var t="BKMGTPEZY".split("");function e(t,e){return t&&t.toLowerCase()===e.toLowerCase()}return function(i,n){return i="number"==typeof i?i:0,(n=n||{}).fixed="number"==typeof n.fixed?n.fixed:2,n.spacer="string"==typeof n.spacer?n.spacer:" ",n.calculate=function(t){var r=e(t,"si")?["k","B"]:["K","iB"],o=e(t,"si")?1e3:1024,s=Math.log(i)/Math.log(o)|0,a=i/Math.pow(o,s),c=a.toFixed(n.fixed);return s-1<3&&!e(t,"si")&&e(t,"jedec")&&(r[1]="B"),{suffix:s?(r[0]+"MGTPEZY")[s-1]+r[1]:1==(0|c)?"Byte":"Bytes",magnitude:s,result:a,fixed:c,bits:{result:a/8,fixed:(a/8).toFixed(n.fixed)}}},n.to=function(n,r){var o=e(r,"si")?1e3:1024,s=t.indexOf("string"==typeof n?n[0].toUpperCase():"B"),a=i;if(-1===s||0===s)return a.toFixed(2);for(;s>0;s--)a/=o;return a.toFixed(2)},n.human=function(t){var e=n.calculate(t);return e.fixed+n.spacer+e.suffix},n}},t.exports?t.exports=o():(n=[],void 0===(r="function"==typeof(i=o)?i.apply(e,n):i)||(t.exports=r))},998:function(t,e){var i,n,r;n=[],i=function(){"use strict";function t(t,e){var i,n,r;for(i=1,n=arguments.length;i>1].factor>t?r=e-1:n=e;return i[n]},l.prototype.parse=function(t,e){var i=t.match(this._regexp);if(null!==i){var n,r=i[3];if(a(this._prefixes,r))n=this._prefixes[r];else{if(e||(r=r.toLowerCase(),!a(this._lcPrefixes,r)))return;r=this._lcPrefixes[r],n=this._prefixes[r]}var o=+i[2];return void 0!==i[1]&&(o=-o),{factor:n,prefix:r,unit:i[4],value:o}}};var h={binary:l.create(",Ki,Mi,Gi,Ti,Pi,Ei,Zi,Yi".split(","),1024),SI:l.create("y,z,a,f,p,n,µ,m,,k,M,G,T,P,E,Z,Y".split(","),1e3,-8)},u={decimals:2,separator:" ",unit:""},d={scale:"SI",strict:!1};function f(e,i){var n=v(e,i=t({},u,i));e=String(n.value);var r=n.prefix+i.unit;return""===r?e:e+i.separator+r}var p={scale:"binary",unit:"B"};function g(e,i){return f(e,void 0===i?p:t({},p,i))}function m(t,e){var i=b(t,e);return i.value*i.factor}function b(e,i){if("string"!=typeof e)throw new TypeError("str must be a string");i=t({},d,i);var n=c(h,i.scale);if(void 0===n)throw new Error("missing scale");var r=n.parse(e,i.strict);if(void 0===r)throw new Error("cannot parse str");return r}function v(e,i){if(0===e)return{value:0,prefix:""};if(e<0){var n=v(-e,i);return n.value=-n.value,n}if("number"!=typeof e||Number.isNaN(e))throw new TypeError("value must be a number");i=t({},d,i);var r,o=c(h,i.scale);if(void 0===o)throw new Error("missing scale");var s=i.decimals;void 0!==s&&(r=Math.pow(10,s));var l,u=i.prefix;if(void 0!==u){if(!a(o._prefixes,u))throw new Error("invalid prefix");l=o._prefixes[u]}else{var f=o.findPrefix(e);if(void 0!==r)do{var p=(l=f.factor)/r;e=Math.round(e/p)*p}while((f=o.findPrefix(e)).factor!==l);else l=f.factor;u=f.prefix}return{prefix:u,value:void 0===r?e/l:Math.round(e*r/l)/r}}return f.bytes=g,f.parse=m,m.raw=b,f.raw=v,f.Scale=l,f},void 0===(r="function"==typeof i?i.apply(e,n):i)||(t.exports=r)},617:function(){!function(t,e){"use strict";var i,n,r={rootMargin:"256px 0px",threshold:.01,lazyImage:'img[loading="lazy"]',lazyIframe:'iframe[loading="lazy"]'},o={loading:"loading"in HTMLImageElement.prototype&&"loading"in HTMLIFrameElement.prototype,scrolling:"onscroll"in window};function s(t){var e,i,n=[];"picture"===t.parentNode.tagName.toLowerCase()&&((i=(e=t.parentNode).querySelector("source[data-lazy-remove]"))&&e.removeChild(i),n=Array.prototype.slice.call(t.parentNode.querySelectorAll("source"))),n.push(t),n.forEach((function(t){t.hasAttribute("data-lazy-srcset")&&(t.setAttribute("srcset",t.getAttribute("data-lazy-srcset")),t.removeAttribute("data-lazy-srcset"))})),t.setAttribute("src",t.getAttribute("data-lazy-src")),t.removeAttribute("data-lazy-src")}function a(t){var e=document.createElement("div");for(e.innerHTML=function(t){var e=t.textContent||t.innerHTML,n="data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 "+((e.match(/width=['"](\d+)['"]/)||!1)[1]||1)+" "+((e.match(/height=['"](\d+)['"]/)||!1)[1]||1)+"%27%3E%3C/svg%3E";return!o.loading&&o.scrolling&&(void 0===i?e=e.replace(/(?:\r\n|\r|\n|\t| )src=/g,' lazyload="1" src='):("picture"===t.parentNode.tagName.toLowerCase()&&(e=''+e),e=e.replace(/(?:\r\n|\r|\n|\t| )srcset=/g," data-lazy-srcset=").replace(/(?:\r\n|\r|\n|\t| )src=/g,' src="'+n+'" data-lazy-src='))),e}(t);e.firstChild;)o.loading||!o.scrolling||void 0===i||!e.firstChild.tagName||"img"!==e.firstChild.tagName.toLowerCase()&&"iframe"!==e.firstChild.tagName.toLowerCase()||i.observe(e.firstChild),t.parentNode.insertBefore(e.firstChild,t);t.parentNode.removeChild(t)}function c(){document.querySelectorAll("noscript.loading-lazy").forEach(a),void 0!==window.matchMedia&&window.matchMedia("print").addListener((function(t){t.matches&&document.querySelectorAll(r.lazyImage+"[data-lazy-src],"+r.lazyIframe+"[data-lazy-src]").forEach((function(t){s(t)}))}))}"undefined"!=typeof NodeList&&NodeList.prototype&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),"IntersectionObserver"in window&&(i=new IntersectionObserver((function(t,e){t.forEach((function(t){if(0!==t.intersectionRatio){var i=t.target;e.unobserve(i),s(i)}}))}),r)),n="requestAnimationFrame"in window?window.requestAnimationFrame:function(t){t()},/comp|inter/.test(document.readyState)?n(c):"addEventListener"in document?document.addEventListener("DOMContentLoaded",(function(){n(c)})):document.attachEvent("onreadystatechange",(function(){"complete"===document.readyState&&c()}))}()},616:function(t){t.exports=function(t,e){var i,n,r=0;function o(){var o,s,a=i,c=arguments.length;t:for(;a;){if(a.args.length===arguments.length){for(s=0;s-1}function zt(t,e){var i=this.__data__,n=te(i,t);return n<0?(++this.size,i.push([t,e])):i[n][1]=e,this}function Nt(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e1?i[r-1]:void 0,s=r>2?i[2]:void 0;for(o=t.length>3&&"function"==typeof o?(r--,o):void 0,s&&ke(i[0],i[1],s)&&(o=r<3?void 0:o,r=1),e=Object(e);++n-1&&t%1==0&&t0){if(++e>=o)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function De(t){if(null!=t){try{return ot.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function je(t,e){return t===e||t!=t&&e!=e}var Ie=re(function(){return arguments}())?re:function(t){return He(t)&&st.call(t,"callee")&&!bt.call(t,"callee")},Re=Array.isArray;function Fe(t){return null!=t&&We(t.length)&&!Be(t)}function ze(t){return He(t)&&Fe(t)}var Ne=_t||Je;function Be(t){if(!Ve(t))return!1;var e=ne(t);return e==p||e==g||e==h||e==x}function We(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=a}function Ve(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function He(t){return null!=t&&"object"==typeof t}function $e(t){if(!He(t)||ne(t)!=y)return!1;var e=gt(t);if(null===e)return!0;var i=st.call(e,"constructor")&&e.constructor;return"function"==typeof i&&i instanceof i&&ot.call(i)==lt}var Ue=X?J(X):se;function qe(t){return ge(t,Ye(t))}function Ye(t){return Fe(t)?Jt(t,!0):ae(t)}var Xe=me((function(t,e,i){ce(t,e,i)}));function Ge(t){return function(){return t}}function Ke(t){return t}function Je(){return!1}e.exports=Xe}).call(this)}).call(this,void 0!==i.g?i.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(t,e,i){var r,o;r=self,o=function(){return function(){"use strict";var t={720:function(t,e,i){i.r(e),i.d(e,{Scene:function(){return ae},Tweenable:function(){return St},interpolate:function(){return ee},processTweens:function(){return bt},setBezierFunction:function(){return H},shouldScheduleUpdate:function(){return xt},tween:function(){return Mt},unsetBezierFunction:function(){return $}});var n={};i.r(n),i.d(n,{bounce:function(){return I},bouncePast:function(){return R},easeFrom:function(){return z},easeFromTo:function(){return F},easeInBack:function(){return P},easeInCirc:function(){return O},easeInCubic:function(){return l},easeInExpo:function(){return _},easeInOutBack:function(){return L},easeInOutCirc:function(){return M},easeInOutCubic:function(){return u},easeInOutExpo:function(){return k},easeInOutQuad:function(){return c},easeInOutQuart:function(){return p},easeInOutQuint:function(){return b},easeInOutSine:function(){return x},easeInQuad:function(){return s},easeInQuart:function(){return d},easeInQuint:function(){return g},easeInSine:function(){return v},easeOutBack:function(){return T},easeOutBounce:function(){return E},easeOutCirc:function(){return S},easeOutCubic:function(){return h},easeOutExpo:function(){return w},easeOutQuad:function(){return a},easeOutQuart:function(){return f},easeOutQuint:function(){return m},easeOutSine:function(){return y},easeTo:function(){return N},elastic:function(){return A},linear:function(){return o},swingFrom:function(){return D},swingFromTo:function(){return C},swingTo:function(){return j}});var r={};i.r(r),i.d(r,{afterTween:function(){return Gt},beforeTween:function(){return Xt},doesApply:function(){return qt},tweenCreated:function(){return Yt}});var o=function(t){return t},s=function(t){return Math.pow(t,2)},a=function(t){return-(Math.pow(t-1,2)-1)},c=function(t){return(t/=.5)<1?.5*Math.pow(t,2):-.5*((t-=2)*t-2)},l=function(t){return Math.pow(t,3)},h=function(t){return Math.pow(t-1,3)+1},u=function(t){return(t/=.5)<1?.5*Math.pow(t,3):.5*(Math.pow(t-2,3)+2)},d=function(t){return Math.pow(t,4)},f=function(t){return-(Math.pow(t-1,4)-1)},p=function(t){return(t/=.5)<1?.5*Math.pow(t,4):-.5*((t-=2)*Math.pow(t,3)-2)},g=function(t){return Math.pow(t,5)},m=function(t){return Math.pow(t-1,5)+1},b=function(t){return(t/=.5)<1?.5*Math.pow(t,5):.5*(Math.pow(t-2,5)+2)},v=function(t){return 1-Math.cos(t*(Math.PI/2))},y=function(t){return Math.sin(t*(Math.PI/2))},x=function(t){return-.5*(Math.cos(Math.PI*t)-1)},_=function(t){return 0===t?0:Math.pow(2,10*(t-1))},w=function(t){return 1===t?1:1-Math.pow(2,-10*t)},k=function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},O=function(t){return-(Math.sqrt(1-t*t)-1)},S=function(t){return Math.sqrt(1-Math.pow(t-1,2))},M=function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},E=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},P=function(t){var e=1.70158;return t*t*((e+1)*t-e)},T=function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},L=function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},A=function(t){return-1*Math.pow(4,-8*t)*Math.sin((6*t-1)*(2*Math.PI)/2)+1},C=function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},D=function(t){var e=1.70158;return t*t*((e+1)*t-e)},j=function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},I=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},R=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?2-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?2-(7.5625*(t-=2.25/2.75)*t+.9375):2-(7.5625*(t-=2.625/2.75)*t+.984375)},F=function(t){return(t/=.5)<1?.5*Math.pow(t,4):-.5*((t-=2)*Math.pow(t,3)-2)},z=function(t){return Math.pow(t,4)},N=function(t){return Math.pow(t,.25)};function B(t,e,i,n,r,o){var s,a,c,l,h,u=0,d=0,f=0,p=function(t){return((u*t+d)*t+f)*t},g=function(t){return(3*u*t+2*d)*t+f},m=function(t){return t>=0?t:0-t};return u=1-(f=3*e)-(d=3*(n-e)-f),c=1-(h=3*i)-(l=3*(r-i)-h),s=t,a=function(t){return 1/(200*t)}(o),function(t){return((c*t+l)*t+h)*t}(function(t,e){var i,n,r,o,s,a;for(r=t,a=0;a<8;a++){if(o=p(r)-t,m(o)(n=1))return n;for(;io?i=r:n=r,r=.5*(n-i)+i}return r}(s,a))}var W,V=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.25,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.25,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.75,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.75;return function(r){return B(r,t,e,i,n,1)}},H=function(t,e,i,n,r){var o=V(e,i,n,r);return o.displayName=t,o.x1=e,o.y1=i,o.x2=n,o.y2=r,St.formulas[t]=o},$=function(t){return delete St.formulas[t]};function U(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function q(t,e){for(var i=0;it.length)&&(e=t.length);for(var i=0,n=new Array(e);ia?a:e;t._hasEnded=c>=a;var l=o-(a-c),h=t._filters.length>0;if(t._hasEnded)return t._render(s,t._data,l),t.stop(!0);h&&t._applyFilter(st),c1&&void 0!==arguments[1]?arguments[1]:it,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(Array.isArray(e))return V.apply(void 0,X(e));var n=Y(e);if(pt[e])return pt[e];if(n===lt||n===ct)for(var r in t)i[r]=e;else for(var o in t)i[o]=e[o]||it;return i},kt=function(t){t===dt?(dt=t._next)?dt._previous=null:ft=null:t===ft?(ft=t._previous)?ft._next=null:dt=null:(tt=t._previous,et=t._next,tt._next=et,et._previous=tt),t._previous=t._next=null},Ot="function"==typeof Promise?Promise:null;W=Symbol.toStringTag;var St=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;U(this,t),Q(this,W,"Promise"),this._config={},this._data={},this._delay=0,this._filters=[],this._next=null,this._previous=null,this._timestamp=null,this._hasEnded=!1,this._resolve=null,this._reject=null,this._currentState=e||{},this._originalState={},this._targetState={},this._start=ut,this._render=ut,this._promiseCtor=Ot,i&&this.setConfig(i)}var e;return e=[{key:"_applyFilter",value:function(t){for(var e=this._filters.length;e>0;e--){var i=this._filters[e-e][t];i&&i(this)}}},{key:"tween",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return this._isPlaying&&this.stop(),!e&&this._config||this.setConfig(e),this._pausedAtTime=null,this._timestamp=t.now(),this._start(this.get(),this._data),this._delay&&this._render(this._currentState,this._data,0),this._resume(this._timestamp)}},{key:"setConfig",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=this._config;for(var n in e)i[n]=e[n];var r=i.promise,o=void 0===r?this._promiseCtor:r,s=i.start,a=void 0===s?ut:s,c=i.finish,l=i.render,h=void 0===l?this._config.step||ut:l,u=i.step,d=void 0===u?ut:u;this._data=i.data||i.attachment||this._data,this._isPlaying=!1,this._pausedAtTime=null,this._scheduleId=null,this._delay=e.delay||0,this._start=a,this._render=h||d,this._duration=i.duration||500,this._promiseCtor=o,c&&(this._resolve=c);var f=e.from,p=e.to,g=void 0===p?{}:p,m=this._currentState,b=this._originalState,v=this._targetState;for(var y in f)m[y]=f[y];var x=!1;for(var _ in m){var w=m[_];x||Y(w)!==lt||(x=!0),b[_]=w,v[_]=g.hasOwnProperty(_)?g[_]:w}if(this._easing=wt(this._currentState,i.easing,this._easing),this._filters.length=0,x){for(var k in t.filters)t.filters[k].doesApply(this)&&this._filters.push(t.filters[k]);this._applyFilter(at)}return this}},{key:"then",value:function(t,e){var i=this;return this._promise=new this._promiseCtor((function(t,e){i._resolve=t,i._reject=e})),this._promise.then(t,e)}},{key:"catch",value:function(t){return this.then().catch(t)}},{key:"finally",value:function(t){return this.then().finally(t)}},{key:"get",value:function(){return J({},this._currentState)}},{key:"set",value:function(t){this._currentState=t}},{key:"pause",value:function(){if(this._isPlaying)return this._pausedAtTime=t.now(),this._isPlaying=!1,kt(this),this}},{key:"resume",value:function(){return this._resume()}},{key:"_resume",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.now();return null===this._timestamp?this.tween():this._isPlaying?this._promise:(this._pausedAtTime&&(this._timestamp+=e-this._pausedAtTime,this._pausedAtTime=null),this._isPlaying=!0,null===dt?(dt=this,ft=this):(this._previous=ft,ft._next=this,ft=this),this)}},{key:"seek",value:function(e){e=Math.max(e,0);var i=t.now();return this._timestamp+e===0||(this._timestamp=i-e,mt(this,i)),this}},{key:"stop",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this._isPlaying)return this;this._isPlaying=!1,kt(this);var e=this._filters.length>0;return t&&(e&&this._applyFilter(st),gt(1,this._currentState,this._originalState,this._targetState,1,0,this._easing),e&&(this._applyFilter(rt),this._applyFilter(ot))),this._resolve&&this._resolve({data:this._data,state:this._currentState,tweenable:this}),this._resolve=null,this._reject=null,this}},{key:"cancel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._currentState,i=this._data;return this._isPlaying?(this._reject&&this._reject({data:i,state:e,tweenable:this}),this._resolve=null,this._reject=null,this.stop(t)):this}},{key:"isPlaying",value:function(){return this._isPlaying}},{key:"hasEnded",value:function(){return this._hasEnded}},{key:"setScheduleFunction",value:function(e){t.setScheduleFunction(e)}},{key:"data",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t&&(this._data=J({},t)),this._data}},{key:"dispose",value:function(){for(var t in this)delete this[t]}}],e&&q(t.prototype,e),t}();function Mt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=new St;return e.tween(t),e.tweenable=e,e}Q(St,"now",(function(){return Z})),Q(St,"setScheduleFunction",(function(t){return ht=t})),Q(St,"filters",{}),Q(St,"formulas",pt),xt(!0);var Et,Pt,Tt=/(\d|-|\.)/,Lt=/([^\-0-9.]+)/g,At=/[0-9.-]+/g,Ct=(Et=At.source,Pt=/,\s*/.source,new RegExp("rgba?\\(".concat(Et).concat(Pt).concat(Et).concat(Pt).concat(Et,"(").concat(Pt).concat(Et,")?\\)"),"g")),Dt=/^.*\(/,jt=/#([0-9]|[a-f]){3,6}/gi,It="VAL",Rt=function(t,e){return t.map((function(t,i){return"_".concat(e,"_").concat(i)}))};function Ft(t){return parseInt(t,16)}var zt=function(t){return"rgb(".concat((e=t,3===(e=e.replace(/#/,"")).length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]),[Ft(e.substr(0,2)),Ft(e.substr(2,2)),Ft(e.substr(4,2))]).join(","),")");var e},Nt=function(t,e,i){var n=e.match(t),r=e.replace(t,It);return n&&n.forEach((function(t){return r=r.replace(It,i(t))})),r},Bt=function(t){for(var e in t){var i=t[e];"string"==typeof i&&i.match(jt)&&(t[e]=Nt(jt,i,zt))}},Wt=function(t){var e=t.match(At),i=e.slice(0,3).map(Math.floor),n=t.match(Dt)[0];if(3===e.length)return"".concat(n).concat(i.join(","),")");if(4===e.length)return"".concat(n).concat(i.join(","),",").concat(e[3],")");throw new Error("Invalid rgbChunk: ".concat(t))},Vt=function(t){return t.match(At)},Ht=function(t,e){var i={};return e.forEach((function(e){i[e]=t[e],delete t[e]})),i},$t=function(t,e){return e.map((function(e){return t[e]}))},Ut=function(t,e){return e.forEach((function(e){return t=t.replace(It,+e.toFixed(4))})),t},qt=function(t){for(var e in t._currentState)if("string"==typeof t._currentState[e])return!0;return!1};function Yt(t){var e=t._currentState;[e,t._originalState,t._targetState].forEach(Bt),t._tokenData=function(t){var e,i,n={};for(var r in t){var o=t[r];"string"==typeof o&&(n[r]={formatString:(e=o,i=void 0,i=e.match(Lt),i?(1===i.length||e.charAt(0).match(Tt))&&i.unshift(""):i=["",""],i.join(It)),chunkNames:Rt(Vt(o),r)})}return n}(e)}function Xt(t){var e=t._currentState,i=t._originalState,n=t._targetState,r=t._easing,o=t._tokenData;!function(t,e){var i=function(i){var n=e[i].chunkNames,r=t[i];if("string"==typeof r){var o=r.split(" "),s=o[o.length-1];n.forEach((function(e,i){return t[e]=o[i]||s}))}else n.forEach((function(e){return t[e]=r}));delete t[i]};for(var n in e)i(n)}(r,o),[e,i,n].forEach((function(t){return function(t,e){var i=function(i){Vt(t[i]).forEach((function(n,r){return t[e[i].chunkNames[r]]=+n})),delete t[i]};for(var n in e)i(n)}(t,o)}))}function Gt(t){var e=t._currentState,i=t._originalState,n=t._targetState,r=t._easing,o=t._tokenData;[e,i,n].forEach((function(t){return function(t,e){for(var i in e){var n=e[i],r=n.chunkNames,o=n.formatString,s=Ut(o,$t(Ht(t,r),r));t[i]=Nt(Ct,s,Wt)}}(t,o)})),function(t,e){for(var i in e){var n=e[i].chunkNames,r=t[n[0]];t[i]="string"==typeof r?n.map((function(e){var i=t[e];return delete t[e],i})).join(" "):r}}(r,o)}function Kt(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Jt(t){for(var e=1;e4&&void 0!==arguments[4]?arguments[4]:0,o=Jt({},t),s=wt(t,n);for(var a in Zt._filters.length=0,Zt.set({}),Zt._currentState=o,Zt._originalState=t,Zt._targetState=e,Zt._easing=s,te)te[a].doesApply(Zt)&&Zt._filters.push(te[a]);Zt._applyFilter("tweenCreated"),Zt._applyFilter("beforeTween");var c=gt(i,o,t,e,1,r,s);return Zt._applyFilter("afterTween"),c};function ie(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);it.strokeWidth&&(e=t.trailWidth);var i=50-e/2;return r.render(this._pathTemplate,{radius:i,"2radius":2*i})},o.prototype._trailString=function(t){return this._pathString(t)},e.exports=o},{"./shape":8,"./utils":10}],4:[function(t,e,i){var n=t("./shape"),r=t("./utils"),o=function(t,e){this._pathTemplate=e.vertical?"M {center},100 L {center},0":"M 0,{center} L 100,{center}",n.apply(this,arguments)};o.prototype=new n,o.prototype.constructor=o,o.prototype._initializeSvg=function(t,e){var i=e.vertical?"0 0 "+e.strokeWidth+" 100":"0 0 100 "+e.strokeWidth;t.setAttribute("viewBox",i),t.setAttribute("preserveAspectRatio","none")},o.prototype._pathString=function(t){return r.render(this._pathTemplate,{center:t.strokeWidth/2})},o.prototype._trailString=function(t){return this._pathString(t)},e.exports=o},{"./shape":8,"./utils":10}],5:[function(t,e,i){e.exports={Line:t("./line"),Circle:t("./circle"),SemiCircle:t("./semicircle"),Square:t("./square"),Path:t("./path"),Shape:t("./shape"),utils:t("./utils")}},{"./circle":3,"./line":4,"./path":6,"./semicircle":7,"./shape":8,"./square":9,"./utils":10}],6:[function(t,e,i){var n=t("shifty"),r=t("./utils"),o=n.Tweenable,s={easeIn:"easeInCubic",easeOut:"easeOutCubic",easeInOut:"easeInOutCubic"},a=function t(e,i){if(!(this instanceof t))throw new Error("Constructor was called without new keyword");var n;i=r.extend({delay:0,duration:800,easing:"linear",from:{},to:{},step:function(){}},i),n=r.isString(e)?document.querySelector(e):e,this.path=n,this._opts=i,this._tweenable=null;var o=this.path.getTotalLength();this.path.style.strokeDasharray=o+" "+o,this.set(0)};a.prototype.value=function(){var t=this._getComputedDashOffset(),e=this.path.getTotalLength();return parseFloat((1-t/e).toFixed(6),10)},a.prototype.set=function(t){this.stop(),this.path.style.strokeDashoffset=this._progressToOffset(t);var e=this._opts.step;if(r.isFunction(e)){var i=this._easing(this._opts.easing);e(this._calculateTo(t,i),this._opts.shape||this,this._opts.attachment)}},a.prototype.stop=function(){this._stopTween(),this.path.style.strokeDashoffset=this._getComputedDashOffset()},a.prototype.animate=function(t,e,i){e=e||{},r.isFunction(e)&&(i=e,e={});var n=r.extend({},e),s=r.extend({},this._opts);e=r.extend(s,e);var a=this._easing(e.easing),c=this._resolveFromAndTo(t,a,n);this.stop(),this.path.getBoundingClientRect();var l=this._getComputedDashOffset(),h=this._progressToOffset(t),u=this;this._tweenable=new o,this._tweenable.tween({from:r.extend({offset:l},c.from),to:r.extend({offset:h},c.to),duration:e.duration,delay:e.delay,easing:a,step:function(t){u.path.style.strokeDashoffset=t.offset;var i=e.shape||u;e.step(t,i,e.attachment)}}).then((function(t){r.isFunction(i)&&i()})).catch((function(t){throw console.error("Error in tweening:",t),t}))},a.prototype._getComputedDashOffset=function(){var t=window.getComputedStyle(this.path,null);return parseFloat(t.getPropertyValue("stroke-dashoffset"),10)},a.prototype._progressToOffset=function(t){var e=this.path.getTotalLength();return e-t*e},a.prototype._resolveFromAndTo=function(t,e,i){return i.from&&i.to?{from:i.from,to:i.to}:{from:this._calculateFrom(e),to:this._calculateTo(t,e)}},a.prototype._calculateFrom=function(t){return n.interpolate(this._opts.from,this._opts.to,this.value(),t)},a.prototype._calculateTo=function(t,e){return n.interpolate(this._opts.from,this._opts.to,t,e)},a.prototype._stopTween=function(){null!==this._tweenable&&(this._tweenable.stop(!0),this._tweenable=null)},a.prototype._easing=function(t){return s.hasOwnProperty(t)?s[t]:t},e.exports=a},{"./utils":10,shifty:2}],7:[function(t,e,i){var n=t("./shape"),r=t("./circle"),o=t("./utils"),s=function(t,e){this._pathTemplate="M 50,50 m -{radius},0 a {radius},{radius} 0 1 1 {2radius},0",this.containerAspectRatio=2,n.apply(this,arguments)};s.prototype=new n,s.prototype.constructor=s,s.prototype._initializeSvg=function(t,e){t.setAttribute("viewBox","0 0 100 50")},s.prototype._initializeTextContainer=function(t,e,i){t.text.style&&(i.style.top="auto",i.style.bottom="0",t.text.alignToBottom?o.setStyle(i,"transform","translate(-50%, 0)"):o.setStyle(i,"transform","translate(-50%, 50%)"))},s.prototype._pathString=r.prototype._pathString,s.prototype._trailString=r.prototype._trailString,e.exports=s},{"./circle":3,"./shape":8,"./utils":10}],8:[function(t,e,i){var n=t("./path"),r=t("./utils"),o="Object is destroyed",s=function t(e,i){if(!(this instanceof t))throw new Error("Constructor was called without new keyword");if(0!==arguments.length){this._opts=r.extend({color:"#555",strokeWidth:1,trailColor:null,trailWidth:null,fill:null,text:{style:{color:null,position:"absolute",left:"50%",top:"50%",padding:0,margin:0,transform:{prefix:!0,value:"translate(-50%, -50%)"}},autoStyleContainer:!0,alignToBottom:!0,value:null,className:"progressbar-text"},svgStyle:{display:"block",width:"100%"},warnings:!1},i,!0),r.isObject(i)&&void 0!==i.svgStyle&&(this._opts.svgStyle=i.svgStyle),r.isObject(i)&&r.isObject(i.text)&&void 0!==i.text.style&&(this._opts.text.style=i.text.style);var o,s=this._createSvgView(this._opts);if(!(o=r.isString(e)?document.querySelector(e):e))throw new Error("Container does not exist: "+e);this._container=o,this._container.appendChild(s.svg),this._opts.warnings&&this._warnContainerAspectRatio(this._container),this._opts.svgStyle&&r.setStyles(s.svg,this._opts.svgStyle),this.svg=s.svg,this.path=s.path,this.trail=s.trail,this.text=null;var a=r.extend({attachment:void 0,shape:this},this._opts);this._progressPath=new n(s.path,a),r.isObject(this._opts.text)&&null!==this._opts.text.value&&this.setText(this._opts.text.value)}};s.prototype.animate=function(t,e,i){if(null===this._progressPath)throw new Error(o);this._progressPath.animate(t,e,i)},s.prototype.stop=function(){if(null===this._progressPath)throw new Error(o);void 0!==this._progressPath&&this._progressPath.stop()},s.prototype.pause=function(){if(null===this._progressPath)throw new Error(o);void 0!==this._progressPath&&this._progressPath._tweenable&&this._progressPath._tweenable.pause()},s.prototype.resume=function(){if(null===this._progressPath)throw new Error(o);void 0!==this._progressPath&&this._progressPath._tweenable&&this._progressPath._tweenable.resume()},s.prototype.destroy=function(){if(null===this._progressPath)throw new Error(o);this.stop(),this.svg.parentNode.removeChild(this.svg),this.svg=null,this.path=null,this.trail=null,this._progressPath=null,null!==this.text&&(this.text.parentNode.removeChild(this.text),this.text=null)},s.prototype.set=function(t){if(null===this._progressPath)throw new Error(o);this._progressPath.set(t)},s.prototype.value=function(){if(null===this._progressPath)throw new Error(o);return void 0===this._progressPath?0:this._progressPath.value()},s.prototype.setText=function(t){if(null===this._progressPath)throw new Error(o);null===this.text&&(this.text=this._createTextContainer(this._opts,this._container),this._container.appendChild(this.text)),r.isObject(t)?(r.removeChildren(this.text),this.text.appendChild(t)):this.text.innerHTML=t},s.prototype._createSvgView=function(t){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");this._initializeSvg(e,t);var i=null;(t.trailColor||t.trailWidth)&&(i=this._createTrail(t),e.appendChild(i));var n=this._createPath(t);return e.appendChild(n),{svg:e,path:n,trail:i}},s.prototype._initializeSvg=function(t,e){t.setAttribute("viewBox","0 0 100 100")},s.prototype._createPath=function(t){var e=this._pathString(t);return this._createPathElement(e,t)},s.prototype._createTrail=function(t){var e=this._trailString(t),i=r.extend({},t);return i.trailColor||(i.trailColor="#eee"),i.trailWidth||(i.trailWidth=i.strokeWidth),i.color=i.trailColor,i.strokeWidth=i.trailWidth,i.fill=null,this._createPathElement(e,i)},s.prototype._createPathElement=function(t,e){var i=document.createElementNS("http://www.w3.org/2000/svg","path");return i.setAttribute("d",t),i.setAttribute("stroke",e.color),i.setAttribute("stroke-width",e.strokeWidth),e.fill?i.setAttribute("fill",e.fill):i.setAttribute("fill-opacity","0"),i},s.prototype._createTextContainer=function(t,e){var i=document.createElement("div");i.className=t.text.className;var n=t.text.style;return n&&(t.text.autoStyleContainer&&(e.style.position="relative"),r.setStyles(i,n),n.color||(i.style.color=t.color)),this._initializeTextContainer(t,e,i),i},s.prototype._initializeTextContainer=function(t,e,i){},s.prototype._pathString=function(t){throw new Error("Override this function for each progress bar")},s.prototype._trailString=function(t){throw new Error("Override this function for each progress bar")},s.prototype._warnContainerAspectRatio=function(t){if(this.containerAspectRatio){var e=window.getComputedStyle(t,null),i=parseFloat(e.getPropertyValue("width"),10),n=parseFloat(e.getPropertyValue("height"),10);r.floatEquals(this.containerAspectRatio,i/n)||(console.warn("Incorrect aspect ratio of container","#"+t.id,"detected:",e.getPropertyValue("width")+"(width)","/",e.getPropertyValue("height")+"(height)","=",i/n),console.warn("Aspect ratio of should be",this.containerAspectRatio))}},e.exports=s},{"./path":6,"./utils":10}],9:[function(t,e,i){var n=t("./shape"),r=t("./utils"),o=function(t,e){this._pathTemplate="M 0,{halfOfStrokeWidth} L {width},{halfOfStrokeWidth} L {width},{width} L {halfOfStrokeWidth},{width} L {halfOfStrokeWidth},{strokeWidth}",this._trailTemplate="M {startMargin},{halfOfStrokeWidth} L {width},{halfOfStrokeWidth} L {width},{width} L {halfOfStrokeWidth},{width} L {halfOfStrokeWidth},{halfOfStrokeWidth}",n.apply(this,arguments)};o.prototype=new n,o.prototype.constructor=o,o.prototype._pathString=function(t){var e=100-t.strokeWidth/2;return r.render(this._pathTemplate,{width:e,strokeWidth:t.strokeWidth,halfOfStrokeWidth:t.strokeWidth/2})},o.prototype._trailString=function(t){var e=100-t.strokeWidth/2;return r.render(this._trailTemplate,{width:e,strokeWidth:t.strokeWidth,halfOfStrokeWidth:t.strokeWidth/2,startMargin:t.strokeWidth/2-t.trailWidth/2})},e.exports=o},{"./shape":8,"./utils":10}],10:[function(t,e,i){var n=t("lodash.merge"),r="Webkit Moz O ms".split(" "),o=.001;function s(t,e){var i=t;for(var n in e)if(e.hasOwnProperty(n)){var r=e[n],o=new RegExp("\\{"+n+"\\}","g");i=i.replace(o,r)}return i}function a(t,e,i){for(var n=t.style,o=0;o=0),a.type){case"b":i=parseInt(i,10).toString(2);break;case"c":i=String.fromCharCode(parseInt(i,10));break;case"d":case"i":i=parseInt(i,10);break;case"j":i=JSON.stringify(i,null,a.width?parseInt(a.width):0);break;case"e":i=a.precision?parseFloat(i).toExponential(a.precision):parseFloat(i).toExponential();break;case"f":i=a.precision?parseFloat(i).toFixed(a.precision):parseFloat(i);break;case"g":i=a.precision?String(Number(i.toPrecision(a.precision))):parseFloat(i);break;case"o":i=(parseInt(i,10)>>>0).toString(8);break;case"s":i=String(i),i=a.precision?i.substring(0,a.precision):i;break;case"t":i=String(!!i),i=a.precision?i.substring(0,a.precision):i;break;case"T":i=Object.prototype.toString.call(i).slice(8,-1).toLowerCase(),i=a.precision?i.substring(0,a.precision):i;break;case"u":i=parseInt(i,10)>>>0;break;case"v":i=i.valueOf(),i=a.precision?i.substring(0,a.precision):i;break;case"x":i=(parseInt(i,10)>>>0).toString(16);break;case"X":i=(parseInt(i,10)>>>0).toString(16).toUpperCase()}r.json.test(a.type)?g+=i:(!r.number.test(a.type)||u&&!a.sign?d="":(d=u?"+":"-",i=i.toString().replace(r.sign,"")),l=a.pad_char?"0"===a.pad_char?"0":a.pad_char.charAt(1):" ",h=a.width-(d+i).length,c=a.width&&h>0?l.repeat(h):"",g+=a.align?d+i+c:"0"===l?d+c+i:c+d+i)}return g}(function(t){if(a[t])return a[t];var e,i=t,n=[],o=0;for(;i;){if(null!==(e=r.text.exec(i)))n.push(e[0]);else if(null!==(e=r.modulo.exec(i)))n.push("%");else{if(null===(e=r.placeholder.exec(i)))throw new SyntaxError("[sprintf] unexpected placeholder");if(e[2]){o|=1;var s=[],c=e[2],l=[];if(null===(l=r.key.exec(c)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(s.push(l[1]);""!==(c=c.substring(l[0].length));)if(null!==(l=r.key_access.exec(c)))s.push(l[1]);else{if(null===(l=r.index_access.exec(c)))throw new SyntaxError("[sprintf] failed to parse named argument key");s.push(l[1])}e[2]=s}else o|=2;if(3===o)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");n.push({placeholder:e[0],param_no:e[1],keys:e[2],sign:e[3],pad_char:e[4],align:e[5],width:e[6],precision:e[7],type:e[8]})}i=i.substring(e[0].length)}return a[t]=n}(t),arguments)}function s(t,e){return o.apply(null,[t].concat(e||[]))}var a=Object.create(null);o,s,"undefined"!=typeof window&&(window.sprintf=o,window.vsprintf=s,void 0===(n=function(){return{sprintf:o,vsprintf:s}}.call(e,i,e,t))||(t.exports=n))}()},544:function(){!function(){const t=function(){const t=jQuery("#field-video_player").val(),e=jQuery("#field-video_controls").prop("checked"),i=jQuery('#field-video_autoplay_mode option[value="off"]');"cld"!==t||e?i.prop("disabled",!1):(i.prop("disabled",!0),i.prop("selected")&&i.next().prop("selected",!0))};t(),jQuery(document).on("change","#field-video_player",t),jQuery(document).on("change","#field-video_controls",t),jQuery(document).ready((function(t){t.isFunction(t.fn.wpColorPicker)&&t(".regular-color").wpColorPicker(),t(document).on("tabs.init",(function(){const e=t(".settings-tab-trigger"),i=t(".settings-tab-section");t(this).on("click",".settings-tab-trigger",(function(n){const r=t(this),o=t(r.attr("href"));n.preventDefault(),e.removeClass("active"),i.removeClass("active"),r.addClass("active"),o.addClass("active"),t(document).trigger("settings.tabbed",r)})),t(".cld-field").not('[data-condition="false"]').each((function(){const e=t(this),i=e.data("condition");for(const n in i){let r=t("#field-"+n);const o=i[n],s=e.closest("tr");r.length||(r=t(`[id^=field-${n}-]`));let a=!1;r.on("change init",(function(t,e=!1){if(a&&e)return;let i=this.value===o||this.checked;if(Array.isArray(o)&&2===o.length)switch(o[1]){case"neq":i=this.value!==o[0];break;case"gt":i=this.value>o[0];break;case"lt":i=this.value=0;--n){var r=this.tryEntries[n],s=r.completion;if("root"===r.tryLoc)return i("end");if(r.tryLoc<=this.prev){var a=o.call(r,"catchLoc"),c=o.call(r,"finallyLoc");if(a&&c){if(this.prev=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),E(i),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var n=i.completion;if("throw"===n.type){var r=n.arg;E(i)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,i){return this.delegate={iterator:T(t),resultName:e,nextLoc:i},"next"===this.method&&(this.arg=void 0),p}},e}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},738:function(t){function e(i){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(i)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},756:function(t,e,i){var n=i(633)();t.exports=n;try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}},e={};function i(n){var r=e[n];if(void 0!==r)return r.exports;var o=e[n]={exports:{}};return t[n].call(o.exports,o,o.exports,i),o.exports}i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,{a:e}),e},i.d=function(t,e){for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},function(){var t;i.g.importScripts&&(t=i.g.location+"");var e=i.g.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!t||!/^http(s?):/.test(t));)t=n[r--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=t}(),function(){"use strict";i(617),i(712);var t=i(544),e=i.n(t);const n={sample:{image:document.getElementById("transformation-sample-image"),video:document.getElementById("transformation-sample-video")},preview:{image:document.getElementById("sample-image"),video:document.getElementById("sample-video")},fields:document.getElementsByClassName("cld-ui-input"),button:{image:document.getElementById("refresh-image-preview"),video:document.getElementById("refresh-video-preview")},spinner:{image:document.getElementById("image-loader"),video:document.getElementById("video-loader")},optimization:{image:document.getElementById("image_settings.image_optimization"),video:document.getElementById("video_settings.video_optimization")},error_container:document.getElementById("cld-preview-error"),activeItem:null,elements:{image:[],video:[]},_placeItem(t){null!==t&&(t.style.display="block",t.style.visibility="visible",t.style.position="absolute",t.style.top=t.parentElement.clientHeight/2-t.clientHeight/2+"px",t.style.left=t.parentElement.clientWidth/2-t.clientWidth/2+"px")},_setLoading(t){this.sample[t]&&(this.button[t].style.display="block",this._placeItem(this.button[t]),this.preview[t].style.opacity="0.1")},_build(t){if(!this.sample[t])return;this.sample[t].innerHTML="",this.elements[t]=[];for(const e of this.fields){if(t!==e.dataset.context||e.dataset.disabled&&"true"===e.dataset.disabled)continue;let i=e.value.trim();if(i.length){if("select-one"===e.type){if("none"===i||!1===this.optimization[t].checked)continue;i=e.dataset.meta+"_"+i}else t=e.dataset.context,e.dataset.meta&&(i=e.dataset.meta+"_"+i),e.dataset.suffix&&(i+=e.dataset.suffix),i=this._transformations(i,t,!0);i&&this.elements[t].push(i)}}let e="";this.elements[t].length&&(e="/"+this._getGlobalTransformationElements(t).replace(/ /g,"%20")),this.sample[t].textContent=e,this.sample[t].parentElement.href="https://res.cloudinary.com/demo/"+this.sample[t].parentElement.innerText.trim().replace("../","").replace(/ /g,"%20")},_clearLoading(t){this.spinner[t].style.visibility="hidden",this.activeItem=null,this.preview[t].style.opacity=1},_refresh(t,e){if(t&&t.preventDefault(),!this.sample[e])return;const i=this,n=CLD_GLOBAL_TRANSFORMATIONS[e].preview_url+this._getGlobalTransformationElements(e)+CLD_GLOBAL_TRANSFORMATIONS[e].file;if(this.button[e].style.display="none",this._placeItem(this.spinner[e]),"image"===e){const t=new Image;t.onload=function(){i.preview[e].src=this.src,i._clearLoading(e),i.error_container&&(i.error_container.style.display="none"),t.remove()},t.onerror=function(){const t=i.elements[e].includes("f_mp4");i.error_container&&(i.error_container.style.display="block",t?(i.error_container.innerHTML=CLD_GLOBAL_TRANSFORMATIONS[e].warning.replace("%s","f_mp4"),i.error_container.classList.replace("settings-alert-error","settings-alert-warning")):(i.error_container.innerHTML=CLD_GLOBAL_TRANSFORMATIONS[e].error,i.error_container.classList.replace("settings-alert-warning","settings-alert-error"))),i._clearLoading(e)},t.src=n}else{const t=i._transformations(i._getGlobalTransformationElements(e),e);samplePlayer.source({publicId:"dog",transformation:t}),i._clearLoading(e)}},_getGlobalTransformationElements(t){let e=[];return e.push(this.elements[t].slice(0,2).join(",")),e.push(this.elements[t].slice(2).join(",")),e=e.filter((t=>t)).join("/"),e},_transformations(t,e,i=!1){const n=CLD_GLOBAL_TRANSFORMATIONS[e].valid_types;let r=null;const o=t.split("/"),s=[];for(let t=0;t=0||(r[i]=t[i]);return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,i)&&(r[i]=t[i])}return r}var s,a,c,l,h=i(616),u=i.n(h);i(604),u()(console.error);s={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},a=["(","?"],c={")":["("],":":["?","?:"]},l=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var d={"!":function(t){return!t},"*":function(t,e){return t*e},"/":function(t,e){return t/e},"%":function(t,e){return t%e},"+":function(t,e){return t+e},"-":function(t,e){return t-e},"<":function(t,e){return t":function(t,e){return t>e},">=":function(t,e){return t>=e},"==":function(t,e){return t===e},"!=":function(t,e){return t!==e},"&&":function(t,e){return t&&e},"||":function(t,e){return t||e},"?:":function(t,e,i){if(t)throw e;return i}};function f(t){var e=function(t){for(var e,i,n,r,o=[],h=[];e=t.match(l);){for(i=e[0],(n=t.substr(0,e.index).trim())&&o.push(n);r=h.pop();){if(c[i]){if(c[i][0]===r){i=c[i][1]||i;break}}else if(a.indexOf(r)>=0||s[r]3&&void 0!==arguments[3]?arguments[3]:10,s=t[e];if(_(i)&&x(n))if("function"==typeof r)if("number"==typeof o){var a={callback:r,priority:o,namespace:n};if(s[i]){var c,l=s[i].handlers;for(c=l.length;c>0&&!(o>=l[c-1].priority);c--);c===l.length?l[c]=a:l.splice(c,0,a),s.__current.forEach((function(t){t.name===i&&t.currentIndex>=c&&t.currentIndex++}))}else s[i]={handlers:[a],runs:0};"hookAdded"!==i&&t.doAction("hookAdded",i,n,r,o)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}};var k=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(n,r){var o=t[e];if(_(n)&&(i||x(r))){if(!o[n])return 0;var s=0;if(i)s=o[n].handlers.length,o[n]={runs:o[n].runs,handlers:[]};else for(var a=o[n].handlers,c=function(t){a[t].namespace===r&&(a.splice(t,1),s++,o.__current.forEach((function(e){e.name===n&&e.currentIndex>=t&&e.currentIndex--})))},l=a.length-1;l>=0;l--)c(l);return"hookRemoved"!==n&&t.doAction("hookRemoved",n,r),s}}};var O=function(t,e){return function(i,n){var r=t[e];return void 0!==n?i in r&&r[i].handlers.some((function(t){return t.namespace===n})):i in r}};var S=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(n){var r=t[e];r[n]||(r[n]={handlers:[],runs:0}),r[n].runs++;var o=r[n].handlers;for(var s=arguments.length,a=new Array(s>1?s-1:0),c=1;c1&&void 0!==arguments[1]?arguments[1]:"default";n.data[e]=b(b(b({},v),n.data[e]),t),n.data[e][""]=b(b({},v[""]),n.data[e][""])},a=function(t,e){s(t,e),o()},c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",e=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;return n.data[t]||s(void 0,t),n.dcnpgettext(t,e,i,r,o)},l=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default"},h=function(t,e,n){var r=c(n,e,t);return i?(r=i.applyFilters("i18n.gettext_with_context",r,t,e,n),i.applyFilters("i18n.gettext_with_context_"+l(n),r,t,e,n)):r};if(t&&a(t,e),i){var u=function(t){y.test(t)&&o()};i.addAction("hookAdded","core/i18n",u),i.addAction("hookRemoved","core/i18n",u)}return{getLocaleData:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return n.data[t]},setLocaleData:a,resetLocaleData:function(t,e){n.data={},n.pluralForms={},a(t,e)},subscribe:function(t){return r.add(t),function(){return r.delete(t)}},__:function(t,e){var n=c(e,void 0,t);return i?(n=i.applyFilters("i18n.gettext",n,t,e),i.applyFilters("i18n.gettext_"+l(e),n,t,e)):n},_x:h,_n:function(t,e,n,r){var o=c(r,void 0,t,e,n);return i?(o=i.applyFilters("i18n.ngettext",o,t,e,n,r),i.applyFilters("i18n.ngettext_"+l(r),o,t,e,n,r)):o},_nx:function(t,e,n,r,o){var s=c(o,r,t,e,n);return i?(s=i.applyFilters("i18n.ngettext_with_context",s,t,e,n,r,o),i.applyFilters("i18n.ngettext_with_context_"+l(o),s,t,e,n,r,o)):s},isRTL:function(){return"rtl"===h("ltr","text direction")},hasTranslation:function(t,e,r){var o,s,a=e?e+""+t:t,c=!(null===(o=n.data)||void 0===o||null===(s=o[null!=r?r:"default"])||void 0===s||!s[a]);return i&&(c=i.applyFilters("i18n.has_translation",c,t,e,r),c=i.applyFilters("i18n.has_translation_"+l(r),c,t,e,r)),c}}}(void 0,void 0,L)),C=(A.getLocaleData.bind(A),A.setLocaleData.bind(A),A.resetLocaleData.bind(A),A.subscribe.bind(A),A.__.bind(A));A._x.bind(A),A._n.bind(A),A._nx.bind(A),A.isRTL.bind(A),A.hasTranslation.bind(A);function D(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function j(t){for(var e=1;et.length)&&(e=t.length);for(var i=0,n=new Array(e);i=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){i=t[Symbol.iterator]()},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw o}}}}function Z(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;if(!e||!Object.keys(e).length)return t;var i=t,n=t.indexOf("?");return-1!==n&&(e=Object.assign(J(t),e),i=i.substr(0,n)),i+"?"+function(t){for(var e,i="",n=Object.entries(t);e=n.shift();){var r=X(e,2),o=r[0],s=r[1];if(Array.isArray(s)||s&&s.constructor===Object){var a,c=Q(Object.entries(s).reverse());try{for(c.s();!(a=c.n()).done;){var l=X(a.value,2),h=l[0],u=l[1];n.unshift(["".concat(o,"[").concat(h,"]"),u])}}catch(t){c.e(t)}finally{c.f()}}else void 0!==s&&(null===s&&(s=""),i+="&"+[o,s].map(encodeURIComponent).join("="))}return i.substr(1)}(e)}function et(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function it(t){for(var e=1;e]+)>; rel="next"/);return e?{next:e[1]}:{}}(t.headers.get("link")).next},ot=function(t){var e=!!t.path&&-1!==t.path.indexOf("per_page=-1"),i=!!t.url&&-1!==t.url.indexOf("per_page=-1");return e||i},st=function(){var t,e=(t=q().mark((function t(e,i){var n,r,s,a,c,l;return q().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!1!==e.parse){t.next=2;break}return t.abrupt("return",i(e));case 2:if(ot(e)){t.next=4;break}return t.abrupt("return",i(e));case 4:return t.next=6,St(it(it({},(u={per_page:100},d=void 0,f=void 0,d=(h=e).path,f=h.url,it(it({},o(h,["path","url"])),{},{url:f&&tt(f,u),path:d&&tt(d,u)}))),{},{parse:!1}));case 6:return n=t.sent,t.next=9,nt(n);case 9:if(r=t.sent,Array.isArray(r)){t.next=12;break}return t.abrupt("return",r);case 12:if(s=rt(n)){t.next=15;break}return t.abrupt("return",r);case 15:a=[].concat(r);case 16:if(!s){t.next=27;break}return t.next=19,St(it(it({},e),{},{path:void 0,url:s,parse:!1}));case 19:return c=t.sent,t.next=22,nt(c);case 22:l=t.sent,a=a.concat(l),s=rt(c),t.next=16;break;case 27:return t.abrupt("return",a);case 28:case"end":return t.stop()}var h,u,d,f}),t)})),function(){var e=this,i=arguments;return new Promise((function(n,r){var o=t.apply(e,i);function s(t){$(o,n,r,s,a,"next",t)}function a(t){$(o,n,r,s,a,"throw",t)}s(void 0)}))});return function(t,i){return e.apply(this,arguments)}}(),at=st;function ct(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function lt(t){for(var e=1;e1&&void 0!==arguments[1])||arguments[1];return Promise.resolve(function(t){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?t:204===t.status?null:t.json?t.json():Promise.reject(t)}(t,e)).catch((function(t){return ft(t,e)}))};function ft(t){if(!(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]))throw t;return function(t){var e={code:"invalid_json",message:C("The response is not a valid JSON response.")};if(!t||!t.json)throw e;return t.json().catch((function(){throw e}))}(t).then((function(t){var e={code:"unknown_error",message:C("An unknown error occurred.")};throw t||e}))}function pt(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function gt(t){for(var e=1;e=500&&e.status<600&&i?n(i).catch((function(){return!1!==t.parse?Promise.reject({code:"post_process",message:C("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(e)})):ft(e,t.parse)})).then((function(e){return dt(e,t.parse)}))};function bt(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function vt(t){for(var e=1;e=200&&t.status<300)return t;throw t},kt=function(t){var e=t.url,i=t.path,n=t.data,r=t.parse,s=void 0===r||r,a=o(t,["url","path","data","parse"]),c=t.body,l=t.headers;return l=vt(vt({},yt),l),n&&(c=JSON.stringify(n),l["Content-Type"]="application/json"),window.fetch(e||i||window.location.href,vt(vt(vt({},xt),a),{},{body:c,headers:l})).then((function(t){return Promise.resolve(t).then(wt).catch((function(t){return ft(t,s)})).then((function(t){return dt(t,s)}))}),(function(){throw{code:"fetch_error",message:C("You are probably offline.")}}))};function Ot(t){return _t.reduceRight((function(t,e){return function(i){return e(i,t)}}),kt)(t).catch((function(e){return"rest_cookie_invalid_nonce"!==e.code?Promise.reject(e):window.fetch(Ot.nonceEndpoint).then(wt).then((function(t){return t.text()})).then((function(e){return Ot.nonceMiddleware.nonce=e,Ot(t)}))}))}Ot.use=function(t){_t.unshift(t)},Ot.setFetchHandler=function(t){kt=t},Ot.createNonceMiddleware=I,Ot.createPreloadingMiddleware=H,Ot.createRootURLMiddleware=W,Ot.fetchAllMiddleware=at,Ot.mediaUploadMiddleware=mt;var St=Ot;const Mt={wpWrap:document.getElementById("wpwrap"),adminbar:document.getElementById("wpadminbar"),wpContent:document.getElementById("wpbody-content"),libraryWrap:document.getElementById("cloudinary-dam"),cloudinaryHeader:document.getElementById("cloudinary-header"),wpFooter:document.getElementById("wpfooter"),importStatus:document.getElementById("import-status"),downloading:{},_init(){const t=this,e=this.libraryWrap,i=this.importStatus;"undefined"!=typeof CLDN&&document.querySelector(CLDN.mloptions.inline_container)&&(St.use(St.createNonceMiddleware(CLDN.nonce)),cloudinary.openMediaLibrary(CLDN.mloptions,{insertHandler(n){const r=[];for(let o=0;o{o.style.opacity=1}),250),St({path:cldData.dam.fetch_url,data:{src:n.url,filename:n.filename,attachment_id:n.attachment_id,transformations:n.transformations},method:"POST"}).then((t=>{const n=r[s];delete r[s],n.removeChild(n.firstChild),setTimeout((()=>{n.style.opacity=0,setTimeout((()=>{n.parentNode.removeChild(n),Object.keys(r).length||(e.style.marginRight="0px",i.style.display="none")}),1e3)}),500)}))}))}}}),window.addEventListener("resize",(function(){t._resize()})),t._resize())},_resize(){this.libraryWrap.style.height=this.wpFooter.offsetTop-this.libraryWrap.offsetTop-this.adminbar.offsetHeight+"px"},makeProgress(t){const e=document.createElement("div"),i=document.createElement("span"),n=document.createElement("span");return e.classList.add("cld-import-item"),i.classList.add("spinner"),n.classList.add("cld-import-item-id"),n.innerText=t.public_id,e.appendChild(i),e.appendChild(n),e}};window.addEventListener("load",(()=>Mt._init()));const Et={_init(){const t=this;if("undefined"!=typeof CLDIS){[...document.getElementsByClassName("cld-notice-box")].forEach((e=>{const i=e.getElementsByClassName("notice-dismiss");i.length&&i[0].addEventListener("click",(i=>{e.style.height=e.offsetHeight+"px",i.preventDefault(),setTimeout((function(){t._dismiss(e)}),5)}))}))}},_dismiss(t){const e=t.dataset.dismiss,i=parseInt(t.dataset.duration);t.classList.add("dismissed"),t.style.height="0px",setTimeout((function(){t.remove()}),400),00&&jt(n.width)/t.offsetWidth||1,o=t.offsetHeight>0&&jt(n.height)/t.offsetHeight||1);var s=(Tt(t)?Pt(t):window).visualViewport,a=!Rt()&&i,c=(n.left+(a&&s?s.offsetLeft:0))/r,l=(n.top+(a&&s?s.offsetTop:0))/o,h=n.width/r,u=n.height/o;return{width:h,height:u,top:l,right:c+h,bottom:l+u,left:c,x:c,y:l}}function zt(t){var e=Pt(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Nt(t){return t?(t.nodeName||"").toLowerCase():null}function Bt(t){return((Tt(t)?t.ownerDocument:t.document)||window.document).documentElement}function Wt(t){return Ft(Bt(t)).left+zt(t).scrollLeft}function Vt(t){return Pt(t).getComputedStyle(t)}function Ht(t){var e=Vt(t),i=e.overflow,n=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+r+n)}function $t(t,e,i){void 0===i&&(i=!1);var n,r,o=Lt(e),s=Lt(e)&&function(t){var e=t.getBoundingClientRect(),i=jt(e.width)/t.offsetWidth||1,n=jt(e.height)/t.offsetHeight||1;return 1!==i||1!==n}(e),a=Bt(e),c=Ft(t,s,i),l={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(o||!o&&!i)&&(("body"!==Nt(e)||Ht(a))&&(l=(n=e)!==Pt(n)&&Lt(n)?{scrollLeft:(r=n).scrollLeft,scrollTop:r.scrollTop}:zt(n)),Lt(e)?((h=Ft(e,!0)).x+=e.clientLeft,h.y+=e.clientTop):a&&(h.x=Wt(a))),{x:c.left+l.scrollLeft-h.x,y:c.top+l.scrollTop-h.y,width:c.width,height:c.height}}function Ut(t){var e=Ft(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function qt(t){return"html"===Nt(t)?t:t.assignedSlot||t.parentNode||(At(t)?t.host:null)||Bt(t)}function Yt(t){return["html","body","#document"].indexOf(Nt(t))>=0?t.ownerDocument.body:Lt(t)&&Ht(t)?t:Yt(qt(t))}function Xt(t,e){var i;void 0===e&&(e=[]);var n=Yt(t),r=n===(null==(i=t.ownerDocument)?void 0:i.body),o=Pt(n),s=r?[o].concat(o.visualViewport||[],Ht(n)?n:[]):n,a=e.concat(s);return r?a:a.concat(Xt(qt(s)))}function Gt(t){return["table","td","th"].indexOf(Nt(t))>=0}function Kt(t){return Lt(t)&&"fixed"!==Vt(t).position?t.offsetParent:null}function Jt(t){for(var e=Pt(t),i=Kt(t);i&&Gt(i)&&"static"===Vt(i).position;)i=Kt(i);return i&&("html"===Nt(i)||"body"===Nt(i)&&"static"===Vt(i).position)?e:i||function(t){var e=/firefox/i.test(It());if(/Trident/i.test(It())&&Lt(t)&&"fixed"===Vt(t).position)return null;var i=qt(t);for(At(i)&&(i=i.host);Lt(i)&&["html","body"].indexOf(Nt(i))<0;){var n=Vt(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(t)||e}var Qt="top",Zt="bottom",te="right",ee="left",ie="auto",ne=[Qt,Zt,te,ee],re="start",oe="end",se="clippingParents",ae="viewport",ce="popper",le="reference",he=ne.reduce((function(t,e){return t.concat([e+"-"+re,e+"-"+oe])}),[]),ue=[].concat(ne,[ie]).reduce((function(t,e){return t.concat([e,e+"-"+re,e+"-"+oe])}),[]),de=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function fe(t){var e=new Map,i=new Set,n=[];function r(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!i.has(t)){var n=e.get(t);n&&r(n)}})),n.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){i.has(t.name)||r(t)})),n}var pe={placement:"bottom",modifiers:[],strategy:"absolute"};function ge(){for(var t=arguments.length,e=new Array(t),i=0;i=0?"x":"y"}function _e(t){var e,i=t.reference,n=t.element,r=t.placement,o=r?ve(r):null,s=r?ye(r):null,a=i.x+i.width/2-n.width/2,c=i.y+i.height/2-n.height/2;switch(o){case Qt:e={x:a,y:i.y-n.height};break;case Zt:e={x:a,y:i.y+i.height};break;case te:e={x:i.x+i.width,y:c};break;case ee:e={x:i.x-n.width,y:c};break;default:e={x:i.x,y:i.y}}var l=o?xe(o):null;if(null!=l){var h="y"===l?"height":"width";switch(s){case re:e[l]=e[l]-(i[h]/2-n[h]/2);break;case oe:e[l]=e[l]+(i[h]/2-n[h]/2)}}return e}var we={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ke(t){var e,i=t.popper,n=t.popperRect,r=t.placement,o=t.variation,s=t.offsets,a=t.position,c=t.gpuAcceleration,l=t.adaptive,h=t.roundOffsets,u=t.isFixed,d=s.x,f=void 0===d?0:d,p=s.y,g=void 0===p?0:p,m="function"==typeof h?h({x:f,y:g}):{x:f,y:g};f=m.x,g=m.y;var b=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),y=ee,x=Qt,_=window;if(l){var w=Jt(i),k="clientHeight",O="clientWidth";if(w===Pt(i)&&"static"!==Vt(w=Bt(i)).position&&"absolute"===a&&(k="scrollHeight",O="scrollWidth"),r===Qt||(r===ee||r===te)&&o===oe)x=Zt,g-=(u&&w===_&&_.visualViewport?_.visualViewport.height:w[k])-n.height,g*=c?1:-1;if(r===ee||(r===Qt||r===Zt)&&o===oe)y=te,f-=(u&&w===_&&_.visualViewport?_.visualViewport.width:w[O])-n.width,f*=c?1:-1}var S,M=Object.assign({position:a},l&&we),E=!0===h?function(t){var e=t.x,i=t.y,n=window.devicePixelRatio||1;return{x:jt(e*n)/n||0,y:jt(i*n)/n||0}}({x:f,y:g}):{x:f,y:g};return f=E.x,g=E.y,c?Object.assign({},M,((S={})[x]=v?"0":"",S[y]=b?"0":"",S.transform=(_.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",S)):Object.assign({},M,((e={})[x]=v?g+"px":"",e[y]=b?f+"px":"",e.transform="",e))}var Oe={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},r=e.elements[t];Lt(r)&&Nt(r)&&(Object.assign(r.style,i),Object.keys(n).forEach((function(t){var e=n[t];!1===e?r.removeAttribute(t):r.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t],r=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce((function(t,e){return t[e]="",t}),{});Lt(n)&&Nt(n)&&(Object.assign(n.style,o),Object.keys(r).forEach((function(t){n.removeAttribute(t)})))}))}},requires:["computeStyles"]};var Se={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,n=t.name,r=i.offset,o=void 0===r?[0,0]:r,s=ue.reduce((function(t,i){return t[i]=function(t,e,i){var n=ve(t),r=[ee,Qt].indexOf(n)>=0?-1:1,o="function"==typeof i?i(Object.assign({},e,{placement:t})):i,s=o[0],a=o[1];return s=s||0,a=(a||0)*r,[ee,te].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}(i,e.rects,o),t}),{}),a=s[e.placement],c=a.x,l=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=l),e.modifiersData[n]=s}},Me={left:"right",right:"left",bottom:"top",top:"bottom"};function Ee(t){return t.replace(/left|right|bottom|top/g,(function(t){return Me[t]}))}var Pe={start:"end",end:"start"};function Te(t){return t.replace(/start|end/g,(function(t){return Pe[t]}))}function Le(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&At(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Ae(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Ce(t,e,i){return e===ae?Ae(function(t,e){var i=Pt(t),n=Bt(t),r=i.visualViewport,o=n.clientWidth,s=n.clientHeight,a=0,c=0;if(r){o=r.width,s=r.height;var l=Rt();(l||!l&&"fixed"===e)&&(a=r.offsetLeft,c=r.offsetTop)}return{width:o,height:s,x:a+Wt(t),y:c}}(t,i)):Tt(e)?function(t,e){var i=Ft(t,!1,"fixed"===e);return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}(e,i):Ae(function(t){var e,i=Bt(t),n=zt(t),r=null==(e=t.ownerDocument)?void 0:e.body,o=Ct(i.scrollWidth,i.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=Ct(i.scrollHeight,i.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-n.scrollLeft+Wt(t),c=-n.scrollTop;return"rtl"===Vt(r||i).direction&&(a+=Ct(i.clientWidth,r?r.clientWidth:0)-o),{width:o,height:s,x:a,y:c}}(Bt(t)))}function De(t,e,i,n){var r="clippingParents"===e?function(t){var e=Xt(qt(t)),i=["absolute","fixed"].indexOf(Vt(t).position)>=0&&Lt(t)?Jt(t):t;return Tt(i)?e.filter((function(t){return Tt(t)&&Le(t,i)&&"body"!==Nt(t)})):[]}(t):[].concat(e),o=[].concat(r,[i]),s=o[0],a=o.reduce((function(e,i){var r=Ce(t,i,n);return e.top=Ct(r.top,e.top),e.right=Dt(r.right,e.right),e.bottom=Dt(r.bottom,e.bottom),e.left=Ct(r.left,e.left),e}),Ce(t,s,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function je(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function Ie(t,e){return e.reduce((function(e,i){return e[i]=t,e}),{})}function Re(t,e){void 0===e&&(e={});var i=e,n=i.placement,r=void 0===n?t.placement:n,o=i.strategy,s=void 0===o?t.strategy:o,a=i.boundary,c=void 0===a?se:a,l=i.rootBoundary,h=void 0===l?ae:l,u=i.elementContext,d=void 0===u?ce:u,f=i.altBoundary,p=void 0!==f&&f,g=i.padding,m=void 0===g?0:g,b=je("number"!=typeof m?m:Ie(m,ne)),v=d===ce?le:ce,y=t.rects.popper,x=t.elements[p?v:d],_=De(Tt(x)?x:x.contextElement||Bt(t.elements.popper),c,h,s),w=Ft(t.elements.reference),k=_e({reference:w,element:y,strategy:"absolute",placement:r}),O=Ae(Object.assign({},y,k)),S=d===ce?O:w,M={top:_.top-S.top+b.top,bottom:S.bottom-_.bottom+b.bottom,left:_.left-S.left+b.left,right:S.right-_.right+b.right},E=t.modifiersData.offset;if(d===ce&&E){var P=E[r];Object.keys(M).forEach((function(t){var e=[te,Zt].indexOf(t)>=0?1:-1,i=[Qt,Zt].indexOf(t)>=0?"y":"x";M[t]+=P[i]*e}))}return M}function Fe(t,e,i){return Ct(t,Dt(e,i))}var ze={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name,r=i.mainAxis,o=void 0===r||r,s=i.altAxis,a=void 0!==s&&s,c=i.boundary,l=i.rootBoundary,h=i.altBoundary,u=i.padding,d=i.tether,f=void 0===d||d,p=i.tetherOffset,g=void 0===p?0:p,m=Re(e,{boundary:c,rootBoundary:l,padding:u,altBoundary:h}),b=ve(e.placement),v=ye(e.placement),y=!v,x=xe(b),_="x"===x?"y":"x",w=e.modifiersData.popperOffsets,k=e.rects.reference,O=e.rects.popper,S="function"==typeof g?g(Object.assign({},e.rects,{placement:e.placement})):g,M="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),E=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,P={x:0,y:0};if(w){if(o){var T,L="y"===x?Qt:ee,A="y"===x?Zt:te,C="y"===x?"height":"width",D=w[x],j=D+m[L],I=D-m[A],R=f?-O[C]/2:0,F=v===re?k[C]:O[C],z=v===re?-O[C]:-k[C],N=e.elements.arrow,B=f&&N?Ut(N):{width:0,height:0},W=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=W[L],H=W[A],$=Fe(0,k[C],B[C]),U=y?k[C]/2-R-$-V-M.mainAxis:F-$-V-M.mainAxis,q=y?-k[C]/2+R+$+H+M.mainAxis:z+$+H+M.mainAxis,Y=e.elements.arrow&&Jt(e.elements.arrow),X=Y?"y"===x?Y.clientTop||0:Y.clientLeft||0:0,G=null!=(T=null==E?void 0:E[x])?T:0,K=D+q-G,J=Fe(f?Dt(j,D+U-G-X):j,D,f?Ct(I,K):I);w[x]=J,P[x]=J-D}if(a){var Q,Z="x"===x?Qt:ee,tt="x"===x?Zt:te,et=w[_],it="y"===_?"height":"width",nt=et+m[Z],rt=et-m[tt],ot=-1!==[Qt,ee].indexOf(b),st=null!=(Q=null==E?void 0:E[_])?Q:0,at=ot?nt:et-k[it]-O[it]-st+M.altAxis,ct=ot?et+k[it]+O[it]-st-M.altAxis:rt,lt=f&&ot?function(t,e,i){var n=Fe(t,e,i);return n>i?i:n}(at,et,ct):Fe(f?at:nt,et,f?ct:rt);w[_]=lt,P[_]=lt-et}e.modifiersData[n]=P}},requiresIfExists:["offset"]};var Ne={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,n=t.name,r=t.options,o=i.elements.arrow,s=i.modifiersData.popperOffsets,a=ve(i.placement),c=xe(a),l=[ee,te].indexOf(a)>=0?"height":"width";if(o&&s){var h=function(t,e){return je("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:Ie(t,ne))}(r.padding,i),u=Ut(o),d="y"===c?Qt:ee,f="y"===c?Zt:te,p=i.rects.reference[l]+i.rects.reference[c]-s[c]-i.rects.popper[l],g=s[c]-i.rects.reference[c],m=Jt(o),b=m?"y"===c?m.clientHeight||0:m.clientWidth||0:0,v=p/2-g/2,y=h[d],x=b-u[l]-h[f],_=b/2-u[l]/2+v,w=Fe(y,_,x),k=c;i.modifiersData[n]=((e={})[k]=w,e.centerOffset=w-_,e)}},effect:function(t){var e=t.state,i=t.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&Le(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Be(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function We(t){return[Qt,te,Zt,ee].some((function(e){return t[e]>=0}))}var Ve=me({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,r=n.scroll,o=void 0===r||r,s=n.resize,a=void 0===s||s,c=Pt(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&l.forEach((function(t){t.addEventListener("scroll",i.update,be)})),a&&c.addEventListener("resize",i.update,be),function(){o&&l.forEach((function(t){t.removeEventListener("scroll",i.update,be)})),a&&c.removeEventListener("resize",i.update,be)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=_e({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,r=void 0===n||n,o=i.adaptive,s=void 0===o||o,a=i.roundOffsets,c=void 0===a||a,l={placement:ve(e.placement),variation:ye(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,ke(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:c})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,ke(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},Oe,Se,{name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var r=i.mainAxis,o=void 0===r||r,s=i.altAxis,a=void 0===s||s,c=i.fallbackPlacements,l=i.padding,h=i.boundary,u=i.rootBoundary,d=i.altBoundary,f=i.flipVariations,p=void 0===f||f,g=i.allowedAutoPlacements,m=e.options.placement,b=ve(m),v=c||(b===m||!p?[Ee(m)]:function(t){if(ve(t)===ie)return[];var e=Ee(t);return[Te(t),e,Te(e)]}(m)),y=[m].concat(v).reduce((function(t,i){return t.concat(ve(i)===ie?function(t,e){void 0===e&&(e={});var i=e,n=i.placement,r=i.boundary,o=i.rootBoundary,s=i.padding,a=i.flipVariations,c=i.allowedAutoPlacements,l=void 0===c?ue:c,h=ye(n),u=h?a?he:he.filter((function(t){return ye(t)===h})):ne,d=u.filter((function(t){return l.indexOf(t)>=0}));0===d.length&&(d=u);var f=d.reduce((function(e,i){return e[i]=Re(t,{placement:i,boundary:r,rootBoundary:o,padding:s})[ve(i)],e}),{});return Object.keys(f).sort((function(t,e){return f[t]-f[e]}))}(e,{placement:i,boundary:h,rootBoundary:u,padding:l,flipVariations:p,allowedAutoPlacements:g}):i)}),[]),x=e.rects.reference,_=e.rects.popper,w=new Map,k=!0,O=y[0],S=0;S=0,L=T?"width":"height",A=Re(e,{placement:M,boundary:h,rootBoundary:u,altBoundary:d,padding:l}),C=T?P?te:ee:P?Zt:Qt;x[L]>_[L]&&(C=Ee(C));var D=Ee(C),j=[];if(o&&j.push(A[E]<=0),a&&j.push(A[C]<=0,A[D]<=0),j.every((function(t){return t}))){O=M,k=!1;break}w.set(M,j)}if(k)for(var I=function(t){var e=y.find((function(e){var i=w.get(e);if(i)return i.slice(0,t).every((function(t){return t}))}));if(e)return O=e,"break"},R=p?3:1;R>0;R--){if("break"===I(R))break}e.placement!==O&&(e.modifiersData[n]._skip=!0,e.placement=O,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},ze,Ne,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,r=e.rects.popper,o=e.modifiersData.preventOverflow,s=Re(e,{elementContext:"reference"}),a=Re(e,{altBoundary:!0}),c=Be(s,n),l=Be(a,r,o),h=We(c),u=We(l);e.modifiersData[i]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:h,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":u})}}]}),He="tippy-content",$e="tippy-backdrop",Ue="tippy-arrow",qe="tippy-svg-arrow",Ye={passive:!0,capture:!0},Xe=function(){return document.body};function Ge(t,e,i){if(Array.isArray(t)){var n=t[e];return null==n?Array.isArray(i)?i[e]:i:n}return t}function Ke(t,e){var i={}.toString.call(t);return 0===i.indexOf("[object")&&i.indexOf(e+"]")>-1}function Je(t,e){return"function"==typeof t?t.apply(void 0,e):t}function Qe(t,e){return 0===e?t:function(n){clearTimeout(i),i=setTimeout((function(){t(n)}),e)};var i}function Ze(t){return[].concat(t)}function ti(t,e){-1===t.indexOf(e)&&t.push(e)}function ei(t){return t.split("-")[0]}function ii(t){return[].slice.call(t)}function ni(t){return Object.keys(t).reduce((function(e,i){return void 0!==t[i]&&(e[i]=t[i]),e}),{})}function ri(){return document.createElement("div")}function oi(t){return["Element","Fragment"].some((function(e){return Ke(t,e)}))}function si(t){return Ke(t,"MouseEvent")}function ai(t){return!(!t||!t._tippy||t._tippy.reference!==t)}function ci(t){return oi(t)?[t]:function(t){return Ke(t,"NodeList")}(t)?ii(t):Array.isArray(t)?t:ii(document.querySelectorAll(t))}function li(t,e){t.forEach((function(t){t&&(t.style.transitionDuration=e+"ms")}))}function hi(t,e){t.forEach((function(t){t&&t.setAttribute("data-state",e)}))}function ui(t){var e,i=Ze(t)[0];return null!=i&&null!=(e=i.ownerDocument)&&e.body?i.ownerDocument:document}function di(t,e,i){var n=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(e){t[n](e,i)}))}function fi(t,e){for(var i=e;i;){var n;if(t.contains(i))return!0;i=null==i.getRootNode||null==(n=i.getRootNode())?void 0:n.host}return!1}var pi={isTouch:!1},gi=0;function mi(){pi.isTouch||(pi.isTouch=!0,window.performance&&document.addEventListener("mousemove",bi))}function bi(){var t=performance.now();t-gi<20&&(pi.isTouch=!1,document.removeEventListener("mousemove",bi)),gi=t}function vi(){var t=document.activeElement;if(ai(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}var yi=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var xi={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},_i=Object.assign({appendTo:Xe,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},xi,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),wi=Object.keys(_i);function ki(t){var e=(t.plugins||[]).reduce((function(e,i){var n,r=i.name,o=i.defaultValue;r&&(e[r]=void 0!==t[r]?t[r]:null!=(n=_i[r])?n:o);return e}),{});return Object.assign({},t,e)}function Oi(t,e){var i=Object.assign({},e,{content:Je(e.content,[t])},e.ignoreAttributes?{}:function(t,e){return(e?Object.keys(ki(Object.assign({},_i,{plugins:e}))):wi).reduce((function(e,i){var n=(t.getAttribute("data-tippy-"+i)||"").trim();if(!n)return e;if("content"===i)e[i]=n;else try{e[i]=JSON.parse(n)}catch(t){e[i]=n}return e}),{})}(t,e.plugins));return i.aria=Object.assign({},_i.aria,i.aria),i.aria={expanded:"auto"===i.aria.expanded?e.interactive:i.aria.expanded,content:"auto"===i.aria.content?e.interactive?null:"describedby":i.aria.content},i}var Si=function(){return"innerHTML"};function Mi(t,e){t[Si()]=e}function Ei(t){var e=ri();return!0===t?e.className=Ue:(e.className=qe,oi(t)?e.appendChild(t):Mi(e,t)),e}function Pi(t,e){oi(e.content)?(Mi(t,""),t.appendChild(e.content)):"function"!=typeof e.content&&(e.allowHTML?Mi(t,e.content):t.textContent=e.content)}function Ti(t){var e=t.firstElementChild,i=ii(e.children);return{box:e,content:i.find((function(t){return t.classList.contains(He)})),arrow:i.find((function(t){return t.classList.contains(Ue)||t.classList.contains(qe)})),backdrop:i.find((function(t){return t.classList.contains($e)}))}}function Li(t){var e=ri(),i=ri();i.className="tippy-box",i.setAttribute("data-state","hidden"),i.setAttribute("tabindex","-1");var n=ri();function r(i,n){var r=Ti(e),o=r.box,s=r.content,a=r.arrow;n.theme?o.setAttribute("data-theme",n.theme):o.removeAttribute("data-theme"),"string"==typeof n.animation?o.setAttribute("data-animation",n.animation):o.removeAttribute("data-animation"),n.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof n.maxWidth?n.maxWidth+"px":n.maxWidth,n.role?o.setAttribute("role",n.role):o.removeAttribute("role"),i.content===n.content&&i.allowHTML===n.allowHTML||Pi(s,t.props),n.arrow?a?i.arrow!==n.arrow&&(o.removeChild(a),o.appendChild(Ei(n.arrow))):o.appendChild(Ei(n.arrow)):a&&o.removeChild(a)}return n.className=He,n.setAttribute("data-state","hidden"),Pi(n,t.props),e.appendChild(i),i.appendChild(n),r(t.props,t.props),{popper:e,onUpdate:r}}Li.$$tippy=!0;var Ai=1,Ci=[],Di=[];function ji(t,e){var i,n,r,o,s,a,c,l,h=Oi(t,Object.assign({},_i,ki(ni(e)))),u=!1,d=!1,f=!1,p=!1,g=[],m=Qe(Y,h.interactiveDebounce),b=Ai++,v=(l=h.plugins).filter((function(t,e){return l.indexOf(t)===e})),y={id:b,reference:t,popper:ri(),popperInstance:null,props:h,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:v,clearDelayTimeouts:function(){clearTimeout(i),clearTimeout(n),cancelAnimationFrame(r)},setProps:function(e){0;if(y.state.isDestroyed)return;D("onBeforeUpdate",[y,e]),U();var i=y.props,n=Oi(t,Object.assign({},i,ni(e),{ignoreAttributes:!0}));y.props=n,$(),i.interactiveDebounce!==n.interactiveDebounce&&(R(),m=Qe(Y,n.interactiveDebounce));i.triggerTarget&&!n.triggerTarget?Ze(i.triggerTarget).forEach((function(t){t.removeAttribute("aria-expanded")})):n.triggerTarget&&t.removeAttribute("aria-expanded");I(),C(),w&&w(i,n);y.popperInstance&&(J(),Z().forEach((function(t){requestAnimationFrame(t._tippy.popperInstance.forceUpdate)})));D("onAfterUpdate",[y,e])},setContent:function(t){y.setProps({content:t})},show:function(){0;var t=y.state.isVisible,e=y.state.isDestroyed,i=!y.state.isEnabled,n=pi.isTouch&&!y.props.touch,r=Ge(y.props.duration,0,_i.duration);if(t||e||i||n)return;if(P().hasAttribute("disabled"))return;if(D("onShow",[y],!1),!1===y.props.onShow(y))return;y.state.isVisible=!0,E()&&(_.style.visibility="visible");C(),B(),y.state.isMounted||(_.style.transition="none");if(E()){var o=L();li([o.box,o.content],0)}a=function(){var t;if(y.state.isVisible&&!p){if(p=!0,_.offsetHeight,_.style.transition=y.props.moveTransition,E()&&y.props.animation){var e=L(),i=e.box,n=e.content;li([i,n],r),hi([i,n],"visible")}j(),I(),ti(Di,y),null==(t=y.popperInstance)||t.forceUpdate(),D("onMount",[y]),y.props.animation&&E()&&function(t,e){V(t,e)}(r,(function(){y.state.isShown=!0,D("onShown",[y])}))}},function(){var t,e=y.props.appendTo,i=P();t=y.props.interactive&&e===Xe||"parent"===e?i.parentNode:Je(e,[i]);t.contains(_)||t.appendChild(_);y.state.isMounted=!0,J(),!1}()},hide:function(){0;var t=!y.state.isVisible,e=y.state.isDestroyed,i=!y.state.isEnabled,n=Ge(y.props.duration,1,_i.duration);if(t||e||i)return;if(D("onHide",[y],!1),!1===y.props.onHide(y))return;y.state.isVisible=!1,y.state.isShown=!1,p=!1,u=!1,E()&&(_.style.visibility="hidden");if(R(),W(),C(!0),E()){var r=L(),o=r.box,s=r.content;y.props.animation&&(li([o,s],n),hi([o,s],"hidden"))}j(),I(),y.props.animation?E()&&function(t,e){V(t,(function(){!y.state.isVisible&&_.parentNode&&_.parentNode.contains(_)&&e()}))}(n,y.unmount):y.unmount()},hideWithInteractivity:function(t){0;T().addEventListener("mousemove",m),ti(Ci,m),m(t)},enable:function(){y.state.isEnabled=!0},disable:function(){y.hide(),y.state.isEnabled=!1},unmount:function(){0;y.state.isVisible&&y.hide();if(!y.state.isMounted)return;Q(),Z().forEach((function(t){t._tippy.unmount()})),_.parentNode&&_.parentNode.removeChild(_);Di=Di.filter((function(t){return t!==y})),y.state.isMounted=!1,D("onHidden",[y])},destroy:function(){0;if(y.state.isDestroyed)return;y.clearDelayTimeouts(),y.unmount(),U(),delete t._tippy,y.state.isDestroyed=!0,D("onDestroy",[y])}};if(!h.render)return y;var x=h.render(y),_=x.popper,w=x.onUpdate;_.setAttribute("data-tippy-root",""),_.id="tippy-"+y.id,y.popper=_,t._tippy=y,_._tippy=y;var k=v.map((function(t){return t.fn(y)})),O=t.hasAttribute("aria-expanded");return $(),I(),C(),D("onCreate",[y]),h.showOnCreate&&tt(),_.addEventListener("mouseenter",(function(){y.props.interactive&&y.state.isVisible&&y.clearDelayTimeouts()})),_.addEventListener("mouseleave",(function(){y.props.interactive&&y.props.trigger.indexOf("mouseenter")>=0&&T().addEventListener("mousemove",m)})),y;function S(){var t=y.props.touch;return Array.isArray(t)?t:[t,0]}function M(){return"hold"===S()[0]}function E(){var t;return!(null==(t=y.props.render)||!t.$$tippy)}function P(){return c||t}function T(){var t=P().parentNode;return t?ui(t):document}function L(){return Ti(_)}function A(t){return y.state.isMounted&&!y.state.isVisible||pi.isTouch||o&&"focus"===o.type?0:Ge(y.props.delay,t?0:1,_i.delay)}function C(t){void 0===t&&(t=!1),_.style.pointerEvents=y.props.interactive&&!t?"":"none",_.style.zIndex=""+y.props.zIndex}function D(t,e,i){var n;(void 0===i&&(i=!0),k.forEach((function(i){i[t]&&i[t].apply(i,e)})),i)&&(n=y.props)[t].apply(n,e)}function j(){var e=y.props.aria;if(e.content){var i="aria-"+e.content,n=_.id;Ze(y.props.triggerTarget||t).forEach((function(t){var e=t.getAttribute(i);if(y.state.isVisible)t.setAttribute(i,e?e+" "+n:n);else{var r=e&&e.replace(n,"").trim();r?t.setAttribute(i,r):t.removeAttribute(i)}}))}}function I(){!O&&y.props.aria.expanded&&Ze(y.props.triggerTarget||t).forEach((function(t){y.props.interactive?t.setAttribute("aria-expanded",y.state.isVisible&&t===P()?"true":"false"):t.removeAttribute("aria-expanded")}))}function R(){T().removeEventListener("mousemove",m),Ci=Ci.filter((function(t){return t!==m}))}function F(e){if(!pi.isTouch||!f&&"mousedown"!==e.type){var i=e.composedPath&&e.composedPath()[0]||e.target;if(!y.props.interactive||!fi(_,i)){if(Ze(y.props.triggerTarget||t).some((function(t){return fi(t,i)}))){if(pi.isTouch)return;if(y.state.isVisible&&y.props.trigger.indexOf("click")>=0)return}else D("onClickOutside",[y,e]);!0===y.props.hideOnClick&&(y.clearDelayTimeouts(),y.hide(),d=!0,setTimeout((function(){d=!1})),y.state.isMounted||W())}}}function z(){f=!0}function N(){f=!1}function B(){var t=T();t.addEventListener("mousedown",F,!0),t.addEventListener("touchend",F,Ye),t.addEventListener("touchstart",N,Ye),t.addEventListener("touchmove",z,Ye)}function W(){var t=T();t.removeEventListener("mousedown",F,!0),t.removeEventListener("touchend",F,Ye),t.removeEventListener("touchstart",N,Ye),t.removeEventListener("touchmove",z,Ye)}function V(t,e){var i=L().box;function n(t){t.target===i&&(di(i,"remove",n),e())}if(0===t)return e();di(i,"remove",s),di(i,"add",n),s=n}function H(e,i,n){void 0===n&&(n=!1),Ze(y.props.triggerTarget||t).forEach((function(t){t.addEventListener(e,i,n),g.push({node:t,eventType:e,handler:i,options:n})}))}function $(){var t;M()&&(H("touchstart",q,{passive:!0}),H("touchend",X,{passive:!0})),(t=y.props.trigger,t.split(/\s+/).filter(Boolean)).forEach((function(t){if("manual"!==t)switch(H(t,q),t){case"mouseenter":H("mouseleave",X);break;case"focus":H(yi?"focusout":"blur",G);break;case"focusin":H("focusout",G)}}))}function U(){g.forEach((function(t){var e=t.node,i=t.eventType,n=t.handler,r=t.options;e.removeEventListener(i,n,r)})),g=[]}function q(t){var e,i=!1;if(y.state.isEnabled&&!K(t)&&!d){var n="focus"===(null==(e=o)?void 0:e.type);o=t,c=t.currentTarget,I(),!y.state.isVisible&&si(t)&&Ci.forEach((function(e){return e(t)})),"click"===t.type&&(y.props.trigger.indexOf("mouseenter")<0||u)&&!1!==y.props.hideOnClick&&y.state.isVisible?i=!0:tt(t),"click"===t.type&&(u=!i),i&&!n&&et(t)}}function Y(t){var e=t.target,i=P().contains(e)||_.contains(e);if("mousemove"!==t.type||!i){var n=Z().concat(_).map((function(t){var e,i=null==(e=t._tippy.popperInstance)?void 0:e.state;return i?{popperRect:t.getBoundingClientRect(),popperState:i,props:h}:null})).filter(Boolean);(function(t,e){var i=e.clientX,n=e.clientY;return t.every((function(t){var e=t.popperRect,r=t.popperState,o=t.props.interactiveBorder,s=ei(r.placement),a=r.modifiersData.offset;if(!a)return!0;var c="bottom"===s?a.top.y:0,l="top"===s?a.bottom.y:0,h="right"===s?a.left.x:0,u="left"===s?a.right.x:0,d=e.top-n+c>o,f=n-e.bottom-l>o,p=e.left-i+h>o,g=i-e.right-u>o;return d||f||p||g}))})(n,t)&&(R(),et(t))}}function X(t){K(t)||y.props.trigger.indexOf("click")>=0&&u||(y.props.interactive?y.hideWithInteractivity(t):et(t))}function G(t){y.props.trigger.indexOf("focusin")<0&&t.target!==P()||y.props.interactive&&t.relatedTarget&&_.contains(t.relatedTarget)||et(t)}function K(t){return!!pi.isTouch&&M()!==t.type.indexOf("touch")>=0}function J(){Q();var e=y.props,i=e.popperOptions,n=e.placement,r=e.offset,o=e.getReferenceClientRect,s=e.moveTransition,c=E()?Ti(_).arrow:null,l=o?{getBoundingClientRect:o,contextElement:o.contextElement||P()}:t,h={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var e=t.state;if(E()){var i=L().box;["placement","reference-hidden","escaped"].forEach((function(t){"placement"===t?i.setAttribute("data-placement",e.placement):e.attributes.popper["data-popper-"+t]?i.setAttribute("data-"+t,""):i.removeAttribute("data-"+t)})),e.attributes.popper={}}}},u=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},h];E()&&c&&u.push({name:"arrow",options:{element:c,padding:3}}),u.push.apply(u,(null==i?void 0:i.modifiers)||[]),y.popperInstance=Ve(l,_,Object.assign({},i,{placement:n,onFirstUpdate:a,modifiers:u}))}function Q(){y.popperInstance&&(y.popperInstance.destroy(),y.popperInstance=null)}function Z(){return ii(_.querySelectorAll("[data-tippy-root]"))}function tt(t){y.clearDelayTimeouts(),t&&D("onTrigger",[y,t]),B();var e=A(!0),n=S(),r=n[0],o=n[1];pi.isTouch&&"hold"===r&&o&&(e=o),e?i=setTimeout((function(){y.show()}),e):y.show()}function et(t){if(y.clearDelayTimeouts(),D("onUntrigger",[y,t]),y.state.isVisible){if(!(y.props.trigger.indexOf("mouseenter")>=0&&y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(t.type)>=0&&u)){var e=A(!1);e?n=setTimeout((function(){y.state.isVisible&&y.hide()}),e):r=requestAnimationFrame((function(){y.hide()}))}}else W()}}function Ii(t,e){void 0===e&&(e={});var i=_i.plugins.concat(e.plugins||[]);document.addEventListener("touchstart",mi,Ye),window.addEventListener("blur",vi);var n=Object.assign({},e,{plugins:i}),r=ci(t).reduce((function(t,e){var i=e&&ji(e,n);return i&&t.push(i),t}),[]);return oi(t)?r[0]:r}Ii.defaultProps=_i,Ii.setDefaultProps=function(t){Object.keys(t).forEach((function(e){_i[e]=t[e]}))},Ii.currentInput=pi;Object.assign({},Oe,{effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow)}});Ii.setDefaultProps({render:Li});var Ri=Ii,Fi=i(951),zi=i.n(Fi);const Ni={controlled:null,bind(t){this.controlled=t,this.controlled.forEach((t=>{this._main(t)})),this._init()},_init(){this.controlled.forEach((t=>{this._checkUp(t)}))},_main(t){const e=JSON.parse(t.dataset.main);t.dataset.size&&(t.filesize=parseInt(t.dataset.size,10)),t.mains=e.map((e=>{const i=document.getElementById(e),n=document.getElementById(e+"_size_wrapper");return n&&(i.filesize=0,i.sizespan=n),this._addChild(i,t),i})),this._bindEvents(t),t.mains.forEach((t=>{this._bindEvents(t)}))},_bindEvents(t){t.eventBound||(t.addEventListener("click",(e=>{const i=e.target;i.elements&&(this._checkDown(i),this._evaluateSize(i)),i.mains&&this._checkUp(t)})),t.eventBound=!0)},_addChild(t,e){const i=t.elements?t.elements:[];-1===i.indexOf(e)&&(i.push(e),t.elements=i)},_removeChild(t,e){const i=t.elements.indexOf(e);-1{e.checked!==t.checked&&(e.checked=t.checked,e.disabled&&(e.checked=!1),e.dispatchEvent(new Event("change")))})),t.elements.forEach((e=>{this._checkDown(e),e.elements||this._checkUp(e,t)})))},_checkUp(t,e){t.mains&&[...t.mains].forEach((t=>{t!==e&&this._evaluateCheckStatus(t),this._checkUp(t),this._evaluateSize(t)}))},_evaluateCheckStatus(t){let e=0,i=t.classList.contains("partial");i&&(t.classList.remove("partial"),i=!1),t.elements.forEach((n=>{null!==n.parentNode?(e+=n.checked,n.classList.contains("partial")&&(i=!0)):this._removeChild(t,n)}));let n="some";e===t.elements.length?n="on":0===e?n="off":i=!0,i&&t.classList.add("partial");const r="off"!==n;t.checked===r&&t.value===n||(t.value=n,t.checked=r,t.dispatchEvent(new Event("change")))},_evaluateSize(t){if(t.sizespan&&t.elements){t.filesize=0,t.elements.forEach((e=>{e.checked&&(t.filesize+=e.filesize)}));let e=null;0("number"==typeof t||t instanceof Number)&&isFinite(+t);function Gi(t,e){return Xi(t)?t:e}function Ki(t,e){return void 0===t?e:t}const Ji=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function Qi(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)}function Zi(t,e,i,n){let r,o,s;if(qi(t))if(o=t.length,n)for(r=o-1;r>=0;r--)e.call(i,t[r],r);else for(r=0;rt,x:t=>t.x,y:t=>t.y};function ln(t,e){const i=cn[e]||(cn[e]=function(t){const e=function(t){const e=t.split("."),i=[];let n="";for(const t of e)n+=t,n.endsWith("\\")?n=n.slice(0,-1)+".":(i.push(n),n="");return i}(t);return t=>{for(const i of e){if(""===i)break;t=t&&t[i]}return t}}(e));return i(t)}function hn(t){return t.charAt(0).toUpperCase()+t.slice(1)}const un=t=>void 0!==t,dn=t=>"function"==typeof t,fn=(t,e)=>{if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0};const pn=Math.PI,gn=2*pn,mn=gn+pn,bn=Number.POSITIVE_INFINITY,vn=pn/180,yn=pn/2,xn=pn/4,_n=2*pn/3,wn=Math.log10,kn=Math.sign;function On(t){const e=Math.round(t);t=Mn(t,e,t/1e3)?e:t;const i=Math.pow(10,Math.floor(wn(t))),n=t/i;return(n<=1?1:n<=2?2:n<=5?5:10)*i}function Sn(t){return!isNaN(parseFloat(t))&&isFinite(t)}function Mn(t,e,i){return Math.abs(t-e)c&&l=Math.min(e,i)-n&&t<=Math.max(e,i)+n}function zn(t,e,i){i=i||(i=>t[i]1;)n=o+r>>1,i(n)?o=n:r=n;return{lo:o,hi:r}}const Nn=(t,e,i,n)=>zn(t,i,n?n=>t[n][e]<=i:n=>t[n][e]zn(t,i,(n=>t[n][e]>=i));const Wn=["push","pop","shift","splice","unshift"];function Vn(t,e){const i=t._chartjs;if(!i)return;const n=i.listeners,r=n.indexOf(e);-1!==r&&n.splice(r,1),n.length>0||(Wn.forEach((e=>{delete t[e]})),delete t._chartjs)}function Hn(t){const e=new Set;let i,n;for(i=0,n=t.length;iArray.prototype.slice.call(t));let r=!1,o=[];return function(...i){o=n(i),r||(r=!0,$n.call(window,(()=>{r=!1,t.apply(e,o)})))}}const qn=t=>"start"===t?"left":"end"===t?"right":"center",Yn=(t,e,i)=>"start"===t?e:"end"===t?i:(e+i)/2;function Xn(t,e,i){const n=e.length;let r=0,o=n;if(t._sorted){const{iScale:s,_parsed:a}=t,c=s.axis,{min:l,max:h,minDefined:u,maxDefined:d}=s.getUserBounds();u&&(r=Rn(Math.min(Nn(a,s.axis,l).lo,i?n:Nn(e,c,s.getPixelForValue(l)).lo),0,n-1)),o=d?Rn(Math.max(Nn(a,s.axis,h,!0).hi+1,i?0:Nn(e,c,s.getPixelForValue(h),!0).hi+1),r,n)-r:n-r}return{start:r,count:o}}function Gn(t){const{xScale:e,yScale:i,_scaleRanges:n}=t,r={xmin:e.min,xmax:e.max,ymin:i.min,ymax:i.max};if(!n)return t._scaleRanges=r,!0;const o=n.xmin!==e.min||n.xmax!==e.max||n.ymin!==i.min||n.ymax!==i.max;return Object.assign(n,r),o}const Kn=t=>0===t||1===t,Jn=(t,e,i)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*gn/i),Qn=(t,e,i)=>Math.pow(2,-10*t)*Math.sin((t-e)*gn/i)+1,Zn={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*yn),easeOutSine:t=>Math.sin(t*yn),easeInOutSine:t=>-.5*(Math.cos(pn*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>Kn(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Kn(t)?t:Jn(t,.075,.3),easeOutElastic:t=>Kn(t)?t:Qn(t,.075,.3),easeInOutElastic(t){const e=.1125;return Kn(t)?t:t<.5?.5*Jn(2*t,e,.45):.5+.5*Qn(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-Zn.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,i=2.75;return t<1/i?e*t*t:t<2/i?e*(t-=1.5/i)*t+.75:t<2.5/i?e*(t-=2.25/i)*t+.9375:e*(t-=2.625/i)*t+.984375},easeInOutBounce:t=>t<.5?.5*Zn.easeInBounce(2*t):.5*Zn.easeOutBounce(2*t-1)+.5};function tr(t){return t+.5|0}const er=(t,e,i)=>Math.max(Math.min(t,i),e);function ir(t){return er(tr(2.55*t),0,255)}function nr(t){return er(tr(255*t),0,255)}function rr(t){return er(tr(t/2.55)/100,0,1)}function or(t){return er(tr(100*t),0,100)}const sr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},ar=[..."0123456789ABCDEF"],cr=t=>ar[15&t],lr=t=>ar[(240&t)>>4]+ar[15&t],hr=t=>(240&t)>>4==(15&t);function ur(t){var e=(t=>hr(t.r)&&hr(t.g)&&hr(t.b)&&hr(t.a))(t)?cr:lr;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}const dr=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function fr(t,e,i){const n=e*Math.min(i,1-i),r=(e,r=(e+t/30)%12)=>i-n*Math.max(Math.min(r-3,9-r,1),-1);return[r(0),r(8),r(4)]}function pr(t,e,i){const n=(n,r=(n+t/60)%6)=>i-i*e*Math.max(Math.min(r,4-r,1),0);return[n(5),n(3),n(1)]}function gr(t,e,i){const n=fr(t,1,.5);let r;for(e+i>1&&(r=1/(e+i),e*=r,i*=r),r=0;r<3;r++)n[r]*=1-e-i,n[r]+=e;return n}function mr(t){const e=t.r/255,i=t.g/255,n=t.b/255,r=Math.max(e,i,n),o=Math.min(e,i,n),s=(r+o)/2;let a,c,l;return r!==o&&(l=r-o,c=s>.5?l/(2-r-o):l/(r+o),a=function(t,e,i,n,r){return t===r?(e-i)/n+(e>16&255,o>>8&255,255&o]}return t}(),kr.transparent=[0,0,0,0]);const e=kr[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const Sr=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const Mr=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Er=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Pr(t,e,i){if(t){let n=mr(t);n[e]=Math.max(0,Math.min(n[e]+n[e]*i,0===e?360:1)),n=vr(n),t.r=n[0],t.g=n[1],t.b=n[2]}}function Tr(t,e){return t?Object.assign(e||{},t):t}function Lr(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=nr(t[3]))):(e=Tr(t,{r:0,g:0,b:0,a:1})).a=nr(e.a),e}function Ar(t){return"r"===t.charAt(0)?function(t){const e=Sr.exec(t);let i,n,r,o=255;if(e){if(e[7]!==i){const t=+e[7];o=e[8]?ir(t):er(255*t,0,255)}return i=+e[1],n=+e[3],r=+e[5],i=255&(e[2]?ir(i):er(i,0,255)),n=255&(e[4]?ir(n):er(n,0,255)),r=255&(e[6]?ir(r):er(r,0,255)),{r:i,g:n,b:r,a:o}}}(t):xr(t)}class Cr{constructor(t){if(t instanceof Cr)return t;const e=typeof t;let i;var n,r,o;"object"===e?i=Lr(t):"string"===e&&(o=(n=t).length,"#"===n[0]&&(4===o||5===o?r={r:255&17*sr[n[1]],g:255&17*sr[n[2]],b:255&17*sr[n[3]],a:5===o?17*sr[n[4]]:255}:7!==o&&9!==o||(r={r:sr[n[1]]<<4|sr[n[2]],g:sr[n[3]]<<4|sr[n[4]],b:sr[n[5]]<<4|sr[n[6]],a:9===o?sr[n[7]]<<4|sr[n[8]]:255})),i=r||Or(t)||Ar(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=Tr(this._rgb);return t&&(t.a=rr(t.a)),t}set rgb(t){this._rgb=Lr(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${rr(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?ur(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=mr(t),i=e[0],n=or(e[1]),r=or(e[2]);return t.a<255?`hsla(${i}, ${n}%, ${r}%, ${rr(t.a)})`:`hsl(${i}, ${n}%, ${r}%)`}(this._rgb):void 0}mix(t,e){if(t){const i=this.rgb,n=t.rgb;let r;const o=e===r?.5:e,s=2*o-1,a=i.a-n.a,c=((s*a==-1?s:(s+a)/(1+s*a))+1)/2;r=1-c,i.r=255&c*i.r+r*n.r+.5,i.g=255&c*i.g+r*n.g+.5,i.b=255&c*i.b+r*n.b+.5,i.a=o*i.a+(1-o)*n.a,this.rgb=i}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,i){const n=Er(rr(t.r)),r=Er(rr(t.g)),o=Er(rr(t.b));return{r:nr(Mr(n+i*(Er(rr(e.r))-n))),g:nr(Mr(r+i*(Er(rr(e.g))-r))),b:nr(Mr(o+i*(Er(rr(e.b))-o))),a:t.a+i*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new Cr(this.rgb)}alpha(t){return this._rgb.a=nr(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=tr(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Pr(this._rgb,2,t),this}darken(t){return Pr(this._rgb,2,-t),this}saturate(t){return Pr(this._rgb,1,t),this}desaturate(t){return Pr(this._rgb,1,-t),this}rotate(t){return function(t,e){var i=mr(t);i[0]=yr(i[0]+e),i=vr(i),t.r=i[0],t.g=i[1],t.b=i[2]}(this._rgb,t),this}}function Dr(t){return new Cr(t)}function jr(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function Ir(t){return jr(t)?t:Dr(t)}function Rr(t){return jr(t)?t:Dr(t).saturate(.5).darken(.1).hexString()}const Fr=Object.create(null),zr=Object.create(null);function Nr(t,e){if(!e)return t;const i=e.split(".");for(let e=0,n=i.length;et.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>Rr(e.backgroundColor),this.hoverBorderColor=(t,e)=>Rr(e.borderColor),this.hoverColor=(t,e)=>Rr(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t)}set(t,e){return Br(this,t,e)}get(t){return Nr(this,t)}describe(t,e){return Br(zr,t,e)}override(t,e){return Br(Fr,t,e)}route(t,e,i,n){const r=Nr(this,t),o=Nr(this,i),s="_"+e;Object.defineProperties(r,{[s]:{value:r[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[s],e=o[n];return Yi(t)?Object.assign({},e,t):Ki(t,e)},set(t){this[s]=t}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function Vr(t,e,i,n,r){let o=e[r];return o||(o=e[r]=t.measureText(r).width,i.push(r)),o>n&&(n=o),n}function Hr(t,e,i,n){let r=(n=n||{}).data=n.data||{},o=n.garbageCollect=n.garbageCollect||[];n.font!==e&&(r=n.data={},o=n.garbageCollect=[],n.font=e),t.save(),t.font=e;let s=0;const a=i.length;let c,l,h,u,d;for(c=0;ci.length){for(c=0;c0&&t.stroke()}}function Xr(t,e,i){return i=i||.5,!e||t&&t.x>e.left-i&&t.xe.top-i&&t.y0&&""!==o.strokeColor;let c,l;for(t.save(),t.font=r.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]);Ui(e.rotation)||t.rotate(e.rotation);e.color&&(t.fillStyle=e.color);e.textAlign&&(t.textAlign=e.textAlign);e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,o),c=0;c+t||0;function so(t,e){const i={},n=Yi(e),r=n?Object.keys(e):e,o=Yi(t)?n?i=>Ki(t[i],t[e[i]]):e=>t[e]:()=>t;for(const t of r)i[t]=oo(o(t));return i}function ao(t){return so(t,{top:"y",right:"x",bottom:"y",left:"x"})}function co(t){return so(t,["topLeft","topRight","bottomLeft","bottomRight"])}function lo(t){const e=ao(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function ho(t,e){t=t||{},e=e||Wr.font;let i=Ki(t.size,e.size);"string"==typeof i&&(i=parseInt(i,10));let n=Ki(t.style,e.style);n&&!(""+n).match(no)&&(console.warn('Invalid font style specified: "'+n+'"'),n="");const r={family:Ki(t.family,e.family),lineHeight:ro(Ki(t.lineHeight,e.lineHeight),i),size:i,style:n,weight:Ki(t.weight,e.weight),string:""};return r.string=function(t){return!t||Ui(t.size)||Ui(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(r),r}function uo(t,e,i,n){let r,o,s,a=!0;for(r=0,o=t.length;rt[0])){un(n)||(n=So("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:n,_getTarget:r,override:r=>po([r,...t],e,i,n)};return new Proxy(o,{deleteProperty:(e,i)=>(delete e[i],delete e._keys,delete t[0][i],!0),get:(i,n)=>yo(i,n,(()=>function(t,e,i,n){let r;for(const o of e)if(r=So(bo(o,t),i),un(r))return vo(t,r)?ko(i,n,t,r):r}(n,e,t,i))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>Mo(t).includes(e),ownKeys:t=>Mo(t),set(t,e,i){const n=t._storage||(t._storage=r());return t[e]=n[e]=i,delete t._keys,!0}})}function go(t,e,i,n){const r={_cacheable:!1,_proxy:t,_context:e,_subProxy:i,_stack:new Set,_descriptors:mo(t,n),setContext:e=>go(t,e,i,n),override:r=>go(t.override(r),e,i,n)};return new Proxy(r,{deleteProperty:(e,i)=>(delete e[i],delete t[i],!0),get:(t,e,i)=>yo(t,e,(()=>function(t,e,i){const{_proxy:n,_context:r,_subProxy:o,_descriptors:s}=t;let a=n[e];dn(a)&&s.isScriptable(e)&&(a=function(t,e,i,n){const{_proxy:r,_context:o,_subProxy:s,_stack:a}=i;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t),e=e(o,s||n),a.delete(t),vo(t,e)&&(e=ko(r._scopes,r,t,e));return e}(e,a,t,i));qi(a)&&a.length&&(a=function(t,e,i,n){const{_proxy:r,_context:o,_subProxy:s,_descriptors:a}=i;if(un(o.index)&&n(t))e=e[o.index%e.length];else if(Yi(e[0])){const i=e,n=r._scopes.filter((t=>t!==i));e=[];for(const c of i){const i=ko(n,r,t,c);e.push(go(i,o,s&&s[t],a))}}return e}(e,a,t,s.isIndexable));vo(e,a)&&(a=go(a,r,o&&o[e],s));return a}(t,e,i))),getOwnPropertyDescriptor:(e,i)=>e._descriptors.allKeys?Reflect.has(t,i)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,i),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,i)=>Reflect.has(t,i),ownKeys:()=>Reflect.ownKeys(t),set:(e,i,n)=>(t[i]=n,delete e[i],!0)})}function mo(t,e={scriptable:!0,indexable:!0}){const{_scriptable:i=e.scriptable,_indexable:n=e.indexable,_allKeys:r=e.allKeys}=t;return{allKeys:r,scriptable:i,indexable:n,isScriptable:dn(i)?i:()=>i,isIndexable:dn(n)?n:()=>n}}const bo=(t,e)=>t?t+hn(e):e,vo=(t,e)=>Yi(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function yo(t,e,i){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const n=i();return t[e]=n,n}function xo(t,e,i){return dn(t)?t(e,i):t}const _o=(t,e)=>!0===t?e:"string"==typeof t?ln(e,t):void 0;function wo(t,e,i,n,r){for(const o of e){const e=_o(i,o);if(e){t.add(e);const o=xo(e._fallback,i,r);if(un(o)&&o!==i&&o!==n)return o}else if(!1===e&&un(n)&&i!==n)return null}return!1}function ko(t,e,i,n){const r=e._rootScopes,o=xo(e._fallback,i,n),s=[...t,...r],a=new Set;a.add(n);let c=Oo(a,s,i,o||i,n);return null!==c&&((!un(o)||o===i||(c=Oo(a,s,o,c,n),null!==c))&&po(Array.from(a),[""],r,o,(()=>function(t,e,i){const n=t._getTarget();e in n||(n[e]={});const r=n[e];if(qi(r)&&Yi(i))return i;return r}(e,i,n))))}function Oo(t,e,i,n,r){for(;i;)i=wo(t,e,i,n,r);return i}function So(t,e){for(const i of e){if(!i)continue;const e=i[t];if(un(e))return e}}function Mo(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const i of t)for(const t of Object.keys(i).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}function Eo(t,e,i,n){const{iScale:r}=t,{key:o="r"}=this._parsing,s=new Array(n);let a,c,l,h;for(a=0,c=n;ae"x"===t?"y":"x";function Ao(t,e,i,n){const r=t.skip?e:t,o=e,s=i.skip?e:i,a=Cn(o,r),c=Cn(s,o);let l=a/(a+c),h=c/(a+c);l=isNaN(l)?0:l,h=isNaN(h)?0:h;const u=n*l,d=n*h;return{previous:{x:o.x-u*(s.x-r.x),y:o.y-u*(s.y-r.y)},next:{x:o.x+d*(s.x-r.x),y:o.y+d*(s.y-r.y)}}}function Co(t,e="x"){const i=Lo(e),n=t.length,r=Array(n).fill(0),o=Array(n);let s,a,c,l=To(t,0);for(s=0;s!t.skip))),"monotone"===e.cubicInterpolationMode)Co(t,r);else{let i=n?t[t.length-1]:t[0];for(o=0,s=t.length;owindow.getComputedStyle(t,null);const No=["top","right","bottom","left"];function Bo(t,e,i){const n={};i=i?"-"+i:"";for(let r=0;r<4;r++){const o=No[r];n[o]=parseFloat(t[e+"-"+o+i])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}const Wo=(t,e,i)=>(t>0||e>0)&&(!i||!i.shadowRoot);function Vo(t,e){if("native"in t)return t;const{canvas:i,currentDevicePixelRatio:n}=e,r=zo(i),o="border-box"===r.boxSizing,s=Bo(r,"padding"),a=Bo(r,"border","width"),{x:c,y:l,box:h}=function(t,e){const i=t.touches,n=i&&i.length?i[0]:t,{offsetX:r,offsetY:o}=n;let s,a,c=!1;if(Wo(r,o,t.target))s=r,a=o;else{const t=e.getBoundingClientRect();s=n.clientX-t.left,a=n.clientY-t.top,c=!0}return{x:s,y:a,box:c}}(t,i),u=s.left+(h&&a.left),d=s.top+(h&&a.top);let{width:f,height:p}=e;return o&&(f-=s.width+a.width,p-=s.height+a.height),{x:Math.round((c-u)/f*i.width/n),y:Math.round((l-d)/p*i.height/n)}}const Ho=t=>Math.round(10*t)/10;function $o(t,e,i,n){const r=zo(t),o=Bo(r,"margin"),s=Fo(r.maxWidth,t,"clientWidth")||bn,a=Fo(r.maxHeight,t,"clientHeight")||bn,c=function(t,e,i){let n,r;if(void 0===e||void 0===i){const o=Ro(t);if(o){const t=o.getBoundingClientRect(),s=zo(o),a=Bo(s,"border","width"),c=Bo(s,"padding");e=t.width-c.width-a.width,i=t.height-c.height-a.height,n=Fo(s.maxWidth,o,"clientWidth"),r=Fo(s.maxHeight,o,"clientHeight")}else e=t.clientWidth,i=t.clientHeight}return{width:e,height:i,maxWidth:n||bn,maxHeight:r||bn}}(t,e,i);let{width:l,height:h}=c;if("content-box"===r.boxSizing){const t=Bo(r,"border","width"),e=Bo(r,"padding");l-=e.width+t.width,h-=e.height+t.height}return l=Math.max(0,l-o.width),h=Math.max(0,n?Math.floor(l/n):h-o.height),l=Ho(Math.min(l,s,c.maxWidth)),h=Ho(Math.min(h,a,c.maxHeight)),l&&!h&&(h=Ho(l/2)),{width:l,height:h}}function Uo(t,e,i){const n=e||1,r=Math.floor(t.height*n),o=Math.floor(t.width*n);t.height=r/n,t.width=o/n;const s=t.canvas;return s.style&&(i||!s.style.height&&!s.style.width)&&(s.style.height=`${t.height}px`,s.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==n||s.height!==r||s.width!==o)&&(t.currentDevicePixelRatio=n,s.height=r,s.width=o,t.ctx.setTransform(n,0,0,n,0,0),!0)}const qo=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t}();function Yo(t,e){const i=function(t,e){return zo(t).getPropertyValue(e)}(t,e),n=i&&i.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function Xo(t,e,i,n){return{x:t.x+i*(e.x-t.x),y:t.y+i*(e.y-t.y)}}function Go(t,e,i,n){return{x:t.x+i*(e.x-t.x),y:"middle"===n?i<.5?t.y:e.y:"after"===n?i<1?t.y:e.y:i>0?e.y:t.y}}function Ko(t,e,i,n){const r={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},s=Xo(t,r,i),a=Xo(r,o,i),c=Xo(o,e,i),l=Xo(s,a,i),h=Xo(a,c,i);return Xo(l,h,i)}const Jo=new Map;function Qo(t,e,i){return function(t,e){e=e||{};const i=t+JSON.stringify(e);let n=Jo.get(i);return n||(n=new Intl.NumberFormat(t,e),Jo.set(i,n)),n}(e,i).format(t)}function Zo(t,e,i){return t?function(t,e){return{x:i=>t+t+e-i,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,i):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function ts(t,e){let i,n;"ltr"!==e&&"rtl"!==e||(i=t.canvas.style,n=[i.getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",e,"important"),t.prevTextDirection=n)}function es(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function is(t){return"angle"===t?{between:In,compare:Dn,normalize:jn}:{between:Fn,compare:(t,e)=>t-e,normalize:t=>t}}function ns({start:t,end:e,count:i,loop:n,style:r}){return{start:t%i,end:e%i,loop:n&&(e-t+1)%i==0,style:r}}function rs(t,e,i){if(!i)return[t];const{property:n,start:r,end:o}=i,s=e.length,{compare:a,between:c,normalize:l}=is(n),{start:h,end:u,loop:d,style:f}=function(t,e,i){const{property:n,start:r,end:o}=i,{between:s,normalize:a}=is(n),c=e.length;let l,h,{start:u,end:d,loop:f}=t;if(f){for(u+=c,d+=c,l=0,h=c;lv||c(r,b,g)&&0!==a(r,b),_=()=>!v||0===a(o,g)||c(o,b,g);for(let t=h,i=h;t<=u;++t)m=e[t%s],m.skip||(g=l(m[n]),g!==b&&(v=c(g,r,o),null===y&&x()&&(y=0===a(g,r)?t:i),null!==y&&_()&&(p.push(ns({start:y,end:t,loop:d,count:s,style:f})),y=null),i=t,b=g));return null!==y&&p.push(ns({start:y,end:u,loop:d,count:s,style:f})),p}function os(t,e){const i=[],n=t.segments;for(let r=0;rn({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(i-e.start,o)})))}_refresh(){this._request||(this._running=!0,this._request=$n.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((i,n)=>{if(!i.running||!i.items.length)return;const r=i.items;let o,s=r.length-1,a=!1;for(;s>=0;--s)o=r[s],o._active?(o._total>i.duration&&(i.duration=o._total),o.tick(t),a=!0):(r[s]=r[r.length-1],r.pop());a&&(n.draw(),this._notify(n,i,t,"progress")),r.length||(i.running=!1,this._notify(n,i,t,"complete"),i.initial=!1),e+=r.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const i=e.items;let n=i.length-1;for(;n>=0;--n)i[n].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};const hs="transparent",us={boolean:(t,e,i)=>i>.5?e:t,color(t,e,i){const n=Ir(t||hs),r=n.valid&&Ir(e||hs);return r&&r.valid?r.mix(n,i).hexString():e},number:(t,e,i)=>t+(e-t)*i};class ds{constructor(t,e,i,n){const r=e[i];n=uo([t.to,n,r,t.from]);const o=uo([t.from,r,n]);this._active=!0,this._fn=t.fn||us[t.type||typeof o],this._easing=Zn[t.easing]||Zn.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=o,this._to=n,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);const n=this._target[this._prop],r=i-this._start,o=this._duration-r;this._start=i,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=r,this._loop=!!t.loop,this._to=uo([t.to,e,n,t.from]),this._from=uo([t.from,n,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,i=this._duration,n=this._prop,r=this._from,o=this._loop,s=this._to;let a;if(this._active=r!==s&&(o||e1?2-a:a,a=this._easing(Math.min(1,Math.max(0,a))),this._target[n]=this._fn(r,s,a))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,i)=>{t.push({res:e,rej:i})}))}_notify(t){const e=t?"res":"rej",i=this._promises||[];for(let t=0;t"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),Wr.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),Wr.describe("animations",{_fallback:"animation"}),Wr.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}});class ps{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!Yi(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach((i=>{const n=t[i];if(!Yi(n))return;const r={};for(const t of fs)r[t]=n[t];(qi(n.properties)&&n.properties||[i]).forEach((t=>{t!==i&&e.has(t)||e.set(t,r)}))}))}_animateOptions(t,e){const i=e.options,n=function(t,e){if(!e)return;let i=t.options;if(!i)return void(t.options=e);i.$shared&&(t.options=i=Object.assign({},i,{$shared:!1,$animations:{}}));return i}(t,i);if(!n)return[];const r=this._createAnimations(n,i);return i.$shared&&function(t,e){const i=[],n=Object.keys(e);for(let e=0;e{t.options=i}),(()=>{})),r}_createAnimations(t,e){const i=this._properties,n=[],r=t.$animations||(t.$animations={}),o=Object.keys(e),s=Date.now();let a;for(a=o.length-1;a>=0;--a){const c=o[a];if("$"===c.charAt(0))continue;if("options"===c){n.push(...this._animateOptions(t,e));continue}const l=e[c];let h=r[c];const u=i.get(c);if(h){if(u&&h.active()){h.update(u,l,s);continue}h.cancel()}u&&u.duration?(r[c]=h=new ds(u,t,c,l),n.push(h)):t[c]=l}return n}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const i=this._createAnimations(t,e);return i.length?(ls.add(this._chart,i),!0):void 0}}function gs(t,e){const i=t&&t.options||{},n=i.reverse,r=void 0===i.min?e:0,o=void 0===i.max?e:0;return{start:n?o:r,end:n?r:o}}function ms(t,e){const i=[],n=t._getSortedDatasetMetas(e);let r,o;for(r=0,o=n.length;r0||!i&&e<0)return r.index}return null}function _s(t,e){const{chart:i,_cachedMeta:n}=t,r=i._stacks||(i._stacks={}),{iScale:o,vScale:s,index:a}=n,c=o.axis,l=s.axis,h=function(t,e,i){return`${t.id}.${e.id}.${i.stack||i.type}`}(o,s,n),u=e.length;let d;for(let t=0;ti[t].axis===e)).shift()}function ks(t,e){const i=t.controller.index,n=t.vScale&&t.vScale.axis;if(n){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[n]||void 0===e[n][i])return;delete e[n][i]}}}const Os=t=>"reset"===t||"none"===t,Ss=(t,e)=>e?t:Object.assign({},t);class Ms{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=vs(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&ks(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,i=this.getDataset(),n=(t,e,i,n)=>"x"===t?e:"r"===t?n:i,r=e.xAxisID=Ki(i.xAxisID,ws(t,"x")),o=e.yAxisID=Ki(i.yAxisID,ws(t,"y")),s=e.rAxisID=Ki(i.rAxisID,ws(t,"r")),a=e.indexAxis,c=e.iAxisID=n(a,r,o,s),l=e.vAxisID=n(a,o,r,s);e.xScale=this.getScaleForId(r),e.yScale=this.getScaleForId(o),e.rScale=this.getScaleForId(s),e.iScale=this.getScaleForId(c),e.vScale=this.getScaleForId(l)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Vn(this._data,this),t._stacked&&ks(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if(Yi(e))this._data=function(t){const e=Object.keys(t),i=new Array(e.length);let n,r,o;for(n=0,r=e.length;n{const e="_onData"+hn(t),i=n[t];Object.defineProperty(n,t,{configurable:!0,enumerable:!1,value(...t){const r=i.apply(this,t);return n._chartjs.listeners.forEach((i=>{"function"==typeof i[e]&&i[e](...t)})),r}})})))),this._syncList=[],this._data=e}var n,r}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,i=this.getDataset();let n=!1;this._dataCheck();const r=e._stacked;e._stacked=vs(e.vScale,e),e.stack!==i.stack&&(n=!0,ks(e),e.stack=i.stack),this._resyncElements(t),(n||r!==e._stacked)&&_s(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:i,_data:n}=this,{iScale:r,_stacked:o}=i,s=r.axis;let a,c,l,h=0===t&&e===n.length||i._sorted,u=t>0&&i._parsed[t-1];if(!1===this._parsing)i._parsed=n,i._sorted=!0,l=n;else{l=qi(n[t])?this.parseArrayData(i,n,t,e):Yi(n[t])?this.parseObjectData(i,n,t,e):this.parsePrimitiveData(i,n,t,e);const r=()=>null===c[s]||u&&c[s]t&&!e.hidden&&e._stacked&&{keys:ms(i,!0),values:null})(e,i,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:l,max:h}=function(t){const{min:e,max:i,minDefined:n,maxDefined:r}=t.getUserBounds();return{min:n?e:Number.NEGATIVE_INFINITY,max:r?i:Number.POSITIVE_INFINITY}}(s);let u,d;function f(){d=n[u];const e=d[s.axis];return!Xi(d[t.axis])||l>e||h=0;--u)if(!f()){this.updateRangeFromParsed(c,t,d,a);break}return c}getAllParsedValues(t){const e=this._cachedMeta._parsed,i=[];let n,r,o;for(n=0,r=e.length;n=0&&tthis.getContext(i,n)),h);return f.$shared&&(f.$shared=a,r[o]=Object.freeze(Ss(f,a))),f}_resolveAnimations(t,e,i){const n=this.chart,r=this._cachedDataOpts,o=`animation-${e}`,s=r[o];if(s)return s;let a;if(!1!==n.options.animation){const n=this.chart.config,r=n.datasetAnimationScopeKeys(this._type,e),o=n.getOptionScopes(this.getDataset(),r);a=n.createResolver(o,this.getContext(t,i,e))}const c=new ps(n,a&&a.animations);return a&&a._cacheable&&(r[o]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Os(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const i=this.resolveDataElementOptions(t,e),n=this._sharedOptions,r=this.getSharedOptions(i),o=this.includeOptions(e,r)||r!==n;return this.updateSharedOptions(r,e,i),{sharedOptions:r,includeOptions:o}}updateElement(t,e,i,n){Os(n)?Object.assign(t,i):this._resolveAnimations(e,n).update(t,i)}updateSharedOptions(t,e,i){t&&!Os(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,n){t.active=n;const r=this.getStyle(e,n);this._resolveAnimations(e,i,n).update(t,{options:!n&&this.getSharedOptions(r)||r})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,i=this._cachedMeta.data;for(const[t,e,i]of this._syncList)this[t](e,i);this._syncList=[];const n=i.length,r=e.length,o=Math.min(r,n);o&&this.parse(0,o),r>n?this._insertElements(n,r-n,t):r{for(t.length+=e,s=t.length-1;s>=o;s--)t[s]=t[s-e]};for(a(r),s=t;st-e)))}return t._cache.$bar}(e,t.type);let n,r,o,s,a=e._length;const c=()=>{32767!==o&&-32768!==o&&(un(s)&&(a=Math.min(a,Math.abs(o-s)||a)),s=o)};for(n=0,r=i.length;nMath.abs(a)&&(c=a,l=s),e[i.axis]=l,e._custom={barStart:c,barEnd:l,start:r,end:o,min:s,max:a}}(t,e,i,n):e[i.axis]=i.parse(t,n),e}function Ts(t,e,i,n){const r=t.iScale,o=t.vScale,s=r.getLabels(),a=r===o,c=[];let l,h,u,d;for(l=i,h=i+n;lt.x,i="left",n="right"):(e=t.baset.controller.options.grouped)),r=i.options.stacked,o=[],s=t=>{const i=t.controller.getParsed(e),n=i&&i[t.vScale.axis];if(Ui(n)||isNaN(n))return!0};for(const i of n)if((void 0===e||!s(i))&&((!1===r||-1===o.indexOf(i.stack)||void 0===r&&void 0===i.stack)&&o.push(i.stack),i.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,i){const n=this._getStacks(t,i),r=void 0!==e?n.indexOf(e):-1;return-1===r?n.length-1:r}_getRuler(){const t=this.options,e=this._cachedMeta,i=e.iScale,n=[];let r,o;for(r=0,o=e.data.length;r=i?1:-1)}(h,e,o)*r,u===o&&(g-=h/2);const t=e.getPixelForDecimal(0),i=e.getPixelForDecimal(1),n=Math.min(t,i),s=Math.max(t,i);g=Math.max(Math.min(g,s),n),l=g+h}if(g===e.getPixelForValue(o)){const t=kn(h)*e.getLineWidthForValue(o)/2;g+=t,h-=t}return{size:h,base:g,head:l,center:l+h/2}}_calculateBarIndexPixels(t,e){const i=e.scale,n=this.options,r=n.skipNull,o=Ki(n.maxBarThickness,1/0);let s,a;if(e.grouped){const i=r?this._getStackCount(t):e.stackCount,c="flex"===n.barThickness?function(t,e,i,n){const r=e.pixels,o=r[t];let s=t>0?r[t-1]:null,a=t=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,{xScale:i,yScale:n}=e,r=this.getParsed(t),o=i.getLabelForValue(r.x),s=n.getLabelForValue(r.y),a=r._custom;return{label:e.label,value:"("+o+", "+s+(a?", "+a:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,n){const r="reset"===n,{iScale:o,vScale:s}=this._cachedMeta,{sharedOptions:a,includeOptions:c}=this._getSharedOptions(e,n),l=o.axis,h=s.axis;for(let u=e;u""}}}};class Fs extends Ms{constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const i=this.getDataset().data,n=this._cachedMeta;if(!1===this._parsing)n._parsed=i;else{let r,o,s=t=>+i[t];if(Yi(i[t])){const{key:t="value"}=this._parsing;s=e=>+ln(i[e],t)}for(r=t,o=t+e;rIn(t,a,c,!0)?1:Math.max(e,e*i,n,n*i),p=(t,e,n)=>In(t,a,c,!0)?-1:Math.min(e,e*i,n,n*i),g=f(0,l,u),m=f(yn,h,d),b=p(pn,l,u),v=p(pn+yn,h,d);n=(g-b)/2,r=(m-v)/2,o=-(g+b)/2,s=-(m+v)/2}return{ratioX:n,ratioY:r,offsetX:o,offsetY:s}}(d,u,a),b=(i.width-o)/f,v=(i.height-o)/p,y=Math.max(Math.min(b,v)/2,0),x=Ji(this.options.radius,y),_=(x-Math.max(x*a,0))/this._getVisibleDatasetWeightTotal();this.offsetX=g*x,this.offsetY=m*x,n.total=this.calculateTotal(),this.outerRadius=x-_*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-_*h,0),this.updateElements(r,0,r.length,t)}_circumference(t,e){const i=this.options,n=this._cachedMeta,r=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||null===n._parsed[t]||n.data[t].hidden?0:this.calculateCircumference(n._parsed[t]*r/gn)}updateElements(t,e,i,n){const r="reset"===n,o=this.chart,s=o.chartArea,a=o.options.animation,c=(s.left+s.right)/2,l=(s.top+s.bottom)/2,h=r&&a.animateScale,u=h?0:this.innerRadius,d=h?0:this.outerRadius,{sharedOptions:f,includeOptions:p}=this._getSharedOptions(e,n);let g,m=this._getRotation();for(g=0;g0&&!isNaN(t)?gn*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,n=i.data.labels||[],r=Qo(e._parsed[t],i.options.locale);return{label:n[t]||"",value:r}}getMaxBorderWidth(t){let e=0;const i=this.chart;let n,r,o,s,a;if(!t)for(n=0,r=i.data.datasets.length;n"spacing"!==t,_indexable:t=>"spacing"!==t},Fs.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i}}=t.legend.options;return e.labels.map(((e,n)=>{const r=t.getDatasetMeta(0).controller.getStyle(n);return{text:e,fillStyle:r.backgroundColor,strokeStyle:r.borderColor,lineWidth:r.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(n),index:n}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}},tooltip:{callbacks:{title:()=>"",label(t){let e=t.label;const i=": "+t.formattedValue;return qi(e)?(e=e.slice(),e[0]+=i):e+=i,e}}}}};class zs extends Ms{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:i,data:n=[],_dataset:r}=e,o=this.chart._animationsDisabled;let{start:s,count:a}=Xn(e,n,o);this._drawStart=s,this._drawCount=a,Gn(e)&&(s=0,a=n.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!r._decimated,i.points=n;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(i,void 0,{animated:!o,options:c},t),this.updateElements(n,s,a,t)}updateElements(t,e,i,n){const r="reset"===n,{iScale:o,vScale:s,_stacked:a,_dataset:c}=this._cachedMeta,{sharedOptions:l,includeOptions:h}=this._getSharedOptions(e,n),u=o.axis,d=s.axis,{spanGaps:f,segment:p}=this.options,g=Sn(f)?f:Number.POSITIVE_INFINITY,m=this.chart._animationsDisabled||r||"none"===n;let b=e>0&&this.getParsed(e-1);for(let f=e;f0&&Math.abs(i[u]-b[u])>g,p&&(v.parsed=i,v.raw=c.data[f]),h&&(v.options=l||this.resolveDataElementOptions(f,e.active?"active":n)),m||this.updateElement(e,f,v,n),b=i}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,n=t.data||[];if(!n.length)return i;const r=n[0].size(this.resolveDataElementOptions(0)),o=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,r,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}zs.id="line",zs.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},zs.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class Ns extends Ms{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,n=i.data.labels||[],r=Qo(e._parsed[t].r,i.options.locale);return{label:n[t]||"",value:r}}parseObjectData(t,e,i,n){return Eo.bind(this)(t,e,i,n)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach(((t,i)=>{const n=this.getParsed(i).r;!isNaN(n)&&this.chart.getDataVisibility(i)&&(ne.max&&(e.max=n))})),e}_updateRadius(){const t=this.chart,e=t.chartArea,i=t.options,n=Math.min(e.right-e.left,e.bottom-e.top),r=Math.max(n/2,0),o=(r-Math.max(i.cutoutPercentage?r/100*i.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=r-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(t,e,i,n){const r="reset"===n,o=this.chart,s=o.options.animation,a=this._cachedMeta.rScale,c=a.xCenter,l=a.yCenter,h=a.getIndexAngle(0)-.5*pn;let u,d=h;const f=360/this.countVisibleElements();for(u=0;u{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&e++})),e}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?Pn(this.resolveDataElementOptions(t,e).angle||i):0}}Ns.id="polarArea",Ns.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},Ns.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i}}=t.legend.options;return e.labels.map(((e,n)=>{const r=t.getDatasetMeta(0).controller.getStyle(n);return{text:e,fillStyle:r.backgroundColor,strokeStyle:r.borderColor,lineWidth:r.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(n),index:n}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}},tooltip:{callbacks:{title:()=>"",label:t=>t.chart.data.labels[t.dataIndex]+": "+t.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class Bs extends Fs{}Bs.id="pie",Bs.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class Ws extends Ms{getLabelAndValue(t){const e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}parseObjectData(t,e,i,n){return Eo.bind(this)(t,e,i,n)}update(t){const e=this._cachedMeta,i=e.dataset,n=e.data||[],r=e.iScale.getLabels();if(i.points=n,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const o={_loop:!0,_fullLoop:r.length===n.length,options:e};this.updateElement(i,void 0,o,t)}this.updateElements(n,0,n.length,t)}updateElements(t,e,i,n){const r=this._cachedMeta.rScale,o="reset"===n;for(let s=e;s{n[t]=i[t]&&i[t].active()?i[t]._to:this[t]})),n}}Vs.defaults={},Vs.defaultRoutes=void 0;const Hs={values:t=>qi(t)?t:""+t,numeric(t,e,i){if(0===t)return"0";const n=this.chart.options.locale;let r,o=t;if(i.length>1){const e=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(e<1e-4||e>1e15)&&(r="scientific"),o=function(t,e){let i=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;Math.abs(i)>=1&&t!==Math.floor(t)&&(i=t-Math.floor(t));return i}(t,i)}const s=wn(Math.abs(o)),a=Math.max(Math.min(-1*Math.floor(s),20),0),c={notation:r,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(c,this.options.ticks.format),Qo(t,n,c)},logarithmic(t,e,i){if(0===t)return"0";const n=t/Math.pow(10,Math.floor(wn(t)));return 1===n||2===n||5===n?Hs.numeric.call(this,t,e,i):""}};var $s={formatters:Hs};function Us(t,e){const i=t.options.ticks,n=i.maxTicksLimit||function(t){const e=t.options.offset,i=t._tickSize(),n=t._length/i+(e?0:1),r=t._maxLength/i;return Math.floor(Math.min(n,r))}(t),r=i.major.enabled?function(t){const e=[];let i,n;for(i=0,n=t.length;in)return function(t,e,i,n){let r,o=0,s=i[0];for(n=Math.ceil(n),r=0;rt-e)).pop(),e}(n);for(let t=0,e=o.length-1;tr)return e}return Math.max(r,1)}(r,e,n);if(o>0){let t,i;const n=o>1?Math.round((a-s)/(o-1)):null;for(qs(e,c,l,Ui(n)?0:s-n,s),t=0,i=o-1;te.lineWidth,tickColor:(t,e)=>e.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:$s.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),Wr.route("scale.ticks","color","","color"),Wr.route("scale.grid","color","","borderColor"),Wr.route("scale.grid","borderColor","","borderColor"),Wr.route("scale.title","color","","color"),Wr.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),Wr.describe("scales",{_fallback:"scale"}),Wr.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const Ys=(t,e,i)=>"top"===e||"left"===e?t[e]+i:t[e]-i;function Xs(t,e){const i=[],n=t.length/e,r=t.length;let o=0;for(;os+a)))return l}function Ks(t){return t.drawTicks?t.tickLength:0}function Js(t,e){if(!t.display)return 0;const i=ho(t.font,e),n=lo(t.padding);return(qi(t.text)?t.text.length:1)*i.lineHeight+n.height}function Qs(t,e,i){let n=qn(t);return(i&&"right"!==e||!i&&"right"===e)&&(n=(t=>"left"===t?"right":"right"===t?"left":t)(n)),n}class Zs extends Vs{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:i,_suggestedMax:n}=this;return t=Gi(t,Number.POSITIVE_INFINITY),e=Gi(e,Number.NEGATIVE_INFINITY),i=Gi(i,Number.POSITIVE_INFINITY),n=Gi(n,Number.NEGATIVE_INFINITY),{min:Gi(t,i),max:Gi(e,n),minDefined:Xi(t),maxDefined:Xi(e)}}getMinMax(t){let e,{min:i,max:n,minDefined:r,maxDefined:o}=this.getUserBounds();if(r&&o)return{min:i,max:n};const s=this.getMatchingVisibleMetas();for(let a=0,c=s.length;an?n:i,n=r&&i>n?i:n,{min:Gi(i,Gi(n,i)),max:Gi(n,Gi(i,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Qi(this.options.beforeUpdate,[this])}update(t,e,i){const{beginAtZero:n,grace:r,ticks:o}=this.options,s=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,i){const{min:n,max:r}=t,o=Ji(e,(r-n)/2),s=(t,e)=>i&&0===t?0:t+e;return{min:s(n,-Math.abs(o)),max:s(r,o)}}(this,r,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const a=s=r||i<=1||!this.isHorizontal())return void(this.labelRotation=n);const l=this._getLabelSizes(),h=l.widest.width,u=l.highest.height,d=Rn(this.chart.width-h,0,this.maxWidth);o=t.offset?this.maxWidth/i:d/(i-1),h+6>o&&(o=d/(i-(t.offset?.5:1)),s=this.maxHeight-Ks(t.grid)-e.padding-Js(t.title,this.chart.options.font),a=Math.sqrt(h*h+u*u),c=Tn(Math.min(Math.asin(Rn((l.highest.height+6)/o,-1,1)),Math.asin(Rn(s/a,-1,1))-Math.asin(Rn(u/a,-1,1)))),c=Math.max(n,Math.min(r,c))),this.labelRotation=c}afterCalculateLabelRotation(){Qi(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Qi(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:i,title:n,grid:r}}=this,o=this._isVisible(),s=this.isHorizontal();if(o){const o=Js(n,e.options.font);if(s?(t.width=this.maxWidth,t.height=Ks(r)+o):(t.height=this.maxHeight,t.width=Ks(r)+o),i.display&&this.ticks.length){const{first:e,last:n,widest:r,highest:o}=this._getLabelSizes(),a=2*i.padding,c=Pn(this.labelRotation),l=Math.cos(c),h=Math.sin(c);if(s){const e=i.mirror?0:h*r.width+l*o.height;t.height=Math.min(this.maxHeight,t.height+e+a)}else{const e=i.mirror?0:l*r.width+h*o.height;t.width=Math.min(this.maxWidth,t.width+e+a)}this._calculatePadding(e,n,h,l)}}this._handleMargins(),s?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,i,n){const{ticks:{align:r,padding:o},position:s}=this.options,a=0!==this.labelRotation,c="top"!==s&&"x"===this.axis;if(this.isHorizontal()){const s=this.getPixelForTick(0)-this.left,l=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,u=0;a?c?(h=n*t.width,u=i*e.height):(h=i*t.height,u=n*e.width):"start"===r?u=e.width:"end"===r?h=t.width:"inner"!==r&&(h=t.width/2,u=e.width/2),this.paddingLeft=Math.max((h-s+o)*this.width/(this.width-s),0),this.paddingRight=Math.max((u-l+o)*this.width/(this.width-l),0)}else{let i=e.height/2,n=t.height/2;"start"===r?(i=0,n=t.height):"end"===r&&(i=e.height,n=0),this.paddingTop=i+o,this.paddingBottom=n+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Qi(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,i=t.length;e{const i=t.gc,n=i.length/2;let r;if(n>e){for(r=0;r({width:r[t]||0,height:o[t]||0});return{first:_(0),last:_(e-1),widest:_(y),highest:_(x),widths:r,heights:o}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return Rn(this._alignToPixels?$r(this.chart,e,0):e,-32768,32767)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&ts*n?s/i:a/n:a*n0}_computeGridLineItems(t){const e=this.axis,i=this.chart,n=this.options,{grid:r,position:o}=n,s=r.offset,a=this.isHorizontal(),c=this.ticks.length+(s?1:0),l=Ks(r),h=[],u=r.setContext(this.getContext()),d=u.drawBorder?u.borderWidth:0,f=d/2,p=function(t){return $r(i,t,d)};let g,m,b,v,y,x,_,w,k,O,S,M;if("top"===o)g=p(this.bottom),x=this.bottom-l,w=g-f,O=p(t.top)+f,M=t.bottom;else if("bottom"===o)g=p(this.top),O=t.top,M=p(t.bottom)-f,x=g+f,w=this.top+l;else if("left"===o)g=p(this.right),y=this.right-l,_=g-f,k=p(t.left)+f,S=t.right;else if("right"===o)g=p(this.left),k=t.left,S=p(t.right)-f,y=g+f,_=this.left+l;else if("x"===e){if("center"===o)g=p((t.top+t.bottom)/2+.5);else if(Yi(o)){const t=Object.keys(o)[0],e=o[t];g=p(this.chart.scales[t].getPixelForValue(e))}O=t.top,M=t.bottom,x=g+f,w=x+l}else if("y"===e){if("center"===o)g=p((t.left+t.right)/2);else if(Yi(o)){const t=Object.keys(o)[0],e=o[t];g=p(this.chart.scales[t].getPixelForValue(e))}y=g-f,_=y-l,k=t.left,S=t.right}const E=Ki(n.ticks.maxTicksLimit,c),P=Math.max(1,Math.ceil(c/E));for(m=0;me.value===t));if(i>=0){return e.setContext(this.getContext(i)).lineWidth}return 0}drawGrid(t){const e=this.options.grid,i=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let r,o;const s=(t,e,n)=>{n.width&&n.color&&(i.save(),i.lineWidth=n.width,i.strokeStyle=n.color,i.setLineDash(n.borderDash||[]),i.lineDashOffset=n.borderDashOffset,i.beginPath(),i.moveTo(t.x,t.y),i.lineTo(e.x,e.y),i.stroke(),i.restore())};if(e.display)for(r=0,o=n.length;r{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:i+1,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",n=[];let r,o;for(r=0,o=e.length;r{const n=i.split("."),r=n.pop(),o=[t].concat(n).join("."),s=e[i].split("."),a=s.pop(),c=s.join(".");Wr.route(o,r,c,a)}))}(e,t.defaultRoutes);t.descriptors&&Wr.describe(e,t.descriptors)}(t,o,i),this.override&&Wr.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const e=this.items,i=t.id,n=this.scope;i in e&&delete e[i],n&&i in Wr[n]&&(delete Wr[n][i],this.override&&delete Fr[i])}}var ea=new class{constructor(){this.controllers=new ta(Ms,"datasets",!0),this.elements=new ta(Vs,"elements"),this.plugins=new ta(Object,"plugins"),this.scales=new ta(Zs,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,i){[...e].forEach((e=>{const n=i||this._getRegistryForType(e);i||n.isForType(e)||n===this.plugins&&e.id?this._exec(t,n,e):Zi(e,(e=>{const n=i||this._getRegistryForType(e);this._exec(t,n,e)}))}))}_exec(t,e,i){const n=hn(t);Qi(i["before"+n],[],i),e[t](i),Qi(i["after"+n],[],i)}_getRegistryForType(t){for(let e=0;e0&&this.getParsed(e-1);for(let l=e;l0&&Math.abs(i[d]-v[d])>m,g&&(p.parsed=i,p.raw=c.data[l]),u&&(p.options=h||this.resolveDataElementOptions(l,e.active?"active":n)),b||this.updateElement(e,l,p,n),v=i}this.updateSharedOptions(h,n,l)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let i=e.length-1;i>=0;--i)t=Math.max(t,e[i].size(this.resolveDataElementOptions(i))/2);return t>0&&t}const i=t.dataset,n=i.options&&i.options.borderWidth||0;if(!e.length)return n;const r=e[0].size(this.resolveDataElementOptions(0)),o=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(n,r,o)/2}}ia.id="scatter",ia.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},ia.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:t=>"("+t.label+", "+t.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var na=Object.freeze({__proto__:null,BarController:Is,BubbleController:Rs,DoughnutController:Fs,LineController:zs,PolarAreaController:Ns,PieController:Bs,RadarController:Ws,ScatterController:ia});function ra(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class oa{constructor(t){this.options=t||{}}init(t){}formats(){return ra()}parse(t,e){return ra()}format(t,e){return ra()}add(t,e,i){return ra()}diff(t,e,i){return ra()}startOf(t,e,i){return ra()}endOf(t,e){return ra()}}oa.override=function(t){Object.assign(oa.prototype,t)};var sa={_date:oa};function aa(t,e,i,n){const{controller:r,data:o,_sorted:s}=t,a=r._cachedMeta.iScale;if(a&&e===a.axis&&"r"!==e&&s&&o.length){const t=a._reversePixels?Bn:Nn;if(!n)return t(o,e,i);if(r._sharedOptions){const n=o[0],r="function"==typeof n.getRange&&n.getRange(e);if(r){const n=t(o,e,i-r),s=t(o,e,i+r);return{lo:n.lo,hi:s.hi}}}}return{lo:0,hi:o.length-1}}function ca(t,e,i,n,r){const o=t.getSortedVisibleDatasetMetas(),s=i[e];for(let t=0,i=o.length;t{t[s](e[i],r)&&(o.push({element:t,datasetIndex:n,index:c}),a=a||t.inRange(e.x,e.y,r))})),n&&!a?[]:o}var fa={evaluateInteractionItems:ca,modes:{index(t,e,i,n){const r=Vo(e,t),o=i.axis||"x",s=i.includeInvisible||!1,a=i.intersect?la(t,r,o,n,s):ua(t,r,o,!1,n,s),c=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=a[0].index,i=t.data[e];i&&!i.skip&&c.push({element:i,datasetIndex:t.index,index:e})})),c):[]},dataset(t,e,i,n){const r=Vo(e,t),o=i.axis||"xy",s=i.includeInvisible||!1;let a=i.intersect?la(t,r,o,n,s):ua(t,r,o,!1,n,s);if(a.length>0){const e=a[0].datasetIndex,i=t.getDatasetMeta(e).data;a=[];for(let t=0;tla(t,Vo(e,t),i.axis||"xy",n,i.includeInvisible||!1),nearest(t,e,i,n){const r=Vo(e,t),o=i.axis||"xy",s=i.includeInvisible||!1;return ua(t,r,o,i.intersect,n,s)},x:(t,e,i,n)=>da(t,Vo(e,t),"x",i.intersect,n),y:(t,e,i,n)=>da(t,Vo(e,t),"y",i.intersect,n)}};const pa=["left","top","right","bottom"];function ga(t,e){return t.filter((t=>t.pos===e))}function ma(t,e){return t.filter((t=>-1===pa.indexOf(t.pos)&&t.box.axis===e))}function ba(t,e){return t.sort(((t,i)=>{const n=e?i:t,r=e?t:i;return n.weight===r.weight?n.index-r.index:n.weight-r.weight}))}function va(t,e){const i=function(t){const e={};for(const i of t){const{stack:t,pos:n,stackWeight:r}=i;if(!t||!pa.includes(n))continue;const o=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=r}return e}(t),{vBoxMaxWidth:n,hBoxMaxHeight:r}=e;let o,s,a;for(o=0,s=t.length;o{n[t]=Math.max(e[t],i[t])})),n}return n(t?["left","right"]:["top","bottom"])}function ka(t,e,i,n){const r=[];let o,s,a,c,l,h;for(o=0,s=t.length,l=0;ot.box.fullSize)),!0),n=ba(ga(e,"left"),!0),r=ba(ga(e,"right")),o=ba(ga(e,"top"),!0),s=ba(ga(e,"bottom")),a=ma(e,"x"),c=ma(e,"y");return{fullSize:i,leftAndTop:n.concat(o),rightAndBottom:r.concat(c).concat(s).concat(a),chartArea:ga(e,"chartArea"),vertical:n.concat(r).concat(c),horizontal:o.concat(s).concat(a)}}(t.boxes),c=a.vertical,l=a.horizontal;Zi(t.boxes,(t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}));const h=c.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,u=Object.freeze({outerWidth:e,outerHeight:i,padding:r,availableWidth:o,availableHeight:s,vBoxMaxWidth:o/2/h,hBoxMaxHeight:s/2}),d=Object.assign({},r);xa(d,lo(n));const f=Object.assign({maxPadding:d,w:o,h:s,x:r.left,y:r.top},r),p=va(c.concat(l),u);ka(a.fullSize,f,u,p),ka(c,f,u,p),ka(l,f,u,p)&&ka(c,f,u,p),function(t){const e=t.maxPadding;function i(i){const n=Math.max(e[i]-t[i],0);return t[i]+=n,n}t.y+=i("top"),t.x+=i("left"),i("right"),i("bottom")}(f),Sa(a.leftAndTop,f,u,p),f.x+=f.w,f.y+=f.h,Sa(a.rightAndBottom,f,u,p),t.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},Zi(a.chartArea,(e=>{const i=e.box;Object.assign(i,t.chartArea),i.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})}))}};class Ea{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,n){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,n?Math.floor(e/n):i)}}isAttached(t){return!0}updateConfig(t){}}class Pa extends Ea{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Ta="$chartjs",La={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Aa=t=>null===t||""===t;const Ca=!!qo&&{passive:!0};function Da(t,e,i){t.canvas.removeEventListener(e,i,Ca)}function ja(t,e){for(const i of t)if(i===e||i.contains(e))return!0}function Ia(t,e,i){const n=t.canvas,r=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||ja(i.addedNodes,n),e=e&&!ja(i.removedNodes,n);e&&i()}));return r.observe(document,{childList:!0,subtree:!0}),r}function Ra(t,e,i){const n=t.canvas,r=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||ja(i.removedNodes,n),e=e&&!ja(i.addedNodes,n);e&&i()}));return r.observe(document,{childList:!0,subtree:!0}),r}const Fa=new Map;let za=0;function Na(){const t=window.devicePixelRatio;t!==za&&(za=t,Fa.forEach(((e,i)=>{i.currentDevicePixelRatio!==t&&e()})))}function Ba(t,e,i){const n=t.canvas,r=n&&Ro(n);if(!r)return;const o=Un(((t,e)=>{const n=r.clientWidth;i(t,e),n{const e=t[0],i=e.contentRect.width,n=e.contentRect.height;0===i&&0===n||o(i,n)}));return s.observe(r),function(t,e){Fa.size||window.addEventListener("resize",Na),Fa.set(t,e)}(t,o),s}function Wa(t,e,i){i&&i.disconnect(),"resize"===e&&function(t){Fa.delete(t),Fa.size||window.removeEventListener("resize",Na)}(t)}function Va(t,e,i){const n=t.canvas,r=Un((e=>{null!==t.ctx&&i(function(t,e){const i=La[t.type]||t.type,{x:n,y:r}=Vo(t,e);return{type:i,chart:e,native:t,x:void 0!==n?n:null,y:void 0!==r?r:null}}(e,t))}),t,(t=>{const e=t[0];return[e,e.offsetX,e.offsetY]}));return function(t,e,i){t.addEventListener(e,i,Ca)}(n,e,r),r}class Ha extends Ea{acquireContext(t,e){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(function(t,e){const i=t.style,n=t.getAttribute("height"),r=t.getAttribute("width");if(t[Ta]={initial:{height:n,width:r,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",Aa(r)){const e=Yo(t,"width");void 0!==e&&(t.width=e)}if(Aa(n))if(""===t.style.height)t.height=t.width/(e||2);else{const e=Yo(t,"height");void 0!==e&&(t.height=e)}}(t,e),i):null}releaseContext(t){const e=t.canvas;if(!e[Ta])return!1;const i=e[Ta].initial;["height","width"].forEach((t=>{const n=i[t];Ui(n)?e.removeAttribute(t):e.setAttribute(t,n)}));const n=i.style||{};return Object.keys(n).forEach((t=>{e.style[t]=n[t]})),e.width=e.width,delete e[Ta],!0}addEventListener(t,e,i){this.removeEventListener(t,e);const n=t.$proxies||(t.$proxies={}),r={attach:Ia,detach:Ra,resize:Ba}[e]||Va;n[e]=r(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),n=i[e];if(!n)return;({attach:Wa,detach:Wa,resize:Wa}[e]||Da)(t,e,n),i[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,n){return $o(t,e,i,n)}isAttached(t){const e=Ro(t);return!(!e||!e.isConnected)}}class $a{constructor(){this._init=[]}notify(t,e,i,n){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const r=n?this._descriptors(t).filter(n):this._descriptors(t),o=this._notify(r,t,e,i);return"afterDestroy"===e&&(this._notify(r,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,e,i,n){n=n||{};for(const r of t){const t=r.plugin;if(!1===Qi(t[i],[e,n,r.options],t)&&n.cancelable)return!1}return!0}invalidate(){Ui(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const i=t&&t.config,n=Ki(i.options&&i.options.plugins,{}),r=function(t){const e={},i=[],n=Object.keys(ea.plugins.items);for(let t=0;tt.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(n(e,i),t,"stop"),this._notify(n(i,e),t,"start")}}function Ua(t,e){return e||!1!==t?!0===t?{}:t:null}function qa(t,{plugin:e,local:i},n,r){const o=t.pluginScopeKeys(e),s=t.getOptionScopes(n,o);return i&&e.defaults&&s.push(e.defaults),t.createResolver(s,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Ya(t,e){const i=Wr.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||i.indexAxis||"x"}function Xa(t,e){return"x"===t||"y"===t?t:e.axis||("top"===(i=e.position)||"bottom"===i?"x":"left"===i||"right"===i?"y":void 0)||t.charAt(0).toLowerCase();var i}function Ga(t){const e=t.options||(t.options={});e.plugins=Ki(e.plugins,{}),e.scales=function(t,e){const i=Fr[t.type]||{scales:{}},n=e.scales||{},r=Ya(t.type,e),o=Object.create(null),s=Object.create(null);return Object.keys(n).forEach((t=>{const e=n[t];if(!Yi(e))return console.error(`Invalid scale configuration for scale: ${t}`);if(e._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const a=Xa(t,e),c=function(t,e){return t===e?"_index_":"_value_"}(a,r),l=i.scales||{};o[a]=o[a]||t,s[t]=sn(Object.create(null),[{axis:a},e,l[a],l[c]])})),t.data.datasets.forEach((i=>{const r=i.type||t.type,a=i.indexAxis||Ya(r,e),c=(Fr[r]||{}).scales||{};Object.keys(c).forEach((t=>{const e=function(t,e){let i=t;return"_index_"===t?i=e:"_value_"===t&&(i="x"===e?"y":"x"),i}(t,a),r=i[e+"AxisID"]||o[e]||e;s[r]=s[r]||Object.create(null),sn(s[r],[{axis:e},n[r],c[t]])}))})),Object.keys(s).forEach((t=>{const e=s[t];sn(e,[Wr.scales[e.type],Wr.scale])})),s}(t,e)}function Ka(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const Ja=new Map,Qa=new Set;function Za(t,e){let i=Ja.get(t);return i||(i=e(),Ja.set(t,i),Qa.add(i)),i}const tc=(t,e,i)=>{const n=ln(e,i);void 0!==n&&t.add(n)};class ec{constructor(t){this._config=function(t){return(t=t||{}).data=Ka(t.data),Ga(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Ka(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Ga(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Za(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return Za(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return Za(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return Za(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const i=this._scopeCache;let n=i.get(t);return n&&!e||(n=new Map,i.set(t,n)),n}getOptionScopes(t,e,i){const{options:n,type:r}=this,o=this._cachedScopes(t,i),s=o.get(e);if(s)return s;const a=new Set;e.forEach((e=>{t&&(a.add(t),e.forEach((e=>tc(a,t,e)))),e.forEach((t=>tc(a,n,t))),e.forEach((t=>tc(a,Fr[r]||{},t))),e.forEach((t=>tc(a,Wr,t))),e.forEach((t=>tc(a,zr,t)))}));const c=Array.from(a);return 0===c.length&&c.push(Object.create(null)),Qa.has(e)&&o.set(e,c),c}chartOptionScopes(){const{options:t,type:e}=this;return[t,Fr[e]||{},Wr.datasets[e]||{},{type:e},Wr,zr]}resolveNamedOptions(t,e,i,n=[""]){const r={$shared:!0},{resolver:o,subPrefixes:s}=ic(this._resolverCache,t,n);let a=o;if(function(t,e){const{isScriptable:i,isIndexable:n}=mo(t);for(const r of e){const e=i(r),o=n(r),s=(o||e)&&t[r];if(e&&(dn(s)||nc(s))||o&&qi(s))return!0}return!1}(o,e)){r.$shared=!1;a=go(o,i=dn(i)?i():i,this.createResolver(t,i,s))}for(const t of e)r[t]=a[t];return r}createResolver(t,e,i=[""],n){const{resolver:r}=ic(this._resolverCache,t,i);return Yi(e)?go(r,e,void 0,n):r}}function ic(t,e,i){let n=t.get(e);n||(n=new Map,t.set(e,n));const r=i.join();let o=n.get(r);if(!o){o={resolver:po(e,i),subPrefixes:i.filter((t=>!t.toLowerCase().includes("hover")))},n.set(r,o)}return o}const nc=t=>Yi(t)&&Object.getOwnPropertyNames(t).reduce(((e,i)=>e||dn(t[i])),!1);const rc=["top","bottom","left","right","chartArea"];function oc(t,e){return"top"===t||"bottom"===t||-1===rc.indexOf(t)&&"x"===e}function sc(t,e){return function(i,n){return i[t]===n[t]?i[e]-n[e]:i[t]-n[t]}}function ac(t){const e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),Qi(i&&i.onComplete,[t],e)}function cc(t){const e=t.chart,i=e.options.animation;Qi(i&&i.onProgress,[t],e)}function lc(t){return Io()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const hc={},uc=t=>{const e=lc(t);return Object.values(hc).filter((t=>t.canvas===e)).pop()};function dc(t,e,i){const n=Object.keys(t);for(const r of n){const n=+r;if(n>=e){const o=t[r];delete t[r],(i>0||n>e)&&(t[n+i]=o)}}}class fc{constructor(t,e){const i=this.config=new ec(e),n=lc(t),r=uc(n);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const o=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||function(t){return!Io()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?Pa:Ha}(n)),this.platform.updateConfig(i);const s=this.platform.acquireContext(n,o.aspectRatio),a=s&&s.canvas,c=a&&a.height,l=a&&a.width;this.id=$i(),this.ctx=s,this.canvas=a,this.width=l,this.height=c,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new $a,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let i;return function(...n){return e?(clearTimeout(i),i=setTimeout(t,e,n)):t.apply(this,n),e}}((t=>this.update(t)),o.resizeDelay||0),this._dataChanges=[],hc[this.id]=this,s&&a?(ls.listen(this,"complete",ac),ls.listen(this,"progress",cc),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:i,height:n,_aspectRatio:r}=this;return Ui(t)?e&&r?r:n?i/n:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Uo(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Ur(this.canvas,this.ctx),this}stop(){return ls.stop(this),this}resize(t,e){ls.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this.options,n=this.canvas,r=i.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(n,t,e,r),s=i.devicePixelRatio||this.platform.getDevicePixelRatio(),a=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,Uo(this,s,!0)&&(this.notifyPlugins("resize",{size:o}),Qi(i.onResize,[this,o],this),this.attached&&this._doResize(a)&&this.render())}ensureScalesHaveIDs(){Zi(this.options.scales||{},((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,i=this.scales,n=Object.keys(i).reduce(((t,e)=>(t[e]=!1,t)),{});let r=[];e&&(r=r.concat(Object.keys(e).map((t=>{const i=e[t],n=Xa(t,i),r="r"===n,o="x"===n;return{options:i,dposition:r?"chartArea":o?"bottom":"left",dtype:r?"radialLinear":o?"category":"linear"}})))),Zi(r,(e=>{const r=e.options,o=r.id,s=Xa(o,r),a=Ki(r.type,e.dtype);void 0!==r.position&&oc(r.position,s)===oc(e.dposition)||(r.position=e.dposition),n[o]=!0;let c=null;if(o in i&&i[o].type===a)c=i[o];else{c=new(ea.getScale(a))({id:o,type:a,ctx:this.ctx,chart:this}),i[c.id]=c}c.init(r,t)})),Zi(n,((t,e)=>{t||delete i[e]})),Zi(i,(t=>{Ma.configure(this,t,t.options),Ma.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort(((t,e)=>t.index-e.index)),i>e){for(let t=e;te.length&&delete this._stacks,t.forEach(((t,i)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(i)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let i,n;for(this._removeUnreferencedMetasets(),i=0,n=e.length;i{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),n=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let t=0,e=this.data.datasets.length;t{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(sc("z","_idx"));const{_active:s,_lastEvent:a}=this;a?this._eventHandler(a,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){Zi(this.scales,(t=>{Ma.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);fn(e,i)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:i,start:n,count:r}of e){dc(t,n,"_removeElements"===i?-r:r)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,i=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),n=i(0);for(let t=1;tt.split(","))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Ma.update(this,this.width,this.height,t);const e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],Zi(this.boxes,(t=>{i&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))}),this),this._layers.forEach(((t,e)=>{t._idx=e})),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,i=t._clip,n=!i.disabled,r=this.chartArea,o={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",o)&&(n&&Gr(e,{left:!1===i.left?0:r.left-i.left,right:!1===i.right?this.width:r.right+i.right,top:!1===i.top?0:r.top-i.top,bottom:!1===i.bottom?this.height:r.bottom+i.bottom}),t.controller.draw(),n&&Kr(e),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return Xr(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,n){const r=fa.modes[e];return"function"==typeof r?r(this,t,i,n):[]}getDatasetMeta(t){const e=this.data.datasets[t],i=this._metasets;let n=i.filter((t=>t&&t._dataset===e)).pop();return n||(n={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},i.push(n)),n}getContext(){return this.$context||(this.$context=fo(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const i=this.getDatasetMeta(t);return"boolean"==typeof i.hidden?!i.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,i){const n=i?"show":"hide",r=this.getDatasetMeta(t),o=r.controller._resolveAnimations(void 0,n);un(e)?(r.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),o.update(r,{visible:i}),this.update((e=>e.datasetIndex===t?n:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),ls.remove(this),t=0,e=this.data.datasets.length;t{e.addEventListener(this,i,n),t[i]=n},n=(t,e,i)=>{t.offsetX=e,t.offsetY=i,this._eventHandler(t)};Zi(this.options.events,(t=>i(t,n)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,i=(i,n)=>{e.addEventListener(this,i,n),t[i]=n},n=(i,n)=>{t[i]&&(e.removeEventListener(this,i,n),delete t[i])},r=(t,e)=>{this.canvas&&this.resize(t,e)};let o;const s=()=>{n("attach",s),this.attached=!0,this.resize(),i("resize",r),i("detach",o)};o=()=>{this.attached=!1,n("resize",r),this._stop(),this._resize(0,0),i("attach",s)},e.isAttached(this.canvas)?s():o()}unbindEvents(){Zi(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},Zi(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){const n=i?"set":"remove";let r,o,s,a;for("dataset"===e&&(r=this.getDatasetMeta(t[0].datasetIndex),r.controller["_"+n+"DatasetHoverStyle"]()),s=0,a=t.length;s{const i=this.getDatasetMeta(t);if(!i)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:i.data[e],index:e}}));!tn(i,e)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}_updateHoverStyles(t,e,i){const n=this.options.hover,r=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),o=r(e,t),s=i?t:r(t,e);o.length&&this.updateHoverStyle(o,n.mode,!1),s.length&&n.mode&&this.updateHoverStyle(s,n.mode,!0)}_eventHandler(t,e){const i={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},n=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",i,n))return;const r=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,n),(r||i.changed)&&this.render(),this}_handleEvent(t,e,i){const{_active:n=[],options:r}=this,o=e,s=this._getActiveElements(t,n,i,o),a=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),c=function(t,e,i,n){return i&&"mouseout"!==t.type?n?e:t:null}(t,this._lastEvent,i,a);i&&(this._lastEvent=null,Qi(r.onHover,[t,s,this],this),a&&Qi(r.onClick,[t,s,this],this));const l=!tn(s,n);return(l||e)&&(this._active=s,this._updateHoverStyles(s,n,e)),this._lastEvent=c,l}_getActiveElements(t,e,i,n){if("mouseout"===t.type)return[];if(!i)return e;const r=this.options.hover;return this.getElementsAtEventForMode(t,r.mode,r,n)}}const pc=()=>Zi(fc.instances,(t=>t._plugins.invalidate())),gc=!0;function mc(t,e,i){const{startAngle:n,pixelMargin:r,x:o,y:s,outerRadius:a,innerRadius:c}=e;let l=r/a;t.beginPath(),t.arc(o,s,a,n-l,i+l),c>r?(l=r/c,t.arc(o,s,c,i+l,n-l,!0)):t.arc(o,s,r,i+yn,n-yn),t.closePath(),t.clip()}function bc(t,e,i,n){const r=so(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const o=(i-e)/2,s=Math.min(o,n*e/2),a=t=>{const e=(i-Math.min(o,t))*n/2;return Rn(t,0,Math.min(o,e))};return{outerStart:a(r.outerStart),outerEnd:a(r.outerEnd),innerStart:Rn(r.innerStart,0,s),innerEnd:Rn(r.innerEnd,0,s)}}function vc(t,e,i,n){return{x:i+t*Math.cos(e),y:n+t*Math.sin(e)}}function yc(t,e,i,n,r,o){const{x:s,y:a,startAngle:c,pixelMargin:l,innerRadius:h}=e,u=Math.max(e.outerRadius+n+i-l,0),d=h>0?h+n+i+l:0;let f=0;const p=r-c;if(n){const t=((h>0?h-n:0)+(u>0?u-n:0))/2;f=(p-(0!==t?p*t/(t+n):p))/2}const g=(p-Math.max(.001,p*u-i/pn)/u)/2,m=c+g+f,b=r-g-f,{outerStart:v,outerEnd:y,innerStart:x,innerEnd:_}=bc(e,d,u,b-m),w=u-v,k=u-y,O=m+v/w,S=b-y/k,M=d+x,E=d+_,P=m+x/M,T=b-_/E;if(t.beginPath(),o){if(t.arc(s,a,u,O,S),y>0){const e=vc(k,S,s,a);t.arc(e.x,e.y,y,S,b+yn)}const e=vc(E,b,s,a);if(t.lineTo(e.x,e.y),_>0){const e=vc(E,T,s,a);t.arc(e.x,e.y,_,b+yn,T+Math.PI)}if(t.arc(s,a,d,b-_/d,m+x/d,!0),x>0){const e=vc(M,P,s,a);t.arc(e.x,e.y,x,P+Math.PI,m-yn)}const i=vc(w,m,s,a);if(t.lineTo(i.x,i.y),v>0){const e=vc(w,O,s,a);t.arc(e.x,e.y,v,m-yn,O)}}else{t.moveTo(s,a);const e=Math.cos(O)*u+s,i=Math.sin(O)*u+a;t.lineTo(e,i);const n=Math.cos(S)*u+s,r=Math.sin(S)*u+a;t.lineTo(n,r)}t.closePath()}function xc(t,e,i,n,r,o){const{options:s}=e,{borderWidth:a,borderJoinStyle:c}=s,l="inner"===s.borderAlign;a&&(l?(t.lineWidth=2*a,t.lineJoin=c||"round"):(t.lineWidth=a,t.lineJoin=c||"bevel"),e.fullCircles&&function(t,e,i){const{x:n,y:r,startAngle:o,pixelMargin:s,fullCircles:a}=e,c=Math.max(e.outerRadius-s,0),l=e.innerRadius+s;let h;for(i&&mc(t,e,o+gn),t.beginPath(),t.arc(n,r,l,o+gn,o,!0),h=0;h{ea.add(...t),pc()}},unregister:{enumerable:gc,value:(...t)=>{ea.remove(...t),pc()}}});class _c extends Vs{constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,i){const n=this.getProps(["x","y"],i),{angle:r,distance:o}=An(n,{x:t,y:e}),{startAngle:s,endAngle:a,innerRadius:c,outerRadius:l,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),u=this.options.spacing/2,d=Ki(h,a-s)>=gn||In(r,s,a),f=Fn(o,c+u,l+u);return d&&f}getCenterPoint(t){const{x:e,y:i,startAngle:n,endAngle:r,innerRadius:o,outerRadius:s}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:a,spacing:c}=this.options,l=(n+r)/2,h=(o+s+c+a)/2;return{x:e+Math.cos(l)*h,y:i+Math.sin(l)*h}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:i}=this,n=(e.offset||0)/2,r=(e.spacing||0)/2,o=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=i>gn?Math.floor(i/gn):0,0===i||this.innerRadius<0||this.outerRadius<0)return;t.save();let s=0;if(n){s=n/2;const e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*s,Math.sin(e)*s),this.circumference>=pn&&(s=n)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const a=function(t,e,i,n,r){const{fullCircles:o,startAngle:s,circumference:a}=e;let c=e.endAngle;if(o){yc(t,e,i,n,s+gn,r);for(let e=0;ea&&o>a;return{count:n,start:c,loop:e.loop,ilen:l(s+(l?a-t:t))%o,y=()=>{f!==p&&(t.lineTo(m,p),t.lineTo(m,f),t.lineTo(m,g))};for(c&&(u=r[v(0)],t.moveTo(u.x,u.y)),h=0;h<=a;++h){if(u=r[v(h)],u.skip)continue;const e=u.x,i=u.y,n=0|e;n===d?(ip&&(p=i),m=(b*m+e)/++b):(y(),t.lineTo(e,i),d=n,b=0,f=p=i),g=i}y()}function Ec(t){const e=t.options,i=e.borderDash&&e.borderDash.length;return!(t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||i)?Mc:Sc}_c.id="arc",_c.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},_c.defaultRoutes={backgroundColor:"backgroundColor"};const Pc="function"==typeof Path2D;function Tc(t,e,i,n){Pc&&!e.options.segment?function(t,e,i,n){let r=e._path;r||(r=e._path=new Path2D,e.path(r,i,n)&&r.closePath()),wc(t,e.options),t.stroke(r)}(t,e,i,n):function(t,e,i,n){const{segments:r,options:o}=e,s=Ec(e);for(const a of r)wc(t,o,a.style),t.beginPath(),s(t,e,a,{start:i,end:i+n-1})&&t.closePath(),t.stroke()}(t,e,i,n)}class Lc extends Vs{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const i=this.options;if((i.tension||"monotone"===i.cubicInterpolationMode)&&!i.stepped&&!this._pointsUpdated){const n=i.spanGaps?this._loop:this._fullLoop;jo(this._points,i,t,n,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(t,e){const i=t.points,n=t.options.spanGaps,r=i.length;if(!r)return[];const o=!!t._loop,{start:s,end:a}=function(t,e,i,n){let r=0,o=e-1;if(i&&!n)for(;rr&&t[o%e].skip;)o--;return o%=e,{start:r,end:o}}(i,r,o,n);return ss(t,!0===n?[{start:s,end:a,loop:o}]:function(t,e,i,n){const r=t.length,o=[];let s,a=e,c=t[e];for(s=e+1;s<=i;++s){const i=t[s%r];i.skip||i.stop?c.skip||(n=!1,o.push({start:e%r,end:(s-1)%r,loop:n}),e=a=i.stop?s:null):(a=s,c.skip&&(e=s)),c=i}return null!==a&&o.push({start:e%r,end:a%r,loop:n}),o}(i,s,a"borderDash"!==t&&"fill"!==t};class Cc extends Vs{constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,i){const n=this.options,{x:r,y:o}=this.getProps(["x","y"],i);return Math.pow(t-r,2)+Math.pow(e-o,2){Wc(t)}))}var Hc={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,i)=>{if(!i.enabled)return void Vc(t);const n=t.width;t.data.datasets.forEach(((e,r)=>{const{_data:o,indexAxis:s}=e,a=t.getDatasetMeta(r),c=o||e.data;if("y"===uo([s,t.options.indexAxis]))return;if(!a.controller.supportsDecimation)return;const l=t.scales[a.xAxisID];if("linear"!==l.type&&"time"!==l.type)return;if(t.options.parsing)return;let{start:h,count:u}=function(t,e){const i=e.length;let n,r=0;const{iScale:o}=t,{min:s,max:a,minDefined:c,maxDefined:l}=o.getUserBounds();return c&&(r=Rn(Nn(e,o.axis,s).lo,0,i-1)),n=l?Rn(Nn(e,o.axis,a).hi+1,r,i)-r:i-r,{start:r,count:n}}(a,c);if(u<=(i.threshold||4*n))return void Wc(e);let d;switch(Ui(o)&&(e._data=c,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),i.algorithm){case"lttb":d=function(t,e,i,n,r){const o=r.samples||n;if(o>=i)return t.slice(e,e+i);const s=[],a=(i-2)/(o-2);let c=0;const l=e+i-1;let h,u,d,f,p,g=e;for(s[c++]=t[g],h=0;hd&&(d=f,u=t[n],p=n);s[c++]=u,g=p}return s[c++]=t[l],s}(c,h,u,n,i);break;case"min-max":d=function(t,e,i,n){let r,o,s,a,c,l,h,u,d,f,p=0,g=0;const m=[],b=e+i-1,v=t[e].x,y=t[b].x-v;for(r=e;rf&&(f=a,h=r),p=(g*p+o.x)/++g;else{const i=r-1;if(!Ui(l)&&!Ui(h)){const e=Math.min(l,h),n=Math.max(l,h);e!==u&&e!==i&&m.push({...t[e],x:p}),n!==u&&n!==i&&m.push({...t[n],x:p})}r>0&&i!==u&&m.push(t[i]),m.push(o),c=e,g=0,d=f=a,l=h=u=r}}return m}(c,h,u,n);break;default:throw new Error(`Unsupported decimation algorithm '${i.algorithm}'`)}e._decimated=d}))},destroy(t){Vc(t)}};function $c(t,e,i,n){if(n)return;let r=e[t],o=i[t];return"angle"===t&&(r=jn(r),o=jn(o)),{property:t,start:r,end:o}}function Uc(t,e,i){for(;e>t;e--){const t=i[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function qc(t,e,i,n){return t&&e?n(t[i],e[i]):t?t[i]:e?e[i]:0}function Yc(t,e){let i=[],n=!1;return qi(t)?(n=!0,i=t):i=function(t,e){const{x:i=null,y:n=null}=t||{},r=e.points,o=[];return e.segments.forEach((({start:t,end:e})=>{e=Uc(t,e,r);const s=r[t],a=r[e];null!==n?(o.push({x:s.x,y:n}),o.push({x:a.x,y:n})):null!==i&&(o.push({x:i,y:s.y}),o.push({x:i,y:a.y}))})),o}(t,e),i.length?new Lc({points:i,options:{tension:0},_loop:n,_fullLoop:n}):null}function Xc(t){return t&&!1!==t.fill}function Gc(t,e,i){let n=t[e].fill;const r=[e];let o;if(!i)return n;for(;!1!==n&&-1===r.indexOf(n);){if(!Xi(n))return n;if(o=t[n],!o)return!1;if(o.visible)return n;r.push(n),n=o.fill}return!1}function Kc(t,e,i){const n=function(t){const e=t.options,i=e.fill;let n=Ki(i&&i.target,i);void 0===n&&(n=!!e.backgroundColor);if(!1===n||null===n)return!1;if(!0===n)return"origin";return n}(t);if(Yi(n))return!isNaN(n.value)&&n;let r=parseFloat(n);return Xi(r)&&Math.floor(r)===r?function(t,e,i,n){"-"!==t&&"+"!==t||(i=e+i);if(i===e||i<0||i>=n)return!1;return i}(n[0],e,r,i):["origin","start","end","stack","shape"].indexOf(n)>=0&&n}function Jc(t,e,i){const n=[];for(let r=0;r=0;--e){const i=r[e].$filler;i&&(i.line.updateControlPoints(o,i.axis),n&&i.fill&&el(t.ctx,i,o))}},beforeDatasetsDraw(t,e,i){if("beforeDatasetsDraw"!==i.drawTime)return;const n=t.getSortedVisibleDatasetMetas();for(let e=n.length-1;e>=0;--e){const i=n[e].$filler;Xc(i)&&el(t.ctx,i,t.chartArea)}},beforeDatasetDraw(t,e,i){const n=e.meta.$filler;Xc(n)&&"beforeDatasetDraw"===i.drawTime&&el(t.ctx,n,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const al=(t,e)=>{let{boxHeight:i=e,boxWidth:n=e}=t;return t.usePointStyle&&(i=Math.min(i,e),n=t.pointStyleWidth||Math.min(n,e)),{boxWidth:n,boxHeight:i,itemHeight:Math.max(e,i)}};class cl extends Vs{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=Qi(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,i)=>t.sort(e,i,this.chart.data)))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const i=t.labels,n=ho(i.font),r=n.size,o=this._computeTitleHeight(),{boxWidth:s,itemHeight:a}=al(i,r);let c,l;e.font=n.string,this.isHorizontal()?(c=this.maxWidth,l=this._fitRows(o,r,s,a)+10):(l=this.maxHeight,c=this._fitCols(o,r,s,a)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(l,t.maxHeight||this.maxHeight)}_fitRows(t,e,i,n){const{ctx:r,maxWidth:o,options:{labels:{padding:s}}}=this,a=this.legendHitBoxes=[],c=this.lineWidths=[0],l=n+s;let h=t;r.textAlign="left",r.textBaseline="middle";let u=-1,d=-l;return this.legendItems.forEach(((t,f)=>{const p=i+e/2+r.measureText(t.text).width;(0===f||c[c.length-1]+p+2*s>o)&&(h+=l,c[c.length-(f>0?0:1)]=0,d+=l,u++),a[f]={left:0,top:d,row:u,width:p,height:n},c[c.length-1]+=p+s})),h}_fitCols(t,e,i,n){const{ctx:r,maxHeight:o,options:{labels:{padding:s}}}=this,a=this.legendHitBoxes=[],c=this.columnSizes=[],l=o-t;let h=s,u=0,d=0,f=0,p=0;return this.legendItems.forEach(((t,o)=>{const g=i+e/2+r.measureText(t.text).width;o>0&&d+n+2*s>l&&(h+=u+s,c.push({width:u,height:d}),f+=u+s,p++,u=d=0),a[o]={left:f,top:d,col:p,width:g,height:n},u=Math.max(u,g),d+=n+s})),h+=u,c.push({width:u,height:d}),h}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:n},rtl:r}}=this,o=Zo(r,this.left,this.width);if(this.isHorizontal()){let r=0,s=Yn(i,this.left+n,this.right-this.lineWidths[r]);for(const a of e)r!==a.row&&(r=a.row,s=Yn(i,this.left+n,this.right-this.lineWidths[r])),a.top+=this.top+t+n,a.left=o.leftForLtr(o.x(s),a.width),s+=a.width+n}else{let r=0,s=Yn(i,this.top+t+n,this.bottom-this.columnSizes[r].height);for(const a of e)a.col!==r&&(r=a.col,s=Yn(i,this.top+t+n,this.bottom-this.columnSizes[r].height)),a.top=s,a.left+=this.left+n,a.left=o.leftForLtr(o.x(a.left),a.width),s+=a.height+n}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;Gr(t,this),this._draw(),Kr(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:i,ctx:n}=this,{align:r,labels:o}=t,s=Wr.color,a=Zo(t.rtl,this.left,this.width),c=ho(o.font),{color:l,padding:h}=o,u=c.size,d=u/2;let f;this.drawTitle(),n.textAlign=a.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=c.string;const{boxWidth:p,boxHeight:g,itemHeight:m}=al(o,u),b=this.isHorizontal(),v=this._computeTitleHeight();f=b?{x:Yn(r,this.left+h,this.right-i[0]),y:this.top+h+v,line:0}:{x:this.left+h,y:Yn(r,this.top+v+h,this.bottom-e[0].height),line:0},ts(this.ctx,t.textDirection);const y=m+h;this.legendItems.forEach(((x,_)=>{n.strokeStyle=x.fontColor||l,n.fillStyle=x.fontColor||l;const w=n.measureText(x.text).width,k=a.textAlign(x.textAlign||(x.textAlign=o.textAlign)),O=p+d+w;let S=f.x,M=f.y;a.setWidth(this.width),b?_>0&&S+O+h>this.right&&(M=f.y+=y,f.line++,S=f.x=Yn(r,this.left+h,this.right-i[f.line])):_>0&&M+y>this.bottom&&(S=f.x=S+e[f.line].width+h,f.line++,M=f.y=Yn(r,this.top+v+h,this.bottom-e[f.line].height));!function(t,e,i){if(isNaN(p)||p<=0||isNaN(g)||g<0)return;n.save();const r=Ki(i.lineWidth,1);if(n.fillStyle=Ki(i.fillStyle,s),n.lineCap=Ki(i.lineCap,"butt"),n.lineDashOffset=Ki(i.lineDashOffset,0),n.lineJoin=Ki(i.lineJoin,"miter"),n.lineWidth=r,n.strokeStyle=Ki(i.strokeStyle,s),n.setLineDash(Ki(i.lineDash,[])),o.usePointStyle){const s={radius:g*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:r},c=a.xPlus(t,p/2);Yr(n,s,c,e+d,o.pointStyleWidth&&p)}else{const o=e+Math.max((u-g)/2,0),s=a.leftForLtr(t,p),c=co(i.borderRadius);n.beginPath(),Object.values(c).some((t=>0!==t))?eo(n,{x:s,y:o,w:p,h:g,radius:c}):n.rect(s,o,p,g),n.fill(),0!==r&&n.stroke()}n.restore()}(a.x(S),M,x),S=((t,e,i,n)=>t===(n?"left":"right")?i:"center"===t?(e+i)/2:e)(k,S+p+d,b?S+O:this.right,t.rtl),function(t,e,i){Zr(n,i.text,t,e+m/2,c,{strikethrough:i.hidden,textAlign:a.textAlign(i.textAlign)})}(a.x(S),M,x),b?f.x+=O+h:f.y+=y})),es(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,i=ho(e.font),n=lo(e.padding);if(!e.display)return;const r=Zo(t.rtl,this.left,this.width),o=this.ctx,s=e.position,a=i.size/2,c=n.top+a;let l,h=this.left,u=this.width;if(this.isHorizontal())u=Math.max(...this.lineWidths),l=this.top+c,h=Yn(t.align,h,this.right-u);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);l=c+Yn(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const d=Yn(s,h,h+u);o.textAlign=r.textAlign(qn(s)),o.textBaseline="middle",o.strokeStyle=e.color,o.fillStyle=e.color,o.font=i.string,Zr(o,e.text,d,l,i)}_computeTitleHeight(){const t=this.options.title,e=ho(t.font),i=lo(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,n,r;if(Fn(t,this.left,this.right)&&Fn(e,this.top,this.bottom))for(r=this.legendHitBoxes,i=0;it.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:i,pointStyle:n,textAlign:r,color:o}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const s=t.controller.getStyle(i?0:void 0),a=lo(s.borderWidth);return{text:e[t.index].label,fillStyle:s.backgroundColor,fontColor:o,hidden:!t.visible,lineCap:s.borderCapStyle,lineDash:s.borderDash,lineDashOffset:s.borderDashOffset,lineJoin:s.borderJoinStyle,lineWidth:(a.width+a.height)/4,strokeStyle:s.borderColor,pointStyle:n||s.pointStyle,rotation:s.rotation,textAlign:r||s.textAlign,borderRadius:0,datasetIndex:t.index}}),this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class hl extends Vs{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const i=this.options;if(this.left=0,this.top=0,!i.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const n=qi(i.text)?i.text.length:1;this._padding=lo(i.padding);const r=n*ho(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=r:this.width=r}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:i,bottom:n,right:r,options:o}=this,s=o.align;let a,c,l,h=0;return this.isHorizontal()?(c=Yn(s,i,r),l=e+t,a=r-i):("left"===o.position?(c=i+t,l=Yn(s,n,e),h=-.5*pn):(c=r-t,l=Yn(s,e,n),h=.5*pn),a=n-e),{titleX:c,titleY:l,maxWidth:a,rotation:h}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const i=ho(e.font),n=i.lineHeight/2+this._padding.top,{titleX:r,titleY:o,maxWidth:s,rotation:a}=this._drawArgs(n);Zr(t,e.text,0,0,i,{color:e.color,maxWidth:s,rotation:a,textAlign:qn(e.align),textBaseline:"middle",translation:[r,o]})}}var ul={id:"title",_element:hl,start(t,e,i){!function(t,e){const i=new hl({ctx:t.ctx,options:e,chart:t});Ma.configure(t,i,e),Ma.addBox(t,i),t.titleBlock=i}(t,i)},stop(t){const e=t.titleBlock;Ma.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,i){const n=t.titleBlock;Ma.configure(t,n,i),n.options=i},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const dl=new WeakMap;var fl={id:"subtitle",start(t,e,i){const n=new hl({ctx:t.ctx,options:i,chart:t});Ma.configure(t,n,i),Ma.addBox(t,n),dl.set(t,n)},stop(t){Ma.removeBox(t,dl.get(t)),dl.delete(t)},beforeUpdate(t,e,i){const n=dl.get(t);Ma.configure(t,n,i),n.options=i},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const pl={average(t){if(!t.length)return!1;let e,i,n=0,r=0,o=0;for(e=0,i=t.length;e-1?t.split("\n"):t}function bl(t,e){const{element:i,datasetIndex:n,index:r}=e,o=t.getDatasetMeta(n).controller,{label:s,value:a}=o.getLabelAndValue(r);return{chart:t,label:s,parsed:o.getParsed(r),raw:t.data.datasets[n].data[r],formattedValue:a,dataset:o.getDataset(),dataIndex:r,datasetIndex:n,element:i}}function vl(t,e){const i=t.chart.ctx,{body:n,footer:r,title:o}=t,{boxWidth:s,boxHeight:a}=e,c=ho(e.bodyFont),l=ho(e.titleFont),h=ho(e.footerFont),u=o.length,d=r.length,f=n.length,p=lo(e.padding);let g=p.height,m=0,b=n.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);if(b+=t.beforeBody.length+t.afterBody.length,u&&(g+=u*l.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),b){g+=f*(e.displayColors?Math.max(a,c.lineHeight):c.lineHeight)+(b-f)*c.lineHeight+(b-1)*e.bodySpacing}d&&(g+=e.footerMarginTop+d*h.lineHeight+(d-1)*e.footerSpacing);let v=0;const y=function(t){m=Math.max(m,i.measureText(t).width+v)};return i.save(),i.font=l.string,Zi(t.title,y),i.font=c.string,Zi(t.beforeBody.concat(t.afterBody),y),v=e.displayColors?s+2+e.boxPadding:0,Zi(n,(t=>{Zi(t.before,y),Zi(t.lines,y),Zi(t.after,y)})),v=0,i.font=h.string,Zi(t.footer,y),i.restore(),m+=p.width,{width:m,height:g}}function yl(t,e,i,n){const{x:r,width:o}=i,{width:s,chartArea:{left:a,right:c}}=t;let l="center";return"center"===n?l=r<=(a+c)/2?"left":"right":r<=o/2?l="left":r>=s-o/2&&(l="right"),function(t,e,i,n){const{x:r,width:o}=n,s=i.caretSize+i.caretPadding;return"left"===t&&r+o+s>e.width||"right"===t&&r-o-s<0||void 0}(l,t,e,i)&&(l="center"),l}function xl(t,e,i){const n=i.yAlign||e.yAlign||function(t,e){const{y:i,height:n}=e;return it.height-n/2?"bottom":"center"}(t,i);return{xAlign:i.xAlign||e.xAlign||yl(t,e,i,n),yAlign:n}}function _l(t,e,i,n){const{caretSize:r,caretPadding:o,cornerRadius:s}=t,{xAlign:a,yAlign:c}=i,l=r+o,{topLeft:h,topRight:u,bottomLeft:d,bottomRight:f}=co(s);let p=function(t,e){let{x:i,width:n}=t;return"right"===e?i-=n:"center"===e&&(i-=n/2),i}(e,a);const g=function(t,e,i){let{y:n,height:r}=t;return"top"===e?n+=i:n-="bottom"===e?r+i:r/2,n}(e,c,l);return"center"===c?"left"===a?p+=l:"right"===a&&(p-=l):"left"===a?p-=Math.max(h,d)+r:"right"===a&&(p+=Math.max(u,f)+r),{x:Rn(p,0,n.width-e.width),y:Rn(g,0,n.height-e.height)}}function wl(t,e,i){const n=lo(i.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-n.right:t.x+n.left}function kl(t){return gl([],ml(t))}function Ol(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}class Sl extends Vs{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart||t._chart,this._chart=this.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,i=this.options.setContext(this.getContext()),n=i.enabled&&e.options.animation&&i.animations,r=new ps(this.chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),e=this,i=this._tooltipItems,fo(t,{tooltip:e,tooltipItems:i,type:"tooltip"})));var t,e,i}getTitle(t,e){const{callbacks:i}=e,n=i.beforeTitle.apply(this,[t]),r=i.title.apply(this,[t]),o=i.afterTitle.apply(this,[t]);let s=[];return s=gl(s,ml(n)),s=gl(s,ml(r)),s=gl(s,ml(o)),s}getBeforeBody(t,e){return kl(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:i}=e,n=[];return Zi(t,(t=>{const e={before:[],lines:[],after:[]},r=Ol(i,t);gl(e.before,ml(r.beforeLabel.call(this,t))),gl(e.lines,r.label.call(this,t)),gl(e.after,ml(r.afterLabel.call(this,t))),n.push(e)})),n}getAfterBody(t,e){return kl(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:i}=e,n=i.beforeFooter.apply(this,[t]),r=i.footer.apply(this,[t]),o=i.afterFooter.apply(this,[t]);let s=[];return s=gl(s,ml(n)),s=gl(s,ml(r)),s=gl(s,ml(o)),s}_createItems(t){const e=this._active,i=this.chart.data,n=[],r=[],o=[];let s,a,c=[];for(s=0,a=e.length;st.filter(e,n,r,i)))),t.itemSort&&(c=c.sort(((e,n)=>t.itemSort(e,n,i)))),Zi(c,(e=>{const i=Ol(t.callbacks,e);n.push(i.labelColor.call(this,e)),r.push(i.labelPointStyle.call(this,e)),o.push(i.labelTextColor.call(this,e))})),this.labelColors=n,this.labelPointStyles=r,this.labelTextColors=o,this.dataPoints=c,c}update(t,e){const i=this.options.setContext(this.getContext()),n=this._active;let r,o=[];if(n.length){const t=pl[i.position].call(this,n,this._eventPosition);o=this._createItems(i),this.title=this.getTitle(o,i),this.beforeBody=this.getBeforeBody(o,i),this.body=this.getBody(o,i),this.afterBody=this.getAfterBody(o,i),this.footer=this.getFooter(o,i);const e=this._size=vl(this,i),s=Object.assign({},t,e),a=xl(this.chart,i,s),c=_l(i,s,a,this.chart);this.xAlign=a.xAlign,this.yAlign=a.yAlign,r={opacity:1,x:c.x,y:c.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(r={opacity:0});this._tooltipItems=o,this.$context=void 0,r&&this._resolveAnimations().update(this,r),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,n){const r=this.getCaretPosition(t,i,n);e.lineTo(r.x1,r.y1),e.lineTo(r.x2,r.y2),e.lineTo(r.x3,r.y3)}getCaretPosition(t,e,i){const{xAlign:n,yAlign:r}=this,{caretSize:o,cornerRadius:s}=i,{topLeft:a,topRight:c,bottomLeft:l,bottomRight:h}=co(s),{x:u,y:d}=t,{width:f,height:p}=e;let g,m,b,v,y,x;return"center"===r?(y=d+p/2,"left"===n?(g=u,m=g-o,v=y+o,x=y-o):(g=u+f,m=g+o,v=y-o,x=y+o),b=g):(m="left"===n?u+Math.max(a,l)+o:"right"===n?u+f-Math.max(c,h)-o:this.caretX,"top"===r?(v=d,y=v-o,g=m-o,b=m+o):(v=d+p,y=v+o,g=m+o,b=m-o),x=v),{x1:g,x2:m,x3:b,y1:v,y2:y,y3:x}}drawTitle(t,e,i){const n=this.title,r=n.length;let o,s,a;if(r){const c=Zo(i.rtl,this.x,this.width);for(t.x=wl(this,i.titleAlign,i),e.textAlign=c.textAlign(i.titleAlign),e.textBaseline="middle",o=ho(i.titleFont),s=i.titleSpacing,e.fillStyle=i.titleColor,e.font=o.string,a=0;a0!==t))?(t.beginPath(),t.fillStyle=r.multiKeyBackground,eo(t,{x:e,y:p,w:c,h:a,radius:s}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),eo(t,{x:i,y:p+1,w:c-2,h:a-2,radius:s}),t.fill()):(t.fillStyle=r.multiKeyBackground,t.fillRect(e,p,c,a),t.strokeRect(e,p,c,a),t.fillStyle=o.backgroundColor,t.fillRect(i,p+1,c-2,a-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){const{body:n}=this,{bodySpacing:r,bodyAlign:o,displayColors:s,boxHeight:a,boxWidth:c,boxPadding:l}=i,h=ho(i.bodyFont);let u=h.lineHeight,d=0;const f=Zo(i.rtl,this.x,this.width),p=function(i){e.fillText(i,f.x(t.x+d),t.y+u/2),t.y+=u+r},g=f.textAlign(o);let m,b,v,y,x,_,w;for(e.textAlign=o,e.textBaseline="middle",e.font=h.string,t.x=wl(this,g,i),e.fillStyle=i.bodyColor,Zi(this.beforeBody,p),d=s&&"right"!==g?"center"===o?c/2+l:c+2+l:0,y=0,_=n.length;y<_;++y){for(m=n[y],b=this.labelTextColors[y],e.fillStyle=b,Zi(m.before,p),v=m.lines,s&&v.length&&(this._drawColorBox(e,t,y,f,i),u=Math.max(h.lineHeight,a)),x=0,w=v.length;x0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,i=this.$animations,n=i&&i.x,r=i&&i.y;if(n||r){const i=pl[t.position].call(this,this._active,this._eventPosition);if(!i)return;const o=this._size=vl(this,t),s=Object.assign({},i,this._size),a=xl(e,t,s),c=_l(t,s,a,e);n._to===c.x&&r._to===c.y||(this.xAlign=a.xAlign,this.yAlign=a.yAlign,this.width=o.width,this.height=o.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(e);const n={width:this.width,height:this.height},r={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const o=lo(e.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&s&&(t.save(),t.globalAlpha=i,this.drawBackground(r,t,n,e),ts(t,e.textDirection),r.y+=o.top,this.drawTitle(r,t,e),this.drawBody(r,t,e),this.drawFooter(r,t,e),es(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const i=this._active,n=t.map((({datasetIndex:t,index:e})=>{const i=this.chart.getDatasetMeta(t);if(!i)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:i.data[e],index:e}})),r=!tn(i,n),o=this._positionChanged(n,e);(r||o)&&(this._active=n,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const n=this.options,r=this._active||[],o=this._getActiveElements(t,r,e,i),s=this._positionChanged(o,t),a=e||!tn(o,r)||s;return a&&(this._active=o,(n.enabled||n.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),a}_getActiveElements(t,e,i,n){const r=this.options;if("mouseout"===t.type)return[];if(!n)return e;const o=this.chart.getElementsAtEventForMode(t,r.mode,r,i);return r.reverse&&o.reverse(),o}_positionChanged(t,e){const{caretX:i,caretY:n,options:r}=this,o=pl[r.position].call(this,t,e);return!1!==o&&(i!==o.x||n!==o.y)}}Sl.positioners=pl;var Ml={id:"tooltip",_element:Sl,positioners:pl,afterInit(t,e,i){i&&(t.tooltip=new Sl({chart:t,options:i}))},beforeUpdate(t,e,i){t.tooltip&&t.tooltip.initialize(i)},reset(t,e,i){t.tooltip&&t.tooltip.initialize(i)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const i={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",i))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",i)}},afterEvent(t,e){if(t.tooltip){const i=e.replay;t.tooltip.handleEvent(e.event,i,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:Hi,title(t){if(t.length>0){const e=t[0],i=e.chart.data.labels,n=i?i.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(n>0&&e.dataIndex"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},El=Object.freeze({__proto__:null,Decimation:Hc,Filler:sl,Legend:ll,SubTitle:fl,Title:ul,Tooltip:Ml});function Pl(t,e,i,n){const r=t.indexOf(e);if(-1===r)return((t,e,i,n)=>("string"==typeof e?(i=t.push(e)-1,n.unshift({index:i,label:e})):isNaN(e)&&(i=null),i))(t,e,i,n);return r!==t.lastIndexOf(e)?i:r}class Tl extends Zs{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:i,label:n}of e)t[i]===n&&t.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(Ui(t))return null;const i=this.getLabels();return((t,e)=>null===t?null:Rn(Math.round(t),0,e))(e=isFinite(e)&&i[e]===t?e:Pl(i,t,Ki(e,t),this._addedLabels),i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:i,max:n}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(i=0),e||(n=this.getLabels().length-1)),this.min=i,this.max=n}buildTicks(){const t=this.min,e=this.max,i=this.options.offset,n=[];let r=this.getLabels();r=0===t&&e===r.length-1?r:r.slice(t,e+1),this._valueRange=Math.max(r.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let i=t;i<=e;i++)n.push({value:i});return n}getLabelForValue(t){const e=this.getLabels();return t>=0&&te.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function Ll(t,e){const i=[],{bounds:n,step:r,min:o,max:s,precision:a,count:c,maxTicks:l,maxDigits:h,includeBounds:u}=t,d=r||1,f=l-1,{min:p,max:g}=e,m=!Ui(o),b=!Ui(s),v=!Ui(c),y=(g-p)/(h+1);let x,_,w,k,O=On((g-p)/f/d)*d;if(O<1e-14&&!m&&!b)return[{value:p},{value:g}];k=Math.ceil(g/O)-Math.floor(p/O),k>f&&(O=On(k*O/f/d)*d),Ui(a)||(x=Math.pow(10,a),O=Math.ceil(O*x)/x),"ticks"===n?(_=Math.floor(p/O)*O,w=Math.ceil(g/O)*O):(_=p,w=g),m&&b&&r&&function(t,e){const i=Math.round(t);return i-e<=t&&i+e>=t}((s-o)/r,O/1e3)?(k=Math.round(Math.min((s-o)/O,l)),O=(s-o)/k,_=o,w=s):v?(_=m?o:_,w=b?s:w,k=c-1,O=(w-_)/k):(k=(w-_)/O,k=Mn(k,Math.round(k),O/1e3)?Math.round(k):Math.ceil(k));const S=Math.max(Ln(O),Ln(_));x=Math.pow(10,Ui(a)?S:a),_=Math.round(_*x)/x,w=Math.round(w*x)/x;let M=0;for(m&&(u&&_!==o?(i.push({value:o}),_n=e?n:t,s=t=>r=i?r:t;if(t){const t=kn(n),e=kn(r);t<0&&e<0?s(0):t>0&&e>0&&o(0)}if(n===r){let e=1;(r>=Number.MAX_SAFE_INTEGER||n<=Number.MIN_SAFE_INTEGER)&&(e=Math.abs(.05*r)),s(r+e),t||o(n-e)}this.min=n,this.max=r}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:i,stepSize:n}=t;return n?(e=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),i=i||11),i&&(e=Math.min(i,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const n=Ll({maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&En(n,this,"value"),t.reverse?(n.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),n}configure(){const t=this.ticks;let e=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const n=(i-e)/Math.max(t.length-1,1)/2;e-=n,i+=n}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(t){return Qo(t,this.chart.options.locale,this.options.ticks.format)}}class Dl extends Cl{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=Xi(t)?t:0,this.max=Xi(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,i=Pn(this.options.ticks.minRotation),n=(t?Math.sin(i):Math.cos(i))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,r.lineHeight/n))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}function jl(t){return 1===t/Math.pow(10,Math.floor(wn(t)))}Dl.id="linear",Dl.defaults={ticks:{callback:$s.formatters.numeric}};class Il extends Zs{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const i=Cl.prototype.parse.apply(this,[t,e]);if(0!==i)return Xi(i)&&i>0?i:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=Xi(t)?Math.max(0,t):null,this.max=Xi(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let i=this.min,n=this.max;const r=e=>i=t?i:e,o=t=>n=e?n:t,s=(t,e)=>Math.pow(10,Math.floor(wn(t))+e);i===n&&(i<=0?(r(1),o(10)):(r(s(i,-1)),o(s(n,1)))),i<=0&&r(s(n,-1)),n<=0&&o(s(i,1)),this._zero&&this.min!==this._suggestedMin&&i===s(this.min,0)&&r(s(i,-1)),this.min=i,this.max=n}buildTicks(){const t=this.options,e=function(t,e){const i=Math.floor(wn(e.max)),n=Math.ceil(e.max/Math.pow(10,i)),r=[];let o=Gi(t.min,Math.pow(10,Math.floor(wn(e.min)))),s=Math.floor(wn(o)),a=Math.floor(o/Math.pow(10,s)),c=s<0?Math.pow(10,Math.abs(s)):1;do{r.push({value:o,major:jl(o)}),++a,10===a&&(a=1,++s,c=s>=0?1:c),o=Math.round(a*Math.pow(10,s)*c)/c}while(sr?{start:e-i,end:e}:{start:e,end:e+i}}function zl(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},i=Object.assign({},e),n=[],r=[],o=t._pointLabels.length,s=t.options.pointLabels,a=s.centerPointLabels?pn/o:0;for(let u=0;ue.r&&(a=(n.end-e.r)/o,t.r=Math.max(t.r,e.r+a)),r.starte.b&&(c=(r.end-e.b)/s,t.b=Math.max(t.b,e.b+c))}function Bl(t){return 0===t||180===t?"center":t<180?"left":"right"}function Wl(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function Vl(t,e,i){return 90===i||270===i?t-=e/2:(i>270||i<90)&&(t-=e),t}function Hl(t,e,i,n){const{ctx:r}=t;if(i)r.arc(t.xCenter,t.yCenter,e,0,gn);else{let i=t.getPointPosition(0,e);r.moveTo(i.x,i.y);for(let o=1;o{const i=Qi(this.options.pointLabels.callback,[t,e],this);return i||0===i?i:""})).filter(((t,e)=>this.chart.getDataVisibility(e)))}fit(){const t=this.options;t.display&&t.pointLabels.display?zl(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,n){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-n)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,n))}getIndexAngle(t){return jn(t*(gn/(this._pointLabels.length||1))+Pn(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(Ui(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(Ui(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t=0;r--){const e=n.setContext(t.getPointLabelContext(r)),o=ho(e.font),{x:s,y:a,textAlign:c,left:l,top:h,right:u,bottom:d}=t._pointLabelItems[r],{backdropColor:f}=e;if(!Ui(f)){const t=co(e.borderRadius),n=lo(e.backdropPadding);i.fillStyle=f;const r=l-n.left,o=h-n.top,s=u-l+n.width,a=d-h+n.height;Object.values(t).some((t=>0!==t))?(i.beginPath(),eo(i,{x:r,y:o,w:s,h:a,radius:t}),i.fill()):i.fillRect(r,o,s,a)}Zr(i,t._pointLabels[r],s,a+o.lineHeight/2,o,{color:e.color,textAlign:c,textBaseline:"middle"})}}(this,r),n.display&&this.ticks.forEach(((t,e)=>{if(0!==e){s=this.getDistanceFromCenterForValue(t.value);!function(t,e,i,n){const r=t.ctx,o=e.circular,{color:s,lineWidth:a}=e;!o&&!n||!s||!a||i<0||(r.save(),r.strokeStyle=s,r.lineWidth=a,r.setLineDash(e.borderDash),r.lineDashOffset=e.borderDashOffset,r.beginPath(),Hl(t,i,o,n),r.closePath(),r.stroke(),r.restore())}(this,n.setContext(this.getContext(e-1)),s,r)}})),i.display){for(t.save(),o=r-1;o>=0;o--){const n=i.setContext(this.getPointLabelContext(o)),{color:r,lineWidth:c}=n;c&&r&&(t.lineWidth=c,t.strokeStyle=r,t.setLineDash(n.borderDash),t.lineDashOffset=n.borderDashOffset,s=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),a=this.getPointPosition(o,s),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(a.x,a.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;const n=this.getIndexAngle(0);let r,o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(n),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach(((n,s)=>{if(0===s&&!e.reverse)return;const a=i.setContext(this.getContext(s)),c=ho(a.font);if(r=this.getDistanceFromCenterForValue(this.ticks[s].value),a.showLabelBackdrop){t.font=c.string,o=t.measureText(n.label).width,t.fillStyle=a.backdropColor;const e=lo(a.backdropPadding);t.fillRect(-o/2-e.left,-r-c.size/2-e.top,o+e.width,c.size+e.height)}Zr(t,n.label,0,-r,c,{color:a.color})})),t.restore()}drawTitle(){}}$l.id="radialLinear",$l.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:$s.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},$l.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},$l.descriptors={angleLines:{_fallback:"grid"}};const Ul={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},ql=Object.keys(Ul);function Yl(t,e){return t-e}function Xl(t,e){if(Ui(e))return null;const i=t._adapter,{parser:n,round:r,isoWeekday:o}=t._parseOpts;let s=e;return"function"==typeof n&&(s=n(s)),Xi(s)||(s="string"==typeof n?i.parse(s,n):i.parse(s)),null===s?null:(r&&(s="week"!==r||!Sn(o)&&!0!==o?i.startOf(s,r):i.startOf(s,"isoWeek",o)),+s)}function Gl(t,e,i,n){const r=ql.length;for(let o=ql.indexOf(t);o=e?i[n]:i[r]]=!0}}else t[e]=!0}function Jl(t,e,i){const n=[],r={},o=e.length;let s,a;for(s=0;s=0&&(e[c].major=!0);return e}(t,n,r,i):n}class Ql extends Zs{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e){const i=t.time||(t.time={}),n=this._adapter=new sa._date(t.adapters.date);n.init(e),sn(i.displayFormats,n.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:Xl(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,i=t.time.unit||"day";let{min:n,max:r,minDefined:o,maxDefined:s}=this.getUserBounds();function a(t){o||isNaN(t.min)||(n=Math.min(n,t.min)),s||isNaN(t.max)||(r=Math.max(r,t.max))}o&&s||(a(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||a(this.getMinMax(!1))),n=Xi(n)&&!isNaN(n)?n:+e.startOf(Date.now(),i),r=Xi(r)&&!isNaN(r)?r:+e.endOf(Date.now(),i)+1,this.min=Math.min(n,r-1),this.max=Math.max(n+1,r)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],i=t[t.length-1]),{min:e,max:i}}buildTicks(){const t=this.options,e=t.time,i=t.ticks,n="labels"===i.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&n.length&&(this.min=this._userMin||n[0],this.max=this._userMax||n[n.length-1]);const r=this.min,o=function(t,e,i){let n=0,r=t.length;for(;nn&&t[r-1]>i;)r--;return n>0||r=ql.indexOf(i);o--){const i=ql[o];if(Ul[i].common&&t._adapter.diff(r,n,i)>=e-1)return i}return ql[i?ql.indexOf(i):0]}(this,o.length,e.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?function(t){for(let e=ql.indexOf(t)+1,i=ql.length;e+t.value)))}initOffsets(t){let e,i,n=0,r=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),n=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,i=this.getDecimalForValue(t[t.length-1]),r=1===t.length?i:(i-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;n=Rn(n,0,o),r=Rn(r,0,o),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,e=this.min,i=this.max,n=this.options,r=n.time,o=r.unit||Gl(r.minUnit,e,i,this._getLabelCapacity(e)),s=Ki(r.stepSize,1),a="week"===o&&r.isoWeekday,c=Sn(a)||!0===a,l={};let h,u,d=e;if(c&&(d=+t.startOf(d,"isoWeek",a)),d=+t.startOf(d,c?"day":o),t.diff(i,e,o)>1e5*s)throw new Error(e+" and "+i+" are too far apart with stepSize of "+s+" "+o);const f="data"===n.ticks.source&&this.getDataTimestamps();for(h=d,u=0;ht-e)).map((t=>+t))}getLabelForValue(t){const e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}_tickFormatFunction(t,e,i,n){const r=this.options,o=r.time.displayFormats,s=this._unit,a=this._majorUnit,c=s&&o[s],l=a&&o[a],h=i[e],u=a&&l&&h&&h.major,d=this._adapter.format(t,n||(u?l:c)),f=r.ticks.callback;return f?Qi(f,[d,e,i],this):d}generateTickLabels(t){let e,i,n;for(e=0,i=t.length;e0?s:1}getDataTimestamps(){let t,e,i=this._cache.data||[];if(i.length)return i;const n=this.getMatchingVisibleMetas();if(this._normalized&&n.length)return this._cache.data=n[0].controller.getAllParsedValues(this);for(t=0,e=n.length;t=t[a].pos&&e<=t[c].pos&&({lo:a,hi:c}=Nn(t,"pos",e)),({pos:n,time:o}=t[a]),({pos:r,time:s}=t[c])):(e>=t[a].time&&e<=t[c].time&&({lo:a,hi:c}=Nn(t,"time",e)),({time:n,pos:o}=t[a]),({time:r,pos:s}=t[c]));const l=r-n;return l?o+(s-o)*(e-n)/l:o}Ql.id="time",Ql.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class th extends Ql{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=Zl(e,this.min),this._tableRange=Zl(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:i}=this,n=[],r=[];let o,s,a,c,l;for(o=0,s=t.length;o=e&&c<=i&&n.push(c);if(n.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(o=0,s=n.length;o{t.dataset.url&&(this.data[t.dataset.url]||(this.data[t.dataset.url]={items:[],poll:null}),this.data[t.dataset.url].items.push(t)),"line"===t.dataset.progress?this.line(t):"circle"===t.dataset.progress&&this.circle(t)}));for(const t in this.data)this.getValues(t);[...i].forEach((t=>{const e={labels:JSON.parse(t.dataset.dates),datasets:[{backgroundColor:t.dataset.color,borderColor:t.dataset.color,data:JSON.parse(t.dataset.data),cubicInterpolationMode:"monotone"}]};new ih(t,{type:"line",data:e,options:{responsive:!0,radius:0,interaction:{intersect:!1},plugins:{legend:{display:!1}},scales:{y:{suggestedMin:0,ticks:{color:"#999999",callback:(t,e)=>rh()(t,{decimals:2,scale:"SI"})},grid:{color:"#d3dce3"}},x:{ticks:{color:"#999999"},grid:{color:"#d3dce3"}}}}})}))},line(t){new(Vi().Line)(t,{strokeWidth:2,easing:"easeInOut",duration:1400,color:t.dataset.color,trailColor:"#d3dce3",trailWidth:2,svgStyle:{width:"100%",height:"100%",display:"block"}}).animate(t.dataset.value/100)},circle(t){t.dataset.basetext=t.dataset.text,t.dataset.text="";const e=t.dataset.value,i=this;if(t.bar=new(Vi().Circle)(t,{strokeWidth:3,easing:"easeInOut",duration:1400,color:t.dataset.color,trailColor:"#d3dce3",trailWidth:3,svgStyle:null,text:{autoStyleContainer:!1,style:{color:"#222222"}},step(e,n){const r=Math.floor(100*n.value());i.setText(n,parseFloat(r),t.dataset.text)}}),!t.dataset.url){const i=e/100;t.bar.animate(i)}},getValues(t){this.data[t].poll&&(clearTimeout(this.data[t].poll),this.data[t].poll=null),St({path:t,method:"GET"}).then((e=>{this.data[t].items.forEach((i=>{void 0!==e[i.dataset.basetext]?i.dataset.text=e[i.dataset.basetext]:i.dataset.text=i.dataset.basetext,i.bar.animate(e[i.dataset.value]),i.dataset.poll&&!this.data[t].poll&&(this.data[t].poll=setTimeout((()=>{this.getValues(t)}),1e4))}));for(const t in e){const i=this.context.querySelectorAll(`[data-key="${t}"]`),n=this.context.querySelectorAll(`[data-text="${t}"]`);i.forEach((i=>{i.dataset.value=e[t],i.dispatchEvent(new Event("focus"))})),n.forEach((i=>{i.innerText=e[t],i.classList.contains("cld-toggle")&&(e[t]?i.classList.remove("hidden"):i.classList.add("hidden"))}))}}))},setText(t,e,i){if(!t)return;const n=document.createElement("span"),r=document.createElement("h2"),o=document.createTextNode(i);r.innerText=e+"%",n.appendChild(r),n.appendChild(o),t.setText(n)}};var sh=oh;var ah={key:"_cld_pending_state",data:null,pending:null,changed:!1,previous:{},init(){this.data=cldData.stateData?cldData.stateData:{};let t=localStorage.getItem(this.key);t&&(t=JSON.parse(t),this.data={...this.data,...t},this.sendStates()),this.previous=JSON.stringify(this.data)},_update(){this.pending&&(clearTimeout(this.pending),localStorage.removeItem(this.key)),this.previous!==JSON.stringify(this.data)&&(this.pending=setTimeout((()=>this.sendStates()),2e3),localStorage.setItem(this.key,JSON.stringify(this.data)))},set(t,e){this.data[t]&&this.data[t]===e||(this.data[t]=e,this._update())},get(t){let e=null;return this.data[t]&&(e=this.data[t]),e},sendStates(){fetch(cldData.stateURL,{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":cldData.stateNonce},body:JSON.stringify(this.data)}).then((t=>t.json())).then((t=>{t.success&&(this.previous=JSON.stringify(t.state),localStorage.removeItem(this.key))}))}};var ch={init(t){[...t.querySelectorAll("[data-remove]")].forEach((t=>{t.addEventListener("click",(e=>{if(t.dataset.message&&!confirm(t.dataset.message))return;const i=document.getElementById(t.dataset.remove);i.parentNode.removeChild(i)}))}))}};const lh={values:{},inputs:{},context:null,init(t){this.context=t;t.querySelectorAll("[data-tags]").forEach((t=>this.bind(t)))},bind(t){t.innerText=t.dataset.placeholder;const e=t.dataset.tags,i=document.getElementById(e),n=this.context.querySelectorAll(`[data-tags-delete="${e}"]`);this.values[e]=JSON.parse(i.value),this.inputs[e]=i,t.boundInput=e,t.boundDisplay=this.context.querySelector(`[data-tags-display="${e}"]`),t.boundDisplay.addEventListener("click",(e=>{t.focus()})),t.addEventListener("focus",(e=>{t.innerText=null})),t.addEventListener("blur",(e=>{3{if("Tab"===i.key)3{"Comma"!==e.code&&"Enter"!==e.code&&"Tab"!==e.code&&"Space"!==e.code||(e.preventDefault(),3{t.parentNode.control=t,t.parentNode.style.width=getComputedStyle(t.parentNode).width,t.addEventListener("click",(e=>{e.stopPropagation(),this.deleteTag(t)}))}))},deleteTag(t){const e=t.parentNode,i=e.dataset.inputId,n=this.values[i].indexOf(e.dataset.value);0<=n&&this.values[i].splice(n,1),e.style.width=0,e.style.opacity=0,e.style.padding=0,e.style.margin=0,setTimeout((()=>{e.parentNode.removeChild(e)}),500),this.updateInput(i)},captureTag(t,e){if(this[t.dataset.format]&&"string"!=typeof(e=this[t.dataset.format](e)))return t.classList.add("pulse"),void setTimeout((()=>{t.classList.remove("pulse")}),1e3);if(!this.validateUnique(t.boundDisplay,e)){const i=this.createTag(e);i.dataset.inputId=t.boundInput,this.values[t.boundInput].push(e),t.innerText=null,t.boundDisplay.insertBefore(i,t),i.style.width=getComputedStyle(i).width,i.style.opacity=1,this.updateInput(t.boundInput)}},createTag(t){const e=document.createElement("span"),i=document.createElement("span"),n=document.createElement("span");return e.classList.add("cld-input-tags-item"),i.classList.add("cld-input-tags-item-text"),n.className="cld-input-tags-item-delete dashicons dashicons-no-alt",n.addEventListener("click",(()=>this.deleteTag(n))),i.innerText=t,e.appendChild(i),e.appendChild(n),e.dataset.value=t,e.style.opacity=0,e.control=n,e},validateUnique(t,e){const i=t.querySelector(`[data-value="${e}"]`);let n=!1;return i&&(i.classList.remove("pulse"),i.classList.add("pulse"),setTimeout((()=>{i.classList.remove("pulse")}),500),n=!0),n},updateInput(t){this.inputs[t].value=JSON.stringify(this.values[t])},host(t){!1===/^(?:http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)/.test(t)&&(t="https://"+t);let e="";try{e=new URL(t)}catch(t){return t}return decodeURIComponent(e.host)}};var hh=lh;var uh={suffixInputs:null,init(t){this.suffixInputs=t.querySelectorAll("[data-suffix]"),[...this.suffixInputs].forEach((t=>this.bindInput(t)))},bindInput(t){const e=document.getElementById(t.dataset.suffix),i=e.dataset.template.split("@value");this.setSuffix(e,i,t.value),t.addEventListener("change",(()=>this.setSuffix(e,i,t.value))),t.addEventListener("input",(()=>this.setSuffix(e,i,t.value)))},setSuffix(t,e,i){t.innerHTML="",t.classList.add("hidden"),-1===["none","off",""].indexOf(i)&&t.classList.remove("hidden");const n=document.createTextNode(e.join(i));t.appendChild(n)}};const dh={wrappers:null,frame:null,error:'data:image/svg+xml;utf8,%26%23x26A0%3B︎',init(t){this.wrappers=t.querySelectorAll(".cld-size-items"),this.wrappers.forEach((t=>{const e=t.querySelectorAll(".cld-image-selector-item");e.forEach((i=>{i.addEventListener("click",(()=>{e.forEach((t=>{delete t.dataset.selected})),i.dataset.selected=!0,this.buildImages(t)}))})),this.buildImages(t)}))},buildImages(t){const e=t.dataset.base,i=t.querySelectorAll("img"),n=t.querySelector(".cld-image-selector-item[data-selected]").dataset.image;let r=null;i.forEach((i=>{const o=i.dataset.size,s=i.parentNode.querySelector(".regular-text"),a=i.parentNode.querySelector(".disable-toggle"),c=s.value.length?s.value.replace(" ",""):s.placeholder;a.checked?(s.disabled=!0,i.src=`${e}/${o}/${n}`):(s.disabled=!1,i.src=`${e}/${o},${c}/${n}`),i.bound||(s.addEventListener("input",(()=>{r&&clearTimeout(r),r=setTimeout((()=>{this.buildImages(t)}),1e3)})),a.addEventListener("change",(()=>{this.buildImages(t)})),i.addEventListener("error",(()=>{i.src=this.error})),i.bound=!0)}))}};var fh=dh;const ph={bindings:{},parent_check_data:{},check_parents:{},_init(t){const e=t.querySelectorAll("[data-condition]"),i=t.querySelectorAll("[data-toggle]"),n=t.querySelectorAll("[data-for]"),r=t.querySelectorAll("[data-tooltip]"),o=t.querySelectorAll("[data-bind-trigger]"),s=t.querySelectorAll("[data-main]"),a=t.querySelectorAll("[data-file]"),c=t.querySelectorAll("[data-auto-suffix]"),l=t.querySelectorAll("[data-confirm]"),h={};ah.init(),Bi.bind(s),c.forEach((t=>this._autoSuffix(t))),o.forEach((t=>this._trigger(t))),i.forEach((t=>this._toggle(t))),e.forEach((t=>this._bind(t))),n.forEach((t=>this._alias(t))),a.forEach((t=>this._files(t,h))),Ri(r,{theme:"cloudinary",arrow:!1,placement:"bottom-start",aria:{content:"auto",expanded:"auto"},content:t=>document.getElementById(t.dataset.tooltip).innerHTML}),[...o].forEach((t=>{t.dispatchEvent(new Event("input"))})),l.forEach((t=>{t.addEventListener("click",(e=>{confirm(t.dataset.confirm)||(e.preventDefault(),e.stopPropagation())}))})),sh.init(t),ch.init(t),hh.init(t),uh.init(t),fh.init(t)},_autoSuffix(t){const e=t.dataset.autoSuffix;let i="";const n=[...e.split(";")].map((t=>0===t.indexOf("*")?(i=t.replace("*",""),i):t));t.addEventListener("change",(()=>{const e=t.value.replace(" ",""),r=e.replace(/[^0-9]/g,""),o=e.replace(/[0-9]/g,"").toLowerCase();r&&(-1===n.indexOf(o)?t.value=r+i:t.value=r+o)})),t.dispatchEvent(new Event("change"))},_files(t,e){const i=t.dataset.parent;i&&(this.check_parents[i]=document.getElementById(i),this.parent_check_data[i]||(this.parent_check_data[i]=this.check_parents[i].value?JSON.parse(this.check_parents[i].value):[]),t.addEventListener("change",(()=>{const n=this.parent_check_data[i].indexOf(t.value);t.checked?this.parent_check_data[i].push(t.value):this.parent_check_data[i].splice(n,1),e[i]&&clearTimeout(e[i]),e[i]=setTimeout((()=>{this._compileParent(i)}),10)})))},_compileParent(t){this.check_parents[t].value=JSON.stringify(this.parent_check_data[t]),this.check_parents[t].dispatchEvent(new Event("change"))},_bind(t){t.condition=JSON.parse(t.dataset.condition);for(const e in t.condition)this.bindings[e]&&this.bindings[e].elements.push(t)},_trigger(t){const e=t.dataset.bindTrigger,i=this;i.bindings[e]={input:t,value:t.value,checked:!0,elements:[]},t.addEventListener("change",(function(e){t.dispatchEvent(new Event("input"))})),t.addEventListener("input",(function(){if(i.bindings[e].value=t.value,"checkbox"===t.type&&(i.bindings[e].checked=t.checked),"radio"!==t.type||!1!==t.checked)for(const n in i.bindings[e].elements)i.toggle(i.bindings[e].elements[n],t)}))},_alias(t){t.addEventListener("click",(function(){document.getElementById(t.dataset.for).dispatchEvent(new Event("click"))}))},_toggle(t){const e=this,i=document.querySelector('[data-wrap="'+t.dataset.toggle+'"]');if(!i)return;const n=ah.get(t.id);t.addEventListener("click",(function(n){n.stopPropagation();const r=i.classList.contains("open")?"closed":"open";e.toggle(i,t,r)})),n!==t.dataset.state&&this.toggle(i,t,n)},toggle(t,e,i){if(!i){i="open";for(const e in t.condition){let n=this.bindings[e].value;const r=t.condition[e];"boolean"==typeof r&&(n=this.bindings[e].checked),r!==n&&(i="closed")}}"closed"===i?this.close(t,e):this.open(t,e),ah.set(e.id,i)},open(t,e){const i=t.getElementsByClassName("cld-ui-input");t.classList.remove("closed"),t.classList.add("open"),e&&e.classList.contains("dashicons")&&(e.classList.remove("dashicons-arrow-down-alt2"),e.classList.add("dashicons-arrow-up-alt2")),[...i].forEach((function(t){t.dataset.disabled=!1}))},close(t,e){const i=t.getElementsByClassName("cld-ui-input");t.classList.remove("open"),t.classList.add("closed"),e&&e.classList.contains("dashicons")&&(e.classList.remove("dashicons-arrow-up-alt2"),e.classList.add("dashicons-arrow-down-alt2")),[...i].forEach((function(t){t.dataset.disabled=!0}))}},gh=document.querySelectorAll(".cld-settings,.cld-meta-box");gh.length&&gh.forEach((t=>{t&&window.addEventListener("load",ph._init(t))}));const mh={storageKey:"_cld_wizard",testing:null,next:document.querySelector('[data-navigate="next"]'),back:document.querySelector('[data-navigate="back"]'),lock:document.getElementById("pad-lock"),lockIcon:document.getElementById("lock-icon"),options:document.querySelectorAll('.cld-ui-input[type="checkbox"]'),settings:document.getElementById("optimize"),tabBar:document.getElementById("wizard-tabs"),tracking:document.getElementById("tracking"),complete:document.getElementById("complete-wizard"),tabs:{"tab-1":document.getElementById("tab-icon-1"),"tab-2":document.getElementById("tab-icon-2"),"tab-3":document.getElementById("tab-icon-3")},content:{"tab-1":document.getElementById("tab-1"),"tab-2":document.getElementById("tab-2"),"tab-3":document.getElementById("tab-3"),"tab-4":document.getElementById("tab-4")},connection:{error:document.getElementById("connection-error"),success:document.getElementById("connection-success"),working:document.getElementById("connection-working")},debounceConnect:null,updateConnection:document.getElementById("update-connection"),cancelUpdateConnection:document.getElementById("cancel-update-connection"),config:{},didSave:!1,init(){if(!cldData.wizard)return;this.config=cldData.wizard.config,window.localStorage.getItem(this.storageKey)&&(this.config=JSON.parse(window.localStorage.getItem(this.storageKey))),document.location.hash.length&&this.hashChange(),St.use(St.createNonceMiddleware(cldData.wizard.saveNonce));const t=document.querySelectorAll("[data-navigate]"),e=document.getElementById("connect.cloudinary_url");this.updateConnection.addEventListener("click",(()=>{this.lockNext(),e.parentNode.classList.remove("hidden"),this.cancelUpdateConnection.classList.remove("hidden"),this.updateConnection.classList.add("hidden")})),this.cancelUpdateConnection.addEventListener("click",(()=>{this.unlockNext(),e.parentNode.classList.add("hidden"),this.cancelUpdateConnection.classList.add("hidden"),this.updateConnection.classList.remove("hidden"),this.config.cldString=!0,e.value="",this.connection.error.classList.remove("active"),this.connection.success.classList.add("active")})),[...t].forEach((t=>{t.addEventListener("click",(()=>{this.navigate(t.dataset.navigate)}))})),this.lock.addEventListener("click",(()=>{this.lockIcon.classList.toggle("dashicons-unlock"),this.settings.classList.toggle("disabled"),this.options.forEach((t=>{t.disabled=t.disabled?"":"disabled"}))})),e.addEventListener("input",(t=>{this.lockNext();const i=e.value.replace("CLOUDINARY_URL=","");this.connection.error.classList.remove("active"),this.connection.success.classList.remove("active"),this.connection.working.classList.remove("active"),i.length&&(this.testing=i,this.debounceConnect&&clearTimeout(this.debounceConnect),this.debounceConnect=setTimeout((()=>{this.evaluateConnectionString(i)?(this.connection.working.classList.add("active"),this.testConnection(i)):this.connection.error.classList.add("active")}),500))})),this.config.cldString&&(e.parentNode.classList.add("hidden"),this.updateConnection.classList.remove("hidden")),this.getTab(this.config.tab),this.initFeatures(),window.addEventListener("hashchange",(t=>{this.hashChange()}))},hashChange(){const t=parseInt(document.location.hash.replace("#",""));t&&0t&&this.getTab(t)},initFeatures(){const t=document.getElementById("media_library");t.checked=this.config.mediaLibrary,t.addEventListener("change",(()=>{this.setConfig("mediaLibrary",t.checked)}));const e=document.getElementById("non_media");e.checked=this.config.nonMedia,e.addEventListener("change",(()=>{this.setConfig("nonMedia",e.checked)}));const i=document.getElementById("advanced");i.checked=this.config.advanced,i.addEventListener("change",(()=>{this.setConfig("advanced",i.checked)}))},getCurrent(){return this.content[`tab-${this.config.tab}`]},hideTabs(){Object.keys(this.content).forEach((t=>{this.hide(this.content[t])}))},completeTab(t){this.incompleteTab(),Object.keys(this.tabs).forEach((e=>{const i=parseInt(this.tabs[e].dataset.tab);t>i?this.tabs[e].classList.add("complete"):t===i&&this.tabs[e].classList.add("active")}))},incompleteTab(t){Object.keys(this.tabs).forEach((t=>{this.tabs[t].classList.remove("complete","active")}))},getCurrentTab(){return this.tabs[`tab-icon-${this.config.tab}`]},getTab(t){if(4===t&&window.localStorage.getItem(this.storageKey)&&!this.didSave)return void this.saveConfig();const e=this.getCurrent(),i=document.getElementById(`tab-${t}`);switch(this.hideTabs(),this.completeTab(t),this.hide(document.getElementById(`tab-${this.config.tab}`)),e.classList.remove("active"),this.show(i),this.show(this.next),this.hide(this.lock),t){case 1:this.hide(this.back),this.unlockNext();break;case 2:this.show(this.back),this.config.cldString?this.showSuccess():(this.lockNext(),setTimeout((()=>{document.getElementById("connect.cloudinary_url").focus()}),0)),this.updateConnection.classList.contains("hidden")&&this.lockNext();break;case 3:if(!this.config.cldString)return void(document.location.hash="1");this.show(this.lock),this.show(this.back);break;case 4:if(!this.config.cldString)return void(document.location.hash="1");this.hide(this.tabBar),this.hide(this.next),this.hide(this.back)}this.setConfig("tab",t)},navigate(t){"next"===t?this.navigateNext():"back"===t&&this.navigateBack()},navigateBack(){document.location.hash=this.config.tab-1},navigateNext(){document.location.hash=this.config.tab+1},showError(){this.connection.error.classList.add("active"),this.connection.success.classList.remove("active")},showSuccess(){this.connection.error.classList.remove("active"),this.connection.success.classList.add("active")},show(t){t.classList.remove("hidden"),t.style.display=""},hide(t){t.classList.add("hidden"),t.style.display="none"},lockNext(){this.next.disabled="disabled"},unlockNext(){this.next.disabled=""},evaluateConnectionString:t=>new RegExp(/^(?:CLOUDINARY_URL=)?(cloudinary:\/\/){1}(\d*)[:]{1}([^@]*)[@]{1}([^@]*)$/gim).test(t),testConnection(t){St({path:cldData.wizard.testURL,data:{cloudinary_url:t},method:"POST"}).then((e=>{e.url===this.testing&&(this.connection.working.classList.remove("active"),"connection_error"===e.type?this.showError():"connection_success"===e.type&&(this.showSuccess(),this.unlockNext(),this.setConfig("cldString",t)))}))},setConfig(t,e){this.config[t]=e,window.localStorage.setItem(this.storageKey,JSON.stringify(this.config))},saveConfig(){this.lockNext(),this.next.innerText=C("Setting up Cloudinary","cloudinary"),this.didSave=!0,St({path:cldData.wizard.saveURL,data:this.config,method:"POST"}).then((t=>{this.next.innerText=C("Next","cloudinary"),this.unlockNext(),this.getTab(4),window.localStorage.removeItem(this.storageKey)})).fail((t=>{this.didSave=!1}))}};window.addEventListener("load",(()=>mh.init()));const bh={select:document.getElementById("connect.offload"),tooltip:null,descriptions:{},change(){[...this.descriptions].forEach((t=>{t.classList.remove("selected")})),this.tooltip.querySelector("."+this.select.value).classList.add("selected")},addEventListener(){this.select.addEventListener("change",this.change.bind(this))},_init(){this.select&&(this.addEventListener(),this.tooltip=this.select.parentNode.querySelector(".cld-tooltip"),this.descriptions=this.tooltip.querySelectorAll("li"),this.change())}};window.addEventListener("load",(()=>bh._init()));const vh={pageReloader:document.getElementById("page-reloader"),init(){if(!cldData.extensions)return;St.use(St.createNonceMiddleware(cldData.extensions.nonce));[...document.querySelectorAll("[data-extension]")].forEach((t=>{t.addEventListener("change",(e=>{t.spinner||(t.spinner=this.createSpinner(),t.parentNode.appendChild(t.spinner)),t.debounce&&clearTimeout(t.debounce),t.debounce=setTimeout((()=>{this.toggleExtension(t),t.debounce=null}),1e3)}))}))},toggleExtension(t){const e=t.dataset.extension,i=t.checked;St({path:cldData.extensions.url,data:{extension:e,enabled:i},method:"POST"}).then((e=>{t.spinner&&(t.parentNode.removeChild(t.spinner),delete t.spinner),Object.keys(e).forEach((t=>{document.querySelectorAll(`[data-text="${t}"]`).forEach((i=>{i.innerText=e[t]}))})),this.pageReloader.style.display="block"}))},createSpinner(){const t=document.createElement("span");return t.classList.add("spinner"),t.classList.add("cld-extension-spinner"),t}};window.addEventListener("load",(()=>vh.init()));const yh={tabButtonSelectors:null,selectedTabID:"",deselectOldTab(){document.getElementById(this.selectedTabID).classList.remove("is-active"),this.filterActive([...this.tabButtonSelectors]).classList.remove("is-active")},selectCurrentTab(t){this.selectedTabID=t.dataset.tab,t.classList.add("is-active"),document.getElementById(this.selectedTabID).classList.add("is-active")},selectTab(t){t.preventDefault(),t.target.classList.contains("is-active")||(this.deselectOldTab(),this.selectCurrentTab(t.target))},filterTabs(){[...this.tabButtonSelectors].forEach((t=>{t.dataset.tab&&t.addEventListener("click",this.selectTab.bind(this))}))},filterActive:t=>t.filter((t=>t.classList.contains("is-active"))).pop(),init(){this.tabButtonSelectors=document.querySelectorAll(".cld-page-tabs-tab button"),0!==this.tabButtonSelectors.length&&(this.selectCurrentTab(this.filterActive([...this.tabButtonSelectors])),this.filterTabs())}};window.addEventListener("load",(()=>yh.init()));i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p;window.$=window.jQuery;e()}()}(); \ No newline at end of file +!function(){var t={"./node_modules/@popperjs/core/lib/createPopper.js":function(t,e,n){"use strict";n.r(e),n.d(e,{createPopper:function(){return w},detectOverflow:function(){return p.default},popperGenerator:function(){return x}});var i=n("./node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js"),r=n("./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js"),o=n("./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js"),s=n("./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js"),a=n("./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js"),l=n("./node_modules/@popperjs/core/lib/utils/orderModifiers.js"),c=n("./node_modules/@popperjs/core/lib/utils/debounce.js"),u=n("./node_modules/@popperjs/core/lib/utils/validateModifiers.js"),d=n("./node_modules/@popperjs/core/lib/utils/uniqueBy.js"),h=n("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"),f=n("./node_modules/@popperjs/core/lib/utils/mergeByName.js"),p=n("./node_modules/@popperjs/core/lib/utils/detectOverflow.js"),m=n("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"),g=n("./node_modules/@popperjs/core/lib/enums.js"),b="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",v="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",y={placement:"bottom",modifiers:[],strategy:"absolute"};function _(){for(var t=arguments.length,e=new Array(t),n=0;n100){console.error(v);break}if(!0!==x.reset){var l=x.orderedModifiers[a],c=l.fn,u=l.options,d=void 0===u?{}:u,h=l.name;"function"==typeof c&&(x=c({state:x,options:d,name:h,instance:O})||x)}else x.reset=!1,a=-1}}else console.error(b)}},update:(0,c.default)((function(){return new Promise((function(t){O.forceUpdate(),t(x)}))})),destroy:function(){S(),k=!0}};if(!_(t,e))return console.error(b),O;function S(){j.forEach((function(t){return t()})),j=[]}return O.setOptions(n).then((function(t){!k&&n.onFirstUpdate&&n.onFirstUpdate(t)})),O}}var w=x()},"./node_modules/@popperjs/core/lib/dom-utils/contains.js":function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return r}});var i=n("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");function r(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&(0,i.isShadowRoot)(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}},"./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js":function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return a}});var i=n("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"),r=n("./node_modules/@popperjs/core/lib/utils/math.js"),o=n("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"),s=n("./node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js");function a(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var a=t.getBoundingClientRect(),l=1,c=1;e&&(0,i.isHTMLElement)(t)&&(l=t.offsetWidth>0&&(0,r.round)(a.width)/t.offsetWidth||1,c=t.offsetHeight>0&&(0,r.round)(a.height)/t.offsetHeight||1);var u=((0,i.isElement)(t)?(0,o.default)(t):window).visualViewport,d=!(0,s.default)()&&n,h=(a.left+(d&&u?u.offsetLeft:0))/l,f=(a.top+(d&&u?u.offsetTop:0))/c,p=a.width/l,m=a.height/c;return{width:p,height:m,top:f,right:h+p,bottom:f+m,left:h,x:h,y:f}}},"./node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js":function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return v}});var i=n("./node_modules/@popperjs/core/lib/enums.js"),r=n("./node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js"),o=n("./node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js"),s=n("./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js"),a=n("./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js"),l=n("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),c=n("./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js"),u=n("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"),d=n("./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js"),h=n("./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js"),f=n("./node_modules/@popperjs/core/lib/dom-utils/contains.js"),p=n("./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"),m=n("./node_modules/@popperjs/core/lib/utils/rectToClientRect.js"),g=n("./node_modules/@popperjs/core/lib/utils/math.js");function b(t,e,n){return e===i.viewport?(0,m.default)((0,r.default)(t,n)):(0,u.isElement)(e)?function(t,e){var n=(0,d.default)(t,!1,"fixed"===e);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(e,n):(0,m.default)((0,o.default)((0,l.default)(t)))}function v(t,e,n,i){var r="clippingParents"===e?function(t){var e=(0,s.default)((0,h.default)(t)),n=["absolute","fixed"].indexOf((0,c.default)(t).position)>=0&&(0,u.isHTMLElement)(t)?(0,a.default)(t):t;return(0,u.isElement)(n)?e.filter((function(t){return(0,u.isElement)(t)&&(0,f.default)(t,n)&&"body"!==(0,p.default)(t)})):[]}(t):[].concat(e),o=[].concat(r,[n]),l=o[0],d=o.reduce((function(e,n){var r=b(t,n,i);return e.top=(0,g.max)(r.top,e.top),e.right=(0,g.min)(r.right,e.right),e.bottom=(0,g.min)(r.bottom,e.bottom),e.left=(0,g.max)(r.left,e.left),e}),b(t,l,i));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}},"./node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js":function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return d}});var i=n("./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js"),r=n("./node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js"),o=n("./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"),s=n("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"),a=n("./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js"),l=n("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),c=n("./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js"),u=n("./node_modules/@popperjs/core/lib/utils/math.js");function d(t,e,n){void 0===n&&(n=!1);var d=(0,s.isHTMLElement)(e),h=(0,s.isHTMLElement)(e)&&function(t){var e=t.getBoundingClientRect(),n=(0,u.round)(e.width)/t.offsetWidth||1,i=(0,u.round)(e.height)/t.offsetHeight||1;return 1!==n||1!==i}(e),f=(0,l.default)(e),p=(0,i.default)(t,h,n),m={scrollLeft:0,scrollTop:0},g={x:0,y:0};return(d||!d&&!n)&&(("body"!==(0,o.default)(e)||(0,c.default)(f))&&(m=(0,r.default)(e)),(0,s.isHTMLElement)(e)?((g=(0,i.default)(e,!0)).x+=e.clientLeft,g.y+=e.clientTop):f&&(g.x=(0,a.default)(f))),{x:p.left+m.scrollLeft-g.x,y:p.top+m.scrollTop-g.y,width:p.width,height:p.height}}},"./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js":function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return r}});var i=n("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js");function r(t){return(0,i.default)(t).getComputedStyle(t)}},"./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js":function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return r}});var i=n("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");function r(t){return(((0,i.isElement)(t)?t.ownerDocument:t.document)||window.document).documentElement}},"./node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js":function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return l}});var i=n("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),r=n("./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js"),o=n("./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js"),s=n("./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js"),a=n("./node_modules/@popperjs/core/lib/utils/math.js");function l(t){var e,n=(0,i.default)(t),l=(0,s.default)(t),c=null==(e=t.ownerDocument)?void 0:e.body,u=(0,a.max)(n.scrollWidth,n.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),d=(0,a.max)(n.scrollHeight,n.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),h=-l.scrollLeft+(0,o.default)(t),f=-l.scrollTop;return"rtl"===(0,r.default)(c||n).direction&&(h+=(0,a.max)(n.clientWidth,c?c.clientWidth:0)-u),{width:u,height:d,x:h,y:f}}},"./node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js":function(t,e,n){"use strict";function i(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}n.r(e),n.d(e,{default:function(){return i}})},"./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js":function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return r}});var i=n("./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js");function r(t){var e=(0,i.default)(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}},"./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js":function(t,e,n){"use strict";function i(t){return t?(t.nodeName||"").toLowerCase():null}n.r(e),n.d(e,{default:function(){return i}})},"./node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js":function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return a}});var i=n("./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js"),r=n("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"),o=n("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"),s=n("./node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js");function a(t){return t!==(0,r.default)(t)&&(0,o.isHTMLElement)(t)?(0,s.default)(t):(0,i.default)(t)}},"./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js":function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return d}});var i=n("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"),r=n("./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"),o=n("./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js"),s=n("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"),a=n("./node_modules/@popperjs/core/lib/dom-utils/isTableElement.js"),l=n("./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js"),c=n("./node_modules/@popperjs/core/lib/utils/userAgent.js");function u(t){return(0,s.isHTMLElement)(t)&&"fixed"!==(0,o.default)(t).position?t.offsetParent:null}function d(t){for(var e=(0,i.default)(t),n=u(t);n&&(0,a.default)(n)&&"static"===(0,o.default)(n).position;)n=u(n);return n&&("html"===(0,r.default)(n)||"body"===(0,r.default)(n)&&"static"===(0,o.default)(n).position)?e:n||function(t){var e=/firefox/i.test((0,c.default)());if(/Trident/i.test((0,c.default)())&&(0,s.isHTMLElement)(t)&&"fixed"===(0,o.default)(t).position)return null;var n=(0,l.default)(t);for((0,s.isShadowRoot)(n)&&(n=n.host);(0,s.isHTMLElement)(n)&&["html","body"].indexOf((0,r.default)(n))<0;){var i=(0,o.default)(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||e&&"filter"===i.willChange||e&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(t)||e}},"./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js":function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return s}});var i=n("./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"),r=n("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),o=n("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");function s(t){return"html"===(0,i.default)(t)?t:t.assignedSlot||t.parentNode||((0,o.isShadowRoot)(t)?t.host:null)||(0,r.default)(t)}},"./node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js":function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return a}});var i=n("./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js"),r=n("./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js"),o=n("./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"),s=n("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");function a(t){return["html","body","#document"].indexOf((0,o.default)(t))>=0?t.ownerDocument.body:(0,s.isHTMLElement)(t)&&(0,r.default)(t)?t:a((0,i.default)(t))}},"./node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js":function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return a}});var i=n("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"),r=n("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),o=n("./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js"),s=n("./node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js");function a(t,e){var n=(0,i.default)(t),a=(0,r.default)(t),l=n.visualViewport,c=a.clientWidth,u=a.clientHeight,d=0,h=0;if(l){c=l.width,u=l.height;var f=(0,s.default)();(f||!f&&"fixed"===e)&&(d=l.offsetLeft,h=l.offsetTop)}return{width:c,height:u,x:d+(0,o.default)(t),y:h}}},"./node_modules/@popperjs/core/lib/dom-utils/getWindow.js":function(t,e,n){"use strict";function i(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}n.r(e),n.d(e,{default:function(){return i}})},"./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js":function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return r}});var i=n("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js");function r(t){var e=(0,i.default)(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}},"./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js":function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return s}});var i=n("./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js"),r=n("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),o=n("./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js");function s(t){return(0,i.default)((0,r.default)(t)).left+(0,o.default)(t).scrollLeft}},"./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js":function(t,e,n){"use strict";n.r(e),n.d(e,{isElement:function(){return r},isHTMLElement:function(){return o},isShadowRoot:function(){return s}});var i=n("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js");function r(t){return t instanceof(0,i.default)(t).Element||t instanceof Element}function o(t){return t instanceof(0,i.default)(t).HTMLElement||t instanceof HTMLElement}function s(t){return"undefined"!=typeof ShadowRoot&&(t instanceof(0,i.default)(t).ShadowRoot||t instanceof ShadowRoot)}},"./node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js":function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return r}});var i=n("./node_modules/@popperjs/core/lib/utils/userAgent.js");function r(){return!/^((?!chrome|android).)*safari/i.test((0,i.default)())}},"./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js":function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return r}});var i=n("./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js");function r(t){var e=(0,i.default)(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}},"./node_modules/@popperjs/core/lib/dom-utils/isTableElement.js":function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return r}});var i=n("./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js");function r(t){return["table","td","th"].indexOf((0,i.default)(t))>=0}},"./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js":function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return a}});var i=n("./node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js"),r=n("./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js"),o=n("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"),s=n("./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js");function a(t,e){var n;void 0===e&&(e=[]);var l=(0,i.default)(t),c=l===(null==(n=t.ownerDocument)?void 0:n.body),u=(0,o.default)(l),d=c?[u].concat(u.visualViewport||[],(0,s.default)(l)?l:[]):l,h=e.concat(d);return c?h:h.concat(a((0,r.default)(d)))}},"./node_modules/@popperjs/core/lib/enums.js":function(t,e,n){"use strict";n.r(e),n.d(e,{afterMain:function(){return w},afterRead:function(){return y},afterWrite:function(){return O},auto:function(){return a},basePlacements:function(){return l},beforeMain:function(){return _},beforeRead:function(){return b},beforeWrite:function(){return j},bottom:function(){return r},clippingParents:function(){return d},end:function(){return u},left:function(){return s},main:function(){return x},modifierPhases:function(){return S},placements:function(){return g},popper:function(){return f},read:function(){return v},reference:function(){return p},right:function(){return o},start:function(){return c},top:function(){return i},variationPlacements:function(){return m},viewport:function(){return h},write:function(){return k}});var i="top",r="bottom",o="right",s="left",a="auto",l=[i,r,o,s],c="start",u="end",d="clippingParents",h="viewport",f="popper",p="reference",m=l.reduce((function(t,e){return t.concat([e+"-"+c,e+"-"+u])}),[]),g=[].concat(l,[a]).reduce((function(t,e){return t.concat([e,e+"-"+c,e+"-"+u])}),[]),b="beforeRead",v="read",y="afterRead",_="beforeMain",x="main",w="afterMain",j="beforeWrite",k="write",O="afterWrite",S=[b,v,y,_,x,w,j,k,O]},"./node_modules/@popperjs/core/lib/modifiers/applyStyles.js":function(t,e,n){"use strict";n.r(e);var i=n("./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"),r=n("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");e.default={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},o=e.attributes[t]||{},s=e.elements[t];(0,r.isHTMLElement)(s)&&(0,i.default)(s)&&(Object.assign(s.style,n),Object.keys(o).forEach((function(t){var e=o[t];!1===e?s.removeAttribute(t):s.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var o=e.elements[t],s=e.attributes[t]||{},a=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});(0,r.isHTMLElement)(o)&&(0,i.default)(o)&&(Object.assign(o.style,a),Object.keys(s).forEach((function(t){o.removeAttribute(t)})))}))}},requires:["computeStyles"]}},"./node_modules/@popperjs/core/lib/modifiers/arrow.js":function(t,e,n){"use strict";n.r(e);var i=n("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"),r=n("./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js"),o=n("./node_modules/@popperjs/core/lib/dom-utils/contains.js"),s=n("./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js"),a=n("./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js"),l=n("./node_modules/@popperjs/core/lib/utils/within.js"),c=n("./node_modules/@popperjs/core/lib/utils/mergePaddingObject.js"),u=n("./node_modules/@popperjs/core/lib/utils/expandToHashMap.js"),d=n("./node_modules/@popperjs/core/lib/enums.js"),h=n("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");e.default={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,o=t.name,h=t.options,f=n.elements.arrow,p=n.modifiersData.popperOffsets,m=(0,i.default)(n.placement),g=(0,a.default)(m),b=[d.left,d.right].indexOf(m)>=0?"height":"width";if(f&&p){var v=function(t,e){return t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t,(0,c.default)("number"!=typeof t?t:(0,u.default)(t,d.basePlacements))}(h.padding,n),y=(0,r.default)(f),_="y"===g?d.top:d.left,x="y"===g?d.bottom:d.right,w=n.rects.reference[b]+n.rects.reference[g]-p[g]-n.rects.popper[b],j=p[g]-n.rects.reference[g],k=(0,s.default)(f),O=k?"y"===g?k.clientHeight||0:k.clientWidth||0:0,S=w/2-j/2,E=v[_],M=O-y[b]-v[x],P=O/2-y[b]/2+S,T=(0,l.within)(E,P,M),C=g;n.modifiersData[o]=((e={})[C]=T,e.centerOffset=T-P,e)}},effect:function(t){var e=t.state,n=t.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i)))&&((0,h.isHTMLElement)(i)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" ")),(0,o.default)(e.elements.popper,i)?e.elements.arrow=i:console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" ")))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},"./node_modules/@popperjs/core/lib/modifiers/computeStyles.js":function(t,e,n){"use strict";n.r(e),n.d(e,{mapToStyles:function(){return h}});var i=n("./node_modules/@popperjs/core/lib/enums.js"),r=n("./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js"),o=n("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"),s=n("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),a=n("./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js"),l=n("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"),c=n("./node_modules/@popperjs/core/lib/utils/getVariation.js"),u=n("./node_modules/@popperjs/core/lib/utils/math.js"),d={top:"auto",right:"auto",bottom:"auto",left:"auto"};function h(t){var e,n=t.popper,l=t.popperRect,c=t.placement,h=t.variation,f=t.offsets,p=t.position,m=t.gpuAcceleration,g=t.adaptive,b=t.roundOffsets,v=t.isFixed,y=f.x,_=void 0===y?0:y,x=f.y,w=void 0===x?0:x,j="function"==typeof b?b({x:_,y:w}):{x:_,y:w};_=j.x,w=j.y;var k=f.hasOwnProperty("x"),O=f.hasOwnProperty("y"),S=i.left,E=i.top,M=window;if(g){var P=(0,r.default)(n),T="clientHeight",C="clientWidth";if(P===(0,o.default)(n)&&(P=(0,s.default)(n),"static"!==(0,a.default)(P).position&&"absolute"===p&&(T="scrollHeight",C="scrollWidth")),c===i.top||(c===i.left||c===i.right)&&h===i.end)E=i.bottom,w-=(v&&P===M&&M.visualViewport?M.visualViewport.height:P[T])-l.height,w*=m?1:-1;if(c===i.left||(c===i.top||c===i.bottom)&&h===i.end)S=i.right,_-=(v&&P===M&&M.visualViewport?M.visualViewport.width:P[C])-l.width,_*=m?1:-1}var A,L=Object.assign({position:p},g&&d),D=!0===b?function(t){var e=t.x,n=t.y,i=window.devicePixelRatio||1;return{x:(0,u.round)(e*i)/i||0,y:(0,u.round)(n*i)/i||0}}({x:_,y:w}):{x:_,y:w};return _=D.x,w=D.y,m?Object.assign({},L,((A={})[E]=O?"0":"",A[S]=k?"0":"",A.transform=(M.devicePixelRatio||1)<=1?"translate("+_+"px, "+w+"px)":"translate3d("+_+"px, "+w+"px, 0)",A)):Object.assign({},L,((e={})[E]=O?w+"px":"",e[S]=k?_+"px":"",e.transform="",e))}e.default={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,i=n.gpuAcceleration,r=void 0===i||i,o=n.adaptive,s=void 0===o||o,u=n.roundOffsets,d=void 0===u||u,f=(0,a.default)(e.elements.popper).transitionProperty||"";s&&["transform","top","right","bottom","left"].some((function(t){return f.indexOf(t)>=0}))&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "));var p={placement:(0,l.default)(e.placement),variation:(0,c.default)(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,h(Object.assign({},p,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:d})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,h(Object.assign({},p,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}}},"./node_modules/@popperjs/core/lib/modifiers/eventListeners.js":function(t,e,n){"use strict";n.r(e);var i=n("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"),r={passive:!0};e.default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,o=t.options,s=o.scroll,a=void 0===s||s,l=o.resize,c=void 0===l||l,u=(0,i.default)(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&d.forEach((function(t){t.addEventListener("scroll",n.update,r)})),c&&u.addEventListener("resize",n.update,r),function(){a&&d.forEach((function(t){t.removeEventListener("scroll",n.update,r)})),c&&u.removeEventListener("resize",n.update,r)}},data:{}}},"./node_modules/@popperjs/core/lib/modifiers/flip.js":function(t,e,n){"use strict";n.r(e);var i=n("./node_modules/@popperjs/core/lib/utils/getOppositePlacement.js"),r=n("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"),o=n("./node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js"),s=n("./node_modules/@popperjs/core/lib/utils/detectOverflow.js"),a=n("./node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js"),l=n("./node_modules/@popperjs/core/lib/enums.js"),c=n("./node_modules/@popperjs/core/lib/utils/getVariation.js");e.default={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,u=t.name;if(!e.modifiersData[u]._skip){for(var d=n.mainAxis,h=void 0===d||d,f=n.altAxis,p=void 0===f||f,m=n.fallbackPlacements,g=n.padding,b=n.boundary,v=n.rootBoundary,y=n.altBoundary,_=n.flipVariations,x=void 0===_||_,w=n.allowedAutoPlacements,j=e.options.placement,k=(0,r.default)(j),O=m||(k===j||!x?[(0,i.default)(j)]:function(t){if((0,r.default)(t)===l.auto)return[];var e=(0,i.default)(t);return[(0,o.default)(t),e,(0,o.default)(e)]}(j)),S=[j].concat(O).reduce((function(t,n){return t.concat((0,r.default)(n)===l.auto?(0,a.default)(e,{placement:n,boundary:b,rootBoundary:v,padding:g,flipVariations:x,allowedAutoPlacements:w}):n)}),[]),E=e.rects.reference,M=e.rects.popper,P=new Map,T=!0,C=S[0],A=0;A=0,F=R?"width":"height",z=(0,s.default)(e,{placement:L,boundary:b,rootBoundary:v,altBoundary:y,padding:g}),N=R?I?l.right:l.left:I?l.bottom:l.top;E[F]>M[F]&&(N=(0,i.default)(N));var B=(0,i.default)(N),W=[];if(h&&W.push(z[D]<=0),p&&W.push(z[N]<=0,z[B]<=0),W.every((function(t){return t}))){C=L,T=!1;break}P.set(L,W)}if(T)for(var H=function(t){var e=S.find((function(e){var n=P.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return C=e,"break"},V=x?3:1;V>0;V--){if("break"===H(V))break}e.placement!==C&&(e.modifiersData[u]._skip=!0,e.placement=C,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}}},"./node_modules/@popperjs/core/lib/modifiers/hide.js":function(t,e,n){"use strict";n.r(e);var i=n("./node_modules/@popperjs/core/lib/enums.js"),r=n("./node_modules/@popperjs/core/lib/utils/detectOverflow.js");function o(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function s(t){return[i.top,i.right,i.bottom,i.left].some((function(e){return t[e]>=0}))}e.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,i=e.rects.reference,a=e.rects.popper,l=e.modifiersData.preventOverflow,c=(0,r.default)(e,{elementContext:"reference"}),u=(0,r.default)(e,{altBoundary:!0}),d=o(c,i),h=o(u,a,l),f=s(d),p=s(h);e.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:h,isReferenceHidden:f,hasPopperEscaped:p},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":p})}}},"./node_modules/@popperjs/core/lib/modifiers/index.js":function(t,e,n){"use strict";n.r(e),n.d(e,{applyStyles:function(){return i.default},arrow:function(){return r.default},computeStyles:function(){return o.default},eventListeners:function(){return s.default},flip:function(){return a.default},hide:function(){return l.default},offset:function(){return c.default},popperOffsets:function(){return u.default},preventOverflow:function(){return d.default}});var i=n("./node_modules/@popperjs/core/lib/modifiers/applyStyles.js"),r=n("./node_modules/@popperjs/core/lib/modifiers/arrow.js"),o=n("./node_modules/@popperjs/core/lib/modifiers/computeStyles.js"),s=n("./node_modules/@popperjs/core/lib/modifiers/eventListeners.js"),a=n("./node_modules/@popperjs/core/lib/modifiers/flip.js"),l=n("./node_modules/@popperjs/core/lib/modifiers/hide.js"),c=n("./node_modules/@popperjs/core/lib/modifiers/offset.js"),u=n("./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js"),d=n("./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js")},"./node_modules/@popperjs/core/lib/modifiers/offset.js":function(t,e,n){"use strict";n.r(e),n.d(e,{distanceAndSkiddingToXY:function(){return o}});var i=n("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"),r=n("./node_modules/@popperjs/core/lib/enums.js");function o(t,e,n){var o=(0,i.default)(t),s=[r.left,r.top].indexOf(o)>=0?-1:1,a="function"==typeof n?n(Object.assign({},e,{placement:t})):n,l=a[0],c=a[1];return l=l||0,c=(c||0)*s,[r.left,r.right].indexOf(o)>=0?{x:c,y:l}:{x:l,y:c}}e.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,i=t.name,s=n.offset,a=void 0===s?[0,0]:s,l=r.placements.reduce((function(t,n){return t[n]=o(n,e.rects,a),t}),{}),c=l[e.placement],u=c.x,d=c.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=d),e.modifiersData[i]=l}}},"./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js":function(t,e,n){"use strict";n.r(e);var i=n("./node_modules/@popperjs/core/lib/utils/computeOffsets.js");e.default={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=(0,i.default)({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}}},"./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js":function(t,e,n){"use strict";n.r(e);var i=n("./node_modules/@popperjs/core/lib/enums.js"),r=n("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"),o=n("./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js"),s=n("./node_modules/@popperjs/core/lib/utils/getAltAxis.js"),a=n("./node_modules/@popperjs/core/lib/utils/within.js"),l=n("./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js"),c=n("./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js"),u=n("./node_modules/@popperjs/core/lib/utils/detectOverflow.js"),d=n("./node_modules/@popperjs/core/lib/utils/getVariation.js"),h=n("./node_modules/@popperjs/core/lib/utils/getFreshSideObject.js"),f=n("./node_modules/@popperjs/core/lib/utils/math.js");e.default={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,p=t.name,m=n.mainAxis,g=void 0===m||m,b=n.altAxis,v=void 0!==b&&b,y=n.boundary,_=n.rootBoundary,x=n.altBoundary,w=n.padding,j=n.tether,k=void 0===j||j,O=n.tetherOffset,S=void 0===O?0:O,E=(0,u.default)(e,{boundary:y,rootBoundary:_,padding:w,altBoundary:x}),M=(0,r.default)(e.placement),P=(0,d.default)(e.placement),T=!P,C=(0,o.default)(M),A=(0,s.default)(C),L=e.modifiersData.popperOffsets,D=e.rects.reference,I=e.rects.popper,R="function"==typeof S?S(Object.assign({},e.rects,{placement:e.placement})):S,F="number"==typeof R?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),z=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,N={x:0,y:0};if(L){if(g){var B,W="y"===C?i.top:i.left,H="y"===C?i.bottom:i.right,V="y"===C?"height":"width",q=L[C],$=q+E[W],U=q-E[H],Y=k?-I[V]/2:0,Q=P===i.start?D[V]:I[V],X=P===i.start?-I[V]:-D[V],G=e.elements.arrow,K=k&&G?(0,l.default)(G):{width:0,height:0},J=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:(0,h.default)(),Z=J[W],tt=J[H],et=(0,a.within)(0,D[V],K[V]),nt=T?D[V]/2-Y-et-Z-F.mainAxis:Q-et-Z-F.mainAxis,it=T?-D[V]/2+Y+et+tt+F.mainAxis:X+et+tt+F.mainAxis,rt=e.elements.arrow&&(0,c.default)(e.elements.arrow),ot=rt?"y"===C?rt.clientTop||0:rt.clientLeft||0:0,st=null!=(B=null==z?void 0:z[C])?B:0,at=q+nt-st-ot,lt=q+it-st,ct=(0,a.within)(k?(0,f.min)($,at):$,q,k?(0,f.max)(U,lt):U);L[C]=ct,N[C]=ct-q}if(v){var ut,dt="x"===C?i.top:i.left,ht="x"===C?i.bottom:i.right,ft=L[A],pt="y"===A?"height":"width",mt=ft+E[dt],gt=ft-E[ht],bt=-1!==[i.top,i.left].indexOf(M),vt=null!=(ut=null==z?void 0:z[A])?ut:0,yt=bt?mt:ft-D[pt]-I[pt]-vt+F.altAxis,_t=bt?ft+D[pt]+I[pt]-vt-F.altAxis:gt,xt=k&&bt?(0,a.withinMaxClamp)(yt,ft,_t):(0,a.within)(k?yt:mt,ft,k?_t:gt);L[A]=xt,N[A]=xt-ft}e.modifiersData[p]=N}},requiresIfExists:["offset"]}},"./node_modules/@popperjs/core/lib/popper-lite.js":function(t,e,n){"use strict";n.r(e),n.d(e,{createPopper:function(){return u},defaultModifiers:function(){return c},detectOverflow:function(){return r.default},popperGenerator:function(){return i.popperGenerator}});var i=n("./node_modules/@popperjs/core/lib/createPopper.js"),r=n("./node_modules/@popperjs/core/lib/utils/detectOverflow.js"),o=n("./node_modules/@popperjs/core/lib/modifiers/eventListeners.js"),s=n("./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js"),a=n("./node_modules/@popperjs/core/lib/modifiers/computeStyles.js"),l=n("./node_modules/@popperjs/core/lib/modifiers/applyStyles.js"),c=[o.default,s.default,a.default,l.default],u=(0,i.popperGenerator)({defaultModifiers:c})},"./node_modules/@popperjs/core/lib/popper.js":function(t,e,n){"use strict";n.r(e),n.d(e,{applyStyles:function(){return m.applyStyles},arrow:function(){return m.arrow},computeStyles:function(){return m.computeStyles},createPopper:function(){return b},createPopperLite:function(){return p.createPopper},defaultModifiers:function(){return g},detectOverflow:function(){return r.default},eventListeners:function(){return m.eventListeners},flip:function(){return m.flip},hide:function(){return m.hide},offset:function(){return m.offset},popperGenerator:function(){return i.popperGenerator},popperOffsets:function(){return m.popperOffsets},preventOverflow:function(){return m.preventOverflow}});var i=n("./node_modules/@popperjs/core/lib/createPopper.js"),r=n("./node_modules/@popperjs/core/lib/utils/detectOverflow.js"),o=n("./node_modules/@popperjs/core/lib/modifiers/eventListeners.js"),s=n("./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js"),a=n("./node_modules/@popperjs/core/lib/modifiers/computeStyles.js"),l=n("./node_modules/@popperjs/core/lib/modifiers/applyStyles.js"),c=n("./node_modules/@popperjs/core/lib/modifiers/offset.js"),u=n("./node_modules/@popperjs/core/lib/modifiers/flip.js"),d=n("./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js"),h=n("./node_modules/@popperjs/core/lib/modifiers/arrow.js"),f=n("./node_modules/@popperjs/core/lib/modifiers/hide.js"),p=n("./node_modules/@popperjs/core/lib/popper-lite.js"),m=n("./node_modules/@popperjs/core/lib/modifiers/index.js"),g=[o.default,s.default,a.default,l.default,c.default,u.default,d.default,h.default,f.default],b=(0,i.popperGenerator)({defaultModifiers:g})},"./node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js":function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return a}});var i=n("./node_modules/@popperjs/core/lib/utils/getVariation.js"),r=n("./node_modules/@popperjs/core/lib/enums.js"),o=n("./node_modules/@popperjs/core/lib/utils/detectOverflow.js"),s=n("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js");function a(t,e){void 0===e&&(e={});var n=e,a=n.placement,l=n.boundary,c=n.rootBoundary,u=n.padding,d=n.flipVariations,h=n.allowedAutoPlacements,f=void 0===h?r.placements:h,p=(0,i.default)(a),m=p?d?r.variationPlacements:r.variationPlacements.filter((function(t){return(0,i.default)(t)===p})):r.basePlacements,g=m.filter((function(t){return f.indexOf(t)>=0}));0===g.length&&(g=m,console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var b=g.reduce((function(e,n){return e[n]=(0,o.default)(t,{placement:n,boundary:l,rootBoundary:c,padding:u})[(0,s.default)(n)],e}),{});return Object.keys(b).sort((function(t,e){return b[t]-b[e]}))}},"./node_modules/@popperjs/core/lib/utils/computeOffsets.js":function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return a}});var i=n("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"),r=n("./node_modules/@popperjs/core/lib/utils/getVariation.js"),o=n("./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js"),s=n("./node_modules/@popperjs/core/lib/enums.js");function a(t){var e,n=t.reference,a=t.element,l=t.placement,c=l?(0,i.default)(l):null,u=l?(0,r.default)(l):null,d=n.x+n.width/2-a.width/2,h=n.y+n.height/2-a.height/2;switch(c){case s.top:e={x:d,y:n.y-a.height};break;case s.bottom:e={x:d,y:n.y+n.height};break;case s.right:e={x:n.x+n.width,y:h};break;case s.left:e={x:n.x-a.width,y:h};break;default:e={x:n.x,y:n.y}}var f=c?(0,o.default)(c):null;if(null!=f){var p="y"===f?"height":"width";switch(u){case s.start:e[f]=e[f]-(n[p]/2-a[p]/2);break;case s.end:e[f]=e[f]+(n[p]/2-a[p]/2)}}return e}},"./node_modules/@popperjs/core/lib/utils/debounce.js":function(t,e,n){"use strict";function i(t){var e;return function(){return e||(e=new Promise((function(n){Promise.resolve().then((function(){e=void 0,n(t())}))}))),e}}n.r(e),n.d(e,{default:function(){return i}})},"./node_modules/@popperjs/core/lib/utils/detectOverflow.js":function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return h}});var i=n("./node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js"),r=n("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),o=n("./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js"),s=n("./node_modules/@popperjs/core/lib/utils/computeOffsets.js"),a=n("./node_modules/@popperjs/core/lib/utils/rectToClientRect.js"),l=n("./node_modules/@popperjs/core/lib/enums.js"),c=n("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"),u=n("./node_modules/@popperjs/core/lib/utils/mergePaddingObject.js"),d=n("./node_modules/@popperjs/core/lib/utils/expandToHashMap.js");function h(t,e){void 0===e&&(e={});var n=e,h=n.placement,f=void 0===h?t.placement:h,p=n.strategy,m=void 0===p?t.strategy:p,g=n.boundary,b=void 0===g?l.clippingParents:g,v=n.rootBoundary,y=void 0===v?l.viewport:v,_=n.elementContext,x=void 0===_?l.popper:_,w=n.altBoundary,j=void 0!==w&&w,k=n.padding,O=void 0===k?0:k,S=(0,u.default)("number"!=typeof O?O:(0,d.default)(O,l.basePlacements)),E=x===l.popper?l.reference:l.popper,M=t.rects.popper,P=t.elements[j?E:x],T=(0,i.default)((0,c.isElement)(P)?P:P.contextElement||(0,r.default)(t.elements.popper),b,y,m),C=(0,o.default)(t.elements.reference),A=(0,s.default)({reference:C,element:M,strategy:"absolute",placement:f}),L=(0,a.default)(Object.assign({},M,A)),D=x===l.popper?L:C,I={top:T.top-D.top+S.top,bottom:D.bottom-T.bottom+S.bottom,left:T.left-D.left+S.left,right:D.right-T.right+S.right},R=t.modifiersData.offset;if(x===l.popper&&R){var F=R[f];Object.keys(I).forEach((function(t){var e=[l.right,l.bottom].indexOf(t)>=0?1:-1,n=[l.top,l.bottom].indexOf(t)>=0?"y":"x";I[t]+=F[n]*e}))}return I}},"./node_modules/@popperjs/core/lib/utils/expandToHashMap.js":function(t,e,n){"use strict";function i(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}n.r(e),n.d(e,{default:function(){return i}})},"./node_modules/@popperjs/core/lib/utils/format.js":function(t,e,n){"use strict";function i(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i=0?"x":"y"}n.r(e),n.d(e,{default:function(){return i}})},"./node_modules/@popperjs/core/lib/utils/getOppositePlacement.js":function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return r}});var i={left:"right",right:"left",bottom:"top",top:"bottom"};function r(t){return t.replace(/left|right|bottom|top/g,(function(t){return i[t]}))}},"./node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js":function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return r}});var i={start:"end",end:"start"};function r(t){return t.replace(/start|end/g,(function(t){return i[t]}))}},"./node_modules/@popperjs/core/lib/utils/getVariation.js":function(t,e,n){"use strict";function i(t){return t.split("-")[1]}n.r(e),n.d(e,{default:function(){return i}})},"./node_modules/@popperjs/core/lib/utils/math.js":function(t,e,n){"use strict";n.r(e),n.d(e,{max:function(){return i},min:function(){return r},round:function(){return o}});var i=Math.max,r=Math.min,o=Math.round},"./node_modules/@popperjs/core/lib/utils/mergeByName.js":function(t,e,n){"use strict";function i(t){var e=t.reduce((function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t}),{});return Object.keys(e).map((function(t){return e[t]}))}n.r(e),n.d(e,{default:function(){return i}})},"./node_modules/@popperjs/core/lib/utils/mergePaddingObject.js":function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return r}});var i=n("./node_modules/@popperjs/core/lib/utils/getFreshSideObject.js");function r(t){return Object.assign({},(0,i.default)(),t)}},"./node_modules/@popperjs/core/lib/utils/orderModifiers.js":function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return o}});var i=n("./node_modules/@popperjs/core/lib/enums.js");function r(t){var e=new Map,n=new Set,i=[];function r(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!n.has(t)){var i=e.get(t);i&&r(i)}})),i.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||r(t)})),i}function o(t){var e=r(t);return i.modifierPhases.reduce((function(t,n){return t.concat(e.filter((function(t){return t.phase===n})))}),[])}},"./node_modules/@popperjs/core/lib/utils/rectToClientRect.js":function(t,e,n){"use strict";function i(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}n.r(e),n.d(e,{default:function(){return i}})},"./node_modules/@popperjs/core/lib/utils/uniqueBy.js":function(t,e,n){"use strict";function i(t,e){var n=new Set;return t.filter((function(t){var i=e(t);if(!n.has(i))return n.add(i),!0}))}n.r(e),n.d(e,{default:function(){return i}})},"./node_modules/@popperjs/core/lib/utils/userAgent.js":function(t,e,n){"use strict";function i(){var t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}n.r(e),n.d(e,{default:function(){return i}})},"./node_modules/@popperjs/core/lib/utils/validateModifiers.js":function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return l}});var i=n("./node_modules/@popperjs/core/lib/utils/format.js"),r=n("./node_modules/@popperjs/core/lib/enums.js"),o='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',s='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',a=["name","enabled","phase","fn","effect","requires","options"];function l(t){t.forEach((function(e){[].concat(Object.keys(e),a).filter((function(t,e,n){return n.indexOf(t)===e})).forEach((function(n){switch(n){case"name":"string"!=typeof e.name&&console.error((0,i.default)(o,String(e.name),'"name"','"string"','"'+String(e.name)+'"'));break;case"enabled":"boolean"!=typeof e.enabled&&console.error((0,i.default)(o,e.name,'"enabled"','"boolean"','"'+String(e.enabled)+'"'));break;case"phase":r.modifierPhases.indexOf(e.phase)<0&&console.error((0,i.default)(o,e.name,'"phase"',"either "+r.modifierPhases.join(", "),'"'+String(e.phase)+'"'));break;case"fn":"function"!=typeof e.fn&&console.error((0,i.default)(o,e.name,'"fn"','"function"','"'+String(e.fn)+'"'));break;case"effect":null!=e.effect&&"function"!=typeof e.effect&&console.error((0,i.default)(o,e.name,'"effect"','"function"','"'+String(e.fn)+'"'));break;case"requires":null==e.requires||Array.isArray(e.requires)||console.error((0,i.default)(o,e.name,'"requires"','"array"','"'+String(e.requires)+'"'));break;case"requiresIfExists":Array.isArray(e.requiresIfExists)||console.error((0,i.default)(o,e.name,'"requiresIfExists"','"array"','"'+String(e.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+e.name+'" modifier, valid properties are '+a.map((function(t){return'"'+t+'"'})).join(", ")+'; but "'+n+'" was provided.')}e.requires&&e.requires.forEach((function(n){null==t.find((function(t){return t.name===n}))&&console.error((0,i.default)(s,String(e.name),n,n))}))}))}))}},"./node_modules/@popperjs/core/lib/utils/within.js":function(t,e,n){"use strict";n.r(e),n.d(e,{within:function(){return r},withinMaxClamp:function(){return o}});var i=n("./node_modules/@popperjs/core/lib/utils/math.js");function r(t,e,n){return(0,i.max)(t,(0,i.min)(e,n))}function o(t,e,n){var i=r(t,e,n);return i>n?n:i}},"./node_modules/@tannin/compile/index.js":function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return o}});var i=n("./node_modules/@tannin/postfix/index.js"),r=n("./node_modules/@tannin/evaluate/index.js");function o(t){var e=(0,i.default)(t);return function(t){return(0,r.default)(e,t)}}},"./node_modules/@tannin/evaluate/index.js":function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return r}});var i={"!":function(t){return!t},"*":function(t,e){return t*e},"/":function(t,e){return t/e},"%":function(t,e){return t%e},"+":function(t,e){return t+e},"-":function(t,e){return t-e},"<":function(t,e){return t":function(t,e){return t>e},">=":function(t,e){return t>=e},"==":function(t,e){return t===e},"!=":function(t,e){return t!==e},"&&":function(t,e){return t&&e},"||":function(t,e){return t||e},"?:":function(t,e,n){if(t)throw e;return n}};function r(t,e){var n,r,o,s,a,l,c=[];for(n=0;n=0||i[l]":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},r=["(","?"],o={")":["("],":":["?","?:"]},s=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/},"./node_modules/@wordpress/api-fetch/build-module/index.js":function(t,e,n){"use strict";n.r(e);var i=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),o=n("./node_modules/@wordpress/i18n/build-module/index.js"),s=n("./node_modules/@wordpress/api-fetch/build-module/middlewares/nonce.js"),a=n("./node_modules/@wordpress/api-fetch/build-module/middlewares/root-url.js"),l=n("./node_modules/@wordpress/api-fetch/build-module/middlewares/preloading.js"),c=n("./node_modules/@wordpress/api-fetch/build-module/middlewares/fetch-all-middleware.js"),u=n("./node_modules/@wordpress/api-fetch/build-module/middlewares/namespace-endpoint.js"),d=n("./node_modules/@wordpress/api-fetch/build-module/middlewares/http-v1.js"),h=n("./node_modules/@wordpress/api-fetch/build-module/middlewares/user-locale.js"),f=n("./node_modules/@wordpress/api-fetch/build-module/middlewares/media-upload.js"),p=n("./node_modules/@wordpress/api-fetch/build-module/utils/response.js");function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function g(t){for(var e=1;e=200&&t.status<300)return t;throw t},x=function(t){var e=t.url,n=t.path,i=t.data,s=t.parse,a=void 0===s||s,l=(0,r.default)(t,["url","path","data","parse"]),c=t.body,u=t.headers;return u=g(g({},b),u),i&&(c=JSON.stringify(i),u["Content-Type"]="application/json"),window.fetch(e||n||window.location.href,g(g(g({},v),l),{},{body:c,headers:u})).then((function(t){return Promise.resolve(t).then(_).catch((function(t){return(0,p.parseAndThrowError)(t,a)})).then((function(t){return(0,p.parseResponseAndNormalizeError)(t,a)}))}),(function(){throw{code:"fetch_error",message:(0,o.__)("You are probably offline.")}}))};function w(t){return y.reduceRight((function(t,e){return function(n){return e(n,t)}}),x)(t).catch((function(e){return"rest_cookie_invalid_nonce"!==e.code?Promise.reject(e):window.fetch(w.nonceEndpoint).then(_).then((function(t){return t.text()})).then((function(e){return w.nonceMiddleware.nonce=e,w(t)}))}))}w.use=function(t){y.unshift(t)},w.setFetchHandler=function(t){x=t},w.createNonceMiddleware=s.default,w.createPreloadingMiddleware=l.default,w.createRootURLMiddleware=a.default,w.fetchAllMiddleware=c.default,w.mediaUploadMiddleware=f.default,e.default=w},"./node_modules/@wordpress/api-fetch/build-module/middlewares/fetch-all-middleware.js":function(t,e,n){"use strict";n.r(e);var i=n("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),r=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),s=n("./node_modules/@babel/runtime/regenerator/index.js"),a=n.n(s),l=n("./node_modules/@wordpress/url/build-module/add-query-args.js"),c=n("./node_modules/@wordpress/api-fetch/build-module/index.js");function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function d(t){for(var e=1;e]+)>; rel="next"/);return e?{next:e[1]}:{}}(t.headers.get("link")).next},p=function(t){var e=!!t.path&&-1!==t.path.indexOf("per_page=-1"),n=!!t.url&&-1!==t.url.indexOf("per_page=-1");return e||n},m=function(){var t=(0,i.default)(a().mark((function t(e,n){var i,r,s,u,m,g;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!1!==e.parse){t.next=2;break}return t.abrupt("return",n(e));case 2:if(p(e)){t.next=4;break}return t.abrupt("return",n(e));case 4:return t.next=6,(0,c.default)(d(d({},(b={per_page:100},v=void 0,y=void 0,v=(a=e).path,y=a.url,d(d({},(0,o.default)(a,["path","url"])),{},{url:y&&(0,l.addQueryArgs)(y,b),path:v&&(0,l.addQueryArgs)(v,b)}))),{},{parse:!1}));case 6:return i=t.sent,t.next=9,h(i);case 9:if(r=t.sent,Array.isArray(r)){t.next=12;break}return t.abrupt("return",r);case 12:if(s=f(i)){t.next=15;break}return t.abrupt("return",r);case 15:u=[].concat(r);case 16:if(!s){t.next=27;break}return t.next=19,(0,c.default)(d(d({},e),{},{path:void 0,url:s,parse:!1}));case 19:return m=t.sent,t.next=22,h(m);case 22:g=t.sent,u=u.concat(g),s=f(m),t.next=16;break;case 27:return t.abrupt("return",u);case 28:case"end":return t.stop()}var a,b,v,y}),t)})));return function(e,n){return t.apply(this,arguments)}}();e.default=m},"./node_modules/@wordpress/api-fetch/build-module/middlewares/http-v1.js":function(t,e,n){"use strict";n.r(e);var i=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js");function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function o(t){for(var e=1;e=500&&e.status<600&&n?i(n).catch((function(){return!1!==t.parse?Promise.reject({code:"post_process",message:(0,r.__)("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(e)})):(0,o.parseAndThrowError)(e,t.parse)})).then((function(e){return(0,o.parseResponseAndNormalizeError)(e,t.parse)}))}},"./node_modules/@wordpress/api-fetch/build-module/middlewares/namespace-endpoint.js":function(t,e,n){"use strict";n.r(e);var i=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js");function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function o(t){for(var e=1;e1&&void 0!==arguments[1])||arguments[1];return Promise.resolve(function(t){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?t:204===t.status?null:t.json?t.json():Promise.reject(t)}(t,e)).catch((function(t){return s(t,e)}))};function s(t){if(!(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]))throw t;return r(t).then((function(t){var e={code:"unknown_error",message:(0,i.__)("An unknown error occurred.")};throw t||e}))}},"./node_modules/@wordpress/hooks/build-module/createAddHook.js":function(t,e,n){"use strict";n.r(e);var i=n("./node_modules/@wordpress/hooks/build-module/validateNamespace.js"),r=n("./node_modules/@wordpress/hooks/build-module/validateHookName.js");e.default=function(t,e){return function(n,o,s){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,l=t[e];if((0,r.default)(n)&&(0,i.default)(o))if("function"==typeof s)if("number"==typeof a){var c={callback:s,priority:a,namespace:o};if(l[n]){var u,d=l[n].handlers;for(u=d.length;u>0&&!(a>=d[u-1].priority);u--);u===d.length?d[u]=c:d.splice(u,0,c),l.__current.forEach((function(t){t.name===n&&t.currentIndex>=u&&t.currentIndex++}))}else l[n]={handlers:[c],runs:0};"hookAdded"!==n&&t.doAction("hookAdded",n,o,s,a)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}}},"./node_modules/@wordpress/hooks/build-module/createCurrentHook.js":function(t,e,n){"use strict";n.r(e),e.default=function(t,e){return function(){var n,i,r=t[e];return null!==(n=null===(i=r.__current[r.__current.length-1])||void 0===i?void 0:i.name)&&void 0!==n?n:null}}},"./node_modules/@wordpress/hooks/build-module/createDidHook.js":function(t,e,n){"use strict";n.r(e);var i=n("./node_modules/@wordpress/hooks/build-module/validateHookName.js");e.default=function(t,e){return function(n){var r=t[e];if((0,i.default)(n))return r[n]&&r[n].runs?r[n].runs:0}}},"./node_modules/@wordpress/hooks/build-module/createDoingHook.js":function(t,e,n){"use strict";n.r(e),e.default=function(t,e){return function(n){var i=t[e];return void 0===n?void 0!==i.__current[0]:!!i.__current[0]&&n===i.__current[0].name}}},"./node_modules/@wordpress/hooks/build-module/createHasHook.js":function(t,e,n){"use strict";n.r(e),e.default=function(t,e){return function(n,i){var r=t[e];return void 0!==i?n in r&&r[n].handlers.some((function(t){return t.namespace===i})):n in r}}},"./node_modules/@wordpress/hooks/build-module/createHooks.js":function(t,e,n){"use strict";n.r(e),n.d(e,{_Hooks:function(){return d}});var i=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),r=n("./node_modules/@wordpress/hooks/build-module/createAddHook.js"),o=n("./node_modules/@wordpress/hooks/build-module/createRemoveHook.js"),s=n("./node_modules/@wordpress/hooks/build-module/createHasHook.js"),a=n("./node_modules/@wordpress/hooks/build-module/createRunHook.js"),l=n("./node_modules/@wordpress/hooks/build-module/createCurrentHook.js"),c=n("./node_modules/@wordpress/hooks/build-module/createDoingHook.js"),u=n("./node_modules/@wordpress/hooks/build-module/createDidHook.js"),d=function t(){(0,i.default)(this,t),this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=(0,r.default)(this,"actions"),this.addFilter=(0,r.default)(this,"filters"),this.removeAction=(0,o.default)(this,"actions"),this.removeFilter=(0,o.default)(this,"filters"),this.hasAction=(0,s.default)(this,"actions"),this.hasFilter=(0,s.default)(this,"filters"),this.removeAllActions=(0,o.default)(this,"actions",!0),this.removeAllFilters=(0,o.default)(this,"filters",!0),this.doAction=(0,a.default)(this,"actions"),this.applyFilters=(0,a.default)(this,"filters",!0),this.currentAction=(0,l.default)(this,"actions"),this.currentFilter=(0,l.default)(this,"filters"),this.doingAction=(0,c.default)(this,"actions"),this.doingFilter=(0,c.default)(this,"filters"),this.didAction=(0,u.default)(this,"actions"),this.didFilter=(0,u.default)(this,"filters")};e.default=function(){return new d}},"./node_modules/@wordpress/hooks/build-module/createRemoveHook.js":function(t,e,n){"use strict";n.r(e);var i=n("./node_modules/@wordpress/hooks/build-module/validateNamespace.js"),r=n("./node_modules/@wordpress/hooks/build-module/validateHookName.js");e.default=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(o,s){var a=t[e];if((0,r.default)(o)&&(n||(0,i.default)(s))){if(!a[o])return 0;var l=0;if(n)l=a[o].handlers.length,a[o]={runs:a[o].runs,handlers:[]};else for(var c=a[o].handlers,u=function(t){c[t].namespace===s&&(c.splice(t,1),l++,a.__current.forEach((function(e){e.name===o&&e.currentIndex>=t&&e.currentIndex--})))},d=c.length-1;d>=0;d--)u(d);return"hookRemoved"!==o&&t.doAction("hookRemoved",o,s),l}}}},"./node_modules/@wordpress/hooks/build-module/createRunHook.js":function(t,e,n){"use strict";n.r(e);var i=n("./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");e.default=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r){var o=t[e];o[r]||(o[r]={handlers:[],runs:0}),o[r].runs++;var s=o[r].handlers;"hookAdded"!==r&&o.all&&s.push.apply(s,(0,i.default)(o.all.handlers));for(var a=arguments.length,l=new Array(a>1?a-1:0),c=1;c1&&void 0!==arguments[1]?arguments[1]:"default";i.data[e]=s(s(s({},a),i.data[e]),t),i.data[e][""]=s(s({},a[""]),i.data[e][""])},d=function(t,e){u(t,e),c()},h=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;return i.data[t]||u(void 0,t),i.dcnpgettext(t,e,n,r,o)},f=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default"},p=function(t,e,i){var r=h(i,e,t);return n?(r=n.applyFilters("i18n.gettext_with_context",r,t,e,i),n.applyFilters("i18n.gettext_with_context_"+f(i),r,t,e,i)):r};if(t&&d(t,e),n){var m=function(t){l.test(t)&&c()};n.addAction("hookAdded","core/i18n",m),n.addAction("hookRemoved","core/i18n",m)}return{getLocaleData:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return i.data[t]},setLocaleData:d,resetLocaleData:function(t,e){i.data={},i.pluralForms={},d(t,e)},subscribe:function(t){return o.add(t),function(){return o.delete(t)}},__:function(t,e){var i=h(e,void 0,t);return n?(i=n.applyFilters("i18n.gettext",i,t,e),n.applyFilters("i18n.gettext_"+f(e),i,t,e)):i},_x:p,_n:function(t,e,i,r){var o=h(r,void 0,t,e,i);return n?(o=n.applyFilters("i18n.ngettext",o,t,e,i,r),n.applyFilters("i18n.ngettext_"+f(r),o,t,e,i,r)):o},_nx:function(t,e,i,r,o){var s=h(o,r,t,e,i);return n?(s=n.applyFilters("i18n.ngettext_with_context",s,t,e,i,r,o),n.applyFilters("i18n.ngettext_with_context_"+f(o),s,t,e,i,r,o)):s},isRTL:function(){return"rtl"===p("ltr","text direction")},hasTranslation:function(t,e,r){var o,s,a=e?e+""+t:t,l=!(null===(o=i.data)||void 0===o||null===(s=o[null!=r?r:"default"])||void 0===s||!s[a]);return n&&(l=n.applyFilters("i18n.has_translation",l,t,e,r),l=n.applyFilters("i18n.has_translation_"+f(r),l,t,e,r)),l}}}},"./node_modules/@wordpress/i18n/build-module/default-i18n.js":function(t,e,n){"use strict";n.r(e),n.d(e,{__:function(){return u},_n:function(){return h},_nx:function(){return f},_x:function(){return d},getLocaleData:function(){return s},hasTranslation:function(){return m},isRTL:function(){return p},resetLocaleData:function(){return l},setLocaleData:function(){return a},subscribe:function(){return c}});var i=n("./node_modules/@wordpress/i18n/build-module/create-i18n.js"),r=n("./node_modules/@wordpress/hooks/build-module/index.js"),o=(0,i.createI18n)(void 0,void 0,r.defaultHooks);e.default=o;var s=o.getLocaleData.bind(o),a=o.setLocaleData.bind(o),l=o.resetLocaleData.bind(o),c=o.subscribe.bind(o),u=o.__.bind(o),d=o._x.bind(o),h=o._n.bind(o),f=o._nx.bind(o),p=o.isRTL.bind(o),m=o.hasTranslation.bind(o)},"./node_modules/@wordpress/i18n/build-module/index.js":function(t,e,n){"use strict";n.r(e),n.d(e,{__:function(){return o.__},_n:function(){return o._n},_nx:function(){return o._nx},_x:function(){return o._x},createI18n:function(){return r.createI18n},defaultI18n:function(){return o.default},getLocaleData:function(){return o.getLocaleData},hasTranslation:function(){return o.hasTranslation},isRTL:function(){return o.isRTL},resetLocaleData:function(){return o.resetLocaleData},setLocaleData:function(){return o.setLocaleData},sprintf:function(){return i.sprintf},subscribe:function(){return o.subscribe}});var i=n("./node_modules/@wordpress/i18n/build-module/sprintf.js"),r=n("./node_modules/@wordpress/i18n/build-module/create-i18n.js"),o=n("./node_modules/@wordpress/i18n/build-module/default-i18n.js")},"./node_modules/@wordpress/i18n/build-module/sprintf.js":function(t,e,n){"use strict";n.r(e),n.d(e,{sprintf:function(){return l}});var i=n("./node_modules/memize/index.js"),r=n.n(i),o=n("./node_modules/sprintf-js/src/sprintf.js"),s=n.n(o),a=r()(console.error);function l(t){try{for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;if(!e||!Object.keys(e).length)return t;var n=t,o=t.indexOf("?");return-1!==o&&(e=Object.assign((0,i.getQueryArgs)(t),e),n=n.substr(0,o)),n+"?"+(0,r.buildQueryString)(e)}},"./node_modules/@wordpress/url/build-module/build-query-string.js":function(t,e,n){"use strict";n.r(e),n.d(e,{buildQueryString:function(){return s}});var i=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");function r(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,l=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){l=!0,s=t},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw s}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n0;s--)a/=o;return a.toFixed(2)},i.human=function(t){var e=i.calculate(t);return e.fixed+i.spacer+e.suffix},i}},t.exports?t.exports=o():(i=[],void 0===(r="function"==typeof(n=o)?n.apply(e,i):n)||(t.exports=r))},"./node_modules/human-format/index.js":function(t,e){var n,i,r;i=[],n=function(){"use strict";function t(t,e){var n,i,r;for(n=1,i=arguments.length;n>1].factor>t?r=e-1:i=e;return n[i]},c.prototype.parse=function(t,e){var n=t.match(this._regexp);if(null!==n){var i,r=n[3];if(a(this._prefixes,r))i=this._prefixes[r];else{if(e||(r=r.toLowerCase(),!a(this._lcPrefixes,r)))return;r=this._lcPrefixes[r],i=this._prefixes[r]}var o=+n[2];return void 0!==n[1]&&(o=-o),{factor:i,prefix:r,unit:n[4],value:o}}};var u={binary:c.create(",Ki,Mi,Gi,Ti,Pi,Ei,Zi,Yi".split(","),1024),SI:c.create("y,z,a,f,p,n,µ,m,,k,M,G,T,P,E,Z,Y".split(","),1e3,-8)},d={decimals:2,separator:" ",unit:""},h={scale:"SI",strict:!1};function f(e,n){var i=v(e,n=t({},d,n));e=String(i.value);var r=i.prefix+n.unit;return""===r?e:e+n.separator+r}var p={scale:"binary",unit:"B"};function m(e,n){return f(e,void 0===n?p:t({},p,n))}function g(t,e){var n=b(t,e);return n.value*n.factor}function b(e,n){if("string"!=typeof e)throw new TypeError("str must be a string");n=t({},h,n);var i=l(u,n.scale);if(void 0===i)throw new Error("missing scale");var r=i.parse(e,n.strict);if(void 0===r)throw new Error("cannot parse str");return r}function v(e,n){if(0===e)return{value:0,prefix:""};if(e<0){var i=v(-e,n);return i.value=-i.value,i}if("number"!=typeof e||Number.isNaN(e))throw new TypeError("value must be a number");n=t({},h,n);var r,o=l(u,n.scale);if(void 0===o)throw new Error("missing scale");var s=n.decimals;void 0!==s&&(r=Math.pow(10,s));var c,d=n.prefix;if(void 0!==d){if(!a(o._prefixes,d))throw new Error("invalid prefix");c=o._prefixes[d]}else{var f=o.findPrefix(e);if(void 0!==r)do{var p=(c=f.factor)/r;e=Math.round(e/p)*p}while((f=o.findPrefix(e)).factor!==c);else c=f.factor;d=f.prefix}return{prefix:d,value:void 0===r?e/c:Math.round(e*r/c)/r}}return f.bytes=m,f.parse=g,g.raw=b,f.raw=v,f.Scale=c,f},void 0===(r="function"==typeof n?n.apply(e,i):n)||(t.exports=r)},"./node_modules/loading-attribute-polyfill/loading-attribute-polyfill.min.js":function(){!function(t,e){"use strict";var n,i,r={rootMargin:"256px 0px",threshold:.01,lazyImage:'img[loading="lazy"]',lazyIframe:'iframe[loading="lazy"]'},o={loading:"loading"in HTMLImageElement.prototype&&"loading"in HTMLIFrameElement.prototype,scrolling:"onscroll"in window};function s(t){var e,n,i=[];"picture"===t.parentNode.tagName.toLowerCase()&&((n=(e=t.parentNode).querySelector("source[data-lazy-remove]"))&&e.removeChild(n),i=Array.prototype.slice.call(t.parentNode.querySelectorAll("source"))),i.push(t),i.forEach((function(t){t.hasAttribute("data-lazy-srcset")&&(t.setAttribute("srcset",t.getAttribute("data-lazy-srcset")),t.removeAttribute("data-lazy-srcset"))})),t.setAttribute("src",t.getAttribute("data-lazy-src")),t.removeAttribute("data-lazy-src")}function a(t){var e=document.createElement("div");for(e.innerHTML=function(t){var e=t.textContent||t.innerHTML,i="data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 "+((e.match(/width=['"](\d+)['"]/)||!1)[1]||1)+" "+((e.match(/height=['"](\d+)['"]/)||!1)[1]||1)+"%27%3E%3C/svg%3E";return!o.loading&&o.scrolling&&(void 0===n?e=e.replace(/(?:\r\n|\r|\n|\t| )src=/g,' lazyload="1" src='):("picture"===t.parentNode.tagName.toLowerCase()&&(e=''+e),e=e.replace(/(?:\r\n|\r|\n|\t| )srcset=/g," data-lazy-srcset=").replace(/(?:\r\n|\r|\n|\t| )src=/g,' src="'+i+'" data-lazy-src='))),e}(t);e.firstChild;)o.loading||!o.scrolling||void 0===n||!e.firstChild.tagName||"img"!==e.firstChild.tagName.toLowerCase()&&"iframe"!==e.firstChild.tagName.toLowerCase()||n.observe(e.firstChild),t.parentNode.insertBefore(e.firstChild,t);t.parentNode.removeChild(t)}function l(){document.querySelectorAll("noscript.loading-lazy").forEach(a),void 0!==window.matchMedia&&window.matchMedia("print").addListener((function(t){t.matches&&document.querySelectorAll(r.lazyImage+"[data-lazy-src],"+r.lazyIframe+"[data-lazy-src]").forEach((function(t){s(t)}))}))}"undefined"!=typeof NodeList&&NodeList.prototype&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),"IntersectionObserver"in window&&(n=new IntersectionObserver((function(t,e){t.forEach((function(t){if(0!==t.intersectionRatio){var n=t.target;e.unobserve(n),s(n)}}))}),r)),i="requestAnimationFrame"in window?window.requestAnimationFrame:function(t){t()},/comp|inter/.test(document.readyState)?i(l):"addEventListener"in document?document.addEventListener("DOMContentLoaded",(function(){i(l)})):document.attachEvent("onreadystatechange",(function(){"complete"===document.readyState&&l()}))}()},"./node_modules/memize/index.js":function(t){t.exports=function(t,e){var n,i,r=0;function o(){var o,s,a=n,l=arguments.length;t:for(;a;){if(a.args.length===arguments.length){for(s=0;s-1}function zt(t,e){var n=this.__data__,i=te(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}function Nt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e1?n[r-1]:void 0,s=r>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(r--,o):void 0,s&&je(n[0],n[1],s)&&(o=r<3?void 0:o,r=1),e=Object(e);++i-1&&t%1==0&&t0){if(++e>=o)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function Le(t){if(null!=t){try{return ot.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function De(t,e){return t===e||t!=t&&e!=e}var Ie=re(function(){return arguments}())?re:function(t){return Ve(t)&&st.call(t,"callee")&&!bt.call(t,"callee")},Re=Array.isArray;function Fe(t){return null!=t&&We(t.length)&&!Be(t)}function ze(t){return Ve(t)&&Fe(t)}var Ne=xt||Ke;function Be(t){if(!He(t))return!1;var e=ie(t);return e==p||e==m||e==u||e==_}function We(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=a}function He(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Ve(t){return null!=t&&"object"==typeof t}function qe(t){if(!Ve(t)||ie(t)!=y)return!1;var e=mt(t);if(null===e)return!0;var n=st.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&ot.call(n)==ct}var $e=Q?K(Q):se;function Ue(t){return me(t,Ye(t))}function Ye(t){return Fe(t)?Kt(t,!0):ae(t)}var Qe=ge((function(t,e,n){le(t,e,n)}));function Xe(t){return function(){return t}}function Ge(t){return t}function Ke(){return!1}e.exports=Qe}).call(this)}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(t,e,n){var r,o;r=self,o=function(){return function(){"use strict";var t={720:function(t,e,n){n.r(e),n.d(e,{Scene:function(){return ae},Tweenable:function(){return Ot},interpolate:function(){return ee},processTweens:function(){return bt},setBezierFunction:function(){return V},shouldScheduleUpdate:function(){return _t},tween:function(){return St},unsetBezierFunction:function(){return q}});var i={};n.r(i),n.d(i,{bounce:function(){return I},bouncePast:function(){return R},easeFrom:function(){return z},easeFromTo:function(){return F},easeInBack:function(){return M},easeInCirc:function(){return k},easeInCubic:function(){return c},easeInExpo:function(){return x},easeInOutBack:function(){return T},easeInOutCirc:function(){return S},easeInOutCubic:function(){return d},easeInOutExpo:function(){return j},easeInOutQuad:function(){return l},easeInOutQuart:function(){return p},easeInOutQuint:function(){return b},easeInOutSine:function(){return _},easeInQuad:function(){return s},easeInQuart:function(){return h},easeInQuint:function(){return m},easeInSine:function(){return v},easeOutBack:function(){return P},easeOutBounce:function(){return E},easeOutCirc:function(){return O},easeOutCubic:function(){return u},easeOutExpo:function(){return w},easeOutQuad:function(){return a},easeOutQuart:function(){return f},easeOutQuint:function(){return g},easeOutSine:function(){return y},easeTo:function(){return N},elastic:function(){return C},linear:function(){return o},swingFrom:function(){return L},swingFromTo:function(){return A},swingTo:function(){return D}});var r={};n.r(r),n.d(r,{afterTween:function(){return Xt},beforeTween:function(){return Qt},doesApply:function(){return Ut},tweenCreated:function(){return Yt}});var o=function(t){return t},s=function(t){return Math.pow(t,2)},a=function(t){return-(Math.pow(t-1,2)-1)},l=function(t){return(t/=.5)<1?.5*Math.pow(t,2):-.5*((t-=2)*t-2)},c=function(t){return Math.pow(t,3)},u=function(t){return Math.pow(t-1,3)+1},d=function(t){return(t/=.5)<1?.5*Math.pow(t,3):.5*(Math.pow(t-2,3)+2)},h=function(t){return Math.pow(t,4)},f=function(t){return-(Math.pow(t-1,4)-1)},p=function(t){return(t/=.5)<1?.5*Math.pow(t,4):-.5*((t-=2)*Math.pow(t,3)-2)},m=function(t){return Math.pow(t,5)},g=function(t){return Math.pow(t-1,5)+1},b=function(t){return(t/=.5)<1?.5*Math.pow(t,5):.5*(Math.pow(t-2,5)+2)},v=function(t){return 1-Math.cos(t*(Math.PI/2))},y=function(t){return Math.sin(t*(Math.PI/2))},_=function(t){return-.5*(Math.cos(Math.PI*t)-1)},x=function(t){return 0===t?0:Math.pow(2,10*(t-1))},w=function(t){return 1===t?1:1-Math.pow(2,-10*t)},j=function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},k=function(t){return-(Math.sqrt(1-t*t)-1)},O=function(t){return Math.sqrt(1-Math.pow(t-1,2))},S=function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},E=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},M=function(t){var e=1.70158;return t*t*((e+1)*t-e)},P=function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},T=function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},C=function(t){return-1*Math.pow(4,-8*t)*Math.sin((6*t-1)*(2*Math.PI)/2)+1},A=function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},L=function(t){var e=1.70158;return t*t*((e+1)*t-e)},D=function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},I=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},R=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?2-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?2-(7.5625*(t-=2.25/2.75)*t+.9375):2-(7.5625*(t-=2.625/2.75)*t+.984375)},F=function(t){return(t/=.5)<1?.5*Math.pow(t,4):-.5*((t-=2)*Math.pow(t,3)-2)},z=function(t){return Math.pow(t,4)},N=function(t){return Math.pow(t,.25)};function B(t,e,n,i,r,o){var s,a,l,c,u,d=0,h=0,f=0,p=function(t){return((d*t+h)*t+f)*t},m=function(t){return(3*d*t+2*h)*t+f},g=function(t){return t>=0?t:0-t};return d=1-(f=3*e)-(h=3*(i-e)-f),l=1-(u=3*n)-(c=3*(r-n)-u),s=t,a=function(t){return 1/(200*t)}(o),function(t){return((l*t+c)*t+u)*t}(function(t,e){var n,i,r,o,s,a;for(r=t,a=0;a<8;a++){if(o=p(r)-t,g(o)(i=1))return i;for(;no?n=r:i=r,r=.5*(i-n)+n}return r}(s,a))}var W,H=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.25,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.25,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.75,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.75;return function(r){return B(r,t,e,n,i,1)}},V=function(t,e,n,i,r){var o=H(e,n,i,r);return o.displayName=t,o.x1=e,o.y1=n,o.x2=i,o.y2=r,Ot.formulas[t]=o},q=function(t){return delete Ot.formulas[t]};function $(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function U(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,i=new Array(e);na?a:e;t._hasEnded=l>=a;var c=o-(a-l),u=t._filters.length>0;if(t._hasEnded)return t._render(s,t._data,c),t.stop(!0);u&&t._applyFilter(st),l1&&void 0!==arguments[1]?arguments[1]:nt,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(Array.isArray(e))return H.apply(void 0,Q(e));var i=Y(e);if(pt[e])return pt[e];if(i===ct||i===lt)for(var r in t)n[r]=e;else for(var o in t)n[o]=e[o]||nt;return n},jt=function(t){t===ht?(ht=t._next)?ht._previous=null:ft=null:t===ft?(ft=t._previous)?ft._next=null:ht=null:(tt=t._previous,et=t._next,tt._next=et,et._previous=tt),t._previous=t._next=null},kt="function"==typeof Promise?Promise:null;W=Symbol.toStringTag;var Ot=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;$(this,t),J(this,W,"Promise"),this._config={},this._data={},this._delay=0,this._filters=[],this._next=null,this._previous=null,this._timestamp=null,this._hasEnded=!1,this._resolve=null,this._reject=null,this._currentState=e||{},this._originalState={},this._targetState={},this._start=dt,this._render=dt,this._promiseCtor=kt,n&&this.setConfig(n)}var e;return e=[{key:"_applyFilter",value:function(t){for(var e=this._filters.length;e>0;e--){var n=this._filters[e-e][t];n&&n(this)}}},{key:"tween",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return this._isPlaying&&this.stop(),!e&&this._config||this.setConfig(e),this._pausedAtTime=null,this._timestamp=t.now(),this._start(this.get(),this._data),this._delay&&this._render(this._currentState,this._data,0),this._resume(this._timestamp)}},{key:"setConfig",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this._config;for(var i in e)n[i]=e[i];var r=n.promise,o=void 0===r?this._promiseCtor:r,s=n.start,a=void 0===s?dt:s,l=n.finish,c=n.render,u=void 0===c?this._config.step||dt:c,d=n.step,h=void 0===d?dt:d;this._data=n.data||n.attachment||this._data,this._isPlaying=!1,this._pausedAtTime=null,this._scheduleId=null,this._delay=e.delay||0,this._start=a,this._render=u||h,this._duration=n.duration||500,this._promiseCtor=o,l&&(this._resolve=l);var f=e.from,p=e.to,m=void 0===p?{}:p,g=this._currentState,b=this._originalState,v=this._targetState;for(var y in f)g[y]=f[y];var _=!1;for(var x in g){var w=g[x];_||Y(w)!==ct||(_=!0),b[x]=w,v[x]=m.hasOwnProperty(x)?m[x]:w}if(this._easing=wt(this._currentState,n.easing,this._easing),this._filters.length=0,_){for(var j in t.filters)t.filters[j].doesApply(this)&&this._filters.push(t.filters[j]);this._applyFilter(at)}return this}},{key:"then",value:function(t,e){var n=this;return this._promise=new this._promiseCtor((function(t,e){n._resolve=t,n._reject=e})),this._promise.then(t,e)}},{key:"catch",value:function(t){return this.then().catch(t)}},{key:"finally",value:function(t){return this.then().finally(t)}},{key:"get",value:function(){return K({},this._currentState)}},{key:"set",value:function(t){this._currentState=t}},{key:"pause",value:function(){if(this._isPlaying)return this._pausedAtTime=t.now(),this._isPlaying=!1,jt(this),this}},{key:"resume",value:function(){return this._resume()}},{key:"_resume",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.now();return null===this._timestamp?this.tween():this._isPlaying?this._promise:(this._pausedAtTime&&(this._timestamp+=e-this._pausedAtTime,this._pausedAtTime=null),this._isPlaying=!0,null===ht?(ht=this,ft=this):(this._previous=ft,ft._next=this,ft=this),this)}},{key:"seek",value:function(e){e=Math.max(e,0);var n=t.now();return this._timestamp+e===0||(this._timestamp=n-e,gt(this,n)),this}},{key:"stop",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this._isPlaying)return this;this._isPlaying=!1,jt(this);var e=this._filters.length>0;return t&&(e&&this._applyFilter(st),mt(1,this._currentState,this._originalState,this._targetState,1,0,this._easing),e&&(this._applyFilter(rt),this._applyFilter(ot))),this._resolve&&this._resolve({data:this._data,state:this._currentState,tweenable:this}),this._resolve=null,this._reject=null,this}},{key:"cancel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._currentState,n=this._data;return this._isPlaying?(this._reject&&this._reject({data:n,state:e,tweenable:this}),this._resolve=null,this._reject=null,this.stop(t)):this}},{key:"isPlaying",value:function(){return this._isPlaying}},{key:"hasEnded",value:function(){return this._hasEnded}},{key:"setScheduleFunction",value:function(e){t.setScheduleFunction(e)}},{key:"data",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t&&(this._data=K({},t)),this._data}},{key:"dispose",value:function(){for(var t in this)delete this[t]}}],e&&U(t.prototype,e),t}();function St(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=new Ot;return e.tween(t),e.tweenable=e,e}J(Ot,"now",(function(){return Z})),J(Ot,"setScheduleFunction",(function(t){return ut=t})),J(Ot,"filters",{}),J(Ot,"formulas",pt),_t(!0);var Et,Mt,Pt=/(\d|-|\.)/,Tt=/([^\-0-9.]+)/g,Ct=/[0-9.-]+/g,At=(Et=Ct.source,Mt=/,\s*/.source,new RegExp("rgba?\\(".concat(Et).concat(Mt).concat(Et).concat(Mt).concat(Et,"(").concat(Mt).concat(Et,")?\\)"),"g")),Lt=/^.*\(/,Dt=/#([0-9]|[a-f]){3,6}/gi,It="VAL",Rt=function(t,e){return t.map((function(t,n){return"_".concat(e,"_").concat(n)}))};function Ft(t){return parseInt(t,16)}var zt=function(t){return"rgb(".concat((e=t,3===(e=e.replace(/#/,"")).length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]),[Ft(e.substr(0,2)),Ft(e.substr(2,2)),Ft(e.substr(4,2))]).join(","),")");var e},Nt=function(t,e,n){var i=e.match(t),r=e.replace(t,It);return i&&i.forEach((function(t){return r=r.replace(It,n(t))})),r},Bt=function(t){for(var e in t){var n=t[e];"string"==typeof n&&n.match(Dt)&&(t[e]=Nt(Dt,n,zt))}},Wt=function(t){var e=t.match(Ct),n=e.slice(0,3).map(Math.floor),i=t.match(Lt)[0];if(3===e.length)return"".concat(i).concat(n.join(","),")");if(4===e.length)return"".concat(i).concat(n.join(","),",").concat(e[3],")");throw new Error("Invalid rgbChunk: ".concat(t))},Ht=function(t){return t.match(Ct)},Vt=function(t,e){var n={};return e.forEach((function(e){n[e]=t[e],delete t[e]})),n},qt=function(t,e){return e.map((function(e){return t[e]}))},$t=function(t,e){return e.forEach((function(e){return t=t.replace(It,+e.toFixed(4))})),t},Ut=function(t){for(var e in t._currentState)if("string"==typeof t._currentState[e])return!0;return!1};function Yt(t){var e=t._currentState;[e,t._originalState,t._targetState].forEach(Bt),t._tokenData=function(t){var e,n,i={};for(var r in t){var o=t[r];"string"==typeof o&&(i[r]={formatString:(e=o,n=void 0,n=e.match(Tt),n?(1===n.length||e.charAt(0).match(Pt))&&n.unshift(""):n=["",""],n.join(It)),chunkNames:Rt(Ht(o),r)})}return i}(e)}function Qt(t){var e=t._currentState,n=t._originalState,i=t._targetState,r=t._easing,o=t._tokenData;!function(t,e){var n=function(n){var i=e[n].chunkNames,r=t[n];if("string"==typeof r){var o=r.split(" "),s=o[o.length-1];i.forEach((function(e,n){return t[e]=o[n]||s}))}else i.forEach((function(e){return t[e]=r}));delete t[n]};for(var i in e)n(i)}(r,o),[e,n,i].forEach((function(t){return function(t,e){var n=function(n){Ht(t[n]).forEach((function(i,r){return t[e[n].chunkNames[r]]=+i})),delete t[n]};for(var i in e)n(i)}(t,o)}))}function Xt(t){var e=t._currentState,n=t._originalState,i=t._targetState,r=t._easing,o=t._tokenData;[e,n,i].forEach((function(t){return function(t,e){for(var n in e){var i=e[n],r=i.chunkNames,o=i.formatString,s=$t(o,qt(Vt(t,r),r));t[n]=Nt(At,s,Wt)}}(t,o)})),function(t,e){for(var n in e){var i=e[n].chunkNames,r=t[i[0]];t[n]="string"==typeof r?i.map((function(e){var n=t[e];return delete t[e],n})).join(" "):r}}(r,o)}function Gt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Kt(t){for(var e=1;e4&&void 0!==arguments[4]?arguments[4]:0,o=Kt({},t),s=wt(t,i);for(var a in Zt._filters.length=0,Zt.set({}),Zt._currentState=o,Zt._originalState=t,Zt._targetState=e,Zt._easing=s,te)te[a].doesApply(Zt)&&Zt._filters.push(te[a]);Zt._applyFilter("tweenCreated"),Zt._applyFilter("beforeTween");var l=mt(n,o,t,e,1,r,s);return Zt._applyFilter("afterTween"),l};function ne(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);nt.strokeWidth&&(e=t.trailWidth);var n=50-e/2;return r.render(this._pathTemplate,{radius:n,"2radius":2*n})},o.prototype._trailString=function(t){return this._pathString(t)},e.exports=o},{"./shape":8,"./utils":10}],4:[function(t,e,n){var i=t("./shape"),r=t("./utils"),o=function(t,e){this._pathTemplate=e.vertical?"M {center},100 L {center},0":"M 0,{center} L 100,{center}",i.apply(this,arguments)};o.prototype=new i,o.prototype.constructor=o,o.prototype._initializeSvg=function(t,e){var n=e.vertical?"0 0 "+e.strokeWidth+" 100":"0 0 100 "+e.strokeWidth;t.setAttribute("viewBox",n),t.setAttribute("preserveAspectRatio","none")},o.prototype._pathString=function(t){return r.render(this._pathTemplate,{center:t.strokeWidth/2})},o.prototype._trailString=function(t){return this._pathString(t)},e.exports=o},{"./shape":8,"./utils":10}],5:[function(t,e,n){e.exports={Line:t("./line"),Circle:t("./circle"),SemiCircle:t("./semicircle"),Square:t("./square"),Path:t("./path"),Shape:t("./shape"),utils:t("./utils")}},{"./circle":3,"./line":4,"./path":6,"./semicircle":7,"./shape":8,"./square":9,"./utils":10}],6:[function(t,e,n){var i=t("shifty"),r=t("./utils"),o=i.Tweenable,s={easeIn:"easeInCubic",easeOut:"easeOutCubic",easeInOut:"easeInOutCubic"},a=function t(e,n){if(!(this instanceof t))throw new Error("Constructor was called without new keyword");var i;n=r.extend({delay:0,duration:800,easing:"linear",from:{},to:{},step:function(){}},n),i=r.isString(e)?document.querySelector(e):e,this.path=i,this._opts=n,this._tweenable=null;var o=this.path.getTotalLength();this.path.style.strokeDasharray=o+" "+o,this.set(0)};a.prototype.value=function(){var t=this._getComputedDashOffset(),e=this.path.getTotalLength();return parseFloat((1-t/e).toFixed(6),10)},a.prototype.set=function(t){this.stop(),this.path.style.strokeDashoffset=this._progressToOffset(t);var e=this._opts.step;if(r.isFunction(e)){var n=this._easing(this._opts.easing);e(this._calculateTo(t,n),this._opts.shape||this,this._opts.attachment)}},a.prototype.stop=function(){this._stopTween(),this.path.style.strokeDashoffset=this._getComputedDashOffset()},a.prototype.animate=function(t,e,n){e=e||{},r.isFunction(e)&&(n=e,e={});var i=r.extend({},e),s=r.extend({},this._opts);e=r.extend(s,e);var a=this._easing(e.easing),l=this._resolveFromAndTo(t,a,i);this.stop(),this.path.getBoundingClientRect();var c=this._getComputedDashOffset(),u=this._progressToOffset(t),d=this;this._tweenable=new o,this._tweenable.tween({from:r.extend({offset:c},l.from),to:r.extend({offset:u},l.to),duration:e.duration,delay:e.delay,easing:a,step:function(t){d.path.style.strokeDashoffset=t.offset;var n=e.shape||d;e.step(t,n,e.attachment)}}).then((function(t){r.isFunction(n)&&n()})).catch((function(t){throw console.error("Error in tweening:",t),t}))},a.prototype._getComputedDashOffset=function(){var t=window.getComputedStyle(this.path,null);return parseFloat(t.getPropertyValue("stroke-dashoffset"),10)},a.prototype._progressToOffset=function(t){var e=this.path.getTotalLength();return e-t*e},a.prototype._resolveFromAndTo=function(t,e,n){return n.from&&n.to?{from:n.from,to:n.to}:{from:this._calculateFrom(e),to:this._calculateTo(t,e)}},a.prototype._calculateFrom=function(t){return i.interpolate(this._opts.from,this._opts.to,this.value(),t)},a.prototype._calculateTo=function(t,e){return i.interpolate(this._opts.from,this._opts.to,t,e)},a.prototype._stopTween=function(){null!==this._tweenable&&(this._tweenable.stop(!0),this._tweenable=null)},a.prototype._easing=function(t){return s.hasOwnProperty(t)?s[t]:t},e.exports=a},{"./utils":10,shifty:2}],7:[function(t,e,n){var i=t("./shape"),r=t("./circle"),o=t("./utils"),s=function(t,e){this._pathTemplate="M 50,50 m -{radius},0 a {radius},{radius} 0 1 1 {2radius},0",this.containerAspectRatio=2,i.apply(this,arguments)};s.prototype=new i,s.prototype.constructor=s,s.prototype._initializeSvg=function(t,e){t.setAttribute("viewBox","0 0 100 50")},s.prototype._initializeTextContainer=function(t,e,n){t.text.style&&(n.style.top="auto",n.style.bottom="0",t.text.alignToBottom?o.setStyle(n,"transform","translate(-50%, 0)"):o.setStyle(n,"transform","translate(-50%, 50%)"))},s.prototype._pathString=r.prototype._pathString,s.prototype._trailString=r.prototype._trailString,e.exports=s},{"./circle":3,"./shape":8,"./utils":10}],8:[function(t,e,n){var i=t("./path"),r=t("./utils"),o="Object is destroyed",s=function t(e,n){if(!(this instanceof t))throw new Error("Constructor was called without new keyword");if(0!==arguments.length){this._opts=r.extend({color:"#555",strokeWidth:1,trailColor:null,trailWidth:null,fill:null,text:{style:{color:null,position:"absolute",left:"50%",top:"50%",padding:0,margin:0,transform:{prefix:!0,value:"translate(-50%, -50%)"}},autoStyleContainer:!0,alignToBottom:!0,value:null,className:"progressbar-text"},svgStyle:{display:"block",width:"100%"},warnings:!1},n,!0),r.isObject(n)&&void 0!==n.svgStyle&&(this._opts.svgStyle=n.svgStyle),r.isObject(n)&&r.isObject(n.text)&&void 0!==n.text.style&&(this._opts.text.style=n.text.style);var o,s=this._createSvgView(this._opts);if(!(o=r.isString(e)?document.querySelector(e):e))throw new Error("Container does not exist: "+e);this._container=o,this._container.appendChild(s.svg),this._opts.warnings&&this._warnContainerAspectRatio(this._container),this._opts.svgStyle&&r.setStyles(s.svg,this._opts.svgStyle),this.svg=s.svg,this.path=s.path,this.trail=s.trail,this.text=null;var a=r.extend({attachment:void 0,shape:this},this._opts);this._progressPath=new i(s.path,a),r.isObject(this._opts.text)&&null!==this._opts.text.value&&this.setText(this._opts.text.value)}};s.prototype.animate=function(t,e,n){if(null===this._progressPath)throw new Error(o);this._progressPath.animate(t,e,n)},s.prototype.stop=function(){if(null===this._progressPath)throw new Error(o);void 0!==this._progressPath&&this._progressPath.stop()},s.prototype.pause=function(){if(null===this._progressPath)throw new Error(o);void 0!==this._progressPath&&this._progressPath._tweenable&&this._progressPath._tweenable.pause()},s.prototype.resume=function(){if(null===this._progressPath)throw new Error(o);void 0!==this._progressPath&&this._progressPath._tweenable&&this._progressPath._tweenable.resume()},s.prototype.destroy=function(){if(null===this._progressPath)throw new Error(o);this.stop(),this.svg.parentNode.removeChild(this.svg),this.svg=null,this.path=null,this.trail=null,this._progressPath=null,null!==this.text&&(this.text.parentNode.removeChild(this.text),this.text=null)},s.prototype.set=function(t){if(null===this._progressPath)throw new Error(o);this._progressPath.set(t)},s.prototype.value=function(){if(null===this._progressPath)throw new Error(o);return void 0===this._progressPath?0:this._progressPath.value()},s.prototype.setText=function(t){if(null===this._progressPath)throw new Error(o);null===this.text&&(this.text=this._createTextContainer(this._opts,this._container),this._container.appendChild(this.text)),r.isObject(t)?(r.removeChildren(this.text),this.text.appendChild(t)):this.text.innerHTML=t},s.prototype._createSvgView=function(t){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");this._initializeSvg(e,t);var n=null;(t.trailColor||t.trailWidth)&&(n=this._createTrail(t),e.appendChild(n));var i=this._createPath(t);return e.appendChild(i),{svg:e,path:i,trail:n}},s.prototype._initializeSvg=function(t,e){t.setAttribute("viewBox","0 0 100 100")},s.prototype._createPath=function(t){var e=this._pathString(t);return this._createPathElement(e,t)},s.prototype._createTrail=function(t){var e=this._trailString(t),n=r.extend({},t);return n.trailColor||(n.trailColor="#eee"),n.trailWidth||(n.trailWidth=n.strokeWidth),n.color=n.trailColor,n.strokeWidth=n.trailWidth,n.fill=null,this._createPathElement(e,n)},s.prototype._createPathElement=function(t,e){var n=document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttribute("d",t),n.setAttribute("stroke",e.color),n.setAttribute("stroke-width",e.strokeWidth),e.fill?n.setAttribute("fill",e.fill):n.setAttribute("fill-opacity","0"),n},s.prototype._createTextContainer=function(t,e){var n=document.createElement("div");n.className=t.text.className;var i=t.text.style;return i&&(t.text.autoStyleContainer&&(e.style.position="relative"),r.setStyles(n,i),i.color||(n.style.color=t.color)),this._initializeTextContainer(t,e,n),n},s.prototype._initializeTextContainer=function(t,e,n){},s.prototype._pathString=function(t){throw new Error("Override this function for each progress bar")},s.prototype._trailString=function(t){throw new Error("Override this function for each progress bar")},s.prototype._warnContainerAspectRatio=function(t){if(this.containerAspectRatio){var e=window.getComputedStyle(t,null),n=parseFloat(e.getPropertyValue("width"),10),i=parseFloat(e.getPropertyValue("height"),10);r.floatEquals(this.containerAspectRatio,n/i)||(console.warn("Incorrect aspect ratio of container","#"+t.id,"detected:",e.getPropertyValue("width")+"(width)","/",e.getPropertyValue("height")+"(height)","=",n/i),console.warn("Aspect ratio of should be",this.containerAspectRatio))}},e.exports=s},{"./path":6,"./utils":10}],9:[function(t,e,n){var i=t("./shape"),r=t("./utils"),o=function(t,e){this._pathTemplate="M 0,{halfOfStrokeWidth} L {width},{halfOfStrokeWidth} L {width},{width} L {halfOfStrokeWidth},{width} L {halfOfStrokeWidth},{strokeWidth}",this._trailTemplate="M {startMargin},{halfOfStrokeWidth} L {width},{halfOfStrokeWidth} L {width},{width} L {halfOfStrokeWidth},{width} L {halfOfStrokeWidth},{halfOfStrokeWidth}",i.apply(this,arguments)};o.prototype=new i,o.prototype.constructor=o,o.prototype._pathString=function(t){var e=100-t.strokeWidth/2;return r.render(this._pathTemplate,{width:e,strokeWidth:t.strokeWidth,halfOfStrokeWidth:t.strokeWidth/2})},o.prototype._trailString=function(t){var e=100-t.strokeWidth/2;return r.render(this._trailTemplate,{width:e,strokeWidth:t.strokeWidth,halfOfStrokeWidth:t.strokeWidth/2,startMargin:t.strokeWidth/2-t.trailWidth/2})},e.exports=o},{"./shape":8,"./utils":10}],10:[function(t,e,n){var i=t("lodash.merge"),r="Webkit Moz O ms".split(" "),o=.001;function s(t,e){var n=t;for(var i in e)if(e.hasOwnProperty(i)){var r=e[i],o=new RegExp("\\{"+i+"\\}","g");n=n.replace(o,r)}return n}function a(t,e,n){for(var i=t.style,o=0;o=0),a.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,a.width?parseInt(a.width):0);break;case"e":n=a.precision?parseFloat(n).toExponential(a.precision):parseFloat(n).toExponential();break;case"f":n=a.precision?parseFloat(n).toFixed(a.precision):parseFloat(n);break;case"g":n=a.precision?String(Number(n.toPrecision(a.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=a.precision?n.substring(0,a.precision):n;break;case"t":n=String(!!n),n=a.precision?n.substring(0,a.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=a.precision?n.substring(0,a.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=a.precision?n.substring(0,a.precision):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase()}r.json.test(a.type)?m+=n:(!r.number.test(a.type)||d&&!a.sign?h="":(h=d?"+":"-",n=n.toString().replace(r.sign,"")),c=a.pad_char?"0"===a.pad_char?"0":a.pad_char.charAt(1):" ",u=a.width-(h+n).length,l=a.width&&u>0?c.repeat(u):"",m+=a.align?h+n+l:"0"===c?h+l+n:l+h+n)}return m}(function(t){if(a[t])return a[t];var e,n=t,i=[],o=0;for(;n;){if(null!==(e=r.text.exec(n)))i.push(e[0]);else if(null!==(e=r.modulo.exec(n)))i.push("%");else{if(null===(e=r.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(e[2]){o|=1;var s=[],l=e[2],c=[];if(null===(c=r.key.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(s.push(c[1]);""!==(l=l.substring(c[0].length));)if(null!==(c=r.key_access.exec(l)))s.push(c[1]);else{if(null===(c=r.index_access.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");s.push(c[1])}e[2]=s}else o|=2;if(3===o)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");i.push({placeholder:e[0],param_no:e[1],keys:e[2],sign:e[3],pad_char:e[4],align:e[5],width:e[6],precision:e[7],type:e[8]})}n=n.substring(e[0].length)}return a[t]=i}(t),arguments)}function s(t,e){return o.apply(null,[t].concat(e||[]))}var a=Object.create(null);e.sprintf=o,e.vsprintf=s,"undefined"!=typeof window&&(window.sprintf=o,window.vsprintf=s,void 0===(i=function(){return{sprintf:o,vsprintf:s}}.call(e,n,e,t))||(t.exports=i))}()},"./node_modules/tannin/index.js":function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return o}});var i=n("./node_modules/@tannin/plural-forms/index.js"),r={contextDelimiter:"",onMissingKey:null};function o(t,e){var n;for(n in this.data=t,this.pluralForms={},this.options={},r)this.options[n]=void 0!==e&&n in e?e[n]:r[n]}o.prototype.getPluralForm=function(t,e){var n,r,o,s=this.pluralForms[t];return s||("function"!=typeof(o=(n=this.data[t][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(r=function(t){var e,n,i;for(e=t.split(";"),n=0;n',s="tippy-content",a="tippy-backdrop",l="tippy-arrow",c="tippy-svg-arrow",u={passive:!0,capture:!0},d=function(){return document.body};function h(t,e,n){if(Array.isArray(t)){var i=t[e];return null==i?Array.isArray(n)?n[e]:n:i}return t}function f(t,e){var n={}.toString.call(t);return 0===n.indexOf("[object")&&n.indexOf(e+"]")>-1}function p(t,e){return"function"==typeof t?t.apply(void 0,e):t}function m(t,e){return 0===e?t:function(i){clearTimeout(n),n=setTimeout((function(){t(i)}),e)};var n}function g(t,e){var n=Object.assign({},t);return e.forEach((function(t){delete n[t]})),n}function b(t){return[].concat(t)}function v(t,e){-1===t.indexOf(e)&&t.push(e)}function y(t){return t.split("-")[0]}function _(t){return[].slice.call(t)}function x(t){return Object.keys(t).reduce((function(e,n){return void 0!==t[n]&&(e[n]=t[n]),e}),{})}function w(){return document.createElement("div")}function j(t){return["Element","Fragment"].some((function(e){return f(t,e)}))}function k(t){return f(t,"MouseEvent")}function O(t){return!(!t||!t._tippy||t._tippy.reference!==t)}function S(t){return j(t)?[t]:function(t){return f(t,"NodeList")}(t)?_(t):Array.isArray(t)?t:_(document.querySelectorAll(t))}function E(t,e){t.forEach((function(t){t&&(t.style.transitionDuration=e+"ms")}))}function M(t,e){t.forEach((function(t){t&&t.setAttribute("data-state",e)}))}function P(t){var e,n=b(t)[0];return null!=n&&null!=(e=n.ownerDocument)&&e.body?n.ownerDocument:document}function T(t,e,n){var i=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(e){t[i](e,n)}))}function C(t,e){for(var n=e;n;){var i;if(t.contains(n))return!0;n=null==n.getRootNode||null==(i=n.getRootNode())?void 0:i.host}return!1}var A={isTouch:!1},L=0;function D(){A.isTouch||(A.isTouch=!0,window.performance&&document.addEventListener("mousemove",I))}function I(){var t=performance.now();t-L<20&&(A.isTouch=!1,document.removeEventListener("mousemove",I)),L=t}function R(){var t=document.activeElement;if(O(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}var F,z=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;function N(t){return[t+"() was called on a"+("destroy"===t?"n already-":" ")+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function B(t){return t.replace(/[ \t]{2,}/g," ").replace(/^[ \t]*/gm,"").trim()}function W(t){return B("\n %ctippy.js\n\n %c"+B(t)+"\n\n %c👷‍ This is a development-only message. It will be removed in production.\n ")}function H(t){return[W(t),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}function V(t,e){var n;t&&!F.has(e)&&(F.add(e),(n=console).warn.apply(n,H(e)))}function q(t,e){var n;t&&!F.has(e)&&(F.add(e),(n=console).error.apply(n,H(e)))}F=new Set;var $={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},U=Object.assign({appendTo:d,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},$,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Y=Object.keys(U);function Q(t){var e=(t.plugins||[]).reduce((function(e,n){var i,r=n.name,o=n.defaultValue;r&&(e[r]=void 0!==t[r]?t[r]:null!=(i=U[r])?i:o);return e}),{});return Object.assign({},t,e)}function X(t,e){var n=Object.assign({},e,{content:p(e.content,[t])},e.ignoreAttributes?{}:function(t,e){return(e?Object.keys(Q(Object.assign({},U,{plugins:e}))):Y).reduce((function(e,n){var i=(t.getAttribute("data-tippy-"+n)||"").trim();if(!i)return e;if("content"===n)e[n]=i;else try{e[n]=JSON.parse(i)}catch(t){e[n]=i}return e}),{})}(t,e.plugins));return n.aria=Object.assign({},U.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?e.interactive:n.aria.expanded,content:"auto"===n.aria.content?e.interactive?null:"describedby":n.aria.content},n}function G(t,e){void 0===t&&(t={}),void 0===e&&(e=[]),Object.keys(t).forEach((function(t){var n,i,r=g(U,Object.keys($)),o=(n=r,i=t,!{}.hasOwnProperty.call(n,i));o&&(o=0===e.filter((function(e){return e.name===t})).length),V(o,["`"+t+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.","\n\n","All props: https://atomiks.github.io/tippyjs/v6/all-props/\n","Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))}))}var K=function(){return"innerHTML"};function J(t,e){t[K()]=e}function Z(t){var e=w();return!0===t?e.className=l:(e.className=c,j(t)?e.appendChild(t):J(e,t)),e}function tt(t,e){j(e.content)?(J(t,""),t.appendChild(e.content)):"function"!=typeof e.content&&(e.allowHTML?J(t,e.content):t.textContent=e.content)}function et(t){var e=t.firstElementChild,n=_(e.children);return{box:e,content:n.find((function(t){return t.classList.contains(s)})),arrow:n.find((function(t){return t.classList.contains(l)||t.classList.contains(c)})),backdrop:n.find((function(t){return t.classList.contains(a)}))}}function nt(t){var e=w(),n=w();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var i=w();function r(n,i){var r=et(e),o=r.box,s=r.content,a=r.arrow;i.theme?o.setAttribute("data-theme",i.theme):o.removeAttribute("data-theme"),"string"==typeof i.animation?o.setAttribute("data-animation",i.animation):o.removeAttribute("data-animation"),i.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof i.maxWidth?i.maxWidth+"px":i.maxWidth,i.role?o.setAttribute("role",i.role):o.removeAttribute("role"),n.content===i.content&&n.allowHTML===i.allowHTML||tt(s,t.props),i.arrow?a?n.arrow!==i.arrow&&(o.removeChild(a),o.appendChild(Z(i.arrow))):o.appendChild(Z(i.arrow)):a&&o.removeChild(a)}return i.className=s,i.setAttribute("data-state","hidden"),tt(i,t.props),e.appendChild(n),n.appendChild(i),r(t.props,t.props),{popper:e,onUpdate:r}}nt.$$tippy=!0;var it=1,rt=[],ot=[];function st(t,e){var n,r,o,s,a,l,c,f,g=X(t,Object.assign({},U,Q(x(e)))),j=!1,O=!1,S=!1,L=!1,D=[],I=m(jt,g.interactiveDebounce),R=it++,F=(f=g.plugins).filter((function(t,e){return f.indexOf(t)===e})),B={id:R,reference:t,popper:w(),popperInstance:null,props:g,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:F,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(o)},setProps:function(e){V(B.state.isDestroyed,N("setProps"));if(B.state.isDestroyed)return;ct("onBeforeUpdate",[B,e]),xt();var n=B.props,i=X(t,Object.assign({},n,x(e),{ignoreAttributes:!0}));B.props=i,_t(),n.interactiveDebounce!==i.interactiveDebounce&&(ht(),I=m(jt,i.interactiveDebounce));n.triggerTarget&&!i.triggerTarget?b(n.triggerTarget).forEach((function(t){t.removeAttribute("aria-expanded")})):i.triggerTarget&&t.removeAttribute("aria-expanded");dt(),lt(),$&&$(n,i);B.popperInstance&&(Et(),Pt().forEach((function(t){requestAnimationFrame(t._tippy.popperInstance.forceUpdate)})));ct("onAfterUpdate",[B,e])},setContent:function(t){B.setProps({content:t})},show:function(){V(B.state.isDestroyed,N("show"));var t=B.state.isVisible,e=B.state.isDestroyed,n=!B.state.isEnabled,i=A.isTouch&&!B.props.touch,r=h(B.props.duration,0,U.duration);if(t||e||n||i)return;if(tt().hasAttribute("disabled"))return;if(ct("onShow",[B],!1),!1===B.props.onShow(B))return;B.state.isVisible=!0,Z()&&(H.style.visibility="visible");lt(),gt(),B.state.isMounted||(H.style.transition="none");if(Z()){var o=st();E([o.box,o.content],0)}l=function(){var t;if(B.state.isVisible&&!L){if(L=!0,H.offsetHeight,H.style.transition=B.props.moveTransition,Z()&&B.props.animation){var e=st(),n=e.box,i=e.content;E([n,i],r),M([n,i],"visible")}ut(),dt(),v(ot,B),null==(t=B.popperInstance)||t.forceUpdate(),ct("onMount",[B]),B.props.animation&&Z()&&function(t,e){vt(t,e)}(r,(function(){B.state.isShown=!0,ct("onShown",[B])}))}},function(){var t,e=B.props.appendTo,n=tt();t=B.props.interactive&&e===d||"parent"===e?n.parentNode:p(e,[n]);t.contains(H)||t.appendChild(H);B.state.isMounted=!0,Et(),V(B.props.interactive&&e===U.appendTo&&n.nextElementSibling!==H,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.","\n\n","Using a wrapper
or tag around the reference element","solves this by creating a new parentNode context.","\n\n","Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.","\n\n","See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}()},hide:function(){V(B.state.isDestroyed,N("hide"));var t=!B.state.isVisible,e=B.state.isDestroyed,n=!B.state.isEnabled,i=h(B.props.duration,1,U.duration);if(t||e||n)return;if(ct("onHide",[B],!1),!1===B.props.onHide(B))return;B.state.isVisible=!1,B.state.isShown=!1,L=!1,j=!1,Z()&&(H.style.visibility="hidden");if(ht(),bt(),lt(!0),Z()){var r=st(),o=r.box,s=r.content;B.props.animation&&(E([o,s],i),M([o,s],"hidden"))}ut(),dt(),B.props.animation?Z()&&function(t,e){vt(t,(function(){!B.state.isVisible&&H.parentNode&&H.parentNode.contains(H)&&e()}))}(i,B.unmount):B.unmount()},hideWithInteractivity:function(t){V(B.state.isDestroyed,N("hideWithInteractivity"));nt().addEventListener("mousemove",I),v(rt,I),I(t)},enable:function(){B.state.isEnabled=!0},disable:function(){B.hide(),B.state.isEnabled=!1},unmount:function(){V(B.state.isDestroyed,N("unmount"));B.state.isVisible&&B.hide();if(!B.state.isMounted)return;Mt(),Pt().forEach((function(t){t._tippy.unmount()})),H.parentNode&&H.parentNode.removeChild(H);ot=ot.filter((function(t){return t!==B})),B.state.isMounted=!1,ct("onHidden",[B])},destroy:function(){V(B.state.isDestroyed,N("destroy"));if(B.state.isDestroyed)return;B.clearDelayTimeouts(),B.unmount(),xt(),delete t._tippy,B.state.isDestroyed=!0,ct("onDestroy",[B])}};if(!g.render)return q(!0,"render() function has not been supplied."),B;var W=g.render(B),H=W.popper,$=W.onUpdate;H.setAttribute("data-tippy-root",""),H.id="tippy-"+B.id,B.popper=H,t._tippy=B,H._tippy=B;var Y=F.map((function(t){return t.fn(B)})),G=t.hasAttribute("aria-expanded");return _t(),dt(),lt(),ct("onCreate",[B]),g.showOnCreate&&Tt(),H.addEventListener("mouseenter",(function(){B.props.interactive&&B.state.isVisible&&B.clearDelayTimeouts()})),H.addEventListener("mouseleave",(function(){B.props.interactive&&B.props.trigger.indexOf("mouseenter")>=0&&nt().addEventListener("mousemove",I)})),B;function K(){var t=B.props.touch;return Array.isArray(t)?t:[t,0]}function J(){return"hold"===K()[0]}function Z(){var t;return!(null==(t=B.props.render)||!t.$$tippy)}function tt(){return c||t}function nt(){var t=tt().parentNode;return t?P(t):document}function st(){return et(H)}function at(t){return B.state.isMounted&&!B.state.isVisible||A.isTouch||s&&"focus"===s.type?0:h(B.props.delay,t?0:1,U.delay)}function lt(t){void 0===t&&(t=!1),H.style.pointerEvents=B.props.interactive&&!t?"":"none",H.style.zIndex=""+B.props.zIndex}function ct(t,e,n){var i;(void 0===n&&(n=!0),Y.forEach((function(n){n[t]&&n[t].apply(n,e)})),n)&&(i=B.props)[t].apply(i,e)}function ut(){var e=B.props.aria;if(e.content){var n="aria-"+e.content,i=H.id;b(B.props.triggerTarget||t).forEach((function(t){var e=t.getAttribute(n);if(B.state.isVisible)t.setAttribute(n,e?e+" "+i:i);else{var r=e&&e.replace(i,"").trim();r?t.setAttribute(n,r):t.removeAttribute(n)}}))}}function dt(){!G&&B.props.aria.expanded&&b(B.props.triggerTarget||t).forEach((function(t){B.props.interactive?t.setAttribute("aria-expanded",B.state.isVisible&&t===tt()?"true":"false"):t.removeAttribute("aria-expanded")}))}function ht(){nt().removeEventListener("mousemove",I),rt=rt.filter((function(t){return t!==I}))}function ft(e){if(!A.isTouch||!S&&"mousedown"!==e.type){var n=e.composedPath&&e.composedPath()[0]||e.target;if(!B.props.interactive||!C(H,n)){if(b(B.props.triggerTarget||t).some((function(t){return C(t,n)}))){if(A.isTouch)return;if(B.state.isVisible&&B.props.trigger.indexOf("click")>=0)return}else ct("onClickOutside",[B,e]);!0===B.props.hideOnClick&&(B.clearDelayTimeouts(),B.hide(),O=!0,setTimeout((function(){O=!1})),B.state.isMounted||bt())}}}function pt(){S=!0}function mt(){S=!1}function gt(){var t=nt();t.addEventListener("mousedown",ft,!0),t.addEventListener("touchend",ft,u),t.addEventListener("touchstart",mt,u),t.addEventListener("touchmove",pt,u)}function bt(){var t=nt();t.removeEventListener("mousedown",ft,!0),t.removeEventListener("touchend",ft,u),t.removeEventListener("touchstart",mt,u),t.removeEventListener("touchmove",pt,u)}function vt(t,e){var n=st().box;function i(t){t.target===n&&(T(n,"remove",i),e())}if(0===t)return e();T(n,"remove",a),T(n,"add",i),a=i}function yt(e,n,i){void 0===i&&(i=!1),b(B.props.triggerTarget||t).forEach((function(t){t.addEventListener(e,n,i),D.push({node:t,eventType:e,handler:n,options:i})}))}function _t(){var t;J()&&(yt("touchstart",wt,{passive:!0}),yt("touchend",kt,{passive:!0})),(t=B.props.trigger,t.split(/\s+/).filter(Boolean)).forEach((function(t){if("manual"!==t)switch(yt(t,wt),t){case"mouseenter":yt("mouseleave",kt);break;case"focus":yt(z?"focusout":"blur",Ot);break;case"focusin":yt("focusout",Ot)}}))}function xt(){D.forEach((function(t){var e=t.node,n=t.eventType,i=t.handler,r=t.options;e.removeEventListener(n,i,r)})),D=[]}function wt(t){var e,n=!1;if(B.state.isEnabled&&!St(t)&&!O){var i="focus"===(null==(e=s)?void 0:e.type);s=t,c=t.currentTarget,dt(),!B.state.isVisible&&k(t)&&rt.forEach((function(e){return e(t)})),"click"===t.type&&(B.props.trigger.indexOf("mouseenter")<0||j)&&!1!==B.props.hideOnClick&&B.state.isVisible?n=!0:Tt(t),"click"===t.type&&(j=!n),n&&!i&&Ct(t)}}function jt(t){var e=t.target,n=tt().contains(e)||H.contains(e);if("mousemove"!==t.type||!n){var i=Pt().concat(H).map((function(t){var e,n=null==(e=t._tippy.popperInstance)?void 0:e.state;return n?{popperRect:t.getBoundingClientRect(),popperState:n,props:g}:null})).filter(Boolean);(function(t,e){var n=e.clientX,i=e.clientY;return t.every((function(t){var e=t.popperRect,r=t.popperState,o=t.props.interactiveBorder,s=y(r.placement),a=r.modifiersData.offset;if(!a)return!0;var l="bottom"===s?a.top.y:0,c="top"===s?a.bottom.y:0,u="right"===s?a.left.x:0,d="left"===s?a.right.x:0,h=e.top-i+l>o,f=i-e.bottom-c>o,p=e.left-n+u>o,m=n-e.right-d>o;return h||f||p||m}))})(i,t)&&(ht(),Ct(t))}}function kt(t){St(t)||B.props.trigger.indexOf("click")>=0&&j||(B.props.interactive?B.hideWithInteractivity(t):Ct(t))}function Ot(t){B.props.trigger.indexOf("focusin")<0&&t.target!==tt()||B.props.interactive&&t.relatedTarget&&H.contains(t.relatedTarget)||Ct(t)}function St(t){return!!A.isTouch&&J()!==t.type.indexOf("touch")>=0}function Et(){Mt();var e=B.props,n=e.popperOptions,r=e.placement,o=e.offset,s=e.getReferenceClientRect,a=e.moveTransition,c=Z()?et(H).arrow:null,u=s?{getBoundingClientRect:s,contextElement:s.contextElement||tt()}:t,d={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var e=t.state;if(Z()){var n=st().box;["placement","reference-hidden","escaped"].forEach((function(t){"placement"===t?n.setAttribute("data-placement",e.placement):e.attributes.popper["data-popper-"+t]?n.setAttribute("data-"+t,""):n.removeAttribute("data-"+t)})),e.attributes.popper={}}}},h=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},d];Z()&&c&&h.push({name:"arrow",options:{element:c,padding:3}}),h.push.apply(h,(null==n?void 0:n.modifiers)||[]),B.popperInstance=(0,i.createPopper)(u,H,Object.assign({},n,{placement:r,onFirstUpdate:l,modifiers:h}))}function Mt(){B.popperInstance&&(B.popperInstance.destroy(),B.popperInstance=null)}function Pt(){return _(H.querySelectorAll("[data-tippy-root]"))}function Tt(t){B.clearDelayTimeouts(),t&&ct("onTrigger",[B,t]),gt();var e=at(!0),i=K(),r=i[0],o=i[1];A.isTouch&&"hold"===r&&o&&(e=o),e?n=setTimeout((function(){B.show()}),e):B.show()}function Ct(t){if(B.clearDelayTimeouts(),ct("onUntrigger",[B,t]),B.state.isVisible){if(!(B.props.trigger.indexOf("mouseenter")>=0&&B.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(t.type)>=0&&j)){var e=at(!1);e?r=setTimeout((function(){B.state.isVisible&&B.hide()}),e):o=requestAnimationFrame((function(){B.hide()}))}}else bt()}}function at(t,e){void 0===e&&(e={});var n=U.plugins.concat(e.plugins||[]);!function(t){var e=!t,n="[object Object]"===Object.prototype.toString.call(t)&&!t.addEventListener;q(e,["tippy() was passed","`"+String(t)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),q(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}(t),G(e,n),document.addEventListener("touchstart",D,u),window.addEventListener("blur",R);var i=Object.assign({},e,{plugins:n}),r=S(t),o=j(i.content),s=r.length>1;V(o&&s,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.","\n\n","Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.","\n\n","1) content: element.innerHTML\n","2) content: () => element.cloneNode(true)"].join(" "));var a=r.reduce((function(t,e){var n=e&&st(e,i);return n&&t.push(n),t}),[]);return j(t)?a[0]:a}at.defaultProps=U,at.setDefaultProps=function(t){G(t,[]),Object.keys(t).forEach((function(e){U[e]=t[e]}))},at.currentInput=A;var lt=function(t){var e=void 0===t?{}:t,n=e.exclude,i=e.duration;ot.forEach((function(t){var e=!1;if(n&&(e=O(n)?t.reference===n:t.popper===n.popper),!e){var r=t.props.duration;t.setProps({duration:i}),t.hide(),t.state.isDestroyed||t.setProps({duration:r})}}))},ct=Object.assign({},r.default,{effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow)}}),ut=function(t,e){var n;void 0===e&&(e={}),q(!Array.isArray(t),["The first argument passed to createSingleton() must be an array of","tippy instances. The passed value was",String(t)].join(" "));var i,r=t,o=[],s=[],a=e.overrides,l=[],c=!1;function u(){s=r.map((function(t){return b(t.props.triggerTarget||t.reference)})).reduce((function(t,e){return t.concat(e)}),[])}function d(){o=r.map((function(t){return t.reference}))}function h(t){r.forEach((function(e){t?e.enable():e.disable()}))}function f(t){return r.map((function(e){var n=e.setProps;return e.setProps=function(r){n(r),e.reference===i&&t.setProps(r)},function(){e.setProps=n}}))}function p(t,e){var n=s.indexOf(e);if(e!==i){i=e;var l=(a||[]).concat("content").reduce((function(t,e){return t[e]=r[n].props[e],t}),{});t.setProps(Object.assign({},l,{getReferenceClientRect:"function"==typeof l.getReferenceClientRect?l.getReferenceClientRect:function(){var t;return null==(t=o[n])?void 0:t.getBoundingClientRect()}}))}}h(!1),d(),u();var m={fn:function(){return{onDestroy:function(){h(!0)},onHidden:function(){i=null},onClickOutside:function(t){t.props.showOnCreate&&!c&&(c=!0,i=null)},onShow:function(t){t.props.showOnCreate&&!c&&(c=!0,p(t,o[0]))},onTrigger:function(t,e){p(t,e.currentTarget)}}}},v=at(w(),Object.assign({},g(e,["overrides"]),{plugins:[m].concat(e.plugins||[]),triggerTarget:s,popperOptions:Object.assign({},e.popperOptions,{modifiers:[].concat((null==(n=e.popperOptions)?void 0:n.modifiers)||[],[ct])})})),y=v.show;v.show=function(t){if(y(),!i&&null==t)return p(v,o[0]);if(!i||null!=t){if("number"==typeof t)return o[t]&&p(v,o[t]);if(r.indexOf(t)>=0){var e=t.reference;return p(v,e)}return o.indexOf(t)>=0?p(v,t):void 0}},v.showNext=function(){var t=o[0];if(!i)return v.show(0);var e=o.indexOf(i);v.show(o[e+1]||t)},v.showPrevious=function(){var t=o[o.length-1];if(!i)return v.show(t);var e=o.indexOf(i),n=o[e-1]||t;v.show(n)};var _=v.setProps;return v.setProps=function(t){a=t.overrides||a,_(t)},v.setInstances=function(t){h(!0),l.forEach((function(t){return t()})),r=t,h(!1),d(),u(),l=f(v),v.setProps({triggerTarget:s})},l=f(v),v},dt={mouseover:"mouseenter",focusin:"focus",click:"click"};function ht(t,e){q(!(e&&e.target),["You must specity a `target` prop indicating a CSS selector string matching","the target elements that should receive a tippy."].join(" "));var n=[],i=[],r=!1,o=e.target,s=g(e,["target"]),a=Object.assign({},s,{trigger:"manual",touch:!1}),l=Object.assign({touch:U.touch},s,{showOnCreate:!0}),c=at(t,a);function d(t){if(t.target&&!r){var n=t.target.closest(o);if(n){var s=n.getAttribute("data-tippy-trigger")||e.trigger||U.trigger;if(!n._tippy&&!("touchstart"===t.type&&"boolean"==typeof l.touch||"touchstart"!==t.type&&s.indexOf(dt[t.type])<0)){var a=at(n,l);a&&(i=i.concat(a))}}}}function h(t,e,i,r){void 0===r&&(r=!1),t.addEventListener(e,i,r),n.push({node:t,eventType:e,handler:i,options:r})}return b(c).forEach((function(t){var e=t.destroy,o=t.enable,s=t.disable;t.destroy=function(t){void 0===t&&(t=!0),t&&i.forEach((function(t){t.destroy()})),i=[],n.forEach((function(t){var e=t.node,n=t.eventType,i=t.handler,r=t.options;e.removeEventListener(n,i,r)})),n=[],e()},t.enable=function(){o(),i.forEach((function(t){return t.enable()})),r=!1},t.disable=function(){s(),i.forEach((function(t){return t.disable()})),r=!0},function(t){var e=t.reference;h(e,"touchstart",d,u),h(e,"mouseover",d),h(e,"focusin",d),h(e,"click",d)}(t)})),c}var ft={name:"animateFill",defaultValue:!1,fn:function(t){var e;if(null==(e=t.props.render)||!e.$$tippy)return q(t.props.animateFill,"The `animateFill` plugin requires the default render function."),{};var n=et(t.popper),i=n.box,r=n.content,o=t.props.animateFill?function(){var t=w();return t.className=a,M([t],"hidden"),t}():null;return{onCreate:function(){o&&(i.insertBefore(o,i.firstElementChild),i.setAttribute("data-animatefill",""),i.style.overflow="hidden",t.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(o){var t=i.style.transitionDuration,e=Number(t.replace("ms",""));r.style.transitionDelay=Math.round(e/10)+"ms",o.style.transitionDuration=t,M([o],"visible")}},onShow:function(){o&&(o.style.transitionDuration="0ms")},onHide:function(){o&&M([o],"hidden")}}}};var pt={clientX:0,clientY:0},mt=[];function gt(t){var e=t.clientX,n=t.clientY;pt={clientX:e,clientY:n}}var bt={name:"followCursor",defaultValue:!1,fn:function(t){var e=t.reference,n=P(t.props.triggerTarget||e),i=!1,r=!1,o=!0,s=t.props;function a(){return"initial"===t.props.followCursor&&t.state.isVisible}function l(){n.addEventListener("mousemove",d)}function c(){n.removeEventListener("mousemove",d)}function u(){i=!0,t.setProps({getReferenceClientRect:null}),i=!1}function d(n){var i=!n.target||e.contains(n.target),r=t.props.followCursor,o=n.clientX,s=n.clientY,a=e.getBoundingClientRect(),l=o-a.left,c=s-a.top;!i&&t.props.interactive||t.setProps({getReferenceClientRect:function(){var t=e.getBoundingClientRect(),n=o,i=s;"initial"===r&&(n=t.left+l,i=t.top+c);var a="horizontal"===r?t.top:i,u="vertical"===r?t.right:n,d="horizontal"===r?t.bottom:i,h="vertical"===r?t.left:n;return{width:u-h,height:d-a,top:a,right:u,bottom:d,left:h}}})}function h(){t.props.followCursor&&(mt.push({instance:t,doc:n}),function(t){t.addEventListener("mousemove",gt)}(n))}function f(){0===(mt=mt.filter((function(e){return e.instance!==t}))).filter((function(t){return t.doc===n})).length&&function(t){t.removeEventListener("mousemove",gt)}(n)}return{onCreate:h,onDestroy:f,onBeforeUpdate:function(){s=t.props},onAfterUpdate:function(e,n){var o=n.followCursor;i||void 0!==o&&s.followCursor!==o&&(f(),o?(h(),!t.state.isMounted||r||a()||l()):(c(),u()))},onMount:function(){t.props.followCursor&&!r&&(o&&(d(pt),o=!1),a()||l())},onTrigger:function(t,e){k(e)&&(pt={clientX:e.clientX,clientY:e.clientY}),r="focus"===e.type},onHidden:function(){t.props.followCursor&&(u(),c(),o=!0)}}}};var vt={name:"inlinePositioning",defaultValue:!1,fn:function(t){var e,n=t.reference;var i=-1,r=!1,o=[],s={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(r){var s=r.state;t.props.inlinePositioning&&(-1!==o.indexOf(s.placement)&&(o=[]),e!==s.placement&&-1===o.indexOf(s.placement)&&(o.push(s.placement),t.setProps({getReferenceClientRect:function(){return function(t){return function(t,e,n,i){if(n.length<2||null===t)return e;if(2===n.length&&i>=0&&n[0].left>n[1].right)return n[i]||e;switch(t){case"top":case"bottom":var r=n[0],o=n[n.length-1],s="top"===t,a=r.top,l=o.bottom,c=s?r.left:o.left,u=s?r.right:o.right;return{top:a,bottom:l,left:c,right:u,width:u-c,height:l-a};case"left":case"right":var d=Math.min.apply(Math,n.map((function(t){return t.left}))),h=Math.max.apply(Math,n.map((function(t){return t.right}))),f=n.filter((function(e){return"left"===t?e.left===d:e.right===h})),p=f[0].top,m=f[f.length-1].bottom;return{top:p,bottom:m,left:d,right:h,width:h-d,height:m-p};default:return e}}(y(t),n.getBoundingClientRect(),_(n.getClientRects()),i)}(s.placement)}})),e=s.placement)}};function a(){var e;r||(e=function(t,e){var n;return{popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat(((null==(n=t.popperOptions)?void 0:n.modifiers)||[]).filter((function(t){return t.name!==e.name})),[e])})}}(t.props,s),r=!0,t.setProps(e),r=!1)}return{onCreate:a,onAfterUpdate:a,onTrigger:function(e,n){if(k(n)){var r=_(t.reference.getClientRects()),o=r.find((function(t){return t.left-2<=n.clientX&&t.right+2>=n.clientX&&t.top-2<=n.clientY&&t.bottom+2>=n.clientY})),s=r.indexOf(o);i=s>-1?s:i}},onHidden:function(){i=-1}}}};var yt={name:"sticky",defaultValue:!1,fn:function(t){var e=t.reference,n=t.popper;function i(e){return!0===t.props.sticky||t.props.sticky===e}var r=null,o=null;function s(){var a=i("reference")?(t.popperInstance?t.popperInstance.state.elements.reference:e).getBoundingClientRect():null,l=i("popper")?n.getBoundingClientRect():null;(a&&_t(r,a)||l&&_t(o,l))&&t.popperInstance&&t.popperInstance.update(),r=a,o=l,t.state.isMounted&&requestAnimationFrame(s)}return{onMount:function(){t.props.sticky&&s()}}}};function _t(t,e){return!t||!e||(t.top!==e.top||t.right!==e.right||t.bottom!==e.bottom||t.left!==e.left)}at.setDefaultProps({render:nt}),e.default=at},"./src/js/components/crops-sizes.js":function(t,e,n){"use strict";n.r(e);n("./node_modules/@wordpress/i18n/build-module/index.js");const i={wrappers:null,frame:null,error:'data:image/svg+xml;utf8,%26%23x26A0%3B︎',init(t){this.wrappers=t.querySelectorAll(".cld-size-items"),this.wrappers.forEach((t=>{const e=t.querySelectorAll(".cld-image-selector-item");e.forEach((n=>{n.addEventListener("click",(()=>{e.forEach((t=>{delete t.dataset.selected})),n.dataset.selected=!0,this.buildImages(t)}))})),this.buildImages(t)}))},buildImages(t){const e=t.dataset.base,n=t.querySelectorAll("img"),i=t.querySelector(".cld-image-selector-item[data-selected]").dataset.image;let r=null;n.forEach((n=>{const o=n.dataset.size,s=n.parentNode.querySelector(".regular-text"),a=n.parentNode.querySelector(".disable-toggle"),l=s.value.length?s.value.replace(" ",""):s.placeholder;a.checked?(s.disabled=!0,n.src=`${e}/${o}/${i}`):(s.disabled=!1,n.src=`${e}/${o},${l}/${i}`),n.bound||(s.addEventListener("input",(()=>{r&&clearTimeout(r),r=setTimeout((()=>{this.buildImages(t)}),1e3)})),a.addEventListener("change",(()=>{this.buildImages(t)})),n.addEventListener("error",(()=>{n.src=this.error})),n.bound=!0)}))}};e.default=i},"./src/js/components/extensions.js":function(t,e,n){"use strict";n.r(e);n("./node_modules/@wordpress/i18n/build-module/index.js");var i=n("./node_modules/@wordpress/api-fetch/build-module/index.js");n("./src/js/components/onoff.js");const r={pageReloader:document.getElementById("page-reloader"),init(){if(!cldData.extensions)return;i.default.use(i.default.createNonceMiddleware(cldData.extensions.nonce));[...document.querySelectorAll("[data-extension]")].forEach((t=>{t.addEventListener("change",(e=>{t.spinner||(t.spinner=this.createSpinner(),t.parentNode.appendChild(t.spinner)),t.debounce&&clearTimeout(t.debounce),t.debounce=setTimeout((()=>{this.toggleExtension(t),t.debounce=null}),1e3)}))}))},toggleExtension(t){const e=t.dataset.extension,n=t.checked;(0,i.default)({path:cldData.extensions.url,data:{extension:e,enabled:n},method:"POST"}).then((e=>{t.spinner&&(t.parentNode.removeChild(t.spinner),delete t.spinner),Object.keys(e).forEach((t=>{document.querySelectorAll(`[data-text="${t}"]`).forEach((n=>{n.innerText=e[t]}))})),this.pageReloader.style.display="block"}))},createSpinner(){const t=document.createElement("span");return t.classList.add("spinner"),t.classList.add("cld-extension-spinner"),t}};window.addEventListener("load",(()=>r.init())),e.default=r},"./src/js/components/global-transformations.js":function(t,e,n){"use strict";n.r(e);const i={sample:{image:document.getElementById("transformation-sample-image"),video:document.getElementById("transformation-sample-video")},preview:{image:document.getElementById("sample-image"),video:document.getElementById("sample-video")},fields:document.getElementsByClassName("cld-ui-input"),button:{image:document.getElementById("refresh-image-preview"),video:document.getElementById("refresh-video-preview")},spinner:{image:document.getElementById("image-loader"),video:document.getElementById("video-loader")},optimization:{image:document.getElementById("image_settings.image_optimization"),video:document.getElementById("video_settings.video_optimization")},error_container:document.getElementById("cld-preview-error"),activeItem:null,elements:{image:[],video:[]},_placeItem(t){null!==t&&(t.style.display="block",t.style.visibility="visible",t.style.position="absolute",t.style.top=t.parentElement.clientHeight/2-t.clientHeight/2+"px",t.style.left=t.parentElement.clientWidth/2-t.clientWidth/2+"px")},_setLoading(t){this.sample[t]&&(this.button[t].style.display="block",this._placeItem(this.button[t]),this.preview[t].style.opacity="0.1")},_build(t){if(!this.sample[t])return;this.sample[t].innerHTML="",this.elements[t]=[];for(const e of this.fields){if(t!==e.dataset.context||e.dataset.disabled&&"true"===e.dataset.disabled)continue;let n=e.value.trim();if(n.length){if("select-one"===e.type){if("none"===n||!1===this.optimization[t].checked)continue;n=e.dataset.meta+"_"+n}else t=e.dataset.context,e.dataset.meta&&(n=e.dataset.meta+"_"+n),e.dataset.suffix&&(n+=e.dataset.suffix),n=this._transformations(n,t,!0);n&&this.elements[t].push(n)}}let e="";this.elements[t].length&&(e="/"+this._getGlobalTransformationElements(t).replace(/ /g,"%20")),this.sample[t].textContent=e,this.sample[t].parentElement.href="https://res.cloudinary.com/demo/"+this.sample[t].parentElement.innerText.trim().replace("../","").replace(/ /g,"%20")},_clearLoading(t){this.spinner[t].style.visibility="hidden",this.activeItem=null,this.preview[t].style.opacity=1},_refresh(t,e){if(t&&t.preventDefault(),!this.sample[e])return;const n=this,i=CLD_GLOBAL_TRANSFORMATIONS[e].preview_url+this._getGlobalTransformationElements(e)+CLD_GLOBAL_TRANSFORMATIONS[e].file;if(this.button[e].style.display="none",this._placeItem(this.spinner[e]),"image"===e){const t=new Image;t.onload=function(){n.preview[e].src=this.src,n._clearLoading(e),n.error_container&&(n.error_container.style.display="none"),t.remove()},t.onerror=function(){const t=n.elements[e].includes("f_mp4");n.error_container&&(n.error_container.style.display="block",t?(n.error_container.innerHTML=CLD_GLOBAL_TRANSFORMATIONS[e].warning.replace("%s","f_mp4"),n.error_container.classList.replace("settings-alert-error","settings-alert-warning")):(n.error_container.innerHTML=CLD_GLOBAL_TRANSFORMATIONS[e].error,n.error_container.classList.replace("settings-alert-warning","settings-alert-error"))),n._clearLoading(e)},t.src=i}else{const t=n._transformations(n._getGlobalTransformationElements(e),e);samplePlayer.source({publicId:"dog",transformation:t}),n._clearLoading(e)}},_getGlobalTransformationElements(t){let e=[];return e.push(this.elements[t].slice(0,2).join(",")),e.push(this.elements[t].slice(2).join(",")),e=e.filter((t=>t)).join("/"),e},_transformations(t,e,n=!1){const i=CLD_GLOBAL_TRANSFORMATIONS[e].valid_types;let r=null;const o=t.split("/"),s=[];for(let t=0;t{s.style.opacity=1}),250),(0,i.default)({path:cldData.dam.fetch_url,data:{src:r.url,filename:r.filename,attachment_id:r.attachment_id,transformations:r.transformations},method:"POST"}).then((t=>{const i=o[a];delete o[a],i.removeChild(i.firstChild),setTimeout((()=>{i.style.opacity=0,setTimeout((()=>{i.parentNode.removeChild(i),Object.keys(o).length||(e.style.marginRight="0px",n.style.display="none")}),1e3)}),500)}))}))}}}),window.addEventListener("resize",(function(){t._resize()})),t._resize())},_resize(){this.libraryWrap.style.height=this.wpFooter.offsetTop-this.libraryWrap.offsetTop-this.adminbar.offsetHeight+"px"},makeProgress(t){const e=document.createElement("div"),n=document.createElement("span"),i=document.createElement("span");return e.classList.add("cld-import-item"),n.classList.add("spinner"),i.classList.add("cld-import-item-id"),i.innerText=t.public_id,e.appendChild(n),e.appendChild(i),e}};e.default=r,window.addEventListener("load",(()=>r._init()))},"./src/js/components/notices.js":function(t,e,n){"use strict";n.r(e);const i={_init(){const t=this;if("undefined"!=typeof CLDIS){[...document.getElementsByClassName("cld-notice-box")].forEach((e=>{const n=e.getElementsByClassName("notice-dismiss");n.length&&n[0].addEventListener("click",(n=>{e.style.height=e.offsetHeight+"px",n.preventDefault(),setTimeout((function(){t._dismiss(e)}),5)}))}))}},_dismiss(t){const e=t.dataset.dismiss,n=parseInt(t.dataset.duration);t.classList.add("dismissed"),t.style.height="0px",setTimeout((function(){t.remove()}),400),0{this._main(t)})),this._init()},_init(){this.controlled.forEach((t=>{this._checkUp(t)}))},_main(t){const e=JSON.parse(t.dataset.main);t.dataset.size&&(t.filesize=parseInt(t.dataset.size,10)),t.mains=e.map((e=>{const n=document.getElementById(e),i=document.getElementById(e+"_size_wrapper");return i&&(n.filesize=0,n.sizespan=i),this._addChild(n,t),n})),this._bindEvents(t),t.mains.forEach((t=>{this._bindEvents(t)}))},_bindEvents(t){t.eventBound||(t.addEventListener("click",(e=>{const n=e.target;n.elements&&(this._checkDown(n),this._evaluateSize(n)),n.mains&&this._checkUp(t)})),t.eventBound=!0)},_addChild(t,e){const n=t.elements?t.elements:[];-1===n.indexOf(e)&&(n.push(e),t.elements=n)},_removeChild(t,e){const n=t.elements.indexOf(e);-1{e.checked!==t.checked&&(e.checked=t.checked,e.disabled&&(e.checked=!1),e.dispatchEvent(new Event("change")))})),t.elements.forEach((e=>{this._checkDown(e),e.elements||this._checkUp(e,t)})))},_checkUp(t,e){t.mains&&[...t.mains].forEach((t=>{t!==e&&this._evaluateCheckStatus(t),this._checkUp(t),this._evaluateSize(t)}))},_evaluateCheckStatus(t){let e=0,n=t.classList.contains("partial");n&&(t.classList.remove("partial"),n=!1),t.elements.forEach((i=>{null!==i.parentNode?(e+=i.checked,i.classList.contains("partial")&&(n=!0)):this._removeChild(t,i)}));let i="some";e===t.elements.length?i="on":0===e?i="off":n=!0,n&&t.classList.add("partial");const r="off"!==i;t.checked===r&&t.value===i||(t.value=i,t.checked=r,t.dispatchEvent(new Event("change")))},_evaluateSize(t){if(t.sizespan&&t.elements){t.filesize=0,t.elements.forEach((e=>{e.checked&&(t.filesize+=e.filesize)}));let e=null;0{t.dataset.url&&(this.data[t.dataset.url]||(this.data[t.dataset.url]={items:[],poll:null}),this.data[t.dataset.url].items.push(t)),"line"===t.dataset.progress?this.line(t):"circle"===t.dataset.progress&&this.circle(t)}));for(const t in this.data)this.getValues(t);[...n].forEach((t=>{const e={labels:JSON.parse(t.dataset.dates),datasets:[{backgroundColor:t.dataset.color,borderColor:t.dataset.color,data:JSON.parse(t.dataset.data),cubicInterpolationMode:"monotone"}]};new o.default(t,{type:"line",data:e,options:{responsive:!0,radius:0,interaction:{intersect:!1},plugins:{legend:{display:!1}},scales:{y:{suggestedMin:0,ticks:{color:"#999999",callback:(t,e)=>a()(t,{decimals:2,scale:"SI"})},grid:{color:"#d3dce3"}},x:{ticks:{color:"#999999"},grid:{color:"#d3dce3"}}}}})}))},line(t){new(r().Line)(t,{strokeWidth:2,easing:"easeInOut",duration:1400,color:t.dataset.color,trailColor:"#d3dce3",trailWidth:2,svgStyle:{width:"100%",height:"100%",display:"block"}}).animate(t.dataset.value/100)},circle(t){t.dataset.basetext=t.dataset.text,t.dataset.text="";const e=t.dataset.value,n=this;if(t.bar=new(r().Circle)(t,{strokeWidth:3,easing:"easeInOut",duration:1400,color:t.dataset.color,trailColor:"#d3dce3",trailWidth:3,svgStyle:null,text:{autoStyleContainer:!1,style:{color:"#222222"}},step(e,i){const r=Math.floor(100*i.value());n.setText(i,parseFloat(r),t.dataset.text)}}),!t.dataset.url){const n=e/100;t.bar.animate(n)}},getValues(t){this.data[t].poll&&(clearTimeout(this.data[t].poll),this.data[t].poll=null),(0,l.default)({path:t,method:"GET"}).then((e=>{this.data[t].items.forEach((n=>{void 0!==e[n.dataset.basetext]?n.dataset.text=e[n.dataset.basetext]:n.dataset.text=n.dataset.basetext,n.bar.animate(e[n.dataset.value]),n.dataset.poll&&!this.data[t].poll&&(this.data[t].poll=setTimeout((()=>{this.getValues(t)}),1e4))}));for(const t in e){const n=this.context.querySelectorAll(`[data-key="${t}"]`),i=this.context.querySelectorAll(`[data-text="${t}"]`);n.forEach((n=>{n.dataset.value=e[t],n.dispatchEvent(new Event("focus"))})),i.forEach((n=>{n.innerText=e[t],n.classList.contains("cld-toggle")&&(e[t]?n.classList.remove("hidden"):n.classList.add("hidden"))}))}}))},setText(t,e,n){if(!t)return;const i=document.createElement("span"),r=document.createElement("h2"),o=document.createTextNode(n);r.innerText=e+"%",i.appendChild(r),i.appendChild(o),t.setText(i)}};e.default=c},"./src/js/components/restricted-types.js":function(t,e,n){"use strict";n.r(e);n("./node_modules/@wordpress/i18n/build-module/index.js");const i={init(t){[...t.querySelectorAll("[data-remove]")].forEach((t=>{t.addEventListener("click",(e=>{if(t.dataset.message&&!confirm(t.dataset.message))return;const n=document.getElementById(t.dataset.remove);n.parentNode.removeChild(n)}))}))}};e.default=i},"./src/js/components/settings-page.js":function(){!function(){const t=function(){const t=jQuery("#field-video_player").val(),e=jQuery("#field-video_controls").prop("checked"),n=jQuery('#field-video_autoplay_mode option[value="off"]');"cld"!==t||e?n.prop("disabled",!1):(n.prop("disabled",!0),n.prop("selected")&&n.next().prop("selected",!0))};t(),jQuery(document).on("change","#field-video_player",t),jQuery(document).on("change","#field-video_controls",t),jQuery(document).ready((function(t){t.isFunction(t.fn.wpColorPicker)&&t(".regular-color").wpColorPicker(),t(document).on("tabs.init",(function(){const e=t(".settings-tab-trigger"),n=t(".settings-tab-section");t(this).on("click",".settings-tab-trigger",(function(i){const r=t(this),o=t(r.attr("href"));i.preventDefault(),e.removeClass("active"),n.removeClass("active"),r.addClass("active"),o.addClass("active"),t(document).trigger("settings.tabbed",r)})),t(".cld-field").not('[data-condition="false"]').each((function(){const e=t(this),n=e.data("condition");for(const i in n){let r=t("#field-"+i);const o=n[i],s=e.closest("tr");r.length||(r=t(`[id^=field-${i}-]`));let a=!1;r.on("change init",(function(t,e=!1){if(a&&e)return;let n=this.value===o||this.checked;if(Array.isArray(o)&&2===o.length)switch(o[1]){case"neq":n=this.value!==o[0];break;case"gt":n=this.value>o[0];break;case"lt":n=this.valuethis.sendStates()),2e3),localStorage.setItem(this.key,JSON.stringify(this.data)))},set(t,e){this.data[t]&&this.data[t]===e||(this.data[t]=e,this._update())},get(t){let e=null;return this.data[t]&&(e=this.data[t]),e},sendStates(){fetch(cldData.stateURL,{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":cldData.stateNonce},body:JSON.stringify(this.data)}).then((t=>t.json())).then((t=>{t.success&&(this.previous=JSON.stringify(t.state),localStorage.removeItem(this.key))}))}};e.default=i},"./src/js/components/storage.js":function(t,e,n){"use strict";n.r(e);const i={select:document.getElementById("connect.offload"),tooltip:null,descriptions:{},change(){[...this.descriptions].forEach((t=>{t.classList.remove("selected")})),this.tooltip.querySelector("."+this.select.value).classList.add("selected")},addEventListener(){this.select.addEventListener("change",this.change.bind(this))},_init(){this.select&&(this.addEventListener(),this.tooltip=this.select.parentNode.querySelector(".cld-tooltip"),this.descriptions=this.tooltip.querySelectorAll("li"),this.change())}};window.addEventListener("load",(()=>i._init())),e.default=i},"./src/js/components/suffix-value.js":function(t,e,n){"use strict";n.r(e);const i={suffixInputs:null,init(t){this.suffixInputs=t.querySelectorAll("[data-suffix]"),[...this.suffixInputs].forEach((t=>this.bindInput(t)))},bindInput(t){const e=document.getElementById(t.dataset.suffix),n=e.dataset.template.split("@value");this.setSuffix(e,n,t.value),t.addEventListener("change",(()=>this.setSuffix(e,n,t.value))),t.addEventListener("input",(()=>this.setSuffix(e,n,t.value)))},setSuffix(t,e,n){t.innerHTML="",t.classList.add("hidden"),-1===["none","off",""].indexOf(n)&&t.classList.remove("hidden");const i=document.createTextNode(e.join(n));t.appendChild(i)}};e.default=i},"./src/js/components/tabs.js":function(t,e,n){"use strict";n.r(e);const i={tabButtonSelectors:null,selectedTabID:"",deselectOldTab(){document.getElementById(this.selectedTabID).classList.remove("is-active"),this.filterActive([...this.tabButtonSelectors]).classList.remove("is-active")},selectCurrentTab(t){this.selectedTabID=t.dataset.tab,t.classList.add("is-active"),document.getElementById(this.selectedTabID).classList.add("is-active")},selectTab(t){t.preventDefault(),t.target.classList.contains("is-active")||(this.deselectOldTab(),this.selectCurrentTab(t.target))},filterTabs(){[...this.tabButtonSelectors].forEach((t=>{t.dataset.tab&&t.addEventListener("click",this.selectTab.bind(this))}))},filterActive:t=>t.filter((t=>t.classList.contains("is-active"))).pop(),init(){this.tabButtonSelectors=document.querySelectorAll(".cld-page-tabs-tab button"),0!==this.tabButtonSelectors.length&&(this.selectCurrentTab(this.filterActive([...this.tabButtonSelectors])),this.filterTabs())}};window.addEventListener("load",(()=>i.init())),e.default=i},"./src/js/components/tags-input.js":function(t,e,n){"use strict";n.r(e);n("./node_modules/@wordpress/i18n/build-module/index.js");const i={values:{},inputs:{},context:null,init(t){this.context=t;t.querySelectorAll("[data-tags]").forEach((t=>this.bind(t)))},bind(t){t.innerText=t.dataset.placeholder;const e=t.dataset.tags,n=document.getElementById(e),i=this.context.querySelectorAll(`[data-tags-delete="${e}"]`);this.values[e]=JSON.parse(n.value),this.inputs[e]=n,t.boundInput=e,t.boundDisplay=this.context.querySelector(`[data-tags-display="${e}"]`),t.boundDisplay.addEventListener("click",(e=>{t.focus()})),t.addEventListener("focus",(e=>{t.innerText=null})),t.addEventListener("blur",(e=>{3{if("Tab"===n.key)3{"Comma"!==e.code&&"Enter"!==e.code&&"Tab"!==e.code&&"Space"!==e.code||(e.preventDefault(),3{t.parentNode.control=t,t.parentNode.style.width=getComputedStyle(t.parentNode).width,t.addEventListener("click",(e=>{e.stopPropagation(),this.deleteTag(t)}))}))},deleteTag(t){const e=t.parentNode,n=e.dataset.inputId,i=this.values[n].indexOf(e.dataset.value);0<=i&&this.values[n].splice(i,1),e.style.width=0,e.style.opacity=0,e.style.padding=0,e.style.margin=0,setTimeout((()=>{e.parentNode.removeChild(e)}),500),this.updateInput(n)},captureTag(t,e){if(this[t.dataset.format]&&"string"!=typeof(e=this[t.dataset.format](e)))return t.classList.add("pulse"),void setTimeout((()=>{t.classList.remove("pulse")}),1e3);if(!this.validateUnique(t.boundDisplay,e)){const n=this.createTag(e);n.dataset.inputId=t.boundInput,this.values[t.boundInput].push(e),t.innerText=null,t.boundDisplay.insertBefore(n,t),n.style.width=getComputedStyle(n).width,n.style.opacity=1,this.updateInput(t.boundInput)}},createTag(t){const e=document.createElement("span"),n=document.createElement("span"),i=document.createElement("span");return e.classList.add("cld-input-tags-item"),n.classList.add("cld-input-tags-item-text"),i.className="cld-input-tags-item-delete dashicons dashicons-no-alt",i.addEventListener("click",(()=>this.deleteTag(i))),n.innerText=t,e.appendChild(n),e.appendChild(i),e.dataset.value=t,e.style.opacity=0,e.control=i,e},validateUnique(t,e){const n=t.querySelector(`[data-value="${e}"]`);let i=!1;return n&&(n.classList.remove("pulse"),n.classList.add("pulse"),setTimeout((()=>{n.classList.remove("pulse")}),500),i=!0),i},updateInput(t){this.inputs[t].value=JSON.stringify(this.values[t])},host(t){!1===/^(?:http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)/.test(t)&&(t="https://"+t);let e="";try{e=new URL(t)}catch(t){return t}return decodeURIComponent(e.host)}};e.default=i},"./src/js/components/taxonomies.js":function(){const t=document.querySelector(".cloudinary-collapsible__toggle");t&&t.addEventListener("click",(function(){const t=document.querySelector(".cloudinary-collapsible__content"),e="none"===window.getComputedStyle(t,null).getPropertyValue("display"),n=document.querySelector(".cloudinary-collapsible__toggle button i");t.style.display=e?"block":"none";const i="dashicons-arrow-down-alt2",r="dashicons-arrow-up-alt2";n.classList.contains(i)?(n.classList.remove(i),n.classList.add(r)):(n.classList.remove(r),n.classList.add(i))}))},"./src/js/components/ui.js":function(t,e,n){"use strict";n.r(e);var i=n("./node_modules/tippy.js/dist/tippy.esm.js"),r=(n("./node_modules/tippy.js/dist/tippy.css"),n("./src/js/components/onoff.js")),o=n("./src/js/components/progress.js"),s=n("./src/js/components/states.js"),a=n("./src/js/components/restricted-types.js"),l=n("./src/js/components/tags-input.js"),c=n("./src/js/components/suffix-value.js"),u=n("./src/js/components/crops-sizes.js");const d={bindings:{},parent_check_data:{},check_parents:{},_init(t){const e=t.querySelectorAll("[data-condition]"),n=t.querySelectorAll("[data-toggle]"),d=t.querySelectorAll("[data-for]"),h=t.querySelectorAll("[data-tooltip]"),f=t.querySelectorAll("[data-bind-trigger]"),p=t.querySelectorAll("[data-main]"),m=t.querySelectorAll("[data-file]"),g=t.querySelectorAll("[data-auto-suffix]"),b=t.querySelectorAll("[data-confirm]"),v={};s.default.init(),r.default.bind(p),g.forEach((t=>this._autoSuffix(t))),f.forEach((t=>this._trigger(t))),n.forEach((t=>this._toggle(t))),e.forEach((t=>this._bind(t))),d.forEach((t=>this._alias(t))),m.forEach((t=>this._files(t,v))),(0,i.default)(h,{theme:"cloudinary",arrow:!1,placement:"bottom-start",aria:{content:"auto",expanded:"auto"},content:t=>document.getElementById(t.dataset.tooltip).innerHTML}),[...f].forEach((t=>{t.dispatchEvent(new Event("input"))})),b.forEach((t=>{t.addEventListener("click",(e=>{confirm(t.dataset.confirm)||(e.preventDefault(),e.stopPropagation())}))})),o.default.init(t),a.default.init(t),l.default.init(t),c.default.init(t),u.default.init(t)},_autoSuffix(t){const e=t.dataset.autoSuffix;let n="";const i=[...e.split(";")].map((t=>0===t.indexOf("*")?(n=t.replace("*",""),n):t));t.addEventListener("change",(()=>{const e=t.value.replace(" ",""),r=e.replace(/[^0-9]/g,""),o=e.replace(/[0-9]/g,"").toLowerCase();r&&(-1===i.indexOf(o)?t.value=r+n:t.value=r+o)})),t.dispatchEvent(new Event("change"))},_files(t,e){const n=t.dataset.parent;n&&(this.check_parents[n]=document.getElementById(n),this.parent_check_data[n]||(this.parent_check_data[n]=this.check_parents[n].value?JSON.parse(this.check_parents[n].value):[]),t.addEventListener("change",(()=>{const i=this.parent_check_data[n].indexOf(t.value);t.checked?this.parent_check_data[n].push(t.value):this.parent_check_data[n].splice(i,1),e[n]&&clearTimeout(e[n]),e[n]=setTimeout((()=>{this._compileParent(n)}),10)})))},_compileParent(t){this.check_parents[t].value=JSON.stringify(this.parent_check_data[t]),this.check_parents[t].dispatchEvent(new Event("change"))},_bind(t){t.condition=JSON.parse(t.dataset.condition);for(const e in t.condition)this.bindings[e]&&this.bindings[e].elements.push(t)},_trigger(t){const e=t.dataset.bindTrigger,n=this;n.bindings[e]={input:t,value:t.value,checked:!0,elements:[]},t.addEventListener("change",(function(e){t.dispatchEvent(new Event("input"))})),t.addEventListener("input",(function(){if(n.bindings[e].value=t.value,"checkbox"===t.type&&(n.bindings[e].checked=t.checked),"radio"!==t.type||!1!==t.checked)for(const i in n.bindings[e].elements)n.toggle(n.bindings[e].elements[i],t)}))},_alias(t){t.addEventListener("click",(function(){document.getElementById(t.dataset.for).dispatchEvent(new Event("click"))}))},_toggle(t){const e=this,n=document.querySelector('[data-wrap="'+t.dataset.toggle+'"]');if(!n)return;const i=s.default.get(t.id);t.addEventListener("click",(function(i){i.stopPropagation();const r=n.classList.contains("open")?"closed":"open";e.toggle(n,t,r)})),i!==t.dataset.state&&this.toggle(n,t,i)},toggle(t,e,n){if(!n){n="open";for(const e in t.condition){let i=this.bindings[e].value;const r=t.condition[e];"boolean"==typeof r&&(i=this.bindings[e].checked),r!==i&&(n="closed")}}"closed"===n?this.close(t,e):this.open(t,e),s.default.set(e.id,n)},open(t,e){const n=t.getElementsByClassName("cld-ui-input");t.classList.remove("closed"),t.classList.add("open"),e&&e.classList.contains("dashicons")&&(e.classList.remove("dashicons-arrow-down-alt2"),e.classList.add("dashicons-arrow-up-alt2")),[...n].forEach((function(t){t.dataset.disabled=!1}))},close(t,e){const n=t.getElementsByClassName("cld-ui-input");t.classList.remove("open"),t.classList.add("closed"),e&&e.classList.contains("dashicons")&&(e.classList.remove("dashicons-arrow-up-alt2"),e.classList.add("dashicons-arrow-down-alt2")),[...n].forEach((function(t){t.dataset.disabled=!0}))}},h=document.querySelectorAll(".cld-settings,.cld-meta-box");h.length&&h.forEach((t=>{t&&window.addEventListener("load",d._init(t))})),e.default=d},"./src/js/components/wizard.js":function(t,e,n){"use strict";n.r(e);var i=n("./node_modules/@wordpress/i18n/build-module/index.js"),r=n("./node_modules/@wordpress/api-fetch/build-module/index.js");const o={storageKey:"_cld_wizard",testing:null,next:document.querySelector('[data-navigate="next"]'),back:document.querySelector('[data-navigate="back"]'),lock:document.getElementById("pad-lock"),lockIcon:document.getElementById("lock-icon"),options:document.querySelectorAll('.cld-ui-input[type="checkbox"]'),settings:document.getElementById("optimize"),tabBar:document.getElementById("wizard-tabs"),tracking:document.getElementById("tracking"),complete:document.getElementById("complete-wizard"),tabs:{"tab-1":document.getElementById("tab-icon-1"),"tab-2":document.getElementById("tab-icon-2"),"tab-3":document.getElementById("tab-icon-3")},content:{"tab-1":document.getElementById("tab-1"),"tab-2":document.getElementById("tab-2"),"tab-3":document.getElementById("tab-3"),"tab-4":document.getElementById("tab-4")},connection:{error:document.getElementById("connection-error"),success:document.getElementById("connection-success"),working:document.getElementById("connection-working")},debounceConnect:null,updateConnection:document.getElementById("update-connection"),cancelUpdateConnection:document.getElementById("cancel-update-connection"),config:{},didSave:!1,init(){if(!cldData.wizard)return;this.config=cldData.wizard.config,window.localStorage.getItem(this.storageKey)&&(this.config=JSON.parse(window.localStorage.getItem(this.storageKey))),document.location.hash.length&&this.hashChange(),r.default.use(r.default.createNonceMiddleware(cldData.wizard.saveNonce));const t=document.querySelectorAll("[data-navigate]"),e=document.getElementById("connect.cloudinary_url");this.updateConnection.addEventListener("click",(()=>{this.lockNext(),e.parentNode.classList.remove("hidden"),this.cancelUpdateConnection.classList.remove("hidden"),this.updateConnection.classList.add("hidden")})),this.cancelUpdateConnection.addEventListener("click",(()=>{this.unlockNext(),e.parentNode.classList.add("hidden"),this.cancelUpdateConnection.classList.add("hidden"),this.updateConnection.classList.remove("hidden"),this.config.cldString=!0,e.value="",this.connection.error.classList.remove("active"),this.connection.success.classList.add("active")})),[...t].forEach((t=>{t.addEventListener("click",(()=>{this.navigate(t.dataset.navigate)}))})),this.lock.addEventListener("click",(()=>{this.lockIcon.classList.toggle("dashicons-unlock"),this.settings.classList.toggle("disabled"),this.options.forEach((t=>{t.disabled=t.disabled?"":"disabled"}))})),e.addEventListener("input",(t=>{this.lockNext();const n=e.value.replace("CLOUDINARY_URL=","");this.connection.error.classList.remove("active"),this.connection.success.classList.remove("active"),this.connection.working.classList.remove("active"),n.length&&(this.testing=n,this.debounceConnect&&clearTimeout(this.debounceConnect),this.debounceConnect=setTimeout((()=>{this.evaluateConnectionString(n)?(this.connection.working.classList.add("active"),this.testConnection(n)):this.connection.error.classList.add("active")}),500))})),this.config.cldString&&(e.parentNode.classList.add("hidden"),this.updateConnection.classList.remove("hidden")),this.getTab(this.config.tab),this.initFeatures(),window.addEventListener("hashchange",(t=>{this.hashChange()}))},hashChange(){const t=parseInt(document.location.hash.replace("#",""));t&&0t&&this.getTab(t)},initFeatures(){const t=document.getElementById("media_library");t.checked=this.config.mediaLibrary,t.addEventListener("change",(()=>{this.setConfig("mediaLibrary",t.checked)}));const e=document.getElementById("non_media");e.checked=this.config.nonMedia,e.addEventListener("change",(()=>{this.setConfig("nonMedia",e.checked)}));const n=document.getElementById("advanced");n.checked=this.config.advanced,n.addEventListener("change",(()=>{this.setConfig("advanced",n.checked)}))},getCurrent(){return this.content[`tab-${this.config.tab}`]},hideTabs(){Object.keys(this.content).forEach((t=>{this.hide(this.content[t])}))},completeTab(t){this.incompleteTab(),Object.keys(this.tabs).forEach((e=>{const n=parseInt(this.tabs[e].dataset.tab);t>n?this.tabs[e].classList.add("complete"):t===n&&this.tabs[e].classList.add("active")}))},incompleteTab(t){Object.keys(this.tabs).forEach((t=>{this.tabs[t].classList.remove("complete","active")}))},getCurrentTab(){return this.tabs[`tab-icon-${this.config.tab}`]},getTab(t){if(4===t&&window.localStorage.getItem(this.storageKey)&&!this.didSave)return void this.saveConfig();const e=this.getCurrent(),n=document.getElementById(`tab-${t}`);switch(this.hideTabs(),this.completeTab(t),this.hide(document.getElementById(`tab-${this.config.tab}`)),e.classList.remove("active"),this.show(n),this.show(this.next),this.hide(this.lock),t){case 1:this.hide(this.back),this.unlockNext();break;case 2:this.show(this.back),this.config.cldString?this.showSuccess():(this.lockNext(),setTimeout((()=>{document.getElementById("connect.cloudinary_url").focus()}),0)),this.updateConnection.classList.contains("hidden")&&this.lockNext();break;case 3:if(!this.config.cldString)return void(document.location.hash="1");this.show(this.lock),this.show(this.back);break;case 4:if(!this.config.cldString)return void(document.location.hash="1");this.hide(this.tabBar),this.hide(this.next),this.hide(this.back)}this.setConfig("tab",t)},navigate(t){"next"===t?this.navigateNext():"back"===t&&this.navigateBack()},navigateBack(){document.location.hash=this.config.tab-1},navigateNext(){document.location.hash=this.config.tab+1},showError(){this.connection.error.classList.add("active"),this.connection.success.classList.remove("active")},showSuccess(){this.connection.error.classList.remove("active"),this.connection.success.classList.add("active")},show(t){t.classList.remove("hidden"),t.style.display=""},hide(t){t.classList.add("hidden"),t.style.display="none"},lockNext(){this.next.disabled="disabled"},unlockNext(){this.next.disabled=""},evaluateConnectionString:t=>new RegExp(/^(?:CLOUDINARY_URL=)?(cloudinary:\/\/){1}(\d*)[:]{1}([^@]*)[@]{1}([^@]*)$/gim).test(t),testConnection(t){(0,r.default)({path:cldData.wizard.testURL,data:{cloudinary_url:t},method:"POST"}).then((e=>{e.url===this.testing&&(this.connection.working.classList.remove("active"),"connection_error"===e.type?this.showError():"connection_success"===e.type&&(this.showSuccess(),this.unlockNext(),this.setConfig("cldString",t)))}))},setConfig(t,e){this.config[t]=e,window.localStorage.setItem(this.storageKey,JSON.stringify(this.config))},saveConfig(){this.lockNext(),this.next.innerText=(0,i.__)("Setting up Cloudinary","cloudinary"),this.didSave=!0,(0,r.default)({path:cldData.wizard.saveURL,data:this.config,method:"POST"}).then((t=>{this.next.innerText=(0,i.__)("Next","cloudinary"),this.unlockNext(),this.getTab(4),window.localStorage.removeItem(this.storageKey)})).fail((t=>{this.didSave=!1}))}};window.addEventListener("load",(()=>o.init())),e.default=o},"./node_modules/@babel/runtime/helpers/regeneratorRuntime.js":function(t,e,n){var i=n("./node_modules/@babel/runtime/helpers/typeof.js").default;function r(){"use strict";t.exports=r=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},n=Object.prototype,o=n.hasOwnProperty,s=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function d(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(t){d=function(t,e,n){return t[e]=n}}function h(t,e,n,i){var r=e&&e.prototype instanceof m?e:m,o=Object.create(r.prototype),a=new M(i||[]);return s(o,"_invoke",{value:k(t,n,a)}),o}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var p={};function m(){}function g(){}function b(){}var v={};d(v,l,(function(){return this}));var y=Object.getPrototypeOf,_=y&&y(y(P([])));_&&_!==n&&o.call(_,l)&&(v=_);var x=b.prototype=m.prototype=Object.create(v);function w(t){["next","throw","return"].forEach((function(e){d(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(r,s,a,l){var c=f(t[r],t,s);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==i(d)&&o.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,a,l)}),(function(t){n("throw",t,a,l)})):e.resolve(d).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,l)}))}l(c.arg)}var r;s(this,"_invoke",{value:function(t,i){function o(){return new e((function(e,r){n(t,i,e,r)}))}return r=r?r.then(o,o):o()}})}function k(t,e,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return T()}for(n.method=r,n.arg=o;;){var s=n.delegate;if(s){var a=O(s,n);if(a){if(a===p)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=f(t,e,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}function O(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,O(t,e),"throw"===e.method))return p;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var i=f(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,p;var r=i.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function P(t){if(t){var e=t[l];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n=0;--i){var r=this.tryEntries[i],s=r.completion;if("root"===r.tryLoc)return n("end");if(r.tryLoc<=this.prev){var a=o.call(r,"catchLoc"),l=o.call(r,"finallyLoc");if(a&&l){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;E(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:P(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},"./node_modules/@babel/runtime/helpers/typeof.js":function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},"./node_modules/@babel/runtime/regenerator/index.js":function(t,e,n){var i=n("./node_modules/@babel/runtime/helpers/regeneratorRuntime.js")();t.exports=i;try{regeneratorRuntime=i}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}},"./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":function(t,e,n){"use strict";function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}},"./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js":function(t,e,n){"use strict";function i(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i=0||(r[n]=t[n]);return r}n.r(e),n.d(e,{default:function(){return i}})},"./node_modules/@babel/runtime/helpers/esm/slicedToArray.js":function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return a}});var i=n("./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js"),r=n("./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js"),o=n("./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js"),s=n("./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js");function a(t,e){return(0,i.default)(t)||(0,r.default)(t,e)||(0,o.default)(t,e)||(0,s.default)()}},"./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js":function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return a}});var i=n("./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js"),r=n("./node_modules/@babel/runtime/helpers/esm/iterableToArray.js"),o=n("./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js"),s=n("./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js");function a(t){return(0,i.default)(t)||(0,r.default)(t)||(0,o.default)(t)||(0,s.default)()}},"./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js":function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return r}});var i=n("./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");function r(t,e){if(t){if("string"==typeof t)return(0,i.default)(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,i.default)(t,e):void 0}}},"./node_modules/chart.js/auto/auto.mjs":function(t,e,n){"use strict";n.r(e);var i=n("./node_modules/chart.js/dist/chart.mjs");i.Chart.register(...i.registerables),e.default=i.Chart},"./node_modules/chart.js/dist/chart.mjs":function(t,e,n){"use strict";n.r(e),n.d(e,{Animation:function(){return a},Animations:function(){return c},ArcElement:function(){return be},BarController:function(){return T},BarElement:function(){return Ie},BasePlatform:function(){return wt},BasicPlatform:function(){return jt},BubbleController:function(){return C},CategoryScale:function(){return Sn},Chart:function(){return ce},DatasetController:function(){return x},Decimation:function(){return Ne},DomPlatform:function(){return zt},DoughnutController:function(){return A},Element:function(){return F},Filler:function(){return nn},Interaction:function(){return lt},Legend:function(){return sn},LineController:function(){return L},LineElement:function(){return Se},LinearScale:function(){return Pn},LogarithmicScale:function(){return Cn},PieController:function(){return I},PointElement:function(){return Me},PolarAreaController:function(){return D},RadarController:function(){return R},RadialLinearScale:function(){return Bn},Scale:function(){return Q},ScatterController:function(){return K},SubTitle:function(){return un},Ticks:function(){return N},TimeScale:function(){return Qn},TimeSeriesScale:function(){return Gn},Title:function(){return ln},Tooltip:function(){return jn},_adapters:function(){return et},_detectPlatform:function(){return Nt},animator:function(){return r},controllers:function(){return J},defaults:function(){return i.d},elements:function(){return Re},layouts:function(){return xt},plugins:function(){return kn},registerables:function(){return Jn},registry:function(){return G},scales:function(){return Kn}});var i=n("./node_modules/chart.js/dist/chunks/helpers.segment.mjs");var r=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,i){const r=e.listeners[i],o=e.duration;r.forEach((i=>i({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(n-e.start,o)})))}_refresh(){this._request||(this._running=!0,this._request=i.r.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((n,i)=>{if(!n.running||!n.items.length)return;const r=n.items;let o,s=r.length-1,a=!1;for(;s>=0;--s)o=r[s],o._active?(o._total>n.duration&&(n.duration=o._total),o.tick(t),a=!0):(r[s]=r[r.length-1],r.pop());a&&(i.draw(),this._notify(i,n,t,"progress")),r.length||(n.running=!1,this._notify(i,n,t,"complete"),n.initial=!1),e+=r.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const n=e.items;let i=n.length-1;for(;i>=0;--i)n[i].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};const o="transparent",s={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const r=(0,i.c)(t||o),s=r.valid&&(0,i.c)(e||o);return s&&s.valid?s.mix(r,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class a{constructor(t,e,n,r){const o=e[n];r=(0,i.a)([t.to,r,o,t.from]);const a=(0,i.a)([t.from,o,r]);this._active=!0,this._fn=t.fn||s[t.type||typeof a],this._easing=i.e[t.easing]||i.e.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=n,this._from=a,this._to=r,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const r=this._target[this._prop],o=n-this._start,s=this._duration-o;this._start=n,this._duration=Math.floor(Math.max(s,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=(0,i.a)([t.to,e,r,t.from]),this._from=(0,i.a)([t.from,r,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,i=this._prop,r=this._from,o=this._loop,s=this._to;let a;if(this._active=r!==s&&(o||e1?2-a:a,a=this._easing(Math.min(1,Math.max(0,a))),this._target[i]=this._fn(r,s,a))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,n)=>{t.push({res:e,rej:n})}))}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let t=0;t"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),i.d.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),i.d.describe("animations",{_fallback:"animation"}),i.d.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}});class c{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!(0,i.i)(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach((n=>{const r=t[n];if(!(0,i.i)(r))return;const o={};for(const t of l)o[t]=r[t];((0,i.b)(r.properties)&&r.properties||[n]).forEach((t=>{t!==n&&e.has(t)||e.set(t,o)}))}))}_animateOptions(t,e){const n=e.options,i=function(t,e){if(!e)return;let n=t.options;if(!n)return void(t.options=e);n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(t,n);if(!i)return[];const r=this._createAnimations(i,n);return n.$shared&&function(t,e){const n=[],i=Object.keys(e);for(let e=0;e{t.options=n}),(()=>{})),r}_createAnimations(t,e){const n=this._properties,i=[],r=t.$animations||(t.$animations={}),o=Object.keys(e),s=Date.now();let l;for(l=o.length-1;l>=0;--l){const c=o[l];if("$"===c.charAt(0))continue;if("options"===c){i.push(...this._animateOptions(t,e));continue}const u=e[c];let d=r[c];const h=n.get(c);if(d){if(h&&d.active()){d.update(h,u,s);continue}d.cancel()}h&&h.duration?(r[c]=d=new a(h,t,c,u),i.push(d)):t[c]=u}return i}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(r.add(this._chart,n),!0):void 0}}function u(t,e){const n=t&&t.options||{},i=n.reverse,r=void 0===n.min?e:0,o=void 0===n.max?e:0;return{start:i?o:r,end:i?r:o}}function d(t,e){const n=[],i=t._getSortedDatasetMetas(e);let r,o;for(r=0,o=i.length;r0||!n&&e<0)return r.index}return null}function g(t,e){const{chart:n,_cachedMeta:i}=t,r=n._stacks||(n._stacks={}),{iScale:o,vScale:s,index:a}=i,l=o.axis,c=s.axis,u=function(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}(o,s,i),d=e.length;let h;for(let t=0;tn[t].axis===e)).shift()}function v(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[i]||void 0===e[i][n])return;delete e[i][n]}}}const y=t=>"reset"===t||"none"===t,_=(t,e)=>e?t:Object.assign({},t);class x{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=f(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&v(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,n=this.getDataset(),r=(t,e,n,i)=>"x"===t?e:"r"===t?i:n,o=e.xAxisID=(0,i.v)(n.xAxisID,b(t,"x")),s=e.yAxisID=(0,i.v)(n.yAxisID,b(t,"y")),a=e.rAxisID=(0,i.v)(n.rAxisID,b(t,"r")),l=e.indexAxis,c=e.iAxisID=r(l,o,s,a),u=e.vAxisID=r(l,s,o,a);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(s),e.rScale=this.getScaleForId(a),e.iScale=this.getScaleForId(c),e.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&(0,i.u)(this._data,this),t._stacked&&v(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if((0,i.i)(e))this._data=function(t){const e=Object.keys(t),n=new Array(e.length);let i,r,o;for(i=0,r=e.length;i0&&n._parsed[t-1];if(!1===this._parsing)n._parsed=r,n._sorted=!0,u=r;else{u=(0,i.b)(r[t])?this.parseArrayData(n,r,t,e):(0,i.i)(r[t])?this.parseObjectData(n,r,t,e):this.parsePrimitiveData(n,r,t,e);const o=()=>null===c[a]||h&&c[a]t&&!e.hidden&&e._stacked&&{keys:d(n,!0),values:null})(e,n,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:h}=function(t){const{min:e,max:n,minDefined:i,maxDefined:r}=t.getUserBounds();return{min:i?e:Number.NEGATIVE_INFINITY,max:r?n:Number.POSITIVE_INFINITY}}(a);let f,p;function m(){p=r[f];const e=p[a.axis];return!(0,i.g)(p[t.axis])||u>e||h=0;--f)if(!m()){this.updateRangeFromParsed(c,t,p,l);break}return c}getAllParsedValues(t){const e=this._cachedMeta._parsed,n=[];let r,o,s;for(r=0,o=e.length;r=0&&tthis.getContext(n,r)),d);return p.$shared&&(p.$shared=l,o[s]=Object.freeze(_(p,l))),p}_resolveAnimations(t,e,n){const i=this.chart,r=this._cachedDataOpts,o=`animation-${e}`,s=r[o];if(s)return s;let a;if(!1!==i.options.animation){const i=this.chart.config,r=i.datasetAnimationScopeKeys(this._type,e),o=i.getOptionScopes(this.getDataset(),r);a=i.createResolver(o,this.getContext(t,n,e))}const l=new c(i,a&&a.animations);return a&&a._cacheable&&(r[o]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||y(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const n=this.resolveDataElementOptions(t,e),i=this._sharedOptions,r=this.getSharedOptions(n),o=this.includeOptions(e,r)||r!==i;return this.updateSharedOptions(r,e,n),{sharedOptions:r,includeOptions:o}}updateElement(t,e,n,i){y(i)?Object.assign(t,n):this._resolveAnimations(e,i).update(t,n)}updateSharedOptions(t,e,n){t&&!y(e)&&this._resolveAnimations(void 0,e).update(t,n)}_setStyle(t,e,n,i){t.active=i;const r=this.getStyle(e,i);this._resolveAnimations(e,n,i).update(t,{options:!i&&this.getSharedOptions(r)||r})}removeHoverStyle(t,e,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,e,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,n=this._cachedMeta.data;for(const[t,e,n]of this._syncList)this[t](e,n);this._syncList=[];const i=n.length,r=e.length,o=Math.min(r,i);o&&this.parse(0,o),r>i?this._insertElements(i,r-i,t):r{for(t.length+=e,s=t.length-1;s>=o;s--)t[s]=t[s-e]};for(a(r),s=t;st-e)))}return t._cache.$bar}(e,t.type);let r,o,s,a,l=e._length;const c=()=>{32767!==s&&-32768!==s&&((0,i.j)(a)&&(l=Math.min(l,Math.abs(s-a)||l)),a=s)};for(r=0,o=n.length;rMath.abs(a)&&(l=a,c=s),e[n.axis]=c,e._custom={barStart:l,barEnd:c,start:r,end:o,min:s,max:a}}(t,e,n,r):e[n.axis]=n.parse(t,r),e}function k(t,e,n,i){const r=t.iScale,o=t.vScale,s=r.getLabels(),a=r===o,l=[];let c,u,d,h;for(c=n,u=n+i;ct.x,n="left",i="right"):(e=t.baset.controller.options.grouped)),o=n.options.stacked,s=[],a=t=>{const n=t.controller.getParsed(e),r=n&&n[t.vScale.axis];if((0,i.k)(r)||isNaN(r))return!0};for(const n of r)if((void 0===e||!a(n))&&((!1===o||-1===s.indexOf(n.stack)||void 0===o&&void 0===n.stack)&&s.push(n.stack),n.index===t))break;return s.length||s.push(void 0),s}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,n){const i=this._getStacks(t,n),r=void 0!==e?i.indexOf(e):-1;return-1===r?i.length-1:r}_getRuler(){const t=this.options,e=this._cachedMeta,n=e.iScale,i=[];let r,o;for(r=0,o=e.data.length;r=n?1:-1)}(d,e,s)*o,h===s&&(g-=d/2);const t=e.getPixelForDecimal(0),n=e.getPixelForDecimal(1),r=Math.min(t,n),a=Math.max(t,n);g=Math.max(Math.min(g,a),r),u=g+d}if(g===e.getPixelForValue(s)){const t=(0,i.s)(d)*e.getLineWidthForValue(s)/2;g+=t,d-=t}return{size:d,base:g,head:u,center:u+d/2}}_calculateBarIndexPixels(t,e){const n=e.scale,r=this.options,o=r.skipNull,s=(0,i.v)(r.maxBarThickness,1/0);let a,l;if(e.grouped){const n=o?this._getStackCount(t):e.stackCount,c="flex"===r.barThickness?function(t,e,n,i){const r=e.pixels,o=r[t];let s=t>0?r[t-1]:null,a=t=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,{xScale:n,yScale:i}=e,r=this.getParsed(t),o=n.getLabelForValue(r.x),s=i.getLabelForValue(r.y),a=r._custom;return{label:e.label,value:"("+o+", "+s+(a?", "+a:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,n,i){const r="reset"===i,{iScale:o,vScale:s}=this._cachedMeta,{sharedOptions:a,includeOptions:l}=this._getSharedOptions(e,i),c=o.axis,u=s.axis;for(let d=e;d""}}}};class A extends x{constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const n=this.getDataset().data,r=this._cachedMeta;if(!1===this._parsing)r._parsed=n;else{let o,s,a=t=>+n[t];if((0,i.i)(n[t])){const{key:t="value"}=this._parsing;a=e=>+(0,i.f)(n[e],t)}for(o=t,s=t+e;o(0,i.p)(t,l,c,!0)?1:Math.max(e,e*n,r,r*n),m=(t,e,r)=>(0,i.p)(t,l,c,!0)?-1:Math.min(e,e*n,r,r*n),g=p(0,u,h),b=p(i.H,d,f),v=m(i.P,u,h),y=m(i.P+i.H,d,f);r=(g-v)/2,o=(b-y)/2,s=-(g+v)/2,a=-(b+y)/2}return{ratioX:r,ratioY:o,offsetX:s,offsetY:a}}(d,u,l),g=(n.width-s)/h,b=(n.height-s)/f,v=Math.max(Math.min(g,b)/2,0),y=(0,i.n)(this.options.radius,v),_=(y-Math.max(y*l,0))/this._getVisibleDatasetWeightTotal();this.offsetX=p*y,this.offsetY=m*y,r.total=this.calculateTotal(),this.outerRadius=y-_*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-_*c,0),this.updateElements(o,0,o.length,t)}_circumference(t,e){const n=this.options,r=this._cachedMeta,o=this._getCircumference();return e&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||null===r._parsed[t]||r.data[t].hidden?0:this.calculateCircumference(r._parsed[t]*o/i.T)}updateElements(t,e,n,i){const r="reset"===i,o=this.chart,s=o.chartArea,a=o.options.animation,l=(s.left+s.right)/2,c=(s.top+s.bottom)/2,u=r&&a.animateScale,d=u?0:this.innerRadius,h=u?0:this.outerRadius,{sharedOptions:f,includeOptions:p}=this._getSharedOptions(e,i);let m,g=this._getRotation();for(m=0;m0&&!isNaN(t)?i.T*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,r=n.data.labels||[],o=(0,i.o)(e._parsed[t],n.options.locale);return{label:r[t]||"",value:o}}getMaxBorderWidth(t){let e=0;const n=this.chart;let i,r,o,s,a;if(!t)for(i=0,r=n.data.datasets.length;i"spacing"!==t,_indexable:t=>"spacing"!==t},A.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=t.legend.options;return e.labels.map(((e,i)=>{const r=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:r.backgroundColor,strokeStyle:r.borderColor,lineWidth:r.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(i),index:i}}))}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label(t){let e=t.label;const n=": "+t.formattedValue;return(0,i.b)(e)?(e=e.slice(),e[0]+=n):e+=n,e}}}}};class L extends x{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:n,data:r=[],_dataset:o}=e,s=this.chart._animationsDisabled;let{start:a,count:l}=(0,i.q)(e,r,s);this._drawStart=a,this._drawCount=l,(0,i.w)(e)&&(a=0,l=r.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!o._decimated,n.points=r;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(n,void 0,{animated:!s,options:c},t),this.updateElements(r,a,l,t)}updateElements(t,e,n,r){const o="reset"===r,{iScale:s,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:d}=this._getSharedOptions(e,r),h=s.axis,f=a.axis,{spanGaps:p,segment:m}=this.options,g=(0,i.x)(p)?p:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||o||"none"===r;let v=e>0&&this.getParsed(e-1);for(let p=e;p0&&Math.abs(n[h]-v[h])>g,m&&(y.parsed=n,y.raw=c.data[p]),d&&(y.options=u||this.resolveDataElementOptions(p,e.active?"active":r)),b||this.updateElement(e,p,y,r),v=n}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,n=e.options&&e.options.borderWidth||0,i=t.data||[];if(!i.length)return n;const r=i[0].size(this.resolveDataElementOptions(0)),o=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(n,r,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}L.id="line",L.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},L.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class D extends x{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,r=n.data.labels||[],o=(0,i.o)(e._parsed[t].r,n.options.locale);return{label:r[t]||"",value:o}}parseObjectData(t,e,n,r){return i.y.bind(this)(t,e,n,r)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach(((t,n)=>{const i=this.getParsed(n).r;!isNaN(i)&&this.chart.getDataVisibility(n)&&(ie.max&&(e.max=i))})),e}_updateRadius(){const t=this.chart,e=t.chartArea,n=t.options,i=Math.min(e.right-e.left,e.bottom-e.top),r=Math.max(i/2,0),o=(r-Math.max(n.cutoutPercentage?r/100*n.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=r-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(t,e,n,r){const o="reset"===r,s=this.chart,a=s.options.animation,l=this._cachedMeta.rScale,c=l.xCenter,u=l.yCenter,d=l.getIndexAngle(0)-.5*i.P;let h,f=d;const p=360/this.countVisibleElements();for(h=0;h{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&e++})),e}_computeAngle(t,e,n){return this.chart.getDataVisibility(t)?(0,i.t)(this.resolveDataElementOptions(t,e).angle||n):0}}D.id="polarArea",D.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},D.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=t.legend.options;return e.labels.map(((e,i)=>{const r=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:r.backgroundColor,strokeStyle:r.borderColor,lineWidth:r.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(i),index:i}}))}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label:t=>t.chart.data.labels[t.dataIndex]+": "+t.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class I extends A{}I.id="pie",I.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class R extends x{getLabelAndValue(t){const e=this._cachedMeta.vScale,n=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(n[e.axis])}}parseObjectData(t,e,n,r){return i.y.bind(this)(t,e,n,r)}update(t){const e=this._cachedMeta,n=e.dataset,i=e.data||[],r=e.iScale.getLabels();if(n.points=i,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const o={_loop:!0,_fullLoop:r.length===i.length,options:e};this.updateElement(n,void 0,o,t)}this.updateElements(i,0,i.length,t)}updateElements(t,e,n,i){const r=this._cachedMeta.rScale,o="reset"===i;for(let s=e;s{i[t]=n[t]&&n[t].active()?n[t]._to:this[t]})),i}}F.defaults={},F.defaultRoutes=void 0;const z={values:t=>(0,i.b)(t)?t:""+t,numeric(t,e,n){if(0===t)return"0";const r=this.chart.options.locale;let o,s=t;if(n.length>1){const e=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(e<1e-4||e>1e15)&&(o="scientific"),s=function(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t));return n}(t,n)}const a=(0,i.z)(Math.abs(s)),l=Math.max(Math.min(-1*Math.floor(a),20),0),c={notation:o,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(c,this.options.ticks.format),(0,i.o)(t,r,c)},logarithmic(t,e,n){if(0===t)return"0";const r=t/Math.pow(10,Math.floor((0,i.z)(t)));return 1===r||2===r||5===r?z.numeric.call(this,t,e,n):""}};var N={formatters:z};function B(t,e){const n=t.options.ticks,r=n.maxTicksLimit||function(t){const e=t.options.offset,n=t._tickSize(),i=t._length/n+(e?0:1),r=t._maxLength/n;return Math.floor(Math.min(i,r))}(t),o=n.major.enabled?function(t){const e=[];let n,i;for(n=0,i=t.length;nr)return function(t,e,n,i){let r,o=0,s=n[0];for(i=Math.ceil(i),r=0;ro)return e}return Math.max(o,1)}(o,e,r);if(s>0){let t,n;const r=s>1?Math.round((l-a)/(s-1)):null;for(W(e,c,u,(0,i.k)(r)?0:a-r,a),t=0,n=s-1;te.lineWidth,tickColor:(t,e)=>e.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:N.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),i.d.route("scale.ticks","color","","color"),i.d.route("scale.grid","color","","borderColor"),i.d.route("scale.grid","borderColor","","borderColor"),i.d.route("scale.title","color","","color"),i.d.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),i.d.describe("scales",{_fallback:"scale"}),i.d.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const H=(t,e,n)=>"top"===e||"left"===e?t[e]+n:t[e]-n;function V(t,e){const n=[],i=t.length/e,r=t.length;let o=0;for(;os+a)))return c}function $(t){return t.drawTicks?t.tickLength:0}function U(t,e){if(!t.display)return 0;const n=(0,i.O)(t.font,e),r=(0,i.K)(t.padding);return((0,i.b)(t.text)?t.text.length:1)*n.lineHeight+r.height}function Y(t,e,n){let r=(0,i.R)(t);return(n&&"right"!==e||!n&&"right"===e)&&(r=(t=>"left"===t?"right":"right"===t?"left":t)(r)),r}class Q extends F{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:n,_suggestedMax:r}=this;return t=(0,i.B)(t,Number.POSITIVE_INFINITY),e=(0,i.B)(e,Number.NEGATIVE_INFINITY),n=(0,i.B)(n,Number.POSITIVE_INFINITY),r=(0,i.B)(r,Number.NEGATIVE_INFINITY),{min:(0,i.B)(t,n),max:(0,i.B)(e,r),minDefined:(0,i.g)(t),maxDefined:(0,i.g)(e)}}getMinMax(t){let e,{min:n,max:r,minDefined:o,maxDefined:s}=this.getUserBounds();if(o&&s)return{min:n,max:r};const a=this.getMatchingVisibleMetas();for(let i=0,l=a.length;ir?r:n,r=o&&n>r?n:r,{min:(0,i.B)(n,(0,i.B)(r,n)),max:(0,i.B)(r,(0,i.B)(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){(0,i.C)(this.options.beforeUpdate,[this])}update(t,e,n){const{beginAtZero:r,grace:o,ticks:s}=this.options,a=s.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=(0,i.D)(this,o,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a=o||n<=1||!this.isHorizontal())return void(this.labelRotation=r);const u=this._getLabelSizes(),d=u.widest.width,h=u.highest.height,f=(0,i.E)(this.chart.width-d,0,this.maxWidth);s=t.offset?this.maxWidth/n:f/(n-1),d+6>s&&(s=f/(n-(t.offset?.5:1)),a=this.maxHeight-$(t.grid)-e.padding-U(t.title,this.chart.options.font),l=Math.sqrt(d*d+h*h),c=(0,i.F)(Math.min(Math.asin((0,i.E)((u.highest.height+6)/s,-1,1)),Math.asin((0,i.E)(a/l,-1,1))-Math.asin((0,i.E)(h/l,-1,1)))),c=Math.max(r,Math.min(o,c))),this.labelRotation=c}afterCalculateLabelRotation(){(0,i.C)(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){(0,i.C)(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:n,title:r,grid:o}}=this,s=this._isVisible(),a=this.isHorizontal();if(s){const s=U(r,e.options.font);if(a?(t.width=this.maxWidth,t.height=$(o)+s):(t.height=this.maxHeight,t.width=$(o)+s),n.display&&this.ticks.length){const{first:e,last:r,widest:o,highest:s}=this._getLabelSizes(),l=2*n.padding,c=(0,i.t)(this.labelRotation),u=Math.cos(c),d=Math.sin(c);if(a){const e=n.mirror?0:d*o.width+u*s.height;t.height=Math.min(this.maxHeight,t.height+e+l)}else{const e=n.mirror?0:u*o.width+d*s.height;t.width=Math.min(this.maxWidth,t.width+e+l)}this._calculatePadding(e,r,d,u)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,n,i){const{ticks:{align:r,padding:o},position:s}=this.options,a=0!==this.labelRotation,l="top"!==s&&"x"===this.axis;if(this.isHorizontal()){const s=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,d=0;a?l?(u=i*t.width,d=n*e.height):(u=n*t.height,d=i*e.width):"start"===r?d=e.width:"end"===r?u=t.width:"inner"!==r&&(u=t.width/2,d=e.width/2),this.paddingLeft=Math.max((u-s+o)*this.width/(this.width-s),0),this.paddingRight=Math.max((d-c+o)*this.width/(this.width-c),0)}else{let n=e.height/2,i=t.height/2;"start"===r?(n=0,i=t.height):"end"===r&&(n=e.height,i=0),this.paddingTop=n+o,this.paddingBottom=i+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){(0,i.C)(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,n=t.length;e{const n=t.gc,i=n.length/2;let r;if(i>e){for(r=0;r({width:o[t]||0,height:s[t]||0});return{first:w(0),last:w(e-1),widest:w(_),highest:w(x),widths:o,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return(0,i.I)(this._alignToPixels?(0,i.J)(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&ta*r?a/n:l/r:l*r0}_computeGridLineItems(t){const e=this.axis,n=this.chart,r=this.options,{grid:o,position:s}=r,a=o.offset,l=this.isHorizontal(),c=this.ticks.length+(a?1:0),u=$(o),d=[],h=o.setContext(this.getContext()),f=h.drawBorder?h.borderWidth:0,p=f/2,m=function(t){return(0,i.J)(n,t,f)};let g,b,v,y,_,x,w,j,k,O,S,E;if("top"===s)g=m(this.bottom),x=this.bottom-u,j=g-p,O=m(t.top)+p,E=t.bottom;else if("bottom"===s)g=m(this.top),O=t.top,E=m(t.bottom)-p,x=g+p,j=this.top+u;else if("left"===s)g=m(this.right),_=this.right-u,w=g-p,k=m(t.left)+p,S=t.right;else if("right"===s)g=m(this.left),k=t.left,S=m(t.right)-p,_=g+p,w=this.left+u;else if("x"===e){if("center"===s)g=m((t.top+t.bottom)/2+.5);else if((0,i.i)(s)){const t=Object.keys(s)[0],e=s[t];g=m(this.chart.scales[t].getPixelForValue(e))}O=t.top,E=t.bottom,x=g+p,j=x+u}else if("y"===e){if("center"===s)g=m((t.left+t.right)/2);else if((0,i.i)(s)){const t=Object.keys(s)[0],e=s[t];g=m(this.chart.scales[t].getPixelForValue(e))}_=g-p,w=_-u,k=t.left,S=t.right}const M=(0,i.v)(r.ticks.maxTicksLimit,c),P=Math.max(1,Math.ceil(c/M));for(b=0;be.value===t));if(n>=0){return e.setContext(this.getContext(n)).lineWidth}return 0}drawGrid(t){const e=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let r,o;const s=(t,e,i)=>{i.width&&i.color&&(n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.setLineDash(i.borderDash||[]),n.lineDashOffset=i.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(e.display)for(r=0,o=i.length;r{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:n+1,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[];let r,o;for(r=0,o=e.length;r{const r=n.split("."),o=r.pop(),s=[t].concat(r).join("."),a=e[n].split("."),l=a.pop(),c=a.join(".");i.d.route(s,o,c,l)}))}(e,t.defaultRoutes);t.descriptors&&i.d.describe(e,t.descriptors)}(t,s,n),this.override&&i.d.override(t.id,t.overrides)),s}get(t){return this.items[t]}unregister(t){const e=this.items,n=t.id,r=this.scope;n in e&&delete e[n],r&&n in i.d[r]&&(delete i.d[r][n],this.override&&delete i.U[n])}}var G=new class{constructor(){this.controllers=new X(x,"datasets",!0),this.elements=new X(F,"elements"),this.plugins=new X(Object,"plugins"),this.scales=new X(Q,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,n){[...e].forEach((e=>{const r=n||this._getRegistryForType(e);n||r.isForType(e)||r===this.plugins&&e.id?this._exec(t,r,e):(0,i.Q)(e,(e=>{const i=n||this._getRegistryForType(e);this._exec(t,i,e)}))}))}_exec(t,e,n){const r=(0,i.W)(t);(0,i.C)(n["before"+r],[],n),e[t](n),(0,i.C)(n["after"+r],[],n)}_getRegistryForType(t){for(let e=0;e0&&this.getParsed(e-1);for(let u=e;u0&&Math.abs(n[f]-y[f])>b,g&&(m.parsed=n,m.raw=c.data[u]),h&&(m.options=d||this.resolveDataElementOptions(u,e.active?"active":r)),v||this.updateElement(e,u,m,r),y=n}this.updateSharedOptions(d,r,u)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let n=e.length-1;n>=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}const n=t.dataset,i=n.options&&n.options.borderWidth||0;if(!e.length)return i;const r=e[0].size(this.resolveDataElementOptions(0)),o=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(i,r,o)/2}}K.id="scatter",K.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},K.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:t=>"("+t.label+", "+t.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var J=Object.freeze({__proto__:null,BarController:T,BubbleController:C,DoughnutController:A,LineController:L,PolarAreaController:D,PieController:I,RadarController:R,ScatterController:K});function Z(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class tt{constructor(t){this.options=t||{}}init(t){}formats(){return Z()}parse(t,e){return Z()}format(t,e){return Z()}add(t,e,n){return Z()}diff(t,e,n){return Z()}startOf(t,e,n){return Z()}endOf(t,e){return Z()}}tt.override=function(t){Object.assign(tt.prototype,t)};var et={_date:tt};function nt(t,e,n,r){const{controller:o,data:s,_sorted:a}=t,l=o._cachedMeta.iScale;if(l&&e===l.axis&&"r"!==e&&a&&s.length){const t=l._reversePixels?i.Y:i.Z;if(!r)return t(s,e,n);if(o._sharedOptions){const i=s[0],r="function"==typeof i.getRange&&i.getRange(e);if(r){const i=t(s,e,n-r),o=t(s,e,n+r);return{lo:i.lo,hi:o.hi}}}}return{lo:0,hi:s.length-1}}function it(t,e,n,i,r){const o=t.getSortedVisibleDatasetMetas(),s=n[e];for(let t=0,n=o.length;t{t[s](e[n],r)&&(o.push({element:t,datasetIndex:i,index:l}),a=a||t.inRange(e.x,e.y,r))})),i&&!a?[]:o}var lt={evaluateInteractionItems:it,modes:{index(t,e,n,r){const o=(0,i.X)(e,t),s=n.axis||"x",a=n.includeInvisible||!1,l=n.intersect?rt(t,o,s,r,a):st(t,o,s,!1,r,a),c=[];return l.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=l[0].index,n=t.data[e];n&&!n.skip&&c.push({element:n,datasetIndex:t.index,index:e})})),c):[]},dataset(t,e,n,r){const o=(0,i.X)(e,t),s=n.axis||"xy",a=n.includeInvisible||!1;let l=n.intersect?rt(t,o,s,r,a):st(t,o,s,!1,r,a);if(l.length>0){const e=l[0].datasetIndex,n=t.getDatasetMeta(e).data;l=[];for(let t=0;trt(t,(0,i.X)(e,t),n.axis||"xy",r,n.includeInvisible||!1),nearest(t,e,n,r){const o=(0,i.X)(e,t),s=n.axis||"xy",a=n.includeInvisible||!1;return st(t,o,s,n.intersect,r,a)},x:(t,e,n,r)=>at(t,(0,i.X)(e,t),"x",n.intersect,r),y:(t,e,n,r)=>at(t,(0,i.X)(e,t),"y",n.intersect,r)}};const ct=["left","top","right","bottom"];function ut(t,e){return t.filter((t=>t.pos===e))}function dt(t,e){return t.filter((t=>-1===ct.indexOf(t.pos)&&t.box.axis===e))}function ht(t,e){return t.sort(((t,n)=>{const i=e?n:t,r=e?t:n;return i.weight===r.weight?i.index-r.index:i.weight-r.weight}))}function ft(t,e){const n=function(t){const e={};for(const n of t){const{stack:t,pos:i,stackWeight:r}=n;if(!t||!ct.includes(i))continue;const o=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=r}return e}(t),{vBoxMaxWidth:i,hBoxMaxHeight:r}=e;let o,s,a;for(o=0,s=t.length;o{i[t]=Math.max(e[t],n[t])})),i}return i(t?["left","right"]:["top","bottom"])}function vt(t,e,n,i){const r=[];let o,s,a,l,c,u;for(o=0,s=t.length,c=0;ot.box.fullSize)),!0),i=ht(ut(e,"left"),!0),r=ht(ut(e,"right")),o=ht(ut(e,"top"),!0),s=ht(ut(e,"bottom")),a=dt(e,"x"),l=dt(e,"y");return{fullSize:n,leftAndTop:i.concat(o),rightAndBottom:r.concat(l).concat(s).concat(a),chartArea:ut(e,"chartArea"),vertical:i.concat(r).concat(l),horizontal:o.concat(s).concat(a)}}(t.boxes),c=l.vertical,u=l.horizontal;(0,i.Q)(t.boxes,(t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}));const d=c.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,h=Object.freeze({outerWidth:e,outerHeight:n,padding:o,availableWidth:s,availableHeight:a,vBoxMaxWidth:s/2/d,hBoxMaxHeight:a/2}),f=Object.assign({},o);mt(f,(0,i.K)(r));const p=Object.assign({maxPadding:f,w:s,h:a,x:o.left,y:o.top},o),m=ft(c.concat(u),h);vt(l.fullSize,p,h,m),vt(c,p,h,m),vt(u,p,h,m)&&vt(c,p,h,m),function(t){const e=t.maxPadding;function n(n){const i=Math.max(e[n]-t[n],0);return t[n]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}(p),_t(l.leftAndTop,p,h,m),p.x+=p.w,p.y+=p.h,_t(l.rightAndBottom,p,h,m),t.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},(0,i.Q)(l.chartArea,(e=>{const n=e.box;Object.assign(n,t.chartArea),n.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})}))}};class wt{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,n){}removeEventListener(t,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,n,i){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,i?Math.floor(e/i):n)}}isAttached(t){return!0}updateConfig(t){}}class jt extends wt{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const kt="$chartjs",Ot={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},St=t=>null===t||""===t;const Et=!!i.a5&&{passive:!0};function Mt(t,e,n){t.canvas.removeEventListener(e,n,Et)}function Pt(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function Tt(t,e,n){const i=t.canvas,r=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||Pt(n.addedNodes,i),e=e&&!Pt(n.removedNodes,i);e&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}function Ct(t,e,n){const i=t.canvas,r=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||Pt(n.removedNodes,i),e=e&&!Pt(n.addedNodes,i);e&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}const At=new Map;let Lt=0;function Dt(){const t=window.devicePixelRatio;t!==Lt&&(Lt=t,At.forEach(((e,n)=>{n.currentDevicePixelRatio!==t&&e()})))}function It(t,e,n){const r=t.canvas,o=r&&(0,i.a2)(r);if(!o)return;const s=(0,i.a4)(((t,e)=>{const i=o.clientWidth;n(t,e),i{const e=t[0],n=e.contentRect.width,i=e.contentRect.height;0===n&&0===i||s(n,i)}));return a.observe(o),function(t,e){At.size||window.addEventListener("resize",Dt),At.set(t,e)}(t,s),a}function Rt(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){At.delete(t),At.size||window.removeEventListener("resize",Dt)}(t)}function Ft(t,e,n){const r=t.canvas,o=(0,i.a4)((e=>{null!==t.ctx&&n(function(t,e){const n=Ot[t.type]||t.type,{x:r,y:o}=(0,i.X)(t,e);return{type:n,chart:e,native:t,x:void 0!==r?r:null,y:void 0!==o?o:null}}(e,t))}),t,(t=>{const e=t[0];return[e,e.offsetX,e.offsetY]}));return function(t,e,n){t.addEventListener(e,n,Et)}(r,e,o),o}class zt extends wt{acquireContext(t,e){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){const n=t.style,r=t.getAttribute("height"),o=t.getAttribute("width");if(t[kt]={initial:{height:r,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",St(o)){const e=(0,i.a3)(t,"width");void 0!==e&&(t.width=e)}if(St(r))if(""===t.style.height)t.height=t.width/(e||2);else{const e=(0,i.a3)(t,"height");void 0!==e&&(t.height=e)}}(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e[kt])return!1;const n=e[kt].initial;["height","width"].forEach((t=>{const r=n[t];(0,i.k)(r)?e.removeAttribute(t):e.setAttribute(t,r)}));const r=n.style||{};return Object.keys(r).forEach((t=>{e.style[t]=r[t]})),e.width=e.width,delete e[kt],!0}addEventListener(t,e,n){this.removeEventListener(t,e);const i=t.$proxies||(t.$proxies={}),r={attach:Tt,detach:Ct,resize:It}[e]||Ft;i[e]=r(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),i=n[e];if(!i)return;({attach:Rt,detach:Rt,resize:Rt}[e]||Mt)(t,e,i),n[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,r){return(0,i.a1)(t,e,n,r)}isAttached(t){const e=(0,i.a2)(t);return!(!e||!e.isConnected)}}function Nt(t){return!(0,i.a6)()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?jt:zt}class Bt{constructor(){this._init=[]}notify(t,e,n,i){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const r=i?this._descriptors(t).filter(i):this._descriptors(t),o=this._notify(r,t,e,n);return"afterDestroy"===e&&(this._notify(r,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,e,n,r){r=r||{};for(const o of t){const t=o.plugin,s=t[n],a=[e,r,o.options];if(!1===(0,i.C)(s,a,t)&&r.cancelable)return!1}return!0}invalidate(){(0,i.k)(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const n=t&&t.config,r=(0,i.v)(n.options&&n.options.plugins,{}),o=function(t){const e={},n=[],i=Object.keys(G.plugins.items);for(let t=0;tt.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(i(e,n),t,"stop"),this._notify(i(n,e),t,"start")}}function Wt(t,e){return e||!1!==t?!0===t?{}:t:null}function Ht(t,{plugin:e,local:n},i,r){const o=t.pluginScopeKeys(e),s=t.getOptionScopes(i,o);return n&&e.defaults&&s.push(e.defaults),t.createResolver(s,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Vt(t,e){const n=i.d.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function qt(t,e){return"x"===t||"y"===t?t:e.axis||("top"===(n=e.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||t.charAt(0).toLowerCase();var n}function $t(t){const e=t.options||(t.options={});e.plugins=(0,i.v)(e.plugins,{}),e.scales=function(t,e){const n=i.U[t.type]||{scales:{}},r=e.scales||{},o=Vt(t.type,e),s=Object.create(null),a=Object.create(null);return Object.keys(r).forEach((t=>{const e=r[t];if(!(0,i.i)(e))return console.error(`Invalid scale configuration for scale: ${t}`);if(e._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const l=qt(t,e),c=function(t,e){return t===e?"_index_":"_value_"}(l,o),u=n.scales||{};s[l]=s[l]||t,a[t]=(0,i.ac)(Object.create(null),[{axis:l},e,u[l],u[c]])})),t.data.datasets.forEach((n=>{const o=n.type||t.type,l=n.indexAxis||Vt(o,e),c=(i.U[o]||{}).scales||{};Object.keys(c).forEach((t=>{const e=function(t,e){let n=t;return"_index_"===t?n=e:"_value_"===t&&(n="x"===e?"y":"x"),n}(t,l),o=n[e+"AxisID"]||s[e]||e;a[o]=a[o]||Object.create(null),(0,i.ac)(a[o],[{axis:e},r[o],c[t]])}))})),Object.keys(a).forEach((t=>{const e=a[t];(0,i.ac)(e,[i.d.scales[e.type],i.d.scale])})),a}(t,e)}function Ut(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const Yt=new Map,Qt=new Set;function Xt(t,e){let n=Yt.get(t);return n||(n=e(),Yt.set(t,n),Qt.add(n)),n}const Gt=(t,e,n)=>{const r=(0,i.f)(e,n);void 0!==r&&t.add(r)};class Kt{constructor(t){this._config=function(t){return(t=t||{}).data=Ut(t.data),$t(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Ut(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),$t(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Xt(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return Xt(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return Xt(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return Xt(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const n=this._scopeCache;let i=n.get(t);return i&&!e||(i=new Map,n.set(t,i)),i}getOptionScopes(t,e,n){const{options:r,type:o}=this,s=this._cachedScopes(t,n),a=s.get(e);if(a)return a;const l=new Set;e.forEach((e=>{t&&(l.add(t),e.forEach((e=>Gt(l,t,e)))),e.forEach((t=>Gt(l,r,t))),e.forEach((t=>Gt(l,i.U[o]||{},t))),e.forEach((t=>Gt(l,i.d,t))),e.forEach((t=>Gt(l,i.a7,t)))}));const c=Array.from(l);return 0===c.length&&c.push(Object.create(null)),Qt.has(e)&&s.set(e,c),c}chartOptionScopes(){const{options:t,type:e}=this;return[t,i.U[e]||{},i.d.datasets[e]||{},{type:e},i.d,i.a7]}resolveNamedOptions(t,e,n,r=[""]){const o={$shared:!0},{resolver:s,subPrefixes:a}=Jt(this._resolverCache,t,r);let l=s;if(function(t,e){const{isScriptable:n,isIndexable:r}=(0,i.ab)(t);for(const o of e){const e=n(o),s=r(o),a=(s||e)&&t[o];if(e&&((0,i.a8)(a)||Zt(a))||s&&(0,i.b)(a))return!0}return!1}(s,e)){o.$shared=!1,n=(0,i.a8)(n)?n():n;const e=this.createResolver(t,n,a);l=(0,i.a9)(s,n,e)}for(const t of e)o[t]=l[t];return o}createResolver(t,e,n=[""],r){const{resolver:o}=Jt(this._resolverCache,t,n);return(0,i.i)(e)?(0,i.a9)(o,e,void 0,r):o}}function Jt(t,e,n){let r=t.get(e);r||(r=new Map,t.set(e,r));const o=n.join();let s=r.get(o);if(!s){s={resolver:(0,i.aa)(e,n),subPrefixes:n.filter((t=>!t.toLowerCase().includes("hover")))},r.set(o,s)}return s}const Zt=t=>(0,i.i)(t)&&Object.getOwnPropertyNames(t).reduce(((e,n)=>e||(0,i.a8)(t[n])),!1);const te=["top","bottom","left","right","chartArea"];function ee(t,e){return"top"===t||"bottom"===t||-1===te.indexOf(t)&&"x"===e}function ne(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function ie(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),(0,i.C)(n&&n.onComplete,[t],e)}function re(t){const e=t.chart,n=e.options.animation;(0,i.C)(n&&n.onProgress,[t],e)}function oe(t){return(0,i.a6)()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const se={},ae=t=>{const e=oe(t);return Object.values(se).filter((t=>t.canvas===e)).pop()};function le(t,e,n){const i=Object.keys(t);for(const r of i){const i=+r;if(i>=e){const o=t[r];delete t[r],(n>0||i>e)&&(t[i+n]=o)}}}class ce{constructor(t,e){const n=this.config=new Kt(e),o=oe(t),s=ae(o);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const a=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||Nt(o)),this.platform.updateConfig(n);const l=this.platform.acquireContext(o,a.aspectRatio),c=l&&l.canvas,u=c&&c.height,d=c&&c.width;this.id=(0,i.ad)(),this.ctx=l,this.canvas=c,this.width=d,this.height=u,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Bt,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=(0,i.ae)((t=>this.update(t)),a.resizeDelay||0),this._dataChanges=[],se[this.id]=this,l&&c?(r.listen(this,"complete",ie),r.listen(this,"progress",re),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:n,height:r,_aspectRatio:o}=this;return(0,i.k)(t)?e&&o?o:r?n/r:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():(0,i.af)(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return(0,i.ag)(this.canvas,this.ctx),this}stop(){return r.stop(this),this}resize(t,e){r.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,r=this.canvas,o=n.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(r,t,e,o),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,(0,i.af)(this,a,!0)&&(this.notifyPlugins("resize",{size:s}),(0,i.C)(n.onResize,[this,s],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const t=this.options.scales||{};(0,i.Q)(t,((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,n=this.scales,r=Object.keys(n).reduce(((t,e)=>(t[e]=!1,t)),{});let o=[];e&&(o=o.concat(Object.keys(e).map((t=>{const n=e[t],i=qt(t,n),r="r"===i,o="x"===i;return{options:n,dposition:r?"chartArea":o?"bottom":"left",dtype:r?"radialLinear":o?"category":"linear"}})))),(0,i.Q)(o,(e=>{const o=e.options,s=o.id,a=qt(s,o),l=(0,i.v)(o.type,e.dtype);void 0!==o.position&&ee(o.position,a)===ee(e.dposition)||(o.position=e.dposition),r[s]=!0;let c=null;if(s in n&&n[s].type===l)c=n[s];else{c=new(G.getScale(l))({id:s,type:l,ctx:this.ctx,chart:this}),n[c.id]=c}c.init(o,t)})),(0,i.Q)(r,((t,e)=>{t||delete n[e]})),(0,i.Q)(n,(t=>{xt.configure(this,t,t.options),xt.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort(((t,e)=>t.index-e.index)),n>e){for(let t=e;te.length&&delete this._stacks,t.forEach(((t,n)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let n,r;for(this._removeUnreferencedMetasets(),n=0,r=e.length;n{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let t=0,e=this.data.datasets.length;t{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(ne("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){(0,i.Q)(this.scales,(t=>{xt.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);(0,i.ah)(e,n)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:i,count:r}of e){le(t,i,"_removeElements"===n?-r:r)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),r=n(0);for(let t=1;tt.split(","))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;xt.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],(0,i.Q)(this.boxes,(t=>{n&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))}),this),this._layers.forEach(((t,e)=>{t._idx=e})),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,n=t._clip,r=!n.disabled,o=this.chartArea,s={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",s)&&(r&&(0,i.L)(e,{left:!1===n.left?0:o.left-n.left,right:!1===n.right?this.width:o.right+n.right,top:!1===n.top?0:o.top-n.top,bottom:!1===n.bottom?this.height:o.bottom+n.bottom}),t.controller.draw(),r&&(0,i.N)(e),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(t){return(0,i.$)(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,n,i){const r=lt.modes[e];return"function"==typeof r?r(this,t,n,i):[]}getDatasetMeta(t){const e=this.data.datasets[t],n=this._metasets;let i=n.filter((t=>t&&t._dataset===e)).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},n.push(i)),i}getContext(){return this.$context||(this.$context=(0,i.h)(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const n=this.getDatasetMeta(t);return"boolean"==typeof n.hidden?!n.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,n){const r=n?"show":"hide",o=this.getDatasetMeta(t),s=o.controller._resolveAnimations(void 0,r);(0,i.j)(e)?(o.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),s.update(o,{visible:n}),this.update((e=>e.datasetIndex===t?r:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),r.remove(this),t=0,e=this.data.datasets.length;t{e.addEventListener(this,n,i),t[n]=i},r=(t,e,n)=>{t.offsetX=e,t.offsetY=n,this._eventHandler(t)};(0,i.Q)(this.options.events,(t=>n(t,r)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(n,i)=>{t[n]&&(e.removeEventListener(this,n,i),delete t[n])},r=(t,e)=>{this.canvas&&this.resize(t,e)};let o;const s=()=>{i("attach",s),this.attached=!0,this.resize(),n("resize",r),n("detach",o)};o=()=>{this.attached=!1,i("resize",r),this._stop(),this._resize(0,0),n("attach",s)},e.isAttached(this.canvas)?s():o()}unbindEvents(){(0,i.Q)(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},(0,i.Q)(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){const i=n?"set":"remove";let r,o,s,a;for("dataset"===e&&(r=this.getDatasetMeta(t[0].datasetIndex),r.controller["_"+i+"DatasetHoverStyle"]()),s=0,a=t.length;s{const n=this.getDatasetMeta(t);if(!n)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:n.data[e],index:e}}));!(0,i.ai)(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(t,e,n){return this._plugins.notify(this,t,e,n)}_updateHoverStyles(t,e,n){const i=this.options.hover,r=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),o=r(e,t),s=n?t:r(t,e);o.length&&this.updateHoverStyle(o,i.mode,!1),s.length&&i.mode&&this.updateHoverStyle(s,i.mode,!0)}_eventHandler(t,e){const n={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},i=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",n,i))return;const r=this._handleEvent(t,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,i),(r||n.changed)&&this.render(),this}_handleEvent(t,e,n){const{_active:r=[],options:o}=this,s=e,a=this._getActiveElements(t,r,n,s),l=(0,i.aj)(t),c=function(t,e,n,i){return n&&"mouseout"!==t.type?i?e:t:null}(t,this._lastEvent,n,l);n&&(this._lastEvent=null,(0,i.C)(o.onHover,[t,a,this],this),l&&(0,i.C)(o.onClick,[t,a,this],this));const u=!(0,i.ai)(a,r);return(u||e)&&(this._active=a,this._updateHoverStyles(a,r,e)),this._lastEvent=c,u}_getActiveElements(t,e,n,i){if("mouseout"===t.type)return[];if(!n)return e;const r=this.options.hover;return this.getElementsAtEventForMode(t,r.mode,r,i)}}const ue=()=>(0,i.Q)(ce.instances,(t=>t._plugins.invalidate())),de=!0;function he(t,e,n){const{startAngle:r,pixelMargin:o,x:s,y:a,outerRadius:l,innerRadius:c}=e;let u=o/l;t.beginPath(),t.arc(s,a,l,r-u,n+u),c>o?(u=o/c,t.arc(s,a,c,n+u,r-u,!0)):t.arc(s,a,o,n+i.H,r-i.H),t.closePath(),t.clip()}function fe(t,e,n,r){const o=(s=t.options.borderRadius,(0,i.al)(s,["outerStart","outerEnd","innerStart","innerEnd"]));var s;const a=(n-e)/2,l=Math.min(a,r*e/2),c=t=>{const e=(n-Math.min(a,t))*r/2;return(0,i.E)(t,0,Math.min(a,e))};return{outerStart:c(o.outerStart),outerEnd:c(o.outerEnd),innerStart:(0,i.E)(o.innerStart,0,l),innerEnd:(0,i.E)(o.innerEnd,0,l)}}function pe(t,e,n,i){return{x:n+t*Math.cos(e),y:i+t*Math.sin(e)}}function me(t,e,n,r,o,s){const{x:a,y:l,startAngle:c,pixelMargin:u,innerRadius:d}=e,h=Math.max(e.outerRadius+r+n-u,0),f=d>0?d+r+n+u:0;let p=0;const m=o-c;if(r){const t=((d>0?d-r:0)+(h>0?h-r:0))/2;p=(m-(0!==t?m*t/(t+r):m))/2}const g=(m-Math.max(.001,m*h-n/i.P)/h)/2,b=c+g+p,v=o-g-p,{outerStart:y,outerEnd:_,innerStart:x,innerEnd:w}=fe(e,f,h,v-b),j=h-y,k=h-_,O=b+y/j,S=v-_/k,E=f+x,M=f+w,P=b+x/E,T=v-w/M;if(t.beginPath(),s){if(t.arc(a,l,h,O,S),_>0){const e=pe(k,S,a,l);t.arc(e.x,e.y,_,S,v+i.H)}const e=pe(M,v,a,l);if(t.lineTo(e.x,e.y),w>0){const e=pe(M,T,a,l);t.arc(e.x,e.y,w,v+i.H,T+Math.PI)}if(t.arc(a,l,f,v-w/f,b+x/f,!0),x>0){const e=pe(E,P,a,l);t.arc(e.x,e.y,x,P+Math.PI,b-i.H)}const n=pe(j,b,a,l);if(t.lineTo(n.x,n.y),y>0){const e=pe(j,O,a,l);t.arc(e.x,e.y,y,b-i.H,O)}}else{t.moveTo(a,l);const e=Math.cos(O)*h+a,n=Math.sin(O)*h+l;t.lineTo(e,n);const i=Math.cos(S)*h+a,r=Math.sin(S)*h+l;t.lineTo(i,r)}t.closePath()}function ge(t,e,n,r,o,s){const{options:a}=e,{borderWidth:l,borderJoinStyle:c}=a,u="inner"===a.borderAlign;l&&(u?(t.lineWidth=2*l,t.lineJoin=c||"round"):(t.lineWidth=l,t.lineJoin=c||"bevel"),e.fullCircles&&function(t,e,n){const{x:r,y:o,startAngle:s,pixelMargin:a,fullCircles:l}=e,c=Math.max(e.outerRadius-a,0),u=e.innerRadius+a;let d;for(n&&he(t,e,s+i.T),t.beginPath(),t.arc(r,o,u,s+i.T,s,!0),d=0;d{G.add(...t),ue()}},unregister:{enumerable:de,value:(...t)=>{G.remove(...t),ue()}}});class be extends F{constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,n){const r=this.getProps(["x","y"],n),{angle:o,distance:s}=(0,i.a0)(r,{x:t,y:e}),{startAngle:a,endAngle:l,innerRadius:c,outerRadius:u,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),h=this.options.spacing/2,f=(0,i.v)(d,l-a)>=i.T||(0,i.p)(o,a,l),p=(0,i.ak)(s,c+h,u+h);return f&&p}getCenterPoint(t){const{x:e,y:n,startAngle:i,endAngle:r,innerRadius:o,outerRadius:s}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:a,spacing:l}=this.options,c=(i+r)/2,u=(o+s+l+a)/2;return{x:e+Math.cos(c)*u,y:n+Math.sin(c)*u}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:n}=this,r=(e.offset||0)/2,o=(e.spacing||0)/2,s=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>i.T?Math.floor(n/i.T):0,0===n||this.innerRadius<0||this.outerRadius<0)return;t.save();let a=0;if(r){a=r/2;const e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*a,Math.sin(e)*a),this.circumference>=i.P&&(a=r)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const l=function(t,e,n,r,o){const{fullCircles:s,startAngle:a,circumference:l}=e;let c=e.endAngle;if(s){me(t,e,n,r,a+i.T,o);for(let e=0;ea&&o>a;return{count:i,start:l,loop:e.loop,ilen:c(s+(c?a-t:t))%o,y=()=>{f!==p&&(t.lineTo(g,p),t.lineTo(g,f),t.lineTo(g,m))};for(l&&(d=r[v(0)],t.moveTo(d.x,d.y)),u=0;u<=a;++u){if(d=r[v(u)],d.skip)continue;const e=d.x,n=d.y,i=0|e;i===h?(np&&(p=n),g=(b*g+e)/++b):(y(),t.lineTo(e,n),h=i,b=0,f=p=n),m=n}y()}function je(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!(t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||n)?we:xe}be.id="arc",be.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},be.defaultRoutes={backgroundColor:"backgroundColor"};const ke="function"==typeof Path2D;function Oe(t,e,n,i){ke&&!e.options.segment?function(t,e,n,i){let r=e._path;r||(r=e._path=new Path2D,e.path(r,n,i)&&r.closePath()),ve(t,e.options),t.stroke(r)}(t,e,n,i):function(t,e,n,i){const{segments:r,options:o}=e,s=je(e);for(const a of r)ve(t,o,a.style),t.beginPath(),s(t,e,a,{start:n,end:n+i-1})&&t.closePath(),t.stroke()}(t,e,n,i)}class Se extends F{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const r=n.spanGaps?this._loop:this._fullLoop;(0,i.am)(this._points,n,t,r,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=(0,i.an)(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,n=t.length;return n&&e[t[n-1].end]}interpolate(t,e){const n=this.options,r=t[e],o=this.points,s=(0,i.ao)(this,{property:e,start:r,end:r});if(!s.length)return;const a=[],l=function(t){return t.stepped?i.ap:t.tension||"monotone"===t.cubicInterpolationMode?i.aq:i.ar}(n);let c,u;for(c=0,u=s.length;c"borderDash"!==t&&"fill"!==t};class Me extends F{constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,n){const i=this.options,{x:r,y:o}=this.getProps(["x","y"],n);return Math.pow(t-r,2)+Math.pow(e-o,2){Fe(t)}))}var Ne={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,n)=>{if(!n.enabled)return void ze(t);const r=t.width;t.data.datasets.forEach(((e,o)=>{const{_data:s,indexAxis:a}=e,l=t.getDatasetMeta(o),c=s||e.data;if("y"===(0,i.a)([a,t.options.indexAxis]))return;if(!l.controller.supportsDecimation)return;const u=t.scales[l.xAxisID];if("linear"!==u.type&&"time"!==u.type)return;if(t.options.parsing)return;let{start:d,count:h}=function(t,e){const n=e.length;let r,o=0;const{iScale:s}=t,{min:a,max:l,minDefined:c,maxDefined:u}=s.getUserBounds();return c&&(o=(0,i.E)((0,i.Z)(e,s.axis,a).lo,0,n-1)),r=u?(0,i.E)((0,i.Z)(e,s.axis,l).hi+1,o,n)-o:n-o,{start:o,count:r}}(l,c);if(h<=(n.threshold||4*r))return void Fe(e);let f;switch((0,i.k)(s)&&(e._data=c,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),n.algorithm){case"lttb":f=function(t,e,n,i,r){const o=r.samples||i;if(o>=n)return t.slice(e,e+n);const s=[],a=(n-2)/(o-2);let l=0;const c=e+n-1;let u,d,h,f,p,m=e;for(s[l++]=t[m],u=0;uh&&(h=f,d=t[i],p=i);s[l++]=d,m=p}return s[l++]=t[c],s}(c,d,h,r,n);break;case"min-max":f=function(t,e,n,r){let o,s,a,l,c,u,d,h,f,p,m=0,g=0;const b=[],v=e+n-1,y=t[e].x,_=t[v].x-y;for(o=e;op&&(p=l,d=o),m=(g*m+s.x)/++g;else{const n=o-1;if(!(0,i.k)(u)&&!(0,i.k)(d)){const e=Math.min(u,d),i=Math.max(u,d);e!==h&&e!==n&&b.push({...t[e],x:m}),i!==h&&i!==n&&b.push({...t[i],x:m})}o>0&&n!==h&&b.push(t[n]),b.push(s),c=e,g=0,f=p=l,u=d=h=o}}return b}(c,d,h,r);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}e._decimated=f}))},destroy(t){ze(t)}};function Be(t,e,n,r){if(r)return;let o=e[t],s=n[t];return"angle"===t&&(o=(0,i.az)(o),s=(0,i.az)(s)),{property:t,start:o,end:s}}function We(t,e,n){for(;e>t;e--){const t=n[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function He(t,e,n,i){return t&&e?i(t[n],e[n]):t?t[n]:e?e[n]:0}function Ve(t,e){let n=[],r=!1;return(0,i.b)(t)?(r=!0,n=t):n=function(t,e){const{x:n=null,y:i=null}=t||{},r=e.points,o=[];return e.segments.forEach((({start:t,end:e})=>{e=We(t,e,r);const s=r[t],a=r[e];null!==i?(o.push({x:s.x,y:i}),o.push({x:a.x,y:i})):null!==n&&(o.push({x:n,y:s.y}),o.push({x:n,y:a.y}))})),o}(t,e),n.length?new Se({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function qe(t){return t&&!1!==t.fill}function $e(t,e,n){let r=t[e].fill;const o=[e];let s;if(!n)return r;for(;!1!==r&&-1===o.indexOf(r);){if(!(0,i.g)(r))return r;if(s=t[r],!s)return!1;if(s.visible)return r;o.push(r),r=s.fill}return!1}function Ue(t,e,n){const r=function(t){const e=t.options,n=e.fill;let r=(0,i.v)(n&&n.target,n);void 0===r&&(r=!!e.backgroundColor);if(!1===r||null===r)return!1;if(!0===r)return"origin";return r}(t);if((0,i.i)(r))return!isNaN(r.value)&&r;let o=parseFloat(r);return(0,i.g)(o)&&Math.floor(o)===o?function(t,e,n,i){"-"!==t&&"+"!==t||(n=e+n);if(n===e||n<0||n>=i)return!1;return n}(r[0],e,o,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function Ye(t,e,n){const i=[];for(let r=0;r=0;--e){const n=r[e].$filler;n&&(n.line.updateControlPoints(o,n.axis),i&&n.fill&&Ke(t.ctx,n,o))}},beforeDatasetsDraw(t,e,n){if("beforeDatasetsDraw"!==n.drawTime)return;const i=t.getSortedVisibleDatasetMetas();for(let e=i.length-1;e>=0;--e){const n=i[e].$filler;qe(n)&&Ke(t.ctx,n,t.chartArea)}},beforeDatasetDraw(t,e,n){const i=e.meta.$filler;qe(i)&&"beforeDatasetDraw"===n.drawTime&&Ke(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const rn=(t,e)=>{let{boxHeight:n=e,boxWidth:i=e}=t;return t.usePointStyle&&(n=Math.min(n,e),i=t.pointStyleWidth||Math.min(i,e)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(e,n)}};class on extends F{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,n){this.maxWidth=t,this.maxHeight=e,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=(0,i.C)(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,n)=>t.sort(e,n,this.chart.data)))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const n=t.labels,r=(0,i.O)(n.font),o=r.size,s=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=rn(n,o);let c,u;e.font=r.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(s,o,a,l)+10):(u=this.maxHeight,c=this._fitCols(s,o,a,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,e,n,i){const{ctx:r,maxWidth:o,options:{labels:{padding:s}}}=this,a=this.legendHitBoxes=[],l=this.lineWidths=[0],c=i+s;let u=t;r.textAlign="left",r.textBaseline="middle";let d=-1,h=-c;return this.legendItems.forEach(((t,f)=>{const p=n+e/2+r.measureText(t.text).width;(0===f||l[l.length-1]+p+2*s>o)&&(u+=c,l[l.length-(f>0?0:1)]=0,h+=c,d++),a[f]={left:0,top:h,row:d,width:p,height:i},l[l.length-1]+=p+s})),u}_fitCols(t,e,n,i){const{ctx:r,maxHeight:o,options:{labels:{padding:s}}}=this,a=this.legendHitBoxes=[],l=this.columnSizes=[],c=o-t;let u=s,d=0,h=0,f=0,p=0;return this.legendItems.forEach(((t,o)=>{const m=n+e/2+r.measureText(t.text).width;o>0&&h+i+2*s>c&&(u+=d+s,l.push({width:d,height:h}),f+=d+s,p++,d=h=0),a[o]={left:f,top:h,col:p,width:m,height:i},d=Math.max(d,m),h+=i+s})),u+=d,l.push({width:d,height:h}),u}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:n,labels:{padding:r},rtl:o}}=this,s=(0,i.aA)(o,this.left,this.width);if(this.isHorizontal()){let o=0,a=(0,i.S)(n,this.left+r,this.right-this.lineWidths[o]);for(const l of e)o!==l.row&&(o=l.row,a=(0,i.S)(n,this.left+r,this.right-this.lineWidths[o])),l.top+=this.top+t+r,l.left=s.leftForLtr(s.x(a),l.width),a+=l.width+r}else{let o=0,a=(0,i.S)(n,this.top+t+r,this.bottom-this.columnSizes[o].height);for(const l of e)l.col!==o&&(o=l.col,a=(0,i.S)(n,this.top+t+r,this.bottom-this.columnSizes[o].height)),l.top=a,l.left+=this.left+r,l.left=s.leftForLtr(s.x(l.left),l.width),a+=l.height+r}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;(0,i.L)(t,this),this._draw(),(0,i.N)(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:n,ctx:r}=this,{align:o,labels:s}=t,a=i.d.color,l=(0,i.aA)(t.rtl,this.left,this.width),c=(0,i.O)(s.font),{color:u,padding:d}=s,h=c.size,f=h/2;let p;this.drawTitle(),r.textAlign=l.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=c.string;const{boxWidth:m,boxHeight:g,itemHeight:b}=rn(s,h),v=this.isHorizontal(),y=this._computeTitleHeight();p=v?{x:(0,i.S)(o,this.left+d,this.right-n[0]),y:this.top+d+y,line:0}:{x:this.left+d,y:(0,i.S)(o,this.top+y+d,this.bottom-e[0].height),line:0},(0,i.aB)(this.ctx,t.textDirection);const _=b+d;this.legendItems.forEach(((x,w)=>{r.strokeStyle=x.fontColor||u,r.fillStyle=x.fontColor||u;const j=r.measureText(x.text).width,k=l.textAlign(x.textAlign||(x.textAlign=s.textAlign)),O=m+f+j;let S=p.x,E=p.y;l.setWidth(this.width),v?w>0&&S+O+d>this.right&&(E=p.y+=_,p.line++,S=p.x=(0,i.S)(o,this.left+d,this.right-n[p.line])):w>0&&E+_>this.bottom&&(S=p.x=S+e[p.line].width+d,p.line++,E=p.y=(0,i.S)(o,this.top+y+d,this.bottom-e[p.line].height));!function(t,e,n){if(isNaN(m)||m<=0||isNaN(g)||g<0)return;r.save();const o=(0,i.v)(n.lineWidth,1);if(r.fillStyle=(0,i.v)(n.fillStyle,a),r.lineCap=(0,i.v)(n.lineCap,"butt"),r.lineDashOffset=(0,i.v)(n.lineDashOffset,0),r.lineJoin=(0,i.v)(n.lineJoin,"miter"),r.lineWidth=o,r.strokeStyle=(0,i.v)(n.strokeStyle,a),r.setLineDash((0,i.v)(n.lineDash,[])),s.usePointStyle){const a={radius:g*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:o},c=l.xPlus(t,m/2),u=e+f;(0,i.aE)(r,a,c,u,s.pointStyleWidth&&m)}else{const s=e+Math.max((h-g)/2,0),a=l.leftForLtr(t,m),c=(0,i.ax)(n.borderRadius);r.beginPath(),Object.values(c).some((t=>0!==t))?(0,i.av)(r,{x:a,y:s,w:m,h:g,radius:c}):r.rect(a,s,m,g),r.fill(),0!==o&&r.stroke()}r.restore()}(l.x(S),E,x),S=(0,i.aC)(k,S+m+f,v?S+O:this.right,t.rtl),function(t,e,n){(0,i.M)(r,n.text,t,e+b/2,c,{strikethrough:n.hidden,textAlign:l.textAlign(n.textAlign)})}(l.x(S),E,x),v?p.x+=O+d:p.y+=_})),(0,i.aD)(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,n=(0,i.O)(e.font),r=(0,i.K)(e.padding);if(!e.display)return;const o=(0,i.aA)(t.rtl,this.left,this.width),s=this.ctx,a=e.position,l=n.size/2,c=r.top+l;let u,d=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),u=this.top+c,d=(0,i.S)(t.align,d,this.right-h);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);u=c+(0,i.S)(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const f=(0,i.S)(a,d,d+h);s.textAlign=o.textAlign((0,i.R)(a)),s.textBaseline="middle",s.strokeStyle=e.color,s.fillStyle=e.color,s.font=n.string,(0,i.M)(s,e.text,f,u,n)}_computeTitleHeight(){const t=this.options.title,e=(0,i.O)(t.font),n=(0,i.K)(t.padding);return t.display?e.lineHeight+n.height:0}_getLegendItemAt(t,e){let n,r,o;if((0,i.ak)(t,this.left,this.right)&&(0,i.ak)(e,this.top,this.bottom))for(o=this.legendHitBoxes,n=0;nt.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:o,color:s}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const a=t.controller.getStyle(n?0:void 0),l=(0,i.K)(a.borderWidth);return{text:e[t.index].label,fillStyle:a.backgroundColor,fontColor:s,hidden:!t.visible,lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:(l.width+l.height)/4,strokeStyle:a.borderColor,pointStyle:r||a.pointStyle,rotation:a.rotation,textAlign:o||a.textAlign,borderRadius:0,datasetIndex:t.index}}),this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class an extends F{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const r=(0,i.b)(n.text)?n.text.length:1;this._padding=(0,i.K)(n.padding);const o=r*(0,i.O)(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:n,bottom:r,right:o,options:s}=this,a=s.align;let l,c,u,d=0;return this.isHorizontal()?(c=(0,i.S)(a,n,o),u=e+t,l=o-n):("left"===s.position?(c=n+t,u=(0,i.S)(a,r,e),d=-.5*i.P):(c=o-t,u=(0,i.S)(a,e,r),d=.5*i.P),l=r-e),{titleX:c,titleY:u,maxWidth:l,rotation:d}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const n=(0,i.O)(e.font),r=n.lineHeight/2+this._padding.top,{titleX:o,titleY:s,maxWidth:a,rotation:l}=this._drawArgs(r);(0,i.M)(t,e.text,0,0,n,{color:e.color,maxWidth:a,rotation:l,textAlign:(0,i.R)(e.align),textBaseline:"middle",translation:[o,s]})}}var ln={id:"title",_element:an,start(t,e,n){!function(t,e){const n=new an({ctx:t.ctx,options:e,chart:t});xt.configure(t,n,e),xt.addBox(t,n),t.titleBlock=n}(t,n)},stop(t){const e=t.titleBlock;xt.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const i=t.titleBlock;xt.configure(t,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const cn=new WeakMap;var un={id:"subtitle",start(t,e,n){const i=new an({ctx:t.ctx,options:n,chart:t});xt.configure(t,i,n),xt.addBox(t,i),cn.set(t,i)},stop(t){xt.removeBox(t,cn.get(t)),cn.delete(t)},beforeUpdate(t,e,n){const i=cn.get(t);xt.configure(t,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const dn={average(t){if(!t.length)return!1;let e,n,i=0,r=0,o=0;for(e=0,n=t.length;e-1?t.split("\n"):t}function pn(t,e){const{element:n,datasetIndex:i,index:r}=e,o=t.getDatasetMeta(i).controller,{label:s,value:a}=o.getLabelAndValue(r);return{chart:t,label:s,parsed:o.getParsed(r),raw:t.data.datasets[i].data[r],formattedValue:a,dataset:o.getDataset(),dataIndex:r,datasetIndex:i,element:n}}function mn(t,e){const n=t.chart.ctx,{body:r,footer:o,title:s}=t,{boxWidth:a,boxHeight:l}=e,c=(0,i.O)(e.bodyFont),u=(0,i.O)(e.titleFont),d=(0,i.O)(e.footerFont),h=s.length,f=o.length,p=r.length,m=(0,i.K)(e.padding);let g=m.height,b=0,v=r.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);if(v+=t.beforeBody.length+t.afterBody.length,h&&(g+=h*u.lineHeight+(h-1)*e.titleSpacing+e.titleMarginBottom),v){g+=p*(e.displayColors?Math.max(l,c.lineHeight):c.lineHeight)+(v-p)*c.lineHeight+(v-1)*e.bodySpacing}f&&(g+=e.footerMarginTop+f*d.lineHeight+(f-1)*e.footerSpacing);let y=0;const _=function(t){b=Math.max(b,n.measureText(t).width+y)};return n.save(),n.font=u.string,(0,i.Q)(t.title,_),n.font=c.string,(0,i.Q)(t.beforeBody.concat(t.afterBody),_),y=e.displayColors?a+2+e.boxPadding:0,(0,i.Q)(r,(t=>{(0,i.Q)(t.before,_),(0,i.Q)(t.lines,_),(0,i.Q)(t.after,_)})),y=0,n.font=d.string,(0,i.Q)(t.footer,_),n.restore(),b+=m.width,{width:b,height:g}}function gn(t,e,n,i){const{x:r,width:o}=n,{width:s,chartArea:{left:a,right:l}}=t;let c="center";return"center"===i?c=r<=(a+l)/2?"left":"right":r<=o/2?c="left":r>=s-o/2&&(c="right"),function(t,e,n,i){const{x:r,width:o}=i,s=n.caretSize+n.caretPadding;return"left"===t&&r+o+s>e.width||"right"===t&&r-o-s<0||void 0}(c,t,e,n)&&(c="center"),c}function bn(t,e,n){const i=n.yAlign||e.yAlign||function(t,e){const{y:n,height:i}=e;return nt.height-i/2?"bottom":"center"}(t,n);return{xAlign:n.xAlign||e.xAlign||gn(t,e,n,i),yAlign:i}}function vn(t,e,n,r){const{caretSize:o,caretPadding:s,cornerRadius:a}=t,{xAlign:l,yAlign:c}=n,u=o+s,{topLeft:d,topRight:h,bottomLeft:f,bottomRight:p}=(0,i.ax)(a);let m=function(t,e){let{x:n,width:i}=t;return"right"===e?n-=i:"center"===e&&(n-=i/2),n}(e,l);const g=function(t,e,n){let{y:i,height:r}=t;return"top"===e?i+=n:i-="bottom"===e?r+n:r/2,i}(e,c,u);return"center"===c?"left"===l?m+=u:"right"===l&&(m-=u):"left"===l?m-=Math.max(d,f)+o:"right"===l&&(m+=Math.max(h,p)+o),{x:(0,i.E)(m,0,r.width-e.width),y:(0,i.E)(g,0,r.height-e.height)}}function yn(t,e,n){const r=(0,i.K)(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-r.right:t.x+r.left}function _n(t){return hn([],fn(t))}function xn(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}class wn extends F{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart||t._chart,this._chart=this.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,n=this.options.setContext(this.getContext()),i=n.enabled&&e.options.animation&&n.animations,r=new c(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),e=this,n=this._tooltipItems,(0,i.h)(t,{tooltip:e,tooltipItems:n,type:"tooltip"})));var t,e,n}getTitle(t,e){const{callbacks:n}=e,i=n.beforeTitle.apply(this,[t]),r=n.title.apply(this,[t]),o=n.afterTitle.apply(this,[t]);let s=[];return s=hn(s,fn(i)),s=hn(s,fn(r)),s=hn(s,fn(o)),s}getBeforeBody(t,e){return _n(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:n}=e,r=[];return(0,i.Q)(t,(t=>{const e={before:[],lines:[],after:[]},i=xn(n,t);hn(e.before,fn(i.beforeLabel.call(this,t))),hn(e.lines,i.label.call(this,t)),hn(e.after,fn(i.afterLabel.call(this,t))),r.push(e)})),r}getAfterBody(t,e){return _n(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:n}=e,i=n.beforeFooter.apply(this,[t]),r=n.footer.apply(this,[t]),o=n.afterFooter.apply(this,[t]);let s=[];return s=hn(s,fn(i)),s=hn(s,fn(r)),s=hn(s,fn(o)),s}_createItems(t){const e=this._active,n=this.chart.data,r=[],o=[],s=[];let a,l,c=[];for(a=0,l=e.length;at.filter(e,i,r,n)))),t.itemSort&&(c=c.sort(((e,i)=>t.itemSort(e,i,n)))),(0,i.Q)(c,(e=>{const n=xn(t.callbacks,e);r.push(n.labelColor.call(this,e)),o.push(n.labelPointStyle.call(this,e)),s.push(n.labelTextColor.call(this,e))})),this.labelColors=r,this.labelPointStyles=o,this.labelTextColors=s,this.dataPoints=c,c}update(t,e){const n=this.options.setContext(this.getContext()),i=this._active;let r,o=[];if(i.length){const t=dn[n.position].call(this,i,this._eventPosition);o=this._createItems(n),this.title=this.getTitle(o,n),this.beforeBody=this.getBeforeBody(o,n),this.body=this.getBody(o,n),this.afterBody=this.getAfterBody(o,n),this.footer=this.getFooter(o,n);const e=this._size=mn(this,n),s=Object.assign({},t,e),a=bn(this.chart,n,s),l=vn(n,s,a,this.chart);this.xAlign=a.xAlign,this.yAlign=a.yAlign,r={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(r={opacity:0});this._tooltipItems=o,this.$context=void 0,r&&this._resolveAnimations().update(this,r),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,n,i){const r=this.getCaretPosition(t,n,i);e.lineTo(r.x1,r.y1),e.lineTo(r.x2,r.y2),e.lineTo(r.x3,r.y3)}getCaretPosition(t,e,n){const{xAlign:r,yAlign:o}=this,{caretSize:s,cornerRadius:a}=n,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:d}=(0,i.ax)(a),{x:h,y:f}=t,{width:p,height:m}=e;let g,b,v,y,_,x;return"center"===o?(_=f+m/2,"left"===r?(g=h,b=g-s,y=_+s,x=_-s):(g=h+p,b=g+s,y=_-s,x=_+s),v=g):(b="left"===r?h+Math.max(l,u)+s:"right"===r?h+p-Math.max(c,d)-s:this.caretX,"top"===o?(y=f,_=y-s,g=b-s,v=b+s):(y=f+m,_=y+s,g=b+s,v=b-s),x=y),{x1:g,x2:b,x3:v,y1:y,y2:_,y3:x}}drawTitle(t,e,n){const r=this.title,o=r.length;let s,a,l;if(o){const c=(0,i.aA)(n.rtl,this.x,this.width);for(t.x=yn(this,n.titleAlign,n),e.textAlign=c.textAlign(n.titleAlign),e.textBaseline="middle",s=(0,i.O)(n.titleFont),a=n.titleSpacing,e.fillStyle=n.titleColor,e.font=s.string,l=0;l0!==t))?(t.beginPath(),t.fillStyle=o.multiKeyBackground,(0,i.av)(t,{x:e,y:m,w:c,h:l,radius:a}),t.fill(),t.stroke(),t.fillStyle=s.backgroundColor,t.beginPath(),(0,i.av)(t,{x:n,y:m+1,w:c-2,h:l-2,radius:a}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(e,m,c,l),t.strokeRect(e,m,c,l),t.fillStyle=s.backgroundColor,t.fillRect(n,m+1,c-2,l-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,e,n){const{body:r}=this,{bodySpacing:o,bodyAlign:s,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:u}=n,d=(0,i.O)(n.bodyFont);let h=d.lineHeight,f=0;const p=(0,i.aA)(n.rtl,this.x,this.width),m=function(n){e.fillText(n,p.x(t.x+f),t.y+h/2),t.y+=h+o},g=p.textAlign(s);let b,v,y,_,x,w,j;for(e.textAlign=s,e.textBaseline="middle",e.font=d.string,t.x=yn(this,g,n),e.fillStyle=n.bodyColor,(0,i.Q)(this.beforeBody,m),f=a&&"right"!==g?"center"===s?c/2+u:c+2+u:0,_=0,w=r.length;_0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,n=this.$animations,i=n&&n.x,r=n&&n.y;if(i||r){const n=dn[t.position].call(this,this._active,this._eventPosition);if(!n)return;const o=this._size=mn(this,t),s=Object.assign({},n,this._size),a=bn(e,t,s),l=vn(t,s,a,e);i._to===l.x&&r._to===l.y||(this.xAlign=a.xAlign,this.yAlign=a.yAlign,this.width=o.width,this.height=o.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(e);const r={width:this.width,height:this.height},o={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const s=(0,i.K)(e.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&a&&(t.save(),t.globalAlpha=n,this.drawBackground(o,t,r,e),(0,i.aB)(t,e.textDirection),o.y+=s.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),(0,i.aD)(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const n=this._active,r=t.map((({datasetIndex:t,index:e})=>{const n=this.chart.getDatasetMeta(t);if(!n)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:n.data[e],index:e}})),o=!(0,i.ai)(n,r),s=this._positionChanged(r,e);(o||s)&&(this._active=r,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,n=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,o=this._active||[],s=this._getActiveElements(t,o,e,n),a=this._positionChanged(s,t),l=e||!(0,i.ai)(s,o)||a;return l&&(this._active=s,(r.enabled||r.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),l}_getActiveElements(t,e,n,i){const r=this.options;if("mouseout"===t.type)return[];if(!i)return e;const o=this.chart.getElementsAtEventForMode(t,r.mode,r,n);return r.reverse&&o.reverse(),o}_positionChanged(t,e){const{caretX:n,caretY:i,options:r}=this,o=dn[r.position].call(this,t,e);return!1!==o&&(n!==o.x||i!==o.y)}}wn.positioners=dn;var jn={id:"tooltip",_element:wn,positioners:dn,afterInit(t,e,n){n&&(t.tooltip=new wn({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",n))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:i.aF,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,i=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(i>0&&e.dataIndex"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},kn=Object.freeze({__proto__:null,Decimation:Ne,Filler:nn,Legend:sn,SubTitle:un,Title:ln,Tooltip:jn});function On(t,e,n,i){const r=t.indexOf(e);if(-1===r)return((t,e,n,i)=>("string"==typeof e?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n))(t,e,n,i);return r!==t.lastIndexOf(e)?n:r}class Sn extends Q{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:n,label:i}of e)t[n]===i&&t.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if((0,i.k)(t))return null;const n=this.getLabels();return((t,e)=>null===t?null:(0,i.E)(Math.round(t),0,e))(e=isFinite(e)&&n[e]===t?e:On(n,t,(0,i.v)(e,t),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:n,max:i}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(n=0),e||(i=this.getLabels().length-1)),this.min=n,this.max=i}buildTicks(){const t=this.min,e=this.max,n=this.options.offset,i=[];let r=this.getLabels();r=0===t&&e===r.length-1?r:r.slice(t,e+1),this._valueRange=Math.max(r.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=t;n<=e;n++)i.push({value:n});return i}getLabelForValue(t){const e=this.getLabels();return t>=0&&te.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function En(t,e,{horizontal:n,minRotation:r}){const o=(0,i.t)(r),s=(n?Math.sin(o):Math.cos(o))||.001,a=.75*e*(""+t).length;return Math.min(e/s,a)}Sn.id="category",Sn.defaults={ticks:{callback:Sn.prototype.getLabelForValue}};class Mn extends Q{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return(0,i.k)(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:r,max:o}=this;const s=t=>r=e?r:t,a=t=>o=n?o:t;if(t){const t=(0,i.s)(r),e=(0,i.s)(o);t<0&&e<0?a(0):t>0&&e>0&&s(0)}if(r===o){let e=1;(o>=Number.MAX_SAFE_INTEGER||r<=Number.MIN_SAFE_INTEGER)&&(e=Math.abs(.05*o)),a(o+e),t||s(r-e)}this.min=r,this.max=o}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:n,stepSize:i}=t;return i?(e=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const r=function(t,e){const n=[],{bounds:r,step:o,min:s,max:a,precision:l,count:c,maxTicks:u,maxDigits:d,includeBounds:h}=t,f=o||1,p=u-1,{min:m,max:g}=e,b=!(0,i.k)(s),v=!(0,i.k)(a),y=!(0,i.k)(c),_=(g-m)/(d+1);let x,w,j,k,O=(0,i.aI)((g-m)/p/f)*f;if(O<1e-14&&!b&&!v)return[{value:m},{value:g}];k=Math.ceil(g/O)-Math.floor(m/O),k>p&&(O=(0,i.aI)(k*O/p/f)*f),(0,i.k)(l)||(x=Math.pow(10,l),O=Math.ceil(O*x)/x),"ticks"===r?(w=Math.floor(m/O)*O,j=Math.ceil(g/O)*O):(w=m,j=g),b&&v&&o&&(0,i.aJ)((a-s)/o,O/1e3)?(k=Math.round(Math.min((a-s)/O,u)),O=(a-s)/k,w=s,j=a):y?(w=b?s:w,j=v?a:j,k=c-1,O=(j-w)/k):(k=(j-w)/O,k=(0,i.aK)(k,Math.round(k),O/1e3)?Math.round(k):Math.ceil(k));const S=Math.max((0,i.aL)(O),(0,i.aL)(w));x=Math.pow(10,(0,i.k)(l)?S:l),w=Math.round(w*x)/x,j=Math.round(j*x)/x;let E=0;for(b&&(h&&w!==s?(n.push({value:s}),w0?n:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=(0,i.g)(t)?Math.max(0,t):null,this.max=(0,i.g)(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let n=this.min,r=this.max;const o=e=>n=t?n:e,s=t=>r=e?r:t,a=(t,e)=>Math.pow(10,Math.floor((0,i.z)(t))+e);n===r&&(n<=0?(o(1),s(10)):(o(a(n,-1)),s(a(r,1)))),n<=0&&o(a(r,-1)),r<=0&&s(a(n,1)),this._zero&&this.min!==this._suggestedMin&&n===a(this.min,0)&&o(a(n,-1)),this.min=n,this.max=r}buildTicks(){const t=this.options,e=function(t,e){const n=Math.floor((0,i.z)(e.max)),r=Math.ceil(e.max/Math.pow(10,n)),o=[];let s=(0,i.B)(t.min,Math.pow(10,Math.floor((0,i.z)(e.min)))),a=Math.floor((0,i.z)(s)),l=Math.floor(s/Math.pow(10,a)),c=a<0?Math.pow(10,Math.abs(a)):1;do{o.push({value:s,major:Tn(s)}),++l,10===l&&(l=1,++a,c=a>=0?1:c),s=Math.round(l*Math.pow(10,a)*c)/c}while(ar?{start:e-n,end:e}:{start:e,end:e+n}}function Dn(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),r=[],o=[],s=t._pointLabels.length,a=t.options.pointLabels,l=a.centerPointLabels?i.P/s:0;for(let h=0;he.r&&(a=(i.end-e.r)/o,t.r=Math.max(t.r,e.r+a)),r.starte.b&&(l=(r.end-e.b)/s,t.b=Math.max(t.b,e.b+l))}function Rn(t){return 0===t||180===t?"center":t<180?"left":"right"}function Fn(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function zn(t,e,n){return 90===n||270===n?t-=e/2:(n>270||n<90)&&(t-=e),t}function Nn(t,e,n,r){const{ctx:o}=t;if(n)o.arc(t.xCenter,t.yCenter,e,0,i.T);else{let n=t.getPointPosition(0,e);o.moveTo(n.x,n.y);for(let i=1;i{const n=(0,i.C)(this.options.pointLabels.callback,[t,e],this);return n||0===n?n:""})).filter(((t,e)=>this.chart.getDataVisibility(e)))}fit(){const t=this.options;t.display&&t.pointLabels.display?Dn(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,n,i){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((n-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,n,i))}getIndexAngle(t){const e=i.T/(this._pointLabels.length||1),n=this.options.startAngle||0;return(0,i.az)(t*e+(0,i.t)(n))}getDistanceFromCenterForValue(t){if((0,i.k)(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if((0,i.k)(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t=0;o--){const e=r.setContext(t.getPointLabelContext(o)),s=(0,i.O)(e.font),{x:a,y:l,textAlign:c,left:u,top:d,right:h,bottom:f}=t._pointLabelItems[o],{backdropColor:p}=e;if(!(0,i.k)(p)){const t=(0,i.ax)(e.borderRadius),r=(0,i.K)(e.backdropPadding);n.fillStyle=p;const o=u-r.left,s=d-r.top,a=h-u+r.width,l=f-d+r.height;Object.values(t).some((t=>0!==t))?(n.beginPath(),(0,i.av)(n,{x:o,y:s,w:a,h:l,radius:t}),n.fill()):n.fillRect(o,s,a,l)}(0,i.M)(n,t._pointLabels[o],a,l+s.lineHeight/2,s,{color:e.color,textAlign:c,textBaseline:"middle"})}}(this,o),r.display&&this.ticks.forEach(((t,e)=>{if(0!==e){a=this.getDistanceFromCenterForValue(t.value);!function(t,e,n,i){const r=t.ctx,o=e.circular,{color:s,lineWidth:a}=e;!o&&!i||!s||!a||n<0||(r.save(),r.strokeStyle=s,r.lineWidth=a,r.setLineDash(e.borderDash),r.lineDashOffset=e.borderDashOffset,r.beginPath(),Nn(t,n,o,i),r.closePath(),r.stroke(),r.restore())}(this,r.setContext(this.getContext(e-1)),a,o)}})),n.display){for(t.save(),s=o-1;s>=0;s--){const i=n.setContext(this.getPointLabelContext(s)),{color:r,lineWidth:o}=i;o&&r&&(t.lineWidth=o,t.strokeStyle=r,t.setLineDash(i.borderDash),t.lineDashOffset=i.borderDashOffset,a=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),l=this.getPointPosition(s,a),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(l.x,l.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,n=e.ticks;if(!n.display)return;const r=this.getIndexAngle(0);let o,s;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(r),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach(((r,a)=>{if(0===a&&!e.reverse)return;const l=n.setContext(this.getContext(a)),c=(0,i.O)(l.font);if(o=this.getDistanceFromCenterForValue(this.ticks[a].value),l.showLabelBackdrop){t.font=c.string,s=t.measureText(r.label).width,t.fillStyle=l.backdropColor;const e=(0,i.K)(l.backdropPadding);t.fillRect(-s/2-e.left,-o-c.size/2-e.top,s+e.width,c.size+e.height)}(0,i.M)(t,r.label,0,-o,c,{color:l.color})})),t.restore()}drawTitle(){}}Bn.id="radialLinear",Bn.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:N.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},Bn.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},Bn.descriptors={angleLines:{_fallback:"grid"}};const Wn={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Hn=Object.keys(Wn);function Vn(t,e){return t-e}function qn(t,e){if((0,i.k)(e))return null;const n=t._adapter,{parser:r,round:o,isoWeekday:s}=t._parseOpts;let a=e;return"function"==typeof r&&(a=r(a)),(0,i.g)(a)||(a="string"==typeof r?n.parse(a,r):n.parse(a)),null===a?null:(o&&(a="week"!==o||!(0,i.x)(s)&&!0!==s?n.startOf(a,o):n.startOf(a,"isoWeek",s)),+a)}function $n(t,e,n,i){const r=Hn.length;for(let o=Hn.indexOf(t);o=e?n[r]:n[o]]=!0}}else t[e]=!0}function Yn(t,e,n){const i=[],r={},o=e.length;let s,a;for(s=0;s=0&&(e[l].major=!0);return e}(t,i,r,n):i}class Qn extends Q{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e){const n=t.time||(t.time={}),r=this._adapter=new et._date(t.adapters.date);r.init(e),(0,i.ac)(n.displayFormats,r.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:qn(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,n=t.time.unit||"day";let{min:r,max:o,minDefined:s,maxDefined:a}=this.getUserBounds();function l(t){s||isNaN(t.min)||(r=Math.min(r,t.min)),a||isNaN(t.max)||(o=Math.max(o,t.max))}s&&a||(l(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||l(this.getMinMax(!1))),r=(0,i.g)(r)&&!isNaN(r)?r:+e.startOf(Date.now(),n),o=(0,i.g)(o)&&!isNaN(o)?o:+e.endOf(Date.now(),n)+1,this.min=Math.min(r,o-1),this.max=Math.max(r+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],n=t[t.length-1]),{min:e,max:n}}buildTicks(){const t=this.options,e=t.time,n=t.ticks,r="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);const o=this.min,s=this.max,a=(0,i.aN)(r,o,s);return this._unit=e.unit||(n.autoSkip?$n(e.minUnit,this.min,this.max,this._getLabelCapacity(o)):function(t,e,n,i,r){for(let o=Hn.length-1;o>=Hn.indexOf(n);o--){const n=Hn[o];if(Wn[n].common&&t._adapter.diff(r,i,n)>=e-1)return n}return Hn[n?Hn.indexOf(n):0]}(this,a.length,e.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(t){for(let e=Hn.indexOf(t)+1,n=Hn.length;e+t.value)))}initOffsets(t){let e,n,r=0,o=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),r=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,n=this.getDecimalForValue(t[t.length-1]),o=1===t.length?n:(n-this.getDecimalForValue(t[t.length-2]))/2);const s=t.length<3?.5:.25;r=(0,i.E)(r,0,s),o=(0,i.E)(o,0,s),this._offsets={start:r,end:o,factor:1/(r+1+o)}}_generate(){const t=this._adapter,e=this.min,n=this.max,r=this.options,o=r.time,s=o.unit||$n(o.minUnit,e,n,this._getLabelCapacity(e)),a=(0,i.v)(o.stepSize,1),l="week"===s&&o.isoWeekday,c=(0,i.x)(l)||!0===l,u={};let d,h,f=e;if(c&&(f=+t.startOf(f,"isoWeek",l)),f=+t.startOf(f,c?"day":s),t.diff(n,e,s)>1e5*a)throw new Error(e+" and "+n+" are too far apart with stepSize of "+a+" "+s);const p="data"===r.ticks.source&&this.getDataTimestamps();for(d=f,h=0;dt-e)).map((t=>+t))}getLabelForValue(t){const e=this._adapter,n=this.options.time;return n.tooltipFormat?e.format(t,n.tooltipFormat):e.format(t,n.displayFormats.datetime)}_tickFormatFunction(t,e,n,r){const o=this.options,s=o.time.displayFormats,a=this._unit,l=this._majorUnit,c=a&&s[a],u=l&&s[l],d=n[e],h=l&&u&&d&&d.major,f=this._adapter.format(t,r||(h?u:c)),p=o.ticks.callback;return p?(0,i.C)(p,[f,e,n],this):f}generateTickLabels(t){let e,n,i;for(e=0,n=t.length;e0?s:1}getDataTimestamps(){let t,e,n=this._cache.data||[];if(n.length)return n;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(t=0,e=i.length;t=t[l].pos&&e<=t[c].pos&&({lo:l,hi:c}=(0,i.Z)(t,"pos",e)),({pos:r,time:s}=t[l]),({pos:o,time:a}=t[c])):(e>=t[l].time&&e<=t[c].time&&({lo:l,hi:c}=(0,i.Z)(t,"time",e)),({time:r,pos:s}=t[l]),({time:o,pos:a}=t[c]));const u=o-r;return u?s+(a-s)*(e-r)/u:s}Qn.id="time",Qn.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class Gn extends Qn{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=Xn(e,this.min),this._tableRange=Xn(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:n}=this,i=[],r=[];let o,s,a,l,c;for(o=0,s=t.length;o=e&&l<=n&&i.push(l);if(i.length<2)return[{time:e,pos:0},{time:n,pos:1}];for(o=0,s=i.length;o("number"==typeof t||t instanceof Number)&&isFinite(+t);function c(t,e){return l(t)?t:e}function u(t,e){return void 0===t?e:t}const d=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:t/e,h=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function f(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function p(t,e,n,i){let r,o,l;if(s(t))if(o=t.length,i)for(r=o-1;r>=0;r--)e.call(n,t[r],r);else for(r=0;rt,x:t=>t.x,y:t=>t.y};function k(t,e){const n=j[e]||(j[e]=function(t){const e=O(t);return t=>{for(const n of e){if(""===n)break;t=t&&t[n]}return t}}(e));return n(t)}function O(t){const e=t.split("."),n=[];let i="";for(const t of e)i+=t,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}function S(t){return t.charAt(0).toUpperCase()+t.slice(1)}const E=t=>void 0!==t,M=t=>"function"==typeof t,P=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function T(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}const C=Math.PI,A=2*C,L=A+C,D=Number.POSITIVE_INFINITY,I=C/180,R=C/2,F=C/4,z=2*C/3,N=Math.log10,B=Math.sign;function W(t){const e=Math.round(t);t=q(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(N(t))),i=t/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function H(t){const e=[],n=Math.sqrt(t);let i;for(i=1;it-e)).pop(),e}function V(t){return!isNaN(parseFloat(t))&&isFinite(t)}function q(t,e,n){return Math.abs(t-e)=t}function U(t,e,n){let i,r,o;for(i=0,r=t.length;il&&c=Math.min(e,n)-i&&t<=Math.max(e,n)+i}function rt(t,e,n){n=n||(n=>t[n]1;)i=o+r>>1,n(i)?o=i:r=i;return{lo:o,hi:r}}const ot=(t,e,n,i)=>rt(t,n,i?i=>t[i][e]<=n:i=>t[i][e]rt(t,n,(i=>t[i][e]>=n));function at(t,e,n){let i=0,r=t.length;for(;ii&&t[r-1]>n;)r--;return i>0||r{const n="_onData"+S(e),i=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){const r=i.apply(this,e);return t._chartjs.listeners.forEach((t=>{"function"==typeof t[n]&&t[n](...e)})),r}})})))}function ut(t,e){const n=t._chartjs;if(!n)return;const i=n.listeners,r=i.indexOf(e);-1!==r&&i.splice(r,1),i.length>0||(lt.forEach((e=>{delete t[e]})),delete t._chartjs)}function dt(t){const e=new Set;let n,i;for(n=0,i=t.length;nArray.prototype.slice.call(t));let r=!1,o=[];return function(...n){o=i(n),r||(r=!0,ft.call(window,(()=>{r=!1,t.apply(e,o)})))}}function mt(t,e){let n;return function(...i){return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}const gt=t=>"start"===t?"left":"end"===t?"right":"center",bt=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2,vt=(t,e,n,i)=>t===(i?"left":"right")?n:"center"===t?(e+n)/2:e;function yt(t,e,n){const i=e.length;let r=0,o=i;if(t._sorted){const{iScale:s,_parsed:a}=t,l=s.axis,{min:c,max:u,minDefined:d,maxDefined:h}=s.getUserBounds();d&&(r=et(Math.min(ot(a,s.axis,c).lo,n?i:ot(e,l,s.getPixelForValue(c)).lo),0,i-1)),o=h?et(Math.max(ot(a,s.axis,u,!0).hi+1,n?0:ot(e,l,s.getPixelForValue(u),!0).hi+1),r,i)-r:i-r}return{start:r,count:o}}function _t(t){const{xScale:e,yScale:n,_scaleRanges:i}=t,r={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!i)return t._scaleRanges=r,!0;const o=i.xmin!==e.min||i.xmax!==e.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,r),o}const xt=t=>0===t||1===t,wt=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*A/n),jt=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*A/n)+1,kt={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*R),easeOutSine:t=>Math.sin(t*R),easeInOutSine:t=>-.5*(Math.cos(C*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>xt(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>xt(t)?t:wt(t,.075,.3),easeOutElastic:t=>xt(t)?t:jt(t,.075,.3),easeInOutElastic(t){const e=.1125;return xt(t)?t:t<.5?.5*wt(2*t,e,.45):.5+.5*jt(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-kt.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},easeInOutBounce:t=>t<.5?.5*kt.easeInBounce(2*t):.5*kt.easeOutBounce(2*t-1)+.5};function Ot(t){return t+.5|0}const St=(t,e,n)=>Math.max(Math.min(t,n),e);function Et(t){return St(Ot(2.55*t),0,255)}function Mt(t){return St(Ot(255*t),0,255)}function Pt(t){return St(Ot(t/2.55)/100,0,1)}function Tt(t){return St(Ot(100*t),0,100)}const Ct={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},At=[..."0123456789ABCDEF"],Lt=t=>At[15&t],Dt=t=>At[(240&t)>>4]+At[15&t],It=t=>(240&t)>>4==(15&t);function Rt(t){var e=(t=>It(t.r)&&It(t.g)&&It(t.b)&&It(t.a))(t)?Lt:Dt;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}const Ft=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function zt(t,e,n){const i=e*Math.min(n,1-n),r=(e,r=(e+t/30)%12)=>n-i*Math.max(Math.min(r-3,9-r,1),-1);return[r(0),r(8),r(4)]}function Nt(t,e,n){const i=(i,r=(i+t/60)%6)=>n-n*e*Math.max(Math.min(r,4-r,1),0);return[i(5),i(3),i(1)]}function Bt(t,e,n){const i=zt(t,1,.5);let r;for(e+n>1&&(r=1/(e+n),e*=r,n*=r),r=0;r<3;r++)i[r]*=1-e-n,i[r]+=e;return i}function Wt(t){const e=t.r/255,n=t.g/255,i=t.b/255,r=Math.max(e,n,i),o=Math.min(e,n,i),s=(r+o)/2;let a,l,c;return r!==o&&(c=r-o,l=s>.5?c/(2-r-o):c/(r+o),a=function(t,e,n,i,r){return t===r?(e-n)/i+(e>16&255,o>>8&255,255&o]}return t}(),Qt.transparent=[0,0,0,0]);const e=Qt[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const Gt=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const Kt=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Jt=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Zt(t,e,n){if(t){let i=Wt(t);i[e]=Math.max(0,Math.min(i[e]+i[e]*n,0===e?360:1)),i=Vt(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function te(t,e){return t?Object.assign(e||{},t):t}function ee(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=Mt(t[3]))):(e=te(t,{r:0,g:0,b:0,a:1})).a=Mt(e.a),e}function ne(t){return"r"===t.charAt(0)?function(t){const e=Gt.exec(t);let n,i,r,o=255;if(e){if(e[7]!==n){const t=+e[7];o=e[8]?Et(t):St(255*t,0,255)}return n=+e[1],i=+e[3],r=+e[5],n=255&(e[2]?Et(n):St(n,0,255)),i=255&(e[4]?Et(i):St(i,0,255)),r=255&(e[6]?Et(r):St(r,0,255)),{r:n,g:i,b:r,a:o}}}(t):$t(t)}class ie{constructor(t){if(t instanceof ie)return t;const e=typeof t;let n;var i,r,o;"object"===e?n=ee(t):"string"===e&&(o=(i=t).length,"#"===i[0]&&(4===o||5===o?r={r:255&17*Ct[i[1]],g:255&17*Ct[i[2]],b:255&17*Ct[i[3]],a:5===o?17*Ct[i[4]]:255}:7!==o&&9!==o||(r={r:Ct[i[1]]<<4|Ct[i[2]],g:Ct[i[3]]<<4|Ct[i[4]],b:Ct[i[5]]<<4|Ct[i[6]],a:9===o?Ct[i[7]]<<4|Ct[i[8]]:255})),n=r||Xt(t)||ne(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=te(this._rgb);return t&&(t.a=Pt(t.a)),t}set rgb(t){this._rgb=ee(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Pt(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?Rt(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=Wt(t),n=e[0],i=Tt(e[1]),r=Tt(e[2]);return t.a<255?`hsla(${n}, ${i}%, ${r}%, ${Pt(t.a)})`:`hsl(${n}, ${i}%, ${r}%)`}(this._rgb):void 0}mix(t,e){if(t){const n=this.rgb,i=t.rgb;let r;const o=e===r?.5:e,s=2*o-1,a=n.a-i.a,l=((s*a==-1?s:(s+a)/(1+s*a))+1)/2;r=1-l,n.r=255&l*n.r+r*i.r+.5,n.g=255&l*n.g+r*i.g+.5,n.b=255&l*n.b+r*i.b+.5,n.a=o*n.a+(1-o)*i.a,this.rgb=n}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,n){const i=Jt(Pt(t.r)),r=Jt(Pt(t.g)),o=Jt(Pt(t.b));return{r:Mt(Kt(i+n*(Jt(Pt(e.r))-i))),g:Mt(Kt(r+n*(Jt(Pt(e.g))-r))),b:Mt(Kt(o+n*(Jt(Pt(e.b))-o))),a:t.a+n*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new ie(this.rgb)}alpha(t){return this._rgb.a=Mt(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=Ot(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Zt(this._rgb,2,t),this}darken(t){return Zt(this._rgb,2,-t),this}saturate(t){return Zt(this._rgb,1,t),this}desaturate(t){return Zt(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=Wt(t);n[0]=qt(n[0]+e),n=Vt(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}function re(t){return new ie(t)}function oe(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function se(t){return oe(t)?t:re(t)}function ae(t){return oe(t)?t:re(t).saturate(.5).darken(.1).hexString()}const le=Object.create(null),ce=Object.create(null);function ue(t,e){if(!e)return t;const n=e.split(".");for(let e=0,i=n.length;et.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>ae(e.backgroundColor),this.hoverBorderColor=(t,e)=>ae(e.borderColor),this.hoverColor=(t,e)=>ae(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t)}set(t,e){return de(this,t,e)}get(t){return ue(this,t)}describe(t,e){return de(ce,t,e)}override(t,e){return de(le,t,e)}route(t,e,n,i){const r=ue(this,t),o=ue(this,n),s="_"+e;Object.defineProperties(r,{[s]:{value:r[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[s],e=o[i];return a(t)?Object.assign({},e,t):u(t,e)},set(t){this[s]=t}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function fe(t){return!t||o(t.size)||o(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function pe(t,e,n,i,r){let o=e[r];return o||(o=e[r]=t.measureText(r).width,n.push(r)),o>i&&(i=o),i}function me(t,e,n,i){let r=(i=i||{}).data=i.data||{},o=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(r=i.data={},o=i.garbageCollect=[],i.font=e),t.save(),t.font=e;let a=0;const l=n.length;let c,u,d,h,f;for(c=0;cn.length){for(c=0;c0&&t.stroke()}}function _e(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.xe.top-n&&t.y0&&""!==a.strokeColor;let u,d;for(t.save(),t.font=r.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]);o(e.rotation)||t.rotate(e.rotation);e.color&&(t.fillStyle=e.color);e.textAlign&&(t.textAlign=e.textAlign);e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,a),u=0;u+t||0;function Ae(t,e){const n={},i=a(e),r=i?Object.keys(e):e,o=a(t)?i?n=>u(t[n],t[e[n]]):e=>t[e]:()=>t;for(const t of r)n[t]=Ce(o(t));return n}function Le(t){return Ae(t,{top:"y",right:"x",bottom:"y",left:"x"})}function De(t){return Ae(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Ie(t){const e=Le(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Re(t,e){t=t||{},e=e||he.font;let n=u(t.size,e.size);"string"==typeof n&&(n=parseInt(n,10));let i=u(t.style,e.style);i&&!(""+i).match(Pe)&&(console.warn('Invalid font style specified: "'+i+'"'),i="");const r={family:u(t.family,e.family),lineHeight:Te(u(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:u(t.weight,e.weight),string:""};return r.string=fe(r),r}function Fe(t,e,n,i){let r,o,a,l=!0;for(r=0,o=t.length;rn&&0===t?0:t+e;return{min:s(i,-Math.abs(o)),max:s(r,o)}}function Ne(t,e){return Object.assign(Object.create(t),e)}function Be(t,e=[""],n=t,i,r=(()=>t[0])){E(i)||(i=Ke("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:n,_fallback:i,_getTarget:r,override:r=>Be([r,...t],e,n,i)};return new Proxy(o,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,i)=>$e(n,i,(()=>function(t,e,n,i){let r;for(const o of e)if(r=Ke(Ve(o,t),n),E(r))return qe(t,r)?Xe(n,i,t,r):r}(i,e,t,n))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>Je(t).includes(e),ownKeys:t=>Je(t),set(t,e,n){const i=t._storage||(t._storage=r());return t[e]=i[e]=n,delete t._keys,!0}})}function We(t,e,n,i){const r={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:He(t,i),setContext:e=>We(t,e,n,i),override:r=>We(t.override(r),e,n,i)};return new Proxy(r,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>$e(t,e,(()=>function(t,e,n){const{_proxy:i,_context:r,_subProxy:o,_descriptors:l}=t;let c=i[e];M(c)&&l.isScriptable(e)&&(c=function(t,e,n,i){const{_proxy:r,_context:o,_subProxy:s,_stack:a}=n;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t),e=e(o,s||i),a.delete(t),qe(t,e)&&(e=Xe(r._scopes,r,t,e));return e}(e,c,t,n));s(c)&&c.length&&(c=function(t,e,n,i){const{_proxy:r,_context:o,_subProxy:s,_descriptors:l}=n;if(E(o.index)&&i(t))e=e[o.index%e.length];else if(a(e[0])){const n=e,i=r._scopes.filter((t=>t!==n));e=[];for(const a of n){const n=Xe(i,r,t,a);e.push(We(n,o,s&&s[t],l))}}return e}(e,c,t,l.isIndexable));qe(e,c)&&(c=We(c,r,o&&o[e],l));return c}(t,e,n))),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,i)=>(t[n]=i,delete e[n],!0)})}function He(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:i=e.indexable,_allKeys:r=e.allKeys}=t;return{allKeys:r,scriptable:n,indexable:i,isScriptable:M(n)?n:()=>n,isIndexable:M(i)?i:()=>i}}const Ve=(t,e)=>t?t+S(e):e,qe=(t,e)=>a(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function $e(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const i=n();return t[e]=i,i}function Ue(t,e,n){return M(t)?t(e,n):t}const Ye=(t,e)=>!0===t?e:"string"==typeof t?k(e,t):void 0;function Qe(t,e,n,i,r){for(const o of e){const e=Ye(n,o);if(e){t.add(e);const o=Ue(e._fallback,n,r);if(E(o)&&o!==n&&o!==i)return o}else if(!1===e&&E(i)&&n!==i)return null}return!1}function Xe(t,e,n,i){const r=e._rootScopes,o=Ue(e._fallback,n,i),l=[...t,...r],c=new Set;c.add(i);let u=Ge(c,l,n,o||n,i);return null!==u&&((!E(o)||o===n||(u=Ge(c,l,o,u,i),null!==u))&&Be(Array.from(c),[""],r,o,(()=>function(t,e,n){const i=t._getTarget();e in i||(i[e]={});const r=i[e];if(s(r)&&a(n))return n;return r}(e,n,i))))}function Ge(t,e,n,i,r){for(;n;)n=Qe(t,e,n,i,r);return n}function Ke(t,e){for(const n of e){if(!n)continue;const e=n[t];if(E(e))return e}}function Je(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const n of t)for(const t of Object.keys(n).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}function Ze(t,e,n,i){const{iScale:r}=t,{key:o="r"}=this._parsing,s=new Array(i);let a,l,c,u;for(a=0,l=i;ae"x"===t?"y":"x";function rn(t,e,n,i){const r=t.skip?e:t,o=e,s=n.skip?e:n,a=K(o,r),l=K(s,o);let c=a/(a+l),u=l/(a+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=i*c,h=i*u;return{previous:{x:o.x-d*(s.x-r.x),y:o.y-d*(s.y-r.y)},next:{x:o.x+h*(s.x-r.x),y:o.y+h*(s.y-r.y)}}}function on(t,e="x"){const n=nn(e),i=t.length,r=Array(i).fill(0),o=Array(i);let s,a,l,c=en(t,0);for(s=0;s!t.skip))),"monotone"===e.cubicInterpolationMode)on(t,r);else{let n=i?t[t.length-1]:t[0];for(o=0,s=t.length;owindow.getComputedStyle(t,null);function hn(t,e){return dn(t).getPropertyValue(e)}const fn=["top","right","bottom","left"];function pn(t,e,n){const i={};n=n?"-"+n:"";for(let r=0;r<4;r++){const o=fn[r];i[o]=parseFloat(t[e+"-"+o+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}const mn=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function gn(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:i}=e,r=dn(n),o="border-box"===r.boxSizing,s=pn(r,"padding"),a=pn(r,"border","width"),{x:l,y:c,box:u}=function(t,e){const n=t.touches,i=n&&n.length?n[0]:t,{offsetX:r,offsetY:o}=i;let s,a,l=!1;if(mn(r,o,t.target))s=r,a=o;else{const t=e.getBoundingClientRect();s=i.clientX-t.left,a=i.clientY-t.top,l=!0}return{x:s,y:a,box:l}}(t,n),d=s.left+(u&&a.left),h=s.top+(u&&a.top);let{width:f,height:p}=e;return o&&(f-=s.width+a.width,p-=s.height+a.height),{x:Math.round((l-d)/f*n.width/i),y:Math.round((c-h)/p*n.height/i)}}const bn=t=>Math.round(10*t)/10;function vn(t,e,n,i){const r=dn(t),o=pn(r,"margin"),s=un(r.maxWidth,t,"clientWidth")||D,a=un(r.maxHeight,t,"clientHeight")||D,l=function(t,e,n){let i,r;if(void 0===e||void 0===n){const o=cn(t);if(o){const t=o.getBoundingClientRect(),s=dn(o),a=pn(s,"border","width"),l=pn(s,"padding");e=t.width-l.width-a.width,n=t.height-l.height-a.height,i=un(s.maxWidth,o,"clientWidth"),r=un(s.maxHeight,o,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:i||D,maxHeight:r||D}}(t,e,n);let{width:c,height:u}=l;if("content-box"===r.boxSizing){const t=pn(r,"border","width"),e=pn(r,"padding");c-=e.width+t.width,u-=e.height+t.height}return c=Math.max(0,c-o.width),u=Math.max(0,i?Math.floor(c/i):u-o.height),c=bn(Math.min(c,s,l.maxWidth)),u=bn(Math.min(u,a,l.maxHeight)),c&&!u&&(u=bn(c/2)),{width:c,height:u}}function yn(t,e,n){const i=e||1,r=Math.floor(t.height*i),o=Math.floor(t.width*i);t.height=r/i,t.width=o/i;const s=t.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${t.height}px`,s.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==i||s.height!==r||s.width!==o)&&(t.currentDevicePixelRatio=i,s.height=r,s.width=o,t.ctx.setTransform(i,0,0,i,0,0),!0)}const _n=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t}();function xn(t,e){const n=hn(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function wn(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function jn(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:"middle"===i?n<.5?t.y:e.y:"after"===i?n<1?t.y:e.y:n>0?e.y:t.y}}function kn(t,e,n,i){const r={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},s=wn(t,r,n),a=wn(r,o,n),l=wn(o,e,n),c=wn(s,a,n),u=wn(a,l,n);return wn(c,u,n)}const On=new Map;function Sn(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let i=On.get(n);return i||(i=new Intl.NumberFormat(t,e),On.set(n,i)),i}(e,n).format(t)}const En=function(t,e){return{x:n=>t+t+e-n,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}},Mn=function(){return{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}};function Pn(t,e,n){return t?En(e,n):Mn()}function Tn(t,e){let n,i;"ltr"!==e&&"rtl"!==e||(n=t.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=i)}function Cn(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function An(t){return"angle"===t?{between:tt,compare:J,normalize:Z}:{between:it,compare:(t,e)=>t-e,normalize:t=>t}}function Ln({start:t,end:e,count:n,loop:i,style:r}){return{start:t%n,end:e%n,loop:i&&(e-t+1)%n==0,style:r}}function Dn(t,e,n){if(!n)return[t];const{property:i,start:r,end:o}=n,s=e.length,{compare:a,between:l,normalize:c}=An(i),{start:u,end:d,loop:h,style:f}=function(t,e,n){const{property:i,start:r,end:o}=n,{between:s,normalize:a}=An(i),l=e.length;let c,u,{start:d,end:h,loop:f}=t;if(f){for(d+=l,h+=l,c=0,u=l;cv||l(r,b,m)&&0!==a(r,b),x=()=>!v||0===a(o,m)||l(o,b,m);for(let t=u,n=u;t<=d;++t)g=e[t%s],g.skip||(m=c(g[i]),m!==b&&(v=l(m,r,o),null===y&&_()&&(y=0===a(m,r)?t:n),null!==y&&x()&&(p.push(Ln({start:y,end:t,loop:h,count:s,style:f})),y=null),n=t,b=m));return null!==y&&p.push(Ln({start:y,end:d,loop:h,count:s,style:f})),p}function In(t,e){const n=[],i=t.segments;for(let r=0;rr&&t[o%e].skip;)o--;return o%=e,{start:r,end:o}}(n,r,o,i);if(!0===i)return Fn(t,[{start:s,end:a,loop:o}],n,e);return Fn(t,function(t,e,n,i){const r=t.length,o=[];let s,a=e,l=t[e];for(s=e+1;s<=n;++s){const n=t[s%r];n.skip||n.stop?l.skip||(i=!1,o.push({start:e%r,end:(s-1)%r,loop:i}),e=a=n.stop?s:null):(a=s,l.skip&&(e=s)),l=n}return null!==a&&o.push({start:e%r,end:a%r,loop:i}),o}(n,s,a-1&&(!t||!/^http(s?):/.test(t));)t=i[r--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=t}();var i={};!function(){"use strict";n.r(i),n.d(i,{cloudinary:function(){return h}});n("./node_modules/loading-attribute-polyfill/loading-attribute-polyfill.min.js"),n("./src/js/components/taxonomies.js");var t=n("./src/js/components/settings-page.js"),e=n.n(t),r=n("./src/js/components/global-transformations.js"),o=n("./src/js/components/media-library.js"),s=n("./src/js/components/notices.js"),a=n("./src/js/components/ui.js"),l=n("./src/js/components/wizard.js"),c=n("./src/js/components/storage.js"),u=n("./src/js/components/extensions.js"),d=n("./src/js/components/tabs.js");n("./src/css/main.scss"),n("./src/css/images/academy.jpg"),n("./src/css/images/academy-icon.svg"),n("./src/css/images/bandwidth.svg"),n("./src/css/images/star.svg"),n("./src/css/images/cloud.svg"),n("./src/css/images/crop.svg"),n("./src/css/images/gallery.svg"),n("./src/css/images/image.svg"),n("./src/css/images/units.svg"),n("./src/css/images/units-plus.svg"),n("./src/css/images/requests.svg"),n("./src/css/images/responsive.svg"),n("./src/css/images/learn.svg"),n("./src/css/images/logo-icon.svg"),n("./src/css/images/transformation.svg"),n("./src/css/images/upload.svg"),n("./src/css/images/video.svg"),n("./src/css/images/connection-string.png"),n("./src/css/images/sample.webp"),n("./src/css/images/wizard-welcome.jpg"),n("./src/css/images/document.svg"),n("./src/css/images/arrow.svg"),n("./src/css/images/documentation.jpg"),n("./src/css/images/request.jpg"),n("./src/css/images/report.jpg"),n("./src/css/images/confetti.png"),n("./src/css/images/circular-loader.svg"),n("./src/css/images/dam-icon.svg");window.$=window.jQuery;const h={UI:a.default,Settings:e(),GlobalTransformations:r.default,MediaLibrary:o.default,Notices:s.default,Wizard:l.default,Storage:c.default,Extensions:u.default,Tabs:d.default}}()}(); +//# sourceMappingURL=cloudinary.js.map \ No newline at end of file diff --git a/js/deactivate.asset.php b/js/deactivate.asset.php index a12f8575d..a0e638b82 100644 --- a/js/deactivate.asset.php +++ b/js/deactivate.asset.php @@ -1 +1 @@ - array(), 'version' => 'f405be0196ee03c352da'); + array(), 'version' => '4d57336855952a62730d'); diff --git a/js/deactivate.js b/js/deactivate.js index 1a30e782c..2445168e5 100644 --- a/js/deactivate.js +++ b/js/deactivate.js @@ -1 +1,2 @@ -!function(){"use strict";function t(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:"";wp.ajax.send({url:CLD_Deactivate.endpoint,data:{reason:this.reason,more:null===(t=this.more)||void 0===t?void 0:t.value,report:null===(e=this.report)||void 0===e?void 0:e.checked,contact:null===(n=this.contact)||void 0===n?void 0:n.checked,email:this.email,dataHandling:o},beforeSend:function(t){t.setRequestHeader("X-WP-Nonce",CLD_Deactivate.nonce)}}).always((function(){window.location.reload()}))},init:function(){this.isCloudinaryOnly=!!this.modal.dataset.cloudinaryOnly,this.addEvents()}};n.init()}(); \ No newline at end of file +!function(){"use strict";var e={"./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":function(e,t,n){function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:"";wp.ajax.send({url:CLD_Deactivate.endpoint,data:{reason:this.reason,more:null===(e=this.more)||void 0===e?void 0:e.value,report:null===(t=this.report)||void 0===t?void 0:t.checked,contact:null===(n=this.contact)||void 0===n?void 0:n.checked,email:this.email,dataHandling:o},beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",CLD_Deactivate.nonce)}}).always((function(){window.location.reload()}))},init:function(){this.isCloudinaryOnly=!!this.modal.dataset.cloudinaryOnly,this.addEvents()}};r.init(),o.default=r}(); +//# sourceMappingURL=deactivate.js.map \ No newline at end of file diff --git a/js/front-overlay.js b/js/front-overlay.js index 8d0dd7a57..30dacf327 100644 --- a/js/front-overlay.js +++ b/js/front-overlay.js @@ -1 +1,2 @@ -!function(){var e={616:function(e){e.exports=function(e,t){var n,r,i=0;function o(){var o,a,s=n,c=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(a=0;a=0),s.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,s.width?parseInt(s.width):0);break;case"e":n=s.precision?parseFloat(n).toExponential(s.precision):parseFloat(n).toExponential();break;case"f":n=s.precision?parseFloat(n).toFixed(s.precision):parseFloat(n);break;case"g":n=s.precision?String(Number(n.toPrecision(s.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=s.precision?n.substring(0,s.precision):n;break;case"t":n=String(!!n),n=s.precision?n.substring(0,s.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=s.precision?n.substring(0,s.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=s.precision?n.substring(0,s.precision):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase()}i.json.test(s.type)?m+=n:(!i.number.test(s.type)||f&&!s.sign?l="":(l=f?"+":"-",n=n.toString().replace(i.sign,"")),u=s.pad_char?"0"===s.pad_char?"0":s.pad_char.charAt(1):" ",p=s.width-(l+n).length,c=s.width&&p>0?u.repeat(p):"",m+=s.align?l+n+c:"0"===u?l+c+n:c+l+n)}return m}(function(e){if(s[e])return s[e];var t,n=e,r=[],o=0;for(;n;){if(null!==(t=i.text.exec(n)))r.push(t[0]);else if(null!==(t=i.modulo.exec(n)))r.push("%");else{if(null===(t=i.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){o|=1;var a=[],c=t[2],u=[];if(null===(u=i.key.exec(c)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(a.push(u[1]);""!==(c=c.substring(u[0].length));)if(null!==(u=i.key_access.exec(c)))a.push(u[1]);else{if(null===(u=i.index_access.exec(c)))throw new SyntaxError("[sprintf] failed to parse named argument key");a.push(u[1])}t[2]=a}else o|=2;if(3===o)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}n=n.substring(t[0].length)}return s[e]=r}(e),arguments)}function a(e,t){return o.apply(null,[e].concat(t||[]))}var s=Object.create(null);o,a,"undefined"!=typeof window&&(window.sprintf=o,window.vsprintf=a,void 0===(r=function(){return{sprintf:o,vsprintf:a}}.call(t,n,t,e))||(e.exports=r))}()}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e,t,r,i,o=n(616),a=n.n(o);n(604),a()(console.error);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},t=["(","?"],r={")":["("],":":["?","?:"]},i=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var c={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function u(n){var o=function(n){for(var o,a,s,c,u=[],p=[];o=n.match(i);){for(a=o[0],(s=n.substr(0,o.index).trim())&&u.push(s);c=p.pop();){if(r[a]){if(r[a][0]===c){a=r[a][1]||a;break}}else if(t.indexOf(c)>=0||e[c]3&&void 0!==arguments[3]?arguments[3]:10,a=e[t];if(g(n)&&v(r))if("function"==typeof i)if("number"==typeof o){var s={callback:i,priority:o,namespace:r};if(a[n]){var c,u=a[n].handlers;for(c=u.length;c>0&&!(o>=u[c-1].priority);c--);c===u.length?u[c]=s:u.splice(c,0,s),a.__current.forEach((function(e){e.name===n&&e.currentIndex>=c&&e.currentIndex++}))}else a[n]={handlers:[s],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,r,i,o)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}};var b=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r,i){var o=e[t];if(g(r)&&(n||v(i))){if(!o[r])return 0;var a=0;if(n)a=o[r].handlers.length,o[r]={runs:o[r].runs,handlers:[]};else for(var s=o[r].handlers,c=function(e){s[e].namespace===i&&(s.splice(e,1),a++,o.__current.forEach((function(t){t.name===r&&t.currentIndex>=e&&t.currentIndex--})))},u=s.length-1;u>=0;u--)c(u);return"hookRemoved"!==r&&e.doAction("hookRemoved",r,i),a}}};var x=function(e,t){return function(n,r){var i=e[t];return void 0!==r?n in i&&i[n].handlers.some((function(e){return e.namespace===r})):n in i}};var w=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r){var i=e[t];i[r]||(i[r]={handlers:[],runs:0}),i[r].runs++;var o=i[r].handlers;for(var a=arguments.length,s=new Array(a>1?a-1:0),c=1;c1&&void 0!==arguments[1]?arguments[1]:"default";r.data[t]=d(d(d({},h),r.data[t]),e),r.data[t][""]=d(d({},h[""]),r.data[t][""])},s=function(e,t){a(e,t),o()},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;return r.data[e]||a(void 0,e),r.dcnpgettext(e,t,n,i,o)},u=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default"},p=function(e,t,r){var i=c(r,t,e);return n?(i=n.applyFilters("i18n.gettext_with_context",i,e,t,r),n.applyFilters("i18n.gettext_with_context_"+u(r),i,e,t,r)):i};if(e&&s(e,t),n){var l=function(e){m.test(e)&&o()};n.addAction("hookAdded","core/i18n",l),n.addAction("hookRemoved","core/i18n",l)}return{getLocaleData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return r.data[e]},setLocaleData:s,resetLocaleData:function(e,t){r.data={},r.pluralForms={},s(e,t)},subscribe:function(e){return i.add(e),function(){return i.delete(e)}},__:function(e,t){var r=c(t,void 0,e);return n?(r=n.applyFilters("i18n.gettext",r,e,t),n.applyFilters("i18n.gettext_"+u(t),r,e,t)):r},_x:p,_n:function(e,t,r,i){var o=c(i,void 0,e,t,r);return n?(o=n.applyFilters("i18n.ngettext",o,e,t,r,i),n.applyFilters("i18n.ngettext_"+u(i),o,e,t,r,i)):o},_nx:function(e,t,r,i,o){var a=c(o,i,e,t,r);return n?(a=n.applyFilters("i18n.ngettext_with_context",a,e,t,r,i,o),n.applyFilters("i18n.ngettext_with_context_"+u(o),a,e,t,r,i,o)):a},isRTL:function(){return"rtl"===p("ltr","text direction")},hasTranslation:function(e,t,i){var o,a,s=t?t+""+e:e,c=!(null===(o=r.data)||void 0===o||null===(a=o[null!=i?i:"default"])||void 0===a||!a[s]);return n&&(c=n.applyFilters("i18n.has_translation",c,e,t,i),c=n.applyFilters("i18n.has_translation_"+u(i),c,e,t,i)),c}}}(void 0,void 0,_)),j=(k.getLocaleData.bind(k),k.setLocaleData.bind(k),k.resetLocaleData.bind(k),k.subscribe.bind(k),k.__.bind(k));k._x.bind(k),k._n.bind(k),k._nx.bind(k),k.isRTL.bind(k),k.hasTranslation.bind(k);function L(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function D(e){return e instanceof L(e).Element||e instanceof Element}function C(e){return e instanceof L(e).HTMLElement||e instanceof HTMLElement}function F(e){return"undefined"!=typeof ShadowRoot&&(e instanceof L(e).ShadowRoot||e instanceof ShadowRoot)}var S=Math.max,P=Math.min,I=Math.round;function M(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function R(){return!/^((?!chrome|android).)*safari/i.test(M())}function H(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&C(e)&&(i=e.offsetWidth>0&&I(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&I(r.height)/e.offsetHeight||1);var a=(D(e)?L(e):window).visualViewport,s=!R()&&n,c=(r.left+(s&&a?a.offsetLeft:0))/i,u=(r.top+(s&&a?a.offsetTop:0))/o,p=r.width/i,f=r.height/o;return{width:p,height:f,top:u,right:c+p,bottom:u+f,left:c,x:c,y:u}}function V(e){var t=L(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function W(e){return e?(e.nodeName||"").toLowerCase():null}function B(e){return((D(e)?e.ownerDocument:e.document)||window.document).documentElement}function N(e){return H(B(e)).left+V(e).scrollLeft}function z(e){return L(e).getComputedStyle(e)}function q(e){var t=z(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function U(e,t,n){void 0===n&&(n=!1);var r,i,o=C(t),a=C(t)&&function(e){var t=e.getBoundingClientRect(),n=I(t.width)/e.offsetWidth||1,r=I(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=B(t),c=H(e,a,n),u={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(o||!o&&!n)&&(("body"!==W(t)||q(s))&&(u=(r=t)!==L(r)&&C(r)?{scrollLeft:(i=r).scrollLeft,scrollTop:i.scrollTop}:V(r)),C(t)?((p=H(t,!0)).x+=t.clientLeft,p.y+=t.clientTop):s&&(p.x=N(s))),{x:c.left+u.scrollLeft-p.x,y:c.top+u.scrollTop-p.y,width:c.width,height:c.height}}function $(e){var t=H(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function X(e){return"html"===W(e)?e:e.assignedSlot||e.parentNode||(F(e)?e.host:null)||B(e)}function Z(e){return["html","body","#document"].indexOf(W(e))>=0?e.ownerDocument.body:C(e)&&q(e)?e:Z(X(e))}function K(e,t){var n;void 0===t&&(t=[]);var r=Z(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=L(r),a=i?[o].concat(o.visualViewport||[],q(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(K(X(a)))}function Y(e){return["table","td","th"].indexOf(W(e))>=0}function J(e){return C(e)&&"fixed"!==z(e).position?e.offsetParent:null}function G(e){for(var t=L(e),n=J(e);n&&Y(n)&&"static"===z(n).position;)n=J(n);return n&&("html"===W(n)||"body"===W(n)&&"static"===z(n).position)?t:n||function(e){var t=/firefox/i.test(M());if(/Trident/i.test(M())&&C(e)&&"fixed"===z(e).position)return null;var n=X(e);for(F(n)&&(n=n.host);C(n)&&["html","body"].indexOf(W(n))<0;){var r=z(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var Q="top",ee="bottom",te="right",ne="left",re="auto",ie=[Q,ee,te,ne],oe="start",ae="end",se="clippingParents",ce="viewport",ue="popper",pe="reference",fe=ie.reduce((function(e,t){return e.concat([t+"-"+oe,t+"-"+ae])}),[]),le=[].concat(ie,[re]).reduce((function(e,t){return e.concat([t,t+"-"+oe,t+"-"+ae])}),[]),de=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function he(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}var me={placement:"bottom",modifiers:[],strategy:"absolute"};function ve(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function Oe(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?be(i):null,a=i?xe(i):null,s=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(o){case Q:t={x:s,y:n.y-r.height};break;case ee:t={x:s,y:n.y+n.height};break;case te:t={x:n.x+n.width,y:c};break;case ne:t={x:n.x-r.width,y:c};break;default:t={x:n.x,y:n.y}}var u=o?we(o):null;if(null!=u){var p="y"===u?"height":"width";switch(a){case oe:t[u]=t[u]-(n[p]/2-r[p]/2);break;case ae:t[u]=t[u]+(n[p]/2-r[p]/2)}}return t}var Ae={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ee(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,u=e.adaptive,p=e.roundOffsets,f=e.isFixed,l=a.x,d=void 0===l?0:l,h=a.y,m=void 0===h?0:h,v="function"==typeof p?p({x:d,y:m}):{x:d,y:m};d=v.x,m=v.y;var g=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=ne,x=Q,w=window;if(u){var O=G(n),A="clientHeight",E="clientWidth";if(O===L(n)&&"static"!==z(O=B(n)).position&&"absolute"===s&&(A="scrollHeight",E="scrollWidth"),i===Q||(i===ne||i===te)&&o===ae)x=ee,m-=(f&&O===w&&w.visualViewport?w.visualViewport.height:O[A])-r.height,m*=c?1:-1;if(i===ne||(i===Q||i===ee)&&o===ae)b=te,d-=(f&&O===w&&w.visualViewport?w.visualViewport.width:O[E])-r.width,d*=c?1:-1}var T,_=Object.assign({position:s},u&&Ae),k=!0===p?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:I(t*r)/r||0,y:I(n*r)/r||0}}({x:d,y:m}):{x:d,y:m};return d=k.x,m=k.y,c?Object.assign({},_,((T={})[x]=y?"0":"",T[b]=g?"0":"",T.transform=(w.devicePixelRatio||1)<=1?"translate("+d+"px, "+m+"px)":"translate3d("+d+"px, "+m+"px, 0)",T)):Object.assign({},_,((t={})[x]=y?m+"px":"",t[b]=g?d+"px":"",t.transform="",t))}var Te={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];C(i)&&W(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});C(r)&&W(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};var _e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=le.reduce((function(e,n){return e[n]=function(e,t,n){var r=be(e),i=[ne,Q].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[ne,te].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e}),{}),s=a[t.placement],c=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}},ke={left:"right",right:"left",bottom:"top",top:"bottom"};function je(e){return e.replace(/left|right|bottom|top/g,(function(e){return ke[e]}))}var Le={start:"end",end:"start"};function De(e){return e.replace(/start|end/g,(function(e){return Le[e]}))}function Ce(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&F(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Fe(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Se(e,t,n){return t===ce?Fe(function(e,t){var n=L(e),r=B(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,c=0;if(i){o=i.width,a=i.height;var u=R();(u||!u&&"fixed"===t)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:s+N(e),y:c}}(e,n)):D(t)?function(e,t){var n=H(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Fe(function(e){var t,n=B(e),r=V(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=S(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=S(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+N(e),c=-r.scrollTop;return"rtl"===z(i||n).direction&&(s+=S(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:c}}(B(e)))}function Pe(e,t,n,r){var i="clippingParents"===t?function(e){var t=K(X(e)),n=["absolute","fixed"].indexOf(z(e).position)>=0&&C(e)?G(e):e;return D(n)?t.filter((function(e){return D(e)&&Ce(e,n)&&"body"!==W(e)})):[]}(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce((function(t,n){var i=Se(e,n,r);return t.top=S(i.top,t.top),t.right=P(i.right,t.right),t.bottom=P(i.bottom,t.bottom),t.left=S(i.left,t.left),t}),Se(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Ie(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Me(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Re(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.strategy,a=void 0===o?e.strategy:o,s=n.boundary,c=void 0===s?se:s,u=n.rootBoundary,p=void 0===u?ce:u,f=n.elementContext,l=void 0===f?ue:f,d=n.altBoundary,h=void 0!==d&&d,m=n.padding,v=void 0===m?0:m,g=Ie("number"!=typeof v?v:Me(v,ie)),y=l===ue?pe:ue,b=e.rects.popper,x=e.elements[h?y:l],w=Pe(D(x)?x:x.contextElement||B(e.elements.popper),c,p,a),O=H(e.elements.reference),A=Oe({reference:O,element:b,strategy:"absolute",placement:i}),E=Fe(Object.assign({},b,A)),T=l===ue?E:O,_={top:w.top-T.top+g.top,bottom:T.bottom-w.bottom+g.bottom,left:w.left-T.left+g.left,right:T.right-w.right+g.right},k=e.modifiersData.offset;if(l===ue&&k){var j=k[i];Object.keys(_).forEach((function(e){var t=[te,ee].indexOf(e)>=0?1:-1,n=[Q,ee].indexOf(e)>=0?"y":"x";_[e]+=j[n]*t}))}return _}function He(e,t,n){return S(e,P(t,n))}var Ve={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,c=n.boundary,u=n.rootBoundary,p=n.altBoundary,f=n.padding,l=n.tether,d=void 0===l||l,h=n.tetherOffset,m=void 0===h?0:h,v=Re(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:p}),g=be(t.placement),y=xe(t.placement),b=!y,x=we(g),w="x"===x?"y":"x",O=t.modifiersData.popperOffsets,A=t.rects.reference,E=t.rects.popper,T="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,_="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(O){if(o){var L,D="y"===x?Q:ne,C="y"===x?ee:te,F="y"===x?"height":"width",I=O[x],M=I+v[D],R=I-v[C],H=d?-E[F]/2:0,V=y===oe?A[F]:E[F],W=y===oe?-E[F]:-A[F],B=t.elements.arrow,N=d&&B?$(B):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},q=z[D],U=z[C],X=He(0,A[F],N[F]),Z=b?A[F]/2-H-X-q-_.mainAxis:V-X-q-_.mainAxis,K=b?-A[F]/2+H+X+U+_.mainAxis:W+X+U+_.mainAxis,Y=t.elements.arrow&&G(t.elements.arrow),J=Y?"y"===x?Y.clientTop||0:Y.clientLeft||0:0,re=null!=(L=null==k?void 0:k[x])?L:0,ie=I+K-re,ae=He(d?P(M,I+Z-re-J):M,I,d?S(R,ie):R);O[x]=ae,j[x]=ae-I}if(s){var se,ce="x"===x?Q:ne,ue="x"===x?ee:te,pe=O[w],fe="y"===w?"height":"width",le=pe+v[ce],de=pe-v[ue],he=-1!==[Q,ne].indexOf(g),me=null!=(se=null==k?void 0:k[w])?se:0,ve=he?le:pe-A[fe]-E[fe]-me+_.altAxis,ge=he?pe+A[fe]+E[fe]-me-_.altAxis:de,ye=d&&he?function(e,t,n){var r=He(e,t,n);return r>n?n:r}(ve,pe,ge):He(d?ve:le,pe,d?ge:de);O[w]=ye,j[w]=ye-pe}t.modifiersData[r]=j}},requiresIfExists:["offset"]};var We={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=be(n.placement),c=we(s),u=[ne,te].indexOf(s)>=0?"height":"width";if(o&&a){var p=function(e,t){return Ie("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Me(e,ie))}(i.padding,n),f=$(o),l="y"===c?Q:ne,d="y"===c?ee:te,h=n.rects.reference[u]+n.rects.reference[c]-a[c]-n.rects.popper[u],m=a[c]-n.rects.reference[c],v=G(o),g=v?"y"===c?v.clientHeight||0:v.clientWidth||0:0,y=h/2-m/2,b=p[l],x=g-f[u]-p[d],w=g/2-f[u]/2+y,O=He(b,w,x),A=c;n.modifiersData[r]=((t={})[A]=O,t.centerOffset=O-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Ce(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Be(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ne(e){return[Q,te,ee,ne].some((function(t){return e[t]>=0}))}var ze=ge({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,c=L(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach((function(e){e.addEventListener("scroll",n.update,ye)})),s&&c.addEventListener("resize",n.update,ye),function(){o&&u.forEach((function(e){e.removeEventListener("scroll",n.update,ye)})),s&&c.removeEventListener("resize",n.update,ye)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Oe({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,c=void 0===s||s,u={placement:be(t.placement),variation:xe(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Ee(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ee(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Te,_e,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,c=n.fallbackPlacements,u=n.padding,p=n.boundary,f=n.rootBoundary,l=n.altBoundary,d=n.flipVariations,h=void 0===d||d,m=n.allowedAutoPlacements,v=t.options.placement,g=be(v),y=c||(g===v||!h?[je(v)]:function(e){if(be(e)===re)return[];var t=je(e);return[De(e),t,De(t)]}(v)),b=[v].concat(y).reduce((function(e,n){return e.concat(be(n)===re?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,u=void 0===c?le:c,p=xe(r),f=p?s?fe:fe.filter((function(e){return xe(e)===p})):ie,l=f.filter((function(e){return u.indexOf(e)>=0}));0===l.length&&(l=f);var d=l.reduce((function(t,n){return t[n]=Re(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[be(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}(t,{placement:n,boundary:p,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),x=t.rects.reference,w=t.rects.popper,O=new Map,A=!0,E=b[0],T=0;T=0,D=L?"width":"height",C=Re(t,{placement:_,boundary:p,rootBoundary:f,altBoundary:l,padding:u}),F=L?j?te:ne:j?ee:Q;x[D]>w[D]&&(F=je(F));var S=je(F),P=[];if(o&&P.push(C[k]<=0),s&&P.push(C[F]<=0,C[S]<=0),P.every((function(e){return e}))){E=_,A=!1;break}O.set(_,P)}if(A)for(var I=function(e){var t=b.find((function(t){var n=O.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},M=h?3:1;M>0;M--){if("break"===I(M))break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},Ve,We,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Re(t,{elementContext:"reference"}),s=Re(t,{altBoundary:!0}),c=Be(a,r),u=Be(s,i,o),p=Ne(c),f=Ne(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:p,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":f})}}]}),qe="tippy-content",Ue="tippy-backdrop",$e="tippy-arrow",Xe="tippy-svg-arrow",Ze={passive:!0,capture:!0},Ke=function(){return document.body};function Ye(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function Je(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function Ge(e,t){return"function"==typeof e?e.apply(void 0,t):e}function Qe(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function et(e){return[].concat(e)}function tt(e,t){-1===e.indexOf(t)&&e.push(t)}function nt(e){return e.split("-")[0]}function rt(e){return[].slice.call(e)}function it(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function ot(){return document.createElement("div")}function at(e){return["Element","Fragment"].some((function(t){return Je(e,t)}))}function st(e){return Je(e,"MouseEvent")}function ct(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function ut(e){return at(e)?[e]:function(e){return Je(e,"NodeList")}(e)?rt(e):Array.isArray(e)?e:rt(document.querySelectorAll(e))}function pt(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function ft(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function lt(e){var t,n=et(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function dt(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}function ht(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var mt={isTouch:!1},vt=0;function gt(){mt.isTouch||(mt.isTouch=!0,window.performance&&document.addEventListener("mousemove",yt))}function yt(){var e=performance.now();e-vt<20&&(mt.isTouch=!1,document.removeEventListener("mousemove",yt)),vt=e}function bt(){var e=document.activeElement;if(ct(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var xt=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var wt={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Ot=Object.assign({appendTo:Ke,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},wt,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),At=Object.keys(Ot);function Et(e){var t=(e.plugins||[]).reduce((function(t,n){var r,i=n.name,o=n.defaultValue;i&&(t[i]=void 0!==e[i]?e[i]:null!=(r=Ot[i])?r:o);return t}),{});return Object.assign({},e,t)}function Tt(e,t){var n=Object.assign({},t,{content:Ge(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Et(Object.assign({},Ot,{plugins:t}))):At).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},Ot.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}var _t=function(){return"innerHTML"};function kt(e,t){e[_t()]=t}function jt(e){var t=ot();return!0===e?t.className=$e:(t.className=Xe,at(e)?t.appendChild(e):kt(t,e)),t}function Lt(e,t){at(t.content)?(kt(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?kt(e,t.content):e.textContent=t.content)}function Dt(e){var t=e.firstElementChild,n=rt(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(qe)})),arrow:n.find((function(e){return e.classList.contains($e)||e.classList.contains(Xe)})),backdrop:n.find((function(e){return e.classList.contains(Ue)}))}}function Ct(e){var t=ot(),n=ot();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=ot();function i(n,r){var i=Dt(t),o=i.box,a=i.content,s=i.arrow;r.theme?o.setAttribute("data-theme",r.theme):o.removeAttribute("data-theme"),"string"==typeof r.animation?o.setAttribute("data-animation",r.animation):o.removeAttribute("data-animation"),r.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?o.setAttribute("role",r.role):o.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||Lt(a,e.props),r.arrow?s?n.arrow!==r.arrow&&(o.removeChild(s),o.appendChild(jt(r.arrow))):o.appendChild(jt(r.arrow)):s&&o.removeChild(s)}return r.className=qe,r.setAttribute("data-state","hidden"),Lt(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props),{popper:t,onUpdate:i}}Ct.$$tippy=!0;var Ft=1,St=[],Pt=[];function It(e,t){var n,r,i,o,a,s,c,u,p=Tt(e,Object.assign({},Ot,Et(it(t)))),f=!1,l=!1,d=!1,h=!1,m=[],v=Qe(X,p.interactiveDebounce),g=Ft++,y=(u=p.plugins).filter((function(e,t){return u.indexOf(e)===t})),b={id:g,reference:e,popper:ot(),popperInstance:null,props:p,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(i)},setProps:function(t){0;if(b.state.isDestroyed)return;S("onBeforeUpdate",[b,t]),U();var n=b.props,r=Tt(e,Object.assign({},n,it(t),{ignoreAttributes:!0}));b.props=r,q(),n.interactiveDebounce!==r.interactiveDebounce&&(M(),v=Qe(X,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?et(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded");I(),F(),O&&O(n,r);b.popperInstance&&(J(),Q().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));S("onAfterUpdate",[b,t])},setContent:function(e){b.setProps({content:e})},show:function(){0;var e=b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,r=mt.isTouch&&!b.props.touch,i=Ye(b.props.duration,0,Ot.duration);if(e||t||n||r)return;if(j().hasAttribute("disabled"))return;if(S("onShow",[b],!1),!1===b.props.onShow(b))return;b.state.isVisible=!0,k()&&(w.style.visibility="visible");F(),W(),b.state.isMounted||(w.style.transition="none");if(k()){var o=D();pt([o.box,o.content],0)}s=function(){var e;if(b.state.isVisible&&!h){if(h=!0,w.offsetHeight,w.style.transition=b.props.moveTransition,k()&&b.props.animation){var t=D(),n=t.box,r=t.content;pt([n,r],i),ft([n,r],"visible")}P(),I(),tt(Pt,b),null==(e=b.popperInstance)||e.forceUpdate(),S("onMount",[b]),b.props.animation&&k()&&function(e,t){N(e,t)}(i,(function(){b.state.isShown=!0,S("onShown",[b])}))}},function(){var e,t=b.props.appendTo,n=j();e=b.props.interactive&&t===Ke||"parent"===t?n.parentNode:Ge(t,[n]);e.contains(w)||e.appendChild(w);b.state.isMounted=!0,J(),!1}()},hide:function(){0;var e=!b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,r=Ye(b.props.duration,1,Ot.duration);if(e||t||n)return;if(S("onHide",[b],!1),!1===b.props.onHide(b))return;b.state.isVisible=!1,b.state.isShown=!1,h=!1,f=!1,k()&&(w.style.visibility="hidden");if(M(),B(),F(!0),k()){var i=D(),o=i.box,a=i.content;b.props.animation&&(pt([o,a],r),ft([o,a],"hidden"))}P(),I(),b.props.animation?k()&&function(e,t){N(e,(function(){!b.state.isVisible&&w.parentNode&&w.parentNode.contains(w)&&t()}))}(r,b.unmount):b.unmount()},hideWithInteractivity:function(e){0;L().addEventListener("mousemove",v),tt(St,v),v(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){0;b.state.isVisible&&b.hide();if(!b.state.isMounted)return;G(),Q().forEach((function(e){e._tippy.unmount()})),w.parentNode&&w.parentNode.removeChild(w);Pt=Pt.filter((function(e){return e!==b})),b.state.isMounted=!1,S("onHidden",[b])},destroy:function(){0;if(b.state.isDestroyed)return;b.clearDelayTimeouts(),b.unmount(),U(),delete e._tippy,b.state.isDestroyed=!0,S("onDestroy",[b])}};if(!p.render)return b;var x=p.render(b),w=x.popper,O=x.onUpdate;w.setAttribute("data-tippy-root",""),w.id="tippy-"+b.id,b.popper=w,e._tippy=b,w._tippy=b;var A=y.map((function(e){return e.fn(b)})),E=e.hasAttribute("aria-expanded");return q(),I(),F(),S("onCreate",[b]),p.showOnCreate&&ee(),w.addEventListener("mouseenter",(function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()})),w.addEventListener("mouseleave",(function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&L().addEventListener("mousemove",v)})),b;function T(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function _(){return"hold"===T()[0]}function k(){var e;return!(null==(e=b.props.render)||!e.$$tippy)}function j(){return c||e}function L(){var e=j().parentNode;return e?lt(e):document}function D(){return Dt(w)}function C(e){return b.state.isMounted&&!b.state.isVisible||mt.isTouch||o&&"focus"===o.type?0:Ye(b.props.delay,e?0:1,Ot.delay)}function F(e){void 0===e&&(e=!1),w.style.pointerEvents=b.props.interactive&&!e?"":"none",w.style.zIndex=""+b.props.zIndex}function S(e,t,n){var r;(void 0===n&&(n=!0),A.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(r=b.props)[e].apply(r,t)}function P(){var t=b.props.aria;if(t.content){var n="aria-"+t.content,r=w.id;et(b.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(b.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var i=t&&t.replace(r,"").trim();i?e.setAttribute(n,i):e.removeAttribute(n)}}))}}function I(){!E&&b.props.aria.expanded&&et(b.props.triggerTarget||e).forEach((function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===j()?"true":"false"):e.removeAttribute("aria-expanded")}))}function M(){L().removeEventListener("mousemove",v),St=St.filter((function(e){return e!==v}))}function R(t){if(!mt.isTouch||!d&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!b.props.interactive||!ht(w,n)){if(et(b.props.triggerTarget||e).some((function(e){return ht(e,n)}))){if(mt.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else S("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),l=!0,setTimeout((function(){l=!1})),b.state.isMounted||B())}}}function H(){d=!0}function V(){d=!1}function W(){var e=L();e.addEventListener("mousedown",R,!0),e.addEventListener("touchend",R,Ze),e.addEventListener("touchstart",V,Ze),e.addEventListener("touchmove",H,Ze)}function B(){var e=L();e.removeEventListener("mousedown",R,!0),e.removeEventListener("touchend",R,Ze),e.removeEventListener("touchstart",V,Ze),e.removeEventListener("touchmove",H,Ze)}function N(e,t){var n=D().box;function r(e){e.target===n&&(dt(n,"remove",r),t())}if(0===e)return t();dt(n,"remove",a),dt(n,"add",r),a=r}function z(t,n,r){void 0===r&&(r=!1),et(b.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),m.push({node:e,eventType:t,handler:n,options:r})}))}function q(){var e;_()&&(z("touchstart",$,{passive:!0}),z("touchend",Z,{passive:!0})),(e=b.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(z(e,$),e){case"mouseenter":z("mouseleave",Z);break;case"focus":z(xt?"focusout":"blur",K);break;case"focusin":z("focusout",K)}}))}function U(){m.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,i=e.options;t.removeEventListener(n,r,i)})),m=[]}function $(e){var t,n=!1;if(b.state.isEnabled&&!Y(e)&&!l){var r="focus"===(null==(t=o)?void 0:t.type);o=e,c=e.currentTarget,I(),!b.state.isVisible&&st(e)&&St.forEach((function(t){return t(e)})),"click"===e.type&&(b.props.trigger.indexOf("mouseenter")<0||f)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:ee(e),"click"===e.type&&(f=!n),n&&!r&&te(e)}}function X(e){var t=e.target,n=j().contains(t)||w.contains(t);if("mousemove"!==e.type||!n){var r=Q().concat(w).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:p}:null})).filter(Boolean);(function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,i=e.popperState,o=e.props.interactiveBorder,a=nt(i.placement),s=i.modifiersData.offset;if(!s)return!0;var c="bottom"===a?s.top.y:0,u="top"===a?s.bottom.y:0,p="right"===a?s.left.x:0,f="left"===a?s.right.x:0,l=t.top-r+c>o,d=r-t.bottom-u>o,h=t.left-n+p>o,m=n-t.right-f>o;return l||d||h||m}))})(r,e)&&(M(),te(e))}}function Z(e){Y(e)||b.props.trigger.indexOf("click")>=0&&f||(b.props.interactive?b.hideWithInteractivity(e):te(e))}function K(e){b.props.trigger.indexOf("focusin")<0&&e.target!==j()||b.props.interactive&&e.relatedTarget&&w.contains(e.relatedTarget)||te(e)}function Y(e){return!!mt.isTouch&&_()!==e.type.indexOf("touch")>=0}function J(){G();var t=b.props,n=t.popperOptions,r=t.placement,i=t.offset,o=t.getReferenceClientRect,a=t.moveTransition,c=k()?Dt(w).arrow:null,u=o?{getBoundingClientRect:o,contextElement:o.contextElement||j()}:e,p={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(k()){var n=D().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}},f=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},p];k()&&c&&f.push({name:"arrow",options:{element:c,padding:3}}),f.push.apply(f,(null==n?void 0:n.modifiers)||[]),b.popperInstance=ze(u,w,Object.assign({},n,{placement:r,onFirstUpdate:s,modifiers:f}))}function G(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Q(){return rt(w.querySelectorAll("[data-tippy-root]"))}function ee(e){b.clearDelayTimeouts(),e&&S("onTrigger",[b,e]),W();var t=C(!0),r=T(),i=r[0],o=r[1];mt.isTouch&&"hold"===i&&o&&(t=o),t?n=setTimeout((function(){b.show()}),t):b.show()}function te(e){if(b.clearDelayTimeouts(),S("onUntrigger",[b,e]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&f)){var t=C(!1);t?r=setTimeout((function(){b.state.isVisible&&b.hide()}),t):i=requestAnimationFrame((function(){b.hide()}))}}else B()}}function Mt(e,t){void 0===t&&(t={});var n=Ot.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",gt,Ze),window.addEventListener("blur",bt);var r=Object.assign({},t,{plugins:n}),i=ut(e).reduce((function(e,t){var n=t&&It(t,r);return n&&e.push(n),e}),[]);return at(e)?i[0]:i}Mt.defaultProps=Ot,Mt.setDefaultProps=function(e){Object.keys(e).forEach((function(t){Ot[t]=e[t]}))},Mt.currentInput=mt;Object.assign({},Te,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});Mt.setDefaultProps({render:Ct});var Rt=Mt;const Ht={init(){[...document.images].forEach((e=>{this.wrapImage(e)}));const e=document.querySelectorAll(".cld-tag");Rt(e,{placement:"bottom-start",interactive:!0,appendTo:()=>document.body,aria:{content:"auto",expanded:"auto"},content:e=>e.template.innerHTML,allowHTML:!0})},wrapImage(e){e.dataset.publicId?this.cldTag(e):this.wpTag(e)},createTag(e){const t=document.createElement("span");return t.classList.add("overlay-tag"),e.parentNode.insertBefore(t,e),t},cldTag(e){const t=this.createTag(e);t.template=this.createTemplate(e),t.innerText=j("Cloudinary","cloudinary"),t.classList.add("cld-tag")},wpTag(e){const t=this.createTag(e);t.innerText=j("WordPress","cloudinary"),t.classList.add("wp-tag")},createTemplate(e){const t=document.createElement("div");t.classList.add("cld-tag-info"),t.appendChild(this.makeLine(j("Local size","cloudinary"),e.dataset.filesize)),t.appendChild(this.makeLine(j("Optimized size","cloudinary"),e.dataset.optsize)),t.appendChild(this.makeLine(j("Optimized format","cloudinary"),e.dataset.optformat)),e.dataset.percent&&t.appendChild(this.makeLine(j("Reduction","cloudinary"),e.dataset.percent+"%")),t.appendChild(this.makeLine(j("Transformations","cloudinary"),e.dataset.transformations)),e.dataset.transformationCrop&&t.appendChild(this.makeLine(j("Crop transformations","cloudinary"),e.dataset.transformationCrop));const n=document.createElement("a");return n.classList.add("edit-link"),n.href=e.dataset.permalink,n.innerText=j("Edit asset","cloudinary"),t.appendChild(this.makeLine("","",n)),t},makeLine(e,t,n){const r=document.createElement("div"),i=document.createElement("span"),o=document.createElement("span");return i.innerText=e,i.classList.add("title"),o.innerText=t,n&&o.appendChild(n),r.appendChild(i),r.appendChild(o),r}};window.addEventListener("load",(()=>Ht.init()))}()}(); \ No newline at end of file +!function(){var e={"./node_modules/@popperjs/core/lib/createPopper.js":function(e,t,n){"use strict";n.r(t),n.d(t,{createPopper:function(){return w},detectOverflow:function(){return m.default},popperGenerator:function(){return _}});var o=n("./node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js"),r=n("./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js"),i=n("./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js"),s=n("./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js"),u=n("./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js"),a=n("./node_modules/@popperjs/core/lib/utils/orderModifiers.js"),l=n("./node_modules/@popperjs/core/lib/utils/debounce.js"),d=n("./node_modules/@popperjs/core/lib/utils/validateModifiers.js"),c=n("./node_modules/@popperjs/core/lib/utils/uniqueBy.js"),p=n("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"),f=n("./node_modules/@popperjs/core/lib/utils/mergeByName.js"),m=n("./node_modules/@popperjs/core/lib/utils/detectOverflow.js"),h=n("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"),b=n("./node_modules/@popperjs/core/lib/enums.js"),v="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",g="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",j={placement:"bottom",modifiers:[],strategy:"absolute"};function y(){for(var e=arguments.length,t=new Array(e),n=0;n100){console.error(g);break}if(!0!==_.reset){var a=_.orderedModifiers[u],l=a.fn,d=a.options,c=void 0===d?{}:d,p=a.name;"function"==typeof l&&(_=l({state:_,options:c,name:p,instance:k})||_)}else _.reset=!1,u=-1}}else console.error(v)}},update:(0,l.default)((function(){return new Promise((function(e){k.forceUpdate(),e(_)}))})),destroy:function(){E(),O=!0}};if(!y(e,t))return console.error(v),k;function E(){x.forEach((function(e){return e()})),x=[]}return k.setOptions(n).then((function(e){!O&&n.onFirstUpdate&&n.onFirstUpdate(e)})),k}}var w=_()},"./node_modules/@popperjs/core/lib/dom-utils/contains.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var o=n("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");function r(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&(0,o.isShadowRoot)(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}},"./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var o=n("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"),r=n("./node_modules/@popperjs/core/lib/utils/math.js"),i=n("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"),s=n("./node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js");function u(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var u=e.getBoundingClientRect(),a=1,l=1;t&&(0,o.isHTMLElement)(e)&&(a=e.offsetWidth>0&&(0,r.round)(u.width)/e.offsetWidth||1,l=e.offsetHeight>0&&(0,r.round)(u.height)/e.offsetHeight||1);var d=((0,o.isElement)(e)?(0,i.default)(e):window).visualViewport,c=!(0,s.default)()&&n,p=(u.left+(c&&d?d.offsetLeft:0))/a,f=(u.top+(c&&d?d.offsetTop:0))/l,m=u.width/a,h=u.height/l;return{width:m,height:h,top:f,right:p+m,bottom:f+h,left:p,x:p,y:f}}},"./node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return g}});var o=n("./node_modules/@popperjs/core/lib/enums.js"),r=n("./node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js"),i=n("./node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js"),s=n("./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js"),u=n("./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js"),a=n("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),l=n("./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js"),d=n("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"),c=n("./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js"),p=n("./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js"),f=n("./node_modules/@popperjs/core/lib/dom-utils/contains.js"),m=n("./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"),h=n("./node_modules/@popperjs/core/lib/utils/rectToClientRect.js"),b=n("./node_modules/@popperjs/core/lib/utils/math.js");function v(e,t,n){return t===o.viewport?(0,h.default)((0,r.default)(e,n)):(0,d.isElement)(t)?function(e,t){var n=(0,c.default)(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):(0,h.default)((0,i.default)((0,a.default)(e)))}function g(e,t,n,o){var r="clippingParents"===t?function(e){var t=(0,s.default)((0,p.default)(e)),n=["absolute","fixed"].indexOf((0,l.default)(e).position)>=0&&(0,d.isHTMLElement)(e)?(0,u.default)(e):e;return(0,d.isElement)(n)?t.filter((function(e){return(0,d.isElement)(e)&&(0,f.default)(e,n)&&"body"!==(0,m.default)(e)})):[]}(e):[].concat(t),i=[].concat(r,[n]),a=i[0],c=i.reduce((function(t,n){var r=v(e,n,o);return t.top=(0,b.max)(r.top,t.top),t.right=(0,b.min)(r.right,t.right),t.bottom=(0,b.min)(r.bottom,t.bottom),t.left=(0,b.max)(r.left,t.left),t}),v(e,a,o));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}},"./node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var o=n("./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js"),r=n("./node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js"),i=n("./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"),s=n("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"),u=n("./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js"),a=n("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),l=n("./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js"),d=n("./node_modules/@popperjs/core/lib/utils/math.js");function c(e,t,n){void 0===n&&(n=!1);var c=(0,s.isHTMLElement)(t),p=(0,s.isHTMLElement)(t)&&function(e){var t=e.getBoundingClientRect(),n=(0,d.round)(t.width)/e.offsetWidth||1,o=(0,d.round)(t.height)/e.offsetHeight||1;return 1!==n||1!==o}(t),f=(0,a.default)(t),m=(0,o.default)(e,p,n),h={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(c||!c&&!n)&&(("body"!==(0,i.default)(t)||(0,l.default)(f))&&(h=(0,r.default)(t)),(0,s.isHTMLElement)(t)?((b=(0,o.default)(t,!0)).x+=t.clientLeft,b.y+=t.clientTop):f&&(b.x=(0,u.default)(f))),{x:m.left+h.scrollLeft-b.x,y:m.top+h.scrollTop-b.y,width:m.width,height:m.height}}},"./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var o=n("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js");function r(e){return(0,o.default)(e).getComputedStyle(e)}},"./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var o=n("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");function r(e){return(((0,o.isElement)(e)?e.ownerDocument:e.document)||window.document).documentElement}},"./node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var o=n("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),r=n("./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js"),i=n("./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js"),s=n("./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js"),u=n("./node_modules/@popperjs/core/lib/utils/math.js");function a(e){var t,n=(0,o.default)(e),a=(0,s.default)(e),l=null==(t=e.ownerDocument)?void 0:t.body,d=(0,u.max)(n.scrollWidth,n.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),c=(0,u.max)(n.scrollHeight,n.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),p=-a.scrollLeft+(0,i.default)(e),f=-a.scrollTop;return"rtl"===(0,r.default)(l||n).direction&&(p+=(0,u.max)(n.clientWidth,l?l.clientWidth:0)-d),{width:d,height:c,x:p,y:f}}},"./node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js":function(e,t,n){"use strict";function o(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}n.r(t),n.d(t,{default:function(){return o}})},"./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var o=n("./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js");function r(e){var t=(0,o.default)(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}},"./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js":function(e,t,n){"use strict";function o(e){return e?(e.nodeName||"").toLowerCase():null}n.r(t),n.d(t,{default:function(){return o}})},"./node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var o=n("./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js"),r=n("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"),i=n("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"),s=n("./node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js");function u(e){return e!==(0,r.default)(e)&&(0,i.isHTMLElement)(e)?(0,s.default)(e):(0,o.default)(e)}},"./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var o=n("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"),r=n("./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"),i=n("./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js"),s=n("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"),u=n("./node_modules/@popperjs/core/lib/dom-utils/isTableElement.js"),a=n("./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js"),l=n("./node_modules/@popperjs/core/lib/utils/userAgent.js");function d(e){return(0,s.isHTMLElement)(e)&&"fixed"!==(0,i.default)(e).position?e.offsetParent:null}function c(e){for(var t=(0,o.default)(e),n=d(e);n&&(0,u.default)(n)&&"static"===(0,i.default)(n).position;)n=d(n);return n&&("html"===(0,r.default)(n)||"body"===(0,r.default)(n)&&"static"===(0,i.default)(n).position)?t:n||function(e){var t=/firefox/i.test((0,l.default)());if(/Trident/i.test((0,l.default)())&&(0,s.isHTMLElement)(e)&&"fixed"===(0,i.default)(e).position)return null;var n=(0,a.default)(e);for((0,s.isShadowRoot)(n)&&(n=n.host);(0,s.isHTMLElement)(n)&&["html","body"].indexOf((0,r.default)(n))<0;){var o=(0,i.default)(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}},"./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var o=n("./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"),r=n("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),i=n("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");function s(e){return"html"===(0,o.default)(e)?e:e.assignedSlot||e.parentNode||((0,i.isShadowRoot)(e)?e.host:null)||(0,r.default)(e)}},"./node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var o=n("./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js"),r=n("./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js"),i=n("./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"),s=n("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");function u(e){return["html","body","#document"].indexOf((0,i.default)(e))>=0?e.ownerDocument.body:(0,s.isHTMLElement)(e)&&(0,r.default)(e)?e:u((0,o.default)(e))}},"./node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var o=n("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"),r=n("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),i=n("./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js"),s=n("./node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js");function u(e,t){var n=(0,o.default)(e),u=(0,r.default)(e),a=n.visualViewport,l=u.clientWidth,d=u.clientHeight,c=0,p=0;if(a){l=a.width,d=a.height;var f=(0,s.default)();(f||!f&&"fixed"===t)&&(c=a.offsetLeft,p=a.offsetTop)}return{width:l,height:d,x:c+(0,i.default)(e),y:p}}},"./node_modules/@popperjs/core/lib/dom-utils/getWindow.js":function(e,t,n){"use strict";function o(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}n.r(t),n.d(t,{default:function(){return o}})},"./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var o=n("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js");function r(e){var t=(0,o.default)(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}},"./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var o=n("./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js"),r=n("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),i=n("./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js");function s(e){return(0,o.default)((0,r.default)(e)).left+(0,i.default)(e).scrollLeft}},"./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js":function(e,t,n){"use strict";n.r(t),n.d(t,{isElement:function(){return r},isHTMLElement:function(){return i},isShadowRoot:function(){return s}});var o=n("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js");function r(e){return e instanceof(0,o.default)(e).Element||e instanceof Element}function i(e){return e instanceof(0,o.default)(e).HTMLElement||e instanceof HTMLElement}function s(e){return"undefined"!=typeof ShadowRoot&&(e instanceof(0,o.default)(e).ShadowRoot||e instanceof ShadowRoot)}},"./node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var o=n("./node_modules/@popperjs/core/lib/utils/userAgent.js");function r(){return!/^((?!chrome|android).)*safari/i.test((0,o.default)())}},"./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var o=n("./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js");function r(e){var t=(0,o.default)(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}},"./node_modules/@popperjs/core/lib/dom-utils/isTableElement.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var o=n("./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js");function r(e){return["table","td","th"].indexOf((0,o.default)(e))>=0}},"./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var o=n("./node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js"),r=n("./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js"),i=n("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"),s=n("./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js");function u(e,t){var n;void 0===t&&(t=[]);var a=(0,o.default)(e),l=a===(null==(n=e.ownerDocument)?void 0:n.body),d=(0,i.default)(a),c=l?[d].concat(d.visualViewport||[],(0,s.default)(a)?a:[]):a,p=t.concat(c);return l?p:p.concat(u((0,r.default)(c)))}},"./node_modules/@popperjs/core/lib/enums.js":function(e,t,n){"use strict";n.r(t),n.d(t,{afterMain:function(){return w},afterRead:function(){return j},afterWrite:function(){return k},auto:function(){return u},basePlacements:function(){return a},beforeMain:function(){return y},beforeRead:function(){return v},beforeWrite:function(){return x},bottom:function(){return r},clippingParents:function(){return c},end:function(){return d},left:function(){return s},main:function(){return _},modifierPhases:function(){return E},placements:function(){return b},popper:function(){return f},read:function(){return g},reference:function(){return m},right:function(){return i},start:function(){return l},top:function(){return o},variationPlacements:function(){return h},viewport:function(){return p},write:function(){return O}});var o="top",r="bottom",i="right",s="left",u="auto",a=[o,r,i,s],l="start",d="end",c="clippingParents",p="viewport",f="popper",m="reference",h=a.reduce((function(e,t){return e.concat([t+"-"+l,t+"-"+d])}),[]),b=[].concat(a,[u]).reduce((function(e,t){return e.concat([t,t+"-"+l,t+"-"+d])}),[]),v="beforeRead",g="read",j="afterRead",y="beforeMain",_="main",w="afterMain",x="beforeWrite",O="write",k="afterWrite",E=[v,g,j,y,_,w,x,O,k]},"./node_modules/@popperjs/core/lib/modifiers/applyStyles.js":function(e,t,n){"use strict";n.r(t);var o=n("./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"),r=n("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");t.default={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},s=t.elements[e];(0,r.isHTMLElement)(s)&&(0,o.default)(s)&&(Object.assign(s.style,n),Object.keys(i).forEach((function(e){var t=i[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],s=t.attributes[e]||{},u=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});(0,r.isHTMLElement)(i)&&(0,o.default)(i)&&(Object.assign(i.style,u),Object.keys(s).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]}},"./node_modules/@popperjs/core/lib/modifiers/arrow.js":function(e,t,n){"use strict";n.r(t);var o=n("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"),r=n("./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js"),i=n("./node_modules/@popperjs/core/lib/dom-utils/contains.js"),s=n("./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js"),u=n("./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js"),a=n("./node_modules/@popperjs/core/lib/utils/within.js"),l=n("./node_modules/@popperjs/core/lib/utils/mergePaddingObject.js"),d=n("./node_modules/@popperjs/core/lib/utils/expandToHashMap.js"),c=n("./node_modules/@popperjs/core/lib/enums.js"),p=n("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");t.default={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,p=e.options,f=n.elements.arrow,m=n.modifiersData.popperOffsets,h=(0,o.default)(n.placement),b=(0,u.default)(h),v=[c.left,c.right].indexOf(h)>=0?"height":"width";if(f&&m){var g=function(e,t){return e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,(0,l.default)("number"!=typeof e?e:(0,d.default)(e,c.basePlacements))}(p.padding,n),j=(0,r.default)(f),y="y"===b?c.top:c.left,_="y"===b?c.bottom:c.right,w=n.rects.reference[v]+n.rects.reference[b]-m[b]-n.rects.popper[v],x=m[b]-n.rects.reference[b],O=(0,s.default)(f),k=O?"y"===b?O.clientHeight||0:O.clientWidth||0:0,E=w/2-x/2,T=g[y],A=k-j[v]-g[_],S=k/2-j[v]/2+E,P=(0,a.within)(T,S,A),L=b;n.modifiersData[i]=((t={})[L]=P,t.centerOffset=P-S,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&((0,p.isHTMLElement)(o)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" ")),(0,i.default)(t.elements.popper,o)?t.elements.arrow=o:console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" ")))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},"./node_modules/@popperjs/core/lib/modifiers/computeStyles.js":function(e,t,n){"use strict";n.r(t),n.d(t,{mapToStyles:function(){return p}});var o=n("./node_modules/@popperjs/core/lib/enums.js"),r=n("./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js"),i=n("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"),s=n("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),u=n("./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js"),a=n("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"),l=n("./node_modules/@popperjs/core/lib/utils/getVariation.js"),d=n("./node_modules/@popperjs/core/lib/utils/math.js"),c={top:"auto",right:"auto",bottom:"auto",left:"auto"};function p(e){var t,n=e.popper,a=e.popperRect,l=e.placement,p=e.variation,f=e.offsets,m=e.position,h=e.gpuAcceleration,b=e.adaptive,v=e.roundOffsets,g=e.isFixed,j=f.x,y=void 0===j?0:j,_=f.y,w=void 0===_?0:_,x="function"==typeof v?v({x:y,y:w}):{x:y,y:w};y=x.x,w=x.y;var O=f.hasOwnProperty("x"),k=f.hasOwnProperty("y"),E=o.left,T=o.top,A=window;if(b){var S=(0,r.default)(n),P="clientHeight",L="clientWidth";if(S===(0,i.default)(n)&&(S=(0,s.default)(n),"static"!==(0,u.default)(S).position&&"absolute"===m&&(P="scrollHeight",L="scrollWidth")),l===o.top||(l===o.left||l===o.right)&&p===o.end)T=o.bottom,w-=(g&&S===A&&A.visualViewport?A.visualViewport.height:S[P])-a.height,w*=h?1:-1;if(l===o.left||(l===o.top||l===o.bottom)&&p===o.end)E=o.right,y-=(g&&S===A&&A.visualViewport?A.visualViewport.width:S[L])-a.width,y*=h?1:-1}var C,D=Object.assign({position:m},b&&c),M=!0===v?function(e){var t=e.x,n=e.y,o=window.devicePixelRatio||1;return{x:(0,d.round)(t*o)/o||0,y:(0,d.round)(n*o)/o||0}}({x:y,y:w}):{x:y,y:w};return y=M.x,w=M.y,h?Object.assign({},D,((C={})[T]=k?"0":"",C[E]=O?"0":"",C.transform=(A.devicePixelRatio||1)<=1?"translate("+y+"px, "+w+"px)":"translate3d("+y+"px, "+w+"px, 0)",C)):Object.assign({},D,((t={})[T]=k?w+"px":"",t[E]=O?y+"px":"",t.transform="",t))}t.default={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=void 0===o||o,i=n.adaptive,s=void 0===i||i,d=n.roundOffsets,c=void 0===d||d,f=(0,u.default)(t.elements.popper).transitionProperty||"";s&&["transform","top","right","bottom","left"].some((function(e){return f.indexOf(e)>=0}))&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "));var m={placement:(0,a.default)(t.placement),variation:(0,l.default)(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,p(Object.assign({},m,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,p(Object.assign({},m,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}}},"./node_modules/@popperjs/core/lib/modifiers/eventListeners.js":function(e,t,n){"use strict";n.r(t);var o=n("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"),r={passive:!0};t.default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,s=i.scroll,u=void 0===s||s,a=i.resize,l=void 0===a||a,d=(0,o.default)(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return u&&c.forEach((function(e){e.addEventListener("scroll",n.update,r)})),l&&d.addEventListener("resize",n.update,r),function(){u&&c.forEach((function(e){e.removeEventListener("scroll",n.update,r)})),l&&d.removeEventListener("resize",n.update,r)}},data:{}}},"./node_modules/@popperjs/core/lib/modifiers/flip.js":function(e,t,n){"use strict";n.r(t);var o=n("./node_modules/@popperjs/core/lib/utils/getOppositePlacement.js"),r=n("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"),i=n("./node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js"),s=n("./node_modules/@popperjs/core/lib/utils/detectOverflow.js"),u=n("./node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js"),a=n("./node_modules/@popperjs/core/lib/enums.js"),l=n("./node_modules/@popperjs/core/lib/utils/getVariation.js");t.default={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,d=e.name;if(!t.modifiersData[d]._skip){for(var c=n.mainAxis,p=void 0===c||c,f=n.altAxis,m=void 0===f||f,h=n.fallbackPlacements,b=n.padding,v=n.boundary,g=n.rootBoundary,j=n.altBoundary,y=n.flipVariations,_=void 0===y||y,w=n.allowedAutoPlacements,x=t.options.placement,O=(0,r.default)(x),k=h||(O===x||!_?[(0,o.default)(x)]:function(e){if((0,r.default)(e)===a.auto)return[];var t=(0,o.default)(e);return[(0,i.default)(e),t,(0,i.default)(t)]}(x)),E=[x].concat(k).reduce((function(e,n){return e.concat((0,r.default)(n)===a.auto?(0,u.default)(t,{placement:n,boundary:v,rootBoundary:g,padding:b,flipVariations:_,allowedAutoPlacements:w}):n)}),[]),T=t.rects.reference,A=t.rects.popper,S=new Map,P=!0,L=E[0],C=0;C=0,F=H?"width":"height",I=(0,s.default)(t,{placement:D,boundary:v,rootBoundary:g,altBoundary:j,padding:b}),N=H?R?a.right:a.left:R?a.bottom:a.top;T[F]>A[F]&&(N=(0,o.default)(N));var B=(0,o.default)(N),W=[];if(p&&W.push(I[M]<=0),m&&W.push(I[N]<=0,I[B]<=0),W.every((function(e){return e}))){L=D,P=!1;break}S.set(D,W)}if(P)for(var V=function(e){var t=E.find((function(t){var n=S.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return L=t,"break"},q=_?3:1;q>0;q--){if("break"===V(q))break}t.placement!==L&&(t.modifiersData[d]._skip=!0,t.placement=L,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}}},"./node_modules/@popperjs/core/lib/modifiers/hide.js":function(e,t,n){"use strict";n.r(t);var o=n("./node_modules/@popperjs/core/lib/enums.js"),r=n("./node_modules/@popperjs/core/lib/utils/detectOverflow.js");function i(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function s(e){return[o.top,o.right,o.bottom,o.left].some((function(t){return e[t]>=0}))}t.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,o=t.rects.reference,u=t.rects.popper,a=t.modifiersData.preventOverflow,l=(0,r.default)(t,{elementContext:"reference"}),d=(0,r.default)(t,{altBoundary:!0}),c=i(l,o),p=i(d,u,a),f=s(c),m=s(p);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:p,isReferenceHidden:f,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":m})}}},"./node_modules/@popperjs/core/lib/modifiers/index.js":function(e,t,n){"use strict";n.r(t),n.d(t,{applyStyles:function(){return o.default},arrow:function(){return r.default},computeStyles:function(){return i.default},eventListeners:function(){return s.default},flip:function(){return u.default},hide:function(){return a.default},offset:function(){return l.default},popperOffsets:function(){return d.default},preventOverflow:function(){return c.default}});var o=n("./node_modules/@popperjs/core/lib/modifiers/applyStyles.js"),r=n("./node_modules/@popperjs/core/lib/modifiers/arrow.js"),i=n("./node_modules/@popperjs/core/lib/modifiers/computeStyles.js"),s=n("./node_modules/@popperjs/core/lib/modifiers/eventListeners.js"),u=n("./node_modules/@popperjs/core/lib/modifiers/flip.js"),a=n("./node_modules/@popperjs/core/lib/modifiers/hide.js"),l=n("./node_modules/@popperjs/core/lib/modifiers/offset.js"),d=n("./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js"),c=n("./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js")},"./node_modules/@popperjs/core/lib/modifiers/offset.js":function(e,t,n){"use strict";n.r(t),n.d(t,{distanceAndSkiddingToXY:function(){return i}});var o=n("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"),r=n("./node_modules/@popperjs/core/lib/enums.js");function i(e,t,n){var i=(0,o.default)(e),s=[r.left,r.top].indexOf(i)>=0?-1:1,u="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=u[0],l=u[1];return a=a||0,l=(l||0)*s,[r.left,r.right].indexOf(i)>=0?{x:l,y:a}:{x:a,y:l}}t.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,o=e.name,s=n.offset,u=void 0===s?[0,0]:s,a=r.placements.reduce((function(e,n){return e[n]=i(n,t.rects,u),e}),{}),l=a[t.placement],d=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=a}}},"./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js":function(e,t,n){"use strict";n.r(t);var o=n("./node_modules/@popperjs/core/lib/utils/computeOffsets.js");t.default={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=(0,o.default)({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}}},"./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js":function(e,t,n){"use strict";n.r(t);var o=n("./node_modules/@popperjs/core/lib/enums.js"),r=n("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"),i=n("./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js"),s=n("./node_modules/@popperjs/core/lib/utils/getAltAxis.js"),u=n("./node_modules/@popperjs/core/lib/utils/within.js"),a=n("./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js"),l=n("./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js"),d=n("./node_modules/@popperjs/core/lib/utils/detectOverflow.js"),c=n("./node_modules/@popperjs/core/lib/utils/getVariation.js"),p=n("./node_modules/@popperjs/core/lib/utils/getFreshSideObject.js"),f=n("./node_modules/@popperjs/core/lib/utils/math.js");t.default={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,m=e.name,h=n.mainAxis,b=void 0===h||h,v=n.altAxis,g=void 0!==v&&v,j=n.boundary,y=n.rootBoundary,_=n.altBoundary,w=n.padding,x=n.tether,O=void 0===x||x,k=n.tetherOffset,E=void 0===k?0:k,T=(0,d.default)(t,{boundary:j,rootBoundary:y,padding:w,altBoundary:_}),A=(0,r.default)(t.placement),S=(0,c.default)(t.placement),P=!S,L=(0,i.default)(A),C=(0,s.default)(L),D=t.modifiersData.popperOffsets,M=t.rects.reference,R=t.rects.popper,H="function"==typeof E?E(Object.assign({},t.rects,{placement:t.placement})):E,F="number"==typeof H?{mainAxis:H,altAxis:H}:Object.assign({mainAxis:0,altAxis:0},H),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(D){if(b){var B,W="y"===L?o.top:o.left,V="y"===L?o.bottom:o.right,q="y"===L?"height":"width",z=D[L],U=z+T[W],X=z-T[V],Y=O?-R[q]/2:0,$=S===o.start?M[q]:R[q],G=S===o.start?-R[q]:-M[q],Z=t.elements.arrow,J=O&&Z?(0,a.default)(Z):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:(0,p.default)(),Q=K[W],ee=K[V],te=(0,u.within)(0,M[q],J[q]),ne=P?M[q]/2-Y-te-Q-F.mainAxis:$-te-Q-F.mainAxis,oe=P?-M[q]/2+Y+te+ee+F.mainAxis:G+te+ee+F.mainAxis,re=t.elements.arrow&&(0,l.default)(t.elements.arrow),ie=re?"y"===L?re.clientTop||0:re.clientLeft||0:0,se=null!=(B=null==I?void 0:I[L])?B:0,ue=z+ne-se-ie,ae=z+oe-se,le=(0,u.within)(O?(0,f.min)(U,ue):U,z,O?(0,f.max)(X,ae):X);D[L]=le,N[L]=le-z}if(g){var de,ce="x"===L?o.top:o.left,pe="x"===L?o.bottom:o.right,fe=D[C],me="y"===C?"height":"width",he=fe+T[ce],be=fe-T[pe],ve=-1!==[o.top,o.left].indexOf(A),ge=null!=(de=null==I?void 0:I[C])?de:0,je=ve?he:fe-M[me]-R[me]-ge+F.altAxis,ye=ve?fe+M[me]+R[me]-ge-F.altAxis:be,_e=O&&ve?(0,u.withinMaxClamp)(je,fe,ye):(0,u.within)(O?je:he,fe,O?ye:be);D[C]=_e,N[C]=_e-fe}t.modifiersData[m]=N}},requiresIfExists:["offset"]}},"./node_modules/@popperjs/core/lib/popper-lite.js":function(e,t,n){"use strict";n.r(t),n.d(t,{createPopper:function(){return d},defaultModifiers:function(){return l},detectOverflow:function(){return r.default},popperGenerator:function(){return o.popperGenerator}});var o=n("./node_modules/@popperjs/core/lib/createPopper.js"),r=n("./node_modules/@popperjs/core/lib/utils/detectOverflow.js"),i=n("./node_modules/@popperjs/core/lib/modifiers/eventListeners.js"),s=n("./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js"),u=n("./node_modules/@popperjs/core/lib/modifiers/computeStyles.js"),a=n("./node_modules/@popperjs/core/lib/modifiers/applyStyles.js"),l=[i.default,s.default,u.default,a.default],d=(0,o.popperGenerator)({defaultModifiers:l})},"./node_modules/@popperjs/core/lib/popper.js":function(e,t,n){"use strict";n.r(t),n.d(t,{applyStyles:function(){return h.applyStyles},arrow:function(){return h.arrow},computeStyles:function(){return h.computeStyles},createPopper:function(){return v},createPopperLite:function(){return m.createPopper},defaultModifiers:function(){return b},detectOverflow:function(){return r.default},eventListeners:function(){return h.eventListeners},flip:function(){return h.flip},hide:function(){return h.hide},offset:function(){return h.offset},popperGenerator:function(){return o.popperGenerator},popperOffsets:function(){return h.popperOffsets},preventOverflow:function(){return h.preventOverflow}});var o=n("./node_modules/@popperjs/core/lib/createPopper.js"),r=n("./node_modules/@popperjs/core/lib/utils/detectOverflow.js"),i=n("./node_modules/@popperjs/core/lib/modifiers/eventListeners.js"),s=n("./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js"),u=n("./node_modules/@popperjs/core/lib/modifiers/computeStyles.js"),a=n("./node_modules/@popperjs/core/lib/modifiers/applyStyles.js"),l=n("./node_modules/@popperjs/core/lib/modifiers/offset.js"),d=n("./node_modules/@popperjs/core/lib/modifiers/flip.js"),c=n("./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js"),p=n("./node_modules/@popperjs/core/lib/modifiers/arrow.js"),f=n("./node_modules/@popperjs/core/lib/modifiers/hide.js"),m=n("./node_modules/@popperjs/core/lib/popper-lite.js"),h=n("./node_modules/@popperjs/core/lib/modifiers/index.js"),b=[i.default,s.default,u.default,a.default,l.default,d.default,c.default,p.default,f.default],v=(0,o.popperGenerator)({defaultModifiers:b})},"./node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var o=n("./node_modules/@popperjs/core/lib/utils/getVariation.js"),r=n("./node_modules/@popperjs/core/lib/enums.js"),i=n("./node_modules/@popperjs/core/lib/utils/detectOverflow.js"),s=n("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js");function u(e,t){void 0===t&&(t={});var n=t,u=n.placement,a=n.boundary,l=n.rootBoundary,d=n.padding,c=n.flipVariations,p=n.allowedAutoPlacements,f=void 0===p?r.placements:p,m=(0,o.default)(u),h=m?c?r.variationPlacements:r.variationPlacements.filter((function(e){return(0,o.default)(e)===m})):r.basePlacements,b=h.filter((function(e){return f.indexOf(e)>=0}));0===b.length&&(b=h,console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var v=b.reduce((function(t,n){return t[n]=(0,i.default)(e,{placement:n,boundary:a,rootBoundary:l,padding:d})[(0,s.default)(n)],t}),{});return Object.keys(v).sort((function(e,t){return v[e]-v[t]}))}},"./node_modules/@popperjs/core/lib/utils/computeOffsets.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var o=n("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"),r=n("./node_modules/@popperjs/core/lib/utils/getVariation.js"),i=n("./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js"),s=n("./node_modules/@popperjs/core/lib/enums.js");function u(e){var t,n=e.reference,u=e.element,a=e.placement,l=a?(0,o.default)(a):null,d=a?(0,r.default)(a):null,c=n.x+n.width/2-u.width/2,p=n.y+n.height/2-u.height/2;switch(l){case s.top:t={x:c,y:n.y-u.height};break;case s.bottom:t={x:c,y:n.y+n.height};break;case s.right:t={x:n.x+n.width,y:p};break;case s.left:t={x:n.x-u.width,y:p};break;default:t={x:n.x,y:n.y}}var f=l?(0,i.default)(l):null;if(null!=f){var m="y"===f?"height":"width";switch(d){case s.start:t[f]=t[f]-(n[m]/2-u[m]/2);break;case s.end:t[f]=t[f]+(n[m]/2-u[m]/2)}}return t}},"./node_modules/@popperjs/core/lib/utils/debounce.js":function(e,t,n){"use strict";function o(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}n.r(t),n.d(t,{default:function(){return o}})},"./node_modules/@popperjs/core/lib/utils/detectOverflow.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});var o=n("./node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js"),r=n("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),i=n("./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js"),s=n("./node_modules/@popperjs/core/lib/utils/computeOffsets.js"),u=n("./node_modules/@popperjs/core/lib/utils/rectToClientRect.js"),a=n("./node_modules/@popperjs/core/lib/enums.js"),l=n("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"),d=n("./node_modules/@popperjs/core/lib/utils/mergePaddingObject.js"),c=n("./node_modules/@popperjs/core/lib/utils/expandToHashMap.js");function p(e,t){void 0===t&&(t={});var n=t,p=n.placement,f=void 0===p?e.placement:p,m=n.strategy,h=void 0===m?e.strategy:m,b=n.boundary,v=void 0===b?a.clippingParents:b,g=n.rootBoundary,j=void 0===g?a.viewport:g,y=n.elementContext,_=void 0===y?a.popper:y,w=n.altBoundary,x=void 0!==w&&w,O=n.padding,k=void 0===O?0:O,E=(0,d.default)("number"!=typeof k?k:(0,c.default)(k,a.basePlacements)),T=_===a.popper?a.reference:a.popper,A=e.rects.popper,S=e.elements[x?T:_],P=(0,o.default)((0,l.isElement)(S)?S:S.contextElement||(0,r.default)(e.elements.popper),v,j,h),L=(0,i.default)(e.elements.reference),C=(0,s.default)({reference:L,element:A,strategy:"absolute",placement:f}),D=(0,u.default)(Object.assign({},A,C)),M=_===a.popper?D:L,R={top:P.top-M.top+E.top,bottom:M.bottom-P.bottom+E.bottom,left:P.left-M.left+E.left,right:M.right-P.right+E.right},H=e.modifiersData.offset;if(_===a.popper&&H){var F=H[f];Object.keys(R).forEach((function(e){var t=[a.right,a.bottom].indexOf(e)>=0?1:-1,n=[a.top,a.bottom].indexOf(e)>=0?"y":"x";R[e]+=F[n]*t}))}return R}},"./node_modules/@popperjs/core/lib/utils/expandToHashMap.js":function(e,t,n){"use strict";function o(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}n.r(t),n.d(t,{default:function(){return o}})},"./node_modules/@popperjs/core/lib/utils/format.js":function(e,t,n){"use strict";function o(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o=0?"x":"y"}n.r(t),n.d(t,{default:function(){return o}})},"./node_modules/@popperjs/core/lib/utils/getOppositePlacement.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var o={left:"right",right:"left",bottom:"top",top:"bottom"};function r(e){return e.replace(/left|right|bottom|top/g,(function(e){return o[e]}))}},"./node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var o={start:"end",end:"start"};function r(e){return e.replace(/start|end/g,(function(e){return o[e]}))}},"./node_modules/@popperjs/core/lib/utils/getVariation.js":function(e,t,n){"use strict";function o(e){return e.split("-")[1]}n.r(t),n.d(t,{default:function(){return o}})},"./node_modules/@popperjs/core/lib/utils/math.js":function(e,t,n){"use strict";n.r(t),n.d(t,{max:function(){return o},min:function(){return r},round:function(){return i}});var o=Math.max,r=Math.min,i=Math.round},"./node_modules/@popperjs/core/lib/utils/mergeByName.js":function(e,t,n){"use strict";function o(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}n.r(t),n.d(t,{default:function(){return o}})},"./node_modules/@popperjs/core/lib/utils/mergePaddingObject.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var o=n("./node_modules/@popperjs/core/lib/utils/getFreshSideObject.js");function r(e){return Object.assign({},(0,o.default)(),e)}},"./node_modules/@popperjs/core/lib/utils/orderModifiers.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var o=n("./node_modules/@popperjs/core/lib/enums.js");function r(e){var t=new Map,n=new Set,o=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var o=t.get(e);o&&r(o)}})),o.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),o}function i(e){var t=r(e);return o.modifierPhases.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}},"./node_modules/@popperjs/core/lib/utils/rectToClientRect.js":function(e,t,n){"use strict";function o(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}n.r(t),n.d(t,{default:function(){return o}})},"./node_modules/@popperjs/core/lib/utils/uniqueBy.js":function(e,t,n){"use strict";function o(e,t){var n=new Set;return e.filter((function(e){var o=t(e);if(!n.has(o))return n.add(o),!0}))}n.r(t),n.d(t,{default:function(){return o}})},"./node_modules/@popperjs/core/lib/utils/userAgent.js":function(e,t,n){"use strict";function o(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}n.r(t),n.d(t,{default:function(){return o}})},"./node_modules/@popperjs/core/lib/utils/validateModifiers.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var o=n("./node_modules/@popperjs/core/lib/utils/format.js"),r=n("./node_modules/@popperjs/core/lib/enums.js"),i='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',s='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',u=["name","enabled","phase","fn","effect","requires","options"];function a(e){e.forEach((function(t){[].concat(Object.keys(t),u).filter((function(e,t,n){return n.indexOf(e)===t})).forEach((function(n){switch(n){case"name":"string"!=typeof t.name&&console.error((0,o.default)(i,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error((0,o.default)(i,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":r.modifierPhases.indexOf(t.phase)<0&&console.error((0,o.default)(i,t.name,'"phase"',"either "+r.modifierPhases.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error((0,o.default)(i,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":null!=t.effect&&"function"!=typeof t.effect&&console.error((0,o.default)(i,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":null==t.requires||Array.isArray(t.requires)||console.error((0,o.default)(i,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error((0,o.default)(i,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+u.map((function(e){return'"'+e+'"'})).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach((function(n){null==e.find((function(e){return e.name===n}))&&console.error((0,o.default)(s,String(t.name),n,n))}))}))}))}},"./node_modules/@popperjs/core/lib/utils/within.js":function(e,t,n){"use strict";n.r(t),n.d(t,{within:function(){return r},withinMaxClamp:function(){return i}});var o=n("./node_modules/@popperjs/core/lib/utils/math.js");function r(e,t,n){return(0,o.max)(e,(0,o.min)(t,n))}function i(e,t,n){var o=r(e,t,n);return o>n?n:o}},"./node_modules/@tannin/compile/index.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var o=n("./node_modules/@tannin/postfix/index.js"),r=n("./node_modules/@tannin/evaluate/index.js");function i(e){var t=(0,o.default)(e);return function(e){return(0,r.default)(t,e)}}},"./node_modules/@tannin/evaluate/index.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r}});var o={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function r(e,t){var n,r,i,s,u,a,l=[];for(n=0;n=0||o[a]":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},r=["(","?"],i={")":["("],":":["?","?:"]},s=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/},"./node_modules/@wordpress/hooks/build-module/createAddHook.js":function(e,t,n){"use strict";n.r(t);var o=n("./node_modules/@wordpress/hooks/build-module/validateNamespace.js"),r=n("./node_modules/@wordpress/hooks/build-module/validateHookName.js");t.default=function(e,t){return function(n,i,s){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,a=e[t];if((0,r.default)(n)&&(0,o.default)(i))if("function"==typeof s)if("number"==typeof u){var l={callback:s,priority:u,namespace:i};if(a[n]){var d,c=a[n].handlers;for(d=c.length;d>0&&!(u>=c[d-1].priority);d--);d===c.length?c[d]=l:c.splice(d,0,l),a.__current.forEach((function(e){e.name===n&&e.currentIndex>=d&&e.currentIndex++}))}else a[n]={handlers:[l],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,i,s,u)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}}},"./node_modules/@wordpress/hooks/build-module/createCurrentHook.js":function(e,t,n){"use strict";n.r(t),t.default=function(e,t){return function(){var n,o,r=e[t];return null!==(n=null===(o=r.__current[r.__current.length-1])||void 0===o?void 0:o.name)&&void 0!==n?n:null}}},"./node_modules/@wordpress/hooks/build-module/createDidHook.js":function(e,t,n){"use strict";n.r(t);var o=n("./node_modules/@wordpress/hooks/build-module/validateHookName.js");t.default=function(e,t){return function(n){var r=e[t];if((0,o.default)(n))return r[n]&&r[n].runs?r[n].runs:0}}},"./node_modules/@wordpress/hooks/build-module/createDoingHook.js":function(e,t,n){"use strict";n.r(t),t.default=function(e,t){return function(n){var o=e[t];return void 0===n?void 0!==o.__current[0]:!!o.__current[0]&&n===o.__current[0].name}}},"./node_modules/@wordpress/hooks/build-module/createHasHook.js":function(e,t,n){"use strict";n.r(t),t.default=function(e,t){return function(n,o){var r=e[t];return void 0!==o?n in r&&r[n].handlers.some((function(e){return e.namespace===o})):n in r}}},"./node_modules/@wordpress/hooks/build-module/createHooks.js":function(e,t,n){"use strict";n.r(t),n.d(t,{_Hooks:function(){return c}});var o=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),r=n("./node_modules/@wordpress/hooks/build-module/createAddHook.js"),i=n("./node_modules/@wordpress/hooks/build-module/createRemoveHook.js"),s=n("./node_modules/@wordpress/hooks/build-module/createHasHook.js"),u=n("./node_modules/@wordpress/hooks/build-module/createRunHook.js"),a=n("./node_modules/@wordpress/hooks/build-module/createCurrentHook.js"),l=n("./node_modules/@wordpress/hooks/build-module/createDoingHook.js"),d=n("./node_modules/@wordpress/hooks/build-module/createDidHook.js"),c=function e(){(0,o.default)(this,e),this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=(0,r.default)(this,"actions"),this.addFilter=(0,r.default)(this,"filters"),this.removeAction=(0,i.default)(this,"actions"),this.removeFilter=(0,i.default)(this,"filters"),this.hasAction=(0,s.default)(this,"actions"),this.hasFilter=(0,s.default)(this,"filters"),this.removeAllActions=(0,i.default)(this,"actions",!0),this.removeAllFilters=(0,i.default)(this,"filters",!0),this.doAction=(0,u.default)(this,"actions"),this.applyFilters=(0,u.default)(this,"filters",!0),this.currentAction=(0,a.default)(this,"actions"),this.currentFilter=(0,a.default)(this,"filters"),this.doingAction=(0,l.default)(this,"actions"),this.doingFilter=(0,l.default)(this,"filters"),this.didAction=(0,d.default)(this,"actions"),this.didFilter=(0,d.default)(this,"filters")};t.default=function(){return new c}},"./node_modules/@wordpress/hooks/build-module/createRemoveHook.js":function(e,t,n){"use strict";n.r(t);var o=n("./node_modules/@wordpress/hooks/build-module/validateNamespace.js"),r=n("./node_modules/@wordpress/hooks/build-module/validateHookName.js");t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(i,s){var u=e[t];if((0,r.default)(i)&&(n||(0,o.default)(s))){if(!u[i])return 0;var a=0;if(n)a=u[i].handlers.length,u[i]={runs:u[i].runs,handlers:[]};else for(var l=u[i].handlers,d=function(e){l[e].namespace===s&&(l.splice(e,1),a++,u.__current.forEach((function(t){t.name===i&&t.currentIndex>=e&&t.currentIndex--})))},c=l.length-1;c>=0;c--)d(c);return"hookRemoved"!==i&&e.doAction("hookRemoved",i,s),a}}}},"./node_modules/@wordpress/hooks/build-module/createRunHook.js":function(e,t,n){"use strict";n.r(t);var o=n("./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r){var i=e[t];i[r]||(i[r]={handlers:[],runs:0}),i[r].runs++;var s=i[r].handlers;"hookAdded"!==r&&i.all&&s.push.apply(s,(0,o.default)(i.all.handlers));for(var u=arguments.length,a=new Array(u>1?u-1:0),l=1;l1&&void 0!==arguments[1]?arguments[1]:"default";o.data[t]=s(s(s({},u),o.data[t]),e),o.data[t][""]=s(s({},u[""]),o.data[t][""])},c=function(e,t){d(e,t),l()},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return o.data[e]||d(void 0,e),o.dcnpgettext(e,t,n,r,i)},f=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default"},m=function(e,t,o){var r=p(o,t,e);return n?(r=n.applyFilters("i18n.gettext_with_context",r,e,t,o),n.applyFilters("i18n.gettext_with_context_"+f(o),r,e,t,o)):r};if(e&&c(e,t),n){var h=function(e){a.test(e)&&l()};n.addAction("hookAdded","core/i18n",h),n.addAction("hookRemoved","core/i18n",h)}return{getLocaleData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return o.data[e]},setLocaleData:c,resetLocaleData:function(e,t){o.data={},o.pluralForms={},c(e,t)},subscribe:function(e){return i.add(e),function(){return i.delete(e)}},__:function(e,t){var o=p(t,void 0,e);return n?(o=n.applyFilters("i18n.gettext",o,e,t),n.applyFilters("i18n.gettext_"+f(t),o,e,t)):o},_x:m,_n:function(e,t,o,r){var i=p(r,void 0,e,t,o);return n?(i=n.applyFilters("i18n.ngettext",i,e,t,o,r),n.applyFilters("i18n.ngettext_"+f(r),i,e,t,o,r)):i},_nx:function(e,t,o,r,i){var s=p(i,r,e,t,o);return n?(s=n.applyFilters("i18n.ngettext_with_context",s,e,t,o,r,i),n.applyFilters("i18n.ngettext_with_context_"+f(i),s,e,t,o,r,i)):s},isRTL:function(){return"rtl"===m("ltr","text direction")},hasTranslation:function(e,t,r){var i,s,u=t?t+""+e:e,a=!(null===(i=o.data)||void 0===i||null===(s=i[null!=r?r:"default"])||void 0===s||!s[u]);return n&&(a=n.applyFilters("i18n.has_translation",a,e,t,r),a=n.applyFilters("i18n.has_translation_"+f(r),a,e,t,r)),a}}}},"./node_modules/@wordpress/i18n/build-module/default-i18n.js":function(e,t,n){"use strict";n.r(t),n.d(t,{__:function(){return d},_n:function(){return p},_nx:function(){return f},_x:function(){return c},getLocaleData:function(){return s},hasTranslation:function(){return h},isRTL:function(){return m},resetLocaleData:function(){return a},setLocaleData:function(){return u},subscribe:function(){return l}});var o=n("./node_modules/@wordpress/i18n/build-module/create-i18n.js"),r=n("./node_modules/@wordpress/hooks/build-module/index.js"),i=(0,o.createI18n)(void 0,void 0,r.defaultHooks);t.default=i;var s=i.getLocaleData.bind(i),u=i.setLocaleData.bind(i),a=i.resetLocaleData.bind(i),l=i.subscribe.bind(i),d=i.__.bind(i),c=i._x.bind(i),p=i._n.bind(i),f=i._nx.bind(i),m=i.isRTL.bind(i),h=i.hasTranslation.bind(i)},"./node_modules/@wordpress/i18n/build-module/index.js":function(e,t,n){"use strict";n.r(t),n.d(t,{__:function(){return i.__},_n:function(){return i._n},_nx:function(){return i._nx},_x:function(){return i._x},createI18n:function(){return r.createI18n},defaultI18n:function(){return i.default},getLocaleData:function(){return i.getLocaleData},hasTranslation:function(){return i.hasTranslation},isRTL:function(){return i.isRTL},resetLocaleData:function(){return i.resetLocaleData},setLocaleData:function(){return i.setLocaleData},sprintf:function(){return o.sprintf},subscribe:function(){return i.subscribe}});var o=n("./node_modules/@wordpress/i18n/build-module/sprintf.js"),r=n("./node_modules/@wordpress/i18n/build-module/create-i18n.js"),i=n("./node_modules/@wordpress/i18n/build-module/default-i18n.js")},"./node_modules/@wordpress/i18n/build-module/sprintf.js":function(e,t,n){"use strict";n.r(t),n.d(t,{sprintf:function(){return a}});var o=n("./node_modules/memize/index.js"),r=n.n(o),i=n("./node_modules/sprintf-js/src/sprintf.js"),s=n.n(i),u=r()(console.error);function a(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o=0),u.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,u.width?parseInt(u.width):0);break;case"e":n=u.precision?parseFloat(n).toExponential(u.precision):parseFloat(n).toExponential();break;case"f":n=u.precision?parseFloat(n).toFixed(u.precision):parseFloat(n);break;case"g":n=u.precision?String(Number(n.toPrecision(u.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=u.precision?n.substring(0,u.precision):n;break;case"t":n=String(!!n),n=u.precision?n.substring(0,u.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=u.precision?n.substring(0,u.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=u.precision?n.substring(0,u.precision):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase()}r.json.test(u.type)?h+=n:(!r.number.test(u.type)||c&&!u.sign?p="":(p=c?"+":"-",n=n.toString().replace(r.sign,"")),l=u.pad_char?"0"===u.pad_char?"0":u.pad_char.charAt(1):" ",d=u.width-(p+n).length,a=u.width&&d>0?l.repeat(d):"",h+=u.align?p+n+a:"0"===l?p+a+n:a+p+n)}return h}(function(e){if(u[e])return u[e];var t,n=e,o=[],i=0;for(;n;){if(null!==(t=r.text.exec(n)))o.push(t[0]);else if(null!==(t=r.modulo.exec(n)))o.push("%");else{if(null===(t=r.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){i|=1;var s=[],a=t[2],l=[];if(null===(l=r.key.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(s.push(l[1]);""!==(a=a.substring(l[0].length));)if(null!==(l=r.key_access.exec(a)))s.push(l[1]);else{if(null===(l=r.index_access.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");s.push(l[1])}t[2]=s}else i|=2;if(3===i)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");o.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}n=n.substring(t[0].length)}return u[e]=o}(e),arguments)}function s(e,t){return i.apply(null,[e].concat(t||[]))}var u=Object.create(null);t.sprintf=i,t.vsprintf=s,"undefined"!=typeof window&&(window.sprintf=i,window.vsprintf=s,void 0===(o=function(){return{sprintf:i,vsprintf:s}}.call(t,n,t,e))||(e.exports=o))}()},"./node_modules/tannin/index.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var o=n("./node_modules/@tannin/plural-forms/index.js"),r={contextDelimiter:"",onMissingKey:null};function i(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},r)this.options[n]=void 0!==t&&n in t?t[n]:r[n]}i.prototype.getPluralForm=function(e,t){var n,r,i,s=this.pluralForms[e];return s||("function"!=typeof(i=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(r=function(e){var t,n,o;for(t=e.split(";"),n=0;n',s="tippy-content",u="tippy-backdrop",a="tippy-arrow",l="tippy-svg-arrow",d={passive:!0,capture:!0},c=function(){return document.body};function p(e,t,n){if(Array.isArray(e)){var o=e[t];return null==o?Array.isArray(n)?n[t]:n:o}return e}function f(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function m(e,t){return"function"==typeof e?e.apply(void 0,t):e}function h(e,t){return 0===t?e:function(o){clearTimeout(n),n=setTimeout((function(){e(o)}),t)};var n}function b(e,t){var n=Object.assign({},e);return t.forEach((function(e){delete n[e]})),n}function v(e){return[].concat(e)}function g(e,t){-1===e.indexOf(t)&&e.push(t)}function j(e){return e.split("-")[0]}function y(e){return[].slice.call(e)}function _(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function w(){return document.createElement("div")}function x(e){return["Element","Fragment"].some((function(t){return f(e,t)}))}function O(e){return f(e,"MouseEvent")}function k(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function E(e){return x(e)?[e]:function(e){return f(e,"NodeList")}(e)?y(e):Array.isArray(e)?e:y(document.querySelectorAll(e))}function T(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function A(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function S(e){var t,n=v(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function P(e,t,n){var o=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[o](t,n)}))}function L(e,t){for(var n=t;n;){var o;if(e.contains(n))return!0;n=null==n.getRootNode||null==(o=n.getRootNode())?void 0:o.host}return!1}var C={isTouch:!1},D=0;function M(){C.isTouch||(C.isTouch=!0,window.performance&&document.addEventListener("mousemove",R))}function R(){var e=performance.now();e-D<20&&(C.isTouch=!1,document.removeEventListener("mousemove",R)),D=e}function H(){var e=document.activeElement;if(k(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var F,I=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;function N(e){return[e+"() was called on a"+("destroy"===e?"n already-":" ")+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function B(e){return e.replace(/[ \t]{2,}/g," ").replace(/^[ \t]*/gm,"").trim()}function W(e){return B("\n %ctippy.js\n\n %c"+B(e)+"\n\n %c👷‍ This is a development-only message. It will be removed in production.\n ")}function V(e){return[W(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}function q(e,t){var n;e&&!F.has(t)&&(F.add(t),(n=console).warn.apply(n,V(t)))}function z(e,t){var n;e&&!F.has(t)&&(F.add(t),(n=console).error.apply(n,V(t)))}F=new Set;var U={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},X=Object.assign({appendTo:c,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},U,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Y=Object.keys(X);function $(e){var t=(e.plugins||[]).reduce((function(t,n){var o,r=n.name,i=n.defaultValue;r&&(t[r]=void 0!==e[r]?e[r]:null!=(o=X[r])?o:i);return t}),{});return Object.assign({},e,t)}function G(e,t){var n=Object.assign({},t,{content:m(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys($(Object.assign({},X,{plugins:t}))):Y).reduce((function(t,n){var o=(e.getAttribute("data-tippy-"+n)||"").trim();if(!o)return t;if("content"===n)t[n]=o;else try{t[n]=JSON.parse(o)}catch(e){t[n]=o}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},X.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function Z(e,t){void 0===e&&(e={}),void 0===t&&(t=[]),Object.keys(e).forEach((function(e){var n,o,r=b(X,Object.keys(U)),i=(n=r,o=e,!{}.hasOwnProperty.call(n,o));i&&(i=0===t.filter((function(t){return t.name===e})).length),q(i,["`"+e+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.","\n\n","All props: https://atomiks.github.io/tippyjs/v6/all-props/\n","Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))}))}var J=function(){return"innerHTML"};function K(e,t){e[J()]=t}function Q(e){var t=w();return!0===e?t.className=a:(t.className=l,x(e)?t.appendChild(e):K(t,e)),t}function ee(e,t){x(t.content)?(K(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?K(e,t.content):e.textContent=t.content)}function te(e){var t=e.firstElementChild,n=y(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(s)})),arrow:n.find((function(e){return e.classList.contains(a)||e.classList.contains(l)})),backdrop:n.find((function(e){return e.classList.contains(u)}))}}function ne(e){var t=w(),n=w();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var o=w();function r(n,o){var r=te(t),i=r.box,s=r.content,u=r.arrow;o.theme?i.setAttribute("data-theme",o.theme):i.removeAttribute("data-theme"),"string"==typeof o.animation?i.setAttribute("data-animation",o.animation):i.removeAttribute("data-animation"),o.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof o.maxWidth?o.maxWidth+"px":o.maxWidth,o.role?i.setAttribute("role",o.role):i.removeAttribute("role"),n.content===o.content&&n.allowHTML===o.allowHTML||ee(s,e.props),o.arrow?u?n.arrow!==o.arrow&&(i.removeChild(u),i.appendChild(Q(o.arrow))):i.appendChild(Q(o.arrow)):u&&i.removeChild(u)}return o.className=s,o.setAttribute("data-state","hidden"),ee(o,e.props),t.appendChild(n),n.appendChild(o),r(e.props,e.props),{popper:t,onUpdate:r}}ne.$$tippy=!0;var oe=1,re=[],ie=[];function se(e,t){var n,r,i,s,u,a,l,f,b=G(e,Object.assign({},X,$(_(t)))),x=!1,k=!1,E=!1,D=!1,M=[],R=h(xe,b.interactiveDebounce),H=oe++,F=(f=b.plugins).filter((function(e,t){return f.indexOf(e)===t})),B={id:H,reference:e,popper:w(),popperInstance:null,props:b,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:F,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(i)},setProps:function(t){q(B.state.isDestroyed,N("setProps"));if(B.state.isDestroyed)return;le("onBeforeUpdate",[B,t]),_e();var n=B.props,o=G(e,Object.assign({},n,_(t),{ignoreAttributes:!0}));B.props=o,ye(),n.interactiveDebounce!==o.interactiveDebounce&&(pe(),R=h(xe,o.interactiveDebounce));n.triggerTarget&&!o.triggerTarget?v(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):o.triggerTarget&&e.removeAttribute("aria-expanded");ce(),ae(),U&&U(n,o);B.popperInstance&&(Te(),Se().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));le("onAfterUpdate",[B,t])},setContent:function(e){B.setProps({content:e})},show:function(){q(B.state.isDestroyed,N("show"));var e=B.state.isVisible,t=B.state.isDestroyed,n=!B.state.isEnabled,o=C.isTouch&&!B.props.touch,r=p(B.props.duration,0,X.duration);if(e||t||n||o)return;if(ee().hasAttribute("disabled"))return;if(le("onShow",[B],!1),!1===B.props.onShow(B))return;B.state.isVisible=!0,Q()&&(V.style.visibility="visible");ae(),be(),B.state.isMounted||(V.style.transition="none");if(Q()){var i=se();T([i.box,i.content],0)}a=function(){var e;if(B.state.isVisible&&!D){if(D=!0,V.offsetHeight,V.style.transition=B.props.moveTransition,Q()&&B.props.animation){var t=se(),n=t.box,o=t.content;T([n,o],r),A([n,o],"visible")}de(),ce(),g(ie,B),null==(e=B.popperInstance)||e.forceUpdate(),le("onMount",[B]),B.props.animation&&Q()&&function(e,t){ge(e,t)}(r,(function(){B.state.isShown=!0,le("onShown",[B])}))}},function(){var e,t=B.props.appendTo,n=ee();e=B.props.interactive&&t===c||"parent"===t?n.parentNode:m(t,[n]);e.contains(V)||e.appendChild(V);B.state.isMounted=!0,Te(),q(B.props.interactive&&t===X.appendTo&&n.nextElementSibling!==V,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.","\n\n","Using a wrapper
or tag around the reference element","solves this by creating a new parentNode context.","\n\n","Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.","\n\n","See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}()},hide:function(){q(B.state.isDestroyed,N("hide"));var e=!B.state.isVisible,t=B.state.isDestroyed,n=!B.state.isEnabled,o=p(B.props.duration,1,X.duration);if(e||t||n)return;if(le("onHide",[B],!1),!1===B.props.onHide(B))return;B.state.isVisible=!1,B.state.isShown=!1,D=!1,x=!1,Q()&&(V.style.visibility="hidden");if(pe(),ve(),ae(!0),Q()){var r=se(),i=r.box,s=r.content;B.props.animation&&(T([i,s],o),A([i,s],"hidden"))}de(),ce(),B.props.animation?Q()&&function(e,t){ge(e,(function(){!B.state.isVisible&&V.parentNode&&V.parentNode.contains(V)&&t()}))}(o,B.unmount):B.unmount()},hideWithInteractivity:function(e){q(B.state.isDestroyed,N("hideWithInteractivity"));ne().addEventListener("mousemove",R),g(re,R),R(e)},enable:function(){B.state.isEnabled=!0},disable:function(){B.hide(),B.state.isEnabled=!1},unmount:function(){q(B.state.isDestroyed,N("unmount"));B.state.isVisible&&B.hide();if(!B.state.isMounted)return;Ae(),Se().forEach((function(e){e._tippy.unmount()})),V.parentNode&&V.parentNode.removeChild(V);ie=ie.filter((function(e){return e!==B})),B.state.isMounted=!1,le("onHidden",[B])},destroy:function(){q(B.state.isDestroyed,N("destroy"));if(B.state.isDestroyed)return;B.clearDelayTimeouts(),B.unmount(),_e(),delete e._tippy,B.state.isDestroyed=!0,le("onDestroy",[B])}};if(!b.render)return z(!0,"render() function has not been supplied."),B;var W=b.render(B),V=W.popper,U=W.onUpdate;V.setAttribute("data-tippy-root",""),V.id="tippy-"+B.id,B.popper=V,e._tippy=B,V._tippy=B;var Y=F.map((function(e){return e.fn(B)})),Z=e.hasAttribute("aria-expanded");return ye(),ce(),ae(),le("onCreate",[B]),b.showOnCreate&&Pe(),V.addEventListener("mouseenter",(function(){B.props.interactive&&B.state.isVisible&&B.clearDelayTimeouts()})),V.addEventListener("mouseleave",(function(){B.props.interactive&&B.props.trigger.indexOf("mouseenter")>=0&&ne().addEventListener("mousemove",R)})),B;function J(){var e=B.props.touch;return Array.isArray(e)?e:[e,0]}function K(){return"hold"===J()[0]}function Q(){var e;return!(null==(e=B.props.render)||!e.$$tippy)}function ee(){return l||e}function ne(){var e=ee().parentNode;return e?S(e):document}function se(){return te(V)}function ue(e){return B.state.isMounted&&!B.state.isVisible||C.isTouch||s&&"focus"===s.type?0:p(B.props.delay,e?0:1,X.delay)}function ae(e){void 0===e&&(e=!1),V.style.pointerEvents=B.props.interactive&&!e?"":"none",V.style.zIndex=""+B.props.zIndex}function le(e,t,n){var o;(void 0===n&&(n=!0),Y.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(o=B.props)[e].apply(o,t)}function de(){var t=B.props.aria;if(t.content){var n="aria-"+t.content,o=V.id;v(B.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(B.state.isVisible)e.setAttribute(n,t?t+" "+o:o);else{var r=t&&t.replace(o,"").trim();r?e.setAttribute(n,r):e.removeAttribute(n)}}))}}function ce(){!Z&&B.props.aria.expanded&&v(B.props.triggerTarget||e).forEach((function(e){B.props.interactive?e.setAttribute("aria-expanded",B.state.isVisible&&e===ee()?"true":"false"):e.removeAttribute("aria-expanded")}))}function pe(){ne().removeEventListener("mousemove",R),re=re.filter((function(e){return e!==R}))}function fe(t){if(!C.isTouch||!E&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!B.props.interactive||!L(V,n)){if(v(B.props.triggerTarget||e).some((function(e){return L(e,n)}))){if(C.isTouch)return;if(B.state.isVisible&&B.props.trigger.indexOf("click")>=0)return}else le("onClickOutside",[B,t]);!0===B.props.hideOnClick&&(B.clearDelayTimeouts(),B.hide(),k=!0,setTimeout((function(){k=!1})),B.state.isMounted||ve())}}}function me(){E=!0}function he(){E=!1}function be(){var e=ne();e.addEventListener("mousedown",fe,!0),e.addEventListener("touchend",fe,d),e.addEventListener("touchstart",he,d),e.addEventListener("touchmove",me,d)}function ve(){var e=ne();e.removeEventListener("mousedown",fe,!0),e.removeEventListener("touchend",fe,d),e.removeEventListener("touchstart",he,d),e.removeEventListener("touchmove",me,d)}function ge(e,t){var n=se().box;function o(e){e.target===n&&(P(n,"remove",o),t())}if(0===e)return t();P(n,"remove",u),P(n,"add",o),u=o}function je(t,n,o){void 0===o&&(o=!1),v(B.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,o),M.push({node:e,eventType:t,handler:n,options:o})}))}function ye(){var e;K()&&(je("touchstart",we,{passive:!0}),je("touchend",Oe,{passive:!0})),(e=B.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(je(e,we),e){case"mouseenter":je("mouseleave",Oe);break;case"focus":je(I?"focusout":"blur",ke);break;case"focusin":je("focusout",ke)}}))}function _e(){M.forEach((function(e){var t=e.node,n=e.eventType,o=e.handler,r=e.options;t.removeEventListener(n,o,r)})),M=[]}function we(e){var t,n=!1;if(B.state.isEnabled&&!Ee(e)&&!k){var o="focus"===(null==(t=s)?void 0:t.type);s=e,l=e.currentTarget,ce(),!B.state.isVisible&&O(e)&&re.forEach((function(t){return t(e)})),"click"===e.type&&(B.props.trigger.indexOf("mouseenter")<0||x)&&!1!==B.props.hideOnClick&&B.state.isVisible?n=!0:Pe(e),"click"===e.type&&(x=!n),n&&!o&&Le(e)}}function xe(e){var t=e.target,n=ee().contains(t)||V.contains(t);if("mousemove"!==e.type||!n){var o=Se().concat(V).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:b}:null})).filter(Boolean);(function(e,t){var n=t.clientX,o=t.clientY;return e.every((function(e){var t=e.popperRect,r=e.popperState,i=e.props.interactiveBorder,s=j(r.placement),u=r.modifiersData.offset;if(!u)return!0;var a="bottom"===s?u.top.y:0,l="top"===s?u.bottom.y:0,d="right"===s?u.left.x:0,c="left"===s?u.right.x:0,p=t.top-o+a>i,f=o-t.bottom-l>i,m=t.left-n+d>i,h=n-t.right-c>i;return p||f||m||h}))})(o,e)&&(pe(),Le(e))}}function Oe(e){Ee(e)||B.props.trigger.indexOf("click")>=0&&x||(B.props.interactive?B.hideWithInteractivity(e):Le(e))}function ke(e){B.props.trigger.indexOf("focusin")<0&&e.target!==ee()||B.props.interactive&&e.relatedTarget&&V.contains(e.relatedTarget)||Le(e)}function Ee(e){return!!C.isTouch&&K()!==e.type.indexOf("touch")>=0}function Te(){Ae();var t=B.props,n=t.popperOptions,r=t.placement,i=t.offset,s=t.getReferenceClientRect,u=t.moveTransition,l=Q()?te(V).arrow:null,d=s?{getBoundingClientRect:s,contextElement:s.contextElement||ee()}:e,c={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(Q()){var n=se().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}},p=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!u}},c];Q()&&l&&p.push({name:"arrow",options:{element:l,padding:3}}),p.push.apply(p,(null==n?void 0:n.modifiers)||[]),B.popperInstance=(0,o.createPopper)(d,V,Object.assign({},n,{placement:r,onFirstUpdate:a,modifiers:p}))}function Ae(){B.popperInstance&&(B.popperInstance.destroy(),B.popperInstance=null)}function Se(){return y(V.querySelectorAll("[data-tippy-root]"))}function Pe(e){B.clearDelayTimeouts(),e&&le("onTrigger",[B,e]),be();var t=ue(!0),o=J(),r=o[0],i=o[1];C.isTouch&&"hold"===r&&i&&(t=i),t?n=setTimeout((function(){B.show()}),t):B.show()}function Le(e){if(B.clearDelayTimeouts(),le("onUntrigger",[B,e]),B.state.isVisible){if(!(B.props.trigger.indexOf("mouseenter")>=0&&B.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&x)){var t=ue(!1);t?r=setTimeout((function(){B.state.isVisible&&B.hide()}),t):i=requestAnimationFrame((function(){B.hide()}))}}else ve()}}function ue(e,t){void 0===t&&(t={});var n=X.plugins.concat(t.plugins||[]);!function(e){var t=!e,n="[object Object]"===Object.prototype.toString.call(e)&&!e.addEventListener;z(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),z(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}(e),Z(t,n),document.addEventListener("touchstart",M,d),window.addEventListener("blur",H);var o=Object.assign({},t,{plugins:n}),r=E(e),i=x(o.content),s=r.length>1;q(i&&s,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.","\n\n","Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.","\n\n","1) content: element.innerHTML\n","2) content: () => element.cloneNode(true)"].join(" "));var u=r.reduce((function(e,t){var n=t&&se(t,o);return n&&e.push(n),e}),[]);return x(e)?u[0]:u}ue.defaultProps=X,ue.setDefaultProps=function(e){Z(e,[]),Object.keys(e).forEach((function(t){X[t]=e[t]}))},ue.currentInput=C;var ae=function(e){var t=void 0===e?{}:e,n=t.exclude,o=t.duration;ie.forEach((function(e){var t=!1;if(n&&(t=k(n)?e.reference===n:e.popper===n.popper),!t){var r=e.props.duration;e.setProps({duration:o}),e.hide(),e.state.isDestroyed||e.setProps({duration:r})}}))},le=Object.assign({},r.default,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),de=function(e,t){var n;void 0===t&&(t={}),z(!Array.isArray(e),["The first argument passed to createSingleton() must be an array of","tippy instances. The passed value was",String(e)].join(" "));var o,r=e,i=[],s=[],u=t.overrides,a=[],l=!1;function d(){s=r.map((function(e){return v(e.props.triggerTarget||e.reference)})).reduce((function(e,t){return e.concat(t)}),[])}function c(){i=r.map((function(e){return e.reference}))}function p(e){r.forEach((function(t){e?t.enable():t.disable()}))}function f(e){return r.map((function(t){var n=t.setProps;return t.setProps=function(r){n(r),t.reference===o&&e.setProps(r)},function(){t.setProps=n}}))}function m(e,t){var n=s.indexOf(t);if(t!==o){o=t;var a=(u||[]).concat("content").reduce((function(e,t){return e[t]=r[n].props[t],e}),{});e.setProps(Object.assign({},a,{getReferenceClientRect:"function"==typeof a.getReferenceClientRect?a.getReferenceClientRect:function(){var e;return null==(e=i[n])?void 0:e.getBoundingClientRect()}}))}}p(!1),c(),d();var h={fn:function(){return{onDestroy:function(){p(!0)},onHidden:function(){o=null},onClickOutside:function(e){e.props.showOnCreate&&!l&&(l=!0,o=null)},onShow:function(e){e.props.showOnCreate&&!l&&(l=!0,m(e,i[0]))},onTrigger:function(e,t){m(e,t.currentTarget)}}}},g=ue(w(),Object.assign({},b(t,["overrides"]),{plugins:[h].concat(t.plugins||[]),triggerTarget:s,popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat((null==(n=t.popperOptions)?void 0:n.modifiers)||[],[le])})})),j=g.show;g.show=function(e){if(j(),!o&&null==e)return m(g,i[0]);if(!o||null!=e){if("number"==typeof e)return i[e]&&m(g,i[e]);if(r.indexOf(e)>=0){var t=e.reference;return m(g,t)}return i.indexOf(e)>=0?m(g,e):void 0}},g.showNext=function(){var e=i[0];if(!o)return g.show(0);var t=i.indexOf(o);g.show(i[t+1]||e)},g.showPrevious=function(){var e=i[i.length-1];if(!o)return g.show(e);var t=i.indexOf(o),n=i[t-1]||e;g.show(n)};var y=g.setProps;return g.setProps=function(e){u=e.overrides||u,y(e)},g.setInstances=function(e){p(!0),a.forEach((function(e){return e()})),r=e,p(!1),c(),d(),a=f(g),g.setProps({triggerTarget:s})},a=f(g),g},ce={mouseover:"mouseenter",focusin:"focus",click:"click"};function pe(e,t){z(!(t&&t.target),["You must specity a `target` prop indicating a CSS selector string matching","the target elements that should receive a tippy."].join(" "));var n=[],o=[],r=!1,i=t.target,s=b(t,["target"]),u=Object.assign({},s,{trigger:"manual",touch:!1}),a=Object.assign({touch:X.touch},s,{showOnCreate:!0}),l=ue(e,u);function c(e){if(e.target&&!r){var n=e.target.closest(i);if(n){var s=n.getAttribute("data-tippy-trigger")||t.trigger||X.trigger;if(!n._tippy&&!("touchstart"===e.type&&"boolean"==typeof a.touch||"touchstart"!==e.type&&s.indexOf(ce[e.type])<0)){var u=ue(n,a);u&&(o=o.concat(u))}}}}function p(e,t,o,r){void 0===r&&(r=!1),e.addEventListener(t,o,r),n.push({node:e,eventType:t,handler:o,options:r})}return v(l).forEach((function(e){var t=e.destroy,i=e.enable,s=e.disable;e.destroy=function(e){void 0===e&&(e=!0),e&&o.forEach((function(e){e.destroy()})),o=[],n.forEach((function(e){var t=e.node,n=e.eventType,o=e.handler,r=e.options;t.removeEventListener(n,o,r)})),n=[],t()},e.enable=function(){i(),o.forEach((function(e){return e.enable()})),r=!1},e.disable=function(){s(),o.forEach((function(e){return e.disable()})),r=!0},function(e){var t=e.reference;p(t,"touchstart",c,d),p(t,"mouseover",c),p(t,"focusin",c),p(t,"click",c)}(e)})),l}var fe={name:"animateFill",defaultValue:!1,fn:function(e){var t;if(null==(t=e.props.render)||!t.$$tippy)return z(e.props.animateFill,"The `animateFill` plugin requires the default render function."),{};var n=te(e.popper),o=n.box,r=n.content,i=e.props.animateFill?function(){var e=w();return e.className=u,A([e],"hidden"),e}():null;return{onCreate:function(){i&&(o.insertBefore(i,o.firstElementChild),o.setAttribute("data-animatefill",""),o.style.overflow="hidden",e.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(i){var e=o.style.transitionDuration,t=Number(e.replace("ms",""));r.style.transitionDelay=Math.round(t/10)+"ms",i.style.transitionDuration=e,A([i],"visible")}},onShow:function(){i&&(i.style.transitionDuration="0ms")},onHide:function(){i&&A([i],"hidden")}}}};var me={clientX:0,clientY:0},he=[];function be(e){var t=e.clientX,n=e.clientY;me={clientX:t,clientY:n}}var ve={name:"followCursor",defaultValue:!1,fn:function(e){var t=e.reference,n=S(e.props.triggerTarget||t),o=!1,r=!1,i=!0,s=e.props;function u(){return"initial"===e.props.followCursor&&e.state.isVisible}function a(){n.addEventListener("mousemove",c)}function l(){n.removeEventListener("mousemove",c)}function d(){o=!0,e.setProps({getReferenceClientRect:null}),o=!1}function c(n){var o=!n.target||t.contains(n.target),r=e.props.followCursor,i=n.clientX,s=n.clientY,u=t.getBoundingClientRect(),a=i-u.left,l=s-u.top;!o&&e.props.interactive||e.setProps({getReferenceClientRect:function(){var e=t.getBoundingClientRect(),n=i,o=s;"initial"===r&&(n=e.left+a,o=e.top+l);var u="horizontal"===r?e.top:o,d="vertical"===r?e.right:n,c="horizontal"===r?e.bottom:o,p="vertical"===r?e.left:n;return{width:d-p,height:c-u,top:u,right:d,bottom:c,left:p}}})}function p(){e.props.followCursor&&(he.push({instance:e,doc:n}),function(e){e.addEventListener("mousemove",be)}(n))}function f(){0===(he=he.filter((function(t){return t.instance!==e}))).filter((function(e){return e.doc===n})).length&&function(e){e.removeEventListener("mousemove",be)}(n)}return{onCreate:p,onDestroy:f,onBeforeUpdate:function(){s=e.props},onAfterUpdate:function(t,n){var i=n.followCursor;o||void 0!==i&&s.followCursor!==i&&(f(),i?(p(),!e.state.isMounted||r||u()||a()):(l(),d()))},onMount:function(){e.props.followCursor&&!r&&(i&&(c(me),i=!1),u()||a())},onTrigger:function(e,t){O(t)&&(me={clientX:t.clientX,clientY:t.clientY}),r="focus"===t.type},onHidden:function(){e.props.followCursor&&(d(),l(),i=!0)}}}};var ge={name:"inlinePositioning",defaultValue:!1,fn:function(e){var t,n=e.reference;var o=-1,r=!1,i=[],s={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(r){var s=r.state;e.props.inlinePositioning&&(-1!==i.indexOf(s.placement)&&(i=[]),t!==s.placement&&-1===i.indexOf(s.placement)&&(i.push(s.placement),e.setProps({getReferenceClientRect:function(){return function(e){return function(e,t,n,o){if(n.length<2||null===e)return t;if(2===n.length&&o>=0&&n[0].left>n[1].right)return n[o]||t;switch(e){case"top":case"bottom":var r=n[0],i=n[n.length-1],s="top"===e,u=r.top,a=i.bottom,l=s?r.left:i.left,d=s?r.right:i.right;return{top:u,bottom:a,left:l,right:d,width:d-l,height:a-u};case"left":case"right":var c=Math.min.apply(Math,n.map((function(e){return e.left}))),p=Math.max.apply(Math,n.map((function(e){return e.right}))),f=n.filter((function(t){return"left"===e?t.left===c:t.right===p})),m=f[0].top,h=f[f.length-1].bottom;return{top:m,bottom:h,left:c,right:p,width:p-c,height:h-m};default:return t}}(j(e),n.getBoundingClientRect(),y(n.getClientRects()),o)}(s.placement)}})),t=s.placement)}};function u(){var t;r||(t=function(e,t){var n;return{popperOptions:Object.assign({},e.popperOptions,{modifiers:[].concat(((null==(n=e.popperOptions)?void 0:n.modifiers)||[]).filter((function(e){return e.name!==t.name})),[t])})}}(e.props,s),r=!0,e.setProps(t),r=!1)}return{onCreate:u,onAfterUpdate:u,onTrigger:function(t,n){if(O(n)){var r=y(e.reference.getClientRects()),i=r.find((function(e){return e.left-2<=n.clientX&&e.right+2>=n.clientX&&e.top-2<=n.clientY&&e.bottom+2>=n.clientY})),s=r.indexOf(i);o=s>-1?s:o}},onHidden:function(){o=-1}}}};var je={name:"sticky",defaultValue:!1,fn:function(e){var t=e.reference,n=e.popper;function o(t){return!0===e.props.sticky||e.props.sticky===t}var r=null,i=null;function s(){var u=o("reference")?(e.popperInstance?e.popperInstance.state.elements.reference:t).getBoundingClientRect():null,a=o("popper")?n.getBoundingClientRect():null;(u&&ye(r,u)||a&&ye(i,a))&&e.popperInstance&&e.popperInstance.update(),r=u,i=a,e.state.isMounted&&requestAnimationFrame(s)}return{onMount:function(){e.props.sticky&&s()}}}};function ye(e,t){return!e||!t||(e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left)}ue.setDefaultProps({render:ne}),t.default=ue},"./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":function(e,t,n){"use strict";function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n{this.wrapImage(e)}));const e=document.querySelectorAll(".cld-tag");(0,t.default)(e,{placement:"bottom-start",interactive:!0,appendTo:()=>document.body,aria:{content:"auto",expanded:"auto"},content:e=>e.template.innerHTML,allowHTML:!0})},wrapImage(e){e.dataset.publicId?this.cldTag(e):this.wpTag(e)},createTag(e){const t=document.createElement("span");return t.classList.add("overlay-tag"),e.parentNode.insertBefore(t,e),t},cldTag(t){const n=this.createTag(t);n.template=this.createTemplate(t),n.innerText=(0,e.__)("Cloudinary","cloudinary"),n.classList.add("cld-tag")},wpTag(t){const n=this.createTag(t);n.innerText=(0,e.__)("WordPress","cloudinary"),n.classList.add("wp-tag")},createTemplate(t){const n=document.createElement("div");n.classList.add("cld-tag-info"),n.appendChild(this.makeLine((0,e.__)("Local size","cloudinary"),t.dataset.filesize)),n.appendChild(this.makeLine((0,e.__)("Optimized size","cloudinary"),t.dataset.optsize)),n.appendChild(this.makeLine((0,e.__)("Optimized format","cloudinary"),t.dataset.optformat)),t.dataset.percent&&n.appendChild(this.makeLine((0,e.__)("Reduction","cloudinary"),t.dataset.percent+"%")),n.appendChild(this.makeLine((0,e.__)("Transformations","cloudinary"),t.dataset.transformations)),t.dataset.transformationCrop&&n.appendChild(this.makeLine((0,e.__)("Crop transformations","cloudinary"),t.dataset.transformationCrop));const o=document.createElement("a");return o.classList.add("edit-link"),o.href=t.dataset.permalink,o.innerText=(0,e.__)("Edit asset","cloudinary"),n.appendChild(this.makeLine("","",o)),n},makeLine(e,t,n){const o=document.createElement("div"),r=document.createElement("span"),i=document.createElement("span");return r.innerText=e,r.classList.add("title"),i.innerText=t,n&&i.appendChild(n),o.appendChild(r),o.appendChild(i),o}};window.addEventListener("load",(()=>r.init()))}()}(); +//# sourceMappingURL=front-overlay.js.map \ No newline at end of file diff --git a/js/gallery-block.asset.php b/js/gallery-block.asset.php index 43e75e887..d6bc8c421 100644 --- a/js/gallery-block.asset.php +++ b/js/gallery-block.asset.php @@ -1 +1 @@ - array('react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-components/build-style/style.css', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '0fe7242cf29e22d47b4b'); + array('react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-components/build-style/style.css', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '40acc964c4846bfc3a1c'); diff --git a/js/gallery-block.css b/js/gallery-block.css index c621ca7be..6c4210201 100644 --- a/js/gallery-block.css +++ b/js/gallery-block.css @@ -1 +1,4 @@ -.radio-select{align-items:center;background:none;border:none;cursor:pointer;display:flex;margin:12px 0}.radio-select:focus{color:#007cba;outline:none}.radio-select--active{color:#007cba}.radio-select--active g{fill:#007cba!important}.radio-select__label{font-size:14px;margin-left:7px}.loading-spinner-container{align-items:center;background-color:hsla(0,0%,100%,.8);display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%}.components-placeholder__fieldset{justify-content:start}.colorpalette-color-label{align-items:center;display:flex;margin:8px 0}.wp-block-cloudinary-gallery .block-editor-media-placeholder .components-placeholder__label .dashicon{margin-right:8px}.wp-block-cloudinary-gallery .block-editor-media-placeholder.is-appender .components-placeholder__label{display:none}.wp-block-cloudinary-gallery .block-editor-media-placeholder.is-appender{margin-bottom:11px;margin-top:11px;min-height:auto;padding:11px}.wp-block-cloudinary-gallery .block-editor-media-placeholder.is-appender .components-button{margin-bottom:0} \ No newline at end of file +/*!*************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/@wordpress/scripts/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!./node_modules/@wordpress/scripts/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[2].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[3]!./src/css/gallery.scss ***! + \*************************************************************************************************************************************************************************************************************************************************************************************************************/.radio-select{align-items:center;background:none;border:none;cursor:pointer;display:flex;margin:12px 0}.radio-select:focus{color:#007cba;outline:none}.radio-select--active{color:#007cba}.radio-select--active g{fill:#007cba!important}.radio-select__label{font-size:14px;margin-left:7px}.loading-spinner-container{align-items:center;background-color:hsla(0,0%,100%,.8);display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%}.components-placeholder__fieldset{justify-content:start}.colorpalette-color-label{align-items:center;display:flex;margin:8px 0}.wp-block-cloudinary-gallery .block-editor-media-placeholder .components-placeholder__label .dashicon{margin-right:8px}.wp-block-cloudinary-gallery .block-editor-media-placeholder.is-appender .components-placeholder__label{display:none}.wp-block-cloudinary-gallery .block-editor-media-placeholder.is-appender{margin-bottom:11px;margin-top:11px;min-height:auto;padding:11px}.wp-block-cloudinary-gallery .block-editor-media-placeholder.is-appender .components-button{margin-bottom:0} +/*# sourceMappingURL=gallery-block.css.map*/ \ No newline at end of file diff --git a/js/gallery-block.js b/js/gallery-block.js index e8929bfdb..f75bfcc23 100644 --- a/js/gallery-block.js +++ b/js/gallery-block.js @@ -1 +1,2 @@ -!function(){var e={2485:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t=0&&(e=e.replace(/\[/g,t).replace(/]/g,""));var n=e.split(t);if(n.filter(c).length!==n.length)throw Error("Refusing to update blacklisted property "+e);return n}var s=Object.prototype.hasOwnProperty;function l(e,t,n,r){if(!(this instanceof l))return new l(e,t,n,r);void 0===t&&(t=!1),void 0===n&&(n=!0),void 0===r&&(r=!0),this.separator=e||".",this.override=t,this.useArray=n,this.useBrackets=r,this.keepArray=!1,this.cleanup=[]}var p=new l(".",!1,!0,!0);function f(e){return function(){return p[e].apply(p,arguments)}}l.prototype._fill=function(e,n,r,a){var c=e.shift();if(e.length>0){if(n[c]=n[c]||(this.useArray&&function(e){return/^\d+$/.test(e)}(e[0])?[]:{}),!o(n[c])){if(!this.override){if(!o(r)||!i(r))throw new Error("Trying to redefine `"+c+"` which is a "+typeof n[c]);return}n[c]={}}this._fill(e,n[c],r,a)}else{if(!this.override&&o(n[c])&&!i(n[c])){if(!o(r)||!i(r))throw new Error("Trying to redefine non-empty obj['"+c+"']");return}n[c]=t(r,a)}},l.prototype.object=function(e,n){var r=this;return Object.keys(e).forEach((function(o){var i=void 0===n?null:n[o],a=u(o,r.separator).join(r.separator);-1!==a.indexOf(r.separator)?(r._fill(a.split(r.separator),e,e[o],i),delete e[o]):e[o]=t(e[o],i)})),e},l.prototype.str=function(e,n,r,o){var i=u(e,this.separator).join(this.separator);return-1!==e.indexOf(this.separator)?this._fill(i.split(this.separator),r,n,o):r[e]=t(n,o),r},l.prototype.pick=function(e,t,r,o){var i,a,c,s,l;for(a=u(e,this.separator),i=0;i-1&&e%1==0&&e-1}},1175:function(e,t,n){var r=n(6025);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},3040:function(e,t,n){var r=n(1549),o=n(79),i=n(8223);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},7670:function(e,t,n){var r=n(2651);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},289:function(e,t,n){var r=n(2651);e.exports=function(e){return r(this,e).get(e)}},4509:function(e,t,n){var r=n(2651);e.exports=function(e){return r(this,e).has(e)}},2949:function(e,t,n){var r=n(2651);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},1042:function(e,t,n){var r=n(6110)(Object,"create");e.exports=r},3650:function(e,t,n){var r=n(4335)(Object.keys,Object);e.exports=r},181:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},6009:function(e,t,n){e=n.nmd(e);var r=n(4840),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,c=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=c},9350:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},4335:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},9325:function(e,t,n){var r=n(4840),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},1420:function(e,t,n){var r=n(79);e.exports=function(){this.__data__=new r,this.size=0}},938:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},3605:function(e){e.exports=function(e){return this.__data__.get(e)}},9817:function(e){e.exports=function(e){return this.__data__.has(e)}},945:function(e,t,n){var r=n(79),o=n(8223),i=n(3661);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},7473:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},8055:function(e,t,n){var r=n(9999);e.exports=function(e){return r(e,5)}},5288:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},2428:function(e,t,n){var r=n(7534),o=n(346),i=Object.prototype,a=i.hasOwnProperty,c=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!c.call(e,"callee")};e.exports=u},6449:function(e){var t=Array.isArray;e.exports=t},4894:function(e,t,n){var r=n(1882),o=n(294);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},3656:function(e,t,n){e=n.nmd(e);var r=n(9325),o=n(9935),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,c=a&&a.exports===i?r.Buffer:void 0,u=(c?c.isBuffer:void 0)||o;e.exports=u},1882:function(e,t,n){var r=n(2552),o=n(3805);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},294:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},7730:function(e,t,n){var r=n(9172),o=n(7301),i=n(6009),a=i&&i.isMap,c=a?o(a):r;e.exports=c},3805:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},346:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},8440:function(e,t,n){var r=n(6038),o=n(7301),i=n(6009),a=i&&i.isSet,c=a?o(a):r;e.exports=c},7167:function(e,t,n){var r=n(4901),o=n(7301),i=n(6009),a=i&&i.isTypedArray,c=a?o(a):r;e.exports=c},5950:function(e,t,n){var r=n(695),o=n(8984),i=n(4894);e.exports=function(e){return i(e)?r(e):o(e)}},7241:function(e,t,n){var r=n(695),o=n(2903),i=n(4894);e.exports=function(e){return i(e)?r(e,!0):o(e)}},3345:function(e){e.exports=function(){return[]}},9935:function(e){e.exports=function(){return!1}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r](i,i.exports,n),i.loaded=!0,i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){"use strict";var e=window.wp.i18n,t=window.wp.blocks;function r(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}function o(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&k(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&k(r.height)/e.offsetHeight||1);var a=(O(e)?x(e):window).visualViewport,c=!S()&&n,u=(r.left+(c&&a?a.offsetLeft:0))/o,s=(r.top+(c&&a?a.offsetTop:0))/i,l=r.width/o,p=r.height/i;return{width:l,height:p,top:s,right:u+l,bottom:s+p,left:u,x:u,y:s}}function M(e){var t=x(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function T(e){return e?(e.nodeName||"").toLowerCase():null}function D(e){return((O(e)?e.ownerDocument:e.document)||window.document).documentElement}function B(e){return C(D(e)).left+M(e).scrollLeft}function R(e){return x(e).getComputedStyle(e)}function Z(e){var t=R(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function N(e,t,n){void 0===n&&(n=!1);var r,o,i=L(t),a=L(t)&&function(e){var t=e.getBoundingClientRect(),n=k(t.width)/e.offsetWidth||1,r=k(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),c=D(t),u=C(e,a,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&(("body"!==T(t)||Z(c))&&(s=(r=t)!==x(r)&&L(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:M(r)),L(t)?((l=C(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):c&&(l.x=B(c))),{x:u.left+s.scrollLeft-l.x,y:u.top+s.scrollTop-l.y,width:u.width,height:u.height}}function I(e){var t=C(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function F(e){return"html"===T(e)?e:e.assignedSlot||e.parentNode||(E(e)?e.host:null)||D(e)}function W(e){return["html","body","#document"].indexOf(T(e))>=0?e.ownerDocument.body:L(e)&&Z(e)?e:W(F(e))}function z(e,t){var n;void 0===t&&(t=[]);var r=W(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=x(r),a=o?[i].concat(i.visualViewport||[],Z(r)?r:[]):r,c=t.concat(a);return o?c:c.concat(z(F(a)))}function V(e){return["table","td","th"].indexOf(T(e))>=0}function H(e){return L(e)&&"fixed"!==R(e).position?e.offsetParent:null}function U(e){for(var t=x(e),n=H(e);n&&V(n)&&"static"===R(n).position;)n=H(n);return n&&("html"===T(n)||"body"===T(n)&&"static"===R(n).position)?t:n||function(e){var t=/firefox/i.test(A());if(/Trident/i.test(A())&&L(e)&&"fixed"===R(e).position)return null;var n=F(e);for(E(n)&&(n=n.host);L(n)&&["html","body"].indexOf(T(n))<0;){var r=R(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var q="top",$="bottom",G="right",X="left",J="auto",Y=[q,$,G,X],K="start",Q="end",ee="clippingParents",te="viewport",ne="popper",re="reference",oe=Y.reduce((function(e,t){return e.concat([t+"-"+K,t+"-"+Q])}),[]),ie=[].concat(Y,[J]).reduce((function(e,t){return e.concat([t,t+"-"+K,t+"-"+Q])}),[]),ae=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function ce(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var ue={placement:"bottom",modifiers:[],strategy:"absolute"};function se(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function me(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?fe(o):null,a=o?de(o):null,c=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(i){case q:t={x:c,y:n.y-r.height};break;case $:t={x:c,y:n.y+n.height};break;case G:t={x:n.x+n.width,y:u};break;case X:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var s=i?ve(i):null;if(null!=s){var l="y"===s?"height":"width";switch(a){case K:t[s]=t[s]-(n[l]/2-r[l]/2);break;case Q:t[s]=t[s]+(n[l]/2-r[l]/2)}}return t}var ye={top:"auto",right:"auto",bottom:"auto",left:"auto"};function he(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,c=e.position,u=e.gpuAcceleration,s=e.adaptive,l=e.roundOffsets,p=e.isFixed,f=a.x,d=void 0===f?0:f,v=a.y,m=void 0===v?0:v,y="function"==typeof l?l({x:d,y:m}):{x:d,y:m};d=y.x,m=y.y;var h=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),g=X,_=q,w=window;if(s){var O=U(n),L="clientHeight",E="clientWidth";if(O===x(n)&&"static"!==R(O=D(n)).position&&"absolute"===c&&(L="scrollHeight",E="scrollWidth"),o===q||(o===X||o===G)&&i===Q)_=$,m-=(p&&O===w&&w.visualViewport?w.visualViewport.height:O[L])-r.height,m*=u?1:-1;if(o===X||(o===q||o===$)&&i===Q)g=G,d-=(p&&O===w&&w.visualViewport?w.visualViewport.width:O[E])-r.width,d*=u?1:-1}var j,P=Object.assign({position:c},s&&ye),A=!0===l?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:k(t*r)/r||0,y:k(n*r)/r||0}}({x:d,y:m}):{x:d,y:m};return d=A.x,m=A.y,u?Object.assign({},P,((j={})[_]=b?"0":"",j[g]=h?"0":"",j.transform=(w.devicePixelRatio||1)<=1?"translate("+d+"px, "+m+"px)":"translate3d("+d+"px, "+m+"px, 0)",j)):Object.assign({},P,((t={})[_]=b?m+"px":"",t[g]=h?d+"px":"",t.transform="",t))}var be={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];L(o)&&T(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});L(r)&&T(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};var ge={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=ie.reduce((function(e,n){return e[n]=function(e,t,n){var r=fe(e),o=[X,q].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],c=i[1];return a=a||0,c=(c||0)*o,[X,G].indexOf(r)>=0?{x:c,y:a}:{x:a,y:c}}(n,t.rects,i),e}),{}),c=a[t.placement],u=c.x,s=c.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=s),t.modifiersData[r]=a}},_e={left:"right",right:"left",bottom:"top",top:"bottom"};function we(e){return e.replace(/left|right|bottom|top/g,(function(e){return _e[e]}))}var xe={start:"end",end:"start"};function Oe(e){return e.replace(/start|end/g,(function(e){return xe[e]}))}function Le(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&E(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ee(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function je(e,t,n){return t===te?Ee(function(e,t){var n=x(e),r=D(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,c=0,u=0;if(o){i=o.width,a=o.height;var s=S();(s||!s&&"fixed"===t)&&(c=o.offsetLeft,u=o.offsetTop)}return{width:i,height:a,x:c+B(e),y:u}}(e,n)):O(t)?function(e,t){var n=C(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Ee(function(e){var t,n=D(e),r=M(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=j(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=j(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+B(e),u=-r.scrollTop;return"rtl"===R(o||n).direction&&(c+=j(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:c,y:u}}(D(e)))}function Pe(e,t,n,r){var o="clippingParents"===t?function(e){var t=z(F(e)),n=["absolute","fixed"].indexOf(R(e).position)>=0&&L(e)?U(e):e;return O(n)?t.filter((function(e){return O(e)&&Le(e,n)&&"body"!==T(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],c=i.reduce((function(t,n){var o=je(e,n,r);return t.top=j(o.top,t.top),t.right=P(o.right,t.right),t.bottom=P(o.bottom,t.bottom),t.left=j(o.left,t.left),t}),je(e,a,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function ke(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Ae(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Se(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,c=n.boundary,u=void 0===c?ee:c,s=n.rootBoundary,l=void 0===s?te:s,p=n.elementContext,f=void 0===p?ne:p,d=n.altBoundary,v=void 0!==d&&d,m=n.padding,y=void 0===m?0:m,h=ke("number"!=typeof y?y:Ae(y,Y)),b=f===ne?re:ne,g=e.rects.popper,_=e.elements[v?b:f],w=Pe(O(_)?_:_.contextElement||D(e.elements.popper),u,l,a),x=C(e.elements.reference),L=me({reference:x,element:g,strategy:"absolute",placement:o}),E=Ee(Object.assign({},g,L)),j=f===ne?E:x,P={top:w.top-j.top+h.top,bottom:j.bottom-w.bottom+h.bottom,left:w.left-j.left+h.left,right:j.right-w.right+h.right},k=e.modifiersData.offset;if(f===ne&&k){var A=k[o];Object.keys(P).forEach((function(e){var t=[G,$].indexOf(e)>=0?1:-1,n=[q,$].indexOf(e)>=0?"y":"x";P[e]+=A[n]*t}))}return P}function Ce(e,t,n){return j(e,P(t,n))}var Me={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,c=void 0!==a&&a,u=n.boundary,s=n.rootBoundary,l=n.altBoundary,p=n.padding,f=n.tether,d=void 0===f||f,v=n.tetherOffset,m=void 0===v?0:v,y=Se(t,{boundary:u,rootBoundary:s,padding:p,altBoundary:l}),h=fe(t.placement),b=de(t.placement),g=!b,_=ve(h),w="x"===_?"y":"x",x=t.modifiersData.popperOffsets,O=t.rects.reference,L=t.rects.popper,E="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,k="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,S={x:0,y:0};if(x){if(i){var C,M="y"===_?q:X,T="y"===_?$:G,D="y"===_?"height":"width",B=x[_],R=B+y[M],Z=B-y[T],N=d?-L[D]/2:0,F=b===K?O[D]:L[D],W=b===K?-L[D]:-O[D],z=t.elements.arrow,V=d&&z?I(z):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},J=H[M],Y=H[T],Q=Ce(0,O[D],V[D]),ee=g?O[D]/2-N-Q-J-k.mainAxis:F-Q-J-k.mainAxis,te=g?-O[D]/2+N+Q+Y+k.mainAxis:W+Q+Y+k.mainAxis,ne=t.elements.arrow&&U(t.elements.arrow),re=ne?"y"===_?ne.clientTop||0:ne.clientLeft||0:0,oe=null!=(C=null==A?void 0:A[_])?C:0,ie=B+te-oe,ae=Ce(d?P(R,B+ee-oe-re):R,B,d?j(Z,ie):Z);x[_]=ae,S[_]=ae-B}if(c){var ce,ue="x"===_?q:X,se="x"===_?$:G,le=x[w],pe="y"===w?"height":"width",me=le+y[ue],ye=le-y[se],he=-1!==[q,X].indexOf(h),be=null!=(ce=null==A?void 0:A[w])?ce:0,ge=he?me:le-O[pe]-L[pe]-be+k.altAxis,_e=he?le+O[pe]+L[pe]-be-k.altAxis:ye,we=d&&he?function(e,t,n){var r=Ce(e,t,n);return r>n?n:r}(ge,le,_e):Ce(d?ge:me,le,d?_e:ye);x[w]=we,S[w]=we-le}t.modifiersData[r]=S}},requiresIfExists:["offset"]};var Te={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,c=fe(n.placement),u=ve(c),s=[X,G].indexOf(c)>=0?"height":"width";if(i&&a){var l=function(e,t){return ke("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ae(e,Y))}(o.padding,n),p=I(i),f="y"===u?q:X,d="y"===u?$:G,v=n.rects.reference[s]+n.rects.reference[u]-a[u]-n.rects.popper[s],m=a[u]-n.rects.reference[u],y=U(i),h=y?"y"===u?y.clientHeight||0:y.clientWidth||0:0,b=v/2-m/2,g=l[f],_=h-p[s]-l[d],w=h/2-p[s]/2+b,x=Ce(g,w,_),O=u;n.modifiersData[r]=((t={})[O]=x,t.centerOffset=x-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Le(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function De(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Be(e){return[q,G,$,X].some((function(t){return e[t]>=0}))}var Re=le({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,c=void 0===a||a,u=x(t.elements.popper),s=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&s.forEach((function(e){e.addEventListener("scroll",n.update,pe)})),c&&u.addEventListener("resize",n.update,pe),function(){i&&s.forEach((function(e){e.removeEventListener("scroll",n.update,pe)})),c&&u.removeEventListener("resize",n.update,pe)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=me({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,c=n.roundOffsets,u=void 0===c||c,s={placement:fe(t.placement),variation:de(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,he(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,he(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},be,ge,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,c=void 0===a||a,u=n.fallbackPlacements,s=n.padding,l=n.boundary,p=n.rootBoundary,f=n.altBoundary,d=n.flipVariations,v=void 0===d||d,m=n.allowedAutoPlacements,y=t.options.placement,h=fe(y),b=u||(h===y||!v?[we(y)]:function(e){if(fe(e)===J)return[];var t=we(e);return[Oe(e),t,Oe(t)]}(y)),g=[y].concat(b).reduce((function(e,n){return e.concat(fe(n)===J?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,c=n.flipVariations,u=n.allowedAutoPlacements,s=void 0===u?ie:u,l=de(r),p=l?c?oe:oe.filter((function(e){return de(e)===l})):Y,f=p.filter((function(e){return s.indexOf(e)>=0}));0===f.length&&(f=p);var d=f.reduce((function(t,n){return t[n]=Se(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[fe(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}(t,{placement:n,boundary:l,rootBoundary:p,padding:s,flipVariations:v,allowedAutoPlacements:m}):n)}),[]),_=t.rects.reference,w=t.rects.popper,x=new Map,O=!0,L=g[0],E=0;E=0,S=A?"width":"height",C=Se(t,{placement:j,boundary:l,rootBoundary:p,altBoundary:f,padding:s}),M=A?k?G:X:k?$:q;_[S]>w[S]&&(M=we(M));var T=we(M),D=[];if(i&&D.push(C[P]<=0),c&&D.push(C[M]<=0,C[T]<=0),D.every((function(e){return e}))){L=j,O=!1;break}x.set(j,D)}if(O)for(var B=function(e){var t=g.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return L=t,"break"},R=v?3:1;R>0;R--){if("break"===B(R))break}t.placement!==L&&(t.modifiersData[r]._skip=!0,t.placement=L,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},Me,Te,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Se(t,{elementContext:"reference"}),c=Se(t,{altBoundary:!0}),u=De(a,r),s=De(c,o,i),l=Be(u),p=Be(s);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:s,isReferenceHidden:l,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":p})}}]}),Ze="tippy-content",Ne="tippy-backdrop",Ie="tippy-arrow",Fe="tippy-svg-arrow",We={passive:!0,capture:!0},ze=function(){return document.body};function Ve(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function He(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function Ue(e,t){return"function"==typeof e?e.apply(void 0,t):e}function qe(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function $e(e){return[].concat(e)}function Ge(e,t){-1===e.indexOf(t)&&e.push(t)}function Xe(e){return e.split("-")[0]}function Je(e){return[].slice.call(e)}function Ye(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function Ke(){return document.createElement("div")}function Qe(e){return["Element","Fragment"].some((function(t){return He(e,t)}))}function et(e){return He(e,"MouseEvent")}function tt(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function nt(e){return Qe(e)?[e]:function(e){return He(e,"NodeList")}(e)?Je(e):Array.isArray(e)?e:Je(document.querySelectorAll(e))}function rt(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function ot(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function it(e){var t,n=$e(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function at(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}function ct(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var ut={isTouch:!1},st=0;function lt(){ut.isTouch||(ut.isTouch=!0,window.performance&&document.addEventListener("mousemove",pt))}function pt(){var e=performance.now();e-st<20&&(ut.isTouch=!1,document.removeEventListener("mousemove",pt)),st=e}function ft(){var e=document.activeElement;if(tt(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var dt=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var vt={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},mt=Object.assign({appendTo:ze,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},vt,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),yt=Object.keys(mt);function ht(e){var t=(e.plugins||[]).reduce((function(t,n){var r,o=n.name,i=n.defaultValue;o&&(t[o]=void 0!==e[o]?e[o]:null!=(r=mt[o])?r:i);return t}),{});return Object.assign({},e,t)}function bt(e,t){var n=Object.assign({},t,{content:Ue(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(ht(Object.assign({},mt,{plugins:t}))):yt).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},mt.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}var gt=function(){return"innerHTML"};function _t(e,t){e[gt()]=t}function wt(e){var t=Ke();return!0===e?t.className=Ie:(t.className=Fe,Qe(e)?t.appendChild(e):_t(t,e)),t}function xt(e,t){Qe(t.content)?(_t(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?_t(e,t.content):e.textContent=t.content)}function Ot(e){var t=e.firstElementChild,n=Je(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(Ze)})),arrow:n.find((function(e){return e.classList.contains(Ie)||e.classList.contains(Fe)})),backdrop:n.find((function(e){return e.classList.contains(Ne)}))}}function Lt(e){var t=Ke(),n=Ke();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Ke();function o(n,r){var o=Ot(t),i=o.box,a=o.content,c=o.arrow;r.theme?i.setAttribute("data-theme",r.theme):i.removeAttribute("data-theme"),"string"==typeof r.animation?i.setAttribute("data-animation",r.animation):i.removeAttribute("data-animation"),r.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?i.setAttribute("role",r.role):i.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||xt(a,e.props),r.arrow?c?n.arrow!==r.arrow&&(i.removeChild(c),i.appendChild(wt(r.arrow))):i.appendChild(wt(r.arrow)):c&&i.removeChild(c)}return r.className=Ze,r.setAttribute("data-state","hidden"),xt(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props),{popper:t,onUpdate:o}}Lt.$$tippy=!0;var Et=1,jt=[],Pt=[];function kt(e,t){var n,r,o,i,a,c,u,s,l=bt(e,Object.assign({},mt,ht(Ye(t)))),p=!1,f=!1,d=!1,v=!1,m=[],y=qe($,l.interactiveDebounce),h=Et++,b=(s=l.plugins).filter((function(e,t){return s.indexOf(e)===t})),g={id:h,reference:e,popper:Ke(),popperInstance:null,props:l,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:b,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(o)},setProps:function(t){0;if(g.state.isDestroyed)return;T("onBeforeUpdate",[g,t]),U();var n=g.props,r=bt(e,Object.assign({},n,Ye(t),{ignoreAttributes:!0}));g.props=r,H(),n.interactiveDebounce!==r.interactiveDebounce&&(R(),y=qe($,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?$e(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded");B(),M(),x&&x(n,r);g.popperInstance&&(Y(),Q().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));T("onAfterUpdate",[g,t])},setContent:function(e){g.setProps({content:e})},show:function(){0;var e=g.state.isVisible,t=g.state.isDestroyed,n=!g.state.isEnabled,r=ut.isTouch&&!g.props.touch,o=Ve(g.props.duration,0,mt.duration);if(e||t||n||r)return;if(k().hasAttribute("disabled"))return;if(T("onShow",[g],!1),!1===g.props.onShow(g))return;g.state.isVisible=!0,P()&&(w.style.visibility="visible");M(),F(),g.state.isMounted||(w.style.transition="none");if(P()){var i=S();rt([i.box,i.content],0)}c=function(){var e;if(g.state.isVisible&&!v){if(v=!0,w.offsetHeight,w.style.transition=g.props.moveTransition,P()&&g.props.animation){var t=S(),n=t.box,r=t.content;rt([n,r],o),ot([n,r],"visible")}D(),B(),Ge(Pt,g),null==(e=g.popperInstance)||e.forceUpdate(),T("onMount",[g]),g.props.animation&&P()&&function(e,t){z(e,t)}(o,(function(){g.state.isShown=!0,T("onShown",[g])}))}},function(){var e,t=g.props.appendTo,n=k();e=g.props.interactive&&t===ze||"parent"===t?n.parentNode:Ue(t,[n]);e.contains(w)||e.appendChild(w);g.state.isMounted=!0,Y(),!1}()},hide:function(){0;var e=!g.state.isVisible,t=g.state.isDestroyed,n=!g.state.isEnabled,r=Ve(g.props.duration,1,mt.duration);if(e||t||n)return;if(T("onHide",[g],!1),!1===g.props.onHide(g))return;g.state.isVisible=!1,g.state.isShown=!1,v=!1,p=!1,P()&&(w.style.visibility="hidden");if(R(),W(),M(!0),P()){var o=S(),i=o.box,a=o.content;g.props.animation&&(rt([i,a],r),ot([i,a],"hidden"))}D(),B(),g.props.animation?P()&&function(e,t){z(e,(function(){!g.state.isVisible&&w.parentNode&&w.parentNode.contains(w)&&t()}))}(r,g.unmount):g.unmount()},hideWithInteractivity:function(e){0;A().addEventListener("mousemove",y),Ge(jt,y),y(e)},enable:function(){g.state.isEnabled=!0},disable:function(){g.hide(),g.state.isEnabled=!1},unmount:function(){0;g.state.isVisible&&g.hide();if(!g.state.isMounted)return;K(),Q().forEach((function(e){e._tippy.unmount()})),w.parentNode&&w.parentNode.removeChild(w);Pt=Pt.filter((function(e){return e!==g})),g.state.isMounted=!1,T("onHidden",[g])},destroy:function(){0;if(g.state.isDestroyed)return;g.clearDelayTimeouts(),g.unmount(),U(),delete e._tippy,g.state.isDestroyed=!0,T("onDestroy",[g])}};if(!l.render)return g;var _=l.render(g),w=_.popper,x=_.onUpdate;w.setAttribute("data-tippy-root",""),w.id="tippy-"+g.id,g.popper=w,e._tippy=g,w._tippy=g;var O=b.map((function(e){return e.fn(g)})),L=e.hasAttribute("aria-expanded");return H(),B(),M(),T("onCreate",[g]),l.showOnCreate&&ee(),w.addEventListener("mouseenter",(function(){g.props.interactive&&g.state.isVisible&&g.clearDelayTimeouts()})),w.addEventListener("mouseleave",(function(){g.props.interactive&&g.props.trigger.indexOf("mouseenter")>=0&&A().addEventListener("mousemove",y)})),g;function E(){var e=g.props.touch;return Array.isArray(e)?e:[e,0]}function j(){return"hold"===E()[0]}function P(){var e;return!(null==(e=g.props.render)||!e.$$tippy)}function k(){return u||e}function A(){var e=k().parentNode;return e?it(e):document}function S(){return Ot(w)}function C(e){return g.state.isMounted&&!g.state.isVisible||ut.isTouch||i&&"focus"===i.type?0:Ve(g.props.delay,e?0:1,mt.delay)}function M(e){void 0===e&&(e=!1),w.style.pointerEvents=g.props.interactive&&!e?"":"none",w.style.zIndex=""+g.props.zIndex}function T(e,t,n){var r;(void 0===n&&(n=!0),O.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(r=g.props)[e].apply(r,t)}function D(){var t=g.props.aria;if(t.content){var n="aria-"+t.content,r=w.id;$e(g.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(g.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var o=t&&t.replace(r,"").trim();o?e.setAttribute(n,o):e.removeAttribute(n)}}))}}function B(){!L&&g.props.aria.expanded&&$e(g.props.triggerTarget||e).forEach((function(e){g.props.interactive?e.setAttribute("aria-expanded",g.state.isVisible&&e===k()?"true":"false"):e.removeAttribute("aria-expanded")}))}function R(){A().removeEventListener("mousemove",y),jt=jt.filter((function(e){return e!==y}))}function Z(t){if(!ut.isTouch||!d&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!g.props.interactive||!ct(w,n)){if($e(g.props.triggerTarget||e).some((function(e){return ct(e,n)}))){if(ut.isTouch)return;if(g.state.isVisible&&g.props.trigger.indexOf("click")>=0)return}else T("onClickOutside",[g,t]);!0===g.props.hideOnClick&&(g.clearDelayTimeouts(),g.hide(),f=!0,setTimeout((function(){f=!1})),g.state.isMounted||W())}}}function N(){d=!0}function I(){d=!1}function F(){var e=A();e.addEventListener("mousedown",Z,!0),e.addEventListener("touchend",Z,We),e.addEventListener("touchstart",I,We),e.addEventListener("touchmove",N,We)}function W(){var e=A();e.removeEventListener("mousedown",Z,!0),e.removeEventListener("touchend",Z,We),e.removeEventListener("touchstart",I,We),e.removeEventListener("touchmove",N,We)}function z(e,t){var n=S().box;function r(e){e.target===n&&(at(n,"remove",r),t())}if(0===e)return t();at(n,"remove",a),at(n,"add",r),a=r}function V(t,n,r){void 0===r&&(r=!1),$e(g.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),m.push({node:e,eventType:t,handler:n,options:r})}))}function H(){var e;j()&&(V("touchstart",q,{passive:!0}),V("touchend",G,{passive:!0})),(e=g.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(V(e,q),e){case"mouseenter":V("mouseleave",G);break;case"focus":V(dt?"focusout":"blur",X);break;case"focusin":V("focusout",X)}}))}function U(){m.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,o=e.options;t.removeEventListener(n,r,o)})),m=[]}function q(e){var t,n=!1;if(g.state.isEnabled&&!J(e)&&!f){var r="focus"===(null==(t=i)?void 0:t.type);i=e,u=e.currentTarget,B(),!g.state.isVisible&&et(e)&&jt.forEach((function(t){return t(e)})),"click"===e.type&&(g.props.trigger.indexOf("mouseenter")<0||p)&&!1!==g.props.hideOnClick&&g.state.isVisible?n=!0:ee(e),"click"===e.type&&(p=!n),n&&!r&&te(e)}}function $(e){var t=e.target,n=k().contains(t)||w.contains(t);if("mousemove"!==e.type||!n){var r=Q().concat(w).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:l}:null})).filter(Boolean);(function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,o=e.popperState,i=e.props.interactiveBorder,a=Xe(o.placement),c=o.modifiersData.offset;if(!c)return!0;var u="bottom"===a?c.top.y:0,s="top"===a?c.bottom.y:0,l="right"===a?c.left.x:0,p="left"===a?c.right.x:0,f=t.top-r+u>i,d=r-t.bottom-s>i,v=t.left-n+l>i,m=n-t.right-p>i;return f||d||v||m}))})(r,e)&&(R(),te(e))}}function G(e){J(e)||g.props.trigger.indexOf("click")>=0&&p||(g.props.interactive?g.hideWithInteractivity(e):te(e))}function X(e){g.props.trigger.indexOf("focusin")<0&&e.target!==k()||g.props.interactive&&e.relatedTarget&&w.contains(e.relatedTarget)||te(e)}function J(e){return!!ut.isTouch&&j()!==e.type.indexOf("touch")>=0}function Y(){K();var t=g.props,n=t.popperOptions,r=t.placement,o=t.offset,i=t.getReferenceClientRect,a=t.moveTransition,u=P()?Ot(w).arrow:null,s=i?{getBoundingClientRect:i,contextElement:i.contextElement||k()}:e,l={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(P()){var n=S().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}},p=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},l];P()&&u&&p.push({name:"arrow",options:{element:u,padding:3}}),p.push.apply(p,(null==n?void 0:n.modifiers)||[]),g.popperInstance=Re(s,w,Object.assign({},n,{placement:r,onFirstUpdate:c,modifiers:p}))}function K(){g.popperInstance&&(g.popperInstance.destroy(),g.popperInstance=null)}function Q(){return Je(w.querySelectorAll("[data-tippy-root]"))}function ee(e){g.clearDelayTimeouts(),e&&T("onTrigger",[g,e]),F();var t=C(!0),r=E(),o=r[0],i=r[1];ut.isTouch&&"hold"===o&&i&&(t=i),t?n=setTimeout((function(){g.show()}),t):g.show()}function te(e){if(g.clearDelayTimeouts(),T("onUntrigger",[g,e]),g.state.isVisible){if(!(g.props.trigger.indexOf("mouseenter")>=0&&g.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&p)){var t=C(!1);t?r=setTimeout((function(){g.state.isVisible&&g.hide()}),t):o=requestAnimationFrame((function(){g.hide()}))}}else W()}}function At(e,t){void 0===t&&(t={});var n=mt.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",lt,We),window.addEventListener("blur",ft);var r=Object.assign({},t,{plugins:n}),o=nt(e).reduce((function(e,t){var n=t&&kt(t,r);return n&&e.push(n),e}),[]);return Qe(e)?o[0]:o}At.defaultProps=mt,At.setDefaultProps=function(e){Object.keys(e).forEach((function(t){mt[t]=e[t]}))},At.currentInput=ut;Object.assign({},be,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});At.setDefaultProps({render:Lt});var St=At,Ct=window.ReactDOM;function Mt(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var Tt="undefined"!=typeof window&&"undefined"!=typeof document;function Dt(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function Bt(){return Tt&&document.createElement("div")}function Rt(e,t){if(e===t)return!0;if("object"==typeof e&&null!=e&&"object"==typeof t&&null!=t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e){if(!t.hasOwnProperty(n))return!1;if(!Rt(e[n],t[n]))return!1}return!0}return!1}function Zt(e){var t=[];return e.forEach((function(e){t.find((function(t){return Rt(e,t)}))||t.push(e)})),t}function Nt(e,t){var n,r;return Object.assign({},t,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:Zt([].concat((null==(n=e.popperOptions)?void 0:n.modifiers)||[],(null==(r=t.popperOptions)?void 0:r.modifiers)||[]))})})}var It=Tt?u.useLayoutEffect:u.useEffect;function Ft(e){var t=(0,u.useRef)();return t.current||(t.current="function"==typeof e?e():e),t.current}function Wt(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var zt={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,n=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function r(){e.props.className&&!n()||Wt(t,"add",e.props.className)}return{onCreate:r,onBeforeUpdate:function(){n()&&Wt(t,"remove",e.props.className)},onAfterUpdate:r}}};function Vt(e){return function(t){var n=t.children,r=t.content,o=t.visible,i=t.singleton,a=t.render,c=t.reference,l=t.disabled,p=void 0!==l&&l,f=t.ignoreAttributes,d=void 0===f||f,v=(t.__source,t.__self,Mt(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),m=void 0!==o,y=void 0!==i,h=(0,u.useState)(!1),b=h[0],g=h[1],_=(0,u.useState)({}),w=_[0],x=_[1],O=(0,u.useState)(),L=O[0],E=O[1],j=Ft((function(){return{container:Bt(),renders:1}})),P=Object.assign({ignoreAttributes:d},v,{content:j.container});m&&(P.trigger="manual",P.hideOnClick=!1),y&&(p=!0);var k=P,A=P.plugins||[];a&&(k=Object.assign({},P,{plugins:y&&null!=i.data?[].concat(A,[{fn:function(){return{onTrigger:function(e,t){var n=i.data.children.find((function(e){return e.instance.reference===t.currentTarget}));e.state.$$activeSingletonInstance=n.instance,E(n.content)}}}}]):A,render:function(){return{popper:j.container}}}));var S=[c].concat(n?[n.type]:[]);return It((function(){var t=c;c&&c.hasOwnProperty("current")&&(t=c.current);var n=e(t||j.ref||Bt(),Object.assign({},k,{plugins:[zt].concat(P.plugins||[])}));return j.instance=n,p&&n.disable(),o&&n.show(),y&&i.hook({instance:n,content:r,props:k,setSingletonContent:E}),g(!0),function(){n.destroy(),null==i||i.cleanup(n)}}),S),It((function(){var e;if(1!==j.renders){var t=j.instance;t.setProps(Nt(t.props,k)),null==(e=t.popperInstance)||e.forceUpdate(),p?t.disable():t.enable(),m&&(o?t.show():t.hide()),y&&i.hook({instance:t,content:r,props:k,setSingletonContent:E})}else j.renders++})),It((function(){var e;if(a){var t=j.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter((function(e){return"$$tippyReact"!==e.name})),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state,r=null==(t=n.modifiersData)?void 0:t.hide;w.placement===n.placement&&w.referenceHidden===(null==r?void 0:r.isReferenceHidden)&&w.escaped===(null==r?void 0:r.hasPopperEscaped)||x({placement:n.placement,referenceHidden:null==r?void 0:r.isReferenceHidden,escaped:null==r?void 0:r.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[w.placement,w.referenceHidden,w.escaped].concat(S)),s().createElement(s().Fragment,null,n?(0,u.cloneElement)(n,{ref:function(e){j.ref=e,Dt(n.ref,e)}}):null,b&&(0,Ct.createPortal)(a?a(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(w),L,j.instance):r,j.container))}}var Ht=function(e,t){return(0,u.forwardRef)((function(n,r){var o=n.children,i=Mt(n,["children"]);return s().createElement(e,Object.assign({},t,i),o?(0,u.cloneElement)(o,{ref:function(e){Dt(r,e),Dt(o.ref,e)}}):null)}))},Ut=Ht(Vt(St)),qt=function(){return s().createElement("svg",{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},s().createElement("title",null,"shape-round"),s().createElement("desc",null,"Created with Sketch."),s().createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},s().createElement("g",{id:"widgets/shape-round",transform:"translate(-3.000000, -3.000000)",fill:"#000000"},s().createElement("path",{d:"M12,3 C16.9705627,3 21,7.02943725 21,12 C21,16.9705627 16.9705627,21 12,21 C7.02943725,21 3,16.9705627 3,12 C3,7.02943725 7.02943725,3 12,3 Z M12,5 C8.13400675,5 5,8.13400675 5,12 C5,15.8659932 8.13400675,19 12,19 C15.8659932,19 19,15.8659932 19,12 C19,8.13400675 15.8659932,5 12,5 Z",id:"Combined-Shape"}))))},$t=function(){return s().createElement("svg",{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},s().createElement("title",null,"ratio-square"),s().createElement("desc",null,"Created with Sketch."),s().createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},s().createElement("g",{id:"widgets/shape-square",transform:"translate(-3.000000, -3.000000)",fill:"#000000"},s().createElement("path",{d:"M3,3 L3,21 L21,21 L21,3 L3,3 Z M5,5 L5,19 L19,19 L19,5 L5,5 Z",id:"shape"}))))},Gt=function(){return s().createElement("svg",{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},s().createElement("title",null,"shape-radius"),s().createElement("desc",null,"Created with Sketch."),s().createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},s().createElement("g",{id:"widgets/shape-radius",transform:"translate(-3.000000, -3.000000)",fill:"#000000"},s().createElement("path",{d:"M17,3 C19.209139,3 21,4.790861 21,7 L21,17 C21,19.209139 19.209139,21 17,21 L7,21 C4.790861,21 3,19.209139 3,17 L3,7 C3,4.790861 4.790861,3 7,3 L17,3 Z M17,5 L7,5 C5.9456382,5 5.08183488,5.81587779 5.00548574,6.85073766 L5,7 L5,17 C5,18.0543618 5.81587779,18.9181651 6.85073766,18.9945143 L7,19 L17,19 C18.0543618,19 18.9181651,18.1841222 18.9945143,17.1492623 L19,17 L19,7 C19,5.9456382 18.1841222,5.08183488 17.1492623,5.00548574 L17,5 Z",id:"Rectangle"}))))},Xt=function(){return s().createElement("svg",{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},s().createElement("title",null,"shape-none"),s().createElement("desc",null,"Created with Sketch."),s().createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},s().createElement("g",{id:"widgets/shape-none",transform:"translate(-3.000000, -3.000000)",fill:"#000000"},s().createElement("path",{d:"M5,19 L5,21 L3,21 L3,19 L5,19 Z M21,19 L21,21 L19,21 L19,19 L21,19 Z M13,19 L13,21 L11,21 L11,19 L13,19 Z M9,19 L9,21 L7,21 L7,19 L9,19 Z M17,19 L17,21 L15,21 L15,19 L17,19 Z M21,15 L21,17 L19,17 L19,15 L21,15 Z M21,11 L21,13 L19,13 L19,11 L21,11 Z M5,11 L5,13 L3,13 L3,11 L5,11 Z M21,7 L21,9 L19,9 L19,7 L21,7 Z M5,7 L5,9 L3,9 L3,7 L5,7 Z M13,3 L13,5 L11,5 L11,3 L13,3 Z M9,3 L9,5 L7,5 L7,3 L9,3 Z M17,3 L17,5 L15,5 L15,3 L17,3 Z M21,3 L21,5 L19,5 L19,3 L21,3 Z M5,3 L5,5 L3,5 L3,3 L5,3 Z M3,15 L5,15 L5,17 L3,17 L3,15 Z",id:"Shape"}))))},Jt=[{value:{type:"expanded",columns:1},icon:function(){return s().createElement("svg",{width:"17px",height:"20px",viewBox:"0 0 17 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},s().createElement("title",null,"layout-modern"),s().createElement("desc",null,"Created with Sketch."),s().createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},s().createElement("g",{id:"widgets/layout-modern",transform:"translate(-2.000000, -3.000000)",fill:"#000000"},s().createElement("path",{d:"M2,10 L5,10 L5,7 L2,7 L2,10 Z M2,14 L5,14 L5,11 L2,11 L2,14 Z M2,6 L5,6 L5,3 L2,3 L2,6 Z M6,3 L6,17 L19,17 L19,3 L6,3 Z M8,5 L8,15 L17,15 L17,5 L8,5 Z M6,18 L6,23 L19,23 L19,18 L6,18 Z M8,20 L8,23 L17,23 L17,20 L8,20 Z",id:"shape"}))))},label:(0,e.__)("Expanded - 1 Column","cloudinary")},{value:{type:"expanded",columns:2},icon:function(){return s().createElement("svg",{width:"18px",height:"17px",viewBox:"0 0 18 17",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},s().createElement("title",null,"layout-grid-2-column"),s().createElement("desc",null,"Created with Sketch."),s().createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},s().createElement("g",{id:"widgets/layout-gird-2-col",transform:"translate(-3.000000, -3.000000)",fill:"#000000"},s().createElement("path",{d:"M11,12 L11,20 L3,20 L3,12 L11,12 Z M21,12 L21,20 L13,20 L13,12 L21,12 Z M9,14 L5,14 L5,18 L9,18 L9,14 Z M19,14 L15,14 L15,18 L19,18 L19,14 Z M11,3 L11,11 L3,11 L3,3 L11,3 Z M21,3 L21,11 L13,11 L13,3 L21,3 Z M9,5 L5,5 L5,9 L9,9 L9,5 Z M19,5 L15,5 L15,9 L19,9 L19,5 Z",id:"Shape"}))))},label:(0,e.__)("Expanded - 2 Column","cloudinary")},{value:{type:"expanded",columns:3},icon:function(){return s().createElement("svg",{width:"20px",height:"13px",viewBox:"0 0 20 13",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},s().createElement("title",null,"layout-grid-3-column"),s().createElement("desc",null,"Created with Sketch."),s().createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},s().createElement("g",{id:"widgets/layout-gird-3-col",transform:"translate(-2.000000, -5.000000)",fill:"#000000"},s().createElement("path",{d:"M8,12 L8,18 L2,18 L2,12 L8,12 Z M15,12 L15,18 L9,18 L9,12 L15,12 Z M22,12 L22,18 L16,18 L16,12 L22,12 Z M6,14 L4,14 L4,16 L6,16 L6,14 Z M13,14 L11,14 L11,16 L13,16 L13,14 Z M20,14 L18,14 L18,16 L20,16 L20,14 Z M8,5 L8,11 L2,11 L2,5 L8,5 Z M15,5 L15,11 L9,11 L9,5 L15,5 Z M22,5 L22,11 L16,11 L16,5 L22,5 Z M6,7 L4,7 L4,9 L6,9 L6,7 Z M13,7 L11,7 L11,9 L13,9 L13,7 Z M20,7 L18,7 L18,9 L20,9 L20,7 Z",id:"Combined-Shape"}))))},label:(0,e.__)("Expanded - 3 Column","cloudinary")},{value:{type:"classic",columns:1},icon:function(){return s().createElement("svg",{width:"17px",height:"14px",viewBox:"0 0 17 14",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},s().createElement("title",null,"layout-classic"),s().createElement("desc",null,"Created with Sketch."),s().createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},s().createElement("g",{id:"widgets/layout-classic",transform:"translate(-3.000000, -5.000000)",fill:"#000000"},s().createElement("path",{d:"M3,12 L6,12 L6,9 L3,9 L3,12 Z M3,16 L6,16 L6,13 L3,13 L3,16 Z M3,8 L6,8 L6,5 L3,5 L3,8 Z M7,5 L7,19 L20,19 L20,5 L7,5 Z M9,7 L9,17 L18,17 L18,7 L9,7 Z",id:"shape"}))))},label:(0,e.__)("Classic","cloudinary")}],Yt=["image"],Kt=[{label:(0,e.__)("1:1","cloudinary"),value:"1:1"},{label:(0,e.__)("3:4","cloudinary"),value:"3:4"},{label:(0,e.__)("4:3","cloudinary"),value:"4:3"},{label:(0,e.__)("4:6","cloudinary"),value:"4:6"},{label:(0,e.__)("6:4","cloudinary"),value:"6:4"},{label:(0,e.__)("5:7","cloudinary"),value:"5:7"},{label:(0,e.__)("7:5","cloudinary"),value:"7:5"},{label:(0,e.__)("8:5","cloudinary"),value:"8:5"},{label:(0,e.__)("5:8","cloudinary"),value:"5:8"},{label:(0,e.__)("9:16","cloudinary"),value:"9:16"},{label:(0,e.__)("16:9","cloudinary"),value:"16:9"}],Qt=[{label:(0,e.__)("None","cloudinary"),value:"none"},{label:(0,e.__)("Fade","cloudinary"),value:"fade"},{label:(0,e.__)("Slide","cloudinary"),value:"slide"}],en=[{label:(0,e.__)("Always","cloudinary"),value:"always"},{label:(0,e.__)("None","cloudinary"),value:"none"},{label:(0,e.__)("MouseOver","cloudinary"),value:"mouseover"}],tn=[{label:(0,e.__)("Inline","cloudinary"),value:"inline"},{label:(0,e.__)("Flyout","cloudinary"),value:"flyout"},{label:(0,e.__)("Popup","cloudinary"),value:"popup"}],nn=[{label:(0,e.__)("Top","cloudinary"),value:"top"},{label:(0,e.__)("Bottom","cloudinary"),value:"bottom"},{label:(0,e.__)("Left","cloudinary"),value:"left"},{label:(0,e.__)("Right","cloudinary"),value:"right"}],rn=[{label:(0,e.__)("Click","cloudinary"),value:"click"},{label:(0,e.__)("Hover","cloudinary"),value:"hover"}],on=[{label:(0,e.__)("Left","cloudinary"),value:"left"},{label:(0,e.__)("Right","cloudinary"),value:"right"},{label:(0,e.__)("Top","cloudinary"),value:"top"},{label:(0,e.__)("Bottom","cloudinary"),value:"bottom"}],an=[{label:(0,e.__)("Thumbnails","cloudinary"),value:"thumbnails"},{label:(0,e.__)("Indicators","cloudinary"),value:"indicators"},{label:(0,e.__)("None","cloudinary"),value:"none"}],cn=[{value:"round",icon:qt,label:(0,e.__)("Round","cloudinary")},{value:"radius",icon:Gt,label:(0,e.__)("Radius","cloudinary")},{value:"none",icon:Xt,label:(0,e.__)("None","cloudinary")},{value:"square",icon:$t,label:(0,e.__)("Square","cloudinary")},{value:"rectangle",icon:function(){return s().createElement("svg",{width:"14px",height:"20px",viewBox:"0 0 14 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},s().createElement("title",null,"ratio-9-16"),s().createElement("desc",null,"Created with Sketch."),s().createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},s().createElement("g",{id:"ratio/9-16",transform:"translate(-5.000000, -2.000000)",fill:"#000000"},s().createElement("path",{d:"M22,5.5 L22,18.5 L2,18.5 L2,5.5 L22,5.5 Z M20,7.5 L4,7.5 L4,16.5 L20,16.5 L20,7.5 Z",id:"Combined-Shape",transform:"translate(12.000000, 12.000000) rotate(-90.000000) translate(-12.000000, -12.000000) "}))))},label:(0,e.__)("Rectangle","cloudinary")}],un=[{value:"round",icon:qt,label:(0,e.__)("Round","cloudinary")},{value:"radius",icon:Gt,label:(0,e.__)("Radius","cloudinary")},{value:"square",icon:$t,label:(0,e.__)("Square","cloudinary")}],sn=[{label:(0,e.__)("All","cloudinary"),value:"all"},{label:(0,e.__)("Border","cloudinary"),value:"border"},{label:(0,e.__)("Gradient","cloudinary"),value:"gradient"}],ln=[{label:(0,e.__)("All","cloudinary"),value:"all"},{label:(0,e.__)("Top","cloudinary"),value:"top"},{label:(0,e.__)("Top-Bottom","cloudinary"),value:"top-bottom"},{label:(0,e.__)("Left-Right","cloudinary"),value:"left-right"},{label:(0,e.__)("Bottom","cloudinary"),value:"bottom"},{label:(0,e.__)("Left","cloudinary"),value:"left"},{label:(0,e.__)("Right","cloudinary"),value:"right"}],pn=[{value:"round",icon:qt,label:(0,e.__)("Round","cloudinary")},{value:"radius",icon:Gt,label:(0,e.__)("Radius","cloudinary")},{value:"none",icon:Xt,label:(0,e.__)("None","cloudinary")},{value:"square",icon:$t,label:(0,e.__)("Square","cloudinary")}],fn=[{label:(0,e.__)("Pad","cloudinary"),value:"pad"},{label:(0,e.__)("Fill","cloudinary"),value:"fill"}],dn=[{label:(0,e.__)("White padding","cloudinary"),value:"rgb:FFFFFF"},{label:(0,e.__)("Border color padding","cloudinary"),value:"auto"},{label:(0,e.__)("Predominant color padding","cloudinary"),value:"auto:predominant"},{label:(0,e.__)("Gradient fade padding","cloudinary"),value:"auto:predominant_gradient"}],vn=n(2485),mn=n.n(vn),yn=function(e){var t=e.value,n=e.children,r=e.icon,o=e.onChange,i=e.current,a="object"===g(t)?JSON.stringify(t)===JSON.stringify(i):i===t;return s().createElement("button",{type:"button",onClick:function(){return o(t)},className:mn()("radio-select",{"radio-select--active":a})},s().createElement(r,null),s().createElement("div",{className:"radio-select__label"},n))},hn=window.wp.data,bn=["selectedImages"];function gn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var _n=function(e){var t=e.status,n=e.message,r=e.options,o=void 0===r?{}:r;(0,hn.dispatch)("core/notices").createNotice(t,n,function(e){for(var t=1;t100){console.error(j);break}if(!0!==g.reset){var l=g.orderedModifiers[a],u=l.fn,d=l.options,c=void 0===d?{}:d,p=l.name;"function"==typeof u&&(g=u({state:g,options:c,name:p,instance:E})||g)}else g.reset=!1,a=-1}}else console.error(b)}},update:(0,u.default)((function(){return new Promise((function(e){E.forceUpdate(),e(g)}))})),destroy:function(){L(),x=!0}};if(!y(e,t))return console.error(b),E;function L(){O.forEach((function(e){return e()})),O=[]}return E.setOptions(o).then((function(e){!x&&o.onFirstUpdate&&o.onFirstUpdate(e)})),E}}var w=g()},"./node_modules/@popperjs/core/lib/dom-utils/contains.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return r}});var n=o("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");function r(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&(0,n.isShadowRoot)(o)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}},"./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return a}});var n=o("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"),r=o("./node_modules/@popperjs/core/lib/utils/math.js"),s=o("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"),i=o("./node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js");function a(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!1);var a=e.getBoundingClientRect(),l=1,u=1;t&&(0,n.isHTMLElement)(e)&&(l=e.offsetWidth>0&&(0,r.round)(a.width)/e.offsetWidth||1,u=e.offsetHeight>0&&(0,r.round)(a.height)/e.offsetHeight||1);var d=((0,n.isElement)(e)?(0,s.default)(e):window).visualViewport,c=!(0,i.default)()&&o,p=(a.left+(c&&d?d.offsetLeft:0))/l,f=(a.top+(c&&d?d.offsetTop:0))/u,m=a.width/l,h=a.height/u;return{width:m,height:h,top:f,right:p+m,bottom:f+h,left:p,x:p,y:f}}},"./node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return j}});var n=o("./node_modules/@popperjs/core/lib/enums.js"),r=o("./node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js"),s=o("./node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js"),i=o("./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js"),a=o("./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js"),l=o("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),u=o("./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js"),d=o("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"),c=o("./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js"),p=o("./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js"),f=o("./node_modules/@popperjs/core/lib/dom-utils/contains.js"),m=o("./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"),h=o("./node_modules/@popperjs/core/lib/utils/rectToClientRect.js"),_=o("./node_modules/@popperjs/core/lib/utils/math.js");function b(e,t,o){return t===n.viewport?(0,h.default)((0,r.default)(e,o)):(0,d.isElement)(t)?function(e,t){var o=(0,c.default)(e,!1,"fixed"===t);return o.top=o.top+e.clientTop,o.left=o.left+e.clientLeft,o.bottom=o.top+e.clientHeight,o.right=o.left+e.clientWidth,o.width=e.clientWidth,o.height=e.clientHeight,o.x=o.left,o.y=o.top,o}(t,o):(0,h.default)((0,s.default)((0,l.default)(e)))}function j(e,t,o,n){var r="clippingParents"===t?function(e){var t=(0,i.default)((0,p.default)(e)),o=["absolute","fixed"].indexOf((0,u.default)(e).position)>=0&&(0,d.isHTMLElement)(e)?(0,a.default)(e):e;return(0,d.isElement)(o)?t.filter((function(e){return(0,d.isElement)(e)&&(0,f.default)(e,o)&&"body"!==(0,m.default)(e)})):[]}(e):[].concat(t),s=[].concat(r,[o]),l=s[0],c=s.reduce((function(t,o){var r=b(e,o,n);return t.top=(0,_.max)(r.top,t.top),t.right=(0,_.min)(r.right,t.right),t.bottom=(0,_.min)(r.bottom,t.bottom),t.left=(0,_.max)(r.left,t.left),t}),b(e,l,n));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}},"./node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return c}});var n=o("./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js"),r=o("./node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js"),s=o("./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"),i=o("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"),a=o("./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js"),l=o("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),u=o("./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js"),d=o("./node_modules/@popperjs/core/lib/utils/math.js");function c(e,t,o){void 0===o&&(o=!1);var c=(0,i.isHTMLElement)(t),p=(0,i.isHTMLElement)(t)&&function(e){var t=e.getBoundingClientRect(),o=(0,d.round)(t.width)/e.offsetWidth||1,n=(0,d.round)(t.height)/e.offsetHeight||1;return 1!==o||1!==n}(t),f=(0,l.default)(t),m=(0,n.default)(e,p,o),h={scrollLeft:0,scrollTop:0},_={x:0,y:0};return(c||!c&&!o)&&(("body"!==(0,s.default)(t)||(0,u.default)(f))&&(h=(0,r.default)(t)),(0,i.isHTMLElement)(t)?((_=(0,n.default)(t,!0)).x+=t.clientLeft,_.y+=t.clientTop):f&&(_.x=(0,a.default)(f))),{x:m.left+h.scrollLeft-_.x,y:m.top+h.scrollTop-_.y,width:m.width,height:m.height}}},"./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return r}});var n=o("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js");function r(e){return(0,n.default)(e).getComputedStyle(e)}},"./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return r}});var n=o("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");function r(e){return(((0,n.isElement)(e)?e.ownerDocument:e.document)||window.document).documentElement}},"./node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return l}});var n=o("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),r=o("./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js"),s=o("./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js"),i=o("./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js"),a=o("./node_modules/@popperjs/core/lib/utils/math.js");function l(e){var t,o=(0,n.default)(e),l=(0,i.default)(e),u=null==(t=e.ownerDocument)?void 0:t.body,d=(0,a.max)(o.scrollWidth,o.clientWidth,u?u.scrollWidth:0,u?u.clientWidth:0),c=(0,a.max)(o.scrollHeight,o.clientHeight,u?u.scrollHeight:0,u?u.clientHeight:0),p=-l.scrollLeft+(0,s.default)(e),f=-l.scrollTop;return"rtl"===(0,r.default)(u||o).direction&&(p+=(0,a.max)(o.clientWidth,u?u.clientWidth:0)-d),{width:d,height:c,x:p,y:f}}},"./node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js":function(e,t,o){"use strict";function n(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}o.r(t),o.d(t,{default:function(){return n}})},"./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return r}});var n=o("./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js");function r(e){var t=(0,n.default)(e),o=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:r}}},"./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js":function(e,t,o){"use strict";function n(e){return e?(e.nodeName||"").toLowerCase():null}o.r(t),o.d(t,{default:function(){return n}})},"./node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return a}});var n=o("./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js"),r=o("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"),s=o("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"),i=o("./node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js");function a(e){return e!==(0,r.default)(e)&&(0,s.isHTMLElement)(e)?(0,i.default)(e):(0,n.default)(e)}},"./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return c}});var n=o("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"),r=o("./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"),s=o("./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js"),i=o("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"),a=o("./node_modules/@popperjs/core/lib/dom-utils/isTableElement.js"),l=o("./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js"),u=o("./node_modules/@popperjs/core/lib/utils/userAgent.js");function d(e){return(0,i.isHTMLElement)(e)&&"fixed"!==(0,s.default)(e).position?e.offsetParent:null}function c(e){for(var t=(0,n.default)(e),o=d(e);o&&(0,a.default)(o)&&"static"===(0,s.default)(o).position;)o=d(o);return o&&("html"===(0,r.default)(o)||"body"===(0,r.default)(o)&&"static"===(0,s.default)(o).position)?t:o||function(e){var t=/firefox/i.test((0,u.default)());if(/Trident/i.test((0,u.default)())&&(0,i.isHTMLElement)(e)&&"fixed"===(0,s.default)(e).position)return null;var o=(0,l.default)(e);for((0,i.isShadowRoot)(o)&&(o=o.host);(0,i.isHTMLElement)(o)&&["html","body"].indexOf((0,r.default)(o))<0;){var n=(0,s.default)(o);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return o;o=o.parentNode}return null}(e)||t}},"./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return i}});var n=o("./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"),r=o("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),s=o("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");function i(e){return"html"===(0,n.default)(e)?e:e.assignedSlot||e.parentNode||((0,s.isShadowRoot)(e)?e.host:null)||(0,r.default)(e)}},"./node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return a}});var n=o("./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js"),r=o("./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js"),s=o("./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"),i=o("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");function a(e){return["html","body","#document"].indexOf((0,s.default)(e))>=0?e.ownerDocument.body:(0,i.isHTMLElement)(e)&&(0,r.default)(e)?e:a((0,n.default)(e))}},"./node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return a}});var n=o("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"),r=o("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),s=o("./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js"),i=o("./node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js");function a(e,t){var o=(0,n.default)(e),a=(0,r.default)(e),l=o.visualViewport,u=a.clientWidth,d=a.clientHeight,c=0,p=0;if(l){u=l.width,d=l.height;var f=(0,i.default)();(f||!f&&"fixed"===t)&&(c=l.offsetLeft,p=l.offsetTop)}return{width:u,height:d,x:c+(0,s.default)(e),y:p}}},"./node_modules/@popperjs/core/lib/dom-utils/getWindow.js":function(e,t,o){"use strict";function n(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}o.r(t),o.d(t,{default:function(){return n}})},"./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return r}});var n=o("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js");function r(e){var t=(0,n.default)(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}},"./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return i}});var n=o("./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js"),r=o("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),s=o("./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js");function i(e){return(0,n.default)((0,r.default)(e)).left+(0,s.default)(e).scrollLeft}},"./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js":function(e,t,o){"use strict";o.r(t),o.d(t,{isElement:function(){return r},isHTMLElement:function(){return s},isShadowRoot:function(){return i}});var n=o("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js");function r(e){return e instanceof(0,n.default)(e).Element||e instanceof Element}function s(e){return e instanceof(0,n.default)(e).HTMLElement||e instanceof HTMLElement}function i(e){return"undefined"!=typeof ShadowRoot&&(e instanceof(0,n.default)(e).ShadowRoot||e instanceof ShadowRoot)}},"./node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return r}});var n=o("./node_modules/@popperjs/core/lib/utils/userAgent.js");function r(){return!/^((?!chrome|android).)*safari/i.test((0,n.default)())}},"./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return r}});var n=o("./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js");function r(e){var t=(0,n.default)(e),o=t.overflow,r=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+s+r)}},"./node_modules/@popperjs/core/lib/dom-utils/isTableElement.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return r}});var n=o("./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js");function r(e){return["table","td","th"].indexOf((0,n.default)(e))>=0}},"./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return a}});var n=o("./node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js"),r=o("./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js"),s=o("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"),i=o("./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js");function a(e,t){var o;void 0===t&&(t=[]);var l=(0,n.default)(e),u=l===(null==(o=e.ownerDocument)?void 0:o.body),d=(0,s.default)(l),c=u?[d].concat(d.visualViewport||[],(0,i.default)(l)?l:[]):l,p=t.concat(c);return u?p:p.concat(a((0,r.default)(c)))}},"./node_modules/@popperjs/core/lib/enums.js":function(e,t,o){"use strict";o.r(t),o.d(t,{afterMain:function(){return w},afterRead:function(){return v},afterWrite:function(){return E},auto:function(){return a},basePlacements:function(){return l},beforeMain:function(){return y},beforeRead:function(){return b},beforeWrite:function(){return O},bottom:function(){return r},clippingParents:function(){return c},end:function(){return d},left:function(){return i},main:function(){return g},modifierPhases:function(){return L},placements:function(){return _},popper:function(){return f},read:function(){return j},reference:function(){return m},right:function(){return s},start:function(){return u},top:function(){return n},variationPlacements:function(){return h},viewport:function(){return p},write:function(){return x}});var n="top",r="bottom",s="right",i="left",a="auto",l=[n,r,s,i],u="start",d="end",c="clippingParents",p="viewport",f="popper",m="reference",h=l.reduce((function(e,t){return e.concat([t+"-"+u,t+"-"+d])}),[]),_=[].concat(l,[a]).reduce((function(e,t){return e.concat([t,t+"-"+u,t+"-"+d])}),[]),b="beforeRead",j="read",v="afterRead",y="beforeMain",g="main",w="afterMain",O="beforeWrite",x="write",E="afterWrite",L=[b,j,v,y,g,w,O,x,E]},"./node_modules/@popperjs/core/lib/modifiers/applyStyles.js":function(e,t,o){"use strict";o.r(t);var n=o("./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"),r=o("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");t.default={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var o=t.styles[e]||{},s=t.attributes[e]||{},i=t.elements[e];(0,r.isHTMLElement)(i)&&(0,n.default)(i)&&(Object.assign(i.style,o),Object.keys(s).forEach((function(e){var t=s[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach((function(e){var s=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:o[e]).reduce((function(e,t){return e[t]="",e}),{});(0,r.isHTMLElement)(s)&&(0,n.default)(s)&&(Object.assign(s.style,a),Object.keys(i).forEach((function(e){s.removeAttribute(e)})))}))}},requires:["computeStyles"]}},"./node_modules/@popperjs/core/lib/modifiers/arrow.js":function(e,t,o){"use strict";o.r(t);var n=o("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"),r=o("./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js"),s=o("./node_modules/@popperjs/core/lib/dom-utils/contains.js"),i=o("./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js"),a=o("./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js"),l=o("./node_modules/@popperjs/core/lib/utils/within.js"),u=o("./node_modules/@popperjs/core/lib/utils/mergePaddingObject.js"),d=o("./node_modules/@popperjs/core/lib/utils/expandToHashMap.js"),c=o("./node_modules/@popperjs/core/lib/enums.js"),p=o("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");t.default={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,o=e.state,s=e.name,p=e.options,f=o.elements.arrow,m=o.modifiersData.popperOffsets,h=(0,n.default)(o.placement),_=(0,a.default)(h),b=[c.left,c.right].indexOf(h)>=0?"height":"width";if(f&&m){var j=function(e,t){return e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,(0,u.default)("number"!=typeof e?e:(0,d.default)(e,c.basePlacements))}(p.padding,o),v=(0,r.default)(f),y="y"===_?c.top:c.left,g="y"===_?c.bottom:c.right,w=o.rects.reference[b]+o.rects.reference[_]-m[_]-o.rects.popper[b],O=m[_]-o.rects.reference[_],x=(0,i.default)(f),E=x?"y"===_?x.clientHeight||0:x.clientWidth||0:0,L=w/2-O/2,S=j[y],P=E-v[b]-j[g],A=E/2-v[b]/2+L,C=(0,l.within)(S,A,P),k=_;o.modifiersData[s]=((t={})[k]=C,t.centerOffset=C-A,t)}},effect:function(e){var t=e.state,o=e.options.element,n=void 0===o?"[data-popper-arrow]":o;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&((0,p.isHTMLElement)(n)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" ")),(0,s.default)(t.elements.popper,n)?t.elements.arrow=n:console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" ")))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},"./node_modules/@popperjs/core/lib/modifiers/computeStyles.js":function(e,t,o){"use strict";o.r(t),o.d(t,{mapToStyles:function(){return p}});var n=o("./node_modules/@popperjs/core/lib/enums.js"),r=o("./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js"),s=o("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"),i=o("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),a=o("./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js"),l=o("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"),u=o("./node_modules/@popperjs/core/lib/utils/getVariation.js"),d=o("./node_modules/@popperjs/core/lib/utils/math.js"),c={top:"auto",right:"auto",bottom:"auto",left:"auto"};function p(e){var t,o=e.popper,l=e.popperRect,u=e.placement,p=e.variation,f=e.offsets,m=e.position,h=e.gpuAcceleration,_=e.adaptive,b=e.roundOffsets,j=e.isFixed,v=f.x,y=void 0===v?0:v,g=f.y,w=void 0===g?0:g,O="function"==typeof b?b({x:y,y:w}):{x:y,y:w};y=O.x,w=O.y;var x=f.hasOwnProperty("x"),E=f.hasOwnProperty("y"),L=n.left,S=n.top,P=window;if(_){var A=(0,r.default)(o),C="clientHeight",k="clientWidth";if(A===(0,s.default)(o)&&(A=(0,i.default)(o),"static"!==(0,a.default)(A).position&&"absolute"===m&&(C="scrollHeight",k="scrollWidth")),u===n.top||(u===n.left||u===n.right)&&p===n.end)S=n.bottom,w-=(j&&A===P&&P.visualViewport?P.visualViewport.height:A[C])-l.height,w*=h?1:-1;if(u===n.left||(u===n.top||u===n.bottom)&&p===n.end)L=n.right,y-=(j&&A===P&&P.visualViewport?P.visualViewport.width:A[k])-l.width,y*=h?1:-1}var T,M=Object.assign({position:m},_&&c),D=!0===b?function(e){var t=e.x,o=e.y,n=window.devicePixelRatio||1;return{x:(0,d.round)(t*n)/n||0,y:(0,d.round)(o*n)/n||0}}({x:y,y:w}):{x:y,y:w};return y=D.x,w=D.y,h?Object.assign({},M,((T={})[S]=E?"0":"",T[L]=x?"0":"",T.transform=(P.devicePixelRatio||1)<=1?"translate("+y+"px, "+w+"px)":"translate3d("+y+"px, "+w+"px, 0)",T)):Object.assign({},M,((t={})[S]=E?w+"px":"",t[L]=x?y+"px":"",t.transform="",t))}t.default={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,o=e.options,n=o.gpuAcceleration,r=void 0===n||n,s=o.adaptive,i=void 0===s||s,d=o.roundOffsets,c=void 0===d||d,f=(0,a.default)(t.elements.popper).transitionProperty||"";i&&["transform","top","right","bottom","left"].some((function(e){return f.indexOf(e)>=0}))&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "));var m={placement:(0,l.default)(t.placement),variation:(0,u.default)(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,p(Object.assign({},m,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,p(Object.assign({},m,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}}},"./node_modules/@popperjs/core/lib/modifiers/eventListeners.js":function(e,t,o){"use strict";o.r(t);var n=o("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"),r={passive:!0};t.default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,o=e.instance,s=e.options,i=s.scroll,a=void 0===i||i,l=s.resize,u=void 0===l||l,d=(0,n.default)(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",o.update,r)})),u&&d.addEventListener("resize",o.update,r),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",o.update,r)})),u&&d.removeEventListener("resize",o.update,r)}},data:{}}},"./node_modules/@popperjs/core/lib/modifiers/flip.js":function(e,t,o){"use strict";o.r(t);var n=o("./node_modules/@popperjs/core/lib/utils/getOppositePlacement.js"),r=o("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"),s=o("./node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js"),i=o("./node_modules/@popperjs/core/lib/utils/detectOverflow.js"),a=o("./node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js"),l=o("./node_modules/@popperjs/core/lib/enums.js"),u=o("./node_modules/@popperjs/core/lib/utils/getVariation.js");t.default={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,o=e.options,d=e.name;if(!t.modifiersData[d]._skip){for(var c=o.mainAxis,p=void 0===c||c,f=o.altAxis,m=void 0===f||f,h=o.fallbackPlacements,_=o.padding,b=o.boundary,j=o.rootBoundary,v=o.altBoundary,y=o.flipVariations,g=void 0===y||y,w=o.allowedAutoPlacements,O=t.options.placement,x=(0,r.default)(O),E=h||(x===O||!g?[(0,n.default)(O)]:function(e){if((0,r.default)(e)===l.auto)return[];var t=(0,n.default)(e);return[(0,s.default)(e),t,(0,s.default)(t)]}(O)),L=[O].concat(E).reduce((function(e,o){return e.concat((0,r.default)(o)===l.auto?(0,a.default)(t,{placement:o,boundary:b,rootBoundary:j,padding:_,flipVariations:g,allowedAutoPlacements:w}):o)}),[]),S=t.rects.reference,P=t.rects.popper,A=new Map,C=!0,k=L[0],T=0;T=0,B=I?"width":"height",N=(0,i.default)(t,{placement:M,boundary:b,rootBoundary:j,altBoundary:v,padding:_}),W=I?R?l.right:l.left:R?l.bottom:l.top;S[B]>P[B]&&(W=(0,n.default)(W));var H=(0,n.default)(W),F=[];if(p&&F.push(N[D]<=0),m&&F.push(N[W]<=0,N[H]<=0),F.every((function(e){return e}))){k=M,C=!1;break}A.set(M,F)}if(C)for(var V=function(e){var t=L.find((function(t){var o=A.get(t);if(o)return o.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},Z=g?3:1;Z>0;Z--){if("break"===V(Z))break}t.placement!==k&&(t.modifiersData[d]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}}},"./node_modules/@popperjs/core/lib/modifiers/hide.js":function(e,t,o){"use strict";o.r(t);var n=o("./node_modules/@popperjs/core/lib/enums.js"),r=o("./node_modules/@popperjs/core/lib/utils/detectOverflow.js");function s(e,t,o){return void 0===o&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function i(e){return[n.top,n.right,n.bottom,n.left].some((function(t){return e[t]>=0}))}t.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,o=e.name,n=t.rects.reference,a=t.rects.popper,l=t.modifiersData.preventOverflow,u=(0,r.default)(t,{elementContext:"reference"}),d=(0,r.default)(t,{altBoundary:!0}),c=s(u,n),p=s(d,a,l),f=i(c),m=i(p);t.modifiersData[o]={referenceClippingOffsets:c,popperEscapeOffsets:p,isReferenceHidden:f,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":m})}}},"./node_modules/@popperjs/core/lib/modifiers/index.js":function(e,t,o){"use strict";o.r(t),o.d(t,{applyStyles:function(){return n.default},arrow:function(){return r.default},computeStyles:function(){return s.default},eventListeners:function(){return i.default},flip:function(){return a.default},hide:function(){return l.default},offset:function(){return u.default},popperOffsets:function(){return d.default},preventOverflow:function(){return c.default}});var n=o("./node_modules/@popperjs/core/lib/modifiers/applyStyles.js"),r=o("./node_modules/@popperjs/core/lib/modifiers/arrow.js"),s=o("./node_modules/@popperjs/core/lib/modifiers/computeStyles.js"),i=o("./node_modules/@popperjs/core/lib/modifiers/eventListeners.js"),a=o("./node_modules/@popperjs/core/lib/modifiers/flip.js"),l=o("./node_modules/@popperjs/core/lib/modifiers/hide.js"),u=o("./node_modules/@popperjs/core/lib/modifiers/offset.js"),d=o("./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js"),c=o("./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js")},"./node_modules/@popperjs/core/lib/modifiers/offset.js":function(e,t,o){"use strict";o.r(t),o.d(t,{distanceAndSkiddingToXY:function(){return s}});var n=o("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"),r=o("./node_modules/@popperjs/core/lib/enums.js");function s(e,t,o){var s=(0,n.default)(e),i=[r.left,r.top].indexOf(s)>=0?-1:1,a="function"==typeof o?o(Object.assign({},t,{placement:e})):o,l=a[0],u=a[1];return l=l||0,u=(u||0)*i,[r.left,r.right].indexOf(s)>=0?{x:u,y:l}:{x:l,y:u}}t.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,o=e.options,n=e.name,i=o.offset,a=void 0===i?[0,0]:i,l=r.placements.reduce((function(e,o){return e[o]=s(o,t.rects,a),e}),{}),u=l[t.placement],d=u.x,c=u.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=l}}},"./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js":function(e,t,o){"use strict";o.r(t);var n=o("./node_modules/@popperjs/core/lib/utils/computeOffsets.js");t.default={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,o=e.name;t.modifiersData[o]=(0,n.default)({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}}},"./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js":function(e,t,o){"use strict";o.r(t);var n=o("./node_modules/@popperjs/core/lib/enums.js"),r=o("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"),s=o("./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js"),i=o("./node_modules/@popperjs/core/lib/utils/getAltAxis.js"),a=o("./node_modules/@popperjs/core/lib/utils/within.js"),l=o("./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js"),u=o("./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js"),d=o("./node_modules/@popperjs/core/lib/utils/detectOverflow.js"),c=o("./node_modules/@popperjs/core/lib/utils/getVariation.js"),p=o("./node_modules/@popperjs/core/lib/utils/getFreshSideObject.js"),f=o("./node_modules/@popperjs/core/lib/utils/math.js");t.default={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,o=e.options,m=e.name,h=o.mainAxis,_=void 0===h||h,b=o.altAxis,j=void 0!==b&&b,v=o.boundary,y=o.rootBoundary,g=o.altBoundary,w=o.padding,O=o.tether,x=void 0===O||O,E=o.tetherOffset,L=void 0===E?0:E,S=(0,d.default)(t,{boundary:v,rootBoundary:y,padding:w,altBoundary:g}),P=(0,r.default)(t.placement),A=(0,c.default)(t.placement),C=!A,k=(0,s.default)(P),T=(0,i.default)(k),M=t.modifiersData.popperOffsets,D=t.rects.reference,R=t.rects.popper,I="function"==typeof L?L(Object.assign({},t.rects,{placement:t.placement})):L,B="number"==typeof I?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,W={x:0,y:0};if(M){if(_){var H,F="y"===k?n.top:n.left,V="y"===k?n.bottom:n.right,Z="y"===k?"height":"width",G=M[k],U=G+S[F],q=G-S[V],z=x?-R[Z]/2:0,$=A===n.start?D[Z]:R[Z],Y=A===n.start?-R[Z]:-D[Z],X=t.elements.arrow,K=x&&X?(0,l.default)(X):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:(0,p.default)(),Q=J[F],ee=J[V],te=(0,a.within)(0,D[Z],K[Z]),oe=C?D[Z]/2-z-te-Q-B.mainAxis:$-te-Q-B.mainAxis,ne=C?-D[Z]/2+z+te+ee+B.mainAxis:Y+te+ee+B.mainAxis,re=t.elements.arrow&&(0,u.default)(t.elements.arrow),se=re?"y"===k?re.clientTop||0:re.clientLeft||0:0,ie=null!=(H=null==N?void 0:N[k])?H:0,ae=G+oe-ie-se,le=G+ne-ie,ue=(0,a.within)(x?(0,f.min)(U,ae):U,G,x?(0,f.max)(q,le):q);M[k]=ue,W[k]=ue-G}if(j){var de,ce="x"===k?n.top:n.left,pe="x"===k?n.bottom:n.right,fe=M[T],me="y"===T?"height":"width",he=fe+S[ce],_e=fe-S[pe],be=-1!==[n.top,n.left].indexOf(P),je=null!=(de=null==N?void 0:N[T])?de:0,ve=be?he:fe-D[me]-R[me]-je+B.altAxis,ye=be?fe+D[me]+R[me]-je-B.altAxis:_e,ge=x&&be?(0,a.withinMaxClamp)(ve,fe,ye):(0,a.within)(x?ve:he,fe,x?ye:_e);M[T]=ge,W[T]=ge-fe}t.modifiersData[m]=W}},requiresIfExists:["offset"]}},"./node_modules/@popperjs/core/lib/popper-lite.js":function(e,t,o){"use strict";o.r(t),o.d(t,{createPopper:function(){return d},defaultModifiers:function(){return u},detectOverflow:function(){return r.default},popperGenerator:function(){return n.popperGenerator}});var n=o("./node_modules/@popperjs/core/lib/createPopper.js"),r=o("./node_modules/@popperjs/core/lib/utils/detectOverflow.js"),s=o("./node_modules/@popperjs/core/lib/modifiers/eventListeners.js"),i=o("./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js"),a=o("./node_modules/@popperjs/core/lib/modifiers/computeStyles.js"),l=o("./node_modules/@popperjs/core/lib/modifiers/applyStyles.js"),u=[s.default,i.default,a.default,l.default],d=(0,n.popperGenerator)({defaultModifiers:u})},"./node_modules/@popperjs/core/lib/popper.js":function(e,t,o){"use strict";o.r(t),o.d(t,{applyStyles:function(){return h.applyStyles},arrow:function(){return h.arrow},computeStyles:function(){return h.computeStyles},createPopper:function(){return b},createPopperLite:function(){return m.createPopper},defaultModifiers:function(){return _},detectOverflow:function(){return r.default},eventListeners:function(){return h.eventListeners},flip:function(){return h.flip},hide:function(){return h.hide},offset:function(){return h.offset},popperGenerator:function(){return n.popperGenerator},popperOffsets:function(){return h.popperOffsets},preventOverflow:function(){return h.preventOverflow}});var n=o("./node_modules/@popperjs/core/lib/createPopper.js"),r=o("./node_modules/@popperjs/core/lib/utils/detectOverflow.js"),s=o("./node_modules/@popperjs/core/lib/modifiers/eventListeners.js"),i=o("./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js"),a=o("./node_modules/@popperjs/core/lib/modifiers/computeStyles.js"),l=o("./node_modules/@popperjs/core/lib/modifiers/applyStyles.js"),u=o("./node_modules/@popperjs/core/lib/modifiers/offset.js"),d=o("./node_modules/@popperjs/core/lib/modifiers/flip.js"),c=o("./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js"),p=o("./node_modules/@popperjs/core/lib/modifiers/arrow.js"),f=o("./node_modules/@popperjs/core/lib/modifiers/hide.js"),m=o("./node_modules/@popperjs/core/lib/popper-lite.js"),h=o("./node_modules/@popperjs/core/lib/modifiers/index.js"),_=[s.default,i.default,a.default,l.default,u.default,d.default,c.default,p.default,f.default],b=(0,n.popperGenerator)({defaultModifiers:_})},"./node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return a}});var n=o("./node_modules/@popperjs/core/lib/utils/getVariation.js"),r=o("./node_modules/@popperjs/core/lib/enums.js"),s=o("./node_modules/@popperjs/core/lib/utils/detectOverflow.js"),i=o("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js");function a(e,t){void 0===t&&(t={});var o=t,a=o.placement,l=o.boundary,u=o.rootBoundary,d=o.padding,c=o.flipVariations,p=o.allowedAutoPlacements,f=void 0===p?r.placements:p,m=(0,n.default)(a),h=m?c?r.variationPlacements:r.variationPlacements.filter((function(e){return(0,n.default)(e)===m})):r.basePlacements,_=h.filter((function(e){return f.indexOf(e)>=0}));0===_.length&&(_=h,console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var b=_.reduce((function(t,o){return t[o]=(0,s.default)(e,{placement:o,boundary:l,rootBoundary:u,padding:d})[(0,i.default)(o)],t}),{});return Object.keys(b).sort((function(e,t){return b[e]-b[t]}))}},"./node_modules/@popperjs/core/lib/utils/computeOffsets.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return a}});var n=o("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"),r=o("./node_modules/@popperjs/core/lib/utils/getVariation.js"),s=o("./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js"),i=o("./node_modules/@popperjs/core/lib/enums.js");function a(e){var t,o=e.reference,a=e.element,l=e.placement,u=l?(0,n.default)(l):null,d=l?(0,r.default)(l):null,c=o.x+o.width/2-a.width/2,p=o.y+o.height/2-a.height/2;switch(u){case i.top:t={x:c,y:o.y-a.height};break;case i.bottom:t={x:c,y:o.y+o.height};break;case i.right:t={x:o.x+o.width,y:p};break;case i.left:t={x:o.x-a.width,y:p};break;default:t={x:o.x,y:o.y}}var f=u?(0,s.default)(u):null;if(null!=f){var m="y"===f?"height":"width";switch(d){case i.start:t[f]=t[f]-(o[m]/2-a[m]/2);break;case i.end:t[f]=t[f]+(o[m]/2-a[m]/2)}}return t}},"./node_modules/@popperjs/core/lib/utils/debounce.js":function(e,t,o){"use strict";function n(e){var t;return function(){return t||(t=new Promise((function(o){Promise.resolve().then((function(){t=void 0,o(e())}))}))),t}}o.r(t),o.d(t,{default:function(){return n}})},"./node_modules/@popperjs/core/lib/utils/detectOverflow.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return p}});var n=o("./node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js"),r=o("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),s=o("./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js"),i=o("./node_modules/@popperjs/core/lib/utils/computeOffsets.js"),a=o("./node_modules/@popperjs/core/lib/utils/rectToClientRect.js"),l=o("./node_modules/@popperjs/core/lib/enums.js"),u=o("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"),d=o("./node_modules/@popperjs/core/lib/utils/mergePaddingObject.js"),c=o("./node_modules/@popperjs/core/lib/utils/expandToHashMap.js");function p(e,t){void 0===t&&(t={});var o=t,p=o.placement,f=void 0===p?e.placement:p,m=o.strategy,h=void 0===m?e.strategy:m,_=o.boundary,b=void 0===_?l.clippingParents:_,j=o.rootBoundary,v=void 0===j?l.viewport:j,y=o.elementContext,g=void 0===y?l.popper:y,w=o.altBoundary,O=void 0!==w&&w,x=o.padding,E=void 0===x?0:x,L=(0,d.default)("number"!=typeof E?E:(0,c.default)(E,l.basePlacements)),S=g===l.popper?l.reference:l.popper,P=e.rects.popper,A=e.elements[O?S:g],C=(0,n.default)((0,u.isElement)(A)?A:A.contextElement||(0,r.default)(e.elements.popper),b,v,h),k=(0,s.default)(e.elements.reference),T=(0,i.default)({reference:k,element:P,strategy:"absolute",placement:f}),M=(0,a.default)(Object.assign({},P,T)),D=g===l.popper?M:k,R={top:C.top-D.top+L.top,bottom:D.bottom-C.bottom+L.bottom,left:C.left-D.left+L.left,right:D.right-C.right+L.right},I=e.modifiersData.offset;if(g===l.popper&&I){var B=I[f];Object.keys(R).forEach((function(e){var t=[l.right,l.bottom].indexOf(e)>=0?1:-1,o=[l.top,l.bottom].indexOf(e)>=0?"y":"x";R[e]+=B[o]*t}))}return R}},"./node_modules/@popperjs/core/lib/utils/expandToHashMap.js":function(e,t,o){"use strict";function n(e,t){return t.reduce((function(t,o){return t[o]=e,t}),{})}o.r(t),o.d(t,{default:function(){return n}})},"./node_modules/@popperjs/core/lib/utils/format.js":function(e,t,o){"use strict";function n(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),n=1;n=0?"x":"y"}o.r(t),o.d(t,{default:function(){return n}})},"./node_modules/@popperjs/core/lib/utils/getOppositePlacement.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return r}});var n={left:"right",right:"left",bottom:"top",top:"bottom"};function r(e){return e.replace(/left|right|bottom|top/g,(function(e){return n[e]}))}},"./node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return r}});var n={start:"end",end:"start"};function r(e){return e.replace(/start|end/g,(function(e){return n[e]}))}},"./node_modules/@popperjs/core/lib/utils/getVariation.js":function(e,t,o){"use strict";function n(e){return e.split("-")[1]}o.r(t),o.d(t,{default:function(){return n}})},"./node_modules/@popperjs/core/lib/utils/math.js":function(e,t,o){"use strict";o.r(t),o.d(t,{max:function(){return n},min:function(){return r},round:function(){return s}});var n=Math.max,r=Math.min,s=Math.round},"./node_modules/@popperjs/core/lib/utils/mergeByName.js":function(e,t,o){"use strict";function n(e){var t=e.reduce((function(e,t){var o=e[t.name];return e[t.name]=o?Object.assign({},o,t,{options:Object.assign({},o.options,t.options),data:Object.assign({},o.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}o.r(t),o.d(t,{default:function(){return n}})},"./node_modules/@popperjs/core/lib/utils/mergePaddingObject.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return r}});var n=o("./node_modules/@popperjs/core/lib/utils/getFreshSideObject.js");function r(e){return Object.assign({},(0,n.default)(),e)}},"./node_modules/@popperjs/core/lib/utils/orderModifiers.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return s}});var n=o("./node_modules/@popperjs/core/lib/enums.js");function r(e){var t=new Map,o=new Set,n=[];function r(e){o.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!o.has(e)){var n=t.get(e);n&&r(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){o.has(e.name)||r(e)})),n}function s(e){var t=r(e);return n.modifierPhases.reduce((function(e,o){return e.concat(t.filter((function(e){return e.phase===o})))}),[])}},"./node_modules/@popperjs/core/lib/utils/rectToClientRect.js":function(e,t,o){"use strict";function n(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}o.r(t),o.d(t,{default:function(){return n}})},"./node_modules/@popperjs/core/lib/utils/uniqueBy.js":function(e,t,o){"use strict";function n(e,t){var o=new Set;return e.filter((function(e){var n=t(e);if(!o.has(n))return o.add(n),!0}))}o.r(t),o.d(t,{default:function(){return n}})},"./node_modules/@popperjs/core/lib/utils/userAgent.js":function(e,t,o){"use strict";function n(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}o.r(t),o.d(t,{default:function(){return n}})},"./node_modules/@popperjs/core/lib/utils/validateModifiers.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return l}});var n=o("./node_modules/@popperjs/core/lib/utils/format.js"),r=o("./node_modules/@popperjs/core/lib/enums.js"),s='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',i='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',a=["name","enabled","phase","fn","effect","requires","options"];function l(e){e.forEach((function(t){[].concat(Object.keys(t),a).filter((function(e,t,o){return o.indexOf(e)===t})).forEach((function(o){switch(o){case"name":"string"!=typeof t.name&&console.error((0,n.default)(s,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error((0,n.default)(s,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":r.modifierPhases.indexOf(t.phase)<0&&console.error((0,n.default)(s,t.name,'"phase"',"either "+r.modifierPhases.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error((0,n.default)(s,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":null!=t.effect&&"function"!=typeof t.effect&&console.error((0,n.default)(s,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":null==t.requires||Array.isArray(t.requires)||console.error((0,n.default)(s,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error((0,n.default)(s,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+a.map((function(e){return'"'+e+'"'})).join(", ")+'; but "'+o+'" was provided.')}t.requires&&t.requires.forEach((function(o){null==e.find((function(e){return e.name===o}))&&console.error((0,n.default)(i,String(t.name),o,o))}))}))}))}},"./node_modules/@popperjs/core/lib/utils/within.js":function(e,t,o){"use strict";o.r(t),o.d(t,{within:function(){return r},withinMaxClamp:function(){return s}});var n=o("./node_modules/@popperjs/core/lib/utils/math.js");function r(e,t,o){return(0,n.max)(e,(0,n.min)(t,o))}function s(e,t,o){var n=r(e,t,o);return n>o?o:n}},"./node_modules/@tippyjs/react/dist/tippy-react.esm.js":function(e,t,o){"use strict";o.r(t),o.d(t,{tippy:function(){return n.default},useSingleton:function(){return g}});var n=o("./node_modules/tippy.js/dist/tippy.esm.js"),r=o("react"),s=o.n(r),i=o("react-dom");function a(e,t){if(null==e)return{};var o,n,r={},s=Object.keys(e);for(n=0;n=0||(r[o]=e[o]);return r}var l="undefined"!=typeof window&&"undefined"!=typeof document;function u(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function d(){return l&&document.createElement("div")}function c(e,t){if(e===t)return!0;if("object"==typeof e&&null!=e&&"object"==typeof t&&null!=t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var o in e){if(!t.hasOwnProperty(o))return!1;if(!c(e[o],t[o]))return!1}return!0}return!1}function p(e){var t=[];return e.forEach((function(e){t.find((function(t){return c(e,t)}))||t.push(e)})),t}function f(e,t){var o,n;return Object.assign({},t,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:p([].concat((null==(o=e.popperOptions)?void 0:o.modifiers)||[],(null==(n=t.popperOptions)?void 0:n.modifiers)||[]))})})}var m=l?r.useLayoutEffect:r.useEffect;function h(e){var t=(0,r.useRef)();return t.current||(t.current="function"==typeof e?e():e),t.current}function _(e,t,o){o.split(/\s+/).forEach((function(o){o&&e.classList[t](o)}))}var b={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,o=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function n(){!e.props.className||o()?_(t,"add",e.props.className):console.warn(["@tippyjs/react: Cannot use `className` prop in conjunction with","`render` prop. Place the className on the element you are","rendering."].join(" "))}return{onCreate:n,onBeforeUpdate:function(){o()&&_(t,"remove",e.props.className)},onAfterUpdate:n}}};function j(e){return function(t){var o=t.children,n=t.content,l=t.visible,c=t.singleton,p=t.render,_=t.reference,j=t.disabled,v=void 0!==j&&j,y=t.ignoreAttributes,g=void 0===y||y,w=(t.__source,t.__self,a(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),O=void 0!==l,x=void 0!==c,E=(0,r.useState)(!1),L=E[0],S=E[1],P=(0,r.useState)({}),A=P[0],C=P[1],k=(0,r.useState)(),T=k[0],M=k[1],D=h((function(){return{container:d(),renders:1}})),R=Object.assign({ignoreAttributes:g},w,{content:D.container});O&&(["trigger","hideOnClick","showOnCreate"].forEach((function(e){void 0!==R[e]&&console.warn(["@tippyjs/react: Cannot specify `"+e+"` prop in","controlled mode (`visible` prop)"].join(" "))})),R.trigger="manual",R.hideOnClick=!1),x&&(v=!0);var I=R,B=R.plugins||[];p&&(I=Object.assign({},R,{plugins:x&&null!=c.data?[].concat(B,[{fn:function(){return{onTrigger:function(e,t){var o=c.data.children.find((function(e){return e.instance.reference===t.currentTarget}));e.state.$$activeSingletonInstance=o.instance,M(o.content)}}}}]):B,render:function(){return{popper:D.container}}}));var N=[_].concat(o?[o.type]:[]);return m((function(){var t=_;_&&_.hasOwnProperty("current")&&(t=_.current);var o=e(t||D.ref||d(),Object.assign({},I,{plugins:[b].concat(R.plugins||[])}));return D.instance=o,v&&o.disable(),l&&o.show(),x&&c.hook({instance:o,content:n,props:I,setSingletonContent:M}),S(!0),function(){o.destroy(),null==c||c.cleanup(o)}}),N),m((function(){var e;if(1!==D.renders){var t=D.instance;t.setProps(f(t.props,I)),null==(e=t.popperInstance)||e.forceUpdate(),v?t.disable():t.enable(),O&&(l?t.show():t.hide()),x&&c.hook({instance:t,content:n,props:I,setSingletonContent:M})}else D.renders++})),m((function(){var e;if(p){var t=D.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter((function(e){return"$$tippyReact"!==e.name})),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,o=e.state,n=null==(t=o.modifiersData)?void 0:t.hide;A.placement===o.placement&&A.referenceHidden===(null==n?void 0:n.isReferenceHidden)&&A.escaped===(null==n?void 0:n.hasPopperEscaped)||C({placement:o.placement,referenceHidden:null==n?void 0:n.isReferenceHidden,escaped:null==n?void 0:n.hasPopperEscaped}),o.attributes.popper={}}}])})})}}),[A.placement,A.referenceHidden,A.escaped].concat(N)),s().createElement(s().Fragment,null,o?(0,r.cloneElement)(o,{ref:function(e){D.ref=e,u(o.ref,e)}}):null,L&&(0,i.createPortal)(p?p(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(A),T,D.instance):n,D.container))}}function v(e){return function(t){var o=void 0===t?{}:t,n=o.disabled,s=void 0!==n&&n,i=o.overrides,l=void 0===i?[]:i,u=(0,r.useState)(!1),d=u[0],c=u[1],p=h({children:[],renders:1});return m((function(){if(d){var t=p.children,o=p.sourceData;if(o){var n=e(t.map((function(e){return e.instance})),Object.assign({},o.props,{popperOptions:o.instance.props.popperOptions,overrides:l,plugins:[b].concat(o.props.plugins||[])}));return p.instance=n,s&&n.disable(),function(){n.destroy(),p.children=t.filter((function(e){return!e.instance.state.isDestroyed}))}}console.error(["@tippyjs/react: The `source` variable from `useSingleton()` has","not been passed to a component."].join(" "))}else c(!0)}),[d]),m((function(){if(d)if(1!==p.renders){var e=p.children,t=p.instance,o=p.sourceData;if(t&&o){var n=o.props,r=(n.content,a(n,["content"]));t.setProps(f(t.props,Object.assign({},r,{overrides:l}))),t.setInstances(e.map((function(e){return e.instance}))),s?t.disable():t.enable()}}else p.renders++})),(0,r.useMemo)((function(){return[{data:p,hook:function(e){p.sourceData=e,p.setSingletonContent=e.setSingletonContent},cleanup:function(){p.sourceData=null}},{hook:function(e){var t,o;p.children=p.children.filter((function(t){var o=t.instance;return e.instance!==o})),p.children.push(e),(null==(t=p.instance)?void 0:t.state.isMounted)&&(null==(o=p.instance)?void 0:o.state.$$activeSingletonInstance)===e.instance&&(null==p.setSingletonContent||p.setSingletonContent(e.content)),p.instance&&!p.instance.state.isDestroyed&&p.instance.setInstances(p.children.map((function(e){return e.instance})))},cleanup:function(e){p.children=p.children.filter((function(t){return t.instance!==e})),p.instance&&!p.instance.state.isDestroyed&&p.instance.setInstances(p.children.map((function(e){return e.instance})))}}]}),[])}}var y=function(e,t){return(0,r.forwardRef)((function(o,n){var i=o.children,l=a(o,["children"]);return s().createElement(e,Object.assign({},t,l),i?(0,r.cloneElement)(i,{ref:function(e){u(n,e),u(i.ref,e)}}):null)}))},g=v(n.createSingleton),w=y(j(n.default));t.default=w},"./src/css/gallery.scss":function(e,t,o){"use strict";o.r(t)},"./src/js/gallery-block/controls.js":function(e,t,o){"use strict";o.r(t);var n=o("./node_modules/@babel/runtime/helpers/esm/typeof.js"),r=o("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),s=o("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),i=o("react"),a=o.n(i),l=o("./node_modules/dot-object/index.js"),u=o.n(l),d=o("@wordpress/i18n"),c=o("./node_modules/lodash/cloneDeep.js"),p=o.n(c),f=o("./node_modules/@tippyjs/react/dist/tippy-react.esm.js"),m=(o("@wordpress/components/build-style/style.css"),o("@wordpress/components")),h=o("@wordpress/block-editor"),_=o("./src/js/gallery-block/options.js"),b=o("./src/js/gallery-block/radio.js"),j=o("./src/js/gallery-block/utils.js");function v(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function y(e){for(var t=1;t=0&&(e=e.replace(/\[/g,t).replace(/]/g,""));var o=e.split(t);if(o.filter(a).length!==o.length)throw Error("Refusing to update blacklisted property "+e);return o}var u=Object.prototype.hasOwnProperty;function d(e,t,o,n){if(!(this instanceof d))return new d(e,t,o,n);void 0===t&&(t=!1),void 0===o&&(o=!0),void 0===n&&(n=!0),this.separator=e||".",this.override=t,this.useArray=o,this.useBrackets=n,this.keepArray=!1,this.cleanup=[]}var c=new d(".",!1,!0,!0);function p(e){return function(){return c[e].apply(c,arguments)}}d.prototype._fill=function(e,o,n,i){var a=e.shift();if(e.length>0){if(o[a]=o[a]||(this.useArray&&function(e){return/^\d+$/.test(e)}(e[0])?[]:{}),!r(o[a])){if(!this.override){if(!r(n)||!s(n))throw new Error("Trying to redefine `"+a+"` which is a "+typeof o[a]);return}o[a]={}}this._fill(e,o[a],n,i)}else{if(!this.override&&r(o[a])&&!s(o[a])){if(!r(n)||!s(n))throw new Error("Trying to redefine non-empty obj['"+a+"']");return}o[a]=t(n,i)}},d.prototype.object=function(e,o){var n=this;return Object.keys(e).forEach((function(r){var s=void 0===o?null:o[r],i=l(r,n.separator).join(n.separator);-1!==i.indexOf(n.separator)?(n._fill(i.split(n.separator),e,e[r],s),delete e[r]):e[r]=t(e[r],s)})),e},d.prototype.str=function(e,o,n,r){var s=l(e,this.separator).join(this.separator);return-1!==e.indexOf(this.separator)?this._fill(s.split(this.separator),n,o,r):n[e]=t(o,r),n},d.prototype.pick=function(e,t,n,r){var s,i,a,u,d;for(i=l(e,this.separator),s=0;s-1&&e%1==0&&e-1}},"./node_modules/lodash/_listCacheSet.js":function(e,t,o){var n=o("./node_modules/lodash/_assocIndexOf.js");e.exports=function(e,t){var o=this.__data__,r=n(o,e);return r<0?(++this.size,o.push([e,t])):o[r][1]=t,this}},"./node_modules/lodash/_mapCacheClear.js":function(e,t,o){var n=o("./node_modules/lodash/_Hash.js"),r=o("./node_modules/lodash/_ListCache.js"),s=o("./node_modules/lodash/_Map.js");e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(s||r),string:new n}}},"./node_modules/lodash/_mapCacheDelete.js":function(e,t,o){var n=o("./node_modules/lodash/_getMapData.js");e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},"./node_modules/lodash/_mapCacheGet.js":function(e,t,o){var n=o("./node_modules/lodash/_getMapData.js");e.exports=function(e){return n(this,e).get(e)}},"./node_modules/lodash/_mapCacheHas.js":function(e,t,o){var n=o("./node_modules/lodash/_getMapData.js");e.exports=function(e){return n(this,e).has(e)}},"./node_modules/lodash/_mapCacheSet.js":function(e,t,o){var n=o("./node_modules/lodash/_getMapData.js");e.exports=function(e,t){var o=n(this,e),r=o.size;return o.set(e,t),this.size+=o.size==r?0:1,this}},"./node_modules/lodash/_nativeCreate.js":function(e,t,o){var n=o("./node_modules/lodash/_getNative.js")(Object,"create");e.exports=n},"./node_modules/lodash/_nativeKeys.js":function(e,t,o){var n=o("./node_modules/lodash/_overArg.js")(Object.keys,Object);e.exports=n},"./node_modules/lodash/_nativeKeysIn.js":function(e){e.exports=function(e){var t=[];if(null!=e)for(var o in Object(e))t.push(o);return t}},"./node_modules/lodash/_nodeUtil.js":function(e,t,o){e=o.nmd(e);var n=o("./node_modules/lodash/_freeGlobal.js"),r=t&&!t.nodeType&&t,s=r&&e&&!e.nodeType&&e,i=s&&s.exports===r&&n.process,a=function(){try{var e=s&&s.require&&s.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a},"./node_modules/lodash/_objectToString.js":function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},"./node_modules/lodash/_overArg.js":function(e){e.exports=function(e,t){return function(o){return e(t(o))}}},"./node_modules/lodash/_root.js":function(e,t,o){var n=o("./node_modules/lodash/_freeGlobal.js"),r="object"==typeof self&&self&&self.Object===Object&&self,s=n||r||Function("return this")();e.exports=s},"./node_modules/lodash/_stackClear.js":function(e,t,o){var n=o("./node_modules/lodash/_ListCache.js");e.exports=function(){this.__data__=new n,this.size=0}},"./node_modules/lodash/_stackDelete.js":function(e){e.exports=function(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}},"./node_modules/lodash/_stackGet.js":function(e){e.exports=function(e){return this.__data__.get(e)}},"./node_modules/lodash/_stackHas.js":function(e){e.exports=function(e){return this.__data__.has(e)}},"./node_modules/lodash/_stackSet.js":function(e,t,o){var n=o("./node_modules/lodash/_ListCache.js"),r=o("./node_modules/lodash/_Map.js"),s=o("./node_modules/lodash/_MapCache.js");e.exports=function(e,t){var o=this.__data__;if(o instanceof n){var i=o.__data__;if(!r||i.length<199)return i.push([e,t]),this.size=++o.size,this;o=this.__data__=new s(i)}return o.set(e,t),this.size=o.size,this}},"./node_modules/lodash/_toSource.js":function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},"./node_modules/lodash/cloneDeep.js":function(e,t,o){var n=o("./node_modules/lodash/_baseClone.js");e.exports=function(e){return n(e,5)}},"./node_modules/lodash/eq.js":function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},"./node_modules/lodash/isArguments.js":function(e,t,o){var n=o("./node_modules/lodash/_baseIsArguments.js"),r=o("./node_modules/lodash/isObjectLike.js"),s=Object.prototype,i=s.hasOwnProperty,a=s.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return r(e)&&i.call(e,"callee")&&!a.call(e,"callee")};e.exports=l},"./node_modules/lodash/isArray.js":function(e){var t=Array.isArray;e.exports=t},"./node_modules/lodash/isArrayLike.js":function(e,t,o){var n=o("./node_modules/lodash/isFunction.js"),r=o("./node_modules/lodash/isLength.js");e.exports=function(e){return null!=e&&r(e.length)&&!n(e)}},"./node_modules/lodash/isBuffer.js":function(e,t,o){e=o.nmd(e);var n=o("./node_modules/lodash/_root.js"),r=o("./node_modules/lodash/stubFalse.js"),s=t&&!t.nodeType&&t,i=s&&e&&!e.nodeType&&e,a=i&&i.exports===s?n.Buffer:void 0,l=(a?a.isBuffer:void 0)||r;e.exports=l},"./node_modules/lodash/isFunction.js":function(e,t,o){var n=o("./node_modules/lodash/_baseGetTag.js"),r=o("./node_modules/lodash/isObject.js");e.exports=function(e){if(!r(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},"./node_modules/lodash/isLength.js":function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},"./node_modules/lodash/isMap.js":function(e,t,o){var n=o("./node_modules/lodash/_baseIsMap.js"),r=o("./node_modules/lodash/_baseUnary.js"),s=o("./node_modules/lodash/_nodeUtil.js"),i=s&&s.isMap,a=i?r(i):n;e.exports=a},"./node_modules/lodash/isObject.js":function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},"./node_modules/lodash/isObjectLike.js":function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},"./node_modules/lodash/isSet.js":function(e,t,o){var n=o("./node_modules/lodash/_baseIsSet.js"),r=o("./node_modules/lodash/_baseUnary.js"),s=o("./node_modules/lodash/_nodeUtil.js"),i=s&&s.isSet,a=i?r(i):n;e.exports=a},"./node_modules/lodash/isTypedArray.js":function(e,t,o){var n=o("./node_modules/lodash/_baseIsTypedArray.js"),r=o("./node_modules/lodash/_baseUnary.js"),s=o("./node_modules/lodash/_nodeUtil.js"),i=s&&s.isTypedArray,a=i?r(i):n;e.exports=a},"./node_modules/lodash/keys.js":function(e,t,o){var n=o("./node_modules/lodash/_arrayLikeKeys.js"),r=o("./node_modules/lodash/_baseKeys.js"),s=o("./node_modules/lodash/isArrayLike.js");e.exports=function(e){return s(e)?n(e):r(e)}},"./node_modules/lodash/keysIn.js":function(e,t,o){var n=o("./node_modules/lodash/_arrayLikeKeys.js"),r=o("./node_modules/lodash/_baseKeysIn.js"),s=o("./node_modules/lodash/isArrayLike.js");e.exports=function(e){return s(e)?n(e,!0):r(e)}},"./node_modules/lodash/stubArray.js":function(e){e.exports=function(){return[]}},"./node_modules/lodash/stubFalse.js":function(e){e.exports=function(){return!1}},"./node_modules/tippy.js/dist/tippy.esm.js":function(e,t,o){"use strict";o.r(t),o.d(t,{animateFill:function(){return fe},createSingleton:function(){return de},delegate:function(){return pe},followCursor:function(){return be},hideAll:function(){return le},inlinePositioning:function(){return je},roundArrow:function(){return s},sticky:function(){return ve}});var n=o("./node_modules/@popperjs/core/lib/popper.js"),r=o("./node_modules/@popperjs/core/lib/modifiers/applyStyles.js"),s='',i="tippy-content",a="tippy-backdrop",l="tippy-arrow",u="tippy-svg-arrow",d={passive:!0,capture:!0},c=function(){return document.body};function p(e,t,o){if(Array.isArray(e)){var n=e[t];return null==n?Array.isArray(o)?o[t]:o:n}return e}function f(e,t){var o={}.toString.call(e);return 0===o.indexOf("[object")&&o.indexOf(t+"]")>-1}function m(e,t){return"function"==typeof e?e.apply(void 0,t):e}function h(e,t){return 0===t?e:function(n){clearTimeout(o),o=setTimeout((function(){e(n)}),t)};var o}function _(e,t){var o=Object.assign({},e);return t.forEach((function(e){delete o[e]})),o}function b(e){return[].concat(e)}function j(e,t){-1===e.indexOf(t)&&e.push(t)}function v(e){return e.split("-")[0]}function y(e){return[].slice.call(e)}function g(e){return Object.keys(e).reduce((function(t,o){return void 0!==e[o]&&(t[o]=e[o]),t}),{})}function w(){return document.createElement("div")}function O(e){return["Element","Fragment"].some((function(t){return f(e,t)}))}function x(e){return f(e,"MouseEvent")}function E(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function L(e){return O(e)?[e]:function(e){return f(e,"NodeList")}(e)?y(e):Array.isArray(e)?e:y(document.querySelectorAll(e))}function S(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function P(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function A(e){var t,o=b(e)[0];return null!=o&&null!=(t=o.ownerDocument)&&t.body?o.ownerDocument:document}function C(e,t,o){var n=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[n](t,o)}))}function k(e,t){for(var o=t;o;){var n;if(e.contains(o))return!0;o=null==o.getRootNode||null==(n=o.getRootNode())?void 0:n.host}return!1}var T={isTouch:!1},M=0;function D(){T.isTouch||(T.isTouch=!0,window.performance&&document.addEventListener("mousemove",R))}function R(){var e=performance.now();e-M<20&&(T.isTouch=!1,document.removeEventListener("mousemove",R)),M=e}function I(){var e=document.activeElement;if(E(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var B,N=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;function W(e){return[e+"() was called on a"+("destroy"===e?"n already-":" ")+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function H(e){return e.replace(/[ \t]{2,}/g," ").replace(/^[ \t]*/gm,"").trim()}function F(e){return H("\n %ctippy.js\n\n %c"+H(e)+"\n\n %c👷‍ This is a development-only message. It will be removed in production.\n ")}function V(e){return[F(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}function Z(e,t){var o;e&&!B.has(t)&&(B.add(t),(o=console).warn.apply(o,V(t)))}function G(e,t){var o;e&&!B.has(t)&&(B.add(t),(o=console).error.apply(o,V(t)))}B=new Set;var U={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},q=Object.assign({appendTo:c,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},U,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),z=Object.keys(q);function $(e){var t=(e.plugins||[]).reduce((function(t,o){var n,r=o.name,s=o.defaultValue;r&&(t[r]=void 0!==e[r]?e[r]:null!=(n=q[r])?n:s);return t}),{});return Object.assign({},e,t)}function Y(e,t){var o=Object.assign({},t,{content:m(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys($(Object.assign({},q,{plugins:t}))):z).reduce((function(t,o){var n=(e.getAttribute("data-tippy-"+o)||"").trim();if(!n)return t;if("content"===o)t[o]=n;else try{t[o]=JSON.parse(n)}catch(e){t[o]=n}return t}),{})}(e,t.plugins));return o.aria=Object.assign({},q.aria,o.aria),o.aria={expanded:"auto"===o.aria.expanded?t.interactive:o.aria.expanded,content:"auto"===o.aria.content?t.interactive?null:"describedby":o.aria.content},o}function X(e,t){void 0===e&&(e={}),void 0===t&&(t=[]),Object.keys(e).forEach((function(e){var o,n,r=_(q,Object.keys(U)),s=(o=r,n=e,!{}.hasOwnProperty.call(o,n));s&&(s=0===t.filter((function(t){return t.name===e})).length),Z(s,["`"+e+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.","\n\n","All props: https://atomiks.github.io/tippyjs/v6/all-props/\n","Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))}))}var K=function(){return"innerHTML"};function J(e,t){e[K()]=t}function Q(e){var t=w();return!0===e?t.className=l:(t.className=u,O(e)?t.appendChild(e):J(t,e)),t}function ee(e,t){O(t.content)?(J(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?J(e,t.content):e.textContent=t.content)}function te(e){var t=e.firstElementChild,o=y(t.children);return{box:t,content:o.find((function(e){return e.classList.contains(i)})),arrow:o.find((function(e){return e.classList.contains(l)||e.classList.contains(u)})),backdrop:o.find((function(e){return e.classList.contains(a)}))}}function oe(e){var t=w(),o=w();o.className="tippy-box",o.setAttribute("data-state","hidden"),o.setAttribute("tabindex","-1");var n=w();function r(o,n){var r=te(t),s=r.box,i=r.content,a=r.arrow;n.theme?s.setAttribute("data-theme",n.theme):s.removeAttribute("data-theme"),"string"==typeof n.animation?s.setAttribute("data-animation",n.animation):s.removeAttribute("data-animation"),n.inertia?s.setAttribute("data-inertia",""):s.removeAttribute("data-inertia"),s.style.maxWidth="number"==typeof n.maxWidth?n.maxWidth+"px":n.maxWidth,n.role?s.setAttribute("role",n.role):s.removeAttribute("role"),o.content===n.content&&o.allowHTML===n.allowHTML||ee(i,e.props),n.arrow?a?o.arrow!==n.arrow&&(s.removeChild(a),s.appendChild(Q(n.arrow))):s.appendChild(Q(n.arrow)):a&&s.removeChild(a)}return n.className=i,n.setAttribute("data-state","hidden"),ee(n,e.props),t.appendChild(o),o.appendChild(n),r(e.props,e.props),{popper:t,onUpdate:r}}oe.$$tippy=!0;var ne=1,re=[],se=[];function ie(e,t){var o,r,s,i,a,l,u,f,_=Y(e,Object.assign({},q,$(g(t)))),O=!1,E=!1,L=!1,M=!1,D=[],R=h(Oe,_.interactiveDebounce),I=ne++,B=(f=_.plugins).filter((function(e,t){return f.indexOf(e)===t})),H={id:I,reference:e,popper:w(),popperInstance:null,props:_,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:B,clearDelayTimeouts:function(){clearTimeout(o),clearTimeout(r),cancelAnimationFrame(s)},setProps:function(t){Z(H.state.isDestroyed,W("setProps"));if(H.state.isDestroyed)return;ue("onBeforeUpdate",[H,t]),ge();var o=H.props,n=Y(e,Object.assign({},o,g(t),{ignoreAttributes:!0}));H.props=n,ye(),o.interactiveDebounce!==n.interactiveDebounce&&(pe(),R=h(Oe,n.interactiveDebounce));o.triggerTarget&&!n.triggerTarget?b(o.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):n.triggerTarget&&e.removeAttribute("aria-expanded");ce(),le(),U&&U(o,n);H.popperInstance&&(Se(),Ae().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));ue("onAfterUpdate",[H,t])},setContent:function(e){H.setProps({content:e})},show:function(){Z(H.state.isDestroyed,W("show"));var e=H.state.isVisible,t=H.state.isDestroyed,o=!H.state.isEnabled,n=T.isTouch&&!H.props.touch,r=p(H.props.duration,0,q.duration);if(e||t||o||n)return;if(ee().hasAttribute("disabled"))return;if(ue("onShow",[H],!1),!1===H.props.onShow(H))return;H.state.isVisible=!0,Q()&&(V.style.visibility="visible");le(),_e(),H.state.isMounted||(V.style.transition="none");if(Q()){var s=ie();S([s.box,s.content],0)}l=function(){var e;if(H.state.isVisible&&!M){if(M=!0,V.offsetHeight,V.style.transition=H.props.moveTransition,Q()&&H.props.animation){var t=ie(),o=t.box,n=t.content;S([o,n],r),P([o,n],"visible")}de(),ce(),j(se,H),null==(e=H.popperInstance)||e.forceUpdate(),ue("onMount",[H]),H.props.animation&&Q()&&function(e,t){je(e,t)}(r,(function(){H.state.isShown=!0,ue("onShown",[H])}))}},function(){var e,t=H.props.appendTo,o=ee();e=H.props.interactive&&t===c||"parent"===t?o.parentNode:m(t,[o]);e.contains(V)||e.appendChild(V);H.state.isMounted=!0,Se(),Z(H.props.interactive&&t===q.appendTo&&o.nextElementSibling!==V,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.","\n\n","Using a wrapper
or tag around the reference element","solves this by creating a new parentNode context.","\n\n","Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.","\n\n","See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}()},hide:function(){Z(H.state.isDestroyed,W("hide"));var e=!H.state.isVisible,t=H.state.isDestroyed,o=!H.state.isEnabled,n=p(H.props.duration,1,q.duration);if(e||t||o)return;if(ue("onHide",[H],!1),!1===H.props.onHide(H))return;H.state.isVisible=!1,H.state.isShown=!1,M=!1,O=!1,Q()&&(V.style.visibility="hidden");if(pe(),be(),le(!0),Q()){var r=ie(),s=r.box,i=r.content;H.props.animation&&(S([s,i],n),P([s,i],"hidden"))}de(),ce(),H.props.animation?Q()&&function(e,t){je(e,(function(){!H.state.isVisible&&V.parentNode&&V.parentNode.contains(V)&&t()}))}(n,H.unmount):H.unmount()},hideWithInteractivity:function(e){Z(H.state.isDestroyed,W("hideWithInteractivity"));oe().addEventListener("mousemove",R),j(re,R),R(e)},enable:function(){H.state.isEnabled=!0},disable:function(){H.hide(),H.state.isEnabled=!1},unmount:function(){Z(H.state.isDestroyed,W("unmount"));H.state.isVisible&&H.hide();if(!H.state.isMounted)return;Pe(),Ae().forEach((function(e){e._tippy.unmount()})),V.parentNode&&V.parentNode.removeChild(V);se=se.filter((function(e){return e!==H})),H.state.isMounted=!1,ue("onHidden",[H])},destroy:function(){Z(H.state.isDestroyed,W("destroy"));if(H.state.isDestroyed)return;H.clearDelayTimeouts(),H.unmount(),ge(),delete e._tippy,H.state.isDestroyed=!0,ue("onDestroy",[H])}};if(!_.render)return G(!0,"render() function has not been supplied."),H;var F=_.render(H),V=F.popper,U=F.onUpdate;V.setAttribute("data-tippy-root",""),V.id="tippy-"+H.id,H.popper=V,e._tippy=H,V._tippy=H;var z=B.map((function(e){return e.fn(H)})),X=e.hasAttribute("aria-expanded");return ye(),ce(),le(),ue("onCreate",[H]),_.showOnCreate&&Ce(),V.addEventListener("mouseenter",(function(){H.props.interactive&&H.state.isVisible&&H.clearDelayTimeouts()})),V.addEventListener("mouseleave",(function(){H.props.interactive&&H.props.trigger.indexOf("mouseenter")>=0&&oe().addEventListener("mousemove",R)})),H;function K(){var e=H.props.touch;return Array.isArray(e)?e:[e,0]}function J(){return"hold"===K()[0]}function Q(){var e;return!(null==(e=H.props.render)||!e.$$tippy)}function ee(){return u||e}function oe(){var e=ee().parentNode;return e?A(e):document}function ie(){return te(V)}function ae(e){return H.state.isMounted&&!H.state.isVisible||T.isTouch||i&&"focus"===i.type?0:p(H.props.delay,e?0:1,q.delay)}function le(e){void 0===e&&(e=!1),V.style.pointerEvents=H.props.interactive&&!e?"":"none",V.style.zIndex=""+H.props.zIndex}function ue(e,t,o){var n;(void 0===o&&(o=!0),z.forEach((function(o){o[e]&&o[e].apply(o,t)})),o)&&(n=H.props)[e].apply(n,t)}function de(){var t=H.props.aria;if(t.content){var o="aria-"+t.content,n=V.id;b(H.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(o);if(H.state.isVisible)e.setAttribute(o,t?t+" "+n:n);else{var r=t&&t.replace(n,"").trim();r?e.setAttribute(o,r):e.removeAttribute(o)}}))}}function ce(){!X&&H.props.aria.expanded&&b(H.props.triggerTarget||e).forEach((function(e){H.props.interactive?e.setAttribute("aria-expanded",H.state.isVisible&&e===ee()?"true":"false"):e.removeAttribute("aria-expanded")}))}function pe(){oe().removeEventListener("mousemove",R),re=re.filter((function(e){return e!==R}))}function fe(t){if(!T.isTouch||!L&&"mousedown"!==t.type){var o=t.composedPath&&t.composedPath()[0]||t.target;if(!H.props.interactive||!k(V,o)){if(b(H.props.triggerTarget||e).some((function(e){return k(e,o)}))){if(T.isTouch)return;if(H.state.isVisible&&H.props.trigger.indexOf("click")>=0)return}else ue("onClickOutside",[H,t]);!0===H.props.hideOnClick&&(H.clearDelayTimeouts(),H.hide(),E=!0,setTimeout((function(){E=!1})),H.state.isMounted||be())}}}function me(){L=!0}function he(){L=!1}function _e(){var e=oe();e.addEventListener("mousedown",fe,!0),e.addEventListener("touchend",fe,d),e.addEventListener("touchstart",he,d),e.addEventListener("touchmove",me,d)}function be(){var e=oe();e.removeEventListener("mousedown",fe,!0),e.removeEventListener("touchend",fe,d),e.removeEventListener("touchstart",he,d),e.removeEventListener("touchmove",me,d)}function je(e,t){var o=ie().box;function n(e){e.target===o&&(C(o,"remove",n),t())}if(0===e)return t();C(o,"remove",a),C(o,"add",n),a=n}function ve(t,o,n){void 0===n&&(n=!1),b(H.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,o,n),D.push({node:e,eventType:t,handler:o,options:n})}))}function ye(){var e;J()&&(ve("touchstart",we,{passive:!0}),ve("touchend",xe,{passive:!0})),(e=H.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(ve(e,we),e){case"mouseenter":ve("mouseleave",xe);break;case"focus":ve(N?"focusout":"blur",Ee);break;case"focusin":ve("focusout",Ee)}}))}function ge(){D.forEach((function(e){var t=e.node,o=e.eventType,n=e.handler,r=e.options;t.removeEventListener(o,n,r)})),D=[]}function we(e){var t,o=!1;if(H.state.isEnabled&&!Le(e)&&!E){var n="focus"===(null==(t=i)?void 0:t.type);i=e,u=e.currentTarget,ce(),!H.state.isVisible&&x(e)&&re.forEach((function(t){return t(e)})),"click"===e.type&&(H.props.trigger.indexOf("mouseenter")<0||O)&&!1!==H.props.hideOnClick&&H.state.isVisible?o=!0:Ce(e),"click"===e.type&&(O=!o),o&&!n&&ke(e)}}function Oe(e){var t=e.target,o=ee().contains(t)||V.contains(t);if("mousemove"!==e.type||!o){var n=Ae().concat(V).map((function(e){var t,o=null==(t=e._tippy.popperInstance)?void 0:t.state;return o?{popperRect:e.getBoundingClientRect(),popperState:o,props:_}:null})).filter(Boolean);(function(e,t){var o=t.clientX,n=t.clientY;return e.every((function(e){var t=e.popperRect,r=e.popperState,s=e.props.interactiveBorder,i=v(r.placement),a=r.modifiersData.offset;if(!a)return!0;var l="bottom"===i?a.top.y:0,u="top"===i?a.bottom.y:0,d="right"===i?a.left.x:0,c="left"===i?a.right.x:0,p=t.top-n+l>s,f=n-t.bottom-u>s,m=t.left-o+d>s,h=o-t.right-c>s;return p||f||m||h}))})(n,e)&&(pe(),ke(e))}}function xe(e){Le(e)||H.props.trigger.indexOf("click")>=0&&O||(H.props.interactive?H.hideWithInteractivity(e):ke(e))}function Ee(e){H.props.trigger.indexOf("focusin")<0&&e.target!==ee()||H.props.interactive&&e.relatedTarget&&V.contains(e.relatedTarget)||ke(e)}function Le(e){return!!T.isTouch&&J()!==e.type.indexOf("touch")>=0}function Se(){Pe();var t=H.props,o=t.popperOptions,r=t.placement,s=t.offset,i=t.getReferenceClientRect,a=t.moveTransition,u=Q()?te(V).arrow:null,d=i?{getBoundingClientRect:i,contextElement:i.contextElement||ee()}:e,c={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(Q()){var o=ie().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?o.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?o.setAttribute("data-"+e,""):o.removeAttribute("data-"+e)})),t.attributes.popper={}}}},p=[{name:"offset",options:{offset:s}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},c];Q()&&u&&p.push({name:"arrow",options:{element:u,padding:3}}),p.push.apply(p,(null==o?void 0:o.modifiers)||[]),H.popperInstance=(0,n.createPopper)(d,V,Object.assign({},o,{placement:r,onFirstUpdate:l,modifiers:p}))}function Pe(){H.popperInstance&&(H.popperInstance.destroy(),H.popperInstance=null)}function Ae(){return y(V.querySelectorAll("[data-tippy-root]"))}function Ce(e){H.clearDelayTimeouts(),e&&ue("onTrigger",[H,e]),_e();var t=ae(!0),n=K(),r=n[0],s=n[1];T.isTouch&&"hold"===r&&s&&(t=s),t?o=setTimeout((function(){H.show()}),t):H.show()}function ke(e){if(H.clearDelayTimeouts(),ue("onUntrigger",[H,e]),H.state.isVisible){if(!(H.props.trigger.indexOf("mouseenter")>=0&&H.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&O)){var t=ae(!1);t?r=setTimeout((function(){H.state.isVisible&&H.hide()}),t):s=requestAnimationFrame((function(){H.hide()}))}}else be()}}function ae(e,t){void 0===t&&(t={});var o=q.plugins.concat(t.plugins||[]);!function(e){var t=!e,o="[object Object]"===Object.prototype.toString.call(e)&&!e.addEventListener;G(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),G(o,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}(e),X(t,o),document.addEventListener("touchstart",D,d),window.addEventListener("blur",I);var n=Object.assign({},t,{plugins:o}),r=L(e),s=O(n.content),i=r.length>1;Z(s&&i,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.","\n\n","Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.","\n\n","1) content: element.innerHTML\n","2) content: () => element.cloneNode(true)"].join(" "));var a=r.reduce((function(e,t){var o=t&&ie(t,n);return o&&e.push(o),e}),[]);return O(e)?a[0]:a}ae.defaultProps=q,ae.setDefaultProps=function(e){X(e,[]),Object.keys(e).forEach((function(t){q[t]=e[t]}))},ae.currentInput=T;var le=function(e){var t=void 0===e?{}:e,o=t.exclude,n=t.duration;se.forEach((function(e){var t=!1;if(o&&(t=E(o)?e.reference===o:e.popper===o.popper),!t){var r=e.props.duration;e.setProps({duration:n}),e.hide(),e.state.isDestroyed||e.setProps({duration:r})}}))},ue=Object.assign({},r.default,{effect:function(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow)}}),de=function(e,t){var o;void 0===t&&(t={}),G(!Array.isArray(e),["The first argument passed to createSingleton() must be an array of","tippy instances. The passed value was",String(e)].join(" "));var n,r=e,s=[],i=[],a=t.overrides,l=[],u=!1;function d(){i=r.map((function(e){return b(e.props.triggerTarget||e.reference)})).reduce((function(e,t){return e.concat(t)}),[])}function c(){s=r.map((function(e){return e.reference}))}function p(e){r.forEach((function(t){e?t.enable():t.disable()}))}function f(e){return r.map((function(t){var o=t.setProps;return t.setProps=function(r){o(r),t.reference===n&&e.setProps(r)},function(){t.setProps=o}}))}function m(e,t){var o=i.indexOf(t);if(t!==n){n=t;var l=(a||[]).concat("content").reduce((function(e,t){return e[t]=r[o].props[t],e}),{});e.setProps(Object.assign({},l,{getReferenceClientRect:"function"==typeof l.getReferenceClientRect?l.getReferenceClientRect:function(){var e;return null==(e=s[o])?void 0:e.getBoundingClientRect()}}))}}p(!1),c(),d();var h={fn:function(){return{onDestroy:function(){p(!0)},onHidden:function(){n=null},onClickOutside:function(e){e.props.showOnCreate&&!u&&(u=!0,n=null)},onShow:function(e){e.props.showOnCreate&&!u&&(u=!0,m(e,s[0]))},onTrigger:function(e,t){m(e,t.currentTarget)}}}},j=ae(w(),Object.assign({},_(t,["overrides"]),{plugins:[h].concat(t.plugins||[]),triggerTarget:i,popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat((null==(o=t.popperOptions)?void 0:o.modifiers)||[],[ue])})})),v=j.show;j.show=function(e){if(v(),!n&&null==e)return m(j,s[0]);if(!n||null!=e){if("number"==typeof e)return s[e]&&m(j,s[e]);if(r.indexOf(e)>=0){var t=e.reference;return m(j,t)}return s.indexOf(e)>=0?m(j,e):void 0}},j.showNext=function(){var e=s[0];if(!n)return j.show(0);var t=s.indexOf(n);j.show(s[t+1]||e)},j.showPrevious=function(){var e=s[s.length-1];if(!n)return j.show(e);var t=s.indexOf(n),o=s[t-1]||e;j.show(o)};var y=j.setProps;return j.setProps=function(e){a=e.overrides||a,y(e)},j.setInstances=function(e){p(!0),l.forEach((function(e){return e()})),r=e,p(!1),c(),d(),l=f(j),j.setProps({triggerTarget:i})},l=f(j),j},ce={mouseover:"mouseenter",focusin:"focus",click:"click"};function pe(e,t){G(!(t&&t.target),["You must specity a `target` prop indicating a CSS selector string matching","the target elements that should receive a tippy."].join(" "));var o=[],n=[],r=!1,s=t.target,i=_(t,["target"]),a=Object.assign({},i,{trigger:"manual",touch:!1}),l=Object.assign({touch:q.touch},i,{showOnCreate:!0}),u=ae(e,a);function c(e){if(e.target&&!r){var o=e.target.closest(s);if(o){var i=o.getAttribute("data-tippy-trigger")||t.trigger||q.trigger;if(!o._tippy&&!("touchstart"===e.type&&"boolean"==typeof l.touch||"touchstart"!==e.type&&i.indexOf(ce[e.type])<0)){var a=ae(o,l);a&&(n=n.concat(a))}}}}function p(e,t,n,r){void 0===r&&(r=!1),e.addEventListener(t,n,r),o.push({node:e,eventType:t,handler:n,options:r})}return b(u).forEach((function(e){var t=e.destroy,s=e.enable,i=e.disable;e.destroy=function(e){void 0===e&&(e=!0),e&&n.forEach((function(e){e.destroy()})),n=[],o.forEach((function(e){var t=e.node,o=e.eventType,n=e.handler,r=e.options;t.removeEventListener(o,n,r)})),o=[],t()},e.enable=function(){s(),n.forEach((function(e){return e.enable()})),r=!1},e.disable=function(){i(),n.forEach((function(e){return e.disable()})),r=!0},function(e){var t=e.reference;p(t,"touchstart",c,d),p(t,"mouseover",c),p(t,"focusin",c),p(t,"click",c)}(e)})),u}var fe={name:"animateFill",defaultValue:!1,fn:function(e){var t;if(null==(t=e.props.render)||!t.$$tippy)return G(e.props.animateFill,"The `animateFill` plugin requires the default render function."),{};var o=te(e.popper),n=o.box,r=o.content,s=e.props.animateFill?function(){var e=w();return e.className=a,P([e],"hidden"),e}():null;return{onCreate:function(){s&&(n.insertBefore(s,n.firstElementChild),n.setAttribute("data-animatefill",""),n.style.overflow="hidden",e.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(s){var e=n.style.transitionDuration,t=Number(e.replace("ms",""));r.style.transitionDelay=Math.round(t/10)+"ms",s.style.transitionDuration=e,P([s],"visible")}},onShow:function(){s&&(s.style.transitionDuration="0ms")},onHide:function(){s&&P([s],"hidden")}}}};var me={clientX:0,clientY:0},he=[];function _e(e){var t=e.clientX,o=e.clientY;me={clientX:t,clientY:o}}var be={name:"followCursor",defaultValue:!1,fn:function(e){var t=e.reference,o=A(e.props.triggerTarget||t),n=!1,r=!1,s=!0,i=e.props;function a(){return"initial"===e.props.followCursor&&e.state.isVisible}function l(){o.addEventListener("mousemove",c)}function u(){o.removeEventListener("mousemove",c)}function d(){n=!0,e.setProps({getReferenceClientRect:null}),n=!1}function c(o){var n=!o.target||t.contains(o.target),r=e.props.followCursor,s=o.clientX,i=o.clientY,a=t.getBoundingClientRect(),l=s-a.left,u=i-a.top;!n&&e.props.interactive||e.setProps({getReferenceClientRect:function(){var e=t.getBoundingClientRect(),o=s,n=i;"initial"===r&&(o=e.left+l,n=e.top+u);var a="horizontal"===r?e.top:n,d="vertical"===r?e.right:o,c="horizontal"===r?e.bottom:n,p="vertical"===r?e.left:o;return{width:d-p,height:c-a,top:a,right:d,bottom:c,left:p}}})}function p(){e.props.followCursor&&(he.push({instance:e,doc:o}),function(e){e.addEventListener("mousemove",_e)}(o))}function f(){0===(he=he.filter((function(t){return t.instance!==e}))).filter((function(e){return e.doc===o})).length&&function(e){e.removeEventListener("mousemove",_e)}(o)}return{onCreate:p,onDestroy:f,onBeforeUpdate:function(){i=e.props},onAfterUpdate:function(t,o){var s=o.followCursor;n||void 0!==s&&i.followCursor!==s&&(f(),s?(p(),!e.state.isMounted||r||a()||l()):(u(),d()))},onMount:function(){e.props.followCursor&&!r&&(s&&(c(me),s=!1),a()||l())},onTrigger:function(e,t){x(t)&&(me={clientX:t.clientX,clientY:t.clientY}),r="focus"===t.type},onHidden:function(){e.props.followCursor&&(d(),u(),s=!0)}}}};var je={name:"inlinePositioning",defaultValue:!1,fn:function(e){var t,o=e.reference;var n=-1,r=!1,s=[],i={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(r){var i=r.state;e.props.inlinePositioning&&(-1!==s.indexOf(i.placement)&&(s=[]),t!==i.placement&&-1===s.indexOf(i.placement)&&(s.push(i.placement),e.setProps({getReferenceClientRect:function(){return function(e){return function(e,t,o,n){if(o.length<2||null===e)return t;if(2===o.length&&n>=0&&o[0].left>o[1].right)return o[n]||t;switch(e){case"top":case"bottom":var r=o[0],s=o[o.length-1],i="top"===e,a=r.top,l=s.bottom,u=i?r.left:s.left,d=i?r.right:s.right;return{top:a,bottom:l,left:u,right:d,width:d-u,height:l-a};case"left":case"right":var c=Math.min.apply(Math,o.map((function(e){return e.left}))),p=Math.max.apply(Math,o.map((function(e){return e.right}))),f=o.filter((function(t){return"left"===e?t.left===c:t.right===p})),m=f[0].top,h=f[f.length-1].bottom;return{top:m,bottom:h,left:c,right:p,width:p-c,height:h-m};default:return t}}(v(e),o.getBoundingClientRect(),y(o.getClientRects()),n)}(i.placement)}})),t=i.placement)}};function a(){var t;r||(t=function(e,t){var o;return{popperOptions:Object.assign({},e.popperOptions,{modifiers:[].concat(((null==(o=e.popperOptions)?void 0:o.modifiers)||[]).filter((function(e){return e.name!==t.name})),[t])})}}(e.props,i),r=!0,e.setProps(t),r=!1)}return{onCreate:a,onAfterUpdate:a,onTrigger:function(t,o){if(x(o)){var r=y(e.reference.getClientRects()),s=r.find((function(e){return e.left-2<=o.clientX&&e.right+2>=o.clientX&&e.top-2<=o.clientY&&e.bottom+2>=o.clientY})),i=r.indexOf(s);n=i>-1?i:n}},onHidden:function(){n=-1}}}};var ve={name:"sticky",defaultValue:!1,fn:function(e){var t=e.reference,o=e.popper;function n(t){return!0===e.props.sticky||e.props.sticky===t}var r=null,s=null;function i(){var a=n("reference")?(e.popperInstance?e.popperInstance.state.elements.reference:t).getBoundingClientRect():null,l=n("popper")?o.getBoundingClientRect():null;(a&&ye(r,a)||l&&ye(s,l))&&e.popperInstance&&e.popperInstance.update(),r=a,s=l,e.state.isMounted&&requestAnimationFrame(i)}return{onMount:function(){e.props.sticky&&i()}}}};function ye(e,t){return!e||!t||(e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left)}ae.setDefaultProps({render:oe}),t.default=ae},react:function(e){"use strict";e.exports=window.React},"react-dom":function(e){"use strict";e.exports=window.ReactDOM},"@babel/runtime/regenerator":function(e){"use strict";e.exports=window.regeneratorRuntime},"@wordpress/api-fetch":function(e){"use strict";e.exports=window.wp.apiFetch},"@wordpress/block-editor":function(e){"use strict";e.exports=window.wp.blockEditor},"@wordpress/blocks":function(e){"use strict";e.exports=window.wp.blocks},"@wordpress/components":function(e){"use strict";e.exports=window.wp.components},"@wordpress/components/build-style/style.css":function(e){"use strict";e.exports=window.wp["components/buildStyle/style.css"]},"@wordpress/data":function(e){"use strict";e.exports=window.wp.data},"@wordpress/element":function(e){"use strict";e.exports=window.wp.element},"@wordpress/i18n":function(e){"use strict";e.exports=window.wp.i18n},"./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":function(e,t,o){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(s[o]=e[o])}return s}},"./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js":function(e,t,o){"use strict";function n(e,t){if(null==e)return{};var o,n,r={},s=Object.keys(e);for(n=0;n=0||(r[o]=e[o]);return r}o.r(t),o.d(t,{default:function(){return n}})},"./node_modules/@babel/runtime/helpers/esm/slicedToArray.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return a}});var n=o("./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js"),r=o("./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js"),s=o("./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js"),i=o("./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js");function a(e,t){return(0,n.default)(e)||(0,r.default)(e,t)||(0,s.default)(e,t)||(0,i.default)()}},"./node_modules/@babel/runtime/helpers/esm/typeof.js":function(e,t,o){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}o.r(t),o.d(t,{default:function(){return n}})},"./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return r}});var n=o("./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");function r(e,t){if(e){if("string"==typeof e)return(0,n.default)(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?(0,n.default)(e,t):void 0}}},"./src/js/gallery-block/attributes.json":function(e){"use strict";e.exports=JSON.parse('{"aspectRatio":{"type":"string"},"navigation":{"type":"string"},"zoom":{"type":"boolean"},"carouselLocation":{"type":"string"},"carouselOffset":{"type":"number"},"carouselStyle":{"type":"string"},"displayProps_mode":{"type":"string"},"displayProps_columns":{"type":"number"},"indicatorProps_shape":{"type":"string"},"themeProps_primary":{"type":"string"},"themeProps_onPrimary":{"type":"string"},"themeProps_active":{"type":"string"},"zoomProps_type":{"type":"string"},"zoomProps_viewerPosition":{"type":"string"},"zoomProps_trigger":{"type":"string"},"thumbnailProps_width":{"type":"number"},"thumbnailProps_height":{"type":"number"},"thumbnailProps_navigationShape":{"type":"string"},"thumbnailProps_selectedStyle":{"type":"string"},"thumbnailProps_selectedBorderPosition":{"type":"string"},"thumbnailProps_selectedBorderWidth":{"type":"number"},"thumbnailProps_mediaSymbolShape":{"type":"string"},"cloudName":{"type":"string"},"container":{"type":"string"},"selectedImages":{"type":"array","default":[]},"transformation_crop":{"type":"string","default":"pad"},"transformation_background":{"type":"string"},"customSettings":{"type":"string"}}')}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var s=t[n]={id:n,loaded:!1,exports:{}};return e[n](s,s.exports,o),s.loaded=!0,s.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e};var n={};!function(){"use strict";o.r(n);var e=o("@wordpress/i18n"),t=o("@wordpress/blocks"),r=o("./src/js/gallery-block/edit.js"),s=o("./src/js/gallery-block/save.js"),i=o("./src/js/gallery-block/attributes.json");(0,t.registerBlockType)("cloudinary/gallery",{title:(0,e.__)("Cloudinary Gallery","cloudinary"),description:(0,e.__)("Add a gallery powered by the Cloudinary Gallery Widget to your post.","cloudinary"),category:"widgets",icon:"format-gallery",attributes:i,edit:r.default,save:s.default})}()}(); +//# sourceMappingURL=gallery-block.js.map \ No newline at end of file diff --git a/js/gallery-init.asset.php b/js/gallery-init.asset.php index 7b19ef612..f73e27578 100644 --- a/js/gallery-init.asset.php +++ b/js/gallery-init.asset.php @@ -1 +1 @@ - array(), 'version' => '0196bb57bf9b757da5e1'); + array(), 'version' => 'ccd0bf28dc6e7e0372eb'); diff --git a/js/gallery-init.js b/js/gallery-init.js index 5fd62ea0b..bd190013a 100644 --- a/js/gallery-init.js +++ b/js/gallery-init.js @@ -1 +1,2 @@ -!function(){var e;e=cloudinary.galleryWidget,window.addEventListener("load",(function(){var n,o;document.querySelector(".woocommerce-page")&&CLD_GALLERY_CONFIG&&null!==(n=CLD_GALLERY_CONFIG)&&void 0!==n&&null!==(o=n.mediaAssets)&&void 0!==o&&o.length&&e(CLD_GALLERY_CONFIG).render()}))}(); \ No newline at end of file +!function(){var e;e=cloudinary.galleryWidget,window.addEventListener("load",(function(){var n,o;document.querySelector(".woocommerce-page")&&CLD_GALLERY_CONFIG&&null!==(n=CLD_GALLERY_CONFIG)&&void 0!==n&&null!==(o=n.mediaAssets)&&void 0!==o&&o.length&&e(CLD_GALLERY_CONFIG).render()}))}(); +//# sourceMappingURL=gallery-init.js.map \ No newline at end of file diff --git a/js/gallery-ui.js b/js/gallery-ui.js index e69de29bb..3706b162c 100644 --- a/js/gallery-ui.js +++ b/js/gallery-ui.js @@ -0,0 +1,2 @@ +!function(){"use strict";var e={r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}};e.r({})}(); +//# sourceMappingURL=gallery-ui.js.map \ No newline at end of file diff --git a/js/gallery.asset.php b/js/gallery.asset.php index 540db131a..120b8cf3e 100644 --- a/js/gallery.asset.php +++ b/js/gallery.asset.php @@ -1 +1 @@ - array('react', 'react-dom', 'wp-block-editor', 'wp-components', 'wp-components/build-style/style.css', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => 'e43d4fd3e99784efb0ae'); + array('react', 'react-dom', 'wp-block-editor', 'wp-components', 'wp-components/build-style/style.css', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '92e750daff597bc257ba'); diff --git a/js/gallery.js b/js/gallery.js index 194866082..a66fd6a92 100644 --- a/js/gallery.js +++ b/js/gallery.js @@ -1 +1,2 @@ -!function(){var e={2485:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t=0&&(e=e.replace(/\[/g,t).replace(/]/g,""));var n=e.split(t);if(n.filter(c).length!==n.length)throw Error("Refusing to update blacklisted property "+e);return n}var l=Object.prototype.hasOwnProperty;function s(e,t,n,r){if(!(this instanceof s))return new s(e,t,n,r);void 0===t&&(t=!1),void 0===n&&(n=!0),void 0===r&&(r=!0),this.separator=e||".",this.override=t,this.useArray=n,this.useBrackets=r,this.keepArray=!1,this.cleanup=[]}var p=new s(".",!1,!0,!0);function f(e){return function(){return p[e].apply(p,arguments)}}s.prototype._fill=function(e,n,r,a){var c=e.shift();if(e.length>0){if(n[c]=n[c]||(this.useArray&&function(e){return/^\d+$/.test(e)}(e[0])?[]:{}),!o(n[c])){if(!this.override){if(!o(r)||!i(r))throw new Error("Trying to redefine `"+c+"` which is a "+typeof n[c]);return}n[c]={}}this._fill(e,n[c],r,a)}else{if(!this.override&&o(n[c])&&!i(n[c])){if(!o(r)||!i(r))throw new Error("Trying to redefine non-empty obj['"+c+"']");return}n[c]=t(r,a)}},s.prototype.object=function(e,n){var r=this;return Object.keys(e).forEach((function(o){var i=void 0===n?null:n[o],a=u(o,r.separator).join(r.separator);-1!==a.indexOf(r.separator)?(r._fill(a.split(r.separator),e,e[o],i),delete e[o]):e[o]=t(e[o],i)})),e},s.prototype.str=function(e,n,r,o){var i=u(e,this.separator).join(this.separator);return-1!==e.indexOf(this.separator)?this._fill(i.split(this.separator),r,n,o):r[e]=t(n,o),r},s.prototype.pick=function(e,t,r,o){var i,a,c,l,s;for(a=u(e,this.separator),i=0;i-1&&e%1==0&&e-1}},1175:function(e,t,n){var r=n(6025);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},3040:function(e,t,n){var r=n(1549),o=n(79),i=n(8223);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},7670:function(e,t,n){var r=n(2651);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},289:function(e,t,n){var r=n(2651);e.exports=function(e){return r(this,e).get(e)}},4509:function(e,t,n){var r=n(2651);e.exports=function(e){return r(this,e).has(e)}},2949:function(e,t,n){var r=n(2651);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},1042:function(e,t,n){var r=n(6110)(Object,"create");e.exports=r},3650:function(e,t,n){var r=n(4335)(Object.keys,Object);e.exports=r},181:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},6009:function(e,t,n){e=n.nmd(e);var r=n(4840),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,c=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=c},9350:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},4335:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},9325:function(e,t,n){var r=n(4840),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},1420:function(e,t,n){var r=n(79);e.exports=function(){this.__data__=new r,this.size=0}},938:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},3605:function(e){e.exports=function(e){return this.__data__.get(e)}},9817:function(e){e.exports=function(e){return this.__data__.has(e)}},945:function(e,t,n){var r=n(79),o=n(8223),i=n(3661);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},7473:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},8055:function(e,t,n){var r=n(9999);e.exports=function(e){return r(e,5)}},5288:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},2428:function(e,t,n){var r=n(7534),o=n(346),i=Object.prototype,a=i.hasOwnProperty,c=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!c.call(e,"callee")};e.exports=u},6449:function(e){var t=Array.isArray;e.exports=t},4894:function(e,t,n){var r=n(1882),o=n(294);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},3656:function(e,t,n){e=n.nmd(e);var r=n(9325),o=n(9935),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,c=a&&a.exports===i?r.Buffer:void 0,u=(c?c.isBuffer:void 0)||o;e.exports=u},1882:function(e,t,n){var r=n(2552),o=n(3805);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},294:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},7730:function(e,t,n){var r=n(9172),o=n(7301),i=n(6009),a=i&&i.isMap,c=a?o(a):r;e.exports=c},3805:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},346:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},8440:function(e,t,n){var r=n(6038),o=n(7301),i=n(6009),a=i&&i.isSet,c=a?o(a):r;e.exports=c},7167:function(e,t,n){var r=n(4901),o=n(7301),i=n(6009),a=i&&i.isTypedArray,c=a?o(a):r;e.exports=c},5950:function(e,t,n){var r=n(695),o=n(8984),i=n(4894);e.exports=function(e){return i(e)?r(e):o(e)}},7241:function(e,t,n){var r=n(695),o=n(2903),i=n(4894);e.exports=function(e){return i(e)?r(e,!0):o(e)}},3345:function(e){e.exports=function(){return[]}},9935:function(e){e.exports=function(){return!1}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r](i,i.exports,n),i.loaded=!0,i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){"use strict";function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var i=window.React,a=n.n(i),c=n(1780),u=n.n(c),l=window.wp.element;function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}var p=window.wp.i18n,f=n(8055),d=n.n(f);function v(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function m(e){return e instanceof v(e).Element||e instanceof Element}function h(e){return e instanceof v(e).HTMLElement||e instanceof HTMLElement}function y(e){return"undefined"!=typeof ShadowRoot&&(e instanceof v(e).ShadowRoot||e instanceof ShadowRoot)}var b=Math.max,g=Math.min,_=Math.round;function w(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function x(){return!/^((?!chrome|android).)*safari/i.test(w())}function L(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&h(e)&&(o=e.offsetWidth>0&&_(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&_(r.height)/e.offsetHeight||1);var a=(m(e)?v(e):window).visualViewport,c=!x()&&n,u=(r.left+(c&&a?a.offsetLeft:0))/o,l=(r.top+(c&&a?a.offsetTop:0))/i,s=r.width/o,p=r.height/i;return{width:s,height:p,top:l,right:u+s,bottom:l+p,left:u,x:u,y:l}}function O(e){var t=v(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function E(e){return e?(e.nodeName||"").toLowerCase():null}function j(e){return((m(e)?e.ownerDocument:e.document)||window.document).documentElement}function k(e){return L(j(e)).left+O(e).scrollLeft}function A(e){return v(e).getComputedStyle(e)}function P(e){var t=A(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function S(e,t,n){void 0===n&&(n=!1);var r,o,i=h(t),a=h(t)&&function(e){var t=e.getBoundingClientRect(),n=_(t.width)/e.offsetWidth||1,r=_(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),c=j(t),u=L(e,a,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(i||!i&&!n)&&(("body"!==E(t)||P(c))&&(l=(r=t)!==v(r)&&h(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:O(r)),h(t)?((s=L(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):c&&(s.x=k(c))),{x:u.left+l.scrollLeft-s.x,y:u.top+l.scrollTop-s.y,width:u.width,height:u.height}}function C(e){var t=L(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function M(e){return"html"===E(e)?e:e.assignedSlot||e.parentNode||(y(e)?e.host:null)||j(e)}function T(e){return["html","body","#document"].indexOf(E(e))>=0?e.ownerDocument.body:h(e)&&P(e)?e:T(M(e))}function D(e,t){var n;void 0===t&&(t=[]);var r=T(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=v(r),a=o?[i].concat(i.visualViewport||[],P(r)?r:[]):r,c=t.concat(a);return o?c:c.concat(D(M(a)))}function B(e){return["table","td","th"].indexOf(E(e))>=0}function R(e){return h(e)&&"fixed"!==A(e).position?e.offsetParent:null}function N(e){for(var t=v(e),n=R(e);n&&B(n)&&"static"===A(n).position;)n=R(n);return n&&("html"===E(n)||"body"===E(n)&&"static"===A(n).position)?t:n||function(e){var t=/firefox/i.test(w());if(/Trident/i.test(w())&&h(e)&&"fixed"===A(e).position)return null;var n=M(e);for(y(n)&&(n=n.host);h(n)&&["html","body"].indexOf(E(n))<0;){var r=A(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var Z="top",F="bottom",I="right",W="left",z="auto",V=[Z,F,I,W],H="start",U="end",q="clippingParents",$="viewport",G="popper",X="reference",J=V.reduce((function(e,t){return e.concat([t+"-"+H,t+"-"+U])}),[]),Y=[].concat(V,[z]).reduce((function(e,t){return e.concat([t,t+"-"+H,t+"-"+U])}),[]),K=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Q(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var ee={placement:"bottom",modifiers:[],strategy:"absolute"};function te(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function ce(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?oe(o):null,a=o?ie(o):null,c=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(i){case Z:t={x:c,y:n.y-r.height};break;case F:t={x:c,y:n.y+n.height};break;case I:t={x:n.x+n.width,y:u};break;case W:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var l=i?ae(i):null;if(null!=l){var s="y"===l?"height":"width";switch(a){case H:t[l]=t[l]-(n[s]/2-r[s]/2);break;case U:t[l]=t[l]+(n[s]/2-r[s]/2)}}return t}var ue={top:"auto",right:"auto",bottom:"auto",left:"auto"};function le(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,c=e.position,u=e.gpuAcceleration,l=e.adaptive,s=e.roundOffsets,p=e.isFixed,f=a.x,d=void 0===f?0:f,m=a.y,h=void 0===m?0:m,y="function"==typeof s?s({x:d,y:h}):{x:d,y:h};d=y.x,h=y.y;var b=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),w=W,x=Z,L=window;if(l){var O=N(n),E="clientHeight",k="clientWidth";if(O===v(n)&&"static"!==A(O=j(n)).position&&"absolute"===c&&(E="scrollHeight",k="scrollWidth"),o===Z||(o===W||o===I)&&i===U)x=F,h-=(p&&O===L&&L.visualViewport?L.visualViewport.height:O[E])-r.height,h*=u?1:-1;if(o===W||(o===Z||o===F)&&i===U)w=I,d-=(p&&O===L&&L.visualViewport?L.visualViewport.width:O[k])-r.width,d*=u?1:-1}var P,S=Object.assign({position:c},l&&ue),C=!0===s?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:_(t*r)/r||0,y:_(n*r)/r||0}}({x:d,y:h}):{x:d,y:h};return d=C.x,h=C.y,u?Object.assign({},S,((P={})[x]=g?"0":"",P[w]=b?"0":"",P.transform=(L.devicePixelRatio||1)<=1?"translate("+d+"px, "+h+"px)":"translate3d("+d+"px, "+h+"px, 0)",P)):Object.assign({},S,((t={})[x]=g?h+"px":"",t[w]=b?d+"px":"",t.transform="",t))}var se={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];h(o)&&E(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});h(r)&&E(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};var pe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=Y.reduce((function(e,n){return e[n]=function(e,t,n){var r=oe(e),o=[W,Z].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],c=i[1];return a=a||0,c=(c||0)*o,[W,I].indexOf(r)>=0?{x:c,y:a}:{x:a,y:c}}(n,t.rects,i),e}),{}),c=a[t.placement],u=c.x,l=c.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=a}},fe={left:"right",right:"left",bottom:"top",top:"bottom"};function de(e){return e.replace(/left|right|bottom|top/g,(function(e){return fe[e]}))}var ve={start:"end",end:"start"};function me(e){return e.replace(/start|end/g,(function(e){return ve[e]}))}function he(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&y(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ye(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function be(e,t,n){return t===$?ye(function(e,t){var n=v(e),r=j(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,c=0,u=0;if(o){i=o.width,a=o.height;var l=x();(l||!l&&"fixed"===t)&&(c=o.offsetLeft,u=o.offsetTop)}return{width:i,height:a,x:c+k(e),y:u}}(e,n)):m(t)?function(e,t){var n=L(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):ye(function(e){var t,n=j(e),r=O(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=b(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=b(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+k(e),u=-r.scrollTop;return"rtl"===A(o||n).direction&&(c+=b(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:c,y:u}}(j(e)))}function ge(e,t,n,r){var o="clippingParents"===t?function(e){var t=D(M(e)),n=["absolute","fixed"].indexOf(A(e).position)>=0&&h(e)?N(e):e;return m(n)?t.filter((function(e){return m(e)&&he(e,n)&&"body"!==E(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],c=i.reduce((function(t,n){var o=be(e,n,r);return t.top=b(o.top,t.top),t.right=g(o.right,t.right),t.bottom=g(o.bottom,t.bottom),t.left=b(o.left,t.left),t}),be(e,a,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function _e(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function we(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function xe(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,c=n.boundary,u=void 0===c?q:c,l=n.rootBoundary,s=void 0===l?$:l,p=n.elementContext,f=void 0===p?G:p,d=n.altBoundary,v=void 0!==d&&d,h=n.padding,y=void 0===h?0:h,b=_e("number"!=typeof y?y:we(y,V)),g=f===G?X:G,_=e.rects.popper,w=e.elements[v?g:f],x=ge(m(w)?w:w.contextElement||j(e.elements.popper),u,s,a),O=L(e.elements.reference),E=ce({reference:O,element:_,strategy:"absolute",placement:o}),k=ye(Object.assign({},_,E)),A=f===G?k:O,P={top:x.top-A.top+b.top,bottom:A.bottom-x.bottom+b.bottom,left:x.left-A.left+b.left,right:A.right-x.right+b.right},S=e.modifiersData.offset;if(f===G&&S){var C=S[o];Object.keys(P).forEach((function(e){var t=[I,F].indexOf(e)>=0?1:-1,n=[Z,F].indexOf(e)>=0?"y":"x";P[e]+=C[n]*t}))}return P}function Le(e,t,n){return b(e,g(t,n))}var Oe={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,c=void 0!==a&&a,u=n.boundary,l=n.rootBoundary,s=n.altBoundary,p=n.padding,f=n.tether,d=void 0===f||f,v=n.tetherOffset,m=void 0===v?0:v,h=xe(t,{boundary:u,rootBoundary:l,padding:p,altBoundary:s}),y=oe(t.placement),_=ie(t.placement),w=!_,x=ae(y),L="x"===x?"y":"x",O=t.modifiersData.popperOffsets,E=t.rects.reference,j=t.rects.popper,k="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,A="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,S={x:0,y:0};if(O){if(i){var M,T="y"===x?Z:W,D="y"===x?F:I,B="y"===x?"height":"width",R=O[x],z=R+h[T],V=R-h[D],U=d?-j[B]/2:0,q=_===H?E[B]:j[B],$=_===H?-j[B]:-E[B],G=t.elements.arrow,X=d&&G?C(G):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Y=J[T],K=J[D],Q=Le(0,E[B],X[B]),ee=w?E[B]/2-U-Q-Y-A.mainAxis:q-Q-Y-A.mainAxis,te=w?-E[B]/2+U+Q+K+A.mainAxis:$+Q+K+A.mainAxis,ne=t.elements.arrow&&N(t.elements.arrow),re=ne?"y"===x?ne.clientTop||0:ne.clientLeft||0:0,ce=null!=(M=null==P?void 0:P[x])?M:0,ue=R+te-ce,le=Le(d?g(z,R+ee-ce-re):z,R,d?b(V,ue):V);O[x]=le,S[x]=le-R}if(c){var se,pe="x"===x?Z:W,fe="x"===x?F:I,de=O[L],ve="y"===L?"height":"width",me=de+h[pe],he=de-h[fe],ye=-1!==[Z,W].indexOf(y),be=null!=(se=null==P?void 0:P[L])?se:0,ge=ye?me:de-E[ve]-j[ve]-be+A.altAxis,_e=ye?de+E[ve]+j[ve]-be-A.altAxis:he,we=d&&ye?function(e,t,n){var r=Le(e,t,n);return r>n?n:r}(ge,de,_e):Le(d?ge:me,de,d?_e:he);O[L]=we,S[L]=we-de}t.modifiersData[r]=S}},requiresIfExists:["offset"]};var Ee={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,c=oe(n.placement),u=ae(c),l=[W,I].indexOf(c)>=0?"height":"width";if(i&&a){var s=function(e,t){return _e("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:we(e,V))}(o.padding,n),p=C(i),f="y"===u?Z:W,d="y"===u?F:I,v=n.rects.reference[l]+n.rects.reference[u]-a[u]-n.rects.popper[l],m=a[u]-n.rects.reference[u],h=N(i),y=h?"y"===u?h.clientHeight||0:h.clientWidth||0:0,b=v/2-m/2,g=s[f],_=y-p[l]-s[d],w=y/2-p[l]/2+b,x=Le(g,w,_),L=u;n.modifiersData[r]=((t={})[L]=x,t.centerOffset=x-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&he(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function je(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ke(e){return[Z,I,F,W].some((function(t){return e[t]>=0}))}var Ae=ne({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,c=void 0===a||a,u=v(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&l.forEach((function(e){e.addEventListener("scroll",n.update,re)})),c&&u.addEventListener("resize",n.update,re),function(){i&&l.forEach((function(e){e.removeEventListener("scroll",n.update,re)})),c&&u.removeEventListener("resize",n.update,re)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=ce({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,c=n.roundOffsets,u=void 0===c||c,l={placement:oe(t.placement),variation:ie(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,le(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,le(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},se,pe,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,c=void 0===a||a,u=n.fallbackPlacements,l=n.padding,s=n.boundary,p=n.rootBoundary,f=n.altBoundary,d=n.flipVariations,v=void 0===d||d,m=n.allowedAutoPlacements,h=t.options.placement,y=oe(h),b=u||(y===h||!v?[de(h)]:function(e){if(oe(e)===z)return[];var t=de(e);return[me(e),t,me(t)]}(h)),g=[h].concat(b).reduce((function(e,n){return e.concat(oe(n)===z?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,c=n.flipVariations,u=n.allowedAutoPlacements,l=void 0===u?Y:u,s=ie(r),p=s?c?J:J.filter((function(e){return ie(e)===s})):V,f=p.filter((function(e){return l.indexOf(e)>=0}));0===f.length&&(f=p);var d=f.reduce((function(t,n){return t[n]=xe(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[oe(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}(t,{placement:n,boundary:s,rootBoundary:p,padding:l,flipVariations:v,allowedAutoPlacements:m}):n)}),[]),_=t.rects.reference,w=t.rects.popper,x=new Map,L=!0,O=g[0],E=0;E=0,S=P?"width":"height",C=xe(t,{placement:j,boundary:s,rootBoundary:p,altBoundary:f,padding:l}),M=P?A?I:W:A?F:Z;_[S]>w[S]&&(M=de(M));var T=de(M),D=[];if(i&&D.push(C[k]<=0),c&&D.push(C[M]<=0,C[T]<=0),D.every((function(e){return e}))){O=j,L=!1;break}x.set(j,D)}if(L)for(var B=function(e){var t=g.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return O=t,"break"},R=v?3:1;R>0;R--){if("break"===B(R))break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},Oe,Ee,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=xe(t,{elementContext:"reference"}),c=xe(t,{altBoundary:!0}),u=je(a,r),l=je(c,o,i),s=ke(u),p=ke(l);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:s,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":s,"data-popper-escaped":p})}}]}),Pe="tippy-content",Se="tippy-backdrop",Ce="tippy-arrow",Me="tippy-svg-arrow",Te={passive:!0,capture:!0},De=function(){return document.body};function Be(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function Re(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function Ne(e,t){return"function"==typeof e?e.apply(void 0,t):e}function Ze(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function Fe(e){return[].concat(e)}function Ie(e,t){-1===e.indexOf(t)&&e.push(t)}function We(e){return e.split("-")[0]}function ze(e){return[].slice.call(e)}function Ve(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function He(){return document.createElement("div")}function Ue(e){return["Element","Fragment"].some((function(t){return Re(e,t)}))}function qe(e){return Re(e,"MouseEvent")}function $e(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function Ge(e){return Ue(e)?[e]:function(e){return Re(e,"NodeList")}(e)?ze(e):Array.isArray(e)?e:ze(document.querySelectorAll(e))}function Xe(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function Je(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function Ye(e){var t,n=Fe(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function Ke(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}function Qe(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var et={isTouch:!1},tt=0;function nt(){et.isTouch||(et.isTouch=!0,window.performance&&document.addEventListener("mousemove",rt))}function rt(){var e=performance.now();e-tt<20&&(et.isTouch=!1,document.removeEventListener("mousemove",rt)),tt=e}function ot(){var e=document.activeElement;if($e(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var it=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var at={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},ct=Object.assign({appendTo:De,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},at,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),ut=Object.keys(ct);function lt(e){var t=(e.plugins||[]).reduce((function(t,n){var r,o=n.name,i=n.defaultValue;o&&(t[o]=void 0!==e[o]?e[o]:null!=(r=ct[o])?r:i);return t}),{});return Object.assign({},e,t)}function st(e,t){var n=Object.assign({},t,{content:Ne(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(lt(Object.assign({},ct,{plugins:t}))):ut).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},ct.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}var pt=function(){return"innerHTML"};function ft(e,t){e[pt()]=t}function dt(e){var t=He();return!0===e?t.className=Ce:(t.className=Me,Ue(e)?t.appendChild(e):ft(t,e)),t}function vt(e,t){Ue(t.content)?(ft(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?ft(e,t.content):e.textContent=t.content)}function mt(e){var t=e.firstElementChild,n=ze(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(Pe)})),arrow:n.find((function(e){return e.classList.contains(Ce)||e.classList.contains(Me)})),backdrop:n.find((function(e){return e.classList.contains(Se)}))}}function ht(e){var t=He(),n=He();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=He();function o(n,r){var o=mt(t),i=o.box,a=o.content,c=o.arrow;r.theme?i.setAttribute("data-theme",r.theme):i.removeAttribute("data-theme"),"string"==typeof r.animation?i.setAttribute("data-animation",r.animation):i.removeAttribute("data-animation"),r.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?i.setAttribute("role",r.role):i.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||vt(a,e.props),r.arrow?c?n.arrow!==r.arrow&&(i.removeChild(c),i.appendChild(dt(r.arrow))):i.appendChild(dt(r.arrow)):c&&i.removeChild(c)}return r.className=Pe,r.setAttribute("data-state","hidden"),vt(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props),{popper:t,onUpdate:o}}ht.$$tippy=!0;var yt=1,bt=[],gt=[];function _t(e,t){var n,r,o,i,a,c,u,l,s=st(e,Object.assign({},ct,lt(Ve(t)))),p=!1,f=!1,d=!1,v=!1,m=[],h=Ze($,s.interactiveDebounce),y=yt++,b=(l=s.plugins).filter((function(e,t){return l.indexOf(e)===t})),g={id:y,reference:e,popper:He(),popperInstance:null,props:s,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:b,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(o)},setProps:function(t){0;if(g.state.isDestroyed)return;T("onBeforeUpdate",[g,t]),U();var n=g.props,r=st(e,Object.assign({},n,Ve(t),{ignoreAttributes:!0}));g.props=r,H(),n.interactiveDebounce!==r.interactiveDebounce&&(R(),h=Ze($,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?Fe(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded");B(),M(),x&&x(n,r);g.popperInstance&&(Y(),Q().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));T("onAfterUpdate",[g,t])},setContent:function(e){g.setProps({content:e})},show:function(){0;var e=g.state.isVisible,t=g.state.isDestroyed,n=!g.state.isEnabled,r=et.isTouch&&!g.props.touch,o=Be(g.props.duration,0,ct.duration);if(e||t||n||r)return;if(A().hasAttribute("disabled"))return;if(T("onShow",[g],!1),!1===g.props.onShow(g))return;g.state.isVisible=!0,k()&&(w.style.visibility="visible");M(),I(),g.state.isMounted||(w.style.transition="none");if(k()){var i=S();Xe([i.box,i.content],0)}c=function(){var e;if(g.state.isVisible&&!v){if(v=!0,w.offsetHeight,w.style.transition=g.props.moveTransition,k()&&g.props.animation){var t=S(),n=t.box,r=t.content;Xe([n,r],o),Je([n,r],"visible")}D(),B(),Ie(gt,g),null==(e=g.popperInstance)||e.forceUpdate(),T("onMount",[g]),g.props.animation&&k()&&function(e,t){z(e,t)}(o,(function(){g.state.isShown=!0,T("onShown",[g])}))}},function(){var e,t=g.props.appendTo,n=A();e=g.props.interactive&&t===De||"parent"===t?n.parentNode:Ne(t,[n]);e.contains(w)||e.appendChild(w);g.state.isMounted=!0,Y(),!1}()},hide:function(){0;var e=!g.state.isVisible,t=g.state.isDestroyed,n=!g.state.isEnabled,r=Be(g.props.duration,1,ct.duration);if(e||t||n)return;if(T("onHide",[g],!1),!1===g.props.onHide(g))return;g.state.isVisible=!1,g.state.isShown=!1,v=!1,p=!1,k()&&(w.style.visibility="hidden");if(R(),W(),M(!0),k()){var o=S(),i=o.box,a=o.content;g.props.animation&&(Xe([i,a],r),Je([i,a],"hidden"))}D(),B(),g.props.animation?k()&&function(e,t){z(e,(function(){!g.state.isVisible&&w.parentNode&&w.parentNode.contains(w)&&t()}))}(r,g.unmount):g.unmount()},hideWithInteractivity:function(e){0;P().addEventListener("mousemove",h),Ie(bt,h),h(e)},enable:function(){g.state.isEnabled=!0},disable:function(){g.hide(),g.state.isEnabled=!1},unmount:function(){0;g.state.isVisible&&g.hide();if(!g.state.isMounted)return;K(),Q().forEach((function(e){e._tippy.unmount()})),w.parentNode&&w.parentNode.removeChild(w);gt=gt.filter((function(e){return e!==g})),g.state.isMounted=!1,T("onHidden",[g])},destroy:function(){0;if(g.state.isDestroyed)return;g.clearDelayTimeouts(),g.unmount(),U(),delete e._tippy,g.state.isDestroyed=!0,T("onDestroy",[g])}};if(!s.render)return g;var _=s.render(g),w=_.popper,x=_.onUpdate;w.setAttribute("data-tippy-root",""),w.id="tippy-"+g.id,g.popper=w,e._tippy=g,w._tippy=g;var L=b.map((function(e){return e.fn(g)})),O=e.hasAttribute("aria-expanded");return H(),B(),M(),T("onCreate",[g]),s.showOnCreate&&ee(),w.addEventListener("mouseenter",(function(){g.props.interactive&&g.state.isVisible&&g.clearDelayTimeouts()})),w.addEventListener("mouseleave",(function(){g.props.interactive&&g.props.trigger.indexOf("mouseenter")>=0&&P().addEventListener("mousemove",h)})),g;function E(){var e=g.props.touch;return Array.isArray(e)?e:[e,0]}function j(){return"hold"===E()[0]}function k(){var e;return!(null==(e=g.props.render)||!e.$$tippy)}function A(){return u||e}function P(){var e=A().parentNode;return e?Ye(e):document}function S(){return mt(w)}function C(e){return g.state.isMounted&&!g.state.isVisible||et.isTouch||i&&"focus"===i.type?0:Be(g.props.delay,e?0:1,ct.delay)}function M(e){void 0===e&&(e=!1),w.style.pointerEvents=g.props.interactive&&!e?"":"none",w.style.zIndex=""+g.props.zIndex}function T(e,t,n){var r;(void 0===n&&(n=!0),L.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(r=g.props)[e].apply(r,t)}function D(){var t=g.props.aria;if(t.content){var n="aria-"+t.content,r=w.id;Fe(g.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(g.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var o=t&&t.replace(r,"").trim();o?e.setAttribute(n,o):e.removeAttribute(n)}}))}}function B(){!O&&g.props.aria.expanded&&Fe(g.props.triggerTarget||e).forEach((function(e){g.props.interactive?e.setAttribute("aria-expanded",g.state.isVisible&&e===A()?"true":"false"):e.removeAttribute("aria-expanded")}))}function R(){P().removeEventListener("mousemove",h),bt=bt.filter((function(e){return e!==h}))}function N(t){if(!et.isTouch||!d&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!g.props.interactive||!Qe(w,n)){if(Fe(g.props.triggerTarget||e).some((function(e){return Qe(e,n)}))){if(et.isTouch)return;if(g.state.isVisible&&g.props.trigger.indexOf("click")>=0)return}else T("onClickOutside",[g,t]);!0===g.props.hideOnClick&&(g.clearDelayTimeouts(),g.hide(),f=!0,setTimeout((function(){f=!1})),g.state.isMounted||W())}}}function Z(){d=!0}function F(){d=!1}function I(){var e=P();e.addEventListener("mousedown",N,!0),e.addEventListener("touchend",N,Te),e.addEventListener("touchstart",F,Te),e.addEventListener("touchmove",Z,Te)}function W(){var e=P();e.removeEventListener("mousedown",N,!0),e.removeEventListener("touchend",N,Te),e.removeEventListener("touchstart",F,Te),e.removeEventListener("touchmove",Z,Te)}function z(e,t){var n=S().box;function r(e){e.target===n&&(Ke(n,"remove",r),t())}if(0===e)return t();Ke(n,"remove",a),Ke(n,"add",r),a=r}function V(t,n,r){void 0===r&&(r=!1),Fe(g.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),m.push({node:e,eventType:t,handler:n,options:r})}))}function H(){var e;j()&&(V("touchstart",q,{passive:!0}),V("touchend",G,{passive:!0})),(e=g.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(V(e,q),e){case"mouseenter":V("mouseleave",G);break;case"focus":V(it?"focusout":"blur",X);break;case"focusin":V("focusout",X)}}))}function U(){m.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,o=e.options;t.removeEventListener(n,r,o)})),m=[]}function q(e){var t,n=!1;if(g.state.isEnabled&&!J(e)&&!f){var r="focus"===(null==(t=i)?void 0:t.type);i=e,u=e.currentTarget,B(),!g.state.isVisible&&qe(e)&&bt.forEach((function(t){return t(e)})),"click"===e.type&&(g.props.trigger.indexOf("mouseenter")<0||p)&&!1!==g.props.hideOnClick&&g.state.isVisible?n=!0:ee(e),"click"===e.type&&(p=!n),n&&!r&&te(e)}}function $(e){var t=e.target,n=A().contains(t)||w.contains(t);if("mousemove"!==e.type||!n){var r=Q().concat(w).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:s}:null})).filter(Boolean);(function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,o=e.popperState,i=e.props.interactiveBorder,a=We(o.placement),c=o.modifiersData.offset;if(!c)return!0;var u="bottom"===a?c.top.y:0,l="top"===a?c.bottom.y:0,s="right"===a?c.left.x:0,p="left"===a?c.right.x:0,f=t.top-r+u>i,d=r-t.bottom-l>i,v=t.left-n+s>i,m=n-t.right-p>i;return f||d||v||m}))})(r,e)&&(R(),te(e))}}function G(e){J(e)||g.props.trigger.indexOf("click")>=0&&p||(g.props.interactive?g.hideWithInteractivity(e):te(e))}function X(e){g.props.trigger.indexOf("focusin")<0&&e.target!==A()||g.props.interactive&&e.relatedTarget&&w.contains(e.relatedTarget)||te(e)}function J(e){return!!et.isTouch&&j()!==e.type.indexOf("touch")>=0}function Y(){K();var t=g.props,n=t.popperOptions,r=t.placement,o=t.offset,i=t.getReferenceClientRect,a=t.moveTransition,u=k()?mt(w).arrow:null,l=i?{getBoundingClientRect:i,contextElement:i.contextElement||A()}:e,s={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(k()){var n=S().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}},p=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},s];k()&&u&&p.push({name:"arrow",options:{element:u,padding:3}}),p.push.apply(p,(null==n?void 0:n.modifiers)||[]),g.popperInstance=Ae(l,w,Object.assign({},n,{placement:r,onFirstUpdate:c,modifiers:p}))}function K(){g.popperInstance&&(g.popperInstance.destroy(),g.popperInstance=null)}function Q(){return ze(w.querySelectorAll("[data-tippy-root]"))}function ee(e){g.clearDelayTimeouts(),e&&T("onTrigger",[g,e]),I();var t=C(!0),r=E(),o=r[0],i=r[1];et.isTouch&&"hold"===o&&i&&(t=i),t?n=setTimeout((function(){g.show()}),t):g.show()}function te(e){if(g.clearDelayTimeouts(),T("onUntrigger",[g,e]),g.state.isVisible){if(!(g.props.trigger.indexOf("mouseenter")>=0&&g.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&p)){var t=C(!1);t?r=setTimeout((function(){g.state.isVisible&&g.hide()}),t):o=requestAnimationFrame((function(){g.hide()}))}}else W()}}function wt(e,t){void 0===t&&(t={});var n=ct.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",nt,Te),window.addEventListener("blur",ot);var r=Object.assign({},t,{plugins:n}),o=Ge(e).reduce((function(e,t){var n=t&&_t(t,r);return n&&e.push(n),e}),[]);return Ue(e)?o[0]:o}wt.defaultProps=ct,wt.setDefaultProps=function(e){Object.keys(e).forEach((function(t){ct[t]=e[t]}))},wt.currentInput=et;Object.assign({},se,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});wt.setDefaultProps({render:ht});var xt=wt,Lt=window.ReactDOM;function Ot(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var Et="undefined"!=typeof window&&"undefined"!=typeof document;function jt(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function kt(){return Et&&document.createElement("div")}function At(e,t){if(e===t)return!0;if("object"==typeof e&&null!=e&&"object"==typeof t&&null!=t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e){if(!t.hasOwnProperty(n))return!1;if(!At(e[n],t[n]))return!1}return!0}return!1}function Pt(e){var t=[];return e.forEach((function(e){t.find((function(t){return At(e,t)}))||t.push(e)})),t}function St(e,t){var n,r;return Object.assign({},t,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:Pt([].concat((null==(n=e.popperOptions)?void 0:n.modifiers)||[],(null==(r=t.popperOptions)?void 0:r.modifiers)||[]))})})}var Ct=Et?i.useLayoutEffect:i.useEffect;function Mt(e){var t=(0,i.useRef)();return t.current||(t.current="function"==typeof e?e():e),t.current}function Tt(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var Dt={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,n=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function r(){e.props.className&&!n()||Tt(t,"add",e.props.className)}return{onCreate:r,onBeforeUpdate:function(){n()&&Tt(t,"remove",e.props.className)},onAfterUpdate:r}}};function Bt(e){return function(t){var n=t.children,r=t.content,o=t.visible,c=t.singleton,u=t.render,l=t.reference,s=t.disabled,p=void 0!==s&&s,f=t.ignoreAttributes,d=void 0===f||f,v=(t.__source,t.__self,Ot(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),m=void 0!==o,h=void 0!==c,y=(0,i.useState)(!1),b=y[0],g=y[1],_=(0,i.useState)({}),w=_[0],x=_[1],L=(0,i.useState)(),O=L[0],E=L[1],j=Mt((function(){return{container:kt(),renders:1}})),k=Object.assign({ignoreAttributes:d},v,{content:j.container});m&&(k.trigger="manual",k.hideOnClick=!1),h&&(p=!0);var A=k,P=k.plugins||[];u&&(A=Object.assign({},k,{plugins:h&&null!=c.data?[].concat(P,[{fn:function(){return{onTrigger:function(e,t){var n=c.data.children.find((function(e){return e.instance.reference===t.currentTarget}));e.state.$$activeSingletonInstance=n.instance,E(n.content)}}}}]):P,render:function(){return{popper:j.container}}}));var S=[l].concat(n?[n.type]:[]);return Ct((function(){var t=l;l&&l.hasOwnProperty("current")&&(t=l.current);var n=e(t||j.ref||kt(),Object.assign({},A,{plugins:[Dt].concat(k.plugins||[])}));return j.instance=n,p&&n.disable(),o&&n.show(),h&&c.hook({instance:n,content:r,props:A,setSingletonContent:E}),g(!0),function(){n.destroy(),null==c||c.cleanup(n)}}),S),Ct((function(){var e;if(1!==j.renders){var t=j.instance;t.setProps(St(t.props,A)),null==(e=t.popperInstance)||e.forceUpdate(),p?t.disable():t.enable(),m&&(o?t.show():t.hide()),h&&c.hook({instance:t,content:r,props:A,setSingletonContent:E})}else j.renders++})),Ct((function(){var e;if(u){var t=j.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter((function(e){return"$$tippyReact"!==e.name})),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state,r=null==(t=n.modifiersData)?void 0:t.hide;w.placement===n.placement&&w.referenceHidden===(null==r?void 0:r.isReferenceHidden)&&w.escaped===(null==r?void 0:r.hasPopperEscaped)||x({placement:n.placement,referenceHidden:null==r?void 0:r.isReferenceHidden,escaped:null==r?void 0:r.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[w.placement,w.referenceHidden,w.escaped].concat(S)),a().createElement(a().Fragment,null,n?(0,i.cloneElement)(n,{ref:function(e){j.ref=e,jt(n.ref,e)}}):null,b&&(0,Lt.createPortal)(u?u(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(w),O,j.instance):r,j.container))}}var Rt=function(e,t){return(0,i.forwardRef)((function(n,r){var o=n.children,c=Ot(n,["children"]);return a().createElement(e,Object.assign({},t,c),o?(0,i.cloneElement)(o,{ref:function(e){jt(r,e),jt(o.ref,e)}}):null)}))},Nt=Rt(Bt(xt)),Zt=(window.wp["components/buildStyle/style.css"],window.wp.components),Ft=window.wp.blockEditor,It=function(){return a().createElement("svg",{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},a().createElement("title",null,"shape-round"),a().createElement("desc",null,"Created with Sketch."),a().createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},a().createElement("g",{id:"widgets/shape-round",transform:"translate(-3.000000, -3.000000)",fill:"#000000"},a().createElement("path",{d:"M12,3 C16.9705627,3 21,7.02943725 21,12 C21,16.9705627 16.9705627,21 12,21 C7.02943725,21 3,16.9705627 3,12 C3,7.02943725 7.02943725,3 12,3 Z M12,5 C8.13400675,5 5,8.13400675 5,12 C5,15.8659932 8.13400675,19 12,19 C15.8659932,19 19,15.8659932 19,12 C19,8.13400675 15.8659932,5 12,5 Z",id:"Combined-Shape"}))))},Wt=function(){return a().createElement("svg",{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},a().createElement("title",null,"ratio-square"),a().createElement("desc",null,"Created with Sketch."),a().createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},a().createElement("g",{id:"widgets/shape-square",transform:"translate(-3.000000, -3.000000)",fill:"#000000"},a().createElement("path",{d:"M3,3 L3,21 L21,21 L21,3 L3,3 Z M5,5 L5,19 L19,19 L19,5 L5,5 Z",id:"shape"}))))},zt=function(){return a().createElement("svg",{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},a().createElement("title",null,"shape-radius"),a().createElement("desc",null,"Created with Sketch."),a().createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},a().createElement("g",{id:"widgets/shape-radius",transform:"translate(-3.000000, -3.000000)",fill:"#000000"},a().createElement("path",{d:"M17,3 C19.209139,3 21,4.790861 21,7 L21,17 C21,19.209139 19.209139,21 17,21 L7,21 C4.790861,21 3,19.209139 3,17 L3,7 C3,4.790861 4.790861,3 7,3 L17,3 Z M17,5 L7,5 C5.9456382,5 5.08183488,5.81587779 5.00548574,6.85073766 L5,7 L5,17 C5,18.0543618 5.81587779,18.9181651 6.85073766,18.9945143 L7,19 L17,19 C18.0543618,19 18.9181651,18.1841222 18.9945143,17.1492623 L19,17 L19,7 C19,5.9456382 18.1841222,5.08183488 17.1492623,5.00548574 L17,5 Z",id:"Rectangle"}))))},Vt=function(){return a().createElement("svg",{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},a().createElement("title",null,"shape-none"),a().createElement("desc",null,"Created with Sketch."),a().createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},a().createElement("g",{id:"widgets/shape-none",transform:"translate(-3.000000, -3.000000)",fill:"#000000"},a().createElement("path",{d:"M5,19 L5,21 L3,21 L3,19 L5,19 Z M21,19 L21,21 L19,21 L19,19 L21,19 Z M13,19 L13,21 L11,21 L11,19 L13,19 Z M9,19 L9,21 L7,21 L7,19 L9,19 Z M17,19 L17,21 L15,21 L15,19 L17,19 Z M21,15 L21,17 L19,17 L19,15 L21,15 Z M21,11 L21,13 L19,13 L19,11 L21,11 Z M5,11 L5,13 L3,13 L3,11 L5,11 Z M21,7 L21,9 L19,9 L19,7 L21,7 Z M5,7 L5,9 L3,9 L3,7 L5,7 Z M13,3 L13,5 L11,5 L11,3 L13,3 Z M9,3 L9,5 L7,5 L7,3 L9,3 Z M17,3 L17,5 L15,5 L15,3 L17,3 Z M21,3 L21,5 L19,5 L19,3 L21,3 Z M5,3 L5,5 L3,5 L3,3 L5,3 Z M3,15 L5,15 L5,17 L3,17 L3,15 Z",id:"Shape"}))))},Ht=[{value:{type:"expanded",columns:1},icon:function(){return a().createElement("svg",{width:"17px",height:"20px",viewBox:"0 0 17 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},a().createElement("title",null,"layout-modern"),a().createElement("desc",null,"Created with Sketch."),a().createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},a().createElement("g",{id:"widgets/layout-modern",transform:"translate(-2.000000, -3.000000)",fill:"#000000"},a().createElement("path",{d:"M2,10 L5,10 L5,7 L2,7 L2,10 Z M2,14 L5,14 L5,11 L2,11 L2,14 Z M2,6 L5,6 L5,3 L2,3 L2,6 Z M6,3 L6,17 L19,17 L19,3 L6,3 Z M8,5 L8,15 L17,15 L17,5 L8,5 Z M6,18 L6,23 L19,23 L19,18 L6,18 Z M8,20 L8,23 L17,23 L17,20 L8,20 Z",id:"shape"}))))},label:(0,p.__)("Expanded - 1 Column","cloudinary")},{value:{type:"expanded",columns:2},icon:function(){return a().createElement("svg",{width:"18px",height:"17px",viewBox:"0 0 18 17",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},a().createElement("title",null,"layout-grid-2-column"),a().createElement("desc",null,"Created with Sketch."),a().createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},a().createElement("g",{id:"widgets/layout-gird-2-col",transform:"translate(-3.000000, -3.000000)",fill:"#000000"},a().createElement("path",{d:"M11,12 L11,20 L3,20 L3,12 L11,12 Z M21,12 L21,20 L13,20 L13,12 L21,12 Z M9,14 L5,14 L5,18 L9,18 L9,14 Z M19,14 L15,14 L15,18 L19,18 L19,14 Z M11,3 L11,11 L3,11 L3,3 L11,3 Z M21,3 L21,11 L13,11 L13,3 L21,3 Z M9,5 L5,5 L5,9 L9,9 L9,5 Z M19,5 L15,5 L15,9 L19,9 L19,5 Z",id:"Shape"}))))},label:(0,p.__)("Expanded - 2 Column","cloudinary")},{value:{type:"expanded",columns:3},icon:function(){return a().createElement("svg",{width:"20px",height:"13px",viewBox:"0 0 20 13",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},a().createElement("title",null,"layout-grid-3-column"),a().createElement("desc",null,"Created with Sketch."),a().createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},a().createElement("g",{id:"widgets/layout-gird-3-col",transform:"translate(-2.000000, -5.000000)",fill:"#000000"},a().createElement("path",{d:"M8,12 L8,18 L2,18 L2,12 L8,12 Z M15,12 L15,18 L9,18 L9,12 L15,12 Z M22,12 L22,18 L16,18 L16,12 L22,12 Z M6,14 L4,14 L4,16 L6,16 L6,14 Z M13,14 L11,14 L11,16 L13,16 L13,14 Z M20,14 L18,14 L18,16 L20,16 L20,14 Z M8,5 L8,11 L2,11 L2,5 L8,5 Z M15,5 L15,11 L9,11 L9,5 L15,5 Z M22,5 L22,11 L16,11 L16,5 L22,5 Z M6,7 L4,7 L4,9 L6,9 L6,7 Z M13,7 L11,7 L11,9 L13,9 L13,7 Z M20,7 L18,7 L18,9 L20,9 L20,7 Z",id:"Combined-Shape"}))))},label:(0,p.__)("Expanded - 3 Column","cloudinary")},{value:{type:"classic",columns:1},icon:function(){return a().createElement("svg",{width:"17px",height:"14px",viewBox:"0 0 17 14",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},a().createElement("title",null,"layout-classic"),a().createElement("desc",null,"Created with Sketch."),a().createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},a().createElement("g",{id:"widgets/layout-classic",transform:"translate(-3.000000, -5.000000)",fill:"#000000"},a().createElement("path",{d:"M3,12 L6,12 L6,9 L3,9 L3,12 Z M3,16 L6,16 L6,13 L3,13 L3,16 Z M3,8 L6,8 L6,5 L3,5 L3,8 Z M7,5 L7,19 L20,19 L20,5 L7,5 Z M9,7 L9,17 L18,17 L18,7 L9,7 Z",id:"shape"}))))},label:(0,p.__)("Classic","cloudinary")}],Ut=[{label:(0,p.__)("1:1","cloudinary"),value:"1:1"},{label:(0,p.__)("3:4","cloudinary"),value:"3:4"},{label:(0,p.__)("4:3","cloudinary"),value:"4:3"},{label:(0,p.__)("4:6","cloudinary"),value:"4:6"},{label:(0,p.__)("6:4","cloudinary"),value:"6:4"},{label:(0,p.__)("5:7","cloudinary"),value:"5:7"},{label:(0,p.__)("7:5","cloudinary"),value:"7:5"},{label:(0,p.__)("8:5","cloudinary"),value:"8:5"},{label:(0,p.__)("5:8","cloudinary"),value:"5:8"},{label:(0,p.__)("9:16","cloudinary"),value:"9:16"},{label:(0,p.__)("16:9","cloudinary"),value:"16:9"}],qt=[{label:(0,p.__)("None","cloudinary"),value:"none"},{label:(0,p.__)("Fade","cloudinary"),value:"fade"},{label:(0,p.__)("Slide","cloudinary"),value:"slide"}],$t=[{label:(0,p.__)("Always","cloudinary"),value:"always"},{label:(0,p.__)("None","cloudinary"),value:"none"},{label:(0,p.__)("MouseOver","cloudinary"),value:"mouseover"}],Gt=[{label:(0,p.__)("Inline","cloudinary"),value:"inline"},{label:(0,p.__)("Flyout","cloudinary"),value:"flyout"},{label:(0,p.__)("Popup","cloudinary"),value:"popup"}],Xt=[{label:(0,p.__)("Top","cloudinary"),value:"top"},{label:(0,p.__)("Bottom","cloudinary"),value:"bottom"},{label:(0,p.__)("Left","cloudinary"),value:"left"},{label:(0,p.__)("Right","cloudinary"),value:"right"}],Jt=[{label:(0,p.__)("Click","cloudinary"),value:"click"},{label:(0,p.__)("Hover","cloudinary"),value:"hover"}],Yt=[{label:(0,p.__)("Left","cloudinary"),value:"left"},{label:(0,p.__)("Right","cloudinary"),value:"right"},{label:(0,p.__)("Top","cloudinary"),value:"top"},{label:(0,p.__)("Bottom","cloudinary"),value:"bottom"}],Kt=[{label:(0,p.__)("Thumbnails","cloudinary"),value:"thumbnails"},{label:(0,p.__)("Indicators","cloudinary"),value:"indicators"},{label:(0,p.__)("None","cloudinary"),value:"none"}],Qt=[{value:"round",icon:It,label:(0,p.__)("Round","cloudinary")},{value:"radius",icon:zt,label:(0,p.__)("Radius","cloudinary")},{value:"none",icon:Vt,label:(0,p.__)("None","cloudinary")},{value:"square",icon:Wt,label:(0,p.__)("Square","cloudinary")},{value:"rectangle",icon:function(){return a().createElement("svg",{width:"14px",height:"20px",viewBox:"0 0 14 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},a().createElement("title",null,"ratio-9-16"),a().createElement("desc",null,"Created with Sketch."),a().createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},a().createElement("g",{id:"ratio/9-16",transform:"translate(-5.000000, -2.000000)",fill:"#000000"},a().createElement("path",{d:"M22,5.5 L22,18.5 L2,18.5 L2,5.5 L22,5.5 Z M20,7.5 L4,7.5 L4,16.5 L20,16.5 L20,7.5 Z",id:"Combined-Shape",transform:"translate(12.000000, 12.000000) rotate(-90.000000) translate(-12.000000, -12.000000) "}))))},label:(0,p.__)("Rectangle","cloudinary")}],en=[{value:"round",icon:It,label:(0,p.__)("Round","cloudinary")},{value:"radius",icon:zt,label:(0,p.__)("Radius","cloudinary")},{value:"square",icon:Wt,label:(0,p.__)("Square","cloudinary")}],tn=[{label:(0,p.__)("All","cloudinary"),value:"all"},{label:(0,p.__)("Border","cloudinary"),value:"border"},{label:(0,p.__)("Gradient","cloudinary"),value:"gradient"}],nn=[{label:(0,p.__)("All","cloudinary"),value:"all"},{label:(0,p.__)("Top","cloudinary"),value:"top"},{label:(0,p.__)("Top-Bottom","cloudinary"),value:"top-bottom"},{label:(0,p.__)("Left-Right","cloudinary"),value:"left-right"},{label:(0,p.__)("Bottom","cloudinary"),value:"bottom"},{label:(0,p.__)("Left","cloudinary"),value:"left"},{label:(0,p.__)("Right","cloudinary"),value:"right"}],rn=[{value:"round",icon:It,label:(0,p.__)("Round","cloudinary")},{value:"radius",icon:zt,label:(0,p.__)("Radius","cloudinary")},{value:"none",icon:Vt,label:(0,p.__)("None","cloudinary")},{value:"square",icon:Wt,label:(0,p.__)("Square","cloudinary")}],on=[{label:(0,p.__)("Pad","cloudinary"),value:"pad"},{label:(0,p.__)("Fill","cloudinary"),value:"fill"}],an=[{label:(0,p.__)("White padding","cloudinary"),value:"rgb:FFFFFF"},{label:(0,p.__)("Border color padding","cloudinary"),value:"auto"},{label:(0,p.__)("Predominant color padding","cloudinary"),value:"auto:predominant"},{label:(0,p.__)("Gradient fade padding","cloudinary"),value:"auto:predominant_gradient"}],cn=n(2485),un=n.n(cn),ln=function(e){var t=e.value,n=e.children,r=e.icon,o=e.onChange,i=e.current,c="object"===s(t)?JSON.stringify(t)===JSON.stringify(i):i===t;return a().createElement("button",{type:"button",onClick:function(){return o(t)},className:un()("radio-select",{"radio-select--active":c})},a().createElement(r,null),a().createElement("div",{className:"radio-select__label"},n))},sn=(window.wp.data,["selectedImages"]);var pn=function(e){var t=/var\((.*)\)/g.exec(e);return t?getComputedStyle(document.documentElement).getPropertyValue(t[1]):e};function fn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dn(e){for(var t=1;t100){console.error(j);break}if(!0!==g.reset){var l=g.orderedModifiers[a],u=l.fn,d=l.options,c=void 0===d?{}:d,p=l.name;"function"==typeof u&&(g=u({state:g,options:c,name:p,instance:E})||g)}else g.reset=!1,a=-1}}else console.error(b)}},update:(0,u.default)((function(){return new Promise((function(e){E.forceUpdate(),e(g)}))})),destroy:function(){L(),x=!0}};if(!y(e,t))return console.error(b),E;function L(){O.forEach((function(e){return e()})),O=[]}return E.setOptions(o).then((function(e){!x&&o.onFirstUpdate&&o.onFirstUpdate(e)})),E}}var w=g()},"./node_modules/@popperjs/core/lib/dom-utils/contains.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return r}});var n=o("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");function r(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&(0,n.isShadowRoot)(o)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}},"./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return a}});var n=o("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"),r=o("./node_modules/@popperjs/core/lib/utils/math.js"),s=o("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"),i=o("./node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js");function a(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!1);var a=e.getBoundingClientRect(),l=1,u=1;t&&(0,n.isHTMLElement)(e)&&(l=e.offsetWidth>0&&(0,r.round)(a.width)/e.offsetWidth||1,u=e.offsetHeight>0&&(0,r.round)(a.height)/e.offsetHeight||1);var d=((0,n.isElement)(e)?(0,s.default)(e):window).visualViewport,c=!(0,i.default)()&&o,p=(a.left+(c&&d?d.offsetLeft:0))/l,f=(a.top+(c&&d?d.offsetTop:0))/u,m=a.width/l,h=a.height/u;return{width:m,height:h,top:f,right:p+m,bottom:f+h,left:p,x:p,y:f}}},"./node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return j}});var n=o("./node_modules/@popperjs/core/lib/enums.js"),r=o("./node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js"),s=o("./node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js"),i=o("./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js"),a=o("./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js"),l=o("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),u=o("./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js"),d=o("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"),c=o("./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js"),p=o("./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js"),f=o("./node_modules/@popperjs/core/lib/dom-utils/contains.js"),m=o("./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"),h=o("./node_modules/@popperjs/core/lib/utils/rectToClientRect.js"),_=o("./node_modules/@popperjs/core/lib/utils/math.js");function b(e,t,o){return t===n.viewport?(0,h.default)((0,r.default)(e,o)):(0,d.isElement)(t)?function(e,t){var o=(0,c.default)(e,!1,"fixed"===t);return o.top=o.top+e.clientTop,o.left=o.left+e.clientLeft,o.bottom=o.top+e.clientHeight,o.right=o.left+e.clientWidth,o.width=e.clientWidth,o.height=e.clientHeight,o.x=o.left,o.y=o.top,o}(t,o):(0,h.default)((0,s.default)((0,l.default)(e)))}function j(e,t,o,n){var r="clippingParents"===t?function(e){var t=(0,i.default)((0,p.default)(e)),o=["absolute","fixed"].indexOf((0,u.default)(e).position)>=0&&(0,d.isHTMLElement)(e)?(0,a.default)(e):e;return(0,d.isElement)(o)?t.filter((function(e){return(0,d.isElement)(e)&&(0,f.default)(e,o)&&"body"!==(0,m.default)(e)})):[]}(e):[].concat(t),s=[].concat(r,[o]),l=s[0],c=s.reduce((function(t,o){var r=b(e,o,n);return t.top=(0,_.max)(r.top,t.top),t.right=(0,_.min)(r.right,t.right),t.bottom=(0,_.min)(r.bottom,t.bottom),t.left=(0,_.max)(r.left,t.left),t}),b(e,l,n));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}},"./node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return c}});var n=o("./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js"),r=o("./node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js"),s=o("./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"),i=o("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"),a=o("./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js"),l=o("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),u=o("./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js"),d=o("./node_modules/@popperjs/core/lib/utils/math.js");function c(e,t,o){void 0===o&&(o=!1);var c=(0,i.isHTMLElement)(t),p=(0,i.isHTMLElement)(t)&&function(e){var t=e.getBoundingClientRect(),o=(0,d.round)(t.width)/e.offsetWidth||1,n=(0,d.round)(t.height)/e.offsetHeight||1;return 1!==o||1!==n}(t),f=(0,l.default)(t),m=(0,n.default)(e,p,o),h={scrollLeft:0,scrollTop:0},_={x:0,y:0};return(c||!c&&!o)&&(("body"!==(0,s.default)(t)||(0,u.default)(f))&&(h=(0,r.default)(t)),(0,i.isHTMLElement)(t)?((_=(0,n.default)(t,!0)).x+=t.clientLeft,_.y+=t.clientTop):f&&(_.x=(0,a.default)(f))),{x:m.left+h.scrollLeft-_.x,y:m.top+h.scrollTop-_.y,width:m.width,height:m.height}}},"./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return r}});var n=o("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js");function r(e){return(0,n.default)(e).getComputedStyle(e)}},"./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return r}});var n=o("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");function r(e){return(((0,n.isElement)(e)?e.ownerDocument:e.document)||window.document).documentElement}},"./node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return l}});var n=o("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),r=o("./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js"),s=o("./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js"),i=o("./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js"),a=o("./node_modules/@popperjs/core/lib/utils/math.js");function l(e){var t,o=(0,n.default)(e),l=(0,i.default)(e),u=null==(t=e.ownerDocument)?void 0:t.body,d=(0,a.max)(o.scrollWidth,o.clientWidth,u?u.scrollWidth:0,u?u.clientWidth:0),c=(0,a.max)(o.scrollHeight,o.clientHeight,u?u.scrollHeight:0,u?u.clientHeight:0),p=-l.scrollLeft+(0,s.default)(e),f=-l.scrollTop;return"rtl"===(0,r.default)(u||o).direction&&(p+=(0,a.max)(o.clientWidth,u?u.clientWidth:0)-d),{width:d,height:c,x:p,y:f}}},"./node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js":function(e,t,o){"use strict";function n(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}o.r(t),o.d(t,{default:function(){return n}})},"./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return r}});var n=o("./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js");function r(e){var t=(0,n.default)(e),o=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:r}}},"./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js":function(e,t,o){"use strict";function n(e){return e?(e.nodeName||"").toLowerCase():null}o.r(t),o.d(t,{default:function(){return n}})},"./node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return a}});var n=o("./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js"),r=o("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"),s=o("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"),i=o("./node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js");function a(e){return e!==(0,r.default)(e)&&(0,s.isHTMLElement)(e)?(0,i.default)(e):(0,n.default)(e)}},"./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return c}});var n=o("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"),r=o("./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"),s=o("./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js"),i=o("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"),a=o("./node_modules/@popperjs/core/lib/dom-utils/isTableElement.js"),l=o("./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js"),u=o("./node_modules/@popperjs/core/lib/utils/userAgent.js");function d(e){return(0,i.isHTMLElement)(e)&&"fixed"!==(0,s.default)(e).position?e.offsetParent:null}function c(e){for(var t=(0,n.default)(e),o=d(e);o&&(0,a.default)(o)&&"static"===(0,s.default)(o).position;)o=d(o);return o&&("html"===(0,r.default)(o)||"body"===(0,r.default)(o)&&"static"===(0,s.default)(o).position)?t:o||function(e){var t=/firefox/i.test((0,u.default)());if(/Trident/i.test((0,u.default)())&&(0,i.isHTMLElement)(e)&&"fixed"===(0,s.default)(e).position)return null;var o=(0,l.default)(e);for((0,i.isShadowRoot)(o)&&(o=o.host);(0,i.isHTMLElement)(o)&&["html","body"].indexOf((0,r.default)(o))<0;){var n=(0,s.default)(o);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return o;o=o.parentNode}return null}(e)||t}},"./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return i}});var n=o("./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"),r=o("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),s=o("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");function i(e){return"html"===(0,n.default)(e)?e:e.assignedSlot||e.parentNode||((0,s.isShadowRoot)(e)?e.host:null)||(0,r.default)(e)}},"./node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return a}});var n=o("./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js"),r=o("./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js"),s=o("./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"),i=o("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");function a(e){return["html","body","#document"].indexOf((0,s.default)(e))>=0?e.ownerDocument.body:(0,i.isHTMLElement)(e)&&(0,r.default)(e)?e:a((0,n.default)(e))}},"./node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return a}});var n=o("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"),r=o("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),s=o("./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js"),i=o("./node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js");function a(e,t){var o=(0,n.default)(e),a=(0,r.default)(e),l=o.visualViewport,u=a.clientWidth,d=a.clientHeight,c=0,p=0;if(l){u=l.width,d=l.height;var f=(0,i.default)();(f||!f&&"fixed"===t)&&(c=l.offsetLeft,p=l.offsetTop)}return{width:u,height:d,x:c+(0,s.default)(e),y:p}}},"./node_modules/@popperjs/core/lib/dom-utils/getWindow.js":function(e,t,o){"use strict";function n(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}o.r(t),o.d(t,{default:function(){return n}})},"./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return r}});var n=o("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js");function r(e){var t=(0,n.default)(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}},"./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return i}});var n=o("./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js"),r=o("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),s=o("./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js");function i(e){return(0,n.default)((0,r.default)(e)).left+(0,s.default)(e).scrollLeft}},"./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js":function(e,t,o){"use strict";o.r(t),o.d(t,{isElement:function(){return r},isHTMLElement:function(){return s},isShadowRoot:function(){return i}});var n=o("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js");function r(e){return e instanceof(0,n.default)(e).Element||e instanceof Element}function s(e){return e instanceof(0,n.default)(e).HTMLElement||e instanceof HTMLElement}function i(e){return"undefined"!=typeof ShadowRoot&&(e instanceof(0,n.default)(e).ShadowRoot||e instanceof ShadowRoot)}},"./node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return r}});var n=o("./node_modules/@popperjs/core/lib/utils/userAgent.js");function r(){return!/^((?!chrome|android).)*safari/i.test((0,n.default)())}},"./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return r}});var n=o("./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js");function r(e){var t=(0,n.default)(e),o=t.overflow,r=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+s+r)}},"./node_modules/@popperjs/core/lib/dom-utils/isTableElement.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return r}});var n=o("./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js");function r(e){return["table","td","th"].indexOf((0,n.default)(e))>=0}},"./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return a}});var n=o("./node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js"),r=o("./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js"),s=o("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"),i=o("./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js");function a(e,t){var o;void 0===t&&(t=[]);var l=(0,n.default)(e),u=l===(null==(o=e.ownerDocument)?void 0:o.body),d=(0,s.default)(l),c=u?[d].concat(d.visualViewport||[],(0,i.default)(l)?l:[]):l,p=t.concat(c);return u?p:p.concat(a((0,r.default)(c)))}},"./node_modules/@popperjs/core/lib/enums.js":function(e,t,o){"use strict";o.r(t),o.d(t,{afterMain:function(){return w},afterRead:function(){return v},afterWrite:function(){return E},auto:function(){return a},basePlacements:function(){return l},beforeMain:function(){return y},beforeRead:function(){return b},beforeWrite:function(){return O},bottom:function(){return r},clippingParents:function(){return c},end:function(){return d},left:function(){return i},main:function(){return g},modifierPhases:function(){return L},placements:function(){return _},popper:function(){return f},read:function(){return j},reference:function(){return m},right:function(){return s},start:function(){return u},top:function(){return n},variationPlacements:function(){return h},viewport:function(){return p},write:function(){return x}});var n="top",r="bottom",s="right",i="left",a="auto",l=[n,r,s,i],u="start",d="end",c="clippingParents",p="viewport",f="popper",m="reference",h=l.reduce((function(e,t){return e.concat([t+"-"+u,t+"-"+d])}),[]),_=[].concat(l,[a]).reduce((function(e,t){return e.concat([t,t+"-"+u,t+"-"+d])}),[]),b="beforeRead",j="read",v="afterRead",y="beforeMain",g="main",w="afterMain",O="beforeWrite",x="write",E="afterWrite",L=[b,j,v,y,g,w,O,x,E]},"./node_modules/@popperjs/core/lib/modifiers/applyStyles.js":function(e,t,o){"use strict";o.r(t);var n=o("./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"),r=o("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");t.default={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var o=t.styles[e]||{},s=t.attributes[e]||{},i=t.elements[e];(0,r.isHTMLElement)(i)&&(0,n.default)(i)&&(Object.assign(i.style,o),Object.keys(s).forEach((function(e){var t=s[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach((function(e){var s=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:o[e]).reduce((function(e,t){return e[t]="",e}),{});(0,r.isHTMLElement)(s)&&(0,n.default)(s)&&(Object.assign(s.style,a),Object.keys(i).forEach((function(e){s.removeAttribute(e)})))}))}},requires:["computeStyles"]}},"./node_modules/@popperjs/core/lib/modifiers/arrow.js":function(e,t,o){"use strict";o.r(t);var n=o("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"),r=o("./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js"),s=o("./node_modules/@popperjs/core/lib/dom-utils/contains.js"),i=o("./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js"),a=o("./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js"),l=o("./node_modules/@popperjs/core/lib/utils/within.js"),u=o("./node_modules/@popperjs/core/lib/utils/mergePaddingObject.js"),d=o("./node_modules/@popperjs/core/lib/utils/expandToHashMap.js"),c=o("./node_modules/@popperjs/core/lib/enums.js"),p=o("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js");t.default={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,o=e.state,s=e.name,p=e.options,f=o.elements.arrow,m=o.modifiersData.popperOffsets,h=(0,n.default)(o.placement),_=(0,a.default)(h),b=[c.left,c.right].indexOf(h)>=0?"height":"width";if(f&&m){var j=function(e,t){return e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,(0,u.default)("number"!=typeof e?e:(0,d.default)(e,c.basePlacements))}(p.padding,o),v=(0,r.default)(f),y="y"===_?c.top:c.left,g="y"===_?c.bottom:c.right,w=o.rects.reference[b]+o.rects.reference[_]-m[_]-o.rects.popper[b],O=m[_]-o.rects.reference[_],x=(0,i.default)(f),E=x?"y"===_?x.clientHeight||0:x.clientWidth||0:0,L=w/2-O/2,S=j[y],P=E-v[b]-j[g],A=E/2-v[b]/2+L,C=(0,l.within)(S,A,P),k=_;o.modifiersData[s]=((t={})[k]=C,t.centerOffset=C-A,t)}},effect:function(e){var t=e.state,o=e.options.element,n=void 0===o?"[data-popper-arrow]":o;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&((0,p.isHTMLElement)(n)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" ")),(0,s.default)(t.elements.popper,n)?t.elements.arrow=n:console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" ")))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},"./node_modules/@popperjs/core/lib/modifiers/computeStyles.js":function(e,t,o){"use strict";o.r(t),o.d(t,{mapToStyles:function(){return p}});var n=o("./node_modules/@popperjs/core/lib/enums.js"),r=o("./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js"),s=o("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"),i=o("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),a=o("./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js"),l=o("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"),u=o("./node_modules/@popperjs/core/lib/utils/getVariation.js"),d=o("./node_modules/@popperjs/core/lib/utils/math.js"),c={top:"auto",right:"auto",bottom:"auto",left:"auto"};function p(e){var t,o=e.popper,l=e.popperRect,u=e.placement,p=e.variation,f=e.offsets,m=e.position,h=e.gpuAcceleration,_=e.adaptive,b=e.roundOffsets,j=e.isFixed,v=f.x,y=void 0===v?0:v,g=f.y,w=void 0===g?0:g,O="function"==typeof b?b({x:y,y:w}):{x:y,y:w};y=O.x,w=O.y;var x=f.hasOwnProperty("x"),E=f.hasOwnProperty("y"),L=n.left,S=n.top,P=window;if(_){var A=(0,r.default)(o),C="clientHeight",k="clientWidth";if(A===(0,s.default)(o)&&(A=(0,i.default)(o),"static"!==(0,a.default)(A).position&&"absolute"===m&&(C="scrollHeight",k="scrollWidth")),u===n.top||(u===n.left||u===n.right)&&p===n.end)S=n.bottom,w-=(j&&A===P&&P.visualViewport?P.visualViewport.height:A[C])-l.height,w*=h?1:-1;if(u===n.left||(u===n.top||u===n.bottom)&&p===n.end)L=n.right,y-=(j&&A===P&&P.visualViewport?P.visualViewport.width:A[k])-l.width,y*=h?1:-1}var T,M=Object.assign({position:m},_&&c),D=!0===b?function(e){var t=e.x,o=e.y,n=window.devicePixelRatio||1;return{x:(0,d.round)(t*n)/n||0,y:(0,d.round)(o*n)/n||0}}({x:y,y:w}):{x:y,y:w};return y=D.x,w=D.y,h?Object.assign({},M,((T={})[S]=E?"0":"",T[L]=x?"0":"",T.transform=(P.devicePixelRatio||1)<=1?"translate("+y+"px, "+w+"px)":"translate3d("+y+"px, "+w+"px, 0)",T)):Object.assign({},M,((t={})[S]=E?w+"px":"",t[L]=x?y+"px":"",t.transform="",t))}t.default={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,o=e.options,n=o.gpuAcceleration,r=void 0===n||n,s=o.adaptive,i=void 0===s||s,d=o.roundOffsets,c=void 0===d||d,f=(0,a.default)(t.elements.popper).transitionProperty||"";i&&["transform","top","right","bottom","left"].some((function(e){return f.indexOf(e)>=0}))&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "));var m={placement:(0,l.default)(t.placement),variation:(0,u.default)(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,p(Object.assign({},m,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,p(Object.assign({},m,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}}},"./node_modules/@popperjs/core/lib/modifiers/eventListeners.js":function(e,t,o){"use strict";o.r(t);var n=o("./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"),r={passive:!0};t.default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,o=e.instance,s=e.options,i=s.scroll,a=void 0===i||i,l=s.resize,u=void 0===l||l,d=(0,n.default)(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",o.update,r)})),u&&d.addEventListener("resize",o.update,r),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",o.update,r)})),u&&d.removeEventListener("resize",o.update,r)}},data:{}}},"./node_modules/@popperjs/core/lib/modifiers/flip.js":function(e,t,o){"use strict";o.r(t);var n=o("./node_modules/@popperjs/core/lib/utils/getOppositePlacement.js"),r=o("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"),s=o("./node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js"),i=o("./node_modules/@popperjs/core/lib/utils/detectOverflow.js"),a=o("./node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js"),l=o("./node_modules/@popperjs/core/lib/enums.js"),u=o("./node_modules/@popperjs/core/lib/utils/getVariation.js");t.default={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,o=e.options,d=e.name;if(!t.modifiersData[d]._skip){for(var c=o.mainAxis,p=void 0===c||c,f=o.altAxis,m=void 0===f||f,h=o.fallbackPlacements,_=o.padding,b=o.boundary,j=o.rootBoundary,v=o.altBoundary,y=o.flipVariations,g=void 0===y||y,w=o.allowedAutoPlacements,O=t.options.placement,x=(0,r.default)(O),E=h||(x===O||!g?[(0,n.default)(O)]:function(e){if((0,r.default)(e)===l.auto)return[];var t=(0,n.default)(e);return[(0,s.default)(e),t,(0,s.default)(t)]}(O)),L=[O].concat(E).reduce((function(e,o){return e.concat((0,r.default)(o)===l.auto?(0,a.default)(t,{placement:o,boundary:b,rootBoundary:j,padding:_,flipVariations:g,allowedAutoPlacements:w}):o)}),[]),S=t.rects.reference,P=t.rects.popper,A=new Map,C=!0,k=L[0],T=0;T=0,N=I?"width":"height",B=(0,i.default)(t,{placement:M,boundary:b,rootBoundary:j,altBoundary:v,padding:_}),W=I?R?l.right:l.left:R?l.bottom:l.top;S[N]>P[N]&&(W=(0,n.default)(W));var H=(0,n.default)(W),V=[];if(p&&V.push(B[D]<=0),m&&V.push(B[W]<=0,B[H]<=0),V.every((function(e){return e}))){k=M,C=!1;break}A.set(M,V)}if(C)for(var F=function(e){var t=L.find((function(t){var o=A.get(t);if(o)return o.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},Z=g?3:1;Z>0;Z--){if("break"===F(Z))break}t.placement!==k&&(t.modifiersData[d]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}}},"./node_modules/@popperjs/core/lib/modifiers/hide.js":function(e,t,o){"use strict";o.r(t);var n=o("./node_modules/@popperjs/core/lib/enums.js"),r=o("./node_modules/@popperjs/core/lib/utils/detectOverflow.js");function s(e,t,o){return void 0===o&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function i(e){return[n.top,n.right,n.bottom,n.left].some((function(t){return e[t]>=0}))}t.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,o=e.name,n=t.rects.reference,a=t.rects.popper,l=t.modifiersData.preventOverflow,u=(0,r.default)(t,{elementContext:"reference"}),d=(0,r.default)(t,{altBoundary:!0}),c=s(u,n),p=s(d,a,l),f=i(c),m=i(p);t.modifiersData[o]={referenceClippingOffsets:c,popperEscapeOffsets:p,isReferenceHidden:f,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":m})}}},"./node_modules/@popperjs/core/lib/modifiers/index.js":function(e,t,o){"use strict";o.r(t),o.d(t,{applyStyles:function(){return n.default},arrow:function(){return r.default},computeStyles:function(){return s.default},eventListeners:function(){return i.default},flip:function(){return a.default},hide:function(){return l.default},offset:function(){return u.default},popperOffsets:function(){return d.default},preventOverflow:function(){return c.default}});var n=o("./node_modules/@popperjs/core/lib/modifiers/applyStyles.js"),r=o("./node_modules/@popperjs/core/lib/modifiers/arrow.js"),s=o("./node_modules/@popperjs/core/lib/modifiers/computeStyles.js"),i=o("./node_modules/@popperjs/core/lib/modifiers/eventListeners.js"),a=o("./node_modules/@popperjs/core/lib/modifiers/flip.js"),l=o("./node_modules/@popperjs/core/lib/modifiers/hide.js"),u=o("./node_modules/@popperjs/core/lib/modifiers/offset.js"),d=o("./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js"),c=o("./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js")},"./node_modules/@popperjs/core/lib/modifiers/offset.js":function(e,t,o){"use strict";o.r(t),o.d(t,{distanceAndSkiddingToXY:function(){return s}});var n=o("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"),r=o("./node_modules/@popperjs/core/lib/enums.js");function s(e,t,o){var s=(0,n.default)(e),i=[r.left,r.top].indexOf(s)>=0?-1:1,a="function"==typeof o?o(Object.assign({},t,{placement:e})):o,l=a[0],u=a[1];return l=l||0,u=(u||0)*i,[r.left,r.right].indexOf(s)>=0?{x:u,y:l}:{x:l,y:u}}t.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,o=e.options,n=e.name,i=o.offset,a=void 0===i?[0,0]:i,l=r.placements.reduce((function(e,o){return e[o]=s(o,t.rects,a),e}),{}),u=l[t.placement],d=u.x,c=u.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=l}}},"./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js":function(e,t,o){"use strict";o.r(t);var n=o("./node_modules/@popperjs/core/lib/utils/computeOffsets.js");t.default={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,o=e.name;t.modifiersData[o]=(0,n.default)({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}}},"./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js":function(e,t,o){"use strict";o.r(t);var n=o("./node_modules/@popperjs/core/lib/enums.js"),r=o("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"),s=o("./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js"),i=o("./node_modules/@popperjs/core/lib/utils/getAltAxis.js"),a=o("./node_modules/@popperjs/core/lib/utils/within.js"),l=o("./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js"),u=o("./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js"),d=o("./node_modules/@popperjs/core/lib/utils/detectOverflow.js"),c=o("./node_modules/@popperjs/core/lib/utils/getVariation.js"),p=o("./node_modules/@popperjs/core/lib/utils/getFreshSideObject.js"),f=o("./node_modules/@popperjs/core/lib/utils/math.js");t.default={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,o=e.options,m=e.name,h=o.mainAxis,_=void 0===h||h,b=o.altAxis,j=void 0!==b&&b,v=o.boundary,y=o.rootBoundary,g=o.altBoundary,w=o.padding,O=o.tether,x=void 0===O||O,E=o.tetherOffset,L=void 0===E?0:E,S=(0,d.default)(t,{boundary:v,rootBoundary:y,padding:w,altBoundary:g}),P=(0,r.default)(t.placement),A=(0,c.default)(t.placement),C=!A,k=(0,s.default)(P),T=(0,i.default)(k),M=t.modifiersData.popperOffsets,D=t.rects.reference,R=t.rects.popper,I="function"==typeof L?L(Object.assign({},t.rects,{placement:t.placement})):L,N="number"==typeof I?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,W={x:0,y:0};if(M){if(_){var H,V="y"===k?n.top:n.left,F="y"===k?n.bottom:n.right,Z="y"===k?"height":"width",U=M[k],G=U+S[V],q=U-S[F],z=x?-R[Z]/2:0,$=A===n.start?D[Z]:R[Z],Y=A===n.start?-R[Z]:-D[Z],X=t.elements.arrow,K=x&&X?(0,l.default)(X):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:(0,p.default)(),Q=J[V],ee=J[F],te=(0,a.within)(0,D[Z],K[Z]),oe=C?D[Z]/2-z-te-Q-N.mainAxis:$-te-Q-N.mainAxis,ne=C?-D[Z]/2+z+te+ee+N.mainAxis:Y+te+ee+N.mainAxis,re=t.elements.arrow&&(0,u.default)(t.elements.arrow),se=re?"y"===k?re.clientTop||0:re.clientLeft||0:0,ie=null!=(H=null==B?void 0:B[k])?H:0,ae=U+oe-ie-se,le=U+ne-ie,ue=(0,a.within)(x?(0,f.min)(G,ae):G,U,x?(0,f.max)(q,le):q);M[k]=ue,W[k]=ue-U}if(j){var de,ce="x"===k?n.top:n.left,pe="x"===k?n.bottom:n.right,fe=M[T],me="y"===T?"height":"width",he=fe+S[ce],_e=fe-S[pe],be=-1!==[n.top,n.left].indexOf(P),je=null!=(de=null==B?void 0:B[T])?de:0,ve=be?he:fe-D[me]-R[me]-je+N.altAxis,ye=be?fe+D[me]+R[me]-je-N.altAxis:_e,ge=x&&be?(0,a.withinMaxClamp)(ve,fe,ye):(0,a.within)(x?ve:he,fe,x?ye:_e);M[T]=ge,W[T]=ge-fe}t.modifiersData[m]=W}},requiresIfExists:["offset"]}},"./node_modules/@popperjs/core/lib/popper-lite.js":function(e,t,o){"use strict";o.r(t),o.d(t,{createPopper:function(){return d},defaultModifiers:function(){return u},detectOverflow:function(){return r.default},popperGenerator:function(){return n.popperGenerator}});var n=o("./node_modules/@popperjs/core/lib/createPopper.js"),r=o("./node_modules/@popperjs/core/lib/utils/detectOverflow.js"),s=o("./node_modules/@popperjs/core/lib/modifiers/eventListeners.js"),i=o("./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js"),a=o("./node_modules/@popperjs/core/lib/modifiers/computeStyles.js"),l=o("./node_modules/@popperjs/core/lib/modifiers/applyStyles.js"),u=[s.default,i.default,a.default,l.default],d=(0,n.popperGenerator)({defaultModifiers:u})},"./node_modules/@popperjs/core/lib/popper.js":function(e,t,o){"use strict";o.r(t),o.d(t,{applyStyles:function(){return h.applyStyles},arrow:function(){return h.arrow},computeStyles:function(){return h.computeStyles},createPopper:function(){return b},createPopperLite:function(){return m.createPopper},defaultModifiers:function(){return _},detectOverflow:function(){return r.default},eventListeners:function(){return h.eventListeners},flip:function(){return h.flip},hide:function(){return h.hide},offset:function(){return h.offset},popperGenerator:function(){return n.popperGenerator},popperOffsets:function(){return h.popperOffsets},preventOverflow:function(){return h.preventOverflow}});var n=o("./node_modules/@popperjs/core/lib/createPopper.js"),r=o("./node_modules/@popperjs/core/lib/utils/detectOverflow.js"),s=o("./node_modules/@popperjs/core/lib/modifiers/eventListeners.js"),i=o("./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js"),a=o("./node_modules/@popperjs/core/lib/modifiers/computeStyles.js"),l=o("./node_modules/@popperjs/core/lib/modifiers/applyStyles.js"),u=o("./node_modules/@popperjs/core/lib/modifiers/offset.js"),d=o("./node_modules/@popperjs/core/lib/modifiers/flip.js"),c=o("./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js"),p=o("./node_modules/@popperjs/core/lib/modifiers/arrow.js"),f=o("./node_modules/@popperjs/core/lib/modifiers/hide.js"),m=o("./node_modules/@popperjs/core/lib/popper-lite.js"),h=o("./node_modules/@popperjs/core/lib/modifiers/index.js"),_=[s.default,i.default,a.default,l.default,u.default,d.default,c.default,p.default,f.default],b=(0,n.popperGenerator)({defaultModifiers:_})},"./node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return a}});var n=o("./node_modules/@popperjs/core/lib/utils/getVariation.js"),r=o("./node_modules/@popperjs/core/lib/enums.js"),s=o("./node_modules/@popperjs/core/lib/utils/detectOverflow.js"),i=o("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js");function a(e,t){void 0===t&&(t={});var o=t,a=o.placement,l=o.boundary,u=o.rootBoundary,d=o.padding,c=o.flipVariations,p=o.allowedAutoPlacements,f=void 0===p?r.placements:p,m=(0,n.default)(a),h=m?c?r.variationPlacements:r.variationPlacements.filter((function(e){return(0,n.default)(e)===m})):r.basePlacements,_=h.filter((function(e){return f.indexOf(e)>=0}));0===_.length&&(_=h,console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var b=_.reduce((function(t,o){return t[o]=(0,s.default)(e,{placement:o,boundary:l,rootBoundary:u,padding:d})[(0,i.default)(o)],t}),{});return Object.keys(b).sort((function(e,t){return b[e]-b[t]}))}},"./node_modules/@popperjs/core/lib/utils/computeOffsets.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return a}});var n=o("./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"),r=o("./node_modules/@popperjs/core/lib/utils/getVariation.js"),s=o("./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js"),i=o("./node_modules/@popperjs/core/lib/enums.js");function a(e){var t,o=e.reference,a=e.element,l=e.placement,u=l?(0,n.default)(l):null,d=l?(0,r.default)(l):null,c=o.x+o.width/2-a.width/2,p=o.y+o.height/2-a.height/2;switch(u){case i.top:t={x:c,y:o.y-a.height};break;case i.bottom:t={x:c,y:o.y+o.height};break;case i.right:t={x:o.x+o.width,y:p};break;case i.left:t={x:o.x-a.width,y:p};break;default:t={x:o.x,y:o.y}}var f=u?(0,s.default)(u):null;if(null!=f){var m="y"===f?"height":"width";switch(d){case i.start:t[f]=t[f]-(o[m]/2-a[m]/2);break;case i.end:t[f]=t[f]+(o[m]/2-a[m]/2)}}return t}},"./node_modules/@popperjs/core/lib/utils/debounce.js":function(e,t,o){"use strict";function n(e){var t;return function(){return t||(t=new Promise((function(o){Promise.resolve().then((function(){t=void 0,o(e())}))}))),t}}o.r(t),o.d(t,{default:function(){return n}})},"./node_modules/@popperjs/core/lib/utils/detectOverflow.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return p}});var n=o("./node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js"),r=o("./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"),s=o("./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js"),i=o("./node_modules/@popperjs/core/lib/utils/computeOffsets.js"),a=o("./node_modules/@popperjs/core/lib/utils/rectToClientRect.js"),l=o("./node_modules/@popperjs/core/lib/enums.js"),u=o("./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"),d=o("./node_modules/@popperjs/core/lib/utils/mergePaddingObject.js"),c=o("./node_modules/@popperjs/core/lib/utils/expandToHashMap.js");function p(e,t){void 0===t&&(t={});var o=t,p=o.placement,f=void 0===p?e.placement:p,m=o.strategy,h=void 0===m?e.strategy:m,_=o.boundary,b=void 0===_?l.clippingParents:_,j=o.rootBoundary,v=void 0===j?l.viewport:j,y=o.elementContext,g=void 0===y?l.popper:y,w=o.altBoundary,O=void 0!==w&&w,x=o.padding,E=void 0===x?0:x,L=(0,d.default)("number"!=typeof E?E:(0,c.default)(E,l.basePlacements)),S=g===l.popper?l.reference:l.popper,P=e.rects.popper,A=e.elements[O?S:g],C=(0,n.default)((0,u.isElement)(A)?A:A.contextElement||(0,r.default)(e.elements.popper),b,v,h),k=(0,s.default)(e.elements.reference),T=(0,i.default)({reference:k,element:P,strategy:"absolute",placement:f}),M=(0,a.default)(Object.assign({},P,T)),D=g===l.popper?M:k,R={top:C.top-D.top+L.top,bottom:D.bottom-C.bottom+L.bottom,left:C.left-D.left+L.left,right:D.right-C.right+L.right},I=e.modifiersData.offset;if(g===l.popper&&I){var N=I[f];Object.keys(R).forEach((function(e){var t=[l.right,l.bottom].indexOf(e)>=0?1:-1,o=[l.top,l.bottom].indexOf(e)>=0?"y":"x";R[e]+=N[o]*t}))}return R}},"./node_modules/@popperjs/core/lib/utils/expandToHashMap.js":function(e,t,o){"use strict";function n(e,t){return t.reduce((function(t,o){return t[o]=e,t}),{})}o.r(t),o.d(t,{default:function(){return n}})},"./node_modules/@popperjs/core/lib/utils/format.js":function(e,t,o){"use strict";function n(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),n=1;n=0?"x":"y"}o.r(t),o.d(t,{default:function(){return n}})},"./node_modules/@popperjs/core/lib/utils/getOppositePlacement.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return r}});var n={left:"right",right:"left",bottom:"top",top:"bottom"};function r(e){return e.replace(/left|right|bottom|top/g,(function(e){return n[e]}))}},"./node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return r}});var n={start:"end",end:"start"};function r(e){return e.replace(/start|end/g,(function(e){return n[e]}))}},"./node_modules/@popperjs/core/lib/utils/getVariation.js":function(e,t,o){"use strict";function n(e){return e.split("-")[1]}o.r(t),o.d(t,{default:function(){return n}})},"./node_modules/@popperjs/core/lib/utils/math.js":function(e,t,o){"use strict";o.r(t),o.d(t,{max:function(){return n},min:function(){return r},round:function(){return s}});var n=Math.max,r=Math.min,s=Math.round},"./node_modules/@popperjs/core/lib/utils/mergeByName.js":function(e,t,o){"use strict";function n(e){var t=e.reduce((function(e,t){var o=e[t.name];return e[t.name]=o?Object.assign({},o,t,{options:Object.assign({},o.options,t.options),data:Object.assign({},o.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}o.r(t),o.d(t,{default:function(){return n}})},"./node_modules/@popperjs/core/lib/utils/mergePaddingObject.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return r}});var n=o("./node_modules/@popperjs/core/lib/utils/getFreshSideObject.js");function r(e){return Object.assign({},(0,n.default)(),e)}},"./node_modules/@popperjs/core/lib/utils/orderModifiers.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return s}});var n=o("./node_modules/@popperjs/core/lib/enums.js");function r(e){var t=new Map,o=new Set,n=[];function r(e){o.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!o.has(e)){var n=t.get(e);n&&r(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){o.has(e.name)||r(e)})),n}function s(e){var t=r(e);return n.modifierPhases.reduce((function(e,o){return e.concat(t.filter((function(e){return e.phase===o})))}),[])}},"./node_modules/@popperjs/core/lib/utils/rectToClientRect.js":function(e,t,o){"use strict";function n(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}o.r(t),o.d(t,{default:function(){return n}})},"./node_modules/@popperjs/core/lib/utils/uniqueBy.js":function(e,t,o){"use strict";function n(e,t){var o=new Set;return e.filter((function(e){var n=t(e);if(!o.has(n))return o.add(n),!0}))}o.r(t),o.d(t,{default:function(){return n}})},"./node_modules/@popperjs/core/lib/utils/userAgent.js":function(e,t,o){"use strict";function n(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}o.r(t),o.d(t,{default:function(){return n}})},"./node_modules/@popperjs/core/lib/utils/validateModifiers.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return l}});var n=o("./node_modules/@popperjs/core/lib/utils/format.js"),r=o("./node_modules/@popperjs/core/lib/enums.js"),s='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',i='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',a=["name","enabled","phase","fn","effect","requires","options"];function l(e){e.forEach((function(t){[].concat(Object.keys(t),a).filter((function(e,t,o){return o.indexOf(e)===t})).forEach((function(o){switch(o){case"name":"string"!=typeof t.name&&console.error((0,n.default)(s,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error((0,n.default)(s,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":r.modifierPhases.indexOf(t.phase)<0&&console.error((0,n.default)(s,t.name,'"phase"',"either "+r.modifierPhases.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error((0,n.default)(s,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":null!=t.effect&&"function"!=typeof t.effect&&console.error((0,n.default)(s,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":null==t.requires||Array.isArray(t.requires)||console.error((0,n.default)(s,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error((0,n.default)(s,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+a.map((function(e){return'"'+e+'"'})).join(", ")+'; but "'+o+'" was provided.')}t.requires&&t.requires.forEach((function(o){null==e.find((function(e){return e.name===o}))&&console.error((0,n.default)(i,String(t.name),o,o))}))}))}))}},"./node_modules/@popperjs/core/lib/utils/within.js":function(e,t,o){"use strict";o.r(t),o.d(t,{within:function(){return r},withinMaxClamp:function(){return s}});var n=o("./node_modules/@popperjs/core/lib/utils/math.js");function r(e,t,o){return(0,n.max)(e,(0,n.min)(t,o))}function s(e,t,o){var n=r(e,t,o);return n>o?o:n}},"./node_modules/@tippyjs/react/dist/tippy-react.esm.js":function(e,t,o){"use strict";o.r(t),o.d(t,{tippy:function(){return n.default},useSingleton:function(){return g}});var n=o("./node_modules/tippy.js/dist/tippy.esm.js"),r=o("react"),s=o.n(r),i=o("react-dom");function a(e,t){if(null==e)return{};var o,n,r={},s=Object.keys(e);for(n=0;n=0||(r[o]=e[o]);return r}var l="undefined"!=typeof window&&"undefined"!=typeof document;function u(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function d(){return l&&document.createElement("div")}function c(e,t){if(e===t)return!0;if("object"==typeof e&&null!=e&&"object"==typeof t&&null!=t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var o in e){if(!t.hasOwnProperty(o))return!1;if(!c(e[o],t[o]))return!1}return!0}return!1}function p(e){var t=[];return e.forEach((function(e){t.find((function(t){return c(e,t)}))||t.push(e)})),t}function f(e,t){var o,n;return Object.assign({},t,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:p([].concat((null==(o=e.popperOptions)?void 0:o.modifiers)||[],(null==(n=t.popperOptions)?void 0:n.modifiers)||[]))})})}var m=l?r.useLayoutEffect:r.useEffect;function h(e){var t=(0,r.useRef)();return t.current||(t.current="function"==typeof e?e():e),t.current}function _(e,t,o){o.split(/\s+/).forEach((function(o){o&&e.classList[t](o)}))}var b={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,o=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function n(){!e.props.className||o()?_(t,"add",e.props.className):console.warn(["@tippyjs/react: Cannot use `className` prop in conjunction with","`render` prop. Place the className on the element you are","rendering."].join(" "))}return{onCreate:n,onBeforeUpdate:function(){o()&&_(t,"remove",e.props.className)},onAfterUpdate:n}}};function j(e){return function(t){var o=t.children,n=t.content,l=t.visible,c=t.singleton,p=t.render,_=t.reference,j=t.disabled,v=void 0!==j&&j,y=t.ignoreAttributes,g=void 0===y||y,w=(t.__source,t.__self,a(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),O=void 0!==l,x=void 0!==c,E=(0,r.useState)(!1),L=E[0],S=E[1],P=(0,r.useState)({}),A=P[0],C=P[1],k=(0,r.useState)(),T=k[0],M=k[1],D=h((function(){return{container:d(),renders:1}})),R=Object.assign({ignoreAttributes:g},w,{content:D.container});O&&(["trigger","hideOnClick","showOnCreate"].forEach((function(e){void 0!==R[e]&&console.warn(["@tippyjs/react: Cannot specify `"+e+"` prop in","controlled mode (`visible` prop)"].join(" "))})),R.trigger="manual",R.hideOnClick=!1),x&&(v=!0);var I=R,N=R.plugins||[];p&&(I=Object.assign({},R,{plugins:x&&null!=c.data?[].concat(N,[{fn:function(){return{onTrigger:function(e,t){var o=c.data.children.find((function(e){return e.instance.reference===t.currentTarget}));e.state.$$activeSingletonInstance=o.instance,M(o.content)}}}}]):N,render:function(){return{popper:D.container}}}));var B=[_].concat(o?[o.type]:[]);return m((function(){var t=_;_&&_.hasOwnProperty("current")&&(t=_.current);var o=e(t||D.ref||d(),Object.assign({},I,{plugins:[b].concat(R.plugins||[])}));return D.instance=o,v&&o.disable(),l&&o.show(),x&&c.hook({instance:o,content:n,props:I,setSingletonContent:M}),S(!0),function(){o.destroy(),null==c||c.cleanup(o)}}),B),m((function(){var e;if(1!==D.renders){var t=D.instance;t.setProps(f(t.props,I)),null==(e=t.popperInstance)||e.forceUpdate(),v?t.disable():t.enable(),O&&(l?t.show():t.hide()),x&&c.hook({instance:t,content:n,props:I,setSingletonContent:M})}else D.renders++})),m((function(){var e;if(p){var t=D.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter((function(e){return"$$tippyReact"!==e.name})),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,o=e.state,n=null==(t=o.modifiersData)?void 0:t.hide;A.placement===o.placement&&A.referenceHidden===(null==n?void 0:n.isReferenceHidden)&&A.escaped===(null==n?void 0:n.hasPopperEscaped)||C({placement:o.placement,referenceHidden:null==n?void 0:n.isReferenceHidden,escaped:null==n?void 0:n.hasPopperEscaped}),o.attributes.popper={}}}])})})}}),[A.placement,A.referenceHidden,A.escaped].concat(B)),s().createElement(s().Fragment,null,o?(0,r.cloneElement)(o,{ref:function(e){D.ref=e,u(o.ref,e)}}):null,L&&(0,i.createPortal)(p?p(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(A),T,D.instance):n,D.container))}}function v(e){return function(t){var o=void 0===t?{}:t,n=o.disabled,s=void 0!==n&&n,i=o.overrides,l=void 0===i?[]:i,u=(0,r.useState)(!1),d=u[0],c=u[1],p=h({children:[],renders:1});return m((function(){if(d){var t=p.children,o=p.sourceData;if(o){var n=e(t.map((function(e){return e.instance})),Object.assign({},o.props,{popperOptions:o.instance.props.popperOptions,overrides:l,plugins:[b].concat(o.props.plugins||[])}));return p.instance=n,s&&n.disable(),function(){n.destroy(),p.children=t.filter((function(e){return!e.instance.state.isDestroyed}))}}console.error(["@tippyjs/react: The `source` variable from `useSingleton()` has","not been passed to a component."].join(" "))}else c(!0)}),[d]),m((function(){if(d)if(1!==p.renders){var e=p.children,t=p.instance,o=p.sourceData;if(t&&o){var n=o.props,r=(n.content,a(n,["content"]));t.setProps(f(t.props,Object.assign({},r,{overrides:l}))),t.setInstances(e.map((function(e){return e.instance}))),s?t.disable():t.enable()}}else p.renders++})),(0,r.useMemo)((function(){return[{data:p,hook:function(e){p.sourceData=e,p.setSingletonContent=e.setSingletonContent},cleanup:function(){p.sourceData=null}},{hook:function(e){var t,o;p.children=p.children.filter((function(t){var o=t.instance;return e.instance!==o})),p.children.push(e),(null==(t=p.instance)?void 0:t.state.isMounted)&&(null==(o=p.instance)?void 0:o.state.$$activeSingletonInstance)===e.instance&&(null==p.setSingletonContent||p.setSingletonContent(e.content)),p.instance&&!p.instance.state.isDestroyed&&p.instance.setInstances(p.children.map((function(e){return e.instance})))},cleanup:function(e){p.children=p.children.filter((function(t){return t.instance!==e})),p.instance&&!p.instance.state.isDestroyed&&p.instance.setInstances(p.children.map((function(e){return e.instance})))}}]}),[])}}var y=function(e,t){return(0,r.forwardRef)((function(o,n){var i=o.children,l=a(o,["children"]);return s().createElement(e,Object.assign({},t,l),i?(0,r.cloneElement)(i,{ref:function(e){u(n,e),u(i.ref,e)}}):null)}))},g=v(n.createSingleton),w=y(j(n.default));t.default=w},"./src/js/gallery-block/controls.js":function(e,t,o){"use strict";o.r(t);var n=o("./node_modules/@babel/runtime/helpers/esm/typeof.js"),r=o("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),s=o("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),i=o("react"),a=o.n(i),l=o("./node_modules/dot-object/index.js"),u=o.n(l),d=o("@wordpress/i18n"),c=o("./node_modules/lodash/cloneDeep.js"),p=o.n(c),f=o("./node_modules/@tippyjs/react/dist/tippy-react.esm.js"),m=(o("@wordpress/components/build-style/style.css"),o("@wordpress/components")),h=o("@wordpress/block-editor"),_=o("./src/js/gallery-block/options.js"),b=o("./src/js/gallery-block/radio.js"),j=o("./src/js/gallery-block/utils.js");function v(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function y(e){for(var t=1;t=0&&(e=e.replace(/\[/g,t).replace(/]/g,""));var o=e.split(t);if(o.filter(a).length!==o.length)throw Error("Refusing to update blacklisted property "+e);return o}var u=Object.prototype.hasOwnProperty;function d(e,t,o,n){if(!(this instanceof d))return new d(e,t,o,n);void 0===t&&(t=!1),void 0===o&&(o=!0),void 0===n&&(n=!0),this.separator=e||".",this.override=t,this.useArray=o,this.useBrackets=n,this.keepArray=!1,this.cleanup=[]}var c=new d(".",!1,!0,!0);function p(e){return function(){return c[e].apply(c,arguments)}}d.prototype._fill=function(e,o,n,i){var a=e.shift();if(e.length>0){if(o[a]=o[a]||(this.useArray&&function(e){return/^\d+$/.test(e)}(e[0])?[]:{}),!r(o[a])){if(!this.override){if(!r(n)||!s(n))throw new Error("Trying to redefine `"+a+"` which is a "+typeof o[a]);return}o[a]={}}this._fill(e,o[a],n,i)}else{if(!this.override&&r(o[a])&&!s(o[a])){if(!r(n)||!s(n))throw new Error("Trying to redefine non-empty obj['"+a+"']");return}o[a]=t(n,i)}},d.prototype.object=function(e,o){var n=this;return Object.keys(e).forEach((function(r){var s=void 0===o?null:o[r],i=l(r,n.separator).join(n.separator);-1!==i.indexOf(n.separator)?(n._fill(i.split(n.separator),e,e[r],s),delete e[r]):e[r]=t(e[r],s)})),e},d.prototype.str=function(e,o,n,r){var s=l(e,this.separator).join(this.separator);return-1!==e.indexOf(this.separator)?this._fill(s.split(this.separator),n,o,r):n[e]=t(o,r),n},d.prototype.pick=function(e,t,n,r){var s,i,a,u,d;for(i=l(e,this.separator),s=0;s-1&&e%1==0&&e-1}},"./node_modules/lodash/_listCacheSet.js":function(e,t,o){var n=o("./node_modules/lodash/_assocIndexOf.js");e.exports=function(e,t){var o=this.__data__,r=n(o,e);return r<0?(++this.size,o.push([e,t])):o[r][1]=t,this}},"./node_modules/lodash/_mapCacheClear.js":function(e,t,o){var n=o("./node_modules/lodash/_Hash.js"),r=o("./node_modules/lodash/_ListCache.js"),s=o("./node_modules/lodash/_Map.js");e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(s||r),string:new n}}},"./node_modules/lodash/_mapCacheDelete.js":function(e,t,o){var n=o("./node_modules/lodash/_getMapData.js");e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},"./node_modules/lodash/_mapCacheGet.js":function(e,t,o){var n=o("./node_modules/lodash/_getMapData.js");e.exports=function(e){return n(this,e).get(e)}},"./node_modules/lodash/_mapCacheHas.js":function(e,t,o){var n=o("./node_modules/lodash/_getMapData.js");e.exports=function(e){return n(this,e).has(e)}},"./node_modules/lodash/_mapCacheSet.js":function(e,t,o){var n=o("./node_modules/lodash/_getMapData.js");e.exports=function(e,t){var o=n(this,e),r=o.size;return o.set(e,t),this.size+=o.size==r?0:1,this}},"./node_modules/lodash/_nativeCreate.js":function(e,t,o){var n=o("./node_modules/lodash/_getNative.js")(Object,"create");e.exports=n},"./node_modules/lodash/_nativeKeys.js":function(e,t,o){var n=o("./node_modules/lodash/_overArg.js")(Object.keys,Object);e.exports=n},"./node_modules/lodash/_nativeKeysIn.js":function(e){e.exports=function(e){var t=[];if(null!=e)for(var o in Object(e))t.push(o);return t}},"./node_modules/lodash/_nodeUtil.js":function(e,t,o){e=o.nmd(e);var n=o("./node_modules/lodash/_freeGlobal.js"),r=t&&!t.nodeType&&t,s=r&&e&&!e.nodeType&&e,i=s&&s.exports===r&&n.process,a=function(){try{var e=s&&s.require&&s.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a},"./node_modules/lodash/_objectToString.js":function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},"./node_modules/lodash/_overArg.js":function(e){e.exports=function(e,t){return function(o){return e(t(o))}}},"./node_modules/lodash/_root.js":function(e,t,o){var n=o("./node_modules/lodash/_freeGlobal.js"),r="object"==typeof self&&self&&self.Object===Object&&self,s=n||r||Function("return this")();e.exports=s},"./node_modules/lodash/_stackClear.js":function(e,t,o){var n=o("./node_modules/lodash/_ListCache.js");e.exports=function(){this.__data__=new n,this.size=0}},"./node_modules/lodash/_stackDelete.js":function(e){e.exports=function(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}},"./node_modules/lodash/_stackGet.js":function(e){e.exports=function(e){return this.__data__.get(e)}},"./node_modules/lodash/_stackHas.js":function(e){e.exports=function(e){return this.__data__.has(e)}},"./node_modules/lodash/_stackSet.js":function(e,t,o){var n=o("./node_modules/lodash/_ListCache.js"),r=o("./node_modules/lodash/_Map.js"),s=o("./node_modules/lodash/_MapCache.js");e.exports=function(e,t){var o=this.__data__;if(o instanceof n){var i=o.__data__;if(!r||i.length<199)return i.push([e,t]),this.size=++o.size,this;o=this.__data__=new s(i)}return o.set(e,t),this.size=o.size,this}},"./node_modules/lodash/_toSource.js":function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},"./node_modules/lodash/cloneDeep.js":function(e,t,o){var n=o("./node_modules/lodash/_baseClone.js");e.exports=function(e){return n(e,5)}},"./node_modules/lodash/eq.js":function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},"./node_modules/lodash/isArguments.js":function(e,t,o){var n=o("./node_modules/lodash/_baseIsArguments.js"),r=o("./node_modules/lodash/isObjectLike.js"),s=Object.prototype,i=s.hasOwnProperty,a=s.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return r(e)&&i.call(e,"callee")&&!a.call(e,"callee")};e.exports=l},"./node_modules/lodash/isArray.js":function(e){var t=Array.isArray;e.exports=t},"./node_modules/lodash/isArrayLike.js":function(e,t,o){var n=o("./node_modules/lodash/isFunction.js"),r=o("./node_modules/lodash/isLength.js");e.exports=function(e){return null!=e&&r(e.length)&&!n(e)}},"./node_modules/lodash/isBuffer.js":function(e,t,o){e=o.nmd(e);var n=o("./node_modules/lodash/_root.js"),r=o("./node_modules/lodash/stubFalse.js"),s=t&&!t.nodeType&&t,i=s&&e&&!e.nodeType&&e,a=i&&i.exports===s?n.Buffer:void 0,l=(a?a.isBuffer:void 0)||r;e.exports=l},"./node_modules/lodash/isFunction.js":function(e,t,o){var n=o("./node_modules/lodash/_baseGetTag.js"),r=o("./node_modules/lodash/isObject.js");e.exports=function(e){if(!r(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},"./node_modules/lodash/isLength.js":function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},"./node_modules/lodash/isMap.js":function(e,t,o){var n=o("./node_modules/lodash/_baseIsMap.js"),r=o("./node_modules/lodash/_baseUnary.js"),s=o("./node_modules/lodash/_nodeUtil.js"),i=s&&s.isMap,a=i?r(i):n;e.exports=a},"./node_modules/lodash/isObject.js":function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},"./node_modules/lodash/isObjectLike.js":function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},"./node_modules/lodash/isSet.js":function(e,t,o){var n=o("./node_modules/lodash/_baseIsSet.js"),r=o("./node_modules/lodash/_baseUnary.js"),s=o("./node_modules/lodash/_nodeUtil.js"),i=s&&s.isSet,a=i?r(i):n;e.exports=a},"./node_modules/lodash/isTypedArray.js":function(e,t,o){var n=o("./node_modules/lodash/_baseIsTypedArray.js"),r=o("./node_modules/lodash/_baseUnary.js"),s=o("./node_modules/lodash/_nodeUtil.js"),i=s&&s.isTypedArray,a=i?r(i):n;e.exports=a},"./node_modules/lodash/keys.js":function(e,t,o){var n=o("./node_modules/lodash/_arrayLikeKeys.js"),r=o("./node_modules/lodash/_baseKeys.js"),s=o("./node_modules/lodash/isArrayLike.js");e.exports=function(e){return s(e)?n(e):r(e)}},"./node_modules/lodash/keysIn.js":function(e,t,o){var n=o("./node_modules/lodash/_arrayLikeKeys.js"),r=o("./node_modules/lodash/_baseKeysIn.js"),s=o("./node_modules/lodash/isArrayLike.js");e.exports=function(e){return s(e)?n(e,!0):r(e)}},"./node_modules/lodash/stubArray.js":function(e){e.exports=function(){return[]}},"./node_modules/lodash/stubFalse.js":function(e){e.exports=function(){return!1}},"./node_modules/tippy.js/dist/tippy.esm.js":function(e,t,o){"use strict";o.r(t),o.d(t,{animateFill:function(){return fe},createSingleton:function(){return de},delegate:function(){return pe},followCursor:function(){return be},hideAll:function(){return le},inlinePositioning:function(){return je},roundArrow:function(){return s},sticky:function(){return ve}});var n=o("./node_modules/@popperjs/core/lib/popper.js"),r=o("./node_modules/@popperjs/core/lib/modifiers/applyStyles.js"),s='',i="tippy-content",a="tippy-backdrop",l="tippy-arrow",u="tippy-svg-arrow",d={passive:!0,capture:!0},c=function(){return document.body};function p(e,t,o){if(Array.isArray(e)){var n=e[t];return null==n?Array.isArray(o)?o[t]:o:n}return e}function f(e,t){var o={}.toString.call(e);return 0===o.indexOf("[object")&&o.indexOf(t+"]")>-1}function m(e,t){return"function"==typeof e?e.apply(void 0,t):e}function h(e,t){return 0===t?e:function(n){clearTimeout(o),o=setTimeout((function(){e(n)}),t)};var o}function _(e,t){var o=Object.assign({},e);return t.forEach((function(e){delete o[e]})),o}function b(e){return[].concat(e)}function j(e,t){-1===e.indexOf(t)&&e.push(t)}function v(e){return e.split("-")[0]}function y(e){return[].slice.call(e)}function g(e){return Object.keys(e).reduce((function(t,o){return void 0!==e[o]&&(t[o]=e[o]),t}),{})}function w(){return document.createElement("div")}function O(e){return["Element","Fragment"].some((function(t){return f(e,t)}))}function x(e){return f(e,"MouseEvent")}function E(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function L(e){return O(e)?[e]:function(e){return f(e,"NodeList")}(e)?y(e):Array.isArray(e)?e:y(document.querySelectorAll(e))}function S(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function P(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function A(e){var t,o=b(e)[0];return null!=o&&null!=(t=o.ownerDocument)&&t.body?o.ownerDocument:document}function C(e,t,o){var n=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[n](t,o)}))}function k(e,t){for(var o=t;o;){var n;if(e.contains(o))return!0;o=null==o.getRootNode||null==(n=o.getRootNode())?void 0:n.host}return!1}var T={isTouch:!1},M=0;function D(){T.isTouch||(T.isTouch=!0,window.performance&&document.addEventListener("mousemove",R))}function R(){var e=performance.now();e-M<20&&(T.isTouch=!1,document.removeEventListener("mousemove",R)),M=e}function I(){var e=document.activeElement;if(E(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var N,B=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;function W(e){return[e+"() was called on a"+("destroy"===e?"n already-":" ")+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function H(e){return e.replace(/[ \t]{2,}/g," ").replace(/^[ \t]*/gm,"").trim()}function V(e){return H("\n %ctippy.js\n\n %c"+H(e)+"\n\n %c👷‍ This is a development-only message. It will be removed in production.\n ")}function F(e){return[V(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}function Z(e,t){var o;e&&!N.has(t)&&(N.add(t),(o=console).warn.apply(o,F(t)))}function U(e,t){var o;e&&!N.has(t)&&(N.add(t),(o=console).error.apply(o,F(t)))}N=new Set;var G={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},q=Object.assign({appendTo:c,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},G,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),z=Object.keys(q);function $(e){var t=(e.plugins||[]).reduce((function(t,o){var n,r=o.name,s=o.defaultValue;r&&(t[r]=void 0!==e[r]?e[r]:null!=(n=q[r])?n:s);return t}),{});return Object.assign({},e,t)}function Y(e,t){var o=Object.assign({},t,{content:m(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys($(Object.assign({},q,{plugins:t}))):z).reduce((function(t,o){var n=(e.getAttribute("data-tippy-"+o)||"").trim();if(!n)return t;if("content"===o)t[o]=n;else try{t[o]=JSON.parse(n)}catch(e){t[o]=n}return t}),{})}(e,t.plugins));return o.aria=Object.assign({},q.aria,o.aria),o.aria={expanded:"auto"===o.aria.expanded?t.interactive:o.aria.expanded,content:"auto"===o.aria.content?t.interactive?null:"describedby":o.aria.content},o}function X(e,t){void 0===e&&(e={}),void 0===t&&(t=[]),Object.keys(e).forEach((function(e){var o,n,r=_(q,Object.keys(G)),s=(o=r,n=e,!{}.hasOwnProperty.call(o,n));s&&(s=0===t.filter((function(t){return t.name===e})).length),Z(s,["`"+e+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.","\n\n","All props: https://atomiks.github.io/tippyjs/v6/all-props/\n","Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))}))}var K=function(){return"innerHTML"};function J(e,t){e[K()]=t}function Q(e){var t=w();return!0===e?t.className=l:(t.className=u,O(e)?t.appendChild(e):J(t,e)),t}function ee(e,t){O(t.content)?(J(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?J(e,t.content):e.textContent=t.content)}function te(e){var t=e.firstElementChild,o=y(t.children);return{box:t,content:o.find((function(e){return e.classList.contains(i)})),arrow:o.find((function(e){return e.classList.contains(l)||e.classList.contains(u)})),backdrop:o.find((function(e){return e.classList.contains(a)}))}}function oe(e){var t=w(),o=w();o.className="tippy-box",o.setAttribute("data-state","hidden"),o.setAttribute("tabindex","-1");var n=w();function r(o,n){var r=te(t),s=r.box,i=r.content,a=r.arrow;n.theme?s.setAttribute("data-theme",n.theme):s.removeAttribute("data-theme"),"string"==typeof n.animation?s.setAttribute("data-animation",n.animation):s.removeAttribute("data-animation"),n.inertia?s.setAttribute("data-inertia",""):s.removeAttribute("data-inertia"),s.style.maxWidth="number"==typeof n.maxWidth?n.maxWidth+"px":n.maxWidth,n.role?s.setAttribute("role",n.role):s.removeAttribute("role"),o.content===n.content&&o.allowHTML===n.allowHTML||ee(i,e.props),n.arrow?a?o.arrow!==n.arrow&&(s.removeChild(a),s.appendChild(Q(n.arrow))):s.appendChild(Q(n.arrow)):a&&s.removeChild(a)}return n.className=i,n.setAttribute("data-state","hidden"),ee(n,e.props),t.appendChild(o),o.appendChild(n),r(e.props,e.props),{popper:t,onUpdate:r}}oe.$$tippy=!0;var ne=1,re=[],se=[];function ie(e,t){var o,r,s,i,a,l,u,f,_=Y(e,Object.assign({},q,$(g(t)))),O=!1,E=!1,L=!1,M=!1,D=[],R=h(Oe,_.interactiveDebounce),I=ne++,N=(f=_.plugins).filter((function(e,t){return f.indexOf(e)===t})),H={id:I,reference:e,popper:w(),popperInstance:null,props:_,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:N,clearDelayTimeouts:function(){clearTimeout(o),clearTimeout(r),cancelAnimationFrame(s)},setProps:function(t){Z(H.state.isDestroyed,W("setProps"));if(H.state.isDestroyed)return;ue("onBeforeUpdate",[H,t]),ge();var o=H.props,n=Y(e,Object.assign({},o,g(t),{ignoreAttributes:!0}));H.props=n,ye(),o.interactiveDebounce!==n.interactiveDebounce&&(pe(),R=h(Oe,n.interactiveDebounce));o.triggerTarget&&!n.triggerTarget?b(o.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):n.triggerTarget&&e.removeAttribute("aria-expanded");ce(),le(),G&&G(o,n);H.popperInstance&&(Se(),Ae().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));ue("onAfterUpdate",[H,t])},setContent:function(e){H.setProps({content:e})},show:function(){Z(H.state.isDestroyed,W("show"));var e=H.state.isVisible,t=H.state.isDestroyed,o=!H.state.isEnabled,n=T.isTouch&&!H.props.touch,r=p(H.props.duration,0,q.duration);if(e||t||o||n)return;if(ee().hasAttribute("disabled"))return;if(ue("onShow",[H],!1),!1===H.props.onShow(H))return;H.state.isVisible=!0,Q()&&(F.style.visibility="visible");le(),_e(),H.state.isMounted||(F.style.transition="none");if(Q()){var s=ie();S([s.box,s.content],0)}l=function(){var e;if(H.state.isVisible&&!M){if(M=!0,F.offsetHeight,F.style.transition=H.props.moveTransition,Q()&&H.props.animation){var t=ie(),o=t.box,n=t.content;S([o,n],r),P([o,n],"visible")}de(),ce(),j(se,H),null==(e=H.popperInstance)||e.forceUpdate(),ue("onMount",[H]),H.props.animation&&Q()&&function(e,t){je(e,t)}(r,(function(){H.state.isShown=!0,ue("onShown",[H])}))}},function(){var e,t=H.props.appendTo,o=ee();e=H.props.interactive&&t===c||"parent"===t?o.parentNode:m(t,[o]);e.contains(F)||e.appendChild(F);H.state.isMounted=!0,Se(),Z(H.props.interactive&&t===q.appendTo&&o.nextElementSibling!==F,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.","\n\n","Using a wrapper
or tag around the reference element","solves this by creating a new parentNode context.","\n\n","Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.","\n\n","See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}()},hide:function(){Z(H.state.isDestroyed,W("hide"));var e=!H.state.isVisible,t=H.state.isDestroyed,o=!H.state.isEnabled,n=p(H.props.duration,1,q.duration);if(e||t||o)return;if(ue("onHide",[H],!1),!1===H.props.onHide(H))return;H.state.isVisible=!1,H.state.isShown=!1,M=!1,O=!1,Q()&&(F.style.visibility="hidden");if(pe(),be(),le(!0),Q()){var r=ie(),s=r.box,i=r.content;H.props.animation&&(S([s,i],n),P([s,i],"hidden"))}de(),ce(),H.props.animation?Q()&&function(e,t){je(e,(function(){!H.state.isVisible&&F.parentNode&&F.parentNode.contains(F)&&t()}))}(n,H.unmount):H.unmount()},hideWithInteractivity:function(e){Z(H.state.isDestroyed,W("hideWithInteractivity"));oe().addEventListener("mousemove",R),j(re,R),R(e)},enable:function(){H.state.isEnabled=!0},disable:function(){H.hide(),H.state.isEnabled=!1},unmount:function(){Z(H.state.isDestroyed,W("unmount"));H.state.isVisible&&H.hide();if(!H.state.isMounted)return;Pe(),Ae().forEach((function(e){e._tippy.unmount()})),F.parentNode&&F.parentNode.removeChild(F);se=se.filter((function(e){return e!==H})),H.state.isMounted=!1,ue("onHidden",[H])},destroy:function(){Z(H.state.isDestroyed,W("destroy"));if(H.state.isDestroyed)return;H.clearDelayTimeouts(),H.unmount(),ge(),delete e._tippy,H.state.isDestroyed=!0,ue("onDestroy",[H])}};if(!_.render)return U(!0,"render() function has not been supplied."),H;var V=_.render(H),F=V.popper,G=V.onUpdate;F.setAttribute("data-tippy-root",""),F.id="tippy-"+H.id,H.popper=F,e._tippy=H,F._tippy=H;var z=N.map((function(e){return e.fn(H)})),X=e.hasAttribute("aria-expanded");return ye(),ce(),le(),ue("onCreate",[H]),_.showOnCreate&&Ce(),F.addEventListener("mouseenter",(function(){H.props.interactive&&H.state.isVisible&&H.clearDelayTimeouts()})),F.addEventListener("mouseleave",(function(){H.props.interactive&&H.props.trigger.indexOf("mouseenter")>=0&&oe().addEventListener("mousemove",R)})),H;function K(){var e=H.props.touch;return Array.isArray(e)?e:[e,0]}function J(){return"hold"===K()[0]}function Q(){var e;return!(null==(e=H.props.render)||!e.$$tippy)}function ee(){return u||e}function oe(){var e=ee().parentNode;return e?A(e):document}function ie(){return te(F)}function ae(e){return H.state.isMounted&&!H.state.isVisible||T.isTouch||i&&"focus"===i.type?0:p(H.props.delay,e?0:1,q.delay)}function le(e){void 0===e&&(e=!1),F.style.pointerEvents=H.props.interactive&&!e?"":"none",F.style.zIndex=""+H.props.zIndex}function ue(e,t,o){var n;(void 0===o&&(o=!0),z.forEach((function(o){o[e]&&o[e].apply(o,t)})),o)&&(n=H.props)[e].apply(n,t)}function de(){var t=H.props.aria;if(t.content){var o="aria-"+t.content,n=F.id;b(H.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(o);if(H.state.isVisible)e.setAttribute(o,t?t+" "+n:n);else{var r=t&&t.replace(n,"").trim();r?e.setAttribute(o,r):e.removeAttribute(o)}}))}}function ce(){!X&&H.props.aria.expanded&&b(H.props.triggerTarget||e).forEach((function(e){H.props.interactive?e.setAttribute("aria-expanded",H.state.isVisible&&e===ee()?"true":"false"):e.removeAttribute("aria-expanded")}))}function pe(){oe().removeEventListener("mousemove",R),re=re.filter((function(e){return e!==R}))}function fe(t){if(!T.isTouch||!L&&"mousedown"!==t.type){var o=t.composedPath&&t.composedPath()[0]||t.target;if(!H.props.interactive||!k(F,o)){if(b(H.props.triggerTarget||e).some((function(e){return k(e,o)}))){if(T.isTouch)return;if(H.state.isVisible&&H.props.trigger.indexOf("click")>=0)return}else ue("onClickOutside",[H,t]);!0===H.props.hideOnClick&&(H.clearDelayTimeouts(),H.hide(),E=!0,setTimeout((function(){E=!1})),H.state.isMounted||be())}}}function me(){L=!0}function he(){L=!1}function _e(){var e=oe();e.addEventListener("mousedown",fe,!0),e.addEventListener("touchend",fe,d),e.addEventListener("touchstart",he,d),e.addEventListener("touchmove",me,d)}function be(){var e=oe();e.removeEventListener("mousedown",fe,!0),e.removeEventListener("touchend",fe,d),e.removeEventListener("touchstart",he,d),e.removeEventListener("touchmove",me,d)}function je(e,t){var o=ie().box;function n(e){e.target===o&&(C(o,"remove",n),t())}if(0===e)return t();C(o,"remove",a),C(o,"add",n),a=n}function ve(t,o,n){void 0===n&&(n=!1),b(H.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,o,n),D.push({node:e,eventType:t,handler:o,options:n})}))}function ye(){var e;J()&&(ve("touchstart",we,{passive:!0}),ve("touchend",xe,{passive:!0})),(e=H.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(ve(e,we),e){case"mouseenter":ve("mouseleave",xe);break;case"focus":ve(B?"focusout":"blur",Ee);break;case"focusin":ve("focusout",Ee)}}))}function ge(){D.forEach((function(e){var t=e.node,o=e.eventType,n=e.handler,r=e.options;t.removeEventListener(o,n,r)})),D=[]}function we(e){var t,o=!1;if(H.state.isEnabled&&!Le(e)&&!E){var n="focus"===(null==(t=i)?void 0:t.type);i=e,u=e.currentTarget,ce(),!H.state.isVisible&&x(e)&&re.forEach((function(t){return t(e)})),"click"===e.type&&(H.props.trigger.indexOf("mouseenter")<0||O)&&!1!==H.props.hideOnClick&&H.state.isVisible?o=!0:Ce(e),"click"===e.type&&(O=!o),o&&!n&&ke(e)}}function Oe(e){var t=e.target,o=ee().contains(t)||F.contains(t);if("mousemove"!==e.type||!o){var n=Ae().concat(F).map((function(e){var t,o=null==(t=e._tippy.popperInstance)?void 0:t.state;return o?{popperRect:e.getBoundingClientRect(),popperState:o,props:_}:null})).filter(Boolean);(function(e,t){var o=t.clientX,n=t.clientY;return e.every((function(e){var t=e.popperRect,r=e.popperState,s=e.props.interactiveBorder,i=v(r.placement),a=r.modifiersData.offset;if(!a)return!0;var l="bottom"===i?a.top.y:0,u="top"===i?a.bottom.y:0,d="right"===i?a.left.x:0,c="left"===i?a.right.x:0,p=t.top-n+l>s,f=n-t.bottom-u>s,m=t.left-o+d>s,h=o-t.right-c>s;return p||f||m||h}))})(n,e)&&(pe(),ke(e))}}function xe(e){Le(e)||H.props.trigger.indexOf("click")>=0&&O||(H.props.interactive?H.hideWithInteractivity(e):ke(e))}function Ee(e){H.props.trigger.indexOf("focusin")<0&&e.target!==ee()||H.props.interactive&&e.relatedTarget&&F.contains(e.relatedTarget)||ke(e)}function Le(e){return!!T.isTouch&&J()!==e.type.indexOf("touch")>=0}function Se(){Pe();var t=H.props,o=t.popperOptions,r=t.placement,s=t.offset,i=t.getReferenceClientRect,a=t.moveTransition,u=Q()?te(F).arrow:null,d=i?{getBoundingClientRect:i,contextElement:i.contextElement||ee()}:e,c={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(Q()){var o=ie().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?o.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?o.setAttribute("data-"+e,""):o.removeAttribute("data-"+e)})),t.attributes.popper={}}}},p=[{name:"offset",options:{offset:s}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},c];Q()&&u&&p.push({name:"arrow",options:{element:u,padding:3}}),p.push.apply(p,(null==o?void 0:o.modifiers)||[]),H.popperInstance=(0,n.createPopper)(d,F,Object.assign({},o,{placement:r,onFirstUpdate:l,modifiers:p}))}function Pe(){H.popperInstance&&(H.popperInstance.destroy(),H.popperInstance=null)}function Ae(){return y(F.querySelectorAll("[data-tippy-root]"))}function Ce(e){H.clearDelayTimeouts(),e&&ue("onTrigger",[H,e]),_e();var t=ae(!0),n=K(),r=n[0],s=n[1];T.isTouch&&"hold"===r&&s&&(t=s),t?o=setTimeout((function(){H.show()}),t):H.show()}function ke(e){if(H.clearDelayTimeouts(),ue("onUntrigger",[H,e]),H.state.isVisible){if(!(H.props.trigger.indexOf("mouseenter")>=0&&H.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&O)){var t=ae(!1);t?r=setTimeout((function(){H.state.isVisible&&H.hide()}),t):s=requestAnimationFrame((function(){H.hide()}))}}else be()}}function ae(e,t){void 0===t&&(t={});var o=q.plugins.concat(t.plugins||[]);!function(e){var t=!e,o="[object Object]"===Object.prototype.toString.call(e)&&!e.addEventListener;U(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),U(o,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}(e),X(t,o),document.addEventListener("touchstart",D,d),window.addEventListener("blur",I);var n=Object.assign({},t,{plugins:o}),r=L(e),s=O(n.content),i=r.length>1;Z(s&&i,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.","\n\n","Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.","\n\n","1) content: element.innerHTML\n","2) content: () => element.cloneNode(true)"].join(" "));var a=r.reduce((function(e,t){var o=t&&ie(t,n);return o&&e.push(o),e}),[]);return O(e)?a[0]:a}ae.defaultProps=q,ae.setDefaultProps=function(e){X(e,[]),Object.keys(e).forEach((function(t){q[t]=e[t]}))},ae.currentInput=T;var le=function(e){var t=void 0===e?{}:e,o=t.exclude,n=t.duration;se.forEach((function(e){var t=!1;if(o&&(t=E(o)?e.reference===o:e.popper===o.popper),!t){var r=e.props.duration;e.setProps({duration:n}),e.hide(),e.state.isDestroyed||e.setProps({duration:r})}}))},ue=Object.assign({},r.default,{effect:function(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow)}}),de=function(e,t){var o;void 0===t&&(t={}),U(!Array.isArray(e),["The first argument passed to createSingleton() must be an array of","tippy instances. The passed value was",String(e)].join(" "));var n,r=e,s=[],i=[],a=t.overrides,l=[],u=!1;function d(){i=r.map((function(e){return b(e.props.triggerTarget||e.reference)})).reduce((function(e,t){return e.concat(t)}),[])}function c(){s=r.map((function(e){return e.reference}))}function p(e){r.forEach((function(t){e?t.enable():t.disable()}))}function f(e){return r.map((function(t){var o=t.setProps;return t.setProps=function(r){o(r),t.reference===n&&e.setProps(r)},function(){t.setProps=o}}))}function m(e,t){var o=i.indexOf(t);if(t!==n){n=t;var l=(a||[]).concat("content").reduce((function(e,t){return e[t]=r[o].props[t],e}),{});e.setProps(Object.assign({},l,{getReferenceClientRect:"function"==typeof l.getReferenceClientRect?l.getReferenceClientRect:function(){var e;return null==(e=s[o])?void 0:e.getBoundingClientRect()}}))}}p(!1),c(),d();var h={fn:function(){return{onDestroy:function(){p(!0)},onHidden:function(){n=null},onClickOutside:function(e){e.props.showOnCreate&&!u&&(u=!0,n=null)},onShow:function(e){e.props.showOnCreate&&!u&&(u=!0,m(e,s[0]))},onTrigger:function(e,t){m(e,t.currentTarget)}}}},j=ae(w(),Object.assign({},_(t,["overrides"]),{plugins:[h].concat(t.plugins||[]),triggerTarget:i,popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat((null==(o=t.popperOptions)?void 0:o.modifiers)||[],[ue])})})),v=j.show;j.show=function(e){if(v(),!n&&null==e)return m(j,s[0]);if(!n||null!=e){if("number"==typeof e)return s[e]&&m(j,s[e]);if(r.indexOf(e)>=0){var t=e.reference;return m(j,t)}return s.indexOf(e)>=0?m(j,e):void 0}},j.showNext=function(){var e=s[0];if(!n)return j.show(0);var t=s.indexOf(n);j.show(s[t+1]||e)},j.showPrevious=function(){var e=s[s.length-1];if(!n)return j.show(e);var t=s.indexOf(n),o=s[t-1]||e;j.show(o)};var y=j.setProps;return j.setProps=function(e){a=e.overrides||a,y(e)},j.setInstances=function(e){p(!0),l.forEach((function(e){return e()})),r=e,p(!1),c(),d(),l=f(j),j.setProps({triggerTarget:i})},l=f(j),j},ce={mouseover:"mouseenter",focusin:"focus",click:"click"};function pe(e,t){U(!(t&&t.target),["You must specity a `target` prop indicating a CSS selector string matching","the target elements that should receive a tippy."].join(" "));var o=[],n=[],r=!1,s=t.target,i=_(t,["target"]),a=Object.assign({},i,{trigger:"manual",touch:!1}),l=Object.assign({touch:q.touch},i,{showOnCreate:!0}),u=ae(e,a);function c(e){if(e.target&&!r){var o=e.target.closest(s);if(o){var i=o.getAttribute("data-tippy-trigger")||t.trigger||q.trigger;if(!o._tippy&&!("touchstart"===e.type&&"boolean"==typeof l.touch||"touchstart"!==e.type&&i.indexOf(ce[e.type])<0)){var a=ae(o,l);a&&(n=n.concat(a))}}}}function p(e,t,n,r){void 0===r&&(r=!1),e.addEventListener(t,n,r),o.push({node:e,eventType:t,handler:n,options:r})}return b(u).forEach((function(e){var t=e.destroy,s=e.enable,i=e.disable;e.destroy=function(e){void 0===e&&(e=!0),e&&n.forEach((function(e){e.destroy()})),n=[],o.forEach((function(e){var t=e.node,o=e.eventType,n=e.handler,r=e.options;t.removeEventListener(o,n,r)})),o=[],t()},e.enable=function(){s(),n.forEach((function(e){return e.enable()})),r=!1},e.disable=function(){i(),n.forEach((function(e){return e.disable()})),r=!0},function(e){var t=e.reference;p(t,"touchstart",c,d),p(t,"mouseover",c),p(t,"focusin",c),p(t,"click",c)}(e)})),u}var fe={name:"animateFill",defaultValue:!1,fn:function(e){var t;if(null==(t=e.props.render)||!t.$$tippy)return U(e.props.animateFill,"The `animateFill` plugin requires the default render function."),{};var o=te(e.popper),n=o.box,r=o.content,s=e.props.animateFill?function(){var e=w();return e.className=a,P([e],"hidden"),e}():null;return{onCreate:function(){s&&(n.insertBefore(s,n.firstElementChild),n.setAttribute("data-animatefill",""),n.style.overflow="hidden",e.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(s){var e=n.style.transitionDuration,t=Number(e.replace("ms",""));r.style.transitionDelay=Math.round(t/10)+"ms",s.style.transitionDuration=e,P([s],"visible")}},onShow:function(){s&&(s.style.transitionDuration="0ms")},onHide:function(){s&&P([s],"hidden")}}}};var me={clientX:0,clientY:0},he=[];function _e(e){var t=e.clientX,o=e.clientY;me={clientX:t,clientY:o}}var be={name:"followCursor",defaultValue:!1,fn:function(e){var t=e.reference,o=A(e.props.triggerTarget||t),n=!1,r=!1,s=!0,i=e.props;function a(){return"initial"===e.props.followCursor&&e.state.isVisible}function l(){o.addEventListener("mousemove",c)}function u(){o.removeEventListener("mousemove",c)}function d(){n=!0,e.setProps({getReferenceClientRect:null}),n=!1}function c(o){var n=!o.target||t.contains(o.target),r=e.props.followCursor,s=o.clientX,i=o.clientY,a=t.getBoundingClientRect(),l=s-a.left,u=i-a.top;!n&&e.props.interactive||e.setProps({getReferenceClientRect:function(){var e=t.getBoundingClientRect(),o=s,n=i;"initial"===r&&(o=e.left+l,n=e.top+u);var a="horizontal"===r?e.top:n,d="vertical"===r?e.right:o,c="horizontal"===r?e.bottom:n,p="vertical"===r?e.left:o;return{width:d-p,height:c-a,top:a,right:d,bottom:c,left:p}}})}function p(){e.props.followCursor&&(he.push({instance:e,doc:o}),function(e){e.addEventListener("mousemove",_e)}(o))}function f(){0===(he=he.filter((function(t){return t.instance!==e}))).filter((function(e){return e.doc===o})).length&&function(e){e.removeEventListener("mousemove",_e)}(o)}return{onCreate:p,onDestroy:f,onBeforeUpdate:function(){i=e.props},onAfterUpdate:function(t,o){var s=o.followCursor;n||void 0!==s&&i.followCursor!==s&&(f(),s?(p(),!e.state.isMounted||r||a()||l()):(u(),d()))},onMount:function(){e.props.followCursor&&!r&&(s&&(c(me),s=!1),a()||l())},onTrigger:function(e,t){x(t)&&(me={clientX:t.clientX,clientY:t.clientY}),r="focus"===t.type},onHidden:function(){e.props.followCursor&&(d(),u(),s=!0)}}}};var je={name:"inlinePositioning",defaultValue:!1,fn:function(e){var t,o=e.reference;var n=-1,r=!1,s=[],i={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(r){var i=r.state;e.props.inlinePositioning&&(-1!==s.indexOf(i.placement)&&(s=[]),t!==i.placement&&-1===s.indexOf(i.placement)&&(s.push(i.placement),e.setProps({getReferenceClientRect:function(){return function(e){return function(e,t,o,n){if(o.length<2||null===e)return t;if(2===o.length&&n>=0&&o[0].left>o[1].right)return o[n]||t;switch(e){case"top":case"bottom":var r=o[0],s=o[o.length-1],i="top"===e,a=r.top,l=s.bottom,u=i?r.left:s.left,d=i?r.right:s.right;return{top:a,bottom:l,left:u,right:d,width:d-u,height:l-a};case"left":case"right":var c=Math.min.apply(Math,o.map((function(e){return e.left}))),p=Math.max.apply(Math,o.map((function(e){return e.right}))),f=o.filter((function(t){return"left"===e?t.left===c:t.right===p})),m=f[0].top,h=f[f.length-1].bottom;return{top:m,bottom:h,left:c,right:p,width:p-c,height:h-m};default:return t}}(v(e),o.getBoundingClientRect(),y(o.getClientRects()),n)}(i.placement)}})),t=i.placement)}};function a(){var t;r||(t=function(e,t){var o;return{popperOptions:Object.assign({},e.popperOptions,{modifiers:[].concat(((null==(o=e.popperOptions)?void 0:o.modifiers)||[]).filter((function(e){return e.name!==t.name})),[t])})}}(e.props,i),r=!0,e.setProps(t),r=!1)}return{onCreate:a,onAfterUpdate:a,onTrigger:function(t,o){if(x(o)){var r=y(e.reference.getClientRects()),s=r.find((function(e){return e.left-2<=o.clientX&&e.right+2>=o.clientX&&e.top-2<=o.clientY&&e.bottom+2>=o.clientY})),i=r.indexOf(s);n=i>-1?i:n}},onHidden:function(){n=-1}}}};var ve={name:"sticky",defaultValue:!1,fn:function(e){var t=e.reference,o=e.popper;function n(t){return!0===e.props.sticky||e.props.sticky===t}var r=null,s=null;function i(){var a=n("reference")?(e.popperInstance?e.popperInstance.state.elements.reference:t).getBoundingClientRect():null,l=n("popper")?o.getBoundingClientRect():null;(a&&ye(r,a)||l&&ye(s,l))&&e.popperInstance&&e.popperInstance.update(),r=a,s=l,e.state.isMounted&&requestAnimationFrame(i)}return{onMount:function(){e.props.sticky&&i()}}}};function ye(e,t){return!e||!t||(e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left)}ae.setDefaultProps({render:oe}),t.default=ae},react:function(e){"use strict";e.exports=window.React},"react-dom":function(e){"use strict";e.exports=window.ReactDOM},"@wordpress/block-editor":function(e){"use strict";e.exports=window.wp.blockEditor},"@wordpress/components":function(e){"use strict";e.exports=window.wp.components},"@wordpress/components/build-style/style.css":function(e){"use strict";e.exports=window.wp["components/buildStyle/style.css"]},"@wordpress/data":function(e){"use strict";e.exports=window.wp.data},"@wordpress/element":function(e){"use strict";e.exports=window.wp.element},"@wordpress/i18n":function(e){"use strict";e.exports=window.wp.i18n},"./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":function(e,t,o){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(s[o]=e[o])}return s}},"./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js":function(e,t,o){"use strict";function n(e,t){if(null==e)return{};var o,n,r={},s=Object.keys(e);for(n=0;n=0||(r[o]=e[o]);return r}o.r(t),o.d(t,{default:function(){return n}})},"./node_modules/@babel/runtime/helpers/esm/slicedToArray.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return a}});var n=o("./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js"),r=o("./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js"),s=o("./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js"),i=o("./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js");function a(e,t){return(0,n.default)(e)||(0,r.default)(e,t)||(0,s.default)(e,t)||(0,i.default)()}},"./node_modules/@babel/runtime/helpers/esm/typeof.js":function(e,t,o){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}o.r(t),o.d(t,{default:function(){return n}})},"./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js":function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return r}});var n=o("./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");function r(e,t){if(e){if("string"==typeof e)return(0,n.default)(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?(0,n.default)(e,t):void 0}}}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var s=t[n]={id:n,loaded:!1,exports:{}};return e[n](s,s.exports,o),s.loaded=!0,s.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e};var n={};!function(){"use strict";o.r(n);var e=o("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),t=o("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=o("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),s=o("react"),i=o.n(s),a=o("./node_modules/dot-object/index.js"),l=o.n(a),u=o("@wordpress/element"),d=o("./src/js/gallery-block/controls.js"),c=o("./src/js/gallery-block/utils.js"),p=["customSettings"];function f(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function m(e){for(var o=1;o array(), 'version' => '980f7ffe080efd9cda16'); + array(), 'version' => '4209881ebc62da63f9ca'); diff --git a/js/inline-loader.js b/js/inline-loader.js index 605feba7c..ff59f6023 100644 --- a/js/inline-loader.js +++ b/js/inline-loader.js @@ -1 +1,2 @@ -!function(){"use strict";function t(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,r=new Array(e);i%26%23x26A0%3B︎',e.rObserver.unobserve(t)}))):this.setupFallback(t)},buildImage:function(t){t.dataset.srcset?(t.cld_loaded=!0,t.srcset=t.dataset.srcset):(t.src=this.getSizeURL(t),t.dataset.responsive&&this.rObserver.observe(t))},inInitialView:function(t){var e=t.getBoundingClientRect();return this.aboveFold=e.top=e;)t-=i,this.sizeBands.push(t);"undefined"!=typeof IntersectionObserver&&this._setupObservers(),this.enabled=!0},_setupObservers:function(){var t=this,e={rootMargin:this.lazyThreshold+"px 0px "+this.lazyThreshold+"px 0px"},i=this.minPlaceholderThreshold<2*this.lazyThreshold?2*this.lazyThreshold:this.minPlaceholderThreshold,r={rootMargin:i+"px 0px "+i+"px 0px"};this.rObserver=new ResizeObserver((function(e,i){e.forEach((function(e){e.target.cld_loaded&&e.contentRect.width>=e.target.cld_loaded&&(e.target.src=t.getSizeURL(e.target))}))})),this.iObserver=new IntersectionObserver((function(e,i){e.forEach((function(e){e.isIntersecting&&(t.buildImage(e.target),i.unobserve(e.target),t.pObserver.unobserve(e.target))}))}),e),this.pObserver=new IntersectionObserver((function(e,i){e.forEach((function(e){e.isIntersecting&&(e.target.src=t.getPlaceholderURL(e.target),i.unobserve(e.target))}))}),r)},_calcThreshold:function(){var t=this.config.lazy_threshold.replace(/[^0-9]/g,""),e=0;switch(this.config.lazy_threshold.replace(/[0-9]/g,"").toLowerCase()){case"em":e=parseFloat(getComputedStyle(document.body).fontSize)*t;break;case"rem":e=parseFloat(getComputedStyle(document.documentElement).fontSize)*t;break;case"vh":e=window.innerHeight/t*100;break;default:e=t}this.lazyThreshold=parseInt(e,10)},_getDensity:function(){var t=this.config.dpr?this.config.dpr.replace("X",""):"off";if("off"===t)return this.density=1,1;var e=this.deviceDensity;"max"!==t&&"auto"!==e&&(t=parseFloat(t),e=e>Math.ceil(t)?t:e),this.density=e},scaleWidth:function(t,e,i){var r=parseInt(this.config.max_width),n=Math.round(r/i);if(!e){e=t.width;for(var a=Math.round(e/i);-1===this.sizeBands.indexOf(e)&&ar&&(e=r),t.originalWidthe.length)&&(t=e.length);for(var r=0,n=new Array(t);r%26%23x26A0%3B︎',t.rObserver.unobserve(e)}))):this.setupFallback(e)},buildImage:function(e){e.dataset.srcset?(e.cld_loaded=!0,e.srcset=e.dataset.srcset):(e.src=this.getSizeURL(e),e.dataset.responsive&&this.rObserver.observe(e))},inInitialView:function(e){var t=e.getBoundingClientRect();return this.aboveFold=t.top=t;)e-=r,this.sizeBands.push(e);"undefined"!=typeof IntersectionObserver&&this._setupObservers(),this.enabled=!0},_setupObservers:function(){var e=this,t={rootMargin:this.lazyThreshold+"px 0px "+this.lazyThreshold+"px 0px"},r=this.minPlaceholderThreshold<2*this.lazyThreshold?2*this.lazyThreshold:this.minPlaceholderThreshold,n={rootMargin:r+"px 0px "+r+"px 0px"};this.rObserver=new ResizeObserver((function(t,r){t.forEach((function(t){t.target.cld_loaded&&t.contentRect.width>=t.target.cld_loaded&&(t.target.src=e.getSizeURL(t.target))}))})),this.iObserver=new IntersectionObserver((function(t,r){t.forEach((function(t){t.isIntersecting&&(e.buildImage(t.target),r.unobserve(t.target),e.pObserver.unobserve(t.target))}))}),t),this.pObserver=new IntersectionObserver((function(t,r){t.forEach((function(t){t.isIntersecting&&(t.target.src=e.getPlaceholderURL(t.target),r.unobserve(t.target))}))}),n)},_calcThreshold:function(){var e=this.config.lazy_threshold.replace(/[^0-9]/g,""),t=0;switch(this.config.lazy_threshold.replace(/[0-9]/g,"").toLowerCase()){case"em":t=parseFloat(getComputedStyle(document.body).fontSize)*e;break;case"rem":t=parseFloat(getComputedStyle(document.documentElement).fontSize)*e;break;case"vh":t=window.innerHeight/e*100;break;default:t=e}this.lazyThreshold=parseInt(t,10)},_getDensity:function(){var e=this.config.dpr?this.config.dpr.replace("X",""):"off";if("off"===e)return this.density=1,1;var t=this.deviceDensity;"max"!==e&&"auto"!==t&&(e=parseFloat(e),t=t>Math.ceil(e)?e:t),this.density=t},scaleWidth:function(e,t,r){var n=parseInt(this.config.max_width),i=Math.round(n/r);if(!t){t=e.width;for(var a=Math.round(t/r);-1===this.sizeBands.indexOf(t)&&an&&(t=n),e.originalWidth array(), 'version' => '5f8a7db86fbec1eede6b'); + array(), 'version' => 'c0329e6cbf0cd2aba0ae'); diff --git a/js/lazy-load.js b/js/lazy-load.js index d5b5d6c78..e15bf2110 100644 --- a/js/lazy-load.js +++ b/js/lazy-load.js @@ -1 +1,2 @@ -!function(){"use strict";function t(t,i){(null==i||i>t.length)&&(i=t.length);for(var e=0,n=new Array(i);e%26%23x26A0%3B︎';var n=t.images.indexOf(i);t.images.splice(n,1)}))}})),window.addEventListener("resize",(function(){t._throttle(t._build.bind(t),100,!0)})),window.addEventListener("scroll",(function(){t._throttle(t._build.bind(t),100,!1)})),setTimeout((function(){return t._build()}),0)},_calcThreshold:function(){var t=this.config.lazy_threshold.replace(/[^0-9]/g,""),i=0;switch(this.config.lazy_threshold.replace(/[0-9]/g,"").toLowerCase()){case"em":i=parseFloat(getComputedStyle(document.body).fontSize)*t;break;case"rem":i=parseFloat(getComputedStyle(document.documentElement).fontSize)*t;break;case"vh":i=window.innerHeight/t*100;break;default:i=t}this.lazyThreshold=window.innerHeight+parseInt(i,10)},_getDensity:function(){if(this.density)return this.density;var t=this.config.dpr?this.config.dpr.replace("X",""):"off";if("off"===t)return this.density=1,1;var i=this.deviceDensity;return"max"!==t&&"auto"!==i&&(t=parseFloat(t),i=i>Math.ceil(t)?t:i),this.density=i,i},_throttle:function(t,i,e){var n=this;this.throttle||setTimeout((function(){t(e),n.throttle=!1}),i)},_build:function(t){var i=this;this.images.forEach((function(e){!t&&e.cld_loaded||i.buildSize(e)}))},_shouldRebuild:function(t){var i=this.scaleWidth(t),e=t.getBoundingClientRect(),n="auto"!==this.density?this._getDensity():1;return e.topt.naturalWidth/n||!t.cld_loaded)},_shouldPlacehold:function(t){var i=this.scaleWidth(t),e=t.getBoundingClientRect(),n="auto"!==this.density?this._getDensity():1;return this.config.placeholder&&!t.cld_loaded&&e.top<2*this.lazyThreshold&&(i>t.naturalWidth/n||!t.cld_placehold)},scaleWidth:function(t){var i=this.config.pixel_step,e=Math.floor((t.originalWidth-t.width)/i),n=t.originalWidth-i*e;return n>t.originalWidth?n=t.originalWidth:this.config.max_widthn&&(n=this.config.min_width),n},scaleSize:function(t,i){var e=(t.originalWidth/t.originalHeight).toFixed(3),n=(t.width/t.height).toFixed(3),o=this.scaleWidth(t),r=[];t.width!==t.originalWidth&&r.push(e===n?"c_scale":"c_fill,g_auto");var a=Math.round(o/n);if(r.push("w_"+o),r.push("h_"+a),i){var s=this._getDensity();1!==s&&r.push("dpr_"+s)}return{transformation:r.join(","),nameExtension:o+"x"+a}},buildSize:function(t){this._shouldRebuild(t)?t.dataset.srcset?(t.cld_loaded=!0,t.srcset=t.dataset.srcset):t.src=this.getSizeURL(t):this._shouldPlacehold(t)&&(t.src=this.getPlaceholderURL(t))},getSizeURL:function(t){t.cld_loaded=!0;var i=this.scaleSize(t,!0),e="auto"!==this.config.image_format&&"none"!==this.config.image_format?this.config.image_format:t.dataset.format,n=t.dataset.publicId.split("/").pop();return[this.config.base_url,"images",i.transformation,t.dataset.transformations,t.dataset.publicId,n+"-"+i.nameExtension+"."+e+"?_i=AA"].filter(this.empty).join("/")},getPlaceholderURL:function(t){t.cld_placehold=!0;var i=this.scaleSize(t,!1);return[this.config.base_url,"images",i.transformation,this.config.placeholder,t.dataset.publicId,"placeholder"].filter(this.empty).join("/")},empty:function(t){return 0!==t.length}};window.addEventListener("load",(function(){e._init()}))}(); \ No newline at end of file +!function(){"use strict";var e={"./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":function(e,t,i){function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,r=new Array(t);i%26%23x26A0%3B︎';var r=e.images.indexOf(t);e.images.splice(r,1)}))}})),window.addEventListener("resize",(function(){e._throttle(e._build.bind(e),100,!0)})),window.addEventListener("scroll",(function(){e._throttle(e._build.bind(e),100,!1)})),setTimeout((function(){return e._build()}),0)},_calcThreshold:function(){var e=this.config.lazy_threshold.replace(/[^0-9]/g,""),t=0;switch(this.config.lazy_threshold.replace(/[0-9]/g,"").toLowerCase()){case"em":t=parseFloat(getComputedStyle(document.body).fontSize)*e;break;case"rem":t=parseFloat(getComputedStyle(document.documentElement).fontSize)*e;break;case"vh":t=window.innerHeight/e*100;break;default:t=e}this.lazyThreshold=window.innerHeight+parseInt(t,10)},_getDensity:function(){if(this.density)return this.density;var e=this.config.dpr?this.config.dpr.replace("X",""):"off";if("off"===e)return this.density=1,1;var t=this.deviceDensity;return"max"!==e&&"auto"!==t&&(e=parseFloat(e),t=t>Math.ceil(e)?e:t),this.density=t,t},_throttle:function(e,t,i){var r=this;this.throttle||setTimeout((function(){e(i),r.throttle=!1}),t)},_build:function(e){var t=this;this.images.forEach((function(i){!e&&i.cld_loaded||t.buildSize(i)}))},_shouldRebuild:function(e){var t=this.scaleWidth(e),i=e.getBoundingClientRect(),r="auto"!==this.density?this._getDensity():1;return i.tope.naturalWidth/r||!e.cld_loaded)},_shouldPlacehold:function(e){var t=this.scaleWidth(e),i=e.getBoundingClientRect(),r="auto"!==this.density?this._getDensity():1;return this.config.placeholder&&!e.cld_loaded&&i.top<2*this.lazyThreshold&&(t>e.naturalWidth/r||!e.cld_placehold)},scaleWidth:function(e){var t=this.config.pixel_step,i=Math.floor((e.originalWidth-e.width)/t),r=e.originalWidth-t*i;return r>e.originalWidth?r=e.originalWidth:this.config.max_widthr&&(r=this.config.min_width),r},scaleSize:function(e,t){var i=(e.originalWidth/e.originalHeight).toFixed(3),r=(e.width/e.height).toFixed(3),n=this.scaleWidth(e),o=[];e.width!==e.originalWidth&&o.push(i===r?"c_scale":"c_fill,g_auto");var a=Math.round(n/r);if(o.push("w_"+n),o.push("h_"+a),t){var s=this._getDensity();1!==s&&o.push("dpr_"+s)}return{transformation:o.join(","),nameExtension:n+"x"+a}},buildSize:function(e){this._shouldRebuild(e)?e.dataset.srcset?(e.cld_loaded=!0,e.srcset=e.dataset.srcset):e.src=this.getSizeURL(e):this._shouldPlacehold(e)&&(e.src=this.getPlaceholderURL(e))},getSizeURL:function(e){e.cld_loaded=!0;var t=this.scaleSize(e,!0),i="auto"!==this.config.image_format&&"none"!==this.config.image_format?this.config.image_format:e.dataset.format,r=e.dataset.publicId.split("/").pop();return[this.config.base_url,"images",t.transformation,e.dataset.transformations,e.dataset.publicId,r+"-"+t.nameExtension+"."+i+"?_i=AA"].filter(this.empty).join("/")},getPlaceholderURL:function(e){e.cld_placehold=!0;var t=this.scaleSize(e,!1);return[this.config.base_url,"images",t.transformation,this.config.placeholder,e.dataset.publicId,"placeholder"].filter(this.empty).join("/")},empty:function(e){return 0!==e.length}};window.addEventListener("load",(function(){n._init()}))}(); +//# sourceMappingURL=lazy-load.js.map \ No newline at end of file diff --git a/js/lazyload-preview.js b/js/lazyload-preview.js index 9e0af94e7..783d15a8c 100644 --- a/js/lazyload-preview.js +++ b/js/lazyload-preview.js @@ -1 +1,2 @@ -!function(){var e={616:function(e){e.exports=function(e,t){var n,r,i=0;function o(){var o,s,a=n,l=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(s=0;s=0),a.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,a.width?parseInt(a.width):0);break;case"e":n=a.precision?parseFloat(n).toExponential(a.precision):parseFloat(n).toExponential();break;case"f":n=a.precision?parseFloat(n).toFixed(a.precision):parseFloat(n);break;case"g":n=a.precision?String(Number(n.toPrecision(a.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=a.precision?n.substring(0,a.precision):n;break;case"t":n=String(!!n),n=a.precision?n.substring(0,a.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=a.precision?n.substring(0,a.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=a.precision?n.substring(0,a.precision):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase()}i.json.test(a.type)?g+=n:(!i.number.test(a.type)||h&&!a.sign?d="":(d=h?"+":"-",n=n.toString().replace(i.sign,"")),c=a.pad_char?"0"===a.pad_char?"0":a.pad_char.charAt(1):" ",u=a.width-(d+n).length,l=a.width&&u>0?c.repeat(u):"",g+=a.align?d+n+l:"0"===c?d+l+n:l+d+n)}return g}(function(e){if(a[e])return a[e];var t,n=e,r=[],o=0;for(;n;){if(null!==(t=i.text.exec(n)))r.push(t[0]);else if(null!==(t=i.modulo.exec(n)))r.push("%");else{if(null===(t=i.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){o|=1;var s=[],l=t[2],c=[];if(null===(c=i.key.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(s.push(c[1]);""!==(l=l.substring(c[0].length));)if(null!==(c=i.key_access.exec(l)))s.push(c[1]);else{if(null===(c=i.index_access.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");s.push(c[1])}t[2]=s}else o|=2;if(3===o)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}n=n.substring(t[0].length)}return a[e]=r}(e),arguments)}function s(e,t){return o.apply(null,[e].concat(t||[]))}var a=Object.create(null);o,s,"undefined"!=typeof window&&(window.sprintf=o,window.vsprintf=s,void 0===(r=function(){return{sprintf:o,vsprintf:s}}.call(t,n,t,e))||(e.exports=r))}()}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e,t,r,i,o=n(616),s=n.n(o);n(604),s()(console.error);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},t=["(","?"],r={")":["("],":":["?","?:"]},i=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var l={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function c(n){var o=function(n){for(var o,s,a,l,c=[],u=[];o=n.match(i);){for(s=o[0],(a=n.substr(0,o.index).trim())&&c.push(a);l=u.pop();){if(r[s]){if(r[s][0]===l){s=r[s][1]||s;break}}else if(t.indexOf(l)>=0||e[l]3&&void 0!==arguments[3]?arguments[3]:10,s=e[t];if(m(n)&&y(r))if("function"==typeof i)if("number"==typeof o){var a={callback:i,priority:o,namespace:r};if(s[n]){var l,c=s[n].handlers;for(l=c.length;l>0&&!(o>=c[l-1].priority);l--);l===c.length?c[l]=a:c.splice(l,0,a),s.__current.forEach((function(e){e.name===n&&e.currentIndex>=l&&e.currentIndex++}))}else s[n]={handlers:[a],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,r,i,o)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}};var b=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r,i){var o=e[t];if(m(r)&&(n||y(i))){if(!o[r])return 0;var s=0;if(n)s=o[r].handlers.length,o[r]={runs:o[r].runs,handlers:[]};else for(var a=o[r].handlers,l=function(e){a[e].namespace===i&&(a.splice(e,1),s++,o.__current.forEach((function(t){t.name===r&&t.currentIndex>=e&&t.currentIndex--})))},c=a.length-1;c>=0;c--)l(c);return"hookRemoved"!==r&&e.doAction("hookRemoved",r,i),s}}};var _=function(e,t){return function(n,r){var i=e[t];return void 0!==r?n in i&&i[n].handlers.some((function(e){return e.namespace===r})):n in i}};var x=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r){var i=e[t];i[r]||(i[r]={handlers:[],runs:0}),i[r].runs++;var o=i[r].handlers;for(var s=arguments.length,a=new Array(s>1?s-1:0),l=1;l1&&void 0!==arguments[1]?arguments[1]:"default";r.data[t]=p(p(p({},f),r.data[t]),e),r.data[t][""]=p(p({},f[""]),r.data[t][""])},a=function(e,t){s(e,t),o()},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;return r.data[e]||s(void 0,e),r.dcnpgettext(e,t,n,i,o)},c=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default"},u=function(e,t,r){var i=l(r,t,e);return n?(i=n.applyFilters("i18n.gettext_with_context",i,e,t,r),n.applyFilters("i18n.gettext_with_context_"+c(r),i,e,t,r)):i};if(e&&a(e,t),n){var d=function(e){g.test(e)&&o()};n.addAction("hookAdded","core/i18n",d),n.addAction("hookRemoved","core/i18n",d)}return{getLocaleData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return r.data[e]},setLocaleData:a,resetLocaleData:function(e,t){r.data={},r.pluralForms={},a(e,t)},subscribe:function(e){return i.add(e),function(){return i.delete(e)}},__:function(e,t){var r=l(t,void 0,e);return n?(r=n.applyFilters("i18n.gettext",r,e,t),n.applyFilters("i18n.gettext_"+c(t),r,e,t)):r},_x:u,_n:function(e,t,r,i){var o=l(i,void 0,e,t,r);return n?(o=n.applyFilters("i18n.ngettext",o,e,t,r,i),n.applyFilters("i18n.ngettext_"+c(i),o,e,t,r,i)):o},_nx:function(e,t,r,i,o){var s=l(o,i,e,t,r);return n?(s=n.applyFilters("i18n.ngettext_with_context",s,e,t,r,i,o),n.applyFilters("i18n.ngettext_with_context_"+c(o),s,e,t,r,i,o)):s},isRTL:function(){return"rtl"===u("ltr","text direction")},hasTranslation:function(e,t,i){var o,s,a=t?t+""+e:e,l=!(null===(o=r.data)||void 0===o||null===(s=o[null!=i?i:"default"])||void 0===s||!s[a]);return n&&(l=n.applyFilters("i18n.has_translation",l,e,t,i),l=n.applyFilters("i18n.has_translation_"+c(i),l,e,t,i)),l}}}(void 0,void 0,A));T.getLocaleData.bind(T),T.setLocaleData.bind(T),T.resetLocaleData.bind(T),T.subscribe.bind(T),T.__.bind(T),T._x.bind(T),T._n.bind(T),T._nx.bind(T),T.isRTL.bind(T),T.hasTranslation.bind(T);const E={cycleTime:2e3,animate:document.getElementById("lazy_loading.lazy_animate"),image:document.getElementById("lazyload-image"),placeHolders:document.querySelectorAll('[name="lazy_loading[lazy_placeholder]"]'),preloader:document.getElementById("preloader-image"),color:document.getElementById("lazy_loading.lazy_custom_color"),previewCycle:document.getElementById("preview-cycle"),progress:document.getElementById("progress-bar"),threshold:document.getElementById("lazy_loading.lazy_threshold"),currentPlaceholder:null,svg:null,running:!1,init(){this.svg=this.image.dataset.svg,this.currentPlaceholder=document.getElementById("placeholder-"+this.getPlaceholder()),[...this.placeHolders].forEach((e=>{e.addEventListener("change",(()=>this.changePlaceholder(e.value)))})),this.color.addEventListener("input",(()=>this.changePreloader())),this.animate.addEventListener("change",(()=>this.changePreloader())),this.previewCycle.addEventListener("click",(()=>this.startCycle()))},getPlaceholder:()=>document.querySelector('[name="lazy_loading[lazy_placeholder]"]:checked').value,changePreloader(){this.preloader.src=this.getSVG()},changePlaceholder(e){const t=document.getElementById("placeholder-"+e);this.currentPlaceholder&&(this.currentPlaceholder.style.display="none",this.currentPlaceholder.style.width="85%",this.currentPlaceholder.style.boxShadow="",this.currentPlaceholder.style.bottom="0"),t&&(t.style.display=""),this.currentPlaceholder=t},getThreshold(){return parseInt(this.threshold.value)+this.image.parentNode.parentNode.offsetHeight},startCycle(){this.running?this.endCycle():(this.changePlaceholder("none"),this.image.parentNode.parentNode.style.overflowY="scroll",this.image.parentNode.style.visibility="hidden",this.image.parentNode.style.width="100%",this.image.parentNode.style.boxShadow="none",this.progress.style.width="100%",this.preloader.parentNode.style.visibility="hidden",this.running=setTimeout((()=>{this.progress.style.visibility="hidden",this.progress.style.width="0%",this.preloader.parentNode.style.visibility="",setTimeout((()=>{const e=this.getThreshold();this.image.parentNode.style.visibility="",this.preloader.parentNode.style.bottom="-"+e+"px",setTimeout((()=>{setTimeout((()=>{this.image.parentNode.parentNode.scrollTo({top:e,behavior:"smooth"}),this.showPlaceholder()}),this.cycleTime/3)}),this.cycleTime/2)}),this.cycleTime/2)}),this.cycleTime/2))},showPlaceholder(){const e=this.getPlaceholder(),t=this.getThreshold();"off"!==e&&(this.changePlaceholder(e),this.currentPlaceholder&&(this.currentPlaceholder.style.width="100%",this.currentPlaceholder.style.boxShadow="none",this.currentPlaceholder.style.bottom="-"+t+"px")),setTimeout((()=>{this.showImage()}),this.cycleTime/2)},showImage(){const e=this.getThreshold();this.changePlaceholder("none"),this.image.parentNode.style.bottom="-"+e+"px",this.image.parentNode.style.visibility="",setTimeout((()=>{this.endCycle()}),this.cycleTime)},endCycle(){clearTimeout(this.running),this.running=!1,this.changePlaceholder(this.getPlaceholder()),this.image.parentNode.style.visibility="",this.image.parentNode.style.bottom="0",this.image.parentNode.style.width="65%",this.image.parentNode.style.boxShadow="",this.preloader.parentNode.style.bottom="0",this.image.parentNode.parentNode.style.overflowY="",this.progress.style.visibility=""},getSVG(){let e=this.color.value;const t=[e];if(this.animate.checked){const n=[...e.matchAll(new RegExp(/[\d+\.*]+/g))];n[3]=.1,t.push("rgba("+n.join(",")+")"),t.push(e)}return this.svg.replace("-color-",t.join(";"))},showLoader(){this.image.parentNode.style.opacity=1,this.image.parentNode.src=this.getSVG(),setTimeout((()=>{this.showPlaceholder(this.image.parentNode.dataset.placeholder)}),this.cycleTime)}};window.addEventListener("load",(()=>E.init()))}()}(); \ No newline at end of file +!function(){var e={"./node_modules/@tannin/compile/index.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n("./node_modules/@tannin/postfix/index.js"),o=n("./node_modules/@tannin/evaluate/index.js");function i(e){var t=(0,r.default)(e);return function(e){return(0,o.default)(t,e)}}},"./node_modules/@tannin/evaluate/index.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function o(e,t){var n,o,i,s,a,u,l=[];for(n=0;n=0||r[u]":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},o=["(","?"],i={")":["("],":":["?","?:"]},s=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/},"./node_modules/@wordpress/hooks/build-module/createAddHook.js":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/@wordpress/hooks/build-module/validateNamespace.js"),o=n("./node_modules/@wordpress/hooks/build-module/validateHookName.js");t.default=function(e,t){return function(n,i,s){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,u=e[t];if((0,o.default)(n)&&(0,r.default)(i))if("function"==typeof s)if("number"==typeof a){var l={callback:s,priority:a,namespace:i};if(u[n]){var d,c=u[n].handlers;for(d=c.length;d>0&&!(a>=c[d-1].priority);d--);d===c.length?c[d]=l:c.splice(d,0,l),u.__current.forEach((function(e){e.name===n&&e.currentIndex>=d&&e.currentIndex++}))}else u[n]={handlers:[l],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,i,s,a)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}}},"./node_modules/@wordpress/hooks/build-module/createCurrentHook.js":function(e,t,n){"use strict";n.r(t),t.default=function(e,t){return function(){var n,r,o=e[t];return null!==(n=null===(r=o.__current[o.__current.length-1])||void 0===r?void 0:r.name)&&void 0!==n?n:null}}},"./node_modules/@wordpress/hooks/build-module/createDidHook.js":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/@wordpress/hooks/build-module/validateHookName.js");t.default=function(e,t){return function(n){var o=e[t];if((0,r.default)(n))return o[n]&&o[n].runs?o[n].runs:0}}},"./node_modules/@wordpress/hooks/build-module/createDoingHook.js":function(e,t,n){"use strict";n.r(t),t.default=function(e,t){return function(n){var r=e[t];return void 0===n?void 0!==r.__current[0]:!!r.__current[0]&&n===r.__current[0].name}}},"./node_modules/@wordpress/hooks/build-module/createHasHook.js":function(e,t,n){"use strict";n.r(t),t.default=function(e,t){return function(n,r){var o=e[t];return void 0!==r?n in o&&o[n].handlers.some((function(e){return e.namespace===r})):n in o}}},"./node_modules/@wordpress/hooks/build-module/createHooks.js":function(e,t,n){"use strict";n.r(t),n.d(t,{_Hooks:function(){return c}});var r=n("./node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),o=n("./node_modules/@wordpress/hooks/build-module/createAddHook.js"),i=n("./node_modules/@wordpress/hooks/build-module/createRemoveHook.js"),s=n("./node_modules/@wordpress/hooks/build-module/createHasHook.js"),a=n("./node_modules/@wordpress/hooks/build-module/createRunHook.js"),u=n("./node_modules/@wordpress/hooks/build-module/createCurrentHook.js"),l=n("./node_modules/@wordpress/hooks/build-module/createDoingHook.js"),d=n("./node_modules/@wordpress/hooks/build-module/createDidHook.js"),c=function e(){(0,r.default)(this,e),this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=(0,o.default)(this,"actions"),this.addFilter=(0,o.default)(this,"filters"),this.removeAction=(0,i.default)(this,"actions"),this.removeFilter=(0,i.default)(this,"filters"),this.hasAction=(0,s.default)(this,"actions"),this.hasFilter=(0,s.default)(this,"filters"),this.removeAllActions=(0,i.default)(this,"actions",!0),this.removeAllFilters=(0,i.default)(this,"filters",!0),this.doAction=(0,a.default)(this,"actions"),this.applyFilters=(0,a.default)(this,"filters",!0),this.currentAction=(0,u.default)(this,"actions"),this.currentFilter=(0,u.default)(this,"filters"),this.doingAction=(0,l.default)(this,"actions"),this.doingFilter=(0,l.default)(this,"filters"),this.didAction=(0,d.default)(this,"actions"),this.didFilter=(0,d.default)(this,"filters")};t.default=function(){return new c}},"./node_modules/@wordpress/hooks/build-module/createRemoveHook.js":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/@wordpress/hooks/build-module/validateNamespace.js"),o=n("./node_modules/@wordpress/hooks/build-module/validateHookName.js");t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(i,s){var a=e[t];if((0,o.default)(i)&&(n||(0,r.default)(s))){if(!a[i])return 0;var u=0;if(n)u=a[i].handlers.length,a[i]={runs:a[i].runs,handlers:[]};else for(var l=a[i].handlers,d=function(e){l[e].namespace===s&&(l.splice(e,1),u++,a.__current.forEach((function(t){t.name===i&&t.currentIndex>=e&&t.currentIndex--})))},c=l.length-1;c>=0;c--)d(c);return"hookRemoved"!==i&&e.doAction("hookRemoved",i,s),u}}}},"./node_modules/@wordpress/hooks/build-module/createRunHook.js":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(o){var i=e[t];i[o]||(i[o]={handlers:[],runs:0}),i[o].runs++;var s=i[o].handlers;"hookAdded"!==o&&i.all&&s.push.apply(s,(0,r.default)(i.all.handlers));for(var a=arguments.length,u=new Array(a>1?a-1:0),l=1;l1&&void 0!==arguments[1]?arguments[1]:"default";r.data[t]=s(s(s({},a),r.data[t]),e),r.data[t][""]=s(s({},a[""]),r.data[t][""])},c=function(e,t){d(e,t),l()},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return r.data[e]||d(void 0,e),r.dcnpgettext(e,t,n,o,i)},h=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default"},p=function(e,t,r){var o=f(r,t,e);return n?(o=n.applyFilters("i18n.gettext_with_context",o,e,t,r),n.applyFilters("i18n.gettext_with_context_"+h(r),o,e,t,r)):o};if(e&&c(e,t),n){var m=function(e){u.test(e)&&l()};n.addAction("hookAdded","core/i18n",m),n.addAction("hookRemoved","core/i18n",m)}return{getLocaleData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return r.data[e]},setLocaleData:c,resetLocaleData:function(e,t){r.data={},r.pluralForms={},c(e,t)},subscribe:function(e){return i.add(e),function(){return i.delete(e)}},__:function(e,t){var r=f(t,void 0,e);return n?(r=n.applyFilters("i18n.gettext",r,e,t),n.applyFilters("i18n.gettext_"+h(t),r,e,t)):r},_x:p,_n:function(e,t,r,o){var i=f(o,void 0,e,t,r);return n?(i=n.applyFilters("i18n.ngettext",i,e,t,r,o),n.applyFilters("i18n.ngettext_"+h(o),i,e,t,r,o)):i},_nx:function(e,t,r,o,i){var s=f(i,o,e,t,r);return n?(s=n.applyFilters("i18n.ngettext_with_context",s,e,t,r,o,i),n.applyFilters("i18n.ngettext_with_context_"+h(i),s,e,t,r,o,i)):s},isRTL:function(){return"rtl"===p("ltr","text direction")},hasTranslation:function(e,t,o){var i,s,a=t?t+""+e:e,u=!(null===(i=r.data)||void 0===i||null===(s=i[null!=o?o:"default"])||void 0===s||!s[a]);return n&&(u=n.applyFilters("i18n.has_translation",u,e,t,o),u=n.applyFilters("i18n.has_translation_"+h(o),u,e,t,o)),u}}}},"./node_modules/@wordpress/i18n/build-module/default-i18n.js":function(e,t,n){"use strict";n.r(t),n.d(t,{__:function(){return d},_n:function(){return f},_nx:function(){return h},_x:function(){return c},getLocaleData:function(){return s},hasTranslation:function(){return m},isRTL:function(){return p},resetLocaleData:function(){return u},setLocaleData:function(){return a},subscribe:function(){return l}});var r=n("./node_modules/@wordpress/i18n/build-module/create-i18n.js"),o=n("./node_modules/@wordpress/hooks/build-module/index.js"),i=(0,r.createI18n)(void 0,void 0,o.defaultHooks);t.default=i;var s=i.getLocaleData.bind(i),a=i.setLocaleData.bind(i),u=i.resetLocaleData.bind(i),l=i.subscribe.bind(i),d=i.__.bind(i),c=i._x.bind(i),f=i._n.bind(i),h=i._nx.bind(i),p=i.isRTL.bind(i),m=i.hasTranslation.bind(i)},"./node_modules/@wordpress/i18n/build-module/index.js":function(e,t,n){"use strict";n.r(t),n.d(t,{__:function(){return i.__},_n:function(){return i._n},_nx:function(){return i._nx},_x:function(){return i._x},createI18n:function(){return o.createI18n},defaultI18n:function(){return i.default},getLocaleData:function(){return i.getLocaleData},hasTranslation:function(){return i.hasTranslation},isRTL:function(){return i.isRTL},resetLocaleData:function(){return i.resetLocaleData},setLocaleData:function(){return i.setLocaleData},sprintf:function(){return r.sprintf},subscribe:function(){return i.subscribe}});var r=n("./node_modules/@wordpress/i18n/build-module/sprintf.js"),o=n("./node_modules/@wordpress/i18n/build-module/create-i18n.js"),i=n("./node_modules/@wordpress/i18n/build-module/default-i18n.js")},"./node_modules/@wordpress/i18n/build-module/sprintf.js":function(e,t,n){"use strict";n.r(t),n.d(t,{sprintf:function(){return u}});var r=n("./node_modules/memize/index.js"),o=n.n(r),i=n("./node_modules/sprintf-js/src/sprintf.js"),s=n.n(i),a=o()(console.error);function u(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0),a.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,a.width?parseInt(a.width):0);break;case"e":n=a.precision?parseFloat(n).toExponential(a.precision):parseFloat(n).toExponential();break;case"f":n=a.precision?parseFloat(n).toFixed(a.precision):parseFloat(n);break;case"g":n=a.precision?String(Number(n.toPrecision(a.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=a.precision?n.substring(0,a.precision):n;break;case"t":n=String(!!n),n=a.precision?n.substring(0,a.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=a.precision?n.substring(0,a.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=a.precision?n.substring(0,a.precision):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase()}o.json.test(a.type)?m+=n:(!o.number.test(a.type)||c&&!a.sign?f="":(f=c?"+":"-",n=n.toString().replace(o.sign,"")),l=a.pad_char?"0"===a.pad_char?"0":a.pad_char.charAt(1):" ",d=a.width-(f+n).length,u=a.width&&d>0?l.repeat(d):"",m+=a.align?f+n+u:"0"===l?f+u+n:u+f+n)}return m}(function(e){if(a[e])return a[e];var t,n=e,r=[],i=0;for(;n;){if(null!==(t=o.text.exec(n)))r.push(t[0]);else if(null!==(t=o.modulo.exec(n)))r.push("%");else{if(null===(t=o.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){i|=1;var s=[],u=t[2],l=[];if(null===(l=o.key.exec(u)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(s.push(l[1]);""!==(u=u.substring(l[0].length));)if(null!==(l=o.key_access.exec(u)))s.push(l[1]);else{if(null===(l=o.index_access.exec(u)))throw new SyntaxError("[sprintf] failed to parse named argument key");s.push(l[1])}t[2]=s}else i|=2;if(3===i)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}n=n.substring(t[0].length)}return a[e]=r}(e),arguments)}function s(e,t){return i.apply(null,[e].concat(t||[]))}var a=Object.create(null);t.sprintf=i,t.vsprintf=s,"undefined"!=typeof window&&(window.sprintf=i,window.vsprintf=s,void 0===(r=function(){return{sprintf:i,vsprintf:s}}.call(t,n,t,e))||(e.exports=r))}()},"./node_modules/tannin/index.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n("./node_modules/@tannin/plural-forms/index.js"),o={contextDelimiter:"",onMissingKey:null};function i(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},o)this.options[n]=void 0!==t&&n in t?t[n]:o[n]}i.prototype.getPluralForm=function(e,t){var n,o,i,s=this.pluralForms[e];return s||("function"!=typeof(i=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(o=function(e){var t,n,r;for(t=e.split(";"),n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n{e.addEventListener("change",(()=>this.changePlaceholder(e.value)))})),this.color.addEventListener("input",(()=>this.changePreloader())),this.animate.addEventListener("change",(()=>this.changePreloader())),this.previewCycle.addEventListener("click",(()=>this.startCycle()))},getPlaceholder:()=>document.querySelector('[name="lazy_loading[lazy_placeholder]"]:checked').value,changePreloader(){this.preloader.src=this.getSVG()},changePlaceholder(e){const t=document.getElementById("placeholder-"+e);this.currentPlaceholder&&(this.currentPlaceholder.style.display="none",this.currentPlaceholder.style.width="85%",this.currentPlaceholder.style.boxShadow="",this.currentPlaceholder.style.bottom="0"),t&&(t.style.display=""),this.currentPlaceholder=t},getThreshold(){return parseInt(this.threshold.value)+this.image.parentNode.parentNode.offsetHeight},startCycle(){this.running?this.endCycle():(this.changePlaceholder("none"),this.image.parentNode.parentNode.style.overflowY="scroll",this.image.parentNode.style.visibility="hidden",this.image.parentNode.style.width="100%",this.image.parentNode.style.boxShadow="none",this.progress.style.width="100%",this.preloader.parentNode.style.visibility="hidden",this.running=setTimeout((()=>{this.progress.style.visibility="hidden",this.progress.style.width="0%",this.preloader.parentNode.style.visibility="",setTimeout((()=>{const e=this.getThreshold();this.image.parentNode.style.visibility="",this.preloader.parentNode.style.bottom="-"+e+"px",setTimeout((()=>{setTimeout((()=>{this.image.parentNode.parentNode.scrollTo({top:e,behavior:"smooth"}),this.showPlaceholder()}),this.cycleTime/3)}),this.cycleTime/2)}),this.cycleTime/2)}),this.cycleTime/2))},showPlaceholder(){const e=this.getPlaceholder(),t=this.getThreshold();"off"!==e&&(this.changePlaceholder(e),this.currentPlaceholder&&(this.currentPlaceholder.style.width="100%",this.currentPlaceholder.style.boxShadow="none",this.currentPlaceholder.style.bottom="-"+t+"px")),setTimeout((()=>{this.showImage()}),this.cycleTime/2)},showImage(){const e=this.getThreshold();this.changePlaceholder("none"),this.image.parentNode.style.bottom="-"+e+"px",this.image.parentNode.style.visibility="",setTimeout((()=>{this.endCycle()}),this.cycleTime)},endCycle(){clearTimeout(this.running),this.running=!1,this.changePlaceholder(this.getPlaceholder()),this.image.parentNode.style.visibility="",this.image.parentNode.style.bottom="0",this.image.parentNode.style.width="65%",this.image.parentNode.style.boxShadow="",this.preloader.parentNode.style.bottom="0",this.image.parentNode.parentNode.style.overflowY="",this.progress.style.visibility=""},getSVG(){let e=this.color.value;const t=[e];if(this.animate.checked){const n=[...e.matchAll(new RegExp(/[\d+\.*]+/g))];n[3]=.1,t.push("rgba("+n.join(",")+")"),t.push(e)}return this.svg.replace("-color-",t.join(";"))},showLoader(){this.image.parentNode.style.opacity=1,this.image.parentNode.src=this.getSVG(),setTimeout((()=>{this.showPlaceholder(this.image.parentNode.dataset.placeholder)}),this.cycleTime)}};window.addEventListener("load",(()=>e.init())),r.default=e}()}(); +//# sourceMappingURL=lazyload-preview.js.map \ No newline at end of file diff --git a/js/media-modal.asset.php b/js/media-modal.asset.php index 38fdd907d..3017cfbec 100644 --- a/js/media-modal.asset.php +++ b/js/media-modal.asset.php @@ -1 +1 @@ - array(), 'version' => 'ce85f4351f448371cc26'); + array(), 'version' => 'b44f2e54e7f389c16f67'); diff --git a/js/media-modal.js b/js/media-modal.js index a145f577f..08dd7c7d7 100644 --- a/js/media-modal.js +++ b/js/media-modal.js @@ -1 +1,2 @@ -!function(){if(wp.media){wp.media.events.on("editor:image-edit",(function(e){e.metadata.cldoverwrite=null,e.image.className.split(" ").indexOf("cld-overwrite")>=0&&(e.metadata.cldoverwrite="true")})),wp.media.events.on("editor:image-update",(function(e){var t=e.image.className.split(" ");e.metadata.cldoverwrite&&-1===t.indexOf("cld-overwrite")?t.push("cld-overwrite"):!e.metadata.cldoverwrite&&t.indexOf("cld-overwrite")>=0&&delete t[t.indexOf("cld-overwrite")],e.image.className=t.join(" ")}));var e=null,t=wp.media.string.props;wp.media.string.props=function(i,a){return i.cldoverwrite&&(i.classes=["cld-overwrite"],e=!0),t(i,a)},wp.media.post=function(t,i){if("send-attachment-to-editor"===t){var a=wp.media.editor.get().state().get("selection").get(i.attachment);a.attributes.transformations&&(i.attachment.transformations=a.attributes.transformations),(i.html.indexOf("cld-overwrite")>-1||!0===e)&&(i.attachment.cldoverwrite=!0,e=null)}return wp.ajax.post(t,i)};var i=wp.media.view.MediaFrame.Select,a=wp.media.view.MediaFrame.Post,r=wp.media.view.MediaFrame.ImageDetails,n=wp.media.view.MediaFrame.VideoDetails,o=wp.media.view.Settings.AttachmentDisplay,d=wp.media.View.extend({tagName:"div",className:"cloudinary-widget",template:wp.template("cloudinary-dam"),active:!1,toolbar:null,frame:null,ready:function(){var e=this.controller,t=this.model.get("selection"),i=this.model.get("library"),a=wp.media.model.Attachment;if(CLDN.mloptions.multiple=e.options.multiple,this.cid!==this.active){if(CLDN.mloptions.inline_container="#cloudinary-dam-"+e.cid,1===t.length){var r=a.get(t.models[0].id);void 0!==r.attributes.public_id&&(CLDN.mloptions.asset={resource_id:r.attributes.public_id})}else CLDN.mloptions.asset=null;try{CLDN.mloptions.folder||(CLDN.mloptions.folder={path:""});var n=t.props.attributes.type;CLDN.mloptions.folder.resource_type=Array.isArray(n)?n[0]:n}catch(e){}window.ml=cloudinary.openMediaLibrary(CLDN.mloptions,{insertHandler:function(r){for(var n=0;n=0&&(e.metadata.cldoverwrite="true")})),wp.media.events.on("editor:image-update",(function(e){var t=e.image.className.split(" ");e.metadata.cldoverwrite&&-1===t.indexOf("cld-overwrite")?t.push("cld-overwrite"):!e.metadata.cldoverwrite&&t.indexOf("cld-overwrite")>=0&&delete t[t.indexOf("cld-overwrite")],e.image.className=t.join(" ")}));var e=null,t=wp.media.string.props;wp.media.string.props=function(i,a){return i.cldoverwrite&&(i.classes=["cld-overwrite"],e=!0),t(i,a)},wp.media.post=function(t,i){if("send-attachment-to-editor"===t){var a=wp.media.editor.get().state().get("selection").get(i.attachment);a.attributes.transformations&&(i.attachment.transformations=a.attributes.transformations),(i.html.indexOf("cld-overwrite")>-1||!0===e)&&(i.attachment.cldoverwrite=!0,e=null)}return wp.ajax.post(t,i)};var i=wp.media.view.MediaFrame.Select,a=wp.media.view.MediaFrame.Post,r=wp.media.view.MediaFrame.ImageDetails,n=wp.media.view.MediaFrame.VideoDetails,o=wp.media.view.Settings.AttachmentDisplay,d=wp.media.View.extend({tagName:"div",className:"cloudinary-widget",template:wp.template("cloudinary-dam"),active:!1,toolbar:null,frame:null,ready:function(){var e=this.controller,t=this.model.get("selection"),i=this.model.get("library"),a=wp.media.model.Attachment;if(CLDN.mloptions.multiple=e.options.multiple,this.cid!==this.active){if(CLDN.mloptions.inline_container="#cloudinary-dam-"+e.cid,1===t.length){var r=a.get(t.models[0].id);void 0!==r.attributes.public_id&&(CLDN.mloptions.asset={resource_id:r.attributes.public_id})}else CLDN.mloptions.asset=null;try{CLDN.mloptions.folder||(CLDN.mloptions.folder={path:""});var n=t.props.attributes.type;CLDN.mloptions.folder.resource_type=Array.isArray(n)?n[0]:n}catch(e){}window.ml=cloudinary.openMediaLibrary(CLDN.mloptions,{insertHandler:function(r){for(var n=0;nt.lastLine())return null;var n=t.getTokenAt(e.Pos(r,1));if(/\S/.test(n.string)||(n=t.getTokenAt(e.Pos(r,n.end+1))),"keyword"!=n.type||"import"!=n.string)return null;for(var i=r,o=Math.min(t.lastLine(),r+10);i<=o;++i){var l=t.getLine(i).indexOf(";");if(-1!=l)return{startCh:n.end,end:e.Pos(i,l)}}}var i,o=r.line,l=n(o);if(!l||n(o-1)||(i=n(o-2))&&i.end.line==o-1)return null;for(var a=l.end;;){var s=n(a.line+1);if(null==s)break;a=s.end}return{from:t.clipPos(e.Pos(o,l.startCh+1)),to:a}})),e.registerHelper("fold","include",(function(t,r){function n(r){if(rt.lastLine())return null;var n=t.getTokenAt(e.Pos(r,1));return/\S/.test(n.string)||(n=t.getTokenAt(e.Pos(r,n.end+1))),"meta"==n.type&&"#include"==n.string.slice(0,8)?n.start+8:void 0}var i=r.line,o=n(i);if(null==o||null!=n(i-1))return null;for(var l=i;null!=n(l+1);)++l;return{from:e.Pos(i,o+1),to:t.clipPos(e.Pos(l))}}))}(r(237))},948:function(e,t,r){!function(e){"use strict";function t(t,n,o,l){if(o&&o.call){var a=o;o=null}else a=i(t,o,"rangeFinder");"number"==typeof n&&(n=e.Pos(n,0));var s=i(t,o,"minFoldSize");function u(e){var r=a(t,n);if(!r||r.to.line-r.from.linet.firstLine();)n=e.Pos(n.line-1,0),c=u(!1);if(c&&!c.cleared&&"unfold"!==l){var f=r(t,o,c);e.on(f,"mousedown",(function(t){d.clear(),e.e_preventDefault(t)}));var d=t.markText(c.from,c.to,{replacedWith:f,clearOnEnter:i(t,o,"clearOnEnter"),__isFold:!0});d.on("clear",(function(r,n){e.signal(t,"unfold",t,r,n)})),e.signal(t,"fold",t,c.from,c.to)}}function r(e,t,r){var n=i(e,t,"widget");if("function"==typeof n&&(n=n(r.from,r.to)),"string"==typeof n){var o=document.createTextNode(n);(n=document.createElement("span")).appendChild(o),n.className="CodeMirror-foldmarker"}else n&&(n=n.cloneNode(!0));return n}e.newFoldFunction=function(e,r){return function(n,i){t(n,i,{rangeFinder:e,widget:r})}},e.defineExtension("foldCode",(function(e,r,n){t(this,e,r,n)})),e.defineExtension("isFolded",(function(e){for(var t=this.findMarksAt(e),r=0;r=u){if(d&&a&&d.test(a.className))return;n=o(l.indicatorOpen)}}(n||a)&&e.setGutterMarker(r,l.gutter,n)}))}function a(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function s(e){var t=e.getViewport(),r=e.state.foldGutter;r&&(e.operation((function(){l(e,t.from,t.to)})),r.from=t.from,r.to=t.to)}function u(e,r,n){var o=e.state.foldGutter;if(o){var l=o.options;if(n==l.gutter){var a=i(e,r);a?a.clear():e.foldCode(t(r,0),l)}}}function c(e,t){"mode"==t&&f(e)}function f(e){var t=e.state.foldGutter;if(t){var r=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){s(e)}),r.foldOnChangeTimeSpan||600)}}function d(e){var t=e.state.foldGutter;if(t){var r=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){var r=e.getViewport();t.from==t.to||r.from-t.to>20||t.from-r.to>20?s(e):e.operation((function(){r.fromt.to&&(l(e,t.to,r.to),t.to=r.to)}))}),r.updateViewportTimeSpan||400)}}function h(e,t){var r=e.state.foldGutter;if(r){var n=t.line;n>=r.from&&n2),m=/Android/.test(e),y=v||m||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=v||/Mac/.test(t),w=/\bCrOS\b/.test(e),x=/win/i.test(t),C=d&&e.match(/Version\/(\d*\.\d*)/);C&&(C=Number(C[1])),C&&C>=15&&(d=!1,s=!0);var k=b&&(u||d&&(null==C||C<12.11)),S=r||l&&a>=9;function L(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var T,M=function(e,t){var r=e.className,n=L(t).exec(r);if(n){var i=r.slice(n.index+n[0].length);e.className=r.slice(0,n.index)+(i?n[1]+i:"")}};function N(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function O(e,t){return N(e).appendChild(t)}function A(e,t,r,n){var i=document.createElement(e);if(r&&(i.className=r),n&&(i.style.cssText=n),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return l+(t-o);l+=a-o,l+=r-l%r,o=a+1}}v?P=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:l&&(P=function(e){try{e.select()}catch(e){}});var G=function(){this.id=null,this.f=null,this.time=0,this.handler=R(this.onTimeout,this)};function j(e,t){for(var r=0;r=t)return n+Math.min(l,t-i);if(i+=o-n,n=o+1,(i+=r-i%r)>=t)return n}}var q=[""];function Z(e){for(;q.length<=e;)q.push(J(q)+" ");return q[e]}function J(e){return e[e.length-1]}function Q(e,t){for(var r=[],n=0;n"€"&&(e.toUpperCase()!=e.toLowerCase()||ne.test(e))}function oe(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ie(e))||t.test(e):ie(e)}function le(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ae=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function se(e){return e.charCodeAt(0)>=768&&ae.test(e)}function ue(e,t,r){for(;(r<0?t>0:tr?-1:1;;){if(t==r)return t;var i=(t+r)/2,o=n<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:r;e(o)?r=o:t=o+n}}function fe(e,t,r,n){if(!e)return n(t,r,"ltr",0);for(var i=!1,o=0;ot||t==r&&l.to==t)&&(n(Math.max(l.from,t),Math.min(l.to,r),1==l.level?"rtl":"ltr",o),i=!0)}i||n(t,r,"ltr")}var de=null;function he(e,t,r){var n;de=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&"before"==r?n=i:de=i),o.from==t&&(o.from!=o.to&&"before"!=r?n=i:de=i)}return null!=n?n:de}var pe=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function r(r){return r<=247?e.charAt(r):1424<=r&&r<=1524?"R":1536<=r&&r<=1785?t.charAt(r-1536):1774<=r&&r<=2220?"r":8192<=r&&r<=8203?"w":8204==r?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,l=/[Lb1n]/,a=/[1n]/;function s(e,t,r){this.level=e,this.from=t,this.to=r}return function(e,t){var u="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!n.test(e))return!1;for(var c=e.length,f=[],d=0;d-1&&(n[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function we(e,t){var r=ye(e,t);if(r.length)for(var n=Array.prototype.slice.call(arguments,2),i=0;i0}function Se(e){e.prototype.on=function(e,t){me(this,e,t)},e.prototype.off=function(e,t){be(this,e,t)}}function Le(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Te(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Me(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Ne(e){Le(e),Te(e)}function Oe(e){return e.target||e.srcElement}function Ae(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),b&&e.ctrlKey&&1==t&&(t=3),t}var De,We,He=function(){if(l&&a<9)return!1;var e=A("div");return"draggable"in e||"dragDrop"in e}();function Fe(e){if(null==De){var t=A("span","​");O(e,A("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(De=t.offsetWidth<=1&&t.offsetHeight>2&&!(l&&a<8))}var r=De?A("span","​"):A("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}function Ee(e){if(null!=We)return We;var t=O(e,document.createTextNode("AخA")),r=T(t,0,1).getBoundingClientRect(),n=T(t,1,2).getBoundingClientRect();return N(e),!(!r||r.left==r.right)&&(We=n.right-r.right<3)}var Pe,ze=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,r=[],n=e.length;t<=n;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),l=o.indexOf("\r");-1!=l?(r.push(o.slice(0,l)),t+=l+1):(r.push(o),t=i+1)}return r}:function(e){return e.split(/\r\n?|\n/)},Ie=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Re="oncopy"in(Pe=A("div"))||(Pe.setAttribute("oncopy","return;"),"function"==typeof Pe.oncopy),Be=null;function Ve(e){if(null!=Be)return Be;var t=O(e,A("span","x")),r=t.getBoundingClientRect(),n=T(t,0,1).getBoundingClientRect();return Be=Math.abs(r.left-n.left)>1}var Ge={},je={};function Ue(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ge[e]=t}function Ke(e,t){je[e]=t}function _e(e){if("string"==typeof e&&je.hasOwnProperty(e))e=je[e];else if(e&&"string"==typeof e.name&&je.hasOwnProperty(e.name)){var t=je[e.name];"string"==typeof t&&(t={name:t}),(e=re(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return _e("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return _e("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Xe(e,t){t=_e(t);var r=Ge[t.name];if(!r)return Xe(e,"text/plain");var n=r(e,t);if($e.hasOwnProperty(t.name)){var i=$e[t.name];for(var o in i)i.hasOwnProperty(o)&&(n.hasOwnProperty(o)&&(n["_"+o]=n[o]),n[o]=i[o])}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var l in t.modeProps)n[l]=t.modeProps[l];return n}var $e={};function Ye(e,t){B(t,$e.hasOwnProperty(e)?$e[e]:$e[e]={})}function qe(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var r={};for(var n in t){var i=t[n];i instanceof Array&&(i=i.concat([])),r[n]=i}return r}function Ze(e,t){for(var r;e.innerMode&&(r=e.innerMode(t))&&r.mode!=e;)t=r.state,e=r.mode;return r||{mode:e,state:t}}function Je(e,t,r){return!e.startState||e.startState(t,r)}var Qe=function(e,t,r){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=r};function et(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var r=e;!r.lines;)for(var n=0;;++n){var i=r.children[n],o=i.chunkSize();if(t=e.first&&tr?st(r,et(e,r).text.length):vt(t,et(e,t.line).text.length)}function vt(e,t){var r=e.ch;return null==r||r>t?st(e.line,t):r<0?st(e.line,0):e}function mt(e,t){for(var r=[],n=0;n=this.string.length},Qe.prototype.sol=function(){return this.pos==this.lineStart},Qe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Qe.prototype.next=function(){if(this.post},Qe.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Qe.prototype.skipToEnd=function(){this.pos=this.string.length},Qe.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Qe.prototype.backUp=function(e){this.pos-=e},Qe.prototype.column=function(){return this.lastColumnPos0?null:(n&&!1!==t&&(this.pos+=n[0].length),n)}var i=function(e){return r?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},Qe.prototype.current=function(){return this.string.slice(this.start,this.pos)},Qe.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Qe.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Qe.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var yt=function(e,t){this.state=e,this.lookAhead=t},bt=function(e,t,r,n){this.state=t,this.doc=e,this.line=r,this.maxLookAhead=n||0,this.baseTokens=null,this.baseTokenPos=1};function wt(e,t,r,n){var i=[e.state.modeGen],o={};Ot(e,t.text,e.doc.mode,r,(function(e,t){return i.push(e,t)}),o,n);for(var l=r.state,a=function(n){r.baseTokens=i;var a=e.state.overlays[n],s=1,u=0;r.state=!0,Ot(e,t.text,a.mode,r,(function(e,t){for(var r=s;ue&&i.splice(s,1,e,i[s+1],n),s+=2,u=Math.min(e,n)}if(t)if(a.opaque)i.splice(r,s-r,e,"overlay "+t),s=r+2;else for(;re.options.maxHighlightLength&&qe(e.doc.mode,n.state),o=wt(e,t,n);i&&(n.state=i),t.stateAfter=n.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),r===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Ct(e,t,r){var n=e.doc,i=e.display;if(!n.mode.startState)return new bt(n,!0,t);var o=At(e,t,r),l=o>n.first&&et(n,o-1).stateAfter,a=l?bt.fromSaved(n,l,o):new bt(n,Je(n.mode),o);return n.iter(o,t,(function(r){kt(e,r.text,a);var n=a.line;r.stateAfter=n==t-1||n%5==0||n>=i.viewFrom&&nt.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}bt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},bt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},bt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},bt.fromSaved=function(e,t,r){return t instanceof yt?new bt(e,qe(e.mode,t.state),r,t.lookAhead):new bt(e,qe(e.mode,t),r)},bt.prototype.save=function(e){var t=!1!==e?qe(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new yt(t,this.maxLookAhead):t};var Tt=function(e,t,r){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=r};function Mt(e,t,r,n){var i,o,l=e.doc,a=l.mode,s=et(l,(t=gt(l,t)).line),u=Ct(e,t.line,r),c=new Qe(s.text,e.options.tabSize,u);for(n&&(o=[]);(n||c.pose.options.maxHighlightLength?(a=!1,l&&kt(e,t,n,f.pos),f.pos=t.length,s=null):s=Nt(Lt(r,f,n.state,d),o),d){var h=d[0].name;h&&(s="m-"+(s?h+" "+s:h))}if(!a||c!=s){for(;ul;--a){if(a<=o.first)return o.first;var s=et(o,a-1),u=s.stateAfter;if(u&&(!r||a+(u instanceof yt?u.lookAhead:0)<=o.modeFrontier))return a;var c=V(s.text,null,e.options.tabSize);(null==i||n>c)&&(i=a-1,n=c)}return i}function Dt(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontierr;n--){var i=et(e,n).stateAfter;if(i&&(!(i instanceof yt)||n+i.lookAhead=t:o.to>t);(n||(n=[])).push(new Pt(l,o.from,a?null:o.to))}}return n}function Vt(e,t,r){var n;if(e)for(var i=0;i=t:o.to>t)||o.from==t&&"bookmark"==l.type&&(!r||o.marker.insertLeft)){var a=null==o.from||(l.inclusiveLeft?o.from<=t:o.from0&&a)for(var b=0;b0)){var c=[s,1],f=ut(u.from,a.from),d=ut(u.to,a.to);(f<0||!l.inclusiveLeft&&!f)&&c.push({from:u.from,to:a.from}),(d>0||!l.inclusiveRight&&!d)&&c.push({from:a.to,to:u.to}),i.splice.apply(i,c),s+=c.length-3}}return i}function Kt(e){var t=e.markedSpans;if(t){for(var r=0;rt)&&(!r||Yt(r,o.marker)<0)&&(r=o.marker)}return r}function er(e,t,r,n,i){var o=et(e,t),l=Ht&&o.markedSpans;if(l)for(var a=0;a=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?ut(u.to,r)>=0:ut(u.to,r)>0)||c>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?ut(u.from,n)<=0:ut(u.from,n)<0)))return!0}}}function tr(e){for(var t;t=Zt(e);)e=t.find(-1,!0).line;return e}function rr(e){for(var t;t=Jt(e);)e=t.find(1,!0).line;return e}function nr(e){for(var t,r;t=Jt(e);)e=t.find(1,!0).line,(r||(r=[])).push(e);return r}function ir(e,t){var r=et(e,t),n=tr(r);return r==n?t:it(n)}function or(e,t){if(t>e.lastLine())return t;var r,n=et(e,t);if(!lr(e,n))return t;for(;r=Jt(n);)n=r.find(1,!0).line;return it(n)+1}function lr(e,t){var r=Ht&&t.markedSpans;if(r)for(var n=void 0,i=0;it.maxLineLength&&(t.maxLineLength=r,t.maxLine=e)}))}var fr=function(e,t,r){this.text=e,_t(this,t),this.height=r?r(this):1};function dr(e,t,r,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Kt(e),_t(e,r);var i=n?n(e):1;i!=e.height&&nt(e,i)}function hr(e){e.parent=null,Kt(e)}fr.prototype.lineNo=function(){return it(this)},Se(fr);var pr={},gr={};function vr(e,t){if(!e||/^\s*$/.test(e))return null;var r=t.addModeClass?gr:pr;return r[e]||(r[e]=e.replace(/\S+/g,"cm-$&"))}function mr(e,t){var r=D("span",null,null,s?"padding-right: .1px":null),n={pre:D("pre",[r],"CodeMirror-line"),content:r,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,l=void 0;n.pos=0,n.addToken=br,Ee(e.display.measure)&&(l=ge(o,e.doc.direction))&&(n.addToken=xr(n.addToken,l)),n.map=[],kr(o,n,xt(e,o,t!=e.display.externalMeasured&&it(o))),o.styleClasses&&(o.styleClasses.bgClass&&(n.bgClass=E(o.styleClasses.bgClass,n.bgClass||"")),o.styleClasses.textClass&&(n.textClass=E(o.styleClasses.textClass,n.textClass||""))),0==n.map.length&&n.map.push(0,0,n.content.appendChild(Fe(e.display.measure))),0==i?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(s){var a=n.content.lastChild;(/\bcm-tab\b/.test(a.className)||a.querySelector&&a.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return we(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=E(n.pre.className,n.textClass||"")),n}function yr(e){var t=A("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function br(e,t,r,n,i,o,s){if(t){var u,c=e.splitSpaces?wr(t,e.trailingSpace):t,f=e.cm.state.specialChars,d=!1;if(f.test(t)){u=document.createDocumentFragment();for(var h=0;;){f.lastIndex=h;var p=f.exec(t),g=p?p.index-h:t.length-h;if(g){var v=document.createTextNode(c.slice(h,h+g));l&&a<9?u.appendChild(A("span",[v])):u.appendChild(v),e.map.push(e.pos,e.pos+g,v),e.col+=g,e.pos+=g}if(!p)break;h+=g+1;var m=void 0;if("\t"==p[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(m=u.appendChild(A("span",Z(b),"cm-tab"))).setAttribute("role","presentation"),m.setAttribute("cm-text","\t"),e.col+=b}else"\r"==p[0]||"\n"==p[0]?((m=u.appendChild(A("span","\r"==p[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",p[0]),e.col+=1):((m=e.cm.options.specialCharPlaceholder(p[0])).setAttribute("cm-text",p[0]),l&&a<9?u.appendChild(A("span",[m])):u.appendChild(m),e.col+=1);e.map.push(e.pos,e.pos+1,m),e.pos++}}else e.col+=t.length,u=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,u),l&&a<9&&(d=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),r||n||i||d||o||s){var w=r||"";n&&(w+=n),i&&(w+=i);var x=A("span",[u],w,o);if(s)for(var C in s)s.hasOwnProperty(C)&&"style"!=C&&"class"!=C&&x.setAttribute(C,s[C]);return e.content.appendChild(x)}e.content.appendChild(u)}}function wr(e,t){if(e.length>1&&!/ /.test(e))return e;for(var r=t,n="",i=0;iu&&f.from<=u);d++);if(f.to>=c)return e(r,n,i,o,l,a,s);e(r,n.slice(0,f.to-u),i,o,null,a,s),o=null,n=n.slice(f.to-u),u=f.to}}}function Cr(e,t,r,n){var i=!n&&r.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!n&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",r.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function kr(e,t,r){var n=e.markedSpans,i=e.text,o=0;if(n)for(var l,a,s,u,c,f,d,h=i.length,p=0,g=1,v="",m=0;;){if(m==p){s=u=c=a="",d=null,f=null,m=1/0;for(var y=[],b=void 0,w=0;wp||C.collapsed&&x.to==p&&x.from==p)){if(null!=x.to&&x.to!=p&&m>x.to&&(m=x.to,u=""),C.className&&(s+=" "+C.className),C.css&&(a=(a?a+";":"")+C.css),C.startStyle&&x.from==p&&(c+=" "+C.startStyle),C.endStyle&&x.to==m&&(b||(b=[])).push(C.endStyle,x.to),C.title&&((d||(d={})).title=C.title),C.attributes)for(var k in C.attributes)(d||(d={}))[k]=C.attributes[k];C.collapsed&&(!f||Yt(f.marker,C)<0)&&(f=x)}else x.from>p&&m>x.from&&(m=x.from)}if(b)for(var S=0;S=h)break;for(var T=Math.min(h,m);;){if(v){var M=p+v.length;if(!f){var N=M>T?v.slice(0,T-p):v;t.addToken(t,N,l?l+s:s,c,p+N.length==m?u:"",a,d)}if(M>=T){v=v.slice(T-p),p=T;break}p=M,c=""}v=i.slice(o,o=r[g++]),l=vr(r[g++],t.cm.options)}}else for(var O=1;O2&&o.push((s.bottom+u.top)/2-r.top)}}o.push(r.bottom-r.top)}}function en(e,t,r){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var n=0;nr)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function tn(e,t){var r=it(t=tr(t)),n=e.display.externalMeasured=new Sr(e.doc,t,r);n.lineN=r;var i=n.built=mr(e,n);return n.text=i.pre,O(e.display.lineMeasure,i.pre),n}function rn(e,t,r,n){return ln(e,on(e,t),r,n)}function nn(e,t){if(t>=e.display.viewFrom&&t=r.lineN&&tt)&&(i=(o=s-a)-1,t>=s&&(l="right")),null!=i){if(n=e[u+2],a==s&&r==(n.insertLeft?"left":"right")&&(l=r),"left"==r&&0==i)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)n=e[2+(u-=3)],l="left";if("right"==r&&i==s-a)for(;u=0&&(r=e[i]).left==r.right;i--);return r}function fn(e,t,r,n){var i,o=un(t.map,r,n),s=o.node,u=o.start,c=o.end,f=o.collapse;if(3==s.nodeType){for(var d=0;d<4;d++){for(;u&&se(t.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c0&&(f=n="right"),i=e.options.lineWrapping&&(h=s.getClientRects()).length>1?h["right"==n?h.length-1:0]:s.getBoundingClientRect()}if(l&&a<9&&!u&&(!i||!i.left&&!i.right)){var p=s.parentNode.getClientRects()[0];i=p?{left:p.left,right:p.left+Hn(e.display),top:p.top,bottom:p.bottom}:sn}for(var g=i.top-t.rect.top,v=i.bottom-t.rect.top,m=(g+v)/2,y=t.view.measure.heights,b=0;b=n.text.length?(s=n.text.length,u="before"):s<=0&&(s=0,u="after"),!a)return l("before"==u?s-1:s,"before"==u);function c(e,t,r){return l(r?e-1:e,1==a[t].level!=r)}var f=he(a,s,u),d=de,h=c(s,f,"before"==u);return null!=d&&(h.other=c(s,d,"before"!=u)),h}function kn(e,t){var r=0;t=gt(e.doc,t),e.options.lineWrapping||(r=Hn(e.display)*t.ch);var n=et(e.doc,t.line),i=sr(n)+Xr(e.display);return{left:r,right:r,top:i,bottom:i+n.height}}function Sn(e,t,r,n,i){var o=st(e,t,r);return o.xRel=i,n&&(o.outside=n),o}function Ln(e,t,r){var n=e.doc;if((r+=e.display.viewOffset)<0)return Sn(n.first,0,null,-1,-1);var i=ot(n,r),o=n.first+n.size-1;if(i>o)return Sn(n.first+n.size-1,et(n,o).text.length,null,1,1);t<0&&(t=0);for(var l=et(n,i);;){var a=On(e,l,i,t,r),s=Qt(l,a.ch+(a.xRel>0||a.outside>0?1:0));if(!s)return a;var u=s.find(1);if(u.line==i)return u;l=et(n,i=u.line)}}function Tn(e,t,r,n){n-=yn(t);var i=t.text.length,o=ce((function(t){return ln(e,r,t-1).bottom<=n}),i,0);return{begin:o,end:i=ce((function(t){return ln(e,r,t).top>n}),o,i)}}function Mn(e,t,r,n){return r||(r=on(e,t)),Tn(e,t,r,bn(e,t,ln(e,r,n),"line").top)}function Nn(e,t,r,n){return!(e.bottom<=r)&&(e.top>r||(n?e.left:e.right)>t)}function On(e,t,r,n,i){i-=sr(t);var o=on(e,t),l=yn(t),a=0,s=t.text.length,u=!0,c=ge(t,e.doc.direction);if(c){var f=(e.options.lineWrapping?Dn:An)(e,t,r,o,c,n,i);a=(u=1!=f.level)?f.from:f.to-1,s=u?f.to:f.from-1}var d,h,p=null,g=null,v=ce((function(t){var r=ln(e,o,t);return r.top+=l,r.bottom+=l,!!Nn(r,n,i,!1)&&(r.top<=i&&r.left<=n&&(p=t,g=r),!0)}),a,s),m=!1;if(g){var y=n-g.left=w.bottom?1:0}return Sn(r,v=ue(t.text,v,1),h,m,n-d)}function An(e,t,r,n,i,o,l){var a=ce((function(a){var s=i[a],u=1!=s.level;return Nn(Cn(e,st(r,u?s.to:s.from,u?"before":"after"),"line",t,n),o,l,!0)}),0,i.length-1),s=i[a];if(a>0){var u=1!=s.level,c=Cn(e,st(r,u?s.from:s.to,u?"after":"before"),"line",t,n);Nn(c,o,l,!0)&&c.top>l&&(s=i[a-1])}return s}function Dn(e,t,r,n,i,o,l){var a=Tn(e,t,n,l),s=a.begin,u=a.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,f=null,d=0;d=u||h.to<=s)){var p=ln(e,n,1!=h.level?Math.min(u,h.to)-1:Math.max(s,h.from)).right,g=pg)&&(c=h,f=g)}}return c||(c=i[i.length-1]),c.fromu&&(c={from:c.from,to:u,level:c.level}),c}function Wn(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==an){an=A("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)an.appendChild(document.createTextNode("x")),an.appendChild(A("br"));an.appendChild(document.createTextNode("x"))}O(e.measure,an);var r=an.offsetHeight/50;return r>3&&(e.cachedTextHeight=r),N(e.measure),r||1}function Hn(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=A("span","xxxxxxxxxx"),r=A("pre",[t],"CodeMirror-line-like");O(e.measure,r);var n=t.getBoundingClientRect(),i=(n.right-n.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Fn(e){for(var t=e.display,r={},n={},i=t.gutters.clientLeft,o=t.gutters.firstChild,l=0;o;o=o.nextSibling,++l){var a=e.display.gutterSpecs[l].className;r[a]=o.offsetLeft+o.clientLeft+i,n[a]=o.clientWidth}return{fixedPos:En(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:r,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function En(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Pn(e){var t=Wn(e.display),r=e.options.lineWrapping,n=r&&Math.max(5,e.display.scroller.clientWidth/Hn(e.display)-3);return function(i){if(lr(e.doc,i))return 0;var o=0;if(i.widgets)for(var l=0;l0&&(s=et(e.doc,u.line).text).length==u.ch){var c=V(s,s.length,e.options.tabSize)-s.length;u=st(u.line,Math.max(0,Math.round((o-Yr(e.display).left)/Hn(e.display))-c))}return u}function Rn(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var r=e.display.view,n=0;nt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Ht&&ir(e.doc,t)i.viewFrom?Gn(e):(i.viewFrom+=n,i.viewTo+=n);else if(t<=i.viewFrom&&r>=i.viewTo)Gn(e);else if(t<=i.viewFrom){var o=jn(e,r,r+n,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=n):Gn(e)}else if(r>=i.viewTo){var l=jn(e,t,t,-1);l?(i.view=i.view.slice(0,l.index),i.viewTo=l.lineN):Gn(e)}else{var a=jn(e,t,t,-1),s=jn(e,r,r+n,1);a&&s?(i.view=i.view.slice(0,a.index).concat(Lr(e,a.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=n):Gn(e)}var u=i.externalMeasured;u&&(r=i.lineN&&t=n.viewTo)){var o=n.view[Rn(e,t)];if(null!=o.node){var l=o.changes||(o.changes=[]);-1==j(l,r)&&l.push(r)}}}function Gn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function jn(e,t,r,n){var i,o=Rn(e,t),l=e.display.view;if(!Ht||r==e.doc.first+e.doc.size)return{index:o,lineN:r};for(var a=e.display.viewFrom,s=0;s0){if(o==l.length-1)return null;i=a+l[o].size-t,o++}else i=a-t;t+=i,r+=i}for(;ir(e.doc,r)!=r;){if(o==(n<0?0:l.length-1))return null;r+=n*l[o-(n<0?1:0)].size,o+=n}return{index:o,lineN:r}}function Un(e,t,r){var n=e.display;0==n.view.length||t>=n.viewTo||r<=n.viewFrom?(n.view=Lr(e,t,r),n.viewFrom=t):(n.viewFrom>t?n.view=Lr(e,t,n.viewFrom).concat(n.view):n.viewFromr&&(n.view=n.view.slice(0,Rn(e,r)))),n.viewTo=r}function Kn(e){for(var t=e.display.view,r=0,n=0;n=e.display.viewTo||s.to().line0?l:e.defaultCharWidth())+"px"}if(n.other){var a=r.appendChild(A("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));a.style.display="",a.style.left=n.other.left+"px",a.style.top=n.other.top+"px",a.style.height=.85*(n.other.bottom-n.other.top)+"px"}}function Yn(e,t){return e.top-t.top||e.left-t.left}function qn(e,t,r){var n=e.display,i=e.doc,o=document.createDocumentFragment(),l=Yr(e.display),a=l.left,s=Math.max(n.sizerWidth,Zr(e)-n.sizer.offsetLeft)-l.right,u="ltr"==i.direction;function c(e,t,r,n){t<0&&(t=0),t=Math.round(t),n=Math.round(n),o.appendChild(A("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==r?s-e:r)+"px;\n height: "+(n-t)+"px"))}function f(t,r,n){var o,l,f=et(i,t),d=f.text.length;function h(r,n){return xn(e,st(t,r),"div",f,n)}function p(t,r,n){var i=Mn(e,f,null,t),o="ltr"==r==("after"==n)?"left":"right";return h("after"==n?i.begin:i.end-(/\s/.test(f.text.charAt(i.end-1))?2:1),o)[o]}var g=ge(f,i.direction);return fe(g,r||0,null==n?d:n,(function(e,t,i,f){var v="ltr"==i,m=h(e,v?"left":"right"),y=h(t-1,v?"right":"left"),b=null==r&&0==e,w=null==n&&t==d,x=0==f,C=!g||f==g.length-1;if(y.top-m.top<=3){var k=(u?w:b)&&C,S=(u?b:w)&&x?a:(v?m:y).left,L=k?s:(v?y:m).right;c(S,m.top,L-S,m.bottom)}else{var T,M,N,O;v?(T=u&&b&&x?a:m.left,M=u?s:p(e,i,"before"),N=u?a:p(t,i,"after"),O=u&&w&&C?s:y.right):(T=u?p(e,i,"before"):a,M=!u&&b&&x?s:m.right,N=!u&&w&&C?a:y.left,O=u?p(t,i,"after"):s),c(T,m.top,M-T,m.bottom),m.bottom0?t.blinker=setInterval((function(){e.hasFocus()||ti(e),t.cursorDiv.style.visibility=(r=!r)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Jn(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||ei(e))}function Qn(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&ti(e))}),100)}function ei(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(we(e,"focus",e,t),e.state.focused=!0,F(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),s&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Zn(e))}function ti(e,t){e.state.delayingBlurEvent||(e.state.focused&&(we(e,"blur",e,t),e.state.focused=!1,M(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function ri(e){for(var t=e.display,r=t.lineDiv.offsetTop,n=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,s=0;s.005||g<-.005)&&(ie.display.sizerWidth){var m=Math.ceil(d/Hn(e.display));m>e.display.maxLineLength&&(e.display.maxLineLength=m,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function ni(e){if(e.widgets)for(var t=0;t=l&&(o=ot(t,sr(et(t,s))-e.wrapper.clientHeight),l=s)}return{from:o,to:Math.max(l,o+1)}}function oi(e,t){if(!xe(e,"scrollCursorIntoView")){var r=e.display,n=r.sizer.getBoundingClientRect(),i=null,o=r.wrapper.ownerDocument;if(t.top+n.top<0?i=!0:t.bottom+n.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(i=!1),null!=i&&!g){var l=A("div","​",null,"position: absolute;\n top: "+(t.top-r.viewOffset-Xr(e.display))+"px;\n height: "+(t.bottom-t.top+qr(e)+r.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(l),l.scrollIntoView(i),e.display.lineSpace.removeChild(l)}}}function li(e,t,r,n){var i;null==n&&(n=0),e.options.lineWrapping||t!=r||(r="before"==t.sticky?st(t.line,t.ch+1,"before"):t,t=t.ch?st(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var l=!1,a=Cn(e,t),s=r&&r!=t?Cn(e,r):a,u=si(e,i={left:Math.min(a.left,s.left),top:Math.min(a.top,s.top)-n,right:Math.max(a.left,s.left),bottom:Math.max(a.bottom,s.bottom)+n}),c=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=u.scrollTop&&(gi(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(l=!0)),null!=u.scrollLeft&&(mi(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(l=!0)),!l)break}return i}function ai(e,t){var r=si(e,t);null!=r.scrollTop&&gi(e,r.scrollTop),null!=r.scrollLeft&&mi(e,r.scrollLeft)}function si(e,t){var r=e.display,n=Wn(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:r.scroller.scrollTop,o=Jr(e),l={};t.bottom-t.top>o&&(t.bottom=t.top+o);var a=e.doc.height+$r(r),s=t.topa-n;if(t.topi+o){var c=Math.min(t.top,(u?a:t.bottom)-o);c!=i&&(l.scrollTop=c)}var f=e.options.fixedGutter?0:r.gutters.offsetWidth,d=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:r.scroller.scrollLeft-f,h=Zr(e)-r.gutters.offsetWidth,p=t.right-t.left>h;return p&&(t.right=t.left+h),t.left<10?l.scrollLeft=0:t.lefth+d-3&&(l.scrollLeft=t.right+(p?0:10)-h),l}function ui(e,t){null!=t&&(hi(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function ci(e){hi(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function fi(e,t,r){null==t&&null==r||hi(e),null!=t&&(e.curOp.scrollLeft=t),null!=r&&(e.curOp.scrollTop=r)}function di(e,t){hi(e),e.curOp.scrollToPos=t}function hi(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,pi(e,kn(e,t.from),kn(e,t.to),t.margin))}function pi(e,t,r,n){var i=si(e,{left:Math.min(t.left,r.left),top:Math.min(t.top,r.top)-n,right:Math.max(t.right,r.right),bottom:Math.max(t.bottom,r.bottom)+n});fi(e,i.scrollLeft,i.scrollTop)}function gi(e,t){Math.abs(e.doc.scrollTop-t)<2||(r||_i(e,{top:t}),vi(e,t,!0),r&&_i(e),Ii(e,100))}function vi(e,t,r){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||r)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function mi(e,t,r,n){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(r?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n||(e.doc.scrollLeft=t,qi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function yi(e){var t=e.display,r=t.gutters.offsetWidth,n=Math.round(e.doc.height+$r(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?r:0,docHeight:n,scrollHeight:n+qr(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:r}}var bi=function(e,t,r){this.cm=r;var n=this.vert=A("div",[A("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=A("div",[A("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=i.tabIndex=-1,e(n),e(i),me(n,"scroll",(function(){n.clientHeight&&t(n.scrollTop,"vertical")})),me(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,l&&a<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};bi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(r){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var i=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=r?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(r?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==n&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:r?n:0,bottom:t?n:0}},bi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},bi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},bi.prototype.zeroWidthHack=function(){var e=b&&!p?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new G,this.disableVert=new G},bi.prototype.enableZeroWidthBar=function(e,t,r){function n(){var i=e.getBoundingClientRect();("vert"==r?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.visibility="hidden":t.set(1e3,n)}e.style.visibility="",t.set(1e3,n)},bi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var wi=function(){};function xi(e,t){t||(t=yi(e));var r=e.display.barWidth,n=e.display.barHeight;Ci(e,t);for(var i=0;i<4&&r!=e.display.barWidth||n!=e.display.barHeight;i++)r!=e.display.barWidth&&e.options.lineWrapping&&ri(e),Ci(e,yi(e)),r=e.display.barWidth,n=e.display.barHeight}function Ci(e,t){var r=e.display,n=r.scrollbars.update(t);r.sizer.style.paddingRight=(r.barWidth=n.right)+"px",r.sizer.style.paddingBottom=(r.barHeight=n.bottom)+"px",r.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(r.scrollbarFiller.style.display="block",r.scrollbarFiller.style.height=n.bottom+"px",r.scrollbarFiller.style.width=n.right+"px"):r.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(r.gutterFiller.style.display="block",r.gutterFiller.style.height=n.bottom+"px",r.gutterFiller.style.width=t.gutterWidth+"px"):r.gutterFiller.style.display=""}wi.prototype.update=function(){return{bottom:0,right:0}},wi.prototype.setScrollLeft=function(){},wi.prototype.setScrollTop=function(){},wi.prototype.clear=function(){};var ki={native:bi,null:wi};function Si(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&M(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new ki[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),me(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,r){"horizontal"==r?mi(e,t):gi(e,t)}),e),e.display.scrollbars.addClass&&F(e.display.wrapper,e.display.scrollbars.addClass)}var Li=0;function Ti(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Li,markArrays:null},Mr(e.curOp)}function Mi(e){var t=e.curOp;t&&Or(t,(function(e){for(var t=0;t=r.viewTo)||r.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Bi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Ai(e){e.updatedDisplay=e.mustUpdate&&Ui(e.cm,e.update)}function Di(e){var t=e.cm,r=t.display;e.updatedDisplay&&ri(t),e.barMeasure=yi(t),r.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=rn(t,r.maxLine,r.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(r.scroller.clientWidth,r.sizer.offsetLeft+e.adjustWidthTo+qr(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,r.sizer.offsetLeft+e.adjustWidthTo-Zr(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=r.input.prepareSelection())}function Wi(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var r=+new Date+e.options.workTime,n=Ct(e,t.highlightFrontier),i=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(n.line>=e.display.viewFrom){var l=o.styles,a=o.text.length>e.options.maxHighlightLength?qe(t.mode,n.state):null,s=wt(e,o,n,!0);a&&(n.state=a),o.styles=s.styles;var u=o.styleClasses,c=s.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var f=!l||l.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),d=0;!f&&dr)return Ii(e,e.options.workDelay),!0})),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),i.length&&Fi(e,(function(){for(var t=0;t=r.viewFrom&&t.visible.to<=r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&0==Kn(e))return!1;Zi(e)&&(Gn(e),t.dims=Fn(e));var i=n.first+n.size,o=Math.max(t.visible.from-e.options.viewportMargin,n.first),l=Math.min(i,t.visible.to+e.options.viewportMargin);r.viewFroml&&r.viewTo-l<20&&(l=Math.min(i,r.viewTo)),Ht&&(o=ir(e.doc,o),l=or(e.doc,l));var a=o!=r.viewFrom||l!=r.viewTo||r.lastWrapHeight!=t.wrapperHeight||r.lastWrapWidth!=t.wrapperWidth;Un(e,o,l),r.viewOffset=sr(et(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var s=Kn(e);if(!a&&0==s&&!t.force&&r.renderedView==r.view&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo))return!1;var u=Gi(e);return s>4&&(r.lineDiv.style.display="none"),Xi(e,r.updateLineNumbers,t.dims),s>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,ji(u),N(r.cursorDiv),N(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,a&&(r.lastWrapHeight=t.wrapperHeight,r.lastWrapWidth=t.wrapperWidth,Ii(e,400)),r.updateLineNumbers=null,!0}function Ki(e,t){for(var r=t.viewport,n=!0;;n=!1){if(n&&e.options.lineWrapping&&t.oldDisplayWidth!=Zr(e))n&&(t.visible=ii(e.display,e.doc,r));else if(r&&null!=r.top&&(r={top:Math.min(e.doc.height+$r(e.display)-Jr(e),r.top)}),t.visible=ii(e.display,e.doc,r),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!Ui(e,t))break;ri(e);var i=yi(e);_n(e),xi(e,i),Yi(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function _i(e,t){var r=new Bi(e,t);if(Ui(e,r)){ri(e),Ki(e,r);var n=yi(e);_n(e),xi(e,n),Yi(e,n),r.finish()}}function Xi(e,t,r){var n=e.display,i=e.options.lineNumbers,o=n.lineDiv,l=o.firstChild;function a(t){var r=t.nextSibling;return s&&b&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),r}for(var u=n.view,c=n.viewFrom,f=0;f-1&&(h=!1),Hr(e,d,c,r)),h&&(N(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(at(e.options,c)))),l=d.node.nextSibling}else{var p=Vr(e,d,c,r);o.insertBefore(p,l)}c+=d.size}for(;l;)l=a(l)}function $i(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",Dr(e,"gutterChanged",e)}function Yi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+qr(e)+"px"}function qi(e){var t=e.display,r=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var n=En(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=n+"px",l=0;l=105&&(o.wrapper.style.clipPath="inset(0px)"),o.wrapper.setAttribute("translate","no"),l&&a<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),s||r&&y||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=Ji(i.gutters,i.lineNumbers),Qi(o),n.init(o)}Bi.prototype.signal=function(e,t){ke(e,t)&&this.events.push(arguments)},Bi.prototype.finish=function(){for(var e=0;eu.clientWidth,p=u.scrollHeight>u.clientHeight;if(i&&h||o&&p){if(o&&b&&s)e:for(var g=t.target,v=a.view;g!=u;g=g.parentNode)for(var m=0;m=0&&ut(e,n.to())<=0)return r}return-1};var so=function(e,t){this.anchor=e,this.head=t};function uo(e,t,r){var n=e&&e.options.selectionsMayTouch,i=t[r];t.sort((function(e,t){return ut(e.from(),t.from())})),r=j(t,i);for(var o=1;o0:s>=0){var u=ht(a.from(),l.from()),c=dt(a.to(),l.to()),f=a.empty()?l.from()==l.head:a.from()==a.head;o<=r&&--r,t.splice(--o,2,new so(f?c:u,f?u:c))}}return new ao(t,r)}function co(e,t){return new ao([new so(e,t||e)],0)}function fo(e){return e.text?st(e.from.line+e.text.length-1,J(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function ho(e,t){if(ut(e,t.from)<0)return e;if(ut(e,t.to)<=0)return fo(t);var r=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=fo(t).ch-t.to.ch),st(r,n)}function po(e,t){for(var r=[],n=0;n1&&e.remove(a.line+1,p-1),e.insert(a.line+1,m)}Dr(e,"change",e,t)}function xo(e,t,r){function n(e,i,o){if(e.linked)for(var l=0;l1&&!e.done[e.done.length-2].ranges?(e.done.pop(),J(e.done)):void 0}function Oo(e,t,r,n){var i=e.history;i.undone.length=0;var o,l,a=+new Date;if((i.lastOp==n||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>a-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=No(i,i.lastOp==n)))l=J(o.changes),0==ut(t.from,t.to)&&0==ut(t.from,l.to)?l.to=fo(t):o.changes.push(To(e,t));else{var s=J(i.done);for(s&&s.ranges||Wo(e.sel,i.done),o={changes:[To(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(r),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=a,i.lastOp=i.lastSelOp=n,i.lastOrigin=i.lastSelOrigin=t.origin,l||we(e,"historyAdded")}function Ao(e,t,r,n){var i=t.charAt(0);return"*"==i||"+"==i&&r.ranges.length==n.ranges.length&&r.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Do(e,t,r,n){var i=e.history,o=n&&n.origin;r==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||Ao(e,o,J(i.done),t))?i.done[i.done.length-1]=t:Wo(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=r,n&&!1!==n.clearRedo&&Mo(i.undone)}function Wo(e,t){var r=J(t);r&&r.ranges&&r.equals(e)||t.push(e)}function Ho(e,t,r,n){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,r),Math.min(e.first+e.size,n),(function(r){r.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=r.markedSpans),++o}))}function Fo(e){if(!e)return null;for(var t,r=0;r-1&&(J(a)[f]=u[f],delete u[f])}}}return n}function Io(e,t,r,n){if(n){var i=e.anchor;if(r){var o=ut(t,i)<0;o!=ut(r,i)<0?(i=t,t=r):o!=ut(t,r)<0&&(t=r)}return new so(i,t)}return new so(r||t,t)}function Ro(e,t,r,n,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Ko(e,new ao([Io(e.sel.primary(),t,r,i)],0),n)}function Bo(e,t,r){for(var n=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:a.to>t.ch))){if(i&&(we(s,"beforeCursorEnter"),s.explicitlyCleared)){if(o.markedSpans){--l;continue}break}if(!s.atomic)continue;if(r){var f=s.find(n<0?1:-1),d=void 0;if((n<0?c:u)&&(f=Jo(e,f,-n,f&&f.line==t.line?o:null)),f&&f.line==t.line&&(d=ut(f,r))&&(n<0?d<0:d>0))return qo(e,f,t,n,i)}var h=s.find(n<0?-1:1);return(n<0?u:c)&&(h=Jo(e,h,n,h.line==t.line?o:null)),h?qo(e,h,t,n,i):null}}return t}function Zo(e,t,r,n,i){var o=n||1,l=qo(e,t,r,o,i)||!i&&qo(e,t,r,o,!0)||qo(e,t,r,-o,i)||!i&&qo(e,t,r,-o,!0);return l||(e.cantEdit=!0,st(e.first,0))}function Jo(e,t,r,n){return r<0&&0==t.ch?t.line>e.first?gt(e,st(t.line-1)):null:r>0&&t.ch==(n||et(e,t.line)).text.length?t.line=0;--i)rl(e,{from:n[i].from,to:n[i].to,text:i?[""]:t.text,origin:t.origin});else rl(e,t)}}function rl(e,t){if(1!=t.text.length||""!=t.text[0]||0!=ut(t.from,t.to)){var r=po(e,t);Oo(e,t,r,e.cm?e.cm.curOp.id:NaN),ol(e,t,r,Gt(e,t));var n=[];xo(e,(function(e,r){r||-1!=j(n,e.history)||(cl(e.history,t),n.push(e.history)),ol(e,t,null,Gt(e,t))}))}}function nl(e,t,r){var n=e.cm&&e.cm.state.suppressEdits;if(!n||r){for(var i,o=e.history,l=e.sel,a="undo"==t?o.done:o.undone,s="undo"==t?o.undone:o.done,u=0;u=0;--h){var p=d(h);if(p)return p.v}}}}function il(e,t){if(0!=t&&(e.first+=t,e.sel=new ao(Q(e.sel.ranges,(function(e){return new so(st(e.anchor.line+t,e.anchor.ch),st(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){Bn(e.cm,e.first,e.first-t,t);for(var r=e.cm.display,n=r.viewFrom;ne.lastLine())){if(t.from.lineo&&(t={from:t.from,to:st(o,et(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=tt(e,t.from,t.to),r||(r=po(e,t)),e.cm?ll(e.cm,t,n):wo(e,t,n),_o(e,r,_),e.cantEdit&&Zo(e,st(e.firstLine(),0))&&(e.cantEdit=!1)}}function ll(e,t,r){var n=e.doc,i=e.display,o=t.from,l=t.to,a=!1,s=o.line;e.options.lineWrapping||(s=it(tr(et(n,o.line))),n.iter(s,l.line+1,(function(e){if(e==i.maxLine)return a=!0,!0}))),n.sel.contains(t.from,t.to)>-1&&Ce(e),wo(n,t,r,Pn(e)),e.options.lineWrapping||(n.iter(s,o.line+t.text.length,(function(e){var t=ur(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,a=!1)})),a&&(e.curOp.updateMaxLine=!0)),Dt(n,o.line),Ii(e,400);var u=t.text.length-(l.line-o.line)-1;t.full?Bn(e):o.line!=l.line||1!=t.text.length||bo(e.doc,t)?Bn(e,o.line,l.line+1,u):Vn(e,o.line,"text");var c=ke(e,"changes"),f=ke(e,"change");if(f||c){var d={from:o,to:l,text:t.text,removed:t.removed,origin:t.origin};f&&Dr(e,"change",e,d),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(d)}e.display.selForContextMenu=null}function al(e,t,r,n,i){var o;n||(n=r),ut(n,r)<0&&(r=(o=[n,r])[0],n=o[1]),"string"==typeof t&&(t=e.splitLines(t)),tl(e,{from:r,to:n,text:t,origin:i})}function sl(e,t,r,n){r1||!(this.children[0]instanceof dl))){var a=[];this.collapse(a),this.children=[new dl(a)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var l=i.lines.length%25+25,a=l;a10);e.parent.maybeSpill()}},iterN:function(e,t,r){for(var n=0;n0||0==l&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=D("span",[o.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(er(e,t.line,t,r,o)||t.line!=r.line&&er(e,r.line,t,r,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Et()}o.addToHistory&&Oo(e,{from:t,to:r,origin:"markText"},e.sel,NaN);var a,s=t.line,u=e.cm;if(e.iter(s,r.line+1,(function(n){u&&o.collapsed&&!u.options.lineWrapping&&tr(n)==u.display.maxLine&&(a=!0),o.collapsed&&s!=t.line&&nt(n,0),Rt(n,new Pt(o,s==t.line?t.ch:null,s==r.line?r.ch:null),e.cm&&e.cm.curOp),++s})),o.collapsed&&e.iter(t.line,r.line+1,(function(t){lr(e,t)&&nt(t,0)})),o.clearOnEnter&&me(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(Ft(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++ml,o.atomic=!0),u){if(a&&(u.curOp.updateMaxLine=!0),o.collapsed)Bn(u,t.line,r.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=r.line;c++)Vn(u,c,"text");o.atomic&&$o(u.doc),Dr(u,"markerAdded",u,o)}return o}yl.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Ti(e),ke(this,"clear")){var r=this.find();r&&Dr(this,"clear",r.from,r.to)}for(var n=null,i=null,o=0;oe.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=n&&e&&this.collapsed&&Bn(e,n,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&$o(e.doc)),e&&Dr(e,"markerCleared",e,this,n,i),t&&Mi(e),this.parent&&this.parent.clear()}},yl.prototype.find=function(e,t){var r,n;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i=0;s--)tl(this,n[s]);a?Uo(this,a):this.cm&&ci(this.cm)})),undo:zi((function(){nl(this,"undo")})),redo:zi((function(){nl(this,"redo")})),undoSelection:zi((function(){nl(this,"undo",!0)})),redoSelection:zi((function(){nl(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,r=0,n=0;n=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,r){e=gt(this,e),t=gt(this,t);var n=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var l=o.markedSpans;if(l)for(var a=0;a=s.to||null==s.from&&i!=e.line||null!=s.from&&i==t.line&&s.from>=t.ch||r&&!r(s.marker)||n.push(s.marker.parent||s.marker)}++i})),n},getAllMarks:function(){var e=[];return this.iter((function(t){var r=t.markedSpans;if(r)for(var n=0;ne)return t=e,!0;e-=o,++r})),gt(this,st(r,t))},indexFromPos:function(e){var t=(e=gt(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var f=e.dataTransfer.getData("Text");if(f){var d;if(t.state.draggingText&&!t.state.draggingText.copy&&(d=t.listSelections()),_o(t.doc,co(r,r)),d)for(var h=0;h=0;t--)al(e.doc,"",n[t].from,n[t].to,"+delete");ci(e)}))}function ql(e,t,r){var n=ue(e.text,t+r,r);return n<0||n>e.text.length?null:n}function Zl(e,t,r){var n=ql(e,t.ch,r);return null==n?null:new st(t.line,n,r<0?"after":"before")}function Jl(e,t,r,n,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=ge(r,t.doc.direction);if(o){var l,a=i<0?J(o):o[0],s=i<0==(1==a.level)?"after":"before";if(a.level>0||"rtl"==t.doc.direction){var u=on(t,r);l=i<0?r.text.length-1:0;var c=ln(t,u,l).top;l=ce((function(e){return ln(t,u,e).top==c}),i<0==(1==a.level)?a.from:a.to-1,l),"before"==s&&(l=ql(r,l,1))}else l=i<0?a.to:a.from;return new st(n,l,s)}}return new st(n,i<0?r.text.length:0,i<0?"before":"after")}function Ql(e,t,r,n){var i=ge(t,e.doc.direction);if(!i)return Zl(t,r,n);r.ch>=t.text.length?(r.ch=t.text.length,r.sticky="before"):r.ch<=0&&(r.ch=0,r.sticky="after");var o=he(i,r.ch,r.sticky),l=i[o];if("ltr"==e.doc.direction&&l.level%2==0&&(n>0?l.to>r.ch:l.from=l.from&&d>=c.begin)){var h=f?"before":"after";return new st(r.line,d,h)}}var p=function(e,t,n){for(var o=function(e,t){return t?new st(r.line,s(e,1),"before"):new st(r.line,e,"after")};e>=0&&e0==(1!=l.level),u=a?n.begin:s(n.end,-1);if(l.from<=u&&u0?c.end:s(c.begin,-1);return null==v||n>0&&v==t.text.length||!(g=p(n>0?0:i.length-1,n,u(v)))?null:g}Vl.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Vl.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Vl.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Vl.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Vl.default=b?Vl.macDefault:Vl.pcDefault;var ea={selectAll:Qo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),_)},killLine:function(e){return Yl(e,(function(t){if(t.empty()){var r=et(e.doc,t.head.line).text.length;return t.head.ch==r&&t.head.line0)i=new st(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),st(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var l=et(e.doc,i.line-1).text;l&&(i=new st(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+l.charAt(l.length-1),st(i.line-1,l.length-1),i,"+transpose"))}r.push(new so(i,i))}e.setSelections(r)}))},newlineAndIndent:function(e){return Fi(e,(function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange(e.doc.lineSeparator(),t[r].anchor,t[r].head,"+input");t=e.listSelections();for(var n=0;n-1&&(ut((i=a.ranges[i]).from(),t)<0||t.xRel>0)&&(ut(i.to(),t)>0||t.xRel<0)?La(e,n,t,o):Ma(e,n,t,o)}function La(e,t,r,n){var i=e.display,o=!1,u=Ei(e,(function(t){s&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Qn(e)),be(i.wrapper.ownerDocument,"mouseup",u),be(i.wrapper.ownerDocument,"mousemove",c),be(i.scroller,"dragstart",f),be(i.scroller,"drop",u),o||(Le(t),n.addNew||Ro(e.doc,r,null,null,n.extend),s&&!h||l&&9==a?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),c=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},f=function(){return o=!0};s&&(i.scroller.draggable=!0),e.state.draggingText=u,u.copy=!n.moveOnDrag,me(i.wrapper.ownerDocument,"mouseup",u),me(i.wrapper.ownerDocument,"mousemove",c),me(i.scroller,"dragstart",f),me(i.scroller,"drop",u),e.state.delayingBlurEvent=!0,setTimeout((function(){return i.input.focus()}),20),i.scroller.dragDrop&&i.scroller.dragDrop()}function Ta(e,t,r){if("char"==r)return new so(t,t);if("word"==r)return e.findWordAt(t);if("line"==r)return new so(st(t.line,0),gt(e.doc,st(t.line+1,0)));var n=r(e,t);return new so(n.from,n.to)}function Ma(e,t,r,n){l&&Qn(e);var i=e.display,o=e.doc;Le(t);var a,s,u=o.sel,c=u.ranges;if(n.addNew&&!n.extend?(s=o.sel.contains(r),a=s>-1?c[s]:new so(r,r)):(a=o.sel.primary(),s=o.sel.primIndex),"rectangle"==n.unit)n.addNew||(a=new so(r,r)),r=In(e,t,!0,!0),s=-1;else{var f=Ta(e,r,n.unit);a=n.extend?Io(a,f.anchor,f.head,n.extend):f}n.addNew?-1==s?(s=c.length,Ko(o,uo(e,c.concat([a]),s),{scroll:!1,origin:"*mouse"})):c.length>1&&c[s].empty()&&"char"==n.unit&&!n.extend?(Ko(o,uo(e,c.slice(0,s).concat(c.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),u=o.sel):Vo(o,s,a,X):(s=0,Ko(o,new ao([a],0),X),u=o.sel);var d=r;function h(t){if(0!=ut(d,t))if(d=t,"rectangle"==n.unit){for(var i=[],l=e.options.tabSize,c=V(et(o,r.line).text,r.ch,l),f=V(et(o,t.line).text,t.ch,l),h=Math.min(c,f),p=Math.max(c,f),g=Math.min(r.line,t.line),v=Math.min(e.lastLine(),Math.max(r.line,t.line));g<=v;g++){var m=et(o,g).text,y=Y(m,h,l);h==p?i.push(new so(st(g,y),st(g,y))):m.length>y&&i.push(new so(st(g,y),st(g,Y(m,p,l))))}i.length||i.push(new so(r,r)),Ko(o,uo(e,u.ranges.slice(0,s).concat(i),s),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,w=a,x=Ta(e,t,n.unit),C=w.anchor;ut(x.anchor,C)>0?(b=x.head,C=ht(w.from(),x.anchor)):(b=x.anchor,C=dt(w.to(),x.head));var k=u.ranges.slice(0);k[s]=Na(e,new so(gt(o,C),b)),Ko(o,uo(e,k,s),X)}}var p=i.wrapper.getBoundingClientRect(),g=0;function v(t){var r=++g,l=In(e,t,!0,"rectangle"==n.unit);if(l)if(0!=ut(l,d)){e.curOp.focus=H(z(e)),h(l);var a=ii(i,o);(l.line>=a.to||l.linep.bottom?20:0;s&&setTimeout(Ei(e,(function(){g==r&&(i.scroller.scrollTop+=s,v(t))})),50)}}function m(t){e.state.selectingText=!1,g=1/0,t&&(Le(t),i.input.focus()),be(i.wrapper.ownerDocument,"mousemove",y),be(i.wrapper.ownerDocument,"mouseup",b),o.history.lastSelOrigin=null}var y=Ei(e,(function(e){0!==e.buttons&&Ae(e)?v(e):m(e)})),b=Ei(e,m);e.state.selectingText=b,me(i.wrapper.ownerDocument,"mousemove",y),me(i.wrapper.ownerDocument,"mouseup",b)}function Na(e,t){var r=t.anchor,n=t.head,i=et(e.doc,r.line);if(0==ut(r,n)&&r.sticky==n.sticky)return t;var o=ge(i);if(!o)return t;var l=he(o,r.ch,r.sticky),a=o[l];if(a.from!=r.ch&&a.to!=r.ch)return t;var s,u=l+(a.from==r.ch==(1!=a.level)?0:1);if(0==u||u==o.length)return t;if(n.line!=r.line)s=(n.line-r.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=he(o,n.ch,n.sticky),f=c-l||(n.ch-r.ch)*(1==a.level?-1:1);s=c==u-1||c==u?f<0:f>0}var d=o[u+(s?-1:0)],h=s==(1==d.level),p=h?d.from:d.to,g=h?"after":"before";return r.ch==p&&r.sticky==g?t:new so(new st(r.line,p,g),n)}function Oa(e,t,r,n){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&Le(t);var l=e.display,a=l.lineDiv.getBoundingClientRect();if(o>a.bottom||!ke(e,r))return Me(t);o-=a.top-l.viewOffset;for(var s=0;s=i)return we(e,r,e,ot(e.doc,o),e.display.gutterSpecs[s].className,t),Me(t)}}function Aa(e,t){return Oa(e,t,"gutterClick",!0)}function Da(e,t){_r(e.display,t)||Wa(e,t)||xe(e,t,"contextmenu")||S||e.display.input.onContextMenu(t)}function Wa(e,t){return!!ke(e,"gutterContextMenu")&&Oa(e,t,"gutterContextMenu",!1)}function Ha(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),gn(e)}ba.prototype.compare=function(e,t,r){return this.time+ya>e&&0==ut(t,this.pos)&&r==this.button};var Fa={toString:function(){return"CodeMirror.Init"}},Ea={},Pa={};function za(e){var t=e.optionHandlers;function r(r,n,i,o){e.defaults[r]=n,i&&(t[r]=o?function(e,t,r){r!=Fa&&i(e,t,r)}:i)}e.defineOption=r,e.Init=Fa,r("value","",(function(e,t){return e.setValue(t)}),!0),r("mode",null,(function(e,t){e.doc.modeOption=t,mo(e)}),!0),r("indentUnit",2,mo,!0),r("indentWithTabs",!1),r("smartIndent",!0),r("tabSize",4,(function(e){yo(e),gn(e),Bn(e)}),!0),r("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var r=[],n=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,r.push(st(n,o))}n++}));for(var i=r.length-1;i>=0;i--)al(e.doc,t,r[i],st(r[i].line,r[i].ch+t.length))}})),r("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,(function(e,t,r){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),r!=Fa&&e.refresh()})),r("specialCharPlaceholder",yr,(function(e){return e.refresh()}),!0),r("electricChars",!0),r("inputStyle",y?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),r("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),r("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),r("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),r("rtlMoveVisually",!x),r("wholeLineUpdateBefore",!0),r("theme","default",(function(e){Ha(e),eo(e)}),!0),r("keyMap","default",(function(e,t,r){var n=$l(t),i=r!=Fa&&$l(r);i&&i.detach&&i.detach(e,n),n.attach&&n.attach(e,i||null)})),r("extraKeys",null),r("configureMouse",null),r("lineWrapping",!1,Ra,!0),r("gutters",[],(function(e,t){e.display.gutterSpecs=Ji(t,e.options.lineNumbers),eo(e)}),!0),r("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?En(e.display)+"px":"0",e.refresh()}),!0),r("coverGutterNextToScrollbar",!1,(function(e){return xi(e)}),!0),r("scrollbarStyle","native",(function(e){Si(e),xi(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),r("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=Ji(e.options.gutters,t),eo(e)}),!0),r("firstLineNumber",1,eo,!0),r("lineNumberFormatter",(function(e){return e}),eo,!0),r("showCursorWhenSelecting",!1,_n,!0),r("resetSelectionOnContextMenu",!0),r("lineWiseCopyCut",!0),r("pasteLinesPerSelection",!0),r("selectionsMayTouch",!1),r("readOnly",!1,(function(e,t){"nocursor"==t&&(ti(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),r("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),r("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),r("dragDrop",!0,Ia),r("allowDropFileTypes",null),r("cursorBlinkRate",530),r("cursorScrollMargin",0),r("cursorHeight",1,_n,!0),r("singleCursorHeightPerLine",!0,_n,!0),r("workTime",100),r("workDelay",100),r("flattenSpans",!0,yo,!0),r("addModeClass",!1,yo,!0),r("pollInterval",100),r("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),r("historyEventDelay",1250),r("viewportMargin",10,(function(e){return e.refresh()}),!0),r("maxHighlightLength",1e4,yo,!0),r("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),r("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),r("autofocus",null),r("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),r("phrases",null)}function Ia(e,t,r){if(!t!=!(r&&r!=Fa)){var n=e.display.dragFunctions,i=t?me:be;i(e.display.scroller,"dragstart",n.start),i(e.display.scroller,"dragenter",n.enter),i(e.display.scroller,"dragover",n.over),i(e.display.scroller,"dragleave",n.leave),i(e.display.scroller,"drop",n.drop)}}function Ra(e){e.options.lineWrapping?(F(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(M(e.display.wrapper,"CodeMirror-wrap"),cr(e)),zn(e),Bn(e),gn(e),setTimeout((function(){return xi(e)}),100)}function Ba(e,t){var r=this;if(!(this instanceof Ba))return new Ba(e,t);this.options=t=t?B(t):{},B(Ea,t,!1);var n=t.value;"string"==typeof n?n=new Tl(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var i=new Ba.inputStyles[t.inputStyle](this),o=this.display=new to(e,n,i,t);for(var u in o.wrapper.CodeMirror=this,Ha(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Si(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new G,keySeq:null,specialChars:null},t.autofocus&&!y&&o.input.focus(),l&&a<11&&setTimeout((function(){return r.display.input.reset(!0)}),20),Va(this),Fl(),Ti(this),this.curOp.forceUpdate=!0,Co(this,n),t.autofocus&&!y||this.hasFocus()?setTimeout((function(){r.hasFocus()&&!r.state.focused&&ei(r)}),20):ti(this),Pa)Pa.hasOwnProperty(u)&&Pa[u](this,t[u],Fa);Zi(this),t.finishInit&&t.finishInit(this);for(var c=0;c400}me(t.scroller,"touchstart",(function(i){if(!xe(e,i)&&!o(i)&&!Aa(e,i)){t.input.ensurePolled(),clearTimeout(r);var l=+new Date;t.activeTouch={start:l,moved:!1,prev:l-n.end<=300?n:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),me(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),me(t.scroller,"touchend",(function(r){var n=t.activeTouch;if(n&&!_r(t,r)&&null!=n.left&&!n.moved&&new Date-n.start<300){var o,l=e.coordsChar(t.activeTouch,"page");o=!n.prev||s(n,n.prev)?new so(l,l):!n.prev.prev||s(n,n.prev.prev)?e.findWordAt(l):new so(st(l.line,0),gt(e.doc,st(l.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),Le(r)}i()})),me(t.scroller,"touchcancel",i),me(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(gi(e,t.scroller.scrollTop),mi(e,t.scroller.scrollLeft,!0),we(e,"scroll",e))})),me(t.scroller,"mousewheel",(function(t){return lo(e,t)})),me(t.scroller,"DOMMouseScroll",(function(t){return lo(e,t)})),me(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){xe(e,t)||Ne(t)},over:function(t){xe(e,t)||(Al(e,t),Ne(t))},start:function(t){return Ol(e,t)},drop:Ei(e,Nl),leave:function(t){xe(e,t)||Dl(e)}};var u=t.input.getField();me(u,"keyup",(function(t){return pa.call(e,t)})),me(u,"keydown",Ei(e,da)),me(u,"keypress",Ei(e,ga)),me(u,"focus",(function(t){return ei(e,t)})),me(u,"blur",(function(t){return ti(e,t)}))}Ba.defaults=Ea,Ba.optionHandlers=Pa;var Ga=[];function ja(e,t,r,n){var i,o=e.doc;null==r&&(r="add"),"smart"==r&&(o.mode.indent?i=Ct(e,t).state:r="prev");var l=e.options.tabSize,a=et(o,t),s=V(a.text,null,l);a.stateAfter&&(a.stateAfter=null);var u,c=a.text.match(/^\s*/)[0];if(n||/\S/.test(a.text)){if("smart"==r&&((u=o.mode.indent(i,a.text.slice(c.length),a.text))==K||u>150)){if(!n)return;r="prev"}}else u=0,r="not";"prev"==r?u=t>o.first?V(et(o,t-1).text,null,l):0:"add"==r?u=s+e.options.indentUnit:"subtract"==r?u=s-e.options.indentUnit:"number"==typeof r&&(u=s+r),u=Math.max(0,u);var f="",d=0;if(e.options.indentWithTabs)for(var h=Math.floor(u/l);h;--h)d+=l,f+="\t";if(dl,s=ze(t),u=null;if(a&&n.ranges.length>1)if(Ua&&Ua.text.join("\n")==t){if(n.ranges.length%Ua.text.length==0){u=[];for(var c=0;c=0;d--){var h=n.ranges[d],p=h.from(),g=h.to();h.empty()&&(r&&r>0?p=st(p.line,p.ch-r):e.state.overwrite&&!a?g=st(g.line,Math.min(et(o,g.line).text.length,g.ch+J(s).length)):a&&Ua&&Ua.lineWise&&Ua.text.join("\n")==s.join("\n")&&(p=g=st(p.line,0)));var v={from:p,to:g,text:u?u[d%u.length]:s,origin:i||(a?"paste":e.state.cutIncoming>l?"cut":"+input")};tl(e.doc,v),Dr(e,"inputRead",e,v)}t&&!a&&$a(e,t),ci(e),e.curOp.updateInput<2&&(e.curOp.updateInput=f),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Xa(e,t){var r=e.clipboardData&&e.clipboardData.getData("Text");if(r)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||Fi(t,(function(){return _a(t,r,0,null,"paste")})),!0}function $a(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var r=e.doc.sel,n=r.ranges.length-1;n>=0;n--){var i=r.ranges[n];if(!(i.head.ch>100||n&&r.ranges[n-1].head.line==i.head.line)){var o=e.getModeAt(i.head),l=!1;if(o.electricChars){for(var a=0;a-1){l=ja(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(et(e.doc,i.head.line).text.slice(0,i.head.ch))&&(l=ja(e,i.head.line,"smart"));l&&Dr(e,"electricInput",e,i.head.line)}}}function Ya(e){for(var t=[],r=[],n=0;nr&&(ja(this,i.head.line,e,!0),r=i.head.line,n==this.doc.sel.primIndex&&ci(this));else{var o=i.from(),l=i.to(),a=Math.max(r,o.line);r=Math.min(this.lastLine(),l.line-(l.ch?0:1))+1;for(var s=a;s0&&Vo(this.doc,n,new so(o,u[n].to()),_)}}})),getTokenAt:function(e,t){return Mt(this,e,t)},getLineTokens:function(e,t){return Mt(this,st(e),t,!0)},getTokenTypeAt:function(e){e=gt(this.doc,e);var t,r=xt(this,et(this.doc,e.line)),n=0,i=(r.length-1)/2,o=e.ch;if(0==o)t=r[2];else for(;;){var l=n+i>>1;if((l?r[2*l-1]:0)>=o)i=l;else{if(!(r[2*l+1]o&&(e=o,i=!0),n=et(this.doc,e)}else n=e;return bn(this,n,{top:0,left:0},t||"page",r||i).top+(i?this.doc.height-sr(n):0)},defaultTextHeight:function(){return Wn(this.display)},defaultCharWidth:function(){return Hn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,r,n,i){var o=this.display,l=(e=Cn(this,gt(this.doc,e))).bottom,a=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==n)l=e.top;else if("above"==n||"near"==n){var s=Math.max(o.wrapper.clientHeight,this.doc.height),u=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==n||e.bottom+t.offsetHeight>s)&&e.top>t.offsetHeight?l=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=s&&(l=e.bottom),a+t.offsetWidth>u&&(a=u-t.offsetWidth)}t.style.top=l+"px",t.style.left=t.style.right="","right"==i?(a=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?a=0:"middle"==i&&(a=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=a+"px"),r&&ai(this,{left:a,top:l,right:a+t.offsetWidth,bottom:l+t.offsetHeight})},triggerOnKeyDown:Pi(da),triggerOnKeyPress:Pi(ga),triggerOnKeyUp:pa,triggerOnMouseDown:Pi(xa),execCommand:function(e){if(ea.hasOwnProperty(e))return ea[e].call(null,this)},triggerElectric:Pi((function(e){$a(this,e)})),findPosH:function(e,t,r,n){var i=1;t<0&&(i=-1,t=-t);for(var o=gt(this.doc,e),l=0;l0&&l(t.charAt(r-1));)--r;for(;n.5||this.options.lineWrapping)&&zn(this),we(this,"refresh",this)})),swapDoc:Pi((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Co(this,e),gn(this),this.display.input.reset(),fi(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Dr(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Se(e),e.registerHelper=function(t,n,i){r.hasOwnProperty(t)||(r[t]=e[t]={_global:[]}),r[t][n]=i},e.registerGlobalHelper=function(t,n,i,o){e.registerHelper(t,n,o),r[t]._global.push({pred:i,val:o})}}function Qa(e,t,r,n,i){var o=t,l=r,a=et(e,t.line),s=i&&"rtl"==e.direction?-r:r;function u(){var r=t.line+s;return!(r=e.first+e.size)&&(t=new st(r,t.ch,t.sticky),a=et(e,r))}function c(o){var l;if("codepoint"==n){var c=a.text.charCodeAt(t.ch+(r>0?0:-1));if(isNaN(c))l=null;else{var f=r>0?c>=55296&&c<56320:c>=56320&&c<57343;l=new st(t.line,Math.max(0,Math.min(a.text.length,t.ch+r*(f?2:1))),-r)}}else l=i?Ql(e.cm,a,t,r):Zl(a,t,r);if(null==l){if(o||!u())return!1;t=Jl(i,e.cm,a,t.line,s)}else t=l;return!0}if("char"==n||"codepoint"==n)c();else if("column"==n)c(!0);else if("word"==n||"group"==n)for(var f=null,d="group"==n,h=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;!(r<0)||c(!p);p=!1){var g=a.text.charAt(t.ch)||"\n",v=oe(g,h)?"w":d&&"\n"==g?"n":!d||/\s/.test(g)?null:"p";if(!d||p||v||(v="s"),f&&f!=v){r<0&&(r=1,c(),t.sticky="after");break}if(v&&(f=v),r>0&&!c(!p))break}var m=Zo(e,t,o,l,!0);return ct(o,m)&&(m.hitSide=!0),m}function es(e,t,r,n){var i,o,l=e.doc,a=t.left;if("page"==n){var s=Math.min(e.display.wrapper.clientHeight,I(e).innerHeight||l(e).documentElement.clientHeight),u=Math.max(s-.5*Wn(e.display),3);i=(r>0?t.bottom:t.top)+r*u}else"line"==n&&(i=r>0?t.bottom+3:t.top-3);for(;(o=Ln(e,a,i)).outside;){if(r<0?i<=0:i>=l.height){o.hitSide=!0;break}i+=5*r}return o}var ts=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new G,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function rs(e,t){var r=nn(e,t.line);if(!r||r.hidden)return null;var n=et(e.doc,t.line),i=en(r,n,t.line),o=ge(n,e.doc.direction),l="left";o&&(l=he(o,t.ch)%2?"right":"left");var a=un(i.map,t.ch,l);return a.offset="right"==a.collapse?a.end:a.start,a}function ns(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function is(e,t){return t&&(e.bad=!0),e}function os(e,t,r,n,i){var o="",l=!1,a=e.doc.lineSeparator(),s=!1;function u(e){return function(t){return t.id==e}}function c(){l&&(o+=a,s&&(o+=a),l=s=!1)}function f(e){e&&(c(),o+=e)}function d(t){if(1==t.nodeType){var r=t.getAttribute("cm-text");if(r)return void f(r);var o,h=t.getAttribute("cm-marker");if(h){var p=e.findMarks(st(n,0),st(i+1,0),u(+h));return void(p.length&&(o=p[0].find(0))&&f(tt(e.doc,o.from,o.to).join(a)))}if("false"==t.getAttribute("contenteditable"))return;var g=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;g&&c();for(var v=0;v=t.display.viewTo||o.line=t.display.viewFrom&&rs(t,i)||{node:s[0].measure.map[2],offset:0},c=o.linen.firstLine()&&(l=st(l.line-1,et(n.doc,l.line-1).length)),a.ch==et(n.doc,a.line).text.length&&a.linei.viewTo-1)return!1;l.line==i.viewFrom||0==(e=Rn(n,l.line))?(t=it(i.view[0].line),r=i.view[0].node):(t=it(i.view[e].line),r=i.view[e-1].node.nextSibling);var s,u,c=Rn(n,a.line);if(c==i.view.length-1?(s=i.viewTo-1,u=i.lineDiv.lastChild):(s=it(i.view[c+1].line)-1,u=i.view[c+1].node.previousSibling),!r)return!1;for(var f=n.doc.splitLines(os(n,r,u,t,s)),d=tt(n.doc,st(t,0),st(s,et(n.doc,s).text.length));f.length>1&&d.length>1;)if(J(f)==J(d))f.pop(),d.pop(),s--;else{if(f[0]!=d[0])break;f.shift(),d.shift(),t++}for(var h=0,p=0,g=f[0],v=d[0],m=Math.min(g.length,v.length);hl.ch&&y.charCodeAt(y.length-p-1)==b.charCodeAt(b.length-p-1);)h--,p++;f[f.length-1]=y.slice(0,y.length-p).replace(/^\u200b+/,""),f[0]=f[0].slice(h).replace(/\u200b+$/,"");var x=st(t,h),C=st(s,d.length?J(d).length-p:0);return f.length>1||f[0]||ut(x,C)?(al(n.doc,f,x,C,"+input"),!0):void 0},ts.prototype.ensurePolled=function(){this.forceCompositionEnd()},ts.prototype.reset=function(){this.forceCompositionEnd()},ts.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ts.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},ts.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Fi(this.cm,(function(){return Bn(e.cm)}))},ts.prototype.setUneditable=function(e){e.contentEditable="false"},ts.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Ei(this.cm,_a)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},ts.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},ts.prototype.onContextMenu=function(){},ts.prototype.resetPosition=function(){},ts.prototype.needsContentAttribute=!0;var ss=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new G,this.hasSelection=!1,this.composing=null,this.resetting=!1};function us(e,t){if((t=t?B(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var r=H(e.ownerDocument);t.autofocus=r==e||null!=e.getAttribute("autofocus")&&r==document.body}function n(){e.value=a.getValue()}var i;if(e.form&&(me(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var l=o.submit=function(){n(),o.submit=i,o.submit(),o.submit=l}}catch(e){}}t.finishInit=function(r){r.save=n,r.getTextArea=function(){return e},r.toTextArea=function(){r.toTextArea=isNaN,n(),e.parentNode.removeChild(r.getWrapperElement()),e.style.display="",e.form&&(be(e.form,"submit",n),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var a=Ba((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return a}function cs(e){e.off=be,e.on=me,e.wheelEventPixels=oo,e.Doc=Tl,e.splitLines=ze,e.countColumn=V,e.findColumn=Y,e.isWordChar=ie,e.Pass=K,e.signal=we,e.Line=fr,e.changeEnd=fo,e.scrollbarModel=ki,e.Pos=st,e.cmpPos=ut,e.modes=Ge,e.mimeModes=je,e.resolveMode=_e,e.getMode=Xe,e.modeExtensions=$e,e.extendMode=Ye,e.copyState=qe,e.startState=Je,e.innerMode=Ze,e.commands=ea,e.keyMap=Vl,e.keyName=Xl,e.isModifierKey=Kl,e.lookupKey=Ul,e.normalizeKeyMap=jl,e.StringStream=Qe,e.SharedTextMarker=wl,e.TextMarker=yl,e.LineWidget=pl,e.e_preventDefault=Le,e.e_stopPropagation=Te,e.e_stop=Ne,e.addClass=F,e.contains=W,e.rmClass=M,e.keyNames=zl}ss.prototype.init=function(e){var t=this,r=this,n=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!xe(n,e)){if(n.somethingSelected())Ka({lineWise:!1,text:n.getSelections()});else{if(!n.options.lineWiseCopyCut)return;var t=Ya(n);Ka({lineWise:!0,text:t.text}),"cut"==e.type?n.setSelections(t.ranges,null,_):(r.prevInput="",i.value=t.text.join("\n"),P(i))}"cut"==e.type&&(n.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),v&&(i.style.width="0px"),me(i,"input",(function(){l&&a>=9&&t.hasSelection&&(t.hasSelection=null),r.poll()})),me(i,"paste",(function(e){xe(n,e)||Xa(e,n)||(n.state.pasteIncoming=+new Date,r.fastPoll())})),me(i,"cut",o),me(i,"copy",o),me(e.scroller,"paste",(function(t){if(!_r(e,t)&&!xe(n,t)){if(!i.dispatchEvent)return n.state.pasteIncoming=+new Date,void r.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),me(e.lineSpace,"selectstart",(function(t){_r(e,t)||Le(t)})),me(i,"compositionstart",(function(){var e=n.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:e,range:n.markText(e,n.getCursor("to"),{className:"CodeMirror-composing"})}})),me(i,"compositionend",(function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)}))},ss.prototype.createField=function(e){this.wrapper=Za(),this.textarea=this.wrapper.firstChild},ss.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},ss.prototype.prepareSelection=function(){var e=this.cm,t=e.display,r=e.doc,n=Xn(e);if(e.options.moveInputWithCursor){var i=Cn(e,r.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),l=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+l.top-o.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+l.left-o.left))}return n},ss.prototype.showSelection=function(e){var t=this.cm.display;O(t.cursorDiv,e.cursors),O(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},ss.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var r=t.getSelection();this.textarea.value=r,t.state.focused&&P(this.textarea),l&&a>=9&&(this.hasSelection=r)}else e||(this.prevInput=this.textarea.value="",l&&a>=9&&(this.hasSelection=null));this.resetting=!1}},ss.prototype.getField=function(){return this.textarea},ss.prototype.supportsTouch=function(){return!1},ss.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||H(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch(e){}},ss.prototype.blur=function(){this.textarea.blur()},ss.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ss.prototype.receivedFocus=function(){this.slowPoll()},ss.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},ss.prototype.fastPoll=function(){var e=!1,t=this;function r(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,r))}t.pollingFast=!0,t.polling.set(20,r)},ss.prototype.poll=function(){var e=this,t=this.cm,r=this.textarea,n=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||Ie(r)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=r.value;if(i==n&&!t.somethingSelected())return!1;if(l&&a>=9&&this.hasSelection===i||b&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||n||(n="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var s=0,u=Math.min(n.length,i.length);s1e3||i.indexOf("\n")>-1?r.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},ss.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ss.prototype.onKeyPress=function(){l&&a>=9&&(this.hasSelection=null),this.fastPoll()},ss.prototype.onContextMenu=function(e){var t=this,r=t.cm,n=r.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=In(r,e),u=n.scroller.scrollTop;if(o&&!d){r.options.resetSelectionOnContextMenu&&-1==r.doc.sel.contains(o)&&Ei(r,Ko)(r.doc,co(o),_);var c,f=i.style.cssText,h=t.wrapper.style.cssText,p=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-p.top-5)+"px; left: "+(e.clientX-p.left-5)+"px;\n z-index: 1000; background: "+(l?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",s&&(c=i.ownerDocument.defaultView.scrollY),n.input.focus(),s&&i.ownerDocument.defaultView.scrollTo(null,c),n.input.reset(),r.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=m,n.selForContextMenu=r.doc.sel,clearTimeout(n.detectingSelectAll),l&&a>=9&&v(),S){Ne(e);var g=function(){be(window,"mouseup",g),setTimeout(m,20)};me(window,"mouseup",g)}else setTimeout(m,50)}function v(){if(null!=i.selectionStart){var e=r.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,n.selForContextMenu=r.doc.sel}}function m(){if(t.contextMenuPending==m&&(t.contextMenuPending=!1,t.wrapper.style.cssText=h,i.style.cssText=f,l&&a<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=u),null!=i.selectionStart)){(!l||l&&a<9)&&v();var e=0,o=function(){n.selForContextMenu==r.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?Ei(r,Qo)(r):e++<10?n.detectingSelectAll=setTimeout(o,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(o,200)}}},ss.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},ss.prototype.setUneditable=function(){},ss.prototype.needsContentAttribute=!1,za(Ba),Ja(Ba);var fs="iter insert remove copy getEditor constructor".split(" ");for(var ds in Tl.prototype)Tl.prototype.hasOwnProperty(ds)&&j(fs,ds)<0&&(Ba.prototype[ds]=function(e){return function(){return e.apply(this.doc,arguments)}}(Tl.prototype[ds]));return Se(Tl),Ba.inputStyles={textarea:ss,contenteditable:ts},Ba.defineMode=function(e){Ba.defaults.mode||"null"==e||(Ba.defaults.mode=e),Ue.apply(this,arguments)},Ba.defineMIME=Ke,Ba.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Ba.defineMIME("text/plain","null"),Ba.defineExtension=function(e,t){Ba.prototype[e]=t},Ba.defineDocExtension=function(e,t){Tl.prototype[e]=t},Ba.fromTextArea=us,cs(Ba),Ba.version="5.65.9",Ba}()},792:function(e,t,r){!function(e){"use strict";e.defineMode("javascript",(function(t,r){var n,i,o=t.indentUnit,l=r.statementIndent,a=r.jsonld,s=r.json||a,u=!1!==r.trackScope,c=r.typescript,f=r.wordCharacters||/[\w$\xa1-\uffff]/,d=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),r=e("keyword b"),n=e("keyword c"),i=e("keyword d"),o=e("operator"),l={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:r,do:r,try:r,finally:r,return:i,break:i,continue:i,new:e("new"),delete:n,void:n,throw:n,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:l,false:l,null:l,undefined:l,NaN:l,Infinity:l,this:e("this"),class:e("class"),super:e("atom"),yield:n,export:e("export"),import:e("import"),extends:n,await:n}}(),h=/[+\-*&%=<>!?|~^@]/,p=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function g(e){for(var t,r=!1,n=!1;null!=(t=e.next());){if(!r){if("/"==t&&!n)return;"["==t?n=!0:n&&"]"==t&&(n=!1)}r=!r&&"\\"==t}}function v(e,t,r){return n=e,i=r,t}function m(e,t){var r=e.next();if('"'==r||"'"==r)return t.tokenize=y(r),t.tokenize(e,t);if("."==r&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return v("number","number");if("."==r&&e.match(".."))return v("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return v(r);if("="==r&&e.eat(">"))return v("=>","operator");if("0"==r&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return v("number","number");if(/\d/.test(r))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),v("number","number");if("/"==r)return e.eat("*")?(t.tokenize=b,b(e,t)):e.eat("/")?(e.skipToEnd(),v("comment","comment")):it(e,t,1)?(g(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),v("regexp","string-2")):(e.eat("="),v("operator","operator",e.current()));if("`"==r)return t.tokenize=w,w(e,t);if("#"==r&&"!"==e.peek())return e.skipToEnd(),v("meta","meta");if("#"==r&&e.eatWhile(f))return v("variable","property");if("<"==r&&e.match("!--")||"-"==r&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),v("comment","comment");if(h.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-|&?]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),"?"==r&&e.eat(".")?v("."):v("operator","operator",e.current());if(f.test(r)){e.eatWhile(f);var n=e.current();if("."!=t.lastType){if(d.propertyIsEnumerable(n)){var i=d[n];return v(i.type,i.style,n)}if("async"==n&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return v("async","keyword",n)}return v("variable","variable",n)}}function y(e){return function(t,r){var n,i=!1;if(a&&"@"==t.peek()&&t.match(p))return r.tokenize=m,v("jsonld-keyword","meta");for(;null!=(n=t.next())&&(n!=e||i);)i=!i&&"\\"==n;return i||(r.tokenize=m),v("string","string")}}function b(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=m;break}n="*"==r}return v("comment","comment")}function w(e,t){for(var r,n=!1;null!=(r=e.next());){if(!n&&("`"==r||"$"==r&&e.eat("{"))){t.tokenize=m;break}n=!n&&"\\"==r}return v("quasi","string-2",e.current())}var x="([{}])";function C(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var r=e.string.indexOf("=>",e.start);if(!(r<0)){if(c){var n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,r));n&&(r=n.index)}for(var i=0,o=!1,l=r-1;l>=0;--l){var a=e.string.charAt(l),s=x.indexOf(a);if(s>=0&&s<3){if(!i){++l;break}if(0==--i){"("==a&&(o=!0);break}}else if(s>=3&&s<6)++i;else if(f.test(a))o=!0;else if(/["'\/`]/.test(a))for(;;--l){if(0==l)return;if(e.string.charAt(l-1)==a&&"\\"!=e.string.charAt(l-2)){l--;break}}else if(o&&!i){++l;break}}o&&!i&&(t.fatArrowAt=l)}}var k={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function S(e,t,r,n,i,o){this.indented=e,this.column=t,this.type=r,this.prev=i,this.info=o,null!=n&&(this.align=n)}function L(e,t){if(!u)return!1;for(var r=e.localVars;r;r=r.next)if(r.name==t)return!0;for(var n=e.context;n;n=n.prev)for(r=n.vars;r;r=r.next)if(r.name==t)return!0}function T(e,t,r,n,i){var o=e.cc;for(M.state=e,M.stream=i,M.marked=null,M.cc=o,M.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():s?K:j)(r,n)){for(;o.length&&o[o.length-1].lex;)o.pop()();return M.marked?M.marked:"variable"==r&&L(e,n)?"variable-2":t}}var M={state:null,column:null,marked:null,cc:null};function N(){for(var e=arguments.length-1;e>=0;e--)M.cc.push(arguments[e])}function O(){return N.apply(null,arguments),!0}function A(e,t){for(var r=t;r;r=r.next)if(r.name==e)return!0;return!1}function D(e){var t=M.state;if(M.marked="def",u){if(t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var n=W(e,t.context);if(null!=n)return void(t.context=n)}else if(!A(e,t.localVars))return void(t.localVars=new E(e,t.localVars));r.globalVars&&!A(e,t.globalVars)&&(t.globalVars=new E(e,t.globalVars))}}function W(e,t){if(t){if(t.block){var r=W(e,t.prev);return r?r==t.prev?t:new F(r,t.vars,!0):null}return A(e,t.vars)?t:new F(t.prev,new E(e,t.vars),!1)}return null}function H(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function F(e,t,r){this.prev=e,this.vars=t,this.block=r}function E(e,t){this.name=e,this.next=t}var P=new E("this",new E("arguments",null));function z(){M.state.context=new F(M.state.context,M.state.localVars,!1),M.state.localVars=P}function I(){M.state.context=new F(M.state.context,M.state.localVars,!0),M.state.localVars=null}function R(){M.state.localVars=M.state.context.vars,M.state.context=M.state.context.prev}function B(e,t){var r=function(){var r=M.state,n=r.indented;if("stat"==r.lexical.type)n=r.lexical.indented;else for(var i=r.lexical;i&&")"==i.type&&i.align;i=i.prev)n=i.indented;r.lexical=new S(n,M.stream.column(),e,null,r.lexical,t)};return r.lex=!0,r}function V(){var e=M.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function G(e){function t(r){return r==e?O():";"==e||"}"==r||")"==r||"]"==r?N():O(t)}return t}function j(e,t){return"var"==e?O(B("vardef",t),Ne,G(";"),V):"keyword a"==e?O(B("form"),X,j,V):"keyword b"==e?O(B("form"),j,V):"keyword d"==e?M.stream.match(/^\s*$/,!1)?O():O(B("stat"),Y,G(";"),V):"debugger"==e?O(G(";")):"{"==e?O(B("}"),I,de,V,R):";"==e?O():"if"==e?("else"==M.state.lexical.info&&M.state.cc[M.state.cc.length-1]==V&&M.state.cc.pop()(),O(B("form"),X,j,V,Fe)):"function"==e?O(Ie):"for"==e?O(B("form"),I,Ee,j,R,V):"class"==e||c&&"interface"==t?(M.marked="keyword",O(B("form","class"==e?e:t),je,V)):"variable"==e?c&&"declare"==t?(M.marked="keyword",O(j)):c&&("module"==t||"enum"==t||"type"==t)&&M.stream.match(/^\s*\w/,!1)?(M.marked="keyword","enum"==t?O(tt):"type"==t?O(Be,G("operator"),me,G(";")):O(B("form"),Oe,G("{"),B("}"),de,V,V)):c&&"namespace"==t?(M.marked="keyword",O(B("form"),K,j,V)):c&&"abstract"==t?(M.marked="keyword",O(j)):O(B("stat"),oe):"switch"==e?O(B("form"),X,G("{"),B("}","switch"),I,de,V,V,R):"case"==e?O(K,G(":")):"default"==e?O(G(":")):"catch"==e?O(B("form"),z,U,j,V,R):"export"==e?O(B("stat"),Xe,V):"import"==e?O(B("stat"),Ye,V):"async"==e?O(j):"@"==t?O(K,j):N(B("stat"),K,G(";"),V)}function U(e){if("("==e)return O(Ve,G(")"))}function K(e,t){return $(e,t,!1)}function _(e,t){return $(e,t,!0)}function X(e){return"("!=e?N():O(B(")"),Y,G(")"),V)}function $(e,t,r){if(M.state.fatArrowAt==M.stream.start){var n=r?te:ee;if("("==e)return O(z,B(")"),ce(Ve,")"),V,G("=>"),n,R);if("variable"==e)return N(z,Oe,G("=>"),n,R)}var i=r?Z:q;return k.hasOwnProperty(e)?O(i):"function"==e?O(Ie,i):"class"==e||c&&"interface"==t?(M.marked="keyword",O(B("form"),Ge,V)):"keyword c"==e||"async"==e?O(r?_:K):"("==e?O(B(")"),Y,G(")"),V,i):"operator"==e||"spread"==e?O(r?_:K):"["==e?O(B("]"),et,V,i):"{"==e?fe(ae,"}",null,i):"quasi"==e?N(J,i):"new"==e?O(re(r)):O()}function Y(e){return e.match(/[;\}\)\],]/)?N():N(K)}function q(e,t){return","==e?O(Y):Z(e,t,!1)}function Z(e,t,r){var n=0==r?q:Z,i=0==r?K:_;return"=>"==e?O(z,r?te:ee,R):"operator"==e?/\+\+|--/.test(t)||c&&"!"==t?O(n):c&&"<"==t&&M.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?O(B(">"),ce(me,">"),V,n):"?"==t?O(K,G(":"),i):O(i):"quasi"==e?N(J,n):";"!=e?"("==e?fe(_,")","call",n):"."==e?O(le,n):"["==e?O(B("]"),Y,G("]"),V,n):c&&"as"==t?(M.marked="keyword",O(me,n)):"regexp"==e?(M.state.lastType=M.marked="operator",M.stream.backUp(M.stream.pos-M.stream.start-1),O(i)):void 0:void 0}function J(e,t){return"quasi"!=e?N():"${"!=t.slice(t.length-2)?O(J):O(Y,Q)}function Q(e){if("}"==e)return M.marked="string-2",M.state.tokenize=w,O(J)}function ee(e){return C(M.stream,M.state),N("{"==e?j:K)}function te(e){return C(M.stream,M.state),N("{"==e?j:_)}function re(e){return function(t){return"."==t?O(e?ie:ne):"variable"==t&&c?O(Le,e?Z:q):N(e?_:K)}}function ne(e,t){if("target"==t)return M.marked="keyword",O(q)}function ie(e,t){if("target"==t)return M.marked="keyword",O(Z)}function oe(e){return":"==e?O(V,j):N(q,G(";"),V)}function le(e){if("variable"==e)return M.marked="property",O()}function ae(e,t){return"async"==e?(M.marked="property",O(ae)):"variable"==e||"keyword"==M.style?(M.marked="property","get"==t||"set"==t?O(se):(c&&M.state.fatArrowAt==M.stream.start&&(r=M.stream.match(/^\s*:\s*/,!1))&&(M.state.fatArrowAt=M.stream.pos+r[0].length),O(ue))):"number"==e||"string"==e?(M.marked=a?"property":M.style+" property",O(ue)):"jsonld-keyword"==e?O(ue):c&&H(t)?(M.marked="keyword",O(ae)):"["==e?O(K,he,G("]"),ue):"spread"==e?O(_,ue):"*"==t?(M.marked="keyword",O(ae)):":"==e?N(ue):void 0;var r}function se(e){return"variable"!=e?N(ue):(M.marked="property",O(Ie))}function ue(e){return":"==e?O(_):"("==e?N(Ie):void 0}function ce(e,t,r){function n(i,o){if(r?r.indexOf(i)>-1:","==i){var l=M.state.lexical;return"call"==l.info&&(l.pos=(l.pos||0)+1),O((function(r,n){return r==t||n==t?N():N(e)}),n)}return i==t||o==t?O():r&&r.indexOf(";")>-1?N(e):O(G(t))}return function(r,i){return r==t||i==t?O():N(e,n)}}function fe(e,t,r){for(var n=3;n"),me):"quasi"==e?N(xe,Se):void 0}function ye(e){if("=>"==e)return O(me)}function be(e){return e.match(/[\}\)\]]/)?O():","==e||";"==e?O(be):N(we,be)}function we(e,t){return"variable"==e||"keyword"==M.style?(M.marked="property",O(we)):"?"==t||"number"==e||"string"==e?O(we):":"==e?O(me):"["==e?O(G("variable"),pe,G("]"),we):"("==e?N(Re,we):e.match(/[;\}\)\],]/)?void 0:O()}function xe(e,t){return"quasi"!=e?N():"${"!=t.slice(t.length-2)?O(xe):O(me,Ce)}function Ce(e){if("}"==e)return M.marked="string-2",M.state.tokenize=w,O(xe)}function ke(e,t){return"variable"==e&&M.stream.match(/^\s*[?:]/,!1)||"?"==t?O(ke):":"==e?O(me):"spread"==e?O(ke):N(me)}function Se(e,t){return"<"==t?O(B(">"),ce(me,">"),V,Se):"|"==t||"."==e||"&"==t?O(me):"["==e?O(me,G("]"),Se):"extends"==t||"implements"==t?(M.marked="keyword",O(me)):"?"==t?O(me,G(":"),me):void 0}function Le(e,t){if("<"==t)return O(B(">"),ce(me,">"),V,Se)}function Te(){return N(me,Me)}function Me(e,t){if("="==t)return O(me)}function Ne(e,t){return"enum"==t?(M.marked="keyword",O(tt)):N(Oe,he,We,He)}function Oe(e,t){return c&&H(t)?(M.marked="keyword",O(Oe)):"variable"==e?(D(t),O()):"spread"==e?O(Oe):"["==e?fe(De,"]"):"{"==e?fe(Ae,"}"):void 0}function Ae(e,t){return"variable"!=e||M.stream.match(/^\s*:/,!1)?("variable"==e&&(M.marked="property"),"spread"==e?O(Oe):"}"==e?N():"["==e?O(K,G("]"),G(":"),Ae):O(G(":"),Oe,We)):(D(t),O(We))}function De(){return N(Oe,We)}function We(e,t){if("="==t)return O(_)}function He(e){if(","==e)return O(Ne)}function Fe(e,t){if("keyword b"==e&&"else"==t)return O(B("form","else"),j,V)}function Ee(e,t){return"await"==t?O(Ee):"("==e?O(B(")"),Pe,V):void 0}function Pe(e){return"var"==e?O(Ne,ze):"variable"==e?O(ze):N(ze)}function ze(e,t){return")"==e?O():";"==e?O(ze):"in"==t||"of"==t?(M.marked="keyword",O(K,ze)):N(K,ze)}function Ie(e,t){return"*"==t?(M.marked="keyword",O(Ie)):"variable"==e?(D(t),O(Ie)):"("==e?O(z,B(")"),ce(Ve,")"),V,ge,j,R):c&&"<"==t?O(B(">"),ce(Te,">"),V,Ie):void 0}function Re(e,t){return"*"==t?(M.marked="keyword",O(Re)):"variable"==e?(D(t),O(Re)):"("==e?O(z,B(")"),ce(Ve,")"),V,ge,R):c&&"<"==t?O(B(">"),ce(Te,">"),V,Re):void 0}function Be(e,t){return"keyword"==e||"variable"==e?(M.marked="type",O(Be)):"<"==t?O(B(">"),ce(Te,">"),V):void 0}function Ve(e,t){return"@"==t&&O(K,Ve),"spread"==e?O(Ve):c&&H(t)?(M.marked="keyword",O(Ve)):c&&"this"==e?O(he,We):N(Oe,he,We)}function Ge(e,t){return"variable"==e?je(e,t):Ue(e,t)}function je(e,t){if("variable"==e)return D(t),O(Ue)}function Ue(e,t){return"<"==t?O(B(">"),ce(Te,">"),V,Ue):"extends"==t||"implements"==t||c&&","==e?("implements"==t&&(M.marked="keyword"),O(c?me:K,Ue)):"{"==e?O(B("}"),Ke,V):void 0}function Ke(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||c&&H(t))&&M.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(M.marked="keyword",O(Ke)):"variable"==e||"keyword"==M.style?(M.marked="property",O(_e,Ke)):"number"==e||"string"==e?O(_e,Ke):"["==e?O(K,he,G("]"),_e,Ke):"*"==t?(M.marked="keyword",O(Ke)):c&&"("==e?N(Re,Ke):";"==e||","==e?O(Ke):"}"==e?O():"@"==t?O(K,Ke):void 0}function _e(e,t){if("!"==t)return O(_e);if("?"==t)return O(_e);if(":"==e)return O(me,We);if("="==t)return O(_);var r=M.state.lexical.prev;return N(r&&"interface"==r.info?Re:Ie)}function Xe(e,t){return"*"==t?(M.marked="keyword",O(Qe,G(";"))):"default"==t?(M.marked="keyword",O(K,G(";"))):"{"==e?O(ce($e,"}"),Qe,G(";")):N(j)}function $e(e,t){return"as"==t?(M.marked="keyword",O(G("variable"))):"variable"==e?N(_,$e):void 0}function Ye(e){return"string"==e?O():"("==e?N(K):"."==e?N(q):N(qe,Ze,Qe)}function qe(e,t){return"{"==e?fe(qe,"}"):("variable"==e&&D(t),"*"==t&&(M.marked="keyword"),O(Je))}function Ze(e){if(","==e)return O(qe,Ze)}function Je(e,t){if("as"==t)return M.marked="keyword",O(qe)}function Qe(e,t){if("from"==t)return M.marked="keyword",O(K)}function et(e){return"]"==e?O():N(ce(_,"]"))}function tt(){return N(B("form"),Oe,G("{"),B("}"),ce(rt,"}"),V,V)}function rt(){return N(Oe,We)}function nt(e,t){return"operator"==e.lastType||","==e.lastType||h.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function it(e,t,r){return t.tokenize==m&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(r||0)))}return z.lex=I.lex=!0,R.lex=!0,V.lex=!0,{startState:function(e){var t={tokenize:m,lastType:"sof",cc:[],lexical:new S((e||0)-o,0,"block",!1),localVars:r.localVars,context:r.localVars&&new F(null,null,!1),indented:e||0};return r.globalVars&&"object"==typeof r.globalVars&&(t.globalVars=r.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),C(e,t)),t.tokenize!=b&&e.eatSpace())return null;var r=t.tokenize(e,t);return"comment"==n?r:(t.lastType="operator"!=n||"++"!=i&&"--"!=i?n:"incdec",T(t,r,n,i,e))},indent:function(t,n){if(t.tokenize==b||t.tokenize==w)return e.Pass;if(t.tokenize!=m)return 0;var i,a=n&&n.charAt(0),s=t.lexical;if(!/^\s*else\b/.test(n))for(var u=t.cc.length-1;u>=0;--u){var c=t.cc[u];if(c==V)s=s.prev;else if(c!=Fe&&c!=R)break}for(;("stat"==s.type||"form"==s.type)&&("}"==a||(i=t.cc[t.cc.length-1])&&(i==q||i==Z)&&!/^[,\.=+\-*:?[\(]/.test(n));)s=s.prev;l&&")"==s.type&&"stat"==s.prev.type&&(s=s.prev);var f=s.type,d=a==f;return"vardef"==f?s.indented+("operator"==t.lastType||","==t.lastType?s.info.length+1:0):"form"==f&&"{"==a?s.indented:"form"==f?s.indented+o:"stat"==f?s.indented+(nt(t,n)?l||o:0):"switch"!=s.info||d||0==r.doubleIndentSwitch?s.align?s.column+(d?0:1):s.indented+(d?0:o):s.indented+(/^(?:case|default)\b/.test(n)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:s?null:"/*",blockCommentEnd:s?null:"*/",blockCommentContinue:s?null:" * ",lineComment:s?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:s?"json":"javascript",jsonldMode:a,jsonMode:s,expressionAllowed:it,skipExpression:function(t){T(t,"atom","atom","true",new e.StringStream("",2,null))}}})),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/manifest+json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(r(237))}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=r(237),t=r.n(e);r(795),r(274),r(792);const n={init(){document.addEventListener("DOMContentLoaded",(function(){if(void 0===CLD_METADATA)return;const e=document.getElementById("meta-data");t()(e,{value:JSON.stringify(CLD_METADATA,null," "),lineNumbers:!0,theme:"material",readOnly:!0,mode:{name:"javascript",json:!0},matchBrackets:!0,foldGutter:!0,htmlMode:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],viewportMargin:50}).setSize(null,600)}))}};n.init()}()}(); \ No newline at end of file +!function(){var e={"./node_modules/codemirror/addon/fold/brace-fold.js":function(e,t,r){!function(e){"use strict";function t(t){return function(r,n){var i=n.line,o=r.getLine(i);function l(t){for(var l,a=n.ch,s=0;;){var u=a<=0?-1:o.lastIndexOf(t[0],a-1);if(-1!=u){if(1==s&&ut.lastLine())return null;var n=t.getTokenAt(e.Pos(r,1));if(/\S/.test(n.string)||(n=t.getTokenAt(e.Pos(r,n.end+1))),"keyword"!=n.type||"import"!=n.string)return null;for(var i=r,o=Math.min(t.lastLine(),r+10);i<=o;++i){var l=t.getLine(i).indexOf(";");if(-1!=l)return{startCh:n.end,end:e.Pos(i,l)}}}var i,o=r.line,l=n(o);if(!l||n(o-1)||(i=n(o-2))&&i.end.line==o-1)return null;for(var a=l.end;;){var s=n(a.line+1);if(null==s)break;a=s.end}return{from:t.clipPos(e.Pos(o,l.startCh+1)),to:a}})),e.registerHelper("fold","include",(function(t,r){function n(r){if(rt.lastLine())return null;var n=t.getTokenAt(e.Pos(r,1));return/\S/.test(n.string)||(n=t.getTokenAt(e.Pos(r,n.end+1))),"meta"==n.type&&"#include"==n.string.slice(0,8)?n.start+8:void 0}var i=r.line,o=n(i);if(null==o||null!=n(i-1))return null;for(var l=i;null!=n(l+1);)++l;return{from:e.Pos(i,o+1),to:t.clipPos(e.Pos(l))}}))}(r("./node_modules/codemirror/lib/codemirror.js"))},"./node_modules/codemirror/addon/fold/foldcode.js":function(e,t,r){!function(e){"use strict";function t(t,n,o,l){if(o&&o.call){var a=o;o=null}else a=i(t,o,"rangeFinder");"number"==typeof n&&(n=e.Pos(n,0));var s=i(t,o,"minFoldSize");function u(e){var r=a(t,n);if(!r||r.to.line-r.from.linet.firstLine();)n=e.Pos(n.line-1,0),c=u(!1);if(c&&!c.cleared&&"unfold"!==l){var f=r(t,o,c);e.on(f,"mousedown",(function(t){d.clear(),e.e_preventDefault(t)}));var d=t.markText(c.from,c.to,{replacedWith:f,clearOnEnter:i(t,o,"clearOnEnter"),__isFold:!0});d.on("clear",(function(r,n){e.signal(t,"unfold",t,r,n)})),e.signal(t,"fold",t,c.from,c.to)}}function r(e,t,r){var n=i(e,t,"widget");if("function"==typeof n&&(n=n(r.from,r.to)),"string"==typeof n){var o=document.createTextNode(n);(n=document.createElement("span")).appendChild(o),n.className="CodeMirror-foldmarker"}else n&&(n=n.cloneNode(!0));return n}e.newFoldFunction=function(e,r){return function(n,i){t(n,i,{rangeFinder:e,widget:r})}},e.defineExtension("foldCode",(function(e,r,n){t(this,e,r,n)})),e.defineExtension("isFolded",(function(e){for(var t=this.findMarksAt(e),r=0;r=u){if(d&&a&&d.test(a.className))return;n=o(l.indicatorOpen)}}(n||a)&&e.setGutterMarker(r,l.gutter,n)}))}function a(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function s(e){var t=e.getViewport(),r=e.state.foldGutter;r&&(e.operation((function(){l(e,t.from,t.to)})),r.from=t.from,r.to=t.to)}function u(e,r,n){var o=e.state.foldGutter;if(o){var l=o.options;if(n==l.gutter){var a=i(e,r);a?a.clear():e.foldCode(t(r,0),l)}}}function c(e,t){"mode"==t&&f(e)}function f(e){var t=e.state.foldGutter;if(t){var r=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){s(e)}),r.foldOnChangeTimeSpan||600)}}function d(e){var t=e.state.foldGutter;if(t){var r=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){var r=e.getViewport();t.from==t.to||r.from-t.to>20||t.from-r.to>20?s(e):e.operation((function(){r.fromt.to&&(l(e,t.to,r.to),t.to=r.to)}))}),r.updateViewportTimeSpan||400)}}function h(e,t){var r=e.state.foldGutter;if(r){var n=t.line;n>=r.from&&n2),v=/Android/.test(e),y=m||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=m||/Mac/.test(t),w=/\bCrOS\b/.test(e),x=/win/i.test(t),C=d&&e.match(/Version\/(\d*\.\d*)/);C&&(C=Number(C[1])),C&&C>=15&&(d=!1,s=!0);var k=b&&(u||d&&(null==C||C<12.11)),S=r||l&&a>=9;function L(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var T,M=function(e,t){var r=e.className,n=L(t).exec(r);if(n){var i=r.slice(n.index+n[0].length);e.className=r.slice(0,n.index)+(i?n[1]+i:"")}};function N(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function O(e,t){return N(e).appendChild(t)}function A(e,t,r,n){var i=document.createElement(e);if(r&&(i.className=r),n&&(i.style.cssText=n),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return l+(t-o);l+=a-o,l+=r-l%r,o=a+1}}m?P=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:l&&(P=function(e){try{e.select()}catch(e){}});var V=function(){this.id=null,this.f=null,this.time=0,this.handler=R(this.onTimeout,this)};function G(e,t){for(var r=0;r=t)return n+Math.min(l,t-i);if(i+=o-n,n=o+1,(i+=r-i%r)>=t)return n}}var q=[""];function Z(e){for(;q.length<=e;)q.push(J(q)+" ");return q[e]}function J(e){return e[e.length-1]}function Q(e,t){for(var r=[],n=0;n"€"&&(e.toUpperCase()!=e.toLowerCase()||ne.test(e))}function oe(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ie(e))||t.test(e):ie(e)}function le(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ae=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function se(e){return e.charCodeAt(0)>=768&&ae.test(e)}function ue(e,t,r){for(;(r<0?t>0:tr?-1:1;;){if(t==r)return t;var i=(t+r)/2,o=n<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:r;e(o)?r=o:t=o+n}}function fe(e,t,r,n){if(!e)return n(t,r,"ltr",0);for(var i=!1,o=0;ot||t==r&&l.to==t)&&(n(Math.max(l.from,t),Math.min(l.to,r),1==l.level?"rtl":"ltr",o),i=!0)}i||n(t,r,"ltr")}var de=null;function he(e,t,r){var n;de=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&"before"==r?n=i:de=i),o.from==t&&(o.from!=o.to&&"before"!=r?n=i:de=i)}return null!=n?n:de}var pe=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function r(r){return r<=247?e.charAt(r):1424<=r&&r<=1524?"R":1536<=r&&r<=1785?t.charAt(r-1536):1774<=r&&r<=2220?"r":8192<=r&&r<=8203?"w":8204==r?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,l=/[Lb1n]/,a=/[1n]/;function s(e,t,r){this.level=e,this.from=t,this.to=r}return function(e,t){var u="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!n.test(e))return!1;for(var c=e.length,f=[],d=0;d-1&&(n[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function we(e,t){var r=ye(e,t);if(r.length)for(var n=Array.prototype.slice.call(arguments,2),i=0;i0}function Se(e){e.prototype.on=function(e,t){ve(this,e,t)},e.prototype.off=function(e,t){be(this,e,t)}}function Le(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Te(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Me(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Ne(e){Le(e),Te(e)}function Oe(e){return e.target||e.srcElement}function Ae(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),b&&e.ctrlKey&&1==t&&(t=3),t}var De,We,He=function(){if(l&&a<9)return!1;var e=A("div");return"draggable"in e||"dragDrop"in e}();function Fe(e){if(null==De){var t=A("span","​");O(e,A("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(De=t.offsetWidth<=1&&t.offsetHeight>2&&!(l&&a<8))}var r=De?A("span","​"):A("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}function Ee(e){if(null!=We)return We;var t=O(e,document.createTextNode("AخA")),r=T(t,0,1).getBoundingClientRect(),n=T(t,1,2).getBoundingClientRect();return N(e),!(!r||r.left==r.right)&&(We=n.right-r.right<3)}var Pe,ze=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,r=[],n=e.length;t<=n;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),l=o.indexOf("\r");-1!=l?(r.push(o.slice(0,l)),t+=l+1):(r.push(o),t=i+1)}return r}:function(e){return e.split(/\r\n?|\n/)},Ie=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Re="oncopy"in(Pe=A("div"))||(Pe.setAttribute("oncopy","return;"),"function"==typeof Pe.oncopy),Be=null;function je(e){if(null!=Be)return Be;var t=O(e,A("span","x")),r=t.getBoundingClientRect(),n=T(t,0,1).getBoundingClientRect();return Be=Math.abs(r.left-n.left)>1}var Ve={},Ge={};function Ue(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ve[e]=t}function _e(e,t){Ge[e]=t}function Ke(e){if("string"==typeof e&&Ge.hasOwnProperty(e))e=Ge[e];else if(e&&"string"==typeof e.name&&Ge.hasOwnProperty(e.name)){var t=Ge[e.name];"string"==typeof t&&(t={name:t}),(e=re(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ke("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ke("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Xe(e,t){t=Ke(t);var r=Ve[t.name];if(!r)return Xe(e,"text/plain");var n=r(e,t);if($e.hasOwnProperty(t.name)){var i=$e[t.name];for(var o in i)i.hasOwnProperty(o)&&(n.hasOwnProperty(o)&&(n["_"+o]=n[o]),n[o]=i[o])}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var l in t.modeProps)n[l]=t.modeProps[l];return n}var $e={};function Ye(e,t){B(t,$e.hasOwnProperty(e)?$e[e]:$e[e]={})}function qe(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var r={};for(var n in t){var i=t[n];i instanceof Array&&(i=i.concat([])),r[n]=i}return r}function Ze(e,t){for(var r;e.innerMode&&(r=e.innerMode(t))&&r.mode!=e;)t=r.state,e=r.mode;return r||{mode:e,state:t}}function Je(e,t,r){return!e.startState||e.startState(t,r)}var Qe=function(e,t,r){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=r};function et(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var r=e;!r.lines;)for(var n=0;;++n){var i=r.children[n],o=i.chunkSize();if(t=e.first&&tr?st(r,et(e,r).text.length):mt(t,et(e,t.line).text.length)}function mt(e,t){var r=e.ch;return null==r||r>t?st(e.line,t):r<0?st(e.line,0):e}function vt(e,t){for(var r=[],n=0;n=this.string.length},Qe.prototype.sol=function(){return this.pos==this.lineStart},Qe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Qe.prototype.next=function(){if(this.post},Qe.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Qe.prototype.skipToEnd=function(){this.pos=this.string.length},Qe.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Qe.prototype.backUp=function(e){this.pos-=e},Qe.prototype.column=function(){return this.lastColumnPos0?null:(n&&!1!==t&&(this.pos+=n[0].length),n)}var i=function(e){return r?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},Qe.prototype.current=function(){return this.string.slice(this.start,this.pos)},Qe.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Qe.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Qe.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var yt=function(e,t){this.state=e,this.lookAhead=t},bt=function(e,t,r,n){this.state=t,this.doc=e,this.line=r,this.maxLookAhead=n||0,this.baseTokens=null,this.baseTokenPos=1};function wt(e,t,r,n){var i=[e.state.modeGen],o={};Ot(e,t.text,e.doc.mode,r,(function(e,t){return i.push(e,t)}),o,n);for(var l=r.state,a=function(n){r.baseTokens=i;var a=e.state.overlays[n],s=1,u=0;r.state=!0,Ot(e,t.text,a.mode,r,(function(e,t){for(var r=s;ue&&i.splice(s,1,e,i[s+1],n),s+=2,u=Math.min(e,n)}if(t)if(a.opaque)i.splice(r,s-r,e,"overlay "+t),s=r+2;else for(;re.options.maxHighlightLength&&qe(e.doc.mode,n.state),o=wt(e,t,n);i&&(n.state=i),t.stateAfter=n.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),r===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Ct(e,t,r){var n=e.doc,i=e.display;if(!n.mode.startState)return new bt(n,!0,t);var o=At(e,t,r),l=o>n.first&&et(n,o-1).stateAfter,a=l?bt.fromSaved(n,l,o):new bt(n,Je(n.mode),o);return n.iter(o,t,(function(r){kt(e,r.text,a);var n=a.line;r.stateAfter=n==t-1||n%5==0||n>=i.viewFrom&&nt.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}bt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},bt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},bt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},bt.fromSaved=function(e,t,r){return t instanceof yt?new bt(e,qe(e.mode,t.state),r,t.lookAhead):new bt(e,qe(e.mode,t),r)},bt.prototype.save=function(e){var t=!1!==e?qe(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new yt(t,this.maxLookAhead):t};var Tt=function(e,t,r){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=r};function Mt(e,t,r,n){var i,o,l=e.doc,a=l.mode,s=et(l,(t=gt(l,t)).line),u=Ct(e,t.line,r),c=new Qe(s.text,e.options.tabSize,u);for(n&&(o=[]);(n||c.pose.options.maxHighlightLength?(a=!1,l&&kt(e,t,n,f.pos),f.pos=t.length,s=null):s=Nt(Lt(r,f,n.state,d),o),d){var h=d[0].name;h&&(s="m-"+(s?h+" "+s:h))}if(!a||c!=s){for(;ul;--a){if(a<=o.first)return o.first;var s=et(o,a-1),u=s.stateAfter;if(u&&(!r||a+(u instanceof yt?u.lookAhead:0)<=o.modeFrontier))return a;var c=j(s.text,null,e.options.tabSize);(null==i||n>c)&&(i=a-1,n=c)}return i}function Dt(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontierr;n--){var i=et(e,n).stateAfter;if(i&&(!(i instanceof yt)||n+i.lookAhead=t:o.to>t);(n||(n=[])).push(new Pt(l,o.from,a?null:o.to))}}return n}function jt(e,t,r){var n;if(e)for(var i=0;i=t:o.to>t)||o.from==t&&"bookmark"==l.type&&(!r||o.marker.insertLeft)){var a=null==o.from||(l.inclusiveLeft?o.from<=t:o.from0&&a)for(var b=0;b0)){var c=[s,1],f=ut(u.from,a.from),d=ut(u.to,a.to);(f<0||!l.inclusiveLeft&&!f)&&c.push({from:u.from,to:a.from}),(d>0||!l.inclusiveRight&&!d)&&c.push({from:a.to,to:u.to}),i.splice.apply(i,c),s+=c.length-3}}return i}function _t(e){var t=e.markedSpans;if(t){for(var r=0;rt)&&(!r||Yt(r,o.marker)<0)&&(r=o.marker)}return r}function er(e,t,r,n,i){var o=et(e,t),l=Ht&&o.markedSpans;if(l)for(var a=0;a=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?ut(u.to,r)>=0:ut(u.to,r)>0)||c>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?ut(u.from,n)<=0:ut(u.from,n)<0)))return!0}}}function tr(e){for(var t;t=Zt(e);)e=t.find(-1,!0).line;return e}function rr(e){for(var t;t=Jt(e);)e=t.find(1,!0).line;return e}function nr(e){for(var t,r;t=Jt(e);)e=t.find(1,!0).line,(r||(r=[])).push(e);return r}function ir(e,t){var r=et(e,t),n=tr(r);return r==n?t:it(n)}function or(e,t){if(t>e.lastLine())return t;var r,n=et(e,t);if(!lr(e,n))return t;for(;r=Jt(n);)n=r.find(1,!0).line;return it(n)+1}function lr(e,t){var r=Ht&&t.markedSpans;if(r)for(var n=void 0,i=0;it.maxLineLength&&(t.maxLineLength=r,t.maxLine=e)}))}var fr=function(e,t,r){this.text=e,Kt(this,t),this.height=r?r(this):1};function dr(e,t,r,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),_t(e),Kt(e,r);var i=n?n(e):1;i!=e.height&&nt(e,i)}function hr(e){e.parent=null,_t(e)}fr.prototype.lineNo=function(){return it(this)},Se(fr);var pr={},gr={};function mr(e,t){if(!e||/^\s*$/.test(e))return null;var r=t.addModeClass?gr:pr;return r[e]||(r[e]=e.replace(/\S+/g,"cm-$&"))}function vr(e,t){var r=D("span",null,null,s?"padding-right: .1px":null),n={pre:D("pre",[r],"CodeMirror-line"),content:r,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,l=void 0;n.pos=0,n.addToken=br,Ee(e.display.measure)&&(l=ge(o,e.doc.direction))&&(n.addToken=xr(n.addToken,l)),n.map=[],kr(o,n,xt(e,o,t!=e.display.externalMeasured&&it(o))),o.styleClasses&&(o.styleClasses.bgClass&&(n.bgClass=E(o.styleClasses.bgClass,n.bgClass||"")),o.styleClasses.textClass&&(n.textClass=E(o.styleClasses.textClass,n.textClass||""))),0==n.map.length&&n.map.push(0,0,n.content.appendChild(Fe(e.display.measure))),0==i?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(s){var a=n.content.lastChild;(/\bcm-tab\b/.test(a.className)||a.querySelector&&a.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return we(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=E(n.pre.className,n.textClass||"")),n}function yr(e){var t=A("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function br(e,t,r,n,i,o,s){if(t){var u,c=e.splitSpaces?wr(t,e.trailingSpace):t,f=e.cm.state.specialChars,d=!1;if(f.test(t)){u=document.createDocumentFragment();for(var h=0;;){f.lastIndex=h;var p=f.exec(t),g=p?p.index-h:t.length-h;if(g){var m=document.createTextNode(c.slice(h,h+g));l&&a<9?u.appendChild(A("span",[m])):u.appendChild(m),e.map.push(e.pos,e.pos+g,m),e.col+=g,e.pos+=g}if(!p)break;h+=g+1;var v=void 0;if("\t"==p[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(v=u.appendChild(A("span",Z(b),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=b}else"\r"==p[0]||"\n"==p[0]?((v=u.appendChild(A("span","\r"==p[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",p[0]),e.col+=1):((v=e.cm.options.specialCharPlaceholder(p[0])).setAttribute("cm-text",p[0]),l&&a<9?u.appendChild(A("span",[v])):u.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,u=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,u),l&&a<9&&(d=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),r||n||i||d||o||s){var w=r||"";n&&(w+=n),i&&(w+=i);var x=A("span",[u],w,o);if(s)for(var C in s)s.hasOwnProperty(C)&&"style"!=C&&"class"!=C&&x.setAttribute(C,s[C]);return e.content.appendChild(x)}e.content.appendChild(u)}}function wr(e,t){if(e.length>1&&!/ /.test(e))return e;for(var r=t,n="",i=0;iu&&f.from<=u);d++);if(f.to>=c)return e(r,n,i,o,l,a,s);e(r,n.slice(0,f.to-u),i,o,null,a,s),o=null,n=n.slice(f.to-u),u=f.to}}}function Cr(e,t,r,n){var i=!n&&r.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!n&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",r.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function kr(e,t,r){var n=e.markedSpans,i=e.text,o=0;if(n)for(var l,a,s,u,c,f,d,h=i.length,p=0,g=1,m="",v=0;;){if(v==p){s=u=c=a="",d=null,f=null,v=1/0;for(var y=[],b=void 0,w=0;wp||C.collapsed&&x.to==p&&x.from==p)){if(null!=x.to&&x.to!=p&&v>x.to&&(v=x.to,u=""),C.className&&(s+=" "+C.className),C.css&&(a=(a?a+";":"")+C.css),C.startStyle&&x.from==p&&(c+=" "+C.startStyle),C.endStyle&&x.to==v&&(b||(b=[])).push(C.endStyle,x.to),C.title&&((d||(d={})).title=C.title),C.attributes)for(var k in C.attributes)(d||(d={}))[k]=C.attributes[k];C.collapsed&&(!f||Yt(f.marker,C)<0)&&(f=x)}else x.from>p&&v>x.from&&(v=x.from)}if(b)for(var S=0;S=h)break;for(var T=Math.min(h,v);;){if(m){var M=p+m.length;if(!f){var N=M>T?m.slice(0,T-p):m;t.addToken(t,N,l?l+s:s,c,p+N.length==v?u:"",a,d)}if(M>=T){m=m.slice(T-p),p=T;break}p=M,c=""}m=i.slice(o,o=r[g++]),l=mr(r[g++],t.cm.options)}}else for(var O=1;O2&&o.push((s.bottom+u.top)/2-r.top)}}o.push(r.bottom-r.top)}}function en(e,t,r){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var n=0;nr)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function tn(e,t){var r=it(t=tr(t)),n=e.display.externalMeasured=new Sr(e.doc,t,r);n.lineN=r;var i=n.built=vr(e,n);return n.text=i.pre,O(e.display.lineMeasure,i.pre),n}function rn(e,t,r,n){return ln(e,on(e,t),r,n)}function nn(e,t){if(t>=e.display.viewFrom&&t=r.lineN&&tt)&&(i=(o=s-a)-1,t>=s&&(l="right")),null!=i){if(n=e[u+2],a==s&&r==(n.insertLeft?"left":"right")&&(l=r),"left"==r&&0==i)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)n=e[2+(u-=3)],l="left";if("right"==r&&i==s-a)for(;u=0&&(r=e[i]).left==r.right;i--);return r}function fn(e,t,r,n){var i,o=un(t.map,r,n),s=o.node,u=o.start,c=o.end,f=o.collapse;if(3==s.nodeType){for(var d=0;d<4;d++){for(;u&&se(t.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c0&&(f=n="right"),i=e.options.lineWrapping&&(h=s.getClientRects()).length>1?h["right"==n?h.length-1:0]:s.getBoundingClientRect()}if(l&&a<9&&!u&&(!i||!i.left&&!i.right)){var p=s.parentNode.getClientRects()[0];i=p?{left:p.left,right:p.left+Hn(e.display),top:p.top,bottom:p.bottom}:sn}for(var g=i.top-t.rect.top,m=i.bottom-t.rect.top,v=(g+m)/2,y=t.view.measure.heights,b=0;b=n.text.length?(s=n.text.length,u="before"):s<=0&&(s=0,u="after"),!a)return l("before"==u?s-1:s,"before"==u);function c(e,t,r){return l(r?e-1:e,1==a[t].level!=r)}var f=he(a,s,u),d=de,h=c(s,f,"before"==u);return null!=d&&(h.other=c(s,d,"before"!=u)),h}function kn(e,t){var r=0;t=gt(e.doc,t),e.options.lineWrapping||(r=Hn(e.display)*t.ch);var n=et(e.doc,t.line),i=sr(n)+Xr(e.display);return{left:r,right:r,top:i,bottom:i+n.height}}function Sn(e,t,r,n,i){var o=st(e,t,r);return o.xRel=i,n&&(o.outside=n),o}function Ln(e,t,r){var n=e.doc;if((r+=e.display.viewOffset)<0)return Sn(n.first,0,null,-1,-1);var i=ot(n,r),o=n.first+n.size-1;if(i>o)return Sn(n.first+n.size-1,et(n,o).text.length,null,1,1);t<0&&(t=0);for(var l=et(n,i);;){var a=On(e,l,i,t,r),s=Qt(l,a.ch+(a.xRel>0||a.outside>0?1:0));if(!s)return a;var u=s.find(1);if(u.line==i)return u;l=et(n,i=u.line)}}function Tn(e,t,r,n){n-=yn(t);var i=t.text.length,o=ce((function(t){return ln(e,r,t-1).bottom<=n}),i,0);return{begin:o,end:i=ce((function(t){return ln(e,r,t).top>n}),o,i)}}function Mn(e,t,r,n){return r||(r=on(e,t)),Tn(e,t,r,bn(e,t,ln(e,r,n),"line").top)}function Nn(e,t,r,n){return!(e.bottom<=r)&&(e.top>r||(n?e.left:e.right)>t)}function On(e,t,r,n,i){i-=sr(t);var o=on(e,t),l=yn(t),a=0,s=t.text.length,u=!0,c=ge(t,e.doc.direction);if(c){var f=(e.options.lineWrapping?Dn:An)(e,t,r,o,c,n,i);a=(u=1!=f.level)?f.from:f.to-1,s=u?f.to:f.from-1}var d,h,p=null,g=null,m=ce((function(t){var r=ln(e,o,t);return r.top+=l,r.bottom+=l,!!Nn(r,n,i,!1)&&(r.top<=i&&r.left<=n&&(p=t,g=r),!0)}),a,s),v=!1;if(g){var y=n-g.left=w.bottom?1:0}return Sn(r,m=ue(t.text,m,1),h,v,n-d)}function An(e,t,r,n,i,o,l){var a=ce((function(a){var s=i[a],u=1!=s.level;return Nn(Cn(e,st(r,u?s.to:s.from,u?"before":"after"),"line",t,n),o,l,!0)}),0,i.length-1),s=i[a];if(a>0){var u=1!=s.level,c=Cn(e,st(r,u?s.from:s.to,u?"after":"before"),"line",t,n);Nn(c,o,l,!0)&&c.top>l&&(s=i[a-1])}return s}function Dn(e,t,r,n,i,o,l){var a=Tn(e,t,n,l),s=a.begin,u=a.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,f=null,d=0;d=u||h.to<=s)){var p=ln(e,n,1!=h.level?Math.min(u,h.to)-1:Math.max(s,h.from)).right,g=pg)&&(c=h,f=g)}}return c||(c=i[i.length-1]),c.fromu&&(c={from:c.from,to:u,level:c.level}),c}function Wn(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==an){an=A("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)an.appendChild(document.createTextNode("x")),an.appendChild(A("br"));an.appendChild(document.createTextNode("x"))}O(e.measure,an);var r=an.offsetHeight/50;return r>3&&(e.cachedTextHeight=r),N(e.measure),r||1}function Hn(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=A("span","xxxxxxxxxx"),r=A("pre",[t],"CodeMirror-line-like");O(e.measure,r);var n=t.getBoundingClientRect(),i=(n.right-n.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Fn(e){for(var t=e.display,r={},n={},i=t.gutters.clientLeft,o=t.gutters.firstChild,l=0;o;o=o.nextSibling,++l){var a=e.display.gutterSpecs[l].className;r[a]=o.offsetLeft+o.clientLeft+i,n[a]=o.clientWidth}return{fixedPos:En(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:r,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function En(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Pn(e){var t=Wn(e.display),r=e.options.lineWrapping,n=r&&Math.max(5,e.display.scroller.clientWidth/Hn(e.display)-3);return function(i){if(lr(e.doc,i))return 0;var o=0;if(i.widgets)for(var l=0;l0&&(s=et(e.doc,u.line).text).length==u.ch){var c=j(s,s.length,e.options.tabSize)-s.length;u=st(u.line,Math.max(0,Math.round((o-Yr(e.display).left)/Hn(e.display))-c))}return u}function Rn(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var r=e.display.view,n=0;nt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Ht&&ir(e.doc,t)i.viewFrom?Vn(e):(i.viewFrom+=n,i.viewTo+=n);else if(t<=i.viewFrom&&r>=i.viewTo)Vn(e);else if(t<=i.viewFrom){var o=Gn(e,r,r+n,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=n):Vn(e)}else if(r>=i.viewTo){var l=Gn(e,t,t,-1);l?(i.view=i.view.slice(0,l.index),i.viewTo=l.lineN):Vn(e)}else{var a=Gn(e,t,t,-1),s=Gn(e,r,r+n,1);a&&s?(i.view=i.view.slice(0,a.index).concat(Lr(e,a.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=n):Vn(e)}var u=i.externalMeasured;u&&(r=i.lineN&&t=n.viewTo)){var o=n.view[Rn(e,t)];if(null!=o.node){var l=o.changes||(o.changes=[]);-1==G(l,r)&&l.push(r)}}}function Vn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Gn(e,t,r,n){var i,o=Rn(e,t),l=e.display.view;if(!Ht||r==e.doc.first+e.doc.size)return{index:o,lineN:r};for(var a=e.display.viewFrom,s=0;s0){if(o==l.length-1)return null;i=a+l[o].size-t,o++}else i=a-t;t+=i,r+=i}for(;ir(e.doc,r)!=r;){if(o==(n<0?0:l.length-1))return null;r+=n*l[o-(n<0?1:0)].size,o+=n}return{index:o,lineN:r}}function Un(e,t,r){var n=e.display;0==n.view.length||t>=n.viewTo||r<=n.viewFrom?(n.view=Lr(e,t,r),n.viewFrom=t):(n.viewFrom>t?n.view=Lr(e,t,n.viewFrom).concat(n.view):n.viewFromr&&(n.view=n.view.slice(0,Rn(e,r)))),n.viewTo=r}function _n(e){for(var t=e.display.view,r=0,n=0;n=e.display.viewTo||s.to().line0?l:e.defaultCharWidth())+"px"}if(n.other){var a=r.appendChild(A("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));a.style.display="",a.style.left=n.other.left+"px",a.style.top=n.other.top+"px",a.style.height=.85*(n.other.bottom-n.other.top)+"px"}}function Yn(e,t){return e.top-t.top||e.left-t.left}function qn(e,t,r){var n=e.display,i=e.doc,o=document.createDocumentFragment(),l=Yr(e.display),a=l.left,s=Math.max(n.sizerWidth,Zr(e)-n.sizer.offsetLeft)-l.right,u="ltr"==i.direction;function c(e,t,r,n){t<0&&(t=0),t=Math.round(t),n=Math.round(n),o.appendChild(A("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==r?s-e:r)+"px;\n height: "+(n-t)+"px"))}function f(t,r,n){var o,l,f=et(i,t),d=f.text.length;function h(r,n){return xn(e,st(t,r),"div",f,n)}function p(t,r,n){var i=Mn(e,f,null,t),o="ltr"==r==("after"==n)?"left":"right";return h("after"==n?i.begin:i.end-(/\s/.test(f.text.charAt(i.end-1))?2:1),o)[o]}var g=ge(f,i.direction);return fe(g,r||0,null==n?d:n,(function(e,t,i,f){var m="ltr"==i,v=h(e,m?"left":"right"),y=h(t-1,m?"right":"left"),b=null==r&&0==e,w=null==n&&t==d,x=0==f,C=!g||f==g.length-1;if(y.top-v.top<=3){var k=(u?w:b)&&C,S=(u?b:w)&&x?a:(m?v:y).left,L=k?s:(m?y:v).right;c(S,v.top,L-S,v.bottom)}else{var T,M,N,O;m?(T=u&&b&&x?a:v.left,M=u?s:p(e,i,"before"),N=u?a:p(t,i,"after"),O=u&&w&&C?s:y.right):(T=u?p(e,i,"before"):a,M=!u&&b&&x?s:v.right,N=!u&&w&&C?a:y.left,O=u?p(t,i,"after"):s),c(T,v.top,M-T,v.bottom),v.bottom0?t.blinker=setInterval((function(){e.hasFocus()||ti(e),t.cursorDiv.style.visibility=(r=!r)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Jn(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||ei(e))}function Qn(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&ti(e))}),100)}function ei(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(we(e,"focus",e,t),e.state.focused=!0,F(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),s&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Zn(e))}function ti(e,t){e.state.delayingBlurEvent||(e.state.focused&&(we(e,"blur",e,t),e.state.focused=!1,M(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function ri(e){for(var t=e.display,r=t.lineDiv.offsetTop,n=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,s=0;s.005||g<-.005)&&(ie.display.sizerWidth){var v=Math.ceil(d/Hn(e.display));v>e.display.maxLineLength&&(e.display.maxLineLength=v,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function ni(e){if(e.widgets)for(var t=0;t=l&&(o=ot(t,sr(et(t,s))-e.wrapper.clientHeight),l=s)}return{from:o,to:Math.max(l,o+1)}}function oi(e,t){if(!xe(e,"scrollCursorIntoView")){var r=e.display,n=r.sizer.getBoundingClientRect(),i=null,o=r.wrapper.ownerDocument;if(t.top+n.top<0?i=!0:t.bottom+n.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(i=!1),null!=i&&!g){var l=A("div","​",null,"position: absolute;\n top: "+(t.top-r.viewOffset-Xr(e.display))+"px;\n height: "+(t.bottom-t.top+qr(e)+r.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(l),l.scrollIntoView(i),e.display.lineSpace.removeChild(l)}}}function li(e,t,r,n){var i;null==n&&(n=0),e.options.lineWrapping||t!=r||(r="before"==t.sticky?st(t.line,t.ch+1,"before"):t,t=t.ch?st(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var l=!1,a=Cn(e,t),s=r&&r!=t?Cn(e,r):a,u=si(e,i={left:Math.min(a.left,s.left),top:Math.min(a.top,s.top)-n,right:Math.max(a.left,s.left),bottom:Math.max(a.bottom,s.bottom)+n}),c=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=u.scrollTop&&(gi(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(l=!0)),null!=u.scrollLeft&&(vi(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(l=!0)),!l)break}return i}function ai(e,t){var r=si(e,t);null!=r.scrollTop&&gi(e,r.scrollTop),null!=r.scrollLeft&&vi(e,r.scrollLeft)}function si(e,t){var r=e.display,n=Wn(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:r.scroller.scrollTop,o=Jr(e),l={};t.bottom-t.top>o&&(t.bottom=t.top+o);var a=e.doc.height+$r(r),s=t.topa-n;if(t.topi+o){var c=Math.min(t.top,(u?a:t.bottom)-o);c!=i&&(l.scrollTop=c)}var f=e.options.fixedGutter?0:r.gutters.offsetWidth,d=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:r.scroller.scrollLeft-f,h=Zr(e)-r.gutters.offsetWidth,p=t.right-t.left>h;return p&&(t.right=t.left+h),t.left<10?l.scrollLeft=0:t.lefth+d-3&&(l.scrollLeft=t.right+(p?0:10)-h),l}function ui(e,t){null!=t&&(hi(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function ci(e){hi(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function fi(e,t,r){null==t&&null==r||hi(e),null!=t&&(e.curOp.scrollLeft=t),null!=r&&(e.curOp.scrollTop=r)}function di(e,t){hi(e),e.curOp.scrollToPos=t}function hi(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,pi(e,kn(e,t.from),kn(e,t.to),t.margin))}function pi(e,t,r,n){var i=si(e,{left:Math.min(t.left,r.left),top:Math.min(t.top,r.top)-n,right:Math.max(t.right,r.right),bottom:Math.max(t.bottom,r.bottom)+n});fi(e,i.scrollLeft,i.scrollTop)}function gi(e,t){Math.abs(e.doc.scrollTop-t)<2||(r||Ki(e,{top:t}),mi(e,t,!0),r&&Ki(e),Ii(e,100))}function mi(e,t,r){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||r)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function vi(e,t,r,n){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(r?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n||(e.doc.scrollLeft=t,qi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function yi(e){var t=e.display,r=t.gutters.offsetWidth,n=Math.round(e.doc.height+$r(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?r:0,docHeight:n,scrollHeight:n+qr(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:r}}var bi=function(e,t,r){this.cm=r;var n=this.vert=A("div",[A("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=A("div",[A("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=i.tabIndex=-1,e(n),e(i),ve(n,"scroll",(function(){n.clientHeight&&t(n.scrollTop,"vertical")})),ve(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,l&&a<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};bi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(r){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var i=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=r?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(r?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==n&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:r?n:0,bottom:t?n:0}},bi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},bi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},bi.prototype.zeroWidthHack=function(){var e=b&&!p?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new V,this.disableVert=new V},bi.prototype.enableZeroWidthBar=function(e,t,r){function n(){var i=e.getBoundingClientRect();("vert"==r?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.visibility="hidden":t.set(1e3,n)}e.style.visibility="",t.set(1e3,n)},bi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var wi=function(){};function xi(e,t){t||(t=yi(e));var r=e.display.barWidth,n=e.display.barHeight;Ci(e,t);for(var i=0;i<4&&r!=e.display.barWidth||n!=e.display.barHeight;i++)r!=e.display.barWidth&&e.options.lineWrapping&&ri(e),Ci(e,yi(e)),r=e.display.barWidth,n=e.display.barHeight}function Ci(e,t){var r=e.display,n=r.scrollbars.update(t);r.sizer.style.paddingRight=(r.barWidth=n.right)+"px",r.sizer.style.paddingBottom=(r.barHeight=n.bottom)+"px",r.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(r.scrollbarFiller.style.display="block",r.scrollbarFiller.style.height=n.bottom+"px",r.scrollbarFiller.style.width=n.right+"px"):r.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(r.gutterFiller.style.display="block",r.gutterFiller.style.height=n.bottom+"px",r.gutterFiller.style.width=t.gutterWidth+"px"):r.gutterFiller.style.display=""}wi.prototype.update=function(){return{bottom:0,right:0}},wi.prototype.setScrollLeft=function(){},wi.prototype.setScrollTop=function(){},wi.prototype.clear=function(){};var ki={native:bi,null:wi};function Si(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&M(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new ki[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),ve(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,r){"horizontal"==r?vi(e,t):gi(e,t)}),e),e.display.scrollbars.addClass&&F(e.display.wrapper,e.display.scrollbars.addClass)}var Li=0;function Ti(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Li,markArrays:null},Mr(e.curOp)}function Mi(e){var t=e.curOp;t&&Or(t,(function(e){for(var t=0;t=r.viewTo)||r.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Bi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Ai(e){e.updatedDisplay=e.mustUpdate&&Ui(e.cm,e.update)}function Di(e){var t=e.cm,r=t.display;e.updatedDisplay&&ri(t),e.barMeasure=yi(t),r.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=rn(t,r.maxLine,r.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(r.scroller.clientWidth,r.sizer.offsetLeft+e.adjustWidthTo+qr(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,r.sizer.offsetLeft+e.adjustWidthTo-Zr(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=r.input.prepareSelection())}function Wi(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var r=+new Date+e.options.workTime,n=Ct(e,t.highlightFrontier),i=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(n.line>=e.display.viewFrom){var l=o.styles,a=o.text.length>e.options.maxHighlightLength?qe(t.mode,n.state):null,s=wt(e,o,n,!0);a&&(n.state=a),o.styles=s.styles;var u=o.styleClasses,c=s.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var f=!l||l.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),d=0;!f&&dr)return Ii(e,e.options.workDelay),!0})),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),i.length&&Fi(e,(function(){for(var t=0;t=r.viewFrom&&t.visible.to<=r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&0==_n(e))return!1;Zi(e)&&(Vn(e),t.dims=Fn(e));var i=n.first+n.size,o=Math.max(t.visible.from-e.options.viewportMargin,n.first),l=Math.min(i,t.visible.to+e.options.viewportMargin);r.viewFroml&&r.viewTo-l<20&&(l=Math.min(i,r.viewTo)),Ht&&(o=ir(e.doc,o),l=or(e.doc,l));var a=o!=r.viewFrom||l!=r.viewTo||r.lastWrapHeight!=t.wrapperHeight||r.lastWrapWidth!=t.wrapperWidth;Un(e,o,l),r.viewOffset=sr(et(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var s=_n(e);if(!a&&0==s&&!t.force&&r.renderedView==r.view&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo))return!1;var u=Vi(e);return s>4&&(r.lineDiv.style.display="none"),Xi(e,r.updateLineNumbers,t.dims),s>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,Gi(u),N(r.cursorDiv),N(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,a&&(r.lastWrapHeight=t.wrapperHeight,r.lastWrapWidth=t.wrapperWidth,Ii(e,400)),r.updateLineNumbers=null,!0}function _i(e,t){for(var r=t.viewport,n=!0;;n=!1){if(n&&e.options.lineWrapping&&t.oldDisplayWidth!=Zr(e))n&&(t.visible=ii(e.display,e.doc,r));else if(r&&null!=r.top&&(r={top:Math.min(e.doc.height+$r(e.display)-Jr(e),r.top)}),t.visible=ii(e.display,e.doc,r),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!Ui(e,t))break;ri(e);var i=yi(e);Kn(e),xi(e,i),Yi(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Ki(e,t){var r=new Bi(e,t);if(Ui(e,r)){ri(e),_i(e,r);var n=yi(e);Kn(e),xi(e,n),Yi(e,n),r.finish()}}function Xi(e,t,r){var n=e.display,i=e.options.lineNumbers,o=n.lineDiv,l=o.firstChild;function a(t){var r=t.nextSibling;return s&&b&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),r}for(var u=n.view,c=n.viewFrom,f=0;f-1&&(h=!1),Hr(e,d,c,r)),h&&(N(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(at(e.options,c)))),l=d.node.nextSibling}else{var p=jr(e,d,c,r);o.insertBefore(p,l)}c+=d.size}for(;l;)l=a(l)}function $i(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",Dr(e,"gutterChanged",e)}function Yi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+qr(e)+"px"}function qi(e){var t=e.display,r=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var n=En(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=n+"px",l=0;l=105&&(o.wrapper.style.clipPath="inset(0px)"),o.wrapper.setAttribute("translate","no"),l&&a<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),s||r&&y||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=Ji(i.gutters,i.lineNumbers),Qi(o),n.init(o)}Bi.prototype.signal=function(e,t){ke(e,t)&&this.events.push(arguments)},Bi.prototype.finish=function(){for(var e=0;eu.clientWidth,p=u.scrollHeight>u.clientHeight;if(i&&h||o&&p){if(o&&b&&s)e:for(var g=t.target,m=a.view;g!=u;g=g.parentNode)for(var v=0;v=0&&ut(e,n.to())<=0)return r}return-1};var so=function(e,t){this.anchor=e,this.head=t};function uo(e,t,r){var n=e&&e.options.selectionsMayTouch,i=t[r];t.sort((function(e,t){return ut(e.from(),t.from())})),r=G(t,i);for(var o=1;o0:s>=0){var u=ht(a.from(),l.from()),c=dt(a.to(),l.to()),f=a.empty()?l.from()==l.head:a.from()==a.head;o<=r&&--r,t.splice(--o,2,new so(f?c:u,f?u:c))}}return new ao(t,r)}function co(e,t){return new ao([new so(e,t||e)],0)}function fo(e){return e.text?st(e.from.line+e.text.length-1,J(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function ho(e,t){if(ut(e,t.from)<0)return e;if(ut(e,t.to)<=0)return fo(t);var r=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=fo(t).ch-t.to.ch),st(r,n)}function po(e,t){for(var r=[],n=0;n1&&e.remove(a.line+1,p-1),e.insert(a.line+1,v)}Dr(e,"change",e,t)}function xo(e,t,r){function n(e,i,o){if(e.linked)for(var l=0;l1&&!e.done[e.done.length-2].ranges?(e.done.pop(),J(e.done)):void 0}function Oo(e,t,r,n){var i=e.history;i.undone.length=0;var o,l,a=+new Date;if((i.lastOp==n||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>a-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=No(i,i.lastOp==n)))l=J(o.changes),0==ut(t.from,t.to)&&0==ut(t.from,l.to)?l.to=fo(t):o.changes.push(To(e,t));else{var s=J(i.done);for(s&&s.ranges||Wo(e.sel,i.done),o={changes:[To(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(r),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=a,i.lastOp=i.lastSelOp=n,i.lastOrigin=i.lastSelOrigin=t.origin,l||we(e,"historyAdded")}function Ao(e,t,r,n){var i=t.charAt(0);return"*"==i||"+"==i&&r.ranges.length==n.ranges.length&&r.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Do(e,t,r,n){var i=e.history,o=n&&n.origin;r==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||Ao(e,o,J(i.done),t))?i.done[i.done.length-1]=t:Wo(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=r,n&&!1!==n.clearRedo&&Mo(i.undone)}function Wo(e,t){var r=J(t);r&&r.ranges&&r.equals(e)||t.push(e)}function Ho(e,t,r,n){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,r),Math.min(e.first+e.size,n),(function(r){r.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=r.markedSpans),++o}))}function Fo(e){if(!e)return null;for(var t,r=0;r-1&&(J(a)[f]=u[f],delete u[f])}}}return n}function Io(e,t,r,n){if(n){var i=e.anchor;if(r){var o=ut(t,i)<0;o!=ut(r,i)<0?(i=t,t=r):o!=ut(t,r)<0&&(t=r)}return new so(i,t)}return new so(r||t,t)}function Ro(e,t,r,n,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),_o(e,new ao([Io(e.sel.primary(),t,r,i)],0),n)}function Bo(e,t,r){for(var n=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:a.to>t.ch))){if(i&&(we(s,"beforeCursorEnter"),s.explicitlyCleared)){if(o.markedSpans){--l;continue}break}if(!s.atomic)continue;if(r){var f=s.find(n<0?1:-1),d=void 0;if((n<0?c:u)&&(f=Jo(e,f,-n,f&&f.line==t.line?o:null)),f&&f.line==t.line&&(d=ut(f,r))&&(n<0?d<0:d>0))return qo(e,f,t,n,i)}var h=s.find(n<0?-1:1);return(n<0?u:c)&&(h=Jo(e,h,n,h.line==t.line?o:null)),h?qo(e,h,t,n,i):null}}return t}function Zo(e,t,r,n,i){var o=n||1,l=qo(e,t,r,o,i)||!i&&qo(e,t,r,o,!0)||qo(e,t,r,-o,i)||!i&&qo(e,t,r,-o,!0);return l||(e.cantEdit=!0,st(e.first,0))}function Jo(e,t,r,n){return r<0&&0==t.ch?t.line>e.first?gt(e,st(t.line-1)):null:r>0&&t.ch==(n||et(e,t.line)).text.length?t.line=0;--i)rl(e,{from:n[i].from,to:n[i].to,text:i?[""]:t.text,origin:t.origin});else rl(e,t)}}function rl(e,t){if(1!=t.text.length||""!=t.text[0]||0!=ut(t.from,t.to)){var r=po(e,t);Oo(e,t,r,e.cm?e.cm.curOp.id:NaN),ol(e,t,r,Vt(e,t));var n=[];xo(e,(function(e,r){r||-1!=G(n,e.history)||(cl(e.history,t),n.push(e.history)),ol(e,t,null,Vt(e,t))}))}}function nl(e,t,r){var n=e.cm&&e.cm.state.suppressEdits;if(!n||r){for(var i,o=e.history,l=e.sel,a="undo"==t?o.done:o.undone,s="undo"==t?o.undone:o.done,u=0;u=0;--h){var p=d(h);if(p)return p.v}}}}function il(e,t){if(0!=t&&(e.first+=t,e.sel=new ao(Q(e.sel.ranges,(function(e){return new so(st(e.anchor.line+t,e.anchor.ch),st(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){Bn(e.cm,e.first,e.first-t,t);for(var r=e.cm.display,n=r.viewFrom;ne.lastLine())){if(t.from.lineo&&(t={from:t.from,to:st(o,et(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=tt(e,t.from,t.to),r||(r=po(e,t)),e.cm?ll(e.cm,t,n):wo(e,t,n),Ko(e,r,K),e.cantEdit&&Zo(e,st(e.firstLine(),0))&&(e.cantEdit=!1)}}function ll(e,t,r){var n=e.doc,i=e.display,o=t.from,l=t.to,a=!1,s=o.line;e.options.lineWrapping||(s=it(tr(et(n,o.line))),n.iter(s,l.line+1,(function(e){if(e==i.maxLine)return a=!0,!0}))),n.sel.contains(t.from,t.to)>-1&&Ce(e),wo(n,t,r,Pn(e)),e.options.lineWrapping||(n.iter(s,o.line+t.text.length,(function(e){var t=ur(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,a=!1)})),a&&(e.curOp.updateMaxLine=!0)),Dt(n,o.line),Ii(e,400);var u=t.text.length-(l.line-o.line)-1;t.full?Bn(e):o.line!=l.line||1!=t.text.length||bo(e.doc,t)?Bn(e,o.line,l.line+1,u):jn(e,o.line,"text");var c=ke(e,"changes"),f=ke(e,"change");if(f||c){var d={from:o,to:l,text:t.text,removed:t.removed,origin:t.origin};f&&Dr(e,"change",e,d),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(d)}e.display.selForContextMenu=null}function al(e,t,r,n,i){var o;n||(n=r),ut(n,r)<0&&(r=(o=[n,r])[0],n=o[1]),"string"==typeof t&&(t=e.splitLines(t)),tl(e,{from:r,to:n,text:t,origin:i})}function sl(e,t,r,n){r1||!(this.children[0]instanceof dl))){var a=[];this.collapse(a),this.children=[new dl(a)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var l=i.lines.length%25+25,a=l;a10);e.parent.maybeSpill()}},iterN:function(e,t,r){for(var n=0;n0||0==l&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=D("span",[o.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(er(e,t.line,t,r,o)||t.line!=r.line&&er(e,r.line,t,r,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Et()}o.addToHistory&&Oo(e,{from:t,to:r,origin:"markText"},e.sel,NaN);var a,s=t.line,u=e.cm;if(e.iter(s,r.line+1,(function(n){u&&o.collapsed&&!u.options.lineWrapping&&tr(n)==u.display.maxLine&&(a=!0),o.collapsed&&s!=t.line&&nt(n,0),Rt(n,new Pt(o,s==t.line?t.ch:null,s==r.line?r.ch:null),e.cm&&e.cm.curOp),++s})),o.collapsed&&e.iter(t.line,r.line+1,(function(t){lr(e,t)&&nt(t,0)})),o.clearOnEnter&&ve(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(Ft(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++vl,o.atomic=!0),u){if(a&&(u.curOp.updateMaxLine=!0),o.collapsed)Bn(u,t.line,r.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=r.line;c++)jn(u,c,"text");o.atomic&&$o(u.doc),Dr(u,"markerAdded",u,o)}return o}yl.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Ti(e),ke(this,"clear")){var r=this.find();r&&Dr(this,"clear",r.from,r.to)}for(var n=null,i=null,o=0;oe.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=n&&e&&this.collapsed&&Bn(e,n,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&$o(e.doc)),e&&Dr(e,"markerCleared",e,this,n,i),t&&Mi(e),this.parent&&this.parent.clear()}},yl.prototype.find=function(e,t){var r,n;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i=0;s--)tl(this,n[s]);a?Uo(this,a):this.cm&&ci(this.cm)})),undo:zi((function(){nl(this,"undo")})),redo:zi((function(){nl(this,"redo")})),undoSelection:zi((function(){nl(this,"undo",!0)})),redoSelection:zi((function(){nl(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,r=0,n=0;n=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,r){e=gt(this,e),t=gt(this,t);var n=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var l=o.markedSpans;if(l)for(var a=0;a=s.to||null==s.from&&i!=e.line||null!=s.from&&i==t.line&&s.from>=t.ch||r&&!r(s.marker)||n.push(s.marker.parent||s.marker)}++i})),n},getAllMarks:function(){var e=[];return this.iter((function(t){var r=t.markedSpans;if(r)for(var n=0;ne)return t=e,!0;e-=o,++r})),gt(this,st(r,t))},indexFromPos:function(e){var t=(e=gt(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var f=e.dataTransfer.getData("Text");if(f){var d;if(t.state.draggingText&&!t.state.draggingText.copy&&(d=t.listSelections()),Ko(t.doc,co(r,r)),d)for(var h=0;h=0;t--)al(e.doc,"",n[t].from,n[t].to,"+delete");ci(e)}))}function ql(e,t,r){var n=ue(e.text,t+r,r);return n<0||n>e.text.length?null:n}function Zl(e,t,r){var n=ql(e,t.ch,r);return null==n?null:new st(t.line,n,r<0?"after":"before")}function Jl(e,t,r,n,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=ge(r,t.doc.direction);if(o){var l,a=i<0?J(o):o[0],s=i<0==(1==a.level)?"after":"before";if(a.level>0||"rtl"==t.doc.direction){var u=on(t,r);l=i<0?r.text.length-1:0;var c=ln(t,u,l).top;l=ce((function(e){return ln(t,u,e).top==c}),i<0==(1==a.level)?a.from:a.to-1,l),"before"==s&&(l=ql(r,l,1))}else l=i<0?a.to:a.from;return new st(n,l,s)}}return new st(n,i<0?r.text.length:0,i<0?"before":"after")}function Ql(e,t,r,n){var i=ge(t,e.doc.direction);if(!i)return Zl(t,r,n);r.ch>=t.text.length?(r.ch=t.text.length,r.sticky="before"):r.ch<=0&&(r.ch=0,r.sticky="after");var o=he(i,r.ch,r.sticky),l=i[o];if("ltr"==e.doc.direction&&l.level%2==0&&(n>0?l.to>r.ch:l.from=l.from&&d>=c.begin)){var h=f?"before":"after";return new st(r.line,d,h)}}var p=function(e,t,n){for(var o=function(e,t){return t?new st(r.line,s(e,1),"before"):new st(r.line,e,"after")};e>=0&&e0==(1!=l.level),u=a?n.begin:s(n.end,-1);if(l.from<=u&&u0?c.end:s(c.begin,-1);return null==m||n>0&&m==t.text.length||!(g=p(n>0?0:i.length-1,n,u(m)))?null:g}jl.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},jl.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},jl.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},jl.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},jl.default=b?jl.macDefault:jl.pcDefault;var ea={selectAll:Qo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),K)},killLine:function(e){return Yl(e,(function(t){if(t.empty()){var r=et(e.doc,t.head.line).text.length;return t.head.ch==r&&t.head.line0)i=new st(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),st(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var l=et(e.doc,i.line-1).text;l&&(i=new st(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+l.charAt(l.length-1),st(i.line-1,l.length-1),i,"+transpose"))}r.push(new so(i,i))}e.setSelections(r)}))},newlineAndIndent:function(e){return Fi(e,(function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange(e.doc.lineSeparator(),t[r].anchor,t[r].head,"+input");t=e.listSelections();for(var n=0;n-1&&(ut((i=a.ranges[i]).from(),t)<0||t.xRel>0)&&(ut(i.to(),t)>0||t.xRel<0)?La(e,n,t,o):Ma(e,n,t,o)}function La(e,t,r,n){var i=e.display,o=!1,u=Ei(e,(function(t){s&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Qn(e)),be(i.wrapper.ownerDocument,"mouseup",u),be(i.wrapper.ownerDocument,"mousemove",c),be(i.scroller,"dragstart",f),be(i.scroller,"drop",u),o||(Le(t),n.addNew||Ro(e.doc,r,null,null,n.extend),s&&!h||l&&9==a?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),c=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},f=function(){return o=!0};s&&(i.scroller.draggable=!0),e.state.draggingText=u,u.copy=!n.moveOnDrag,ve(i.wrapper.ownerDocument,"mouseup",u),ve(i.wrapper.ownerDocument,"mousemove",c),ve(i.scroller,"dragstart",f),ve(i.scroller,"drop",u),e.state.delayingBlurEvent=!0,setTimeout((function(){return i.input.focus()}),20),i.scroller.dragDrop&&i.scroller.dragDrop()}function Ta(e,t,r){if("char"==r)return new so(t,t);if("word"==r)return e.findWordAt(t);if("line"==r)return new so(st(t.line,0),gt(e.doc,st(t.line+1,0)));var n=r(e,t);return new so(n.from,n.to)}function Ma(e,t,r,n){l&&Qn(e);var i=e.display,o=e.doc;Le(t);var a,s,u=o.sel,c=u.ranges;if(n.addNew&&!n.extend?(s=o.sel.contains(r),a=s>-1?c[s]:new so(r,r)):(a=o.sel.primary(),s=o.sel.primIndex),"rectangle"==n.unit)n.addNew||(a=new so(r,r)),r=In(e,t,!0,!0),s=-1;else{var f=Ta(e,r,n.unit);a=n.extend?Io(a,f.anchor,f.head,n.extend):f}n.addNew?-1==s?(s=c.length,_o(o,uo(e,c.concat([a]),s),{scroll:!1,origin:"*mouse"})):c.length>1&&c[s].empty()&&"char"==n.unit&&!n.extend?(_o(o,uo(e,c.slice(0,s).concat(c.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),u=o.sel):jo(o,s,a,X):(s=0,_o(o,new ao([a],0),X),u=o.sel);var d=r;function h(t){if(0!=ut(d,t))if(d=t,"rectangle"==n.unit){for(var i=[],l=e.options.tabSize,c=j(et(o,r.line).text,r.ch,l),f=j(et(o,t.line).text,t.ch,l),h=Math.min(c,f),p=Math.max(c,f),g=Math.min(r.line,t.line),m=Math.min(e.lastLine(),Math.max(r.line,t.line));g<=m;g++){var v=et(o,g).text,y=Y(v,h,l);h==p?i.push(new so(st(g,y),st(g,y))):v.length>y&&i.push(new so(st(g,y),st(g,Y(v,p,l))))}i.length||i.push(new so(r,r)),_o(o,uo(e,u.ranges.slice(0,s).concat(i),s),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,w=a,x=Ta(e,t,n.unit),C=w.anchor;ut(x.anchor,C)>0?(b=x.head,C=ht(w.from(),x.anchor)):(b=x.anchor,C=dt(w.to(),x.head));var k=u.ranges.slice(0);k[s]=Na(e,new so(gt(o,C),b)),_o(o,uo(e,k,s),X)}}var p=i.wrapper.getBoundingClientRect(),g=0;function m(t){var r=++g,l=In(e,t,!0,"rectangle"==n.unit);if(l)if(0!=ut(l,d)){e.curOp.focus=H(z(e)),h(l);var a=ii(i,o);(l.line>=a.to||l.linep.bottom?20:0;s&&setTimeout(Ei(e,(function(){g==r&&(i.scroller.scrollTop+=s,m(t))})),50)}}function v(t){e.state.selectingText=!1,g=1/0,t&&(Le(t),i.input.focus()),be(i.wrapper.ownerDocument,"mousemove",y),be(i.wrapper.ownerDocument,"mouseup",b),o.history.lastSelOrigin=null}var y=Ei(e,(function(e){0!==e.buttons&&Ae(e)?m(e):v(e)})),b=Ei(e,v);e.state.selectingText=b,ve(i.wrapper.ownerDocument,"mousemove",y),ve(i.wrapper.ownerDocument,"mouseup",b)}function Na(e,t){var r=t.anchor,n=t.head,i=et(e.doc,r.line);if(0==ut(r,n)&&r.sticky==n.sticky)return t;var o=ge(i);if(!o)return t;var l=he(o,r.ch,r.sticky),a=o[l];if(a.from!=r.ch&&a.to!=r.ch)return t;var s,u=l+(a.from==r.ch==(1!=a.level)?0:1);if(0==u||u==o.length)return t;if(n.line!=r.line)s=(n.line-r.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=he(o,n.ch,n.sticky),f=c-l||(n.ch-r.ch)*(1==a.level?-1:1);s=c==u-1||c==u?f<0:f>0}var d=o[u+(s?-1:0)],h=s==(1==d.level),p=h?d.from:d.to,g=h?"after":"before";return r.ch==p&&r.sticky==g?t:new so(new st(r.line,p,g),n)}function Oa(e,t,r,n){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&Le(t);var l=e.display,a=l.lineDiv.getBoundingClientRect();if(o>a.bottom||!ke(e,r))return Me(t);o-=a.top-l.viewOffset;for(var s=0;s=i)return we(e,r,e,ot(e.doc,o),e.display.gutterSpecs[s].className,t),Me(t)}}function Aa(e,t){return Oa(e,t,"gutterClick",!0)}function Da(e,t){Kr(e.display,t)||Wa(e,t)||xe(e,t,"contextmenu")||S||e.display.input.onContextMenu(t)}function Wa(e,t){return!!ke(e,"gutterContextMenu")&&Oa(e,t,"gutterContextMenu",!1)}function Ha(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),gn(e)}ba.prototype.compare=function(e,t,r){return this.time+ya>e&&0==ut(t,this.pos)&&r==this.button};var Fa={toString:function(){return"CodeMirror.Init"}},Ea={},Pa={};function za(e){var t=e.optionHandlers;function r(r,n,i,o){e.defaults[r]=n,i&&(t[r]=o?function(e,t,r){r!=Fa&&i(e,t,r)}:i)}e.defineOption=r,e.Init=Fa,r("value","",(function(e,t){return e.setValue(t)}),!0),r("mode",null,(function(e,t){e.doc.modeOption=t,vo(e)}),!0),r("indentUnit",2,vo,!0),r("indentWithTabs",!1),r("smartIndent",!0),r("tabSize",4,(function(e){yo(e),gn(e),Bn(e)}),!0),r("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var r=[],n=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,r.push(st(n,o))}n++}));for(var i=r.length-1;i>=0;i--)al(e.doc,t,r[i],st(r[i].line,r[i].ch+t.length))}})),r("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,(function(e,t,r){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),r!=Fa&&e.refresh()})),r("specialCharPlaceholder",yr,(function(e){return e.refresh()}),!0),r("electricChars",!0),r("inputStyle",y?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),r("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),r("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),r("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),r("rtlMoveVisually",!x),r("wholeLineUpdateBefore",!0),r("theme","default",(function(e){Ha(e),eo(e)}),!0),r("keyMap","default",(function(e,t,r){var n=$l(t),i=r!=Fa&&$l(r);i&&i.detach&&i.detach(e,n),n.attach&&n.attach(e,i||null)})),r("extraKeys",null),r("configureMouse",null),r("lineWrapping",!1,Ra,!0),r("gutters",[],(function(e,t){e.display.gutterSpecs=Ji(t,e.options.lineNumbers),eo(e)}),!0),r("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?En(e.display)+"px":"0",e.refresh()}),!0),r("coverGutterNextToScrollbar",!1,(function(e){return xi(e)}),!0),r("scrollbarStyle","native",(function(e){Si(e),xi(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),r("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=Ji(e.options.gutters,t),eo(e)}),!0),r("firstLineNumber",1,eo,!0),r("lineNumberFormatter",(function(e){return e}),eo,!0),r("showCursorWhenSelecting",!1,Kn,!0),r("resetSelectionOnContextMenu",!0),r("lineWiseCopyCut",!0),r("pasteLinesPerSelection",!0),r("selectionsMayTouch",!1),r("readOnly",!1,(function(e,t){"nocursor"==t&&(ti(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),r("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),r("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),r("dragDrop",!0,Ia),r("allowDropFileTypes",null),r("cursorBlinkRate",530),r("cursorScrollMargin",0),r("cursorHeight",1,Kn,!0),r("singleCursorHeightPerLine",!0,Kn,!0),r("workTime",100),r("workDelay",100),r("flattenSpans",!0,yo,!0),r("addModeClass",!1,yo,!0),r("pollInterval",100),r("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),r("historyEventDelay",1250),r("viewportMargin",10,(function(e){return e.refresh()}),!0),r("maxHighlightLength",1e4,yo,!0),r("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),r("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),r("autofocus",null),r("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),r("phrases",null)}function Ia(e,t,r){if(!t!=!(r&&r!=Fa)){var n=e.display.dragFunctions,i=t?ve:be;i(e.display.scroller,"dragstart",n.start),i(e.display.scroller,"dragenter",n.enter),i(e.display.scroller,"dragover",n.over),i(e.display.scroller,"dragleave",n.leave),i(e.display.scroller,"drop",n.drop)}}function Ra(e){e.options.lineWrapping?(F(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(M(e.display.wrapper,"CodeMirror-wrap"),cr(e)),zn(e),Bn(e),gn(e),setTimeout((function(){return xi(e)}),100)}function Ba(e,t){var r=this;if(!(this instanceof Ba))return new Ba(e,t);this.options=t=t?B(t):{},B(Ea,t,!1);var n=t.value;"string"==typeof n?n=new Tl(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var i=new Ba.inputStyles[t.inputStyle](this),o=this.display=new to(e,n,i,t);for(var u in o.wrapper.CodeMirror=this,Ha(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Si(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new V,keySeq:null,specialChars:null},t.autofocus&&!y&&o.input.focus(),l&&a<11&&setTimeout((function(){return r.display.input.reset(!0)}),20),ja(this),Fl(),Ti(this),this.curOp.forceUpdate=!0,Co(this,n),t.autofocus&&!y||this.hasFocus()?setTimeout((function(){r.hasFocus()&&!r.state.focused&&ei(r)}),20):ti(this),Pa)Pa.hasOwnProperty(u)&&Pa[u](this,t[u],Fa);Zi(this),t.finishInit&&t.finishInit(this);for(var c=0;c400}ve(t.scroller,"touchstart",(function(i){if(!xe(e,i)&&!o(i)&&!Aa(e,i)){t.input.ensurePolled(),clearTimeout(r);var l=+new Date;t.activeTouch={start:l,moved:!1,prev:l-n.end<=300?n:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),ve(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),ve(t.scroller,"touchend",(function(r){var n=t.activeTouch;if(n&&!Kr(t,r)&&null!=n.left&&!n.moved&&new Date-n.start<300){var o,l=e.coordsChar(t.activeTouch,"page");o=!n.prev||s(n,n.prev)?new so(l,l):!n.prev.prev||s(n,n.prev.prev)?e.findWordAt(l):new so(st(l.line,0),gt(e.doc,st(l.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),Le(r)}i()})),ve(t.scroller,"touchcancel",i),ve(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(gi(e,t.scroller.scrollTop),vi(e,t.scroller.scrollLeft,!0),we(e,"scroll",e))})),ve(t.scroller,"mousewheel",(function(t){return lo(e,t)})),ve(t.scroller,"DOMMouseScroll",(function(t){return lo(e,t)})),ve(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){xe(e,t)||Ne(t)},over:function(t){xe(e,t)||(Al(e,t),Ne(t))},start:function(t){return Ol(e,t)},drop:Ei(e,Nl),leave:function(t){xe(e,t)||Dl(e)}};var u=t.input.getField();ve(u,"keyup",(function(t){return pa.call(e,t)})),ve(u,"keydown",Ei(e,da)),ve(u,"keypress",Ei(e,ga)),ve(u,"focus",(function(t){return ei(e,t)})),ve(u,"blur",(function(t){return ti(e,t)}))}Ba.defaults=Ea,Ba.optionHandlers=Pa;var Va=[];function Ga(e,t,r,n){var i,o=e.doc;null==r&&(r="add"),"smart"==r&&(o.mode.indent?i=Ct(e,t).state:r="prev");var l=e.options.tabSize,a=et(o,t),s=j(a.text,null,l);a.stateAfter&&(a.stateAfter=null);var u,c=a.text.match(/^\s*/)[0];if(n||/\S/.test(a.text)){if("smart"==r&&((u=o.mode.indent(i,a.text.slice(c.length),a.text))==_||u>150)){if(!n)return;r="prev"}}else u=0,r="not";"prev"==r?u=t>o.first?j(et(o,t-1).text,null,l):0:"add"==r?u=s+e.options.indentUnit:"subtract"==r?u=s-e.options.indentUnit:"number"==typeof r&&(u=s+r),u=Math.max(0,u);var f="",d=0;if(e.options.indentWithTabs)for(var h=Math.floor(u/l);h;--h)d+=l,f+="\t";if(dl,s=ze(t),u=null;if(a&&n.ranges.length>1)if(Ua&&Ua.text.join("\n")==t){if(n.ranges.length%Ua.text.length==0){u=[];for(var c=0;c=0;d--){var h=n.ranges[d],p=h.from(),g=h.to();h.empty()&&(r&&r>0?p=st(p.line,p.ch-r):e.state.overwrite&&!a?g=st(g.line,Math.min(et(o,g.line).text.length,g.ch+J(s).length)):a&&Ua&&Ua.lineWise&&Ua.text.join("\n")==s.join("\n")&&(p=g=st(p.line,0)));var m={from:p,to:g,text:u?u[d%u.length]:s,origin:i||(a?"paste":e.state.cutIncoming>l?"cut":"+input")};tl(e.doc,m),Dr(e,"inputRead",e,m)}t&&!a&&$a(e,t),ci(e),e.curOp.updateInput<2&&(e.curOp.updateInput=f),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Xa(e,t){var r=e.clipboardData&&e.clipboardData.getData("Text");if(r)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||Fi(t,(function(){return Ka(t,r,0,null,"paste")})),!0}function $a(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var r=e.doc.sel,n=r.ranges.length-1;n>=0;n--){var i=r.ranges[n];if(!(i.head.ch>100||n&&r.ranges[n-1].head.line==i.head.line)){var o=e.getModeAt(i.head),l=!1;if(o.electricChars){for(var a=0;a-1){l=Ga(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(et(e.doc,i.head.line).text.slice(0,i.head.ch))&&(l=Ga(e,i.head.line,"smart"));l&&Dr(e,"electricInput",e,i.head.line)}}}function Ya(e){for(var t=[],r=[],n=0;nr&&(Ga(this,i.head.line,e,!0),r=i.head.line,n==this.doc.sel.primIndex&&ci(this));else{var o=i.from(),l=i.to(),a=Math.max(r,o.line);r=Math.min(this.lastLine(),l.line-(l.ch?0:1))+1;for(var s=a;s0&&jo(this.doc,n,new so(o,u[n].to()),K)}}})),getTokenAt:function(e,t){return Mt(this,e,t)},getLineTokens:function(e,t){return Mt(this,st(e),t,!0)},getTokenTypeAt:function(e){e=gt(this.doc,e);var t,r=xt(this,et(this.doc,e.line)),n=0,i=(r.length-1)/2,o=e.ch;if(0==o)t=r[2];else for(;;){var l=n+i>>1;if((l?r[2*l-1]:0)>=o)i=l;else{if(!(r[2*l+1]o&&(e=o,i=!0),n=et(this.doc,e)}else n=e;return bn(this,n,{top:0,left:0},t||"page",r||i).top+(i?this.doc.height-sr(n):0)},defaultTextHeight:function(){return Wn(this.display)},defaultCharWidth:function(){return Hn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,r,n,i){var o=this.display,l=(e=Cn(this,gt(this.doc,e))).bottom,a=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==n)l=e.top;else if("above"==n||"near"==n){var s=Math.max(o.wrapper.clientHeight,this.doc.height),u=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==n||e.bottom+t.offsetHeight>s)&&e.top>t.offsetHeight?l=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=s&&(l=e.bottom),a+t.offsetWidth>u&&(a=u-t.offsetWidth)}t.style.top=l+"px",t.style.left=t.style.right="","right"==i?(a=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?a=0:"middle"==i&&(a=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=a+"px"),r&&ai(this,{left:a,top:l,right:a+t.offsetWidth,bottom:l+t.offsetHeight})},triggerOnKeyDown:Pi(da),triggerOnKeyPress:Pi(ga),triggerOnKeyUp:pa,triggerOnMouseDown:Pi(xa),execCommand:function(e){if(ea.hasOwnProperty(e))return ea[e].call(null,this)},triggerElectric:Pi((function(e){$a(this,e)})),findPosH:function(e,t,r,n){var i=1;t<0&&(i=-1,t=-t);for(var o=gt(this.doc,e),l=0;l0&&l(t.charAt(r-1));)--r;for(;n.5||this.options.lineWrapping)&&zn(this),we(this,"refresh",this)})),swapDoc:Pi((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Co(this,e),gn(this),this.display.input.reset(),fi(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Dr(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Se(e),e.registerHelper=function(t,n,i){r.hasOwnProperty(t)||(r[t]=e[t]={_global:[]}),r[t][n]=i},e.registerGlobalHelper=function(t,n,i,o){e.registerHelper(t,n,o),r[t]._global.push({pred:i,val:o})}}function Qa(e,t,r,n,i){var o=t,l=r,a=et(e,t.line),s=i&&"rtl"==e.direction?-r:r;function u(){var r=t.line+s;return!(r=e.first+e.size)&&(t=new st(r,t.ch,t.sticky),a=et(e,r))}function c(o){var l;if("codepoint"==n){var c=a.text.charCodeAt(t.ch+(r>0?0:-1));if(isNaN(c))l=null;else{var f=r>0?c>=55296&&c<56320:c>=56320&&c<57343;l=new st(t.line,Math.max(0,Math.min(a.text.length,t.ch+r*(f?2:1))),-r)}}else l=i?Ql(e.cm,a,t,r):Zl(a,t,r);if(null==l){if(o||!u())return!1;t=Jl(i,e.cm,a,t.line,s)}else t=l;return!0}if("char"==n||"codepoint"==n)c();else if("column"==n)c(!0);else if("word"==n||"group"==n)for(var f=null,d="group"==n,h=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;!(r<0)||c(!p);p=!1){var g=a.text.charAt(t.ch)||"\n",m=oe(g,h)?"w":d&&"\n"==g?"n":!d||/\s/.test(g)?null:"p";if(!d||p||m||(m="s"),f&&f!=m){r<0&&(r=1,c(),t.sticky="after");break}if(m&&(f=m),r>0&&!c(!p))break}var v=Zo(e,t,o,l,!0);return ct(o,v)&&(v.hitSide=!0),v}function es(e,t,r,n){var i,o,l=e.doc,a=t.left;if("page"==n){var s=Math.min(e.display.wrapper.clientHeight,I(e).innerHeight||l(e).documentElement.clientHeight),u=Math.max(s-.5*Wn(e.display),3);i=(r>0?t.bottom:t.top)+r*u}else"line"==n&&(i=r>0?t.bottom+3:t.top-3);for(;(o=Ln(e,a,i)).outside;){if(r<0?i<=0:i>=l.height){o.hitSide=!0;break}i+=5*r}return o}var ts=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new V,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function rs(e,t){var r=nn(e,t.line);if(!r||r.hidden)return null;var n=et(e.doc,t.line),i=en(r,n,t.line),o=ge(n,e.doc.direction),l="left";o&&(l=he(o,t.ch)%2?"right":"left");var a=un(i.map,t.ch,l);return a.offset="right"==a.collapse?a.end:a.start,a}function ns(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function is(e,t){return t&&(e.bad=!0),e}function os(e,t,r,n,i){var o="",l=!1,a=e.doc.lineSeparator(),s=!1;function u(e){return function(t){return t.id==e}}function c(){l&&(o+=a,s&&(o+=a),l=s=!1)}function f(e){e&&(c(),o+=e)}function d(t){if(1==t.nodeType){var r=t.getAttribute("cm-text");if(r)return void f(r);var o,h=t.getAttribute("cm-marker");if(h){var p=e.findMarks(st(n,0),st(i+1,0),u(+h));return void(p.length&&(o=p[0].find(0))&&f(tt(e.doc,o.from,o.to).join(a)))}if("false"==t.getAttribute("contenteditable"))return;var g=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;g&&c();for(var m=0;m=t.display.viewTo||o.line=t.display.viewFrom&&rs(t,i)||{node:s[0].measure.map[2],offset:0},c=o.linen.firstLine()&&(l=st(l.line-1,et(n.doc,l.line-1).length)),a.ch==et(n.doc,a.line).text.length&&a.linei.viewTo-1)return!1;l.line==i.viewFrom||0==(e=Rn(n,l.line))?(t=it(i.view[0].line),r=i.view[0].node):(t=it(i.view[e].line),r=i.view[e-1].node.nextSibling);var s,u,c=Rn(n,a.line);if(c==i.view.length-1?(s=i.viewTo-1,u=i.lineDiv.lastChild):(s=it(i.view[c+1].line)-1,u=i.view[c+1].node.previousSibling),!r)return!1;for(var f=n.doc.splitLines(os(n,r,u,t,s)),d=tt(n.doc,st(t,0),st(s,et(n.doc,s).text.length));f.length>1&&d.length>1;)if(J(f)==J(d))f.pop(),d.pop(),s--;else{if(f[0]!=d[0])break;f.shift(),d.shift(),t++}for(var h=0,p=0,g=f[0],m=d[0],v=Math.min(g.length,m.length);hl.ch&&y.charCodeAt(y.length-p-1)==b.charCodeAt(b.length-p-1);)h--,p++;f[f.length-1]=y.slice(0,y.length-p).replace(/^\u200b+/,""),f[0]=f[0].slice(h).replace(/\u200b+$/,"");var x=st(t,h),C=st(s,d.length?J(d).length-p:0);return f.length>1||f[0]||ut(x,C)?(al(n.doc,f,x,C,"+input"),!0):void 0},ts.prototype.ensurePolled=function(){this.forceCompositionEnd()},ts.prototype.reset=function(){this.forceCompositionEnd()},ts.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ts.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},ts.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Fi(this.cm,(function(){return Bn(e.cm)}))},ts.prototype.setUneditable=function(e){e.contentEditable="false"},ts.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Ei(this.cm,Ka)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},ts.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},ts.prototype.onContextMenu=function(){},ts.prototype.resetPosition=function(){},ts.prototype.needsContentAttribute=!0;var ss=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new V,this.hasSelection=!1,this.composing=null,this.resetting=!1};function us(e,t){if((t=t?B(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var r=H(e.ownerDocument);t.autofocus=r==e||null!=e.getAttribute("autofocus")&&r==document.body}function n(){e.value=a.getValue()}var i;if(e.form&&(ve(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var l=o.submit=function(){n(),o.submit=i,o.submit(),o.submit=l}}catch(e){}}t.finishInit=function(r){r.save=n,r.getTextArea=function(){return e},r.toTextArea=function(){r.toTextArea=isNaN,n(),e.parentNode.removeChild(r.getWrapperElement()),e.style.display="",e.form&&(be(e.form,"submit",n),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var a=Ba((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return a}function cs(e){e.off=be,e.on=ve,e.wheelEventPixels=oo,e.Doc=Tl,e.splitLines=ze,e.countColumn=j,e.findColumn=Y,e.isWordChar=ie,e.Pass=_,e.signal=we,e.Line=fr,e.changeEnd=fo,e.scrollbarModel=ki,e.Pos=st,e.cmpPos=ut,e.modes=Ve,e.mimeModes=Ge,e.resolveMode=Ke,e.getMode=Xe,e.modeExtensions=$e,e.extendMode=Ye,e.copyState=qe,e.startState=Je,e.innerMode=Ze,e.commands=ea,e.keyMap=jl,e.keyName=Xl,e.isModifierKey=_l,e.lookupKey=Ul,e.normalizeKeyMap=Gl,e.StringStream=Qe,e.SharedTextMarker=wl,e.TextMarker=yl,e.LineWidget=pl,e.e_preventDefault=Le,e.e_stopPropagation=Te,e.e_stop=Ne,e.addClass=F,e.contains=W,e.rmClass=M,e.keyNames=zl}ss.prototype.init=function(e){var t=this,r=this,n=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!xe(n,e)){if(n.somethingSelected())_a({lineWise:!1,text:n.getSelections()});else{if(!n.options.lineWiseCopyCut)return;var t=Ya(n);_a({lineWise:!0,text:t.text}),"cut"==e.type?n.setSelections(t.ranges,null,K):(r.prevInput="",i.value=t.text.join("\n"),P(i))}"cut"==e.type&&(n.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),m&&(i.style.width="0px"),ve(i,"input",(function(){l&&a>=9&&t.hasSelection&&(t.hasSelection=null),r.poll()})),ve(i,"paste",(function(e){xe(n,e)||Xa(e,n)||(n.state.pasteIncoming=+new Date,r.fastPoll())})),ve(i,"cut",o),ve(i,"copy",o),ve(e.scroller,"paste",(function(t){if(!Kr(e,t)&&!xe(n,t)){if(!i.dispatchEvent)return n.state.pasteIncoming=+new Date,void r.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),ve(e.lineSpace,"selectstart",(function(t){Kr(e,t)||Le(t)})),ve(i,"compositionstart",(function(){var e=n.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:e,range:n.markText(e,n.getCursor("to"),{className:"CodeMirror-composing"})}})),ve(i,"compositionend",(function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)}))},ss.prototype.createField=function(e){this.wrapper=Za(),this.textarea=this.wrapper.firstChild},ss.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},ss.prototype.prepareSelection=function(){var e=this.cm,t=e.display,r=e.doc,n=Xn(e);if(e.options.moveInputWithCursor){var i=Cn(e,r.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),l=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+l.top-o.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+l.left-o.left))}return n},ss.prototype.showSelection=function(e){var t=this.cm.display;O(t.cursorDiv,e.cursors),O(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},ss.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var r=t.getSelection();this.textarea.value=r,t.state.focused&&P(this.textarea),l&&a>=9&&(this.hasSelection=r)}else e||(this.prevInput=this.textarea.value="",l&&a>=9&&(this.hasSelection=null));this.resetting=!1}},ss.prototype.getField=function(){return this.textarea},ss.prototype.supportsTouch=function(){return!1},ss.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||H(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch(e){}},ss.prototype.blur=function(){this.textarea.blur()},ss.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ss.prototype.receivedFocus=function(){this.slowPoll()},ss.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},ss.prototype.fastPoll=function(){var e=!1,t=this;function r(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,r))}t.pollingFast=!0,t.polling.set(20,r)},ss.prototype.poll=function(){var e=this,t=this.cm,r=this.textarea,n=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||Ie(r)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=r.value;if(i==n&&!t.somethingSelected())return!1;if(l&&a>=9&&this.hasSelection===i||b&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||n||(n="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var s=0,u=Math.min(n.length,i.length);s1e3||i.indexOf("\n")>-1?r.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},ss.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ss.prototype.onKeyPress=function(){l&&a>=9&&(this.hasSelection=null),this.fastPoll()},ss.prototype.onContextMenu=function(e){var t=this,r=t.cm,n=r.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=In(r,e),u=n.scroller.scrollTop;if(o&&!d){r.options.resetSelectionOnContextMenu&&-1==r.doc.sel.contains(o)&&Ei(r,_o)(r.doc,co(o),K);var c,f=i.style.cssText,h=t.wrapper.style.cssText,p=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-p.top-5)+"px; left: "+(e.clientX-p.left-5)+"px;\n z-index: 1000; background: "+(l?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",s&&(c=i.ownerDocument.defaultView.scrollY),n.input.focus(),s&&i.ownerDocument.defaultView.scrollTo(null,c),n.input.reset(),r.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=v,n.selForContextMenu=r.doc.sel,clearTimeout(n.detectingSelectAll),l&&a>=9&&m(),S){Ne(e);var g=function(){be(window,"mouseup",g),setTimeout(v,20)};ve(window,"mouseup",g)}else setTimeout(v,50)}function m(){if(null!=i.selectionStart){var e=r.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,n.selForContextMenu=r.doc.sel}}function v(){if(t.contextMenuPending==v&&(t.contextMenuPending=!1,t.wrapper.style.cssText=h,i.style.cssText=f,l&&a<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=u),null!=i.selectionStart)){(!l||l&&a<9)&&m();var e=0,o=function(){n.selForContextMenu==r.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?Ei(r,Qo)(r):e++<10?n.detectingSelectAll=setTimeout(o,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(o,200)}}},ss.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},ss.prototype.setUneditable=function(){},ss.prototype.needsContentAttribute=!1,za(Ba),Ja(Ba);var fs="iter insert remove copy getEditor constructor".split(" ");for(var ds in Tl.prototype)Tl.prototype.hasOwnProperty(ds)&&G(fs,ds)<0&&(Ba.prototype[ds]=function(e){return function(){return e.apply(this.doc,arguments)}}(Tl.prototype[ds]));return Se(Tl),Ba.inputStyles={textarea:ss,contenteditable:ts},Ba.defineMode=function(e){Ba.defaults.mode||"null"==e||(Ba.defaults.mode=e),Ue.apply(this,arguments)},Ba.defineMIME=_e,Ba.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Ba.defineMIME("text/plain","null"),Ba.defineExtension=function(e,t){Ba.prototype[e]=t},Ba.defineDocExtension=function(e,t){Tl.prototype[e]=t},Ba.fromTextArea=us,cs(Ba),Ba.version="5.65.9",Ba}()},"./node_modules/codemirror/mode/javascript/javascript.js":function(e,t,r){!function(e){"use strict";e.defineMode("javascript",(function(t,r){var n,i,o=t.indentUnit,l=r.statementIndent,a=r.jsonld,s=r.json||a,u=!1!==r.trackScope,c=r.typescript,f=r.wordCharacters||/[\w$\xa1-\uffff]/,d=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),r=e("keyword b"),n=e("keyword c"),i=e("keyword d"),o=e("operator"),l={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:r,do:r,try:r,finally:r,return:i,break:i,continue:i,new:e("new"),delete:n,void:n,throw:n,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:l,false:l,null:l,undefined:l,NaN:l,Infinity:l,this:e("this"),class:e("class"),super:e("atom"),yield:n,export:e("export"),import:e("import"),extends:n,await:n}}(),h=/[+\-*&%=<>!?|~^@]/,p=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function g(e){for(var t,r=!1,n=!1;null!=(t=e.next());){if(!r){if("/"==t&&!n)return;"["==t?n=!0:n&&"]"==t&&(n=!1)}r=!r&&"\\"==t}}function m(e,t,r){return n=e,i=r,t}function v(e,t){var r=e.next();if('"'==r||"'"==r)return t.tokenize=y(r),t.tokenize(e,t);if("."==r&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return m("number","number");if("."==r&&e.match(".."))return m("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return m(r);if("="==r&&e.eat(">"))return m("=>","operator");if("0"==r&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return m("number","number");if(/\d/.test(r))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),m("number","number");if("/"==r)return e.eat("*")?(t.tokenize=b,b(e,t)):e.eat("/")?(e.skipToEnd(),m("comment","comment")):it(e,t,1)?(g(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),m("regexp","string-2")):(e.eat("="),m("operator","operator",e.current()));if("`"==r)return t.tokenize=w,w(e,t);if("#"==r&&"!"==e.peek())return e.skipToEnd(),m("meta","meta");if("#"==r&&e.eatWhile(f))return m("variable","property");if("<"==r&&e.match("!--")||"-"==r&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),m("comment","comment");if(h.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-|&?]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),"?"==r&&e.eat(".")?m("."):m("operator","operator",e.current());if(f.test(r)){e.eatWhile(f);var n=e.current();if("."!=t.lastType){if(d.propertyIsEnumerable(n)){var i=d[n];return m(i.type,i.style,n)}if("async"==n&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return m("async","keyword",n)}return m("variable","variable",n)}}function y(e){return function(t,r){var n,i=!1;if(a&&"@"==t.peek()&&t.match(p))return r.tokenize=v,m("jsonld-keyword","meta");for(;null!=(n=t.next())&&(n!=e||i);)i=!i&&"\\"==n;return i||(r.tokenize=v),m("string","string")}}function b(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=v;break}n="*"==r}return m("comment","comment")}function w(e,t){for(var r,n=!1;null!=(r=e.next());){if(!n&&("`"==r||"$"==r&&e.eat("{"))){t.tokenize=v;break}n=!n&&"\\"==r}return m("quasi","string-2",e.current())}var x="([{}])";function C(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var r=e.string.indexOf("=>",e.start);if(!(r<0)){if(c){var n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,r));n&&(r=n.index)}for(var i=0,o=!1,l=r-1;l>=0;--l){var a=e.string.charAt(l),s=x.indexOf(a);if(s>=0&&s<3){if(!i){++l;break}if(0==--i){"("==a&&(o=!0);break}}else if(s>=3&&s<6)++i;else if(f.test(a))o=!0;else if(/["'\/`]/.test(a))for(;;--l){if(0==l)return;if(e.string.charAt(l-1)==a&&"\\"!=e.string.charAt(l-2)){l--;break}}else if(o&&!i){++l;break}}o&&!i&&(t.fatArrowAt=l)}}var k={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function S(e,t,r,n,i,o){this.indented=e,this.column=t,this.type=r,this.prev=i,this.info=o,null!=n&&(this.align=n)}function L(e,t){if(!u)return!1;for(var r=e.localVars;r;r=r.next)if(r.name==t)return!0;for(var n=e.context;n;n=n.prev)for(r=n.vars;r;r=r.next)if(r.name==t)return!0}function T(e,t,r,n,i){var o=e.cc;for(M.state=e,M.stream=i,M.marked=null,M.cc=o,M.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():s?_:G)(r,n)){for(;o.length&&o[o.length-1].lex;)o.pop()();return M.marked?M.marked:"variable"==r&&L(e,n)?"variable-2":t}}var M={state:null,column:null,marked:null,cc:null};function N(){for(var e=arguments.length-1;e>=0;e--)M.cc.push(arguments[e])}function O(){return N.apply(null,arguments),!0}function A(e,t){for(var r=t;r;r=r.next)if(r.name==e)return!0;return!1}function D(e){var t=M.state;if(M.marked="def",u){if(t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var n=W(e,t.context);if(null!=n)return void(t.context=n)}else if(!A(e,t.localVars))return void(t.localVars=new E(e,t.localVars));r.globalVars&&!A(e,t.globalVars)&&(t.globalVars=new E(e,t.globalVars))}}function W(e,t){if(t){if(t.block){var r=W(e,t.prev);return r?r==t.prev?t:new F(r,t.vars,!0):null}return A(e,t.vars)?t:new F(t.prev,new E(e,t.vars),!1)}return null}function H(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function F(e,t,r){this.prev=e,this.vars=t,this.block=r}function E(e,t){this.name=e,this.next=t}var P=new E("this",new E("arguments",null));function z(){M.state.context=new F(M.state.context,M.state.localVars,!1),M.state.localVars=P}function I(){M.state.context=new F(M.state.context,M.state.localVars,!0),M.state.localVars=null}function R(){M.state.localVars=M.state.context.vars,M.state.context=M.state.context.prev}function B(e,t){var r=function(){var r=M.state,n=r.indented;if("stat"==r.lexical.type)n=r.lexical.indented;else for(var i=r.lexical;i&&")"==i.type&&i.align;i=i.prev)n=i.indented;r.lexical=new S(n,M.stream.column(),e,null,r.lexical,t)};return r.lex=!0,r}function j(){var e=M.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function V(e){function t(r){return r==e?O():";"==e||"}"==r||")"==r||"]"==r?N():O(t)}return t}function G(e,t){return"var"==e?O(B("vardef",t),Ne,V(";"),j):"keyword a"==e?O(B("form"),X,G,j):"keyword b"==e?O(B("form"),G,j):"keyword d"==e?M.stream.match(/^\s*$/,!1)?O():O(B("stat"),Y,V(";"),j):"debugger"==e?O(V(";")):"{"==e?O(B("}"),I,de,j,R):";"==e?O():"if"==e?("else"==M.state.lexical.info&&M.state.cc[M.state.cc.length-1]==j&&M.state.cc.pop()(),O(B("form"),X,G,j,Fe)):"function"==e?O(Ie):"for"==e?O(B("form"),I,Ee,G,R,j):"class"==e||c&&"interface"==t?(M.marked="keyword",O(B("form","class"==e?e:t),Ge,j)):"variable"==e?c&&"declare"==t?(M.marked="keyword",O(G)):c&&("module"==t||"enum"==t||"type"==t)&&M.stream.match(/^\s*\w/,!1)?(M.marked="keyword","enum"==t?O(tt):"type"==t?O(Be,V("operator"),ve,V(";")):O(B("form"),Oe,V("{"),B("}"),de,j,j)):c&&"namespace"==t?(M.marked="keyword",O(B("form"),_,G,j)):c&&"abstract"==t?(M.marked="keyword",O(G)):O(B("stat"),oe):"switch"==e?O(B("form"),X,V("{"),B("}","switch"),I,de,j,j,R):"case"==e?O(_,V(":")):"default"==e?O(V(":")):"catch"==e?O(B("form"),z,U,G,j,R):"export"==e?O(B("stat"),Xe,j):"import"==e?O(B("stat"),Ye,j):"async"==e?O(G):"@"==t?O(_,G):N(B("stat"),_,V(";"),j)}function U(e){if("("==e)return O(je,V(")"))}function _(e,t){return $(e,t,!1)}function K(e,t){return $(e,t,!0)}function X(e){return"("!=e?N():O(B(")"),Y,V(")"),j)}function $(e,t,r){if(M.state.fatArrowAt==M.stream.start){var n=r?te:ee;if("("==e)return O(z,B(")"),ce(je,")"),j,V("=>"),n,R);if("variable"==e)return N(z,Oe,V("=>"),n,R)}var i=r?Z:q;return k.hasOwnProperty(e)?O(i):"function"==e?O(Ie,i):"class"==e||c&&"interface"==t?(M.marked="keyword",O(B("form"),Ve,j)):"keyword c"==e||"async"==e?O(r?K:_):"("==e?O(B(")"),Y,V(")"),j,i):"operator"==e||"spread"==e?O(r?K:_):"["==e?O(B("]"),et,j,i):"{"==e?fe(ae,"}",null,i):"quasi"==e?N(J,i):"new"==e?O(re(r)):O()}function Y(e){return e.match(/[;\}\)\],]/)?N():N(_)}function q(e,t){return","==e?O(Y):Z(e,t,!1)}function Z(e,t,r){var n=0==r?q:Z,i=0==r?_:K;return"=>"==e?O(z,r?te:ee,R):"operator"==e?/\+\+|--/.test(t)||c&&"!"==t?O(n):c&&"<"==t&&M.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?O(B(">"),ce(ve,">"),j,n):"?"==t?O(_,V(":"),i):O(i):"quasi"==e?N(J,n):";"!=e?"("==e?fe(K,")","call",n):"."==e?O(le,n):"["==e?O(B("]"),Y,V("]"),j,n):c&&"as"==t?(M.marked="keyword",O(ve,n)):"regexp"==e?(M.state.lastType=M.marked="operator",M.stream.backUp(M.stream.pos-M.stream.start-1),O(i)):void 0:void 0}function J(e,t){return"quasi"!=e?N():"${"!=t.slice(t.length-2)?O(J):O(Y,Q)}function Q(e){if("}"==e)return M.marked="string-2",M.state.tokenize=w,O(J)}function ee(e){return C(M.stream,M.state),N("{"==e?G:_)}function te(e){return C(M.stream,M.state),N("{"==e?G:K)}function re(e){return function(t){return"."==t?O(e?ie:ne):"variable"==t&&c?O(Le,e?Z:q):N(e?K:_)}}function ne(e,t){if("target"==t)return M.marked="keyword",O(q)}function ie(e,t){if("target"==t)return M.marked="keyword",O(Z)}function oe(e){return":"==e?O(j,G):N(q,V(";"),j)}function le(e){if("variable"==e)return M.marked="property",O()}function ae(e,t){return"async"==e?(M.marked="property",O(ae)):"variable"==e||"keyword"==M.style?(M.marked="property","get"==t||"set"==t?O(se):(c&&M.state.fatArrowAt==M.stream.start&&(r=M.stream.match(/^\s*:\s*/,!1))&&(M.state.fatArrowAt=M.stream.pos+r[0].length),O(ue))):"number"==e||"string"==e?(M.marked=a?"property":M.style+" property",O(ue)):"jsonld-keyword"==e?O(ue):c&&H(t)?(M.marked="keyword",O(ae)):"["==e?O(_,he,V("]"),ue):"spread"==e?O(K,ue):"*"==t?(M.marked="keyword",O(ae)):":"==e?N(ue):void 0;var r}function se(e){return"variable"!=e?N(ue):(M.marked="property",O(Ie))}function ue(e){return":"==e?O(K):"("==e?N(Ie):void 0}function ce(e,t,r){function n(i,o){if(r?r.indexOf(i)>-1:","==i){var l=M.state.lexical;return"call"==l.info&&(l.pos=(l.pos||0)+1),O((function(r,n){return r==t||n==t?N():N(e)}),n)}return i==t||o==t?O():r&&r.indexOf(";")>-1?N(e):O(V(t))}return function(r,i){return r==t||i==t?O():N(e,n)}}function fe(e,t,r){for(var n=3;n"),ve):"quasi"==e?N(xe,Se):void 0}function ye(e){if("=>"==e)return O(ve)}function be(e){return e.match(/[\}\)\]]/)?O():","==e||";"==e?O(be):N(we,be)}function we(e,t){return"variable"==e||"keyword"==M.style?(M.marked="property",O(we)):"?"==t||"number"==e||"string"==e?O(we):":"==e?O(ve):"["==e?O(V("variable"),pe,V("]"),we):"("==e?N(Re,we):e.match(/[;\}\)\],]/)?void 0:O()}function xe(e,t){return"quasi"!=e?N():"${"!=t.slice(t.length-2)?O(xe):O(ve,Ce)}function Ce(e){if("}"==e)return M.marked="string-2",M.state.tokenize=w,O(xe)}function ke(e,t){return"variable"==e&&M.stream.match(/^\s*[?:]/,!1)||"?"==t?O(ke):":"==e?O(ve):"spread"==e?O(ke):N(ve)}function Se(e,t){return"<"==t?O(B(">"),ce(ve,">"),j,Se):"|"==t||"."==e||"&"==t?O(ve):"["==e?O(ve,V("]"),Se):"extends"==t||"implements"==t?(M.marked="keyword",O(ve)):"?"==t?O(ve,V(":"),ve):void 0}function Le(e,t){if("<"==t)return O(B(">"),ce(ve,">"),j,Se)}function Te(){return N(ve,Me)}function Me(e,t){if("="==t)return O(ve)}function Ne(e,t){return"enum"==t?(M.marked="keyword",O(tt)):N(Oe,he,We,He)}function Oe(e,t){return c&&H(t)?(M.marked="keyword",O(Oe)):"variable"==e?(D(t),O()):"spread"==e?O(Oe):"["==e?fe(De,"]"):"{"==e?fe(Ae,"}"):void 0}function Ae(e,t){return"variable"!=e||M.stream.match(/^\s*:/,!1)?("variable"==e&&(M.marked="property"),"spread"==e?O(Oe):"}"==e?N():"["==e?O(_,V("]"),V(":"),Ae):O(V(":"),Oe,We)):(D(t),O(We))}function De(){return N(Oe,We)}function We(e,t){if("="==t)return O(K)}function He(e){if(","==e)return O(Ne)}function Fe(e,t){if("keyword b"==e&&"else"==t)return O(B("form","else"),G,j)}function Ee(e,t){return"await"==t?O(Ee):"("==e?O(B(")"),Pe,j):void 0}function Pe(e){return"var"==e?O(Ne,ze):"variable"==e?O(ze):N(ze)}function ze(e,t){return")"==e?O():";"==e?O(ze):"in"==t||"of"==t?(M.marked="keyword",O(_,ze)):N(_,ze)}function Ie(e,t){return"*"==t?(M.marked="keyword",O(Ie)):"variable"==e?(D(t),O(Ie)):"("==e?O(z,B(")"),ce(je,")"),j,ge,G,R):c&&"<"==t?O(B(">"),ce(Te,">"),j,Ie):void 0}function Re(e,t){return"*"==t?(M.marked="keyword",O(Re)):"variable"==e?(D(t),O(Re)):"("==e?O(z,B(")"),ce(je,")"),j,ge,R):c&&"<"==t?O(B(">"),ce(Te,">"),j,Re):void 0}function Be(e,t){return"keyword"==e||"variable"==e?(M.marked="type",O(Be)):"<"==t?O(B(">"),ce(Te,">"),j):void 0}function je(e,t){return"@"==t&&O(_,je),"spread"==e?O(je):c&&H(t)?(M.marked="keyword",O(je)):c&&"this"==e?O(he,We):N(Oe,he,We)}function Ve(e,t){return"variable"==e?Ge(e,t):Ue(e,t)}function Ge(e,t){if("variable"==e)return D(t),O(Ue)}function Ue(e,t){return"<"==t?O(B(">"),ce(Te,">"),j,Ue):"extends"==t||"implements"==t||c&&","==e?("implements"==t&&(M.marked="keyword"),O(c?ve:_,Ue)):"{"==e?O(B("}"),_e,j):void 0}function _e(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||c&&H(t))&&M.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(M.marked="keyword",O(_e)):"variable"==e||"keyword"==M.style?(M.marked="property",O(Ke,_e)):"number"==e||"string"==e?O(Ke,_e):"["==e?O(_,he,V("]"),Ke,_e):"*"==t?(M.marked="keyword",O(_e)):c&&"("==e?N(Re,_e):";"==e||","==e?O(_e):"}"==e?O():"@"==t?O(_,_e):void 0}function Ke(e,t){if("!"==t)return O(Ke);if("?"==t)return O(Ke);if(":"==e)return O(ve,We);if("="==t)return O(K);var r=M.state.lexical.prev;return N(r&&"interface"==r.info?Re:Ie)}function Xe(e,t){return"*"==t?(M.marked="keyword",O(Qe,V(";"))):"default"==t?(M.marked="keyword",O(_,V(";"))):"{"==e?O(ce($e,"}"),Qe,V(";")):N(G)}function $e(e,t){return"as"==t?(M.marked="keyword",O(V("variable"))):"variable"==e?N(K,$e):void 0}function Ye(e){return"string"==e?O():"("==e?N(_):"."==e?N(q):N(qe,Ze,Qe)}function qe(e,t){return"{"==e?fe(qe,"}"):("variable"==e&&D(t),"*"==t&&(M.marked="keyword"),O(Je))}function Ze(e){if(","==e)return O(qe,Ze)}function Je(e,t){if("as"==t)return M.marked="keyword",O(qe)}function Qe(e,t){if("from"==t)return M.marked="keyword",O(_)}function et(e){return"]"==e?O():N(ce(K,"]"))}function tt(){return N(B("form"),Oe,V("{"),B("}"),ce(rt,"}"),j,j)}function rt(){return N(Oe,We)}function nt(e,t){return"operator"==e.lastType||","==e.lastType||h.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function it(e,t,r){return t.tokenize==v&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(r||0)))}return z.lex=I.lex=!0,R.lex=!0,j.lex=!0,{startState:function(e){var t={tokenize:v,lastType:"sof",cc:[],lexical:new S((e||0)-o,0,"block",!1),localVars:r.localVars,context:r.localVars&&new F(null,null,!1),indented:e||0};return r.globalVars&&"object"==typeof r.globalVars&&(t.globalVars=r.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),C(e,t)),t.tokenize!=b&&e.eatSpace())return null;var r=t.tokenize(e,t);return"comment"==n?r:(t.lastType="operator"!=n||"++"!=i&&"--"!=i?n:"incdec",T(t,r,n,i,e))},indent:function(t,n){if(t.tokenize==b||t.tokenize==w)return e.Pass;if(t.tokenize!=v)return 0;var i,a=n&&n.charAt(0),s=t.lexical;if(!/^\s*else\b/.test(n))for(var u=t.cc.length-1;u>=0;--u){var c=t.cc[u];if(c==j)s=s.prev;else if(c!=Fe&&c!=R)break}for(;("stat"==s.type||"form"==s.type)&&("}"==a||(i=t.cc[t.cc.length-1])&&(i==q||i==Z)&&!/^[,\.=+\-*:?[\(]/.test(n));)s=s.prev;l&&")"==s.type&&"stat"==s.prev.type&&(s=s.prev);var f=s.type,d=a==f;return"vardef"==f?s.indented+("operator"==t.lastType||","==t.lastType?s.info.length+1:0):"form"==f&&"{"==a?s.indented:"form"==f?s.indented+o:"stat"==f?s.indented+(nt(t,n)?l||o:0):"switch"!=s.info||d||0==r.doubleIndentSwitch?s.align?s.column+(d?0:1):s.indented+(d?0:o):s.indented+(/^(?:case|default)\b/.test(n)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:s?null:"/*",blockCommentEnd:s?null:"*/",blockCommentContinue:s?null:" * ",lineComment:s?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:s?"json":"javascript",jsonldMode:a,jsonMode:s,expressionAllowed:it,skipExpression:function(t){T(t,"atom","atom","true",new e.StringStream("",2,null))}}})),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/manifest+json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(r("./node_modules/codemirror/lib/codemirror.js"))},"./node_modules/codemirror/addon/fold/foldgutter.css":function(e,t,r){"use strict";r.r(t)},"./node_modules/codemirror/lib/codemirror.css":function(e,t,r){"use strict";r.r(t)},"./node_modules/codemirror/theme/material.css":function(e,t,r){"use strict";r.r(t)}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};!function(){"use strict";r.r(n);var e=r("./node_modules/codemirror/lib/codemirror.js"),t=r.n(e);r("./node_modules/codemirror/addon/fold/brace-fold.js"),r("./node_modules/codemirror/addon/fold/foldgutter.js"),r("./node_modules/codemirror/mode/javascript/javascript.js"),r("./node_modules/codemirror/lib/codemirror.css"),r("./node_modules/codemirror/addon/fold/foldgutter.css"),r("./node_modules/codemirror/theme/material.css");const i={init(){document.addEventListener("DOMContentLoaded",(function(){if(void 0===CLD_METADATA)return;const e=document.getElementById("meta-data");t()(e,{value:JSON.stringify(CLD_METADATA,null," "),lineNumbers:!0,theme:"material",readOnly:!0,mode:{name:"javascript",json:!0},matchBrackets:!0,foldGutter:!0,htmlMode:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],viewportMargin:50}).setSize(null,600)}))}};i.init(),n.default=i}()}(); +//# sourceMappingURL=syntax-highlight.js.map \ No newline at end of file diff --git a/js/terms-order.asset.php b/js/terms-order.asset.php index 3e89a37b4..1da050acd 100644 --- a/js/terms-order.asset.php +++ b/js/terms-order.asset.php @@ -1 +1 @@ - array(), 'version' => 'cf1ff7190192713c8dae'); + array(), 'version' => 'e1bf5df8efbf2d4112f7'); diff --git a/js/terms-order.js b/js/terms-order.js index 2d6a5f380..933e3f5e4 100644 --- a/js/terms-order.js +++ b/js/terms-order.js @@ -1 +1,2 @@ -!function(){"use strict";var t={template:"",tags:jQuery("#cld-tax-items"),tagDelimiter:window.tagsSuggestL10n&&window.tagsSuggestL10n.tagDelimiter||",",startId:null,_init:function(){if(this.tags.length){var t=this;this._sortable(),"undefined"!=typeof wpAjax&&(wpAjax.procesParseAjaxResponse=wpAjax.parseAjaxResponse,wpAjax.parseAjaxResponse=function(e,a,s){var i=wpAjax.procesParseAjaxResponse(e,a,s);if(!i.errors&&i.responses[0]&&jQuery('[data-taxonomy="'+i.responses[0].what+'"]').length){var r=jQuery(i.responses[0].data).find("label").last().text().trim();t._pushItem(i.responses[0].what,r)}return i}),void 0!==window.tagBox&&(window.tagBox.processflushTags=window.tagBox.flushTags,window.tagBox.flushTags=function(e,a,s){if(void 0===s){var i=e.prop("id"),r=jQuery("input.newtag",e),n=(a=a||!1)?jQuery(a).text():r.val(),o=window.tagBox.clean(n).split(t.tagDelimiter);for(var d in o){var l=i+":"+o[d];jQuery('[data-item="'+l+'"]').length||t._pushItem(l,o[d])}}return this.processflushTags(e,a,s)},window.tagBox.processTags=window.tagBox.parseTags,window.tagBox.parseTags=function(e){var a=this,s=e.id,i=s.split("-check-num-")[1],r=s.split("-check-num-")[0],n=jQuery(e).closest(".tagsdiv").find(".the-tags"),o=window.tagBox.clean(n.val()).split(t.tagDelimiter)[i];(new wp.api.collections.Tags).fetch({data:{slug:o}}).done((function(s){var i=!!s.length&&jQuery('[data-item="'+r+":"+s[0].id+'"]');i.length?i.remove():(jQuery(".cld-tax-order-list-item:contains(".concat(o,")")).remove(),--t.startId),a.processTags(e)}))}),jQuery("body").on("change",".selectit input",(function(){var e=jQuery(this),a=e.val(),s=e.is(":checked"),i=e.parent().text().trim();!0===s?t.tags.find('[data-item="category:'.concat(a,'"]')).length||t._pushItem("category:".concat(a),i):t.tags.find('[data-item="category:'.concat(a,'"]')).remove()}))}},_createItem:function(t,e){var a=jQuery("
  • "),s=jQuery(""),i=jQuery("");return a.addClass("cld-tax-order-list-item").attr("data-item",t),i.addClass("cld-tax-order-list-item-input").attr("type","hidden").attr("name","cld_tax_order[]").val(t),s.addClass("dashicons dashicons-menu cld-tax-order-list-item-handle"),a.append(s).append(e).append(i),a},_pushItem:function(t,e){var a=this._createItem(t,e);this.tags.append(a)},_sortable:function(){jQuery(".cld-tax-order-list").sortable({connectWith:".cld-tax-order",axis:"y",handle:".cld-tax-order-list-item-handle",placeholder:"cld-tax-order-list-item-placeholder",forcePlaceholderSize:!0,helper:"clone"})}};void 0!==window.CLDN&&(t._init(),jQuery("[data-wp-lists] .selectit input[checked]").each((function(t,e){jQuery(e).trigger("change")})))}(); \ No newline at end of file +!function(){"use strict";var e={r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t);var a={template:"",tags:jQuery("#cld-tax-items"),tagDelimiter:window.tagsSuggestL10n&&window.tagsSuggestL10n.tagDelimiter||",",startId:null,_init:function(){if(this.tags.length){var e=this;this._sortable(),"undefined"!=typeof wpAjax&&(wpAjax.procesParseAjaxResponse=wpAjax.parseAjaxResponse,wpAjax.parseAjaxResponse=function(t,a,s){var r=wpAjax.procesParseAjaxResponse(t,a,s);if(!r.errors&&r.responses[0]&&jQuery('[data-taxonomy="'+r.responses[0].what+'"]').length){var i=jQuery(r.responses[0].data).find("label").last().text().trim();e._pushItem(r.responses[0].what,i)}return r}),void 0!==window.tagBox&&(window.tagBox.processflushTags=window.tagBox.flushTags,window.tagBox.flushTags=function(t,a,s){if(void 0===s){var r=t.prop("id"),i=jQuery("input.newtag",t),n=(a=a||!1)?jQuery(a).text():i.val(),o=window.tagBox.clean(n).split(e.tagDelimiter);for(var d in o){var l=r+":"+o[d];jQuery('[data-item="'+l+'"]').length||e._pushItem(l,o[d])}}return this.processflushTags(t,a,s)},window.tagBox.processTags=window.tagBox.parseTags,window.tagBox.parseTags=function(t){var a=this,s=t.id,r=s.split("-check-num-")[1],i=s.split("-check-num-")[0],n=jQuery(t).closest(".tagsdiv").find(".the-tags"),o=window.tagBox.clean(n.val()).split(e.tagDelimiter)[r];(new wp.api.collections.Tags).fetch({data:{slug:o}}).done((function(s){var r=!!s.length&&jQuery('[data-item="'+i+":"+s[0].id+'"]');r.length?r.remove():(jQuery(".cld-tax-order-list-item:contains(".concat(o,")")).remove(),--e.startId),a.processTags(t)}))}),jQuery("body").on("change",".selectit input",(function(){var t=jQuery(this),a=t.val(),s=t.is(":checked"),r=t.parent().text().trim();!0===s?e.tags.find('[data-item="category:'.concat(a,'"]')).length||e._pushItem("category:".concat(a),r):e.tags.find('[data-item="category:'.concat(a,'"]')).remove()}))}},_createItem:function(e,t){var a=jQuery("
  • "),s=jQuery(""),r=jQuery("");return a.addClass("cld-tax-order-list-item").attr("data-item",e),r.addClass("cld-tax-order-list-item-input").attr("type","hidden").attr("name","cld_tax_order[]").val(e),s.addClass("dashicons dashicons-menu cld-tax-order-list-item-handle"),a.append(s).append(t).append(r),a},_pushItem:function(e,t){var a=this._createItem(e,t);this.tags.append(a)},_sortable:function(){jQuery(".cld-tax-order-list").sortable({connectWith:".cld-tax-order",axis:"y",handle:".cld-tax-order-list-item-handle",placeholder:"cld-tax-order-list-item-placeholder",forcePlaceholderSize:!0,helper:"clone"})}};void 0!==window.CLDN&&(a._init(),jQuery("[data-wp-lists] .selectit input[checked]").each((function(e,t){jQuery(t).trigger("change")}))),t.default=a}(); +//# sourceMappingURL=terms-order.js.map \ No newline at end of file diff --git a/js/video-init.asset.php b/js/video-init.asset.php index 6744835ea..9a19c7d16 100644 --- a/js/video-init.asset.php +++ b/js/video-init.asset.php @@ -1 +1 @@ - array(), 'version' => '01eb0d63ab6dd18040af'); + array(), 'version' => '44e1b69b81ff3dbdc83c'); diff --git a/js/video-init.js b/js/video-init.js index 03746ea4d..c73f21872 100644 --- a/js/video-init.js +++ b/js/video-init.js @@ -1 +1,2 @@ -!function(){if("undefined"!=typeof cldVideos){for(var e in cldVideos=JSON.parse(cldVideos),cldVideos){var d=cldVideos[e],o="cloudinary-video-"+e;cld.videoPlayer(o,d)}window.addEventListener("load",(function(){for(var e in cldVideos){var d="cloudinary-video-"+e,o=document.getElementById(d).getElementsByTagName("video");1===o.length&&((o=o[0]).style.width="100%",videoFreeForm&&-1===o.src.indexOf(videoFreeForm)&&!cldVideos[e].overwrite_transformations&&(o.src=o.src.replace("upload/","upload/"+videoFreeForm+"/")))}}))}}(); \ No newline at end of file +!function(){if("undefined"!=typeof cldVideos){for(var e in cldVideos=JSON.parse(cldVideos),cldVideos){var d=cldVideos[e],o="cloudinary-video-"+e;cld.videoPlayer(o,d)}window.addEventListener("load",(function(){for(var e in cldVideos){var d="cloudinary-video-"+e,o=document.getElementById(d).getElementsByTagName("video");1===o.length&&((o=o[0]).style.width="100%",videoFreeForm&&-1===o.src.indexOf(videoFreeForm)&&!cldVideos[e].overwrite_transformations&&(o.src=o.src.replace("upload/","upload/"+videoFreeForm+"/")))}}))}}(); +//# sourceMappingURL=video-init.js.map \ No newline at end of file diff --git a/js/video.js b/js/video.js index e69de29bb..314a8ed6a 100644 --- a/js/video.js +++ b/js/video.js @@ -0,0 +1,2 @@ +!function(){"use strict";var e={r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}};e.r({})}(); +//# sourceMappingURL=video.js.map \ No newline at end of file diff --git a/js/wp-color-picker-alpha.js b/js/wp-color-picker-alpha.js index 1849c2be5..279320598 100644 --- a/js/wp-color-picker-alpha.js +++ b/js/wp-color-picker-alpha.js @@ -1 +1,2 @@ -!function(o,a){var t={version:300};if("wpColorPickerAlpha"in window&&"version"in window.wpColorPickerAlpha){var r=parseInt(window.wpColorPickerAlpha.version,10);if(!isNaN(r)&&r>=t.version)return}if(!Color.fn.hasOwnProperty("to_s")){Color.fn.to_s=function(o){"hex"===(o=o||"hex")&&this._alpha<1&&(o="rgba");var a="";return"hex"===o?a=this.toString():this.error||(a=this.toCSS(o).replace(/\(\s+/,"(").replace(/\s+\)/,")")),a},window.wpColorPickerAlpha=t;var i="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAAHnlligAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHJJREFUeNpi+P///4EDBxiAGMgCCCAGFB5AADGCRBgYDh48CCRZIJS9vT2QBAggFBkmBiSAogxFBiCAoHogAKIKAlBUYTELAiAmEtABEECk20G6BOmuIl0CIMBQ/IEMkO0myiSSraaaBhZcbkUOs0HuBwDplz5uFJ3Z4gAAAABJRU5ErkJggg==";o.widget("a8c.iris",o.a8c.iris,{alphaOptions:{alphaEnabled:!1},_getColor:function(o){return o===a&&(o=this._color),this.alphaOptions.alphaEnabled?(o=o.to_s(this.alphaOptions.alphaColorType),this.alphaOptions.alphaColorWithSpace||(o=o.replace(/\s+/g,"")),o):o.toString()},_create:function(){try{this.alphaOptions=this.element.wpColorPicker("instance").alphaOptions}catch(o){}o.extend({},this.alphaOptions,{alphaEnabled:!1,alphaCustomWidth:130,alphaReset:!1,alphaColorType:"hex",alphaColorWithSpace:!1}),this._super()},_addInputListeners:function(o){var a=this,t=function(t){var r=o.val(),i=new Color(r),l=(r=r.replace(/^(#|(rgb|hsl)a?)/,""),a.alphaOptions.alphaColorType);o.removeClass("iris-error"),i.error?""!==r&&o.addClass("iris-error"):"hex"===l&&"keyup"===t.type&&r.match(/^[0-9a-fA-F]{3}$/)||i.toIEOctoHex()!==a._color.toIEOctoHex()&&a._setOption("color",a._getColor(i))};o.on("change",t).on("keyup",a._debounce(t,100)),a.options.hide&&o.one("focus",(function(){a.show()}))},_initControls:function(){if(this._super(),this.alphaOptions.alphaEnabled){var a=this,t=a.controls.strip.clone(!1,!1),r=t.find(".iris-slider-offset"),i={stripAlpha:t,stripAlphaSlider:r};t.addClass("iris-strip-alpha"),r.addClass("iris-slider-offset-alpha"),t.appendTo(a.picker.find(".iris-picker-inner")),o.each(i,(function(o,t){a.controls[o]=t})),a.controls.stripAlphaSlider.slider({orientation:"vertical",min:0,max:100,step:1,value:parseInt(100*a._color._alpha),slide:function(o,t){a.active="strip",a._color._alpha=parseFloat(t.value/100),a._change.apply(a,arguments)}})}},_dimensions:function(o){if(this._super(o),this.alphaOptions.alphaEnabled){var a,t,r,i,l,e=this,s=e.options,n=e.controls.square,p=e.picker.find(".iris-strip");for(a=Math.round(e.picker.outerWidth(!0)-(s.border?22:0)),t=Math.round(n.outerWidth()),r=Math.round((a-t)/2),i=Math.round(r/2),l=Math.round(t+2*r+2*i);l>a;)r=Math.round(r-2),i=Math.round(i-1),l=Math.round(t+2*r+2*i);n.css("margin","0"),p.width(r).css("margin-left",i+"px")}},_change:function(){var a=this,t=a.active;if(a._super(),a.alphaOptions.alphaEnabled){var r=a.controls,l=parseInt(100*a._color._alpha),e=a._color.toRgb(),s=["rgb("+e.r+","+e.g+","+e.b+") 0%","rgba("+e.r+","+e.g+","+e.b+", 0) 100%"];a.picker.closest(".wp-picker-container").find(".wp-color-result"),a.options.color=a._getColor(),r.stripAlpha.css({background:"linear-gradient(to bottom, "+s.join(", ")+"), url("+i+")"}),t&&r.stripAlphaSlider.slider("value",l),a._color.error||a.element.removeClass("iris-error").val(a.options.color),a.picker.find(".iris-palette-container").on("click.palette",".iris-palette",(function(){var t=o(this).data("color");a.alphaOptions.alphaReset&&(a._color._alpha=1,t=a._getColor()),a._setOption("color",t)}))}},_paintDimension:function(o,a){var t=this,r=!1;t.alphaOptions.alphaEnabled&&"strip"===a&&(r=t._color,t._color=new Color(r.toString()),t.hue=t._color.h()),t._super(o,a),r&&(t._color=r)},_setOption:function(o,a){var t=this;if("color"!==o||!t.alphaOptions.alphaEnabled)return t._super(o,a);a=""+a,newColor=new Color(a).setHSpace(t.options.mode),newColor.error||t._getColor(newColor)===t._getColor()||(t._color=newColor,t.options.color=t._getColor(),t.active="external",t._change())},color:function(o){return!0===o?this._color.clone():o===a?this._getColor():void this.option("color",o)}}),o.widget("wp.wpColorPicker",o.wp.wpColorPicker,{alphaOptions:{alphaEnabled:!1},_getAlphaOptions:function(){var a=this.element,t=a.data("type")||this.options.type,r=a.data("defaultColor")||a.val(),i={alphaEnabled:a.data("alphaEnabled")||!1,alphaCustomWidth:130,alphaReset:!1,alphaColorType:"rgb",alphaColorWithSpace:!1};return i.alphaEnabled&&(i.alphaEnabled=a.is("input")&&"full"===t),i.alphaEnabled?(i.alphaColorWithSpace=r&&r.match(/\s/),o.each(i,(function(o,t){var l=a.data(o)||t;switch(o){case"alphaCustomWidth":l=l?parseInt(l,10):0,l=isNaN(l)?t:l;break;case"alphaColorType":l.match(/^(hex|(rgb|hsl)a?)$/)||(l=r&&r.match(/^#/)?"hex":r&&r.match(/^hsla?/)?"hsl":t);break;default:l=!!l}i[o]=l})),i):i},_create:function(){o.support.iris&&(this.alphaOptions=this._getAlphaOptions(),this._super())},_addListeners:function(){if(!this.alphaOptions.alphaEnabled)return this._super();var a=this,t=a.element,r=a.toggler.is("a");this.alphaOptions.defaultWidth=t.width(),this.alphaOptions.alphaCustomWidth&&t.width(parseInt(this.alphaOptions.defaultWidth+this.alphaOptions.alphaCustomWidth,10)),a.toggler.css({position:"relative","background-image":"url("+i+")"}),r?a.toggler.html(''):a.toggler.append(''),a.colorAlpha=a.toggler.find("span.color-alpha").css({width:"30px",height:"100%",position:"absolute",top:0,"background-color":t.val()}),"ltr"===a.colorAlpha.css("direction")?a.colorAlpha.css({"border-bottom-left-radius":"2px","border-top-left-radius":"2px",left:0}):a.colorAlpha.css({"border-bottom-right-radius":"2px","border-top-right-radius":"2px",right:0}),t.iris({change:function(t,r){a.colorAlpha.css({"background-color":r.color.to_s(a.alphaOptions.alphaColorType)}),o.isFunction(a.options.change)&&a.options.change.call(this,t,r)}}),a.wrap.on("click.wpcolorpicker",(function(o){o.stopPropagation()})),a.toggler.click((function(){a.toggler.hasClass("wp-picker-open")?a.close():a.open()})),t.change((function(i){var l=o(this).val();(t.hasClass("iris-error")||""===l||l.match(/^(#|(rgb|hsl)a?)$/))&&(r&&a.toggler.removeAttr("style"),a.colorAlpha.css("background-color",""),o.isFunction(a.options.clear)&&a.options.clear.call(this,i))})),a.button.click((function(i){o(this).hasClass("wp-picker-default")?t.val(a.options.defaultColor).change():o(this).hasClass("wp-picker-clear")&&(t.val(""),r&&a.toggler.removeAttr("style"),a.colorAlpha.css("background-color",""),o.isFunction(a.options.clear)&&a.options.clear.call(this,i),t.trigger("change"))}))}})}}(jQuery); \ No newline at end of file +!function(o,a){var t={version:300};if("wpColorPickerAlpha"in window&&"version"in window.wpColorPickerAlpha){var r=parseInt(window.wpColorPickerAlpha.version,10);if(!isNaN(r)&&r>=t.version)return}if(!Color.fn.hasOwnProperty("to_s")){Color.fn.to_s=function(o){"hex"===(o=o||"hex")&&this._alpha<1&&(o="rgba");var a="";return"hex"===o?a=this.toString():this.error||(a=this.toCSS(o).replace(/\(\s+/,"(").replace(/\s+\)/,")")),a},window.wpColorPickerAlpha=t;var i="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAAHnlligAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHJJREFUeNpi+P///4EDBxiAGMgCCCAGFB5AADGCRBgYDh48CCRZIJS9vT2QBAggFBkmBiSAogxFBiCAoHogAKIKAlBUYTELAiAmEtABEECk20G6BOmuIl0CIMBQ/IEMkO0myiSSraaaBhZcbkUOs0HuBwDplz5uFJ3Z4gAAAABJRU5ErkJggg==";o.widget("a8c.iris",o.a8c.iris,{alphaOptions:{alphaEnabled:!1},_getColor:function(o){return o===a&&(o=this._color),this.alphaOptions.alphaEnabled?(o=o.to_s(this.alphaOptions.alphaColorType),this.alphaOptions.alphaColorWithSpace||(o=o.replace(/\s+/g,"")),o):o.toString()},_create:function(){try{this.alphaOptions=this.element.wpColorPicker("instance").alphaOptions}catch(o){}o.extend({},this.alphaOptions,{alphaEnabled:!1,alphaCustomWidth:130,alphaReset:!1,alphaColorType:"hex",alphaColorWithSpace:!1}),this._super()},_addInputListeners:function(o){var a=this,t=function(t){var r=o.val(),i=new Color(r),l=(r=r.replace(/^(#|(rgb|hsl)a?)/,""),a.alphaOptions.alphaColorType);o.removeClass("iris-error"),i.error?""!==r&&o.addClass("iris-error"):"hex"===l&&"keyup"===t.type&&r.match(/^[0-9a-fA-F]{3}$/)||i.toIEOctoHex()!==a._color.toIEOctoHex()&&a._setOption("color",a._getColor(i))};o.on("change",t).on("keyup",a._debounce(t,100)),a.options.hide&&o.one("focus",(function(){a.show()}))},_initControls:function(){if(this._super(),this.alphaOptions.alphaEnabled){var a=this,t=a.controls.strip.clone(!1,!1),r=t.find(".iris-slider-offset"),i={stripAlpha:t,stripAlphaSlider:r};t.addClass("iris-strip-alpha"),r.addClass("iris-slider-offset-alpha"),t.appendTo(a.picker.find(".iris-picker-inner")),o.each(i,(function(o,t){a.controls[o]=t})),a.controls.stripAlphaSlider.slider({orientation:"vertical",min:0,max:100,step:1,value:parseInt(100*a._color._alpha),slide:function(o,t){a.active="strip",a._color._alpha=parseFloat(t.value/100),a._change.apply(a,arguments)}})}},_dimensions:function(o){if(this._super(o),this.alphaOptions.alphaEnabled){var a,t,r,i,l,e=this,s=e.options,n=e.controls.square,p=e.picker.find(".iris-strip");for(a=Math.round(e.picker.outerWidth(!0)-(s.border?22:0)),t=Math.round(n.outerWidth()),r=Math.round((a-t)/2),i=Math.round(r/2),l=Math.round(t+2*r+2*i);l>a;)r=Math.round(r-2),i=Math.round(i-1),l=Math.round(t+2*r+2*i);n.css("margin","0"),p.width(r).css("margin-left",i+"px")}},_change:function(){var a=this,t=a.active;if(a._super(),a.alphaOptions.alphaEnabled){var r=a.controls,l=parseInt(100*a._color._alpha),e=a._color.toRgb(),s=["rgb("+e.r+","+e.g+","+e.b+") 0%","rgba("+e.r+","+e.g+","+e.b+", 0) 100%"];a.picker.closest(".wp-picker-container").find(".wp-color-result"),a.options.color=a._getColor(),r.stripAlpha.css({background:"linear-gradient(to bottom, "+s.join(", ")+"), url("+i+")"}),t&&r.stripAlphaSlider.slider("value",l),a._color.error||a.element.removeClass("iris-error").val(a.options.color),a.picker.find(".iris-palette-container").on("click.palette",".iris-palette",(function(){var t=o(this).data("color");a.alphaOptions.alphaReset&&(a._color._alpha=1,t=a._getColor()),a._setOption("color",t)}))}},_paintDimension:function(o,a){var t=this,r=!1;t.alphaOptions.alphaEnabled&&"strip"===a&&(r=t._color,t._color=new Color(r.toString()),t.hue=t._color.h()),t._super(o,a),r&&(t._color=r)},_setOption:function(o,a){var t=this;if("color"!==o||!t.alphaOptions.alphaEnabled)return t._super(o,a);a=""+a,newColor=new Color(a).setHSpace(t.options.mode),newColor.error||t._getColor(newColor)===t._getColor()||(t._color=newColor,t.options.color=t._getColor(),t.active="external",t._change())},color:function(o){return!0===o?this._color.clone():o===a?this._getColor():void this.option("color",o)}}),o.widget("wp.wpColorPicker",o.wp.wpColorPicker,{alphaOptions:{alphaEnabled:!1},_getAlphaOptions:function(){var a=this.element,t=a.data("type")||this.options.type,r=a.data("defaultColor")||a.val(),i={alphaEnabled:a.data("alphaEnabled")||!1,alphaCustomWidth:130,alphaReset:!1,alphaColorType:"rgb",alphaColorWithSpace:!1};return i.alphaEnabled&&(i.alphaEnabled=a.is("input")&&"full"===t),i.alphaEnabled?(i.alphaColorWithSpace=r&&r.match(/\s/),o.each(i,(function(o,t){var l=a.data(o)||t;switch(o){case"alphaCustomWidth":l=l?parseInt(l,10):0,l=isNaN(l)?t:l;break;case"alphaColorType":l.match(/^(hex|(rgb|hsl)a?)$/)||(l=r&&r.match(/^#/)?"hex":r&&r.match(/^hsla?/)?"hsl":t);break;default:l=!!l}i[o]=l})),i):i},_create:function(){o.support.iris&&(this.alphaOptions=this._getAlphaOptions(),this._super())},_addListeners:function(){if(!this.alphaOptions.alphaEnabled)return this._super();var a=this,t=a.element,r=a.toggler.is("a");this.alphaOptions.defaultWidth=t.width(),this.alphaOptions.alphaCustomWidth&&t.width(parseInt(this.alphaOptions.defaultWidth+this.alphaOptions.alphaCustomWidth,10)),a.toggler.css({position:"relative","background-image":"url("+i+")"}),r?a.toggler.html(''):a.toggler.append(''),a.colorAlpha=a.toggler.find("span.color-alpha").css({width:"30px",height:"100%",position:"absolute",top:0,"background-color":t.val()}),"ltr"===a.colorAlpha.css("direction")?a.colorAlpha.css({"border-bottom-left-radius":"2px","border-top-left-radius":"2px",left:0}):a.colorAlpha.css({"border-bottom-right-radius":"2px","border-top-right-radius":"2px",right:0}),t.iris({change:function(t,r){a.colorAlpha.css({"background-color":r.color.to_s(a.alphaOptions.alphaColorType)}),o.isFunction(a.options.change)&&a.options.change.call(this,t,r)}}),a.wrap.on("click.wpcolorpicker",(function(o){o.stopPropagation()})),a.toggler.click((function(){a.toggler.hasClass("wp-picker-open")?a.close():a.open()})),t.change((function(i){var l=o(this).val();(t.hasClass("iris-error")||""===l||l.match(/^(#|(rgb|hsl)a?)$/))&&(r&&a.toggler.removeAttr("style"),a.colorAlpha.css("background-color",""),o.isFunction(a.options.clear)&&a.options.clear.call(this,i))})),a.button.click((function(i){o(this).hasClass("wp-picker-default")?t.val(a.options.defaultColor).change():o(this).hasClass("wp-picker-clear")&&(t.val(""),r&&a.toggler.removeAttr("style"),a.colorAlpha.css("background-color",""),o.isFunction(a.options.clear)&&a.options.clear.call(this,i),t.trigger("change"))}))}})}}(jQuery); +//# sourceMappingURL=wp-color-picker-alpha.js.map \ No newline at end of file diff --git a/php/class-delivery.php b/php/class-delivery.php index 5e0a02956..8700c7fef 100644 --- a/php/class-delivery.php +++ b/php/class-delivery.php @@ -142,6 +142,7 @@ public function init() { add_action( 'before_delete_post', array( $this, 'delete_size_relationship' ) ); add_action( 'delete_attachment', array( $this, 'delete_size_relationship' ) ); add_action( 'cloudinary_register_sync_types', array( $this, 'register_sync_type' ), 30 ); + add_action( 'rest_pre_dispatch', array( $this, 'maybe_unset_attributes' ), 10, 3 ); add_action( 'the_post', function ( $post ) { @@ -158,6 +159,57 @@ function ( $post ) { } } + /** + * Determine if attributes should be added to image tags. + * + * @param WP_REST_Request|null $request The request object, if available. + * + * @return bool True if attributes should be added, false otherwise. + */ + public function maybe_unset_attributes( $response, $server, $request ) { + $route = $request->get_route(); + + if ( + ( + str_contains( $route, 'wp/v2/media' ) + && 'edit' === $request->get_param( 'context' ) + ) + || (bool) $request->get_header( 'x-cld-fetch-from-editor' ) + ) { + // This has a priority of 10 so can be overridden by other filters. + add_filter( + 'cloudinary_unset_attributes', + '__return_true' + ); + + add_filter( + 'cloudinary_apply_breakpoints', + '__return_false' + ); + + + if ( ! str_contains( $route, 'wp/v2/blocks/' ) ) { + add_filter( + 'cloudinary_html_skip_classes', + '__return_true' + ); + + add_filter( + 'cloudinary_tag_skip_classes', + '__return_true' + ); + + add_filter( + 'cloudinary_parse_element', + function ( $element ) { + unset( $element['atts']['class'] ); + return $element; + } + ); + } + } + } + /** * Maybe filter out Cloudinary URLs in post meta. * @@ -816,6 +868,11 @@ public function process_featured_image( $html, $post_id, $attachment_id ) { if ( empty( $html ) ) { return $html; // Ignore empty tags. } + + if ( apply_filters( 'cloudinary_html_skip_classes', false, $html, $post_id, $attachment_id ) ) { + return $html; + } + $tags = $this->get_media_tags( $html, 'img' ); $tags = array_map( array( $this, 'parse_element' ), $tags ); $tags = array_filter( $tags ); @@ -1104,7 +1161,7 @@ protected function standardize_tag( $tag_element ) { $tag_element['atts']['data-format'] = $tag_element['format']; } // Add wp-{media-type}-{id} class name. - if ( empty( $tag_element['atts']['class'] ) || ! in_array( 'wp-' . $tag_element['type'] . '-' . $tag_element['id'], $tag_element['atts']['class'], true ) ) { + if ( ! apply_filters( 'cloudinary_tag_skip_classes', false, $tag_element ) && empty( $tag_element['atts']['class'] ) || ( is_array( $tag_element['atts']['class'] ) && ! in_array( 'wp-' . $tag_element['type'] . '-' . $tag_element['id'], $tag_element['atts']['class'], true ) ) ) { $tag_element['atts']['class'][] = 'wp-' . $tag_element['type'] . '-' . $tag_element['id']; } @@ -1165,6 +1222,21 @@ protected function standardize_tag( $tag_element ) { $att = implode( ' ', $parts ); } + /** + * Unset the attributes to avoid block errors in the admin. + */ + if ( apply_filters( 'cloudinary_unset_attributes', false, $tag_element ) ) { + unset( + $tag_element['atts']['data-public-id'], + $tag_element['atts']['data-format'], + $tag_element['atts']['width'], + $tag_element['atts']['height'], + $tag_element['atts']['data-crop'], + ); + + return $tag_element; + } + // Add transformations attribute. $transformations = $this->media->get_transformations_from_string( $tag_element['atts']['src'] ); if ( false !== $this->media->get_crop_from_transformation( $transformations ) ) { @@ -1417,6 +1489,7 @@ public function parse_element( $element ) { } } } + if ( ! empty( $attributes['class'] ) ) { if ( preg_match( '/wp-post-(\d+)+/', $attributes['class'], $match ) ) { $tag_element['context'] = (int) $match[1]; @@ -1437,6 +1510,7 @@ public function parse_element( $element ) { $attributes['class'][] = 'cld-overwrite'; $tag_element['overwrite_transformations'] = true; } + $inline_transformations = $this->get_transformations_maybe( $raw_url ); if ( $inline_transformations ) { // Ensure that we don't get duplicated transformations. diff --git a/src/js/blocks.js b/src/js/blocks.js index 27c060bf2..7c0bad87e 100644 --- a/src/js/blocks.js +++ b/src/js/blocks.js @@ -1,3 +1,8 @@ +/** + * WordPress dependencies + */ +import apiFetch from '@wordpress/api-fetch'; + /** * Internal dependencies */ @@ -9,10 +14,44 @@ import MaybeReloadAfterSave from './components/maybe-reload-after-save'; // jQuery, because reasons. window.$ = window.jQuery; +// Register middleware for @wordpress/api-fetch to indicate the fetch is coming from the editor. +// Taken from https://github.com/Automattic/jetpack/blob/trunk/projects/plugins/jetpack/extensions/editor.js. +apiFetch.use( ( options, next ) => { + // Skip explicit cors requests. + if ( options.mode === 'cors' ) { + return next( options ); + } + + // If a URL is set, skip if it's not same-origin. + // @see https://html.spec.whatwg.org/multipage/origin.html#same-origin + if ( options.url ) { + try { + const url = new URL( options.url, location.href ); + if ( + url.protocol !== location.protocol || + url.hostname !== location.hostname || + url.port !== location.port + ) { + return next( options ); + } + } catch { + // Huh? Skip it. + return next( options ); + } + } + + // Ok, add header. + if ( ! options.headers ) { + options.headers = {}; + } + options.headers[ 'x-cld-fetch-from-editor' ] = 'true'; + return next( options ); +} ); + // Global Constants export const cloudinaryBlocks = { Video, Featured, Terms, - MaybeReloadAfterSave, + // MaybeReloadAfterSave, }; From e4710ddde8f4c1e1ee96c0e700222b62ecef8939 Mon Sep 17 00:00:00 2001 From: Marco Pereirinha Date: Fri, 6 Dec 2024 18:43:28 +0000 Subject: [PATCH 02/26] Add support for `source` `screset` --- php/class-delivery.php | 10 +++++----- php/class-utils.php | 20 +++++++++++--------- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/php/class-delivery.php b/php/class-delivery.php index 5c1a692b8..342061557 100644 --- a/php/class-delivery.php +++ b/php/class-delivery.php @@ -971,7 +971,7 @@ public function convert_tags( $content, $context = 'view' ) { $cached = $has_cache[ $type ]; } - $tags = $this->get_media_tags( $content, 'img|video|article' ); + $tags = $this->get_media_tags( $content, 'img|video|article|source' ); $tags = array_map( array( $this, 'parse_element' ), $tags ); $tags = array_filter( $tags ); @@ -1365,14 +1365,14 @@ public function parse_element( $element ) { return null; } - $tag_element['type'] = 'img' === $tag_element['tag'] ? 'image' : $tag_element['tag']; - $third_party_change = Utils::maybe_get_third_party_changes( $attributes ); + $tag_element['type'] = in_array( $tag_element['tag'], array( 'img', 'source' ), true ) ? 'image' : $tag_element['tag']; + $third_party_change = Utils::maybe_get_third_party_changes( $attributes, $tag_element['tag'] ); if ( ! empty( $third_party_change ) ) { Utils::log( $third_party_change, 'third-party-loading' ); return null; } - $raw_url = $attributes['src']; + $raw_url = 'source' === $tag_element['tag'] ? $attributes['srcset'] : $attributes['src']; $url = $this->maybe_unsize_url( Utils::clean_url( $this->sanitize_url( $raw_url ) ) ); $tag_element['base_url'] = $url; // Track back the found URL. @@ -1401,7 +1401,7 @@ public function parse_element( $element ) { $attributes['data-public-id'] = $public_id; $tag_element['format'] = $item['format']; - if ( 'img' === $tag_element['tag'] ) { + if ( in_array( $tag_element['tag'], array( 'img', 'source' ), true ) ) { // Check if this is a crop or a scale. $has_size = $this->media->get_size_from_url( $this->sanitize_url( $raw_url ) ); if ( ! empty( $has_size ) && ! empty( $item['height'] ) ) { diff --git a/php/class-utils.php b/php/class-utils.php index 076e74bf7..d08cdfe18 100644 --- a/php/class-utils.php +++ b/php/class-utils.php @@ -794,7 +794,7 @@ public static function get_debug_messages() { * * @return string|false */ - public static function maybe_get_third_party_changes( $attributes ) { + public static function maybe_get_third_party_changes( $attributes, $tag ) { static $filtered_keys, $filtered_classes; $lazy_keys = array( 'src', @@ -833,14 +833,16 @@ public static function maybe_get_third_party_changes( $attributes ) { $filtered_classes = apply_filters( 'cloudinary_ignored_class_keywords', $lazy_classes ); } $is = false; - if ( ! isset( $attributes['src'] ) ) { - $is = __( 'Missing SRC attribute.', 'cloudinary' ); - } elseif ( false !== strpos( $attributes['src'], 'data:image' ) ) { - $is = $attributes['src']; - } elseif ( isset( $attributes['class'] ) ) { - $classes = explode( '-', str_replace( ' ', '-', $attributes['class'] ) ); - if ( ! empty( array_intersect( $filtered_classes, $classes ) ) ) { - $is = $attributes['class']; + if ( 'source' !== $tag ) { + if ( ! isset( $attributes['src'] ) ) { + $is = __( 'Missing SRC attribute.', 'cloudinary' ); + } elseif ( false !== strpos( $attributes['src'], 'data:image' ) ) { + $is = $attributes['src']; + } elseif ( isset( $attributes['class'] ) ) { + $classes = explode( '-', str_replace( ' ', '-', $attributes['class'] ) ); + if ( ! empty( array_intersect( $filtered_classes, $classes ) ) ) { + $is = $attributes['class']; + } } } From e9fa7a764f7112396d0c24b5b6204cf00c23ce71 Mon Sep 17 00:00:00 2001 From: Marco Pereirinha Date: Tue, 10 Dec 2024 19:05:13 +0000 Subject: [PATCH 03/26] Bypass lazyload on PICTURE tag --- php/class-utils.php | 5 ++++- php/delivery/class-lazy-load.php | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/php/class-utils.php b/php/class-utils.php index d08cdfe18..cd5736069 100644 --- a/php/class-utils.php +++ b/php/class-utils.php @@ -790,7 +790,8 @@ public static function get_debug_messages() { /** * Check if the tag attributes contain possible third party manipulated data, and return found data. * - * @param array $attributes The tag attributes. + * @param array $attributes The tag attributes. + * @param string $tag The tag. * * @return string|false */ @@ -833,6 +834,8 @@ public static function maybe_get_third_party_changes( $attributes, $tag ) { $filtered_classes = apply_filters( 'cloudinary_ignored_class_keywords', $lazy_classes ); } $is = false; + + // Source tag on Picture tags are not lazy-loaded. if ( 'source' !== $tag ) { if ( ! isset( $attributes['src'] ) ) { $is = __( 'Missing SRC attribute.', 'cloudinary' ); diff --git a/php/delivery/class-lazy-load.php b/php/delivery/class-lazy-load.php index 92b2a0c9e..8624279b7 100644 --- a/php/delivery/class-lazy-load.php +++ b/php/delivery/class-lazy-load.php @@ -83,6 +83,11 @@ public function bypass_lazy_load( $bypass, $tag_element ) { $bypass = true; } + // Sources on Picture tag are not lazyloaded. + if ( 'source' === $tag_element['tag'] ) { + $bypass = true; + } + /** * Filter the classes that bypass lazy loading. * From 913c14c7bbb877f0dc364c07198c03ea80325bcb Mon Sep 17 00:00:00 2001 From: Marco Pereirinha Date: Tue, 10 Dec 2024 19:13:20 +0000 Subject: [PATCH 04/26] Update the front end overlay to account for PICTURE tags --- src/js/front-overlay.js | 77 +++++++++++++++++++++++++++++++++-------- 1 file changed, 62 insertions(+), 15 deletions(-) diff --git a/src/js/front-overlay.js b/src/js/front-overlay.js index 97024a01d..c7b872b92 100644 --- a/src/js/front-overlay.js +++ b/src/js/front-overlay.js @@ -8,24 +8,44 @@ const Front_Overlay = { init() { [ ...document.images ].forEach( ( image ) => { - this.wrapImage( image ); - } ); + const parent = image.parentNode; + if ( parent.tagName === 'PICTURE' ) { + this.processPicture( image, parent ); + image.addEventListener( 'load', this.load.bind( this, image, parent) ); + } else { + this.wrapImage( image ); + } + }); const tooltips = document.querySelectorAll( '.cld-tag' ); - tippy( tooltips, { - placement: 'bottom-start', - interactive: true, - appendTo: () => document.body, - aria: { - content: 'auto', - expanded: 'auto', - }, - content( reference ) { - return reference.template.innerHTML; - }, - allowHTML: true, - } ); + this.tippy( tooltips ); + }, + load( image, parent ) { + parent.querySelectorAll( '.overlay-tag' ).forEach( tag => tag.remove() ); + this.processPicture( image, parent ); + this.tippy( parent.querySelectorAll( '.cld-tag' ) ); + }, + processPicture( image, parent ) { + const siblings = parent.querySelectorAll( 'source' ); + if ( siblings.length > 0 ) { + siblings.forEach( + ( sibling ) => { + if ( [ sibling.src, sibling.srcset ].some( src => src.includes( image.currentSrc ) )) { + [ ...image.attributes ].forEach( + attr => { + if ( attr.name.startsWith( 'data-' ) ) { + image.removeAttribute( attr.name ); + } + } + ); + Object.assign( image.dataset, { ...sibling.dataset } ); + } + } + ); + } + + this.wrapImage( image ); }, wrapImage( image ) { if ( image.dataset.publicId ) { @@ -104,6 +124,33 @@ const Front_Overlay = { line.appendChild( title ); line.appendChild( detail ); return line; + }, + tippy( tooltips ) { + tippy( tooltips, { + placement: 'bottom-start', + interactive: true, + appendTo: () => document.body, + aria: { + content: 'auto', + expanded: 'auto', + }, + content( reference ) { + return reference.template.innerHTML; + }, + allowHTML: true, + } ); + }, + debounce( callback, wait ) { + let timeoutId = null; + return (...args) => { + window.clearTimeout( timeoutId ); + timeoutId = window.setTimeout( + () => { + callback( ...args ); + }, + wait + ); + }; } }; From e9573b265f8b4fc1786401a05b4d7a3b1a086f5e Mon Sep 17 00:00:00 2001 From: Marco Pereirinha Date: Tue, 10 Dec 2024 19:14:34 +0000 Subject: [PATCH 05/26] Prevent ReDoS, Regular Expression Denial of Service --- php/class-delivery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/class-delivery.php b/php/class-delivery.php index 342061557..6d23eb979 100644 --- a/php/class-delivery.php +++ b/php/class-delivery.php @@ -1424,7 +1424,7 @@ public function parse_element( $element ) { } } if ( ! empty( $attributes['class'] ) ) { - if ( preg_match( '/wp-post-(\d+)+/', $attributes['class'], $match ) ) { + if ( preg_match( '/wp-post-(\d+)/', $attributes['class'], $match ) ) { $tag_element['context'] = (int) $match[1]; $post_context = $tag_element['context']; } From 92e72fc7d05336236fa26515298a0ecea999caf8 Mon Sep 17 00:00:00 2001 From: Marco Pereirinha Date: Tue, 10 Dec 2024 19:15:15 +0000 Subject: [PATCH 06/26] Update compiled assets --- js/front-overlay.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/front-overlay.js b/js/front-overlay.js index bcc167f88..af1ce719a 100644 --- a/js/front-overlay.js +++ b/js/front-overlay.js @@ -1 +1 @@ -!function(){var e={616:function(e){e.exports=function(e,t){var n,r,i=0;function o(){var o,a,s=n,c=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(a=0;a=0),s.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,s.width?parseInt(s.width):0);break;case"e":n=s.precision?parseFloat(n).toExponential(s.precision):parseFloat(n).toExponential();break;case"f":n=s.precision?parseFloat(n).toFixed(s.precision):parseFloat(n);break;case"g":n=s.precision?String(Number(n.toPrecision(s.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=s.precision?n.substring(0,s.precision):n;break;case"t":n=String(!!n),n=s.precision?n.substring(0,s.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=s.precision?n.substring(0,s.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=s.precision?n.substring(0,s.precision):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase()}i.json.test(s.type)?m+=n:(!i.number.test(s.type)||f&&!s.sign?l="":(l=f?"+":"-",n=n.toString().replace(i.sign,"")),u=s.pad_char?"0"===s.pad_char?"0":s.pad_char.charAt(1):" ",p=s.width-(l+n).length,c=s.width&&p>0?u.repeat(p):"",m+=s.align?l+n+c:"0"===u?l+c+n:c+l+n)}return m}(function(e){if(s[e])return s[e];var t,n=e,r=[],o=0;for(;n;){if(null!==(t=i.text.exec(n)))r.push(t[0]);else if(null!==(t=i.modulo.exec(n)))r.push("%");else{if(null===(t=i.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){o|=1;var a=[],c=t[2],u=[];if(null===(u=i.key.exec(c)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(a.push(u[1]);""!==(c=c.substring(u[0].length));)if(null!==(u=i.key_access.exec(c)))a.push(u[1]);else{if(null===(u=i.index_access.exec(c)))throw new SyntaxError("[sprintf] failed to parse named argument key");a.push(u[1])}t[2]=a}else o|=2;if(3===o)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}n=n.substring(t[0].length)}return s[e]=r}(e),arguments)}function a(e,t){return o.apply(null,[e].concat(t||[]))}var s=Object.create(null);o,a,"undefined"!=typeof window&&(window.sprintf=o,window.vsprintf=a,void 0===(r=function(){return{sprintf:o,vsprintf:a}}.call(t,n,t,e))||(e.exports=r))}()}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e,t,r,i,o=n(616),a=n.n(o);n(604),a()(console.error);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}e={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},t=["(","?"],r={")":["("],":":["?","?:"]},i=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var u={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function p(n){var o=function(n){for(var o,a,s,c,u=[],p=[];o=n.match(i);){for(a=o[0],(s=n.substr(0,o.index).trim())&&u.push(s);c=p.pop();){if(r[a]){if(r[a][0]===c){a=r[a][1]||a;break}}else if(t.indexOf(c)>=0||e[c]3&&void 0!==arguments[3]?arguments[3]:10,a=e[t];if(y(n)&&g(r))if("function"==typeof i)if("number"==typeof o){var s={callback:i,priority:o,namespace:r};if(a[n]){var c,u=a[n].handlers;for(c=u.length;c>0&&!(o>=u[c-1].priority);c--);c===u.length?u[c]=s:u.splice(c,0,s),a.__current.forEach((function(e){e.name===n&&e.currentIndex>=c&&e.currentIndex++}))}else a[n]={handlers:[s],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,r,i,o)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}};var x=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r,i){var o=e[t];if(y(r)&&(n||g(i))){if(!o[r])return 0;var a=0;if(n)a=o[r].handlers.length,o[r]={runs:o[r].runs,handlers:[]};else for(var s=o[r].handlers,c=function(e){s[e].namespace===i&&(s.splice(e,1),a++,o.__current.forEach((function(t){t.name===r&&t.currentIndex>=e&&t.currentIndex--})))},u=s.length-1;u>=0;u--)c(u);return"hookRemoved"!==r&&e.doAction("hookRemoved",r,i),a}}};var w=function(e,t){return function(n,r){var i=e[t];return void 0!==r?n in i&&i[n].handlers.some((function(e){return e.namespace===r})):n in i}};var O=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r){var i=e[t];i[r]||(i[r]={handlers:[],runs:0}),i[r].runs++;var o=i[r].handlers;for(var a=arguments.length,s=new Array(a>1?a-1:0),c=1;c1&&void 0!==arguments[1]?arguments[1]:"default";r.data[t]=h(h(h({},m),r.data[t]),e),r.data[t][""]=h(h({},m[""]),r.data[t][""])},s=function(e,t){a(e,t),o()},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;return r.data[e]||a(void 0,e),r.dcnpgettext(e,t,n,i,o)},u=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default"},p=function(e,t,r){var i=c(r,t,e);return n?(i=n.applyFilters("i18n.gettext_with_context",i,e,t,r),n.applyFilters("i18n.gettext_with_context_"+u(r),i,e,t,r)):i};if(e&&s(e,t),n){var f=function(e){v.test(e)&&o()};n.addAction("hookAdded","core/i18n",f),n.addAction("hookRemoved","core/i18n",f)}return{getLocaleData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return r.data[e]},setLocaleData:s,resetLocaleData:function(e,t){r.data={},r.pluralForms={},s(e,t)},subscribe:function(e){return i.add(e),function(){return i.delete(e)}},__:function(e,t){var r=c(t,void 0,e);return n?(r=n.applyFilters("i18n.gettext",r,e,t),n.applyFilters("i18n.gettext_"+u(t),r,e,t)):r},_x:p,_n:function(e,t,r,i){var o=c(i,void 0,e,t,r);return n?(o=n.applyFilters("i18n.ngettext",o,e,t,r,i),n.applyFilters("i18n.ngettext_"+u(i),o,e,t,r,i)):o},_nx:function(e,t,r,i,o){var a=c(o,i,e,t,r);return n?(a=n.applyFilters("i18n.ngettext_with_context",a,e,t,r,i,o),n.applyFilters("i18n.ngettext_with_context_"+u(o),a,e,t,r,i,o)):a},isRTL:function(){return"rtl"===p("ltr","text direction")},hasTranslation:function(e,t,i){var o,a,s=t?t+""+e:e,c=!(null===(o=r.data)||void 0===o||null===(a=o[null!=i?i:"default"])||void 0===a||!a[s]);return n&&(c=n.applyFilters("i18n.has_translation",c,e,t,i),c=n.applyFilters("i18n.has_translation_"+u(i),c,e,t,i)),c}}}(void 0,void 0,k)),L=(j.getLocaleData.bind(j),j.setLocaleData.bind(j),j.resetLocaleData.bind(j),j.subscribe.bind(j),j.__.bind(j));j._x.bind(j),j._n.bind(j),j._nx.bind(j),j.isRTL.bind(j),j.hasTranslation.bind(j);function D(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function C(e){return e instanceof D(e).Element||e instanceof Element}function S(e){return e instanceof D(e).HTMLElement||e instanceof HTMLElement}function F(e){return"undefined"!=typeof ShadowRoot&&(e instanceof D(e).ShadowRoot||e instanceof ShadowRoot)}var P=Math.max,I=Math.min,M=Math.round;function R(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function H(){return!/^((?!chrome|android).)*safari/i.test(R())}function V(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&S(e)&&(i=e.offsetWidth>0&&M(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&M(r.height)/e.offsetHeight||1);var a=(C(e)?D(e):window).visualViewport,s=!H()&&n,c=(r.left+(s&&a?a.offsetLeft:0))/i,u=(r.top+(s&&a?a.offsetTop:0))/o,p=r.width/i,f=r.height/o;return{width:p,height:f,top:u,right:c+p,bottom:u+f,left:c,x:c,y:u}}function W(e){var t=D(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function N(e){return e?(e.nodeName||"").toLowerCase():null}function B(e){return((C(e)?e.ownerDocument:e.document)||window.document).documentElement}function z(e){return V(B(e)).left+W(e).scrollLeft}function q(e){return D(e).getComputedStyle(e)}function U(e){var t=q(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function $(e,t,n){void 0===n&&(n=!1);var r,i,o=S(t),a=S(t)&&function(e){var t=e.getBoundingClientRect(),n=M(t.width)/e.offsetWidth||1,r=M(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=B(t),c=V(e,a,n),u={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(o||!o&&!n)&&(("body"!==N(t)||U(s))&&(u=(r=t)!==D(r)&&S(r)?{scrollLeft:(i=r).scrollLeft,scrollTop:i.scrollTop}:W(r)),S(t)?((p=V(t,!0)).x+=t.clientLeft,p.y+=t.clientTop):s&&(p.x=z(s))),{x:c.left+u.scrollLeft-p.x,y:c.top+u.scrollTop-p.y,width:c.width,height:c.height}}function X(e){var t=V(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Z(e){return"html"===N(e)?e:e.assignedSlot||e.parentNode||(F(e)?e.host:null)||B(e)}function K(e){return["html","body","#document"].indexOf(N(e))>=0?e.ownerDocument.body:S(e)&&U(e)?e:K(Z(e))}function Y(e,t){var n;void 0===t&&(t=[]);var r=K(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=D(r),a=i?[o].concat(o.visualViewport||[],U(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(Y(Z(a)))}function J(e){return["table","td","th"].indexOf(N(e))>=0}function G(e){return S(e)&&"fixed"!==q(e).position?e.offsetParent:null}function Q(e){for(var t=D(e),n=G(e);n&&J(n)&&"static"===q(n).position;)n=G(n);return n&&("html"===N(n)||"body"===N(n)&&"static"===q(n).position)?t:n||function(e){var t=/firefox/i.test(R());if(/Trident/i.test(R())&&S(e)&&"fixed"===q(e).position)return null;var n=Z(e);for(F(n)&&(n=n.host);S(n)&&["html","body"].indexOf(N(n))<0;){var r=q(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var ee="top",te="bottom",ne="right",re="left",ie="auto",oe=[ee,te,ne,re],ae="start",se="end",ce="clippingParents",ue="viewport",pe="popper",fe="reference",le=oe.reduce((function(e,t){return e.concat([t+"-"+ae,t+"-"+se])}),[]),de=[].concat(oe,[ie]).reduce((function(e,t){return e.concat([t,t+"-"+ae,t+"-"+se])}),[]),he=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function me(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}var ve={placement:"bottom",modifiers:[],strategy:"absolute"};function ge(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function Ae(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?xe(i):null,a=i?we(i):null,s=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(o){case ee:t={x:s,y:n.y-r.height};break;case te:t={x:s,y:n.y+n.height};break;case ne:t={x:n.x+n.width,y:c};break;case re:t={x:n.x-r.width,y:c};break;default:t={x:n.x,y:n.y}}var u=o?Oe(o):null;if(null!=u){var p="y"===u?"height":"width";switch(a){case ae:t[u]=t[u]-(n[p]/2-r[p]/2);break;case se:t[u]=t[u]+(n[p]/2-r[p]/2)}}return t}var Ee={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Te(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,u=e.adaptive,p=e.roundOffsets,f=e.isFixed,l=a.x,d=void 0===l?0:l,h=a.y,m=void 0===h?0:h,v="function"==typeof p?p({x:d,y:m}):{x:d,y:m};d=v.x,m=v.y;var g=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=re,x=ee,w=window;if(u){var O=Q(n),A="clientHeight",E="clientWidth";if(O===D(n)&&"static"!==q(O=B(n)).position&&"absolute"===s&&(A="scrollHeight",E="scrollWidth"),i===ee||(i===re||i===ne)&&o===se)x=te,m-=(f&&O===w&&w.visualViewport?w.visualViewport.height:O[A])-r.height,m*=c?1:-1;if(i===re||(i===ee||i===te)&&o===se)b=ne,d-=(f&&O===w&&w.visualViewport?w.visualViewport.width:O[E])-r.width,d*=c?1:-1}var T,_=Object.assign({position:s},u&&Ee),k=!0===p?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:M(t*r)/r||0,y:M(n*r)/r||0}}({x:d,y:m}):{x:d,y:m};return d=k.x,m=k.y,c?Object.assign({},_,((T={})[x]=y?"0":"",T[b]=g?"0":"",T.transform=(w.devicePixelRatio||1)<=1?"translate("+d+"px, "+m+"px)":"translate3d("+d+"px, "+m+"px, 0)",T)):Object.assign({},_,((t={})[x]=y?m+"px":"",t[b]=g?d+"px":"",t.transform="",t))}var _e={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];S(i)&&N(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});S(r)&&N(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};var ke={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=de.reduce((function(e,n){return e[n]=function(e,t,n){var r=xe(e),i=[re,ee].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[re,ne].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e}),{}),s=a[t.placement],c=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}},je={left:"right",right:"left",bottom:"top",top:"bottom"};function Le(e){return e.replace(/left|right|bottom|top/g,(function(e){return je[e]}))}var De={start:"end",end:"start"};function Ce(e){return e.replace(/start|end/g,(function(e){return De[e]}))}function Se(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&F(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Fe(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Pe(e,t,n){return t===ue?Fe(function(e,t){var n=D(e),r=B(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,c=0;if(i){o=i.width,a=i.height;var u=H();(u||!u&&"fixed"===t)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:s+z(e),y:c}}(e,n)):C(t)?function(e,t){var n=V(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Fe(function(e){var t,n=B(e),r=W(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=P(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=P(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+z(e),c=-r.scrollTop;return"rtl"===q(i||n).direction&&(s+=P(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:c}}(B(e)))}function Ie(e,t,n,r){var i="clippingParents"===t?function(e){var t=Y(Z(e)),n=["absolute","fixed"].indexOf(q(e).position)>=0&&S(e)?Q(e):e;return C(n)?t.filter((function(e){return C(e)&&Se(e,n)&&"body"!==N(e)})):[]}(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce((function(t,n){var i=Pe(e,n,r);return t.top=P(i.top,t.top),t.right=I(i.right,t.right),t.bottom=I(i.bottom,t.bottom),t.left=P(i.left,t.left),t}),Pe(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Me(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Re(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function He(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.strategy,a=void 0===o?e.strategy:o,s=n.boundary,c=void 0===s?ce:s,u=n.rootBoundary,p=void 0===u?ue:u,f=n.elementContext,l=void 0===f?pe:f,d=n.altBoundary,h=void 0!==d&&d,m=n.padding,v=void 0===m?0:m,g=Me("number"!=typeof v?v:Re(v,oe)),y=l===pe?fe:pe,b=e.rects.popper,x=e.elements[h?y:l],w=Ie(C(x)?x:x.contextElement||B(e.elements.popper),c,p,a),O=V(e.elements.reference),A=Ae({reference:O,element:b,strategy:"absolute",placement:i}),E=Fe(Object.assign({},b,A)),T=l===pe?E:O,_={top:w.top-T.top+g.top,bottom:T.bottom-w.bottom+g.bottom,left:w.left-T.left+g.left,right:T.right-w.right+g.right},k=e.modifiersData.offset;if(l===pe&&k){var j=k[i];Object.keys(_).forEach((function(e){var t=[ne,te].indexOf(e)>=0?1:-1,n=[ee,te].indexOf(e)>=0?"y":"x";_[e]+=j[n]*t}))}return _}function Ve(e,t,n){return P(e,I(t,n))}var We={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,c=n.boundary,u=n.rootBoundary,p=n.altBoundary,f=n.padding,l=n.tether,d=void 0===l||l,h=n.tetherOffset,m=void 0===h?0:h,v=He(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:p}),g=xe(t.placement),y=we(t.placement),b=!y,x=Oe(g),w="x"===x?"y":"x",O=t.modifiersData.popperOffsets,A=t.rects.reference,E=t.rects.popper,T="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,_="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(O){if(o){var L,D="y"===x?ee:re,C="y"===x?te:ne,S="y"===x?"height":"width",F=O[x],M=F+v[D],R=F-v[C],H=d?-E[S]/2:0,V=y===ae?A[S]:E[S],W=y===ae?-E[S]:-A[S],N=t.elements.arrow,B=d&&N?X(N):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},q=z[D],U=z[C],$=Ve(0,A[S],B[S]),Z=b?A[S]/2-H-$-q-_.mainAxis:V-$-q-_.mainAxis,K=b?-A[S]/2+H+$+U+_.mainAxis:W+$+U+_.mainAxis,Y=t.elements.arrow&&Q(t.elements.arrow),J=Y?"y"===x?Y.clientTop||0:Y.clientLeft||0:0,G=null!=(L=null==k?void 0:k[x])?L:0,ie=F+K-G,oe=Ve(d?I(M,F+Z-G-J):M,F,d?P(R,ie):R);O[x]=oe,j[x]=oe-F}if(s){var se,ce="x"===x?ee:re,ue="x"===x?te:ne,pe=O[w],fe="y"===w?"height":"width",le=pe+v[ce],de=pe-v[ue],he=-1!==[ee,re].indexOf(g),me=null!=(se=null==k?void 0:k[w])?se:0,ve=he?le:pe-A[fe]-E[fe]-me+_.altAxis,ge=he?pe+A[fe]+E[fe]-me-_.altAxis:de,ye=d&&he?function(e,t,n){var r=Ve(e,t,n);return r>n?n:r}(ve,pe,ge):Ve(d?ve:le,pe,d?ge:de);O[w]=ye,j[w]=ye-pe}t.modifiersData[r]=j}},requiresIfExists:["offset"]};var Ne={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=xe(n.placement),c=Oe(s),u=[re,ne].indexOf(s)>=0?"height":"width";if(o&&a){var p=function(e,t){return Me("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Re(e,oe))}(i.padding,n),f=X(o),l="y"===c?ee:re,d="y"===c?te:ne,h=n.rects.reference[u]+n.rects.reference[c]-a[c]-n.rects.popper[u],m=a[c]-n.rects.reference[c],v=Q(o),g=v?"y"===c?v.clientHeight||0:v.clientWidth||0:0,y=h/2-m/2,b=p[l],x=g-f[u]-p[d],w=g/2-f[u]/2+y,O=Ve(b,w,x),A=c;n.modifiersData[r]=((t={})[A]=O,t.centerOffset=O-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Se(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Be(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ze(e){return[ee,ne,te,re].some((function(t){return e[t]>=0}))}var qe=ye({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,c=D(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach((function(e){e.addEventListener("scroll",n.update,be)})),s&&c.addEventListener("resize",n.update,be),function(){o&&u.forEach((function(e){e.removeEventListener("scroll",n.update,be)})),s&&c.removeEventListener("resize",n.update,be)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Ae({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,c=void 0===s||s,u={placement:xe(t.placement),variation:we(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Te(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Te(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},_e,ke,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,c=n.fallbackPlacements,u=n.padding,p=n.boundary,f=n.rootBoundary,l=n.altBoundary,d=n.flipVariations,h=void 0===d||d,m=n.allowedAutoPlacements,v=t.options.placement,g=xe(v),y=c||(g===v||!h?[Le(v)]:function(e){if(xe(e)===ie)return[];var t=Le(e);return[Ce(e),t,Ce(t)]}(v)),b=[v].concat(y).reduce((function(e,n){return e.concat(xe(n)===ie?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,u=void 0===c?de:c,p=we(r),f=p?s?le:le.filter((function(e){return we(e)===p})):oe,l=f.filter((function(e){return u.indexOf(e)>=0}));0===l.length&&(l=f);var d=l.reduce((function(t,n){return t[n]=He(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[xe(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}(t,{placement:n,boundary:p,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),x=t.rects.reference,w=t.rects.popper,O=new Map,A=!0,E=b[0],T=0;T=0,D=L?"width":"height",C=He(t,{placement:_,boundary:p,rootBoundary:f,altBoundary:l,padding:u}),S=L?j?ne:re:j?te:ee;x[D]>w[D]&&(S=Le(S));var F=Le(S),P=[];if(o&&P.push(C[k]<=0),s&&P.push(C[S]<=0,C[F]<=0),P.every((function(e){return e}))){E=_,A=!1;break}O.set(_,P)}if(A)for(var I=function(e){var t=b.find((function(t){var n=O.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},M=h?3:1;M>0;M--){if("break"===I(M))break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},We,Ne,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=He(t,{elementContext:"reference"}),s=He(t,{altBoundary:!0}),c=Be(a,r),u=Be(s,i,o),p=ze(c),f=ze(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:p,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":f})}}]}),Ue="tippy-content",$e="tippy-backdrop",Xe="tippy-arrow",Ze="tippy-svg-arrow",Ke={passive:!0,capture:!0},Ye=function(){return document.body};function Je(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function Ge(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function Qe(e,t){return"function"==typeof e?e.apply(void 0,t):e}function et(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function tt(e){return[].concat(e)}function nt(e,t){-1===e.indexOf(t)&&e.push(t)}function rt(e){return e.split("-")[0]}function it(e){return[].slice.call(e)}function ot(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function at(){return document.createElement("div")}function st(e){return["Element","Fragment"].some((function(t){return Ge(e,t)}))}function ct(e){return Ge(e,"MouseEvent")}function ut(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function pt(e){return st(e)?[e]:function(e){return Ge(e,"NodeList")}(e)?it(e):Array.isArray(e)?e:it(document.querySelectorAll(e))}function ft(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function lt(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function dt(e){var t,n=tt(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function ht(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}function mt(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var vt={isTouch:!1},gt=0;function yt(){vt.isTouch||(vt.isTouch=!0,window.performance&&document.addEventListener("mousemove",bt))}function bt(){var e=performance.now();e-gt<20&&(vt.isTouch=!1,document.removeEventListener("mousemove",bt)),gt=e}function xt(){var e=document.activeElement;if(ut(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var wt=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var Ot={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},At=Object.assign({appendTo:Ye,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Ot,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Et=Object.keys(At);function Tt(e){var t=(e.plugins||[]).reduce((function(t,n){var r,i=n.name,o=n.defaultValue;i&&(t[i]=void 0!==e[i]?e[i]:null!=(r=At[i])?r:o);return t}),{});return Object.assign({},e,t)}function _t(e,t){var n=Object.assign({},t,{content:Qe(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Tt(Object.assign({},At,{plugins:t}))):Et).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},At.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}var kt=function(){return"innerHTML"};function jt(e,t){e[kt()]=t}function Lt(e){var t=at();return!0===e?t.className=Xe:(t.className=Ze,st(e)?t.appendChild(e):jt(t,e)),t}function Dt(e,t){st(t.content)?(jt(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?jt(e,t.content):e.textContent=t.content)}function Ct(e){var t=e.firstElementChild,n=it(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(Ue)})),arrow:n.find((function(e){return e.classList.contains(Xe)||e.classList.contains(Ze)})),backdrop:n.find((function(e){return e.classList.contains($e)}))}}function St(e){var t=at(),n=at();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=at();function i(n,r){var i=Ct(t),o=i.box,a=i.content,s=i.arrow;r.theme?o.setAttribute("data-theme",r.theme):o.removeAttribute("data-theme"),"string"==typeof r.animation?o.setAttribute("data-animation",r.animation):o.removeAttribute("data-animation"),r.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?o.setAttribute("role",r.role):o.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||Dt(a,e.props),r.arrow?s?n.arrow!==r.arrow&&(o.removeChild(s),o.appendChild(Lt(r.arrow))):o.appendChild(Lt(r.arrow)):s&&o.removeChild(s)}return r.className=Ue,r.setAttribute("data-state","hidden"),Dt(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props),{popper:t,onUpdate:i}}St.$$tippy=!0;var Ft=1,Pt=[],It=[];function Mt(e,t){var n,r,i,o,a,s,c,u,p=_t(e,Object.assign({},At,Tt(ot(t)))),f=!1,l=!1,d=!1,h=!1,m=[],v=et(X,p.interactiveDebounce),g=Ft++,y=(u=p.plugins).filter((function(e,t){return u.indexOf(e)===t})),b={id:g,reference:e,popper:at(),popperInstance:null,props:p,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(i)},setProps:function(t){0;if(b.state.isDestroyed)return;F("onBeforeUpdate",[b,t]),U();var n=b.props,r=_t(e,Object.assign({},n,ot(t),{ignoreAttributes:!0}));b.props=r,q(),n.interactiveDebounce!==r.interactiveDebounce&&(M(),v=et(X,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?tt(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded");I(),S(),O&&O(n,r);b.popperInstance&&(J(),Q().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));F("onAfterUpdate",[b,t])},setContent:function(e){b.setProps({content:e})},show:function(){0;var e=b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,r=vt.isTouch&&!b.props.touch,i=Je(b.props.duration,0,At.duration);if(e||t||n||r)return;if(j().hasAttribute("disabled"))return;if(F("onShow",[b],!1),!1===b.props.onShow(b))return;b.state.isVisible=!0,k()&&(w.style.visibility="visible");S(),W(),b.state.isMounted||(w.style.transition="none");if(k()){var o=D();ft([o.box,o.content],0)}s=function(){var e;if(b.state.isVisible&&!h){if(h=!0,w.offsetHeight,w.style.transition=b.props.moveTransition,k()&&b.props.animation){var t=D(),n=t.box,r=t.content;ft([n,r],i),lt([n,r],"visible")}P(),I(),nt(It,b),null==(e=b.popperInstance)||e.forceUpdate(),F("onMount",[b]),b.props.animation&&k()&&function(e,t){B(e,t)}(i,(function(){b.state.isShown=!0,F("onShown",[b])}))}},function(){var e,t=b.props.appendTo,n=j();e=b.props.interactive&&t===Ye||"parent"===t?n.parentNode:Qe(t,[n]);e.contains(w)||e.appendChild(w);b.state.isMounted=!0,J(),!1}()},hide:function(){0;var e=!b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,r=Je(b.props.duration,1,At.duration);if(e||t||n)return;if(F("onHide",[b],!1),!1===b.props.onHide(b))return;b.state.isVisible=!1,b.state.isShown=!1,h=!1,f=!1,k()&&(w.style.visibility="hidden");if(M(),N(),S(!0),k()){var i=D(),o=i.box,a=i.content;b.props.animation&&(ft([o,a],r),lt([o,a],"hidden"))}P(),I(),b.props.animation?k()&&function(e,t){B(e,(function(){!b.state.isVisible&&w.parentNode&&w.parentNode.contains(w)&&t()}))}(r,b.unmount):b.unmount()},hideWithInteractivity:function(e){0;L().addEventListener("mousemove",v),nt(Pt,v),v(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){0;b.state.isVisible&&b.hide();if(!b.state.isMounted)return;G(),Q().forEach((function(e){e._tippy.unmount()})),w.parentNode&&w.parentNode.removeChild(w);It=It.filter((function(e){return e!==b})),b.state.isMounted=!1,F("onHidden",[b])},destroy:function(){0;if(b.state.isDestroyed)return;b.clearDelayTimeouts(),b.unmount(),U(),delete e._tippy,b.state.isDestroyed=!0,F("onDestroy",[b])}};if(!p.render)return b;var x=p.render(b),w=x.popper,O=x.onUpdate;w.setAttribute("data-tippy-root",""),w.id="tippy-"+b.id,b.popper=w,e._tippy=b,w._tippy=b;var A=y.map((function(e){return e.fn(b)})),E=e.hasAttribute("aria-expanded");return q(),I(),S(),F("onCreate",[b]),p.showOnCreate&&ee(),w.addEventListener("mouseenter",(function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()})),w.addEventListener("mouseleave",(function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&L().addEventListener("mousemove",v)})),b;function T(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function _(){return"hold"===T()[0]}function k(){var e;return!(null==(e=b.props.render)||!e.$$tippy)}function j(){return c||e}function L(){var e=j().parentNode;return e?dt(e):document}function D(){return Ct(w)}function C(e){return b.state.isMounted&&!b.state.isVisible||vt.isTouch||o&&"focus"===o.type?0:Je(b.props.delay,e?0:1,At.delay)}function S(e){void 0===e&&(e=!1),w.style.pointerEvents=b.props.interactive&&!e?"":"none",w.style.zIndex=""+b.props.zIndex}function F(e,t,n){var r;(void 0===n&&(n=!0),A.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(r=b.props)[e].apply(r,t)}function P(){var t=b.props.aria;if(t.content){var n="aria-"+t.content,r=w.id;tt(b.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(b.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var i=t&&t.replace(r,"").trim();i?e.setAttribute(n,i):e.removeAttribute(n)}}))}}function I(){!E&&b.props.aria.expanded&&tt(b.props.triggerTarget||e).forEach((function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===j()?"true":"false"):e.removeAttribute("aria-expanded")}))}function M(){L().removeEventListener("mousemove",v),Pt=Pt.filter((function(e){return e!==v}))}function R(t){if(!vt.isTouch||!d&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!b.props.interactive||!mt(w,n)){if(tt(b.props.triggerTarget||e).some((function(e){return mt(e,n)}))){if(vt.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else F("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),l=!0,setTimeout((function(){l=!1})),b.state.isMounted||N())}}}function H(){d=!0}function V(){d=!1}function W(){var e=L();e.addEventListener("mousedown",R,!0),e.addEventListener("touchend",R,Ke),e.addEventListener("touchstart",V,Ke),e.addEventListener("touchmove",H,Ke)}function N(){var e=L();e.removeEventListener("mousedown",R,!0),e.removeEventListener("touchend",R,Ke),e.removeEventListener("touchstart",V,Ke),e.removeEventListener("touchmove",H,Ke)}function B(e,t){var n=D().box;function r(e){e.target===n&&(ht(n,"remove",r),t())}if(0===e)return t();ht(n,"remove",a),ht(n,"add",r),a=r}function z(t,n,r){void 0===r&&(r=!1),tt(b.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),m.push({node:e,eventType:t,handler:n,options:r})}))}function q(){var e;_()&&(z("touchstart",$,{passive:!0}),z("touchend",Z,{passive:!0})),(e=b.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(z(e,$),e){case"mouseenter":z("mouseleave",Z);break;case"focus":z(wt?"focusout":"blur",K);break;case"focusin":z("focusout",K)}}))}function U(){m.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,i=e.options;t.removeEventListener(n,r,i)})),m=[]}function $(e){var t,n=!1;if(b.state.isEnabled&&!Y(e)&&!l){var r="focus"===(null==(t=o)?void 0:t.type);o=e,c=e.currentTarget,I(),!b.state.isVisible&&ct(e)&&Pt.forEach((function(t){return t(e)})),"click"===e.type&&(b.props.trigger.indexOf("mouseenter")<0||f)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:ee(e),"click"===e.type&&(f=!n),n&&!r&&te(e)}}function X(e){var t=e.target,n=j().contains(t)||w.contains(t);if("mousemove"!==e.type||!n){var r=Q().concat(w).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:p}:null})).filter(Boolean);(function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,i=e.popperState,o=e.props.interactiveBorder,a=rt(i.placement),s=i.modifiersData.offset;if(!s)return!0;var c="bottom"===a?s.top.y:0,u="top"===a?s.bottom.y:0,p="right"===a?s.left.x:0,f="left"===a?s.right.x:0,l=t.top-r+c>o,d=r-t.bottom-u>o,h=t.left-n+p>o,m=n-t.right-f>o;return l||d||h||m}))})(r,e)&&(M(),te(e))}}function Z(e){Y(e)||b.props.trigger.indexOf("click")>=0&&f||(b.props.interactive?b.hideWithInteractivity(e):te(e))}function K(e){b.props.trigger.indexOf("focusin")<0&&e.target!==j()||b.props.interactive&&e.relatedTarget&&w.contains(e.relatedTarget)||te(e)}function Y(e){return!!vt.isTouch&&_()!==e.type.indexOf("touch")>=0}function J(){G();var t=b.props,n=t.popperOptions,r=t.placement,i=t.offset,o=t.getReferenceClientRect,a=t.moveTransition,c=k()?Ct(w).arrow:null,u=o?{getBoundingClientRect:o,contextElement:o.contextElement||j()}:e,p={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(k()){var n=D().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}},f=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},p];k()&&c&&f.push({name:"arrow",options:{element:c,padding:3}}),f.push.apply(f,(null==n?void 0:n.modifiers)||[]),b.popperInstance=qe(u,w,Object.assign({},n,{placement:r,onFirstUpdate:s,modifiers:f}))}function G(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Q(){return it(w.querySelectorAll("[data-tippy-root]"))}function ee(e){b.clearDelayTimeouts(),e&&F("onTrigger",[b,e]),W();var t=C(!0),r=T(),i=r[0],o=r[1];vt.isTouch&&"hold"===i&&o&&(t=o),t?n=setTimeout((function(){b.show()}),t):b.show()}function te(e){if(b.clearDelayTimeouts(),F("onUntrigger",[b,e]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&f)){var t=C(!1);t?r=setTimeout((function(){b.state.isVisible&&b.hide()}),t):i=requestAnimationFrame((function(){b.hide()}))}}else N()}}function Rt(e,t){void 0===t&&(t={});var n=At.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",yt,Ke),window.addEventListener("blur",xt);var r=Object.assign({},t,{plugins:n}),i=pt(e).reduce((function(e,t){var n=t&&Mt(t,r);return n&&e.push(n),e}),[]);return st(e)?i[0]:i}Rt.defaultProps=At,Rt.setDefaultProps=function(e){Object.keys(e).forEach((function(t){At[t]=e[t]}))},Rt.currentInput=vt;Object.assign({},_e,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});Rt.setDefaultProps({render:St});var Ht=Rt;const Vt={init(){[...document.images].forEach((e=>{this.wrapImage(e)}));const e=document.querySelectorAll(".cld-tag");Ht(e,{placement:"bottom-start",interactive:!0,appendTo:()=>document.body,aria:{content:"auto",expanded:"auto"},content:e=>e.template.innerHTML,allowHTML:!0})},wrapImage(e){e.dataset.publicId?this.cldTag(e):this.wpTag(e)},createTag(e){const t=document.createElement("span");return t.classList.add("overlay-tag"),e.parentNode.insertBefore(t,e),t},cldTag(e){const t=this.createTag(e);t.template=this.createTemplate(e),t.innerText=L("Cloudinary","cloudinary"),t.classList.add("cld-tag")},wpTag(e){const t=this.createTag(e);t.innerText=L("WordPress","cloudinary"),t.classList.add("wp-tag")},createTemplate(e){const t=document.createElement("div");t.classList.add("cld-tag-info"),t.appendChild(this.makeLine(L("Local size","cloudinary"),e.dataset.filesize)),t.appendChild(this.makeLine(L("Optimized size","cloudinary"),e.dataset.optsize)),t.appendChild(this.makeLine(L("Optimized format","cloudinary"),e.dataset.optformat)),e.dataset.percent&&t.appendChild(this.makeLine(L("Reduction","cloudinary"),e.dataset.percent+"%")),t.appendChild(this.makeLine(L("Transformations","cloudinary"),e.dataset.transformations)),e.dataset.transformationCrop&&t.appendChild(this.makeLine(L("Crop transformations","cloudinary"),e.dataset.transformationCrop));const n=document.createElement("a");return n.classList.add("edit-link"),n.href=e.dataset.permalink,n.innerText=L("Edit asset","cloudinary"),t.appendChild(this.makeLine("","",n)),t},makeLine(e,t,n){const r=document.createElement("div"),i=document.createElement("span"),o=document.createElement("span");return i.innerText=e,i.classList.add("title"),o.innerText=t,n&&o.appendChild(n),r.appendChild(i),r.appendChild(o),r}};window.addEventListener("load",(()=>Vt.init()))}()}(); \ No newline at end of file +!function(){var e={616:function(e){e.exports=function(e,t){var n,r,i=0;function o(){var o,a,s=n,c=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(a=0;a=0),s.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,s.width?parseInt(s.width):0);break;case"e":n=s.precision?parseFloat(n).toExponential(s.precision):parseFloat(n).toExponential();break;case"f":n=s.precision?parseFloat(n).toFixed(s.precision):parseFloat(n);break;case"g":n=s.precision?String(Number(n.toPrecision(s.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=s.precision?n.substring(0,s.precision):n;break;case"t":n=String(!!n),n=s.precision?n.substring(0,s.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=s.precision?n.substring(0,s.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=s.precision?n.substring(0,s.precision):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase()}i.json.test(s.type)?m+=n:(!i.number.test(s.type)||f&&!s.sign?l="":(l=f?"+":"-",n=n.toString().replace(i.sign,"")),u=s.pad_char?"0"===s.pad_char?"0":s.pad_char.charAt(1):" ",p=s.width-(l+n).length,c=s.width&&p>0?u.repeat(p):"",m+=s.align?l+n+c:"0"===u?l+c+n:c+l+n)}return m}(function(e){if(s[e])return s[e];var t,n=e,r=[],o=0;for(;n;){if(null!==(t=i.text.exec(n)))r.push(t[0]);else if(null!==(t=i.modulo.exec(n)))r.push("%");else{if(null===(t=i.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){o|=1;var a=[],c=t[2],u=[];if(null===(u=i.key.exec(c)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(a.push(u[1]);""!==(c=c.substring(u[0].length));)if(null!==(u=i.key_access.exec(c)))a.push(u[1]);else{if(null===(u=i.index_access.exec(c)))throw new SyntaxError("[sprintf] failed to parse named argument key");a.push(u[1])}t[2]=a}else o|=2;if(3===o)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}n=n.substring(t[0].length)}return s[e]=r}(e),arguments)}function a(e,t){return o.apply(null,[e].concat(t||[]))}var s=Object.create(null);o,a,"undefined"!=typeof window&&(window.sprintf=o,window.vsprintf=a,void 0===(r=function(){return{sprintf:o,vsprintf:a}}.call(t,n,t,e))||(e.exports=r))}()}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e,t,r,i,o=n(616),a=n.n(o);n(604),a()(console.error);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}e={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},t=["(","?"],r={")":["("],":":["?","?:"]},i=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var u={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function p(n){var o=function(n){for(var o,a,s,c,u=[],p=[];o=n.match(i);){for(a=o[0],(s=n.substr(0,o.index).trim())&&u.push(s);c=p.pop();){if(r[a]){if(r[a][0]===c){a=r[a][1]||a;break}}else if(t.indexOf(c)>=0||e[c]3&&void 0!==arguments[3]?arguments[3]:10,a=e[t];if(y(n)&&g(r))if("function"==typeof i)if("number"==typeof o){var s={callback:i,priority:o,namespace:r};if(a[n]){var c,u=a[n].handlers;for(c=u.length;c>0&&!(o>=u[c-1].priority);c--);c===u.length?u[c]=s:u.splice(c,0,s),a.__current.forEach((function(e){e.name===n&&e.currentIndex>=c&&e.currentIndex++}))}else a[n]={handlers:[s],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,r,i,o)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}};var x=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r,i){var o=e[t];if(y(r)&&(n||g(i))){if(!o[r])return 0;var a=0;if(n)a=o[r].handlers.length,o[r]={runs:o[r].runs,handlers:[]};else for(var s=o[r].handlers,c=function(e){s[e].namespace===i&&(s.splice(e,1),a++,o.__current.forEach((function(t){t.name===r&&t.currentIndex>=e&&t.currentIndex--})))},u=s.length-1;u>=0;u--)c(u);return"hookRemoved"!==r&&e.doAction("hookRemoved",r,i),a}}};var w=function(e,t){return function(n,r){var i=e[t];return void 0!==r?n in i&&i[n].handlers.some((function(e){return e.namespace===r})):n in i}};var O=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r){var i=e[t];i[r]||(i[r]={handlers:[],runs:0}),i[r].runs++;var o=i[r].handlers;for(var a=arguments.length,s=new Array(a>1?a-1:0),c=1;c1&&void 0!==arguments[1]?arguments[1]:"default";r.data[t]=h(h(h({},m),r.data[t]),e),r.data[t][""]=h(h({},m[""]),r.data[t][""])},s=function(e,t){a(e,t),o()},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;return r.data[e]||a(void 0,e),r.dcnpgettext(e,t,n,i,o)},u=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default"},p=function(e,t,r){var i=c(r,t,e);return n?(i=n.applyFilters("i18n.gettext_with_context",i,e,t,r),n.applyFilters("i18n.gettext_with_context_"+u(r),i,e,t,r)):i};if(e&&s(e,t),n){var f=function(e){v.test(e)&&o()};n.addAction("hookAdded","core/i18n",f),n.addAction("hookRemoved","core/i18n",f)}return{getLocaleData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return r.data[e]},setLocaleData:s,resetLocaleData:function(e,t){r.data={},r.pluralForms={},s(e,t)},subscribe:function(e){return i.add(e),function(){return i.delete(e)}},__:function(e,t){var r=c(t,void 0,e);return n?(r=n.applyFilters("i18n.gettext",r,e,t),n.applyFilters("i18n.gettext_"+u(t),r,e,t)):r},_x:p,_n:function(e,t,r,i){var o=c(i,void 0,e,t,r);return n?(o=n.applyFilters("i18n.ngettext",o,e,t,r,i),n.applyFilters("i18n.ngettext_"+u(i),o,e,t,r,i)):o},_nx:function(e,t,r,i,o){var a=c(o,i,e,t,r);return n?(a=n.applyFilters("i18n.ngettext_with_context",a,e,t,r,i,o),n.applyFilters("i18n.ngettext_with_context_"+u(o),a,e,t,r,i,o)):a},isRTL:function(){return"rtl"===p("ltr","text direction")},hasTranslation:function(e,t,i){var o,a,s=t?t+""+e:e,c=!(null===(o=r.data)||void 0===o||null===(a=o[null!=i?i:"default"])||void 0===a||!a[s]);return n&&(c=n.applyFilters("i18n.has_translation",c,e,t,i),c=n.applyFilters("i18n.has_translation_"+u(i),c,e,t,i)),c}}}(void 0,void 0,k)),L=(j.getLocaleData.bind(j),j.setLocaleData.bind(j),j.resetLocaleData.bind(j),j.subscribe.bind(j),j.__.bind(j));j._x.bind(j),j._n.bind(j),j._nx.bind(j),j.isRTL.bind(j),j.hasTranslation.bind(j);function D(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function C(e){return e instanceof D(e).Element||e instanceof Element}function S(e){return e instanceof D(e).HTMLElement||e instanceof HTMLElement}function F(e){return"undefined"!=typeof ShadowRoot&&(e instanceof D(e).ShadowRoot||e instanceof ShadowRoot)}var P=Math.max,I=Math.min,M=Math.round;function R(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function H(){return!/^((?!chrome|android).)*safari/i.test(R())}function V(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&S(e)&&(i=e.offsetWidth>0&&M(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&M(r.height)/e.offsetHeight||1);var a=(C(e)?D(e):window).visualViewport,s=!H()&&n,c=(r.left+(s&&a?a.offsetLeft:0))/i,u=(r.top+(s&&a?a.offsetTop:0))/o,p=r.width/i,f=r.height/o;return{width:p,height:f,top:u,right:c+p,bottom:u+f,left:c,x:c,y:u}}function W(e){var t=D(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function N(e){return e?(e.nodeName||"").toLowerCase():null}function B(e){return((C(e)?e.ownerDocument:e.document)||window.document).documentElement}function z(e){return V(B(e)).left+W(e).scrollLeft}function q(e){return D(e).getComputedStyle(e)}function U(e){var t=q(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function $(e,t,n){void 0===n&&(n=!1);var r,i,o=S(t),a=S(t)&&function(e){var t=e.getBoundingClientRect(),n=M(t.width)/e.offsetWidth||1,r=M(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=B(t),c=V(e,a,n),u={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(o||!o&&!n)&&(("body"!==N(t)||U(s))&&(u=(r=t)!==D(r)&&S(r)?{scrollLeft:(i=r).scrollLeft,scrollTop:i.scrollTop}:W(r)),S(t)?((p=V(t,!0)).x+=t.clientLeft,p.y+=t.clientTop):s&&(p.x=z(s))),{x:c.left+u.scrollLeft-p.x,y:c.top+u.scrollTop-p.y,width:c.width,height:c.height}}function X(e){var t=V(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Z(e){return"html"===N(e)?e:e.assignedSlot||e.parentNode||(F(e)?e.host:null)||B(e)}function K(e){return["html","body","#document"].indexOf(N(e))>=0?e.ownerDocument.body:S(e)&&U(e)?e:K(Z(e))}function Y(e,t){var n;void 0===t&&(t=[]);var r=K(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=D(r),a=i?[o].concat(o.visualViewport||[],U(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(Y(Z(a)))}function J(e){return["table","td","th"].indexOf(N(e))>=0}function G(e){return S(e)&&"fixed"!==q(e).position?e.offsetParent:null}function Q(e){for(var t=D(e),n=G(e);n&&J(n)&&"static"===q(n).position;)n=G(n);return n&&("html"===N(n)||"body"===N(n)&&"static"===q(n).position)?t:n||function(e){var t=/firefox/i.test(R());if(/Trident/i.test(R())&&S(e)&&"fixed"===q(e).position)return null;var n=Z(e);for(F(n)&&(n=n.host);S(n)&&["html","body"].indexOf(N(n))<0;){var r=q(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var ee="top",te="bottom",ne="right",re="left",ie="auto",oe=[ee,te,ne,re],ae="start",se="end",ce="clippingParents",ue="viewport",pe="popper",fe="reference",le=oe.reduce((function(e,t){return e.concat([t+"-"+ae,t+"-"+se])}),[]),de=[].concat(oe,[ie]).reduce((function(e,t){return e.concat([t,t+"-"+ae,t+"-"+se])}),[]),he=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function me(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}var ve={placement:"bottom",modifiers:[],strategy:"absolute"};function ge(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function Ae(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?xe(i):null,a=i?we(i):null,s=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(o){case ee:t={x:s,y:n.y-r.height};break;case te:t={x:s,y:n.y+n.height};break;case ne:t={x:n.x+n.width,y:c};break;case re:t={x:n.x-r.width,y:c};break;default:t={x:n.x,y:n.y}}var u=o?Oe(o):null;if(null!=u){var p="y"===u?"height":"width";switch(a){case ae:t[u]=t[u]-(n[p]/2-r[p]/2);break;case se:t[u]=t[u]+(n[p]/2-r[p]/2)}}return t}var Ee={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Te(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,u=e.adaptive,p=e.roundOffsets,f=e.isFixed,l=a.x,d=void 0===l?0:l,h=a.y,m=void 0===h?0:h,v="function"==typeof p?p({x:d,y:m}):{x:d,y:m};d=v.x,m=v.y;var g=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=re,x=ee,w=window;if(u){var O=Q(n),A="clientHeight",E="clientWidth";if(O===D(n)&&"static"!==q(O=B(n)).position&&"absolute"===s&&(A="scrollHeight",E="scrollWidth"),i===ee||(i===re||i===ne)&&o===se)x=te,m-=(f&&O===w&&w.visualViewport?w.visualViewport.height:O[A])-r.height,m*=c?1:-1;if(i===re||(i===ee||i===te)&&o===se)b=ne,d-=(f&&O===w&&w.visualViewport?w.visualViewport.width:O[E])-r.width,d*=c?1:-1}var T,_=Object.assign({position:s},u&&Ee),k=!0===p?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:M(t*r)/r||0,y:M(n*r)/r||0}}({x:d,y:m}):{x:d,y:m};return d=k.x,m=k.y,c?Object.assign({},_,((T={})[x]=y?"0":"",T[b]=g?"0":"",T.transform=(w.devicePixelRatio||1)<=1?"translate("+d+"px, "+m+"px)":"translate3d("+d+"px, "+m+"px, 0)",T)):Object.assign({},_,((t={})[x]=y?m+"px":"",t[b]=g?d+"px":"",t.transform="",t))}var _e={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];S(i)&&N(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});S(r)&&N(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};var ke={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=de.reduce((function(e,n){return e[n]=function(e,t,n){var r=xe(e),i=[re,ee].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[re,ne].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e}),{}),s=a[t.placement],c=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}},je={left:"right",right:"left",bottom:"top",top:"bottom"};function Le(e){return e.replace(/left|right|bottom|top/g,(function(e){return je[e]}))}var De={start:"end",end:"start"};function Ce(e){return e.replace(/start|end/g,(function(e){return De[e]}))}function Se(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&F(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Fe(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Pe(e,t,n){return t===ue?Fe(function(e,t){var n=D(e),r=B(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,c=0;if(i){o=i.width,a=i.height;var u=H();(u||!u&&"fixed"===t)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:s+z(e),y:c}}(e,n)):C(t)?function(e,t){var n=V(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Fe(function(e){var t,n=B(e),r=W(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=P(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=P(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+z(e),c=-r.scrollTop;return"rtl"===q(i||n).direction&&(s+=P(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:c}}(B(e)))}function Ie(e,t,n,r){var i="clippingParents"===t?function(e){var t=Y(Z(e)),n=["absolute","fixed"].indexOf(q(e).position)>=0&&S(e)?Q(e):e;return C(n)?t.filter((function(e){return C(e)&&Se(e,n)&&"body"!==N(e)})):[]}(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce((function(t,n){var i=Pe(e,n,r);return t.top=P(i.top,t.top),t.right=I(i.right,t.right),t.bottom=I(i.bottom,t.bottom),t.left=P(i.left,t.left),t}),Pe(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Me(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Re(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function He(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.strategy,a=void 0===o?e.strategy:o,s=n.boundary,c=void 0===s?ce:s,u=n.rootBoundary,p=void 0===u?ue:u,f=n.elementContext,l=void 0===f?pe:f,d=n.altBoundary,h=void 0!==d&&d,m=n.padding,v=void 0===m?0:m,g=Me("number"!=typeof v?v:Re(v,oe)),y=l===pe?fe:pe,b=e.rects.popper,x=e.elements[h?y:l],w=Ie(C(x)?x:x.contextElement||B(e.elements.popper),c,p,a),O=V(e.elements.reference),A=Ae({reference:O,element:b,strategy:"absolute",placement:i}),E=Fe(Object.assign({},b,A)),T=l===pe?E:O,_={top:w.top-T.top+g.top,bottom:T.bottom-w.bottom+g.bottom,left:w.left-T.left+g.left,right:T.right-w.right+g.right},k=e.modifiersData.offset;if(l===pe&&k){var j=k[i];Object.keys(_).forEach((function(e){var t=[ne,te].indexOf(e)>=0?1:-1,n=[ee,te].indexOf(e)>=0?"y":"x";_[e]+=j[n]*t}))}return _}function Ve(e,t,n){return P(e,I(t,n))}var We={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,c=n.boundary,u=n.rootBoundary,p=n.altBoundary,f=n.padding,l=n.tether,d=void 0===l||l,h=n.tetherOffset,m=void 0===h?0:h,v=He(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:p}),g=xe(t.placement),y=we(t.placement),b=!y,x=Oe(g),w="x"===x?"y":"x",O=t.modifiersData.popperOffsets,A=t.rects.reference,E=t.rects.popper,T="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,_="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(O){if(o){var L,D="y"===x?ee:re,C="y"===x?te:ne,S="y"===x?"height":"width",F=O[x],M=F+v[D],R=F-v[C],H=d?-E[S]/2:0,V=y===ae?A[S]:E[S],W=y===ae?-E[S]:-A[S],N=t.elements.arrow,B=d&&N?X(N):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},q=z[D],U=z[C],$=Ve(0,A[S],B[S]),Z=b?A[S]/2-H-$-q-_.mainAxis:V-$-q-_.mainAxis,K=b?-A[S]/2+H+$+U+_.mainAxis:W+$+U+_.mainAxis,Y=t.elements.arrow&&Q(t.elements.arrow),J=Y?"y"===x?Y.clientTop||0:Y.clientLeft||0:0,G=null!=(L=null==k?void 0:k[x])?L:0,ie=F+K-G,oe=Ve(d?I(M,F+Z-G-J):M,F,d?P(R,ie):R);O[x]=oe,j[x]=oe-F}if(s){var se,ce="x"===x?ee:re,ue="x"===x?te:ne,pe=O[w],fe="y"===w?"height":"width",le=pe+v[ce],de=pe-v[ue],he=-1!==[ee,re].indexOf(g),me=null!=(se=null==k?void 0:k[w])?se:0,ve=he?le:pe-A[fe]-E[fe]-me+_.altAxis,ge=he?pe+A[fe]+E[fe]-me-_.altAxis:de,ye=d&&he?function(e,t,n){var r=Ve(e,t,n);return r>n?n:r}(ve,pe,ge):Ve(d?ve:le,pe,d?ge:de);O[w]=ye,j[w]=ye-pe}t.modifiersData[r]=j}},requiresIfExists:["offset"]};var Ne={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=xe(n.placement),c=Oe(s),u=[re,ne].indexOf(s)>=0?"height":"width";if(o&&a){var p=function(e,t){return Me("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Re(e,oe))}(i.padding,n),f=X(o),l="y"===c?ee:re,d="y"===c?te:ne,h=n.rects.reference[u]+n.rects.reference[c]-a[c]-n.rects.popper[u],m=a[c]-n.rects.reference[c],v=Q(o),g=v?"y"===c?v.clientHeight||0:v.clientWidth||0:0,y=h/2-m/2,b=p[l],x=g-f[u]-p[d],w=g/2-f[u]/2+y,O=Ve(b,w,x),A=c;n.modifiersData[r]=((t={})[A]=O,t.centerOffset=O-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Se(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Be(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ze(e){return[ee,ne,te,re].some((function(t){return e[t]>=0}))}var qe=ye({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,c=D(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach((function(e){e.addEventListener("scroll",n.update,be)})),s&&c.addEventListener("resize",n.update,be),function(){o&&u.forEach((function(e){e.removeEventListener("scroll",n.update,be)})),s&&c.removeEventListener("resize",n.update,be)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Ae({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,c=void 0===s||s,u={placement:xe(t.placement),variation:we(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Te(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Te(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},_e,ke,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,c=n.fallbackPlacements,u=n.padding,p=n.boundary,f=n.rootBoundary,l=n.altBoundary,d=n.flipVariations,h=void 0===d||d,m=n.allowedAutoPlacements,v=t.options.placement,g=xe(v),y=c||(g===v||!h?[Le(v)]:function(e){if(xe(e)===ie)return[];var t=Le(e);return[Ce(e),t,Ce(t)]}(v)),b=[v].concat(y).reduce((function(e,n){return e.concat(xe(n)===ie?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,u=void 0===c?de:c,p=we(r),f=p?s?le:le.filter((function(e){return we(e)===p})):oe,l=f.filter((function(e){return u.indexOf(e)>=0}));0===l.length&&(l=f);var d=l.reduce((function(t,n){return t[n]=He(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[xe(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}(t,{placement:n,boundary:p,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),x=t.rects.reference,w=t.rects.popper,O=new Map,A=!0,E=b[0],T=0;T=0,D=L?"width":"height",C=He(t,{placement:_,boundary:p,rootBoundary:f,altBoundary:l,padding:u}),S=L?j?ne:re:j?te:ee;x[D]>w[D]&&(S=Le(S));var F=Le(S),P=[];if(o&&P.push(C[k]<=0),s&&P.push(C[S]<=0,C[F]<=0),P.every((function(e){return e}))){E=_,A=!1;break}O.set(_,P)}if(A)for(var I=function(e){var t=b.find((function(t){var n=O.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},M=h?3:1;M>0;M--){if("break"===I(M))break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},We,Ne,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=He(t,{elementContext:"reference"}),s=He(t,{altBoundary:!0}),c=Be(a,r),u=Be(s,i,o),p=ze(c),f=ze(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:p,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":f})}}]}),Ue="tippy-content",$e="tippy-backdrop",Xe="tippy-arrow",Ze="tippy-svg-arrow",Ke={passive:!0,capture:!0},Ye=function(){return document.body};function Je(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function Ge(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function Qe(e,t){return"function"==typeof e?e.apply(void 0,t):e}function et(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function tt(e){return[].concat(e)}function nt(e,t){-1===e.indexOf(t)&&e.push(t)}function rt(e){return e.split("-")[0]}function it(e){return[].slice.call(e)}function ot(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function at(){return document.createElement("div")}function st(e){return["Element","Fragment"].some((function(t){return Ge(e,t)}))}function ct(e){return Ge(e,"MouseEvent")}function ut(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function pt(e){return st(e)?[e]:function(e){return Ge(e,"NodeList")}(e)?it(e):Array.isArray(e)?e:it(document.querySelectorAll(e))}function ft(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function lt(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function dt(e){var t,n=tt(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function ht(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}function mt(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var vt={isTouch:!1},gt=0;function yt(){vt.isTouch||(vt.isTouch=!0,window.performance&&document.addEventListener("mousemove",bt))}function bt(){var e=performance.now();e-gt<20&&(vt.isTouch=!1,document.removeEventListener("mousemove",bt)),gt=e}function xt(){var e=document.activeElement;if(ut(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var wt=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var Ot={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},At=Object.assign({appendTo:Ye,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Ot,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Et=Object.keys(At);function Tt(e){var t=(e.plugins||[]).reduce((function(t,n){var r,i=n.name,o=n.defaultValue;i&&(t[i]=void 0!==e[i]?e[i]:null!=(r=At[i])?r:o);return t}),{});return Object.assign({},e,t)}function _t(e,t){var n=Object.assign({},t,{content:Qe(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Tt(Object.assign({},At,{plugins:t}))):Et).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},At.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}var kt=function(){return"innerHTML"};function jt(e,t){e[kt()]=t}function Lt(e){var t=at();return!0===e?t.className=Xe:(t.className=Ze,st(e)?t.appendChild(e):jt(t,e)),t}function Dt(e,t){st(t.content)?(jt(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?jt(e,t.content):e.textContent=t.content)}function Ct(e){var t=e.firstElementChild,n=it(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(Ue)})),arrow:n.find((function(e){return e.classList.contains(Xe)||e.classList.contains(Ze)})),backdrop:n.find((function(e){return e.classList.contains($e)}))}}function St(e){var t=at(),n=at();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=at();function i(n,r){var i=Ct(t),o=i.box,a=i.content,s=i.arrow;r.theme?o.setAttribute("data-theme",r.theme):o.removeAttribute("data-theme"),"string"==typeof r.animation?o.setAttribute("data-animation",r.animation):o.removeAttribute("data-animation"),r.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?o.setAttribute("role",r.role):o.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||Dt(a,e.props),r.arrow?s?n.arrow!==r.arrow&&(o.removeChild(s),o.appendChild(Lt(r.arrow))):o.appendChild(Lt(r.arrow)):s&&o.removeChild(s)}return r.className=Ue,r.setAttribute("data-state","hidden"),Dt(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props),{popper:t,onUpdate:i}}St.$$tippy=!0;var Ft=1,Pt=[],It=[];function Mt(e,t){var n,r,i,o,a,s,c,u,p=_t(e,Object.assign({},At,Tt(ot(t)))),f=!1,l=!1,d=!1,h=!1,m=[],v=et(X,p.interactiveDebounce),g=Ft++,y=(u=p.plugins).filter((function(e,t){return u.indexOf(e)===t})),b={id:g,reference:e,popper:at(),popperInstance:null,props:p,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(i)},setProps:function(t){0;if(b.state.isDestroyed)return;F("onBeforeUpdate",[b,t]),U();var n=b.props,r=_t(e,Object.assign({},n,ot(t),{ignoreAttributes:!0}));b.props=r,q(),n.interactiveDebounce!==r.interactiveDebounce&&(M(),v=et(X,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?tt(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded");I(),S(),O&&O(n,r);b.popperInstance&&(J(),Q().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));F("onAfterUpdate",[b,t])},setContent:function(e){b.setProps({content:e})},show:function(){0;var e=b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,r=vt.isTouch&&!b.props.touch,i=Je(b.props.duration,0,At.duration);if(e||t||n||r)return;if(j().hasAttribute("disabled"))return;if(F("onShow",[b],!1),!1===b.props.onShow(b))return;b.state.isVisible=!0,k()&&(w.style.visibility="visible");S(),W(),b.state.isMounted||(w.style.transition="none");if(k()){var o=D();ft([o.box,o.content],0)}s=function(){var e;if(b.state.isVisible&&!h){if(h=!0,w.offsetHeight,w.style.transition=b.props.moveTransition,k()&&b.props.animation){var t=D(),n=t.box,r=t.content;ft([n,r],i),lt([n,r],"visible")}P(),I(),nt(It,b),null==(e=b.popperInstance)||e.forceUpdate(),F("onMount",[b]),b.props.animation&&k()&&function(e,t){B(e,t)}(i,(function(){b.state.isShown=!0,F("onShown",[b])}))}},function(){var e,t=b.props.appendTo,n=j();e=b.props.interactive&&t===Ye||"parent"===t?n.parentNode:Qe(t,[n]);e.contains(w)||e.appendChild(w);b.state.isMounted=!0,J(),!1}()},hide:function(){0;var e=!b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,r=Je(b.props.duration,1,At.duration);if(e||t||n)return;if(F("onHide",[b],!1),!1===b.props.onHide(b))return;b.state.isVisible=!1,b.state.isShown=!1,h=!1,f=!1,k()&&(w.style.visibility="hidden");if(M(),N(),S(!0),k()){var i=D(),o=i.box,a=i.content;b.props.animation&&(ft([o,a],r),lt([o,a],"hidden"))}P(),I(),b.props.animation?k()&&function(e,t){B(e,(function(){!b.state.isVisible&&w.parentNode&&w.parentNode.contains(w)&&t()}))}(r,b.unmount):b.unmount()},hideWithInteractivity:function(e){0;L().addEventListener("mousemove",v),nt(Pt,v),v(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){0;b.state.isVisible&&b.hide();if(!b.state.isMounted)return;G(),Q().forEach((function(e){e._tippy.unmount()})),w.parentNode&&w.parentNode.removeChild(w);It=It.filter((function(e){return e!==b})),b.state.isMounted=!1,F("onHidden",[b])},destroy:function(){0;if(b.state.isDestroyed)return;b.clearDelayTimeouts(),b.unmount(),U(),delete e._tippy,b.state.isDestroyed=!0,F("onDestroy",[b])}};if(!p.render)return b;var x=p.render(b),w=x.popper,O=x.onUpdate;w.setAttribute("data-tippy-root",""),w.id="tippy-"+b.id,b.popper=w,e._tippy=b,w._tippy=b;var A=y.map((function(e){return e.fn(b)})),E=e.hasAttribute("aria-expanded");return q(),I(),S(),F("onCreate",[b]),p.showOnCreate&&ee(),w.addEventListener("mouseenter",(function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()})),w.addEventListener("mouseleave",(function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&L().addEventListener("mousemove",v)})),b;function T(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function _(){return"hold"===T()[0]}function k(){var e;return!(null==(e=b.props.render)||!e.$$tippy)}function j(){return c||e}function L(){var e=j().parentNode;return e?dt(e):document}function D(){return Ct(w)}function C(e){return b.state.isMounted&&!b.state.isVisible||vt.isTouch||o&&"focus"===o.type?0:Je(b.props.delay,e?0:1,At.delay)}function S(e){void 0===e&&(e=!1),w.style.pointerEvents=b.props.interactive&&!e?"":"none",w.style.zIndex=""+b.props.zIndex}function F(e,t,n){var r;(void 0===n&&(n=!0),A.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(r=b.props)[e].apply(r,t)}function P(){var t=b.props.aria;if(t.content){var n="aria-"+t.content,r=w.id;tt(b.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(b.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var i=t&&t.replace(r,"").trim();i?e.setAttribute(n,i):e.removeAttribute(n)}}))}}function I(){!E&&b.props.aria.expanded&&tt(b.props.triggerTarget||e).forEach((function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===j()?"true":"false"):e.removeAttribute("aria-expanded")}))}function M(){L().removeEventListener("mousemove",v),Pt=Pt.filter((function(e){return e!==v}))}function R(t){if(!vt.isTouch||!d&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!b.props.interactive||!mt(w,n)){if(tt(b.props.triggerTarget||e).some((function(e){return mt(e,n)}))){if(vt.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else F("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),l=!0,setTimeout((function(){l=!1})),b.state.isMounted||N())}}}function H(){d=!0}function V(){d=!1}function W(){var e=L();e.addEventListener("mousedown",R,!0),e.addEventListener("touchend",R,Ke),e.addEventListener("touchstart",V,Ke),e.addEventListener("touchmove",H,Ke)}function N(){var e=L();e.removeEventListener("mousedown",R,!0),e.removeEventListener("touchend",R,Ke),e.removeEventListener("touchstart",V,Ke),e.removeEventListener("touchmove",H,Ke)}function B(e,t){var n=D().box;function r(e){e.target===n&&(ht(n,"remove",r),t())}if(0===e)return t();ht(n,"remove",a),ht(n,"add",r),a=r}function z(t,n,r){void 0===r&&(r=!1),tt(b.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),m.push({node:e,eventType:t,handler:n,options:r})}))}function q(){var e;_()&&(z("touchstart",$,{passive:!0}),z("touchend",Z,{passive:!0})),(e=b.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(z(e,$),e){case"mouseenter":z("mouseleave",Z);break;case"focus":z(wt?"focusout":"blur",K);break;case"focusin":z("focusout",K)}}))}function U(){m.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,i=e.options;t.removeEventListener(n,r,i)})),m=[]}function $(e){var t,n=!1;if(b.state.isEnabled&&!Y(e)&&!l){var r="focus"===(null==(t=o)?void 0:t.type);o=e,c=e.currentTarget,I(),!b.state.isVisible&&ct(e)&&Pt.forEach((function(t){return t(e)})),"click"===e.type&&(b.props.trigger.indexOf("mouseenter")<0||f)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:ee(e),"click"===e.type&&(f=!n),n&&!r&&te(e)}}function X(e){var t=e.target,n=j().contains(t)||w.contains(t);if("mousemove"!==e.type||!n){var r=Q().concat(w).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:p}:null})).filter(Boolean);(function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,i=e.popperState,o=e.props.interactiveBorder,a=rt(i.placement),s=i.modifiersData.offset;if(!s)return!0;var c="bottom"===a?s.top.y:0,u="top"===a?s.bottom.y:0,p="right"===a?s.left.x:0,f="left"===a?s.right.x:0,l=t.top-r+c>o,d=r-t.bottom-u>o,h=t.left-n+p>o,m=n-t.right-f>o;return l||d||h||m}))})(r,e)&&(M(),te(e))}}function Z(e){Y(e)||b.props.trigger.indexOf("click")>=0&&f||(b.props.interactive?b.hideWithInteractivity(e):te(e))}function K(e){b.props.trigger.indexOf("focusin")<0&&e.target!==j()||b.props.interactive&&e.relatedTarget&&w.contains(e.relatedTarget)||te(e)}function Y(e){return!!vt.isTouch&&_()!==e.type.indexOf("touch")>=0}function J(){G();var t=b.props,n=t.popperOptions,r=t.placement,i=t.offset,o=t.getReferenceClientRect,a=t.moveTransition,c=k()?Ct(w).arrow:null,u=o?{getBoundingClientRect:o,contextElement:o.contextElement||j()}:e,p={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(k()){var n=D().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}},f=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},p];k()&&c&&f.push({name:"arrow",options:{element:c,padding:3}}),f.push.apply(f,(null==n?void 0:n.modifiers)||[]),b.popperInstance=qe(u,w,Object.assign({},n,{placement:r,onFirstUpdate:s,modifiers:f}))}function G(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Q(){return it(w.querySelectorAll("[data-tippy-root]"))}function ee(e){b.clearDelayTimeouts(),e&&F("onTrigger",[b,e]),W();var t=C(!0),r=T(),i=r[0],o=r[1];vt.isTouch&&"hold"===i&&o&&(t=o),t?n=setTimeout((function(){b.show()}),t):b.show()}function te(e){if(b.clearDelayTimeouts(),F("onUntrigger",[b,e]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&f)){var t=C(!1);t?r=setTimeout((function(){b.state.isVisible&&b.hide()}),t):i=requestAnimationFrame((function(){b.hide()}))}}else N()}}function Rt(e,t){void 0===t&&(t={});var n=At.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",yt,Ke),window.addEventListener("blur",xt);var r=Object.assign({},t,{plugins:n}),i=pt(e).reduce((function(e,t){var n=t&&Mt(t,r);return n&&e.push(n),e}),[]);return st(e)?i[0]:i}Rt.defaultProps=At,Rt.setDefaultProps=function(e){Object.keys(e).forEach((function(t){At[t]=e[t]}))},Rt.currentInput=vt;Object.assign({},_e,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});Rt.setDefaultProps({render:St});var Ht=Rt;const Vt={init(){[...document.images].forEach((e=>{const t=e.parentNode;"PICTURE"===t.tagName?(this.processPicture(e,t),e.addEventListener("load",this.load.bind(this,e,t))):this.wrapImage(e)}));const e=document.querySelectorAll(".cld-tag");this.tippy(e)},load(e,t){t.querySelectorAll(".overlay-tag").forEach((e=>e.remove())),this.processPicture(e,t),this.tippy(t.querySelectorAll(".cld-tag"))},processPicture(e,t){const n=t.querySelectorAll("source");n.length>0&&n.forEach((t=>{[t.src,t.srcset].some((t=>t.includes(e.currentSrc)))&&([...e.attributes].forEach((t=>{t.name.startsWith("data-")&&e.removeAttribute(t.name)})),Object.assign(e.dataset,{...t.dataset}))})),this.wrapImage(e)},wrapImage(e){e.dataset.publicId?this.cldTag(e):this.wpTag(e)},createTag(e){const t=document.createElement("span");return t.classList.add("overlay-tag"),e.parentNode.insertBefore(t,e),t},cldTag(e){const t=this.createTag(e);t.template=this.createTemplate(e),t.innerText=L("Cloudinary","cloudinary"),t.classList.add("cld-tag")},wpTag(e){const t=this.createTag(e);t.innerText=L("WordPress","cloudinary"),t.classList.add("wp-tag")},createTemplate(e){const t=document.createElement("div");t.classList.add("cld-tag-info"),t.appendChild(this.makeLine(L("Local size","cloudinary"),e.dataset.filesize)),t.appendChild(this.makeLine(L("Optimized size","cloudinary"),e.dataset.optsize)),t.appendChild(this.makeLine(L("Optimized format","cloudinary"),e.dataset.optformat)),e.dataset.percent&&t.appendChild(this.makeLine(L("Reduction","cloudinary"),e.dataset.percent+"%")),t.appendChild(this.makeLine(L("Transformations","cloudinary"),e.dataset.transformations)),e.dataset.transformationCrop&&t.appendChild(this.makeLine(L("Crop transformations","cloudinary"),e.dataset.transformationCrop));const n=document.createElement("a");return n.classList.add("edit-link"),n.href=e.dataset.permalink,n.innerText=L("Edit asset","cloudinary"),t.appendChild(this.makeLine("","",n)),t},makeLine(e,t,n){const r=document.createElement("div"),i=document.createElement("span"),o=document.createElement("span");return i.innerText=e,i.classList.add("title"),o.innerText=t,n&&o.appendChild(n),r.appendChild(i),r.appendChild(o),r},tippy(e){Ht(e,{placement:"bottom-start",interactive:!0,appendTo:()=>document.body,aria:{content:"auto",expanded:"auto"},content:e=>e.template.innerHTML,allowHTML:!0})},debounce(e,t){let n=null;return(...r)=>{window.clearTimeout(n),n=window.setTimeout((()=>{e(...r)}),t)}}};window.addEventListener("load",(()=>Vt.init()))}()}(); \ No newline at end of file From 1f1fed0a1ad9d8ad901fce3d824a13eed2355752 Mon Sep 17 00:00:00 2001 From: Marco Pereirinha Date: Wed, 11 Dec 2024 17:15:39 +0000 Subject: [PATCH 07/26] Cleanup Cloudinary cron on deactivation and full cleanup --- php/class-cron.php | 8 ++++++++ php/class-deactivation.php | 25 +++++++++++++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/php/class-cron.php b/php/class-cron.php index 8f2da6294..36a5419df 100644 --- a/php/class-cron.php +++ b/php/class-cron.php @@ -448,4 +448,12 @@ public function cleanup_failed_cron() { $this->locker->delete_lock_file( $this->init_time ); } + /** + * Allow cleanup of the locker. + * + * @return void + */ + public function cleanup_locker() { + $this->locker->delete_lock_file(); + } } diff --git a/php/class-deactivation.php b/php/class-deactivation.php index 511f34498..f1f9b391a 100644 --- a/php/class-deactivation.php +++ b/php/class-deactivation.php @@ -479,6 +479,7 @@ protected function cleanup() { $this->cleanup_post_type(); $this->drop_tables(); $this->cleanup_options(); + $this->cleanup_cron(); // If we got this far, let's remove the cron event. wp_clear_scheduled_hook( 'cloudinary_cleanup_event' ); @@ -600,4 +601,28 @@ protected function cleanup_options() { delete_transient( $key ); } } + + /** + * Remove all cron-related tasks. + * + * @return void + */ + protected function cleanup_cron() { + // Get the Cron instance. + $cron_instance = Cron::get_instance(); + $schedule = $cron_instance->get_schedule(); + + // Unregister all registered schedules. + if ( ! empty( $schedule ) ) { + foreach ( array_keys( $schedule ) as $schedule_name ) { + $cron_instance->unregister_schedule( $schedule_name ); + } + } + + // Remove any lock files or objects used by the Locker instance. + $cron_instance->cleanup_locker(); + + // Delete the cron schedule option saved in database. + delete_option( Cron::CRON_META_KEY ); + } } From 2b29fa6a660ec4f2c453ea8255bfddacc447c229 Mon Sep 17 00:00:00 2001 From: Marco Pereirinha Date: Wed, 11 Dec 2024 18:44:23 +0000 Subject: [PATCH 08/26] Clean up legacy cron jobs --- php/class-deactivation.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/php/class-deactivation.php b/php/class-deactivation.php index f1f9b391a..2f0e4cfaa 100644 --- a/php/class-deactivation.php +++ b/php/class-deactivation.php @@ -480,6 +480,7 @@ protected function cleanup() { $this->drop_tables(); $this->cleanup_options(); $this->cleanup_cron(); + $this->cleanup_legacy_cron(); // If we got this far, let's remove the cron event. wp_clear_scheduled_hook( 'cloudinary_cleanup_event' ); @@ -625,4 +626,27 @@ protected function cleanup_cron() { // Delete the cron schedule option saved in database. delete_option( Cron::CRON_META_KEY ); } + + /** + * Cleanup legacy cron jobs. + * + * @return void + */ + protected function cleanup_legacy_cron() { + wp_clear_scheduled_hook( 'cloudinary_status' ); + + $jobs = array( + 'cloudinary_rest_api_connectivity', + 'cloudinary_resume_queue', + 'cloudinary_resume_upgrade', + 'cloudinary_sync_items', + ); + + foreach ( $jobs as $job ) { + $time = wp_next_scheduled( $job ); + if ( false !== $time ) { + wp_clear_scheduled_hook( $job ); + } + } + } } From beae197d16dd5f6fbcf8d17c32f94c687065841e Mon Sep 17 00:00:00 2001 From: JJ Date: Thu, 12 Dec 2024 16:58:59 +0000 Subject: [PATCH 09/26] WIP: still some classes causing issues but getting there --- php/class-delivery.php | 17 +++++++++++++++-- php/class-media.php | 2 ++ php/delivery/class-responsive-breakpoints.php | 14 ++++++++++++++ 3 files changed, 31 insertions(+), 2 deletions(-) diff --git a/php/class-delivery.php b/php/class-delivery.php index d43e13491..da0f04b55 100644 --- a/php/class-delivery.php +++ b/php/class-delivery.php @@ -142,7 +142,7 @@ public function init() { add_action( 'before_delete_post', array( $this, 'delete_size_relationship' ) ); add_action( 'delete_attachment', array( $this, 'delete_size_relationship' ) ); add_action( 'cloudinary_register_sync_types', array( $this, 'register_sync_type' ), 30 ); - add_action( 'rest_pre_dispatch', array( $this, 'maybe_unset_attributes' ), 10, 3 ); + add_action( 'rest_request_before_callbacks', array( $this, 'maybe_unset_attributes' ), 10, 3 ); add_action( 'the_post', function ( $post ) { @@ -166,7 +166,7 @@ function ( $post ) { * * @return bool True if attributes should be added, false otherwise. */ - public function maybe_unset_attributes( $response, $server, $request ) { + public function maybe_unset_attributes( $response, $handler, $request ) { $route = $request->get_route(); if ( @@ -187,6 +187,17 @@ public function maybe_unset_attributes( $response, $server, $request ) { '__return_false' ); + add_filter( + 'cloudinary_parse_element', static function ( $tag_element ) { + $tag_element['breakpoints'] = false; + return $tag_element; + } + ); + + add_filter( + 'cloudinary_skip_responsive_breakpoints', + '__return_true' + ); if ( ! str_contains( $route, 'wp/v2/blocks/' ) ) { add_filter( @@ -1238,6 +1249,8 @@ protected function standardize_tag( $tag_element ) { $tag_element['atts']['width'], $tag_element['atts']['height'], $tag_element['atts']['data-crop'], + $tag_element['atts']['srcset'], + $tagelement['atts']['data-responsive'] ); return $tag_element; diff --git a/php/class-media.php b/php/class-media.php index c23990305..e8f04d0b8 100644 --- a/php/class-media.php +++ b/php/class-media.php @@ -1870,6 +1870,8 @@ public function image_srcset( $sources, $size_array, $image_src, $image_meta, $a return $sources; } + return $sources; + $cloudinary_id = isset( $image_meta['cloudinary_id'] ) ? $image_meta['cloudinary_id'] : $this->cloudinary_id( $attachment_id ); if ( ! $cloudinary_id ) { return $sources; // Return WordPress default sources. diff --git a/php/delivery/class-responsive-breakpoints.php b/php/delivery/class-responsive-breakpoints.php index 43c2babaa..e6c922a61 100644 --- a/php/delivery/class-responsive-breakpoints.php +++ b/php/delivery/class-responsive-breakpoints.php @@ -59,6 +59,20 @@ public function add_features( $tag_element ) { return $tag_element; } + /** + * Do not add the responsive breakpoint features.. + * + * @hook cloudinary_skip_responsive_breakpoints + * + * @since 3.2.4 + * + * @param $skip_features {bool} True to skip adding in the features. + * @param $tag_element {array} The tag element. + */ + if ( apply_filters( 'cloudinary_skip_responsive_breakpoints', false, $tag_element ) ) { + return $tag_element; + } + // Bypass file formats that shouldn't have Responsive Images. if ( in_array( From c32bee1beaf404af3ff3c8ae31c49550d6586eed Mon Sep 17 00:00:00 2001 From: Marco Pereirinha Date: Fri, 13 Dec 2024 17:12:52 +0000 Subject: [PATCH 10/26] Ensure that there's a to use --- php/class-delivery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/class-delivery.php b/php/class-delivery.php index 6d23eb979..202d029bb 100644 --- a/php/class-delivery.php +++ b/php/class-delivery.php @@ -1372,7 +1372,7 @@ public function parse_element( $element ) { return null; } - $raw_url = 'source' === $tag_element['tag'] ? $attributes['srcset'] : $attributes['src']; + $raw_url = 'source' === $tag_element['tag'] && ! empty( $attributes['srcset'] ) ? $attributes['srcset'] : $attributes['src']; $url = $this->maybe_unsize_url( Utils::clean_url( $this->sanitize_url( $raw_url ) ) ); $tag_element['base_url'] = $url; // Track back the found URL. From 9a79c02806cfd2d9922308d36c76b37a8e75b398 Mon Sep 17 00:00:00 2001 From: JJ Date: Thu, 19 Dec 2024 14:01:23 +0000 Subject: [PATCH 11/26] adding in conditions for removing the class (wip) --- php/class-delivery.php | 38 +++++++++++++++++++++++++++++++++----- 1 file changed, 33 insertions(+), 5 deletions(-) diff --git a/php/class-delivery.php b/php/class-delivery.php index da0f04b55..5022af6d6 100644 --- a/php/class-delivery.php +++ b/php/class-delivery.php @@ -162,9 +162,11 @@ function ( $post ) { /** * Determine if attributes should be added to image tags. * + * @param WP_REST_Response $response The response object. + * @param WP_REST_Server $handler The request handler. * @param WP_REST_Request|null $request The request object, if available. * - * @return bool True if attributes should be added, false otherwise. + * @return void */ public function maybe_unset_attributes( $response, $handler, $request ) { $route = $request->get_route(); @@ -200,14 +202,24 @@ public function maybe_unset_attributes( $response, $handler, $request ) { ); if ( ! str_contains( $route, 'wp/v2/blocks/' ) ) { + + // TODO: remove this if it doesn't do anything. add_filter( 'cloudinary_html_skip_classes', - '__return_true' + function ( $skip, $html, $post_id, $attachment_id ) { + return true; + } ); add_filter( 'cloudinary_tag_skip_classes', - '__return_true' + function ( $skip, $tag_element ) { + // This is very handwaving -- it looks for user uploaded images which will have the post id class added. + $is_uploads = (bool) str_contains( $tag_element['atts']['src'], '/uploads/' ); + return ! $is_uploads; + }, + 10, + 2 ); add_filter( @@ -1177,8 +1189,23 @@ protected function standardize_tag( $tag_element ) { if ( isset( $tag_element['format'] ) ) { $tag_element['atts']['data-format'] = $tag_element['format']; } + + $skip_classes = apply_filters( 'cloudinary_tag_skip_classes', false, $tag_element ); // Add wp-{media-type}-{id} class name. - if ( ! apply_filters( 'cloudinary_tag_skip_classes', false, $tag_element ) && empty( $tag_element['atts']['class'] ) || ( is_array( $tag_element['atts']['class'] ) && ! in_array( 'wp-' . $tag_element['type'] . '-' . $tag_element['id'], $tag_element['atts']['class'], true ) ) ) { + if ( + ! $skip_classes + && + ( + empty( $tag_element['atts']['class'] ) + || + ( + is_array( $tag_element['atts']['class'] ?? '' ) + && + ! in_array( 'wp-' . $tag_element['type'] . '-' . $tag_element['id'], $tag_element['atts']['class'], true ) + ) + ) + ) { + $tag_element['atts']['class'] = $tag_element['atts']['class'] ?? array(); $tag_element['atts']['class'][] = 'wp-' . $tag_element['type'] . '-' . $tag_element['id']; } @@ -1250,7 +1277,7 @@ protected function standardize_tag( $tag_element ) { $tag_element['atts']['height'], $tag_element['atts']['data-crop'], $tag_element['atts']['srcset'], - $tagelement['atts']['data-responsive'] + $tag_element['atts']['data-responsive'] ); return $tag_element; @@ -1292,6 +1319,7 @@ protected function standardize_tag( $tag_element ) { * @return {string} */ $permalink = apply_filters( 'cloudinary_edit_asset_permalink', add_query_arg( 'asset', $tag_element['id'], $base_url ) ); + $tag_element['atts']['data-permalink'] = $permalink; } From a6ecd4af3a005716ef9f8e36d4a22091541ddad4 Mon Sep 17 00:00:00 2001 From: Marco Pereirinha Date: Fri, 20 Dec 2024 15:45:18 +0000 Subject: [PATCH 12/26] Remove unecessary logic to hanlde the reload --- src/js/blocks.js | 2 -- src/js/components/maybe-reload-after-save.js | 25 -------------------- 2 files changed, 27 deletions(-) delete mode 100644 src/js/components/maybe-reload-after-save.js diff --git a/src/js/blocks.js b/src/js/blocks.js index 7c0bad87e..3cd0e30d3 100644 --- a/src/js/blocks.js +++ b/src/js/blocks.js @@ -9,7 +9,6 @@ import apiFetch from '@wordpress/api-fetch'; import Video from './components/video'; import Featured from './components/featured-image'; import Terms from './components/terms-inspector'; -import MaybeReloadAfterSave from './components/maybe-reload-after-save'; // jQuery, because reasons. window.$ = window.jQuery; @@ -53,5 +52,4 @@ export const cloudinaryBlocks = { Video, Featured, Terms, - // MaybeReloadAfterSave, }; diff --git a/src/js/components/maybe-reload-after-save.js b/src/js/components/maybe-reload-after-save.js deleted file mode 100644 index b934e4988..000000000 --- a/src/js/components/maybe-reload-after-save.js +++ /dev/null @@ -1,25 +0,0 @@ -import { registerPlugin } from '@wordpress/plugins'; -import { useSelect } from '@wordpress/data'; -import { useEffect } from '@wordpress/element'; - -const MaybeReloadAfterSave = () => { - const isSaving = useSelect( ( select ) => - select( 'core/editor' ).isSavingPost() - ); - const isDirty = useSelect( ( select ) => - select( 'core/editor' ).isEditedPostDirty() - ); - const { storage } = window?.CLDN || null; - - useEffect( () => { - if ( isSaving && ! isDirty && 'cld' === storage ) { - window.location.reload(); - } - }, [ isSaving ] ); -}; - -registerPlugin( 'cloudinary-maybe-reload-after-save', { - render: MaybeReloadAfterSave, -} ); - -export default MaybeReloadAfterSave; From a155d3d1bd40428014a12cbb72ab20285dda7e13 Mon Sep 17 00:00:00 2001 From: Marco Pereirinha Date: Fri, 20 Dec 2024 15:48:47 +0000 Subject: [PATCH 13/26] Add `is_asset` method --- php/class-assets.php | 24 ++++++++++++++++++++++++ php/class-delivery.php | 5 ++--- 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/php/class-assets.php b/php/class-assets.php index 3884586ac..4c366b2b0 100644 --- a/php/class-assets.php +++ b/php/class-assets.php @@ -1265,6 +1265,30 @@ public function register_settings( $pages ) { return $pages; } + /** + * Checks if the URL is an asset. + * + * @param string $url The URL to check. + * + * @return bool + */ + public function is_asset( $url ) { + global $wpdb; + + // Bail early if it's not an URL. + if ( empty( parse_url( $url, PHP_URL_HOST ) ) ) { + return false; + } + + $url = Utils::clean_url( $url ); + + $wpdb->cld_table = Utils::get_relationship_table(); + $prepare = $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->cld_table WHERE sized_url = %s AND sync_type = 'asset';", $url ); + $result = $wpdb->get_var( $prepare ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery, WordPress.DB.PreparedSQL.NotPrepared + + return (bool) $result; + } + /** * Get the plugins table structure. * diff --git a/php/class-delivery.php b/php/class-delivery.php index 5022af6d6..5bb72c881 100644 --- a/php/class-delivery.php +++ b/php/class-delivery.php @@ -214,9 +214,8 @@ function ( $skip, $html, $post_id, $attachment_id ) { add_filter( 'cloudinary_tag_skip_classes', function ( $skip, $tag_element ) { - // This is very handwaving -- it looks for user uploaded images which will have the post id class added. - $is_uploads = (bool) str_contains( $tag_element['atts']['src'], '/uploads/' ); - return ! $is_uploads; + // Bail on additional assets. + return $this->plugin->get_component( 'assets' )->is_asset( $tag_element['atts']['src'] ); }, 10, 2 From 57b4f3ca1c57f845c95121b39b4ea84e51aea0e6 Mon Sep 17 00:00:00 2001 From: Marco Pereirinha Date: Fri, 20 Dec 2024 16:02:07 +0000 Subject: [PATCH 14/26] Cleanup an minor improvements --- php/class-delivery.php | 28 ++++++++-------------------- php/class-media.php | 2 -- 2 files changed, 8 insertions(+), 22 deletions(-) diff --git a/php/class-delivery.php b/php/class-delivery.php index 5bb72c881..de299f6cd 100644 --- a/php/class-delivery.php +++ b/php/class-delivery.php @@ -172,11 +172,11 @@ public function maybe_unset_attributes( $response, $handler, $request ) { $route = $request->get_route(); if ( - ( - str_contains( $route, 'wp/v2/media' ) + (bool) $request->get_header( 'x-cld-fetch-from-editor' ) + || ( + false !== strpos( $route, 'wp/v2/media' ) && 'edit' === $request->get_param( 'context' ) ) - || (bool) $request->get_header( 'x-cld-fetch-from-editor' ) ) { // This has a priority of 10 so can be overridden by other filters. add_filter( @@ -190,7 +190,8 @@ public function maybe_unset_attributes( $response, $handler, $request ) { ); add_filter( - 'cloudinary_parse_element', static function ( $tag_element ) { + 'cloudinary_parse_element', + static function ( $tag_element ) { $tag_element['breakpoints'] = false; return $tag_element; } @@ -201,16 +202,7 @@ public function maybe_unset_attributes( $response, $handler, $request ) { '__return_true' ); - if ( ! str_contains( $route, 'wp/v2/blocks/' ) ) { - - // TODO: remove this if it doesn't do anything. - add_filter( - 'cloudinary_html_skip_classes', - function ( $skip, $html, $post_id, $attachment_id ) { - return true; - } - ); - + if ( false === strpos( $route, 'wp/v2/blocks/' ) ) { add_filter( 'cloudinary_tag_skip_classes', function ( $skip, $tag_element ) { @@ -891,10 +883,6 @@ public function process_featured_image( $html, $post_id, $attachment_id ) { return $html; // Ignore empty tags. } - if ( apply_filters( 'cloudinary_html_skip_classes', false, $html, $post_id, $attachment_id ) ) { - return $html; - } - $tags = $this->get_media_tags( $html, 'img' ); $tags = array_map( array( $this, 'parse_element' ), $tags ); $tags = array_filter( $tags ); @@ -1198,13 +1186,13 @@ protected function standardize_tag( $tag_element ) { empty( $tag_element['atts']['class'] ) || ( - is_array( $tag_element['atts']['class'] ?? '' ) + is_array( $tag_element['atts']['class'] ) && ! in_array( 'wp-' . $tag_element['type'] . '-' . $tag_element['id'], $tag_element['atts']['class'], true ) ) ) ) { - $tag_element['atts']['class'] = $tag_element['atts']['class'] ?? array(); + $tag_element['atts']['class'] = ! empty( $tag_element['atts']['class'] ) ? $tag_element['atts']['class'] : array(); $tag_element['atts']['class'][] = 'wp-' . $tag_element['type'] . '-' . $tag_element['id']; } diff --git a/php/class-media.php b/php/class-media.php index e8f04d0b8..c23990305 100644 --- a/php/class-media.php +++ b/php/class-media.php @@ -1870,8 +1870,6 @@ public function image_srcset( $sources, $size_array, $image_src, $image_meta, $a return $sources; } - return $sources; - $cloudinary_id = isset( $image_meta['cloudinary_id'] ) ? $image_meta['cloudinary_id'] : $this->cloudinary_id( $attachment_id ); if ( ! $cloudinary_id ) { return $sources; // Return WordPress default sources. From 9e38c560c1829298f7c617df27e186a2252d3a90 Mon Sep 17 00:00:00 2001 From: Marco Pereirinha Date: Fri, 20 Dec 2024 16:02:24 +0000 Subject: [PATCH 15/26] Update docblock --- php/class-delivery.php | 22 +++++++++++++++++++ php/delivery/class-responsive-breakpoints.php | 10 +++++---- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/php/class-delivery.php b/php/class-delivery.php index de299f6cd..fe7a3515a 100644 --- a/php/class-delivery.php +++ b/php/class-delivery.php @@ -1177,7 +1177,20 @@ protected function standardize_tag( $tag_element ) { $tag_element['atts']['data-format'] = $tag_element['format']; } + /** + * Maybe skip the classes for th tag element. + * + * @hook cloudinary_tag_skip_classes + * @since 3.2.4 + * @default {false} + * + * @param $skip {bool} True to unset attributes. + * @param $tag_element {array} The tag element. + * + * @retun {bool} + */ $skip_classes = apply_filters( 'cloudinary_tag_skip_classes', false, $tag_element ); + // Add wp-{media-type}-{id} class name. if ( ! $skip_classes @@ -1255,6 +1268,15 @@ protected function standardize_tag( $tag_element ) { /** * Unset the attributes to avoid block errors in the admin. + * + * @hook cloudinary_unset_attributes + * @since 3.2.4 + * @default {false} + * + * @param $unset {bool} True to unset attributes. + * @param $tag_element {array} The tag element. + * + * @retun {bool} */ if ( apply_filters( 'cloudinary_unset_attributes', false, $tag_element ) ) { unset( diff --git a/php/delivery/class-responsive-breakpoints.php b/php/delivery/class-responsive-breakpoints.php index e6c922a61..b147ba232 100644 --- a/php/delivery/class-responsive-breakpoints.php +++ b/php/delivery/class-responsive-breakpoints.php @@ -60,14 +60,16 @@ public function add_features( $tag_element ) { } /** - * Do not add the responsive breakpoint features.. + * Do not add the responsive breakpoint features. * - * @hook cloudinary_skip_responsive_breakpoints - * - * @since 3.2.4 + * @hook cloudinary_skip_responsive_breakpoints + * @since 3.2.4 + * @default {false} * * @param $skip_features {bool} True to skip adding in the features. * @param $tag_element {array} The tag element. + * + * @return {bool} */ if ( apply_filters( 'cloudinary_skip_responsive_breakpoints', false, $tag_element ) ) { return $tag_element; From 963c4c4c47a5077f4320600746970a5361ad040c Mon Sep 17 00:00:00 2001 From: Marco Pereirinha Date: Fri, 20 Dec 2024 16:02:43 +0000 Subject: [PATCH 16/26] Update compiled assets --- js/block-editor.asset.php | 2 +- js/block-editor.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/block-editor.asset.php b/js/block-editor.asset.php index 152b0717d..f777d63a8 100644 --- a/js/block-editor.asset.php +++ b/js/block-editor.asset.php @@ -1 +1 @@ - array('react', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-plugins'), 'version' => 'b15e3c30e5d718631f15'); + array('react', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-i18n'), 'version' => 'c8e1eb2b75a7df74cf6a'); diff --git a/js/block-editor.js b/js/block-editor.js index a0d4a02d8..d03bdcb7a 100644 --- a/js/block-editor.js +++ b/js/block-editor.js @@ -1 +1 @@ -!function(){"use strict";var e={n:function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,{a:r}),r},d:function(t,r){for(var o in r)e.o(r,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:r[o]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t=window.wp.apiFetch,r=e.n(t),o=window.React,i=window.wp.i18n,n=window.wp.data,a=window.wp.components;const l={_init(){"undefined"!=typeof CLD_VIDEO_PLAYER&&wp.hooks.addFilter("blocks.registerBlockType","Cloudinary/Media/Video",(function(e,t){return"core/video"===t&&("off"!==CLD_VIDEO_PLAYER.video_autoplay_mode&&(e.attributes.autoplay.default=!0),"on"===CLD_VIDEO_PLAYER.video_loop&&(e.attributes.loop.default=!0),"off"===CLD_VIDEO_PLAYER.video_controls&&(e.attributes.controls.default=!1)),e}))}};l._init();wp.hooks.addFilter("blocks.registerBlockType","cloudinary/addAttributes",(function(e,t){return"core/image"!==t&&"core/video"!==t||(e.attributes||(e.attributes={}),e.attributes.overwrite_transformations={type:"boolean"},e.attributes.transformations={type:"boolean"}),e}));const s=e=>{const{attributes:{overwrite_transformations:t},setAttributes:r}=e;return(0,o.createElement)(a.PanelBody,{title:(0,i.__)("Transformations","cloudinary")},(0,o.createElement)(a.ToggleControl,{label:(0,i.__)("Overwrite Global Transformations","cloudinary"),checked:t,onChange:e=>{r({overwrite_transformations:e})}}))};let d=e=>{const{setAttributes:t,media:r}=e,{InspectorControls:i}=wp.editor;return r&&r.transformations&&t({transformations:!0}),(0,o.createElement)(i,null,(0,o.createElement)(s,{...e}))};d=(0,n.withSelect)(((e,t)=>({...t,media:t.attributes.id?e("core").getMedia(t.attributes.id):null})))(d);wp.hooks.addFilter("editor.BlockEdit","cloudinary/filterEdit",(e=>t=>{const{name:r}=t,i="core/image"===r||"core/video"===r;return(0,o.createElement)(o.Fragment,null,i?(0,o.createElement)(d,{...t}):null,(0,o.createElement)(e,{...t}))}),20);let c=e=>(0,o.createElement)(o.Fragment,null,e.modalClass&&(0,o.createElement)(a.ToggleControl,{label:(0,i.__)("Overwrite Cloudinary Global Transformations","cloudinary"),checked:e.overwrite_featured_transformations,onChange:t=>e.setOverwrite(t),className:"cloudinary-overwrite-transformations"}));c=(0,n.withSelect)((e=>{var t;return{overwrite_featured_transformations:null!==(t=e("core/editor")?.getEditedPostAttribute("meta")._cloudinary_featured_overwrite)&&void 0!==t&&t}}))(c),c=(0,n.withDispatch)((e=>({setOverwrite:t=>{e("core/editor").editPost({meta:{_cloudinary_featured_overwrite:t}})}})))(c);const u=e=>class extends e{render(){return(0,o.createElement)(o.Fragment,null,super.render(),!!this.props.value&&(0,o.createElement)(c,{...this.props}))}},m={_init(){wp.hooks.addFilter("editor.MediaUpload","cloudinary/filter-featured-image",u)}};m._init();const p={wrapper:null,query:{per_page:-1,orderby:"name",order:"asc",_fields:"id,name,parent",context:"view"},available:{},taxonomies:null,fetchWait:null,_init(){this.wrapper=document.getElementById("cld-tax-items");const{getTaxonomies:e}=(0,n.select)("core");this.fetchWait=setInterval((()=>{this.taxonomies=e(),this.taxonomies&&(clearInterval(this.fetchWait),this._init_listeners())}),1e3)},_init_listeners(){this.taxonomies.forEach((e=>{e.rest_base&&e.visibility.public&&(0,n.subscribe)((()=>{const t=e.slug,r=e.hierarchical,{isResolving:o}=(0,n.select)("core/data"),i=["taxonomy",t,this.query];this.available[t]=null,r&&(this.available[t]=(0,n.select)("core").getEntityRecords("taxonomy",t,this.query)),o("core","getEntityRecords",i)||this.event(e)}))}))},event(e){const t=(0,n.select)("core/editor").getEditedPostAttribute(e.rest_base);if(!t)return;const r=[...t],o=Array.from(this.wrapper.querySelectorAll(`[data-item*="${e.slug}"]`));[...r].forEach((t=>{const r=this.wrapper.querySelector(`[data-item="${e.slug}:${t}"]`);o.splice(o.indexOf(r),1),null===r&&this.createItem(this.getItem(e,t))})),o.forEach((e=>{e.parentNode.removeChild(e)}))},createItem(e){if(!e||!e.id)return;const t=document.createElement("li"),r=document.createElement("span"),o=document.createElement("input"),i=document.createTextNode(e.name);t.classList.add("cld-tax-order-list-item"),t.dataset.item=`${e.taxonomy}:${e.id}`,o.classList.add("cld-tax-order-list-item-input"),o.type="hidden",o.name="cld_tax_order[]",o.value=`${e.taxonomy}:${e.id}`,r.className="dashicons dashicons-menu cld-tax-order-list-item-handle",t.appendChild(r),t.appendChild(o),t.appendChild(i),this.wrapper.appendChild(t)},getItem(e,t){let r={};if(null===this.available[e.slug])r=(0,n.select)("core").getEntityRecord("taxonomy",e.slug,t);else for(const o of this.available[e.slug])if(o.id===t){r=o,r.taxonomy=e.slug;break}return r}};window.addEventListener("load",(()=>p._init()));var f=window.wp.plugins,h=window.wp.element;const w=()=>{const e=(0,n.useSelect)((e=>e("core/editor").isSavingPost())),t=(0,n.useSelect)((e=>e("core/editor").isEditedPostDirty())),{storage:r}=window?.CLDN||null;(0,h.useEffect)((()=>{e&&!t&&"cld"===r&&window.location.reload()}),[e])};(0,f.registerPlugin)("cloudinary-maybe-reload-after-save",{render:w});window.$=window.jQuery,r().use(((e,t)=>{if("cors"===e.mode)return t(e);if(e.url)try{const r=new URL(e.url,location.href);if(r.protocol!==location.protocol||r.hostname!==location.hostname||r.port!==location.port)return t(e)}catch{return t(e)}return e.headers||(e.headers={}),e.headers["x-cld-fetch-from-editor"]="true",t(e)}))}(); \ No newline at end of file +!function(){"use strict";var e={n:function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,{a:r}),r},d:function(t,r){for(var o in r)e.o(r,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:r[o]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t=window.wp.apiFetch,r=e.n(t),o=window.React,i=window.wp.i18n,a=window.wp.data,n=window.wp.components;const l={_init(){"undefined"!=typeof CLD_VIDEO_PLAYER&&wp.hooks.addFilter("blocks.registerBlockType","Cloudinary/Media/Video",(function(e,t){return"core/video"===t&&("off"!==CLD_VIDEO_PLAYER.video_autoplay_mode&&(e.attributes.autoplay.default=!0),"on"===CLD_VIDEO_PLAYER.video_loop&&(e.attributes.loop.default=!0),"off"===CLD_VIDEO_PLAYER.video_controls&&(e.attributes.controls.default=!1)),e}))}};l._init();wp.hooks.addFilter("blocks.registerBlockType","cloudinary/addAttributes",(function(e,t){return"core/image"!==t&&"core/video"!==t||(e.attributes||(e.attributes={}),e.attributes.overwrite_transformations={type:"boolean"},e.attributes.transformations={type:"boolean"}),e}));const s=e=>{const{attributes:{overwrite_transformations:t},setAttributes:r}=e;return(0,o.createElement)(n.PanelBody,{title:(0,i.__)("Transformations","cloudinary")},(0,o.createElement)(n.ToggleControl,{label:(0,i.__)("Overwrite Global Transformations","cloudinary"),checked:t,onChange:e=>{r({overwrite_transformations:e})}}))};let d=e=>{const{setAttributes:t,media:r}=e,{InspectorControls:i}=wp.editor;return r&&r.transformations&&t({transformations:!0}),(0,o.createElement)(i,null,(0,o.createElement)(s,{...e}))};d=(0,a.withSelect)(((e,t)=>({...t,media:t.attributes.id?e("core").getMedia(t.attributes.id):null})))(d);wp.hooks.addFilter("editor.BlockEdit","cloudinary/filterEdit",(e=>t=>{const{name:r}=t,i="core/image"===r||"core/video"===r;return(0,o.createElement)(o.Fragment,null,i?(0,o.createElement)(d,{...t}):null,(0,o.createElement)(e,{...t}))}),20);let c=e=>(0,o.createElement)(o.Fragment,null,e.modalClass&&(0,o.createElement)(n.ToggleControl,{label:(0,i.__)("Overwrite Cloudinary Global Transformations","cloudinary"),checked:e.overwrite_featured_transformations,onChange:t=>e.setOverwrite(t),className:"cloudinary-overwrite-transformations"}));c=(0,a.withSelect)((e=>{var t;return{overwrite_featured_transformations:null!==(t=e("core/editor")?.getEditedPostAttribute("meta")._cloudinary_featured_overwrite)&&void 0!==t&&t}}))(c),c=(0,a.withDispatch)((e=>({setOverwrite:t=>{e("core/editor").editPost({meta:{_cloudinary_featured_overwrite:t}})}})))(c);const u=e=>class extends e{render(){return(0,o.createElement)(o.Fragment,null,super.render(),!!this.props.value&&(0,o.createElement)(c,{...this.props}))}},m={_init(){wp.hooks.addFilter("editor.MediaUpload","cloudinary/filter-featured-image",u)}};m._init();const p={wrapper:null,query:{per_page:-1,orderby:"name",order:"asc",_fields:"id,name,parent",context:"view"},available:{},taxonomies:null,fetchWait:null,_init(){this.wrapper=document.getElementById("cld-tax-items");const{getTaxonomies:e}=(0,a.select)("core");this.fetchWait=setInterval((()=>{this.taxonomies=e(),this.taxonomies&&(clearInterval(this.fetchWait),this._init_listeners())}),1e3)},_init_listeners(){this.taxonomies.forEach((e=>{e.rest_base&&e.visibility.public&&(0,a.subscribe)((()=>{const t=e.slug,r=e.hierarchical,{isResolving:o}=(0,a.select)("core/data"),i=["taxonomy",t,this.query];this.available[t]=null,r&&(this.available[t]=(0,a.select)("core").getEntityRecords("taxonomy",t,this.query)),o("core","getEntityRecords",i)||this.event(e)}))}))},event(e){const t=(0,a.select)("core/editor").getEditedPostAttribute(e.rest_base);if(!t)return;const r=[...t],o=Array.from(this.wrapper.querySelectorAll(`[data-item*="${e.slug}"]`));[...r].forEach((t=>{const r=this.wrapper.querySelector(`[data-item="${e.slug}:${t}"]`);o.splice(o.indexOf(r),1),null===r&&this.createItem(this.getItem(e,t))})),o.forEach((e=>{e.parentNode.removeChild(e)}))},createItem(e){if(!e||!e.id)return;const t=document.createElement("li"),r=document.createElement("span"),o=document.createElement("input"),i=document.createTextNode(e.name);t.classList.add("cld-tax-order-list-item"),t.dataset.item=`${e.taxonomy}:${e.id}`,o.classList.add("cld-tax-order-list-item-input"),o.type="hidden",o.name="cld_tax_order[]",o.value=`${e.taxonomy}:${e.id}`,r.className="dashicons dashicons-menu cld-tax-order-list-item-handle",t.appendChild(r),t.appendChild(o),t.appendChild(i),this.wrapper.appendChild(t)},getItem(e,t){let r={};if(null===this.available[e.slug])r=(0,a.select)("core").getEntityRecord("taxonomy",e.slug,t);else for(const o of this.available[e.slug])if(o.id===t){r=o,r.taxonomy=e.slug;break}return r}};window.addEventListener("load",(()=>p._init()));window.$=window.jQuery,r().use(((e,t)=>{if("cors"===e.mode)return t(e);if(e.url)try{const r=new URL(e.url,location.href);if(r.protocol!==location.protocol||r.hostname!==location.hostname||r.port!==location.port)return t(e)}catch{return t(e)}return e.headers||(e.headers={}),e.headers["x-cld-fetch-from-editor"]="true",t(e)}))}(); \ No newline at end of file From 198237668853b8f6a6f1e102b7c03720848c6e20 Mon Sep 17 00:00:00 2001 From: Marco Pereirinha Date: Fri, 20 Dec 2024 16:07:25 +0000 Subject: [PATCH 17/26] Use the `latest` video player --- php/class-plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/class-plugin.php b/php/class-plugin.php index 0ff01421c..754583864 100644 --- a/php/class-plugin.php +++ b/php/class-plugin.php @@ -586,7 +586,7 @@ protected function setup_endpoints() { * The Cloudinary Video Player version. */ if ( ! defined( 'CLOUDINARY_ENDPOINTS_VIDEO_PLAYER_VERSION' ) ) { - define( 'CLOUDINARY_ENDPOINTS_VIDEO_PLAYER_VERSION', '1.11.1' ); + define( 'CLOUDINARY_ENDPOINTS_VIDEO_PLAYER_VERSION', 'latest' ); } } From 370a773050b46dfc17d828852df2bff91ed2f1f2 Mon Sep 17 00:00:00 2001 From: Marco Pereirinha Date: Fri, 20 Dec 2024 16:43:19 +0000 Subject: [PATCH 18/26] Update the video player --- php/class-plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/class-plugin.php b/php/class-plugin.php index 754583864..7aecee449 100644 --- a/php/class-plugin.php +++ b/php/class-plugin.php @@ -586,7 +586,7 @@ protected function setup_endpoints() { * The Cloudinary Video Player version. */ if ( ! defined( 'CLOUDINARY_ENDPOINTS_VIDEO_PLAYER_VERSION' ) ) { - define( 'CLOUDINARY_ENDPOINTS_VIDEO_PLAYER_VERSION', 'latest' ); + define( 'CLOUDINARY_ENDPOINTS_VIDEO_PLAYER_VERSION', '2.2.0' ); } } From 7928190aa155932878023a3b15365de92e2d17d5 Mon Sep 17 00:00:00 2001 From: Marco Pereirinha Date: Fri, 20 Dec 2024 16:51:35 +0000 Subject: [PATCH 19/26] Bump plugin version --- .version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.version b/.version index 06eda28ac..7d34804f0 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -3.2.3 \ No newline at end of file +3.2.4-build-1 \ No newline at end of file From 6b4f3a5f0d6c3bbbfe216ab7847ca987311f3864 Mon Sep 17 00:00:00 2001 From: Marco Pereirinha Date: Fri, 20 Dec 2024 16:52:59 +0000 Subject: [PATCH 20/26] Update translations template --- languages/cloudinary.pot | 138 +++++++++++++++++++-------------------- 1 file changed, 69 insertions(+), 69 deletions(-) diff --git a/languages/cloudinary.pot b/languages/cloudinary.pot index a9dd52e28..b39d9f8fe 100644 --- a/languages/cloudinary.pot +++ b/languages/cloudinary.pot @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: Cloudinary STABLETAG\n" "Report-Msgid-Bugs-To: https://github.com/cloudinary/cloudinary_wordpress\n" -"POT-Creation-Date: 2024-10-22 15:03:23+00:00\n" +"POT-Creation-Date: 2024-12-20 16:52:13+00:00\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -122,79 +122,79 @@ msgstr "" msgid "External Asset Sync Settings" msgstr "" -#: php/class-assets.php:1280 php/class-cache.php:615 +#: php/class-assets.php:1304 php/class-cache.php:615 msgid "Plugin" msgstr "" -#: php/class-assets.php:1316 php/class-cache.php:792 +#: php/class-assets.php:1340 php/class-cache.php:792 msgid "Plugins" msgstr "" -#: php/class-assets.php:1334 php/class-cache.php:809 +#: php/class-assets.php:1358 php/class-cache.php:809 msgid "Deliver assets from all plugin folders" msgstr "" -#: php/class-assets.php:1366 php/class-cache.php:652 +#: php/class-assets.php:1390 php/class-cache.php:652 msgid "Theme" msgstr "" -#: php/class-assets.php:1398 php/class-cache.php:843 +#: php/class-assets.php:1422 php/class-cache.php:843 msgid "Themes" msgstr "" -#: php/class-assets.php:1416 php/class-cache.php:860 +#: php/class-assets.php:1440 php/class-cache.php:860 msgid "Deliver all assets from active theme." msgstr "" -#: php/class-assets.php:1441 php/class-assets.php:1476 php/class-cache.php:684 +#: php/class-assets.php:1465 php/class-assets.php:1500 php/class-cache.php:684 #: php/class-cache.php:895 msgid "WordPress" msgstr "" -#: php/class-assets.php:1450 php/class-cache.php:668 +#: php/class-assets.php:1474 php/class-cache.php:668 msgid "WordPress Admin" msgstr "" -#: php/class-assets.php:1457 php/class-cache.php:675 +#: php/class-assets.php:1481 php/class-cache.php:675 msgid "WordPress Includes" msgstr "" -#: php/class-assets.php:1494 php/class-cache.php:912 +#: php/class-assets.php:1518 php/class-cache.php:912 msgid "Deliver all assets from WordPress core." msgstr "" -#: php/class-assets.php:1520 php/class-assets.php:1546 php/class-cache.php:708 +#: php/class-assets.php:1544 php/class-assets.php:1570 php/class-cache.php:708 #: php/class-cache.php:947 msgid "Content" msgstr "" -#: php/class-assets.php:1527 php/class-cache.php:699 +#: php/class-assets.php:1551 php/class-cache.php:699 msgid "Uploads" msgstr "" -#: php/class-assets.php:1564 php/class-cache.php:964 +#: php/class-assets.php:1588 php/class-cache.php:964 msgid "Deliver all content assets from WordPress Media Library." msgstr "" -#: php/class-assets.php:1588 +#: php/class-assets.php:1612 msgid "Enable external assets" msgstr "" -#: php/class-assets.php:1589 +#: php/class-assets.php:1613 msgid "" "Enabling external assets allows you to sync assets from specific external " "sources with Cloudinary." msgstr "" -#: php/class-assets.php:1599 +#: php/class-assets.php:1623 msgid "Domains for each external source." msgstr "" -#: php/class-assets.php:1602 +#: php/class-assets.php:1626 msgid "Enter a domain" msgstr "" -#: php/class-assets.php:1603 +#: php/class-assets.php:1627 msgid "Press ENTER or SPACE or type comma or tab to continue." msgstr "" @@ -506,14 +506,14 @@ msgstr "" msgid "Unsynced" msgstr "" -#: php/class-media.php:455 +#: php/class-media.php:449 #. translators: variable is file size. msgid "" "File size exceeds the maximum of %s. This media asset will be served from " "WordPress." msgstr "" -#: php/class-media.php:2057 +#: php/class-media.php:2051 msgid "Import" msgstr "" @@ -521,43 +521,43 @@ msgstr "" msgid "Cloudinary" msgstr "" -#: php/class-media.php:2413 +#: php/class-media.php:2407 msgid "The delivery for this asset is disabled." msgstr "" -#: php/class-media.php:2417 +#: php/class-media.php:2411 msgid "Not syncable. This is an external media." msgstr "" -#: php/class-media.php:2421 +#: php/class-media.php:2415 msgid "This media is Fetch type." msgstr "" -#: php/class-media.php:2425 +#: php/class-media.php:2419 msgid "This media is Sprite type." msgstr "" -#: php/class-media.php:2435 +#: php/class-media.php:2429 msgid "Not Synced" msgstr "" -#: php/class-media.php:2440 +#: php/class-media.php:2434 msgid "Synced" msgstr "" -#: php/class-media.php:3091 +#: php/class-media.php:3085 msgid "No Cloudinary filters" msgstr "" -#: php/class-media.php:3191 +#: php/class-media.php:3185 msgid "Media Settings" msgstr "" -#: php/class-media.php:3194 +#: php/class-media.php:3188 msgid "Media Display" msgstr "" -#: php/class-media.php:3198 php/media/class-global-transformations.php:620 +#: php/class-media.php:3192 php/media/class-global-transformations.php:620 #: php/ui/component/class-asset-preview.php:73 #: php/ui/component/class-plan-details.php:119 #: php/ui/component/class-plan-status.php:128 @@ -565,7 +565,7 @@ msgstr "" msgid "Transformations" msgstr "" -#: php/class-media.php:3199 +#: php/class-media.php:3193 msgid "" "Cloudinary allows you to easily transform your images on-the-fly to any " "required format, style and dimension, and also optimizes images for minimal " @@ -574,12 +574,12 @@ msgid "" "transformation and delivery URLs." msgstr "" -#: php/class-media.php:3204 ui-definitions/settings-image.php:171 +#: php/class-media.php:3198 ui-definitions/settings-image.php:171 #: ui-definitions/settings-video.php:257 msgid "See examples" msgstr "" -#: php/class-plugin.php:742 +#: php/class-plugin.php:751 msgid "Visit plugin site" msgstr "" @@ -769,7 +769,7 @@ msgstr "" msgid "Cloudinary only" msgstr "" -#: php/class-sync.php:1304 php/delivery/class-lazy-load.php:538 +#: php/class-sync.php:1304 php/delivery/class-lazy-load.php:543 #: php/media/class-gallery.php:416 ui-definitions/components/header.php:19 #: ui-definitions/settings-image.php:253 ui-definitions/settings-pages.php:206 #: ui-definitions/settings-pages.php:222 ui-definitions/settings-pages.php:223 @@ -799,46 +799,46 @@ msgstr "" msgid "Debug log is empty" msgstr "" -#: php/class-utils.php:837 +#: php/class-utils.php:841 msgid "Missing SRC attribute." msgstr "" -#: php/class-utils.php:874 +#: php/class-utils.php:879 #. translators: The attachment ID. msgid "Clean up sync metadata for %d" msgstr "" -#: php/class-utils.php:922 +#: php/class-utils.php:927 msgid "Thumbnail" msgstr "" -#: php/class-utils.php:923 +#: php/class-utils.php:928 msgid "Medium" msgstr "" -#: php/class-utils.php:924 +#: php/class-utils.php:929 msgid "Medium Large" msgstr "" -#: php/class-utils.php:925 +#: php/class-utils.php:930 msgid "Large" msgstr "" -#: php/class-utils.php:926 +#: php/class-utils.php:931 msgid "Full Size" msgstr "" -#: php/class-utils.php:1279 +#: php/class-utils.php:1284 msgid "Cloudinary global transformations" msgstr "" -#: php/class-utils.php:1286 +#: php/class-utils.php:1291 #. translators: %1$s is the taxonomy label and the %2$s is the context of the #. use. msgid "%1$s %2$s transformations" msgstr "" -#: php/class-utils.php:1296 +#: php/class-utils.php:1301 #. translators: %s is the term name. msgid "%s transformations" msgstr "" @@ -860,108 +860,108 @@ msgstr "" msgid "Deliver from WordPress" msgstr "" -#: php/delivery/class-lazy-load.php:400 php/delivery/class-lazy-load.php:401 -#: php/delivery/class-lazy-load.php:433 +#: php/delivery/class-lazy-load.php:405 php/delivery/class-lazy-load.php:406 +#: php/delivery/class-lazy-load.php:438 msgid "Lazy loading" msgstr "" -#: php/delivery/class-lazy-load.php:408 +#: php/delivery/class-lazy-load.php:413 msgid "Lazy Loading" msgstr "" -#: php/delivery/class-lazy-load.php:415 ui-definitions/settings-image.php:23 +#: php/delivery/class-lazy-load.php:420 ui-definitions/settings-image.php:23 #: ui-definitions/settings-pages.php:100 ui-definitions/settings-video.php:23 msgid "Settings" msgstr "" -#: php/delivery/class-lazy-load.php:419 php/delivery/class-lazy-load.php:529 +#: php/delivery/class-lazy-load.php:424 php/delivery/class-lazy-load.php:534 #: ui-definitions/settings-image.php:27 ui-definitions/settings-image.php:240 #: ui-definitions/settings-pages.php:104 ui-definitions/settings-pages.php:197 #: ui-definitions/settings-video.php:27 msgid "Preview" msgstr "" -#: php/delivery/class-lazy-load.php:431 +#: php/delivery/class-lazy-load.php:436 msgid "Enable lazy loading" msgstr "" -#: php/delivery/class-lazy-load.php:432 +#: php/delivery/class-lazy-load.php:437 msgid "" "Lazy loading delays the initialization of your web assets to improve page " "load times." msgstr "" -#: php/delivery/class-lazy-load.php:444 +#: php/delivery/class-lazy-load.php:449 msgid "Lazy loading threshold" msgstr "" -#: php/delivery/class-lazy-load.php:445 +#: php/delivery/class-lazy-load.php:450 msgid "How far down the page to start lazy loading assets." msgstr "" -#: php/delivery/class-lazy-load.php:461 +#: php/delivery/class-lazy-load.php:466 msgid "Pre-loader color" msgstr "" -#: php/delivery/class-lazy-load.php:462 +#: php/delivery/class-lazy-load.php:467 msgid "" "On page load, the pre-loader is used to fill the space while the image is " "downloaded, preventing content shift." msgstr "" -#: php/delivery/class-lazy-load.php:471 +#: php/delivery/class-lazy-load.php:476 msgid "Pre-loader animation" msgstr "" -#: php/delivery/class-lazy-load.php:481 +#: php/delivery/class-lazy-load.php:486 msgid "Placeholder generation type" msgstr "" -#: php/delivery/class-lazy-load.php:482 +#: php/delivery/class-lazy-load.php:487 msgid "" "Placeholders are low-res representations of the image, that's loaded below " "the fold. They are then replaced with the actual image, just before it " "comes into view." msgstr "" -#: php/delivery/class-lazy-load.php:492 +#: php/delivery/class-lazy-load.php:497 msgid "Blur" msgstr "" -#: php/delivery/class-lazy-load.php:493 +#: php/delivery/class-lazy-load.php:498 msgid "Pixelate" msgstr "" -#: php/delivery/class-lazy-load.php:494 +#: php/delivery/class-lazy-load.php:499 msgid "Vectorize" msgstr "" -#: php/delivery/class-lazy-load.php:495 +#: php/delivery/class-lazy-load.php:500 msgid "Dominant Color" msgstr "" -#: php/delivery/class-lazy-load.php:496 php/delivery/class-lazy-load.php:511 +#: php/delivery/class-lazy-load.php:501 php/delivery/class-lazy-load.php:516 #: ui-definitions/settings-video.php:142 msgid "Off" msgstr "" -#: php/delivery/class-lazy-load.php:507 +#: php/delivery/class-lazy-load.php:512 msgid "DPR settings" msgstr "" -#: php/delivery/class-lazy-load.php:508 +#: php/delivery/class-lazy-load.php:513 msgid "The device pixel ratio to use for your generated images." msgstr "" -#: php/delivery/class-lazy-load.php:512 +#: php/delivery/class-lazy-load.php:517 msgid "Auto (2x)" msgstr "" -#: php/delivery/class-lazy-load.php:513 +#: php/delivery/class-lazy-load.php:518 msgid "Max DPR" msgstr "" -#: php/delivery/class-lazy-load.php:541 +#: php/delivery/class-lazy-load.php:546 #. Translators: The HTML for opening and closing link tags. msgid "" "Watch free lessons on how to use the Lazy Load Settings in the " From f90d870f7041b72be06aa01d6c39c8f7839501a4 Mon Sep 17 00:00:00 2001 From: Marco Pereirinha Date: Mon, 6 Jan 2025 17:41:03 +0000 Subject: [PATCH 21/26] Hook the activation links to the `init` action --- php/class-deactivation.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/php/class-deactivation.php b/php/class-deactivation.php index 2f0e4cfaa..28075e12f 100644 --- a/php/class-deactivation.php +++ b/php/class-deactivation.php @@ -64,8 +64,6 @@ public function __construct( Plugin $plugin ) { add_action( 'init', array( $this, 'load_hooks' ) ); add_action( 'current_screen', array( $this, 'maybe_load_hooks' ) ); add_action( 'cloudinary_init_settings', array( $this, 'settings_init' ) ); - - add_filter( 'plugin_action_links_' . $this->plugin->plugin_file, array( $this, 'tag_deactivate' ) ); } /** @@ -78,6 +76,7 @@ public function __construct( Plugin $plugin ) { public function load_hooks() { add_filter( 'cloudinary_api_rest_endpoints', array( $this, 'rest_endpoint' ) ); add_action( 'cloudinary_cleanup_event', array( $this, 'cleanup' ) ); + add_filter( 'plugin_action_links_' . $this->plugin->plugin_file, array( $this, 'tag_deactivate' ) ); } /** From 77b10b133acce40a6efedced3e0a89650061e4d4 Mon Sep 17 00:00:00 2001 From: Marco Pereirinha Date: Tue, 7 Jan 2025 15:06:30 +0000 Subject: [PATCH 22/26] Bump plugin version --- .version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.version b/.version index 7d34804f0..b772ef8be 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -3.2.4-build-1 \ No newline at end of file +3.2.4-build-2 \ No newline at end of file From ca42deb9654b1b2a5bdff2d2cd1064aa35af52a1 Mon Sep 17 00:00:00 2001 From: Marco Pereirinha Date: Thu, 9 Jan 2025 09:40:41 +0000 Subject: [PATCH 23/26] The plugin must have the bootstrap complete before running the activation hook --- php/class-plugin.php | 1 - php/class-utils.php | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/php/class-plugin.php b/php/class-plugin.php index 7aecee449..9e63ff55d 100644 --- a/php/class-plugin.php +++ b/php/class-plugin.php @@ -421,7 +421,6 @@ private function is_notice_component( $component ) { * @return void */ public function init() { - require_once ABSPATH . 'wp-admin/includes/plugin.php'; $plugin = get_plugin_data( CLDN_CORE ); $location = $this->locate_plugin(); $this->slug = ! empty( $plugin['TextDomain'] ) ? $plugin['TextDomain'] : $location['dir_basename']; diff --git a/php/class-utils.php b/php/class-utils.php index cd5736069..0f774118b 100644 --- a/php/class-utils.php +++ b/php/class-utils.php @@ -331,6 +331,8 @@ protected static function table_installed() { * Install our custom table. */ public static function install() { + // Ensure that the plugin bootstrap is loaded. + get_plugin_instance()->init(); $sql = self::get_table_sql(); From 2cbcc5c620f12a0df732b52ea0129b84a36a19f4 Mon Sep 17 00:00:00 2001 From: Marco Pereirinha Date: Mon, 13 Jan 2025 14:34:47 +0000 Subject: [PATCH 24/26] Require the `plugin.php` as it is essencial on new installs --- php/class-plugin.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/php/class-plugin.php b/php/class-plugin.php index 9e63ff55d..c2cc26833 100644 --- a/php/class-plugin.php +++ b/php/class-plugin.php @@ -421,6 +421,8 @@ private function is_notice_component( $component ) { * @return void */ public function init() { + require_once ABSPATH . 'wp-admin/includes/plugin.php'; + $plugin = get_plugin_data( CLDN_CORE ); $location = $this->locate_plugin(); $this->slug = ! empty( $plugin['TextDomain'] ) ? $plugin['TextDomain'] : $location['dir_basename']; From 0cba2b509a986a0e8eb9211914508edd785eae7c Mon Sep 17 00:00:00 2001 From: Marco Pereirinha Date: Mon, 13 Jan 2025 14:52:04 +0000 Subject: [PATCH 25/26] Bump plugin version --- .version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.version b/.version index b772ef8be..3c81eae38 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -3.2.4-build-2 \ No newline at end of file +3.2.4-build-4 \ No newline at end of file From 24b6725b9c6d3dc35d7853c95547047f6ed897ef Mon Sep 17 00:00:00 2001 From: Amit Brucker Date: Tue, 14 Jan 2025 16:15:05 +0200 Subject: [PATCH 26/26] version bump --- .version | 2 +- readme.txt | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.version b/.version index 3c81eae38..9b7a431d9 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -3.2.4-build-4 \ No newline at end of file +3.2.4 \ No newline at end of file diff --git a/readme.txt b/readme.txt index f72eb727a..983ede424 100644 --- a/readme.txt +++ b/readme.txt @@ -142,6 +142,16 @@ Your site is now setup to start using Cloudinary. == Changelog == += 3.2.4 (14 January 2025) = + +Fixes and Improvements: + +* Upgraded the Cloudinary Video Player to v2.2.0 +* Fixed image block validation errors in the Block Patterns UI +* Resolved image block error messages that required recovery +* De-registered all Cloudinary cron jobs when deactivating the plugin + + = 3.2.3 (03 December 2024) = Fixes and Improvements: @@ -151,6 +161,7 @@ Fixes and Improvements: * Addressed an issue preventing the activation of the crop and gravity beta feature at the asset level * Fixed the timing of when translations are loaded to comply with updated WordPress initialization requirements + = 3.2.2 (28 October 2024) = Fixes and improvements: