Visual Portfolio, Photo Gallery & Post Grid - Version 2.11.0

Version Description

Download this release

Release Info

Developer nko
Plugin Icon 128x128 Visual Portfolio, Photo Gallery & Post Grid
Version 2.11.0
Comparing to
See all releases

Code changes from version 2.10.5 to 2.11.0

Files changed (52) hide show
  1. assets/admin/css/style-rtl.min.css +1 -1
  2. assets/admin/css/style.min.css +1 -1
  3. assets/admin/js/elementor.js +1 -1
  4. assets/admin/js/mce-dropdown.js +8 -7
  5. assets/admin/js/mce-dropdown.min.js +1 -1
  6. assets/admin/js/script.js +1 -1
  7. assets/admin/js/vc-frontend.js +1 -1
  8. assets/css/main-rtl.min.css +1 -1
  9. assets/css/main.min.css +1 -1
  10. assets/css/popup-fancybox-rtl.min.css +1 -1
  11. assets/css/popup-fancybox.min.css +1 -1
  12. assets/css/popup-photoswipe-rtl.min.css +1 -1
  13. assets/css/popup-photoswipe.min.css +1 -1
  14. assets/css/theme-airtifact-rtl.min.css +1 -0
  15. assets/css/theme-airtifact.min.css +1 -0
  16. assets/css/theme-twentytwentyone-rtl.min.css +1 -1
  17. assets/css/theme-twentytwentyone.min.css +1 -1
  18. assets/js/layout-slider.js +1 -1
  19. assets/js/layout-tiles.js +1 -1
  20. assets/js/main.js +3 -4
  21. assets/js/main.min.js +1 -1
  22. assets/js/plugin-fancybox.js +6 -0
  23. assets/js/plugin-fancybox.min.js +1 -1
  24. assets/js/plugin-fj-gallery.js +1 -1
  25. assets/js/plugin-isotope.js +1 -1
  26. assets/js/plugin-swiper.js +1 -1
  27. assets/js/preview.js +1 -1
  28. assets/vendor/conditionize/conditionize.min.js +7 -0
  29. assets/vendor/conditionize/conditionize.min.js.map +1 -0
  30. class-visual-portfolio.php +13 -1
  31. classes/3rd/plugins/class-elementor-widget.php +3 -3
  32. classes/3rd/plugins/class-tinymce.php +8 -5
  33. classes/3rd/plugins/class-vc.php +2 -2
  34. classes/class-admin.php +151 -15
  35. classes/class-assets.php +9 -8
  36. classes/class-custom-post-type.php +13 -6
  37. classes/class-get-portfolio.php +27 -12
  38. classes/class-gutenberg.php +6 -4
  39. classes/class-migration.php +1 -1
  40. classes/class-preview.php +2 -2
  41. classes/class-settings.php +185 -74
  42. classes/class-supported-themes.php +7 -1
  43. gutenberg/block-saved/edit.js +9 -2
  44. gutenberg/block-saved/index.js +10 -3
  45. gutenberg/block/edit.js +2 -3
  46. gutenberg/block/index.js +5 -1
  47. gutenberg/components/controls-render/index.js +1 -1
  48. gutenberg/components/iframe-preview/index.js +26 -9
  49. gutenberg/custom-post-meta.min.js +1 -1
  50. gutenberg/custom-post-meta/video.js +5 -2
  51. gutenberg/index.js +5 -1
  52. gutenberg/index.min.js +2 -3
assets/admin/css/style-rtl.min.css CHANGED
@@ -2,4 +2,4 @@
2
  * Name : Visual Portfolio
3
  * Version : @@plugin_version
4
  * Author : nK https://nkdev.info
5
- */#adminmenu a[href*="page=visual_portfolio_go_pro"],.wp-list-table.plugins a[href*="page=visual_portfolio_go_pro"]{font-weight:700;color:#ff6a38}#adminmenu a[href*="page=visual_portfolio_go_pro"] .dashicons,.wp-list-table.plugins a[href*="page=visual_portfolio_go_pro"] .dashicons{-webkit-transition:none;-o-transition:none;transition:none}#adminmenu a[href*="page=visual_portfolio_go_pro"]:hover,#adminmenu a[href*="page=visual_portfolio_go_pro"]:focus,.wp-list-table.plugins a[href*="page=visual_portfolio_go_pro"]:hover,.wp-list-table.plugins a[href*="page=visual_portfolio_go_pro"]:focus{color:#f59372}.dashicons-visual-portfolio,.mce-widget .mce-i-visual-portfolio{background-image:url("../images/icon.svg");background-repeat:no-repeat;background-position:center center;background-size:18px;opacity:.6}.mce-widget .mce-i-visual-portfolio{background-image:url("../images/icon-mce.svg");opacity:1}.menu-top.current .dashicons-visual-portfolio,.menu-top:hover .dashicons-visual-portfolio,.wp-has-current-submenu .dashicons-visual-portfolio{opacity:1}.vc_element-icon[data-is-container="true"].icon-visual-portfolio,.vc_element-icon.icon-visual-portfolio{background-position:50% 50%}.vc_element-icon.icon-visual-portfolio,.vc_control-visual-portfolio{position:relative;overflow:hidden;background-image:url("../images/icon-gutenberg.svg");background-position:50% 50%;background-size:cover;border-radius:3px}.vc_add-element-container .icon-visual-portfolio{position:absolute}.vc_control-visual-portfolio{display:inline-block;width:18px;height:18px;margin:0 2px;cursor:pointer}.vc_controls-row .vc_control-visual-portfolio{float:left;margin:4px}.vc_control-visual-portfolio-overlay{position:absolute;top:0;left:0;bottom:0;right:0;z-index:2}.vp-row{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-sizing:border-box;box-sizing:border-box;margin-left:-15px;margin-right:-15px}.vp-col-1,.vp-col-2,.vp-col-3,.vp-col-4,.vp-col-5,.vp-col-6,.vp-col-7,.vp-col-8,.vp-col-9,.vp-col-10,.vp-col-11,.vp-col-12{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;-webkit-box-sizing:border-box;box-sizing:border-box;padding-left:15px;padding-right:15px}.vp-col-1{-ms-flex-preferred-size:8.33333%;flex-basis:8.33333%;max-width:8.33333%}.vp-col-2{-ms-flex-preferred-size:16.66667%;flex-basis:16.66667%;max-width:16.66667%}.vp-col-3{-ms-flex-preferred-size:25%;flex-basis:25%;max-width:25%}.vp-col-4{-ms-flex-preferred-size:33.33333%;flex-basis:33.33333%;max-width:33.33333%}.vp-col-5{-ms-flex-preferred-size:41.66667%;flex-basis:41.66667%;max-width:41.66667%}.vp-col-6{-ms-flex-preferred-size:50%;flex-basis:50%;max-width:50%}.vp-col-7{-ms-flex-preferred-size:58.33333%;flex-basis:58.33333%;max-width:58.33333%}.vp-col-8{-ms-flex-preferred-size:66.66667%;flex-basis:66.66667%;max-width:66.66667%}.vp-col-9{-ms-flex-preferred-size:75%;flex-basis:75%;max-width:75%}.vp-col-10{-ms-flex-preferred-size:83.33333%;flex-basis:83.33333%;max-width:83.33333%}.vp-col-11{-ms-flex-preferred-size:91.66667%;flex-basis:91.66667%;max-width:91.66667%}.vp-col-12{-ms-flex-preferred-size:100%;flex-basis:100%;max-width:100%}.vp-col-clearfix{-ms-flex-preferred-size:100%;flex-basis:100%;max-width:100%}.vp-col-clearfix .vp-control-html{margin-bottom:0}.vp-oembed-preview{position:relative;width:100%;padding-top:56.25%;color:#a2a2a2;background-color:#f1f1f1;border:1px solid #e8e8e8}.vp-oembed-preview::after{content:"\f126";position:absolute;display:block;top:50%;right:50%;width:20px;height:20px;margin-top:-10px;margin-right:-10px;font-family:dashicons;font-size:20px;font-style:normal;font-weight:400;line-height:1;text-align:center;text-decoration:inherit;z-index:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.vp-oembed-preview>iframe{position:absolute;top:0;right:0;width:100%;height:100%;z-index:2}.vpf-post-image-focal-point-panel .components-focal-point-picker_position-display-container .components-base-control__label{max-width:100%}.vpf-post-image-focal-point-panel .components-focal-point-picker_position-display-container .components-base-control{margin-bottom:0}.vpf-post-image-focal-point-panel ~ .editor-post-featured-image .editor-post-featured-image__preview{display:none}.vp-input{width:100%}.vp-portfolio__thumbnail{position:relative;display:block;max-width:70px;padding-top:100%;overflow:hidden;border-radius:3px}.vp-portfolio__thumbnail img{position:absolute;display:block;top:0;right:0;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.vp-portfolio__thumbnail:empty{background-color:#f1f1f1;border:1px solid #e8e8e8}.vp-portfolio__thumbnail:empty,.vp-portfolio__thumbnail:empty:hover,.vp-portfolio__thumbnail:empty:active,.vp-portfolio__thumbnail:empty:focus{color:#a2a2a2}.vp-portfolio__thumbnail:empty::after{content:"\f128";position:absolute;display:block;top:50%;right:50%;width:20px;height:20px;margin-top:-10px;margin-right:-10px;font-family:dashicons;font-size:20px;font-style:normal;font-weight:400;line-height:1;text-align:center;text-decoration:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.wp-list-table th.column-portfolio_post_thumbs{width:70px}.wp-list-table th.column-vp_lists_post_icon{width:28px}.wp-list-table th.column-vp_lists_post_shortcode{width:250px}@media screen and (max-width: 782px){.wp-list-table th.column-portfolio_post_thumbs,.wp-list-table th.column-vp_lists_post_icon{display:none}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-portfolio_post_thumbs,.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-vp_lists_post_icon{float:right;width:70px !important;min-width:70px}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-vp_lists_post_icon{width:40px !important}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-portfolio_post_thumbs::before{content:none}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-title{overflow:hidden;clear:left}}.notice.vpf-saved-layouts-notice{padding:11px 15px;margin-top:15px;font-size:14px;line-height:1.4}.notice.vpf-saved-layouts-notice h2{margin-top:5px;margin-bottom:12px}.notice.vpf-saved-layouts-notice p{font-size:15px}.notice.vpf-saved-layouts-notice svg{display:inline-block;width:1.3em;height:1.3em;margin-left:.2em;vertical-align:-.28em}.vp-portfolio-list__icon{position:relative;display:block;max-width:70px;padding-top:100%;overflow:hidden;color:inherit;color:#868686;background-color:#f1f1f1;border:1px solid #e8e8e8;border-radius:3px}.vp-portfolio-list__icon:hover,.vp-portfolio-list__icon:active,.vp-portfolio-list__icon:focus{color:#5f5f5f}.vp-portfolio-list__icon svg{position:absolute;display:block;top:15%;right:15%;width:70%;height:70%;-o-object-fit:cover;object-fit:cover}.portfolio_page_visual-portfolio-settings .description{opacity:.7}.portfolio_page_visual-portfolio-settings .wpsa-image-remove{display:none;margin-right:10px}.portfolio_page_visual-portfolio-settings .metabox-holder .notice{padding:15px}.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro>td{pointer-events:none}.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro .description{opacity:.3}.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro .vpf-settings-control-pro-label{position:relative;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:18px;height:18px;margin-right:10px;font-family:sans-serif;font-size:11px;line-height:18px;color:#fff;text-align:center;cursor:pointer;background-color:#4c4c4c;border-radius:10px}.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro .vpf-settings-control-pro-label>span{position:absolute;display:none;bottom:100%;width:130px;padding:5px;margin-bottom:10px;background-color:rgba(0,0,0,0.8);border-radius:4px;z-index:9990}.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro .vpf-settings-control-pro-label:hover>span,.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro .vpf-settings-control-pro-label:focus>span{display:block}.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro.breakpoint_xs .vpf-settings-control-pro-label,.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro.breakpoint_sm .vpf-settings-control-pro-label,.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro.breakpoint_md .vpf-settings-control-pro-label,.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro.breakpoint_lg .vpf-settings-control-pro-label,.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro.breakpoint_xl .vpf-settings-control-pro-label{display:none}.portfolio_page_visual-portfolio-settings .social_pro_info>th{display:none}.portfolio_page_visual-portfolio-settings .vpf-settings-info-pro{max-width:240px;padding:20px;text-align:center;background-color:#e2e2e2;border-radius:4px}.portfolio_page_visual-portfolio-settings .vpf-settings-info-pro h3{margin-top:0;margin-bottom:15px;font-size:13px}.portfolio_page_visual-portfolio-settings .vpf-settings-info-pro p{margin-bottom:1em;font-size:13px}.portfolio_page_visual-portfolio-settings .vpf-settings-info-pro-button{display:inline-block;padding:7px 15px;margin-top:5px;text-decoration:none;background:#2540cc;border-radius:3px}.portfolio_page_visual-portfolio-settings .vpf-settings-info-pro-button,.portfolio_page_visual-portfolio-settings .vpf-settings-info-pro-button:hover,.portfolio_page_visual-portfolio-settings .vpf-settings-info-pro-button:focus,.portfolio_page_visual-portfolio-settings .vpf-settings-info-pro-button:active{color:#fff}.portfolio_page_visual-portfolio-settings .vpf-settings-info-pro-button:hover,.portfolio_page_visual-portfolio-settings .vpf-settings-info-pro-button:focus{background:#314cda}#vp_social_integrations h2,#vp_social_integrations .submit{display:none}
2
  * Name : Visual Portfolio
3
  * Version : @@plugin_version
4
  * Author : nK https://nkdev.info
5
+ */#adminmenu a[href*="page=visual_portfolio_go_pro"],.wp-list-table.plugins a[href*="page=visual_portfolio_go_pro"],.vpf-admin-toolbar a[href*="page=visual_portfolio_go_pro"]{font-weight:700;color:#ff6a38}#adminmenu a[href*="page=visual_portfolio_go_pro"] .dashicons,.wp-list-table.plugins a[href*="page=visual_portfolio_go_pro"] .dashicons,.vpf-admin-toolbar a[href*="page=visual_portfolio_go_pro"] .dashicons{-webkit-transition:none;-o-transition:none;transition:none}#adminmenu a[href*="page=visual_portfolio_go_pro"]:hover,#adminmenu a[href*="page=visual_portfolio_go_pro"]:focus,.wp-list-table.plugins a[href*="page=visual_portfolio_go_pro"]:hover,.wp-list-table.plugins a[href*="page=visual_portfolio_go_pro"]:focus,.vpf-admin-toolbar a[href*="page=visual_portfolio_go_pro"]:hover,.vpf-admin-toolbar a[href*="page=visual_portfolio_go_pro"]:focus{color:#f59372}.dashicons-visual-portfolio,.mce-widget .mce-i-visual-portfolio{background-image:url("../images/icon.svg");background-repeat:no-repeat;background-position:center center;background-size:18px;opacity:.6}.mce-widget .mce-i-visual-portfolio{background-image:url("../images/icon-mce.svg");opacity:1}.menu-top.current .dashicons-visual-portfolio,.menu-top:hover .dashicons-visual-portfolio,.wp-has-current-submenu .dashicons-visual-portfolio{opacity:1}.vc_element-icon[data-is-container="true"].icon-visual-portfolio,.vc_element-icon.icon-visual-portfolio{background-position:50% 50%}.vc_element-icon.icon-visual-portfolio,.vc_control-visual-portfolio{position:relative;overflow:hidden;background-image:url("../images/icon-gutenberg.svg");background-position:50% 50%;background-size:cover;border-radius:3px}.vc_add-element-container .icon-visual-portfolio{position:absolute}.vc_control-visual-portfolio{display:inline-block;width:18px;height:18px;margin:0 2px;cursor:pointer}.vc_controls-row .vc_control-visual-portfolio{float:left;margin:4px}.vc_control-visual-portfolio-overlay{position:absolute;top:0;left:0;bottom:0;right:0;z-index:2}.vpf-admin-toolbar{background-color:#fff;border-bottom:1px solid #d7dbde}@media screen and (max-width: 600px){.vpf-admin-toolbar{display:none}}#wpcontent .vpf-admin-toolbar{padding-right:20px;margin-right:-20px}.vpf-admin-toolbar h2{display:inline-block;padding:5px 0;margin:0 0 0 10px;font-size:14px;line-height:2.57143}.vpf-admin-toolbar h2 i{display:inline-block;width:20px;height:20px;margin-top:-5px;margin-left:5px;vertical-align:middle;-webkit-filter:invert(1);filter:invert(1);opacity:1}.vpf-admin-toolbar .vpf-admin-toolbar-tab{display:inline-block;padding:5px 10px;margin:0 2px;font-size:14px;line-height:2.57143;color:inherit;text-decoration:none}.vpf-admin-toolbar .vpf-admin-toolbar-tab.is-active{padding-bottom:2px;border-bottom:#007cba solid 3px}.vpf-admin-toolbar .vpf-admin-toolbar-tab:hover,.vpf-admin-toolbar .vpf-admin-toolbar-tab:focus{color:#007cba}.vpf-admin-toolbar .vpf-admin-toolbar-tab .dashicons{line-height:2}.vp-row{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-sizing:border-box;box-sizing:border-box;margin-left:-15px;margin-right:-15px}.vp-col-1,.vp-col-2,.vp-col-3,.vp-col-4,.vp-col-5,.vp-col-6,.vp-col-7,.vp-col-8,.vp-col-9,.vp-col-10,.vp-col-11,.vp-col-12{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;-webkit-box-sizing:border-box;box-sizing:border-box;padding-left:15px;padding-right:15px}.vp-col-1{-ms-flex-preferred-size:8.33333%;flex-basis:8.33333%;max-width:8.33333%}.vp-col-2{-ms-flex-preferred-size:16.66667%;flex-basis:16.66667%;max-width:16.66667%}.vp-col-3{-ms-flex-preferred-size:25%;flex-basis:25%;max-width:25%}.vp-col-4{-ms-flex-preferred-size:33.33333%;flex-basis:33.33333%;max-width:33.33333%}.vp-col-5{-ms-flex-preferred-size:41.66667%;flex-basis:41.66667%;max-width:41.66667%}.vp-col-6{-ms-flex-preferred-size:50%;flex-basis:50%;max-width:50%}.vp-col-7{-ms-flex-preferred-size:58.33333%;flex-basis:58.33333%;max-width:58.33333%}.vp-col-8{-ms-flex-preferred-size:66.66667%;flex-basis:66.66667%;max-width:66.66667%}.vp-col-9{-ms-flex-preferred-size:75%;flex-basis:75%;max-width:75%}.vp-col-10{-ms-flex-preferred-size:83.33333%;flex-basis:83.33333%;max-width:83.33333%}.vp-col-11{-ms-flex-preferred-size:91.66667%;flex-basis:91.66667%;max-width:91.66667%}.vp-col-12{-ms-flex-preferred-size:100%;flex-basis:100%;max-width:100%}.vp-col-clearfix{-ms-flex-preferred-size:100%;flex-basis:100%;max-width:100%}.vp-col-clearfix .vp-control-html{margin-bottom:0}.vp-oembed-preview{position:relative;width:100%;padding-top:56.25%;color:#a2a2a2;background-color:#f1f1f1;border:1px solid #e8e8e8}.vp-oembed-preview::after{content:"\f126";position:absolute;display:block;top:50%;right:50%;width:20px;height:20px;margin-top:-10px;margin-right:-10px;font-family:dashicons;font-size:20px;font-style:normal;font-weight:400;line-height:1;text-align:center;text-decoration:inherit;z-index:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.vp-oembed-preview>iframe{position:absolute;top:0;right:0;width:100%;height:100%;z-index:2}.vpf-post-image-focal-point-panel .components-focal-point-picker_position-display-container .components-base-control__label{max-width:100%}.vpf-post-image-focal-point-panel .components-focal-point-picker_position-display-container .components-base-control{margin-bottom:0}.vpf-post-image-focal-point-panel ~ .editor-post-featured-image .editor-post-featured-image__preview{display:none}.vp-input{width:100%}.vp-portfolio__thumbnail{position:relative;display:block;max-width:70px;padding-top:100%;overflow:hidden;border-radius:3px}.vp-portfolio__thumbnail img{position:absolute;display:block;top:0;right:0;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.vp-portfolio__thumbnail:empty{background-color:#f1f1f1;border:1px solid #e8e8e8}.vp-portfolio__thumbnail:empty,.vp-portfolio__thumbnail:empty:hover,.vp-portfolio__thumbnail:empty:active,.vp-portfolio__thumbnail:empty:focus{color:#a2a2a2}.vp-portfolio__thumbnail:empty::after{content:"\f128";position:absolute;display:block;top:50%;right:50%;width:20px;height:20px;margin-top:-10px;margin-right:-10px;font-family:dashicons;font-size:20px;font-style:normal;font-weight:400;line-height:1;text-align:center;text-decoration:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.wp-list-table th.column-portfolio_post_thumbs{width:70px}.wp-list-table th.column-vp_lists_post_icon{width:28px}.wp-list-table th.column-vp_lists_post_shortcode{width:250px}@media screen and (max-width: 782px){.wp-list-table th.column-portfolio_post_thumbs,.wp-list-table th.column-vp_lists_post_icon{display:none}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-portfolio_post_thumbs,.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-vp_lists_post_icon{float:right;width:70px !important;min-width:70px}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-vp_lists_post_icon{width:40px !important}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-portfolio_post_thumbs::before{content:none}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-title{overflow:hidden;clear:left}}.notice.vpf-saved-layouts-notice{padding:11px 15px;margin-top:15px;font-size:14px;line-height:1.4}.notice.vpf-saved-layouts-notice h2{margin-top:5px;margin-bottom:12px}.notice.vpf-saved-layouts-notice p{font-size:15px}.notice.vpf-saved-layouts-notice svg{display:inline-block;width:1.3em;height:1.3em;margin-left:.2em;vertical-align:-.28em}.vp-portfolio-list__icon{position:relative;display:block;max-width:70px;padding-top:100%;overflow:hidden;color:inherit;color:#868686;background-color:#f1f1f1;border:1px solid #e8e8e8;border-radius:3px}.vp-portfolio-list__icon:hover,.vp-portfolio-list__icon:active,.vp-portfolio-list__icon:focus{color:#5f5f5f}.vp-portfolio-list__icon svg{position:absolute;display:block;top:15%;right:15%;width:70%;height:70%;-o-object-fit:cover;object-fit:cover}@media (min-width: 782px){.portfolio_page_visual-portfolio-settings h2.nav-tab-wrapper{position:relative;margin-left:-1px;border:none}.portfolio_page_visual-portfolio-settings .nav-tab-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;float:right;width:220px}.portfolio_page_visual-portfolio-settings .nav-tab-wrapper .nav-tab{padding:10px 15px;margin-bottom:-1px;margin-right:0;background:none;border:1px solid transparent;border-left:none;border-right:2px solid transparent}.portfolio_page_visual-portfolio-settings .nav-tab-wrapper .nav-tab:hover,.portfolio_page_visual-portfolio-settings .nav-tab-wrapper .nav-tab:focus,.portfolio_page_visual-portfolio-settings .nav-tab-wrapper .nav-tab-active{background:#fff;border-color:#d7dbde;border-right-color:#007cba}.portfolio_page_visual-portfolio-settings .metabox-holder{float:right;width:calc(100% - 222px);min-height:362px;margin-top:9px}.portfolio_page_visual-portfolio-settings .metabox-holder>div,.portfolio_page_visual-portfolio-settings .metabox-holder>div>form{min-height:340px}}.portfolio_page_visual-portfolio-settings .nav-tab-wrapper svg{width:1.2em;height:1.2em;margin-left:.5em;vertical-align:-.2em}.portfolio_page_visual-portfolio-settings .metabox-holder{-webkit-box-sizing:border-box;box-sizing:border-box;padding:10px 20px;background-color:#fff;border:1px solid #d7dbde}.portfolio_page_visual-portfolio-settings .metabox-holder form{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.portfolio_page_visual-portfolio-settings .metabox-holder .metabox-holder-footer{position:-webkit-sticky;position:sticky;bottom:0;padding:15px 20px;margin-top:auto;margin-left:-20px;margin-bottom:-10px;margin-right:-20px;background-color:#f5f5f5;border-top:1px solid #ddd}.portfolio_page_visual-portfolio-settings .metabox-holder .metabox-holder-footer>p{padding:0;margin:0}.portfolio_page_visual-portfolio-settings .form-table tr{display:block}.portfolio_page_visual-portfolio-settings .form-table th{display:block;width:100%;padding:0;margin-bottom:10px}.portfolio_page_visual-portfolio-settings .form-table td{display:block;padding:0;margin-bottom:20px}.portfolio_page_visual-portfolio-settings .submit{margin:0}.portfolio_page_visual-portfolio-settings .description{opacity:.7}.portfolio_page_visual-portfolio-settings .vpf-setting-type-section_title::before{content:"";display:block;padding-top:15px;margin-left:-20px;margin-right:-20px;border-top:1px solid #d7dbde}.portfolio_page_visual-portfolio-settings .vpf-setting-type-section_title label{font-size:15px}.portfolio_page_visual-portfolio-settings .vpf-setting-type-section_title label:empty{display:block;margin-top:-20px}.portfolio_page_visual-portfolio-settings .vpf-setting-type-section_title .description{margin-top:-5px}.portfolio_page_visual-portfolio-settings .wpsa-image-remove{display:none;margin-right:10px}.portfolio_page_visual-portfolio-settings .metabox-holder .notice{padding:15px}.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro>td{pointer-events:none}.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro .description{opacity:.3}.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro .vpf-settings-control-pro-label{position:relative;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:18px;height:18px;margin-right:10px;font-family:sans-serif;font-size:11px;line-height:18px;color:#fff;text-align:center;cursor:pointer;background-color:#4c4c4c;border-radius:10px}.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro .vpf-settings-control-pro-label>span{position:absolute;display:none;bottom:100%;width:130px;padding:5px;margin-bottom:10px;background-color:rgba(0,0,0,0.8);border-radius:4px;z-index:9990}.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro .vpf-settings-control-pro-label:hover>span,.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro .vpf-settings-control-pro-label:focus>span{display:block}.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro.breakpoint_xs .vpf-settings-control-pro-label,.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro.breakpoint_sm .vpf-settings-control-pro-label,.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro.breakpoint_md .vpf-settings-control-pro-label,.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro.breakpoint_lg .vpf-settings-control-pro-label,.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro.breakpoint_xl .vpf-settings-control-pro-label{display:none}.portfolio_page_visual-portfolio-settings .social_pro_info>th{display:none}.portfolio_page_visual-portfolio-settings .vpf-settings-info-pro{max-width:240px;padding:20px;text-align:center;border:2px solid #2540cc}.portfolio_page_visual-portfolio-settings .vpf-settings-info-pro h3{margin-top:0;margin-bottom:15px;font-size:13px}.portfolio_page_visual-portfolio-settings .vpf-settings-info-pro p{margin-bottom:1em;font-size:13px}.portfolio_page_visual-portfolio-settings .vpf-settings-info-pro-button{display:inline-block;padding:7px 15px;margin-top:5px;text-decoration:none;background:#2540cc;border-radius:3px}.portfolio_page_visual-portfolio-settings .vpf-settings-info-pro-button,.portfolio_page_visual-portfolio-settings .vpf-settings-info-pro-button:hover,.portfolio_page_visual-portfolio-settings .vpf-settings-info-pro-button:focus,.portfolio_page_visual-portfolio-settings .vpf-settings-info-pro-button:active{color:#fff}.portfolio_page_visual-portfolio-settings .vpf-settings-info-pro-button:hover,.portfolio_page_visual-portfolio-settings .vpf-settings-info-pro-button:focus{background:#314cda}.portfolio_page_visual-portfolio-settings .vp-toggle-field{position:relative;display:inline-block}.portfolio_page_visual-portfolio-settings .vp-toggle-field input{width:0;height:0;opacity:0}.portfolio_page_visual-portfolio-settings .vp-toggle-field .vp-toggle-field-slider-round{position:absolute;top:0;left:0;bottom:0;right:0;width:36px;height:18px;cursor:pointer;background-color:#ccc;border-radius:34px;-webkit-transition:.4s;-o-transition:.4s;transition:.4s}.portfolio_page_visual-portfolio-settings .vp-toggle-field .vp-toggle-field-slider-round::before{content:"";position:absolute;bottom:3px;right:3px;width:12px;height:12px;background-color:#fff;border-radius:50%;-webkit-transition:.4s;-o-transition:.4s;transition:.4s}.portfolio_page_visual-portfolio-settings .vp-toggle-field input:checked+.vp-toggle-field-slider-round{background-color:#007cba}.portfolio_page_visual-portfolio-settings .vp-toggle-field input:focus+.vp-toggle-field-slider-round{-webkit-box-shadow:0 0 1px #007cba;box-shadow:0 0 1px #007cba}.portfolio_page_visual-portfolio-settings .vp-toggle-field input:checked+.vp-toggle-field-slider-round::before{-webkit-transform:translateX(-18px);-ms-transform:translateX(-18px);transform:translateX(-18px)}.portfolio_page_visual-portfolio-settings .vp-toggle-field .description{margin-right:22px}.portfolio_page_visual-portfolio-settings .vp-range-field{width:183px;height:3px;vertical-align:middle;cursor:pointer;background:#007cba;outline:none;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none}.portfolio_page_visual-portfolio-settings .vp-range-field::-webkit-slider-thumb{width:20px;height:20px;background:#fff;border:1px solid #7e8993;border-radius:20px;-webkit-transition:border-width 0.2s cubic-bezier(0.26, 0.08, 0.15, 1);transition:border-width 0.2s cubic-bezier(0.26, 0.08, 0.15, 1);-webkit-appearance:none;appearance:none}.portfolio_page_visual-portfolio-settings .vp-range-field:active::-webkit-slider-thumb{border-color:#007cba;-webkit-box-shadow:0 0 0 1px #007cba;box-shadow:0 0 0 1px #007cba}.portfolio_page_visual-portfolio-settings .vp-range-number-field{-webkit-box-sizing:border-box;box-sizing:border-box;width:55px;margin-right:9px;vertical-align:middle;background:#fff;border:1px solid #8f969f;border-radius:4px}#vp_social_integrations .metabox-holder-footer,#vp_watermarks .metabox-holder-footer{display:none}
assets/admin/css/style.min.css CHANGED
@@ -2,4 +2,4 @@
2
  * Name : Visual Portfolio
3
  * Version : @@plugin_version
4
  * Author : nK https://nkdev.info
5
- */#adminmenu a[href*="page=visual_portfolio_go_pro"],.wp-list-table.plugins a[href*="page=visual_portfolio_go_pro"]{font-weight:700;color:#ff6a38}#adminmenu a[href*="page=visual_portfolio_go_pro"] .dashicons,.wp-list-table.plugins a[href*="page=visual_portfolio_go_pro"] .dashicons{-webkit-transition:none;-o-transition:none;transition:none}#adminmenu a[href*="page=visual_portfolio_go_pro"]:hover,#adminmenu a[href*="page=visual_portfolio_go_pro"]:focus,.wp-list-table.plugins a[href*="page=visual_portfolio_go_pro"]:hover,.wp-list-table.plugins a[href*="page=visual_portfolio_go_pro"]:focus{color:#f59372}.dashicons-visual-portfolio,.mce-widget .mce-i-visual-portfolio{background-image:url("../images/icon.svg");background-repeat:no-repeat;background-position:center center;background-size:18px;opacity:.6}.mce-widget .mce-i-visual-portfolio{background-image:url("../images/icon-mce.svg");opacity:1}.menu-top.current .dashicons-visual-portfolio,.menu-top:hover .dashicons-visual-portfolio,.wp-has-current-submenu .dashicons-visual-portfolio{opacity:1}.vc_element-icon[data-is-container="true"].icon-visual-portfolio,.vc_element-icon.icon-visual-portfolio{background-position:50% 50%}.vc_element-icon.icon-visual-portfolio,.vc_control-visual-portfolio{position:relative;overflow:hidden;background-image:url("../images/icon-gutenberg.svg");background-position:50% 50%;background-size:cover;border-radius:3px}.vc_add-element-container .icon-visual-portfolio{position:absolute}.vc_control-visual-portfolio{display:inline-block;width:18px;height:18px;margin:0 2px;cursor:pointer}.vc_controls-row .vc_control-visual-portfolio{float:right;margin:4px}.vc_control-visual-portfolio-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2}.vp-row{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-sizing:border-box;box-sizing:border-box;margin-right:-15px;margin-left:-15px}.vp-col-1,.vp-col-2,.vp-col-3,.vp-col-4,.vp-col-5,.vp-col-6,.vp-col-7,.vp-col-8,.vp-col-9,.vp-col-10,.vp-col-11,.vp-col-12{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;-webkit-box-sizing:border-box;box-sizing:border-box;padding-right:15px;padding-left:15px}.vp-col-1{-ms-flex-preferred-size:8.33333%;flex-basis:8.33333%;max-width:8.33333%}.vp-col-2{-ms-flex-preferred-size:16.66667%;flex-basis:16.66667%;max-width:16.66667%}.vp-col-3{-ms-flex-preferred-size:25%;flex-basis:25%;max-width:25%}.vp-col-4{-ms-flex-preferred-size:33.33333%;flex-basis:33.33333%;max-width:33.33333%}.vp-col-5{-ms-flex-preferred-size:41.66667%;flex-basis:41.66667%;max-width:41.66667%}.vp-col-6{-ms-flex-preferred-size:50%;flex-basis:50%;max-width:50%}.vp-col-7{-ms-flex-preferred-size:58.33333%;flex-basis:58.33333%;max-width:58.33333%}.vp-col-8{-ms-flex-preferred-size:66.66667%;flex-basis:66.66667%;max-width:66.66667%}.vp-col-9{-ms-flex-preferred-size:75%;flex-basis:75%;max-width:75%}.vp-col-10{-ms-flex-preferred-size:83.33333%;flex-basis:83.33333%;max-width:83.33333%}.vp-col-11{-ms-flex-preferred-size:91.66667%;flex-basis:91.66667%;max-width:91.66667%}.vp-col-12{-ms-flex-preferred-size:100%;flex-basis:100%;max-width:100%}.vp-col-clearfix{-ms-flex-preferred-size:100%;flex-basis:100%;max-width:100%}.vp-col-clearfix .vp-control-html{margin-bottom:0}.vp-oembed-preview{position:relative;width:100%;padding-top:56.25%;color:#a2a2a2;background-color:#f1f1f1;border:1px solid #e8e8e8}.vp-oembed-preview::after{content:"\f126";position:absolute;display:block;top:50%;left:50%;width:20px;height:20px;margin-top:-10px;margin-left:-10px;font-family:dashicons;font-size:20px;font-style:normal;font-weight:400;line-height:1;text-align:center;text-decoration:inherit;z-index:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.vp-oembed-preview>iframe{position:absolute;top:0;left:0;width:100%;height:100%;z-index:2}.vpf-post-image-focal-point-panel .components-focal-point-picker_position-display-container .components-base-control__label{max-width:100%}.vpf-post-image-focal-point-panel .components-focal-point-picker_position-display-container .components-base-control{margin-bottom:0}.vpf-post-image-focal-point-panel ~ .editor-post-featured-image .editor-post-featured-image__preview{display:none}.vp-input{width:100%}.vp-portfolio__thumbnail{position:relative;display:block;max-width:70px;padding-top:100%;overflow:hidden;border-radius:3px}.vp-portfolio__thumbnail img{position:absolute;display:block;top:0;left:0;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.vp-portfolio__thumbnail:empty{background-color:#f1f1f1;border:1px solid #e8e8e8}.vp-portfolio__thumbnail:empty,.vp-portfolio__thumbnail:empty:hover,.vp-portfolio__thumbnail:empty:active,.vp-portfolio__thumbnail:empty:focus{color:#a2a2a2}.vp-portfolio__thumbnail:empty::after{content:"\f128";position:absolute;display:block;top:50%;left:50%;width:20px;height:20px;margin-top:-10px;margin-left:-10px;font-family:dashicons;font-size:20px;font-style:normal;font-weight:400;line-height:1;text-align:center;text-decoration:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.wp-list-table th.column-portfolio_post_thumbs{width:70px}.wp-list-table th.column-vp_lists_post_icon{width:28px}.wp-list-table th.column-vp_lists_post_shortcode{width:250px}@media screen and (max-width: 782px){.wp-list-table th.column-portfolio_post_thumbs,.wp-list-table th.column-vp_lists_post_icon{display:none}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-portfolio_post_thumbs,.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-vp_lists_post_icon{float:left;width:70px !important;min-width:70px}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-vp_lists_post_icon{width:40px !important}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-portfolio_post_thumbs::before{content:none}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-title{overflow:hidden;clear:right}}.notice.vpf-saved-layouts-notice{padding:11px 15px;margin-top:15px;font-size:14px;line-height:1.4}.notice.vpf-saved-layouts-notice h2{margin-top:5px;margin-bottom:12px}.notice.vpf-saved-layouts-notice p{font-size:15px}.notice.vpf-saved-layouts-notice svg{display:inline-block;width:1.3em;height:1.3em;margin-right:.2em;vertical-align:-.28em}.vp-portfolio-list__icon{position:relative;display:block;max-width:70px;padding-top:100%;overflow:hidden;color:inherit;color:#868686;background-color:#f1f1f1;border:1px solid #e8e8e8;border-radius:3px}.vp-portfolio-list__icon:hover,.vp-portfolio-list__icon:active,.vp-portfolio-list__icon:focus{color:#5f5f5f}.vp-portfolio-list__icon svg{position:absolute;display:block;top:15%;left:15%;width:70%;height:70%;-o-object-fit:cover;object-fit:cover}.portfolio_page_visual-portfolio-settings .description{opacity:.7}.portfolio_page_visual-portfolio-settings .wpsa-image-remove{display:none;margin-left:10px}.portfolio_page_visual-portfolio-settings .metabox-holder .notice{padding:15px}.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro>td{pointer-events:none}.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro .description{opacity:.3}.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro .vpf-settings-control-pro-label{position:relative;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:18px;height:18px;margin-left:10px;font-family:sans-serif;font-size:11px;line-height:18px;color:#fff;text-align:center;cursor:pointer;background-color:#4c4c4c;border-radius:10px}.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro .vpf-settings-control-pro-label>span{position:absolute;display:none;bottom:100%;width:130px;padding:5px;margin-bottom:10px;background-color:rgba(0,0,0,0.8);border-radius:4px;z-index:9990}.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro .vpf-settings-control-pro-label:hover>span,.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro .vpf-settings-control-pro-label:focus>span{display:block}.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro.breakpoint_xs .vpf-settings-control-pro-label,.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro.breakpoint_sm .vpf-settings-control-pro-label,.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro.breakpoint_md .vpf-settings-control-pro-label,.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro.breakpoint_lg .vpf-settings-control-pro-label,.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro.breakpoint_xl .vpf-settings-control-pro-label{display:none}.portfolio_page_visual-portfolio-settings .social_pro_info>th{display:none}.portfolio_page_visual-portfolio-settings .vpf-settings-info-pro{max-width:240px;padding:20px;text-align:center;background-color:#e2e2e2;border-radius:4px}.portfolio_page_visual-portfolio-settings .vpf-settings-info-pro h3{margin-top:0;margin-bottom:15px;font-size:13px}.portfolio_page_visual-portfolio-settings .vpf-settings-info-pro p{margin-bottom:1em;font-size:13px}.portfolio_page_visual-portfolio-settings .vpf-settings-info-pro-button{display:inline-block;padding:7px 15px;margin-top:5px;text-decoration:none;background:#2540cc;border-radius:3px}.portfolio_page_visual-portfolio-settings .vpf-settings-info-pro-button,.portfolio_page_visual-portfolio-settings .vpf-settings-info-pro-button:hover,.portfolio_page_visual-portfolio-settings .vpf-settings-info-pro-button:focus,.portfolio_page_visual-portfolio-settings .vpf-settings-info-pro-button:active{color:#fff}.portfolio_page_visual-portfolio-settings .vpf-settings-info-pro-button:hover,.portfolio_page_visual-portfolio-settings .vpf-settings-info-pro-button:focus{background:#314cda}#vp_social_integrations h2,#vp_social_integrations .submit{display:none}
2
  * Name : Visual Portfolio
3
  * Version : @@plugin_version
4
  * Author : nK https://nkdev.info
5
+ */#adminmenu a[href*="page=visual_portfolio_go_pro"],.wp-list-table.plugins a[href*="page=visual_portfolio_go_pro"],.vpf-admin-toolbar a[href*="page=visual_portfolio_go_pro"]{font-weight:700;color:#ff6a38}#adminmenu a[href*="page=visual_portfolio_go_pro"] .dashicons,.wp-list-table.plugins a[href*="page=visual_portfolio_go_pro"] .dashicons,.vpf-admin-toolbar a[href*="page=visual_portfolio_go_pro"] .dashicons{-webkit-transition:none;-o-transition:none;transition:none}#adminmenu a[href*="page=visual_portfolio_go_pro"]:hover,#adminmenu a[href*="page=visual_portfolio_go_pro"]:focus,.wp-list-table.plugins a[href*="page=visual_portfolio_go_pro"]:hover,.wp-list-table.plugins a[href*="page=visual_portfolio_go_pro"]:focus,.vpf-admin-toolbar a[href*="page=visual_portfolio_go_pro"]:hover,.vpf-admin-toolbar a[href*="page=visual_portfolio_go_pro"]:focus{color:#f59372}.dashicons-visual-portfolio,.mce-widget .mce-i-visual-portfolio{background-image:url("../images/icon.svg");background-repeat:no-repeat;background-position:center center;background-size:18px;opacity:.6}.mce-widget .mce-i-visual-portfolio{background-image:url("../images/icon-mce.svg");opacity:1}.menu-top.current .dashicons-visual-portfolio,.menu-top:hover .dashicons-visual-portfolio,.wp-has-current-submenu .dashicons-visual-portfolio{opacity:1}.vc_element-icon[data-is-container="true"].icon-visual-portfolio,.vc_element-icon.icon-visual-portfolio{background-position:50% 50%}.vc_element-icon.icon-visual-portfolio,.vc_control-visual-portfolio{position:relative;overflow:hidden;background-image:url("../images/icon-gutenberg.svg");background-position:50% 50%;background-size:cover;border-radius:3px}.vc_add-element-container .icon-visual-portfolio{position:absolute}.vc_control-visual-portfolio{display:inline-block;width:18px;height:18px;margin:0 2px;cursor:pointer}.vc_controls-row .vc_control-visual-portfolio{float:right;margin:4px}.vc_control-visual-portfolio-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2}.vpf-admin-toolbar{background-color:#fff;border-bottom:1px solid #d7dbde}@media screen and (max-width: 600px){.vpf-admin-toolbar{display:none}}#wpcontent .vpf-admin-toolbar{padding-left:20px;margin-left:-20px}.vpf-admin-toolbar h2{display:inline-block;padding:5px 0;margin:0 10px 0 0;font-size:14px;line-height:2.57143}.vpf-admin-toolbar h2 i{display:inline-block;width:20px;height:20px;margin-top:-5px;margin-right:5px;vertical-align:middle;-webkit-filter:invert(1);filter:invert(1);opacity:1}.vpf-admin-toolbar .vpf-admin-toolbar-tab{display:inline-block;padding:5px 10px;margin:0 2px;font-size:14px;line-height:2.57143;color:inherit;text-decoration:none}.vpf-admin-toolbar .vpf-admin-toolbar-tab.is-active{padding-bottom:2px;border-bottom:#007cba solid 3px}.vpf-admin-toolbar .vpf-admin-toolbar-tab:hover,.vpf-admin-toolbar .vpf-admin-toolbar-tab:focus{color:#007cba}.vpf-admin-toolbar .vpf-admin-toolbar-tab .dashicons{line-height:2}.vp-row{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-sizing:border-box;box-sizing:border-box;margin-right:-15px;margin-left:-15px}.vp-col-1,.vp-col-2,.vp-col-3,.vp-col-4,.vp-col-5,.vp-col-6,.vp-col-7,.vp-col-8,.vp-col-9,.vp-col-10,.vp-col-11,.vp-col-12{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;-webkit-box-sizing:border-box;box-sizing:border-box;padding-right:15px;padding-left:15px}.vp-col-1{-ms-flex-preferred-size:8.33333%;flex-basis:8.33333%;max-width:8.33333%}.vp-col-2{-ms-flex-preferred-size:16.66667%;flex-basis:16.66667%;max-width:16.66667%}.vp-col-3{-ms-flex-preferred-size:25%;flex-basis:25%;max-width:25%}.vp-col-4{-ms-flex-preferred-size:33.33333%;flex-basis:33.33333%;max-width:33.33333%}.vp-col-5{-ms-flex-preferred-size:41.66667%;flex-basis:41.66667%;max-width:41.66667%}.vp-col-6{-ms-flex-preferred-size:50%;flex-basis:50%;max-width:50%}.vp-col-7{-ms-flex-preferred-size:58.33333%;flex-basis:58.33333%;max-width:58.33333%}.vp-col-8{-ms-flex-preferred-size:66.66667%;flex-basis:66.66667%;max-width:66.66667%}.vp-col-9{-ms-flex-preferred-size:75%;flex-basis:75%;max-width:75%}.vp-col-10{-ms-flex-preferred-size:83.33333%;flex-basis:83.33333%;max-width:83.33333%}.vp-col-11{-ms-flex-preferred-size:91.66667%;flex-basis:91.66667%;max-width:91.66667%}.vp-col-12{-ms-flex-preferred-size:100%;flex-basis:100%;max-width:100%}.vp-col-clearfix{-ms-flex-preferred-size:100%;flex-basis:100%;max-width:100%}.vp-col-clearfix .vp-control-html{margin-bottom:0}.vp-oembed-preview{position:relative;width:100%;padding-top:56.25%;color:#a2a2a2;background-color:#f1f1f1;border:1px solid #e8e8e8}.vp-oembed-preview::after{content:"\f126";position:absolute;display:block;top:50%;left:50%;width:20px;height:20px;margin-top:-10px;margin-left:-10px;font-family:dashicons;font-size:20px;font-style:normal;font-weight:400;line-height:1;text-align:center;text-decoration:inherit;z-index:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.vp-oembed-preview>iframe{position:absolute;top:0;left:0;width:100%;height:100%;z-index:2}.vpf-post-image-focal-point-panel .components-focal-point-picker_position-display-container .components-base-control__label{max-width:100%}.vpf-post-image-focal-point-panel .components-focal-point-picker_position-display-container .components-base-control{margin-bottom:0}.vpf-post-image-focal-point-panel ~ .editor-post-featured-image .editor-post-featured-image__preview{display:none}.vp-input{width:100%}.vp-portfolio__thumbnail{position:relative;display:block;max-width:70px;padding-top:100%;overflow:hidden;border-radius:3px}.vp-portfolio__thumbnail img{position:absolute;display:block;top:0;left:0;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.vp-portfolio__thumbnail:empty{background-color:#f1f1f1;border:1px solid #e8e8e8}.vp-portfolio__thumbnail:empty,.vp-portfolio__thumbnail:empty:hover,.vp-portfolio__thumbnail:empty:active,.vp-portfolio__thumbnail:empty:focus{color:#a2a2a2}.vp-portfolio__thumbnail:empty::after{content:"\f128";position:absolute;display:block;top:50%;left:50%;width:20px;height:20px;margin-top:-10px;margin-left:-10px;font-family:dashicons;font-size:20px;font-style:normal;font-weight:400;line-height:1;text-align:center;text-decoration:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.wp-list-table th.column-portfolio_post_thumbs{width:70px}.wp-list-table th.column-vp_lists_post_icon{width:28px}.wp-list-table th.column-vp_lists_post_shortcode{width:250px}@media screen and (max-width: 782px){.wp-list-table th.column-portfolio_post_thumbs,.wp-list-table th.column-vp_lists_post_icon{display:none}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-portfolio_post_thumbs,.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-vp_lists_post_icon{float:left;width:70px !important;min-width:70px}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-vp_lists_post_icon{width:40px !important}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-portfolio_post_thumbs::before{content:none}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-title{overflow:hidden;clear:right}}.notice.vpf-saved-layouts-notice{padding:11px 15px;margin-top:15px;font-size:14px;line-height:1.4}.notice.vpf-saved-layouts-notice h2{margin-top:5px;margin-bottom:12px}.notice.vpf-saved-layouts-notice p{font-size:15px}.notice.vpf-saved-layouts-notice svg{display:inline-block;width:1.3em;height:1.3em;margin-right:.2em;vertical-align:-.28em}.vp-portfolio-list__icon{position:relative;display:block;max-width:70px;padding-top:100%;overflow:hidden;color:inherit;color:#868686;background-color:#f1f1f1;border:1px solid #e8e8e8;border-radius:3px}.vp-portfolio-list__icon:hover,.vp-portfolio-list__icon:active,.vp-portfolio-list__icon:focus{color:#5f5f5f}.vp-portfolio-list__icon svg{position:absolute;display:block;top:15%;left:15%;width:70%;height:70%;-o-object-fit:cover;object-fit:cover}@media (min-width: 782px){.portfolio_page_visual-portfolio-settings h2.nav-tab-wrapper{position:relative;margin-right:-1px;border:none}.portfolio_page_visual-portfolio-settings .nav-tab-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;float:left;width:220px}.portfolio_page_visual-portfolio-settings .nav-tab-wrapper .nav-tab{padding:10px 15px;margin-bottom:-1px;margin-left:0;background:none;border:1px solid transparent;border-right:none;border-left:2px solid transparent}.portfolio_page_visual-portfolio-settings .nav-tab-wrapper .nav-tab:hover,.portfolio_page_visual-portfolio-settings .nav-tab-wrapper .nav-tab:focus,.portfolio_page_visual-portfolio-settings .nav-tab-wrapper .nav-tab-active{background:#fff;border-color:#d7dbde;border-left-color:#007cba}.portfolio_page_visual-portfolio-settings .metabox-holder{float:left;width:calc(100% - 222px);min-height:362px;margin-top:9px}.portfolio_page_visual-portfolio-settings .metabox-holder>div,.portfolio_page_visual-portfolio-settings .metabox-holder>div>form{min-height:340px}}.portfolio_page_visual-portfolio-settings .nav-tab-wrapper svg{width:1.2em;height:1.2em;margin-right:.5em;vertical-align:-.2em}.portfolio_page_visual-portfolio-settings .metabox-holder{-webkit-box-sizing:border-box;box-sizing:border-box;padding:10px 20px;background-color:#fff;border:1px solid #d7dbde}.portfolio_page_visual-portfolio-settings .metabox-holder form{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.portfolio_page_visual-portfolio-settings .metabox-holder .metabox-holder-footer{position:-webkit-sticky;position:sticky;bottom:0;padding:15px 20px;margin-top:auto;margin-right:-20px;margin-bottom:-10px;margin-left:-20px;background-color:#f5f5f5;border-top:1px solid #ddd}.portfolio_page_visual-portfolio-settings .metabox-holder .metabox-holder-footer>p{padding:0;margin:0}.portfolio_page_visual-portfolio-settings .form-table tr{display:block}.portfolio_page_visual-portfolio-settings .form-table th{display:block;width:100%;padding:0;margin-bottom:10px}.portfolio_page_visual-portfolio-settings .form-table td{display:block;padding:0;margin-bottom:20px}.portfolio_page_visual-portfolio-settings .submit{margin:0}.portfolio_page_visual-portfolio-settings .description{opacity:.7}.portfolio_page_visual-portfolio-settings .vpf-setting-type-section_title::before{content:"";display:block;padding-top:15px;margin-right:-20px;margin-left:-20px;border-top:1px solid #d7dbde}.portfolio_page_visual-portfolio-settings .vpf-setting-type-section_title label{font-size:15px}.portfolio_page_visual-portfolio-settings .vpf-setting-type-section_title label:empty{display:block;margin-top:-20px}.portfolio_page_visual-portfolio-settings .vpf-setting-type-section_title .description{margin-top:-5px}.portfolio_page_visual-portfolio-settings .wpsa-image-remove{display:none;margin-left:10px}.portfolio_page_visual-portfolio-settings .metabox-holder .notice{padding:15px}.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro>td{pointer-events:none}.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro .description{opacity:.3}.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro .vpf-settings-control-pro-label{position:relative;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:18px;height:18px;margin-left:10px;font-family:sans-serif;font-size:11px;line-height:18px;color:#fff;text-align:center;cursor:pointer;background-color:#4c4c4c;border-radius:10px}.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro .vpf-settings-control-pro-label>span{position:absolute;display:none;bottom:100%;width:130px;padding:5px;margin-bottom:10px;background-color:rgba(0,0,0,0.8);border-radius:4px;z-index:9990}.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro .vpf-settings-control-pro-label:hover>span,.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro .vpf-settings-control-pro-label:focus>span{display:block}.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro.breakpoint_xs .vpf-settings-control-pro-label,.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro.breakpoint_sm .vpf-settings-control-pro-label,.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro.breakpoint_md .vpf-settings-control-pro-label,.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro.breakpoint_lg .vpf-settings-control-pro-label,.portfolio_page_visual-portfolio-settings .vpf-settings-control-pro.breakpoint_xl .vpf-settings-control-pro-label{display:none}.portfolio_page_visual-portfolio-settings .social_pro_info>th{display:none}.portfolio_page_visual-portfolio-settings .vpf-settings-info-pro{max-width:240px;padding:20px;text-align:center;border:2px solid #2540cc}.portfolio_page_visual-portfolio-settings .vpf-settings-info-pro h3{margin-top:0;margin-bottom:15px;font-size:13px}.portfolio_page_visual-portfolio-settings .vpf-settings-info-pro p{margin-bottom:1em;font-size:13px}.portfolio_page_visual-portfolio-settings .vpf-settings-info-pro-button{display:inline-block;padding:7px 15px;margin-top:5px;text-decoration:none;background:#2540cc;border-radius:3px}.portfolio_page_visual-portfolio-settings .vpf-settings-info-pro-button,.portfolio_page_visual-portfolio-settings .vpf-settings-info-pro-button:hover,.portfolio_page_visual-portfolio-settings .vpf-settings-info-pro-button:focus,.portfolio_page_visual-portfolio-settings .vpf-settings-info-pro-button:active{color:#fff}.portfolio_page_visual-portfolio-settings .vpf-settings-info-pro-button:hover,.portfolio_page_visual-portfolio-settings .vpf-settings-info-pro-button:focus{background:#314cda}.portfolio_page_visual-portfolio-settings .vp-toggle-field{position:relative;display:inline-block}.portfolio_page_visual-portfolio-settings .vp-toggle-field input{width:0;height:0;opacity:0}.portfolio_page_visual-portfolio-settings .vp-toggle-field .vp-toggle-field-slider-round{position:absolute;top:0;right:0;bottom:0;left:0;width:36px;height:18px;cursor:pointer;background-color:#ccc;border-radius:34px;-webkit-transition:.4s;-o-transition:.4s;transition:.4s}.portfolio_page_visual-portfolio-settings .vp-toggle-field .vp-toggle-field-slider-round::before{content:"";position:absolute;bottom:3px;left:3px;width:12px;height:12px;background-color:#fff;border-radius:50%;-webkit-transition:.4s;-o-transition:.4s;transition:.4s}.portfolio_page_visual-portfolio-settings .vp-toggle-field input:checked+.vp-toggle-field-slider-round{background-color:#007cba}.portfolio_page_visual-portfolio-settings .vp-toggle-field input:focus+.vp-toggle-field-slider-round{-webkit-box-shadow:0 0 1px #007cba;box-shadow:0 0 1px #007cba}.portfolio_page_visual-portfolio-settings .vp-toggle-field input:checked+.vp-toggle-field-slider-round::before{-webkit-transform:translateX(18px);-ms-transform:translateX(18px);transform:translateX(18px)}.portfolio_page_visual-portfolio-settings .vp-toggle-field .description{margin-left:22px}.portfolio_page_visual-portfolio-settings .vp-range-field{width:183px;height:3px;vertical-align:middle;cursor:pointer;background:#007cba;outline:none;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none}.portfolio_page_visual-portfolio-settings .vp-range-field::-webkit-slider-thumb{width:20px;height:20px;background:#fff;border:1px solid #7e8993;border-radius:20px;-webkit-transition:border-width 0.2s cubic-bezier(0.26, 0.08, 0.15, 1);transition:border-width 0.2s cubic-bezier(0.26, 0.08, 0.15, 1);-webkit-appearance:none;appearance:none}.portfolio_page_visual-portfolio-settings .vp-range-field:active::-webkit-slider-thumb{border-color:#007cba;-webkit-box-shadow:0 0 0 1px #007cba;box-shadow:0 0 0 1px #007cba}.portfolio_page_visual-portfolio-settings .vp-range-number-field{-webkit-box-sizing:border-box;box-sizing:border-box;width:55px;margin-left:9px;vertical-align:middle;background:#fff;border:1px solid #8f969f;border-radius:4px}#vp_social_integrations .metabox-holder-footer,#vp_watermarks .metabox-holder-footer{display:none}
assets/admin/js/elementor.js CHANGED
@@ -2,7 +2,7 @@
2
  * Additional js for Elementor
3
  *
4
  * Name : Visual Portfolio
5
- * Version : 2.10.5
6
  * Author : nK https://nkdev.info
7
  */
8
  import { throttle } from 'throttle-debounce';
2
  * Additional js for Elementor
3
  *
4
  * Name : Visual Portfolio
5
+ * Version : 2.11.0
6
  * Author : nK https://nkdev.info
7
  */
8
  import { throttle } from 'throttle-debounce';
assets/admin/js/mce-dropdown.js CHANGED
@@ -1,22 +1,23 @@
1
  /*!
2
  * Name : Visual Portfolio
3
- * Version : 2.10.5
4
  * Author : nK https://nkdev.info
5
  */
6
  const {
7
  tinymce,
8
- VPTinyMCEOptions,
9
  } = window;
10
- if ( 'undefined' !== typeof VPTinyMCEOptions && VPTinyMCEOptions.length ) {
 
11
  const options = [ {
12
  text: '',
13
  value: '',
14
  } ];
15
 
16
- Object.keys( VPTinyMCEOptions ).forEach( ( k ) => {
17
  options.push( {
18
- text: VPTinyMCEOptions[ k ].title,
19
- value: VPTinyMCEOptions[ k ].id,
20
  } );
21
  } );
22
 
@@ -24,7 +25,7 @@ if ( 'undefined' !== typeof VPTinyMCEOptions && VPTinyMCEOptions.length ) {
24
  init( editor ) {
25
  editor.addButton( 'visual_portfolio', {
26
  type: 'listbox',
27
- title: 'Visual Portfolio',
28
  icon: 'visual-portfolio',
29
  classes: 'visual-portfolio-btn',
30
  onclick() {
1
  /*!
2
  * Name : Visual Portfolio
3
+ * Version : 2.11.0
4
  * Author : nK https://nkdev.info
5
  */
6
  const {
7
  tinymce,
8
+ VPTinyMCEData,
9
  } = window;
10
+
11
+ if ( 'undefined' !== typeof VPTinyMCEData && VPTinyMCEData.layouts.length ) {
12
  const options = [ {
13
  text: '',
14
  value: '',
15
  } ];
16
 
17
+ Object.keys( VPTinyMCEData.layouts ).forEach( ( k ) => {
18
  options.push( {
19
+ text: VPTinyMCEData.layouts[ k ].title,
20
+ value: VPTinyMCEData.layouts[ k ].id,
21
  } );
22
  } );
23
 
25
  init( editor ) {
26
  editor.addButton( 'visual_portfolio', {
27
  type: 'listbox',
28
+ title: VPTinyMCEData.plugin_name,
29
  icon: 'visual-portfolio',
30
  classes: 'visual-portfolio-btn',
31
  onclick() {
assets/admin/js/mce-dropdown.min.js CHANGED
@@ -4,4 +4,4 @@
4
  * Version : @@plugin_version
5
  * Author : nK https://nkdev.info
6
  */
7
- var n=window,o=n.tinymce,i=n.VPTinyMCEOptions;if(void 0!==i&&i.length){var r=[{text:"",value:""}];Object.keys(i).forEach((function(t){r.push({text:i[t].title,value:i[t].id})})),o.create("tinymce.plugins.visual_portfolio",{init:function(t){t.addButton("visual_portfolio",{type:"listbox",title:"Visual Portfolio",icon:"visual-portfolio",classes:"visual-portfolio-btn",onclick:function(){this.menu&&this.menu.$el.find(".mce-first").hide()},onselect:function(){this.value()&&t.insertContent('[visual_portfolio id="'.concat(this.value(),'"]')),this.value("")},values:r,value:""})}}),o.PluginManager.add("visual_portfolio",o.plugins.visual_portfolio)}}});
4
  * Version : @@plugin_version
5
  * Author : nK https://nkdev.info
6
  */
7
+ var n=window,o=n.tinymce,i=n.VPTinyMCEData;if(void 0!==i&&i.layouts.length){var u=[{text:"",value:""}];Object.keys(i.layouts).forEach((function(t){u.push({text:i.layouts[t].title,value:i.layouts[t].id})})),o.create("tinymce.plugins.visual_portfolio",{init:function(t){t.addButton("visual_portfolio",{type:"listbox",title:i.plugin_name,icon:"visual-portfolio",classes:"visual-portfolio-btn",onclick:function(){this.menu&&this.menu.$el.find(".mce-first").hide()},onselect:function(){this.value()&&t.insertContent('[visual_portfolio id="'.concat(this.value(),'"]')),this.value("")},values:u,value:""})}}),o.PluginManager.add("visual_portfolio",o.plugins.visual_portfolio)}}});
assets/admin/js/script.js CHANGED
@@ -1,6 +1,6 @@
1
  /*!
2
  * Name : Visual Portfolio
3
- * Version : 2.10.5
4
  * Author : nK https://nkdev.info
5
  */
6
  import { debounce } from 'throttle-debounce';
1
  /*!
2
  * Name : Visual Portfolio
3
+ * Version : 2.11.0
4
  * Author : nK https://nkdev.info
5
  */
6
  import { debounce } from 'throttle-debounce';
assets/admin/js/vc-frontend.js CHANGED
@@ -2,7 +2,7 @@
2
  * Additional js for frontend VC
3
  *
4
  * Name : Visual Portfolio
5
- * Version : 2.10.5
6
  * Author : nK https://nkdev.info
7
  */
8
  const {
2
  * Additional js for frontend VC
3
  *
4
  * Name : Visual Portfolio
5
+ * Version : 2.11.0
6
  * Author : nK https://nkdev.info
7
  */
8
  const {
assets/css/main-rtl.min.css CHANGED
@@ -1 +1 @@
1
- :root{--vp-color-brand: #2540cc;--vp-color-gray: #6c7781;--vp-color-gray-darken: #4b4b4b;--vp-color-gray-light: #e8e8e8;--vp-color-gray-lighten: #f7f7f7;--vp-border-radius: 5px;--vp-items__gap: 0;--vp-transition-duration: .3s;--vp-transition-easing: ease-in-out;--vp-interactive__transition-duration: .2s;--vp-interactive__transition-easing: ease-in-out}.vp-portfolio__items{--vp-items__gap-vertical: var(--vp-items__gap)}.vp-portfolio{--vp-wrap__min-height: 114px;--vp-elements__gap: 20px;--vp-images__object-fit: cover;--vp-images__object-position: 50% 50%}.vp-spinner{--vp-spinner__color: currentColor;--vp-spinner__size: 20px;--vp-spinner__border-size: 2px;--vp-spinner__speed: .3s;--vp-spinner--background__color: var(--vp-spinner__color);--vp-spinner--background__opacity: .3}.vp-portfolio{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;min-height:var(--vp-wrap__min-height);overflow-wrap:break-word}.vp-portfolio *,.vp-portfolio *::before,.vp-portfolio *::after{-webkit-box-sizing:inherit;box-sizing:inherit}.vp-portfolio .swiper-wrapper{-webkit-box-sizing:inherit;box-sizing:inherit}.vp-portfolio__items{-webkit-transition:var(--vp-transition-duration) height var(--vp-transition-easing),var(--vp-transition-duration) transform var(--vp-transition-easing);-o-transition:var(--vp-transition-duration) height var(--vp-transition-easing),var(--vp-transition-duration) transform var(--vp-transition-easing);transition:var(--vp-transition-duration) height var(--vp-transition-easing),var(--vp-transition-duration) transform var(--vp-transition-easing);will-change:height, transform}.vp-portfolio::after,.vp-portfolio__items::after{content:"";display:block;clear:both}.vp-portfolio__items-wrap,.vp-portfolio__thumbnails-wrap,.vp-portfolio__filter-wrap,.vp-portfolio__sort-wrap,.vp-portfolio__pagination-wrap,.vp-portfolio__item{position:relative;overflow:hidden}.vp-portfolio__items-wrap,.vp-portfolio__thumbnails-wrap,.vp-portfolio__layout-elements{margin-bottom:var(--vp-elements__gap);visibility:hidden;opacity:0;-webkit-transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;-o-transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;will-change:opacity, visibility}.vp-portfolio>:last-child{margin-bottom:0}.vp-portfolio__item-wrap{position:relative;float:right;width:33.333%}.vp-svg-icon{display:inline-block;width:1em;height:1em;overflow:visible;font-size:inherit;vertical-align:-.125em}.vp-screen-reader-text{position:absolute !important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);word-break:normal;word-wrap:normal !important;border:0;-webkit-clip-path:inset(50%);clip-path:inset(50%)}.vp-screen-reader-text:focus{display:block;top:5px;left:5px;width:auto;height:auto;padding:15px 23px 14px;clip:auto !important;font-size:14px;font-size:.875rem;font-weight:700;line-height:normal;color:var(--vp-color-brand);text-decoration:none;background-color:#f1f1f1;border-radius:3px;-webkit-box-shadow:0 0 2px 2px rgba(0,0,0,0.6);box-shadow:0 0 2px 2px rgba(0,0,0,0.6);-webkit-clip-path:none;clip-path:none;z-index:100000}[data-vp-layout]:not([data-vp-layout="slider"]) .vp-portfolio__item-wrap{padding:0 !important;margin:0 !important}[data-vp-layout="slider"] .vp-portfolio__item-wrap{float:none;padding:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important}.vp-portfolio__item .vp-portfolio__item-img img,.vp-portfolio__item .vp-portfolio__item-img a,.vp-portfolio__item .vp-portfolio__thumbnail-img img{display:block;width:100%;height:auto}.vp-portfolio__item-img,.vp-portfolio__thumbnail-img{position:relative}.vp-portfolio__item .vp-portfolio__item-img a{position:unset}.vp-portfolio__layout-elements{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;width:calc(100% + var(--vp-elements__gap));margin-top:calc(-1 * var(--vp-elements__gap));margin-right:calc(-1 * var(--vp-elements__gap))}.vp-portfolio__layout-elements>*{margin-top:var(--vp-elements__gap);margin-right:var(--vp-elements__gap)}.vp-portfolio__layout-elements-align-left{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.vp-portfolio__layout-elements-align-center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.vp-portfolio__layout-elements-align-right{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.vp-portfolio__layout-elements-align-between{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.vp-portfolio figure.vp-portfolio__item{margin:0}[class^="wp-block-"]:not(.wp-block-gallery) figcaption.vp-portfolio__item-meta,.vp-portfolio figcaption.vp-portfolio__item-meta{margin-bottom:0;font-style:inherit}.vp-portfolio__preloader-wrap{visibility:visible;opacity:1;-webkit-transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;-o-transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;will-change:opacity, visibility}.vp-portfolio__preloader{position:absolute;right:50%;width:20px;height:20px;margin-top:45px;margin-right:-10px}.vp-portfolio__preloader svg,.vp-portfolio__preloader img{display:block;width:100%;height:100%}.vp-portfolio__preloader::after{content:"";position:absolute;display:block;top:-2px;right:-2px;width:24px;height:24px;text-indent:-9999em;border:1px solid rgba(0,0,0,0.2);border-right:1px solid #000;border-radius:50%;-webkit-animation:vp-preloader-spinner .3s infinite linear;animation:vp-preloader-spinner .3s infinite linear}@-webkit-keyframes vp-preloader-spinner{100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}@keyframes vp-preloader-spinner{100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}.vp-portfolio.vp-portfolio__ready{min-height:initial}.vp-portfolio.vp-portfolio__ready .vp-portfolio__items-wrap,.vp-portfolio.vp-portfolio__ready .vp-portfolio__thumbnails-wrap,.vp-portfolio.vp-portfolio__ready .vp-portfolio__layout-elements{visibility:visible;opacity:1}.vp-portfolio.vp-portfolio__ready .vp-portfolio__preloader-wrap{visibility:hidden;opacity:0}.vp-portfolio.vp-portfolio__ready .vp-portfolio__preloader-wrap .vp-portfolio__preloader{-webkit-animation:none;animation:none}.vp-single-filter.vp-single-filter__ready .vp-portfolio__filter-wrap{visibility:visible;opacity:1}.vp-single-sort.vp-single-sort__ready .vp-portfolio__sort-wrap{visibility:visible;opacity:1}.vp-portfolio.vp-portfolio__loading .vp-portfolio__layout-elements{opacity:.5}.vp-portfolio__item-popup{display:none}.vp-spinner{position:relative;display:block;width:var(--vp-spinner__size);height:var(--vp-spinner__size);text-indent:-9999em;border:var(--vp-spinner__border-size) solid transparent;border-right:var(--vp-spinner__border-size) solid var(--vp-spinner__color);border-radius:50%;-webkit-animation:vp-spinner var(--vp-spinner__speed) infinite linear;animation:vp-spinner var(--vp-spinner__speed) infinite linear}.vp-spinner::after{content:"";position:absolute;display:block;top:calc(-1 * var(--vp-spinner__border-size));left:calc(-1 * var(--vp-spinner__border-size));bottom:calc(-1 * var(--vp-spinner__border-size));right:calc(-1 * var(--vp-spinner__border-size));border:var(--vp-spinner__border-size) solid var(--vp-spinner--background__color);border-radius:50%;opacity:var(--vp-spinner--background__opacity)}@-webkit-keyframes vp-spinner{100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}@keyframes vp-spinner{100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}
1
+ :root{--vp-color-brand: #2540cc;--vp-color-gray: #6c7781;--vp-color-gray-darken: #4b4b4b;--vp-color-gray-light: #e8e8e8;--vp-color-gray-lighten: #f7f7f7;--vp-border-radius: 5px;--vp-items__gap: 0;--vp-transition-duration: .3s;--vp-transition-easing: ease-in-out;--vp-interactive__transition-duration: .2s;--vp-interactive__transition-easing: ease-in-out}.vp-portfolio__items{--vp-items__gap-vertical: var(--vp-items__gap)}.vp-portfolio{--vp-wrap__min-height: 114px;--vp-elements__gap: 20px;--vp-images__object-fit: cover;--vp-images__object-position: 50% 50%}.vp-spinner{--vp-spinner__color: currentColor;--vp-spinner__size: 20px;--vp-spinner__border-size: 2px;--vp-spinner__speed: .3s;--vp-spinner--background__color: var(--vp-spinner__color);--vp-spinner--background__opacity: .3}.vp-portfolio{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;min-height:var(--vp-wrap__min-height);overflow-wrap:break-word}.vp-portfolio *,.vp-portfolio *::before,.vp-portfolio *::after{-webkit-box-sizing:inherit;box-sizing:inherit}.vp-portfolio .swiper-wrapper{-webkit-box-sizing:inherit;box-sizing:inherit}.vp-portfolio__items{-webkit-transition:var(--vp-transition-duration) height var(--vp-transition-easing),var(--vp-transition-duration) transform var(--vp-transition-easing);-o-transition:var(--vp-transition-duration) height var(--vp-transition-easing),var(--vp-transition-duration) transform var(--vp-transition-easing);transition:var(--vp-transition-duration) height var(--vp-transition-easing),var(--vp-transition-duration) transform var(--vp-transition-easing);will-change:height, transform}.vp-portfolio::after,.vp-portfolio__items::after{content:"";display:block;clear:both}.vp-portfolio__items-wrap,.vp-portfolio__thumbnails-wrap,.vp-portfolio__filter-wrap,.vp-portfolio__sort-wrap,.vp-portfolio__pagination-wrap,.vp-portfolio__item{position:relative;overflow:hidden}.vp-portfolio__items-wrap,.vp-portfolio__thumbnails-wrap,.vp-portfolio__layout-elements{margin-bottom:var(--vp-elements__gap);visibility:hidden;opacity:0;-webkit-transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;-o-transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;will-change:opacity, visibility}.vp-portfolio>:last-child{margin-bottom:0}.vp-portfolio__item-wrap{position:relative;float:right;width:33.333%}.vp-svg-icon{display:inline-block;width:1em;height:1em;overflow:visible;font-size:inherit;vertical-align:-.125em}.vp-screen-reader-text{position:absolute !important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);word-break:normal;word-wrap:normal !important;border:0;-webkit-clip-path:inset(50%);clip-path:inset(50%)}.vp-screen-reader-text:focus{display:block;top:5px;left:5px;width:auto;height:auto;padding:15px 23px 14px;clip:auto !important;font-size:14px;font-size:.875rem;font-weight:700;line-height:normal;color:var(--vp-color-brand);text-decoration:none;background-color:#f1f1f1;border-radius:3px;-webkit-box-shadow:0 0 2px 2px rgba(0,0,0,0.6);box-shadow:0 0 2px 2px rgba(0,0,0,0.6);-webkit-clip-path:none;clip-path:none;z-index:100000}[data-vp-layout]:not([data-vp-layout="slider"]) .vp-portfolio__item-wrap{padding:0 !important;margin:0 !important}[data-vp-layout="slider"] .vp-portfolio__item-wrap{float:none;padding:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important}.vp-portfolio__item .vp-portfolio__item-img img,.vp-portfolio__item .vp-portfolio__item-img a,.vp-portfolio__item .vp-portfolio__thumbnail-img img{display:block;width:100%;height:auto}.vp-portfolio__item-img,.vp-portfolio__thumbnail-img{position:relative}.vp-portfolio__item .vp-portfolio__item-img a{position:unset}.vp-portfolio__layout-elements{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;width:calc(100% + var(--vp-elements__gap));margin-top:calc(-1 * var(--vp-elements__gap));margin-right:calc(-1 * var(--vp-elements__gap))}.vp-portfolio__layout-elements>*{margin-top:var(--vp-elements__gap);margin-right:var(--vp-elements__gap)}.vp-portfolio__layout-elements-align-left{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.vp-portfolio__layout-elements-align-center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.vp-portfolio__layout-elements-align-right{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.vp-portfolio__layout-elements-align-between{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.vp-portfolio figure.vp-portfolio__item{margin:0}[class^="wp-block-"]:not(.wp-block-gallery) figcaption.vp-portfolio__item-meta,.vp-portfolio figcaption.vp-portfolio__item-meta{margin-bottom:0;font-style:inherit}.vp-portfolio__preloader-wrap{visibility:visible;opacity:1;-webkit-transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;-o-transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;will-change:opacity, visibility}.vp-portfolio__preloader{position:absolute;right:50%;width:20px;height:20px;margin-top:45px;margin-right:-10px}.vp-portfolio__preloader svg,.vp-portfolio__preloader img{display:block;width:100%;height:100%;border-radius:20px}.vp-portfolio__preloader::after{content:"";position:absolute;display:block;top:-2px;right:-2px;width:24px;height:24px;text-indent:-9999em;border:1px solid rgba(0,0,0,0.2);border-right:1px solid #000;border-radius:50%;-webkit-animation:vp-preloader-spinner .3s infinite linear;animation:vp-preloader-spinner .3s infinite linear}@-webkit-keyframes vp-preloader-spinner{100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}@keyframes vp-preloader-spinner{100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}.vp-portfolio.vp-portfolio__ready{min-height:initial}.vp-portfolio.vp-portfolio__ready .vp-portfolio__items-wrap,.vp-portfolio.vp-portfolio__ready .vp-portfolio__thumbnails-wrap,.vp-portfolio.vp-portfolio__ready .vp-portfolio__layout-elements{visibility:visible;opacity:1}.vp-portfolio.vp-portfolio__ready .vp-portfolio__preloader-wrap{visibility:hidden;opacity:0}.vp-portfolio.vp-portfolio__ready .vp-portfolio__preloader-wrap .vp-portfolio__preloader{-webkit-animation:none;animation:none}.vp-single-filter.vp-single-filter__ready .vp-portfolio__filter-wrap{visibility:visible;opacity:1}.vp-single-sort.vp-single-sort__ready .vp-portfolio__sort-wrap{visibility:visible;opacity:1}.vp-portfolio.vp-portfolio__loading .vp-portfolio__layout-elements{opacity:.5}.vp-portfolio__item-popup{display:none}.vp-spinner{position:relative;display:block;width:var(--vp-spinner__size);height:var(--vp-spinner__size);text-indent:-9999em;border:var(--vp-spinner__border-size) solid transparent;border-right:var(--vp-spinner__border-size) solid var(--vp-spinner__color);border-radius:50%;-webkit-animation:vp-spinner var(--vp-spinner__speed) infinite linear;animation:vp-spinner var(--vp-spinner__speed) infinite linear}.vp-spinner::after{content:"";position:absolute;display:block;top:calc(-1 * var(--vp-spinner__border-size));left:calc(-1 * var(--vp-spinner__border-size));bottom:calc(-1 * var(--vp-spinner__border-size));right:calc(-1 * var(--vp-spinner__border-size));border:var(--vp-spinner__border-size) solid var(--vp-spinner--background__color);border-radius:50%;opacity:var(--vp-spinner--background__opacity)}@-webkit-keyframes vp-spinner{100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}@keyframes vp-spinner{100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}
assets/css/main.min.css CHANGED
@@ -1 +1 @@
1
- :root{--vp-color-brand: #2540cc;--vp-color-gray: #6c7781;--vp-color-gray-darken: #4b4b4b;--vp-color-gray-light: #e8e8e8;--vp-color-gray-lighten: #f7f7f7;--vp-border-radius: 5px;--vp-items__gap: 0;--vp-transition-duration: .3s;--vp-transition-easing: ease-in-out;--vp-interactive__transition-duration: .2s;--vp-interactive__transition-easing: ease-in-out}.vp-portfolio__items{--vp-items__gap-vertical: var(--vp-items__gap)}.vp-portfolio{--vp-wrap__min-height: 114px;--vp-elements__gap: 20px;--vp-images__object-fit: cover;--vp-images__object-position: 50% 50%}.vp-spinner{--vp-spinner__color: currentColor;--vp-spinner__size: 20px;--vp-spinner__border-size: 2px;--vp-spinner__speed: .3s;--vp-spinner--background__color: var(--vp-spinner__color);--vp-spinner--background__opacity: .3}.vp-portfolio{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;min-height:var(--vp-wrap__min-height);overflow-wrap:break-word}.vp-portfolio *,.vp-portfolio *::before,.vp-portfolio *::after{-webkit-box-sizing:inherit;box-sizing:inherit}.vp-portfolio .swiper-wrapper{-webkit-box-sizing:inherit;box-sizing:inherit}.vp-portfolio__items{-webkit-transition:var(--vp-transition-duration) height var(--vp-transition-easing),var(--vp-transition-duration) transform var(--vp-transition-easing);-o-transition:var(--vp-transition-duration) height var(--vp-transition-easing),var(--vp-transition-duration) transform var(--vp-transition-easing);transition:var(--vp-transition-duration) height var(--vp-transition-easing),var(--vp-transition-duration) transform var(--vp-transition-easing);will-change:height, transform}.vp-portfolio::after,.vp-portfolio__items::after{content:"";display:block;clear:both}.vp-portfolio__items-wrap,.vp-portfolio__thumbnails-wrap,.vp-portfolio__filter-wrap,.vp-portfolio__sort-wrap,.vp-portfolio__pagination-wrap,.vp-portfolio__item{position:relative;overflow:hidden}.vp-portfolio__items-wrap,.vp-portfolio__thumbnails-wrap,.vp-portfolio__layout-elements{margin-bottom:var(--vp-elements__gap);visibility:hidden;opacity:0;-webkit-transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;-o-transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;will-change:opacity, visibility}.vp-portfolio>:last-child{margin-bottom:0}.vp-portfolio__item-wrap{position:relative;float:left;width:33.333%}.vp-svg-icon{display:inline-block;width:1em;height:1em;overflow:visible;font-size:inherit;vertical-align:-.125em}.vp-screen-reader-text{position:absolute !important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);word-break:normal;word-wrap:normal !important;border:0;-webkit-clip-path:inset(50%);clip-path:inset(50%)}.vp-screen-reader-text:focus{display:block;top:5px;right:5px;width:auto;height:auto;padding:15px 23px 14px;clip:auto !important;font-size:14px;font-size:.875rem;font-weight:700;line-height:normal;color:var(--vp-color-brand);text-decoration:none;background-color:#f1f1f1;border-radius:3px;-webkit-box-shadow:0 0 2px 2px rgba(0,0,0,0.6);box-shadow:0 0 2px 2px rgba(0,0,0,0.6);-webkit-clip-path:none;clip-path:none;z-index:100000}[data-vp-layout]:not([data-vp-layout="slider"]) .vp-portfolio__item-wrap{padding:0 !important;margin:0 !important}[data-vp-layout="slider"] .vp-portfolio__item-wrap{float:none;padding:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-left:0 !important}.vp-portfolio__item .vp-portfolio__item-img img,.vp-portfolio__item .vp-portfolio__item-img a,.vp-portfolio__item .vp-portfolio__thumbnail-img img{display:block;width:100%;height:auto}.vp-portfolio__item-img,.vp-portfolio__thumbnail-img{position:relative}.vp-portfolio__item .vp-portfolio__item-img a{position:unset}.vp-portfolio__layout-elements{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;width:calc(100% + var(--vp-elements__gap));margin-top:calc(-1 * var(--vp-elements__gap));margin-left:calc(-1 * var(--vp-elements__gap))}.vp-portfolio__layout-elements>*{margin-top:var(--vp-elements__gap);margin-left:var(--vp-elements__gap)}.vp-portfolio__layout-elements-align-left{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.vp-portfolio__layout-elements-align-center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.vp-portfolio__layout-elements-align-right{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.vp-portfolio__layout-elements-align-between{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.vp-portfolio figure.vp-portfolio__item{margin:0}[class^="wp-block-"]:not(.wp-block-gallery) figcaption.vp-portfolio__item-meta,.vp-portfolio figcaption.vp-portfolio__item-meta{margin-bottom:0;font-style:inherit}.vp-portfolio__preloader-wrap{visibility:visible;opacity:1;-webkit-transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;-o-transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;will-change:opacity, visibility}.vp-portfolio__preloader{position:absolute;left:50%;width:20px;height:20px;margin-top:45px;margin-left:-10px}.vp-portfolio__preloader svg,.vp-portfolio__preloader img{display:block;width:100%;height:100%}.vp-portfolio__preloader::after{content:"";position:absolute;display:block;top:-2px;left:-2px;width:24px;height:24px;text-indent:-9999em;border:1px solid rgba(0,0,0,0.2);border-left:1px solid #000;border-radius:50%;-webkit-animation:vp-preloader-spinner .3s infinite linear;animation:vp-preloader-spinner .3s infinite linear}@-webkit-keyframes vp-preloader-spinner{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes vp-preloader-spinner{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.vp-portfolio.vp-portfolio__ready{min-height:initial}.vp-portfolio.vp-portfolio__ready .vp-portfolio__items-wrap,.vp-portfolio.vp-portfolio__ready .vp-portfolio__thumbnails-wrap,.vp-portfolio.vp-portfolio__ready .vp-portfolio__layout-elements{visibility:visible;opacity:1}.vp-portfolio.vp-portfolio__ready .vp-portfolio__preloader-wrap{visibility:hidden;opacity:0}.vp-portfolio.vp-portfolio__ready .vp-portfolio__preloader-wrap .vp-portfolio__preloader{-webkit-animation:none;animation:none}.vp-single-filter.vp-single-filter__ready .vp-portfolio__filter-wrap{visibility:visible;opacity:1}.vp-single-sort.vp-single-sort__ready .vp-portfolio__sort-wrap{visibility:visible;opacity:1}.vp-portfolio.vp-portfolio__loading .vp-portfolio__layout-elements{opacity:.5}.vp-portfolio__item-popup{display:none}.vp-spinner{position:relative;display:block;width:var(--vp-spinner__size);height:var(--vp-spinner__size);text-indent:-9999em;border:var(--vp-spinner__border-size) solid transparent;border-left:var(--vp-spinner__border-size) solid var(--vp-spinner__color);border-radius:50%;-webkit-animation:vp-spinner var(--vp-spinner__speed) infinite linear;animation:vp-spinner var(--vp-spinner__speed) infinite linear}.vp-spinner::after{content:"";position:absolute;display:block;top:calc(-1 * var(--vp-spinner__border-size));right:calc(-1 * var(--vp-spinner__border-size));bottom:calc(-1 * var(--vp-spinner__border-size));left:calc(-1 * var(--vp-spinner__border-size));border:var(--vp-spinner__border-size) solid var(--vp-spinner--background__color);border-radius:50%;opacity:var(--vp-spinner--background__opacity)}@-webkit-keyframes vp-spinner{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes vp-spinner{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}
1
+ :root{--vp-color-brand: #2540cc;--vp-color-gray: #6c7781;--vp-color-gray-darken: #4b4b4b;--vp-color-gray-light: #e8e8e8;--vp-color-gray-lighten: #f7f7f7;--vp-border-radius: 5px;--vp-items__gap: 0;--vp-transition-duration: .3s;--vp-transition-easing: ease-in-out;--vp-interactive__transition-duration: .2s;--vp-interactive__transition-easing: ease-in-out}.vp-portfolio__items{--vp-items__gap-vertical: var(--vp-items__gap)}.vp-portfolio{--vp-wrap__min-height: 114px;--vp-elements__gap: 20px;--vp-images__object-fit: cover;--vp-images__object-position: 50% 50%}.vp-spinner{--vp-spinner__color: currentColor;--vp-spinner__size: 20px;--vp-spinner__border-size: 2px;--vp-spinner__speed: .3s;--vp-spinner--background__color: var(--vp-spinner__color);--vp-spinner--background__opacity: .3}.vp-portfolio{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;min-height:var(--vp-wrap__min-height);overflow-wrap:break-word}.vp-portfolio *,.vp-portfolio *::before,.vp-portfolio *::after{-webkit-box-sizing:inherit;box-sizing:inherit}.vp-portfolio .swiper-wrapper{-webkit-box-sizing:inherit;box-sizing:inherit}.vp-portfolio__items{-webkit-transition:var(--vp-transition-duration) height var(--vp-transition-easing),var(--vp-transition-duration) transform var(--vp-transition-easing);-o-transition:var(--vp-transition-duration) height var(--vp-transition-easing),var(--vp-transition-duration) transform var(--vp-transition-easing);transition:var(--vp-transition-duration) height var(--vp-transition-easing),var(--vp-transition-duration) transform var(--vp-transition-easing);will-change:height, transform}.vp-portfolio::after,.vp-portfolio__items::after{content:"";display:block;clear:both}.vp-portfolio__items-wrap,.vp-portfolio__thumbnails-wrap,.vp-portfolio__filter-wrap,.vp-portfolio__sort-wrap,.vp-portfolio__pagination-wrap,.vp-portfolio__item{position:relative;overflow:hidden}.vp-portfolio__items-wrap,.vp-portfolio__thumbnails-wrap,.vp-portfolio__layout-elements{margin-bottom:var(--vp-elements__gap);visibility:hidden;opacity:0;-webkit-transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;-o-transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;will-change:opacity, visibility}.vp-portfolio>:last-child{margin-bottom:0}.vp-portfolio__item-wrap{position:relative;float:left;width:33.333%}.vp-svg-icon{display:inline-block;width:1em;height:1em;overflow:visible;font-size:inherit;vertical-align:-.125em}.vp-screen-reader-text{position:absolute !important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);word-break:normal;word-wrap:normal !important;border:0;-webkit-clip-path:inset(50%);clip-path:inset(50%)}.vp-screen-reader-text:focus{display:block;top:5px;right:5px;width:auto;height:auto;padding:15px 23px 14px;clip:auto !important;font-size:14px;font-size:.875rem;font-weight:700;line-height:normal;color:var(--vp-color-brand);text-decoration:none;background-color:#f1f1f1;border-radius:3px;-webkit-box-shadow:0 0 2px 2px rgba(0,0,0,0.6);box-shadow:0 0 2px 2px rgba(0,0,0,0.6);-webkit-clip-path:none;clip-path:none;z-index:100000}[data-vp-layout]:not([data-vp-layout="slider"]) .vp-portfolio__item-wrap{padding:0 !important;margin:0 !important}[data-vp-layout="slider"] .vp-portfolio__item-wrap{float:none;padding:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-left:0 !important}.vp-portfolio__item .vp-portfolio__item-img img,.vp-portfolio__item .vp-portfolio__item-img a,.vp-portfolio__item .vp-portfolio__thumbnail-img img{display:block;width:100%;height:auto}.vp-portfolio__item-img,.vp-portfolio__thumbnail-img{position:relative}.vp-portfolio__item .vp-portfolio__item-img a{position:unset}.vp-portfolio__layout-elements{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;width:calc(100% + var(--vp-elements__gap));margin-top:calc(-1 * var(--vp-elements__gap));margin-left:calc(-1 * var(--vp-elements__gap))}.vp-portfolio__layout-elements>*{margin-top:var(--vp-elements__gap);margin-left:var(--vp-elements__gap)}.vp-portfolio__layout-elements-align-left{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.vp-portfolio__layout-elements-align-center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.vp-portfolio__layout-elements-align-right{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.vp-portfolio__layout-elements-align-between{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.vp-portfolio figure.vp-portfolio__item{margin:0}[class^="wp-block-"]:not(.wp-block-gallery) figcaption.vp-portfolio__item-meta,.vp-portfolio figcaption.vp-portfolio__item-meta{margin-bottom:0;font-style:inherit}.vp-portfolio__preloader-wrap{visibility:visible;opacity:1;-webkit-transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;-o-transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;transition:var(--vp-transition-duration) opacity,var(--vp-transition-duration) visibility;will-change:opacity, visibility}.vp-portfolio__preloader{position:absolute;left:50%;width:20px;height:20px;margin-top:45px;margin-left:-10px}.vp-portfolio__preloader svg,.vp-portfolio__preloader img{display:block;width:100%;height:100%;border-radius:20px}.vp-portfolio__preloader::after{content:"";position:absolute;display:block;top:-2px;left:-2px;width:24px;height:24px;text-indent:-9999em;border:1px solid rgba(0,0,0,0.2);border-left:1px solid #000;border-radius:50%;-webkit-animation:vp-preloader-spinner .3s infinite linear;animation:vp-preloader-spinner .3s infinite linear}@-webkit-keyframes vp-preloader-spinner{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes vp-preloader-spinner{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.vp-portfolio.vp-portfolio__ready{min-height:initial}.vp-portfolio.vp-portfolio__ready .vp-portfolio__items-wrap,.vp-portfolio.vp-portfolio__ready .vp-portfolio__thumbnails-wrap,.vp-portfolio.vp-portfolio__ready .vp-portfolio__layout-elements{visibility:visible;opacity:1}.vp-portfolio.vp-portfolio__ready .vp-portfolio__preloader-wrap{visibility:hidden;opacity:0}.vp-portfolio.vp-portfolio__ready .vp-portfolio__preloader-wrap .vp-portfolio__preloader{-webkit-animation:none;animation:none}.vp-single-filter.vp-single-filter__ready .vp-portfolio__filter-wrap{visibility:visible;opacity:1}.vp-single-sort.vp-single-sort__ready .vp-portfolio__sort-wrap{visibility:visible;opacity:1}.vp-portfolio.vp-portfolio__loading .vp-portfolio__layout-elements{opacity:.5}.vp-portfolio__item-popup{display:none}.vp-spinner{position:relative;display:block;width:var(--vp-spinner__size);height:var(--vp-spinner__size);text-indent:-9999em;border:var(--vp-spinner__border-size) solid transparent;border-left:var(--vp-spinner__border-size) solid var(--vp-spinner__color);border-radius:50%;-webkit-animation:vp-spinner var(--vp-spinner__speed) infinite linear;animation:vp-spinner var(--vp-spinner__speed) infinite linear}.vp-spinner::after{content:"";position:absolute;display:block;top:calc(-1 * var(--vp-spinner__border-size));right:calc(-1 * var(--vp-spinner__border-size));bottom:calc(-1 * var(--vp-spinner__border-size));left:calc(-1 * var(--vp-spinner__border-size));border:var(--vp-spinner__border-size) solid var(--vp-spinner--background__color);border-radius:50%;opacity:var(--vp-spinner--background__opacity)}@-webkit-keyframes vp-spinner{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes vp-spinner{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}
assets/css/popup-fancybox-rtl.min.css CHANGED
@@ -1 +1 @@
1
- .vp-pswp,.vp-fancybox{--vp-popup__z-index: 1500}.vp-fancybox{z-index:var(--vp-popup__z-index)}body.admin-bar .vp-fancybox{top:32px;height:calc(100% - 32px)}@media screen and (max-width: 782px){body.admin-bar .vp-fancybox{top:42px;height:calc(100% - 42px)}}@media screen and (max-width: 600px){body.admin-bar .vp-fancybox{top:0;height:100%}}.vp-fancybox .fancybox-caption__body{font-size:12px;color:#fff}.vp-fancybox .fancybox-caption__body h3{color:inherit}.vp-fancybox .fancybox-caption__body a{color:inherit}.vp-fancybox .fancybox-caption__body a:hover{opacity:.8}.vp-fancybox .fancybox-caption__body .vp-portfolio__item-meta-title{margin-top:0;margin-bottom:3px;font-size:14px;color:inherit}.vp-fancybox .fancybox-caption__body .vp-portfolio__item-meta-title a{text-decoration:none}
1
+ .vp-pswp,.vp-fancybox{--vp-popup__z-index: 1500;--vp-popup--thumbnails__size: 160px;--vp-popup--thumbnails__aspect-ratio: 10 / 7;--vp-popup--thumbnails__background-color: #1e1e1e;--vp-popup--thumbnails--items__border-color: var(--vp-color-brand);--vp-popup--thumbnails--scrollbar__size: 7px;--vp-popup--thumbnails--scrollbar-track__background-color: #1f1f1f;--vp-popup--thumbnails--scrollbar-thumb__background-color: #424242;--vp-popup--thumbnails--scrollbar-thumb__border-radius: 10px}.vp-fancybox{z-index:var(--vp-popup__z-index)}body.admin-bar .vp-fancybox{top:32px;height:calc(100% - 32px)}@media screen and (max-width: 782px){body.admin-bar .vp-fancybox{top:42px;height:calc(100% - 42px)}}@media screen and (max-width: 600px){body.admin-bar .vp-fancybox{top:0;height:100%}}.vp-fancybox .fancybox-caption__body{font-size:12px;color:#fff}.vp-fancybox .fancybox-caption__body h3{color:inherit}.vp-fancybox .fancybox-caption__body a{color:inherit}.vp-fancybox .fancybox-caption__body a:hover{opacity:.8}.vp-fancybox .fancybox-caption__body .vp-portfolio__item-meta-title{margin-top:0;margin-bottom:3px;font-size:14px;color:inherit}.vp-fancybox .fancybox-caption__body .vp-portfolio__item-meta-title a{text-decoration:none}.vp-fancybox .fancybox-thumbs{width:var(--vp-popup--thumbnails__size);background:var(--vp-popup--thumbnails__background-color)}.vp-fancybox.fancybox-show-thumbs .fancybox-inner{left:var(--vp-popup--thumbnails__size)}.vp-fancybox .fancybox-thumbs__list a{width:var(--vp-popup--thumbnails__size);max-width:calc(100% - 4px);height:calc(var(--vp-popup--thumbnails__size) / calc(var(--vp-popup--thumbnails__aspect-ratio)))}.vp-fancybox .fancybox-thumbs__list a::before{border:2px solid var(--vp-popup--thumbnails--items__border-color)}@supports (aspect-ratio: 16/9){.vp-fancybox .fancybox-thumbs__list a{width:calc(100% - 4px);max-width:none;height:auto;max-height:none;aspect-ratio:var(--vp-popup--thumbnails__aspect-ratio)}}.vp-fancybox .fancybox-thumbs-y .fancybox-thumbs__list::-webkit-scrollbar{width:var(--vp-popup--thumbnails--scrollbar__size)}.vp-fancybox .fancybox-thumbs-y .fancybox-thumbs__list::-webkit-scrollbar-track{background:var(--vp-popup--thumbnails--scrollbar-track__background-color);-webkit-box-shadow:none;box-shadow:none}.vp-fancybox .fancybox-thumbs-y .fancybox-thumbs__list::-webkit-scrollbar-thumb{background:var(--vp-popup--thumbnails--scrollbar-thumb__background-color);border-radius:var(--vp-popup--thumbnails--scrollbar-thumb__border-radius)}
assets/css/popup-fancybox.min.css CHANGED
@@ -1 +1 @@
1
- .vp-pswp,.vp-fancybox{--vp-popup__z-index: 1500}.vp-fancybox{z-index:var(--vp-popup__z-index)}body.admin-bar .vp-fancybox{top:32px;height:calc(100% - 32px)}@media screen and (max-width: 782px){body.admin-bar .vp-fancybox{top:42px;height:calc(100% - 42px)}}@media screen and (max-width: 600px){body.admin-bar .vp-fancybox{top:0;height:100%}}.vp-fancybox .fancybox-caption__body{font-size:12px;color:#fff}.vp-fancybox .fancybox-caption__body h3{color:inherit}.vp-fancybox .fancybox-caption__body a{color:inherit}.vp-fancybox .fancybox-caption__body a:hover{opacity:.8}.vp-fancybox .fancybox-caption__body .vp-portfolio__item-meta-title{margin-top:0;margin-bottom:3px;font-size:14px;color:inherit}.vp-fancybox .fancybox-caption__body .vp-portfolio__item-meta-title a{text-decoration:none}
1
+ .vp-pswp,.vp-fancybox{--vp-popup__z-index: 1500;--vp-popup--thumbnails__size: 160px;--vp-popup--thumbnails__aspect-ratio: 10 / 7;--vp-popup--thumbnails__background-color: #1e1e1e;--vp-popup--thumbnails--items__border-color: var(--vp-color-brand);--vp-popup--thumbnails--scrollbar__size: 7px;--vp-popup--thumbnails--scrollbar-track__background-color: #1f1f1f;--vp-popup--thumbnails--scrollbar-thumb__background-color: #424242;--vp-popup--thumbnails--scrollbar-thumb__border-radius: 10px}.vp-fancybox{z-index:var(--vp-popup__z-index)}body.admin-bar .vp-fancybox{top:32px;height:calc(100% - 32px)}@media screen and (max-width: 782px){body.admin-bar .vp-fancybox{top:42px;height:calc(100% - 42px)}}@media screen and (max-width: 600px){body.admin-bar .vp-fancybox{top:0;height:100%}}.vp-fancybox .fancybox-caption__body{font-size:12px;color:#fff}.vp-fancybox .fancybox-caption__body h3{color:inherit}.vp-fancybox .fancybox-caption__body a{color:inherit}.vp-fancybox .fancybox-caption__body a:hover{opacity:.8}.vp-fancybox .fancybox-caption__body .vp-portfolio__item-meta-title{margin-top:0;margin-bottom:3px;font-size:14px;color:inherit}.vp-fancybox .fancybox-caption__body .vp-portfolio__item-meta-title a{text-decoration:none}.vp-fancybox .fancybox-thumbs{width:var(--vp-popup--thumbnails__size);background:var(--vp-popup--thumbnails__background-color)}.vp-fancybox.fancybox-show-thumbs .fancybox-inner{right:var(--vp-popup--thumbnails__size)}.vp-fancybox .fancybox-thumbs__list a{width:var(--vp-popup--thumbnails__size);max-width:calc(100% - 4px);height:calc(var(--vp-popup--thumbnails__size) / calc(var(--vp-popup--thumbnails__aspect-ratio)))}.vp-fancybox .fancybox-thumbs__list a::before{border:2px solid var(--vp-popup--thumbnails--items__border-color)}@supports (aspect-ratio: 16/9){.vp-fancybox .fancybox-thumbs__list a{width:calc(100% - 4px);max-width:none;height:auto;max-height:none;aspect-ratio:var(--vp-popup--thumbnails__aspect-ratio)}}.vp-fancybox .fancybox-thumbs-y .fancybox-thumbs__list::-webkit-scrollbar{width:var(--vp-popup--thumbnails--scrollbar__size)}.vp-fancybox .fancybox-thumbs-y .fancybox-thumbs__list::-webkit-scrollbar-track{background:var(--vp-popup--thumbnails--scrollbar-track__background-color);-webkit-box-shadow:none;box-shadow:none}.vp-fancybox .fancybox-thumbs-y .fancybox-thumbs__list::-webkit-scrollbar-thumb{background:var(--vp-popup--thumbnails--scrollbar-thumb__background-color);border-radius:var(--vp-popup--thumbnails--scrollbar-thumb__border-radius)}
assets/css/popup-photoswipe-rtl.min.css CHANGED
@@ -1 +1 @@
1
- .vp-pswp,.vp-fancybox{--vp-popup__z-index: 1500}.vp-pswp{z-index:var(--vp-popup__z-index)}body.admin-bar .vp-pswp{top:32px;height:calc(100% - 32px)}@media screen and (max-width: 782px){body.admin-bar .vp-pswp{top:42px;height:calc(100% - 42px)}}@media screen and (max-width: 600px){body.admin-bar .vp-pswp{top:0;height:100%}}.vp-pswp .pswp__caption{background-color:rgba(0,0,0,0.75)}.vp-pswp .pswp__caption>div{max-width:600px;font-size:12px;color:#fff}.vp-pswp .pswp__caption h3{color:inherit}.vp-pswp .pswp__caption a{color:inherit}.vp-pswp .pswp__caption a:hover{opacity:.8}.vp-pswp .pswp__caption .vp-portfolio__item-meta-title{margin-top:0;margin-bottom:3px;font-size:14px;color:inherit}.vp-pswp .pswp__caption .vp-portfolio__item-meta-title a{text-decoration:none}.vp-pswp .pswp__preloader{position:absolute;left:0;bottom:0;z-index:1}.vp-pswp .vp-pswp-video{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;max-width:1920px;height:100%;margin:0 auto;line-height:0;text-align:right;vertical-align:middle;z-index:1045}.vp-pswp .vp-pswp-video>div{position:relative;width:100%;height:0;padding-bottom:56.25%}.vp-pswp .vp-pswp-video>div iframe{position:absolute;top:0;right:0;width:100%;height:100%;margin:0}.vp-pswp .vp-pswp-video>div video{width:100% !important;height:auto !important;margin:0}.vp-pswp.vp-pswp-no-zoom .pswp__img{cursor:default}
1
+ .vp-pswp,.vp-fancybox{--vp-popup__z-index: 1500;--vp-popup--thumbnails__size: 160px;--vp-popup--thumbnails__aspect-ratio: 10 / 7;--vp-popup--thumbnails__background-color: #1e1e1e;--vp-popup--thumbnails--items__border-color: var(--vp-color-brand);--vp-popup--thumbnails--scrollbar__size: 7px;--vp-popup--thumbnails--scrollbar-track__background-color: #1f1f1f;--vp-popup--thumbnails--scrollbar-thumb__background-color: #424242;--vp-popup--thumbnails--scrollbar-thumb__border-radius: 10px}.vp-pswp{z-index:var(--vp-popup__z-index)}body.admin-bar .vp-pswp{top:32px;height:calc(100% - 32px)}@media screen and (max-width: 782px){body.admin-bar .vp-pswp{top:42px;height:calc(100% - 42px)}}@media screen and (max-width: 600px){body.admin-bar .vp-pswp{top:0;height:100%}}.vp-pswp .pswp__caption{background-color:rgba(0,0,0,0.75)}.vp-pswp .pswp__caption>div{max-width:600px;font-size:12px;color:#fff}.vp-pswp .pswp__caption h3{color:inherit}.vp-pswp .pswp__caption a{color:inherit}.vp-pswp .pswp__caption a:hover{opacity:.8}.vp-pswp .pswp__caption .vp-portfolio__item-meta-title{margin-top:0;margin-bottom:3px;font-size:14px;color:inherit}.vp-pswp .pswp__caption .vp-portfolio__item-meta-title a{text-decoration:none}.vp-pswp .pswp__preloader{position:absolute;left:0;bottom:0;z-index:1}.vp-pswp .vp-pswp-video{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;max-width:1920px;height:100%;margin:0 auto;line-height:0;text-align:right;vertical-align:middle;z-index:1045}.vp-pswp .vp-pswp-video>div{position:relative;width:100%;height:0;padding-bottom:56.25%}.vp-pswp .vp-pswp-video>div iframe{position:absolute;top:0;right:0;width:100%;height:100%;margin:0}.vp-pswp .vp-pswp-video>div video{width:100% !important;height:auto !important;margin:0}.vp-pswp.vp-pswp-no-zoom .pswp__img{cursor:default}
assets/css/popup-photoswipe.min.css CHANGED
@@ -1 +1 @@
1
- .vp-pswp,.vp-fancybox{--vp-popup__z-index: 1500}.vp-pswp{z-index:var(--vp-popup__z-index)}body.admin-bar .vp-pswp{top:32px;height:calc(100% - 32px)}@media screen and (max-width: 782px){body.admin-bar .vp-pswp{top:42px;height:calc(100% - 42px)}}@media screen and (max-width: 600px){body.admin-bar .vp-pswp{top:0;height:100%}}.vp-pswp .pswp__caption{background-color:rgba(0,0,0,0.75)}.vp-pswp .pswp__caption>div{max-width:600px;font-size:12px;color:#fff}.vp-pswp .pswp__caption h3{color:inherit}.vp-pswp .pswp__caption a{color:inherit}.vp-pswp .pswp__caption a:hover{opacity:.8}.vp-pswp .pswp__caption .vp-portfolio__item-meta-title{margin-top:0;margin-bottom:3px;font-size:14px;color:inherit}.vp-pswp .pswp__caption .vp-portfolio__item-meta-title a{text-decoration:none}.vp-pswp .pswp__preloader{position:absolute;right:0;bottom:0;z-index:1}.vp-pswp .vp-pswp-video{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;max-width:1920px;height:100%;margin:0 auto;line-height:0;text-align:left;vertical-align:middle;z-index:1045}.vp-pswp .vp-pswp-video>div{position:relative;width:100%;height:0;padding-bottom:56.25%}.vp-pswp .vp-pswp-video>div iframe{position:absolute;top:0;left:0;width:100%;height:100%;margin:0}.vp-pswp .vp-pswp-video>div video{width:100% !important;height:auto !important;margin:0}.vp-pswp.vp-pswp-no-zoom .pswp__img{cursor:default}
1
+ .vp-pswp,.vp-fancybox{--vp-popup__z-index: 1500;--vp-popup--thumbnails__size: 160px;--vp-popup--thumbnails__aspect-ratio: 10 / 7;--vp-popup--thumbnails__background-color: #1e1e1e;--vp-popup--thumbnails--items__border-color: var(--vp-color-brand);--vp-popup--thumbnails--scrollbar__size: 7px;--vp-popup--thumbnails--scrollbar-track__background-color: #1f1f1f;--vp-popup--thumbnails--scrollbar-thumb__background-color: #424242;--vp-popup--thumbnails--scrollbar-thumb__border-radius: 10px}.vp-pswp{z-index:var(--vp-popup__z-index)}body.admin-bar .vp-pswp{top:32px;height:calc(100% - 32px)}@media screen and (max-width: 782px){body.admin-bar .vp-pswp{top:42px;height:calc(100% - 42px)}}@media screen and (max-width: 600px){body.admin-bar .vp-pswp{top:0;height:100%}}.vp-pswp .pswp__caption{background-color:rgba(0,0,0,0.75)}.vp-pswp .pswp__caption>div{max-width:600px;font-size:12px;color:#fff}.vp-pswp .pswp__caption h3{color:inherit}.vp-pswp .pswp__caption a{color:inherit}.vp-pswp .pswp__caption a:hover{opacity:.8}.vp-pswp .pswp__caption .vp-portfolio__item-meta-title{margin-top:0;margin-bottom:3px;font-size:14px;color:inherit}.vp-pswp .pswp__caption .vp-portfolio__item-meta-title a{text-decoration:none}.vp-pswp .pswp__preloader{position:absolute;right:0;bottom:0;z-index:1}.vp-pswp .vp-pswp-video{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;max-width:1920px;height:100%;margin:0 auto;line-height:0;text-align:left;vertical-align:middle;z-index:1045}.vp-pswp .vp-pswp-video>div{position:relative;width:100%;height:0;padding-bottom:56.25%}.vp-pswp .vp-pswp-video>div iframe{position:absolute;top:0;left:0;width:100%;height:100%;margin:0}.vp-pswp .vp-pswp-video>div video{width:100% !important;height:auto !important;margin:0}.vp-pswp.vp-pswp-no-zoom .pswp__img{cursor:default}
assets/css/theme-airtifact-rtl.min.css ADDED
@@ -0,0 +1 @@
 
1
+ .vp-portfolio__item .vp-portfolio__item-img a{position:unset !important}
assets/css/theme-airtifact.min.css ADDED
@@ -0,0 +1 @@
 
1
+ .vp-portfolio__item .vp-portfolio__item-img a{position:unset !important}
assets/css/theme-twentytwentyone-rtl.min.css CHANGED
@@ -1 +1 @@
1
- .entry-content .vp-portfolio__item-meta-title{margin-top:0}.vp-portfolio__item figcaption{margin-top:0;margin-bottom:0}.vp-preview-body{background:none}
1
+ .entry-content .vp-portfolio__item-meta-title{margin-top:0}.vp-portfolio__item figcaption{margin-top:0;margin-bottom:0}.vp-preview-body{background:none}[data-vp-layout="tiles"] .vp-portfolio__item-img img,[data-vp-masonry-images-aspect-ratio*=":"] .vp-portfolio__item-img img,[data-vp-grid-images-aspect-ratio*=":"] .vp-portfolio__item-img img{width:100% !important;max-width:none !important;height:100% !important}
assets/css/theme-twentytwentyone.min.css CHANGED
@@ -1 +1 @@
1
- .entry-content .vp-portfolio__item-meta-title{margin-top:0}.vp-portfolio__item figcaption{margin-top:0;margin-bottom:0}.vp-preview-body{background:none}
1
+ .entry-content .vp-portfolio__item-meta-title{margin-top:0}.vp-portfolio__item figcaption{margin-top:0;margin-bottom:0}.vp-preview-body{background:none}[data-vp-layout="tiles"] .vp-portfolio__item-img img,[data-vp-masonry-images-aspect-ratio*=":"] .vp-portfolio__item-img img,[data-vp-grid-images-aspect-ratio*=":"] .vp-portfolio__item-img img{width:100% !important;max-width:none !important;height:100% !important}
assets/js/layout-slider.js CHANGED
@@ -38,7 +38,7 @@ $( document ).on( 'initLayout.vpf', ( event, self ) => {
38
 
39
  if ( 'auto' === itemsPerView ) {
40
  // fix fade slider items width.
41
- // https://github.com/nk-o/visual-portfolio/issues/95.
42
  let itemsWidth = 'auto';
43
  if ( 'items' === type && 'fade' === self.options.sliderEffect ) {
44
  itemsWidth = '100%';
38
 
39
  if ( 'auto' === itemsPerView ) {
40
  // fix fade slider items width.
41
+ // https://github.com/nk-crew/visual-portfolio/issues/95.
42
  let itemsWidth = 'auto';
43
  if ( 'items' === type && 'fade' === self.options.sliderEffect ) {
44
  itemsWidth = '100%';
assets/js/layout-tiles.js CHANGED
@@ -8,7 +8,7 @@ const {
8
  } = window.VPData;
9
 
10
  // fix masonry items position for Tiles layout.
11
- // https://github.com/nk-o/visual-portfolio/issues/111
12
  if ( 'undefined' !== typeof window.Isotope && 'undefined' !== typeof window.Isotope.LayoutMode ) {
13
  const MasonryMode = window.Isotope.LayoutMode.modes.masonry;
14
 
8
  } = window.VPData;
9
 
10
  // fix masonry items position for Tiles layout.
11
+ // https://github.com/nk-crew/visual-portfolio/issues/111
12
  if ( 'undefined' !== typeof window.Isotope && 'undefined' !== typeof window.Isotope.LayoutMode ) {
13
  const MasonryMode = window.Isotope.LayoutMode.modes.masonry;
14
 
assets/js/main.js CHANGED
@@ -41,8 +41,8 @@ let checkVisibilityTimeout = false;
41
  // fix portfolio inside Tabs and Accordions
42
  // check visibility by timer https://stackoverflow.com/questions/19669786/check-if-element-is-visible-in-dom/33456469
43
  //
44
- // https://github.com/nk-o/visual-portfolio/issues/11
45
- // https://github.com/nk-o/visual-portfolio/issues/113
46
  function checkVisibility() {
47
  clearTimeout( checkVisibilityTimeout );
48
 
@@ -780,7 +780,7 @@ class VP {
780
  }
781
 
782
  // fix for Elementor popup gallery.
783
- // https://github.com/nk-o/visual-portfolio/issues/103
784
  if ( $( '.elementor' ).length ) {
785
  $( document ).on( 'init.vpf addItems.vpf', ( event, vpObject ) => {
786
  if ( 'vpf' !== event.namespace ) {
@@ -829,7 +829,6 @@ $.fn.vpf.noConflict = function() {
829
  };
830
 
831
  // initialization
832
- $( '.vp-portfolio' ).vpf();
833
  $( () => {
834
  $( '.vp-portfolio' ).vpf();
835
  } );
41
  // fix portfolio inside Tabs and Accordions
42
  // check visibility by timer https://stackoverflow.com/questions/19669786/check-if-element-is-visible-in-dom/33456469
43
  //
44
+ // https://github.com/nk-crew/visual-portfolio/issues/11
45
+ // https://github.com/nk-crew/visual-portfolio/issues/113
46
  function checkVisibility() {
47
  clearTimeout( checkVisibilityTimeout );
48
 
780
  }
781
 
782
  // fix for Elementor popup gallery.
783
+ // https://github.com/nk-crew/visual-portfolio/issues/103
784
  if ( $( '.elementor' ).length ) {
785
  $( document ).on( 'init.vpf addItems.vpf', ( event, vpObject ) => {
786
  if ( 'vpf' !== event.namespace ) {
829
  };
830
 
831
  // initialization
 
832
  $( () => {
833
  $( '.vp-portfolio' ).vpf();
834
  } );
assets/js/main.min.js CHANGED
@@ -1 +1 @@
1
- !function(t){var i={};function e(o){if(i[o])return i[o].exports;var n=i[o]={i:o,l:!1,exports:{}};return t[o].call(n.exports,n,n.exports,e),n.l=!0,n.exports}e.m=t,e.c=i,e.d=function(t,i,o){e.o(t,i)||Object.defineProperty(t,i,{enumerable:!0,get:o})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,i){if(1&i&&(t=e(t)),8&i)return t;if(4&i&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(e.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&i&&"string"!=typeof t)for(var n in t)e.d(o,n,function(i){return t[i]}.bind(null,n));return o},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},e.p="",e(e.s=239)}({239:function(t,i,e){t.exports=e(240)},240:function(t,i,e){"use strict";e.r(i);var o=e(3),n=e(4);function s(t){return(s="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)}function r(t,i){for(var e=0;e<i.length;e++){var o=i[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var a=window,l=a.jQuery,c=a.VPData.__,f=l(window);function p(){if("function"==typeof window.Event)window.dispatchEvent(new window.Event("resize"));else{var t=window.document.createEvent("UIEvents");t.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(t)}}var v={},d=!1,u=!1;function h(){if(clearTimeout(u),d){var t=l(".vp-portfolio__ready");if(t.length){var i=!1;t.each((function(){var t=this.vpf;if(t){var e=v[t.uid]||"none";v[t.uid]=null===this.offsetParent?"hidden":"visible","hidden"===e&&"visible"===v[t.uid]&&(i=!0)}})),i&&p()}else d=!1;u=setTimeout(h,500)}}l(document).on("inited.vpf",(function(t){"vpf"===t.namespace&&(d=!0,h())}));var m=function(){function t(i,e){!function(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}(this,t);this.$item=i;for(var o=i[0].className.split(/\s+/),n=0;n<o.length;n+=1)o[n]&&/^vp-uid-/.test(o[n])&&(this.uid=o[n].replace(/^vp-uid-/,"")),o[n]&&/^vp-id-/.test(o[n])&&(this.id=o[n].replace(/^vp-id-/,""));this.uid?(this.href=window.location.href,this.$items_wrap=i.find(".vp-portfolio__items"),this.$slider_thumbnails_wrap=i.find(".vp-portfolio__thumbnails"),this.$pagination=i.find(".vp-portfolio__pagination-wrap"),this.$filter=i.find(".vp-portfolio__filter-wrap"),this.$sort=i.find(".vp-portfolio__sort-wrap"),this.id&&(this.$filter=this.$filter.add(".vp-single-filter.vp-id-".concat(this.id," .vp-portfolio__filter-wrap"))),this.id&&(this.$sort=this.$sort.add(".vp-single-sort.vp-id-".concat(this.id," .vp-portfolio__sort-wrap"))),this.userOptions=e,this.firstRun=!0,this.init()):console.error(c.couldnt_retrieve_vp)}var i,e,o;return i=t,(e=[{key:"emitEvent",value:function(t,i){i=i?[this].concat(i):[this],this.$item.trigger("".concat(t,".vpf"),i),this.$item.trigger("".concat(t,".vpf-uid-").concat(this.uid),i)}},{key:"init",value:function(){this.firstRun||this.destroy(),this.destroyed=!1,this.initOptions(),this.initEvents(),this.initLayout(),this.initCustomColors(),this.emitEvent("init"),this.$item.addClass("vp-portfolio__ready"),this.id&&(l(".vp-single-filter.vp-id-".concat(this.id)).addClass("vp-single-filter__ready"),l(".vp-single-sort.vp-id-".concat(this.id)).addClass("vp-single-sort__ready")),this.resized(),this.imagesLoaded(),this.emitEvent("inited"),this.firstRun=!1}},{key:"isPreview",value:function(){return!!this.$item.closest("#vp_preview").length}},{key:"resized",value:function(){p(),this.emitEvent("resized")}},{key:"imagesLoaded",value:function(){var t=this;this.$items_wrap.imagesLoaded&&this.$items_wrap.imagesLoaded((function(){t.emitEvent("imagesLoaded")}))}},{key:"destroy",value:function(){this.$item.removeClass("vp-portfolio__ready"),this.id&&(l(".vp-single-filter.vp-id-".concat(this.id)).removeClass("vp-single-filter__ready"),l(".vp-single-sort.vp-id-".concat(this.id)).removeClass("vp-single-sort__ready")),this.destroyEvents(),this.removeStyle(),this.renderStyle(),this.emitEvent("destroy"),this.destroyed=!0}},{key:"addStyle",value:function(t,i,e){e=e||"";var o=this.uid;this.stylesList||(this.stylesList={}),void 0===this.stylesList[o]&&(this.stylesList[o]={}),void 0===this.stylesList[o][e]&&(this.stylesList[o][e]={}),void 0===this.stylesList[o][e][t]&&(this.stylesList[o][e][t]={}),this.stylesList[o][e][t]=l.extend(this.stylesList[o][e][t],i),this.emitEvent("addStyle",[t,i,e,this.stylesList])}},{key:"removeStyle",value:function(t,i,e){e=e||"";var o=this.uid;this.stylesList||(this.stylesList={}),void 0===this.stylesList[o]||t||(this.stylesList[o]={}),void 0!==this.stylesList[o]&&void 0!==this.stylesList[o][e]&&void 0!==this.stylesList[o][e][t]&&t&&delete this.stylesList[o][e][t],this.emitEvent("removeStyle",[t,i,this.stylesList])}},{key:"renderStyle",value:function(){var t=this,i=t.uid,e="";t.stylesList||(t.stylesList={}),void 0!==t.stylesList[i]&&Object.keys(t.stylesList[i]).forEach((function(o){o&&(e+="@media ".concat(o," {")),Object.keys(t.stylesList[i][o]).forEach((function(n){e+=".vp-uid-".concat(i," ").concat(n," {"),Object.keys(t.stylesList[i][o][n]).forEach((function(s){e+="".concat(s,":").concat(t.stylesList[i][o][n][s],";")})),e+="}"})),o&&(e+="}")}));var o=l("#vp-style-".concat(i));o.length||(o=l("<style>").attr("id","vp-style-".concat(i)).appendTo("head")),o.html(e),t.emitEvent("renderStyle",[e,t.stylesList,o])}},{key:"firstToLowerCase",value:function(t){return t.substr(0,1).toLowerCase()+t.substr(1)}},{key:"initOptions",value:function(t){var i=this;i.defaults={layout:"tile",itemsGap:0,pagination:"load-more"},t&&(i.userOptions=t);var e=i.$item[0].dataset,o={};Object.keys(e).forEach((function(t){t&&"vp"===t.substring(0,2)&&(o[i.firstToLowerCase(t.substring(2))]=e[t])})),i.options=l.extend({},i.defaults,o,i.userOptions),i.emitEvent("initOptions")}},{key:"initEvents",value:function(){var t,i=this,e=".vpf-uid-".concat(i.uid);function o(){var t=i.$item[0].getBoundingClientRect(),e=t.left,o=window.innerWidth-t.right,n=parseFloat(i.$item.css("margin-left")||0),s=parseFloat(i.$item.css("margin-right")||0);i.$item.css({marginLeft:n-e,marginRight:s-o,maxWidth:"none",width:"auto"})}function n(){var e=i.$item[0].getBoundingClientRect();0<e.bottom&&e.bottom-250<=window.innerHeight&&i.loadNewItems(i.options.nextPageUrl,!1,(function(){clearTimeout(t),t=setTimeout((function(){n()}),300)}))}i.$item.hasClass("vp-portfolio__stretch")&&!i.isPreview()&&(f.on("load".concat(e," resize").concat(e," orientationchange").concat(e),(function(){o()})),o()),i.$item.on("focus".concat(e),".vp-portfolio__item a",(function(){l(this).closest(".vp-portfolio__item").addClass("vp-portfolio__item-focus")})),i.$item.on("blur".concat(e),".vp-portfolio__item a",(function(){l(this).closest(".vp-portfolio__item").removeClass("vp-portfolio__item-focus")})),i.$filter.on("click".concat(e),".vp-filter .vp-filter__item a",(function(t){t.preventDefault();var e=l(this);i.loading||e.closest(".vp-filter__item").addClass("vp-filter__item-active").siblings().removeClass("vp-filter__item-active"),i.loadNewItems(e.attr("href"),!0)})),i.$sort.on("click".concat(e),".vp-sort .vp-sort__item a",(function(t){t.preventDefault();var e=l(this);i.loading||e.closest(".vp-sort__item").addClass("vp-sort__item-active").siblings().removeClass("vp-sort__item-active"),i.loadNewItems(e.attr("href"),!0)})),i.$filter.add(i.$sort).on("change".concat(e),".vp-filter select, .vp-sort select",(function(){var t=l(this),e=t.val(),o=t.find('[value="'.concat(e,'"]'));o.length&&i.loadNewItems(o.attr("data-vp-url"),!0)})),i.$item.on("click".concat(e),".vp-pagination .vp-pagination__item a",(function(t){t.preventDefault();var e=l(this),o=e.closest(".vp-pagination");if((!o.hasClass("vp-pagination__no-more")||"paged"===i.options.pagination)&&(i.loadNewItems(e.attr("href"),"paged"===i.options.pagination),"paged"===i.options.pagination&&o.hasClass("vp-pagination__scroll-top"))){var n=l("#wpadminbar"),s=window.pageYOffset||document.documentElement.scrollTop,r=i.$item.offset().top;o.attr("data-vp-pagination-scroll-top")&&(r-=parseInt(o.attr("data-vp-pagination-scroll-top"),10)||0),n.length&&"fixed"===n.css("position")&&(r-=n.outerHeight()),s>(r=Math.max(0,r))&&window.scrollTo({top:r,behavior:"smooth"})}})),i.$item.on("click".concat(e),".vp-portfolio__items .vp-portfolio__item-meta-category a",(function(t){t.preventDefault(),t.stopPropagation(),i.loadNewItems(l(this).attr("href"),!0)})),"infinite"===i.options.pagination&&(f.on("load".concat(e," scroll").concat(e," resize").concat(e," orientationchange").concat(e),(function(){clearTimeout(t),t=setTimeout((function(){n()}),60)})),n()),i.$item.on("transitionend".concat(e),".vp-portfolio__items",(function(t){t.currentTarget===t.target&&i.resized()})),i.emitEvent("initEvents")}},{key:"destroyEvents",value:function(){var t=".vpf-uid-".concat(this.uid);this.$item.off(t),this.$filter.off(t),this.$sort.off(t),f.off(t),this.emitEvent("destroyEvents")}},{key:"initLayout",value:function(){this.emitEvent("initLayout"),this.renderStyle()}},{key:"initCustomColors",value:function(){var t=this;t.$item.find("[data-vp-bg-color]").each((function(){var i=l(this).attr("data-vp-bg-color");t.addStyle('[data-vp-bg-color="'.concat(i,'"]'),{"background-color":"".concat(i," !important")})})),t.$item.find("[data-vp-text-color]").each((function(){var i=l(this).attr("data-vp-text-color");t.addStyle('[data-vp-text-color="'.concat(i,'"]'),{color:"".concat(i," !important")})})),t.renderStyle(),t.emitEvent("initCustomColors")}},{key:"addItems",value:function(t,i,e){this.emitEvent("addItems",[t,i,e])}},{key:"removeItems",value:function(t){this.emitEvent("removeItems",[t])}},{key:"loadNewItems",value:function(t,i,e){var o=this;if(!o.loading&&t&&o.href!==t){var n={method:"POST",url:t,data:{vpf_ajax_call:!0},complete:function(n){var s=n.responseText;o.href=t,o.replaceItems(s,i,e)}};o.loading=!0,o.$item.addClass("vp-portfolio__loading"),o.emitEvent("startLoadingNewItems",[t,n]),l.ajax(n)}}},{key:"replaceItems",value:function(t,i,e){if(t){t=t.replace("<body",'<body><div id="vp-infinite-load-body"').replace("</body>","</div></body>");var o=l(t).filter("#vp-infinite-load-body"),n=o.find(".vp-portfolio.vp-uid-".concat(this.uid));if(n.length){var s=n.find(".vp-portfolio__items").html();n.hasClass("vp-portfolio-not-found")?(this.$item.find(".vp-portfolio__items-wrap").before(n.find(".vp-notice").clone()),this.$item.addClass("vp-portfolio-not-found")):(this.$item.find(".vp-notice").remove(),this.$item.removeClass("vp-portfolio-not-found")),this.$filter.length&&this.$filter.each((function(){var t=l(this),i="";i=t.parent().hasClass("vp-single-filter")?o.find('[class="'.concat(t.parent().attr("class").replace(" vp-single-filter__ready",""),'"] .vp-portfolio__filter-wrap')).html():n.find(".vp-portfolio__filter-wrap").html(),t.html(i)})),this.$sort.length&&this.$sort.each((function(){var t=l(this),i="";i=t.parent().hasClass("vp-single-sort")?o.find('[class="'.concat(t.parent().attr("class").replace(" vp-single-sort__ready",""),'"] .vp-portfolio__sort-wrap')).html():n.find(".vp-portfolio__sort-wrap").html(),t.html(i)})),this.$pagination.length&&this.$pagination.html(n.find(".vp-portfolio__pagination-wrap").html()),this.addItems(l(s),i,n),this.emitEvent("loadedNewItems",[n,i,t]),e&&e()}var r=n.attr("data-vp-next-page-url");this.options.nextPageUrl=r,this.$item.attr("data-vp-next-page-url",r),this.$item.removeClass("vp-portfolio__loading"),this.loading=!1,this.emitEvent("endLoadingNewItems"),this.imagesLoaded(),this.initCustomColors()}}}])&&r(i.prototype,e),o&&r(i,o),t}();l(".elementor").length&&l(document).on("init.vpf addItems.vpf",(function(t,i){"vpf"===t.namespace&&i.$item.find(".vp-portfolio__item a").each((function(){/\.(png|jpe?g|gif|svg)(\?.*)?$/i.test(this.href)&&l(this).attr("data-elementor-open-lightbox","no")}))})),l(document).trigger("extendClass.vpf",[m]);var y=function(t){for(var i=arguments.length,e=new Array(i>1?i-1:0),o=1;o<i;o++)e[o-1]=arguments[o];var n;return this.each((function(){if(void 0===n)if("object"===s(t)||void 0===t)this.vpf||(this.vpf=new m(l(this),t));else if(this.vpf){var i;n=(i=this.vpf)[t].apply(i,e)}})),void 0!==n?n:this};y.constructor=m;var _=l.fn.vpf;l.fn.vpf=y,l.fn.vpf.noConflict=function(){return l.fn.vpf=_,this},l(".vp-portfolio").vpf(),l((function(){l(".vp-portfolio").vpf()}));var g=Object(o.throttle)(200,Object(n.a)((function(){l(".vp-portfolio:not(.vp-portfolio__ready)").vpf()})));window.MutationObserver?new window.MutationObserver(g).observe(document.documentElement,{childList:!0,subtree:!0}):l(document).on("DOMContentLoaded DOMNodeInserted load",(function(){g()}))},3:function(t,i,e){var o,n,s,r;function a(t){return(a="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)}r=function(t){"use strict";function i(t,i,e,o){var n,s=!1,r=0;function a(){n&&clearTimeout(n)}function l(){for(var l=arguments.length,c=new Array(l),f=0;f<l;f++)c[f]=arguments[f];var p=this,v=Date.now()-r;function d(){r=Date.now(),e.apply(p,c)}function u(){n=void 0}s||(o&&!n&&d(),a(),void 0===o&&v>t?d():!0!==i&&(n=setTimeout(o?u:d,void 0===o?t-v:t)))}return"boolean"!=typeof i&&(o=e,e=i,i=void 0),l.cancel=function(){a(),s=!0},l}t.debounce=function(t,e,o){return void 0===o?i(t,e,!1):i(t,o,!1!==e)},t.throttle=i,Object.defineProperty(t,"__esModule",{value:!0})},"object"===a(i)&&void 0!==t?r(i):(n=[i],void 0===(s="function"==typeof(o=r)?o.apply(i,n):o)||(t.exports=s))},4:function(t,i,e){"use strict";i.a=function(t){var i=[],e=null,o=function(){for(var o=arguments.length,n=new Array(o),s=0;s<o;s++)n[s]=arguments[s];i=n,e||(e=requestAnimationFrame((function(){e=null,t.apply(void 0,i)})))};return o.cancel=function(){e&&(cancelAnimationFrame(e),e=null)},o}}});
1
+ !function(t){var i={};function e(o){if(i[o])return i[o].exports;var n=i[o]={i:o,l:!1,exports:{}};return t[o].call(n.exports,n,n.exports,e),n.l=!0,n.exports}e.m=t,e.c=i,e.d=function(t,i,o){e.o(t,i)||Object.defineProperty(t,i,{enumerable:!0,get:o})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,i){if(1&i&&(t=e(t)),8&i)return t;if(4&i&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(e.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&i&&"string"!=typeof t)for(var n in t)e.d(o,n,function(i){return t[i]}.bind(null,n));return o},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},e.p="",e(e.s=239)}({239:function(t,i,e){t.exports=e(240)},240:function(t,i,e){"use strict";e.r(i);var o=e(3),n=e(4);function s(t){return(s="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)}function r(t,i){for(var e=0;e<i.length;e++){var o=i[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var a=window,l=a.jQuery,c=a.VPData.__,f=l(window);function p(){if("function"==typeof window.Event)window.dispatchEvent(new window.Event("resize"));else{var t=window.document.createEvent("UIEvents");t.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(t)}}var v={},d=!1,u=!1;function h(){if(clearTimeout(u),d){var t=l(".vp-portfolio__ready");if(t.length){var i=!1;t.each((function(){var t=this.vpf;if(t){var e=v[t.uid]||"none";v[t.uid]=null===this.offsetParent?"hidden":"visible","hidden"===e&&"visible"===v[t.uid]&&(i=!0)}})),i&&p()}else d=!1;u=setTimeout(h,500)}}l(document).on("inited.vpf",(function(t){"vpf"===t.namespace&&(d=!0,h())}));var m=function(){function t(i,e){!function(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}(this,t);this.$item=i;for(var o=i[0].className.split(/\s+/),n=0;n<o.length;n+=1)o[n]&&/^vp-uid-/.test(o[n])&&(this.uid=o[n].replace(/^vp-uid-/,"")),o[n]&&/^vp-id-/.test(o[n])&&(this.id=o[n].replace(/^vp-id-/,""));this.uid?(this.href=window.location.href,this.$items_wrap=i.find(".vp-portfolio__items"),this.$slider_thumbnails_wrap=i.find(".vp-portfolio__thumbnails"),this.$pagination=i.find(".vp-portfolio__pagination-wrap"),this.$filter=i.find(".vp-portfolio__filter-wrap"),this.$sort=i.find(".vp-portfolio__sort-wrap"),this.id&&(this.$filter=this.$filter.add(".vp-single-filter.vp-id-".concat(this.id," .vp-portfolio__filter-wrap"))),this.id&&(this.$sort=this.$sort.add(".vp-single-sort.vp-id-".concat(this.id," .vp-portfolio__sort-wrap"))),this.userOptions=e,this.firstRun=!0,this.init()):console.error(c.couldnt_retrieve_vp)}var i,e,o;return i=t,(e=[{key:"emitEvent",value:function(t,i){i=i?[this].concat(i):[this],this.$item.trigger("".concat(t,".vpf"),i),this.$item.trigger("".concat(t,".vpf-uid-").concat(this.uid),i)}},{key:"init",value:function(){this.firstRun||this.destroy(),this.destroyed=!1,this.initOptions(),this.initEvents(),this.initLayout(),this.initCustomColors(),this.emitEvent("init"),this.$item.addClass("vp-portfolio__ready"),this.id&&(l(".vp-single-filter.vp-id-".concat(this.id)).addClass("vp-single-filter__ready"),l(".vp-single-sort.vp-id-".concat(this.id)).addClass("vp-single-sort__ready")),this.resized(),this.imagesLoaded(),this.emitEvent("inited"),this.firstRun=!1}},{key:"isPreview",value:function(){return!!this.$item.closest("#vp_preview").length}},{key:"resized",value:function(){p(),this.emitEvent("resized")}},{key:"imagesLoaded",value:function(){var t=this;this.$items_wrap.imagesLoaded&&this.$items_wrap.imagesLoaded((function(){t.emitEvent("imagesLoaded")}))}},{key:"destroy",value:function(){this.$item.removeClass("vp-portfolio__ready"),this.id&&(l(".vp-single-filter.vp-id-".concat(this.id)).removeClass("vp-single-filter__ready"),l(".vp-single-sort.vp-id-".concat(this.id)).removeClass("vp-single-sort__ready")),this.destroyEvents(),this.removeStyle(),this.renderStyle(),this.emitEvent("destroy"),this.destroyed=!0}},{key:"addStyle",value:function(t,i,e){e=e||"";var o=this.uid;this.stylesList||(this.stylesList={}),void 0===this.stylesList[o]&&(this.stylesList[o]={}),void 0===this.stylesList[o][e]&&(this.stylesList[o][e]={}),void 0===this.stylesList[o][e][t]&&(this.stylesList[o][e][t]={}),this.stylesList[o][e][t]=l.extend(this.stylesList[o][e][t],i),this.emitEvent("addStyle",[t,i,e,this.stylesList])}},{key:"removeStyle",value:function(t,i,e){e=e||"";var o=this.uid;this.stylesList||(this.stylesList={}),void 0===this.stylesList[o]||t||(this.stylesList[o]={}),void 0!==this.stylesList[o]&&void 0!==this.stylesList[o][e]&&void 0!==this.stylesList[o][e][t]&&t&&delete this.stylesList[o][e][t],this.emitEvent("removeStyle",[t,i,this.stylesList])}},{key:"renderStyle",value:function(){var t=this,i=t.uid,e="";t.stylesList||(t.stylesList={}),void 0!==t.stylesList[i]&&Object.keys(t.stylesList[i]).forEach((function(o){o&&(e+="@media ".concat(o," {")),Object.keys(t.stylesList[i][o]).forEach((function(n){e+=".vp-uid-".concat(i," ").concat(n," {"),Object.keys(t.stylesList[i][o][n]).forEach((function(s){e+="".concat(s,":").concat(t.stylesList[i][o][n][s],";")})),e+="}"})),o&&(e+="}")}));var o=l("#vp-style-".concat(i));o.length||(o=l("<style>").attr("id","vp-style-".concat(i)).appendTo("head")),o.html(e),t.emitEvent("renderStyle",[e,t.stylesList,o])}},{key:"firstToLowerCase",value:function(t){return t.substr(0,1).toLowerCase()+t.substr(1)}},{key:"initOptions",value:function(t){var i=this;i.defaults={layout:"tile",itemsGap:0,pagination:"load-more"},t&&(i.userOptions=t);var e=i.$item[0].dataset,o={};Object.keys(e).forEach((function(t){t&&"vp"===t.substring(0,2)&&(o[i.firstToLowerCase(t.substring(2))]=e[t])})),i.options=l.extend({},i.defaults,o,i.userOptions),i.emitEvent("initOptions")}},{key:"initEvents",value:function(){var t,i=this,e=".vpf-uid-".concat(i.uid);function o(){var t=i.$item[0].getBoundingClientRect(),e=t.left,o=window.innerWidth-t.right,n=parseFloat(i.$item.css("margin-left")||0),s=parseFloat(i.$item.css("margin-right")||0);i.$item.css({marginLeft:n-e,marginRight:s-o,maxWidth:"none",width:"auto"})}function n(){var e=i.$item[0].getBoundingClientRect();0<e.bottom&&e.bottom-250<=window.innerHeight&&i.loadNewItems(i.options.nextPageUrl,!1,(function(){clearTimeout(t),t=setTimeout((function(){n()}),300)}))}i.$item.hasClass("vp-portfolio__stretch")&&!i.isPreview()&&(f.on("load".concat(e," resize").concat(e," orientationchange").concat(e),(function(){o()})),o()),i.$item.on("focus".concat(e),".vp-portfolio__item a",(function(){l(this).closest(".vp-portfolio__item").addClass("vp-portfolio__item-focus")})),i.$item.on("blur".concat(e),".vp-portfolio__item a",(function(){l(this).closest(".vp-portfolio__item").removeClass("vp-portfolio__item-focus")})),i.$filter.on("click".concat(e),".vp-filter .vp-filter__item a",(function(t){t.preventDefault();var e=l(this);i.loading||e.closest(".vp-filter__item").addClass("vp-filter__item-active").siblings().removeClass("vp-filter__item-active"),i.loadNewItems(e.attr("href"),!0)})),i.$sort.on("click".concat(e),".vp-sort .vp-sort__item a",(function(t){t.preventDefault();var e=l(this);i.loading||e.closest(".vp-sort__item").addClass("vp-sort__item-active").siblings().removeClass("vp-sort__item-active"),i.loadNewItems(e.attr("href"),!0)})),i.$filter.add(i.$sort).on("change".concat(e),".vp-filter select, .vp-sort select",(function(){var t=l(this),e=t.val(),o=t.find('[value="'.concat(e,'"]'));o.length&&i.loadNewItems(o.attr("data-vp-url"),!0)})),i.$item.on("click".concat(e),".vp-pagination .vp-pagination__item a",(function(t){t.preventDefault();var e=l(this),o=e.closest(".vp-pagination");if((!o.hasClass("vp-pagination__no-more")||"paged"===i.options.pagination)&&(i.loadNewItems(e.attr("href"),"paged"===i.options.pagination),"paged"===i.options.pagination&&o.hasClass("vp-pagination__scroll-top"))){var n=l("#wpadminbar"),s=window.pageYOffset||document.documentElement.scrollTop,r=i.$item.offset().top;o.attr("data-vp-pagination-scroll-top")&&(r-=parseInt(o.attr("data-vp-pagination-scroll-top"),10)||0),n.length&&"fixed"===n.css("position")&&(r-=n.outerHeight()),s>(r=Math.max(0,r))&&window.scrollTo({top:r,behavior:"smooth"})}})),i.$item.on("click".concat(e),".vp-portfolio__items .vp-portfolio__item-meta-category a",(function(t){t.preventDefault(),t.stopPropagation(),i.loadNewItems(l(this).attr("href"),!0)})),"infinite"===i.options.pagination&&(f.on("load".concat(e," scroll").concat(e," resize").concat(e," orientationchange").concat(e),(function(){clearTimeout(t),t=setTimeout((function(){n()}),60)})),n()),i.$item.on("transitionend".concat(e),".vp-portfolio__items",(function(t){t.currentTarget===t.target&&i.resized()})),i.emitEvent("initEvents")}},{key:"destroyEvents",value:function(){var t=".vpf-uid-".concat(this.uid);this.$item.off(t),this.$filter.off(t),this.$sort.off(t),f.off(t),this.emitEvent("destroyEvents")}},{key:"initLayout",value:function(){this.emitEvent("initLayout"),this.renderStyle()}},{key:"initCustomColors",value:function(){var t=this;t.$item.find("[data-vp-bg-color]").each((function(){var i=l(this).attr("data-vp-bg-color");t.addStyle('[data-vp-bg-color="'.concat(i,'"]'),{"background-color":"".concat(i," !important")})})),t.$item.find("[data-vp-text-color]").each((function(){var i=l(this).attr("data-vp-text-color");t.addStyle('[data-vp-text-color="'.concat(i,'"]'),{color:"".concat(i," !important")})})),t.renderStyle(),t.emitEvent("initCustomColors")}},{key:"addItems",value:function(t,i,e){this.emitEvent("addItems",[t,i,e])}},{key:"removeItems",value:function(t){this.emitEvent("removeItems",[t])}},{key:"loadNewItems",value:function(t,i,e){var o=this;if(!o.loading&&t&&o.href!==t){var n={method:"POST",url:t,data:{vpf_ajax_call:!0},complete:function(n){var s=n.responseText;o.href=t,o.replaceItems(s,i,e)}};o.loading=!0,o.$item.addClass("vp-portfolio__loading"),o.emitEvent("startLoadingNewItems",[t,n]),l.ajax(n)}}},{key:"replaceItems",value:function(t,i,e){if(t){t=t.replace("<body",'<body><div id="vp-infinite-load-body"').replace("</body>","</div></body>");var o=l(t).filter("#vp-infinite-load-body"),n=o.find(".vp-portfolio.vp-uid-".concat(this.uid));if(n.length){var s=n.find(".vp-portfolio__items").html();n.hasClass("vp-portfolio-not-found")?(this.$item.find(".vp-portfolio__items-wrap").before(n.find(".vp-notice").clone()),this.$item.addClass("vp-portfolio-not-found")):(this.$item.find(".vp-notice").remove(),this.$item.removeClass("vp-portfolio-not-found")),this.$filter.length&&this.$filter.each((function(){var t=l(this),i="";i=t.parent().hasClass("vp-single-filter")?o.find('[class="'.concat(t.parent().attr("class").replace(" vp-single-filter__ready",""),'"] .vp-portfolio__filter-wrap')).html():n.find(".vp-portfolio__filter-wrap").html(),t.html(i)})),this.$sort.length&&this.$sort.each((function(){var t=l(this),i="";i=t.parent().hasClass("vp-single-sort")?o.find('[class="'.concat(t.parent().attr("class").replace(" vp-single-sort__ready",""),'"] .vp-portfolio__sort-wrap')).html():n.find(".vp-portfolio__sort-wrap").html(),t.html(i)})),this.$pagination.length&&this.$pagination.html(n.find(".vp-portfolio__pagination-wrap").html()),this.addItems(l(s),i,n),this.emitEvent("loadedNewItems",[n,i,t]),e&&e()}var r=n.attr("data-vp-next-page-url");this.options.nextPageUrl=r,this.$item.attr("data-vp-next-page-url",r),this.$item.removeClass("vp-portfolio__loading"),this.loading=!1,this.emitEvent("endLoadingNewItems"),this.imagesLoaded(),this.initCustomColors()}}}])&&r(i.prototype,e),o&&r(i,o),t}();l(".elementor").length&&l(document).on("init.vpf addItems.vpf",(function(t,i){"vpf"===t.namespace&&i.$item.find(".vp-portfolio__item a").each((function(){/\.(png|jpe?g|gif|svg)(\?.*)?$/i.test(this.href)&&l(this).attr("data-elementor-open-lightbox","no")}))})),l(document).trigger("extendClass.vpf",[m]);var y=function(t){for(var i=arguments.length,e=new Array(i>1?i-1:0),o=1;o<i;o++)e[o-1]=arguments[o];var n;return this.each((function(){if(void 0===n)if("object"===s(t)||void 0===t)this.vpf||(this.vpf=new m(l(this),t));else if(this.vpf){var i;n=(i=this.vpf)[t].apply(i,e)}})),void 0!==n?n:this};y.constructor=m;var _=l.fn.vpf;l.fn.vpf=y,l.fn.vpf.noConflict=function(){return l.fn.vpf=_,this},l((function(){l(".vp-portfolio").vpf()}));var g=Object(o.throttle)(200,Object(n.a)((function(){l(".vp-portfolio:not(.vp-portfolio__ready)").vpf()})));window.MutationObserver?new window.MutationObserver(g).observe(document.documentElement,{childList:!0,subtree:!0}):l(document).on("DOMContentLoaded DOMNodeInserted load",(function(){g()}))},3:function(t,i,e){var o,n,s,r;function a(t){return(a="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)}r=function(t){"use strict";function i(t,i,e,o){var n,s=!1,r=0;function a(){n&&clearTimeout(n)}function l(){for(var l=arguments.length,c=new Array(l),f=0;f<l;f++)c[f]=arguments[f];var p=this,v=Date.now()-r;function d(){r=Date.now(),e.apply(p,c)}function u(){n=void 0}s||(o&&!n&&d(),a(),void 0===o&&v>t?d():!0!==i&&(n=setTimeout(o?u:d,void 0===o?t-v:t)))}return"boolean"!=typeof i&&(o=e,e=i,i=void 0),l.cancel=function(){a(),s=!0},l}t.debounce=function(t,e,o){return void 0===o?i(t,e,!1):i(t,o,!1!==e)},t.throttle=i,Object.defineProperty(t,"__esModule",{value:!0})},"object"===a(i)&&void 0!==t?r(i):(n=[i],void 0===(s="function"==typeof(o=r)?o.apply(i,n):o)||(t.exports=s))},4:function(t,i,e){"use strict";i.a=function(t){var i=[],e=null,o=function(){for(var o=arguments.length,n=new Array(o),s=0;s<o;s++)n[s]=arguments[s];i=n,e||(e=requestAnimationFrame((function(){e=null,t.apply(void 0,i)})))};return o.cancel=function(){e&&(cancelAnimationFrame(e),e=null)},o}}});
assets/js/plugin-fancybox.js CHANGED
@@ -151,6 +151,12 @@ if ( 'undefined' !== typeof $.fancybox && VPPopupAPI ) {
151
  self.emitEvent( 'beforeInitFancybox', [ options, finalItems, index ] );
152
  }
153
 
 
 
 
 
 
 
154
  // Start new fancybox instance
155
  fancyboxInstance = $.fancybox.open( finalItems, options, index );
156
 
151
  self.emitEvent( 'beforeInitFancybox', [ options, finalItems, index ] );
152
  }
153
 
154
+ // Disable Loop if only 1 item in gallery.
155
+ // We need this because Fancybox still let us scroll gallery using keyboard.
156
+ if ( 1 === items.length ) {
157
+ options.loop = false;
158
+ }
159
+
160
  // Start new fancybox instance
161
  fancyboxInstance = $.fancybox.open( finalItems, options, index );
162
 
assets/js/plugin-fancybox.min.js CHANGED
@@ -1 +1 @@
1
- !function(o){var e={};function t(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return o[n].call(r.exports,r,r.exports,t),r.l=!0,r.exports}t.m=o,t.c=e,t.d=function(o,e,n){t.o(o,e)||Object.defineProperty(o,e,{enumerable:!0,get:n})},t.r=function(o){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},t.t=function(o,e){if(1&e&&(o=t(o)),8&e)return o;if(4&e&&"object"==typeof o&&o&&o.__esModule)return o;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:o}),2&e&&"string"!=typeof o)for(var r in o)t.d(n,r,function(e){return o[e]}.bind(null,r));return n},t.n=function(o){var e=o&&o.__esModule?function(){return o.default}:function(){return o};return t.d(e,"a",e),e},t.o=function(o,e){return Object.prototype.hasOwnProperty.call(o,e)},t.p="",t(t.s=243)}({243:function(o,e,t){o.exports=t(244)},244:function(o,e){var t,n=window.jQuery,r=window,s=r.VPData,c=r.VPPopupAPI,u=s.__,a=s.settingsPopupGallery;void 0!==n.fancybox&&c&&(c.vendor="fancybox",c.open=function(o,e,r){var s=[];o.forEach((function(o){"embed"===o.type&&o.src?s.push({type:"iframe",src:o.src,opts:{width:o.width,height:o.height}}):"embed"===o.type&&o.embed?s.push({type:"html",src:o.embed,opts:{width:o.width,height:o.height}}):s.push({type:"image",src:o.src,el:o.el,opts:{width:o.width,height:o.height,srcset:o.srcset,caption:o.caption,thumb:o.srcSmall}})}));var c=[];a.show_zoom_button&&c.push("zoom"),a.show_fullscreen_button&&c.push("fullScreen"),a.show_slideshow&&c.push("slideShow"),a.show_thumbs&&c.push("thumbs"),a.show_share_button&&c.push("share"),a.show_download_button&&c.push("download"),a.show_close_button&&c.push("close");var i={closeExisting:!0,loop:!0,arrows:a.show_arrows,infobar:a.show_counter,smallBtn:!1,toolbar:"auto",buttons:c,baseClass:"vp-fancybox",hideScrollbar:!0,wheel:!1,clickContent:function(o){return!("image"!==o.type||!a.click_to_zoom)&&"zoom"},lang:"wordpress",i18n:{wordpress:{CLOSE:u.fancybox_close,NEXT:u.fancybox_next,PREV:u.fancybox_prev,ERROR:u.fancybox_error,PLAY_START:u.fancybox_play_start,PLAY_STOP:u.fancybox_play_stop,FULL_SCREEN:u.fancybox_full_screen,THUMBS:u.fancybox_thumbs,DOWNLOAD:u.fancybox_download,SHARE:u.fancybox_share,ZOOM:u.fancybox_zoom}},beforeClose:function(){t=!1}};r&&r.emitEvent("beforeInitFancybox",[i,s,e]),t=n.fancybox.open(s,i,e),r&&r.emitEvent("initFancybox",[i,s,e,t])},c.close=function(){t&&(t.close(),t=!1)})}});
1
+ !function(o){var e={};function t(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return o[n].call(r.exports,r,r.exports,t),r.l=!0,r.exports}t.m=o,t.c=e,t.d=function(o,e,n){t.o(o,e)||Object.defineProperty(o,e,{enumerable:!0,get:n})},t.r=function(o){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},t.t=function(o,e){if(1&e&&(o=t(o)),8&e)return o;if(4&e&&"object"==typeof o&&o&&o.__esModule)return o;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:o}),2&e&&"string"!=typeof o)for(var r in o)t.d(n,r,function(e){return o[e]}.bind(null,r));return n},t.n=function(o){var e=o&&o.__esModule?function(){return o.default}:function(){return o};return t.d(e,"a",e),e},t.o=function(o,e){return Object.prototype.hasOwnProperty.call(o,e)},t.p="",t(t.s=243)}({243:function(o,e,t){o.exports=t(244)},244:function(o,e){var t,n=window.jQuery,r=window,s=r.VPData,c=r.VPPopupAPI,u=s.__,a=s.settingsPopupGallery;void 0!==n.fancybox&&c&&(c.vendor="fancybox",c.open=function(o,e,r){var s=[];o.forEach((function(o){"embed"===o.type&&o.src?s.push({type:"iframe",src:o.src,opts:{width:o.width,height:o.height}}):"embed"===o.type&&o.embed?s.push({type:"html",src:o.embed,opts:{width:o.width,height:o.height}}):s.push({type:"image",src:o.src,el:o.el,opts:{width:o.width,height:o.height,srcset:o.srcset,caption:o.caption,thumb:o.srcSmall}})}));var c=[];a.show_zoom_button&&c.push("zoom"),a.show_fullscreen_button&&c.push("fullScreen"),a.show_slideshow&&c.push("slideShow"),a.show_thumbs&&c.push("thumbs"),a.show_share_button&&c.push("share"),a.show_download_button&&c.push("download"),a.show_close_button&&c.push("close");var i={closeExisting:!0,loop:!0,arrows:a.show_arrows,infobar:a.show_counter,smallBtn:!1,toolbar:"auto",buttons:c,baseClass:"vp-fancybox",hideScrollbar:!0,wheel:!1,clickContent:function(o){return!("image"!==o.type||!a.click_to_zoom)&&"zoom"},lang:"wordpress",i18n:{wordpress:{CLOSE:u.fancybox_close,NEXT:u.fancybox_next,PREV:u.fancybox_prev,ERROR:u.fancybox_error,PLAY_START:u.fancybox_play_start,PLAY_STOP:u.fancybox_play_stop,FULL_SCREEN:u.fancybox_full_screen,THUMBS:u.fancybox_thumbs,DOWNLOAD:u.fancybox_download,SHARE:u.fancybox_share,ZOOM:u.fancybox_zoom}},beforeClose:function(){t=!1}};r&&r.emitEvent("beforeInitFancybox",[i,s,e]),1===o.length&&(i.loop=!1),t=n.fancybox.open(s,i,e),r&&r.emitEvent("initFancybox",[i,s,e,t])},c.close=function(){t&&(t.close(),t=!1)})}});
assets/js/plugin-fj-gallery.js CHANGED
@@ -93,7 +93,7 @@ $( document ).on( 'imagesLoaded.vpf', ( event, self ) => {
93
  }
94
 
95
  // sometimes on iOs images failed to calculate positions, so we need this imagesLoaded event.
96
- // related issue: https://github.com/nk-o/visual-portfolio/issues/55
97
  self.initFjGallery();
98
  } );
99
 
93
  }
94
 
95
  // sometimes on iOs images failed to calculate positions, so we need this imagesLoaded event.
96
+ // related issue: https://github.com/nk-crew/visual-portfolio/issues/55
97
  self.initFjGallery();
98
  } );
99
 
assets/js/plugin-isotope.js CHANGED
@@ -129,7 +129,7 @@ $doc.on( 'imagesLoaded.vpf', ( event, self ) => {
129
  }
130
 
131
  // sometimes on iOs images failed to calculate positions, so we need this imagesLoaded event.
132
- // related issue: https://github.com/nk-o/visual-portfolio/issues/55
133
  self.initIsotope( 'layout' );
134
  } );
135
 
129
  }
130
 
131
  // sometimes on iOs images failed to calculate positions, so we need this imagesLoaded event.
132
+ // related issue: https://github.com/nk-crew/visual-portfolio/issues/55
133
  self.initIsotope( 'layout' );
134
  } );
135
 
assets/js/plugin-swiper.js CHANGED
@@ -98,7 +98,7 @@ $( document ).on( 'extendClass.vpf', ( event, VP ) => {
98
  }
99
 
100
  // fix first load slide position (seems like a conflict with lazySizes)
101
- // issue: https://github.com/nk-o/visual-portfolio/issues/54
102
  if ( 0 === options.speed ) {
103
  options.speed = 1;
104
  }
98
  }
99
 
100
  // fix first load slide position (seems like a conflict with lazySizes)
101
+ // issue: https://github.com/nk-crew/visual-portfolio/issues/54
102
  if ( 0 === options.speed ) {
103
  options.speed = 1;
104
  }
assets/js/preview.js CHANGED
@@ -1,6 +1,6 @@
1
  /*!
2
  * Name : Visual Portfolio
3
- * Version : 2.10.5
4
  * Author : nK https://nkdev.info
5
  */
6
  const $ = window.jQuery;
1
  /*!
2
  * Name : Visual Portfolio
3
+ * Version : 2.11.0
4
  * Author : nK https://nkdev.info
5
  */
6
  const $ = window.jQuery;
assets/vendor/conditionize/conditionize.min.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ /*!
2
+ * Name : Conditionize - jQuery conditions for forms
3
+ * Version : 1.0.5
4
+ * Author : nK <https://nkdev.info>
5
+ * GitHub : https://github.com/nk-o/conditionize
6
+ */!function(n){var o={};function r(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}r.m=n,r.c=o,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){"use strict";n.r(e);var r=n(2),o=n(3);function u(t){return(u="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)}function c(e,t){var n,o=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)),o}function i(r){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?c(Object(i),!0).forEach(function(t){var e,n,o;e=r,o=i[n=t],n in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):c(Object(i)).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(i,t))})}return r}function a(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var f=o.window.jQuery,s=0;function l(t){this.table=t}l.prototype.parse=function(t){for(var e,n=t.length,o=this.table,r=[],i=[],c=0;c<n;){switch(e=t[c++]){case"(":i.unshift(e);break;case")":for(;i.length;){if("("===(e=i.shift()))break;r.push(e)}if("("!==e)throw new Error("Mismatched parentheses.");break;default:if(o.hasOwnProperty(e)){for(;i.length;){var u=i[0];if("("===u)break;var a=o[e],f=a.precedence,s=o[u].precedence;if(s<f||f===s&&"right"===a.associativity)break;r.push(i.shift())}i.unshift(e)}else r.push(e)}}for(;i.length;){if("("===(e=i.shift()))throw new Error("Mismatched parentheses.");r.push(e)}return r};function p(t,e){("object"===("undefined"==typeof HTMLElement?"undefined":u(HTMLElement))?t instanceof HTMLElement:t&&"object"===u(t)&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName)&&(t=[t]);for(var n,o=e,r=Array.prototype.slice.call(arguments,2),i=t.length,c=0;c<i;c++)if("object"===u(o)||void 0===o?t[c].Conditionize||(t[c].Conditionize=new v(t[c],o)):t[c].Conditionize&&(n=t[c].Conditionize[o].apply(t[c].Conditionize,r)),void 0!==n)return n;return t}var d={precedence:3,associativity:"left"},y={precedence:2,associativity:"left"},h={"==":{eval:function(t,e){return t==e},sort:y},"!=":{eval:function(t,e){return t!=e},sort:y},"===":{eval:function(t,e){return t===e},sort:y},"!==":{eval:function(t,e){return t!==e},sort:y},"*=":{eval:function(t,e){return-1!==t.indexOf(e)},sort:y},"<=":{eval:function(t,e){return t<=e},sort:d},">=":{eval:function(t,e){return e<=t},sort:d},"<":{eval:function(t,e){return t<e},sort:d},">":{eval:function(t,e){return e<t},sort:d},"&&":{eval:function(t,e){return t&&e},sort:{precedence:1,associativity:"right"}},"||":{eval:function(t,e){return t||e},sort:{precedence:0,associativity:"right"}}},v=function(){function o(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);var n=this;n.instanceID=s++,n.$container=f(t),n.defaults={selector:"[data-cond]",conditionAttr:"data-cond",checkDebounce:150,customToggle:null,onInit:null,onDestroy:null,onCheck:null},n.options=i(i({},n.defaults),e),n.runCheck=Object(r.debounce)(n.options.checkDebounce,n.runCheck),n.init()}var t,e,n;return t=o,(e=[{key:"init",value:function(){var t=this;t.options.customToggle?t.options.customToggle.call(t,t.$container.find(t.options.selector),!1):t.$container.find(t.options.selector).hide(),t.$container.on("change.conditionize","input, select, textarea",function(){t.runCheck(t.$container.find(t.options.selector))}),t.runCheck(t.$container.find(t.options.selector)),t.options.onInit&&t.options.onInit.call(t)}},{key:"runCheck",value:function(t){var o=this;t.each(function(){var t=f(this),e=t.attr(o.options.conditionAttr).toString(),n=o.checkCondition(e);o.options.customToggle?o.options.customToggle.call(o,t,n):t[n?"show":"hide"](),o.options.onCheck&&o.options.onCheck(t,n)})}},{key:"checkCondition",value:function(t){var e=t.match(/[^\s]+/g),n={};Object.keys(h).forEach(function(t){n[t]=h[t].sort});for(var o,r,i,e=new l(n).parse(e),c=[],u=0;u<e.length;){(i=e[u++])in h?(o=c.pop(),r=c.pop(),c.push([r,i,o])):c.push(i)}return this.compare(c.length&&c[0])}},{key:"isValidSelector",value:function(t){if("string"!=typeof t||f.isNumeric(t)||"false"===t||"true"===t||0==t||1==t)return!1;try{f(t)}catch(t){return!1}return!0}},{key:"condition",value:function(t,e,n){return e in h&&("false"===t?t=!1:"true"===t&&(t=!0),"false"===n?n=!1:"true"===n&&(n=!0),h[e].eval(t,n))}},{key:"compare",value:function(t){var e=this;if(t instanceof Array)return 3===t.length?(t[0]=e.compare(t[0]),t[2]instanceof Array&&(t[2]=e.compare(t[2])),e.condition(t[0],t[1],t[2])):1===t.length&&e.compare(t[0]);if(e.isValidSelector(t)){var n=f(t),o=!1;return n.is("[type=checkbox]")?o=n.is(":checked"):n.is("[type=radio]")?o=n.filter(":checked").val():n.is("textarea, select, input")&&(o=n.val()),o}return t}},{key:"destroy",value:function(){var t=this;t.options.onDestroy&&t.options.onDestroy.call(t),t.$container.off("change.conditionize"),t.options.customToggle?t.options.customToggle.call(t,t.$container.find(t.options.selector),!0):t.$container.find(t.options.selector).show(),delete t.$container.Conditionize}}])&&a(t.prototype,e),n&&a(t,n),o}();p.constructor=v,o.window.Conditionize=v;function b(){var t=arguments||[];Array.prototype.unshift.call(t,this);var e=p.apply(o.window,t);return"object"!==u(e)?e:this}b.constructor=p.constructor;var g=f.fn.conditionize;f.fn.conditionize=b,f.fn.conditionize.noConflict=function(){return f.fn.conditionize=g,this}},function(t,e,n){"use strict";function o(r,i,c,u){var a,f=!1,s=0;function l(){a&&clearTimeout(a)}function t(){var t=this,e=Date.now()-s,n=arguments;function o(){s=Date.now(),c.apply(t,n)}f||(u&&!a&&o(),l(),void 0===u&&r<e?o():!0!==i&&(a=setTimeout(u?function(){a=void 0}:o,void 0===u?r-e:r)))}return"boolean"!=typeof i&&(u=c,c=i,i=void 0),t.cancel=function(){l(),f=!0},t}function r(t,e,n){return void 0===n?o(t,e,!1):o(t,n,!1!==e)}n.r(e),n.d(e,"throttle",function(){return o}),n.d(e,"debounce",function(){return r})},function(n,t,e){(function(t){var e="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};n.exports=e}).call(this,e(4))},function(t,e){function n(t){return(n="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)}var o=function(){return this}();try{o=o||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":n(window))&&(o=window)}t.exports=o}]);
7
+ //# sourceMappingURL=conditionize.min.js.map
assets/vendor/conditionize/conditionize.min.js.map ADDED
@@ -0,0 +1 @@
 
1
+ {"version":3,"sources":["conditionize.js"],"names":["modules","installedModules","__webpack_require__","moduleId","exports","module","i","l","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","__webpack_exports__","throttle_debounce__WEBPACK_IMPORTED_MODULE_0__","global__WEBPACK_IMPORTED_MODULE_1__","_typeof","obj","iterator","constructor","ownKeys","enumerableOnly","symbols","keys","getOwnPropertySymbols","filter","sym","getOwnPropertyDescriptor","push","apply","_objectSpread","target","arguments","length","source","forEach","configurable","writable","getOwnPropertyDescriptors","defineProperties","_defineProperties","props","descriptor","$","jQuery","instanceID","Parser","e","this","table","parse","a","h","unshift","shift","Error","f","precedence","associativity","plugin","items","HTMLElement","nodeType","nodeName","ret","options","args","Array","slice","len","k","Conditionize","sortRelational","sortEquality","relations","==","eval","b","sort","!=","===","!==","*=","indexOf","<=",">=","<",">","&&","||","container","userOptions","instance","Constructor","TypeError","_classCallCheck","self","$container","defaults","selector","conditionAttr","checkDebounce","customToggle","onInit","onDestroy","onCheck","runCheck","init","protoProps","staticProps","find","hide","on","$items","each","$this","conditionString","attr","toString","conditionResult","checkCondition","str","tokens","match","parserRelations","token","stack","index","pop","compare","isNumeric","error","operator","arr","condition","isValidSelector","$listenTo","result","is","val","off","show","jQueryPlugin","res","oldJqPlugin","fn","conditionize","noConflict","throttle","delay","noTrailing","callback","debounceMode","timeoutID","cancelled","lastExec","clearExistingTimeout","clearTimeout","wrapper","elapsed","Date","now","exec","undefined","setTimeout","cancel","debounce","atBegin","global","win","window","g","Function"],"mappings":";;;;;IAAA,SAAAA,GAEA,IAAAC,EAAA,GAGA,SAAAC,EAAAC,GAGA,GAAAF,EAAAE,GACA,OAAAF,EAAAE,GAAAC,QAGA,IAAAC,EAAAJ,EAAAE,GAAA,CACAG,EAAAH,EACAI,GAAA,EACAH,QAAA,IAUA,OANAJ,EAAAG,GAAAK,KAAAH,EAAAD,QAAAC,EAAAA,EAAAD,QAAAF,GAGAG,EAAAE,GAAA,EAGAF,EAAAD,QAKAF,EAAAO,EAAAT,EAGAE,EAAAQ,EAAAT,EAGAC,EAAAS,EAAA,SAAAP,EAAAQ,EAAAC,GACAX,EAAAY,EAAAV,EAAAQ,IACAG,OAAAC,eAAAZ,EAAAQ,EAAA,CAAAK,YAAA,EAAAC,IAAAL,KAKAX,EAAAiB,EAAA,SAAAf,GACA,oBAAAgB,QAAAA,OAAAC,aACAN,OAAAC,eAAAZ,EAAAgB,OAAAC,YAAA,CAAAC,MAAA,WAEAP,OAAAC,eAAAZ,EAAA,aAAA,CAAAkB,OAAA,KAQApB,EAAAqB,EAAA,SAAAD,EAAAE,GAEA,GADA,EAAAA,IAAAF,EAAApB,EAAAoB,IACA,EAAAE,EAAA,OAAAF,EACA,GAAA,EAAAE,GAAA,iBAAAF,GAAAA,GAAAA,EAAAG,WAAA,OAAAH,EACA,IAAAI,EAAAX,OAAAY,OAAA,MAGA,GAFAzB,EAAAiB,EAAAO,GACAX,OAAAC,eAAAU,EAAA,UAAA,CAAAT,YAAA,EAAAK,MAAAA,IACA,EAAAE,GAAA,iBAAAF,EAAA,IAAA,IAAAM,KAAAN,EAAApB,EAAAS,EAAAe,EAAAE,EAAA,SAAAA,GAAA,OAAAN,EAAAM,IAAAC,KAAA,KAAAD,IACA,OAAAF,GAIAxB,EAAA4B,EAAA,SAAAzB,GACA,IAAAQ,EAAAR,GAAAA,EAAAoB,WACA,WAAA,OAAApB,EAAA,SACA,WAAA,OAAAA,GAEA,OADAH,EAAAS,EAAAE,EAAA,IAAAA,GACAA,GAIAX,EAAAY,EAAA,SAAAiB,EAAAC,GAAA,OAAAjB,OAAAkB,UAAAC,eAAA1B,KAAAuB,EAAAC,IAGA9B,EAAAiC,EAAA,GAIAjC,EAAAA,EAAAkC,EAAA,GAnFA,CAsFA,CAEA,SAAA/B,EAAAD,EAAAF,GAEAG,EAAAD,QAAAF,EAAA,IAKA,SAAAG,EAAAgC,EAAAnC,gBAGAA,EAAAiB,EAAAkB,GACA,IAAAC,EAAApC,EAAA,GACAqC,EAAArC,EAAA,GAEA,SAAAsC,EAAAC,GAAA,OAAAD,EAAA,mBAAApB,QAAA,iBAAAA,OAAAsB,SAAA,SAAAD,GAAA,cAAAA,GAAA,SAAAA,GAAA,OAAAA,GAAA,mBAAArB,QAAAqB,EAAAE,cAAAvB,QAAAqB,IAAArB,OAAAa,UAAA,gBAAAQ,IAAAA,GAEA,SAAAG,EAAAb,EAAAc,GAAA,IAAAC,EAAAC,EAAAhC,OAAAgC,KAAAhB,GAAA,OAAAhB,OAAAiC,wBAAAF,EAAA/B,OAAAiC,sBAAAjB,GAAAc,IAAAC,EAAAA,EAAAG,OAAA,SAAAC,GAAA,OAAAnC,OAAAoC,yBAAApB,EAAAmB,GAAAjC,cAAA8B,EAAAK,KAAAC,MAAAN,EAAAD,IAAAC,EAEA,SAAAO,EAAAC,GAAA,IAAA,IAAAjD,EAAA,EAAAA,EAAAkD,UAAAC,OAAAnD,IAAA,CAAA,IAAAoD,EAAA,MAAAF,UAAAlD,GAAAkD,UAAAlD,GAAA,GAAAA,EAAA,EAAAsC,EAAA7B,OAAA2C,IAAA,GAAAC,QAAA,SAAA/B,GAEA,IAAAa,EAAAb,EAAAN,EAAAmB,EAFAc,EAEAjC,EAFAoC,EAEA9B,EAFAA,GAEAA,KAAAa,EAAA1B,OAAAC,eAAAyB,EAAAb,EAAA,CAAAN,MAAAA,EAAAL,YAAA,EAAA2C,cAAA,EAAAC,UAAA,IAAApB,EAAAb,GAAAN,IAFAP,OAAA+C,0BAAA/C,OAAAgD,iBAAAR,EAAAxC,OAAA+C,0BAAAJ,IAAAd,EAAA7B,OAAA2C,IAAAC,QAAA,SAAA/B,GAAAb,OAAAC,eAAAuC,EAAA3B,EAAAb,OAAAoC,yBAAAO,EAAA9B,MAAA,OAAA2B,EAMA,SAAAS,EAAAT,EAAAU,GAAA,IAAA,IAAA3D,EAAA,EAAAA,EAAA2D,EAAAR,OAAAnD,IAAA,CAAA,IAAA4D,EAAAD,EAAA3D,GAAA4D,EAAAjD,WAAAiD,EAAAjD,aAAA,EAAAiD,EAAAN,cAAA,EAAA,UAAAM,IAAAA,EAAAL,UAAA,GAAA9C,OAAAC,eAAAuC,EAAAW,EAAAtC,IAAAsC,IAMA,IAAAC,EAAA5B,EAAA,OAAA6B,OACAC,EAAA,EAIA,SAAAC,EAAAC,GACAC,KAAAC,MAAAF,EAGAD,EAAArC,UAAAyC,MAAA,SAAAH,GACA,IAAA,IAqCAjE,EArCAa,EAAAoD,EAAAd,OAAAlC,EAAAiD,KAAAC,MAAArC,EAAA,GAAAuC,EAAA,GAAAC,EAAA,EAAAA,EAAAzD,GAAA,CAGA,OAFAb,EAAAiE,EAAAK,MAGA,IAAA,IACAD,EAAAE,QAAAvE,GACA,MAEA,IAAA,IACA,KAAAqE,EAAAlB,QAAA,CAEA,GAAA,OADAnD,EAAAqE,EAAAG,SACA,MACA1C,EAAAgB,KAAA9C,GAGA,GAAA,MAAAA,EAAA,MAAA,IAAAyE,MAAA,2BACA,MAEA,QACA,GAAAxD,EAAAW,eAAA5B,GAAA,CACA,KAAAqE,EAAAlB,QAAA,CACA,IAAAuB,EAAAL,EAAA,GACA,GAAA,MAAAK,EAAA,MACA,IAAAlD,EAAAP,EAAAjB,GACAQ,EAAAgB,EAAAmD,WACAvE,EAAAa,EAAAyD,GAAAC,WACA,GAAAvE,EAAAI,GAAAA,IAAAJ,GAAA,UAAAoB,EAAAoD,cAAA,MACA9C,EAAAgB,KAAAuB,EAAAG,SAGAH,EAAAE,QAAAvE,QACA8B,EAAAgB,KAAA9C,IAKA,KAAAqE,EAAAlB,QAAA,CAEA,GAAA,OADAnD,EAAAqE,EAAAG,SACA,MAAA,IAAAC,MAAA,2BACA3C,EAAAgB,KAAA9C,GAGA,OAAA8B,GAmSA,SAAA+C,EAAAC,EAAA,IAGA,YAAA,oBAAAC,YAAA,YAAA7C,EAAA6C,cAAAD,aAAAC,YAAAD,GAAA,WAAA5C,EAAA4C,IAAA,OAAAA,GAAA,IAAAA,EAAAE,UAAA,iBAAAF,EAAAG,YACAH,EAAA,CAAAA,IASA,IANA,IAIAI,EAJAC,EAPA,EAQAC,EAAAC,MAAA1D,UAAA2D,MAAApF,KAAAgD,UAAA,GACAqC,EAAAT,EAAA3B,OACAqC,EAAA,EAGAA,EAAAD,EAAAC,IAWA,GAVA,WAAAtD,EAAAiD,SAAA,IAAAA,EACAL,EAAAU,GAAAC,eAEAX,EAAAU,GAAAC,aAAA,IAAAA,EAAAX,EAAAU,GAAAL,IAEAL,EAAAU,GAAAC,eAEAP,EAAAJ,EAAAU,GAAAC,aAAAN,GAAApC,MAAA+B,EAAAU,GAAAC,aAAAL,SAGA,IAAAF,EACA,OAAAA,EAIA,OAAAJ,EA3TA,IAAAY,EAAA,CACAf,WAAA,EACAC,cAAA,QAEAe,EAAA,CACAhB,WAAA,EACAC,cAAA,QAGAgB,EAAA,CACAC,KAAA,CACAC,KAAA,SAAAzB,EAAA0B,GACA,OAAA1B,GAAA0B,GAEAC,KAAAL,GAEAM,KAAA,CACAH,KAAA,SAAAzB,EAAA0B,GACA,OAAA1B,GAAA0B,GAEAC,KAAAL,GAEAO,MAAA,CACAJ,KAAA,SAAAzB,EAAA0B,GACA,OAAA1B,IAAA0B,GAEAC,KAAAL,GAEAQ,MAAA,CACAL,KAAA,SAAAzB,EAAA0B,GACA,OAAA1B,IAAA0B,GAEAC,KAAAL,GAEAS,KAAA,CACAN,KAAA,SAAAzB,EAAA0B,GACA,OAAA,IAAA1B,EAAAgC,QAAAN,IAEAC,KAAAL,GAEAW,KAAA,CACAR,KAAA,SAAAzB,EAAA0B,GACA,OAAA1B,GAAA0B,GAEAC,KAAAN,GAEAa,KAAA,CACAT,KAAA,SAAAzB,EAAA0B,GACA,OAAAA,GAAA1B,GAEA2B,KAAAN,GAEAc,IAAA,CACAV,KAAA,SAAAzB,EAAA0B,GACA,OAAA1B,EAAA0B,GAEAC,KAAAN,GAEAe,IAAA,CACAX,KAAA,SAAAzB,EAAA0B,GACA,OAAAA,EAAA1B,GAEA2B,KAAAN,GAEAgB,KAAA,CACAZ,KAAA,SAAAzB,EAAA0B,GACA,OAAA1B,GAAA0B,GAEAC,KAAA,CACArB,WAAA,EACAC,cAAA,UAGA+B,KAAA,CACAb,KAAA,SAAAzB,EAAA0B,GACA,OAAA1B,GAAA0B,GAEAC,KAAA,CACArB,WAAA,EACAC,cAAA,WAKAa,EAAA,WACA,SAAAA,EAAAmB,EAAAC,IAtJA,SAAAC,EAAAC,GAAA,KAAAD,aAAAC,GAAA,MAAA,IAAAC,UAAA,qCAuJAC,CAAA/C,KAAAuB,GAEA,IAAAyB,EAAAhD,KACAgD,EAAAnD,WAAAA,IACAmD,EAAAC,WAAAtD,EAAA+C,GACAM,EAAAE,SAAA,CACAC,SAAA,cACAC,cAAA,YACAC,cAAA,IAEAC,aAAA,KAGAC,OAAA,KAEAC,UAAA,KAEAC,QAAA,MAGAT,EAAA/B,QAAAnC,EAAAA,EAAA,GAAAkE,EAAAE,UAAAP,GACAK,EAAAU,SAAAnH,OAAAuB,EAAA,SAAAvB,CAAAyG,EAAA/B,QAAAoC,cAAAL,EAAAU,UACAV,EAAAW,OAzKA,IAAAd,EAAAe,EAAAC,EAuVA,OAvVAhB,EA4KAtB,GA5KAqC,EA4KA,CAAA,CACAxG,IAAA,OACAN,MAAA,WACA,IAAAkG,EAAAhD,KAEAgD,EAAA/B,QAAAqC,aACAN,EAAA/B,QAAAqC,aAAAtH,KAAAgH,EAAAA,EAAAC,WAAAa,KAAAd,EAAA/B,QAAAkC,WAAA,GAEAH,EAAAC,WAAAa,KAAAd,EAAA/B,QAAAkC,UAAAY,OAIAf,EAAAC,WAAAe,GAAA,sBAAA,0BAAA,WACAhB,EAAAU,SAAAV,EAAAC,WAAAa,KAAAd,EAAA/B,QAAAkC,aAEAH,EAAAU,SAAAV,EAAAC,WAAAa,KAAAd,EAAA/B,QAAAkC,WAEAH,EAAA/B,QAAAsC,QACAP,EAAA/B,QAAAsC,OAAAvH,KAAAgH,KAGA,CACA5F,IAAA,WACAN,MAAA,SAAAmH,GACA,IAAAjB,EAAAhD,KACAiE,EAAAC,KAAA,WACA,IAAAC,EAAAxE,EAAAK,MACAoE,EAAAD,EAAAE,KAAArB,EAAA/B,QAAAmC,eAAAkB,WACAC,EAAAvB,EAAAwB,eAAAJ,GAEApB,EAAA/B,QAAAqC,aACAN,EAAA/B,QAAAqC,aAAAtH,KAAAgH,EAAAmB,EAAAI,GAEAJ,EAAAI,EAAA,OAAA,UAGAvB,EAAA/B,QAAAwC,SACAT,EAAA/B,QAAAwC,QAAAU,EAAAI,OAKA,CACAnH,IAAA,iBACAN,MAAA,SAAA2H,GACA,IACAC,EAAAD,EAAAE,MAAA,WAEAC,EAAA,GACArI,OAAAgC,KAAAmD,GAAAvC,QAAA,SAAAmC,GACAsD,EAAAtD,GAAAI,EAAAJ,GAAAQ,OAOA,IALA,IASAD,EACA1B,EAJA0E,EALAH,EADA,IAAA5E,EAAA8E,GACA1E,MAAAwE,GACAI,EAAA,GACAC,EAAA,EAEAA,EAAAL,EAAAzF,QAAA,EACA4F,EAAAH,EAAAK,QAEArD,GACAG,EAAAiD,EAAAE,MACA7E,EAAA2E,EAAAE,MACAF,EAAAlG,KAAA,CAAAuB,EAAA0E,EAAAhD,KAEAiD,EAAAlG,KAAAiG,GAIA,OAxBA7E,KAwBAiF,QAAAH,EAAA7F,QAAA6F,EAAA,MAGA,CACA1H,IAAA,kBACAN,MAAA,SAAAqG,GACA,GAAA,iBAAAA,GAAAxD,EAAAuF,UAAA/B,IAAA,UAAAA,GAAA,SAAAA,GAAA,GAAAA,GACA,GAAAA,EAEA,OAAA,EAGA,IACAxD,EAAAwD,GACA,MAAAgC,GACA,OAAA,EAGA,OAAA,IAGA,CACA/H,IAAA,YACAN,MAAA,SAAAqD,EAAAiF,EAAAvD,GACA,OAAAuD,KAAA1D,IACA,UAAAvB,EACAA,GAAA,EACA,SAAAA,IACAA,GAAA,GAGA,UAAA0B,EACAA,GAAA,EACA,SAAAA,IACAA,GAAA,GAGAH,EAAA0D,GAAAxD,KAAAzB,EAAA0B,MAMA,CACAzE,IAAA,UACAN,MAAA,SAAAuI,GACA,IAAArC,EAAAhD,KAEA,GAAAqF,aAAAlE,MACA,OAAA,IAAAkE,EAAApG,QACAoG,EAAA,GAAArC,EAAAiC,QAAAI,EAAA,IAEAA,EAAA,aAAAlE,QACAkE,EAAA,GAAArC,EAAAiC,QAAAI,EAAA,KAGArC,EAAAsC,UAAAD,EAAA,GAAAA,EAAA,GAAAA,EAAA,KAGA,IAAAA,EAAApG,QAAA+D,EAAAiC,QAAAI,EAAA,IAGA,GAAArC,EAAAuC,gBAAAF,GAAA,CACA,IAAAG,EAAA7F,EAAA0F,GACAI,GAAA,EAUA,OARAD,EAAAE,GAAA,mBACAD,EAAAD,EAAAE,GAAA,YACAF,EAAAE,GAAA,gBACAD,EAAAD,EAAA/G,OAAA,YAAAkH,MACAH,EAAAE,GAAA,6BACAD,EAAAD,EAAAG,OAGAF,EAGA,OAAAJ,IAEA,CACAjI,IAAA,UACAN,MAAA,WACA,IAAAkG,EAAAhD,KAEAgD,EAAA/B,QAAAuC,WACAR,EAAA/B,QAAAuC,UAAAxH,KAAAgH,GAIAA,EAAAC,WAAA2C,IAAA,uBAEA5C,EAAA/B,QAAAqC,aACAN,EAAA/B,QAAAqC,aAAAtH,KAAAgH,EAAAA,EAAAC,WAAAa,KAAAd,EAAA/B,QAAAkC,WAAA,GAEAH,EAAAC,WAAAa,KAAAd,EAAA/B,QAAAkC,UAAA0C,cAIA7C,EAAAC,WAAA1B,kBAnVA/B,EAAAqD,EAAApF,UAAAmG,GAAAC,GAAArE,EAAAqD,EAAAgB,GAuVAtC,EAtMA,GA0OAZ,EAAAxC,YAAAoD,EACAxD,EAAA,OAAAwD,aAAAA,EAEA,SAAAuE,IACA,IAAA5E,EAAAlC,WAAA,GACAmC,MAAA1D,UAAA4C,QAAArE,KAAAkF,EAAAlB,MACA,IAAA+F,EAAApF,EAAA9B,MAAAd,EAAA,OAAAmD,GACA,MAAA,WAAAlD,EAAA+H,GAAAA,EAAA/F,KAGA8F,EAAA3H,YAAAwC,EAAAxC,YAEA,IAAA6H,EAAArG,EAAAsG,GAAAC,aACAvG,EAAAsG,GAAAC,aAAAJ,EAEAnG,EAAAsG,GAAAC,aAAAC,WAAA,WAEA,OADAxG,EAAAsG,GAAAC,aAAAF,EACAhG,OAKA,SAAAnE,EAAAgC,EAAAnC,gBAwBA,SAAA0K,EAAAC,EAAAC,EAAAC,EAAAC,GAMA,IAAAC,EACAC,GAAA,EAEAC,EAAA,EAEA,SAAAC,IACAH,GACAI,aAAAJ,GAuBA,SAAAK,IACA,IAAA9D,EAAAhD,KACA+G,EAAAC,KAAAC,MAAAN,EACAzF,EAAAlC,UAOA,SAAAkI,IACAP,EAAAK,KAAAC,MACAV,EAAA1H,MAAAmE,EAAA9B,GAPAwF,IAmBAF,IAAAC,GAKAS,IAGAN,SAEAO,IAAAX,GAAAH,EAAAU,EAKAG,KACA,IAAAZ,IAYAG,EAAAW,WAAAZ,EAhCA,WACAC,OAAAU,GA+BAD,OAAAC,IAAAX,EAAAH,EAAAU,EAAAV,KAMA,MAtEA,kBAAAC,IACAE,EAAAD,EACAA,EAAAD,EACAA,OAAAa,GAiEAL,EAAAO,OA1EA,WACAT,IACAF,GAAA,GA0EAI,EAoBA,SAAAQ,EAAAjB,EAAAkB,EAAAhB,GACA,YAAAY,IAAAZ,EAAAH,EAAAC,EAAAkB,GAAA,GAAAnB,EAAAC,EAAAE,GAAA,IAAAgB,GAxIA7L,EAAAiB,EAAAkB,GACAnC,EAAAS,EAAA0B,EAAA,WAAA,WAAA,OAAAuI,IACA1K,EAAAS,EAAA0B,EAAA,WAAA,WAAA,OAAAyJ,KA6IA,SAAAzL,EAAAD,EAAAF,IAEA,SAAA8L,GAAA,IAGAC,EADA,oBAAAC,OACAA,YACA,IAAAF,EACAA,EACA,oBAAAxE,KACAA,KAEA,GAGAnH,EAAAD,QAAA6L,IACAzL,KAAAgE,KAAAtE,EAAA,KAIA,SAAAG,EAAAD,GAEA,SAAAoC,EAAAC,GAAA,OAAAD,EAAA,mBAAApB,QAAA,iBAAAA,OAAAsB,SAAA,SAAAD,GAAA,cAAAA,GAAA,SAAAA,GAAA,OAAAA,GAAA,mBAAArB,QAAAqB,EAAAE,cAAAvB,QAAAqB,IAAArB,OAAAa,UAAA,gBAAAQ,IAAAA,GAEA,IAEA0J,EAAA,WACA,OAAA3H,KADA,GAIA,IAEA2H,EAAAA,GAAA,IAAAC,SAAA,cAAA,GACA,MAAA7H,GAEA,YAAA,oBAAA2H,OAAA,YAAA1J,EAAA0J,WAAAC,EAAAD,QAMA7L,EAAAD,QAAA+L","file":"conditionize.min.js","sourcesContent":["/*!\n * Name : Conditionize - jQuery conditions for forms\n * Version : 1.0.5\n * Author : nK <https://nkdev.info>\n * GitHub : https://github.com/nk-o/conditionize\n */\n/******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// define __esModule on exports\n/******/ \t__webpack_require__.r = function(exports) {\n/******/ \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n/******/ \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n/******/ \t\t}\n/******/ \t\tObject.defineProperty(exports, '__esModule', { value: true });\n/******/ \t};\n/******/\n/******/ \t// create a fake namespace object\n/******/ \t// mode & 1: value is a module id, require it\n/******/ \t// mode & 2: merge all properties of value into the ns\n/******/ \t// mode & 4: return value when already ns object\n/******/ \t// mode & 8|1: behave like require\n/******/ \t__webpack_require__.t = function(value, mode) {\n/******/ \t\tif(mode & 1) value = __webpack_require__(value);\n/******/ \t\tif(mode & 8) return value;\n/******/ \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n/******/ \t\tvar ns = Object.create(null);\n/******/ \t\t__webpack_require__.r(ns);\n/******/ \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n/******/ \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n/******/ \t\treturn ns;\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = __webpack_require__(1);\n\n\n/***/ }),\n/* 1 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var throttle_debounce__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);\n/* harmony import */ var global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);\n/* harmony import */ var global__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(global__WEBPACK_IMPORTED_MODULE_1__);\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n\n\nvar $ = global__WEBPACK_IMPORTED_MODULE_1__[\"window\"].jQuery;\nvar instanceID = 0; // https://gist.github.com/aaditmshah/6683499\n\n/* eslint-disable */\n\nfunction Parser(e) {\n this.table = e;\n}\n\nParser.prototype.parse = function (e) {\n for (var r = e.length, t = this.table, s = [], a = [], h = 0; r > h;) {\n var i = e[h++];\n\n switch (i) {\n case \"(\":\n a.unshift(i);\n break;\n\n case \")\":\n for (; a.length;) {\n var i = a.shift();\n if (\"(\" === i) break;\n s.push(i);\n }\n\n if (\"(\" !== i) throw new Error(\"Mismatched parentheses.\");\n break;\n\n default:\n if (t.hasOwnProperty(i)) {\n for (; a.length;) {\n var f = a[0];\n if (\"(\" === f) break;\n var n = t[i],\n o = n.precedence,\n c = t[f].precedence;\n if (o > c || o === c && \"right\" === n.associativity) break;\n s.push(a.shift());\n }\n\n a.unshift(i);\n } else s.push(i);\n\n }\n }\n\n for (; a.length;) {\n var i = a.shift();\n if (\"(\" === i) throw new Error(\"Mismatched parentheses.\");\n s.push(i);\n }\n\n return s;\n};\n/* eslint-enable */\n\n\nvar sortRelational = {\n precedence: 3,\n associativity: 'left'\n};\nvar sortEquality = {\n precedence: 2,\n associativity: 'left'\n}; // available relations\n\nvar relations = {\n '==': {\n eval: function _eval(a, b) {\n return a == b; // eslint-disable-line\n },\n sort: sortEquality\n },\n '!=': {\n eval: function _eval(a, b) {\n return a != b; // eslint-disable-line\n },\n sort: sortEquality\n },\n '===': {\n eval: function _eval(a, b) {\n return a === b;\n },\n sort: sortEquality\n },\n '!==': {\n eval: function _eval(a, b) {\n return a !== b;\n },\n sort: sortEquality\n },\n '*=': {\n eval: function _eval(a, b) {\n return a.indexOf(b) !== -1;\n },\n sort: sortEquality\n },\n '<=': {\n eval: function _eval(a, b) {\n return a <= b;\n },\n sort: sortRelational\n },\n '>=': {\n eval: function _eval(a, b) {\n return a >= b;\n },\n sort: sortRelational\n },\n '<': {\n eval: function _eval(a, b) {\n return a < b;\n },\n sort: sortRelational\n },\n '>': {\n eval: function _eval(a, b) {\n return a > b;\n },\n sort: sortRelational\n },\n '&&': {\n eval: function _eval(a, b) {\n return a && b;\n },\n sort: {\n precedence: 1,\n associativity: 'right'\n }\n },\n '||': {\n eval: function _eval(a, b) {\n return a || b;\n },\n sort: {\n precedence: 0,\n associativity: 'right'\n }\n }\n}; // Conditionize class\n\nvar Conditionize = /*#__PURE__*/function () {\n function Conditionize(container, userOptions) {\n _classCallCheck(this, Conditionize);\n\n var self = this;\n self.instanceID = instanceID++;\n self.$container = $(container);\n self.defaults = {\n selector: '[data-cond]',\n conditionAttr: 'data-cond',\n checkDebounce: 150,\n // custom toggle function\n customToggle: null,\n // function( $item, show ) { $item[ show ? 'show' : 'hide' ](); }\n // events\n onInit: null,\n // function() {}\n onDestroy: null,\n // function() {}\n onCheck: null // function( $item, show ) {}\n\n };\n self.options = _objectSpread(_objectSpread({}, self.defaults), userOptions);\n self.runCheck = Object(throttle_debounce__WEBPACK_IMPORTED_MODULE_0__[\"debounce\"])(self.options.checkDebounce, self.runCheck);\n self.init();\n }\n\n _createClass(Conditionize, [{\n key: \"init\",\n value: function init() {\n var self = this; // hide all controls by default\n\n if (self.options.customToggle) {\n self.options.customToggle.call(self, self.$container.find(self.options.selector), false);\n } else {\n self.$container.find(self.options.selector).hide();\n } // event listener\n\n\n self.$container.on('change.conditionize', 'input, select, textarea', function () {\n self.runCheck(self.$container.find(self.options.selector));\n });\n self.runCheck(self.$container.find(self.options.selector)); // call onInit event\n\n if (self.options.onInit) {\n self.options.onInit.call(self);\n }\n }\n }, {\n key: \"runCheck\",\n value: function runCheck($items) {\n var self = this;\n $items.each(function () {\n var $this = $(this);\n var conditionString = $this.attr(self.options.conditionAttr).toString();\n var conditionResult = self.checkCondition(conditionString);\n\n if (self.options.customToggle) {\n self.options.customToggle.call(self, $this, conditionResult);\n } else {\n $this[conditionResult ? 'show' : 'hide']();\n }\n\n if (self.options.onCheck) {\n self.options.onCheck($this, conditionResult);\n }\n });\n } // parse condition\n\n }, {\n key: \"checkCondition\",\n value: function checkCondition(str) {\n var self = this;\n var tokens = str.match(/[^\\s]+/g);\n var token;\n var parserRelations = {};\n Object.keys(relations).forEach(function (k) {\n parserRelations[k] = relations[k].sort;\n });\n var parser = new Parser(parserRelations);\n tokens = parser.parse(tokens);\n var stack = [];\n var index = 0;\n\n while (index < tokens.length) {\n token = tokens[index++];\n\n if (token in relations) {\n var b = stack.pop();\n var a = stack.pop();\n stack.push([a, token, b]);\n } else {\n stack.push(token);\n }\n }\n\n return self.compare(stack.length && stack[0]);\n } // check if is valid jquery selector\n\n }, {\n key: \"isValidSelector\",\n value: function isValidSelector(selector) {\n if (typeof selector !== 'string' || $.isNumeric(selector) || selector === 'false' || selector === 'true' || selector == false // eslint-disable-line\n || selector == true // eslint-disable-line\n ) {\n return false;\n }\n\n try {\n $(selector);\n } catch (error) {\n return false;\n }\n\n return true;\n } // eval\n\n }, {\n key: \"condition\",\n value: function condition(a, operator, b) {\n if (operator in relations) {\n if (a === 'false') {\n a = false;\n } else if (a === 'true') {\n a = true;\n }\n\n if (b === 'false') {\n b = false;\n } else if (b === 'true') {\n b = true;\n }\n\n return relations[operator].eval(a, b);\n }\n\n return false;\n } // compare items\n\n }, {\n key: \"compare\",\n value: function compare(arr) {\n var self = this;\n\n if (arr instanceof Array) {\n if (arr.length === 3) {\n arr[0] = self.compare(arr[0]);\n\n if (arr[2] instanceof Array) {\n arr[2] = self.compare(arr[2]);\n }\n\n return self.condition(arr[0], arr[1], arr[2]);\n }\n\n return arr.length === 1 ? self.compare(arr[0]) : false;\n }\n\n if (self.isValidSelector(arr)) {\n var $listenTo = $(arr);\n var result = false;\n\n if ($listenTo.is('[type=checkbox]')) {\n result = $listenTo.is(':checked');\n } else if ($listenTo.is('[type=radio]')) {\n result = $listenTo.filter(':checked').val();\n } else if ($listenTo.is('textarea, select, input')) {\n result = $listenTo.val();\n }\n\n return result;\n }\n\n return arr;\n }\n }, {\n key: \"destroy\",\n value: function destroy() {\n var self = this; // call onDestroy event\n\n if (self.options.onDestroy) {\n self.options.onDestroy.call(self);\n } // disable event.\n\n\n self.$container.off('change.conditionize'); // show all controls\n\n if (self.options.customToggle) {\n self.options.customToggle.call(self, self.$container.find(self.options.selector), true);\n } else {\n self.$container.find(self.options.selector).show();\n } // delete Conditionize instance from container\n\n\n delete self.$container.Conditionize;\n }\n }]);\n\n return Conditionize;\n}(); // global definition\n\n\nvar plugin = function plugin(items) {\n // check for dom element\n // thanks: http://stackoverflow.com/questions/384286/javascript-isdom-how-do-you-check-if-a-javascript-object-is-a-dom-object\n if ((typeof HTMLElement === \"undefined\" ? \"undefined\" : _typeof(HTMLElement)) === 'object' ? items instanceof HTMLElement : items && _typeof(items) === 'object' && items !== null && items.nodeType === 1 && typeof items.nodeName === 'string') {\n items = [items];\n }\n\n var options = arguments[1];\n var args = Array.prototype.slice.call(arguments, 2);\n var len = items.length;\n var k = 0;\n var ret;\n\n for (k; k < len; k++) {\n if (_typeof(options) === 'object' || typeof options === 'undefined') {\n if (!items[k].Conditionize) {\n // eslint-disable-next-line new-cap\n items[k].Conditionize = new Conditionize(items[k], options);\n }\n } else if (items[k].Conditionize) {\n // eslint-disable-next-line prefer-spread\n ret = items[k].Conditionize[options].apply(items[k].Conditionize, args);\n }\n\n if (typeof ret !== 'undefined') {\n return ret;\n }\n }\n\n return items;\n};\n\nplugin.constructor = Conditionize;\nglobal__WEBPACK_IMPORTED_MODULE_1__[\"window\"].Conditionize = Conditionize;\n\nvar jQueryPlugin = function jQueryPlugin() {\n var args = arguments || [];\n Array.prototype.unshift.call(args, this);\n var res = plugin.apply(global__WEBPACK_IMPORTED_MODULE_1__[\"window\"], args);\n return _typeof(res) !== 'object' ? res : this;\n};\n\njQueryPlugin.constructor = plugin.constructor; // no conflict\n\nvar oldJqPlugin = $.fn.conditionize;\n$.fn.conditionize = jQueryPlugin;\n\n$.fn.conditionize.noConflict = function () {\n $.fn.conditionize = oldJqPlugin;\n return this;\n};\n\n/***/ }),\n/* 2 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"throttle\", function() { return throttle; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"debounce\", function() { return debounce; });\n/* eslint-disable no-undefined,no-param-reassign,no-shadow */\n\n/**\n * Throttle execution of a function. Especially useful for rate limiting\n * execution of handlers on events like resize and scroll.\n *\n * @param {Number} delay A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.\n * @param {Boolean} [noTrailing] Optional, defaults to false. If noTrailing is true, callback will only execute every `delay` milliseconds while the\n * throttled-function is being called. If noTrailing is false or unspecified, callback will be executed one final time\n * after the last throttled-function call. (After the throttled-function has not been called for `delay` milliseconds,\n * the internal counter is reset)\n * @param {Function} callback A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,\n * to `callback` when the throttled-function is executed.\n * @param {Boolean} [debounceMode] If `debounceMode` is true (at begin), schedule `clear` to execute after `delay` ms. If `debounceMode` is false (at end),\n * schedule `callback` to execute after `delay` ms.\n *\n * @return {Function} A new, throttled, function.\n */\nfunction throttle(delay, noTrailing, callback, debounceMode) {\n /*\n * After wrapper has stopped being called, this timeout ensures that\n * `callback` is executed at the proper times in `throttle` and `end`\n * debounce modes.\n */\n var timeoutID;\n var cancelled = false; // Keep track of the last time `callback` was executed.\n\n var lastExec = 0; // Function to clear existing timeout\n\n function clearExistingTimeout() {\n if (timeoutID) {\n clearTimeout(timeoutID);\n }\n } // Function to cancel next exec\n\n\n function cancel() {\n clearExistingTimeout();\n cancelled = true;\n } // `noTrailing` defaults to falsy.\n\n\n if (typeof noTrailing !== 'boolean') {\n debounceMode = callback;\n callback = noTrailing;\n noTrailing = undefined;\n }\n /*\n * The `wrapper` function encapsulates all of the throttling / debouncing\n * functionality and when executed will limit the rate at which `callback`\n * is executed.\n */\n\n\n function wrapper() {\n var self = this;\n var elapsed = Date.now() - lastExec;\n var args = arguments;\n\n if (cancelled) {\n return;\n } // Execute `callback` and update the `lastExec` timestamp.\n\n\n function exec() {\n lastExec = Date.now();\n callback.apply(self, args);\n }\n /*\n * If `debounceMode` is true (at begin) this is used to clear the flag\n * to allow future `callback` executions.\n */\n\n\n function clear() {\n timeoutID = undefined;\n }\n\n if (debounceMode && !timeoutID) {\n /*\n * Since `wrapper` is being called for the first time and\n * `debounceMode` is true (at begin), execute `callback`.\n */\n exec();\n }\n\n clearExistingTimeout();\n\n if (debounceMode === undefined && elapsed > delay) {\n /*\n * In throttle mode, if `delay` time has been exceeded, execute\n * `callback`.\n */\n exec();\n } else if (noTrailing !== true) {\n /*\n * In trailing throttle mode, since `delay` time has not been\n * exceeded, schedule `callback` to execute `delay` ms after most\n * recent execution.\n *\n * If `debounceMode` is true (at begin), schedule `clear` to execute\n * after `delay` ms.\n *\n * If `debounceMode` is false (at end), schedule `callback` to\n * execute after `delay` ms.\n */\n timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n }\n }\n\n wrapper.cancel = cancel; // Return the wrapper function.\n\n return wrapper;\n}\n/* eslint-disable no-undefined */\n\n/**\n * Debounce execution of a function. Debouncing, unlike throttling,\n * guarantees that a function is only executed a single time, either at the\n * very beginning of a series of calls, or at the very end.\n *\n * @param {Number} delay A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.\n * @param {Boolean} [atBegin] Optional, defaults to false. If atBegin is false or unspecified, callback will only be executed `delay` milliseconds\n * after the last debounced-function call. If atBegin is true, callback will be executed only at the first debounced-function call.\n * (After the throttled-function has not been called for `delay` milliseconds, the internal counter is reset).\n * @param {Function} callback A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,\n * to `callback` when the debounced-function is executed.\n *\n * @return {Function} A new, debounced function.\n */\n\n\nfunction debounce(delay, atBegin, callback) {\n return callback === undefined ? throttle(delay, atBegin, false) : throttle(delay, callback, atBegin !== false);\n}\n\n\n\n/***/ }),\n/* 3 */\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(global) {var win;\n\nif (typeof window !== \"undefined\") {\n win = window;\n} else if (typeof global !== \"undefined\") {\n win = global;\n} else if (typeof self !== \"undefined\") {\n win = self;\n} else {\n win = {};\n}\n\nmodule.exports = win;\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(4)))\n\n/***/ }),\n/* 4 */\n/***/ (function(module, exports) {\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nvar g; // This works in non-strict mode\n\ng = function () {\n return this;\n}();\n\ntry {\n // This works if eval is allowed (see CSP)\n g = g || new Function(\"return this\")();\n} catch (e) {\n // This works if the window reference is available\n if ((typeof window === \"undefined\" ? \"undefined\" : _typeof(window)) === \"object\") g = window;\n} // g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\n\nmodule.exports = g;\n\n/***/ })\n/******/ ]);"]}
class-visual-portfolio.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Visual Portfolio, Posts & Image Gallery
4
  * Description: Modern gallery and portfolio plugin with advanced layouts editor. Clean and powerful gallery styles with enormous settings in the Gutenberg block.
5
- * Version: 2.10.5
6
  * Author: nK
7
  * Author URI: https://nkdev.info
8
  * License: GPLv2 or later
@@ -39,6 +39,13 @@ class Visual_Portfolio {
39
  return self::$instance;
40
  }
41
 
 
 
 
 
 
 
 
42
  /**
43
  * Basename of plugin main file
44
  *
@@ -85,6 +92,7 @@ class Visual_Portfolio {
85
  * Init options
86
  */
87
  public function init() {
 
88
  $this->plugin_basename = plugin_basename( __FILE__ );
89
  $this->plugin_path = plugin_dir_path( __FILE__ );
90
  $this->plugin_url = plugin_dir_url( __FILE__ );
@@ -112,6 +120,10 @@ class Visual_Portfolio {
112
  * Deactivation Hook
113
  */
114
  public function deactivation_hook() {
 
 
 
 
115
  flush_rewrite_rules();
116
  }
117
 
2
  /**
3
  * Plugin Name: Visual Portfolio, Posts & Image Gallery
4
  * Description: Modern gallery and portfolio plugin with advanced layouts editor. Clean and powerful gallery styles with enormous settings in the Gutenberg block.
5
+ * Version: 2.11.0
6
  * Author: nK
7
  * Author URI: https://nkdev.info
8
  * License: GPLv2 or later
39
  return self::$instance;
40
  }
41
 
42
+ /**
43
+ * Name of the plugin
44
+ *
45
+ * @var $plugin_name
46
+ */
47
+ public $plugin_name;
48
+
49
  /**
50
  * Basename of plugin main file
51
  *
92
  * Init options
93
  */
94
  public function init() {
95
+ $this->plugin_name = esc_html__( 'Visual Portfolio', 'visual-portfolio' );
96
  $this->plugin_basename = plugin_basename( __FILE__ );
97
  $this->plugin_path = plugin_dir_path( __FILE__ );
98
  $this->plugin_url = plugin_dir_url( __FILE__ );
120
  * Deactivation Hook
121
  */
122
  public function deactivation_hook() {
123
+ // Sometimes users can't access portfolio items.
124
+ // As a workaround user may deactivate and activate the plugin to resolve this problem.
125
+ update_option( 'visual_portfolio_updated_caps', '' );
126
+
127
  flush_rewrite_rules();
128
  }
129
 
classes/3rd/plugins/class-elementor-widget.php CHANGED
@@ -33,9 +33,9 @@ class Visual_Portfolio_3rd_Elementor_Widget extends \Elementor\Widget_Base {
33
 
34
  if ( $this->is_preview_mode() ) {
35
  wp_register_script( 'iframe-resizer', visual_portfolio()->plugin_url . 'assets/vendor/iframe-resizer/js/iframeResizer.min.js', '', '4.2.11', true );
36
- wp_register_script( 'visual-portfolio-elementor', visual_portfolio()->plugin_url . 'assets/admin/js/elementor.min.js', array( 'elementor-frontend', 'iframe-resizer', 'jquery' ), '2.10.5', true );
37
 
38
- wp_register_style( 'visual-portfolio-elementor', visual_portfolio()->plugin_url . 'assets/admin/css/elementor.min.css', array(), '2.10.5' );
39
  wp_style_add_data( 'visual-portfolio-elementor', 'rtl', 'replace' );
40
  wp_style_add_data( 'visual-portfolio-elementor', 'suffix', '.min' );
41
  }
@@ -65,7 +65,7 @@ class Visual_Portfolio_3rd_Elementor_Widget extends \Elementor\Widget_Base {
65
  * @return string Widget title.
66
  */
67
  public function get_title() {
68
- return __( 'Visual Portfolio', 'visual-portfolio' );
69
  }
70
 
71
  /**
33
 
34
  if ( $this->is_preview_mode() ) {
35
  wp_register_script( 'iframe-resizer', visual_portfolio()->plugin_url . 'assets/vendor/iframe-resizer/js/iframeResizer.min.js', '', '4.2.11', true );
36
+ wp_register_script( 'visual-portfolio-elementor', visual_portfolio()->plugin_url . 'assets/admin/js/elementor.min.js', array( 'elementor-frontend', 'iframe-resizer', 'jquery' ), '2.11.0', true );
37
 
38
+ wp_register_style( 'visual-portfolio-elementor', visual_portfolio()->plugin_url . 'assets/admin/css/elementor.min.css', array(), '2.11.0' );
39
  wp_style_add_data( 'visual-portfolio-elementor', 'rtl', 'replace' );
40
  wp_style_add_data( 'visual-portfolio-elementor', 'suffix', '.min' );
41
  }
65
  * @return string Widget title.
66
  */
67
  public function get_title() {
68
+ return visual_portfolio()->plugin_name;
69
  }
70
 
71
  /**
classes/3rd/plugins/class-tinymce.php CHANGED
@@ -46,7 +46,10 @@ class Visual_Portfolio_3rd_TinyMCE {
46
  public function admin_enqueue_scripts( $page ) {
47
  if ( 'post.php' === $page || 'post-new.php' === $page ) {
48
  // add tiny mce data.
49
- $data_tiny_mce = array();
 
 
 
50
 
51
  // get all visual-portfolio post types.
52
  // Don't use WP_Query on the admin side https://core.trac.wordpress.org/ticket/18408 .
@@ -59,19 +62,19 @@ class Visual_Portfolio_3rd_TinyMCE {
59
  )
60
  );
61
  foreach ( $vp_query as $post ) {
62
- $data_tiny_mce[] = array(
63
  'id' => $post->ID,
64
  'title' => '#' . $post->ID . ' - ' . $post->post_title,
65
  );
66
  }
67
 
68
  // return if no data.
69
- if ( ! count( $data_tiny_mce ) ) {
70
  return;
71
  }
72
 
73
- wp_enqueue_script( 'visual-portfolio-tinymce-localize', visual_portfolio()->plugin_url . 'assets/admin/js/mce-localize.min.js', array(), '2.10.5', true );
74
- wp_localize_script( 'visual-portfolio-tinymce-localize', 'VPTinyMCEOptions', $data_tiny_mce );
75
  }
76
  }
77
 
46
  public function admin_enqueue_scripts( $page ) {
47
  if ( 'post.php' === $page || 'post-new.php' === $page ) {
48
  // add tiny mce data.
49
+ $data_tiny_mce = array(
50
+ 'plugin_name' => visual_portfolio()->plugin_name,
51
+ 'layouts' => array(),
52
+ );
53
 
54
  // get all visual-portfolio post types.
55
  // Don't use WP_Query on the admin side https://core.trac.wordpress.org/ticket/18408 .
62
  )
63
  );
64
  foreach ( $vp_query as $post ) {
65
+ $data_tiny_mce['layouts'][] = array(
66
  'id' => $post->ID,
67
  'title' => '#' . $post->ID . ' - ' . $post->post_title,
68
  );
69
  }
70
 
71
  // return if no data.
72
+ if ( empty( $data_tiny_mce['layouts'] ) ) {
73
  return;
74
  }
75
 
76
+ wp_enqueue_script( 'visual-portfolio-tinymce-localize', visual_portfolio()->plugin_url . 'assets/admin/js/mce-localize.min.js', array(), '2.11.0', true );
77
+ wp_localize_script( 'visual-portfolio-tinymce-localize', 'VPTinyMCEData', $data_tiny_mce );
78
  }
79
  }
80
 
classes/3rd/plugins/class-vc.php CHANGED
@@ -35,7 +35,7 @@ class Visual_Portfolio_3rd_VC {
35
  */
36
  public function admin_enqueue_scripts( $page ) {
37
  if ( 'post.php' === $page || 'post-new.php' === $page ) {
38
- wp_enqueue_script( 'visual-portfolio-vc-frontend', visual_portfolio()->plugin_url . 'assets/admin/js/vc-frontend.min.js', array( 'jquery' ), '2.10.5', true );
39
  }
40
  }
41
 
@@ -62,7 +62,7 @@ class Visual_Portfolio_3rd_VC {
62
 
63
  vc_map(
64
  array(
65
- 'name' => esc_html__( 'Visual Portfolio', 'visual-portfolio' ),
66
  'base' => 'visual_portfolio',
67
  'controls' => 'full',
68
  'icon' => 'icon-visual-portfolio',
35
  */
36
  public function admin_enqueue_scripts( $page ) {
37
  if ( 'post.php' === $page || 'post-new.php' === $page ) {
38
+ wp_enqueue_script( 'visual-portfolio-vc-frontend', visual_portfolio()->plugin_url . 'assets/admin/js/vc-frontend.min.js', array( 'jquery' ), '2.11.0', true );
39
  }
40
  }
41
 
62
 
63
  vc_map(
64
  array(
65
+ 'name' => visual_portfolio()->plugin_name,
66
  'base' => 'visual_portfolio',
67
  'controls' => 'full',
68
  'icon' => 'icon-visual-portfolio',
classes/class-admin.php CHANGED
@@ -19,6 +19,8 @@ class Visual_Portfolio_Admin {
19
  public function __construct() {
20
  add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
21
  add_action( 'enqueue_block_editor_assets', array( $this, 'saved_layouts_editor_enqueue_scripts' ) );
 
 
22
 
23
  // Pro link.
24
  add_filter( 'plugin_action_links_' . visual_portfolio()->plugin_basename, array( $this, 'add_go_pro_link_plugins_page' ) );
@@ -42,9 +44,9 @@ class Visual_Portfolio_Admin {
42
  'nonce' => wp_create_nonce( 'vp-ajax-nonce' ),
43
  );
44
 
45
- wp_enqueue_script( 'visual-portfolio-admin', visual_portfolio()->plugin_url . 'assets/admin/js/script.min.js', array( 'jquery', 'wp-data' ), '2.10.5', true );
46
  wp_localize_script( 'visual-portfolio-admin', 'VPAdminVariables', $data_init );
47
- wp_enqueue_style( 'visual-portfolio-admin', visual_portfolio()->plugin_url . 'assets/admin/css/style.min.css', array(), '2.10.5' );
48
  wp_style_add_data( 'visual-portfolio-admin', 'rtl', 'replace' );
49
  wp_style_add_data( 'visual-portfolio-admin', 'suffix', '.min' );
50
  }
@@ -58,8 +60,8 @@ class Visual_Portfolio_Admin {
58
  );
59
 
60
  if ( 'vp_lists' === get_post_type() ) {
61
- wp_enqueue_script( 'visual-portfolio-saved-layouts', visual_portfolio()->plugin_url . 'gutenberg/layouts-editor.min.js', array( 'jquery' ), '2.10.5', true );
62
- wp_enqueue_style( 'visual-portfolio-saved-layouts', visual_portfolio()->plugin_url . 'gutenberg/layouts-editor.min.css', array(), '2.10.5' );
63
  wp_style_add_data( 'visual-portfolio-saved-layouts', 'rtl', 'replace' );
64
  wp_style_add_data( 'visual-portfolio-saved-layouts', 'suffix', '.min' );
65
 
@@ -76,6 +78,115 @@ class Visual_Portfolio_Admin {
76
  }
77
  }
78
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
79
  /**
80
  * Add Go Pro link to plugins page.
81
  *
@@ -105,13 +216,13 @@ class Visual_Portfolio_Admin {
105
  // phpcs:ignore
106
  if ( 'visual_portfolio_go_pro' === $_GET['page'] ) {
107
  // phpcs:ignore
108
- wp_redirect( 'https://visualportfolio.co/pro/?utm_source=freeplugin&utm_medium=link&utm_campaign=admin_page&utm_content=2.10.5' );
109
  exit();
110
  }
111
  }
112
 
113
  /**
114
- * Register the admin settings menu PRO link.
115
  *
116
  * @return void
117
  */
@@ -767,7 +878,7 @@ class Visual_Portfolio_Admin {
767
  array(
768
  'type' => 'pro_note',
769
  'name' => 'additional_style_settings_pro',
770
- 'label' => esc_html__( 'PRO Feature', 'visual-portfolio' ),
771
  'description' => esc_html__( 'Instagram-like filters for your images', 'visual-portfolio' ),
772
  ),
773
  ),
@@ -829,7 +940,7 @@ class Visual_Portfolio_Admin {
829
  array(
830
  'type' => 'pro_note',
831
  'name' => 'additional_style_settings_pro',
832
- 'label' => esc_html__( 'PRO Feature', 'visual-portfolio' ),
833
  'description' => esc_html__( 'Instagram-like filters for your images', 'visual-portfolio' ),
834
  ),
835
  ),
@@ -880,7 +991,7 @@ class Visual_Portfolio_Admin {
880
  array(
881
  'type' => 'pro_note',
882
  'name' => 'additional_style_settings_pro',
883
- 'label' => esc_html__( 'PRO Feature', 'visual-portfolio' ),
884
  'description' => esc_html__( 'Instagram-like filters for your images', 'visual-portfolio' ),
885
  ),
886
  ),
@@ -989,7 +1100,7 @@ class Visual_Portfolio_Admin {
989
  array(
990
  'type' => 'pro_note',
991
  'name' => 'additional_style_settings_pro',
992
- 'label' => esc_html__( 'PRO Feature', 'visual-portfolio' ),
993
  'description' => esc_html__( 'Instagram-like filters for your images', 'visual-portfolio' ),
994
  ),
995
  ),
@@ -1048,6 +1159,11 @@ class Visual_Portfolio_Admin {
1048
  'is_opened' => false,
1049
  'icon' => '<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4.9857 10.718L2.83729 12.8686M13.933 13.9327L11.9062 19L7.85261 7.85198L19 11.9058L13.933 13.9327ZM13.933 13.9327L19 19L13.933 13.9327ZM6.01633 1L6.80374 3.93598L6.01633 1ZM3.93683 6.80305L1 6.0156L3.93683 6.80305ZM12.8689 2.83537L10.7185 4.98592L12.8689 2.83537Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" fill="transparent"/></svg>',
1050
  ),
 
 
 
 
 
1051
  'custom_css' => array(
1052
  'title' => esc_html__( 'Custom CSS', 'visual-portfolio' ),
1053
  'is_opened' => false,
@@ -1355,7 +1471,7 @@ class Visual_Portfolio_Admin {
1355
  'category' => 'content-source-post-based',
1356
  'type' => 'pro_note',
1357
  'name' => 'additional_query_settings_pro',
1358
- 'label' => esc_html__( 'PRO Feature', 'visual-portfolio' ),
1359
  'description' => esc_html__( 'Additional query settings.', 'visual-portfolio' ),
1360
  )
1361
  );
@@ -1514,6 +1630,26 @@ class Visual_Portfolio_Admin {
1514
  )
1515
  );
1516
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1517
  /**
1518
  * Content Source Social Stream.
1519
  */
@@ -1522,7 +1658,7 @@ class Visual_Portfolio_Admin {
1522
  'category' => 'content-source-social-stream',
1523
  'type' => 'pro_note',
1524
  'name' => 'social_pro_note',
1525
- 'label' => esc_html__( 'PRO Feature', 'visual-portfolio' ),
1526
  'description' => esc_html__( 'Social feeds such as Instagram, Youtube, Flickr, Twitter, etc...', 'visual-portfolio' ),
1527
  )
1528
  );
@@ -2096,7 +2232,7 @@ class Visual_Portfolio_Admin {
2096
  'category' => 'items-click-action',
2097
  'type' => 'pro_note',
2098
  'name' => 'items_click_action_pro_note',
2099
- 'label' => esc_html__( 'PRO Feature', 'visual-portfolio' ),
2100
  'description' => esc_html__( 'Display pages in popup iframe, not just images.', 'visual-portfolio' ),
2101
  'condition' => array(
2102
  array(
@@ -2429,8 +2565,8 @@ class Visual_Portfolio_Admin {
2429
  'category' => 'search',
2430
  'type' => 'pro_note',
2431
  'name' => 'search_pro_note',
2432
- 'label' => esc_html__( 'PRO Feature', 'visual-portfolio' ),
2433
- 'description' => esc_html__( 'The search module is only available for PRO users.', 'visual-portfolio' ),
2434
  )
2435
  );
2436
 
19
  public function __construct() {
20
  add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
21
  add_action( 'enqueue_block_editor_assets', array( $this, 'saved_layouts_editor_enqueue_scripts' ) );
22
+ add_action( 'in_admin_header', array( $this, 'in_admin_header' ) );
23
+ add_filter( 'admin_footer_text', array( $this, 'admin_footer_text' ) );
24
 
25
  // Pro link.
26
  add_filter( 'plugin_action_links_' . visual_portfolio()->plugin_basename, array( $this, 'add_go_pro_link_plugins_page' ) );
44
  'nonce' => wp_create_nonce( 'vp-ajax-nonce' ),
45
  );
46
 
47
+ wp_enqueue_script( 'visual-portfolio-admin', visual_portfolio()->plugin_url . 'assets/admin/js/script.min.js', array( 'jquery', 'wp-data' ), '2.11.0', true );
48
  wp_localize_script( 'visual-portfolio-admin', 'VPAdminVariables', $data_init );
49
+ wp_enqueue_style( 'visual-portfolio-admin', visual_portfolio()->plugin_url . 'assets/admin/css/style.min.css', array(), '2.11.0' );
50
  wp_style_add_data( 'visual-portfolio-admin', 'rtl', 'replace' );
51
  wp_style_add_data( 'visual-portfolio-admin', 'suffix', '.min' );
52
  }
60
  );
61
 
62
  if ( 'vp_lists' === get_post_type() ) {
63
+ wp_enqueue_script( 'visual-portfolio-saved-layouts', visual_portfolio()->plugin_url . 'gutenberg/layouts-editor.min.js', array( 'jquery' ), '2.11.0', true );
64
+ wp_enqueue_style( 'visual-portfolio-saved-layouts', visual_portfolio()->plugin_url . 'gutenberg/layouts-editor.min.css', array(), '2.11.0' );
65
  wp_style_add_data( 'visual-portfolio-saved-layouts', 'rtl', 'replace' );
66
  wp_style_add_data( 'visual-portfolio-saved-layouts', 'suffix', '.min' );
67
 
78
  }
79
  }
80
 
81
+ /**
82
+ * Admin footer text.
83
+ *
84
+ * @param string $text The admin footer text.
85
+ *
86
+ * @return string
87
+ */
88
+ public function admin_footer_text( $text ) {
89
+ if ( ! function_exists( 'get_current_screen' ) ) {
90
+ return $text;
91
+ }
92
+
93
+ $screen = get_current_screen();
94
+
95
+ // Determine if the current page being viewed is "Visual Portfolio" related.
96
+ if ( isset( $screen->post_type ) && ( 'portfolio' === $screen->post_type || 'vp_lists' === $screen->post_type ) ) {
97
+ $footer_text = esc_attr__( 'and', 'visual-portfolio' ) . ' <a href="https://visualportfolio.co/" target="_blank">' . visual_portfolio()->plugin_name . '</a>';
98
+
99
+ // Use RegExp to append "Visual Portfolio" after the <a> element allowing translations to read correctly.
100
+ return preg_replace( '/(<a[\S\s]+?\/a>)/', '$1 ' . $footer_text, $text, 1 );
101
+ }
102
+
103
+ return $text;
104
+ }
105
+
106
+ /**
107
+ * Admin navigation.
108
+ */
109
+ public function in_admin_header() {
110
+ if ( ! function_exists( 'get_current_screen' ) ) {
111
+ return;
112
+ }
113
+
114
+ $screen = get_current_screen();
115
+
116
+ // Determine if the current page being viewed is "Lazy Blocks" related.
117
+ if (
118
+ ! isset( $screen->post_type ) ||
119
+ ( 'portfolio' !== $screen->post_type && 'vp_lists' !== $screen->post_type ) ||
120
+ ( isset( $screen->is_block_editor ) && $screen->is_block_editor() )
121
+ ) {
122
+ return;
123
+ }
124
+
125
+ global $submenu, $submenu_file, $plugin_page;
126
+
127
+ $parent_slug = 'edit.php?post_type=portfolio';
128
+ $tabs = array();
129
+
130
+ // Generate array of navigation items.
131
+ if ( isset( $submenu[ $parent_slug ] ) ) {
132
+ foreach ( $submenu[ $parent_slug ] as $i => $sub_item ) {
133
+
134
+ // Check user can access page.
135
+ if ( ! current_user_can( $sub_item[1] ) ) {
136
+ continue;
137
+ }
138
+
139
+ // Ignore "Add New".
140
+ if ( 'post-new.php?post_type=portfolio' === $sub_item[2] ) {
141
+ continue;
142
+ }
143
+
144
+ // Define tab.
145
+ $tab = array(
146
+ 'text' => $sub_item[0],
147
+ 'url' => $sub_item[2],
148
+ );
149
+
150
+ // Convert submenu slug "test" to "$parent_slug&page=test".
151
+ if ( ! strpos( $sub_item[2], '.php' ) && 0 !== strpos( $sub_item[2], 'https://' ) ) {
152
+ $tab['url'] = add_query_arg( array( 'page' => $sub_item[2] ), $parent_slug );
153
+ }
154
+
155
+ // Detect active state.
156
+ if ( $submenu_file === $sub_item[2] || $plugin_page === $sub_item[2] ) {
157
+ $tab['is_active'] = true;
158
+ }
159
+
160
+ $tabs[] = $tab;
161
+ }
162
+ }
163
+
164
+ // Bail early if set to false.
165
+ if ( false === $tabs ) {
166
+ return;
167
+ }
168
+
169
+ ?>
170
+ <div class="vpf-admin-toolbar">
171
+ <h2>
172
+ <i class="dashicons-visual-portfolio"></i>
173
+ <?php echo esc_html( visual_portfolio()->plugin_name ); ?>
174
+ </h2>
175
+ <?php
176
+ foreach ( $tabs as $tab ) {
177
+ printf(
178
+ '<a class="vpf-admin-toolbar-tab%s" href="%s">%s</a>',
179
+ ! empty( $tab['is_active'] ) ? ' is-active' : '',
180
+ esc_url( $tab['url'] ),
181
+ // phpcs:ignore
182
+ $tab['text']
183
+ );
184
+ }
185
+ ?>
186
+ </div>
187
+ <?php
188
+ }
189
+
190
  /**
191
  * Add Go Pro link to plugins page.
192
  *
216
  // phpcs:ignore
217
  if ( 'visual_portfolio_go_pro' === $_GET['page'] ) {
218
  // phpcs:ignore
219
+ wp_redirect( 'https://visualportfolio.co/pro/?utm_source=freeplugin&utm_medium=link&utm_campaign=admin_page&utm_content=2.11.0' );
220
  exit();
221
  }
222
  }
223
 
224
  /**
225
+ * Register the admin settings menu Pro link.
226
  *
227
  * @return void
228
  */
878
  array(
879
  'type' => 'pro_note',
880
  'name' => 'additional_style_settings_pro',
881
+ 'label' => esc_html__( 'Pro Feature', 'visual-portfolio' ),
882
  'description' => esc_html__( 'Instagram-like filters for your images', 'visual-portfolio' ),
883
  ),
884
  ),
940
  array(
941
  'type' => 'pro_note',
942
  'name' => 'additional_style_settings_pro',
943
+ 'label' => esc_html__( 'Pro Feature', 'visual-portfolio' ),
944
  'description' => esc_html__( 'Instagram-like filters for your images', 'visual-portfolio' ),
945
  ),
946
  ),
991
  array(
992
  'type' => 'pro_note',
993
  'name' => 'additional_style_settings_pro',
994
+ 'label' => esc_html__( 'Pro Feature', 'visual-portfolio' ),
995
  'description' => esc_html__( 'Instagram-like filters for your images', 'visual-portfolio' ),
996
  ),
997
  ),
1100
  array(
1101
  'type' => 'pro_note',
1102
  'name' => 'additional_style_settings_pro',
1103
+ 'label' => esc_html__( 'Pro Feature', 'visual-portfolio' ),
1104
  'description' => esc_html__( 'Instagram-like filters for your images', 'visual-portfolio' ),
1105
  ),
1106
  ),
1159
  'is_opened' => false,
1160
  'icon' => '<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4.9857 10.718L2.83729 12.8686M13.933 13.9327L11.9062 19L7.85261 7.85198L19 11.9058L13.933 13.9327ZM13.933 13.9327L19 19L13.933 13.9327ZM6.01633 1L6.80374 3.93598L6.01633 1ZM3.93683 6.80305L1 6.0156L3.93683 6.80305ZM12.8689 2.83537L10.7185 4.98592L12.8689 2.83537Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" fill="transparent"/></svg>',
1161
  ),
1162
+ 'content-protection' => array(
1163
+ 'title' => esc_html__( 'Protection', 'visual-portfolio' ),
1164
+ 'is_opened' => false,
1165
+ 'icon' => '<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16.2222 9H3.77778C2.79594 9 2 9.81403 2 10.8182V17.1818C2 18.186 2.79594 19 3.77778 19H16.2222C17.2041 19 18 18.186 18 17.1818V10.8182C18 9.81403 17.2041 9 16.2222 9Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" fill="transparent"/><path d="M6 9V5.88889C6 4.85749 6.42143 3.86834 7.17157 3.13903C7.92172 2.40972 8.93913 2 10 2C11.0609 2 12.0783 2.40972 12.8284 3.13903C13.5786 3.86834 14 4.85749 14 5.88889V9" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" fill="transparent"/></svg>',
1166
+ ),
1167
  'custom_css' => array(
1168
  'title' => esc_html__( 'Custom CSS', 'visual-portfolio' ),
1169
  'is_opened' => false,
1471
  'category' => 'content-source-post-based',
1472
  'type' => 'pro_note',
1473
  'name' => 'additional_query_settings_pro',
1474
+ 'label' => esc_html__( 'Pro Feature', 'visual-portfolio' ),
1475
  'description' => esc_html__( 'Additional query settings.', 'visual-portfolio' ),
1476
  )
1477
  );
1630
  )
1631
  );
1632
 
1633
+ /**
1634
+ * Content Source Protection.
1635
+ */
1636
+ Visual_Portfolio_Controls::register(
1637
+ array(
1638
+ 'category' => 'content-protection',
1639
+ 'type' => 'pro_note',
1640
+ 'name' => 'protection_pro_note',
1641
+ 'label' => esc_html__( 'Pro Feature', 'visual-portfolio' ),
1642
+ 'description' => esc_html__( 'Protect your works using watermarks, password, and age gate', 'visual-portfolio' ),
1643
+ 'condition' => array(
1644
+ array(
1645
+ 'control' => 'content_source',
1646
+ 'operator' => '!==',
1647
+ 'value' => 'social-stream',
1648
+ ),
1649
+ ),
1650
+ )
1651
+ );
1652
+
1653
  /**
1654
  * Content Source Social Stream.
1655
  */
1658
  'category' => 'content-source-social-stream',
1659
  'type' => 'pro_note',
1660
  'name' => 'social_pro_note',
1661
+ 'label' => esc_html__( 'Pro Feature', 'visual-portfolio' ),
1662
  'description' => esc_html__( 'Social feeds such as Instagram, Youtube, Flickr, Twitter, etc...', 'visual-portfolio' ),
1663
  )
1664
  );
2232
  'category' => 'items-click-action',
2233
  'type' => 'pro_note',
2234
  'name' => 'items_click_action_pro_note',
2235
+ 'label' => esc_html__( 'Pro Feature', 'visual-portfolio' ),
2236
  'description' => esc_html__( 'Display pages in popup iframe, not just images.', 'visual-portfolio' ),
2237
  'condition' => array(
2238
  array(
2565
  'category' => 'search',
2566
  'type' => 'pro_note',
2567
  'name' => 'search_pro_note',
2568
+ 'label' => esc_html__( 'Pro Feature', 'visual-portfolio' ),
2569
+ 'description' => esc_html__( 'The search module is only available for Pro users.', 'visual-portfolio' ),
2570
  )
2571
  );
2572
 
classes/class-assets.php CHANGED
@@ -98,11 +98,11 @@ class Visual_Portfolio_Assets {
98
  foreach ( self::$stored_assets[ $type ] as $name => $data ) {
99
  if ( isset( $data['value'] ) && $data['value'] ) {
100
  if ( 'script' === $type ) {
101
- wp_enqueue_script( $name, '', array(), '2.10.5', true );
102
  } elseif ( is_string( $data['value'] ) ) {
103
- visual_portfolio()->include_template_style( $name, $data['value'], array(), '2.10.5' );
104
  } else {
105
- wp_enqueue_style( $name, '', array(), '2.10.5' );
106
  }
107
 
108
  self::$stored_assets[ $type ]['value'] = false;
@@ -259,7 +259,7 @@ class Visual_Portfolio_Assets {
259
  $dynamic_styles = Visual_Portfolio_Controls_Dynamic_CSS::get( $options );
260
  $controls_css_handle = 'vp-dynamic-styles-' . $options['id'];
261
 
262
- wp_register_style( $controls_css_handle, false, array(), '2.10.5' );
263
  wp_enqueue_style( $controls_css_handle );
264
  wp_add_inline_style( $controls_css_handle, $dynamic_styles ? $dynamic_styles : ' ' );
265
 
@@ -365,7 +365,7 @@ class Visual_Portfolio_Assets {
365
  // LazySizes.
366
  if ( apply_filters( 'vpf_enqueue_plugin_lazysizes', true ) ) {
367
  wp_register_script( 'lazysizes-object-fit-cover', visual_portfolio()->plugin_url . 'assets/js/lazysizes-object-fit-cover.min.js', array(), '4.1.0', true );
368
- wp_register_script( 'lazysizes-config', visual_portfolio()->plugin_url . 'assets/js/lazysizes-cfg.min.js', array(), '2.10.5', true );
369
  wp_register_script( 'lazysizes', visual_portfolio()->plugin_url . 'assets/vendor/lazysizes/lazysizes.min.js', array( 'lazysizes-object-fit-cover', 'lazysizes-config' ), '5.2.2', true );
370
  }
371
 
@@ -413,7 +413,7 @@ class Visual_Portfolio_Assets {
413
  );
414
 
415
  foreach ( $vp_styles as $name => $data ) {
416
- wp_register_style( $name, visual_portfolio()->plugin_url . $data[0], $data[1], '2.10.5' );
417
  wp_style_add_data( $name, 'rtl', 'replace' );
418
  wp_style_add_data( $name, 'suffix', '.min' );
419
  }
@@ -531,7 +531,7 @@ class Visual_Portfolio_Assets {
531
  );
532
 
533
  foreach ( $vp_scripts as $name => $data ) {
534
- wp_register_script( $name, visual_portfolio()->plugin_url . $data[0], $data[1], '2.10.5', true );
535
  }
536
 
537
  do_action( 'vpf_after_assets_register' );
@@ -567,7 +567,8 @@ class Visual_Portfolio_Assets {
567
  public function localize_global_data() {
568
  $data = array(
569
  '__' => array(
570
- 'couldnt_retrieve_vp' => esc_attr__( 'Couldn\'t retrieve Visual Portfolio ID.', 'visual-portfolio' ),
 
571
 
572
  'pswp_close' => esc_attr__( 'Close (Esc)', 'visual-portfolio' ),
573
  'pswp_share' => esc_attr__( 'Share', 'visual-portfolio' ),
98
  foreach ( self::$stored_assets[ $type ] as $name => $data ) {
99
  if ( isset( $data['value'] ) && $data['value'] ) {
100
  if ( 'script' === $type ) {
101
+ wp_enqueue_script( $name, '', array(), '2.11.0', true );
102
  } elseif ( is_string( $data['value'] ) ) {
103
+ visual_portfolio()->include_template_style( $name, $data['value'], array(), '2.11.0' );
104
  } else {
105
+ wp_enqueue_style( $name, '', array(), '2.11.0' );
106
  }
107
 
108
  self::$stored_assets[ $type ]['value'] = false;
259
  $dynamic_styles = Visual_Portfolio_Controls_Dynamic_CSS::get( $options );
260
  $controls_css_handle = 'vp-dynamic-styles-' . $options['id'];
261
 
262
+ wp_register_style( $controls_css_handle, false, array(), '2.11.0' );
263
  wp_enqueue_style( $controls_css_handle );
264
  wp_add_inline_style( $controls_css_handle, $dynamic_styles ? $dynamic_styles : ' ' );
265
 
365
  // LazySizes.
366
  if ( apply_filters( 'vpf_enqueue_plugin_lazysizes', true ) ) {
367
  wp_register_script( 'lazysizes-object-fit-cover', visual_portfolio()->plugin_url . 'assets/js/lazysizes-object-fit-cover.min.js', array(), '4.1.0', true );
368
+ wp_register_script( 'lazysizes-config', visual_portfolio()->plugin_url . 'assets/js/lazysizes-cfg.min.js', array(), '2.11.0', true );
369
  wp_register_script( 'lazysizes', visual_portfolio()->plugin_url . 'assets/vendor/lazysizes/lazysizes.min.js', array( 'lazysizes-object-fit-cover', 'lazysizes-config' ), '5.2.2', true );
370
  }
371
 
413
  );
414
 
415
  foreach ( $vp_styles as $name => $data ) {
416
+ wp_register_style( $name, visual_portfolio()->plugin_url . $data[0], $data[1], '2.11.0' );
417
  wp_style_add_data( $name, 'rtl', 'replace' );
418
  wp_style_add_data( $name, 'suffix', '.min' );
419
  }
531
  );
532
 
533
  foreach ( $vp_scripts as $name => $data ) {
534
+ wp_register_script( $name, visual_portfolio()->plugin_url . $data[0], $data[1], '2.11.0', true );
535
  }
536
 
537
  do_action( 'vpf_after_assets_register' );
567
  public function localize_global_data() {
568
  $data = array(
569
  '__' => array(
570
+ // translators: %s - plugin name.
571
+ 'couldnt_retrieve_vp' => sprintf( __( 'Couldn\'t retrieve %s ID.', 'visual-portfolio' ), visual_portfolio()->plugin_name ),
572
 
573
  'pswp_close' => esc_attr__( 'Close (Esc)', 'visual-portfolio' ),
574
  'pswp_share' => esc_attr__( 'Share', 'visual-portfolio' ),
classes/class-custom-post-type.php CHANGED
@@ -69,7 +69,7 @@ class Visual_Portfolio_Custom_Post_Type {
69
  'labels' => array(
70
  'name' => _x( 'Portfolio Items', 'Post Type General Name', 'visual-portfolio' ),
71
  'singular_name' => _x( 'Portfolio Item', 'Post Type Singular Name', 'visual-portfolio' ),
72
- 'menu_name' => __( 'Visual Portfolio', 'visual-portfolio' ),
73
  'parent_item_colon' => __( 'Parent Portfolio Item', 'visual-portfolio' ),
74
  'all_items' => __( 'Portfolio Items', 'visual-portfolio' ),
75
  'view_item' => __( 'View Portfolio Item', 'visual-portfolio' ),
@@ -163,7 +163,7 @@ class Visual_Portfolio_Custom_Post_Type {
163
  'labels' => array(
164
  'name' => _x( 'Saved Layouts', 'Post Type General Name', 'visual-portfolio' ),
165
  'singular_name' => _x( 'Saved Layout', 'Post Type Singular Name', 'visual-portfolio' ),
166
- 'menu_name' => __( 'Visual Portfolio', 'visual-portfolio' ),
167
  'parent_item_colon' => __( 'Parent Portfolio Item', 'visual-portfolio' ),
168
  'all_items' => __( 'Saved Layouts', 'visual-portfolio' ),
169
  'view_item' => __( 'View Saved Layout', 'visual-portfolio' ),
@@ -251,7 +251,7 @@ class Visual_Portfolio_Custom_Post_Type {
251
 
252
  global $wp_version;
253
 
254
- $check_string = 'Plugin: 2.10.5 WP: ' . $wp_version;
255
 
256
  if ( get_option( 'visual_portfolio_updated_caps' ) === $check_string ) {
257
  return;
@@ -399,8 +399,15 @@ class Visual_Portfolio_Custom_Post_Type {
399
  </h2>
400
  <p>
401
  <?php
402
- // translators: %s - url to documentation.
403
- echo wp_kses_post( sprintf( __( 'If you are using the Gutenberg page builder for your pages and posts, you should <strong>avoid using Saved Layouts</strong>. See here more info about <a href="%s" target="_blank">Visual Portfolio Blocks</a>.', 'visual-portfolio' ), 'https://visualportfolio.co/documentation/portfolio-blocks/' ) );
 
 
 
 
 
 
 
404
  ?>
405
  </p>
406
  <p>
@@ -513,7 +520,7 @@ class Visual_Portfolio_Custom_Post_Type {
513
  array(
514
  'parent' => false,
515
  'id' => 'visual_portfolio',
516
- 'title' => esc_html__( 'Visual Portfolio', 'visual-portfolio' ),
517
  'href' => admin_url( 'edit.php?post_type=vp_lists' ),
518
  )
519
  );
69
  'labels' => array(
70
  'name' => _x( 'Portfolio Items', 'Post Type General Name', 'visual-portfolio' ),
71
  'singular_name' => _x( 'Portfolio Item', 'Post Type Singular Name', 'visual-portfolio' ),
72
+ 'menu_name' => visual_portfolio()->plugin_name,
73
  'parent_item_colon' => __( 'Parent Portfolio Item', 'visual-portfolio' ),
74
  'all_items' => __( 'Portfolio Items', 'visual-portfolio' ),
75
  'view_item' => __( 'View Portfolio Item', 'visual-portfolio' ),
163
  'labels' => array(
164
  'name' => _x( 'Saved Layouts', 'Post Type General Name', 'visual-portfolio' ),
165
  'singular_name' => _x( 'Saved Layout', 'Post Type Singular Name', 'visual-portfolio' ),
166
+ 'menu_name' => visual_portfolio()->plugin_name,
167
  'parent_item_colon' => __( 'Parent Portfolio Item', 'visual-portfolio' ),
168
  'all_items' => __( 'Saved Layouts', 'visual-portfolio' ),
169
  'view_item' => __( 'View Saved Layout', 'visual-portfolio' ),
251
 
252
  global $wp_version;
253
 
254
+ $check_string = 'Plugin: 2.11.0 WP: ' . $wp_version;
255
 
256
  if ( get_option( 'visual_portfolio_updated_caps' ) === $check_string ) {
257
  return;
399
  </h2>
400
  <p>
401
  <?php
402
+ echo wp_kses_post(
403
+ sprintf(
404
+ // translators: %1$s - url to documentation.
405
+ // translators: %2$s - plugin name.
406
+ __( 'If you are using the Gutenberg page builder for your pages and posts, you should <strong>avoid using Saved Layouts</strong>. See here more info about <a href="%1$s" target="_blank">%2$s Blocks</a>.', 'visual-portfolio' ),
407
+ 'https://visualportfolio.co/documentation/portfolio-blocks/',
408
+ visual_portfolio()->plugin_name
409
+ )
410
+ );
411
  ?>
412
  </p>
413
  <p>
520
  array(
521
  'parent' => false,
522
  'id' => 'visual_portfolio',
523
+ 'title' => visual_portfolio()->plugin_name,
524
  'href' => admin_url( 'edit.php?post_type=vp_lists' ),
525
  )
526
  );
classes/class-get-portfolio.php CHANGED
@@ -311,6 +311,15 @@ class Visual_Portfolio_Get {
311
  $class .= ' vp-portfolio__stretch';
312
  }
313
 
 
 
 
 
 
 
 
 
 
314
  $no_image = Visual_Portfolio_Settings::get_option( 'no_image', 'vp_general' );
315
 
316
  // prepare image sizes.
@@ -799,6 +808,10 @@ class Visual_Portfolio_Get {
799
  return '';
800
  }
801
 
 
 
 
 
802
  $options = $config['options'];
803
  $style_options = $config['style_options'];
804
  $data_attrs = $config['data_attrs'];
@@ -808,7 +821,7 @@ class Visual_Portfolio_Get {
808
  $notices = $config['notices'];
809
 
810
  // Insert styles and scripts.
811
- Visual_Portfolio_Assets::enqueue( $options );
812
 
813
  // No items found.
814
  if ( empty( $items ) ) {
@@ -973,10 +986,7 @@ class Visual_Portfolio_Get {
973
 
974
  do_action( 'vpf_after_get_output', $options, $style_options );
975
 
976
- $return = ob_get_contents();
977
- ob_end_clean();
978
-
979
- return $return;
980
  }
981
 
982
  /**
@@ -1061,15 +1071,14 @@ class Visual_Portfolio_Get {
1061
  }
1062
 
1063
  ob_start();
 
1064
  ?>
1065
  <div class="<?php echo esc_attr( $class ); ?>">
1066
  <?php self::filter( $options ); ?>
1067
  </div>
1068
  <?php
1069
 
1070
- $return = ob_get_contents();
1071
- ob_end_clean();
1072
- return $return;
1073
  }
1074
 
1075
  /**
@@ -1102,15 +1111,14 @@ class Visual_Portfolio_Get {
1102
  }
1103
 
1104
  ob_start();
 
1105
  ?>
1106
  <div class="<?php echo esc_attr( $class ); ?>">
1107
  <?php self::sort( $options ); ?>
1108
  </div>
1109
  <?php
1110
 
1111
- $return = ob_get_contents();
1112
- ob_end_clean();
1113
- return $return;
1114
  }
1115
 
1116
  /**
@@ -1421,7 +1429,14 @@ class Visual_Portfolio_Get {
1421
  parse_str( html_entity_decode( $options['posts_custom_query'] ), $tmp_arr );
1422
  $query_opts = array_merge( $query_opts, $tmp_arr );
1423
  } elseif ( 'current_query' === $options['posts_source'] ) {
1424
- $query_opts = $GLOBALS['wp_query']->query_vars;
 
 
 
 
 
 
 
1425
  } else {
1426
  $query_opts['post_type'] = $options['posts_source'];
1427
 
311
  $class .= ' vp-portfolio__stretch';
312
  }
313
 
314
+ // Filter to replace the main layout with custom. Particularly needed for password protection or age verification.
315
+ $custom_output = apply_filters( 'vpf_custom_output', false, $uid, $class, $options );
316
+
317
+ if ( $custom_output ) {
318
+ return array(
319
+ 'custom_output' => $custom_output,
320
+ );
321
+ }
322
+
323
  $no_image = Visual_Portfolio_Settings::get_option( 'no_image', 'vp_general' );
324
 
325
  // prepare image sizes.
808
  return '';
809
  }
810
 
811
+ if ( isset( $config['custom_output'] ) ) {
812
+ return $config['custom_output'];
813
+ }
814
+
815
  $options = $config['options'];
816
  $style_options = $config['style_options'];
817
  $data_attrs = $config['data_attrs'];
821
  $notices = $config['notices'];
822
 
823
  // Insert styles and scripts.
824
+ Visual_Portfolio_Assets::enqueue( $atts );
825
 
826
  // No items found.
827
  if ( empty( $items ) ) {
986
 
987
  do_action( 'vpf_after_get_output', $options, $style_options );
988
 
989
+ return ob_get_clean();
 
 
 
990
  }
991
 
992
  /**
1071
  }
1072
 
1073
  ob_start();
1074
+
1075
  ?>
1076
  <div class="<?php echo esc_attr( $class ); ?>">
1077
  <?php self::filter( $options ); ?>
1078
  </div>
1079
  <?php
1080
 
1081
+ return ob_get_clean();
 
 
1082
  }
1083
 
1084
  /**
1111
  }
1112
 
1113
  ob_start();
1114
+
1115
  ?>
1116
  <div class="<?php echo esc_attr( $class ); ?>">
1117
  <?php self::sort( $options ); ?>
1118
  </div>
1119
  <?php
1120
 
1121
+ return ob_get_clean();
 
 
1122
  }
1123
 
1124
  /**
1429
  parse_str( html_entity_decode( $options['posts_custom_query'] ), $tmp_arr );
1430
  $query_opts = array_merge( $query_opts, $tmp_arr );
1431
  } elseif ( 'current_query' === $options['posts_source'] ) {
1432
+ $query_vars = $GLOBALS['wp_query']->query_vars;
1433
+
1434
+ // Add pagination paged value.
1435
+ if ( $query_opts['paged'] && ( ! isset( $query_vars['paged'] ) || ! $query_vars['paged'] ) ) {
1436
+ $query_vars['paged'] = $query_opts['paged'];
1437
+ }
1438
+
1439
+ $query_opts = $query_vars;
1440
  } else {
1441
  $query_opts['post_type'] = $options['posts_source'];
1442
 
classes/class-gutenberg.php CHANGED
@@ -173,14 +173,14 @@ class Visual_Portfolio_Gutenberg_Block {
173
  'visual-portfolio-gutenberg',
174
  plugins_url( '../gutenberg/index.min.js', __FILE__ ),
175
  array( 'wp-editor', 'wp-i18n', 'wp-element', 'wp-components', 'jquery' ),
176
- '2.10.5',
177
  true
178
  );
179
  wp_enqueue_style(
180
  'visual-portfolio-gutenberg',
181
  plugins_url( '../gutenberg/style.min.css', __FILE__ ),
182
  array(),
183
- '2.10.5'
184
  );
185
  wp_style_add_data( 'visual-portfolio-gutenberg', 'rtl', 'replace' );
186
  wp_style_add_data( 'visual-portfolio-gutenberg', 'suffix', '.min' );
@@ -190,6 +190,7 @@ class Visual_Portfolio_Gutenberg_Block {
190
  'VPGutenbergVariables',
191
  array(
192
  'nonce' => wp_create_nonce( 'vp-ajax-nonce' ),
 
193
  'controls' => Visual_Portfolio_Controls::get_registered_array(),
194
  'controls_categories' => Visual_Portfolio_Controls::get_registered_categories(),
195
  )
@@ -200,7 +201,7 @@ class Visual_Portfolio_Gutenberg_Block {
200
  'visual-portfolio-gutenberg-custom-post-meta',
201
  plugins_url( '../gutenberg/custom-post-meta.min.js', __FILE__ ),
202
  array( 'wp-editor', 'wp-i18n', 'wp-element', 'wp-components', 'wp-plugins', 'jquery' ),
203
- '2.10.5',
204
  true
205
  );
206
 
@@ -208,7 +209,8 @@ class Visual_Portfolio_Gutenberg_Block {
208
  'visual-portfolio-gutenberg-custom-post-meta',
209
  'VPGutenbergMetaVariables',
210
  array(
211
- 'nonce' => wp_create_nonce( 'vp-ajax-nonce' ),
 
212
  )
213
  );
214
  }
173
  'visual-portfolio-gutenberg',
174
  plugins_url( '../gutenberg/index.min.js', __FILE__ ),
175
  array( 'wp-editor', 'wp-i18n', 'wp-element', 'wp-components', 'jquery' ),
176
+ '2.11.0',
177
  true
178
  );
179
  wp_enqueue_style(
180
  'visual-portfolio-gutenberg',
181
  plugins_url( '../gutenberg/style.min.css', __FILE__ ),
182
  array(),
183
+ '2.11.0'
184
  );
185
  wp_style_add_data( 'visual-portfolio-gutenberg', 'rtl', 'replace' );
186
  wp_style_add_data( 'visual-portfolio-gutenberg', 'suffix', '.min' );
190
  'VPGutenbergVariables',
191
  array(
192
  'nonce' => wp_create_nonce( 'vp-ajax-nonce' ),
193
+ 'plugin_name' => visual_portfolio()->plugin_name,
194
  'controls' => Visual_Portfolio_Controls::get_registered_array(),
195
  'controls_categories' => Visual_Portfolio_Controls::get_registered_categories(),
196
  )
201
  'visual-portfolio-gutenberg-custom-post-meta',
202
  plugins_url( '../gutenberg/custom-post-meta.min.js', __FILE__ ),
203
  array( 'wp-editor', 'wp-i18n', 'wp-element', 'wp-components', 'wp-plugins', 'jquery' ),
204
+ '2.11.0',
205
  true
206
  );
207
 
209
  'visual-portfolio-gutenberg-custom-post-meta',
210
  'VPGutenbergMetaVariables',
211
  array(
212
+ 'nonce' => wp_create_nonce( 'vp-ajax-nonce' ),
213
+ 'plugin_name' => visual_portfolio()->plugin_name,
214
  )
215
  );
216
  }
classes/class-migration.php CHANGED
@@ -18,7 +18,7 @@ class Visual_Portfolio_Migrations {
18
  *
19
  * @var string
20
  */
21
- protected $version = '2.10.5';
22
 
23
  /**
24
  * Initial version.
18
  *
19
  * @var string
20
  */
21
+ protected $version = '2.11.0';
22
 
23
  /**
24
  * Initial version.
classes/class-preview.php CHANGED
@@ -232,7 +232,7 @@ class Visual_Portfolio_Preview {
232
 
233
  // Enqueue assets.
234
  wp_enqueue_script( 'iframe-resizer-content', visual_portfolio()->plugin_url . 'assets/vendor/iframe-resizer/js/iframeResizer.contentWindow.min.js', array(), '4.2.11', true );
235
- wp_enqueue_script( 'visual-portfolio-preview', visual_portfolio()->plugin_url . 'assets/js/preview.min.js', array( 'jquery', 'iframe-resizer-content' ), '2.10.5', true );
236
 
237
  // Post data for script.
238
  wp_localize_script(
@@ -275,7 +275,7 @@ class Visual_Portfolio_Preview {
275
  Visual_Portfolio_Assets::enqueue( $options );
276
 
277
  // Custom styles.
278
- visual_portfolio()->include_template_style( 'visual-portfolio-preview', 'preview/style', array(), '2.10.5' );
279
 
280
  // Output template.
281
  visual_portfolio()->include_template(
232
 
233
  // Enqueue assets.
234
  wp_enqueue_script( 'iframe-resizer-content', visual_portfolio()->plugin_url . 'assets/vendor/iframe-resizer/js/iframeResizer.contentWindow.min.js', array(), '4.2.11', true );
235
+ wp_enqueue_script( 'visual-portfolio-preview', visual_portfolio()->plugin_url . 'assets/js/preview.min.js', array( 'jquery', 'iframe-resizer-content' ), '2.11.0', true );
236
 
237
  // Post data for script.
238
  wp_localize_script(
275
  Visual_Portfolio_Assets::enqueue( $options );
276
 
277
  // Custom styles.
278
+ visual_portfolio()->include_template_style( 'visual-portfolio-preview', 'preview/style', array(), '2.11.0' );
279
 
280
  // Output template.
281
  visual_portfolio()->include_template(
classes/class-settings.php CHANGED
@@ -129,18 +129,32 @@ class Visual_Portfolio_Settings {
129
  array(
130
  'id' => 'vp_general',
131
  'title' => esc_html__( 'General', 'visual-portfolio' ),
 
132
  ),
133
  array(
134
  'id' => 'vp_images',
135
  'title' => esc_html__( 'Images', 'visual-portfolio' ),
 
136
  ),
137
  array(
138
  'id' => 'vp_popup_gallery',
139
  'title' => esc_html__( 'Popup Gallery', 'visual-portfolio' ),
 
 
 
 
 
 
140
  ),
141
  array(
142
  'id' => 'vp_social_integrations',
143
  'title' => esc_html__( 'Social Integrations', 'visual-portfolio' ),
 
 
 
 
 
 
144
  ),
145
  );
146
 
@@ -186,7 +200,7 @@ class Visual_Portfolio_Settings {
186
  'name' => 'ajax_caching',
187
  'label' => esc_html__( 'AJAX Cache and Preload', 'visual-portfolio' ),
188
  'desc' => esc_html__( 'Reduce AJAX calls request time.', 'visual-portfolio' ),
189
- 'type' => 'checkbox',
190
  'default' => ! class_exists( 'Visual_Portfolio_Pro' ) ? 'off' : 'on',
191
  'is_pro' => true,
192
  ),
@@ -195,17 +209,17 @@ class Visual_Portfolio_Settings {
195
  array(
196
  'name' => 'breakpoints_title',
197
  'label' => esc_html__( 'Responsive Breakpoints', 'visual-portfolio' ),
198
- 'type' => 'html',
199
  'is_pro' => true,
200
  ),
201
  array(
202
  'name' => 'breakpoint_xl',
203
  'label' => esc_html__( 'Extra Large', 'visual-portfolio' ),
204
  'type' => 'number',
205
- 'min' => (int) $default_breakpoints['lg'] + 1,
206
  'max' => 3840,
207
  'placeholder' => (string) $default_breakpoints['xl'],
208
- 'default' => (int) $default_breakpoints['xl'],
209
  // translators: %1$s - default breakpoint.
210
  'desc' => sprintf( wp_kses_post( __( 'Sets the breakpoint on extra large screen sizes (Default: %1$spx).', 'visual-portfolio' ) ), $default_breakpoints['xl'] ),
211
  'is_pro' => true,
@@ -214,10 +228,10 @@ class Visual_Portfolio_Settings {
214
  'name' => 'breakpoint_lg',
215
  'label' => esc_html__( 'Large', 'visual-portfolio' ),
216
  'type' => 'number',
217
- 'min' => (int) $default_breakpoints['md'] + 1,
218
- 'max' => (int) $default_breakpoints['xl'] - 1,
219
  'placeholder' => (string) $default_breakpoints['lg'],
220
- 'default' => (int) $default_breakpoints['lg'],
221
  // translators: %1$s - default breakpoint.
222
  'desc' => sprintf( wp_kses_post( __( 'Sets the breakpoint on large screen sizes (Default: %1$spx).', 'visual-portfolio' ) ), $default_breakpoints['lg'] ),
223
  'is_pro' => true,
@@ -226,10 +240,10 @@ class Visual_Portfolio_Settings {
226
  'name' => 'breakpoint_md',
227
  'label' => esc_html__( 'Medium', 'visual-portfolio' ),
228
  'type' => 'number',
229
- 'min' => (int) $default_breakpoints['sm'] + 1,
230
- 'max' => (int) $default_breakpoints['lg'] - 1,
231
  'placeholder' => (string) $default_breakpoints['md'],
232
- 'default' => (int) $default_breakpoints['md'],
233
  // translators: %1$s - default breakpoint.
234
  'desc' => sprintf( wp_kses_post( __( 'Sets the breakpoint on medium screen sizes (Default: %1$spx).', 'visual-portfolio' ) ), $default_breakpoints['md'] ),
235
  'is_pro' => true,
@@ -238,10 +252,10 @@ class Visual_Portfolio_Settings {
238
  'name' => 'breakpoint_sm',
239
  'label' => esc_html__( 'Small', 'visual-portfolio' ),
240
  'type' => 'number',
241
- 'min' => (int) $default_breakpoints['xs'] + 1,
242
- 'max' => (int) $default_breakpoints['md'] - 1,
243
  'placeholder' => (string) $default_breakpoints['sm'],
244
- 'default' => (int) $default_breakpoints['sm'],
245
  // translators: %1$s - default breakpoint.
246
  'desc' => sprintf( wp_kses_post( __( 'Sets the breakpoint on small screen sizes (Default: %1$spx).', 'visual-portfolio' ) ), $default_breakpoints['sm'] ),
247
  'is_pro' => true,
@@ -251,9 +265,9 @@ class Visual_Portfolio_Settings {
251
  'label' => esc_html__( 'Extra Small', 'visual-portfolio' ),
252
  'type' => 'number',
253
  'min' => 1,
254
- 'max' => (int) $default_breakpoints['sm'] - 1,
255
  'placeholder' => (string) $default_breakpoints['xs'],
256
- 'default' => (int) $default_breakpoints['xs'],
257
  // translators: %1$s - default breakpoint.
258
  'desc' => sprintf( wp_kses_post( __( 'Sets the breakpoint on extra small screen sizes (Default: %1$spx).', 'visual-portfolio' ) ), $default_breakpoints['xs'] ),
259
  'is_pro' => true,
@@ -263,26 +277,23 @@ class Visual_Portfolio_Settings {
263
  array(
264
  'name' => 'lazy_loading',
265
  'label' => esc_html__( 'Lazy Loading', 'visual-portfolio' ),
266
- 'desc' => esc_html__( 'Enable lazy loading for Visual Portfolio layouts only or for the whole website.', 'visual-portfolio' ),
267
- 'type' => 'radio',
 
268
  'default' => 'vp',
269
  'options' => array(
270
  '' => esc_html__( 'Disabled', 'visual-portfolio' ),
271
- 'vp' => esc_html__( 'Visual Portfolio only', 'visual-portfolio' ),
 
272
  'full' => esc_html__( 'All images', 'visual-portfolio' ),
273
  ),
274
  ),
275
 
276
- array(
277
- 'name' => 'images_sizes_title',
278
- 'label' => esc_html__( 'Image Sizes', 'visual-portfolio' ),
279
- 'type' => 'html',
280
- ),
281
  array(
282
  'name' => 'images_layouts_title',
283
- 'label' => esc_html__( 'Layouts', 'visual-portfolio' ),
284
  'desc' => __( 'Image sizes used in portfolio layouts.', 'visual-portfolio' ),
285
- 'type' => 'html',
286
  ),
287
  array(
288
  'name' => 'sm',
@@ -314,9 +325,9 @@ class Visual_Portfolio_Settings {
314
  ),
315
  array(
316
  'name' => 'images_popup_title',
317
- 'label' => esc_html__( 'Popup Gallery', 'visual-portfolio' ),
318
  'desc' => __( 'Image sizes used in popup gallery images.', 'visual-portfolio' ),
319
- 'type' => 'html',
320
  ),
321
  array(
322
  'name' => 'sm_popup',
@@ -364,16 +375,22 @@ class Visual_Portfolio_Settings {
364
  'name' => 'enable_on_wordpress_images',
365
  'label' => esc_html__( 'WordPress Images', 'visual-portfolio' ),
366
  'desc' => esc_html__( 'Enable popup for WordPress images and galleries.', 'visual-portfolio' ),
367
- 'type' => 'checkbox',
368
  'default' => 'off',
369
  ),
370
 
 
 
 
 
 
 
371
  // Deeplinking.
372
  array(
373
  'name' => 'deep_linking',
374
  'label' => esc_html__( 'Deep Linking', 'visual-portfolio' ),
375
  'desc' => esc_html__( 'Makes URL automatically change to reflect the current opened popup, and you can easily link directly to that image or video.', 'visual-portfolio' ),
376
- 'type' => 'checkbox',
377
  'default' => ! class_exists( 'Visual_Portfolio_Pro' ) ? 'off' : 'on',
378
  'is_pro' => true,
379
  ),
@@ -381,88 +398,164 @@ class Visual_Portfolio_Settings {
381
  'name' => 'deep_linking_url_to_share_images',
382
  'label' => esc_html__( 'Use Deep Linking URL to Share Images', 'visual-portfolio' ),
383
  'desc' => esc_html__( 'Check to share Deep Linking URLs when sharing images. When disabled, all galleries will share direct links to image files.', 'visual-portfolio' ),
384
- 'type' => 'checkbox',
385
  'default' => 'off',
386
  'is_pro' => true,
387
  ),
388
 
389
- // General Popup Settings.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
390
  array(
391
  'name' => 'show_arrows',
392
  'label' => esc_html__( 'Display Arrows', 'visual-portfolio' ),
393
  'desc' => esc_html__( 'Arrows to navigate between images.', 'visual-portfolio' ),
394
- 'type' => 'checkbox',
395
  'default' => 'on',
396
  ),
397
  array(
398
  'name' => 'show_counter',
399
  'label' => esc_html__( 'Display Images Counter', 'visual-portfolio' ),
400
  'desc' => esc_html__( 'On the top left corner will be showed images counter.', 'visual-portfolio' ),
401
- 'type' => 'checkbox',
402
  'default' => 'on',
403
  ),
404
  array(
405
  'name' => 'show_zoom_button',
406
  'label' => esc_html__( 'Display Zoom Button', 'visual-portfolio' ),
407
- 'type' => 'checkbox',
408
  'default' => 'on',
409
  ),
410
  array(
411
  'name' => 'show_fullscreen_button',
412
  'label' => esc_html__( 'Display Fullscreen Button', 'visual-portfolio' ),
413
- 'type' => 'checkbox',
414
  'default' => 'on',
415
  ),
416
  array(
417
  'name' => 'show_share_button',
418
  'label' => esc_html__( 'Display Share Button', 'visual-portfolio' ),
419
- 'type' => 'checkbox',
420
  'default' => 'on',
421
  ),
422
  array(
423
  'name' => 'show_close_button',
424
  'label' => esc_html__( 'Display Close Button', 'visual-portfolio' ),
425
- 'type' => 'checkbox',
426
  'default' => 'on',
427
  ),
428
 
429
  // Fancybox Popup Settings.
430
  array(
431
- 'name' => 'show_thumbs',
432
- 'label' => esc_html__( 'Display Thumbnails', 'visual-portfolio' ),
433
- 'type' => 'checkbox',
434
- 'default' => 'on',
 
 
 
 
 
 
 
435
  ),
436
  array(
437
- 'name' => 'show_download_button',
438
- 'label' => esc_html__( 'Display Download Button', 'visual-portfolio' ),
439
- 'type' => 'checkbox',
440
- 'default' => 'off',
 
 
 
 
 
 
 
 
 
 
 
441
  ),
442
  array(
443
- 'name' => 'show_slideshow',
444
- 'label' => esc_html__( 'Display Slideshow', 'visual-portfolio' ),
445
- 'type' => 'checkbox',
446
- 'default' => 'off',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
447
  ),
448
-
449
- // Click to Zoom.
450
  array(
451
- 'name' => 'click_to_zoom',
452
- 'label' => esc_html__( 'Click to Zoom', 'visual-portfolio' ),
453
- 'type' => 'checkbox',
454
- 'default' => 'on',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
455
  ),
456
 
457
- // Colors.
 
 
 
 
 
458
  array(
459
  'name' => 'background_color',
460
  'label' => esc_html__( 'Background Color', 'visual-portfolio' ),
461
  'type' => 'color',
462
  'default' => '#1e1e1e',
463
  ),
464
-
465
- // Page iframe popup.
466
  array(
467
  'name' => 'pages_iframe_custom_css',
468
  'label' => esc_html__( 'Pages iFrame Custom CSS', 'visual-portfolio' ),
@@ -478,15 +571,45 @@ class Visual_Portfolio_Settings {
478
  'is_pro' => true,
479
  ),
480
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
481
  'vp_social_integrations' => array(
482
  array(
483
- 'name' => 'social_pro_info',
484
  'desc' => '
485
  <div class="vpf-settings-info-pro">
486
- <h3>' . esc_html__( 'PRO Feature', 'visual-portfolio' ) . '</h3>
487
  <div>
488
  <p>' . esc_html__( 'Social feeds such as Instagram, Youtube, Flickr, Twitter, etc...', 'visual-portfolio' ) . '</p>
489
- <a class="vpf-settings-info-pro-button" target="_blank" rel="noopener noreferrer" href="https://visualportfolio.co/pro/?utm_source=freeplugin&utm_medium=link&utm_campaign=plugin_settings&utm_content=2.10.5">' . esc_html__( 'Read More', 'visual-portfolio' ) . '</a>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
490
  </div>
491
  </div>
492
  ',
@@ -507,7 +630,7 @@ class Visual_Portfolio_Settings {
507
  self::$settings_api->admin_enqueue_scripts();
508
 
509
  echo '<div class="wrap">';
510
- echo '<h2>' . esc_html__( 'Visual Portfolio Settings', 'visual-portfolio' ) . '</h2>';
511
 
512
  self::$settings_api->show_navigation();
513
  self::$settings_api->show_forms();
@@ -517,18 +640,6 @@ class Visual_Portfolio_Settings {
517
  ?>
518
  <script>
519
  (function( $ ) {
520
- // update controls.
521
- function updateControls() {
522
- // popup gallery settings.
523
- var $popupGalleryContainer = $('#vp_popup_gallery');
524
- var vendor = $popupGalleryContainer.find('tr.vendor select').val();
525
-
526
- $popupGalleryContainer.find('tr.show_download_button, tr.show_slideshow, tr.show_thumbs')[ 'fancybox' === vendor ? 'show' : 'hide' ]();
527
- }
528
-
529
- updateControls();
530
- $('form').on('change', updateControls);
531
-
532
  // Don't allow adding input number values that > then max attribute and < min attribute.
533
  $('form').on('input', '[type="number"]', function(e) {
534
  var current = parseFloat( this.value );
129
  array(
130
  'id' => 'vp_general',
131
  'title' => esc_html__( 'General', 'visual-portfolio' ),
132
+ 'icon' => '<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4" /></svg>',
133
  ),
134
  array(
135
  'id' => 'vp_images',
136
  'title' => esc_html__( 'Images', 'visual-portfolio' ),
137
+ 'icon' => '<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z" /></svg>',
138
  ),
139
  array(
140
  'id' => 'vp_popup_gallery',
141
  'title' => esc_html__( 'Popup Gallery', 'visual-portfolio' ),
142
+ 'icon' => '<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"></path></svg>',
143
+ ),
144
+ array(
145
+ 'id' => 'vp_watermarks',
146
+ 'title' => esc_html__( 'Watermarks', 'visual-portfolio' ),
147
+ 'icon' => '<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z" /></svg>',
148
  ),
149
  array(
150
  'id' => 'vp_social_integrations',
151
  'title' => esc_html__( 'Social Integrations', 'visual-portfolio' ),
152
+ 'icon' => '<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9" /></svg>',
153
+ ),
154
+ array(
155
+ 'id' => 'vp_white_label',
156
+ 'title' => esc_html__( 'White Label', 'visual-portfolio' ),
157
+ 'icon' => '<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4M7.835 4.697a3.42 3.42 0 001.946-.806 3.42 3.42 0 014.438 0 3.42 3.42 0 001.946.806 3.42 3.42 0 013.138 3.138 3.42 3.42 0 00.806 1.946 3.42 3.42 0 010 4.438 3.42 3.42 0 00-.806 1.946 3.42 3.42 0 01-3.138 3.138 3.42 3.42 0 00-1.946.806 3.42 3.42 0 01-4.438 0 3.42 3.42 0 00-1.946-.806 3.42 3.42 0 01-3.138-3.138 3.42 3.42 0 00-.806-1.946 3.42 3.42 0 010-4.438 3.42 3.42 0 00.806-1.946 3.42 3.42 0 013.138-3.138z" /></svg>',
158
  ),
159
  );
160
 
200
  'name' => 'ajax_caching',
201
  'label' => esc_html__( 'AJAX Cache and Preload', 'visual-portfolio' ),
202
  'desc' => esc_html__( 'Reduce AJAX calls request time.', 'visual-portfolio' ),
203
+ 'type' => 'toggle',
204
  'default' => ! class_exists( 'Visual_Portfolio_Pro' ) ? 'off' : 'on',
205
  'is_pro' => true,
206
  ),
209
  array(
210
  'name' => 'breakpoints_title',
211
  'label' => esc_html__( 'Responsive Breakpoints', 'visual-portfolio' ),
212
+ 'type' => 'section_title',
213
  'is_pro' => true,
214
  ),
215
  array(
216
  'name' => 'breakpoint_xl',
217
  'label' => esc_html__( 'Extra Large', 'visual-portfolio' ),
218
  'type' => 'number',
219
+ 'min' => (float) $default_breakpoints['lg'] + 1,
220
  'max' => 3840,
221
  'placeholder' => (string) $default_breakpoints['xl'],
222
+ 'default' => (float) $default_breakpoints['xl'],
223
  // translators: %1$s - default breakpoint.
224
  'desc' => sprintf( wp_kses_post( __( 'Sets the breakpoint on extra large screen sizes (Default: %1$spx).', 'visual-portfolio' ) ), $default_breakpoints['xl'] ),
225
  'is_pro' => true,
228
  'name' => 'breakpoint_lg',
229
  'label' => esc_html__( 'Large', 'visual-portfolio' ),
230
  'type' => 'number',
231
+ 'min' => (float) $default_breakpoints['md'] + 1,
232
+ 'max' => (float) $default_breakpoints['xl'] - 1,
233
  'placeholder' => (string) $default_breakpoints['lg'],
234
+ 'default' => (float) $default_breakpoints['lg'],
235
  // translators: %1$s - default breakpoint.
236
  'desc' => sprintf( wp_kses_post( __( 'Sets the breakpoint on large screen sizes (Default: %1$spx).', 'visual-portfolio' ) ), $default_breakpoints['lg'] ),
237
  'is_pro' => true,
240
  'name' => 'breakpoint_md',
241
  'label' => esc_html__( 'Medium', 'visual-portfolio' ),
242
  'type' => 'number',
243
+ 'min' => (float) $default_breakpoints['sm'] + 1,
244
+ 'max' => (float) $default_breakpoints['lg'] - 1,
245
  'placeholder' => (string) $default_breakpoints['md'],
246
+ 'default' => (float) $default_breakpoints['md'],
247
  // translators: %1$s - default breakpoint.
248
  'desc' => sprintf( wp_kses_post( __( 'Sets the breakpoint on medium screen sizes (Default: %1$spx).', 'visual-portfolio' ) ), $default_breakpoints['md'] ),
249
  'is_pro' => true,
252
  'name' => 'breakpoint_sm',
253
  'label' => esc_html__( 'Small', 'visual-portfolio' ),
254
  'type' => 'number',
255
+ 'min' => (float) $default_breakpoints['xs'] + 1,
256
+ 'max' => (float) $default_breakpoints['md'] - 1,
257
  'placeholder' => (string) $default_breakpoints['sm'],
258
+ 'default' => (float) $default_breakpoints['sm'],
259
  // translators: %1$s - default breakpoint.
260
  'desc' => sprintf( wp_kses_post( __( 'Sets the breakpoint on small screen sizes (Default: %1$spx).', 'visual-portfolio' ) ), $default_breakpoints['sm'] ),
261
  'is_pro' => true,
265
  'label' => esc_html__( 'Extra Small', 'visual-portfolio' ),
266
  'type' => 'number',
267
  'min' => 1,
268
+ 'max' => (float) $default_breakpoints['sm'] - 1,
269
  'placeholder' => (string) $default_breakpoints['xs'],
270
+ 'default' => (float) $default_breakpoints['xs'],
271
  // translators: %1$s - default breakpoint.
272
  'desc' => sprintf( wp_kses_post( __( 'Sets the breakpoint on extra small screen sizes (Default: %1$spx).', 'visual-portfolio' ) ), $default_breakpoints['xs'] ),
273
  'is_pro' => true,
277
  array(
278
  'name' => 'lazy_loading',
279
  'label' => esc_html__( 'Lazy Loading', 'visual-portfolio' ),
280
+ // translators: %s - plugin brand name.
281
+ 'desc' => sprintf( esc_html__( 'Enable lazy loading for %s layouts only or for the whole website.', 'visual-portfolio' ), visual_portfolio()->plugin_name ),
282
+ 'type' => 'select',
283
  'default' => 'vp',
284
  'options' => array(
285
  '' => esc_html__( 'Disabled', 'visual-portfolio' ),
286
+ // translators: %s - plugin brand name.
287
+ 'vp' => sprintf( esc_html__( '%s Only', 'visual-portfolio' ), visual_portfolio()->plugin_name ),
288
  'full' => esc_html__( 'All images', 'visual-portfolio' ),
289
  ),
290
  ),
291
 
 
 
 
 
 
292
  array(
293
  'name' => 'images_layouts_title',
294
+ 'label' => esc_html__( 'Layouts Image Sizes', 'visual-portfolio' ),
295
  'desc' => __( 'Image sizes used in portfolio layouts.', 'visual-portfolio' ),
296
+ 'type' => 'section_title',
297
  ),
298
  array(
299
  'name' => 'sm',
325
  ),
326
  array(
327
  'name' => 'images_popup_title',
328
+ 'label' => esc_html__( 'Popup Gallery Image Sizes', 'visual-portfolio' ),
329
  'desc' => __( 'Image sizes used in popup gallery images.', 'visual-portfolio' ),
330
+ 'type' => 'section_title',
331
  ),
332
  array(
333
  'name' => 'sm_popup',
375
  'name' => 'enable_on_wordpress_images',
376
  'label' => esc_html__( 'WordPress Images', 'visual-portfolio' ),
377
  'desc' => esc_html__( 'Enable popup for WordPress images and galleries.', 'visual-portfolio' ),
378
+ 'type' => 'toggle',
379
  'default' => 'off',
380
  ),
381
 
382
+ // Section divider.
383
+ array(
384
+ 'name' => 'popup_general_divider_title',
385
+ 'type' => 'section_title',
386
+ ),
387
+
388
  // Deeplinking.
389
  array(
390
  'name' => 'deep_linking',
391
  'label' => esc_html__( 'Deep Linking', 'visual-portfolio' ),
392
  'desc' => esc_html__( 'Makes URL automatically change to reflect the current opened popup, and you can easily link directly to that image or video.', 'visual-portfolio' ),
393
+ 'type' => 'toggle',
394
  'default' => ! class_exists( 'Visual_Portfolio_Pro' ) ? 'off' : 'on',
395
  'is_pro' => true,
396
  ),
398
  'name' => 'deep_linking_url_to_share_images',
399
  'label' => esc_html__( 'Use Deep Linking URL to Share Images', 'visual-portfolio' ),
400
  'desc' => esc_html__( 'Check to share Deep Linking URLs when sharing images. When disabled, all galleries will share direct links to image files.', 'visual-portfolio' ),
401
+ 'type' => 'toggle',
402
  'default' => 'off',
403
  'is_pro' => true,
404
  ),
405
 
406
+ // Loop.
407
+ array(
408
+ 'name' => 'loop',
409
+ 'label' => esc_html__( 'Loop', 'visual-portfolio' ),
410
+ 'type' => 'toggle',
411
+ 'default' => 'on',
412
+ 'is_pro' => true,
413
+ ),
414
+
415
+ // Click to Zoom.
416
+ array(
417
+ 'name' => 'click_to_zoom',
418
+ 'label' => esc_html__( 'Click to Zoom', 'visual-portfolio' ),
419
+ 'type' => 'toggle',
420
+ 'default' => 'on',
421
+ ),
422
+
423
+ // UI Elements.
424
+ array(
425
+ 'name' => 'popup_ui_elements_title',
426
+ 'label' => esc_html__( 'UI Elements', 'visual-portfolio' ),
427
+ 'type' => 'section_title',
428
+ ),
429
  array(
430
  'name' => 'show_arrows',
431
  'label' => esc_html__( 'Display Arrows', 'visual-portfolio' ),
432
  'desc' => esc_html__( 'Arrows to navigate between images.', 'visual-portfolio' ),
433
+ 'type' => 'toggle',
434
  'default' => 'on',
435
  ),
436
  array(
437
  'name' => 'show_counter',
438
  'label' => esc_html__( 'Display Images Counter', 'visual-portfolio' ),
439
  'desc' => esc_html__( 'On the top left corner will be showed images counter.', 'visual-portfolio' ),
440
+ 'type' => 'toggle',
441
  'default' => 'on',
442
  ),
443
  array(
444
  'name' => 'show_zoom_button',
445
  'label' => esc_html__( 'Display Zoom Button', 'visual-portfolio' ),
446
+ 'type' => 'toggle',
447
  'default' => 'on',
448
  ),
449
  array(
450
  'name' => 'show_fullscreen_button',
451
  'label' => esc_html__( 'Display Fullscreen Button', 'visual-portfolio' ),
452
+ 'type' => 'toggle',
453
  'default' => 'on',
454
  ),
455
  array(
456
  'name' => 'show_share_button',
457
  'label' => esc_html__( 'Display Share Button', 'visual-portfolio' ),
458
+ 'type' => 'toggle',
459
  'default' => 'on',
460
  ),
461
  array(
462
  'name' => 'show_close_button',
463
  'label' => esc_html__( 'Display Close Button', 'visual-portfolio' ),
464
+ 'type' => 'toggle',
465
  'default' => 'on',
466
  ),
467
 
468
  // Fancybox Popup Settings.
469
  array(
470
+ 'name' => 'show_thumbs',
471
+ 'label' => esc_html__( 'Display Thumbnails', 'visual-portfolio' ),
472
+ 'type' => 'toggle',
473
+ 'default' => 'on',
474
+ 'condition' => array(
475
+ array(
476
+ 'control' => '[name="vp_popup_gallery[vendor]"]',
477
+ 'operator' => '===',
478
+ 'value' => 'fancybox',
479
+ ),
480
+ ),
481
  ),
482
  array(
483
+ 'name' => 'thumbs_auto_start',
484
+ 'label' => esc_html__( 'Thumbnails Opened At Startup', 'visual-portfolio' ),
485
+ 'type' => 'toggle',
486
+ 'default' => 'off',
487
+ 'is_pro' => true,
488
+ 'condition' => array(
489
+ array(
490
+ 'control' => '[type="checkbox"][name="vp_popup_gallery[show_thumbs]"]',
491
+ ),
492
+ array(
493
+ 'control' => '[name="vp_popup_gallery[vendor]"]',
494
+ 'operator' => '===',
495
+ 'value' => 'fancybox',
496
+ ),
497
+ ),
498
  ),
499
  array(
500
+ 'name' => 'thumbs_position',
501
+ 'label' => esc_html__( 'Thumbnails Position', 'visual-portfolio' ),
502
+ 'type' => 'select',
503
+ 'default' => 'vertical',
504
+ 'options' => array(
505
+ 'vertical' => esc_html__( 'Vertical', 'visual-portfolio' ),
506
+ 'horizontal' => esc_html__( 'Horizontal', 'visual-portfolio' ),
507
+ ),
508
+ 'is_pro' => true,
509
+ 'condition' => array(
510
+ array(
511
+ 'control' => '[type="checkbox"][name="vp_popup_gallery[show_thumbs]"]',
512
+ ),
513
+ array(
514
+ 'control' => '[name="vp_popup_gallery[vendor]"]',
515
+ 'operator' => '===',
516
+ 'value' => 'fancybox',
517
+ ),
518
+ ),
519
  ),
 
 
520
  array(
521
+ 'name' => 'show_download_button',
522
+ 'label' => esc_html__( 'Display Download Button', 'visual-portfolio' ),
523
+ 'type' => 'toggle',
524
+ 'default' => 'off',
525
+ 'condition' => array(
526
+ array(
527
+ 'control' => '[name="vp_popup_gallery[vendor]"]',
528
+ 'operator' => '===',
529
+ 'value' => 'fancybox',
530
+ ),
531
+ ),
532
+ ),
533
+ array(
534
+ 'name' => 'show_slideshow',
535
+ 'label' => esc_html__( 'Display Slideshow', 'visual-portfolio' ),
536
+ 'type' => 'toggle',
537
+ 'default' => 'off',
538
+ 'condition' => array(
539
+ array(
540
+ 'control' => '[name="vp_popup_gallery[vendor]"]',
541
+ 'operator' => '===',
542
+ 'value' => 'fancybox',
543
+ ),
544
+ ),
545
  ),
546
 
547
+ // Misc settings.
548
+ array(
549
+ 'name' => 'popup_misc_title',
550
+ 'label' => esc_html__( 'Misc', 'visual-portfolio' ),
551
+ 'type' => 'section_title',
552
+ ),
553
  array(
554
  'name' => 'background_color',
555
  'label' => esc_html__( 'Background Color', 'visual-portfolio' ),
556
  'type' => 'color',
557
  'default' => '#1e1e1e',
558
  ),
 
 
559
  array(
560
  'name' => 'pages_iframe_custom_css',
561
  'label' => esc_html__( 'Pages iFrame Custom CSS', 'visual-portfolio' ),
571
  'is_pro' => true,
572
  ),
573
  ),
574
+ 'vp_watermarks' => array(
575
+ array(
576
+ 'name' => 'pro_info',
577
+ 'desc' => '
578
+ <div class="vpf-settings-info-pro">
579
+ <h3>' . esc_html__( 'Pro Feature', 'visual-portfolio' ) . '</h3>
580
+ <div>
581
+ <p>' . esc_html__( 'Protect your works using watermarks', 'visual-portfolio' ) . '</p>
582
+ <a class="vpf-settings-info-pro-button" target="_blank" rel="noopener noreferrer" href="https://visualportfolio.co/pro/?utm_source=freeplugin&utm_medium=link&utm_campaign=plugin_settings&utm_content=2.11.0">' . esc_html__( 'Read More', 'visual-portfolio' ) . '</a>
583
+ </div>
584
+ </div>
585
+ ',
586
+ 'type' => 'html',
587
+ ),
588
+ ),
589
  'vp_social_integrations' => array(
590
  array(
591
+ 'name' => 'pro_info',
592
  'desc' => '
593
  <div class="vpf-settings-info-pro">
594
+ <h3>' . esc_html__( 'Pro Feature', 'visual-portfolio' ) . '</h3>
595
  <div>
596
  <p>' . esc_html__( 'Social feeds such as Instagram, Youtube, Flickr, Twitter, etc...', 'visual-portfolio' ) . '</p>
597
+ <a class="vpf-settings-info-pro-button" target="_blank" rel="noopener noreferrer" href="https://visualportfolio.co/pro/?utm_source=freeplugin&utm_medium=link&utm_campaign=plugin_settings&utm_content=2.11.0">' . esc_html__( 'Read More', 'visual-portfolio' ) . '</a>
598
+ </div>
599
+ </div>
600
+ ',
601
+ 'type' => 'html',
602
+ ),
603
+ ),
604
+ 'vp_white_label' => array(
605
+ array(
606
+ 'name' => 'pro_info',
607
+ 'desc' => '
608
+ <div class="vpf-settings-info-pro">
609
+ <h3>' . esc_html__( 'Pro Feature', 'visual-portfolio' ) . '</h3>
610
+ <div>
611
+ <p>' . esc_html__( 'Remove our plugin brand and logos from Front and Admin areas', 'visual-portfolio' ) . '</p>
612
+ <a class="vpf-settings-info-pro-button" target="_blank" rel="noopener noreferrer" href="https://visualportfolio.co/pro/?utm_source=freeplugin&utm_medium=link&utm_campaign=plugin_settings&utm_content=2.11.0">' . esc_html__( 'Read More', 'visual-portfolio' ) . '</a>
613
  </div>
614
  </div>
615
  ',
630
  self::$settings_api->admin_enqueue_scripts();
631
 
632
  echo '<div class="wrap">';
633
+ echo '<h2>' . esc_html__( 'Settings', 'visual-portfolio' ) . '</h2>';
634
 
635
  self::$settings_api->show_navigation();
636
  self::$settings_api->show_forms();
640
  ?>
641
  <script>
642
  (function( $ ) {
 
 
 
 
 
 
 
 
 
 
 
 
643
  // Don't allow adding input number values that > then max attribute and < min attribute.
644
  $('form').on('input', '[type="number"]', function(e) {
645
  var current = parseFloat( this.value );
classes/class-supported-themes.php CHANGED
@@ -63,6 +63,12 @@ class Visual_Portfolio_Supported_Themes {
63
  'url' => visual_portfolio()->plugin_url . 'assets/css/theme-twentyfifteen.min.css',
64
  );
65
  break;
 
 
 
 
 
 
66
  }
67
 
68
  return $result;
@@ -74,7 +80,7 @@ class Visual_Portfolio_Supported_Themes {
74
  public function wp_enqueue_scripts() {
75
  $theme_compat = $this->get_theme_compatibility_style();
76
  if ( $theme_compat ) {
77
- wp_enqueue_style( $theme_compat['name'], $theme_compat['url'], array(), '2.10.5' );
78
  wp_style_add_data( $theme_compat['name'], 'rtl', 'replace' );
79
  wp_style_add_data( $theme_compat['name'], 'suffix', '.min' );
80
  }
63
  'url' => visual_portfolio()->plugin_url . 'assets/css/theme-twentyfifteen.min.css',
64
  );
65
  break;
66
+ case 'airtifact':
67
+ $result = array(
68
+ 'name' => 'vpf-airtifact',
69
+ 'url' => visual_portfolio()->plugin_url . 'assets/css/theme-airtifact.min.css',
70
+ );
71
+ break;
72
  }
73
 
74
  return $result;
80
  public function wp_enqueue_scripts() {
81
  $theme_compat = $this->get_theme_compatibility_style();
82
  if ( $theme_compat ) {
83
+ wp_enqueue_style( $theme_compat['name'], $theme_compat['url'], array(), '2.11.0' );
84
  wp_style_add_data( $theme_compat['name'], 'rtl', 'replace' );
85
  wp_style_add_data( $theme_compat['name'], 'suffix', '.min' );
86
  }
gutenberg/block-saved/edit.js CHANGED
@@ -13,7 +13,10 @@ import SelectControl from '../components/select-control';
13
  /**
14
  * WordPress dependencies
15
  */
16
- const { __ } = wp.i18n;
 
 
 
17
 
18
  const {
19
  Component,
@@ -35,6 +38,10 @@ const {
35
  InspectorControls,
36
  } = wp.blockEditor;
37
 
 
 
 
 
38
  /**
39
  * Block Edit Class.
40
  */
@@ -152,7 +159,7 @@ class BlockEdit extends Component {
152
  <Placeholder
153
  className="vpf-setup-wizard-saved"
154
  icon={ <ElementIcon width="20" height="20" /> }
155
- label={ __( 'Saved Visual Portfolio', 'visual-portfolio' ) }
156
  >
157
  { this.getSelector() }
158
  </Placeholder>
13
  /**
14
  * WordPress dependencies
15
  */
16
+ const {
17
+ __,
18
+ sprintf,
19
+ } = wp.i18n;
20
 
21
  const {
22
  Component,
38
  InspectorControls,
39
  } = wp.blockEditor;
40
 
41
+ const {
42
+ plugin_name: pluginName,
43
+ } = window.VPGutenbergVariables;
44
+
45
  /**
46
  * Block Edit Class.
47
  */
159
  <Placeholder
160
  className="vpf-setup-wizard-saved"
161
  icon={ <ElementIcon width="20" height="20" /> }
162
+ label={ sprintf( __( 'Saved %s', 'visual-portfolio' ), pluginName ) }
163
  >
164
  { this.getSelector() }
165
  </Placeholder>
gutenberg/block-saved/index.js CHANGED
@@ -10,7 +10,10 @@ import deprecated from './deprecated';
10
  /**
11
  * WordPress dependencies
12
  */
13
- const { __ } = wp.i18n;
 
 
 
14
 
15
  const {
16
  registerBlockType,
@@ -19,13 +22,17 @@ const {
19
 
20
  const { name } = metadata;
21
 
 
 
 
 
22
  const hasMediaCategory = getCategories().some( ( category ) => 'media' === category.slug );
23
 
24
  const settings = {
25
  ...metadata,
26
  category: hasMediaCategory ? metadata.category : 'common',
27
- title: __( 'Visual Portfolio Saved', 'visual-portfolio' ),
28
- description: __( 'Display saved Visual Portfolio layouts.', 'visual-portfolio' ),
29
  icon: {
30
  foreground: '#2540CC',
31
  src: (
10
  /**
11
  * WordPress dependencies
12
  */
13
+ const {
14
+ __,
15
+ sprintf,
16
+ } = wp.i18n;
17
 
18
  const {
19
  registerBlockType,
22
 
23
  const { name } = metadata;
24
 
25
+ const {
26
+ plugin_name: pluginName,
27
+ } = window.VPGutenbergVariables;
28
+
29
  const hasMediaCategory = getCategories().some( ( category ) => 'media' === category.slug );
30
 
31
  const settings = {
32
  ...metadata,
33
  category: hasMediaCategory ? metadata.category : 'common',
34
+ title: sprintf( __( '%s Saved', 'visual-portfolio' ), pluginName ),
35
+ description: sprintf( __( 'Display saved %s layouts.', 'visual-portfolio' ), pluginName ),
36
  icon: {
37
  foreground: '#2540CC',
38
  src: (
gutenberg/block/edit.js CHANGED
@@ -13,8 +13,6 @@ import IframePreview from '../components/iframe-preview';
13
  /**
14
  * WordPress dependencies
15
  */
16
- const { __ } = wp.i18n;
17
-
18
  const {
19
  Component,
20
  Fragment,
@@ -29,6 +27,7 @@ const {
29
  } = wp.blockEditor;
30
 
31
  const {
 
32
  controls_categories: registeredControlsCategories,
33
  } = window.VPGutenbergVariables;
34
 
@@ -176,7 +175,7 @@ export default class BlockEdit extends Component {
176
  <Placeholder
177
  className="vpf-setup-wizard"
178
  icon={ <ElementIcon width="20" height="20" /> }
179
- label={ __( 'Visual Portfolio', 'visual-portfolio' ) }
180
  >
181
  { this.renderControls( this.props, true ) }
182
  </Placeholder>
13
  /**
14
  * WordPress dependencies
15
  */
 
 
16
  const {
17
  Component,
18
  Fragment,
27
  } = wp.blockEditor;
28
 
29
  const {
30
+ plugin_name: pluginName,
31
  controls_categories: registeredControlsCategories,
32
  } = window.VPGutenbergVariables;
33
 
175
  <Placeholder
176
  className="vpf-setup-wizard"
177
  icon={ <ElementIcon width="20" height="20" /> }
178
+ label={ pluginName }
179
  >
180
  { this.renderControls( this.props, true ) }
181
  </Placeholder>
gutenberg/block/index.js CHANGED
@@ -21,12 +21,16 @@ const {
21
 
22
  const { name } = metadata;
23
 
 
 
 
 
24
  const hasMediaCategory = getCategories().some( ( category ) => 'media' === category.slug );
25
 
26
  const settings = {
27
  ...metadata,
28
  category: hasMediaCategory ? metadata.category : 'common',
29
- title: __( 'Visual Portfolio', 'visual-portfolio' ),
30
  description: __( 'Display galleries, posts and portfolio grids.', 'visual-portfolio' ),
31
  icon: {
32
  foreground: '#2540CC',
21
 
22
  const { name } = metadata;
23
 
24
+ const {
25
+ plugin_name: pluginName,
26
+ } = window.VPGutenbergVariables;
27
+
28
  const hasMediaCategory = getCategories().some( ( category ) => 'media' === category.slug );
29
 
30
  const settings = {
31
  ...metadata,
32
  category: hasMediaCategory ? metadata.category : 'common',
33
+ title: pluginName,
34
  description: __( 'Display galleries, posts and portfolio grids.', 'visual-portfolio' ),
35
  icon: {
36
  foreground: '#2540CC',
gutenberg/components/controls-render/index.js CHANGED
@@ -463,7 +463,7 @@ ControlsRender.Control = function( props ) {
463
  { renderControlHelp ? (
464
  <p>{ renderControlHelp }</p>
465
  ) : '' }
466
- <ProNote.Button target="_blank" rel="noopener noreferrer" href="https://visualportfolio.co/pro/?utm_source=freeplugin&amp;utm_medium=link&amp;utm_campaign=block_settings&amp;utm_content=2.10.5">
467
  { __( 'Read More', 'visual-portfolio' ) }
468
  </ProNote.Button>
469
  </ProNote>
463
  { renderControlHelp ? (
464
  <p>{ renderControlHelp }</p>
465
  ) : '' }
466
+ <ProNote.Button target="_blank" rel="noopener noreferrer" href="https://visualportfolio.co/pro/?utm_source=freeplugin&amp;utm_medium=link&amp;utm_campaign=block_settings&amp;utm_content=2.11.0">
467
  { __( 'Read More', 'visual-portfolio' ) }
468
  </ProNote.Button>
469
  </ProNote>
gutenberg/components/iframe-preview/index.js CHANGED
@@ -53,6 +53,7 @@ class IframePreview extends Component {
53
  this.state = {
54
  loading: true,
55
  uniqueId: `vpf-preview-${ uniqueIdCount }`,
 
56
  latestIframeHeight: 0,
57
  };
58
 
@@ -68,13 +69,17 @@ class IframePreview extends Component {
68
  this.maybeReloadDebounce = debounce( 300, rafSchd( this.maybeReload.bind( this ) ) );
69
  this.maybeResizePreviews = this.maybeResizePreviews.bind( this );
70
  this.maybeResizePreviewsThrottle = throttle( 100, rafSchd( this.maybeResizePreviews ) );
 
 
71
  this.printInput = this.printInput.bind( this );
72
  }
73
 
74
  componentDidMount() {
 
 
75
  const {
76
  clientId,
77
- } = this.props;
78
 
79
  iframeResizer( {
80
  interval: 10,
@@ -88,12 +93,15 @@ class IframePreview extends Component {
88
  window.focus();
89
  }
90
  },
91
- }, this.frameRef.current );
 
 
 
92
 
93
- this.frameRef.current.addEventListener( 'load', this.onFrameLoad );
94
- window.addEventListener( 'resize', this.maybeResizePreviewsThrottle );
95
 
96
- this.maybeReload();
97
  }
98
 
99
  componentDidUpdate( prevProps ) {
@@ -219,7 +227,7 @@ class IframePreview extends Component {
219
  let latestIframeHeight = 0;
220
 
221
  if ( this.frameRef.current ) {
222
- latestIframeHeight = this.frameRef.current.scrollHeight;
223
  }
224
 
225
  this.setState( {
@@ -241,10 +249,9 @@ class IframePreview extends Component {
241
 
242
  const frame = this.frameRef.current;
243
  const $frame = $( frame );
244
- const $inner = $frame.closest( '.visual-portfolio-gutenberg-preview-inner' );
245
  const parentWidth = $frame.closest( '.visual-portfolio-gutenberg-preview' ).width();
246
 
247
- $inner.css( {
248
  width: contentWidth,
249
  } );
250
 
@@ -257,6 +264,15 @@ class IframePreview extends Component {
257
  }
258
  }
259
 
 
 
 
 
 
 
 
 
 
260
  /**
261
  * Prepare form input for POST variables.
262
  *
@@ -299,6 +315,7 @@ class IframePreview extends Component {
299
  const {
300
  loading,
301
  uniqueId,
 
302
  latestIframeHeight,
303
  } = this.state;
304
 
@@ -313,7 +330,7 @@ class IframePreview extends Component {
313
  'visual-portfolio-gutenberg-preview',
314
  loading ? 'visual-portfolio-gutenberg-preview-loading' : ''
315
  ) }
316
- style={ loading ? { minHeight: latestIframeHeight } : {} }
317
  >
318
  <div className="visual-portfolio-gutenberg-preview-inner">
319
  <form
53
  this.state = {
54
  loading: true,
55
  uniqueId: `vpf-preview-${ uniqueIdCount }`,
56
+ currentIframeHeight: 0,
57
  latestIframeHeight: 0,
58
  };
59
 
69
  this.maybeReloadDebounce = debounce( 300, rafSchd( this.maybeReload.bind( this ) ) );
70
  this.maybeResizePreviews = this.maybeResizePreviews.bind( this );
71
  this.maybeResizePreviewsThrottle = throttle( 100, rafSchd( this.maybeResizePreviews ) );
72
+ this.updateIframeHeight = this.updateIframeHeight.bind( this );
73
+ this.updateIframeHeightThrottle = throttle( 100, rafSchd( this.updateIframeHeight ) );
74
  this.printInput = this.printInput.bind( this );
75
  }
76
 
77
  componentDidMount() {
78
+ const self = this;
79
+
80
  const {
81
  clientId,
82
+ } = self.props;
83
 
84
  iframeResizer( {
85
  interval: 10,
93
  window.focus();
94
  }
95
  },
96
+ onResized( { height } ) {
97
+ self.updateIframeHeightThrottle( `${ height }px` );
98
+ },
99
+ }, self.frameRef.current );
100
 
101
+ self.frameRef.current.addEventListener( 'load', self.onFrameLoad );
102
+ window.addEventListener( 'resize', self.maybeResizePreviewsThrottle );
103
 
104
+ self.maybeReload();
105
  }
106
 
107
  componentDidUpdate( prevProps ) {
227
  let latestIframeHeight = 0;
228
 
229
  if ( this.frameRef.current ) {
230
+ latestIframeHeight = this.state.currentIframeHeight;
231
  }
232
 
233
  this.setState( {
249
 
250
  const frame = this.frameRef.current;
251
  const $frame = $( frame );
 
252
  const parentWidth = $frame.closest( '.visual-portfolio-gutenberg-preview' ).width();
253
 
254
+ $frame.css( {
255
  width: contentWidth,
256
  } );
257
 
264
  }
265
  }
266
 
267
+ /**
268
+ * Update iframe height.
269
+ */
270
+ updateIframeHeight( newHeight ) {
271
+ this.setState( {
272
+ currentIframeHeight: newHeight,
273
+ } );
274
+ }
275
+
276
  /**
277
  * Prepare form input for POST variables.
278
  *
315
  const {
316
  loading,
317
  uniqueId,
318
+ currentIframeHeight,
319
  latestIframeHeight,
320
  } = this.state;
321
 
330
  'visual-portfolio-gutenberg-preview',
331
  loading ? 'visual-portfolio-gutenberg-preview-loading' : ''
332
  ) }
333
+ style={ { height: loading ? latestIframeHeight : currentIframeHeight } }
334
  >
335
  <div className="visual-portfolio-gutenberg-preview-inner">
336
  <form
gutenberg/custom-post-meta.min.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=267)}({267:function(e,t,n){e.exports=n(277)},268:function(e,t){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})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=l(e);if(t){var r=l(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=wp.i18n.__,f=wp.compose,p=f.withInstanceId,s=f.compose,m=wp.data,d=m.withSelect,b=m.withDispatch,y=wp.element,v=y.Fragment,h=y.Component,w=wp.components,_=w.PanelRow,g=w.FocalPointPicker,P=wp.hooks.addFilter,O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(f,e);var t,n,u,l=a(f);function f(){return o(this,f),l.apply(this,arguments)}return t=f,(n=[{key:"render",value:function(){var e=this.props,t=e.getMeta,n=e.thumbnailData,o=e.updateMeta,r="";if(n&&(r=n.source_url,n.mime_type&&"image/gif"===n.mime_type||(n.media_details&&n.media_details.sizes&&n.media_details.sizes["post-thumbnail"]?r=n.media_details.sizes["post-thumbnail"].source_url:n.media_details&&n.media_details.sizes&&n.media_details.sizes.thumbnail&&(r=n.media_details.sizes.thumbnail.source_url))),!r)return null;var i=t("_vp_image_focal_point");return i&&i.x&&i.y||(i={x:"0.5",y:"0.5"}),wp.element.createElement("div",{className:"vpf-post-image-focal-point-panel"},wp.element.createElement(_,null,wp.element.createElement("p",{className:"description"},c("Focal point will be used in Visual Portfolio layouts only.","@@text_domain"))),wp.element.createElement(_,null,wp.element.createElement(g,{url:r,value:i,onChange:function(e){o("_vp_image_focal_point",e)}})))}}])&&r(t.prototype,n),u&&r(t,u),f}(h),j=s([d((function(e){var t=e("core/editor").getEditedPostAttribute,n=e("core").getMedia,o=t("featured_media"),r=t("meta")||{};return{thumbnailData:o?n(o):null,getMeta:function(e){return r[e]}}})),b((function(e){return{updateMeta:function(t,n){var o,r,i;e("core/editor").editPost({meta:(o={},r=t,i=n,r in o?Object.defineProperty(o,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[r]=i,o)})}}})),p])(O);P("editor.PostFeaturedImage","vpf/post-featured-image-focal-point",(function(e){return function(t){return wp.element.createElement(v,null,wp.element.createElement(j,null),wp.element.createElement(e,t))}}))},277:function(e,t,n){"use strict";n.r(t);var o=n(3),r=n(4);function i(e){return(i="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)}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=p(e);if(t){var r=p(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?f(e):t}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var s=wp.i18n.__,m=wp.compose,d=m.withInstanceId,b=m.compose,y=wp.data,v=y.withSelect,h=y.withDispatch,w=wp.element.Component,_=wp.components,g=_.PanelRow,P=_.TextControl,O=wp.editPost.PluginDocumentSettingPanel,j=wp.plugins.registerPlugin,S=window,x=S.jQuery,E=S.ajaxurl,M=S.VPGutenbergMetaVariables,C=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(p,e);var t,n,i,c=l(p);function p(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),(t=c.call(this,e)).state={oembedQuery:"",oembedHTML:""},t.maybePrepareOembed=Object(o.debounce)(300,Object(r.a)(t.maybePrepareOembed.bind(f(t)))),t}return t=p,(n=[{key:"componentDidMount",value:function(){this.maybePrepareOembed()}},{key:"componentDidUpdate",value:function(){this.maybePrepareOembed()}},{key:"maybePrepareOembed",value:function(){var e=this,t=this.state,n=t.oembedQuery,o=t.oembedHTML,r=this.props,i=r.getMeta;if("video"===(0,r.getPostFormat)()){var a=i("_vp_format_video_url");n!==a&&(this.oembedAjax&&this.oembedAjax.abort&&this.oembedAjax.abort(),n||!o?this.oembedAjax=x.ajax({url:E,method:"POST",dataType:"json",data:{action:"vp_find_oembed",q:a,nonce:M.nonce},complete:function(t){var n=t.responseJSON,o={oembedQuery:a,oembedHTML:""};n&&void 0!==n.html&&(o.oembedHTML=n.html),e.setState(o),e.oembedAjax=null}}):this.setState({oembedHTML:""}))}}},{key:"render",value:function(){var e=this.props,t=e.getMeta,n=e.getPostFormat,o=e.updateMeta,r=this.state.oembedHTML;return"video"!==n()?null:wp.element.createElement(O,{name:"VPVideo",title:s("Video","@@text_domain"),icon:wp.element.createElement("svg",{width:"14",height:"14",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M19.25 10C19.25 15.1086 15.1086 19.25 10 19.25C4.89137 19.25 0.75 15.1086 0.75 10C0.75 4.89137 4.89137 0.75 10 0.75C15.1086 0.75 19.25 4.89137 19.25 10Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"transparent"}),wp.element.createElement("path",{d:"M8 12.6326V7.36671C8.00011 7.30082 8.01856 7.23618 8.05342 7.17955C8.08828 7.12293 8.13826 7.0764 8.19812 7.04485C8.25798 7.0133 8.32552 6.99789 8.39367 7.00023C8.46181 7.00257 8.52805 7.02258 8.58544 7.05816L12.8249 9.69035C12.8786 9.72358 12.9228 9.76933 12.9534 9.82337C12.984 9.87742 13 9.93803 13 9.99963C13 10.0612 12.984 10.1218 12.9534 10.1759C12.9228 10.2299 12.8786 10.2757 12.8249 10.3089L8.58544 12.9418C8.52805 12.9774 8.46181 12.9974 8.39367 12.9998C8.32552 13.0021 8.25798 12.9867 8.19812 12.9551C8.13826 12.9236 8.08828 12.8771 8.05342 12.8204C8.01856 12.7638 8.00011 12.6992 8 12.6333V12.6326Z",fill:"currentColor"})),className:"vpf-meta-video-panel"},wp.element.createElement(g,null,wp.element.createElement("p",{className:"description"},s("Video will be used in Visual Portfolio layouts only. Full list of supported links","@@text_domain")," ",wp.element.createElement("a",{href:"https://visualportfolio.co/documentation/portfolio-items/video-portfolio-item/#supported-video-vendors",target:"_blank",rel:"noopener noreferrer"},s("see here","@@text_domain")))),wp.element.createElement(g,null,wp.element.createElement(P,{label:s("Video URL","@@text_domain"),value:t("_vp_format_video_url")||"",onChange:function(e){o("_vp_format_video_url",e)},type:"url",placeholder:"https://"})),wp.element.createElement(g,null,wp.element.createElement("div",{className:"vp-oembed-preview",dangerouslySetInnerHTML:{__html:r}})))}}])&&a(t.prototype,n),i&&a(t,i),p}(w);j("vp-video",{render:b([v((function(e){return{getMeta:function(t){return(e("core/editor").getEditedPostAttribute("meta")||{})[t]},getPostFormat:function(){return e("core/editor").getEditedPostAttribute("format")}}})),h((function(e){return{updateMeta:function(t,n){var o,r,i;e("core/editor").editPost({meta:(o={},r=t,i=n,r in o?Object.defineProperty(o,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[r]=i,o)})}}})),d])(C)});n(268)},3:function(e,t,n){var o,r,i,a;function u(e){return(u="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)}a=function(e){"use strict";function t(e,t,n,o){var r,i=!1,a=0;function u(){r&&clearTimeout(r)}function l(){for(var l=arguments.length,c=new Array(l),f=0;f<l;f++)c[f]=arguments[f];var p=this,s=Date.now()-a;function m(){a=Date.now(),n.apply(p,c)}function d(){r=void 0}i||(o&&!r&&m(),u(),void 0===o&&s>e?m():!0!==t&&(r=setTimeout(o?d:m,void 0===o?e-s:e)))}return"boolean"!=typeof t&&(o=n,n=t,t=void 0),l.cancel=function(){u(),i=!0},l}e.debounce=function(e,n,o){return void 0===o?t(e,n,!1):t(e,o,!1!==n)},e.throttle=t,Object.defineProperty(e,"__esModule",{value:!0})},"object"===u(t)&&void 0!==e?a(t):(r=[t],void 0===(i="function"==typeof(o=a)?o.apply(t,r):o)||(e.exports=i))},4:function(e,t,n){"use strict";t.a=function(e){var t=[],n=null,o=function(){for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];t=r,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return o.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},o}}});
1
+ !function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=267)}({267:function(e,t,n){e.exports=n(277)},268:function(e,t){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})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=l(e);if(t){var r=l(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=wp.i18n.__,f=wp.compose,p=f.withInstanceId,s=f.compose,m=wp.data,d=m.withSelect,b=m.withDispatch,y=wp.element,v=y.Fragment,h=y.Component,w=wp.components,_=w.PanelRow,g=w.FocalPointPicker,P=wp.hooks.addFilter,O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(f,e);var t,n,u,l=a(f);function f(){return o(this,f),l.apply(this,arguments)}return t=f,(n=[{key:"render",value:function(){var e=this.props,t=e.getMeta,n=e.thumbnailData,o=e.updateMeta,r="";if(n&&(r=n.source_url,n.mime_type&&"image/gif"===n.mime_type||(n.media_details&&n.media_details.sizes&&n.media_details.sizes["post-thumbnail"]?r=n.media_details.sizes["post-thumbnail"].source_url:n.media_details&&n.media_details.sizes&&n.media_details.sizes.thumbnail&&(r=n.media_details.sizes.thumbnail.source_url))),!r)return null;var i=t("_vp_image_focal_point");return i&&i.x&&i.y||(i={x:"0.5",y:"0.5"}),wp.element.createElement("div",{className:"vpf-post-image-focal-point-panel"},wp.element.createElement(_,null,wp.element.createElement("p",{className:"description"},c("Focal point will be used in Visual Portfolio layouts only.","@@text_domain"))),wp.element.createElement(_,null,wp.element.createElement(g,{url:r,value:i,onChange:function(e){o("_vp_image_focal_point",e)}})))}}])&&r(t.prototype,n),u&&r(t,u),f}(h),j=s([d((function(e){var t=e("core/editor").getEditedPostAttribute,n=e("core").getMedia,o=t("featured_media"),r=t("meta")||{};return{thumbnailData:o?n(o):null,getMeta:function(e){return r[e]}}})),b((function(e){return{updateMeta:function(t,n){var o,r,i;e("core/editor").editPost({meta:(o={},r=t,i=n,r in o?Object.defineProperty(o,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[r]=i,o)})}}})),p])(O);P("editor.PostFeaturedImage","vpf/post-featured-image-focal-point",(function(e){return function(t){return wp.element.createElement(v,null,wp.element.createElement(j,null),wp.element.createElement(e,t))}}))},277:function(e,t,n){"use strict";n.r(t);var o=n(3),r=n(4);function i(e){return(i="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)}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=p(e);if(t){var r=p(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?f(e):t}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var s=wp.i18n,m=s.__,d=s.sprintf,b=wp.compose,y=b.withInstanceId,v=b.compose,h=wp.data,w=h.withSelect,_=h.withDispatch,g=wp.element.Component,P=wp.components,O=P.PanelRow,j=P.TextControl,S=wp.editPost.PluginDocumentSettingPanel,x=wp.plugins.registerPlugin,E=window,M=E.jQuery,C=E.ajaxurl,T=E.VPGutenbergMetaVariables,k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(p,e);var t,n,i,c=l(p);function p(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),(t=c.call(this,e)).state={oembedQuery:"",oembedHTML:""},t.maybePrepareOembed=Object(o.debounce)(300,Object(r.a)(t.maybePrepareOembed.bind(f(t)))),t}return t=p,(n=[{key:"componentDidMount",value:function(){this.maybePrepareOembed()}},{key:"componentDidUpdate",value:function(){this.maybePrepareOembed()}},{key:"maybePrepareOembed",value:function(){var e=this,t=this.state,n=t.oembedQuery,o=t.oembedHTML,r=this.props,i=r.getMeta;if("video"===(0,r.getPostFormat)()){var a=i("_vp_format_video_url");n!==a&&(this.oembedAjax&&this.oembedAjax.abort&&this.oembedAjax.abort(),n||!o?this.oembedAjax=M.ajax({url:C,method:"POST",dataType:"json",data:{action:"vp_find_oembed",q:a,nonce:T.nonce},complete:function(t){var n=t.responseJSON,o={oembedQuery:a,oembedHTML:""};n&&void 0!==n.html&&(o.oembedHTML=n.html),e.setState(o),e.oembedAjax=null}}):this.setState({oembedHTML:""}))}}},{key:"render",value:function(){var e=this.props,t=e.getMeta,n=e.getPostFormat,o=e.updateMeta,r=this.state.oembedHTML;return"video"!==n()?null:wp.element.createElement(S,{name:"VPVideo",title:m("Video","@@text_domain"),icon:wp.element.createElement("svg",{width:"14",height:"14",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M19.25 10C19.25 15.1086 15.1086 19.25 10 19.25C4.89137 19.25 0.75 15.1086 0.75 10C0.75 4.89137 4.89137 0.75 10 0.75C15.1086 0.75 19.25 4.89137 19.25 10Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"transparent"}),wp.element.createElement("path",{d:"M8 12.6326V7.36671C8.00011 7.30082 8.01856 7.23618 8.05342 7.17955C8.08828 7.12293 8.13826 7.0764 8.19812 7.04485C8.25798 7.0133 8.32552 6.99789 8.39367 7.00023C8.46181 7.00257 8.52805 7.02258 8.58544 7.05816L12.8249 9.69035C12.8786 9.72358 12.9228 9.76933 12.9534 9.82337C12.984 9.87742 13 9.93803 13 9.99963C13 10.0612 12.984 10.1218 12.9534 10.1759C12.9228 10.2299 12.8786 10.2757 12.8249 10.3089L8.58544 12.9418C8.52805 12.9774 8.46181 12.9974 8.39367 12.9998C8.32552 13.0021 8.25798 12.9867 8.19812 12.9551C8.13826 12.9236 8.08828 12.8771 8.05342 12.8204C8.01856 12.7638 8.00011 12.6992 8 12.6333V12.6326Z",fill:"currentColor"})),className:"vpf-meta-video-panel"},wp.element.createElement(O,null,wp.element.createElement("p",{className:"description"},d(m("Video will be used in %s layouts only. Full list of supported links","@@text_domain"),T.plugin_name)," ",wp.element.createElement("a",{href:"https://visualportfolio.co/documentation/portfolio-items/video-portfolio-item/#supported-video-vendors",target:"_blank",rel:"noopener noreferrer"},m("see here","@@text_domain")))),wp.element.createElement(O,null,wp.element.createElement(j,{label:m("Video URL","@@text_domain"),value:t("_vp_format_video_url")||"",onChange:function(e){o("_vp_format_video_url",e)},type:"url",placeholder:"https://"})),wp.element.createElement(O,null,wp.element.createElement("div",{className:"vp-oembed-preview",dangerouslySetInnerHTML:{__html:r}})))}}])&&a(t.prototype,n),i&&a(t,i),p}(g);x("vp-video",{render:v([w((function(e){return{getMeta:function(t){return(e("core/editor").getEditedPostAttribute("meta")||{})[t]},getPostFormat:function(){return e("core/editor").getEditedPostAttribute("format")}}})),_((function(e){return{updateMeta:function(t,n){var o,r,i;e("core/editor").editPost({meta:(o={},r=t,i=n,r in o?Object.defineProperty(o,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[r]=i,o)})}}})),y])(k)});n(268)},3:function(e,t,n){var o,r,i,a;function u(e){return(u="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)}a=function(e){"use strict";function t(e,t,n,o){var r,i=!1,a=0;function u(){r&&clearTimeout(r)}function l(){for(var l=arguments.length,c=new Array(l),f=0;f<l;f++)c[f]=arguments[f];var p=this,s=Date.now()-a;function m(){a=Date.now(),n.apply(p,c)}function d(){r=void 0}i||(o&&!r&&m(),u(),void 0===o&&s>e?m():!0!==t&&(r=setTimeout(o?d:m,void 0===o?e-s:e)))}return"boolean"!=typeof t&&(o=n,n=t,t=void 0),l.cancel=function(){u(),i=!0},l}e.debounce=function(e,n,o){return void 0===o?t(e,n,!1):t(e,o,!1!==n)},e.throttle=t,Object.defineProperty(e,"__esModule",{value:!0})},"object"===u(t)&&void 0!==e?a(t):(r=[t],void 0===(i="function"==typeof(o=a)?o.apply(t,r):o)||(e.exports=i))},4:function(e,t,n){"use strict";t.a=function(e){var t=[],n=null,o=function(){for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];t=r,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return o.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},o}}});
gutenberg/custom-post-meta/video.js CHANGED
@@ -7,7 +7,10 @@ import rafSchd from 'raf-schd';
7
  /**
8
  * WordPress Dependencies
9
  */
10
- const { __ } = wp.i18n;
 
 
 
11
 
12
  const { withInstanceId, compose } = wp.compose;
13
 
@@ -146,7 +149,7 @@ class VpVideoComponent extends Component {
146
  >
147
  <PanelRow>
148
  <p className="description">
149
- { __( 'Video will be used in Visual Portfolio layouts only. Full list of supported links', 'visual-portfolio' ) }
150
  &nbsp;
151
  <a href="https://visualportfolio.co/documentation/portfolio-items/video-portfolio-item/#supported-video-vendors" target="_blank" rel="noopener noreferrer">
152
  { __( 'see here', 'visual-portfolio' ) }
7
  /**
8
  * WordPress Dependencies
9
  */
10
+ const {
11
+ __,
12
+ sprintf,
13
+ } = wp.i18n;
14
 
15
  const { withInstanceId, compose } = wp.compose;
16
 
149
  >
150
  <PanelRow>
151
  <p className="description">
152
+ { sprintf( __( 'Video will be used in %s layouts only. Full list of supported links', 'visual-portfolio' ), VPGutenbergMetaVariables.plugin_name ) }
153
  &nbsp;
154
  <a href="https://visualportfolio.co/documentation/portfolio-items/video-portfolio-item/#supported-video-vendors" target="_blank" rel="noopener noreferrer">
155
  { __( 'see here', 'visual-portfolio' ) }
gutenberg/index.js CHANGED
@@ -30,8 +30,12 @@ const {
30
  registerBlockCollection,
31
  } = wp.blocks;
32
 
 
 
 
 
33
  // Collection.
34
  registerBlockCollection( 'visual-portfolio', {
35
- title: 'Visual Portfolio',
36
  icon: <ElementIcon width="20" height="20" />,
37
  } );
30
  registerBlockCollection,
31
  } = wp.blocks;
32
 
33
+ const {
34
+ plugin_name: pluginName,
35
+ } = window.VPGutenbergVariables;
36
+
37
  // Collection.
38
  registerBlockCollection( 'visual-portfolio', {
39
+ title: pluginName,
40
  icon: <ElementIcon width="20" height="20" />,
41
  } );
gutenberg/index.min.js CHANGED
@@ -8,7 +8,7 @@
8
  * getSize v2.0.3
9
  * measure size of elements
10
  * MIT license
11
- */window,void 0===(o="function"==typeof(i=function(){"use strict";function e(e){var t=parseFloat(e);return-1==e.indexOf("%")&&!isNaN(t)&&t}var t="undefined"==typeof console?function(){}:function(e){console.error(e)},n=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],i=n.length;function o(e){var n=getComputedStyle(e);return n||t("Style returned "+n+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),n}var s,a=!1;function l(t){if(function(){if(!a){a=!0;var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style.boxSizing="border-box";var n=document.body||document.documentElement;n.appendChild(t);var i=o(t);s=200==Math.round(e(i.width)),l.isBoxSizeOuter=s,n.removeChild(t)}}(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==r(t)&&t.nodeType){var c=o(t);if("none"==c.display)return function(){for(var e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},t=0;t<i;t++)e[n[t]]=0;return e}();var u={};u.width=t.offsetWidth,u.height=t.offsetHeight;for(var h=u.isBorderBox="border-box"==c.boxSizing,d=0;d<i;d++){var p=n[d],f=c[p],g=parseFloat(f);u[p]=isNaN(g)?0:g}var m=u.paddingLeft+u.paddingRight,v=u.paddingTop+u.paddingBottom,b=u.marginLeft+u.marginRight,y=u.marginTop+u.marginBottom,w=u.borderLeftWidth+u.borderRightWidth,x=u.borderTopWidth+u.borderBottomWidth,S=h&&s,C=e(c.width);!1!==C&&(u.width=C+(S?0:m+w));var k=e(c.height);return!1!==k&&(u.height=k+(S?0:v+x)),u.innerWidth=u.width-(m+w),u.innerHeight=u.height-(v+x),u.outerWidth=u.width+b,u.outerHeight=u.height+y,u}}return l})?i.call(t,n,t,e):i)||(e.exports=o)},function(e,t,n){var i=n(52),o=n(34),r=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var s=e[t];r.call(e,t)&&o(s,n)&&(void 0!==n||t in e)||i(e,t,n)}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){function i(e){return(i="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)}var o=n(55),r="object"==i(t)&&t&&!t.nodeType&&t,s=r&&"object"==i(e)&&e&&!e.nodeType&&e,a=s&&s.exports===r&&o.process,l=function(){try{var e=s&&s.require&&s.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=l}).call(this,n(5)(e))},function(e,t,n){var i=n(10)(n(6),"Map");e.exports=i},function(e,t,n){var i=n(62),o=n(166),r=n(20);e.exports=function(e){return r(e)?i(e,!0):o(e)}},function(e,t,n){var i=n(171),o=n(70),r=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(e){return null==e?[]:(e=Object(e),i(s(e),(function(t){return r.call(e,t)})))}:o;e.exports=a},function(e,t){e.exports=function(e,t){for(var n=-1,i=t.length,o=e.length;++n<i;)e[o+n]=t[n];return e}},function(e,t,n){var i=n(65)(Object.getPrototypeOf,Object);e.exports=i},function(e,t,n){var i=n(174),o=n(37),r=n(175),s=n(176),a=n(177),l=n(13),c=n(56),u=c(i),h=c(o),d=c(r),p=c(s),f=c(a),g=l;(i&&"[object DataView]"!=g(new i(new ArrayBuffer(1)))||o&&"[object Map]"!=g(new o)||r&&"[object Promise]"!=g(r.resolve())||s&&"[object Set]"!=g(new s)||a&&"[object WeakMap]"!=g(new a))&&(g=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,i=n?c(n):"";if(i)switch(i){case u:return"[object DataView]";case h:return"[object Map]";case d:return"[object Promise]";case p:return"[object Set]";case f:return"[object WeakMap]"}return t}),e.exports=g},function(e,t,n){var i=n(180);e.exports=function(e){var t=new e.constructor(e.byteLength);return new i(t).set(new i(e)),t}},function(e,t,n){var i=n(12),o=n(192),r=n(193),s=n(196);e.exports=function(e,t){return i(e)?e:o(e,t)?[e]:r(s(e))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return gn}));var i=n(3),o=n(4),r=n(0),s=n.n(r),a=n(77),l=n.n(a);var c=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(i);try{var r=105===e.charCodeAt(1)&&64===e.charCodeAt(0);o.insertRule(e,r?0:o.cssRules.length)}catch(e){0}}else i.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();function u(e){return(u="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)}var h=function(e){function t(e,t,i){var o=t.trim().split(g);t=o;var r=o.length,s=e.length;switch(s){case 0:case 1:var a=0;for(e=0===s?"":e[0]+" ";a<r;++a)t[a]=n(e,t[a],i).trim();break;default:var l=a=0;for(t=[];a<r;++a)for(var c=0;c<s;++c)t[l++]=n(e[c]+" ",o[a],i).trim()}return t}function n(e,t,n){var i=t.charCodeAt(0);switch(33>i&&(i=(t=t.trim()).charCodeAt(0)),i){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,n,r){var s=e+";",a=2*t+3*n+4*r;if(944===a){e=s.indexOf(":",9)+1;var l=s.substring(e,s.length-1).trim();return l=s.substring(0,e).trim()+l+";",1===L||2===L&&o(l,1)?"-webkit-"+l+l:l}if(0===L||2===L&&!o(s,1))return s;switch(a){case 1015:return 97===s.charCodeAt(10)?"-webkit-"+s+s:s;case 951:return 116===s.charCodeAt(3)?"-webkit-"+s+s:s;case 963:return 110===s.charCodeAt(5)?"-webkit-"+s+s:s;case 1009:if(100!==s.charCodeAt(4))break;case 969:case 942:return"-webkit-"+s+s;case 978:return"-webkit-"+s+"-moz-"+s+s;case 1019:case 983:return"-webkit-"+s+"-moz-"+s+"-ms-"+s+s;case 883:if(45===s.charCodeAt(8))return"-webkit-"+s+s;if(0<s.indexOf("image-set(",11))return s.replace($,"$1-webkit-$2")+s;break;case 932:if(45===s.charCodeAt(4))switch(s.charCodeAt(5)){case 103:return"-webkit-box-"+s.replace("-grow","")+"-webkit-"+s+"-ms-"+s.replace("grow","positive")+s;case 115:return"-webkit-"+s+"-ms-"+s.replace("shrink","negative")+s;case 98:return"-webkit-"+s+"-ms-"+s.replace("basis","preferred-size")+s}return"-webkit-"+s+"-ms-"+s+s;case 964:return"-webkit-"+s+"-ms-flex-"+s+s;case 1023:if(99!==s.charCodeAt(8))break;return"-webkit-box-pack"+(l=s.substring(s.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+s+"-ms-flex-pack"+l+s;case 1005:return p.test(s)?s.replace(d,":-webkit-")+s.replace(d,":-moz-")+s:s;case 1e3:switch(t=(l=s.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=s.replace(w,"tb");break;case 232:l=s.replace(w,"tb-rl");break;case 220:l=s.replace(w,"lr");break;default:return s}return"-webkit-"+s+"-ms-"+l+s;case 1017:if(-1===s.indexOf("sticky",9))break;case 975:switch(t=(s=e).length-10,a=(l=(33===s.charCodeAt(t)?s.substring(0,t):s).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:s=s.replace(l,"-webkit-"+l)+";"+s;break;case 207:case 102:s=s.replace(l,"-webkit-"+(102<a?"inline-":"")+"box")+";"+s.replace(l,"-webkit-"+l)+";"+s.replace(l,"-ms-"+l+"box")+";"+s}return s+";";case 938:if(45===s.charCodeAt(5))switch(s.charCodeAt(6)){case 105:return l=s.replace("-items",""),"-webkit-"+s+"-webkit-box-"+l+"-ms-flex-"+l+s;case 115:return"-webkit-"+s+"-ms-flex-item-"+s.replace(C,"")+s;default:return"-webkit-"+s+"-ms-flex-line-pack"+s.replace("align-content","").replace(C,"")+s}break;case 973:case 989:if(45!==s.charCodeAt(3)||122===s.charCodeAt(4))break;case 931:case 953:if(!0===E.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):s.replace(l,"-webkit-"+l)+s.replace(l,"-moz-"+l.replace("fill-",""))+s;break;case 962:if(s="-webkit-"+s+(102===s.charCodeAt(5)?"-ms-"+s:"")+s,211===n+r&&105===s.charCodeAt(13)&&0<s.indexOf("transform",10))return s.substring(0,s.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+s}return s}function o(e,t){var n=e.indexOf(1===t?":":"{"),i=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),I(2!==t?i:i.replace(k,"$1"),n,t)}function r(e,t){var n=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(S," or ($1)").substring(4):"("+t+")"}function s(e,t,n,i,o,r,s,a,c,u){for(var h,d=0,p=t;d<M;++d)switch(h=T[d].call(l,e,p,n,i,o,r,s,a,c,u)){case void 0:case!1:case!0:case null:break;default:p=h}if(p!==t)return p}function a(e){return void 0!==(e=e.prefix)&&(I=null,e?"function"!=typeof e?L=1:(L=2,I=e):L=0),a}function l(e,n){var a=e;if(33>a.charCodeAt(0)&&(a=a.trim()),a=[a],0<M){var l=s(-1,n,a,a,A,_,0,0,0,0);void 0!==l&&"string"==typeof l&&(n=l)}var u=function e(n,a,l,u,d){for(var p,f,g,m,w,S=0,C=0,k=0,E=0,$=0,T=0,I=g=p=0,F=0,D=0,j=0,N=0,B=l.length,z=B-1,W="",H="",V="",U="";F<B;){if(f=l.charCodeAt(F),F===z&&0!==C+E+k+S&&(0!==C&&(f=47===C?10:47),E=k=S=0,B++,z++),0===C+E+k+S){if(F===z&&(0<D&&(W=W.replace(h,"")),0<W.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:W+=l.charAt(F)}f=59}switch(f){case 123:for(p=(W=W.trim()).charCodeAt(0),g=1,N=++F;F<B;){switch(f=l.charCodeAt(F)){case 123:g++;break;case 125:g--;break;case 47:switch(f=l.charCodeAt(F+1)){case 42:case 47:e:{for(I=F+1;I<z;++I)switch(l.charCodeAt(I)){case 47:if(42===f&&42===l.charCodeAt(I-1)&&F+2!==I){F=I+1;break e}break;case 10:if(47===f){F=I+1;break e}}F=I}}break;case 91:f++;case 40:f++;case 34:case 39:for(;F++<z&&l.charCodeAt(F)!==f;);}if(0===g)break;F++}switch(g=l.substring(N,F),0===p&&(p=(W=W.replace(c,"").trim()).charCodeAt(0)),p){case 64:switch(0<D&&(W=W.replace(h,"")),f=W.charCodeAt(1)){case 100:case 109:case 115:case 45:D=a;break;default:D=R}if(N=(g=e(a,D,g,f,d+1)).length,0<M&&(w=s(3,g,D=t(R,W,j),a,A,_,N,f,d,u),W=D.join(""),void 0!==w&&0===(N=(g=w.trim()).length)&&(f=0,g="")),0<N)switch(f){case 115:W=W.replace(x,r);case 100:case 109:case 45:g=W+"{"+g+"}";break;case 107:g=(W=W.replace(v,"$1 $2"))+"{"+g+"}",g=1===L||2===L&&o("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=W+g,112===u&&(H+=g,g="")}else g="";break;default:g=e(a,t(a,W,j),g,u,d+1)}V+=g,g=j=D=I=p=0,W="",f=l.charCodeAt(++F);break;case 125:case 59:if(1<(N=(W=(0<D?W.replace(h,""):W).trim()).length))switch(0===I&&(p=W.charCodeAt(0),45===p||96<p&&123>p)&&(N=(W=W.replace(" ",":")).length),0<M&&void 0!==(w=s(1,W,a,n,A,_,H.length,u,d,u))&&0===(N=(W=w.trim()).length)&&(W="\0\0"),p=W.charCodeAt(0),f=W.charCodeAt(1),p){case 0:break;case 64:if(105===f||99===f){U+=W+l.charAt(F);break}default:58!==W.charCodeAt(N-1)&&(H+=i(W,p,f,W.charCodeAt(2)))}j=D=I=p=0,W="",f=l.charCodeAt(++F)}}switch(f){case 13:case 10:47===C?C=0:0===1+p&&107!==u&&0<W.length&&(D=1,W+="\0"),0<M*P&&s(0,W,a,n,A,_,H.length,u,d,u),_=1,A++;break;case 59:case 125:if(0===C+E+k+S){_++;break}default:switch(_++,m=l.charAt(F),f){case 9:case 32:if(0===E+S+C)switch($){case 44:case 58:case 9:case 32:m="";break;default:32!==f&&(m=" ")}break;case 0:m="\\0";break;case 12:m="\\f";break;case 11:m="\\v";break;case 38:0===E+C+S&&(D=j=1,m="\f"+m);break;case 108:if(0===E+C+S+O&&0<I)switch(F-I){case 2:112===$&&58===l.charCodeAt(F-3)&&(O=$);case 8:111===T&&(O=T)}break;case 58:0===E+C+S&&(I=F);break;case 44:0===C+k+E+S&&(D=1,m+="\r");break;case 34:case 39:0===C&&(E=E===f?0:0===E?f:E);break;case 91:0===E+C+k&&S++;break;case 93:0===E+C+k&&S--;break;case 41:0===E+C+S&&k--;break;case 40:if(0===E+C+S){if(0===p)switch(2*$+3*T){case 533:break;default:p=1}k++}break;case 64:0===C+k+E+S+I+g&&(g=1);break;case 42:case 47:if(!(0<E+S+k))switch(C){case 0:switch(2*f+3*l.charCodeAt(F+1)){case 235:C=47;break;case 220:N=F,C=42}break;case 42:47===f&&42===$&&N+2!==F&&(33===l.charCodeAt(N+2)&&(H+=l.substring(N,F+1)),m="",C=0)}}0===C&&(W+=m)}T=$,$=f,F++}if(0<(N=H.length)){if(D=a,0<M&&(void 0!==(w=s(2,H,D,n,A,_,N,u,d,u))&&0===(H=w).length))return U+H+V;if(H=D.join(",")+"{"+H+"}",0!=L*O){switch(2!==L||o(H,2)||(O=0),O){case 111:H=H.replace(y,":-moz-$1")+H;break;case 112:H=H.replace(b,"::-webkit-input-$1")+H.replace(b,"::-moz-$1")+H.replace(b,":-ms-input-$1")+H}O=0}}return U+H+V}(R,a,n,0,0);return 0<M&&(void 0!==(l=s(-2,u,a,a,A,_,u.length,0,0,0))&&(u=l)),"",O=0,_=A=1,u}var c=/^\0+/g,h=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,f=/([,: ])(transform)/g,g=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,y=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,x=/\(\s*(.*)\s*\)/g,S=/([\s\S]*?);/g,C=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,E=/stretch|:\s*\w+\-(?:conte|avail)/,$=/([^-])(image-set\()/,_=1,A=1,O=0,L=1,R=[],T=[],M=0,I=null,P=0;return l.use=function e(t){switch(t){case void 0:case null:M=T.length=0;break;default:if("function"==typeof t)T[M++]=t;else if("object"===u(t))for(var n=0,i=t.length;n<i;++n)e(t[n]);else P=0|!!t}return e},l.set=a,void 0!==e&&a(e),l};function d(e){e&&p.current.insert(e+"}")}var p={current:null},f=function(e,t,n,i,o,r,s,a,l,c){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return p.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===a)return t+"/*|*/";break;case 3:switch(a){case 102:case 112:return p.current.insert(n[0]+t),"";default:return t+(0===c?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(d)}},g=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var i=new h(t);var o,r={};o=e.container||document.head;var s,a=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(a,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){r[e]=!0})),e.parentNode!==o&&o.appendChild(e)})),i.use(e.stylisPlugins)(f),s=function(e,t,n,o){var r=t.name;p.current=n,i(e,t.styles),o&&(l.inserted[r]=!0)};var l={key:n,sheet:new c({key:n,container:o,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:r,registered:{},insert:s};return l};function m(e,t,n){var i="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):i+=n+" "})),i}var v=function(e,t,n){var i=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[i]&&(e.registered[i]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert("."+i,o,e.sheet,!0);o=o.next}while(void 0!==o)}};var b=function(e){for(var t,n=0,i=0,o=e.length;o>=4;++i,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(i+2))<<16;case 2:n^=(255&e.charCodeAt(i+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(i)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},y={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function w(e){return(w="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)}var x=/[A-Z]|^ms/g,S=/_EMO_([^_]+?)_([^]*?)_EMO_/g,C=function(e){return 45===e.charCodeAt(1)},k=function(e){return null!=e&&"boolean"!=typeof e},E=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return C(e)?e:e.replace(x,"-$&").toLowerCase()})),$=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(S,(function(e,t,n){return A={name:t,styles:n,next:A},t}))}return 1===y[e]||C(e)||"number"!=typeof t||0===t?t:t+"px"};function _(e,t,n,i){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(w(n)){case"boolean":return"";case"object":if(1===n.anim)return A={name:n.name,styles:n.styles,next:A},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)A={name:o.name,styles:o.styles,next:A},o=o.next;return n.styles+";"}return function(e,t,n){var i="";if(Array.isArray(n))for(var o=0;o<n.length;o++)i+=_(e,t,n[o],!1);else for(var r in n){var s=n[r];if("object"!==w(s))null!=t&&void 0!==t[s]?i+=r+"{"+t[s]+"}":k(s)&&(i+=E(r)+":"+$(r,s)+";");else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var a=_(e,t,s,!1);switch(r){case"animation":case"animationName":i+=E(r)+":"+a+";";break;default:i+=r+"{"+a+"}"}}else for(var l=0;l<s.length;l++)k(s[l])&&(i+=E(r)+":"+$(r,s[l])+";")}return i}(e,t,n);case"function":if(void 0!==e){var r=A,s=n(e);return A=r,_(e,t,s,i)}break;case"string":}if(null==t)return n;var a=t[n];return void 0===a||i?n:a}var A,O=/label:\s*([^\s;\n{]+)\s*;/g;var L=function(e,t,n){if(1===e.length&&"object"===w(e[0])&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i=!0,o="";A=void 0;var r=e[0];null==r||void 0===r.raw?(i=!1,o+=_(n,t,r,!1)):o+=r[0];for(var s=1;s<e.length;s++)o+=_(n,t,e[s],46===o.charCodeAt(o.length-1)),i&&(o+=r[s]);O.lastIndex=0;for(var a,l="";null!==(a=O.exec(o));)l+="-"+a[1];return{name:b(o)+l,styles:o,next:A}};var R=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return L(t)};function T(e){return(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)}var M=Object(r.createContext)("undefined"!=typeof HTMLElement?g():null),I=Object(r.createContext)({}),P=M.Provider,F=function(e){return Object(r.forwardRef)((function(t,n){return Object(r.createElement)(M.Consumer,null,(function(i){return e(t,i,n)}))}))},D="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",j=Object.prototype.hasOwnProperty,N=function(e,t,n,i){var o=null===n?t.css:t.css(n);"string"==typeof o&&void 0!==e.registered[o]&&(o=e.registered[o]);var s=t[D],a=[o],l="";"string"==typeof t.className?l=m(e.registered,a,t.className):null!=t.className&&(l=t.className+" ");var c=L(a);v(e,c,"string"==typeof s);l+=e.key+"-"+c.name;var u={};for(var h in t)j.call(t,h)&&"css"!==h&&h!==D&&(u[h]=t[h]);return u.ref=i,u.className=l,Object(r.createElement)(s,u)},B=F((function(e,t,n){return"function"==typeof e.css?Object(r.createElement)(I.Consumer,null,(function(i){return N(t,e,i,n)})):N(t,e,null,n)}));var z=function(e,t){var n=arguments;if(null==t||!j.call(t,"css"))return r.createElement.apply(void 0,n);var i=n.length,o=new Array(i);o[0]=B;var s={};for(var a in t)j.call(t,a)&&(s[a]=t[a]);s[D]=e,o[1]=s;for(var l=2;l<i;l++)o[l]=n[l];return r.createElement.apply(null,o)},W=(r.Component,function e(t){for(var n=t.length,i=0,o="";i<n;i++){var r=t[i];if(null!=r){var s=void 0;switch(T(r)){case"boolean":break;case"object":if(Array.isArray(r))s=e(r);else for(var a in s="",r)r[a]&&a&&(s&&(s+=" "),s+=a);break;default:s=r}s&&(o&&(o+=" "),o+=s)}}return o});function H(e,t,n){var i=[],o=m(e,i,n);return i.length<2?n:o+t(i)}var V=F((function(e,t){return Object(r.createElement)(I.Consumer,null,(function(n){var i=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var o=L(n,t.registered);return v(t,o,!1),t.key+"-"+o.name},o={css:i,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return H(t.registered,i,W(n))},theme:n},r=e.children(o);return!0,r}))})),U=n(7),G=n(1),K=n.n(G);function q(e){return(q="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)}var Y=function(){};function X(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Q(e,t,n){var i=[n];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&i.push(""+X(e,o));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var J=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===q(e)&&null!==e?[e]:[]};function Z(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function ee(e){return Z(e)?window.pageYOffset:e.scrollTop}function te(e,t){Z(e)?window.scrollTo(0,t):e.scrollTop=t}function ne(e,t,n,i){void 0===n&&(n=200),void 0===i&&(i=Y);var o=ee(e),r=t-o,s=0;!function t(){var a,l=r*((a=(a=s+=10)/n-1)*a*a+1)+o;te(e,l),s<n?window.requestAnimationFrame(t):i(e)}()}function ie(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var oe=n(16),re=n.n(oe);function se(e){return(se="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)}function ae(){return(ae=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function le(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function ce(e){var t=e.maxHeight,n=e.menuEl,i=e.minHeight,o=e.placement,r=e.shouldScroll,s=e.isFixedPosition,a=e.theme.spacing,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,i=/(auto|scroll)/,o=document.documentElement;if("fixed"===t.position)return o;for(var r=e;r=r.parentElement;)if(t=getComputedStyle(r),(!n||"static"!==t.position)&&i.test(t.overflow+t.overflowY+t.overflowX))return r;return o}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u=l.getBoundingClientRect().height,h=n.getBoundingClientRect(),d=h.bottom,p=h.height,f=h.top,g=n.offsetParent.getBoundingClientRect().top,m=window.innerHeight,v=ee(l),b=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),w=g-y,x=m-f,S=w+v,C=u-v-f,k=d-m+v+b,E=v+f-y;switch(o){case"auto":case"bottom":if(x>=p)return{placement:"bottom",maxHeight:t};if(C>=p&&!s)return r&&ne(l,k,160),{placement:"bottom",maxHeight:t};if(!s&&C>=i||s&&x>=i)return r&&ne(l,k,160),{placement:"bottom",maxHeight:s?x-b:C-b};if("auto"===o||s){var $=t,_=s?w:S;return _>=i&&($=Math.min(_-b-a.controlHeight,t)),{placement:"top",maxHeight:$}}if("bottom"===o)return te(l,k),{placement:"bottom",maxHeight:t};break;case"top":if(w>=p)return{placement:"top",maxHeight:t};if(S>=p&&!s)return r&&ne(l,E,160),{placement:"top",maxHeight:t};if(!s&&S>=i||s&&w>=i){var A=t;return(!s&&S>=i||s&&w>=i)&&(A=s?w-y:S-y),r&&ne(l,E,160),{placement:"top",maxHeight:A}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'+o+'".')}return c}var ue=function(e){return"auto"===e?"bottom":e},he=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(t=e.call.apply(e,[this].concat(i))||this).state={maxHeight:t.props.maxMenuHeight,placement:null},t.getPlacement=function(e){var n=t.props,i=n.minMenuHeight,o=n.maxMenuHeight,r=n.menuPlacement,s=n.menuPosition,a=n.menuShouldScrollIntoView,l=n.theme,c=t.context.getPortalPlacement;if(e){var u="fixed"===s,h=ce({maxHeight:o,menuEl:e,minHeight:i,placement:r,shouldScroll:a&&!u,isFixedPosition:u,theme:l});c&&c(h),t.setState(h)}},t.getUpdatedProps=function(){var e=t.props.menuPlacement,n=t.state.placement||ue(e);return ae({},t.props,{placement:n,maxHeight:t.state.maxHeight})},t}return le(t,e),t.prototype.render=function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})},t}(r.Component);he.contextTypes={getPortalPlacement:K.a.func};var de=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:2*n+"px "+3*n+"px",textAlign:"center"}},pe=de,fe=de,ge=function(e){var t=e.children,n=e.className,i=e.cx,o=e.getStyles,r=e.innerProps;return z("div",ae({css:o("noOptionsMessage",e),className:i({"menu-notice":!0,"menu-notice--no-options":!0},n)},r),t)};ge.defaultProps={children:"No options"};var me=function(e){var t=e.children,n=e.className,i=e.cx,o=e.getStyles,r=e.innerProps;return z("div",ae({css:o("loadingMessage",e),className:i({"menu-notice":!0,"menu-notice--loading":!0},n)},r),t)};me.defaultProps={children:"Loading..."};var ve=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(t=e.call.apply(e,[this].concat(i))||this).state={placement:null},t.getPortalPlacement=function(e){var n=e.placement;n!==ue(t.props.menuPlacement)&&t.setState({placement:n})},t}le(t,e);var n=t.prototype;return n.getChildContext=function(){return{getPortalPlacement:this.getPortalPlacement}},n.render=function(){var e=this.props,t=e.appendTo,n=e.children,i=e.controlElement,o=e.menuPlacement,r=e.menuPosition,s=e.getStyles,a="fixed"===r;if(!t&&!a||!i)return null;var l=this.state.placement||ue(o),c=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(i),u=a?0:window.pageYOffset,h=c[l]+u,d=z("div",{css:s("menuPortal",{offset:h,position:r,rect:c})},n);return t?Object(U.createPortal)(d,t):d},t}(r.Component);ve.childContextTypes={getPortalPlacement:K.a.func};var be=Array.isArray,ye=Object.keys,we=Object.prototype.hasOwnProperty;function xe(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==se(t)&&"object"==se(n)){var i,o,r,s=be(t),a=be(n);if(s&&a){if((o=t.length)!=n.length)return!1;for(i=o;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(s!=a)return!1;var l=t instanceof Date,c=n instanceof Date;if(l!=c)return!1;if(l&&c)return t.getTime()==n.getTime();var u=t instanceof RegExp,h=n instanceof RegExp;if(u!=h)return!1;if(u&&h)return t.toString()==n.toString();var d=ye(t);if((o=d.length)!==ye(n).length)return!1;for(i=o;0!=i--;)if(!we.call(n,d[i]))return!1;for(i=o;0!=i--;)if(!("_owner"===(r=d[i])&&t.$$typeof||e(t[r],n[r])))return!1;return!0}return t!=t&&n!=n}(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}function Se(){return(Se=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Ce(){var e=function(e,t){t||(t=e.slice(0));return e.raw=t,e}(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]);return Ce=function(){return e},e}function ke(){return(ke=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var Ee={name:"19bqh2r",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;"},$e=function(e){var t=e.size,n=function(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["size"]);return z("svg",ke({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Ee},n))},_e=function(e){return z($e,ke({size:20},e),z("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Ae=function(e){return z($e,ke({size:20},e),z("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Oe=function(e){var t=e.isFocused,n=e.theme,i=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*i,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},Le=Oe,Re=Oe,Te=function(){var e=R.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Ce()),Me=function(e){var t=e.delay,n=e.offset;return z("span",{css:R({animation:Te+" 1s ease-in-out "+t+"ms infinite;",backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"")})},Ie=function(e){var t=e.className,n=e.cx,i=e.getStyles,o=e.innerProps,r=e.isRtl;return z("div",ke({},o,{css:i("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)}),z(Me,{delay:0,offset:r}),z(Me,{delay:160,offset:!0}),z(Me,{delay:320,offset:!r}))};function Pe(){return(Pe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}Ie.defaultProps={size:4};function Fe(){return(Fe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function De(){return(De=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var je=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}};function Ne(){return(Ne=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var Be=function(e){var t=e.children,n=e.innerProps;return z("div",n,t)},ze=Be,We=Be;var He=function(e){var t=e.children,n=e.className,i=e.components,o=e.cx,r=e.data,s=e.getStyles,a=e.innerProps,l=e.isDisabled,c=e.removeProps,u=e.selectProps,h=i.Container,d=i.Label,p=i.Remove;return z(V,null,(function(i){var f=i.css,g=i.cx;return z(h,{data:r,innerProps:Ne({},a,{className:g(f(s("multiValue",e)),o({"multi-value":!0,"multi-value--is-disabled":l},n))}),selectProps:u},z(d,{data:r,innerProps:{className:g(f(s("multiValueLabel",e)),o({"multi-value__label":!0},n))},selectProps:u},t),z(p,{data:r,innerProps:Ne({className:g(f(s("multiValueRemove",e)),o({"multi-value__remove":!0},n))},c),selectProps:u}))}))};function Ve(){return(Ve=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}He.defaultProps={cropWithEllipsis:!0};function Ue(){return(Ue=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Ge(){return(Ge=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Ke(){return(Ke=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var qe={ClearIndicator:function(e){var t=e.children,n=e.className,i=e.cx,o=e.getStyles,r=e.innerProps;return z("div",ke({},r,{css:o("clearIndicator",e),className:i({indicator:!0,"clear-indicator":!0},n)}),t||z(_e,null))},Control:function(e){var t=e.children,n=e.cx,i=e.getStyles,o=e.className,r=e.isDisabled,s=e.isFocused,a=e.innerRef,l=e.innerProps,c=e.menuIsOpen;return z("div",Pe({ref:a,css:i("control",e),className:n({control:!0,"control--is-disabled":r,"control--is-focused":s,"control--menu-is-open":c},o)},l),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,i=e.cx,o=e.getStyles,r=e.innerProps;return z("div",ke({},r,{css:o("dropdownIndicator",e),className:i({indicator:!0,"dropdown-indicator":!0},n)}),t||z(Ae,null))},DownChevron:Ae,CrossIcon:_e,Group:function(e){var t=e.children,n=e.className,i=e.cx,o=e.getStyles,r=e.Heading,s=e.headingProps,a=e.label,l=e.theme,c=e.selectProps;return z("div",{css:o("group",e),className:i({group:!0},n)},z(r,Fe({},s,{selectProps:c,theme:l,getStyles:o,cx:i}),a),z("div",null,t))},GroupHeading:function(e){var t=e.className,n=e.cx,i=e.getStyles,o=e.theme,r=(e.selectProps,function(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["className","cx","getStyles","theme","selectProps"]));return z("div",Fe({css:i("groupHeading",Fe({theme:o},r)),className:n({"group-heading":!0},t)},r))},IndicatorsContainer:function(e){var t=e.children,n=e.className,i=e.cx,o=e.getStyles;return z("div",{css:o("indicatorsContainer",e),className:i({indicators:!0},n)},t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,i=e.getStyles,o=e.innerProps;return z("span",ke({},o,{css:i("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,i=e.getStyles,o=e.innerRef,r=e.isHidden,s=e.isDisabled,a=e.theme,l=(e.selectProps,function(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return z("div",{css:i("input",De({theme:a},l))},z(re.a,De({className:n({input:!0},t),inputRef:o,inputStyle:je(r),disabled:s},l)))},LoadingIndicator:Ie,Menu:function(e){var t=e.children,n=e.className,i=e.cx,o=e.getStyles,r=e.innerRef,s=e.innerProps;return z("div",ae({css:o("menu",e),className:i({menu:!0},n)},s,{ref:r}),t)},MenuList:function(e){var t=e.children,n=e.className,i=e.cx,o=e.getStyles,r=e.isMulti,s=e.innerRef;return z("div",{css:o("menuList",e),className:i({"menu-list":!0,"menu-list--is-multi":r},n),ref:s},t)},MenuPortal:ve,LoadingMessage:me,NoOptionsMessage:ge,MultiValue:He,MultiValueContainer:ze,MultiValueLabel:We,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return z("div",n,t||z(_e,{size:14}))},Option:function(e){var t=e.children,n=e.className,i=e.cx,o=e.getStyles,r=e.isDisabled,s=e.isFocused,a=e.isSelected,l=e.innerRef,c=e.innerProps;return z("div",Ve({css:o("option",e),className:i({option:!0,"option--is-disabled":r,"option--is-focused":s,"option--is-selected":a},n),ref:l},c),t)},Placeholder:function(e){var t=e.children,n=e.className,i=e.cx,o=e.getStyles,r=e.innerProps;return z("div",Ue({css:o("placeholder",e),className:i({placeholder:!0},n)},r),t)},SelectContainer:function(e){var t=e.children,n=e.className,i=e.cx,o=e.getStyles,r=e.innerProps,s=e.isDisabled,a=e.isRtl;return z("div",Se({css:o("container",e),className:i({"--is-disabled":s,"--is-rtl":a},n)},r),t)},SingleValue:function(e){var t=e.children,n=e.className,i=e.cx,o=e.getStyles,r=e.isDisabled,s=e.innerProps;return z("div",Ge({css:o("singleValue",e),className:i({"single-value":!0,"single-value--is-disabled":r},n)},s),t)},ValueContainer:function(e){var t=e.children,n=e.className,i=e.cx,o=e.isMulti,r=e.getStyles,s=e.hasValue;return z("div",{css:r("valueContainer",e),className:i({"value-container":!0,"value-container--is-multi":o,"value-container--has-value":s},n)},t)}};function Ye(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Xe=function(e,t){var n;void 0===t&&(t=Ye);var i,o=[],r=!1;return function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return r&&n===this&&t(s,o)||(i=e.apply(this,s),r=!0,n=this,o=s),i}},Qe=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}],Je=function(e){for(var t=0;t<Qe.length;t++)e=e.replace(Qe[t].letters,Qe[t].base);return e};function Ze(){return(Ze=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var et=function(e){return e.replace(/^\s+|\s+$/g,"")},tt=function(e){return e.label+" "+e.value};function nt(){return(nt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var it={name:"1laao21-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;"},ot=function(e){return z("span",nt({css:it},e))};function rt(){return(rt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function st(e){e.in,e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef,n=(e.emotion,function(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return z("input",rt({ref:t},n,{css:R({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"")}))}var at=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=i.prototype;return o.componentDidMount=function(){this.props.innerRef(Object(U.findDOMNode)(this))},o.componentWillUnmount=function(){this.props.innerRef(null)},o.render=function(){return this.props.children},i}(r.Component),lt=["boxSizing","height","overflow","paddingRight","position"],ct={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function ut(e){e.preventDefault()}function ht(e){e.stopPropagation()}function dt(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function pt(){return"ontouchstart"in window||navigator.maxTouchPoints}var ft=!(!window.document||!window.document.createElement),gt=0,mt=function(e){var t,n;function i(){for(var t,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(t=e.call.apply(e,[this].concat(i))||this).originalStyles={},t.listenerOptions={capture:!1,passive:!1},t}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=i.prototype;return o.componentDidMount=function(){var e=this;if(ft){var t=this.props,n=t.accountForScrollbars,i=t.touchScrollTarget,o=document.body,r=o&&o.style;if(n&&lt.forEach((function(t){var n=r&&r[t];e.originalStyles[t]=n})),n&&gt<1){var s=parseInt(this.originalStyles.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,l=window.innerWidth-a+s||0;Object.keys(ct).forEach((function(e){var t=ct[e];r&&(r[e]=t)})),r&&(r.paddingRight=l+"px")}o&&pt()&&(o.addEventListener("touchmove",ut,this.listenerOptions),i&&(i.addEventListener("touchstart",dt,this.listenerOptions),i.addEventListener("touchmove",ht,this.listenerOptions))),gt+=1}},o.componentWillUnmount=function(){var e=this;if(ft){var t=this.props,n=t.accountForScrollbars,i=t.touchScrollTarget,o=document.body,r=o&&o.style;gt=Math.max(gt-1,0),n&&gt<1&&lt.forEach((function(t){var n=e.originalStyles[t];r&&(r[t]=n)})),o&&pt()&&(o.removeEventListener("touchmove",ut,this.listenerOptions),i&&(i.removeEventListener("touchstart",dt,this.listenerOptions),i.removeEventListener("touchmove",ht,this.listenerOptions)))}},o.render=function(){return null},i}(r.Component);mt.defaultProps={accountForScrollbars:!0};var vt={name:"1dsbpcp",styles:"position:fixed;left:0;bottom:0;right:0;top:0;"},bt=function(e){var t,n;function i(){for(var t,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(t=e.call.apply(e,[this].concat(i))||this).state={touchScrollTarget:null},t.getScrollTarget=function(e){e!==t.state.touchScrollTarget&&t.setState({touchScrollTarget:e})},t.blurSelectInput=function(){document.activeElement&&document.activeElement.blur()},t}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i.prototype.render=function(){var e=this.props,t=e.children,n=e.isEnabled,i=this.state.touchScrollTarget;return n?z("div",null,z("div",{onClick:this.blurSelectInput,css:vt}),z(at,{innerRef:this.getScrollTarget},t),i?z(mt,{touchScrollTarget:i}):null):t},i}(r.PureComponent);var yt=function(e){var t,n;function i(){for(var t,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(t=e.call.apply(e,[this].concat(i))||this).isBottom=!1,t.isTop=!1,t.scrollTarget=void 0,t.touchStart=void 0,t.cancelScroll=function(e){e.preventDefault(),e.stopPropagation()},t.handleEventDelta=function(e,n){var i=t.props,o=i.onBottomArrive,r=i.onBottomLeave,s=i.onTopArrive,a=i.onTopLeave,l=t.scrollTarget,c=l.scrollTop,u=l.scrollHeight,h=l.clientHeight,d=t.scrollTarget,p=n>0,f=u-h-c,g=!1;f>n&&t.isBottom&&(r&&r(e),t.isBottom=!1),p&&t.isTop&&(a&&a(e),t.isTop=!1),p&&n>f?(o&&!t.isBottom&&o(e),d.scrollTop=u,g=!0,t.isBottom=!0):!p&&-n>c&&(s&&!t.isTop&&s(e),d.scrollTop=0,g=!0,t.isTop=!0),g&&t.cancelScroll(e)},t.onWheel=function(e){t.handleEventDelta(e,e.deltaY)},t.onTouchStart=function(e){t.touchStart=e.changedTouches[0].clientY},t.onTouchMove=function(e){var n=t.touchStart-e.changedTouches[0].clientY;t.handleEventDelta(e,n)},t.getScrollTarget=function(e){t.scrollTarget=e},t}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=i.prototype;return o.componentDidMount=function(){this.startListening(this.scrollTarget)},o.componentWillUnmount=function(){this.stopListening(this.scrollTarget)},o.startListening=function(e){e&&("function"==typeof e.addEventListener&&e.addEventListener("wheel",this.onWheel,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",this.onTouchMove,!1))},o.stopListening=function(e){"function"==typeof e.removeEventListener&&e.removeEventListener("wheel",this.onWheel,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",this.onTouchMove,!1)},o.render=function(){return s.a.createElement(at,{innerRef:this.getScrollTarget},this.props.children)},i}(r.Component);function wt(e){var t=e.isEnabled,n=void 0===t||t,i=function(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["isEnabled"]);return n?s.a.createElement(yt,i):i.children}var xt=function(e,t){void 0===t&&(t={});var n=t,i=n.isSearchable,o=n.isMulti,r=n.label,s=n.isDisabled;switch(e){case"menu":return"Use Up and Down to choose options"+(s?"":", press Enter to select the currently focused option")+", press Escape to exit the menu, press Tab to select the option and exit the menu.";case"input":return(r||"Select")+" is focused "+(i?",type to refine list":"")+", press Down to open the menu, "+(o?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},St=function(e,t){var n=t.value,i=t.isDisabled;if(n)switch(e){case"deselect-option":case"pop-value":case"remove-value":return"option "+n+", deselected.";case"select-option":return i?"option "+n+" is disabled. Select another option.":"option "+n+", selected."}},Ct=function(e){return!!e.isDisabled};var kt={clearIndicator:Re,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,i=e.theme,o=i.colors,r=i.borderRadius,s=i.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:r,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px "+o.primary:null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},dropdownIndicator:Le,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,i=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*i,marginTop:2*i,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,i=n.spacing,o=n.colors;return{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,i=e.theme,o=i.colors,r=i.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:fe,menu:function(e){var t,n=e.placement,i=e.theme,o=i.borderRadius,r=i.spacing,s=i.colors;return(t={label:"menu"})[function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n)]="100%",t.backgroundColor=s.neutral0,t.borderRadius=o,t.boxShadow="0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",t.marginBottom=r.menuGutter,t.marginTop=r.menuGutter,t.position="absolute",t.width="100%",t.zIndex=1,t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,i=e.position;return{left:t.left,position:i,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,i=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:i/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,i=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:i.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,i=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:i/2,backgroundColor:e.isFocused&&o.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:pe,option:function(e){var t=e.isDisabled,n=e.isFocused,i=e.isSelected,o=e.theme,r=o.spacing,s=o.colors;return{label:"option",backgroundColor:i?s.primary:n?s.primary25:"transparent",color:t?s.neutral20:i?s.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:2*r.baseUnit+"px "+3*r.baseUnit+"px",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(i?s.primary:s.primary50)}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,i=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2,maxWidth:"calc(100% - "+2*i.baseUnit+"px)",overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:t.baseUnit/2+"px "+2*t.baseUnit+"px",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};var Et={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}};function $t(){return($t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function _t(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var At,Ot={backspaceRemovesValue:!0,blurInputOnSelect:ie(),captureMenuScroll:!ie(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var n=Ze({ignoreCase:!0,ignoreAccents:!0,stringify:tt,trim:!0,matchFrom:"any"},At),i=n.ignoreCase,o=n.ignoreAccents,r=n.stringify,s=n.trim,a=n.matchFrom,l=s?et(t):t,c=s?et(r(e)):r(e);return i&&(l=l.toLowerCase(),c=c.toLowerCase()),o&&(l=Je(l),c=Je(c)),"start"===a?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Ct,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return t+" result"+(1!==t?"s":"")+" available"},styles:{},tabIndex:"0",tabSelectsValue:!0},Lt=1,Rt=function(e){var t,n;function i(t){var n;(n=e.call(this,t)||this).state={ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]},n.blockOptionHover=!1,n.isComposing=!1,n.clearFocusValueOnUpdate=!1,n.commonProps=void 0,n.components=void 0,n.hasGroups=!1,n.initialTouchX=0,n.initialTouchY=0,n.inputIsHiddenAfterUpdate=void 0,n.instancePrefix="",n.openAfterFocus=!1,n.scrollToFocusedOptionOnUpdate=!1,n.userIsDragging=void 0,n.controlRef=null,n.getControlRef=function(e){n.controlRef=e},n.focusedOptionRef=null,n.getFocusedOptionRef=function(e){n.focusedOptionRef=e},n.menuListRef=null,n.getMenuListRef=function(e){n.menuListRef=e},n.inputRef=null,n.getInputRef=function(e){n.inputRef=e},n.cacheComponents=function(e){n.components=Ke({},qe,{components:e}.components)},n.focus=n.focusInput,n.blur=n.blurInput,n.onChange=function(e,t){var i=n.props;(0,i.onChange)(e,$t({},t,{name:i.name}))},n.setValue=function(e,t,i){void 0===t&&(t="set-value");var o=n.props,r=o.closeMenuOnSelect,s=o.isMulti;n.onInputChange("",{action:"set-value"}),r&&(n.inputIsHiddenAfterUpdate=!s,n.onMenuClose()),n.clearFocusValueOnUpdate=!0,n.onChange(e,{action:t,option:i})},n.selectOption=function(e){var t=n.props,i=t.blurInputOnSelect,o=t.isMulti,r=n.state.selectValue;if(o)if(n.isOptionSelected(e,r)){var s=n.getOptionValue(e);n.setValue(r.filter((function(e){return n.getOptionValue(e)!==s})),"deselect-option",e),n.announceAriaLiveSelection({event:"deselect-option",context:{value:n.getOptionLabel(e)}})}else n.isOptionDisabled(e,r)?n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e),isDisabled:!0}}):(n.setValue([].concat(r,[e]),"select-option",e),n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e)}}));else n.isOptionDisabled(e,r)?n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e),isDisabled:!0}}):(n.setValue(e,"select-option"),n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e)}}));i&&n.blurInput()},n.removeValue=function(e){var t=n.state.selectValue,i=n.getOptionValue(e),o=t.filter((function(e){return n.getOptionValue(e)!==i}));n.onChange(o.length?o:null,{action:"remove-value",removedValue:e}),n.announceAriaLiveSelection({event:"remove-value",context:{value:e?n.getOptionLabel(e):""}}),n.focusInput()},n.clearValue=function(){var e=n.props.isMulti;n.onChange(e?[]:null,{action:"clear"})},n.popValue=function(){var e=n.state.selectValue,t=e[e.length-1],i=e.slice(0,e.length-1);n.announceAriaLiveSelection({event:"pop-value",context:{value:t?n.getOptionLabel(t):""}}),n.onChange(i.length?i:null,{action:"pop-value",removedValue:t})},n.getOptionLabel=function(e){return n.props.getOptionLabel(e)},n.getOptionValue=function(e){return n.props.getOptionValue(e)},n.getStyles=function(e,t){var i=kt[e](t);i.boxSizing="border-box";var o=n.props.styles[e];return o?o(i,t):i},n.getElementId=function(e){return n.instancePrefix+"-"+e},n.getActiveDescendentId=function(){var e=n.props.menuIsOpen,t=n.state,i=t.menuOptions,o=t.focusedOption;if(o&&e){var r=i.focusable.indexOf(o),s=i.render[r];return s&&s.key}},n.announceAriaLiveSelection=function(e){var t=e.event,i=e.context;n.setState({ariaLiveSelection:St(t,i)})},n.announceAriaLiveContext=function(e){var t=e.event,i=e.context;n.setState({ariaLiveContext:xt(t,$t({},i,{label:n.props["aria-label"]}))})},n.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),n.focusInput())},n.onMenuMouseMove=function(e){n.blockOptionHover=!1},n.onControlMouseDown=function(e){var t=n.props.openMenuOnClick;n.state.isFocused?n.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&n.onMenuClose():t&&n.openMenu("first"):(t&&(n.openAfterFocus=!0),n.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},n.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||n.props.isDisabled)){var t=n.props,i=t.isMulti,o=t.menuIsOpen;n.focusInput(),o?(n.inputIsHiddenAfterUpdate=!i,n.onMenuClose()):n.openMenu("first"),e.preventDefault(),e.stopPropagation()}},n.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(n.clearValue(),e.stopPropagation(),n.openAfterFocus=!1,"touchend"===e.type?n.focusInput():setTimeout((function(){return n.focusInput()})))},n.onScroll=function(e){"boolean"==typeof n.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Z(e.target)&&n.props.onMenuClose():"function"==typeof n.props.closeMenuOnScroll&&n.props.closeMenuOnScroll(e)&&n.props.onMenuClose()},n.onCompositionStart=function(){n.isComposing=!0},n.onCompositionEnd=function(){n.isComposing=!1},n.onTouchStart=function(e){var t=e.touches.item(0);t&&(n.initialTouchX=t.clientX,n.initialTouchY=t.clientY,n.userIsDragging=!1)},n.onTouchMove=function(e){var t=e.touches.item(0);if(t){var i=Math.abs(t.clientX-n.initialTouchX),o=Math.abs(t.clientY-n.initialTouchY);n.userIsDragging=i>5||o>5}},n.onTouchEnd=function(e){n.userIsDragging||(n.controlRef&&!n.controlRef.contains(e.target)&&n.menuListRef&&!n.menuListRef.contains(e.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)},n.onControlTouchEnd=function(e){n.userIsDragging||n.onControlMouseDown(e)},n.onClearIndicatorTouchEnd=function(e){n.userIsDragging||n.onClearIndicatorMouseDown(e)},n.onDropdownIndicatorTouchEnd=function(e){n.userIsDragging||n.onDropdownIndicatorMouseDown(e)},n.handleInputChange=function(e){var t=e.currentTarget.value;n.inputIsHiddenAfterUpdate=!1,n.onInputChange(t,{action:"input-change"}),n.onMenuOpen()},n.onInputFocus=function(e){var t=n.props,i=t.isSearchable,o=t.isMulti;n.props.onFocus&&n.props.onFocus(e),n.inputIsHiddenAfterUpdate=!1,n.announceAriaLiveContext({event:"input",context:{isSearchable:i,isMulti:o}}),n.setState({isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1},n.onInputBlur=function(e){n.menuListRef&&n.menuListRef.contains(document.activeElement)?n.inputRef.focus():(n.props.onBlur&&n.props.onBlur(e),n.onInputChange("",{action:"input-blur"}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1}))},n.onOptionHover=function(e){n.blockOptionHover||n.state.focusedOption===e||n.setState({focusedOption:e})},n.shouldHideSelectedOptions=function(){var e=n.props,t=e.hideSelectedOptions,i=e.isMulti;return void 0===t?i:t},n.onKeyDown=function(e){var t=n.props,i=t.isMulti,o=t.backspaceRemovesValue,r=t.escapeClearsValue,s=t.inputValue,a=t.isClearable,l=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,h=t.tabSelectsValue,d=t.openMenuOnFocus,p=n.state,f=p.focusedOption,g=p.focusedValue,m=p.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(n.blockOptionHover=!0,e.key){case"ArrowLeft":if(!i||s)return;n.focusValue("previous");break;case"ArrowRight":if(!i||s)return;n.focusValue("next");break;case"Delete":case"Backspace":if(s)return;if(g)n.removeValue(g);else{if(!o)return;i?n.popValue():a&&n.clearValue()}break;case"Tab":if(n.isComposing)return;if(e.shiftKey||!c||!h||!f||d&&n.isOptionSelected(f,m))return;n.selectOption(f);break;case"Enter":if(229===e.keyCode)break;if(c){if(!f)return;if(n.isComposing)return;n.selectOption(f);break}return;case"Escape":c?(n.inputIsHiddenAfterUpdate=!1,n.onInputChange("",{action:"menu-close"}),n.onMenuClose()):a&&r&&n.clearValue();break;case" ":if(s)return;if(!c){n.openMenu("first");break}if(!f)return;n.selectOption(f);break;case"ArrowUp":c?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":c?n.focusOption("down"):n.openMenu("first");break;case"PageUp":if(!c)return;n.focusOption("pageup");break;case"PageDown":if(!c)return;n.focusOption("pagedown");break;case"Home":if(!c)return;n.focusOption("first");break;case"End":if(!c)return;n.focusOption("last");break;default:return}e.preventDefault()}},n.buildMenuOptions=function(e,t){var i=e.inputValue,o=void 0===i?"":i,r=e.options,s=function(e,i){var r=n.isOptionDisabled(e,t),s=n.isOptionSelected(e,t),a=n.getOptionLabel(e),l=n.getOptionValue(e);if(!(n.shouldHideSelectedOptions()&&s||!n.filterOption({label:a,value:l,data:e},o))){var c=r?void 0:function(){return n.onOptionHover(e)},u=r?void 0:function(){return n.selectOption(e)},h=n.getElementId("option")+"-"+i;return{innerProps:{id:h,onClick:u,onMouseMove:c,onMouseOver:c,tabIndex:-1},data:e,isDisabled:r,isSelected:s,key:h,label:a,type:"option",value:l}}};return r.reduce((function(e,t,i){if(t.options){n.hasGroups||(n.hasGroups=!0);var o=t.options.map((function(t,n){var o=s(t,i+"-"+n);return o&&e.focusable.push(t),o})).filter(Boolean);if(o.length){var r=n.getElementId("group")+"-"+i;e.render.push({type:"group",key:r,data:t,options:o})}}else{var a=s(t,""+i);a&&(e.render.push(a),e.focusable.push(t))}return e}),{render:[],focusable:[]})};var i=t.value;n.cacheComponents=Xe(n.cacheComponents,xe).bind(_t(_t(n))),n.cacheComponents(t.components),n.instancePrefix="react-select-"+(n.props.instanceId||++Lt);var o=J(i);n.buildMenuOptions=Xe(n.buildMenuOptions,(function(e,t){var n=e,i=n[0],o=n[1],r=t,s=r[0];return xe(o,r[1])&&xe(i.inputValue,s.inputValue)&&xe(i.options,s.options)})).bind(_t(_t(n)));var r=t.menuIsOpen?n.buildMenuOptions(t,o):{render:[],focusable:[]};return n.state.menuOptions=r,n.state.selectValue=o,n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=i.prototype;return o.componentDidMount=function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()},o.UNSAFE_componentWillReceiveProps=function(e){var t=this.props,n=t.options,i=t.value,o=t.menuIsOpen,r=t.inputValue;if(this.cacheComponents(e.components),e.value!==i||e.options!==n||e.menuIsOpen!==o||e.inputValue!==r){var s=J(e.value),a=e.menuIsOpen?this.buildMenuOptions(e,s):{render:[],focusable:[]},l=this.getNextFocusedValue(s),c=this.getNextFocusedOption(a.focusable);this.setState({menuOptions:a,selectValue:s,focusedOption:c,focusedValue:l})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)},o.componentDidUpdate=function(e){var t,n,i,o,r,s=this.props,a=s.isDisabled,l=s.menuIsOpen,c=this.state.isFocused;(c&&!a&&e.isDisabled||c&&l&&!e.menuIsOpen)&&this.focusInput(),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,i=t.getBoundingClientRect(),o=n.getBoundingClientRect(),r=n.offsetHeight/3,o.bottom+r>i.bottom?te(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+r,t.scrollHeight)):o.top-r<i.top&&te(t,Math.max(n.offsetTop-r,0)),this.scrollToFocusedOptionOnUpdate=!1)},o.componentWillUnmount=function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)},o.onMenuOpen=function(){this.props.onMenuOpen()},o.onMenuClose=function(){var e=this.props,t=e.isSearchable,n=e.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:t,isMulti:n}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()},o.onInputChange=function(e,t){this.props.onInputChange(e,t)},o.focusInput=function(){this.inputRef&&this.inputRef.focus()},o.blurInput=function(){this.inputRef&&this.inputRef.blur()},o.openMenu=function(e){var t=this,n=this.state,i=n.selectValue,o=n.isFocused,r=this.buildMenuOptions(this.props,i),s=this.props.isMulti,a="first"===e?0:r.focusable.length-1;if(!s){var l=r.focusable.indexOf(i[0]);l>-1&&(a=l)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.setState({menuOptions:r,focusedValue:null,focusedOption:r.focusable[a]},(function(){t.onMenuOpen(),t.announceAriaLiveContext({event:"menu"})}))},o.focusValue=function(e){var t=this.props,n=t.isMulti,i=t.isSearchable,o=this.state,r=o.selectValue,s=o.focusedValue;if(n){this.setState({focusedOption:null});var a=r.indexOf(s);s||(a=-1,this.announceAriaLiveContext({event:"value"}));var l=r.length-1,c=-1;if(r.length){switch(e){case"previous":c=0===a?0:-1===a?l:a-1;break;case"next":a>-1&&a<l&&(c=a+1)}-1===c&&this.announceAriaLiveContext({event:"input",context:{isSearchable:i,isMulti:n}}),this.setState({inputIsHidden:-1!==c,focusedValue:r[c]})}}},o.focusOption=function(e){void 0===e&&(e="first");var t=this.props.pageSize,n=this.state,i=n.focusedOption,o=n.menuOptions.focusable;if(o.length){var r=0,s=o.indexOf(i);i||(s=-1,this.announceAriaLiveContext({event:"menu"})),"up"===e?r=s>0?s-1:o.length-1:"down"===e?r=(s+1)%o.length:"pageup"===e?(r=s-t)<0&&(r=0):"pagedown"===e?(r=s+t)>o.length-1&&(r=o.length-1):"last"===e&&(r=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[r],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:Ct(o[r])}})}},o.getTheme=function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Et):$t({},Et,this.props.theme):Et},o.getCommonProps=function(){var e=this.clearValue,t=this.getStyles,n=this.setValue,i=this.selectOption,o=this.props,r=o.classNamePrefix,s=o.isMulti,a=o.isRtl,l=o.options,c=this.state.selectValue,u=this.hasValue();return{cx:Q.bind(null,r),clearValue:e,getStyles:t,getValue:function(){return c},hasValue:u,isMulti:s,isRtl:a,options:l,selectOption:i,setValue:n,selectProps:o,theme:this.getTheme()}},o.getNextFocusedValue=function(e){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var t=this.state,n=t.focusedValue,i=t.selectValue.indexOf(n);if(i>-1){if(e.indexOf(n)>-1)return n;if(i<e.length)return e[i]}return null},o.getNextFocusedOption=function(e){var t=this.state.focusedOption;return t&&e.indexOf(t)>-1?t:e[0]},o.hasValue=function(){return this.state.selectValue.length>0},o.hasOptions=function(){return!!this.state.menuOptions.render.length},o.countOptions=function(){return this.state.menuOptions.focusable.length},o.isClearable=function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t},o.isOptionDisabled=function(e,t){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(e,t)},o.isOptionSelected=function(e,t){var n=this;if(t.indexOf(e)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(e,t);var i=this.getOptionValue(e);return t.some((function(e){return n.getOptionValue(e)===i}))},o.filterOption=function(e,t){return!this.props.filterOption||this.props.filterOption(e,t)},o.formatOptionLabel=function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,i=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:i})}return this.getOptionLabel(e)},o.formatGroupLabel=function(e){return this.props.formatGroupLabel(e)},o.startListeningComposition=function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))},o.stopListeningComposition=function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))},o.startListeningToTouch=function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))},o.stopListeningToTouch=function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))},o.constructAriaLiveMessage=function(){var e=this.state,t=e.ariaLiveContext,n=e.selectValue,i=e.focusedValue,o=e.focusedOption,r=this.props,s=r.options,a=r.menuIsOpen,l=r.inputValue,c=r.screenReaderStatus;return(i?function(e){var t=e.focusedValue,n=e.getOptionLabel,i=e.selectValue;return"value "+n(t)+" focused, "+(i.indexOf(t)+1)+" of "+i.length+"."}({focusedValue:i,getOptionLabel:this.getOptionLabel,selectValue:n}):"")+" "+(o&&a?function(e){var t=e.focusedOption,n=e.getOptionLabel,i=e.options;return"option "+n(t)+" focused"+(t.isDisabled?" disabled":"")+", "+(i.indexOf(t)+1)+" of "+i.length+"."}({focusedOption:o,getOptionLabel:this.getOptionLabel,options:s}):"")+" "+function(e){var t=e.inputValue;return e.screenReaderMessage+(t?" for search term "+t:"")+"."}({inputValue:l,screenReaderMessage:c({count:this.countOptions()})})+" "+t},o.renderInput=function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,i=e.inputId,o=e.inputValue,r=e.tabIndex,a=this.components.Input,l=this.state.inputIsHidden,c=i||this.getElementId("input"),u={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};if(!n)return s.a.createElement(st,$t({id:c,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Y,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:r,value:""},u));var h=this.commonProps,d=h.cx,p=h.theme,f=h.selectProps;return s.a.createElement(a,$t({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:d,getStyles:this.getStyles,id:c,innerRef:this.getInputRef,isDisabled:t,isHidden:l,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:f,spellCheck:"false",tabIndex:r,theme:p,type:"text",value:o},u))},o.renderPlaceholderOrValue=function(){var e=this,t=this.components,n=t.MultiValue,i=t.MultiValueContainer,o=t.MultiValueLabel,r=t.MultiValueRemove,a=t.SingleValue,l=t.Placeholder,c=this.commonProps,u=this.props,h=u.controlShouldRenderValue,d=u.isDisabled,p=u.isMulti,f=u.inputValue,g=u.placeholder,m=this.state,v=m.selectValue,b=m.focusedValue,y=m.isFocused;if(!this.hasValue()||!h)return f?null:s.a.createElement(l,$t({},c,{key:"placeholder",isDisabled:d,isFocused:y}),g);if(p)return v.map((function(t,a){var l=t===b;return s.a.createElement(n,$t({},c,{components:{Container:i,Label:o,Remove:r},isFocused:l,isDisabled:d,key:e.getOptionValue(t),index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));if(f)return null;var w=v[0];return s.a.createElement(a,$t({},c,{data:w,isDisabled:d}),this.formatOptionLabel(w,"value"))},o.renderClearIndicator=function(){var e=this.components.ClearIndicator,t=this.commonProps,n=this.props,i=n.isDisabled,o=n.isLoading,r=this.state.isFocused;if(!this.isClearable()||!e||i||!this.hasValue()||o)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return s.a.createElement(e,$t({},t,{innerProps:a,isFocused:r}))},o.renderLoadingIndicator=function(){var e=this.components.LoadingIndicator,t=this.commonProps,n=this.props,i=n.isDisabled,o=n.isLoading,r=this.state.isFocused;if(!e||!o)return null;return s.a.createElement(e,$t({},t,{innerProps:{"aria-hidden":"true"},isDisabled:i,isFocused:r}))},o.renderIndicatorSeparator=function(){var e=this.components,t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var i=this.commonProps,o=this.props.isDisabled,r=this.state.isFocused;return s.a.createElement(n,$t({},i,{isDisabled:o,isFocused:r}))},o.renderDropdownIndicator=function(){var e=this.components.DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,i=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return s.a.createElement(e,$t({},t,{innerProps:o,isDisabled:n,isFocused:i}))},o.renderMenu=function(){var e=this,t=this.components,n=t.Group,i=t.GroupHeading,o=t.Menu,r=t.MenuList,a=t.MenuPortal,l=t.LoadingMessage,c=t.NoOptionsMessage,u=t.Option,h=this.commonProps,d=this.state,p=d.focusedOption,f=d.menuOptions,g=this.props,m=g.captureMenuScroll,v=g.inputValue,b=g.isLoading,y=g.loadingMessage,w=g.minMenuHeight,x=g.maxMenuHeight,S=g.menuIsOpen,C=g.menuPlacement,k=g.menuPosition,E=g.menuPortalTarget,$=g.menuShouldBlockScroll,_=g.menuShouldScrollIntoView,A=g.noOptionsMessage,O=g.onMenuScrollToTop,L=g.onMenuScrollToBottom;if(!S)return null;var R,T=function(t){var n=p===t.data;return t.innerRef=n?e.getFocusedOptionRef:void 0,s.a.createElement(u,$t({},h,t,{isFocused:n}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())R=f.render.map((function(t){if("group"===t.type){t.type;var o=function(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["type"]),r=t.key+"-heading";return s.a.createElement(n,$t({},h,o,{Heading:i,headingProps:{id:r},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return T(e)})))}if("option"===t.type)return T(t)}));else if(b){var M=y({inputValue:v});if(null===M)return null;R=s.a.createElement(l,h,M)}else{var I=A({inputValue:v});if(null===I)return null;R=s.a.createElement(c,h,I)}var P={minMenuHeight:w,maxMenuHeight:x,menuPlacement:C,menuPosition:k,menuShouldScrollIntoView:_},F=s.a.createElement(he,$t({},h,P),(function(t){var n=t.ref,i=t.placerProps,a=i.placement,l=i.maxHeight;return s.a.createElement(o,$t({},h,P,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:b,placement:a}),s.a.createElement(wt,{isEnabled:m,onTopArrive:O,onBottomArrive:L},s.a.createElement(bt,{isEnabled:$},s.a.createElement(r,$t({},h,{innerRef:e.getMenuListRef,isLoading:b,maxHeight:l}),R))))}));return E||"fixed"===k?s.a.createElement(a,$t({},h,{appendTo:E,controlElement:this.controlRef,menuPlacement:C,menuPosition:k}),F):F},o.renderFormField=function(){var e=this,t=this.props,n=t.delimiter,i=t.isDisabled,o=t.isMulti,r=t.name,a=this.state.selectValue;if(r&&!i){if(o){if(n){var l=a.map((function(t){return e.getOptionValue(t)})).join(n);return s.a.createElement("input",{name:r,type:"hidden",value:l})}var c=a.length>0?a.map((function(t,n){return s.a.createElement("input",{key:"i-"+n,name:r,type:"hidden",value:e.getOptionValue(t)})})):s.a.createElement("input",{name:r,type:"hidden"});return s.a.createElement("div",null,c)}var u=a[0]?this.getOptionValue(a[0]):"";return s.a.createElement("input",{name:r,type:"hidden",value:u})}},o.renderLiveRegion=function(){return this.state.isFocused?s.a.createElement(ot,{"aria-live":"polite"},s.a.createElement("p",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),s.a.createElement("p",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null},o.render=function(){var e=this.components,t=e.Control,n=e.IndicatorsContainer,i=e.SelectContainer,o=e.ValueContainer,r=this.props,a=r.className,l=r.id,c=r.isDisabled,u=r.menuIsOpen,h=this.state.isFocused,d=this.commonProps=this.getCommonProps();return s.a.createElement(i,$t({},d,{className:a,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:h}),this.renderLiveRegion(),s.a.createElement(t,$t({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:h,menuIsOpen:u}),s.a.createElement(o,$t({},d,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),s.a.createElement(n,$t({},d,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())},i}(r.Component);function Tt(){return(Tt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}Rt.defaultProps=Ot;var Mt={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},It=function(e){var t,n;return n=t=function(t){var n,i;function o(){for(var e,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(e=t.call.apply(t,[this].concat(i))||this).select=void 0,e.state={inputValue:void 0!==e.props.inputValue?e.props.inputValue:e.props.defaultInputValue,menuIsOpen:void 0!==e.props.menuIsOpen?e.props.menuIsOpen:e.props.defaultMenuIsOpen,value:void 0!==e.props.value?e.props.value:e.props.defaultValue},e.onChange=function(t,n){e.callProp("onChange",t,n),e.setState({value:t})},e.onInputChange=function(t,n){var i=e.callProp("onInputChange",t,n);e.setState({inputValue:void 0!==i?i:t})},e.onMenuOpen=function(){e.callProp("onMenuOpen"),e.setState({menuIsOpen:!0})},e.onMenuClose=function(){e.callProp("onMenuClose"),e.setState({menuIsOpen:!1})},e}i=t,(n=o).prototype=Object.create(i.prototype),n.prototype.constructor=n,n.__proto__=i;var r=o.prototype;return r.focus=function(){this.select.focus()},r.blur=function(){this.select.blur()},r.getProp=function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]},r.callProp=function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return(t=this.props)[e].apply(t,i)}},r.render=function(){var t=this,n=this.props,i=(n.defaultInputValue,n.defaultMenuIsOpen,n.defaultValue,function(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(n,["defaultInputValue","defaultMenuIsOpen","defaultValue"]));return s.a.createElement(e,Tt({},i,{ref:function(e){t.select=e},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))},o}(r.Component),t.defaultProps=Mt,n};r.Component;var Pt=It(Rt);function Ft(){return(Ft=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var Dt,jt,Nt,Bt={cacheOptions:!1,defaultOptions:!1,filterOption:null,isLoading:!1},zt=It(Rt),Wt=(Dt=zt,Nt=jt=function(e){var t,n;function i(t){var n;return(n=e.call(this)||this).select=void 0,n.lastRequest=void 0,n.mounted=!1,n.optionsCache={},n.handleInputChange=function(e,t){var i=n.props,o=i.cacheOptions,r=function(e,t,n){if(n){var i=n(e,t);if("string"==typeof i)return i}return e}(e,t,i.onInputChange);if(!r)return delete n.lastRequest,void n.setState({inputValue:"",loadedInputValue:"",loadedOptions:[],isLoading:!1,passEmptyOptions:!1});if(o&&n.optionsCache[r])n.setState({inputValue:r,loadedInputValue:r,loadedOptions:n.optionsCache[r],isLoading:!1,passEmptyOptions:!1});else{var s=n.lastRequest={};n.setState({inputValue:r,isLoading:!0,passEmptyOptions:!n.state.loadedInputValue},(function(){n.loadOptions(r,(function(e){n.mounted&&(e&&(n.optionsCache[r]=e),s===n.lastRequest&&(delete n.lastRequest,n.setState({isLoading:!1,loadedInputValue:r,loadedOptions:e||[],passEmptyOptions:!1})))}))}))}return r},n.state={defaultOptions:Array.isArray(t.defaultOptions)?t.defaultOptions:void 0,inputValue:void 0!==t.inputValue?t.inputValue:"",isLoading:!0===t.defaultOptions,loadedOptions:[],passEmptyOptions:!1},n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=i.prototype;return o.componentDidMount=function(){var e=this;this.mounted=!0;var t=this.props.defaultOptions,n=this.state.inputValue;!0===t&&this.loadOptions(n,(function(t){if(e.mounted){var n=!!e.lastRequest;e.setState({defaultOptions:t||[],isLoading:n})}}))},o.UNSAFE_componentWillReceiveProps=function(e){e.cacheOptions!==this.props.cacheOptions&&(this.optionsCache={}),e.defaultOptions!==this.props.defaultOptions&&this.setState({defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0})},o.componentWillUnmount=function(){this.mounted=!1},o.focus=function(){this.select.focus()},o.blur=function(){this.select.blur()},o.loadOptions=function(e,t){var n=this.props.loadOptions;if(!n)return t();var i=n(e,t);i&&"function"==typeof i.then&&i.then(t,(function(){return t()}))},o.render=function(){var e=this,t=this.props,n=(t.loadOptions,t.isLoading),i=function(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["loadOptions","isLoading"]),o=this.state,r=o.defaultOptions,a=o.inputValue,l=o.isLoading,c=o.loadedInputValue,u=o.loadedOptions,h=o.passEmptyOptions?[]:a&&c?u:r||[];return s.a.createElement(Dt,Ft({},i,{ref:function(t){e.select=t},options:h,isLoading:l||n,onInputChange:this.handleInputChange}))},i}(r.Component),jt.defaultProps=Bt,Nt);function Ht(){return(Ht=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var Vt=function(e,t){void 0===e&&(e="");var n=String(e).toLowerCase(),i=String(t.value).toLowerCase(),o=String(t.label).toLowerCase();return i===n||o===n},Ut=Ht({allowCreateWhileLoading:!1,createOptionPosition:"last"},{formatCreateLabel:function(e){return'Create "'+e+'"'},isValidNewOption:function(e,t,n){return!(!e||t.some((function(t){return Vt(e,t)}))||n.some((function(t){return Vt(e,t)})))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}}),Gt=It(function(e){var t,n;return n=t=function(t){var n,i;function o(e){var n;(n=t.call(this,e)||this).select=void 0,n.onChange=function(e,t){var i=n.props,o=i.getNewOptionData,r=i.inputValue,s=i.isMulti,a=i.onChange,l=i.onCreateOption,c=i.value,u=i.name;if("select-option"!==t.action)return a(e,t);var h=n.state.newOption,d=Array.isArray(e)?e:[e];if(d[d.length-1]!==h)a(e,t);else if(l)l(r);else{var p=o(r,r),f={action:"create-option",name:u};a(s?[].concat(J(c),[p]):p,f)}};var i=e.options||[];return n.state={newOption:void 0,options:i},n}i=t,(n=o).prototype=Object.create(i.prototype),n.prototype.constructor=n,n.__proto__=i;var r=o.prototype;return r.UNSAFE_componentWillReceiveProps=function(e){var t=e.allowCreateWhileLoading,n=e.createOptionPosition,i=e.formatCreateLabel,o=e.getNewOptionData,r=e.inputValue,s=e.isLoading,a=e.isValidNewOption,l=e.value,c=e.options||[],u=this.state.newOption;u=a(r,J(l),c)?o(r,i(r)):void 0,this.setState({newOption:u,options:!t&&s||!u?c:"first"===n?[u].concat(c):[].concat(c,[u])})},r.focus=function(){this.select.focus()},r.blur=function(){this.select.blur()},r.render=function(){var t=this,n=this.state.options;return s.a.createElement(e,Ht({},this.props,{ref:function(e){t.select=e},options:n,onChange:this.onChange}))},o}(r.Component),t.defaultProps=Ut,n}(Rt)),Kt=n(78),qt=n.n(Kt);function Yt(e){return(Yt="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)}function Xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Qt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xt(Object(n),!0).forEach((function(t){Jt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function en(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function tn(e,t){return(tn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function nn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=sn(e);if(t){var o=sn(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return on(this,n)}}function on(e,t){return!t||"object"!==Yt(t)&&"function"!=typeof t?rn(e):t}function rn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sn(e){return(sn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var an=qe.Option,ln=window,cn=ln.jQuery,un=ln.ajaxurl,hn=ln.VPGutenbergVariables,dn=wp.i18n.__,pn=wp.element.Component,fn={},gn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&tn(e,t)}(a,e);var t,n,r,s=nn(a);function a(){var e;Zt(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var l=(e=s.call.apply(s,[this].concat(n))).props.callback;return e.state={options:{},ajaxStatus:!!l},e.getOptions=e.getOptions.bind(rn(e)),e.getDefaultValue=e.getDefaultValue.bind(rn(e)),e.findValueData=e.findValueData.bind(rn(e)),e.requestAjax=e.requestAjax.bind(rn(e)),e.requestAjaxDebounce=Object(i.debounce)(300,Object(o.a)(e.requestAjax)),e}return t=a,(n=[{key:"componentDidMount",value:function(){var e=this;this.props.callback&&this.requestAjax({},(function(t){t.options&&e.setState({options:t.options})}))}},{key:"getOptions",value:function(){var e=this.props.controlName;return fn[e]?fn[e]:Object.keys(this.state.options).length?this.state.options:this.props.options}},{key:"getDefaultValue",value:function(){var e=this,t=this.props,n=t.value,i=t.isMultiple,o=null;if(i){if(!n&&"string"!=typeof n||!n.length)return o;o=[],n.forEach((function(t){o.push(e.findValueData(t))}))}else{if(!n&&"string"!=typeof n)return o;o=this.findValueData(n)}return o}},{key:"findValueData",value:function(e){var t={value:e,label:e},n=this.getOptions();return n&&Object.keys(n).forEach((function(i){var o=n[i];i===e&&("string"==typeof o?t.label=o:t=o)})),t}},{key:"requestAjax",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=this.props,r=o.controlName,s=o.attributes;if(!this.isAJAXinProgress){this.isAJAXinProgress=!0,i&&this.setState({ajaxStatus:"progress"});var a=Qt({action:"vp_dynamic_control_callback",nonce:hn.nonce,vp_control_name:r,vp_attributes:s},t);cn.ajax({url:un,method:"POST",dataType:"json",data:a,complete:function(t){var o=t.responseJSON;n&&o.response&&(o.response.options&&(fn[r]=Qt(Qt({},fn[r]),o.response.options)),n(o.response)),i&&e.setState({ajaxStatus:!0}),e.isAJAXinProgress=!1}})}}},{key:"prepareOptions",value:function(e){return Object.keys(e||{}).map((function(t){var n=e[t];return"object"===Yt(n)?{value:n.value,label:n.label}:{value:t,label:e[t]}}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.onChange,i=t.isMultiple,o=t.isSearchable,r=t.isCreatable,s=t.callback,a=this.state.ajaxStatus,l=!!s&&o,c=a&&"progress"===a,u={className:"vpf-component-select",styles:qt.a,components:{Option:function(e){var t=e.data;return wp.element.createElement(an,e,void 0!==t.img?wp.element.createElement("div",{className:"vpf-component-select-option-img"},t.img?wp.element.createElement("img",{src:t.img,alt:t.label}):""):"",wp.element.createElement("span",{className:"vpf-component-select-option-label"},t.label),t.category?wp.element.createElement("div",{className:"vpf-component-select-option-category"},t.category):"")}},value:this.getDefaultValue(),options:this.prepareOptions(this.getOptions()),onChange:function(e){if(i)if(Array.isArray(e)){var t=[];e.forEach((function(e){t.push(e?e.value:"")})),n(t)}else n([]);else n(e?e.value:"")},isMulti:i,isSearchable:o,isLoading:c,isClearable:!1,placeholder:dn(o?"Type to search...":"Select...","@@text_domain")};return r?(u.placeholder=dn("Type and press Enter...","@@text_domain"),u.isSearchable=!0,wp.element.createElement(Gt,u)):l?(u.loadOptions=function(t,n){e.requestAjaxDebounce({q:t},(function(e){var t=[];e&&e.options&&Object.keys(e.options).forEach((function(n){t.push(e.options[n])})),n(t.length?t:null)}),!1)},u.cacheOptions=!0,u.defaultOptions=u.options,delete u.options,delete u.isLoading,wp.element.createElement(Wt,u)):wp.element.createElement(Pt,u)}}])&&en(t.prototype,n),r&&en(t,r),a}(pn)},function(e,t,n){"use strict";n(213);var i=n(3),o=n(4),r=n(80),s=n.n(r),a=n(2),l=n.n(a),c=(n(216),n(29)),u=window.VPGutenbergVariables.controls;function h(e){var t="",n="";if(void 0!==e.block_id&&e.block_id?n=e.block_id:void 0!==e.id&&e.id&&(n=e.id),!n)return t;if(n=".vp-id-".concat(n),Object.keys(u).forEach((function(i){var o=u[i],r=void 0!==o.style&&o.style;r&&void 0!==o.condition&&o.condition.length&&(r=Object(c.a)(o.condition,e)),r&&o.style.forEach((function(i){t+=function(e,t,n){var i="";return e&&void 0!==t&&""!==t&&null!==t&&void 0!==n.property?(void 0!==n.mask&&(t=n.mask.replace("$",t)),void 0!==n.element&&/\$/g.test(n.element)?e=n.element.replace("$",e):e+=void 0!==n.element?" ".concat(n.element):"",i="".concat(e," { ").concat(n.property,": ").concat(t,"; } ")):i}(n,e[o.name],i)}))})),void 0!==e.custom_css&&e.custom_css){var i=e.custom_css;i=(i=i.replace(/selector/g,n)).replace(/<\//g,"&lt;/"),t+=i}return t}function d(e){return(d="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)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?b(e):t}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var w=window.jQuery,x=window.VPAdminGutenbergVariables,S=wp.hooks.applyFilters,C=wp.element,k=C.Component,E=C.Fragment,$=C.createRef,_=wp.data.withSelect,A=wp.components.Spinner,O=1,L=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(c,e);var t,n,r,a=m(c);function c(){var e;p(this,c);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=a.call.apply(a,[this].concat(n))).state={loading:!0,uniqueId:"vpf-preview-".concat(O),latestIframeHeight:0},O+=1,e.frameRef=$(),e.formRef=$(),e.maybePreviewTypeChanged=e.maybePreviewTypeChanged.bind(b(e)),e.maybeAttributesChanged=e.maybeAttributesChanged.bind(b(e)),e.onFrameLoad=e.onFrameLoad.bind(b(e)),e.maybeReload=e.maybeReload.bind(b(e)),e.maybeReloadDebounce=Object(i.debounce)(300,Object(o.a)(e.maybeReload.bind(b(e)))),e.maybeResizePreviews=e.maybeResizePreviews.bind(b(e)),e.maybeResizePreviewsThrottle=Object(i.throttle)(100,Object(o.a)(e.maybeResizePreviews)),e.printInput=e.printInput.bind(b(e)),e}return t=c,(n=[{key:"componentDidMount",value:function(){var e=this.props.clientId;s()({interval:10,warningTimeout:6e4,checkOrigin:!1,onMessage:function(t){"clicked"===t.message&&(wp.data.dispatch("core/block-editor").selectBlock(e),window.focus())}},this.frameRef.current),this.frameRef.current.addEventListener("load",this.onFrameLoad),window.addEventListener("resize",this.maybeResizePreviewsThrottle),this.maybeReload()}},{key:"componentDidUpdate",value:function(e){this.maybePreviewTypeChanged(e),this.maybeAttributesChanged(e)}},{key:"componentWillUnmount",value:function(){this.frameRef.current.removeEventListener("load",this.onFrameLoad),window.removeEventListener("resize",this.maybeResizePreviewsThrottle),this.frameRef.current.iframeResizer&&(this.frameRef.current.iframeResizer.close(),this.frameRef.current.iframeResizer.removeListeners())}},{key:"onFrameLoad",value:function(e){var t=this;this.frameWindow=e.target.contentWindow,this.frameJQuery=e.target.contentWindow.jQuery,this.frameJQuery&&(this.$framePortfolio=this.frameJQuery(".vp-portfolio"),this.maybeResizePreviews(),this.frameTimeout&&clearTimeout(this.frameTimeout),this.frameTimeout=setTimeout((function(){t.setState({loading:!1})}),300))}},{key:"maybePreviewTypeChanged",value:function(e){e.previewDeviceType!==this.props.previewDeviceType&&this.maybeResizePreviews()}},{key:"maybeAttributesChanged",value:function(e){if(!this.busyReload){this.busyReload=!0;var t=this.props.attributes,n=e.attributes,i=this.frameRef.current,o={};if(Object.keys(t).forEach((function(e){var i=t[e];void 0!==n[e]&&n[e]===i||(o[e]=i)})),Object.keys(o).length){var r=!1;Object.keys(o).forEach((function(e){var t;r=r||!(void 0!==u[t=e]&&void 0!==u[t].style&&u[t].style.length)}));var s=S("vpf.editor.changed-attributes",{attributes:o,reload:r,$frame:this.frameRef.current,frameWindow:this.frameWindow,frameJQuery:this.frameJQuery,$framePortfolio:this.$framePortfolio});s.reload||(s.frameWindow&&s.frameWindow.vp_preview_post_data&&(s.frameWindow.vp_preview_post_data[s.name]=s.value),i.iFrameResizer&&t.block_id&&i.iFrameResizer.sendMessage({name:"dynamic-css",blockId:t.block_id,styles:h(t)})),s.reload&&this.maybeReloadDebounce(),this.busyReload=!1}else this.busyReload=!1}}},{key:"maybeReload",value:function(){var e=0;this.frameRef.current&&(e=this.frameRef.current.scrollHeight),this.setState({loading:!0,latestIframeHeight:e}),this.formRef.current.submit()}},{key:"maybeResizePreviews",value:function(){var e=w(".editor-styles-wrapper").width();if(e&&this.frameRef.current){var t=this.frameRef.current,n=w(t),i=n.closest(".visual-portfolio-gutenberg-preview-inner"),o=n.closest(".visual-portfolio-gutenberg-preview").width();i.css({width:e}),t.iFrameResizer&&(t.iFrameResizer.sendMessage({name:"resize",width:o}),t.iFrameResizer.resize())}}},{key:"printInput",value:function(e,t){var n=this,i={key:e,type:"text",name:e,value:t};if("number"==typeof t)i.type="number";else if("boolean"==typeof t)i.type="number",i.value=t?1:0;else if("object"===d(t)&&null!==t)return wp.element.createElement(E,null,Object.keys(t).map((function(i){return n.printInput("".concat(e,"[").concat(i,"]"),t[i])})));return wp.element.createElement("input",i)}},{key:"render",value:function(){var e=this,t=this.props.attributes,n=this.state,i=n.loading,o=n.uniqueId,r=n.latestIframeHeight,s=t.id,a=t.content_source;return wp.element.createElement("div",{className:l()("visual-portfolio-gutenberg-preview",i?"visual-portfolio-gutenberg-preview-loading":""),style:i?{minHeight:r}:{}},wp.element.createElement("div",{className:"visual-portfolio-gutenberg-preview-inner"},wp.element.createElement("form",{action:x.preview_url,target:o,method:"POST",style:{display:"none"},ref:this.formRef},wp.element.createElement("input",{type:"hidden",name:"vp_preview_frame",value:"true"}),wp.element.createElement("input",{type:"hidden",name:"vp_preview_type",value:"gutenberg"}),"saved"===a?wp.element.createElement("input",{type:"text",name:"vp_id",value:s}):wp.element.createElement(E,null,wp.element.createElement("input",{type:"hidden",name:"vp_content_source",value:a}),Object.keys(t).map((function(n){var i=t[n];return e.printInput("vp_".concat(n),i)})))),wp.element.createElement("iframe",{title:"vp-preview",id:o,name:o,allowtransparency:"true",ref:this.frameRef})),i?wp.element.createElement(A,null):"")}}])&&f(t.prototype,n),r&&f(t,r),c}(k);t.a=_((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return{previewDeviceType:t?t():"desktop"}}))(L)},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){(function(e,n){function i(e){return(i="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)}var o="[object Arguments]",r="[object Map]",s="[object Object]",a="[object Set]",l=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u[o]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u["[object Function]"]=u[r]=u["[object Number]"]=u[s]=u["[object RegExp]"]=u[a]=u["[object String]"]=u["[object WeakMap]"]=!1;var h="object"==(void 0===e?"undefined":i(e))&&e&&e.Object===Object&&e,d="object"==("undefined"==typeof self?"undefined":i(self))&&self&&self.Object===Object&&self,p=h||d||Function("return this")(),f="object"==i(t)&&t&&!t.nodeType&&t,g=f&&"object"==i(n)&&n&&!n.nodeType&&n,m=g&&g.exports===f,v=m&&h.process,b=function(){try{return v&&v.binding&&v.binding("util")}catch(e){}}(),y=b&&b.isTypedArray;function w(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}function x(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function S(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var C,k,E,$=Array.prototype,_=Function.prototype,A=Object.prototype,O=p["__core-js_shared__"],L=_.toString,R=A.hasOwnProperty,T=(C=/[^.]+$/.exec(O&&O.keys&&O.keys.IE_PROTO||""))?"Symbol(src)_1."+C:"",M=A.toString,I=RegExp("^"+L.call(R).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),P=m?p.Buffer:void 0,F=p.Symbol,D=p.Uint8Array,j=A.propertyIsEnumerable,N=$.splice,B=F?F.toStringTag:void 0,z=Object.getOwnPropertySymbols,W=P?P.isBuffer:void 0,H=(k=Object.keys,E=Object,function(e){return k(E(e))}),V=be(p,"DataView"),U=be(p,"Map"),G=be(p,"Promise"),K=be(p,"Set"),q=be(p,"WeakMap"),Y=be(Object,"create"),X=Se(V),Q=Se(U),J=Se(G),Z=Se(K),ee=Se(q),te=F?F.prototype:void 0,ne=te?te.valueOf:void 0;function ie(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function oe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function re(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function se(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new re;++t<n;)this.add(e[t])}function ae(e){var t=this.__data__=new oe(e);this.size=t.size}function le(e,t){var n=Ee(e),i=!n&&ke(e),o=!n&&!i&&$e(e),r=!n&&!i&&!o&&Re(e),s=n||i||o||r,a=s?function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}(e.length,String):[],l=a.length;for(var c in e)!t&&!R.call(e,c)||s&&("length"==c||o&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||xe(c,l))||a.push(c);return a}function ce(e,t){for(var n=e.length;n--;)if(Ce(e[n][0],t))return n;return-1}function ue(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":B&&B in Object(e)?function(e){var t=R.call(e,B),n=e[B];try{e[B]=void 0;var i=!0}catch(e){}var o=M.call(e);i&&(t?e[B]=n:delete e[B]);return o}(e):function(e){return M.call(e)}(e)}function he(e){return Le(e)&&ue(e)==o}function de(e,t,n,i,l){return e===t||(null==e||null==t||!Le(e)&&!Le(t)?e!=e&&t!=t:function(e,t,n,i,l,c){var u=Ee(e),h=Ee(t),d=u?"[object Array]":we(e),p=h?"[object Array]":we(t),f=(d=d==o?s:d)==s,g=(p=p==o?s:p)==s,m=d==p;if(m&&$e(e)){if(!$e(t))return!1;u=!0,f=!1}if(m&&!f)return c||(c=new ae),u||Re(e)?ge(e,t,n,i,l,c):function(e,t,n,i,o,s,l){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!s(new D(e),new D(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Ce(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case r:var c=x;case a:var u=1&i;if(c||(c=S),e.size!=t.size&&!u)return!1;var h=l.get(e);if(h)return h==t;i|=2,l.set(e,t);var d=ge(c(e),c(t),i,o,s,l);return l.delete(e),d;case"[object Symbol]":if(ne)return ne.call(e)==ne.call(t)}return!1}(e,t,d,n,i,l,c);if(!(1&n)){var v=f&&R.call(e,"__wrapped__"),b=g&&R.call(t,"__wrapped__");if(v||b){var y=v?e.value():e,w=b?t.value():t;return c||(c=new ae),l(y,w,n,i,c)}}if(!m)return!1;return c||(c=new ae),function(e,t,n,i,o,r){var s=1&n,a=me(e),l=a.length,c=me(t).length;if(l!=c&&!s)return!1;var u=l;for(;u--;){var h=a[u];if(!(s?h in t:R.call(t,h)))return!1}var d=r.get(e);if(d&&r.get(t))return d==t;var p=!0;r.set(e,t),r.set(t,e);var f=s;for(;++u<l;){h=a[u];var g=e[h],m=t[h];if(i)var v=s?i(m,g,h,t,e,r):i(g,m,h,e,t,r);if(!(void 0===v?g===m||o(g,m,n,i,r):v)){p=!1;break}f||(f="constructor"==h)}if(p&&!f){var b=e.constructor,y=t.constructor;b==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y||(p=!1)}return r.delete(e),r.delete(t),p}(e,t,n,i,l,c)}(e,t,n,i,de,l))}function pe(e){return!(!Oe(e)||function(e){return!!T&&T in e}(e))&&(_e(e)?I:l).test(Se(e))}function fe(e){if(!function(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||A;return e===n}(e))return H(e);var t=[];for(var n in Object(e))R.call(e,n)&&"constructor"!=n&&t.push(n);return t}function ge(e,t,n,i,o,r){var s=1&n,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var c=r.get(e);if(c&&r.get(t))return c==t;var u=-1,h=!0,d=2&n?new se:void 0;for(r.set(e,t),r.set(t,e);++u<a;){var p=e[u],f=t[u];if(i)var g=s?i(f,p,u,t,e,r):i(p,f,u,e,t,r);if(void 0!==g){if(g)continue;h=!1;break}if(d){if(!w(t,(function(e,t){if(s=t,!d.has(s)&&(p===e||o(p,e,n,i,r)))return d.push(t);var s}))){h=!1;break}}else if(p!==f&&!o(p,f,n,i,r)){h=!1;break}}return r.delete(e),r.delete(t),h}function me(e){return function(e,t,n){var i=t(e);return Ee(e)?i:function(e,t){for(var n=-1,i=t.length,o=e.length;++n<i;)e[o+n]=t[n];return e}(i,n(e))}(e,Te,ye)}function ve(e,t){var n=e.__data__;return function(e){var t=i(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function be(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return pe(n)?n:void 0}ie.prototype.clear=function(){this.__data__=Y?Y(null):{},this.size=0},ie.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ie.prototype.get=function(e){var t=this.__data__;if(Y){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return R.call(t,e)?t[e]:void 0},ie.prototype.has=function(e){var t=this.__data__;return Y?void 0!==t[e]:R.call(t,e)},ie.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Y&&void 0===t?"__lodash_hash_undefined__":t,this},oe.prototype.clear=function(){this.__data__=[],this.size=0},oe.prototype.delete=function(e){var t=this.__data__,n=ce(t,e);return!(n<0)&&(n==t.length-1?t.pop():N.call(t,n,1),--this.size,!0)},oe.prototype.get=function(e){var t=this.__data__,n=ce(t,e);return n<0?void 0:t[n][1]},oe.prototype.has=function(e){return ce(this.__data__,e)>-1},oe.prototype.set=function(e,t){var n=this.__data__,i=ce(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},re.prototype.clear=function(){this.size=0,this.__data__={hash:new ie,map:new(U||oe),string:new ie}},re.prototype.delete=function(e){var t=ve(this,e).delete(e);return this.size-=t?1:0,t},re.prototype.get=function(e){return ve(this,e).get(e)},re.prototype.has=function(e){return ve(this,e).has(e)},re.prototype.set=function(e,t){var n=ve(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},se.prototype.add=se.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},se.prototype.has=function(e){return this.__data__.has(e)},ae.prototype.clear=function(){this.__data__=new oe,this.size=0},ae.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ae.prototype.get=function(e){return this.__data__.get(e)},ae.prototype.has=function(e){return this.__data__.has(e)},ae.prototype.set=function(e,t){var n=this.__data__;if(n instanceof oe){var i=n.__data__;if(!U||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new re(i)}return n.set(e,t),this.size=n.size,this};var ye=z?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,i=null==e?0:e.length,o=0,r=[];++n<i;){var s=e[n];t(s,n,e)&&(r[o++]=s)}return r}(z(e),(function(t){return j.call(e,t)})))}:function(){return[]},we=ue;function xe(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||c.test(e))&&e>-1&&e%1==0&&e<t}function Se(e){if(null!=e){try{return L.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ce(e,t){return e===t||e!=e&&t!=t}(V&&"[object DataView]"!=we(new V(new ArrayBuffer(1)))||U&&we(new U)!=r||G&&"[object Promise]"!=we(G.resolve())||K&&we(new K)!=a||q&&"[object WeakMap]"!=we(new q))&&(we=function(e){var t=ue(e),n=t==s?e.constructor:void 0,i=n?Se(n):"";if(i)switch(i){case X:return"[object DataView]";case Q:return r;case J:return"[object Promise]";case Z:return a;case ee:return"[object WeakMap]"}return t});var ke=he(function(){return arguments}())?he:function(e){return Le(e)&&R.call(e,"callee")&&!j.call(e,"callee")},Ee=Array.isArray;var $e=W||function(){return!1};function _e(e){if(!Oe(e))return!1;var t=ue(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ae(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Oe(e){var t=i(e);return null!=e&&("object"==t||"function"==t)}function Le(e){return null!=e&&"object"==i(e)}var Re=y?function(e){return function(t){return e(t)}}(y):function(e){return Le(e)&&Ae(e.length)&&!!u[ue(e)]};function Te(e){return function(e){return null!=e&&Ae(e.length)&&!_e(e)}(e)?le(e):fe(e)}n.exports=function(e,t){return de(e,t)}}).call(this,n(19),n(5)(e))},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});t.editorOptions=["minLines","maxLines","readOnly","highlightActiveLine","tabSize","enableBasicAutocompletion","enableLiveAutocompletion","enableSnippets"];t.editorEvents=["onChange","onFocus","onInput","onBlur","onCopy","onPaste","onSelectionChange","onCursorChange","onScroll","handleOptions","updateRef"];t.getAceInstance=function(){var t;return"undefined"==typeof window?(e.window={},t=n(30),delete e.window):window.ace?(t=window.ace).acequire=window.ace.require||window.ace.acequire:t=n(30),t};t.debounce=function(e,t){var n=null;return function(){var i=this,o=arguments;clearTimeout(n),n=setTimeout((function(){e.apply(i,o)}),t)}}}).call(this,n(19))},function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var s=n(49),a=s.getAceInstance(),l=n(30),c=n(88),u=n(1),h=n(0),d=n(48),p=n(89),f=function(e){function t(t){var n=e.call(this,t)||this;return s.editorEvents.forEach((function(e){n[e]=n[e].bind(n)})),n.debounce=s.debounce,n}return o(t,e),t.prototype.isInShadow=function(e){for(var t=e&&e.parentNode;t;){if("[object ShadowRoot]"===t.toString())return!0;t=t.parentNode}return!1},t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.className,i=t.onBeforeLoad,o=t.mode,r=t.focus,l=t.theme,u=t.fontSize,h=t.value,d=t.defaultValue,f=t.cursorStart,g=t.showGutter,m=t.wrapEnabled,v=t.showPrintMargin,b=t.scrollMargin,y=void 0===b?[0,0,0,0]:b,w=t.keyboardHandler,x=t.onLoad,S=t.commands,C=t.annotations,k=t.markers,E=t.splits;this.editor=a.edit(this.refEditor),this.isInShadow(this.refEditor)&&this.editor.renderer.attachToShadowRoot(),this.editor.setTheme("ace/theme/"+l),i&&i(a);var $=Object.keys(this.props.editorProps),_=new c.Split(this.editor.container,"ace/theme/"+l,E);this.editor.env.split=_,this.splitEditor=_.getEditor(0),this.split=_,this.editor.setShowPrintMargin(!1),this.editor.renderer.setShowGutter(!1);var A=this.splitEditor.$options;this.props.debounceChangePeriod&&(this.onChange=this.debounce(this.onChange,this.props.debounceChangePeriod)),_.forEach((function(t,n){for(var i=0;i<$.length;i++)t[$[i]]=e.props.editorProps[$[i]];var r=p(d,n),c=p(h,n,"");t.session.setUndoManager(new a.UndoManager),t.setTheme("ace/theme/"+l),t.renderer.setScrollMargin(y[0],y[1],y[2],y[3]),t.getSession().setMode("ace/mode/"+o),t.setFontSize(u),t.renderer.setShowGutter(g),t.getSession().setUseWrapMode(m),t.setShowPrintMargin(v),t.on("focus",e.onFocus),t.on("blur",e.onBlur),t.on("input",e.onInput),t.on("copy",e.onCopy),t.on("paste",e.onPaste),t.on("change",e.onChange),t.getSession().selection.on("changeSelection",e.onSelectionChange),t.getSession().selection.on("changeCursor",e.onCursorChange),t.session.on("changeScrollTop",e.onScroll),t.setValue(void 0===r?c:r,f);var b=p(C,n,[]),x=p(k,n,[]);t.getSession().setAnnotations(b),x&&x.length>0&&e.handleMarkers(x,t);for(i=0;i<s.editorOptions.length;i++){var E=s.editorOptions[i];A.hasOwnProperty(E)?t.setOption(E,e.props[E]):e.props[E]&&console.warn("ReaceAce: editor option "+E+" was activated but not found. Did you need to import a related tool or did you possibly mispell the option?")}e.handleOptions(e.props,t),Array.isArray(S)&&S.forEach((function(e){"string"==typeof e.exec?t.commands.bindKey(e.bindKey,e.exec):t.commands.addCommand(e)})),w&&t.setKeyboardHandler("ace/keyboard/"+w)})),n&&(this.refEditor.className+=" "+n),r&&this.splitEditor.focus();var O=this.editor.env.split;O.setOrientation("below"===this.props.orientation?O.BELOW:O.BESIDE),O.resize(!0),x&&x(O)},t.prototype.componentDidUpdate=function(e){var t=this,n=e,i=this.props,o=this.editor.env.split;if(i.splits!==n.splits&&o.setSplits(i.splits),i.orientation!==n.orientation&&o.setOrientation("below"===i.orientation?o.BELOW:o.BESIDE),o.forEach((function(e,o){i.mode!==n.mode&&e.getSession().setMode("ace/mode/"+i.mode),i.keyboardHandler!==n.keyboardHandler&&(i.keyboardHandler?e.setKeyboardHandler("ace/keyboard/"+i.keyboardHandler):e.setKeyboardHandler(null)),i.fontSize!==n.fontSize&&e.setFontSize(i.fontSize),i.wrapEnabled!==n.wrapEnabled&&e.getSession().setUseWrapMode(i.wrapEnabled),i.showPrintMargin!==n.showPrintMargin&&e.setShowPrintMargin(i.showPrintMargin),i.showGutter!==n.showGutter&&e.renderer.setShowGutter(i.showGutter);for(var r=0;r<s.editorOptions.length;r++){var a=s.editorOptions[r];i[a]!==n[a]&&e.setOption(a,i[a])}d(i.setOptions,n.setOptions)||t.handleOptions(i,e);var l=p(i.value,o,"");if(e.getValue()!==l){t.silent=!0;var c=e.session.selection.toJSON();e.setValue(l,i.cursorStart),e.session.selection.fromJSON(c),t.silent=!1}var u=p(i.annotations,o,[]),h=p(n.annotations,o,[]);d(u,h)||e.getSession().setAnnotations(u);var f=p(i.markers,o,[]),g=p(n.markers,o,[]);!d(f,g)&&Array.isArray(f)&&t.handleMarkers(f,e)})),i.className!==n.className){var r=this.refEditor.className.trim().split(" ");n.className.trim().split(" ").forEach((function(e){var t=r.indexOf(e);r.splice(t,1)})),this.refEditor.className=" "+i.className+" "+r.join(" ")}i.theme!==n.theme&&o.setTheme("ace/theme/"+i.theme),i.focus&&!n.focus&&this.splitEditor.focus(),i.height===this.props.height&&i.width===this.props.width||this.editor.resize()},t.prototype.componentWillUnmount=function(){this.editor.destroy(),this.editor=null},t.prototype.onChange=function(e){if(this.props.onChange&&!this.silent){var t=[];this.editor.env.split.forEach((function(e){t.push(e.getValue())})),this.props.onChange(t,e)}},t.prototype.onSelectionChange=function(e){if(this.props.onSelectionChange){var t=[];this.editor.env.split.forEach((function(e){t.push(e.getSelection())})),this.props.onSelectionChange(t,e)}},t.prototype.onCursorChange=function(e){if(this.props.onCursorChange){var t=[];this.editor.env.split.forEach((function(e){t.push(e.getSelection())})),this.props.onCursorChange(t,e)}},t.prototype.onFocus=function(e){this.props.onFocus&&this.props.onFocus(e)},t.prototype.onInput=function(e){this.props.onInput&&this.props.onInput(e)},t.prototype.onBlur=function(e){this.props.onBlur&&this.props.onBlur(e)},t.prototype.onCopy=function(e){this.props.onCopy&&this.props.onCopy(e)},t.prototype.onPaste=function(e){this.props.onPaste&&this.props.onPaste(e)},t.prototype.onScroll=function(){this.props.onScroll&&this.props.onScroll(this.editor)},t.prototype.handleOptions=function(e,t){for(var n=Object.keys(e.setOptions),i=0;i<n.length;i++)t.setOption(n[i],e.setOptions[n[i]])},t.prototype.handleMarkers=function(e,t){var n=t.getSession().getMarkers(!0);for(var i in n)n.hasOwnProperty(i)&&t.getSession().removeMarker(n[i].id);for(var i in n=t.getSession().getMarkers(!1))n.hasOwnProperty(i)&&t.getSession().removeMarker(n[i].id);e.forEach((function(e){var n=e.startRow,i=e.startCol,o=e.endRow,r=e.endCol,s=e.className,a=e.type,c=e.inFront,u=void 0!==c&&c,h=new l.Range(n,i,o,r);t.getSession().addMarker(h,s,a,u)}))},t.prototype.updateRef=function(e){this.refEditor=e},t.prototype.render=function(){var e=this.props,t=e.name,n=e.width,i=e.height,o=e.style,s=r({width:n,height:i},o);return h.createElement("div",{ref:this.updateRef,id:t,style:s})},t.propTypes={className:u.string,debounceChangePeriod:u.number,defaultValue:u.arrayOf(u.string),focus:u.bool,fontSize:u.oneOfType([u.number,u.string]),height:u.string,mode:u.string,name:u.string,onBlur:u.func,onChange:u.func,onCopy:u.func,onFocus:u.func,onInput:u.func,onLoad:u.func,onPaste:u.func,onScroll:u.func,orientation:u.string,showGutter:u.bool,splits:u.number,theme:u.string,value:u.arrayOf(u.string),width:u.string,onSelectionChange:u.func,onCursorChange:u.func,onBeforeLoad:u.func,minLines:u.number,maxLines:u.number,readOnly:u.bool,highlightActiveLine:u.bool,tabSize:u.number,showPrintMargin:u.bool,cursorStart:u.number,editorProps:u.object,setOptions:u.object,style:u.object,scrollMargin:u.array,annotations:u.array,markers:u.array,keyboardHandler:u.string,wrapEnabled:u.bool,enableBasicAutocompletion:u.oneOfType([u.bool,u.array]),enableLiveAutocompletion:u.oneOfType([u.bool,u.array]),commands:u.array},t.defaultProps={name:"ace-editor",focus:!1,orientation:"beside",splits:2,mode:"",theme:"",height:"500px",width:"500px",value:[],fontSize:12,showGutter:!0,onChange:null,onPaste:null,onLoad:null,onScroll:null,minLines:null,maxLines:null,readOnly:!1,highlightActiveLine:!0,showPrintMargin:!0,tabSize:4,cursorStart:1,editorProps:{},style:{},scrollMargin:[0,0,0,0],setOptions:{},wrapEnabled:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1},t}(h.Component);t.default=f},function(e,t,n){var i=n(53);e.exports=function(e,t,n){"__proto__"==t&&i?i(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var i=n(10),o=function(){try{var e=i(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){var i=n(13),o=n(8);e.exports=function(e){if(!o(e))return!1;var t=i(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){(function(t){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})(e)}var i="object"==(void 0===t?"undefined":n(t))&&t&&t.Object===Object&&t;e.exports=i}).call(this,n(19))},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var i=n(112),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var r=arguments,s=-1,a=o(r.length-t,0),l=Array(a);++s<a;)l[s]=r[t+s];s=-1;for(var c=Array(t+1);++s<t;)c[s]=r[s];return c[t]=n(l),i(e,this,c)}}},function(e,t,n){var i=n(113),o=n(115)(i);e.exports=o},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t){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})(e)}var i=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var o=n(e);return!!(t=null==t?9007199254740991:t)&&("number"==o||"symbol"!=o&&i.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){var i=n(117),o=n(63),r=n(12),s=n(64),a=n(61),l=n(120),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=r(e),u=!n&&o(e),h=!n&&!u&&s(e),d=!n&&!u&&!h&&l(e),p=n||u||h||d,f=p?i(e.length,String):[],g=f.length;for(var m in e)!t&&!c.call(e,m)||p&&("length"==m||h&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||a(m,g))||f.push(m);return f}},function(e,t,n){var i=n(118),o=n(11),r=Object.prototype,s=r.hasOwnProperty,a=r.propertyIsEnumerable,l=i(function(){return arguments}())?i:function(e){return o(e)&&s.call(e,"callee")&&!a.call(e,"callee")};e.exports=l},function(e,t,n){(function(e){function i(e){return(i="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)}var o=n(6),r=n(119),s="object"==i(t)&&t&&!t.nodeType&&t,a=s&&"object"==i(e)&&e&&!e.nodeType&&e,l=a&&a.exports===s?o.Buffer:void 0,c=(l?l.isBuffer:void 0)||r;e.exports=c}).call(this,n(5)(e))},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){"use strict";(e.exports={}).forEach=function(e,t){for(var n=0;n<e.length;n++){var i=t(e[n]);if(i)return i}}},function(e,t,n){"use strict";var i=e.exports={};i.isIE=function(e){return(-1!==(t=navigator.userAgent.toLowerCase()).indexOf("msie")||-1!==t.indexOf("trident")||-1!==t.indexOf(" edge/"))&&(!e||e===function(){var e=3,t=document.createElement("div"),n=t.getElementsByTagName("i");do{t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e"}while(n[0]);return e>4?e:void 0}());var t},i.isLegacyOpera=function(){return!!window.opera}},function(e,t){e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length,o=Array(i);++n<i;)o[n]=t(e[n],n,e);return o}},function(e,t,n){var i=n(151),o=n(158),r=n(160),s=n(161),a=n(162);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=o,l.prototype.get=r,l.prototype.has=s,l.prototype.set=a,e.exports=l},function(e,t){e.exports=function(){return[]}},function(e,t,n){var i=n(40),o=n(41),r=n(39),s=n(70),a=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)i(t,r(e)),e=o(e);return t}:s;e.exports=a},function(e,t,n){var i=n(40),o=n(12);e.exports=function(e,t,n){var r=t(e);return o(e)?r:i(r,n(e))}},function(e,t,n){var i=n(72),o=n(71),r=n(38);e.exports=function(e){return i(e,r,o)}},function(e,t,n){var i=n(23);e.exports=function(e){if("string"==typeof e||i(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(84),o=n(87);t.diff=o.default;var r=n(51);t.split=r.default,t.default=i.default},function(e,t,n){var i="undefined"!=typeof window,o=i?window.Masonry||n(97):null,r=i?n(102):null,s=n(103),a=n(124),l=n(135),c=n(138),u=n(1),h=n(0),d=n(208),p={enableResizableChildren:u.bool,disableImagesLoaded:u.bool,onImagesLoaded:u.func,updateOnEachImageLoad:u.bool,options:u.object,imagesLoadedOptions:u.object,elementType:u.string,onLayoutComplete:u.func,onRemoveComplete:u.func},f=d({masonry:!1,erd:void 0,latestKnownDomChildren:[],displayName:"MasonryComponent",imagesLoadedCancelRef:void 0,propTypes:p,getDefaultProps:function(){return{enableResizableChildren:!1,disableImagesLoaded:!1,updateOnEachImageLoad:!1,options:{},imagesLoadedOptions:{},className:"",elementType:"div",onLayoutComplete:function(){},onRemoveComplete:function(){}}},initializeMasonry:function(e){this.masonry&&!e||(this.masonry=new o(this.masonryContainer,this.props.options),this.props.onLayoutComplete&&this.masonry.on("layoutComplete",this.props.onLayoutComplete),this.props.onRemoveComplete&&this.masonry.on("removeComplete",this.props.onRemoveComplete),this.latestKnownDomChildren=this.getCurrentDomChildren())},getCurrentDomChildren:function(){var e=this.masonryContainer,t=this.props.options.itemSelector?e.querySelectorAll(this.props.options.itemSelector):e.children;return Array.prototype.slice.call(t)},diffDomChildren:function(){var e=!1,t=this.latestKnownDomChildren.filter((function(e){return!!e.parentNode}));t.length!==this.latestKnownDomChildren.length&&(e=!0);var n=this.getCurrentDomChildren(),i=t.filter((function(e){return!~n.indexOf(e)})),o=n.filter((function(e){return!~t.indexOf(e)})),r=0,s=o.filter((function(e){var t=r===n.indexOf(e);return t&&r++,t})),a=o.filter((function(e){return-1===s.indexOf(e)})),l=[];return 0===i.length&&(l=t.filter((function(e,t){return t!==n.indexOf(e)}))),this.latestKnownDomChildren=n,{old:t,new:n,removed:i,appended:a,prepended:s,moved:l,forceItemReload:e}},performLayout:function(){var e=this.diffDomChildren(),t=e.forceItemReload||e.moved.length>0;e.removed.length>0&&(this.props.enableResizableChildren&&e.removed.forEach(this.erd.removeAllListeners,this.erd),this.masonry.remove(e.removed),t=!0),e.appended.length>0&&(this.masonry.appended(e.appended),0===e.prepended.length&&(t=!0),this.props.enableResizableChildren&&e.appended.forEach(this.listenToElementResize,this)),e.prepended.length>0&&(this.masonry.prepended(e.prepended),this.props.enableResizableChildren&&e.prepended.forEach(this.listenToElementResize,this)),t&&this.masonry.reloadItems(),this.masonry.layout()},derefImagesLoaded:function(){this.imagesLoadedCancelRef(),this.imagesLoadedCancelRef=void 0},imagesLoaded:function(){if(!this.props.disableImagesLoaded){this.imagesLoadedCancelRef&&this.derefImagesLoaded();var e=this.props.updateOnEachImageLoad?"progress":"always",t=l(function(e){this.props.onImagesLoaded&&this.props.onImagesLoaded(e),this.masonry.layout()}.bind(this),100),n=r(this.masonryContainer,this.props.imagesLoadedOptions).on(e,t);this.imagesLoadedCancelRef=function(){n.off(e,t),t.cancel()}}},initializeResizableChildren:function(){this.props.enableResizableChildren&&(this.erd=a({strategy:"scroll"}),this.latestKnownDomChildren.forEach(this.listenToElementResize,this))},listenToElementResize:function(e){this.erd.listenTo(e,function(){this.masonry.layout()}.bind(this))},destroyErd:function(){this.erd&&this.latestKnownDomChildren.forEach(this.erd.uninstall,this.erd)},componentDidMount:function(){this.initializeMasonry(),this.initializeResizableChildren(),this.imagesLoaded()},componentDidUpdate:function(){this.performLayout(),this.imagesLoaded()},componentWillUnmount:function(){this.destroyErd(),this.props.onLayoutComplete&&this.masonry.off("layoutComplete",this.props.onLayoutComplete),this.props.onRemoveComplete&&this.masonry.off("removeComplete",this.props.onRemoveComplete),this.imagesLoadedCancelRef&&this.derefImagesLoaded(),this.masonry.destroy()},setRef:function(e){this.masonryContainer=e},render:function(){var e=c(this.props,Object.keys(p));return h.createElement(this.props.elementType,s({},e,{ref:this.setRef}),this.props.children)}});e.exports=f,e.exports.default=f},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t){e.exports={control:function(e,t){var n=Object.assign(e,{cursor:"pointer",minHeight:30});return n=t.isFocused&&!t.isDisabled?Object.assign(n,{borderColor:"#007cba"}):Object.assign(n,{borderColor:"#7e8993","&:hover":{borderColor:"#7e8993"}}),t.isFocused&&(n=Object.assign(n,{boxShadow:"0 0 0 1px #007cba","&:hover":{borderColor:"#007cba"}})),n},valueContainer:function(e){return Object.assign(e,{padding:"0 8px"})},input:function(e){return Object.assign(e,{margin:0,height:30,paddingTop:0,paddingBottom:0,input:{boxShadow:"none !important"}})},dropdownIndicator:function(e){return Object.assign(e,{padding:5,color:"#555555","&:hover":{color:"#555555"},svg:{width:17,height:17}})},clearIndicator:function(e){return Object.assign(e,{padding:5,svg:{width:15,height:15}})},indicatorSeparator:function(){return!1},multiValue:function(e){return Object.assign(e,{padding:"2px 3px",borderRadius:4,backgroundColor:"#555d66"})},multiValueLabel:function(e){return Object.assign(e,{padding:0,color:"#fff"})},multiValueRemove:function(e){return Object.assign(e,{padding:0,marginLeft:5,color:"#adadad",svg:{width:10,height:10}})},option:function(e,t){var n=Object.assign(e,{display:"flex",alignItems:"center",padding:"4px 10px"});return t.isFocused&&(n=Object.assign(n,{backgroundColor:"#efefef"})),t.isSelected&&(n=Object.assign(n,{backgroundColor:"#007cba"})),n},menu:function(e){return Object.assign(e,{zIndex:2})}}},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var o=(s=i,a=btoa(unescape(encodeURIComponent(JSON.stringify(s)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),"/*# ".concat(l," */")),r=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[n].concat(r).concat([o]).join("\n")}var s,a,l;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,i){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(i)for(var r=0;r<this.length;r++){var s=this[r][0];null!=s&&(o[s]=!0)}for(var a=0;a<e.length;a++){var l=[].concat(e[a]);i&&o[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},function(e,t,n){var i,o,r;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})(e)}!function(n){if("undefined"!=typeof window){var a,l=0,c=!1,u=!1,h="message".length,d="[iFrameSizer]",p=d.length,f=null,g=window.requestAnimationFrame,m={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},v={},b=null,y={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){A("onMessage function not defined")},onResized:function(){},onScroll:function(){return!0}},w={};window.jQuery&&((a=window.jQuery).fn?a.fn.iFrameResize||(a.fn.iFrameResize=function(e){return this.filter("iframe").each((function(t,n){W(n,e)})).end()}):_("","Unable to bind to jQuery, it is not fully loaded.")),o=[],void 0===(r="function"==typeof(i=K)?i.apply(t,o):i)||(e.exports=r),window.iFrameResize=window.iFrameResize||K()}function x(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function S(e,t,n){e.addEventListener(t,n,!1)}function C(e,t,n){e.removeEventListener(t,n,!1)}function k(e){return d+"["+function(e){var t="Host page: "+e;return window.top!==window.self&&(t=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),t}(e)+"]"}function E(e){return v[e]?v[e].log:c}function $(e,t){O("log",e,t,E(e))}function _(e,t){O("info",e,t,E(e))}function A(e,t){O("warn",e,t,!0)}function O(e,t,n,i){!0===i&&"object"===s(window.console)&&console[e](k(t),n)}function L(e){function t(){o("Height"),o("Width"),N((function(){j(O),P(L),u("onResized",O)}),O,"init")}function n(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}function i(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}function o(e){var t=Number(v[L]["max"+e]),n=Number(v[L]["min"+e]),i=e.toLowerCase(),o=Number(O[i]);$(L,"Checking "+i+" is in range "+n+"-"+t),o<n&&(o=n,$(L,"Set "+i+" to min value")),o>t&&(o=t,$(L,"Set "+i+" to max value")),O[i]=""+o}function r(e){return E.substr(E.indexOf(":")+h+e)}function s(e,t){var n,i,o;n=function(){var n,i;B("Send Page Info","pageInfo:"+(n=document.body.getBoundingClientRect(),i=O.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:i.height,iframeWidth:i.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(i.top-n.top,10),offsetLeft:parseInt(i.left-n.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,t)},i=32,w[o=t]||(w[o]=setTimeout((function(){w[o]=null,n()}),i))}function a(e){var t=e.getBoundingClientRect();return I(L),{x:Math.floor(Number(t.left)+Number(f.x)),y:Math.floor(Number(t.top)+Number(f.y))}}function l(e){var t=e?a(O.iframe):{x:0,y:0},n={x:Number(O.width)+t.x,y:Number(O.height)+t.y};$(L,"Reposition requested from iFrame (offset x:"+t.x+" y:"+t.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](n.x,n.y):A(L,"Unable to scroll to requested position, window.parentIFrame not found"):(f=n,c(),$(L,"--"))}function c(){!1!==u("onScroll",f)?P(L):F()}function u(e,t){return R(L,e,t)}var g,m,b,y,x,k,E=e.data,O={},L=null;"[iFrameResizerChild]Ready"===E?function(){for(var e in v)B("iFrame requested init",z(e),v[e].iframe,e)}():d===(""+E).substr(0,p)&&E.substr(p).split(":")[0]in v?(b=E.substr(p).split(":"),y=b[1]?parseInt(b[1],10):0,x=v[b[0]]&&v[b[0]].iframe,k=getComputedStyle(x),O={iframe:x,id:b[0],height:y+n(k)+i(k),width:b[2],type:b[3]},L=O.id,v[L]&&(v[L].loaded=!0),(m=O.type in{true:1,false:1,undefined:1})&&$(L,"Ignoring init message from meta parent page"),!m&&function(e){var t=!0;return v[e]||(t=!1,A(O.type+" No settings for "+e+". Message was: "+E)),t}(L)&&($(L,"Received: "+E),g=!0,null===O.iframe&&(A(L,"IFrame ("+O.id+") not found"),g=!1),g&&function(){var t,n=e.origin,i=v[L]&&v[L].checkOrigin;if(i&&""+n!="null"&&!(i.constructor===Array?function(){var e=0,t=!1;for($(L,"Checking connection is from allowed list of origins: "+i);e<i.length;e++)if(i[e]===n){t=!0;break}return t}():(t=v[L]&&v[L].remoteHost,$(L,"Checking connection is from: "+t),n===t)))throw new Error("Unexpected message received from: "+n+" for "+O.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(v[L]&&v[L].firstRun&&v[L]&&(v[L].firstRun=!1),O.type){case"close":M(O.iframe);break;case"message":d=r(6),$(L,"onMessage passed: {iframe: "+O.iframe.id+", message: "+d+"}"),u("onMessage",{iframe:O.iframe,message:JSON.parse(d)}),$(L,"--");break;case"autoResize":v[L].autoResize=JSON.parse(r(9));break;case"scrollTo":l(!1);break;case"scrollToOffset":l(!0);break;case"pageInfo":s(v[L]&&v[L].iframe,L),function(){function e(e,i){function o(){v[n]?s(v[n].iframe,n):t()}["scroll","resize"].forEach((function(t){$(n,e+t+" listener for sendPageInfo"),i(window,t,o)}))}function t(){e("Remove ",C)}var n=L;e("Add ",S),v[n]&&(v[n].stopPageInfo=t)}();break;case"pageInfoStop":v[L]&&v[L].stopPageInfo&&(v[L].stopPageInfo(),delete v[L].stopPageInfo);break;case"inPageLink":e=r(9),i=e.split("#")[1]||"",o=decodeURIComponent(i),(h=document.getElementById(o)||document.getElementsByName(o)[0])?(n=a(h),$(L,"Moving to in page link (#"+i+") at x: "+n.x+" y: "+n.y),f={x:n.x,y:n.y},c(),$(L,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(i):$(L,"In page link #"+i+" not found and window.parentIFrame not found"):$(L,"In page link #"+i+" not found");break;case"reset":D(O);break;case"init":t(),u("onInit",O.iframe);break;default:t()}var e,n,i,o,h,d}())):_(L,"Ignored: "+E)}function R(e,t,n){var i=null,o=null;if(v[e]){if("function"!=typeof(i=v[e][t]))throw new TypeError(t+" on iFrame["+e+"] is not a function");o=i(n)}return o}function T(e){var t=e.id;delete v[t]}function M(e){var t=e.id;if(!1!==R(t,"onClose",t)){$(t,"Removing iFrame: "+t);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){A(e)}R(t,"onClosed",t),$(t,"--"),T(e)}else $(t,"Close iframe cancelled by onClose event")}function I(e){null===f&&$(e,"Get page position: "+(f={x:void 0!==window.pageXOffset?window.pageXOffset:document.documentElement.scrollLeft,y:void 0!==window.pageYOffset?window.pageYOffset:document.documentElement.scrollTop}).x+","+f.y)}function P(e){null!==f&&(window.scrollTo(f.x,f.y),$(e,"Set page position: "+f.x+","+f.y),F())}function F(){f=null}function D(e){$(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),I(e.id),N((function(){j(e),B("reset","reset",e.iframe,e.id)}),e,"reset")}function j(e){function t(t){u||"0"!==e[t]||(u=!0,$(i,"Hidden iFrame detected, creating visibility listener"),function(){function e(){Object.keys(v).forEach((function(e){!function(e){function t(t){return"0px"===(v[e]&&v[e].iframe.style[t])}v[e]&&null!==v[e].iframe.offsetParent&&(t("height")||t("width"))&&B("Visibility change","resize",v[e].iframe,e)}(e)}))}function t(t){$("window","Mutation observed: "+t[0].target+" "+t[0].type),H(e,16)}var n=x();n&&(i=document.querySelector("body"),new n(t).observe(i,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}));var i}())}function n(n){!function(t){e.id?(e.iframe.style[t]=e[t]+"px",$(e.id,"IFrame ("+i+") "+t+" set to "+e[t]+"px")):$("undefined","messageData id not set")}(n),t(n)}var i=e.iframe.id;v[i]&&(v[i].sizeHeight&&n("height"),v[i].sizeWidth&&n("width"))}function N(e,t,n){n!==t.type&&g&&!window.jasmine?($(t.id,"Requesting animation frame"),g(e)):e()}function B(e,t,n,i,o){var r,s=!1;i=i||n.id,v[i]&&(n&&"contentWindow"in n&&null!==n.contentWindow?(r=v[i]&&v[i].targetOrigin,$(i,"["+e+"] Sending msg to iframe["+i+"] ("+t+") targetOrigin: "+r),n.contentWindow.postMessage(d+t,r)):A(i,"["+e+"] IFrame("+i+") not found"),o&&v[i]&&v[i].warningTimeout&&(v[i].msgTimeout=setTimeout((function(){!v[i]||v[i].loaded||s||(s=!0,A(i,"IFrame has not responded within "+v[i].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),v[i].warningTimeout)))}function z(e){return e+":"+v[e].bodyMarginV1+":"+v[e].sizeWidth+":"+v[e].log+":"+v[e].interval+":"+v[e].enablePublicMethods+":"+v[e].autoResize+":"+v[e].bodyMargin+":"+v[e].heightCalculationMethod+":"+v[e].bodyBackground+":"+v[e].bodyPadding+":"+v[e].tolerance+":"+v[e].inPageLinks+":"+v[e].resizeFrom+":"+v[e].widthCalculationMethod}function W(e,t){function n(e){var t=e.split("Callback");if(2===t.length){var n="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[n]=this[e],delete this[e],A(r,"Deprecated: '"+e+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}var i,o,r=function(n){var i;return""===n&&(e.id=(i=t&&t.id||y.id+l++,null!==document.getElementById(i)&&(i+=l++),n=i),c=(t||{}).log,$(n,"Added missing iframe ID: "+n+" ("+e.src+")")),n}(e.id);r in v&&"iFrameResizer"in e?A(r,"Ignored iFrame, already setup."):(!function(t){var i;t=t||{},v[r]={firstRun:!0,iframe:e,remoteHost:e.src&&e.src.split("/").slice(0,3).join("/")},function(e){if("object"!==s(e))throw new TypeError("Options is not an object")}(t),Object.keys(t).forEach(n,t),function(e){for(var t in y)Object.prototype.hasOwnProperty.call(y,t)&&(v[r][t]=Object.prototype.hasOwnProperty.call(e,t)?e[t]:y[t])}(t),v[r]&&(v[r].targetOrigin=!0===v[r].checkOrigin?""===(i=v[r].remoteHost)||null!==i.match(/^(about:blank|javascript:|file:\/\/)/)?"*":i:"*")}(t),function(){switch($(r,"IFrame scrolling "+(v[r]&&v[r].scrolling?"enabled":"disabled")+" for "+r),e.style.overflow=!1===(v[r]&&v[r].scrolling)?"hidden":"auto",v[r]&&v[r].scrolling){case"omit":break;case!0:e.scrolling="yes";break;case!1:e.scrolling="no";break;default:e.scrolling=v[r]?v[r].scrolling:"no"}}(),function(){function t(t){1/0!==v[r][t]&&0!==v[r][t]&&(e.style[t]=v[r][t]+"px",$(r,"Set "+t+" = "+v[r][t]+"px"))}function n(e){if(v[r]["min"+e]>v[r]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}n("Height"),n("Width"),t("maxHeight"),t("minHeight"),t("maxWidth"),t("minWidth")}(),"number"!=typeof(v[r]&&v[r].bodyMargin)&&"0"!==(v[r]&&v[r].bodyMargin)||(v[r].bodyMarginV1=v[r].bodyMargin,v[r].bodyMargin=v[r].bodyMargin+"px"),i=z(r),(o=x())&&function(t){e.parentNode&&new t((function(t){t.forEach((function(t){Array.prototype.slice.call(t.removedNodes).forEach((function(t){t===e&&M(e)}))}))})).observe(e.parentNode,{childList:!0})}(o),S(e,"load",(function(){var t,n;B("iFrame.onload",i,e,void 0,!0),t=v[r]&&v[r].firstRun,n=v[r]&&v[r].heightCalculationMethod in m,!t&&n&&D({iframe:e,height:0,width:0,type:"init"})})),B("init",i,e,void 0,!0),v[r]&&(v[r].iframe.iFrameResizer={close:M.bind(null,v[r].iframe),removeListeners:T.bind(null,v[r].iframe),resize:B.bind(null,"Window resize","resize",v[r].iframe),moveToAnchor:function(e){B("Move to anchor","moveToAnchor:"+e,v[r].iframe,r)},sendMessage:function(e){B("Send Message","message:"+(e=JSON.stringify(e)),v[r].iframe,r)}}))}function H(e,t){null===b&&(b=setTimeout((function(){b=null,e()}),t))}function V(){"hidden"!==document.visibilityState&&($("document","Trigger event: Visiblity change"),H((function(){U("Tab Visable","resize")}),16))}function U(e,t){Object.keys(v).forEach((function(n){(function(e){return v[e]&&"parent"===v[e].resizeFrom&&v[e].autoResize&&!v[e].firstRun})(n)&&B(e,t,v[n].iframe,n)}))}function G(){S(window,"message",L),S(window,"resize",(function(){var e;$("window","Trigger event: "+(e="resize")),H((function(){U("Window "+e,"resize")}),16)})),S(document,"visibilitychange",V),S(document,"-webkit-visibilitychange",V)}function K(){function e(e,n){n&&(!function(){if(!n.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==n.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+n.tagName+">")}(),W(n,e),t.push(n))}var t;return function(){var e,t=["moz","webkit","o","ms"];for(e=0;e<t.length&&!g;e+=1)g=window[t[e]+"RequestAnimationFrame"];g?g=g.bind(window):$("setup","RequestAnimationFrame not supported")}(),G(),function(n,i){switch(t=[],function(e){e&&e.enablePublicMethods&&A("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(n),s(i)){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(i||"iframe"),e.bind(void 0,n));break;case"object":e(n,i);break;default:throw new TypeError("Unexpected data type ("+s(i)+")")}return t}}}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return ts}));var i=n(2),o=n.n(i),r=n(17);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})(e)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=window,b=v.jQuery,y=v.ajaxurl,w=v.VPGutenbergVariables,x=wp.element,S=x.Component,C=x.RawHTML,k=wp.components,E=k.Button,$=k.Spinner,_={},A=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(s,e);var t,n,i,r=p(s);function s(){var e;u(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var o=(e=r.call.apply(r,[this].concat(n))).props.callback;return e.state={options:l({},e.props.options),ajaxStatus:!!o},_[e.props.controlName]=l({},e.props.options),e.requestAjax=e.requestAjax.bind(g(e)),e}return t=s,(n=[{key:"componentDidMount",value:function(){var e=this;this.props.callback&&this.requestAjax({},(function(t){t.options&&e.setState({options:t.options})}))}},{key:"requestAjax",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=this.props,r=o.controlName,s=o.attributes;if(!this.isAJAXinProgress){this.isAJAXinProgress=!0,i&&this.setState({ajaxStatus:"progress"});var a=l({action:"vp_dynamic_control_callback",nonce:w.nonce,vp_control_name:r,vp_attributes:s},t);b.ajax({url:y,method:"POST",dataType:"json",data:a,complete:function(t){var o=t.responseJSON;n&&o.response&&(o.response.options&&(_[r]=l(l({},_[r]),o.response.options)),n(o.response)),i&&e.setState({ajaxStatus:!0}),e.isAJAXinProgress=!1}})}}},{key:"render",value:function(){var e=this.props,t=e.value,n=e.onChange,i=this.state,r=i.options,s=i.ajaxStatus;return s&&"progress"===s?wp.element.createElement("div",{className:"vpf-component-icon-selector"},wp.element.createElement($,null)):wp.element.createElement("div",{className:"vpf-component-icon-selector"},Object.keys(r||{}).map((function(e){var i=r[e];return wp.element.createElement(E,{key:"icon-selector-".concat(i.title,"-").concat(i.value),onClick:function(){return n(i.value)},className:o()("vpf-component-icon-selector-item",t===i.value?"vpf-component-icon-selector-item-active":"",i.className)},i.icon?wp.element.createElement(C,null,i.icon):"",i.title?wp.element.createElement("span",null,i.title):"")})))}}])&&h(t.prototype,n),i&&h(t,i),s}(S),O=n(75),L=n.n(O);n(91),n(92),n(93),n(94),n(95),n(96);function R(e){return(R="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)}function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function I(e,t){return(I=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function P(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=j(e);if(t){var o=j(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return F(this,n)}}function F(e,t){return!t||"object"!==R(t)&&"function"!=typeof t?D(e):t}function D(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var N=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&I(e,t)}(r,e);var t,n,i,o=P(r);function r(){var e;T(this,r);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=o.call.apply(o,[this].concat(n))).state={codePlaceholder:e.props.codePlaceholder},e.maybeRemovePlaceholder=e.maybeRemovePlaceholder.bind(D(e)),e}return t=r,(n=[{key:"componentDidMount",value:function(){this.maybeRemovePlaceholder()}},{key:"maybeRemovePlaceholder",value:function(){var e=this.props.value,t=this.state.codePlaceholder;e&&t&&this.setState({codePlaceholder:""})}},{key:"render",value:function(){var e=this,t=this.props,n=t.value,i=t.onChange,o=t.mode,r=t.maxLines,s=t.minLines,a=this.state.codePlaceholder;return wp.element.createElement(L.a,{className:"vpf-component-code-editor",theme:"textmate",onLoad:function(e){e.renderer.setScrollMargin(16,16,16,16),e.renderer.setPadding(16)},fontSize:12,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!1,width:"100%",setOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,printMargin:!1,tabSize:2},editorProps:{$blockScrolling:1/0},value:n||a,onChange:function(t){i(t===a?"":t),e.maybeRemovePlaceholder()},mode:o,maxLines:r,minLines:s})}}])&&M(t.prototype,n),i&&M(t,i),r}(wp.element.Component),B=n(76),z=n.n(B),W=wp.element.useEffect;function H(e){var t=e.children;return W((function(){var e=document.createElement("style");return e.innerHTML=t,document.body.appendChild(e),function(){return document.body.removeChild(e)}}),[t]),null}function V(e){return(V="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)}function U(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function K(e,t){return(K=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function q(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=X(e);if(t){var o=X(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Y(this,n)}}function Y(e,t){return!t||"object"!==V(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function X(e){return(X=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Q=wp.element,J=Q.Component,Z=Q.Fragment,ee=wp.components,te=ee.Button,ne=ee.Modal,ie=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&K(e,t)}(s,e);var t,n,i,r=q(s);function s(){var e;U(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=r.call.apply(r,[this].concat(n))).state={isOpened:!1},e}return t=s,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.children,i=t.modalTitle,r=t.buttonLabel,s=t.size,a=this.state.isOpened;return wp.element.createElement(Z,null,wp.element.createElement(te,{isSecondary:!0,onClick:function(){return e.setState({isOpened:!a})}},r),a?wp.element.createElement(ne,{title:i,onRequestClose:function(){return e.setState({isOpened:!a})},className:o()("vpf-component-modal",s?"vpf-component-modal-size-".concat(s):"")},n):"")}}])&&G(t.prototype,n),i&&G(t,i),s}(J);function oe(e){return(oe="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)}function re(e){return function(e){if(Array.isArray(e))return se(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return se(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return se(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function se(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function ae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function le(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function ce(e,t){return(ce=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ue(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=pe(e);if(t){var o=pe(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return he(this,n)}}function he(e,t){return!t||"object"!==oe(t)&&"function"!=typeof t?de(e):t}function de(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pe(e){return(pe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var fe=wp.i18n.__,ge=wp.element,me=ge.Component,ve=ge.Fragment,be=wp.components.Button,ye=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ce(e,t)}(s,e);var t,n,i,r=ue(s);function s(){var e;ae(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=r.call.apply(r,[this].concat(n))).renderPreview=e.renderPreview.bind(de(e)),e}return t=s,(n=[{key:"renderPreview",value:function(e){var t=e.split(/[:|]/),n='[data-tiles-preview="'.concat(e,'"]'),i="";void 0===t[t.length-1]||t[t.length-1]||t.pop();var o=parseInt(t[0],10)||1;if(t.shift(),i+="".concat(n," .vpf-tiles-preview-item-wrap { width: ").concat(100/o,"%; }"),t&&t.length)for(var r=0;r<t.length;r+=1){var s=t[r].split(","),a=parseFloat(s[0])||1,l=parseFloat(s[1])||1,c=".vpf-tiles-preview-item-wrap";1<t.length&&(c+=":nth-of-type(".concat(t.length,"n+").concat(r+1,")")),a&&1!==a&&(i+="".concat(n," ").concat(c," { width: ").concat(100*a/o,"%; }")),i+="".concat(n," ").concat(c," .vpf-tiles-preview-item::after { padding-top: ").concat(100*l,"%; }")}return wp.element.createElement(ve,null,wp.element.createElement(z.a,{elementType:"div","data-tiles-preview":e,options:{transitionDuration:0}},Array.apply(void 0,re(Array(4*o))).map((function(e){return wp.element.createElement("div",{key:e,className:"vpf-tiles-preview-item-wrap"},wp.element.createElement("div",{className:"vpf-tiles-preview-item"}))}))),wp.element.createElement(H,null,i))}},{key:"render",value:function(){var e=this,t=this.props,n=t.value,i=t.options,r=t.onChange;return wp.element.createElement(ve,null,wp.element.createElement("div",{className:"vpf-component-tiles-selector"},wp.element.createElement(ie,{modalTitle:fe("Tiles","@@text_domain"),buttonLabel:fe("Edit Tiles","@@text_domain")},wp.element.createElement("div",{className:"vpf-component-tiles-selector-items"},i.map((function(t){return wp.element.createElement(be,{key:t.value,onClick:function(){return r(t.value)},className:o()("vpf-tiles-preview-button",n===t.value?"vpf-tiles-preview-button-active":"")},e.renderPreview(t.value))})))),wp.element.createElement("div",{className:"vpf-tiles-preview-button"},this.renderPreview(n))))}}])&&le(t.prototype,n),i&&le(t,i),s}(me);function we(e){return(we="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)}function xe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Se(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Ce(e,t){return(Ce=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ke(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=_e(e);if(t){var o=_e(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Ee(this,n)}}function Ee(e,t){return!t||"object"!==we(t)&&"function"!=typeof t?$e(e):t}function $e(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _e(e){return(_e=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ae=wp.element.Component,Oe=wp.components.Toolbar,Le={left:wp.element.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 4H1V5.22222H19V4ZM11.2857 8.88889H1V10.1111H11.2857V8.88889ZM1 13.7778H13.8571V15H1V13.7778Z",fill:"currentColor"})),center:wp.element.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.57286 13.7778H16.43V15H3.57286V13.7778Z",fill:"currentColor"}),wp.element.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.14 8.88889H4.85429V10.1111H15.14V8.88889Z",fill:"currentColor"}),wp.element.createElement("path",{d:"M1 4H19V5.22222H1V4Z",fill:"currentColor"})),right:wp.element.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 4H19V5.22222H1V4ZM8.71429 8.88889H19V10.1111H8.71429V8.88889ZM19 13.7778H6.14286V15H19V13.7778Z",fill:"currentColor"}))},Re={top:wp.element.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.4046 6.087L10 5.67517L9.59543 6.087L6.16686 9.587L6.976 10.413L9.42857 7.90817V17H10.5714V7.90817L13.024 10.413L13.8331 9.587L10.4046 6.087V6.087ZM18 4.16667V3H2V4.16667H18Z",fill:"currentColor"})),center:wp.element.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 7.98287L10.4046 7.58575L12.6903 5.33575L11.8811 4.53925L10.5714 5.82963V1H9.42857V5.82963L8.11886 4.53925L7.30971 5.33575L9.59543 7.58575L10 7.98287ZM10 12.0171L10.4046 12.4142L12.6903 14.6642L11.8811 15.4608L10.5714 14.1704V19H9.42857V14.1704L8.11886 15.4608L7.30971 14.6642L9.59543 12.4142L10 12.0171ZM2 10.5625H18V9.4375H2V10.5625Z",fill:"currentColor"})),bottom:wp.element.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.4046 13.913L10 14.3248L9.59543 13.913L6.16686 10.413L6.976 9.587L9.42857 12.0918V3H10.5714V12.0918L13.024 9.587L13.8331 10.413L10.4046 13.913V13.913ZM18 15.8333V17H2V15.8333H18Z",fill:"currentColor"}))},Te=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ce(e,t)}(r,e);var t,n,i,o=ke(r);function r(){var e;xe(this,r);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=o.call.apply(o,[this].concat(n))).getAlignObject=e.getAlignObject.bind($e(e)),e.getAlignString=e.getAlignString.bind($e(e)),e}return t=r,(n=[{key:"getAlignObject",value:function(){var e="center",t="center",n=this.props.value.split("-");return n[1]?(n[0]&&(t=n[0]),n[1]&&(e=n[1])):n[0]&&(e=n[0]),{h:e,v:t}}},{key:"getAlignString",value:function(e,t){return this.props.extended?"".concat(t&&"center"!==t?"".concat(t,"-"):"").concat(e):e}},{key:"render",value:function(){var e=this,t=this.props,n=t.extended,i=t.onChange,o=this.getAlignObject(),r=[];return Object.keys(Le).forEach((function(t){r.push({icon:Le[t],title:"".concat(n?"Horizontal ":"").concat(t.charAt(0).toUpperCase()+t.slice(1)),onClick:function(){return i(e.getAlignString(t,o.v))},isActive:o.h===t})})),n&&(r.push({className:"vpf-component-align-control-separator"}),Object.keys(Re).forEach((function(t){r.push({icon:Re[t],title:"Vertical ".concat(t.charAt(0).toUpperCase()+t.slice(1)),onClick:function(){return i(e.getAlignString(o.h,t))},isActive:o.v===t})}))),wp.element.createElement("div",{className:"vpf-component-align-control"},wp.element.createElement(Oe,{controls:r}))}}])&&Se(t.prototype,n),i&&Se(t,i),r}(Ae);function Me(e){return(Me="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)}function Ie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pe(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Fe(e,t){return(Fe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function De(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Be(e);if(t){var o=Be(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return je(this,n)}}function je(e,t){return!t||"object"!==Me(t)&&"function"!=typeof t?Ne(e):t}function Ne(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Be(e){return(Be=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ze=wp.i18n.__,We=wp.element.Component,He=wp.components,Ve=He.SelectControl,Ue=He.TextControl,Ge={"":ze("Auto","@@text_domain"),"16:9":ze("Wide 16:9","@@text_domain"),"21:9":ze("Ultra Wide 21:9","@@text_domain"),"4:3":ze("TV 4:3","@@text_domain"),"3:2":ze("Classic Film 3:2","@@text_domain"),custom:ze("Custom","@@text_domain")},Ke=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Fe(e,t)}(r,e);var t,n,i,o=De(r);function r(){var e;Ie(this,r);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=o.call.apply(o,[this].concat(n))).state={isCustom:void 0===Ge[e.props.value]},e.updatePart=e.updatePart.bind(Ne(e)),e}return t=r,(n=[{key:"parseParts",value:function(e){var t="",n="";if(e&&/:/g.test(e)){var i=e.split(":");t=i[0],n=i[1]}return[t,n]}},{key:"updatePart",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.props,i=n.value,o=n.onChange,r=this.parseParts(i);e&&r[0]&&r[1]&&(t?r[0]=e:r[1]=e,o("".concat(r[0],":").concat(r[1])))}},{key:"render",value:function(){var e=this,t=this.props,n=t.value,i=t.onChange,o=this.state.isCustom,r=this.parseParts(n);return wp.element.createElement("div",{className:"vpf-component-aspect-ratio"},wp.element.createElement(Ve,{value:o?"custom":n,onChange:function(t){"custom"===t?(e.setState({isCustom:!0}),n||i("3:4")):(e.setState({isCustom:!1}),i(t))},options:Object.keys(Ge).map((function(e){return{label:Ge[e],value:e}}))}),o?wp.element.createElement("div",{className:"vpf-component-aspect-ratio-custom"},wp.element.createElement(Ue,{label:ze("Width","@@text_domain"),type:"number",value:r[0],onChange:function(t){return e.updatePart(t,!0)}}),wp.element.createElement(Ue,{label:ze("Height","@@text_domain"),type:"number",value:r[1],onChange:function(t){return e.updatePart(t,!1)}})):"")}}])&&Pe(t.prototype,n),i&&Pe(t,i),r}(We),qe=n(45);function Ye(e){return(Ye="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)}function Xe(e){return function(e){if(Array.isArray(e))return ut(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||ct(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Je(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Ze(e,t){return(Ze=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function et(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=it(e);if(t){var o=it(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return tt(this,n)}}function tt(e,t){return!t||"object"!==Ye(t)&&"function"!=typeof t?nt(e):t}function nt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function it(e){return(it=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ot(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(n),!0).forEach((function(t){st(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ot(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function st(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function at(){return(at=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function lt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(o)throw r}}return n}(e,t)||ct(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ct(e,t){if(e){if("string"==typeof e)return ut(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ut(e,t):void 0}}function ut(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var ht=wp.i18n.__,dt=wp.element,pt=dt.Component,ft=dt.Fragment,gt=dt.useState,mt=wp.components,vt=mt.PanelBody,bt=mt.Button,yt=mt.DropdownMenu,wt=mt.Dropdown,xt=mt.Modal,St=mt.Toolbar,Ct=mt.BaseControl,kt={left:wp.element.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{x:"0.75",y:"0.75",width:"18.5",height:"18.5",rx:"3.25",fill:"transparent",stroke:"currentColor",strokeWidth:"1.5"}),wp.element.createElement("line",{x1:"4.5",y1:"4.5",x2:"4.5",y2:"15.5",fill:"transparent",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"}),wp.element.createElement("line",{x1:"9.5",y1:"4.5",x2:"9.5",y2:"15.5",fill:"transparent",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})),center:wp.element.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{x:"0.75",y:"0.75",width:"18.5",height:"18.5",rx:"3.25",fill:"transparent",stroke:"currentColor",strokeWidth:"1.5"}),wp.element.createElement("line",{x1:"7.5",y1:"4.5",x2:"7.5",y2:"15.5",fill:"transparent",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"}),wp.element.createElement("line",{x1:"12.5",y1:"4.5",x2:"12.5",y2:"15.5",fill:"transparent",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})),right:wp.element.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{x:"0.75",y:"0.75",width:"18.5",height:"18.5",rx:"3.25",fill:"transparent",stroke:"currentColor",strokeWidth:"1.5"}),wp.element.createElement("line",{x1:"15.5",y1:"15.5",x2:"15.5",y2:"4.5",fill:"transparent",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"}),wp.element.createElement("line",{x1:"10.5",y1:"15.5",x2:"10.5",y2:"4.5",fill:"transparent",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})),between:wp.element.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{x:"0.75",y:"0.75",width:"18.5",height:"18.5",rx:"3.25",fill:"transparent",stroke:"currentColor",strokeWidth:"1.5"}),wp.element.createElement("line",{x1:"15.5",y1:"15.5",x2:"15.5",y2:"4.5",fill:"transparent",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"}),wp.element.createElement("line",{x1:"4.5",y1:"15.5",x2:"4.5",y2:"4.5",fill:"transparent",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"}))};function Et(e){var t=e.location,n=e.locationData,i=e.value,o=e.onChange,r=e.options,s=e.optionName,a=e.parentProps,l=lt(gt(!1),2),c=l[0],u=l[1];return wp.element.createElement(ft,null,wp.element.createElement("button",{type:"button","aria-expanded":c,className:"vpf-component-elements-selector-control-location-options-item",onClick:function(){return u(!0)}},r[s]?r[s].title:s,wp.element.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M8 4L14 10L8 16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),c?wp.element.createElement(xt,{title:"".concat(r[s]?r[s].title:s," ").concat(ht("Settings","@@text_domain")),onRequestClose:function(e){e.relatedTarget&&e.relatedTarget.classList&&e.relatedTarget.classList.contains("media-modal")||u(!1)},className:"vpf-component-elements-selector-modal"},r[s]&&r[s].category?wp.element.createElement(jr,at({},a.props,{category:r[s].category,categoryToggle:!1})):null,"items"!==s?wp.element.createElement(vt,null,wp.element.createElement(Ct,{label:ht("Remove","@@text_domain")},wp.element.createElement("br",null),wp.element.createElement(bt,{isSecondary:!0,isSmall:!0,onClick:function(){window.confirm(ht("Are you sure you want to remove the element?","@@text_domain"))&&o(rt(rt({},i),{},st({},t,rt(rt({},i[t]),{},{elements:n.elements.filter((function(e){return e!==s}))}))))}},ht("Remove Element","@@text_domain")))):null):null)}var $t=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ze(e,t)}(s,e);var t,n,i,r=et(s);function s(){var e;Qe(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=r.call.apply(r,[this].concat(n))).getLocationData=e.getLocationData.bind(nt(e)),e.renderLocation=e.renderLocation.bind(nt(e)),e.renderAlignSettings=e.renderAlignSettings.bind(nt(e)),e}return t=s,(n=[{key:"getLocationData",value:function(e){var t=this.props,n=t.options,i=t.locations,o=t.value,r=i[e]&&i[e].title||!1,s=o[e]&&o[e].elements?o[e].elements:[],a=!(!o[e]||!o[e].align)&&o[e].align,l=i[e]&&i[e].align?i[e].align:[],c={};return Object.keys(n).forEach((function(t){var i=n[t];i.allowed_locations&&-1===i.allowed_locations.indexOf(e)||-1!==s.indexOf(t)||(c[t]=i)})),{title:r,elements:s,align:a,availableAlign:l,availableElements:c}}},{key:"renderAlignSettings",value:function(e){var t=this.props,n=t.value,i=t.onChange,o=this.getLocationData(e),r=[];return o.availableAlign.length&&o.availableAlign.forEach((function(t){r.push({icon:kt[t],title:"".concat(t.charAt(0).toUpperCase()+t.slice(1)),onClick:function(){i(rt(rt({},n),{},st({},e,rt(rt({},n[e]),{},{align:t}))))},isActive:!!o.align&&o.align===t})})),r.length?wp.element.createElement(wt,{renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement("button",{type:"button","aria-expanded":t,className:"vpf-component-elements-selector-control-location-options-item",onClick:n},o.align&&kt[o.align]?kt[o.align]:kt.center)},renderContent:function(){return wp.element.createElement(St,{controls:r})}}):null}},{key:"renderLocation",value:function(e){var t=this,n=this.props,i=n.value,r=n.onChange,s=n.options,a=this.getLocationData(e),l=a.availableElements;return wp.element.createElement("div",{key:e,className:"vpf-component-elements-selector-control-location"},a.title?wp.element.createElement("div",{className:"vpf-component-elements-selector-control-location-title"},a.title):"",a.availableAlign.length?wp.element.createElement("div",{className:"vpf-component-elements-selector-control-location-align"},this.renderAlignSettings(e)):"",wp.element.createElement("div",{className:o()("vpf-component-elements-selector-control-location-options",a.align?"vpf-component-elements-selector-control-location-options-".concat(a.align):"")},a.elements.length?a.elements.map((function(n){return wp.element.createElement(Et,{key:n,location:e,locationData:a,value:i,onChange:r,options:s,optionName:n,parentProps:t.props})})):null,Object.keys(l).length?wp.element.createElement(yt,{className:"vpf-component-elements-selector-control-location-options-add-button",popoverProps:{position:"bottom center"},icon:wp.element.createElement("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",role:"img","aria-hidden":"true",focusable:"false"},wp.element.createElement("path",{d:"M10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6zM10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6z"})),controls:Object.keys(l).map((function(t){return{title:wp.element.createElement(ft,null,l[t].title,l[t].is_pro?wp.element.createElement("span",{className:"vpf-component-elements-selector-control-location-options-title-pro"},ht("PRO","@@text_domain")):""),onClick:function(){if(!l[t].is_pro){var n=Xe(a.elements);-1===n.indexOf(t)&&(n.push(t),r(rt(rt({},i),{},st({},e,rt(rt({},i[e]),{},{elements:n})))))}}}}))}):""))}},{key:"render",value:function(){var e=this,t=this.props.locations;return wp.element.createElement("div",{className:"vpf-component-elements-selector-control"},Object.keys(t).map((function(t){return e.renderLocation(t)})))}}])&&Je(t.prototype,n),i&&Je(t,i),s}(pt);function _t(){return(_t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function At(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Ot(e,t){if(e){if("string"==typeof e)return At(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?At(e,t):void 0}}function Lt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(o)throw r}}return n}}(e,t)||Ot(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){Rt(e,t,n[t])}))}return e}function Mt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function It(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Pt(e,t,n){return t&&It(e.prototype,t),n&&It(e,n),e}function Ft(e){return(Ft="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)}function Dt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jt(e,t){return!t||"object"!==Ft(t)&&"function"!=typeof t?Dt(e):t}function Nt(e){return(Nt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Bt(e,t){return(Bt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function zt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Bt(e,t)}var Wt=n(0),Ht=n(1),Vt=n.n(Ht),Ut=n(7),Gt=n(9),Kt=n.n(Gt);function qt(e){return function(e){if(Array.isArray(e))return At(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Ot(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Yt=function(){function e(){Mt(this,e),Rt(this,"refs",{})}return Pt(e,[{key:"add",value:function(e,t){this.refs[e]||(this.refs[e]=[]),this.refs[e].push(t)}},{key:"remove",value:function(e,t){var n=this.getIndex(e,t);-1!==n&&this.refs[e].splice(n,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var e=this;return this.refs[this.active.collection].find((function(t){return t.node.sortableInfo.index==e.active.index}))}},{key:"getIndex",value:function(e,t){return this.refs[e].indexOf(t)}},{key:"getOrderedRefs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.active.collection;return this.refs[e].sort(Xt)}}]),e}();function Xt(e,t){return e.node.sortableInfo.index-t.node.sortableInfo.index}function Qt(e,t){return Object.keys(e).reduce((function(n,i){return-1===t.indexOf(i)&&(n[i]=e[i]),n}),{})}var Jt={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},Zt=function(){if("undefined"==typeof window||"undefined"==typeof document)return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];switch(t){case"ms":return"ms";default:return t&&t.length?t[0].toUpperCase()+t.substr(1):""}}();function en(e,t){Object.keys(t).forEach((function(n){e.style[n]=t[n]}))}function tn(e,t){e.style["".concat(Zt,"Transform")]=null==t?"":"translate3d(".concat(t.x,"px,").concat(t.y,"px,0)")}function nn(e,t){e.style["".concat(Zt,"TransitionDuration")]=null==t?"":"".concat(t,"ms")}function on(e,t){for(;e;){if(t(e))return e;e=e.parentNode}return null}function rn(e,t,n){return Math.max(e,Math.min(n,t))}function sn(e){return"px"===e.substr(-2)?parseFloat(e):0}function an(e){var t=window.getComputedStyle(e);return{bottom:sn(t.marginBottom),left:sn(t.marginLeft),right:sn(t.marginRight),top:sn(t.marginTop)}}function ln(e,t){var n=t.displayName||t.name;return n?"".concat(e,"(").concat(n,")"):e}function cn(e,t){var n=e.getBoundingClientRect();return{top:n.top+t.top,left:n.left+t.left}}function un(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}}function hn(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length}function dn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{left:0,top:0};if(e){var i={left:n.left+e.offsetLeft,top:n.top+e.offsetTop};return e.parentNode===t?i:dn(e.parentNode,t,i)}}function pn(e,t,n){return e<n&&e>t?e-1:e>n&&e<t?e+1:e}function fn(e){var t=e.lockOffset,n=e.width,i=e.height,o=t,r=t,s="px";if("string"==typeof t){var a=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(t);Kt()(null!==a,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',t),o=parseFloat(t),r=parseFloat(t),s=a[1]}return Kt()(isFinite(o)&&isFinite(r),"lockOffset value should be a finite. Given %s",t),"%"===s&&(o=o*n/100,r=r*i/100),{x:o,y:r}}function gn(e){var t=e.height,n=e.width,i=e.lockOffset,o=Array.isArray(i)?i:[i,i];Kt()(2===o.length,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",i);var r=Lt(o,2),s=r[0],a=r[1];return[fn({height:t,lockOffset:s,width:n}),fn({height:t,lockOffset:a,width:n})]}function mn(e){return e instanceof HTMLElement?function(e){var t=window.getComputedStyle(e),n=/(auto|scroll)/;return["overflow","overflowX","overflowY"].find((function(e){return n.test(t[e])}))}(e)?e:mn(e.parentNode):null}function vn(e){var t=window.getComputedStyle(e);return"grid"===t.display?{x:sn(t.gridColumnGap),y:sn(t.gridRowGap)}:{x:0,y:0}}var bn=27,yn=32,wn=37,xn=38,Sn=39,Cn=40,kn="A",En="BUTTON",$n="CANVAS",_n="INPUT",An="OPTION",On="TEXTAREA",Ln="SELECT";function Rn(e){var t="input, textarea, select, canvas, [contenteditable]",n=e.querySelectorAll(t),i=e.cloneNode(!0);return qt(i.querySelectorAll(t)).forEach((function(e,t){("file"!==e.type&&(e.value=n[t].value),"radio"===e.type&&e.name&&(e.name="__sortableClone__".concat(e.name)),e.tagName===$n&&n[t].width>0&&n[t].height>0)&&e.getContext("2d").drawImage(n[t],0,0)})),i}function Tn(e){return null!=e.sortableHandle}var Mn=function(){function e(t,n){Mt(this,e),this.container=t,this.onScrollCallback=n}return Pt(e,[{key:"clear",value:function(){null!=this.interval&&(clearInterval(this.interval),this.interval=null)}},{key:"update",value:function(e){var t=this,n=e.translate,i=e.minTranslate,o=e.maxTranslate,r=e.width,s=e.height,a={x:0,y:0},l={x:1,y:1},c=10,u=10,h=this.container,d=h.scrollTop,p=h.scrollLeft,f=h.scrollHeight,g=h.scrollWidth,m=0===d,v=f-d-h.clientHeight==0,b=0===p,y=g-p-h.clientWidth==0;n.y>=o.y-s/2&&!v?(a.y=1,l.y=u*Math.abs((o.y-s/2-n.y)/s)):n.x>=o.x-r/2&&!y?(a.x=1,l.x=c*Math.abs((o.x-r/2-n.x)/r)):n.y<=i.y+s/2&&!m?(a.y=-1,l.y=u*Math.abs((n.y-s/2-i.y)/s)):n.x<=i.x+r/2&&!b&&(a.x=-1,l.x=c*Math.abs((n.x-r/2-i.x)/r)),this.interval&&(this.clear(),this.isAutoScrolling=!1),0===a.x&&0===a.y||(this.interval=setInterval((function(){t.isAutoScrolling=!0;var e={left:l.x*a.x,top:l.y*a.y};t.container.scrollTop+=e.top,t.container.scrollLeft+=e.left,t.onScrollCallback(e)}),5))}}]),e}();var In={axis:Vt.a.oneOf(["x","y","xy"]),contentWindow:Vt.a.any,disableAutoscroll:Vt.a.bool,distance:Vt.a.number,getContainer:Vt.a.func,getHelperDimensions:Vt.a.func,helperClass:Vt.a.string,helperContainer:Vt.a.oneOfType([Vt.a.func,"undefined"==typeof HTMLElement?Vt.a.any:Vt.a.instanceOf(HTMLElement)]),hideSortableGhost:Vt.a.bool,keyboardSortingTransitionDuration:Vt.a.number,lockAxis:Vt.a.string,lockOffset:Vt.a.oneOfType([Vt.a.number,Vt.a.string,Vt.a.arrayOf(Vt.a.oneOfType([Vt.a.number,Vt.a.string]))]),lockToContainerEdges:Vt.a.bool,onSortEnd:Vt.a.func,onSortMove:Vt.a.func,onSortOver:Vt.a.func,onSortStart:Vt.a.func,pressDelay:Vt.a.number,pressThreshold:Vt.a.number,keyCodes:Vt.a.shape({lift:Vt.a.arrayOf(Vt.a.number),drop:Vt.a.arrayOf(Vt.a.number),cancel:Vt.a.arrayOf(Vt.a.number),up:Vt.a.arrayOf(Vt.a.number),down:Vt.a.arrayOf(Vt.a.number)}),shouldCancelStart:Vt.a.func,transitionDuration:Vt.a.number,updateBeforeSortStart:Vt.a.func,useDragHandle:Vt.a.bool,useWindowAsScrollContainer:Vt.a.bool},Pn={lift:[yn],drop:[yn],cancel:[bn],up:[xn,wn],down:[Cn,Sn]},Fn={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:function(e){var t=e.node;return{height:t.offsetHeight,width:t.offsetWidth}},hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:Pn,shouldCancelStart:function(e){return-1!==[_n,On,Ln,An,En].indexOf(e.target.tagName)||!!on(e.target,(function(e){return"true"===e.contentEditable}))},transitionDuration:300,useWindowAsScrollContainer:!1},Dn=Object.keys(In);function jn(e){Kt()(!(e.distance&&e.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}function Nn(e,t){try{var n=e()}catch(e){return t(!0,e)}return n&&n.then?n.then(t.bind(null,!1),t.bind(null,!0)):t(!1,value)}var Bn={index:Vt.a.number.isRequired,collection:Vt.a.oneOfType([Vt.a.number,Vt.a.string]),disabled:Vt.a.bool},zn=Object.keys(Bn);function Wn(e){return(Wn="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)}function Hn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vn(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Un(e,t){return(Un=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Gn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Yn(e);if(t){var o=Yn(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Kn(this,n)}}function Kn(e,t){return!t||"object"!==Wn(t)&&"function"!=typeof t?qn(e):t}function qn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yn(e){return(Yn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Xn(){return(Xn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Qn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Jn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qn(Object(n),!0).forEach((function(t){Zn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ei(e){return function(e){if(Array.isArray(e))return ii(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||ni(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ti(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(o)throw r}}return n}(e,t)||ni(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ni(e,t){if(e){if("string"==typeof e)return ii(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ii(e,t):void 0}}function ii(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var oi=wp.i18n.__,ri=wp.hooks,si=ri.applyFilters,ai=ri.addFilter,li=wp.element,ci=li.Fragment,ui=li.Component,hi=li.useState,di=li.createRef,pi=wp.components,fi=pi.Button,gi=pi.Modal,mi=pi.FocalPointPicker,vi=pi.withNotices,bi=wp.compose,yi=bi.compose,wi=bi.withInstanceId,xi=wp.blockEditor.MediaUpload,Si=["image"];var Ci=function(e){var t,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){return Mt(this,n),jt(this,Nt(n).apply(this,arguments))}return zt(n,t),Pt(n,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(e){this.node&&(e.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),e.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),e.collection!==this.props.collection&&(this.unregister(e.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var e=this.props,t=e.collection,n=e.disabled,i=e.index,o=Object(Ut.findDOMNode)(this);o.sortableInfo={collection:t,disabled:n,index:i,manager:this.context.manager},this.node=o,this.ref={node:o},this.context.manager.add(t,this.ref)}},{key:"unregister",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.collection;this.context.manager.remove(e,this.ref)}},{key:"getWrappedInstance",value:function(){return Kt()(i.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var t=i.withRef?"wrappedInstance":null;return Object(Wt.createElement)(e,_t({ref:t},Qt(this.props,zn)))}}]),n}(Wt.Component),Rt(t,"displayName",ln("sortableElement",e)),Rt(t,"contextTypes",{manager:Vt.a.object.isRequired}),Rt(t,"propTypes",Bn),Rt(t,"defaultProps",{collection:0}),n}((function(e){var t=e.img,n=e.items,i=e.idx,o=e.onChange,r=e.imageControls,s=e.controlName,a=e.attributes,l=e.focalPoint,c=e.clientId,u=e.isSetupWizard,h=ti(hi(!1),2),d=h[0],p=h[1];return wp.element.createElement(ci,null,wp.element.createElement("div",{className:"vpf-component-gallery-control-item"},wp.element.createElement(fi,{className:"vpf-component-gallery-control-item-button",onClick:function(){return p(!0)},"aria-expanded":d},wp.element.createElement("img",{src:t.imgThumbnailUrl||t.imgUrl,alt:t.alt||t.imgThumbnailUrl||t.imgUrl}),wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},wp.element.createElement("circle",{cx:"12",cy:"12",r:"3"}),wp.element.createElement("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"}))),wp.element.createElement(fi,{className:"vpf-component-gallery-control-item-remove",onClick:function(){var e=ei(n);e[i]&&(e.splice(i,1),o(e))}},wp.element.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M3.5 5.5H7.5M16.5 5.5H12.5M12.5 5.5V2.5H7.5V5.5M12.5 5.5H7.5M5 8.5L6 17H14L15 8.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"transparent"})))),d?wp.element.createElement(gi,{title:oi("Image Settings","@@text_domain"),onRequestClose:function(e){e.relatedTarget&&e.relatedTarget.classList&&e.relatedTarget.classList.contains("media-modal")||p(!1)}},wp.element.createElement("div",{className:"vpf-component-gallery-control-item-modal"},l?wp.element.createElement(mi,{url:t.imgThumbnailUrl||t.imgUrl,value:t.focalPoint,onChange:function(e){var t=ei(n);t[i]&&(t[i]=Jn(Jn({},t[i]),{},{focalPoint:e}),o(t))}}):"",Object.keys(r).map((function(l){var h=[],d="".concat(s,"[").concat(i,"].").concat(l);return r[l].condition.length&&r[l].condition.forEach((function(e){var t=Jn({},e);t.control&&/SELF/g.test(t.control)&&(t.control=t.control.replace(/SELF/g,"".concat(s,"[").concat(i,"]"))),h.push(t)})),si("vpf.editor.gallery-controls-render",wp.element.createElement(jr.Control,Xn({key:"".concat(t.id||t.imgThumbnailUrl||t.imgUrl,"-").concat(i,"-").concat(l),attributes:a,onChange:function(e){var t=ei(n);t[i]&&(t[i]=Jn(Jn({},t[i]),{},Zn({},l,e)),o(t))}},r[l],{name:d,value:t[l],condition:h,clientId:c,isSetupWizard:u})),r[l],e)})))):null)})),ki=function(e){var t,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(e){var t;return Mt(this,n),Rt(Dt(Dt(t=jt(this,Nt(n).call(this,e)))),"state",{}),Rt(Dt(Dt(t)),"handleStart",(function(e){var n=t.props,i=n.distance,o=n.shouldCancelStart;if(2!==e.button&&!o(e)){t.touched=!0,t.position=un(e);var r=on(e.target,(function(e){return null!=e.sortableInfo}));if(r&&r.sortableInfo&&t.nodeIsChild(r)&&!t.state.sorting){var s=t.props.useDragHandle,a=r.sortableInfo,l=a.index,c=a.collection;if(a.disabled)return;if(s&&!on(e.target,Tn))return;t.manager.active={collection:c,index:l},hn(e)||e.target.tagName!==kn||e.preventDefault(),i||(0===t.props.pressDelay?t.handlePress(e):t.pressTimer=setTimeout((function(){return t.handlePress(e)}),t.props.pressDelay))}}})),Rt(Dt(Dt(t)),"nodeIsChild",(function(e){return e.sortableInfo.manager===t.manager})),Rt(Dt(Dt(t)),"handleMove",(function(e){var n=t.props,i=n.distance,o=n.pressThreshold;if(!t.state.sorting&&t.touched&&!t._awaitingUpdateBeforeSortStart){var r=un(e),s={x:t.position.x-r.x,y:t.position.y-r.y},a=Math.abs(s.x)+Math.abs(s.y);t.delta=s,i||o&&!(a>=o)?i&&a>=i&&t.manager.isActive()&&t.handlePress(e):(clearTimeout(t.cancelTimer),t.cancelTimer=setTimeout(t.cancel,0))}})),Rt(Dt(Dt(t)),"handleEnd",(function(){t.touched=!1,t.cancel()})),Rt(Dt(Dt(t)),"cancel",(function(){var e=t.props.distance;t.state.sorting||(e||clearTimeout(t.pressTimer),t.manager.active=null)})),Rt(Dt(Dt(t)),"handlePress",(function(e){try{var n=t.manager.getActive(),i=function(){if(n){var i=function(){var n=d.sortableInfo.index,i=an(d),o=vn(t.container),c=t.scrollContainer.getBoundingClientRect(),g=s({index:n,node:d,collection:p});if(t.node=d,t.margin=i,t.gridGap=o,t.width=g.width,t.height=g.height,t.marginOffset={x:t.margin.left+t.margin.right+t.gridGap.x,y:Math.max(t.margin.top,t.margin.bottom,t.gridGap.y)},t.boundingClientRect=d.getBoundingClientRect(),t.containerBoundingRect=c,t.index=n,t.newIndex=n,t.axis={x:r.indexOf("x")>=0,y:r.indexOf("y")>=0},t.offsetEdge=dn(d,t.container),t.initialOffset=un(f?Tt({},e,{pageX:t.boundingClientRect.left,pageY:t.boundingClientRect.top}):e),t.initialScroll={left:t.scrollContainer.scrollLeft,top:t.scrollContainer.scrollTop},t.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},t.helper=t.helperContainer.appendChild(Rn(d)),en(t.helper,{boxSizing:"border-box",height:"".concat(t.height,"px"),left:"".concat(t.boundingClientRect.left-i.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(t.boundingClientRect.top-i.top,"px"),width:"".concat(t.width,"px")}),f&&t.helper.focus(),l&&(t.sortableGhost=d,en(d,{opacity:0,visibility:"hidden"})),t.minTranslate={},t.maxTranslate={},f){var m=h?{top:0,left:0,width:t.contentWindow.innerWidth,height:t.contentWindow.innerHeight}:t.containerBoundingRect,v=m.top,b=m.left,y=m.width,w=v+m.height,x=b+y;t.axis.x&&(t.minTranslate.x=b-t.boundingClientRect.left,t.maxTranslate.x=x-(t.boundingClientRect.left+t.width)),t.axis.y&&(t.minTranslate.y=v-t.boundingClientRect.top,t.maxTranslate.y=w-(t.boundingClientRect.top+t.height))}else t.axis.x&&(t.minTranslate.x=(h?0:c.left)-t.boundingClientRect.left-t.width/2,t.maxTranslate.x=(h?t.contentWindow.innerWidth:c.left+c.width)-t.boundingClientRect.left-t.width/2),t.axis.y&&(t.minTranslate.y=(h?0:c.top)-t.boundingClientRect.top-t.height/2,t.maxTranslate.y=(h?t.contentWindow.innerHeight:c.top+c.height)-t.boundingClientRect.top-t.height/2);a&&a.split(" ").forEach((function(e){return t.helper.classList.add(e)})),t.listenerNode=e.touches?d:t.contentWindow,f?(t.listenerNode.addEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.addEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.addEventListener("keydown",t.handleKeyDown)):(Jt.move.forEach((function(e){return t.listenerNode.addEventListener(e,t.handleSortMove,!1)})),Jt.end.forEach((function(e){return t.listenerNode.addEventListener(e,t.handleSortEnd,!1)}))),t.setState({sorting:!0,sortingIndex:n}),u&&u({node:d,index:n,collection:p,isKeySorting:f,nodes:t.manager.getOrderedRefs(),helper:t.helper},e),f&&t.keyMove(0)},o=t.props,r=o.axis,s=o.getHelperDimensions,a=o.helperClass,l=o.hideSortableGhost,c=o.updateBeforeSortStart,u=o.onSortStart,h=o.useWindowAsScrollContainer,d=n.node,p=n.collection,f=t.manager.isKeySorting,g=function(){if("function"==typeof c){t._awaitingUpdateBeforeSortStart=!0;var n=Nn((function(){var t=d.sortableInfo.index;return Promise.resolve(c({collection:p,index:t,node:d,isKeySorting:f},e)).then((function(){}))}),(function(e,n){if(t._awaitingUpdateBeforeSortStart=!1,e)throw n;return n}));if(n&&n.then)return n.then((function(){}))}}();return g&&g.then?g.then(i):i()}}();return Promise.resolve(i&&i.then?i.then((function(){})):void 0)}catch(e){return Promise.reject(e)}})),Rt(Dt(Dt(t)),"handleSortMove",(function(e){var n=t.props.onSortMove;"function"==typeof e.preventDefault&&e.preventDefault(),t.updateHelperPosition(e),t.animateNodes(),t.autoscroll(),n&&n(e)})),Rt(Dt(Dt(t)),"handleSortEnd",(function(e){var n=t.props,i=n.hideSortableGhost,o=n.onSortEnd,r=t.manager,s=r.active.collection,a=r.isKeySorting,l=t.manager.getOrderedRefs();t.listenerNode&&(a?(t.listenerNode.removeEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("keydown",t.handleKeyDown)):(Jt.move.forEach((function(e){return t.listenerNode.removeEventListener(e,t.handleSortMove)})),Jt.end.forEach((function(e){return t.listenerNode.removeEventListener(e,t.handleSortEnd)})))),t.helper.parentNode.removeChild(t.helper),i&&t.sortableGhost&&en(t.sortableGhost,{opacity:"",visibility:""});for(var c=0,u=l.length;c<u;c++){var h=l[c],d=h.node;h.edgeOffset=null,h.boundingClientRect=null,tn(d,null),nn(d,null),h.translate=null}t.autoScroller.clear(),t.manager.active=null,t.manager.isKeySorting=!1,t.setState({sorting:!1,sortingIndex:null}),"function"==typeof o&&o({collection:s,newIndex:t.newIndex,oldIndex:t.index,isKeySorting:a,nodes:l},e),t.touched=!1})),Rt(Dt(Dt(t)),"autoscroll",(function(){var e=t.props.disableAutoscroll,n=t.manager.isKeySorting;if(e)t.autoScroller.clear();else{if(n){var i=Tt({},t.translate),o=0,r=0;return t.axis.x&&(i.x=Math.min(t.maxTranslate.x,Math.max(t.minTranslate.x,t.translate.x)),o=t.translate.x-i.x),t.axis.y&&(i.y=Math.min(t.maxTranslate.y,Math.max(t.minTranslate.y,t.translate.y)),r=t.translate.y-i.y),t.translate=i,tn(t.helper,t.translate),t.scrollContainer.scrollLeft+=o,void(t.scrollContainer.scrollTop+=r)}t.autoScroller.update({height:t.height,maxTranslate:t.maxTranslate,minTranslate:t.minTranslate,translate:t.translate,width:t.width})}})),Rt(Dt(Dt(t)),"onAutoScroll",(function(e){t.translate.x+=e.left,t.translate.y+=e.top,t.animateNodes()})),Rt(Dt(Dt(t)),"handleKeyDown",(function(e){var n=e.keyCode,i=t.props,o=i.shouldCancelStart,r=i.keyCodes,s=Tt({},Pn,void 0===r?{}:r);t.manager.active&&!t.manager.isKeySorting||!(t.manager.active||s.lift.includes(n)&&!o(e)&&t.isValidSortingTarget(e))||(e.stopPropagation(),e.preventDefault(),s.lift.includes(n)&&!t.manager.active?t.keyLift(e):s.drop.includes(n)&&t.manager.active?t.keyDrop(e):s.cancel.includes(n)?(t.newIndex=t.manager.active.index,t.keyDrop(e)):s.up.includes(n)?t.keyMove(-1):s.down.includes(n)&&t.keyMove(1))})),Rt(Dt(Dt(t)),"keyLift",(function(e){var n=e.target,i=on(n,(function(e){return null!=e.sortableInfo})).sortableInfo,o=i.index,r=i.collection;t.initialFocusedNode=n,t.manager.isKeySorting=!0,t.manager.active={index:o,collection:r},t.handlePress(e)})),Rt(Dt(Dt(t)),"keyMove",(function(e){var n=t.manager.getOrderedRefs(),i=n[n.length-1].node.sortableInfo.index,o=t.newIndex+e,r=t.newIndex;if(!(o<0||o>i)){t.prevIndex=r,t.newIndex=o;var s=pn(t.newIndex,t.prevIndex,t.index),a=n.find((function(e){return e.node.sortableInfo.index===s})),l=a.node,c=t.containerScrollDelta,u=a.boundingClientRect||cn(l,c),h=a.translate||{x:0,y:0},d=u.top+h.y-c.top,p=u.left+h.x-c.left,f=r<o,g=f&&t.axis.x?l.offsetWidth-t.width:0,m=f&&t.axis.y?l.offsetHeight-t.height:0;t.handleSortMove({pageX:p+g,pageY:d+m,ignoreTransition:0===e})}})),Rt(Dt(Dt(t)),"keyDrop",(function(e){t.handleSortEnd(e),t.initialFocusedNode&&t.initialFocusedNode.focus()})),Rt(Dt(Dt(t)),"handleKeyEnd",(function(e){t.manager.active&&t.keyDrop(e)})),Rt(Dt(Dt(t)),"isValidSortingTarget",(function(e){var n=t.props.useDragHandle,i=e.target,o=on(i,(function(e){return null!=e.sortableInfo}));return o&&o.sortableInfo&&!o.sortableInfo.disabled&&(n?Tn(i):i.sortableInfo)})),jn(e),t.manager=new Yt,t.events={end:t.handleEnd,move:t.handleMove,start:t.handleStart},t}return zt(n,t),Pt(n,[{key:"getChildContext",value:function(){return{manager:this.manager}}},{key:"componentDidMount",value:function(){var e=this,t=this.props.useWindowAsScrollContainer,n=this.getContainer();Promise.resolve(n).then((function(n){e.container=n,e.document=e.container.ownerDocument||document;var i=e.props.contentWindow||e.document.defaultView||window;e.contentWindow="function"==typeof i?i():i,e.scrollContainer=t?e.document.scrollingElement||e.document.documentElement:mn(e.container)||e.container,e.autoScroller=new Mn(e.scrollContainer,e.onAutoScroll),Object.keys(e.events).forEach((function(t){return Jt[t].forEach((function(n){return e.container.addEventListener(n,e.events[t],!1)}))})),e.container.addEventListener("keydown",e.handleKeyDown)}))}},{key:"componentWillUnmount",value:function(){var e=this;this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),this.container&&(Object.keys(this.events).forEach((function(t){return Jt[t].forEach((function(n){return e.container.removeEventListener(n,e.events[t])}))})),this.container.removeEventListener("keydown",this.handleKeyDown))}},{key:"updateHelperPosition",value:function(e){var t=this.props,n=t.lockAxis,i=t.lockOffset,o=t.lockToContainerEdges,r=t.transitionDuration,s=t.keyboardSortingTransitionDuration,a=void 0===s?r:s,l=this.manager.isKeySorting,c=e.ignoreTransition,u=un(e),h={x:u.x-this.initialOffset.x,y:u.y-this.initialOffset.y};if(h.y-=window.pageYOffset-this.initialWindowScroll.top,h.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=h,o){var d=Lt(gn({height:this.height,lockOffset:i,width:this.width}),2),p=d[0],f=d[1],g={x:this.width/2-p.x,y:this.height/2-p.y},m={x:this.width/2-f.x,y:this.height/2-f.y};h.x=rn(this.minTranslate.x+g.x,this.maxTranslate.x-m.x,h.x),h.y=rn(this.minTranslate.y+g.y,this.maxTranslate.y-m.y,h.y)}"x"===n?h.y=0:"y"===n&&(h.x=0),l&&a&&!c&&nn(this.helper,a),tn(this.helper,h)}},{key:"animateNodes",value:function(){var e=this.props,t=e.transitionDuration,n=e.hideSortableGhost,i=e.onSortOver,o=this.containerScrollDelta,r=this.windowScrollDelta,s=this.manager.getOrderedRefs(),a=this.offsetEdge.left+this.translate.x+o.left,l=this.offsetEdge.top+this.translate.y+o.top,c=this.manager.isKeySorting,u=this.newIndex;this.newIndex=null;for(var h=0,d=s.length;h<d;h++){var p=s[h].node,f=p.sortableInfo.index,g=p.offsetWidth,m=p.offsetHeight,v={height:this.height>m?m/2:this.height/2,width:this.width>g?g/2:this.width/2},b=c&&f>this.index&&f<=u,y=c&&f<this.index&&f>=u,w={x:0,y:0},x=s[h].edgeOffset;x||(x=dn(p,this.container),s[h].edgeOffset=x,c&&(s[h].boundingClientRect=cn(p,o)));var S=h<s.length-1&&s[h+1],C=h>0&&s[h-1];S&&!S.edgeOffset&&(S.edgeOffset=dn(S.node,this.container),c&&(S.boundingClientRect=cn(S.node,o))),f!==this.index?(t&&nn(p,t),this.axis.x?this.axis.y?y||f<this.index&&(a+r.left-v.width<=x.left&&l+r.top<=x.top+v.height||l+r.top+v.height<=x.top)?(w.x=this.width+this.marginOffset.x,x.left+w.x>this.containerBoundingRect.width-v.width&&S&&(w.x=S.edgeOffset.left-x.left,w.y=S.edgeOffset.top-x.top),null===this.newIndex&&(this.newIndex=f)):(b||f>this.index&&(a+r.left+v.width>=x.left&&l+r.top+v.height>=x.top||l+r.top+v.height>=x.top+m))&&(w.x=-(this.width+this.marginOffset.x),x.left+w.x<this.containerBoundingRect.left+v.width&&C&&(w.x=C.edgeOffset.left-x.left,w.y=C.edgeOffset.top-x.top),this.newIndex=f):b||f>this.index&&a+r.left+v.width>=x.left?(w.x=-(this.width+this.marginOffset.x),this.newIndex=f):(y||f<this.index&&a+r.left<=x.left+v.width)&&(w.x=this.width+this.marginOffset.x,null==this.newIndex&&(this.newIndex=f)):this.axis.y&&(b||f>this.index&&l+r.top+v.height>=x.top?(w.y=-(this.height+this.marginOffset.y),this.newIndex=f):(y||f<this.index&&l+r.top<=x.top+v.height)&&(w.y=this.height+this.marginOffset.y,null==this.newIndex&&(this.newIndex=f))),tn(p,w),s[h].translate=w):n&&(this.sortableGhost=p,en(p,{opacity:0,visibility:"hidden"}))}null==this.newIndex&&(this.newIndex=this.index),c&&(this.newIndex=u);var k=c?this.prevIndex:u;i&&this.newIndex!==k&&i({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:k,isKeySorting:c,nodes:s,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return Kt()(i.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call"),this.refs.wrappedInstance}},{key:"getContainer",value:function(){var e=this.props.getContainer;return"function"!=typeof e?Object(Ut.findDOMNode)(this):e(i.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var t=i.withRef?"wrappedInstance":null;return Object(Wt.createElement)(e,_t({ref:t},Qt(this.props,Dn)))}},{key:"helperContainer",get:function(){var e=this.props.helperContainer;return"function"==typeof e?e():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){return this.props.useWindowAsScrollContainer?{left:0,top:0}:{left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top}}},{key:"windowScrollDelta",get:function(){return{left:this.contentWindow.pageXOffset-this.initialWindowScroll.left,top:this.contentWindow.pageYOffset-this.initialWindowScroll.top}}}]),n}(Wt.Component),Rt(t,"displayName",ln("sortableList",e)),Rt(t,"defaultProps",Fn),Rt(t,"propTypes",In),Rt(t,"childContextTypes",{manager:Vt.a.object.isRequired}),n}((function(e){var t=e.items,n=e.onChange,i=e.imageControls,o=e.controlName,r=e.attributes,s=e.focalPoint,a=e.isSetupWizard,l=e.prepareImages,c=ti(hi(!a),2),u=c[0],h=c[1];return wp.element.createElement("div",{className:"vpf-component-gallery-control-items"},t.map((function(e,l){return wp.element.createElement(Ci,{key:"lzb-constructor-controls-items-sortable-".concat(e.id,"-").concat(l),index:l,img:e,idx:l,items:t,onChange:n,imageControls:i,controlName:o,attributes:r,focalPoint:s,isSetupWizard:a})})),wp.element.createElement(xi,{multiple:!0,onSelect:function(e){n([].concat(ei(t),ei(l(e))))},allowedTypes:Si,value:!1,render:function(e){var t=e.open;return u||(h(!0),t()),wp.element.createElement(fi,{className:"vpf-component-gallery-control-item-add",onClick:function(e){e.stopPropagation(),t()}},wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",role:"img","aria-hidden":"true",focusable:"false"},wp.element.createElement("path",{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"})),wp.element.createElement("span",null,oi("Add Images","@@text_domain")))}}))})),Ei=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Un(e,t)}(r,e);var t,n,i,o=Gn(r);function r(){var e;Hn(this,r);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=o.call.apply(o,[this].concat(n))).state={hasError:!1},e.sortRef=di(),e.onUploadError=e.onUploadError.bind(qn(e)),e}return t=r,(n=[{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"prepareImages",value:function(e){var t=[];return e&&e.length&&e.forEach((function(e){var n={id:e.id,imgUrl:e.url,imgThumbnailUrl:e.url};e.mime&&"image/gif"===e.mime||(e.sizes&&e.sizes.thumbnail&&e.sizes.thumbnail.url?n.imgThumbnailUrl=e.sizes.thumbnail.url:e.sizes&&e.sizes.medium&&e.sizes.medium.url?n.imgThumbnailUrl=e.sizes.medium.url:e.sizes&&e.sizes.large&&e.sizes.large.url&&(n.imgThumbnailUrl=e.sizes.large.url)),e.title&&(n.title=e.title),e.description&&(n.description=e.description),t.push(n)})),t}},{key:"render",value:function(){var e=this,t=this,n=this.props,i=n.imageControls,o=n.attributes,r=n.name,s=n.value,a=n.onChange,l=n.focalPoint,c=n.isSetupWizard,u=s.filter((function(e){return e.id}));return wp.element.createElement("div",{className:"vpf-component-gallery-control"},wp.element.createElement(xi,{onSelect:function(t){e.setState({hasError:!1}),a(e.prepareImages(t))},allowedTypes:Si,multiple:!0,value:u&&Object.keys(u).length?u.map((function(e){return e.id})):[],render:function(){return wp.element.createElement(ci,null,wp.element.createElement(ki,{ref:t.sortRef,items:u,onChange:a,imageControls:i,controlName:r,attributes:o,focalPoint:l,isSetupWizard:c,prepareImages:t.prepareImages,axis:"xy",distance:"3",onSortEnd:function(e){var t=e.oldIndex,n=e.newIndex,i=function(e,t,n){if(n>=e.length)for(var i=n-e.length+1;i;)i-=1,e.push(void 0);return e.splice(n,0,e.splice(t,1)[0]),e}(ei(u),t,n);a(i)},helperClass:"vpf-component-gallery-control-items-sortable",helperContainer:function(){return t.sortRef&&t.sortRef.current&&t.sortRef.current.container?t.sortRef.current.container:document.body}}))}}))}}])&&Vn(t.prototype,n),i&&Vn(t,i),r}(ui),$i=yi([wi,vi])(Ei);function _i(e){return(_i="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)}function Ai(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oi(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Li(e,t){return(Li=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ri(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Mi(e);if(t){var o=Mi(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Ti(this,n)}}function Ti(e,t){return!t||"object"!==_i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Mi(e){return(Mi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}ai("vpf.editor.controls-render-data","vpf/editor/controls-render-data/images-categories-suggestions",(function(e){if("images"===e.name){var t=[];e.attributes.images&&e.attributes.images.length&&e.attributes.images.forEach((function(e){e.categories&&e.categories.length&&e.categories.forEach((function(e){-1===t.indexOf(e)&&t.push(e)}))})),t.length&&e.image_controls&&e.image_controls.categories&&e.image_controls.categories.options&&(e.image_controls.categories.options=t.map((function(e){return{label:e,value:e}})))}return e}));var Ii=wp.components.ColorPicker,Pi=wp.element.Component,Fi=wp.i18n.__,Di=wp.components,ji=Di.Dropdown,Ni=Di.Tooltip,Bi=Di.BaseControl,zi=wp.blockEditor.ColorPalette,Wi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Li(e,t)}(s,e);var t,n,i,r=Ri(s);function s(){var e;Ai(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=r.call.apply(r,[this].concat(n))).state={keyForPalette:e.props.value,keyForPicker:e.props.value},e}return t=s,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.value,i=t.onChange,r=t.alpha,s=void 0!==r&&r,a=t.colorPalette,l=void 0===a||a,c=t.hint,u=void 0===c?Fi("Custom Color Picker","@@text_domain"):c,h=t.afterDropdownContent;return wp.element.createElement(ji,{className:o()("components-color-palette__item-wrapper components-circular-option-picker__option-wrapper",n?"":"components-color-palette__custom-color"),contentClassName:"components-color-palette__picker",renderToggle:function(e){var t=e.isOpen,i=e.onToggle;return wp.element.createElement(Ni,{text:u},wp.element.createElement("button",{type:"button","aria-expanded":t,className:"components-color-palette__item components-circular-option-picker__option",onClick:i,"aria-label":u,style:{color:n||""}},wp.element.createElement("span",{className:"components-color-palette__custom-color-gradient"})))},renderContent:function(){return wp.element.createElement("div",{className:"vpf-component-color-picker"},wp.element.createElement(Ii,{color:n,onChangeComplete:function(t){var n;if(void 0===t.rgb||1===t.rgb.a)n=t.hex;else{var o=t.rgb,r=o.r,s=o.g,a=o.b,l=o.a;n="rgba(".concat(r,", ").concat(s,", ").concat(a,", ").concat(l,")")}i(n||""),e.setState({keyForPalette:n})},disableAlpha:!s,key:e.state.keyForPicker}),l?wp.element.createElement(Bi,{label:Fi("Color Palette","@@text_domain"),className:"vpf-component-color-picker-palette"},wp.element.createElement(zi,{value:n,onChange:function(t){i(t||""),e.setState({keyForPicker:t})},disableCustomColors:!0,key:e.state.keyForPalette})):"",h||"")}})}}])&&Oi(t.prototype,n),i&&Oi(t,i),s}(Pi);function Hi(e){return(Hi="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)}function Vi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ui(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Gi(e,t){return(Gi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ki(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Yi(e);if(t){var o=Yi(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return qi(this,n)}}function qi(e,t){return!t||"object"!==Hi(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Yi(e){return(Yi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Xi=wp.element.Component,Qi=wp.i18n.__,Ji=wp.date,Zi=Ji.__experimentalGetSettings,eo=Ji.dateI18n,to=wp.components,no=to.Dropdown,io=to.Button,oo=to.DatePicker,ro=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Gi(e,t)}(r,e);var t,n,i,o=Ki(r);function r(){return Vi(this,r),o.apply(this,arguments)}return t=r,(n=[{key:"render",value:function(){var e=this.props,t=e.value,n=e.onChange,i=Zi().formats.datetime||"F j, Y";return wp.element.createElement(no,{renderToggle:function(e){var n=e.onToggle;return wp.element.createElement(io,{isSecondary:!0,isSmall:!0,onClick:n},t?eo(i,t):Qi("Select Date","@@text_domain"))},renderContent:function(){return wp.element.createElement("div",{className:"components-datetime vpf-component-date-picker"},wp.element.createElement(oo,{currentDate:t,onChange:n}),t?wp.element.createElement(io,{isSecondary:!0,isSmall:!0,onClick:function(){n("")}},Qi("Reset Date","@@text_domain")):"")}})}}])&&Ui(t.prototype,n),i&&Ui(t,i),r}(Xi);
12
  /*! *****************************************************************************
13
  Copyright (c) Microsoft Corporation.
14
 
@@ -23,7 +23,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
23
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
24
  PERFORMANCE OF THIS SOFTWARE.
25
  ***************************************************************************** */
26
- function so(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))}function ao(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}}var lo=function(e){};function co(e){lo(e)}(function(){(console.warn||console.log).apply(console,arguments)}).bind("[clipboard-polyfill]");var uo,ho,po,fo,go="undefined"==typeof navigator?void 0:navigator,mo=null==go?void 0:go.clipboard,vo=(null===(uo=null==mo?void 0:mo.read)||void 0===uo||uo.bind(mo),null===(ho=null==mo?void 0:mo.readText)||void 0===ho||ho.bind(mo),null===(po=null==mo?void 0:mo.write)||void 0===po||po.bind(mo),null===(fo=null==mo?void 0:mo.writeText)||void 0===fo?void 0:fo.bind(mo)),bo="undefined"==typeof window?void 0:window,yo=(null==bo||bo.ClipboardItem,bo);function wo(){return"undefined"==typeof ClipboardEvent&&void 0!==yo.clipboardData&&void 0!==yo.clipboardData.setData}var xo=function(){this.success=!1};function So(e,t,n){for(var i in co("listener called"),e.success=!0,t){var o=t[i],r=n.clipboardData;r.setData(i,o),"text/plain"===i&&r.getData(i)!==o&&(co("setting text/plain failed"),e.success=!1)}n.preventDefault()}function Co(e){var t=new xo,n=So.bind(this,t,e);document.addEventListener("copy",n);try{document.execCommand("copy")}finally{document.removeEventListener("copy",n)}return t.success}function ko(e,t){Eo(e);var n=Co(t);return $o(),n}function Eo(e){var t=document.getSelection();if(t){var n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)}}function $o(){var e=document.getSelection();e&&e.removeAllRanges()}function _o(e){return so(this,void 0,void 0,(function(){var t;return ao(this,(function(n){if(t="text/plain"in e,wo()){if(!t)throw new Error("No `text/plain` value was specified.");if(i=e["text/plain"],yo.clipboardData.setData("Text",i))return[2,!0];throw new Error("Copying failed, possibly because the user rejected it.")}var i;return Co(e)?(co("regular execCopy worked"),[2,!0]):navigator.userAgent.indexOf("Edge")>-1?(co('UA "Edge" => assuming success'),[2,!0]):ko(document.body,e)?(co("copyUsingTempSelection worked"),[2,!0]):function(e){var t=document.createElement("div");t.setAttribute("style","-webkit-user-select: text !important"),t.textContent="temporary element",document.body.appendChild(t);var n=ko(t,e);return document.body.removeChild(t),n}(e)?(co("copyUsingTempElem worked"),[2,!0]):function(e){co("copyTextUsingDOM");var t=document.createElement("div");t.setAttribute("style","-webkit-user-select: text !important");var n=t;t.attachShadow&&(co("Using shadow DOM."),n=t.attachShadow({mode:"open"}));var i=document.createElement("span");i.innerText=e,n.appendChild(i),document.body.appendChild(t),Eo(i);var o=document.execCommand("copy");return $o(),document.body.removeChild(t),o}(e["text/plain"])?(co("copyTextUsingDOM worked"),[2,!0]):[2,!1]}))}))}!function(){function e(e,t){var n;for(var i in void 0===t&&(t={}),this.types=Object.keys(e),this._items={},e){var o=e[i];this._items[i]="string"==typeof o?Ao(i,o):o}this.presentationStyle=null!==(n=null==t?void 0:t.presentationStyle)&&void 0!==n?n:"unspecified"}e.prototype.getType=function(e){return so(this,void 0,void 0,(function(){return ao(this,(function(t){return[2,this._items[e]]}))}))}}();function Ao(e,t){return new Blob([t],{type:e})}function Oo(){return(Oo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Lo(e){return(Lo="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)}function Ro(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function To(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Mo(e,t,n){return t&&To(e.prototype,t),n&&To(e,n),e}function Io(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Po(e,t)}function Po(e,t){return(Po=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Fo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=No(e);if(t){var o=No(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Do(this,n)}}function Do(e,t){return!t||"object"!==Lo(t)&&"function"!=typeof t?jo(e):t}function jo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function No(e){return(No=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Bo=wp.element,zo=Bo.Component,Wo=Bo.Fragment;function Ho(e){if(e&&e.hasChildNodes()){for(var t=[],n=0;n<e.childNodes.length;n+=1)t.push(Ho(e.childNodes[n]));return{classList:e.classList,nodeName:e.nodeName,children:t}}return!1}var Vo=function(e){Io(n,e);var t=Fo(n);function n(){var e;Ro(this,n);for(var i=arguments.length,o=new Array(i),r=0;r<i;r++)o[r]=arguments[r];return(e=t.call.apply(t,[this].concat(o))).state={nodes:!1},e.onFrameLoad=e.onFrameLoad.bind(jo(e)),e.maybeFindIframe=e.maybeFindIframe.bind(jo(e)),e.updateTreeData=e.updateTreeData.bind(jo(e)),e}return Mo(n,[{key:"componentDidMount",value:function(){this.maybeFindIframe()}},{key:"componentDidUpdate",value:function(){this.maybeFindIframe()}},{key:"componentWillUnmount",value:function(){this.iframePreview&&this.iframePreview.removeEventListener("load",this.onFrameLoad)}},{key:"onFrameLoad",value:function(){this.iframePreview.contentWindow&&(this.frameWindow=this.iframePreview.contentWindow,this.frameJQuery=this.iframePreview.contentWindow.jQuery,this.frameJQuery&&(this.$framePortfolio=this.frameJQuery(".vp-portfolio")),this.updateTreeData())}},{key:"maybeFindIframe",value:function(){if(!this.iframePreview){var e=this.props.clientId,t=document.getElementById("vpf-preview-".concat(e));t&&(this.iframePreview=t,this.iframePreview.addEventListener("load",this.onFrameLoad),this.onFrameLoad())}}},{key:"updateTreeData",value:function(){this.$framePortfolio&&this.setState({nodes:Ho(this.$framePortfolio[0])})}},{key:"render",value:function(){return this.iframePreview?wp.element.createElement("div",{className:"vpf-component-classes-tree"},wp.element.createElement(n.TreeItem,{node:this.state.nodes,skipNodeByClass:/vp-portfolio__item-popup/,collapseByClass:/^(vp-portfolio__preloader-wrap|vp-portfolio__filter-wrap|vp-portfolio__sort-wrap|vp-portfolio__items-wrap|vp-portfolio__pagination-wrap)$/,skipClass:/vp-uid-/})):null}}]),n}(zo);function Uo(){return(Uo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Go(e){return(Go="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)}function Ko(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qo(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Yo(e,t,n){return t&&qo(e.prototype,t),n&&qo(e,n),e}function Xo(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Qo(e,t)}function Qo(e,t){return(Qo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Jo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=er(e);if(t){var o=er(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Zo(this,n)}}function Zo(e,t){return!t||"object"!==Go(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function er(e){return(er=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Vo.TreeItem=function(e){Io(n,e);var t=Fo(n);function n(){var e;Ro(this,n);for(var i=arguments.length,o=new Array(i),r=0;r<i;r++)o[r]=arguments[r];return(e=t.call.apply(t,[this].concat(o))).state={isCollapsed:null},e.isCollapsed=e.isCollapsed.bind(jo(e)),e}return Mo(n,[{key:"isCollapsed",value:function(){var e=this.props,t=e.node,n=e.collapseByClass,i=this.state.isCollapsed;return null===i&&t&&t.classList&&t.classList.length&&t.classList.forEach((function(e){n&&n.test(e)&&(i=!0)})),i}},{key:"render",value:function(){var e=this,t=this.props,n=t.node,i=t.skipNodeByClass,o=t.skipClass;if(!n||!n.children.length)return null;var r=[],s=!1;return n.classList&&n.classList.length&&n.classList.forEach((function(e){o&&o.test(e)||r.push(e),i&&i.test(e)&&(s=!0)})),s?null:wp.element.createElement("ul",null,wp.element.createElement("li",{className:"vpf-component-classes-tree-node ".concat(this.isCollapsed()?"":"is-collapsed")},wp.element.createElement("div",null,n.children.length?wp.element.createElement("button",{type:"button",className:"vpf-component-classes-tree-node-collapse",onClick:function(){return e.setState({isCollapsed:!e.isCollapsed()})}}):"","<",n.nodeName.toLowerCase(),r.length?wp.element.createElement(Wo,null,' class="',r.map((function(e){return wp.element.createElement("button",{key:e,type:"button",className:"vpf-component-classes-tree-node-class",onClick:function(){!function(e){so(this,void 0,void 0,(function(){return ao(this,(function(t){if(vo)return co("Using `navigator.clipboard.writeText()`."),[2,vo(e)];if(!_o(function(e){var t={};return t["text/plain"]=e,t}(e)))throw new Error("writeText() failed");return[2]}))}))}(e)}},e)})),'"'):"",">")),n.children.length&&this.isCollapsed()?n.children.map((function(t){return t?wp.element.createElement("li",{className:"vpf-component-classes-tree-child"},wp.element.createElement(Vo.TreeItem,Oo({},e.props,{node:t}))):null})):"")}}]),n}(zo);var tr=wp.element.Component,nr=function(e){Xo(n,e);var t=Jo(n);function n(){return Ko(this,n),t.apply(this,arguments)}return Yo(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.children,i=e.contentBefore,o=void 0===i?"":i,r=e.contentAfter,s=void 0===r?"":r;return wp.element.createElement("div",{className:"vpf-pro-component-note"},o,wp.element.createElement("div",{className:"vpf-pro-component-note-inner"},t?wp.element.createElement("h3",null,t):"",n?wp.element.createElement("div",null,n):""),s)}}]),n}(tr);nr.Button=function(e){Xo(n,e);var t=Jo(n);function n(){return Ko(this,n),t.apply(this,arguments)}return Yo(n,[{key:"render",value:function(){var e=this.props.children;return wp.element.createElement("a",Uo({className:"vpf-pro-component-note-button"},this.props),e)}}]),n}(tr);var ir=n(29),or=n(18);function rr(e){return(rr="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)}function sr(){return(sr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function ar(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function lr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ur(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function hr(e,t){return(hr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function dr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=fr(e);if(t){var o=fr(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return pr(this,n)}}function pr(e,t){return!t||"object"!==rr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function fr(e){return(fr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var gr=wp.i18n.__,mr=wp.element,vr=mr.Component,br=mr.Fragment,yr=mr.RawHTML,wr=wp.hooks.applyFilters,xr=wp.components,Sr=xr.PanelBody,Cr=xr.Tooltip,kr=xr.BaseControl,Er=xr.ButtonGroup,$r=xr.Button,_r=xr.TextControl,Ar=xr.TextareaControl,Or=xr.CheckboxControl,Lr=xr.RadioControl,Rr=xr.ToggleControl,Tr=xr.RangeControl,Mr=window.VPGutenbergVariables,Ir=Mr.controls,Pr=Mr.controls_categories,Fr={},Dr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&hr(e,t)}(r,e);var t,n,i,o=dr(r);function r(){return cr(this,r),o.apply(this,arguments)}return t=r,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.category,i=t.categoryToggle,o=void 0===i||i,s=t.attributes,a=t.setAttributes,l=t.controls,c=t.clientId,u=t.isSetupWizard;if(!s)return null;if(/^content-source-/g.test(n)&&"content-source-additional"!==n&&"content-source-".concat(s.content_source)!==n)return null;var h=l||Ir,d=[];Object.keys(h).forEach((function(t){var i=h[t];if(!n||i.category&&n===i.category){var o=wr("vpf.editor.controls-render-data",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ar(Object(n),!0).forEach((function(t){lr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ar(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({attributes:s,setAttributes:a,onChange:function(e){var t=wr("vpf.editor.controls-on-change",lr({},i.name,e),i,e,s);a(t)}},i));r.AllowRender(o,u)&&d.push(wr("vpf.editor.controls-render",wp.element.createElement(r.Control,sr({key:"control-".concat(i.name,"-").concat(i.label)},o,{clientId:c,isSetupWizard:u})),o,e.props))}}));var p=!!o&&n,f=!1,g=!1,m=!o;return o&&void 0!==Pr[n]&&(p=Pr[n].title,f=Pr[n].icon||!1,g=!!Pr[n].is_pro,void 0===Fr[n]&&(Fr[n]=Pr[n].is_opened||!1),m=Fr[n]),u?d.length?wp.element.createElement("div",{className:"vpf-setup-wizard-panel"},d):"":d.length?wp.element.createElement(Sr,{title:!!p&&wp.element.createElement(br,null,f?wp.element.createElement("span",{className:"vpf-control-category-title-icon"},wp.element.createElement(yr,null,f)):null,wp.element.createElement("span",null,p),g?wp.element.createElement("span",{className:"vpf-control-category-title-pro"},gr("PRO","@@text_domain")):""),initialOpen:m,onToggle:function(){Fr[n]=!m}},d):""}}])&&ur(t.prototype,n),i&&ur(t,i),r}(vr);Dr.Control=function(e){var t=e.attributes,n=e.onChange,i=e.isSetupWizard;if(!Dr.AllowRender(e,i))return null;var r="",s=e.label,a="",l=!!e.description&&wp.element.createElement(yr,null,e.description),c=o()("vpf-control-wrap","vpf-control-wrap-".concat(e.type)),u=Object(or.a)(e.name,t);switch(e.type){case"html":r=wp.element.createElement(yr,null,e.default);break;case"select":case"select2":r=wp.element.createElement(qe.a,{controlName:e.name,callback:e.value_callback,attributes:t,value:u,options:e.options||{},onChange:function(e){return n(e)},isSearchable:e.searchable,isMultiple:e.multiple,isCreatable:e.creatable||e.tags});break;case"buttons":r=wp.element.createElement(Er,null,Object.keys(e.options||{}).map((function(t){return wp.element.createElement($r,{isSmall:!0,isPrimary:u===t,isPressed:u===t,key:t,onClick:function(){return n(t)}},e.options[t])})));break;case"icons_selector":r=wp.element.createElement(A,{controlName:e.name,callback:e.value_callback,attributes:t,value:u,options:e.options,onChange:function(e){return n(e)}});break;case"tiles_selector":r=wp.element.createElement(ye,{value:u,options:e.options,onChange:function(e){return n(e)}});break;case"elements_selector":r=wp.element.createElement($t,{value:u,locations:e.locations,options:e.options,onChange:function(e){return n(e)},props:e});break;case"align":r=wp.element.createElement(Te,{value:u,extended:e.extended,onChange:function(e){return n(e)}});break;case"aspect_ratio":r=wp.element.createElement(Ke,{value:u,onChange:function(e){return n(e)}});break;case"gallery":r=wp.element.createElement($i,{imageControls:e.image_controls,focalPoint:e.focal_point,attributes:t,name:e.name,value:u,onChange:function(e){return n(e)},isSetupWizard:i});break;case"code_editor":r=wp.element.createElement(N,{value:u,mode:e.mode,maxLines:e.max_lines,minLines:e.min_lines,codePlaceholder:e.code_placeholder,onChange:function(e){return n(e)}}),e.allow_modal&&(a=wp.element.createElement(ie,{modalTitle:gr("Custom CSS","@@text_domain"),buttonLabel:gr("Open in Modal","@@text_domain"),size:"md"},wp.element.createElement(kr,{label:e.label,help:!!e.description&&wp.element.createElement(yr,null,e.description),className:o()("vpf-control-wrap","vpf-control-wrap-".concat(e.type))},wp.element.createElement("div",null,r)),e.classes_tree?wp.element.createElement(br,null,wp.element.createElement("p",null,gr("Classes Tree:","@@text_domain")),wp.element.createElement(Vo,e)):""));break;case"range":r=wp.element.createElement(Tr,{min:e.min,max:e.max,step:e.step,value:parseFloat(u),onChange:function(e){return n(parseFloat(e))}});break;case"toggle":r=wp.element.createElement(Rr,{checked:u,label:e.alongside,onChange:function(e){return n(e)}});break;case"checkbox":r=wp.element.createElement(Or,{checked:u,label:e.alongside,onChange:function(e){return n(e)}});break;case"radio":r=wp.element.createElement(Lr,{label:s,selected:u,options:Object.keys(e.options||{}).map((function(t){return{label:e.options[t],value:t}})),onChange:function(e){return n(e)}}),s=!1;break;case"color":r=wp.element.createElement(Wi,{value:u,alpha:e.alpha,onChange:function(e){return n(e)}});break;case"date":r=wp.element.createElement(ro,{value:u,onChange:function(e){return n(e)}});break;case"textarea":r=wp.element.createElement(Ar,{label:s,value:u,onChange:function(e){return n(e)}}),s=!1;break;case"url":r=wp.element.createElement(_r,{label:s,type:"url",value:u,onChange:function(e){return n(e)}}),s=!1;break;case"number":r=wp.element.createElement(_r,{label:s,type:"number",min:e.min,max:e.max,step:e.step,value:parseFloat(u),onChange:function(e){return n(parseFloat(e))}}),s=!1;break;case"hidden":r=wp.element.createElement(_r,{type:"hidden",value:u,onChange:function(e){return n(e)}});break;case"pro_note":r=wp.element.createElement(nr,{title:s},l?wp.element.createElement("p",null,l):"",wp.element.createElement(nr.Button,{target:"_blank",rel:"noopener noreferrer",href:"https://visualportfolio.co/pro/?utm_source=freeplugin&utm_medium=link&utm_campaign=block_settings&utm_content=@@plugin_version"},gr("Read More","@@text_domain"))),s=!1,l=!1;break;default:r=wp.element.createElement(_r,{label:s,value:u,onChange:function(e){return n(e)}}),s=!1}return e.hint&&(r=wp.element.createElement(Cr,{text:e.hint,position:e.hint_place},wp.element.createElement("div",null,r))),wp.element.createElement(br,null,wp.element.createElement(kr,{label:s,help:l,className:c},wp.element.createElement("div",null,r)),a)},Dr.AllowRender=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!e.skip&&(!(e.condition&&e.condition.length&&!Object(ir.a)(e.condition,e.attributes))&&!(t&&!e.setup_wizard))};var jr=Dr,Nr=n(46);function Br(e){return(Br="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)}function zr(){return(zr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Wr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hr(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Vr(e,t){return(Vr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ur(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Kr(e);if(t){var o=Kr(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Gr(this,n)}}function Gr(e,t){return!t||"object"!==Br(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Kr(e){return(Kr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var qr=wp.i18n.__,Yr=wp.element,Xr=Yr.Component,Qr=Yr.Fragment,Jr=wp.components.Placeholder,Zr=wp.blockEditor.InspectorControls,es=window.VPGutenbergVariables.controls_categories,ts=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Vr(e,t)}(a,e);var t,n,i,s=Ur(a);function a(){return Wr(this,a),s.apply(this,arguments)}return t=a,(n=[{key:"componentDidMount",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,i=t.block_id,o=t.content_source;t.setup_wizard||i&&o||n({setup_wizard:"true"})}},{key:"componentDidUpdate",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,i=t.setup_wizard,o=t.content_source,r=t.images;if(i&&o)switch(o){case"images":r&&r.length&&n({setup_wizard:"",items_count:-1,items_click_action:"popup_gallery"});break;case"post-based":case"social-stream":n({setup_wizard:"",layout_elements:{top:{elements:[],align:"center"},items:{elements:["items"]},bottom:{elements:["pagination"],align:"center"}}});break;default:n({setup_wizard:""})}}},{key:"renderControls",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.attributes,i=n.content_source;return"portfolio"===i&&(i=""),wp.element.createElement(Qr,null,wp.element.createElement(jr,zr({category:"content-source"},e,{isSetupWizard:t})),i?wp.element.createElement(Qr,null,Object.keys(es).map((function(n){return"content-source"===n?null:wp.element.createElement(jr,zr({key:n,category:n},e,{isSetupWizard:t}))}))):"")}},{key:"render",value:function(){var e=this.props.attributes,t=this.props.className,n=e.setup_wizard,i=e.ghostkitClassname;return i&&(t=o()(t,i)),wp.element.createElement(Qr,null,"true"!==n?wp.element.createElement(Zr,null,this.renderControls(this.props)):"",wp.element.createElement("div",{className:t},"true"!==n?wp.element.createElement(Nr.a,this.props):wp.element.createElement(Jr,{className:"vpf-setup-wizard",icon:wp.element.createElement(r.a,{width:"20",height:"20"}),label:qr("Visual Portfolio","@@text_domain")},this.renderControls(this.props,!0))))}}])&&Hr(t.prototype,n),i&&Hr(t,i),a}(Xr)},function(e){e.exports=JSON.parse('{"name":"visual-portfolio/block","category":"media","supports":{"anchor":true,"className":true,"html":false,"align":["wide","full"]}}')},function(e){e.exports=JSON.parse('{"name":"visual-portfolio/saved","category":"media","supports":{"anchor":true,"className":true,"html":false,"align":["wide","full"]}}')},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var s=n(1),a=n(0),l=n(48),c=n(49),u=c.getAceInstance(),h=u.require("ace/range").Range,d=function(e){function t(t){var n=e.call(this,t)||this;return c.editorEvents.forEach((function(e){n[e]=n[e].bind(n)})),n.debounce=c.debounce,n}return o(t,e),t.prototype.isInShadow=function(e){for(var t=e&&e.parentNode;t;){if("[object ShadowRoot]"===t.toString())return!0;t=t.parentNode}return!1},t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.className,i=t.onBeforeLoad,o=t.onValidate,r=t.mode,s=t.focus,a=t.theme,l=t.fontSize,h=t.value,d=t.defaultValue,p=t.showGutter,f=t.wrapEnabled,g=t.showPrintMargin,m=t.scrollMargin,v=void 0===m?[0,0,0,0]:m,b=t.keyboardHandler,y=t.onLoad,w=t.commands,x=t.annotations,S=t.markers,C=t.placeholder;this.editor=u.edit(this.refEditor),i&&i(u);for(var k=Object.keys(this.props.editorProps),E=0;E<k.length;E++)this.editor[k[E]]=this.props.editorProps[k[E]];this.props.debounceChangePeriod&&(this.onChange=this.debounce(this.onChange,this.props.debounceChangePeriod)),this.editor.renderer.setScrollMargin(v[0],v[1],v[2],v[3]),this.isInShadow(this.refEditor)&&this.editor.renderer.attachToShadowRoot(),this.editor.getSession().setMode("ace/mode/"+r),this.editor.setTheme("ace/theme/"+a),this.editor.setFontSize("number"==typeof l?l+"px":l),this.editor.getSession().setValue(d||(h||"")),this.props.navigateToFileEnd&&this.editor.navigateFileEnd(),this.editor.renderer.setShowGutter(p),this.editor.getSession().setUseWrapMode(f),this.editor.setShowPrintMargin(g),this.editor.on("focus",this.onFocus),this.editor.on("blur",this.onBlur),this.editor.on("copy",this.onCopy),this.editor.on("paste",this.onPaste),this.editor.on("change",this.onChange),this.editor.on("input",this.onInput),C&&this.updatePlaceholder(),this.editor.getSession().selection.on("changeSelection",this.onSelectionChange),this.editor.getSession().selection.on("changeCursor",this.onCursorChange),o&&this.editor.getSession().on("changeAnnotation",(function(){var t=e.editor.getSession().getAnnotations();e.props.onValidate(t)})),this.editor.session.on("changeScrollTop",this.onScroll),this.editor.getSession().setAnnotations(x||[]),S&&S.length>0&&this.handleMarkers(S);var $=this.editor.$options;c.editorOptions.forEach((function(t){$.hasOwnProperty(t)?e.editor.setOption(t,e.props[t]):e.props[t]&&console.warn("ReactAce: editor option "+t+" was activated but not found. Did you need to import a related tool or did you possibly mispell the option?")})),this.handleOptions(this.props),Array.isArray(w)&&w.forEach((function(t){"string"==typeof t.exec?e.editor.commands.bindKey(t.bindKey,t.exec):e.editor.commands.addCommand(t)})),b&&this.editor.setKeyboardHandler("ace/keyboard/"+b),n&&(this.refEditor.className+=" "+n),y&&y(this.editor),this.editor.resize(),s&&this.editor.focus()},t.prototype.componentDidUpdate=function(e){for(var t=e,n=this.props,i=0;i<c.editorOptions.length;i++){var o=c.editorOptions[i];n[o]!==t[o]&&this.editor.setOption(o,n[o])}if(n.className!==t.className){var r=this.refEditor.className.trim().split(" ");t.className.trim().split(" ").forEach((function(e){var t=r.indexOf(e);r.splice(t,1)})),this.refEditor.className=" "+n.className+" "+r.join(" ")}if(this.editor&&null!=n.value&&this.editor.getValue()!==n.value){this.silent=!0;var s=this.editor.session.selection.toJSON();this.editor.setValue(n.value,n.cursorStart),this.editor.session.selection.fromJSON(s),this.silent=!1}n.placeholder!==t.placeholder&&this.updatePlaceholder(),n.mode!==t.mode&&this.editor.getSession().setMode("ace/mode/"+n.mode),n.theme!==t.theme&&this.editor.setTheme("ace/theme/"+n.theme),n.keyboardHandler!==t.keyboardHandler&&(n.keyboardHandler?this.editor.setKeyboardHandler("ace/keyboard/"+n.keyboardHandler):this.editor.setKeyboardHandler(null)),n.fontSize!==t.fontSize&&this.editor.setFontSize("number"==typeof n.fontSize?n.fontSize+"px":n.fontSize),n.wrapEnabled!==t.wrapEnabled&&this.editor.getSession().setUseWrapMode(n.wrapEnabled),n.showPrintMargin!==t.showPrintMargin&&this.editor.setShowPrintMargin(n.showPrintMargin),n.showGutter!==t.showGutter&&this.editor.renderer.setShowGutter(n.showGutter),l(n.setOptions,t.setOptions)||this.handleOptions(n),l(n.annotations,t.annotations)||this.editor.getSession().setAnnotations(n.annotations||[]),!l(n.markers,t.markers)&&Array.isArray(n.markers)&&this.handleMarkers(n.markers),l(n.scrollMargin,t.scrollMargin)||this.handleScrollMargins(n.scrollMargin),e.height===this.props.height&&e.width===this.props.width||this.editor.resize(),this.props.focus&&!e.focus&&this.editor.focus()},t.prototype.handleScrollMargins=function(e){void 0===e&&(e=[0,0,0,0]),this.editor.renderer.setScrollMargin(e[0],e[1],e[2],e[3])},t.prototype.componentWillUnmount=function(){this.editor.destroy(),this.editor=null},t.prototype.onChange=function(e){if(this.props.onChange&&!this.silent){var t=this.editor.getValue();this.props.onChange(t,e)}},t.prototype.onSelectionChange=function(e){if(this.props.onSelectionChange){var t=this.editor.getSelection();this.props.onSelectionChange(t,e)}},t.prototype.onCursorChange=function(e){if(this.props.onCursorChange){var t=this.editor.getSelection();this.props.onCursorChange(t,e)}},t.prototype.onInput=function(e){this.props.onInput&&this.props.onInput(e),this.props.placeholder&&this.updatePlaceholder()},t.prototype.onFocus=function(e){this.props.onFocus&&this.props.onFocus(e,this.editor)},t.prototype.onBlur=function(e){this.props.onBlur&&this.props.onBlur(e,this.editor)},t.prototype.onCopy=function(e){var t=e.text;this.props.onCopy&&this.props.onCopy(t)},t.prototype.onPaste=function(e){var t=e.text;this.props.onPaste&&this.props.onPaste(t)},t.prototype.onScroll=function(){this.props.onScroll&&this.props.onScroll(this.editor)},t.prototype.handleOptions=function(e){for(var t=Object.keys(e.setOptions),n=0;n<t.length;n++)this.editor.setOption(t[n],e.setOptions[t[n]])},t.prototype.handleMarkers=function(e){var t=this,n=this.editor.getSession().getMarkers(!0);for(var i in n)n.hasOwnProperty(i)&&this.editor.getSession().removeMarker(n[i].id);for(var i in n=this.editor.getSession().getMarkers(!1))n.hasOwnProperty(i)&&"ace_active-line"!==n[i].clazz&&"ace_selected-word"!==n[i].clazz&&this.editor.getSession().removeMarker(n[i].id);e.forEach((function(e){var n=e.startRow,i=e.startCol,o=e.endRow,r=e.endCol,s=e.className,a=e.type,l=e.inFront,c=void 0!==l&&l,u=new h(n,i,o,r);t.editor.getSession().addMarker(u,s,a,c)}))},t.prototype.updatePlaceholder=function(){var e=this.editor,t=this.props.placeholder,n=!e.session.getValue().length,i=e.renderer.placeholderNode;!n&&i?(e.renderer.scroller.removeChild(e.renderer.placeholderNode),e.renderer.placeholderNode=null):n&&!i?((i=e.renderer.placeholderNode=document.createElement("div")).textContent=t||"",i.className="ace_comment ace_placeholder",i.style.padding="0 9px",i.style.position="absolute",i.style.zIndex="3",e.renderer.scroller.appendChild(i)):n&&i&&(i.textContent=t)},t.prototype.updateRef=function(e){this.refEditor=e},t.prototype.render=function(){var e=this.props,t=e.name,n=e.width,i=e.height,o=e.style,s=r({width:n,height:i},o);return a.createElement("div",{ref:this.updateRef,id:t,style:s})},t.propTypes={mode:s.string,focus:s.bool,theme:s.string,name:s.string,className:s.string,height:s.string,width:s.string,fontSize:s.oneOfType([s.number,s.string]),showGutter:s.bool,onChange:s.func,onCopy:s.func,onPaste:s.func,onFocus:s.func,onInput:s.func,onBlur:s.func,onScroll:s.func,value:s.string,defaultValue:s.string,onLoad:s.func,onSelectionChange:s.func,onCursorChange:s.func,onBeforeLoad:s.func,onValidate:s.func,minLines:s.number,maxLines:s.number,readOnly:s.bool,highlightActiveLine:s.bool,tabSize:s.number,showPrintMargin:s.bool,cursorStart:s.number,debounceChangePeriod:s.number,editorProps:s.object,setOptions:s.object,style:s.object,scrollMargin:s.array,annotations:s.array,markers:s.array,keyboardHandler:s.string,wrapEnabled:s.bool,enableSnippets:s.bool,enableBasicAutocompletion:s.oneOfType([s.bool,s.array]),enableLiveAutocompletion:s.oneOfType([s.bool,s.array]),navigateToFileEnd:s.bool,commands:s.array,placeholder:s.string},t.defaultProps={name:"ace-editor",focus:!1,mode:"",theme:"",height:"500px",width:"500px",fontSize:12,enableSnippets:!1,showGutter:!0,onChange:null,onPaste:null,onLoad:null,onScroll:null,minLines:null,maxLines:null,readOnly:!1,highlightActiveLine:!0,showPrintMargin:!0,tabSize:4,cursorStart:1,editorProps:{},style:{},scrollMargin:[0,0,0,0],setOptions:{},wrapEnabled:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,placeholder:null,navigateToFileEnd:!0},t}(a.Component);t.default=d},function(e,t,n){"use strict";var i=n(86);function o(){}function r(){}r.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,r,s){if(s!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),s=n(0),a=n(51),l=n(90),c=function(e){function t(t){var n=e.call(this,t)||this;return n.state={value:n.props.value},n.onChange=n.onChange.bind(n),n.diff=n.diff.bind(n),n}return o(t,e),t.prototype.componentDidUpdate=function(){var e=this.props.value;e!==this.state.value&&this.setState({value:e})},t.prototype.onChange=function(e){this.setState({value:e}),this.props.onChange&&this.props.onChange(e)},t.prototype.diff=function(){var e=new l,t=this.state.value[0],n=this.state.value[1];if(0===t.length&&0===n.length)return[];var i=e.diff_main(t,n);e.diff_cleanupSemantic(i);var o=this.generateDiffedLines(i);return this.setCodeMarkers(o)},t.prototype.generateDiffedLines=function(e){var t=0,n=-1,i=1,o={left:[],right:[]},r={left:1,right:1};return e.forEach((function(e){var s=e[0],a=e[1],l=a.split("\n").length-1;if(0!==a.length){var c=a[0],u=a[a.length-1],h=0;switch(s){case t:r.left+=l,r.right+=l;break;case n:"\n"===c&&(r.left++,l--),0===(h=l)&&o.right.push({startLine:r.right,endLine:r.right}),"\n"===u&&(h-=1),o.left.push({startLine:r.left,endLine:r.left+h}),r.left+=l;break;case i:"\n"===c&&(r.right++,l--),0===(h=l)&&o.left.push({startLine:r.left,endLine:r.left}),"\n"===u&&(h-=1),o.right.push({startLine:r.right,endLine:r.right+h}),r.right+=l;break;default:throw new Error("Diff type was not defined.")}}})),o},t.prototype.setCodeMarkers=function(e){void 0===e&&(e={left:[],right:[]});for(var t=[],n={left:[],right:[]},i=0;i<e.left.length;i++){var o={startRow:e.left[i].startLine-1,endRow:e.left[i].endLine,type:"text",className:"codeMarker"};n.left.push(o)}for(i=0;i<e.right.length;i++){o={startRow:e.right[i].startLine-1,endRow:e.right[i].endLine,type:"text",className:"codeMarker"};n.right.push(o)}return t[0]=n.left,t[1]=n.right,t},t.prototype.render=function(){var e=this.diff();return s.createElement(a.default,{name:this.props.name,className:this.props.className,focus:this.props.focus,orientation:this.props.orientation,splits:this.props.splits,mode:this.props.mode,theme:this.props.theme,height:this.props.height,width:this.props.width,fontSize:this.props.fontSize,showGutter:this.props.showGutter,onChange:this.onChange,onPaste:this.props.onPaste,onLoad:this.props.onLoad,onScroll:this.props.onScroll,minLines:this.props.minLines,maxLines:this.props.maxLines,readOnly:this.props.readOnly,highlightActiveLine:this.props.highlightActiveLine,showPrintMargin:this.props.showPrintMargin,tabSize:this.props.tabSize,cursorStart:this.props.cursorStart,editorProps:this.props.editorProps,style:this.props.style,scrollMargin:this.props.scrollMargin,setOptions:this.props.setOptions,wrapEnabled:this.props.wrapEnabled,enableBasicAutocompletion:this.props.enableBasicAutocompletion,enableLiveAutocompletion:this.props.enableLiveAutocompletion,value:this.state.value,markers:e})},t.propTypes={cursorStart:r.number,editorProps:r.object,enableBasicAutocompletion:r.bool,enableLiveAutocompletion:r.bool,focus:r.bool,fontSize:r.number,height:r.string,highlightActiveLine:r.bool,maxLines:r.number,minLines:r.number,mode:r.string,name:r.string,className:r.string,onLoad:r.func,onPaste:r.func,onScroll:r.func,onChange:r.func,orientation:r.string,readOnly:r.bool,scrollMargin:r.array,setOptions:r.object,showGutter:r.bool,showPrintMargin:r.bool,splits:r.number,style:r.object,tabSize:r.number,theme:r.string,value:r.array,width:r.string,wrapEnabled:r.bool},t.defaultProps={cursorStart:1,editorProps:{},enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,focus:!1,fontSize:12,height:"500px",highlightActiveLine:!0,maxLines:null,minLines:null,mode:"",name:"ace-editor",onLoad:null,onScroll:null,onPaste:null,onChange:null,orientation:"beside",readOnly:!1,scrollMargin:[0,0,0,0],setOptions:{},showGutter:!0,showPrintMargin:!0,splits:2,style:{},tabSize:4,theme:"github",value:["",""],width:"500px",wrapEnabled:!0},t}(s.Component);t.default=c},function(e,t,n){(function(e){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})(e)}ace.define("ace/split",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/editor","ace/virtual_renderer","ace/edit_session"],(function(e,t,n){"use strict";var i=e("./lib/oop"),o=(e("./lib/lang"),e("./lib/event_emitter").EventEmitter),r=e("./editor").Editor,s=e("./virtual_renderer").VirtualRenderer,a=e("./edit_session").EditSession,l=function(e,t,n){this.BELOW=1,this.BESIDE=0,this.$container=e,this.$theme=t,this.$splits=0,this.$editorCSS="",this.$editors=[],this.$orientation=this.BESIDE,this.setSplits(n||1),this.$cEditor=this.$editors[0],this.on("focus",function(e){this.$cEditor=e}.bind(this))};(function(){i.implement(this,o),this.$createEditor=function(){var e=document.createElement("div");e.className=this.$editorCSS,e.style.cssText="position: absolute; top:0px; bottom:0px",this.$container.appendChild(e);var t=new r(new s(e,this.$theme));return t.on("focus",function(){this._emit("focus",t)}.bind(this)),this.$editors.push(t),t.setFontSize(this.$fontSize),t},this.setSplits=function(e){var t;if(e<1)throw"The number of splits have to be > 0!";if(e!=this.$splits){if(e>this.$splits){for(;this.$splits<this.$editors.length&&this.$splits<e;)t=this.$editors[this.$splits],this.$container.appendChild(t.container),t.setFontSize(this.$fontSize),this.$splits++;for(;this.$splits<e;)this.$createEditor(),this.$splits++}else for(;this.$splits>e;)t=this.$editors[this.$splits-1],this.$container.removeChild(t.container),this.$splits--;this.resize()}},this.getSplits=function(){return this.$splits},this.getEditor=function(e){return this.$editors[e]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(e){this.$editors.forEach((function(t){t.setTheme(e)}))},this.setKeyboardHandler=function(e){this.$editors.forEach((function(t){t.setKeyboardHandler(e)}))},this.forEach=function(e,t){this.$editors.forEach(e,t)},this.$fontSize="",this.setFontSize=function(e){this.$fontSize=e,this.forEach((function(t){t.setFontSize(e)}))},this.$cloneSession=function(e){var t=new a(e.getDocument(),e.getMode()),n=e.getUndoManager();return t.setUndoManager(n),t.setTabSize(e.getTabSize()),t.setUseSoftTabs(e.getUseSoftTabs()),t.setOverwrite(e.getOverwrite()),t.setBreakpoints(e.getBreakpoints()),t.setUseWrapMode(e.getUseWrapMode()),t.setUseWorker(e.getUseWorker()),t.setWrapLimitRange(e.$wrapLimitRange.min,e.$wrapLimitRange.max),t.$foldData=e.$cloneFoldData(),t},this.setSession=function(e,t){var n;return n=null==t?this.$cEditor:this.$editors[t],this.$editors.some((function(t){return t.session===e}))&&(e=this.$cloneSession(e)),n.setSession(e),e},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(e){this.$orientation!=e&&(this.$orientation=e,this.resize())},this.resize=function(){var e,t=this.$container.clientWidth,n=this.$container.clientHeight;if(this.$orientation==this.BESIDE)for(var i=t/this.$splits,o=0;o<this.$splits;o++)(e=this.$editors[o]).container.style.width=i+"px",e.container.style.top="0px",e.container.style.left=o*i+"px",e.container.style.height=n+"px",e.resize();else{var r=n/this.$splits;for(o=0;o<this.$splits;o++)(e=this.$editors[o]).container.style.width=t+"px",e.container.style.top=o*r+"px",e.container.style.left="0px",e.container.style.height=r+"px",e.resize()}}}).call(l.prototype),t.Split=l})),ace.define("ace/ext/split",["require","exports","module","ace/split"],(function(e,t,n){"use strict";n.exports=e("../split")})),ace.require(["ace/ext/split"],(function(i){"object"==n(e)&&"object"==n(t)&&e&&(e.exports=i)}))}).call(this,n(5)(e))},function(e,t,n){(function(t){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})(e)}var i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/,r=/^\./,s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,l=/^\[object .+?Constructor\]$/,c="object"==(void 0===t?"undefined":n(t))&&t&&t.Object===Object&&t,u="object"==("undefined"==typeof self?"undefined":n(self))&&self&&self.Object===Object&&self,h=c||u||Function("return this")();var d,p=Array.prototype,f=Function.prototype,g=Object.prototype,m=h["__core-js_shared__"],v=(d=/[^.]+$/.exec(m&&m.keys&&m.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"",b=f.toString,y=g.hasOwnProperty,w=g.toString,x=RegExp("^"+b.call(y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),S=h.Symbol,C=p.splice,k=P(h,"Map"),E=P(Object,"create"),$=S?S.prototype:void 0,_=$?$.toString:void 0;function A(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function O(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function L(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function R(e,t){for(var n=e.length;n--;)if(N(e[n][0],t))return n;return-1}function T(e,t){for(var r=0,s=(t=function(e,t){if(B(e))return!1;var r=n(e);if("number"==r||"symbol"==r||"boolean"==r||null==e||W(e))return!0;return o.test(e)||!i.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:function(e){return B(e)?e:F(e)}(t)).length;null!=e&&r<s;)e=e[D(t[r++])];return r&&r==s?e:void 0}function M(e){return!(!z(e)||(t=e,v&&v in t))&&(function(e){var t=z(e)?w.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?x:l).test(function(e){if(null!=e){try{return b.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}function I(e,t){var i=e.__data__;return function(e){var t=n(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?i["string"==typeof t?"string":"hash"]:i.map}function P(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return M(n)?n:void 0}A.prototype.clear=function(){this.__data__=E?E(null):{}},A.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},A.prototype.get=function(e){var t=this.__data__;if(E){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return y.call(t,e)?t[e]:void 0},A.prototype.has=function(e){var t=this.__data__;return E?void 0!==t[e]:y.call(t,e)},A.prototype.set=function(e,t){return this.__data__[e]=E&&void 0===t?"__lodash_hash_undefined__":t,this},O.prototype.clear=function(){this.__data__=[]},O.prototype.delete=function(e){var t=this.__data__,n=R(t,e);return!(n<0)&&(n==t.length-1?t.pop():C.call(t,n,1),!0)},O.prototype.get=function(e){var t=this.__data__,n=R(t,e);return n<0?void 0:t[n][1]},O.prototype.has=function(e){return R(this.__data__,e)>-1},O.prototype.set=function(e,t){var n=this.__data__,i=R(n,e);return i<0?n.push([e,t]):n[i][1]=t,this},L.prototype.clear=function(){this.__data__={hash:new A,map:new(k||O),string:new A}},L.prototype.delete=function(e){return I(this,e).delete(e)},L.prototype.get=function(e){return I(this,e).get(e)},L.prototype.has=function(e){return I(this,e).has(e)},L.prototype.set=function(e,t){return I(this,e).set(e,t),this};var F=j((function(e){e=function(e){return null==e?"":function(e){if("string"==typeof e)return e;if(W(e))return _?_.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}(e);var t=[];return r.test(e)&&t.push(""),e.replace(s,(function(e,n,i,o){t.push(i?o.replace(a,"$1"):n||e)})),t}));function D(e){if("string"==typeof e||W(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function j(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var i=arguments,o=t?t.apply(this,i):i[0],r=n.cache;if(r.has(o))return r.get(o);var s=e.apply(this,i);return n.cache=r.set(o,s),s};return n.cache=new(j.Cache||L),n}function N(e,t){return e===t||e!=e&&t!=t}j.Cache=L;var B=Array.isArray;function z(e){var t=n(e);return!!e&&("object"==t||"function"==t)}function W(e){return"symbol"==n(e)||function(e){return!!e&&"object"==n(e)}(e)&&"[object Symbol]"==w.call(e)}e.exports=function(e,t,n){var i=null==e?void 0:T(e,t);return void 0===i?n:i}}).call(this,n(19))},function(e,t){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})(e)}var i=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32};i.Diff=function(e,t){return[e,t]},i.prototype.diff_main=function(e,t,n,o){void 0===o&&(o=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var r=o;if(null==e||null==t)throw new Error("Null input. (diff_main)");if(e==t)return e?[new i.Diff(0,e)]:[];void 0===n&&(n=!0);var s=n,a=this.diff_commonPrefix(e,t),l=e.substring(0,a);e=e.substring(a),t=t.substring(a),a=this.diff_commonSuffix(e,t);var c=e.substring(e.length-a);e=e.substring(0,e.length-a),t=t.substring(0,t.length-a);var u=this.diff_compute_(e,t,s,r);return l&&u.unshift(new i.Diff(0,l)),c&&u.push(new i.Diff(0,c)),this.diff_cleanupMerge(u),u},i.prototype.diff_compute_=function(e,t,n,o){var r;if(!e)return[new i.Diff(1,t)];if(!t)return[new i.Diff(-1,e)];var s=e.length>t.length?e:t,a=e.length>t.length?t:e,l=s.indexOf(a);if(-1!=l)return r=[new i.Diff(1,s.substring(0,l)),new i.Diff(0,a),new i.Diff(1,s.substring(l+a.length))],e.length>t.length&&(r[0][0]=r[2][0]=-1),r;if(1==a.length)return[new i.Diff(-1,e),new i.Diff(1,t)];var c=this.diff_halfMatch_(e,t);if(c){var u=c[0],h=c[1],d=c[2],p=c[3],f=c[4],g=this.diff_main(u,d,n,o),m=this.diff_main(h,p,n,o);return g.concat([new i.Diff(0,f)],m)}return n&&e.length>100&&t.length>100?this.diff_lineMode_(e,t,o):this.diff_bisect_(e,t,o)},i.prototype.diff_lineMode_=function(e,t,n){var o=this.diff_linesToChars_(e,t);e=o.chars1,t=o.chars2;var r=o.lineArray,s=this.diff_main(e,t,!1,n);this.diff_charsToLines_(s,r),this.diff_cleanupSemantic(s),s.push(new i.Diff(0,""));for(var a=0,l=0,c=0,u="",h="";a<s.length;){switch(s[a][0]){case 1:c++,h+=s[a][1];break;case-1:l++,u+=s[a][1];break;case 0:if(l>=1&&c>=1){s.splice(a-l-c,l+c),a=a-l-c;for(var d=this.diff_main(u,h,!1,n),p=d.length-1;p>=0;p--)s.splice(a,0,d[p]);a+=d.length}c=0,l=0,u="",h=""}a++}return s.pop(),s},i.prototype.diff_bisect_=function(e,t,n){for(var o=e.length,r=t.length,s=Math.ceil((o+r)/2),a=s,l=2*s,c=new Array(l),u=new Array(l),h=0;h<l;h++)c[h]=-1,u[h]=-1;c[a+1]=0,u[a+1]=0;for(var d=o-r,p=d%2!=0,f=0,g=0,m=0,v=0,b=0;b<s&&!((new Date).getTime()>n);b++){for(var y=-b+f;y<=b-g;y+=2){for(var w=a+y,x=($=y==-b||y!=b&&c[w-1]<c[w+1]?c[w+1]:c[w-1]+1)-y;$<o&&x<r&&e.charAt($)==t.charAt(x);)$++,x++;if(c[w]=$,$>o)g+=2;else if(x>r)f+=2;else if(p){if((k=a+d-y)>=0&&k<l&&-1!=u[k])if($>=(C=o-u[k]))return this.diff_bisectSplit_(e,t,$,x,n)}}for(var S=-b+m;S<=b-v;S+=2){for(var C,k=a+S,E=(C=S==-b||S!=b&&u[k-1]<u[k+1]?u[k+1]:u[k-1]+1)-S;C<o&&E<r&&e.charAt(o-C-1)==t.charAt(r-E-1);)C++,E++;if(u[k]=C,C>o)v+=2;else if(E>r)m+=2;else if(!p){if((w=a+d-S)>=0&&w<l&&-1!=c[w]){var $;x=a+($=c[w])-w;if($>=(C=o-C))return this.diff_bisectSplit_(e,t,$,x,n)}}}}return[new i.Diff(-1,e),new i.Diff(1,t)]},i.prototype.diff_bisectSplit_=function(e,t,n,i,o){var r=e.substring(0,n),s=t.substring(0,i),a=e.substring(n),l=t.substring(i),c=this.diff_main(r,s,!1,o),u=this.diff_main(a,l,!1,o);return c.concat(u)},i.prototype.diff_linesToChars_=function(e,t){var n=[],i={};function o(e){for(var t="",o=0,s=-1,a=n.length;s<e.length-1;){-1==(s=e.indexOf("\n",o))&&(s=e.length-1);var l=e.substring(o,s+1);(i.hasOwnProperty?i.hasOwnProperty(l):void 0!==i[l])?t+=String.fromCharCode(i[l]):(a==r&&(l=e.substring(o),s=e.length),t+=String.fromCharCode(a),i[l]=a,n[a++]=l),o=s+1}return t}n[0]="";var r=4e4,s=o(e);return r=65535,{chars1:s,chars2:o(t),lineArray:n}},i.prototype.diff_charsToLines_=function(e,t){for(var n=0;n<e.length;n++){for(var i=e[n][1],o=[],r=0;r<i.length;r++)o[r]=t[i.charCodeAt(r)];e[n][1]=o.join("")}},i.prototype.diff_commonPrefix=function(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,i=Math.min(e.length,t.length),o=i,r=0;n<o;)e.substring(r,o)==t.substring(r,o)?r=n=o:i=o,o=Math.floor((i-n)/2+n);return o},i.prototype.diff_commonSuffix=function(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,i=Math.min(e.length,t.length),o=i,r=0;n<o;)e.substring(e.length-o,e.length-r)==t.substring(t.length-o,t.length-r)?r=n=o:i=o,o=Math.floor((i-n)/2+n);return o},i.prototype.diff_commonOverlap_=function(e,t){var n=e.length,i=t.length;if(0==n||0==i)return 0;n>i?e=e.substring(n-i):n<i&&(t=t.substring(0,n));var o=Math.min(n,i);if(e==t)return o;for(var r=0,s=1;;){var a=e.substring(o-s),l=t.indexOf(a);if(-1==l)return r;s+=l,0!=l&&e.substring(o-s)!=t.substring(0,s)||(r=s,s++)}},i.prototype.diff_halfMatch_=function(e,t){if(this.Diff_Timeout<=0)return null;var n=e.length>t.length?e:t,i=e.length>t.length?t:e;if(n.length<4||2*i.length<n.length)return null;var o=this;function r(e,t,n){for(var i,r,s,a,l=e.substring(n,n+Math.floor(e.length/4)),c=-1,u="";-1!=(c=t.indexOf(l,c+1));){var h=o.diff_commonPrefix(e.substring(n),t.substring(c)),d=o.diff_commonSuffix(e.substring(0,n),t.substring(0,c));u.length<d+h&&(u=t.substring(c-d,c)+t.substring(c,c+h),i=e.substring(0,n-d),r=e.substring(n+h),s=t.substring(0,c-d),a=t.substring(c+h))}return 2*u.length>=e.length?[i,r,s,a,u]:null}var s,a,l,c,u,h=r(n,i,Math.ceil(n.length/4)),d=r(n,i,Math.ceil(n.length/2));return h||d?(s=d?h&&h[4].length>d[4].length?h:d:h,e.length>t.length?(a=s[0],l=s[1],c=s[2],u=s[3]):(c=s[0],u=s[1],a=s[2],l=s[3]),[a,l,c,u,s[4]]):null},i.prototype.diff_cleanupSemantic=function(e){for(var t=!1,n=[],o=0,r=null,s=0,a=0,l=0,c=0,u=0;s<e.length;)0==e[s][0]?(n[o++]=s,a=c,l=u,c=0,u=0,r=e[s][1]):(1==e[s][0]?c+=e[s][1].length:u+=e[s][1].length,r&&r.length<=Math.max(a,l)&&r.length<=Math.max(c,u)&&(e.splice(n[o-1],0,new i.Diff(-1,r)),e[n[o-1]+1][0]=1,o--,s=--o>0?n[o-1]:-1,a=0,l=0,c=0,u=0,r=null,t=!0)),s++;for(t&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),s=1;s<e.length;){if(-1==e[s-1][0]&&1==e[s][0]){var h=e[s-1][1],d=e[s][1],p=this.diff_commonOverlap_(h,d),f=this.diff_commonOverlap_(d,h);p>=f?(p>=h.length/2||p>=d.length/2)&&(e.splice(s,0,new i.Diff(0,d.substring(0,p))),e[s-1][1]=h.substring(0,h.length-p),e[s+1][1]=d.substring(p),s++):(f>=h.length/2||f>=d.length/2)&&(e.splice(s,0,new i.Diff(0,h.substring(0,f))),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-f),e[s+1][0]=-1,e[s+1][1]=h.substring(f),s++),s++}s++}},i.prototype.diff_cleanupSemanticLossless=function(e){function t(e,t){if(!e||!t)return 6;var n=e.charAt(e.length-1),o=t.charAt(0),r=n.match(i.nonAlphaNumericRegex_),s=o.match(i.nonAlphaNumericRegex_),a=r&&n.match(i.whitespaceRegex_),l=s&&o.match(i.whitespaceRegex_),c=a&&n.match(i.linebreakRegex_),u=l&&o.match(i.linebreakRegex_),h=c&&e.match(i.blanklineEndRegex_),d=u&&t.match(i.blanklineStartRegex_);return h||d?5:c||u?4:r&&!a&&l?3:a||l?2:r||s?1:0}for(var n=1;n<e.length-1;){if(0==e[n-1][0]&&0==e[n+1][0]){var o=e[n-1][1],r=e[n][1],s=e[n+1][1],a=this.diff_commonSuffix(o,r);if(a){var l=r.substring(r.length-a);o=o.substring(0,o.length-a),r=l+r.substring(0,r.length-a),s=l+s}for(var c=o,u=r,h=s,d=t(o,r)+t(r,s);r.charAt(0)===s.charAt(0);){o+=r.charAt(0),r=r.substring(1)+s.charAt(0),s=s.substring(1);var p=t(o,r)+t(r,s);p>=d&&(d=p,c=o,u=r,h=s)}e[n-1][1]!=c&&(c?e[n-1][1]=c:(e.splice(n-1,1),n--),e[n][1]=u,h?e[n+1][1]=h:(e.splice(n+1,1),n--))}n++}},i.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,i.whitespaceRegex_=/\s/,i.linebreakRegex_=/[\r\n]/,i.blanklineEndRegex_=/\n\r?\n$/,i.blanklineStartRegex_=/^\r?\n\r?\n/,i.prototype.diff_cleanupEfficiency=function(e){for(var t=!1,n=[],o=0,r=null,s=0,a=!1,l=!1,c=!1,u=!1;s<e.length;)0==e[s][0]?(e[s][1].length<this.Diff_EditCost&&(c||u)?(n[o++]=s,a=c,l=u,r=e[s][1]):(o=0,r=null),c=u=!1):(-1==e[s][0]?u=!0:c=!0,r&&(a&&l&&c&&u||r.length<this.Diff_EditCost/2&&a+l+c+u==3)&&(e.splice(n[o-1],0,new i.Diff(-1,r)),e[n[o-1]+1][0]=1,o--,r=null,a&&l?(c=u=!0,o=0):(s=--o>0?n[o-1]:-1,c=u=!1),t=!0)),s++;t&&this.diff_cleanupMerge(e)},i.prototype.diff_cleanupMerge=function(e){e.push(new i.Diff(0,""));for(var t,n=0,o=0,r=0,s="",a="";n<e.length;)switch(e[n][0]){case 1:r++,a+=e[n][1],n++;break;case-1:o++,s+=e[n][1],n++;break;case 0:o+r>1?(0!==o&&0!==r&&(0!==(t=this.diff_commonPrefix(a,s))&&(n-o-r>0&&0==e[n-o-r-1][0]?e[n-o-r-1][1]+=a.substring(0,t):(e.splice(0,0,new i.Diff(0,a.substring(0,t))),n++),a=a.substring(t),s=s.substring(t)),0!==(t=this.diff_commonSuffix(a,s))&&(e[n][1]=a.substring(a.length-t)+e[n][1],a=a.substring(0,a.length-t),s=s.substring(0,s.length-t))),n-=o+r,e.splice(n,o+r),s.length&&(e.splice(n,0,new i.Diff(-1,s)),n++),a.length&&(e.splice(n,0,new i.Diff(1,a)),n++),n++):0!==n&&0==e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",a=""}""===e[e.length-1][1]&&e.pop();var l=!1;for(n=1;n<e.length-1;)0==e[n-1][0]&&0==e[n+1][0]&&(e[n][1].substring(e[n][1].length-e[n-1][1].length)==e[n-1][1]?(e[n][1]=e[n-1][1]+e[n][1].substring(0,e[n][1].length-e[n-1][1].length),e[n+1][1]=e[n-1][1]+e[n+1][1],e.splice(n-1,1),l=!0):e[n][1].substring(0,e[n+1][1].length)==e[n+1][1]&&(e[n-1][1]+=e[n+1][1],e[n][1]=e[n][1].substring(e[n+1][1].length)+e[n+1][1],e.splice(n+1,1),l=!0)),n++;l&&this.diff_cleanupMerge(e)},i.prototype.diff_xIndex=function(e,t){var n,i=0,o=0,r=0,s=0;for(n=0;n<e.length&&(1!==e[n][0]&&(i+=e[n][1].length),-1!==e[n][0]&&(o+=e[n][1].length),!(i>t));n++)r=i,s=o;return e.length!=n&&-1===e[n][0]?s:s+(t-r)},i.prototype.diff_prettyHtml=function(e){for(var t=[],n=/&/g,i=/</g,o=/>/g,r=/\n/g,s=0;s<e.length;s++){var a=e[s][0],l=e[s][1].replace(n,"&amp;").replace(i,"&lt;").replace(o,"&gt;").replace(r,"&para;<br>");switch(a){case 1:t[s]='<ins style="background:#e6ffe6;">'+l+"</ins>";break;case-1:t[s]='<del style="background:#ffe6e6;">'+l+"</del>";break;case 0:t[s]="<span>"+l+"</span>"}}return t.join("")},i.prototype.diff_text1=function(e){for(var t=[],n=0;n<e.length;n++)1!==e[n][0]&&(t[n]=e[n][1]);return t.join("")},i.prototype.diff_text2=function(e){for(var t=[],n=0;n<e.length;n++)-1!==e[n][0]&&(t[n]=e[n][1]);return t.join("")},i.prototype.diff_levenshtein=function(e){for(var t=0,n=0,i=0,o=0;o<e.length;o++){var r=e[o][0],s=e[o][1];switch(r){case 1:n+=s.length;break;case-1:i+=s.length;break;case 0:t+=Math.max(n,i),n=0,i=0}}return t+=Math.max(n,i)},i.prototype.diff_toDelta=function(e){for(var t=[],n=0;n<e.length;n++)switch(e[n][0]){case 1:t[n]="+"+encodeURI(e[n][1]);break;case-1:t[n]="-"+e[n][1].length;break;case 0:t[n]="="+e[n][1].length}return t.join("\t").replace(/%20/g," ")},i.prototype.diff_fromDelta=function(e,t){for(var n=[],o=0,r=0,s=t.split(/\t/g),a=0;a<s.length;a++){var l=s[a].substring(1);switch(s[a].charAt(0)){case"+":try{n[o++]=new i.Diff(1,decodeURI(l))}catch(e){throw new Error("Illegal escape in diff_fromDelta: "+l)}break;case"-":case"=":var c=parseInt(l,10);if(isNaN(c)||c<0)throw new Error("Invalid number in diff_fromDelta: "+l);var u=e.substring(r,r+=c);"="==s[a].charAt(0)?n[o++]=new i.Diff(0,u):n[o++]=new i.Diff(-1,u);break;default:if(s[a])throw new Error("Invalid diff operation in diff_fromDelta: "+s[a])}}if(r!=e.length)throw new Error("Delta length ("+r+") does not equal source text length ("+e.length+").");return n},i.prototype.match_main=function(e,t,n){if(null==e||null==t||null==n)throw new Error("Null input. (match_main)");return n=Math.max(0,Math.min(n,e.length)),e==t?0:e.length?e.substring(n,n+t.length)==t?n:this.match_bitap_(e,t,n):-1},i.prototype.match_bitap_=function(e,t,n){if(t.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var i=this.match_alphabet_(t),o=this;function r(e,i){var r=e/t.length,s=Math.abs(n-i);return o.Match_Distance?r+s/o.Match_Distance:s?1:r}var s=this.Match_Threshold,a=e.indexOf(t,n);-1!=a&&(s=Math.min(r(0,a),s),-1!=(a=e.lastIndexOf(t,n+t.length))&&(s=Math.min(r(0,a),s)));var l,c,u=1<<t.length-1;a=-1;for(var h,d=t.length+e.length,p=0;p<t.length;p++){for(l=0,c=d;l<c;)r(p,n+c)<=s?l=c:d=c,c=Math.floor((d-l)/2+l);d=c;var f=Math.max(1,n-c+1),g=Math.min(n+c,e.length)+t.length,m=Array(g+2);m[g+1]=(1<<p)-1;for(var v=g;v>=f;v--){var b=i[e.charAt(v-1)];if(m[v]=0===p?(m[v+1]<<1|1)&b:(m[v+1]<<1|1)&b|(h[v+1]|h[v])<<1|1|h[v+1],m[v]&u){var y=r(p,v-1);if(y<=s){if(s=y,!((a=v-1)>n))break;f=Math.max(1,2*n-a)}}}if(r(p+1,n)>s)break;h=m}return a},i.prototype.match_alphabet_=function(e){for(var t={},n=0;n<e.length;n++)t[e.charAt(n)]=0;for(n=0;n<e.length;n++)t[e.charAt(n)]|=1<<e.length-n-1;return t},i.prototype.patch_addContext_=function(e,t){if(0!=t.length){if(null===e.start2)throw Error("patch not initialized");for(var n=t.substring(e.start2,e.start2+e.length1),o=0;t.indexOf(n)!=t.lastIndexOf(n)&&n.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)o+=this.Patch_Margin,n=t.substring(e.start2-o,e.start2+e.length1+o);o+=this.Patch_Margin;var r=t.substring(e.start2-o,e.start2);r&&e.diffs.unshift(new i.Diff(0,r));var s=t.substring(e.start2+e.length1,e.start2+e.length1+o);s&&e.diffs.push(new i.Diff(0,s)),e.start1-=r.length,e.start2-=r.length,e.length1+=r.length+s.length,e.length2+=r.length+s.length}},i.prototype.patch_make=function(e,t,o){var r,s;if("string"==typeof e&&"string"==typeof t&&void 0===o)r=e,(s=this.diff_main(r,t,!0)).length>2&&(this.diff_cleanupSemantic(s),this.diff_cleanupEfficiency(s));else if(e&&"object"==n(e)&&void 0===t&&void 0===o)s=e,r=this.diff_text1(s);else if("string"==typeof e&&t&&"object"==n(t)&&void 0===o)r=e,s=t;else{if("string"!=typeof e||"string"!=typeof t||!o||"object"!=n(o))throw new Error("Unknown call format to patch_make.");r=e,s=o}if(0===s.length)return[];for(var a=[],l=new i.patch_obj,c=0,u=0,h=0,d=r,p=r,f=0;f<s.length;f++){var g=s[f][0],m=s[f][1];switch(c||0===g||(l.start1=u,l.start2=h),g){case 1:l.diffs[c++]=s[f],l.length2+=m.length,p=p.substring(0,h)+m+p.substring(h);break;case-1:l.length1+=m.length,l.diffs[c++]=s[f],p=p.substring(0,h)+p.substring(h+m.length);break;case 0:m.length<=2*this.Patch_Margin&&c&&s.length!=f+1?(l.diffs[c++]=s[f],l.length1+=m.length,l.length2+=m.length):m.length>=2*this.Patch_Margin&&c&&(this.patch_addContext_(l,d),a.push(l),l=new i.patch_obj,c=0,d=p,u=h)}1!==g&&(u+=m.length),-1!==g&&(h+=m.length)}return c&&(this.patch_addContext_(l,d),a.push(l)),a},i.prototype.patch_deepCopy=function(e){for(var t=[],n=0;n<e.length;n++){var o=e[n],r=new i.patch_obj;r.diffs=[];for(var s=0;s<o.diffs.length;s++)r.diffs[s]=new i.Diff(o.diffs[s][0],o.diffs[s][1]);r.start1=o.start1,r.start2=o.start2,r.length1=o.length1,r.length2=o.length2,t[n]=r}return t},i.prototype.patch_apply=function(e,t){if(0==e.length)return[t,[]];e=this.patch_deepCopy(e);var n=this.patch_addPadding(e);t=n+t+n,this.patch_splitMax(e);for(var i=0,o=[],r=0;r<e.length;r++){var s,a,l=e[r].start2+i,c=this.diff_text1(e[r].diffs),u=-1;if(c.length>this.Match_MaxBits?-1!=(s=this.match_main(t,c.substring(0,this.Match_MaxBits),l))&&(-1==(u=this.match_main(t,c.substring(c.length-this.Match_MaxBits),l+c.length-this.Match_MaxBits))||s>=u)&&(s=-1):s=this.match_main(t,c,l),-1==s)o[r]=!1,i-=e[r].length2-e[r].length1;else if(o[r]=!0,i=s-l,c==(a=-1==u?t.substring(s,s+c.length):t.substring(s,u+this.Match_MaxBits)))t=t.substring(0,s)+this.diff_text2(e[r].diffs)+t.substring(s+c.length);else{var h=this.diff_main(c,a,!1);if(c.length>this.Match_MaxBits&&this.diff_levenshtein(h)/c.length>this.Patch_DeleteThreshold)o[r]=!1;else{this.diff_cleanupSemanticLossless(h);for(var d,p=0,f=0;f<e[r].diffs.length;f++){var g=e[r].diffs[f];0!==g[0]&&(d=this.diff_xIndex(h,p)),1===g[0]?t=t.substring(0,s+d)+g[1]+t.substring(s+d):-1===g[0]&&(t=t.substring(0,s+d)+t.substring(s+this.diff_xIndex(h,p+g[1].length))),-1!==g[0]&&(p+=g[1].length)}}}}return[t=t.substring(n.length,t.length-n.length),o]},i.prototype.patch_addPadding=function(e){for(var t=this.Patch_Margin,n="",o=1;o<=t;o++)n+=String.fromCharCode(o);for(o=0;o<e.length;o++)e[o].start1+=t,e[o].start2+=t;var r=e[0],s=r.diffs;if(0==s.length||0!=s[0][0])s.unshift(new i.Diff(0,n)),r.start1-=t,r.start2-=t,r.length1+=t,r.length2+=t;else if(t>s[0][1].length){var a=t-s[0][1].length;s[0][1]=n.substring(s[0][1].length)+s[0][1],r.start1-=a,r.start2-=a,r.length1+=a,r.length2+=a}if(0==(s=(r=e[e.length-1]).diffs).length||0!=s[s.length-1][0])s.push(new i.Diff(0,n)),r.length1+=t,r.length2+=t;else if(t>s[s.length-1][1].length){a=t-s[s.length-1][1].length;s[s.length-1][1]+=n.substring(0,a),r.length1+=a,r.length2+=a}return n},i.prototype.patch_splitMax=function(e){for(var t=this.Match_MaxBits,n=0;n<e.length;n++)if(!(e[n].length1<=t)){var o=e[n];e.splice(n--,1);for(var r=o.start1,s=o.start2,a="";0!==o.diffs.length;){var l=new i.patch_obj,c=!0;for(l.start1=r-a.length,l.start2=s-a.length,""!==a&&(l.length1=l.length2=a.length,l.diffs.push(new i.Diff(0,a)));0!==o.diffs.length&&l.length1<t-this.Patch_Margin;){var u=o.diffs[0][0],h=o.diffs[0][1];1===u?(l.length2+=h.length,s+=h.length,l.diffs.push(o.diffs.shift()),c=!1):-1===u&&1==l.diffs.length&&0==l.diffs[0][0]&&h.length>2*t?(l.length1+=h.length,r+=h.length,c=!1,l.diffs.push(new i.Diff(u,h)),o.diffs.shift()):(h=h.substring(0,t-l.length1-this.Patch_Margin),l.length1+=h.length,r+=h.length,0===u?(l.length2+=h.length,s+=h.length):c=!1,l.diffs.push(new i.Diff(u,h)),h==o.diffs[0][1]?o.diffs.shift():o.diffs[0][1]=o.diffs[0][1].substring(h.length))}a=(a=this.diff_text2(l.diffs)).substring(a.length-this.Patch_Margin);var d=this.diff_text1(o.diffs).substring(0,this.Patch_Margin);""!==d&&(l.length1+=d.length,l.length2+=d.length,0!==l.diffs.length&&0===l.diffs[l.diffs.length-1][0]?l.diffs[l.diffs.length-1][1]+=d:l.diffs.push(new i.Diff(0,d))),c||e.splice(++n,0,l)}}},i.prototype.patch_toText=function(e){for(var t=[],n=0;n<e.length;n++)t[n]=e[n];return t.join("")},i.prototype.patch_fromText=function(e){var t=[];if(!e)return t;for(var n=e.split("\n"),o=0,r=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;o<n.length;){var s=n[o].match(r);if(!s)throw new Error("Invalid patch string: "+n[o]);var a=new i.patch_obj;for(t.push(a),a.start1=parseInt(s[1],10),""===s[2]?(a.start1--,a.length1=1):"0"==s[2]?a.length1=0:(a.start1--,a.length1=parseInt(s[2],10)),a.start2=parseInt(s[3],10),""===s[4]?(a.start2--,a.length2=1):"0"==s[4]?a.length2=0:(a.start2--,a.length2=parseInt(s[4],10)),o++;o<n.length;){var l=n[o].charAt(0);try{var c=decodeURI(n[o].substring(1))}catch(e){throw new Error("Illegal escape in patch_fromText: "+c)}if("-"==l)a.diffs.push(new i.Diff(-1,c));else if("+"==l)a.diffs.push(new i.Diff(1,c));else if(" "==l)a.diffs.push(new i.Diff(0,c));else{if("@"==l)break;if(""!==l)throw new Error('Invalid patch mode "'+l+'" in: '+c)}o++}}return t},(i.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0}).prototype.toString=function(){for(var e,t=["@@ -"+(0===this.length1?this.start1+",0":1==this.length1?this.start1+1:this.start1+1+","+this.length1)+" +"+(0===this.length2?this.start2+",0":1==this.length2?this.start2+1:this.start2+1+","+this.length2)+" @@\n"],n=0;n<this.diffs.length;n++){switch(this.diffs[n][0]){case 1:e="+";break;case-1:e="-";break;case 0:e=" "}t[n+1]=e+encodeURI(this.diffs[n][1])+"\n"}return t.join("").replace(/%20/g," ")},e.exports=i,e.exports.diff_match_patch=i,e.exports.DIFF_DELETE=-1,e.exports.DIFF_INSERT=1,e.exports.DIFF_EQUAL=0},function(e,t,n){(function(e){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})(e)}ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=(e("../lib/lang"),e("./text_highlight_rules").TextHighlightRules),r=t.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",s=t.supportFunction="rgb|rgba|url|attr|counter|counters",a=t.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom",l=t.supportConstantColor="aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",c=t.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",u=t.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",h=t.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",d=t.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",p=function(){var e=this.createKeywordMapper({"support.function":s,"support.constant":a,"support.type":r,"support.constant.color":l,"support.constant.fonts":c},"text",!0);this.$rules={start:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"paren.rparen",regex:"\\}"},{token:"string",regex:"@(?!viewport)",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"keyword",regex:"%"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant.numeric",regex:u},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"start"},{token:"paren.rparen",regex:"\\}",next:"start"},{token:"string",regex:";",next:"start"},{token:"keyword",regex:"(?:media|supports|document|charset|import|namespace|media|supports|document|page|font|keyframes|viewport|counter-style|font-feature-values|swash|ornaments|annotation|stylistic|styleset|character-variant)"}],comments:[{token:"comment",regex:"\\/\\*",push:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}]}],ruleset:[{regex:"-(webkit|ms|moz|o)-",token:"text"},{token:"punctuation.operator",regex:"[:;]"},{token:"paren.rparen",regex:"\\}",next:"start"},{include:["strings","url","comments"]},{token:["constant.numeric","keyword"],regex:"("+u+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"},{token:"constant.numeric",regex:u},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:h},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:d},{include:"url"},{token:e,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};i.inherits(p,o),t.CssHighlightRules=p})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=e("../range").Range,o=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t).match(/^(\s*\})/);if(!n)return 0;var o=n[1].length,r=e.findMatchingBracket({row:t,column:o});if(!r||r.row==t)return 0;var s=this.$getIndent(e.getLine(r.row));e.replace(new i(t,0,t,o-1),s)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(o.prototype),t.MatchingBraceOutdent=o})),ace.define("ace/mode/css_completions",["require","exports","module"],(function(e,t,i){"use strict";var o={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,double:2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{default:1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},float:{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"%":1},"padding-right":{px:1,em:1,"%":1},"padding-bottom":{px:1,em:1,"%":1},"padding-left":{px:1,em:1,"%":1},"page-break-after":{auto:1,always:1,avoid:1,left:1,right:1},"page-break-before":{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,static:1},right:{px:1,em:1,"%":1},"table-layout":{fixed:1,auto:1},"text-decoration":{none:1,underline:1,"line-through":1,blink:1},"text-align":{left:1,right:1,center:1,justify:1},"text-transform":{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,"%":1},"vertical-align":{top:1,bottom:1},visibility:{hidden:1,visible:1},"white-space":{nowrap:1,normal:1,pre:1,"pre-line":1,"pre-wrap":1},width:{px:1,em:1,"%":1},"word-spacing":{normal:1},filter:{"alpha(opacity=$0100)":1},"text-shadow":{"$02px 2px 2px #777":1},"text-overflow":{"ellipsis-word":1,clip:1,ellipsis:1},"-moz-border-radius":1,"-moz-border-radius-topright":1,"-moz-border-radius-bottomright":1,"-moz-border-radius-topleft":1,"-moz-border-radius-bottomleft":1,"-webkit-border-radius":1,"-webkit-border-top-right-radius":1,"-webkit-border-top-left-radius":1,"-webkit-border-bottom-right-radius":1,"-webkit-border-bottom-left-radius":1,"-moz-box-shadow":1,"-webkit-box-shadow":1,transform:{"rotate($00deg)":1,"skew($00deg)":1},"-moz-transform":{"rotate($00deg)":1,"skew($00deg)":1},"-webkit-transform":{"rotate($00deg)":1,"skew($00deg)":1}},r=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var e=document.createElement("c").style;for(var t in e)if("string"==typeof e[t]){var n=t.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()}));o.hasOwnProperty(n)||(o[n]=1)}}this.completionsDefined=!0},this.getCompletions=function(e,t,n,i){if(this.completionsDefined||this.defineCompletions(),"ruleset"===e||"ace/mode/scss"==t.$mode.$id){var o=t.getLine(n.row).substr(0,n.column);return/:[^;]+$/.test(o)?(/([\w\-]+):[^:]*$/.test(o),this.getPropertyValueCompletions(e,t,n,i)):this.getPropertyCompletions(e,t,n,i)}return[]},this.getPropertyCompletions=function(e,t,n,i){return Object.keys(o).map((function(e){return{caption:e,snippet:e+": $0;",meta:"property",score:1e6}}))},this.getPropertyValueCompletions=function(e,t,i,r){var s=t.getLine(i.row).substr(0,i.column),a=(/([\w\-]+):[^:]*$/.exec(s)||{})[1];if(!a)return[];var l=[];return a in o&&"object"===n(o[a])&&(l=Object.keys(o[a])),l.map((function(e){return{caption:e,snippet:e,meta:"property value",score:1e6}}))}}).call(r.prototype),t.CssCompletions=r})),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],(function(e,t,n){"use strict";var i=e("../../lib/oop"),o=(e("../behaviour").Behaviour,e("./cstyle").CstyleBehaviour),r=e("../../token_iterator").TokenIterator,s=function(){this.inherit(o),this.add("colon","insertion",(function(e,t,n,i,o){if(":"===o&&n.selection.isEmpty()){var s=n.getCursorPosition(),a=new r(i,s.row,s.column),l=a.getCurrentToken();if(l&&l.value.match(/\s+/)&&(l=a.stepBackward()),l&&"support.type"===l.type){var c=i.doc.getLine(s.row);if(":"===c.substring(s.column,s.column+1))return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(c.substring(s.column)))return{text:":;",selection:[1,1]}}}})),this.add("colon","deletion",(function(e,t,n,i,o){var s=i.doc.getTextRange(o);if(!o.isMultiLine()&&":"===s){var a=n.getCursorPosition(),l=new r(i,a.row,a.column),c=l.getCurrentToken();if(c&&c.value.match(/\s+/)&&(c=l.stepBackward()),c&&"support.type"===c.type)if(";"===i.doc.getLine(o.start.row).substring(o.end.column,o.end.column+1))return o.end.column++,o}})),this.add("semicolon","insertion",(function(e,t,n,i,o){if(";"===o&&n.selection.isEmpty()){var r=n.getCursorPosition();if(";"===i.doc.getLine(r.row).substring(r.column,r.column+1))return{text:"",selection:[1,1]}}})),this.add("!important","insertion",(function(e,t,n,i,o){if("!"===o&&n.selection.isEmpty()){var r=n.getCursorPosition(),s=i.doc.getLine(r.row);if(/^\s*(;|}|$)/.test(s.substring(r.column)))return{text:"!important",selection:[10,10]}}}))};i.inherits(s,o),t.CssBehaviour=s})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var i=e("../../lib/oop"),o=e("../../range").Range,r=e("./fold_mode").FoldMode,s=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};i.inherits(s,r),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var i=e.getLine(n);if(this.singleLineBlockCommentRe.test(i)&&!this.startRegionRe.test(i)&&!this.tripleStarBlockCommentRe.test(i))return"";var o=this._getFoldWidgetBase(e,t,n);return!o&&this.startRegionRe.test(i)?"start":o},this.getFoldWidgetRange=function(e,t,n,i){var o,r=e.getLine(n);if(this.startRegionRe.test(r))return this.getCommentRegionBlock(e,r,n);if(o=r.match(this.foldingStartMarker)){var s=o.index;if(o[1])return this.openingBracketBlock(e,o[1],n,s);var a=e.getCommentFoldRange(n,s+o[0].length,1);return a&&!a.isMultiLine()&&(i?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}if("markbegin"!==t&&(o=r.match(this.foldingStopMarker))){s=o.index+o[0].length;return o[1]?this.closingBracketBlock(e,o[1],n,s):e.getCommentFoldRange(n,s,-1)}},this.getSectionRange=function(e,t){for(var n=e.getLine(t),i=n.search(/\S/),r=t,s=n.length,a=t+=1,l=e.getLength();++t<l;){var c=(n=e.getLine(t)).search(/\S/);if(-1!==c){if(i>c)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=r)break;if(u.isMultiLine())t=u.end.row;else if(i==c)break}a=t}}return new o(r,s,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,t,n){for(var i=t.search(/\s*$/),r=e.getLength(),s=n,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;++n<r;){t=e.getLine(n);var c=a.exec(t);if(c&&(c[1]?l--:l++,!l))break}if(n>s)return new o(s,i,n,t.length)}}.call(s.prototype)})),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=e("./text").Mode,r=e("./css_highlight_rules").CssHighlightRules,s=e("./matching_brace_outdent").MatchingBraceOutdent,a=e("../worker/worker_client").WorkerClient,l=e("./css_completions").CssCompletions,c=e("./behaviour/css").CssBehaviour,u=e("./folding/cstyle").FoldMode,h=function(){this.HighlightRules=r,this.$outdent=new s,this.$behaviour=new c,this.$completer=new l,this.foldingRules=new u};i.inherits(h,o),function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,n){var i=this.$getIndent(t),o=this.getTokenizer().getLineTokens(t,e).tokens;return o.length&&"comment"==o[o.length-1].type||t.match(/^.*\{\s*$/)&&(i+=n),i},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.getCompletions=function(e,t,n,i){return this.$completer.getCompletions(e,t,n,i)},this.createWorker=function(e){var t=new a(["ace"],"ace/mode/css_worker","Worker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}.call(h.prototype),t.Mode=h})),ace.require(["ace/mode/css"],(function(i){"object"==n(e)&&"object"==n(t)&&e&&(e.exports=i)}))}).call(this,n(5)(e))},function(e,t,n){(function(e){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})(e)}ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=e("./text_highlight_rules").TextHighlightRules,r=function e(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},e.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};i.inherits(r,o),r.getTagRule=function(e){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},r.getStartRule=function(e){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:e}},r.getEndRule=function(e){return{token:"comment.doc",regex:"\\*\\/",next:e}},t.DocCommentHighlightRules=r})),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=e("./doc_comment_highlight_rules").DocCommentHighlightRules,r=e("./text_highlight_rules").TextHighlightRules,s="[a-zA-Z\\$_¡-][a-zA-Z\\d\\$_¡-]*",a=function(e){var t=this.createKeywordMapper({"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},"identifier"),n="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)";this.$rules={no_regex:[o.getStartRule("doc-start"),c("no_regex"),{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+s+")(\\.)(prototype)(\\.)("+s+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+s+")(\\.)("+s+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+s+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+s+")(\\.)("+s+")(\\s*)(=)(\\s*)(function)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function)(\\s+)("+s+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+s+")(\\s*)(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:"from(?=\\s*('|\"))"},{token:"keyword",regex:"(?:case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void)\\b",next:"start"},{token:["support.constant"],regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/},{token:t,regex:s},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+s+")(\\.)("+s+")(\\s*)(=)(\\s*)(function)(?:(\\s+)(\\w+))?(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:s},{regex:"",token:"empty",next:"no_regex"}],start:[o.getStartRule("doc-start"),c("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],function_arguments:[{token:"variable.parameter",regex:s},{token:"punctuation.operator",regex:"[, ]+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:n},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:n},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},e&&e.noES6||(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(e,t,n){if(this.next="{"==e?this.nextState:"","{"==e&&n.length)n.unshift("start",t);else if("}"==e&&n.length&&(n.shift(),this.next=n.shift(),-1!=this.next.indexOf("string")||-1!=this.next.indexOf("jsx")))return"paren.quasi.end";return"{"==e?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:n},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]}),e&&0==e.jsx||l.call(this)),this.embedRules(o,"doc-",[o.getEndRule("no_regex")]),this.normalizeRules()};function l(){var e=s.replace("\\d","\\d\\-"),t={onMatch:function(e,t,n){var i="/"==e.charAt(1)?2:1;return 1==i?(t!=this.nextState?n.unshift(this.next,this.nextState,0):n.unshift(this.next),n[2]++):2==i&&t==this.nextState&&(n[1]--,(!n[1]||n[1]<0)&&(n.shift(),n.shift())),[{type:"meta.tag.punctuation."+(1==i?"":"end-")+"tag-open.xml",value:e.slice(0,i)},{type:"meta.tag.tag-name.xml",value:e.substr(i)}]},regex:"</?"+e,next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(t);var n={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[n,t,{include:"reference"},{defaultToken:"string"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(e,t,n){return t==n[0]&&n.shift(),2==e.length&&(n[0]==this.nextState&&n[1]--,(!n[1]||n[1]<0)&&n.splice(0,2)),this.next=n[0]||"start",[{type:this.token,value:e}]},nextState:"jsx"},n,c("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:e},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},t],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function c(e){return[{token:"comment",regex:/\/\*/,next:[o.getTagRule(),{token:"comment",regex:"\\*\\/",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[o.getTagRule(),{token:"comment",regex:"$|^",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}i.inherits(a,r),t.JavaScriptHighlightRules=a})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=e("../range").Range,o=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t).match(/^(\s*\})/);if(!n)return 0;var o=n[1].length,r=e.findMatchingBracket({row:t,column:o});if(!r||r.row==t)return 0;var s=this.$getIndent(e.getLine(r.row));e.replace(new i(t,0,t,o-1),s)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(o.prototype),t.MatchingBraceOutdent=o})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var i=e("../../lib/oop"),o=e("../../range").Range,r=e("./fold_mode").FoldMode,s=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};i.inherits(s,r),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var i=e.getLine(n);if(this.singleLineBlockCommentRe.test(i)&&!this.startRegionRe.test(i)&&!this.tripleStarBlockCommentRe.test(i))return"";var o=this._getFoldWidgetBase(e,t,n);return!o&&this.startRegionRe.test(i)?"start":o},this.getFoldWidgetRange=function(e,t,n,i){var o,r=e.getLine(n);if(this.startRegionRe.test(r))return this.getCommentRegionBlock(e,r,n);if(o=r.match(this.foldingStartMarker)){var s=o.index;if(o[1])return this.openingBracketBlock(e,o[1],n,s);var a=e.getCommentFoldRange(n,s+o[0].length,1);return a&&!a.isMultiLine()&&(i?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}if("markbegin"!==t&&(o=r.match(this.foldingStopMarker))){s=o.index+o[0].length;return o[1]?this.closingBracketBlock(e,o[1],n,s):e.getCommentFoldRange(n,s,-1)}},this.getSectionRange=function(e,t){for(var n=e.getLine(t),i=n.search(/\S/),r=t,s=n.length,a=t+=1,l=e.getLength();++t<l;){var c=(n=e.getLine(t)).search(/\S/);if(-1!==c){if(i>c)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=r)break;if(u.isMultiLine())t=u.end.row;else if(i==c)break}a=t}}return new o(r,s,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,t,n){for(var i=t.search(/\s*$/),r=e.getLength(),s=n,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;++n<r;){t=e.getLine(n);var c=a.exec(t);if(c&&(c[1]?l--:l++,!l))break}if(n>s)return new o(s,i,n,t.length)}}.call(s.prototype)})),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=e("./text").Mode,r=e("./javascript_highlight_rules").JavaScriptHighlightRules,s=e("./matching_brace_outdent").MatchingBraceOutdent,a=e("../worker/worker_client").WorkerClient,l=e("./behaviour/cstyle").CstyleBehaviour,c=e("./folding/cstyle").FoldMode,u=function(){this.HighlightRules=r,this.$outdent=new s,this.$behaviour=new l,this.foldingRules=new c};i.inherits(u,o),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.getNextLineIndent=function(e,t,n){var i=this.$getIndent(t),o=this.getTokenizer().getLineTokens(t,e),r=o.tokens,s=o.state;if(r.length&&"comment"==r[r.length-1].type)return i;if("start"==e||"no_regex"==e)(a=t.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/))&&(i+=n);else if("doc-start"==e){if("start"==s||"no_regex"==s)return"";var a;(a=t.match(/^\s*(\/?)\*/))&&(a[1]&&(i+=" "),i+="* ")}return i},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){var t=new a(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}.call(u.prototype),t.Mode=u})),ace.require(["ace/mode/javascript"],(function(i){"object"==n(e)&&"object"==n(t)&&e&&(e.exports=i)}))}).call(this,n(5)(e))},function(e,t,n){(function(e){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})(e)}ace.define("ace/snippets/css",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText="snippet .\n\t${1} {\n\t\t${2}\n\t}\nsnippet !\n\t !important\nsnippet bdi:m+\n\t-moz-border-image: url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${7:stretch};\nsnippet bdi:m\n\t-moz-border-image: ${1};\nsnippet bdrz:m\n\t-moz-border-radius: ${1};\nsnippet bxsh:m+\n\t-moz-box-shadow: ${1:0} ${2:0} ${3:0} #${4:000};\nsnippet bxsh:m\n\t-moz-box-shadow: ${1};\nsnippet bdi:w+\n\t-webkit-border-image: url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${7:stretch};\nsnippet bdi:w\n\t-webkit-border-image: ${1};\nsnippet bdrz:w\n\t-webkit-border-radius: ${1};\nsnippet bxsh:w+\n\t-webkit-box-shadow: ${1:0} ${2:0} ${3:0} #${4:000};\nsnippet bxsh:w\n\t-webkit-box-shadow: ${1};\nsnippet @f\n\t@font-face {\n\t\tfont-family: ${1};\n\t\tsrc: url(${2});\n\t}\nsnippet @i\n\t@import url(${1});\nsnippet @m\n\t@media ${1:print} {\n\t\t${2}\n\t}\nsnippet bg+\n\tbackground: #${1:FFF} url(${2}) ${3:0} ${4:0} ${5:no-repeat};\nsnippet bga\n\tbackground-attachment: ${1};\nsnippet bga:f\n\tbackground-attachment: fixed;\nsnippet bga:s\n\tbackground-attachment: scroll;\nsnippet bgbk\n\tbackground-break: ${1};\nsnippet bgbk:bb\n\tbackground-break: bounding-box;\nsnippet bgbk:c\n\tbackground-break: continuous;\nsnippet bgbk:eb\n\tbackground-break: each-box;\nsnippet bgcp\n\tbackground-clip: ${1};\nsnippet bgcp:bb\n\tbackground-clip: border-box;\nsnippet bgcp:cb\n\tbackground-clip: content-box;\nsnippet bgcp:nc\n\tbackground-clip: no-clip;\nsnippet bgcp:pb\n\tbackground-clip: padding-box;\nsnippet bgc\n\tbackground-color: #${1:FFF};\nsnippet bgc:t\n\tbackground-color: transparent;\nsnippet bgi\n\tbackground-image: url(${1});\nsnippet bgi:n\n\tbackground-image: none;\nsnippet bgo\n\tbackground-origin: ${1};\nsnippet bgo:bb\n\tbackground-origin: border-box;\nsnippet bgo:cb\n\tbackground-origin: content-box;\nsnippet bgo:pb\n\tbackground-origin: padding-box;\nsnippet bgpx\n\tbackground-position-x: ${1};\nsnippet bgpy\n\tbackground-position-y: ${1};\nsnippet bgp\n\tbackground-position: ${1:0} ${2:0};\nsnippet bgr\n\tbackground-repeat: ${1};\nsnippet bgr:n\n\tbackground-repeat: no-repeat;\nsnippet bgr:x\n\tbackground-repeat: repeat-x;\nsnippet bgr:y\n\tbackground-repeat: repeat-y;\nsnippet bgr:r\n\tbackground-repeat: repeat;\nsnippet bgz\n\tbackground-size: ${1};\nsnippet bgz:a\n\tbackground-size: auto;\nsnippet bgz:ct\n\tbackground-size: contain;\nsnippet bgz:cv\n\tbackground-size: cover;\nsnippet bg\n\tbackground: ${1};\nsnippet bg:ie\n\tfilter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='${1}',sizingMethod='${2:crop}');\nsnippet bg:n\n\tbackground: none;\nsnippet bd+\n\tborder: ${1:1px} ${2:solid} #${3:000};\nsnippet bdb+\n\tborder-bottom: ${1:1px} ${2:solid} #${3:000};\nsnippet bdbc\n\tborder-bottom-color: #${1:000};\nsnippet bdbi\n\tborder-bottom-image: url(${1});\nsnippet bdbi:n\n\tborder-bottom-image: none;\nsnippet bdbli\n\tborder-bottom-left-image: url(${1});\nsnippet bdbli:c\n\tborder-bottom-left-image: continue;\nsnippet bdbli:n\n\tborder-bottom-left-image: none;\nsnippet bdblrz\n\tborder-bottom-left-radius: ${1};\nsnippet bdbri\n\tborder-bottom-right-image: url(${1});\nsnippet bdbri:c\n\tborder-bottom-right-image: continue;\nsnippet bdbri:n\n\tborder-bottom-right-image: none;\nsnippet bdbrrz\n\tborder-bottom-right-radius: ${1};\nsnippet bdbs\n\tborder-bottom-style: ${1};\nsnippet bdbs:n\n\tborder-bottom-style: none;\nsnippet bdbw\n\tborder-bottom-width: ${1};\nsnippet bdb\n\tborder-bottom: ${1};\nsnippet bdb:n\n\tborder-bottom: none;\nsnippet bdbk\n\tborder-break: ${1};\nsnippet bdbk:c\n\tborder-break: close;\nsnippet bdcl\n\tborder-collapse: ${1};\nsnippet bdcl:c\n\tborder-collapse: collapse;\nsnippet bdcl:s\n\tborder-collapse: separate;\nsnippet bdc\n\tborder-color: #${1:000};\nsnippet bdci\n\tborder-corner-image: url(${1});\nsnippet bdci:c\n\tborder-corner-image: continue;\nsnippet bdci:n\n\tborder-corner-image: none;\nsnippet bdf\n\tborder-fit: ${1};\nsnippet bdf:c\n\tborder-fit: clip;\nsnippet bdf:of\n\tborder-fit: overwrite;\nsnippet bdf:ow\n\tborder-fit: overwrite;\nsnippet bdf:r\n\tborder-fit: repeat;\nsnippet bdf:sc\n\tborder-fit: scale;\nsnippet bdf:sp\n\tborder-fit: space;\nsnippet bdf:st\n\tborder-fit: stretch;\nsnippet bdi\n\tborder-image: url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${7:stretch};\nsnippet bdi:n\n\tborder-image: none;\nsnippet bdl+\n\tborder-left: ${1:1px} ${2:solid} #${3:000};\nsnippet bdlc\n\tborder-left-color: #${1:000};\nsnippet bdli\n\tborder-left-image: url(${1});\nsnippet bdli:n\n\tborder-left-image: none;\nsnippet bdls\n\tborder-left-style: ${1};\nsnippet bdls:n\n\tborder-left-style: none;\nsnippet bdlw\n\tborder-left-width: ${1};\nsnippet bdl\n\tborder-left: ${1};\nsnippet bdl:n\n\tborder-left: none;\nsnippet bdlt\n\tborder-length: ${1};\nsnippet bdlt:a\n\tborder-length: auto;\nsnippet bdrz\n\tborder-radius: ${1};\nsnippet bdr+\n\tborder-right: ${1:1px} ${2:solid} #${3:000};\nsnippet bdrc\n\tborder-right-color: #${1:000};\nsnippet bdri\n\tborder-right-image: url(${1});\nsnippet bdri:n\n\tborder-right-image: none;\nsnippet bdrs\n\tborder-right-style: ${1};\nsnippet bdrs:n\n\tborder-right-style: none;\nsnippet bdrw\n\tborder-right-width: ${1};\nsnippet bdr\n\tborder-right: ${1};\nsnippet bdr:n\n\tborder-right: none;\nsnippet bdsp\n\tborder-spacing: ${1};\nsnippet bds\n\tborder-style: ${1};\nsnippet bds:ds\n\tborder-style: dashed;\nsnippet bds:dtds\n\tborder-style: dot-dash;\nsnippet bds:dtdtds\n\tborder-style: dot-dot-dash;\nsnippet bds:dt\n\tborder-style: dotted;\nsnippet bds:db\n\tborder-style: double;\nsnippet bds:g\n\tborder-style: groove;\nsnippet bds:h\n\tborder-style: hidden;\nsnippet bds:i\n\tborder-style: inset;\nsnippet bds:n\n\tborder-style: none;\nsnippet bds:o\n\tborder-style: outset;\nsnippet bds:r\n\tborder-style: ridge;\nsnippet bds:s\n\tborder-style: solid;\nsnippet bds:w\n\tborder-style: wave;\nsnippet bdt+\n\tborder-top: ${1:1px} ${2:solid} #${3:000};\nsnippet bdtc\n\tborder-top-color: #${1:000};\nsnippet bdti\n\tborder-top-image: url(${1});\nsnippet bdti:n\n\tborder-top-image: none;\nsnippet bdtli\n\tborder-top-left-image: url(${1});\nsnippet bdtli:c\n\tborder-corner-image: continue;\nsnippet bdtli:n\n\tborder-corner-image: none;\nsnippet bdtlrz\n\tborder-top-left-radius: ${1};\nsnippet bdtri\n\tborder-top-right-image: url(${1});\nsnippet bdtri:c\n\tborder-top-right-image: continue;\nsnippet bdtri:n\n\tborder-top-right-image: none;\nsnippet bdtrrz\n\tborder-top-right-radius: ${1};\nsnippet bdts\n\tborder-top-style: ${1};\nsnippet bdts:n\n\tborder-top-style: none;\nsnippet bdtw\n\tborder-top-width: ${1};\nsnippet bdt\n\tborder-top: ${1};\nsnippet bdt:n\n\tborder-top: none;\nsnippet bdw\n\tborder-width: ${1};\nsnippet bd\n\tborder: ${1};\nsnippet bd:n\n\tborder: none;\nsnippet b\n\tbottom: ${1};\nsnippet b:a\n\tbottom: auto;\nsnippet bxsh+\n\tbox-shadow: ${1:0} ${2:0} ${3:0} #${4:000};\nsnippet bxsh\n\tbox-shadow: ${1};\nsnippet bxsh:n\n\tbox-shadow: none;\nsnippet bxz\n\tbox-sizing: ${1};\nsnippet bxz:bb\n\tbox-sizing: border-box;\nsnippet bxz:cb\n\tbox-sizing: content-box;\nsnippet cps\n\tcaption-side: ${1};\nsnippet cps:b\n\tcaption-side: bottom;\nsnippet cps:t\n\tcaption-side: top;\nsnippet cl\n\tclear: ${1};\nsnippet cl:b\n\tclear: both;\nsnippet cl:l\n\tclear: left;\nsnippet cl:n\n\tclear: none;\nsnippet cl:r\n\tclear: right;\nsnippet cp\n\tclip: ${1};\nsnippet cp:a\n\tclip: auto;\nsnippet cp:r\n\tclip: rect(${1:0} ${2:0} ${3:0} ${4:0});\nsnippet c\n\tcolor: #${1:000};\nsnippet ct\n\tcontent: ${1};\nsnippet ct:a\n\tcontent: attr(${1});\nsnippet ct:cq\n\tcontent: close-quote;\nsnippet ct:c\n\tcontent: counter(${1});\nsnippet ct:cs\n\tcontent: counters(${1});\nsnippet ct:ncq\n\tcontent: no-close-quote;\nsnippet ct:noq\n\tcontent: no-open-quote;\nsnippet ct:n\n\tcontent: normal;\nsnippet ct:oq\n\tcontent: open-quote;\nsnippet coi\n\tcounter-increment: ${1};\nsnippet cor\n\tcounter-reset: ${1};\nsnippet cur\n\tcursor: ${1};\nsnippet cur:a\n\tcursor: auto;\nsnippet cur:c\n\tcursor: crosshair;\nsnippet cur:d\n\tcursor: default;\nsnippet cur:ha\n\tcursor: hand;\nsnippet cur:he\n\tcursor: help;\nsnippet cur:m\n\tcursor: move;\nsnippet cur:p\n\tcursor: pointer;\nsnippet cur:t\n\tcursor: text;\nsnippet d\n\tdisplay: ${1};\nsnippet d:mib\n\tdisplay: -moz-inline-box;\nsnippet d:mis\n\tdisplay: -moz-inline-stack;\nsnippet d:b\n\tdisplay: block;\nsnippet d:cp\n\tdisplay: compact;\nsnippet d:ib\n\tdisplay: inline-block;\nsnippet d:itb\n\tdisplay: inline-table;\nsnippet d:i\n\tdisplay: inline;\nsnippet d:li\n\tdisplay: list-item;\nsnippet d:n\n\tdisplay: none;\nsnippet d:ri\n\tdisplay: run-in;\nsnippet d:tbcp\n\tdisplay: table-caption;\nsnippet d:tbc\n\tdisplay: table-cell;\nsnippet d:tbclg\n\tdisplay: table-column-group;\nsnippet d:tbcl\n\tdisplay: table-column;\nsnippet d:tbfg\n\tdisplay: table-footer-group;\nsnippet d:tbhg\n\tdisplay: table-header-group;\nsnippet d:tbrg\n\tdisplay: table-row-group;\nsnippet d:tbr\n\tdisplay: table-row;\nsnippet d:tb\n\tdisplay: table;\nsnippet ec\n\tempty-cells: ${1};\nsnippet ec:h\n\tempty-cells: hide;\nsnippet ec:s\n\tempty-cells: show;\nsnippet exp\n\texpression()\nsnippet fl\n\tfloat: ${1};\nsnippet fl:l\n\tfloat: left;\nsnippet fl:n\n\tfloat: none;\nsnippet fl:r\n\tfloat: right;\nsnippet f+\n\tfont: ${1:1em} ${2:Arial},${3:sans-serif};\nsnippet fef\n\tfont-effect: ${1};\nsnippet fef:eb\n\tfont-effect: emboss;\nsnippet fef:eg\n\tfont-effect: engrave;\nsnippet fef:n\n\tfont-effect: none;\nsnippet fef:o\n\tfont-effect: outline;\nsnippet femp\n\tfont-emphasize-position: ${1};\nsnippet femp:a\n\tfont-emphasize-position: after;\nsnippet femp:b\n\tfont-emphasize-position: before;\nsnippet fems\n\tfont-emphasize-style: ${1};\nsnippet fems:ac\n\tfont-emphasize-style: accent;\nsnippet fems:c\n\tfont-emphasize-style: circle;\nsnippet fems:ds\n\tfont-emphasize-style: disc;\nsnippet fems:dt\n\tfont-emphasize-style: dot;\nsnippet fems:n\n\tfont-emphasize-style: none;\nsnippet fem\n\tfont-emphasize: ${1};\nsnippet ff\n\tfont-family: ${1};\nsnippet ff:c\n\tfont-family: ${1:'Monotype Corsiva','Comic Sans MS'},cursive;\nsnippet ff:f\n\tfont-family: ${1:Capitals,Impact},fantasy;\nsnippet ff:m\n\tfont-family: ${1:Monaco,'Courier New'},monospace;\nsnippet ff:ss\n\tfont-family: ${1:Helvetica,Arial},sans-serif;\nsnippet ff:s\n\tfont-family: ${1:Georgia,'Times New Roman'},serif;\nsnippet fza\n\tfont-size-adjust: ${1};\nsnippet fza:n\n\tfont-size-adjust: none;\nsnippet fz\n\tfont-size: ${1};\nsnippet fsm\n\tfont-smooth: ${1};\nsnippet fsm:aw\n\tfont-smooth: always;\nsnippet fsm:a\n\tfont-smooth: auto;\nsnippet fsm:n\n\tfont-smooth: never;\nsnippet fst\n\tfont-stretch: ${1};\nsnippet fst:c\n\tfont-stretch: condensed;\nsnippet fst:e\n\tfont-stretch: expanded;\nsnippet fst:ec\n\tfont-stretch: extra-condensed;\nsnippet fst:ee\n\tfont-stretch: extra-expanded;\nsnippet fst:n\n\tfont-stretch: normal;\nsnippet fst:sc\n\tfont-stretch: semi-condensed;\nsnippet fst:se\n\tfont-stretch: semi-expanded;\nsnippet fst:uc\n\tfont-stretch: ultra-condensed;\nsnippet fst:ue\n\tfont-stretch: ultra-expanded;\nsnippet fs\n\tfont-style: ${1};\nsnippet fs:i\n\tfont-style: italic;\nsnippet fs:n\n\tfont-style: normal;\nsnippet fs:o\n\tfont-style: oblique;\nsnippet fv\n\tfont-variant: ${1};\nsnippet fv:n\n\tfont-variant: normal;\nsnippet fv:sc\n\tfont-variant: small-caps;\nsnippet fw\n\tfont-weight: ${1};\nsnippet fw:b\n\tfont-weight: bold;\nsnippet fw:br\n\tfont-weight: bolder;\nsnippet fw:lr\n\tfont-weight: lighter;\nsnippet fw:n\n\tfont-weight: normal;\nsnippet f\n\tfont: ${1};\nsnippet h\n\theight: ${1};\nsnippet h:a\n\theight: auto;\nsnippet l\n\tleft: ${1};\nsnippet l:a\n\tleft: auto;\nsnippet lts\n\tletter-spacing: ${1};\nsnippet lh\n\tline-height: ${1};\nsnippet lisi\n\tlist-style-image: url(${1});\nsnippet lisi:n\n\tlist-style-image: none;\nsnippet lisp\n\tlist-style-position: ${1};\nsnippet lisp:i\n\tlist-style-position: inside;\nsnippet lisp:o\n\tlist-style-position: outside;\nsnippet list\n\tlist-style-type: ${1};\nsnippet list:c\n\tlist-style-type: circle;\nsnippet list:dclz\n\tlist-style-type: decimal-leading-zero;\nsnippet list:dc\n\tlist-style-type: decimal;\nsnippet list:d\n\tlist-style-type: disc;\nsnippet list:lr\n\tlist-style-type: lower-roman;\nsnippet list:n\n\tlist-style-type: none;\nsnippet list:s\n\tlist-style-type: square;\nsnippet list:ur\n\tlist-style-type: upper-roman;\nsnippet lis\n\tlist-style: ${1};\nsnippet lis:n\n\tlist-style: none;\nsnippet mb\n\tmargin-bottom: ${1};\nsnippet mb:a\n\tmargin-bottom: auto;\nsnippet ml\n\tmargin-left: ${1};\nsnippet ml:a\n\tmargin-left: auto;\nsnippet mr\n\tmargin-right: ${1};\nsnippet mr:a\n\tmargin-right: auto;\nsnippet mt\n\tmargin-top: ${1};\nsnippet mt:a\n\tmargin-top: auto;\nsnippet m\n\tmargin: ${1};\nsnippet m:4\n\tmargin: ${1:0} ${2:0} ${3:0} ${4:0};\nsnippet m:3\n\tmargin: ${1:0} ${2:0} ${3:0};\nsnippet m:2\n\tmargin: ${1:0} ${2:0};\nsnippet m:0\n\tmargin: 0;\nsnippet m:a\n\tmargin: auto;\nsnippet mah\n\tmax-height: ${1};\nsnippet mah:n\n\tmax-height: none;\nsnippet maw\n\tmax-width: ${1};\nsnippet maw:n\n\tmax-width: none;\nsnippet mih\n\tmin-height: ${1};\nsnippet miw\n\tmin-width: ${1};\nsnippet op\n\topacity: ${1};\nsnippet op:ie\n\tfilter: progid:DXImageTransform.Microsoft.Alpha(Opacity=${1:100});\nsnippet op:ms\n\t-ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=${1:100})';\nsnippet orp\n\torphans: ${1};\nsnippet o+\n\toutline: ${1:1px} ${2:solid} #${3:000};\nsnippet oc\n\toutline-color: ${1:#000};\nsnippet oc:i\n\toutline-color: invert;\nsnippet oo\n\toutline-offset: ${1};\nsnippet os\n\toutline-style: ${1};\nsnippet ow\n\toutline-width: ${1};\nsnippet o\n\toutline: ${1};\nsnippet o:n\n\toutline: none;\nsnippet ovs\n\toverflow-style: ${1};\nsnippet ovs:a\n\toverflow-style: auto;\nsnippet ovs:mq\n\toverflow-style: marquee;\nsnippet ovs:mv\n\toverflow-style: move;\nsnippet ovs:p\n\toverflow-style: panner;\nsnippet ovs:s\n\toverflow-style: scrollbar;\nsnippet ovx\n\toverflow-x: ${1};\nsnippet ovx:a\n\toverflow-x: auto;\nsnippet ovx:h\n\toverflow-x: hidden;\nsnippet ovx:s\n\toverflow-x: scroll;\nsnippet ovx:v\n\toverflow-x: visible;\nsnippet ovy\n\toverflow-y: ${1};\nsnippet ovy:a\n\toverflow-y: auto;\nsnippet ovy:h\n\toverflow-y: hidden;\nsnippet ovy:s\n\toverflow-y: scroll;\nsnippet ovy:v\n\toverflow-y: visible;\nsnippet ov\n\toverflow: ${1};\nsnippet ov:a\n\toverflow: auto;\nsnippet ov:h\n\toverflow: hidden;\nsnippet ov:s\n\toverflow: scroll;\nsnippet ov:v\n\toverflow: visible;\nsnippet pb\n\tpadding-bottom: ${1};\nsnippet pl\n\tpadding-left: ${1};\nsnippet pr\n\tpadding-right: ${1};\nsnippet pt\n\tpadding-top: ${1};\nsnippet p\n\tpadding: ${1};\nsnippet p:4\n\tpadding: ${1:0} ${2:0} ${3:0} ${4:0};\nsnippet p:3\n\tpadding: ${1:0} ${2:0} ${3:0};\nsnippet p:2\n\tpadding: ${1:0} ${2:0};\nsnippet p:0\n\tpadding: 0;\nsnippet pgba\n\tpage-break-after: ${1};\nsnippet pgba:aw\n\tpage-break-after: always;\nsnippet pgba:a\n\tpage-break-after: auto;\nsnippet pgba:l\n\tpage-break-after: left;\nsnippet pgba:r\n\tpage-break-after: right;\nsnippet pgbb\n\tpage-break-before: ${1};\nsnippet pgbb:aw\n\tpage-break-before: always;\nsnippet pgbb:a\n\tpage-break-before: auto;\nsnippet pgbb:l\n\tpage-break-before: left;\nsnippet pgbb:r\n\tpage-break-before: right;\nsnippet pgbi\n\tpage-break-inside: ${1};\nsnippet pgbi:a\n\tpage-break-inside: auto;\nsnippet pgbi:av\n\tpage-break-inside: avoid;\nsnippet pos\n\tposition: ${1};\nsnippet pos:a\n\tposition: absolute;\nsnippet pos:f\n\tposition: fixed;\nsnippet pos:r\n\tposition: relative;\nsnippet pos:s\n\tposition: static;\nsnippet q\n\tquotes: ${1};\nsnippet q:en\n\tquotes: '\\201C' '\\201D' '\\2018' '\\2019';\nsnippet q:n\n\tquotes: none;\nsnippet q:ru\n\tquotes: '\\00AB' '\\00BB' '\\201E' '\\201C';\nsnippet rz\n\tresize: ${1};\nsnippet rz:b\n\tresize: both;\nsnippet rz:h\n\tresize: horizontal;\nsnippet rz:n\n\tresize: none;\nsnippet rz:v\n\tresize: vertical;\nsnippet r\n\tright: ${1};\nsnippet r:a\n\tright: auto;\nsnippet tbl\n\ttable-layout: ${1};\nsnippet tbl:a\n\ttable-layout: auto;\nsnippet tbl:f\n\ttable-layout: fixed;\nsnippet tal\n\ttext-align-last: ${1};\nsnippet tal:a\n\ttext-align-last: auto;\nsnippet tal:c\n\ttext-align-last: center;\nsnippet tal:l\n\ttext-align-last: left;\nsnippet tal:r\n\ttext-align-last: right;\nsnippet ta\n\ttext-align: ${1};\nsnippet ta:c\n\ttext-align: center;\nsnippet ta:l\n\ttext-align: left;\nsnippet ta:r\n\ttext-align: right;\nsnippet td\n\ttext-decoration: ${1};\nsnippet td:l\n\ttext-decoration: line-through;\nsnippet td:n\n\ttext-decoration: none;\nsnippet td:o\n\ttext-decoration: overline;\nsnippet td:u\n\ttext-decoration: underline;\nsnippet te\n\ttext-emphasis: ${1};\nsnippet te:ac\n\ttext-emphasis: accent;\nsnippet te:a\n\ttext-emphasis: after;\nsnippet te:b\n\ttext-emphasis: before;\nsnippet te:c\n\ttext-emphasis: circle;\nsnippet te:ds\n\ttext-emphasis: disc;\nsnippet te:dt\n\ttext-emphasis: dot;\nsnippet te:n\n\ttext-emphasis: none;\nsnippet th\n\ttext-height: ${1};\nsnippet th:a\n\ttext-height: auto;\nsnippet th:f\n\ttext-height: font-size;\nsnippet th:m\n\ttext-height: max-size;\nsnippet th:t\n\ttext-height: text-size;\nsnippet ti\n\ttext-indent: ${1};\nsnippet ti:-\n\ttext-indent: -9999px;\nsnippet tj\n\ttext-justify: ${1};\nsnippet tj:a\n\ttext-justify: auto;\nsnippet tj:d\n\ttext-justify: distribute;\nsnippet tj:ic\n\ttext-justify: inter-cluster;\nsnippet tj:ii\n\ttext-justify: inter-ideograph;\nsnippet tj:iw\n\ttext-justify: inter-word;\nsnippet tj:k\n\ttext-justify: kashida;\nsnippet tj:t\n\ttext-justify: tibetan;\nsnippet to+\n\ttext-outline: ${1:0} ${2:0} #${3:000};\nsnippet to\n\ttext-outline: ${1};\nsnippet to:n\n\ttext-outline: none;\nsnippet tr\n\ttext-replace: ${1};\nsnippet tr:n\n\ttext-replace: none;\nsnippet tsh+\n\ttext-shadow: ${1:0} ${2:0} ${3:0} #${4:000};\nsnippet tsh\n\ttext-shadow: ${1};\nsnippet tsh:n\n\ttext-shadow: none;\nsnippet tt\n\ttext-transform: ${1};\nsnippet tt:c\n\ttext-transform: capitalize;\nsnippet tt:l\n\ttext-transform: lowercase;\nsnippet tt:n\n\ttext-transform: none;\nsnippet tt:u\n\ttext-transform: uppercase;\nsnippet tw\n\ttext-wrap: ${1};\nsnippet tw:no\n\ttext-wrap: none;\nsnippet tw:n\n\ttext-wrap: normal;\nsnippet tw:s\n\ttext-wrap: suppress;\nsnippet tw:u\n\ttext-wrap: unrestricted;\nsnippet t\n\ttop: ${1};\nsnippet t:a\n\ttop: auto;\nsnippet va\n\tvertical-align: ${1};\nsnippet va:bl\n\tvertical-align: baseline;\nsnippet va:b\n\tvertical-align: bottom;\nsnippet va:m\n\tvertical-align: middle;\nsnippet va:sub\n\tvertical-align: sub;\nsnippet va:sup\n\tvertical-align: super;\nsnippet va:tb\n\tvertical-align: text-bottom;\nsnippet va:tt\n\tvertical-align: text-top;\nsnippet va:t\n\tvertical-align: top;\nsnippet v\n\tvisibility: ${1};\nsnippet v:c\n\tvisibility: collapse;\nsnippet v:h\n\tvisibility: hidden;\nsnippet v:v\n\tvisibility: visible;\nsnippet whsc\n\twhite-space-collapse: ${1};\nsnippet whsc:ba\n\twhite-space-collapse: break-all;\nsnippet whsc:bs\n\twhite-space-collapse: break-strict;\nsnippet whsc:k\n\twhite-space-collapse: keep-all;\nsnippet whsc:l\n\twhite-space-collapse: loose;\nsnippet whsc:n\n\twhite-space-collapse: normal;\nsnippet whs\n\twhite-space: ${1};\nsnippet whs:n\n\twhite-space: normal;\nsnippet whs:nw\n\twhite-space: nowrap;\nsnippet whs:pl\n\twhite-space: pre-line;\nsnippet whs:pw\n\twhite-space: pre-wrap;\nsnippet whs:p\n\twhite-space: pre;\nsnippet wid\n\twidows: ${1};\nsnippet w\n\twidth: ${1};\nsnippet w:a\n\twidth: auto;\nsnippet wob\n\tword-break: ${1};\nsnippet wob:ba\n\tword-break: break-all;\nsnippet wob:bs\n\tword-break: break-strict;\nsnippet wob:k\n\tword-break: keep-all;\nsnippet wob:l\n\tword-break: loose;\nsnippet wob:n\n\tword-break: normal;\nsnippet wos\n\tword-spacing: ${1};\nsnippet wow\n\tword-wrap: ${1};\nsnippet wow:no\n\tword-wrap: none;\nsnippet wow:n\n\tword-wrap: normal;\nsnippet wow:s\n\tword-wrap: suppress;\nsnippet wow:u\n\tword-wrap: unrestricted;\nsnippet z\n\tz-index: ${1};\nsnippet z:a\n\tz-index: auto;\nsnippet zoo\n\tzoom: 1;\n",t.scope="css"})),ace.require(["ace/snippets/css"],(function(i){"object"==n(e)&&"object"==n(t)&&e&&(e.exports=i)}))}).call(this,n(5)(e))},function(e,t,n){(function(e){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})(e)}ace.define("ace/snippets/javascript",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText='# Prototype\nsnippet proto\n\t${1:class_name}.prototype.${2:method_name} = function(${3:first_argument}) {\n\t\t${4:// body...}\n\t};\n# Function\nsnippet fun\n\tfunction ${1?:function_name}(${2:argument}) {\n\t\t${3:// body...}\n\t}\n# Anonymous Function\nregex /((=)\\s*|(:)\\s*|(\\()|\\b)/f/(\\))?/\nsnippet f\n\tfunction${M1?: ${1:functionName}}($2) {\n\t\t${0:$TM_SELECTED_TEXT}\n\t}${M2?;}${M3?,}${M4?)}\n# Immediate function\ntrigger \\(?f\\(\nendTrigger \\)?\nsnippet f(\n\t(function(${1}) {\n\t\t${0:${TM_SELECTED_TEXT:/* code */}}\n\t}(${1}));\n# if\nsnippet if\n\tif (${1:true}) {\n\t\t${0}\n\t}\n# if ... else\nsnippet ife\n\tif (${1:true}) {\n\t\t${2}\n\t} else {\n\t\t${0}\n\t}\n# tertiary conditional\nsnippet ter\n\t${1:/* condition */} ? ${2:a} : ${3:b}\n# switch\nsnippet switch\n\tswitch (${1:expression}) {\n\t\tcase \'${3:case}\':\n\t\t\t${4:// code}\n\t\t\tbreak;\n\t\t${5}\n\t\tdefault:\n\t\t\t${2:// code}\n\t}\n# case\nsnippet case\n\tcase \'${1:case}\':\n\t\t${2:// code}\n\t\tbreak;\n\t${3}\n\n# while (...) {...}\nsnippet wh\n\twhile (${1:/* condition */}) {\n\t\t${0:/* code */}\n\t}\n# try\nsnippet try\n\ttry {\n\t\t${0:/* code */}\n\t} catch (e) {}\n# do...while\nsnippet do\n\tdo {\n\t\t${2:/* code */}\n\t} while (${1:/* condition */});\n# Object Method\nsnippet :f\nregex /([,{[])|^\\s*/:f/\n\t${1:method_name}: function(${2:attribute}) {\n\t\t${0}\n\t}${3:,}\n# setTimeout function\nsnippet setTimeout\nregex /\\b/st|timeout|setTimeo?u?t?/\n\tsetTimeout(function() {${3:$TM_SELECTED_TEXT}}, ${1:10});\n# Get Elements\nsnippet gett\n\tgetElementsBy${1:TagName}(\'${2}\')${3}\n# Get Element\nsnippet get\n\tgetElementBy${1:Id}(\'${2}\')${3}\n# console.log (Firebug)\nsnippet cl\n\tconsole.log(${1});\n# return\nsnippet ret\n\treturn ${1:result}\n# for (property in object ) { ... }\nsnippet fori\n\tfor (var ${1:prop} in ${2:Things}) {\n\t\t${0:$2[$1]}\n\t}\n# hasOwnProperty\nsnippet has\n\thasOwnProperty(${1})\n# docstring\nsnippet /**\n\t/**\n\t * ${1:description}\n\t *\n\t */\nsnippet @par\nregex /^\\s*\\*\\s*/@(para?m?)?/\n\t@param {${1:type}} ${2:name} ${3:description}\nsnippet @ret\n\t@return {${1:type}} ${2:description}\n# JSON.parse\nsnippet jsonp\n\tJSON.parse(${1:jstr});\n# JSON.stringify\nsnippet jsons\n\tJSON.stringify(${1:object});\n# self-defining function\nsnippet sdf\n\tvar ${1:function_name} = function(${2:argument}) {\n\t\t${3:// initial code ...}\n\n\t\t$1 = function($2) {\n\t\t\t${4:// main code}\n\t\t};\n\t}\n# singleton\nsnippet sing\n\tfunction ${1:Singleton} (${2:argument}) {\n\t\t// the cached instance\n\t\tvar instance;\n\n\t\t// rewrite the constructor\n\t\t$1 = function $1($2) {\n\t\t\treturn instance;\n\t\t};\n\t\t\n\t\t// carry over the prototype properties\n\t\t$1.prototype = this;\n\n\t\t// the instance\n\t\tinstance = new $1();\n\n\t\t// reset the constructor pointer\n\t\tinstance.constructor = $1;\n\n\t\t${3:// code ...}\n\n\t\treturn instance;\n\t}\n# class\nsnippet class\nregex /^\\s*/clas{0,2}/\n\tvar ${1:class} = function(${20}) {\n\t\t$40$0\n\t};\n\t\n\t(function() {\n\t\t${60:this.prop = ""}\n\t}).call(${1:class}.prototype);\n\t\n\texports.${1:class} = ${1:class};\n# \nsnippet for-\n\tfor (var ${1:i} = ${2:Things}.length; ${1:i}--; ) {\n\t\t${0:${2:Things}[${1:i}];}\n\t}\n# for (...) {...}\nsnippet for\n\tfor (var ${1:i} = 0; $1 < ${2:Things}.length; $1++) {\n\t\t${3:$2[$1]}$0\n\t}\n# for (...) {...} (Improved Native For-Loop)\nsnippet forr\n\tfor (var ${1:i} = ${2:Things}.length - 1; $1 >= 0; $1--) {\n\t\t${3:$2[$1]}$0\n\t}\n\n\n#modules\nsnippet def\n\tdefine(function(require, exports, module) {\n\t"use strict";\n\tvar ${1/.*\\///} = require("${1}");\n\t\n\t$TM_SELECTED_TEXT\n\t});\nsnippet req\nguard ^\\s*\n\tvar ${1/.*\\///} = require("${1}");\n\t$0\nsnippet requ\nguard ^\\s*\n\tvar ${1/.*\\/(.)/\\u$1/} = require("${1}").${1/.*\\/(.)/\\u$1/};\n\t$0\n',t.scope="javascript"})),ace.require(["ace/snippets/javascript"],(function(i){"object"==n(e)&&"object"==n(t)&&e&&(e.exports=i)}))}).call(this,n(5)(e))},function(e,t,n){(function(e){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})(e)}ace.require(["ace/snippets/text"],(function(i){"object"==n(e)&&"object"==n(t)&&e&&(e.exports=i)}))}).call(this,n(5)(e))},function(e,t,n){(function(e){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})(e)}ace.define("ace/snippets",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/lib/dom","ace/editor"],(function(e,t,i){"use strict";var o=e("./lib/oop"),r=e("./lib/event_emitter").EventEmitter,s=e("./lib/lang"),a=e("./range").Range,l=e("./range_list").RangeList,c=e("./keyboard/hash_handler").HashHandler,u=e("./tokenizer").Tokenizer,h=e("./clipboard"),d={CURRENT_WORD:function(e){return e.session.getTextRange(e.session.getWordRange())},SELECTION:function(e,t,n){var i=e.session.getTextRange();return n?i.replace(/\n\r?([ \t]*\S)/g,"\n"+n+"$1"):i},CURRENT_LINE:function(e){return e.session.getLine(e.getCursorPosition().row)},PREV_LINE:function(e){return e.session.getLine(e.getCursorPosition().row-1)},LINE_INDEX:function(e){return e.getCursorPosition().row},LINE_NUMBER:function(e){return e.getCursorPosition().row+1},SOFT_TABS:function(e){return e.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(e){return e.session.getTabSize()},CLIPBOARD:function(e){return h.getText&&h.getText()},FILENAME:function(e){return/[^/\\]*$/.exec(this.FILEPATH(e))[0]},FILENAME_BASE:function(e){return/[^/\\]*$/.exec(this.FILEPATH(e))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(e){return this.FILEPATH(e).replace(/[^/\\]*$/,"")},FILEPATH:function(e){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(e){var t=e.session.$mode||{};return t.blockComment&&t.blockComment.start||""},BLOCK_COMMENT_END:function(e){var t=e.session.$mode||{};return t.blockComment&&t.blockComment.end||""},LINE_COMMENT:function(e){return(e.session.$mode||{}).lineCommentStart||""},CURRENT_YEAR:p.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:p.bind(null,{year:"2-digit"}),CURRENT_MONTH:p.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:p.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:p.bind(null,{month:"short"}),CURRENT_DATE:p.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:p.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:p.bind(null,{weekday:"short"}),CURRENT_HOUR:p.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:p.bind(null,{minute:"2-digit"}),CURRENT_SECOND:p.bind(null,{second:"2-digit"})};function p(e){var t=(new Date).toLocaleString("en-us",e);return 1==t.length?"0"+t:t}d.SELECTED_TEXT=d.SELECTION;var f=function(){this.snippetMap={},this.snippetNameMap={}};(function(){o.implement(this,r),this.getTokenizer=function(){return f.$tokenizer||this.createTokenizer()},this.createTokenizer=function(){function e(e){return e=e.substr(1),/^\d+$/.test(e)?[{tabstopId:parseInt(e,10)}]:[{text:e}]}function t(e){return"(?:[^\\\\"+e+"]|\\\\.)"}var n={regex:"/("+t("/")+"+)/",onMatch:function(e,t,n){var i=n[0];return i.fmtString=!0,i.guard=e.slice(1,-1),i.flag="",""},next:"formatString"};return f.$tokenizer=new u({start:[{regex:/\\./,onMatch:function(e,t,n){var i=e[1];return("}"==i&&n.length||-1!="`$\\".indexOf(i))&&(e=i),[e]}},{regex:/}/,onMatch:function(e,t,n){return[n.length?n.shift():e]}},{regex:/\$(?:\d+|\w+)/,onMatch:e},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(t,n,i){var o=e(t.substr(1));return i.unshift(o[0]),o},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+t("\\|")+"*\\|",onMatch:function(e,t,n){var i=e.slice(1,-1).replace(/\\[,|\\]|,/g,(function(e){return 2==e.length?e[1]:"\0"})).split("\0").map((function(e){return{value:e}}));return n[0].choices=i,[i[0]]},next:"start"},n,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(e,t,n){return n.length&&n[0].expectElse?(n[0].expectElse=!1,n[0].ifEnd={elseEnd:n[0]},[n[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(e,t,n){var i=e[1];return"}"==i&&n.length||-1!="`$\\".indexOf(i)?e=i:"n"==i?e="\n":"t"==i?e="\t":-1!="ulULE".indexOf(i)&&(e={changeCase:i,local:i>"a"}),[e]}},{regex:"/\\w*}",onMatch:function(e,t,n){var i=n.shift();return i&&(i.flag=e.slice(1,-1)),this.next=i&&i.tabstopId?"start":"",[i||e]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(e,t,n){return[{text:e.slice(1)}]}},{regex:/\${\w+/,onMatch:function(e,t,n){var i={text:e.slice(2)};return n.unshift(i),[i]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(e,t,n){var i=n.shift();return this.next=i&&i.tabstopId?"start":"",[i||e]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(e,t,n){return n[0].formatFunction=e.slice(2,-1),[n.shift()]},next:"formatString"},n,{regex:/:[\?\-+]?/,onMatch:function(e,t,n){"+"==e[1]&&(n[0].ifEnd=n[0]),"?"==e[1]&&(n[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]})},this.tokenizeTmSnippet=function(e,t){return this.getTokenizer().getLineTokens(e,t).tokens.map((function(e){return e.value||e}))},this.getVariableValue=function(e,t,n){if(/^\d+$/.test(t))return(this.variables.__||{})[t]||"";if(/^[A-Z]\d+$/.test(t))return(this.variables[t[0]+"__"]||{})[t.substr(1)]||"";if(t=t.replace(/^TM_/,""),!this.variables.hasOwnProperty(t))return"";var i=this.variables[t];return"function"==typeof i&&(i=this.variables[t](e,t,n)),null==i?"":i},this.variables=d,this.tmStrFormat=function(e,t,i){if(!t.fmt)return e;var o=t.flag||"",r=t.guard;r=new RegExp(r,o.replace(/[^gim]/g,""));var s="string"==typeof t.fmt?this.tokenizeTmSnippet(t.fmt,"formatString"):t.fmt,a=this;return e.replace(r,(function(){var e=a.variables.__;a.variables.__=[].slice.call(arguments);for(var t=a.resolveVariables(s,i),o="E",r=0;r<t.length;r++){var l=t[r];if("object"==n(l))if(t[r]="",l.changeCase&&l.local){var c=t[r+1];c&&"string"==typeof c&&("u"==l.changeCase?t[r]=c[0].toUpperCase():t[r]=c[0].toLowerCase(),t[r+1]=c.substr(1))}else l.changeCase&&(o=l.changeCase);else"U"==o?t[r]=l.toUpperCase():"L"==o&&(t[r]=l.toLowerCase())}return a.variables.__=e,t.join("")}))},this.tmFormatFunction=function(e,t,n){return"upcase"==t.formatFunction?e.toUpperCase():"downcase"==t.formatFunction?e.toLowerCase():e},this.resolveVariables=function(e,t){for(var n=[],i="",o=!0,r=0;r<e.length;r++){var s=e[r];if("string"!=typeof s){if(s){if(o=!1,s.fmtString){var a=e.indexOf(s,r+1);-1==a&&(a=e.length),s.fmt=e.slice(r+1,a),r=a}if(s.text){var l=this.getVariableValue(t,s.text,i)+"";s.fmtString&&(l=this.tmStrFormat(l,s,t)),s.formatFunction&&(l=this.tmFormatFunction(l,s,t)),l&&!s.ifEnd?(n.push(l),c(s)):!l&&s.ifEnd&&c(s.ifEnd)}else s.elseEnd?c(s.elseEnd):(null!=s.tabstopId||null!=s.changeCase)&&n.push(s)}}else n.push(s),"\n"==s?(o=!0,i=""):o&&(i=/^\t*/.exec(s)[0],o=/\S/.test(s))}function c(t){var n=e.indexOf(t,r+1);-1!=n&&(r=n)}return n},this.insertSnippetForSelection=function(e,t){var i=e.getCursorPosition(),o=e.session.getLine(i.row),r=e.session.getTabString(),s=o.match(/^\s*/)[0];i.column<s.length&&(s=s.slice(0,i.column)),t=t.replace(/\r/g,"");var a=this.tokenizeTmSnippet(t);a=(a=this.resolveVariables(a,e)).map((function(e){return"\n"==e?e+s:"string"==typeof e?e.replace(/\t/g,r):e}));var l=[];a.forEach((function(e,t){if("object"==n(e)){var i=e.tabstopId,o=l[i];if(o||((o=l[i]=[]).index=i,o.value="",o.parents={}),-1===o.indexOf(e)){e.choices&&!o.choices&&(o.choices=e.choices),o.push(e);var r=a.indexOf(e,t+1);if(-1!==r){var s=a.slice(t+1,r);s.some((function(e){return"object"===n(e)}))&&!o.value?o.value=s:!s.length||o.value&&"string"==typeof o.value||(o.value=s.join(""))}}}})),l.forEach((function(e){e.length=0}));var c={};function u(e){for(var t=[],i=0;i<e.length;i++){var o=e[i];if("object"==n(o)){if(c[o.tabstopId])continue;o=t[e.lastIndexOf(o,i-1)]||{tabstopId:o.tabstopId}}t[i]=o}return t}for(var h=0;h<a.length;h++){var d=a[h];if("object"==n(d)){var p=d.tabstopId,f=l[p],m=a.indexOf(d,h+1);if(c[p])c[p]===d&&(delete c[p],Object.keys(c).forEach((function(e){f.parents[e]=!0})));else{c[p]=d;var v=f.value;"string"!=typeof v?v=u(v):d.fmt&&(v=this.tmStrFormat(v,d,e)),a.splice.apply(a,[h+1,Math.max(0,m-h)].concat(v,d)),-1===f.indexOf(d)&&f.push(d)}}}var b=0,y=0,w="";a.forEach((function(e){if("string"==typeof e){var t=e.split("\n");t.length>1?(y=t[t.length-1].length,b+=t.length-1):y+=e.length,w+=e}else e&&(e.start?e.end={row:b,column:y}:e.start={row:b,column:y})}));var x=e.getSelectionRange(),S=e.session.replace(x,w),C=new g(e),k=e.inVirtualSelectionMode&&e.selection.index;C.addTabstops(l,x.start,S,k)},this.insertSnippet=function(e,t){var n=this;if(e.inVirtualSelectionMode)return n.insertSnippetForSelection(e,t);e.forEachSelection((function(){n.insertSnippetForSelection(e,t)}),null,{keepOrder:!0}),e.tabstopManager&&e.tabstopManager.tabNext()},this.$getScope=function(e){var t=e.session.$mode.$id||"";if("html"===(t=t.split("/").pop())||"php"===t){"php"!==t||e.session.$mode.inlinePhp||(t="html");var i=e.getCursorPosition(),o=e.session.getState(i.row);"object"===n(o)&&(o=o[0]),o.substring&&("js-"==o.substring(0,3)?t="javascript":"css-"==o.substring(0,4)?t="css":"php-"==o.substring(0,4)&&(t="php"))}return t},this.getActiveScopes=function(e){var t=this.$getScope(e),n=[t],i=this.snippetMap;return i[t]&&i[t].includeScopes&&n.push.apply(n,i[t].includeScopes),n.push("_"),n},this.expandWithTab=function(e,t){var n=this,i=e.forEachSelection((function(){return n.expandSnippetForSelection(e,t)}),null,{keepOrder:!0});return i&&e.tabstopManager&&e.tabstopManager.tabNext(),i},this.expandSnippetForSelection=function(e,t){var n,i=e.getCursorPosition(),o=e.session.getLine(i.row),r=o.substring(0,i.column),s=o.substr(i.column),a=this.snippetMap;return this.getActiveScopes(e).some((function(e){var t=a[e];return t&&(n=this.findMatchingSnippet(t,r,s)),!!n}),this),!!n&&(t&&t.dryRun||(e.session.doc.removeInLine(i.row,i.column-n.replaceBefore.length,i.column+n.replaceAfter.length),this.variables.M__=n.matchBefore,this.variables.T__=n.matchAfter,this.insertSnippetForSelection(e,n.content),this.variables.M__=this.variables.T__=null),!0)},this.findMatchingSnippet=function(e,t,n){for(var i=e.length;i--;){var o=e[i];if((!o.startRe||o.startRe.test(t))&&((!o.endRe||o.endRe.test(n))&&(o.startRe||o.endRe)))return o.matchBefore=o.startRe?o.startRe.exec(t):[""],o.matchAfter=o.endRe?o.endRe.exec(n):[""],o.replaceBefore=o.triggerRe?o.triggerRe.exec(t)[0]:"",o.replaceAfter=o.endTriggerRe?o.endTriggerRe.exec(n)[0]:"",o}},this.snippetMap={},this.snippetNameMap={},this.register=function(e,t){var n=this.snippetMap,i=this.snippetNameMap,o=this;function r(e){return e&&!/^\^?\(.*\)\$?$|^\\b$/.test(e)&&(e="(?:"+e+")"),e||""}function a(e,t,n){return e=r(e),t=r(t),n?(e=t+e)&&"$"!=e[e.length-1]&&(e+="$"):(e+=t)&&"^"!=e[0]&&(e="^"+e),new RegExp(e)}function l(e){e.scope||(e.scope=t||"_"),t=e.scope,n[t]||(n[t]=[],i[t]={});var r=i[t];if(e.name){var l=r[e.name];l&&o.unregister(l),r[e.name]=e}n[t].push(e),e.prefix&&(e.tabTrigger=e.prefix),!e.content&&e.body&&(e.content=Array.isArray(e.body)?e.body.join("\n"):e.body),e.tabTrigger&&!e.trigger&&(!e.guard&&/^\w/.test(e.tabTrigger)&&(e.guard="\\b"),e.trigger=s.escapeRegExp(e.tabTrigger)),(e.trigger||e.guard||e.endTrigger||e.endGuard)&&(e.startRe=a(e.trigger,e.guard,!0),e.triggerRe=new RegExp(e.trigger),e.endRe=a(e.endTrigger,e.endGuard,!0),e.endTriggerRe=new RegExp(e.endTrigger))}e||(e=[]),Array.isArray(e)?e.forEach(l):Object.keys(e).forEach((function(t){l(e[t])})),this._signal("registerSnippets",{scope:t})},this.unregister=function(e,t){var n=this.snippetMap,i=this.snippetNameMap;function o(e){var o=i[e.scope||t];if(o&&o[e.name]){delete o[e.name];var r=n[e.scope||t],s=r&&r.indexOf(e);s>=0&&r.splice(s,1)}}e.content?o(e):Array.isArray(e)&&e.forEach(o)},this.parseSnippetFile=function(e){e=e.replace(/\r/g,"");for(var t,n=[],i={},o=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm;t=o.exec(e);){if(t[1])try{i=JSON.parse(t[1]),n.push(i)}catch(e){}if(t[4])i.content=t[4].replace(/^\t/gm,""),n.push(i),i={};else{var r=t[2],s=t[3];if("regex"==r){var a=/\/((?:[^\/\\]|\\.)*)|$/g;i.guard=a.exec(s)[1],i.trigger=a.exec(s)[1],i.endTrigger=a.exec(s)[1],i.endGuard=a.exec(s)[1]}else"snippet"==r?(i.tabTrigger=s.match(/^\S*/)[0],i.name||(i.name=s)):r&&(i[r]=s)}}return n},this.getSnippetByName=function(e,t){var n,i=this.snippetNameMap;return this.getActiveScopes(t).some((function(t){var o=i[t];return o&&(n=o[e]),!!n}),this),n}}).call(f.prototype);var g=function(e){if(e.tabstopManager)return e.tabstopManager;e.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=s.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(e)};(function(){this.attach=function(e){this.index=0,this.ranges=[],this.tabstops=[],this.$openTabstops=null,this.selectedTabstop=null,this.editor=e,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},this.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges=null,this.tabstops=null,this.selectedTabstop=null,this.editor.removeListener("change",this.$onChange),this.editor.removeListener("changeSelection",this.$onChangeSelection),this.editor.removeListener("changeSession",this.$onChangeSession),this.editor.commands.removeListener("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.editor=null},this.onChange=function(e){for(var t="r"==e.action[0],n=this.selectedTabstop||{},i=n.parents||{},o=(this.tabstops||[]).slice(),r=0;r<o.length;r++){var s=o[r],a=s==n||i[s.index];if(s.rangeList.$bias=a?0:1,"remove"==e.action&&s!==n){var l=s.parents&&s.parents[n.index],c=s.rangeList.pointIndex(e.start,l);c=c<0?-c-1:c+1;var u=s.rangeList.pointIndex(e.end,l);u=u<0?-u-1:u-1;for(var h=s.rangeList.ranges.slice(c,u),d=0;d<h.length;d++)this.removeRange(h[d])}s.rangeList.$onChange(e)}var p=this.editor.session;this.$inChange||!t||1!=p.getLength()||p.getValue()||this.detach()},this.updateLinkedFields=function(){var e=this.selectedTabstop;if(e&&e.hasLinkedRanges&&e.firstNonLinked){this.$inChange=!0;for(var n=this.editor.session,i=n.getTextRange(e.firstNonLinked),o=0;o<e.length;o++){var r=e[o];if(r.linked){var s=r.original,a=t.snippetManager.tmStrFormat(i,s,this.editor);n.replace(r,a)}}this.$inChange=!1}},this.onAfterExec=function(e){e.command&&!e.command.readOnly&&this.updateLinkedFields()},this.onChangeSelection=function(){if(this.editor){for(var e=this.editor.selection.lead,t=this.editor.selection.anchor,n=this.editor.selection.isEmpty(),i=0;i<this.ranges.length;i++)if(!this.ranges[i].linked){var o=this.ranges[i].contains(e.row,e.column),r=n||this.ranges[i].contains(t.row,t.column);if(o&&r)return}this.detach()}},this.onChangeSession=function(){this.detach()},this.tabNext=function(e){var t=this.tabstops.length,n=this.index+(e||1);(n=Math.min(Math.max(n,1),t))==t&&(n=0),this.selectTabstop(n),0===n&&this.detach()},this.selectTabstop=function(e){this.$openTabstops=null;var t=this.tabstops[this.index];if(t&&this.addTabstopMarkers(t),this.index=e,(t=this.tabstops[this.index])&&t.length){this.selectedTabstop=t;var n=t.firstNonLinked||t;if(t.choices&&(n.cursor=n.start),this.editor.inVirtualSelectionMode)this.editor.selection.fromOrientedRange(n);else{var i=this.editor.multiSelect;i.toSingleRange(n);for(var o=0;o<t.length;o++)t.hasLinkedRanges&&t[o].linked||i.addRange(t[o].clone(),!0)}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand("startAutocomplete",{matches:this.selectedTabstop.choices})}},this.addTabstops=function(e,t,n){var i=this.useLink||!this.editor.getOption("enableMultiselect");if(this.$openTabstops||(this.$openTabstops=[]),!e[0]){var o=a.fromPoints(n,n);v(o.start,t),v(o.end,t),e[0]=[o],e[0].index=0}var r=[this.index+1,0],s=this.ranges;e.forEach((function(e,n){for(var o=this.$openTabstops[n]||e,c=0;c<e.length;c++){var u=e[c],h=a.fromPoints(u.start,u.end||u.start);m(h.start,t),m(h.end,t),h.original=u,h.tabstop=o,s.push(h),o!=e?o.unshift(h):o[c]=h,u.fmtString||o.firstNonLinked&&i?(h.linked=!0,o.hasLinkedRanges=!0):o.firstNonLinked||(o.firstNonLinked=h)}o.firstNonLinked||(o.hasLinkedRanges=!1),o===e&&(r.push(o),this.$openTabstops[n]=o),this.addTabstopMarkers(o),o.rangeList=o.rangeList||new l,o.rangeList.$bias=0,o.rangeList.addList(o)}),this),r.length>2&&(this.tabstops.length&&r.push(r.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,r))},this.addTabstopMarkers=function(e){var t=this.editor.session;e.forEach((function(e){e.markerId||(e.markerId=t.addMarker(e,"ace_snippet-marker","text"))}))},this.removeTabstopMarkers=function(e){var t=this.editor.session;e.forEach((function(e){t.removeMarker(e.markerId),e.markerId=null}))},this.removeRange=function(e){var t=e.tabstop.indexOf(e);-1!=t&&e.tabstop.splice(t,1),-1!=(t=this.ranges.indexOf(e))&&this.ranges.splice(t,1),-1!=(t=e.tabstop.rangeList.ranges.indexOf(e))&&e.tabstop.splice(t,1),this.editor.session.removeMarker(e.markerId),e.tabstop.length||(-1!=(t=this.tabstops.indexOf(e.tabstop))&&this.tabstops.splice(t,1),this.tabstops.length||this.detach())},this.keyboardHandler=new c,this.keyboardHandler.bindKeys({Tab:function(e){t.snippetManager&&t.snippetManager.expandWithTab(e)||(e.tabstopManager.tabNext(1),e.renderer.scrollCursorIntoView())},"Shift-Tab":function(e){e.tabstopManager.tabNext(-1),e.renderer.scrollCursorIntoView()},Esc:function(e){e.tabstopManager.detach()}})}).call(g.prototype);var m=function(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row},v=function(e,t){e.row==t.row&&(e.column-=t.column),e.row-=t.row};e("./lib/dom").importCssString(".ace_snippet-marker { -moz-box-sizing: border-box; box-sizing: border-box; background: rgba(194, 193, 208, 0.09); border: 1px dotted rgba(211, 208, 235, 0.62); position: absolute;}"),t.snippetManager=new f;var b=e("./editor").Editor;(function(){this.insertSnippet=function(e,n){return t.snippetManager.insertSnippet(this,e,n)},this.expandSnippet=function(e){return t.snippetManager.expandWithTab(this,e)}}).call(b.prototype)})),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom"],(function(e,t,n){"use strict";var i=e("../virtual_renderer").VirtualRenderer,o=e("../editor").Editor,r=e("../range").Range,s=e("../lib/event"),a=e("../lib/lang"),l=e("../lib/dom"),c=function(e){var t=new i(e);t.$maxLines=4;var n=new o(t);return n.setHighlightActiveLine(!1),n.setShowPrintMargin(!1),n.renderer.setShowGutter(!1),n.renderer.setHighlightGutterLine(!1),n.$mouseHandler.$focusTimeout=0,n.$highlightTagPending=!0,n};l.importCssString(".ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { background-color: #CAD6FA; z-index: 1;}.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { background-color: #3a674e;}.ace_editor.ace_autocomplete .ace_line-hover { border: 1px solid #abbffe; margin-top: -1px; background: rgba(233,233,253,0.4); position: absolute; z-index: 2;}.ace_dark.ace_editor.ace_autocomplete .ace_line-hover { border: 1px solid rgba(109, 150, 13, 0.8); background: rgba(58, 103, 78, 0.62);}.ace_completion-meta { opacity: 0.5; margin: 0.9em;}.ace_completion-message { color: blue;}.ace_editor.ace_autocomplete .ace_completion-highlight{ color: #2d69c7;}.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{ color: #93ca12;}.ace_editor.ace_autocomplete { width: 300px; z-index: 200000; border: 1px lightgray solid; position: fixed; box-shadow: 2px 3px 5px rgba(0,0,0,.2); line-height: 1.4; background: #fefefe; color: #111;}.ace_dark.ace_editor.ace_autocomplete { border: 1px #484747 solid; box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51); line-height: 1.4; background: #25282c; color: #c1c1c1;}","autocompletion.css"),t.AcePopup=function(e){var t=l.createElement("div"),n=new c(t);e&&e.appendChild(t),t.style.display="none",n.renderer.content.style.cursor="default",n.renderer.setStyle("ace_autocomplete"),n.setOption("displayIndentGuides",!1),n.setOption("dragDelay",150);var i,o=function(){};n.focus=o,n.$isFocused=!0,n.renderer.$cursorLayer.restartTimer=o,n.renderer.$cursorLayer.element.style.opacity=0,n.renderer.$maxLines=8,n.renderer.$keepTextAreaAtCursor=!1,n.setHighlightActiveLine(!1),n.session.highlight(""),n.session.$searchHighlight.clazz="ace_highlight-marker",n.on("mousedown",(function(e){var t=e.getDocumentPosition();n.selection.moveToPosition(t),h.start.row=h.end.row=t.row,e.stop()}));var u=new r(-1,0,-1,1/0),h=new r(-1,0,-1,1/0);h.id=n.session.addMarker(h,"ace_active-line","fullLine"),n.setSelectOnHover=function(e){e?u.id&&(n.session.removeMarker(u.id),u.id=null):u.id=n.session.addMarker(u,"ace_line-hover","fullLine")},n.setSelectOnHover(!1),n.on("mousemove",(function(e){if(i){if(i.x!=e.x||i.y!=e.y){(i=e).scrollTop=n.renderer.scrollTop;var t=i.getDocumentPosition().row;u.start.row!=t&&(u.id||n.setRow(t),p(t))}}else i=e})),n.renderer.on("beforeRender",(function(){if(i&&-1!=u.start.row){i.$pos=null;var e=i.getDocumentPosition().row;u.id||n.setRow(e),p(e,!0)}})),n.renderer.on("afterRender",(function(){var e=n.getRow(),t=n.renderer.$textLayer,i=t.element.childNodes[e-t.config.firstRow];i!==t.selectedNode&&t.selectedNode&&l.removeCssClass(t.selectedNode,"ace_selected"),t.selectedNode=i,i&&l.addCssClass(i,"ace_selected")}));var d=function(){p(-1)},p=function(e,t){e!==u.start.row&&(u.start.row=u.end.row=e,t||n.session._emit("changeBackMarker"),n._emit("changeHoverMarker"))};n.getHoveredRow=function(){return u.start.row},s.addListener(n.container,"mouseout",d),n.on("hide",d),n.on("changeSelection",d),n.session.doc.getLength=function(){return n.data.length},n.session.doc.getLine=function(e){var t=n.data[e];return"string"==typeof t?t:t&&t.value||""};var f=n.session.bgTokenizer;return f.$tokenizeRow=function(e){var t=n.data[e],i=[];if(!t)return i;"string"==typeof t&&(t={value:t});var o=t.caption||t.value||t.name;function r(e,n){e&&i.push({type:(t.className||"")+(n||""),value:e})}for(var s=o.toLowerCase(),a=(n.filterText||"").toLowerCase(),l=0,c=0,u=0;u<=a.length;u++)if(u!=c&&(t.matchMask&1<<u||u==a.length)){var h=a.slice(c,u);c=u;var d=s.indexOf(h,l);if(-1==d)continue;r(o.slice(l,d),""),l=d+h.length,r(o.slice(d,l),"completion-highlight")}return r(o.slice(l,o.length),""),t.meta&&i.push({type:"completion-meta",value:t.meta}),t.message&&i.push({type:"completion-message",value:t.message}),i},f.$updateOnChange=o,f.start=o,n.session.$computeWidth=function(){return this.screenWidth=0},n.isOpen=!1,n.isTopdown=!1,n.autoSelect=!0,n.filterText="",n.data=[],n.setData=function(e,t){n.filterText=t||"",n.setValue(a.stringRepeat("\n",e.length),-1),n.data=e||[],n.setRow(0)},n.getData=function(e){return n.data[e]},n.getRow=function(){return h.start.row},n.setRow=function(e){e=Math.max(this.autoSelect?0:-1,Math.min(this.data.length,e)),h.start.row!=e&&(n.selection.clearSelection(),h.start.row=h.end.row=e||0,n.session._emit("changeBackMarker"),n.moveCursorTo(e||0,0),n.isOpen&&n._signal("select"))},n.on("changeSelection",(function(){n.isOpen&&n.setRow(n.selection.lead.row),n.renderer.scrollCursorIntoView()})),n.hide=function(){this.container.style.display="none",this._signal("hide"),n.isOpen=!1},n.show=function(e,t,o){var r=this.container,s=window.innerHeight,a=window.innerWidth,l=this.renderer,c=l.$maxLines*t*1.4,u=e.top+this.$borderSize;u>s/2&&!o&&u+t+c>s?(l.$maxPixelHeight=u-2*this.$borderSize,r.style.top="",r.style.bottom=s-u+"px",n.isTopdown=!1):(u+=t,l.$maxPixelHeight=s-u-.2*t,r.style.top=u+"px",r.style.bottom="",n.isTopdown=!0),r.style.display="";var h=e.left;h+r.offsetWidth>a&&(h=a-r.offsetWidth),r.style.left=h+"px",this._signal("show"),i=null,n.isOpen=!0},n.goTo=function(e){var t=this.getRow(),n=this.session.getLength()-1;switch(e){case"up":t=t<=0?n:t-1;break;case"down":t=t>=n?-1:t+1;break;case"start":t=0;break;case"end":t=n}this.setRow(t)},n.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},n.$imageSize=0,n.$borderSize=1,n},t.$singleLineEditor=c})),ace.define("ace/autocomplete/util",["require","exports","module"],(function(e,t,n){"use strict";t.parForEach=function(e,t,n){var i=0,o=e.length;0===o&&n();for(var r=0;r<o;r++)t(e[r],(function(e,t){++i===o&&n(e,t)}))};var i=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;t.retrievePrecedingIdentifier=function(e,t,n){n=n||i;for(var o=[],r=t-1;r>=0&&n.test(e[r]);r--)o.push(e[r]);return o.reverse().join("")},t.retrieveFollowingIdentifier=function(e,t,n){n=n||i;for(var o=[],r=t;r<e.length&&n.test(e[r]);r++)o.push(e[r]);return o},t.getCompletionPrefix=function(e){var t,n=e.getCursorPosition(),i=e.session.getLine(n.row);return e.completers.forEach(function(e){e.identifierRegexps&&e.identifierRegexps.forEach(function(e){!t&&e&&(t=this.retrievePrecedingIdentifier(i,n.column,e))}.bind(this))}.bind(this)),t||this.retrievePrecedingIdentifier(i,n.column)}})),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/lang","ace/lib/dom","ace/snippets","ace/config"],(function(e,t,n){"use strict";var i=e("./keyboard/hash_handler").HashHandler,o=e("./autocomplete/popup").AcePopup,r=e("./autocomplete/util"),s=e("./lib/lang"),a=e("./lib/dom"),l=e("./snippets").snippetManager,c=e("./config"),u=function(){this.autoInsert=!1,this.autoSelect=!0,this.exactMatch=!1,this.gatherCompletionsId=0,this.keyboardHandler=new i,this.keyboardHandler.bindKeys(this.commands),this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.changeTimer=s.delayedCall(function(){this.updateCompletions(!0)}.bind(this)),this.tooltipTimer=s.delayedCall(this.updateDocTooltip.bind(this),50)};(function(){this.$init=function(){return this.popup=new o(document.body||document.documentElement),this.popup.on("click",function(e){this.insertMatch(),e.stop()}.bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.tooltipTimer.bind(null,null)),this.popup.on("select",this.tooltipTimer.bind(null,null)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup},this.getPopup=function(){return this.popup||this.$init()},this.openPopup=function(e,t,n){this.popup||this.$init(),this.popup.autoSelect=this.autoSelect,this.popup.setData(this.completions.filtered,this.completions.filterText),e.keyBinding.addKeyboardHandler(this.keyboardHandler);var i=e.renderer;if(this.popup.setRow(this.autoSelect?0:-1),n)n&&!t&&this.detach();else{this.popup.setTheme(e.getTheme()),this.popup.setFontSize(e.getFontSize());var o=i.layerConfig.lineHeight,r=i.$cursorLayer.getPixelPosition(this.base,!0);r.left-=this.popup.getTextLeftOffset();var s=e.container.getBoundingClientRect();r.top+=s.top-i.layerConfig.offset,r.left+=s.left-e.renderer.scrollLeft,r.left+=i.gutterWidth,this.popup.show(r,o)}this.changeTimer.cancel()},this.detach=function(){this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener),this.changeTimer.cancel(),this.hideDocTooltip(),this.gatherCompletionsId+=1,this.popup&&this.popup.isOpen&&this.popup.hide(),this.base&&this.base.detach(),this.activated=!1,this.completions=this.base=null},this.changeListener=function(e){var t=this.editor.selection.lead;(t.row!=this.base.row||t.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},this.blurListener=function(e){var t=document.activeElement,n=this.editor.textInput.getElement(),i=e.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(e.relatedTarget),o=this.popup&&this.popup.container;t==n||t.parentNode==o||i||t==this.tooltipNode||e.relatedTarget==n||this.detach()},this.mousedownListener=function(e){this.detach()},this.mousewheelListener=function(e){this.detach()},this.goTo=function(e){this.popup.goTo(e)},this.insertMatch=function(e,t){if(e||(e=this.popup.getData(this.popup.getRow())),!e)return!1;var n=this.completions;if(this.editor.startOperation({command:{name:"insertMatch"}}),e.completer&&e.completer.insertMatch)e.completer.insertMatch(this.editor,e);else{if(n.filterText)for(var i,o=this.editor.selection.getAllRanges(),r=0;i=o[r];r++)i.start.column-=n.filterText.length,this.editor.session.remove(i);e.snippet?l.insertSnippet(this.editor,e.snippet):this.editor.execCommand("insertstring",e.value||e)}this.completions==n&&this.detach(),this.editor.endOperation()},this.commands={Up:function(e){e.completer.goTo("up")},Down:function(e){e.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(e){e.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(e){e.completer.goTo("end")},Esc:function(e){e.completer.detach()},Return:function(e){return e.completer.insertMatch()},"Shift-Return":function(e){e.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(e){var t=e.completer.insertMatch();if(t||e.tabstopManager)return t;e.completer.goTo("down")},PageUp:function(e){e.completer.popup.gotoPageUp()},PageDown:function(e){e.completer.popup.gotoPageDown()}},this.gatherCompletions=function(e,t){var n=e.getSession(),i=e.getCursorPosition(),o=r.getCompletionPrefix(e);this.base=n.doc.createAnchor(i.row,i.column-o.length),this.base.$insertRight=!0;var s=[],a=e.completers.length;return e.completers.forEach((function(l,c){l.getCompletions(e,n,i,o,(function(n,i){!n&&i&&(s=s.concat(i)),t(null,{prefix:r.getCompletionPrefix(e),matches:s,finished:0==--a})}))})),!0},this.showPopup=function(e,t){this.editor&&this.detach(),this.activated=!0,this.editor=e,e.completer!=this&&(e.completer&&e.completer.detach(),e.completer=this),e.on("changeSelection",this.changeListener),e.on("blur",this.blurListener),e.on("mousedown",this.mousedownListener),e.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,t)},this.updateCompletions=function(e,t){if(e&&this.base&&this.completions){var n=this.editor.getCursorPosition(),i=this.editor.session.getTextRange({start:this.base,end:n});if(i==this.completions.filterText)return;return this.completions.setFilter(i),this.completions.filtered.length?1!=this.completions.filtered.length||this.completions.filtered[0].value!=i||this.completions.filtered[0].snippet?void this.openPopup(this.editor,i,e):this.detach():this.detach()}if(t&&t.matches){n=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(n.row,n.column),this.base.$insertRight=!0,this.completions=new h(t.matches),this.openPopup(this.editor,"",e)}var o=this.gatherCompletionsId;this.gatherCompletions(this.editor,function(t,n){var i=function(){if(n.finished)return this.detach()}.bind(this),r=n.prefix,s=n&&n.matches;if(!s||!s.length)return i();if(0===r.indexOf(n.prefix)&&o==this.gatherCompletionsId){this.completions=new h(s),this.exactMatch&&(this.completions.exactMatch=!0),this.completions.setFilter(r);var a=this.completions.filtered;return a.length&&(1!=a.length||a[0].value!=r||a[0].snippet)?this.autoInsert&&1==a.length&&n.finished?this.insertMatch(a[0]):void this.openPopup(this.editor,r,e):i()}}.bind(this))},this.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},this.updateDocTooltip=function(){var e=this.popup,t=e.data,n=t&&(t[e.getHoveredRow()]||t[e.getRow()]),i=null;return n&&this.editor&&this.popup.isOpen?(this.editor.completers.some((function(e){return e.getDocTooltip&&(i=e.getDocTooltip(n)),i})),i||"string"==typeof n||(i=n),"string"==typeof i&&(i={docText:i}),i&&(i.docHTML||i.docText)?void this.showDocTooltip(i):this.hideDocTooltip()):this.hideDocTooltip()},this.showDocTooltip=function(e){this.tooltipNode||(this.tooltipNode=a.createElement("div"),this.tooltipNode.className="ace_tooltip ace_doc-tooltip",this.tooltipNode.style.margin=0,this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this));var t=this.tooltipNode;e.docHTML?t.innerHTML=e.docHTML:e.docText&&(t.textContent=e.docText),t.parentNode||document.body.appendChild(t);var n=this.popup,i=n.container.getBoundingClientRect();t.style.top=n.container.style.top,t.style.bottom=n.container.style.bottom,t.style.display="block",window.innerWidth-i.right<320?i.left<320?n.isTopdown?(t.style.top=i.bottom+"px",t.style.left=i.left+"px",t.style.right="",t.style.bottom=""):(t.style.top=n.container.offsetTop-t.offsetHeight+"px",t.style.left=i.left+"px",t.style.right="",t.style.bottom=""):(t.style.right=window.innerWidth-i.left+"px",t.style.left=""):(t.style.left=i.right+1+"px",t.style.right="")},this.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),this.tooltipNode){var e=this.tooltipNode;this.editor.isFocused()||document.activeElement!=e||this.editor.focus(),this.tooltipNode=null,e.parentNode&&e.parentNode.removeChild(e)}},this.onTooltipClick=function(e){for(var t=e.target;t&&t!=this.tooltipNode;){if("A"==t.nodeName&&t.href){t.rel="noreferrer",t.target="_blank";break}t=t.parentNode}},this.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var e=this.popup.container;e&&e.parentNode&&e.parentNode.removeChild(e)}this.editor&&this.editor.completer==this&&this.editor.completer,this.popup=null}}).call(u.prototype),u.for=function(e){return e.completer||(c.get("sharedPopups")?(u.$shared||(u.$sharedInstance=new u),e.completer=u.$sharedInstance):(e.completer=new u,e.once("destroy",(function(e,t){t.completer.destroy()})))),e.completer},u.startCommand={name:"startAutocomplete",exec:function(e,t){var n=u.for(e);n.autoInsert=!1,n.autoSelect=!0,n.showPopup(e,t),n.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var h=function(e,t){this.all=e,this.filtered=e,this.filterText=t||"",this.exactMatch=!1};(function(){this.setFilter=function(e){if(e.length>this.filterText&&0===e.lastIndexOf(this.filterText,0))var t=this.filtered;else t=this.all;this.filterText=e,t=(t=this.filterCompletions(t,this.filterText)).sort((function(e,t){return t.exactMatch-e.exactMatch||t.$score-e.$score||(e.caption||e.value).localeCompare(t.caption||t.value)}));var n=null;t=t.filter((function(e){var t=e.snippet||e.caption||e.value;return t!==n&&(n=t,!0)})),this.filtered=t},this.filterCompletions=function(e,t){var n=[],i=t.toUpperCase(),o=t.toLowerCase();e:for(var r,s=0;r=e[s];s++){var a=r.caption||r.value||r.snippet;if(a){var l,c,u=-1,h=0,d=0;if(this.exactMatch){if(t!==a.substr(0,t.length))continue e}else{var p=a.toLowerCase().indexOf(o);if(p>-1)d=p;else for(var f=0;f<t.length;f++){var g=a.indexOf(o[f],u+1),m=a.indexOf(i[f],u+1);if((l=g>=0&&(m<0||g<m)?g:m)<0)continue e;(c=l-u-1)>0&&(-1===u&&(d+=10),d+=c,h|=1<<f),u=l}}r.matchMask=h,r.exactMatch=d?0:1,r.$score=(r.score||0)-d,n.push(r)}}return n}}).call(h.prototype),t.Autocomplete=u,t.FilteredList=h})),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],(function(e,t,n){var i=e("../range").Range,o=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;function r(e,t){var n=function(e,t){return e.getTextRange(i.fromPoints({row:0,column:0},t)).split(o).length-1}(e,t),r=e.getValue().split(o),s=Object.create(null),a=r[n];return r.forEach((function(e,t){if(e&&e!==a){var i=Math.abs(n-t),o=r.length-i;s[e]?s[e]=Math.max(o,s[e]):s[e]=o}})),s}t.getCompletions=function(e,t,n,i,o){var s=r(t,n);o(null,Object.keys(s).map((function(e){return{caption:e,value:e,score:s[e],meta:"local"}})))}})),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],(function(e,t,n){"use strict";var i=e("../snippets").snippetManager,o=e("../autocomplete").Autocomplete,r=e("../config"),s=e("../lib/lang"),a=e("../autocomplete/util"),l=e("../autocomplete/text_completer"),c={getCompletions:function(e,t,n,i,o){if(t.$mode.completer)return t.$mode.completer.getCompletions(e,t,n,i,o);var r=e.session.getState(n.row);o(null,t.$mode.getCompletions(r,t,n,i))}},u={getCompletions:function(e,t,n,o,r){var s=[],a=t.getTokenAt(n.row,n.column);a&&a.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?s.push("html-tag"):s=i.getActiveScopes(e);var l=i.snippetMap,c=[];s.forEach((function(e){for(var t=l[e]||[],n=t.length;n--;){var i=t[n],o=i.name||i.tabTrigger;o&&c.push({caption:o,snippet:i.content,meta:i.tabTrigger&&!i.name?i.tabTrigger+"⇥ ":"snippet",type:"snippet"})}}),this),r(null,c)},getDocTooltip:function(e){"snippet"!=e.type||e.docHTML||(e.docHTML=["<b>",s.escapeHTML(e.caption),"</b>","<hr></hr>",s.escapeHTML(e.snippet)].join(""))}},h=[u,l,c];t.setCompleters=function(e){h.length=0,e&&h.push.apply(h,e)},t.addCompleter=function(e){h.push(e)},t.textCompleter=l,t.keyWordCompleter=c,t.snippetCompleter=u;var d={name:"expandSnippet",exec:function(e){return i.expandWithTab(e)},bindKey:"Tab"},p=function(e,t){f(t.session.$mode)},f=function e(t){"string"==typeof t&&(t=r.$modes[t]),t&&(i.files||(i.files={}),g(t.$id,t.snippetFileId),t.modes&&t.modes.forEach(e))},g=function(e,t){t&&e&&!i.files[e]&&(i.files[e]={},r.loadModule(t,(function(t){t&&(i.files[e]=t,!t.snippets&&t.snippetText&&(t.snippets=i.parseSnippetFile(t.snippetText)),i.register(t.snippets||[],t.scope),t.includeScopes&&(i.snippetMap[t.scope].includeScopes=t.includeScopes,t.includeScopes.forEach((function(e){f("ace/mode/"+e)}))))})))},m=function(e){var t=e.editor,n=t.completer&&t.completer.activated;if("backspace"===e.command.name)n&&!a.getCompletionPrefix(t)&&t.completer.detach();else if("insertstring"===e.command.name){if(a.getCompletionPrefix(t)&&!n){var i=o.for(t);i.autoInsert=!1,i.showPopup(t)}}},v=e("../editor").Editor;e("../config").defineOptions(v.prototype,"editor",{enableBasicAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:h),this.commands.addCommand(o.startCommand)):this.commands.removeCommand(o.startCommand)},value:!1},enableLiveAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:h),this.commands.on("afterExec",m)):this.commands.removeListener("afterExec",m)},value:!1},enableSnippets:{set:function(e){e?(this.commands.addCommand(d),this.on("changeMode",p),p(0,this)):(this.commands.removeCommand(d),this.off("changeMode",p))},value:!1}})})),ace.require(["ace/ext/language_tools"],(function(i){"object"==n(e)&&"object"==n(t)&&e&&(e.exports=i)}))}).call(this,n(5)(e))},function(e,t,n){var i,o,r;window,o=[n(98),n(32)],void 0===(r="function"==typeof(i=function(e,t){"use strict";var n=e.create("masonry");n.compatOptions.fitWidth="isFitWidth";var i=n.prototype;return i._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var e=0;e<this.cols;e++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},i.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var e=this.items[0],n=e&&e.element;this.columnWidth=n&&t(n).outerWidth||this.containerWidth}var i=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,r=o/i,s=i-o%i;r=Math[s&&s<1?"round":"floor"](r),this.cols=Math.max(r,1)},i.getContainerWidth=function(){var e=this._getOption("fitWidth")?this.element.parentNode:this.element,n=t(e);this.containerWidth=n&&n.innerWidth},i._getItemLayoutPosition=function(e){e.getSize();var t=e.size.outerWidth%this.columnWidth,n=Math[t&&t<1?"round":"ceil"](e.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var i=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](n,e),o={x:this.columnWidth*i.col,y:i.y},r=i.y+e.size.outerHeight,s=n+i.col,a=i.col;a<s;a++)this.colYs[a]=r;return o},i._getTopColPosition=function(e){var t=this._getTopColGroup(e),n=Math.min.apply(Math,t);return{col:t.indexOf(n),y:n}},i._getTopColGroup=function(e){if(e<2)return this.colYs;for(var t=[],n=this.cols+1-e,i=0;i<n;i++)t[i]=this._getColGroupY(i,e);return t},i._getColGroupY=function(e,t){if(t<2)return this.colYs[e];var n=this.colYs.slice(e,e+t);return Math.max.apply(Math,n)},i._getHorizontalColPosition=function(e,t){var n=this.horizontalColIndex%this.cols;n=e>1&&n+e>this.cols?0:n;var i=t.size.outerWidth&&t.size.outerHeight;return this.horizontalColIndex=i?n+e:this.horizontalColIndex,{col:n,y:this._getColGroupY(n,e)}},i._manageStamp=function(e){var n=t(e),i=this._getElementOffset(e),o=this._getOption("originLeft")?i.left:i.right,r=o+n.outerWidth,s=Math.floor(o/this.columnWidth);s=Math.max(0,s);var a=Math.floor(r/this.columnWidth);a-=r%this.columnWidth?0:1,a=Math.min(this.cols-1,a);for(var l=(this._getOption("originTop")?i.top:i.bottom)+n.outerHeight,c=s;c<=a;c++)this.colYs[c]=Math.max(l,this.colYs[c])},i._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var e={height:this.maxY};return this._getOption("fitWidth")&&(e.width=this._getContainerFitWidth()),e},i._getContainerFitWidth=function(){for(var e=0,t=this.cols;--t&&0===this.colYs[t];)e++;return(this.cols-e)*this.columnWidth-this.gutter},i.needsResizeLayout=function(){var e=this.containerWidth;return this.getContainerWidth(),e!=this.containerWidth},n})?i.apply(t,o):i)||(e.exports=r)},function(e,t,n){var i,o;
27
  /*!
28
  * Outlayer v2.1.1
29
  * the brains and guts of a layout library
@@ -39,4 +39,4 @@ function so(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try
39
  object-assign
40
  (c) Sindre Sorhus
41
  @license MIT
42
- */var i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function s(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,l=s(e),c=1;c<arguments.length;c++){for(var u in n=Object(arguments[c]))o.call(n,u)&&(l[u]=n[u]);if(i){a=i(n);for(var h=0;h<a.length;h++)r.call(n,a[h])&&(l[a[h]]=n[a[h]])}}return l}},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";e.exports=function(e,t,n,i,o,r,s,a){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,i,o,r,s,a],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){var i=n(214),o=n(215);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var r={insert:"head",singleton:!1};i(o,r);e.exports=o.locals||{}},function(e,t,n){"use strict";var i,o=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},r=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),s=[];function a(e){for(var t=-1,n=0;n<s.length;n++)if(s[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},i=[],o=0;o<e.length;o++){var r=e[o],l=t.base?r[0]+t.base:r[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var h=a(u),d={css:r[1],media:r[2],sourceMap:r[3]};-1!==h?(s[h].references++,s[h].updater(d)):s.push({identifier:u,updater:m(d,t),references:1}),i.push(u)}return i}function c(e){var t=document.createElement("style"),i=e.attributes||{};if(void 0===i.nonce){var o=n.nc;o&&(i.nonce=o)}if(Object.keys(i).forEach((function(e){t.setAttribute(e,i[e])})),"function"==typeof e.insert)e.insert(t);else{var s=r(e.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(t)}return t}var u,h=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function d(e,t,n,i){var o=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(e.styleSheet)e.styleSheet.cssText=h(t,o);else{var r=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(r,s[t]):e.appendChild(r)}}function p(e,t,n){var i=n.css,o=n.media,r=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}var f=null,g=0;function m(e,t){var n,i,o;if(t.singleton){var r=g++;n=f||(f=c(t)),i=d.bind(null,n,r,!1),o=d.bind(null,n,r,!0)}else n=c(t),i=p.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var i=0;i<n.length;i++){var o=a(n[i]);s[o].references--}for(var r=l(e,t),c=0;c<n.length;c++){var u=a(n[c]);0===s[u].references&&(s[u].updater(),s.splice(u,1))}n=r}}}},function(e,t,n){"use strict";n.r(t);var i=n(79),o=n.n(i)()(!1);o.push([e.i,'.visual-portfolio-gutenberg-preview{position:relative;min-height:40px;overflow:hidden}.visual-portfolio-gutenberg-preview iframe{width:100%;max-width:none;margin:0}.visual-portfolio-gutenberg-preview-loading{min-height:150px}.visual-portfolio-gutenberg-preview-loading::after{content:"";position:absolute;display:block;top:0;right:0;bottom:0;left:0;background-color:rgba(139,139,150,0.1)}.visual-portfolio-gutenberg-preview-loading iframe{opacity:0}.visual-portfolio-gutenberg-preview-loading>.visual-portfolio-gutenberg-preview-inner{position:absolute}.visual-portfolio-gutenberg-preview-loading>.components-spinner{position:absolute;top:50%;left:50%;margin:0;transform:translateX(-50%) translateY(-50%);z-index:10}\n',""]),t.default=o},function(e,t){function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function i(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?n(Object(i),!0).forEach((function(t){o(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(0,wp.hooks.addFilter)("vpf.editor.changed-attributes","vpf/editor/changed-attributes/live-reload",(function(e){if(!e.$framePortfolio)return e;var t=!1;return Object.keys(e.attributes).forEach((function(n){var i=e.attributes[n];switch(n){case"tiles_type":case"masonry_columns":case"masonry_images_aspect_ratio":case"grid_columns":case"grid_images_aspect_ratio":case"justified_row_height":case"justified_row_height_tolerance":case"slider_effect":case"slider_speed":case"slider_autoplay":case"slider_autoplay_hover_pause":case"slider_centered_slides":case"slider_loop":case"slider_free_mode":case"slider_free_mode_sticky":case"slider_bullets_dynamic":case"items_gap":case"items_gap_vertical":e.$framePortfolio.attr("data-vp-".concat(n.replace(/_/g,"-")),i),e.$framePortfolio.vpf("init");break;case"items_style_default__align":case"items_style_fade__align":case"items_style_fly__align":case"items_style_emerge__align":var o="";["left","center","right","top-left","top-center","top-right","bottom-left","bottom-center","bottom-right"].forEach((function(e){o+="".concat(o?" ":"","vp-portfolio__item-align-").concat(e)})),e.$framePortfolio.find(".vp-portfolio__item-overlay").removeClass(o).addClass("vp-portfolio__item-align-".concat(i));break;case"filter_align":e.$framePortfolio.find(".vp-filter").removeClass("vp-filter__align-center vp-filter__align-left vp-filter__align-right").addClass("vp-filter__align-".concat(i));break;case"sort_align":e.$framePortfolio.find(".vp-sort").removeClass("vp-sort__align-center vp-sort__align-left vp-sort__align-right").addClass("vp-sort__align-".concat(i));break;case"pagination_align":e.$framePortfolio.find(".vp-pagination").removeClass("vp-pagination__align-center vp-pagination__align-left vp-pagination__align-right").addClass("vp-pagination__align-".concat(i));break;case"list_name":case"stretch":case"custom_css":break;default:t=t||e.reload}})),i(i({},e),{},{reload:t})}))},function(e,t,n){"use strict";var i={};n.r(i),n.d(i,"getPortfolioLayouts",(function(){return l}));var o={};n.r(o),n.d(o,"apiFetch",(function(){return c})),n.d(o,"setPortfolioLayouts",(function(){return u}));var r={};n.r(r),n.d(r,"API_FETCH",(function(){return d}));var s={};n.r(s),n.d(s,"getPortfolioLayouts",(function(){return f}));var a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{layouts:[]},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PORTFOLIO_LAYOUTS":return!e.layouts.length&&t.layouts&&t.layouts.length&&(e.layouts=t.layouts),e}return e};function l(e){return e.layouts}function c(e){return{type:"API_FETCH",request:e}}function u(e){return{type:"SET_PORTFOLIO_LAYOUTS",layouts:e}}var h=wp.apiFetch;function d(e){var t=e.request;return h(t).catch((function(e){return!(!e||!e.error||"no_layouts_found"!==e.error_code)&&{response:[],error:!1,success:!0}})).then((function(e){return!!(e&&e.success&&e.response)&&e.response}))}var p=regeneratorRuntime.mark(f);function f(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return"/visual-portfolio/v1/get_layouts/",t.next=3,c({path:"/visual-portfolio/v1/get_layouts/"});case 3:return e=t.sent,t.abrupt("return",u(e));case 5:case"end":return t.stop()}}),p)}(0,wp.data.registerStore)("visual-portfolio",{reducer:a,selectors:i,actions:o,controls:r,resolvers:s})},function(e,t,n){e.exports=n(270)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){e.exports=n(275)},function(e,t){function n(e){var t=0;if(0==e.length)return t;for(var n=0;n<e.length;n++){t=(t<<5)-t+e.charCodeAt(n),t&=t}return t}function i(e,t){t=t||62;var n,i=[],o="",r=e<0?"-":"";function s(e){return"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[e]}for(e=Math.abs(e);e>=t;)n=e%t,e=Math.floor(e/t),i.push(s(n));e>0&&i.push(s(e));for(var a=i.length-1;a>=0;a--)o+=i[a];return r+o}t.bitwise=n,t.binaryTransfer=i,t.unique=function(e){return i(n(e),61).replace("-","Z")},t.random=function(e){for(var t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",n="",i=e||8,o=0;o<i;o++){var r=Math.floor(Math.random()*t.length);n+=t.substring(r,r+1)}return n}},function(e,t){(0,wp.hooks.addFilter)("vpf.editor.controls-on-change","vpf/editor/controls-on-change/classic-icon-with-overlay",(function(e,t,n,i){return"items_style_default__show_icon"===t.name&&n&&!i.items_style_default__bg_color&&(e.items_style_default__bg_color="#000",e.items_style_default__text_color="#fff"),e}))},function(e,t){var n=wp.hooks.addFilter;n("vpf.editor.controls-on-change","vpf/editor/controls-on-change/link-rel",(function(e,t,n,i){return"items_click_action_url_target"===t.name&&("_blank"!==n||i.items_click_action_url_rel||(e.items_click_action_url_rel="noopener noreferrer"),"_blank"!==n&&"noopener noreferrer"===i.items_click_action_url_rel&&(e.items_click_action_url_rel="")),e}))},function(e,t){function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function i(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?n(Object(i),!0).forEach((function(t){o(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(0,wp.hooks.addFilter)("vpf.editor.controls-render-data","vpf/editor/controls-render-data/customize-controls",(function(e){return"stretch"!==e.name||window.VPSavedLayoutVariables||(e=i(i({},e),{},{skip:!0})),e}))},,function(e,t,n){"use strict";n.r(t);var i=n(17),o=(n(217),n(218)),r=n.n(o);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})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?d(e):t}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=wp.hooks.addFilter,g=wp.element.Component,m=wp.compose.createHigherOrderComponent,v=wp.data.withSelect,b={};f("editor.BlockEdit","vpf/editor/unique-block-id",m((function(e){var t=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(h,t);var n,i,o,s=u(h);function h(){var e;a(this,h);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var o=(e=s.call.apply(s,[this].concat(n))).props,r=o.attributes,l=o.clientId;return l&&r.block_id&&void 0===b[r.block_id]&&(b[r.block_id]=l),e.maybeCreateBlockId=e.maybeCreateBlockId.bind(d(e)),e}return n=h,(i=[{key:"componentDidMount",value:function(){this.maybeCreateBlockId()}},{key:"componentDidUpdate",value:function(){this.maybeCreateBlockId()}},{key:"maybeCreateBlockId",value:function(){if("visual-portfolio/block"===this.props.blockName){var e=this.props,t=e.setAttributes,n=e.attributes,i=e.clientId,o=n.block_id;if(!o||b[o]!==i){for(var s="",a=10;!s||void 0!==b[s]&&b[s]!==i&&0<a;)s=r.a.unique(i),a-=1;s&&void 0===b[s]&&(b[s]=i),s!==o&&t({block_id:s})}}}},{key:"render",value:function(){return wp.element.createElement(e,this.props)}}])&&l(n.prototype,i),o&&l(n,o),h}(g);return v((function(e,t){return{blockName:t.name}}))(t)}),"withUniqueBlockId"));n(271);var y=n(2),w=n.n(y),x=n(18),S=wp.i18n.__,C=wp.hooks.addFilter,k=wp.element,E=k.RawHTML,$=k.Fragment,_=wp.components,A=_.BaseControl,O=_.ButtonGroup,L=_.Button,R=_.TextControl;C("vpf.editor.controls-render","vpf/editor/controls-render/customize-controls",(function(e,t){if("items_count"===t.name){var n=t.description,i=t.attributes,o=t.onChange,r=!!n&&wp.element.createElement(E,null,n),s=w()("vpf-control-wrap","vpf-control-wrap-".concat(t.type)),a=parseInt(Object(x.a)(t.name,i),10);e=wp.element.createElement(A,{label:t.label,help:r,className:s},wp.element.createElement("div",null,wp.element.createElement(O,null,wp.element.createElement(L,{isSmall:!0,isPrimary:-1!==a,isPressed:-1!==a,onClick:function(){-1===a&&o(parseFloat(t.default||6))}},S("Custom Count","@@text_domain")),wp.element.createElement(L,{isSmall:!0,isPrimary:-1===a,isPressed:-1===a,onClick:function(){-1!==a&&window.confirm(S("Be careful, the output of all your items can adversely affect the performance of your site, this option may be helpful for image galleries.","@@text_domain"))&&o(-1)}},S("All Items","@@text_domain")))),-1!==a?wp.element.createElement($,null,wp.element.createElement("br",null),wp.element.createElement(R,{type:"number",min:t.min,max:t.max,step:t.step,value:a,onChange:function(e){return o(parseFloat(e))}})):"")}return e}));n(272),n(273);var T=n(82),M=n(81);function I(e){return(I="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)}function P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function D(e,t){return(D=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=B(e);if(t){var o=B(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return N(this,n)}}function N(e,t){return!t||"object"!==I(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function B(e){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var z=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&D(e,t)}(r,e);var t,n,i,o=j(r);function r(){return P(this,r),o.apply(this,arguments)}return t=r,(n=[{key:"render",value:function(){return null}}])&&F(t.prototype,n),i&&F(t,i),r}(wp.element.Component),W=wp.element.RawHTML,H=window.VPGutenbergVariables.controls,V=Object.keys(H.layout.options).map((function(e){var t=H.layout.options[e];return{isDefault:H.layout.default===t.value,name:t.value,attributes:{layout:t.value},title:t.title,icon:t.icon?{foreground:"#2540CC",src:wp.element.createElement(W,null,t.icon)}:null}}))||[],U=wp.blocks.createBlock,G={from:[{type:"block",blocks:["core/gallery"],isMatch:function(e){return e&&e.images&&e.images.length},transform:function(e){var t=e.className,n=e.images.map((function(e){return{id:parseInt(e.id,10),imgUrl:e.fullUrl,imgThumbnailUrl:e.url,title:e.caption}}));return U("visual-portfolio/block",{content_source:"images",items_count:-1,layout:"masonry",items_style_fly__align:"bottom-center",masonry_columns:parseInt(e.columns,10)||3,items_click_action:"none"===e.linkTo?"false":"url",images:n,className:t})}},{type:"block",blocks:["core/latest-posts"],transform:function(e){var t=e.className,n=e.postLayout,i=e.columns,o=void 0===i?3:i,r=e.postsToShow,s=void 0===r?6:r,a=e.displayPostContent,l=e.displayPostContentRadio,c=e.excerptLength,u=e.displayPostDate,h=e.orderBy,d=void 0===h?"date":h,p=e.order,f=void 0===p?"desc":p,g=e.categories;return U("visual-portfolio/block",{content_source:"post-based",posts_source:"post",posts_order_by:d,posts_order_direction:f,posts_taxonomies:!!g&&[g],items_count:s,layout:"grid",grid_columns:"grid"===n?o:1,items_style:"default",items_style_default__show_categories:!1,items_style_default__show_date:u?"true":"false",items_style_default__show_excerpt:a,items_style_default__excerpt_words_count:"full_post"===l?100:c,items_style_default__align:"left",items_style_default__show_read_more:a?"true":"false",className:t})}}]};function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach((function(t){Y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var X=wp.i18n.__,Q=wp.blocks,J=Q.registerBlockType,Z=Q.getCategories,ee=T.name,te=Z().some((function(e){return"media"===e.slug}));J(ee,q(q({},T),{},{category:te?T.category:"common",title:X("Visual Portfolio","@@text_domain"),description:X("Display galleries, posts and portfolio grids.","@@text_domain"),icon:{foreground:"#2540CC",src:wp.element.createElement(i.a,{width:"20",height:"20"})},keywords:[X("gallery","@@text_domain"),X("images","@@text_domain"),X("vpf","@@text_domain")],ghostkit:{supports:{styles:!0,spacings:!0,display:!0,scrollReveal:!0}},variations:V,edit:M.a,save:z,transforms:G}));var ne=n(83),ie=n(46),oe=n(45);function re(e){return(re="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)}function se(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ae(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function le(e,t){return(le=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ce(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=de(e);if(t){var o=de(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return ue(this,n)}}function ue(e,t){return!t||"object"!==re(t)&&"function"!=typeof t?he(e):t}function he(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function de(e){return(de=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var pe=wp.i18n.__,fe=wp.element,ge=fe.Component,me=fe.Fragment,ve=wp.components,be=ve.Placeholder,ye=ve.Spinner,we=ve.PanelBody,xe=ve.Button,Se=wp.data.withSelect,Ce=wp.blockEditor.InspectorControls,ke=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&le(e,t)}(s,e);var t,n,o,r=ce(s);function s(){var e;se(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=r.call.apply(r,[this].concat(n))).getSelector=e.getSelector.bind(he(e)),e}return t=s,(n=[{key:"getSelector",value:function(){var e=this.props,t=e.portfolioLayouts,n=e.setAttributes,i=e.attributes.id,o=!1,r=!1;return t?(o={"":pe("--- Select Layout ---","@@text_domain")},Object.keys(t).forEach((function(e){var n=t[e];o[" ".concat(n.id)]="".concat(n.title," (#").concat(n.id,")"),i&&parseInt(i,10)===n.id&&(r=n.edit_url)}))):i&&(o=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({}," ".concat(i),"#".concat(i))),wp.element.createElement(me,null,o?"":wp.element.createElement(ye,null),o&&Object.keys(o).length?wp.element.createElement("div",{className:"vpf-component-layout-select"},wp.element.createElement(oe.a,{value:i?" ".concat(i):"",onChange:function(e){return n({id:"".concat(parseInt(e,10))})},options:o}),r?wp.element.createElement(xe,{href:r,target:"_blank",rel:"noopener noreferrer"},wp.element.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M10 13C11.6569 13 13 11.6569 13 10C13 8.34315 11.6569 7 10 7C8.34315 7 7 8.34315 7 10C7 11.6569 8.34315 13 10 13Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),wp.element.createElement("path",{d:"M16.0545 12.4545C15.9456 12.7013 15.9131 12.9751 15.9613 13.2405C16.0094 13.5059 16.1359 13.7508 16.3245 13.9436L16.3736 13.9927C16.5258 14.1447 16.6465 14.3252 16.7288 14.5238C16.8112 14.7225 16.8536 14.9354 16.8536 15.1505C16.8536 15.3655 16.8112 15.5784 16.7288 15.7771C16.6465 15.9757 16.5258 16.1562 16.3736 16.3082C16.2217 16.4603 16.0412 16.581 15.8425 16.6634C15.6439 16.7457 15.431 16.7881 15.2159 16.7881C15.0009 16.7881 14.7879 16.7457 14.5893 16.6634C14.3906 16.581 14.2102 16.4603 14.0582 16.3082L14.0091 16.2591C13.8163 16.0705 13.5714 15.9439 13.3059 15.8958C13.0405 15.8477 12.7668 15.8802 12.52 15.9891C12.278 16.0928 12.0716 16.265 11.9263 16.4845C11.7809 16.704 11.7029 16.9613 11.7018 17.2245V17.3636C11.7018 17.7976 11.5294 18.2138 11.2225 18.5207C10.9157 18.8276 10.4994 19 10.0655 19C9.63146 19 9.21525 18.8276 8.90837 18.5207C8.60149 18.2138 8.42909 17.7976 8.42909 17.3636V17.29C8.42276 17.0192 8.3351 16.7565 8.17751 16.5362C8.01992 16.3159 7.79969 16.1481 7.54545 16.0545C7.29868 15.9456 7.02493 15.9131 6.75952 15.9613C6.4941 16.0094 6.24919 16.1359 6.05636 16.3245L6.00727 16.3736C5.8553 16.5258 5.67483 16.6465 5.47617 16.7288C5.27752 16.8112 5.06459 16.8536 4.84955 16.8536C4.6345 16.8536 4.42157 16.8112 4.22292 16.7288C4.02426 16.6465 3.84379 16.5258 3.69182 16.3736C3.53967 16.2217 3.41898 16.0412 3.33663 15.8425C3.25428 15.6439 3.21189 15.431 3.21189 15.2159C3.21189 15.0009 3.25428 14.7879 3.33663 14.5893C3.41898 14.3906 3.53967 14.2102 3.69182 14.0582L3.74091 14.0091C3.92953 13.8163 4.05606 13.5714 4.10419 13.3059C4.15231 13.0405 4.11982 12.7668 4.01091 12.52C3.90719 12.278 3.73498 12.0716 3.51547 11.9263C3.29596 11.7809 3.03873 11.7029 2.77545 11.7018H2.63636C2.20237 11.7018 1.78616 11.5294 1.47928 11.2225C1.1724 10.9157 1 10.4994 1 10.0655C1 9.63146 1.1724 9.21525 1.47928 8.90837C1.78616 8.60149 2.20237 8.42909 2.63636 8.42909H2.71C2.98081 8.42276 3.24346 8.3351 3.46379 8.17751C3.68412 8.01992 3.85195 7.79969 3.94545 7.54545C4.05437 7.29868 4.08686 7.02493 4.03873 6.75952C3.99061 6.4941 3.86408 6.24919 3.67545 6.05636L3.62636 6.00727C3.47422 5.8553 3.35352 5.67483 3.27118 5.47617C3.18883 5.27752 3.14644 5.06459 3.14644 4.84955C3.14644 4.6345 3.18883 4.42157 3.27118 4.22292C3.35352 4.02426 3.47422 3.84379 3.62636 3.69182C3.77834 3.53967 3.95881 3.41898 4.15746 3.33663C4.35611 3.25428 4.56905 3.21189 4.78409 3.21189C4.99913 3.21189 5.21207 3.25428 5.41072 3.33663C5.60937 3.41898 5.78984 3.53967 5.94182 3.69182L5.99091 3.74091C6.18374 3.92953 6.42865 4.05606 6.69406 4.10419C6.95948 4.15231 7.23322 4.11982 7.48 4.01091H7.54545C7.78745 3.90719 7.99383 3.73498 8.1392 3.51547C8.28457 3.29596 8.36259 3.03873 8.36364 2.77545V2.63636C8.36364 2.20237 8.53604 1.78616 8.84292 1.47928C9.14979 1.1724 9.56601 1 10 1C10.434 1 10.8502 1.1724 11.1571 1.47928C11.464 1.78616 11.6364 2.20237 11.6364 2.63636V2.71C11.6374 2.97328 11.7154 3.23051 11.8608 3.45002C12.0062 3.66953 12.2126 3.84174 12.4545 3.94545C12.7013 4.05437 12.9751 4.08686 13.2405 4.03873C13.5059 3.99061 13.7508 3.86408 13.9436 3.67545L13.9927 3.62636C14.1447 3.47422 14.3252 3.35352 14.5238 3.27118C14.7225 3.18883 14.9354 3.14644 15.1505 3.14644C15.3655 3.14644 15.5784 3.18883 15.7771 3.27118C15.9757 3.35352 16.1562 3.47422 16.3082 3.62636C16.4603 3.77834 16.581 3.95881 16.6634 4.15746C16.7457 4.35611 16.7881 4.56905 16.7881 4.78409C16.7881 4.99913 16.7457 5.21207 16.6634 5.41072C16.581 5.60937 16.4603 5.78984 16.3082 5.94182L16.2591 5.99091C16.0705 6.18374 15.9439 6.42865 15.8958 6.69406C15.8477 6.95948 15.8802 7.23322 15.9891 7.48V7.54545C16.0928 7.78745 16.265 7.99383 16.4845 8.1392C16.704 8.28457 16.9613 8.36259 17.2245 8.36364H17.3636C17.7976 8.36364 18.2138 8.53604 18.5207 8.84292C18.8276 9.14979 19 9.56601 19 10C19 10.434 18.8276 10.8502 18.5207 11.1571C18.2138 11.464 17.7976 11.6364 17.3636 11.6364H17.29C17.0267 11.6374 16.7695 11.7154 16.55 11.8608C16.3305 12.0062 16.1583 12.2126 16.0545 12.4545V12.4545Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))):""):"",o&&!Object.keys(o).length?pe("No saved layouts found."):"")}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.clientId,o=this.props.className,r=t.id,s=t.ghostkitClassname;return s&&(o=w()(o,s)),wp.element.createElement(me,null,wp.element.createElement(Ce,null,wp.element.createElement(we,null,this.getSelector())),
8
  * getSize v2.0.3
9
  * measure size of elements
10
  * MIT license
11
+ */window,void 0===(o="function"==typeof(i=function(){"use strict";function e(e){var t=parseFloat(e);return-1==e.indexOf("%")&&!isNaN(t)&&t}var t="undefined"==typeof console?function(){}:function(e){console.error(e)},n=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],i=n.length;function o(e){var n=getComputedStyle(e);return n||t("Style returned "+n+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),n}var s,a=!1;function l(t){if(function(){if(!a){a=!0;var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style.boxSizing="border-box";var n=document.body||document.documentElement;n.appendChild(t);var i=o(t);s=200==Math.round(e(i.width)),l.isBoxSizeOuter=s,n.removeChild(t)}}(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==r(t)&&t.nodeType){var c=o(t);if("none"==c.display)return function(){for(var e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},t=0;t<i;t++)e[n[t]]=0;return e}();var u={};u.width=t.offsetWidth,u.height=t.offsetHeight;for(var h=u.isBorderBox="border-box"==c.boxSizing,d=0;d<i;d++){var p=n[d],f=c[p],g=parseFloat(f);u[p]=isNaN(g)?0:g}var m=u.paddingLeft+u.paddingRight,v=u.paddingTop+u.paddingBottom,b=u.marginLeft+u.marginRight,y=u.marginTop+u.marginBottom,w=u.borderLeftWidth+u.borderRightWidth,x=u.borderTopWidth+u.borderBottomWidth,S=h&&s,C=e(c.width);!1!==C&&(u.width=C+(S?0:m+w));var k=e(c.height);return!1!==k&&(u.height=k+(S?0:v+x)),u.innerWidth=u.width-(m+w),u.innerHeight=u.height-(v+x),u.outerWidth=u.width+b,u.outerHeight=u.height+y,u}}return l})?i.call(t,n,t,e):i)||(e.exports=o)},function(e,t,n){var i=n(52),o=n(34),r=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var s=e[t];r.call(e,t)&&o(s,n)&&(void 0!==n||t in e)||i(e,t,n)}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){function i(e){return(i="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)}var o=n(55),r="object"==i(t)&&t&&!t.nodeType&&t,s=r&&"object"==i(e)&&e&&!e.nodeType&&e,a=s&&s.exports===r&&o.process,l=function(){try{var e=s&&s.require&&s.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=l}).call(this,n(5)(e))},function(e,t,n){var i=n(10)(n(6),"Map");e.exports=i},function(e,t,n){var i=n(62),o=n(166),r=n(20);e.exports=function(e){return r(e)?i(e,!0):o(e)}},function(e,t,n){var i=n(171),o=n(70),r=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(e){return null==e?[]:(e=Object(e),i(s(e),(function(t){return r.call(e,t)})))}:o;e.exports=a},function(e,t){e.exports=function(e,t){for(var n=-1,i=t.length,o=e.length;++n<i;)e[o+n]=t[n];return e}},function(e,t,n){var i=n(65)(Object.getPrototypeOf,Object);e.exports=i},function(e,t,n){var i=n(174),o=n(37),r=n(175),s=n(176),a=n(177),l=n(13),c=n(56),u=c(i),h=c(o),d=c(r),p=c(s),f=c(a),g=l;(i&&"[object DataView]"!=g(new i(new ArrayBuffer(1)))||o&&"[object Map]"!=g(new o)||r&&"[object Promise]"!=g(r.resolve())||s&&"[object Set]"!=g(new s)||a&&"[object WeakMap]"!=g(new a))&&(g=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,i=n?c(n):"";if(i)switch(i){case u:return"[object DataView]";case h:return"[object Map]";case d:return"[object Promise]";case p:return"[object Set]";case f:return"[object WeakMap]"}return t}),e.exports=g},function(e,t,n){var i=n(180);e.exports=function(e){var t=new e.constructor(e.byteLength);return new i(t).set(new i(e)),t}},function(e,t,n){var i=n(12),o=n(192),r=n(193),s=n(196);e.exports=function(e,t){return i(e)?e:o(e,t)?[e]:r(s(e))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return gn}));var i=n(3),o=n(4),r=n(0),s=n.n(r),a=n(77),l=n.n(a);var c=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(i);try{var r=105===e.charCodeAt(1)&&64===e.charCodeAt(0);o.insertRule(e,r?0:o.cssRules.length)}catch(e){0}}else i.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();function u(e){return(u="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)}var h=function(e){function t(e,t,i){var o=t.trim().split(g);t=o;var r=o.length,s=e.length;switch(s){case 0:case 1:var a=0;for(e=0===s?"":e[0]+" ";a<r;++a)t[a]=n(e,t[a],i).trim();break;default:var l=a=0;for(t=[];a<r;++a)for(var c=0;c<s;++c)t[l++]=n(e[c]+" ",o[a],i).trim()}return t}function n(e,t,n){var i=t.charCodeAt(0);switch(33>i&&(i=(t=t.trim()).charCodeAt(0)),i){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,n,r){var s=e+";",a=2*t+3*n+4*r;if(944===a){e=s.indexOf(":",9)+1;var l=s.substring(e,s.length-1).trim();return l=s.substring(0,e).trim()+l+";",1===L||2===L&&o(l,1)?"-webkit-"+l+l:l}if(0===L||2===L&&!o(s,1))return s;switch(a){case 1015:return 97===s.charCodeAt(10)?"-webkit-"+s+s:s;case 951:return 116===s.charCodeAt(3)?"-webkit-"+s+s:s;case 963:return 110===s.charCodeAt(5)?"-webkit-"+s+s:s;case 1009:if(100!==s.charCodeAt(4))break;case 969:case 942:return"-webkit-"+s+s;case 978:return"-webkit-"+s+"-moz-"+s+s;case 1019:case 983:return"-webkit-"+s+"-moz-"+s+"-ms-"+s+s;case 883:if(45===s.charCodeAt(8))return"-webkit-"+s+s;if(0<s.indexOf("image-set(",11))return s.replace($,"$1-webkit-$2")+s;break;case 932:if(45===s.charCodeAt(4))switch(s.charCodeAt(5)){case 103:return"-webkit-box-"+s.replace("-grow","")+"-webkit-"+s+"-ms-"+s.replace("grow","positive")+s;case 115:return"-webkit-"+s+"-ms-"+s.replace("shrink","negative")+s;case 98:return"-webkit-"+s+"-ms-"+s.replace("basis","preferred-size")+s}return"-webkit-"+s+"-ms-"+s+s;case 964:return"-webkit-"+s+"-ms-flex-"+s+s;case 1023:if(99!==s.charCodeAt(8))break;return"-webkit-box-pack"+(l=s.substring(s.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+s+"-ms-flex-pack"+l+s;case 1005:return p.test(s)?s.replace(d,":-webkit-")+s.replace(d,":-moz-")+s:s;case 1e3:switch(t=(l=s.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=s.replace(w,"tb");break;case 232:l=s.replace(w,"tb-rl");break;case 220:l=s.replace(w,"lr");break;default:return s}return"-webkit-"+s+"-ms-"+l+s;case 1017:if(-1===s.indexOf("sticky",9))break;case 975:switch(t=(s=e).length-10,a=(l=(33===s.charCodeAt(t)?s.substring(0,t):s).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:s=s.replace(l,"-webkit-"+l)+";"+s;break;case 207:case 102:s=s.replace(l,"-webkit-"+(102<a?"inline-":"")+"box")+";"+s.replace(l,"-webkit-"+l)+";"+s.replace(l,"-ms-"+l+"box")+";"+s}return s+";";case 938:if(45===s.charCodeAt(5))switch(s.charCodeAt(6)){case 105:return l=s.replace("-items",""),"-webkit-"+s+"-webkit-box-"+l+"-ms-flex-"+l+s;case 115:return"-webkit-"+s+"-ms-flex-item-"+s.replace(C,"")+s;default:return"-webkit-"+s+"-ms-flex-line-pack"+s.replace("align-content","").replace(C,"")+s}break;case 973:case 989:if(45!==s.charCodeAt(3)||122===s.charCodeAt(4))break;case 931:case 953:if(!0===E.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):s.replace(l,"-webkit-"+l)+s.replace(l,"-moz-"+l.replace("fill-",""))+s;break;case 962:if(s="-webkit-"+s+(102===s.charCodeAt(5)?"-ms-"+s:"")+s,211===n+r&&105===s.charCodeAt(13)&&0<s.indexOf("transform",10))return s.substring(0,s.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+s}return s}function o(e,t){var n=e.indexOf(1===t?":":"{"),i=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),I(2!==t?i:i.replace(k,"$1"),n,t)}function r(e,t){var n=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(S," or ($1)").substring(4):"("+t+")"}function s(e,t,n,i,o,r,s,a,c,u){for(var h,d=0,p=t;d<M;++d)switch(h=T[d].call(l,e,p,n,i,o,r,s,a,c,u)){case void 0:case!1:case!0:case null:break;default:p=h}if(p!==t)return p}function a(e){return void 0!==(e=e.prefix)&&(I=null,e?"function"!=typeof e?L=1:(L=2,I=e):L=0),a}function l(e,n){var a=e;if(33>a.charCodeAt(0)&&(a=a.trim()),a=[a],0<M){var l=s(-1,n,a,a,A,_,0,0,0,0);void 0!==l&&"string"==typeof l&&(n=l)}var u=function e(n,a,l,u,d){for(var p,f,g,m,w,S=0,C=0,k=0,E=0,$=0,T=0,I=g=p=0,F=0,D=0,j=0,N=0,B=l.length,z=B-1,W="",H="",V="",U="";F<B;){if(f=l.charCodeAt(F),F===z&&0!==C+E+k+S&&(0!==C&&(f=47===C?10:47),E=k=S=0,B++,z++),0===C+E+k+S){if(F===z&&(0<D&&(W=W.replace(h,"")),0<W.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:W+=l.charAt(F)}f=59}switch(f){case 123:for(p=(W=W.trim()).charCodeAt(0),g=1,N=++F;F<B;){switch(f=l.charCodeAt(F)){case 123:g++;break;case 125:g--;break;case 47:switch(f=l.charCodeAt(F+1)){case 42:case 47:e:{for(I=F+1;I<z;++I)switch(l.charCodeAt(I)){case 47:if(42===f&&42===l.charCodeAt(I-1)&&F+2!==I){F=I+1;break e}break;case 10:if(47===f){F=I+1;break e}}F=I}}break;case 91:f++;case 40:f++;case 34:case 39:for(;F++<z&&l.charCodeAt(F)!==f;);}if(0===g)break;F++}switch(g=l.substring(N,F),0===p&&(p=(W=W.replace(c,"").trim()).charCodeAt(0)),p){case 64:switch(0<D&&(W=W.replace(h,"")),f=W.charCodeAt(1)){case 100:case 109:case 115:case 45:D=a;break;default:D=R}if(N=(g=e(a,D,g,f,d+1)).length,0<M&&(w=s(3,g,D=t(R,W,j),a,A,_,N,f,d,u),W=D.join(""),void 0!==w&&0===(N=(g=w.trim()).length)&&(f=0,g="")),0<N)switch(f){case 115:W=W.replace(x,r);case 100:case 109:case 45:g=W+"{"+g+"}";break;case 107:g=(W=W.replace(v,"$1 $2"))+"{"+g+"}",g=1===L||2===L&&o("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=W+g,112===u&&(H+=g,g="")}else g="";break;default:g=e(a,t(a,W,j),g,u,d+1)}V+=g,g=j=D=I=p=0,W="",f=l.charCodeAt(++F);break;case 125:case 59:if(1<(N=(W=(0<D?W.replace(h,""):W).trim()).length))switch(0===I&&(p=W.charCodeAt(0),45===p||96<p&&123>p)&&(N=(W=W.replace(" ",":")).length),0<M&&void 0!==(w=s(1,W,a,n,A,_,H.length,u,d,u))&&0===(N=(W=w.trim()).length)&&(W="\0\0"),p=W.charCodeAt(0),f=W.charCodeAt(1),p){case 0:break;case 64:if(105===f||99===f){U+=W+l.charAt(F);break}default:58!==W.charCodeAt(N-1)&&(H+=i(W,p,f,W.charCodeAt(2)))}j=D=I=p=0,W="",f=l.charCodeAt(++F)}}switch(f){case 13:case 10:47===C?C=0:0===1+p&&107!==u&&0<W.length&&(D=1,W+="\0"),0<M*P&&s(0,W,a,n,A,_,H.length,u,d,u),_=1,A++;break;case 59:case 125:if(0===C+E+k+S){_++;break}default:switch(_++,m=l.charAt(F),f){case 9:case 32:if(0===E+S+C)switch($){case 44:case 58:case 9:case 32:m="";break;default:32!==f&&(m=" ")}break;case 0:m="\\0";break;case 12:m="\\f";break;case 11:m="\\v";break;case 38:0===E+C+S&&(D=j=1,m="\f"+m);break;case 108:if(0===E+C+S+O&&0<I)switch(F-I){case 2:112===$&&58===l.charCodeAt(F-3)&&(O=$);case 8:111===T&&(O=T)}break;case 58:0===E+C+S&&(I=F);break;case 44:0===C+k+E+S&&(D=1,m+="\r");break;case 34:case 39:0===C&&(E=E===f?0:0===E?f:E);break;case 91:0===E+C+k&&S++;break;case 93:0===E+C+k&&S--;break;case 41:0===E+C+S&&k--;break;case 40:if(0===E+C+S){if(0===p)switch(2*$+3*T){case 533:break;default:p=1}k++}break;case 64:0===C+k+E+S+I+g&&(g=1);break;case 42:case 47:if(!(0<E+S+k))switch(C){case 0:switch(2*f+3*l.charCodeAt(F+1)){case 235:C=47;break;case 220:N=F,C=42}break;case 42:47===f&&42===$&&N+2!==F&&(33===l.charCodeAt(N+2)&&(H+=l.substring(N,F+1)),m="",C=0)}}0===C&&(W+=m)}T=$,$=f,F++}if(0<(N=H.length)){if(D=a,0<M&&(void 0!==(w=s(2,H,D,n,A,_,N,u,d,u))&&0===(H=w).length))return U+H+V;if(H=D.join(",")+"{"+H+"}",0!=L*O){switch(2!==L||o(H,2)||(O=0),O){case 111:H=H.replace(y,":-moz-$1")+H;break;case 112:H=H.replace(b,"::-webkit-input-$1")+H.replace(b,"::-moz-$1")+H.replace(b,":-ms-input-$1")+H}O=0}}return U+H+V}(R,a,n,0,0);return 0<M&&(void 0!==(l=s(-2,u,a,a,A,_,u.length,0,0,0))&&(u=l)),"",O=0,_=A=1,u}var c=/^\0+/g,h=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,f=/([,: ])(transform)/g,g=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,y=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,x=/\(\s*(.*)\s*\)/g,S=/([\s\S]*?);/g,C=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,E=/stretch|:\s*\w+\-(?:conte|avail)/,$=/([^-])(image-set\()/,_=1,A=1,O=0,L=1,R=[],T=[],M=0,I=null,P=0;return l.use=function e(t){switch(t){case void 0:case null:M=T.length=0;break;default:if("function"==typeof t)T[M++]=t;else if("object"===u(t))for(var n=0,i=t.length;n<i;++n)e(t[n]);else P=0|!!t}return e},l.set=a,void 0!==e&&a(e),l};function d(e){e&&p.current.insert(e+"}")}var p={current:null},f=function(e,t,n,i,o,r,s,a,l,c){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return p.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===a)return t+"/*|*/";break;case 3:switch(a){case 102:case 112:return p.current.insert(n[0]+t),"";default:return t+(0===c?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(d)}},g=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var i=new h(t);var o,r={};o=e.container||document.head;var s,a=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(a,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){r[e]=!0})),e.parentNode!==o&&o.appendChild(e)})),i.use(e.stylisPlugins)(f),s=function(e,t,n,o){var r=t.name;p.current=n,i(e,t.styles),o&&(l.inserted[r]=!0)};var l={key:n,sheet:new c({key:n,container:o,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:r,registered:{},insert:s};return l};function m(e,t,n){var i="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):i+=n+" "})),i}var v=function(e,t,n){var i=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[i]&&(e.registered[i]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert("."+i,o,e.sheet,!0);o=o.next}while(void 0!==o)}};var b=function(e){for(var t,n=0,i=0,o=e.length;o>=4;++i,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(i+2))<<16;case 2:n^=(255&e.charCodeAt(i+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(i)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},y={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function w(e){return(w="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)}var x=/[A-Z]|^ms/g,S=/_EMO_([^_]+?)_([^]*?)_EMO_/g,C=function(e){return 45===e.charCodeAt(1)},k=function(e){return null!=e&&"boolean"!=typeof e},E=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return C(e)?e:e.replace(x,"-$&").toLowerCase()})),$=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(S,(function(e,t,n){return A={name:t,styles:n,next:A},t}))}return 1===y[e]||C(e)||"number"!=typeof t||0===t?t:t+"px"};function _(e,t,n,i){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(w(n)){case"boolean":return"";case"object":if(1===n.anim)return A={name:n.name,styles:n.styles,next:A},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)A={name:o.name,styles:o.styles,next:A},o=o.next;return n.styles+";"}return function(e,t,n){var i="";if(Array.isArray(n))for(var o=0;o<n.length;o++)i+=_(e,t,n[o],!1);else for(var r in n){var s=n[r];if("object"!==w(s))null!=t&&void 0!==t[s]?i+=r+"{"+t[s]+"}":k(s)&&(i+=E(r)+":"+$(r,s)+";");else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var a=_(e,t,s,!1);switch(r){case"animation":case"animationName":i+=E(r)+":"+a+";";break;default:i+=r+"{"+a+"}"}}else for(var l=0;l<s.length;l++)k(s[l])&&(i+=E(r)+":"+$(r,s[l])+";")}return i}(e,t,n);case"function":if(void 0!==e){var r=A,s=n(e);return A=r,_(e,t,s,i)}break;case"string":}if(null==t)return n;var a=t[n];return void 0===a||i?n:a}var A,O=/label:\s*([^\s;\n{]+)\s*;/g;var L=function(e,t,n){if(1===e.length&&"object"===w(e[0])&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i=!0,o="";A=void 0;var r=e[0];null==r||void 0===r.raw?(i=!1,o+=_(n,t,r,!1)):o+=r[0];for(var s=1;s<e.length;s++)o+=_(n,t,e[s],46===o.charCodeAt(o.length-1)),i&&(o+=r[s]);O.lastIndex=0;for(var a,l="";null!==(a=O.exec(o));)l+="-"+a[1];return{name:b(o)+l,styles:o,next:A}};var R=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return L(t)};function T(e){return(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)}var M=Object(r.createContext)("undefined"!=typeof HTMLElement?g():null),I=Object(r.createContext)({}),P=M.Provider,F=function(e){return Object(r.forwardRef)((function(t,n){return Object(r.createElement)(M.Consumer,null,(function(i){return e(t,i,n)}))}))},D="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",j=Object.prototype.hasOwnProperty,N=function(e,t,n,i){var o=null===n?t.css:t.css(n);"string"==typeof o&&void 0!==e.registered[o]&&(o=e.registered[o]);var s=t[D],a=[o],l="";"string"==typeof t.className?l=m(e.registered,a,t.className):null!=t.className&&(l=t.className+" ");var c=L(a);v(e,c,"string"==typeof s);l+=e.key+"-"+c.name;var u={};for(var h in t)j.call(t,h)&&"css"!==h&&h!==D&&(u[h]=t[h]);return u.ref=i,u.className=l,Object(r.createElement)(s,u)},B=F((function(e,t,n){return"function"==typeof e.css?Object(r.createElement)(I.Consumer,null,(function(i){return N(t,e,i,n)})):N(t,e,null,n)}));var z=function(e,t){var n=arguments;if(null==t||!j.call(t,"css"))return r.createElement.apply(void 0,n);var i=n.length,o=new Array(i);o[0]=B;var s={};for(var a in t)j.call(t,a)&&(s[a]=t[a]);s[D]=e,o[1]=s;for(var l=2;l<i;l++)o[l]=n[l];return r.createElement.apply(null,o)},W=(r.Component,function e(t){for(var n=t.length,i=0,o="";i<n;i++){var r=t[i];if(null!=r){var s=void 0;switch(T(r)){case"boolean":break;case"object":if(Array.isArray(r))s=e(r);else for(var a in s="",r)r[a]&&a&&(s&&(s+=" "),s+=a);break;default:s=r}s&&(o&&(o+=" "),o+=s)}}return o});function H(e,t,n){var i=[],o=m(e,i,n);return i.length<2?n:o+t(i)}var V=F((function(e,t){return Object(r.createElement)(I.Consumer,null,(function(n){var i=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var o=L(n,t.registered);return v(t,o,!1),t.key+"-"+o.name},o={css:i,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return H(t.registered,i,W(n))},theme:n},r=e.children(o);return!0,r}))})),U=n(7),G=n(1),K=n.n(G);function q(e){return(q="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)}var Y=function(){};function X(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Q(e,t,n){var i=[n];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&i.push(""+X(e,o));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var J=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===q(e)&&null!==e?[e]:[]};function Z(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function ee(e){return Z(e)?window.pageYOffset:e.scrollTop}function te(e,t){Z(e)?window.scrollTo(0,t):e.scrollTop=t}function ne(e,t,n,i){void 0===n&&(n=200),void 0===i&&(i=Y);var o=ee(e),r=t-o,s=0;!function t(){var a,l=r*((a=(a=s+=10)/n-1)*a*a+1)+o;te(e,l),s<n?window.requestAnimationFrame(t):i(e)}()}function ie(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var oe=n(16),re=n.n(oe);function se(e){return(se="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)}function ae(){return(ae=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function le(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function ce(e){var t=e.maxHeight,n=e.menuEl,i=e.minHeight,o=e.placement,r=e.shouldScroll,s=e.isFixedPosition,a=e.theme.spacing,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,i=/(auto|scroll)/,o=document.documentElement;if("fixed"===t.position)return o;for(var r=e;r=r.parentElement;)if(t=getComputedStyle(r),(!n||"static"!==t.position)&&i.test(t.overflow+t.overflowY+t.overflowX))return r;return o}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u=l.getBoundingClientRect().height,h=n.getBoundingClientRect(),d=h.bottom,p=h.height,f=h.top,g=n.offsetParent.getBoundingClientRect().top,m=window.innerHeight,v=ee(l),b=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),w=g-y,x=m-f,S=w+v,C=u-v-f,k=d-m+v+b,E=v+f-y;switch(o){case"auto":case"bottom":if(x>=p)return{placement:"bottom",maxHeight:t};if(C>=p&&!s)return r&&ne(l,k,160),{placement:"bottom",maxHeight:t};if(!s&&C>=i||s&&x>=i)return r&&ne(l,k,160),{placement:"bottom",maxHeight:s?x-b:C-b};if("auto"===o||s){var $=t,_=s?w:S;return _>=i&&($=Math.min(_-b-a.controlHeight,t)),{placement:"top",maxHeight:$}}if("bottom"===o)return te(l,k),{placement:"bottom",maxHeight:t};break;case"top":if(w>=p)return{placement:"top",maxHeight:t};if(S>=p&&!s)return r&&ne(l,E,160),{placement:"top",maxHeight:t};if(!s&&S>=i||s&&w>=i){var A=t;return(!s&&S>=i||s&&w>=i)&&(A=s?w-y:S-y),r&&ne(l,E,160),{placement:"top",maxHeight:A}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'+o+'".')}return c}var ue=function(e){return"auto"===e?"bottom":e},he=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(t=e.call.apply(e,[this].concat(i))||this).state={maxHeight:t.props.maxMenuHeight,placement:null},t.getPlacement=function(e){var n=t.props,i=n.minMenuHeight,o=n.maxMenuHeight,r=n.menuPlacement,s=n.menuPosition,a=n.menuShouldScrollIntoView,l=n.theme,c=t.context.getPortalPlacement;if(e){var u="fixed"===s,h=ce({maxHeight:o,menuEl:e,minHeight:i,placement:r,shouldScroll:a&&!u,isFixedPosition:u,theme:l});c&&c(h),t.setState(h)}},t.getUpdatedProps=function(){var e=t.props.menuPlacement,n=t.state.placement||ue(e);return ae({},t.props,{placement:n,maxHeight:t.state.maxHeight})},t}return le(t,e),t.prototype.render=function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})},t}(r.Component);he.contextTypes={getPortalPlacement:K.a.func};var de=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:2*n+"px "+3*n+"px",textAlign:"center"}},pe=de,fe=de,ge=function(e){var t=e.children,n=e.className,i=e.cx,o=e.getStyles,r=e.innerProps;return z("div",ae({css:o("noOptionsMessage",e),className:i({"menu-notice":!0,"menu-notice--no-options":!0},n)},r),t)};ge.defaultProps={children:"No options"};var me=function(e){var t=e.children,n=e.className,i=e.cx,o=e.getStyles,r=e.innerProps;return z("div",ae({css:o("loadingMessage",e),className:i({"menu-notice":!0,"menu-notice--loading":!0},n)},r),t)};me.defaultProps={children:"Loading..."};var ve=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(t=e.call.apply(e,[this].concat(i))||this).state={placement:null},t.getPortalPlacement=function(e){var n=e.placement;n!==ue(t.props.menuPlacement)&&t.setState({placement:n})},t}le(t,e);var n=t.prototype;return n.getChildContext=function(){return{getPortalPlacement:this.getPortalPlacement}},n.render=function(){var e=this.props,t=e.appendTo,n=e.children,i=e.controlElement,o=e.menuPlacement,r=e.menuPosition,s=e.getStyles,a="fixed"===r;if(!t&&!a||!i)return null;var l=this.state.placement||ue(o),c=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(i),u=a?0:window.pageYOffset,h=c[l]+u,d=z("div",{css:s("menuPortal",{offset:h,position:r,rect:c})},n);return t?Object(U.createPortal)(d,t):d},t}(r.Component);ve.childContextTypes={getPortalPlacement:K.a.func};var be=Array.isArray,ye=Object.keys,we=Object.prototype.hasOwnProperty;function xe(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==se(t)&&"object"==se(n)){var i,o,r,s=be(t),a=be(n);if(s&&a){if((o=t.length)!=n.length)return!1;for(i=o;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(s!=a)return!1;var l=t instanceof Date,c=n instanceof Date;if(l!=c)return!1;if(l&&c)return t.getTime()==n.getTime();var u=t instanceof RegExp,h=n instanceof RegExp;if(u!=h)return!1;if(u&&h)return t.toString()==n.toString();var d=ye(t);if((o=d.length)!==ye(n).length)return!1;for(i=o;0!=i--;)if(!we.call(n,d[i]))return!1;for(i=o;0!=i--;)if(!("_owner"===(r=d[i])&&t.$$typeof||e(t[r],n[r])))return!1;return!0}return t!=t&&n!=n}(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}function Se(){return(Se=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Ce(){var e=function(e,t){t||(t=e.slice(0));return e.raw=t,e}(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]);return Ce=function(){return e},e}function ke(){return(ke=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var Ee={name:"19bqh2r",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;"},$e=function(e){var t=e.size,n=function(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["size"]);return z("svg",ke({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Ee},n))},_e=function(e){return z($e,ke({size:20},e),z("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Ae=function(e){return z($e,ke({size:20},e),z("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Oe=function(e){var t=e.isFocused,n=e.theme,i=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*i,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},Le=Oe,Re=Oe,Te=function(){var e=R.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Ce()),Me=function(e){var t=e.delay,n=e.offset;return z("span",{css:R({animation:Te+" 1s ease-in-out "+t+"ms infinite;",backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"")})},Ie=function(e){var t=e.className,n=e.cx,i=e.getStyles,o=e.innerProps,r=e.isRtl;return z("div",ke({},o,{css:i("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)}),z(Me,{delay:0,offset:r}),z(Me,{delay:160,offset:!0}),z(Me,{delay:320,offset:!r}))};function Pe(){return(Pe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}Ie.defaultProps={size:4};function Fe(){return(Fe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function De(){return(De=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var je=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}};function Ne(){return(Ne=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var Be=function(e){var t=e.children,n=e.innerProps;return z("div",n,t)},ze=Be,We=Be;var He=function(e){var t=e.children,n=e.className,i=e.components,o=e.cx,r=e.data,s=e.getStyles,a=e.innerProps,l=e.isDisabled,c=e.removeProps,u=e.selectProps,h=i.Container,d=i.Label,p=i.Remove;return z(V,null,(function(i){var f=i.css,g=i.cx;return z(h,{data:r,innerProps:Ne({},a,{className:g(f(s("multiValue",e)),o({"multi-value":!0,"multi-value--is-disabled":l},n))}),selectProps:u},z(d,{data:r,innerProps:{className:g(f(s("multiValueLabel",e)),o({"multi-value__label":!0},n))},selectProps:u},t),z(p,{data:r,innerProps:Ne({className:g(f(s("multiValueRemove",e)),o({"multi-value__remove":!0},n))},c),selectProps:u}))}))};function Ve(){return(Ve=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}He.defaultProps={cropWithEllipsis:!0};function Ue(){return(Ue=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Ge(){return(Ge=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Ke(){return(Ke=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var qe={ClearIndicator:function(e){var t=e.children,n=e.className,i=e.cx,o=e.getStyles,r=e.innerProps;return z("div",ke({},r,{css:o("clearIndicator",e),className:i({indicator:!0,"clear-indicator":!0},n)}),t||z(_e,null))},Control:function(e){var t=e.children,n=e.cx,i=e.getStyles,o=e.className,r=e.isDisabled,s=e.isFocused,a=e.innerRef,l=e.innerProps,c=e.menuIsOpen;return z("div",Pe({ref:a,css:i("control",e),className:n({control:!0,"control--is-disabled":r,"control--is-focused":s,"control--menu-is-open":c},o)},l),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,i=e.cx,o=e.getStyles,r=e.innerProps;return z("div",ke({},r,{css:o("dropdownIndicator",e),className:i({indicator:!0,"dropdown-indicator":!0},n)}),t||z(Ae,null))},DownChevron:Ae,CrossIcon:_e,Group:function(e){var t=e.children,n=e.className,i=e.cx,o=e.getStyles,r=e.Heading,s=e.headingProps,a=e.label,l=e.theme,c=e.selectProps;return z("div",{css:o("group",e),className:i({group:!0},n)},z(r,Fe({},s,{selectProps:c,theme:l,getStyles:o,cx:i}),a),z("div",null,t))},GroupHeading:function(e){var t=e.className,n=e.cx,i=e.getStyles,o=e.theme,r=(e.selectProps,function(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["className","cx","getStyles","theme","selectProps"]));return z("div",Fe({css:i("groupHeading",Fe({theme:o},r)),className:n({"group-heading":!0},t)},r))},IndicatorsContainer:function(e){var t=e.children,n=e.className,i=e.cx,o=e.getStyles;return z("div",{css:o("indicatorsContainer",e),className:i({indicators:!0},n)},t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,i=e.getStyles,o=e.innerProps;return z("span",ke({},o,{css:i("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,i=e.getStyles,o=e.innerRef,r=e.isHidden,s=e.isDisabled,a=e.theme,l=(e.selectProps,function(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return z("div",{css:i("input",De({theme:a},l))},z(re.a,De({className:n({input:!0},t),inputRef:o,inputStyle:je(r),disabled:s},l)))},LoadingIndicator:Ie,Menu:function(e){var t=e.children,n=e.className,i=e.cx,o=e.getStyles,r=e.innerRef,s=e.innerProps;return z("div",ae({css:o("menu",e),className:i({menu:!0},n)},s,{ref:r}),t)},MenuList:function(e){var t=e.children,n=e.className,i=e.cx,o=e.getStyles,r=e.isMulti,s=e.innerRef;return z("div",{css:o("menuList",e),className:i({"menu-list":!0,"menu-list--is-multi":r},n),ref:s},t)},MenuPortal:ve,LoadingMessage:me,NoOptionsMessage:ge,MultiValue:He,MultiValueContainer:ze,MultiValueLabel:We,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return z("div",n,t||z(_e,{size:14}))},Option:function(e){var t=e.children,n=e.className,i=e.cx,o=e.getStyles,r=e.isDisabled,s=e.isFocused,a=e.isSelected,l=e.innerRef,c=e.innerProps;return z("div",Ve({css:o("option",e),className:i({option:!0,"option--is-disabled":r,"option--is-focused":s,"option--is-selected":a},n),ref:l},c),t)},Placeholder:function(e){var t=e.children,n=e.className,i=e.cx,o=e.getStyles,r=e.innerProps;return z("div",Ue({css:o("placeholder",e),className:i({placeholder:!0},n)},r),t)},SelectContainer:function(e){var t=e.children,n=e.className,i=e.cx,o=e.getStyles,r=e.innerProps,s=e.isDisabled,a=e.isRtl;return z("div",Se({css:o("container",e),className:i({"--is-disabled":s,"--is-rtl":a},n)},r),t)},SingleValue:function(e){var t=e.children,n=e.className,i=e.cx,o=e.getStyles,r=e.isDisabled,s=e.innerProps;return z("div",Ge({css:o("singleValue",e),className:i({"single-value":!0,"single-value--is-disabled":r},n)},s),t)},ValueContainer:function(e){var t=e.children,n=e.className,i=e.cx,o=e.isMulti,r=e.getStyles,s=e.hasValue;return z("div",{css:r("valueContainer",e),className:i({"value-container":!0,"value-container--is-multi":o,"value-container--has-value":s},n)},t)}};function Ye(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Xe=function(e,t){var n;void 0===t&&(t=Ye);var i,o=[],r=!1;return function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return r&&n===this&&t(s,o)||(i=e.apply(this,s),r=!0,n=this,o=s),i}},Qe=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}],Je=function(e){for(var t=0;t<Qe.length;t++)e=e.replace(Qe[t].letters,Qe[t].base);return e};function Ze(){return(Ze=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var et=function(e){return e.replace(/^\s+|\s+$/g,"")},tt=function(e){return e.label+" "+e.value};function nt(){return(nt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var it={name:"1laao21-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;"},ot=function(e){return z("span",nt({css:it},e))};function rt(){return(rt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function st(e){e.in,e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef,n=(e.emotion,function(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return z("input",rt({ref:t},n,{css:R({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"")}))}var at=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=i.prototype;return o.componentDidMount=function(){this.props.innerRef(Object(U.findDOMNode)(this))},o.componentWillUnmount=function(){this.props.innerRef(null)},o.render=function(){return this.props.children},i}(r.Component),lt=["boxSizing","height","overflow","paddingRight","position"],ct={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function ut(e){e.preventDefault()}function ht(e){e.stopPropagation()}function dt(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function pt(){return"ontouchstart"in window||navigator.maxTouchPoints}var ft=!(!window.document||!window.document.createElement),gt=0,mt=function(e){var t,n;function i(){for(var t,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(t=e.call.apply(e,[this].concat(i))||this).originalStyles={},t.listenerOptions={capture:!1,passive:!1},t}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=i.prototype;return o.componentDidMount=function(){var e=this;if(ft){var t=this.props,n=t.accountForScrollbars,i=t.touchScrollTarget,o=document.body,r=o&&o.style;if(n&&lt.forEach((function(t){var n=r&&r[t];e.originalStyles[t]=n})),n&&gt<1){var s=parseInt(this.originalStyles.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,l=window.innerWidth-a+s||0;Object.keys(ct).forEach((function(e){var t=ct[e];r&&(r[e]=t)})),r&&(r.paddingRight=l+"px")}o&&pt()&&(o.addEventListener("touchmove",ut,this.listenerOptions),i&&(i.addEventListener("touchstart",dt,this.listenerOptions),i.addEventListener("touchmove",ht,this.listenerOptions))),gt+=1}},o.componentWillUnmount=function(){var e=this;if(ft){var t=this.props,n=t.accountForScrollbars,i=t.touchScrollTarget,o=document.body,r=o&&o.style;gt=Math.max(gt-1,0),n&&gt<1&&lt.forEach((function(t){var n=e.originalStyles[t];r&&(r[t]=n)})),o&&pt()&&(o.removeEventListener("touchmove",ut,this.listenerOptions),i&&(i.removeEventListener("touchstart",dt,this.listenerOptions),i.removeEventListener("touchmove",ht,this.listenerOptions)))}},o.render=function(){return null},i}(r.Component);mt.defaultProps={accountForScrollbars:!0};var vt={name:"1dsbpcp",styles:"position:fixed;left:0;bottom:0;right:0;top:0;"},bt=function(e){var t,n;function i(){for(var t,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(t=e.call.apply(e,[this].concat(i))||this).state={touchScrollTarget:null},t.getScrollTarget=function(e){e!==t.state.touchScrollTarget&&t.setState({touchScrollTarget:e})},t.blurSelectInput=function(){document.activeElement&&document.activeElement.blur()},t}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i.prototype.render=function(){var e=this.props,t=e.children,n=e.isEnabled,i=this.state.touchScrollTarget;return n?z("div",null,z("div",{onClick:this.blurSelectInput,css:vt}),z(at,{innerRef:this.getScrollTarget},t),i?z(mt,{touchScrollTarget:i}):null):t},i}(r.PureComponent);var yt=function(e){var t,n;function i(){for(var t,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(t=e.call.apply(e,[this].concat(i))||this).isBottom=!1,t.isTop=!1,t.scrollTarget=void 0,t.touchStart=void 0,t.cancelScroll=function(e){e.preventDefault(),e.stopPropagation()},t.handleEventDelta=function(e,n){var i=t.props,o=i.onBottomArrive,r=i.onBottomLeave,s=i.onTopArrive,a=i.onTopLeave,l=t.scrollTarget,c=l.scrollTop,u=l.scrollHeight,h=l.clientHeight,d=t.scrollTarget,p=n>0,f=u-h-c,g=!1;f>n&&t.isBottom&&(r&&r(e),t.isBottom=!1),p&&t.isTop&&(a&&a(e),t.isTop=!1),p&&n>f?(o&&!t.isBottom&&o(e),d.scrollTop=u,g=!0,t.isBottom=!0):!p&&-n>c&&(s&&!t.isTop&&s(e),d.scrollTop=0,g=!0,t.isTop=!0),g&&t.cancelScroll(e)},t.onWheel=function(e){t.handleEventDelta(e,e.deltaY)},t.onTouchStart=function(e){t.touchStart=e.changedTouches[0].clientY},t.onTouchMove=function(e){var n=t.touchStart-e.changedTouches[0].clientY;t.handleEventDelta(e,n)},t.getScrollTarget=function(e){t.scrollTarget=e},t}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=i.prototype;return o.componentDidMount=function(){this.startListening(this.scrollTarget)},o.componentWillUnmount=function(){this.stopListening(this.scrollTarget)},o.startListening=function(e){e&&("function"==typeof e.addEventListener&&e.addEventListener("wheel",this.onWheel,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",this.onTouchMove,!1))},o.stopListening=function(e){"function"==typeof e.removeEventListener&&e.removeEventListener("wheel",this.onWheel,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",this.onTouchMove,!1)},o.render=function(){return s.a.createElement(at,{innerRef:this.getScrollTarget},this.props.children)},i}(r.Component);function wt(e){var t=e.isEnabled,n=void 0===t||t,i=function(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["isEnabled"]);return n?s.a.createElement(yt,i):i.children}var xt=function(e,t){void 0===t&&(t={});var n=t,i=n.isSearchable,o=n.isMulti,r=n.label,s=n.isDisabled;switch(e){case"menu":return"Use Up and Down to choose options"+(s?"":", press Enter to select the currently focused option")+", press Escape to exit the menu, press Tab to select the option and exit the menu.";case"input":return(r||"Select")+" is focused "+(i?",type to refine list":"")+", press Down to open the menu, "+(o?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},St=function(e,t){var n=t.value,i=t.isDisabled;if(n)switch(e){case"deselect-option":case"pop-value":case"remove-value":return"option "+n+", deselected.";case"select-option":return i?"option "+n+" is disabled. Select another option.":"option "+n+", selected."}},Ct=function(e){return!!e.isDisabled};var kt={clearIndicator:Re,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,i=e.theme,o=i.colors,r=i.borderRadius,s=i.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:r,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px "+o.primary:null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},dropdownIndicator:Le,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,i=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*i,marginTop:2*i,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,i=n.spacing,o=n.colors;return{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,i=e.theme,o=i.colors,r=i.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:fe,menu:function(e){var t,n=e.placement,i=e.theme,o=i.borderRadius,r=i.spacing,s=i.colors;return(t={label:"menu"})[function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n)]="100%",t.backgroundColor=s.neutral0,t.borderRadius=o,t.boxShadow="0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",t.marginBottom=r.menuGutter,t.marginTop=r.menuGutter,t.position="absolute",t.width="100%",t.zIndex=1,t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,i=e.position;return{left:t.left,position:i,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,i=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:i/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,i=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:i.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,i=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:i/2,backgroundColor:e.isFocused&&o.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:pe,option:function(e){var t=e.isDisabled,n=e.isFocused,i=e.isSelected,o=e.theme,r=o.spacing,s=o.colors;return{label:"option",backgroundColor:i?s.primary:n?s.primary25:"transparent",color:t?s.neutral20:i?s.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:2*r.baseUnit+"px "+3*r.baseUnit+"px",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(i?s.primary:s.primary50)}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,i=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2,maxWidth:"calc(100% - "+2*i.baseUnit+"px)",overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:t.baseUnit/2+"px "+2*t.baseUnit+"px",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};var Et={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}};function $t(){return($t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function _t(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var At,Ot={backspaceRemovesValue:!0,blurInputOnSelect:ie(),captureMenuScroll:!ie(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var n=Ze({ignoreCase:!0,ignoreAccents:!0,stringify:tt,trim:!0,matchFrom:"any"},At),i=n.ignoreCase,o=n.ignoreAccents,r=n.stringify,s=n.trim,a=n.matchFrom,l=s?et(t):t,c=s?et(r(e)):r(e);return i&&(l=l.toLowerCase(),c=c.toLowerCase()),o&&(l=Je(l),c=Je(c)),"start"===a?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Ct,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return t+" result"+(1!==t?"s":"")+" available"},styles:{},tabIndex:"0",tabSelectsValue:!0},Lt=1,Rt=function(e){var t,n;function i(t){var n;(n=e.call(this,t)||this).state={ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]},n.blockOptionHover=!1,n.isComposing=!1,n.clearFocusValueOnUpdate=!1,n.commonProps=void 0,n.components=void 0,n.hasGroups=!1,n.initialTouchX=0,n.initialTouchY=0,n.inputIsHiddenAfterUpdate=void 0,n.instancePrefix="",n.openAfterFocus=!1,n.scrollToFocusedOptionOnUpdate=!1,n.userIsDragging=void 0,n.controlRef=null,n.getControlRef=function(e){n.controlRef=e},n.focusedOptionRef=null,n.getFocusedOptionRef=function(e){n.focusedOptionRef=e},n.menuListRef=null,n.getMenuListRef=function(e){n.menuListRef=e},n.inputRef=null,n.getInputRef=function(e){n.inputRef=e},n.cacheComponents=function(e){n.components=Ke({},qe,{components:e}.components)},n.focus=n.focusInput,n.blur=n.blurInput,n.onChange=function(e,t){var i=n.props;(0,i.onChange)(e,$t({},t,{name:i.name}))},n.setValue=function(e,t,i){void 0===t&&(t="set-value");var o=n.props,r=o.closeMenuOnSelect,s=o.isMulti;n.onInputChange("",{action:"set-value"}),r&&(n.inputIsHiddenAfterUpdate=!s,n.onMenuClose()),n.clearFocusValueOnUpdate=!0,n.onChange(e,{action:t,option:i})},n.selectOption=function(e){var t=n.props,i=t.blurInputOnSelect,o=t.isMulti,r=n.state.selectValue;if(o)if(n.isOptionSelected(e,r)){var s=n.getOptionValue(e);n.setValue(r.filter((function(e){return n.getOptionValue(e)!==s})),"deselect-option",e),n.announceAriaLiveSelection({event:"deselect-option",context:{value:n.getOptionLabel(e)}})}else n.isOptionDisabled(e,r)?n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e),isDisabled:!0}}):(n.setValue([].concat(r,[e]),"select-option",e),n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e)}}));else n.isOptionDisabled(e,r)?n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e),isDisabled:!0}}):(n.setValue(e,"select-option"),n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e)}}));i&&n.blurInput()},n.removeValue=function(e){var t=n.state.selectValue,i=n.getOptionValue(e),o=t.filter((function(e){return n.getOptionValue(e)!==i}));n.onChange(o.length?o:null,{action:"remove-value",removedValue:e}),n.announceAriaLiveSelection({event:"remove-value",context:{value:e?n.getOptionLabel(e):""}}),n.focusInput()},n.clearValue=function(){var e=n.props.isMulti;n.onChange(e?[]:null,{action:"clear"})},n.popValue=function(){var e=n.state.selectValue,t=e[e.length-1],i=e.slice(0,e.length-1);n.announceAriaLiveSelection({event:"pop-value",context:{value:t?n.getOptionLabel(t):""}}),n.onChange(i.length?i:null,{action:"pop-value",removedValue:t})},n.getOptionLabel=function(e){return n.props.getOptionLabel(e)},n.getOptionValue=function(e){return n.props.getOptionValue(e)},n.getStyles=function(e,t){var i=kt[e](t);i.boxSizing="border-box";var o=n.props.styles[e];return o?o(i,t):i},n.getElementId=function(e){return n.instancePrefix+"-"+e},n.getActiveDescendentId=function(){var e=n.props.menuIsOpen,t=n.state,i=t.menuOptions,o=t.focusedOption;if(o&&e){var r=i.focusable.indexOf(o),s=i.render[r];return s&&s.key}},n.announceAriaLiveSelection=function(e){var t=e.event,i=e.context;n.setState({ariaLiveSelection:St(t,i)})},n.announceAriaLiveContext=function(e){var t=e.event,i=e.context;n.setState({ariaLiveContext:xt(t,$t({},i,{label:n.props["aria-label"]}))})},n.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),n.focusInput())},n.onMenuMouseMove=function(e){n.blockOptionHover=!1},n.onControlMouseDown=function(e){var t=n.props.openMenuOnClick;n.state.isFocused?n.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&n.onMenuClose():t&&n.openMenu("first"):(t&&(n.openAfterFocus=!0),n.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},n.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||n.props.isDisabled)){var t=n.props,i=t.isMulti,o=t.menuIsOpen;n.focusInput(),o?(n.inputIsHiddenAfterUpdate=!i,n.onMenuClose()):n.openMenu("first"),e.preventDefault(),e.stopPropagation()}},n.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(n.clearValue(),e.stopPropagation(),n.openAfterFocus=!1,"touchend"===e.type?n.focusInput():setTimeout((function(){return n.focusInput()})))},n.onScroll=function(e){"boolean"==typeof n.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Z(e.target)&&n.props.onMenuClose():"function"==typeof n.props.closeMenuOnScroll&&n.props.closeMenuOnScroll(e)&&n.props.onMenuClose()},n.onCompositionStart=function(){n.isComposing=!0},n.onCompositionEnd=function(){n.isComposing=!1},n.onTouchStart=function(e){var t=e.touches.item(0);t&&(n.initialTouchX=t.clientX,n.initialTouchY=t.clientY,n.userIsDragging=!1)},n.onTouchMove=function(e){var t=e.touches.item(0);if(t){var i=Math.abs(t.clientX-n.initialTouchX),o=Math.abs(t.clientY-n.initialTouchY);n.userIsDragging=i>5||o>5}},n.onTouchEnd=function(e){n.userIsDragging||(n.controlRef&&!n.controlRef.contains(e.target)&&n.menuListRef&&!n.menuListRef.contains(e.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)},n.onControlTouchEnd=function(e){n.userIsDragging||n.onControlMouseDown(e)},n.onClearIndicatorTouchEnd=function(e){n.userIsDragging||n.onClearIndicatorMouseDown(e)},n.onDropdownIndicatorTouchEnd=function(e){n.userIsDragging||n.onDropdownIndicatorMouseDown(e)},n.handleInputChange=function(e){var t=e.currentTarget.value;n.inputIsHiddenAfterUpdate=!1,n.onInputChange(t,{action:"input-change"}),n.onMenuOpen()},n.onInputFocus=function(e){var t=n.props,i=t.isSearchable,o=t.isMulti;n.props.onFocus&&n.props.onFocus(e),n.inputIsHiddenAfterUpdate=!1,n.announceAriaLiveContext({event:"input",context:{isSearchable:i,isMulti:o}}),n.setState({isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1},n.onInputBlur=function(e){n.menuListRef&&n.menuListRef.contains(document.activeElement)?n.inputRef.focus():(n.props.onBlur&&n.props.onBlur(e),n.onInputChange("",{action:"input-blur"}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1}))},n.onOptionHover=function(e){n.blockOptionHover||n.state.focusedOption===e||n.setState({focusedOption:e})},n.shouldHideSelectedOptions=function(){var e=n.props,t=e.hideSelectedOptions,i=e.isMulti;return void 0===t?i:t},n.onKeyDown=function(e){var t=n.props,i=t.isMulti,o=t.backspaceRemovesValue,r=t.escapeClearsValue,s=t.inputValue,a=t.isClearable,l=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,h=t.tabSelectsValue,d=t.openMenuOnFocus,p=n.state,f=p.focusedOption,g=p.focusedValue,m=p.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(n.blockOptionHover=!0,e.key){case"ArrowLeft":if(!i||s)return;n.focusValue("previous");break;case"ArrowRight":if(!i||s)return;n.focusValue("next");break;case"Delete":case"Backspace":if(s)return;if(g)n.removeValue(g);else{if(!o)return;i?n.popValue():a&&n.clearValue()}break;case"Tab":if(n.isComposing)return;if(e.shiftKey||!c||!h||!f||d&&n.isOptionSelected(f,m))return;n.selectOption(f);break;case"Enter":if(229===e.keyCode)break;if(c){if(!f)return;if(n.isComposing)return;n.selectOption(f);break}return;case"Escape":c?(n.inputIsHiddenAfterUpdate=!1,n.onInputChange("",{action:"menu-close"}),n.onMenuClose()):a&&r&&n.clearValue();break;case" ":if(s)return;if(!c){n.openMenu("first");break}if(!f)return;n.selectOption(f);break;case"ArrowUp":c?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":c?n.focusOption("down"):n.openMenu("first");break;case"PageUp":if(!c)return;n.focusOption("pageup");break;case"PageDown":if(!c)return;n.focusOption("pagedown");break;case"Home":if(!c)return;n.focusOption("first");break;case"End":if(!c)return;n.focusOption("last");break;default:return}e.preventDefault()}},n.buildMenuOptions=function(e,t){var i=e.inputValue,o=void 0===i?"":i,r=e.options,s=function(e,i){var r=n.isOptionDisabled(e,t),s=n.isOptionSelected(e,t),a=n.getOptionLabel(e),l=n.getOptionValue(e);if(!(n.shouldHideSelectedOptions()&&s||!n.filterOption({label:a,value:l,data:e},o))){var c=r?void 0:function(){return n.onOptionHover(e)},u=r?void 0:function(){return n.selectOption(e)},h=n.getElementId("option")+"-"+i;return{innerProps:{id:h,onClick:u,onMouseMove:c,onMouseOver:c,tabIndex:-1},data:e,isDisabled:r,isSelected:s,key:h,label:a,type:"option",value:l}}};return r.reduce((function(e,t,i){if(t.options){n.hasGroups||(n.hasGroups=!0);var o=t.options.map((function(t,n){var o=s(t,i+"-"+n);return o&&e.focusable.push(t),o})).filter(Boolean);if(o.length){var r=n.getElementId("group")+"-"+i;e.render.push({type:"group",key:r,data:t,options:o})}}else{var a=s(t,""+i);a&&(e.render.push(a),e.focusable.push(t))}return e}),{render:[],focusable:[]})};var i=t.value;n.cacheComponents=Xe(n.cacheComponents,xe).bind(_t(_t(n))),n.cacheComponents(t.components),n.instancePrefix="react-select-"+(n.props.instanceId||++Lt);var o=J(i);n.buildMenuOptions=Xe(n.buildMenuOptions,(function(e,t){var n=e,i=n[0],o=n[1],r=t,s=r[0];return xe(o,r[1])&&xe(i.inputValue,s.inputValue)&&xe(i.options,s.options)})).bind(_t(_t(n)));var r=t.menuIsOpen?n.buildMenuOptions(t,o):{render:[],focusable:[]};return n.state.menuOptions=r,n.state.selectValue=o,n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=i.prototype;return o.componentDidMount=function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()},o.UNSAFE_componentWillReceiveProps=function(e){var t=this.props,n=t.options,i=t.value,o=t.menuIsOpen,r=t.inputValue;if(this.cacheComponents(e.components),e.value!==i||e.options!==n||e.menuIsOpen!==o||e.inputValue!==r){var s=J(e.value),a=e.menuIsOpen?this.buildMenuOptions(e,s):{render:[],focusable:[]},l=this.getNextFocusedValue(s),c=this.getNextFocusedOption(a.focusable);this.setState({menuOptions:a,selectValue:s,focusedOption:c,focusedValue:l})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)},o.componentDidUpdate=function(e){var t,n,i,o,r,s=this.props,a=s.isDisabled,l=s.menuIsOpen,c=this.state.isFocused;(c&&!a&&e.isDisabled||c&&l&&!e.menuIsOpen)&&this.focusInput(),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,i=t.getBoundingClientRect(),o=n.getBoundingClientRect(),r=n.offsetHeight/3,o.bottom+r>i.bottom?te(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+r,t.scrollHeight)):o.top-r<i.top&&te(t,Math.max(n.offsetTop-r,0)),this.scrollToFocusedOptionOnUpdate=!1)},o.componentWillUnmount=function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)},o.onMenuOpen=function(){this.props.onMenuOpen()},o.onMenuClose=function(){var e=this.props,t=e.isSearchable,n=e.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:t,isMulti:n}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()},o.onInputChange=function(e,t){this.props.onInputChange(e,t)},o.focusInput=function(){this.inputRef&&this.inputRef.focus()},o.blurInput=function(){this.inputRef&&this.inputRef.blur()},o.openMenu=function(e){var t=this,n=this.state,i=n.selectValue,o=n.isFocused,r=this.buildMenuOptions(this.props,i),s=this.props.isMulti,a="first"===e?0:r.focusable.length-1;if(!s){var l=r.focusable.indexOf(i[0]);l>-1&&(a=l)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.setState({menuOptions:r,focusedValue:null,focusedOption:r.focusable[a]},(function(){t.onMenuOpen(),t.announceAriaLiveContext({event:"menu"})}))},o.focusValue=function(e){var t=this.props,n=t.isMulti,i=t.isSearchable,o=this.state,r=o.selectValue,s=o.focusedValue;if(n){this.setState({focusedOption:null});var a=r.indexOf(s);s||(a=-1,this.announceAriaLiveContext({event:"value"}));var l=r.length-1,c=-1;if(r.length){switch(e){case"previous":c=0===a?0:-1===a?l:a-1;break;case"next":a>-1&&a<l&&(c=a+1)}-1===c&&this.announceAriaLiveContext({event:"input",context:{isSearchable:i,isMulti:n}}),this.setState({inputIsHidden:-1!==c,focusedValue:r[c]})}}},o.focusOption=function(e){void 0===e&&(e="first");var t=this.props.pageSize,n=this.state,i=n.focusedOption,o=n.menuOptions.focusable;if(o.length){var r=0,s=o.indexOf(i);i||(s=-1,this.announceAriaLiveContext({event:"menu"})),"up"===e?r=s>0?s-1:o.length-1:"down"===e?r=(s+1)%o.length:"pageup"===e?(r=s-t)<0&&(r=0):"pagedown"===e?(r=s+t)>o.length-1&&(r=o.length-1):"last"===e&&(r=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[r],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:Ct(o[r])}})}},o.getTheme=function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Et):$t({},Et,this.props.theme):Et},o.getCommonProps=function(){var e=this.clearValue,t=this.getStyles,n=this.setValue,i=this.selectOption,o=this.props,r=o.classNamePrefix,s=o.isMulti,a=o.isRtl,l=o.options,c=this.state.selectValue,u=this.hasValue();return{cx:Q.bind(null,r),clearValue:e,getStyles:t,getValue:function(){return c},hasValue:u,isMulti:s,isRtl:a,options:l,selectOption:i,setValue:n,selectProps:o,theme:this.getTheme()}},o.getNextFocusedValue=function(e){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var t=this.state,n=t.focusedValue,i=t.selectValue.indexOf(n);if(i>-1){if(e.indexOf(n)>-1)return n;if(i<e.length)return e[i]}return null},o.getNextFocusedOption=function(e){var t=this.state.focusedOption;return t&&e.indexOf(t)>-1?t:e[0]},o.hasValue=function(){return this.state.selectValue.length>0},o.hasOptions=function(){return!!this.state.menuOptions.render.length},o.countOptions=function(){return this.state.menuOptions.focusable.length},o.isClearable=function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t},o.isOptionDisabled=function(e,t){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(e,t)},o.isOptionSelected=function(e,t){var n=this;if(t.indexOf(e)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(e,t);var i=this.getOptionValue(e);return t.some((function(e){return n.getOptionValue(e)===i}))},o.filterOption=function(e,t){return!this.props.filterOption||this.props.filterOption(e,t)},o.formatOptionLabel=function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,i=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:i})}return this.getOptionLabel(e)},o.formatGroupLabel=function(e){return this.props.formatGroupLabel(e)},o.startListeningComposition=function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))},o.stopListeningComposition=function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))},o.startListeningToTouch=function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))},o.stopListeningToTouch=function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))},o.constructAriaLiveMessage=function(){var e=this.state,t=e.ariaLiveContext,n=e.selectValue,i=e.focusedValue,o=e.focusedOption,r=this.props,s=r.options,a=r.menuIsOpen,l=r.inputValue,c=r.screenReaderStatus;return(i?function(e){var t=e.focusedValue,n=e.getOptionLabel,i=e.selectValue;return"value "+n(t)+" focused, "+(i.indexOf(t)+1)+" of "+i.length+"."}({focusedValue:i,getOptionLabel:this.getOptionLabel,selectValue:n}):"")+" "+(o&&a?function(e){var t=e.focusedOption,n=e.getOptionLabel,i=e.options;return"option "+n(t)+" focused"+(t.isDisabled?" disabled":"")+", "+(i.indexOf(t)+1)+" of "+i.length+"."}({focusedOption:o,getOptionLabel:this.getOptionLabel,options:s}):"")+" "+function(e){var t=e.inputValue;return e.screenReaderMessage+(t?" for search term "+t:"")+"."}({inputValue:l,screenReaderMessage:c({count:this.countOptions()})})+" "+t},o.renderInput=function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,i=e.inputId,o=e.inputValue,r=e.tabIndex,a=this.components.Input,l=this.state.inputIsHidden,c=i||this.getElementId("input"),u={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};if(!n)return s.a.createElement(st,$t({id:c,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Y,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:r,value:""},u));var h=this.commonProps,d=h.cx,p=h.theme,f=h.selectProps;return s.a.createElement(a,$t({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:d,getStyles:this.getStyles,id:c,innerRef:this.getInputRef,isDisabled:t,isHidden:l,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:f,spellCheck:"false",tabIndex:r,theme:p,type:"text",value:o},u))},o.renderPlaceholderOrValue=function(){var e=this,t=this.components,n=t.MultiValue,i=t.MultiValueContainer,o=t.MultiValueLabel,r=t.MultiValueRemove,a=t.SingleValue,l=t.Placeholder,c=this.commonProps,u=this.props,h=u.controlShouldRenderValue,d=u.isDisabled,p=u.isMulti,f=u.inputValue,g=u.placeholder,m=this.state,v=m.selectValue,b=m.focusedValue,y=m.isFocused;if(!this.hasValue()||!h)return f?null:s.a.createElement(l,$t({},c,{key:"placeholder",isDisabled:d,isFocused:y}),g);if(p)return v.map((function(t,a){var l=t===b;return s.a.createElement(n,$t({},c,{components:{Container:i,Label:o,Remove:r},isFocused:l,isDisabled:d,key:e.getOptionValue(t),index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));if(f)return null;var w=v[0];return s.a.createElement(a,$t({},c,{data:w,isDisabled:d}),this.formatOptionLabel(w,"value"))},o.renderClearIndicator=function(){var e=this.components.ClearIndicator,t=this.commonProps,n=this.props,i=n.isDisabled,o=n.isLoading,r=this.state.isFocused;if(!this.isClearable()||!e||i||!this.hasValue()||o)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return s.a.createElement(e,$t({},t,{innerProps:a,isFocused:r}))},o.renderLoadingIndicator=function(){var e=this.components.LoadingIndicator,t=this.commonProps,n=this.props,i=n.isDisabled,o=n.isLoading,r=this.state.isFocused;if(!e||!o)return null;return s.a.createElement(e,$t({},t,{innerProps:{"aria-hidden":"true"},isDisabled:i,isFocused:r}))},o.renderIndicatorSeparator=function(){var e=this.components,t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var i=this.commonProps,o=this.props.isDisabled,r=this.state.isFocused;return s.a.createElement(n,$t({},i,{isDisabled:o,isFocused:r}))},o.renderDropdownIndicator=function(){var e=this.components.DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,i=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return s.a.createElement(e,$t({},t,{innerProps:o,isDisabled:n,isFocused:i}))},o.renderMenu=function(){var e=this,t=this.components,n=t.Group,i=t.GroupHeading,o=t.Menu,r=t.MenuList,a=t.MenuPortal,l=t.LoadingMessage,c=t.NoOptionsMessage,u=t.Option,h=this.commonProps,d=this.state,p=d.focusedOption,f=d.menuOptions,g=this.props,m=g.captureMenuScroll,v=g.inputValue,b=g.isLoading,y=g.loadingMessage,w=g.minMenuHeight,x=g.maxMenuHeight,S=g.menuIsOpen,C=g.menuPlacement,k=g.menuPosition,E=g.menuPortalTarget,$=g.menuShouldBlockScroll,_=g.menuShouldScrollIntoView,A=g.noOptionsMessage,O=g.onMenuScrollToTop,L=g.onMenuScrollToBottom;if(!S)return null;var R,T=function(t){var n=p===t.data;return t.innerRef=n?e.getFocusedOptionRef:void 0,s.a.createElement(u,$t({},h,t,{isFocused:n}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())R=f.render.map((function(t){if("group"===t.type){t.type;var o=function(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["type"]),r=t.key+"-heading";return s.a.createElement(n,$t({},h,o,{Heading:i,headingProps:{id:r},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return T(e)})))}if("option"===t.type)return T(t)}));else if(b){var M=y({inputValue:v});if(null===M)return null;R=s.a.createElement(l,h,M)}else{var I=A({inputValue:v});if(null===I)return null;R=s.a.createElement(c,h,I)}var P={minMenuHeight:w,maxMenuHeight:x,menuPlacement:C,menuPosition:k,menuShouldScrollIntoView:_},F=s.a.createElement(he,$t({},h,P),(function(t){var n=t.ref,i=t.placerProps,a=i.placement,l=i.maxHeight;return s.a.createElement(o,$t({},h,P,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:b,placement:a}),s.a.createElement(wt,{isEnabled:m,onTopArrive:O,onBottomArrive:L},s.a.createElement(bt,{isEnabled:$},s.a.createElement(r,$t({},h,{innerRef:e.getMenuListRef,isLoading:b,maxHeight:l}),R))))}));return E||"fixed"===k?s.a.createElement(a,$t({},h,{appendTo:E,controlElement:this.controlRef,menuPlacement:C,menuPosition:k}),F):F},o.renderFormField=function(){var e=this,t=this.props,n=t.delimiter,i=t.isDisabled,o=t.isMulti,r=t.name,a=this.state.selectValue;if(r&&!i){if(o){if(n){var l=a.map((function(t){return e.getOptionValue(t)})).join(n);return s.a.createElement("input",{name:r,type:"hidden",value:l})}var c=a.length>0?a.map((function(t,n){return s.a.createElement("input",{key:"i-"+n,name:r,type:"hidden",value:e.getOptionValue(t)})})):s.a.createElement("input",{name:r,type:"hidden"});return s.a.createElement("div",null,c)}var u=a[0]?this.getOptionValue(a[0]):"";return s.a.createElement("input",{name:r,type:"hidden",value:u})}},o.renderLiveRegion=function(){return this.state.isFocused?s.a.createElement(ot,{"aria-live":"polite"},s.a.createElement("p",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),s.a.createElement("p",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null},o.render=function(){var e=this.components,t=e.Control,n=e.IndicatorsContainer,i=e.SelectContainer,o=e.ValueContainer,r=this.props,a=r.className,l=r.id,c=r.isDisabled,u=r.menuIsOpen,h=this.state.isFocused,d=this.commonProps=this.getCommonProps();return s.a.createElement(i,$t({},d,{className:a,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:h}),this.renderLiveRegion(),s.a.createElement(t,$t({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:h,menuIsOpen:u}),s.a.createElement(o,$t({},d,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),s.a.createElement(n,$t({},d,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())},i}(r.Component);function Tt(){return(Tt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}Rt.defaultProps=Ot;var Mt={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},It=function(e){var t,n;return n=t=function(t){var n,i;function o(){for(var e,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(e=t.call.apply(t,[this].concat(i))||this).select=void 0,e.state={inputValue:void 0!==e.props.inputValue?e.props.inputValue:e.props.defaultInputValue,menuIsOpen:void 0!==e.props.menuIsOpen?e.props.menuIsOpen:e.props.defaultMenuIsOpen,value:void 0!==e.props.value?e.props.value:e.props.defaultValue},e.onChange=function(t,n){e.callProp("onChange",t,n),e.setState({value:t})},e.onInputChange=function(t,n){var i=e.callProp("onInputChange",t,n);e.setState({inputValue:void 0!==i?i:t})},e.onMenuOpen=function(){e.callProp("onMenuOpen"),e.setState({menuIsOpen:!0})},e.onMenuClose=function(){e.callProp("onMenuClose"),e.setState({menuIsOpen:!1})},e}i=t,(n=o).prototype=Object.create(i.prototype),n.prototype.constructor=n,n.__proto__=i;var r=o.prototype;return r.focus=function(){this.select.focus()},r.blur=function(){this.select.blur()},r.getProp=function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]},r.callProp=function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return(t=this.props)[e].apply(t,i)}},r.render=function(){var t=this,n=this.props,i=(n.defaultInputValue,n.defaultMenuIsOpen,n.defaultValue,function(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(n,["defaultInputValue","defaultMenuIsOpen","defaultValue"]));return s.a.createElement(e,Tt({},i,{ref:function(e){t.select=e},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))},o}(r.Component),t.defaultProps=Mt,n};r.Component;var Pt=It(Rt);function Ft(){return(Ft=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var Dt,jt,Nt,Bt={cacheOptions:!1,defaultOptions:!1,filterOption:null,isLoading:!1},zt=It(Rt),Wt=(Dt=zt,Nt=jt=function(e){var t,n;function i(t){var n;return(n=e.call(this)||this).select=void 0,n.lastRequest=void 0,n.mounted=!1,n.optionsCache={},n.handleInputChange=function(e,t){var i=n.props,o=i.cacheOptions,r=function(e,t,n){if(n){var i=n(e,t);if("string"==typeof i)return i}return e}(e,t,i.onInputChange);if(!r)return delete n.lastRequest,void n.setState({inputValue:"",loadedInputValue:"",loadedOptions:[],isLoading:!1,passEmptyOptions:!1});if(o&&n.optionsCache[r])n.setState({inputValue:r,loadedInputValue:r,loadedOptions:n.optionsCache[r],isLoading:!1,passEmptyOptions:!1});else{var s=n.lastRequest={};n.setState({inputValue:r,isLoading:!0,passEmptyOptions:!n.state.loadedInputValue},(function(){n.loadOptions(r,(function(e){n.mounted&&(e&&(n.optionsCache[r]=e),s===n.lastRequest&&(delete n.lastRequest,n.setState({isLoading:!1,loadedInputValue:r,loadedOptions:e||[],passEmptyOptions:!1})))}))}))}return r},n.state={defaultOptions:Array.isArray(t.defaultOptions)?t.defaultOptions:void 0,inputValue:void 0!==t.inputValue?t.inputValue:"",isLoading:!0===t.defaultOptions,loadedOptions:[],passEmptyOptions:!1},n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=i.prototype;return o.componentDidMount=function(){var e=this;this.mounted=!0;var t=this.props.defaultOptions,n=this.state.inputValue;!0===t&&this.loadOptions(n,(function(t){if(e.mounted){var n=!!e.lastRequest;e.setState({defaultOptions:t||[],isLoading:n})}}))},o.UNSAFE_componentWillReceiveProps=function(e){e.cacheOptions!==this.props.cacheOptions&&(this.optionsCache={}),e.defaultOptions!==this.props.defaultOptions&&this.setState({defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0})},o.componentWillUnmount=function(){this.mounted=!1},o.focus=function(){this.select.focus()},o.blur=function(){this.select.blur()},o.loadOptions=function(e,t){var n=this.props.loadOptions;if(!n)return t();var i=n(e,t);i&&"function"==typeof i.then&&i.then(t,(function(){return t()}))},o.render=function(){var e=this,t=this.props,n=(t.loadOptions,t.isLoading),i=function(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["loadOptions","isLoading"]),o=this.state,r=o.defaultOptions,a=o.inputValue,l=o.isLoading,c=o.loadedInputValue,u=o.loadedOptions,h=o.passEmptyOptions?[]:a&&c?u:r||[];return s.a.createElement(Dt,Ft({},i,{ref:function(t){e.select=t},options:h,isLoading:l||n,onInputChange:this.handleInputChange}))},i}(r.Component),jt.defaultProps=Bt,Nt);function Ht(){return(Ht=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var Vt=function(e,t){void 0===e&&(e="");var n=String(e).toLowerCase(),i=String(t.value).toLowerCase(),o=String(t.label).toLowerCase();return i===n||o===n},Ut=Ht({allowCreateWhileLoading:!1,createOptionPosition:"last"},{formatCreateLabel:function(e){return'Create "'+e+'"'},isValidNewOption:function(e,t,n){return!(!e||t.some((function(t){return Vt(e,t)}))||n.some((function(t){return Vt(e,t)})))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}}),Gt=It(function(e){var t,n;return n=t=function(t){var n,i;function o(e){var n;(n=t.call(this,e)||this).select=void 0,n.onChange=function(e,t){var i=n.props,o=i.getNewOptionData,r=i.inputValue,s=i.isMulti,a=i.onChange,l=i.onCreateOption,c=i.value,u=i.name;if("select-option"!==t.action)return a(e,t);var h=n.state.newOption,d=Array.isArray(e)?e:[e];if(d[d.length-1]!==h)a(e,t);else if(l)l(r);else{var p=o(r,r),f={action:"create-option",name:u};a(s?[].concat(J(c),[p]):p,f)}};var i=e.options||[];return n.state={newOption:void 0,options:i},n}i=t,(n=o).prototype=Object.create(i.prototype),n.prototype.constructor=n,n.__proto__=i;var r=o.prototype;return r.UNSAFE_componentWillReceiveProps=function(e){var t=e.allowCreateWhileLoading,n=e.createOptionPosition,i=e.formatCreateLabel,o=e.getNewOptionData,r=e.inputValue,s=e.isLoading,a=e.isValidNewOption,l=e.value,c=e.options||[],u=this.state.newOption;u=a(r,J(l),c)?o(r,i(r)):void 0,this.setState({newOption:u,options:!t&&s||!u?c:"first"===n?[u].concat(c):[].concat(c,[u])})},r.focus=function(){this.select.focus()},r.blur=function(){this.select.blur()},r.render=function(){var t=this,n=this.state.options;return s.a.createElement(e,Ht({},this.props,{ref:function(e){t.select=e},options:n,onChange:this.onChange}))},o}(r.Component),t.defaultProps=Ut,n}(Rt)),Kt=n(78),qt=n.n(Kt);function Yt(e){return(Yt="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)}function Xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Qt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xt(Object(n),!0).forEach((function(t){Jt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function en(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function tn(e,t){return(tn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function nn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=sn(e);if(t){var o=sn(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return on(this,n)}}function on(e,t){return!t||"object"!==Yt(t)&&"function"!=typeof t?rn(e):t}function rn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sn(e){return(sn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var an=qe.Option,ln=window,cn=ln.jQuery,un=ln.ajaxurl,hn=ln.VPGutenbergVariables,dn=wp.i18n.__,pn=wp.element.Component,fn={},gn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&tn(e,t)}(a,e);var t,n,r,s=nn(a);function a(){var e;Zt(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var l=(e=s.call.apply(s,[this].concat(n))).props.callback;return e.state={options:{},ajaxStatus:!!l},e.getOptions=e.getOptions.bind(rn(e)),e.getDefaultValue=e.getDefaultValue.bind(rn(e)),e.findValueData=e.findValueData.bind(rn(e)),e.requestAjax=e.requestAjax.bind(rn(e)),e.requestAjaxDebounce=Object(i.debounce)(300,Object(o.a)(e.requestAjax)),e}return t=a,(n=[{key:"componentDidMount",value:function(){var e=this;this.props.callback&&this.requestAjax({},(function(t){t.options&&e.setState({options:t.options})}))}},{key:"getOptions",value:function(){var e=this.props.controlName;return fn[e]?fn[e]:Object.keys(this.state.options).length?this.state.options:this.props.options}},{key:"getDefaultValue",value:function(){var e=this,t=this.props,n=t.value,i=t.isMultiple,o=null;if(i){if(!n&&"string"!=typeof n||!n.length)return o;o=[],n.forEach((function(t){o.push(e.findValueData(t))}))}else{if(!n&&"string"!=typeof n)return o;o=this.findValueData(n)}return o}},{key:"findValueData",value:function(e){var t={value:e,label:e},n=this.getOptions();return n&&Object.keys(n).forEach((function(i){var o=n[i];i===e&&("string"==typeof o?t.label=o:t=o)})),t}},{key:"requestAjax",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=this.props,r=o.controlName,s=o.attributes;if(!this.isAJAXinProgress){this.isAJAXinProgress=!0,i&&this.setState({ajaxStatus:"progress"});var a=Qt({action:"vp_dynamic_control_callback",nonce:hn.nonce,vp_control_name:r,vp_attributes:s},t);cn.ajax({url:un,method:"POST",dataType:"json",data:a,complete:function(t){var o=t.responseJSON;n&&o.response&&(o.response.options&&(fn[r]=Qt(Qt({},fn[r]),o.response.options)),n(o.response)),i&&e.setState({ajaxStatus:!0}),e.isAJAXinProgress=!1}})}}},{key:"prepareOptions",value:function(e){return Object.keys(e||{}).map((function(t){var n=e[t];return"object"===Yt(n)?{value:n.value,label:n.label}:{value:t,label:e[t]}}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.onChange,i=t.isMultiple,o=t.isSearchable,r=t.isCreatable,s=t.callback,a=this.state.ajaxStatus,l=!!s&&o,c=a&&"progress"===a,u={className:"vpf-component-select",styles:qt.a,components:{Option:function(e){var t=e.data;return wp.element.createElement(an,e,void 0!==t.img?wp.element.createElement("div",{className:"vpf-component-select-option-img"},t.img?wp.element.createElement("img",{src:t.img,alt:t.label}):""):"",wp.element.createElement("span",{className:"vpf-component-select-option-label"},t.label),t.category?wp.element.createElement("div",{className:"vpf-component-select-option-category"},t.category):"")}},value:this.getDefaultValue(),options:this.prepareOptions(this.getOptions()),onChange:function(e){if(i)if(Array.isArray(e)){var t=[];e.forEach((function(e){t.push(e?e.value:"")})),n(t)}else n([]);else n(e?e.value:"")},isMulti:i,isSearchable:o,isLoading:c,isClearable:!1,placeholder:dn(o?"Type to search...":"Select...","@@text_domain")};return r?(u.placeholder=dn("Type and press Enter...","@@text_domain"),u.isSearchable=!0,wp.element.createElement(Gt,u)):l?(u.loadOptions=function(t,n){e.requestAjaxDebounce({q:t},(function(e){var t=[];e&&e.options&&Object.keys(e.options).forEach((function(n){t.push(e.options[n])})),n(t.length?t:null)}),!1)},u.cacheOptions=!0,u.defaultOptions=u.options,delete u.options,delete u.isLoading,wp.element.createElement(Wt,u)):wp.element.createElement(Pt,u)}}])&&en(t.prototype,n),r&&en(t,r),a}(pn)},function(e,t,n){"use strict";n(213);var i=n(3),o=n(4),r=n(80),s=n.n(r),a=n(2),l=n.n(a),c=(n(216),n(29)),u=window.VPGutenbergVariables.controls;function h(e){var t="",n="";if(void 0!==e.block_id&&e.block_id?n=e.block_id:void 0!==e.id&&e.id&&(n=e.id),!n)return t;if(n=".vp-id-".concat(n),Object.keys(u).forEach((function(i){var o=u[i],r=void 0!==o.style&&o.style;r&&void 0!==o.condition&&o.condition.length&&(r=Object(c.a)(o.condition,e)),r&&o.style.forEach((function(i){t+=function(e,t,n){var i="";return e&&void 0!==t&&""!==t&&null!==t&&void 0!==n.property?(void 0!==n.mask&&(t=n.mask.replace("$",t)),void 0!==n.element&&/\$/g.test(n.element)?e=n.element.replace("$",e):e+=void 0!==n.element?" ".concat(n.element):"",i="".concat(e," { ").concat(n.property,": ").concat(t,"; } ")):i}(n,e[o.name],i)}))})),void 0!==e.custom_css&&e.custom_css){var i=e.custom_css;i=(i=i.replace(/selector/g,n)).replace(/<\//g,"&lt;/"),t+=i}return t}function d(e){return(d="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)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?b(e):t}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var w=window.jQuery,x=window.VPAdminGutenbergVariables,S=wp.hooks.applyFilters,C=wp.element,k=C.Component,E=C.Fragment,$=C.createRef,_=wp.data.withSelect,A=wp.components.Spinner,O=1,L=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(c,e);var t,n,r,a=m(c);function c(){var e;p(this,c);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=a.call.apply(a,[this].concat(n))).state={loading:!0,uniqueId:"vpf-preview-".concat(O),currentIframeHeight:0,latestIframeHeight:0},O+=1,e.frameRef=$(),e.formRef=$(),e.maybePreviewTypeChanged=e.maybePreviewTypeChanged.bind(b(e)),e.maybeAttributesChanged=e.maybeAttributesChanged.bind(b(e)),e.onFrameLoad=e.onFrameLoad.bind(b(e)),e.maybeReload=e.maybeReload.bind(b(e)),e.maybeReloadDebounce=Object(i.debounce)(300,Object(o.a)(e.maybeReload.bind(b(e)))),e.maybeResizePreviews=e.maybeResizePreviews.bind(b(e)),e.maybeResizePreviewsThrottle=Object(i.throttle)(100,Object(o.a)(e.maybeResizePreviews)),e.updateIframeHeight=e.updateIframeHeight.bind(b(e)),e.updateIframeHeightThrottle=Object(i.throttle)(100,Object(o.a)(e.updateIframeHeight)),e.printInput=e.printInput.bind(b(e)),e}return t=c,(n=[{key:"componentDidMount",value:function(){var e=this,t=e.props.clientId;s()({interval:10,warningTimeout:6e4,checkOrigin:!1,onMessage:function(e){"clicked"===e.message&&(wp.data.dispatch("core/block-editor").selectBlock(t),window.focus())},onResized:function(t){var n=t.height;e.updateIframeHeightThrottle("".concat(n,"px"))}},e.frameRef.current),e.frameRef.current.addEventListener("load",e.onFrameLoad),window.addEventListener("resize",e.maybeResizePreviewsThrottle),e.maybeReload()}},{key:"componentDidUpdate",value:function(e){this.maybePreviewTypeChanged(e),this.maybeAttributesChanged(e)}},{key:"componentWillUnmount",value:function(){this.frameRef.current.removeEventListener("load",this.onFrameLoad),window.removeEventListener("resize",this.maybeResizePreviewsThrottle),this.frameRef.current.iframeResizer&&(this.frameRef.current.iframeResizer.close(),this.frameRef.current.iframeResizer.removeListeners())}},{key:"onFrameLoad",value:function(e){var t=this;this.frameWindow=e.target.contentWindow,this.frameJQuery=e.target.contentWindow.jQuery,this.frameJQuery&&(this.$framePortfolio=this.frameJQuery(".vp-portfolio"),this.maybeResizePreviews(),this.frameTimeout&&clearTimeout(this.frameTimeout),this.frameTimeout=setTimeout((function(){t.setState({loading:!1})}),300))}},{key:"maybePreviewTypeChanged",value:function(e){e.previewDeviceType!==this.props.previewDeviceType&&this.maybeResizePreviews()}},{key:"maybeAttributesChanged",value:function(e){if(!this.busyReload){this.busyReload=!0;var t=this.props.attributes,n=e.attributes,i=this.frameRef.current,o={};if(Object.keys(t).forEach((function(e){var i=t[e];void 0!==n[e]&&n[e]===i||(o[e]=i)})),Object.keys(o).length){var r=!1;Object.keys(o).forEach((function(e){var t;r=r||!(void 0!==u[t=e]&&void 0!==u[t].style&&u[t].style.length)}));var s=S("vpf.editor.changed-attributes",{attributes:o,reload:r,$frame:this.frameRef.current,frameWindow:this.frameWindow,frameJQuery:this.frameJQuery,$framePortfolio:this.$framePortfolio});s.reload||(s.frameWindow&&s.frameWindow.vp_preview_post_data&&(s.frameWindow.vp_preview_post_data[s.name]=s.value),i.iFrameResizer&&t.block_id&&i.iFrameResizer.sendMessage({name:"dynamic-css",blockId:t.block_id,styles:h(t)})),s.reload&&this.maybeReloadDebounce(),this.busyReload=!1}else this.busyReload=!1}}},{key:"maybeReload",value:function(){var e=0;this.frameRef.current&&(e=this.state.currentIframeHeight),this.setState({loading:!0,latestIframeHeight:e}),this.formRef.current.submit()}},{key:"maybeResizePreviews",value:function(){var e=w(".editor-styles-wrapper").width();if(e&&this.frameRef.current){var t=this.frameRef.current,n=w(t),i=n.closest(".visual-portfolio-gutenberg-preview").width();n.css({width:e}),t.iFrameResizer&&(t.iFrameResizer.sendMessage({name:"resize",width:i}),t.iFrameResizer.resize())}}},{key:"updateIframeHeight",value:function(e){this.setState({currentIframeHeight:e})}},{key:"printInput",value:function(e,t){var n=this,i={key:e,type:"text",name:e,value:t};if("number"==typeof t)i.type="number";else if("boolean"==typeof t)i.type="number",i.value=t?1:0;else if("object"===d(t)&&null!==t)return wp.element.createElement(E,null,Object.keys(t).map((function(i){return n.printInput("".concat(e,"[").concat(i,"]"),t[i])})));return wp.element.createElement("input",i)}},{key:"render",value:function(){var e=this,t=this.props.attributes,n=this.state,i=n.loading,o=n.uniqueId,r=n.currentIframeHeight,s=n.latestIframeHeight,a=t.id,c=t.content_source;return wp.element.createElement("div",{className:l()("visual-portfolio-gutenberg-preview",i?"visual-portfolio-gutenberg-preview-loading":""),style:{height:i?s:r}},wp.element.createElement("div",{className:"visual-portfolio-gutenberg-preview-inner"},wp.element.createElement("form",{action:x.preview_url,target:o,method:"POST",style:{display:"none"},ref:this.formRef},wp.element.createElement("input",{type:"hidden",name:"vp_preview_frame",value:"true"}),wp.element.createElement("input",{type:"hidden",name:"vp_preview_type",value:"gutenberg"}),"saved"===c?wp.element.createElement("input",{type:"text",name:"vp_id",value:a}):wp.element.createElement(E,null,wp.element.createElement("input",{type:"hidden",name:"vp_content_source",value:c}),Object.keys(t).map((function(n){var i=t[n];return e.printInput("vp_".concat(n),i)})))),wp.element.createElement("iframe",{title:"vp-preview",id:o,name:o,allowtransparency:"true",ref:this.frameRef})),i?wp.element.createElement(A,null):"")}}])&&f(t.prototype,n),r&&f(t,r),c}(k);t.a=_((function(e){var t=e("core/edit-post").__experimentalGetPreviewDeviceType;return{previewDeviceType:t?t():"desktop"}}))(L)},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){(function(e,n){function i(e){return(i="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)}var o="[object Arguments]",r="[object Map]",s="[object Object]",a="[object Set]",l=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u[o]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u["[object Function]"]=u[r]=u["[object Number]"]=u[s]=u["[object RegExp]"]=u[a]=u["[object String]"]=u["[object WeakMap]"]=!1;var h="object"==(void 0===e?"undefined":i(e))&&e&&e.Object===Object&&e,d="object"==("undefined"==typeof self?"undefined":i(self))&&self&&self.Object===Object&&self,p=h||d||Function("return this")(),f="object"==i(t)&&t&&!t.nodeType&&t,g=f&&"object"==i(n)&&n&&!n.nodeType&&n,m=g&&g.exports===f,v=m&&h.process,b=function(){try{return v&&v.binding&&v.binding("util")}catch(e){}}(),y=b&&b.isTypedArray;function w(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}function x(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function S(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var C,k,E,$=Array.prototype,_=Function.prototype,A=Object.prototype,O=p["__core-js_shared__"],L=_.toString,R=A.hasOwnProperty,T=(C=/[^.]+$/.exec(O&&O.keys&&O.keys.IE_PROTO||""))?"Symbol(src)_1."+C:"",M=A.toString,I=RegExp("^"+L.call(R).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),P=m?p.Buffer:void 0,F=p.Symbol,D=p.Uint8Array,j=A.propertyIsEnumerable,N=$.splice,B=F?F.toStringTag:void 0,z=Object.getOwnPropertySymbols,W=P?P.isBuffer:void 0,H=(k=Object.keys,E=Object,function(e){return k(E(e))}),V=be(p,"DataView"),U=be(p,"Map"),G=be(p,"Promise"),K=be(p,"Set"),q=be(p,"WeakMap"),Y=be(Object,"create"),X=Se(V),Q=Se(U),J=Se(G),Z=Se(K),ee=Se(q),te=F?F.prototype:void 0,ne=te?te.valueOf:void 0;function ie(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function oe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function re(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function se(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new re;++t<n;)this.add(e[t])}function ae(e){var t=this.__data__=new oe(e);this.size=t.size}function le(e,t){var n=Ee(e),i=!n&&ke(e),o=!n&&!i&&$e(e),r=!n&&!i&&!o&&Re(e),s=n||i||o||r,a=s?function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}(e.length,String):[],l=a.length;for(var c in e)!t&&!R.call(e,c)||s&&("length"==c||o&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||xe(c,l))||a.push(c);return a}function ce(e,t){for(var n=e.length;n--;)if(Ce(e[n][0],t))return n;return-1}function ue(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":B&&B in Object(e)?function(e){var t=R.call(e,B),n=e[B];try{e[B]=void 0;var i=!0}catch(e){}var o=M.call(e);i&&(t?e[B]=n:delete e[B]);return o}(e):function(e){return M.call(e)}(e)}function he(e){return Le(e)&&ue(e)==o}function de(e,t,n,i,l){return e===t||(null==e||null==t||!Le(e)&&!Le(t)?e!=e&&t!=t:function(e,t,n,i,l,c){var u=Ee(e),h=Ee(t),d=u?"[object Array]":we(e),p=h?"[object Array]":we(t),f=(d=d==o?s:d)==s,g=(p=p==o?s:p)==s,m=d==p;if(m&&$e(e)){if(!$e(t))return!1;u=!0,f=!1}if(m&&!f)return c||(c=new ae),u||Re(e)?ge(e,t,n,i,l,c):function(e,t,n,i,o,s,l){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!s(new D(e),new D(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Ce(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case r:var c=x;case a:var u=1&i;if(c||(c=S),e.size!=t.size&&!u)return!1;var h=l.get(e);if(h)return h==t;i|=2,l.set(e,t);var d=ge(c(e),c(t),i,o,s,l);return l.delete(e),d;case"[object Symbol]":if(ne)return ne.call(e)==ne.call(t)}return!1}(e,t,d,n,i,l,c);if(!(1&n)){var v=f&&R.call(e,"__wrapped__"),b=g&&R.call(t,"__wrapped__");if(v||b){var y=v?e.value():e,w=b?t.value():t;return c||(c=new ae),l(y,w,n,i,c)}}if(!m)return!1;return c||(c=new ae),function(e,t,n,i,o,r){var s=1&n,a=me(e),l=a.length,c=me(t).length;if(l!=c&&!s)return!1;var u=l;for(;u--;){var h=a[u];if(!(s?h in t:R.call(t,h)))return!1}var d=r.get(e);if(d&&r.get(t))return d==t;var p=!0;r.set(e,t),r.set(t,e);var f=s;for(;++u<l;){h=a[u];var g=e[h],m=t[h];if(i)var v=s?i(m,g,h,t,e,r):i(g,m,h,e,t,r);if(!(void 0===v?g===m||o(g,m,n,i,r):v)){p=!1;break}f||(f="constructor"==h)}if(p&&!f){var b=e.constructor,y=t.constructor;b==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y||(p=!1)}return r.delete(e),r.delete(t),p}(e,t,n,i,l,c)}(e,t,n,i,de,l))}function pe(e){return!(!Oe(e)||function(e){return!!T&&T in e}(e))&&(_e(e)?I:l).test(Se(e))}function fe(e){if(!function(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||A;return e===n}(e))return H(e);var t=[];for(var n in Object(e))R.call(e,n)&&"constructor"!=n&&t.push(n);return t}function ge(e,t,n,i,o,r){var s=1&n,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var c=r.get(e);if(c&&r.get(t))return c==t;var u=-1,h=!0,d=2&n?new se:void 0;for(r.set(e,t),r.set(t,e);++u<a;){var p=e[u],f=t[u];if(i)var g=s?i(f,p,u,t,e,r):i(p,f,u,e,t,r);if(void 0!==g){if(g)continue;h=!1;break}if(d){if(!w(t,(function(e,t){if(s=t,!d.has(s)&&(p===e||o(p,e,n,i,r)))return d.push(t);var s}))){h=!1;break}}else if(p!==f&&!o(p,f,n,i,r)){h=!1;break}}return r.delete(e),r.delete(t),h}function me(e){return function(e,t,n){var i=t(e);return Ee(e)?i:function(e,t){for(var n=-1,i=t.length,o=e.length;++n<i;)e[o+n]=t[n];return e}(i,n(e))}(e,Te,ye)}function ve(e,t){var n=e.__data__;return function(e){var t=i(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function be(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return pe(n)?n:void 0}ie.prototype.clear=function(){this.__data__=Y?Y(null):{},this.size=0},ie.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ie.prototype.get=function(e){var t=this.__data__;if(Y){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return R.call(t,e)?t[e]:void 0},ie.prototype.has=function(e){var t=this.__data__;return Y?void 0!==t[e]:R.call(t,e)},ie.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Y&&void 0===t?"__lodash_hash_undefined__":t,this},oe.prototype.clear=function(){this.__data__=[],this.size=0},oe.prototype.delete=function(e){var t=this.__data__,n=ce(t,e);return!(n<0)&&(n==t.length-1?t.pop():N.call(t,n,1),--this.size,!0)},oe.prototype.get=function(e){var t=this.__data__,n=ce(t,e);return n<0?void 0:t[n][1]},oe.prototype.has=function(e){return ce(this.__data__,e)>-1},oe.prototype.set=function(e,t){var n=this.__data__,i=ce(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},re.prototype.clear=function(){this.size=0,this.__data__={hash:new ie,map:new(U||oe),string:new ie}},re.prototype.delete=function(e){var t=ve(this,e).delete(e);return this.size-=t?1:0,t},re.prototype.get=function(e){return ve(this,e).get(e)},re.prototype.has=function(e){return ve(this,e).has(e)},re.prototype.set=function(e,t){var n=ve(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},se.prototype.add=se.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},se.prototype.has=function(e){return this.__data__.has(e)},ae.prototype.clear=function(){this.__data__=new oe,this.size=0},ae.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ae.prototype.get=function(e){return this.__data__.get(e)},ae.prototype.has=function(e){return this.__data__.has(e)},ae.prototype.set=function(e,t){var n=this.__data__;if(n instanceof oe){var i=n.__data__;if(!U||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new re(i)}return n.set(e,t),this.size=n.size,this};var ye=z?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,i=null==e?0:e.length,o=0,r=[];++n<i;){var s=e[n];t(s,n,e)&&(r[o++]=s)}return r}(z(e),(function(t){return j.call(e,t)})))}:function(){return[]},we=ue;function xe(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||c.test(e))&&e>-1&&e%1==0&&e<t}function Se(e){if(null!=e){try{return L.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ce(e,t){return e===t||e!=e&&t!=t}(V&&"[object DataView]"!=we(new V(new ArrayBuffer(1)))||U&&we(new U)!=r||G&&"[object Promise]"!=we(G.resolve())||K&&we(new K)!=a||q&&"[object WeakMap]"!=we(new q))&&(we=function(e){var t=ue(e),n=t==s?e.constructor:void 0,i=n?Se(n):"";if(i)switch(i){case X:return"[object DataView]";case Q:return r;case J:return"[object Promise]";case Z:return a;case ee:return"[object WeakMap]"}return t});var ke=he(function(){return arguments}())?he:function(e){return Le(e)&&R.call(e,"callee")&&!j.call(e,"callee")},Ee=Array.isArray;var $e=W||function(){return!1};function _e(e){if(!Oe(e))return!1;var t=ue(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ae(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Oe(e){var t=i(e);return null!=e&&("object"==t||"function"==t)}function Le(e){return null!=e&&"object"==i(e)}var Re=y?function(e){return function(t){return e(t)}}(y):function(e){return Le(e)&&Ae(e.length)&&!!u[ue(e)]};function Te(e){return function(e){return null!=e&&Ae(e.length)&&!_e(e)}(e)?le(e):fe(e)}n.exports=function(e,t){return de(e,t)}}).call(this,n(19),n(5)(e))},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});t.editorOptions=["minLines","maxLines","readOnly","highlightActiveLine","tabSize","enableBasicAutocompletion","enableLiveAutocompletion","enableSnippets"];t.editorEvents=["onChange","onFocus","onInput","onBlur","onCopy","onPaste","onSelectionChange","onCursorChange","onScroll","handleOptions","updateRef"];t.getAceInstance=function(){var t;return"undefined"==typeof window?(e.window={},t=n(30),delete e.window):window.ace?(t=window.ace).acequire=window.ace.require||window.ace.acequire:t=n(30),t};t.debounce=function(e,t){var n=null;return function(){var i=this,o=arguments;clearTimeout(n),n=setTimeout((function(){e.apply(i,o)}),t)}}}).call(this,n(19))},function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var s=n(49),a=s.getAceInstance(),l=n(30),c=n(88),u=n(1),h=n(0),d=n(48),p=n(89),f=function(e){function t(t){var n=e.call(this,t)||this;return s.editorEvents.forEach((function(e){n[e]=n[e].bind(n)})),n.debounce=s.debounce,n}return o(t,e),t.prototype.isInShadow=function(e){for(var t=e&&e.parentNode;t;){if("[object ShadowRoot]"===t.toString())return!0;t=t.parentNode}return!1},t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.className,i=t.onBeforeLoad,o=t.mode,r=t.focus,l=t.theme,u=t.fontSize,h=t.value,d=t.defaultValue,f=t.cursorStart,g=t.showGutter,m=t.wrapEnabled,v=t.showPrintMargin,b=t.scrollMargin,y=void 0===b?[0,0,0,0]:b,w=t.keyboardHandler,x=t.onLoad,S=t.commands,C=t.annotations,k=t.markers,E=t.splits;this.editor=a.edit(this.refEditor),this.isInShadow(this.refEditor)&&this.editor.renderer.attachToShadowRoot(),this.editor.setTheme("ace/theme/"+l),i&&i(a);var $=Object.keys(this.props.editorProps),_=new c.Split(this.editor.container,"ace/theme/"+l,E);this.editor.env.split=_,this.splitEditor=_.getEditor(0),this.split=_,this.editor.setShowPrintMargin(!1),this.editor.renderer.setShowGutter(!1);var A=this.splitEditor.$options;this.props.debounceChangePeriod&&(this.onChange=this.debounce(this.onChange,this.props.debounceChangePeriod)),_.forEach((function(t,n){for(var i=0;i<$.length;i++)t[$[i]]=e.props.editorProps[$[i]];var r=p(d,n),c=p(h,n,"");t.session.setUndoManager(new a.UndoManager),t.setTheme("ace/theme/"+l),t.renderer.setScrollMargin(y[0],y[1],y[2],y[3]),t.getSession().setMode("ace/mode/"+o),t.setFontSize(u),t.renderer.setShowGutter(g),t.getSession().setUseWrapMode(m),t.setShowPrintMargin(v),t.on("focus",e.onFocus),t.on("blur",e.onBlur),t.on("input",e.onInput),t.on("copy",e.onCopy),t.on("paste",e.onPaste),t.on("change",e.onChange),t.getSession().selection.on("changeSelection",e.onSelectionChange),t.getSession().selection.on("changeCursor",e.onCursorChange),t.session.on("changeScrollTop",e.onScroll),t.setValue(void 0===r?c:r,f);var b=p(C,n,[]),x=p(k,n,[]);t.getSession().setAnnotations(b),x&&x.length>0&&e.handleMarkers(x,t);for(i=0;i<s.editorOptions.length;i++){var E=s.editorOptions[i];A.hasOwnProperty(E)?t.setOption(E,e.props[E]):e.props[E]&&console.warn("ReaceAce: editor option "+E+" was activated but not found. Did you need to import a related tool or did you possibly mispell the option?")}e.handleOptions(e.props,t),Array.isArray(S)&&S.forEach((function(e){"string"==typeof e.exec?t.commands.bindKey(e.bindKey,e.exec):t.commands.addCommand(e)})),w&&t.setKeyboardHandler("ace/keyboard/"+w)})),n&&(this.refEditor.className+=" "+n),r&&this.splitEditor.focus();var O=this.editor.env.split;O.setOrientation("below"===this.props.orientation?O.BELOW:O.BESIDE),O.resize(!0),x&&x(O)},t.prototype.componentDidUpdate=function(e){var t=this,n=e,i=this.props,o=this.editor.env.split;if(i.splits!==n.splits&&o.setSplits(i.splits),i.orientation!==n.orientation&&o.setOrientation("below"===i.orientation?o.BELOW:o.BESIDE),o.forEach((function(e,o){i.mode!==n.mode&&e.getSession().setMode("ace/mode/"+i.mode),i.keyboardHandler!==n.keyboardHandler&&(i.keyboardHandler?e.setKeyboardHandler("ace/keyboard/"+i.keyboardHandler):e.setKeyboardHandler(null)),i.fontSize!==n.fontSize&&e.setFontSize(i.fontSize),i.wrapEnabled!==n.wrapEnabled&&e.getSession().setUseWrapMode(i.wrapEnabled),i.showPrintMargin!==n.showPrintMargin&&e.setShowPrintMargin(i.showPrintMargin),i.showGutter!==n.showGutter&&e.renderer.setShowGutter(i.showGutter);for(var r=0;r<s.editorOptions.length;r++){var a=s.editorOptions[r];i[a]!==n[a]&&e.setOption(a,i[a])}d(i.setOptions,n.setOptions)||t.handleOptions(i,e);var l=p(i.value,o,"");if(e.getValue()!==l){t.silent=!0;var c=e.session.selection.toJSON();e.setValue(l,i.cursorStart),e.session.selection.fromJSON(c),t.silent=!1}var u=p(i.annotations,o,[]),h=p(n.annotations,o,[]);d(u,h)||e.getSession().setAnnotations(u);var f=p(i.markers,o,[]),g=p(n.markers,o,[]);!d(f,g)&&Array.isArray(f)&&t.handleMarkers(f,e)})),i.className!==n.className){var r=this.refEditor.className.trim().split(" ");n.className.trim().split(" ").forEach((function(e){var t=r.indexOf(e);r.splice(t,1)})),this.refEditor.className=" "+i.className+" "+r.join(" ")}i.theme!==n.theme&&o.setTheme("ace/theme/"+i.theme),i.focus&&!n.focus&&this.splitEditor.focus(),i.height===this.props.height&&i.width===this.props.width||this.editor.resize()},t.prototype.componentWillUnmount=function(){this.editor.destroy(),this.editor=null},t.prototype.onChange=function(e){if(this.props.onChange&&!this.silent){var t=[];this.editor.env.split.forEach((function(e){t.push(e.getValue())})),this.props.onChange(t,e)}},t.prototype.onSelectionChange=function(e){if(this.props.onSelectionChange){var t=[];this.editor.env.split.forEach((function(e){t.push(e.getSelection())})),this.props.onSelectionChange(t,e)}},t.prototype.onCursorChange=function(e){if(this.props.onCursorChange){var t=[];this.editor.env.split.forEach((function(e){t.push(e.getSelection())})),this.props.onCursorChange(t,e)}},t.prototype.onFocus=function(e){this.props.onFocus&&this.props.onFocus(e)},t.prototype.onInput=function(e){this.props.onInput&&this.props.onInput(e)},t.prototype.onBlur=function(e){this.props.onBlur&&this.props.onBlur(e)},t.prototype.onCopy=function(e){this.props.onCopy&&this.props.onCopy(e)},t.prototype.onPaste=function(e){this.props.onPaste&&this.props.onPaste(e)},t.prototype.onScroll=function(){this.props.onScroll&&this.props.onScroll(this.editor)},t.prototype.handleOptions=function(e,t){for(var n=Object.keys(e.setOptions),i=0;i<n.length;i++)t.setOption(n[i],e.setOptions[n[i]])},t.prototype.handleMarkers=function(e,t){var n=t.getSession().getMarkers(!0);for(var i in n)n.hasOwnProperty(i)&&t.getSession().removeMarker(n[i].id);for(var i in n=t.getSession().getMarkers(!1))n.hasOwnProperty(i)&&t.getSession().removeMarker(n[i].id);e.forEach((function(e){var n=e.startRow,i=e.startCol,o=e.endRow,r=e.endCol,s=e.className,a=e.type,c=e.inFront,u=void 0!==c&&c,h=new l.Range(n,i,o,r);t.getSession().addMarker(h,s,a,u)}))},t.prototype.updateRef=function(e){this.refEditor=e},t.prototype.render=function(){var e=this.props,t=e.name,n=e.width,i=e.height,o=e.style,s=r({width:n,height:i},o);return h.createElement("div",{ref:this.updateRef,id:t,style:s})},t.propTypes={className:u.string,debounceChangePeriod:u.number,defaultValue:u.arrayOf(u.string),focus:u.bool,fontSize:u.oneOfType([u.number,u.string]),height:u.string,mode:u.string,name:u.string,onBlur:u.func,onChange:u.func,onCopy:u.func,onFocus:u.func,onInput:u.func,onLoad:u.func,onPaste:u.func,onScroll:u.func,orientation:u.string,showGutter:u.bool,splits:u.number,theme:u.string,value:u.arrayOf(u.string),width:u.string,onSelectionChange:u.func,onCursorChange:u.func,onBeforeLoad:u.func,minLines:u.number,maxLines:u.number,readOnly:u.bool,highlightActiveLine:u.bool,tabSize:u.number,showPrintMargin:u.bool,cursorStart:u.number,editorProps:u.object,setOptions:u.object,style:u.object,scrollMargin:u.array,annotations:u.array,markers:u.array,keyboardHandler:u.string,wrapEnabled:u.bool,enableBasicAutocompletion:u.oneOfType([u.bool,u.array]),enableLiveAutocompletion:u.oneOfType([u.bool,u.array]),commands:u.array},t.defaultProps={name:"ace-editor",focus:!1,orientation:"beside",splits:2,mode:"",theme:"",height:"500px",width:"500px",value:[],fontSize:12,showGutter:!0,onChange:null,onPaste:null,onLoad:null,onScroll:null,minLines:null,maxLines:null,readOnly:!1,highlightActiveLine:!0,showPrintMargin:!0,tabSize:4,cursorStart:1,editorProps:{},style:{},scrollMargin:[0,0,0,0],setOptions:{},wrapEnabled:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1},t}(h.Component);t.default=f},function(e,t,n){var i=n(53);e.exports=function(e,t,n){"__proto__"==t&&i?i(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var i=n(10),o=function(){try{var e=i(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){var i=n(13),o=n(8);e.exports=function(e){if(!o(e))return!1;var t=i(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){(function(t){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})(e)}var i="object"==(void 0===t?"undefined":n(t))&&t&&t.Object===Object&&t;e.exports=i}).call(this,n(19))},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var i=n(112),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var r=arguments,s=-1,a=o(r.length-t,0),l=Array(a);++s<a;)l[s]=r[t+s];s=-1;for(var c=Array(t+1);++s<t;)c[s]=r[s];return c[t]=n(l),i(e,this,c)}}},function(e,t,n){var i=n(113),o=n(115)(i);e.exports=o},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t){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})(e)}var i=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var o=n(e);return!!(t=null==t?9007199254740991:t)&&("number"==o||"symbol"!=o&&i.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){var i=n(117),o=n(63),r=n(12),s=n(64),a=n(61),l=n(120),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=r(e),u=!n&&o(e),h=!n&&!u&&s(e),d=!n&&!u&&!h&&l(e),p=n||u||h||d,f=p?i(e.length,String):[],g=f.length;for(var m in e)!t&&!c.call(e,m)||p&&("length"==m||h&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||a(m,g))||f.push(m);return f}},function(e,t,n){var i=n(118),o=n(11),r=Object.prototype,s=r.hasOwnProperty,a=r.propertyIsEnumerable,l=i(function(){return arguments}())?i:function(e){return o(e)&&s.call(e,"callee")&&!a.call(e,"callee")};e.exports=l},function(e,t,n){(function(e){function i(e){return(i="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)}var o=n(6),r=n(119),s="object"==i(t)&&t&&!t.nodeType&&t,a=s&&"object"==i(e)&&e&&!e.nodeType&&e,l=a&&a.exports===s?o.Buffer:void 0,c=(l?l.isBuffer:void 0)||r;e.exports=c}).call(this,n(5)(e))},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){"use strict";(e.exports={}).forEach=function(e,t){for(var n=0;n<e.length;n++){var i=t(e[n]);if(i)return i}}},function(e,t,n){"use strict";var i=e.exports={};i.isIE=function(e){return(-1!==(t=navigator.userAgent.toLowerCase()).indexOf("msie")||-1!==t.indexOf("trident")||-1!==t.indexOf(" edge/"))&&(!e||e===function(){var e=3,t=document.createElement("div"),n=t.getElementsByTagName("i");do{t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e"}while(n[0]);return e>4?e:void 0}());var t},i.isLegacyOpera=function(){return!!window.opera}},function(e,t){e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length,o=Array(i);++n<i;)o[n]=t(e[n],n,e);return o}},function(e,t,n){var i=n(151),o=n(158),r=n(160),s=n(161),a=n(162);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=o,l.prototype.get=r,l.prototype.has=s,l.prototype.set=a,e.exports=l},function(e,t){e.exports=function(){return[]}},function(e,t,n){var i=n(40),o=n(41),r=n(39),s=n(70),a=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)i(t,r(e)),e=o(e);return t}:s;e.exports=a},function(e,t,n){var i=n(40),o=n(12);e.exports=function(e,t,n){var r=t(e);return o(e)?r:i(r,n(e))}},function(e,t,n){var i=n(72),o=n(71),r=n(38);e.exports=function(e){return i(e,r,o)}},function(e,t,n){var i=n(23);e.exports=function(e){if("string"==typeof e||i(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(84),o=n(87);t.diff=o.default;var r=n(51);t.split=r.default,t.default=i.default},function(e,t,n){var i="undefined"!=typeof window,o=i?window.Masonry||n(97):null,r=i?n(102):null,s=n(103),a=n(124),l=n(135),c=n(138),u=n(1),h=n(0),d=n(208),p={enableResizableChildren:u.bool,disableImagesLoaded:u.bool,onImagesLoaded:u.func,updateOnEachImageLoad:u.bool,options:u.object,imagesLoadedOptions:u.object,elementType:u.string,onLayoutComplete:u.func,onRemoveComplete:u.func},f=d({masonry:!1,erd:void 0,latestKnownDomChildren:[],displayName:"MasonryComponent",imagesLoadedCancelRef:void 0,propTypes:p,getDefaultProps:function(){return{enableResizableChildren:!1,disableImagesLoaded:!1,updateOnEachImageLoad:!1,options:{},imagesLoadedOptions:{},className:"",elementType:"div",onLayoutComplete:function(){},onRemoveComplete:function(){}}},initializeMasonry:function(e){this.masonry&&!e||(this.masonry=new o(this.masonryContainer,this.props.options),this.props.onLayoutComplete&&this.masonry.on("layoutComplete",this.props.onLayoutComplete),this.props.onRemoveComplete&&this.masonry.on("removeComplete",this.props.onRemoveComplete),this.latestKnownDomChildren=this.getCurrentDomChildren())},getCurrentDomChildren:function(){var e=this.masonryContainer,t=this.props.options.itemSelector?e.querySelectorAll(this.props.options.itemSelector):e.children;return Array.prototype.slice.call(t)},diffDomChildren:function(){var e=!1,t=this.latestKnownDomChildren.filter((function(e){return!!e.parentNode}));t.length!==this.latestKnownDomChildren.length&&(e=!0);var n=this.getCurrentDomChildren(),i=t.filter((function(e){return!~n.indexOf(e)})),o=n.filter((function(e){return!~t.indexOf(e)})),r=0,s=o.filter((function(e){var t=r===n.indexOf(e);return t&&r++,t})),a=o.filter((function(e){return-1===s.indexOf(e)})),l=[];return 0===i.length&&(l=t.filter((function(e,t){return t!==n.indexOf(e)}))),this.latestKnownDomChildren=n,{old:t,new:n,removed:i,appended:a,prepended:s,moved:l,forceItemReload:e}},performLayout:function(){var e=this.diffDomChildren(),t=e.forceItemReload||e.moved.length>0;e.removed.length>0&&(this.props.enableResizableChildren&&e.removed.forEach(this.erd.removeAllListeners,this.erd),this.masonry.remove(e.removed),t=!0),e.appended.length>0&&(this.masonry.appended(e.appended),0===e.prepended.length&&(t=!0),this.props.enableResizableChildren&&e.appended.forEach(this.listenToElementResize,this)),e.prepended.length>0&&(this.masonry.prepended(e.prepended),this.props.enableResizableChildren&&e.prepended.forEach(this.listenToElementResize,this)),t&&this.masonry.reloadItems(),this.masonry.layout()},derefImagesLoaded:function(){this.imagesLoadedCancelRef(),this.imagesLoadedCancelRef=void 0},imagesLoaded:function(){if(!this.props.disableImagesLoaded){this.imagesLoadedCancelRef&&this.derefImagesLoaded();var e=this.props.updateOnEachImageLoad?"progress":"always",t=l(function(e){this.props.onImagesLoaded&&this.props.onImagesLoaded(e),this.masonry.layout()}.bind(this),100),n=r(this.masonryContainer,this.props.imagesLoadedOptions).on(e,t);this.imagesLoadedCancelRef=function(){n.off(e,t),t.cancel()}}},initializeResizableChildren:function(){this.props.enableResizableChildren&&(this.erd=a({strategy:"scroll"}),this.latestKnownDomChildren.forEach(this.listenToElementResize,this))},listenToElementResize:function(e){this.erd.listenTo(e,function(){this.masonry.layout()}.bind(this))},destroyErd:function(){this.erd&&this.latestKnownDomChildren.forEach(this.erd.uninstall,this.erd)},componentDidMount:function(){this.initializeMasonry(),this.initializeResizableChildren(),this.imagesLoaded()},componentDidUpdate:function(){this.performLayout(),this.imagesLoaded()},componentWillUnmount:function(){this.destroyErd(),this.props.onLayoutComplete&&this.masonry.off("layoutComplete",this.props.onLayoutComplete),this.props.onRemoveComplete&&this.masonry.off("removeComplete",this.props.onRemoveComplete),this.imagesLoadedCancelRef&&this.derefImagesLoaded(),this.masonry.destroy()},setRef:function(e){this.masonryContainer=e},render:function(){var e=c(this.props,Object.keys(p));return h.createElement(this.props.elementType,s({},e,{ref:this.setRef}),this.props.children)}});e.exports=f,e.exports.default=f},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t){e.exports={control:function(e,t){var n=Object.assign(e,{cursor:"pointer",minHeight:30});return n=t.isFocused&&!t.isDisabled?Object.assign(n,{borderColor:"#007cba"}):Object.assign(n,{borderColor:"#7e8993","&:hover":{borderColor:"#7e8993"}}),t.isFocused&&(n=Object.assign(n,{boxShadow:"0 0 0 1px #007cba","&:hover":{borderColor:"#007cba"}})),n},valueContainer:function(e){return Object.assign(e,{padding:"0 8px"})},input:function(e){return Object.assign(e,{margin:0,height:30,paddingTop:0,paddingBottom:0,input:{boxShadow:"none !important"}})},dropdownIndicator:function(e){return Object.assign(e,{padding:5,color:"#555555","&:hover":{color:"#555555"},svg:{width:17,height:17}})},clearIndicator:function(e){return Object.assign(e,{padding:5,svg:{width:15,height:15}})},indicatorSeparator:function(){return!1},multiValue:function(e){return Object.assign(e,{padding:"2px 3px",borderRadius:4,backgroundColor:"#555d66"})},multiValueLabel:function(e){return Object.assign(e,{padding:0,color:"#fff"})},multiValueRemove:function(e){return Object.assign(e,{padding:0,marginLeft:5,color:"#adadad",svg:{width:10,height:10}})},option:function(e,t){var n=Object.assign(e,{display:"flex",alignItems:"center",padding:"4px 10px"});return t.isFocused&&(n=Object.assign(n,{backgroundColor:"#efefef"})),t.isSelected&&(n=Object.assign(n,{backgroundColor:"#007cba"})),n},menu:function(e){return Object.assign(e,{zIndex:2})}}},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var o=(s=i,a=btoa(unescape(encodeURIComponent(JSON.stringify(s)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),"/*# ".concat(l," */")),r=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[n].concat(r).concat([o]).join("\n")}var s,a,l;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,i){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(i)for(var r=0;r<this.length;r++){var s=this[r][0];null!=s&&(o[s]=!0)}for(var a=0;a<e.length;a++){var l=[].concat(e[a]);i&&o[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},function(e,t,n){var i,o,r;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})(e)}!function(n){if("undefined"!=typeof window){var a,l=0,c=!1,u=!1,h="message".length,d="[iFrameSizer]",p=d.length,f=null,g=window.requestAnimationFrame,m={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},v={},b=null,y={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){A("onMessage function not defined")},onResized:function(){},onScroll:function(){return!0}},w={};window.jQuery&&((a=window.jQuery).fn?a.fn.iFrameResize||(a.fn.iFrameResize=function(e){return this.filter("iframe").each((function(t,n){W(n,e)})).end()}):_("","Unable to bind to jQuery, it is not fully loaded.")),o=[],void 0===(r="function"==typeof(i=K)?i.apply(t,o):i)||(e.exports=r),window.iFrameResize=window.iFrameResize||K()}function x(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function S(e,t,n){e.addEventListener(t,n,!1)}function C(e,t,n){e.removeEventListener(t,n,!1)}function k(e){return d+"["+function(e){var t="Host page: "+e;return window.top!==window.self&&(t=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),t}(e)+"]"}function E(e){return v[e]?v[e].log:c}function $(e,t){O("log",e,t,E(e))}function _(e,t){O("info",e,t,E(e))}function A(e,t){O("warn",e,t,!0)}function O(e,t,n,i){!0===i&&"object"===s(window.console)&&console[e](k(t),n)}function L(e){function t(){o("Height"),o("Width"),N((function(){j(O),P(L),u("onResized",O)}),O,"init")}function n(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}function i(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}function o(e){var t=Number(v[L]["max"+e]),n=Number(v[L]["min"+e]),i=e.toLowerCase(),o=Number(O[i]);$(L,"Checking "+i+" is in range "+n+"-"+t),o<n&&(o=n,$(L,"Set "+i+" to min value")),o>t&&(o=t,$(L,"Set "+i+" to max value")),O[i]=""+o}function r(e){return E.substr(E.indexOf(":")+h+e)}function s(e,t){var n,i,o;n=function(){var n,i;B("Send Page Info","pageInfo:"+(n=document.body.getBoundingClientRect(),i=O.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:i.height,iframeWidth:i.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(i.top-n.top,10),offsetLeft:parseInt(i.left-n.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,t)},i=32,w[o=t]||(w[o]=setTimeout((function(){w[o]=null,n()}),i))}function a(e){var t=e.getBoundingClientRect();return I(L),{x:Math.floor(Number(t.left)+Number(f.x)),y:Math.floor(Number(t.top)+Number(f.y))}}function l(e){var t=e?a(O.iframe):{x:0,y:0},n={x:Number(O.width)+t.x,y:Number(O.height)+t.y};$(L,"Reposition requested from iFrame (offset x:"+t.x+" y:"+t.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](n.x,n.y):A(L,"Unable to scroll to requested position, window.parentIFrame not found"):(f=n,c(),$(L,"--"))}function c(){!1!==u("onScroll",f)?P(L):F()}function u(e,t){return R(L,e,t)}var g,m,b,y,x,k,E=e.data,O={},L=null;"[iFrameResizerChild]Ready"===E?function(){for(var e in v)B("iFrame requested init",z(e),v[e].iframe,e)}():d===(""+E).substr(0,p)&&E.substr(p).split(":")[0]in v?(b=E.substr(p).split(":"),y=b[1]?parseInt(b[1],10):0,x=v[b[0]]&&v[b[0]].iframe,k=getComputedStyle(x),O={iframe:x,id:b[0],height:y+n(k)+i(k),width:b[2],type:b[3]},L=O.id,v[L]&&(v[L].loaded=!0),(m=O.type in{true:1,false:1,undefined:1})&&$(L,"Ignoring init message from meta parent page"),!m&&function(e){var t=!0;return v[e]||(t=!1,A(O.type+" No settings for "+e+". Message was: "+E)),t}(L)&&($(L,"Received: "+E),g=!0,null===O.iframe&&(A(L,"IFrame ("+O.id+") not found"),g=!1),g&&function(){var t,n=e.origin,i=v[L]&&v[L].checkOrigin;if(i&&""+n!="null"&&!(i.constructor===Array?function(){var e=0,t=!1;for($(L,"Checking connection is from allowed list of origins: "+i);e<i.length;e++)if(i[e]===n){t=!0;break}return t}():(t=v[L]&&v[L].remoteHost,$(L,"Checking connection is from: "+t),n===t)))throw new Error("Unexpected message received from: "+n+" for "+O.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(v[L]&&v[L].firstRun&&v[L]&&(v[L].firstRun=!1),O.type){case"close":M(O.iframe);break;case"message":d=r(6),$(L,"onMessage passed: {iframe: "+O.iframe.id+", message: "+d+"}"),u("onMessage",{iframe:O.iframe,message:JSON.parse(d)}),$(L,"--");break;case"autoResize":v[L].autoResize=JSON.parse(r(9));break;case"scrollTo":l(!1);break;case"scrollToOffset":l(!0);break;case"pageInfo":s(v[L]&&v[L].iframe,L),function(){function e(e,i){function o(){v[n]?s(v[n].iframe,n):t()}["scroll","resize"].forEach((function(t){$(n,e+t+" listener for sendPageInfo"),i(window,t,o)}))}function t(){e("Remove ",C)}var n=L;e("Add ",S),v[n]&&(v[n].stopPageInfo=t)}();break;case"pageInfoStop":v[L]&&v[L].stopPageInfo&&(v[L].stopPageInfo(),delete v[L].stopPageInfo);break;case"inPageLink":e=r(9),i=e.split("#")[1]||"",o=decodeURIComponent(i),(h=document.getElementById(o)||document.getElementsByName(o)[0])?(n=a(h),$(L,"Moving to in page link (#"+i+") at x: "+n.x+" y: "+n.y),f={x:n.x,y:n.y},c(),$(L,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(i):$(L,"In page link #"+i+" not found and window.parentIFrame not found"):$(L,"In page link #"+i+" not found");break;case"reset":D(O);break;case"init":t(),u("onInit",O.iframe);break;default:t()}var e,n,i,o,h,d}())):_(L,"Ignored: "+E)}function R(e,t,n){var i=null,o=null;if(v[e]){if("function"!=typeof(i=v[e][t]))throw new TypeError(t+" on iFrame["+e+"] is not a function");o=i(n)}return o}function T(e){var t=e.id;delete v[t]}function M(e){var t=e.id;if(!1!==R(t,"onClose",t)){$(t,"Removing iFrame: "+t);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){A(e)}R(t,"onClosed",t),$(t,"--"),T(e)}else $(t,"Close iframe cancelled by onClose event")}function I(e){null===f&&$(e,"Get page position: "+(f={x:void 0!==window.pageXOffset?window.pageXOffset:document.documentElement.scrollLeft,y:void 0!==window.pageYOffset?window.pageYOffset:document.documentElement.scrollTop}).x+","+f.y)}function P(e){null!==f&&(window.scrollTo(f.x,f.y),$(e,"Set page position: "+f.x+","+f.y),F())}function F(){f=null}function D(e){$(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),I(e.id),N((function(){j(e),B("reset","reset",e.iframe,e.id)}),e,"reset")}function j(e){function t(t){u||"0"!==e[t]||(u=!0,$(i,"Hidden iFrame detected, creating visibility listener"),function(){function e(){Object.keys(v).forEach((function(e){!function(e){function t(t){return"0px"===(v[e]&&v[e].iframe.style[t])}v[e]&&null!==v[e].iframe.offsetParent&&(t("height")||t("width"))&&B("Visibility change","resize",v[e].iframe,e)}(e)}))}function t(t){$("window","Mutation observed: "+t[0].target+" "+t[0].type),H(e,16)}var n=x();n&&(i=document.querySelector("body"),new n(t).observe(i,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}));var i}())}function n(n){!function(t){e.id?(e.iframe.style[t]=e[t]+"px",$(e.id,"IFrame ("+i+") "+t+" set to "+e[t]+"px")):$("undefined","messageData id not set")}(n),t(n)}var i=e.iframe.id;v[i]&&(v[i].sizeHeight&&n("height"),v[i].sizeWidth&&n("width"))}function N(e,t,n){n!==t.type&&g&&!window.jasmine?($(t.id,"Requesting animation frame"),g(e)):e()}function B(e,t,n,i,o){var r,s=!1;i=i||n.id,v[i]&&(n&&"contentWindow"in n&&null!==n.contentWindow?(r=v[i]&&v[i].targetOrigin,$(i,"["+e+"] Sending msg to iframe["+i+"] ("+t+") targetOrigin: "+r),n.contentWindow.postMessage(d+t,r)):A(i,"["+e+"] IFrame("+i+") not found"),o&&v[i]&&v[i].warningTimeout&&(v[i].msgTimeout=setTimeout((function(){!v[i]||v[i].loaded||s||(s=!0,A(i,"IFrame has not responded within "+v[i].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),v[i].warningTimeout)))}function z(e){return e+":"+v[e].bodyMarginV1+":"+v[e].sizeWidth+":"+v[e].log+":"+v[e].interval+":"+v[e].enablePublicMethods+":"+v[e].autoResize+":"+v[e].bodyMargin+":"+v[e].heightCalculationMethod+":"+v[e].bodyBackground+":"+v[e].bodyPadding+":"+v[e].tolerance+":"+v[e].inPageLinks+":"+v[e].resizeFrom+":"+v[e].widthCalculationMethod}function W(e,t){function n(e){var t=e.split("Callback");if(2===t.length){var n="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[n]=this[e],delete this[e],A(r,"Deprecated: '"+e+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}var i,o,r=function(n){var i;return""===n&&(e.id=(i=t&&t.id||y.id+l++,null!==document.getElementById(i)&&(i+=l++),n=i),c=(t||{}).log,$(n,"Added missing iframe ID: "+n+" ("+e.src+")")),n}(e.id);r in v&&"iFrameResizer"in e?A(r,"Ignored iFrame, already setup."):(!function(t){var i;t=t||{},v[r]={firstRun:!0,iframe:e,remoteHost:e.src&&e.src.split("/").slice(0,3).join("/")},function(e){if("object"!==s(e))throw new TypeError("Options is not an object")}(t),Object.keys(t).forEach(n,t),function(e){for(var t in y)Object.prototype.hasOwnProperty.call(y,t)&&(v[r][t]=Object.prototype.hasOwnProperty.call(e,t)?e[t]:y[t])}(t),v[r]&&(v[r].targetOrigin=!0===v[r].checkOrigin?""===(i=v[r].remoteHost)||null!==i.match(/^(about:blank|javascript:|file:\/\/)/)?"*":i:"*")}(t),function(){switch($(r,"IFrame scrolling "+(v[r]&&v[r].scrolling?"enabled":"disabled")+" for "+r),e.style.overflow=!1===(v[r]&&v[r].scrolling)?"hidden":"auto",v[r]&&v[r].scrolling){case"omit":break;case!0:e.scrolling="yes";break;case!1:e.scrolling="no";break;default:e.scrolling=v[r]?v[r].scrolling:"no"}}(),function(){function t(t){1/0!==v[r][t]&&0!==v[r][t]&&(e.style[t]=v[r][t]+"px",$(r,"Set "+t+" = "+v[r][t]+"px"))}function n(e){if(v[r]["min"+e]>v[r]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}n("Height"),n("Width"),t("maxHeight"),t("minHeight"),t("maxWidth"),t("minWidth")}(),"number"!=typeof(v[r]&&v[r].bodyMargin)&&"0"!==(v[r]&&v[r].bodyMargin)||(v[r].bodyMarginV1=v[r].bodyMargin,v[r].bodyMargin=v[r].bodyMargin+"px"),i=z(r),(o=x())&&function(t){e.parentNode&&new t((function(t){t.forEach((function(t){Array.prototype.slice.call(t.removedNodes).forEach((function(t){t===e&&M(e)}))}))})).observe(e.parentNode,{childList:!0})}(o),S(e,"load",(function(){var t,n;B("iFrame.onload",i,e,void 0,!0),t=v[r]&&v[r].firstRun,n=v[r]&&v[r].heightCalculationMethod in m,!t&&n&&D({iframe:e,height:0,width:0,type:"init"})})),B("init",i,e,void 0,!0),v[r]&&(v[r].iframe.iFrameResizer={close:M.bind(null,v[r].iframe),removeListeners:T.bind(null,v[r].iframe),resize:B.bind(null,"Window resize","resize",v[r].iframe),moveToAnchor:function(e){B("Move to anchor","moveToAnchor:"+e,v[r].iframe,r)},sendMessage:function(e){B("Send Message","message:"+(e=JSON.stringify(e)),v[r].iframe,r)}}))}function H(e,t){null===b&&(b=setTimeout((function(){b=null,e()}),t))}function V(){"hidden"!==document.visibilityState&&($("document","Trigger event: Visiblity change"),H((function(){U("Tab Visable","resize")}),16))}function U(e,t){Object.keys(v).forEach((function(n){(function(e){return v[e]&&"parent"===v[e].resizeFrom&&v[e].autoResize&&!v[e].firstRun})(n)&&B(e,t,v[n].iframe,n)}))}function G(){S(window,"message",L),S(window,"resize",(function(){var e;$("window","Trigger event: "+(e="resize")),H((function(){U("Window "+e,"resize")}),16)})),S(document,"visibilitychange",V),S(document,"-webkit-visibilitychange",V)}function K(){function e(e,n){n&&(!function(){if(!n.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==n.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+n.tagName+">")}(),W(n,e),t.push(n))}var t;return function(){var e,t=["moz","webkit","o","ms"];for(e=0;e<t.length&&!g;e+=1)g=window[t[e]+"RequestAnimationFrame"];g?g=g.bind(window):$("setup","RequestAnimationFrame not supported")}(),G(),function(n,i){switch(t=[],function(e){e&&e.enablePublicMethods&&A("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(n),s(i)){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(i||"iframe"),e.bind(void 0,n));break;case"object":e(n,i);break;default:throw new TypeError("Unexpected data type ("+s(i)+")")}return t}}}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return ns}));var i=n(2),o=n.n(i),r=n(17);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})(e)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=window,b=v.jQuery,y=v.ajaxurl,w=v.VPGutenbergVariables,x=wp.element,S=x.Component,C=x.RawHTML,k=wp.components,E=k.Button,$=k.Spinner,_={},A=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(s,e);var t,n,i,r=p(s);function s(){var e;u(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var o=(e=r.call.apply(r,[this].concat(n))).props.callback;return e.state={options:l({},e.props.options),ajaxStatus:!!o},_[e.props.controlName]=l({},e.props.options),e.requestAjax=e.requestAjax.bind(g(e)),e}return t=s,(n=[{key:"componentDidMount",value:function(){var e=this;this.props.callback&&this.requestAjax({},(function(t){t.options&&e.setState({options:t.options})}))}},{key:"requestAjax",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=this.props,r=o.controlName,s=o.attributes;if(!this.isAJAXinProgress){this.isAJAXinProgress=!0,i&&this.setState({ajaxStatus:"progress"});var a=l({action:"vp_dynamic_control_callback",nonce:w.nonce,vp_control_name:r,vp_attributes:s},t);b.ajax({url:y,method:"POST",dataType:"json",data:a,complete:function(t){var o=t.responseJSON;n&&o.response&&(o.response.options&&(_[r]=l(l({},_[r]),o.response.options)),n(o.response)),i&&e.setState({ajaxStatus:!0}),e.isAJAXinProgress=!1}})}}},{key:"render",value:function(){var e=this.props,t=e.value,n=e.onChange,i=this.state,r=i.options,s=i.ajaxStatus;return s&&"progress"===s?wp.element.createElement("div",{className:"vpf-component-icon-selector"},wp.element.createElement($,null)):wp.element.createElement("div",{className:"vpf-component-icon-selector"},Object.keys(r||{}).map((function(e){var i=r[e];return wp.element.createElement(E,{key:"icon-selector-".concat(i.title,"-").concat(i.value),onClick:function(){return n(i.value)},className:o()("vpf-component-icon-selector-item",t===i.value?"vpf-component-icon-selector-item-active":"",i.className)},i.icon?wp.element.createElement(C,null,i.icon):"",i.title?wp.element.createElement("span",null,i.title):"")})))}}])&&h(t.prototype,n),i&&h(t,i),s}(S),O=n(75),L=n.n(O);n(91),n(92),n(93),n(94),n(95),n(96);function R(e){return(R="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)}function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function I(e,t){return(I=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function P(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=j(e);if(t){var o=j(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return F(this,n)}}function F(e,t){return!t||"object"!==R(t)&&"function"!=typeof t?D(e):t}function D(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var N=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&I(e,t)}(r,e);var t,n,i,o=P(r);function r(){var e;T(this,r);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=o.call.apply(o,[this].concat(n))).state={codePlaceholder:e.props.codePlaceholder},e.maybeRemovePlaceholder=e.maybeRemovePlaceholder.bind(D(e)),e}return t=r,(n=[{key:"componentDidMount",value:function(){this.maybeRemovePlaceholder()}},{key:"maybeRemovePlaceholder",value:function(){var e=this.props.value,t=this.state.codePlaceholder;e&&t&&this.setState({codePlaceholder:""})}},{key:"render",value:function(){var e=this,t=this.props,n=t.value,i=t.onChange,o=t.mode,r=t.maxLines,s=t.minLines,a=this.state.codePlaceholder;return wp.element.createElement(L.a,{className:"vpf-component-code-editor",theme:"textmate",onLoad:function(e){e.renderer.setScrollMargin(16,16,16,16),e.renderer.setPadding(16)},fontSize:12,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!1,width:"100%",setOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,printMargin:!1,tabSize:2},editorProps:{$blockScrolling:1/0},value:n||a,onChange:function(t){i(t===a?"":t),e.maybeRemovePlaceholder()},mode:o,maxLines:r,minLines:s})}}])&&M(t.prototype,n),i&&M(t,i),r}(wp.element.Component),B=n(76),z=n.n(B),W=wp.element.useEffect;function H(e){var t=e.children;return W((function(){var e=document.createElement("style");return e.innerHTML=t,document.body.appendChild(e),function(){return document.body.removeChild(e)}}),[t]),null}function V(e){return(V="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)}function U(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function K(e,t){return(K=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function q(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=X(e);if(t){var o=X(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Y(this,n)}}function Y(e,t){return!t||"object"!==V(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function X(e){return(X=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Q=wp.element,J=Q.Component,Z=Q.Fragment,ee=wp.components,te=ee.Button,ne=ee.Modal,ie=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&K(e,t)}(s,e);var t,n,i,r=q(s);function s(){var e;U(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=r.call.apply(r,[this].concat(n))).state={isOpened:!1},e}return t=s,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.children,i=t.modalTitle,r=t.buttonLabel,s=t.size,a=this.state.isOpened;return wp.element.createElement(Z,null,wp.element.createElement(te,{isSecondary:!0,onClick:function(){return e.setState({isOpened:!a})}},r),a?wp.element.createElement(ne,{title:i,onRequestClose:function(){return e.setState({isOpened:!a})},className:o()("vpf-component-modal",s?"vpf-component-modal-size-".concat(s):"")},n):"")}}])&&G(t.prototype,n),i&&G(t,i),s}(J);function oe(e){return(oe="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)}function re(e){return function(e){if(Array.isArray(e))return se(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return se(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return se(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function se(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function ae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function le(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function ce(e,t){return(ce=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ue(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=pe(e);if(t){var o=pe(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return he(this,n)}}function he(e,t){return!t||"object"!==oe(t)&&"function"!=typeof t?de(e):t}function de(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pe(e){return(pe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var fe=wp.i18n.__,ge=wp.element,me=ge.Component,ve=ge.Fragment,be=wp.components.Button,ye=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ce(e,t)}(s,e);var t,n,i,r=ue(s);function s(){var e;ae(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=r.call.apply(r,[this].concat(n))).renderPreview=e.renderPreview.bind(de(e)),e}return t=s,(n=[{key:"renderPreview",value:function(e){var t=e.split(/[:|]/),n='[data-tiles-preview="'.concat(e,'"]'),i="";void 0===t[t.length-1]||t[t.length-1]||t.pop();var o=parseInt(t[0],10)||1;if(t.shift(),i+="".concat(n," .vpf-tiles-preview-item-wrap { width: ").concat(100/o,"%; }"),t&&t.length)for(var r=0;r<t.length;r+=1){var s=t[r].split(","),a=parseFloat(s[0])||1,l=parseFloat(s[1])||1,c=".vpf-tiles-preview-item-wrap";1<t.length&&(c+=":nth-of-type(".concat(t.length,"n+").concat(r+1,")")),a&&1!==a&&(i+="".concat(n," ").concat(c," { width: ").concat(100*a/o,"%; }")),i+="".concat(n," ").concat(c," .vpf-tiles-preview-item::after { padding-top: ").concat(100*l,"%; }")}return wp.element.createElement(ve,null,wp.element.createElement(z.a,{elementType:"div","data-tiles-preview":e,options:{transitionDuration:0}},Array.apply(void 0,re(Array(4*o))).map((function(e){return wp.element.createElement("div",{key:e,className:"vpf-tiles-preview-item-wrap"},wp.element.createElement("div",{className:"vpf-tiles-preview-item"}))}))),wp.element.createElement(H,null,i))}},{key:"render",value:function(){var e=this,t=this.props,n=t.value,i=t.options,r=t.onChange;return wp.element.createElement(ve,null,wp.element.createElement("div",{className:"vpf-component-tiles-selector"},wp.element.createElement(ie,{modalTitle:fe("Tiles","@@text_domain"),buttonLabel:fe("Edit Tiles","@@text_domain")},wp.element.createElement("div",{className:"vpf-component-tiles-selector-items"},i.map((function(t){return wp.element.createElement(be,{key:t.value,onClick:function(){return r(t.value)},className:o()("vpf-tiles-preview-button",n===t.value?"vpf-tiles-preview-button-active":"")},e.renderPreview(t.value))})))),wp.element.createElement("div",{className:"vpf-tiles-preview-button"},this.renderPreview(n))))}}])&&le(t.prototype,n),i&&le(t,i),s}(me);function we(e){return(we="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)}function xe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Se(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Ce(e,t){return(Ce=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ke(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=_e(e);if(t){var o=_e(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Ee(this,n)}}function Ee(e,t){return!t||"object"!==we(t)&&"function"!=typeof t?$e(e):t}function $e(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _e(e){return(_e=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ae=wp.element.Component,Oe=wp.components.Toolbar,Le={left:wp.element.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 4H1V5.22222H19V4ZM11.2857 8.88889H1V10.1111H11.2857V8.88889ZM1 13.7778H13.8571V15H1V13.7778Z",fill:"currentColor"})),center:wp.element.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.57286 13.7778H16.43V15H3.57286V13.7778Z",fill:"currentColor"}),wp.element.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.14 8.88889H4.85429V10.1111H15.14V8.88889Z",fill:"currentColor"}),wp.element.createElement("path",{d:"M1 4H19V5.22222H1V4Z",fill:"currentColor"})),right:wp.element.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 4H19V5.22222H1V4ZM8.71429 8.88889H19V10.1111H8.71429V8.88889ZM19 13.7778H6.14286V15H19V13.7778Z",fill:"currentColor"}))},Re={top:wp.element.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.4046 6.087L10 5.67517L9.59543 6.087L6.16686 9.587L6.976 10.413L9.42857 7.90817V17H10.5714V7.90817L13.024 10.413L13.8331 9.587L10.4046 6.087V6.087ZM18 4.16667V3H2V4.16667H18Z",fill:"currentColor"})),center:wp.element.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 7.98287L10.4046 7.58575L12.6903 5.33575L11.8811 4.53925L10.5714 5.82963V1H9.42857V5.82963L8.11886 4.53925L7.30971 5.33575L9.59543 7.58575L10 7.98287ZM10 12.0171L10.4046 12.4142L12.6903 14.6642L11.8811 15.4608L10.5714 14.1704V19H9.42857V14.1704L8.11886 15.4608L7.30971 14.6642L9.59543 12.4142L10 12.0171ZM2 10.5625H18V9.4375H2V10.5625Z",fill:"currentColor"})),bottom:wp.element.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.4046 13.913L10 14.3248L9.59543 13.913L6.16686 10.413L6.976 9.587L9.42857 12.0918V3H10.5714V12.0918L13.024 9.587L13.8331 10.413L10.4046 13.913V13.913ZM18 15.8333V17H2V15.8333H18Z",fill:"currentColor"}))},Te=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ce(e,t)}(r,e);var t,n,i,o=ke(r);function r(){var e;xe(this,r);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=o.call.apply(o,[this].concat(n))).getAlignObject=e.getAlignObject.bind($e(e)),e.getAlignString=e.getAlignString.bind($e(e)),e}return t=r,(n=[{key:"getAlignObject",value:function(){var e="center",t="center",n=this.props.value.split("-");return n[1]?(n[0]&&(t=n[0]),n[1]&&(e=n[1])):n[0]&&(e=n[0]),{h:e,v:t}}},{key:"getAlignString",value:function(e,t){return this.props.extended?"".concat(t&&"center"!==t?"".concat(t,"-"):"").concat(e):e}},{key:"render",value:function(){var e=this,t=this.props,n=t.extended,i=t.onChange,o=this.getAlignObject(),r=[];return Object.keys(Le).forEach((function(t){r.push({icon:Le[t],title:"".concat(n?"Horizontal ":"").concat(t.charAt(0).toUpperCase()+t.slice(1)),onClick:function(){return i(e.getAlignString(t,o.v))},isActive:o.h===t})})),n&&(r.push({className:"vpf-component-align-control-separator"}),Object.keys(Re).forEach((function(t){r.push({icon:Re[t],title:"Vertical ".concat(t.charAt(0).toUpperCase()+t.slice(1)),onClick:function(){return i(e.getAlignString(o.h,t))},isActive:o.v===t})}))),wp.element.createElement("div",{className:"vpf-component-align-control"},wp.element.createElement(Oe,{controls:r}))}}])&&Se(t.prototype,n),i&&Se(t,i),r}(Ae);function Me(e){return(Me="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)}function Ie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pe(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Fe(e,t){return(Fe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function De(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Be(e);if(t){var o=Be(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return je(this,n)}}function je(e,t){return!t||"object"!==Me(t)&&"function"!=typeof t?Ne(e):t}function Ne(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Be(e){return(Be=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ze=wp.i18n.__,We=wp.element.Component,He=wp.components,Ve=He.SelectControl,Ue=He.TextControl,Ge={"":ze("Auto","@@text_domain"),"16:9":ze("Wide 16:9","@@text_domain"),"21:9":ze("Ultra Wide 21:9","@@text_domain"),"4:3":ze("TV 4:3","@@text_domain"),"3:2":ze("Classic Film 3:2","@@text_domain"),custom:ze("Custom","@@text_domain")},Ke=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Fe(e,t)}(r,e);var t,n,i,o=De(r);function r(){var e;Ie(this,r);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=o.call.apply(o,[this].concat(n))).state={isCustom:void 0===Ge[e.props.value]},e.updatePart=e.updatePart.bind(Ne(e)),e}return t=r,(n=[{key:"parseParts",value:function(e){var t="",n="";if(e&&/:/g.test(e)){var i=e.split(":");t=i[0],n=i[1]}return[t,n]}},{key:"updatePart",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.props,i=n.value,o=n.onChange,r=this.parseParts(i);e&&r[0]&&r[1]&&(t?r[0]=e:r[1]=e,o("".concat(r[0],":").concat(r[1])))}},{key:"render",value:function(){var e=this,t=this.props,n=t.value,i=t.onChange,o=this.state.isCustom,r=this.parseParts(n);return wp.element.createElement("div",{className:"vpf-component-aspect-ratio"},wp.element.createElement(Ve,{value:o?"custom":n,onChange:function(t){"custom"===t?(e.setState({isCustom:!0}),n||i("3:4")):(e.setState({isCustom:!1}),i(t))},options:Object.keys(Ge).map((function(e){return{label:Ge[e],value:e}}))}),o?wp.element.createElement("div",{className:"vpf-component-aspect-ratio-custom"},wp.element.createElement(Ue,{label:ze("Width","@@text_domain"),type:"number",value:r[0],onChange:function(t){return e.updatePart(t,!0)}}),wp.element.createElement(Ue,{label:ze("Height","@@text_domain"),type:"number",value:r[1],onChange:function(t){return e.updatePart(t,!1)}})):"")}}])&&Pe(t.prototype,n),i&&Pe(t,i),r}(We),qe=n(45);function Ye(e){return(Ye="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)}function Xe(e){return function(e){if(Array.isArray(e))return ut(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||ct(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Je(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Ze(e,t){return(Ze=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function et(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=it(e);if(t){var o=it(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return tt(this,n)}}function tt(e,t){return!t||"object"!==Ye(t)&&"function"!=typeof t?nt(e):t}function nt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function it(e){return(it=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ot(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(n),!0).forEach((function(t){st(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ot(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function st(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function at(){return(at=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function lt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(o)throw r}}return n}(e,t)||ct(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ct(e,t){if(e){if("string"==typeof e)return ut(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ut(e,t):void 0}}function ut(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var ht=wp.i18n.__,dt=wp.element,pt=dt.Component,ft=dt.Fragment,gt=dt.useState,mt=wp.components,vt=mt.PanelBody,bt=mt.Button,yt=mt.DropdownMenu,wt=mt.Dropdown,xt=mt.Modal,St=mt.Toolbar,Ct=mt.BaseControl,kt={left:wp.element.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{x:"0.75",y:"0.75",width:"18.5",height:"18.5",rx:"3.25",fill:"transparent",stroke:"currentColor",strokeWidth:"1.5"}),wp.element.createElement("line",{x1:"4.5",y1:"4.5",x2:"4.5",y2:"15.5",fill:"transparent",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"}),wp.element.createElement("line",{x1:"9.5",y1:"4.5",x2:"9.5",y2:"15.5",fill:"transparent",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})),center:wp.element.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{x:"0.75",y:"0.75",width:"18.5",height:"18.5",rx:"3.25",fill:"transparent",stroke:"currentColor",strokeWidth:"1.5"}),wp.element.createElement("line",{x1:"7.5",y1:"4.5",x2:"7.5",y2:"15.5",fill:"transparent",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"}),wp.element.createElement("line",{x1:"12.5",y1:"4.5",x2:"12.5",y2:"15.5",fill:"transparent",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})),right:wp.element.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{x:"0.75",y:"0.75",width:"18.5",height:"18.5",rx:"3.25",fill:"transparent",stroke:"currentColor",strokeWidth:"1.5"}),wp.element.createElement("line",{x1:"15.5",y1:"15.5",x2:"15.5",y2:"4.5",fill:"transparent",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"}),wp.element.createElement("line",{x1:"10.5",y1:"15.5",x2:"10.5",y2:"4.5",fill:"transparent",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})),between:wp.element.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("rect",{x:"0.75",y:"0.75",width:"18.5",height:"18.5",rx:"3.25",fill:"transparent",stroke:"currentColor",strokeWidth:"1.5"}),wp.element.createElement("line",{x1:"15.5",y1:"15.5",x2:"15.5",y2:"4.5",fill:"transparent",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"}),wp.element.createElement("line",{x1:"4.5",y1:"15.5",x2:"4.5",y2:"4.5",fill:"transparent",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"}))};function Et(e){var t=e.location,n=e.locationData,i=e.value,o=e.onChange,r=e.options,s=e.optionName,a=e.parentProps,l=lt(gt(!1),2),c=l[0],u=l[1];return wp.element.createElement(ft,null,wp.element.createElement("button",{type:"button","aria-expanded":c,className:"vpf-component-elements-selector-control-location-options-item",onClick:function(){return u(!0)}},r[s]?r[s].title:s,wp.element.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M8 4L14 10L8 16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),c?wp.element.createElement(xt,{title:"".concat(r[s]?r[s].title:s," ").concat(ht("Settings","@@text_domain")),onRequestClose:function(e){e.relatedTarget&&e.relatedTarget.classList&&e.relatedTarget.classList.contains("media-modal")||u(!1)},className:"vpf-component-elements-selector-modal"},r[s]&&r[s].category?wp.element.createElement(jr,at({},a.props,{category:r[s].category,categoryToggle:!1})):null,"items"!==s?wp.element.createElement(vt,null,wp.element.createElement(Ct,{label:ht("Remove","@@text_domain")},wp.element.createElement("br",null),wp.element.createElement(bt,{isSecondary:!0,isSmall:!0,onClick:function(){window.confirm(ht("Are you sure you want to remove the element?","@@text_domain"))&&o(rt(rt({},i),{},st({},t,rt(rt({},i[t]),{},{elements:n.elements.filter((function(e){return e!==s}))}))))}},ht("Remove Element","@@text_domain")))):null):null)}var $t=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ze(e,t)}(s,e);var t,n,i,r=et(s);function s(){var e;Qe(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=r.call.apply(r,[this].concat(n))).getLocationData=e.getLocationData.bind(nt(e)),e.renderLocation=e.renderLocation.bind(nt(e)),e.renderAlignSettings=e.renderAlignSettings.bind(nt(e)),e}return t=s,(n=[{key:"getLocationData",value:function(e){var t=this.props,n=t.options,i=t.locations,o=t.value,r=i[e]&&i[e].title||!1,s=o[e]&&o[e].elements?o[e].elements:[],a=!(!o[e]||!o[e].align)&&o[e].align,l=i[e]&&i[e].align?i[e].align:[],c={};return Object.keys(n).forEach((function(t){var i=n[t];i.allowed_locations&&-1===i.allowed_locations.indexOf(e)||-1!==s.indexOf(t)||(c[t]=i)})),{title:r,elements:s,align:a,availableAlign:l,availableElements:c}}},{key:"renderAlignSettings",value:function(e){var t=this.props,n=t.value,i=t.onChange,o=this.getLocationData(e),r=[];return o.availableAlign.length&&o.availableAlign.forEach((function(t){r.push({icon:kt[t],title:"".concat(t.charAt(0).toUpperCase()+t.slice(1)),onClick:function(){i(rt(rt({},n),{},st({},e,rt(rt({},n[e]),{},{align:t}))))},isActive:!!o.align&&o.align===t})})),r.length?wp.element.createElement(wt,{renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return wp.element.createElement("button",{type:"button","aria-expanded":t,className:"vpf-component-elements-selector-control-location-options-item",onClick:n},o.align&&kt[o.align]?kt[o.align]:kt.center)},renderContent:function(){return wp.element.createElement(St,{controls:r})}}):null}},{key:"renderLocation",value:function(e){var t=this,n=this.props,i=n.value,r=n.onChange,s=n.options,a=this.getLocationData(e),l=a.availableElements;return wp.element.createElement("div",{key:e,className:"vpf-component-elements-selector-control-location"},a.title?wp.element.createElement("div",{className:"vpf-component-elements-selector-control-location-title"},a.title):"",a.availableAlign.length?wp.element.createElement("div",{className:"vpf-component-elements-selector-control-location-align"},this.renderAlignSettings(e)):"",wp.element.createElement("div",{className:o()("vpf-component-elements-selector-control-location-options",a.align?"vpf-component-elements-selector-control-location-options-".concat(a.align):"")},a.elements.length?a.elements.map((function(n){return wp.element.createElement(Et,{key:n,location:e,locationData:a,value:i,onChange:r,options:s,optionName:n,parentProps:t.props})})):null,Object.keys(l).length?wp.element.createElement(yt,{className:"vpf-component-elements-selector-control-location-options-add-button",popoverProps:{position:"bottom center"},icon:wp.element.createElement("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",role:"img","aria-hidden":"true",focusable:"false"},wp.element.createElement("path",{d:"M10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6zM10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6z"})),controls:Object.keys(l).map((function(t){return{title:wp.element.createElement(ft,null,l[t].title,l[t].is_pro?wp.element.createElement("span",{className:"vpf-component-elements-selector-control-location-options-title-pro"},ht("PRO","@@text_domain")):""),onClick:function(){if(!l[t].is_pro){var n=Xe(a.elements);-1===n.indexOf(t)&&(n.push(t),r(rt(rt({},i),{},st({},e,rt(rt({},i[e]),{},{elements:n})))))}}}}))}):""))}},{key:"render",value:function(){var e=this,t=this.props.locations;return wp.element.createElement("div",{className:"vpf-component-elements-selector-control"},Object.keys(t).map((function(t){return e.renderLocation(t)})))}}])&&Je(t.prototype,n),i&&Je(t,i),s}(pt);function _t(){return(_t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function At(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Ot(e,t){if(e){if("string"==typeof e)return At(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?At(e,t):void 0}}function Lt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(o)throw r}}return n}}(e,t)||Ot(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){Rt(e,t,n[t])}))}return e}function Mt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function It(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Pt(e,t,n){return t&&It(e.prototype,t),n&&It(e,n),e}function Ft(e){return(Ft="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)}function Dt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jt(e,t){return!t||"object"!==Ft(t)&&"function"!=typeof t?Dt(e):t}function Nt(e){return(Nt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Bt(e,t){return(Bt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function zt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Bt(e,t)}var Wt=n(0),Ht=n(1),Vt=n.n(Ht),Ut=n(7),Gt=n(9),Kt=n.n(Gt);function qt(e){return function(e){if(Array.isArray(e))return At(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Ot(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Yt=function(){function e(){Mt(this,e),Rt(this,"refs",{})}return Pt(e,[{key:"add",value:function(e,t){this.refs[e]||(this.refs[e]=[]),this.refs[e].push(t)}},{key:"remove",value:function(e,t){var n=this.getIndex(e,t);-1!==n&&this.refs[e].splice(n,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var e=this;return this.refs[this.active.collection].find((function(t){return t.node.sortableInfo.index==e.active.index}))}},{key:"getIndex",value:function(e,t){return this.refs[e].indexOf(t)}},{key:"getOrderedRefs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.active.collection;return this.refs[e].sort(Xt)}}]),e}();function Xt(e,t){return e.node.sortableInfo.index-t.node.sortableInfo.index}function Qt(e,t){return Object.keys(e).reduce((function(n,i){return-1===t.indexOf(i)&&(n[i]=e[i]),n}),{})}var Jt={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},Zt=function(){if("undefined"==typeof window||"undefined"==typeof document)return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];switch(t){case"ms":return"ms";default:return t&&t.length?t[0].toUpperCase()+t.substr(1):""}}();function en(e,t){Object.keys(t).forEach((function(n){e.style[n]=t[n]}))}function tn(e,t){e.style["".concat(Zt,"Transform")]=null==t?"":"translate3d(".concat(t.x,"px,").concat(t.y,"px,0)")}function nn(e,t){e.style["".concat(Zt,"TransitionDuration")]=null==t?"":"".concat(t,"ms")}function on(e,t){for(;e;){if(t(e))return e;e=e.parentNode}return null}function rn(e,t,n){return Math.max(e,Math.min(n,t))}function sn(e){return"px"===e.substr(-2)?parseFloat(e):0}function an(e){var t=window.getComputedStyle(e);return{bottom:sn(t.marginBottom),left:sn(t.marginLeft),right:sn(t.marginRight),top:sn(t.marginTop)}}function ln(e,t){var n=t.displayName||t.name;return n?"".concat(e,"(").concat(n,")"):e}function cn(e,t){var n=e.getBoundingClientRect();return{top:n.top+t.top,left:n.left+t.left}}function un(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}}function hn(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length}function dn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{left:0,top:0};if(e){var i={left:n.left+e.offsetLeft,top:n.top+e.offsetTop};return e.parentNode===t?i:dn(e.parentNode,t,i)}}function pn(e,t,n){return e<n&&e>t?e-1:e>n&&e<t?e+1:e}function fn(e){var t=e.lockOffset,n=e.width,i=e.height,o=t,r=t,s="px";if("string"==typeof t){var a=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(t);Kt()(null!==a,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',t),o=parseFloat(t),r=parseFloat(t),s=a[1]}return Kt()(isFinite(o)&&isFinite(r),"lockOffset value should be a finite. Given %s",t),"%"===s&&(o=o*n/100,r=r*i/100),{x:o,y:r}}function gn(e){var t=e.height,n=e.width,i=e.lockOffset,o=Array.isArray(i)?i:[i,i];Kt()(2===o.length,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",i);var r=Lt(o,2),s=r[0],a=r[1];return[fn({height:t,lockOffset:s,width:n}),fn({height:t,lockOffset:a,width:n})]}function mn(e){return e instanceof HTMLElement?function(e){var t=window.getComputedStyle(e),n=/(auto|scroll)/;return["overflow","overflowX","overflowY"].find((function(e){return n.test(t[e])}))}(e)?e:mn(e.parentNode):null}function vn(e){var t=window.getComputedStyle(e);return"grid"===t.display?{x:sn(t.gridColumnGap),y:sn(t.gridRowGap)}:{x:0,y:0}}var bn=27,yn=32,wn=37,xn=38,Sn=39,Cn=40,kn="A",En="BUTTON",$n="CANVAS",_n="INPUT",An="OPTION",On="TEXTAREA",Ln="SELECT";function Rn(e){var t="input, textarea, select, canvas, [contenteditable]",n=e.querySelectorAll(t),i=e.cloneNode(!0);return qt(i.querySelectorAll(t)).forEach((function(e,t){("file"!==e.type&&(e.value=n[t].value),"radio"===e.type&&e.name&&(e.name="__sortableClone__".concat(e.name)),e.tagName===$n&&n[t].width>0&&n[t].height>0)&&e.getContext("2d").drawImage(n[t],0,0)})),i}function Tn(e){return null!=e.sortableHandle}var Mn=function(){function e(t,n){Mt(this,e),this.container=t,this.onScrollCallback=n}return Pt(e,[{key:"clear",value:function(){null!=this.interval&&(clearInterval(this.interval),this.interval=null)}},{key:"update",value:function(e){var t=this,n=e.translate,i=e.minTranslate,o=e.maxTranslate,r=e.width,s=e.height,a={x:0,y:0},l={x:1,y:1},c=10,u=10,h=this.container,d=h.scrollTop,p=h.scrollLeft,f=h.scrollHeight,g=h.scrollWidth,m=0===d,v=f-d-h.clientHeight==0,b=0===p,y=g-p-h.clientWidth==0;n.y>=o.y-s/2&&!v?(a.y=1,l.y=u*Math.abs((o.y-s/2-n.y)/s)):n.x>=o.x-r/2&&!y?(a.x=1,l.x=c*Math.abs((o.x-r/2-n.x)/r)):n.y<=i.y+s/2&&!m?(a.y=-1,l.y=u*Math.abs((n.y-s/2-i.y)/s)):n.x<=i.x+r/2&&!b&&(a.x=-1,l.x=c*Math.abs((n.x-r/2-i.x)/r)),this.interval&&(this.clear(),this.isAutoScrolling=!1),0===a.x&&0===a.y||(this.interval=setInterval((function(){t.isAutoScrolling=!0;var e={left:l.x*a.x,top:l.y*a.y};t.container.scrollTop+=e.top,t.container.scrollLeft+=e.left,t.onScrollCallback(e)}),5))}}]),e}();var In={axis:Vt.a.oneOf(["x","y","xy"]),contentWindow:Vt.a.any,disableAutoscroll:Vt.a.bool,distance:Vt.a.number,getContainer:Vt.a.func,getHelperDimensions:Vt.a.func,helperClass:Vt.a.string,helperContainer:Vt.a.oneOfType([Vt.a.func,"undefined"==typeof HTMLElement?Vt.a.any:Vt.a.instanceOf(HTMLElement)]),hideSortableGhost:Vt.a.bool,keyboardSortingTransitionDuration:Vt.a.number,lockAxis:Vt.a.string,lockOffset:Vt.a.oneOfType([Vt.a.number,Vt.a.string,Vt.a.arrayOf(Vt.a.oneOfType([Vt.a.number,Vt.a.string]))]),lockToContainerEdges:Vt.a.bool,onSortEnd:Vt.a.func,onSortMove:Vt.a.func,onSortOver:Vt.a.func,onSortStart:Vt.a.func,pressDelay:Vt.a.number,pressThreshold:Vt.a.number,keyCodes:Vt.a.shape({lift:Vt.a.arrayOf(Vt.a.number),drop:Vt.a.arrayOf(Vt.a.number),cancel:Vt.a.arrayOf(Vt.a.number),up:Vt.a.arrayOf(Vt.a.number),down:Vt.a.arrayOf(Vt.a.number)}),shouldCancelStart:Vt.a.func,transitionDuration:Vt.a.number,updateBeforeSortStart:Vt.a.func,useDragHandle:Vt.a.bool,useWindowAsScrollContainer:Vt.a.bool},Pn={lift:[yn],drop:[yn],cancel:[bn],up:[xn,wn],down:[Cn,Sn]},Fn={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:function(e){var t=e.node;return{height:t.offsetHeight,width:t.offsetWidth}},hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:Pn,shouldCancelStart:function(e){return-1!==[_n,On,Ln,An,En].indexOf(e.target.tagName)||!!on(e.target,(function(e){return"true"===e.contentEditable}))},transitionDuration:300,useWindowAsScrollContainer:!1},Dn=Object.keys(In);function jn(e){Kt()(!(e.distance&&e.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}function Nn(e,t){try{var n=e()}catch(e){return t(!0,e)}return n&&n.then?n.then(t.bind(null,!1),t.bind(null,!0)):t(!1,value)}var Bn={index:Vt.a.number.isRequired,collection:Vt.a.oneOfType([Vt.a.number,Vt.a.string]),disabled:Vt.a.bool},zn=Object.keys(Bn);function Wn(e){return(Wn="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)}function Hn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vn(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Un(e,t){return(Un=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Gn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Yn(e);if(t){var o=Yn(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Kn(this,n)}}function Kn(e,t){return!t||"object"!==Wn(t)&&"function"!=typeof t?qn(e):t}function qn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yn(e){return(Yn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Xn(){return(Xn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Qn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Jn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qn(Object(n),!0).forEach((function(t){Zn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ei(e){return function(e){if(Array.isArray(e))return ii(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||ni(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ti(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(o)throw r}}return n}(e,t)||ni(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ni(e,t){if(e){if("string"==typeof e)return ii(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ii(e,t):void 0}}function ii(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var oi=wp.i18n.__,ri=wp.hooks,si=ri.applyFilters,ai=ri.addFilter,li=wp.element,ci=li.Fragment,ui=li.Component,hi=li.useState,di=li.createRef,pi=wp.components,fi=pi.Button,gi=pi.Modal,mi=pi.FocalPointPicker,vi=pi.withNotices,bi=wp.compose,yi=bi.compose,wi=bi.withInstanceId,xi=wp.blockEditor.MediaUpload,Si=["image"];var Ci=function(e){var t,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){return Mt(this,n),jt(this,Nt(n).apply(this,arguments))}return zt(n,t),Pt(n,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(e){this.node&&(e.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),e.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),e.collection!==this.props.collection&&(this.unregister(e.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var e=this.props,t=e.collection,n=e.disabled,i=e.index,o=Object(Ut.findDOMNode)(this);o.sortableInfo={collection:t,disabled:n,index:i,manager:this.context.manager},this.node=o,this.ref={node:o},this.context.manager.add(t,this.ref)}},{key:"unregister",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.collection;this.context.manager.remove(e,this.ref)}},{key:"getWrappedInstance",value:function(){return Kt()(i.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var t=i.withRef?"wrappedInstance":null;return Object(Wt.createElement)(e,_t({ref:t},Qt(this.props,zn)))}}]),n}(Wt.Component),Rt(t,"displayName",ln("sortableElement",e)),Rt(t,"contextTypes",{manager:Vt.a.object.isRequired}),Rt(t,"propTypes",Bn),Rt(t,"defaultProps",{collection:0}),n}((function(e){var t=e.img,n=e.items,i=e.idx,o=e.onChange,r=e.imageControls,s=e.controlName,a=e.attributes,l=e.focalPoint,c=e.clientId,u=e.isSetupWizard,h=ti(hi(!1),2),d=h[0],p=h[1];return wp.element.createElement(ci,null,wp.element.createElement("div",{className:"vpf-component-gallery-control-item"},wp.element.createElement(fi,{className:"vpf-component-gallery-control-item-button",onClick:function(){return p(!0)},"aria-expanded":d},wp.element.createElement("img",{src:t.imgThumbnailUrl||t.imgUrl,alt:t.alt||t.imgThumbnailUrl||t.imgUrl}),wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},wp.element.createElement("circle",{cx:"12",cy:"12",r:"3"}),wp.element.createElement("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"}))),wp.element.createElement(fi,{className:"vpf-component-gallery-control-item-remove",onClick:function(){var e=ei(n);e[i]&&(e.splice(i,1),o(e))}},wp.element.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M3.5 5.5H7.5M16.5 5.5H12.5M12.5 5.5V2.5H7.5V5.5M12.5 5.5H7.5M5 8.5L6 17H14L15 8.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"transparent"})))),d?wp.element.createElement(gi,{title:oi("Image Settings","@@text_domain"),onRequestClose:function(e){e.relatedTarget&&e.relatedTarget.classList&&e.relatedTarget.classList.contains("media-modal")||p(!1)}},wp.element.createElement("div",{className:"vpf-component-gallery-control-item-modal"},l?wp.element.createElement(mi,{url:t.imgThumbnailUrl||t.imgUrl,value:t.focalPoint,onChange:function(e){var t=ei(n);t[i]&&(t[i]=Jn(Jn({},t[i]),{},{focalPoint:e}),o(t))}}):"",Object.keys(r).map((function(l){var h=[],d="".concat(s,"[").concat(i,"].").concat(l);return r[l].condition.length&&r[l].condition.forEach((function(e){var t=Jn({},e);t.control&&/SELF/g.test(t.control)&&(t.control=t.control.replace(/SELF/g,"".concat(s,"[").concat(i,"]"))),h.push(t)})),si("vpf.editor.gallery-controls-render",wp.element.createElement(jr.Control,Xn({key:"".concat(t.id||t.imgThumbnailUrl||t.imgUrl,"-").concat(i,"-").concat(l),attributes:a,onChange:function(e){var t=ei(n);t[i]&&(t[i]=Jn(Jn({},t[i]),{},Zn({},l,e)),o(t))}},r[l],{name:d,value:t[l],condition:h,clientId:c,isSetupWizard:u})),r[l],e)})))):null)})),ki=function(e){var t,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(e){var t;return Mt(this,n),Rt(Dt(Dt(t=jt(this,Nt(n).call(this,e)))),"state",{}),Rt(Dt(Dt(t)),"handleStart",(function(e){var n=t.props,i=n.distance,o=n.shouldCancelStart;if(2!==e.button&&!o(e)){t.touched=!0,t.position=un(e);var r=on(e.target,(function(e){return null!=e.sortableInfo}));if(r&&r.sortableInfo&&t.nodeIsChild(r)&&!t.state.sorting){var s=t.props.useDragHandle,a=r.sortableInfo,l=a.index,c=a.collection;if(a.disabled)return;if(s&&!on(e.target,Tn))return;t.manager.active={collection:c,index:l},hn(e)||e.target.tagName!==kn||e.preventDefault(),i||(0===t.props.pressDelay?t.handlePress(e):t.pressTimer=setTimeout((function(){return t.handlePress(e)}),t.props.pressDelay))}}})),Rt(Dt(Dt(t)),"nodeIsChild",(function(e){return e.sortableInfo.manager===t.manager})),Rt(Dt(Dt(t)),"handleMove",(function(e){var n=t.props,i=n.distance,o=n.pressThreshold;if(!t.state.sorting&&t.touched&&!t._awaitingUpdateBeforeSortStart){var r=un(e),s={x:t.position.x-r.x,y:t.position.y-r.y},a=Math.abs(s.x)+Math.abs(s.y);t.delta=s,i||o&&!(a>=o)?i&&a>=i&&t.manager.isActive()&&t.handlePress(e):(clearTimeout(t.cancelTimer),t.cancelTimer=setTimeout(t.cancel,0))}})),Rt(Dt(Dt(t)),"handleEnd",(function(){t.touched=!1,t.cancel()})),Rt(Dt(Dt(t)),"cancel",(function(){var e=t.props.distance;t.state.sorting||(e||clearTimeout(t.pressTimer),t.manager.active=null)})),Rt(Dt(Dt(t)),"handlePress",(function(e){try{var n=t.manager.getActive(),i=function(){if(n){var i=function(){var n=d.sortableInfo.index,i=an(d),o=vn(t.container),c=t.scrollContainer.getBoundingClientRect(),g=s({index:n,node:d,collection:p});if(t.node=d,t.margin=i,t.gridGap=o,t.width=g.width,t.height=g.height,t.marginOffset={x:t.margin.left+t.margin.right+t.gridGap.x,y:Math.max(t.margin.top,t.margin.bottom,t.gridGap.y)},t.boundingClientRect=d.getBoundingClientRect(),t.containerBoundingRect=c,t.index=n,t.newIndex=n,t.axis={x:r.indexOf("x")>=0,y:r.indexOf("y")>=0},t.offsetEdge=dn(d,t.container),t.initialOffset=un(f?Tt({},e,{pageX:t.boundingClientRect.left,pageY:t.boundingClientRect.top}):e),t.initialScroll={left:t.scrollContainer.scrollLeft,top:t.scrollContainer.scrollTop},t.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},t.helper=t.helperContainer.appendChild(Rn(d)),en(t.helper,{boxSizing:"border-box",height:"".concat(t.height,"px"),left:"".concat(t.boundingClientRect.left-i.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(t.boundingClientRect.top-i.top,"px"),width:"".concat(t.width,"px")}),f&&t.helper.focus(),l&&(t.sortableGhost=d,en(d,{opacity:0,visibility:"hidden"})),t.minTranslate={},t.maxTranslate={},f){var m=h?{top:0,left:0,width:t.contentWindow.innerWidth,height:t.contentWindow.innerHeight}:t.containerBoundingRect,v=m.top,b=m.left,y=m.width,w=v+m.height,x=b+y;t.axis.x&&(t.minTranslate.x=b-t.boundingClientRect.left,t.maxTranslate.x=x-(t.boundingClientRect.left+t.width)),t.axis.y&&(t.minTranslate.y=v-t.boundingClientRect.top,t.maxTranslate.y=w-(t.boundingClientRect.top+t.height))}else t.axis.x&&(t.minTranslate.x=(h?0:c.left)-t.boundingClientRect.left-t.width/2,t.maxTranslate.x=(h?t.contentWindow.innerWidth:c.left+c.width)-t.boundingClientRect.left-t.width/2),t.axis.y&&(t.minTranslate.y=(h?0:c.top)-t.boundingClientRect.top-t.height/2,t.maxTranslate.y=(h?t.contentWindow.innerHeight:c.top+c.height)-t.boundingClientRect.top-t.height/2);a&&a.split(" ").forEach((function(e){return t.helper.classList.add(e)})),t.listenerNode=e.touches?d:t.contentWindow,f?(t.listenerNode.addEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.addEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.addEventListener("keydown",t.handleKeyDown)):(Jt.move.forEach((function(e){return t.listenerNode.addEventListener(e,t.handleSortMove,!1)})),Jt.end.forEach((function(e){return t.listenerNode.addEventListener(e,t.handleSortEnd,!1)}))),t.setState({sorting:!0,sortingIndex:n}),u&&u({node:d,index:n,collection:p,isKeySorting:f,nodes:t.manager.getOrderedRefs(),helper:t.helper},e),f&&t.keyMove(0)},o=t.props,r=o.axis,s=o.getHelperDimensions,a=o.helperClass,l=o.hideSortableGhost,c=o.updateBeforeSortStart,u=o.onSortStart,h=o.useWindowAsScrollContainer,d=n.node,p=n.collection,f=t.manager.isKeySorting,g=function(){if("function"==typeof c){t._awaitingUpdateBeforeSortStart=!0;var n=Nn((function(){var t=d.sortableInfo.index;return Promise.resolve(c({collection:p,index:t,node:d,isKeySorting:f},e)).then((function(){}))}),(function(e,n){if(t._awaitingUpdateBeforeSortStart=!1,e)throw n;return n}));if(n&&n.then)return n.then((function(){}))}}();return g&&g.then?g.then(i):i()}}();return Promise.resolve(i&&i.then?i.then((function(){})):void 0)}catch(e){return Promise.reject(e)}})),Rt(Dt(Dt(t)),"handleSortMove",(function(e){var n=t.props.onSortMove;"function"==typeof e.preventDefault&&e.preventDefault(),t.updateHelperPosition(e),t.animateNodes(),t.autoscroll(),n&&n(e)})),Rt(Dt(Dt(t)),"handleSortEnd",(function(e){var n=t.props,i=n.hideSortableGhost,o=n.onSortEnd,r=t.manager,s=r.active.collection,a=r.isKeySorting,l=t.manager.getOrderedRefs();t.listenerNode&&(a?(t.listenerNode.removeEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("keydown",t.handleKeyDown)):(Jt.move.forEach((function(e){return t.listenerNode.removeEventListener(e,t.handleSortMove)})),Jt.end.forEach((function(e){return t.listenerNode.removeEventListener(e,t.handleSortEnd)})))),t.helper.parentNode.removeChild(t.helper),i&&t.sortableGhost&&en(t.sortableGhost,{opacity:"",visibility:""});for(var c=0,u=l.length;c<u;c++){var h=l[c],d=h.node;h.edgeOffset=null,h.boundingClientRect=null,tn(d,null),nn(d,null),h.translate=null}t.autoScroller.clear(),t.manager.active=null,t.manager.isKeySorting=!1,t.setState({sorting:!1,sortingIndex:null}),"function"==typeof o&&o({collection:s,newIndex:t.newIndex,oldIndex:t.index,isKeySorting:a,nodes:l},e),t.touched=!1})),Rt(Dt(Dt(t)),"autoscroll",(function(){var e=t.props.disableAutoscroll,n=t.manager.isKeySorting;if(e)t.autoScroller.clear();else{if(n){var i=Tt({},t.translate),o=0,r=0;return t.axis.x&&(i.x=Math.min(t.maxTranslate.x,Math.max(t.minTranslate.x,t.translate.x)),o=t.translate.x-i.x),t.axis.y&&(i.y=Math.min(t.maxTranslate.y,Math.max(t.minTranslate.y,t.translate.y)),r=t.translate.y-i.y),t.translate=i,tn(t.helper,t.translate),t.scrollContainer.scrollLeft+=o,void(t.scrollContainer.scrollTop+=r)}t.autoScroller.update({height:t.height,maxTranslate:t.maxTranslate,minTranslate:t.minTranslate,translate:t.translate,width:t.width})}})),Rt(Dt(Dt(t)),"onAutoScroll",(function(e){t.translate.x+=e.left,t.translate.y+=e.top,t.animateNodes()})),Rt(Dt(Dt(t)),"handleKeyDown",(function(e){var n=e.keyCode,i=t.props,o=i.shouldCancelStart,r=i.keyCodes,s=Tt({},Pn,void 0===r?{}:r);t.manager.active&&!t.manager.isKeySorting||!(t.manager.active||s.lift.includes(n)&&!o(e)&&t.isValidSortingTarget(e))||(e.stopPropagation(),e.preventDefault(),s.lift.includes(n)&&!t.manager.active?t.keyLift(e):s.drop.includes(n)&&t.manager.active?t.keyDrop(e):s.cancel.includes(n)?(t.newIndex=t.manager.active.index,t.keyDrop(e)):s.up.includes(n)?t.keyMove(-1):s.down.includes(n)&&t.keyMove(1))})),Rt(Dt(Dt(t)),"keyLift",(function(e){var n=e.target,i=on(n,(function(e){return null!=e.sortableInfo})).sortableInfo,o=i.index,r=i.collection;t.initialFocusedNode=n,t.manager.isKeySorting=!0,t.manager.active={index:o,collection:r},t.handlePress(e)})),Rt(Dt(Dt(t)),"keyMove",(function(e){var n=t.manager.getOrderedRefs(),i=n[n.length-1].node.sortableInfo.index,o=t.newIndex+e,r=t.newIndex;if(!(o<0||o>i)){t.prevIndex=r,t.newIndex=o;var s=pn(t.newIndex,t.prevIndex,t.index),a=n.find((function(e){return e.node.sortableInfo.index===s})),l=a.node,c=t.containerScrollDelta,u=a.boundingClientRect||cn(l,c),h=a.translate||{x:0,y:0},d=u.top+h.y-c.top,p=u.left+h.x-c.left,f=r<o,g=f&&t.axis.x?l.offsetWidth-t.width:0,m=f&&t.axis.y?l.offsetHeight-t.height:0;t.handleSortMove({pageX:p+g,pageY:d+m,ignoreTransition:0===e})}})),Rt(Dt(Dt(t)),"keyDrop",(function(e){t.handleSortEnd(e),t.initialFocusedNode&&t.initialFocusedNode.focus()})),Rt(Dt(Dt(t)),"handleKeyEnd",(function(e){t.manager.active&&t.keyDrop(e)})),Rt(Dt(Dt(t)),"isValidSortingTarget",(function(e){var n=t.props.useDragHandle,i=e.target,o=on(i,(function(e){return null!=e.sortableInfo}));return o&&o.sortableInfo&&!o.sortableInfo.disabled&&(n?Tn(i):i.sortableInfo)})),jn(e),t.manager=new Yt,t.events={end:t.handleEnd,move:t.handleMove,start:t.handleStart},t}return zt(n,t),Pt(n,[{key:"getChildContext",value:function(){return{manager:this.manager}}},{key:"componentDidMount",value:function(){var e=this,t=this.props.useWindowAsScrollContainer,n=this.getContainer();Promise.resolve(n).then((function(n){e.container=n,e.document=e.container.ownerDocument||document;var i=e.props.contentWindow||e.document.defaultView||window;e.contentWindow="function"==typeof i?i():i,e.scrollContainer=t?e.document.scrollingElement||e.document.documentElement:mn(e.container)||e.container,e.autoScroller=new Mn(e.scrollContainer,e.onAutoScroll),Object.keys(e.events).forEach((function(t){return Jt[t].forEach((function(n){return e.container.addEventListener(n,e.events[t],!1)}))})),e.container.addEventListener("keydown",e.handleKeyDown)}))}},{key:"componentWillUnmount",value:function(){var e=this;this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),this.container&&(Object.keys(this.events).forEach((function(t){return Jt[t].forEach((function(n){return e.container.removeEventListener(n,e.events[t])}))})),this.container.removeEventListener("keydown",this.handleKeyDown))}},{key:"updateHelperPosition",value:function(e){var t=this.props,n=t.lockAxis,i=t.lockOffset,o=t.lockToContainerEdges,r=t.transitionDuration,s=t.keyboardSortingTransitionDuration,a=void 0===s?r:s,l=this.manager.isKeySorting,c=e.ignoreTransition,u=un(e),h={x:u.x-this.initialOffset.x,y:u.y-this.initialOffset.y};if(h.y-=window.pageYOffset-this.initialWindowScroll.top,h.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=h,o){var d=Lt(gn({height:this.height,lockOffset:i,width:this.width}),2),p=d[0],f=d[1],g={x:this.width/2-p.x,y:this.height/2-p.y},m={x:this.width/2-f.x,y:this.height/2-f.y};h.x=rn(this.minTranslate.x+g.x,this.maxTranslate.x-m.x,h.x),h.y=rn(this.minTranslate.y+g.y,this.maxTranslate.y-m.y,h.y)}"x"===n?h.y=0:"y"===n&&(h.x=0),l&&a&&!c&&nn(this.helper,a),tn(this.helper,h)}},{key:"animateNodes",value:function(){var e=this.props,t=e.transitionDuration,n=e.hideSortableGhost,i=e.onSortOver,o=this.containerScrollDelta,r=this.windowScrollDelta,s=this.manager.getOrderedRefs(),a=this.offsetEdge.left+this.translate.x+o.left,l=this.offsetEdge.top+this.translate.y+o.top,c=this.manager.isKeySorting,u=this.newIndex;this.newIndex=null;for(var h=0,d=s.length;h<d;h++){var p=s[h].node,f=p.sortableInfo.index,g=p.offsetWidth,m=p.offsetHeight,v={height:this.height>m?m/2:this.height/2,width:this.width>g?g/2:this.width/2},b=c&&f>this.index&&f<=u,y=c&&f<this.index&&f>=u,w={x:0,y:0},x=s[h].edgeOffset;x||(x=dn(p,this.container),s[h].edgeOffset=x,c&&(s[h].boundingClientRect=cn(p,o)));var S=h<s.length-1&&s[h+1],C=h>0&&s[h-1];S&&!S.edgeOffset&&(S.edgeOffset=dn(S.node,this.container),c&&(S.boundingClientRect=cn(S.node,o))),f!==this.index?(t&&nn(p,t),this.axis.x?this.axis.y?y||f<this.index&&(a+r.left-v.width<=x.left&&l+r.top<=x.top+v.height||l+r.top+v.height<=x.top)?(w.x=this.width+this.marginOffset.x,x.left+w.x>this.containerBoundingRect.width-v.width&&S&&(w.x=S.edgeOffset.left-x.left,w.y=S.edgeOffset.top-x.top),null===this.newIndex&&(this.newIndex=f)):(b||f>this.index&&(a+r.left+v.width>=x.left&&l+r.top+v.height>=x.top||l+r.top+v.height>=x.top+m))&&(w.x=-(this.width+this.marginOffset.x),x.left+w.x<this.containerBoundingRect.left+v.width&&C&&(w.x=C.edgeOffset.left-x.left,w.y=C.edgeOffset.top-x.top),this.newIndex=f):b||f>this.index&&a+r.left+v.width>=x.left?(w.x=-(this.width+this.marginOffset.x),this.newIndex=f):(y||f<this.index&&a+r.left<=x.left+v.width)&&(w.x=this.width+this.marginOffset.x,null==this.newIndex&&(this.newIndex=f)):this.axis.y&&(b||f>this.index&&l+r.top+v.height>=x.top?(w.y=-(this.height+this.marginOffset.y),this.newIndex=f):(y||f<this.index&&l+r.top<=x.top+v.height)&&(w.y=this.height+this.marginOffset.y,null==this.newIndex&&(this.newIndex=f))),tn(p,w),s[h].translate=w):n&&(this.sortableGhost=p,en(p,{opacity:0,visibility:"hidden"}))}null==this.newIndex&&(this.newIndex=this.index),c&&(this.newIndex=u);var k=c?this.prevIndex:u;i&&this.newIndex!==k&&i({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:k,isKeySorting:c,nodes:s,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return Kt()(i.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call"),this.refs.wrappedInstance}},{key:"getContainer",value:function(){var e=this.props.getContainer;return"function"!=typeof e?Object(Ut.findDOMNode)(this):e(i.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var t=i.withRef?"wrappedInstance":null;return Object(Wt.createElement)(e,_t({ref:t},Qt(this.props,Dn)))}},{key:"helperContainer",get:function(){var e=this.props.helperContainer;return"function"==typeof e?e():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){return this.props.useWindowAsScrollContainer?{left:0,top:0}:{left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top}}},{key:"windowScrollDelta",get:function(){return{left:this.contentWindow.pageXOffset-this.initialWindowScroll.left,top:this.contentWindow.pageYOffset-this.initialWindowScroll.top}}}]),n}(Wt.Component),Rt(t,"displayName",ln("sortableList",e)),Rt(t,"defaultProps",Fn),Rt(t,"propTypes",In),Rt(t,"childContextTypes",{manager:Vt.a.object.isRequired}),n}((function(e){var t=e.items,n=e.onChange,i=e.imageControls,o=e.controlName,r=e.attributes,s=e.focalPoint,a=e.isSetupWizard,l=e.prepareImages,c=ti(hi(!a),2),u=c[0],h=c[1];return wp.element.createElement("div",{className:"vpf-component-gallery-control-items"},t.map((function(e,l){return wp.element.createElement(Ci,{key:"lzb-constructor-controls-items-sortable-".concat(e.id,"-").concat(l),index:l,img:e,idx:l,items:t,onChange:n,imageControls:i,controlName:o,attributes:r,focalPoint:s,isSetupWizard:a})})),wp.element.createElement(xi,{multiple:!0,onSelect:function(e){n([].concat(ei(t),ei(l(e))))},allowedTypes:Si,value:!1,render:function(e){var t=e.open;return u||(h(!0),t()),wp.element.createElement(fi,{className:"vpf-component-gallery-control-item-add",onClick:function(e){e.stopPropagation(),t()}},wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",role:"img","aria-hidden":"true",focusable:"false"},wp.element.createElement("path",{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"})),wp.element.createElement("span",null,oi("Add Images","@@text_domain")))}}))})),Ei=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Un(e,t)}(r,e);var t,n,i,o=Gn(r);function r(){var e;Hn(this,r);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=o.call.apply(o,[this].concat(n))).state={hasError:!1},e.sortRef=di(),e.onUploadError=e.onUploadError.bind(qn(e)),e}return t=r,(n=[{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"prepareImages",value:function(e){var t=[];return e&&e.length&&e.forEach((function(e){var n={id:e.id,imgUrl:e.url,imgThumbnailUrl:e.url};e.mime&&"image/gif"===e.mime||(e.sizes&&e.sizes.thumbnail&&e.sizes.thumbnail.url?n.imgThumbnailUrl=e.sizes.thumbnail.url:e.sizes&&e.sizes.medium&&e.sizes.medium.url?n.imgThumbnailUrl=e.sizes.medium.url:e.sizes&&e.sizes.large&&e.sizes.large.url&&(n.imgThumbnailUrl=e.sizes.large.url)),e.title&&(n.title=e.title),e.description&&(n.description=e.description),t.push(n)})),t}},{key:"render",value:function(){var e=this,t=this,n=this.props,i=n.imageControls,o=n.attributes,r=n.name,s=n.value,a=n.onChange,l=n.focalPoint,c=n.isSetupWizard,u=s.filter((function(e){return e.id}));return wp.element.createElement("div",{className:"vpf-component-gallery-control"},wp.element.createElement(xi,{onSelect:function(t){e.setState({hasError:!1}),a(e.prepareImages(t))},allowedTypes:Si,multiple:!0,value:u&&Object.keys(u).length?u.map((function(e){return e.id})):[],render:function(){return wp.element.createElement(ci,null,wp.element.createElement(ki,{ref:t.sortRef,items:u,onChange:a,imageControls:i,controlName:r,attributes:o,focalPoint:l,isSetupWizard:c,prepareImages:t.prepareImages,axis:"xy",distance:"3",onSortEnd:function(e){var t=e.oldIndex,n=e.newIndex,i=function(e,t,n){if(n>=e.length)for(var i=n-e.length+1;i;)i-=1,e.push(void 0);return e.splice(n,0,e.splice(t,1)[0]),e}(ei(u),t,n);a(i)},helperClass:"vpf-component-gallery-control-items-sortable",helperContainer:function(){return t.sortRef&&t.sortRef.current&&t.sortRef.current.container?t.sortRef.current.container:document.body}}))}}))}}])&&Vn(t.prototype,n),i&&Vn(t,i),r}(ui),$i=yi([wi,vi])(Ei);function _i(e){return(_i="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)}function Ai(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oi(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Li(e,t){return(Li=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ri(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Mi(e);if(t){var o=Mi(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Ti(this,n)}}function Ti(e,t){return!t||"object"!==_i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Mi(e){return(Mi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}ai("vpf.editor.controls-render-data","vpf/editor/controls-render-data/images-categories-suggestions",(function(e){if("images"===e.name){var t=[];e.attributes.images&&e.attributes.images.length&&e.attributes.images.forEach((function(e){e.categories&&e.categories.length&&e.categories.forEach((function(e){-1===t.indexOf(e)&&t.push(e)}))})),t.length&&e.image_controls&&e.image_controls.categories&&e.image_controls.categories.options&&(e.image_controls.categories.options=t.map((function(e){return{label:e,value:e}})))}return e}));var Ii=wp.components.ColorPicker,Pi=wp.element.Component,Fi=wp.i18n.__,Di=wp.components,ji=Di.Dropdown,Ni=Di.Tooltip,Bi=Di.BaseControl,zi=wp.blockEditor.ColorPalette,Wi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Li(e,t)}(s,e);var t,n,i,r=Ri(s);function s(){var e;Ai(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=r.call.apply(r,[this].concat(n))).state={keyForPalette:e.props.value,keyForPicker:e.props.value},e}return t=s,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.value,i=t.onChange,r=t.alpha,s=void 0!==r&&r,a=t.colorPalette,l=void 0===a||a,c=t.hint,u=void 0===c?Fi("Custom Color Picker","@@text_domain"):c,h=t.afterDropdownContent;return wp.element.createElement(ji,{className:o()("components-color-palette__item-wrapper components-circular-option-picker__option-wrapper",n?"":"components-color-palette__custom-color"),contentClassName:"components-color-palette__picker",renderToggle:function(e){var t=e.isOpen,i=e.onToggle;return wp.element.createElement(Ni,{text:u},wp.element.createElement("button",{type:"button","aria-expanded":t,className:"components-color-palette__item components-circular-option-picker__option",onClick:i,"aria-label":u,style:{color:n||""}},wp.element.createElement("span",{className:"components-color-palette__custom-color-gradient"})))},renderContent:function(){return wp.element.createElement("div",{className:"vpf-component-color-picker"},wp.element.createElement(Ii,{color:n,onChangeComplete:function(t){var n;if(void 0===t.rgb||1===t.rgb.a)n=t.hex;else{var o=t.rgb,r=o.r,s=o.g,a=o.b,l=o.a;n="rgba(".concat(r,", ").concat(s,", ").concat(a,", ").concat(l,")")}i(n||""),e.setState({keyForPalette:n})},disableAlpha:!s,key:e.state.keyForPicker}),l?wp.element.createElement(Bi,{label:Fi("Color Palette","@@text_domain"),className:"vpf-component-color-picker-palette"},wp.element.createElement(zi,{value:n,onChange:function(t){i(t||""),e.setState({keyForPicker:t})},disableCustomColors:!0,key:e.state.keyForPalette})):"",h||"")}})}}])&&Oi(t.prototype,n),i&&Oi(t,i),s}(Pi);function Hi(e){return(Hi="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)}function Vi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ui(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Gi(e,t){return(Gi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ki(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Yi(e);if(t){var o=Yi(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return qi(this,n)}}function qi(e,t){return!t||"object"!==Hi(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Yi(e){return(Yi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Xi=wp.element.Component,Qi=wp.i18n.__,Ji=wp.date,Zi=Ji.__experimentalGetSettings,eo=Ji.dateI18n,to=wp.components,no=to.Dropdown,io=to.Button,oo=to.DatePicker,ro=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Gi(e,t)}(r,e);var t,n,i,o=Ki(r);function r(){return Vi(this,r),o.apply(this,arguments)}return t=r,(n=[{key:"render",value:function(){var e=this.props,t=e.value,n=e.onChange,i=Zi().formats.datetime||"F j, Y";return wp.element.createElement(no,{renderToggle:function(e){var n=e.onToggle;return wp.element.createElement(io,{isSecondary:!0,isSmall:!0,onClick:n},t?eo(i,t):Qi("Select Date","@@text_domain"))},renderContent:function(){return wp.element.createElement("div",{className:"components-datetime vpf-component-date-picker"},wp.element.createElement(oo,{currentDate:t,onChange:n}),t?wp.element.createElement(io,{isSecondary:!0,isSmall:!0,onClick:function(){n("")}},Qi("Reset Date","@@text_domain")):"")}})}}])&&Ui(t.prototype,n),i&&Ui(t,i),r}(Xi);
12
  /*! *****************************************************************************
13
  Copyright (c) Microsoft Corporation.
14
 
23
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
24
  PERFORMANCE OF THIS SOFTWARE.
25
  ***************************************************************************** */
26
+ function so(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))}function ao(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}}var lo=function(e){};function co(e){lo(e)}(function(){(console.warn||console.log).apply(console,arguments)}).bind("[clipboard-polyfill]");var uo,ho,po,fo,go="undefined"==typeof navigator?void 0:navigator,mo=null==go?void 0:go.clipboard,vo=(null===(uo=null==mo?void 0:mo.read)||void 0===uo||uo.bind(mo),null===(ho=null==mo?void 0:mo.readText)||void 0===ho||ho.bind(mo),null===(po=null==mo?void 0:mo.write)||void 0===po||po.bind(mo),null===(fo=null==mo?void 0:mo.writeText)||void 0===fo?void 0:fo.bind(mo)),bo="undefined"==typeof window?void 0:window,yo=(null==bo||bo.ClipboardItem,bo);function wo(){return"undefined"==typeof ClipboardEvent&&void 0!==yo.clipboardData&&void 0!==yo.clipboardData.setData}var xo=function(){this.success=!1};function So(e,t,n){for(var i in co("listener called"),e.success=!0,t){var o=t[i],r=n.clipboardData;r.setData(i,o),"text/plain"===i&&r.getData(i)!==o&&(co("setting text/plain failed"),e.success=!1)}n.preventDefault()}function Co(e){var t=new xo,n=So.bind(this,t,e);document.addEventListener("copy",n);try{document.execCommand("copy")}finally{document.removeEventListener("copy",n)}return t.success}function ko(e,t){Eo(e);var n=Co(t);return $o(),n}function Eo(e){var t=document.getSelection();if(t){var n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)}}function $o(){var e=document.getSelection();e&&e.removeAllRanges()}function _o(e){return so(this,void 0,void 0,(function(){var t;return ao(this,(function(n){if(t="text/plain"in e,wo()){if(!t)throw new Error("No `text/plain` value was specified.");if(i=e["text/plain"],yo.clipboardData.setData("Text",i))return[2,!0];throw new Error("Copying failed, possibly because the user rejected it.")}var i;return Co(e)?(co("regular execCopy worked"),[2,!0]):navigator.userAgent.indexOf("Edge")>-1?(co('UA "Edge" => assuming success'),[2,!0]):ko(document.body,e)?(co("copyUsingTempSelection worked"),[2,!0]):function(e){var t=document.createElement("div");t.setAttribute("style","-webkit-user-select: text !important"),t.textContent="temporary element",document.body.appendChild(t);var n=ko(t,e);return document.body.removeChild(t),n}(e)?(co("copyUsingTempElem worked"),[2,!0]):function(e){co("copyTextUsingDOM");var t=document.createElement("div");t.setAttribute("style","-webkit-user-select: text !important");var n=t;t.attachShadow&&(co("Using shadow DOM."),n=t.attachShadow({mode:"open"}));var i=document.createElement("span");i.innerText=e,n.appendChild(i),document.body.appendChild(t),Eo(i);var o=document.execCommand("copy");return $o(),document.body.removeChild(t),o}(e["text/plain"])?(co("copyTextUsingDOM worked"),[2,!0]):[2,!1]}))}))}!function(){function e(e,t){var n;for(var i in void 0===t&&(t={}),this.types=Object.keys(e),this._items={},e){var o=e[i];this._items[i]="string"==typeof o?Ao(i,o):o}this.presentationStyle=null!==(n=null==t?void 0:t.presentationStyle)&&void 0!==n?n:"unspecified"}e.prototype.getType=function(e){return so(this,void 0,void 0,(function(){return ao(this,(function(t){return[2,this._items[e]]}))}))}}();function Ao(e,t){return new Blob([t],{type:e})}function Oo(){return(Oo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Lo(e){return(Lo="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)}function Ro(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function To(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Mo(e,t,n){return t&&To(e.prototype,t),n&&To(e,n),e}function Io(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Po(e,t)}function Po(e,t){return(Po=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Fo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=No(e);if(t){var o=No(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Do(this,n)}}function Do(e,t){return!t||"object"!==Lo(t)&&"function"!=typeof t?jo(e):t}function jo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function No(e){return(No=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Bo=wp.element,zo=Bo.Component,Wo=Bo.Fragment;function Ho(e){if(e&&e.hasChildNodes()){for(var t=[],n=0;n<e.childNodes.length;n+=1)t.push(Ho(e.childNodes[n]));return{classList:e.classList,nodeName:e.nodeName,children:t}}return!1}var Vo=function(e){Io(n,e);var t=Fo(n);function n(){var e;Ro(this,n);for(var i=arguments.length,o=new Array(i),r=0;r<i;r++)o[r]=arguments[r];return(e=t.call.apply(t,[this].concat(o))).state={nodes:!1},e.onFrameLoad=e.onFrameLoad.bind(jo(e)),e.maybeFindIframe=e.maybeFindIframe.bind(jo(e)),e.updateTreeData=e.updateTreeData.bind(jo(e)),e}return Mo(n,[{key:"componentDidMount",value:function(){this.maybeFindIframe()}},{key:"componentDidUpdate",value:function(){this.maybeFindIframe()}},{key:"componentWillUnmount",value:function(){this.iframePreview&&this.iframePreview.removeEventListener("load",this.onFrameLoad)}},{key:"onFrameLoad",value:function(){this.iframePreview.contentWindow&&(this.frameWindow=this.iframePreview.contentWindow,this.frameJQuery=this.iframePreview.contentWindow.jQuery,this.frameJQuery&&(this.$framePortfolio=this.frameJQuery(".vp-portfolio")),this.updateTreeData())}},{key:"maybeFindIframe",value:function(){if(!this.iframePreview){var e=this.props.clientId,t=document.getElementById("vpf-preview-".concat(e));t&&(this.iframePreview=t,this.iframePreview.addEventListener("load",this.onFrameLoad),this.onFrameLoad())}}},{key:"updateTreeData",value:function(){this.$framePortfolio&&this.setState({nodes:Ho(this.$framePortfolio[0])})}},{key:"render",value:function(){return this.iframePreview?wp.element.createElement("div",{className:"vpf-component-classes-tree"},wp.element.createElement(n.TreeItem,{node:this.state.nodes,skipNodeByClass:/vp-portfolio__item-popup/,collapseByClass:/^(vp-portfolio__preloader-wrap|vp-portfolio__filter-wrap|vp-portfolio__sort-wrap|vp-portfolio__items-wrap|vp-portfolio__pagination-wrap)$/,skipClass:/vp-uid-/})):null}}]),n}(zo);function Uo(){return(Uo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Go(e){return(Go="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)}function Ko(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qo(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Yo(e,t,n){return t&&qo(e.prototype,t),n&&qo(e,n),e}function Xo(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Qo(e,t)}function Qo(e,t){return(Qo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Jo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=er(e);if(t){var o=er(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Zo(this,n)}}function Zo(e,t){return!t||"object"!==Go(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function er(e){return(er=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Vo.TreeItem=function(e){Io(n,e);var t=Fo(n);function n(){var e;Ro(this,n);for(var i=arguments.length,o=new Array(i),r=0;r<i;r++)o[r]=arguments[r];return(e=t.call.apply(t,[this].concat(o))).state={isCollapsed:null},e.isCollapsed=e.isCollapsed.bind(jo(e)),e}return Mo(n,[{key:"isCollapsed",value:function(){var e=this.props,t=e.node,n=e.collapseByClass,i=this.state.isCollapsed;return null===i&&t&&t.classList&&t.classList.length&&t.classList.forEach((function(e){n&&n.test(e)&&(i=!0)})),i}},{key:"render",value:function(){var e=this,t=this.props,n=t.node,i=t.skipNodeByClass,o=t.skipClass;if(!n||!n.children.length)return null;var r=[],s=!1;return n.classList&&n.classList.length&&n.classList.forEach((function(e){o&&o.test(e)||r.push(e),i&&i.test(e)&&(s=!0)})),s?null:wp.element.createElement("ul",null,wp.element.createElement("li",{className:"vpf-component-classes-tree-node ".concat(this.isCollapsed()?"":"is-collapsed")},wp.element.createElement("div",null,n.children.length?wp.element.createElement("button",{type:"button",className:"vpf-component-classes-tree-node-collapse",onClick:function(){return e.setState({isCollapsed:!e.isCollapsed()})}}):"","<",n.nodeName.toLowerCase(),r.length?wp.element.createElement(Wo,null,' class="',r.map((function(e){return wp.element.createElement("button",{key:e,type:"button",className:"vpf-component-classes-tree-node-class",onClick:function(){!function(e){so(this,void 0,void 0,(function(){return ao(this,(function(t){if(vo)return co("Using `navigator.clipboard.writeText()`."),[2,vo(e)];if(!_o(function(e){var t={};return t["text/plain"]=e,t}(e)))throw new Error("writeText() failed");return[2]}))}))}(e)}},e)})),'"'):"",">")),n.children.length&&this.isCollapsed()?n.children.map((function(t){return t?wp.element.createElement("li",{className:"vpf-component-classes-tree-child"},wp.element.createElement(Vo.TreeItem,Oo({},e.props,{node:t}))):null})):"")}}]),n}(zo);var tr=wp.element.Component,nr=function(e){Xo(n,e);var t=Jo(n);function n(){return Ko(this,n),t.apply(this,arguments)}return Yo(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.children,i=e.contentBefore,o=void 0===i?"":i,r=e.contentAfter,s=void 0===r?"":r;return wp.element.createElement("div",{className:"vpf-pro-component-note"},o,wp.element.createElement("div",{className:"vpf-pro-component-note-inner"},t?wp.element.createElement("h3",null,t):"",n?wp.element.createElement("div",null,n):""),s)}}]),n}(tr);nr.Button=function(e){Xo(n,e);var t=Jo(n);function n(){return Ko(this,n),t.apply(this,arguments)}return Yo(n,[{key:"render",value:function(){var e=this.props.children;return wp.element.createElement("a",Uo({className:"vpf-pro-component-note-button"},this.props),e)}}]),n}(tr);var ir=n(29),or=n(18);function rr(e){return(rr="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)}function sr(){return(sr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function ar(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function lr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ur(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function hr(e,t){return(hr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function dr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=fr(e);if(t){var o=fr(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return pr(this,n)}}function pr(e,t){return!t||"object"!==rr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function fr(e){return(fr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var gr=wp.i18n.__,mr=wp.element,vr=mr.Component,br=mr.Fragment,yr=mr.RawHTML,wr=wp.hooks.applyFilters,xr=wp.components,Sr=xr.PanelBody,Cr=xr.Tooltip,kr=xr.BaseControl,Er=xr.ButtonGroup,$r=xr.Button,_r=xr.TextControl,Ar=xr.TextareaControl,Or=xr.CheckboxControl,Lr=xr.RadioControl,Rr=xr.ToggleControl,Tr=xr.RangeControl,Mr=window.VPGutenbergVariables,Ir=Mr.controls,Pr=Mr.controls_categories,Fr={},Dr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&hr(e,t)}(r,e);var t,n,i,o=dr(r);function r(){return cr(this,r),o.apply(this,arguments)}return t=r,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.category,i=t.categoryToggle,o=void 0===i||i,s=t.attributes,a=t.setAttributes,l=t.controls,c=t.clientId,u=t.isSetupWizard;if(!s)return null;if(/^content-source-/g.test(n)&&"content-source-additional"!==n&&"content-source-".concat(s.content_source)!==n)return null;var h=l||Ir,d=[];Object.keys(h).forEach((function(t){var i=h[t];if(!n||i.category&&n===i.category){var o=wr("vpf.editor.controls-render-data",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ar(Object(n),!0).forEach((function(t){lr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ar(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({attributes:s,setAttributes:a,onChange:function(e){var t=wr("vpf.editor.controls-on-change",lr({},i.name,e),i,e,s);a(t)}},i));r.AllowRender(o,u)&&d.push(wr("vpf.editor.controls-render",wp.element.createElement(r.Control,sr({key:"control-".concat(i.name,"-").concat(i.label)},o,{clientId:c,isSetupWizard:u})),o,e.props))}}));var p=!!o&&n,f=!1,g=!1,m=!o;return o&&void 0!==Pr[n]&&(p=Pr[n].title,f=Pr[n].icon||!1,g=!!Pr[n].is_pro,void 0===Fr[n]&&(Fr[n]=Pr[n].is_opened||!1),m=Fr[n]),u?d.length?wp.element.createElement("div",{className:"vpf-setup-wizard-panel"},d):"":d.length?wp.element.createElement(Sr,{title:!!p&&wp.element.createElement(br,null,f?wp.element.createElement("span",{className:"vpf-control-category-title-icon"},wp.element.createElement(yr,null,f)):null,wp.element.createElement("span",null,p),g?wp.element.createElement("span",{className:"vpf-control-category-title-pro"},gr("PRO","@@text_domain")):""),initialOpen:m,onToggle:function(){Fr[n]=!m}},d):""}}])&&ur(t.prototype,n),i&&ur(t,i),r}(vr);Dr.Control=function(e){var t=e.attributes,n=e.onChange,i=e.isSetupWizard;if(!Dr.AllowRender(e,i))return null;var r="",s=e.label,a="",l=!!e.description&&wp.element.createElement(yr,null,e.description),c=o()("vpf-control-wrap","vpf-control-wrap-".concat(e.type)),u=Object(or.a)(e.name,t);switch(e.type){case"html":r=wp.element.createElement(yr,null,e.default);break;case"select":case"select2":r=wp.element.createElement(qe.a,{controlName:e.name,callback:e.value_callback,attributes:t,value:u,options:e.options||{},onChange:function(e){return n(e)},isSearchable:e.searchable,isMultiple:e.multiple,isCreatable:e.creatable||e.tags});break;case"buttons":r=wp.element.createElement(Er,null,Object.keys(e.options||{}).map((function(t){return wp.element.createElement($r,{isSmall:!0,isPrimary:u===t,isPressed:u===t,key:t,onClick:function(){return n(t)}},e.options[t])})));break;case"icons_selector":r=wp.element.createElement(A,{controlName:e.name,callback:e.value_callback,attributes:t,value:u,options:e.options,onChange:function(e){return n(e)}});break;case"tiles_selector":r=wp.element.createElement(ye,{value:u,options:e.options,onChange:function(e){return n(e)}});break;case"elements_selector":r=wp.element.createElement($t,{value:u,locations:e.locations,options:e.options,onChange:function(e){return n(e)},props:e});break;case"align":r=wp.element.createElement(Te,{value:u,extended:e.extended,onChange:function(e){return n(e)}});break;case"aspect_ratio":r=wp.element.createElement(Ke,{value:u,onChange:function(e){return n(e)}});break;case"gallery":r=wp.element.createElement($i,{imageControls:e.image_controls,focalPoint:e.focal_point,attributes:t,name:e.name,value:u,onChange:function(e){return n(e)},isSetupWizard:i});break;case"code_editor":r=wp.element.createElement(N,{value:u,mode:e.mode,maxLines:e.max_lines,minLines:e.min_lines,codePlaceholder:e.code_placeholder,onChange:function(e){return n(e)}}),e.allow_modal&&(a=wp.element.createElement(ie,{modalTitle:gr("Custom CSS","@@text_domain"),buttonLabel:gr("Open in Modal","@@text_domain"),size:"md"},wp.element.createElement(kr,{label:e.label,help:!!e.description&&wp.element.createElement(yr,null,e.description),className:o()("vpf-control-wrap","vpf-control-wrap-".concat(e.type))},wp.element.createElement("div",null,r)),e.classes_tree?wp.element.createElement(br,null,wp.element.createElement("p",null,gr("Classes Tree:","@@text_domain")),wp.element.createElement(Vo,e)):""));break;case"range":r=wp.element.createElement(Tr,{min:e.min,max:e.max,step:e.step,value:parseFloat(u),onChange:function(e){return n(parseFloat(e))}});break;case"toggle":r=wp.element.createElement(Rr,{checked:u,label:e.alongside,onChange:function(e){return n(e)}});break;case"checkbox":r=wp.element.createElement(Or,{checked:u,label:e.alongside,onChange:function(e){return n(e)}});break;case"radio":r=wp.element.createElement(Lr,{label:s,selected:u,options:Object.keys(e.options||{}).map((function(t){return{label:e.options[t],value:t}})),onChange:function(e){return n(e)}}),s=!1;break;case"color":r=wp.element.createElement(Wi,{value:u,alpha:e.alpha,onChange:function(e){return n(e)}});break;case"date":r=wp.element.createElement(ro,{value:u,onChange:function(e){return n(e)}});break;case"textarea":r=wp.element.createElement(Ar,{label:s,value:u,onChange:function(e){return n(e)}}),s=!1;break;case"url":r=wp.element.createElement(_r,{label:s,type:"url",value:u,onChange:function(e){return n(e)}}),s=!1;break;case"number":r=wp.element.createElement(_r,{label:s,type:"number",min:e.min,max:e.max,step:e.step,value:parseFloat(u),onChange:function(e){return n(parseFloat(e))}}),s=!1;break;case"hidden":r=wp.element.createElement(_r,{type:"hidden",value:u,onChange:function(e){return n(e)}});break;case"pro_note":r=wp.element.createElement(nr,{title:s},l?wp.element.createElement("p",null,l):"",wp.element.createElement(nr.Button,{target:"_blank",rel:"noopener noreferrer",href:"https://visualportfolio.co/pro/?utm_source=freeplugin&utm_medium=link&utm_campaign=block_settings&utm_content=@@plugin_version"},gr("Read More","@@text_domain"))),s=!1,l=!1;break;default:r=wp.element.createElement(_r,{label:s,value:u,onChange:function(e){return n(e)}}),s=!1}return e.hint&&(r=wp.element.createElement(Cr,{text:e.hint,position:e.hint_place},wp.element.createElement("div",null,r))),wp.element.createElement(br,null,wp.element.createElement(kr,{label:s,help:l,className:c},wp.element.createElement("div",null,r)),a)},Dr.AllowRender=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!e.skip&&(!(e.condition&&e.condition.length&&!Object(ir.a)(e.condition,e.attributes))&&!(t&&!e.setup_wizard))};var jr=Dr,Nr=n(46);function Br(e){return(Br="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)}function zr(){return(zr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function Wr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hr(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Vr(e,t){return(Vr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ur(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Kr(e);if(t){var o=Kr(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Gr(this,n)}}function Gr(e,t){return!t||"object"!==Br(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Kr(e){return(Kr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var qr=wp.element,Yr=qr.Component,Xr=qr.Fragment,Qr=wp.components.Placeholder,Jr=wp.blockEditor.InspectorControls,Zr=window.VPGutenbergVariables,es=Zr.plugin_name,ts=Zr.controls_categories,ns=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Vr(e,t)}(a,e);var t,n,i,s=Ur(a);function a(){return Wr(this,a),s.apply(this,arguments)}return t=a,(n=[{key:"componentDidMount",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,i=t.block_id,o=t.content_source;t.setup_wizard||i&&o||n({setup_wizard:"true"})}},{key:"componentDidUpdate",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,i=t.setup_wizard,o=t.content_source,r=t.images;if(i&&o)switch(o){case"images":r&&r.length&&n({setup_wizard:"",items_count:-1,items_click_action:"popup_gallery"});break;case"post-based":case"social-stream":n({setup_wizard:"",layout_elements:{top:{elements:[],align:"center"},items:{elements:["items"]},bottom:{elements:["pagination"],align:"center"}}});break;default:n({setup_wizard:""})}}},{key:"renderControls",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.attributes,i=n.content_source;return"portfolio"===i&&(i=""),wp.element.createElement(Xr,null,wp.element.createElement(jr,zr({category:"content-source"},e,{isSetupWizard:t})),i?wp.element.createElement(Xr,null,Object.keys(ts).map((function(n){return"content-source"===n?null:wp.element.createElement(jr,zr({key:n,category:n},e,{isSetupWizard:t}))}))):"")}},{key:"render",value:function(){var e=this.props.attributes,t=this.props.className,n=e.setup_wizard,i=e.ghostkitClassname;return i&&(t=o()(t,i)),wp.element.createElement(Xr,null,"true"!==n?wp.element.createElement(Jr,null,this.renderControls(this.props)):"",wp.element.createElement("div",{className:t},"true"!==n?wp.element.createElement(Nr.a,this.props):wp.element.createElement(Qr,{className:"vpf-setup-wizard",icon:wp.element.createElement(r.a,{width:"20",height:"20"}),label:es},this.renderControls(this.props,!0))))}}])&&Hr(t.prototype,n),i&&Hr(t,i),a}(Yr)},function(e){e.exports=JSON.parse('{"name":"visual-portfolio/block","category":"media","supports":{"anchor":true,"className":true,"html":false,"align":["wide","full"]}}')},function(e){e.exports=JSON.parse('{"name":"visual-portfolio/saved","category":"media","supports":{"anchor":true,"className":true,"html":false,"align":["wide","full"]}}')},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var s=n(1),a=n(0),l=n(48),c=n(49),u=c.getAceInstance(),h=u.require("ace/range").Range,d=function(e){function t(t){var n=e.call(this,t)||this;return c.editorEvents.forEach((function(e){n[e]=n[e].bind(n)})),n.debounce=c.debounce,n}return o(t,e),t.prototype.isInShadow=function(e){for(var t=e&&e.parentNode;t;){if("[object ShadowRoot]"===t.toString())return!0;t=t.parentNode}return!1},t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.className,i=t.onBeforeLoad,o=t.onValidate,r=t.mode,s=t.focus,a=t.theme,l=t.fontSize,h=t.value,d=t.defaultValue,p=t.showGutter,f=t.wrapEnabled,g=t.showPrintMargin,m=t.scrollMargin,v=void 0===m?[0,0,0,0]:m,b=t.keyboardHandler,y=t.onLoad,w=t.commands,x=t.annotations,S=t.markers,C=t.placeholder;this.editor=u.edit(this.refEditor),i&&i(u);for(var k=Object.keys(this.props.editorProps),E=0;E<k.length;E++)this.editor[k[E]]=this.props.editorProps[k[E]];this.props.debounceChangePeriod&&(this.onChange=this.debounce(this.onChange,this.props.debounceChangePeriod)),this.editor.renderer.setScrollMargin(v[0],v[1],v[2],v[3]),this.isInShadow(this.refEditor)&&this.editor.renderer.attachToShadowRoot(),this.editor.getSession().setMode("ace/mode/"+r),this.editor.setTheme("ace/theme/"+a),this.editor.setFontSize("number"==typeof l?l+"px":l),this.editor.getSession().setValue(d||(h||"")),this.props.navigateToFileEnd&&this.editor.navigateFileEnd(),this.editor.renderer.setShowGutter(p),this.editor.getSession().setUseWrapMode(f),this.editor.setShowPrintMargin(g),this.editor.on("focus",this.onFocus),this.editor.on("blur",this.onBlur),this.editor.on("copy",this.onCopy),this.editor.on("paste",this.onPaste),this.editor.on("change",this.onChange),this.editor.on("input",this.onInput),C&&this.updatePlaceholder(),this.editor.getSession().selection.on("changeSelection",this.onSelectionChange),this.editor.getSession().selection.on("changeCursor",this.onCursorChange),o&&this.editor.getSession().on("changeAnnotation",(function(){var t=e.editor.getSession().getAnnotations();e.props.onValidate(t)})),this.editor.session.on("changeScrollTop",this.onScroll),this.editor.getSession().setAnnotations(x||[]),S&&S.length>0&&this.handleMarkers(S);var $=this.editor.$options;c.editorOptions.forEach((function(t){$.hasOwnProperty(t)?e.editor.setOption(t,e.props[t]):e.props[t]&&console.warn("ReactAce: editor option "+t+" was activated but not found. Did you need to import a related tool or did you possibly mispell the option?")})),this.handleOptions(this.props),Array.isArray(w)&&w.forEach((function(t){"string"==typeof t.exec?e.editor.commands.bindKey(t.bindKey,t.exec):e.editor.commands.addCommand(t)})),b&&this.editor.setKeyboardHandler("ace/keyboard/"+b),n&&(this.refEditor.className+=" "+n),y&&y(this.editor),this.editor.resize(),s&&this.editor.focus()},t.prototype.componentDidUpdate=function(e){for(var t=e,n=this.props,i=0;i<c.editorOptions.length;i++){var o=c.editorOptions[i];n[o]!==t[o]&&this.editor.setOption(o,n[o])}if(n.className!==t.className){var r=this.refEditor.className.trim().split(" ");t.className.trim().split(" ").forEach((function(e){var t=r.indexOf(e);r.splice(t,1)})),this.refEditor.className=" "+n.className+" "+r.join(" ")}if(this.editor&&null!=n.value&&this.editor.getValue()!==n.value){this.silent=!0;var s=this.editor.session.selection.toJSON();this.editor.setValue(n.value,n.cursorStart),this.editor.session.selection.fromJSON(s),this.silent=!1}n.placeholder!==t.placeholder&&this.updatePlaceholder(),n.mode!==t.mode&&this.editor.getSession().setMode("ace/mode/"+n.mode),n.theme!==t.theme&&this.editor.setTheme("ace/theme/"+n.theme),n.keyboardHandler!==t.keyboardHandler&&(n.keyboardHandler?this.editor.setKeyboardHandler("ace/keyboard/"+n.keyboardHandler):this.editor.setKeyboardHandler(null)),n.fontSize!==t.fontSize&&this.editor.setFontSize("number"==typeof n.fontSize?n.fontSize+"px":n.fontSize),n.wrapEnabled!==t.wrapEnabled&&this.editor.getSession().setUseWrapMode(n.wrapEnabled),n.showPrintMargin!==t.showPrintMargin&&this.editor.setShowPrintMargin(n.showPrintMargin),n.showGutter!==t.showGutter&&this.editor.renderer.setShowGutter(n.showGutter),l(n.setOptions,t.setOptions)||this.handleOptions(n),l(n.annotations,t.annotations)||this.editor.getSession().setAnnotations(n.annotations||[]),!l(n.markers,t.markers)&&Array.isArray(n.markers)&&this.handleMarkers(n.markers),l(n.scrollMargin,t.scrollMargin)||this.handleScrollMargins(n.scrollMargin),e.height===this.props.height&&e.width===this.props.width||this.editor.resize(),this.props.focus&&!e.focus&&this.editor.focus()},t.prototype.handleScrollMargins=function(e){void 0===e&&(e=[0,0,0,0]),this.editor.renderer.setScrollMargin(e[0],e[1],e[2],e[3])},t.prototype.componentWillUnmount=function(){this.editor.destroy(),this.editor=null},t.prototype.onChange=function(e){if(this.props.onChange&&!this.silent){var t=this.editor.getValue();this.props.onChange(t,e)}},t.prototype.onSelectionChange=function(e){if(this.props.onSelectionChange){var t=this.editor.getSelection();this.props.onSelectionChange(t,e)}},t.prototype.onCursorChange=function(e){if(this.props.onCursorChange){var t=this.editor.getSelection();this.props.onCursorChange(t,e)}},t.prototype.onInput=function(e){this.props.onInput&&this.props.onInput(e),this.props.placeholder&&this.updatePlaceholder()},t.prototype.onFocus=function(e){this.props.onFocus&&this.props.onFocus(e,this.editor)},t.prototype.onBlur=function(e){this.props.onBlur&&this.props.onBlur(e,this.editor)},t.prototype.onCopy=function(e){var t=e.text;this.props.onCopy&&this.props.onCopy(t)},t.prototype.onPaste=function(e){var t=e.text;this.props.onPaste&&this.props.onPaste(t)},t.prototype.onScroll=function(){this.props.onScroll&&this.props.onScroll(this.editor)},t.prototype.handleOptions=function(e){for(var t=Object.keys(e.setOptions),n=0;n<t.length;n++)this.editor.setOption(t[n],e.setOptions[t[n]])},t.prototype.handleMarkers=function(e){var t=this,n=this.editor.getSession().getMarkers(!0);for(var i in n)n.hasOwnProperty(i)&&this.editor.getSession().removeMarker(n[i].id);for(var i in n=this.editor.getSession().getMarkers(!1))n.hasOwnProperty(i)&&"ace_active-line"!==n[i].clazz&&"ace_selected-word"!==n[i].clazz&&this.editor.getSession().removeMarker(n[i].id);e.forEach((function(e){var n=e.startRow,i=e.startCol,o=e.endRow,r=e.endCol,s=e.className,a=e.type,l=e.inFront,c=void 0!==l&&l,u=new h(n,i,o,r);t.editor.getSession().addMarker(u,s,a,c)}))},t.prototype.updatePlaceholder=function(){var e=this.editor,t=this.props.placeholder,n=!e.session.getValue().length,i=e.renderer.placeholderNode;!n&&i?(e.renderer.scroller.removeChild(e.renderer.placeholderNode),e.renderer.placeholderNode=null):n&&!i?((i=e.renderer.placeholderNode=document.createElement("div")).textContent=t||"",i.className="ace_comment ace_placeholder",i.style.padding="0 9px",i.style.position="absolute",i.style.zIndex="3",e.renderer.scroller.appendChild(i)):n&&i&&(i.textContent=t)},t.prototype.updateRef=function(e){this.refEditor=e},t.prototype.render=function(){var e=this.props,t=e.name,n=e.width,i=e.height,o=e.style,s=r({width:n,height:i},o);return a.createElement("div",{ref:this.updateRef,id:t,style:s})},t.propTypes={mode:s.string,focus:s.bool,theme:s.string,name:s.string,className:s.string,height:s.string,width:s.string,fontSize:s.oneOfType([s.number,s.string]),showGutter:s.bool,onChange:s.func,onCopy:s.func,onPaste:s.func,onFocus:s.func,onInput:s.func,onBlur:s.func,onScroll:s.func,value:s.string,defaultValue:s.string,onLoad:s.func,onSelectionChange:s.func,onCursorChange:s.func,onBeforeLoad:s.func,onValidate:s.func,minLines:s.number,maxLines:s.number,readOnly:s.bool,highlightActiveLine:s.bool,tabSize:s.number,showPrintMargin:s.bool,cursorStart:s.number,debounceChangePeriod:s.number,editorProps:s.object,setOptions:s.object,style:s.object,scrollMargin:s.array,annotations:s.array,markers:s.array,keyboardHandler:s.string,wrapEnabled:s.bool,enableSnippets:s.bool,enableBasicAutocompletion:s.oneOfType([s.bool,s.array]),enableLiveAutocompletion:s.oneOfType([s.bool,s.array]),navigateToFileEnd:s.bool,commands:s.array,placeholder:s.string},t.defaultProps={name:"ace-editor",focus:!1,mode:"",theme:"",height:"500px",width:"500px",fontSize:12,enableSnippets:!1,showGutter:!0,onChange:null,onPaste:null,onLoad:null,onScroll:null,minLines:null,maxLines:null,readOnly:!1,highlightActiveLine:!0,showPrintMargin:!0,tabSize:4,cursorStart:1,editorProps:{},style:{},scrollMargin:[0,0,0,0],setOptions:{},wrapEnabled:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,placeholder:null,navigateToFileEnd:!0},t}(a.Component);t.default=d},function(e,t,n){"use strict";var i=n(86);function o(){}function r(){}r.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,r,s){if(s!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),s=n(0),a=n(51),l=n(90),c=function(e){function t(t){var n=e.call(this,t)||this;return n.state={value:n.props.value},n.onChange=n.onChange.bind(n),n.diff=n.diff.bind(n),n}return o(t,e),t.prototype.componentDidUpdate=function(){var e=this.props.value;e!==this.state.value&&this.setState({value:e})},t.prototype.onChange=function(e){this.setState({value:e}),this.props.onChange&&this.props.onChange(e)},t.prototype.diff=function(){var e=new l,t=this.state.value[0],n=this.state.value[1];if(0===t.length&&0===n.length)return[];var i=e.diff_main(t,n);e.diff_cleanupSemantic(i);var o=this.generateDiffedLines(i);return this.setCodeMarkers(o)},t.prototype.generateDiffedLines=function(e){var t=0,n=-1,i=1,o={left:[],right:[]},r={left:1,right:1};return e.forEach((function(e){var s=e[0],a=e[1],l=a.split("\n").length-1;if(0!==a.length){var c=a[0],u=a[a.length-1],h=0;switch(s){case t:r.left+=l,r.right+=l;break;case n:"\n"===c&&(r.left++,l--),0===(h=l)&&o.right.push({startLine:r.right,endLine:r.right}),"\n"===u&&(h-=1),o.left.push({startLine:r.left,endLine:r.left+h}),r.left+=l;break;case i:"\n"===c&&(r.right++,l--),0===(h=l)&&o.left.push({startLine:r.left,endLine:r.left}),"\n"===u&&(h-=1),o.right.push({startLine:r.right,endLine:r.right+h}),r.right+=l;break;default:throw new Error("Diff type was not defined.")}}})),o},t.prototype.setCodeMarkers=function(e){void 0===e&&(e={left:[],right:[]});for(var t=[],n={left:[],right:[]},i=0;i<e.left.length;i++){var o={startRow:e.left[i].startLine-1,endRow:e.left[i].endLine,type:"text",className:"codeMarker"};n.left.push(o)}for(i=0;i<e.right.length;i++){o={startRow:e.right[i].startLine-1,endRow:e.right[i].endLine,type:"text",className:"codeMarker"};n.right.push(o)}return t[0]=n.left,t[1]=n.right,t},t.prototype.render=function(){var e=this.diff();return s.createElement(a.default,{name:this.props.name,className:this.props.className,focus:this.props.focus,orientation:this.props.orientation,splits:this.props.splits,mode:this.props.mode,theme:this.props.theme,height:this.props.height,width:this.props.width,fontSize:this.props.fontSize,showGutter:this.props.showGutter,onChange:this.onChange,onPaste:this.props.onPaste,onLoad:this.props.onLoad,onScroll:this.props.onScroll,minLines:this.props.minLines,maxLines:this.props.maxLines,readOnly:this.props.readOnly,highlightActiveLine:this.props.highlightActiveLine,showPrintMargin:this.props.showPrintMargin,tabSize:this.props.tabSize,cursorStart:this.props.cursorStart,editorProps:this.props.editorProps,style:this.props.style,scrollMargin:this.props.scrollMargin,setOptions:this.props.setOptions,wrapEnabled:this.props.wrapEnabled,enableBasicAutocompletion:this.props.enableBasicAutocompletion,enableLiveAutocompletion:this.props.enableLiveAutocompletion,value:this.state.value,markers:e})},t.propTypes={cursorStart:r.number,editorProps:r.object,enableBasicAutocompletion:r.bool,enableLiveAutocompletion:r.bool,focus:r.bool,fontSize:r.number,height:r.string,highlightActiveLine:r.bool,maxLines:r.number,minLines:r.number,mode:r.string,name:r.string,className:r.string,onLoad:r.func,onPaste:r.func,onScroll:r.func,onChange:r.func,orientation:r.string,readOnly:r.bool,scrollMargin:r.array,setOptions:r.object,showGutter:r.bool,showPrintMargin:r.bool,splits:r.number,style:r.object,tabSize:r.number,theme:r.string,value:r.array,width:r.string,wrapEnabled:r.bool},t.defaultProps={cursorStart:1,editorProps:{},enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,focus:!1,fontSize:12,height:"500px",highlightActiveLine:!0,maxLines:null,minLines:null,mode:"",name:"ace-editor",onLoad:null,onScroll:null,onPaste:null,onChange:null,orientation:"beside",readOnly:!1,scrollMargin:[0,0,0,0],setOptions:{},showGutter:!0,showPrintMargin:!0,splits:2,style:{},tabSize:4,theme:"github",value:["",""],width:"500px",wrapEnabled:!0},t}(s.Component);t.default=c},function(e,t,n){(function(e){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})(e)}ace.define("ace/split",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/editor","ace/virtual_renderer","ace/edit_session"],(function(e,t,n){"use strict";var i=e("./lib/oop"),o=(e("./lib/lang"),e("./lib/event_emitter").EventEmitter),r=e("./editor").Editor,s=e("./virtual_renderer").VirtualRenderer,a=e("./edit_session").EditSession,l=function(e,t,n){this.BELOW=1,this.BESIDE=0,this.$container=e,this.$theme=t,this.$splits=0,this.$editorCSS="",this.$editors=[],this.$orientation=this.BESIDE,this.setSplits(n||1),this.$cEditor=this.$editors[0],this.on("focus",function(e){this.$cEditor=e}.bind(this))};(function(){i.implement(this,o),this.$createEditor=function(){var e=document.createElement("div");e.className=this.$editorCSS,e.style.cssText="position: absolute; top:0px; bottom:0px",this.$container.appendChild(e);var t=new r(new s(e,this.$theme));return t.on("focus",function(){this._emit("focus",t)}.bind(this)),this.$editors.push(t),t.setFontSize(this.$fontSize),t},this.setSplits=function(e){var t;if(e<1)throw"The number of splits have to be > 0!";if(e!=this.$splits){if(e>this.$splits){for(;this.$splits<this.$editors.length&&this.$splits<e;)t=this.$editors[this.$splits],this.$container.appendChild(t.container),t.setFontSize(this.$fontSize),this.$splits++;for(;this.$splits<e;)this.$createEditor(),this.$splits++}else for(;this.$splits>e;)t=this.$editors[this.$splits-1],this.$container.removeChild(t.container),this.$splits--;this.resize()}},this.getSplits=function(){return this.$splits},this.getEditor=function(e){return this.$editors[e]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(e){this.$editors.forEach((function(t){t.setTheme(e)}))},this.setKeyboardHandler=function(e){this.$editors.forEach((function(t){t.setKeyboardHandler(e)}))},this.forEach=function(e,t){this.$editors.forEach(e,t)},this.$fontSize="",this.setFontSize=function(e){this.$fontSize=e,this.forEach((function(t){t.setFontSize(e)}))},this.$cloneSession=function(e){var t=new a(e.getDocument(),e.getMode()),n=e.getUndoManager();return t.setUndoManager(n),t.setTabSize(e.getTabSize()),t.setUseSoftTabs(e.getUseSoftTabs()),t.setOverwrite(e.getOverwrite()),t.setBreakpoints(e.getBreakpoints()),t.setUseWrapMode(e.getUseWrapMode()),t.setUseWorker(e.getUseWorker()),t.setWrapLimitRange(e.$wrapLimitRange.min,e.$wrapLimitRange.max),t.$foldData=e.$cloneFoldData(),t},this.setSession=function(e,t){var n;return n=null==t?this.$cEditor:this.$editors[t],this.$editors.some((function(t){return t.session===e}))&&(e=this.$cloneSession(e)),n.setSession(e),e},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(e){this.$orientation!=e&&(this.$orientation=e,this.resize())},this.resize=function(){var e,t=this.$container.clientWidth,n=this.$container.clientHeight;if(this.$orientation==this.BESIDE)for(var i=t/this.$splits,o=0;o<this.$splits;o++)(e=this.$editors[o]).container.style.width=i+"px",e.container.style.top="0px",e.container.style.left=o*i+"px",e.container.style.height=n+"px",e.resize();else{var r=n/this.$splits;for(o=0;o<this.$splits;o++)(e=this.$editors[o]).container.style.width=t+"px",e.container.style.top=o*r+"px",e.container.style.left="0px",e.container.style.height=r+"px",e.resize()}}}).call(l.prototype),t.Split=l})),ace.define("ace/ext/split",["require","exports","module","ace/split"],(function(e,t,n){"use strict";n.exports=e("../split")})),ace.require(["ace/ext/split"],(function(i){"object"==n(e)&&"object"==n(t)&&e&&(e.exports=i)}))}).call(this,n(5)(e))},function(e,t,n){(function(t){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})(e)}var i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/,r=/^\./,s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,l=/^\[object .+?Constructor\]$/,c="object"==(void 0===t?"undefined":n(t))&&t&&t.Object===Object&&t,u="object"==("undefined"==typeof self?"undefined":n(self))&&self&&self.Object===Object&&self,h=c||u||Function("return this")();var d,p=Array.prototype,f=Function.prototype,g=Object.prototype,m=h["__core-js_shared__"],v=(d=/[^.]+$/.exec(m&&m.keys&&m.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"",b=f.toString,y=g.hasOwnProperty,w=g.toString,x=RegExp("^"+b.call(y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),S=h.Symbol,C=p.splice,k=P(h,"Map"),E=P(Object,"create"),$=S?S.prototype:void 0,_=$?$.toString:void 0;function A(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function O(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function L(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function R(e,t){for(var n=e.length;n--;)if(N(e[n][0],t))return n;return-1}function T(e,t){for(var r=0,s=(t=function(e,t){if(B(e))return!1;var r=n(e);if("number"==r||"symbol"==r||"boolean"==r||null==e||W(e))return!0;return o.test(e)||!i.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:function(e){return B(e)?e:F(e)}(t)).length;null!=e&&r<s;)e=e[D(t[r++])];return r&&r==s?e:void 0}function M(e){return!(!z(e)||(t=e,v&&v in t))&&(function(e){var t=z(e)?w.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?x:l).test(function(e){if(null!=e){try{return b.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}function I(e,t){var i=e.__data__;return function(e){var t=n(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?i["string"==typeof t?"string":"hash"]:i.map}function P(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return M(n)?n:void 0}A.prototype.clear=function(){this.__data__=E?E(null):{}},A.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},A.prototype.get=function(e){var t=this.__data__;if(E){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return y.call(t,e)?t[e]:void 0},A.prototype.has=function(e){var t=this.__data__;return E?void 0!==t[e]:y.call(t,e)},A.prototype.set=function(e,t){return this.__data__[e]=E&&void 0===t?"__lodash_hash_undefined__":t,this},O.prototype.clear=function(){this.__data__=[]},O.prototype.delete=function(e){var t=this.__data__,n=R(t,e);return!(n<0)&&(n==t.length-1?t.pop():C.call(t,n,1),!0)},O.prototype.get=function(e){var t=this.__data__,n=R(t,e);return n<0?void 0:t[n][1]},O.prototype.has=function(e){return R(this.__data__,e)>-1},O.prototype.set=function(e,t){var n=this.__data__,i=R(n,e);return i<0?n.push([e,t]):n[i][1]=t,this},L.prototype.clear=function(){this.__data__={hash:new A,map:new(k||O),string:new A}},L.prototype.delete=function(e){return I(this,e).delete(e)},L.prototype.get=function(e){return I(this,e).get(e)},L.prototype.has=function(e){return I(this,e).has(e)},L.prototype.set=function(e,t){return I(this,e).set(e,t),this};var F=j((function(e){e=function(e){return null==e?"":function(e){if("string"==typeof e)return e;if(W(e))return _?_.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}(e);var t=[];return r.test(e)&&t.push(""),e.replace(s,(function(e,n,i,o){t.push(i?o.replace(a,"$1"):n||e)})),t}));function D(e){if("string"==typeof e||W(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function j(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var i=arguments,o=t?t.apply(this,i):i[0],r=n.cache;if(r.has(o))return r.get(o);var s=e.apply(this,i);return n.cache=r.set(o,s),s};return n.cache=new(j.Cache||L),n}function N(e,t){return e===t||e!=e&&t!=t}j.Cache=L;var B=Array.isArray;function z(e){var t=n(e);return!!e&&("object"==t||"function"==t)}function W(e){return"symbol"==n(e)||function(e){return!!e&&"object"==n(e)}(e)&&"[object Symbol]"==w.call(e)}e.exports=function(e,t,n){var i=null==e?void 0:T(e,t);return void 0===i?n:i}}).call(this,n(19))},function(e,t){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})(e)}var i=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32};i.Diff=function(e,t){return[e,t]},i.prototype.diff_main=function(e,t,n,o){void 0===o&&(o=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var r=o;if(null==e||null==t)throw new Error("Null input. (diff_main)");if(e==t)return e?[new i.Diff(0,e)]:[];void 0===n&&(n=!0);var s=n,a=this.diff_commonPrefix(e,t),l=e.substring(0,a);e=e.substring(a),t=t.substring(a),a=this.diff_commonSuffix(e,t);var c=e.substring(e.length-a);e=e.substring(0,e.length-a),t=t.substring(0,t.length-a);var u=this.diff_compute_(e,t,s,r);return l&&u.unshift(new i.Diff(0,l)),c&&u.push(new i.Diff(0,c)),this.diff_cleanupMerge(u),u},i.prototype.diff_compute_=function(e,t,n,o){var r;if(!e)return[new i.Diff(1,t)];if(!t)return[new i.Diff(-1,e)];var s=e.length>t.length?e:t,a=e.length>t.length?t:e,l=s.indexOf(a);if(-1!=l)return r=[new i.Diff(1,s.substring(0,l)),new i.Diff(0,a),new i.Diff(1,s.substring(l+a.length))],e.length>t.length&&(r[0][0]=r[2][0]=-1),r;if(1==a.length)return[new i.Diff(-1,e),new i.Diff(1,t)];var c=this.diff_halfMatch_(e,t);if(c){var u=c[0],h=c[1],d=c[2],p=c[3],f=c[4],g=this.diff_main(u,d,n,o),m=this.diff_main(h,p,n,o);return g.concat([new i.Diff(0,f)],m)}return n&&e.length>100&&t.length>100?this.diff_lineMode_(e,t,o):this.diff_bisect_(e,t,o)},i.prototype.diff_lineMode_=function(e,t,n){var o=this.diff_linesToChars_(e,t);e=o.chars1,t=o.chars2;var r=o.lineArray,s=this.diff_main(e,t,!1,n);this.diff_charsToLines_(s,r),this.diff_cleanupSemantic(s),s.push(new i.Diff(0,""));for(var a=0,l=0,c=0,u="",h="";a<s.length;){switch(s[a][0]){case 1:c++,h+=s[a][1];break;case-1:l++,u+=s[a][1];break;case 0:if(l>=1&&c>=1){s.splice(a-l-c,l+c),a=a-l-c;for(var d=this.diff_main(u,h,!1,n),p=d.length-1;p>=0;p--)s.splice(a,0,d[p]);a+=d.length}c=0,l=0,u="",h=""}a++}return s.pop(),s},i.prototype.diff_bisect_=function(e,t,n){for(var o=e.length,r=t.length,s=Math.ceil((o+r)/2),a=s,l=2*s,c=new Array(l),u=new Array(l),h=0;h<l;h++)c[h]=-1,u[h]=-1;c[a+1]=0,u[a+1]=0;for(var d=o-r,p=d%2!=0,f=0,g=0,m=0,v=0,b=0;b<s&&!((new Date).getTime()>n);b++){for(var y=-b+f;y<=b-g;y+=2){for(var w=a+y,x=($=y==-b||y!=b&&c[w-1]<c[w+1]?c[w+1]:c[w-1]+1)-y;$<o&&x<r&&e.charAt($)==t.charAt(x);)$++,x++;if(c[w]=$,$>o)g+=2;else if(x>r)f+=2;else if(p){if((k=a+d-y)>=0&&k<l&&-1!=u[k])if($>=(C=o-u[k]))return this.diff_bisectSplit_(e,t,$,x,n)}}for(var S=-b+m;S<=b-v;S+=2){for(var C,k=a+S,E=(C=S==-b||S!=b&&u[k-1]<u[k+1]?u[k+1]:u[k-1]+1)-S;C<o&&E<r&&e.charAt(o-C-1)==t.charAt(r-E-1);)C++,E++;if(u[k]=C,C>o)v+=2;else if(E>r)m+=2;else if(!p){if((w=a+d-S)>=0&&w<l&&-1!=c[w]){var $;x=a+($=c[w])-w;if($>=(C=o-C))return this.diff_bisectSplit_(e,t,$,x,n)}}}}return[new i.Diff(-1,e),new i.Diff(1,t)]},i.prototype.diff_bisectSplit_=function(e,t,n,i,o){var r=e.substring(0,n),s=t.substring(0,i),a=e.substring(n),l=t.substring(i),c=this.diff_main(r,s,!1,o),u=this.diff_main(a,l,!1,o);return c.concat(u)},i.prototype.diff_linesToChars_=function(e,t){var n=[],i={};function o(e){for(var t="",o=0,s=-1,a=n.length;s<e.length-1;){-1==(s=e.indexOf("\n",o))&&(s=e.length-1);var l=e.substring(o,s+1);(i.hasOwnProperty?i.hasOwnProperty(l):void 0!==i[l])?t+=String.fromCharCode(i[l]):(a==r&&(l=e.substring(o),s=e.length),t+=String.fromCharCode(a),i[l]=a,n[a++]=l),o=s+1}return t}n[0]="";var r=4e4,s=o(e);return r=65535,{chars1:s,chars2:o(t),lineArray:n}},i.prototype.diff_charsToLines_=function(e,t){for(var n=0;n<e.length;n++){for(var i=e[n][1],o=[],r=0;r<i.length;r++)o[r]=t[i.charCodeAt(r)];e[n][1]=o.join("")}},i.prototype.diff_commonPrefix=function(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,i=Math.min(e.length,t.length),o=i,r=0;n<o;)e.substring(r,o)==t.substring(r,o)?r=n=o:i=o,o=Math.floor((i-n)/2+n);return o},i.prototype.diff_commonSuffix=function(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,i=Math.min(e.length,t.length),o=i,r=0;n<o;)e.substring(e.length-o,e.length-r)==t.substring(t.length-o,t.length-r)?r=n=o:i=o,o=Math.floor((i-n)/2+n);return o},i.prototype.diff_commonOverlap_=function(e,t){var n=e.length,i=t.length;if(0==n||0==i)return 0;n>i?e=e.substring(n-i):n<i&&(t=t.substring(0,n));var o=Math.min(n,i);if(e==t)return o;for(var r=0,s=1;;){var a=e.substring(o-s),l=t.indexOf(a);if(-1==l)return r;s+=l,0!=l&&e.substring(o-s)!=t.substring(0,s)||(r=s,s++)}},i.prototype.diff_halfMatch_=function(e,t){if(this.Diff_Timeout<=0)return null;var n=e.length>t.length?e:t,i=e.length>t.length?t:e;if(n.length<4||2*i.length<n.length)return null;var o=this;function r(e,t,n){for(var i,r,s,a,l=e.substring(n,n+Math.floor(e.length/4)),c=-1,u="";-1!=(c=t.indexOf(l,c+1));){var h=o.diff_commonPrefix(e.substring(n),t.substring(c)),d=o.diff_commonSuffix(e.substring(0,n),t.substring(0,c));u.length<d+h&&(u=t.substring(c-d,c)+t.substring(c,c+h),i=e.substring(0,n-d),r=e.substring(n+h),s=t.substring(0,c-d),a=t.substring(c+h))}return 2*u.length>=e.length?[i,r,s,a,u]:null}var s,a,l,c,u,h=r(n,i,Math.ceil(n.length/4)),d=r(n,i,Math.ceil(n.length/2));return h||d?(s=d?h&&h[4].length>d[4].length?h:d:h,e.length>t.length?(a=s[0],l=s[1],c=s[2],u=s[3]):(c=s[0],u=s[1],a=s[2],l=s[3]),[a,l,c,u,s[4]]):null},i.prototype.diff_cleanupSemantic=function(e){for(var t=!1,n=[],o=0,r=null,s=0,a=0,l=0,c=0,u=0;s<e.length;)0==e[s][0]?(n[o++]=s,a=c,l=u,c=0,u=0,r=e[s][1]):(1==e[s][0]?c+=e[s][1].length:u+=e[s][1].length,r&&r.length<=Math.max(a,l)&&r.length<=Math.max(c,u)&&(e.splice(n[o-1],0,new i.Diff(-1,r)),e[n[o-1]+1][0]=1,o--,s=--o>0?n[o-1]:-1,a=0,l=0,c=0,u=0,r=null,t=!0)),s++;for(t&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),s=1;s<e.length;){if(-1==e[s-1][0]&&1==e[s][0]){var h=e[s-1][1],d=e[s][1],p=this.diff_commonOverlap_(h,d),f=this.diff_commonOverlap_(d,h);p>=f?(p>=h.length/2||p>=d.length/2)&&(e.splice(s,0,new i.Diff(0,d.substring(0,p))),e[s-1][1]=h.substring(0,h.length-p),e[s+1][1]=d.substring(p),s++):(f>=h.length/2||f>=d.length/2)&&(e.splice(s,0,new i.Diff(0,h.substring(0,f))),e[s-1][0]=1,e[s-1][1]=d.substring(0,d.length-f),e[s+1][0]=-1,e[s+1][1]=h.substring(f),s++),s++}s++}},i.prototype.diff_cleanupSemanticLossless=function(e){function t(e,t){if(!e||!t)return 6;var n=e.charAt(e.length-1),o=t.charAt(0),r=n.match(i.nonAlphaNumericRegex_),s=o.match(i.nonAlphaNumericRegex_),a=r&&n.match(i.whitespaceRegex_),l=s&&o.match(i.whitespaceRegex_),c=a&&n.match(i.linebreakRegex_),u=l&&o.match(i.linebreakRegex_),h=c&&e.match(i.blanklineEndRegex_),d=u&&t.match(i.blanklineStartRegex_);return h||d?5:c||u?4:r&&!a&&l?3:a||l?2:r||s?1:0}for(var n=1;n<e.length-1;){if(0==e[n-1][0]&&0==e[n+1][0]){var o=e[n-1][1],r=e[n][1],s=e[n+1][1],a=this.diff_commonSuffix(o,r);if(a){var l=r.substring(r.length-a);o=o.substring(0,o.length-a),r=l+r.substring(0,r.length-a),s=l+s}for(var c=o,u=r,h=s,d=t(o,r)+t(r,s);r.charAt(0)===s.charAt(0);){o+=r.charAt(0),r=r.substring(1)+s.charAt(0),s=s.substring(1);var p=t(o,r)+t(r,s);p>=d&&(d=p,c=o,u=r,h=s)}e[n-1][1]!=c&&(c?e[n-1][1]=c:(e.splice(n-1,1),n--),e[n][1]=u,h?e[n+1][1]=h:(e.splice(n+1,1),n--))}n++}},i.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,i.whitespaceRegex_=/\s/,i.linebreakRegex_=/[\r\n]/,i.blanklineEndRegex_=/\n\r?\n$/,i.blanklineStartRegex_=/^\r?\n\r?\n/,i.prototype.diff_cleanupEfficiency=function(e){for(var t=!1,n=[],o=0,r=null,s=0,a=!1,l=!1,c=!1,u=!1;s<e.length;)0==e[s][0]?(e[s][1].length<this.Diff_EditCost&&(c||u)?(n[o++]=s,a=c,l=u,r=e[s][1]):(o=0,r=null),c=u=!1):(-1==e[s][0]?u=!0:c=!0,r&&(a&&l&&c&&u||r.length<this.Diff_EditCost/2&&a+l+c+u==3)&&(e.splice(n[o-1],0,new i.Diff(-1,r)),e[n[o-1]+1][0]=1,o--,r=null,a&&l?(c=u=!0,o=0):(s=--o>0?n[o-1]:-1,c=u=!1),t=!0)),s++;t&&this.diff_cleanupMerge(e)},i.prototype.diff_cleanupMerge=function(e){e.push(new i.Diff(0,""));for(var t,n=0,o=0,r=0,s="",a="";n<e.length;)switch(e[n][0]){case 1:r++,a+=e[n][1],n++;break;case-1:o++,s+=e[n][1],n++;break;case 0:o+r>1?(0!==o&&0!==r&&(0!==(t=this.diff_commonPrefix(a,s))&&(n-o-r>0&&0==e[n-o-r-1][0]?e[n-o-r-1][1]+=a.substring(0,t):(e.splice(0,0,new i.Diff(0,a.substring(0,t))),n++),a=a.substring(t),s=s.substring(t)),0!==(t=this.diff_commonSuffix(a,s))&&(e[n][1]=a.substring(a.length-t)+e[n][1],a=a.substring(0,a.length-t),s=s.substring(0,s.length-t))),n-=o+r,e.splice(n,o+r),s.length&&(e.splice(n,0,new i.Diff(-1,s)),n++),a.length&&(e.splice(n,0,new i.Diff(1,a)),n++),n++):0!==n&&0==e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,o=0,s="",a=""}""===e[e.length-1][1]&&e.pop();var l=!1;for(n=1;n<e.length-1;)0==e[n-1][0]&&0==e[n+1][0]&&(e[n][1].substring(e[n][1].length-e[n-1][1].length)==e[n-1][1]?(e[n][1]=e[n-1][1]+e[n][1].substring(0,e[n][1].length-e[n-1][1].length),e[n+1][1]=e[n-1][1]+e[n+1][1],e.splice(n-1,1),l=!0):e[n][1].substring(0,e[n+1][1].length)==e[n+1][1]&&(e[n-1][1]+=e[n+1][1],e[n][1]=e[n][1].substring(e[n+1][1].length)+e[n+1][1],e.splice(n+1,1),l=!0)),n++;l&&this.diff_cleanupMerge(e)},i.prototype.diff_xIndex=function(e,t){var n,i=0,o=0,r=0,s=0;for(n=0;n<e.length&&(1!==e[n][0]&&(i+=e[n][1].length),-1!==e[n][0]&&(o+=e[n][1].length),!(i>t));n++)r=i,s=o;return e.length!=n&&-1===e[n][0]?s:s+(t-r)},i.prototype.diff_prettyHtml=function(e){for(var t=[],n=/&/g,i=/</g,o=/>/g,r=/\n/g,s=0;s<e.length;s++){var a=e[s][0],l=e[s][1].replace(n,"&amp;").replace(i,"&lt;").replace(o,"&gt;").replace(r,"&para;<br>");switch(a){case 1:t[s]='<ins style="background:#e6ffe6;">'+l+"</ins>";break;case-1:t[s]='<del style="background:#ffe6e6;">'+l+"</del>";break;case 0:t[s]="<span>"+l+"</span>"}}return t.join("")},i.prototype.diff_text1=function(e){for(var t=[],n=0;n<e.length;n++)1!==e[n][0]&&(t[n]=e[n][1]);return t.join("")},i.prototype.diff_text2=function(e){for(var t=[],n=0;n<e.length;n++)-1!==e[n][0]&&(t[n]=e[n][1]);return t.join("")},i.prototype.diff_levenshtein=function(e){for(var t=0,n=0,i=0,o=0;o<e.length;o++){var r=e[o][0],s=e[o][1];switch(r){case 1:n+=s.length;break;case-1:i+=s.length;break;case 0:t+=Math.max(n,i),n=0,i=0}}return t+=Math.max(n,i)},i.prototype.diff_toDelta=function(e){for(var t=[],n=0;n<e.length;n++)switch(e[n][0]){case 1:t[n]="+"+encodeURI(e[n][1]);break;case-1:t[n]="-"+e[n][1].length;break;case 0:t[n]="="+e[n][1].length}return t.join("\t").replace(/%20/g," ")},i.prototype.diff_fromDelta=function(e,t){for(var n=[],o=0,r=0,s=t.split(/\t/g),a=0;a<s.length;a++){var l=s[a].substring(1);switch(s[a].charAt(0)){case"+":try{n[o++]=new i.Diff(1,decodeURI(l))}catch(e){throw new Error("Illegal escape in diff_fromDelta: "+l)}break;case"-":case"=":var c=parseInt(l,10);if(isNaN(c)||c<0)throw new Error("Invalid number in diff_fromDelta: "+l);var u=e.substring(r,r+=c);"="==s[a].charAt(0)?n[o++]=new i.Diff(0,u):n[o++]=new i.Diff(-1,u);break;default:if(s[a])throw new Error("Invalid diff operation in diff_fromDelta: "+s[a])}}if(r!=e.length)throw new Error("Delta length ("+r+") does not equal source text length ("+e.length+").");return n},i.prototype.match_main=function(e,t,n){if(null==e||null==t||null==n)throw new Error("Null input. (match_main)");return n=Math.max(0,Math.min(n,e.length)),e==t?0:e.length?e.substring(n,n+t.length)==t?n:this.match_bitap_(e,t,n):-1},i.prototype.match_bitap_=function(e,t,n){if(t.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var i=this.match_alphabet_(t),o=this;function r(e,i){var r=e/t.length,s=Math.abs(n-i);return o.Match_Distance?r+s/o.Match_Distance:s?1:r}var s=this.Match_Threshold,a=e.indexOf(t,n);-1!=a&&(s=Math.min(r(0,a),s),-1!=(a=e.lastIndexOf(t,n+t.length))&&(s=Math.min(r(0,a),s)));var l,c,u=1<<t.length-1;a=-1;for(var h,d=t.length+e.length,p=0;p<t.length;p++){for(l=0,c=d;l<c;)r(p,n+c)<=s?l=c:d=c,c=Math.floor((d-l)/2+l);d=c;var f=Math.max(1,n-c+1),g=Math.min(n+c,e.length)+t.length,m=Array(g+2);m[g+1]=(1<<p)-1;for(var v=g;v>=f;v--){var b=i[e.charAt(v-1)];if(m[v]=0===p?(m[v+1]<<1|1)&b:(m[v+1]<<1|1)&b|(h[v+1]|h[v])<<1|1|h[v+1],m[v]&u){var y=r(p,v-1);if(y<=s){if(s=y,!((a=v-1)>n))break;f=Math.max(1,2*n-a)}}}if(r(p+1,n)>s)break;h=m}return a},i.prototype.match_alphabet_=function(e){for(var t={},n=0;n<e.length;n++)t[e.charAt(n)]=0;for(n=0;n<e.length;n++)t[e.charAt(n)]|=1<<e.length-n-1;return t},i.prototype.patch_addContext_=function(e,t){if(0!=t.length){if(null===e.start2)throw Error("patch not initialized");for(var n=t.substring(e.start2,e.start2+e.length1),o=0;t.indexOf(n)!=t.lastIndexOf(n)&&n.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)o+=this.Patch_Margin,n=t.substring(e.start2-o,e.start2+e.length1+o);o+=this.Patch_Margin;var r=t.substring(e.start2-o,e.start2);r&&e.diffs.unshift(new i.Diff(0,r));var s=t.substring(e.start2+e.length1,e.start2+e.length1+o);s&&e.diffs.push(new i.Diff(0,s)),e.start1-=r.length,e.start2-=r.length,e.length1+=r.length+s.length,e.length2+=r.length+s.length}},i.prototype.patch_make=function(e,t,o){var r,s;if("string"==typeof e&&"string"==typeof t&&void 0===o)r=e,(s=this.diff_main(r,t,!0)).length>2&&(this.diff_cleanupSemantic(s),this.diff_cleanupEfficiency(s));else if(e&&"object"==n(e)&&void 0===t&&void 0===o)s=e,r=this.diff_text1(s);else if("string"==typeof e&&t&&"object"==n(t)&&void 0===o)r=e,s=t;else{if("string"!=typeof e||"string"!=typeof t||!o||"object"!=n(o))throw new Error("Unknown call format to patch_make.");r=e,s=o}if(0===s.length)return[];for(var a=[],l=new i.patch_obj,c=0,u=0,h=0,d=r,p=r,f=0;f<s.length;f++){var g=s[f][0],m=s[f][1];switch(c||0===g||(l.start1=u,l.start2=h),g){case 1:l.diffs[c++]=s[f],l.length2+=m.length,p=p.substring(0,h)+m+p.substring(h);break;case-1:l.length1+=m.length,l.diffs[c++]=s[f],p=p.substring(0,h)+p.substring(h+m.length);break;case 0:m.length<=2*this.Patch_Margin&&c&&s.length!=f+1?(l.diffs[c++]=s[f],l.length1+=m.length,l.length2+=m.length):m.length>=2*this.Patch_Margin&&c&&(this.patch_addContext_(l,d),a.push(l),l=new i.patch_obj,c=0,d=p,u=h)}1!==g&&(u+=m.length),-1!==g&&(h+=m.length)}return c&&(this.patch_addContext_(l,d),a.push(l)),a},i.prototype.patch_deepCopy=function(e){for(var t=[],n=0;n<e.length;n++){var o=e[n],r=new i.patch_obj;r.diffs=[];for(var s=0;s<o.diffs.length;s++)r.diffs[s]=new i.Diff(o.diffs[s][0],o.diffs[s][1]);r.start1=o.start1,r.start2=o.start2,r.length1=o.length1,r.length2=o.length2,t[n]=r}return t},i.prototype.patch_apply=function(e,t){if(0==e.length)return[t,[]];e=this.patch_deepCopy(e);var n=this.patch_addPadding(e);t=n+t+n,this.patch_splitMax(e);for(var i=0,o=[],r=0;r<e.length;r++){var s,a,l=e[r].start2+i,c=this.diff_text1(e[r].diffs),u=-1;if(c.length>this.Match_MaxBits?-1!=(s=this.match_main(t,c.substring(0,this.Match_MaxBits),l))&&(-1==(u=this.match_main(t,c.substring(c.length-this.Match_MaxBits),l+c.length-this.Match_MaxBits))||s>=u)&&(s=-1):s=this.match_main(t,c,l),-1==s)o[r]=!1,i-=e[r].length2-e[r].length1;else if(o[r]=!0,i=s-l,c==(a=-1==u?t.substring(s,s+c.length):t.substring(s,u+this.Match_MaxBits)))t=t.substring(0,s)+this.diff_text2(e[r].diffs)+t.substring(s+c.length);else{var h=this.diff_main(c,a,!1);if(c.length>this.Match_MaxBits&&this.diff_levenshtein(h)/c.length>this.Patch_DeleteThreshold)o[r]=!1;else{this.diff_cleanupSemanticLossless(h);for(var d,p=0,f=0;f<e[r].diffs.length;f++){var g=e[r].diffs[f];0!==g[0]&&(d=this.diff_xIndex(h,p)),1===g[0]?t=t.substring(0,s+d)+g[1]+t.substring(s+d):-1===g[0]&&(t=t.substring(0,s+d)+t.substring(s+this.diff_xIndex(h,p+g[1].length))),-1!==g[0]&&(p+=g[1].length)}}}}return[t=t.substring(n.length,t.length-n.length),o]},i.prototype.patch_addPadding=function(e){for(var t=this.Patch_Margin,n="",o=1;o<=t;o++)n+=String.fromCharCode(o);for(o=0;o<e.length;o++)e[o].start1+=t,e[o].start2+=t;var r=e[0],s=r.diffs;if(0==s.length||0!=s[0][0])s.unshift(new i.Diff(0,n)),r.start1-=t,r.start2-=t,r.length1+=t,r.length2+=t;else if(t>s[0][1].length){var a=t-s[0][1].length;s[0][1]=n.substring(s[0][1].length)+s[0][1],r.start1-=a,r.start2-=a,r.length1+=a,r.length2+=a}if(0==(s=(r=e[e.length-1]).diffs).length||0!=s[s.length-1][0])s.push(new i.Diff(0,n)),r.length1+=t,r.length2+=t;else if(t>s[s.length-1][1].length){a=t-s[s.length-1][1].length;s[s.length-1][1]+=n.substring(0,a),r.length1+=a,r.length2+=a}return n},i.prototype.patch_splitMax=function(e){for(var t=this.Match_MaxBits,n=0;n<e.length;n++)if(!(e[n].length1<=t)){var o=e[n];e.splice(n--,1);for(var r=o.start1,s=o.start2,a="";0!==o.diffs.length;){var l=new i.patch_obj,c=!0;for(l.start1=r-a.length,l.start2=s-a.length,""!==a&&(l.length1=l.length2=a.length,l.diffs.push(new i.Diff(0,a)));0!==o.diffs.length&&l.length1<t-this.Patch_Margin;){var u=o.diffs[0][0],h=o.diffs[0][1];1===u?(l.length2+=h.length,s+=h.length,l.diffs.push(o.diffs.shift()),c=!1):-1===u&&1==l.diffs.length&&0==l.diffs[0][0]&&h.length>2*t?(l.length1+=h.length,r+=h.length,c=!1,l.diffs.push(new i.Diff(u,h)),o.diffs.shift()):(h=h.substring(0,t-l.length1-this.Patch_Margin),l.length1+=h.length,r+=h.length,0===u?(l.length2+=h.length,s+=h.length):c=!1,l.diffs.push(new i.Diff(u,h)),h==o.diffs[0][1]?o.diffs.shift():o.diffs[0][1]=o.diffs[0][1].substring(h.length))}a=(a=this.diff_text2(l.diffs)).substring(a.length-this.Patch_Margin);var d=this.diff_text1(o.diffs).substring(0,this.Patch_Margin);""!==d&&(l.length1+=d.length,l.length2+=d.length,0!==l.diffs.length&&0===l.diffs[l.diffs.length-1][0]?l.diffs[l.diffs.length-1][1]+=d:l.diffs.push(new i.Diff(0,d))),c||e.splice(++n,0,l)}}},i.prototype.patch_toText=function(e){for(var t=[],n=0;n<e.length;n++)t[n]=e[n];return t.join("")},i.prototype.patch_fromText=function(e){var t=[];if(!e)return t;for(var n=e.split("\n"),o=0,r=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;o<n.length;){var s=n[o].match(r);if(!s)throw new Error("Invalid patch string: "+n[o]);var a=new i.patch_obj;for(t.push(a),a.start1=parseInt(s[1],10),""===s[2]?(a.start1--,a.length1=1):"0"==s[2]?a.length1=0:(a.start1--,a.length1=parseInt(s[2],10)),a.start2=parseInt(s[3],10),""===s[4]?(a.start2--,a.length2=1):"0"==s[4]?a.length2=0:(a.start2--,a.length2=parseInt(s[4],10)),o++;o<n.length;){var l=n[o].charAt(0);try{var c=decodeURI(n[o].substring(1))}catch(e){throw new Error("Illegal escape in patch_fromText: "+c)}if("-"==l)a.diffs.push(new i.Diff(-1,c));else if("+"==l)a.diffs.push(new i.Diff(1,c));else if(" "==l)a.diffs.push(new i.Diff(0,c));else{if("@"==l)break;if(""!==l)throw new Error('Invalid patch mode "'+l+'" in: '+c)}o++}}return t},(i.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0}).prototype.toString=function(){for(var e,t=["@@ -"+(0===this.length1?this.start1+",0":1==this.length1?this.start1+1:this.start1+1+","+this.length1)+" +"+(0===this.length2?this.start2+",0":1==this.length2?this.start2+1:this.start2+1+","+this.length2)+" @@\n"],n=0;n<this.diffs.length;n++){switch(this.diffs[n][0]){case 1:e="+";break;case-1:e="-";break;case 0:e=" "}t[n+1]=e+encodeURI(this.diffs[n][1])+"\n"}return t.join("").replace(/%20/g," ")},e.exports=i,e.exports.diff_match_patch=i,e.exports.DIFF_DELETE=-1,e.exports.DIFF_INSERT=1,e.exports.DIFF_EQUAL=0},function(e,t,n){(function(e){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})(e)}ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=(e("../lib/lang"),e("./text_highlight_rules").TextHighlightRules),r=t.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",s=t.supportFunction="rgb|rgba|url|attr|counter|counters",a=t.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom",l=t.supportConstantColor="aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",c=t.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",u=t.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",h=t.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",d=t.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",p=function(){var e=this.createKeywordMapper({"support.function":s,"support.constant":a,"support.type":r,"support.constant.color":l,"support.constant.fonts":c},"text",!0);this.$rules={start:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"paren.rparen",regex:"\\}"},{token:"string",regex:"@(?!viewport)",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"keyword",regex:"%"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant.numeric",regex:u},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"start"},{token:"paren.rparen",regex:"\\}",next:"start"},{token:"string",regex:";",next:"start"},{token:"keyword",regex:"(?:media|supports|document|charset|import|namespace|media|supports|document|page|font|keyframes|viewport|counter-style|font-feature-values|swash|ornaments|annotation|stylistic|styleset|character-variant)"}],comments:[{token:"comment",regex:"\\/\\*",push:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}]}],ruleset:[{regex:"-(webkit|ms|moz|o)-",token:"text"},{token:"punctuation.operator",regex:"[:;]"},{token:"paren.rparen",regex:"\\}",next:"start"},{include:["strings","url","comments"]},{token:["constant.numeric","keyword"],regex:"("+u+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"},{token:"constant.numeric",regex:u},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:h},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:d},{include:"url"},{token:e,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};i.inherits(p,o),t.CssHighlightRules=p})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=e("../range").Range,o=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t).match(/^(\s*\})/);if(!n)return 0;var o=n[1].length,r=e.findMatchingBracket({row:t,column:o});if(!r||r.row==t)return 0;var s=this.$getIndent(e.getLine(r.row));e.replace(new i(t,0,t,o-1),s)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(o.prototype),t.MatchingBraceOutdent=o})),ace.define("ace/mode/css_completions",["require","exports","module"],(function(e,t,i){"use strict";var o={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,double:2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{default:1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},float:{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"%":1},"padding-right":{px:1,em:1,"%":1},"padding-bottom":{px:1,em:1,"%":1},"padding-left":{px:1,em:1,"%":1},"page-break-after":{auto:1,always:1,avoid:1,left:1,right:1},"page-break-before":{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,static:1},right:{px:1,em:1,"%":1},"table-layout":{fixed:1,auto:1},"text-decoration":{none:1,underline:1,"line-through":1,blink:1},"text-align":{left:1,right:1,center:1,justify:1},"text-transform":{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,"%":1},"vertical-align":{top:1,bottom:1},visibility:{hidden:1,visible:1},"white-space":{nowrap:1,normal:1,pre:1,"pre-line":1,"pre-wrap":1},width:{px:1,em:1,"%":1},"word-spacing":{normal:1},filter:{"alpha(opacity=$0100)":1},"text-shadow":{"$02px 2px 2px #777":1},"text-overflow":{"ellipsis-word":1,clip:1,ellipsis:1},"-moz-border-radius":1,"-moz-border-radius-topright":1,"-moz-border-radius-bottomright":1,"-moz-border-radius-topleft":1,"-moz-border-radius-bottomleft":1,"-webkit-border-radius":1,"-webkit-border-top-right-radius":1,"-webkit-border-top-left-radius":1,"-webkit-border-bottom-right-radius":1,"-webkit-border-bottom-left-radius":1,"-moz-box-shadow":1,"-webkit-box-shadow":1,transform:{"rotate($00deg)":1,"skew($00deg)":1},"-moz-transform":{"rotate($00deg)":1,"skew($00deg)":1},"-webkit-transform":{"rotate($00deg)":1,"skew($00deg)":1}},r=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var e=document.createElement("c").style;for(var t in e)if("string"==typeof e[t]){var n=t.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()}));o.hasOwnProperty(n)||(o[n]=1)}}this.completionsDefined=!0},this.getCompletions=function(e,t,n,i){if(this.completionsDefined||this.defineCompletions(),"ruleset"===e||"ace/mode/scss"==t.$mode.$id){var o=t.getLine(n.row).substr(0,n.column);return/:[^;]+$/.test(o)?(/([\w\-]+):[^:]*$/.test(o),this.getPropertyValueCompletions(e,t,n,i)):this.getPropertyCompletions(e,t,n,i)}return[]},this.getPropertyCompletions=function(e,t,n,i){return Object.keys(o).map((function(e){return{caption:e,snippet:e+": $0;",meta:"property",score:1e6}}))},this.getPropertyValueCompletions=function(e,t,i,r){var s=t.getLine(i.row).substr(0,i.column),a=(/([\w\-]+):[^:]*$/.exec(s)||{})[1];if(!a)return[];var l=[];return a in o&&"object"===n(o[a])&&(l=Object.keys(o[a])),l.map((function(e){return{caption:e,snippet:e,meta:"property value",score:1e6}}))}}).call(r.prototype),t.CssCompletions=r})),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],(function(e,t,n){"use strict";var i=e("../../lib/oop"),o=(e("../behaviour").Behaviour,e("./cstyle").CstyleBehaviour),r=e("../../token_iterator").TokenIterator,s=function(){this.inherit(o),this.add("colon","insertion",(function(e,t,n,i,o){if(":"===o&&n.selection.isEmpty()){var s=n.getCursorPosition(),a=new r(i,s.row,s.column),l=a.getCurrentToken();if(l&&l.value.match(/\s+/)&&(l=a.stepBackward()),l&&"support.type"===l.type){var c=i.doc.getLine(s.row);if(":"===c.substring(s.column,s.column+1))return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(c.substring(s.column)))return{text:":;",selection:[1,1]}}}})),this.add("colon","deletion",(function(e,t,n,i,o){var s=i.doc.getTextRange(o);if(!o.isMultiLine()&&":"===s){var a=n.getCursorPosition(),l=new r(i,a.row,a.column),c=l.getCurrentToken();if(c&&c.value.match(/\s+/)&&(c=l.stepBackward()),c&&"support.type"===c.type)if(";"===i.doc.getLine(o.start.row).substring(o.end.column,o.end.column+1))return o.end.column++,o}})),this.add("semicolon","insertion",(function(e,t,n,i,o){if(";"===o&&n.selection.isEmpty()){var r=n.getCursorPosition();if(";"===i.doc.getLine(r.row).substring(r.column,r.column+1))return{text:"",selection:[1,1]}}})),this.add("!important","insertion",(function(e,t,n,i,o){if("!"===o&&n.selection.isEmpty()){var r=n.getCursorPosition(),s=i.doc.getLine(r.row);if(/^\s*(;|}|$)/.test(s.substring(r.column)))return{text:"!important",selection:[10,10]}}}))};i.inherits(s,o),t.CssBehaviour=s})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var i=e("../../lib/oop"),o=e("../../range").Range,r=e("./fold_mode").FoldMode,s=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};i.inherits(s,r),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var i=e.getLine(n);if(this.singleLineBlockCommentRe.test(i)&&!this.startRegionRe.test(i)&&!this.tripleStarBlockCommentRe.test(i))return"";var o=this._getFoldWidgetBase(e,t,n);return!o&&this.startRegionRe.test(i)?"start":o},this.getFoldWidgetRange=function(e,t,n,i){var o,r=e.getLine(n);if(this.startRegionRe.test(r))return this.getCommentRegionBlock(e,r,n);if(o=r.match(this.foldingStartMarker)){var s=o.index;if(o[1])return this.openingBracketBlock(e,o[1],n,s);var a=e.getCommentFoldRange(n,s+o[0].length,1);return a&&!a.isMultiLine()&&(i?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}if("markbegin"!==t&&(o=r.match(this.foldingStopMarker))){s=o.index+o[0].length;return o[1]?this.closingBracketBlock(e,o[1],n,s):e.getCommentFoldRange(n,s,-1)}},this.getSectionRange=function(e,t){for(var n=e.getLine(t),i=n.search(/\S/),r=t,s=n.length,a=t+=1,l=e.getLength();++t<l;){var c=(n=e.getLine(t)).search(/\S/);if(-1!==c){if(i>c)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=r)break;if(u.isMultiLine())t=u.end.row;else if(i==c)break}a=t}}return new o(r,s,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,t,n){for(var i=t.search(/\s*$/),r=e.getLength(),s=n,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;++n<r;){t=e.getLine(n);var c=a.exec(t);if(c&&(c[1]?l--:l++,!l))break}if(n>s)return new o(s,i,n,t.length)}}.call(s.prototype)})),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=e("./text").Mode,r=e("./css_highlight_rules").CssHighlightRules,s=e("./matching_brace_outdent").MatchingBraceOutdent,a=e("../worker/worker_client").WorkerClient,l=e("./css_completions").CssCompletions,c=e("./behaviour/css").CssBehaviour,u=e("./folding/cstyle").FoldMode,h=function(){this.HighlightRules=r,this.$outdent=new s,this.$behaviour=new c,this.$completer=new l,this.foldingRules=new u};i.inherits(h,o),function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,n){var i=this.$getIndent(t),o=this.getTokenizer().getLineTokens(t,e).tokens;return o.length&&"comment"==o[o.length-1].type||t.match(/^.*\{\s*$/)&&(i+=n),i},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.getCompletions=function(e,t,n,i){return this.$completer.getCompletions(e,t,n,i)},this.createWorker=function(e){var t=new a(["ace"],"ace/mode/css_worker","Worker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}.call(h.prototype),t.Mode=h})),ace.require(["ace/mode/css"],(function(i){"object"==n(e)&&"object"==n(t)&&e&&(e.exports=i)}))}).call(this,n(5)(e))},function(e,t,n){(function(e){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})(e)}ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=e("./text_highlight_rules").TextHighlightRules,r=function e(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},e.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};i.inherits(r,o),r.getTagRule=function(e){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},r.getStartRule=function(e){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:e}},r.getEndRule=function(e){return{token:"comment.doc",regex:"\\*\\/",next:e}},t.DocCommentHighlightRules=r})),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=e("./doc_comment_highlight_rules").DocCommentHighlightRules,r=e("./text_highlight_rules").TextHighlightRules,s="[a-zA-Z\\$_¡-][a-zA-Z\\d\\$_¡-]*",a=function(e){var t=this.createKeywordMapper({"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},"identifier"),n="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)";this.$rules={no_regex:[o.getStartRule("doc-start"),c("no_regex"),{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+s+")(\\.)(prototype)(\\.)("+s+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+s+")(\\.)("+s+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+s+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+s+")(\\.)("+s+")(\\s*)(=)(\\s*)(function)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function)(\\s+)("+s+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+s+")(\\s*)(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:"from(?=\\s*('|\"))"},{token:"keyword",regex:"(?:case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void)\\b",next:"start"},{token:["support.constant"],regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/},{token:t,regex:s},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+s+")(\\.)("+s+")(\\s*)(=)(\\s*)(function)(?:(\\s+)(\\w+))?(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:s},{regex:"",token:"empty",next:"no_regex"}],start:[o.getStartRule("doc-start"),c("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],function_arguments:[{token:"variable.parameter",regex:s},{token:"punctuation.operator",regex:"[, ]+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:n},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:n},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},e&&e.noES6||(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(e,t,n){if(this.next="{"==e?this.nextState:"","{"==e&&n.length)n.unshift("start",t);else if("}"==e&&n.length&&(n.shift(),this.next=n.shift(),-1!=this.next.indexOf("string")||-1!=this.next.indexOf("jsx")))return"paren.quasi.end";return"{"==e?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:n},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]}),e&&0==e.jsx||l.call(this)),this.embedRules(o,"doc-",[o.getEndRule("no_regex")]),this.normalizeRules()};function l(){var e=s.replace("\\d","\\d\\-"),t={onMatch:function(e,t,n){var i="/"==e.charAt(1)?2:1;return 1==i?(t!=this.nextState?n.unshift(this.next,this.nextState,0):n.unshift(this.next),n[2]++):2==i&&t==this.nextState&&(n[1]--,(!n[1]||n[1]<0)&&(n.shift(),n.shift())),[{type:"meta.tag.punctuation."+(1==i?"":"end-")+"tag-open.xml",value:e.slice(0,i)},{type:"meta.tag.tag-name.xml",value:e.substr(i)}]},regex:"</?"+e,next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(t);var n={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[n,t,{include:"reference"},{defaultToken:"string"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(e,t,n){return t==n[0]&&n.shift(),2==e.length&&(n[0]==this.nextState&&n[1]--,(!n[1]||n[1]<0)&&n.splice(0,2)),this.next=n[0]||"start",[{type:this.token,value:e}]},nextState:"jsx"},n,c("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:e},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},t],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function c(e){return[{token:"comment",regex:/\/\*/,next:[o.getTagRule(),{token:"comment",regex:"\\*\\/",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[o.getTagRule(),{token:"comment",regex:"$|^",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}i.inherits(a,r),t.JavaScriptHighlightRules=a})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=e("../range").Range,o=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t).match(/^(\s*\})/);if(!n)return 0;var o=n[1].length,r=e.findMatchingBracket({row:t,column:o});if(!r||r.row==t)return 0;var s=this.$getIndent(e.getLine(r.row));e.replace(new i(t,0,t,o-1),s)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(o.prototype),t.MatchingBraceOutdent=o})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var i=e("../../lib/oop"),o=e("../../range").Range,r=e("./fold_mode").FoldMode,s=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};i.inherits(s,r),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var i=e.getLine(n);if(this.singleLineBlockCommentRe.test(i)&&!this.startRegionRe.test(i)&&!this.tripleStarBlockCommentRe.test(i))return"";var o=this._getFoldWidgetBase(e,t,n);return!o&&this.startRegionRe.test(i)?"start":o},this.getFoldWidgetRange=function(e,t,n,i){var o,r=e.getLine(n);if(this.startRegionRe.test(r))return this.getCommentRegionBlock(e,r,n);if(o=r.match(this.foldingStartMarker)){var s=o.index;if(o[1])return this.openingBracketBlock(e,o[1],n,s);var a=e.getCommentFoldRange(n,s+o[0].length,1);return a&&!a.isMultiLine()&&(i?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}if("markbegin"!==t&&(o=r.match(this.foldingStopMarker))){s=o.index+o[0].length;return o[1]?this.closingBracketBlock(e,o[1],n,s):e.getCommentFoldRange(n,s,-1)}},this.getSectionRange=function(e,t){for(var n=e.getLine(t),i=n.search(/\S/),r=t,s=n.length,a=t+=1,l=e.getLength();++t<l;){var c=(n=e.getLine(t)).search(/\S/);if(-1!==c){if(i>c)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=r)break;if(u.isMultiLine())t=u.end.row;else if(i==c)break}a=t}}return new o(r,s,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,t,n){for(var i=t.search(/\s*$/),r=e.getLength(),s=n,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;++n<r;){t=e.getLine(n);var c=a.exec(t);if(c&&(c[1]?l--:l++,!l))break}if(n>s)return new o(s,i,n,t.length)}}.call(s.prototype)})),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var i=e("../lib/oop"),o=e("./text").Mode,r=e("./javascript_highlight_rules").JavaScriptHighlightRules,s=e("./matching_brace_outdent").MatchingBraceOutdent,a=e("../worker/worker_client").WorkerClient,l=e("./behaviour/cstyle").CstyleBehaviour,c=e("./folding/cstyle").FoldMode,u=function(){this.HighlightRules=r,this.$outdent=new s,this.$behaviour=new l,this.foldingRules=new c};i.inherits(u,o),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.getNextLineIndent=function(e,t,n){var i=this.$getIndent(t),o=this.getTokenizer().getLineTokens(t,e),r=o.tokens,s=o.state;if(r.length&&"comment"==r[r.length-1].type)return i;if("start"==e||"no_regex"==e)(a=t.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/))&&(i+=n);else if("doc-start"==e){if("start"==s||"no_regex"==s)return"";var a;(a=t.match(/^\s*(\/?)\*/))&&(a[1]&&(i+=" "),i+="* ")}return i},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){var t=new a(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}.call(u.prototype),t.Mode=u})),ace.require(["ace/mode/javascript"],(function(i){"object"==n(e)&&"object"==n(t)&&e&&(e.exports=i)}))}).call(this,n(5)(e))},function(e,t,n){(function(e){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})(e)}ace.define("ace/snippets/css",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText="snippet .\n\t${1} {\n\t\t${2}\n\t}\nsnippet !\n\t !important\nsnippet bdi:m+\n\t-moz-border-image: url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${7:stretch};\nsnippet bdi:m\n\t-moz-border-image: ${1};\nsnippet bdrz:m\n\t-moz-border-radius: ${1};\nsnippet bxsh:m+\n\t-moz-box-shadow: ${1:0} ${2:0} ${3:0} #${4:000};\nsnippet bxsh:m\n\t-moz-box-shadow: ${1};\nsnippet bdi:w+\n\t-webkit-border-image: url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${7:stretch};\nsnippet bdi:w\n\t-webkit-border-image: ${1};\nsnippet bdrz:w\n\t-webkit-border-radius: ${1};\nsnippet bxsh:w+\n\t-webkit-box-shadow: ${1:0} ${2:0} ${3:0} #${4:000};\nsnippet bxsh:w\n\t-webkit-box-shadow: ${1};\nsnippet @f\n\t@font-face {\n\t\tfont-family: ${1};\n\t\tsrc: url(${2});\n\t}\nsnippet @i\n\t@import url(${1});\nsnippet @m\n\t@media ${1:print} {\n\t\t${2}\n\t}\nsnippet bg+\n\tbackground: #${1:FFF} url(${2}) ${3:0} ${4:0} ${5:no-repeat};\nsnippet bga\n\tbackground-attachment: ${1};\nsnippet bga:f\n\tbackground-attachment: fixed;\nsnippet bga:s\n\tbackground-attachment: scroll;\nsnippet bgbk\n\tbackground-break: ${1};\nsnippet bgbk:bb\n\tbackground-break: bounding-box;\nsnippet bgbk:c\n\tbackground-break: continuous;\nsnippet bgbk:eb\n\tbackground-break: each-box;\nsnippet bgcp\n\tbackground-clip: ${1};\nsnippet bgcp:bb\n\tbackground-clip: border-box;\nsnippet bgcp:cb\n\tbackground-clip: content-box;\nsnippet bgcp:nc\n\tbackground-clip: no-clip;\nsnippet bgcp:pb\n\tbackground-clip: padding-box;\nsnippet bgc\n\tbackground-color: #${1:FFF};\nsnippet bgc:t\n\tbackground-color: transparent;\nsnippet bgi\n\tbackground-image: url(${1});\nsnippet bgi:n\n\tbackground-image: none;\nsnippet bgo\n\tbackground-origin: ${1};\nsnippet bgo:bb\n\tbackground-origin: border-box;\nsnippet bgo:cb\n\tbackground-origin: content-box;\nsnippet bgo:pb\n\tbackground-origin: padding-box;\nsnippet bgpx\n\tbackground-position-x: ${1};\nsnippet bgpy\n\tbackground-position-y: ${1};\nsnippet bgp\n\tbackground-position: ${1:0} ${2:0};\nsnippet bgr\n\tbackground-repeat: ${1};\nsnippet bgr:n\n\tbackground-repeat: no-repeat;\nsnippet bgr:x\n\tbackground-repeat: repeat-x;\nsnippet bgr:y\n\tbackground-repeat: repeat-y;\nsnippet bgr:r\n\tbackground-repeat: repeat;\nsnippet bgz\n\tbackground-size: ${1};\nsnippet bgz:a\n\tbackground-size: auto;\nsnippet bgz:ct\n\tbackground-size: contain;\nsnippet bgz:cv\n\tbackground-size: cover;\nsnippet bg\n\tbackground: ${1};\nsnippet bg:ie\n\tfilter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='${1}',sizingMethod='${2:crop}');\nsnippet bg:n\n\tbackground: none;\nsnippet bd+\n\tborder: ${1:1px} ${2:solid} #${3:000};\nsnippet bdb+\n\tborder-bottom: ${1:1px} ${2:solid} #${3:000};\nsnippet bdbc\n\tborder-bottom-color: #${1:000};\nsnippet bdbi\n\tborder-bottom-image: url(${1});\nsnippet bdbi:n\n\tborder-bottom-image: none;\nsnippet bdbli\n\tborder-bottom-left-image: url(${1});\nsnippet bdbli:c\n\tborder-bottom-left-image: continue;\nsnippet bdbli:n\n\tborder-bottom-left-image: none;\nsnippet bdblrz\n\tborder-bottom-left-radius: ${1};\nsnippet bdbri\n\tborder-bottom-right-image: url(${1});\nsnippet bdbri:c\n\tborder-bottom-right-image: continue;\nsnippet bdbri:n\n\tborder-bottom-right-image: none;\nsnippet bdbrrz\n\tborder-bottom-right-radius: ${1};\nsnippet bdbs\n\tborder-bottom-style: ${1};\nsnippet bdbs:n\n\tborder-bottom-style: none;\nsnippet bdbw\n\tborder-bottom-width: ${1};\nsnippet bdb\n\tborder-bottom: ${1};\nsnippet bdb:n\n\tborder-bottom: none;\nsnippet bdbk\n\tborder-break: ${1};\nsnippet bdbk:c\n\tborder-break: close;\nsnippet bdcl\n\tborder-collapse: ${1};\nsnippet bdcl:c\n\tborder-collapse: collapse;\nsnippet bdcl:s\n\tborder-collapse: separate;\nsnippet bdc\n\tborder-color: #${1:000};\nsnippet bdci\n\tborder-corner-image: url(${1});\nsnippet bdci:c\n\tborder-corner-image: continue;\nsnippet bdci:n\n\tborder-corner-image: none;\nsnippet bdf\n\tborder-fit: ${1};\nsnippet bdf:c\n\tborder-fit: clip;\nsnippet bdf:of\n\tborder-fit: overwrite;\nsnippet bdf:ow\n\tborder-fit: overwrite;\nsnippet bdf:r\n\tborder-fit: repeat;\nsnippet bdf:sc\n\tborder-fit: scale;\nsnippet bdf:sp\n\tborder-fit: space;\nsnippet bdf:st\n\tborder-fit: stretch;\nsnippet bdi\n\tborder-image: url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${7:stretch};\nsnippet bdi:n\n\tborder-image: none;\nsnippet bdl+\n\tborder-left: ${1:1px} ${2:solid} #${3:000};\nsnippet bdlc\n\tborder-left-color: #${1:000};\nsnippet bdli\n\tborder-left-image: url(${1});\nsnippet bdli:n\n\tborder-left-image: none;\nsnippet bdls\n\tborder-left-style: ${1};\nsnippet bdls:n\n\tborder-left-style: none;\nsnippet bdlw\n\tborder-left-width: ${1};\nsnippet bdl\n\tborder-left: ${1};\nsnippet bdl:n\n\tborder-left: none;\nsnippet bdlt\n\tborder-length: ${1};\nsnippet bdlt:a\n\tborder-length: auto;\nsnippet bdrz\n\tborder-radius: ${1};\nsnippet bdr+\n\tborder-right: ${1:1px} ${2:solid} #${3:000};\nsnippet bdrc\n\tborder-right-color: #${1:000};\nsnippet bdri\n\tborder-right-image: url(${1});\nsnippet bdri:n\n\tborder-right-image: none;\nsnippet bdrs\n\tborder-right-style: ${1};\nsnippet bdrs:n\n\tborder-right-style: none;\nsnippet bdrw\n\tborder-right-width: ${1};\nsnippet bdr\n\tborder-right: ${1};\nsnippet bdr:n\n\tborder-right: none;\nsnippet bdsp\n\tborder-spacing: ${1};\nsnippet bds\n\tborder-style: ${1};\nsnippet bds:ds\n\tborder-style: dashed;\nsnippet bds:dtds\n\tborder-style: dot-dash;\nsnippet bds:dtdtds\n\tborder-style: dot-dot-dash;\nsnippet bds:dt\n\tborder-style: dotted;\nsnippet bds:db\n\tborder-style: double;\nsnippet bds:g\n\tborder-style: groove;\nsnippet bds:h\n\tborder-style: hidden;\nsnippet bds:i\n\tborder-style: inset;\nsnippet bds:n\n\tborder-style: none;\nsnippet bds:o\n\tborder-style: outset;\nsnippet bds:r\n\tborder-style: ridge;\nsnippet bds:s\n\tborder-style: solid;\nsnippet bds:w\n\tborder-style: wave;\nsnippet bdt+\n\tborder-top: ${1:1px} ${2:solid} #${3:000};\nsnippet bdtc\n\tborder-top-color: #${1:000};\nsnippet bdti\n\tborder-top-image: url(${1});\nsnippet bdti:n\n\tborder-top-image: none;\nsnippet bdtli\n\tborder-top-left-image: url(${1});\nsnippet bdtli:c\n\tborder-corner-image: continue;\nsnippet bdtli:n\n\tborder-corner-image: none;\nsnippet bdtlrz\n\tborder-top-left-radius: ${1};\nsnippet bdtri\n\tborder-top-right-image: url(${1});\nsnippet bdtri:c\n\tborder-top-right-image: continue;\nsnippet bdtri:n\n\tborder-top-right-image: none;\nsnippet bdtrrz\n\tborder-top-right-radius: ${1};\nsnippet bdts\n\tborder-top-style: ${1};\nsnippet bdts:n\n\tborder-top-style: none;\nsnippet bdtw\n\tborder-top-width: ${1};\nsnippet bdt\n\tborder-top: ${1};\nsnippet bdt:n\n\tborder-top: none;\nsnippet bdw\n\tborder-width: ${1};\nsnippet bd\n\tborder: ${1};\nsnippet bd:n\n\tborder: none;\nsnippet b\n\tbottom: ${1};\nsnippet b:a\n\tbottom: auto;\nsnippet bxsh+\n\tbox-shadow: ${1:0} ${2:0} ${3:0} #${4:000};\nsnippet bxsh\n\tbox-shadow: ${1};\nsnippet bxsh:n\n\tbox-shadow: none;\nsnippet bxz\n\tbox-sizing: ${1};\nsnippet bxz:bb\n\tbox-sizing: border-box;\nsnippet bxz:cb\n\tbox-sizing: content-box;\nsnippet cps\n\tcaption-side: ${1};\nsnippet cps:b\n\tcaption-side: bottom;\nsnippet cps:t\n\tcaption-side: top;\nsnippet cl\n\tclear: ${1};\nsnippet cl:b\n\tclear: both;\nsnippet cl:l\n\tclear: left;\nsnippet cl:n\n\tclear: none;\nsnippet cl:r\n\tclear: right;\nsnippet cp\n\tclip: ${1};\nsnippet cp:a\n\tclip: auto;\nsnippet cp:r\n\tclip: rect(${1:0} ${2:0} ${3:0} ${4:0});\nsnippet c\n\tcolor: #${1:000};\nsnippet ct\n\tcontent: ${1};\nsnippet ct:a\n\tcontent: attr(${1});\nsnippet ct:cq\n\tcontent: close-quote;\nsnippet ct:c\n\tcontent: counter(${1});\nsnippet ct:cs\n\tcontent: counters(${1});\nsnippet ct:ncq\n\tcontent: no-close-quote;\nsnippet ct:noq\n\tcontent: no-open-quote;\nsnippet ct:n\n\tcontent: normal;\nsnippet ct:oq\n\tcontent: open-quote;\nsnippet coi\n\tcounter-increment: ${1};\nsnippet cor\n\tcounter-reset: ${1};\nsnippet cur\n\tcursor: ${1};\nsnippet cur:a\n\tcursor: auto;\nsnippet cur:c\n\tcursor: crosshair;\nsnippet cur:d\n\tcursor: default;\nsnippet cur:ha\n\tcursor: hand;\nsnippet cur:he\n\tcursor: help;\nsnippet cur:m\n\tcursor: move;\nsnippet cur:p\n\tcursor: pointer;\nsnippet cur:t\n\tcursor: text;\nsnippet d\n\tdisplay: ${1};\nsnippet d:mib\n\tdisplay: -moz-inline-box;\nsnippet d:mis\n\tdisplay: -moz-inline-stack;\nsnippet d:b\n\tdisplay: block;\nsnippet d:cp\n\tdisplay: compact;\nsnippet d:ib\n\tdisplay: inline-block;\nsnippet d:itb\n\tdisplay: inline-table;\nsnippet d:i\n\tdisplay: inline;\nsnippet d:li\n\tdisplay: list-item;\nsnippet d:n\n\tdisplay: none;\nsnippet d:ri\n\tdisplay: run-in;\nsnippet d:tbcp\n\tdisplay: table-caption;\nsnippet d:tbc\n\tdisplay: table-cell;\nsnippet d:tbclg\n\tdisplay: table-column-group;\nsnippet d:tbcl\n\tdisplay: table-column;\nsnippet d:tbfg\n\tdisplay: table-footer-group;\nsnippet d:tbhg\n\tdisplay: table-header-group;\nsnippet d:tbrg\n\tdisplay: table-row-group;\nsnippet d:tbr\n\tdisplay: table-row;\nsnippet d:tb\n\tdisplay: table;\nsnippet ec\n\tempty-cells: ${1};\nsnippet ec:h\n\tempty-cells: hide;\nsnippet ec:s\n\tempty-cells: show;\nsnippet exp\n\texpression()\nsnippet fl\n\tfloat: ${1};\nsnippet fl:l\n\tfloat: left;\nsnippet fl:n\n\tfloat: none;\nsnippet fl:r\n\tfloat: right;\nsnippet f+\n\tfont: ${1:1em} ${2:Arial},${3:sans-serif};\nsnippet fef\n\tfont-effect: ${1};\nsnippet fef:eb\n\tfont-effect: emboss;\nsnippet fef:eg\n\tfont-effect: engrave;\nsnippet fef:n\n\tfont-effect: none;\nsnippet fef:o\n\tfont-effect: outline;\nsnippet femp\n\tfont-emphasize-position: ${1};\nsnippet femp:a\n\tfont-emphasize-position: after;\nsnippet femp:b\n\tfont-emphasize-position: before;\nsnippet fems\n\tfont-emphasize-style: ${1};\nsnippet fems:ac\n\tfont-emphasize-style: accent;\nsnippet fems:c\n\tfont-emphasize-style: circle;\nsnippet fems:ds\n\tfont-emphasize-style: disc;\nsnippet fems:dt\n\tfont-emphasize-style: dot;\nsnippet fems:n\n\tfont-emphasize-style: none;\nsnippet fem\n\tfont-emphasize: ${1};\nsnippet ff\n\tfont-family: ${1};\nsnippet ff:c\n\tfont-family: ${1:'Monotype Corsiva','Comic Sans MS'},cursive;\nsnippet ff:f\n\tfont-family: ${1:Capitals,Impact},fantasy;\nsnippet ff:m\n\tfont-family: ${1:Monaco,'Courier New'},monospace;\nsnippet ff:ss\n\tfont-family: ${1:Helvetica,Arial},sans-serif;\nsnippet ff:s\n\tfont-family: ${1:Georgia,'Times New Roman'},serif;\nsnippet fza\n\tfont-size-adjust: ${1};\nsnippet fza:n\n\tfont-size-adjust: none;\nsnippet fz\n\tfont-size: ${1};\nsnippet fsm\n\tfont-smooth: ${1};\nsnippet fsm:aw\n\tfont-smooth: always;\nsnippet fsm:a\n\tfont-smooth: auto;\nsnippet fsm:n\n\tfont-smooth: never;\nsnippet fst\n\tfont-stretch: ${1};\nsnippet fst:c\n\tfont-stretch: condensed;\nsnippet fst:e\n\tfont-stretch: expanded;\nsnippet fst:ec\n\tfont-stretch: extra-condensed;\nsnippet fst:ee\n\tfont-stretch: extra-expanded;\nsnippet fst:n\n\tfont-stretch: normal;\nsnippet fst:sc\n\tfont-stretch: semi-condensed;\nsnippet fst:se\n\tfont-stretch: semi-expanded;\nsnippet fst:uc\n\tfont-stretch: ultra-condensed;\nsnippet fst:ue\n\tfont-stretch: ultra-expanded;\nsnippet fs\n\tfont-style: ${1};\nsnippet fs:i\n\tfont-style: italic;\nsnippet fs:n\n\tfont-style: normal;\nsnippet fs:o\n\tfont-style: oblique;\nsnippet fv\n\tfont-variant: ${1};\nsnippet fv:n\n\tfont-variant: normal;\nsnippet fv:sc\n\tfont-variant: small-caps;\nsnippet fw\n\tfont-weight: ${1};\nsnippet fw:b\n\tfont-weight: bold;\nsnippet fw:br\n\tfont-weight: bolder;\nsnippet fw:lr\n\tfont-weight: lighter;\nsnippet fw:n\n\tfont-weight: normal;\nsnippet f\n\tfont: ${1};\nsnippet h\n\theight: ${1};\nsnippet h:a\n\theight: auto;\nsnippet l\n\tleft: ${1};\nsnippet l:a\n\tleft: auto;\nsnippet lts\n\tletter-spacing: ${1};\nsnippet lh\n\tline-height: ${1};\nsnippet lisi\n\tlist-style-image: url(${1});\nsnippet lisi:n\n\tlist-style-image: none;\nsnippet lisp\n\tlist-style-position: ${1};\nsnippet lisp:i\n\tlist-style-position: inside;\nsnippet lisp:o\n\tlist-style-position: outside;\nsnippet list\n\tlist-style-type: ${1};\nsnippet list:c\n\tlist-style-type: circle;\nsnippet list:dclz\n\tlist-style-type: decimal-leading-zero;\nsnippet list:dc\n\tlist-style-type: decimal;\nsnippet list:d\n\tlist-style-type: disc;\nsnippet list:lr\n\tlist-style-type: lower-roman;\nsnippet list:n\n\tlist-style-type: none;\nsnippet list:s\n\tlist-style-type: square;\nsnippet list:ur\n\tlist-style-type: upper-roman;\nsnippet lis\n\tlist-style: ${1};\nsnippet lis:n\n\tlist-style: none;\nsnippet mb\n\tmargin-bottom: ${1};\nsnippet mb:a\n\tmargin-bottom: auto;\nsnippet ml\n\tmargin-left: ${1};\nsnippet ml:a\n\tmargin-left: auto;\nsnippet mr\n\tmargin-right: ${1};\nsnippet mr:a\n\tmargin-right: auto;\nsnippet mt\n\tmargin-top: ${1};\nsnippet mt:a\n\tmargin-top: auto;\nsnippet m\n\tmargin: ${1};\nsnippet m:4\n\tmargin: ${1:0} ${2:0} ${3:0} ${4:0};\nsnippet m:3\n\tmargin: ${1:0} ${2:0} ${3:0};\nsnippet m:2\n\tmargin: ${1:0} ${2:0};\nsnippet m:0\n\tmargin: 0;\nsnippet m:a\n\tmargin: auto;\nsnippet mah\n\tmax-height: ${1};\nsnippet mah:n\n\tmax-height: none;\nsnippet maw\n\tmax-width: ${1};\nsnippet maw:n\n\tmax-width: none;\nsnippet mih\n\tmin-height: ${1};\nsnippet miw\n\tmin-width: ${1};\nsnippet op\n\topacity: ${1};\nsnippet op:ie\n\tfilter: progid:DXImageTransform.Microsoft.Alpha(Opacity=${1:100});\nsnippet op:ms\n\t-ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=${1:100})';\nsnippet orp\n\torphans: ${1};\nsnippet o+\n\toutline: ${1:1px} ${2:solid} #${3:000};\nsnippet oc\n\toutline-color: ${1:#000};\nsnippet oc:i\n\toutline-color: invert;\nsnippet oo\n\toutline-offset: ${1};\nsnippet os\n\toutline-style: ${1};\nsnippet ow\n\toutline-width: ${1};\nsnippet o\n\toutline: ${1};\nsnippet o:n\n\toutline: none;\nsnippet ovs\n\toverflow-style: ${1};\nsnippet ovs:a\n\toverflow-style: auto;\nsnippet ovs:mq\n\toverflow-style: marquee;\nsnippet ovs:mv\n\toverflow-style: move;\nsnippet ovs:p\n\toverflow-style: panner;\nsnippet ovs:s\n\toverflow-style: scrollbar;\nsnippet ovx\n\toverflow-x: ${1};\nsnippet ovx:a\n\toverflow-x: auto;\nsnippet ovx:h\n\toverflow-x: hidden;\nsnippet ovx:s\n\toverflow-x: scroll;\nsnippet ovx:v\n\toverflow-x: visible;\nsnippet ovy\n\toverflow-y: ${1};\nsnippet ovy:a\n\toverflow-y: auto;\nsnippet ovy:h\n\toverflow-y: hidden;\nsnippet ovy:s\n\toverflow-y: scroll;\nsnippet ovy:v\n\toverflow-y: visible;\nsnippet ov\n\toverflow: ${1};\nsnippet ov:a\n\toverflow: auto;\nsnippet ov:h\n\toverflow: hidden;\nsnippet ov:s\n\toverflow: scroll;\nsnippet ov:v\n\toverflow: visible;\nsnippet pb\n\tpadding-bottom: ${1};\nsnippet pl\n\tpadding-left: ${1};\nsnippet pr\n\tpadding-right: ${1};\nsnippet pt\n\tpadding-top: ${1};\nsnippet p\n\tpadding: ${1};\nsnippet p:4\n\tpadding: ${1:0} ${2:0} ${3:0} ${4:0};\nsnippet p:3\n\tpadding: ${1:0} ${2:0} ${3:0};\nsnippet p:2\n\tpadding: ${1:0} ${2:0};\nsnippet p:0\n\tpadding: 0;\nsnippet pgba\n\tpage-break-after: ${1};\nsnippet pgba:aw\n\tpage-break-after: always;\nsnippet pgba:a\n\tpage-break-after: auto;\nsnippet pgba:l\n\tpage-break-after: left;\nsnippet pgba:r\n\tpage-break-after: right;\nsnippet pgbb\n\tpage-break-before: ${1};\nsnippet pgbb:aw\n\tpage-break-before: always;\nsnippet pgbb:a\n\tpage-break-before: auto;\nsnippet pgbb:l\n\tpage-break-before: left;\nsnippet pgbb:r\n\tpage-break-before: right;\nsnippet pgbi\n\tpage-break-inside: ${1};\nsnippet pgbi:a\n\tpage-break-inside: auto;\nsnippet pgbi:av\n\tpage-break-inside: avoid;\nsnippet pos\n\tposition: ${1};\nsnippet pos:a\n\tposition: absolute;\nsnippet pos:f\n\tposition: fixed;\nsnippet pos:r\n\tposition: relative;\nsnippet pos:s\n\tposition: static;\nsnippet q\n\tquotes: ${1};\nsnippet q:en\n\tquotes: '\\201C' '\\201D' '\\2018' '\\2019';\nsnippet q:n\n\tquotes: none;\nsnippet q:ru\n\tquotes: '\\00AB' '\\00BB' '\\201E' '\\201C';\nsnippet rz\n\tresize: ${1};\nsnippet rz:b\n\tresize: both;\nsnippet rz:h\n\tresize: horizontal;\nsnippet rz:n\n\tresize: none;\nsnippet rz:v\n\tresize: vertical;\nsnippet r\n\tright: ${1};\nsnippet r:a\n\tright: auto;\nsnippet tbl\n\ttable-layout: ${1};\nsnippet tbl:a\n\ttable-layout: auto;\nsnippet tbl:f\n\ttable-layout: fixed;\nsnippet tal\n\ttext-align-last: ${1};\nsnippet tal:a\n\ttext-align-last: auto;\nsnippet tal:c\n\ttext-align-last: center;\nsnippet tal:l\n\ttext-align-last: left;\nsnippet tal:r\n\ttext-align-last: right;\nsnippet ta\n\ttext-align: ${1};\nsnippet ta:c\n\ttext-align: center;\nsnippet ta:l\n\ttext-align: left;\nsnippet ta:r\n\ttext-align: right;\nsnippet td\n\ttext-decoration: ${1};\nsnippet td:l\n\ttext-decoration: line-through;\nsnippet td:n\n\ttext-decoration: none;\nsnippet td:o\n\ttext-decoration: overline;\nsnippet td:u\n\ttext-decoration: underline;\nsnippet te\n\ttext-emphasis: ${1};\nsnippet te:ac\n\ttext-emphasis: accent;\nsnippet te:a\n\ttext-emphasis: after;\nsnippet te:b\n\ttext-emphasis: before;\nsnippet te:c\n\ttext-emphasis: circle;\nsnippet te:ds\n\ttext-emphasis: disc;\nsnippet te:dt\n\ttext-emphasis: dot;\nsnippet te:n\n\ttext-emphasis: none;\nsnippet th\n\ttext-height: ${1};\nsnippet th:a\n\ttext-height: auto;\nsnippet th:f\n\ttext-height: font-size;\nsnippet th:m\n\ttext-height: max-size;\nsnippet th:t\n\ttext-height: text-size;\nsnippet ti\n\ttext-indent: ${1};\nsnippet ti:-\n\ttext-indent: -9999px;\nsnippet tj\n\ttext-justify: ${1};\nsnippet tj:a\n\ttext-justify: auto;\nsnippet tj:d\n\ttext-justify: distribute;\nsnippet tj:ic\n\ttext-justify: inter-cluster;\nsnippet tj:ii\n\ttext-justify: inter-ideograph;\nsnippet tj:iw\n\ttext-justify: inter-word;\nsnippet tj:k\n\ttext-justify: kashida;\nsnippet tj:t\n\ttext-justify: tibetan;\nsnippet to+\n\ttext-outline: ${1:0} ${2:0} #${3:000};\nsnippet to\n\ttext-outline: ${1};\nsnippet to:n\n\ttext-outline: none;\nsnippet tr\n\ttext-replace: ${1};\nsnippet tr:n\n\ttext-replace: none;\nsnippet tsh+\n\ttext-shadow: ${1:0} ${2:0} ${3:0} #${4:000};\nsnippet tsh\n\ttext-shadow: ${1};\nsnippet tsh:n\n\ttext-shadow: none;\nsnippet tt\n\ttext-transform: ${1};\nsnippet tt:c\n\ttext-transform: capitalize;\nsnippet tt:l\n\ttext-transform: lowercase;\nsnippet tt:n\n\ttext-transform: none;\nsnippet tt:u\n\ttext-transform: uppercase;\nsnippet tw\n\ttext-wrap: ${1};\nsnippet tw:no\n\ttext-wrap: none;\nsnippet tw:n\n\ttext-wrap: normal;\nsnippet tw:s\n\ttext-wrap: suppress;\nsnippet tw:u\n\ttext-wrap: unrestricted;\nsnippet t\n\ttop: ${1};\nsnippet t:a\n\ttop: auto;\nsnippet va\n\tvertical-align: ${1};\nsnippet va:bl\n\tvertical-align: baseline;\nsnippet va:b\n\tvertical-align: bottom;\nsnippet va:m\n\tvertical-align: middle;\nsnippet va:sub\n\tvertical-align: sub;\nsnippet va:sup\n\tvertical-align: super;\nsnippet va:tb\n\tvertical-align: text-bottom;\nsnippet va:tt\n\tvertical-align: text-top;\nsnippet va:t\n\tvertical-align: top;\nsnippet v\n\tvisibility: ${1};\nsnippet v:c\n\tvisibility: collapse;\nsnippet v:h\n\tvisibility: hidden;\nsnippet v:v\n\tvisibility: visible;\nsnippet whsc\n\twhite-space-collapse: ${1};\nsnippet whsc:ba\n\twhite-space-collapse: break-all;\nsnippet whsc:bs\n\twhite-space-collapse: break-strict;\nsnippet whsc:k\n\twhite-space-collapse: keep-all;\nsnippet whsc:l\n\twhite-space-collapse: loose;\nsnippet whsc:n\n\twhite-space-collapse: normal;\nsnippet whs\n\twhite-space: ${1};\nsnippet whs:n\n\twhite-space: normal;\nsnippet whs:nw\n\twhite-space: nowrap;\nsnippet whs:pl\n\twhite-space: pre-line;\nsnippet whs:pw\n\twhite-space: pre-wrap;\nsnippet whs:p\n\twhite-space: pre;\nsnippet wid\n\twidows: ${1};\nsnippet w\n\twidth: ${1};\nsnippet w:a\n\twidth: auto;\nsnippet wob\n\tword-break: ${1};\nsnippet wob:ba\n\tword-break: break-all;\nsnippet wob:bs\n\tword-break: break-strict;\nsnippet wob:k\n\tword-break: keep-all;\nsnippet wob:l\n\tword-break: loose;\nsnippet wob:n\n\tword-break: normal;\nsnippet wos\n\tword-spacing: ${1};\nsnippet wow\n\tword-wrap: ${1};\nsnippet wow:no\n\tword-wrap: none;\nsnippet wow:n\n\tword-wrap: normal;\nsnippet wow:s\n\tword-wrap: suppress;\nsnippet wow:u\n\tword-wrap: unrestricted;\nsnippet z\n\tz-index: ${1};\nsnippet z:a\n\tz-index: auto;\nsnippet zoo\n\tzoom: 1;\n",t.scope="css"})),ace.require(["ace/snippets/css"],(function(i){"object"==n(e)&&"object"==n(t)&&e&&(e.exports=i)}))}).call(this,n(5)(e))},function(e,t,n){(function(e){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})(e)}ace.define("ace/snippets/javascript",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText='# Prototype\nsnippet proto\n\t${1:class_name}.prototype.${2:method_name} = function(${3:first_argument}) {\n\t\t${4:// body...}\n\t};\n# Function\nsnippet fun\n\tfunction ${1?:function_name}(${2:argument}) {\n\t\t${3:// body...}\n\t}\n# Anonymous Function\nregex /((=)\\s*|(:)\\s*|(\\()|\\b)/f/(\\))?/\nsnippet f\n\tfunction${M1?: ${1:functionName}}($2) {\n\t\t${0:$TM_SELECTED_TEXT}\n\t}${M2?;}${M3?,}${M4?)}\n# Immediate function\ntrigger \\(?f\\(\nendTrigger \\)?\nsnippet f(\n\t(function(${1}) {\n\t\t${0:${TM_SELECTED_TEXT:/* code */}}\n\t}(${1}));\n# if\nsnippet if\n\tif (${1:true}) {\n\t\t${0}\n\t}\n# if ... else\nsnippet ife\n\tif (${1:true}) {\n\t\t${2}\n\t} else {\n\t\t${0}\n\t}\n# tertiary conditional\nsnippet ter\n\t${1:/* condition */} ? ${2:a} : ${3:b}\n# switch\nsnippet switch\n\tswitch (${1:expression}) {\n\t\tcase \'${3:case}\':\n\t\t\t${4:// code}\n\t\t\tbreak;\n\t\t${5}\n\t\tdefault:\n\t\t\t${2:// code}\n\t}\n# case\nsnippet case\n\tcase \'${1:case}\':\n\t\t${2:// code}\n\t\tbreak;\n\t${3}\n\n# while (...) {...}\nsnippet wh\n\twhile (${1:/* condition */}) {\n\t\t${0:/* code */}\n\t}\n# try\nsnippet try\n\ttry {\n\t\t${0:/* code */}\n\t} catch (e) {}\n# do...while\nsnippet do\n\tdo {\n\t\t${2:/* code */}\n\t} while (${1:/* condition */});\n# Object Method\nsnippet :f\nregex /([,{[])|^\\s*/:f/\n\t${1:method_name}: function(${2:attribute}) {\n\t\t${0}\n\t}${3:,}\n# setTimeout function\nsnippet setTimeout\nregex /\\b/st|timeout|setTimeo?u?t?/\n\tsetTimeout(function() {${3:$TM_SELECTED_TEXT}}, ${1:10});\n# Get Elements\nsnippet gett\n\tgetElementsBy${1:TagName}(\'${2}\')${3}\n# Get Element\nsnippet get\n\tgetElementBy${1:Id}(\'${2}\')${3}\n# console.log (Firebug)\nsnippet cl\n\tconsole.log(${1});\n# return\nsnippet ret\n\treturn ${1:result}\n# for (property in object ) { ... }\nsnippet fori\n\tfor (var ${1:prop} in ${2:Things}) {\n\t\t${0:$2[$1]}\n\t}\n# hasOwnProperty\nsnippet has\n\thasOwnProperty(${1})\n# docstring\nsnippet /**\n\t/**\n\t * ${1:description}\n\t *\n\t */\nsnippet @par\nregex /^\\s*\\*\\s*/@(para?m?)?/\n\t@param {${1:type}} ${2:name} ${3:description}\nsnippet @ret\n\t@return {${1:type}} ${2:description}\n# JSON.parse\nsnippet jsonp\n\tJSON.parse(${1:jstr});\n# JSON.stringify\nsnippet jsons\n\tJSON.stringify(${1:object});\n# self-defining function\nsnippet sdf\n\tvar ${1:function_name} = function(${2:argument}) {\n\t\t${3:// initial code ...}\n\n\t\t$1 = function($2) {\n\t\t\t${4:// main code}\n\t\t};\n\t}\n# singleton\nsnippet sing\n\tfunction ${1:Singleton} (${2:argument}) {\n\t\t// the cached instance\n\t\tvar instance;\n\n\t\t// rewrite the constructor\n\t\t$1 = function $1($2) {\n\t\t\treturn instance;\n\t\t};\n\t\t\n\t\t// carry over the prototype properties\n\t\t$1.prototype = this;\n\n\t\t// the instance\n\t\tinstance = new $1();\n\n\t\t// reset the constructor pointer\n\t\tinstance.constructor = $1;\n\n\t\t${3:// code ...}\n\n\t\treturn instance;\n\t}\n# class\nsnippet class\nregex /^\\s*/clas{0,2}/\n\tvar ${1:class} = function(${20}) {\n\t\t$40$0\n\t};\n\t\n\t(function() {\n\t\t${60:this.prop = ""}\n\t}).call(${1:class}.prototype);\n\t\n\texports.${1:class} = ${1:class};\n# \nsnippet for-\n\tfor (var ${1:i} = ${2:Things}.length; ${1:i}--; ) {\n\t\t${0:${2:Things}[${1:i}];}\n\t}\n# for (...) {...}\nsnippet for\n\tfor (var ${1:i} = 0; $1 < ${2:Things}.length; $1++) {\n\t\t${3:$2[$1]}$0\n\t}\n# for (...) {...} (Improved Native For-Loop)\nsnippet forr\n\tfor (var ${1:i} = ${2:Things}.length - 1; $1 >= 0; $1--) {\n\t\t${3:$2[$1]}$0\n\t}\n\n\n#modules\nsnippet def\n\tdefine(function(require, exports, module) {\n\t"use strict";\n\tvar ${1/.*\\///} = require("${1}");\n\t\n\t$TM_SELECTED_TEXT\n\t});\nsnippet req\nguard ^\\s*\n\tvar ${1/.*\\///} = require("${1}");\n\t$0\nsnippet requ\nguard ^\\s*\n\tvar ${1/.*\\/(.)/\\u$1/} = require("${1}").${1/.*\\/(.)/\\u$1/};\n\t$0\n',t.scope="javascript"})),ace.require(["ace/snippets/javascript"],(function(i){"object"==n(e)&&"object"==n(t)&&e&&(e.exports=i)}))}).call(this,n(5)(e))},function(e,t,n){(function(e){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})(e)}ace.require(["ace/snippets/text"],(function(i){"object"==n(e)&&"object"==n(t)&&e&&(e.exports=i)}))}).call(this,n(5)(e))},function(e,t,n){(function(e){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})(e)}ace.define("ace/snippets",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/lib/dom","ace/editor"],(function(e,t,i){"use strict";var o=e("./lib/oop"),r=e("./lib/event_emitter").EventEmitter,s=e("./lib/lang"),a=e("./range").Range,l=e("./range_list").RangeList,c=e("./keyboard/hash_handler").HashHandler,u=e("./tokenizer").Tokenizer,h=e("./clipboard"),d={CURRENT_WORD:function(e){return e.session.getTextRange(e.session.getWordRange())},SELECTION:function(e,t,n){var i=e.session.getTextRange();return n?i.replace(/\n\r?([ \t]*\S)/g,"\n"+n+"$1"):i},CURRENT_LINE:function(e){return e.session.getLine(e.getCursorPosition().row)},PREV_LINE:function(e){return e.session.getLine(e.getCursorPosition().row-1)},LINE_INDEX:function(e){return e.getCursorPosition().row},LINE_NUMBER:function(e){return e.getCursorPosition().row+1},SOFT_TABS:function(e){return e.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(e){return e.session.getTabSize()},CLIPBOARD:function(e){return h.getText&&h.getText()},FILENAME:function(e){return/[^/\\]*$/.exec(this.FILEPATH(e))[0]},FILENAME_BASE:function(e){return/[^/\\]*$/.exec(this.FILEPATH(e))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(e){return this.FILEPATH(e).replace(/[^/\\]*$/,"")},FILEPATH:function(e){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(e){var t=e.session.$mode||{};return t.blockComment&&t.blockComment.start||""},BLOCK_COMMENT_END:function(e){var t=e.session.$mode||{};return t.blockComment&&t.blockComment.end||""},LINE_COMMENT:function(e){return(e.session.$mode||{}).lineCommentStart||""},CURRENT_YEAR:p.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:p.bind(null,{year:"2-digit"}),CURRENT_MONTH:p.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:p.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:p.bind(null,{month:"short"}),CURRENT_DATE:p.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:p.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:p.bind(null,{weekday:"short"}),CURRENT_HOUR:p.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:p.bind(null,{minute:"2-digit"}),CURRENT_SECOND:p.bind(null,{second:"2-digit"})};function p(e){var t=(new Date).toLocaleString("en-us",e);return 1==t.length?"0"+t:t}d.SELECTED_TEXT=d.SELECTION;var f=function(){this.snippetMap={},this.snippetNameMap={}};(function(){o.implement(this,r),this.getTokenizer=function(){return f.$tokenizer||this.createTokenizer()},this.createTokenizer=function(){function e(e){return e=e.substr(1),/^\d+$/.test(e)?[{tabstopId:parseInt(e,10)}]:[{text:e}]}function t(e){return"(?:[^\\\\"+e+"]|\\\\.)"}var n={regex:"/("+t("/")+"+)/",onMatch:function(e,t,n){var i=n[0];return i.fmtString=!0,i.guard=e.slice(1,-1),i.flag="",""},next:"formatString"};return f.$tokenizer=new u({start:[{regex:/\\./,onMatch:function(e,t,n){var i=e[1];return("}"==i&&n.length||-1!="`$\\".indexOf(i))&&(e=i),[e]}},{regex:/}/,onMatch:function(e,t,n){return[n.length?n.shift():e]}},{regex:/\$(?:\d+|\w+)/,onMatch:e},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(t,n,i){var o=e(t.substr(1));return i.unshift(o[0]),o},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+t("\\|")+"*\\|",onMatch:function(e,t,n){var i=e.slice(1,-1).replace(/\\[,|\\]|,/g,(function(e){return 2==e.length?e[1]:"\0"})).split("\0").map((function(e){return{value:e}}));return n[0].choices=i,[i[0]]},next:"start"},n,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(e,t,n){return n.length&&n[0].expectElse?(n[0].expectElse=!1,n[0].ifEnd={elseEnd:n[0]},[n[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(e,t,n){var i=e[1];return"}"==i&&n.length||-1!="`$\\".indexOf(i)?e=i:"n"==i?e="\n":"t"==i?e="\t":-1!="ulULE".indexOf(i)&&(e={changeCase:i,local:i>"a"}),[e]}},{regex:"/\\w*}",onMatch:function(e,t,n){var i=n.shift();return i&&(i.flag=e.slice(1,-1)),this.next=i&&i.tabstopId?"start":"",[i||e]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(e,t,n){return[{text:e.slice(1)}]}},{regex:/\${\w+/,onMatch:function(e,t,n){var i={text:e.slice(2)};return n.unshift(i),[i]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(e,t,n){var i=n.shift();return this.next=i&&i.tabstopId?"start":"",[i||e]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(e,t,n){return n[0].formatFunction=e.slice(2,-1),[n.shift()]},next:"formatString"},n,{regex:/:[\?\-+]?/,onMatch:function(e,t,n){"+"==e[1]&&(n[0].ifEnd=n[0]),"?"==e[1]&&(n[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]})},this.tokenizeTmSnippet=function(e,t){return this.getTokenizer().getLineTokens(e,t).tokens.map((function(e){return e.value||e}))},this.getVariableValue=function(e,t,n){if(/^\d+$/.test(t))return(this.variables.__||{})[t]||"";if(/^[A-Z]\d+$/.test(t))return(this.variables[t[0]+"__"]||{})[t.substr(1)]||"";if(t=t.replace(/^TM_/,""),!this.variables.hasOwnProperty(t))return"";var i=this.variables[t];return"function"==typeof i&&(i=this.variables[t](e,t,n)),null==i?"":i},this.variables=d,this.tmStrFormat=function(e,t,i){if(!t.fmt)return e;var o=t.flag||"",r=t.guard;r=new RegExp(r,o.replace(/[^gim]/g,""));var s="string"==typeof t.fmt?this.tokenizeTmSnippet(t.fmt,"formatString"):t.fmt,a=this;return e.replace(r,(function(){var e=a.variables.__;a.variables.__=[].slice.call(arguments);for(var t=a.resolveVariables(s,i),o="E",r=0;r<t.length;r++){var l=t[r];if("object"==n(l))if(t[r]="",l.changeCase&&l.local){var c=t[r+1];c&&"string"==typeof c&&("u"==l.changeCase?t[r]=c[0].toUpperCase():t[r]=c[0].toLowerCase(),t[r+1]=c.substr(1))}else l.changeCase&&(o=l.changeCase);else"U"==o?t[r]=l.toUpperCase():"L"==o&&(t[r]=l.toLowerCase())}return a.variables.__=e,t.join("")}))},this.tmFormatFunction=function(e,t,n){return"upcase"==t.formatFunction?e.toUpperCase():"downcase"==t.formatFunction?e.toLowerCase():e},this.resolveVariables=function(e,t){for(var n=[],i="",o=!0,r=0;r<e.length;r++){var s=e[r];if("string"!=typeof s){if(s){if(o=!1,s.fmtString){var a=e.indexOf(s,r+1);-1==a&&(a=e.length),s.fmt=e.slice(r+1,a),r=a}if(s.text){var l=this.getVariableValue(t,s.text,i)+"";s.fmtString&&(l=this.tmStrFormat(l,s,t)),s.formatFunction&&(l=this.tmFormatFunction(l,s,t)),l&&!s.ifEnd?(n.push(l),c(s)):!l&&s.ifEnd&&c(s.ifEnd)}else s.elseEnd?c(s.elseEnd):(null!=s.tabstopId||null!=s.changeCase)&&n.push(s)}}else n.push(s),"\n"==s?(o=!0,i=""):o&&(i=/^\t*/.exec(s)[0],o=/\S/.test(s))}function c(t){var n=e.indexOf(t,r+1);-1!=n&&(r=n)}return n},this.insertSnippetForSelection=function(e,t){var i=e.getCursorPosition(),o=e.session.getLine(i.row),r=e.session.getTabString(),s=o.match(/^\s*/)[0];i.column<s.length&&(s=s.slice(0,i.column)),t=t.replace(/\r/g,"");var a=this.tokenizeTmSnippet(t);a=(a=this.resolveVariables(a,e)).map((function(e){return"\n"==e?e+s:"string"==typeof e?e.replace(/\t/g,r):e}));var l=[];a.forEach((function(e,t){if("object"==n(e)){var i=e.tabstopId,o=l[i];if(o||((o=l[i]=[]).index=i,o.value="",o.parents={}),-1===o.indexOf(e)){e.choices&&!o.choices&&(o.choices=e.choices),o.push(e);var r=a.indexOf(e,t+1);if(-1!==r){var s=a.slice(t+1,r);s.some((function(e){return"object"===n(e)}))&&!o.value?o.value=s:!s.length||o.value&&"string"==typeof o.value||(o.value=s.join(""))}}}})),l.forEach((function(e){e.length=0}));var c={};function u(e){for(var t=[],i=0;i<e.length;i++){var o=e[i];if("object"==n(o)){if(c[o.tabstopId])continue;o=t[e.lastIndexOf(o,i-1)]||{tabstopId:o.tabstopId}}t[i]=o}return t}for(var h=0;h<a.length;h++){var d=a[h];if("object"==n(d)){var p=d.tabstopId,f=l[p],m=a.indexOf(d,h+1);if(c[p])c[p]===d&&(delete c[p],Object.keys(c).forEach((function(e){f.parents[e]=!0})));else{c[p]=d;var v=f.value;"string"!=typeof v?v=u(v):d.fmt&&(v=this.tmStrFormat(v,d,e)),a.splice.apply(a,[h+1,Math.max(0,m-h)].concat(v,d)),-1===f.indexOf(d)&&f.push(d)}}}var b=0,y=0,w="";a.forEach((function(e){if("string"==typeof e){var t=e.split("\n");t.length>1?(y=t[t.length-1].length,b+=t.length-1):y+=e.length,w+=e}else e&&(e.start?e.end={row:b,column:y}:e.start={row:b,column:y})}));var x=e.getSelectionRange(),S=e.session.replace(x,w),C=new g(e),k=e.inVirtualSelectionMode&&e.selection.index;C.addTabstops(l,x.start,S,k)},this.insertSnippet=function(e,t){var n=this;if(e.inVirtualSelectionMode)return n.insertSnippetForSelection(e,t);e.forEachSelection((function(){n.insertSnippetForSelection(e,t)}),null,{keepOrder:!0}),e.tabstopManager&&e.tabstopManager.tabNext()},this.$getScope=function(e){var t=e.session.$mode.$id||"";if("html"===(t=t.split("/").pop())||"php"===t){"php"!==t||e.session.$mode.inlinePhp||(t="html");var i=e.getCursorPosition(),o=e.session.getState(i.row);"object"===n(o)&&(o=o[0]),o.substring&&("js-"==o.substring(0,3)?t="javascript":"css-"==o.substring(0,4)?t="css":"php-"==o.substring(0,4)&&(t="php"))}return t},this.getActiveScopes=function(e){var t=this.$getScope(e),n=[t],i=this.snippetMap;return i[t]&&i[t].includeScopes&&n.push.apply(n,i[t].includeScopes),n.push("_"),n},this.expandWithTab=function(e,t){var n=this,i=e.forEachSelection((function(){return n.expandSnippetForSelection(e,t)}),null,{keepOrder:!0});return i&&e.tabstopManager&&e.tabstopManager.tabNext(),i},this.expandSnippetForSelection=function(e,t){var n,i=e.getCursorPosition(),o=e.session.getLine(i.row),r=o.substring(0,i.column),s=o.substr(i.column),a=this.snippetMap;return this.getActiveScopes(e).some((function(e){var t=a[e];return t&&(n=this.findMatchingSnippet(t,r,s)),!!n}),this),!!n&&(t&&t.dryRun||(e.session.doc.removeInLine(i.row,i.column-n.replaceBefore.length,i.column+n.replaceAfter.length),this.variables.M__=n.matchBefore,this.variables.T__=n.matchAfter,this.insertSnippetForSelection(e,n.content),this.variables.M__=this.variables.T__=null),!0)},this.findMatchingSnippet=function(e,t,n){for(var i=e.length;i--;){var o=e[i];if((!o.startRe||o.startRe.test(t))&&((!o.endRe||o.endRe.test(n))&&(o.startRe||o.endRe)))return o.matchBefore=o.startRe?o.startRe.exec(t):[""],o.matchAfter=o.endRe?o.endRe.exec(n):[""],o.replaceBefore=o.triggerRe?o.triggerRe.exec(t)[0]:"",o.replaceAfter=o.endTriggerRe?o.endTriggerRe.exec(n)[0]:"",o}},this.snippetMap={},this.snippetNameMap={},this.register=function(e,t){var n=this.snippetMap,i=this.snippetNameMap,o=this;function r(e){return e&&!/^\^?\(.*\)\$?$|^\\b$/.test(e)&&(e="(?:"+e+")"),e||""}function a(e,t,n){return e=r(e),t=r(t),n?(e=t+e)&&"$"!=e[e.length-1]&&(e+="$"):(e+=t)&&"^"!=e[0]&&(e="^"+e),new RegExp(e)}function l(e){e.scope||(e.scope=t||"_"),t=e.scope,n[t]||(n[t]=[],i[t]={});var r=i[t];if(e.name){var l=r[e.name];l&&o.unregister(l),r[e.name]=e}n[t].push(e),e.prefix&&(e.tabTrigger=e.prefix),!e.content&&e.body&&(e.content=Array.isArray(e.body)?e.body.join("\n"):e.body),e.tabTrigger&&!e.trigger&&(!e.guard&&/^\w/.test(e.tabTrigger)&&(e.guard="\\b"),e.trigger=s.escapeRegExp(e.tabTrigger)),(e.trigger||e.guard||e.endTrigger||e.endGuard)&&(e.startRe=a(e.trigger,e.guard,!0),e.triggerRe=new RegExp(e.trigger),e.endRe=a(e.endTrigger,e.endGuard,!0),e.endTriggerRe=new RegExp(e.endTrigger))}e||(e=[]),Array.isArray(e)?e.forEach(l):Object.keys(e).forEach((function(t){l(e[t])})),this._signal("registerSnippets",{scope:t})},this.unregister=function(e,t){var n=this.snippetMap,i=this.snippetNameMap;function o(e){var o=i[e.scope||t];if(o&&o[e.name]){delete o[e.name];var r=n[e.scope||t],s=r&&r.indexOf(e);s>=0&&r.splice(s,1)}}e.content?o(e):Array.isArray(e)&&e.forEach(o)},this.parseSnippetFile=function(e){e=e.replace(/\r/g,"");for(var t,n=[],i={},o=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm;t=o.exec(e);){if(t[1])try{i=JSON.parse(t[1]),n.push(i)}catch(e){}if(t[4])i.content=t[4].replace(/^\t/gm,""),n.push(i),i={};else{var r=t[2],s=t[3];if("regex"==r){var a=/\/((?:[^\/\\]|\\.)*)|$/g;i.guard=a.exec(s)[1],i.trigger=a.exec(s)[1],i.endTrigger=a.exec(s)[1],i.endGuard=a.exec(s)[1]}else"snippet"==r?(i.tabTrigger=s.match(/^\S*/)[0],i.name||(i.name=s)):r&&(i[r]=s)}}return n},this.getSnippetByName=function(e,t){var n,i=this.snippetNameMap;return this.getActiveScopes(t).some((function(t){var o=i[t];return o&&(n=o[e]),!!n}),this),n}}).call(f.prototype);var g=function(e){if(e.tabstopManager)return e.tabstopManager;e.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=s.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(e)};(function(){this.attach=function(e){this.index=0,this.ranges=[],this.tabstops=[],this.$openTabstops=null,this.selectedTabstop=null,this.editor=e,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},this.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges=null,this.tabstops=null,this.selectedTabstop=null,this.editor.removeListener("change",this.$onChange),this.editor.removeListener("changeSelection",this.$onChangeSelection),this.editor.removeListener("changeSession",this.$onChangeSession),this.editor.commands.removeListener("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.editor=null},this.onChange=function(e){for(var t="r"==e.action[0],n=this.selectedTabstop||{},i=n.parents||{},o=(this.tabstops||[]).slice(),r=0;r<o.length;r++){var s=o[r],a=s==n||i[s.index];if(s.rangeList.$bias=a?0:1,"remove"==e.action&&s!==n){var l=s.parents&&s.parents[n.index],c=s.rangeList.pointIndex(e.start,l);c=c<0?-c-1:c+1;var u=s.rangeList.pointIndex(e.end,l);u=u<0?-u-1:u-1;for(var h=s.rangeList.ranges.slice(c,u),d=0;d<h.length;d++)this.removeRange(h[d])}s.rangeList.$onChange(e)}var p=this.editor.session;this.$inChange||!t||1!=p.getLength()||p.getValue()||this.detach()},this.updateLinkedFields=function(){var e=this.selectedTabstop;if(e&&e.hasLinkedRanges&&e.firstNonLinked){this.$inChange=!0;for(var n=this.editor.session,i=n.getTextRange(e.firstNonLinked),o=0;o<e.length;o++){var r=e[o];if(r.linked){var s=r.original,a=t.snippetManager.tmStrFormat(i,s,this.editor);n.replace(r,a)}}this.$inChange=!1}},this.onAfterExec=function(e){e.command&&!e.command.readOnly&&this.updateLinkedFields()},this.onChangeSelection=function(){if(this.editor){for(var e=this.editor.selection.lead,t=this.editor.selection.anchor,n=this.editor.selection.isEmpty(),i=0;i<this.ranges.length;i++)if(!this.ranges[i].linked){var o=this.ranges[i].contains(e.row,e.column),r=n||this.ranges[i].contains(t.row,t.column);if(o&&r)return}this.detach()}},this.onChangeSession=function(){this.detach()},this.tabNext=function(e){var t=this.tabstops.length,n=this.index+(e||1);(n=Math.min(Math.max(n,1),t))==t&&(n=0),this.selectTabstop(n),0===n&&this.detach()},this.selectTabstop=function(e){this.$openTabstops=null;var t=this.tabstops[this.index];if(t&&this.addTabstopMarkers(t),this.index=e,(t=this.tabstops[this.index])&&t.length){this.selectedTabstop=t;var n=t.firstNonLinked||t;if(t.choices&&(n.cursor=n.start),this.editor.inVirtualSelectionMode)this.editor.selection.fromOrientedRange(n);else{var i=this.editor.multiSelect;i.toSingleRange(n);for(var o=0;o<t.length;o++)t.hasLinkedRanges&&t[o].linked||i.addRange(t[o].clone(),!0)}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand("startAutocomplete",{matches:this.selectedTabstop.choices})}},this.addTabstops=function(e,t,n){var i=this.useLink||!this.editor.getOption("enableMultiselect");if(this.$openTabstops||(this.$openTabstops=[]),!e[0]){var o=a.fromPoints(n,n);v(o.start,t),v(o.end,t),e[0]=[o],e[0].index=0}var r=[this.index+1,0],s=this.ranges;e.forEach((function(e,n){for(var o=this.$openTabstops[n]||e,c=0;c<e.length;c++){var u=e[c],h=a.fromPoints(u.start,u.end||u.start);m(h.start,t),m(h.end,t),h.original=u,h.tabstop=o,s.push(h),o!=e?o.unshift(h):o[c]=h,u.fmtString||o.firstNonLinked&&i?(h.linked=!0,o.hasLinkedRanges=!0):o.firstNonLinked||(o.firstNonLinked=h)}o.firstNonLinked||(o.hasLinkedRanges=!1),o===e&&(r.push(o),this.$openTabstops[n]=o),this.addTabstopMarkers(o),o.rangeList=o.rangeList||new l,o.rangeList.$bias=0,o.rangeList.addList(o)}),this),r.length>2&&(this.tabstops.length&&r.push(r.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,r))},this.addTabstopMarkers=function(e){var t=this.editor.session;e.forEach((function(e){e.markerId||(e.markerId=t.addMarker(e,"ace_snippet-marker","text"))}))},this.removeTabstopMarkers=function(e){var t=this.editor.session;e.forEach((function(e){t.removeMarker(e.markerId),e.markerId=null}))},this.removeRange=function(e){var t=e.tabstop.indexOf(e);-1!=t&&e.tabstop.splice(t,1),-1!=(t=this.ranges.indexOf(e))&&this.ranges.splice(t,1),-1!=(t=e.tabstop.rangeList.ranges.indexOf(e))&&e.tabstop.splice(t,1),this.editor.session.removeMarker(e.markerId),e.tabstop.length||(-1!=(t=this.tabstops.indexOf(e.tabstop))&&this.tabstops.splice(t,1),this.tabstops.length||this.detach())},this.keyboardHandler=new c,this.keyboardHandler.bindKeys({Tab:function(e){t.snippetManager&&t.snippetManager.expandWithTab(e)||(e.tabstopManager.tabNext(1),e.renderer.scrollCursorIntoView())},"Shift-Tab":function(e){e.tabstopManager.tabNext(-1),e.renderer.scrollCursorIntoView()},Esc:function(e){e.tabstopManager.detach()}})}).call(g.prototype);var m=function(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row},v=function(e,t){e.row==t.row&&(e.column-=t.column),e.row-=t.row};e("./lib/dom").importCssString(".ace_snippet-marker { -moz-box-sizing: border-box; box-sizing: border-box; background: rgba(194, 193, 208, 0.09); border: 1px dotted rgba(211, 208, 235, 0.62); position: absolute;}"),t.snippetManager=new f;var b=e("./editor").Editor;(function(){this.insertSnippet=function(e,n){return t.snippetManager.insertSnippet(this,e,n)},this.expandSnippet=function(e){return t.snippetManager.expandWithTab(this,e)}}).call(b.prototype)})),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom"],(function(e,t,n){"use strict";var i=e("../virtual_renderer").VirtualRenderer,o=e("../editor").Editor,r=e("../range").Range,s=e("../lib/event"),a=e("../lib/lang"),l=e("../lib/dom"),c=function(e){var t=new i(e);t.$maxLines=4;var n=new o(t);return n.setHighlightActiveLine(!1),n.setShowPrintMargin(!1),n.renderer.setShowGutter(!1),n.renderer.setHighlightGutterLine(!1),n.$mouseHandler.$focusTimeout=0,n.$highlightTagPending=!0,n};l.importCssString(".ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { background-color: #CAD6FA; z-index: 1;}.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { background-color: #3a674e;}.ace_editor.ace_autocomplete .ace_line-hover { border: 1px solid #abbffe; margin-top: -1px; background: rgba(233,233,253,0.4); position: absolute; z-index: 2;}.ace_dark.ace_editor.ace_autocomplete .ace_line-hover { border: 1px solid rgba(109, 150, 13, 0.8); background: rgba(58, 103, 78, 0.62);}.ace_completion-meta { opacity: 0.5; margin: 0.9em;}.ace_completion-message { color: blue;}.ace_editor.ace_autocomplete .ace_completion-highlight{ color: #2d69c7;}.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{ color: #93ca12;}.ace_editor.ace_autocomplete { width: 300px; z-index: 200000; border: 1px lightgray solid; position: fixed; box-shadow: 2px 3px 5px rgba(0,0,0,.2); line-height: 1.4; background: #fefefe; color: #111;}.ace_dark.ace_editor.ace_autocomplete { border: 1px #484747 solid; box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51); line-height: 1.4; background: #25282c; color: #c1c1c1;}","autocompletion.css"),t.AcePopup=function(e){var t=l.createElement("div"),n=new c(t);e&&e.appendChild(t),t.style.display="none",n.renderer.content.style.cursor="default",n.renderer.setStyle("ace_autocomplete"),n.setOption("displayIndentGuides",!1),n.setOption("dragDelay",150);var i,o=function(){};n.focus=o,n.$isFocused=!0,n.renderer.$cursorLayer.restartTimer=o,n.renderer.$cursorLayer.element.style.opacity=0,n.renderer.$maxLines=8,n.renderer.$keepTextAreaAtCursor=!1,n.setHighlightActiveLine(!1),n.session.highlight(""),n.session.$searchHighlight.clazz="ace_highlight-marker",n.on("mousedown",(function(e){var t=e.getDocumentPosition();n.selection.moveToPosition(t),h.start.row=h.end.row=t.row,e.stop()}));var u=new r(-1,0,-1,1/0),h=new r(-1,0,-1,1/0);h.id=n.session.addMarker(h,"ace_active-line","fullLine"),n.setSelectOnHover=function(e){e?u.id&&(n.session.removeMarker(u.id),u.id=null):u.id=n.session.addMarker(u,"ace_line-hover","fullLine")},n.setSelectOnHover(!1),n.on("mousemove",(function(e){if(i){if(i.x!=e.x||i.y!=e.y){(i=e).scrollTop=n.renderer.scrollTop;var t=i.getDocumentPosition().row;u.start.row!=t&&(u.id||n.setRow(t),p(t))}}else i=e})),n.renderer.on("beforeRender",(function(){if(i&&-1!=u.start.row){i.$pos=null;var e=i.getDocumentPosition().row;u.id||n.setRow(e),p(e,!0)}})),n.renderer.on("afterRender",(function(){var e=n.getRow(),t=n.renderer.$textLayer,i=t.element.childNodes[e-t.config.firstRow];i!==t.selectedNode&&t.selectedNode&&l.removeCssClass(t.selectedNode,"ace_selected"),t.selectedNode=i,i&&l.addCssClass(i,"ace_selected")}));var d=function(){p(-1)},p=function(e,t){e!==u.start.row&&(u.start.row=u.end.row=e,t||n.session._emit("changeBackMarker"),n._emit("changeHoverMarker"))};n.getHoveredRow=function(){return u.start.row},s.addListener(n.container,"mouseout",d),n.on("hide",d),n.on("changeSelection",d),n.session.doc.getLength=function(){return n.data.length},n.session.doc.getLine=function(e){var t=n.data[e];return"string"==typeof t?t:t&&t.value||""};var f=n.session.bgTokenizer;return f.$tokenizeRow=function(e){var t=n.data[e],i=[];if(!t)return i;"string"==typeof t&&(t={value:t});var o=t.caption||t.value||t.name;function r(e,n){e&&i.push({type:(t.className||"")+(n||""),value:e})}for(var s=o.toLowerCase(),a=(n.filterText||"").toLowerCase(),l=0,c=0,u=0;u<=a.length;u++)if(u!=c&&(t.matchMask&1<<u||u==a.length)){var h=a.slice(c,u);c=u;var d=s.indexOf(h,l);if(-1==d)continue;r(o.slice(l,d),""),l=d+h.length,r(o.slice(d,l),"completion-highlight")}return r(o.slice(l,o.length),""),t.meta&&i.push({type:"completion-meta",value:t.meta}),t.message&&i.push({type:"completion-message",value:t.message}),i},f.$updateOnChange=o,f.start=o,n.session.$computeWidth=function(){return this.screenWidth=0},n.isOpen=!1,n.isTopdown=!1,n.autoSelect=!0,n.filterText="",n.data=[],n.setData=function(e,t){n.filterText=t||"",n.setValue(a.stringRepeat("\n",e.length),-1),n.data=e||[],n.setRow(0)},n.getData=function(e){return n.data[e]},n.getRow=function(){return h.start.row},n.setRow=function(e){e=Math.max(this.autoSelect?0:-1,Math.min(this.data.length,e)),h.start.row!=e&&(n.selection.clearSelection(),h.start.row=h.end.row=e||0,n.session._emit("changeBackMarker"),n.moveCursorTo(e||0,0),n.isOpen&&n._signal("select"))},n.on("changeSelection",(function(){n.isOpen&&n.setRow(n.selection.lead.row),n.renderer.scrollCursorIntoView()})),n.hide=function(){this.container.style.display="none",this._signal("hide"),n.isOpen=!1},n.show=function(e,t,o){var r=this.container,s=window.innerHeight,a=window.innerWidth,l=this.renderer,c=l.$maxLines*t*1.4,u=e.top+this.$borderSize;u>s/2&&!o&&u+t+c>s?(l.$maxPixelHeight=u-2*this.$borderSize,r.style.top="",r.style.bottom=s-u+"px",n.isTopdown=!1):(u+=t,l.$maxPixelHeight=s-u-.2*t,r.style.top=u+"px",r.style.bottom="",n.isTopdown=!0),r.style.display="";var h=e.left;h+r.offsetWidth>a&&(h=a-r.offsetWidth),r.style.left=h+"px",this._signal("show"),i=null,n.isOpen=!0},n.goTo=function(e){var t=this.getRow(),n=this.session.getLength()-1;switch(e){case"up":t=t<=0?n:t-1;break;case"down":t=t>=n?-1:t+1;break;case"start":t=0;break;case"end":t=n}this.setRow(t)},n.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},n.$imageSize=0,n.$borderSize=1,n},t.$singleLineEditor=c})),ace.define("ace/autocomplete/util",["require","exports","module"],(function(e,t,n){"use strict";t.parForEach=function(e,t,n){var i=0,o=e.length;0===o&&n();for(var r=0;r<o;r++)t(e[r],(function(e,t){++i===o&&n(e,t)}))};var i=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;t.retrievePrecedingIdentifier=function(e,t,n){n=n||i;for(var o=[],r=t-1;r>=0&&n.test(e[r]);r--)o.push(e[r]);return o.reverse().join("")},t.retrieveFollowingIdentifier=function(e,t,n){n=n||i;for(var o=[],r=t;r<e.length&&n.test(e[r]);r++)o.push(e[r]);return o},t.getCompletionPrefix=function(e){var t,n=e.getCursorPosition(),i=e.session.getLine(n.row);return e.completers.forEach(function(e){e.identifierRegexps&&e.identifierRegexps.forEach(function(e){!t&&e&&(t=this.retrievePrecedingIdentifier(i,n.column,e))}.bind(this))}.bind(this)),t||this.retrievePrecedingIdentifier(i,n.column)}})),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/lang","ace/lib/dom","ace/snippets","ace/config"],(function(e,t,n){"use strict";var i=e("./keyboard/hash_handler").HashHandler,o=e("./autocomplete/popup").AcePopup,r=e("./autocomplete/util"),s=e("./lib/lang"),a=e("./lib/dom"),l=e("./snippets").snippetManager,c=e("./config"),u=function(){this.autoInsert=!1,this.autoSelect=!0,this.exactMatch=!1,this.gatherCompletionsId=0,this.keyboardHandler=new i,this.keyboardHandler.bindKeys(this.commands),this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.changeTimer=s.delayedCall(function(){this.updateCompletions(!0)}.bind(this)),this.tooltipTimer=s.delayedCall(this.updateDocTooltip.bind(this),50)};(function(){this.$init=function(){return this.popup=new o(document.body||document.documentElement),this.popup.on("click",function(e){this.insertMatch(),e.stop()}.bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.tooltipTimer.bind(null,null)),this.popup.on("select",this.tooltipTimer.bind(null,null)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup},this.getPopup=function(){return this.popup||this.$init()},this.openPopup=function(e,t,n){this.popup||this.$init(),this.popup.autoSelect=this.autoSelect,this.popup.setData(this.completions.filtered,this.completions.filterText),e.keyBinding.addKeyboardHandler(this.keyboardHandler);var i=e.renderer;if(this.popup.setRow(this.autoSelect?0:-1),n)n&&!t&&this.detach();else{this.popup.setTheme(e.getTheme()),this.popup.setFontSize(e.getFontSize());var o=i.layerConfig.lineHeight,r=i.$cursorLayer.getPixelPosition(this.base,!0);r.left-=this.popup.getTextLeftOffset();var s=e.container.getBoundingClientRect();r.top+=s.top-i.layerConfig.offset,r.left+=s.left-e.renderer.scrollLeft,r.left+=i.gutterWidth,this.popup.show(r,o)}this.changeTimer.cancel()},this.detach=function(){this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener),this.changeTimer.cancel(),this.hideDocTooltip(),this.gatherCompletionsId+=1,this.popup&&this.popup.isOpen&&this.popup.hide(),this.base&&this.base.detach(),this.activated=!1,this.completions=this.base=null},this.changeListener=function(e){var t=this.editor.selection.lead;(t.row!=this.base.row||t.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},this.blurListener=function(e){var t=document.activeElement,n=this.editor.textInput.getElement(),i=e.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(e.relatedTarget),o=this.popup&&this.popup.container;t==n||t.parentNode==o||i||t==this.tooltipNode||e.relatedTarget==n||this.detach()},this.mousedownListener=function(e){this.detach()},this.mousewheelListener=function(e){this.detach()},this.goTo=function(e){this.popup.goTo(e)},this.insertMatch=function(e,t){if(e||(e=this.popup.getData(this.popup.getRow())),!e)return!1;var n=this.completions;if(this.editor.startOperation({command:{name:"insertMatch"}}),e.completer&&e.completer.insertMatch)e.completer.insertMatch(this.editor,e);else{if(n.filterText)for(var i,o=this.editor.selection.getAllRanges(),r=0;i=o[r];r++)i.start.column-=n.filterText.length,this.editor.session.remove(i);e.snippet?l.insertSnippet(this.editor,e.snippet):this.editor.execCommand("insertstring",e.value||e)}this.completions==n&&this.detach(),this.editor.endOperation()},this.commands={Up:function(e){e.completer.goTo("up")},Down:function(e){e.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(e){e.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(e){e.completer.goTo("end")},Esc:function(e){e.completer.detach()},Return:function(e){return e.completer.insertMatch()},"Shift-Return":function(e){e.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(e){var t=e.completer.insertMatch();if(t||e.tabstopManager)return t;e.completer.goTo("down")},PageUp:function(e){e.completer.popup.gotoPageUp()},PageDown:function(e){e.completer.popup.gotoPageDown()}},this.gatherCompletions=function(e,t){var n=e.getSession(),i=e.getCursorPosition(),o=r.getCompletionPrefix(e);this.base=n.doc.createAnchor(i.row,i.column-o.length),this.base.$insertRight=!0;var s=[],a=e.completers.length;return e.completers.forEach((function(l,c){l.getCompletions(e,n,i,o,(function(n,i){!n&&i&&(s=s.concat(i)),t(null,{prefix:r.getCompletionPrefix(e),matches:s,finished:0==--a})}))})),!0},this.showPopup=function(e,t){this.editor&&this.detach(),this.activated=!0,this.editor=e,e.completer!=this&&(e.completer&&e.completer.detach(),e.completer=this),e.on("changeSelection",this.changeListener),e.on("blur",this.blurListener),e.on("mousedown",this.mousedownListener),e.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,t)},this.updateCompletions=function(e,t){if(e&&this.base&&this.completions){var n=this.editor.getCursorPosition(),i=this.editor.session.getTextRange({start:this.base,end:n});if(i==this.completions.filterText)return;return this.completions.setFilter(i),this.completions.filtered.length?1!=this.completions.filtered.length||this.completions.filtered[0].value!=i||this.completions.filtered[0].snippet?void this.openPopup(this.editor,i,e):this.detach():this.detach()}if(t&&t.matches){n=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(n.row,n.column),this.base.$insertRight=!0,this.completions=new h(t.matches),this.openPopup(this.editor,"",e)}var o=this.gatherCompletionsId;this.gatherCompletions(this.editor,function(t,n){var i=function(){if(n.finished)return this.detach()}.bind(this),r=n.prefix,s=n&&n.matches;if(!s||!s.length)return i();if(0===r.indexOf(n.prefix)&&o==this.gatherCompletionsId){this.completions=new h(s),this.exactMatch&&(this.completions.exactMatch=!0),this.completions.setFilter(r);var a=this.completions.filtered;return a.length&&(1!=a.length||a[0].value!=r||a[0].snippet)?this.autoInsert&&1==a.length&&n.finished?this.insertMatch(a[0]):void this.openPopup(this.editor,r,e):i()}}.bind(this))},this.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},this.updateDocTooltip=function(){var e=this.popup,t=e.data,n=t&&(t[e.getHoveredRow()]||t[e.getRow()]),i=null;return n&&this.editor&&this.popup.isOpen?(this.editor.completers.some((function(e){return e.getDocTooltip&&(i=e.getDocTooltip(n)),i})),i||"string"==typeof n||(i=n),"string"==typeof i&&(i={docText:i}),i&&(i.docHTML||i.docText)?void this.showDocTooltip(i):this.hideDocTooltip()):this.hideDocTooltip()},this.showDocTooltip=function(e){this.tooltipNode||(this.tooltipNode=a.createElement("div"),this.tooltipNode.className="ace_tooltip ace_doc-tooltip",this.tooltipNode.style.margin=0,this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this));var t=this.tooltipNode;e.docHTML?t.innerHTML=e.docHTML:e.docText&&(t.textContent=e.docText),t.parentNode||document.body.appendChild(t);var n=this.popup,i=n.container.getBoundingClientRect();t.style.top=n.container.style.top,t.style.bottom=n.container.style.bottom,t.style.display="block",window.innerWidth-i.right<320?i.left<320?n.isTopdown?(t.style.top=i.bottom+"px",t.style.left=i.left+"px",t.style.right="",t.style.bottom=""):(t.style.top=n.container.offsetTop-t.offsetHeight+"px",t.style.left=i.left+"px",t.style.right="",t.style.bottom=""):(t.style.right=window.innerWidth-i.left+"px",t.style.left=""):(t.style.left=i.right+1+"px",t.style.right="")},this.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),this.tooltipNode){var e=this.tooltipNode;this.editor.isFocused()||document.activeElement!=e||this.editor.focus(),this.tooltipNode=null,e.parentNode&&e.parentNode.removeChild(e)}},this.onTooltipClick=function(e){for(var t=e.target;t&&t!=this.tooltipNode;){if("A"==t.nodeName&&t.href){t.rel="noreferrer",t.target="_blank";break}t=t.parentNode}},this.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var e=this.popup.container;e&&e.parentNode&&e.parentNode.removeChild(e)}this.editor&&this.editor.completer==this&&this.editor.completer,this.popup=null}}).call(u.prototype),u.for=function(e){return e.completer||(c.get("sharedPopups")?(u.$shared||(u.$sharedInstance=new u),e.completer=u.$sharedInstance):(e.completer=new u,e.once("destroy",(function(e,t){t.completer.destroy()})))),e.completer},u.startCommand={name:"startAutocomplete",exec:function(e,t){var n=u.for(e);n.autoInsert=!1,n.autoSelect=!0,n.showPopup(e,t),n.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var h=function(e,t){this.all=e,this.filtered=e,this.filterText=t||"",this.exactMatch=!1};(function(){this.setFilter=function(e){if(e.length>this.filterText&&0===e.lastIndexOf(this.filterText,0))var t=this.filtered;else t=this.all;this.filterText=e,t=(t=this.filterCompletions(t,this.filterText)).sort((function(e,t){return t.exactMatch-e.exactMatch||t.$score-e.$score||(e.caption||e.value).localeCompare(t.caption||t.value)}));var n=null;t=t.filter((function(e){var t=e.snippet||e.caption||e.value;return t!==n&&(n=t,!0)})),this.filtered=t},this.filterCompletions=function(e,t){var n=[],i=t.toUpperCase(),o=t.toLowerCase();e:for(var r,s=0;r=e[s];s++){var a=r.caption||r.value||r.snippet;if(a){var l,c,u=-1,h=0,d=0;if(this.exactMatch){if(t!==a.substr(0,t.length))continue e}else{var p=a.toLowerCase().indexOf(o);if(p>-1)d=p;else for(var f=0;f<t.length;f++){var g=a.indexOf(o[f],u+1),m=a.indexOf(i[f],u+1);if((l=g>=0&&(m<0||g<m)?g:m)<0)continue e;(c=l-u-1)>0&&(-1===u&&(d+=10),d+=c,h|=1<<f),u=l}}r.matchMask=h,r.exactMatch=d?0:1,r.$score=(r.score||0)-d,n.push(r)}}return n}}).call(h.prototype),t.Autocomplete=u,t.FilteredList=h})),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],(function(e,t,n){var i=e("../range").Range,o=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;function r(e,t){var n=function(e,t){return e.getTextRange(i.fromPoints({row:0,column:0},t)).split(o).length-1}(e,t),r=e.getValue().split(o),s=Object.create(null),a=r[n];return r.forEach((function(e,t){if(e&&e!==a){var i=Math.abs(n-t),o=r.length-i;s[e]?s[e]=Math.max(o,s[e]):s[e]=o}})),s}t.getCompletions=function(e,t,n,i,o){var s=r(t,n);o(null,Object.keys(s).map((function(e){return{caption:e,value:e,score:s[e],meta:"local"}})))}})),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],(function(e,t,n){"use strict";var i=e("../snippets").snippetManager,o=e("../autocomplete").Autocomplete,r=e("../config"),s=e("../lib/lang"),a=e("../autocomplete/util"),l=e("../autocomplete/text_completer"),c={getCompletions:function(e,t,n,i,o){if(t.$mode.completer)return t.$mode.completer.getCompletions(e,t,n,i,o);var r=e.session.getState(n.row);o(null,t.$mode.getCompletions(r,t,n,i))}},u={getCompletions:function(e,t,n,o,r){var s=[],a=t.getTokenAt(n.row,n.column);a&&a.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?s.push("html-tag"):s=i.getActiveScopes(e);var l=i.snippetMap,c=[];s.forEach((function(e){for(var t=l[e]||[],n=t.length;n--;){var i=t[n],o=i.name||i.tabTrigger;o&&c.push({caption:o,snippet:i.content,meta:i.tabTrigger&&!i.name?i.tabTrigger+"⇥ ":"snippet",type:"snippet"})}}),this),r(null,c)},getDocTooltip:function(e){"snippet"!=e.type||e.docHTML||(e.docHTML=["<b>",s.escapeHTML(e.caption),"</b>","<hr></hr>",s.escapeHTML(e.snippet)].join(""))}},h=[u,l,c];t.setCompleters=function(e){h.length=0,e&&h.push.apply(h,e)},t.addCompleter=function(e){h.push(e)},t.textCompleter=l,t.keyWordCompleter=c,t.snippetCompleter=u;var d={name:"expandSnippet",exec:function(e){return i.expandWithTab(e)},bindKey:"Tab"},p=function(e,t){f(t.session.$mode)},f=function e(t){"string"==typeof t&&(t=r.$modes[t]),t&&(i.files||(i.files={}),g(t.$id,t.snippetFileId),t.modes&&t.modes.forEach(e))},g=function(e,t){t&&e&&!i.files[e]&&(i.files[e]={},r.loadModule(t,(function(t){t&&(i.files[e]=t,!t.snippets&&t.snippetText&&(t.snippets=i.parseSnippetFile(t.snippetText)),i.register(t.snippets||[],t.scope),t.includeScopes&&(i.snippetMap[t.scope].includeScopes=t.includeScopes,t.includeScopes.forEach((function(e){f("ace/mode/"+e)}))))})))},m=function(e){var t=e.editor,n=t.completer&&t.completer.activated;if("backspace"===e.command.name)n&&!a.getCompletionPrefix(t)&&t.completer.detach();else if("insertstring"===e.command.name){if(a.getCompletionPrefix(t)&&!n){var i=o.for(t);i.autoInsert=!1,i.showPopup(t)}}},v=e("../editor").Editor;e("../config").defineOptions(v.prototype,"editor",{enableBasicAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:h),this.commands.addCommand(o.startCommand)):this.commands.removeCommand(o.startCommand)},value:!1},enableLiveAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:h),this.commands.on("afterExec",m)):this.commands.removeListener("afterExec",m)},value:!1},enableSnippets:{set:function(e){e?(this.commands.addCommand(d),this.on("changeMode",p),p(0,this)):(this.commands.removeCommand(d),this.off("changeMode",p))},value:!1}})})),ace.require(["ace/ext/language_tools"],(function(i){"object"==n(e)&&"object"==n(t)&&e&&(e.exports=i)}))}).call(this,n(5)(e))},function(e,t,n){var i,o,r;window,o=[n(98),n(32)],void 0===(r="function"==typeof(i=function(e,t){"use strict";var n=e.create("masonry");n.compatOptions.fitWidth="isFitWidth";var i=n.prototype;return i._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var e=0;e<this.cols;e++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},i.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var e=this.items[0],n=e&&e.element;this.columnWidth=n&&t(n).outerWidth||this.containerWidth}var i=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,r=o/i,s=i-o%i;r=Math[s&&s<1?"round":"floor"](r),this.cols=Math.max(r,1)},i.getContainerWidth=function(){var e=this._getOption("fitWidth")?this.element.parentNode:this.element,n=t(e);this.containerWidth=n&&n.innerWidth},i._getItemLayoutPosition=function(e){e.getSize();var t=e.size.outerWidth%this.columnWidth,n=Math[t&&t<1?"round":"ceil"](e.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var i=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](n,e),o={x:this.columnWidth*i.col,y:i.y},r=i.y+e.size.outerHeight,s=n+i.col,a=i.col;a<s;a++)this.colYs[a]=r;return o},i._getTopColPosition=function(e){var t=this._getTopColGroup(e),n=Math.min.apply(Math,t);return{col:t.indexOf(n),y:n}},i._getTopColGroup=function(e){if(e<2)return this.colYs;for(var t=[],n=this.cols+1-e,i=0;i<n;i++)t[i]=this._getColGroupY(i,e);return t},i._getColGroupY=function(e,t){if(t<2)return this.colYs[e];var n=this.colYs.slice(e,e+t);return Math.max.apply(Math,n)},i._getHorizontalColPosition=function(e,t){var n=this.horizontalColIndex%this.cols;n=e>1&&n+e>this.cols?0:n;var i=t.size.outerWidth&&t.size.outerHeight;return this.horizontalColIndex=i?n+e:this.horizontalColIndex,{col:n,y:this._getColGroupY(n,e)}},i._manageStamp=function(e){var n=t(e),i=this._getElementOffset(e),o=this._getOption("originLeft")?i.left:i.right,r=o+n.outerWidth,s=Math.floor(o/this.columnWidth);s=Math.max(0,s);var a=Math.floor(r/this.columnWidth);a-=r%this.columnWidth?0:1,a=Math.min(this.cols-1,a);for(var l=(this._getOption("originTop")?i.top:i.bottom)+n.outerHeight,c=s;c<=a;c++)this.colYs[c]=Math.max(l,this.colYs[c])},i._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var e={height:this.maxY};return this._getOption("fitWidth")&&(e.width=this._getContainerFitWidth()),e},i._getContainerFitWidth=function(){for(var e=0,t=this.cols;--t&&0===this.colYs[t];)e++;return(this.cols-e)*this.columnWidth-this.gutter},i.needsResizeLayout=function(){var e=this.containerWidth;return this.getContainerWidth(),e!=this.containerWidth},n})?i.apply(t,o):i)||(e.exports=r)},function(e,t,n){var i,o;
27
  /*!
28
  * Outlayer v2.1.1
29
  * the brains and guts of a layout library
39
  object-assign
40
  (c) Sindre Sorhus
41
  @license MIT