Version Description
Download this release
Release Info
Developer | nko |
Plugin | Visual Portfolio, Photo Gallery & Post Grid |
Version | 1.12.1 |
Comparing to | |
See all releases |
Code changes from version 1.12.0 to 1.12.1
- assets/admin/css/gutenberg-block.min.css +1 -1
- assets/admin/css/layouts-editor.min.css +5 -0
- assets/admin/css/style.min.css +2 -2
- assets/admin/js/gutenberg-block.min.js +2 -2
- assets/admin/js/layouts-editor.js +907 -0
- assets/admin/js/layouts-editor.min.js +6 -0
- assets/admin/js/mce-dropdown.js +48 -0
- assets/admin/js/mce-dropdown.min.js +2 -2
- assets/admin/js/mce-localize.js +0 -0
- assets/admin/js/mce-localize.min.js +1 -1
- assets/admin/js/script.js +80 -0
- assets/admin/js/script.min.js +3 -3
- assets/admin/js/vc-frontend.js +32 -0
- assets/admin/js/vc-frontend.min.js +2 -2
- assets/css/noscript.min.css +1 -1
- assets/css/style.min.css +2 -2
- assets/js/lazysizes-object-fit-cover.js +53 -0
- assets/js/lazysizes-object-fit-cover.min.js +1 -1
- assets/js/script-preview.js +17 -0
- assets/js/script-preview.min.js +2 -2
- assets/js/script.js +1980 -0
- assets/js/script.min.js +3 -3
- class-visual-portfolio.php +28 -11
- classes/class-admin.php +12 -8
- languages/visual-portfolio.pot +176 -176
- readme.md +7 -1
- templates/items-list/filter/dropdown/style.css +0 -1
- templates/items-list/filter/dropdown/style.min.css +1 -0
- templates/items-list/filter/dropdown/style.scss +0 -38
- templates/items-list/filter/style.css +0 -1
- templates/items-list/filter/style.min.css +1 -0
- templates/items-list/filter/style.scss +0 -63
- templates/items-list/items-style/emerge/style.css +0 -1
- templates/items-list/items-style/emerge/style.min.css +1 -0
- templates/items-list/items-style/emerge/style.scss +0 -138
- templates/items-list/items-style/fade/style.css +0 -1
- templates/items-list/items-style/fade/style.min.css +1 -0
- templates/items-list/items-style/fade/style.scss +0 -161
- templates/items-list/items-style/fly/style.css +0 -1
- templates/items-list/items-style/fly/style.min.css +1 -0
- templates/items-list/items-style/fly/style.scss +0 -126
- templates/items-list/items-style/style.css +0 -1
- templates/items-list/items-style/style.min.css +1 -0
- templates/items-list/items-style/style.scss +0 -102
- templates/items-list/pagination/style.css +0 -1
- templates/items-list/pagination/style.min.css +1 -0
- templates/items-list/pagination/style.scss +0 -128
- templates/items-list/sort/dropdown/style.css +0 -1
- templates/items-list/sort/dropdown/style.min.css +1 -0
- templates/items-list/sort/dropdown/style.scss +0 -38
- templates/items-list/sort/style.css +0 -1
- templates/items-list/sort/style.min.css +1 -0
- templates/items-list/sort/style.scss +0 -63
- templates/notices/{style.css → style.min.css} +0 -0
- templates/notices/style.scss +0 -10
assets/admin/css/gutenberg-block.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.wp-block-nk-visual-portfolio{background-color:#f8f9f9}.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-placeholder{flex-direction:row;flex-wrap:wrap;justify-content:flex-start;min-height:0;padding:14px;background-color:transparent}.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-placeholder .components-placeholder__label{flex:1;justify-content:flex-start;margin-right:14px;margin-bottom:0}.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-placeholder .components-placeholder__label ~ *{width:auto}.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-placeholder .components-placeholder__fieldset{display:flex;align-items:center;justify-content:flex-start}.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-placeholder .components-placeholder__fieldset>a{margin-right:10px}.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-placeholder .components-placeholder__fieldset>.components-base-control{flex:1}.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-placeholder .spinner,.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-placeholder .components-base-control{margin:0}.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-preview{position:relative;padding:15px;overflow:hidden}.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-preview::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:1}.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-preview iframe{width:200% !important;min-width:200% !important;height:601px;min-height:20px;margin-bottom:-50%;overflow:hidden;-webkit-transform:scale(0.5);transform:scale(0.5);-webkit-transform-origin:0 0;transform-origin:0 0}
|
1 |
+
.wp-block-nk-visual-portfolio{background-color:#f8f9f9}.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-placeholder{-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row;flex-wrap:wrap;-webkit-box-pack:start;justify-content:flex-start;min-height:0;padding:14px;background-color:transparent}.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-placeholder .components-placeholder__label{-webkit-box-flex:1;flex:1;-webkit-box-pack:start;justify-content:flex-start;margin-right:14px;margin-bottom:0}.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-placeholder .components-placeholder__label ~ *{width:auto}.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-placeholder .components-placeholder__fieldset{display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;-webkit-box-pack:start;justify-content:flex-start}.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-placeholder .components-placeholder__fieldset>a{margin-right:10px}.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-placeholder .components-placeholder__fieldset>.components-base-control{-webkit-box-flex:1;flex:1}.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-placeholder .spinner,.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-placeholder .components-base-control{margin:0}.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-preview{position:relative;padding:15px;overflow:hidden}.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-preview::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:1}.wp-block-nk-visual-portfolio .visual-portfolio-gutenberg-preview iframe{width:200% !important;min-width:200% !important;height:601px;min-height:20px;margin-bottom:-50%;overflow:hidden;-webkit-transform:scale(0.5);transform:scale(0.5);-webkit-transform-origin:0 0;transform-origin:0 0}
|
assets/admin/css/layouts-editor.min.css
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* Name : Visual Portfolio
|
3 |
+
* Version : @@plugin_version
|
4 |
+
* Author : nK https://nkdev.info
|
5 |
+
*/.post-type-vp_lists.post-php,.post-type-vp_lists.post-new-php{background-color:#edeff0}.post-type-vp_lists.post-php #wpcontent,.post-type-vp_lists.post-new-php #wpcontent{padding-left:0}.post-type-vp_lists.post-php .wrap,.post-type-vp_lists.post-new-php .wrap{margin:0}.post-type-vp_lists.post-php #poststuff,.post-type-vp_lists.post-new-php #poststuff{padding-top:0}.post-type-vp_lists.post-php #wpfooter,.post-type-vp_lists.post-new-php #wpfooter{display:none}.post-type-vp_lists.post-php #wpbody-content,.post-type-vp_lists.post-new-php #wpbody-content{padding-bottom:0}.post-type-vp_lists.post-php #post-body.columns-2 #postbox-container-1,.post-type-vp_lists.post-new-php #post-body.columns-2 #postbox-container-1{position:fixed;top:0;right:300px;bottom:0;width:300px;overflow:auto;-webkit-overflow-scrolling:touch}html.wp-toolbar .post-type-vp_lists.post-php #post-body.columns-2 #postbox-container-1,html.wp-toolbar .post-type-vp_lists.post-new-php #post-body.columns-2 #postbox-container-1{top:32px}@media only screen and (max-width: 850px){.post-type-vp_lists.post-php #post-body.columns-2 #postbox-container-1,.post-type-vp_lists.post-new-php #post-body.columns-2 #postbox-container-1{position:relative;top:auto;right:auto;bottom:auto;width:100%;margin-right:0}}.post-type-vp_lists.post-php #postbox-container-2,.post-type-vp_lists.post-new-php #postbox-container-2{position:absolute;top:0;right:0;bottom:0;left:0;width:calc(100% - 300px);min-height:calc(100vh - 32px);overflow:auto;-webkit-overflow-scrolling:touch}@media only screen and (max-width: 850px){.post-type-vp_lists.post-php #postbox-container-2,.post-type-vp_lists.post-new-php #postbox-container-2{right:0;bottom:auto;width:100%}}.post-type-vp_lists.post-php .columns-2 #side-sortables,.post-type-vp_lists.post-new-php .columns-2 #side-sortables{width:auto}.post-type-vp_lists.post-php .notice,.post-type-vp_lists.post-new-php .notice{margin:0;margin-right:300px;margin-bottom:1px}@media only screen and (max-width: 850px){.post-type-vp_lists.post-php .notice,.post-type-vp_lists.post-new-php .notice{margin-right:0}}.post-type-vp_lists.post-php #poststuff .postbox,.post-type-vp_lists.post-new-php #poststuff .postbox{margin-bottom:0;border-color:#e2e4e7;border-top:0;border-right:0}.post-type-vp_lists.post-php #poststuff .postbox>h2,.post-type-vp_lists.post-new-php #poststuff .postbox>h2{padding:15px;border-bottom:none}.post-type-vp_lists.post-php #poststuff .postbox>.handlediv,.post-type-vp_lists.post-new-php #poststuff .postbox>.handlediv{height:50px}.post-type-vp_lists.post-php #poststuff .postbox>.inside,.post-type-vp_lists.post-new-php #poststuff .postbox>.inside{padding:15px;padding-top:0}.post-type-vp_lists.post-php.rtl #post-body.columns-2 #postbox-container-1,.post-type-vp_lists.post-new-php.rtl #post-body.columns-2 #postbox-container-1{right:auto;left:300px}.vp-control{display:-webkit-box;display:flex;flex-wrap:wrap;-webkit-box-align:center;align-items:center;margin-bottom:19px}.vp-control>label{width:100%;margin-bottom:5px}.vp-control>.vp-control-description{width:100%;margin:2px 0 5px;font-size:13px;font-style:italic;color:#666}.vp-control.vp-control-checkbox,.vp-control.vp-control-toggle{flex-wrap:nowrap}.vp-control.vp-control-checkbox>label,.vp-control.vp-control-toggle>label{margin-bottom:0}.vp-control.vp-control-textarea textarea{width:100%}.vp-image-picker{display:none}.vp-image-picker,.vp-image-picker *{box-sizing:border-box}.vp-image-picker+ul.thumbnails.image_picker_selector li{margin:0 10px 10px 0}.vp-image-picker+ul.thumbnails.image_picker_selector li .thumbnail{padding:0;cursor:pointer;border:none}.vp-image-picker+ul.thumbnails.image_picker_selector li .thumbnail img{display:block;border:2px solid transparent}.vp-image-picker+ul.thumbnails.image_picker_selector li .thumbnail.selected{background-color:transparent}.vp-image-picker+ul.thumbnails.image_picker_selector li .thumbnail.selected img{border-color:#0073aa}.vp-image-picker+ul.thumbnails.image_picker_selector .group_title{padding-top:5px;padding-left:5px;font-weight:500}.vp-control-range [type="number"]{width:50px;margin-left:10px}.vp-control-range [type="range"]{-webkit-box-flex:1;flex:1;width:100%;padding:0;background:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none}.vp-control-range [type="range"]::-webkit-slider-thumb{box-sizing:border-box;width:18px;height:18px;margin-top:-7px;cursor:pointer;background:#555d66;background-clip:padding-box;border:4px solid transparent;border-radius:50%;-webkit-appearance:none;appearance:none}.vp-control-range [type="range"]::-moz-range-thumb{box-sizing:border-box;width:18px;height:18px;cursor:pointer;background:#555d66;background-clip:padding-box;border:4px solid transparent;border-radius:50%}.vp-control-range [type="range"]::-ms-thumb{box-sizing:border-box;width:14px;height:14px;margin-top:0;cursor:pointer;background:#555d66;background-clip:padding-box;border:2px solid transparent;border-radius:50%}.vp-control-range [type="range"]:focus{outline:none}.vp-control-range [type="range"]:focus::-webkit-slider-thumb{color:#191e23;background-color:#fff;outline:2px solid transparent;outline-offset:-2px;box-shadow:inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff}.vp-control-range [type="range"]:focus::-moz-range-thumb{color:#191e23;background-color:#fff;outline:2px solid transparent;outline-offset:-2px;box-shadow:inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff}.vp-control-range [type="range"]:focus::-ms-thumb{color:#191e23;background-color:#fff;outline:2px solid transparent;outline-offset:-2px;box-shadow:inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff}.vp-control-range [type="range"]::-webkit-slider-runnable-track{height:3px;margin-top:-4px;cursor:pointer;background:#e2e4e7;border-radius:1.5px}.vp-control-range [type="range"]::-moz-range-track{height:3px;cursor:pointer;background:#e2e4e7;border-radius:1.5px}.vp-control-range [type="range"]::-ms-track{height:3px;margin-top:-4px;color:transparent;cursor:pointer;background:#e2e4e7;border-color:transparent;border-radius:1.5px}.vp-control-toggle,.vp-control-toggle *{box-sizing:border-box}.vp-control-toggle .vp-toggle{position:relative}.vp-control-toggle .vp-toggle .vp-toggle__track{content:"";display:inline-block;box-sizing:border-box;width:36px;height:18px;vertical-align:top;background-color:#fff;border:2px solid #6c7781;border-radius:9px;-webkit-transition:background .2s ease;transition:background .2s ease}.vp-control-toggle .vp-toggle .vp-toggle__track::after{content:"";position:absolute;display:block;top:50%;right:5px;width:3px;height:3px;margin-top:-3px;border:1.5px solid #6c7781;border-radius:3px}.vp-control-toggle .vp-toggle:hover .vp-toggle__track{background-color:#e2e4e7}.vp-control-toggle .vp-toggle [type="checkbox"]:checked ~ .vp-toggle__track{background-color:#33b3db;border:2px solid #33b3db}.vp-control-toggle .vp-toggle [type="checkbox"]:checked ~ .vp-toggle__track::after{top:50%;right:auto;left:8px;width:0;height:5px;margin-top:-3px;border:0;border-right:2px solid #fff;border-radius:0}.vp-control-toggle .vp-toggle .vp-toggle__thumb{position:absolute;display:block;top:4px;left:4px;width:10px;height:10px;background-color:#6c7781;border:5px solid #6c7781;border-radius:50%;-webkit-transition:-webkit-transform .1s ease;transition:-webkit-transform .1s ease;transition:transform .1s ease;transition:transform .1s ease, -webkit-transform .1s ease}.vp-control-toggle .vp-toggle [type="checkbox"]:focus ~ .vp-toggle__track{box-shadow:0 0 0 2px #fff, 0 0 0 3px #6c7781}.vp-control-toggle .vp-toggle [type="checkbox"]:checked ~ .vp-toggle__thumb{background-color:#fff;border-width:0;-webkit-transform:translateX(18px);transform:translateX(18px)}.vp-control-toggle .vp-toggle [type="checkbox"]{position:absolute;top:0;left:0;width:100%;height:100%;padding:0;margin:0;opacity:0;z-index:1}.vp-control-image-dropdown{position:relative;display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;width:100%;padding:5px 7px;cursor:pointer;background-color:#fff;border:1px solid #ddd;box-shadow:inset 0 1px 2px rgba(0,0,0,0.07)}.vp-control-image-dropdown,.vp-control-image-dropdown *{box-sizing:border-box}.vp-control-image-dropdown::before{content:"";position:absolute;display:block;top:50%;right:6px;width:0;height:0;margin-top:-2px;border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px}.vp-control-image-dropdown.active::before{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.vp-control-image-dropdown .vp-control-image-dropdown__preview{display:block;-webkit-box-flex:0;flex:0 0 auto;width:32px}.vp-control-image-dropdown .vp-control-image-dropdown__preview img{display:block;width:100%;height:auto}.vp-control-image-dropdown .vp-control-image-dropdown__title{-webkit-box-flex:1;flex:1;padding-left:10px}.vp-control-image-dropdown .vp-control-image-dropdown__content{position:absolute;display:none;top:100%;left:0;width:100%;max-width:285px;margin-top:7px;margin-left:-1px;cursor:default;background-color:#fff;border:1px solid #e5e5e5;box-shadow:0 1px 1px rgba(0,0,0,0.04);z-index:1}.vp-control-image-dropdown .vp-control-image-dropdown__content>div{width:100%;max-height:250px;padding:4px;overflow:auto}.vp-control-image-dropdown .vp-control-image-dropdown__content::before{content:"";position:absolute;display:block;top:-5px;left:10px;width:0;height:0;border-right:5px solid transparent;border-bottom:5px solid #e5e5e5;border-left:5px solid transparent}.vp-control-image-dropdown .vp-control-image-dropdown__content::after{content:"";position:absolute;display:block;top:-7px;right:0;left:0;height:7px}.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector,.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector .group>ul{display:-webkit-box;display:flex;flex-wrap:wrap}.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector li{display:block;-webkit-box-flex:0;flex:0 0 25%;float:none;max-width:25%;margin:0}.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector li.group,.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector li.group_title{-webkit-box-flex:0;flex:0 0 100%;max-width:100%}.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector li .thumbnail{padding:3px}.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector li img{width:100%;height:auto}.vp-control-image-dropdown.active .vp-control-image-dropdown__content{display:block}.vp_list_preview{padding:0 12px;margin-right:-12px;margin-left:-12px}.vp_list_preview iframe{width:100%;min-height:120px;-webkit-transition:height .3s;transition:height .3s}.vp-content-source{display:-webkit-box;display:flex;flex-wrap:wrap;padding-right:9px;padding-left:9px;margin-right:-15px;margin-left:-15px}.vp-content-source .vp-content-source__item{position:relative;width:70px;height:50px;padding:12px;margin:0 5px;color:#6c7781;text-align:center;cursor:pointer;border:1px solid transparent;border-radius:3px}.vp-content-source .vp-content-source__item.active,.vp-content-source .vp-content-source__item:hover{color:#555;background-color:#ecf0f4}.vp-content-source .vp-content-source__item.active{color:#fff;background-color:#6c7781;border-color:#6c7781}.vp-content-source .vp-content-source__item .vp-content-source__item-icon>span{width:24px;height:24px;margin-top:2px;font-size:24px}.vp-content-source .vp-content-source__item .vp-content-source__item-title{position:absolute;top:58%;right:8px;left:8px;font-weight:500}.vp-content-source .vp-content-source__item-content{-webkit-box-flex:1;flex:1;min-width:100%}.vp-content-source .vp-content-source__item-content>div{position:relative;display:none;padding:0 15px;padding-bottom:1px;margin-top:12px;margin-right:-9px;margin-bottom:-14px;margin-left:-9px;overflow:hidden;background-color:#f9f9fa;border-top:1px solid #eee}.vp-content-source .vp-content-source__item-content>div:empty{display:none !important}.vp-content-source .vp-content-source__item-content>div.active{display:block}.vp-select2{width:100%}.vp-select2+.select2{width:100%}.post-attributes-label+.vp-select2+.select2{margin-top:5px}.vp-select2+.select2 ul,.vp-select2+.select2 li{margin-bottom:0}.vp-select2+.select2 .select2-selection{border:1px solid #ddd;border-radius:0;box-shadow:inset 0 1px 2px rgba(0,0,0,0.07)}.vp-select2+.select2.select2-container--open .select2-selection{outline:none}.vp-select2+.select2 .select2-selection--multiple{min-height:27px}.vp-select2+.select2 .select2-selection--multiple .select2-selection__choice{padding:3px 8px;margin-top:3px;color:#fff;background-color:#6c7781;border-color:#6c7781}.vp-select2+.select2 .select2-selection--multiple .select2-selection__choice__remove{float:right;margin-right:0;margin-left:3px;color:inherit;opacity:.5}.select2-vp-container ul,.select2-vp-container li{margin-bottom:0}.select2-vp-container .select2-dropdown{border-color:#ddd}.select2-vp-container .select2-search--dropdown .select2-search__field{padding:3px 4px;border:1px solid #ddd;outline:none;box-shadow:none}.select2-vp-container .select2-results__option[aria-selected="true"]{background-color:#efeeee}.select2-vp-container .select2-results__option--highlighted[aria-selected]{background-color:#33b3db}.vp-select2-ajax__result{display:-webkit-box;display:flex;-webkit-box-flex:0;flex:0 1 auto;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row;flex-wrap:wrap}.vp-select2-ajax__result .vp-select2-ajax__result-img{position:relative;-webkit-box-flex:0;flex:0 0 35px;background-color:rgba(0,0,0,0.1);background-position:center center;background-size:cover;border-radius:3px}.vp-select2-ajax__result .vp-select2-ajax__result-img::after{content:"";display:block;width:100%;padding-top:100%}.vp-select2-ajax__result .vp-select2-ajax__result-data{padding-left:10px}.vp-select2-ajax__result .vp-select2-ajax__result-title{font-size:16px;font-weight:500;line-height:1}.vp-select2-ajax__result .vp-select2-ajax__result-post-type{font-size:12px;opacity:.5}.vp-control-gallery{position:relative;border-bottom:1px solid #eaeaea}.vp-control-gallery .vp-control-gallery-additional-data{position:absolute;box-sizing:border-box;top:-15px;right:-365px;bottom:0;width:350px;padding:15px 13px;overflow:auto;background-color:#fff;border-left:1px solid #eaeaea;-webkit-transition:.15s right;transition:.15s right}.vp-control-gallery .vp-control-gallery-additional-data.active{right:-15px}.vp-control-gallery .vp-control-gallery-additional-data.active+.vp-control-gallery-items{margin-right:335px}@media (max-width: 910px){.vp-control-gallery .vp-control-gallery-additional-data{position:relative;display:none;right:0;width:120%;height:auto;margin-bottom:30px;border:1px solid #eaeaea}.vp-control-gallery .vp-control-gallery-additional-data.active{display:block}.vp-control-gallery .vp-control-gallery-additional-data.active+.vp-control-gallery-items{margin-right:-15px}}.vp-control-gallery .vp-control-gallery-additional-data .vp-control-gallery-additional-data-preview{display:-webkit-box;display:flex;padding:15px 13px;margin:-15px -13px;margin-bottom:15px;border-bottom:1px solid #eaeaea}.vp-control-gallery .vp-control-gallery-additional-data .vp-control-gallery-additional-data-preview .vp-control-gallery-additional-data-preview-image{margin-right:15px}.vp-control-gallery .vp-control-gallery-additional-data .vp-control-gallery-additional-data-preview .vp-control-gallery-additional-data-preview-image img{display:block;width:70px;border-radius:3px;box-shadow:0 0 0 1px #fff, 0 0 0 2px #eaeaea}.vp-control-gallery .vp-control-gallery-additional-data .vp-control-gallery-additional-data-preview .vp-control-gallery-additional-data-preview-size{color:#8f9498}.vp-control-gallery .vp-control-gallery-items{display:-webkit-box;display:flex;flex-wrap:wrap;align-content:flex-start;width:120%;height:325px;padding:7px;margin:-12px;margin-bottom:-25px;overflow:auto;-webkit-transition:.15s margin-right;transition:.15s margin-right}.vp-control-gallery .vp-control-gallery-items::after{content:"";display:block;width:100%}.vp-control-gallery .vp-control-gallery-items>div{position:relative;display:block;width:calc(12.5% - 10px);margin:5px;cursor:move;cursor:-webkit-grab;cursor:grab;border-radius:3px}@media (max-width: 1350px){.vp-control-gallery .vp-control-gallery-items>div{width:calc(14.22% - 10px)}}@media (max-width: 1250px){.vp-control-gallery .vp-control-gallery-items>div{width:calc(16.66% - 10px)}}@media (max-width: 1100px){.vp-control-gallery .vp-control-gallery-items>div{width:calc(25% - 10px)}}.vp-control-gallery .vp-control-gallery-items>div::after{content:"";display:block;padding-top:100%}.vp-control-gallery .vp-control-gallery-items>div.sortable-ghost{opacity:.4}.vp-control-gallery .vp-control-gallery-items>div img{position:absolute;display:block;top:0;left:0;width:100%;height:100%;-o-object-fit:cover;object-fit:cover;border-radius:3px}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-img .vp-control-gallery-items-remove{position:absolute;top:-5px;right:-5px;width:20px;height:20px;color:#fff;cursor:pointer;visibility:hidden;background-color:#dc3232;border-radius:50%;opacity:0;-webkit-transition:.15s visibility, .15s opacity;transition:.15s visibility, .15s opacity}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-img .vp-control-gallery-items-remove span{width:20px;height:20px;font-size:10px;line-height:20px}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-img:hover .vp-control-gallery-items-remove{visibility:visible;opacity:1}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-img.active{box-shadow:0 0 0 1px #fff, 0 0 0 4px #33b3db}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-add{display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;box-sizing:border-box;color:#6c7781;text-align:center;cursor:pointer;background-color:#fff;border:1px solid #ccd3da;border-radius:3px}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-add>span{position:absolute;top:50%;left:50%;width:24px;height:24px;margin-top:-12px;margin-left:-12px;line-height:24px}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-add:hover{color:#555;background-color:#f7f7f7}.post-type-vp_lists .CodeMirror{width:100%;text-align:left;border:1px solid #ddd}.post-type-vp_lists .CodeMirror .CodeMirror-matchingbracket{color:inherit;background:rgba(255,150,0,0.3)}.post-type-vp_lists [class*="CodeMirror-lint-message"],.post-type-vp_lists .CodeMirror-lint-marker-multiple,.post-type-vp_lists [class*="CodeMirror-lint-marker"]{background-image:none}.post-type-vp_lists .CodeMirror-lint-marker-error,.post-type-vp_lists .CodeMirror-lint-marker-warning{cursor:help}.post-type-vp_lists .CodeMirror-lint-marker-multiple{position:absolute;top:0}.post-type-vp_lists [class*="CodeMirror-lint-marker"]::before{position:relative;top:-2px;font:400 18px/1 dashicons}.post-type-vp_lists [class*="CodeMirror-lint-message"]::before{position:absolute;left:16px;font:400 16px/1 dashicons}.post-type-vp_lists .CodeMirror-lint-message-error,.post-type-vp_lists .CodeMirror-lint-message-warning{padding:3px 12px 3px 28px;margin:5px 0 2px;box-shadow:0 1px 1px 0 rgba(0,0,0,0.1)}.post-type-vp_lists .CodeMirror-lint-message-warning{background-color:#fff8e5;border-left:4px solid #ffb900}.post-type-vp_lists .CodeMirror-lint-message-warning::before,.post-type-vp_lists .CodeMirror-lint-marker-warning::before{content:"\f534";color:#f6a306}.post-type-vp_lists .CodeMirror-lint-message-error{background-color:#fbeaea;border-left:4px solid #dc3232}.post-type-vp_lists .CodeMirror-lint-message-error::before,.post-type-vp_lists .CodeMirror-lint-marker-error::before{content:"\f153";color:#dc3232}.post-type-vp_lists .CodeMirror-lint-tooltip{background:0 0;border:none;border-radius:0;direction:ltr}.post-type-vp_lists .CodeMirror-resizer{display:none;display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;width:100%;height:20px;margin-top:-2px;font-size:13px;cursor:row-resize;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#fbfbfb}.post-type-vp_lists .CodeMirror-resizer::before{content:"\2261";position:absolute;left:50%;color:#999}.post-type-vp_lists .CodeMirror-resizer:hover{background:#f7f7f7}.post-type-vp_lists .CodeMirror-resizer:hover::before{color:#000}.post-type-vp_lists .CodeMirror ~ .CodeMirror-resizer{display:block}@media (max-width: 850px){.vp-steps__right,.vp-steps__step{float:none;width:100%}}.post-type-vp_lists #slugdiv,.post-type-vp_lists #postcustom{display:none}
|
assets/admin/css/style.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/*!
|
2 |
* Name : Visual Portfolio
|
3 |
-
* Version :
|
4 |
* Author : nK https://nkdev.info
|
5 |
-
*/.dashicons-visual-portfolio,.dashicons-visual-portfolio-gray,.mce-widget .mce-i-visual-portfolio{background-image:url("../images/icon.svg");background-repeat:no-repeat;background-position:center center;background-size:15px;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}.dashicons-visual-portfolio-gray,.mce-i-visual-portfolio-gray{background-image:url("../images/icon-gray.svg")}.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-vc.png");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:flex;flex:0 1 auto;flex-direction:row;flex-wrap:wrap;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{flex:0 0 auto;box-sizing:border-box;padding-right:15px;padding-left:15px}.vp-col-1{flex-basis:8.33333%;max-width:8.33333%}.vp-col-2{flex-basis:16.66667%;max-width:16.66667%}.vp-col-3{flex-basis:25%;max-width:25%}.vp-col-4{flex-basis:33.33333%;max-width:33.33333%}.vp-col-5{flex-basis:41.66667%;max-width:41.66667%}.vp-col-6{flex-basis:50%;max-width:50%}.vp-col-7{flex-basis:58.33333%;max-width:58.33333%}.vp-col-8{flex-basis:66.66667%;max-width:66.66667%}.vp-col-9{flex-basis:75%;max-width:75%}.vp-col-10{flex-basis:83.33333%;max-width:83.33333%}.vp-col-11{flex-basis:91.66667%;max-width:91.66667%}.vp-col-12{flex-basis:100%;max-width:100%}.vp-col-clearfix{flex-basis:100%;max-width:100%}.vp-col-clearfix .vp-control-html{margin-bottom:0}.post-type-vp_lists.post-php,.post-type-vp_lists.post-new-php{background-color:#edeff0}.post-type-vp_lists.post-php #wpcontent,.post-type-vp_lists.post-new-php #wpcontent{padding-left:0}.post-type-vp_lists.post-php .wrap,.post-type-vp_lists.post-new-php .wrap{margin:0}.post-type-vp_lists.post-php #poststuff,.post-type-vp_lists.post-new-php #poststuff{padding-top:0}.post-type-vp_lists.post-php #wpfooter,.post-type-vp_lists.post-new-php #wpfooter{display:none}.post-type-vp_lists.post-php #wpbody-content,.post-type-vp_lists.post-new-php #wpbody-content{padding-bottom:0}.post-type-vp_lists.post-php #post-body.columns-2 #postbox-container-1,.post-type-vp_lists.post-new-php #post-body.columns-2 #postbox-container-1{position:fixed;top:0;right:300px;bottom:0;width:300px;overflow:auto;-webkit-overflow-scrolling:touch}html.wp-toolbar .post-type-vp_lists.post-php #post-body.columns-2 #postbox-container-1,html.wp-toolbar .post-type-vp_lists.post-new-php #post-body.columns-2 #postbox-container-1{top:32px}@media only screen and (max-width: 850px){.post-type-vp_lists.post-php #post-body.columns-2 #postbox-container-1,.post-type-vp_lists.post-new-php #post-body.columns-2 #postbox-container-1{position:relative;top:auto;right:auto;bottom:auto;width:100%;margin-right:0}}.post-type-vp_lists.post-php #postbox-container-2,.post-type-vp_lists.post-new-php #postbox-container-2{position:absolute;top:0;right:0;bottom:0;left:0;width:calc(100% - 300px);min-height:calc(100vh - 32px);overflow:auto;-webkit-overflow-scrolling:touch}@media only screen and (max-width: 850px){.post-type-vp_lists.post-php #postbox-container-2,.post-type-vp_lists.post-new-php #postbox-container-2{right:0;bottom:auto;width:100%}}.post-type-vp_lists.post-php .columns-2 #side-sortables,.post-type-vp_lists.post-new-php .columns-2 #side-sortables{width:auto}.post-type-vp_lists.post-php .notice,.post-type-vp_lists.post-new-php .notice{margin:0;margin-right:300px;margin-bottom:1px}@media only screen and (max-width: 850px){.post-type-vp_lists.post-php .notice,.post-type-vp_lists.post-new-php .notice{margin-right:0}}.post-type-vp_lists.post-php #poststuff .postbox,.post-type-vp_lists.post-new-php #poststuff .postbox{margin-bottom:0;border-color:#e2e4e7;border-top:0;border-right:0}.post-type-vp_lists.post-php #poststuff .postbox>h2,.post-type-vp_lists.post-new-php #poststuff .postbox>h2{padding:15px;border-bottom:none}.post-type-vp_lists.post-php #poststuff .postbox>.handlediv,.post-type-vp_lists.post-new-php #poststuff .postbox>.handlediv{height:50px}.post-type-vp_lists.post-php #poststuff .postbox>.inside,.post-type-vp_lists.post-new-php #poststuff .postbox>.inside{padding:15px;padding-top:0}.post-type-vp_lists.post-php.rtl #post-body.columns-2 #postbox-container-1,.post-type-vp_lists.post-new-php.rtl #post-body.columns-2 #postbox-container-1{right:auto;left:300px}.vp-control{display:flex;flex-wrap:wrap;align-items:center;margin-bottom:19px}.vp-control>label{width:100%;margin-bottom:5px}.vp-control>.vp-control-description{width:100%;margin:2px 0 5px;font-size:13px;font-style:italic;color:#666}.vp-control.vp-control-checkbox,.vp-control.vp-control-toggle{flex-wrap:nowrap}.vp-control.vp-control-checkbox>label,.vp-control.vp-control-toggle>label{margin-bottom:0}.vp-control.vp-control-textarea textarea{width:100%}.vp-image-picker{display:none}.vp-image-picker,.vp-image-picker *{box-sizing:border-box}.vp-image-picker+ul.thumbnails.image_picker_selector li{margin:0 10px 10px 0}.vp-image-picker+ul.thumbnails.image_picker_selector li .thumbnail{padding:0;cursor:pointer;border:none}.vp-image-picker+ul.thumbnails.image_picker_selector li .thumbnail img{display:block;border:2px solid transparent}.vp-image-picker+ul.thumbnails.image_picker_selector li .thumbnail.selected{background-color:transparent}.vp-image-picker+ul.thumbnails.image_picker_selector li .thumbnail.selected img{border-color:#0073aa}.vp-image-picker+ul.thumbnails.image_picker_selector .group_title{padding-top:5px;padding-left:5px;font-weight:500}.vp-control-range [type="number"]{width:50px;margin-left:10px}.vp-control-range [type="range"]{flex:1;width:100%;padding:0;background:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none}.vp-control-range [type="range"]::-webkit-slider-thumb{box-sizing:border-box;width:18px;height:18px;margin-top:-7px;cursor:pointer;background:#555d66;background-clip:padding-box;border:4px solid transparent;border-radius:50%;-webkit-appearance:none;appearance:none}.vp-control-range [type="range"]::-moz-range-thumb{box-sizing:border-box;width:18px;height:18px;cursor:pointer;background:#555d66;background-clip:padding-box;border:4px solid transparent;border-radius:50%}.vp-control-range [type="range"]::-ms-thumb{box-sizing:border-box;width:14px;height:14px;margin-top:0;cursor:pointer;background:#555d66;background-clip:padding-box;border:2px solid transparent;border-radius:50%}.vp-control-range [type="range"]:focus{outline:none}.vp-control-range [type="range"]:focus::-webkit-slider-thumb{color:#191e23;background-color:#fff;outline:2px solid transparent;outline-offset:-2px;box-shadow:inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff}.vp-control-range [type="range"]:focus::-moz-range-thumb{color:#191e23;background-color:#fff;outline:2px solid transparent;outline-offset:-2px;box-shadow:inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff}.vp-control-range [type="range"]:focus::-ms-thumb{color:#191e23;background-color:#fff;outline:2px solid transparent;outline-offset:-2px;box-shadow:inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff}.vp-control-range [type="range"]::-webkit-slider-runnable-track{height:3px;margin-top:-4px;cursor:pointer;background:#e2e4e7;border-radius:1.5px}.vp-control-range [type="range"]::-moz-range-track{height:3px;cursor:pointer;background:#e2e4e7;border-radius:1.5px}.vp-control-range [type="range"]::-ms-track{height:3px;margin-top:-4px;color:transparent;cursor:pointer;background:#e2e4e7;border-color:transparent;border-radius:1.5px}.vp-control-toggle,.vp-control-toggle *{box-sizing:border-box}.vp-control-toggle .vp-toggle{position:relative}.vp-control-toggle .vp-toggle .vp-toggle__track{content:"";display:inline-block;box-sizing:border-box;width:36px;height:18px;vertical-align:top;background-color:#fff;border:2px solid #6c7781;border-radius:9px;transition:background .2s ease}.vp-control-toggle .vp-toggle .vp-toggle__track::after{content:"";position:absolute;display:block;top:50%;right:5px;width:3px;height:3px;margin-top:-3px;border:1.5px solid #6c7781;border-radius:3px}.vp-control-toggle .vp-toggle:hover .vp-toggle__track{background-color:#e2e4e7}.vp-control-toggle .vp-toggle [type="checkbox"]:checked ~ .vp-toggle__track{background-color:#33b3db;border:2px solid #33b3db}.vp-control-toggle .vp-toggle [type="checkbox"]:checked ~ .vp-toggle__track::after{top:50%;right:auto;left:8px;width:0;height:5px;margin-top:-3px;border:0;border-right:2px solid #fff;border-radius:0}.vp-control-toggle .vp-toggle .vp-toggle__thumb{position:absolute;display:block;top:4px;left:4px;width:10px;height:10px;background-color:#6c7781;border:5px solid #6c7781;border-radius:50%;transition:-webkit-transform .1s ease;transition:transform .1s ease;transition:transform .1s ease, -webkit-transform .1s ease}.vp-control-toggle .vp-toggle [type="checkbox"]:focus ~ .vp-toggle__track{box-shadow:0 0 0 2px #fff, 0 0 0 3px #6c7781}.vp-control-toggle .vp-toggle [type="checkbox"]:checked ~ .vp-toggle__thumb{background-color:#fff;border-width:0;-webkit-transform:translateX(18px);transform:translateX(18px)}.vp-control-toggle .vp-toggle [type="checkbox"]{position:absolute;top:0;left:0;width:100%;height:100%;padding:0;margin:0;opacity:0;z-index:1}.vp-control-image-dropdown{position:relative;display:flex;align-items:center;width:100%;padding:5px 7px;cursor:pointer;background-color:#fff;border:1px solid #ddd;box-shadow:inset 0 1px 2px rgba(0,0,0,0.07)}.vp-control-image-dropdown,.vp-control-image-dropdown *{box-sizing:border-box}.vp-control-image-dropdown::before{content:"";position:absolute;display:block;top:50%;right:6px;width:0;height:0;margin-top:-2px;border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px}.vp-control-image-dropdown.active::before{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.vp-control-image-dropdown .vp-control-image-dropdown__preview{display:block;flex:0 0 auto;width:32px}.vp-control-image-dropdown .vp-control-image-dropdown__preview img{display:block;width:100%;height:auto}.vp-control-image-dropdown .vp-control-image-dropdown__title{flex:1;padding-left:10px}.vp-control-image-dropdown .vp-control-image-dropdown__content{position:absolute;display:none;top:100%;left:0;width:100%;max-width:285px;margin-top:7px;margin-left:-1px;cursor:default;background-color:#fff;border:1px solid #e5e5e5;box-shadow:0 1px 1px rgba(0,0,0,0.04);z-index:1}.vp-control-image-dropdown .vp-control-image-dropdown__content>div{width:100%;max-height:250px;padding:4px;overflow:auto}.vp-control-image-dropdown .vp-control-image-dropdown__content::before{content:"";position:absolute;display:block;top:-5px;left:10px;width:0;height:0;border-right:5px solid transparent;border-bottom:5px solid #e5e5e5;border-left:5px solid transparent}.vp-control-image-dropdown .vp-control-image-dropdown__content::after{content:"";position:absolute;display:block;top:-7px;right:0;left:0;height:7px}.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector,.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector .group>ul{display:flex;flex-wrap:wrap}.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector li{display:block;flex:0 0 25%;float:none;max-width:25%;margin:0}.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector li.group,.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector li.group_title{flex:0 0 100%;max-width:100%}.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector li .thumbnail{padding:3px}.vp-control-image-dropdown .vp-control-image-dropdown__content .vp-image-picker+ul.thumbnails.image_picker_selector li img{width:100%;height:auto}.vp-control-image-dropdown.active .vp-control-image-dropdown__content{display:block}.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;vertical-align:top;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}.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;vertical-align:top;-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_shortcode{width:250px}@media screen and (max-width: 782px){.wp-list-table th.column-portfolio_post_thumbs{display:none}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-portfolio_post_thumbs{float:left;width:70px !important;min-width:70px}.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}}.vp-portfolio-list .vp-portfolio-list__icon span{display:block;width:120px;height:120px;margin:0 auto;margin-top:60px;background-size:105px}.vp-portfolio-list .vp-portfolio-list__text{text-align:center}.vp-portfolio-list .vp-portfolio-list__text p{margin-top:30px;margin-bottom:30px;font-size:15px;font-weight:500;color:#8e8e8e}.vp-portfolio-list .vp-portfolio-list__text .button-hero{display:inline-block}.vp_list_preview{padding:0 12px;margin-right:-12px;margin-left:-12px}.vp_list_preview iframe{width:100%;min-height:120px;transition:height .3s}.vp-content-source{display:flex;flex-wrap:wrap;padding-right:9px;padding-left:9px;margin-right:-15px;margin-left:-15px}.vp-content-source .vp-content-source__item{position:relative;width:70px;height:50px;padding:12px;margin:0 5px;color:#6c7781;text-align:center;cursor:pointer;border:1px solid transparent;border-radius:3px}.vp-content-source .vp-content-source__item.active,.vp-content-source .vp-content-source__item:hover{color:#555;background-color:#ecf0f4}.vp-content-source .vp-content-source__item.active{color:#fff;background-color:#6c7781;border-color:#6c7781}.vp-content-source .vp-content-source__item .vp-content-source__item-icon>span{width:24px;height:24px;margin-top:2px;font-size:24px}.vp-content-source .vp-content-source__item .vp-content-source__item-title{position:absolute;top:58%;right:8px;left:8px;font-weight:500}.vp-content-source .vp-content-source__item-content{flex:1;min-width:100%}.vp-content-source .vp-content-source__item-content>div{position:relative;display:none;padding:0 15px;padding-bottom:1px;margin-top:12px;margin-right:-9px;margin-bottom:-14px;margin-left:-9px;overflow:hidden;background-color:#f9f9fa;border-top:1px solid #eee}.vp-content-source .vp-content-source__item-content>div:empty{display:none !important}.vp-content-source .vp-content-source__item-content>div.active{display:block}.vp-select2{width:100%}.vp-select2+.select2{width:100%}.post-attributes-label+.vp-select2+.select2{margin-top:5px}.vp-select2+.select2 ul,.vp-select2+.select2 li{margin-bottom:0}.vp-select2+.select2 .select2-selection{border:1px solid #ddd;border-radius:0;box-shadow:inset 0 1px 2px rgba(0,0,0,0.07)}.vp-select2+.select2.select2-container--open .select2-selection{outline:none}.vp-select2+.select2 .select2-selection--multiple{min-height:27px}.vp-select2+.select2 .select2-selection--multiple .select2-selection__choice{padding:3px 8px;margin-top:3px;color:#fff;background-color:#6c7781;border-color:#6c7781}.vp-select2+.select2 .select2-selection--multiple .select2-selection__choice__remove{float:right;margin-right:0;margin-left:3px;color:inherit;opacity:.5}.select2-vp-container ul,.select2-vp-container li{margin-bottom:0}.select2-vp-container .select2-dropdown{border-color:#ddd}.select2-vp-container .select2-search--dropdown .select2-search__field{padding:3px 4px;border:1px solid #ddd;outline:none;box-shadow:none}.select2-vp-container .select2-results__option[aria-selected="true"]{background-color:#efeeee}.select2-vp-container .select2-results__option--highlighted[aria-selected]{background-color:#33b3db}.vp-select2-ajax__result{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:wrap}.vp-select2-ajax__result .vp-select2-ajax__result-img{position:relative;flex:0 0 35px;background-color:rgba(0,0,0,0.1);background-position:center center;background-size:cover;border-radius:3px}.vp-select2-ajax__result .vp-select2-ajax__result-img::after{content:"";display:block;width:100%;padding-top:100%}.vp-select2-ajax__result .vp-select2-ajax__result-data{padding-left:10px}.vp-select2-ajax__result .vp-select2-ajax__result-title{font-size:16px;font-weight:500;line-height:1}.vp-select2-ajax__result .vp-select2-ajax__result-post-type{font-size:12px;opacity:.5}.vp-control-gallery{position:relative;border-bottom:1px solid #eaeaea}.vp-control-gallery .vp-control-gallery-additional-data{position:absolute;box-sizing:border-box;top:-15px;right:-365px;bottom:0;width:350px;padding:15px 13px;overflow:auto;background-color:#fff;border-left:1px solid #eaeaea;transition:.15s right}.vp-control-gallery .vp-control-gallery-additional-data.active{right:-15px}.vp-control-gallery .vp-control-gallery-additional-data.active+.vp-control-gallery-items{margin-right:335px}@media (max-width: 910px){.vp-control-gallery .vp-control-gallery-additional-data{position:relative;display:none;right:0;width:120%;height:auto;margin-bottom:30px;border:1px solid #eaeaea}.vp-control-gallery .vp-control-gallery-additional-data.active{display:block}.vp-control-gallery .vp-control-gallery-additional-data.active+.vp-control-gallery-items{margin-right:-15px}}.vp-control-gallery .vp-control-gallery-additional-data .vp-control-gallery-additional-data-preview{display:flex;padding:15px 13px;margin:-15px -13px;margin-bottom:15px;border-bottom:1px solid #eaeaea}.vp-control-gallery .vp-control-gallery-additional-data .vp-control-gallery-additional-data-preview .vp-control-gallery-additional-data-preview-image{margin-right:15px}.vp-control-gallery .vp-control-gallery-additional-data .vp-control-gallery-additional-data-preview .vp-control-gallery-additional-data-preview-image img{display:block;width:70px;border-radius:3px;box-shadow:0 0 0 1px #fff, 0 0 0 2px #eaeaea}.vp-control-gallery .vp-control-gallery-additional-data .vp-control-gallery-additional-data-preview .vp-control-gallery-additional-data-preview-size{color:#8f9498}.vp-control-gallery .vp-control-gallery-items{display:flex;flex-wrap:wrap;align-content:flex-start;width:120%;height:325px;padding:7px;margin:-12px;margin-bottom:-25px;overflow:auto;transition:.15s margin-right}.vp-control-gallery .vp-control-gallery-items::after{content:"";display:block;width:100%}.vp-control-gallery .vp-control-gallery-items>div{position:relative;display:block;width:calc(12.5% - 10px);margin:5px;cursor:move;cursor:-webkit-grab;cursor:grab;border-radius:3px}@media (max-width: 1350px){.vp-control-gallery .vp-control-gallery-items>div{width:calc(14.22% - 10px)}}@media (max-width: 1250px){.vp-control-gallery .vp-control-gallery-items>div{width:calc(16.66% - 10px)}}@media (max-width: 1100px){.vp-control-gallery .vp-control-gallery-items>div{width:calc(25% - 10px)}}.vp-control-gallery .vp-control-gallery-items>div::after{content:"";display:block;padding-top:100%}.vp-control-gallery .vp-control-gallery-items>div.sortable-ghost{opacity:.4}.vp-control-gallery .vp-control-gallery-items>div img{position:absolute;display:block;top:0;left:0;width:100%;height:100%;-o-object-fit:cover;object-fit:cover;border-radius:3px}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-img .vp-control-gallery-items-remove{position:absolute;top:-5px;right:-5px;width:20px;height:20px;color:#fff;cursor:pointer;visibility:hidden;background-color:#dc3232;border-radius:50%;opacity:0;transition:.15s visibility, .15s opacity}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-img .vp-control-gallery-items-remove span{width:20px;height:20px;font-size:10px;line-height:20px}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-img:hover .vp-control-gallery-items-remove{visibility:visible;opacity:1}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-img.active{box-shadow:0 0 0 1px #fff, 0 0 0 4px #33b3db}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-add{display:flex;align-items:center;justify-content:center;box-sizing:border-box;color:#6c7781;text-align:center;cursor:pointer;background-color:#fff;border:1px solid #ccd3da;border-radius:3px}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-add>span{position:absolute;top:50%;left:50%;width:24px;height:24px;margin-top:-12px;margin-left:-12px;line-height:24px}.vp-control-gallery .vp-control-gallery-items>.vp-control-gallery-items-add:hover{color:#555;background-color:#f7f7f7}.vp-input{width:100%}.post-type-vp_lists .CodeMirror{width:100%;text-align:left;border:1px solid #ddd}.post-type-vp_lists .CodeMirror .CodeMirror-matchingbracket{color:inherit;background:rgba(255,150,0,0.3)}.post-type-vp_lists [class*="CodeMirror-lint-message"],.post-type-vp_lists .CodeMirror-lint-marker-multiple,.post-type-vp_lists [class*="CodeMirror-lint-marker"]{background-image:none}.post-type-vp_lists .CodeMirror-lint-marker-error,.post-type-vp_lists .CodeMirror-lint-marker-warning{cursor:help}.post-type-vp_lists .CodeMirror-lint-marker-multiple{position:absolute;top:0}.post-type-vp_lists [class*="CodeMirror-lint-marker"]::before{position:relative;top:-2px;font:400 18px/1 dashicons}.post-type-vp_lists [class*="CodeMirror-lint-message"]::before{position:absolute;left:16px;font:400 16px/1 dashicons}.post-type-vp_lists .CodeMirror-lint-message-error,.post-type-vp_lists .CodeMirror-lint-message-warning{padding:3px 12px 3px 28px;margin:5px 0 2px;box-shadow:0 1px 1px 0 rgba(0,0,0,0.1)}.post-type-vp_lists .CodeMirror-lint-message-warning{background-color:#fff8e5;border-left:4px solid #ffb900}.post-type-vp_lists .CodeMirror-lint-message-warning::before,.post-type-vp_lists .CodeMirror-lint-marker-warning::before{content:"\f534";color:#f6a306}.post-type-vp_lists .CodeMirror-lint-message-error{background-color:#fbeaea;border-left:4px solid #dc3232}.post-type-vp_lists .CodeMirror-lint-message-error::before,.post-type-vp_lists .CodeMirror-lint-marker-error::before{content:"\f153";color:#dc3232}.post-type-vp_lists .CodeMirror-lint-tooltip{background:0 0;border:none;border-radius:0;direction:ltr}.post-type-vp_lists .CodeMirror-resizer{display:none;display:flex;align-items:center;justify-content:center;width:100%;height:20px;margin-top:-2px;font-size:13px;cursor:row-resize;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#fbfbfb}.post-type-vp_lists .CodeMirror-resizer::before{content:"\2261";position:absolute;left:50%;color:#999}.post-type-vp_lists .CodeMirror-resizer:hover{background:#f7f7f7}.post-type-vp_lists .CodeMirror-resizer:hover::before{color:#000}.post-type-vp_lists .CodeMirror ~ .CodeMirror-resizer{display:block}@media (max-width: 850px){.vp-steps__right,.vp-steps__step{float:none;width:100%}}.post-type-vp_lists #slugdiv,.post-type-vp_lists #postcustom{display:none}
|
1 |
/*!
|
2 |
* Name : Visual Portfolio
|
3 |
+
* Version : @@plugin_version
|
4 |
* Author : nK https://nkdev.info
|
5 |
+
*/.dashicons-visual-portfolio,.dashicons-visual-portfolio-gray,.mce-widget .mce-i-visual-portfolio{background-image:url("../images/icon.svg");background-repeat:no-repeat;background-position:center center;background-size:15px;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}.dashicons-visual-portfolio-gray,.mce-i-visual-portfolio-gray{background-image:url("../images/icon-gray.svg")}.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-vc.png");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:flex;-webkit-box-flex:0;flex:0 1 auto;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row;flex-wrap:wrap;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;flex:0 0 auto;box-sizing:border-box;padding-right:15px;padding-left:15px}.vp-col-1{flex-basis:8.33333%;max-width:8.33333%}.vp-col-2{flex-basis:16.66667%;max-width:16.66667%}.vp-col-3{flex-basis:25%;max-width:25%}.vp-col-4{flex-basis:33.33333%;max-width:33.33333%}.vp-col-5{flex-basis:41.66667%;max-width:41.66667%}.vp-col-6{flex-basis:50%;max-width:50%}.vp-col-7{flex-basis:58.33333%;max-width:58.33333%}.vp-col-8{flex-basis:66.66667%;max-width:66.66667%}.vp-col-9{flex-basis:75%;max-width:75%}.vp-col-10{flex-basis:83.33333%;max-width:83.33333%}.vp-col-11{flex-basis:91.66667%;max-width:91.66667%}.vp-col-12{flex-basis:100%;max-width:100%}.vp-col-clearfix{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;vertical-align:top;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}.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;vertical-align:top;-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_shortcode{width:250px}@media screen and (max-width: 782px){.wp-list-table th.column-portfolio_post_thumbs{display:none}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-portfolio_post_thumbs{float:left;width:70px !important;min-width:70px}.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}}.vp-portfolio-list .vp-portfolio-list__icon span{display:block;width:120px;height:120px;margin:0 auto;margin-top:60px;background-size:105px}.vp-portfolio-list .vp-portfolio-list__text{text-align:center}.vp-portfolio-list .vp-portfolio-list__text p{margin-top:30px;margin-bottom:30px;font-size:15px;font-weight:500;color:#8e8e8e}.vp-portfolio-list .vp-portfolio-list__text .button-hero{display:inline-block}
|
assets/admin/js/gutenberg-block.min.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
!function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},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,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=179)}([function(t,n,e){var r=e(1),o=e(7),i=e(14),u=e(11),a=e(17),c=function(t,n,e){var f,s,l,p,h=t&c.F,d=t&c.G,v=t&c.S,y=t&c.P,g=t&c.B,m=d?r:v?r[n]||(r[n]={}):(r[n]||{}).prototype,b=d?o:o[n]||(o[n]={}),w=b.prototype||(b.prototype={});for(f in d&&(e=n),e)l=((s=!h&&m&&void 0!==m[f])?m:e)[f],p=g&&s?a(l,r):y&&"function"==typeof l?a(Function.call,l):l,m&&u(m,f,l,t&c.U),b[f]!=l&&i(b,f,p),y&&w[f]!=l&&(w[f]=l)};r.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,e){var r=e(4);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){var r=e(62)("wks"),o=e(32),i=e(1).Symbol,u="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=r},function(t,n,e){var r=e(19),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,n){var e=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=e)},function(t,n,e){var r=e(3),o=e(117),i=e(28),u=Object.defineProperty;n.f=e(9)?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return u(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){t.exports=!e(2)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(25);t.exports=function(t){return Object(r(t))}},function(t,n,e){var r=e(1),o=e(14),i=e(13),u=e(32)("src"),a=e(185),c=(""+a).split("toString");e(7).inspectSource=function(t){return a.call(t)},(t.exports=function(t,n,e,a){var f="function"==typeof e;f&&(i(e,"name")||o(e,"name",n)),t[n]!==e&&(f&&(i(e,u)||o(e,u,t[n]?""+t[n]:c.join(String(n)))),t===r?t[n]=e:a?t[n]?t[n]=e:o(t,n,e):(delete t[n],o(t,n,e)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[u]||a.call(this)})},function(t,n,e){var r=e(0),o=e(2),i=e(25),u=/"/g,a=function(t,n,e,r){var o=String(i(t)),a="<"+n;return""!==e&&(a+=" "+e+'="'+String(r).replace(u,""")+'"'),a+">"+o+"</"+n+">"};t.exports=function(t,n){var e={};e[t]=n(a),r(r.P+r.F*o(function(){var n=""[t]('"');return n!==n.toLowerCase()||n.split('"').length>3}),"String",e)}},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){var r=e(8),o=e(31);t.exports=e(9)?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){var r=e(55),o=e(25);t.exports=function(t){return r(o(t))}},function(t,n,e){"use strict";var r=e(2);t.exports=function(t,n){return!!t&&r(function(){n?t.call(null,function(){},1):t.call(null)})}},function(t,n,e){var r=e(18);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n,e){var r=e(56),o=e(31),i=e(15),u=e(28),a=e(13),c=e(117),f=Object.getOwnPropertyDescriptor;n.f=e(9)?f:function(t,n){if(t=i(t),n=u(n,!0),c)try{return f(t,n)}catch(t){}if(a(t,n))return o(!r.f.call(t,n),t[n])}},function(t,n,e){var r=e(0),o=e(7),i=e(2);t.exports=function(t,n){var e=(o.Object||{})[t]||Object[t],u={};u[t]=n(e),r(r.S+r.F*i(function(){e(1)}),"Object",u)}},function(t,n,e){var r=e(17),o=e(55),i=e(10),u=e(6),a=e(133);t.exports=function(t,n){var e=1==t,c=2==t,f=3==t,s=4==t,l=6==t,p=5==t||l,h=n||a;return function(n,a,d){for(var v,y,g=i(n),m=o(g),b=r(a,d,3),w=u(m.length),x=0,S=e?h(n,w):c?h(n,0):void 0;w>x;x++)if((p||x in m)&&(y=b(v=m[x],x,g),t))if(e)S[x]=y;else if(y)switch(t){case 3:return!0;case 5:return v;case 6:return x;case 2:S.push(v)}else if(s)return!1;return l?-1:f||s?s:S}}},function(t,n){var e=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=e)},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,e){"use strict";if(e(9)){var r=e(33),o=e(1),i=e(2),u=e(0),a=e(73),c=e(102),f=e(17),s=e(49),l=e(31),p=e(14),h=e(50),d=e(19),v=e(6),y=e(144),g=e(35),m=e(28),b=e(13),w=e(57),x=e(4),S=e(10),_=e(94),O=e(36),E=e(38),M=e(37).f,P=e(96),T=e(32),F=e(5),I=e(22),j=e(63),A=e(58),k=e(98),N=e(47),R=e(66),L=e(48),C=e(97),z=e(135),W=e(8),D=e(20),V=W.f,B=D.f,U=o.RangeError,G=o.TypeError,H=o.Uint8Array,q=Array.prototype,Y=c.ArrayBuffer,J=c.DataView,K=I(0),X=I(2),$=I(3),Q=I(4),Z=I(5),tt=I(6),nt=j(!0),et=j(!1),rt=k.values,ot=k.keys,it=k.entries,ut=q.lastIndexOf,at=q.reduce,ct=q.reduceRight,ft=q.join,st=q.sort,lt=q.slice,pt=q.toString,ht=q.toLocaleString,dt=F("iterator"),vt=F("toStringTag"),yt=T("typed_constructor"),gt=T("def_constructor"),mt=a.CONSTR,bt=a.TYPED,wt=a.VIEW,xt=I(1,function(t,n){return Mt(A(t,t[gt]),n)}),St=i(function(){return 1===new H(new Uint16Array([1]).buffer)[0]}),_t=!!H&&!!H.prototype.set&&i(function(){new H(1).set({})}),Ot=function(t,n){var e=d(t);if(e<0||e%n)throw U("Wrong offset!");return e},Et=function(t){if(x(t)&&bt in t)return t;throw G(t+" is not a typed array!")},Mt=function(t,n){if(!(x(t)&&yt in t))throw G("It is not a typed array constructor!");return new t(n)},Pt=function(t,n){return Tt(A(t,t[gt]),n)},Tt=function(t,n){for(var e=0,r=n.length,o=Mt(t,r);r>e;)o[e]=n[e++];return o},Ft=function(t,n,e){V(t,n,{get:function(){return this._d[e]}})},It=function(t){var n,e,r,o,i,u,a=S(t),c=arguments.length,s=c>1?arguments[1]:void 0,l=void 0!==s,p=P(a);if(null!=p&&!_(p)){for(u=p.call(a),r=[],n=0;!(i=u.next()).done;n++)r.push(i.value);a=r}for(l&&c>2&&(s=f(s,arguments[2],2)),n=0,e=v(a.length),o=Mt(this,e);e>n;n++)o[n]=l?s(a[n],n):a[n];return o},jt=function(){for(var t=0,n=arguments.length,e=Mt(this,n);n>t;)e[t]=arguments[t++];return e},At=!!H&&i(function(){ht.call(new H(1))}),kt=function(){return ht.apply(At?lt.call(Et(this)):Et(this),arguments)},Nt={copyWithin:function(t,n){return z.call(Et(this),t,n,arguments.length>2?arguments[2]:void 0)},every:function(t){return Q(Et(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return C.apply(Et(this),arguments)},filter:function(t){return Pt(this,X(Et(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Z(Et(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(Et(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){K(Et(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return et(Et(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return nt(Et(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ft.apply(Et(this),arguments)},lastIndexOf:function(t){return ut.apply(Et(this),arguments)},map:function(t){return xt(Et(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return at.apply(Et(this),arguments)},reduceRight:function(t){return ct.apply(Et(this),arguments)},reverse:function(){for(var t,n=Et(this).length,e=Math.floor(n/2),r=0;r<e;)t=this[r],this[r++]=this[--n],this[n]=t;return this},some:function(t){return $(Et(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return st.call(Et(this),t)},subarray:function(t,n){var e=Et(this),r=e.length,o=g(t,r);return new(A(e,e[gt]))(e.buffer,e.byteOffset+o*e.BYTES_PER_ELEMENT,v((void 0===n?r:g(n,r))-o))}},Rt=function(t,n){return Pt(this,lt.call(Et(this),t,n))},Lt=function(t){Et(this);var n=Ot(arguments[1],1),e=this.length,r=S(t),o=v(r.length),i=0;if(o+n>e)throw U("Wrong length!");for(;i<o;)this[n+i]=r[i++]},Ct={entries:function(){return it.call(Et(this))},keys:function(){return ot.call(Et(this))},values:function(){return rt.call(Et(this))}},zt=function(t,n){return x(t)&&t[bt]&&"symbol"!=typeof n&&n in t&&String(+n)==String(n)},Wt=function(t,n){return zt(t,n=m(n,!0))?l(2,t[n]):B(t,n)},Dt=function(t,n,e){return!(zt(t,n=m(n,!0))&&x(e)&&b(e,"value"))||b(e,"get")||b(e,"set")||e.configurable||b(e,"writable")&&!e.writable||b(e,"enumerable")&&!e.enumerable?V(t,n,e):(t[n]=e.value,t)};mt||(D.f=Wt,W.f=Dt),u(u.S+u.F*!mt,"Object",{getOwnPropertyDescriptor:Wt,defineProperty:Dt}),i(function(){pt.call({})})&&(pt=ht=function(){return ft.call(this)});var Vt=h({},Nt);h(Vt,Ct),p(Vt,dt,Ct.values),h(Vt,{slice:Rt,set:Lt,constructor:function(){},toString:pt,toLocaleString:kt}),Ft(Vt,"buffer","b"),Ft(Vt,"byteOffset","o"),Ft(Vt,"byteLength","l"),Ft(Vt,"length","e"),V(Vt,vt,{get:function(){return this[bt]}}),t.exports=function(t,n,e,c){var f=t+((c=!!c)?"Clamped":"")+"Array",l="get"+t,h="set"+t,d=o[f],g=d||{},m=d&&E(d),b=!d||!a.ABV,S={},_=d&&d.prototype,P=function(t,e){V(t,e,{get:function(){return function(t,e){var r=t._d;return r.v[l](e*n+r.o,St)}(this,e)},set:function(t){return function(t,e,r){var o=t._d;c&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),o.v[h](e*n+o.o,r,St)}(this,e,t)},enumerable:!0})};b?(d=e(function(t,e,r,o){s(t,d,f,"_d");var i,u,a,c,l=0,h=0;if(x(e)){if(!(e instanceof Y||"ArrayBuffer"==(c=w(e))||"SharedArrayBuffer"==c))return bt in e?Tt(d,e):It.call(d,e);i=e,h=Ot(r,n);var g=e.byteLength;if(void 0===o){if(g%n)throw U("Wrong length!");if((u=g-h)<0)throw U("Wrong length!")}else if((u=v(o)*n)+h>g)throw U("Wrong length!");a=u/n}else a=y(e),i=new Y(u=a*n);for(p(t,"_d",{b:i,o:h,l:u,e:a,v:new J(i)});l<a;)P(t,l++)}),_=d.prototype=O(Vt),p(_,"constructor",d)):i(function(){d(1)})&&i(function(){new d(-1)})&&R(function(t){new d,new d(null),new d(1.5),new d(t)},!0)||(d=e(function(t,e,r,o){var i;return s(t,d,f),x(e)?e instanceof Y||"ArrayBuffer"==(i=w(e))||"SharedArrayBuffer"==i?void 0!==o?new g(e,Ot(r,n),o):void 0!==r?new g(e,Ot(r,n)):new g(e):bt in e?Tt(d,e):It.call(d,e):new g(y(e))}),K(m!==Function.prototype?M(g).concat(M(m)):M(g),function(t){t in d||p(d,t,g[t])}),d.prototype=_,r||(_.constructor=d));var T=_[dt],F=!!T&&("values"==T.name||null==T.name),I=Ct.values;p(d,yt,!0),p(_,bt,f),p(_,wt,!0),p(_,gt,d),(c?new d(1)[vt]==f:vt in _)||V(_,vt,{get:function(){return f}}),S[f]=d,u(u.G+u.W+u.F*(d!=g),S),u(u.S,f,{BYTES_PER_ELEMENT:n}),u(u.S+u.F*i(function(){g.of.call(d,1)}),f,{from:It,of:jt}),"BYTES_PER_ELEMENT"in _||p(_,"BYTES_PER_ELEMENT",n),u(u.P,f,Nt),L(f),u(u.P+u.F*_t,f,{set:Lt}),u(u.P+u.F*!F,f,Ct),r||_.toString==pt||(_.toString=pt),u(u.P+u.F*i(function(){new d(1).slice()}),f,{slice:Rt}),u(u.P+u.F*(i(function(){return[1,2].toLocaleString()!=new d([1,2]).toLocaleString()})||!i(function(){_.toLocaleString.call([1,2])})),f,{toLocaleString:kt}),N[f]=F?T:I,r||F||p(_,dt,I)}}else t.exports=function(){}},function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n,e){var r=e(4);t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n,e){var r=e(32)("meta"),o=e(4),i=e(13),u=e(8).f,a=0,c=Object.isExtensible||function(){return!0},f=!e(2)(function(){return c(Object.preventExtensions({}))}),s=function(t){u(t,r,{value:{i:"O"+ ++a,w:{}}})},l=t.exports={KEY:r,NEED:!1,fastKey:function(t,n){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!c(t))return"F";if(!n)return"E";s(t)}return t[r].i},getWeak:function(t,n){if(!i(t,r)){if(!c(t))return!0;if(!n)return!1;s(t)}return t[r].w},onFreeze:function(t){return f&&l.NEED&&c(t)&&!i(t,r)&&s(t),t}}},,function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n){t.exports=!1},function(t,n,e){var r=e(119),o=e(81);t.exports=Object.keys||function(t){return r(t,o)}},function(t,n,e){var r=e(19),o=Math.max,i=Math.min;t.exports=function(t,n){return(t=r(t))<0?o(t+n,0):i(t,n)}},function(t,n,e){var r=e(3),o=e(120),i=e(81),u=e(80)("IE_PROTO"),a=function(){},c=function(){var t,n=e(78)("iframe"),r=i.length;for(n.style.display="none",e(82).appendChild(n),n.src="javascript:",(t=n.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[i[r]];return c()};t.exports=Object.create||function(t,n){var e;return null!==t?(a.prototype=r(t),e=new a,a.prototype=null,e[u]=t):e=c(),void 0===n?e:o(e,n)}},function(t,n,e){var r=e(119),o=e(81).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,n,e){var r=e(13),o=e(10),i=e(80)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,e){var r=e(5)("unscopables"),o=Array.prototype;null==o[r]&&e(14)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,n,e){var r=e(4);t.exports=function(t,n){if(!r(t)||t._t!==n)throw TypeError("Incompatible receiver, "+n+" required!");return t}},function(t,n,e){var r=e(27),o=e(23),i=e(148),u=e(51),a=e(44),c=function(t,n,e){var f,s,l,p=t&c.F,h=t&c.G,d=t&c.S,v=t&c.P,y=t&c.B,g=t&c.W,m=h?o:o[n]||(o[n]={}),b=m.prototype,w=h?r:d?r[n]:(r[n]||{}).prototype;for(f in h&&(e=n),e)(s=!p&&w&&void 0!==w[f])&&a(m,f)||(l=s?w[f]:e[f],m[f]=h&&"function"!=typeof w[f]?e[f]:y&&s?i(l,r):g&&w[f]==l?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n.prototype=t.prototype,n}(l):v&&"function"==typeof l?i(Function.call,l):l,v&&((m.virtual||(m.virtual={}))[f]=l,t&c.R&&b&&!b[f]&&u(b,f,l)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,n,e){var r=e(59),o=e(149),i=e(103),u=Object.defineProperty;n.f=e(43)?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return u(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){t.exports=!e(60)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){var r=e(8).f,o=e(13),i=e(5)("toStringTag");t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},function(t,n,e){var r=e(0),o=e(25),i=e(2),u=e(84),a="["+u+"]",c=RegExp("^"+a+a+"*"),f=RegExp(a+a+"*$"),s=function(t,n,e){var o={},a=i(function(){return!!u[t]()||"
"!="
"[t]()}),c=o[t]=a?n(l):u[t];e&&(o[e]=c),r(r.P+r.F*a,"String",o)},l=s.trim=function(t,n){return t=String(o(t)),1&n&&(t=t.replace(c,"")),2&n&&(t=t.replace(f,"")),t};t.exports=s},function(t,n){t.exports={}},function(t,n,e){"use strict";var r=e(1),o=e(8),i=e(9),u=e(5)("species");t.exports=function(t){var n=r[t];i&&n&&!n[u]&&o.f(n,u,{configurable:!0,get:function(){return this}})}},function(t,n){t.exports=function(t,n,e,r){if(!(t instanceof n)||void 0!==r&&r in t)throw TypeError(e+": incorrect invocation!");return t}},function(t,n,e){var r=e(11);t.exports=function(t,n,e){for(var o in n)r(t,o,n[o],e);return t}},function(t,n,e){var r=e(42),o=e(74);t.exports=e(43)?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){var r=e(373),o=e(104);t.exports=function(t){return r(o(t))}},function(t,n,e){var r=e(106)("wks"),o=e(76),i=e(27).Symbol,u="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=r},function(t,n,e){var r=e(24);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){var r=e(24),o=e(5)("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var n,e,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(n=Object(t),o))?e:i?r(n):"Object"==(u=r(n))&&"function"==typeof n.callee?"Arguments":u}},function(t,n,e){var r=e(3),o=e(18),i=e(5)("species");t.exports=function(t,n){var e,u=r(t).constructor;return void 0===u||null==(e=r(u)[i])?n:o(e)}},function(t,n,e){var r=e(52);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n){t.exports=React},function(t,n,e){var r=e(7),o=e(1),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,n){return i[t]||(i[t]=void 0!==n?n:{})})("versions",[]).push({version:r.version,mode:e(33)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,n,e){var r=e(15),o=e(6),i=e(35);t.exports=function(t){return function(n,e,u){var a,c=r(n),f=o(c.length),s=i(u,f);if(t&&e!=e){for(;f>s;)if((a=c[s++])!=a)return!0}else for(;f>s;s++)if((t||s in c)&&c[s]===e)return t||s||0;return!t&&-1}}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){var r=e(24);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){var r=e(5)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,n){if(!n&&!o)return!1;var e=!1;try{var i=[7],u=i[r]();u.next=function(){return{done:e=!0}},i[r]=function(){return u},t(i)}catch(t){}return e}},function(t,n,e){"use strict";var r=e(3);t.exports=function(){var t=r(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},function(t,n,e){"use strict";var r=e(57),o=RegExp.prototype.exec;t.exports=function(t,n){var e=t.exec;if("function"==typeof e){var i=e.call(t,n);if("object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,n)}},function(t,n,e){"use strict";e(137);var r=e(11),o=e(14),i=e(2),u=e(25),a=e(5),c=e(99),f=a("species"),s=!i(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),l=function(){var t=/(?:)/,n=t.exec;t.exec=function(){return n.apply(this,arguments)};var e="ab".split(t);return 2===e.length&&"a"===e[0]&&"b"===e[1]}();t.exports=function(t,n,e){var p=a(t),h=!i(function(){var n={};return n[p]=function(){return 7},7!=""[t](n)}),d=h?!i(function(){var n=!1,e=/a/;return e.exec=function(){return n=!0,null},"split"===t&&(e.constructor={},e.constructor[f]=function(){return e}),e[p](""),!n}):void 0;if(!h||!d||"replace"===t&&!s||"split"===t&&!l){var v=/./[p],y=e(u,p,""[t],function(t,n,e,r,o){return n.exec===c?h&&!o?{done:!0,value:v.call(n,e,r)}:{done:!0,value:t.call(e,n,r)}:{done:!1}}),g=y[0],m=y[1];r(String.prototype,t,g),o(RegExp.prototype,p,2==n?function(t,n){return m.call(t,this,n)}:function(t){return m.call(t,this)})}}},function(t,n,e){var r=e(17),o=e(132),i=e(94),u=e(3),a=e(6),c=e(96),f={},s={};(n=t.exports=function(t,n,e,l,p){var h,d,v,y,g=p?function(){return t}:c(t),m=r(e,l,n?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(i(g)){for(h=a(t.length);h>b;b++)if((y=n?m(u(d=t[b])[0],d[1]):m(t[b]))===f||y===s)return y}else for(v=g.call(t);!(d=v.next()).done;)if((y=o(v,m,d.value,n))===f||y===s)return y}).BREAK=f,n.RETURN=s},function(t,n,e){var r=e(1).navigator;t.exports=r&&r.userAgent||""},function(t,n,e){"use strict";var r=e(1),o=e(0),i=e(11),u=e(50),a=e(29),c=e(70),f=e(49),s=e(4),l=e(2),p=e(66),h=e(45),d=e(85);t.exports=function(t,n,e,v,y,g){var m=r[t],b=m,w=y?"set":"add",x=b&&b.prototype,S={},_=function(t){var n=x[t];i(x,t,"delete"==t?function(t){return!(g&&!s(t))&&n.call(this,0===t?0:t)}:"has"==t?function(t){return!(g&&!s(t))&&n.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!s(t)?void 0:n.call(this,0===t?0:t)}:"add"==t?function(t){return n.call(this,0===t?0:t),this}:function(t,e){return n.call(this,0===t?0:t,e),this})};if("function"==typeof b&&(g||x.forEach&&!l(function(){(new b).entries().next()}))){var O=new b,E=O[w](g?{}:-0,1)!=O,M=l(function(){O.has(1)}),P=p(function(t){new b(t)}),T=!g&&l(function(){for(var t=new b,n=5;n--;)t[w](n,n);return!t.has(-0)});P||((b=n(function(n,e){f(n,b,t);var r=d(new m,n,b);return null!=e&&c(e,y,r[w],r),r})).prototype=x,x.constructor=b),(M||T)&&(_("delete"),_("has"),y&&_("get")),(T||E)&&_(w),g&&x.clear&&delete x.clear}else b=v.getConstructor(n,t,y,w),u(b.prototype,e),a.NEED=!0;return h(b,t),S[t]=b,o(o.G+o.W+o.F*(b!=m),S),g||v.setStrong(b,t,y),b}},function(t,n,e){for(var r,o=e(1),i=e(14),u=e(32),a=u("typed_array"),c=u("view"),f=!(!o.ArrayBuffer||!o.DataView),s=f,l=0,p="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");l<9;)(r=o[p[l++]])?(i(r.prototype,a,!0),i(r.prototype,c,!0)):s=!1;t.exports={ABV:f,CONSTR:s,TYPED:a,VIEW:c}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){t.exports=!0},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n,e){var r=e(4),o=e(1).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n,e){n.f=e(5)},function(t,n,e){var r=e(62)("keys"),o=e(32);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,e){var r=e(1).document;t.exports=r&&r.documentElement},function(t,n,e){var r=e(4),o=e(3),i=function(t,n){if(o(t),!r(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,r){try{(r=e(17)(Function.call,e(20).f(Object.prototype,"__proto__").set,2))(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,e){return i(t,e),n?t.__proto__=e:r(t,e),t}}({},!1):void 0),check:i}},function(t,n){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(t,n,e){var r=e(4),o=e(83).set;t.exports=function(t,n,e){var i,u=n.constructor;return u!==e&&"function"==typeof u&&(i=u.prototype)!==e.prototype&&r(i)&&o&&o(t,i),t}},function(t,n,e){"use strict";var r=e(19),o=e(25);t.exports=function(t){var n=String(o(this)),e="",i=r(t);if(i<0||i==1/0)throw RangeError("Count can't be negative");for(;i>0;(i>>>=1)&&(n+=n))1&i&&(e+=n);return e}},function(t,n){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,n){var e=Math.expm1;t.exports=!e||e(10)>22025.465794806718||e(10)<22025.465794806718||-2e-17!=e(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:e},function(t,n,e){var r=e(19),o=e(25);t.exports=function(t){return function(n,e){var i,u,a=String(o(n)),c=r(e),f=a.length;return c<0||c>=f?t?"":void 0:(i=a.charCodeAt(c))<55296||i>56319||c+1===f||(u=a.charCodeAt(c+1))<56320||u>57343?t?a.charAt(c):i:t?a.slice(c,c+2):u-56320+(i-55296<<10)+65536}}},function(t,n,e){"use strict";var r=e(33),o=e(0),i=e(11),u=e(14),a=e(47),c=e(131),f=e(45),s=e(38),l=e(5)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,n,e,d,v,y,g){c(e,n,d);var m,b,w,x=function(t){if(!p&&t in E)return E[t];switch(t){case"keys":case"values":return function(){return new e(this,t)}}return function(){return new e(this,t)}},S=n+" Iterator",_="values"==v,O=!1,E=t.prototype,M=E[l]||E["@@iterator"]||v&&E[v],P=M||x(v),T=v?_?x("entries"):P:void 0,F="Array"==n&&E.entries||M;if(F&&(w=s(F.call(new t)))!==Object.prototype&&w.next&&(f(w,S,!0),r||"function"==typeof w[l]||u(w,l,h)),_&&M&&"values"!==M.name&&(O=!0,P=function(){return M.call(this)}),r&&!g||!p&&!O&&E[l]||u(E,l,P),a[n]=P,a[S]=h,v)if(m={values:_?P:x("values"),keys:y?P:x("keys"),entries:T},g)for(b in m)b in E||i(E,b,m[b]);else o(o.P+o.F*(p||O),n,m);return m}},function(t,n,e){var r=e(92),o=e(25);t.exports=function(t,n,e){if(r(n))throw TypeError("String#"+e+" doesn't accept regex!");return String(o(t))}},function(t,n,e){var r=e(4),o=e(24),i=e(5)("match");t.exports=function(t){var n;return r(t)&&(void 0!==(n=t[i])?!!n:"RegExp"==o(t))}},function(t,n,e){var r=e(5)("match");t.exports=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[r]=!1,!"/./"[t](n)}catch(t){}}return!0}},function(t,n,e){var r=e(47),o=e(5)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,n,e){"use strict";var r=e(8),o=e(31);t.exports=function(t,n,e){n in t?r.f(t,n,o(0,e)):t[n]=e}},function(t,n,e){var r=e(57),o=e(5)("iterator"),i=e(47);t.exports=e(7).getIteratorMethod=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,n,e){"use strict";var r=e(10),o=e(35),i=e(6);t.exports=function(t){for(var n=r(this),e=i(n.length),u=arguments.length,a=o(u>1?arguments[1]:void 0,e),c=u>2?arguments[2]:void 0,f=void 0===c?e:o(c,e);f>a;)n[a++]=t;return n}},function(t,n,e){"use strict";var r=e(39),o=e(136),i=e(47),u=e(15);t.exports=e(90)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,o(1)):o(0,"keys"==n?e:"values"==n?t[e]:[e,t[e]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,n,e){"use strict";var r,o,i=e(67),u=RegExp.prototype.exec,a=String.prototype.replace,c=u,f=(r=/a/,o=/b*/g,u.call(r,"a"),u.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),s=void 0!==/()??/.exec("")[1];(f||s)&&(c=function(t){var n,e,r,o,c=this;return s&&(e=new RegExp("^"+c.source+"$(?!\\s)",i.call(c))),f&&(n=c.lastIndex),r=u.call(c,t),f&&r&&(c.lastIndex=c.global?r.index+r[0].length:n),s&&r&&r.length>1&&a.call(r[0],e,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r}),t.exports=c},function(t,n,e){"use strict";var r=e(89)(!0);t.exports=function(t,n,e){return n+(e?r(t,n).length:1)}},function(t,n,e){var r,o,i,u=e(17),a=e(125),c=e(82),f=e(78),s=e(1),l=s.process,p=s.setImmediate,h=s.clearImmediate,d=s.MessageChannel,v=s.Dispatch,y=0,g={},m=function(){var t=+this;if(g.hasOwnProperty(t)){var n=g[t];delete g[t],n()}},b=function(t){m.call(t.data)};p&&h||(p=function(t){for(var n=[],e=1;arguments.length>e;)n.push(arguments[e++]);return g[++y]=function(){a("function"==typeof t?t:Function(t),n)},r(y),y},h=function(t){delete g[t]},"process"==e(24)(l)?r=function(t){l.nextTick(u(m,t,1))}:v&&v.now?r=function(t){v.now(u(m,t,1))}:d?(i=(o=new d).port2,o.port1.onmessage=b,r=u(i.postMessage,i,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts?(r=function(t){s.postMessage(t+"","*")},s.addEventListener("message",b,!1)):r="onreadystatechange"in f("script")?function(t){c.appendChild(f("script")).onreadystatechange=function(){c.removeChild(this),m.call(t)}}:function(t){setTimeout(u(m,t,1),0)}),t.exports={set:p,clear:h}},function(t,n,e){"use strict";var r=e(1),o=e(9),i=e(33),u=e(73),a=e(14),c=e(50),f=e(2),s=e(49),l=e(19),p=e(6),h=e(144),d=e(37).f,v=e(8).f,y=e(97),g=e(45),m="prototype",b="Wrong index!",w=r.ArrayBuffer,x=r.DataView,S=r.Math,_=r.RangeError,O=r.Infinity,E=w,M=S.abs,P=S.pow,T=S.floor,F=S.log,I=S.LN2,j=o?"_b":"buffer",A=o?"_l":"byteLength",k=o?"_o":"byteOffset";function N(t,n,e){var r,o,i,u=new Array(e),a=8*e-n-1,c=(1<<a)-1,f=c>>1,s=23===n?P(2,-24)-P(2,-77):0,l=0,p=t<0||0===t&&1/t<0?1:0;for((t=M(t))!=t||t===O?(o=t!=t?1:0,r=c):(r=T(F(t)/I),t*(i=P(2,-r))<1&&(r--,i*=2),(t+=r+f>=1?s/i:s*P(2,1-f))*i>=2&&(r++,i/=2),r+f>=c?(o=0,r=c):r+f>=1?(o=(t*i-1)*P(2,n),r+=f):(o=t*P(2,f-1)*P(2,n),r=0));n>=8;u[l++]=255&o,o/=256,n-=8);for(r=r<<n|o,a+=n;a>0;u[l++]=255&r,r/=256,a-=8);return u[--l]|=128*p,u}function R(t,n,e){var r,o=8*e-n-1,i=(1<<o)-1,u=i>>1,a=o-7,c=e-1,f=t[c--],s=127&f;for(f>>=7;a>0;s=256*s+t[c],c--,a-=8);for(r=s&(1<<-a)-1,s>>=-a,a+=n;a>0;r=256*r+t[c],c--,a-=8);if(0===s)s=1-u;else{if(s===i)return r?NaN:f?-O:O;r+=P(2,n),s-=u}return(f?-1:1)*r*P(2,s-n)}function L(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function C(t){return[255&t]}function z(t){return[255&t,t>>8&255]}function W(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function D(t){return N(t,52,8)}function V(t){return N(t,23,4)}function B(t,n,e){v(t[m],n,{get:function(){return this[e]}})}function U(t,n,e,r){var o=h(+e);if(o+n>t[A])throw _(b);var i=t[j]._b,u=o+t[k],a=i.slice(u,u+n);return r?a:a.reverse()}function G(t,n,e,r,o,i){var u=h(+e);if(u+n>t[A])throw _(b);for(var a=t[j]._b,c=u+t[k],f=r(+o),s=0;s<n;s++)a[c+s]=f[i?s:n-s-1]}if(u.ABV){if(!f(function(){w(1)})||!f(function(){new w(-1)})||f(function(){return new w,new w(1.5),new w(NaN),"ArrayBuffer"!=w.name})){for(var H,q=(w=function(t){return s(this,w),new E(h(t))})[m]=E[m],Y=d(E),J=0;Y.length>J;)(H=Y[J++])in w||a(w,H,E[H]);i||(q.constructor=w)}var K=new x(new w(2)),X=x[m].setInt8;K.setInt8(0,2147483648),K.setInt8(1,2147483649),!K.getInt8(0)&&K.getInt8(1)||c(x[m],{setInt8:function(t,n){X.call(this,t,n<<24>>24)},setUint8:function(t,n){X.call(this,t,n<<24>>24)}},!0)}else w=function(t){s(this,w,"ArrayBuffer");var n=h(t);this._b=y.call(new Array(n),0),this[A]=n},x=function(t,n,e){s(this,x,"DataView"),s(t,w,"DataView");var r=t[A],o=l(n);if(o<0||o>r)throw _("Wrong offset!");if(o+(e=void 0===e?r-o:p(e))>r)throw _("Wrong length!");this[j]=t,this[k]=o,this[A]=e},o&&(B(w,"byteLength","_l"),B(x,"buffer","_b"),B(x,"byteLength","_l"),B(x,"byteOffset","_o")),c(x[m],{getInt8:function(t){return U(this,1,t)[0]<<24>>24},getUint8:function(t){return U(this,1,t)[0]},getInt16:function(t){var n=U(this,2,t,arguments[1]);return(n[1]<<8|n[0])<<16>>16},getUint16:function(t){var n=U(this,2,t,arguments[1]);return n[1]<<8|n[0]},getInt32:function(t){return L(U(this,4,t,arguments[1]))},getUint32:function(t){return L(U(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return R(U(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return R(U(this,8,t,arguments[1]),52,8)},setInt8:function(t,n){G(this,1,t,C,n)},setUint8:function(t,n){G(this,1,t,C,n)},setInt16:function(t,n){G(this,2,t,z,n,arguments[2])},setUint16:function(t,n){G(this,2,t,z,n,arguments[2])},setInt32:function(t,n){G(this,4,t,W,n,arguments[2])},setUint32:function(t,n){G(this,4,t,W,n,arguments[2])},setFloat32:function(t,n){G(this,4,t,V,n,arguments[2])},setFloat64:function(t,n){G(this,8,t,D,n,arguments[2])}});g(w,"ArrayBuffer"),g(x,"DataView"),a(x[m],u.VIEW,!0),n.ArrayBuffer=w,n.DataView=x},function(t,n,e){var r=e(52);t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,e){var r=e(106)("keys"),o=e(76);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,n,e){var r=e(23),o=e(27),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,n){return i[t]||(i[t]=void 0!==n?n:{})})("versions",[]).push({version:r.version,mode:e(75)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n){t.exports={}},function(t,n,e){var r=e(59),o=e(372),i=e(111),u=e(105)("IE_PROTO"),a=function(){},c=function(){var t,n=e(150)("iframe"),r=i.length;for(n.style.display="none",e(377).appendChild(n),n.src="javascript:",(t=n.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[i[r]];return c()};t.exports=Object.create||function(t,n){var e;return null!==t?(a.prototype=r(t),e=new a,a.prototype=null,e[u]=t):e=c(),void 0===n?e:o(e,n)}},function(t,n,e){var r=e(156),o=e(111);t.exports=Object.keys||function(t){return r(t,o)}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,e){var r=e(42).f,o=e(44),i=e(54)("toStringTag");t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},function(t,n,e){n.f=e(54)},function(t,n,e){var r=e(27),o=e(23),i=e(75),u=e(113),a=e(42).f;t.exports=function(t){var n=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||a(n,t,{value:u.f(t)})}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){"use strict";var r=e(61),o=e.n(r);function i(){return(i=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t}).apply(this,arguments)}var u=o.a.createElement("g",{fill:"#555D66"},o.a.createElement("path",{d:"M11.4 10.2H3V21h8.4V10.2zM21 15h-8.4v6H21v-6zM11.4 3H3v6h8.4V3zM21 3h-8.4v10.8H21V3z"}));n.a=function(t){return o.a.createElement("svg",i({width:24,height:24,viewBox:"0 0 24 24",fill:"none"},t),u)}},function(t,n,e){t.exports=!e(9)&&!e(2)(function(){return 7!=Object.defineProperty(e(78)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(1),o=e(7),i=e(33),u=e(79),a=e(8).f;t.exports=function(t){var n=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||a(n,t,{value:u.f(t)})}},function(t,n,e){var r=e(13),o=e(15),i=e(63)(!1),u=e(80)("IE_PROTO");t.exports=function(t,n){var e,a=o(t),c=0,f=[];for(e in a)e!=u&&r(a,e)&&f.push(e);for(;n.length>c;)r(a,e=n[c++])&&(~i(f,e)||f.push(e));return f}},function(t,n,e){var r=e(8),o=e(3),i=e(34);t.exports=e(9)?Object.defineProperties:function(t,n){o(t);for(var e,u=i(n),a=u.length,c=0;a>c;)r.f(t,e=u[c++],n[e]);return t}},function(t,n,e){var r=e(15),o=e(37).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return u.slice()}}(t):o(r(t))}},function(t,n,e){"use strict";var r=e(34),o=e(64),i=e(56),u=e(10),a=e(55),c=Object.assign;t.exports=!c||e(2)(function(){var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach(function(t){n[t]=t}),7!=c({},t)[e]||Object.keys(c({},n)).join("")!=r})?function(t,n){for(var e=u(t),c=arguments.length,f=1,s=o.f,l=i.f;c>f;)for(var p,h=a(arguments[f++]),d=s?r(h).concat(s(h)):r(h),v=d.length,y=0;v>y;)l.call(h,p=d[y++])&&(e[p]=h[p]);return e}:c},function(t,n){t.exports=Object.is||function(t,n){return t===n?0!==t||1/t==1/n:t!=t&&n!=n}},function(t,n,e){"use strict";var r=e(18),o=e(4),i=e(125),u=[].slice,a={};t.exports=Function.bind||function(t){var n=r(this),e=u.call(arguments,1),c=function(){var r=e.concat(u.call(arguments));return this instanceof c?function(t,n,e){if(!(n in a)){for(var r=[],o=0;o<n;o++)r[o]="a["+o+"]";a[n]=Function("F,a","return new F("+r.join(",")+")")}return a[n](t,e)}(n,r.length,r):i(n,r,t)};return o(n.prototype)&&(c.prototype=n.prototype),c}},function(t,n){t.exports=function(t,n,e){var r=void 0===e;switch(n.length){case 0:return r?t():t.call(e);case 1:return r?t(n[0]):t.call(e,n[0]);case 2:return r?t(n[0],n[1]):t.call(e,n[0],n[1]);case 3:return r?t(n[0],n[1],n[2]):t.call(e,n[0],n[1],n[2]);case 4:return r?t(n[0],n[1],n[2],n[3]):t.call(e,n[0],n[1],n[2],n[3])}return t.apply(e,n)}},function(t,n,e){var r=e(1).parseInt,o=e(46).trim,i=e(84),u=/^[-+]?0[xX]/;t.exports=8!==r(i+"08")||22!==r(i+"0x16")?function(t,n){var e=o(String(t),3);return r(e,n>>>0||(u.test(e)?16:10))}:r},function(t,n,e){var r=e(1).parseFloat,o=e(46).trim;t.exports=1/r(e(84)+"-0")!=-1/0?function(t){var n=o(String(t),3),e=r(n);return 0===e&&"-"==n.charAt(0)?-0:e}:r},function(t,n,e){var r=e(24);t.exports=function(t,n){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(n);return+t}},function(t,n,e){var r=e(4),o=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&o(t)===t}},function(t,n){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,n,e){"use strict";var r=e(36),o=e(31),i=e(45),u={};e(14)(u,e(5)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(u,{next:o(1,e)}),i(t,n+" Iterator")}},function(t,n,e){var r=e(3);t.exports=function(t,n,e,o){try{return o?n(r(e)[0],e[1]):n(e)}catch(n){var i=t.return;throw void 0!==i&&r(i.call(t)),n}}},function(t,n,e){var r=e(275);t.exports=function(t,n){return new(r(t))(n)}},function(t,n,e){var r=e(18),o=e(10),i=e(55),u=e(6);t.exports=function(t,n,e,a,c){r(n);var f=o(t),s=i(f),l=u(f.length),p=c?l-1:0,h=c?-1:1;if(e<2)for(;;){if(p in s){a=s[p],p+=h;break}if(p+=h,c?p<0:l<=p)throw TypeError("Reduce of empty array with no initial value")}for(;c?p>=0:l>p;p+=h)p in s&&(a=n(a,s[p],p,f));return a}},function(t,n,e){"use strict";var r=e(10),o=e(35),i=e(6);t.exports=[].copyWithin||function(t,n){var e=r(this),u=i(e.length),a=o(t,u),c=o(n,u),f=arguments.length>2?arguments[2]:void 0,s=Math.min((void 0===f?u:o(f,u))-c,u-a),l=1;for(c<a&&a<c+s&&(l=-1,c+=s-1,a+=s-1);s-- >0;)c in e?e[a]=e[c]:delete e[a],a+=l,c+=l;return e}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){"use strict";var r=e(99);e(0)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(t,n,e){e(9)&&"g"!=/./g.flags&&e(8).f(RegExp.prototype,"flags",{configurable:!0,get:e(67)})},function(t,n,e){"use strict";var r,o,i,u,a=e(33),c=e(1),f=e(17),s=e(57),l=e(0),p=e(4),h=e(18),d=e(49),v=e(70),y=e(58),g=e(101).set,m=e(295)(),b=e(140),w=e(296),x=e(71),S=e(141),_=c.TypeError,O=c.process,E=O&&O.versions,M=E&&E.v8||"",P=c.Promise,T="process"==s(O),F=function(){},I=o=b.f,j=!!function(){try{var t=P.resolve(1),n=(t.constructor={})[e(5)("species")]=function(t){t(F,F)};return(T||"function"==typeof PromiseRejectionEvent)&&t.then(F)instanceof n&&0!==M.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(t){}}(),A=function(t){var n;return!(!p(t)||"function"!=typeof(n=t.then))&&n},k=function(t,n){if(!t._n){t._n=!0;var e=t._c;m(function(){for(var r=t._v,o=1==t._s,i=0,u=function(n){var e,i,u,a=o?n.ok:n.fail,c=n.resolve,f=n.reject,s=n.domain;try{a?(o||(2==t._h&&L(t),t._h=1),!0===a?e=r:(s&&s.enter(),e=a(r),s&&(s.exit(),u=!0)),e===n.promise?f(_("Promise-chain cycle")):(i=A(e))?i.call(e,c,f):c(e)):f(r)}catch(t){s&&!u&&s.exit(),f(t)}};e.length>i;)u(e[i++]);t._c=[],t._n=!1,n&&!t._h&&N(t)})}},N=function(t){g.call(c,function(){var n,e,r,o=t._v,i=R(t);if(i&&(n=w(function(){T?O.emit("unhandledRejection",o,t):(e=c.onunhandledrejection)?e({promise:t,reason:o}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=T||R(t)?2:1),t._a=void 0,i&&n.e)throw n.v})},R=function(t){return 1!==t._h&&0===(t._a||t._c).length},L=function(t){g.call(c,function(){var n;T?O.emit("rejectionHandled",t):(n=c.onrejectionhandled)&&n({promise:t,reason:t._v})})},C=function(t){var n=this;n._d||(n._d=!0,(n=n._w||n)._v=t,n._s=2,n._a||(n._a=n._c.slice()),k(n,!0))},z=function(t){var n,e=this;if(!e._d){e._d=!0,e=e._w||e;try{if(e===t)throw _("Promise can't be resolved itself");(n=A(t))?m(function(){var r={_w:e,_d:!1};try{n.call(t,f(z,r,1),f(C,r,1))}catch(t){C.call(r,t)}}):(e._v=t,e._s=1,k(e,!1))}catch(t){C.call({_w:e,_d:!1},t)}}};j||(P=function(t){d(this,P,"Promise","_h"),h(t),r.call(this);try{t(f(z,this,1),f(C,this,1))}catch(t){C.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=e(50)(P.prototype,{then:function(t,n){var e=I(y(this,P));return e.ok="function"!=typeof t||t,e.fail="function"==typeof n&&n,e.domain=T?O.domain:void 0,this._c.push(e),this._a&&this._a.push(e),this._s&&k(this,!1),e.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=f(z,t,1),this.reject=f(C,t,1)},b.f=I=function(t){return t===P||t===u?new i(t):o(t)}),l(l.G+l.W+l.F*!j,{Promise:P}),e(45)(P,"Promise"),e(48)("Promise"),u=e(7).Promise,l(l.S+l.F*!j,"Promise",{reject:function(t){var n=I(this);return(0,n.reject)(t),n.promise}}),l(l.S+l.F*(a||!j),"Promise",{resolve:function(t){return S(a&&this===u?P:this,t)}}),l(l.S+l.F*!(j&&e(66)(function(t){P.all(t).catch(F)})),"Promise",{all:function(t){var n=this,e=I(n),r=e.resolve,o=e.reject,i=w(function(){var e=[],i=0,u=1;v(t,!1,function(t){var a=i++,c=!1;e.push(void 0),u++,n.resolve(t).then(function(t){c||(c=!0,e[a]=t,--u||r(e))},o)}),--u||r(e)});return i.e&&o(i.v),e.promise},race:function(t){var n=this,e=I(n),r=e.reject,o=w(function(){v(t,!1,function(t){n.resolve(t).then(e.resolve,r)})});return o.e&&r(o.v),e.promise}})},function(t,n,e){"use strict";var r=e(18);function o(t){var n,e;this.promise=new t(function(t,r){if(void 0!==n||void 0!==e)throw TypeError("Bad Promise constructor");n=t,e=r}),this.resolve=r(n),this.reject=r(e)}t.exports.f=function(t){return new o(t)}},function(t,n,e){var r=e(3),o=e(4),i=e(140);t.exports=function(t,n){if(r(t),o(n)&&n.constructor===t)return n;var e=i.f(t);return(0,e.resolve)(n),e.promise}},function(t,n,e){"use strict";var r=e(8).f,o=e(36),i=e(50),u=e(17),a=e(49),c=e(70),f=e(90),s=e(136),l=e(48),p=e(9),h=e(29).fastKey,d=e(40),v=p?"_s":"size",y=function(t,n){var e,r=h(n);if("F"!==r)return t._i[r];for(e=t._f;e;e=e.n)if(e.k==n)return e};t.exports={getConstructor:function(t,n,e,f){var s=t(function(t,r){a(t,s,n,"_i"),t._t=n,t._i=o(null),t._f=void 0,t._l=void 0,t[v]=0,null!=r&&c(r,e,t[f],t)});return i(s.prototype,{clear:function(){for(var t=d(this,n),e=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete e[r.i];t._f=t._l=void 0,t[v]=0},delete:function(t){var e=d(this,n),r=y(e,t);if(r){var o=r.n,i=r.p;delete e._i[r.i],r.r=!0,i&&(i.n=o),o&&(o.p=i),e._f==r&&(e._f=o),e._l==r&&(e._l=i),e[v]--}return!!r},forEach:function(t){d(this,n);for(var e,r=u(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.n:this._f;)for(r(e.v,e.k,this);e&&e.r;)e=e.p},has:function(t){return!!y(d(this,n),t)}}),p&&r(s.prototype,"size",{get:function(){return d(this,n)[v]}}),s},def:function(t,n,e){var r,o,i=y(t,n);return i?i.v=e:(t._l=i={i:o=h(n,!0),k:n,v:e,p:r=t._l,n:void 0,r:!1},t._f||(t._f=i),r&&(r.n=i),t[v]++,"F"!==o&&(t._i[o]=i)),t},getEntry:y,setStrong:function(t,n,e){f(t,n,function(t,e){this._t=d(t,n),this._k=e,this._l=void 0},function(){for(var t=this._k,n=this._l;n&&n.r;)n=n.p;return this._t&&(this._l=n=n?n.n:this._t._f)?s(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(this._t=void 0,s(1))},e?"entries":"values",!e,!0),l(n)}}},function(t,n,e){"use strict";var r=e(50),o=e(29).getWeak,i=e(3),u=e(4),a=e(49),c=e(70),f=e(22),s=e(13),l=e(40),p=f(5),h=f(6),d=0,v=function(t){return t._l||(t._l=new y)},y=function(){this.a=[]},g=function(t,n){return p(t.a,function(t){return t[0]===n})};y.prototype={get:function(t){var n=g(this,t);if(n)return n[1]},has:function(t){return!!g(this,t)},set:function(t,n){var e=g(this,t);e?e[1]=n:this.a.push([t,n])},delete:function(t){var n=h(this.a,function(n){return n[0]===t});return~n&&this.a.splice(n,1),!!~n}},t.exports={getConstructor:function(t,n,e,i){var f=t(function(t,r){a(t,f,n,"_i"),t._t=n,t._i=d++,t._l=void 0,null!=r&&c(r,e,t[i],t)});return r(f.prototype,{delete:function(t){if(!u(t))return!1;var e=o(t);return!0===e?v(l(this,n)).delete(t):e&&s(e,this._i)&&delete e[this._i]},has:function(t){if(!u(t))return!1;var e=o(t);return!0===e?v(l(this,n)).has(t):e&&s(e,this._i)}}),f},def:function(t,n,e){var r=o(i(n),!0);return!0===r?v(t).set(n,e):r[t._i]=e,t},ufstore:v}},function(t,n,e){var r=e(19),o=e(6);t.exports=function(t){if(void 0===t)return 0;var n=r(t),e=o(n);if(n!==e)throw RangeError("Wrong length!");return e}},function(t,n,e){var r=e(37),o=e(64),i=e(3),u=e(1).Reflect;t.exports=u&&u.ownKeys||function(t){var n=r.f(i(t)),e=o.f;return e?n.concat(e(t)):n}},function(t,n,e){var r=e(6),o=e(86),i=e(25);t.exports=function(t,n,e,u){var a=String(i(t)),c=a.length,f=void 0===e?" ":String(e),s=r(n);if(s<=c||""==f)return a;var l=s-c,p=o.call(f,Math.ceil(l/f.length));return p.length>l&&(p=p.slice(0,l)),u?p+a:a+p}},function(t,n,e){var r=e(34),o=e(15),i=e(56).f;t.exports=function(t){return function(n){for(var e,u=o(n),a=r(u),c=a.length,f=0,s=[];c>f;)i.call(u,e=a[f++])&&s.push(t?[e,u[e]]:u[e]);return s}}},function(t,n,e){var r=e(356);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},function(t,n,e){t.exports=!e(43)&&!e(60)(function(){return 7!=Object.defineProperty(e(150)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(52),o=e(27).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n,e){var r=e(104);t.exports=function(t){return Object(r(t))}},function(t,n,e){var r=e(44),o=e(151),i=e(105)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,e){"use strict";n.__esModule=!0;var r=u(e(367)),o=u(e(382)),i="function"==typeof o.default&&"symbol"==typeof r.default?function(t){return typeof t}:function(t){return t&&"function"==typeof o.default&&t.constructor===o.default&&t!==o.default.prototype?"symbol":typeof t};function u(t){return t&&t.__esModule?t:{default:t}}n.default="function"==typeof o.default&&"symbol"===i(r.default)?function(t){return void 0===t?"undefined":i(t)}:function(t){return t&&"function"==typeof o.default&&t.constructor===o.default&&t!==o.default.prototype?"symbol":void 0===t?"undefined":i(t)}},function(t,n,e){"use strict";var r=e(75),o=e(41),i=e(155),u=e(51),a=e(108),c=e(371),f=e(112),s=e(152),l=e(54)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,n,e,d,v,y,g){c(e,n,d);var m,b,w,x=function(t){if(!p&&t in E)return E[t];switch(t){case"keys":case"values":return function(){return new e(this,t)}}return function(){return new e(this,t)}},S=n+" Iterator",_="values"==v,O=!1,E=t.prototype,M=E[l]||E["@@iterator"]||v&&E[v],P=M||x(v),T=v?_?x("entries"):P:void 0,F="Array"==n&&E.entries||M;if(F&&(w=s(F.call(new t)))!==Object.prototype&&w.next&&(f(w,S,!0),r||"function"==typeof w[l]||u(w,l,h)),_&&M&&"values"!==M.name&&(O=!0,P=function(){return M.call(this)}),r&&!g||!p&&!O&&E[l]||u(E,l,P),a[n]=P,a[S]=h,v)if(m={values:_?P:x("values"),keys:y?P:x("keys"),entries:T},g)for(b in m)b in E||i(E,b,m[b]);else o(o.P+o.F*(p||O),n,m);return m}},function(t,n,e){t.exports=e(51)},function(t,n,e){var r=e(44),o=e(53),i=e(374)(!1),u=e(105)("IE_PROTO");t.exports=function(t,n){var e,a=o(t),c=0,f=[];for(e in a)e!=u&&r(a,e)&&f.push(e);for(;n.length>c;)r(a,e=n[c++])&&(~i(f,e)||f.push(e));return f}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){var r=e(156),o=e(111).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,n,e){var r=e(115),o=e(74),i=e(53),u=e(103),a=e(44),c=e(149),f=Object.getOwnPropertyDescriptor;n.f=e(43)?f:function(t,n){if(t=i(t),n=u(n,!0),c)try{return f(t,n)}catch(t){}if(a(t,n))return o(!r.f.call(t,n),t[n])}},,function(t,n,e){var r;
|
2 |
/*!
|
3 |
Copyright (c) 2017 Jed Watson.
|
4 |
Licensed under the MIT License (MIT), see
|
@@ -9,4 +9,4 @@
|
|
9 |
Licensed under the MIT License (MIT), see
|
10 |
http://jedwatson.github.io/classnames
|
11 |
*/
|
12 |
-
!function(){"use strict";var e=function(){function t(){}function n(t,n){for(var e=n.length,r=0;r<e;++r)o(t,n[r])}t.prototype=Object.create(null);var e={}.hasOwnProperty;var r=/\s+/;function o(t,o){if(o){var i=typeof o;"string"===i?function(t,n){for(var e=n.split(r),o=e.length,i=0;i<o;++i)t[e[i]]=!0}(t,o):Array.isArray(o)?n(t,o):"object"===i?function(t,n){for(var r in n)e.call(n,r)&&(t[r]=!!n[r])}(t,o):"number"===i&&function(t,n){t[n]=!0}(t,o)}}return function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];var i=new t;n(i,r);var u=[];for(var a in i)i[a]&&u.push(a);return u.join(" ")}}();t.exports?(e.default=e,t.exports=e):void 0===(r=function(){return e}.apply(n,[]))||(t.exports=r)}()},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=p(e(357)),o=p(e(361)),i=p(e(362)),u=p(e(366)),a=p(e(392)),c=p(e(61)),f=p(e(400)),s=p(e(403)),l=e(404);function p(t){return t&&t.__esModule?t:{default:t}}var h=function(t){function n(){var t,e,i,a;(0,o.default)(this,n);for(var c=arguments.length,f=Array(c),p=0;p<c;p++)f[p]=arguments[p];return e=i=(0,u.default)(this,(t=n.__proto__||(0,r.default)(n)).call.apply(t,[this].concat(f))),i.updateIframe=function(t){if(!t.src){var n=t.content||t.children;if(n){var e=i.refs.frame;if(e){var r=e.contentDocument;r&&("string"==typeof n?(r.open(),r.write(n),r.close()):(r.open(),r.write('<div id="iframe-root"></div>'),r.close(),s.default.render(n,r.getElementById("iframe-root"))))}}}},i.injectIframeResizerUrl=function(){if(i.props.iframeResizerUrl){var t=i.refs.frame;if(t){var n=t.contentDocument;if(n){var e=null;if(["head","HEAD","body","BODY","div","DIV"].forEach(function(t){if(!e){var r=n.getElementsByTagName(t);r&&r.length&&(e=r[0])}}),e){var r=document.createElement("script");r.type="text/javascript",r.src=i.props.iframeResizerUrl,e.appendChild(r)}else console.error("Unable to inject iframe resizer script")}}}},i.onLoad=function(){i.injectIframeResizerUrl()},i.resizeIframe=function(t){var n=i.refs.frame;n&&t.iframeResizerEnable&&(0,l.iframeResizer)(t.iframeResizerOptions,n)},a=e,(0,u.default)(i,a)}return(0,a.default)(n,t),(0,i.default)(n,[{key:"componentDidMount",value:function(){this.updateIframe(this.props),this.resizeIframe(this.props)}},{key:"componentWillUnmount",value:function(){var t=this.refs.frame.iFrameResizer;t&&t.removeListeners()}},{key:"componentWillReceiveProps",value:function(t){this.updateIframe(t),this.resizeIframe(t)}},{key:"render",value:function(){var t=this.props,n=t.src,e=t.id,r=t.frameBorder,o=t.className,i=t.style;return c.default.createElement("iframe",{ref:"frame",src:n,id:e,frameBorder:r,className:o,style:i,onLoad:this.onLoad})}}]),n}(c.default.Component);h.propTypes={content:f.default.oneOfType([f.default.string,f.default.element]),src:f.default.string,iframeResizerEnable:f.default.bool,iframeResizerOptions:f.default.object,iframeResizerUrl:f.default.oneOfType([f.default.string,f.default.bool]),id:f.default.string,frameBorder:f.default.number,className:f.default.string,style:f.default.object},h.defaultProps={iframeResizerEnable:!0,iframeResizerOptions:{},iframeResizerUrl:"https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/3.5.8/iframeResizer.contentWindow.min.js",frameBorder:0,style:{width:"100%",minHeight:20}},n.default=h},,,,,,,,,,,,,,,,function(t,n,e){t.exports=e(180)},function(t,n,e){"use strict";e.r(n),function(t){var n=e(162),r=e.n(n),o=e(163),i=e.n(o),u=e(116);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)}function c(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,n){return!n||"object"!==a(n)&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t,n){return(l=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}t._babelPolyfill||e(181);var p=window.VPAdminGutenbergVariables,h=wp.i18n.__,d=wp.element,v=d.Component,y=d.Fragment,g=d.RawHTML,m=wp.blocks.registerBlockType,b=wp.components,w=b.Placeholder,x=b.Spinner,S=b.SelectControl,_=wp.apiFetch,O=wp.data,E=O.registerStore,M=O.withSelect,P={apiFetch:function(t){return{type:"API_FETCH",request:t}},setPortfolioLayouts:function(t,n){return{type:"SET_PORTFOLIO_LAYOUTS",query:t,layouts:n}}};E("nk/visual-portfolio",{reducer:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{layouts:{}},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case"SET_PORTFOLIO_LAYOUTS":return!t.layouts[n.query]&&n.layouts&&(t.layouts[n.query]=n.layouts),t}return t},actions:P,selectors:{getPortfolioLayouts:function(t,n){return t.layouts[n]}},controls:{API_FETCH:function(t){var n=t.request;return _(n).catch(function(t){return!(!t||!t.error||"no_layouts_found"!==t.error_code)&&{response:[],error:!1,success:!0}}).then(function(t){return!!(t&&t.success&&t.response)&&t.response})}},resolvers:{getPortfolioLayouts:regeneratorRuntime.mark(function t(n){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,P.apiFetch({path:n});case 2:return e=t.sent,t.abrupt("return",P.setPortfolioLayouts(n,e));case 4:case"end":return t.stop()}},t)})}});var T=function(t){function n(){return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),f(this,s(n).apply(this,arguments))}var e,o,a;return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&l(t,n)}(n,v),e=n,(o=[{key:"shouldComponentUpdate",value:function(t){return this.props.attributes.id!==t.attributes.id||this.props.portfolioLayouts!==t.portfolioLayouts||this.props.className!==t.className}},{key:"render",value:function(){var t=this.props,n=t.portfolioLayouts,e=t.attributes,o=t.setAttributes,a=this.props.className,c=e.id,f=e.ghostkitClassname,s=!1,l=!1;f&&(a=r()(a,f)),n?(s=[{label:h("--- Select layout ---"),value:""}],Object.keys(n).map(function(t){var e=n[t];s.push({label:"#".concat(e.id," - ").concat(e.title),value:e.id}),c&&parseInt(c,10)===e.id&&(l=e.edit_url)})):c&&(s=[{label:"#".concat(c),value:c}]);var d=p.preview_url+(p.preview_url.split("?")[1]?"&":"?")+"vp_preview_frame=true&vp_preview_frame_id=".concat(c);return wp.element.createElement("div",{className:a},wp.element.createElement(w,{className:"visual-portfolio-gutenberg-placeholder",icon:wp.element.createElement(u.a,null),label:h("Visual Portfolio")},!Array.isArray(s)&&wp.element.createElement(x,null),Array.isArray(s)&&s.length&&wp.element.createElement(y,null,l&&wp.element.createElement("a",{href:l,target:"_blank"},h("Edit Layout")),wp.element.createElement(S,{value:c,onChange:function(t){return o({id:t})},options:s})),Array.isArray(s)&&!s.length&&h("No portfolio layouts found.")),c?wp.element.createElement("div",{className:"visual-portfolio-gutenberg-preview"},wp.element.createElement(i.a,{src:d,iframeResizerOptions:{resizedCallback:function(t){t.iframe&&jQuery(t.iframe).css("margin-bottom",-jQuery(t.iframe).height()/2)}}})):"")}}])&&c(e.prototype,o),a&&c(e,a),n}();m("nk/visual-portfolio",{title:"Visual Portfolio",icon:u.a,category:"common",keywords:["visual portfolio","vp","portfolio"],ghostkit:{supports:{spacings:!0,display:!0,scrollReveal:!0}},supports:{anchor:!0,className:!0,html:!1,align:["wide","full"]},attributes:{id:{type:"string"}},edit:M(function(t){return{portfolioLayouts:t("nk/visual-portfolio").getPortfolioLayouts("/visual-portfolio/v1/get_layouts/")}})(T),save:function(t){var n=t.attributes,e=n.id,r=n.className,o="[visual_portfolio";return e&&(o+=' id="'.concat(e,'"')),r&&(o+=' class="'.concat(r,'"')),o+="]",wp.element.createElement(g,null,o)},transforms:{from:[{type:"shortcode",tag:"visual_portfolio",attributes:{id:{type:"string",shortcode:function(t){return t.named.id}},className:{type:"string",shortcode:function(t){return t.named.class}}}}]}})}.call(this,e(77))},function(t,n,e){"use strict";e(182);var r,o=(r=e(354))&&r.__esModule?r:{default:r};o.default._babelPolyfill&&"undefined"!=typeof console&&console.warn&&console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning."),o.default._babelPolyfill=!0},function(t,n,e){"use strict";e(183),e(326),e(328),e(331),e(333),e(335),e(337),e(339),e(341),e(343),e(345),e(347),e(349),e(353)},function(t,n,e){e(184),e(187),e(188),e(189),e(190),e(191),e(192),e(193),e(194),e(195),e(196),e(197),e(198),e(199),e(200),e(201),e(202),e(203),e(204),e(205),e(206),e(207),e(208),e(209),e(210),e(211),e(212),e(213),e(214),e(215),e(216),e(217),e(218),e(219),e(220),e(221),e(222),e(223),e(224),e(225),e(226),e(227),e(228),e(230),e(231),e(232),e(233),e(234),e(235),e(236),e(237),e(238),e(239),e(240),e(241),e(242),e(243),e(244),e(245),e(246),e(247),e(248),e(249),e(250),e(251),e(252),e(253),e(254),e(255),e(256),e(257),e(258),e(259),e(260),e(261),e(262),e(263),e(265),e(266),e(268),e(269),e(270),e(271),e(272),e(273),e(274),e(276),e(277),e(278),e(279),e(280),e(281),e(282),e(283),e(284),e(285),e(286),e(287),e(288),e(98),e(289),e(137),e(290),e(138),e(291),e(292),e(293),e(294),e(139),e(297),e(298),e(299),e(300),e(301),e(302),e(303),e(304),e(305),e(306),e(307),e(308),e(309),e(310),e(311),e(312),e(313),e(314),e(315),e(316),e(317),e(318),e(319),e(320),e(321),e(322),e(323),e(324),e(325),t.exports=e(7)},function(t,n,e){"use strict";var r=e(1),o=e(13),i=e(9),u=e(0),a=e(11),c=e(29).KEY,f=e(2),s=e(62),l=e(45),p=e(32),h=e(5),d=e(79),v=e(118),y=e(186),g=e(65),m=e(3),b=e(4),w=e(15),x=e(28),S=e(31),_=e(36),O=e(121),E=e(20),M=e(8),P=e(34),T=E.f,F=M.f,I=O.f,j=r.Symbol,A=r.JSON,k=A&&A.stringify,N=h("_hidden"),R=h("toPrimitive"),L={}.propertyIsEnumerable,C=s("symbol-registry"),z=s("symbols"),W=s("op-symbols"),D=Object.prototype,V="function"==typeof j,B=r.QObject,U=!B||!B.prototype||!B.prototype.findChild,G=i&&f(function(){return 7!=_(F({},"a",{get:function(){return F(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=T(D,n);r&&delete D[n],F(t,n,e),r&&t!==D&&F(D,n,r)}:F,H=function(t){var n=z[t]=_(j.prototype);return n._k=t,n},q=V&&"symbol"==typeof j.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof j},Y=function(t,n,e){return t===D&&Y(W,n,e),m(t),n=x(n,!0),m(e),o(z,n)?(e.enumerable?(o(t,N)&&t[N][n]&&(t[N][n]=!1),e=_(e,{enumerable:S(0,!1)})):(o(t,N)||F(t,N,S(1,{})),t[N][n]=!0),G(t,n,e)):F(t,n,e)},J=function(t,n){m(t);for(var e,r=y(n=w(n)),o=0,i=r.length;i>o;)Y(t,e=r[o++],n[e]);return t},K=function(t){var n=L.call(this,t=x(t,!0));return!(this===D&&o(z,t)&&!o(W,t))&&(!(n||!o(this,t)||!o(z,t)||o(this,N)&&this[N][t])||n)},X=function(t,n){if(t=w(t),n=x(n,!0),t!==D||!o(z,n)||o(W,n)){var e=T(t,n);return!e||!o(z,n)||o(t,N)&&t[N][n]||(e.enumerable=!0),e}},$=function(t){for(var n,e=I(w(t)),r=[],i=0;e.length>i;)o(z,n=e[i++])||n==N||n==c||r.push(n);return r},Q=function(t){for(var n,e=t===D,r=I(e?W:w(t)),i=[],u=0;r.length>u;)!o(z,n=r[u++])||e&&!o(D,n)||i.push(z[n]);return i};V||(a((j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),n=function(e){this===D&&n.call(W,e),o(this,N)&&o(this[N],t)&&(this[N][t]=!1),G(this,t,S(1,e))};return i&&U&&G(D,t,{configurable:!0,set:n}),H(t)}).prototype,"toString",function(){return this._k}),E.f=X,M.f=Y,e(37).f=O.f=$,e(56).f=K,e(64).f=Q,i&&!e(33)&&a(D,"propertyIsEnumerable",K,!0),d.f=function(t){return H(h(t))}),u(u.G+u.W+u.F*!V,{Symbol:j});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Z.length>tt;)h(Z[tt++]);for(var nt=P(h.store),et=0;nt.length>et;)v(nt[et++]);u(u.S+u.F*!V,"Symbol",{for:function(t){return o(C,t+="")?C[t]:C[t]=j(t)},keyFor:function(t){if(!q(t))throw TypeError(t+" is not a symbol!");for(var n in C)if(C[n]===t)return n},useSetter:function(){U=!0},useSimple:function(){U=!1}}),u(u.S+u.F*!V,"Object",{create:function(t,n){return void 0===n?_(t):J(_(t),n)},defineProperty:Y,defineProperties:J,getOwnPropertyDescriptor:X,getOwnPropertyNames:$,getOwnPropertySymbols:Q}),A&&u(u.S+u.F*(!V||f(function(){var t=j();return"[null]"!=k([t])||"{}"!=k({a:t})||"{}"!=k(Object(t))})),"JSON",{stringify:function(t){for(var n,e,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(e=n=r[1],(b(n)||void 0!==t)&&!q(t))return g(n)||(n=function(t,n){if("function"==typeof e&&(n=e.call(this,t,n)),!q(n))return n}),r[1]=n,k.apply(A,r)}}),j.prototype[R]||e(14)(j.prototype,R,j.prototype.valueOf),l(j,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,n,e){t.exports=e(62)("native-function-to-string",Function.toString)},function(t,n,e){var r=e(34),o=e(64),i=e(56);t.exports=function(t){var n=r(t),e=o.f;if(e)for(var u,a=e(t),c=i.f,f=0;a.length>f;)c.call(t,u=a[f++])&&n.push(u);return n}},function(t,n,e){var r=e(0);r(r.S,"Object",{create:e(36)})},function(t,n,e){var r=e(0);r(r.S+r.F*!e(9),"Object",{defineProperty:e(8).f})},function(t,n,e){var r=e(0);r(r.S+r.F*!e(9),"Object",{defineProperties:e(120)})},function(t,n,e){var r=e(15),o=e(20).f;e(21)("getOwnPropertyDescriptor",function(){return function(t,n){return o(r(t),n)}})},function(t,n,e){var r=e(10),o=e(38);e(21)("getPrototypeOf",function(){return function(t){return o(r(t))}})},function(t,n,e){var r=e(10),o=e(34);e(21)("keys",function(){return function(t){return o(r(t))}})},function(t,n,e){e(21)("getOwnPropertyNames",function(){return e(121).f})},function(t,n,e){var r=e(4),o=e(29).onFreeze;e(21)("freeze",function(t){return function(n){return t&&r(n)?t(o(n)):n}})},function(t,n,e){var r=e(4),o=e(29).onFreeze;e(21)("seal",function(t){return function(n){return t&&r(n)?t(o(n)):n}})},function(t,n,e){var r=e(4),o=e(29).onFreeze;e(21)("preventExtensions",function(t){return function(n){return t&&r(n)?t(o(n)):n}})},function(t,n,e){var r=e(4);e(21)("isFrozen",function(t){return function(n){return!r(n)||!!t&&t(n)}})},function(t,n,e){var r=e(4);e(21)("isSealed",function(t){return function(n){return!r(n)||!!t&&t(n)}})},function(t,n,e){var r=e(4);e(21)("isExtensible",function(t){return function(n){return!!r(n)&&(!t||t(n))}})},function(t,n,e){var r=e(0);r(r.S+r.F,"Object",{assign:e(122)})},function(t,n,e){var r=e(0);r(r.S,"Object",{is:e(123)})},function(t,n,e){var r=e(0);r(r.S,"Object",{setPrototypeOf:e(83).set})},function(t,n,e){"use strict";var r=e(57),o={};o[e(5)("toStringTag")]="z",o+""!="[object z]"&&e(11)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(t,n,e){var r=e(0);r(r.P,"Function",{bind:e(124)})},function(t,n,e){var r=e(8).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||e(9)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},function(t,n,e){"use strict";var r=e(4),o=e(38),i=e(5)("hasInstance"),u=Function.prototype;i in u||e(8).f(u,i,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=o(t);)if(this.prototype===t)return!0;return!1}})},function(t,n,e){var r=e(0),o=e(126);r(r.G+r.F*(parseInt!=o),{parseInt:o})},function(t,n,e){var r=e(0),o=e(127);r(r.G+r.F*(parseFloat!=o),{parseFloat:o})},function(t,n,e){"use strict";var r=e(1),o=e(13),i=e(24),u=e(85),a=e(28),c=e(2),f=e(37).f,s=e(20).f,l=e(8).f,p=e(46).trim,h=r.Number,d=h,v=h.prototype,y="Number"==i(e(36)(v)),g="trim"in String.prototype,m=function(t){var n=a(t,!1);if("string"==typeof n&&n.length>2){var e,r,o,i=(n=g?n.trim():p(n,3)).charCodeAt(0);if(43===i||45===i){if(88===(e=n.charCodeAt(2))||120===e)return NaN}else if(48===i){switch(n.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+n}for(var u,c=n.slice(2),f=0,s=c.length;f<s;f++)if((u=c.charCodeAt(f))<48||u>o)return NaN;return parseInt(c,r)}}return+n};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(t){var n=arguments.length<1?0:t,e=this;return e instanceof h&&(y?c(function(){v.valueOf.call(e)}):"Number"!=i(e))?u(new d(m(n)),e,h):m(n)};for(var b,w=e(9)?f(d):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;w.length>x;x++)o(d,b=w[x])&&!o(h,b)&&l(h,b,s(d,b));h.prototype=v,v.constructor=h,e(11)(r,"Number",h)}},function(t,n,e){"use strict";var r=e(0),o=e(19),i=e(128),u=e(86),a=1..toFixed,c=Math.floor,f=[0,0,0,0,0,0],s="Number.toFixed: incorrect invocation!",l=function(t,n){for(var e=-1,r=n;++e<6;)r+=t*f[e],f[e]=r%1e7,r=c(r/1e7)},p=function(t){for(var n=6,e=0;--n>=0;)e+=f[n],f[n]=c(e/t),e=e%t*1e7},h=function(){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==f[t]){var e=String(f[t]);n=""===n?e:n+u.call("0",7-e.length)+e}return n},d=function(t,n,e){return 0===n?e:n%2==1?d(t,n-1,e*t):d(t*t,n/2,e)};r(r.P+r.F*(!!a&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!e(2)(function(){a.call({})})),"Number",{toFixed:function(t){var n,e,r,a,c=i(this,s),f=o(t),v="",y="0";if(f<0||f>20)throw RangeError(s);if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(v="-",c=-c),c>1e-21)if(e=(n=function(t){for(var n=0,e=t;e>=4096;)n+=12,e/=4096;for(;e>=2;)n+=1,e/=2;return n}(c*d(2,69,1))-69)<0?c*d(2,-n,1):c/d(2,n,1),e*=4503599627370496,(n=52-n)>0){for(l(0,e),r=f;r>=7;)l(1e7,0),r-=7;for(l(d(10,r,1),0),r=n-1;r>=23;)p(1<<23),r-=23;p(1<<r),l(1,1),p(2),y=h()}else l(0,e),l(1<<-n,0),y=h()+u.call("0",f);return y=f>0?v+((a=y.length)<=f?"0."+u.call("0",f-a)+y:y.slice(0,a-f)+"."+y.slice(a-f)):v+y}})},function(t,n,e){"use strict";var r=e(0),o=e(2),i=e(128),u=1..toPrecision;r(r.P+r.F*(o(function(){return"1"!==u.call(1,void 0)})||!o(function(){u.call({})})),"Number",{toPrecision:function(t){var n=i(this,"Number#toPrecision: incorrect invocation!");return void 0===t?u.call(n):u.call(n,t)}})},function(t,n,e){var r=e(0);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,n,e){var r=e(0),o=e(1).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&o(t)}})},function(t,n,e){var r=e(0);r(r.S,"Number",{isInteger:e(129)})},function(t,n,e){var r=e(0);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,n,e){var r=e(0),o=e(129),i=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return o(t)&&i(t)<=9007199254740991}})},function(t,n,e){var r=e(0);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,n,e){var r=e(0);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,n,e){var r=e(0),o=e(127);r(r.S+r.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(t,n,e){var r=e(0),o=e(126);r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(t,n,e){var r=e(0),o=e(130),i=Math.sqrt,u=Math.acosh;r(r.S+r.F*!(u&&710==Math.floor(u(Number.MAX_VALUE))&&u(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:o(t-1+i(t-1)*i(t+1))}})},function(t,n,e){var r=e(0),o=Math.asinh;r(r.S+r.F*!(o&&1/o(0)>0),"Math",{asinh:function t(n){return isFinite(n=+n)&&0!=n?n<0?-t(-n):Math.log(n+Math.sqrt(n*n+1)):n}})},function(t,n,e){var r=e(0),o=Math.atanh;r(r.S+r.F*!(o&&1/o(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,n,e){var r=e(0),o=e(87);r(r.S,"Math",{cbrt:function(t){return o(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,n,e){var r=e(0);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,n,e){var r=e(0),o=Math.exp;r(r.S,"Math",{cosh:function(t){return(o(t=+t)+o(-t))/2}})},function(t,n,e){var r=e(0),o=e(88);r(r.S+r.F*(o!=Math.expm1),"Math",{expm1:o})},function(t,n,e){var r=e(0);r(r.S,"Math",{fround:e(229)})},function(t,n,e){var r=e(87),o=Math.pow,i=o(2,-52),u=o(2,-23),a=o(2,127)*(2-u),c=o(2,-126);t.exports=Math.fround||function(t){var n,e,o=Math.abs(t),f=r(t);return o<c?f*(o/c/u+1/i-1/i)*c*u:(e=(n=(1+u/i)*o)-(n-o))>a||e!=e?f*(1/0):f*e}},function(t,n,e){var r=e(0),o=Math.abs;r(r.S,"Math",{hypot:function(t,n){for(var e,r,i=0,u=0,a=arguments.length,c=0;u<a;)c<(e=o(arguments[u++]))?(i=i*(r=c/e)*r+1,c=e):i+=e>0?(r=e/c)*r:e;return c===1/0?1/0:c*Math.sqrt(i)}})},function(t,n,e){var r=e(0),o=Math.imul;r(r.S+r.F*e(2)(function(){return-5!=o(4294967295,5)||2!=o.length}),"Math",{imul:function(t,n){var e=+t,r=+n,o=65535&e,i=65535&r;return 0|o*i+((65535&e>>>16)*i+o*(65535&r>>>16)<<16>>>0)}})},function(t,n,e){var r=e(0);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,n,e){var r=e(0);r(r.S,"Math",{log1p:e(130)})},function(t,n,e){var r=e(0);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,n,e){var r=e(0);r(r.S,"Math",{sign:e(87)})},function(t,n,e){var r=e(0),o=e(88),i=Math.exp;r(r.S+r.F*e(2)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(o(t)-o(-t))/2:(i(t-1)-i(-t-1))*(Math.E/2)}})},function(t,n,e){var r=e(0),o=e(88),i=Math.exp;r(r.S,"Math",{tanh:function(t){var n=o(t=+t),e=o(-t);return n==1/0?1:e==1/0?-1:(n-e)/(i(t)+i(-t))}})},function(t,n,e){var r=e(0);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,n,e){var r=e(0),o=e(35),i=String.fromCharCode,u=String.fromCodePoint;r(r.S+r.F*(!!u&&1!=u.length),"String",{fromCodePoint:function(t){for(var n,e=[],r=arguments.length,u=0;r>u;){if(n=+arguments[u++],o(n,1114111)!==n)throw RangeError(n+" is not a valid code point");e.push(n<65536?i(n):i(55296+((n-=65536)>>10),n%1024+56320))}return e.join("")}})},function(t,n,e){var r=e(0),o=e(15),i=e(6);r(r.S,"String",{raw:function(t){for(var n=o(t.raw),e=i(n.length),r=arguments.length,u=[],a=0;e>a;)u.push(String(n[a++])),a<r&&u.push(String(arguments[a]));return u.join("")}})},function(t,n,e){"use strict";e(46)("trim",function(t){return function(){return t(this,3)}})},function(t,n,e){"use strict";var r=e(89)(!0);e(90)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,e=this._i;return e>=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})})},function(t,n,e){"use strict";var r=e(0),o=e(89)(!1);r(r.P,"String",{codePointAt:function(t){return o(this,t)}})},function(t,n,e){"use strict";var r=e(0),o=e(6),i=e(91),u="".endsWith;r(r.P+r.F*e(93)("endsWith"),"String",{endsWith:function(t){var n=i(this,t,"endsWith"),e=arguments.length>1?arguments[1]:void 0,r=o(n.length),a=void 0===e?r:Math.min(o(e),r),c=String(t);return u?u.call(n,c,a):n.slice(a-c.length,a)===c}})},function(t,n,e){"use strict";var r=e(0),o=e(91);r(r.P+r.F*e(93)("includes"),"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,n,e){var r=e(0);r(r.P,"String",{repeat:e(86)})},function(t,n,e){"use strict";var r=e(0),o=e(6),i=e(91),u="".startsWith;r(r.P+r.F*e(93)("startsWith"),"String",{startsWith:function(t){var n=i(this,t,"startsWith"),e=o(Math.min(arguments.length>1?arguments[1]:void 0,n.length)),r=String(t);return u?u.call(n,r,e):n.slice(e,e+r.length)===r}})},function(t,n,e){"use strict";e(12)("anchor",function(t){return function(n){return t(this,"a","name",n)}})},function(t,n,e){"use strict";e(12)("big",function(t){return function(){return t(this,"big","","")}})},function(t,n,e){"use strict";e(12)("blink",function(t){return function(){return t(this,"blink","","")}})},function(t,n,e){"use strict";e(12)("bold",function(t){return function(){return t(this,"b","","")}})},function(t,n,e){"use strict";e(12)("fixed",function(t){return function(){return t(this,"tt","","")}})},function(t,n,e){"use strict";e(12)("fontcolor",function(t){return function(n){return t(this,"font","color",n)}})},function(t,n,e){"use strict";e(12)("fontsize",function(t){return function(n){return t(this,"font","size",n)}})},function(t,n,e){"use strict";e(12)("italics",function(t){return function(){return t(this,"i","","")}})},function(t,n,e){"use strict";e(12)("link",function(t){return function(n){return t(this,"a","href",n)}})},function(t,n,e){"use strict";e(12)("small",function(t){return function(){return t(this,"small","","")}})},function(t,n,e){"use strict";e(12)("strike",function(t){return function(){return t(this,"strike","","")}})},function(t,n,e){"use strict";e(12)("sub",function(t){return function(){return t(this,"sub","","")}})},function(t,n,e){"use strict";e(12)("sup",function(t){return function(){return t(this,"sup","","")}})},function(t,n,e){var r=e(0);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,n,e){"use strict";var r=e(0),o=e(10),i=e(28);r(r.P+r.F*e(2)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var n=o(this),e=i(n);return"number"!=typeof e||isFinite(e)?n.toISOString():null}})},function(t,n,e){var r=e(0),o=e(264);r(r.P+r.F*(Date.prototype.toISOString!==o),"Date",{toISOString:o})},function(t,n,e){"use strict";var r=e(2),o=Date.prototype.getTime,i=Date.prototype.toISOString,u=function(t){return t>9?t:"0"+t};t.exports=r(function(){return"0385-07-25T07:06:39.999Z"!=i.call(new Date(-5e13-1))})||!r(function(){i.call(new Date(NaN))})?function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var t=this,n=t.getUTCFullYear(),e=t.getUTCMilliseconds(),r=n<0?"-":n>9999?"+":"";return r+("00000"+Math.abs(n)).slice(r?-6:-4)+"-"+u(t.getUTCMonth()+1)+"-"+u(t.getUTCDate())+"T"+u(t.getUTCHours())+":"+u(t.getUTCMinutes())+":"+u(t.getUTCSeconds())+"."+(e>99?e:"0"+u(e))+"Z"}:i},function(t,n,e){var r=Date.prototype,o=r.toString,i=r.getTime;new Date(NaN)+""!="Invalid Date"&&e(11)(r,"toString",function(){var t=i.call(this);return t==t?o.call(this):"Invalid Date"})},function(t,n,e){var r=e(5)("toPrimitive"),o=Date.prototype;r in o||e(14)(o,r,e(267))},function(t,n,e){"use strict";var r=e(3),o=e(28);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return o(r(this),"number"!=t)}},function(t,n,e){var r=e(0);r(r.S,"Array",{isArray:e(65)})},function(t,n,e){"use strict";var r=e(17),o=e(0),i=e(10),u=e(132),a=e(94),c=e(6),f=e(95),s=e(96);o(o.S+o.F*!e(66)(function(t){Array.from(t)}),"Array",{from:function(t){var n,e,o,l,p=i(t),h="function"==typeof this?this:Array,d=arguments.length,v=d>1?arguments[1]:void 0,y=void 0!==v,g=0,m=s(p);if(y&&(v=r(v,d>2?arguments[2]:void 0,2)),null==m||h==Array&&a(m))for(e=new h(n=c(p.length));n>g;g++)f(e,g,y?v(p[g],g):p[g]);else for(l=m.call(p),e=new h;!(o=l.next()).done;g++)f(e,g,y?u(l,v,[o.value,g],!0):o.value);return e.length=g,e}})},function(t,n,e){"use strict";var r=e(0),o=e(95);r(r.S+r.F*e(2)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,n=arguments.length,e=new("function"==typeof this?this:Array)(n);n>t;)o(e,t,arguments[t++]);return e.length=n,e}})},function(t,n,e){"use strict";var r=e(0),o=e(15),i=[].join;r(r.P+r.F*(e(55)!=Object||!e(16)(i)),"Array",{join:function(t){return i.call(o(this),void 0===t?",":t)}})},function(t,n,e){"use strict";var r=e(0),o=e(82),i=e(24),u=e(35),a=e(6),c=[].slice;r(r.P+r.F*e(2)(function(){o&&c.call(o)}),"Array",{slice:function(t,n){var e=a(this.length),r=i(this);if(n=void 0===n?e:n,"Array"==r)return c.call(this,t,n);for(var o=u(t,e),f=u(n,e),s=a(f-o),l=new Array(s),p=0;p<s;p++)l[p]="String"==r?this.charAt(o+p):this[o+p];return l}})},function(t,n,e){"use strict";var r=e(0),o=e(18),i=e(10),u=e(2),a=[].sort,c=[1,2,3];r(r.P+r.F*(u(function(){c.sort(void 0)})||!u(function(){c.sort(null)})||!e(16)(a)),"Array",{sort:function(t){return void 0===t?a.call(i(this)):a.call(i(this),o(t))}})},function(t,n,e){"use strict";var r=e(0),o=e(22)(0),i=e(16)([].forEach,!0);r(r.P+r.F*!i,"Array",{forEach:function(t){return o(this,t,arguments[1])}})},function(t,n,e){var r=e(4),o=e(65),i=e(5)("species");t.exports=function(t){var n;return o(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!o(n.prototype)||(n=void 0),r(n)&&null===(n=n[i])&&(n=void 0)),void 0===n?Array:n}},function(t,n,e){"use strict";var r=e(0),o=e(22)(1);r(r.P+r.F*!e(16)([].map,!0),"Array",{map:function(t){return o(this,t,arguments[1])}})},function(t,n,e){"use strict";var r=e(0),o=e(22)(2);r(r.P+r.F*!e(16)([].filter,!0),"Array",{filter:function(t){return o(this,t,arguments[1])}})},function(t,n,e){"use strict";var r=e(0),o=e(22)(3);r(r.P+r.F*!e(16)([].some,!0),"Array",{some:function(t){return o(this,t,arguments[1])}})},function(t,n,e){"use strict";var r=e(0),o=e(22)(4);r(r.P+r.F*!e(16)([].every,!0),"Array",{every:function(t){return o(this,t,arguments[1])}})},function(t,n,e){"use strict";var r=e(0),o=e(134);r(r.P+r.F*!e(16)([].reduce,!0),"Array",{reduce:function(t){return o(this,t,arguments.length,arguments[1],!1)}})},function(t,n,e){"use strict";var r=e(0),o=e(134);r(r.P+r.F*!e(16)([].reduceRight,!0),"Array",{reduceRight:function(t){return o(this,t,arguments.length,arguments[1],!0)}})},function(t,n,e){"use strict";var r=e(0),o=e(63)(!1),i=[].indexOf,u=!!i&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(u||!e(16)(i)),"Array",{indexOf:function(t){return u?i.apply(this,arguments)||0:o(this,t,arguments[1])}})},function(t,n,e){"use strict";var r=e(0),o=e(15),i=e(19),u=e(6),a=[].lastIndexOf,c=!!a&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(c||!e(16)(a)),"Array",{lastIndexOf:function(t){if(c)return a.apply(this,arguments)||0;var n=o(this),e=u(n.length),r=e-1;for(arguments.length>1&&(r=Math.min(r,i(arguments[1]))),r<0&&(r=e+r);r>=0;r--)if(r in n&&n[r]===t)return r||0;return-1}})},function(t,n,e){var r=e(0);r(r.P,"Array",{copyWithin:e(135)}),e(39)("copyWithin")},function(t,n,e){var r=e(0);r(r.P,"Array",{fill:e(97)}),e(39)("fill")},function(t,n,e){"use strict";var r=e(0),o=e(22)(5),i=!0;"find"in[]&&Array(1).find(function(){i=!1}),r(r.P+r.F*i,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),e(39)("find")},function(t,n,e){"use strict";var r=e(0),o=e(22)(6),i="findIndex",u=!0;i in[]&&Array(1)[i](function(){u=!1}),r(r.P+r.F*u,"Array",{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),e(39)(i)},function(t,n,e){e(48)("Array")},function(t,n,e){var r=e(1),o=e(85),i=e(8).f,u=e(37).f,a=e(92),c=e(67),f=r.RegExp,s=f,l=f.prototype,p=/a/g,h=/a/g,d=new f(p)!==p;if(e(9)&&(!d||e(2)(function(){return h[e(5)("match")]=!1,f(p)!=p||f(h)==h||"/a/i"!=f(p,"i")}))){f=function(t,n){var e=this instanceof f,r=a(t),i=void 0===n;return!e&&r&&t.constructor===f&&i?t:o(d?new s(r&&!i?t.source:t,n):s((r=t instanceof f)?t.source:t,r&&i?c.call(t):n),e?this:l,f)};for(var v=function(t){t in f||i(f,t,{configurable:!0,get:function(){return s[t]},set:function(n){s[t]=n}})},y=u(s),g=0;y.length>g;)v(y[g++]);l.constructor=f,f.prototype=l,e(11)(r,"RegExp",f)}e(48)("RegExp")},function(t,n,e){"use strict";e(138);var r=e(3),o=e(67),i=e(9),u=/./.toString,a=function(t){e(11)(RegExp.prototype,"toString",t,!0)};e(2)(function(){return"/a/b"!=u.call({source:"a",flags:"b"})})?a(function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!i&&t instanceof RegExp?o.call(t):void 0)}):"toString"!=u.name&&a(function(){return u.call(this)})},function(t,n,e){"use strict";var r=e(3),o=e(6),i=e(100),u=e(68);e(69)("match",1,function(t,n,e,a){return[function(e){var r=t(this),o=null==e?void 0:e[n];return void 0!==o?o.call(e,r):new RegExp(e)[n](String(r))},function(t){var n=a(e,t,this);if(n.done)return n.value;var c=r(t),f=String(this);if(!c.global)return u(c,f);var s=c.unicode;c.lastIndex=0;for(var l,p=[],h=0;null!==(l=u(c,f));){var d=String(l[0]);p[h]=d,""===d&&(c.lastIndex=i(f,o(c.lastIndex),s)),h++}return 0===h?null:p}]})},function(t,n,e){"use strict";var r=e(3),o=e(10),i=e(6),u=e(19),a=e(100),c=e(68),f=Math.max,s=Math.min,l=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,h=/\$([$&`']|\d\d?)/g;e(69)("replace",2,function(t,n,e,d){return[function(r,o){var i=t(this),u=null==r?void 0:r[n];return void 0!==u?u.call(r,i,o):e.call(String(i),r,o)},function(t,n){var o=d(e,t,this,n);if(o.done)return o.value;var l=r(t),p=String(this),h="function"==typeof n;h||(n=String(n));var y=l.global;if(y){var g=l.unicode;l.lastIndex=0}for(var m=[];;){var b=c(l,p);if(null===b)break;if(m.push(b),!y)break;""===String(b[0])&&(l.lastIndex=a(p,i(l.lastIndex),g))}for(var w,x="",S=0,_=0;_<m.length;_++){b=m[_];for(var O=String(b[0]),E=f(s(u(b.index),p.length),0),M=[],P=1;P<b.length;P++)M.push(void 0===(w=b[P])?w:String(w));var T=b.groups;if(h){var F=[O].concat(M,E,p);void 0!==T&&F.push(T);var I=String(n.apply(void 0,F))}else I=v(O,p,E,M,T,n);E>=S&&(x+=p.slice(S,E)+I,S=E+O.length)}return x+p.slice(S)}];function v(t,n,r,i,u,a){var c=r+t.length,f=i.length,s=h;return void 0!==u&&(u=o(u),s=p),e.call(a,s,function(e,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(c);case"<":a=u[o.slice(1,-1)];break;default:var s=+o;if(0===s)return e;if(s>f){var p=l(s/10);return 0===p?e:p<=f?void 0===i[p-1]?o.charAt(1):i[p-1]+o.charAt(1):e}a=i[s-1]}return void 0===a?"":a})}})},function(t,n,e){"use strict";var r=e(3),o=e(123),i=e(68);e(69)("search",1,function(t,n,e,u){return[function(e){var r=t(this),o=null==e?void 0:e[n];return void 0!==o?o.call(e,r):new RegExp(e)[n](String(r))},function(t){var n=u(e,t,this);if(n.done)return n.value;var a=r(t),c=String(this),f=a.lastIndex;o(f,0)||(a.lastIndex=0);var s=i(a,c);return o(a.lastIndex,f)||(a.lastIndex=f),null===s?-1:s.index}]})},function(t,n,e){"use strict";var r=e(92),o=e(3),i=e(58),u=e(100),a=e(6),c=e(68),f=e(99),s=e(2),l=Math.min,p=[].push,h=!s(function(){RegExp(4294967295,"y")});e(69)("split",2,function(t,n,e,s){var d;return d="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var o=String(this);if(void 0===t&&0===n)return[];if(!r(t))return e.call(o,t,n);for(var i,u,a,c=[],s=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,h=void 0===n?4294967295:n>>>0,d=new RegExp(t.source,s+"g");(i=f.call(d,o))&&!((u=d.lastIndex)>l&&(c.push(o.slice(l,i.index)),i.length>1&&i.index<o.length&&p.apply(c,i.slice(1)),a=i[0].length,l=u,c.length>=h));)d.lastIndex===i.index&&d.lastIndex++;return l===o.length?!a&&d.test("")||c.push(""):c.push(o.slice(l)),c.length>h?c.slice(0,h):c}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,r){var o=t(this),i=null==e?void 0:e[n];return void 0!==i?i.call(e,o,r):d.call(String(o),e,r)},function(t,n){var r=s(d,t,this,n,d!==e);if(r.done)return r.value;var f=o(t),p=String(this),v=i(f,RegExp),y=f.unicode,g=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(h?"y":"g"),m=new v(h?f:"^(?:"+f.source+")",g),b=void 0===n?4294967295:n>>>0;if(0===b)return[];if(0===p.length)return null===c(m,p)?[p]:[];for(var w=0,x=0,S=[];x<p.length;){m.lastIndex=h?x:0;var _,O=c(m,h?p:p.slice(x));if(null===O||(_=l(a(m.lastIndex+(h?0:x)),p.length))===w)x=u(p,x,y);else{if(S.push(p.slice(w,x)),S.length===b)return S;for(var E=1;E<=O.length-1;E++)if(S.push(O[E]),S.length===b)return S;x=w=_}}return S.push(p.slice(w)),S}]})},function(t,n,e){var r=e(1),o=e(101).set,i=r.MutationObserver||r.WebKitMutationObserver,u=r.process,a=r.Promise,c="process"==e(24)(u);t.exports=function(){var t,n,e,f=function(){var r,o;for(c&&(r=u.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?e():n=void 0,r}}n=void 0,r&&r.enter()};if(c)e=function(){u.nextTick(f)};else if(!i||r.navigator&&r.navigator.standalone)if(a&&a.resolve){var s=a.resolve(void 0);e=function(){s.then(f)}}else e=function(){o.call(r,f)};else{var l=!0,p=document.createTextNode("");new i(f).observe(p,{characterData:!0}),e=function(){p.data=l=!l}}return function(r){var o={fn:r,next:void 0};n&&(n.next=o),t||(t=o,e()),n=o}}},function(t,n){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,n,e){"use strict";var r=e(142),o=e(40);t.exports=e(72)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var n=r.getEntry(o(this,"Map"),t);return n&&n.v},set:function(t,n){return r.def(o(this,"Map"),0===t?0:t,n)}},r,!0)},function(t,n,e){"use strict";var r=e(142),o=e(40);t.exports=e(72)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(o(this,"Set"),t=0===t?0:t,t)}},r)},function(t,n,e){"use strict";var r,o=e(1),i=e(22)(0),u=e(11),a=e(29),c=e(122),f=e(143),s=e(4),l=e(40),p=e(40),h=!o.ActiveXObject&&"ActiveXObject"in o,d=a.getWeak,v=Object.isExtensible,y=f.ufstore,g=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},m={get:function(t){if(s(t)){var n=d(t);return!0===n?y(l(this,"WeakMap")).get(t):n?n[this._i]:void 0}},set:function(t,n){return f.def(l(this,"WeakMap"),t,n)}},b=t.exports=e(72)("WeakMap",g,m,f,!0,!0);p&&h&&(c((r=f.getConstructor(g,"WeakMap")).prototype,m),a.NEED=!0,i(["delete","has","get","set"],function(t){var n=b.prototype,e=n[t];u(n,t,function(n,o){if(s(n)&&!v(n)){this._f||(this._f=new r);var i=this._f[t](n,o);return"set"==t?this:i}return e.call(this,n,o)})}))},function(t,n,e){"use strict";var r=e(143),o=e(40);e(72)("WeakSet",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(o(this,"WeakSet"),t,!0)}},r,!1,!0)},function(t,n,e){"use strict";var r=e(0),o=e(73),i=e(102),u=e(3),a=e(35),c=e(6),f=e(4),s=e(1).ArrayBuffer,l=e(58),p=i.ArrayBuffer,h=i.DataView,d=o.ABV&&s.isView,v=p.prototype.slice,y=o.VIEW;r(r.G+r.W+r.F*(s!==p),{ArrayBuffer:p}),r(r.S+r.F*!o.CONSTR,"ArrayBuffer",{isView:function(t){return d&&d(t)||f(t)&&y in t}}),r(r.P+r.U+r.F*e(2)(function(){return!new p(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(t,n){if(void 0!==v&&void 0===n)return v.call(u(this),t);for(var e=u(this).byteLength,r=a(t,e),o=a(void 0===n?e:n,e),i=new(l(this,p))(c(o-r)),f=new h(this),s=new h(i),d=0;r<o;)s.setUint8(d++,f.getUint8(r++));return i}}),e(48)("ArrayBuffer")},function(t,n,e){var r=e(0);r(r.G+r.W+r.F*!e(73).ABV,{DataView:e(102).DataView})},function(t,n,e){e(26)("Int8",1,function(t){return function(n,e,r){return t(this,n,e,r)}})},function(t,n,e){e(26)("Uint8",1,function(t){return function(n,e,r){return t(this,n,e,r)}})},function(t,n,e){e(26)("Uint8",1,function(t){return function(n,e,r){return t(this,n,e,r)}},!0)},function(t,n,e){e(26)("Int16",2,function(t){return function(n,e,r){return t(this,n,e,r)}})},function(t,n,e){e(26)("Uint16",2,function(t){return function(n,e,r){return t(this,n,e,r)}})},function(t,n,e){e(26)("Int32",4,function(t){return function(n,e,r){return t(this,n,e,r)}})},function(t,n,e){e(26)("Uint32",4,function(t){return function(n,e,r){return t(this,n,e,r)}})},function(t,n,e){e(26)("Float32",4,function(t){return function(n,e,r){return t(this,n,e,r)}})},function(t,n,e){e(26)("Float64",8,function(t){return function(n,e,r){return t(this,n,e,r)}})},function(t,n,e){var r=e(0),o=e(18),i=e(3),u=(e(1).Reflect||{}).apply,a=Function.apply;r(r.S+r.F*!e(2)(function(){u(function(){})}),"Reflect",{apply:function(t,n,e){var r=o(t),c=i(e);return u?u(r,n,c):a.call(r,n,c)}})},function(t,n,e){var r=e(0),o=e(36),i=e(18),u=e(3),a=e(4),c=e(2),f=e(124),s=(e(1).Reflect||{}).construct,l=c(function(){function t(){}return!(s(function(){},[],t)instanceof t)}),p=!c(function(){s(function(){})});r(r.S+r.F*(l||p),"Reflect",{construct:function(t,n){i(t),u(n);var e=arguments.length<3?t:i(arguments[2]);if(p&&!l)return s(t,n,e);if(t==e){switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3])}var r=[null];return r.push.apply(r,n),new(f.apply(t,r))}var c=e.prototype,h=o(a(c)?c:Object.prototype),d=Function.apply.call(t,h,n);return a(d)?d:h}})},function(t,n,e){var r=e(8),o=e(0),i=e(3),u=e(28);o(o.S+o.F*e(2)(function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,n,e){i(t),n=u(n,!0),i(e);try{return r.f(t,n,e),!0}catch(t){return!1}}})},function(t,n,e){var r=e(0),o=e(20).f,i=e(3);r(r.S,"Reflect",{deleteProperty:function(t,n){var e=o(i(t),n);return!(e&&!e.configurable)&&delete t[n]}})},function(t,n,e){"use strict";var r=e(0),o=e(3),i=function(t){this._t=o(t),this._i=0;var n,e=this._k=[];for(n in t)e.push(n)};e(131)(i,"Object",function(){var t,n=this._k;do{if(this._i>=n.length)return{value:void 0,done:!0}}while(!((t=n[this._i++])in this._t));return{value:t,done:!1}}),r(r.S,"Reflect",{enumerate:function(t){return new i(t)}})},function(t,n,e){var r=e(20),o=e(38),i=e(13),u=e(0),a=e(4),c=e(3);u(u.S,"Reflect",{get:function t(n,e){var u,f,s=arguments.length<3?n:arguments[2];return c(n)===s?n[e]:(u=r.f(n,e))?i(u,"value")?u.value:void 0!==u.get?u.get.call(s):void 0:a(f=o(n))?t(f,e,s):void 0}})},function(t,n,e){var r=e(20),o=e(0),i=e(3);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(t,n){return r.f(i(t),n)}})},function(t,n,e){var r=e(0),o=e(38),i=e(3);r(r.S,"Reflect",{getPrototypeOf:function(t){return o(i(t))}})},function(t,n,e){var r=e(0);r(r.S,"Reflect",{has:function(t,n){return n in t}})},function(t,n,e){var r=e(0),o=e(3),i=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return o(t),!i||i(t)}})},function(t,n,e){var r=e(0);r(r.S,"Reflect",{ownKeys:e(145)})},function(t,n,e){var r=e(0),o=e(3),i=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){o(t);try{return i&&i(t),!0}catch(t){return!1}}})},function(t,n,e){var r=e(8),o=e(20),i=e(38),u=e(13),a=e(0),c=e(31),f=e(3),s=e(4);a(a.S,"Reflect",{set:function t(n,e,a){var l,p,h=arguments.length<4?n:arguments[3],d=o.f(f(n),e);if(!d){if(s(p=i(n)))return t(p,e,a,h);d=c(0)}if(u(d,"value")){if(!1===d.writable||!s(h))return!1;if(l=o.f(h,e)){if(l.get||l.set||!1===l.writable)return!1;l.value=a,r.f(h,e,l)}else r.f(h,e,c(0,a));return!0}return void 0!==d.set&&(d.set.call(h,a),!0)}})},function(t,n,e){var r=e(0),o=e(83);o&&r(r.S,"Reflect",{setPrototypeOf:function(t,n){o.check(t,n);try{return o.set(t,n),!0}catch(t){return!1}}})},function(t,n,e){e(327),t.exports=e(7).Array.includes},function(t,n,e){"use strict";var r=e(0),o=e(63)(!0);r(r.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),e(39)("includes")},function(t,n,e){e(329),t.exports=e(7).Array.flatMap},function(t,n,e){"use strict";var r=e(0),o=e(330),i=e(10),u=e(6),a=e(18),c=e(133);r(r.P,"Array",{flatMap:function(t){var n,e,r=i(this);return a(t),n=u(r.length),e=c(r,0),o(e,r,r,n,0,1,t,arguments[1]),e}}),e(39)("flatMap")},function(t,n,e){"use strict";var r=e(65),o=e(4),i=e(6),u=e(17),a=e(5)("isConcatSpreadable");t.exports=function t(n,e,c,f,s,l,p,h){for(var d,v,y=s,g=0,m=!!p&&u(p,h,3);g<f;){if(g in c){if(d=m?m(c[g],g,e):c[g],v=!1,o(d)&&(v=void 0!==(v=d[a])?!!v:r(d)),v&&l>0)y=t(n,e,d,i(d.length),y,l-1)-1;else{if(y>=9007199254740991)throw TypeError();n[y]=d}y++}g++}return y}},function(t,n,e){e(332),t.exports=e(7).String.padStart},function(t,n,e){"use strict";var r=e(0),o=e(146),i=e(71),u=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i);r(r.P+r.F*u,"String",{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,n,e){e(334),t.exports=e(7).String.padEnd},function(t,n,e){"use strict";var r=e(0),o=e(146),i=e(71),u=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i);r(r.P+r.F*u,"String",{padEnd:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,n,e){e(336),t.exports=e(7).String.trimLeft},function(t,n,e){"use strict";e(46)("trimLeft",function(t){return function(){return t(this,1)}},"trimStart")},function(t,n,e){e(338),t.exports=e(7).String.trimRight},function(t,n,e){"use strict";e(46)("trimRight",function(t){return function(){return t(this,2)}},"trimEnd")},function(t,n,e){e(340),t.exports=e(79).f("asyncIterator")},function(t,n,e){e(118)("asyncIterator")},function(t,n,e){e(342),t.exports=e(7).Object.getOwnPropertyDescriptors},function(t,n,e){var r=e(0),o=e(145),i=e(15),u=e(20),a=e(95);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var n,e,r=i(t),c=u.f,f=o(r),s={},l=0;f.length>l;)void 0!==(e=c(r,n=f[l++]))&&a(s,n,e);return s}})},function(t,n,e){e(344),t.exports=e(7).Object.values},function(t,n,e){var r=e(0),o=e(147)(!1);r(r.S,"Object",{values:function(t){return o(t)}})},function(t,n,e){e(346),t.exports=e(7).Object.entries},function(t,n,e){var r=e(0),o=e(147)(!0);r(r.S,"Object",{entries:function(t){return o(t)}})},function(t,n,e){"use strict";e(139),e(348),t.exports=e(7).Promise.finally},function(t,n,e){"use strict";var r=e(0),o=e(7),i=e(1),u=e(58),a=e(141);r(r.P+r.R,"Promise",{finally:function(t){var n=u(this,o.Promise||i.Promise),e="function"==typeof t;return this.then(e?function(e){return a(n,t()).then(function(){return e})}:t,e?function(e){return a(n,t()).then(function(){throw e})}:t)}})},function(t,n,e){e(350),e(351),e(352),t.exports=e(7)},function(t,n,e){var r=e(1),o=e(0),i=e(71),u=[].slice,a=/MSIE .\./.test(i),c=function(t){return function(n,e){var r=arguments.length>2,o=!!r&&u.call(arguments,2);return t(r?function(){("function"==typeof n?n:Function(n)).apply(this,o)}:n,e)}};o(o.G+o.B+o.F*a,{setTimeout:c(r.setTimeout),setInterval:c(r.setInterval)})},function(t,n,e){var r=e(0),o=e(101);r(r.G+r.B,{setImmediate:o.set,clearImmediate:o.clear})},function(t,n,e){for(var r=e(98),o=e(34),i=e(11),u=e(1),a=e(14),c=e(47),f=e(5),s=f("iterator"),l=f("toStringTag"),p=c.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=o(h),v=0;v<d.length;v++){var y,g=d[v],m=h[g],b=u[g],w=b&&b.prototype;if(w&&(w[s]||a(w,s,p),w[l]||a(w,l,g),c[g]=p,m))for(y in r)w[y]||i(w,y,r[y],!0)}},function(t,n,e){var r=function(t){"use strict";var n,e=Object.prototype,r=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function c(t,n,e,r){var o=n&&n.prototype instanceof v?n:v,i=Object.create(o.prototype),u=new P(r||[]);return i._invoke=function(t,n,e){var r=s;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return F()}for(e.method=o,e.arg=i;;){var u=e.delegate;if(u){var a=O(u,e);if(a){if(a===d)continue;return a}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(r===s)throw r=h,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);r=p;var c=f(t,n,e);if("normal"===c.type){if(r=e.done?h:l,c.arg===d)continue;return{value:c.arg,done:e.done}}"throw"===c.type&&(r=h,e.method="throw",e.arg=c.arg)}}}(t,e,u),i}function f(t,n,e){try{return{type:"normal",arg:t.call(n,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var s="suspendedStart",l="suspendedYield",p="executing",h="completed",d={};function v(){}function y(){}function g(){}var m={};m[i]=function(){return this};var b=Object.getPrototypeOf,w=b&&b(b(T([])));w&&w!==e&&r.call(w,i)&&(m=w);var x=g.prototype=v.prototype=Object.create(m);function S(t){["next","throw","return"].forEach(function(n){t[n]=function(t){return this._invoke(n,t)}})}function _(t){var n;this._invoke=function(e,o){function i(){return new Promise(function(n,i){!function n(e,o,i,u){var a=f(t[e],t,o);if("throw"!==a.type){var c=a.arg,s=c.value;return s&&"object"==typeof s&&r.call(s,"__await")?Promise.resolve(s.__await).then(function(t){n("next",t,i,u)},function(t){n("throw",t,i,u)}):Promise.resolve(s).then(function(t){c.value=t,i(c)},function(t){return n("throw",t,i,u)})}u(a.arg)}(e,o,n,i)})}return n=n?n.then(i,i):i()}}function O(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,O(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=f(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function E(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function M(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function T(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,u=function e(){for(;++o<t.length;)if(r.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=n,e.done=!0,e};return u.next=u}}return{next:F}}function F(){return{value:n,done:!0}}return y.prototype=x.constructor=g,g.constructor=y,g[a]=y.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===y||"GeneratorFunction"===(n.displayName||n.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,a in t||(t[a]="GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},S(_.prototype),_.prototype[u]=function(){return this},t.AsyncIterator=_,t.async=function(n,e,r,o){var i=new _(c(n,e,r,o));return t.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},S(x),x[a]="Generator",x[i]=function(){return this},x.toString=function(){return"[object Generator]"},t.keys=function(t){var n=[];for(var e in t)n.push(e);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=T,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(M),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function o(r,o){return a.type="throw",a.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var u=this.tryEntries[i],a=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var c=r.call(u,"catchLoc"),f=r.call(u,"finallyLoc");if(c&&f){if(this.prev<u.catchLoc)return o(u.catchLoc,!0);if(this.prev<u.finallyLoc)return o(u.finallyLoc)}else if(c){if(this.prev<u.catchLoc)return o(u.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return o(u.finallyLoc)}}}},abrupt:function(t,n){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var u=i?i.completion:{};return u.type=t,u.arg=n,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(u)},complete:function(t,n){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&n&&(this.next=n),d},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),M(e),d}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.tryLoc===t){var r=e.completion;if("throw"===r.type){var o=r.arg;M(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),d}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},function(t,n,e){e(355),t.exports=e(23).global},function(t,n,e){var r=e(41);r(r.G,{global:e(27)})},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,e){t.exports={default:e(358),__esModule:!0}},function(t,n,e){e(359),t.exports=e(23).Object.getPrototypeOf},function(t,n,e){var r=e(151),o=e(152);e(360)("getPrototypeOf",function(){return function(t){return o(r(t))}})},function(t,n,e){var r=e(41),o=e(23),i=e(60);t.exports=function(t,n){var e=(o.Object||{})[t]||Object[t],u={};u[t]=n(e),r(r.S+r.F*i(function(){e(1)}),"Object",u)}},function(t,n,e){"use strict";n.__esModule=!0,n.default=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}},function(t,n,e){"use strict";n.__esModule=!0;var r,o=e(363),i=(r=o)&&r.__esModule?r:{default:r};n.default=function(){function t(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,i.default)(t,r.key,r)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}()},function(t,n,e){t.exports={default:e(364),__esModule:!0}},function(t,n,e){e(365);var r=e(23).Object;t.exports=function(t,n,e){return r.defineProperty(t,n,e)}},function(t,n,e){var r=e(41);r(r.S+r.F*!e(43),"Object",{defineProperty:e(42).f})},function(t,n,e){"use strict";n.__esModule=!0;var r,o=e(153),i=(r=o)&&r.__esModule?r:{default:r};n.default=function(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!==(void 0===n?"undefined":(0,i.default)(n))&&"function"!=typeof n?t:n}},function(t,n,e){t.exports={default:e(368),__esModule:!0}},function(t,n,e){e(369),e(378),t.exports=e(113).f("iterator")},function(t,n,e){"use strict";var r=e(370)(!0);e(154)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,e=this._i;return e>=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})})},function(t,n,e){var r=e(107),o=e(104);t.exports=function(t){return function(n,e){var i,u,a=String(o(n)),c=r(e),f=a.length;return c<0||c>=f?t?"":void 0:(i=a.charCodeAt(c))<55296||i>56319||c+1===f||(u=a.charCodeAt(c+1))<56320||u>57343?t?a.charAt(c):i:t?a.slice(c,c+2):u-56320+(i-55296<<10)+65536}}},function(t,n,e){"use strict";var r=e(109),o=e(74),i=e(112),u={};e(51)(u,e(54)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(u,{next:o(1,e)}),i(t,n+" Iterator")}},function(t,n,e){var r=e(42),o=e(59),i=e(110);t.exports=e(43)?Object.defineProperties:function(t,n){o(t);for(var e,u=i(n),a=u.length,c=0;a>c;)r.f(t,e=u[c++],n[e]);return t}},function(t,n,e){var r=e(157);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n,e){var r=e(53),o=e(375),i=e(376);t.exports=function(t){return function(n,e,u){var a,c=r(n),f=o(c.length),s=i(u,f);if(t&&e!=e){for(;f>s;)if((a=c[s++])!=a)return!0}else for(;f>s;s++)if((t||s in c)&&c[s]===e)return t||s||0;return!t&&-1}}},function(t,n,e){var r=e(107),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,n,e){var r=e(107),o=Math.max,i=Math.min;t.exports=function(t,n){return(t=r(t))<0?o(t+n,0):i(t,n)}},function(t,n,e){var r=e(27).document;t.exports=r&&r.documentElement},function(t,n,e){e(379);for(var r=e(27),o=e(51),i=e(108),u=e(54)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<a.length;c++){var f=a[c],s=r[f],l=s&&s.prototype;l&&!l[u]&&o(l,u,f),i[f]=i.Array}},function(t,n,e){"use strict";var r=e(380),o=e(381),i=e(108),u=e(53);t.exports=e(154)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,o(1)):o(0,"keys"==n?e:"values"==n?t[e]:[e,t[e]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,n){t.exports=function(){}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){t.exports={default:e(383),__esModule:!0}},function(t,n,e){e(384),e(389),e(390),e(391),t.exports=e(23).Symbol},function(t,n,e){"use strict";var r=e(27),o=e(44),i=e(43),u=e(41),a=e(155),c=e(385).KEY,f=e(60),s=e(106),l=e(112),p=e(76),h=e(54),d=e(113),v=e(114),y=e(386),g=e(387),m=e(59),b=e(52),w=e(53),x=e(103),S=e(74),_=e(109),O=e(388),E=e(160),M=e(42),P=e(110),T=E.f,F=M.f,I=O.f,j=r.Symbol,A=r.JSON,k=A&&A.stringify,N=h("_hidden"),R=h("toPrimitive"),L={}.propertyIsEnumerable,C=s("symbol-registry"),z=s("symbols"),W=s("op-symbols"),D=Object.prototype,V="function"==typeof j,B=r.QObject,U=!B||!B.prototype||!B.prototype.findChild,G=i&&f(function(){return 7!=_(F({},"a",{get:function(){return F(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=T(D,n);r&&delete D[n],F(t,n,e),r&&t!==D&&F(D,n,r)}:F,H=function(t){var n=z[t]=_(j.prototype);return n._k=t,n},q=V&&"symbol"==typeof j.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof j},Y=function(t,n,e){return t===D&&Y(W,n,e),m(t),n=x(n,!0),m(e),o(z,n)?(e.enumerable?(o(t,N)&&t[N][n]&&(t[N][n]=!1),e=_(e,{enumerable:S(0,!1)})):(o(t,N)||F(t,N,S(1,{})),t[N][n]=!0),G(t,n,e)):F(t,n,e)},J=function(t,n){m(t);for(var e,r=y(n=w(n)),o=0,i=r.length;i>o;)Y(t,e=r[o++],n[e]);return t},K=function(t){var n=L.call(this,t=x(t,!0));return!(this===D&&o(z,t)&&!o(W,t))&&(!(n||!o(this,t)||!o(z,t)||o(this,N)&&this[N][t])||n)},X=function(t,n){if(t=w(t),n=x(n,!0),t!==D||!o(z,n)||o(W,n)){var e=T(t,n);return!e||!o(z,n)||o(t,N)&&t[N][n]||(e.enumerable=!0),e}},$=function(t){for(var n,e=I(w(t)),r=[],i=0;e.length>i;)o(z,n=e[i++])||n==N||n==c||r.push(n);return r},Q=function(t){for(var n,e=t===D,r=I(e?W:w(t)),i=[],u=0;r.length>u;)!o(z,n=r[u++])||e&&!o(D,n)||i.push(z[n]);return i};V||(a((j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),n=function(e){this===D&&n.call(W,e),o(this,N)&&o(this[N],t)&&(this[N][t]=!1),G(this,t,S(1,e))};return i&&U&&G(D,t,{configurable:!0,set:n}),H(t)}).prototype,"toString",function(){return this._k}),E.f=X,M.f=Y,e(159).f=O.f=$,e(115).f=K,e(158).f=Q,i&&!e(75)&&a(D,"propertyIsEnumerable",K,!0),d.f=function(t){return H(h(t))}),u(u.G+u.W+u.F*!V,{Symbol:j});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Z.length>tt;)h(Z[tt++]);for(var nt=P(h.store),et=0;nt.length>et;)v(nt[et++]);u(u.S+u.F*!V,"Symbol",{for:function(t){return o(C,t+="")?C[t]:C[t]=j(t)},keyFor:function(t){if(!q(t))throw TypeError(t+" is not a symbol!");for(var n in C)if(C[n]===t)return n},useSetter:function(){U=!0},useSimple:function(){U=!1}}),u(u.S+u.F*!V,"Object",{create:function(t,n){return void 0===n?_(t):J(_(t),n)},defineProperty:Y,defineProperties:J,getOwnPropertyDescriptor:X,getOwnPropertyNames:$,getOwnPropertySymbols:Q}),A&&u(u.S+u.F*(!V||f(function(){var t=j();return"[null]"!=k([t])||"{}"!=k({a:t})||"{}"!=k(Object(t))})),"JSON",{stringify:function(t){for(var n,e,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(e=n=r[1],(b(n)||void 0!==t)&&!q(t))return g(n)||(n=function(t,n){if("function"==typeof e&&(n=e.call(this,t,n)),!q(n))return n}),r[1]=n,k.apply(A,r)}}),j.prototype[R]||e(51)(j.prototype,R,j.prototype.valueOf),l(j,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,n,e){var r=e(76)("meta"),o=e(52),i=e(44),u=e(42).f,a=0,c=Object.isExtensible||function(){return!0},f=!e(60)(function(){return c(Object.preventExtensions({}))}),s=function(t){u(t,r,{value:{i:"O"+ ++a,w:{}}})},l=t.exports={KEY:r,NEED:!1,fastKey:function(t,n){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!c(t))return"F";if(!n)return"E";s(t)}return t[r].i},getWeak:function(t,n){if(!i(t,r)){if(!c(t))return!0;if(!n)return!1;s(t)}return t[r].w},onFreeze:function(t){return f&&l.NEED&&c(t)&&!i(t,r)&&s(t),t}}},function(t,n,e){var r=e(110),o=e(158),i=e(115);t.exports=function(t){var n=r(t),e=o.f;if(e)for(var u,a=e(t),c=i.f,f=0;a.length>f;)c.call(t,u=a[f++])&&n.push(u);return n}},function(t,n,e){var r=e(157);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){var r=e(53),o=e(159).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return u.slice()}}(t):o(r(t))}},function(t,n){},function(t,n,e){e(114)("asyncIterator")},function(t,n,e){e(114)("observable")},function(t,n,e){"use strict";n.__esModule=!0;var r=u(e(393)),o=u(e(397)),i=u(e(153));function u(t){return t&&t.__esModule?t:{default:t}}n.default=function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+(void 0===n?"undefined":(0,i.default)(n)));t.prototype=(0,o.default)(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(r.default?(0,r.default)(t,n):t.__proto__=n)}},function(t,n,e){t.exports={default:e(394),__esModule:!0}},function(t,n,e){e(395),t.exports=e(23).Object.setPrototypeOf},function(t,n,e){var r=e(41);r(r.S,"Object",{setPrototypeOf:e(396).set})},function(t,n,e){var r=e(52),o=e(59),i=function(t,n){if(o(t),!r(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,r){try{(r=e(148)(Function.call,e(160).f(Object.prototype,"__proto__").set,2))(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,e){return i(t,e),n?t.__proto__=e:r(t,e),t}}({},!1):void 0),check:i}},function(t,n,e){t.exports={default:e(398),__esModule:!0}},function(t,n,e){e(399);var r=e(23).Object;t.exports=function(t,n){return r.create(t,n)}},function(t,n,e){var r=e(41);r(r.S,"Object",{create:e(109)})},function(t,n,e){t.exports=e(401)()},function(t,n,e){"use strict";var r=e(402);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,n,e,o,i,u){if(u!==r){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 n(){return t}t.isRequired=t;var e={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:n,element:t,elementType:t,instanceOf:n,node:t,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:i,resetWarningCache:o};return e.PropTypes=e,e}},function(t,n,e){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,n){t.exports=ReactDOM},function(t,n,e){"use strict";t.exports=e(405)},function(t,n,e){n.iframeResizer=e(406),n.iframeResizerContentWindow=e(407)},function(t,n,e){var r,o,i;!function(e){"use strict";if("undefined"!=typeof window){var u,a=0,c=!1,f=!1,s="message".length,l="[iFrameSizer]",p=l.length,h=null,d=window.requestAnimationFrame,v={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},y={},g=null,m={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",closedCallback:function(){},initCallback:function(){},messageCallback:function(){P("MessageCallback function not defined")},resizedCallback:function(){},scrollCallback:function(){return!0}},b={};window.jQuery&&((u=window.jQuery).fn?u.fn.iFrameResize||(u.fn.iFrameResize=function(t){return this.filter("iframe").each(function(n,e){V(e,t)}).end()}):M("","Unable to bind to jQuery, it is not fully loaded.")),o=[],(i="function"==typeof(r=q)?r.apply(n,o):r)===e||(t.exports=i),window.iFrameResize=window.iFrameResize||q()}function w(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function x(t,n,e){"addEventListener"in window?t.addEventListener(n,e,!1):"attachEvent"in window&&t.attachEvent("on"+n,e)}function S(t,n,e){"removeEventListener"in window?t.removeEventListener(n,e,!1):"detachEvent"in window&&t.detachEvent("on"+n,e)}function _(t){return l+"["+function(t){var n="Host page: "+t;return window.top!==window.self&&(n=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+t:"Nested host page: "+t),n}(t)+"]"}function O(t){return y[t]?y[t].log:c}function E(t,n){T("log",t,n,O(t))}function M(t,n){T("info",t,n,O(t))}function P(t,n){T("warn",t,n,!0)}function T(t,n,e,r){!0===r&&"object"==typeof window.console&&console[t](_(n),e)}function F(t){function n(){e("Height"),e("Width"),z(function(){C(m),N(w),c("resizedCallback",m)},m,"init")}function e(t){var n=Number(y[w]["max"+t]),e=Number(y[w]["min"+t]),r=t.toLowerCase(),o=Number(m[r]);E(w,"Checking "+r+" is in range "+e+"-"+n),o<e&&(o=e,E(w,"Set "+r+" to min value")),o>n&&(o=n,E(w,"Set "+r+" to max value")),m[r]=""+o}function r(t){return g.substr(g.indexOf(":")+s+t)}function o(t,n){var e,r,o;e=function(){var e,r;W("Send Page Info","pageInfo:"+(e=document.body.getBoundingClientRect(),r=m.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:r.height,iframeWidth:r.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(r.top-e.top,10),offsetLeft:parseInt(r.left-e.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset})),t,n)},r=32,b[o=n]||(b[o]=setTimeout(function(){b[o]=null,e()},r))}function i(t){var n=t.getBoundingClientRect();return k(w),{x:Math.floor(Number(n.left)+Number(h.x)),y:Math.floor(Number(n.top)+Number(h.y))}}function u(t){var n=t?i(m.iframe):{x:0,y:0},e={x:Number(m.width)+n.x,y:Number(m.height)+n.y};E(w,"Reposition requested from iFrame (offset x:"+n.x+" y:"+n.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(t?"Offset":"")](e.x,e.y):P(w,"Unable to scroll to requested position, window.parentIFrame not found"):(h=e,a(),E(w,"--"))}function a(){!1!==c("scrollCallback",h)?N(w):R()}function c(t,n){return I(w,t,n)}var f,d,v,g=t.data,m={},w=null;"[iFrameResizerChild]Ready"===g?function(){for(var t in y)W("iFrame requested init",D(t),document.getElementById(t),t)}():l===(""+g).substr(0,p)&&g.substr(p).split(":")[0]in y?(v=g.substr(p).split(":"),m={iframe:y[v[0]]&&y[v[0]].iframe,id:v[0],height:v[1],width:v[2],type:v[3]},w=m.id,y[w]&&(y[w].loaded=!0),(d=m.type in{true:1,false:1,undefined:1})&&E(w,"Ignoring init message from meta parent page"),!d&&function(t){var n=!0;return y[t]||(n=!1,P(m.type+" No settings for "+t+". Message was: "+g)),n}(w)&&(E(w,"Received: "+g),f=!0,null===m.iframe&&(P(w,"IFrame ("+m.id+") not found"),f=!1),f&&function(){var n,e=t.origin,r=y[w]&&y[w].checkOrigin;if(r&&""+e!="null"&&!(r.constructor===Array?function(){var t=0,n=!1;for(E(w,"Checking connection is from allowed list of origins: "+r);t<r.length;t++)if(r[t]===e){n=!0;break}return n}():(n=y[w]&&y[w].remoteHost,E(w,"Checking connection is from: "+n),e===n)))throw new Error("Unexpected message received from: "+e+" for "+m.iframe.id+". Message was: "+t.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(y[w]&&y[w].firstRun&&y[w]&&(y[w].firstRun=!1),m.type){case"close":y[w].closeRequestCallback?I(w,"closeRequestCallback",y[w].iframe):A(m.iframe);break;case"message":p=r(6),E(w,"MessageCallback passed: {iframe: "+m.iframe.id+", message: "+p+"}"),c("messageCallback",{iframe:m.iframe,message:JSON.parse(p)}),E(w,"--");break;case"scrollTo":u(!1);break;case"scrollToOffset":u(!0);break;case"pageInfo":o(y[w]&&y[w].iframe,w),function(){function t(t,r){function i(){y[e]?o(y[e].iframe,e):n()}["scroll","resize"].forEach(function(n){E(e,t+n+" listener for sendPageInfo"),r(window,n,i)})}function n(){t("Remove ",S)}var e=w;t("Add ",x),y[e]&&(y[e].stopPageInfo=n)}();break;case"pageInfoStop":y[w]&&y[w].stopPageInfo&&(y[w].stopPageInfo(),delete y[w].stopPageInfo);break;case"inPageLink":t=r(9),f=t.split("#")[1]||"",s=decodeURIComponent(f),(l=document.getElementById(s)||document.getElementsByName(s)[0])?(e=i(l),E(w,"Moving to in page link (#"+f+") at x: "+e.x+" y: "+e.y),h={x:e.x,y:e.y},a(),E(w,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(f):E(w,"In page link #"+f+" not found and window.parentIFrame not found"):E(w,"In page link #"+f+" not found");break;case"reset":L(m);break;case"init":n(),c("initCallback",m.iframe);break;default:n()}var t,e,f,s,l,p}())):M(w,"Ignored: "+g)}function I(t,n,e){var r=null,o=null;if(y[t]){if("function"!=typeof(r=y[t][n]))throw new TypeError(n+" on iFrame["+t+"] is not a function");o=r(e)}return o}function j(t){var n=t.id;delete y[n]}function A(t){var n=t.id;E(n,"Removing iFrame: "+n);try{t.parentNode&&t.parentNode.removeChild(t)}catch(t){}I(n,"closedCallback",n),E(n,"--"),j(t)}function k(t){null===h&&E(t,"Get page position: "+(h={x:window.pageXOffset!==e?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==e?window.pageYOffset:document.documentElement.scrollTop}).x+","+h.y)}function N(t){null!==h&&(window.scrollTo(h.x,h.y),E(t,"Set page position: "+h.x+","+h.y),R())}function R(){h=null}function L(t){E(t.id,"Size reset requested by "+("init"===t.type?"host page":"iFrame")),k(t.id),z(function(){C(t),W("reset","reset",t.iframe,t.id)},t,"reset")}function C(t){function n(n){f||"0"!==t[n]||(f=!0,E(r,"Hidden iFrame detected, creating visibility listener"),function(){function t(){function t(t){function n(n){return"0px"===(y[t]&&y[t].iframe.style[n])}y[t]&&null!==y[t].iframe.offsetParent&&(n("height")||n("width"))&&W("Visibility change","resize",y[t].iframe,t)}for(var n in y)t(n)}function n(n){E("window","Mutation observed: "+n[0].target+" "+n[0].type),B(t,16)}var e=w();e&&(r=document.querySelector("body"),new e(n).observe(r,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}));var r}())}function e(e){!function(n){t.id?(t.iframe.style[n]=t[n]+"px",E(t.id,"IFrame ("+r+") "+n+" set to "+t[n]+"px")):E("undefined","messageData id not set")}(e),n(e)}var r=t.iframe.id;y[r]&&(y[r].sizeHeight&&e("height"),y[r].sizeWidth&&e("width"))}function z(t,n,e){e!==n.type&&d?(E(n.id,"Requesting animation frame"),d(t)):t()}function W(t,n,e,r,o){var i,u=!1;r=r||e.id,y[r]&&(e&&"contentWindow"in e&&null!==e.contentWindow?(i=y[r]&&y[r].targetOrigin,E(r,"["+t+"] Sending msg to iframe["+r+"] ("+n+") targetOrigin: "+i),e.contentWindow.postMessage(l+n,i)):P(r,"["+t+"] IFrame("+r+") not found"),o&&y[r]&&y[r].warningTimeout&&(y[r].msgTimeout=setTimeout(function(){!y[r]||y[r].loaded||u||(u=!0,P(r,"IFrame has not responded within "+y[r].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."))},y[r].warningTimeout)))}function D(t){return t+":"+y[t].bodyMarginV1+":"+y[t].sizeWidth+":"+y[t].log+":"+y[t].interval+":"+y[t].enablePublicMethods+":"+y[t].autoResize+":"+y[t].bodyMargin+":"+y[t].heightCalculationMethod+":"+y[t].bodyBackground+":"+y[t].bodyPadding+":"+y[t].tolerance+":"+y[t].inPageLinks+":"+y[t].resizeFrom+":"+y[t].widthCalculationMethod}function V(t,n){var r,o,i=function(e){var r;return e,""===e&&(t.id=(r=n&&n.id||m.id+a++,null!==document.getElementById(r)&&(r+=a++),e=r),c=(n||{}).log,e,E(e,"Added missing iframe ID: "+e+" ("+t.src+")")),e}(t.id);i in y&&"iFrameResizer"in t?P(i,"Ignored iFrame, already setup."):(!function(n){var e;n=n||{},y[i]={firstRun:!0,iframe:t,remoteHost:t.src.split("/").slice(0,3).join("/")},function(t){if("object"!=typeof t)throw new TypeError("Options is not an object")}(n),function(t){for(var n in m)m.hasOwnProperty(n)&&(y[i][n]=t.hasOwnProperty(n)?t[n]:m[n])}(n),y[i]&&(y[i].targetOrigin=!0===y[i].checkOrigin?""===(e=y[i].remoteHost)||"file://"===e?"*":e:"*")}(n),function(){switch(E(i,"IFrame scrolling "+(y[i]&&y[i].scrolling?"enabled":"disabled")+" for "+i),t.style.overflow=!1===(y[i]&&y[i].scrolling)?"hidden":"auto",y[i]&&y[i].scrolling){case"omit":break;case!0:t.scrolling="yes";break;case!1:t.scrolling="no";break;default:t.scrolling=y[i]?y[i].scrolling:"no"}}(),function(){function n(n){1/0!==y[i][n]&&0!==y[i][n]&&(t.style[n]=y[i][n]+"px",E(i,"Set "+n+" = "+y[i][n]+"px"))}function e(t){if(y[i]["min"+t]>y[i]["max"+t])throw new Error("Value for min"+t+" can not be greater than max"+t)}e("Height"),e("Width"),n("maxHeight"),n("minHeight"),n("maxWidth"),n("minWidth")}(),"number"!=typeof(y[i]&&y[i].bodyMargin)&&"0"!==(y[i]&&y[i].bodyMargin)||(y[i].bodyMarginV1=y[i].bodyMargin,y[i].bodyMargin=y[i].bodyMargin+"px"),r=D(i),(o=w())&&function(n){t.parentNode&&new n(function(n){n.forEach(function(n){Array.prototype.slice.call(n.removedNodes).forEach(function(n){n===t&&A(t)})})}).observe(t.parentNode,{childList:!0})}(o),x(t,"load",function(){var n,o;W("iFrame.onload",r,t,e,!0),n=y[i]&&y[i].firstRun,o=y[i]&&y[i].heightCalculationMethod in v,!n&&o&&L({iframe:t,height:0,width:0,type:"init"})}),W("init",r,t,e,!0),Function.prototype.bind&&y[i]&&(y[i].iframe.iFrameResizer={close:A.bind(null,y[i].iframe),removeListeners:j.bind(null,y[i].iframe),resize:W.bind(null,"Window resize","resize",y[i].iframe),moveToAnchor:function(t){W("Move to anchor","moveToAnchor:"+t,y[i].iframe,i)},sendMessage:function(t){W("Send Message","message:"+(t=JSON.stringify(t)),y[i].iframe,i)}}))}function B(t,n){null===g&&(g=setTimeout(function(){g=null,t()},n))}function U(t){E("window","Trigger event: "+t),B(function(){H("Window "+t,"resize")},16)}function G(){"hidden"!==document.visibilityState&&(E("document","Trigger event: Visiblity change"),B(function(){H("Tab Visable","resize")},16))}function H(t,n){function e(t){return y[t]&&"parent"===y[t].resizeFrom&&y[t].autoResize&&!y[t].firstRun}for(var r in y)e(r)&&W(t,n,document.getElementById(r),r)}function q(){function t(t,e){e&&(!function(){if(!e.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==e.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+e.tagName+">")}(),V(e,t),n.push(e))}var n;return function(){var t,n=["moz","webkit","o","ms"];for(t=0;t<n.length&&!d;t+=1)d=window[n[t]+"RequestAnimationFrame"];d||E("setup","RequestAnimationFrame not supported")}(),x(window,"message",F),x(window,"resize",function(){U("resize")}),x(document,"visibilitychange",G),x(document,"-webkit-visibilitychange",G),x(window,"focusin",function(){U("focus")}),x(window,"focus",function(){U("focus")}),function(r,o){switch(n=[],function(t){t&&t.enablePublicMethods&&P("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(r),typeof o){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(o||"iframe"),t.bind(e,r));break;case"object":t(r,o);break;default:throw new TypeError("Unexpected data type ("+typeof o+")")}return n}}}()},function(t,n,e){!function(n){"use strict";if("undefined"!=typeof window){var e=!0,r=10,o="",i=0,u="",a=null,c="",f=!1,s={resize:1,click:1},l=128,p=!0,h=1,d="bodyOffset",v=d,y=!0,g="",m={},b=32,w=null,x=!1,S="[iFrameSizer]",_=S.length,O="",E={max:1,min:1,bodyScroll:1,documentElementScroll:1},M="child",P=!0,T=window.parent,F="*",I=0,j=!1,A=null,k=16,N=1,R="scroll",L=R,C=window,z=function(){ct("MessageCallback function not defined")},W=function(){},D=function(){},V={height:function(){return ct("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return ct("Custom width calculation function not defined"),document.body.scrollWidth}},B={},U=!1;try{var G=Object.create({},{passive:{get:function(){U=!0}},once:{get:function(){!0}}});window.addEventListener("test",et,G),window.removeEventListener("test",et,G)}catch(t){}var H,q,Y,J,K,X,$,Q=Date.now||function(){return(new Date).getTime()},Z={bodyOffset:function(){return document.body.offsetHeight+bt("marginTop")+bt("marginBottom")},offset:function(){return Z.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return V.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,xt(Z))},min:function(){return Math.min.apply(null,xt(Z))},grow:function(){return Z.max()},lowestElement:function(){return Math.max(Z.bodyOffset()||Z.documentElementOffset(),wt("bottom",_t()))},taggedElement:function(){return St("bottom","data-iframe-height")}},tt={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return V.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(tt.bodyScroll(),tt.documentElementScroll())},max:function(){return Math.max.apply(null,xt(tt))},min:function(){return Math.min.apply(null,xt(tt))},rightMostElement:function(){return wt("right",_t())},taggedElement:function(){return St("right","data-iframe-width")}},nt=(H=Ot,K=null,X=0,$=function(){X=Q(),K=null,J=H.apply(q,Y),K||(q=Y=null)},function(){var t=Q();X||(X=t);var n=k-(t-X);return q=this,Y=arguments,n<=0||n>k?(K&&(clearTimeout(K),K=null),X=t,J=H.apply(q,Y),K||(q=Y=null)):K||(K=setTimeout($,n)),J});rt(window,"message",It),rt(window,"readystatechange",jt),jt()}function et(){}function rt(t,n,e,r){"addEventListener"in window?t.addEventListener(n,e,!!U&&(r||{})):"attachEvent"in window&&t.attachEvent("on"+n,e)}function ot(t,n,e){"removeEventListener"in window?t.removeEventListener(n,e,!1):"detachEvent"in window&&t.detachEvent("on"+n,e)}function it(t){return t.charAt(0).toUpperCase()+t.slice(1)}function ut(t){return S+"["+O+"] "+t}function at(t){x&&"object"==typeof window.console&&console.log(ut(t))}function ct(t){"object"==typeof window.console&&console.warn(ut(t))}function ft(){var t;!function(){function t(t){return"true"===t}var r=g.substr(_).split(":");O=r[0],i=n!==r[1]?Number(r[1]):i,f=n!==r[2]?t(r[2]):f,x=n!==r[3]?t(r[3]):x,b=n!==r[4]?Number(r[4]):b,e=n!==r[6]?t(r[6]):e,u=r[7],v=n!==r[8]?r[8]:v,o=r[9],c=r[10],I=n!==r[11]?Number(r[11]):I,m.enable=n!==r[12]&&t(r[12]),M=n!==r[13]?r[13]:M,L=n!==r[14]?r[14]:L}(),at("Initialising iFrame ("+location.href+")"),function(){function t(t,n){return"function"==typeof t&&(at("Setup custom "+n+"CalcMethod"),V[n]=t,t="custom"),t}"iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(n=window.iFrameResizer,at("Reading data from page: "+JSON.stringify(n)),z="messageCallback"in n?n.messageCallback:z,W="readyCallback"in n?n.readyCallback:W,F="targetOrigin"in n?n.targetOrigin:F,v="heightCalculationMethod"in n?n.heightCalculationMethod:v,L="widthCalculationMethod"in n?n.widthCalculationMethod:L,v=t(v,"height"),L=t(L,"width"));var n;at("TargetOrigin for parent set to: "+F)}(),function(){n===u&&(u=i+"px");st("margin",function(t,n){-1!==n.indexOf("-")&&(ct("Negative CSS value ignored for "+t),n="");return n}("margin",u))}(),st("background",o),st("padding",c),(t=document.createElement("div")).style.clear="both",t.style.display="block",document.body.appendChild(t),dt(),vt(),document.documentElement.style.height="",document.body.style.height="",at('HTML & body height set to "auto"'),at("Enable public methods"),C.parentIFrame={autoResize:function(t){return!0===t&&!1===e?(e=!0,yt()):!1===t&&!0===e&&(e=!1,gt()),e},close:function(){Ft(0,0,"close"),at("Disable outgoing messages"),P=!1,at("Remove event listener: Message"),ot(window,"message",It),!0===e&>()},getId:function(){return O},getPageInfo:function(t){"function"==typeof t?(D=t,Ft(0,0,"pageInfo")):(D=function(){},Ft(0,0,"pageInfoStop"))},moveToAnchor:function(t){m.findTarget(t)},reset:function(){Tt("parentIFrame.reset")},scrollTo:function(t,n){Ft(n,t,"scrollTo")},scrollToOffset:function(t,n){Ft(n,t,"scrollToOffset")},sendMessage:function(t,n){Ft(0,0,"message",JSON.stringify(t),n)},setHeightCalculationMethod:function(t){v=t,dt()},setWidthCalculationMethod:function(t){L=t,vt()},setTargetOrigin:function(t){at("Set targetOrigin: "+t),F=t},size:function(t,n){var e=(t||"")+(n?","+n:"");Et("size","parentIFrame.size("+e+")",t,n)}},yt(),m=function(){function t(t){var e=t.getBoundingClientRect(),r={x:window.pageXOffset!==n?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==n?window.pageYOffset:document.documentElement.scrollTop};return{x:parseInt(e.left,10)+parseInt(r.x,10),y:parseInt(e.top,10)+parseInt(r.y,10)}}function e(e){var r=e.split("#")[1]||e,o=decodeURIComponent(r),i=document.getElementById(o)||document.getElementsByName(o)[0];n!==i?function(n){var e=t(n);at("Moving to in page link (#"+r+") at x: "+e.x+" y: "+e.y),Ft(e.y,e.x,"scrollToOffset")}(i):(at("In page link (#"+r+") not found in iFrame, so sending to parent"),Ft(0,0,"inPageLink","#"+r))}function r(){""!==location.hash&&"#"!==location.hash&&e(location.href)}m.enable?Array.prototype.forEach&&document.querySelectorAll?(at("Setting up location.hash handlers"),Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),function(t){"#"!==t.getAttribute("href")&&rt(t,"click",function(t){t.preventDefault(),e(this.getAttribute("href"))})}),rt(window,"hashchange",r),setTimeout(r,l)):ct("In page linking not fully supported in this browser! (See README.md for IE8 workaround)"):at("In page linking not enabled");return{findTarget:e}}(),Et("init","Init message from host page"),W()}function st(t,e){n!==e&&""!==e&&"null"!==e&&(document.body.style[t]=e,at("Body "+t+' set to "'+e+'"'))}function lt(t){var n={add:function(n){function e(){Et(t.eventName,t.eventType)}B[n]=e,rt(window,n,e,{passive:!0})},remove:function(t){var n=B[t];delete B[t],ot(window,t,n)}};t.eventNames&&Array.prototype.map?(t.eventName=t.eventNames[0],t.eventNames.map(n[t.method])):n[t.method](t.eventName),at(it(t.method)+" event listener: "+t.eventType)}function pt(t){lt({method:t,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),lt({method:t,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),lt({method:t,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),lt({method:t,eventType:"Input",eventName:"input"}),lt({method:t,eventType:"Mouse Up",eventName:"mouseup"}),lt({method:t,eventType:"Mouse Down",eventName:"mousedown"}),lt({method:t,eventType:"Orientation Change",eventName:"orientationchange"}),lt({method:t,eventType:"Print",eventName:["afterprint","beforeprint"]}),lt({method:t,eventType:"Ready State Change",eventName:"readystatechange"}),lt({method:t,eventType:"Touch Start",eventName:"touchstart"}),lt({method:t,eventType:"Touch End",eventName:"touchend"}),lt({method:t,eventType:"Touch Cancel",eventName:"touchcancel"}),lt({method:t,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),lt({method:t,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),lt({method:t,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}),"child"===M&<({method:t,eventType:"IFrame Resized",eventName:"resize"})}function ht(t,n,e,r){return n!==t&&(t in e||(ct(t+" is not a valid option for "+r+"CalculationMethod."),t=n),at(r+' calculation method set to "'+t+'"')),t}function dt(){v=ht(v,d,Z,"height")}function vt(){L=ht(L,R,tt,"width")}function yt(){var t;!0===e?(pt("add"),t=0>b,window.MutationObserver||window.WebKitMutationObserver?t?mt():a=function(){function t(t){function n(t){!1===t.complete&&(at("Attach listeners to "+t.src),t.addEventListener("load",o,!1),t.addEventListener("error",i,!1),c.push(t))}"attributes"===t.type&&"src"===t.attributeName?n(t.target):"childList"===t.type&&Array.prototype.forEach.call(t.target.querySelectorAll("img"),n)}function e(t){at("Remove listeners from "+t.src),t.removeEventListener("load",o,!1),t.removeEventListener("error",i,!1),function(t){c.splice(c.indexOf(t),1)}(t)}function r(t,r,o){e(t.target),Et(r,o+": "+t.target.src,n,n)}function o(t){r(t,"imageLoad","Image loaded")}function i(t){r(t,"imageLoadFailed","Image load failed")}function u(n){Et("mutationObserver","mutationObserver: "+n[0].target+" "+n[0].type),n.forEach(t)}var a,c=[],f=window.MutationObserver||window.WebKitMutationObserver,s=(a=document.querySelector("body"),s=new f(u),at("Create body MutationObserver"),s.observe(a,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}),s);return{disconnect:function(){"disconnect"in s&&(at("Disconnect body MutationObserver"),s.disconnect(),c.forEach(e))}}}():(at("MutationObserver not supported in this browser!"),mt())):at("Auto Resize disabled")}function gt(){pt("remove"),null!==a&&a.disconnect(),clearInterval(w)}function mt(){0!==b&&(at("setInterval: "+b+"ms"),w=setInterval(function(){Et("interval","setInterval: "+b)},Math.abs(b)))}function bt(t,n){var e=0;return n=n||document.body,e="defaultView"in document&&"getComputedStyle"in document.defaultView?null!==(e=document.defaultView.getComputedStyle(n,null))?e[t]:0:function(t){if(/^\d+(px)?$/i.test(t))return parseInt(t,r);var e=n.style.left,o=n.runtimeStyle.left;return n.runtimeStyle.left=n.currentStyle.left,n.style.left=t||0,t=n.style.pixelLeft,n.style.left=e,n.runtimeStyle.left=o,t}(n.currentStyle[t]),parseInt(e,r)}function wt(t,n){for(var e=n.length,r=0,o=0,i=it(t),u=Q(),a=0;a<e;a++)(r=n[a].getBoundingClientRect()[t]+bt("margin"+i,n[a]))>o&&(o=r);return u=Q()-u,at("Parsed "+e+" HTML elements"),at("Element position calculated in "+u+"ms"),function(t){t>k/2&&at("Event throttle increased to "+(k=2*t)+"ms")}(u),o}function xt(t){return[t.bodyOffset(),t.bodyScroll(),t.documentElementOffset(),t.documentElementScroll()]}function St(t,n){var e=document.querySelectorAll("["+n+"]");return 0===e.length&&(ct("No tagged elements ("+n+") found on page"),document.querySelectorAll("body *")),wt(t,e)}function _t(){return document.querySelectorAll("body *")}function Ot(t,e,r,o){var i,u;!function(){function t(t,n){return!(Math.abs(t-n)<=I)}return i=n!==r?r:Z[v](),u=n!==o?o:tt[L](),t(h,i)||f&&t(N,u)}()&&"init"!==t?t in{init:1,interval:1,size:1}||!(v in E||f&&L in E)?t in{interval:1}||at("No change in size detected"):Tt(e):(Mt(),Ft(h=i,N=u,t))}function Et(t,n,e,r){j&&t in s?at("Trigger event cancelled: "+t):(t in{reset:1,resetPage:1,init:1}||at("Trigger event: "+n),"init"===t?Ot(t,n,e,r):nt(t,n,e,r))}function Mt(){j||(j=!0,at("Trigger event lock on")),clearTimeout(A),A=setTimeout(function(){j=!1,at("Trigger event lock off"),at("--")},l)}function Pt(t){h=Z[v](),N=tt[L](),Ft(h,N,t)}function Tt(t){var n=v;v=d,at("Reset trigger event: "+t),Mt(),Pt("reset"),v=n}function Ft(t,e,r,o,i){var u;!0===P&&(n===i?i=F:at("Message targetOrigin: "+i),at("Sending message to host page ("+(u=O+":"+t+":"+e+":"+r+(n!==o?":"+o:""))+")"),T.postMessage(S+u,i))}function It(n){var e={init:function(){g=n.data,T=n.source,ft(),p=!1,setTimeout(function(){y=!1},l)},reset:function(){y?at("Page reset ignored by init"):(at("Page size reset by host page"),Pt("resetPage"))},resize:function(){Et("resizeParent","Parent window requested size check")},moveToAnchor:function(){m.findTarget(o())},inPageLink:function(){this.moveToAnchor()},pageInfo:function(){var t=o();at("PageInfoFromParent called from parent: "+t),D(JSON.parse(t)),at(" --")},message:function(){var t=o();at("MessageCallback called from parent: "+t),z(JSON.parse(t)),at(" --")}};function r(){return n.data.split("]")[1].split(":")[0]}function o(){return n.data.substr(n.data.indexOf(":")+1)}function i(){return n.data.split(":")[2]in{true:1,false:1}}function u(){var o=r();o in e?e[o]():!t.exports&&"iFrameResize"in window||"jQuery"in window&&"iFrameResize"in window.jQuery.prototype||i()||ct("Unexpected message ("+n.data+")")}S===(""+n.data).substr(0,_)&&(!1===p?u():i()?e.init():at('Ignored message of type "'+r()+'". Received before initialization.'))}function jt(){"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}}()}]);
|
1 |
+
!function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},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,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=161)}([function(t,n,e){var r=e(1),o=e(7),i=e(14),u=e(11),a=e(17),c=function(t,n,e){var f,s,l,p,h=t&c.F,d=t&c.G,v=t&c.S,y=t&c.P,g=t&c.B,m=d?r:v?r[n]||(r[n]={}):(r[n]||{}).prototype,b=d?o:o[n]||(o[n]={}),w=b.prototype||(b.prototype={});for(f in d&&(e=n),e)l=((s=!h&&m&&void 0!==m[f])?m:e)[f],p=g&&s?a(l,r):y&&"function"==typeof l?a(Function.call,l):l,m&&u(m,f,l,t&c.U),b[f]!=l&&i(b,f,p),y&&w[f]!=l&&(w[f]=l)};r.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,e){var r=e(4);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){var r=e(61)("wks"),o=e(31),i=e(1).Symbol,u="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=r},function(t,n,e){var r=e(19),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,n){var e=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=e)},function(t,n,e){t.exports=!e(2)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(3),o=e(116),i=e(28),u=Object.defineProperty;n.f=e(8)?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return u(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){var r=e(25);t.exports=function(t){return Object(r(t))}},function(t,n,e){var r=e(1),o=e(14),i=e(13),u=e(31)("src"),a=e(168),c=(""+a).split("toString");e(7).inspectSource=function(t){return a.call(t)},(t.exports=function(t,n,e,a){var f="function"==typeof e;f&&(i(e,"name")||o(e,"name",n)),t[n]!==e&&(f&&(i(e,u)||o(e,u,t[n]?""+t[n]:c.join(String(n)))),t===r?t[n]=e:a?t[n]?t[n]=e:o(t,n,e):(delete t[n],o(t,n,e)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[u]||a.call(this)})},function(t,n,e){var r=e(0),o=e(2),i=e(25),u=/"/g,a=function(t,n,e,r){var o=String(i(t)),a="<"+n;return""!==e&&(a+=" "+e+'="'+String(r).replace(u,""")+'"'),a+">"+o+"</"+n+">"};t.exports=function(t,n){var e={};e[t]=n(a),r(r.P+r.F*o(function(){var n=""[t]('"');return n!==n.toLowerCase()||n.split('"').length>3}),"String",e)}},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){var r=e(9),o=e(30);t.exports=e(8)?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){var r=e(54),o=e(25);t.exports=function(t){return r(o(t))}},function(t,n,e){"use strict";var r=e(2);t.exports=function(t,n){return!!t&&r(function(){n?t.call(null,function(){},1):t.call(null)})}},function(t,n,e){var r=e(18);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n,e){var r=e(55),o=e(30),i=e(15),u=e(28),a=e(13),c=e(116),f=Object.getOwnPropertyDescriptor;n.f=e(8)?f:function(t,n){if(t=i(t),n=u(n,!0),c)try{return f(t,n)}catch(t){}if(a(t,n))return o(!r.f.call(t,n),t[n])}},function(t,n,e){var r=e(0),o=e(7),i=e(2);t.exports=function(t,n){var e=(o.Object||{})[t]||Object[t],u={};u[t]=n(e),r(r.S+r.F*i(function(){e(1)}),"Object",u)}},function(t,n,e){var r=e(17),o=e(54),i=e(10),u=e(6),a=e(132);t.exports=function(t,n){var e=1==t,c=2==t,f=3==t,s=4==t,l=6==t,p=5==t||l,h=n||a;return function(n,a,d){for(var v,y,g=i(n),m=o(g),b=r(a,d,3),w=u(m.length),x=0,S=e?h(n,w):c?h(n,0):void 0;w>x;x++)if((p||x in m)&&(y=b(v=m[x],x,g),t))if(e)S[x]=y;else if(y)switch(t){case 3:return!0;case 5:return v;case 6:return x;case 2:S.push(v)}else if(s)return!1;return l?-1:f||s?s:S}}},function(t,n){var e=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=e)},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,e){"use strict";if(e(8)){var r=e(32),o=e(1),i=e(2),u=e(0),a=e(72),c=e(100),f=e(17),s=e(48),l=e(30),p=e(14),h=e(49),d=e(19),v=e(6),y=e(143),g=e(34),m=e(28),b=e(13),w=e(56),x=e(4),S=e(10),_=e(92),O=e(35),E=e(37),M=e(36).f,P=e(94),T=e(31),F=e(5),I=e(22),j=e(62),A=e(57),k=e(96),N=e(46),R=e(65),L=e(47),C=e(95),z=e(134),W=e(9),D=e(20),V=W.f,B=D.f,U=o.RangeError,G=o.TypeError,H=o.Uint8Array,q=Array.prototype,Y=c.ArrayBuffer,J=c.DataView,K=I(0),X=I(2),$=I(3),Q=I(4),Z=I(5),tt=I(6),nt=j(!0),et=j(!1),rt=k.values,ot=k.keys,it=k.entries,ut=q.lastIndexOf,at=q.reduce,ct=q.reduceRight,ft=q.join,st=q.sort,lt=q.slice,pt=q.toString,ht=q.toLocaleString,dt=F("iterator"),vt=F("toStringTag"),yt=T("typed_constructor"),gt=T("def_constructor"),mt=a.CONSTR,bt=a.TYPED,wt=a.VIEW,xt=I(1,function(t,n){return Mt(A(t,t[gt]),n)}),St=i(function(){return 1===new H(new Uint16Array([1]).buffer)[0]}),_t=!!H&&!!H.prototype.set&&i(function(){new H(1).set({})}),Ot=function(t,n){var e=d(t);if(e<0||e%n)throw U("Wrong offset!");return e},Et=function(t){if(x(t)&&bt in t)return t;throw G(t+" is not a typed array!")},Mt=function(t,n){if(!(x(t)&&yt in t))throw G("It is not a typed array constructor!");return new t(n)},Pt=function(t,n){return Tt(A(t,t[gt]),n)},Tt=function(t,n){for(var e=0,r=n.length,o=Mt(t,r);r>e;)o[e]=n[e++];return o},Ft=function(t,n,e){V(t,n,{get:function(){return this._d[e]}})},It=function(t){var n,e,r,o,i,u,a=S(t),c=arguments.length,s=c>1?arguments[1]:void 0,l=void 0!==s,p=P(a);if(null!=p&&!_(p)){for(u=p.call(a),r=[],n=0;!(i=u.next()).done;n++)r.push(i.value);a=r}for(l&&c>2&&(s=f(s,arguments[2],2)),n=0,e=v(a.length),o=Mt(this,e);e>n;n++)o[n]=l?s(a[n],n):a[n];return o},jt=function(){for(var t=0,n=arguments.length,e=Mt(this,n);n>t;)e[t]=arguments[t++];return e},At=!!H&&i(function(){ht.call(new H(1))}),kt=function(){return ht.apply(At?lt.call(Et(this)):Et(this),arguments)},Nt={copyWithin:function(t,n){return z.call(Et(this),t,n,arguments.length>2?arguments[2]:void 0)},every:function(t){return Q(Et(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return C.apply(Et(this),arguments)},filter:function(t){return Pt(this,X(Et(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Z(Et(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(Et(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){K(Et(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return et(Et(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return nt(Et(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ft.apply(Et(this),arguments)},lastIndexOf:function(t){return ut.apply(Et(this),arguments)},map:function(t){return xt(Et(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return at.apply(Et(this),arguments)},reduceRight:function(t){return ct.apply(Et(this),arguments)},reverse:function(){for(var t,n=Et(this).length,e=Math.floor(n/2),r=0;r<e;)t=this[r],this[r++]=this[--n],this[n]=t;return this},some:function(t){return $(Et(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return st.call(Et(this),t)},subarray:function(t,n){var e=Et(this),r=e.length,o=g(t,r);return new(A(e,e[gt]))(e.buffer,e.byteOffset+o*e.BYTES_PER_ELEMENT,v((void 0===n?r:g(n,r))-o))}},Rt=function(t,n){return Pt(this,lt.call(Et(this),t,n))},Lt=function(t){Et(this);var n=Ot(arguments[1],1),e=this.length,r=S(t),o=v(r.length),i=0;if(o+n>e)throw U("Wrong length!");for(;i<o;)this[n+i]=r[i++]},Ct={entries:function(){return it.call(Et(this))},keys:function(){return ot.call(Et(this))},values:function(){return rt.call(Et(this))}},zt=function(t,n){return x(t)&&t[bt]&&"symbol"!=typeof n&&n in t&&String(+n)==String(n)},Wt=function(t,n){return zt(t,n=m(n,!0))?l(2,t[n]):B(t,n)},Dt=function(t,n,e){return!(zt(t,n=m(n,!0))&&x(e)&&b(e,"value"))||b(e,"get")||b(e,"set")||e.configurable||b(e,"writable")&&!e.writable||b(e,"enumerable")&&!e.enumerable?V(t,n,e):(t[n]=e.value,t)};mt||(D.f=Wt,W.f=Dt),u(u.S+u.F*!mt,"Object",{getOwnPropertyDescriptor:Wt,defineProperty:Dt}),i(function(){pt.call({})})&&(pt=ht=function(){return ft.call(this)});var Vt=h({},Nt);h(Vt,Ct),p(Vt,dt,Ct.values),h(Vt,{slice:Rt,set:Lt,constructor:function(){},toString:pt,toLocaleString:kt}),Ft(Vt,"buffer","b"),Ft(Vt,"byteOffset","o"),Ft(Vt,"byteLength","l"),Ft(Vt,"length","e"),V(Vt,vt,{get:function(){return this[bt]}}),t.exports=function(t,n,e,c){var f=t+((c=!!c)?"Clamped":"")+"Array",l="get"+t,h="set"+t,d=o[f],g=d||{},m=d&&E(d),b=!d||!a.ABV,S={},_=d&&d.prototype,P=function(t,e){V(t,e,{get:function(){return function(t,e){var r=t._d;return r.v[l](e*n+r.o,St)}(this,e)},set:function(t){return function(t,e,r){var o=t._d;c&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),o.v[h](e*n+o.o,r,St)}(this,e,t)},enumerable:!0})};b?(d=e(function(t,e,r,o){s(t,d,f,"_d");var i,u,a,c,l=0,h=0;if(x(e)){if(!(e instanceof Y||"ArrayBuffer"==(c=w(e))||"SharedArrayBuffer"==c))return bt in e?Tt(d,e):It.call(d,e);i=e,h=Ot(r,n);var g=e.byteLength;if(void 0===o){if(g%n)throw U("Wrong length!");if((u=g-h)<0)throw U("Wrong length!")}else if((u=v(o)*n)+h>g)throw U("Wrong length!");a=u/n}else a=y(e),i=new Y(u=a*n);for(p(t,"_d",{b:i,o:h,l:u,e:a,v:new J(i)});l<a;)P(t,l++)}),_=d.prototype=O(Vt),p(_,"constructor",d)):i(function(){d(1)})&&i(function(){new d(-1)})&&R(function(t){new d,new d(null),new d(1.5),new d(t)},!0)||(d=e(function(t,e,r,o){var i;return s(t,d,f),x(e)?e instanceof Y||"ArrayBuffer"==(i=w(e))||"SharedArrayBuffer"==i?void 0!==o?new g(e,Ot(r,n),o):void 0!==r?new g(e,Ot(r,n)):new g(e):bt in e?Tt(d,e):It.call(d,e):new g(y(e))}),K(m!==Function.prototype?M(g).concat(M(m)):M(g),function(t){t in d||p(d,t,g[t])}),d.prototype=_,r||(_.constructor=d));var T=_[dt],F=!!T&&("values"==T.name||null==T.name),I=Ct.values;p(d,yt,!0),p(_,bt,f),p(_,wt,!0),p(_,gt,d),(c?new d(1)[vt]==f:vt in _)||V(_,vt,{get:function(){return f}}),S[f]=d,u(u.G+u.W+u.F*(d!=g),S),u(u.S,f,{BYTES_PER_ELEMENT:n}),u(u.S+u.F*i(function(){g.of.call(d,1)}),f,{from:It,of:jt}),"BYTES_PER_ELEMENT"in _||p(_,"BYTES_PER_ELEMENT",n),u(u.P,f,Nt),L(f),u(u.P+u.F*_t,f,{set:Lt}),u(u.P+u.F*!F,f,Ct),r||_.toString==pt||(_.toString=pt),u(u.P+u.F*i(function(){new d(1).slice()}),f,{slice:Rt}),u(u.P+u.F*(i(function(){return[1,2].toLocaleString()!=new d([1,2]).toLocaleString()})||!i(function(){_.toLocaleString.call([1,2])})),f,{toLocaleString:kt}),N[f]=F?T:I,r||F||p(_,dt,I)}}else t.exports=function(){}},function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n,e){var r=e(4);t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n,e){var r=e(31)("meta"),o=e(4),i=e(13),u=e(9).f,a=0,c=Object.isExtensible||function(){return!0},f=!e(2)(function(){return c(Object.preventExtensions({}))}),s=function(t){u(t,r,{value:{i:"O"+ ++a,w:{}}})},l=t.exports={KEY:r,NEED:!1,fastKey:function(t,n){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!c(t))return"F";if(!n)return"E";s(t)}return t[r].i},getWeak:function(t,n){if(!i(t,r)){if(!c(t))return!0;if(!n)return!1;s(t)}return t[r].w},onFreeze:function(t){return f&&l.NEED&&c(t)&&!i(t,r)&&s(t),t}}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n){t.exports=!1},function(t,n,e){var r=e(118),o=e(79);t.exports=Object.keys||function(t){return r(t,o)}},function(t,n,e){var r=e(19),o=Math.max,i=Math.min;t.exports=function(t,n){return(t=r(t))<0?o(t+n,0):i(t,n)}},function(t,n,e){var r=e(3),o=e(119),i=e(79),u=e(78)("IE_PROTO"),a=function(){},c=function(){var t,n=e(76)("iframe"),r=i.length;for(n.style.display="none",e(80).appendChild(n),n.src="javascript:",(t=n.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[i[r]];return c()};t.exports=Object.create||function(t,n){var e;return null!==t?(a.prototype=r(t),e=new a,a.prototype=null,e[u]=t):e=c(),void 0===n?e:o(e,n)}},function(t,n,e){var r=e(118),o=e(79).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,n,e){var r=e(13),o=e(10),i=e(78)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,e){var r=e(5)("unscopables"),o=Array.prototype;null==o[r]&&e(14)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,n,e){var r=e(4);t.exports=function(t,n){if(!r(t)||t._t!==n)throw TypeError("Incompatible receiver, "+n+" required!");return t}},function(t,n,e){var r=e(27),o=e(23),i=e(147),u=e(50),a=e(43),c=function(t,n,e){var f,s,l,p=t&c.F,h=t&c.G,d=t&c.S,v=t&c.P,y=t&c.B,g=t&c.W,m=h?o:o[n]||(o[n]={}),b=m.prototype,w=h?r:d?r[n]:(r[n]||{}).prototype;for(f in h&&(e=n),e)(s=!p&&w&&void 0!==w[f])&&a(m,f)||(l=s?w[f]:e[f],m[f]=h&&"function"!=typeof w[f]?e[f]:y&&s?i(l,r):g&&w[f]==l?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n.prototype=t.prototype,n}(l):v&&"function"==typeof l?i(Function.call,l):l,v&&((m.virtual||(m.virtual={}))[f]=l,t&c.R&&b&&!b[f]&&u(b,f,l)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,n,e){var r=e(58),o=e(148),i=e(101),u=Object.defineProperty;n.f=e(42)?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return u(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){t.exports=!e(59)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){var r=e(9).f,o=e(13),i=e(5)("toStringTag");t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},function(t,n,e){var r=e(0),o=e(25),i=e(2),u=e(82),a="["+u+"]",c=RegExp("^"+a+a+"*"),f=RegExp(a+a+"*$"),s=function(t,n,e){var o={},a=i(function(){return!!u[t]()||"
"!="
"[t]()}),c=o[t]=a?n(l):u[t];e&&(o[e]=c),r(r.P+r.F*a,"String",o)},l=s.trim=function(t,n){return t=String(o(t)),1&n&&(t=t.replace(c,"")),2&n&&(t=t.replace(f,"")),t};t.exports=s},function(t,n){t.exports={}},function(t,n,e){"use strict";var r=e(1),o=e(9),i=e(8),u=e(5)("species");t.exports=function(t){var n=r[t];i&&n&&!n[u]&&o.f(n,u,{configurable:!0,get:function(){return this}})}},function(t,n){t.exports=function(t,n,e,r){if(!(t instanceof n)||void 0!==r&&r in t)throw TypeError(e+": incorrect invocation!");return t}},function(t,n,e){var r=e(11);t.exports=function(t,n,e){for(var o in n)r(t,o,n[o],e);return t}},function(t,n,e){var r=e(41),o=e(73);t.exports=e(42)?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){var r=e(356),o=e(103);t.exports=function(t){return r(o(t))}},function(t,n,e){var r=e(105)("wks"),o=e(75),i=e(27).Symbol,u="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=r},function(t,n,e){var r=e(24);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){var r=e(24),o=e(5)("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var n,e,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(n=Object(t),o))?e:i?r(n):"Object"==(u=r(n))&&"function"==typeof n.callee?"Arguments":u}},function(t,n,e){var r=e(3),o=e(18),i=e(5)("species");t.exports=function(t,n){var e,u=r(t).constructor;return void 0===u||null==(e=r(u)[i])?n:o(e)}},function(t,n,e){var r=e(51);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n){t.exports=React},function(t,n,e){var r=e(7),o=e(1),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,n){return i[t]||(i[t]=void 0!==n?n:{})})("versions",[]).push({version:r.version,mode:e(32)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,n,e){var r=e(15),o=e(6),i=e(34);t.exports=function(t){return function(n,e,u){var a,c=r(n),f=o(c.length),s=i(u,f);if(t&&e!=e){for(;f>s;)if((a=c[s++])!=a)return!0}else for(;f>s;s++)if((t||s in c)&&c[s]===e)return t||s||0;return!t&&-1}}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){var r=e(24);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){var r=e(5)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,n){if(!n&&!o)return!1;var e=!1;try{var i=[7],u=i[r]();u.next=function(){return{done:e=!0}},i[r]=function(){return u},t(i)}catch(t){}return e}},function(t,n,e){"use strict";var r=e(3);t.exports=function(){var t=r(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},function(t,n,e){"use strict";var r=e(56),o=RegExp.prototype.exec;t.exports=function(t,n){var e=t.exec;if("function"==typeof e){var i=e.call(t,n);if("object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,n)}},function(t,n,e){"use strict";e(136);var r=e(11),o=e(14),i=e(2),u=e(25),a=e(5),c=e(97),f=a("species"),s=!i(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),l=function(){var t=/(?:)/,n=t.exec;t.exec=function(){return n.apply(this,arguments)};var e="ab".split(t);return 2===e.length&&"a"===e[0]&&"b"===e[1]}();t.exports=function(t,n,e){var p=a(t),h=!i(function(){var n={};return n[p]=function(){return 7},7!=""[t](n)}),d=h?!i(function(){var n=!1,e=/a/;return e.exec=function(){return n=!0,null},"split"===t&&(e.constructor={},e.constructor[f]=function(){return e}),e[p](""),!n}):void 0;if(!h||!d||"replace"===t&&!s||"split"===t&&!l){var v=/./[p],y=e(u,p,""[t],function(t,n,e,r,o){return n.exec===c?h&&!o?{done:!0,value:v.call(n,e,r)}:{done:!0,value:t.call(e,n,r)}:{done:!1}}),g=y[0],m=y[1];r(String.prototype,t,g),o(RegExp.prototype,p,2==n?function(t,n){return m.call(t,this,n)}:function(t){return m.call(t,this)})}}},function(t,n,e){var r=e(17),o=e(131),i=e(92),u=e(3),a=e(6),c=e(94),f={},s={};(n=t.exports=function(t,n,e,l,p){var h,d,v,y,g=p?function(){return t}:c(t),m=r(e,l,n?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(i(g)){for(h=a(t.length);h>b;b++)if((y=n?m(u(d=t[b])[0],d[1]):m(t[b]))===f||y===s)return y}else for(v=g.call(t);!(d=v.next()).done;)if((y=o(v,m,d.value,n))===f||y===s)return y}).BREAK=f,n.RETURN=s},function(t,n,e){var r=e(1).navigator;t.exports=r&&r.userAgent||""},function(t,n,e){"use strict";var r=e(1),o=e(0),i=e(11),u=e(49),a=e(29),c=e(69),f=e(48),s=e(4),l=e(2),p=e(65),h=e(44),d=e(83);t.exports=function(t,n,e,v,y,g){var m=r[t],b=m,w=y?"set":"add",x=b&&b.prototype,S={},_=function(t){var n=x[t];i(x,t,"delete"==t?function(t){return!(g&&!s(t))&&n.call(this,0===t?0:t)}:"has"==t?function(t){return!(g&&!s(t))&&n.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!s(t)?void 0:n.call(this,0===t?0:t)}:"add"==t?function(t){return n.call(this,0===t?0:t),this}:function(t,e){return n.call(this,0===t?0:t,e),this})};if("function"==typeof b&&(g||x.forEach&&!l(function(){(new b).entries().next()}))){var O=new b,E=O[w](g?{}:-0,1)!=O,M=l(function(){O.has(1)}),P=p(function(t){new b(t)}),T=!g&&l(function(){for(var t=new b,n=5;n--;)t[w](n,n);return!t.has(-0)});P||((b=n(function(n,e){f(n,b,t);var r=d(new m,n,b);return null!=e&&c(e,y,r[w],r),r})).prototype=x,x.constructor=b),(M||T)&&(_("delete"),_("has"),y&&_("get")),(T||E)&&_(w),g&&x.clear&&delete x.clear}else b=v.getConstructor(n,t,y,w),u(b.prototype,e),a.NEED=!0;return h(b,t),S[t]=b,o(o.G+o.W+o.F*(b!=m),S),g||v.setStrong(b,t,y),b}},function(t,n,e){for(var r,o=e(1),i=e(14),u=e(31),a=u("typed_array"),c=u("view"),f=!(!o.ArrayBuffer||!o.DataView),s=f,l=0,p="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");l<9;)(r=o[p[l++]])?(i(r.prototype,a,!0),i(r.prototype,c,!0)):s=!1;t.exports={ABV:f,CONSTR:s,TYPED:a,VIEW:c}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){t.exports=!0},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n,e){var r=e(4),o=e(1).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n,e){n.f=e(5)},function(t,n,e){var r=e(61)("keys"),o=e(31);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,e){var r=e(1).document;t.exports=r&&r.documentElement},function(t,n,e){var r=e(4),o=e(3),i=function(t,n){if(o(t),!r(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,r){try{(r=e(17)(Function.call,e(20).f(Object.prototype,"__proto__").set,2))(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,e){return i(t,e),n?t.__proto__=e:r(t,e),t}}({},!1):void 0),check:i}},function(t,n){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(t,n,e){var r=e(4),o=e(81).set;t.exports=function(t,n,e){var i,u=n.constructor;return u!==e&&"function"==typeof u&&(i=u.prototype)!==e.prototype&&r(i)&&o&&o(t,i),t}},function(t,n,e){"use strict";var r=e(19),o=e(25);t.exports=function(t){var n=String(o(this)),e="",i=r(t);if(i<0||i==1/0)throw RangeError("Count can't be negative");for(;i>0;(i>>>=1)&&(n+=n))1&i&&(e+=n);return e}},function(t,n){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,n){var e=Math.expm1;t.exports=!e||e(10)>22025.465794806718||e(10)<22025.465794806718||-2e-17!=e(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:e},function(t,n,e){var r=e(19),o=e(25);t.exports=function(t){return function(n,e){var i,u,a=String(o(n)),c=r(e),f=a.length;return c<0||c>=f?t?"":void 0:(i=a.charCodeAt(c))<55296||i>56319||c+1===f||(u=a.charCodeAt(c+1))<56320||u>57343?t?a.charAt(c):i:t?a.slice(c,c+2):u-56320+(i-55296<<10)+65536}}},function(t,n,e){"use strict";var r=e(32),o=e(0),i=e(11),u=e(14),a=e(46),c=e(130),f=e(44),s=e(37),l=e(5)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,n,e,d,v,y,g){c(e,n,d);var m,b,w,x=function(t){if(!p&&t in E)return E[t];switch(t){case"keys":case"values":return function(){return new e(this,t)}}return function(){return new e(this,t)}},S=n+" Iterator",_="values"==v,O=!1,E=t.prototype,M=E[l]||E["@@iterator"]||v&&E[v],P=M||x(v),T=v?_?x("entries"):P:void 0,F="Array"==n&&E.entries||M;if(F&&(w=s(F.call(new t)))!==Object.prototype&&w.next&&(f(w,S,!0),r||"function"==typeof w[l]||u(w,l,h)),_&&M&&"values"!==M.name&&(O=!0,P=function(){return M.call(this)}),r&&!g||!p&&!O&&E[l]||u(E,l,P),a[n]=P,a[S]=h,v)if(m={values:_?P:x("values"),keys:y?P:x("keys"),entries:T},g)for(b in m)b in E||i(E,b,m[b]);else o(o.P+o.F*(p||O),n,m);return m}},function(t,n,e){var r=e(90),o=e(25);t.exports=function(t,n,e){if(r(n))throw TypeError("String#"+e+" doesn't accept regex!");return String(o(t))}},function(t,n,e){var r=e(4),o=e(24),i=e(5)("match");t.exports=function(t){var n;return r(t)&&(void 0!==(n=t[i])?!!n:"RegExp"==o(t))}},function(t,n,e){var r=e(5)("match");t.exports=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[r]=!1,!"/./"[t](n)}catch(t){}}return!0}},function(t,n,e){var r=e(46),o=e(5)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,n,e){"use strict";var r=e(9),o=e(30);t.exports=function(t,n,e){n in t?r.f(t,n,o(0,e)):t[n]=e}},function(t,n,e){var r=e(56),o=e(5)("iterator"),i=e(46);t.exports=e(7).getIteratorMethod=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,n,e){"use strict";var r=e(10),o=e(34),i=e(6);t.exports=function(t){for(var n=r(this),e=i(n.length),u=arguments.length,a=o(u>1?arguments[1]:void 0,e),c=u>2?arguments[2]:void 0,f=void 0===c?e:o(c,e);f>a;)n[a++]=t;return n}},function(t,n,e){"use strict";var r=e(38),o=e(135),i=e(46),u=e(15);t.exports=e(88)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,o(1)):o(0,"keys"==n?e:"values"==n?t[e]:[e,t[e]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,n,e){"use strict";var r,o,i=e(66),u=RegExp.prototype.exec,a=String.prototype.replace,c=u,f=(r=/a/,o=/b*/g,u.call(r,"a"),u.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),s=void 0!==/()??/.exec("")[1];(f||s)&&(c=function(t){var n,e,r,o,c=this;return s&&(e=new RegExp("^"+c.source+"$(?!\\s)",i.call(c))),f&&(n=c.lastIndex),r=u.call(c,t),f&&r&&(c.lastIndex=c.global?r.index+r[0].length:n),s&&r&&r.length>1&&a.call(r[0],e,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r}),t.exports=c},function(t,n,e){"use strict";var r=e(87)(!0);t.exports=function(t,n,e){return n+(e?r(t,n).length:1)}},function(t,n,e){var r,o,i,u=e(17),a=e(124),c=e(80),f=e(76),s=e(1),l=s.process,p=s.setImmediate,h=s.clearImmediate,d=s.MessageChannel,v=s.Dispatch,y=0,g={},m=function(){var t=+this;if(g.hasOwnProperty(t)){var n=g[t];delete g[t],n()}},b=function(t){m.call(t.data)};p&&h||(p=function(t){for(var n=[],e=1;arguments.length>e;)n.push(arguments[e++]);return g[++y]=function(){a("function"==typeof t?t:Function(t),n)},r(y),y},h=function(t){delete g[t]},"process"==e(24)(l)?r=function(t){l.nextTick(u(m,t,1))}:v&&v.now?r=function(t){v.now(u(m,t,1))}:d?(i=(o=new d).port2,o.port1.onmessage=b,r=u(i.postMessage,i,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts?(r=function(t){s.postMessage(t+"","*")},s.addEventListener("message",b,!1)):r="onreadystatechange"in f("script")?function(t){c.appendChild(f("script")).onreadystatechange=function(){c.removeChild(this),m.call(t)}}:function(t){setTimeout(u(m,t,1),0)}),t.exports={set:p,clear:h}},function(t,n,e){"use strict";var r=e(1),o=e(8),i=e(32),u=e(72),a=e(14),c=e(49),f=e(2),s=e(48),l=e(19),p=e(6),h=e(143),d=e(36).f,v=e(9).f,y=e(95),g=e(44),m="prototype",b="Wrong index!",w=r.ArrayBuffer,x=r.DataView,S=r.Math,_=r.RangeError,O=r.Infinity,E=w,M=S.abs,P=S.pow,T=S.floor,F=S.log,I=S.LN2,j=o?"_b":"buffer",A=o?"_l":"byteLength",k=o?"_o":"byteOffset";function N(t,n,e){var r,o,i,u=new Array(e),a=8*e-n-1,c=(1<<a)-1,f=c>>1,s=23===n?P(2,-24)-P(2,-77):0,l=0,p=t<0||0===t&&1/t<0?1:0;for((t=M(t))!=t||t===O?(o=t!=t?1:0,r=c):(r=T(F(t)/I),t*(i=P(2,-r))<1&&(r--,i*=2),(t+=r+f>=1?s/i:s*P(2,1-f))*i>=2&&(r++,i/=2),r+f>=c?(o=0,r=c):r+f>=1?(o=(t*i-1)*P(2,n),r+=f):(o=t*P(2,f-1)*P(2,n),r=0));n>=8;u[l++]=255&o,o/=256,n-=8);for(r=r<<n|o,a+=n;a>0;u[l++]=255&r,r/=256,a-=8);return u[--l]|=128*p,u}function R(t,n,e){var r,o=8*e-n-1,i=(1<<o)-1,u=i>>1,a=o-7,c=e-1,f=t[c--],s=127&f;for(f>>=7;a>0;s=256*s+t[c],c--,a-=8);for(r=s&(1<<-a)-1,s>>=-a,a+=n;a>0;r=256*r+t[c],c--,a-=8);if(0===s)s=1-u;else{if(s===i)return r?NaN:f?-O:O;r+=P(2,n),s-=u}return(f?-1:1)*r*P(2,s-n)}function L(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function C(t){return[255&t]}function z(t){return[255&t,t>>8&255]}function W(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function D(t){return N(t,52,8)}function V(t){return N(t,23,4)}function B(t,n,e){v(t[m],n,{get:function(){return this[e]}})}function U(t,n,e,r){var o=h(+e);if(o+n>t[A])throw _(b);var i=t[j]._b,u=o+t[k],a=i.slice(u,u+n);return r?a:a.reverse()}function G(t,n,e,r,o,i){var u=h(+e);if(u+n>t[A])throw _(b);for(var a=t[j]._b,c=u+t[k],f=r(+o),s=0;s<n;s++)a[c+s]=f[i?s:n-s-1]}if(u.ABV){if(!f(function(){w(1)})||!f(function(){new w(-1)})||f(function(){return new w,new w(1.5),new w(NaN),"ArrayBuffer"!=w.name})){for(var H,q=(w=function(t){return s(this,w),new E(h(t))})[m]=E[m],Y=d(E),J=0;Y.length>J;)(H=Y[J++])in w||a(w,H,E[H]);i||(q.constructor=w)}var K=new x(new w(2)),X=x[m].setInt8;K.setInt8(0,2147483648),K.setInt8(1,2147483649),!K.getInt8(0)&&K.getInt8(1)||c(x[m],{setInt8:function(t,n){X.call(this,t,n<<24>>24)},setUint8:function(t,n){X.call(this,t,n<<24>>24)}},!0)}else w=function(t){s(this,w,"ArrayBuffer");var n=h(t);this._b=y.call(new Array(n),0),this[A]=n},x=function(t,n,e){s(this,x,"DataView"),s(t,w,"DataView");var r=t[A],o=l(n);if(o<0||o>r)throw _("Wrong offset!");if(o+(e=void 0===e?r-o:p(e))>r)throw _("Wrong length!");this[j]=t,this[k]=o,this[A]=e},o&&(B(w,"byteLength","_l"),B(x,"buffer","_b"),B(x,"byteLength","_l"),B(x,"byteOffset","_o")),c(x[m],{getInt8:function(t){return U(this,1,t)[0]<<24>>24},getUint8:function(t){return U(this,1,t)[0]},getInt16:function(t){var n=U(this,2,t,arguments[1]);return(n[1]<<8|n[0])<<16>>16},getUint16:function(t){var n=U(this,2,t,arguments[1]);return n[1]<<8|n[0]},getInt32:function(t){return L(U(this,4,t,arguments[1]))},getUint32:function(t){return L(U(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return R(U(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return R(U(this,8,t,arguments[1]),52,8)},setInt8:function(t,n){G(this,1,t,C,n)},setUint8:function(t,n){G(this,1,t,C,n)},setInt16:function(t,n){G(this,2,t,z,n,arguments[2])},setUint16:function(t,n){G(this,2,t,z,n,arguments[2])},setInt32:function(t,n){G(this,4,t,W,n,arguments[2])},setUint32:function(t,n){G(this,4,t,W,n,arguments[2])},setFloat32:function(t,n){G(this,4,t,V,n,arguments[2])},setFloat64:function(t,n){G(this,8,t,D,n,arguments[2])}});g(w,"ArrayBuffer"),g(x,"DataView"),a(x[m],u.VIEW,!0),n.ArrayBuffer=w,n.DataView=x},function(t,n,e){var r=e(51);t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n,e){var r=e(103);t.exports=function(t){return Object(r(t))}},function(t,n){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,e){var r=e(105)("keys"),o=e(75);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,n,e){var r=e(23),o=e(27),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,n){return i[t]||(i[t]=void 0!==n?n:{})})("versions",[]).push({version:r.version,mode:e(74)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n){t.exports={}},function(t,n,e){var r=e(58),o=e(355),i=e(110),u=e(104)("IE_PROTO"),a=function(){},c=function(){var t,n=e(149)("iframe"),r=i.length;for(n.style.display="none",e(360).appendChild(n),n.src="javascript:",(t=n.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[i[r]];return c()};t.exports=Object.create||function(t,n){var e;return null!==t?(a.prototype=r(t),e=new a,a.prototype=null,e[u]=t):e=c(),void 0===n?e:o(e,n)}},function(t,n,e){var r=e(154),o=e(110);t.exports=Object.keys||function(t){return r(t,o)}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,e){var r=e(41).f,o=e(43),i=e(53)("toStringTag");t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},function(t,n,e){n.f=e(53)},function(t,n,e){var r=e(27),o=e(23),i=e(74),u=e(112),a=e(41).f;t.exports=function(t){var n=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||a(n,t,{value:u.f(t)})}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){"use strict";var r=e(60),o=e.n(r);function i(){return(i=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t}).apply(this,arguments)}var u=o.a.createElement("g",{fill:"#555D66"},o.a.createElement("path",{d:"M11.4 10.2H3V21h8.4V10.2zM21 15h-8.4v6H21v-6zM11.4 3H3v6h8.4V3zM21 3h-8.4v10.8H21V3z"}));n.a=function(t){return o.a.createElement("svg",i({width:24,height:24,viewBox:"0 0 24 24",fill:"none"},t),u)}},function(t,n,e){t.exports=!e(8)&&!e(2)(function(){return 7!=Object.defineProperty(e(76)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(1),o=e(7),i=e(32),u=e(77),a=e(9).f;t.exports=function(t){var n=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||a(n,t,{value:u.f(t)})}},function(t,n,e){var r=e(13),o=e(15),i=e(62)(!1),u=e(78)("IE_PROTO");t.exports=function(t,n){var e,a=o(t),c=0,f=[];for(e in a)e!=u&&r(a,e)&&f.push(e);for(;n.length>c;)r(a,e=n[c++])&&(~i(f,e)||f.push(e));return f}},function(t,n,e){var r=e(9),o=e(3),i=e(33);t.exports=e(8)?Object.defineProperties:function(t,n){o(t);for(var e,u=i(n),a=u.length,c=0;a>c;)r.f(t,e=u[c++],n[e]);return t}},function(t,n,e){var r=e(15),o=e(36).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return u.slice()}}(t):o(r(t))}},function(t,n,e){"use strict";var r=e(8),o=e(33),i=e(63),u=e(55),a=e(10),c=e(54),f=Object.assign;t.exports=!f||e(2)(function(){var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach(function(t){n[t]=t}),7!=f({},t)[e]||Object.keys(f({},n)).join("")!=r})?function(t,n){for(var e=a(t),f=arguments.length,s=1,l=i.f,p=u.f;f>s;)for(var h,d=c(arguments[s++]),v=l?o(d).concat(l(d)):o(d),y=v.length,g=0;y>g;)h=v[g++],r&&!p.call(d,h)||(e[h]=d[h]);return e}:f},function(t,n){t.exports=Object.is||function(t,n){return t===n?0!==t||1/t==1/n:t!=t&&n!=n}},function(t,n,e){"use strict";var r=e(18),o=e(4),i=e(124),u=[].slice,a={};t.exports=Function.bind||function(t){var n=r(this),e=u.call(arguments,1),c=function(){var r=e.concat(u.call(arguments));return this instanceof c?function(t,n,e){if(!(n in a)){for(var r=[],o=0;o<n;o++)r[o]="a["+o+"]";a[n]=Function("F,a","return new F("+r.join(",")+")")}return a[n](t,e)}(n,r.length,r):i(n,r,t)};return o(n.prototype)&&(c.prototype=n.prototype),c}},function(t,n){t.exports=function(t,n,e){var r=void 0===e;switch(n.length){case 0:return r?t():t.call(e);case 1:return r?t(n[0]):t.call(e,n[0]);case 2:return r?t(n[0],n[1]):t.call(e,n[0],n[1]);case 3:return r?t(n[0],n[1],n[2]):t.call(e,n[0],n[1],n[2]);case 4:return r?t(n[0],n[1],n[2],n[3]):t.call(e,n[0],n[1],n[2],n[3])}return t.apply(e,n)}},function(t,n,e){var r=e(1).parseInt,o=e(45).trim,i=e(82),u=/^[-+]?0[xX]/;t.exports=8!==r(i+"08")||22!==r(i+"0x16")?function(t,n){var e=o(String(t),3);return r(e,n>>>0||(u.test(e)?16:10))}:r},function(t,n,e){var r=e(1).parseFloat,o=e(45).trim;t.exports=1/r(e(82)+"-0")!=-1/0?function(t){var n=o(String(t),3),e=r(n);return 0===e&&"-"==n.charAt(0)?-0:e}:r},function(t,n,e){var r=e(24);t.exports=function(t,n){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(n);return+t}},function(t,n,e){var r=e(4),o=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&o(t)===t}},function(t,n){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,n,e){"use strict";var r=e(35),o=e(30),i=e(44),u={};e(14)(u,e(5)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(u,{next:o(1,e)}),i(t,n+" Iterator")}},function(t,n,e){var r=e(3);t.exports=function(t,n,e,o){try{return o?n(r(e)[0],e[1]):n(e)}catch(n){var i=t.return;throw void 0!==i&&r(i.call(t)),n}}},function(t,n,e){var r=e(258);t.exports=function(t,n){return new(r(t))(n)}},function(t,n,e){var r=e(18),o=e(10),i=e(54),u=e(6);t.exports=function(t,n,e,a,c){r(n);var f=o(t),s=i(f),l=u(f.length),p=c?l-1:0,h=c?-1:1;if(e<2)for(;;){if(p in s){a=s[p],p+=h;break}if(p+=h,c?p<0:l<=p)throw TypeError("Reduce of empty array with no initial value")}for(;c?p>=0:l>p;p+=h)p in s&&(a=n(a,s[p],p,f));return a}},function(t,n,e){"use strict";var r=e(10),o=e(34),i=e(6);t.exports=[].copyWithin||function(t,n){var e=r(this),u=i(e.length),a=o(t,u),c=o(n,u),f=arguments.length>2?arguments[2]:void 0,s=Math.min((void 0===f?u:o(f,u))-c,u-a),l=1;for(c<a&&a<c+s&&(l=-1,c+=s-1,a+=s-1);s-- >0;)c in e?e[a]=e[c]:delete e[a],a+=l,c+=l;return e}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){"use strict";var r=e(97);e(0)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(t,n,e){e(8)&&"g"!=/./g.flags&&e(9).f(RegExp.prototype,"flags",{configurable:!0,get:e(66)})},function(t,n,e){"use strict";var r,o,i,u,a=e(32),c=e(1),f=e(17),s=e(56),l=e(0),p=e(4),h=e(18),d=e(48),v=e(69),y=e(57),g=e(99).set,m=e(278)(),b=e(139),w=e(279),x=e(70),S=e(140),_=c.TypeError,O=c.process,E=O&&O.versions,M=E&&E.v8||"",P=c.Promise,T="process"==s(O),F=function(){},I=o=b.f,j=!!function(){try{var t=P.resolve(1),n=(t.constructor={})[e(5)("species")]=function(t){t(F,F)};return(T||"function"==typeof PromiseRejectionEvent)&&t.then(F)instanceof n&&0!==M.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(t){}}(),A=function(t){var n;return!(!p(t)||"function"!=typeof(n=t.then))&&n},k=function(t,n){if(!t._n){t._n=!0;var e=t._c;m(function(){for(var r=t._v,o=1==t._s,i=0,u=function(n){var e,i,u,a=o?n.ok:n.fail,c=n.resolve,f=n.reject,s=n.domain;try{a?(o||(2==t._h&&L(t),t._h=1),!0===a?e=r:(s&&s.enter(),e=a(r),s&&(s.exit(),u=!0)),e===n.promise?f(_("Promise-chain cycle")):(i=A(e))?i.call(e,c,f):c(e)):f(r)}catch(t){s&&!u&&s.exit(),f(t)}};e.length>i;)u(e[i++]);t._c=[],t._n=!1,n&&!t._h&&N(t)})}},N=function(t){g.call(c,function(){var n,e,r,o=t._v,i=R(t);if(i&&(n=w(function(){T?O.emit("unhandledRejection",o,t):(e=c.onunhandledrejection)?e({promise:t,reason:o}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=T||R(t)?2:1),t._a=void 0,i&&n.e)throw n.v})},R=function(t){return 1!==t._h&&0===(t._a||t._c).length},L=function(t){g.call(c,function(){var n;T?O.emit("rejectionHandled",t):(n=c.onrejectionhandled)&&n({promise:t,reason:t._v})})},C=function(t){var n=this;n._d||(n._d=!0,(n=n._w||n)._v=t,n._s=2,n._a||(n._a=n._c.slice()),k(n,!0))},z=function(t){var n,e=this;if(!e._d){e._d=!0,e=e._w||e;try{if(e===t)throw _("Promise can't be resolved itself");(n=A(t))?m(function(){var r={_w:e,_d:!1};try{n.call(t,f(z,r,1),f(C,r,1))}catch(t){C.call(r,t)}}):(e._v=t,e._s=1,k(e,!1))}catch(t){C.call({_w:e,_d:!1},t)}}};j||(P=function(t){d(this,P,"Promise","_h"),h(t),r.call(this);try{t(f(z,this,1),f(C,this,1))}catch(t){C.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=e(49)(P.prototype,{then:function(t,n){var e=I(y(this,P));return e.ok="function"!=typeof t||t,e.fail="function"==typeof n&&n,e.domain=T?O.domain:void 0,this._c.push(e),this._a&&this._a.push(e),this._s&&k(this,!1),e.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=f(z,t,1),this.reject=f(C,t,1)},b.f=I=function(t){return t===P||t===u?new i(t):o(t)}),l(l.G+l.W+l.F*!j,{Promise:P}),e(44)(P,"Promise"),e(47)("Promise"),u=e(7).Promise,l(l.S+l.F*!j,"Promise",{reject:function(t){var n=I(this);return(0,n.reject)(t),n.promise}}),l(l.S+l.F*(a||!j),"Promise",{resolve:function(t){return S(a&&this===u?P:this,t)}}),l(l.S+l.F*!(j&&e(65)(function(t){P.all(t).catch(F)})),"Promise",{all:function(t){var n=this,e=I(n),r=e.resolve,o=e.reject,i=w(function(){var e=[],i=0,u=1;v(t,!1,function(t){var a=i++,c=!1;e.push(void 0),u++,n.resolve(t).then(function(t){c||(c=!0,e[a]=t,--u||r(e))},o)}),--u||r(e)});return i.e&&o(i.v),e.promise},race:function(t){var n=this,e=I(n),r=e.reject,o=w(function(){v(t,!1,function(t){n.resolve(t).then(e.resolve,r)})});return o.e&&r(o.v),e.promise}})},function(t,n,e){"use strict";var r=e(18);function o(t){var n,e;this.promise=new t(function(t,r){if(void 0!==n||void 0!==e)throw TypeError("Bad Promise constructor");n=t,e=r}),this.resolve=r(n),this.reject=r(e)}t.exports.f=function(t){return new o(t)}},function(t,n,e){var r=e(3),o=e(4),i=e(139);t.exports=function(t,n){if(r(t),o(n)&&n.constructor===t)return n;var e=i.f(t);return(0,e.resolve)(n),e.promise}},function(t,n,e){"use strict";var r=e(9).f,o=e(35),i=e(49),u=e(17),a=e(48),c=e(69),f=e(88),s=e(135),l=e(47),p=e(8),h=e(29).fastKey,d=e(39),v=p?"_s":"size",y=function(t,n){var e,r=h(n);if("F"!==r)return t._i[r];for(e=t._f;e;e=e.n)if(e.k==n)return e};t.exports={getConstructor:function(t,n,e,f){var s=t(function(t,r){a(t,s,n,"_i"),t._t=n,t._i=o(null),t._f=void 0,t._l=void 0,t[v]=0,null!=r&&c(r,e,t[f],t)});return i(s.prototype,{clear:function(){for(var t=d(this,n),e=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete e[r.i];t._f=t._l=void 0,t[v]=0},delete:function(t){var e=d(this,n),r=y(e,t);if(r){var o=r.n,i=r.p;delete e._i[r.i],r.r=!0,i&&(i.n=o),o&&(o.p=i),e._f==r&&(e._f=o),e._l==r&&(e._l=i),e[v]--}return!!r},forEach:function(t){d(this,n);for(var e,r=u(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.n:this._f;)for(r(e.v,e.k,this);e&&e.r;)e=e.p},has:function(t){return!!y(d(this,n),t)}}),p&&r(s.prototype,"size",{get:function(){return d(this,n)[v]}}),s},def:function(t,n,e){var r,o,i=y(t,n);return i?i.v=e:(t._l=i={i:o=h(n,!0),k:n,v:e,p:r=t._l,n:void 0,r:!1},t._f||(t._f=i),r&&(r.n=i),t[v]++,"F"!==o&&(t._i[o]=i)),t},getEntry:y,setStrong:function(t,n,e){f(t,n,function(t,e){this._t=d(t,n),this._k=e,this._l=void 0},function(){for(var t=this._k,n=this._l;n&&n.r;)n=n.p;return this._t&&(this._l=n=n?n.n:this._t._f)?s(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(this._t=void 0,s(1))},e?"entries":"values",!e,!0),l(n)}}},function(t,n,e){"use strict";var r=e(49),o=e(29).getWeak,i=e(3),u=e(4),a=e(48),c=e(69),f=e(22),s=e(13),l=e(39),p=f(5),h=f(6),d=0,v=function(t){return t._l||(t._l=new y)},y=function(){this.a=[]},g=function(t,n){return p(t.a,function(t){return t[0]===n})};y.prototype={get:function(t){var n=g(this,t);if(n)return n[1]},has:function(t){return!!g(this,t)},set:function(t,n){var e=g(this,t);e?e[1]=n:this.a.push([t,n])},delete:function(t){var n=h(this.a,function(n){return n[0]===t});return~n&&this.a.splice(n,1),!!~n}},t.exports={getConstructor:function(t,n,e,i){var f=t(function(t,r){a(t,f,n,"_i"),t._t=n,t._i=d++,t._l=void 0,null!=r&&c(r,e,t[i],t)});return r(f.prototype,{delete:function(t){if(!u(t))return!1;var e=o(t);return!0===e?v(l(this,n)).delete(t):e&&s(e,this._i)&&delete e[this._i]},has:function(t){if(!u(t))return!1;var e=o(t);return!0===e?v(l(this,n)).has(t):e&&s(e,this._i)}}),f},def:function(t,n,e){var r=o(i(n),!0);return!0===r?v(t).set(n,e):r[t._i]=e,t},ufstore:v}},function(t,n,e){var r=e(19),o=e(6);t.exports=function(t){if(void 0===t)return 0;var n=r(t),e=o(n);if(n!==e)throw RangeError("Wrong length!");return e}},function(t,n,e){var r=e(36),o=e(63),i=e(3),u=e(1).Reflect;t.exports=u&&u.ownKeys||function(t){var n=r.f(i(t)),e=o.f;return e?n.concat(e(t)):n}},function(t,n,e){var r=e(6),o=e(84),i=e(25);t.exports=function(t,n,e,u){var a=String(i(t)),c=a.length,f=void 0===e?" ":String(e),s=r(n);if(s<=c||""==f)return a;var l=s-c,p=o.call(f,Math.ceil(l/f.length));return p.length>l&&(p=p.slice(0,l)),u?p+a:a+p}},function(t,n,e){var r=e(8),o=e(33),i=e(15),u=e(55).f;t.exports=function(t){return function(n){for(var e,a=i(n),c=o(a),f=c.length,s=0,l=[];f>s;)e=c[s++],r&&!u.call(a,e)||l.push(t?[e,a[e]]:a[e]);return l}}},function(t,n,e){var r=e(339);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},function(t,n,e){t.exports=!e(42)&&!e(59)(function(){return 7!=Object.defineProperty(e(149)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(51),o=e(27).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n,e){var r=e(43),o=e(102),i=e(104)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,e){"use strict";n.__esModule=!0;var r=u(e(350)),o=u(e(365)),i="function"==typeof o.default&&"symbol"==typeof r.default?function(t){return typeof t}:function(t){return t&&"function"==typeof o.default&&t.constructor===o.default&&t!==o.default.prototype?"symbol":typeof t};function u(t){return t&&t.__esModule?t:{default:t}}n.default="function"==typeof o.default&&"symbol"===i(r.default)?function(t){return void 0===t?"undefined":i(t)}:function(t){return t&&"function"==typeof o.default&&t.constructor===o.default&&t!==o.default.prototype?"symbol":void 0===t?"undefined":i(t)}},function(t,n,e){"use strict";var r=e(74),o=e(40),i=e(153),u=e(50),a=e(107),c=e(354),f=e(111),s=e(150),l=e(53)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,n,e,d,v,y,g){c(e,n,d);var m,b,w,x=function(t){if(!p&&t in E)return E[t];switch(t){case"keys":case"values":return function(){return new e(this,t)}}return function(){return new e(this,t)}},S=n+" Iterator",_="values"==v,O=!1,E=t.prototype,M=E[l]||E["@@iterator"]||v&&E[v],P=M||x(v),T=v?_?x("entries"):P:void 0,F="Array"==n&&E.entries||M;if(F&&(w=s(F.call(new t)))!==Object.prototype&&w.next&&(f(w,S,!0),r||"function"==typeof w[l]||u(w,l,h)),_&&M&&"values"!==M.name&&(O=!0,P=function(){return M.call(this)}),r&&!g||!p&&!O&&E[l]||u(E,l,P),a[n]=P,a[S]=h,v)if(m={values:_?P:x("values"),keys:y?P:x("keys"),entries:T},g)for(b in m)b in E||i(E,b,m[b]);else o(o.P+o.F*(p||O),n,m);return m}},function(t,n,e){t.exports=e(50)},function(t,n,e){var r=e(43),o=e(52),i=e(357)(!1),u=e(104)("IE_PROTO");t.exports=function(t,n){var e,a=o(t),c=0,f=[];for(e in a)e!=u&&r(a,e)&&f.push(e);for(;n.length>c;)r(a,e=n[c++])&&(~i(f,e)||f.push(e));return f}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){var r=e(154),o=e(110).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,n,e){var r=e(114),o=e(73),i=e(52),u=e(101),a=e(43),c=e(148),f=Object.getOwnPropertyDescriptor;n.f=e(42)?f:function(t,n){if(t=i(t),n=u(n,!0),c)try{return f(t,n)}catch(t){}if(a(t,n))return o(!r.f.call(t,n),t[n])}},function(t,n,e){var r;
|
2 |
/*!
|
3 |
Copyright (c) 2017 Jed Watson.
|
4 |
Licensed under the MIT License (MIT), see
|
9 |
Licensed under the MIT License (MIT), see
|
10 |
http://jedwatson.github.io/classnames
|
11 |
*/
|
12 |
+
!function(){"use strict";var e=function(){function t(){}function n(t,n){for(var e=n.length,r=0;r<e;++r)o(t,n[r])}t.prototype=Object.create(null);var e={}.hasOwnProperty;var r=/\s+/;function o(t,o){if(o){var i=typeof o;"string"===i?function(t,n){for(var e=n.split(r),o=e.length,i=0;i<o;++i)t[e[i]]=!0}(t,o):Array.isArray(o)?n(t,o):"object"===i?function(t,n){for(var r in n)e.call(n,r)&&(t[r]=!!n[r])}(t,o):"number"===i&&function(t,n){t[n]=!0}(t,o)}}return function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];var i=new t;n(i,r);var u=[];for(var a in i)i[a]&&u.push(a);return u.join(" ")}}();t.exports?(e.default=e,t.exports=e):void 0===(r=function(){return e}.apply(n,[]))||(t.exports=r)}()},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=p(e(340)),o=p(e(344)),i=p(e(345)),u=p(e(349)),a=p(e(375)),c=p(e(60)),f=p(e(383)),s=p(e(386)),l=e(387);function p(t){return t&&t.__esModule?t:{default:t}}var h=function(t){function n(){var t,e,i,a;(0,o.default)(this,n);for(var c=arguments.length,f=Array(c),p=0;p<c;p++)f[p]=arguments[p];return e=i=(0,u.default)(this,(t=n.__proto__||(0,r.default)(n)).call.apply(t,[this].concat(f))),i.updateIframe=function(t){if(!t.src){var n=t.content||t.children;if(n){var e=i.refs.frame;if(e){var r=e.contentDocument;r&&("string"==typeof n?(r.open(),r.write(n),r.close()):(r.open(),r.write('<div id="iframe-root"></div>'),r.close(),s.default.render(n,r.getElementById("iframe-root"))))}}}},i.injectIframeResizerUrl=function(){if(i.props.iframeResizerUrl){var t=i.refs.frame;if(t){var n=t.contentDocument;if(n){var e=null;if(["head","HEAD","body","BODY","div","DIV"].forEach(function(t){if(!e){var r=n.getElementsByTagName(t);r&&r.length&&(e=r[0])}}),e){var r=document.createElement("script");r.type="text/javascript",r.src=i.props.iframeResizerUrl,e.appendChild(r)}else console.error("Unable to inject iframe resizer script")}}}},i.onLoad=function(){i.injectIframeResizerUrl()},i.resizeIframe=function(t){var n=i.refs.frame;n&&t.iframeResizerEnable&&(0,l.iframeResizer)(t.iframeResizerOptions,n)},a=e,(0,u.default)(i,a)}return(0,a.default)(n,t),(0,i.default)(n,[{key:"componentDidMount",value:function(){this.updateIframe(this.props),this.resizeIframe(this.props)}},{key:"componentWillUnmount",value:function(){var t=this.refs.frame.iFrameResizer;t&&t.removeListeners()}},{key:"componentWillReceiveProps",value:function(t){this.updateIframe(t),this.resizeIframe(t)}},{key:"render",value:function(){var t=this.props,n=t.src,e=t.id,r=t.frameBorder,o=t.className,i=t.style;return c.default.createElement("iframe",{ref:"frame",src:n,id:e,frameBorder:r,className:o,style:i,onLoad:this.onLoad})}}]),n}(c.default.Component);h.propTypes={content:f.default.oneOfType([f.default.string,f.default.element]),src:f.default.string,iframeResizerEnable:f.default.bool,iframeResizerOptions:f.default.object,iframeResizerUrl:f.default.oneOfType([f.default.string,f.default.bool]),id:f.default.string,frameBorder:f.default.number,className:f.default.string,style:f.default.object},h.defaultProps={iframeResizerEnable:!0,iframeResizerOptions:{},iframeResizerUrl:"https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/3.5.8/iframeResizer.contentWindow.min.js",frameBorder:0,style:{width:"100%",minHeight:20}},n.default=h},function(t,n,e){t.exports=e(162)},function(t,n,e){"use strict";e.r(n),function(t){var n=e(159),r=e.n(n),o=e(160),i=e.n(o),u=e(115);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)}function c(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,n){return!n||"object"!==a(n)&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t,n){return(l=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}t._babelPolyfill||e(164);var p=window.VPAdminGutenbergVariables,h=wp.i18n.__,d=wp.element,v=d.Component,y=d.Fragment,g=d.RawHTML,m=wp.blocks.registerBlockType,b=wp.components,w=b.Placeholder,x=b.Spinner,S=b.SelectControl,_=wp.apiFetch,O=wp.data,E=O.registerStore,M=O.withSelect,P={apiFetch:function(t){return{type:"API_FETCH",request:t}},setPortfolioLayouts:function(t,n){return{type:"SET_PORTFOLIO_LAYOUTS",query:t,layouts:n}}};E("nk/visual-portfolio",{reducer:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{layouts:{}},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case"SET_PORTFOLIO_LAYOUTS":return!t.layouts[n.query]&&n.layouts&&(t.layouts[n.query]=n.layouts),t}return t},actions:P,selectors:{getPortfolioLayouts:function(t,n){return t.layouts[n]}},controls:{API_FETCH:function(t){var n=t.request;return _(n).catch(function(t){return!(!t||!t.error||"no_layouts_found"!==t.error_code)&&{response:[],error:!1,success:!0}}).then(function(t){return!!(t&&t.success&&t.response)&&t.response})}},resolvers:{getPortfolioLayouts:regeneratorRuntime.mark(function t(n){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,P.apiFetch({path:n});case 2:return e=t.sent,t.abrupt("return",P.setPortfolioLayouts(n,e));case 4:case"end":return t.stop()}},t)})}});var T=function(t){function n(){return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),f(this,s(n).apply(this,arguments))}var e,o,a;return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&l(t,n)}(n,v),e=n,(o=[{key:"shouldComponentUpdate",value:function(t){return this.props.attributes.id!==t.attributes.id||this.props.portfolioLayouts!==t.portfolioLayouts||this.props.className!==t.className}},{key:"render",value:function(){var t=this.props,n=t.portfolioLayouts,e=t.attributes,o=t.setAttributes,a=this.props.className,c=e.id,f=e.ghostkitClassname,s=!1,l=!1;f&&(a=r()(a,f)),n?(s=[{label:h("--- Select layout ---"),value:""}],Object.keys(n).map(function(t){var e=n[t];s.push({label:"#".concat(e.id," - ").concat(e.title),value:e.id}),c&&parseInt(c,10)===e.id&&(l=e.edit_url)})):c&&(s=[{label:"#".concat(c),value:c}]);var d=p.preview_url+(p.preview_url.split("?")[1]?"&":"?")+"vp_preview_frame=true&vp_preview_frame_id=".concat(c);return wp.element.createElement("div",{className:a},wp.element.createElement(w,{className:"visual-portfolio-gutenberg-placeholder",icon:wp.element.createElement(u.a,null),label:h("Visual Portfolio")},!Array.isArray(s)&&wp.element.createElement(x,null),Array.isArray(s)&&s.length&&wp.element.createElement(y,null,l&&wp.element.createElement("a",{href:l,target:"_blank"},h("Edit Layout")),wp.element.createElement(S,{value:c,onChange:function(t){return o({id:t})},options:s})),Array.isArray(s)&&!s.length&&h("No portfolio layouts found.")),c?wp.element.createElement("div",{className:"visual-portfolio-gutenberg-preview"},wp.element.createElement(i.a,{src:d,iframeResizerOptions:{resizedCallback:function(t){t.iframe&&jQuery(t.iframe).css("margin-bottom",-jQuery(t.iframe).height()/2)}}})):"")}}])&&c(e.prototype,o),a&&c(e,a),n}();m("nk/visual-portfolio",{title:"Visual Portfolio",icon:u.a,category:"common",keywords:["visual portfolio","vp","portfolio"],ghostkit:{supports:{spacings:!0,display:!0,scrollReveal:!0}},supports:{anchor:!0,className:!0,html:!1,align:["wide","full"]},attributes:{id:{type:"string"}},edit:M(function(t){return{portfolioLayouts:t("nk/visual-portfolio").getPortfolioLayouts("/visual-portfolio/v1/get_layouts/")}})(T),save:function(t){var n=t.attributes,e=n.id,r=n.className,o="[visual_portfolio";return e&&(o+=' id="'.concat(e,'"')),r&&(o+=' class="'.concat(r,'"')),o+="]",wp.element.createElement(g,null,o)},transforms:{from:[{type:"shortcode",tag:"visual_portfolio",attributes:{id:{type:"string",shortcode:function(t){return t.named.id}},className:{type:"string",shortcode:function(t){return t.named.class}}}}]}})}.call(this,e(163))},function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n,e){"use strict";e(165);var r,o=(r=e(337))&&r.__esModule?r:{default:r};o.default._babelPolyfill&&"undefined"!=typeof console&&console.warn&&console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning."),o.default._babelPolyfill=!0},function(t,n,e){"use strict";e(166),e(309),e(311),e(314),e(316),e(318),e(320),e(322),e(324),e(326),e(328),e(330),e(332),e(336)},function(t,n,e){e(167),e(170),e(171),e(172),e(173),e(174),e(175),e(176),e(177),e(178),e(179),e(180),e(181),e(182),e(183),e(184),e(185),e(186),e(187),e(188),e(189),e(190),e(191),e(192),e(193),e(194),e(195),e(196),e(197),e(198),e(199),e(200),e(201),e(202),e(203),e(204),e(205),e(206),e(207),e(208),e(209),e(210),e(211),e(213),e(214),e(215),e(216),e(217),e(218),e(219),e(220),e(221),e(222),e(223),e(224),e(225),e(226),e(227),e(228),e(229),e(230),e(231),e(232),e(233),e(234),e(235),e(236),e(237),e(238),e(239),e(240),e(241),e(242),e(243),e(244),e(245),e(246),e(248),e(249),e(251),e(252),e(253),e(254),e(255),e(256),e(257),e(259),e(260),e(261),e(262),e(263),e(264),e(265),e(266),e(267),e(268),e(269),e(270),e(271),e(96),e(272),e(136),e(273),e(137),e(274),e(275),e(276),e(277),e(138),e(280),e(281),e(282),e(283),e(284),e(285),e(286),e(287),e(288),e(289),e(290),e(291),e(292),e(293),e(294),e(295),e(296),e(297),e(298),e(299),e(300),e(301),e(302),e(303),e(304),e(305),e(306),e(307),e(308),t.exports=e(7)},function(t,n,e){"use strict";var r=e(1),o=e(13),i=e(8),u=e(0),a=e(11),c=e(29).KEY,f=e(2),s=e(61),l=e(44),p=e(31),h=e(5),d=e(77),v=e(117),y=e(169),g=e(64),m=e(3),b=e(4),w=e(10),x=e(15),S=e(28),_=e(30),O=e(35),E=e(120),M=e(20),P=e(63),T=e(9),F=e(33),I=M.f,j=T.f,A=E.f,k=r.Symbol,N=r.JSON,R=N&&N.stringify,L=h("_hidden"),C=h("toPrimitive"),z={}.propertyIsEnumerable,W=s("symbol-registry"),D=s("symbols"),V=s("op-symbols"),B=Object.prototype,U="function"==typeof k&&!!P.f,G=r.QObject,H=!G||!G.prototype||!G.prototype.findChild,q=i&&f(function(){return 7!=O(j({},"a",{get:function(){return j(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=I(B,n);r&&delete B[n],j(t,n,e),r&&t!==B&&j(B,n,r)}:j,Y=function(t){var n=D[t]=O(k.prototype);return n._k=t,n},J=U&&"symbol"==typeof k.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof k},K=function(t,n,e){return t===B&&K(V,n,e),m(t),n=S(n,!0),m(e),o(D,n)?(e.enumerable?(o(t,L)&&t[L][n]&&(t[L][n]=!1),e=O(e,{enumerable:_(0,!1)})):(o(t,L)||j(t,L,_(1,{})),t[L][n]=!0),q(t,n,e)):j(t,n,e)},X=function(t,n){m(t);for(var e,r=y(n=x(n)),o=0,i=r.length;i>o;)K(t,e=r[o++],n[e]);return t},$=function(t){var n=z.call(this,t=S(t,!0));return!(this===B&&o(D,t)&&!o(V,t))&&(!(n||!o(this,t)||!o(D,t)||o(this,L)&&this[L][t])||n)},Q=function(t,n){if(t=x(t),n=S(n,!0),t!==B||!o(D,n)||o(V,n)){var e=I(t,n);return!e||!o(D,n)||o(t,L)&&t[L][n]||(e.enumerable=!0),e}},Z=function(t){for(var n,e=A(x(t)),r=[],i=0;e.length>i;)o(D,n=e[i++])||n==L||n==c||r.push(n);return r},tt=function(t){for(var n,e=t===B,r=A(e?V:x(t)),i=[],u=0;r.length>u;)!o(D,n=r[u++])||e&&!o(B,n)||i.push(D[n]);return i};U||(a((k=function(){if(this instanceof k)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),n=function(e){this===B&&n.call(V,e),o(this,L)&&o(this[L],t)&&(this[L][t]=!1),q(this,t,_(1,e))};return i&&H&&q(B,t,{configurable:!0,set:n}),Y(t)}).prototype,"toString",function(){return this._k}),M.f=Q,T.f=K,e(36).f=E.f=Z,e(55).f=$,P.f=tt,i&&!e(32)&&a(B,"propertyIsEnumerable",$,!0),d.f=function(t){return Y(h(t))}),u(u.G+u.W+u.F*!U,{Symbol:k});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;nt.length>et;)h(nt[et++]);for(var rt=F(h.store),ot=0;rt.length>ot;)v(rt[ot++]);u(u.S+u.F*!U,"Symbol",{for:function(t){return o(W,t+="")?W[t]:W[t]=k(t)},keyFor:function(t){if(!J(t))throw TypeError(t+" is not a symbol!");for(var n in W)if(W[n]===t)return n},useSetter:function(){H=!0},useSimple:function(){H=!1}}),u(u.S+u.F*!U,"Object",{create:function(t,n){return void 0===n?O(t):X(O(t),n)},defineProperty:K,defineProperties:X,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Z,getOwnPropertySymbols:tt});var it=f(function(){P.f(1)});u(u.S+u.F*it,"Object",{getOwnPropertySymbols:function(t){return P.f(w(t))}}),N&&u(u.S+u.F*(!U||f(function(){var t=k();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))})),"JSON",{stringify:function(t){for(var n,e,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(e=n=r[1],(b(n)||void 0!==t)&&!J(t))return g(n)||(n=function(t,n){if("function"==typeof e&&(n=e.call(this,t,n)),!J(n))return n}),r[1]=n,R.apply(N,r)}}),k.prototype[C]||e(14)(k.prototype,C,k.prototype.valueOf),l(k,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,n,e){t.exports=e(61)("native-function-to-string",Function.toString)},function(t,n,e){var r=e(33),o=e(63),i=e(55);t.exports=function(t){var n=r(t),e=o.f;if(e)for(var u,a=e(t),c=i.f,f=0;a.length>f;)c.call(t,u=a[f++])&&n.push(u);return n}},function(t,n,e){var r=e(0);r(r.S,"Object",{create:e(35)})},function(t,n,e){var r=e(0);r(r.S+r.F*!e(8),"Object",{defineProperty:e(9).f})},function(t,n,e){var r=e(0);r(r.S+r.F*!e(8),"Object",{defineProperties:e(119)})},function(t,n,e){var r=e(15),o=e(20).f;e(21)("getOwnPropertyDescriptor",function(){return function(t,n){return o(r(t),n)}})},function(t,n,e){var r=e(10),o=e(37);e(21)("getPrototypeOf",function(){return function(t){return o(r(t))}})},function(t,n,e){var r=e(10),o=e(33);e(21)("keys",function(){return function(t){return o(r(t))}})},function(t,n,e){e(21)("getOwnPropertyNames",function(){return e(120).f})},function(t,n,e){var r=e(4),o=e(29).onFreeze;e(21)("freeze",function(t){return function(n){return t&&r(n)?t(o(n)):n}})},function(t,n,e){var r=e(4),o=e(29).onFreeze;e(21)("seal",function(t){return function(n){return t&&r(n)?t(o(n)):n}})},function(t,n,e){var r=e(4),o=e(29).onFreeze;e(21)("preventExtensions",function(t){return function(n){return t&&r(n)?t(o(n)):n}})},function(t,n,e){var r=e(4);e(21)("isFrozen",function(t){return function(n){return!r(n)||!!t&&t(n)}})},function(t,n,e){var r=e(4);e(21)("isSealed",function(t){return function(n){return!r(n)||!!t&&t(n)}})},function(t,n,e){var r=e(4);e(21)("isExtensible",function(t){return function(n){return!!r(n)&&(!t||t(n))}})},function(t,n,e){var r=e(0);r(r.S+r.F,"Object",{assign:e(121)})},function(t,n,e){var r=e(0);r(r.S,"Object",{is:e(122)})},function(t,n,e){var r=e(0);r(r.S,"Object",{setPrototypeOf:e(81).set})},function(t,n,e){"use strict";var r=e(56),o={};o[e(5)("toStringTag")]="z",o+""!="[object z]"&&e(11)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(t,n,e){var r=e(0);r(r.P,"Function",{bind:e(123)})},function(t,n,e){var r=e(9).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||e(8)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},function(t,n,e){"use strict";var r=e(4),o=e(37),i=e(5)("hasInstance"),u=Function.prototype;i in u||e(9).f(u,i,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=o(t);)if(this.prototype===t)return!0;return!1}})},function(t,n,e){var r=e(0),o=e(125);r(r.G+r.F*(parseInt!=o),{parseInt:o})},function(t,n,e){var r=e(0),o=e(126);r(r.G+r.F*(parseFloat!=o),{parseFloat:o})},function(t,n,e){"use strict";var r=e(1),o=e(13),i=e(24),u=e(83),a=e(28),c=e(2),f=e(36).f,s=e(20).f,l=e(9).f,p=e(45).trim,h=r.Number,d=h,v=h.prototype,y="Number"==i(e(35)(v)),g="trim"in String.prototype,m=function(t){var n=a(t,!1);if("string"==typeof n&&n.length>2){var e,r,o,i=(n=g?n.trim():p(n,3)).charCodeAt(0);if(43===i||45===i){if(88===(e=n.charCodeAt(2))||120===e)return NaN}else if(48===i){switch(n.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+n}for(var u,c=n.slice(2),f=0,s=c.length;f<s;f++)if((u=c.charCodeAt(f))<48||u>o)return NaN;return parseInt(c,r)}}return+n};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(t){var n=arguments.length<1?0:t,e=this;return e instanceof h&&(y?c(function(){v.valueOf.call(e)}):"Number"!=i(e))?u(new d(m(n)),e,h):m(n)};for(var b,w=e(8)?f(d):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;w.length>x;x++)o(d,b=w[x])&&!o(h,b)&&l(h,b,s(d,b));h.prototype=v,v.constructor=h,e(11)(r,"Number",h)}},function(t,n,e){"use strict";var r=e(0),o=e(19),i=e(127),u=e(84),a=1..toFixed,c=Math.floor,f=[0,0,0,0,0,0],s="Number.toFixed: incorrect invocation!",l=function(t,n){for(var e=-1,r=n;++e<6;)r+=t*f[e],f[e]=r%1e7,r=c(r/1e7)},p=function(t){for(var n=6,e=0;--n>=0;)e+=f[n],f[n]=c(e/t),e=e%t*1e7},h=function(){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==f[t]){var e=String(f[t]);n=""===n?e:n+u.call("0",7-e.length)+e}return n},d=function(t,n,e){return 0===n?e:n%2==1?d(t,n-1,e*t):d(t*t,n/2,e)};r(r.P+r.F*(!!a&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!e(2)(function(){a.call({})})),"Number",{toFixed:function(t){var n,e,r,a,c=i(this,s),f=o(t),v="",y="0";if(f<0||f>20)throw RangeError(s);if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(v="-",c=-c),c>1e-21)if(e=(n=function(t){for(var n=0,e=t;e>=4096;)n+=12,e/=4096;for(;e>=2;)n+=1,e/=2;return n}(c*d(2,69,1))-69)<0?c*d(2,-n,1):c/d(2,n,1),e*=4503599627370496,(n=52-n)>0){for(l(0,e),r=f;r>=7;)l(1e7,0),r-=7;for(l(d(10,r,1),0),r=n-1;r>=23;)p(1<<23),r-=23;p(1<<r),l(1,1),p(2),y=h()}else l(0,e),l(1<<-n,0),y=h()+u.call("0",f);return y=f>0?v+((a=y.length)<=f?"0."+u.call("0",f-a)+y:y.slice(0,a-f)+"."+y.slice(a-f)):v+y}})},function(t,n,e){"use strict";var r=e(0),o=e(2),i=e(127),u=1..toPrecision;r(r.P+r.F*(o(function(){return"1"!==u.call(1,void 0)})||!o(function(){u.call({})})),"Number",{toPrecision:function(t){var n=i(this,"Number#toPrecision: incorrect invocation!");return void 0===t?u.call(n):u.call(n,t)}})},function(t,n,e){var r=e(0);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,n,e){var r=e(0),o=e(1).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&o(t)}})},function(t,n,e){var r=e(0);r(r.S,"Number",{isInteger:e(128)})},function(t,n,e){var r=e(0);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,n,e){var r=e(0),o=e(128),i=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return o(t)&&i(t)<=9007199254740991}})},function(t,n,e){var r=e(0);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,n,e){var r=e(0);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,n,e){var r=e(0),o=e(126);r(r.S+r.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(t,n,e){var r=e(0),o=e(125);r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(t,n,e){var r=e(0),o=e(129),i=Math.sqrt,u=Math.acosh;r(r.S+r.F*!(u&&710==Math.floor(u(Number.MAX_VALUE))&&u(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:o(t-1+i(t-1)*i(t+1))}})},function(t,n,e){var r=e(0),o=Math.asinh;r(r.S+r.F*!(o&&1/o(0)>0),"Math",{asinh:function t(n){return isFinite(n=+n)&&0!=n?n<0?-t(-n):Math.log(n+Math.sqrt(n*n+1)):n}})},function(t,n,e){var r=e(0),o=Math.atanh;r(r.S+r.F*!(o&&1/o(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,n,e){var r=e(0),o=e(85);r(r.S,"Math",{cbrt:function(t){return o(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,n,e){var r=e(0);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,n,e){var r=e(0),o=Math.exp;r(r.S,"Math",{cosh:function(t){return(o(t=+t)+o(-t))/2}})},function(t,n,e){var r=e(0),o=e(86);r(r.S+r.F*(o!=Math.expm1),"Math",{expm1:o})},function(t,n,e){var r=e(0);r(r.S,"Math",{fround:e(212)})},function(t,n,e){var r=e(85),o=Math.pow,i=o(2,-52),u=o(2,-23),a=o(2,127)*(2-u),c=o(2,-126);t.exports=Math.fround||function(t){var n,e,o=Math.abs(t),f=r(t);return o<c?f*(o/c/u+1/i-1/i)*c*u:(e=(n=(1+u/i)*o)-(n-o))>a||e!=e?f*(1/0):f*e}},function(t,n,e){var r=e(0),o=Math.abs;r(r.S,"Math",{hypot:function(t,n){for(var e,r,i=0,u=0,a=arguments.length,c=0;u<a;)c<(e=o(arguments[u++]))?(i=i*(r=c/e)*r+1,c=e):i+=e>0?(r=e/c)*r:e;return c===1/0?1/0:c*Math.sqrt(i)}})},function(t,n,e){var r=e(0),o=Math.imul;r(r.S+r.F*e(2)(function(){return-5!=o(4294967295,5)||2!=o.length}),"Math",{imul:function(t,n){var e=+t,r=+n,o=65535&e,i=65535&r;return 0|o*i+((65535&e>>>16)*i+o*(65535&r>>>16)<<16>>>0)}})},function(t,n,e){var r=e(0);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,n,e){var r=e(0);r(r.S,"Math",{log1p:e(129)})},function(t,n,e){var r=e(0);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,n,e){var r=e(0);r(r.S,"Math",{sign:e(85)})},function(t,n,e){var r=e(0),o=e(86),i=Math.exp;r(r.S+r.F*e(2)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(o(t)-o(-t))/2:(i(t-1)-i(-t-1))*(Math.E/2)}})},function(t,n,e){var r=e(0),o=e(86),i=Math.exp;r(r.S,"Math",{tanh:function(t){var n=o(t=+t),e=o(-t);return n==1/0?1:e==1/0?-1:(n-e)/(i(t)+i(-t))}})},function(t,n,e){var r=e(0);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,n,e){var r=e(0),o=e(34),i=String.fromCharCode,u=String.fromCodePoint;r(r.S+r.F*(!!u&&1!=u.length),"String",{fromCodePoint:function(t){for(var n,e=[],r=arguments.length,u=0;r>u;){if(n=+arguments[u++],o(n,1114111)!==n)throw RangeError(n+" is not a valid code point");e.push(n<65536?i(n):i(55296+((n-=65536)>>10),n%1024+56320))}return e.join("")}})},function(t,n,e){var r=e(0),o=e(15),i=e(6);r(r.S,"String",{raw:function(t){for(var n=o(t.raw),e=i(n.length),r=arguments.length,u=[],a=0;e>a;)u.push(String(n[a++])),a<r&&u.push(String(arguments[a]));return u.join("")}})},function(t,n,e){"use strict";e(45)("trim",function(t){return function(){return t(this,3)}})},function(t,n,e){"use strict";var r=e(87)(!0);e(88)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,e=this._i;return e>=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})})},function(t,n,e){"use strict";var r=e(0),o=e(87)(!1);r(r.P,"String",{codePointAt:function(t){return o(this,t)}})},function(t,n,e){"use strict";var r=e(0),o=e(6),i=e(89),u="".endsWith;r(r.P+r.F*e(91)("endsWith"),"String",{endsWith:function(t){var n=i(this,t,"endsWith"),e=arguments.length>1?arguments[1]:void 0,r=o(n.length),a=void 0===e?r:Math.min(o(e),r),c=String(t);return u?u.call(n,c,a):n.slice(a-c.length,a)===c}})},function(t,n,e){"use strict";var r=e(0),o=e(89);r(r.P+r.F*e(91)("includes"),"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,n,e){var r=e(0);r(r.P,"String",{repeat:e(84)})},function(t,n,e){"use strict";var r=e(0),o=e(6),i=e(89),u="".startsWith;r(r.P+r.F*e(91)("startsWith"),"String",{startsWith:function(t){var n=i(this,t,"startsWith"),e=o(Math.min(arguments.length>1?arguments[1]:void 0,n.length)),r=String(t);return u?u.call(n,r,e):n.slice(e,e+r.length)===r}})},function(t,n,e){"use strict";e(12)("anchor",function(t){return function(n){return t(this,"a","name",n)}})},function(t,n,e){"use strict";e(12)("big",function(t){return function(){return t(this,"big","","")}})},function(t,n,e){"use strict";e(12)("blink",function(t){return function(){return t(this,"blink","","")}})},function(t,n,e){"use strict";e(12)("bold",function(t){return function(){return t(this,"b","","")}})},function(t,n,e){"use strict";e(12)("fixed",function(t){return function(){return t(this,"tt","","")}})},function(t,n,e){"use strict";e(12)("fontcolor",function(t){return function(n){return t(this,"font","color",n)}})},function(t,n,e){"use strict";e(12)("fontsize",function(t){return function(n){return t(this,"font","size",n)}})},function(t,n,e){"use strict";e(12)("italics",function(t){return function(){return t(this,"i","","")}})},function(t,n,e){"use strict";e(12)("link",function(t){return function(n){return t(this,"a","href",n)}})},function(t,n,e){"use strict";e(12)("small",function(t){return function(){return t(this,"small","","")}})},function(t,n,e){"use strict";e(12)("strike",function(t){return function(){return t(this,"strike","","")}})},function(t,n,e){"use strict";e(12)("sub",function(t){return function(){return t(this,"sub","","")}})},function(t,n,e){"use strict";e(12)("sup",function(t){return function(){return t(this,"sup","","")}})},function(t,n,e){var r=e(0);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,n,e){"use strict";var r=e(0),o=e(10),i=e(28);r(r.P+r.F*e(2)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var n=o(this),e=i(n);return"number"!=typeof e||isFinite(e)?n.toISOString():null}})},function(t,n,e){var r=e(0),o=e(247);r(r.P+r.F*(Date.prototype.toISOString!==o),"Date",{toISOString:o})},function(t,n,e){"use strict";var r=e(2),o=Date.prototype.getTime,i=Date.prototype.toISOString,u=function(t){return t>9?t:"0"+t};t.exports=r(function(){return"0385-07-25T07:06:39.999Z"!=i.call(new Date(-5e13-1))})||!r(function(){i.call(new Date(NaN))})?function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var t=this,n=t.getUTCFullYear(),e=t.getUTCMilliseconds(),r=n<0?"-":n>9999?"+":"";return r+("00000"+Math.abs(n)).slice(r?-6:-4)+"-"+u(t.getUTCMonth()+1)+"-"+u(t.getUTCDate())+"T"+u(t.getUTCHours())+":"+u(t.getUTCMinutes())+":"+u(t.getUTCSeconds())+"."+(e>99?e:"0"+u(e))+"Z"}:i},function(t,n,e){var r=Date.prototype,o=r.toString,i=r.getTime;new Date(NaN)+""!="Invalid Date"&&e(11)(r,"toString",function(){var t=i.call(this);return t==t?o.call(this):"Invalid Date"})},function(t,n,e){var r=e(5)("toPrimitive"),o=Date.prototype;r in o||e(14)(o,r,e(250))},function(t,n,e){"use strict";var r=e(3),o=e(28);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return o(r(this),"number"!=t)}},function(t,n,e){var r=e(0);r(r.S,"Array",{isArray:e(64)})},function(t,n,e){"use strict";var r=e(17),o=e(0),i=e(10),u=e(131),a=e(92),c=e(6),f=e(93),s=e(94);o(o.S+o.F*!e(65)(function(t){Array.from(t)}),"Array",{from:function(t){var n,e,o,l,p=i(t),h="function"==typeof this?this:Array,d=arguments.length,v=d>1?arguments[1]:void 0,y=void 0!==v,g=0,m=s(p);if(y&&(v=r(v,d>2?arguments[2]:void 0,2)),null==m||h==Array&&a(m))for(e=new h(n=c(p.length));n>g;g++)f(e,g,y?v(p[g],g):p[g]);else for(l=m.call(p),e=new h;!(o=l.next()).done;g++)f(e,g,y?u(l,v,[o.value,g],!0):o.value);return e.length=g,e}})},function(t,n,e){"use strict";var r=e(0),o=e(93);r(r.S+r.F*e(2)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,n=arguments.length,e=new("function"==typeof this?this:Array)(n);n>t;)o(e,t,arguments[t++]);return e.length=n,e}})},function(t,n,e){"use strict";var r=e(0),o=e(15),i=[].join;r(r.P+r.F*(e(54)!=Object||!e(16)(i)),"Array",{join:function(t){return i.call(o(this),void 0===t?",":t)}})},function(t,n,e){"use strict";var r=e(0),o=e(80),i=e(24),u=e(34),a=e(6),c=[].slice;r(r.P+r.F*e(2)(function(){o&&c.call(o)}),"Array",{slice:function(t,n){var e=a(this.length),r=i(this);if(n=void 0===n?e:n,"Array"==r)return c.call(this,t,n);for(var o=u(t,e),f=u(n,e),s=a(f-o),l=new Array(s),p=0;p<s;p++)l[p]="String"==r?this.charAt(o+p):this[o+p];return l}})},function(t,n,e){"use strict";var r=e(0),o=e(18),i=e(10),u=e(2),a=[].sort,c=[1,2,3];r(r.P+r.F*(u(function(){c.sort(void 0)})||!u(function(){c.sort(null)})||!e(16)(a)),"Array",{sort:function(t){return void 0===t?a.call(i(this)):a.call(i(this),o(t))}})},function(t,n,e){"use strict";var r=e(0),o=e(22)(0),i=e(16)([].forEach,!0);r(r.P+r.F*!i,"Array",{forEach:function(t){return o(this,t,arguments[1])}})},function(t,n,e){var r=e(4),o=e(64),i=e(5)("species");t.exports=function(t){var n;return o(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!o(n.prototype)||(n=void 0),r(n)&&null===(n=n[i])&&(n=void 0)),void 0===n?Array:n}},function(t,n,e){"use strict";var r=e(0),o=e(22)(1);r(r.P+r.F*!e(16)([].map,!0),"Array",{map:function(t){return o(this,t,arguments[1])}})},function(t,n,e){"use strict";var r=e(0),o=e(22)(2);r(r.P+r.F*!e(16)([].filter,!0),"Array",{filter:function(t){return o(this,t,arguments[1])}})},function(t,n,e){"use strict";var r=e(0),o=e(22)(3);r(r.P+r.F*!e(16)([].some,!0),"Array",{some:function(t){return o(this,t,arguments[1])}})},function(t,n,e){"use strict";var r=e(0),o=e(22)(4);r(r.P+r.F*!e(16)([].every,!0),"Array",{every:function(t){return o(this,t,arguments[1])}})},function(t,n,e){"use strict";var r=e(0),o=e(133);r(r.P+r.F*!e(16)([].reduce,!0),"Array",{reduce:function(t){return o(this,t,arguments.length,arguments[1],!1)}})},function(t,n,e){"use strict";var r=e(0),o=e(133);r(r.P+r.F*!e(16)([].reduceRight,!0),"Array",{reduceRight:function(t){return o(this,t,arguments.length,arguments[1],!0)}})},function(t,n,e){"use strict";var r=e(0),o=e(62)(!1),i=[].indexOf,u=!!i&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(u||!e(16)(i)),"Array",{indexOf:function(t){return u?i.apply(this,arguments)||0:o(this,t,arguments[1])}})},function(t,n,e){"use strict";var r=e(0),o=e(15),i=e(19),u=e(6),a=[].lastIndexOf,c=!!a&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(c||!e(16)(a)),"Array",{lastIndexOf:function(t){if(c)return a.apply(this,arguments)||0;var n=o(this),e=u(n.length),r=e-1;for(arguments.length>1&&(r=Math.min(r,i(arguments[1]))),r<0&&(r=e+r);r>=0;r--)if(r in n&&n[r]===t)return r||0;return-1}})},function(t,n,e){var r=e(0);r(r.P,"Array",{copyWithin:e(134)}),e(38)("copyWithin")},function(t,n,e){var r=e(0);r(r.P,"Array",{fill:e(95)}),e(38)("fill")},function(t,n,e){"use strict";var r=e(0),o=e(22)(5),i=!0;"find"in[]&&Array(1).find(function(){i=!1}),r(r.P+r.F*i,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),e(38)("find")},function(t,n,e){"use strict";var r=e(0),o=e(22)(6),i="findIndex",u=!0;i in[]&&Array(1)[i](function(){u=!1}),r(r.P+r.F*u,"Array",{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),e(38)(i)},function(t,n,e){e(47)("Array")},function(t,n,e){var r=e(1),o=e(83),i=e(9).f,u=e(36).f,a=e(90),c=e(66),f=r.RegExp,s=f,l=f.prototype,p=/a/g,h=/a/g,d=new f(p)!==p;if(e(8)&&(!d||e(2)(function(){return h[e(5)("match")]=!1,f(p)!=p||f(h)==h||"/a/i"!=f(p,"i")}))){f=function(t,n){var e=this instanceof f,r=a(t),i=void 0===n;return!e&&r&&t.constructor===f&&i?t:o(d?new s(r&&!i?t.source:t,n):s((r=t instanceof f)?t.source:t,r&&i?c.call(t):n),e?this:l,f)};for(var v=function(t){t in f||i(f,t,{configurable:!0,get:function(){return s[t]},set:function(n){s[t]=n}})},y=u(s),g=0;y.length>g;)v(y[g++]);l.constructor=f,f.prototype=l,e(11)(r,"RegExp",f)}e(47)("RegExp")},function(t,n,e){"use strict";e(137);var r=e(3),o=e(66),i=e(8),u=/./.toString,a=function(t){e(11)(RegExp.prototype,"toString",t,!0)};e(2)(function(){return"/a/b"!=u.call({source:"a",flags:"b"})})?a(function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!i&&t instanceof RegExp?o.call(t):void 0)}):"toString"!=u.name&&a(function(){return u.call(this)})},function(t,n,e){"use strict";var r=e(3),o=e(6),i=e(98),u=e(67);e(68)("match",1,function(t,n,e,a){return[function(e){var r=t(this),o=null==e?void 0:e[n];return void 0!==o?o.call(e,r):new RegExp(e)[n](String(r))},function(t){var n=a(e,t,this);if(n.done)return n.value;var c=r(t),f=String(this);if(!c.global)return u(c,f);var s=c.unicode;c.lastIndex=0;for(var l,p=[],h=0;null!==(l=u(c,f));){var d=String(l[0]);p[h]=d,""===d&&(c.lastIndex=i(f,o(c.lastIndex),s)),h++}return 0===h?null:p}]})},function(t,n,e){"use strict";var r=e(3),o=e(10),i=e(6),u=e(19),a=e(98),c=e(67),f=Math.max,s=Math.min,l=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,h=/\$([$&`']|\d\d?)/g;e(68)("replace",2,function(t,n,e,d){return[function(r,o){var i=t(this),u=null==r?void 0:r[n];return void 0!==u?u.call(r,i,o):e.call(String(i),r,o)},function(t,n){var o=d(e,t,this,n);if(o.done)return o.value;var l=r(t),p=String(this),h="function"==typeof n;h||(n=String(n));var y=l.global;if(y){var g=l.unicode;l.lastIndex=0}for(var m=[];;){var b=c(l,p);if(null===b)break;if(m.push(b),!y)break;""===String(b[0])&&(l.lastIndex=a(p,i(l.lastIndex),g))}for(var w,x="",S=0,_=0;_<m.length;_++){b=m[_];for(var O=String(b[0]),E=f(s(u(b.index),p.length),0),M=[],P=1;P<b.length;P++)M.push(void 0===(w=b[P])?w:String(w));var T=b.groups;if(h){var F=[O].concat(M,E,p);void 0!==T&&F.push(T);var I=String(n.apply(void 0,F))}else I=v(O,p,E,M,T,n);E>=S&&(x+=p.slice(S,E)+I,S=E+O.length)}return x+p.slice(S)}];function v(t,n,r,i,u,a){var c=r+t.length,f=i.length,s=h;return void 0!==u&&(u=o(u),s=p),e.call(a,s,function(e,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(c);case"<":a=u[o.slice(1,-1)];break;default:var s=+o;if(0===s)return e;if(s>f){var p=l(s/10);return 0===p?e:p<=f?void 0===i[p-1]?o.charAt(1):i[p-1]+o.charAt(1):e}a=i[s-1]}return void 0===a?"":a})}})},function(t,n,e){"use strict";var r=e(3),o=e(122),i=e(67);e(68)("search",1,function(t,n,e,u){return[function(e){var r=t(this),o=null==e?void 0:e[n];return void 0!==o?o.call(e,r):new RegExp(e)[n](String(r))},function(t){var n=u(e,t,this);if(n.done)return n.value;var a=r(t),c=String(this),f=a.lastIndex;o(f,0)||(a.lastIndex=0);var s=i(a,c);return o(a.lastIndex,f)||(a.lastIndex=f),null===s?-1:s.index}]})},function(t,n,e){"use strict";var r=e(90),o=e(3),i=e(57),u=e(98),a=e(6),c=e(67),f=e(97),s=e(2),l=Math.min,p=[].push,h=!s(function(){RegExp(4294967295,"y")});e(68)("split",2,function(t,n,e,s){var d;return d="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var o=String(this);if(void 0===t&&0===n)return[];if(!r(t))return e.call(o,t,n);for(var i,u,a,c=[],s=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,h=void 0===n?4294967295:n>>>0,d=new RegExp(t.source,s+"g");(i=f.call(d,o))&&!((u=d.lastIndex)>l&&(c.push(o.slice(l,i.index)),i.length>1&&i.index<o.length&&p.apply(c,i.slice(1)),a=i[0].length,l=u,c.length>=h));)d.lastIndex===i.index&&d.lastIndex++;return l===o.length?!a&&d.test("")||c.push(""):c.push(o.slice(l)),c.length>h?c.slice(0,h):c}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,r){var o=t(this),i=null==e?void 0:e[n];return void 0!==i?i.call(e,o,r):d.call(String(o),e,r)},function(t,n){var r=s(d,t,this,n,d!==e);if(r.done)return r.value;var f=o(t),p=String(this),v=i(f,RegExp),y=f.unicode,g=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(h?"y":"g"),m=new v(h?f:"^(?:"+f.source+")",g),b=void 0===n?4294967295:n>>>0;if(0===b)return[];if(0===p.length)return null===c(m,p)?[p]:[];for(var w=0,x=0,S=[];x<p.length;){m.lastIndex=h?x:0;var _,O=c(m,h?p:p.slice(x));if(null===O||(_=l(a(m.lastIndex+(h?0:x)),p.length))===w)x=u(p,x,y);else{if(S.push(p.slice(w,x)),S.length===b)return S;for(var E=1;E<=O.length-1;E++)if(S.push(O[E]),S.length===b)return S;x=w=_}}return S.push(p.slice(w)),S}]})},function(t,n,e){var r=e(1),o=e(99).set,i=r.MutationObserver||r.WebKitMutationObserver,u=r.process,a=r.Promise,c="process"==e(24)(u);t.exports=function(){var t,n,e,f=function(){var r,o;for(c&&(r=u.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?e():n=void 0,r}}n=void 0,r&&r.enter()};if(c)e=function(){u.nextTick(f)};else if(!i||r.navigator&&r.navigator.standalone)if(a&&a.resolve){var s=a.resolve(void 0);e=function(){s.then(f)}}else e=function(){o.call(r,f)};else{var l=!0,p=document.createTextNode("");new i(f).observe(p,{characterData:!0}),e=function(){p.data=l=!l}}return function(r){var o={fn:r,next:void 0};n&&(n.next=o),t||(t=o,e()),n=o}}},function(t,n){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,n,e){"use strict";var r=e(141),o=e(39);t.exports=e(71)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var n=r.getEntry(o(this,"Map"),t);return n&&n.v},set:function(t,n){return r.def(o(this,"Map"),0===t?0:t,n)}},r,!0)},function(t,n,e){"use strict";var r=e(141),o=e(39);t.exports=e(71)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(o(this,"Set"),t=0===t?0:t,t)}},r)},function(t,n,e){"use strict";var r,o=e(1),i=e(22)(0),u=e(11),a=e(29),c=e(121),f=e(142),s=e(4),l=e(39),p=e(39),h=!o.ActiveXObject&&"ActiveXObject"in o,d=a.getWeak,v=Object.isExtensible,y=f.ufstore,g=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},m={get:function(t){if(s(t)){var n=d(t);return!0===n?y(l(this,"WeakMap")).get(t):n?n[this._i]:void 0}},set:function(t,n){return f.def(l(this,"WeakMap"),t,n)}},b=t.exports=e(71)("WeakMap",g,m,f,!0,!0);p&&h&&(c((r=f.getConstructor(g,"WeakMap")).prototype,m),a.NEED=!0,i(["delete","has","get","set"],function(t){var n=b.prototype,e=n[t];u(n,t,function(n,o){if(s(n)&&!v(n)){this._f||(this._f=new r);var i=this._f[t](n,o);return"set"==t?this:i}return e.call(this,n,o)})}))},function(t,n,e){"use strict";var r=e(142),o=e(39);e(71)("WeakSet",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(o(this,"WeakSet"),t,!0)}},r,!1,!0)},function(t,n,e){"use strict";var r=e(0),o=e(72),i=e(100),u=e(3),a=e(34),c=e(6),f=e(4),s=e(1).ArrayBuffer,l=e(57),p=i.ArrayBuffer,h=i.DataView,d=o.ABV&&s.isView,v=p.prototype.slice,y=o.VIEW;r(r.G+r.W+r.F*(s!==p),{ArrayBuffer:p}),r(r.S+r.F*!o.CONSTR,"ArrayBuffer",{isView:function(t){return d&&d(t)||f(t)&&y in t}}),r(r.P+r.U+r.F*e(2)(function(){return!new p(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(t,n){if(void 0!==v&&void 0===n)return v.call(u(this),t);for(var e=u(this).byteLength,r=a(t,e),o=a(void 0===n?e:n,e),i=new(l(this,p))(c(o-r)),f=new h(this),s=new h(i),d=0;r<o;)s.setUint8(d++,f.getUint8(r++));return i}}),e(47)("ArrayBuffer")},function(t,n,e){var r=e(0);r(r.G+r.W+r.F*!e(72).ABV,{DataView:e(100).DataView})},function(t,n,e){e(26)("Int8",1,function(t){return function(n,e,r){return t(this,n,e,r)}})},function(t,n,e){e(26)("Uint8",1,function(t){return function(n,e,r){return t(this,n,e,r)}})},function(t,n,e){e(26)("Uint8",1,function(t){return function(n,e,r){return t(this,n,e,r)}},!0)},function(t,n,e){e(26)("Int16",2,function(t){return function(n,e,r){return t(this,n,e,r)}})},function(t,n,e){e(26)("Uint16",2,function(t){return function(n,e,r){return t(this,n,e,r)}})},function(t,n,e){e(26)("Int32",4,function(t){return function(n,e,r){return t(this,n,e,r)}})},function(t,n,e){e(26)("Uint32",4,function(t){return function(n,e,r){return t(this,n,e,r)}})},function(t,n,e){e(26)("Float32",4,function(t){return function(n,e,r){return t(this,n,e,r)}})},function(t,n,e){e(26)("Float64",8,function(t){return function(n,e,r){return t(this,n,e,r)}})},function(t,n,e){var r=e(0),o=e(18),i=e(3),u=(e(1).Reflect||{}).apply,a=Function.apply;r(r.S+r.F*!e(2)(function(){u(function(){})}),"Reflect",{apply:function(t,n,e){var r=o(t),c=i(e);return u?u(r,n,c):a.call(r,n,c)}})},function(t,n,e){var r=e(0),o=e(35),i=e(18),u=e(3),a=e(4),c=e(2),f=e(123),s=(e(1).Reflect||{}).construct,l=c(function(){function t(){}return!(s(function(){},[],t)instanceof t)}),p=!c(function(){s(function(){})});r(r.S+r.F*(l||p),"Reflect",{construct:function(t,n){i(t),u(n);var e=arguments.length<3?t:i(arguments[2]);if(p&&!l)return s(t,n,e);if(t==e){switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3])}var r=[null];return r.push.apply(r,n),new(f.apply(t,r))}var c=e.prototype,h=o(a(c)?c:Object.prototype),d=Function.apply.call(t,h,n);return a(d)?d:h}})},function(t,n,e){var r=e(9),o=e(0),i=e(3),u=e(28);o(o.S+o.F*e(2)(function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,n,e){i(t),n=u(n,!0),i(e);try{return r.f(t,n,e),!0}catch(t){return!1}}})},function(t,n,e){var r=e(0),o=e(20).f,i=e(3);r(r.S,"Reflect",{deleteProperty:function(t,n){var e=o(i(t),n);return!(e&&!e.configurable)&&delete t[n]}})},function(t,n,e){"use strict";var r=e(0),o=e(3),i=function(t){this._t=o(t),this._i=0;var n,e=this._k=[];for(n in t)e.push(n)};e(130)(i,"Object",function(){var t,n=this._k;do{if(this._i>=n.length)return{value:void 0,done:!0}}while(!((t=n[this._i++])in this._t));return{value:t,done:!1}}),r(r.S,"Reflect",{enumerate:function(t){return new i(t)}})},function(t,n,e){var r=e(20),o=e(37),i=e(13),u=e(0),a=e(4),c=e(3);u(u.S,"Reflect",{get:function t(n,e){var u,f,s=arguments.length<3?n:arguments[2];return c(n)===s?n[e]:(u=r.f(n,e))?i(u,"value")?u.value:void 0!==u.get?u.get.call(s):void 0:a(f=o(n))?t(f,e,s):void 0}})},function(t,n,e){var r=e(20),o=e(0),i=e(3);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(t,n){return r.f(i(t),n)}})},function(t,n,e){var r=e(0),o=e(37),i=e(3);r(r.S,"Reflect",{getPrototypeOf:function(t){return o(i(t))}})},function(t,n,e){var r=e(0);r(r.S,"Reflect",{has:function(t,n){return n in t}})},function(t,n,e){var r=e(0),o=e(3),i=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return o(t),!i||i(t)}})},function(t,n,e){var r=e(0);r(r.S,"Reflect",{ownKeys:e(144)})},function(t,n,e){var r=e(0),o=e(3),i=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){o(t);try{return i&&i(t),!0}catch(t){return!1}}})},function(t,n,e){var r=e(9),o=e(20),i=e(37),u=e(13),a=e(0),c=e(30),f=e(3),s=e(4);a(a.S,"Reflect",{set:function t(n,e,a){var l,p,h=arguments.length<4?n:arguments[3],d=o.f(f(n),e);if(!d){if(s(p=i(n)))return t(p,e,a,h);d=c(0)}if(u(d,"value")){if(!1===d.writable||!s(h))return!1;if(l=o.f(h,e)){if(l.get||l.set||!1===l.writable)return!1;l.value=a,r.f(h,e,l)}else r.f(h,e,c(0,a));return!0}return void 0!==d.set&&(d.set.call(h,a),!0)}})},function(t,n,e){var r=e(0),o=e(81);o&&r(r.S,"Reflect",{setPrototypeOf:function(t,n){o.check(t,n);try{return o.set(t,n),!0}catch(t){return!1}}})},function(t,n,e){e(310),t.exports=e(7).Array.includes},function(t,n,e){"use strict";var r=e(0),o=e(62)(!0);r(r.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),e(38)("includes")},function(t,n,e){e(312),t.exports=e(7).Array.flatMap},function(t,n,e){"use strict";var r=e(0),o=e(313),i=e(10),u=e(6),a=e(18),c=e(132);r(r.P,"Array",{flatMap:function(t){var n,e,r=i(this);return a(t),n=u(r.length),e=c(r,0),o(e,r,r,n,0,1,t,arguments[1]),e}}),e(38)("flatMap")},function(t,n,e){"use strict";var r=e(64),o=e(4),i=e(6),u=e(17),a=e(5)("isConcatSpreadable");t.exports=function t(n,e,c,f,s,l,p,h){for(var d,v,y=s,g=0,m=!!p&&u(p,h,3);g<f;){if(g in c){if(d=m?m(c[g],g,e):c[g],v=!1,o(d)&&(v=void 0!==(v=d[a])?!!v:r(d)),v&&l>0)y=t(n,e,d,i(d.length),y,l-1)-1;else{if(y>=9007199254740991)throw TypeError();n[y]=d}y++}g++}return y}},function(t,n,e){e(315),t.exports=e(7).String.padStart},function(t,n,e){"use strict";var r=e(0),o=e(145),i=e(70),u=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i);r(r.P+r.F*u,"String",{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,n,e){e(317),t.exports=e(7).String.padEnd},function(t,n,e){"use strict";var r=e(0),o=e(145),i=e(70),u=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i);r(r.P+r.F*u,"String",{padEnd:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,n,e){e(319),t.exports=e(7).String.trimLeft},function(t,n,e){"use strict";e(45)("trimLeft",function(t){return function(){return t(this,1)}},"trimStart")},function(t,n,e){e(321),t.exports=e(7).String.trimRight},function(t,n,e){"use strict";e(45)("trimRight",function(t){return function(){return t(this,2)}},"trimEnd")},function(t,n,e){e(323),t.exports=e(77).f("asyncIterator")},function(t,n,e){e(117)("asyncIterator")},function(t,n,e){e(325),t.exports=e(7).Object.getOwnPropertyDescriptors},function(t,n,e){var r=e(0),o=e(144),i=e(15),u=e(20),a=e(93);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var n,e,r=i(t),c=u.f,f=o(r),s={},l=0;f.length>l;)void 0!==(e=c(r,n=f[l++]))&&a(s,n,e);return s}})},function(t,n,e){e(327),t.exports=e(7).Object.values},function(t,n,e){var r=e(0),o=e(146)(!1);r(r.S,"Object",{values:function(t){return o(t)}})},function(t,n,e){e(329),t.exports=e(7).Object.entries},function(t,n,e){var r=e(0),o=e(146)(!0);r(r.S,"Object",{entries:function(t){return o(t)}})},function(t,n,e){"use strict";e(138),e(331),t.exports=e(7).Promise.finally},function(t,n,e){"use strict";var r=e(0),o=e(7),i=e(1),u=e(57),a=e(140);r(r.P+r.R,"Promise",{finally:function(t){var n=u(this,o.Promise||i.Promise),e="function"==typeof t;return this.then(e?function(e){return a(n,t()).then(function(){return e})}:t,e?function(e){return a(n,t()).then(function(){throw e})}:t)}})},function(t,n,e){e(333),e(334),e(335),t.exports=e(7)},function(t,n,e){var r=e(1),o=e(0),i=e(70),u=[].slice,a=/MSIE .\./.test(i),c=function(t){return function(n,e){var r=arguments.length>2,o=!!r&&u.call(arguments,2);return t(r?function(){("function"==typeof n?n:Function(n)).apply(this,o)}:n,e)}};o(o.G+o.B+o.F*a,{setTimeout:c(r.setTimeout),setInterval:c(r.setInterval)})},function(t,n,e){var r=e(0),o=e(99);r(r.G+r.B,{setImmediate:o.set,clearImmediate:o.clear})},function(t,n,e){for(var r=e(96),o=e(33),i=e(11),u=e(1),a=e(14),c=e(46),f=e(5),s=f("iterator"),l=f("toStringTag"),p=c.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=o(h),v=0;v<d.length;v++){var y,g=d[v],m=h[g],b=u[g],w=b&&b.prototype;if(w&&(w[s]||a(w,s,p),w[l]||a(w,l,g),c[g]=p,m))for(y in r)w[y]||i(w,y,r[y],!0)}},function(t,n,e){var r=function(t){"use strict";var n,e=Object.prototype,r=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function c(t,n,e,r){var o=n&&n.prototype instanceof v?n:v,i=Object.create(o.prototype),u=new P(r||[]);return i._invoke=function(t,n,e){var r=s;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return F()}for(e.method=o,e.arg=i;;){var u=e.delegate;if(u){var a=O(u,e);if(a){if(a===d)continue;return a}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(r===s)throw r=h,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);r=p;var c=f(t,n,e);if("normal"===c.type){if(r=e.done?h:l,c.arg===d)continue;return{value:c.arg,done:e.done}}"throw"===c.type&&(r=h,e.method="throw",e.arg=c.arg)}}}(t,e,u),i}function f(t,n,e){try{return{type:"normal",arg:t.call(n,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var s="suspendedStart",l="suspendedYield",p="executing",h="completed",d={};function v(){}function y(){}function g(){}var m={};m[i]=function(){return this};var b=Object.getPrototypeOf,w=b&&b(b(T([])));w&&w!==e&&r.call(w,i)&&(m=w);var x=g.prototype=v.prototype=Object.create(m);function S(t){["next","throw","return"].forEach(function(n){t[n]=function(t){return this._invoke(n,t)}})}function _(t){var n;this._invoke=function(e,o){function i(){return new Promise(function(n,i){!function n(e,o,i,u){var a=f(t[e],t,o);if("throw"!==a.type){var c=a.arg,s=c.value;return s&&"object"==typeof s&&r.call(s,"__await")?Promise.resolve(s.__await).then(function(t){n("next",t,i,u)},function(t){n("throw",t,i,u)}):Promise.resolve(s).then(function(t){c.value=t,i(c)},function(t){return n("throw",t,i,u)})}u(a.arg)}(e,o,n,i)})}return n=n?n.then(i,i):i()}}function O(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,O(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=f(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function E(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function M(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function T(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,u=function e(){for(;++o<t.length;)if(r.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=n,e.done=!0,e};return u.next=u}}return{next:F}}function F(){return{value:n,done:!0}}return y.prototype=x.constructor=g,g.constructor=y,g[a]=y.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===y||"GeneratorFunction"===(n.displayName||n.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,a in t||(t[a]="GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},S(_.prototype),_.prototype[u]=function(){return this},t.AsyncIterator=_,t.async=function(n,e,r,o){var i=new _(c(n,e,r,o));return t.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},S(x),x[a]="Generator",x[i]=function(){return this},x.toString=function(){return"[object Generator]"},t.keys=function(t){var n=[];for(var e in t)n.push(e);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=T,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(M),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function o(r,o){return a.type="throw",a.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var u=this.tryEntries[i],a=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var c=r.call(u,"catchLoc"),f=r.call(u,"finallyLoc");if(c&&f){if(this.prev<u.catchLoc)return o(u.catchLoc,!0);if(this.prev<u.finallyLoc)return o(u.finallyLoc)}else if(c){if(this.prev<u.catchLoc)return o(u.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return o(u.finallyLoc)}}}},abrupt:function(t,n){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var u=i?i.completion:{};return u.type=t,u.arg=n,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(u)},complete:function(t,n){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&n&&(this.next=n),d},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),M(e),d}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.tryLoc===t){var r=e.completion;if("throw"===r.type){var o=r.arg;M(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),d}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},function(t,n,e){e(338),t.exports=e(23).global},function(t,n,e){var r=e(40);r(r.G,{global:e(27)})},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,e){t.exports={default:e(341),__esModule:!0}},function(t,n,e){e(342),t.exports=e(23).Object.getPrototypeOf},function(t,n,e){var r=e(102),o=e(150);e(343)("getPrototypeOf",function(){return function(t){return o(r(t))}})},function(t,n,e){var r=e(40),o=e(23),i=e(59);t.exports=function(t,n){var e=(o.Object||{})[t]||Object[t],u={};u[t]=n(e),r(r.S+r.F*i(function(){e(1)}),"Object",u)}},function(t,n,e){"use strict";n.__esModule=!0,n.default=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}},function(t,n,e){"use strict";n.__esModule=!0;var r,o=e(346),i=(r=o)&&r.__esModule?r:{default:r};n.default=function(){function t(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,i.default)(t,r.key,r)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}()},function(t,n,e){t.exports={default:e(347),__esModule:!0}},function(t,n,e){e(348);var r=e(23).Object;t.exports=function(t,n,e){return r.defineProperty(t,n,e)}},function(t,n,e){var r=e(40);r(r.S+r.F*!e(42),"Object",{defineProperty:e(41).f})},function(t,n,e){"use strict";n.__esModule=!0;var r,o=e(151),i=(r=o)&&r.__esModule?r:{default:r};n.default=function(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!==(void 0===n?"undefined":(0,i.default)(n))&&"function"!=typeof n?t:n}},function(t,n,e){t.exports={default:e(351),__esModule:!0}},function(t,n,e){e(352),e(361),t.exports=e(112).f("iterator")},function(t,n,e){"use strict";var r=e(353)(!0);e(152)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,e=this._i;return e>=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})})},function(t,n,e){var r=e(106),o=e(103);t.exports=function(t){return function(n,e){var i,u,a=String(o(n)),c=r(e),f=a.length;return c<0||c>=f?t?"":void 0:(i=a.charCodeAt(c))<55296||i>56319||c+1===f||(u=a.charCodeAt(c+1))<56320||u>57343?t?a.charAt(c):i:t?a.slice(c,c+2):u-56320+(i-55296<<10)+65536}}},function(t,n,e){"use strict";var r=e(108),o=e(73),i=e(111),u={};e(50)(u,e(53)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(u,{next:o(1,e)}),i(t,n+" Iterator")}},function(t,n,e){var r=e(41),o=e(58),i=e(109);t.exports=e(42)?Object.defineProperties:function(t,n){o(t);for(var e,u=i(n),a=u.length,c=0;a>c;)r.f(t,e=u[c++],n[e]);return t}},function(t,n,e){var r=e(155);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n,e){var r=e(52),o=e(358),i=e(359);t.exports=function(t){return function(n,e,u){var a,c=r(n),f=o(c.length),s=i(u,f);if(t&&e!=e){for(;f>s;)if((a=c[s++])!=a)return!0}else for(;f>s;s++)if((t||s in c)&&c[s]===e)return t||s||0;return!t&&-1}}},function(t,n,e){var r=e(106),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,n,e){var r=e(106),o=Math.max,i=Math.min;t.exports=function(t,n){return(t=r(t))<0?o(t+n,0):i(t,n)}},function(t,n,e){var r=e(27).document;t.exports=r&&r.documentElement},function(t,n,e){e(362);for(var r=e(27),o=e(50),i=e(107),u=e(53)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<a.length;c++){var f=a[c],s=r[f],l=s&&s.prototype;l&&!l[u]&&o(l,u,f),i[f]=i.Array}},function(t,n,e){"use strict";var r=e(363),o=e(364),i=e(107),u=e(52);t.exports=e(152)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,o(1)):o(0,"keys"==n?e:"values"==n?t[e]:[e,t[e]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,n){t.exports=function(){}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){t.exports={default:e(366),__esModule:!0}},function(t,n,e){e(367),e(372),e(373),e(374),t.exports=e(23).Symbol},function(t,n,e){"use strict";var r=e(27),o=e(43),i=e(42),u=e(40),a=e(153),c=e(368).KEY,f=e(59),s=e(105),l=e(111),p=e(75),h=e(53),d=e(112),v=e(113),y=e(369),g=e(370),m=e(58),b=e(51),w=e(102),x=e(52),S=e(101),_=e(73),O=e(108),E=e(371),M=e(158),P=e(156),T=e(41),F=e(109),I=M.f,j=T.f,A=E.f,k=r.Symbol,N=r.JSON,R=N&&N.stringify,L=h("_hidden"),C=h("toPrimitive"),z={}.propertyIsEnumerable,W=s("symbol-registry"),D=s("symbols"),V=s("op-symbols"),B=Object.prototype,U="function"==typeof k&&!!P.f,G=r.QObject,H=!G||!G.prototype||!G.prototype.findChild,q=i&&f(function(){return 7!=O(j({},"a",{get:function(){return j(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=I(B,n);r&&delete B[n],j(t,n,e),r&&t!==B&&j(B,n,r)}:j,Y=function(t){var n=D[t]=O(k.prototype);return n._k=t,n},J=U&&"symbol"==typeof k.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof k},K=function(t,n,e){return t===B&&K(V,n,e),m(t),n=S(n,!0),m(e),o(D,n)?(e.enumerable?(o(t,L)&&t[L][n]&&(t[L][n]=!1),e=O(e,{enumerable:_(0,!1)})):(o(t,L)||j(t,L,_(1,{})),t[L][n]=!0),q(t,n,e)):j(t,n,e)},X=function(t,n){m(t);for(var e,r=y(n=x(n)),o=0,i=r.length;i>o;)K(t,e=r[o++],n[e]);return t},$=function(t){var n=z.call(this,t=S(t,!0));return!(this===B&&o(D,t)&&!o(V,t))&&(!(n||!o(this,t)||!o(D,t)||o(this,L)&&this[L][t])||n)},Q=function(t,n){if(t=x(t),n=S(n,!0),t!==B||!o(D,n)||o(V,n)){var e=I(t,n);return!e||!o(D,n)||o(t,L)&&t[L][n]||(e.enumerable=!0),e}},Z=function(t){for(var n,e=A(x(t)),r=[],i=0;e.length>i;)o(D,n=e[i++])||n==L||n==c||r.push(n);return r},tt=function(t){for(var n,e=t===B,r=A(e?V:x(t)),i=[],u=0;r.length>u;)!o(D,n=r[u++])||e&&!o(B,n)||i.push(D[n]);return i};U||(a((k=function(){if(this instanceof k)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),n=function(e){this===B&&n.call(V,e),o(this,L)&&o(this[L],t)&&(this[L][t]=!1),q(this,t,_(1,e))};return i&&H&&q(B,t,{configurable:!0,set:n}),Y(t)}).prototype,"toString",function(){return this._k}),M.f=Q,T.f=K,e(157).f=E.f=Z,e(114).f=$,P.f=tt,i&&!e(74)&&a(B,"propertyIsEnumerable",$,!0),d.f=function(t){return Y(h(t))}),u(u.G+u.W+u.F*!U,{Symbol:k});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;nt.length>et;)h(nt[et++]);for(var rt=F(h.store),ot=0;rt.length>ot;)v(rt[ot++]);u(u.S+u.F*!U,"Symbol",{for:function(t){return o(W,t+="")?W[t]:W[t]=k(t)},keyFor:function(t){if(!J(t))throw TypeError(t+" is not a symbol!");for(var n in W)if(W[n]===t)return n},useSetter:function(){H=!0},useSimple:function(){H=!1}}),u(u.S+u.F*!U,"Object",{create:function(t,n){return void 0===n?O(t):X(O(t),n)},defineProperty:K,defineProperties:X,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Z,getOwnPropertySymbols:tt});var it=f(function(){P.f(1)});u(u.S+u.F*it,"Object",{getOwnPropertySymbols:function(t){return P.f(w(t))}}),N&&u(u.S+u.F*(!U||f(function(){var t=k();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))})),"JSON",{stringify:function(t){for(var n,e,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(e=n=r[1],(b(n)||void 0!==t)&&!J(t))return g(n)||(n=function(t,n){if("function"==typeof e&&(n=e.call(this,t,n)),!J(n))return n}),r[1]=n,R.apply(N,r)}}),k.prototype[C]||e(50)(k.prototype,C,k.prototype.valueOf),l(k,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,n,e){var r=e(75)("meta"),o=e(51),i=e(43),u=e(41).f,a=0,c=Object.isExtensible||function(){return!0},f=!e(59)(function(){return c(Object.preventExtensions({}))}),s=function(t){u(t,r,{value:{i:"O"+ ++a,w:{}}})},l=t.exports={KEY:r,NEED:!1,fastKey:function(t,n){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!c(t))return"F";if(!n)return"E";s(t)}return t[r].i},getWeak:function(t,n){if(!i(t,r)){if(!c(t))return!0;if(!n)return!1;s(t)}return t[r].w},onFreeze:function(t){return f&&l.NEED&&c(t)&&!i(t,r)&&s(t),t}}},function(t,n,e){var r=e(109),o=e(156),i=e(114);t.exports=function(t){var n=r(t),e=o.f;if(e)for(var u,a=e(t),c=i.f,f=0;a.length>f;)c.call(t,u=a[f++])&&n.push(u);return n}},function(t,n,e){var r=e(155);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){var r=e(52),o=e(157).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return u.slice()}}(t):o(r(t))}},function(t,n){},function(t,n,e){e(113)("asyncIterator")},function(t,n,e){e(113)("observable")},function(t,n,e){"use strict";n.__esModule=!0;var r=u(e(376)),o=u(e(380)),i=u(e(151));function u(t){return t&&t.__esModule?t:{default:t}}n.default=function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+(void 0===n?"undefined":(0,i.default)(n)));t.prototype=(0,o.default)(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(r.default?(0,r.default)(t,n):t.__proto__=n)}},function(t,n,e){t.exports={default:e(377),__esModule:!0}},function(t,n,e){e(378),t.exports=e(23).Object.setPrototypeOf},function(t,n,e){var r=e(40);r(r.S,"Object",{setPrototypeOf:e(379).set})},function(t,n,e){var r=e(51),o=e(58),i=function(t,n){if(o(t),!r(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,r){try{(r=e(147)(Function.call,e(158).f(Object.prototype,"__proto__").set,2))(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,e){return i(t,e),n?t.__proto__=e:r(t,e),t}}({},!1):void 0),check:i}},function(t,n,e){t.exports={default:e(381),__esModule:!0}},function(t,n,e){e(382);var r=e(23).Object;t.exports=function(t,n){return r.create(t,n)}},function(t,n,e){var r=e(40);r(r.S,"Object",{create:e(108)})},function(t,n,e){t.exports=e(384)()},function(t,n,e){"use strict";var r=e(385);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,n,e,o,i,u){if(u!==r){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 n(){return t}t.isRequired=t;var e={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:n,element:t,elementType:t,instanceOf:n,node:t,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:i,resetWarningCache:o};return e.PropTypes=e,e}},function(t,n,e){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,n){t.exports=ReactDOM},function(t,n,e){"use strict";t.exports=e(388)},function(t,n,e){n.iframeResizer=e(389),n.iframeResizerContentWindow=e(390)},function(t,n,e){var r,o,i;!function(e){"use strict";if("undefined"!=typeof window){var u,a=0,c=!1,f=!1,s="message".length,l="[iFrameSizer]",p=l.length,h=null,d=window.requestAnimationFrame,v={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},y={},g=null,m={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",closedCallback:function(){},initCallback:function(){},messageCallback:function(){P("MessageCallback function not defined")},resizedCallback:function(){},scrollCallback:function(){return!0}},b={};window.jQuery&&((u=window.jQuery).fn?u.fn.iFrameResize||(u.fn.iFrameResize=function(t){return this.filter("iframe").each(function(n,e){V(e,t)}).end()}):M("","Unable to bind to jQuery, it is not fully loaded.")),o=[],(i="function"==typeof(r=q)?r.apply(n,o):r)===e||(t.exports=i),window.iFrameResize=window.iFrameResize||q()}function w(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function x(t,n,e){"addEventListener"in window?t.addEventListener(n,e,!1):"attachEvent"in window&&t.attachEvent("on"+n,e)}function S(t,n,e){"removeEventListener"in window?t.removeEventListener(n,e,!1):"detachEvent"in window&&t.detachEvent("on"+n,e)}function _(t){return l+"["+function(t){var n="Host page: "+t;return window.top!==window.self&&(n=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+t:"Nested host page: "+t),n}(t)+"]"}function O(t){return y[t]?y[t].log:c}function E(t,n){T("log",t,n,O(t))}function M(t,n){T("info",t,n,O(t))}function P(t,n){T("warn",t,n,!0)}function T(t,n,e,r){!0===r&&"object"==typeof window.console&&console[t](_(n),e)}function F(t){function n(){e("Height"),e("Width"),z(function(){C(m),N(w),c("resizedCallback",m)},m,"init")}function e(t){var n=Number(y[w]["max"+t]),e=Number(y[w]["min"+t]),r=t.toLowerCase(),o=Number(m[r]);E(w,"Checking "+r+" is in range "+e+"-"+n),o<e&&(o=e,E(w,"Set "+r+" to min value")),o>n&&(o=n,E(w,"Set "+r+" to max value")),m[r]=""+o}function r(t){return g.substr(g.indexOf(":")+s+t)}function o(t,n){var e,r,o;e=function(){var e,r;W("Send Page Info","pageInfo:"+(e=document.body.getBoundingClientRect(),r=m.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:r.height,iframeWidth:r.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(r.top-e.top,10),offsetLeft:parseInt(r.left-e.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset})),t,n)},r=32,b[o=n]||(b[o]=setTimeout(function(){b[o]=null,e()},r))}function i(t){var n=t.getBoundingClientRect();return k(w),{x:Math.floor(Number(n.left)+Number(h.x)),y:Math.floor(Number(n.top)+Number(h.y))}}function u(t){var n=t?i(m.iframe):{x:0,y:0},e={x:Number(m.width)+n.x,y:Number(m.height)+n.y};E(w,"Reposition requested from iFrame (offset x:"+n.x+" y:"+n.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(t?"Offset":"")](e.x,e.y):P(w,"Unable to scroll to requested position, window.parentIFrame not found"):(h=e,a(),E(w,"--"))}function a(){!1!==c("scrollCallback",h)?N(w):R()}function c(t,n){return I(w,t,n)}var f,d,v,g=t.data,m={},w=null;"[iFrameResizerChild]Ready"===g?function(){for(var t in y)W("iFrame requested init",D(t),document.getElementById(t),t)}():l===(""+g).substr(0,p)&&g.substr(p).split(":")[0]in y?(v=g.substr(p).split(":"),m={iframe:y[v[0]]&&y[v[0]].iframe,id:v[0],height:v[1],width:v[2],type:v[3]},w=m.id,y[w]&&(y[w].loaded=!0),(d=m.type in{true:1,false:1,undefined:1})&&E(w,"Ignoring init message from meta parent page"),!d&&function(t){var n=!0;return y[t]||(n=!1,P(m.type+" No settings for "+t+". Message was: "+g)),n}(w)&&(E(w,"Received: "+g),f=!0,null===m.iframe&&(P(w,"IFrame ("+m.id+") not found"),f=!1),f&&function(){var n,e=t.origin,r=y[w]&&y[w].checkOrigin;if(r&&""+e!="null"&&!(r.constructor===Array?function(){var t=0,n=!1;for(E(w,"Checking connection is from allowed list of origins: "+r);t<r.length;t++)if(r[t]===e){n=!0;break}return n}():(n=y[w]&&y[w].remoteHost,E(w,"Checking connection is from: "+n),e===n)))throw new Error("Unexpected message received from: "+e+" for "+m.iframe.id+". Message was: "+t.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(y[w]&&y[w].firstRun&&y[w]&&(y[w].firstRun=!1),m.type){case"close":y[w].closeRequestCallback?I(w,"closeRequestCallback",y[w].iframe):A(m.iframe);break;case"message":t=r(6),E(w,"MessageCallback passed: {iframe: "+m.iframe.id+", message: "+t+"}"),c("messageCallback",{iframe:m.iframe,message:JSON.parse(t)}),E(w,"--");break;case"scrollTo":u(!1);break;case"scrollToOffset":u(!0);break;case"pageInfo":o(y[w]&&y[w].iframe,w),function(){function t(t,r){function i(){y[e]?o(y[e].iframe,e):n()}["scroll","resize"].forEach(function(n){E(e,t+n+" listener for sendPageInfo"),r(window,n,i)})}function n(){t("Remove ",S)}var e=w;t("Add ",x),y[e]&&(y[e].stopPageInfo=n)}();break;case"pageInfoStop":y[w]&&y[w].stopPageInfo&&(y[w].stopPageInfo(),delete y[w].stopPageInfo);break;case"inPageLink":!function(t){var n,e=t.split("#")[1]||"",r=decodeURIComponent(e),o=document.getElementById(r)||document.getElementsByName(r)[0];o?(n=i(o),E(w,"Moving to in page link (#"+e+") at x: "+n.x+" y: "+n.y),h={x:n.x,y:n.y},a(),E(w,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(e):E(w,"In page link #"+e+" not found and window.parentIFrame not found"):E(w,"In page link #"+e+" not found")}(r(9));break;case"reset":L(m);break;case"init":n(),c("initCallback",m.iframe);break;default:n()}var t}())):M(w,"Ignored: "+g)}function I(t,n,e){var r=null,o=null;if(y[t]){if("function"!=typeof(r=y[t][n]))throw new TypeError(n+" on iFrame["+t+"] is not a function");o=r(e)}return o}function j(t){var n=t.id;delete y[n]}function A(t){var n=t.id;E(n,"Removing iFrame: "+n);try{t.parentNode&&t.parentNode.removeChild(t)}catch(t){}I(n,"closedCallback",n),E(n,"--"),j(t)}function k(t){null===h&&E(t,"Get page position: "+(h={x:window.pageXOffset!==e?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==e?window.pageYOffset:document.documentElement.scrollTop}).x+","+h.y)}function N(t){null!==h&&(window.scrollTo(h.x,h.y),E(t,"Set page position: "+h.x+","+h.y),R())}function R(){h=null}function L(t){E(t.id,"Size reset requested by "+("init"===t.type?"host page":"iFrame")),k(t.id),z(function(){C(t),W("reset","reset",t.iframe,t.id)},t,"reset")}function C(t){function n(n){f||"0"!==t[n]||(f=!0,E(r,"Hidden iFrame detected, creating visibility listener"),function(){function t(){function t(t){function n(n){return"0px"===(y[t]&&y[t].iframe.style[n])}y[t]&&null!==y[t].iframe.offsetParent&&(n("height")||n("width"))&&W("Visibility change","resize",y[t].iframe,t)}for(var n in y)t(n)}function n(n){E("window","Mutation observed: "+n[0].target+" "+n[0].type),B(t,16)}var e=w();e&&(r=document.querySelector("body"),new e(n).observe(r,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}));var r}())}function e(e){!function(n){t.id?(t.iframe.style[n]=t[n]+"px",E(t.id,"IFrame ("+r+") "+n+" set to "+t[n]+"px")):E("undefined","messageData id not set")}(e),n(e)}var r=t.iframe.id;y[r]&&(y[r].sizeHeight&&e("height"),y[r].sizeWidth&&e("width"))}function z(t,n,e){e!==n.type&&d?(E(n.id,"Requesting animation frame"),d(t)):t()}function W(t,n,e,r,o){var i,u=!1;r=r||e.id,y[r]&&(e&&"contentWindow"in e&&null!==e.contentWindow?(i=y[r]&&y[r].targetOrigin,E(r,"["+t+"] Sending msg to iframe["+r+"] ("+n+") targetOrigin: "+i),e.contentWindow.postMessage(l+n,i)):P(r,"["+t+"] IFrame("+r+") not found"),o&&y[r]&&y[r].warningTimeout&&(y[r].msgTimeout=setTimeout(function(){!y[r]||y[r].loaded||u||(u=!0,P(r,"IFrame has not responded within "+y[r].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."))},y[r].warningTimeout)))}function D(t){return t+":"+y[t].bodyMarginV1+":"+y[t].sizeWidth+":"+y[t].log+":"+y[t].interval+":"+y[t].enablePublicMethods+":"+y[t].autoResize+":"+y[t].bodyMargin+":"+y[t].heightCalculationMethod+":"+y[t].bodyBackground+":"+y[t].bodyPadding+":"+y[t].tolerance+":"+y[t].inPageLinks+":"+y[t].resizeFrom+":"+y[t].widthCalculationMethod}function V(t,n){var r,o,i=function(e){var r;return e,""===e&&(t.id=(r=n&&n.id||m.id+a++,null!==document.getElementById(r)&&(r+=a++),e=r),c=(n||{}).log,e,E(e,"Added missing iframe ID: "+e+" ("+t.src+")")),e}(t.id);i in y&&"iFrameResizer"in t?P(i,"Ignored iFrame, already setup."):(!function(n){var e;n=n||{},y[i]={firstRun:!0,iframe:t,remoteHost:t.src.split("/").slice(0,3).join("/")},function(t){if("object"!=typeof t)throw new TypeError("Options is not an object")}(n),function(t){for(var n in m)m.hasOwnProperty(n)&&(y[i][n]=t.hasOwnProperty(n)?t[n]:m[n])}(n),y[i]&&(y[i].targetOrigin=!0===y[i].checkOrigin?""===(e=y[i].remoteHost)||"file://"===e?"*":e:"*")}(n),function(){switch(E(i,"IFrame scrolling "+(y[i]&&y[i].scrolling?"enabled":"disabled")+" for "+i),t.style.overflow=!1===(y[i]&&y[i].scrolling)?"hidden":"auto",y[i]&&y[i].scrolling){case"omit":break;case!0:t.scrolling="yes";break;case!1:t.scrolling="no";break;default:t.scrolling=y[i]?y[i].scrolling:"no"}}(),function(){function n(n){1/0!==y[i][n]&&0!==y[i][n]&&(t.style[n]=y[i][n]+"px",E(i,"Set "+n+" = "+y[i][n]+"px"))}function e(t){if(y[i]["min"+t]>y[i]["max"+t])throw new Error("Value for min"+t+" can not be greater than max"+t)}e("Height"),e("Width"),n("maxHeight"),n("minHeight"),n("maxWidth"),n("minWidth")}(),"number"!=typeof(y[i]&&y[i].bodyMargin)&&"0"!==(y[i]&&y[i].bodyMargin)||(y[i].bodyMarginV1=y[i].bodyMargin,y[i].bodyMargin=y[i].bodyMargin+"px"),r=D(i),(o=w())&&function(n){t.parentNode&&new n(function(n){n.forEach(function(n){Array.prototype.slice.call(n.removedNodes).forEach(function(n){n===t&&A(t)})})}).observe(t.parentNode,{childList:!0})}(o),x(t,"load",function(){var n,o;W("iFrame.onload",r,t,e,!0),n=y[i]&&y[i].firstRun,o=y[i]&&y[i].heightCalculationMethod in v,!n&&o&&L({iframe:t,height:0,width:0,type:"init"})}),W("init",r,t,e,!0),Function.prototype.bind&&y[i]&&(y[i].iframe.iFrameResizer={close:A.bind(null,y[i].iframe),removeListeners:j.bind(null,y[i].iframe),resize:W.bind(null,"Window resize","resize",y[i].iframe),moveToAnchor:function(t){W("Move to anchor","moveToAnchor:"+t,y[i].iframe,i)},sendMessage:function(t){W("Send Message","message:"+(t=JSON.stringify(t)),y[i].iframe,i)}}))}function B(t,n){null===g&&(g=setTimeout(function(){g=null,t()},n))}function U(t){E("window","Trigger event: "+t),B(function(){H("Window "+t,"resize")},16)}function G(){"hidden"!==document.visibilityState&&(E("document","Trigger event: Visiblity change"),B(function(){H("Tab Visable","resize")},16))}function H(t,n){function e(t){return y[t]&&"parent"===y[t].resizeFrom&&y[t].autoResize&&!y[t].firstRun}for(var r in y)e(r)&&W(t,n,document.getElementById(r),r)}function q(){function t(t,e){e&&(!function(){if(!e.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==e.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+e.tagName+">")}(),V(e,t),n.push(e))}var n;return function(){var t,n=["moz","webkit","o","ms"];for(t=0;t<n.length&&!d;t+=1)d=window[n[t]+"RequestAnimationFrame"];d||E("setup","RequestAnimationFrame not supported")}(),x(window,"message",F),x(window,"resize",function(){U("resize")}),x(document,"visibilitychange",G),x(document,"-webkit-visibilitychange",G),x(window,"focusin",function(){U("focus")}),x(window,"focus",function(){U("focus")}),function(r,o){switch(n=[],function(t){t&&t.enablePublicMethods&&P("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(r),typeof o){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(o||"iframe"),t.bind(e,r));break;case"object":t(r,o);break;default:throw new TypeError("Unexpected data type ("+typeof o+")")}return n}}}()},function(t,n,e){!function(n){"use strict";if("undefined"!=typeof window){var e=!0,r=10,o="",i=0,u="",a=null,c="",f=!1,s={resize:1,click:1},l=128,p=!0,h=1,d="bodyOffset",v=d,y=!0,g="",m={},b=32,w=null,x=!1,S="[iFrameSizer]",_=S.length,O="",E={max:1,min:1,bodyScroll:1,documentElementScroll:1},M="child",P=!0,T=window.parent,F="*",I=0,j=!1,A=null,k=16,N=1,R="scroll",L=R,C=window,z=function(){ct("MessageCallback function not defined")},W=function(){},D=function(){},V={height:function(){return ct("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return ct("Custom width calculation function not defined"),document.body.scrollWidth}},B={},U=!1;try{var G=Object.create({},{passive:{get:function(){U=!0}},once:{get:function(){!0}}});window.addEventListener("test",et,G),window.removeEventListener("test",et,G)}catch(t){}var H,q,Y,J,K,X,$,Q=Date.now||function(){return(new Date).getTime()},Z={bodyOffset:function(){return document.body.offsetHeight+bt("marginTop")+bt("marginBottom")},offset:function(){return Z.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return V.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,xt(Z))},min:function(){return Math.min.apply(null,xt(Z))},grow:function(){return Z.max()},lowestElement:function(){return Math.max(Z.bodyOffset()||Z.documentElementOffset(),wt("bottom",_t()))},taggedElement:function(){return St("bottom","data-iframe-height")}},tt={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return V.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(tt.bodyScroll(),tt.documentElementScroll())},max:function(){return Math.max.apply(null,xt(tt))},min:function(){return Math.min.apply(null,xt(tt))},rightMostElement:function(){return wt("right",_t())},taggedElement:function(){return St("right","data-iframe-width")}},nt=(H=Ot,K=null,X=0,$=function(){X=Q(),K=null,J=H.apply(q,Y),K||(q=Y=null)},function(){var t=Q();X||(X=t);var n=k-(t-X);return q=this,Y=arguments,n<=0||n>k?(K&&(clearTimeout(K),K=null),X=t,J=H.apply(q,Y),K||(q=Y=null)):K||(K=setTimeout($,n)),J});rt(window,"message",It),rt(window,"readystatechange",jt),jt()}function et(){}function rt(t,n,e,r){"addEventListener"in window?t.addEventListener(n,e,!!U&&(r||{})):"attachEvent"in window&&t.attachEvent("on"+n,e)}function ot(t,n,e){"removeEventListener"in window?t.removeEventListener(n,e,!1):"detachEvent"in window&&t.detachEvent("on"+n,e)}function it(t){return t.charAt(0).toUpperCase()+t.slice(1)}function ut(t){return S+"["+O+"] "+t}function at(t){x&&"object"==typeof window.console&&console.log(ut(t))}function ct(t){"object"==typeof window.console&&console.warn(ut(t))}function ft(){var t;!function(){function t(t){return"true"===t}var r=g.substr(_).split(":");O=r[0],i=n!==r[1]?Number(r[1]):i,f=n!==r[2]?t(r[2]):f,x=n!==r[3]?t(r[3]):x,b=n!==r[4]?Number(r[4]):b,e=n!==r[6]?t(r[6]):e,u=r[7],v=n!==r[8]?r[8]:v,o=r[9],c=r[10],I=n!==r[11]?Number(r[11]):I,m.enable=n!==r[12]&&t(r[12]),M=n!==r[13]?r[13]:M,L=n!==r[14]?r[14]:L}(),at("Initialising iFrame ("+location.href+")"),function(){function t(t,n){return"function"==typeof t&&(at("Setup custom "+n+"CalcMethod"),V[n]=t,t="custom"),t}"iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(n=window.iFrameResizer,at("Reading data from page: "+JSON.stringify(n)),z="messageCallback"in n?n.messageCallback:z,W="readyCallback"in n?n.readyCallback:W,F="targetOrigin"in n?n.targetOrigin:F,v="heightCalculationMethod"in n?n.heightCalculationMethod:v,L="widthCalculationMethod"in n?n.widthCalculationMethod:L,v=t(v,"height"),L=t(L,"width"));var n;at("TargetOrigin for parent set to: "+F)}(),function(){n===u&&(u=i+"px");st("margin",function(t,n){-1!==n.indexOf("-")&&(ct("Negative CSS value ignored for "+t),n="");return n}("margin",u))}(),st("background",o),st("padding",c),(t=document.createElement("div")).style.clear="both",t.style.display="block",document.body.appendChild(t),dt(),vt(),document.documentElement.style.height="",document.body.style.height="",at('HTML & body height set to "auto"'),at("Enable public methods"),C.parentIFrame={autoResize:function(t){return!0===t&&!1===e?(e=!0,yt()):!1===t&&!0===e&&(e=!1,gt()),e},close:function(){Ft(0,0,"close"),at("Disable outgoing messages"),P=!1,at("Remove event listener: Message"),ot(window,"message",It),!0===e&>()},getId:function(){return O},getPageInfo:function(t){"function"==typeof t?(D=t,Ft(0,0,"pageInfo")):(D=function(){},Ft(0,0,"pageInfoStop"))},moveToAnchor:function(t){m.findTarget(t)},reset:function(){Tt("parentIFrame.reset")},scrollTo:function(t,n){Ft(n,t,"scrollTo")},scrollToOffset:function(t,n){Ft(n,t,"scrollToOffset")},sendMessage:function(t,n){Ft(0,0,"message",JSON.stringify(t),n)},setHeightCalculationMethod:function(t){v=t,dt()},setWidthCalculationMethod:function(t){L=t,vt()},setTargetOrigin:function(t){at("Set targetOrigin: "+t),F=t},size:function(t,n){var e=(t||"")+(n?","+n:"");Et("size","parentIFrame.size("+e+")",t,n)}},yt(),m=function(){function t(t){var e=t.getBoundingClientRect(),r={x:window.pageXOffset!==n?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==n?window.pageYOffset:document.documentElement.scrollTop};return{x:parseInt(e.left,10)+parseInt(r.x,10),y:parseInt(e.top,10)+parseInt(r.y,10)}}function e(e){var r=e.split("#")[1]||e,o=decodeURIComponent(r),i=document.getElementById(o)||document.getElementsByName(o)[0];n!==i?function(n){var e=t(n);at("Moving to in page link (#"+r+") at x: "+e.x+" y: "+e.y),Ft(e.y,e.x,"scrollToOffset")}(i):(at("In page link (#"+r+") not found in iFrame, so sending to parent"),Ft(0,0,"inPageLink","#"+r))}function r(){""!==location.hash&&"#"!==location.hash&&e(location.href)}m.enable?Array.prototype.forEach&&document.querySelectorAll?(at("Setting up location.hash handlers"),Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),function(t){"#"!==t.getAttribute("href")&&rt(t,"click",function(t){t.preventDefault(),e(this.getAttribute("href"))})}),rt(window,"hashchange",r),setTimeout(r,l)):ct("In page linking not fully supported in this browser! (See README.md for IE8 workaround)"):at("In page linking not enabled");return{findTarget:e}}(),Et("init","Init message from host page"),W()}function st(t,e){n!==e&&""!==e&&"null"!==e&&(document.body.style[t]=e,at("Body "+t+' set to "'+e+'"'))}function lt(t){var n={add:function(n){function e(){Et(t.eventName,t.eventType)}B[n]=e,rt(window,n,e,{passive:!0})},remove:function(t){var n=B[t];delete B[t],ot(window,t,n)}};t.eventNames&&Array.prototype.map?(t.eventName=t.eventNames[0],t.eventNames.map(n[t.method])):n[t.method](t.eventName),at(it(t.method)+" event listener: "+t.eventType)}function pt(t){lt({method:t,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),lt({method:t,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),lt({method:t,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),lt({method:t,eventType:"Input",eventName:"input"}),lt({method:t,eventType:"Mouse Up",eventName:"mouseup"}),lt({method:t,eventType:"Mouse Down",eventName:"mousedown"}),lt({method:t,eventType:"Orientation Change",eventName:"orientationchange"}),lt({method:t,eventType:"Print",eventName:["afterprint","beforeprint"]}),lt({method:t,eventType:"Ready State Change",eventName:"readystatechange"}),lt({method:t,eventType:"Touch Start",eventName:"touchstart"}),lt({method:t,eventType:"Touch End",eventName:"touchend"}),lt({method:t,eventType:"Touch Cancel",eventName:"touchcancel"}),lt({method:t,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),lt({method:t,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),lt({method:t,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}),"child"===M&<({method:t,eventType:"IFrame Resized",eventName:"resize"})}function ht(t,n,e,r){return n!==t&&(t in e||(ct(t+" is not a valid option for "+r+"CalculationMethod."),t=n),at(r+' calculation method set to "'+t+'"')),t}function dt(){v=ht(v,d,Z,"height")}function vt(){L=ht(L,R,tt,"width")}function yt(){var t;!0===e?(pt("add"),t=0>b,window.MutationObserver||window.WebKitMutationObserver?t?mt():a=function(){function t(t){function n(t){!1===t.complete&&(at("Attach listeners to "+t.src),t.addEventListener("load",o,!1),t.addEventListener("error",i,!1),a.push(t))}"attributes"===t.type&&"src"===t.attributeName?n(t.target):"childList"===t.type&&Array.prototype.forEach.call(t.target.querySelectorAll("img"),n)}function e(t){at("Remove listeners from "+t.src),t.removeEventListener("load",o,!1),t.removeEventListener("error",i,!1),function(t){a.splice(a.indexOf(t),1)}(t)}function r(t,r,o){e(t.target),Et(r,o+": "+t.target.src,n,n)}function o(t){r(t,"imageLoad","Image loaded")}function i(t){r(t,"imageLoadFailed","Image load failed")}function u(n){Et("mutationObserver","mutationObserver: "+n[0].target+" "+n[0].type),n.forEach(t)}var a=[],c=window.MutationObserver||window.WebKitMutationObserver,f=function(){var t=document.querySelector("body");return f=new c(u),at("Create body MutationObserver"),f.observe(t,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}),f}();return{disconnect:function(){"disconnect"in f&&(at("Disconnect body MutationObserver"),f.disconnect(),a.forEach(e))}}}():(at("MutationObserver not supported in this browser!"),mt())):at("Auto Resize disabled")}function gt(){pt("remove"),null!==a&&a.disconnect(),clearInterval(w)}function mt(){0!==b&&(at("setInterval: "+b+"ms"),w=setInterval(function(){Et("interval","setInterval: "+b)},Math.abs(b)))}function bt(t,n){var e=0;return n=n||document.body,e="defaultView"in document&&"getComputedStyle"in document.defaultView?null!==(e=document.defaultView.getComputedStyle(n,null))?e[t]:0:function(t){if(/^\d+(px)?$/i.test(t))return parseInt(t,r);var e=n.style.left,o=n.runtimeStyle.left;return n.runtimeStyle.left=n.currentStyle.left,n.style.left=t||0,t=n.style.pixelLeft,n.style.left=e,n.runtimeStyle.left=o,t}(n.currentStyle[t]),parseInt(e,r)}function wt(t,n){for(var e=n.length,r=0,o=0,i=it(t),u=Q(),a=0;a<e;a++)(r=n[a].getBoundingClientRect()[t]+bt("margin"+i,n[a]))>o&&(o=r);return u=Q()-u,at("Parsed "+e+" HTML elements"),at("Element position calculated in "+u+"ms"),function(t){t>k/2&&at("Event throttle increased to "+(k=2*t)+"ms")}(u),o}function xt(t){return[t.bodyOffset(),t.bodyScroll(),t.documentElementOffset(),t.documentElementScroll()]}function St(t,n){var e=document.querySelectorAll("["+n+"]");return 0===e.length&&(ct("No tagged elements ("+n+") found on page"),document.querySelectorAll("body *")),wt(t,e)}function _t(){return document.querySelectorAll("body *")}function Ot(t,e,r,o){var i,u;!function(){function t(t,n){return!(Math.abs(t-n)<=I)}return i=n!==r?r:Z[v](),u=n!==o?o:tt[L](),t(h,i)||f&&t(N,u)}()&&"init"!==t?t in{init:1,interval:1,size:1}||!(v in E||f&&L in E)?t in{interval:1}||at("No change in size detected"):Tt(e):(Mt(),Ft(h=i,N=u,t))}function Et(t,n,e,r){j&&t in s?at("Trigger event cancelled: "+t):(t in{reset:1,resetPage:1,init:1}||at("Trigger event: "+n),"init"===t?Ot(t,n,e,r):nt(t,n,e,r))}function Mt(){j||(j=!0,at("Trigger event lock on")),clearTimeout(A),A=setTimeout(function(){j=!1,at("Trigger event lock off"),at("--")},l)}function Pt(t){h=Z[v](),N=tt[L](),Ft(h,N,t)}function Tt(t){var n=v;v=d,at("Reset trigger event: "+t),Mt(),Pt("reset"),v=n}function Ft(t,e,r,o,i){var u;!0===P&&(n===i?i=F:at("Message targetOrigin: "+i),at("Sending message to host page ("+(u=O+":"+t+":"+e+":"+r+(n!==o?":"+o:""))+")"),T.postMessage(S+u,i))}function It(n){var e={init:function(){g=n.data,T=n.source,ft(),p=!1,setTimeout(function(){y=!1},l)},reset:function(){y?at("Page reset ignored by init"):(at("Page size reset by host page"),Pt("resetPage"))},resize:function(){Et("resizeParent","Parent window requested size check")},moveToAnchor:function(){m.findTarget(o())},inPageLink:function(){this.moveToAnchor()},pageInfo:function(){var t=o();at("PageInfoFromParent called from parent: "+t),D(JSON.parse(t)),at(" --")},message:function(){var t=o();at("MessageCallback called from parent: "+t),z(JSON.parse(t)),at(" --")}};function r(){return n.data.split("]")[1].split(":")[0]}function o(){return n.data.substr(n.data.indexOf(":")+1)}function i(){return n.data.split(":")[2]in{true:1,false:1}}function u(){var o=r();o in e?e[o]():!t.exports&&"iFrameResize"in window||"jQuery"in window&&"iFrameResize"in window.jQuery.prototype||i()||ct("Unexpected message ("+n.data+")")}S===(""+n.data).substr(0,_)&&(!1===p?u():i()?e.init():at('Ignored message of type "'+r()+'". Received before initialization.'))}function jt(){"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}}()}]);
|
assets/admin/js/layouts-editor.js
ADDED
@@ -0,0 +1,907 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* Name : Visual Portfolio
|
3 |
+
* Version : 1.12.1
|
4 |
+
* Author : nK https://nkdev.info
|
5 |
+
*/
|
6 |
+
import { debounce } from 'throttle-debounce';
|
7 |
+
|
8 |
+
const $ = jQuery;
|
9 |
+
const {
|
10 |
+
ajaxurl,
|
11 |
+
VPAdminVariables,
|
12 |
+
CodeMirror,
|
13 |
+
emmetCodeMirror,
|
14 |
+
} = window;
|
15 |
+
|
16 |
+
const $body = $( 'body' );
|
17 |
+
const $window = $( window );
|
18 |
+
const $editForm = $( 'form[name="post"]' );
|
19 |
+
const postID = $( '#postID, #post_ID' ).eq( 0 ).val();
|
20 |
+
|
21 |
+
/**
|
22 |
+
* Portfolio list creation
|
23 |
+
*/
|
24 |
+
// content source
|
25 |
+
const $contentSource = $( '.vp-content-source' );
|
26 |
+
const $contentSourceInput = $contentSource.find( '[name="vp_content_source"]' );
|
27 |
+
|
28 |
+
// activate content source
|
29 |
+
$contentSource.on( 'click', '.vp-content-source__item', function() {
|
30 |
+
const contentName = $( this ).attr( 'data-content' );
|
31 |
+
$contentSource.find( `[data-content="${ contentName }"]` ).addClass( 'active' ).siblings().removeClass( 'active' );
|
32 |
+
$contentSourceInput.val( contentName ).change();
|
33 |
+
} );
|
34 |
+
$contentSource.children( `[data-content="${ $contentSourceInput.val() }"]` ).click();
|
35 |
+
|
36 |
+
// enable conditionize
|
37 |
+
if ( $.fn.conditionize ) {
|
38 |
+
$editForm.conditionize();
|
39 |
+
}
|
40 |
+
|
41 |
+
// range slider
|
42 |
+
$( '.vp-control-range' ).each( function() {
|
43 |
+
const $inputs = $( this ).find( 'input' );
|
44 |
+
const $hidden = $inputs.filter( '[type="hidden"]' );
|
45 |
+
|
46 |
+
$inputs.on( 'change input', function( e ) {
|
47 |
+
$inputs.val( $( this ).val() );
|
48 |
+
$hidden.trigger( `vp-fake-${ e.type }` );
|
49 |
+
} );
|
50 |
+
} );
|
51 |
+
|
52 |
+
// color picker
|
53 |
+
if ( $.fn.wpColorPicker ) {
|
54 |
+
$( '.vp-color-picker' ).each( function() {
|
55 |
+
$( this ).data( 'change', debounce( 300, ( e ) => {
|
56 |
+
$( e.target ).change();
|
57 |
+
} ) ).wpColorPicker();
|
58 |
+
} );
|
59 |
+
}
|
60 |
+
|
61 |
+
// image picker
|
62 |
+
if ( $.fn.imagepicker ) {
|
63 |
+
$( '.vp-image-picker' ).imagepicker();
|
64 |
+
}
|
65 |
+
|
66 |
+
// frame load
|
67 |
+
const $frame = $( '.vp_list_preview iframe' );
|
68 |
+
let $framePortfolio = false;
|
69 |
+
let frameJQuery = false;
|
70 |
+
const $previewForm = $( '<form target="vp_list_preview_iframe" method="post" style="display: none">' )
|
71 |
+
.attr( 'action', $frame.attr( 'src' ) )
|
72 |
+
.insertAfter( $editForm );
|
73 |
+
|
74 |
+
// resize iframe
|
75 |
+
if ( $.fn.iFrameResize ) {
|
76 |
+
$frame.iFrameResize( {
|
77 |
+
interval: 10,
|
78 |
+
} );
|
79 |
+
}
|
80 |
+
|
81 |
+
// generate controls styles.
|
82 |
+
function generateControlsStyles() {
|
83 |
+
let styles = '';
|
84 |
+
const $styles = $( '[name="vp_controls_styles"]' );
|
85 |
+
const parentSelector = `.vp-id-${ postID }`;
|
86 |
+
const currentStyles = $styles.val();
|
87 |
+
|
88 |
+
$( '.vp-control-style [type="hidden"]' ).each( function() {
|
89 |
+
const $this = $( this );
|
90 |
+
const $control = $this.closest( '.vp-control' );
|
91 |
+
|
92 |
+
if ( 'none' !== $control.css( 'display' ) ) {
|
93 |
+
const mask = $this.attr( 'data-style-mask' ) || '$';
|
94 |
+
const val = mask.replace( '$', $control.find( $this.attr( 'data-style-from' ) ).val() );
|
95 |
+
const selector = parentSelector + ' ' + $this.attr( 'data-style-element' );
|
96 |
+
const property = $this.attr( 'data-style-property' );
|
97 |
+
|
98 |
+
if ( styles ) {
|
99 |
+
styles += ' ';
|
100 |
+
}
|
101 |
+
|
102 |
+
styles += `${ selector } { ${ property }: ${ val }; }`;
|
103 |
+
}
|
104 |
+
} );
|
105 |
+
|
106 |
+
if ( currentStyles !== styles ) {
|
107 |
+
$styles.val( styles ).trigger( 'vp-fake-change' );
|
108 |
+
}
|
109 |
+
}
|
110 |
+
|
111 |
+
// portfolio options changed
|
112 |
+
function reloadFrame() {
|
113 |
+
frameJQuery = false;
|
114 |
+
$framePortfolio = false;
|
115 |
+
$previewForm.submit();
|
116 |
+
}
|
117 |
+
reloadFrame = debounce( 400, reloadFrame );
|
118 |
+
$editForm.on( 'change input vp-fake-change vp-fake-input', '[name*="vp_"]', function( e ) {
|
119 |
+
const $this = $( this );
|
120 |
+
|
121 |
+
// prevent reload.
|
122 |
+
if ( $this.closest( '.vp-no-reload' ).length ) {
|
123 |
+
return;
|
124 |
+
}
|
125 |
+
|
126 |
+
// find style of this control and generate it.
|
127 |
+
const $controlStyle = $( `[name="${ $this.attr( 'name' ) }__style[]"]` );
|
128 |
+
if ( $controlStyle.length ) {
|
129 |
+
// generate custom styles.
|
130 |
+
generateControlsStyles();
|
131 |
+
return;
|
132 |
+
}
|
133 |
+
|
134 |
+
const data = {
|
135 |
+
name: $this.attr( 'name' ),
|
136 |
+
value: $this.is( '[type=checkbox], [type=radio]' ) ? $this.is( ':checked' ) : $this.val(),
|
137 |
+
reload: e.type === 'change' || e.type === 'vp-fake-change',
|
138 |
+
jQuery: frameJQuery,
|
139 |
+
$portfolio: $framePortfolio,
|
140 |
+
};
|
141 |
+
|
142 |
+
// create form input to store current changed data.
|
143 |
+
let $input = $previewForm.find( `[name="${ data.name }"]` );
|
144 |
+
if ( ! $input.length ) {
|
145 |
+
$input = $( `<input type="hidden" name="${ data.name }" />` )
|
146 |
+
.appendTo( $previewForm );
|
147 |
+
}
|
148 |
+
$input.attr( 'value', data.value );
|
149 |
+
|
150 |
+
$window.trigger( 'vp-preview-change', data );
|
151 |
+
|
152 |
+
if ( ! data.reload ) {
|
153 |
+
// generate custom styles.
|
154 |
+
generateControlsStyles();
|
155 |
+
}
|
156 |
+
|
157 |
+
// reload frame
|
158 |
+
if ( data.reload || ! $framePortfolio ) {
|
159 |
+
reloadFrame();
|
160 |
+
}
|
161 |
+
} );
|
162 |
+
|
163 |
+
$frame.on( 'load', function() {
|
164 |
+
frameJQuery = this.contentWindow.jQuery;
|
165 |
+
$framePortfolio = frameJQuery( '.vp-portfolio' );
|
166 |
+
|
167 |
+
// generate custom styles.
|
168 |
+
generateControlsStyles();
|
169 |
+
} );
|
170 |
+
|
171 |
+
// live reload
|
172 |
+
$window.on( 'vp-preview-change', ( e, data ) => {
|
173 |
+
if ( ! data.$portfolio ) {
|
174 |
+
return;
|
175 |
+
}
|
176 |
+
switch ( data.name ) {
|
177 |
+
case 'vp_layout':
|
178 |
+
case 'vp_tiles_type':
|
179 |
+
case 'vp_masonry_columns':
|
180 |
+
case 'vp_grid_columns':
|
181 |
+
case 'vp_justified_row_height':
|
182 |
+
case 'vp_justified_row_height_tolerance':
|
183 |
+
case 'vp_slider_effect':
|
184 |
+
case 'vp_slider_speed':
|
185 |
+
case 'vp_slider_autoplay':
|
186 |
+
case 'vp_slider_autoplay_hover_pause':
|
187 |
+
case 'vp_slider_centered_slides':
|
188 |
+
case 'vp_slider_loop':
|
189 |
+
case 'vp_slider_free_mode':
|
190 |
+
case 'vp_slider_free_mode_sticky':
|
191 |
+
case 'vp_slider_arrows':
|
192 |
+
case 'vp_slider_arrows_icon_prev':
|
193 |
+
case 'vp_slider_arrows_icon_next':
|
194 |
+
case 'vp_slider_bullets':
|
195 |
+
case 'vp_slider_bullets_dynamic':
|
196 |
+
case 'vp_items_gap': {
|
197 |
+
let name = data.name;
|
198 |
+
|
199 |
+
// remove vp_
|
200 |
+
name = name.substring( 3 );
|
201 |
+
|
202 |
+
// replace _ to -
|
203 |
+
name = name.replace( /_/g, '-' );
|
204 |
+
|
205 |
+
data.$portfolio.attr( `data-vp-${ name }`, data.value );
|
206 |
+
data.$portfolio.vpf( 'init' );
|
207 |
+
data.reload = false;
|
208 |
+
|
209 |
+
break;
|
210 |
+
}
|
211 |
+
case 'vp_filter_align':
|
212 |
+
data.$portfolio.find( '.vp-filter' ).removeClass( 'vp-filter__align-center vp-filter__align-left vp-filter__align-right' ).addClass( `vp-filter__align-${ data.value }` );
|
213 |
+
data.reload = false;
|
214 |
+
|
215 |
+
break;
|
216 |
+
case 'vp_sort_align':
|
217 |
+
data.$portfolio.find( '.vp-sort' ).removeClass( 'vp-sort__align-center vp-sort__align-left vp-sort__align-right' ).addClass( `vp-sort__align-${ data.value }` );
|
218 |
+
data.reload = false;
|
219 |
+
|
220 |
+
break;
|
221 |
+
case 'vp_pagination_align':
|
222 |
+
data.$portfolio.find( '.vp-pagination' ).removeClass( 'vp-pagination__align-center vp-pagination__align-left vp-pagination__align-right' ).addClass( `vp-pagination__align-${ data.value }` );
|
223 |
+
data.reload = false;
|
224 |
+
|
225 |
+
break;
|
226 |
+
case 'vp_controls_styles': {
|
227 |
+
const $html = data.$portfolio.closest( 'html' );
|
228 |
+
const controlsCssID = `vp-controls-styles-${ postID }-inline-css`;
|
229 |
+
let $style = $html.find( `#${ controlsCssID }` );
|
230 |
+
if ( ! $style.length ) {
|
231 |
+
$style = data.jQuery( `<style id="${ controlsCssID }">` );
|
232 |
+
$html.find( 'body' ).prepend( $style );
|
233 |
+
}
|
234 |
+
$style.html( data.value );
|
235 |
+
data.reload = false;
|
236 |
+
|
237 |
+
break;
|
238 |
+
}
|
239 |
+
case 'vp_custom_css': {
|
240 |
+
const $html = data.$portfolio.closest( 'html' );
|
241 |
+
const customCssID = `vp-custom-css-${ postID }-inline-css`;
|
242 |
+
let $style = $html.find( `#${ customCssID }` );
|
243 |
+
if ( ! $style.length ) {
|
244 |
+
$style = data.jQuery( `<style id="${ customCssID }">` );
|
245 |
+
$html.find( 'body' ).prepend( $style );
|
246 |
+
}
|
247 |
+
$style.html( data.value );
|
248 |
+
data.reload = false;
|
249 |
+
|
250 |
+
break;
|
251 |
+
}
|
252 |
+
// prevent some options reload
|
253 |
+
case 'vp_list_name':
|
254 |
+
case 'vp_stretch':
|
255 |
+
data.reload = false;
|
256 |
+
break;
|
257 |
+
// no default
|
258 |
+
}
|
259 |
+
} );
|
260 |
+
|
261 |
+
// vp_layout -> data-vp-layout
|
262 |
+
// vp_tiles_type -> data-vp-tiles-type
|
263 |
+
// vp_items_gap -> data-vp-items-gap
|
264 |
+
|
265 |
+
// image dropdown
|
266 |
+
$body.on( 'click', '.vp-control-image-dropdown', function( e ) {
|
267 |
+
if ( ! $( e.target ).closest( '.vp-control-image-dropdown__content' ).length ) {
|
268 |
+
$( this ).toggleClass( 'active' );
|
269 |
+
}
|
270 |
+
} );
|
271 |
+
$body.on( 'mousedown', ( e ) => {
|
272 |
+
const $select = $( e.target ).closest( '.vp-control-image-dropdown' );
|
273 |
+
const $all = $( '.vp-control-image-dropdown.active' );
|
274 |
+
|
275 |
+
$all.each( function() {
|
276 |
+
if ( this === $select[ 0 ] ) {
|
277 |
+
return;
|
278 |
+
}
|
279 |
+
|
280 |
+
$( this ).removeClass( 'active' );
|
281 |
+
} );
|
282 |
+
} );
|
283 |
+
$body.on( 'change', '.vp-control-image-dropdown .vp-image-picker', function() {
|
284 |
+
const $this = $( this );
|
285 |
+
const pickerData = $this.data( 'picker' );
|
286 |
+
|
287 |
+
if ( pickerData ) {
|
288 |
+
const $selected = pickerData.select.find( `option[value="${ pickerData.select.val() }"]` );
|
289 |
+
const $optgroup = $selected.parent( 'optgroup' );
|
290 |
+
const $dropdown = $this.closest( '.vp-control-image-dropdown' );
|
291 |
+
const src = $selected.attr( 'data-img-src' );
|
292 |
+
|
293 |
+
if ( $dropdown.length ) {
|
294 |
+
$dropdown.children( '.vp-control-image-dropdown__preview' ).html( `<img src="${ src }" alt="">` );
|
295 |
+
|
296 |
+
if ( $optgroup.length ) {
|
297 |
+
$dropdown.children( '.vp-control-image-dropdown__title' ).html( $optgroup.attr( 'label' ) );
|
298 |
+
}
|
299 |
+
}
|
300 |
+
}
|
301 |
+
} );
|
302 |
+
|
303 |
+
// change shortcode name.
|
304 |
+
const $listName = $( '[name="vp_list_name"]' );
|
305 |
+
const $postTitle = $( '[name="post_title"]' );
|
306 |
+
|
307 |
+
if ( $listName.length && $postTitle.length ) {
|
308 |
+
$listName.on( 'input', () => {
|
309 |
+
if ( $postTitle.val() !== $listName.val() ) {
|
310 |
+
$postTitle.val( $listName.val() ).change();
|
311 |
+
}
|
312 |
+
} );
|
313 |
+
$postTitle.on( 'input', () => {
|
314 |
+
$listName.val( $postTitle.val() );
|
315 |
+
} );
|
316 |
+
}
|
317 |
+
|
318 |
+
// enable select2
|
319 |
+
if ( $.fn.select2 ) {
|
320 |
+
$( '.vp-select2' ).each( function() {
|
321 |
+
const $this = $( this );
|
322 |
+
let opts = {
|
323 |
+
width: '100%',
|
324 |
+
minimumResultsForSearch: $this.hasClass( 'vp-select2-nosearch' ) ? -1 : 1,
|
325 |
+
tags: $this.hasClass( 'vp-select2-tags' ),
|
326 |
+
};
|
327 |
+
const $postTypeAjax = $this.attr( 'data-post-type' ) ? $( $this.attr( 'data-post-type' ) ) : false;
|
328 |
+
|
329 |
+
// ajax posts
|
330 |
+
if ( $this.closest( '.vp-select2-posts-ajax' ).length ) {
|
331 |
+
opts = $.extend( {
|
332 |
+
minimumInputLength: 1,
|
333 |
+
ajax: {
|
334 |
+
url: ajaxurl,
|
335 |
+
dataType: 'json',
|
336 |
+
delay: 250,
|
337 |
+
data( params ) {
|
338 |
+
return {
|
339 |
+
action: 'vp_find_posts',
|
340 |
+
q: params.term,
|
341 |
+
post_type: $postTypeAjax ? $postTypeAjax.val() : false,
|
342 |
+
nonce: VPAdminVariables.nonce,
|
343 |
+
};
|
344 |
+
},
|
345 |
+
processResults( data ) {
|
346 |
+
return {
|
347 |
+
results: data && data.length ? data : false,
|
348 |
+
};
|
349 |
+
},
|
350 |
+
cache: true,
|
351 |
+
},
|
352 |
+
escapeMarkup( markup ) {
|
353 |
+
return markup;
|
354 |
+
},
|
355 |
+
templateResult( data ) {
|
356 |
+
if ( data.loading ) {
|
357 |
+
return data.text;
|
358 |
+
}
|
359 |
+
|
360 |
+
let title = '';
|
361 |
+
if ( data.title ) {
|
362 |
+
title = data.title;
|
363 |
+
}
|
364 |
+
|
365 |
+
let postType = '';
|
366 |
+
if ( data.post_type ) {
|
367 |
+
postType = data.post_type;
|
368 |
+
}
|
369 |
+
|
370 |
+
let img = '';
|
371 |
+
if ( data.img ) {
|
372 |
+
img = `style="background-image: url('${ data.img }');"`;
|
373 |
+
}
|
374 |
+
|
375 |
+
return `${ '<div class="vp-select2-ajax__result">' +
|
376 |
+
'<div class="vp-select2-ajax__result-img" ' }${ img }></div>` +
|
377 |
+
'<div class="vp-select2-ajax__result-data">' +
|
378 |
+
`<div class="vp-select2-ajax__result-title">${ title }</div>` +
|
379 |
+
`<div class="vp-select2-ajax__result-post-type">${ postType }</div>` +
|
380 |
+
'</div>' +
|
381 |
+
'</div>';
|
382 |
+
},
|
383 |
+
templateSelection( repo ) {
|
384 |
+
return repo.title || repo.text;
|
385 |
+
},
|
386 |
+
}, opts );
|
387 |
+
}
|
388 |
+
|
389 |
+
// ajax taxonomies
|
390 |
+
if ( $this.closest( '.vp-select2-taxonomies-ajax' ).length ) {
|
391 |
+
opts = $.extend( {
|
392 |
+
minimumInputLength: 1,
|
393 |
+
ajax: {
|
394 |
+
url: ajaxurl,
|
395 |
+
dataType: 'json',
|
396 |
+
delay: 250,
|
397 |
+
data( params ) {
|
398 |
+
return {
|
399 |
+
action: 'vp_find_taxonomies',
|
400 |
+
q: params.term,
|
401 |
+
post_type: $postTypeAjax ? $postTypeAjax.val() : false,
|
402 |
+
nonce: VPAdminVariables.nonce,
|
403 |
+
};
|
404 |
+
},
|
405 |
+
processResults( data ) {
|
406 |
+
const result = [];
|
407 |
+
|
408 |
+
if ( data ) {
|
409 |
+
Object.keys( data ).forEach( ( k ) => {
|
410 |
+
result.push( {
|
411 |
+
text: k,
|
412 |
+
children: data[ k ],
|
413 |
+
} );
|
414 |
+
} );
|
415 |
+
}
|
416 |
+
|
417 |
+
return {
|
418 |
+
results: result,
|
419 |
+
};
|
420 |
+
},
|
421 |
+
cache: true,
|
422 |
+
},
|
423 |
+
}, opts );
|
424 |
+
}
|
425 |
+
|
426 |
+
// init
|
427 |
+
$this.select2( opts ).data( 'select2' ).$dropdown.addClass( 'select2-vp-container' );
|
428 |
+
} );
|
429 |
+
}
|
430 |
+
|
431 |
+
const $galleries = $( '.vp-control-gallery' );
|
432 |
+
let showedGalleries = 0;
|
433 |
+
|
434 |
+
// get gallery item data by id.
|
435 |
+
function getGalleryItemData( $gallery, id ) {
|
436 |
+
const $item = $gallery.find( '[data-image-id="' + id + '"]' );
|
437 |
+
const data = {
|
438 |
+
id: id,
|
439 |
+
};
|
440 |
+
|
441 |
+
$item.find( '[data-additional]' ).each( function() {
|
442 |
+
const $this = $( this );
|
443 |
+
const name = $this.attr( 'data-additional' );
|
444 |
+
data[ name ] = $this.html();
|
445 |
+
|
446 |
+
if ( $this.attr( 'data-to-json' ) === 'true' ) {
|
447 |
+
try {
|
448 |
+
data[ name ] = JSON.parse( data[ name ] );
|
449 |
+
} catch ( e ) {
|
450 |
+
data[ name ] = '';
|
451 |
+
}
|
452 |
+
}
|
453 |
+
} );
|
454 |
+
|
455 |
+
return data;
|
456 |
+
}
|
457 |
+
|
458 |
+
// get gallery item meta by id.
|
459 |
+
function getGalleryItemMeta( $gallery, id ) {
|
460 |
+
const $item = $gallery.find( '[data-image-id="' + id + '"]' );
|
461 |
+
const data = {};
|
462 |
+
|
463 |
+
$item.find( '[data-meta]' ).each( function() {
|
464 |
+
data[ $( this ).attr( 'data-meta' ) ] = $( this ).html();
|
465 |
+
} );
|
466 |
+
|
467 |
+
return data;
|
468 |
+
}
|
469 |
+
|
470 |
+
// update gallery data and add it to the input.
|
471 |
+
function updateGalleryData( $gallery ) {
|
472 |
+
const items = [];
|
473 |
+
$gallery.children( '.vp-control-gallery-items' ).find( '.vp-control-gallery-items-img' ).each( function() {
|
474 |
+
items.push( getGalleryItemData( $gallery, $( this ).attr( 'data-image-id' ) ) );
|
475 |
+
} );
|
476 |
+
const data = JSON.stringify( items );
|
477 |
+
const $input = $gallery.children( 'textarea' );
|
478 |
+
|
479 |
+
if ( data !== $input.val() ) {
|
480 |
+
$input.val( data ).change();
|
481 |
+
}
|
482 |
+
}
|
483 |
+
|
484 |
+
// show additional data block.
|
485 |
+
function showAdditionalDataBlock( $gallery, id ) {
|
486 |
+
const galleryName = $gallery.children( 'textarea' ).attr( 'name' );
|
487 |
+
const $dataBlock = $gallery.children( '.vp-control-gallery-additional-data' );
|
488 |
+
const $previewBlock = $dataBlock.children( '.vp-control-gallery-additional-data-preview' );
|
489 |
+
const $currentImg = $gallery.children( '.vp-control-gallery-items' ).find( '.vp-control-gallery-items-img[data-image-id="' + id + '"]' );
|
490 |
+
const itemData = getGalleryItemData( $gallery, id );
|
491 |
+
const itemMeta = getGalleryItemMeta( $gallery, id );
|
492 |
+
|
493 |
+
if ( itemData ) {
|
494 |
+
Object.keys( itemData ).forEach( function( key ) {
|
495 |
+
const $input = $dataBlock.find( '[name="' + galleryName + '_additional_' + key + '"], [name="' + galleryName + '_additional_' + key + '[]"]' ).val( itemData[ key ] || '' );
|
496 |
+
|
497 |
+
if ( $input.hasClass( 'vp-select2' ) ) {
|
498 |
+
if ( $input.hasClass( 'vp-select2-tags' ) ) {
|
499 |
+
// get all available categories and add it to the tags list.
|
500 |
+
let items = [];
|
501 |
+
const options = [];
|
502 |
+
$gallery.children( '.vp-control-gallery-items' ).find( '.vp-control-gallery-items-img' ).each( function() {
|
503 |
+
const data = getGalleryItemData( $gallery, $( this ).attr( 'data-image-id' ) );
|
504 |
+
|
505 |
+
// merge 2 arrays without duplicates.
|
506 |
+
if ( data && typeof data[ key ] !== 'undefined' && data[ key ] ) {
|
507 |
+
items = [ ...new Set( [ ...items, ...data[ key ] ] ) ];
|
508 |
+
}
|
509 |
+
} );
|
510 |
+
|
511 |
+
items.forEach( ( val ) => {
|
512 |
+
options.push( new window.Option( val, val, false, false ) );
|
513 |
+
} );
|
514 |
+
|
515 |
+
$input.html( options.length ? options : '' );
|
516 |
+
|
517 |
+
$input.val( typeof itemData[ key ] !== 'undefined' && itemData[ key ] ? itemData[ key ] : '' );
|
518 |
+
}
|
519 |
+
|
520 |
+
$input.trigger( 'change' );
|
521 |
+
}
|
522 |
+
} );
|
523 |
+
}
|
524 |
+
|
525 |
+
$previewBlock.find( '.vp-control-gallery-additional-data-preview-image img' ).attr( 'src', $currentImg.children( 'img' ).attr( 'src' ) || '' );
|
526 |
+
$previewBlock.find( '.vp-control-gallery-additional-data-preview-name' ).html( itemMeta.filename );
|
527 |
+
$previewBlock.find( '.vp-control-gallery-additional-data-preview-size' ).html( itemMeta.width + 'x' + itemMeta.height + ' (' + itemMeta.filesizeHumanReadable + ')' );
|
528 |
+
$previewBlock.find( '.vp-control-gallery-additional-data-preview-edit a' ).attr( 'href', itemMeta.editLink.replace( '&', '&' ) );
|
529 |
+
|
530 |
+
// add active classes
|
531 |
+
$currentImg.siblings().removeClass( 'active' );
|
532 |
+
$currentImg.addClass( 'active' );
|
533 |
+
$dataBlock.addClass( 'active' );
|
534 |
+
|
535 |
+
showedGalleries = $galleries.find( '.vp-control-gallery-additional-data.active' ).length;
|
536 |
+
}
|
537 |
+
|
538 |
+
// Sortable + gallery
|
539 |
+
if ( $.fn.sortable ) {
|
540 |
+
$galleries.each( function() {
|
541 |
+
const $gallery = $( this );
|
542 |
+
const $defaultItem = $gallery.children( '.vp-control-gallery-items-default' );
|
543 |
+
$gallery.children( '.vp-control-gallery-items' ).sortable( {
|
544 |
+
animation: 150,
|
545 |
+
draggable: '.vp-control-gallery-items-img',
|
546 |
+
onUpdate() {
|
547 |
+
updateGalleryData( $gallery );
|
548 |
+
},
|
549 |
+
} );
|
550 |
+
|
551 |
+
// remove item
|
552 |
+
$gallery.on( 'click', '.vp-control-gallery-items-remove', function( e ) {
|
553 |
+
e.preventDefault();
|
554 |
+
$( this ).parent().remove();
|
555 |
+
updateGalleryData( $gallery );
|
556 |
+
} );
|
557 |
+
|
558 |
+
// add item
|
559 |
+
$gallery.on( 'click', '.vp-control-gallery-items-add', function( e ) {
|
560 |
+
e.preventDefault();
|
561 |
+
let frame = $gallery.data( 'wp-frame' );
|
562 |
+
|
563 |
+
// If the media frame already exists, reopen it.
|
564 |
+
if ( frame ) {
|
565 |
+
frame.open();
|
566 |
+
return;
|
567 |
+
}
|
568 |
+
|
569 |
+
if ( ! wp.media ) {
|
570 |
+
// eslint-disable-next-line
|
571 |
+
console.error('Can\'t access wp.media object.');
|
572 |
+
return;
|
573 |
+
}
|
574 |
+
|
575 |
+
// Create a new media frame
|
576 |
+
frame = wp.media( {
|
577 |
+
title: 'Select or Upload Images',
|
578 |
+
button: {
|
579 |
+
text: 'Add images',
|
580 |
+
},
|
581 |
+
multiple: true,
|
582 |
+
library: {
|
583 |
+
type: 'image',
|
584 |
+
},
|
585 |
+
} );
|
586 |
+
$gallery.data( 'wp-frame', frame );
|
587 |
+
|
588 |
+
// When an image is selected in the media frame...
|
589 |
+
frame.on( 'select', () => {
|
590 |
+
// Get media images details from the frame state
|
591 |
+
const images = frame.state().get( 'selection' ).models;
|
592 |
+
if ( images && images.length ) {
|
593 |
+
images.forEach( ( item ) => {
|
594 |
+
let url = item.attributes.url;
|
595 |
+
|
596 |
+
if ( item.attributes.sizes && item.attributes.sizes.thumbnail ) {
|
597 |
+
url = item.attributes.sizes.thumbnail.url;
|
598 |
+
}
|
599 |
+
|
600 |
+
const $newItem = $defaultItem.children().clone();
|
601 |
+
$newItem.attr( 'data-image-id', item.id );
|
602 |
+
$newItem.children( 'img' ).attr( 'src', url );
|
603 |
+
|
604 |
+
$newItem.find( '[data-meta="width"]' ).html( item.attributes.width );
|
605 |
+
$newItem.find( '[data-meta="height"]' ).html( item.attributes.height );
|
606 |
+
$newItem.find( '[data-meta="filename"]' ).html( item.attributes.filename );
|
607 |
+
$newItem.find( '[data-meta="editLink"]' ).html( item.attributes.editLink );
|
608 |
+
$newItem.find( '[data-meta="filesizeHumanReadable"]' ).html( item.attributes.filesizeHumanReadable );
|
609 |
+
|
610 |
+
// put title and description from image meta.
|
611 |
+
if ( item.attributes.title ) {
|
612 |
+
$newItem.find( '[data-additional="title"]' ).html( item.attributes.title );
|
613 |
+
}
|
614 |
+
if ( item.attributes.description ) {
|
615 |
+
$newItem.find( '[data-additional="description"]' ).html( item.attributes.description );
|
616 |
+
}
|
617 |
+
|
618 |
+
$gallery.find( '.vp-control-gallery-items-add' ).before( $newItem );
|
619 |
+
} );
|
620 |
+
updateGalleryData( $gallery );
|
621 |
+
}
|
622 |
+
} );
|
623 |
+
|
624 |
+
// Finally, open the modal on click
|
625 |
+
frame.open();
|
626 |
+
} );
|
627 |
+
|
628 |
+
// edit item
|
629 |
+
$gallery.on( 'click', '.vp-control-gallery-items-img', function( e ) {
|
630 |
+
e.preventDefault();
|
631 |
+
showAdditionalDataBlock( $gallery, $( this ).attr( 'data-image-id' ) );
|
632 |
+
} );
|
633 |
+
|
634 |
+
// edit item
|
635 |
+
$gallery.on( 'change input', '.vp-control-gallery-additional-data [name]', debounce( 200, function() {
|
636 |
+
const $dataBlock = $gallery.children( '.vp-control-gallery-additional-data' );
|
637 |
+
const galleryName = $gallery.children( 'textarea' ).attr( 'name' );
|
638 |
+
const id = $gallery.children( '.vp-control-gallery-items' ).find( '.vp-control-gallery-items-img.active' ).attr( 'data-image-id' );
|
639 |
+
|
640 |
+
if ( id ) {
|
641 |
+
const $currentItem = $gallery.children( '.vp-control-gallery-items' ).find( '[data-image-id="' + id + '"]' );
|
642 |
+
|
643 |
+
$dataBlock.find( '[name*="' + galleryName + '_additional_"]' ).each( function() {
|
644 |
+
const name = $( this ).attr( 'name' ).replace( galleryName + '_additional_', '' ).replace( '[]', '' );
|
645 |
+
let val = $( this ).val() || '';
|
646 |
+
|
647 |
+
if ( typeof val === 'object' ) {
|
648 |
+
val = JSON.stringify( val );
|
649 |
+
}
|
650 |
+
|
651 |
+
$currentItem.find( '[data-additional="' + name + '"]' ).html( val || '' );
|
652 |
+
} );
|
653 |
+
|
654 |
+
updateGalleryData( $gallery );
|
655 |
+
}
|
656 |
+
} ) );
|
657 |
+
} );
|
658 |
+
|
659 |
+
// remove active classes.
|
660 |
+
if ( $galleries.length ) {
|
661 |
+
const $galleryDatas = $galleries.children( '.vp-control-gallery-additional-data' );
|
662 |
+
$( document ).on( 'mousedown', function( e ) {
|
663 |
+
if ( showedGalleries ) {
|
664 |
+
const target = e.target;
|
665 |
+
|
666 |
+
if ( ! $( target ).closest( '.vp-control-gallery-additional-data, .vp-control-gallery-items-img, .select2-vp-container' ).length ) {
|
667 |
+
$galleryDatas.removeClass( 'active' );
|
668 |
+
$galleries.children( '.vp-control-gallery-items' ).find( '.vp-control-gallery-items-img.active' ).removeClass( 'active' );
|
669 |
+
showedGalleries = $galleries.find( '.vp-control-gallery-additional-data.active' ).length;
|
670 |
+
}
|
671 |
+
}
|
672 |
+
} );
|
673 |
+
}
|
674 |
+
}
|
675 |
+
|
676 |
+
// codemirror
|
677 |
+
const $customCss = $( '[name="vp_custom_css"]' );
|
678 |
+
let saveEditorWithErrors = false;
|
679 |
+
|
680 |
+
// update editor error message
|
681 |
+
let firstTimeEditorUpdate = true;
|
682 |
+
function updateEditorError( errorAnnotations, editorChange ) {
|
683 |
+
if ( firstTimeEditorUpdate ) {
|
684 |
+
editorChange = false;
|
685 |
+
firstTimeEditorUpdate = false;
|
686 |
+
}
|
687 |
+
if ( VPAdminVariables && VPAdminVariables.css_editor_error_notice ) {
|
688 |
+
let message = false;
|
689 |
+
|
690 |
+
if ( errorAnnotations.length === 1 ) {
|
691 |
+
message = VPAdminVariables.css_editor_error_notice.singular.replace( '%d', '1' );
|
692 |
+
} else if ( errorAnnotations.length > 1 ) {
|
693 |
+
message = VPAdminVariables.css_editor_error_notice.plural.replace( '%d', String( errorAnnotations.length ) );
|
694 |
+
}
|
695 |
+
|
696 |
+
if ( message ) {
|
697 |
+
let $notice = $customCss.prev( '#vp_custom_css_notice' );
|
698 |
+
if ( ! $notice.length && ! editorChange ) {
|
699 |
+
$notice = $( '<div class="notice notice-error inline" id="vp_custom_css_notice"></div>' );
|
700 |
+
$customCss.before( $notice );
|
701 |
+
}
|
702 |
+
|
703 |
+
if ( ! $notice.length ) {
|
704 |
+
return;
|
705 |
+
}
|
706 |
+
|
707 |
+
// add error notice
|
708 |
+
const noticeText = `<p class="notification-message">${ message }</p>` +
|
709 |
+
'<p>' +
|
710 |
+
'<input id="vp_custom_css_notice_prevent" type="checkbox">' +
|
711 |
+
`<label for="vp_custom_css_notice_prevent">${ VPAdminVariables.css_editor_error_checkbox }</label>` +
|
712 |
+
'</p>';
|
713 |
+
|
714 |
+
$notice.html( noticeText );
|
715 |
+
} else {
|
716 |
+
// remove notice block if no errors
|
717 |
+
$customCss.prev( '#vp_custom_css_notice' ).remove();
|
718 |
+
}
|
719 |
+
}
|
720 |
+
}
|
721 |
+
|
722 |
+
if ( typeof CodeMirror !== 'undefined' && $customCss.length ) {
|
723 |
+
// Hint with all available visual composer clasnames
|
724 |
+
if ( VPAdminVariables && VPAdminVariables.classnames ) {
|
725 |
+
const defaultCSShint = CodeMirror.hint.css;
|
726 |
+
CodeMirror.hint.css = function( cm ) {
|
727 |
+
const cur = cm.getCursor();
|
728 |
+
let inner = defaultCSShint( cm ) || { from: cur, to: cm.getCursor(), list: [] };
|
729 |
+
|
730 |
+
const token = cm.getTokenAt( cur );
|
731 |
+
if ( token.state.state === 'top' && token.string.indexOf( '.' ) === 0 ) {
|
732 |
+
inner = {
|
733 |
+
from: CodeMirror.Pos( cur.line, token.start ),
|
734 |
+
to: CodeMirror.Pos( cur.line, token.end ),
|
735 |
+
list: [],
|
736 |
+
};
|
737 |
+
VPAdminVariables.classnames.forEach( ( val ) => {
|
738 |
+
if ( val.indexOf( token.string ) !== -1 ) {
|
739 |
+
inner.list.push( val );
|
740 |
+
}
|
741 |
+
} );
|
742 |
+
}
|
743 |
+
return inner;
|
744 |
+
};
|
745 |
+
}
|
746 |
+
|
747 |
+
const editor = CodeMirror.fromTextArea( $customCss[ 0 ], {
|
748 |
+
mode: 'css',
|
749 |
+
theme: 'eclipse',
|
750 |
+
indentUnit: 4,
|
751 |
+
autoCloseTags: true,
|
752 |
+
autoCloseBrackets: true,
|
753 |
+
matchBrackets: true,
|
754 |
+
foldGutter: true,
|
755 |
+
lint: {
|
756 |
+
options: {
|
757 |
+
errors: true,
|
758 |
+
'box-model': true,
|
759 |
+
'display-property-grouping': true,
|
760 |
+
'duplicate-properties': true,
|
761 |
+
'known-properties': true,
|
762 |
+
'outline-none': true,
|
763 |
+
},
|
764 |
+
|
765 |
+
// save errors in vcLintErrors object to prevent page save
|
766 |
+
onUpdateLinting( annotations, annotationsSorted, cm ) {
|
767 |
+
const errors = [];
|
768 |
+
annotations.forEach( ( annotation ) => {
|
769 |
+
if ( annotation.severity === 'error' ) {
|
770 |
+
errors.push( annotation );
|
771 |
+
}
|
772 |
+
} );
|
773 |
+
cm.vcLintErrors = errors;
|
774 |
+
|
775 |
+
if ( ! saveEditorWithErrors ) {
|
776 |
+
updateEditorError( cm.vcLintErrors, true );
|
777 |
+
}
|
778 |
+
},
|
779 |
+
},
|
780 |
+
lineNumbers: true,
|
781 |
+
lineWrapping: true,
|
782 |
+
scrollPastEnd: true,
|
783 |
+
emmet_active: true,
|
784 |
+
emmet: true,
|
785 |
+
styleActiveLine: true,
|
786 |
+
continueComments: true,
|
787 |
+
scrollbarStyle: 'simple',
|
788 |
+
extraKeys: {
|
789 |
+
'Ctrl-Space': 'autocomplete',
|
790 |
+
'Ctrl-/': 'toggleComment',
|
791 |
+
'Cmd-/': 'toggleComment',
|
792 |
+
'Alt-F': 'findPersistent',
|
793 |
+
},
|
794 |
+
gutters: [ 'CodeMirror-lint-markers', 'CodeMirror-linenumbers', 'CodeMirror-foldgutter' ],
|
795 |
+
} );
|
796 |
+
emmetCodeMirror( editor );
|
797 |
+
|
798 |
+
// save instance in data
|
799 |
+
$customCss.data( 'CodeMirrorInstance', editor );
|
800 |
+
|
801 |
+
editor.on( 'change', () => {
|
802 |
+
editor.save();
|
803 |
+
$customCss.change();
|
804 |
+
} );
|
805 |
+
|
806 |
+
// Autocomplete
|
807 |
+
editor.on( 'keyup', ( cm, event ) => {
|
808 |
+
const isAlphaKey = /^[a-zA-Z]$/.test( event.key );
|
809 |
+
|
810 |
+
if ( cm.state.completionActive && isAlphaKey ) {
|
811 |
+
return;
|
812 |
+
}
|
813 |
+
|
814 |
+
// Prevent autocompletion in string literals or comments.
|
815 |
+
const token = cm.getTokenAt( cm.getCursor() );
|
816 |
+
if ( token.type === 'string' || token.type === 'comment' ) {
|
817 |
+
return;
|
818 |
+
}
|
819 |
+
|
820 |
+
const lineBeforeCursor = cm.doc.getLine( cm.doc.getCursor().line ).substr( 0, cm.doc.getCursor().ch );
|
821 |
+
const shouldAutocomplete =
|
822 |
+
isAlphaKey ||
|
823 |
+
event.key === ':' ||
|
824 |
+
( event.key === ' ' && /:\s+$/.test( lineBeforeCursor ) );
|
825 |
+
|
826 |
+
if ( shouldAutocomplete ) {
|
827 |
+
cm.showHint( { completeSingle: false } );
|
828 |
+
}
|
829 |
+
} );
|
830 |
+
|
831 |
+
// resize handler
|
832 |
+
const $editorResizer = $( '.CodeMirror-resizer' ).after( $customCss );
|
833 |
+
const $editorContainer = $editorResizer.prev( '.CodeMirror' );
|
834 |
+
let editorResizeY;
|
835 |
+
let editorResizeH;
|
836 |
+
|
837 |
+
function onEditorResize( e ) {
|
838 |
+
$editorContainer.css( 'height', Math.max( 200, ( editorResizeH + e.originalEvent.y - editorResizeY ) ) );
|
839 |
+
editor.setSize( null, Math.max( 200, ( editorResizeH + e.y - editorResizeY ) ) + 'px' );
|
840 |
+
}
|
841 |
+
|
842 |
+
function enEditorResizeEnd() {
|
843 |
+
$body.off( 'mousemove', onEditorResize );
|
844 |
+
$body.off( 'mouseup', enEditorResizeEnd );
|
845 |
+
}
|
846 |
+
|
847 |
+
$editorResizer.on( 'mousedown', ( e ) => {
|
848 |
+
editorResizeY = e.originalEvent.y;
|
849 |
+
editorResizeH = $editorContainer.height();
|
850 |
+
|
851 |
+
$body.on( 'mousemove', onEditorResize );
|
852 |
+
$body.on( 'mouseup', enEditorResizeEnd );
|
853 |
+
} );
|
854 |
+
}
|
855 |
+
|
856 |
+
// prevent page save if there is errors in CSS editor
|
857 |
+
let publishClicked = false;
|
858 |
+
$body.on( 'click', '#publish:not(.disabled)', function( e ) {
|
859 |
+
publishClicked = true;
|
860 |
+
|
861 |
+
if ( saveEditorWithErrors ) {
|
862 |
+
return;
|
863 |
+
}
|
864 |
+
|
865 |
+
const $publishBtn = $( this );
|
866 |
+
|
867 |
+
const editor = $customCss.length && $customCss.data( 'CodeMirrorInstance' );
|
868 |
+
if ( editor && editor.vcLintErrors && editor.vcLintErrors.length ) {
|
869 |
+
e.preventDefault();
|
870 |
+
|
871 |
+
// disable publish button for 1.5 seconds
|
872 |
+
$publishBtn.addClass( 'disabled button-disabled button-primary-disabled' );
|
873 |
+
setTimeout( () => {
|
874 |
+
$publishBtn.removeClass( 'disabled button-disabled button-primary-disabled' );
|
875 |
+
}, 1500 );
|
876 |
+
|
877 |
+
updateEditorError( editor.vcLintErrors, false );
|
878 |
+
|
879 |
+
// scroll to editor
|
880 |
+
$( 'html,body' ).animate( {
|
881 |
+
scrollTop: $( '#vp_custom_css' ).offset().top - 100,
|
882 |
+
}, 300 );
|
883 |
+
|
884 |
+
// scroll to editor with error
|
885 |
+
editor.focus();
|
886 |
+
editor.setCursor( editor.vcLintErrors[ 0 ].from.line );
|
887 |
+
}
|
888 |
+
} );
|
889 |
+
|
890 |
+
// prevent page closing
|
891 |
+
const defaultForm = $editForm.serialize();
|
892 |
+
$( window ).on( 'beforeunload', () => {
|
893 |
+
if ( publishClicked ) {
|
894 |
+
publishClicked = false;
|
895 |
+
return;
|
896 |
+
}
|
897 |
+
|
898 |
+
if ( defaultForm !== $editForm.serialize() ) {
|
899 |
+
return true;
|
900 |
+
}
|
901 |
+
} );
|
902 |
+
|
903 |
+
// save also if CSS have errors
|
904 |
+
$body.on( 'change', '#vp_custom_css_notice_prevent', function() {
|
905 |
+
saveEditorWithErrors = true;
|
906 |
+
$( this ).closest( '.notice' ).slideUp();
|
907 |
+
} );
|
assets/admin/js/layouts-editor.min.js
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
!function(t){var e={};function a(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,a),i.l=!0,i.exports}a.m=t,a.c=e,a.d=function(t,e,n){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},a.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)a.d(n,i,function(e){return t[e]}.bind(null,i));return n},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="",a(a.s=10)}({0:function(t,e,a){"use strict";function n(t,e,a,n){var i,o=!1,r=0;function l(){i&&clearTimeout(i)}function c(){var c=this,s=Date.now()-r,d=arguments;function p(){r=Date.now(),a.apply(c,d)}o||(n&&!i&&p(),l(),void 0===n&&s>t?p():!0!==e&&(i=setTimeout(n?function(){i=void 0}:p,void 0===n?t-s:t)))}return"boolean"!=typeof e&&(n=a,a=e,e=void 0),c.cancel=function(){l(),o=!0},c}function i(t,e,a){return void 0===a?n(t,e,!1):n(t,a,!1!==e)}a.d(e,"b",function(){return n}),a.d(e,"a",function(){return i})},10:function(t,e,a){t.exports=a(11)},11:function(t,e,a){"use strict";a.r(e);var n=a(0);function i(t){return(i="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 o(t){return function(t){if(Array.isArray(t)){for(var e=0,a=new Array(t.length);e<t.length;e++)a[e]=t[e];return a}}
|
2 |
+
/*!
|
3 |
+
* Name : Visual Portfolio
|
4 |
+
* Version : @@plugin_version
|
5 |
+
* Author : nK https://nkdev.info
|
6 |
+
*/(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var r=jQuery,l=window,c=l.ajaxurl,s=l.VPAdminVariables,d=l.CodeMirror,p=l.emmetCodeMirror,v=r("body"),u=r(window),f=r('form[name="post"]'),m=r("#postID, #post_ID").eq(0).val(),g=r(".vp-content-source"),h=g.find('[name="vp_content_source"]');g.on("click",".vp-content-source__item",function(){var t=r(this).attr("data-content");g.find('[data-content="'.concat(t,'"]')).addClass("active").siblings().removeClass("active"),h.val(t).change()}),g.children('[data-content="'.concat(h.val(),'"]')).click(),r.fn.conditionize&&f.conditionize(),r(".vp-control-range").each(function(){var t=r(this).find("input"),e=t.filter('[type="hidden"]');t.on("change input",function(a){t.val(r(this).val()),e.trigger("vp-fake-".concat(a.type))})}),r.fn.wpColorPicker&&r(".vp-color-picker").each(function(){r(this).data("change",Object(n.a)(300,function(t){r(t.target).change()})).wpColorPicker()}),r.fn.imagepicker&&r(".vp-image-picker").imagepicker();var _=r(".vp_list_preview iframe"),y=!1,b=!1,w=r('<form target="vp_list_preview_iframe" method="post" style="display: none">').attr("action",_.attr("src")).insertAfter(f);function k(){var t="",e=r('[name="vp_controls_styles"]'),a=".vp-id-".concat(m),n=e.val();r('.vp-control-style [type="hidden"]').each(function(){var e=r(this),n=e.closest(".vp-control");if("none"!==n.css("display")){var i=(e.attr("data-style-mask")||"$").replace("$",n.find(e.attr("data-style-from")).val()),o=a+" "+e.attr("data-style-element"),l=e.attr("data-style-property");t&&(t+=" "),t+="".concat(o," { ").concat(l,": ").concat(i,"; }")}}),n!==t&&e.val(t).trigger("vp-fake-change")}function C(){b=!1,y=!1,w.submit()}r.fn.iFrameResize&&_.iFrameResize({interval:10}),C=Object(n.a)(400,C),f.on("change input vp-fake-change vp-fake-input",'[name*="vp_"]',function(t){var e=r(this);if(!e.closest(".vp-no-reload").length)if(r('[name="'.concat(e.attr("name"),'__style[]"]')).length)k();else{var a={name:e.attr("name"),value:e.is("[type=checkbox], [type=radio]")?e.is(":checked"):e.val(),reload:"change"===t.type||"vp-fake-change"===t.type,jQuery:b,$portfolio:y},n=w.find('[name="'.concat(a.name,'"]'));n.length||(n=r('<input type="hidden" name="'.concat(a.name,'" />')).appendTo(w)),n.attr("value",a.value),u.trigger("vp-preview-change",a),a.reload||k(),!a.reload&&y||C()}}),_.on("load",function(){b=this.contentWindow.jQuery,y=b(".vp-portfolio"),k()}),u.on("vp-preview-change",function(t,e){if(e.$portfolio)switch(e.name){case"vp_layout":case"vp_tiles_type":case"vp_masonry_columns":case"vp_grid_columns":case"vp_justified_row_height":case"vp_justified_row_height_tolerance":case"vp_slider_effect":case"vp_slider_speed":case"vp_slider_autoplay":case"vp_slider_autoplay_hover_pause":case"vp_slider_centered_slides":case"vp_slider_loop":case"vp_slider_free_mode":case"vp_slider_free_mode_sticky":case"vp_slider_arrows":case"vp_slider_arrows_icon_prev":case"vp_slider_arrows_icon_next":case"vp_slider_bullets":case"vp_slider_bullets_dynamic":case"vp_items_gap":var a=e.name;a=(a=a.substring(3)).replace(/_/g,"-"),e.$portfolio.attr("data-vp-".concat(a),e.value),e.$portfolio.vpf("init"),e.reload=!1;break;case"vp_filter_align":e.$portfolio.find(".vp-filter").removeClass("vp-filter__align-center vp-filter__align-left vp-filter__align-right").addClass("vp-filter__align-".concat(e.value)),e.reload=!1;break;case"vp_sort_align":e.$portfolio.find(".vp-sort").removeClass("vp-sort__align-center vp-sort__align-left vp-sort__align-right").addClass("vp-sort__align-".concat(e.value)),e.reload=!1;break;case"vp_pagination_align":e.$portfolio.find(".vp-pagination").removeClass("vp-pagination__align-center vp-pagination__align-left vp-pagination__align-right").addClass("vp-pagination__align-".concat(e.value)),e.reload=!1;break;case"vp_controls_styles":var n=e.$portfolio.closest("html"),i="vp-controls-styles-".concat(m,"-inline-css"),o=n.find("#".concat(i));o.length||(o=e.jQuery('<style id="'.concat(i,'">')),n.find("body").prepend(o)),o.html(e.value),e.reload=!1;break;case"vp_custom_css":var r=e.$portfolio.closest("html"),l="vp-custom-css-".concat(m,"-inline-css"),c=r.find("#".concat(l));c.length||(c=e.jQuery('<style id="'.concat(l,'">')),r.find("body").prepend(c)),c.html(e.value),e.reload=!1;break;case"vp_list_name":case"vp_stretch":e.reload=!1}}),v.on("click",".vp-control-image-dropdown",function(t){r(t.target).closest(".vp-control-image-dropdown__content").length||r(this).toggleClass("active")}),v.on("mousedown",function(t){var e=r(t.target).closest(".vp-control-image-dropdown");r(".vp-control-image-dropdown.active").each(function(){this!==e[0]&&r(this).removeClass("active")})}),v.on("change",".vp-control-image-dropdown .vp-image-picker",function(){var t=r(this),e=t.data("picker");if(e){var a=e.select.find('option[value="'.concat(e.select.val(),'"]')),n=a.parent("optgroup"),i=t.closest(".vp-control-image-dropdown"),o=a.attr("data-img-src");i.length&&(i.children(".vp-control-image-dropdown__preview").html('<img src="'.concat(o,'" alt="">')),n.length&&i.children(".vp-control-image-dropdown__title").html(n.attr("label")))}});var x=r('[name="vp_list_name"]'),j=r('[name="post_title"]');x.length&&j.length&&(x.on("input",function(){j.val()!==x.val()&&j.val(x.val()).change()}),j.on("input",function(){x.val(j.val())})),r.fn.select2&&r(".vp-select2").each(function(){var t=r(this),e={width:"100%",minimumResultsForSearch:t.hasClass("vp-select2-nosearch")?-1:1,tags:t.hasClass("vp-select2-tags")},a=!!t.attr("data-post-type")&&r(t.attr("data-post-type"));t.closest(".vp-select2-posts-ajax").length&&(e=r.extend({minimumInputLength:1,ajax:{url:c,dataType:"json",delay:250,data:function(t){return{action:"vp_find_posts",q:t.term,post_type:!!a&&a.val(),nonce:s.nonce}},processResults:function(t){return{results:!(!t||!t.length)&&t}},cache:!0},escapeMarkup:function(t){return t},templateResult:function(t){if(t.loading)return t.text;var e="";t.title&&(e=t.title);var a="";t.post_type&&(a=t.post_type);var n="";return t.img&&(n="style=\"background-image: url('".concat(t.img,"');\"")),"".concat('<div class="vp-select2-ajax__result"><div class="vp-select2-ajax__result-img" ').concat(n,"></div>")+'<div class="vp-select2-ajax__result-data">'+'<div class="vp-select2-ajax__result-title">'.concat(e,"</div>")+'<div class="vp-select2-ajax__result-post-type">'.concat(a,"</div>")+"</div></div>"},templateSelection:function(t){return t.title||t.text}},e)),t.closest(".vp-select2-taxonomies-ajax").length&&(e=r.extend({minimumInputLength:1,ajax:{url:c,dataType:"json",delay:250,data:function(t){return{action:"vp_find_taxonomies",q:t.term,post_type:!!a&&a.val(),nonce:s.nonce}},processResults:function(t){var e=[];return t&&Object.keys(t).forEach(function(a){e.push({text:a,children:t[a]})}),{results:e}},cache:!0}},e)),t.select2(e).data("select2").$dropdown.addClass("select2-vp-container")});var S=r(".vp-control-gallery"),O=0;function z(t,e){var a=t.find('[data-image-id="'+e+'"]'),n={id:e};return a.find("[data-additional]").each(function(){var t=r(this),e=t.attr("data-additional");if(n[e]=t.html(),"true"===t.attr("data-to-json"))try{n[e]=JSON.parse(n[e])}catch(t){n[e]=""}}),n}function E(t){var e=[];t.children(".vp-control-gallery-items").find(".vp-control-gallery-items-img").each(function(){e.push(z(t,r(this).attr("data-image-id")))});var a=JSON.stringify(e),n=t.children("textarea");a!==n.val()&&n.val(a).change()}function M(t,e){var a=t.children("textarea").attr("name"),n=t.children(".vp-control-gallery-additional-data"),i=n.children(".vp-control-gallery-additional-data-preview"),l=t.children(".vp-control-gallery-items").find('.vp-control-gallery-items-img[data-image-id="'+e+'"]'),c=z(t,e),s=function(t,e){var a=t.find('[data-image-id="'+e+'"]'),n={};return a.find("[data-meta]").each(function(){n[r(this).attr("data-meta")]=r(this).html()}),n}(t,e);c&&Object.keys(c).forEach(function(e){var i=n.find('[name="'+a+"_additional_"+e+'"], [name="'+a+"_additional_"+e+'[]"]').val(c[e]||"");if(i.hasClass("vp-select2")){if(i.hasClass("vp-select2-tags")){var l=[],s=[];t.children(".vp-control-gallery-items").find(".vp-control-gallery-items-img").each(function(){var a=z(t,r(this).attr("data-image-id"));a&&void 0!==a[e]&&a[e]&&(l=o(new Set([].concat(o(l),o(a[e])))))}),l.forEach(function(t){s.push(new window.Option(t,t,!1,!1))}),i.html(s.length?s:""),i.val(void 0!==c[e]&&c[e]?c[e]:"")}i.trigger("change")}}),i.find(".vp-control-gallery-additional-data-preview-image img").attr("src",l.children("img").attr("src")||""),i.find(".vp-control-gallery-additional-data-preview-name").html(s.filename),i.find(".vp-control-gallery-additional-data-preview-size").html(s.width+"x"+s.height+" ("+s.filesizeHumanReadable+")"),i.find(".vp-control-gallery-additional-data-preview-edit a").attr("href",s.editLink.replace("&","&")),l.siblings().removeClass("active"),l.addClass("active"),n.addClass("active"),O=S.find(".vp-control-gallery-additional-data.active").length}if(r.fn.sortable&&(S.each(function(){var t=r(this),e=t.children(".vp-control-gallery-items-default");t.children(".vp-control-gallery-items").sortable({animation:150,draggable:".vp-control-gallery-items-img",onUpdate:function(){E(t)}}),t.on("click",".vp-control-gallery-items-remove",function(e){e.preventDefault(),r(this).parent().remove(),E(t)}),t.on("click",".vp-control-gallery-items-add",function(a){a.preventDefault();var n=t.data("wp-frame");n?n.open():wp.media?(n=wp.media({title:"Select or Upload Images",button:{text:"Add images"},multiple:!0,library:{type:"image"}}),t.data("wp-frame",n),n.on("select",function(){var a=n.state().get("selection").models;a&&a.length&&(a.forEach(function(a){var n=a.attributes.url;a.attributes.sizes&&a.attributes.sizes.thumbnail&&(n=a.attributes.sizes.thumbnail.url);var i=e.children().clone();i.attr("data-image-id",a.id),i.children("img").attr("src",n),i.find('[data-meta="width"]').html(a.attributes.width),i.find('[data-meta="height"]').html(a.attributes.height),i.find('[data-meta="filename"]').html(a.attributes.filename),i.find('[data-meta="editLink"]').html(a.attributes.editLink),i.find('[data-meta="filesizeHumanReadable"]').html(a.attributes.filesizeHumanReadable),a.attributes.title&&i.find('[data-additional="title"]').html(a.attributes.title),a.attributes.description&&i.find('[data-additional="description"]').html(a.attributes.description),t.find(".vp-control-gallery-items-add").before(i)}),E(t))}),n.open()):console.error("Can't access wp.media object.")}),t.on("click",".vp-control-gallery-items-img",function(e){e.preventDefault(),M(t,r(this).attr("data-image-id"))}),t.on("change input",".vp-control-gallery-additional-data [name]",Object(n.a)(200,function(){var e=t.children(".vp-control-gallery-additional-data"),a=t.children("textarea").attr("name"),n=t.children(".vp-control-gallery-items").find(".vp-control-gallery-items-img.active").attr("data-image-id");if(n){var o=t.children(".vp-control-gallery-items").find('[data-image-id="'+n+'"]');e.find('[name*="'+a+'_additional_"]').each(function(){var t=r(this).attr("name").replace(a+"_additional_","").replace("[]",""),e=r(this).val()||"";"object"===i(e)&&(e=JSON.stringify(e)),o.find('[data-additional="'+t+'"]').html(e||"")}),E(t)}}))}),S.length)){var A=S.children(".vp-control-gallery-additional-data");r(document).on("mousedown",function(t){if(O){var e=t.target;r(e).closest(".vp-control-gallery-additional-data, .vp-control-gallery-items-img, .select2-vp-container").length||(A.removeClass("active"),S.children(".vp-control-gallery-items").find(".vp-control-gallery-items-img.active").removeClass("active"),O=S.find(".vp-control-gallery-additional-data.active").length)}})}var L=r('[name="vp_custom_css"]'),T=!1,$=!0;function P(t,e){if($&&(e=!1,$=!1),s&&s.css_editor_error_notice){var a=!1;if(1===t.length?a=s.css_editor_error_notice.singular.replace("%d","1"):t.length>1&&(a=s.css_editor_error_notice.plural.replace("%d",String(t.length))),a){var n=L.prev("#vp_custom_css_notice");if(n.length||e||(n=r('<div class="notice notice-error inline" id="vp_custom_css_notice"></div>'),L.before(n)),!n.length)return;var i='<p class="notification-message">'.concat(a,"</p>")+'<p><input id="vp_custom_css_notice_prevent" type="checkbox">'+'<label for="vp_custom_css_notice_prevent">'.concat(s.css_editor_error_checkbox,"</label>")+"</p>";n.html(i)}else L.prev("#vp_custom_css_notice").remove()}}if(void 0!==d&&L.length){var R=function(t){N.css("height",Math.max(200,F+t.originalEvent.y-U)),Q.setSize(null,Math.max(200,F+t.y-U)+"px")},D=function t(){v.off("mousemove",R),v.off("mouseup",t)};if(s&&s.classnames){var I=d.hint.css;d.hint.css=function(t){var e=t.getCursor(),a=I(t)||{from:e,to:t.getCursor(),list:[]},n=t.getTokenAt(e);return"top"===n.state.state&&0===n.string.indexOf(".")&&(a={from:d.Pos(e.line,n.start),to:d.Pos(e.line,n.end),list:[]},s.classnames.forEach(function(t){-1!==t.indexOf(n.string)&&a.list.push(t)})),a}}var Q=d.fromTextArea(L[0],{mode:"css",theme:"eclipse",indentUnit:4,autoCloseTags:!0,autoCloseBrackets:!0,matchBrackets:!0,foldGutter:!0,lint:{options:{errors:!0,"box-model":!0,"display-property-grouping":!0,"duplicate-properties":!0,"known-properties":!0,"outline-none":!0},onUpdateLinting:function(t,e,a){var n=[];t.forEach(function(t){"error"===t.severity&&n.push(t)}),a.vcLintErrors=n,T||P(a.vcLintErrors,!0)}},lineNumbers:!0,lineWrapping:!0,scrollPastEnd:!0,emmet_active:!0,emmet:!0,styleActiveLine:!0,continueComments:!0,scrollbarStyle:"simple",extraKeys:{"Ctrl-Space":"autocomplete","Ctrl-/":"toggleComment","Cmd-/":"toggleComment","Alt-F":"findPersistent"},gutters:["CodeMirror-lint-markers","CodeMirror-linenumbers","CodeMirror-foldgutter"]});p(Q),L.data("CodeMirrorInstance",Q),Q.on("change",function(){Q.save(),L.change()}),Q.on("keyup",function(t,e){var a=/^[a-zA-Z]$/.test(e.key);if(!t.state.completionActive||!a){var n=t.getTokenAt(t.getCursor());if("string"!==n.type&&"comment"!==n.type){var i=t.doc.getLine(t.doc.getCursor().line).substr(0,t.doc.getCursor().ch);(a||":"===e.key||" "===e.key&&/:\s+$/.test(i))&&t.showHint({completeSingle:!1})}}});var U,F,H=r(".CodeMirror-resizer").after(L),N=H.prev(".CodeMirror");H.on("mousedown",function(t){U=t.originalEvent.y,F=N.height(),v.on("mousemove",R),v.on("mouseup",D)})}var q=!1;v.on("click","#publish:not(.disabled)",function(t){if(q=!0,!T){var e=r(this),a=L.length&&L.data("CodeMirrorInstance");a&&a.vcLintErrors&&a.vcLintErrors.length&&(t.preventDefault(),e.addClass("disabled button-disabled button-primary-disabled"),setTimeout(function(){e.removeClass("disabled button-disabled button-primary-disabled")},1500),P(a.vcLintErrors,!1),r("html,body").animate({scrollTop:r("#vp_custom_css").offset().top-100},300),a.focus(),a.setCursor(a.vcLintErrors[0].from.line))}});var J=f.serialize();r(window).on("beforeunload",function(){if(!q)return J!==f.serialize()||void 0;q=!1}),v.on("change","#vp_custom_css_notice_prevent",function(){T=!0,r(this).closest(".notice").slideUp()})}});
|
assets/admin/js/mce-dropdown.js
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* Name : Visual Portfolio
|
3 |
+
* Version : 1.12.1
|
4 |
+
* Author : nK https://nkdev.info
|
5 |
+
*/
|
6 |
+
const {
|
7 |
+
tinymce,
|
8 |
+
VPTinyMCEOptions,
|
9 |
+
} = window;
|
10 |
+
if ( typeof VPTinyMCEOptions !== 'undefined' && 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 |
+
|
23 |
+
tinymce.create( 'tinymce.plugins.visual_portfolio', {
|
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() {
|
31 |
+
if ( this.menu ) {
|
32 |
+
this.menu.$el.find( '.mce-first' ).hide();
|
33 |
+
}
|
34 |
+
},
|
35 |
+
onselect() {
|
36 |
+
if ( this.value() ) {
|
37 |
+
editor.insertContent( `[visual_portfolio id="${ this.value() }"]` );
|
38 |
+
}
|
39 |
+
this.value( '' );
|
40 |
+
},
|
41 |
+
values: options,
|
42 |
+
value: '',
|
43 |
+
} );
|
44 |
+
},
|
45 |
+
} );
|
46 |
+
|
47 |
+
tinymce.PluginManager.add( 'visual_portfolio', tinymce.plugins.visual_portfolio );
|
48 |
+
}
|
assets/admin/js/mce-dropdown.min.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
-
!function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=
|
2 |
/*!
|
3 |
* Name : Visual Portfolio
|
4 |
-
* 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)}}});
|
1 |
+
!function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=12)}({12:function(t,e,n){t.exports=n(13)},13:function(t,e){
|
2 |
/*!
|
3 |
* Name : Visual Portfolio
|
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)}}});
|
assets/admin/js/mce-localize.js
ADDED
File without changes
|
assets/admin/js/mce-localize.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},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=
|
1 |
+
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},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=14)}({14:function(e,t,n){e.exports=n(15)},15:function(e,t){}});
|
assets/admin/js/script.js
ADDED
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* Name : Visual Portfolio
|
3 |
+
* Version : 1.12.1
|
4 |
+
* Author : nK https://nkdev.info
|
5 |
+
*/
|
6 |
+
import { debounce } from 'throttle-debounce';
|
7 |
+
|
8 |
+
const $ = jQuery;
|
9 |
+
const {
|
10 |
+
ajaxurl,
|
11 |
+
VPAdminVariables,
|
12 |
+
Tooltip,
|
13 |
+
} = window;
|
14 |
+
|
15 |
+
const $body = $( 'body' );
|
16 |
+
|
17 |
+
// select shortcode text in input
|
18 |
+
$body.on( 'focus', '[name="vp_list_shortcode"], [name="vp_filter_shortcode"], [name="vp_sort_shortcode"]', function() {
|
19 |
+
this.select();
|
20 |
+
} );
|
21 |
+
$body.on( 'click', '.vp-onclick-selection', function() {
|
22 |
+
window.getSelection().selectAllChildren( this );
|
23 |
+
} );
|
24 |
+
|
25 |
+
// Post format metabox show/hide
|
26 |
+
const $videoMetabox = $( '#vp_format_video' );
|
27 |
+
const $videoFormatCheckbox = $( '#post-format-video' );
|
28 |
+
function toggleVideoMetabox() {
|
29 |
+
$videoMetabox[ $videoFormatCheckbox.is( ':checked' ) ? 'show' : 'hide' ]();
|
30 |
+
}
|
31 |
+
if ( $videoMetabox.length && $videoFormatCheckbox.length ) {
|
32 |
+
toggleVideoMetabox();
|
33 |
+
$body.on( 'change', '[name=post_format]', () => {
|
34 |
+
toggleVideoMetabox();
|
35 |
+
} );
|
36 |
+
}
|
37 |
+
let oembedAjax = null;
|
38 |
+
function runAjaxVideoOembed( $this ) {
|
39 |
+
oembedAjax = $.ajax( {
|
40 |
+
url: ajaxurl,
|
41 |
+
method: 'GET',
|
42 |
+
dataType: 'json',
|
43 |
+
data: {
|
44 |
+
action: 'vp_find_oembed',
|
45 |
+
q: $this.val(),
|
46 |
+
nonce: VPAdminVariables.nonce,
|
47 |
+
},
|
48 |
+
complete( data ) {
|
49 |
+
const json = data.responseJSON;
|
50 |
+
if ( json && typeof json.html !== 'undefined' ) {
|
51 |
+
$this.next( '.vp-oembed-preview' ).html( json.html );
|
52 |
+
}
|
53 |
+
},
|
54 |
+
} );
|
55 |
+
}
|
56 |
+
runAjaxVideoOembed = debounce( 300, runAjaxVideoOembed );
|
57 |
+
$body.on( 'change input', '.vp-input[name="video_url"]', function() {
|
58 |
+
if ( oembedAjax !== null ) {
|
59 |
+
oembedAjax.abort();
|
60 |
+
}
|
61 |
+
|
62 |
+
const $this = $( this );
|
63 |
+
$this.next( '.vp-oembed-preview' ).html( '' );
|
64 |
+
|
65 |
+
runAjaxVideoOembed( $this );
|
66 |
+
} );
|
67 |
+
|
68 |
+
// Popper.js
|
69 |
+
if ( typeof Tooltip !== 'undefined' ) {
|
70 |
+
$( '[data-hint]:not([data-hint=""]):not([data-hint="false"])' ).each( function() {
|
71 |
+
const $this = $( this );
|
72 |
+
// eslint-disable-next-line no-new
|
73 |
+
new Tooltip( this, {
|
74 |
+
placement: $this.attr( 'data-hint-place' ) || 'top',
|
75 |
+
title: $this.attr( 'data-hint' ),
|
76 |
+
container: $( 'body' )[ 0 ],
|
77 |
+
boundariesElement: 'viewport',
|
78 |
+
} );
|
79 |
+
} );
|
80 |
+
}
|
assets/admin/js/script.min.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
-
!function(t){var e={};function
|
2 |
/*!
|
3 |
* Name : Visual Portfolio
|
4 |
-
* Version :
|
5 |
* Author : nK https://nkdev.info
|
6 |
-
*/(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var r=jQuery,l=window,c=l.ajaxurl,s=l.VPAdminVariables,d=l.Tooltip,p=l.CodeMirror,v=l.emmetCodeMirror,u=r("body"),f=r(window),m=r('form[name="post"]'),g=r('[name="post_type"]'),h=r("#postID, #post_ID").eq(0).val();u.on("focus",'[name="vp_list_shortcode"], [name="vp_filter_shortcode"], [name="vp_sort_shortcode"]',function(){this.select()}),u.on("click",".vp-onclick-selection",function(){window.getSelection().selectAllChildren(this)});var _=r("#vp_format_video"),y=r("#post-format-video");function b(){_[y.is(":checked")?"show":"hide"]()}_.length&&y.length&&(b(),u.on("change","[name=post_format]",function(){b()}));var w=null;function k(t){w=r.ajax({url:c,method:"GET",dataType:"json",data:{action:"vp_find_oembed",q:t.val(),nonce:s.nonce},complete:function(e){var a=e.responseJSON;a&&void 0!==a.html&&t.next(".vp-oembed-preview").html(a.html)}})}k=Object(n.a)(300,k),u.on("change input",'.vp-input[name="video_url"]',function(){null!==w&&w.abort();var t=r(this);t.next(".vp-oembed-preview").html(""),k(t)}),void 0!==d&&r('[data-hint]:not([data-hint=""]):not([data-hint="false"])').each(function(){var t=r(this);new d(this,{placement:t.attr("data-hint-place")||"top",title:t.attr("data-hint"),container:r("body")[0],boundariesElement:"viewport"})}),function(){if("vp_lists"===g.val()&&m.length){var t=r(".vp-content-source"),e=t.find('[name="vp_content_source"]');t.on("click",".vp-content-source__item",function(){var a=r(this).attr("data-content");t.find('[data-content="'.concat(a,'"]')).addClass("active").siblings().removeClass("active"),e.val(a).change()}),t.children('[data-content="'.concat(e.val(),'"]')).click(),r.fn.conditionize&&m.conditionize(),r(".vp-control-range").each(function(){var t=r(this).find("input"),e=t.filter('[type="hidden"]');t.on("change input",function(a){t.val(r(this).val()),e.trigger("vp-fake-".concat(a.type))})}),r.fn.wpColorPicker&&r(".vp-color-picker").each(function(){r(this).data("change",Object(n.a)(300,function(t){r(t.target).change()})).wpColorPicker()}),r.fn.imagepicker&&r(".vp-image-picker").imagepicker();var a=r(".vp_list_preview iframe"),l=!1,d=!1,_=r('<form target="vp_list_preview_iframe" method="post" style="display: none">').attr("action",a.attr("src")).insertAfter(m);r.fn.iFrameResize&&a.iFrameResize({interval:10}),I=Object(n.a)(400,I),m.on("change input vp-fake-change vp-fake-input",'[name*="vp_"]',function(t){var e=r(this);if(!e.closest(".vp-no-reload").length)if(r('[name="'.concat(e.attr("name"),'__style[]"]')).length)D();else{var a={name:e.attr("name"),value:e.is("[type=checkbox], [type=radio]")?e.is(":checked"):e.val(),reload:"change"===t.type||"vp-fake-change"===t.type,jQuery:d,$portfolio:l},n=_.find('[name="'.concat(a.name,'"]'));n.length||(n=r('<input type="hidden" name="'.concat(a.name,'" />')).appendTo(_)),n.attr("value",a.value),f.trigger("vp-preview-change",a),a.reload||D(),!a.reload&&l||I()}}),a.on("load",function(){d=this.contentWindow.jQuery,l=d(".vp-portfolio"),D()}),f.on("vp-preview-change",function(t,e){if(e.$portfolio)switch(e.name){case"vp_layout":case"vp_tiles_type":case"vp_masonry_columns":case"vp_grid_columns":case"vp_justified_row_height":case"vp_justified_row_height_tolerance":case"vp_slider_effect":case"vp_slider_speed":case"vp_slider_autoplay":case"vp_slider_autoplay_hover_pause":case"vp_slider_centered_slides":case"vp_slider_loop":case"vp_slider_free_mode":case"vp_slider_free_mode_sticky":case"vp_slider_arrows":case"vp_slider_arrows_icon_prev":case"vp_slider_arrows_icon_next":case"vp_slider_bullets":case"vp_slider_bullets_dynamic":case"vp_items_gap":var a=e.name;a=(a=a.substring(3)).replace(/_/g,"-"),e.$portfolio.attr("data-vp-".concat(a),e.value),e.$portfolio.vpf("init"),e.reload=!1;break;case"vp_filter_align":e.$portfolio.find(".vp-filter").removeClass("vp-filter__align-center vp-filter__align-left vp-filter__align-right").addClass("vp-filter__align-".concat(e.value)),e.reload=!1;break;case"vp_sort_align":e.$portfolio.find(".vp-sort").removeClass("vp-sort__align-center vp-sort__align-left vp-sort__align-right").addClass("vp-sort__align-".concat(e.value)),e.reload=!1;break;case"vp_pagination_align":e.$portfolio.find(".vp-pagination").removeClass("vp-pagination__align-center vp-pagination__align-left vp-pagination__align-right").addClass("vp-pagination__align-".concat(e.value)),e.reload=!1;break;case"vp_controls_styles":var n=e.$portfolio.closest("html"),i="vp-controls-styles-".concat(h,"-inline-css"),o=n.find("#".concat(i));o.length||(o=e.jQuery('<style id="'.concat(i,'">')),n.find("body").prepend(o)),o.html(e.value),e.reload=!1;break;case"vp_custom_css":var r=e.$portfolio.closest("html"),l="vp-custom-css-".concat(h,"-inline-css"),c=r.find("#".concat(l));c.length||(c=e.jQuery('<style id="'.concat(l,'">')),r.find("body").prepend(c)),c.html(e.value),e.reload=!1;break;case"vp_list_name":case"vp_stretch":e.reload=!1}}),u.on("click",".vp-control-image-dropdown",function(t){r(t.target).closest(".vp-control-image-dropdown__content").length||r(this).toggleClass("active")}),u.on("mousedown",function(t){var e=r(t.target).closest(".vp-control-image-dropdown");r(".vp-control-image-dropdown.active").each(function(){this!==e[0]&&r(this).removeClass("active")})}),u.on("change",".vp-control-image-dropdown .vp-image-picker",function(){var t=r(this),e=t.data("picker");if(e){var a=e.select.find('option[value="'.concat(e.select.val(),'"]')),n=a.parent("optgroup"),i=t.closest(".vp-control-image-dropdown"),o=a.attr("data-img-src");i.length&&(i.children(".vp-control-image-dropdown__preview").html('<img src="'.concat(o,'" alt="">')),n.length&&i.children(".vp-control-image-dropdown__title").html(n.attr("label")))}});var y=r('[name="vp_list_name"]'),b=r('[name="post_title"]');y.length&&b.length&&(y.on("input",function(){b.val()!==y.val()&&b.val(y.val()).change()}),b.on("input",function(){y.val(b.val())})),r.fn.select2&&r(".vp-select2").each(function(){var t=r(this),e={width:"100%",minimumResultsForSearch:t.hasClass("vp-select2-nosearch")?-1:1,tags:t.hasClass("vp-select2-tags")},a=!!t.attr("data-post-type")&&r(t.attr("data-post-type"));t.closest(".vp-select2-posts-ajax").length&&(e=r.extend({minimumInputLength:1,ajax:{url:c,dataType:"json",delay:250,data:function(t){return{action:"vp_find_posts",q:t.term,post_type:!!a&&a.val(),nonce:s.nonce}},processResults:function(t){return{results:!(!t||!t.length)&&t}},cache:!0},escapeMarkup:function(t){return t},templateResult:function(t){if(t.loading)return t.text;var e="";t.title&&(e=t.title);var a="";t.post_type&&(a=t.post_type);var n="";return t.img&&(n="style=\"background-image: url('".concat(t.img,"');\"")),"".concat('<div class="vp-select2-ajax__result"><div class="vp-select2-ajax__result-img" ').concat(n,"></div>")+'<div class="vp-select2-ajax__result-data">'+'<div class="vp-select2-ajax__result-title">'.concat(e,"</div>")+'<div class="vp-select2-ajax__result-post-type">'.concat(a,"</div>")+"</div></div>"},templateSelection:function(t){return t.title||t.text}},e)),t.closest(".vp-select2-taxonomies-ajax").length&&(e=r.extend({minimumInputLength:1,ajax:{url:c,dataType:"json",delay:250,data:function(t){return{action:"vp_find_taxonomies",q:t.term,post_type:!!a&&a.val(),nonce:s.nonce}},processResults:function(t){var e=[];return t&&Object.keys(t).forEach(function(a){e.push({text:a,children:t[a]})}),{results:e}},cache:!0}},e)),t.select2(e).data("select2").$dropdown.addClass("select2-vp-container")});var w=r(".vp-control-gallery"),k=0;if(r.fn.sortable&&(w.each(function(){var t=r(this),e=t.children(".vp-control-gallery-items-default");t.children(".vp-control-gallery-items").sortable({animation:150,draggable:".vp-control-gallery-items-img",onUpdate:function(){Q(t)}}),t.on("click",".vp-control-gallery-items-remove",function(e){e.preventDefault(),r(this).parent().remove(),Q(t)}),t.on("click",".vp-control-gallery-items-add",function(a){a.preventDefault();var n=t.data("wp-frame");n?n.open():wp.media?(n=wp.media({title:"Select or Upload Images",button:{text:"Add images"},multiple:!0,library:{type:"image"}}),t.data("wp-frame",n),n.on("select",function(){var a=n.state().get("selection").models;a&&a.length&&(a.forEach(function(a){var n=a.attributes.url;a.attributes.sizes&&a.attributes.sizes.thumbnail&&(n=a.attributes.sizes.thumbnail.url);var i=e.children().clone();i.attr("data-image-id",a.id),i.children("img").attr("src",n),i.find('[data-meta="width"]').html(a.attributes.width),i.find('[data-meta="height"]').html(a.attributes.height),i.find('[data-meta="filename"]').html(a.attributes.filename),i.find('[data-meta="editLink"]').html(a.attributes.editLink),i.find('[data-meta="filesizeHumanReadable"]').html(a.attributes.filesizeHumanReadable),a.attributes.title&&i.find('[data-additional="title"]').html(a.attributes.title),a.attributes.description&&i.find('[data-additional="description"]').html(a.attributes.description),t.find(".vp-control-gallery-items-add").before(i)}),Q(t))}),n.open()):console.error("Can't access wp.media object.")}),t.on("click",".vp-control-gallery-items-img",function(e){e.preventDefault(),U(t,r(this).attr("data-image-id"))}),t.on("change input",".vp-control-gallery-additional-data [name]",Object(n.a)(200,function(){var e=t.children(".vp-control-gallery-additional-data"),a=t.children("textarea").attr("name"),n=t.children(".vp-control-gallery-items").find(".vp-control-gallery-items-img.active").attr("data-image-id");if(n){var o=t.children(".vp-control-gallery-items").find('[data-image-id="'+n+'"]');e.find('[name*="'+a+'_additional_"]').each(function(){var t=r(this).attr("name").replace(a+"_additional_","").replace("[]",""),e=r(this).val()||"";"object"===i(e)&&(e=JSON.stringify(e)),o.find('[data-additional="'+t+'"]').html(e||"")}),Q(t)}}))}),w.length)){var C=w.children(".vp-control-gallery-additional-data");r(document).on("mousedown",function(t){if(k){var e=t.target;r(e).closest(".vp-control-gallery-additional-data, .vp-control-gallery-items-img, .select2-vp-container").length||(C.removeClass("active"),w.children(".vp-control-gallery-items").find(".vp-control-gallery-items-img.active").removeClass("active"),k=w.find(".vp-control-gallery-additional-data.active").length)}})}var x=r('[name="vp_custom_css"]'),j=!1,S=!0;if(void 0!==p&&x.length){var O=function(t){$.css("height",Math.max(200,M+t.originalEvent.y-A)),z.setSize(null,Math.max(200,M+t.y-A)+"px")},E=function t(){u.off("mousemove",O),u.off("mouseup",t)};if(s&&s.classnames){var T=p.hint.css;p.hint.css=function(t){var e=t.getCursor(),a=T(t)||{from:e,to:t.getCursor(),list:[]},n=t.getTokenAt(e);return"top"===n.state.state&&0===n.string.indexOf(".")&&(a={from:p.Pos(e.line,n.start),to:p.Pos(e.line,n.end),list:[]},s.classnames.forEach(function(t){-1!==t.indexOf(n.string)&&a.list.push(t)})),a}}var z=p.fromTextArea(x[0],{mode:"css",theme:"eclipse",indentUnit:4,autoCloseTags:!0,autoCloseBrackets:!0,matchBrackets:!0,foldGutter:!0,lint:{options:{errors:!0,"box-model":!0,"display-property-grouping":!0,"duplicate-properties":!0,"known-properties":!0,"outline-none":!0},onUpdateLinting:function(t,e,a){var n=[];t.forEach(function(t){"error"===t.severity&&n.push(t)}),a.vcLintErrors=n,j||q(a.vcLintErrors,!0)}},lineNumbers:!0,lineWrapping:!0,scrollPastEnd:!0,emmet_active:!0,emmet:!0,styleActiveLine:!0,continueComments:!0,scrollbarStyle:"simple",extraKeys:{"Ctrl-Space":"autocomplete","Ctrl-/":"toggleComment","Cmd-/":"toggleComment","Alt-F":"findPersistent"},gutters:["CodeMirror-lint-markers","CodeMirror-linenumbers","CodeMirror-foldgutter"]});v(z),x.data("CodeMirrorInstance",z),z.on("change",function(){z.save(),x.change()}),z.on("keyup",function(t,e){var a=/^[a-zA-Z]$/.test(e.key);if(!t.state.completionActive||!a){var n=t.getTokenAt(t.getCursor());if("string"!==n.type&&"comment"!==n.type){var i=t.doc.getLine(t.doc.getCursor().line).substr(0,t.doc.getCursor().ch);(a||":"===e.key||" "===e.key&&/:\s+$/.test(i))&&t.showHint({completeSingle:!1})}}});var A,M,L=r(".CodeMirror-resizer").after(x),$=L.prev(".CodeMirror");L.on("mousedown",function(t){A=t.originalEvent.y,M=$.height(),u.on("mousemove",O),u.on("mouseup",E)})}var P=!1;u.on("click","#publish:not(.disabled)",function(t){if(P=!0,!j){var e=r(this),a=x.length&&x.data("CodeMirrorInstance");a&&a.vcLintErrors&&a.vcLintErrors.length&&(t.preventDefault(),e.addClass("disabled button-disabled button-primary-disabled"),setTimeout(function(){e.removeClass("disabled button-disabled button-primary-disabled")},1500),q(a.vcLintErrors,!1),r("html,body").animate({scrollTop:r("#vp_custom_css").offset().top-100},300),a.focus(),a.setCursor(a.vcLintErrors[0].from.line))}});var R=m.serialize();r(window).on("beforeunload",function(){if(!P)return R!==m.serialize()||void 0;P=!1}),u.on("change","#vp_custom_css_notice_prevent",function(){j=!0,r(this).closest(".notice").slideUp()})}function D(){var t="",e=r('[name="vp_controls_styles"]'),a=".vp-id-".concat(h),n=e.val();r('.vp-control-style [type="hidden"]').each(function(){var e=r(this),n=e.closest(".vp-control");if("none"!==n.css("display")){var i=(e.attr("data-style-mask")||"$").replace("$",n.find(e.attr("data-style-from")).val()),o=a+" "+e.attr("data-style-element"),l=e.attr("data-style-property");t&&(t+=" "),t+="".concat(o," { ").concat(l,": ").concat(i,"; }")}}),n!==t&&e.val(t).trigger("vp-fake-change")}function I(){d=!1,l=!1,_.submit()}function N(t,e){var a=t.find('[data-image-id="'+e+'"]'),n={id:e};return a.find("[data-additional]").each(function(){var t=r(this),e=t.attr("data-additional");if(n[e]=t.html(),"true"===t.attr("data-to-json"))try{n[e]=JSON.parse(n[e])}catch(t){n[e]=""}}),n}function Q(t){var e=[];t.children(".vp-control-gallery-items").find(".vp-control-gallery-items-img").each(function(){e.push(N(t,r(this).attr("data-image-id")))});var a=JSON.stringify(e),n=t.children("textarea");a!==n.val()&&n.val(a).change()}function U(t,e){var a=t.children("textarea").attr("name"),n=t.children(".vp-control-gallery-additional-data"),i=n.children(".vp-control-gallery-additional-data-preview"),l=t.children(".vp-control-gallery-items").find('.vp-control-gallery-items-img[data-image-id="'+e+'"]'),c=N(t,e),s=function(t,e){var a=t.find('[data-image-id="'+e+'"]'),n={};return a.find("[data-meta]").each(function(){n[r(this).attr("data-meta")]=r(this).html()}),n}(t,e);c&&Object.keys(c).forEach(function(e){var i=n.find('[name="'+a+"_additional_"+e+'"], [name="'+a+"_additional_"+e+'[]"]').val(c[e]||"");if(i.hasClass("vp-select2")){if(i.hasClass("vp-select2-tags")){var l=[],s=[];t.children(".vp-control-gallery-items").find(".vp-control-gallery-items-img").each(function(){var a=N(t,r(this).attr("data-image-id"));a&&void 0!==a[e]&&a[e]&&(l=o(new Set([].concat(o(l),o(a[e])))))}),l.forEach(function(t){s.push(new window.Option(t,t,!1,!1))}),i.html(s.length?s:""),i.val(void 0!==c[e]&&c[e]?c[e]:"")}i.trigger("change")}}),i.find(".vp-control-gallery-additional-data-preview-image img").attr("src",l.children("img").attr("src")||""),i.find(".vp-control-gallery-additional-data-preview-name").html(s.filename),i.find(".vp-control-gallery-additional-data-preview-size").html(s.width+"x"+s.height+" ("+s.filesizeHumanReadable+")"),i.find(".vp-control-gallery-additional-data-preview-edit a").attr("href",s.editLink.replace("&","&")),l.siblings().removeClass("active"),l.addClass("active"),n.addClass("active"),k=w.find(".vp-control-gallery-additional-data.active").length}function q(t,e){if(S&&(e=!1,S=!1),s&&s.css_editor_error_notice){var a=!1;if(1===t.length?a=s.css_editor_error_notice.singular.replace("%d","1"):t.length>1&&(a=s.css_editor_error_notice.plural.replace("%d",String(t.length))),a){var n=x.prev("#vp_custom_css_notice");if(n.length||e||(n=r('<div class="notice notice-error inline" id="vp_custom_css_notice"></div>'),x.before(n)),!n.length)return;var i='<p class="notification-message">'.concat(a,"</p>")+'<p><input id="vp_custom_css_notice_prevent" type="checkbox">'+'<label for="vp_custom_css_notice_prevent">'.concat(s.css_editor_error_checkbox,"</label>")+"</p>";n.html(i)}else x.prev("#vp_custom_css_notice").remove()}}}()},30:function(t,e,a){"use strict";function n(t,e,a,n){var i,o=!1,r=0;function l(){i&&clearTimeout(i)}function c(){var c=this,s=Date.now()-r,d=arguments;function p(){r=Date.now(),a.apply(c,d)}o||(n&&!i&&p(),l(),void 0===n&&s>t?p():!0!==e&&(i=setTimeout(n?function(){i=void 0}:p,void 0===n?t-s:t)))}return"boolean"!=typeof e&&(n=a,a=e,e=void 0),c.cancel=function(){l(),o=!0},c}function i(t,e,a){return void 0===a?n(t,e,!1):n(t,a,!1!==e)}a.d(e,"b",function(){return n}),a.d(e,"a",function(){return i})}});
|
1 |
+
!function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=16)}({0:function(t,e,n){"use strict";function o(t,e,n,o){var i,r=!1,a=0;function u(){i&&clearTimeout(i)}function c(){var c=this,l=Date.now()-a,f=arguments;function d(){a=Date.now(),n.apply(c,f)}r||(o&&!i&&d(),u(),void 0===o&&l>t?d():!0!==e&&(i=setTimeout(o?function(){i=void 0}:d,void 0===o?t-l:t)))}return"boolean"!=typeof e&&(o=n,n=e,e=void 0),c.cancel=function(){u(),r=!0},c}function i(t,e,n){return void 0===n?o(t,e,!1):o(t,n,!1!==e)}n.d(e,"b",function(){return o}),n.d(e,"a",function(){return i})},16:function(t,e,n){t.exports=n(17)},17:function(t,e,n){"use strict";n.r(e);var o=n(0),i=jQuery,r=window,a=r.ajaxurl,u=r.VPAdminVariables,c=r.Tooltip,l=i("body");
|
2 |
/*!
|
3 |
* Name : Visual Portfolio
|
4 |
+
* Version : @@plugin_version
|
5 |
* Author : nK https://nkdev.info
|
6 |
+
*/l.on("focus",'[name="vp_list_shortcode"], [name="vp_filter_shortcode"], [name="vp_sort_shortcode"]',function(){this.select()}),l.on("click",".vp-onclick-selection",function(){window.getSelection().selectAllChildren(this)});var f=i("#vp_format_video"),d=i("#post-format-video");function p(){f[d.is(":checked")?"show":"hide"]()}f.length&&d.length&&(p(),l.on("change","[name=post_format]",function(){p()}));var s=null;function v(t){s=i.ajax({url:a,method:"GET",dataType:"json",data:{action:"vp_find_oembed",q:t.val(),nonce:u.nonce},complete:function(e){var n=e.responseJSON;n&&void 0!==n.html&&t.next(".vp-oembed-preview").html(n.html)}})}v=Object(o.a)(300,v),l.on("change input",'.vp-input[name="video_url"]',function(){null!==s&&s.abort();var t=i(this);t.next(".vp-oembed-preview").html(""),v(t)}),void 0!==c&&i('[data-hint]:not([data-hint=""]):not([data-hint="false"])').each(function(){var t=i(this);new c(this,{placement:t.attr("data-hint-place")||"top",title:t.attr("data-hint"),container:i("body")[0],boundariesElement:"viewport"})})}});
|
assets/admin/js/vc-frontend.js
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* Additional js for frontend VC
|
3 |
+
*
|
4 |
+
* Name : Visual Portfolio
|
5 |
+
* Version : 1.12.1
|
6 |
+
* Author : nK https://nkdev.info
|
7 |
+
*/
|
8 |
+
const {
|
9 |
+
vc,
|
10 |
+
} = window;
|
11 |
+
|
12 |
+
jQuery( () => {
|
13 |
+
// shortcode frontend editor
|
14 |
+
if ( typeof vc !== 'undefined' ) {
|
15 |
+
// on shortcode add and update events
|
16 |
+
vc.events.on( 'shortcodes:add shortcodeView:updated', ( e ) => {
|
17 |
+
if ( e.settings.base !== 'visual_portfolio' ) {
|
18 |
+
return;
|
19 |
+
}
|
20 |
+
|
21 |
+
const wnd = vc.$frame[ 0 ].contentWindow;
|
22 |
+
const $ = wnd ? wnd.jQuery : false;
|
23 |
+
|
24 |
+
if ( $ ) {
|
25 |
+
const $vp = $( e.view.el ).children( '.vp-portfolio' );
|
26 |
+
if ( $vp.length && typeof $vp.vpf !== 'undefined' ) {
|
27 |
+
$vp.vpf();
|
28 |
+
}
|
29 |
+
}
|
30 |
+
} );
|
31 |
+
}
|
32 |
+
} );
|
assets/admin/js/vc-frontend.min.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
-
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},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=
|
2 |
/*!
|
3 |
* Additional js for frontend VC
|
4 |
*
|
5 |
* Name : Visual Portfolio
|
6 |
-
* Version :
|
7 |
* Author : nK https://nkdev.info
|
8 |
*/
|
9 |
var n=window.vc;jQuery(function(){void 0!==n&&n.events.on("shortcodes:add shortcodeView:updated",function(e){if("visual_portfolio"===e.settings.base){var t=n.$frame[0].contentWindow,r=!!t&&t.jQuery;if(r){var o=r(e.view.el).children(".vp-portfolio");o.length&&void 0!==o.vpf&&o.vpf()}}})})}});
|
1 |
+
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},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=18)}({18:function(e,t,n){e.exports=n(19)},19:function(e,t){
|
2 |
/*!
|
3 |
* Additional js for frontend VC
|
4 |
*
|
5 |
* Name : Visual Portfolio
|
6 |
+
* Version : @@plugin_version
|
7 |
* Author : nK https://nkdev.info
|
8 |
*/
|
9 |
var n=window.vc;jQuery(function(){void 0!==n&&n.events.on("shortcodes:add shortcodeView:updated",function(e){if("visual_portfolio"===e.settings.base){var t=n.$frame[0].contentWindow,r=!!t&&t.jQuery;if(r){var o=r(e.view.el).children(".vp-portfolio");o.length&&void 0!==o.vpf&&o.vpf()}}})})}});
|
assets/css/noscript.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/*!
|
2 |
* Name : Visual Portfolio Noscript
|
3 |
-
* Version :
|
4 |
* Author : nK https://nkdev.info
|
5 |
*/.vp-portfolio__preloader-wrap{display:none}.vp-portfolio__items-wrap,.vp-portfolio__filter-wrap,.vp-portfolio__sort-wrap,.vp-portfolio__pagination-wrap{visibility:visible;opacity:1}.vp-portfolio__item .vp-portfolio__item-img noscript+img{display:none}.vp-portfolio__thumbnails-wrap{display:none}
|
1 |
/*!
|
2 |
* Name : Visual Portfolio Noscript
|
3 |
+
* Version : @@plugin_version
|
4 |
* Author : nK https://nkdev.info
|
5 |
*/.vp-portfolio__preloader-wrap{display:none}.vp-portfolio__items-wrap,.vp-portfolio__filter-wrap,.vp-portfolio__sort-wrap,.vp-portfolio__pagination-wrap{visibility:visible;opacity:1}.vp-portfolio__item .vp-portfolio__item-img noscript+img{display:none}.vp-portfolio__thumbnails-wrap{display:none}
|
assets/css/style.min.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/*!
|
2 |
* Name : Visual Portfolio
|
3 |
-
* Version :
|
4 |
* Author : nK https://nkdev.info
|
5 |
-
*/.vp-portfolio{position:relative;min-height:114px}.vp-portfolio,.vp-portfolio *{box-sizing:border-box}.vp-portfolio__items{transition:.3s height ease-in-out, .3s transform ease-in-out;will-change:height, transform}.vp-portfolio::after,.vp-portfolio__items::after{content:"";display:block;clear:both}.vp-portfolio__items-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__filter-wrap,.vp-portfolio__sort-wrap,.vp-portfolio__pagination-wrap{visibility:hidden;opacity:0;transition:.3s opacity, .3s visibility;will-change:opacity, visibility}.vp-portfolio__item-wrap{position:relative;float:left;width:33.333%}.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__filter-sort-wrap{display:flex;flex-wrap:wrap}.vp-portfolio__filter-sort-wrap .vp-portfolio__sort-wrap{margin-left:auto}.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;transition:.3s opacity, .3s visibility;will-change:opacity, visibility}.vp-portfolio__preloader{position:absolute;left:50%;width:23px;height:24px;margin-top:45px;margin-left:-11px;-webkit-animation:vp-preloader 2s linear infinite;animation:vp-preloader 2s linear infinite}.vp-portfolio__preloader span{position:absolute;display:block;top:0;left:0;width:10px;height:7px;background-color:#8a8a8a}.vp-portfolio__preloader span:nth-of-type(1){height:14px}.vp-portfolio__preloader span:nth-of-type(2){left:12px}.vp-portfolio__preloader span:nth-of-type(3){top:16px}.vp-portfolio__preloader span:nth-of-type(4){top:9px;left:12px;height:14px}@-webkit-keyframes vp-preloader{0%,100%{opacity:.5}40%,60%{opacity:1}}@keyframes vp-preloader{0%,100%{opacity:.5}40%,60%{opacity:1}}[data-vp-layout="tiles"] .vp-portfolio__item-img img,[data-vp-layout="tiles"] .vp-portfolio__item-img{position:absolute;top:0;right:0;bottom:0;left:0}[data-vp-layout="tiles"] .vp-portfolio__item-img-wrap{position:relative;display:block;overflow:hidden}[data-vp-layout="tiles"] .vp-portfolio__item-img-wrap::before{content:"";display:block;margin-top:56%}[data-vp-layout="tiles"] .vp-portfolio__item-img img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;-o-object-position:50% 50%;object-position:50% 50%;font-family:"object-fit: cover; object-position: 50% 50%;"}[data-vp-layout="justified"] .vp-portfolio__items{transition:.2s height ease-in-out;will-change:height}[data-vp-layout="justified"] .vp-portfolio__item-wrap{float:left;top:0;left:0;transition:.2s transform ease-in-out, .2s width ease-in-out, .2s height ease-in-out;will-change:transform, width, height}[data-vp-layout="slider"] .vp-portfolio__item-wrap{float:none}[data-vp-layout="slider"] .vp-portfolio__item-img-wrap,[data-vp-layout="slider"] .vp-portfolio__thumbnail-img-wrap{position:relative;display:block;overflow:hidden}[data-vp-layout="slider"] .vp-portfolio__item-img-wrap::before,[data-vp-layout="slider"] .vp-portfolio__thumbnail-img-wrap::before{content:"";display:block}[data-vp-layout="slider"] .vp-portfolio__item-img img,[data-vp-layout="slider"] .vp-portfolio__thumbnail-img img{-o-object-fit:cover;object-fit:cover;-o-object-position:50% 50%;object-position:50% 50%;font-family:"object-fit: cover; object-position: 50% 50%;"}[data-vp-layout="slider"] .vp-portfolio__items-arrow{position:absolute;display:flex;align-items:center;justify-content:center;top:50%;width:40px;height:40px;margin-top:-20px;color:#6c7781;cursor:pointer;background-color:#fff;border-radius:50%;box-shadow:0 0 7px 2px rgba(0,0,0,0.04);opacity:.5;transition:.2s opacity ease-in-out, .2s box-shadow ease-in-out;will-change:opacity, box-shadow;z-index:1}[data-vp-layout="slider"] .vp-portfolio__items-arrow::after{content:"";position:absolute;display:block;top:-10px;right:-10px;bottom:-10px;left:-10px}[data-vp-layout="slider"] .vp-portfolio__items-arrow:hover{box-shadow:0 2px 15px 2px rgba(0,0,0,0.04);opacity:1}[data-vp-layout="slider"] .vp-portfolio__items-arrow-prev{left:10px}[data-vp-layout="slider"] .vp-portfolio__items-arrow-next{right:10px}[data-vp-layout="slider"][data-vp-slider-bullets="true"] .vp-portfolio__items-wrap{padding-bottom:25px}[data-vp-layout="slider"][data-vp-slider-bullets="true"] .vp-portfolio__items-wrap .vp-portfolio__items-arrow{margin-top:-32.5px}[data-vp-layout="slider"] .vp-portfolio__items-bullets{position:absolute;margin-bottom:-15px;text-align:center;z-index:1}[data-vp-layout="slider"] .vp-portfolio__items-bullets.swiper-pagination-bullets-dynamic{margin-bottom:-7px}[data-vp-layout="slider"] .vp-portfolio__items-bullets>span{position:relative;cursor:pointer;background-color:#6c7781;opacity:.2;transition:.15s opacity ease-in-out;will-change:opacity}[data-vp-layout="slider"] .vp-portfolio__items-bullets>span:hover{opacity:.5}[data-vp-layout="slider"] .vp-portfolio__items-bullets>span.swiper-pagination-bullet-active{opacity:1}[data-vp-layout="slider"] .vp-portfolio__items-bullets>span::after{content:"";position:absolute;display:block;top:-4px;right:-4px;bottom:-4px;left:-4px}[data-vp-layout="slider"] .vp-portfolio__thumbnails-wrap .vp-portfolio__thumbnail-wrap{cursor:pointer;opacity:.5;transition:.2s opacity}[data-vp-layout="slider"] .vp-portfolio__thumbnails-wrap .vp-portfolio__thumbnail-wrap:hover,[data-vp-layout="slider"] .vp-portfolio__thumbnails-wrap .vp-portfolio__thumbnail-wrap:focus,[data-vp-layout="slider"] .vp-portfolio__thumbnails-wrap .vp-portfolio__thumbnail-wrap.swiper-slide-thumb-active{opacity:1}.vp-portfolio.vp-portfolio__ready{min-height:initial}.vp-portfolio.vp-portfolio__ready .vp-portfolio__items-wrap,.vp-portfolio.vp-portfolio__ready .vp-portfolio__filter-wrap,.vp-portfolio.vp-portfolio__ready .vp-portfolio__sort-wrap,.vp-portfolio.vp-portfolio__ready .vp-portfolio__pagination-wrap{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::before{content:"";position:absolute;display:block;top:0;right:0;bottom:0;left:0;z-index:1}.vp-portfolio.vp-portfolio__loading .vp-portfolio__items-wrap,.vp-portfolio.vp-portfolio__loading .vp-portfolio__filter-wrap,.vp-portfolio.vp-portfolio__loading .vp-portfolio__sort-wrap,.vp-portfolio.vp-portfolio__loading .vp-portfolio__pagination-wrap{opacity:.5}.vp-portfolio__item-popup{display:none}.vp-pswp{z-index:1500}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:flex;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}img.visual-portfolio-lazyload{opacity:1;transition:.3s opacity;will-change:opacity}.vp-portfolio__item-img::before,.vp-portfolio__thumbnail-img::before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(-70deg, rgba(255,255,255,0) 42%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0) 58%);background-color:rgba(132,136,177,0.05);background-position:0% 50%;background-size:500% 100%;transition:.3s .3s opacity, .3s .3s visibility}.vp-portfolio__item-img-lazyloading::before,.vp-portfolio__thumbnail-img-lazyloading::before{visibility:visible;opacity:1;transition:none;-webkit-animation:vp-lazyload-placeholder 3s linear infinite;animation:vp-lazyload-placeholder 3s linear infinite}.vp-portfolio__item-img-lazyloading img.visual-portfolio-lazyload,.vp-portfolio__thumbnail-img-lazyloading img.visual-portfolio-lazyload{opacity:0}@-webkit-keyframes vp-lazyload-placeholder{0%,80%{background-position:100% 50%}100%{background-position:0% 50%}}@keyframes vp-lazyload-placeholder{0%,80%{background-position:100% 50%}100%{background-position:0% 50%}}
|
1 |
/*!
|
2 |
* Name : Visual Portfolio
|
3 |
+
* Version : @@plugin_version
|
4 |
* Author : nK https://nkdev.info
|
5 |
+
*/.vp-portfolio{position:relative;min-height:114px}.vp-portfolio,.vp-portfolio *{box-sizing:border-box}.vp-portfolio__items{-webkit-transition:.3s height ease-in-out, .3s transform ease-in-out;transition:.3s height ease-in-out, .3s transform ease-in-out;will-change:height, transform}.vp-portfolio::after,.vp-portfolio__items::after{content:"";display:block;clear:both}.vp-portfolio__items-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__filter-wrap,.vp-portfolio__sort-wrap,.vp-portfolio__pagination-wrap{visibility:hidden;opacity:0;-webkit-transition:.3s opacity, .3s visibility;transition:.3s opacity, .3s visibility;will-change:opacity, visibility}.vp-portfolio__item-wrap{position:relative;float:left;width:33.333%}.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__filter-sort-wrap{display:-webkit-box;display:flex;flex-wrap:wrap}.vp-portfolio__filter-sort-wrap .vp-portfolio__sort-wrap{margin-left:auto}.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:.3s opacity, .3s visibility;transition:.3s opacity, .3s visibility;will-change:opacity, visibility}.vp-portfolio__preloader{position:absolute;left:50%;width:23px;height:24px;margin-top:45px;margin-left:-11px;-webkit-animation:vp-preloader 2s linear infinite;animation:vp-preloader 2s linear infinite}.vp-portfolio__preloader span{position:absolute;display:block;top:0;left:0;width:10px;height:7px;background-color:#8a8a8a}.vp-portfolio__preloader span:nth-of-type(1){height:14px}.vp-portfolio__preloader span:nth-of-type(2){left:12px}.vp-portfolio__preloader span:nth-of-type(3){top:16px}.vp-portfolio__preloader span:nth-of-type(4){top:9px;left:12px;height:14px}@-webkit-keyframes vp-preloader{0%,100%{opacity:.5}40%,60%{opacity:1}}@keyframes vp-preloader{0%,100%{opacity:.5}40%,60%{opacity:1}}[data-vp-layout="tiles"] .vp-portfolio__item-img img,[data-vp-layout="tiles"] .vp-portfolio__item-img{position:absolute;top:0;right:0;bottom:0;left:0}[data-vp-layout="tiles"] .vp-portfolio__item-img-wrap{position:relative;display:block;overflow:hidden}[data-vp-layout="tiles"] .vp-portfolio__item-img-wrap::before{content:"";display:block;margin-top:56%}[data-vp-layout="tiles"] .vp-portfolio__item-img img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;-o-object-position:50% 50%;object-position:50% 50%;font-family:"object-fit: cover; object-position: 50% 50%;"}[data-vp-layout="justified"] .vp-portfolio__items{-webkit-transition:.2s height ease-in-out;transition:.2s height ease-in-out;will-change:height}[data-vp-layout="justified"] .vp-portfolio__item-wrap{float:left;top:0;left:0;-webkit-transition:.2s transform ease-in-out, .2s width ease-in-out, .2s height ease-in-out;transition:.2s transform ease-in-out, .2s width ease-in-out, .2s height ease-in-out;will-change:transform, width, height}[data-vp-layout="slider"] .vp-portfolio__item-wrap{float:none}[data-vp-layout="slider"] .vp-portfolio__item-img-wrap,[data-vp-layout="slider"] .vp-portfolio__thumbnail-img-wrap{position:relative;display:block;overflow:hidden}[data-vp-layout="slider"] .vp-portfolio__item-img-wrap::before,[data-vp-layout="slider"] .vp-portfolio__thumbnail-img-wrap::before{content:"";display:block}[data-vp-layout="slider"] .vp-portfolio__item-img img,[data-vp-layout="slider"] .vp-portfolio__thumbnail-img img{-o-object-fit:cover;object-fit:cover;-o-object-position:50% 50%;object-position:50% 50%;font-family:"object-fit: cover; object-position: 50% 50%;"}[data-vp-layout="slider"] .vp-portfolio__items-arrow{position:absolute;display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;top:50%;width:40px;height:40px;margin-top:-20px;color:#6c7781;cursor:pointer;background-color:#fff;border-radius:50%;box-shadow:0 0 7px 2px rgba(0,0,0,0.04);opacity:.5;-webkit-transition:.2s opacity ease-in-out, .2s box-shadow ease-in-out;transition:.2s opacity ease-in-out, .2s box-shadow ease-in-out;will-change:opacity, box-shadow;z-index:1}[data-vp-layout="slider"] .vp-portfolio__items-arrow::after{content:"";position:absolute;display:block;top:-10px;right:-10px;bottom:-10px;left:-10px}[data-vp-layout="slider"] .vp-portfolio__items-arrow:hover{box-shadow:0 2px 15px 2px rgba(0,0,0,0.04);opacity:1}[data-vp-layout="slider"] .vp-portfolio__items-arrow-prev{left:10px}[data-vp-layout="slider"] .vp-portfolio__items-arrow-next{right:10px}[data-vp-layout="slider"][data-vp-slider-bullets="true"] .vp-portfolio__items-wrap{padding-bottom:25px}[data-vp-layout="slider"][data-vp-slider-bullets="true"] .vp-portfolio__items-wrap .vp-portfolio__items-arrow{margin-top:-32.5px}[data-vp-layout="slider"] .vp-portfolio__items-bullets{position:absolute;margin-bottom:-15px;text-align:center;z-index:1}[data-vp-layout="slider"] .vp-portfolio__items-bullets.swiper-pagination-bullets-dynamic{margin-bottom:-7px}[data-vp-layout="slider"] .vp-portfolio__items-bullets>span{position:relative;cursor:pointer;background-color:#6c7781;opacity:.2;-webkit-transition:.15s opacity ease-in-out;transition:.15s opacity ease-in-out;will-change:opacity}[data-vp-layout="slider"] .vp-portfolio__items-bullets>span:hover{opacity:.5}[data-vp-layout="slider"] .vp-portfolio__items-bullets>span.swiper-pagination-bullet-active{opacity:1}[data-vp-layout="slider"] .vp-portfolio__items-bullets>span::after{content:"";position:absolute;display:block;top:-4px;right:-4px;bottom:-4px;left:-4px}[data-vp-layout="slider"] .vp-portfolio__thumbnails-wrap .vp-portfolio__thumbnail-wrap{cursor:pointer;opacity:.5;-webkit-transition:.2s opacity;transition:.2s opacity}[data-vp-layout="slider"] .vp-portfolio__thumbnails-wrap .vp-portfolio__thumbnail-wrap:hover,[data-vp-layout="slider"] .vp-portfolio__thumbnails-wrap .vp-portfolio__thumbnail-wrap:focus,[data-vp-layout="slider"] .vp-portfolio__thumbnails-wrap .vp-portfolio__thumbnail-wrap.swiper-slide-thumb-active{opacity:1}.vp-portfolio.vp-portfolio__ready{min-height:initial}.vp-portfolio.vp-portfolio__ready .vp-portfolio__items-wrap,.vp-portfolio.vp-portfolio__ready .vp-portfolio__filter-wrap,.vp-portfolio.vp-portfolio__ready .vp-portfolio__sort-wrap,.vp-portfolio.vp-portfolio__ready .vp-portfolio__pagination-wrap{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::before{content:"";position:absolute;display:block;top:0;right:0;bottom:0;left:0;z-index:1}.vp-portfolio.vp-portfolio__loading .vp-portfolio__items-wrap,.vp-portfolio.vp-portfolio__loading .vp-portfolio__filter-wrap,.vp-portfolio.vp-portfolio__loading .vp-portfolio__sort-wrap,.vp-portfolio.vp-portfolio__loading .vp-portfolio__pagination-wrap{opacity:.5}.vp-portfolio__item-popup{display:none}.vp-pswp{z-index:1500}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:flex;-webkit-box-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}img.visual-portfolio-lazyload{opacity:1;-webkit-transition:.3s opacity;transition:.3s opacity;will-change:opacity}.vp-portfolio__item-img::before,.vp-portfolio__thumbnail-img::before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(-70deg, rgba(255,255,255,0) 42%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0) 58%);background-color:rgba(132,136,177,0.05);background-position:0% 50%;background-size:500% 100%;-webkit-transition:.3s .3s opacity, .3s .3s visibility;transition:.3s .3s opacity, .3s .3s visibility}.vp-portfolio__item-img-lazyloading::before,.vp-portfolio__thumbnail-img-lazyloading::before{visibility:visible;opacity:1;-webkit-transition:none;transition:none;-webkit-animation:vp-lazyload-placeholder 3s linear infinite;animation:vp-lazyload-placeholder 3s linear infinite}.vp-portfolio__item-img-lazyloading img.visual-portfolio-lazyload,.vp-portfolio__thumbnail-img-lazyloading img.visual-portfolio-lazyload{opacity:0}@-webkit-keyframes vp-lazyload-placeholder{0%,80%{background-position:100% 50%}100%{background-position:0% 50%}}@keyframes vp-lazyload-placeholder{0%,80%{background-position:100% 50%}100%{background-position:0% 50%}}
|
assets/js/lazysizes-object-fit-cover.js
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
( function( window, factory ) {
|
2 |
+
const globalInstall = function() {
|
3 |
+
factory( window.lazySizes );
|
4 |
+
window.removeEventListener( 'lazyunveilread', globalInstall, true );
|
5 |
+
};
|
6 |
+
factory = factory.bind( null, window, window.document );
|
7 |
+
|
8 |
+
if ( window.lazySizes ) {
|
9 |
+
globalInstall();
|
10 |
+
} else {
|
11 |
+
window.addEventListener( 'lazyunveilread', globalInstall, true );
|
12 |
+
}
|
13 |
+
}( window, function( window, document, lazySizes ) {
|
14 |
+
'use strict';
|
15 |
+
|
16 |
+
if ( ! window.addEventListener ) {
|
17 |
+
return;
|
18 |
+
}
|
19 |
+
|
20 |
+
const getCSS = function( elem ) {
|
21 |
+
return ( window.getComputedStyle( elem, null ) || {} );
|
22 |
+
};
|
23 |
+
|
24 |
+
const objectFitCover = {
|
25 |
+
calculateSize: function( element, width ) {
|
26 |
+
const CSS = getCSS( element );
|
27 |
+
|
28 |
+
if ( CSS && CSS.objectFit && CSS.objectFit === 'cover' ) {
|
29 |
+
const blockHeight = parseInt( element.getAttribute( 'height' ) );
|
30 |
+
const blockWidth = parseInt( element.getAttribute( 'width' ) );
|
31 |
+
|
32 |
+
if ( blockHeight ) {
|
33 |
+
if ( blockWidth / blockHeight > element.clientWidth / element.clientHeight ) {
|
34 |
+
width = parseInt( element.clientHeight * blockWidth / blockHeight, 10 );
|
35 |
+
}
|
36 |
+
}
|
37 |
+
}
|
38 |
+
|
39 |
+
return width;
|
40 |
+
},
|
41 |
+
};
|
42 |
+
|
43 |
+
lazySizes.objectFitCover = objectFitCover;
|
44 |
+
|
45 |
+
document.addEventListener( 'lazybeforesizes', function( e ) {
|
46 |
+
if ( e.defaultPrevented || e.detail.instance !== lazySizes ) {
|
47 |
+
return;
|
48 |
+
}
|
49 |
+
|
50 |
+
const element = e.target;
|
51 |
+
e.detail.width = objectFitCover.calculateSize( element, e.detail.width );
|
52 |
+
} );
|
53 |
+
} ) );
|
assets/js/lazysizes-object-fit-cover.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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=
|
1 |
+
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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=2)}([,,function(e,t,n){e.exports=n(3)},function(e,t){!function(e,t){var n=function n(){t(e.lazySizes),e.removeEventListener("lazyunveilread",n,!0)};t=t.bind(null,e,e.document),e.lazySizes?n():e.addEventListener("lazyunveilread",n,!0)}(window,function(e,t,n){"use strict";if(e.addEventListener){var r={calculateSize:function(t,n){var r,i=(r=t,e.getComputedStyle(r,null)||{});if(i&&i.objectFit&&"cover"===i.objectFit){var o=parseInt(t.getAttribute("height")),u=parseInt(t.getAttribute("width"));o&&u/o>t.clientWidth/t.clientHeight&&(n=parseInt(t.clientHeight*u/o,10))}return n}};n.objectFitCover=r,t.addEventListener("lazybeforesizes",function(e){if(!e.defaultPrevented&&e.detail.instance===n){var t=e.target;e.detail.width=r.calculateSize(t,e.detail.width)}})}})}]);
|
assets/js/script-preview.js
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* Name : Visual Portfolio
|
3 |
+
* Version : 1.12.1
|
4 |
+
* Author : nK https://nkdev.info
|
5 |
+
*/
|
6 |
+
( function( $ ) {
|
7 |
+
const $portfolio = $( '#vp_preview > .vp-portfolio' );
|
8 |
+
$portfolio.on( 'click', '.vp-portfolio__item, .vp-portfolio__item a', ( e ) => {
|
9 |
+
e.preventDefault();
|
10 |
+
e.stopPropagation();
|
11 |
+
} );
|
12 |
+
window.iFrameResizer = {
|
13 |
+
heightCalculationMethod() {
|
14 |
+
return $portfolio.outerHeight( true );
|
15 |
+
},
|
16 |
+
};
|
17 |
+
}( jQuery ) );
|
assets/js/script-preview.min.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
-
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__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(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=
|
2 |
/*!
|
3 |
* Name : Visual Portfolio
|
4 |
-
* Version :
|
5 |
* Author : nK https://nkdev.info
|
6 |
*/
|
7 |
var r;(r=jQuery("#vp_preview > .vp-portfolio")).on("click",".vp-portfolio__item, .vp-portfolio__item a",function(e){e.preventDefault(),e.stopPropagation()}),window.iFrameResizer={heightCalculationMethod:function(){return r.outerHeight(!0)}}}});
|
1 |
+
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__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(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=4)}({4:function(e,t,r){e.exports=r(5)},5:function(e,t){
|
2 |
/*!
|
3 |
* Name : Visual Portfolio
|
4 |
+
* Version : @@plugin_version
|
5 |
* Author : nK https://nkdev.info
|
6 |
*/
|
7 |
var r;(r=jQuery("#vp_preview > .vp-portfolio")).on("click",".vp-portfolio__item, .vp-portfolio__item a",function(e){e.preventDefault(),e.stopPropagation()}),window.iFrameResizer={heightCalculationMethod:function(){return r.outerHeight(!0)}}}});
|
assets/js/script.js
ADDED
@@ -0,0 +1,1980 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* Name : Visual Portfolio
|
3 |
+
* Version : 1.12.1
|
4 |
+
* Author : nK https://nkdev.info
|
5 |
+
*/
|
6 |
+
|
7 |
+
import { throttle } from 'throttle-debounce';
|
8 |
+
import rafl from 'rafl';
|
9 |
+
|
10 |
+
/**
|
11 |
+
* Global Variables
|
12 |
+
*/
|
13 |
+
const $ = jQuery;
|
14 |
+
const {
|
15 |
+
VPData,
|
16 |
+
objectFitImages,
|
17 |
+
PhotoSwipe,
|
18 |
+
PhotoSwipeUI_Default, // eslint-disable-line camelcase
|
19 |
+
} = window;
|
20 |
+
const {
|
21 |
+
__,
|
22 |
+
settingsPopupGallery,
|
23 |
+
} = VPData;
|
24 |
+
|
25 |
+
/**
|
26 |
+
* Get window size
|
27 |
+
*/
|
28 |
+
const $wnd = $( window );
|
29 |
+
let wndW = 0;
|
30 |
+
let wndH = 0;
|
31 |
+
function getWndSize() {
|
32 |
+
wndW = $wnd.width();
|
33 |
+
wndH = $wnd.height();
|
34 |
+
}
|
35 |
+
getWndSize();
|
36 |
+
$wnd.on( 'resize load orientationchange', getWndSize );
|
37 |
+
|
38 |
+
/**
|
39 |
+
* Screen sizes for responsive feature
|
40 |
+
*/
|
41 |
+
const screenSizes = [ 320, 576, 768, 992, 1200 ];
|
42 |
+
|
43 |
+
// enable object-fit
|
44 |
+
if ( typeof objectFitImages !== 'undefined' ) {
|
45 |
+
// ofi and lazysizes conflicted, so we need to run lazysizes
|
46 |
+
// first and then run ofi polyfill.
|
47 |
+
objectFitImages( '.vp-portfolio img:not(.visual-portfolio-lazyload)' );
|
48 |
+
|
49 |
+
$( document ).on( 'lazybeforeunveil', function( e ) {
|
50 |
+
const $img = $( e.target );
|
51 |
+
|
52 |
+
if ( $img.hasClass( 'visual-portfolio-lazyload' ) ) {
|
53 |
+
$img.one( 'load', function() {
|
54 |
+
objectFitImages( $img[ 0 ] );
|
55 |
+
} );
|
56 |
+
}
|
57 |
+
} );
|
58 |
+
}
|
59 |
+
|
60 |
+
// fix masonry items position for Tiles layout.
|
61 |
+
// https://github.com/nk-o/visual-portfolio/issues/111
|
62 |
+
if ( typeof window.Isotope !== 'undefined' && typeof window.Isotope.LayoutMode !== 'undefined' ) {
|
63 |
+
const MasonryMode = window.Isotope.LayoutMode.modes.masonry;
|
64 |
+
|
65 |
+
if ( MasonryMode ) {
|
66 |
+
const defaultMeasureColumns = MasonryMode.prototype.measureColumns;
|
67 |
+
MasonryMode.prototype.measureColumns = function() {
|
68 |
+
// if columnWidth is 0, default to columns count size.
|
69 |
+
if ( ! this.columnWidth ) {
|
70 |
+
const $vp = $( this.element ).closest( '.vp-portfolio[data-vp-layout="tiles"]' );
|
71 |
+
|
72 |
+
// change column size for Tiles type only.
|
73 |
+
if ( $vp.length ) {
|
74 |
+
const layoutData = $vp.attr( 'data-vp-tiles-type' );
|
75 |
+
let columnsCount = layoutData.split( '|' );
|
76 |
+
columnsCount = parseInt( columnsCount[ 0 ] );
|
77 |
+
|
78 |
+
if ( columnsCount ) {
|
79 |
+
this.columnWidth = this.containerWidth / columnsCount;
|
80 |
+
}
|
81 |
+
}
|
82 |
+
}
|
83 |
+
|
84 |
+
defaultMeasureColumns.call( this );
|
85 |
+
};
|
86 |
+
}
|
87 |
+
}
|
88 |
+
|
89 |
+
/**
|
90 |
+
* Main VP class
|
91 |
+
*/
|
92 |
+
class VP {
|
93 |
+
constructor( $item, userOptions ) {
|
94 |
+
const self = this;
|
95 |
+
|
96 |
+
self.$item = $item;
|
97 |
+
|
98 |
+
// get id from class
|
99 |
+
const classes = $item[ 0 ].className.split( /\s+/ );
|
100 |
+
for ( let k = 0; k < classes.length; k++ ) {
|
101 |
+
if ( classes[ k ] && /^vp-uid-/.test( classes[ k ] ) ) {
|
102 |
+
self.uid = classes[ k ].replace( /^vp-uid-/, '' );
|
103 |
+
}
|
104 |
+
if ( classes[ k ] && /^vp-id-/.test( classes[ k ] ) ) {
|
105 |
+
self.id = classes[ k ].replace( /^vp-id-/, '' );
|
106 |
+
}
|
107 |
+
}
|
108 |
+
if ( ! self.uid ) {
|
109 |
+
// eslint-disable-next-line no-console
|
110 |
+
console.error( __.couldnt_retrieve_vp );
|
111 |
+
return;
|
112 |
+
}
|
113 |
+
|
114 |
+
self.$items_wrap = $item.find( '.vp-portfolio__items' );
|
115 |
+
self.$slider_thumbnails_wrap = $item.find( '.vp-portfolio__thumbnails' );
|
116 |
+
self.$pagination = $item.find( '.vp-portfolio__pagination-wrap' );
|
117 |
+
self.$filter = $item.find( '.vp-portfolio__filter-wrap' );
|
118 |
+
self.$sort = $item.find( '.vp-portfolio__sort-wrap' );
|
119 |
+
|
120 |
+
// find single filter block.
|
121 |
+
if ( self.id ) {
|
122 |
+
self.$filter = self.$filter.add( `.vp-single-filter.vp-id-${ self.id } .vp-portfolio__filter-wrap` );
|
123 |
+
}
|
124 |
+
|
125 |
+
// find single sort block.
|
126 |
+
if ( self.id ) {
|
127 |
+
self.$sort = self.$sort.add( `.vp-single-sort.vp-id-${ self.id } .vp-portfolio__sort-wrap` );
|
128 |
+
}
|
129 |
+
|
130 |
+
// user options
|
131 |
+
self.userOptions = userOptions;
|
132 |
+
|
133 |
+
self.firstRun = true;
|
134 |
+
|
135 |
+
self.init();
|
136 |
+
}
|
137 |
+
|
138 |
+
// emit event
|
139 |
+
// Example:
|
140 |
+
// $(document).on('init.vpf', function (event, infiniteObject) {
|
141 |
+
// console.log(infiniteObject);
|
142 |
+
// });
|
143 |
+
emitEvent( event, data ) {
|
144 |
+
data = data ? [ this ].concat( data ) : [ this ];
|
145 |
+
this.$item.trigger( `${ event }.vpf`, data );
|
146 |
+
this.$item.trigger( `${ event }.vpf-uid-${ this.uid }`, data );
|
147 |
+
}
|
148 |
+
|
149 |
+
/**
|
150 |
+
* Init
|
151 |
+
*/
|
152 |
+
init() {
|
153 |
+
const self = this;
|
154 |
+
|
155 |
+
// destroy if already inited
|
156 |
+
if ( ! self.firstRun ) {
|
157 |
+
self.destroy();
|
158 |
+
}
|
159 |
+
|
160 |
+
self.destroyed = false;
|
161 |
+
|
162 |
+
self.removeNoscriptTags( self.$items_wrap );
|
163 |
+
|
164 |
+
// init options
|
165 |
+
self.initOptions();
|
166 |
+
|
167 |
+
// init events
|
168 |
+
self.initEvents();
|
169 |
+
|
170 |
+
// prepare lazyload images
|
171 |
+
self.prepareLazyLoad();
|
172 |
+
|
173 |
+
// init layout
|
174 |
+
self.initLayout();
|
175 |
+
|
176 |
+
// init custom colors
|
177 |
+
self.initCustomColors();
|
178 |
+
|
179 |
+
// init photoswipe
|
180 |
+
self.initPhotoswipe();
|
181 |
+
|
182 |
+
self.emitEvent( 'init' );
|
183 |
+
|
184 |
+
self.$item.addClass( 'vp-portfolio__ready' );
|
185 |
+
|
186 |
+
if ( self.id ) {
|
187 |
+
$( `.vp-single-filter.vp-id-${ self.id }` ).addClass( 'vp-single-filter__ready' );
|
188 |
+
$( `.vp-single-sort.vp-id-${ self.id }` ).addClass( 'vp-single-sort__ready' );
|
189 |
+
}
|
190 |
+
|
191 |
+
// isotope
|
192 |
+
self.initIsotope();
|
193 |
+
|
194 |
+
// justified gallery
|
195 |
+
self.initFjGallery();
|
196 |
+
|
197 |
+
// slider
|
198 |
+
self.initSwiper();
|
199 |
+
|
200 |
+
// resized
|
201 |
+
self.resized();
|
202 |
+
|
203 |
+
// images loaded
|
204 |
+
self.imagesLoaded();
|
205 |
+
|
206 |
+
self.firstRun = false;
|
207 |
+
}
|
208 |
+
|
209 |
+
/**
|
210 |
+
* Called after resized container.
|
211 |
+
*/
|
212 |
+
resized() {
|
213 |
+
if ( typeof window.Event === 'function' ) {
|
214 |
+
// modern browsers
|
215 |
+
window.dispatchEvent( new window.Event( 'resize' ) );
|
216 |
+
} else {
|
217 |
+
// for IE and other old browsers
|
218 |
+
// causes deprecation warning on modern browsers
|
219 |
+
const evt = window.document.createEvent( 'UIEvents' );
|
220 |
+
evt.initUIEvent( 'resize', true, false, window, 0 );
|
221 |
+
window.dispatchEvent( evt );
|
222 |
+
}
|
223 |
+
|
224 |
+
this.emitEvent( 'resized' );
|
225 |
+
}
|
226 |
+
|
227 |
+
/**
|
228 |
+
* Images loaded.
|
229 |
+
*/
|
230 |
+
imagesLoaded() {
|
231 |
+
const self = this;
|
232 |
+
|
233 |
+
if ( ! self.$items_wrap.imagesLoaded ) {
|
234 |
+
return;
|
235 |
+
}
|
236 |
+
|
237 |
+
// sometimes on iOs isotope images failed to calculate positions, so we need this imagesLoaded event.
|
238 |
+
// related issue: https://github.com/nk-o/visual-portfolio/issues/55
|
239 |
+
self.$items_wrap.imagesLoaded( () => {
|
240 |
+
// isotope
|
241 |
+
self.initIsotope( 'layout' );
|
242 |
+
|
243 |
+
// justified gallery
|
244 |
+
self.initFjGallery();
|
245 |
+
|
246 |
+
this.emitEvent( 'imagesLoaded' );
|
247 |
+
} );
|
248 |
+
}
|
249 |
+
|
250 |
+
/**
|
251 |
+
* Destroy
|
252 |
+
*/
|
253 |
+
destroy() {
|
254 |
+
const self = this;
|
255 |
+
|
256 |
+
// remove loaded class
|
257 |
+
self.$item.removeClass( 'vp-portfolio__ready' );
|
258 |
+
|
259 |
+
if ( self.id ) {
|
260 |
+
$( `.vp-single-filter.vp-id-${ self.id }` ).removeClass( 'vp-single-filter__ready' );
|
261 |
+
$( `.vp-single-sort.vp-id-${ self.id }` ).removeClass( 'vp-single-sort__ready' );
|
262 |
+
}
|
263 |
+
|
264 |
+
// destroy events
|
265 |
+
self.destroyEvents();
|
266 |
+
|
267 |
+
// remove all generated styles
|
268 |
+
self.removeStyle();
|
269 |
+
self.renderStyle();
|
270 |
+
|
271 |
+
// destroy photoswipe
|
272 |
+
self.destroyPhotoswipe();
|
273 |
+
|
274 |
+
// destroy isotope
|
275 |
+
self.destroyIsotope();
|
276 |
+
|
277 |
+
// destroy justified gallery
|
278 |
+
self.destroyFjGallery();
|
279 |
+
|
280 |
+
// destroy swiper
|
281 |
+
self.destroySwiper();
|
282 |
+
|
283 |
+
self.emitEvent( 'destroy' );
|
284 |
+
|
285 |
+
self.destroyed = true;
|
286 |
+
}
|
287 |
+
|
288 |
+
/**
|
289 |
+
* Add style to the current portfolio list
|
290 |
+
*
|
291 |
+
* @param {String} selector css selector
|
292 |
+
* @param {String} styles object with styles
|
293 |
+
* @param {String} media string with media query
|
294 |
+
*/
|
295 |
+
addStyle( selector, styles, media ) {
|
296 |
+
media = media || '';
|
297 |
+
|
298 |
+
const self = this;
|
299 |
+
const uid = self.uid;
|
300 |
+
|
301 |
+
if ( ! self.stylesList ) {
|
302 |
+
self.stylesList = {};
|
303 |
+
}
|
304 |
+
|
305 |
+
if ( typeof self.stylesList[ uid ] === 'undefined' ) {
|
306 |
+
self.stylesList[ uid ] = {};
|
307 |
+
}
|
308 |
+
if ( typeof self.stylesList[ uid ][ media ] === 'undefined' ) {
|
309 |
+
self.stylesList[ uid ][ media ] = {};
|
310 |
+
}
|
311 |
+
if ( typeof self.stylesList[ uid ][ media ][ selector ] === 'undefined' ) {
|
312 |
+
self.stylesList[ uid ][ media ][ selector ] = {};
|
313 |
+
}
|
314 |
+
|
315 |
+
self.stylesList[ uid ][ media ][ selector ] = $.extend( self.stylesList[ uid ][ media ][ selector ], styles );
|
316 |
+
|
317 |
+
self.emitEvent( 'addStyle', [ selector, styles, media, self.stylesList ] );
|
318 |
+
}
|
319 |
+
|
320 |
+
/**
|
321 |
+
* Remove style from the current portfolio list
|
322 |
+
*
|
323 |
+
* @param {String} selector css selector (if not set - removed all styles)
|
324 |
+
* @param {String} styles object with styles
|
325 |
+
* @param {String} media string with media query
|
326 |
+
*/
|
327 |
+
removeStyle( selector, styles, media ) {
|
328 |
+
media = media || '';
|
329 |
+
|
330 |
+
const self = this;
|
331 |
+
const uid = self.uid;
|
332 |
+
|
333 |
+
if ( ! self.stylesList ) {
|
334 |
+
self.stylesList = {};
|
335 |
+
}
|
336 |
+
|
337 |
+
if ( typeof self.stylesList[ uid ] !== 'undefined' && ! selector ) {
|
338 |
+
self.stylesList[ uid ] = {};
|
339 |
+
}
|
340 |
+
|
341 |
+
if ( typeof self.stylesList[ uid ] !== 'undefined' && typeof self.stylesList[ uid ][ media ] !== 'undefined' && typeof self.stylesList[ uid ][ media ][ selector ] !== 'undefined' && selector ) {
|
342 |
+
delete self.stylesList[ uid ][ media ][ selector ];
|
343 |
+
}
|
344 |
+
|
345 |
+
self.emitEvent( 'removeStyle', [ selector, styles, self.stylesList ] );
|
346 |
+
}
|
347 |
+
|
348 |
+
/**
|
349 |
+
* Render style for the current portfolio list
|
350 |
+
*/
|
351 |
+
renderStyle() {
|
352 |
+
const self = this;
|
353 |
+
|
354 |
+
// timeout for the case, when styles added one by one
|
355 |
+
const uid = self.uid;
|
356 |
+
let stylesString = '';
|
357 |
+
|
358 |
+
if ( ! self.stylesList ) {
|
359 |
+
self.stylesList = {};
|
360 |
+
}
|
361 |
+
|
362 |
+
// create string with styles
|
363 |
+
if ( typeof self.stylesList[ uid ] !== 'undefined' ) {
|
364 |
+
Object.keys( self.stylesList[ uid ] ).forEach( ( m ) => {
|
365 |
+
// media
|
366 |
+
if ( m ) {
|
367 |
+
stylesString += `@media ${ m } {`;
|
368 |
+
}
|
369 |
+
Object.keys( self.stylesList[ uid ][ m ] ).forEach( ( s ) => {
|
370 |
+
// selector
|
371 |
+
stylesString += `.vp-uid-${ uid } ${ s } {`;
|
372 |
+
Object.keys( self.stylesList[ uid ][ m ][ s ] ).forEach( ( p ) => {
|
373 |
+
// property and value
|
374 |
+
stylesString += `${ p }:${ self.stylesList[ uid ][ m ][ s ][ p ] };`;
|
375 |
+
} );
|
376 |
+
stylesString += '}';
|
377 |
+
} );
|
378 |
+
// media
|
379 |
+
if ( m ) {
|
380 |
+
stylesString += '}';
|
381 |
+
}
|
382 |
+
} );
|
383 |
+
}
|
384 |
+
|
385 |
+
// add in style tag
|
386 |
+
let $style = $( `#vp-style-${ uid }` );
|
387 |
+
if ( ! $style.length ) {
|
388 |
+
$style = $( '<style>' ).attr( 'id', `vp-style-${ uid }` ).appendTo( 'head' );
|
389 |
+
}
|
390 |
+
$style.html( stylesString );
|
391 |
+
|
392 |
+
self.emitEvent( 'renderStyle', [ stylesString, self.stylesList, $style ] );
|
393 |
+
}
|
394 |
+
|
395 |
+
/**
|
396 |
+
* First char to lower case
|
397 |
+
*
|
398 |
+
* @param {String} str string to transform
|
399 |
+
* @returns {string} result string
|
400 |
+
*/
|
401 |
+
firstToLowerCase( str ) {
|
402 |
+
return str.substr( 0, 1 ).toLowerCase() + str.substr( 1 );
|
403 |
+
}
|
404 |
+
|
405 |
+
/**
|
406 |
+
* Init options
|
407 |
+
*
|
408 |
+
* @param {Object} userOptions user options
|
409 |
+
*/
|
410 |
+
initOptions( userOptions ) {
|
411 |
+
const self = this;
|
412 |
+
|
413 |
+
// default options
|
414 |
+
self.defaults = {
|
415 |
+
layout: 'tile',
|
416 |
+
itemsGap: 0,
|
417 |
+
tilesType: '3|1,1|',
|
418 |
+
masonryColumns: 3,
|
419 |
+
gridColumns: 3,
|
420 |
+
justifiedRowHeight: 250,
|
421 |
+
justifiedRowHeightTolerance: 0.25,
|
422 |
+
pagination: 'load-more',
|
423 |
+
};
|
424 |
+
|
425 |
+
// new user options
|
426 |
+
if ( userOptions ) {
|
427 |
+
self.userOptions = userOptions;
|
428 |
+
}
|
429 |
+
|
430 |
+
// prepare data options
|
431 |
+
const dataOptions = self.$item[ 0 ].dataset;
|
432 |
+
const pureDataOptions = {};
|
433 |
+
Object.keys( dataOptions ).forEach( ( k ) => {
|
434 |
+
if ( k && k.substring( 0, 2 ) === 'vp' ) {
|
435 |
+
pureDataOptions[ self.firstToLowerCase( k.substring( 2 ) ) ] = dataOptions[ k ];
|
436 |
+
}
|
437 |
+
} );
|
438 |
+
|
439 |
+
self.options = $.extend( {}, self.defaults, pureDataOptions, self.userOptions );
|
440 |
+
|
441 |
+
self.emitEvent( 'initOptions' );
|
442 |
+
}
|
443 |
+
|
444 |
+
/**
|
445 |
+
* Check if lines cross
|
446 |
+
*
|
447 |
+
* @param {object} a - first point of the first line
|
448 |
+
* @param {object} b - second point of the first line
|
449 |
+
* @param {object} c - first point of the second line
|
450 |
+
* @param {object} d - second point of the second line
|
451 |
+
*
|
452 |
+
* @return {boolean} cross lines
|
453 |
+
*/
|
454 |
+
isCrossLine( a, b, c, d ) {
|
455 |
+
// Working code #1:
|
456 |
+
//
|
457 |
+
// var common = (b.x - a.x)*(d.y - c.y) - (b.y - a.y)*(d.x - c.x);
|
458 |
+
// if (common === 0) {
|
459 |
+
// return false;
|
460 |
+
// }
|
461 |
+
//
|
462 |
+
// var rH = (a.y - c.y)*(d.x - c.x) - (a.x - c.x)*(d.y - c.y);
|
463 |
+
// var sH = (a.y - c.y)*(b.x - a.x) - (a.x - c.x)*(b.y - a.y);
|
464 |
+
//
|
465 |
+
// var r = rH / common;
|
466 |
+
// var s = sH / common;
|
467 |
+
//
|
468 |
+
// return r >= 0 && r <= 1 && s >= 0 && s <= 1;
|
469 |
+
|
470 |
+
// Working code #2:
|
471 |
+
const v1 = ( ( d.x - c.x ) * ( a.y - c.y ) ) - ( ( d.y - c.y ) * ( a.x - c.x ) );
|
472 |
+
const v2 = ( ( d.x - c.x ) * ( b.y - c.y ) ) - ( ( d.y - c.y ) * ( b.x - c.x ) );
|
473 |
+
const v3 = ( ( b.x - a.x ) * ( c.y - a.y ) ) - ( ( b.y - a.y ) * ( c.x - a.x ) );
|
474 |
+
const v4 = ( ( b.x - a.x ) * ( d.y - a.y ) ) - ( ( b.y - a.y ) * ( d.x - a.x ) );
|
475 |
+
return ( ( v1 * v2 <= 0 ) && ( v3 * v4 <= 0 ) );
|
476 |
+
}
|
477 |
+
|
478 |
+
/**
|
479 |
+
* Init events
|
480 |
+
*/
|
481 |
+
initEvents() {
|
482 |
+
const self = this;
|
483 |
+
const evp = `.vpf-uid-${ self.uid }`;
|
484 |
+
|
485 |
+
// Stretch
|
486 |
+
function stretch() {
|
487 |
+
const rect = self.$item[ 0 ].getBoundingClientRect();
|
488 |
+
const left = rect.left;
|
489 |
+
const right = wndW - rect.right;
|
490 |
+
|
491 |
+
const ml = parseFloat( self.$item.css( 'margin-left' ) || 0 );
|
492 |
+
const mr = parseFloat( self.$item.css( 'margin-right' ) || 0 );
|
493 |
+
self.$item.css( {
|
494 |
+
'margin-left': ml - left,
|
495 |
+
'margin-right': mr - right,
|
496 |
+
} );
|
497 |
+
}
|
498 |
+
if ( self.$item.hasClass( 'vp-portfolio__stretch' ) ) {
|
499 |
+
$wnd.on( `load${ evp } resize${ evp } orientationchange${ evp }`, () => {
|
500 |
+
stretch();
|
501 |
+
} );
|
502 |
+
stretch();
|
503 |
+
}
|
504 |
+
|
505 |
+
// Fly style
|
506 |
+
if ( self.options.itemsStyle === 'fly' ) {
|
507 |
+
// determine cursor position
|
508 |
+
let lastCursorPos = {};
|
509 |
+
$wnd.on( `mousemove${ evp }`, ( e ) => {
|
510 |
+
lastCursorPos = {
|
511 |
+
x: e.clientX,
|
512 |
+
y: e.clientY,
|
513 |
+
};
|
514 |
+
} );
|
515 |
+
|
516 |
+
self.$item.on( `mouseenter${ evp } mouseleave${ evp }`, '.vp-portfolio__item', function( e ) {
|
517 |
+
const $this = $( this );
|
518 |
+
const itemRect = $this[ 0 ].getBoundingClientRect();
|
519 |
+
const $overlay = $this.find( '.vp-portfolio__item-overlay' );
|
520 |
+
const enter = e.type === 'mouseenter';
|
521 |
+
let endX = '0%';
|
522 |
+
let endY = '0%';
|
523 |
+
const curCursorPos = {
|
524 |
+
x: e.clientX,
|
525 |
+
y: e.clientY,
|
526 |
+
};
|
527 |
+
|
528 |
+
// find the corner that placed on cursor path.
|
529 |
+
let isUp = self.isCrossLine(
|
530 |
+
{ x: itemRect.left, y: itemRect.top },
|
531 |
+
{ x: itemRect.left + itemRect.width, y: itemRect.top },
|
532 |
+
curCursorPos, lastCursorPos,
|
533 |
+
);
|
534 |
+
let isDown = self.isCrossLine(
|
535 |
+
{ x: itemRect.left, y: itemRect.top + itemRect.height },
|
536 |
+
{ x: itemRect.left + itemRect.width, y: itemRect.top + itemRect.height },
|
537 |
+
curCursorPos, lastCursorPos,
|
538 |
+
);
|
539 |
+
let isLeft = self.isCrossLine(
|
540 |
+
{ x: itemRect.left, y: itemRect.top },
|
541 |
+
{ x: itemRect.left, y: itemRect.top + itemRect.height },
|
542 |
+
curCursorPos, lastCursorPos,
|
543 |
+
);
|
544 |
+
let isRight = self.isCrossLine(
|
545 |
+
{ x: itemRect.left + itemRect.width, y: itemRect.top },
|
546 |
+
{ x: itemRect.left + itemRect.width, y: itemRect.top + itemRect.height },
|
547 |
+
curCursorPos, lastCursorPos,
|
548 |
+
);
|
549 |
+
|
550 |
+
// Sometimes self.isCrossLine returned false, so we need to check direction manually (less accurate, but it is not a big problem).
|
551 |
+
if ( ! isUp && ! isDown && ! isLeft && ! isRight ) {
|
552 |
+
const x = ( ( itemRect.width / 2 ) - curCursorPos.x + itemRect.left ) / ( itemRect.width / 2 );
|
553 |
+
const y = ( ( itemRect.height / 2 ) - curCursorPos.y + itemRect.top ) / ( itemRect.height / 2 );
|
554 |
+
if ( Math.abs( x ) > Math.abs( y ) ) {
|
555 |
+
if ( x > 0 ) {
|
556 |
+
isLeft = true;
|
557 |
+
} else {
|
558 |
+
isRight = true;
|
559 |
+
}
|
560 |
+
} else if ( y > 0 ) {
|
561 |
+
isUp = true;
|
562 |
+
} else {
|
563 |
+
isDown = true;
|
564 |
+
}
|
565 |
+
}
|
566 |
+
|
567 |
+
if ( isUp ) {
|
568 |
+
endY = `-10${ endY }`;
|
569 |
+
} else if ( isDown ) {
|
570 |
+
endY = `10${ endY }`;
|
571 |
+
} else if ( isLeft ) {
|
572 |
+
endX = `-10${ endX }`;
|
573 |
+
} else if ( isRight ) {
|
574 |
+
endX = `10${ endX }`;
|
575 |
+
}
|
576 |
+
|
577 |
+
if ( enter ) {
|
578 |
+
$overlay.css( {
|
579 |
+
transition: 'none',
|
580 |
+
transform: `translateX(${ endX }) translateY(${ endY }) translateZ(0)`,
|
581 |
+
} );
|
582 |
+
// Trigger a reflow, flushing the CSS changes. This need to fix some glithes in Safari and Firefox.
|
583 |
+
// Info here - https://stackoverflow.com/questions/11131875/what-is-the-cleanest-way-to-disable-css-transition-effects-temporarily
|
584 |
+
// eslint-disable-next-line no-unused-expressions
|
585 |
+
$overlay[ 0 ].offsetHeight;
|
586 |
+
}
|
587 |
+
|
588 |
+
$overlay.css( {
|
589 |
+
transition: '.2s transform ease-in-out',
|
590 |
+
transform: `translateX(${ enter ? '0%' : endX }) translateY(${ enter ? '0%' : endY }) translateZ(0)`,
|
591 |
+
} );
|
592 |
+
} );
|
593 |
+
}
|
594 |
+
|
595 |
+
// on filter click
|
596 |
+
self.$filter.on( `click${ evp }`, '.vp-filter .vp-filter__item a', function( e ) {
|
597 |
+
e.preventDefault();
|
598 |
+
const $this = $( this );
|
599 |
+
if ( ! self.loading ) {
|
600 |
+
$this.closest( '.vp-filter__item' ).addClass( 'vp-filter__item-active' ).siblings().removeClass( 'vp-filter__item-active' );
|
601 |
+
}
|
602 |
+
self.loadNewItems( $this.attr( 'href' ), true );
|
603 |
+
} );
|
604 |
+
|
605 |
+
// on sort click
|
606 |
+
self.$sort.on( `click${ evp }`, '.vp-sort .vp-sort__item a', function( e ) {
|
607 |
+
e.preventDefault();
|
608 |
+
const $this = $( this );
|
609 |
+
if ( ! self.loading ) {
|
610 |
+
$this.closest( '.vp-sort__item' ).addClass( 'vp-sort__item-active' ).siblings().removeClass( 'vp-sort__item-active' );
|
611 |
+
}
|
612 |
+
self.loadNewItems( $this.attr( 'href' ), true );
|
613 |
+
} );
|
614 |
+
|
615 |
+
// on filter/sort select change
|
616 |
+
self.$filter.add( self.$sort ).on( `change${ evp }`, '.vp-filter select, .vp-sort select', function() {
|
617 |
+
const $this = $( this );
|
618 |
+
const value = $this.val();
|
619 |
+
const $option = $this.find( `[value="${ value }"]` );
|
620 |
+
|
621 |
+
if ( $option.length ) {
|
622 |
+
self.loadNewItems( $option.attr( 'data-vp-url' ), true );
|
623 |
+
}
|
624 |
+
} );
|
625 |
+
|
626 |
+
// on pagination click
|
627 |
+
self.$item.on( `click${ evp }`, '.vp-pagination .vp-pagination__item a', function( e ) {
|
628 |
+
e.preventDefault();
|
629 |
+
const $this = $( this );
|
630 |
+
if ( $this.hasClass( 'vp-pagination__no-more' ) && self.options.pagination !== 'paged' ) {
|
631 |
+
return;
|
632 |
+
}
|
633 |
+
self.loadNewItems( $this.attr( 'href' ), self.options.pagination === 'paged' );
|
634 |
+
} );
|
635 |
+
|
636 |
+
// on categories of item click
|
637 |
+
self.$item.on( `click${ evp }`, '.vp-portfolio__items .vp-portfolio__item-meta-category a', function( e ) {
|
638 |
+
e.preventDefault();
|
639 |
+
e.stopPropagation();
|
640 |
+
self.loadNewItems( $( this ).attr( 'href' ), true );
|
641 |
+
} );
|
642 |
+
|
643 |
+
// infinite loading
|
644 |
+
let scrollTimeout;
|
645 |
+
const bottomPosToLoad = 250;
|
646 |
+
function checkVisibilityAndLoad() {
|
647 |
+
const rect = self.$item[ 0 ].getBoundingClientRect();
|
648 |
+
|
649 |
+
if ( rect.bottom > 0 && ( rect.bottom - bottomPosToLoad ) <= wndH ) {
|
650 |
+
self.loadNewItems( self.options.nextPageUrl, false, () => {
|
651 |
+
checkVisibilityAndLoad();
|
652 |
+
} );
|
653 |
+
}
|
654 |
+
}
|
655 |
+
if ( self.options.pagination === 'infinite' ) {
|
656 |
+
$wnd.on( `load${ evp } scroll${ evp } resize${ evp } orientationchange${ evp }`, () => {
|
657 |
+
clearTimeout( scrollTimeout );
|
658 |
+
scrollTimeout = setTimeout( () => {
|
659 |
+
checkVisibilityAndLoad();
|
660 |
+
}, 60 );
|
661 |
+
} );
|
662 |
+
checkVisibilityAndLoad();
|
663 |
+
}
|
664 |
+
|
665 |
+
// resized container
|
666 |
+
self.$item.on( `transitionend${ evp }`, '.vp-portfolio__items', function( e ) {
|
667 |
+
if ( e.currentTarget === e.target ) {
|
668 |
+
self.resized();
|
669 |
+
}
|
670 |
+
} );
|
671 |
+
|
672 |
+
self.emitEvent( 'initEvents' );
|
673 |
+
}
|
674 |
+
|
675 |
+
/**
|
676 |
+
* Destroy events
|
677 |
+
*/
|
678 |
+
destroyEvents() {
|
679 |
+
const self = this;
|
680 |
+
const evp = `.vpf-uid-${ self.uid }`;
|
681 |
+
|
682 |
+
// destroy click events
|
683 |
+
self.$item.off( evp );
|
684 |
+
self.$filter.off( evp );
|
685 |
+
self.$sort.off( evp );
|
686 |
+
|
687 |
+
// destroy infinite load events
|
688 |
+
$wnd.off( evp );
|
689 |
+
|
690 |
+
self.emitEvent( 'destroyEvents' );
|
691 |
+
}
|
692 |
+
|
693 |
+
/**
|
694 |
+
* Prepare image for Lazyload
|
695 |
+
*
|
696 |
+
* We need to add lazyload class and attributes from global config of lazysizes.
|
697 |
+
* This need because some 3rd-party themes/plugins may change it and it will be conflicted with our config.
|
698 |
+
* Related topic: https://wordpress.org/support/topic/since-the-last-update-i-cant-see-image-featured-of-posts/#post-10519096.
|
699 |
+
*/
|
700 |
+
prepareLazyLoad() {
|
701 |
+
const self = this;
|
702 |
+
const config = window.lazySizesConfig;
|
703 |
+
|
704 |
+
if ( config ) {
|
705 |
+
const attrsToReplace = {
|
706 |
+
'data-vpf-src': config.srcAttr,
|
707 |
+
'data-vpf-sizes': config.sizesAttr,
|
708 |
+
'data-vpf-srcset': config.srcsetAttr,
|
709 |
+
};
|
710 |
+
|
711 |
+
self.$items_wrap.add( self.$slider_thumbnails_wrap ).find( `.visual-portfolio-lazyload:not(.${ config.lazyClass })` ).each( function() {
|
712 |
+
const $item = $( this );
|
713 |
+
|
714 |
+
Object.keys( attrsToReplace ).forEach( ( attr ) => {
|
715 |
+
if ( attrsToReplace[ attr ] && attr !== attrsToReplace[ attr ] && $item.attr( attr ) ) {
|
716 |
+
$item.attr( attrsToReplace[ attr ], $item.attr( attr ) );
|
717 |
+
$item.removeAttr( attr );
|
718 |
+
}
|
719 |
+
} );
|
720 |
+
|
721 |
+
$item.addClass( config.lazyClass );
|
722 |
+
} );
|
723 |
+
}
|
724 |
+
}
|
725 |
+
|
726 |
+
/**
|
727 |
+
* Remove <noscript> tags.
|
728 |
+
* Some optimization plugin make something, that killed our styles with noscript tag.
|
729 |
+
* Related topic: https://wordpress.org/support/topic/visual-portfolio-and-sg-optimizer-dont-play-well/
|
730 |
+
*
|
731 |
+
* @param {object} $items items to work with
|
732 |
+
*/
|
733 |
+
removeNoscriptTags( $items ) {
|
734 |
+
$items.find( 'noscript' ).remove();
|
735 |
+
}
|
736 |
+
|
737 |
+
/**
|
738 |
+
* Get Layout Settings
|
739 |
+
*
|
740 |
+
* @returns {string} tiles layout
|
741 |
+
*/
|
742 |
+
getTilesSettings() {
|
743 |
+
const self = this;
|
744 |
+
|
745 |
+
const layoutArr = self.options.tilesType.split( /[:|]/ );
|
746 |
+
|
747 |
+
// remove last empty item
|
748 |
+
if ( typeof layoutArr[ layoutArr.length - 1 ] !== 'undefined' && ! layoutArr[ layoutArr.length - 1 ] ) {
|
749 |
+
layoutArr.pop();
|
750 |
+
}
|
751 |
+
|
752 |
+
return layoutArr;
|
753 |
+
}
|
754 |
+
|
755 |
+
/**
|
756 |
+
* Init layout
|
757 |
+
*/
|
758 |
+
initLayout() {
|
759 |
+
const self = this;
|
760 |
+
|
761 |
+
// prepare layout
|
762 |
+
if ( self.options.layout ) {
|
763 |
+
switch ( self.options.layout ) {
|
764 |
+
case 'tiles': {
|
765 |
+
const settings = self.getTilesSettings();
|
766 |
+
|
767 |
+
// get columns number
|
768 |
+
const columns = parseInt( settings[ 0 ], 10 ) || 1;
|
769 |
+
settings.shift();
|
770 |
+
|
771 |
+
// set columns
|
772 |
+
self.addStyle( '.vp-portfolio__item-wrap', {
|
773 |
+
width: `${ 100 / columns }%`,
|
774 |
+
} );
|
775 |
+
|
776 |
+
// set items sizes
|
777 |
+
if ( settings && settings.length ) {
|
778 |
+
for ( let k = 0; k < settings.length; k++ ) {
|
779 |
+
const size = settings[ k ].split( ',' );
|
780 |
+
const w = parseFloat( size[ 0 ] ) || 1;
|
781 |
+
const h = parseFloat( size[ 1 ] ) || 1;
|
782 |
+
|
783 |
+
let itemSelector = '.vp-portfolio__item-wrap';
|
784 |
+
if ( settings.length > 1 ) {
|
785 |
+
itemSelector += `:nth-of-type(${ settings.length }n+${ k + 1 })`;
|
786 |
+
}
|
787 |
+
|
788 |
+
if ( w && w !== 1 ) {
|
789 |
+
self.addStyle( itemSelector, {
|
790 |
+
width: `${ w * 100 / columns }%`,
|
791 |
+
} );
|
792 |
+
}
|
793 |
+
self.addStyle( `${ itemSelector } .vp-portfolio__item-img-wrap::before`, {
|
794 |
+
'margin-top': `${ h * 100 }%`,
|
795 |
+
} );
|
796 |
+
}
|
797 |
+
}
|
798 |
+
|
799 |
+
// calculate responsive.
|
800 |
+
let count = columns - 1;
|
801 |
+
let currentPoint = Math.min( screenSizes.length - 1, count );
|
802 |
+
|
803 |
+
for ( ; currentPoint >= 0; currentPoint-- ) {
|
804 |
+
if ( count > 0 && typeof screenSizes[ currentPoint ] !== 'undefined' ) {
|
805 |
+
self.addStyle( '.vp-portfolio__item-wrap', {
|
806 |
+
width: `${ 100 / count }%`,
|
807 |
+
}, `screen and (max-width: ${ screenSizes[ currentPoint ] }px)` );
|
808 |
+
self.addStyle( '.vp-portfolio__item-wrap:nth-of-type(n)', {
|
809 |
+
width: `${ 100 / count }%`,
|
810 |
+
}, `screen and (max-width: ${ screenSizes[ currentPoint ] }px)` );
|
811 |
+
}
|
812 |
+
count -= 1;
|
813 |
+
}
|
814 |
+
break;
|
815 |
+
}
|
816 |
+
case 'masonry':
|
817 |
+
case 'grid': {
|
818 |
+
const columns = self.options[ 'masonry' === self.options.layout ? 'masonryColumns' : 'gridColumns' ];
|
819 |
+
|
820 |
+
self.addStyle( '.vp-portfolio__item-wrap', {
|
821 |
+
width: `${ 100 / columns }%`,
|
822 |
+
} );
|
823 |
+
|
824 |
+
// calculate responsive.
|
825 |
+
let count = columns - 1;
|
826 |
+
let currentPoint = Math.min( screenSizes.length - 1, count );
|
827 |
+
|
828 |
+
for ( ; currentPoint >= 0; currentPoint-- ) {
|
829 |
+
if ( count > 0 && typeof screenSizes[ currentPoint ] !== 'undefined' ) {
|
830 |
+
self.addStyle( '.vp-portfolio__item-wrap', {
|
831 |
+
width: `${ 100 / count }%`,
|
832 |
+
}, `screen and (max-width: ${ screenSizes[ currentPoint ] }px)` );
|
833 |
+
}
|
834 |
+
count -= 1;
|
835 |
+
}
|
836 |
+
}
|
837 |
+
// falls through
|
838 |
+
case 'justified':
|
839 |
+
break;
|
840 |
+
case 'slider':
|
841 |
+
[ 'items', 'thumbnails' ].forEach( ( type ) => {
|
842 |
+
const itemsHeight = type === 'items' ? self.options.sliderItemsHeight : self.options.sliderThumbnailsHeight;
|
843 |
+
const typeSingle = type.replace( /s$/g, '' );
|
844 |
+
|
845 |
+
if ( itemsHeight === 'auto' ) {
|
846 |
+
return;
|
847 |
+
}
|
848 |
+
|
849 |
+
const itemsPerView = type === 'items' ? self.options.sliderSlidesPerView : self.options.sliderThumbnailsPerView;
|
850 |
+
|
851 |
+
if ( itemsPerView === 'auto' ) {
|
852 |
+
// fix fade slider items width.
|
853 |
+
// https://github.com/nk-o/visual-portfolio/issues/95.
|
854 |
+
let itemsWidth = 'auto';
|
855 |
+
if ( type === 'items' && self.options.sliderEffect === 'fade' ) {
|
856 |
+
itemsWidth = '100%';
|
857 |
+
}
|
858 |
+
|
859 |
+
// dynamic.
|
860 |
+
if ( itemsHeight.indexOf( '%' ) === itemsHeight.length - 1 ) {
|
861 |
+
self.addStyle( `.vp-portfolio__${ type }-wrap::before`, {
|
862 |
+
content: '""',
|
863 |
+
display: 'block',
|
864 |
+
width: '100%',
|
865 |
+
'margin-top': isNaN( itemsHeight ) ? itemsHeight : `${ itemsHeight }px`,
|
866 |
+
} );
|
867 |
+
self.addStyle( `.vp-portfolio__${ type }`, {
|
868 |
+
position: 'absolute',
|
869 |
+
top: 0,
|
870 |
+
left: 0,
|
871 |
+
right: 0,
|
872 |
+
bottom: 0,
|
873 |
+
} );
|
874 |
+
self.addStyle( `.vp-portfolio__${ typeSingle }-wrap`, {
|
875 |
+
width: 'auto',
|
876 |
+
height: self.options.sliderBullets === 'true' ? 'calc( 100% - 25px )' : '100%',
|
877 |
+
} );
|
878 |
+
self.addStyle( `.vp-portfolio__${ typeSingle }, .vp-portfolio__${ typeSingle }-img-wrap, .vp-portfolio__${ typeSingle }-img, .vp-portfolio__${ typeSingle }-wrap .vp-portfolio__${ typeSingle } .vp-portfolio__${ typeSingle }-img a, .vp-portfolio__${ typeSingle }-wrap .vp-portfolio__${ typeSingle } .vp-portfolio__${ typeSingle }-img img`, {
|
879 |
+
width: itemsWidth,
|
880 |
+
height: '100%',
|
881 |
+
} );
|
882 |
+
|
883 |
+
// static.
|
884 |
+
} else {
|
885 |
+
self.addStyle( `.vp-portfolio__${ typeSingle }-wrap`, {
|
886 |
+
width: 'auto',
|
887 |
+
} );
|
888 |
+
self.addStyle( `.vp-portfolio__${ typeSingle } .vp-portfolio__${ typeSingle }-img img`, {
|
889 |
+
width: itemsWidth,
|
890 |
+
height: isNaN( itemsHeight ) ? itemsHeight : `${ itemsHeight }px`,
|
891 |
+
} );
|
892 |
+
}
|
893 |
+
} else {
|
894 |
+
self.addStyle( `.vp-portfolio__${ typeSingle }-img-wrap::before`, {
|
895 |
+
'margin-top': isNaN( itemsHeight ) ? itemsHeight : `${ itemsHeight }px`,
|
896 |
+
} );
|
897 |
+
self.addStyle( `.vp-portfolio__${ typeSingle }-img img`, {
|
898 |
+
position: 'absolute',
|
899 |
+
top: 0,
|
900 |
+
right: 0,
|
901 |
+
bottom: 0,
|
902 |
+
left: 0,
|
903 |
+
} );
|
904 |
+
self.addStyle( `.vp-portfolio__${ typeSingle }-img`, {
|
905 |
+
position: 'absolute',
|
906 |
+
top: 0,
|
907 |
+
right: 0,
|
908 |
+
bottom: 0,
|
909 |
+
left: 0,
|
910 |
+
} );
|
911 |
+
self.addStyle( `.vp-portfolio__${ typeSingle } .vp-portfolio__${ typeSingle }-img img`, {
|
912 |
+
width: '100%',
|
913 |
+
height: '100%',
|
914 |
+
} );
|
915 |
+
}
|
916 |
+
} );
|
917 |
+
|
918 |
+
// thumbnails top gap.
|
919 |
+
if ( self.options.sliderThumbnailsGap ) {
|
920 |
+
self.addStyle( '.vp-portfolio__thumbnails-wrap', {
|
921 |
+
'margin-top': `${ self.options.sliderThumbnailsGap }px`,
|
922 |
+
} );
|
923 |
+
}
|
924 |
+
|
925 |
+
break;
|
926 |
+
// no default
|
927 |
+
}
|
928 |
+
}
|
929 |
+
|
930 |
+
// add gaps
|
931 |
+
const gap = parseInt( self.options.itemsGap, 10 );
|
932 |
+
if ( gap && ( self.options.layout === 'tiles' || self.options.layout === 'masonry' || self.options.layout === 'grid' ) ) {
|
933 |
+
self.addStyle( '.vp-portfolio__items', {
|
934 |
+
'margin-left': `-${ gap }px`,
|
935 |
+
'margin-top': `-${ gap }px`,
|
936 |
+
} );
|
937 |
+
|
938 |
+
const gapStyle = `${ gap }px`;
|
939 |
+
|
940 |
+
// we need to add this long selector to prevent conflicts with Elementor.
|
941 |
+
// related topic: https://wordpress.org/support/topic/gap-feature-does-not-work/#post-11403735
|
942 |
+
self.addStyle( '.vp-portfolio__items .vp-portfolio__item-wrap .vp-portfolio__item', {
|
943 |
+
'margin-left': gapStyle,
|
944 |
+
'margin-top': gapStyle,
|
945 |
+
} );
|
946 |
+
|
947 |
+
// tiles
|
948 |
+
if ( self.options.layout === 'tiles' ) {
|
949 |
+
self.addStyle( '.vp-portfolio__item-wrap .vp-portfolio__item-img-wrap', {
|
950 |
+
'margin-left': `-${ gapStyle }`,
|
951 |
+
'margin-top': `-${ gapStyle }`,
|
952 |
+
} );
|
953 |
+
self.addStyle( '.vp-portfolio__item-wrap .vp-portfolio__item-img', {
|
954 |
+
left: gapStyle,
|
955 |
+
top: gapStyle,
|
956 |
+
} );
|
957 |
+
}
|
958 |
+
}
|
959 |
+
|
960 |
+
self.renderStyle();
|
961 |
+
|
962 |
+
self.emitEvent( 'initLayout' );
|
963 |
+
}
|
964 |
+
|
965 |
+
/**
|
966 |
+
* Init custom color by data attributes:
|
967 |
+
* data-vp-bg-color
|
968 |
+
* data-vp-text-color
|
969 |
+
*/
|
970 |
+
initCustomColors() {
|
971 |
+
const self = this;
|
972 |
+
|
973 |
+
self.$item.find( '[data-vp-bg-color]' ).each( function() {
|
974 |
+
const val = $( this ).attr( 'data-vp-bg-color' );
|
975 |
+
self.addStyle( `[data-vp-bg-color="${ val }"]`, {
|
976 |
+
'background-color': `${ val } !important`,
|
977 |
+
} );
|
978 |
+
} );
|
979 |
+
|
980 |
+
self.$item.find( '[data-vp-text-color]' ).each( function() {
|
981 |
+
const val = $( this ).attr( 'data-vp-text-color' );
|
982 |
+
self.addStyle( `[data-vp-text-color="${ val }"]`, {
|
983 |
+
color: `${ val } !important`,
|
984 |
+
} );
|
985 |
+
} );
|
986 |
+
|
987 |
+
self.renderStyle();
|
988 |
+
|
989 |
+
self.emitEvent( 'initCustomColors' );
|
990 |
+
}
|
991 |
+
|
992 |
+
/**
|
993 |
+
* Init Isotope
|
994 |
+
* TODO: Check for MixItUp plugin
|
995 |
+
*
|
996 |
+
* @param {object} options isotope options
|
997 |
+
*/
|
998 |
+
initIsotope( options ) {
|
999 |
+
const self = this;
|
1000 |
+
|
1001 |
+
if ( self.$items_wrap.isotope && ( self.options.layout === 'tiles' || self.options.layout === 'masonry' || self.options.layout === 'grid' ) ) {
|
1002 |
+
const initOptions = options || {
|
1003 |
+
itemSelector: '.vp-portfolio__item-wrap',
|
1004 |
+
layoutMode: self.options.layout === 'grid' ? 'fitRows' : 'masonry',
|
1005 |
+
// masonry: {
|
1006 |
+
// horizontalOrder: true
|
1007 |
+
// },
|
1008 |
+
transitionDuration: '0.3s',
|
1009 |
+
percentPosition: true,
|
1010 |
+
};
|
1011 |
+
|
1012 |
+
self.emitEvent( 'beforeInitIsotope', [ options ] );
|
1013 |
+
|
1014 |
+
self.$items_wrap.isotope( initOptions );
|
1015 |
+
|
1016 |
+
self.emitEvent( 'initIsotope', [ options ] );
|
1017 |
+
}
|
1018 |
+
}
|
1019 |
+
|
1020 |
+
/**
|
1021 |
+
* Destroy Isotope
|
1022 |
+
*/
|
1023 |
+
destroyIsotope() {
|
1024 |
+
const self = this;
|
1025 |
+
const isotope = self.$items_wrap.data( 'isotope' );
|
1026 |
+
|
1027 |
+
if ( isotope ) {
|
1028 |
+
self.$items_wrap.isotope( 'destroy' );
|
1029 |
+
|
1030 |
+
self.emitEvent( 'destroyIsotope' );
|
1031 |
+
}
|
1032 |
+
}
|
1033 |
+
|
1034 |
+
/**
|
1035 |
+
* Init fjGallery plugin
|
1036 |
+
*
|
1037 |
+
* @param {mixed} options - gallery options.
|
1038 |
+
* @param {mixed} additional - additional args.
|
1039 |
+
*/
|
1040 |
+
initFjGallery( options = false, additional = null ) {
|
1041 |
+
const self = this;
|
1042 |
+
|
1043 |
+
if ( self.$items_wrap.fjGallery && self.options.layout === 'justified' ) {
|
1044 |
+
const initOptions = options !== false ? options : {
|
1045 |
+
gutter: parseFloat( self.options.itemsGap ) || 0,
|
1046 |
+
rowHeight: parseFloat( self.options.justifiedRowHeight ) || 200,
|
1047 |
+
rowHeightTolerance: parseFloat( self.options.justifiedRowHeightTolerance ) || 0,
|
1048 |
+
itemSelector: '.vp-portfolio__item-wrap',
|
1049 |
+
imageSelector: '.vp-portfolio__item-img img',
|
1050 |
+
};
|
1051 |
+
|
1052 |
+
self.emitEvent( 'beforeInitFjGallery', [ initOptions, additional ] );
|
1053 |
+
|
1054 |
+
self.$items_wrap.fjGallery( initOptions, additional );
|
1055 |
+
|
1056 |
+
self.emitEvent( 'initFjGallery', [ initOptions, additional ] );
|
1057 |
+
}
|
1058 |
+
}
|
1059 |
+
|
1060 |
+
/**
|
1061 |
+
* Destroy fjGallery plugin
|
1062 |
+
*/
|
1063 |
+
destroyFjGallery() {
|
1064 |
+
const self = this;
|
1065 |
+
const fjGallery = self.$items_wrap.data( 'fjGallery' );
|
1066 |
+
|
1067 |
+
if ( fjGallery ) {
|
1068 |
+
self.$items_wrap.fjGallery( 'destroy' );
|
1069 |
+
|
1070 |
+
self.emitEvent( 'destroyFjGallery' );
|
1071 |
+
}
|
1072 |
+
}
|
1073 |
+
|
1074 |
+
/**
|
1075 |
+
* Init Swiper plugin
|
1076 |
+
*
|
1077 |
+
* @param {mixed} options - slider options.
|
1078 |
+
*/
|
1079 |
+
initSwiper( options = false ) {
|
1080 |
+
const self = this;
|
1081 |
+
|
1082 |
+
if ( self.options.layout === 'slider' && typeof window.Swiper !== 'undefined' ) {
|
1083 |
+
const $parent = self.$items_wrap.parent();
|
1084 |
+
|
1085 |
+
$parent.addClass( 'swiper-container' );
|
1086 |
+
self.$items_wrap.addClass( 'swiper-wrapper' );
|
1087 |
+
self.$items_wrap.children().addClass( 'swiper-slide' );
|
1088 |
+
|
1089 |
+
// add arrows
|
1090 |
+
if ( self.options.sliderArrows === 'true' && ! $parent.find( '.vp-portfolio__items-arrow' ).length ) {
|
1091 |
+
$parent.append( `
|
1092 |
+
<div class="vp-portfolio__items-arrow vp-portfolio__items-arrow-prev"><span class="${ self.options.sliderArrowsIconPrev }"></span></div>
|
1093 |
+
<div class="vp-portfolio__items-arrow vp-portfolio__items-arrow-next"><span class="${ self.options.sliderArrowsIconNext }"></span></div>
|
1094 |
+
` );
|
1095 |
+
}
|
1096 |
+
|
1097 |
+
// add bullets
|
1098 |
+
if ( self.options.sliderBullets === 'true' && ! $parent.find( '.vp-portfolio__items-bullets' ).length ) {
|
1099 |
+
$parent.append( '<div class="vp-portfolio__items-bullets"></div>' );
|
1100 |
+
}
|
1101 |
+
|
1102 |
+
// calculate responsive.
|
1103 |
+
const slidesPerView = self.options.sliderSlidesPerView || 3;
|
1104 |
+
const breakPoints = {};
|
1105 |
+
|
1106 |
+
if ( ! isNaN( slidesPerView ) ) {
|
1107 |
+
let count = slidesPerView - 1;
|
1108 |
+
let currentPoint = Math.min( screenSizes.length - 1, count );
|
1109 |
+
|
1110 |
+
for ( ; currentPoint >= 0; currentPoint-- ) {
|
1111 |
+
if ( count > 0 && typeof screenSizes[ currentPoint ] !== 'undefined' ) {
|
1112 |
+
breakPoints[ screenSizes[ currentPoint ] ] = {
|
1113 |
+
slidesPerView: count,
|
1114 |
+
};
|
1115 |
+
}
|
1116 |
+
count -= 1;
|
1117 |
+
}
|
1118 |
+
}
|
1119 |
+
|
1120 |
+
options = options || {
|
1121 |
+
speed: ( parseFloat( self.options.sliderSpeed ) || 0 ) * 1000,
|
1122 |
+
autoHeight: self.options.sliderItemsHeight === 'auto',
|
1123 |
+
effect: self.options.sliderEffect || 'slide',
|
1124 |
+
spaceBetween: parseFloat( self.options.itemsGap ) || 0,
|
1125 |
+
centeredSlides: self.options.sliderCenteredSlides === 'true',
|
1126 |
+
freeMode: self.options.sliderFreeMode === 'true',
|
1127 |
+
freeModeSticky: self.options.sliderFreeModeSticky === 'true',
|
1128 |
+
loop: self.options.sliderLoop === 'true',
|
1129 |
+
autoplay: parseFloat( self.options.sliderAutoplay ) > 0 && {
|
1130 |
+
delay: parseFloat( self.options.sliderAutoplay ) * 1000,
|
1131 |
+
disableOnInteraction: false,
|
1132 |
+
},
|
1133 |
+
navigation: self.options.sliderArrows === 'true' && {
|
1134 |
+
nextEl: '.vp-portfolio__items-arrow-next',
|
1135 |
+
prevEl: '.vp-portfolio__items-arrow-prev',
|
1136 |
+
},
|
1137 |
+
pagination: self.options.sliderBullets === 'true' && {
|
1138 |
+
el: '.vp-portfolio__items-bullets',
|
1139 |
+
clickable: true,
|
1140 |
+
dynamicBullets: self.options.sliderBulletsDynamic === 'true',
|
1141 |
+
renderBullet( index, className ) {
|
1142 |
+
return `<span class="${ className }" data-bullet-index="${ index }" data-bullet-number="${ index + 1 }"></span>`;
|
1143 |
+
},
|
1144 |
+
},
|
1145 |
+
mousewheel: self.options.sliderMousewheel === 'true',
|
1146 |
+
slidesPerView: slidesPerView,
|
1147 |
+
breakpoints: breakPoints,
|
1148 |
+
keyboard: true,
|
1149 |
+
grabCursor: true,
|
1150 |
+
};
|
1151 |
+
|
1152 |
+
// fix fade items collapse (mostly in Default items style).
|
1153 |
+
if ( options.effect === 'fade' ) {
|
1154 |
+
options.fadeEffect = { crossFade: true };
|
1155 |
+
}
|
1156 |
+
|
1157 |
+
// fix first load slide position (seems like a conflict with lazySizes)
|
1158 |
+
// issue: https://github.com/nk-o/visual-portfolio/issues/54
|
1159 |
+
if ( 0 === options.speed ) {
|
1160 |
+
options.speed = 1;
|
1161 |
+
}
|
1162 |
+
let positionFix = 0;
|
1163 |
+
options.on = {
|
1164 |
+
transitionEnd: function() {
|
1165 |
+
if ( 0 === positionFix ) {
|
1166 |
+
positionFix = 1;
|
1167 |
+
this.setTransition( 1 );
|
1168 |
+
this.setTranslate( this.translate + 0.1 );
|
1169 |
+
} else if ( 1 === positionFix ) {
|
1170 |
+
positionFix = 2;
|
1171 |
+
this.slideReset();
|
1172 |
+
}
|
1173 |
+
},
|
1174 |
+
};
|
1175 |
+
|
1176 |
+
self.emitEvent( 'beforeInitSwiper', [ options ] );
|
1177 |
+
|
1178 |
+
// thumbnails.
|
1179 |
+
if ( self.$slider_thumbnails_wrap.length ) {
|
1180 |
+
const $thumbsParent = self.$slider_thumbnails_wrap.parent();
|
1181 |
+
|
1182 |
+
$thumbsParent.addClass( 'swiper-container' );
|
1183 |
+
self.$slider_thumbnails_wrap.addClass( 'swiper-wrapper' );
|
1184 |
+
self.$slider_thumbnails_wrap.children().addClass( 'swiper-slide' );
|
1185 |
+
|
1186 |
+
// calculate responsive.
|
1187 |
+
const thumbnailsPerView = self.options.sliderThumbnailsPerView || 8;
|
1188 |
+
const thumbnailsBreakPoints = {};
|
1189 |
+
|
1190 |
+
if ( ! isNaN( thumbnailsPerView ) ) {
|
1191 |
+
let count = thumbnailsPerView - 1;
|
1192 |
+
let currentPoint = Math.min( screenSizes.length - 1, count );
|
1193 |
+
|
1194 |
+
for ( ; currentPoint >= 0; currentPoint-- ) {
|
1195 |
+
if ( count > 0 && typeof screenSizes[ currentPoint ] !== 'undefined' ) {
|
1196 |
+
thumbnailsBreakPoints[ screenSizes[ currentPoint ] ] = {
|
1197 |
+
slidesPerView: count,
|
1198 |
+
};
|
1199 |
+
}
|
1200 |
+
count -= 1;
|
1201 |
+
}
|
1202 |
+
}
|
1203 |
+
|
1204 |
+
const swiperThumbs = new window.Swiper( $thumbsParent[ 0 ], {
|
1205 |
+
autoHeight: self.options.sliderThumbnailsHeight === 'auto',
|
1206 |
+
effect: 'slide',
|
1207 |
+
spaceBetween: parseFloat( self.options.sliderThumbnailsGap ) || 0,
|
1208 |
+
loop: false,
|
1209 |
+
freeMode: true,
|
1210 |
+
freeModeSticky: true,
|
1211 |
+
loopedSlides: 5,
|
1212 |
+
slidesPerView: thumbnailsPerView,
|
1213 |
+
breakpoints: thumbnailsBreakPoints,
|
1214 |
+
keyboard: true,
|
1215 |
+
grabCursor: true,
|
1216 |
+
watchSlidesVisibility: true,
|
1217 |
+
watchSlidesProgress: true,
|
1218 |
+
} );
|
1219 |
+
|
1220 |
+
options.thumbs = {
|
1221 |
+
swiper: swiperThumbs,
|
1222 |
+
};
|
1223 |
+
}
|
1224 |
+
|
1225 |
+
// init swiper.
|
1226 |
+
new window.Swiper( $parent[ 0 ], options );
|
1227 |
+
|
1228 |
+
// autoplay hover pause.
|
1229 |
+
if ( self.options.sliderAutoplayHoverPause === 'true' && parseFloat( self.options.sliderAutoplay ) > 0 ) {
|
1230 |
+
self.$item.on( `mouseenter.vpf-uid-${ self.uid }`, '.swiper-container', function() {
|
1231 |
+
$parent[ 0 ].swiper.autoplay.stop();
|
1232 |
+
} );
|
1233 |
+
self.$item.on( `mouseleave.vpf-uid-${ self.uid }`, '.swiper-container', function() {
|
1234 |
+
$parent[ 0 ].swiper.autoplay.start();
|
1235 |
+
} );
|
1236 |
+
}
|
1237 |
+
|
1238 |
+
self.emitEvent( 'initSwiper', [ options ] );
|
1239 |
+
}
|
1240 |
+
}
|
1241 |
+
|
1242 |
+
/**
|
1243 |
+
* Destroy Swiper plugin
|
1244 |
+
*/
|
1245 |
+
destroySwiper() {
|
1246 |
+
const self = this;
|
1247 |
+
const $parent = self.$items_wrap.parent();
|
1248 |
+
const Swiper = $parent[ 0 ].swiper;
|
1249 |
+
|
1250 |
+
if ( Swiper ) {
|
1251 |
+
Swiper.destroy();
|
1252 |
+
|
1253 |
+
$parent.removeClass( 'swiper-container' );
|
1254 |
+
self.$items_wrap.removeClass( 'swiper-wrapper' );
|
1255 |
+
self.$items_wrap.children().removeClass( 'swiper-slide' );
|
1256 |
+
|
1257 |
+
$parent.find( '.vp-portfolio__items-arrow, .vp-portfolio__items-bullets' ).remove();
|
1258 |
+
|
1259 |
+
self.emitEvent( 'destroySwiper' );
|
1260 |
+
}
|
1261 |
+
}
|
1262 |
+
|
1263 |
+
/**
|
1264 |
+
* Parse video URL and return object with data
|
1265 |
+
*
|
1266 |
+
* @param {string} url - video url.
|
1267 |
+
*
|
1268 |
+
* @returns {object|boolean} video data
|
1269 |
+
*/
|
1270 |
+
parseVideo( url ) {
|
1271 |
+
// parse youtube ID
|
1272 |
+
function getYoutubeID( ytUrl ) {
|
1273 |
+
// eslint-disable-next-line no-useless-escape
|
1274 |
+
const regExp = /.*(?:youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=)([^#\&\?]*).*/;
|
1275 |
+
const match = ytUrl.match( regExp );
|
1276 |
+
return match && match[ 1 ].length === 11 ? match[ 1 ] : false;
|
1277 |
+
}
|
1278 |
+
|
1279 |
+
// parse vimeo ID
|
1280 |
+
function getVimeoID( vmUrl ) {
|
1281 |
+
// eslint-disable-next-line no-useless-escape
|
1282 |
+
const regExp = /https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)(?:$|\/|\?)/;
|
1283 |
+
const match = vmUrl.match( regExp );
|
1284 |
+
return match && match[ 3 ] ? match[ 3 ] : false;
|
1285 |
+
}
|
1286 |
+
|
1287 |
+
const Youtube = getYoutubeID( url );
|
1288 |
+
const Vimeo = getVimeoID( url );
|
1289 |
+
|
1290 |
+
if ( Youtube ) {
|
1291 |
+
return {
|
1292 |
+
vendor: 'youtube',
|
1293 |
+
id: Youtube,
|
1294 |
+
url,
|
1295 |
+
embed: `<iframe width="1920" height="1080" src="https://www.youtube.com/embed/${ Youtube }" frameborder="0" allowfullscreen></iframe>`,
|
1296 |
+
};
|
1297 |
+
} else if ( Vimeo ) {
|
1298 |
+
return {
|
1299 |
+
vendor: 'vimeo',
|
1300 |
+
id: Vimeo,
|
1301 |
+
url,
|
1302 |
+
embed: `<iframe width="1920" height="1080" src="//player.vimeo.com/video/${ Vimeo }" frameborder="0" allowfullscreen></iframe>`,
|
1303 |
+
};
|
1304 |
+
}
|
1305 |
+
|
1306 |
+
return {
|
1307 |
+
vendor: 'unknown',
|
1308 |
+
id: url,
|
1309 |
+
url,
|
1310 |
+
embed: `<iframe width="1920" height="1080" src="${ url }" frameborder="0" allowfullscreen></iframe>`,
|
1311 |
+
};
|
1312 |
+
}
|
1313 |
+
|
1314 |
+
/**
|
1315 |
+
* Init Photoswipe plugin
|
1316 |
+
*/
|
1317 |
+
initPhotoswipe() {
|
1318 |
+
const self = this;
|
1319 |
+
|
1320 |
+
if ( typeof PhotoSwipe === 'undefined' || ! self.options.itemsClickAction || self.options.itemsClickAction !== 'popup_gallery' ) {
|
1321 |
+
return;
|
1322 |
+
}
|
1323 |
+
|
1324 |
+
// prevent on preview page
|
1325 |
+
if ( self.$item.closest( '#vp_preview' ).length ) {
|
1326 |
+
return;
|
1327 |
+
}
|
1328 |
+
|
1329 |
+
// prepare photoswipe markup
|
1330 |
+
if ( ! $( '.vp-pswp' ).length ) {
|
1331 |
+
const markup = `
|
1332 |
+
<div class="pswp vp-pswp vp-pswp-uid-${ self.uid }" tabindex="-1" role="dialog" aria-hidden="true">
|
1333 |
+
<div class="pswp__bg"></div>
|
1334 |
+
<div class="pswp__scroll-wrap">
|
1335 |
+
<div class="pswp__container">
|
1336 |
+
<div class="pswp__item"></div>
|
1337 |
+
<div class="pswp__item"></div>
|
1338 |
+
<div class="pswp__item"></div>
|
1339 |
+
</div>
|
1340 |
+
<div class="pswp__ui pswp__ui--hidden">
|
1341 |
+
<div class="pswp__top-bar">
|
1342 |
+
<div class="pswp__counter"></div>
|
1343 |
+
<a class="pswp__button pswp__button--close" title="${ __.pswp_close }"></a>
|
1344 |
+
<a class="pswp__button pswp__button--share" title="${ __.pswp_share }"></a>
|
1345 |
+
<a class="pswp__button pswp__button--fs" title="${ __.pswp_fs }"></a>
|
1346 |
+
<a class="pswp__button pswp__button--zoom" title="${ __.pswp_zoom }"></a>
|
1347 |
+
</div>
|
1348 |
+
<div class="pswp__preloader">
|
1349 |
+
<div class="pswp__preloader__icn">
|
1350 |
+
<div class="pswp__preloader__cut">
|
1351 |
+
<div class="pswp__preloader__donut"></div>
|
1352 |
+
</div>
|
1353 |
+
</div>
|
1354 |
+
</div>
|
1355 |
+
<div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
|
1356 |
+
<div class="pswp__share-tooltip"></div>
|
1357 |
+
</div>
|
1358 |
+
<a class="pswp__button pswp__button--arrow--left" title="${ __.pswp_prev }"></a>
|
1359 |
+
<a class="pswp__button pswp__button--arrow--right" title="${ __.pswp_next }"></a>
|
1360 |
+
<div class="pswp__caption">
|
1361 |
+
<div class="pswp__caption__center"></div>
|
1362 |
+
</div>
|
1363 |
+
</div>
|
1364 |
+
</div>
|
1365 |
+
</div>
|
1366 |
+
`;
|
1367 |
+
$( 'body' ).append( markup );
|
1368 |
+
}
|
1369 |
+
|
1370 |
+
// init code
|
1371 |
+
const parseThumbnailElements = function( el ) {
|
1372 |
+
const thumbElements = $( el ).find( '.vp-portfolio__item-wrap' );
|
1373 |
+
const items = [];
|
1374 |
+
let $meta;
|
1375 |
+
let size;
|
1376 |
+
let videoSize;
|
1377 |
+
let item;
|
1378 |
+
let video;
|
1379 |
+
let videoData;
|
1380 |
+
|
1381 |
+
thumbElements.each( function() {
|
1382 |
+
$meta = $( this ).find( '.vp-portfolio__item-popup' );
|
1383 |
+
|
1384 |
+
if ( $meta && $meta.length ) {
|
1385 |
+
size = ( $meta.attr( 'data-vp-popup-img-size' ) || '1920x1080' ).split( 'x' );
|
1386 |
+
videoSize = '1920x1080'.split( 'x' );
|
1387 |
+
video = $meta.attr( 'data-vp-popup-video' );
|
1388 |
+
videoData = false;
|
1389 |
+
|
1390 |
+
if ( video ) {
|
1391 |
+
videoData = self.parseVideo( video );
|
1392 |
+
}
|
1393 |
+
|
1394 |
+
if ( videoData ) {
|
1395 |
+
item = {
|
1396 |
+
html: `<div class="vp-pswp-video"><div>${ videoData.embed }</div></div>`,
|
1397 |
+
vw: parseInt( videoSize[ 0 ], 10 ),
|
1398 |
+
vh: parseInt( videoSize[ 1 ], 10 ),
|
1399 |
+
};
|
1400 |
+
} else {
|
1401 |
+
// create slide object
|
1402 |
+
item = {
|
1403 |
+
src: $meta.attr( 'data-vp-popup-img' ),
|
1404 |
+
w: parseInt( size[ 0 ], 10 ),
|
1405 |
+
h: parseInt( size[ 1 ], 10 ),
|
1406 |
+
};
|
1407 |
+
|
1408 |
+
const $captionTitle = $meta.children( '.vp-portfolio__item-popup-title' ).get( 0 );
|
1409 |
+
const $captionDescription = $meta.children( '.vp-portfolio__item-popup-description' ).get( 0 );
|
1410 |
+
if ( $captionTitle || $captionDescription ) {
|
1411 |
+
item.title = ( $captionTitle ? $captionTitle.outerHTML : '' ) + ( $captionDescription ? $captionDescription.outerHTML : '' );
|
1412 |
+
}
|
1413 |
+
|
1414 |
+
// save link to element for getThumbBoundsFn
|
1415 |
+
item.el = this;
|
1416 |
+
|
1417 |
+
const mediumSrc = $meta.attr( 'data-vp-popup-md-img' ) || item.src;
|
1418 |
+
if ( mediumSrc ) {
|
1419 |
+
size = ( $meta.attr( 'data-vp-popup-md-img-size' ) || $meta.attr( 'data-vp-popup-img-size' ) || '1920x1080' ).split( 'x' );
|
1420 |
+
|
1421 |
+
// "medium-sized" image
|
1422 |
+
item.m = {
|
1423 |
+
src: mediumSrc,
|
1424 |
+
w: parseInt( size[ 0 ], 10 ),
|
1425 |
+
h: parseInt( size[ 1 ], 10 ),
|
1426 |
+
};
|
1427 |
+
|
1428 |
+
// thumbnail
|
1429 |
+
item.msrc = mediumSrc;
|
1430 |
+
}
|
1431 |
+
|
1432 |
+
// original image
|
1433 |
+
item.o = {
|
1434 |
+
src: item.src,
|
1435 |
+
w: item.w,
|
1436 |
+
h: item.h,
|
1437 |
+
};
|
1438 |
+
}
|
1439 |
+
|
1440 |
+
items.push( item );
|
1441 |
+
}
|
1442 |
+
} );
|
1443 |
+
|
1444 |
+
return items;
|
1445 |
+
};
|
1446 |
+
|
1447 |
+
function resizeVideo( data, curItem ) {
|
1448 |
+
if ( typeof curItem === 'undefined' ) {
|
1449 |
+
if ( data && data.itemHolders.length ) {
|
1450 |
+
data.itemHolders.forEach( ( val ) => {
|
1451 |
+
if ( val.item && val.item.html ) {
|
1452 |
+
resizeVideo( data, val.item );
|
1453 |
+
}
|
1454 |
+
} );
|
1455 |
+
}
|
1456 |
+
return;
|
1457 |
+
}
|
1458 |
+
|
1459 |
+
// calculate real viewport in pixels
|
1460 |
+
const vpW = data.viewportSize.x;
|
1461 |
+
let vpH = data.viewportSize.y;
|
1462 |
+
const ratio = curItem.vw / curItem.vh;
|
1463 |
+
let resultW;
|
1464 |
+
const $container = $( curItem.container );
|
1465 |
+
|
1466 |
+
const bars = data.options.barsSize;
|
1467 |
+
let barTop = 0;
|
1468 |
+
let barBot = 0;
|
1469 |
+
if ( bars ) {
|
1470 |
+
barTop = bars.top && bars.top !== 'auto' ? bars.top : 0;
|
1471 |
+
barBot = bars.bottom && bars.bottom !== 'auto' ? bars.bottom : 0;
|
1472 |
+
}
|
1473 |
+
vpH -= barTop + barBot;
|
1474 |
+
|
1475 |
+
if ( ratio > vpW / vpH ) {
|
1476 |
+
resultW = vpW;
|
1477 |
+
} else {
|
1478 |
+
resultW = vpH * ratio;
|
1479 |
+
}
|
1480 |
+
|
1481 |
+
$container.find( '.vp-pswp-video' ).css( 'max-width', resultW );
|
1482 |
+
$container.css( {
|
1483 |
+
top: barTop,
|
1484 |
+
bottom: barBot,
|
1485 |
+
} );
|
1486 |
+
}
|
1487 |
+
|
1488 |
+
const openPhotoSwipe = function( index, galleryElement, disableAnimation, fromURL ) {
|
1489 |
+
const $pswpElement = $( '.vp-pswp' );
|
1490 |
+
const pswpElement = $pswpElement[ 0 ];
|
1491 |
+
const items = parseThumbnailElements( galleryElement );
|
1492 |
+
|
1493 |
+
// define options (if needed)
|
1494 |
+
const options = {
|
1495 |
+
captionAndToolbarShowEmptyCaptions: false,
|
1496 |
+
closeEl: settingsPopupGallery.show_close_button,
|
1497 |
+
captionEl: true,
|
1498 |
+
fullscreenEl: settingsPopupGallery.show_fullscreen_button,
|
1499 |
+
zoomEl: settingsPopupGallery.show_zoom_button,
|
1500 |
+
shareEl: settingsPopupGallery.show_share_button,
|
1501 |
+
counterEl: settingsPopupGallery.show_counter,
|
1502 |
+
arrowEl: settingsPopupGallery.show_arrows,
|
1503 |
+
shareButtons: [
|
1504 |
+
{ id: 'facebook', label: __.pswp_share_fb, url: 'https://www.facebook.com/sharer/sharer.php?u={{url}}' },
|
1505 |
+
{ id: 'twitter', label: __.pswp_share_tw, url: 'https://twitter.com/intent/tweet?text={{text}}&url={{url}}' },
|
1506 |
+
{
|
1507 |
+
id: 'pinterest',
|
1508 |
+
label: __.pswp_share_pin,
|
1509 |
+
url: 'https://www.pinterest.com/pin/create/button/' +
|
1510 |
+
'?url={{url}}&media={{image_url}}&description={{text}}',
|
1511 |
+
},
|
1512 |
+
],
|
1513 |
+
bgOpacity: 1,
|
1514 |
+
tapToClose: false,
|
1515 |
+
tapToToggleControls: true,
|
1516 |
+
showHideOpacity: true,
|
1517 |
+
galleryUID: self.uid,
|
1518 |
+
getThumbBoundsFn( thumbIndex ) {
|
1519 |
+
if ( ! items[ thumbIndex ] || ! items[ thumbIndex ].el ) {
|
1520 |
+
return false;
|
1521 |
+
}
|
1522 |
+
|
1523 |
+
const $el = $( items[ thumbIndex ].el ).find( 'img' )[ 0 ];
|
1524 |
+
|
1525 |
+
if ( ! $el ) {
|
1526 |
+
return false;
|
1527 |
+
}
|
1528 |
+
|
1529 |
+
const rect = $el.getBoundingClientRect();
|
1530 |
+
const pageYScroll = window.pageYOffset || document.documentElement.scrollTop;
|
1531 |
+
const pswpTop = parseFloat( $pswpElement.css( 'top' ) ) || 0;
|
1532 |
+
|
1533 |
+
return {
|
1534 |
+
x: rect.left,
|
1535 |
+
y: rect.top + pageYScroll - pswpTop,
|
1536 |
+
w: rect.width,
|
1537 |
+
h: rect.height,
|
1538 |
+
};
|
1539 |
+
},
|
1540 |
+
};
|
1541 |
+
|
1542 |
+
if ( fromURL ) {
|
1543 |
+
if ( options.galleryPIDs ) {
|
1544 |
+
// parse real index when custom PIDs are used
|
1545 |
+
// http://photoswipe.com/documentation/faq.html#custom-pid-in-url
|
1546 |
+
for ( let j = 0; j < items.length; j++ ) {
|
1547 |
+
if ( items[ j ].pid === index ) {
|
1548 |
+
options.index = j;
|
1549 |
+
break;
|
1550 |
+
}
|
1551 |
+
}
|
1552 |
+
} else {
|
1553 |
+
options.index = parseInt( index, 10 ) - 1;
|
1554 |
+
}
|
1555 |
+
} else {
|
1556 |
+
options.index = parseInt( index, 10 );
|
1557 |
+
}
|
1558 |
+
|
1559 |
+
// exit if index not found
|
1560 |
+
if ( isNaN( options.index ) ) {
|
1561 |
+
return;
|
1562 |
+
}
|
1563 |
+
|
1564 |
+
if ( disableAnimation ) {
|
1565 |
+
options.showAnimationDuration = 0;
|
1566 |
+
}
|
1567 |
+
|
1568 |
+
// Pass data to PhotoSwipe and initialize it
|
1569 |
+
const gallery = new PhotoSwipe( pswpElement, PhotoSwipeUI_Default, items, options );
|
1570 |
+
|
1571 |
+
// see: http://photoswipe.com/documentation/responsive-images.html
|
1572 |
+
let realViewportWidth;
|
1573 |
+
let useLargeImages = false;
|
1574 |
+
let firstResize = true;
|
1575 |
+
let imageSrcWillChange;
|
1576 |
+
|
1577 |
+
gallery.listen( 'beforeResize', () => {
|
1578 |
+
// gallery.viewportSize.x - width of PhotoSwipe viewport
|
1579 |
+
// gallery.viewportSize.y - height of PhotoSwipe viewport
|
1580 |
+
// window.devicePixelRatio - ratio between physical pixels and device independent pixels (Number)
|
1581 |
+
// 1 (regular display), 2 (@2x, retina) ...
|
1582 |
+
|
1583 |
+
// calculate real pixels when size changes
|
1584 |
+
realViewportWidth = gallery.viewportSize.x * window.devicePixelRatio;
|
1585 |
+
|
1586 |
+
// Code below is needed if you want image to switch dynamically on window.resize
|
1587 |
+
|
1588 |
+
// Find out if current images need to be changed
|
1589 |
+
if ( useLargeImages && realViewportWidth < 1000 ) {
|
1590 |
+
useLargeImages = false;
|
1591 |
+
imageSrcWillChange = true;
|
1592 |
+
} else if ( ! useLargeImages && realViewportWidth >= 1000 ) {
|
1593 |
+
useLargeImages = true;
|
1594 |
+
imageSrcWillChange = true;
|
1595 |
+
}
|
1596 |
+
|
1597 |
+
// Invalidate items only when source is changed and when it's not the first update
|
1598 |
+
if ( imageSrcWillChange && ! firstResize ) {
|
1599 |
+
// invalidateCurrItems sets a flag on slides that are in DOM,
|
1600 |
+
// which will force update of content (image) on window.resize.
|
1601 |
+
gallery.invalidateCurrItems();
|
1602 |
+
}
|
1603 |
+
|
1604 |
+
if ( firstResize ) {
|
1605 |
+
firstResize = false;
|
1606 |
+
}
|
1607 |
+
|
1608 |
+
imageSrcWillChange = false;
|
1609 |
+
} );
|
1610 |
+
|
1611 |
+
gallery.listen( 'gettingData', ( idx, item ) => {
|
1612 |
+
if ( item.html ) {
|
1613 |
+
return;
|
1614 |
+
}
|
1615 |
+
if ( useLargeImages ) {
|
1616 |
+
item.src = item.o.src;
|
1617 |
+
item.w = item.o.w;
|
1618 |
+
item.h = item.o.h;
|
1619 |
+
} else {
|
1620 |
+
item.src = item.m.src;
|
1621 |
+
item.w = item.m.w;
|
1622 |
+
item.h = item.m.h;
|
1623 |
+
}
|
1624 |
+
} );
|
1625 |
+
|
1626 |
+
gallery.listen( 'resize', function() {
|
1627 |
+
resizeVideo( this );
|
1628 |
+
} );
|
1629 |
+
|
1630 |
+
gallery.listen( 'afterChange', function() {
|
1631 |
+
resizeVideo( this );
|
1632 |
+
} );
|
1633 |
+
|
1634 |
+
// disable video play if no active.
|
1635 |
+
gallery.listen( 'beforeChange', function() {
|
1636 |
+
const data = this;
|
1637 |
+
if ( data && data.itemHolders.length ) {
|
1638 |
+
const currentIndex = data.getCurrentIndex();
|
1639 |
+
|
1640 |
+
data.itemHolders.forEach( ( val ) => {
|
1641 |
+
if ( val.el && val.index !== currentIndex ) {
|
1642 |
+
const $iframe = $( val.el ).find( '.vp-pswp-video iframe' );
|
1643 |
+
if ( $iframe.length ) {
|
1644 |
+
$iframe.attr( 'src', $iframe.attr( 'src' ) );
|
1645 |
+
}
|
1646 |
+
}
|
1647 |
+
} );
|
1648 |
+
}
|
1649 |
+
} );
|
1650 |
+
|
1651 |
+
// remove video block
|
1652 |
+
gallery.listen( 'destroy', function() {
|
1653 |
+
const data = this;
|
1654 |
+
if ( data && data.itemHolders.length ) {
|
1655 |
+
data.itemHolders.forEach( ( val ) => {
|
1656 |
+
if ( val.el ) {
|
1657 |
+
$( val.el ).find( '.vp-pswp-video' ).remove();
|
1658 |
+
}
|
1659 |
+
} );
|
1660 |
+
}
|
1661 |
+
} );
|
1662 |
+
|
1663 |
+
gallery.init();
|
1664 |
+
};
|
1665 |
+
|
1666 |
+
const photoswipeParseHash = function() {
|
1667 |
+
const hash = window.location.hash.substring( 1 );
|
1668 |
+
const params = {};
|
1669 |
+
|
1670 |
+
if ( hash.length < 5 ) { // pid=1
|
1671 |
+
return params;
|
1672 |
+
}
|
1673 |
+
|
1674 |
+
const vars = hash.split( '&' );
|
1675 |
+
for ( let i = 0; i < vars.length; i++ ) {
|
1676 |
+
if ( ! vars[ i ] ) {
|
1677 |
+
continue;
|
1678 |
+
}
|
1679 |
+
const pair = vars[ i ].split( '=' );
|
1680 |
+
if ( pair.length < 2 ) {
|
1681 |
+
continue;
|
1682 |
+
}
|
1683 |
+
params[ pair[ 0 ] ] = pair[ 1 ];
|
1684 |
+
}
|
1685 |
+
|
1686 |
+
return params;
|
1687 |
+
};
|
1688 |
+
|
1689 |
+
// click action
|
1690 |
+
self.$item.on( `click.vpf-uid-${ self.uid }`, '.vp-portfolio__item', function( e ) {
|
1691 |
+
if ( ! $( this ).closest( '.vp-portfolio__item-wrap' ).find( '.vp-portfolio__item-popup' ).length ) {
|
1692 |
+
return;
|
1693 |
+
}
|
1694 |
+
|
1695 |
+
e.preventDefault();
|
1696 |
+
|
1697 |
+
let index = 0;
|
1698 |
+
const clicked = this;
|
1699 |
+
self.$item.find( '.vp-portfolio__item-wrap .vp-portfolio__item-popup' ).each( function( idx ) {
|
1700 |
+
if ( $( this ).closest( '.vp-portfolio__item-wrap' ).find( '.vp-portfolio__item' )[ 0 ] === clicked ) {
|
1701 |
+
index = idx;
|
1702 |
+
return false;
|
1703 |
+
}
|
1704 |
+
return true;
|
1705 |
+
} );
|
1706 |
+
openPhotoSwipe( index, self.$item[ 0 ] );
|
1707 |
+
} );
|
1708 |
+
|
1709 |
+
// Parse URL and open gallery if it contains #&pid=3&gid=1
|
1710 |
+
const hashData = photoswipeParseHash();
|
1711 |
+
if ( hashData.pid && hashData.gid === self.uid ) {
|
1712 |
+
openPhotoSwipe( hashData.pid, self.$item[ 0 ], true, true );
|
1713 |
+
}
|
1714 |
+
}
|
1715 |
+
|
1716 |
+
/**
|
1717 |
+
* Destroy Photoswipe plugin
|
1718 |
+
*/
|
1719 |
+
destroyPhotoswipe() {
|
1720 |
+
const self = this;
|
1721 |
+
|
1722 |
+
self.$item.off( `click.vpf-uid-${ self.uid }` );
|
1723 |
+
|
1724 |
+
$( `.vp-pswp-uid-${ self.uid }` ).remove();
|
1725 |
+
}
|
1726 |
+
|
1727 |
+
/**
|
1728 |
+
* Add New Items
|
1729 |
+
*
|
1730 |
+
* @param {object|dom|jQuery} $items - elements.
|
1731 |
+
* @param {bool} removeExisting - remove existing elements.
|
1732 |
+
*/
|
1733 |
+
addItems( $items, removeExisting ) {
|
1734 |
+
const self = this;
|
1735 |
+
const isotope = self.$items_wrap.data( 'isotope' );
|
1736 |
+
const fjGallery = self.$items_wrap.data( 'fjGallery' );
|
1737 |
+
const Swiper = self.$items_wrap.parent()[ 0 ].swiper;
|
1738 |
+
|
1739 |
+
self.removeNoscriptTags( $items );
|
1740 |
+
|
1741 |
+
if ( isotope ) {
|
1742 |
+
if ( removeExisting ) {
|
1743 |
+
const $existing = self.$items_wrap.find( '.vp-portfolio__item-wrap' );
|
1744 |
+
self.$items_wrap.isotope( 'remove', $existing );
|
1745 |
+
|
1746 |
+
// we need to prepend items when remove existing just because Tiles layout have troubles with appending and removing items
|
1747 |
+
self.$items_wrap.prepend( $items )
|
1748 |
+
.isotope( 'prepended', $items );
|
1749 |
+
} else {
|
1750 |
+
self.$items_wrap.append( $items )
|
1751 |
+
.isotope( 'appended', $items );
|
1752 |
+
}
|
1753 |
+
|
1754 |
+
// idk why, but with timeout isotope recalculate all items fine.
|
1755 |
+
setTimeout( () => {
|
1756 |
+
self.initIsotope( 'layout' );
|
1757 |
+
}, 0 );
|
1758 |
+
} else if ( fjGallery ) {
|
1759 |
+
if ( removeExisting ) {
|
1760 |
+
self.destroyFjGallery();
|
1761 |
+
self.$items_wrap.find( '.vp-portfolio__item-wrap' ).remove();
|
1762 |
+
self.$items_wrap.prepend( $items );
|
1763 |
+
self.initFjGallery();
|
1764 |
+
} else {
|
1765 |
+
self.$items_wrap.append( $items );
|
1766 |
+
self.initFjGallery( 'appendImages', $items );
|
1767 |
+
}
|
1768 |
+
} else if ( Swiper ) {
|
1769 |
+
if ( removeExisting ) {
|
1770 |
+
Swiper.removeAllSlides();
|
1771 |
+
}
|
1772 |
+
|
1773 |
+
const appendArr = [];
|
1774 |
+
$items.addClass( 'swiper-slide' ).each( function() {
|
1775 |
+
appendArr.push( this );
|
1776 |
+
} );
|
1777 |
+
Swiper.appendSlide( appendArr );
|
1778 |
+
}
|
1779 |
+
|
1780 |
+
self.emitEvent( 'addItems', [ $items, removeExisting ] );
|
1781 |
+
}
|
1782 |
+
|
1783 |
+
/**
|
1784 |
+
* Remove Items
|
1785 |
+
*
|
1786 |
+
* @param {object|dom|jQuery} $items - elements.
|
1787 |
+
*/
|
1788 |
+
removeItems( $items ) {
|
1789 |
+
const self = this;
|
1790 |
+
const isotope = self.$items_wrap.data( 'isotope' );
|
1791 |
+
|
1792 |
+
if ( isotope ) {
|
1793 |
+
self.$items_wrap.isotope( 'remove', $items );
|
1794 |
+
}
|
1795 |
+
|
1796 |
+
self.emitEvent( 'removeItems', [ $items ] );
|
1797 |
+
}
|
1798 |
+
|
1799 |
+
/**
|
1800 |
+
* AJAX Load New Items
|
1801 |
+
*
|
1802 |
+
* @param {string} url - url to request.
|
1803 |
+
* @param {bool} removeExisting - remove existing elements.
|
1804 |
+
* @param {function} cb - callback.
|
1805 |
+
*/
|
1806 |
+
loadNewItems( url, removeExisting, cb ) {
|
1807 |
+
const self = this;
|
1808 |
+
|
1809 |
+
if ( self.loading || ! url ) {
|
1810 |
+
return;
|
1811 |
+
}
|
1812 |
+
self.loading = true;
|
1813 |
+
|
1814 |
+
self.$item.addClass( 'vp-portfolio__loading' );
|
1815 |
+
|
1816 |
+
self.emitEvent( 'startLoadingNewItems', [ url ] );
|
1817 |
+
|
1818 |
+
// load to invisible container, then append to posts container
|
1819 |
+
$.get( url, {}, ( data ) => {
|
1820 |
+
data = data.replace( '<body', '<body><div id="vp-infinite-load-body"' ).replace( '</body>', '</div></body>' );
|
1821 |
+
const $body = $( data ).filter( '#vp-infinite-load-body' );
|
1822 |
+
|
1823 |
+
// find current block on new page
|
1824 |
+
const $newVP = $body.find( `.vp-portfolio.vp-uid-${ self.uid }` );
|
1825 |
+
|
1826 |
+
// insert new items
|
1827 |
+
if ( $newVP.length ) {
|
1828 |
+
const newItems = $newVP.find( '.vp-portfolio__items' ).html();
|
1829 |
+
|
1830 |
+
// update filter
|
1831 |
+
if ( self.$filter.length ) {
|
1832 |
+
self.$filter.each( function() {
|
1833 |
+
const $filter = $( this );
|
1834 |
+
let newFilterContent = '';
|
1835 |
+
|
1836 |
+
if ( $filter.parent().hasClass( 'vp-single-filter' ) ) {
|
1837 |
+
newFilterContent = $body.find( `[class="${ $filter.parent().attr( 'class' ).replace( ' vp-single-filter__ready', '' ) }"] .vp-portfolio__filter-wrap` ).html();
|
1838 |
+
} else {
|
1839 |
+
newFilterContent = $newVP.find( '.vp-portfolio__filter-wrap' ).html();
|
1840 |
+
}
|
1841 |
+
|
1842 |
+
$filter.html( newFilterContent );
|
1843 |
+
} );
|
1844 |
+
}
|
1845 |
+
|
1846 |
+
// update sort
|
1847 |
+
if ( self.$sort.length ) {
|
1848 |
+
self.$sort.each( function() {
|
1849 |
+
const $sort = $( this );
|
1850 |
+
let newFilterContent = '';
|
1851 |
+
|
1852 |
+
if ( $sort.parent().hasClass( 'vp-single-sort' ) ) {
|
1853 |
+
newFilterContent = $body.find( `[class="${ $sort.parent().attr( 'class' ).replace( ' vp-single-sort__ready', '' ) }"] .vp-portfolio__sort-wrap` ).html();
|
1854 |
+
} else {
|
1855 |
+
newFilterContent = $newVP.find( '.vp-portfolio__sort-wrap' ).html();
|
1856 |
+
}
|
1857 |
+
|
1858 |
+
$sort.html( newFilterContent );
|
1859 |
+
} );
|
1860 |
+
}
|
1861 |
+
|
1862 |
+
// update pagination
|
1863 |
+
if ( self.$pagination.length ) {
|
1864 |
+
self.$pagination.html( $newVP.find( '.vp-portfolio__pagination-wrap' ).html() );
|
1865 |
+
}
|
1866 |
+
|
1867 |
+
self.addItems( $( newItems ), removeExisting );
|
1868 |
+
|
1869 |
+
self.emitEvent( 'loadedNewItems', [ $newVP, $newVP, data ] );
|
1870 |
+
}
|
1871 |
+
|
1872 |
+
// update next page data
|
1873 |
+
const nextPageUrl = $newVP.attr( 'data-vp-next-page-url' );
|
1874 |
+
self.options.nextPageUrl = nextPageUrl;
|
1875 |
+
self.$item.attr( 'data-vp-next-page-url', nextPageUrl );
|
1876 |
+
|
1877 |
+
self.$item.removeClass( 'vp-portfolio__loading' );
|
1878 |
+
|
1879 |
+
self.loading = false;
|
1880 |
+
|
1881 |
+
self.emitEvent( 'endLoadingNewItems' );
|
1882 |
+
|
1883 |
+
self.prepareLazyLoad();
|
1884 |
+
|
1885 |
+
// init custom colors
|
1886 |
+
self.initCustomColors();
|
1887 |
+
|
1888 |
+
if ( cb ) {
|
1889 |
+
cb();
|
1890 |
+
}
|
1891 |
+
} );
|
1892 |
+
}
|
1893 |
+
}
|
1894 |
+
|
1895 |
+
// Lazyloaded - remove preloader images placeholder effect.
|
1896 |
+
$( document ).on( 'lazybeforeunveil', function( e ) {
|
1897 |
+
const $img = $( e.target );
|
1898 |
+
|
1899 |
+
if ( $img.hasClass( 'visual-portfolio-lazyload' ) ) {
|
1900 |
+
$img.closest( '.vp-portfolio__item-img' ).addClass( 'vp-portfolio__item-img-lazyloading' );
|
1901 |
+
$img.closest( '.vp-portfolio__thumbnail-img' ).addClass( 'vp-portfolio__thumbnail-img-lazyloading' );
|
1902 |
+
}
|
1903 |
+
} );
|
1904 |
+
$( document ).on( 'lazyloaded', function( e ) {
|
1905 |
+
const $img = $( e.target );
|
1906 |
+
|
1907 |
+
if ( $img.hasClass( 'visual-portfolio-lazyload' ) ) {
|
1908 |
+
$img.closest( '.vp-portfolio__item-img-lazyloading' ).removeClass( 'vp-portfolio__item-img-lazyloading' );
|
1909 |
+
$img.closest( '.vp-portfolio__thumbnail-img-lazyloading' ).removeClass( 'vp-portfolio__thumbnail-img-lazyloading' );
|
1910 |
+
}
|
1911 |
+
} );
|
1912 |
+
|
1913 |
+
// fix for Elementor popup gallery.
|
1914 |
+
// https://github.com/nk-o/visual-portfolio/issues/103
|
1915 |
+
if ( $( '.elementor' ).length ) {
|
1916 |
+
$( document ).on( 'init.vpf addItems.vpf', function( event, vpObject ) {
|
1917 |
+
if ( 'vpf' !== event.namespace ) {
|
1918 |
+
return;
|
1919 |
+
}
|
1920 |
+
|
1921 |
+
vpObject.$item.find( '.vp-portfolio__item a' ).each( function() {
|
1922 |
+
if ( /\.(png|jpe?g|gif|svg)(\?.*)?$/i.test( this.href ) ) {
|
1923 |
+
$( this ).attr( 'data-elementor-open-lightbox', 'no' );
|
1924 |
+
}
|
1925 |
+
} );
|
1926 |
+
} );
|
1927 |
+
}
|
1928 |
+
|
1929 |
+
// global definition
|
1930 |
+
const plugin = function( options ) {
|
1931 |
+
const args = Array.prototype.slice.call( arguments, 1 );
|
1932 |
+
let ret;
|
1933 |
+
|
1934 |
+
this.each( function() {
|
1935 |
+
if ( typeof ret !== 'undefined' ) {
|
1936 |
+
return;
|
1937 |
+
}
|
1938 |
+
|
1939 |
+
if ( typeof options === 'object' || typeof options === 'undefined' ) {
|
1940 |
+
if ( ! this.vpf ) {
|
1941 |
+
this.vpf = new VP( $( this ), options );
|
1942 |
+
}
|
1943 |
+
} else if ( this.vpf ) {
|
1944 |
+
ret = this.vpf[ options ]( ...args );
|
1945 |
+
}
|
1946 |
+
} );
|
1947 |
+
|
1948 |
+
return typeof ret !== 'undefined' ? ret : this;
|
1949 |
+
};
|
1950 |
+
plugin.constructor = VP;
|
1951 |
+
|
1952 |
+
// no conflict
|
1953 |
+
const oldPlugin = jQuery.fn.vpf;
|
1954 |
+
jQuery.fn.vpf = plugin;
|
1955 |
+
jQuery.fn.vpf.noConflict = function() {
|
1956 |
+
jQuery.fn.vpf = oldPlugin;
|
1957 |
+
return this;
|
1958 |
+
};
|
1959 |
+
|
1960 |
+
// initialization
|
1961 |
+
$( '.vp-portfolio' ).vpf();
|
1962 |
+
$( () => {
|
1963 |
+
$( '.vp-portfolio' ).vpf();
|
1964 |
+
} );
|
1965 |
+
|
1966 |
+
const throttledInit = throttle( 200, () => {
|
1967 |
+
rafl( () => {
|
1968 |
+
$( '.vp-portfolio:not(.vp-portfolio__ready)' ).vpf();
|
1969 |
+
} );
|
1970 |
+
} );
|
1971 |
+
if ( window.MutationObserver ) {
|
1972 |
+
new window.MutationObserver( throttledInit )
|
1973 |
+
.observe( document.documentElement, {
|
1974 |
+
childList: true, subtree: true,
|
1975 |
+
} );
|
1976 |
+
} else {
|
1977 |
+
$( document ).on( 'DOMContentLoaded DOMNodeInserted load', () => {
|
1978 |
+
throttledInit();
|
1979 |
+
} );
|
1980 |
+
}
|
assets/js/script.min.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
-
!function(t){var i={};function e(o){if(i[o])return i[o].exports;var s=i[o]={i:o,l:!1,exports:{}};return t[o].call(s.exports,s,s.exports,e),s.l=!0,s.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 s in t)e.d(o,s,function(i){return t[i]}.bind(null,s));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=
|
2 |
/*!
|
3 |
* Name : Visual Portfolio
|
4 |
-
* Version :
|
5 |
* Author : nK https://nkdev.info
|
6 |
*/
|
7 |
-
var l=jQuery,d=window,c=d.VPData,f=d.objectFitImages,v=d.PhotoSwipe,u=d.PhotoSwipeUI_Default,h=c.__,m=c.settingsPopupGallery,_=l(window),w=0,y=0;function g(){w=_.width(),y=_.height()}g(),_.on("resize load orientationchange",g);var b=[320,576,768,992,1200];void 0!==f&&(f(".vp-portfolio img:not(.visual-portfolio-lazyload)"),l(document).on("lazybeforeunveil",function(t){var i=l(t.target);i.hasClass("visual-portfolio-lazyload")&&i.one("load",function(){f(i[0])})}));var $=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+/),s=0;s<o.length;s++)o[s]&&/^vp-uid-/.test(o[s])&&(this.uid=o[s].replace(/^vp-uid-/,"")),o[s]&&/^vp-id-/.test(o[s])&&(this.id=o[s].replace(/^vp-id-/,""));this.uid?(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(h.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.removeNoscriptTags(this.$items_wrap),this.initOptions(),this.initEvents(),this.prepareLazyLoad(),this.initLayout(),this.initCustomColors(),this.initPhotoswipe(),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.initIsotope(),this.initFjGallery(),this.initSwiper(),this.resized(),this.imagesLoaded(),this.firstRun=!1}},{key:"resized",value:function(){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)}this.emitEvent("resized")}},{key:"imagesLoaded",value:function(){var t=this,i=this;i.$items_wrap.imagesLoaded&&i.$items_wrap.imagesLoaded(function(){i.initIsotope("layout"),i.initFjGallery(),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.destroyPhotoswipe(),this.destroyIsotope(),this.destroyFjGallery(),this.destroySwiper(),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(s){e+=".vp-uid-".concat(i," ").concat(s," {"),Object.keys(t.stylesList[i][o][s]).forEach(function(n){e+="".concat(n,":").concat(t.stylesList[i][o][s][n],";")}),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,tilesType:"3|1,1|",masonryColumns:3,gridColumns:3,justifiedRowHeight:250,justifiedRowHeightTolerance:.25,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:"isCrossLine",value:function(t,i,e,o){var s=(o.x-e.x)*(t.y-e.y)-(o.y-e.y)*(t.x-e.x),n=(o.x-e.x)*(i.y-e.y)-(o.y-e.y)*(i.x-e.x),a=(i.x-t.x)*(e.y-t.y)-(i.y-t.y)*(e.x-t.x),r=(i.x-t.x)*(o.y-t.y)-(i.y-t.y)*(o.x-t.x);return s*n<=0&&a*r<=0}},{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=w-t.right,s=parseFloat(i.$item.css("margin-left")||0),n=parseFloat(i.$item.css("margin-right")||0);i.$item.css({"margin-left":s-e,"margin-right":n-o})}if(i.$item.hasClass("vp-portfolio__stretch")&&(_.on("load".concat(e," resize").concat(e," orientationchange").concat(e),function(){o()}),o()),"fly"===i.options.itemsStyle){var s={};_.on("mousemove".concat(e),function(t){s={x:t.clientX,y:t.clientY}}),i.$item.on("mouseenter".concat(e," mouseleave").concat(e),".vp-portfolio__item",function(t){var e=l(this),o=e[0].getBoundingClientRect(),n=e.find(".vp-portfolio__item-overlay"),a="mouseenter"===t.type,r="0%",p="0%",d={x:t.clientX,y:t.clientY},c=i.isCrossLine({x:o.left,y:o.top},{x:o.left+o.width,y:o.top},d,s),f=i.isCrossLine({x:o.left,y:o.top+o.height},{x:o.left+o.width,y:o.top+o.height},d,s),v=i.isCrossLine({x:o.left,y:o.top},{x:o.left,y:o.top+o.height},d,s),u=i.isCrossLine({x:o.left+o.width,y:o.top},{x:o.left+o.width,y:o.top+o.height},d,s);if(!(c||f||v||u)){var h=(o.width/2-d.x+o.left)/(o.width/2),m=(o.height/2-d.y+o.top)/(o.height/2);Math.abs(h)>Math.abs(m)?h>0?v=!0:u=!0:m>0?c=!0:f=!0}c?p="-10".concat(p):f?p="10".concat(p):v?r="-10".concat(r):u&&(r="10".concat(r)),a&&(n.css({transition:"none",transform:"translateX(".concat(r,") translateY(").concat(p,") translateZ(0)")}),n[0].offsetHeight),n.css({transition:".2s transform ease-in-out",transform:"translateX(".concat(a?"0%":r,") translateY(").concat(a?"0%":p,") translateZ(0)")})})}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);e.hasClass("vp-pagination__no-more")&&"paged"!==i.options.pagination||i.loadNewItems(e.attr("href"),"paged"===i.options.pagination)}),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)});var n=250;function a(){var t=i.$item[0].getBoundingClientRect();t.bottom>0&&t.bottom-n<=y&&i.loadNewItems(i.options.nextPageUrl,!1,function(){a()})}"infinite"===i.options.pagination&&(_.on("load".concat(e," scroll").concat(e," resize").concat(e," orientationchange").concat(e),function(){clearTimeout(t),t=setTimeout(function(){a()},60)}),a()),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),_.off(t),this.emitEvent("destroyEvents")}},{key:"prepareLazyLoad",value:function(){var t=window.lazySizesConfig;if(t){var i={"data-vpf-src":t.srcAttr,"data-vpf-sizes":t.sizesAttr,"data-vpf-srcset":t.srcsetAttr};this.$items_wrap.add(this.$slider_thumbnails_wrap).find(".visual-portfolio-lazyload:not(.".concat(t.lazyClass,")")).each(function(){var e=l(this);Object.keys(i).forEach(function(t){i[t]&&t!==i[t]&&e.attr(t)&&(e.attr(i[t],e.attr(t)),e.removeAttr(t))}),e.addClass(t.lazyClass)})}}},{key:"removeNoscriptTags",value:function(t){t.find("noscript").remove()}},{key:"getTilesSettings",value:function(){var t=this.options.tilesType.split(/[:|]/);return void 0===t[t.length-1]||t[t.length-1]||t.pop(),t}},{key:"initLayout",value:function(){var t=this;if(t.options.layout)switch(t.options.layout){case"tiles":var i=t.getTilesSettings(),e=parseInt(i[0],10)||1;if(i.shift(),t.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/e,"%")}),i&&i.length)for(var o=0;o<i.length;o++){var s=i[o].split(","),n=parseFloat(s[0])||1,a=parseFloat(s[1])||1,r=".vp-portfolio__item-wrap";i.length>1&&(r+=":nth-of-type(".concat(i.length,"n+").concat(o+1,")")),n&&1!==n&&t.addStyle(r,{width:"".concat(100*n/e,"%")}),t.addStyle("".concat(r," .vp-portfolio__item-img-wrap::before"),{"margin-top":"".concat(100*a,"%")})}for(var p=e-1,l=Math.min(b.length-1,p);l>=0;l--)p>0&&void 0!==b[l]&&(t.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/p,"%")},"screen and (max-width: ".concat(b[l],"px)")),t.addStyle(".vp-portfolio__item-wrap:nth-of-type(n)",{width:"".concat(100/p,"%")},"screen and (max-width: ".concat(b[l],"px)"))),p-=1;break;case"masonry":case"grid":var d=t.options["masonry"===t.options.layout?"masonryColumns":"gridColumns"];t.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/d,"%")});for(var c=d-1,f=Math.min(b.length-1,c);f>=0;f--)c>0&&void 0!==b[f]&&t.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/c,"%")},"screen and (max-width: ".concat(b[f],"px)")),c-=1;case"justified":break;case"slider":["items","thumbnails"].forEach(function(i){var e="items"===i?t.options.sliderItemsHeight:t.options.sliderThumbnailsHeight,o=i.replace(/s$/g,"");if("auto"!==e)if("auto"===("items"===i?t.options.sliderSlidesPerView:t.options.sliderThumbnailsPerView)){var s="auto";"items"===i&&"fade"===t.options.sliderEffect&&(s="100%"),e.indexOf("%")===e.length-1?(t.addStyle(".vp-portfolio__".concat(i,"-wrap::before"),{content:'""',display:"block",width:"100%","margin-top":isNaN(e)?e:"".concat(e,"px")}),t.addStyle(".vp-portfolio__".concat(i),{position:"absolute",top:0,left:0,right:0,bottom:0}),t.addStyle(".vp-portfolio__".concat(o,"-wrap"),{width:"auto",height:"true"===t.options.sliderBullets?"calc( 100% - 25px )":"100%"}),t.addStyle(".vp-portfolio__".concat(o,", .vp-portfolio__").concat(o,"-img-wrap, .vp-portfolio__").concat(o,"-img, .vp-portfolio__").concat(o,"-wrap .vp-portfolio__").concat(o," .vp-portfolio__").concat(o,"-img a, .vp-portfolio__").concat(o,"-wrap .vp-portfolio__").concat(o," .vp-portfolio__").concat(o,"-img img"),{width:s,height:"100%"})):(t.addStyle(".vp-portfolio__".concat(o,"-wrap"),{width:"auto"}),t.addStyle(".vp-portfolio__".concat(o," .vp-portfolio__").concat(o,"-img img"),{width:s,height:isNaN(e)?e:"".concat(e,"px")}))}else t.addStyle(".vp-portfolio__".concat(o,"-img-wrap::before"),{"margin-top":isNaN(e)?e:"".concat(e,"px")}),t.addStyle(".vp-portfolio__".concat(o,"-img img"),{position:"absolute",top:0,right:0,bottom:0,left:0}),t.addStyle(".vp-portfolio__".concat(o,"-img"),{position:"absolute",top:0,right:0,bottom:0,left:0}),t.addStyle(".vp-portfolio__".concat(o," .vp-portfolio__").concat(o,"-img img"),{width:"100%",height:"100%"})}),t.options.sliderThumbnailsGap&&t.addStyle(".vp-portfolio__thumbnails-wrap",{"margin-top":"".concat(t.options.sliderThumbnailsGap,"px")})}var v=parseInt(t.options.itemsGap,10);if(v&&("tiles"===t.options.layout||"masonry"===t.options.layout||"grid"===t.options.layout)){t.addStyle(".vp-portfolio__items",{"margin-left":"-".concat(v,"px"),"margin-top":"-".concat(v,"px")});var u="".concat(v,"px");t.addStyle(".vp-portfolio__items .vp-portfolio__item-wrap .vp-portfolio__item",{"margin-left":u,"margin-top":u}),"tiles"===t.options.layout&&(t.addStyle(".vp-portfolio__item-wrap .vp-portfolio__item-img-wrap",{"margin-left":"-".concat(u),"margin-top":"-".concat(u)}),t.addStyle(".vp-portfolio__item-wrap .vp-portfolio__item-img",{left:u,top:u}))}t.renderStyle(),t.emitEvent("initLayout")}},{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:"initIsotope",value:function(t){if(this.$items_wrap.isotope&&("tiles"===this.options.layout||"masonry"===this.options.layout||"grid"===this.options.layout)){var i=t||{itemSelector:".vp-portfolio__item-wrap",layoutMode:"grid"===this.options.layout?"fitRows":"masonry",transitionDuration:"0.3s",percentPosition:!0};this.emitEvent("beforeInitIsotope",[t]),this.$items_wrap.isotope(i),this.emitEvent("initIsotope",[t])}}},{key:"destroyIsotope",value:function(){this.$items_wrap.data("isotope")&&(this.$items_wrap.isotope("destroy"),this.emitEvent("destroyIsotope"))}},{key:"initFjGallery",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.$items_wrap.fjGallery&&"justified"===this.options.layout){var e=!1!==t?t:{gutter:parseFloat(this.options.itemsGap)||0,rowHeight:parseFloat(this.options.justifiedRowHeight)||200,rowHeightTolerance:parseFloat(this.options.justifiedRowHeightTolerance)||0,itemSelector:".vp-portfolio__item-wrap",imageSelector:".vp-portfolio__item-img img"};this.emitEvent("beforeInitFjGallery",[e,i]),this.$items_wrap.fjGallery(e,i),this.emitEvent("initFjGallery",[e,i])}}},{key:"destroyFjGallery",value:function(){this.$items_wrap.data("fjGallery")&&(this.$items_wrap.fjGallery("destroy"),this.emitEvent("destroyFjGallery"))}},{key:"initSwiper",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if("slider"===this.options.layout&&void 0!==window.Swiper){var i=this.$items_wrap.parent();i.addClass("swiper-container"),this.$items_wrap.addClass("swiper-wrapper"),this.$items_wrap.children().addClass("swiper-slide"),"true"!==this.options.sliderArrows||i.find(".vp-portfolio__items-arrow").length||i.append('\n <div class="vp-portfolio__items-arrow vp-portfolio__items-arrow-prev"><span class="'.concat(this.options.sliderArrowsIconPrev,'"></span></div>\n <div class="vp-portfolio__items-arrow vp-portfolio__items-arrow-next"><span class="').concat(this.options.sliderArrowsIconNext,'"></span></div>\n ')),"true"!==this.options.sliderBullets||i.find(".vp-portfolio__items-bullets").length||i.append('<div class="vp-portfolio__items-bullets"></div>');var e=this.options.sliderSlidesPerView||3,o={};if(!isNaN(e))for(var s=e-1,n=Math.min(b.length-1,s);n>=0;n--)s>0&&void 0!==b[n]&&(o[b[n]]={slidesPerView:s}),s-=1;"fade"===(t=t||{speed:1e3*(parseFloat(this.options.sliderSpeed)||0),autoHeight:"auto"===this.options.sliderItemsHeight,effect:this.options.sliderEffect||"slide",spaceBetween:parseFloat(this.options.itemsGap)||0,centeredSlides:"true"===this.options.sliderCenteredSlides,freeMode:"true"===this.options.sliderFreeMode,freeModeSticky:"true"===this.options.sliderFreeModeSticky,loop:"true"===this.options.sliderLoop,autoplay:parseFloat(this.options.sliderAutoplay)>0&&{delay:1e3*parseFloat(this.options.sliderAutoplay),disableOnInteraction:!1},navigation:"true"===this.options.sliderArrows&&{nextEl:".vp-portfolio__items-arrow-next",prevEl:".vp-portfolio__items-arrow-prev"},pagination:"true"===this.options.sliderBullets&&{el:".vp-portfolio__items-bullets",clickable:!0,dynamicBullets:"true"===this.options.sliderBulletsDynamic,renderBullet:function(t,i){return'<span class="'.concat(i,'" data-bullet-index="').concat(t,'" data-bullet-number="').concat(t+1,'"></span>')}},mousewheel:"true"===this.options.sliderMousewheel,slidesPerView:e,breakpoints:o,keyboard:!0,grabCursor:!0}).effect&&(t.fadeEffect={crossFade:!0}),0===t.speed&&(t.speed=1);var a=0;if(t.on={transitionEnd:function(){0===a?(a=1,this.setTransition(1),this.setTranslate(this.translate+.1)):1===a&&(a=2,this.slideReset())}},this.emitEvent("beforeInitSwiper",[t]),this.$slider_thumbnails_wrap.length){var r=this.$slider_thumbnails_wrap.parent();r.addClass("swiper-container"),this.$slider_thumbnails_wrap.addClass("swiper-wrapper"),this.$slider_thumbnails_wrap.children().addClass("swiper-slide");var p=this.options.sliderThumbnailsPerView||8,l={};if(!isNaN(p))for(var d=p-1,c=Math.min(b.length-1,d);c>=0;c--)d>0&&void 0!==b[c]&&(l[b[c]]={slidesPerView:d}),d-=1;var f=new window.Swiper(r[0],{autoHeight:"auto"===this.options.sliderThumbnailsHeight,effect:"slide",spaceBetween:parseFloat(this.options.sliderThumbnailsGap)||0,loop:!1,freeMode:!0,freeModeSticky:!0,loopedSlides:5,slidesPerView:p,breakpoints:l,keyboard:!0,grabCursor:!0,watchSlidesVisibility:!0,watchSlidesProgress:!0});t.thumbs={swiper:f}}new window.Swiper(i[0],t),"true"===this.options.sliderAutoplayHoverPause&&parseFloat(this.options.sliderAutoplay)>0&&(this.$item.on("mouseenter.vpf-uid-".concat(this.uid),".swiper-container",function(){i[0].swiper.autoplay.stop()}),this.$item.on("mouseleave.vpf-uid-".concat(this.uid),".swiper-container",function(){i[0].swiper.autoplay.start()})),this.emitEvent("initSwiper",[t])}}},{key:"destroySwiper",value:function(){var t=this.$items_wrap.parent(),i=t[0].swiper;i&&(i.destroy(),t.removeClass("swiper-container"),this.$items_wrap.removeClass("swiper-wrapper"),this.$items_wrap.children().removeClass("swiper-slide"),t.find(".vp-portfolio__items-arrow, .vp-portfolio__items-bullets").remove(),this.emitEvent("destroySwiper"))}},{key:"parseVideo",value:function(t){var i,e=!(!(i=t.match(/.*(?:youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=)([^#\&\?]*).*/))||11!==i[1].length)&&i[1],o=function(t){var i=t.match(/https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)(?:$|\/|\?)/);return!(!i||!i[3])&&i[3]}(t);return e?{vendor:"youtube",id:e,url:t,embed:'<iframe width="1920" height="1080" src="https://www.youtube.com/embed/'.concat(e,'" frameborder="0" allowfullscreen></iframe>')}:!!o&&{vendor:"vimeo",id:o,url:t,embed:'<iframe width="1920" height="1080" src="//player.vimeo.com/video/'.concat(e,'" frameborder="0" allowfullscreen></iframe>')}}},{key:"initPhotoswipe",value:function(){var t=this;if(void 0!==v&&t.options.itemsClickAction&&"popup_gallery"===t.options.itemsClickAction&&!t.$item.closest("#vp_preview").length){if(!l(".vp-pswp").length){var i='\n <div class="pswp vp-pswp vp-pswp-uid-'.concat(t.uid,'" tabindex="-1" role="dialog" aria-hidden="true">\n <div class="pswp__bg"></div>\n <div class="pswp__scroll-wrap">\n <div class="pswp__container">\n <div class="pswp__item"></div>\n <div class="pswp__item"></div>\n <div class="pswp__item"></div>\n </div>\n <div class="pswp__ui pswp__ui--hidden">\n <div class="pswp__top-bar">\n <div class="pswp__counter"></div>\n <a class="pswp__button pswp__button--close" title="').concat(h.pswp_close,'"></a>\n <a class="pswp__button pswp__button--share" title="').concat(h.pswp_share,'"></a>\n <a class="pswp__button pswp__button--fs" title="').concat(h.pswp_fs,'"></a>\n <a class="pswp__button pswp__button--zoom" title="').concat(h.pswp_zoom,'"></a>\n </div>\n <div class="pswp__preloader">\n <div class="pswp__preloader__icn">\n <div class="pswp__preloader__cut">\n <div class="pswp__preloader__donut"></div>\n </div>\n </div>\n </div>\n <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">\n <div class="pswp__share-tooltip"></div>\n </div>\n <a class="pswp__button pswp__button--arrow--left" title="').concat(h.pswp_prev,'"></a>\n <a class="pswp__button pswp__button--arrow--right" title="').concat(h.pswp_next,'"></a>\n <div class="pswp__caption">\n <div class="pswp__caption__center"></div>\n </div>\n </div>\n </div>\n </div>\n ');l("body").append(i)}var e=function(i,e,o,n){var a=l(".vp-pswp"),r=a[0],p=function(i){var e,o,s,n,a,r,p=l(i).find(".vp-portfolio__item-wrap"),d=[];return p.each(function(){if((e=l(this).find(".vp-portfolio__item-popup"))&&e.length){if(o=(e.attr("data-vp-popup-img-size")||"1920x1080").split("x"),s="1920x1080".split("x"),a=e.attr("data-vp-popup-video"),r=!1,a&&(r=t.parseVideo(a)),r)n={html:'<div class="vp-pswp-video"><div>'.concat(r.embed,"</div></div>"),vw:parseInt(s[0],10),vh:parseInt(s[1],10)};else{n={src:e.attr("data-vp-popup-img"),w:parseInt(o[0],10),h:parseInt(o[1],10)};var i=e.children(".vp-portfolio__item-popup-title").get(0),p=e.children(".vp-portfolio__item-popup-description").get(0);(i||p)&&(n.title=(i?i.outerHTML:"")+(p?p.outerHTML:"")),n.el=this;var c=e.attr("data-vp-popup-md-img")||n.src;c&&(o=(e.attr("data-vp-popup-md-img-size")||e.attr("data-vp-popup-img-size")||"1920x1080").split("x"),n.m={src:c,w:parseInt(o[0],10),h:parseInt(o[1],10)},n.msrc=c),n.o={src:n.src,w:n.w,h:n.h}}d.push(n)}}),d}(e),d={captionAndToolbarShowEmptyCaptions:!1,closeEl:m.show_close_button,captionEl:!0,fullscreenEl:m.show_fullscreen_button,zoomEl:m.show_zoom_button,shareEl:m.show_share_button,counterEl:m.show_counter,arrowEl:m.show_arrows,shareButtons:[{id:"facebook",label:h.pswp_share_fb,url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:h.pswp_share_tw,url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:h.pswp_share_pin,url:"https://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"}],bgOpacity:1,tapToClose:!1,tapToToggleControls:!0,showHideOpacity:!0,galleryUID:t.uid,getThumbBoundsFn:function(t){if(!p[t]||!p[t].el)return!1;var i=l(p[t].el).find("img")[0];if(!i)return!1;var e=i.getBoundingClientRect(),o=window.pageYOffset||document.documentElement.scrollTop,s=parseFloat(a.css("top"))||0;return{x:e.left,y:e.top+o-s,w:e.width,h:e.height}}};if(n)if(d.galleryPIDs){for(var c=0;c<p.length;c++)if(p[c].pid===i){d.index=c;break}}else d.index=parseInt(i,10)-1;else d.index=parseInt(i,10);if(!isNaN(d.index)){o&&(d.showAnimationDuration=0);var f,_,w=new v(r,u,p,d),y=!1,g=!0;w.listen("beforeResize",function(){f=w.viewportSize.x*window.devicePixelRatio,y&&f<1e3?(y=!1,_=!0):!y&&f>=1e3&&(y=!0,_=!0),_&&!g&&w.invalidateCurrItems(),g&&(g=!1),_=!1}),w.listen("gettingData",function(t,i){i.html||(y?(i.src=i.o.src,i.w=i.o.w,i.h=i.o.h):(i.src=i.m.src,i.w=i.m.w,i.h=i.m.h))}),w.listen("resize",function(){s(this)}),w.listen("afterChange",function(){s(this)}),w.listen("beforeChange",function(){if(this&&this.itemHolders.length){var t=this.getCurrentIndex();this.itemHolders.forEach(function(i){if(i.el&&i.index!==t){var e=l(i.el).find(".vp-pswp-video iframe");e.length&&e.attr("src",e.attr("src"))}})}}),w.listen("destroy",function(){this&&this.itemHolders.length&&this.itemHolders.forEach(function(t){t.el&&l(t.el).find(".vp-pswp-video").remove()})}),w.init()}};t.$item.on("click.vpf-uid-".concat(t.uid),".vp-portfolio__item",function(i){if(l(this).closest(".vp-portfolio__item-wrap").find(".vp-portfolio__item-popup").length){i.preventDefault();var o=0,s=this;t.$item.find(".vp-portfolio__item-wrap .vp-portfolio__item-popup").each(function(t){return l(this).closest(".vp-portfolio__item-wrap").find(".vp-portfolio__item")[0]!==s||(o=t,!1)}),e(o,t.$item[0])}});var o=function(){var t=window.location.hash.substring(1),i={};if(t.length<5)return i;for(var e=t.split("&"),o=0;o<e.length;o++)if(e[o]){var s=e[o].split("=");s.length<2||(i[s[0]]=s[1])}return i}();o.pid&&o.gid===t.uid&&e(o.pid,t.$item[0],!0,!0)}function s(t,i){if(void 0!==i){var e,o=t.viewportSize.x,n=t.viewportSize.y,a=i.vw/i.vh,r=l(i.container),p=t.options.barsSize,d=0,c=0;p&&(d=p.top&&"auto"!==p.top?p.top:0,c=p.bottom&&"auto"!==p.bottom?p.bottom:0),e=a>o/(n-=d+c)?o:n*a,r.find(".vp-pswp-video").css("max-width",e),r.css({top:d,bottom:c})}else t&&t.itemHolders.length&&t.itemHolders.forEach(function(i){i.item&&i.item.html&&s(t,i.item)})}}},{key:"destroyPhotoswipe",value:function(){this.$item.off("click.vpf-uid-".concat(this.uid)),l(".vp-pswp-uid-".concat(this.uid)).remove()}},{key:"addItems",value:function(t,i){var e=this,o=e.$items_wrap.data("isotope"),s=e.$items_wrap.data("fjGallery"),n=e.$items_wrap.parent()[0].swiper;if(e.removeNoscriptTags(t),o){if(i){var a=e.$items_wrap.find(".vp-portfolio__item-wrap");e.$items_wrap.isotope("remove",a),e.$items_wrap.prepend(t).isotope("prepended",t)}else e.$items_wrap.append(t).isotope("appended",t);setTimeout(function(){e.initIsotope("layout")},0)}else if(s)i?(e.destroyFjGallery(),e.$items_wrap.find(".vp-portfolio__item-wrap").remove(),e.$items_wrap.prepend(t),e.initFjGallery()):(e.$items_wrap.append(t),e.initFjGallery("appendImages",t));else if(n){i&&n.removeAllSlides();var r=[];t.addClass("swiper-slide").each(function(){r.push(this)}),n.appendSlide(r)}e.emitEvent("addItems",[t,i])}},{key:"removeItems",value:function(t){this.$items_wrap.data("isotope")&&this.$items_wrap.isotope("remove",t),this.emitEvent("removeItems",[t])}},{key:"loadNewItems",value:function(t,i,e){var o=this;!o.loading&&t&&(o.loading=!0,o.$item.addClass("vp-portfolio__loading"),o.emitEvent("startLoadingNewItems",[t]),l.get(t,{},function(t){t=t.replace("<body",'<body><div id="vp-infinite-load-body"').replace("</body>","</div></body>");var s=l(t).filter("#vp-infinite-load-body"),n=s.find(".vp-portfolio.vp-uid-".concat(o.uid));if(n.length){var a=n.find(".vp-portfolio__items").html();o.$filter.length&&o.$filter.each(function(){var t=l(this),i="";i=t.parent().hasClass("vp-single-filter")?s.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)}),o.$sort.length&&o.$sort.each(function(){var t=l(this),i="";i=t.parent().hasClass("vp-single-sort")?s.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)}),o.$pagination.length&&o.$pagination.html(n.find(".vp-portfolio__pagination-wrap").html()),o.addItems(l(a),i),o.emitEvent("loadedNewItems",[n,n,t])}var r=n.attr("data-vp-next-page-url");o.options.nextPageUrl=r,o.$item.attr("data-vp-next-page-url",r),o.$item.removeClass("vp-portfolio__loading"),o.loading=!1,o.emitEvent("endLoadingNewItems"),o.prepareLazyLoad(),o.initCustomColors(),e&&e()}))}}])&&p(i.prototype,e),o&&p(i,o),t}();l(document).on("lazybeforeunveil",function(t){var i=l(t.target);i.hasClass("visual-portfolio-lazyload")&&(i.closest(".vp-portfolio__item-img").addClass("vp-portfolio__item-img-lazyloading"),i.closest(".vp-portfolio__thumbnail-img").addClass("vp-portfolio__thumbnail-img-lazyloading"))}),l(document).on("lazyloaded",function(t){var i=l(t.target);i.hasClass("visual-portfolio-lazyload")&&(i.closest(".vp-portfolio__item-img-lazyloading").removeClass("vp-portfolio__item-img-lazyloading"),i.closest(".vp-portfolio__thumbnail-img-lazyloading").removeClass("vp-portfolio__thumbnail-img-lazyloading"))}),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")})});var x=function(t){var i,e=Array.prototype.slice.call(arguments,1);return this.each(function(){if(void 0===i)if("object"===r(t)||void 0===t)this.vpf||(this.vpf=new $(l(this),t));else if(this.vpf){var o;i=(o=this.vpf)[t].apply(o,a(e))}}),void 0!==i?i:this};x.constructor=$;var S=jQuery.fn.vpf;jQuery.fn.vpf=x,jQuery.fn.vpf.noConflict=function(){return jQuery.fn.vpf=S,this},l(".vp-portfolio").vpf(),l(function(){l(".vp-portfolio").vpf()});var C=Object(o.b)(200,function(){n()(function(){l(".vp-portfolio:not(.vp-portfolio__ready)").vpf()})});window.MutationObserver?new window.MutationObserver(C).observe(document.documentElement,{childList:!0,subtree:!0}):l(document).on("DOMContentLoaded DOMNodeInserted load",function(){C()})},170:function(t,i,e){(function(i){var e;e="undefined"!=typeof window?window:void 0!==i?i:"undefined"!=typeof self?self:{},t.exports=e}).call(this,e(77))},30:function(t,i,e){"use strict";function o(t,i,e,o){var s,n=!1,a=0;function r(){s&&clearTimeout(s)}function p(){var p=this,l=Date.now()-a,d=arguments;function c(){a=Date.now(),e.apply(p,d)}n||(o&&!s&&c(),r(),void 0===o&&l>t?c():!0!==i&&(s=setTimeout(o?function(){s=void 0}:c,void 0===o?t-l:t)))}return"boolean"!=typeof i&&(o=e,e=i,i=void 0),p.cancel=function(){r(),n=!0},p}function s(t,i,e){return void 0===e?o(t,i,!1):o(t,e,!1!==i)}e.d(i,"b",function(){return o}),e.d(i,"a",function(){return s})},77:function(t,i){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e}});
|
1 |
+
!function(t){var i={};function e(o){if(i[o])return i[o].exports;var s=i[o]={i:o,l:!1,exports:{}};return t[o].call(s.exports,s,s.exports,e),s.l=!0,s.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 s in t)e.d(o,s,function(i){return t[i]}.bind(null,s));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=6)}([function(t,i,e){"use strict";function o(t,i,e,o){var s,n=!1,a=0;function r(){s&&clearTimeout(s)}function l(){var l=this,p=Date.now()-a,d=arguments;function c(){a=Date.now(),e.apply(l,d)}n||(o&&!s&&c(),r(),void 0===o&&p>t?c():!0!==i&&(s=setTimeout(o?function(){s=void 0}:c,void 0===o?t-p:t)))}return"boolean"!=typeof i&&(o=e,e=i,i=void 0),l.cancel=function(){r(),n=!0},l}function s(t,i,e){return void 0===e?o(t,i,!1):o(t,e,!1!==i)}e.d(i,"b",function(){return o}),e.d(i,"a",function(){return s})},function(t,i,e){var o=e(8),s=o.requestAnimationFrame||o.webkitRequestAnimationFrame||o.mozRequestAnimationFrame||function(t){var i=+new Date,e=Math.max(0,16-(i-n)),o=setTimeout(t,e);return n=i,o},n=+new Date;var a=o.cancelAnimationFrame||o.webkitCancelAnimationFrame||o.mozCancelAnimationFrame||clearTimeout;Function.prototype.bind&&(s=s.bind(o),a=a.bind(o)),(t.exports=s).cancel=a},,,,,function(t,i,e){t.exports=e(7)},function(t,i,e){"use strict";e.r(i);var o=e(0),s=e(1),n=e.n(s);function a(t){return function(t){if(Array.isArray(t)){for(var i=0,e=new Array(t.length);i<t.length;i++)e[i]=t[i];return e}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function r(t){return(r="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 l(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)}}
|
2 |
/*!
|
3 |
* Name : Visual Portfolio
|
4 |
+
* Version : @@plugin_version
|
5 |
* Author : nK https://nkdev.info
|
6 |
*/
|
7 |
+
var p=jQuery,d=window,c=d.VPData,f=d.objectFitImages,v=d.PhotoSwipe,u=d.PhotoSwipeUI_Default,h=c.__,m=c.settingsPopupGallery,_=p(window),w=0,y=0;function g(){w=_.width(),y=_.height()}g(),_.on("resize load orientationchange",g);var b=[320,576,768,992,1200];if(void 0!==f&&(f(".vp-portfolio img:not(.visual-portfolio-lazyload)"),p(document).on("lazybeforeunveil",function(t){var i=p(t.target);i.hasClass("visual-portfolio-lazyload")&&i.one("load",function(){f(i[0])})})),void 0!==window.Isotope&&void 0!==window.Isotope.LayoutMode){var $=window.Isotope.LayoutMode.modes.masonry;if($){var x=$.prototype.measureColumns;$.prototype.measureColumns=function(){if(!this.columnWidth){var t=p(this.element).closest('.vp-portfolio[data-vp-layout="tiles"]');if(t.length){var i=t.attr("data-vp-tiles-type").split("|");(i=parseInt(i[0]))&&(this.columnWidth=this.containerWidth/i)}}x.call(this)}}}var S=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+/),s=0;s<o.length;s++)o[s]&&/^vp-uid-/.test(o[s])&&(this.uid=o[s].replace(/^vp-uid-/,"")),o[s]&&/^vp-id-/.test(o[s])&&(this.id=o[s].replace(/^vp-id-/,""));this.uid?(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(h.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.removeNoscriptTags(this.$items_wrap),this.initOptions(),this.initEvents(),this.prepareLazyLoad(),this.initLayout(),this.initCustomColors(),this.initPhotoswipe(),this.emitEvent("init"),this.$item.addClass("vp-portfolio__ready"),this.id&&(p(".vp-single-filter.vp-id-".concat(this.id)).addClass("vp-single-filter__ready"),p(".vp-single-sort.vp-id-".concat(this.id)).addClass("vp-single-sort__ready")),this.initIsotope(),this.initFjGallery(),this.initSwiper(),this.resized(),this.imagesLoaded(),this.firstRun=!1}},{key:"resized",value:function(){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)}this.emitEvent("resized")}},{key:"imagesLoaded",value:function(){var t=this,i=this;i.$items_wrap.imagesLoaded&&i.$items_wrap.imagesLoaded(function(){i.initIsotope("layout"),i.initFjGallery(),t.emitEvent("imagesLoaded")})}},{key:"destroy",value:function(){this.$item.removeClass("vp-portfolio__ready"),this.id&&(p(".vp-single-filter.vp-id-".concat(this.id)).removeClass("vp-single-filter__ready"),p(".vp-single-sort.vp-id-".concat(this.id)).removeClass("vp-single-sort__ready")),this.destroyEvents(),this.removeStyle(),this.renderStyle(),this.destroyPhotoswipe(),this.destroyIsotope(),this.destroyFjGallery(),this.destroySwiper(),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]=p.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(s){e+=".vp-uid-".concat(i," ").concat(s," {"),Object.keys(t.stylesList[i][o][s]).forEach(function(n){e+="".concat(n,":").concat(t.stylesList[i][o][s][n],";")}),e+="}"}),o&&(e+="}")});var o=p("#vp-style-".concat(i));o.length||(o=p("<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,tilesType:"3|1,1|",masonryColumns:3,gridColumns:3,justifiedRowHeight:250,justifiedRowHeightTolerance:.25,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=p.extend({},i.defaults,o,i.userOptions),i.emitEvent("initOptions")}},{key:"isCrossLine",value:function(t,i,e,o){var s=(o.x-e.x)*(t.y-e.y)-(o.y-e.y)*(t.x-e.x),n=(o.x-e.x)*(i.y-e.y)-(o.y-e.y)*(i.x-e.x),a=(i.x-t.x)*(e.y-t.y)-(i.y-t.y)*(e.x-t.x),r=(i.x-t.x)*(o.y-t.y)-(i.y-t.y)*(o.x-t.x);return s*n<=0&&a*r<=0}},{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=w-t.right,s=parseFloat(i.$item.css("margin-left")||0),n=parseFloat(i.$item.css("margin-right")||0);i.$item.css({"margin-left":s-e,"margin-right":n-o})}if(i.$item.hasClass("vp-portfolio__stretch")&&(_.on("load".concat(e," resize").concat(e," orientationchange").concat(e),function(){o()}),o()),"fly"===i.options.itemsStyle){var s={};_.on("mousemove".concat(e),function(t){s={x:t.clientX,y:t.clientY}}),i.$item.on("mouseenter".concat(e," mouseleave").concat(e),".vp-portfolio__item",function(t){var e=p(this),o=e[0].getBoundingClientRect(),n=e.find(".vp-portfolio__item-overlay"),a="mouseenter"===t.type,r="0%",l="0%",d={x:t.clientX,y:t.clientY},c=i.isCrossLine({x:o.left,y:o.top},{x:o.left+o.width,y:o.top},d,s),f=i.isCrossLine({x:o.left,y:o.top+o.height},{x:o.left+o.width,y:o.top+o.height},d,s),v=i.isCrossLine({x:o.left,y:o.top},{x:o.left,y:o.top+o.height},d,s),u=i.isCrossLine({x:o.left+o.width,y:o.top},{x:o.left+o.width,y:o.top+o.height},d,s);if(!(c||f||v||u)){var h=(o.width/2-d.x+o.left)/(o.width/2),m=(o.height/2-d.y+o.top)/(o.height/2);Math.abs(h)>Math.abs(m)?h>0?v=!0:u=!0:m>0?c=!0:f=!0}c?l="-10".concat(l):f?l="10".concat(l):v?r="-10".concat(r):u&&(r="10".concat(r)),a&&(n.css({transition:"none",transform:"translateX(".concat(r,") translateY(").concat(l,") translateZ(0)")}),n[0].offsetHeight),n.css({transition:".2s transform ease-in-out",transform:"translateX(".concat(a?"0%":r,") translateY(").concat(a?"0%":l,") translateZ(0)")})})}i.$filter.on("click".concat(e),".vp-filter .vp-filter__item a",function(t){t.preventDefault();var e=p(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=p(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=p(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=p(this);e.hasClass("vp-pagination__no-more")&&"paged"!==i.options.pagination||i.loadNewItems(e.attr("href"),"paged"===i.options.pagination)}),i.$item.on("click".concat(e),".vp-portfolio__items .vp-portfolio__item-meta-category a",function(t){t.preventDefault(),t.stopPropagation(),i.loadNewItems(p(this).attr("href"),!0)});var n=250;function a(){var t=i.$item[0].getBoundingClientRect();t.bottom>0&&t.bottom-n<=y&&i.loadNewItems(i.options.nextPageUrl,!1,function(){a()})}"infinite"===i.options.pagination&&(_.on("load".concat(e," scroll").concat(e," resize").concat(e," orientationchange").concat(e),function(){clearTimeout(t),t=setTimeout(function(){a()},60)}),a()),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),_.off(t),this.emitEvent("destroyEvents")}},{key:"prepareLazyLoad",value:function(){var t=window.lazySizesConfig;if(t){var i={"data-vpf-src":t.srcAttr,"data-vpf-sizes":t.sizesAttr,"data-vpf-srcset":t.srcsetAttr};this.$items_wrap.add(this.$slider_thumbnails_wrap).find(".visual-portfolio-lazyload:not(.".concat(t.lazyClass,")")).each(function(){var e=p(this);Object.keys(i).forEach(function(t){i[t]&&t!==i[t]&&e.attr(t)&&(e.attr(i[t],e.attr(t)),e.removeAttr(t))}),e.addClass(t.lazyClass)})}}},{key:"removeNoscriptTags",value:function(t){t.find("noscript").remove()}},{key:"getTilesSettings",value:function(){var t=this.options.tilesType.split(/[:|]/);return void 0===t[t.length-1]||t[t.length-1]||t.pop(),t}},{key:"initLayout",value:function(){var t=this;if(t.options.layout)switch(t.options.layout){case"tiles":var i=t.getTilesSettings(),e=parseInt(i[0],10)||1;if(i.shift(),t.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/e,"%")}),i&&i.length)for(var o=0;o<i.length;o++){var s=i[o].split(","),n=parseFloat(s[0])||1,a=parseFloat(s[1])||1,r=".vp-portfolio__item-wrap";i.length>1&&(r+=":nth-of-type(".concat(i.length,"n+").concat(o+1,")")),n&&1!==n&&t.addStyle(r,{width:"".concat(100*n/e,"%")}),t.addStyle("".concat(r," .vp-portfolio__item-img-wrap::before"),{"margin-top":"".concat(100*a,"%")})}for(var l=e-1,p=Math.min(b.length-1,l);p>=0;p--)l>0&&void 0!==b[p]&&(t.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/l,"%")},"screen and (max-width: ".concat(b[p],"px)")),t.addStyle(".vp-portfolio__item-wrap:nth-of-type(n)",{width:"".concat(100/l,"%")},"screen and (max-width: ".concat(b[p],"px)"))),l-=1;break;case"masonry":case"grid":var d=t.options["masonry"===t.options.layout?"masonryColumns":"gridColumns"];t.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/d,"%")});for(var c=d-1,f=Math.min(b.length-1,c);f>=0;f--)c>0&&void 0!==b[f]&&t.addStyle(".vp-portfolio__item-wrap",{width:"".concat(100/c,"%")},"screen and (max-width: ".concat(b[f],"px)")),c-=1;case"justified":break;case"slider":["items","thumbnails"].forEach(function(i){var e="items"===i?t.options.sliderItemsHeight:t.options.sliderThumbnailsHeight,o=i.replace(/s$/g,"");if("auto"!==e)if("auto"===("items"===i?t.options.sliderSlidesPerView:t.options.sliderThumbnailsPerView)){var s="auto";"items"===i&&"fade"===t.options.sliderEffect&&(s="100%"),e.indexOf("%")===e.length-1?(t.addStyle(".vp-portfolio__".concat(i,"-wrap::before"),{content:'""',display:"block",width:"100%","margin-top":isNaN(e)?e:"".concat(e,"px")}),t.addStyle(".vp-portfolio__".concat(i),{position:"absolute",top:0,left:0,right:0,bottom:0}),t.addStyle(".vp-portfolio__".concat(o,"-wrap"),{width:"auto",height:"true"===t.options.sliderBullets?"calc( 100% - 25px )":"100%"}),t.addStyle(".vp-portfolio__".concat(o,", .vp-portfolio__").concat(o,"-img-wrap, .vp-portfolio__").concat(o,"-img, .vp-portfolio__").concat(o,"-wrap .vp-portfolio__").concat(o," .vp-portfolio__").concat(o,"-img a, .vp-portfolio__").concat(o,"-wrap .vp-portfolio__").concat(o," .vp-portfolio__").concat(o,"-img img"),{width:s,height:"100%"})):(t.addStyle(".vp-portfolio__".concat(o,"-wrap"),{width:"auto"}),t.addStyle(".vp-portfolio__".concat(o," .vp-portfolio__").concat(o,"-img img"),{width:s,height:isNaN(e)?e:"".concat(e,"px")}))}else t.addStyle(".vp-portfolio__".concat(o,"-img-wrap::before"),{"margin-top":isNaN(e)?e:"".concat(e,"px")}),t.addStyle(".vp-portfolio__".concat(o,"-img img"),{position:"absolute",top:0,right:0,bottom:0,left:0}),t.addStyle(".vp-portfolio__".concat(o,"-img"),{position:"absolute",top:0,right:0,bottom:0,left:0}),t.addStyle(".vp-portfolio__".concat(o," .vp-portfolio__").concat(o,"-img img"),{width:"100%",height:"100%"})}),t.options.sliderThumbnailsGap&&t.addStyle(".vp-portfolio__thumbnails-wrap",{"margin-top":"".concat(t.options.sliderThumbnailsGap,"px")})}var v=parseInt(t.options.itemsGap,10);if(v&&("tiles"===t.options.layout||"masonry"===t.options.layout||"grid"===t.options.layout)){t.addStyle(".vp-portfolio__items",{"margin-left":"-".concat(v,"px"),"margin-top":"-".concat(v,"px")});var u="".concat(v,"px");t.addStyle(".vp-portfolio__items .vp-portfolio__item-wrap .vp-portfolio__item",{"margin-left":u,"margin-top":u}),"tiles"===t.options.layout&&(t.addStyle(".vp-portfolio__item-wrap .vp-portfolio__item-img-wrap",{"margin-left":"-".concat(u),"margin-top":"-".concat(u)}),t.addStyle(".vp-portfolio__item-wrap .vp-portfolio__item-img",{left:u,top:u}))}t.renderStyle(),t.emitEvent("initLayout")}},{key:"initCustomColors",value:function(){var t=this;t.$item.find("[data-vp-bg-color]").each(function(){var i=p(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=p(this).attr("data-vp-text-color");t.addStyle('[data-vp-text-color="'.concat(i,'"]'),{color:"".concat(i," !important")})}),t.renderStyle(),t.emitEvent("initCustomColors")}},{key:"initIsotope",value:function(t){if(this.$items_wrap.isotope&&("tiles"===this.options.layout||"masonry"===this.options.layout||"grid"===this.options.layout)){var i=t||{itemSelector:".vp-portfolio__item-wrap",layoutMode:"grid"===this.options.layout?"fitRows":"masonry",transitionDuration:"0.3s",percentPosition:!0};this.emitEvent("beforeInitIsotope",[t]),this.$items_wrap.isotope(i),this.emitEvent("initIsotope",[t])}}},{key:"destroyIsotope",value:function(){this.$items_wrap.data("isotope")&&(this.$items_wrap.isotope("destroy"),this.emitEvent("destroyIsotope"))}},{key:"initFjGallery",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.$items_wrap.fjGallery&&"justified"===this.options.layout){var e=!1!==t?t:{gutter:parseFloat(this.options.itemsGap)||0,rowHeight:parseFloat(this.options.justifiedRowHeight)||200,rowHeightTolerance:parseFloat(this.options.justifiedRowHeightTolerance)||0,itemSelector:".vp-portfolio__item-wrap",imageSelector:".vp-portfolio__item-img img"};this.emitEvent("beforeInitFjGallery",[e,i]),this.$items_wrap.fjGallery(e,i),this.emitEvent("initFjGallery",[e,i])}}},{key:"destroyFjGallery",value:function(){this.$items_wrap.data("fjGallery")&&(this.$items_wrap.fjGallery("destroy"),this.emitEvent("destroyFjGallery"))}},{key:"initSwiper",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if("slider"===this.options.layout&&void 0!==window.Swiper){var i=this.$items_wrap.parent();i.addClass("swiper-container"),this.$items_wrap.addClass("swiper-wrapper"),this.$items_wrap.children().addClass("swiper-slide"),"true"!==this.options.sliderArrows||i.find(".vp-portfolio__items-arrow").length||i.append('\n <div class="vp-portfolio__items-arrow vp-portfolio__items-arrow-prev"><span class="'.concat(this.options.sliderArrowsIconPrev,'"></span></div>\n <div class="vp-portfolio__items-arrow vp-portfolio__items-arrow-next"><span class="').concat(this.options.sliderArrowsIconNext,'"></span></div>\n ')),"true"!==this.options.sliderBullets||i.find(".vp-portfolio__items-bullets").length||i.append('<div class="vp-portfolio__items-bullets"></div>');var e=this.options.sliderSlidesPerView||3,o={};if(!isNaN(e))for(var s=e-1,n=Math.min(b.length-1,s);n>=0;n--)s>0&&void 0!==b[n]&&(o[b[n]]={slidesPerView:s}),s-=1;"fade"===(t=t||{speed:1e3*(parseFloat(this.options.sliderSpeed)||0),autoHeight:"auto"===this.options.sliderItemsHeight,effect:this.options.sliderEffect||"slide",spaceBetween:parseFloat(this.options.itemsGap)||0,centeredSlides:"true"===this.options.sliderCenteredSlides,freeMode:"true"===this.options.sliderFreeMode,freeModeSticky:"true"===this.options.sliderFreeModeSticky,loop:"true"===this.options.sliderLoop,autoplay:parseFloat(this.options.sliderAutoplay)>0&&{delay:1e3*parseFloat(this.options.sliderAutoplay),disableOnInteraction:!1},navigation:"true"===this.options.sliderArrows&&{nextEl:".vp-portfolio__items-arrow-next",prevEl:".vp-portfolio__items-arrow-prev"},pagination:"true"===this.options.sliderBullets&&{el:".vp-portfolio__items-bullets",clickable:!0,dynamicBullets:"true"===this.options.sliderBulletsDynamic,renderBullet:function(t,i){return'<span class="'.concat(i,'" data-bullet-index="').concat(t,'" data-bullet-number="').concat(t+1,'"></span>')}},mousewheel:"true"===this.options.sliderMousewheel,slidesPerView:e,breakpoints:o,keyboard:!0,grabCursor:!0}).effect&&(t.fadeEffect={crossFade:!0}),0===t.speed&&(t.speed=1);var a=0;if(t.on={transitionEnd:function(){0===a?(a=1,this.setTransition(1),this.setTranslate(this.translate+.1)):1===a&&(a=2,this.slideReset())}},this.emitEvent("beforeInitSwiper",[t]),this.$slider_thumbnails_wrap.length){var r=this.$slider_thumbnails_wrap.parent();r.addClass("swiper-container"),this.$slider_thumbnails_wrap.addClass("swiper-wrapper"),this.$slider_thumbnails_wrap.children().addClass("swiper-slide");var l=this.options.sliderThumbnailsPerView||8,p={};if(!isNaN(l))for(var d=l-1,c=Math.min(b.length-1,d);c>=0;c--)d>0&&void 0!==b[c]&&(p[b[c]]={slidesPerView:d}),d-=1;var f=new window.Swiper(r[0],{autoHeight:"auto"===this.options.sliderThumbnailsHeight,effect:"slide",spaceBetween:parseFloat(this.options.sliderThumbnailsGap)||0,loop:!1,freeMode:!0,freeModeSticky:!0,loopedSlides:5,slidesPerView:l,breakpoints:p,keyboard:!0,grabCursor:!0,watchSlidesVisibility:!0,watchSlidesProgress:!0});t.thumbs={swiper:f}}new window.Swiper(i[0],t),"true"===this.options.sliderAutoplayHoverPause&&parseFloat(this.options.sliderAutoplay)>0&&(this.$item.on("mouseenter.vpf-uid-".concat(this.uid),".swiper-container",function(){i[0].swiper.autoplay.stop()}),this.$item.on("mouseleave.vpf-uid-".concat(this.uid),".swiper-container",function(){i[0].swiper.autoplay.start()})),this.emitEvent("initSwiper",[t])}}},{key:"destroySwiper",value:function(){var t=this.$items_wrap.parent(),i=t[0].swiper;i&&(i.destroy(),t.removeClass("swiper-container"),this.$items_wrap.removeClass("swiper-wrapper"),this.$items_wrap.children().removeClass("swiper-slide"),t.find(".vp-portfolio__items-arrow, .vp-portfolio__items-bullets").remove(),this.emitEvent("destroySwiper"))}},{key:"parseVideo",value:function(t){var i,e=!(!(i=t.match(/.*(?:youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=)([^#\&\?]*).*/))||11!==i[1].length)&&i[1],o=function(t){var i=t.match(/https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)(?:$|\/|\?)/);return!(!i||!i[3])&&i[3]}(t);return e?{vendor:"youtube",id:e,url:t,embed:'<iframe width="1920" height="1080" src="https://www.youtube.com/embed/'.concat(e,'" frameborder="0" allowfullscreen></iframe>')}:o?{vendor:"vimeo",id:o,url:t,embed:'<iframe width="1920" height="1080" src="//player.vimeo.com/video/'.concat(o,'" frameborder="0" allowfullscreen></iframe>')}:{vendor:"unknown",id:t,url:t,embed:'<iframe width="1920" height="1080" src="'.concat(t,'" frameborder="0" allowfullscreen></iframe>')}}},{key:"initPhotoswipe",value:function(){var t=this;if(void 0!==v&&t.options.itemsClickAction&&"popup_gallery"===t.options.itemsClickAction&&!t.$item.closest("#vp_preview").length){if(!p(".vp-pswp").length){var i='\n <div class="pswp vp-pswp vp-pswp-uid-'.concat(t.uid,'" tabindex="-1" role="dialog" aria-hidden="true">\n <div class="pswp__bg"></div>\n <div class="pswp__scroll-wrap">\n <div class="pswp__container">\n <div class="pswp__item"></div>\n <div class="pswp__item"></div>\n <div class="pswp__item"></div>\n </div>\n <div class="pswp__ui pswp__ui--hidden">\n <div class="pswp__top-bar">\n <div class="pswp__counter"></div>\n <a class="pswp__button pswp__button--close" title="').concat(h.pswp_close,'"></a>\n <a class="pswp__button pswp__button--share" title="').concat(h.pswp_share,'"></a>\n <a class="pswp__button pswp__button--fs" title="').concat(h.pswp_fs,'"></a>\n <a class="pswp__button pswp__button--zoom" title="').concat(h.pswp_zoom,'"></a>\n </div>\n <div class="pswp__preloader">\n <div class="pswp__preloader__icn">\n <div class="pswp__preloader__cut">\n <div class="pswp__preloader__donut"></div>\n </div>\n </div>\n </div>\n <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">\n <div class="pswp__share-tooltip"></div>\n </div>\n <a class="pswp__button pswp__button--arrow--left" title="').concat(h.pswp_prev,'"></a>\n <a class="pswp__button pswp__button--arrow--right" title="').concat(h.pswp_next,'"></a>\n <div class="pswp__caption">\n <div class="pswp__caption__center"></div>\n </div>\n </div>\n </div>\n </div>\n ');p("body").append(i)}var e=function(i,e,o,n){var a=p(".vp-pswp"),r=a[0],l=function(i){var e,o,s,n,a,r,l=p(i).find(".vp-portfolio__item-wrap"),d=[];return l.each(function(){if((e=p(this).find(".vp-portfolio__item-popup"))&&e.length){if(o=(e.attr("data-vp-popup-img-size")||"1920x1080").split("x"),s="1920x1080".split("x"),a=e.attr("data-vp-popup-video"),r=!1,a&&(r=t.parseVideo(a)),r)n={html:'<div class="vp-pswp-video"><div>'.concat(r.embed,"</div></div>"),vw:parseInt(s[0],10),vh:parseInt(s[1],10)};else{n={src:e.attr("data-vp-popup-img"),w:parseInt(o[0],10),h:parseInt(o[1],10)};var i=e.children(".vp-portfolio__item-popup-title").get(0),l=e.children(".vp-portfolio__item-popup-description").get(0);(i||l)&&(n.title=(i?i.outerHTML:"")+(l?l.outerHTML:"")),n.el=this;var c=e.attr("data-vp-popup-md-img")||n.src;c&&(o=(e.attr("data-vp-popup-md-img-size")||e.attr("data-vp-popup-img-size")||"1920x1080").split("x"),n.m={src:c,w:parseInt(o[0],10),h:parseInt(o[1],10)},n.msrc=c),n.o={src:n.src,w:n.w,h:n.h}}d.push(n)}}),d}(e),d={captionAndToolbarShowEmptyCaptions:!1,closeEl:m.show_close_button,captionEl:!0,fullscreenEl:m.show_fullscreen_button,zoomEl:m.show_zoom_button,shareEl:m.show_share_button,counterEl:m.show_counter,arrowEl:m.show_arrows,shareButtons:[{id:"facebook",label:h.pswp_share_fb,url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:h.pswp_share_tw,url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:h.pswp_share_pin,url:"https://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"}],bgOpacity:1,tapToClose:!1,tapToToggleControls:!0,showHideOpacity:!0,galleryUID:t.uid,getThumbBoundsFn:function(t){if(!l[t]||!l[t].el)return!1;var i=p(l[t].el).find("img")[0];if(!i)return!1;var e=i.getBoundingClientRect(),o=window.pageYOffset||document.documentElement.scrollTop,s=parseFloat(a.css("top"))||0;return{x:e.left,y:e.top+o-s,w:e.width,h:e.height}}};if(n)if(d.galleryPIDs){for(var c=0;c<l.length;c++)if(l[c].pid===i){d.index=c;break}}else d.index=parseInt(i,10)-1;else d.index=parseInt(i,10);if(!isNaN(d.index)){o&&(d.showAnimationDuration=0);var f,_,w=new v(r,u,l,d),y=!1,g=!0;w.listen("beforeResize",function(){f=w.viewportSize.x*window.devicePixelRatio,y&&f<1e3?(y=!1,_=!0):!y&&f>=1e3&&(y=!0,_=!0),_&&!g&&w.invalidateCurrItems(),g&&(g=!1),_=!1}),w.listen("gettingData",function(t,i){i.html||(y?(i.src=i.o.src,i.w=i.o.w,i.h=i.o.h):(i.src=i.m.src,i.w=i.m.w,i.h=i.m.h))}),w.listen("resize",function(){s(this)}),w.listen("afterChange",function(){s(this)}),w.listen("beforeChange",function(){if(this&&this.itemHolders.length){var t=this.getCurrentIndex();this.itemHolders.forEach(function(i){if(i.el&&i.index!==t){var e=p(i.el).find(".vp-pswp-video iframe");e.length&&e.attr("src",e.attr("src"))}})}}),w.listen("destroy",function(){this&&this.itemHolders.length&&this.itemHolders.forEach(function(t){t.el&&p(t.el).find(".vp-pswp-video").remove()})}),w.init()}};t.$item.on("click.vpf-uid-".concat(t.uid),".vp-portfolio__item",function(i){if(p(this).closest(".vp-portfolio__item-wrap").find(".vp-portfolio__item-popup").length){i.preventDefault();var o=0,s=this;t.$item.find(".vp-portfolio__item-wrap .vp-portfolio__item-popup").each(function(t){return p(this).closest(".vp-portfolio__item-wrap").find(".vp-portfolio__item")[0]!==s||(o=t,!1)}),e(o,t.$item[0])}});var o=function(){var t=window.location.hash.substring(1),i={};if(t.length<5)return i;for(var e=t.split("&"),o=0;o<e.length;o++)if(e[o]){var s=e[o].split("=");s.length<2||(i[s[0]]=s[1])}return i}();o.pid&&o.gid===t.uid&&e(o.pid,t.$item[0],!0,!0)}function s(t,i){if(void 0!==i){var e,o=t.viewportSize.x,n=t.viewportSize.y,a=i.vw/i.vh,r=p(i.container),l=t.options.barsSize,d=0,c=0;l&&(d=l.top&&"auto"!==l.top?l.top:0,c=l.bottom&&"auto"!==l.bottom?l.bottom:0),e=a>o/(n-=d+c)?o:n*a,r.find(".vp-pswp-video").css("max-width",e),r.css({top:d,bottom:c})}else t&&t.itemHolders.length&&t.itemHolders.forEach(function(i){i.item&&i.item.html&&s(t,i.item)})}}},{key:"destroyPhotoswipe",value:function(){this.$item.off("click.vpf-uid-".concat(this.uid)),p(".vp-pswp-uid-".concat(this.uid)).remove()}},{key:"addItems",value:function(t,i){var e=this,o=e.$items_wrap.data("isotope"),s=e.$items_wrap.data("fjGallery"),n=e.$items_wrap.parent()[0].swiper;if(e.removeNoscriptTags(t),o){if(i){var a=e.$items_wrap.find(".vp-portfolio__item-wrap");e.$items_wrap.isotope("remove",a),e.$items_wrap.prepend(t).isotope("prepended",t)}else e.$items_wrap.append(t).isotope("appended",t);setTimeout(function(){e.initIsotope("layout")},0)}else if(s)i?(e.destroyFjGallery(),e.$items_wrap.find(".vp-portfolio__item-wrap").remove(),e.$items_wrap.prepend(t),e.initFjGallery()):(e.$items_wrap.append(t),e.initFjGallery("appendImages",t));else if(n){i&&n.removeAllSlides();var r=[];t.addClass("swiper-slide").each(function(){r.push(this)}),n.appendSlide(r)}e.emitEvent("addItems",[t,i])}},{key:"removeItems",value:function(t){this.$items_wrap.data("isotope")&&this.$items_wrap.isotope("remove",t),this.emitEvent("removeItems",[t])}},{key:"loadNewItems",value:function(t,i,e){var o=this;!o.loading&&t&&(o.loading=!0,o.$item.addClass("vp-portfolio__loading"),o.emitEvent("startLoadingNewItems",[t]),p.get(t,{},function(t){t=t.replace("<body",'<body><div id="vp-infinite-load-body"').replace("</body>","</div></body>");var s=p(t).filter("#vp-infinite-load-body"),n=s.find(".vp-portfolio.vp-uid-".concat(o.uid));if(n.length){var a=n.find(".vp-portfolio__items").html();o.$filter.length&&o.$filter.each(function(){var t=p(this),i="";i=t.parent().hasClass("vp-single-filter")?s.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)}),o.$sort.length&&o.$sort.each(function(){var t=p(this),i="";i=t.parent().hasClass("vp-single-sort")?s.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)}),o.$pagination.length&&o.$pagination.html(n.find(".vp-portfolio__pagination-wrap").html()),o.addItems(p(a),i),o.emitEvent("loadedNewItems",[n,n,t])}var r=n.attr("data-vp-next-page-url");o.options.nextPageUrl=r,o.$item.attr("data-vp-next-page-url",r),o.$item.removeClass("vp-portfolio__loading"),o.loading=!1,o.emitEvent("endLoadingNewItems"),o.prepareLazyLoad(),o.initCustomColors(),e&&e()}))}}])&&l(i.prototype,e),o&&l(i,o),t}();p(document).on("lazybeforeunveil",function(t){var i=p(t.target);i.hasClass("visual-portfolio-lazyload")&&(i.closest(".vp-portfolio__item-img").addClass("vp-portfolio__item-img-lazyloading"),i.closest(".vp-portfolio__thumbnail-img").addClass("vp-portfolio__thumbnail-img-lazyloading"))}),p(document).on("lazyloaded",function(t){var i=p(t.target);i.hasClass("visual-portfolio-lazyload")&&(i.closest(".vp-portfolio__item-img-lazyloading").removeClass("vp-portfolio__item-img-lazyloading"),i.closest(".vp-portfolio__thumbnail-img-lazyloading").removeClass("vp-portfolio__thumbnail-img-lazyloading"))}),p(".elementor").length&&p(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)&&p(this).attr("data-elementor-open-lightbox","no")})});var C=function(t){var i,e=Array.prototype.slice.call(arguments,1);return this.each(function(){if(void 0===i)if("object"===r(t)||void 0===t)this.vpf||(this.vpf=new S(p(this),t));else if(this.vpf){var o;i=(o=this.vpf)[t].apply(o,a(e))}}),void 0!==i?i:this};C.constructor=S;var E=jQuery.fn.vpf;jQuery.fn.vpf=C,jQuery.fn.vpf.noConflict=function(){return jQuery.fn.vpf=E,this},p(".vp-portfolio").vpf(),p(function(){p(".vp-portfolio").vpf()});var k=Object(o.b)(200,function(){n()(function(){p(".vp-portfolio:not(.vp-portfolio__ready)").vpf()})});window.MutationObserver?new window.MutationObserver(k).observe(document.documentElement,{childList:!0,subtree:!0}):p(document).on("DOMContentLoaded DOMNodeInserted load",function(){k()})},function(t,i,e){(function(i){var e;e="undefined"!=typeof window?window:void 0!==i?i:"undefined"!=typeof self?self:{},t.exports=e}).call(this,e(9))},function(t,i){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e}]);
|
class-visual-portfolio.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Plugin Name: Visual Portfolio
|
4 |
* Description: Portfolio post type with visual editor
|
5 |
-
* Version: 1.12.
|
6 |
* Author: nK
|
7 |
* Author URI: https://nkdev.info
|
8 |
* License: GPLv2 or later
|
@@ -210,9 +210,9 @@ class Visual_Portfolio {
|
|
210 |
}
|
211 |
|
212 |
// Visual Portfolio.
|
213 |
-
wp_register_script( 'visual-portfolio', visual_portfolio()->plugin_url . 'assets/js/script.min.js', $vp_deps, '1.12.
|
214 |
-
wp_register_style( 'visual-portfolio', visual_portfolio()->plugin_url . 'assets/css/style.min.css', $vp_style_deps, '1.12.
|
215 |
-
wp_register_style( 'visual-portfolio-noscript', visual_portfolio()->plugin_url . 'assets/css/noscript.min.css', $vp_style_deps, '1.12.
|
216 |
|
217 |
// Visual Portfolio data.
|
218 |
$data_init = array(
|
@@ -351,15 +351,12 @@ class Visual_Portfolio {
|
|
351 |
}
|
352 |
|
353 |
/**
|
354 |
-
*
|
355 |
*
|
356 |
-
* @param string
|
357 |
-
* @
|
358 |
-
* @param array $deps dependencies array.
|
359 |
-
* @param string|bool|null $ver version string.
|
360 |
-
* @param string $media media string.
|
361 |
*/
|
362 |
-
public function
|
363 |
$template = '';
|
364 |
|
365 |
if ( file_exists( get_stylesheet_directory() . '/visual-portfolio/' . $template_name . '.css' ) ) {
|
@@ -373,6 +370,26 @@ class Visual_Portfolio {
|
|
373 |
$template = $this->plugin_url . 'templates/' . $template_name . '.css';
|
374 |
}
|
375 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
376 |
// Allow 3rd party plugin filter template file from their plugin.
|
377 |
$template = apply_filters( 'vpf_include_template_style', $template, $template_name, $deps, $ver, $media );
|
378 |
|
2 |
/**
|
3 |
* Plugin Name: Visual Portfolio
|
4 |
* Description: Portfolio post type with visual editor
|
5 |
+
* Version: 1.12.1
|
6 |
* Author: nK
|
7 |
* Author URI: https://nkdev.info
|
8 |
* License: GPLv2 or later
|
210 |
}
|
211 |
|
212 |
// Visual Portfolio.
|
213 |
+
wp_register_script( 'visual-portfolio', visual_portfolio()->plugin_url . 'assets/js/script.min.js', $vp_deps, '1.12.1', true );
|
214 |
+
wp_register_style( 'visual-portfolio', visual_portfolio()->plugin_url . 'assets/css/style.min.css', $vp_style_deps, '1.12.1' );
|
215 |
+
wp_register_style( 'visual-portfolio-noscript', visual_portfolio()->plugin_url . 'assets/css/noscript.min.css', $vp_style_deps, '1.12.1' );
|
216 |
|
217 |
// Visual Portfolio data.
|
218 |
$data_init = array(
|
351 |
}
|
352 |
|
353 |
/**
|
354 |
+
* Find css template file
|
355 |
*
|
356 |
+
* @param string $template_name file name.
|
357 |
+
* @return string
|
|
|
|
|
|
|
358 |
*/
|
359 |
+
public function find_template_styles( $template_name ) {
|
360 |
$template = '';
|
361 |
|
362 |
if ( file_exists( get_stylesheet_directory() . '/visual-portfolio/' . $template_name . '.css' ) ) {
|
370 |
$template = $this->plugin_url . 'templates/' . $template_name . '.css';
|
371 |
}
|
372 |
|
373 |
+
return $template;
|
374 |
+
}
|
375 |
+
|
376 |
+
/**
|
377 |
+
* Include template style
|
378 |
+
*
|
379 |
+
* @param string $handle style handle name.
|
380 |
+
* @param string $template_name file name.
|
381 |
+
* @param array $deps dependencies array.
|
382 |
+
* @param string|bool|null $ver version string.
|
383 |
+
* @param string $media media string.
|
384 |
+
*/
|
385 |
+
public function include_template_style( $handle, $template_name, $deps = array(), $ver = false, $media = 'all' ) {
|
386 |
+
$template = $this->find_template_styles( $template_name );
|
387 |
+
|
388 |
+
// maybe find minified style.
|
389 |
+
if ( ! $template ) {
|
390 |
+
$template = $this->find_template_styles( $template_name . '.min' );
|
391 |
+
}
|
392 |
+
|
393 |
// Allow 3rd party plugin filter template file from their plugin.
|
394 |
$template = apply_filters( 'vpf_include_template_style', $template, $template_name, $deps, $ver, $media );
|
395 |
|
classes/class-admin.php
CHANGED
@@ -116,6 +116,10 @@ class Visual_Portfolio_Admin {
|
|
116 |
|
117 |
wp_enqueue_script( 'conditionize', visual_portfolio()->plugin_url . 'assets/vendor/conditionize/conditionize.min.js', array( 'jquery' ), '1.0.1', true );
|
118 |
|
|
|
|
|
|
|
|
|
119 |
$codemirror_version = '5.45.0';
|
120 |
wp_enqueue_script( 'codemirror', visual_portfolio()->plugin_url . 'assets/vendor/codemirror/codemirror.js', '', $codemirror_version, true );
|
121 |
wp_enqueue_script( 'codemirror-mode-css', visual_portfolio()->plugin_url . 'assets/vendor/codemirror/mode/css/css.js', '', $codemirror_version, true );
|
@@ -147,14 +151,14 @@ class Visual_Portfolio_Admin {
|
|
147 |
wp_enqueue_style( 'codemirror-addon-dialog', visual_portfolio()->plugin_url . 'assets/vendor/codemirror/addon/dialog/dialog.css', '', $codemirror_version );
|
148 |
wp_enqueue_style( 'codemirror-addon-matchesonscrollbar', visual_portfolio()->plugin_url . 'assets/vendor/codemirror/addon/search/matchesonscrollbar.css', '', $codemirror_version );
|
149 |
wp_enqueue_style( 'codemirror-theme-eclipse', visual_portfolio()->plugin_url . 'assets/vendor/codemirror/theme/eclipse.css', '', $codemirror_version );
|
150 |
-
}
|
151 |
|
152 |
-
|
153 |
-
|
154 |
-
|
|
|
155 |
|
156 |
-
wp_enqueue_script( 'visual-portfolio-admin', visual_portfolio()->plugin_url . 'assets/admin/js/script.min.js', array( 'jquery' ), '1.12.
|
157 |
-
wp_enqueue_style( 'visual-portfolio-admin', visual_portfolio()->plugin_url . 'assets/admin/css/style.min.css', '', '1.12.
|
158 |
wp_localize_script( 'visual-portfolio-admin', 'VPAdminVariables', $data_init );
|
159 |
}
|
160 |
|
@@ -490,7 +494,7 @@ class Visual_Portfolio_Admin {
|
|
490 |
if ( ! is_blog_installed() ) {
|
491 |
return;
|
492 |
}
|
493 |
-
if ( get_option( 'visual_portfolio_updated_caps' ) === '1.12.
|
494 |
return;
|
495 |
}
|
496 |
|
@@ -566,7 +570,7 @@ class Visual_Portfolio_Admin {
|
|
566 |
$wp_roles->add_cap( 'administrator', $cap );
|
567 |
}
|
568 |
|
569 |
-
update_option( 'visual_portfolio_updated_caps', '1.12.
|
570 |
}
|
571 |
|
572 |
/**
|
116 |
|
117 |
wp_enqueue_script( 'conditionize', visual_portfolio()->plugin_url . 'assets/vendor/conditionize/conditionize.min.js', array( 'jquery' ), '1.0.1', true );
|
118 |
|
119 |
+
wp_enqueue_script( 'popper.js', visual_portfolio()->plugin_url . 'assets/vendor/popper.js/popper.min.js', '', '1.14.3', true );
|
120 |
+
wp_enqueue_script( 'tooltip.js', visual_portfolio()->plugin_url . 'assets/vendor/popper.js/tooltip.min.js', array( 'popper.js' ), '1.14.3', true );
|
121 |
+
wp_enqueue_style( 'popper.js', visual_portfolio()->plugin_url . 'assets/vendor/popper.js/popper.css', '', '1.14.3' );
|
122 |
+
|
123 |
$codemirror_version = '5.45.0';
|
124 |
wp_enqueue_script( 'codemirror', visual_portfolio()->plugin_url . 'assets/vendor/codemirror/codemirror.js', '', $codemirror_version, true );
|
125 |
wp_enqueue_script( 'codemirror-mode-css', visual_portfolio()->plugin_url . 'assets/vendor/codemirror/mode/css/css.js', '', $codemirror_version, true );
|
151 |
wp_enqueue_style( 'codemirror-addon-dialog', visual_portfolio()->plugin_url . 'assets/vendor/codemirror/addon/dialog/dialog.css', '', $codemirror_version );
|
152 |
wp_enqueue_style( 'codemirror-addon-matchesonscrollbar', visual_portfolio()->plugin_url . 'assets/vendor/codemirror/addon/search/matchesonscrollbar.css', '', $codemirror_version );
|
153 |
wp_enqueue_style( 'codemirror-theme-eclipse', visual_portfolio()->plugin_url . 'assets/vendor/codemirror/theme/eclipse.css', '', $codemirror_version );
|
|
|
154 |
|
155 |
+
wp_enqueue_script( 'visual-portfolio-layout-admin', visual_portfolio()->plugin_url . 'assets/admin/js/layouts-editor.min.js', array( 'jquery' ), '1.12.1', true );
|
156 |
+
wp_enqueue_style( 'visual-portfolio-layout-admin', visual_portfolio()->plugin_url . 'assets/admin/css/layouts-editor.min.css', '', '1.12.1' );
|
157 |
+
wp_localize_script( 'visual-portfolio-layout-admin', 'VPAdminVariables', $data_init );
|
158 |
+
}
|
159 |
|
160 |
+
wp_enqueue_script( 'visual-portfolio-admin', visual_portfolio()->plugin_url . 'assets/admin/js/script.min.js', array( 'jquery' ), '1.12.1', true );
|
161 |
+
wp_enqueue_style( 'visual-portfolio-admin', visual_portfolio()->plugin_url . 'assets/admin/css/style.min.css', '', '1.12.1' );
|
162 |
wp_localize_script( 'visual-portfolio-admin', 'VPAdminVariables', $data_init );
|
163 |
}
|
164 |
|
494 |
if ( ! is_blog_installed() ) {
|
495 |
return;
|
496 |
}
|
497 |
+
if ( get_option( 'visual_portfolio_updated_caps' ) === '1.12.1' ) {
|
498 |
return;
|
499 |
}
|
500 |
|
570 |
$wp_roles->add_cap( 'administrator', $cap );
|
571 |
}
|
572 |
|
573 |
+
update_option( 'visual_portfolio_updated_caps', '1.12.1' );
|
574 |
}
|
575 |
|
576 |
/**
|
languages/visual-portfolio.pot
CHANGED
@@ -43,716 +43,716 @@ msgstr[1] ""
|
|
43 |
msgid "Update anyway, even though it might break your site?"
|
44 |
msgstr ""
|
45 |
|
46 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
47 |
msgctxt "Post Type General Name"
|
48 |
msgid "Portfolio Items"
|
49 |
msgstr ""
|
50 |
|
51 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
52 |
msgctxt "Post Type Singular Name"
|
53 |
msgid "Portfolio Item"
|
54 |
msgstr ""
|
55 |
|
56 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
57 |
msgid "Visual Portfolio"
|
58 |
msgstr ""
|
59 |
|
60 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
61 |
msgid "Parent Portfolio Item"
|
62 |
msgstr ""
|
63 |
|
64 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
65 |
msgid "Portfolio Items"
|
66 |
msgstr ""
|
67 |
|
68 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
69 |
msgid "View Portfolio Item"
|
70 |
msgstr ""
|
71 |
|
72 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
73 |
msgid "Add New Portfolio Item"
|
74 |
msgstr ""
|
75 |
|
76 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
77 |
msgid "Add New"
|
78 |
msgstr ""
|
79 |
|
80 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
81 |
msgid "Edit Portfolio Item"
|
82 |
msgstr ""
|
83 |
|
84 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
85 |
msgid "Update Portfolio Item"
|
86 |
msgstr ""
|
87 |
|
88 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
89 |
msgid "Search Portfolio Item"
|
90 |
msgstr ""
|
91 |
|
92 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
93 |
msgid "Not Found"
|
94 |
msgstr ""
|
95 |
|
96 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
97 |
msgid "Not found in Trash"
|
98 |
msgstr ""
|
99 |
|
100 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
101 |
msgid "Portfolio Categories"
|
102 |
msgstr ""
|
103 |
|
104 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
105 |
msgid "Categories"
|
106 |
msgstr ""
|
107 |
|
108 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
109 |
msgid "Portfolio Tags"
|
110 |
msgstr ""
|
111 |
|
112 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
113 |
msgid "Tags"
|
114 |
msgstr ""
|
115 |
|
116 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
117 |
msgctxt "Post Type General Name"
|
118 |
msgid "Portfolio Layouts"
|
119 |
msgstr ""
|
120 |
|
121 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
122 |
msgctxt "Post Type Singular Name"
|
123 |
msgid "Portfolio Layout"
|
124 |
msgstr ""
|
125 |
|
126 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
127 |
msgid "Portfolio Layouts"
|
128 |
msgstr ""
|
129 |
|
130 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
131 |
msgid "View Portfolio Layout"
|
132 |
msgstr ""
|
133 |
|
134 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
135 |
msgid "Add New Portfolio Layout"
|
136 |
msgstr ""
|
137 |
|
138 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
139 |
msgid "Edit Portfolio Layout"
|
140 |
msgstr ""
|
141 |
|
142 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
143 |
msgid "Update Portfolio Layout"
|
144 |
msgstr ""
|
145 |
|
146 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
147 |
msgid "Search Portfolio Layout"
|
148 |
msgstr ""
|
149 |
|
150 |
#. translators: %s - taxonomy name.
|
151 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
152 |
msgid "Show All %s"
|
153 |
msgstr ""
|
154 |
|
155 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
156 |
msgid "Video"
|
157 |
msgstr ""
|
158 |
|
159 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
160 |
msgid "https://"
|
161 |
msgstr ""
|
162 |
|
163 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
164 |
msgid "Portfolio Manager"
|
165 |
msgstr ""
|
166 |
|
167 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
168 |
msgid "Portfolio Author"
|
169 |
msgstr ""
|
170 |
|
171 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
172 |
msgid "Ready to add your awesome portfolio?"
|
173 |
msgstr ""
|
174 |
|
175 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
176 |
msgid "Create your first portfolio list!"
|
177 |
msgstr ""
|
178 |
|
179 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
180 |
msgid "Thumbnail"
|
181 |
msgstr ""
|
182 |
|
183 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
184 |
msgid "Shortcode"
|
185 |
msgstr ""
|
186 |
|
187 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
188 |
msgid "Documentation"
|
189 |
msgstr ""
|
190 |
|
191 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
192 |
msgid "Tiles"
|
193 |
msgstr ""
|
194 |
|
195 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
196 |
msgid "Type"
|
197 |
msgstr ""
|
198 |
|
199 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
200 |
msgid "Select tiles type"
|
201 |
msgstr ""
|
202 |
|
203 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
204 |
msgid "Masonry"
|
205 |
msgstr ""
|
206 |
|
207 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
208 |
msgid "Columns"
|
209 |
msgstr ""
|
210 |
|
211 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
212 |
msgid "Grid"
|
213 |
msgstr ""
|
214 |
|
215 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
216 |
msgid "Justified"
|
217 |
msgstr ""
|
218 |
|
219 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
220 |
msgid "Row height"
|
221 |
msgstr ""
|
222 |
|
223 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
224 |
msgid "Row height tolerance"
|
225 |
msgstr ""
|
226 |
|
227 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
228 |
msgid "Slider"
|
229 |
msgstr ""
|
230 |
|
231 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
232 |
msgid "Effect"
|
233 |
msgstr ""
|
234 |
|
235 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
236 |
msgid "Slide"
|
237 |
msgstr ""
|
238 |
|
239 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
240 |
msgid "Coverflow"
|
241 |
msgstr ""
|
242 |
|
243 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
244 |
msgid "Fade"
|
245 |
msgstr ""
|
246 |
|
247 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
248 |
msgid "Speed (seconds)"
|
249 |
msgstr ""
|
250 |
|
251 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
252 |
msgid "Autoplay (seconds)"
|
253 |
msgstr ""
|
254 |
|
255 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
256 |
msgid "Pause on Mouse Over"
|
257 |
msgstr ""
|
258 |
|
259 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
260 |
msgid "Items height"
|
261 |
msgstr ""
|
262 |
|
263 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
264 |
msgid "Auto"
|
265 |
msgstr ""
|
266 |
|
267 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
268 |
msgid "Static (px)"
|
269 |
msgstr ""
|
270 |
|
271 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
272 |
msgid "Dynamic (%)"
|
273 |
msgstr ""
|
274 |
|
275 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
276 |
msgid "Slides per view"
|
277 |
msgstr ""
|
278 |
|
279 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
280 |
msgid "Custom"
|
281 |
msgstr ""
|
282 |
|
283 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
284 |
msgid "Centered slides"
|
285 |
msgstr ""
|
286 |
|
287 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
288 |
msgid "Loop"
|
289 |
msgstr ""
|
290 |
|
291 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
292 |
msgid "Free scroll"
|
293 |
msgstr ""
|
294 |
|
295 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
296 |
msgid "Free scroll Sticky"
|
297 |
msgstr ""
|
298 |
|
299 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
300 |
msgid "Show arrows"
|
301 |
msgstr ""
|
302 |
|
303 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
304 |
msgid "Prev arrow icon"
|
305 |
msgstr ""
|
306 |
|
307 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
308 |
msgid "Next arrow icon"
|
309 |
msgstr ""
|
310 |
|
311 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
312 |
msgid "Show bullets"
|
313 |
msgstr ""
|
314 |
|
315 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
316 |
msgid "Dynamic bullets"
|
317 |
msgstr ""
|
318 |
|
319 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
320 |
msgid "Mousewheel Control"
|
321 |
msgstr ""
|
322 |
|
323 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
324 |
msgid "Show thumbnails"
|
325 |
msgstr ""
|
326 |
|
327 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
328 |
msgid "Thumbnails gap"
|
329 |
msgstr ""
|
330 |
|
331 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
332 |
msgid "Thumbnails height"
|
333 |
msgstr ""
|
334 |
|
335 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
336 |
msgid "Thumbnails per view"
|
337 |
msgstr ""
|
338 |
|
339 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
340 |
msgid "Gap"
|
341 |
msgstr ""
|
342 |
|
343 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
344 |
msgid "Items per page"
|
345 |
msgstr ""
|
346 |
|
347 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
348 |
msgid "Stretch"
|
349 |
msgstr ""
|
350 |
|
351 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
352 |
msgid "Break container and display it wide"
|
353 |
msgstr ""
|
354 |
|
355 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
356 |
msgid "Default"
|
357 |
msgstr ""
|
358 |
|
359 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
360 |
msgid "Show Read more button"
|
361 |
msgstr ""
|
362 |
|
363 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
364 |
msgid "False"
|
365 |
msgstr ""
|
366 |
|
367 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
368 |
msgid "Always show"
|
369 |
msgstr ""
|
370 |
|
371 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
372 |
msgid "Show when used \"More tag\" in the post"
|
373 |
msgstr ""
|
374 |
|
375 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
376 |
msgid "Read more button label"
|
377 |
msgstr ""
|
378 |
|
379 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
380 |
msgid "Fly"
|
381 |
msgstr ""
|
382 |
|
383 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
384 |
msgid "Overlay background color"
|
385 |
msgstr ""
|
386 |
|
387 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
388 |
msgid "Overlay text color"
|
389 |
msgstr ""
|
390 |
|
391 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
392 |
msgid "Emerge"
|
393 |
msgstr ""
|
394 |
|
395 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
396 |
msgid "Show title"
|
397 |
msgstr ""
|
398 |
|
399 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
400 |
msgid "Show categories"
|
401 |
msgstr ""
|
402 |
|
403 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
404 |
msgid "Categories count"
|
405 |
msgstr ""
|
406 |
|
407 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
408 |
msgid "Show date"
|
409 |
msgstr ""
|
410 |
|
411 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
412 |
msgid "Show"
|
413 |
msgstr ""
|
414 |
|
415 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
416 |
msgid "Human Format"
|
417 |
msgstr ""
|
418 |
|
419 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
420 |
msgid ""
|
421 |
"Date format
|
422 |
" Example: F j, Y"
|
423 |
msgstr ""
|
424 |
|
425 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
426 |
msgid "Show excerpt"
|
427 |
msgstr ""
|
428 |
|
429 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
430 |
msgid "Excerpt words count"
|
431 |
msgstr ""
|
432 |
|
433 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
434 |
msgid "Show icon"
|
435 |
msgstr ""
|
436 |
|
437 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
438 |
msgid "Standard icon"
|
439 |
msgstr ""
|
440 |
|
441 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
442 |
msgid "Video icon"
|
443 |
msgstr ""
|
444 |
|
445 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
446 |
msgid "Caption align"
|
447 |
msgstr ""
|
448 |
|
449 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
450 |
msgid "Disabled"
|
451 |
msgstr ""
|
452 |
|
453 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
454 |
msgid "URL"
|
455 |
msgstr ""
|
456 |
|
457 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
458 |
msgid "Popup Gallery"
|
459 |
msgstr ""
|
460 |
|
461 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
462 |
msgid "Target"
|
463 |
msgstr ""
|
464 |
|
465 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
466 |
msgid "New tab (_blank)"
|
467 |
msgstr ""
|
468 |
|
469 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
470 |
msgid "Top frame (_top)"
|
471 |
msgstr ""
|
472 |
|
473 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
474 |
msgid "Title"
|
475 |
msgstr ""
|
476 |
|
477 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
478 |
msgid "None"
|
479 |
msgstr ""
|
480 |
|
481 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
482 |
msgid "Image Title"
|
483 |
msgstr ""
|
484 |
|
485 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
486 |
msgid "Image Caption"
|
487 |
msgstr ""
|
488 |
|
489 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
490 |
msgid "Image Alt"
|
491 |
msgstr ""
|
492 |
|
493 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
494 |
msgid "Image Description"
|
495 |
msgstr ""
|
496 |
|
497 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
498 |
msgid "Description"
|
499 |
msgstr ""
|
500 |
|
501 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
502 |
msgid "Dropdown"
|
503 |
msgstr ""
|
504 |
|
505 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
506 |
msgid "Align"
|
507 |
msgstr ""
|
508 |
|
509 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
510 |
msgid "Center"
|
511 |
msgstr ""
|
512 |
|
513 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
514 |
msgid "Left"
|
515 |
msgstr ""
|
516 |
|
517 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
518 |
msgid "Right"
|
519 |
msgstr ""
|
520 |
|
521 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
522 |
msgid "Show count"
|
523 |
msgstr ""
|
524 |
|
525 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
526 |
msgid "All button text"
|
527 |
msgstr ""
|
528 |
|
529 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
530 |
msgid "All"
|
531 |
msgstr ""
|
532 |
|
533 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
534 |
msgid "Paged"
|
535 |
msgstr ""
|
536 |
|
537 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
538 |
msgid "Load More"
|
539 |
msgstr ""
|
540 |
|
541 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
542 |
msgid "Infinite"
|
543 |
msgstr ""
|
544 |
|
545 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
546 |
msgid "Note: you will see the \"Load More\" pagination in the preview. \"Infinite\" pagination will be visible on the site."
|
547 |
msgstr ""
|
548 |
|
549 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
550 |
msgid "Texts"
|
551 |
msgstr ""
|
552 |
|
553 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
554 |
msgid "Load more"
|
555 |
msgstr ""
|
556 |
|
557 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
558 |
msgid "Load more button label"
|
559 |
msgstr ""
|
560 |
|
561 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
562 |
msgid "Loading more..."
|
563 |
msgstr ""
|
564 |
|
565 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
566 |
msgid "Loading more button label"
|
567 |
msgstr ""
|
568 |
|
569 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
570 |
msgid "You’ve reached the end of the list"
|
571 |
msgstr ""
|
572 |
|
573 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
574 |
msgid "End of the list text"
|
575 |
msgstr ""
|
576 |
|
577 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
578 |
msgid "Show numbers"
|
579 |
msgstr ""
|
580 |
|
581 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
582 |
msgid "Data source"
|
583 |
msgstr ""
|
584 |
|
585 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
586 |
msgid "Specific posts"
|
587 |
msgstr ""
|
588 |
|
589 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
590 |
msgid "Excluded posts"
|
591 |
msgstr ""
|
592 |
|
593 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
594 |
msgid "Custom query"
|
595 |
msgstr ""
|
596 |
|
597 |
#. translators: %1$s - escaped url.
|
598 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
599 |
msgid "Build custom query according to <a href=\"%1$s\">WordPress Codex</a>."
|
600 |
msgstr ""
|
601 |
|
602 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
603 |
msgid "Taxonomies"
|
604 |
msgstr ""
|
605 |
|
606 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
607 |
msgid "Taxonomies relation"
|
608 |
msgstr ""
|
609 |
|
610 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
611 |
msgid "OR"
|
612 |
msgstr ""
|
613 |
|
614 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
615 |
msgid "AND"
|
616 |
msgstr ""
|
617 |
|
618 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
619 |
msgid "Order by"
|
620 |
msgstr ""
|
621 |
|
622 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
623 |
msgid "Date"
|
624 |
msgstr ""
|
625 |
|
626 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
627 |
msgid "ID"
|
628 |
msgstr ""
|
629 |
|
630 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
631 |
msgid "Menu Order"
|
632 |
msgstr ""
|
633 |
|
634 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
635 |
msgid "Random"
|
636 |
msgstr ""
|
637 |
|
638 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
639 |
msgid "Order direction"
|
640 |
msgstr ""
|
641 |
|
642 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
643 |
msgid "DESC"
|
644 |
msgstr ""
|
645 |
|
646 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
647 |
msgid "ASC"
|
648 |
msgstr ""
|
649 |
|
650 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
651 |
msgid "Uploaded"
|
652 |
msgstr ""
|
653 |
|
654 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
655 |
msgid "Name & Shortcode"
|
656 |
msgstr ""
|
657 |
|
658 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
659 |
msgid "Layout"
|
660 |
msgstr ""
|
661 |
|
662 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
663 |
msgid "Items Style"
|
664 |
msgstr ""
|
665 |
|
666 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
667 |
msgid "Items Click Action"
|
668 |
msgstr ""
|
669 |
|
670 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
671 |
msgid "Filter"
|
672 |
msgstr ""
|
673 |
|
674 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
675 |
msgid "Sort"
|
676 |
msgstr ""
|
677 |
|
678 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
679 |
msgid "Pagination"
|
680 |
msgstr ""
|
681 |
|
682 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
683 |
msgid "Preview"
|
684 |
msgstr ""
|
685 |
|
686 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
687 |
msgid "Content Source"
|
688 |
msgstr ""
|
689 |
|
690 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
691 |
msgid "Custom CSS"
|
692 |
msgstr ""
|
693 |
|
694 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
695 |
msgid "Name"
|
696 |
msgstr ""
|
697 |
|
698 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
699 |
msgid "Place the shortcode where you want to show the portfolio list."
|
700 |
msgstr ""
|
701 |
|
702 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
703 |
msgid "Filter Shortcode"
|
704 |
msgstr ""
|
705 |
|
706 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
707 |
msgid "Place the shortcode where you want to show the filter."
|
708 |
msgstr ""
|
709 |
|
710 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
711 |
msgid "Portfolio"
|
712 |
msgstr ""
|
713 |
|
714 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
715 |
msgid "Post-Based"
|
716 |
msgstr ""
|
717 |
|
718 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
719 |
msgid "Images"
|
720 |
msgstr ""
|
721 |
|
722 |
#. translators: %1$s - escaped url.
|
723 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
724 |
msgid "Portfolio items list from <a href=\"%1$s\" target=\"_blank\">%2$s</a>"
|
725 |
msgstr ""
|
726 |
|
727 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
728 |
msgid "Available classes:"
|
729 |
msgstr ""
|
730 |
|
731 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
732 |
msgid " - use this classname for each styles you added. It is the main Visual Portfolio wrapper."
|
733 |
msgstr ""
|
734 |
|
735 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
736 |
msgid " - items wrapper."
|
737 |
msgstr ""
|
738 |
|
739 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
740 |
msgid " - single item wrapper."
|
741 |
msgstr ""
|
742 |
|
743 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
744 |
msgid " - filter wrapper."
|
745 |
msgstr ""
|
746 |
|
747 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
748 |
msgid " - pagination wrapper."
|
749 |
msgstr ""
|
750 |
|
751 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
752 |
msgid "Specific Posts"
|
753 |
msgstr ""
|
754 |
|
755 |
-
#: dist/visual-portfolio/classes/class-admin.php:
|
756 |
msgid "Custom Query"
|
757 |
msgstr ""
|
758 |
|
43 |
msgid "Update anyway, even though it might break your site?"
|
44 |
msgstr ""
|
45 |
|
46 |
+
#: dist/visual-portfolio/classes/class-admin.php:214
|
47 |
msgctxt "Post Type General Name"
|
48 |
msgid "Portfolio Items"
|
49 |
msgstr ""
|
50 |
|
51 |
+
#: dist/visual-portfolio/classes/class-admin.php:215
|
52 |
msgctxt "Post Type Singular Name"
|
53 |
msgid "Portfolio Item"
|
54 |
msgstr ""
|
55 |
|
56 |
+
#: dist/visual-portfolio/classes/class-admin.php:216, dist/visual-portfolio/classes/class-admin.php:305, dist/visual-portfolio/classes/class-admin.php:711, dist/visual-portfolio/classes/class-vc.php:65
|
57 |
msgid "Visual Portfolio"
|
58 |
msgstr ""
|
59 |
|
60 |
+
#: dist/visual-portfolio/classes/class-admin.php:217, dist/visual-portfolio/classes/class-admin.php:306
|
61 |
msgid "Parent Portfolio Item"
|
62 |
msgstr ""
|
63 |
|
64 |
+
#: dist/visual-portfolio/classes/class-admin.php:218
|
65 |
msgid "Portfolio Items"
|
66 |
msgstr ""
|
67 |
|
68 |
+
#: dist/visual-portfolio/classes/class-admin.php:219
|
69 |
msgid "View Portfolio Item"
|
70 |
msgstr ""
|
71 |
|
72 |
+
#: dist/visual-portfolio/classes/class-admin.php:220
|
73 |
msgid "Add New Portfolio Item"
|
74 |
msgstr ""
|
75 |
|
76 |
+
#: dist/visual-portfolio/classes/class-admin.php:221, dist/visual-portfolio/classes/class-admin.php:310
|
77 |
msgid "Add New"
|
78 |
msgstr ""
|
79 |
|
80 |
+
#: dist/visual-portfolio/classes/class-admin.php:222
|
81 |
msgid "Edit Portfolio Item"
|
82 |
msgstr ""
|
83 |
|
84 |
+
#: dist/visual-portfolio/classes/class-admin.php:223
|
85 |
msgid "Update Portfolio Item"
|
86 |
msgstr ""
|
87 |
|
88 |
+
#: dist/visual-portfolio/classes/class-admin.php:224
|
89 |
msgid "Search Portfolio Item"
|
90 |
msgstr ""
|
91 |
|
92 |
+
#: dist/visual-portfolio/classes/class-admin.php:225, dist/visual-portfolio/classes/class-admin.php:314
|
93 |
msgid "Not Found"
|
94 |
msgstr ""
|
95 |
|
96 |
+
#: dist/visual-portfolio/classes/class-admin.php:226, dist/visual-portfolio/classes/class-admin.php:315
|
97 |
msgid "Not found in Trash"
|
98 |
msgstr ""
|
99 |
|
100 |
+
#: dist/visual-portfolio/classes/class-admin.php:263
|
101 |
msgid "Portfolio Categories"
|
102 |
msgstr ""
|
103 |
|
104 |
+
#: dist/visual-portfolio/classes/class-admin.php:265, dist/visual-portfolio/classes/class-controls.php:596
|
105 |
msgid "Categories"
|
106 |
msgstr ""
|
107 |
|
108 |
+
#: dist/visual-portfolio/classes/class-admin.php:281
|
109 |
msgid "Portfolio Tags"
|
110 |
msgstr ""
|
111 |
|
112 |
+
#: dist/visual-portfolio/classes/class-admin.php:283
|
113 |
msgid "Tags"
|
114 |
msgstr ""
|
115 |
|
116 |
+
#: dist/visual-portfolio/classes/class-admin.php:303
|
117 |
msgctxt "Post Type General Name"
|
118 |
msgid "Portfolio Layouts"
|
119 |
msgstr ""
|
120 |
|
121 |
+
#: dist/visual-portfolio/classes/class-admin.php:304
|
122 |
msgctxt "Post Type Singular Name"
|
123 |
msgid "Portfolio Layout"
|
124 |
msgstr ""
|
125 |
|
126 |
+
#: dist/visual-portfolio/classes/class-admin.php:307
|
127 |
msgid "Portfolio Layouts"
|
128 |
msgstr ""
|
129 |
|
130 |
+
#: dist/visual-portfolio/classes/class-admin.php:308
|
131 |
msgid "View Portfolio Layout"
|
132 |
msgstr ""
|
133 |
|
134 |
+
#: dist/visual-portfolio/classes/class-admin.php:309
|
135 |
msgid "Add New Portfolio Layout"
|
136 |
msgstr ""
|
137 |
|
138 |
+
#: dist/visual-portfolio/classes/class-admin.php:311
|
139 |
msgid "Edit Portfolio Layout"
|
140 |
msgstr ""
|
141 |
|
142 |
+
#: dist/visual-portfolio/classes/class-admin.php:312
|
143 |
msgid "Update Portfolio Layout"
|
144 |
msgstr ""
|
145 |
|
146 |
+
#: dist/visual-portfolio/classes/class-admin.php:313
|
147 |
msgid "Search Portfolio Layout"
|
148 |
msgstr ""
|
149 |
|
150 |
#. translators: %s - taxonomy name.
|
151 |
+
#: dist/visual-portfolio/classes/class-admin.php:360
|
152 |
msgid "Show All %s"
|
153 |
msgstr ""
|
154 |
|
155 |
+
#: dist/visual-portfolio/classes/class-admin.php:400, dist/visual-portfolio/classes/class-controls.php:608
|
156 |
msgid "Video"
|
157 |
msgstr ""
|
158 |
|
159 |
+
#: dist/visual-portfolio/classes/class-admin.php:440
|
160 |
msgid "https://"
|
161 |
msgstr ""
|
162 |
|
163 |
+
#: dist/visual-portfolio/classes/class-admin.php:511
|
164 |
msgid "Portfolio Manager"
|
165 |
msgstr ""
|
166 |
|
167 |
+
#: dist/visual-portfolio/classes/class-admin.php:516
|
168 |
msgid "Portfolio Author"
|
169 |
msgstr ""
|
170 |
|
171 |
+
#: dist/visual-portfolio/classes/class-admin.php:598
|
172 |
msgid "Ready to add your awesome portfolio?"
|
173 |
msgstr ""
|
174 |
|
175 |
+
#: dist/visual-portfolio/classes/class-admin.php:599
|
176 |
msgid "Create your first portfolio list!"
|
177 |
msgstr ""
|
178 |
|
179 |
+
#: dist/visual-portfolio/classes/class-admin.php:638
|
180 |
msgid "Thumbnail"
|
181 |
msgstr ""
|
182 |
|
183 |
+
#: dist/visual-portfolio/classes/class-admin.php:671, dist/visual-portfolio/classes/class-admin.php:2828
|
184 |
msgid "Shortcode"
|
185 |
msgstr ""
|
186 |
|
187 |
+
#: dist/visual-portfolio/classes/class-admin.php:764, dist/visual-portfolio/classes/class-admin.php:765
|
188 |
msgid "Documentation"
|
189 |
msgstr ""
|
190 |
|
191 |
+
#: dist/visual-portfolio/classes/class-admin.php:783
|
192 |
msgid "Tiles"
|
193 |
msgstr ""
|
194 |
|
195 |
+
#: dist/visual-portfolio/classes/class-admin.php:798, dist/visual-portfolio/classes/class-admin.php:2111
|
196 |
msgid "Type"
|
197 |
msgstr ""
|
198 |
|
199 |
+
#: dist/visual-portfolio/classes/class-admin.php:799
|
200 |
msgid "Select tiles type"
|
201 |
msgstr ""
|
202 |
|
203 |
+
#: dist/visual-portfolio/classes/class-admin.php:918
|
204 |
msgid "Masonry"
|
205 |
msgstr ""
|
206 |
|
207 |
+
#: dist/visual-portfolio/classes/class-admin.php:922, dist/visual-portfolio/classes/class-admin.php:937
|
208 |
msgid "Columns"
|
209 |
msgstr ""
|
210 |
|
211 |
+
#: dist/visual-portfolio/classes/class-admin.php:933
|
212 |
msgid "Grid"
|
213 |
msgstr ""
|
214 |
|
215 |
+
#: dist/visual-portfolio/classes/class-admin.php:948
|
216 |
msgid "Justified"
|
217 |
msgstr ""
|
218 |
|
219 |
+
#: dist/visual-portfolio/classes/class-admin.php:952
|
220 |
msgid "Row height"
|
221 |
msgstr ""
|
222 |
|
223 |
+
#: dist/visual-portfolio/classes/class-admin.php:960
|
224 |
msgid "Row height tolerance"
|
225 |
msgstr ""
|
226 |
|
227 |
+
#: dist/visual-portfolio/classes/class-admin.php:972
|
228 |
msgid "Slider"
|
229 |
msgstr ""
|
230 |
|
231 |
+
#: dist/visual-portfolio/classes/class-admin.php:976
|
232 |
msgid "Effect"
|
233 |
msgstr ""
|
234 |
|
235 |
+
#: dist/visual-portfolio/classes/class-admin.php:980
|
236 |
msgid "Slide"
|
237 |
msgstr ""
|
238 |
|
239 |
+
#: dist/visual-portfolio/classes/class-admin.php:981
|
240 |
msgid "Coverflow"
|
241 |
msgstr ""
|
242 |
|
243 |
+
#: dist/visual-portfolio/classes/class-admin.php:982, dist/visual-portfolio/classes/class-admin.php:1505
|
244 |
msgid "Fade"
|
245 |
msgstr ""
|
246 |
|
247 |
+
#: dist/visual-portfolio/classes/class-admin.php:987
|
248 |
msgid "Speed (seconds)"
|
249 |
msgstr ""
|
250 |
|
251 |
+
#: dist/visual-portfolio/classes/class-admin.php:996
|
252 |
msgid "Autoplay (seconds)"
|
253 |
msgstr ""
|
254 |
|
255 |
+
#: dist/visual-portfolio/classes/class-admin.php:1005
|
256 |
msgid "Pause on Mouse Over"
|
257 |
msgstr ""
|
258 |
|
259 |
+
#: dist/visual-portfolio/classes/class-admin.php:1018
|
260 |
msgid "Items height"
|
261 |
msgstr ""
|
262 |
|
263 |
+
#: dist/visual-portfolio/classes/class-admin.php:1022, dist/visual-portfolio/classes/class-admin.php:1061, dist/visual-portfolio/classes/class-admin.php:1207, dist/visual-portfolio/classes/class-admin.php:1257
|
264 |
msgid "Auto"
|
265 |
msgstr ""
|
266 |
|
267 |
+
#: dist/visual-portfolio/classes/class-admin.php:1023, dist/visual-portfolio/classes/class-admin.php:1208
|
268 |
msgid "Static (px)"
|
269 |
msgstr ""
|
270 |
|
271 |
+
#: dist/visual-portfolio/classes/class-admin.php:1024, dist/visual-portfolio/classes/class-admin.php:1209
|
272 |
msgid "Dynamic (%)"
|
273 |
msgstr ""
|
274 |
|
275 |
+
#: dist/visual-portfolio/classes/class-admin.php:1057
|
276 |
msgid "Slides per view"
|
277 |
msgstr ""
|
278 |
|
279 |
+
#: dist/visual-portfolio/classes/class-admin.php:1062, dist/visual-portfolio/classes/class-admin.php:1258
|
280 |
msgid "Custom"
|
281 |
msgstr ""
|
282 |
|
283 |
+
#: dist/visual-portfolio/classes/class-admin.php:1093
|
284 |
msgid "Centered slides"
|
285 |
msgstr ""
|
286 |
|
287 |
+
#: dist/visual-portfolio/classes/class-admin.php:1106
|
288 |
msgid "Loop"
|
289 |
msgstr ""
|
290 |
|
291 |
+
#: dist/visual-portfolio/classes/class-admin.php:1112
|
292 |
msgid "Free scroll"
|
293 |
msgstr ""
|
294 |
|
295 |
+
#: dist/visual-portfolio/classes/class-admin.php:1118
|
296 |
msgid "Free scroll Sticky"
|
297 |
msgstr ""
|
298 |
|
299 |
+
#: dist/visual-portfolio/classes/class-admin.php:1129, dist/visual-portfolio/classes/class-admin.php:2357, dist/visual-portfolio/classes/class-settings.php:146
|
300 |
msgid "Show arrows"
|
301 |
msgstr ""
|
302 |
|
303 |
+
#: dist/visual-portfolio/classes/class-admin.php:1137, dist/visual-portfolio/classes/class-admin.php:1138, dist/visual-portfolio/classes/class-admin.php:2379, dist/visual-portfolio/classes/class-admin.php:2380
|
304 |
msgid "Prev arrow icon"
|
305 |
msgstr ""
|
306 |
|
307 |
+
#: dist/visual-portfolio/classes/class-admin.php:1150, dist/visual-portfolio/classes/class-admin.php:1151, dist/visual-portfolio/classes/class-admin.php:2404, dist/visual-portfolio/classes/class-admin.php:2405
|
308 |
msgid "Next arrow icon"
|
309 |
msgstr ""
|
310 |
|
311 |
+
#: dist/visual-portfolio/classes/class-admin.php:1161
|
312 |
msgid "Show bullets"
|
313 |
msgstr ""
|
314 |
|
315 |
+
#: dist/visual-portfolio/classes/class-admin.php:1167
|
316 |
msgid "Dynamic bullets"
|
317 |
msgstr ""
|
318 |
|
319 |
+
#: dist/visual-portfolio/classes/class-admin.php:1178
|
320 |
msgid "Mousewheel Control"
|
321 |
msgstr ""
|
322 |
|
323 |
+
#: dist/visual-portfolio/classes/class-admin.php:1184
|
324 |
msgid "Show thumbnails"
|
325 |
msgstr ""
|
326 |
|
327 |
+
#: dist/visual-portfolio/classes/class-admin.php:1190
|
328 |
msgid "Thumbnails gap"
|
329 |
msgstr ""
|
330 |
|
331 |
+
#: dist/visual-portfolio/classes/class-admin.php:1203
|
332 |
msgid "Thumbnails height"
|
333 |
msgstr ""
|
334 |
|
335 |
+
#: dist/visual-portfolio/classes/class-admin.php:1253
|
336 |
msgid "Thumbnails per view"
|
337 |
msgstr ""
|
338 |
|
339 |
+
#: dist/visual-portfolio/classes/class-admin.php:1344
|
340 |
msgid "Gap"
|
341 |
msgstr ""
|
342 |
|
343 |
+
#: dist/visual-portfolio/classes/class-admin.php:1356
|
344 |
msgid "Items per page"
|
345 |
msgstr ""
|
346 |
|
347 |
+
#: dist/visual-portfolio/classes/class-admin.php:1368
|
348 |
msgid "Stretch"
|
349 |
msgstr ""
|
350 |
|
351 |
+
#: dist/visual-portfolio/classes/class-admin.php:1371
|
352 |
msgid "Break container and display it wide"
|
353 |
msgstr ""
|
354 |
|
355 |
+
#: dist/visual-portfolio/classes/class-admin.php:1382, dist/visual-portfolio/classes/class-admin.php:1756, dist/visual-portfolio/classes/class-admin.php:1822, dist/visual-portfolio/classes/class-admin.php:1952, dist/visual-portfolio/classes/class-admin.php:2050, dist/visual-portfolio/classes/class-admin.php:2691
|
356 |
msgid "Default"
|
357 |
msgstr ""
|
358 |
|
359 |
+
#: dist/visual-portfolio/classes/class-admin.php:1394
|
360 |
msgid "Show Read more button"
|
361 |
msgstr ""
|
362 |
|
363 |
+
#: dist/visual-portfolio/classes/class-admin.php:1398, dist/visual-portfolio/classes/class-admin.php:1612
|
364 |
msgid "False"
|
365 |
msgstr ""
|
366 |
|
367 |
+
#: dist/visual-portfolio/classes/class-admin.php:1399
|
368 |
msgid "Always show"
|
369 |
msgstr ""
|
370 |
|
371 |
+
#: dist/visual-portfolio/classes/class-admin.php:1400
|
372 |
msgid "Show when used \"More tag\" in the post"
|
373 |
msgstr ""
|
374 |
|
375 |
+
#: dist/visual-portfolio/classes/class-admin.php:1408
|
376 |
msgid "Read more button label"
|
377 |
msgstr ""
|
378 |
|
379 |
+
#: dist/visual-portfolio/classes/class-admin.php:1423
|
380 |
msgid "Fly"
|
381 |
msgstr ""
|
382 |
|
383 |
+
#: dist/visual-portfolio/classes/class-admin.php:1435, dist/visual-portfolio/classes/class-admin.php:1476, dist/visual-portfolio/classes/class-admin.php:1517
|
384 |
msgid "Overlay background color"
|
385 |
msgstr ""
|
386 |
|
387 |
+
#: dist/visual-portfolio/classes/class-admin.php:1448, dist/visual-portfolio/classes/class-admin.php:1489, dist/visual-portfolio/classes/class-admin.php:1530
|
388 |
msgid "Overlay text color"
|
389 |
msgstr ""
|
390 |
|
391 |
+
#: dist/visual-portfolio/classes/class-admin.php:1464
|
392 |
msgid "Emerge"
|
393 |
msgstr ""
|
394 |
|
395 |
+
#: dist/visual-portfolio/classes/class-admin.php:1579
|
396 |
msgid "Show title"
|
397 |
msgstr ""
|
398 |
|
399 |
+
#: dist/visual-portfolio/classes/class-admin.php:1587
|
400 |
msgid "Show categories"
|
401 |
msgstr ""
|
402 |
|
403 |
+
#: dist/visual-portfolio/classes/class-admin.php:1593
|
404 |
msgid "Categories count"
|
405 |
msgstr ""
|
406 |
|
407 |
+
#: dist/visual-portfolio/classes/class-admin.php:1608
|
408 |
msgid "Show date"
|
409 |
msgstr ""
|
410 |
|
411 |
+
#: dist/visual-portfolio/classes/class-admin.php:1613
|
412 |
msgid "Show"
|
413 |
msgstr ""
|
414 |
|
415 |
+
#: dist/visual-portfolio/classes/class-admin.php:1614
|
416 |
msgid "Human Format"
|
417 |
msgstr ""
|
418 |
|
419 |
+
#: dist/visual-portfolio/classes/class-admin.php:1622
|
420 |
msgid ""
|
421 |
"Date format
|
422 |
" Example: F j, Y"
|
423 |
msgstr ""
|
424 |
|
425 |
+
#: dist/visual-portfolio/classes/class-admin.php:1634
|
426 |
msgid "Show excerpt"
|
427 |
msgstr ""
|
428 |
|
429 |
+
#: dist/visual-portfolio/classes/class-admin.php:1640
|
430 |
msgid "Excerpt words count"
|
431 |
msgstr ""
|
432 |
|
433 |
+
#: dist/visual-portfolio/classes/class-admin.php:1655
|
434 |
msgid "Show icon"
|
435 |
msgstr ""
|
436 |
|
437 |
+
#: dist/visual-portfolio/classes/class-admin.php:1663, dist/visual-portfolio/classes/class-admin.php:1664
|
438 |
msgid "Standard icon"
|
439 |
msgstr ""
|
440 |
|
441 |
+
#: dist/visual-portfolio/classes/class-admin.php:1676, dist/visual-portfolio/classes/class-admin.php:1677
|
442 |
msgid "Video icon"
|
443 |
msgstr ""
|
444 |
|
445 |
+
#: dist/visual-portfolio/classes/class-admin.php:1689
|
446 |
msgid "Caption align"
|
447 |
msgstr ""
|
448 |
|
449 |
+
#: dist/visual-portfolio/classes/class-admin.php:1742, dist/visual-portfolio/classes/class-admin.php:1816, dist/visual-portfolio/classes/class-admin.php:1946, dist/visual-portfolio/classes/class-admin.php:2044
|
450 |
msgid "Disabled"
|
451 |
msgstr ""
|
452 |
|
453 |
+
#: dist/visual-portfolio/classes/class-admin.php:1743, dist/visual-portfolio/classes/class-controls.php:625
|
454 |
msgid "URL"
|
455 |
msgstr ""
|
456 |
|
457 |
+
#: dist/visual-portfolio/classes/class-admin.php:1744, dist/visual-portfolio/classes/class-settings.php:104
|
458 |
msgid "Popup Gallery"
|
459 |
msgstr ""
|
460 |
|
461 |
+
#: dist/visual-portfolio/classes/class-admin.php:1752
|
462 |
msgid "Target"
|
463 |
msgstr ""
|
464 |
|
465 |
+
#: dist/visual-portfolio/classes/class-admin.php:1757
|
466 |
msgid "New tab (_blank)"
|
467 |
msgstr ""
|
468 |
|
469 |
+
#: dist/visual-portfolio/classes/class-admin.php:1758
|
470 |
msgid "Top frame (_top)"
|
471 |
msgstr ""
|
472 |
|
473 |
+
#: dist/visual-portfolio/classes/class-admin.php:1772, dist/visual-portfolio/classes/class-admin.php:2638, dist/visual-portfolio/classes/class-admin.php:2693, dist/visual-portfolio/classes/class-controls.php:586
|
474 |
msgid "Title"
|
475 |
msgstr ""
|
476 |
|
477 |
+
#: dist/visual-portfolio/classes/class-admin.php:1776, dist/visual-portfolio/classes/class-admin.php:1796
|
478 |
msgid "None"
|
479 |
msgstr ""
|
480 |
|
481 |
+
#: dist/visual-portfolio/classes/class-admin.php:1777, dist/visual-portfolio/classes/class-admin.php:1797
|
482 |
msgid "Image Title"
|
483 |
msgstr ""
|
484 |
|
485 |
+
#: dist/visual-portfolio/classes/class-admin.php:1778, dist/visual-portfolio/classes/class-admin.php:1798
|
486 |
msgid "Image Caption"
|
487 |
msgstr ""
|
488 |
|
489 |
+
#: dist/visual-portfolio/classes/class-admin.php:1779, dist/visual-portfolio/classes/class-admin.php:1799
|
490 |
msgid "Image Alt"
|
491 |
msgstr ""
|
492 |
|
493 |
+
#: dist/visual-portfolio/classes/class-admin.php:1780, dist/visual-portfolio/classes/class-admin.php:1800
|
494 |
msgid "Image Description"
|
495 |
msgstr ""
|
496 |
|
497 |
+
#: dist/visual-portfolio/classes/class-admin.php:1792, dist/visual-portfolio/classes/class-controls.php:591
|
498 |
msgid "Description"
|
499 |
msgstr ""
|
500 |
|
501 |
+
#: dist/visual-portfolio/classes/class-admin.php:1828, dist/visual-portfolio/classes/class-admin.php:1958
|
502 |
msgid "Dropdown"
|
503 |
msgstr ""
|
504 |
|
505 |
+
#: dist/visual-portfolio/classes/class-admin.php:1890, dist/visual-portfolio/classes/class-admin.php:2020, dist/visual-portfolio/classes/class-admin.php:2153
|
506 |
msgid "Align"
|
507 |
msgstr ""
|
508 |
|
509 |
+
#: dist/visual-portfolio/classes/class-admin.php:1894, dist/visual-portfolio/classes/class-admin.php:2024, dist/visual-portfolio/classes/class-admin.php:2157, dist/visual-portfolio/classes/class-controls.php:535, dist/visual-portfolio/classes/class-controls.php:544, dist/visual-portfolio/classes/class-controls.php:548, dist/visual-portfolio/classes/class-controls.php:561
|
510 |
msgid "Center"
|
511 |
msgstr ""
|
512 |
|
513 |
+
#: dist/visual-portfolio/classes/class-admin.php:1895, dist/visual-portfolio/classes/class-admin.php:2025, dist/visual-portfolio/classes/class-admin.php:2158, dist/visual-portfolio/classes/class-controls.php:538, dist/visual-portfolio/classes/class-controls.php:551, dist/visual-portfolio/classes/class-controls.php:564
|
514 |
msgid "Left"
|
515 |
msgstr ""
|
516 |
|
517 |
+
#: dist/visual-portfolio/classes/class-admin.php:1896, dist/visual-portfolio/classes/class-admin.php:2026, dist/visual-portfolio/classes/class-admin.php:2159, dist/visual-portfolio/classes/class-controls.php:541, dist/visual-portfolio/classes/class-controls.php:554, dist/visual-portfolio/classes/class-controls.php:567
|
518 |
msgid "Right"
|
519 |
msgstr ""
|
520 |
|
521 |
+
#: dist/visual-portfolio/classes/class-admin.php:1911
|
522 |
msgid "Show count"
|
523 |
msgstr ""
|
524 |
|
525 |
+
#: dist/visual-portfolio/classes/class-admin.php:1927
|
526 |
msgid "All button text"
|
527 |
msgstr ""
|
528 |
|
529 |
+
#: dist/visual-portfolio/classes/class-admin.php:1929
|
530 |
msgid "All"
|
531 |
msgstr ""
|
532 |
|
533 |
+
#: dist/visual-portfolio/classes/class-admin.php:2116
|
534 |
msgid "Paged"
|
535 |
msgstr ""
|
536 |
|
537 |
+
#: dist/visual-portfolio/classes/class-admin.php:2117
|
538 |
msgid "Load More"
|
539 |
msgstr ""
|
540 |
|
541 |
+
#: dist/visual-portfolio/classes/class-admin.php:2118
|
542 |
msgid "Infinite"
|
543 |
msgstr ""
|
544 |
|
545 |
+
#: dist/visual-portfolio/classes/class-admin.php:2133
|
546 |
msgid "Note: you will see the \"Load More\" pagination in the preview. \"Infinite\" pagination will be visible on the site."
|
547 |
msgstr ""
|
548 |
|
549 |
+
#: dist/visual-portfolio/classes/class-admin.php:2179, dist/visual-portfolio/classes/class-admin.php:2199
|
550 |
msgid "Texts"
|
551 |
msgstr ""
|
552 |
|
553 |
+
#: dist/visual-portfolio/classes/class-admin.php:2220, dist/visual-portfolio/classes/class-admin.php:2289
|
554 |
msgid "Load more"
|
555 |
msgstr ""
|
556 |
|
557 |
+
#: dist/visual-portfolio/classes/class-admin.php:2221, dist/visual-portfolio/classes/class-admin.php:2222, dist/visual-portfolio/classes/class-admin.php:2290, dist/visual-portfolio/classes/class-admin.php:2291
|
558 |
msgid "Load more button label"
|
559 |
msgstr ""
|
560 |
|
561 |
+
#: dist/visual-portfolio/classes/class-admin.php:2243, dist/visual-portfolio/classes/class-admin.php:2312
|
562 |
msgid "Loading more..."
|
563 |
msgstr ""
|
564 |
|
565 |
+
#: dist/visual-portfolio/classes/class-admin.php:2244, dist/visual-portfolio/classes/class-admin.php:2245, dist/visual-portfolio/classes/class-admin.php:2313, dist/visual-portfolio/classes/class-admin.php:2314
|
566 |
msgid "Loading more button label"
|
567 |
msgstr ""
|
568 |
|
569 |
+
#: dist/visual-portfolio/classes/class-admin.php:2266, dist/visual-portfolio/classes/class-admin.php:2335
|
570 |
msgid "You’ve reached the end of the list"
|
571 |
msgstr ""
|
572 |
|
573 |
+
#: dist/visual-portfolio/classes/class-admin.php:2267, dist/visual-portfolio/classes/class-admin.php:2268, dist/visual-portfolio/classes/class-admin.php:2336, dist/visual-portfolio/classes/class-admin.php:2337
|
574 |
msgid "End of the list text"
|
575 |
msgstr ""
|
576 |
|
577 |
+
#: dist/visual-portfolio/classes/class-admin.php:2427
|
578 |
msgid "Show numbers"
|
579 |
msgstr ""
|
580 |
|
581 |
+
#: dist/visual-portfolio/classes/class-admin.php:2491
|
582 |
msgid "Data source"
|
583 |
msgstr ""
|
584 |
|
585 |
+
#: dist/visual-portfolio/classes/class-admin.php:2503
|
586 |
msgid "Specific posts"
|
587 |
msgstr ""
|
588 |
|
589 |
+
#: dist/visual-portfolio/classes/class-admin.php:2524
|
590 |
msgid "Excluded posts"
|
591 |
msgstr ""
|
592 |
|
593 |
+
#: dist/visual-portfolio/classes/class-admin.php:2552
|
594 |
msgid "Custom query"
|
595 |
msgstr ""
|
596 |
|
597 |
#. translators: %1$s - escaped url.
|
598 |
+
#: dist/visual-portfolio/classes/class-admin.php:2554
|
599 |
msgid "Build custom query according to <a href=\"%1$s\">WordPress Codex</a>."
|
600 |
msgstr ""
|
601 |
|
602 |
+
#: dist/visual-portfolio/classes/class-admin.php:2580
|
603 |
msgid "Taxonomies"
|
604 |
msgstr ""
|
605 |
|
606 |
+
#: dist/visual-portfolio/classes/class-admin.php:2607
|
607 |
msgid "Taxonomies relation"
|
608 |
msgstr ""
|
609 |
|
610 |
+
#: dist/visual-portfolio/classes/class-admin.php:2611
|
611 |
msgid "OR"
|
612 |
msgstr ""
|
613 |
|
614 |
+
#: dist/visual-portfolio/classes/class-admin.php:2612
|
615 |
msgid "AND"
|
616 |
msgstr ""
|
617 |
|
618 |
+
#: dist/visual-portfolio/classes/class-admin.php:2633, dist/visual-portfolio/classes/class-admin.php:2687
|
619 |
msgid "Order by"
|
620 |
msgstr ""
|
621 |
|
622 |
+
#: dist/visual-portfolio/classes/class-admin.php:2637
|
623 |
msgid "Date"
|
624 |
msgstr ""
|
625 |
|
626 |
+
#: dist/visual-portfolio/classes/class-admin.php:2639
|
627 |
msgid "ID"
|
628 |
msgstr ""
|
629 |
|
630 |
+
#: dist/visual-portfolio/classes/class-admin.php:2640
|
631 |
msgid "Menu Order"
|
632 |
msgstr ""
|
633 |
|
634 |
+
#: dist/visual-portfolio/classes/class-admin.php:2641, dist/visual-portfolio/classes/class-admin.php:2694
|
635 |
msgid "Random"
|
636 |
msgstr ""
|
637 |
|
638 |
+
#: dist/visual-portfolio/classes/class-admin.php:2650, dist/visual-portfolio/classes/class-admin.php:2703
|
639 |
msgid "Order direction"
|
640 |
msgstr ""
|
641 |
|
642 |
+
#: dist/visual-portfolio/classes/class-admin.php:2654, dist/visual-portfolio/classes/class-admin.php:2708
|
643 |
msgid "DESC"
|
644 |
msgstr ""
|
645 |
|
646 |
+
#: dist/visual-portfolio/classes/class-admin.php:2655, dist/visual-portfolio/classes/class-admin.php:2707
|
647 |
msgid "ASC"
|
648 |
msgstr ""
|
649 |
|
650 |
+
#: dist/visual-portfolio/classes/class-admin.php:2692
|
651 |
msgid "Uploaded"
|
652 |
msgstr ""
|
653 |
|
654 |
+
#: dist/visual-portfolio/classes/class-admin.php:2725
|
655 |
msgid "Name & Shortcode"
|
656 |
msgstr ""
|
657 |
|
658 |
+
#: dist/visual-portfolio/classes/class-admin.php:2733
|
659 |
msgid "Layout"
|
660 |
msgstr ""
|
661 |
|
662 |
+
#: dist/visual-portfolio/classes/class-admin.php:2741
|
663 |
msgid "Items Style"
|
664 |
msgstr ""
|
665 |
|
666 |
+
#: dist/visual-portfolio/classes/class-admin.php:2749
|
667 |
msgid "Items Click Action"
|
668 |
msgstr ""
|
669 |
|
670 |
+
#: dist/visual-portfolio/classes/class-admin.php:2757
|
671 |
msgid "Filter"
|
672 |
msgstr ""
|
673 |
|
674 |
+
#: dist/visual-portfolio/classes/class-admin.php:2765
|
675 |
msgid "Sort"
|
676 |
msgstr ""
|
677 |
|
678 |
+
#: dist/visual-portfolio/classes/class-admin.php:2773
|
679 |
msgid "Pagination"
|
680 |
msgstr ""
|
681 |
|
682 |
+
#: dist/visual-portfolio/classes/class-admin.php:2782
|
683 |
msgid "Preview"
|
684 |
msgstr ""
|
685 |
|
686 |
+
#: dist/visual-portfolio/classes/class-admin.php:2790
|
687 |
msgid "Content Source"
|
688 |
msgstr ""
|
689 |
|
690 |
+
#: dist/visual-portfolio/classes/class-admin.php:2798
|
691 |
msgid "Custom CSS"
|
692 |
msgstr ""
|
693 |
|
694 |
+
#: dist/visual-portfolio/classes/class-admin.php:2819
|
695 |
msgid "Name"
|
696 |
msgstr ""
|
697 |
|
698 |
+
#: dist/visual-portfolio/classes/class-admin.php:2829
|
699 |
msgid "Place the shortcode where you want to show the portfolio list."
|
700 |
msgstr ""
|
701 |
|
702 |
+
#: dist/visual-portfolio/classes/class-admin.php:2895
|
703 |
msgid "Filter Shortcode"
|
704 |
msgstr ""
|
705 |
|
706 |
+
#: dist/visual-portfolio/classes/class-admin.php:2896
|
707 |
msgid "Place the shortcode where you want to show the filter."
|
708 |
msgstr ""
|
709 |
|
710 |
+
#: dist/visual-portfolio/classes/class-admin.php:2972
|
711 |
msgid "Portfolio"
|
712 |
msgstr ""
|
713 |
|
714 |
+
#: dist/visual-portfolio/classes/class-admin.php:2978
|
715 |
msgid "Post-Based"
|
716 |
msgstr ""
|
717 |
|
718 |
+
#: dist/visual-portfolio/classes/class-admin.php:2984
|
719 |
msgid "Images"
|
720 |
msgstr ""
|
721 |
|
722 |
#. translators: %1$s - escaped url.
|
723 |
+
#: dist/visual-portfolio/classes/class-admin.php:3003
|
724 |
msgid "Portfolio items list from <a href=\"%1$s\" target=\"_blank\">%2$s</a>"
|
725 |
msgstr ""
|
726 |
|
727 |
+
#: dist/visual-portfolio/classes/class-admin.php:3041
|
728 |
msgid "Available classes:"
|
729 |
msgstr ""
|
730 |
|
731 |
+
#: dist/visual-portfolio/classes/class-admin.php:3044
|
732 |
msgid " - use this classname for each styles you added. It is the main Visual Portfolio wrapper."
|
733 |
msgstr ""
|
734 |
|
735 |
+
#: dist/visual-portfolio/classes/class-admin.php:3045
|
736 |
msgid " - items wrapper."
|
737 |
msgstr ""
|
738 |
|
739 |
+
#: dist/visual-portfolio/classes/class-admin.php:3046
|
740 |
msgid " - single item wrapper."
|
741 |
msgstr ""
|
742 |
|
743 |
+
#: dist/visual-portfolio/classes/class-admin.php:3047
|
744 |
msgid " - filter wrapper."
|
745 |
msgstr ""
|
746 |
|
747 |
+
#: dist/visual-portfolio/classes/class-admin.php:3048
|
748 |
msgid " - pagination wrapper."
|
749 |
msgstr ""
|
750 |
|
751 |
+
#: dist/visual-portfolio/classes/class-admin.php:3110
|
752 |
msgid "Specific Posts"
|
753 |
msgstr ""
|
754 |
|
755 |
+
#: dist/visual-portfolio/classes/class-admin.php:3111
|
756 |
msgid "Custom Query"
|
757 |
msgstr ""
|
758 |
|
readme.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Requires at least: 4.0.0
|
6 |
* Tested up to: 5.2
|
7 |
* Requires PHP: 5.4
|
8 |
-
* Stable tag: 1.12.
|
9 |
* License: GPLv2 or later
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -122,6 +122,12 @@ The manual installation method involves downloading our Visual Portfolio plugin
|
|
122 |
|
123 |
## Changelog ##
|
124 |
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
= 1.12.0 =
|
126 |
|
127 |
* changed video oembed loading method
|
5 |
* Requires at least: 4.0.0
|
6 |
* Tested up to: 5.2
|
7 |
* Requires PHP: 5.4
|
8 |
+
* Stable tag: 1.12.1
|
9 |
* License: GPLv2 or later
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
122 |
|
123 |
## Changelog ##
|
124 |
|
125 |
+
= 1.12.1 =
|
126 |
+
|
127 |
+
* fixed Vimeo and other vendors video popup loading
|
128 |
+
* fixed Tiles sometimes wrong position calculation (for example in `2|2,1|1,1|1,1|`)
|
129 |
+
* fixed overlay position bug in default theme in Fade and Fly effects
|
130 |
+
|
131 |
= 1.12.0 =
|
132 |
|
133 |
* changed video oembed loading method
|
templates/items-list/filter/dropdown/style.css
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
.vp-filter__style-dropdown{display:flex;flex-wrap:wrap;justify-content:center;padding:0;margin:-3px;margin-bottom:17px;list-style-type:none}.vp-filter__style-dropdown.vp-filter__align-left{justify-content:flex-start}.vp-filter__style-dropdown.vp-filter__align-right{justify-content:flex-end}.vp-filter__style-dropdown select{display:block;min-width:40px;padding:8px 16px;margin:3px;line-height:1.4;color:inherit;text-decoration:none;background-color:#fff;border:1px solid #eaeaea;transition:.2s border-color, .2s background-color, .2s color;will-change:border-color, background-color, color}.vp-filter__style-dropdown select:hover{border:1px solid #bfbfbf}
|
|
templates/items-list/filter/dropdown/style.min.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.vp-filter__style-dropdown{display:-webkit-box;display:flex;flex-wrap:wrap;-webkit-box-pack:center;justify-content:center;padding:0;margin:-3px;margin-bottom:17px;list-style-type:none}.vp-filter__style-dropdown.vp-filter__align-left{-webkit-box-pack:start;justify-content:flex-start}.vp-filter__style-dropdown.vp-filter__align-right{-webkit-box-pack:end;justify-content:flex-end}.vp-filter__style-dropdown select{display:block;min-width:40px;padding:8px 16px;margin:3px;line-height:1.4;color:inherit;text-decoration:none;background-color:#fff;border:1px solid #eaeaea;-webkit-transition:.2s border-color, .2s background-color, .2s color;transition:.2s border-color, .2s background-color, .2s color;will-change:border-color, background-color, color}.vp-filter__style-dropdown select:hover{border:1px solid #bfbfbf}
|
templates/items-list/filter/dropdown/style.scss
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* Dropdown filter style
|
3 |
-
*/
|
4 |
-
.vp-filter__style-dropdown {
|
5 |
-
display: flex;
|
6 |
-
flex-wrap: wrap;
|
7 |
-
justify-content: center;
|
8 |
-
padding: 0;
|
9 |
-
margin: -3px;
|
10 |
-
margin-bottom: 17px;
|
11 |
-
list-style-type: none;
|
12 |
-
|
13 |
-
// align
|
14 |
-
&.vp-filter__align-left {
|
15 |
-
justify-content: flex-start;
|
16 |
-
}
|
17 |
-
&.vp-filter__align-right {
|
18 |
-
justify-content: flex-end;
|
19 |
-
}
|
20 |
-
|
21 |
-
select {
|
22 |
-
display: block;
|
23 |
-
min-width: 40px;
|
24 |
-
padding: 8px 16px;
|
25 |
-
margin: 3px;
|
26 |
-
line-height: 1.4;
|
27 |
-
color: inherit;
|
28 |
-
text-decoration: none;
|
29 |
-
background-color: #fff;
|
30 |
-
border: 1px solid #eaeaea;
|
31 |
-
transition: .2s border-color, .2s background-color, .2s color;
|
32 |
-
will-change: border-color, background-color, color;
|
33 |
-
|
34 |
-
&:hover {
|
35 |
-
border: 1px solid #bfbfbf;
|
36 |
-
}
|
37 |
-
}
|
38 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
templates/items-list/filter/style.css
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
.vp-filter__style-default{display:flex;flex-wrap:wrap;justify-content:center;padding:0;margin:-3px;margin-bottom:17px;list-style-type:none}.vp-filter__style-default .vp-filter__item a{outline:none;box-shadow:none}.vp-filter__style-default.vp-filter__align-left{justify-content:flex-start}.vp-filter__style-default.vp-filter__align-right{justify-content:flex-end}.vp-filter__style-default .vp-filter__item{flex:0 0 auto;padding:0;margin:3px;text-align:center;list-style-type:none}.vp-filter__style-default .vp-filter__item>*{display:block;min-width:40px;padding:8px 16px;line-height:1.4;color:inherit;text-decoration:none;background-color:#fff;border:1px solid #eaeaea;transition:.2s border-color, .2s background-color, .2s color;will-change:border-color, background-color, color}.vp-filter__style-default .vp-filter__item:not(.vp-filter__item-active)>a:hover{border:1px solid #bfbfbf}.vp-filter__style-default .vp-filter__item.vp-filter__item-active>*{color:#fff;cursor:default;background-color:#6c7781;border:1px solid #6c7781}.vp-filter__style-default .vp-filter__item .vp-filter__item-count{float:right;margin-left:8px;font-size:60%}
|
|
templates/items-list/filter/style.min.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.vp-filter__style-default{display:-webkit-box;display:flex;flex-wrap:wrap;-webkit-box-pack:center;justify-content:center;padding:0;margin:-3px;margin-bottom:17px;list-style-type:none}.vp-filter__style-default .vp-filter__item a{outline:none;box-shadow:none}.vp-filter__style-default.vp-filter__align-left{-webkit-box-pack:start;justify-content:flex-start}.vp-filter__style-default.vp-filter__align-right{-webkit-box-pack:end;justify-content:flex-end}.vp-filter__style-default .vp-filter__item{-webkit-box-flex:0;flex:0 0 auto;padding:0;margin:3px;text-align:center;list-style-type:none}.vp-filter__style-default .vp-filter__item>*{display:block;min-width:40px;padding:8px 16px;line-height:1.4;color:inherit;text-decoration:none;background-color:#fff;border:1px solid #eaeaea;-webkit-transition:.2s border-color, .2s background-color, .2s color;transition:.2s border-color, .2s background-color, .2s color;will-change:border-color, background-color, color}.vp-filter__style-default .vp-filter__item:not(.vp-filter__item-active)>a:hover{border:1px solid #bfbfbf}.vp-filter__style-default .vp-filter__item.vp-filter__item-active>*{color:#fff;cursor:default;background-color:#6c7781;border:1px solid #6c7781}.vp-filter__style-default .vp-filter__item .vp-filter__item-count{float:right;margin-left:8px;font-size:60%}
|
templates/items-list/filter/style.scss
DELETED
@@ -1,63 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* Default filter style
|
3 |
-
*/
|
4 |
-
.vp-filter__style-default {
|
5 |
-
display: flex;
|
6 |
-
flex-wrap: wrap;
|
7 |
-
justify-content: center;
|
8 |
-
padding: 0;
|
9 |
-
margin: -3px;
|
10 |
-
margin-bottom: 17px;
|
11 |
-
list-style-type: none;
|
12 |
-
|
13 |
-
.vp-filter__item a {
|
14 |
-
outline: none;
|
15 |
-
box-shadow: none;
|
16 |
-
}
|
17 |
-
|
18 |
-
// align
|
19 |
-
&.vp-filter__align-left {
|
20 |
-
justify-content: flex-start;
|
21 |
-
}
|
22 |
-
&.vp-filter__align-right {
|
23 |
-
justify-content: flex-end;
|
24 |
-
}
|
25 |
-
|
26 |
-
.vp-filter__item {
|
27 |
-
flex: 0 0 auto;
|
28 |
-
padding: 0;
|
29 |
-
margin: 3px;
|
30 |
-
text-align: center;
|
31 |
-
list-style-type: none;
|
32 |
-
|
33 |
-
> * {
|
34 |
-
display: block;
|
35 |
-
min-width: 40px;
|
36 |
-
padding: 8px 16px;
|
37 |
-
line-height: 1.4;
|
38 |
-
color: inherit;
|
39 |
-
text-decoration: none;
|
40 |
-
background-color: #fff;
|
41 |
-
border: 1px solid #eaeaea;
|
42 |
-
transition: .2s border-color, .2s background-color, .2s color;
|
43 |
-
will-change: border-color, background-color, color;
|
44 |
-
}
|
45 |
-
|
46 |
-
&:not(.vp-filter__item-active) > a:hover {
|
47 |
-
border: 1px solid #bfbfbf;
|
48 |
-
}
|
49 |
-
|
50 |
-
&.vp-filter__item-active > * {
|
51 |
-
color: #fff;
|
52 |
-
cursor: default;
|
53 |
-
background-color: #6c7781;
|
54 |
-
border: 1px solid #6c7781;
|
55 |
-
}
|
56 |
-
|
57 |
-
.vp-filter__item-count {
|
58 |
-
float: right;
|
59 |
-
margin-left: 8px;
|
60 |
-
font-size: 60%;
|
61 |
-
}
|
62 |
-
}
|
63 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
templates/items-list/items-style/emerge/style.css
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
.vp-portfolio__items-style-emerge .vp-portfolio__item a{outline:none;box-shadow:none}.vp-portfolio__items-style-emerge .vp-portfolio__item-overlay{position:absolute;bottom:0;left:0;width:100%;max-height:50%;padding:15px 32px;color:#000;background-color:#fff;transition:0.5s -webkit-transform cubic-bezier(0.07, 0.72, 0.24, 1);transition:0.5s transform cubic-bezier(0.07, 0.72, 0.24, 1);transition:0.5s transform cubic-bezier(0.07, 0.72, 0.24, 1), 0.5s -webkit-transform cubic-bezier(0.07, 0.72, 0.24, 1);-webkit-transform:translateY(100%);transform:translateY(100%);will-change:transform}.vp-portfolio__items-style-emerge .vp-portfolio__item-overlay::before{content:"";position:absolute;display:block;top:0;right:0;left:-20px;height:600%;background-color:inherit;transition:.5s transform ease;-webkit-transform:rotate(0deg);transform:rotate(0deg);-webkit-transform-origin:100% 0;transform-origin:100% 0;will-change:transform;z-index:-1}.vp-portfolio__items-style-emerge figcaption.vp-portfolio__item-overlay{font-style:inherit}.vp-portfolio__items-style-emerge .vp-portfolio__item-img img{transition:opacity 0.3s,-webkit-transform 2s cubic-bezier(0.08, 0.43, 0.24, 1);transition:transform 2s cubic-bezier(0.08, 0.43, 0.24, 1),opacity 0.3s;transition:transform 2s cubic-bezier(0.08, 0.43, 0.24, 1),opacity 0.3s,-webkit-transform 2s cubic-bezier(0.08, 0.43, 0.24, 1);will-change:transform, opacity}.vp-portfolio__items-style-emerge .vp-portfolio__item:hover .vp-portfolio__item-img img{-webkit-transform:scale(1.1);transform:scale(1.1)}.vp-portfolio__items-style-emerge .vp-portfolio__item:hover .vp-portfolio__item-overlay{-webkit-transform:translateY(0);transform:translateY(0)}.vp-portfolio__items-style-emerge .vp-portfolio__item:hover .vp-portfolio__item-overlay::before{-webkit-transform:rotate(3deg);transform:rotate(3deg)}.vp-portfolio__items-style-emerge .vp-portfolio__item-meta{color:inherit}.vp-portfolio__items-style-emerge .vp-portfolio__item-meta>*+*{margin-top:4px}.vp-portfolio__items-style-emerge .vp-portfolio__item-meta a{color:inherit;text-decoration:none}.vp-portfolio__items-style-emerge .vp-portfolio__item-meta a:hover{opacity:.8}.vp-portfolio__items-style-emerge .vp-portfolio__item-meta-title{margin-bottom:0;font-size:1.3em;color:inherit}.vp-portfolio__items-style-emerge .vp-portfolio__item-meta-date{font-size:.85em}.vp-portfolio__items-style-emerge .vp-portfolio__item-meta-categories{display:flex;flex-wrap:wrap;justify-content:flex-start;bottom:100%;left:0;padding:0;margin-right:0;margin-bottom:0;margin-left:0;list-style-type:none}.vp-portfolio__items-style-emerge .vp-portfolio__item-meta-categories .vp-portfolio__item-meta-category{padding:0;margin:0}.vp-portfolio__items-style-emerge .vp-portfolio__item-meta-categories .vp-portfolio__item-meta-category a::after{content:", "}.vp-portfolio__items-style-emerge .vp-portfolio__item-meta-categories .vp-portfolio__item-meta-category:last-of-type a::after{content:none}.vp-portfolio__items-style-emerge .vp-portfolio__item-meta-excerpt{opacity:.8}.vp-portfolio__items-style-emerge figcaption.vp-portfolio__item-meta{text-align:inherit}.vp-portfolio__items-style-emerge .vp-portfolio__item-align-left{text-align:left}.vp-portfolio__items-style-emerge .vp-portfolio__item-align-center{text-align:center}.vp-portfolio__items-style-emerge .vp-portfolio__item-align-center .vp-portfolio__item-meta-categories{justify-content:center}.vp-portfolio__items-style-emerge .vp-portfolio__item-align-right{text-align:right}.vp-portfolio__items-style-emerge .vp-portfolio__item-align-right .vp-portfolio__item-meta-categories{justify-content:flex-end}
|
|
templates/items-list/items-style/emerge/style.min.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.vp-portfolio__items-style-emerge .vp-portfolio__item a{outline:none;box-shadow:none}.vp-portfolio__items-style-emerge .vp-portfolio__item-overlay{position:absolute;bottom:0;left:0;width:100%;max-height:50%;padding:15px 32px;color:#000;background-color:#fff;-webkit-transition:0.5s -webkit-transform cubic-bezier(0.07, 0.72, 0.24, 1);transition:0.5s -webkit-transform cubic-bezier(0.07, 0.72, 0.24, 1);transition:0.5s transform cubic-bezier(0.07, 0.72, 0.24, 1);transition:0.5s transform cubic-bezier(0.07, 0.72, 0.24, 1), 0.5s -webkit-transform cubic-bezier(0.07, 0.72, 0.24, 1);-webkit-transform:translateY(100%);transform:translateY(100%);will-change:transform}.vp-portfolio__items-style-emerge .vp-portfolio__item-overlay::before{content:"";position:absolute;display:block;top:0;right:0;left:-20px;height:600%;background-color:inherit;-webkit-transition:.5s transform ease;transition:.5s transform ease;-webkit-transform:rotate(0deg);transform:rotate(0deg);-webkit-transform-origin:100% 0;transform-origin:100% 0;will-change:transform;z-index:-1}.vp-portfolio__items-style-emerge figcaption.vp-portfolio__item-overlay{font-style:inherit}.vp-portfolio__items-style-emerge .vp-portfolio__item-img img{-webkit-transition:opacity 0.3s,-webkit-transform 2s cubic-bezier(0.08, 0.43, 0.24, 1);transition:opacity 0.3s,-webkit-transform 2s cubic-bezier(0.08, 0.43, 0.24, 1);transition:transform 2s cubic-bezier(0.08, 0.43, 0.24, 1),opacity 0.3s;transition:transform 2s cubic-bezier(0.08, 0.43, 0.24, 1),opacity 0.3s,-webkit-transform 2s cubic-bezier(0.08, 0.43, 0.24, 1);will-change:transform, opacity}.vp-portfolio__items-style-emerge .vp-portfolio__item:hover .vp-portfolio__item-img img{-webkit-transform:scale(1.1);transform:scale(1.1)}.vp-portfolio__items-style-emerge .vp-portfolio__item:hover .vp-portfolio__item-overlay{-webkit-transform:translateY(0);transform:translateY(0)}.vp-portfolio__items-style-emerge .vp-portfolio__item:hover .vp-portfolio__item-overlay::before{-webkit-transform:rotate(3deg);transform:rotate(3deg)}.vp-portfolio__items-style-emerge .vp-portfolio__item-meta{color:inherit}.vp-portfolio__items-style-emerge .vp-portfolio__item-meta>*+*{margin-top:4px}.vp-portfolio__items-style-emerge .vp-portfolio__item-meta a{color:inherit;text-decoration:none}.vp-portfolio__items-style-emerge .vp-portfolio__item-meta a:hover{opacity:.8}.vp-portfolio__items-style-emerge .vp-portfolio__item-meta-title{margin-bottom:0;font-size:1.3em;color:inherit}.vp-portfolio__items-style-emerge .vp-portfolio__item-meta-date{font-size:.85em}.vp-portfolio__items-style-emerge .vp-portfolio__item-meta-categories{display:-webkit-box;display:flex;flex-wrap:wrap;-webkit-box-pack:start;justify-content:flex-start;bottom:100%;left:0;padding:0;margin-right:0;margin-bottom:0;margin-left:0;list-style-type:none}.vp-portfolio__items-style-emerge .vp-portfolio__item-meta-categories .vp-portfolio__item-meta-category{padding:0;margin:0}.vp-portfolio__items-style-emerge .vp-portfolio__item-meta-categories .vp-portfolio__item-meta-category a::after{content:", "}.vp-portfolio__items-style-emerge .vp-portfolio__item-meta-categories .vp-portfolio__item-meta-category:last-of-type a::after{content:none}.vp-portfolio__items-style-emerge .vp-portfolio__item-meta-excerpt{opacity:.8}.vp-portfolio__items-style-emerge figcaption.vp-portfolio__item-meta{text-align:inherit}.vp-portfolio__items-style-emerge .vp-portfolio__item-align-left{text-align:left}.vp-portfolio__items-style-emerge .vp-portfolio__item-align-center{text-align:center}.vp-portfolio__items-style-emerge .vp-portfolio__item-align-center .vp-portfolio__item-meta-categories{-webkit-box-pack:center;justify-content:center}.vp-portfolio__items-style-emerge .vp-portfolio__item-align-right{text-align:right}.vp-portfolio__items-style-emerge .vp-portfolio__item-align-right .vp-portfolio__item-meta-categories{-webkit-box-pack:end;justify-content:flex-end}
|
templates/items-list/items-style/emerge/style.scss
DELETED
@@ -1,138 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* Emerge items style
|
3 |
-
*/
|
4 |
-
.vp-portfolio__items-style-emerge {
|
5 |
-
.vp-portfolio__item a {
|
6 |
-
outline: none;
|
7 |
-
box-shadow: none;
|
8 |
-
}
|
9 |
-
|
10 |
-
.vp-portfolio__item-overlay {
|
11 |
-
position: absolute;
|
12 |
-
bottom: 0;
|
13 |
-
left: 0;
|
14 |
-
width: 100%;
|
15 |
-
max-height: 50%;
|
16 |
-
padding: 15px 32px;
|
17 |
-
color: #000;
|
18 |
-
background-color: #fff;
|
19 |
-
transition: .5s transform cubic-bezier(.07, .72, .24, 1);
|
20 |
-
transform: translateY(100%);
|
21 |
-
will-change: transform;
|
22 |
-
|
23 |
-
&::before {
|
24 |
-
content: "";
|
25 |
-
position: absolute;
|
26 |
-
display: block;
|
27 |
-
top: 0;
|
28 |
-
right: 0;
|
29 |
-
left: -20px;
|
30 |
-
height: 600%;
|
31 |
-
background-color: inherit;
|
32 |
-
transition: .5s transform ease;
|
33 |
-
transform: rotate(0deg);
|
34 |
-
transform-origin: 100% 0;
|
35 |
-
will-change: transform;
|
36 |
-
z-index: -1;
|
37 |
-
}
|
38 |
-
}
|
39 |
-
|
40 |
-
// fix some themes figcaption styles.
|
41 |
-
figcaption.vp-portfolio__item-overlay {
|
42 |
-
font-style: inherit;
|
43 |
-
}
|
44 |
-
|
45 |
-
// Transitions
|
46 |
-
.vp-portfolio__item-img img {
|
47 |
-
transition: transform 2s cubic-bezier(.08, .43, .24, 1), opacity .3s;
|
48 |
-
will-change: transform, opacity;
|
49 |
-
}
|
50 |
-
|
51 |
-
.vp-portfolio__item:hover {
|
52 |
-
.vp-portfolio__item-img img {
|
53 |
-
transform: scale(1.1);
|
54 |
-
}
|
55 |
-
.vp-portfolio__item-overlay {
|
56 |
-
transform: translateY(0);
|
57 |
-
&::before {
|
58 |
-
transform: rotate(3deg);
|
59 |
-
}
|
60 |
-
}
|
61 |
-
}
|
62 |
-
|
63 |
-
// meta
|
64 |
-
.vp-portfolio__item-meta {
|
65 |
-
color: inherit;
|
66 |
-
|
67 |
-
> * + * {
|
68 |
-
margin-top: 4px;
|
69 |
-
}
|
70 |
-
|
71 |
-
a {
|
72 |
-
color: inherit;
|
73 |
-
text-decoration: none;
|
74 |
-
|
75 |
-
&:hover {
|
76 |
-
opacity: .8;
|
77 |
-
}
|
78 |
-
}
|
79 |
-
}
|
80 |
-
.vp-portfolio__item-meta-title {
|
81 |
-
margin-bottom: 0;
|
82 |
-
font-size: 1.3em;
|
83 |
-
color: inherit;
|
84 |
-
}
|
85 |
-
.vp-portfolio__item-meta-date {
|
86 |
-
font-size: .85em;
|
87 |
-
}
|
88 |
-
.vp-portfolio__item-meta-categories {
|
89 |
-
display: flex;
|
90 |
-
flex-wrap: wrap;
|
91 |
-
justify-content: flex-start;
|
92 |
-
bottom: 100%;
|
93 |
-
left: 0;
|
94 |
-
padding: 0;
|
95 |
-
margin-right: 0;
|
96 |
-
margin-bottom: 0;
|
97 |
-
margin-left: 0;
|
98 |
-
list-style-type: none;
|
99 |
-
|
100 |
-
.vp-portfolio__item-meta-category {
|
101 |
-
padding: 0;
|
102 |
-
margin: 0;
|
103 |
-
}
|
104 |
-
.vp-portfolio__item-meta-category a::after {
|
105 |
-
content: ", ";
|
106 |
-
}
|
107 |
-
.vp-portfolio__item-meta-category:last-of-type a::after {
|
108 |
-
content: none;
|
109 |
-
}
|
110 |
-
}
|
111 |
-
.vp-portfolio__item-meta-excerpt {
|
112 |
-
opacity: .8;
|
113 |
-
}
|
114 |
-
|
115 |
-
// fix align for gutenberg block.
|
116 |
-
figcaption.vp-portfolio__item-meta {
|
117 |
-
text-align: inherit;
|
118 |
-
}
|
119 |
-
|
120 |
-
// align
|
121 |
-
.vp-portfolio__item-align-left {
|
122 |
-
text-align: left;
|
123 |
-
}
|
124 |
-
.vp-portfolio__item-align-center {
|
125 |
-
text-align: center;
|
126 |
-
|
127 |
-
.vp-portfolio__item-meta-categories {
|
128 |
-
justify-content: center;
|
129 |
-
}
|
130 |
-
}
|
131 |
-
.vp-portfolio__item-align-right {
|
132 |
-
text-align: right;
|
133 |
-
|
134 |
-
.vp-portfolio__item-meta-categories {
|
135 |
-
justify-content: flex-end;
|
136 |
-
}
|
137 |
-
}
|
138 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
templates/items-list/items-style/fade/style.css
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
.vp-portfolio__items-style-fade .vp-portfolio__item a{outline:none;box-shadow:none}.vp-portfolio__items-style-fade .vp-portfolio__item-overlay{position:absolute;top:0;right:0;bottom:0;left:0;color:#fff;text-decoration:none;background-color:rgba(0,0,0,0.85);opacity:0;transition:opacity 1s cubic-bezier(0.07, 0.72, 0.24, 1);will-change:opacity;z-index:2}.vp-portfolio__items-style-fade figcaption.vp-portfolio__item-overlay{font-style:inherit;color:#fff}.vp-portfolio__items-style-fade .vp-portfolio__item-meta{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;padding:20px;color:inherit;text-align:center;transition:opacity 1s cubic-bezier(0.07, 0.72, 0.24, 1),-webkit-transform 1s cubic-bezier(0.07, 0.72, 0.24, 1);transition:transform 1s cubic-bezier(0.07, 0.72, 0.24, 1),opacity 1s cubic-bezier(0.07, 0.72, 0.24, 1);transition:transform 1s cubic-bezier(0.07, 0.72, 0.24, 1),opacity 1s cubic-bezier(0.07, 0.72, 0.24, 1),-webkit-transform 1s cubic-bezier(0.07, 0.72, 0.24, 1);-webkit-transform:scale(0.8);transform:scale(0.8);will-change:transform, opacity}.vp-portfolio__items-style-fade .vp-portfolio__item-meta>*{max-width:100%}.vp-portfolio__items-style-fade .vp-portfolio__item-meta>*+*{margin-top:4px}.vp-portfolio__items-style-fade .vp-portfolio__item-meta-title{margin-bottom:0;font-size:1.3em;color:inherit}.vp-portfolio__items-style-fade .vp-portfolio__item-meta-date{font-size:.85em}.vp-portfolio__items-style-fade .vp-portfolio__item-meta-icon{font-size:2em}.vp-portfolio__items-style-fade .vp-portfolio__item-meta-icon+*{margin-top:15px}.vp-portfolio__items-style-fade .vp-portfolio__item-meta-categories{position:absolute;display:flex;flex-wrap:wrap;bottom:0;left:0;padding:0;margin:0 -5px;list-style-type:none}.vp-portfolio__items-style-fade .vp-portfolio__item-meta-categories .vp-portfolio__item-meta-category{display:block;padding:4px 15px;margin:0 5px;color:#fff;background-color:#3c3c3c}.vp-portfolio__items-style-fade .vp-portfolio__item-meta-excerpt{opacity:.8}.vp-portfolio__items-style-fade .vp-portfolio__item-img img{transition:opacity 0.3s,-webkit-transform 2s cubic-bezier(0.08, 0.43, 0.24, 1);transition:transform 2s cubic-bezier(0.08, 0.43, 0.24, 1),opacity 0.3s;transition:transform 2s cubic-bezier(0.08, 0.43, 0.24, 1),opacity 0.3s,-webkit-transform 2s cubic-bezier(0.08, 0.43, 0.24, 1);will-change:transform, opacity;z-index:1}.vp-portfolio__items-style-fade .vp-portfolio__item:hover .vp-portfolio__item-overlay{opacity:1}.vp-portfolio__items-style-fade .vp-portfolio__item:hover .vp-portfolio__item-meta{-webkit-transform:scale(1);transform:scale(1)}.vp-portfolio__items-style-fade .vp-portfolio__item:hover .vp-portfolio__item-img img{-webkit-transform:scale(1.1);transform:scale(1.1)}.vp-portfolio__items-style-fade .vp-portfolio__item-align-center .vp-portfolio__item-meta{align-items:center;text-align:center}.vp-portfolio__items-style-fade .vp-portfolio__item-align-left .vp-portfolio__item-meta{align-items:flex-start;text-align:left}.vp-portfolio__items-style-fade .vp-portfolio__item-align-right .vp-portfolio__item-meta{align-items:flex-end;text-align:right}.vp-portfolio__items-style-fade .vp-portfolio__item-align-top-center .vp-portfolio__item-meta{align-items:center;justify-content:flex-start;text-align:center}.vp-portfolio__items-style-fade .vp-portfolio__item-align-top-left .vp-portfolio__item-meta{align-items:flex-start;justify-content:flex-start;text-align:left}.vp-portfolio__items-style-fade .vp-portfolio__item-align-top-right .vp-portfolio__item-meta{align-items:flex-end;justify-content:flex-start;text-align:right}.vp-portfolio__items-style-fade .vp-portfolio__item-align-bottom-center .vp-portfolio__item-meta{align-items:center;justify-content:flex-end;text-align:center}.vp-portfolio__items-style-fade .vp-portfolio__item-align-bottom-left .vp-portfolio__item-meta{align-items:flex-start;justify-content:flex-end;text-align:left}.vp-portfolio__items-style-fade .vp-portfolio__item-align-bottom-right .vp-portfolio__item-meta{align-items:flex-end;justify-content:flex-end;text-align:right}
|
|
templates/items-list/items-style/fade/style.min.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.vp-portfolio__items-style-fade .vp-portfolio__item a{outline:none;box-shadow:none}.vp-portfolio__items-style-fade .vp-portfolio__item-overlay{position:absolute;top:0;right:0;bottom:0;left:0;color:#fff;text-decoration:none;background-color:rgba(0,0,0,0.85);opacity:0;-webkit-transition:opacity 1s cubic-bezier(0.07, 0.72, 0.24, 1);transition:opacity 1s cubic-bezier(0.07, 0.72, 0.24, 1);will-change:opacity;z-index:2}.vp-portfolio__items-style-fade figcaption.vp-portfolio__item-overlay{margin:0;font-style:inherit;color:#fff}.vp-portfolio__items-style-fade .vp-portfolio__item-meta{position:relative;display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;width:100%;height:100%;padding:20px;color:inherit;text-align:center;-webkit-transition:opacity 1s cubic-bezier(0.07, 0.72, 0.24, 1),-webkit-transform 1s cubic-bezier(0.07, 0.72, 0.24, 1);transition:opacity 1s cubic-bezier(0.07, 0.72, 0.24, 1),-webkit-transform 1s cubic-bezier(0.07, 0.72, 0.24, 1);transition:transform 1s cubic-bezier(0.07, 0.72, 0.24, 1),opacity 1s cubic-bezier(0.07, 0.72, 0.24, 1);transition:transform 1s cubic-bezier(0.07, 0.72, 0.24, 1),opacity 1s cubic-bezier(0.07, 0.72, 0.24, 1),-webkit-transform 1s cubic-bezier(0.07, 0.72, 0.24, 1);-webkit-transform:scale(0.8);transform:scale(0.8);will-change:transform, opacity}.vp-portfolio__items-style-fade .vp-portfolio__item-meta>*{max-width:100%}.vp-portfolio__items-style-fade .vp-portfolio__item-meta>*+*{margin-top:4px}.vp-portfolio__items-style-fade .vp-portfolio__item-meta-title{margin-bottom:0;font-size:1.3em;color:inherit}.vp-portfolio__items-style-fade .vp-portfolio__item-meta-date{font-size:.85em}.vp-portfolio__items-style-fade .vp-portfolio__item-meta-icon{font-size:2em}.vp-portfolio__items-style-fade .vp-portfolio__item-meta-icon+*{margin-top:15px}.vp-portfolio__items-style-fade .vp-portfolio__item-meta-categories{position:absolute;display:-webkit-box;display:flex;flex-wrap:wrap;bottom:0;left:0;padding:0;margin:0 -5px;list-style-type:none}.vp-portfolio__items-style-fade .vp-portfolio__item-meta-categories .vp-portfolio__item-meta-category{display:block;padding:4px 15px;margin:0 5px;color:#fff;background-color:#3c3c3c}.vp-portfolio__items-style-fade .vp-portfolio__item-meta-excerpt{opacity:.8}.vp-portfolio__items-style-fade .vp-portfolio__item-img img{-webkit-transition:opacity 0.3s,-webkit-transform 2s cubic-bezier(0.08, 0.43, 0.24, 1);transition:opacity 0.3s,-webkit-transform 2s cubic-bezier(0.08, 0.43, 0.24, 1);transition:transform 2s cubic-bezier(0.08, 0.43, 0.24, 1),opacity 0.3s;transition:transform 2s cubic-bezier(0.08, 0.43, 0.24, 1),opacity 0.3s,-webkit-transform 2s cubic-bezier(0.08, 0.43, 0.24, 1);will-change:transform, opacity;z-index:1}.vp-portfolio__items-style-fade .vp-portfolio__item:hover .vp-portfolio__item-overlay{opacity:1}.vp-portfolio__items-style-fade .vp-portfolio__item:hover .vp-portfolio__item-meta{-webkit-transform:scale(1);transform:scale(1)}.vp-portfolio__items-style-fade .vp-portfolio__item:hover .vp-portfolio__item-img img{-webkit-transform:scale(1.1);transform:scale(1.1)}.vp-portfolio__items-style-fade .vp-portfolio__item-align-center .vp-portfolio__item-meta{-webkit-box-align:center;align-items:center;text-align:center}.vp-portfolio__items-style-fade .vp-portfolio__item-align-left .vp-portfolio__item-meta{-webkit-box-align:start;align-items:flex-start;text-align:left}.vp-portfolio__items-style-fade .vp-portfolio__item-align-right .vp-portfolio__item-meta{-webkit-box-align:end;align-items:flex-end;text-align:right}.vp-portfolio__items-style-fade .vp-portfolio__item-align-top-center .vp-portfolio__item-meta{-webkit-box-align:center;align-items:center;-webkit-box-pack:start;justify-content:flex-start;text-align:center}.vp-portfolio__items-style-fade .vp-portfolio__item-align-top-left .vp-portfolio__item-meta{-webkit-box-align:start;align-items:flex-start;-webkit-box-pack:start;justify-content:flex-start;text-align:left}.vp-portfolio__items-style-fade .vp-portfolio__item-align-top-right .vp-portfolio__item-meta{-webkit-box-align:end;align-items:flex-end;-webkit-box-pack:start;justify-content:flex-start;text-align:right}.vp-portfolio__items-style-fade .vp-portfolio__item-align-bottom-center .vp-portfolio__item-meta{-webkit-box-align:center;align-items:center;-webkit-box-pack:end;justify-content:flex-end;text-align:center}.vp-portfolio__items-style-fade .vp-portfolio__item-align-bottom-left .vp-portfolio__item-meta{-webkit-box-align:start;align-items:flex-start;-webkit-box-pack:end;justify-content:flex-end;text-align:left}.vp-portfolio__items-style-fade .vp-portfolio__item-align-bottom-right .vp-portfolio__item-meta{-webkit-box-align:end;align-items:flex-end;-webkit-box-pack:end;justify-content:flex-end;text-align:right}
|
templates/items-list/items-style/fade/style.scss
DELETED
@@ -1,161 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* Fade items style
|
3 |
-
*/
|
4 |
-
.vp-portfolio__items-style-fade {
|
5 |
-
.vp-portfolio__item a {
|
6 |
-
outline: none;
|
7 |
-
box-shadow: none;
|
8 |
-
}
|
9 |
-
|
10 |
-
.vp-portfolio__item-overlay {
|
11 |
-
position: absolute;
|
12 |
-
top: 0;
|
13 |
-
right: 0;
|
14 |
-
bottom: 0;
|
15 |
-
left: 0;
|
16 |
-
color: #fff;
|
17 |
-
text-decoration: none;
|
18 |
-
background-color: rgba(0, 0, 0, .85);
|
19 |
-
opacity: 0;
|
20 |
-
transition: opacity 1s cubic-bezier(.07, .72, .24, 1);
|
21 |
-
will-change: opacity;
|
22 |
-
|
23 |
-
// Fix FireFox image blinking
|
24 |
-
// https://github.com/nk-o/visual-portfolio/issues/92
|
25 |
-
z-index: 2;
|
26 |
-
}
|
27 |
-
|
28 |
-
// fix some themes figcaption styles.
|
29 |
-
figcaption.vp-portfolio__item-overlay {
|
30 |
-
font-style: inherit;
|
31 |
-
color: #fff;
|
32 |
-
}
|
33 |
-
|
34 |
-
// meta
|
35 |
-
.vp-portfolio__item-meta {
|
36 |
-
position: relative;
|
37 |
-
display: flex;
|
38 |
-
flex-direction: column;
|
39 |
-
align-items: center;
|
40 |
-
justify-content: center;
|
41 |
-
width: 100%;
|
42 |
-
height: 100%;
|
43 |
-
padding: 20px;
|
44 |
-
color: inherit;
|
45 |
-
text-align: center;
|
46 |
-
transition: transform 1s cubic-bezier(.07, .72, .24, 1), opacity 1s cubic-bezier(.07, .72, .24, 1);
|
47 |
-
transform: scale(.8);
|
48 |
-
will-change: transform, opacity;
|
49 |
-
|
50 |
-
> * {
|
51 |
-
max-width: 100%;
|
52 |
-
}
|
53 |
-
|
54 |
-
> * + * {
|
55 |
-
margin-top: 4px;
|
56 |
-
}
|
57 |
-
}
|
58 |
-
.vp-portfolio__item-meta-title {
|
59 |
-
margin-bottom: 0;
|
60 |
-
font-size: 1.3em;
|
61 |
-
color: inherit;
|
62 |
-
}
|
63 |
-
.vp-portfolio__item-meta-date {
|
64 |
-
font-size: .85em;
|
65 |
-
}
|
66 |
-
.vp-portfolio__item-meta-icon {
|
67 |
-
font-size: 2em;
|
68 |
-
|
69 |
-
+ * {
|
70 |
-
margin-top: 15px;
|
71 |
-
}
|
72 |
-
}
|
73 |
-
.vp-portfolio__item-meta-categories {
|
74 |
-
position: absolute;
|
75 |
-
display: flex;
|
76 |
-
flex-wrap: wrap;
|
77 |
-
bottom: 0;
|
78 |
-
left: 0;
|
79 |
-
padding: 0;
|
80 |
-
margin: 0 -5px;
|
81 |
-
list-style-type: none;
|
82 |
-
|
83 |
-
.vp-portfolio__item-meta-category {
|
84 |
-
display: block;
|
85 |
-
padding: 4px 15px;
|
86 |
-
margin: 0 5px;
|
87 |
-
color: #fff;
|
88 |
-
background-color: #3c3c3c;
|
89 |
-
}
|
90 |
-
}
|
91 |
-
.vp-portfolio__item-meta-excerpt {
|
92 |
-
opacity: .8;
|
93 |
-
}
|
94 |
-
|
95 |
-
// Transitions
|
96 |
-
.vp-portfolio__item-img img {
|
97 |
-
transition: transform 2s cubic-bezier(.08, .43, .24, 1), opacity .3s;
|
98 |
-
will-change: transform, opacity;
|
99 |
-
|
100 |
-
// Fix FireFox image blinking
|
101 |
-
// https://github.com/nk-o/visual-portfolio/issues/92
|
102 |
-
z-index: 1;
|
103 |
-
}
|
104 |
-
& .vp-portfolio__item:hover {
|
105 |
-
.vp-portfolio__item-overlay {
|
106 |
-
opacity: 1;
|
107 |
-
}
|
108 |
-
.vp-portfolio__item-meta {
|
109 |
-
transform: scale(1);
|
110 |
-
}
|
111 |
-
.vp-portfolio__item-img img {
|
112 |
-
transform: scale(1.1);
|
113 |
-
}
|
114 |
-
}
|
115 |
-
|
116 |
-
// align
|
117 |
-
.vp-portfolio__item-align-center .vp-portfolio__item-meta {
|
118 |
-
align-items: center;
|
119 |
-
text-align: center;
|
120 |
-
}
|
121 |
-
.vp-portfolio__item-align-left .vp-portfolio__item-meta {
|
122 |
-
align-items: flex-start;
|
123 |
-
text-align: left;
|
124 |
-
}
|
125 |
-
.vp-portfolio__item-align-right .vp-portfolio__item-meta {
|
126 |
-
align-items: flex-end;
|
127 |
-
text-align: right;
|
128 |
-
}
|
129 |
-
|
130 |
-
.vp-portfolio__item-align-top-center .vp-portfolio__item-meta {
|
131 |
-
align-items: center;
|
132 |
-
justify-content: flex-start;
|
133 |
-
text-align: center;
|
134 |
-
}
|
135 |
-
.vp-portfolio__item-align-top-left .vp-portfolio__item-meta {
|
136 |
-
align-items: flex-start;
|
137 |
-
justify-content: flex-start;
|
138 |
-
text-align: left;
|
139 |
-
}
|
140 |
-
.vp-portfolio__item-align-top-right .vp-portfolio__item-meta {
|
141 |
-
align-items: flex-end;
|
142 |
-
justify-content: flex-start;
|
143 |
-
text-align: right;
|
144 |
-
}
|
145 |
-
|
146 |
-
.vp-portfolio__item-align-bottom-center .vp-portfolio__item-meta {
|
147 |
-
align-items: center;
|
148 |
-
justify-content: flex-end;
|
149 |
-
text-align: center;
|
150 |
-
}
|
151 |
-
.vp-portfolio__item-align-bottom-left .vp-portfolio__item-meta {
|
152 |
-
align-items: flex-start;
|
153 |
-
justify-content: flex-end;
|
154 |
-
text-align: left;
|
155 |
-
}
|
156 |
-
.vp-portfolio__item-align-bottom-right .vp-portfolio__item-meta {
|
157 |
-
align-items: flex-end;
|
158 |
-
justify-content: flex-end;
|
159 |
-
text-align: right;
|
160 |
-
}
|
161 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
templates/items-list/items-style/fly/style.css
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
.vp-portfolio__items-style-fly .vp-portfolio__item a{outline:none;box-shadow:none}.vp-portfolio__items-style-fly .vp-portfolio__item-overlay{position:absolute;top:0;right:0;bottom:0;left:0;text-align:center;text-decoration:none;background-color:#212125;-webkit-transform:translateY(-100%) translateX(-100%);transform:translateY(-100%) translateX(-100%)}.vp-portfolio__items-style-fly figcaption.vp-portfolio__item-overlay{font-style:inherit;color:#fff}.vp-portfolio__items-style-fly .vp-portfolio__item-meta{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;padding:20px;color:inherit}.vp-portfolio__items-style-fly .vp-portfolio__item-meta>*+*{margin-top:4px}.vp-portfolio__items-style-fly .vp-portfolio__item-meta-title{margin-bottom:0;font-size:1.3em;color:inherit}.vp-portfolio__items-style-fly .vp-portfolio__item-meta-date{font-size:.85em}.vp-portfolio__items-style-fly .vp-portfolio__item-meta-icon{font-size:2em}.vp-portfolio__items-style-fly .vp-portfolio__item-meta-icon+*{margin-top:15px}.vp-portfolio__items-style-fly .vp-portfolio__item-meta-categories{position:absolute;display:flex;flex-wrap:wrap;bottom:0;left:0;padding:15px 10px;margin:0;list-style-type:none}.vp-portfolio__items-style-fly .vp-portfolio__item-meta-categories .vp-portfolio__item-meta-category{display:block;padding:4px 15px;margin:0 5px;color:#fff;background-color:#3c3c3c}.vp-portfolio__items-style-fly .vp-portfolio__item-meta-excerpt{opacity:.8}.vp-portfolio__items-style-fly .vp-portfolio__item-align-center .vp-portfolio__item-meta{align-items:center;text-align:center}.vp-portfolio__items-style-fly .vp-portfolio__item-align-left .vp-portfolio__item-meta{align-items:flex-start;text-align:left}.vp-portfolio__items-style-fly .vp-portfolio__item-align-right .vp-portfolio__item-meta{align-items:flex-end;text-align:right}.vp-portfolio__items-style-fly .vp-portfolio__item-align-top-center .vp-portfolio__item-meta{align-items:center;justify-content:flex-start;text-align:center}.vp-portfolio__items-style-fly .vp-portfolio__item-align-top-left .vp-portfolio__item-meta{align-items:flex-start;justify-content:flex-start;text-align:left}.vp-portfolio__items-style-fly .vp-portfolio__item-align-top-right .vp-portfolio__item-meta{align-items:flex-end;justify-content:flex-start;text-align:right}.vp-portfolio__items-style-fly .vp-portfolio__item-align-bottom-center .vp-portfolio__item-meta{align-items:center;justify-content:flex-end;text-align:center}.vp-portfolio__items-style-fly .vp-portfolio__item-align-bottom-left .vp-portfolio__item-meta{align-items:flex-start;justify-content:flex-end;text-align:left}.vp-portfolio__items-style-fly .vp-portfolio__item-align-bottom-right .vp-portfolio__item-meta{align-items:flex-end;justify-content:flex-end;text-align:right}
|
|
templates/items-list/items-style/fly/style.min.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.vp-portfolio__items-style-fly .vp-portfolio__item a{outline:none;box-shadow:none}.vp-portfolio__items-style-fly .vp-portfolio__item-overlay{position:absolute;top:0;right:0;bottom:0;left:0;text-align:center;text-decoration:none;background-color:#212125;-webkit-transform:translateY(-100%) translateX(-100%);transform:translateY(-100%) translateX(-100%)}.vp-portfolio__items-style-fly figcaption.vp-portfolio__item-overlay{margin:0;font-style:inherit;color:#fff}.vp-portfolio__items-style-fly .vp-portfolio__item-meta{position:relative;display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;width:100%;height:100%;padding:20px;color:inherit}.vp-portfolio__items-style-fly .vp-portfolio__item-meta>*+*{margin-top:4px}.vp-portfolio__items-style-fly .vp-portfolio__item-meta-title{margin-bottom:0;font-size:1.3em;color:inherit}.vp-portfolio__items-style-fly .vp-portfolio__item-meta-date{font-size:.85em}.vp-portfolio__items-style-fly .vp-portfolio__item-meta-icon{font-size:2em}.vp-portfolio__items-style-fly .vp-portfolio__item-meta-icon+*{margin-top:15px}.vp-portfolio__items-style-fly .vp-portfolio__item-meta-categories{position:absolute;display:-webkit-box;display:flex;flex-wrap:wrap;bottom:0;left:0;padding:15px 10px;margin:0;list-style-type:none}.vp-portfolio__items-style-fly .vp-portfolio__item-meta-categories .vp-portfolio__item-meta-category{display:block;padding:4px 15px;margin:0 5px;color:#fff;background-color:#3c3c3c}.vp-portfolio__items-style-fly .vp-portfolio__item-meta-excerpt{opacity:.8}.vp-portfolio__items-style-fly .vp-portfolio__item-align-center .vp-portfolio__item-meta{-webkit-box-align:center;align-items:center;text-align:center}.vp-portfolio__items-style-fly .vp-portfolio__item-align-left .vp-portfolio__item-meta{-webkit-box-align:start;align-items:flex-start;text-align:left}.vp-portfolio__items-style-fly .vp-portfolio__item-align-right .vp-portfolio__item-meta{-webkit-box-align:end;align-items:flex-end;text-align:right}.vp-portfolio__items-style-fly .vp-portfolio__item-align-top-center .vp-portfolio__item-meta{-webkit-box-align:center;align-items:center;-webkit-box-pack:start;justify-content:flex-start;text-align:center}.vp-portfolio__items-style-fly .vp-portfolio__item-align-top-left .vp-portfolio__item-meta{-webkit-box-align:start;align-items:flex-start;-webkit-box-pack:start;justify-content:flex-start;text-align:left}.vp-portfolio__items-style-fly .vp-portfolio__item-align-top-right .vp-portfolio__item-meta{-webkit-box-align:end;align-items:flex-end;-webkit-box-pack:start;justify-content:flex-start;text-align:right}.vp-portfolio__items-style-fly .vp-portfolio__item-align-bottom-center .vp-portfolio__item-meta{-webkit-box-align:center;align-items:center;-webkit-box-pack:end;justify-content:flex-end;text-align:center}.vp-portfolio__items-style-fly .vp-portfolio__item-align-bottom-left .vp-portfolio__item-meta{-webkit-box-align:start;align-items:flex-start;-webkit-box-pack:end;justify-content:flex-end;text-align:left}.vp-portfolio__items-style-fly .vp-portfolio__item-align-bottom-right .vp-portfolio__item-meta{-webkit-box-align:end;align-items:flex-end;-webkit-box-pack:end;justify-content:flex-end;text-align:right}
|
templates/items-list/items-style/fly/style.scss
DELETED
@@ -1,126 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* Fly items style
|
3 |
-
*/
|
4 |
-
.vp-portfolio__items-style-fly {
|
5 |
-
.vp-portfolio__item a {
|
6 |
-
outline: none;
|
7 |
-
box-shadow: none;
|
8 |
-
}
|
9 |
-
|
10 |
-
.vp-portfolio__item-overlay {
|
11 |
-
position: absolute;
|
12 |
-
top: 0;
|
13 |
-
right: 0;
|
14 |
-
bottom: 0;
|
15 |
-
left: 0;
|
16 |
-
text-align: center;
|
17 |
-
text-decoration: none;
|
18 |
-
background-color: #212125;
|
19 |
-
transform: translateY(-100%) translateX(-100%);
|
20 |
-
}
|
21 |
-
|
22 |
-
// fix some themes figcaption styles.
|
23 |
-
figcaption.vp-portfolio__item-overlay {
|
24 |
-
font-style: inherit;
|
25 |
-
color: #fff;
|
26 |
-
}
|
27 |
-
|
28 |
-
// meta
|
29 |
-
.vp-portfolio__item-meta {
|
30 |
-
position: relative;
|
31 |
-
display: flex;
|
32 |
-
flex-direction: column;
|
33 |
-
align-items: center;
|
34 |
-
justify-content: center;
|
35 |
-
width: 100%;
|
36 |
-
height: 100%;
|
37 |
-
padding: 20px;
|
38 |
-
color: inherit;
|
39 |
-
|
40 |
-
> * + * {
|
41 |
-
margin-top: 4px;
|
42 |
-
}
|
43 |
-
}
|
44 |
-
.vp-portfolio__item-meta-title {
|
45 |
-
margin-bottom: 0;
|
46 |
-
font-size: 1.3em;
|
47 |
-
color: inherit;
|
48 |
-
}
|
49 |
-
.vp-portfolio__item-meta-date {
|
50 |
-
font-size: .85em;
|
51 |
-
}
|
52 |
-
.vp-portfolio__item-meta-icon {
|
53 |
-
font-size: 2em;
|
54 |
-
|
55 |
-
+ * {
|
56 |
-
margin-top: 15px;
|
57 |
-
}
|
58 |
-
}
|
59 |
-
.vp-portfolio__item-meta-categories {
|
60 |
-
position: absolute;
|
61 |
-
display: flex;
|
62 |
-
flex-wrap: wrap;
|
63 |
-
bottom: 0;
|
64 |
-
left: 0;
|
65 |
-
padding: 15px 10px;
|
66 |
-
margin: 0;
|
67 |
-
list-style-type: none;
|
68 |
-
|
69 |
-
.vp-portfolio__item-meta-category {
|
70 |
-
display: block;
|
71 |
-
padding: 4px 15px;
|
72 |
-
margin: 0 5px;
|
73 |
-
color: #fff;
|
74 |
-
background-color: #3c3c3c;
|
75 |
-
}
|
76 |
-
}
|
77 |
-
.vp-portfolio__item-meta-excerpt {
|
78 |
-
opacity: .8;
|
79 |
-
}
|
80 |
-
|
81 |
-
// align
|
82 |
-
.vp-portfolio__item-align-center .vp-portfolio__item-meta {
|
83 |
-
align-items: center;
|
84 |
-
text-align: center;
|
85 |
-
}
|
86 |
-
.vp-portfolio__item-align-left .vp-portfolio__item-meta {
|
87 |
-
align-items: flex-start;
|
88 |
-
text-align: left;
|
89 |
-
}
|
90 |
-
.vp-portfolio__item-align-right .vp-portfolio__item-meta {
|
91 |
-
align-items: flex-end;
|
92 |
-
text-align: right;
|
93 |
-
}
|
94 |
-
|
95 |
-
.vp-portfolio__item-align-top-center .vp-portfolio__item-meta {
|
96 |
-
align-items: center;
|
97 |
-
justify-content: flex-start;
|
98 |
-
text-align: center;
|
99 |
-
}
|
100 |
-
.vp-portfolio__item-align-top-left .vp-portfolio__item-meta {
|
101 |
-
align-items: flex-start;
|
102 |
-
justify-content: flex-start;
|
103 |
-
text-align: left;
|
104 |
-
}
|
105 |
-
.vp-portfolio__item-align-top-right .vp-portfolio__item-meta {
|
106 |
-
align-items: flex-end;
|
107 |
-
justify-content: flex-start;
|
108 |
-
text-align: right;
|
109 |
-
}
|
110 |
-
|
111 |
-
.vp-portfolio__item-align-bottom-center .vp-portfolio__item-meta {
|
112 |
-
align-items: center;
|
113 |
-
justify-content: flex-end;
|
114 |
-
text-align: center;
|
115 |
-
}
|
116 |
-
.vp-portfolio__item-align-bottom-left .vp-portfolio__item-meta {
|
117 |
-
align-items: flex-start;
|
118 |
-
justify-content: flex-end;
|
119 |
-
text-align: left;
|
120 |
-
}
|
121 |
-
.vp-portfolio__item-align-bottom-right .vp-portfolio__item-meta {
|
122 |
-
align-items: flex-end;
|
123 |
-
justify-content: flex-end;
|
124 |
-
text-align: right;
|
125 |
-
}
|
126 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
templates/items-list/items-style/style.css
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
.vp-portfolio__items-style-default .vp-portfolio__item a{outline:none;box-shadow:none}.vp-portfolio__items-style-default .vp-portfolio__item-img{overflow:hidden}.vp-portfolio__items-style-default .vp-portfolio__item-img img{transition:opacity 0.3s,-webkit-transform 2s cubic-bezier(0.08, 0.43, 0.24, 1);transition:transform 2s cubic-bezier(0.08, 0.43, 0.24, 1),opacity 0.3s;transition:transform 2s cubic-bezier(0.08, 0.43, 0.24, 1),opacity 0.3s,-webkit-transform 2s cubic-bezier(0.08, 0.43, 0.24, 1);will-change:transform, opacity}.vp-portfolio__items-style-default .vp-portfolio__item:hover .vp-portfolio__item-img img{-webkit-transform:scale(1.1);transform:scale(1.1)}.vp-portfolio__items-style-default figcaption.vp-portfolio__item-overlay{font-style:inherit;color:inherit}.vp-portfolio__items-style-default .vp-portfolio__item-meta{position:relative;padding:10px 15px}.vp-portfolio__items-style-default .vp-portfolio__item-meta>*+*{margin-top:4px}.vp-portfolio__items-style-default .vp-portfolio__item-meta-title{margin-bottom:0;font-size:1.3em}.vp-portfolio__items-style-default .vp-portfolio__item-meta-title a{color:inherit;text-decoration:none}.vp-portfolio__items-style-default .vp-portfolio__item-meta-title a:hover{color:#007acc}.vp-portfolio__items-style-default .vp-portfolio__item-meta-date{font-size:.85em}.vp-portfolio__items-style-default .vp-portfolio__item-meta-categories{position:absolute;display:flex;flex-wrap:wrap;bottom:100%;left:0;padding:15px 10px;margin:0;list-style-type:none}.vp-portfolio__items-style-default .vp-portfolio__item-meta-categories .vp-portfolio__item-meta-category{padding:0;margin:0 5px}.vp-portfolio__items-style-default .vp-portfolio__item-meta-categories .vp-portfolio__item-meta-category a{display:block;padding:4px 15px;color:#fff;text-decoration:none;background-color:#3c3c3c;transition:.2s background-color;will-change:background-color}.vp-portfolio__items-style-default .vp-portfolio__item-meta-categories .vp-portfolio__item-meta-category a:hover{background-color:#545454}.vp-portfolio__items-style-default .vp-portfolio__item-meta-excerpt{opacity:.8}.vp-portfolio__items-style-default .vp-portfolio__item-meta-read-more{display:inline-block;margin-top:10px}.vp-portfolio__items-style-default .vp-portfolio__item-align-left{text-align:left}.vp-portfolio__items-style-default .vp-portfolio__item-align-center{text-align:center}.vp-portfolio__items-style-default .vp-portfolio__item-align-right{text-align:right}
|
|
templates/items-list/items-style/style.min.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.vp-portfolio__items-style-default .vp-portfolio__item a{outline:none;box-shadow:none}.vp-portfolio__items-style-default .vp-portfolio__item-img{overflow:hidden}.vp-portfolio__items-style-default .vp-portfolio__item-img img{-webkit-transition:opacity 0.3s,-webkit-transform 2s cubic-bezier(0.08, 0.43, 0.24, 1);transition:opacity 0.3s,-webkit-transform 2s cubic-bezier(0.08, 0.43, 0.24, 1);transition:transform 2s cubic-bezier(0.08, 0.43, 0.24, 1),opacity 0.3s;transition:transform 2s cubic-bezier(0.08, 0.43, 0.24, 1),opacity 0.3s,-webkit-transform 2s cubic-bezier(0.08, 0.43, 0.24, 1);will-change:transform, opacity}.vp-portfolio__items-style-default .vp-portfolio__item:hover .vp-portfolio__item-img img{-webkit-transform:scale(1.1);transform:scale(1.1)}.vp-portfolio__items-style-default figcaption.vp-portfolio__item-overlay{font-style:inherit;color:inherit}.vp-portfolio__items-style-default .vp-portfolio__item-meta{position:relative;padding:10px 15px}.vp-portfolio__items-style-default .vp-portfolio__item-meta>*+*{margin-top:4px}.vp-portfolio__items-style-default .vp-portfolio__item-meta-title{margin-bottom:0;font-size:1.3em}.vp-portfolio__items-style-default .vp-portfolio__item-meta-title a{color:inherit;text-decoration:none}.vp-portfolio__items-style-default .vp-portfolio__item-meta-title a:hover{color:#007acc}.vp-portfolio__items-style-default .vp-portfolio__item-meta-date{font-size:.85em}.vp-portfolio__items-style-default .vp-portfolio__item-meta-categories{position:absolute;display:-webkit-box;display:flex;flex-wrap:wrap;bottom:100%;left:0;padding:15px 10px;margin:0;list-style-type:none}.vp-portfolio__items-style-default .vp-portfolio__item-meta-categories .vp-portfolio__item-meta-category{padding:0;margin:0 5px}.vp-portfolio__items-style-default .vp-portfolio__item-meta-categories .vp-portfolio__item-meta-category a{display:block;padding:4px 15px;color:#fff;text-decoration:none;background-color:#3c3c3c;-webkit-transition:.2s background-color;transition:.2s background-color;will-change:background-color}.vp-portfolio__items-style-default .vp-portfolio__item-meta-categories .vp-portfolio__item-meta-category a:hover{background-color:#545454}.vp-portfolio__items-style-default .vp-portfolio__item-meta-excerpt{opacity:.8}.vp-portfolio__items-style-default .vp-portfolio__item-meta-read-more{display:inline-block;margin-top:10px}.vp-portfolio__items-style-default .vp-portfolio__item-align-left{text-align:left}.vp-portfolio__items-style-default .vp-portfolio__item-align-center{text-align:center}.vp-portfolio__items-style-default .vp-portfolio__item-align-right{text-align:right}
|
templates/items-list/items-style/style.scss
DELETED
@@ -1,102 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* Default items style
|
3 |
-
*/
|
4 |
-
.vp-portfolio__items-style-default {
|
5 |
-
.vp-portfolio__item a {
|
6 |
-
outline: none;
|
7 |
-
box-shadow: none;
|
8 |
-
}
|
9 |
-
|
10 |
-
// Transitions
|
11 |
-
.vp-portfolio__item-img {
|
12 |
-
overflow: hidden;
|
13 |
-
}
|
14 |
-
.vp-portfolio__item-img img {
|
15 |
-
transition: transform 2s cubic-bezier(.08, .43, .24, 1), opacity .3s;
|
16 |
-
will-change: transform, opacity;
|
17 |
-
}
|
18 |
-
.vp-portfolio__item:hover {
|
19 |
-
.vp-portfolio__item-img img {
|
20 |
-
transform: scale(1.1);
|
21 |
-
}
|
22 |
-
}
|
23 |
-
|
24 |
-
// fix some themes figcaption styles.
|
25 |
-
figcaption.vp-portfolio__item-overlay {
|
26 |
-
font-style: inherit;
|
27 |
-
color: inherit;
|
28 |
-
}
|
29 |
-
|
30 |
-
// meta
|
31 |
-
.vp-portfolio__item-meta {
|
32 |
-
position: relative;
|
33 |
-
padding: 10px 15px;
|
34 |
-
|
35 |
-
> * + * {
|
36 |
-
margin-top: 4px;
|
37 |
-
}
|
38 |
-
}
|
39 |
-
.vp-portfolio__item-meta-title {
|
40 |
-
margin-bottom: 0;
|
41 |
-
font-size: 1.3em;
|
42 |
-
|
43 |
-
a {
|
44 |
-
color: inherit;
|
45 |
-
text-decoration: none;
|
46 |
-
|
47 |
-
&:hover {
|
48 |
-
color: #007acc;
|
49 |
-
}
|
50 |
-
}
|
51 |
-
}
|
52 |
-
.vp-portfolio__item-meta-date {
|
53 |
-
font-size: .85em;
|
54 |
-
}
|
55 |
-
.vp-portfolio__item-meta-categories {
|
56 |
-
position: absolute;
|
57 |
-
display: flex;
|
58 |
-
flex-wrap: wrap;
|
59 |
-
bottom: 100%;
|
60 |
-
left: 0;
|
61 |
-
padding: 15px 10px;
|
62 |
-
margin: 0;
|
63 |
-
list-style-type: none;
|
64 |
-
|
65 |
-
.vp-portfolio__item-meta-category {
|
66 |
-
padding: 0;
|
67 |
-
margin: 0 5px;
|
68 |
-
|
69 |
-
a {
|
70 |
-
display: block;
|
71 |
-
padding: 4px 15px;
|
72 |
-
color: #fff;
|
73 |
-
text-decoration: none;
|
74 |
-
background-color: #3c3c3c;
|
75 |
-
transition: .2s background-color;
|
76 |
-
will-change: background-color;
|
77 |
-
|
78 |
-
&:hover {
|
79 |
-
background-color: #545454;
|
80 |
-
}
|
81 |
-
}
|
82 |
-
}
|
83 |
-
}
|
84 |
-
.vp-portfolio__item-meta-excerpt {
|
85 |
-
opacity: .8;
|
86 |
-
}
|
87 |
-
.vp-portfolio__item-meta-read-more {
|
88 |
-
display: inline-block;
|
89 |
-
margin-top: 10px;
|
90 |
-
}
|
91 |
-
|
92 |
-
// align
|
93 |
-
.vp-portfolio__item-align-left {
|
94 |
-
text-align: left;
|
95 |
-
}
|
96 |
-
.vp-portfolio__item-align-center {
|
97 |
-
text-align: center;
|
98 |
-
}
|
99 |
-
.vp-portfolio__item-align-right {
|
100 |
-
text-align: right;
|
101 |
-
}
|
102 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
templates/items-list/pagination/style.css
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
.vp-pagination__style-default{display:flex;flex-wrap:wrap;justify-content:center;padding:0;margin:-3px;margin-top:17px;list-style-type:none}.vp-pagination__style-default .vp-pagination__item a{outline:none;box-shadow:none}.vp-pagination__style-default.vp-pagination__align-left{justify-content:flex-start}.vp-pagination__style-default.vp-pagination__align-right{justify-content:flex-end}.vp-pagination__style-default .vp-pagination__item{flex:0 0 auto;padding:0;margin:3px;text-align:center;list-style-type:none}.vp-pagination__style-default .vp-pagination__item>*{display:block;min-width:40px;padding:8px 16px;line-height:1.4;color:inherit;text-decoration:none;background-color:#fff;border:1px solid #eaeaea;transition:.2s border-color, .2s background-color, .2s color;will-change:border-color, background-color, color}.vp-pagination__style-default .vp-pagination__item:not(.vp-pagination__item-active)>a:hover{border:1px solid #bfbfbf}.vp-pagination__style-default .vp-pagination__item.vp-pagination__item-active>*{color:#fff;cursor:default;background-color:#6c7781;border:1px solid #6c7781}.vp-pagination__style-default .vp-pagination__load-more>.vp-pagination__load-more-no-more,.vp-pagination__style-default .vp-pagination__load-more>.vp-pagination__load-more-loading,.vp-portfolio__loading .vp-pagination__style-default .vp-pagination__load-more>span,.vp-pagination__style-default.vp-pagination__no-more .vp-pagination__load-more>span,.vp-portfolio__loading .vp-pagination__style-default.vp-pagination__no-more .vp-pagination__load-more>.vp-pagination__load-more-no-more{display:none}.vp-pagination__style-default .vp-pagination__load-more>span,.vp-portfolio__loading .vp-pagination__style-default .vp-pagination__load-more>.vp-pagination__load-more-loading,.vp-pagination__style-default.vp-pagination__no-more .vp-pagination__load-more>.vp-pagination__load-more-no-more{display:block}.vp-pagination__style-default.vp-pagination__no-more .vp-pagination__load-more,.vp-portfolio__loading .vp-pagination__style-default .vp-pagination__load-more{pointer-events:none;cursor:default;background-color:transparent;border:none;transition:none}.vp-pagination__style-default.vp-pagination__no-more .vp-pagination__load-more{opacity:.5}.vp-spinner{position:relative;display:inline-block;width:20px;height:20px;margin-top:-2px;vertical-align:middle;border-radius:50%;box-shadow:inset 0 0 0 2px rgba(0,0,0,0.1)}.vp-spinner i{position:absolute;display:block;width:7px;height:7px;overflow:hidden;-webkit-transform-origin:10px 10px;transform-origin:10px 10px;-webkit-animation:vp-spinner .4s infinite linear;animation:vp-spinner .4s infinite linear}.vp-spinner i::after{content:"";display:block;width:20px;height:20px;border-radius:50%;box-shadow:inset 0 0 0 2px #6c7781}@-webkit-keyframes vp-spinner{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes vp-spinner{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}
|
|
templates/items-list/pagination/style.min.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.vp-pagination__style-default{display:-webkit-box;display:flex;flex-wrap:wrap;-webkit-box-pack:center;justify-content:center;padding:0;margin:-3px;margin-top:17px;list-style-type:none}.vp-pagination__style-default .vp-pagination__item a{outline:none;box-shadow:none}.vp-pagination__style-default.vp-pagination__align-left{-webkit-box-pack:start;justify-content:flex-start}.vp-pagination__style-default.vp-pagination__align-right{-webkit-box-pack:end;justify-content:flex-end}.vp-pagination__style-default .vp-pagination__item{-webkit-box-flex:0;flex:0 0 auto;padding:0;margin:3px;text-align:center;list-style-type:none}.vp-pagination__style-default .vp-pagination__item>*{display:block;min-width:40px;padding:8px 16px;line-height:1.4;color:inherit;text-decoration:none;background-color:#fff;border:1px solid #eaeaea;-webkit-transition:.2s border-color, .2s background-color, .2s color;transition:.2s border-color, .2s background-color, .2s color;will-change:border-color, background-color, color}.vp-pagination__style-default .vp-pagination__item:not(.vp-pagination__item-active)>a:hover{border:1px solid #bfbfbf}.vp-pagination__style-default .vp-pagination__item.vp-pagination__item-active>*{color:#fff;cursor:default;background-color:#6c7781;border:1px solid #6c7781}.vp-pagination__style-default .vp-pagination__load-more>.vp-pagination__load-more-no-more,.vp-pagination__style-default .vp-pagination__load-more>.vp-pagination__load-more-loading,.vp-portfolio__loading .vp-pagination__style-default .vp-pagination__load-more>span,.vp-pagination__style-default.vp-pagination__no-more .vp-pagination__load-more>span,.vp-portfolio__loading .vp-pagination__style-default.vp-pagination__no-more .vp-pagination__load-more>.vp-pagination__load-more-no-more{display:none}.vp-pagination__style-default .vp-pagination__load-more>span,.vp-portfolio__loading .vp-pagination__style-default .vp-pagination__load-more>.vp-pagination__load-more-loading,.vp-pagination__style-default.vp-pagination__no-more .vp-pagination__load-more>.vp-pagination__load-more-no-more{display:block}.vp-pagination__style-default.vp-pagination__no-more .vp-pagination__load-more,.vp-portfolio__loading .vp-pagination__style-default .vp-pagination__load-more{pointer-events:none;cursor:default;background-color:transparent;border:none;-webkit-transition:none;transition:none}.vp-pagination__style-default.vp-pagination__no-more .vp-pagination__load-more{opacity:.5}.vp-spinner{position:relative;display:inline-block;width:20px;height:20px;margin-top:-2px;vertical-align:middle;border-radius:50%;box-shadow:inset 0 0 0 2px rgba(0,0,0,0.1)}.vp-spinner i{position:absolute;display:block;width:7px;height:7px;overflow:hidden;-webkit-transform-origin:10px 10px;transform-origin:10px 10px;-webkit-animation:vp-spinner .4s infinite linear;animation:vp-spinner .4s infinite linear}.vp-spinner i::after{content:"";display:block;width:20px;height:20px;border-radius:50%;box-shadow:inset 0 0 0 2px #6c7781}@-webkit-keyframes vp-spinner{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes vp-spinner{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}
|
templates/items-list/pagination/style.scss
DELETED
@@ -1,128 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* Default pagination style
|
3 |
-
*/
|
4 |
-
.vp-pagination__style-default {
|
5 |
-
display: flex;
|
6 |
-
flex-wrap: wrap;
|
7 |
-
justify-content: center;
|
8 |
-
padding: 0;
|
9 |
-
margin: -3px;
|
10 |
-
margin-top: 17px;
|
11 |
-
list-style-type: none;
|
12 |
-
|
13 |
-
.vp-pagination__item a {
|
14 |
-
outline: none;
|
15 |
-
box-shadow: none;
|
16 |
-
}
|
17 |
-
|
18 |
-
// align
|
19 |
-
&.vp-pagination__align-left {
|
20 |
-
justify-content: flex-start;
|
21 |
-
}
|
22 |
-
&.vp-pagination__align-right {
|
23 |
-
justify-content: flex-end;
|
24 |
-
}
|
25 |
-
|
26 |
-
.vp-pagination__item {
|
27 |
-
flex: 0 0 auto;
|
28 |
-
padding: 0;
|
29 |
-
margin: 3px;
|
30 |
-
text-align: center;
|
31 |
-
list-style-type: none;
|
32 |
-
|
33 |
-
> * {
|
34 |
-
display: block;
|
35 |
-
min-width: 40px;
|
36 |
-
padding: 8px 16px;
|
37 |
-
line-height: 1.4;
|
38 |
-
color: inherit;
|
39 |
-
text-decoration: none;
|
40 |
-
background-color: #fff;
|
41 |
-
border: 1px solid #eaeaea;
|
42 |
-
transition: .2s border-color, .2s background-color, .2s color;
|
43 |
-
will-change: border-color, background-color, color;
|
44 |
-
}
|
45 |
-
|
46 |
-
&:not(.vp-pagination__item-active) > a:hover {
|
47 |
-
border: 1px solid #bfbfbf;
|
48 |
-
}
|
49 |
-
|
50 |
-
&.vp-pagination__item-active > * {
|
51 |
-
color: #fff;
|
52 |
-
cursor: default;
|
53 |
-
background-color: #6c7781;
|
54 |
-
border: 1px solid #6c7781;
|
55 |
-
}
|
56 |
-
}
|
57 |
-
|
58 |
-
// show/hide labels
|
59 |
-
.vp-pagination__load-more > .vp-pagination__load-more-no-more,
|
60 |
-
.vp-pagination__load-more > .vp-pagination__load-more-loading,
|
61 |
-
.vp-portfolio__loading & .vp-pagination__load-more > span,
|
62 |
-
&.vp-pagination__no-more .vp-pagination__load-more > span,
|
63 |
-
.vp-portfolio__loading &.vp-pagination__no-more .vp-pagination__load-more > .vp-pagination__load-more-no-more {
|
64 |
-
display: none;
|
65 |
-
}
|
66 |
-
.vp-pagination__load-more > span,
|
67 |
-
.vp-portfolio__loading & .vp-pagination__load-more > .vp-pagination__load-more-loading,
|
68 |
-
&.vp-pagination__no-more .vp-pagination__load-more > .vp-pagination__load-more-no-more {
|
69 |
-
display: block;
|
70 |
-
}
|
71 |
-
|
72 |
-
// disable no more and loading buttons
|
73 |
-
&.vp-pagination__no-more .vp-pagination__load-more,
|
74 |
-
.vp-portfolio__loading & .vp-pagination__load-more {
|
75 |
-
pointer-events: none;
|
76 |
-
cursor: default;
|
77 |
-
background-color: transparent;
|
78 |
-
border: none;
|
79 |
-
transition: none;
|
80 |
-
}
|
81 |
-
&.vp-pagination__no-more .vp-pagination__load-more {
|
82 |
-
opacity: .5;
|
83 |
-
}
|
84 |
-
}
|
85 |
-
|
86 |
-
/* Loading Spinner */
|
87 |
-
// Spinner parameters
|
88 |
-
$color: rgba(#000, .1) !default;
|
89 |
-
$color_inner: #6c7781 !default;
|
90 |
-
$size: 20px !default;
|
91 |
-
$size_inner: $size * .35 !default;
|
92 |
-
$weight: 2px !default;
|
93 |
-
|
94 |
-
.vp-spinner {
|
95 |
-
position: relative;
|
96 |
-
display: inline-block;
|
97 |
-
width: $size;
|
98 |
-
height: $size;
|
99 |
-
margin-top: -2px;
|
100 |
-
vertical-align: middle;
|
101 |
-
border-radius: 50%;
|
102 |
-
box-shadow: inset 0 0 0 $weight $color;
|
103 |
-
|
104 |
-
i {
|
105 |
-
position: absolute;
|
106 |
-
display: block;
|
107 |
-
width: $size_inner;
|
108 |
-
height: $size_inner;
|
109 |
-
overflow: hidden;
|
110 |
-
transform-origin: $size / 2 $size / 2;
|
111 |
-
animation: vp-spinner .4s infinite linear;
|
112 |
-
|
113 |
-
&::after {
|
114 |
-
content: "";
|
115 |
-
display: block;
|
116 |
-
width: $size;
|
117 |
-
height: $size;
|
118 |
-
border-radius: 50%;
|
119 |
-
box-shadow: inset 0 0 0 $weight $color_inner;
|
120 |
-
}
|
121 |
-
}
|
122 |
-
}
|
123 |
-
|
124 |
-
@keyframes vp-spinner {
|
125 |
-
100% {
|
126 |
-
transform: rotate(360deg);
|
127 |
-
}
|
128 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
templates/items-list/sort/dropdown/style.css
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
.vp-sort__style-dropdown{display:flex;flex-wrap:wrap;justify-content:center;padding:0;margin:-3px;margin-bottom:17px;list-style-type:none}.vp-sort__style-dropdown.vp-sort__align-left{justify-content:flex-start}.vp-sort__style-dropdown.vp-sort__align-right{justify-content:flex-end}.vp-sort__style-dropdown select{display:block;min-width:40px;padding:8px 16px;margin:3px;line-height:1.4;color:inherit;text-decoration:none;background-color:#fff;border:1px solid #eaeaea;transition:.2s border-color, .2s background-color, .2s color;will-change:border-color, background-color, color}.vp-sort__style-dropdown select:hover{border:1px solid #bfbfbf}
|
|
templates/items-list/sort/dropdown/style.min.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.vp-sort__style-dropdown{display:-webkit-box;display:flex;flex-wrap:wrap;-webkit-box-pack:center;justify-content:center;padding:0;margin:-3px;margin-bottom:17px;list-style-type:none}.vp-sort__style-dropdown.vp-sort__align-left{-webkit-box-pack:start;justify-content:flex-start}.vp-sort__style-dropdown.vp-sort__align-right{-webkit-box-pack:end;justify-content:flex-end}.vp-sort__style-dropdown select{display:block;min-width:40px;padding:8px 16px;margin:3px;line-height:1.4;color:inherit;text-decoration:none;background-color:#fff;border:1px solid #eaeaea;-webkit-transition:.2s border-color, .2s background-color, .2s color;transition:.2s border-color, .2s background-color, .2s color;will-change:border-color, background-color, color}.vp-sort__style-dropdown select:hover{border:1px solid #bfbfbf}
|
templates/items-list/sort/dropdown/style.scss
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* Dropdown sort style
|
3 |
-
*/
|
4 |
-
.vp-sort__style-dropdown {
|
5 |
-
display: flex;
|
6 |
-
flex-wrap: wrap;
|
7 |
-
justify-content: center;
|
8 |
-
padding: 0;
|
9 |
-
margin: -3px;
|
10 |
-
margin-bottom: 17px;
|
11 |
-
list-style-type: none;
|
12 |
-
|
13 |
-
// align
|
14 |
-
&.vp-sort__align-left {
|
15 |
-
justify-content: flex-start;
|
16 |
-
}
|
17 |
-
&.vp-sort__align-right {
|
18 |
-
justify-content: flex-end;
|
19 |
-
}
|
20 |
-
|
21 |
-
select {
|
22 |
-
display: block;
|
23 |
-
min-width: 40px;
|
24 |
-
padding: 8px 16px;
|
25 |
-
margin: 3px;
|
26 |
-
line-height: 1.4;
|
27 |
-
color: inherit;
|
28 |
-
text-decoration: none;
|
29 |
-
background-color: #fff;
|
30 |
-
border: 1px solid #eaeaea;
|
31 |
-
transition: .2s border-color, .2s background-color, .2s color;
|
32 |
-
will-change: border-color, background-color, color;
|
33 |
-
|
34 |
-
&:hover {
|
35 |
-
border: 1px solid #bfbfbf;
|
36 |
-
}
|
37 |
-
}
|
38 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
templates/items-list/sort/style.css
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
.vp-sort__style-default{display:flex;flex-wrap:wrap;justify-content:center;padding:0;margin:-3px;margin-bottom:17px;list-style-type:none}.vp-sort__style-default .vp-sort__item a{outline:none;box-shadow:none}.vp-sort__style-default.vp-sort__align-left{justify-content:flex-start}.vp-sort__style-default.vp-sort__align-right{justify-content:flex-end}.vp-sort__style-default .vp-sort__item{flex:0 0 auto;padding:0;margin:3px;text-align:center;list-style-type:none}.vp-sort__style-default .vp-sort__item>*{display:block;min-width:40px;padding:8px 16px;line-height:1.4;color:inherit;text-decoration:none;background-color:#fff;border:1px solid #eaeaea;transition:.2s border-color, .2s background-color, .2s color;will-change:border-color, background-color, color}.vp-sort__style-default .vp-sort__item:not(.vp-sort__item-active)>a:hover{border:1px solid #bfbfbf}.vp-sort__style-default .vp-sort__item.vp-sort__item-active>*{color:#fff;cursor:default;background-color:#6c7781;border:1px solid #6c7781}.vp-sort__style-default .vp-sort__item .vp-sort__item-count{float:right;margin-left:8px;font-size:60%}
|
|
templates/items-list/sort/style.min.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.vp-sort__style-default{display:-webkit-box;display:flex;flex-wrap:wrap;-webkit-box-pack:center;justify-content:center;padding:0;margin:-3px;margin-bottom:17px;list-style-type:none}.vp-sort__style-default .vp-sort__item a{outline:none;box-shadow:none}.vp-sort__style-default.vp-sort__align-left{-webkit-box-pack:start;justify-content:flex-start}.vp-sort__style-default.vp-sort__align-right{-webkit-box-pack:end;justify-content:flex-end}.vp-sort__style-default .vp-sort__item{-webkit-box-flex:0;flex:0 0 auto;padding:0;margin:3px;text-align:center;list-style-type:none}.vp-sort__style-default .vp-sort__item>*{display:block;min-width:40px;padding:8px 16px;line-height:1.4;color:inherit;text-decoration:none;background-color:#fff;border:1px solid #eaeaea;-webkit-transition:.2s border-color, .2s background-color, .2s color;transition:.2s border-color, .2s background-color, .2s color;will-change:border-color, background-color, color}.vp-sort__style-default .vp-sort__item:not(.vp-sort__item-active)>a:hover{border:1px solid #bfbfbf}.vp-sort__style-default .vp-sort__item.vp-sort__item-active>*{color:#fff;cursor:default;background-color:#6c7781;border:1px solid #6c7781}.vp-sort__style-default .vp-sort__item .vp-sort__item-count{float:right;margin-left:8px;font-size:60%}
|
templates/items-list/sort/style.scss
DELETED
@@ -1,63 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* Default sort style
|
3 |
-
*/
|
4 |
-
.vp-sort__style-default {
|
5 |
-
display: flex;
|
6 |
-
flex-wrap: wrap;
|
7 |
-
justify-content: center;
|
8 |
-
padding: 0;
|
9 |
-
margin: -3px;
|
10 |
-
margin-bottom: 17px;
|
11 |
-
list-style-type: none;
|
12 |
-
|
13 |
-
.vp-sort__item a {
|
14 |
-
outline: none;
|
15 |
-
box-shadow: none;
|
16 |
-
}
|
17 |
-
|
18 |
-
// align
|
19 |
-
&.vp-sort__align-left {
|
20 |
-
justify-content: flex-start;
|
21 |
-
}
|
22 |
-
&.vp-sort__align-right {
|
23 |
-
justify-content: flex-end;
|
24 |
-
}
|
25 |
-
|
26 |
-
.vp-sort__item {
|
27 |
-
flex: 0 0 auto;
|
28 |
-
padding: 0;
|
29 |
-
margin: 3px;
|
30 |
-
text-align: center;
|
31 |
-
list-style-type: none;
|
32 |
-
|
33 |
-
> * {
|
34 |
-
display: block;
|
35 |
-
min-width: 40px;
|
36 |
-
padding: 8px 16px;
|
37 |
-
line-height: 1.4;
|
38 |
-
color: inherit;
|
39 |
-
text-decoration: none;
|
40 |
-
background-color: #fff;
|
41 |
-
border: 1px solid #eaeaea;
|
42 |
-
transition: .2s border-color, .2s background-color, .2s color;
|
43 |
-
will-change: border-color, background-color, color;
|
44 |
-
}
|
45 |
-
|
46 |
-
&:not(.vp-sort__item-active) > a:hover {
|
47 |
-
border: 1px solid #bfbfbf;
|
48 |
-
}
|
49 |
-
|
50 |
-
&.vp-sort__item-active > * {
|
51 |
-
color: #fff;
|
52 |
-
cursor: default;
|
53 |
-
background-color: #6c7781;
|
54 |
-
border: 1px solid #6c7781;
|
55 |
-
}
|
56 |
-
|
57 |
-
.vp-sort__item-count {
|
58 |
-
float: right;
|
59 |
-
margin-left: 8px;
|
60 |
-
font-size: 60%;
|
61 |
-
}
|
62 |
-
}
|
63 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
templates/notices/{style.css → style.min.css}
RENAMED
File without changes
|
templates/notices/style.scss
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* Default filter style
|
3 |
-
*/
|
4 |
-
.vp-notice {
|
5 |
-
padding: 10px 20px;
|
6 |
-
color: #005b7f;
|
7 |
-
background-color: #f6fbff;
|
8 |
-
border: 1px solid #7da3b2;
|
9 |
-
border-radius: 4px;
|
10 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|